@sheetxl/mcp 0.8.0-beta.17 → 0.8.0-beta.19

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 (221) hide show
  1. package/assets/{Dzz3yrKbECzg6caR.js → -iaCg5U9jrEDEl_O.js} +1 -1
  2. package/assets/{Bcak_hZpcIkB2gJD.js → 0hHP9xpWzhkDrCTL.js} +1 -1
  3. package/assets/{B7OyFSpBb1eBvMVd.js → 1bm0Yqgfehw1Z2QU.js} +13 -13
  4. package/assets/{BodrfKIAhDFD-X3t.js → 2nx2Wljhbuct4aKx.js} +1 -1
  5. package/assets/{IGAV8DdYH32cW8XU.js → 7MIo82Ay8jEFMBH-.js} +1 -1
  6. package/assets/{CJF3P7U7yBQVF2Cg.js → ArL5bPq60ZcPcwU9.js} +1 -1
  7. package/assets/{C2NPIWe0pLs3PAZM.js → B6A2URH-mIs7J54h.js} +2 -2
  8. package/assets/{CfA8o-FNret9-D6Y.js → B7vRFm79CUJ1VvFw.js} +1 -1
  9. package/assets/{4qMP71Fe1Ep8kbOX.js → B8Z4-80QEORmYOJ9.js} +1 -1
  10. package/assets/{Jd71-QCmFEcDcYSw.js → BGLlbVFS6J3lt9Lw.js} +1 -1
  11. package/assets/{BS4ZsfH5D6aemSpO.js → BHsQeg6najGesUM4.js} +1 -1
  12. package/assets/{DsCNtBR5jCeqmLBS.js → BPctZbHQFoqJNYzC.js} +2 -2
  13. package/assets/{B6NnxkSmEzCGZEZA.js → BQkQNqRh5xxYhBy4.js} +1 -1
  14. package/assets/{B8JX7a6VZlBNA_Bd.js → BSNegq0YcivZJmkf.js} +1663 -1663
  15. package/assets/{DE4xC78p5UtS7wH6.js → BTnTQBSbzYU7cwra.js} +1 -1
  16. package/assets/{qgW-p2sFhMtuu5yw.js → BUHEmX1fseJVV65_.js} +1 -1
  17. package/assets/{CwRhhoL5ynbe78dB.js → Bbky1A_gIgE8i0Oy.js} +1 -1
  18. package/assets/{z24-oIqP_fu2hsOt.js → BbvOmnXrmBNjeWjQ.js} +1 -1
  19. package/assets/{DPKeRb9GKmh_WCPv.js → Bbxkz6vmyZJftTd-.js} +1 -1
  20. package/assets/{CqwEHSKivMYw7tRZ.js → BcYdUKmFOf5rn2VZ.js} +1 -1
  21. package/assets/{Mgs_OJP41a-Nfac3.js → BfIJP4H3I51jnIVR.js} +1 -1
  22. package/assets/{Xe7sA_mEwDQpJjcF.js → BgUHR-HVjZDY4SaH.js} +2 -2
  23. package/assets/{DrHVew6gwOB6oxCn.js → BgVW1icycJewsx77.js} +1 -1
  24. package/assets/{lcIaYgz4tQGBlzlo.js → Bgi6ubwGkGYsILci.js} +86 -86
  25. package/assets/{BebXDUnlrDDRGW60.js → BiOrM24CFYL1JGFE.js} +2 -2
  26. package/assets/{CqjNsZ2OB4Kx6J3s.js → Bj1WHx6LIEq6RVGw.js} +8 -8
  27. package/assets/{dcvgOfBmWFTsXoT8.js → Bk6A5eONxLTBIA_p.js} +4 -4
  28. package/assets/{B7Nqa7V-v0cxGBux.js → Bk6SeqUJkn7ft1y1.js} +1 -1
  29. package/assets/{D6ON3ZLcTAXV3fO6.js → BkhdNc3LdmcyAjwk.js} +9803 -7812
  30. package/assets/{D5L35C8cbX16BSCF.js → Bl77DvFa09DuVVuj.js} +1147 -1082
  31. package/assets/{Dre79rTMoYYikNuB.js → Bpf9jHj5AFY9543y.js} +19 -19
  32. package/assets/{oJNJQJEDQCsjHSmo.js → Bq6ocyztkvzKxMMC.js} +1 -1
  33. package/assets/{DF7-oRscXc_vkMo8.js → Bw2Nxye4Qj10uA3o.js} +1 -1
  34. package/assets/{C4deMY87Q_haYyLF.js → Bz1lp0mtNAoPuPve.js} +1 -1
  35. package/assets/{C2ZX6ffXsMaEr2d2.js → BzkTa7l_e7R--ejo.js} +448 -448
  36. package/assets/{iBgLe32XErisaUSr.js → C06iKc7jZ6affk2m.js} +1 -1
  37. package/assets/{BMJhHHX2LWgOJWGz.js → C17Wflhw5IFSgFFY.js} +1 -1
  38. package/assets/{PbBzI4PlKpCgULLd.js → C53f6C0pAU7_9FI-.js} +1 -1
  39. package/assets/{UH_biJmLrI9SvckA.js → C7Q4V5mU0wsErspO.js} +3 -3
  40. package/assets/{kpS1vY0DcE9p8JnI.js → CA_22AL82sRhLAko.js} +2 -2
  41. package/assets/{BT8AGlSg2t7V1QNj.js → CBSSZrizrucIG_9i.js} +764 -767
  42. package/assets/{YQtUMMGmb1_WFsh_.js → CE4VYOniMmY8sXQ_.js} +1 -1
  43. package/assets/{CaJ9j3l0cERnYqDS.js → CIOlYUuBZat8FhHa.js} +1 -1
  44. package/assets/{BvDcHHJvQMRHthm-.js → CIxf9Y_JsuEEO7Nu.js} +1 -1
  45. package/assets/{Bw_FtA-1886HMCLJ.js → CKvP54bJ4GkUqcZi.js} +3 -3
  46. package/assets/{DnTfXqCnRCe-1QYI.js → CNPUPTd9h7hwijpZ.js} +64 -64
  47. package/assets/{DoBvgI3Ry8DlGzwQ.js → CQZq4cA5kbES6htE.js} +1 -1
  48. package/assets/{BjnQVl1lb1KEbt2D.js → CQiv3YkDRDxTjy0r.js} +23 -23
  49. package/assets/{BSY9Tbmz6VEY_F_x.js → CWHuM2GYuKmi0rZx.js} +1 -1
  50. package/assets/{Dgi2xwb2DN2Gybj3.js → CYTPpV3lqNGOwme7.js} +2 -2
  51. package/assets/{CLze192iF2o-aETZ.js → C_v4hb9WXIt639Cm.js} +1 -1
  52. package/assets/{-cMvbaW1kvHslPKX.js → CcGrcjoI12MaDmwV.js} +2 -2
  53. package/assets/{BJBoygm-gY68bLAP.js → Cgf5GQVN-D8SlQ7A.js} +15 -15
  54. package/assets/{D336KioeSjd-T8n3.js → CiJq0zSDKpaKhL3y.js} +2 -2
  55. package/assets/{1feDuXw6tBXu2XFg.js → Cj4MYfqHewu8IOOL.js} +1 -1
  56. package/assets/{BUV7BlOZcuPgDZ__.js → CjoRkjB9NzS4LaFy.js} +1 -1
  57. package/assets/{BjhAYfsKC8iEbtgn.js → CjrzyKFdie6KYfsG.js} +30 -30
  58. package/assets/{Cl7HHR6Vc9S4n3AP.js → CkMXAUkUuJ2LJUBE.js} +1 -1
  59. package/assets/{G2Wjyx_ETCAcofwm.js → CoXgI3MEnvkXeshj.js} +1294 -1267
  60. package/assets/{YFiGplEq1G4XdCJ2.js → CqOzqRIQFCnEegoB.js} +1 -1
  61. package/assets/{CshK6Ew7OQ7mngI3.js → CqvcgwQ0UcKndrhO.js} +2 -2
  62. package/assets/{CMRLNLqYkiqCLMRa.js → CrjUfkCuRaXUC8X8.js} +3 -3
  63. package/assets/{FvxN6PPps-rNPDo8.js → CubwsTFIaEVf039H.js} +1 -1
  64. package/assets/{BmM-nHMAAuNatCcN.js → Cur_-XiBPijLpwxX.js} +1 -1
  65. package/assets/{7TRx0dMYnL2i4tqL.js → Curuj_knAdRpMy1L.js} +265 -265
  66. package/assets/{DDhPOQPc-lpyZrUJ.js → Cz7tKgNBbnr4DZCb.js} +4 -4
  67. package/assets/{C3Q-fjiZZ15waCq_.js → D-LrOz3Yvp17bUT8.js} +2 -2
  68. package/assets/{0kfwZuOHUkJmVjg6.js → D005GbIBowRGfwed.js} +6 -6
  69. package/assets/{BKRLtOdVOUTrLjQN.js → D06A3fKIe3WCTFru.js} +28 -28
  70. package/assets/{8cVPexxAVrFJ9QLX.js → D1ZekPxeTGzhFy2L.js} +1 -1
  71. package/assets/{C46RpMrfF6FiEFI7.js → D1kI9nJRL1RUF3-E.js} +1 -1
  72. package/assets/{B2UxLSteMiPlg8Uu.js → D1nQ_BminCM0cyH0.js} +1 -1
  73. package/assets/{Dkg-LQVsZlrHk7A8.js → D4p9Pv82ECKCOlua.js} +1 -1
  74. package/assets/{DSsH28SW8CMrSL-q.js → D5OYqo56iGB-5gFG.js} +1 -1
  75. package/assets/{COa691om4fLN4CUy.js → D6fQheA4qCS5CxYQ.js} +1 -1
  76. package/assets/{OHBzl-tZOi9Ni8YV.js → D990KjcBrCaAEz5k.js} +1 -1
  77. package/assets/{BQYpVYbvfWuUJgdx.js → DAnSdO8615XsOPNe.js} +1 -1
  78. package/assets/{z7nDK_gfX7G37XbZ.js → DFlL4pAqxaQ_hVe1.js} +115 -115
  79. package/assets/{Cr6lm0oXZJaaoAmD.js → DHL-ZmN5GzB4pIrM.js} +1 -1
  80. package/assets/{BKjovBsLpX2Fkhov.js → DIPDNtbm8FAru-FQ.js} +120 -120
  81. package/assets/{Cz4H3Qge2u8er3Ny.js → DLJH6ppG9VHjHe_z.js} +3 -3
  82. package/assets/{DMuOMpgIhVgB3eG8.js → DNtWf9lfGjzoB9Hy.js} +1 -1
  83. package/assets/{DeEZvPW-VvlE28oE.js → DOg_zvSkhsKmw4q1.js} +3 -3
  84. package/assets/{C7iHn3y3HVBHflpA.js → DS9HD6_BPxzdun0X.js} +33 -33
  85. package/assets/{BgldX21zhey2aR9D.js → DSNaHPvgqymqpsko.js} +1 -1
  86. package/assets/{CUbCBf24Ie4A2l4R.js → DT_kCIZ600UsFy4t.js} +2 -2
  87. package/assets/{B2BfjRdJGZs6afVL.js → DXORLAVmseFlsxkG.js} +2 -2
  88. package/assets/{CWLleOolFzyT0COW.js → DXe8SG12UJoGbbWR.js} +1 -1
  89. package/assets/{DV6WSFmSEKfb3d2s.js → D_6TeeMN5zmoQPTm.js} +108 -108
  90. package/assets/{CLgvdaqeFlESLvbF.js → Di_C31GTbBJ_xVOK.js} +1 -1
  91. package/assets/{BGZ_ltNFYvnAmbVR.js → DnMDfty7pU96BIEJ.js} +1 -1
  92. package/assets/{BlbxiLf1zD6_fWZs.js → DngcuWO2cSuMCMu1.js} +1 -1
  93. package/assets/{D_peM8fbRgGaWvpq.js → DppU35gFSUPaiCQH.js} +1 -1
  94. package/assets/{BdijGsy5W7yZ_I_n.js → DrkfG324qZRPckuC.js} +1 -1
  95. package/assets/{BhCbCEPpDzhg5nqL.js → Ds6LQkRDwXsJ-CFR.js} +1 -1
  96. package/assets/{nQbVdQrfdz3osBdi.js → DtD0J-7IetHv5o6E.js} +3 -3
  97. package/assets/{CsiIgnb_L2x2Go6g.js → DwWcXC4pUR3U2WXU.js} +1 -1
  98. package/assets/{Ljri8sTW3dWT4clD.js → DwcKSqV5YEBBA8hY.js} +1 -1
  99. package/assets/{CyI1eGGzJX8nJXaT.js → DxKZjKyewqvj46S2.js} +2 -2
  100. package/assets/{Bj4BFLBC9Tf6SGSt.js → DxTzG7VM8v4WJ6cI.js} +1 -1
  101. package/assets/{BX5xFncPLyeN7TqA.js → EkavVNuGWG95UggH.js} +5 -5
  102. package/assets/{AnF1Kh3Vo2AniIYO.js → GZJ4AFFt8qKRADOa.js} +2 -2
  103. package/assets/{DYJcfrNUUJQtxXWX.js → Gd_0grQd-3D1VPXW.js} +1 -1
  104. package/assets/{B9M_sgHpoc-op6FF.js → HVm22OJ1gEeY8kii.js} +1 -1
  105. package/assets/{BSAdmOdx3brRE9LW.js → LV6tvjnxRzrWaFb8.js} +1 -1
  106. package/assets/{Bz1ImBvJwPwBrA5j.js → Ln7XTzksutZHFpml.js} +1 -1
  107. package/assets/{CtmrBbpapaNwjwNB.js → Se9JmvmEtu4MfXJh.js} +52 -52
  108. package/assets/{B3mh2tuvP-lMP6f_.js → b6GPrIkdzfTW4f2j.js} +1 -1
  109. package/assets/{MW2nt7se27FlH9Yb.js → bJ-XKvDf7IkAafUI.js} +3 -7
  110. package/assets/{Bni-y4FJS4rkFYtn.js → exNO4fmccU8Aq8cE.js} +2227 -2121
  111. package/assets/gCkru9Vv-Ban4DCD.js +14 -0
  112. package/assets/{B9J8nV-dh6jHpzZI.js → ht0UxaAlRnuYUvpx.js} +1 -1
  113. package/assets/{D0OQ6ka8so0BWPwL.js → iP-shs7tsDGMVvQh.js} +1 -1
  114. package/assets/{BBC_WF8BcAH-k_cQ.js → jPim6WG_KS-ZDker.js} +1 -1
  115. package/assets/{BOx4Ut_Rme7NH34X.js → mrif6ZBbTbZKYaLJ.js} +1 -1
  116. package/assets/{DidhZpf9qJAei29Y.js → rT5f4v0Q_61nHkff.js} +1 -1
  117. package/assets/{APP8AzsNgQXHTalA.js → udbHvSLquJ5xGK3R.js} +2 -2
  118. package/assets/{Bxkx8QokmRNyXbOI.js → vb-L2Q2jyjjgDvJy.js} +6 -6
  119. package/assets/{BJdWgj1hv57eGVl4.js → zEyWjY3NhC8w_spQ.js} +436 -436
  120. package/assets/{D5VFuX1h50V2jLmZ.js → zkoJXSxpRzqfbG8k.js} +201 -200
  121. package/index.js +1164 -1093
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +59 -59
  124. package/package.json +2 -2
  125. package/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
  126. package/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
  127. package/screenshot-page/assets/{C71ZZMVLfHdPl441.js → 1yHlU53ypZZelMPx.js} +1 -1
  128. package/screenshot-page/assets/A_-Jwzwmm3lkcm2f.js +586 -0
  129. package/screenshot-page/assets/{Btgo0VFTT0JxuaP3.js → B-8IMo2f1yGNXOyz.js} +86 -90
  130. package/screenshot-page/assets/BF6igzahAW9pl35p.js +1 -0
  131. package/screenshot-page/assets/{Bh33WyohJvbKZVQN.js → BU5vg917ZnXC04e-.js} +2 -2
  132. package/screenshot-page/assets/BWDqL5_mwspr6CjI.js +3 -0
  133. package/screenshot-page/assets/BX9VkTqZoroo08EG.js +13 -0
  134. package/screenshot-page/assets/BdDouZl3VrM4yBP5.js +2 -0
  135. package/screenshot-page/assets/{CB2mQ5rbaSw2W4ik.js → BqlVqRKpsFGl-elI.js} +3 -3
  136. package/screenshot-page/assets/{CfkssmHURDicfYvR.js → BuzI4z8RJGOw8BZD.js} +1 -1
  137. package/screenshot-page/assets/{DqXO_Zw1Cp7rAQ04.js → C7mXat-6esc1AmRD.js} +2 -2
  138. package/screenshot-page/assets/{B8qybUclSjEYP5FJ.js → CFl15-2FAF9f3V7L.js} +2 -2
  139. package/screenshot-page/assets/{CUZobZ3mfNAdEisS.js → CJmdRzGWq0FZMrp5.js} +1 -1
  140. package/screenshot-page/assets/{CTjUtxDw6Z2I9OGc.js → CLcTX_nmvaVPsxDl.js} +1 -1
  141. package/screenshot-page/assets/COpZTXe_J1mSpeYD.js +5 -0
  142. package/screenshot-page/assets/{BMf827t1Ul65MHd5.js → CQukCzhuewMuFOlO.js} +1 -1
  143. package/screenshot-page/assets/CZq2dMHs2MHHyyBl.js +1 -0
  144. package/screenshot-page/assets/CaTGa2NvuuE3qJAV.js +1 -0
  145. package/screenshot-page/assets/Cb8ORg9ENgscK6yl.js +2 -0
  146. package/screenshot-page/assets/Chq6rvtA5qZAwYG4.js +1 -0
  147. package/screenshot-page/assets/ClWDZixRy4DFZdI5.js +1 -0
  148. package/screenshot-page/assets/CmNlzN3DCl87wNU2.js +1 -0
  149. package/screenshot-page/assets/CoPUxkU9zZy0dXti.js +2 -0
  150. package/screenshot-page/assets/{DXaM3CulPA3aPGV1.js → Cpwg3bWAqBBcgBmv.js} +2 -2
  151. package/screenshot-page/assets/{BE8ea8S0Q-qogeEs.js → CqogMOf7MzkOk7as.js} +2 -2
  152. package/screenshot-page/assets/{BKwVcuWOKeH2xREA.js → CrUIo7hXByCWY7in.js} +1 -1
  153. package/screenshot-page/assets/Cv-YUArreXqhafcU.js +2 -0
  154. package/screenshot-page/assets/{DgtqX4DiBgkepVZZ.js → Cx1kZ2u_8JFV2Q8D.js} +1 -1
  155. package/screenshot-page/assets/{BD96fN2dSVuoME09.js → Cx9lvo3Q1xOwYkRK.js} +4 -4
  156. package/screenshot-page/assets/D0nZlczIH0ULuSyL.js +3 -0
  157. package/screenshot-page/assets/D1ZZiOS7_HFjpZCA.js +1 -0
  158. package/screenshot-page/assets/D23_69pojBfIh4nV.js +5 -0
  159. package/screenshot-page/assets/D24UBy2L73pOCPPw.js +1 -0
  160. package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +1 -0
  161. package/screenshot-page/assets/D6LmZnV2h3Kg7G3e.js +1 -0
  162. package/screenshot-page/assets/{BYQZ8o8k3-MDoNat.js → D6Yv5cc1JE7DGd6j.js} +1 -1
  163. package/screenshot-page/assets/DAkSmFRVds51vhiy.js +1 -0
  164. package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +1 -0
  165. package/screenshot-page/assets/DUFPgv-3CtD_sCVO.js +1 -0
  166. package/screenshot-page/assets/{CSMEGhAHxl5-4FxB.js → DeGMS3crYErjsRrw.js} +1 -1
  167. package/screenshot-page/assets/{D_rtIYQ7FDC2CoEn.js → DegZKTNqt1LRnSxY.js} +1 -1
  168. package/screenshot-page/assets/{CT7cY57t9j1sBhAy.js → DjVxI3p3ssmCtYky.js} +1 -1
  169. package/screenshot-page/assets/DknSteOdQ6CdF0RT.js +1 -0
  170. package/screenshot-page/assets/Dt1A-DUBfvyouz_T.js +1 -0
  171. package/screenshot-page/assets/{DcUOAH274IbYOuK1.js → DwNHMH9f_lQyn50d.js} +1 -1
  172. package/screenshot-page/assets/{D0koRjO2KnWQ1fNV.js → DwuLl9Ua1k8m9KcK.js} +1 -1
  173. package/screenshot-page/assets/DzlbsQ0qqdQEl80f.js +1 -0
  174. package/screenshot-page/assets/EY31tFQrw7iYFrr6.js +4 -0
  175. package/screenshot-page/assets/{B1W17rc9ilPFCh31.js → MzJpKWgPrxR1UN-Y.js} +1 -1
  176. package/screenshot-page/assets/{-N4OYIMgf6f5vgNy.js → RutPv2GFWmeBiWvn.js} +1 -1
  177. package/screenshot-page/assets/{DeyRZ5rprDbRbuf4.js → Tj3B5At0OAN3tDza.js} +1 -1
  178. package/screenshot-page/assets/fQ13z3k3bntY-jfw.js +1 -0
  179. package/screenshot-page/assets/oO6aFwepb3DDkGYF.js +39 -0
  180. package/screenshot-page/assets/{DdXSKhFUAsKUsQ1u.js → pH9rKZYDE8xrhkC4.js} +1 -1
  181. package/screenshot-page/assets/qFyplGXRu7IepHio.js +1 -0
  182. package/screenshot-page/assets/w7IQEh1FiqZA6o5y.js +42 -0
  183. package/screenshot-page/assets/zEVoxCTt-ZW8Aowg.js +16 -0
  184. package/screenshot-page/assets/{DtihumgXQ7ETaN0A.js → zvxBjll3jnL0-vNn.js} +2 -2
  185. package/screenshot-page/index.html +12 -11
  186. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
  187. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
  188. package/types/scripting-api.json +11444 -11299
  189. package/types/scripting-enums.json +22 -1
  190. package/types/scripting.d.ts +631 -15
  191. package/assets/CSLLHl-zum7m1CJl.js +0 -14
  192. package/screenshot-page/assets/7Xk_eQAcM_HgWrOC.js +0 -1
  193. package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +0 -3
  194. package/screenshot-page/assets/BMwQInar0xVS5FRu.js +0 -1
  195. package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +0 -1
  196. package/screenshot-page/assets/BQCyH9YbEgnH78Ke.js +0 -2
  197. package/screenshot-page/assets/BcDxaEii3arJqOym.js +0 -1
  198. package/screenshot-page/assets/Be-rukvcufhLamH5.js +0 -1
  199. package/screenshot-page/assets/C2ty_K_uix4ooip6.js +0 -1
  200. package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +0 -2
  201. package/screenshot-page/assets/CCVAsuUimIJOkBnk.js +0 -1
  202. package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +0 -1
  203. package/screenshot-page/assets/CN8u05DjKwNHbUHN.js +0 -5
  204. package/screenshot-page/assets/COoMVTzF50qBNFEu.js +0 -39
  205. package/screenshot-page/assets/C_OuKbe6z1it80cj.js +0 -1
  206. package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +0 -2
  207. package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +0 -42
  208. package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +0 -1
  209. package/screenshot-page/assets/D6CzedWHXTesD55R.js +0 -1
  210. package/screenshot-page/assets/DCP8JXEeiwAMiVD2.js +0 -1
  211. package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +0 -1
  212. package/screenshot-page/assets/DQBUH0j44Vtrykua.js +0 -13
  213. package/screenshot-page/assets/DRncpwDkZZX8rL9S.js +0 -20
  214. package/screenshot-page/assets/DSKOOgcJQeqIc9Us.js +0 -3
  215. package/screenshot-page/assets/DTrnAtpccj55fGg5.js +0 -1
  216. package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +0 -1
  217. package/screenshot-page/assets/LYyM_ig973jLdOU0.js +0 -2
  218. package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +0 -1
  219. package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +0 -1
  220. package/screenshot-page/assets/dQsis-90Up-pIkSq.js +0 -4
  221. package/screenshot-page/assets/dXn1GWWjYmuLb1HF.js +0 -586
@@ -1,26 +1,26 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.17
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.19
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { r as t } from "./BMJhHHX2LWgOJWGz.js";
8
- import { Q as e, Z as o, h as s, ht as r, ot as n, tt as i, xt as a } from "./CfA8o-FNret9-D6Y.js";
9
- import { G as l, ht as c, lt as h, v as u } from "./BJBoygm-gY68bLAP.js";
10
- import { d, m as p, o as f } from "./MW2nt7se27FlH9Yb.js";
11
- import { $i as g, $r as m, Ci as b, Li as v, Sn as y, Vi as x, lt as w, ot as T, r as S, v as C } from "./D6ON3ZLcTAXV3fO6.js";
12
- import { N as A, P as k, d as E, g as I } from "./D5VFuX1h50V2jLmZ.js";
13
- import { F as P, ft as O, vt as D, yt as N } from "./DPKeRb9GKmh_WCPv.js";
14
- import { $ as _, B as $, Bt as M, Cr as R, Ct as V, D as L, Dt as j, E as B, Er as F, Fn as H, Ft as W, G as z, H as X, Hn as q, In as U, J as K, Jn as J, Lt as Z, N as Q, Nn as Y, Nt as tt, On as et, Rt as ot, S as st, Sr as rt, St as nt, T as it, Vn as at, W as lt, Xt as ct, Zn as ht, Zt as ut, _ as dt, _t as pt, a as ft, b as gt, bn as mt, bt, cr as vt, ct as yt, d as xt, dt as wt, en as Tt, er as St, fn as Ct, fr as At, gn as kt, gr as Et, gt as It, hn as Pt, i as Ot, in as Dt, k as Nt, l as _t, ln as $t, lr as Mt, m as Rt, mr as Vt, n as Lt, nt as jt, or as Bt, ot as Ft, q as Ht, rr as Wt, tt as zt, v as Xt, vn as qt, w as Ut, wr as Gt, wt as Kt, xn as Jt, xt as Zt, yn as Qt, zn as Yt, zt as te } from "./Bni-y4FJS4rkFYtn.js";
15
- var ee = {
7
+ import { r as t } from "./C17Wflhw5IFSgFFY.js";
8
+ import { Q as e, Z as o, h as s, ht as r, ot as n, tt as i, xt as a } from "./B7vRFm79CUJ1VvFw.js";
9
+ import { G as l, ht as c, lt as u, v as h } from "./Cgf5GQVN-D8SlQ7A.js";
10
+ import { o as d, p, u as f } from "./bJ-XKvDf7IkAafUI.js";
11
+ import { J as g, Ji as m, L as b, Ln as y, St as v, Xi as x, _r as w, cn as T, kn as S, vt as k } from "./BkhdNc3LdmcyAjwk.js";
12
+ import { A, I as C, f as E, y as I } from "./zkoJXSxpRzqfbG8k.js";
13
+ import { F as P, ft as O, vt as D, yt as N } from "./Bbxkz6vmyZJftTd-.js";
14
+ import { $ as _, $n as M, Ar as $, B as R, Bt as L, C as V, Cr as j, Ct as B, Et as F, F as H, H as W, Hn as z, Ht as X, In as q, Ir as U, It as G, Jn as K, K as J, Kn as Z, Ln as Q, M as Y, Mr as tt, Mt as et, N as ot, Nn as st, O as rt, On as nt, Pr as it, Qn as at, Qt as lt, Rn as ct, S as ut, Sn as ht, T as dt, V as pt, W as ft, Wn as gt, Wt as mt, X as bt, Xn as yt, Yt as xt, Zn as wt, _n as Tt, _t as St, a as kt, an as At, br as Ct, cr as Et, en as It, f as Pt, g as Ot, gr as Dt, gt as Nt, hr as _t, in as Mt, ir as $t, jt as Rt, kr as Lt, m as Vt, mr as jt, nr as Bt, ot as Ft, pn as Ht, q as Wt, qt as zt, rt as Xt, s as qt, sr as Ut, tt as Gt, u as Kt, ut as Jt, vn as Zt, vr as Qt, vt as Yt, x as te, xn as ee, xt as oe, yn as se, zn as re } from "./exNO4fmccU8Aq8cE.js";
15
+ var ne = {
16
16
  ascending: "ascending",
17
17
  descending: "descending",
18
18
  natural: "dataSource"
19
19
  };
20
- function oe(t, e) {
20
+ function ie(t, e) {
21
21
  const o = t.sheets ?? [], s = /* @__PURE__ */ new Map();
22
22
  for (let t = 0; t < o.length; t++) {
23
- const e = o[t], r = W(e)?.tables ?? [];
23
+ const e = o[t], r = ht(e)?.tables ?? [];
24
24
  for (let t = 0; t < r.length; t++) {
25
25
  const e = r[t], o = Array.isArray(e) ? e[1] : e?.v;
26
26
  if (!o?.id) continue;
@@ -45,41 +45,41 @@ function oe(t, e) {
45
45
  return e;
46
46
  }(t), i = /* @__PURE__ */ new Map();
47
47
  for (let t = 0; t < o.length; t++) {
48
- const e = W(o[t])?.pivotTables ?? [];
48
+ const e = ht(o[t])?.pivotTables ?? [];
49
49
  for (let s = 0; s < e.length; s++) i.set(`${o[t].name}\0${e[s].name}`, e[s]);
50
50
  }
51
51
  const a = new Set((t.pivotCaches ?? []).flatMap((t) => t.fields ? [t.cacheId] : [])), l = /* @__PURE__ */ new Set();
52
52
  for (let t = 0; t < o.length; t++) {
53
- const c = o[t], h = W(c);
54
- if (!h) continue;
55
- const u = h.slicers, d = h.movables;
56
- if (u && d) for (let t = d.length - 1; t >= 0; t--) {
53
+ const c = o[t], u = ht(c);
54
+ if (!u) continue;
55
+ const h = u.slicers, d = u.movables;
56
+ if (h && d) for (let t = d.length - 1; t >= 0; t--) {
57
57
  const o = d[t].content;
58
58
  if ("slicer" !== o?.type || o.json?.source) continue;
59
- const c = o.name ?? "", h = u[c];
60
- if (!h) continue;
61
- if (!h.tableId) {
62
- if (void 0 === h.pivotBody) continue;
63
- o.json = ne(h, o.json), o.json.pivot = re(h, r, n, i, a), l.add(c), h.cachePath && e.markAbsorbed(h.cachePath);
59
+ const c = o.name ?? "", u = h[c];
60
+ if (!u) continue;
61
+ if (!u.tableId) {
62
+ if (void 0 === u.pivotBody) continue;
63
+ o.json = ce(u, o.json), o.json.pivot = le(u, r, n, i, a), l.add(c), u.cachePath && e.markAbsorbed(u.cachePath);
64
64
  continue;
65
65
  }
66
- const p = s.get(String(h.tableId)), f = p ? se(p.columns, h.columnId) : null;
67
- p && f ? (o.json = ne(h, o.json, C.structuredReference(p.name, f.name)), l.add(c), h.cachePath && e.markAbsorbed(h.cachePath)) : (e.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), d.splice(t, 1));
66
+ const p = s.get(String(u.tableId)), f = p ? ae(p.columns, u.columnId) : null;
67
+ p && f ? (o.json = ce(u, o.json, k.structuredReference(p.name, f.name)), l.add(c), u.cachePath && e.markAbsorbed(u.cachePath)) : (e.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), d.splice(t, 1));
68
68
  }
69
- delete h.slicers;
69
+ delete u.slicers;
70
70
  }
71
71
  e.slicerParts.forEach((t, o) => {
72
72
  const s = Object.keys(t);
73
73
  s.length > 0 && s.every((t) => l.has(t)) && e.markAbsorbed(o);
74
74
  });
75
75
  }
76
- function se(t, e) {
76
+ function ae(t, e) {
77
77
  if (!e) return null;
78
78
  for (let o = 0; o < t.length; o++) if (void 0 !== t[o].id && String(t[o].id) === e) return t[o];
79
79
  const o = Number(e);
80
80
  return Number.isInteger(o) && o >= 1 && o <= t.length ? t[o - 1] : null;
81
81
  }
82
- function re(t, e, o, s, r) {
82
+ function le(t, e, o, s, r) {
83
83
  const n = [], i = t.pivotTables ?? [];
84
84
  for (let t = 0; t < i.length; t++) {
85
85
  const o = e.get(i[t].tabId);
@@ -103,35 +103,35 @@ function re(t, e, o, s, r) {
103
103
  body: t.timelineBody ?? ""
104
104
  }), a;
105
105
  }
106
- function ne(t, e, o) {
106
+ function ce(t, e, o) {
107
107
  const s = { ...e };
108
108
  if (void 0 !== o && (s.source = o), void 0 !== t.caption && t.caption !== t.sourceName && (s.caption = t.caption), !1 === t.showCaption && (s.hiddenCaption = !0), void 0 !== t.columnCount && t.columnCount > 1 && (s.columnCount = t.columnCount), void 0 !== t.rowHeight) {
109
109
  const e = Math.round(t.rowHeight / 9525);
110
110
  e > 0 && 27 !== e && (s.rowHeight = e);
111
111
  }
112
112
  t.style && "SlicerStyleLight1" !== t.style && (s.style = t.style);
113
- const r = t.sortOrder ? ee[t.sortOrder] : void 0;
113
+ const r = t.sortOrder ? ne[t.sortOrder] : void 0;
114
114
  return r && "ascending" !== r && (s.sortOrder = r), t.crossFilter && "showItemsWithDataAtTop" !== t.crossFilter && (s.crossFilter = t.crossFilter), t.lockedPosition && (s.lockedPosition = !0), !1 === t.customListSort && (s.disabledCustomListSort = !0), t.cacheName && (s.cacheName = t.cacheName), t.startItem && (s.startItem = t.startItem), void 0 !== t.level && (s.level = t.level), t.uid && (s.uid = t.uid), s;
115
115
  }
116
- var ie = (t, e) => {
116
+ var ue = (t, e) => {
117
117
  const o = [], s = t?.childNodes, r = s?.length ?? 0;
118
118
  for (let t = 0; t < r; t++) {
119
119
  const r = s.item(t);
120
120
  1 !== r.nodeType || e && r.localName !== e || o.push(r);
121
121
  }
122
122
  return o;
123
- }, ae = (t) => ie(t, "k").map((t) => [t.getAttribute("n") ?? "", t.getAttribute("t") || null]), le = (t) => ie(t, "v").map((t) => ({
123
+ }, he = (t) => ue(t, "k").map((t) => [t.getAttribute("n") ?? "", t.getAttribute("t") || null]), de = (t) => ue(t, "v").map((t) => ({
124
124
  t: t.getAttribute("t") || null,
125
125
  text: t.textContent ?? ""
126
- })), ce = (t) => {
126
+ })), pe = (t) => {
127
127
  const e = /* @__PURE__ */ new Map();
128
- for (const o of ie(t, "key")) {
128
+ for (const o of ue(t, "key")) {
129
129
  const t = /* @__PURE__ */ new Map();
130
- for (const e of ie(o, "flag")) t.set(e.getAttribute("name") ?? "", e.getAttribute("value") ?? "");
130
+ for (const e of ue(o, "flag")) t.set(e.getAttribute("name") ?? "", e.getAttribute("value") ?? "");
131
131
  e.set(o.getAttribute("name") ?? "", t);
132
132
  }
133
133
  return e;
134
- }, he = /* @__PURE__ */ new Uint8Array(0), ue = class t {
134
+ }, fe = /* @__PURE__ */ new Uint8Array(0), ge = class t {
135
135
  constructor(t, e, o) {
136
136
  this.buffers = /* @__PURE__ */ new Map(), this.zip = t, this.entries = e, this.rawBuffer = o;
137
137
  }
@@ -139,7 +139,7 @@ var ie = (t, e) => {
139
139
  return t.startsWith("/") ? t.slice(1) : t;
140
140
  }
141
141
  static async create(e) {
142
- const o = e instanceof Blob ? he : e instanceof Uint8Array ? e : new Uint8Array(e), s = e instanceof Blob ? new O(e) : new D(o), r = new P(s), n = /* @__PURE__ */ new Map();
142
+ const o = e instanceof Blob ? fe : e instanceof Uint8Array ? e : new Uint8Array(e), s = e instanceof Blob ? new O(e) : new D(o), r = new P(s), n = /* @__PURE__ */ new Map();
143
143
  for (const t of await r.getEntries()) t.directory || n.set(t.filename, t);
144
144
  return new t(r, n, o);
145
145
  }
@@ -205,18 +205,18 @@ var ie = (t, e) => {
205
205
  async close() {
206
206
  await this.zip.close();
207
207
  }
208
- }, de = class {
208
+ }, me = class {
209
209
  constructor(t) {
210
- this._sink = t, this._samples = [], this._t0 = pe(), this._tPrev = this._t0, this._heapPrev = fe();
210
+ this._sink = t, this._samples = [], this._t0 = be(), this._tPrev = this._t0, this._heapPrev = ye();
211
211
  }
212
212
  mark(t) {
213
- const e = pe(), o = fe(), s = {
213
+ const e = be(), o = ye(), s = {
214
214
  label: t,
215
215
  tMs: e - this._t0,
216
216
  dtMs: e - this._tPrev,
217
217
  heapBytes: o,
218
218
  dHeapBytes: void 0 !== o && void 0 !== this._heapPrev ? o - this._heapPrev : void 0,
219
- rssBytes: ge()
219
+ rssBytes: ve()
220
220
  };
221
221
  this._tPrev = e, this._heapPrev = o, this._samples.push(s), this._sink?.(s);
222
222
  }
@@ -228,91 +228,91 @@ var ie = (t, e) => {
228
228
  phase: t.label,
229
229
  tMs: Math.round(t.tMs),
230
230
  dtMs: Math.round(t.dtMs),
231
- heapMB: void 0 !== t.heapBytes ? me(t.heapBytes / 1048576) : "—",
232
- dHeapMB: void 0 !== t.dHeapBytes ? me(t.dHeapBytes / 1048576) : "—",
233
- rssMB: void 0 !== t.rssBytes ? me(t.rssBytes / 1048576) : "—"
231
+ heapMB: void 0 !== t.heapBytes ? xe(t.heapBytes / 1048576) : "—",
232
+ dHeapMB: void 0 !== t.dHeapBytes ? xe(t.dHeapBytes / 1048576) : "—",
233
+ rssMB: void 0 !== t.rssBytes ? xe(t.rssBytes / 1048576) : "—"
234
234
  }));
235
235
  }
236
- }, pe = "object" == typeof performance && "function" == typeof performance.now ? () => performance.now() : () => Date.now();
237
- function fe() {
236
+ }, be = "object" == typeof performance && "function" == typeof performance.now ? () => performance.now() : () => Date.now();
237
+ function ye() {
238
238
  const t = "object" == typeof performance ? performance.memory : void 0;
239
239
  if (t && "number" == typeof t.usedJSHeapSize) return t.usedJSHeapSize;
240
240
  const e = globalThis.process;
241
241
  return "object" == typeof e && "function" == typeof e.memoryUsage ? e.memoryUsage().heapUsed : void 0;
242
242
  }
243
- function ge() {
243
+ function ve() {
244
244
  const t = globalThis.process;
245
245
  if ("object" == typeof t && "function" == typeof t.memoryUsage) return t.memoryUsage().rss;
246
246
  }
247
- function me(t) {
247
+ function xe(t) {
248
248
  return Math.round(10 * t) / 10;
249
249
  }
250
- var be = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", ve = `-${be}.0-9·̀-ͯ‿-⁀`, ye = (new RegExp(`^[${be}]$`, "u"), new RegExp(`^[${ve}]$`, "u"), new RegExp(`^[${be}][${ve}]*$`, "u")), xe = (new RegExp(`^[${ve}]+$`, "u"), [
250
+ var we = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Te = `-${we}.0-9·̀-ͯ‿-⁀`, Se = (new RegExp(`^[${we}]$`, "u"), new RegExp(`^[${Te}]$`, "u"), new RegExp(`^[${we}][${Te}]*$`, "u")), ke = (new RegExp(`^[${Te}]+$`, "u"), [
251
251
  32,
252
252
  10,
253
253
  13,
254
254
  9
255
255
  ]);
256
- function we(t) {
256
+ function Ae(t) {
257
257
  return t >= 65 && t <= 90 || t >= 97 && t <= 122 || 58 === t || 95 === t || 8204 === t || 8205 === t || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
258
258
  }
259
- var Te = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Se = `-${Te}.0-9·̀-ͯ‿-⁀`;
260
- new RegExp(`^[${Te}]$`, "u"), new RegExp(`^[${Se}]$`, "u"), new RegExp(`^[${Te}][${Se}]*$`, "u"), new RegExp(`^[${Se}]+$`, "u");
261
- var Ce = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ae = `-${Ce}.0-9·̀-ͯ‿-⁀`, ke = (new RegExp(`^[${Ce}]$`, "u"), new RegExp(`^[${Ae}]$`, "u"), new RegExp(`^[${Ce}][${Ae}]*$`, "u"));
262
- function Ee(t) {
259
+ var Ce = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ee = `-${Ce}.0-9·̀-ͯ‿-⁀`;
260
+ new RegExp(`^[${Ce}]$`, "u"), new RegExp(`^[${Ee}]$`, "u"), new RegExp(`^[${Ce}][${Ee}]*$`, "u"), new RegExp(`^[${Ee}]+$`, "u");
261
+ var Ie = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Pe = `-${Ie}.0-9·̀-ͯ‿-⁀`, Oe = (new RegExp(`^[${Ie}]$`, "u"), new RegExp(`^[${Pe}]$`, "u"), new RegExp(`^[${Ie}][${Pe}]*$`, "u"));
262
+ function De(t) {
263
263
  return t >= 65 && t <= 90 || 95 === t || t >= 97 && t <= 122 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
264
264
  }
265
- var Ie, Pe = function(t) {
265
+ var Ne, _e = function(t) {
266
266
  return 32 === t || 10 === t || 13 === t || 9 === t;
267
- }, Oe = function(t) {
267
+ }, Me = function(t) {
268
268
  return t >= 32 && t <= 55295 || 10 === t || 13 === t || 9 === t || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
269
- }, De = we, Ne = function(t) {
270
- return we(t) || t >= 48 && t <= 57 || 45 === t || 46 === t || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
271
- }, _e = xe, $e = ye, Me = function(t) {
269
+ }, $e = Ae, Re = function(t) {
270
+ return Ae(t) || t >= 48 && t <= 57 || 45 === t || 46 === t || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
271
+ }, Le = ke, Ve = Se, je = function(t) {
272
272
  return t >= 1 && t <= 55295 || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
273
- }, Re = Ee, Ve = function(t) {
274
- return Ee(t) || 45 === t || 46 === t || t >= 48 && t <= 57 || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
275
- }, Le = ke, je = "http://www.w3.org/XML/1998/namespace", Be = "http://www.w3.org/2000/xmlns/", Fe = {
273
+ }, Be = De, Fe = function(t) {
274
+ return De(t) || 45 === t || 46 === t || t >= 48 && t <= 57 || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
275
+ }, He = Oe, We = "http://www.w3.org/XML/1998/namespace", ze = "http://www.w3.org/2000/xmlns/", Xe = {
276
276
  __proto__: null,
277
- xml: je,
278
- xmlns: Be
279
- }, He = {
277
+ xml: We,
278
+ xmlns: ze
279
+ }, qe = {
280
280
  __proto__: null,
281
281
  amp: "&",
282
282
  gt: ">",
283
283
  lt: "<",
284
284
  quot: "\"",
285
285
  apos: "'"
286
- }, We = -1, ze = -2, Xe = 13, qe = 33, Ue = 10, Ge = 60, Ke = 61, Je = 62, Ze = 63, Qe = 93, Ye = (t) => 34 === t || 39 === t, to = [34, 39], eo = [
287
- ...to,
286
+ }, Ue = -1, Ge = -2, Ke = 13, Je = 33, Ze = 10, Qe = 60, Ye = 61, to = 62, eo = 63, oo = 93, so = (t) => 34 === t || 39 === t, ro = [34, 39], no = [
287
+ ...ro,
288
288
  91,
289
- Je
290
- ], oo = [
291
- ...to,
292
- Ge,
293
- Qe
294
- ], so = [
295
- Ke,
296
- Ze,
297
- ..._e
298
- ], ro = [
299
- ..._e,
300
- Je,
289
+ to
290
+ ], io = [
291
+ ...ro,
292
+ Qe,
293
+ oo
294
+ ], ao = [
295
+ Ye,
296
+ eo,
297
+ ...Le
298
+ ], lo = [
299
+ ...Le,
300
+ to,
301
301
  38,
302
- Ge
302
+ Qe
303
303
  ];
304
- function no(t, e, o) {
304
+ function co(t, e, o) {
305
305
  switch (e) {
306
306
  case "xml":
307
- o !== je && t.fail(`xml prefix must be bound to ${je}.`);
307
+ o !== We && t.fail(`xml prefix must be bound to ${We}.`);
308
308
  break;
309
- case "xmlns": o !== Be && t.fail(`xmlns prefix must be bound to ${Be}.`);
309
+ case "xmlns": o !== ze && t.fail(`xmlns prefix must be bound to ${ze}.`);
310
310
  }
311
311
  switch (o) {
312
- case Be:
313
- t.fail("" === e ? `the default namespace may not be set to ${o}.` : `may not assign a prefix (even "xmlns") to the URI ${Be}.`);
312
+ case ze:
313
+ t.fail("" === e ? `the default namespace may not be set to ${o}.` : `may not assign a prefix (even "xmlns") to the URI ${ze}.`);
314
314
  break;
315
- case je: switch (e) {
315
+ case We: switch (e) {
316
316
  case "xml": break;
317
317
  case "":
318
318
  t.fail(`the default namespace may not be set to ${o}.`);
@@ -321,7 +321,7 @@ function no(t, e, o) {
321
321
  }
322
322
  }
323
323
  }
324
- var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
324
+ var uo = (t) => He.test(t), ho = (t) => Ve.test(t), po = {
325
325
  xmldecl: "xmlDeclHandler",
326
326
  text: "textHandler",
327
327
  processinginstruction: "piHandler",
@@ -335,7 +335,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
335
335
  error: "errorHandler",
336
336
  end: "endHandler",
337
337
  ready: "readyHandler"
338
- }, co = class {
338
+ }, fo = class {
339
339
  get closed() {
340
340
  return this._closed;
341
341
  }
@@ -343,15 +343,15 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
343
343
  this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
344
344
  const e = this.xmlnsOpt = !!this.opt.xmlns;
345
345
  if (this.trackPosition = !1 !== this.opt.position, this.fileName = this.opt.fileName, e) {
346
- this.nameStartCheck = Re, this.nameCheck = Ve, this.isName = io, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
346
+ this.nameStartCheck = Be, this.nameCheck = Fe, this.isName = uo, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
347
347
  __proto__: null,
348
- ...Fe
348
+ ...Xe
349
349
  };
350
350
  const t = this.opt.additionalNamespaces;
351
351
  null != t && (function(t, e) {
352
- for (const o of Object.keys(e)) no(t, o, e[o]);
352
+ for (const o of Object.keys(e)) co(t, o, e[o]);
353
353
  }(this, t), Object.assign(this.ns, t));
354
- } else this.nameStartCheck = De, this.nameCheck = Ne, this.isName = ao, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
354
+ } else this.nameStartCheck = $e, this.nameCheck = Re, this.isName = ho, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
355
355
  this.stateTable = [
356
356
  this.sBegin,
357
357
  this.sBeginWhitespace,
@@ -403,7 +403,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
403
403
  _init() {
404
404
  this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = 0, this.attribList = [];
405
405
  const { fragmentOpt: t } = this;
406
- this.state = t ? Xe : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = t, this.xmlDeclPossible = !t, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
406
+ this.state = t ? Ke : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = t, this.xmlDeclPossible = !t, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
407
407
  let { defaultXMLVersion: e } = this.opt;
408
408
  if (void 0 === e) {
409
409
  if (!0 === this.opt.forceXMLVersion) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
@@ -413,7 +413,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
413
413
  version: void 0,
414
414
  encoding: void 0,
415
415
  standalone: void 0
416
- }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(He), this.readyHandler?.();
416
+ }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(qe), this.readyHandler?.();
417
417
  }
418
418
  get position() {
419
419
  return this.chunkPosition + this.i;
@@ -422,10 +422,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
422
422
  return this.position - this.positionAtNewLine;
423
423
  }
424
424
  on(t, e) {
425
- this[lo[t]] = e;
425
+ this[po[t]] = e;
426
426
  }
427
427
  off(t) {
428
- this[lo[t]] = void 0;
428
+ this[po[t]] = void 0;
429
429
  }
430
430
  makeError(t) {
431
431
  let e = this.fileName ?? "";
@@ -452,13 +452,13 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
452
452
  }
453
453
  getCode10() {
454
454
  const t = this.chunk, e = this.i;
455
- if (this.prevI = e, this.i++, e >= t.length) return We;
455
+ if (this.prevI = e, this.i++, e >= t.length) return Ue;
456
456
  const o = t.charCodeAt(e);
457
457
  if (this.column++, o < 55296) {
458
458
  if (o >= 32 || 9 === o) return o;
459
459
  switch (o) {
460
- case Ue: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ue;
461
- case 13: return t.charCodeAt(e + 1) === Ue && (this.i = e + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, ze;
460
+ case Ze: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ze;
461
+ case 13: return t.charCodeAt(e + 1) === Ze && (this.i = e + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, Ge;
462
462
  default: return this.fail("disallowed character."), o;
463
463
  }
464
464
  }
@@ -468,18 +468,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
468
468
  }
469
469
  getCode11() {
470
470
  const { chunk: t, i: e } = this;
471
- if (this.prevI = e, this.i = e + 1, e >= t.length) return We;
471
+ if (this.prevI = e, this.i = e + 1, e >= t.length) return Ue;
472
472
  const o = t.charCodeAt(e);
473
473
  if (this.column++, o < 55296) {
474
474
  if (o > 31 && o < 127 || o > 159 && 8232 !== o || 9 === o) return o;
475
475
  switch (o) {
476
- case Ue: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ue;
476
+ case Ze: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ze;
477
477
  case 13: {
478
478
  const o = t.charCodeAt(e + 1);
479
- o !== Ue && 133 !== o || (this.i = e + 2);
479
+ o !== Ze && 133 !== o || (this.i = e + 2);
480
480
  }
481
481
  case 133:
482
- case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, ze;
482
+ case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ge;
483
483
  default: return this.fail("disallowed character."), o;
484
484
  }
485
485
  }
@@ -489,7 +489,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
489
489
  }
490
490
  getCodeNorm() {
491
491
  const t = this.getCode();
492
- return t === ze ? Ue : t;
492
+ return t === Ge ? Ze : t;
493
493
  }
494
494
  unGet() {
495
495
  this.i = this.prevI, this.column--;
@@ -498,8 +498,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
498
498
  let { i: e } = this;
499
499
  const { chunk: o } = this;
500
500
  for (;;) {
501
- const s = this.getCode(), r = s === ze, n = r ? Ue : s;
502
- if (n === We || t.includes(n)) return this.text += o.slice(e, this.prevI), n;
501
+ const s = this.getCode(), r = s === Ge, n = r ? Ze : s;
502
+ if (n === Ue || t.includes(n)) return this.text += o.slice(e, this.prevI), n;
503
503
  r && (this.text += `${o.slice(e, this.prevI)}\n`, e = this.i);
504
504
  }
505
505
  }
@@ -509,10 +509,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
509
509
  for (;;) {
510
510
  let s = this.getCode();
511
511
  switch (s) {
512
- case ze:
513
- this.text += `${o.slice(e, this.prevI)}\n`, e = this.i, s = Ue;
512
+ case Ge:
513
+ this.text += `${o.slice(e, this.prevI)}\n`, e = this.i, s = Ze;
514
514
  break;
515
- case We: return this.text += o.slice(e), !1;
515
+ case Ue: return this.text += o.slice(e), !1;
516
516
  }
517
517
  if (s === t) return this.text += o.slice(e, this.prevI), !0;
518
518
  }
@@ -521,18 +521,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
521
521
  const { chunk: t, i: e } = this;
522
522
  for (;;) {
523
523
  const o = this.getCode();
524
- if (o === We) return this.name += t.slice(e), We;
525
- if (!Ne(o)) return this.name += t.slice(e, this.prevI), o === ze ? Ue : o;
524
+ if (o === Ue) return this.name += t.slice(e), Ue;
525
+ if (!Re(o)) return this.name += t.slice(e, this.prevI), o === Ge ? Ze : o;
526
526
  }
527
527
  }
528
528
  skipSpaces() {
529
529
  for (;;) {
530
530
  const t = this.getCodeNorm();
531
- if (t === We || !Pe(t)) return t;
531
+ if (t === Ue || !_e(t)) return t;
532
532
  }
533
533
  }
534
534
  setXMLVersion(t) {
535
- this.currentXMLVersion = t, "1.0" === t ? (this.isChar = Oe, this.getCode = this.getCode10) : (this.isChar = Me, this.getCode = this.getCode11);
535
+ this.currentXMLVersion = t, "1.0" === t ? (this.isChar = Me, this.getCode = this.getCode10) : (this.isChar = je, this.getCode = this.getCode11);
536
536
  }
537
537
  sBegin() {
538
538
  65279 === this.chunk.charCodeAt(0) && (this.i++, this.column++), this.state = 1;
@@ -540,21 +540,21 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
540
540
  sBeginWhitespace() {
541
541
  const t = this.i, e = this.skipSpaces();
542
542
  switch (this.prevI !== t && (this.xmlDeclPossible = !1), e) {
543
- case Ge:
543
+ case Qe:
544
544
  if (this.state = 15, 0 !== this.text.length) throw new Error("no-empty text at start");
545
545
  break;
546
- case We: break;
547
- default: this.unGet(), this.state = Xe, this.xmlDeclPossible = !1;
546
+ case Ue: break;
547
+ default: this.unGet(), this.state = Ke, this.xmlDeclPossible = !1;
548
548
  }
549
549
  }
550
550
  sDoctype() {
551
- const t = this.captureTo(eo);
551
+ const t = this.captureTo(no);
552
552
  switch (t) {
553
- case Je:
554
- this.doctypeHandler?.(this.text), this.text = "", this.state = Xe, this.doctype = !0;
553
+ case to:
554
+ this.doctypeHandler?.(this.text), this.text = "", this.state = Ke, this.doctype = !0;
555
555
  break;
556
- case We: break;
557
- default: this.text += String.fromCodePoint(t), 91 === t ? this.state = 4 : Ye(t) && (this.state = 3, this.q = t);
556
+ case Ue: break;
557
+ default: this.text += String.fromCodePoint(t), 91 === t ? this.state = 4 : so(t) && (this.state = 3, this.q = t);
558
558
  }
559
559
  }
560
560
  sDoctypeQuote() {
@@ -562,8 +562,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
562
562
  this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
563
563
  }
564
564
  sDTD() {
565
- const t = this.captureTo(oo);
566
- t !== We && (this.text += String.fromCodePoint(t), t === Qe ? this.state = 2 : t === Ge ? this.state = 6 : Ye(t) && (this.state = 5, this.q = t));
565
+ const t = this.captureTo(io);
566
+ t !== Ue && (this.text += String.fromCodePoint(t), t === oo ? this.state = 2 : t === Qe ? this.state = 6 : so(t) && (this.state = 5, this.q = t));
567
567
  }
568
568
  sDTDQuoted() {
569
569
  const t = this.q;
@@ -575,7 +575,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
575
575
  case 33:
576
576
  this.state = 7, this.openWakaBang = "";
577
577
  break;
578
- case Ze:
578
+ case eo:
579
579
  this.state = 11;
580
580
  break;
581
581
  default: this.state = 4;
@@ -594,14 +594,14 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
594
594
  }
595
595
  sDTDCommentEnded() {
596
596
  const t = this.getCodeNorm();
597
- this.text += String.fromCodePoint(t), t === Je ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
597
+ this.text += String.fromCodePoint(t), t === to ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
598
598
  }
599
599
  sDTDPI() {
600
- this.captureToChar(Ze) && (this.text += "?", this.state = 12);
600
+ this.captureToChar(eo) && (this.text += "?", this.state = 12);
601
601
  }
602
602
  sDTDPIEnding() {
603
603
  const t = this.getCodeNorm();
604
- this.text += String.fromCodePoint(t), t === Je && (this.state = 4);
604
+ this.text += String.fromCodePoint(t), t === to && (this.state = 4);
605
605
  }
606
606
  sText() {
607
607
  0 !== this.tags.length ? this.handleTextInRoot() : this.handleTextOutsideRoot();
@@ -610,23 +610,23 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
610
610
  let { i: t } = this;
611
611
  const { chunk: e } = this;
612
612
  t: for (;;) switch (this.getCode()) {
613
- case ze:
613
+ case Ge:
614
614
  this.entity += `${e.slice(t, this.prevI)}\n`, t = this.i;
615
615
  break;
616
616
  case 59: {
617
617
  const { entityReturnState: o } = this, s = this.entity + e.slice(t, this.prevI);
618
618
  let r;
619
- this.state = o, "" === s ? (this.fail("empty entity name."), r = "&;") : (r = this.parseEntity(s), this.entity = ""), o === Xe && void 0 === this.textHandler || (this.text += r);
619
+ this.state = o, "" === s ? (this.fail("empty entity name."), r = "&;") : (r = this.parseEntity(s), this.entity = ""), o === Ke && void 0 === this.textHandler || (this.text += r);
620
620
  break t;
621
621
  }
622
- case We:
622
+ case Ue:
623
623
  this.entity += e.slice(t);
624
624
  break t;
625
625
  }
626
626
  }
627
627
  sOpenWaka() {
628
628
  const t = this.getCode();
629
- if (De(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
629
+ if ($e(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
630
630
  else switch (t) {
631
631
  case 47:
632
632
  this.state = 43, this.xmlDeclPossible = !1;
@@ -634,10 +634,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
634
634
  case 33:
635
635
  this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
636
636
  break;
637
- case Ze:
637
+ case eo:
638
638
  this.state = 23;
639
639
  break;
640
- default: this.fail("disallowed character in tag name"), this.state = Xe, this.xmlDeclPossible = !1;
640
+ default: this.fail("disallowed character in tag name"), this.state = Ke, this.xmlDeclPossible = !1;
641
641
  }
642
642
  }
643
643
  sOpenWakaBang() {
@@ -663,22 +663,22 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
663
663
  }
664
664
  sCommentEnded() {
665
665
  const t = this.getCodeNorm();
666
- t !== Je ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Xe;
666
+ t !== to ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Ke;
667
667
  }
668
668
  sCData() {
669
- this.captureToChar(Qe) && (this.state = 21);
669
+ this.captureToChar(oo) && (this.state = 21);
670
670
  }
671
671
  sCDataEnding() {
672
672
  const t = this.getCodeNorm();
673
- t === Qe ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
673
+ t === oo ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
674
674
  }
675
675
  sCDataEnding2() {
676
676
  const t = this.getCodeNorm();
677
677
  switch (t) {
678
- case Je:
679
- this.cdataHandler?.(this.text), this.text = "", this.state = Xe;
678
+ case to:
679
+ this.cdataHandler?.(this.text), this.text = "", this.state = Ke;
680
680
  break;
681
- case Qe:
681
+ case oo:
682
682
  this.text += "]";
683
683
  break;
684
684
  default: this.text += `]]${String.fromCodePoint(t)}`, this.state = 20;
@@ -686,17 +686,17 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
686
686
  }
687
687
  sPIFirstChar() {
688
688
  const t = this.getCodeNorm();
689
- this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === Ze || Pe(t) ? (this.fail("processing instruction without a target."), this.state = t === Ze ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
689
+ this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === eo || _e(t) ? (this.fail("processing instruction without a target."), this.state = t === eo ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
690
690
  }
691
691
  sPIRest() {
692
692
  const { chunk: t, i: e } = this;
693
693
  for (;;) {
694
694
  const o = this.getCodeNorm();
695
- if (o === We) return void (this.piTarget += t.slice(e));
695
+ if (o === Ue) return void (this.piTarget += t.slice(e));
696
696
  if (!this.nameCheck(o)) {
697
697
  this.piTarget += t.slice(e, this.prevI);
698
- const s = o === Ze;
699
- s || Pe(o) ? "xml" === this.piTarget ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = s ? qe : 27) : this.state = s ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
698
+ const s = o === eo;
699
+ s || _e(o) ? "xml" === this.piTarget ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = s ? Je : 27) : this.state = s ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
700
700
  break;
701
701
  }
702
702
  }
@@ -704,28 +704,28 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
704
704
  sPIBody() {
705
705
  if (0 === this.text.length) {
706
706
  const t = this.getCodeNorm();
707
- t === Ze ? this.state = 26 : Pe(t) || (this.text = String.fromCodePoint(t));
708
- } else this.captureToChar(Ze) && (this.state = 26);
707
+ t === eo ? this.state = 26 : _e(t) || (this.text = String.fromCodePoint(t));
708
+ } else this.captureToChar(eo) && (this.state = 26);
709
709
  }
710
710
  sPIEnding() {
711
711
  const t = this.getCodeNorm();
712
- if (t === Je) {
712
+ if (t === to) {
713
713
  const { piTarget: t } = this;
714
714
  "xml" === t.toLowerCase() && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({
715
715
  target: t,
716
716
  body: this.text
717
- }), this.piTarget = this.text = "", this.state = Xe;
718
- } else t === Ze ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
717
+ }), this.piTarget = this.text = "", this.state = Ke;
718
+ } else t === eo ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
719
719
  this.xmlDeclPossible = !1;
720
720
  }
721
721
  sXMLDeclNameStart() {
722
722
  const t = this.skipSpaces();
723
- t !== Ze ? t !== We && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = qe;
723
+ t !== eo ? t !== Ue && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Je;
724
724
  }
725
725
  sXMLDeclName() {
726
- const t = this.captureTo(so);
727
- if (t === Ze) return this.state = qe, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
728
- if (Pe(t) || t === Ke) {
726
+ const t = this.captureTo(ao);
727
+ if (t === eo) return this.state = Je, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
728
+ if (_e(t) || t === Ye) {
729
729
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
730
730
  case 0:
731
731
  this.fail("did not expect any more name/value pairs.");
@@ -735,23 +735,23 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
735
735
  break;
736
736
  default: this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
737
737
  }
738
- this.state = t === Ke ? 30 : 29;
738
+ this.state = t === Ye ? 30 : 29;
739
739
  }
740
740
  }
741
741
  sXMLDeclEq() {
742
742
  const t = this.getCodeNorm();
743
- if (t === Ze) return this.state = qe, void this.fail("XML declaration is incomplete.");
744
- Pe(t) || (t !== Ke && this.fail("value required."), this.state = 30);
743
+ if (t === eo) return this.state = Je, void this.fail("XML declaration is incomplete.");
744
+ _e(t) || (t !== Ye && this.fail("value required."), this.state = 30);
745
745
  }
746
746
  sXMLDeclValueStart() {
747
747
  const t = this.getCodeNorm();
748
- if (t === Ze) return this.state = qe, void this.fail("XML declaration is incomplete.");
749
- Pe(t) || (Ye(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
748
+ if (t === eo) return this.state = Je, void this.fail("XML declaration is incomplete.");
749
+ _e(t) || (so(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
750
750
  }
751
751
  sXMLDeclValue() {
752
- const t = this.captureTo([this.q, Ze]);
753
- if (t === Ze) return this.state = qe, this.text = "", void this.fail("XML declaration is incomplete.");
754
- if (t === We) return;
752
+ const t = this.captureTo([this.q, eo]);
753
+ if (t === eo) return this.state = Je, this.text = "", void this.fail("XML declaration is incomplete.");
754
+ if (t === Ue) return;
755
755
  const e = this.text;
756
756
  switch (this.text = "", this.name) {
757
757
  case "version": {
@@ -769,52 +769,52 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
769
769
  }
770
770
  sXMLDeclSeparator() {
771
771
  const t = this.getCodeNorm();
772
- t !== Ze ? (Pe(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = qe;
772
+ t !== eo ? (_e(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = Je;
773
773
  }
774
774
  sXMLDeclEnding() {
775
- this.getCodeNorm() === Je ? ("xml" !== this.piTarget ? this.fail("processing instructions are not allowed before root.") : "version" !== this.name && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Xe) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
775
+ this.getCodeNorm() === to ? ("xml" !== this.piTarget ? this.fail("processing instructions are not allowed before root.") : "version" !== this.name && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Ke) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
776
776
  }
777
777
  sOpenTag() {
778
778
  const t = this.captureNameChars();
779
- if (t === We) return;
779
+ if (t === Ue) return;
780
780
  const e = this.tag = {
781
781
  name: this.name,
782
782
  attributes: Object.create(null)
783
783
  };
784
784
  switch (this.name = "", this.xmlnsOpt && (this.topNS = e.ns = Object.create(null)), this.openTagStartHandler?.(e), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), t) {
785
- case Je:
785
+ case to:
786
786
  this.openTag();
787
787
  break;
788
788
  case 47:
789
789
  this.state = 35;
790
790
  break;
791
- default: Pe(t) || this.fail("disallowed character in tag name."), this.state = 36;
791
+ default: _e(t) || this.fail("disallowed character in tag name."), this.state = 36;
792
792
  }
793
793
  }
794
794
  sOpenTagSlash() {
795
- this.getCode() === Je ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
795
+ this.getCode() === to ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
796
796
  }
797
797
  sAttrib() {
798
798
  const t = this.skipSpaces();
799
- t !== We && (De(t) ? (this.unGet(), this.state = 37) : t === Je ? this.openTag() : 47 === t ? this.state = 35 : this.fail("disallowed character in attribute name."));
799
+ t !== Ue && ($e(t) ? (this.unGet(), this.state = 37) : t === to ? this.openTag() : 47 === t ? this.state = 35 : this.fail("disallowed character in attribute name."));
800
800
  }
801
801
  sAttribName() {
802
802
  const t = this.captureNameChars();
803
- t === Ke ? this.state = 39 : Pe(t) ? this.state = 38 : t === Je ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== We && this.fail("disallowed character in attribute name.");
803
+ t === Ye ? this.state = 39 : _e(t) ? this.state = 38 : t === to ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== Ue && this.fail("disallowed character in attribute name.");
804
804
  }
805
805
  sAttribNameSawWhite() {
806
806
  const t = this.skipSpaces();
807
807
  switch (t) {
808
- case We: return;
809
- case Ke:
808
+ case Ue: return;
809
+ case Ye:
810
810
  this.state = 39;
811
811
  break;
812
- default: this.fail("attribute without value."), this.text = "", this.name = "", t === Je ? this.openTag() : De(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
812
+ default: this.fail("attribute without value."), this.text = "", this.name = "", t === to ? this.openTag() : $e(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
813
813
  }
814
814
  }
815
815
  sAttribValue() {
816
816
  const t = this.getCodeNorm();
817
- Ye(t) ? (this.q = t, this.state = 40) : Pe(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
817
+ so(t) ? (this.q = t, this.state = 40) : _e(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
818
818
  }
819
819
  sAttribValueQuoted() {
820
820
  const { q: t, chunk: e } = this;
@@ -826,46 +826,46 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
826
826
  case 38:
827
827
  this.text += e.slice(o, this.prevI), this.state = 14, this.entityReturnState = 40;
828
828
  return;
829
- case Ue:
830
- case ze:
829
+ case Ze:
830
+ case Ge:
831
831
  case 9:
832
832
  this.text += `${e.slice(o, this.prevI)} `, o = this.i;
833
833
  break;
834
- case Ge:
834
+ case Qe:
835
835
  this.text += e.slice(o, this.prevI), this.fail("disallowed character.");
836
836
  return;
837
- case We:
837
+ case Ue:
838
838
  this.text += e.slice(o);
839
839
  return;
840
840
  }
841
841
  }
842
842
  sAttribValueClosed() {
843
843
  const t = this.getCodeNorm();
844
- Pe(t) ? this.state = 36 : t === Je ? this.openTag() : 47 === t ? this.state = 35 : De(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
844
+ _e(t) ? this.state = 36 : t === to ? this.openTag() : 47 === t ? this.state = 35 : $e(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
845
845
  }
846
846
  sAttribValueUnquoted() {
847
- const t = this.captureTo(ro);
847
+ const t = this.captureTo(lo);
848
848
  switch (t) {
849
849
  case 38:
850
850
  this.state = 14, this.entityReturnState = 42;
851
851
  break;
852
- case Ge:
852
+ case Qe:
853
853
  this.fail("disallowed character.");
854
854
  break;
855
- case We: break;
856
- default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === Je ? this.openTag() : this.state = 36;
855
+ case Ue: break;
856
+ default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === to ? this.openTag() : this.state = 36;
857
857
  }
858
858
  }
859
859
  sCloseTag() {
860
860
  const t = this.captureNameChars();
861
- t === Je ? this.closeTag() : Pe(t) ? this.state = 44 : t !== We && this.fail("disallowed character in closing tag.");
861
+ t === to ? this.closeTag() : _e(t) ? this.state = 44 : t !== Ue && this.fail("disallowed character in closing tag.");
862
862
  }
863
863
  sCloseTagSawWhite() {
864
864
  switch (this.skipSpaces()) {
865
- case Je:
865
+ case to:
866
866
  this.closeTag();
867
867
  break;
868
- case We: break;
868
+ case Ue: break;
869
869
  default: this.fail("disallowed character in closing tag.");
870
870
  }
871
871
  }
@@ -873,7 +873,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
873
873
  let { i: t, forbiddenState: e } = this;
874
874
  const { chunk: o, textHandler: s } = this;
875
875
  t: for (;;) switch (this.getCode()) {
876
- case Ge:
876
+ case Qe:
877
877
  if (this.state = 15, void 0 !== s) {
878
878
  const { text: e } = this, r = o.slice(t, this.prevI);
879
879
  0 !== e.length ? (s(e + r), this.text = "") : 0 !== r.length && s(r);
@@ -881,9 +881,9 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
881
881
  e = 0;
882
882
  break t;
883
883
  case 38:
884
- this.state = 14, this.entityReturnState = Xe, void 0 !== s && (this.text += o.slice(t, this.prevI)), e = 0;
884
+ this.state = 14, this.entityReturnState = Ke, void 0 !== s && (this.text += o.slice(t, this.prevI)), e = 0;
885
885
  break t;
886
- case Qe:
886
+ case oo:
887
887
  switch (e) {
888
888
  case 0:
889
889
  e = 1;
@@ -895,13 +895,13 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
895
895
  default: throw new Error("impossible state");
896
896
  }
897
897
  break;
898
- case Je:
898
+ case to:
899
899
  2 === e && this.fail("the string \"]]>\" is disallowed in char data."), e = 0;
900
900
  break;
901
- case ze:
901
+ case Ge:
902
902
  void 0 !== s && (this.text += `${o.slice(t, this.prevI)}\n`), t = this.i, e = 0;
903
903
  break;
904
- case We:
904
+ case Ue:
905
905
  void 0 !== s && (this.text += o.slice(t));
906
906
  break t;
907
907
  default: e = 0;
@@ -915,22 +915,22 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
915
915
  t: for (;;) {
916
916
  const r = this.getCode();
917
917
  switch (r) {
918
- case Ge:
918
+ case Qe:
919
919
  if (this.state = 15, void 0 !== o) {
920
920
  const { text: s } = this, r = e.slice(t, this.prevI);
921
921
  0 !== s.length ? (o(s + r), this.text = "") : 0 !== r.length && o(r);
922
922
  }
923
923
  break t;
924
924
  case 38:
925
- this.state = 14, this.entityReturnState = Xe, void 0 !== o && (this.text += e.slice(t, this.prevI)), s = !0;
925
+ this.state = 14, this.entityReturnState = Ke, void 0 !== o && (this.text += e.slice(t, this.prevI)), s = !0;
926
926
  break t;
927
- case ze:
927
+ case Ge:
928
928
  void 0 !== o && (this.text += `${e.slice(t, this.prevI)}\n`), t = this.i;
929
929
  break;
930
- case We:
930
+ case Ue:
931
931
  void 0 !== o && (this.text += e.slice(t));
932
932
  break t;
933
- default: Pe(r) || (s = !0);
933
+ default: _e(r) || (s = !0);
934
934
  }
935
935
  }
936
936
  s && (this.sawRoot || this.reportedTextBeforeRoot || (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
@@ -944,10 +944,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
944
944
  };
945
945
  if (this.attribList.push(r), this.attributeHandler?.(r), "xmlns" === o) {
946
946
  const t = e.trim();
947
- "1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t, no(this, s, t);
947
+ "1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t, co(this, s, t);
948
948
  } else if ("xmlns" === t) {
949
949
  const t = e.trim();
950
- this.topNS[""] = t, no(this, "", t);
950
+ this.topNS[""] = t, co(this, "", t);
951
951
  }
952
952
  }
953
953
  pushAttribPlain(t, e) {
@@ -964,7 +964,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
964
964
  const e = t.pop();
965
965
  this.fail(`unclosed tag: ${e.name}`);
966
966
  }
967
- 0 !== this.state && this.state !== Xe && this.fail("unexpected end.");
967
+ 0 !== this.state && this.state !== Ke && this.fail("unexpected end.");
968
968
  const { text: e } = this;
969
969
  return 0 !== e.length && (this.textHandler?.(e), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
970
970
  }
@@ -1000,7 +1000,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1000
1000
  for (const e of t) {
1001
1001
  const { name: t, prefix: r, local: n } = e;
1002
1002
  let i, a;
1003
- "" === r ? (i = "xmlns" === t ? Be : "", a = t) : (i = this.resolve(r), void 0 === i && (this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`), i = r), a = `{${i}}${n}`), s.has(a) && this.fail(`duplicate attribute: ${a}.`), s.add(a), e.uri = i, o[t] = e;
1003
+ "" === r ? (i = "xmlns" === t ? ze : "", a = t) : (i = this.resolve(r), void 0 === i && (this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`), i = r), a = `{${i}}${n}`), s.has(a) && this.fail(`duplicate attribute: ${a}.`), s.add(a), e.uri = i, o[t] = e;
1004
1004
  }
1005
1005
  this.attribList = [];
1006
1006
  }
@@ -1012,16 +1012,16 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1012
1012
  openTag() {
1013
1013
  this.processAttribs();
1014
1014
  const { tags: t } = this, e = this.tag;
1015
- e.isSelfClosing = !1, this.openTagHandler?.(e), t.push(e), this.state = Xe, this.name = "";
1015
+ e.isSelfClosing = !1, this.openTagHandler?.(e), t.push(e), this.state = Ke, this.name = "";
1016
1016
  }
1017
1017
  openSelfClosingTag() {
1018
1018
  this.processAttribs();
1019
1019
  const { tags: t } = this, e = this.tag;
1020
- e.isSelfClosing = !0, this.openTagHandler?.(e), this.closeTagHandler?.(e), null === (this.tag = t[t.length - 1] ?? null) && (this.closedRoot = !0), this.state = Xe, this.name = "";
1020
+ e.isSelfClosing = !0, this.openTagHandler?.(e), this.closeTagHandler?.(e), null === (this.tag = t[t.length - 1] ?? null) && (this.closedRoot = !0), this.state = Ke, this.name = "";
1021
1021
  }
1022
1022
  closeTag() {
1023
1023
  const { tags: t, name: e } = this;
1024
- if (this.state = Xe, this.name = "", "" === e) return this.fail("weird empty close tag."), void (this.text += "</>");
1024
+ if (this.state = Ke, this.name = "", "" === e) return this.fail("weird empty close tag."), void (this.text += "</>");
1025
1025
  const o = this.closeTagHandler;
1026
1026
  let s = t.length;
1027
1027
  for (; s-- > 0;) {
@@ -1039,21 +1039,21 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1039
1039
  let e = NaN;
1040
1040
  return "x" === t[1] && /^#x[0-9a-f]+$/i.test(t) ? e = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (e = parseInt(t.slice(1), 10)), this.isChar(e) ? String.fromCodePoint(e) : (this.fail("malformed character entity."), `&${t};`);
1041
1041
  }
1042
- }, ho = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, uo = {
1042
+ }, go = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, mo = {
1043
1043
  amp: "&",
1044
1044
  lt: "<",
1045
1045
  gt: ">",
1046
1046
  quot: "\"",
1047
1047
  apos: "'"
1048
- }, po = (t, e) => {
1049
- const o = uo[e];
1048
+ }, bo = (t, e) => {
1049
+ const o = mo[e];
1050
1050
  if (void 0 !== o) return o;
1051
1051
  const s = 120 === e.charCodeAt(1) ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
1052
1052
  return s > 0 && s <= 1114111 ? String.fromCodePoint(s) : t;
1053
- }, fo = (t) => {
1053
+ }, yo = (t) => {
1054
1054
  let e = t;
1055
- return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(ho, po)), e;
1056
- }, go = (t) => {
1055
+ return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(go, bo)), e;
1056
+ }, vo = (t) => {
1057
1057
  let e = t;
1058
1058
  const o = e.length;
1059
1059
  for (let t = 0; t < o; t++) {
@@ -1063,8 +1063,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1063
1063
  break;
1064
1064
  }
1065
1065
  }
1066
- return -1 !== e.indexOf("&") && (e = e.replace(ho, po)), e;
1067
- }, mo = (t) => 32 === t || 9 === t || 10 === t || 13 === t, bo = class t {
1066
+ return -1 !== e.indexOf("&") && (e = e.replace(go, bo)), e;
1067
+ }, xo = (t) => 32 === t || 9 === t || 10 === t || 13 === t, wo = class t {
1068
1068
  constructor() {
1069
1069
  this._openTagHandler = void 0, this._closeTagHandler = void 0, this._textHandler = void 0, this._cdataHandler = void 0, this._errorHandler = void 0, this._endHandler = void 0, this._scanners = null, this._carry = "", this._text = "", this._tags = [], this._sawRoot = !1, this._closed = !1;
1070
1070
  }
@@ -1075,7 +1075,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1075
1075
  this.NOT_HANDLED = -2;
1076
1076
  }
1077
1077
  static decodeText(t) {
1078
- return fo(t);
1078
+ return yo(t);
1079
1079
  }
1080
1080
  on(t, e) {
1081
1081
  switch (t) {
@@ -1142,7 +1142,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1142
1142
  if (0 === t.length) return;
1143
1143
  this._text = "";
1144
1144
  const e = this._textHandler;
1145
- void 0 !== e && 0 !== this._tags.length && e(fo(t));
1145
+ void 0 !== e && 0 !== this._tags.length && e(yo(t));
1146
1146
  }
1147
1147
  _markup(e, o, s) {
1148
1148
  if (o + 1 >= s) return -1;
@@ -1181,7 +1181,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1181
1181
  const r = o + 1 + i.name.length;
1182
1182
  if (r >= s) return -1;
1183
1183
  const n = e.charCodeAt(r);
1184
- if (62 === n || 47 === n || mo(n)) {
1184
+ if (62 === n || 47 === n || xo(n)) {
1185
1185
  this._flushText();
1186
1186
  const r = i.scan(e, o, s);
1187
1187
  if (r !== t.NOT_HANDLED) {
@@ -1199,12 +1199,12 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1199
1199
  }
1200
1200
  _openTag(t, e, o) {
1201
1201
  let s = e + 1, r = 0;
1202
- for (; s < o && (r = t.charCodeAt(s), 62 !== r && 47 !== r && !mo(r));) s++;
1202
+ for (; s < o && (r = t.charCodeAt(s), 62 !== r && 47 !== r && !xo(r));) s++;
1203
1203
  if (s >= o) return -1;
1204
1204
  const n = t.slice(e + 1, s), i = {};
1205
1205
  let a = !1;
1206
1206
  for (;;) {
1207
- for (; s < o && mo(r = t.charCodeAt(s));) s++;
1207
+ for (; s < o && xo(r = t.charCodeAt(s));) s++;
1208
1208
  if (s >= o) return -1;
1209
1209
  if (62 === r) {
1210
1210
  s++;
@@ -1220,16 +1220,16 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1220
1220
  break;
1221
1221
  }
1222
1222
  const e = s;
1223
- for (; s < o && (r = t.charCodeAt(s), 61 !== r && 62 !== r && 47 !== r && !mo(r));) s++;
1223
+ for (; s < o && (r = t.charCodeAt(s), 61 !== r && 62 !== r && 47 !== r && !xo(r));) s++;
1224
1224
  if (s >= o) return -1;
1225
1225
  const n = t.slice(e, s);
1226
- for (; s < o && mo(r = t.charCodeAt(s));) s++;
1226
+ for (; s < o && xo(r = t.charCodeAt(s));) s++;
1227
1227
  if (s >= o) return -1;
1228
1228
  if (61 !== r) {
1229
1229
  this.fail("attribute without value.");
1230
1230
  continue;
1231
1231
  }
1232
- for (s++; s < o && mo(r = t.charCodeAt(s));) s++;
1232
+ for (s++; s < o && xo(r = t.charCodeAt(s));) s++;
1233
1233
  if (s >= o) return -1;
1234
1234
  if (34 !== r && 39 !== r) {
1235
1235
  this.fail("unquoted attribute value.");
@@ -1237,7 +1237,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1237
1237
  }
1238
1238
  const l = t.indexOf(34 === r ? "\"" : "'", s + 1);
1239
1239
  if (-1 === l) return -1;
1240
- "__proto__" !== n && (i[n] = go(t.slice(s + 1, l))), s = l + 1;
1240
+ "__proto__" !== n && (i[n] = vo(t.slice(s + 1, l))), s = l + 1;
1241
1241
  }
1242
1242
  this._flushText(), this._sawRoot = !0;
1243
1243
  const l = {
@@ -1276,7 +1276,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1276
1276
  Ready: "ready"
1277
1277
  }, t.parseStream = async (t, e, o) => {
1278
1278
  if (o?.lean) return (async (t, e) => {
1279
- const o = new bo();
1279
+ const o = new wo();
1280
1280
  let s;
1281
1281
  e.elementScanners && o.setElementScanners(e.elementScanners), e.onOpenTag && o.on("opentag", e.onOpenTag), e.onCloseTag && o.on("closetag", e.onCloseTag), e.onText && o.on("text", e.onText), e.onError && o.on("error", e.onError);
1282
1282
  const r = e.onEnd;
@@ -1289,18 +1289,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1289
1289
  }
1290
1290
  return o.close(), s;
1291
1291
  })(t, e);
1292
- const s = new co({
1292
+ const s = new fo({
1293
1293
  position: !1,
1294
1294
  ...o
1295
1295
  });
1296
1296
  let r;
1297
- e.onOpenTagStart && s.on(Ie.Events.OpenTagStart, e.onOpenTagStart), e.onOpenTag && s.on(Ie.Events.OpenTag, e.onOpenTag), e.onCloseTag && s.on(Ie.Events.CloseTag, e.onCloseTag), e.onAttribute && s.on(Ie.Events.Attribute, e.onAttribute), e.onText && s.on(Ie.Events.Text, e.onText), e.onError && s.on(Ie.Events.Error, e.onError);
1297
+ e.onOpenTagStart && s.on(Ne.Events.OpenTagStart, e.onOpenTagStart), e.onOpenTag && s.on(Ne.Events.OpenTag, e.onOpenTag), e.onCloseTag && s.on(Ne.Events.CloseTag, e.onCloseTag), e.onAttribute && s.on(Ne.Events.Attribute, e.onAttribute), e.onText && s.on(Ne.Events.Text, e.onText), e.onError && s.on(Ne.Events.Error, e.onError);
1298
1298
  const n = e.onEnd;
1299
1299
  if (n) {
1300
1300
  const t = () => {
1301
1301
  r = n();
1302
1302
  };
1303
- s.on(Ie.Events.End, t);
1303
+ s.on(Ne.Events.End, t);
1304
1304
  }
1305
1305
  for (;;) {
1306
1306
  const { value: e, done: o } = await t.read();
@@ -1309,14 +1309,14 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
1309
1309
  }
1310
1310
  return s.close(), r;
1311
1311
  };
1312
- })(Ie || (Ie = {}));
1313
- var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, yo = (t) => {
1312
+ })(Ne || (Ne = {}));
1313
+ var To = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, So = (t) => {
1314
1314
  const e = parseInt(t);
1315
1315
  return isNaN(e) ? null : e;
1316
- }, xo = (t) => {
1316
+ }, ko = (t) => {
1317
1317
  const e = parseFloat(t);
1318
1318
  return isNaN(e) ? null : e;
1319
- }, wo = null, To = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), So = (t) => To(t).replace(/"/g, "&quot;"), Co = class {
1319
+ }, Ao = null, Co = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Eo = (t) => Co(t).replace(/"/g, "&quot;"), Io = class {
1320
1320
  constructor() {
1321
1321
  this._registeredVisitors = /* @__PURE__ */ new Map();
1322
1322
  }
@@ -1326,7 +1326,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1326
1326
  createEventHandler(t, e, o) {
1327
1327
  const s = this._registeredVisitors, r = [], n = [];
1328
1328
  let i = null, a = null, l = null, c = null;
1329
- const h = [], u = {
1329
+ const u = [], h = {
1330
1330
  key: null,
1331
1331
  source: t,
1332
1332
  parent: null
@@ -1345,7 +1345,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1345
1345
  if (o = e(o), null == o) return;
1346
1346
  }
1347
1347
  return o;
1348
- }, v = {
1348
+ }, y = {
1349
1349
  getSource: () => d?.source ?? null,
1350
1350
  setSource: (t) => {
1351
1351
  d.source = t;
@@ -1355,9 +1355,9 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1355
1355
  },
1356
1356
  getFrom: () => l,
1357
1357
  getAttribute: (t, e) => b(t, e) ?? null,
1358
- hasAttribute: (t) => null !== v.getAttribute(t),
1358
+ hasAttribute: (t) => null !== y.getAttribute(t),
1359
1359
  getParent: () => {
1360
- const t = h[h.length - 2];
1360
+ const t = u[u.length - 2];
1361
1361
  return t.parent ?? t.source;
1362
1362
  },
1363
1363
  getPath: () => {
@@ -1388,7 +1388,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1388
1388
  let o = `<${t.name}`;
1389
1389
  for (const t in e) {
1390
1390
  const s = e[t];
1391
- o += ` ${t}="${So("string" == typeof s ? s : s?.value ?? "")}"`;
1391
+ o += ` ${t}="${Eo("string" == typeof s ? s : s?.value ?? "")}"`;
1392
1392
  }
1393
1393
  return o + ">";
1394
1394
  })(t)), i = {
@@ -1406,16 +1406,16 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1406
1406
  c = i?.visitor ?? null, a = e, l = t;
1407
1407
  let b = !!m && null === m.to;
1408
1408
  if (m && !b && m.scope) {
1409
- const t = m.scope(v);
1409
+ const t = m.scope(y);
1410
1410
  null === t ? b = !0 : t && (r.push(t), i.pushedScope = !0);
1411
1411
  }
1412
- m && (0 === n.length ? (d = u, i.destination = d, i.pushedDestination = !0, h.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
1412
+ m && (0 === n.length ? (d = h, i.destination = d, i.pushedDestination = !0, u.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
1413
1413
  key: null,
1414
1414
  source: {},
1415
1415
  parent: null
1416
- }, i.destination = d, i.pushedDestination = !0, h.push(d))), n.push(i), p = b;
1417
- const y = c?.openTag?.(v);
1418
- void 0 !== y && (d.parent = y), m?.raw && !b && (f = [], g = i);
1416
+ }, i.destination = d, i.pushedDestination = !0, u.push(d))), n.push(i), p = b;
1417
+ const v = c?.openTag?.(y);
1418
+ void 0 !== v && (d.parent = v), m?.raw && !b && (f = [], g = i);
1419
1419
  },
1420
1420
  onCloseTag: (t) => {
1421
1421
  let e = t.name;
@@ -1426,24 +1426,24 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1426
1426
  if (n[n.length - 1] !== g) return f.push(`</${t.name}>`), n.pop(), i = n[n.length - 1] ?? null, a = i?.local ?? null, void (l = i?.tag ?? null);
1427
1427
  m = f.join(""), f = null, g = null, b = !0;
1428
1428
  }
1429
- p || c?.closeTag?.(v), b && (m = null);
1430
- const y = n.pop() ?? null;
1431
- i = n[n.length - 1] ?? null, y?.pushedScope && r.pop();
1432
- const x = y?.destination;
1433
- if (x && y.pushedDestination) {
1434
- h.pop(), d = h[h.length - 1] ?? u;
1435
- const t = y.visitor;
1436
- t && t.to && void 0 !== x.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(x.source) : o?.(`Unable to parse array for ${t.from} at ${v.getPath()}`) : x.key ? d.source[x.key] = x.source : "string" == typeof t.to && (d.source[t.to] = x.source));
1437
- } else x || (d = h[h.length - 1] ?? u);
1429
+ p || c?.closeTag?.(y), b && (m = null);
1430
+ const v = n.pop() ?? null;
1431
+ i = n[n.length - 1] ?? null, v?.pushedScope && r.pop();
1432
+ const x = v?.destination;
1433
+ if (x && v.pushedDestination) {
1434
+ u.pop(), d = u[u.length - 1] ?? h;
1435
+ const t = v.visitor;
1436
+ t && t.to && void 0 !== x.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(x.source) : o?.(`Unable to parse array for ${t.from} at ${y.getPath()}`) : x.key ? d.source[x.key] = x.source : "string" == typeof t.to && (d.source[t.to] = x.source));
1437
+ } else x || (d = u[u.length - 1] ?? h);
1438
1438
  a = i?.local ?? null, l = i?.tag ?? null, c = i?.visitor ?? null, p = !i?.destination;
1439
1439
  },
1440
1440
  onText: (t) => {
1441
- f ? f.push(To(t)) : c?.text?.(t, v);
1441
+ f ? f.push(Co(t)) : c?.text?.(t, y);
1442
1442
  },
1443
1443
  onEnd: e
1444
1444
  };
1445
1445
  }
1446
- }, Ao = `IFERROR(${H}(`, ko = Ao.toUpperCase(), Eo = te.toUpperCase(), Io = { kind: "none" }, Po = { kind: "spilled" }, Oo = (t, e) => {
1446
+ }, Po = `IFERROR(${Bt}(`, Oo = Po.toUpperCase(), Do = Tt.toUpperCase(), No = { kind: "none" }, _o = { kind: "spilled" }, Mo = (t, e) => {
1447
1447
  if (34 !== t.charCodeAt(e)) return null;
1448
1448
  let o = "", s = e + 1;
1449
1449
  for (; s < t.length;) if (34 === t.charCodeAt(s)) {
@@ -1454,13 +1454,13 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1454
1454
  o += "\"", s += 2;
1455
1455
  } else o += t[s], s++;
1456
1456
  return null;
1457
- }, Do = (t) => {
1457
+ }, $o = (t) => {
1458
1458
  const e = [];
1459
1459
  let o = 0;
1460
1460
  for (; o < t.length;) {
1461
1461
  const s = t.charCodeAt(o);
1462
1462
  if (34 === s) {
1463
- const e = Oo(t, o);
1463
+ const e = Mo(t, o);
1464
1464
  if (null === e) break;
1465
1465
  o = e.end;
1466
1466
  continue;
@@ -1478,14 +1478,14 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1478
1478
  40 === t.charCodeAt(r) && e.push(t.slice(o, r).toUpperCase().replace(/^_XLFN\./, "").replace(/^_XLWS\./, "")), o = r;
1479
1479
  }
1480
1480
  return e;
1481
- }, No = class {
1481
+ }, Ro = class {
1482
1482
  constructor(t) {
1483
1483
  this._restored = [], this._byColumn = /* @__PURE__ */ new Map(), this._isKnown = t;
1484
1484
  }
1485
1485
  anchor(t, e, o) {
1486
1486
  const s = this._byColumn.get(e);
1487
1487
  s && t === s.rowEnd + 1 && t > s.rowStart && (s.closed = !0);
1488
- const r = Do(o);
1488
+ const r = $o(o);
1489
1489
  let n = !0;
1490
1490
  for (let t = 0; t < r.length && n; t++) n = this._isKnown(r[t]);
1491
1491
  const i = {
@@ -1505,29 +1505,29 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1505
1505
  return !(!s || s.rowStart !== t || s.colEnd !== e - 1) && (s.colEnd = e, this._byColumn.set(e, s), s.restored);
1506
1506
  }
1507
1507
  getFormulaArray() {
1508
- return this._restored.map((t) => [m.rangeToString(t), "dynamic"]);
1508
+ return this._restored.map((t) => [S.rangeToString(t), "dynamic"]);
1509
1509
  }
1510
- }, _o = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, $o = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, Mo = (t) => {
1511
- const e = $o.exec(t);
1510
+ }, Lo = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, Vo = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, jo = (t) => {
1511
+ const e = Vo.exec(t);
1512
1512
  if (!e) return null;
1513
- const o = m.fastStringToCol(e[2]), s = parseInt(e[4], 10) - 1;
1513
+ const o = S.fastStringToCol(e[2]), s = parseInt(e[4], 10) - 1;
1514
1514
  return o < 0 || s < 0 ? null : {
1515
1515
  row: s,
1516
1516
  col: o,
1517
1517
  colAbsolute: "$" === e[1],
1518
1518
  rowAbsolute: "$" === e[3]
1519
1519
  };
1520
- }, Ro = (t) => m.cellToString({
1520
+ }, Bo = (t) => S.cellToString({
1521
1521
  rowIndex: t.row,
1522
1522
  colIndex: t.col
1523
- }), Vo = (t, e) => {
1524
- const o = _o.exec(t);
1523
+ }), Fo = (t, e) => {
1524
+ const o = Lo.exec(t);
1525
1525
  if (!o) return null;
1526
1526
  const s = o[1].split(",");
1527
1527
  if (3 !== s.length && 5 !== s.length) return null;
1528
1528
  const r = [];
1529
1529
  for (let t = 0; t < s.length; t++) {
1530
- const e = Mo(s[t]);
1530
+ const e = jo(s[t]);
1531
1531
  if (!e) return null;
1532
1532
  r.push(e);
1533
1533
  }
@@ -1536,35 +1536,35 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1536
1536
  colStart: i,
1537
1537
  rowEnd: e.rowEnd,
1538
1538
  colEnd: e.colEnd
1539
- }, h = r[0];
1539
+ }, u = r[0];
1540
1540
  if (3 === r.length) {
1541
1541
  const [, t, e] = r;
1542
- return a(e) && l(h) ? {
1542
+ return a(e) && l(u) ? {
1543
1543
  ref: c,
1544
- columnInput: Ro(t)
1545
- } : l(e) && a(h) ? {
1544
+ columnInput: Bo(t)
1545
+ } : l(e) && a(u) ? {
1546
1546
  ref: c,
1547
- rowInput: Ro(t)
1547
+ rowInput: Bo(t)
1548
1548
  } : null;
1549
1549
  }
1550
- if (!h.rowAbsolute || !h.colAbsolute || h.row !== n - 1 || h.col !== i - 1) return null;
1551
- const [, u, d, p, f] = r;
1550
+ if (!u.rowAbsolute || !u.colAbsolute || u.row !== n - 1 || u.col !== i - 1) return null;
1551
+ const [, h, d, p, f] = r;
1552
1552
  return a(d) && l(f) ? {
1553
1553
  ref: c,
1554
- rowInput: Ro(p),
1555
- columnInput: Ro(u)
1554
+ rowInput: Bo(p),
1555
+ columnInput: Bo(h)
1556
1556
  } : l(d) && a(f) ? {
1557
1557
  ref: c,
1558
- rowInput: Ro(u),
1559
- columnInput: Ro(p)
1558
+ rowInput: Bo(h),
1559
+ columnInput: Bo(p)
1560
1560
  } : null;
1561
- }, Lo = /^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/, jo = /^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/, Bo = (t, e, o) => {
1561
+ }, Ho = /^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/, Wo = /^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/, zo = (t, e, o) => {
1562
1562
  const s = Math.floor((14 - e) / 12), r = t + 4800 - s, n = e + 12 * s - 3;
1563
1563
  return o + Math.floor((153 * n + 2) / 5) + 365 * r + Math.floor(r / 4) - Math.floor(r / 100) + Math.floor(r / 400) - 32045;
1564
- }, Fo = Bo(1899, 12, 30), Ho = (t) => {
1564
+ }, Xo = zo(1899, 12, 30), qo = (t) => {
1565
1565
  const e = t.indexOf(":");
1566
1566
  return -1 === e ? t : t.slice(e + 1);
1567
- }, Wo = class {
1567
+ }, Uo = class {
1568
1568
  constructor() {
1569
1569
  this._runs = null, this._text = "", this._font = null, this._inRun = !1, this._inRPr = !1;
1570
1570
  }
@@ -1575,31 +1575,31 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1575
1575
  "r" === t ? (this._inRun = !0, this._text = "", this._font = null, this._runs ??= []) : "rPr" === t ? this._inRun && (this._inRPr = !0) : this._inRPr && function(t, e, o) {
1576
1576
  switch (t) {
1577
1577
  case "b":
1578
- o.weight = qo(e) ? 700 : 400;
1578
+ o.weight = Jo(e) ? 700 : 400;
1579
1579
  break;
1580
1580
  case "i":
1581
- o.style = qo(e) ? l.Style.Italic : l.Style.Normal;
1581
+ o.style = Jo(e) ? l.Style.Italic : l.Style.Normal;
1582
1582
  break;
1583
1583
  case "strike":
1584
- o.strike = z(qo(e));
1584
+ o.strike = Vt(Jo(e));
1585
1585
  break;
1586
1586
  case "outline":
1587
- o.outline = qo(e);
1587
+ o.outline = Jo(e);
1588
1588
  break;
1589
1589
  case "shadow":
1590
- o.shadow = qo(e);
1590
+ o.shadow = Jo(e);
1591
1591
  break;
1592
1592
  case "condense":
1593
1593
  case "extend": {
1594
- const s = $(t, qo(e));
1594
+ const s = V(t, Jo(e));
1595
1595
  void 0 !== s && (o.letterSpacing = s);
1596
1596
  break;
1597
1597
  }
1598
1598
  case "u":
1599
- o.underline = it(e.val);
1599
+ o.underline = Gt(e.val);
1600
1600
  break;
1601
1601
  case "vertAlign": {
1602
- const t = zt(e.val);
1602
+ const t = J(e.val);
1603
1603
  void 0 !== t && (o.baseline = t);
1604
1604
  break;
1605
1605
  }
@@ -1614,7 +1614,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1614
1614
  break;
1615
1615
  }
1616
1616
  case "family": {
1617
- const t = Xo[e.val ?? ""];
1617
+ const t = Ko[e.val ?? ""];
1618
1618
  t && (o.fallbacks = [t]);
1619
1619
  break;
1620
1620
  }
@@ -1624,7 +1624,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1624
1624
  break;
1625
1625
  }
1626
1626
  case "scheme":
1627
- K(o, e.val);
1627
+ Ft(o, e.val);
1628
1628
  break;
1629
1629
  case "color": {
1630
1630
  const t = e.rgb;
@@ -1632,7 +1632,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1632
1632
  o.color = "#" + (8 === t.length ? t.substring(2) : t).toUpperCase();
1633
1633
  break;
1634
1634
  }
1635
- const s = Et((t) => e[t]);
1635
+ const s = ft((t) => e[t]);
1636
1636
  s && (o.color = s);
1637
1637
  break;
1638
1638
  }
@@ -1645,7 +1645,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1645
1645
  onCloseTag(t) {
1646
1646
  if ("rPr" === t) this._inRPr = !1, this._font ??= {};
1647
1647
  else if ("r" === t && this._inRun) {
1648
- const t = Ut(this._text), e = this._font;
1648
+ const t = W(this._text), e = this._font;
1649
1649
  this._runs.push(e ? {
1650
1650
  text: t,
1651
1651
  font: e
@@ -1659,7 +1659,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1659
1659
  return null;
1660
1660
  }
1661
1661
  };
1662
- function zo(t, e) {
1662
+ function Go(t, e) {
1663
1663
  const o = {
1664
1664
  family: "Calibri",
1665
1665
  size: 11,
@@ -1687,16 +1687,16 @@ function zo(t, e) {
1687
1687
  }
1688
1688
  return s;
1689
1689
  }
1690
- var Xo = {
1690
+ var Ko = {
1691
1691
  1: "serif",
1692
1692
  2: "sans-serif",
1693
1693
  3: "monospace",
1694
1694
  4: "cursive",
1695
1695
  5: "fantasy"
1696
- }, qo = (t) => {
1696
+ }, Jo = (t) => {
1697
1697
  const e = t.val;
1698
1698
  return void 0 === e || "1" === e || "true" === e;
1699
- }, Uo = (t) => {
1699
+ }, Zo = (t) => {
1700
1700
  const e = (e) => {
1701
1701
  if (t) return new RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([^<]*)<`).exec(t)?.[1];
1702
1702
  }, o = (t) => {
@@ -1706,22 +1706,22 @@ var Xo = {
1706
1706
  return {
1707
1707
  c: o(e("col")),
1708
1708
  r: o(e("row")),
1709
- x: tt(e("colOff") ?? "0") ?? 0,
1710
- y: tt(e("rowOff") ?? "0") ?? 0
1709
+ x: It(e("colOff") ?? "0") ?? 0,
1710
+ y: It(e("rowOff") ?? "0") ?? 0
1711
1711
  };
1712
- }, Go = "formulaDialect", Ko = "isKnownFunction", Jo = "date1904", Zo = "richStrings", Qo = "defaultFont", Yo = (t, e, o, s, r, n, i, a) => {
1713
- const l = new Co(), c = (t) => {
1714
- const e = t.getAttribute("dxfId", yo);
1712
+ }, Qo = "formulaDialect", Yo = "isKnownFunction", ts = "date1904", es = "richStrings", os = "defaultFont", ss = (t, e, o, s, r, n, i, a) => {
1713
+ const l = new Io(), c = (t) => {
1714
+ const e = t.getAttribute("dxfId", So);
1715
1715
  if (null !== e) return s?.get(e) || (n?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
1716
1716
  };
1717
- let h = !1;
1718
- const u = a?.get("parseInlineDxf"), d = a?.get(Go), f = (t) => d && t ? d.readDetached(t) : t, b = new x.TransposedBuilder();
1717
+ let u = !1;
1718
+ const h = a?.get("parseInlineDxf"), d = a?.get(Qo), f = (t) => d && t ? d.readDetached(t) : t, g = new m.TransposedBuilder();
1719
1719
  let y = null, w = "topLeft";
1720
1720
  l.registerVisitor({
1721
1721
  from: "autoFilter",
1722
1722
  to: "autoTable",
1723
1723
  openTag: (t) => {
1724
- const e = t.getAttribute("ref"), o = m.fastStringToRange(e);
1724
+ const e = t.getAttribute("ref"), o = S.fastStringToRange(e);
1725
1725
  t.getSource().r = o, t.getSource().v = {};
1726
1726
  },
1727
1727
  closeTag: (t) => {
@@ -1742,7 +1742,7 @@ var Xo = {
1742
1742
  const s = {
1743
1743
  r: o,
1744
1744
  conditionals: e.conditionals
1745
- }, r = t.getAttribute("pivot", vo);
1745
+ }, r = t.getAttribute("pivot", To);
1746
1746
  null !== r && (s.pivot = r), t.setSource(s);
1747
1747
  }
1748
1748
  }), l.registerVisitor({
@@ -1756,24 +1756,24 @@ var Xo = {
1756
1756
  r: e.r,
1757
1757
  v: null,
1758
1758
  rule: o
1759
- }), t.copyToObject(o, "type", wo), t.copyToObject(o, "priority", yo), t.copyToObject(o, "stopIfTrue", vo);
1760
- const r = t.getAttribute("dxfId", yo);
1759
+ }), t.copyToObject(o, "type", Ao), t.copyToObject(o, "priority", So), t.copyToObject(o, "stopIfTrue", To);
1760
+ const r = t.getAttribute("dxfId", So);
1761
1761
  if (null !== r) {
1762
1762
  let e = s?.get(r);
1763
1763
  e || (n?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${t.getPath()}'.`), e = {}), o.style = e;
1764
1764
  }
1765
- t.copyToObject(o, "aboveAverage", vo), t.copyToObject(o, "equalAverage", vo), t.copyToObject(o, "stdDev", yo), t.copyToObject(o, "bottom", vo), t.copyToObject(o, "percent", vo), t.copyToObject(o, "rank", yo), t.copyToObject(o, "operator", wo), t.copyToObject(o, "text", wo), t.copyToObject(o, "timePeriod", wo);
1765
+ t.copyToObject(o, "aboveAverage", To), t.copyToObject(o, "equalAverage", To), t.copyToObject(o, "stdDev", So), t.copyToObject(o, "bottom", To), t.copyToObject(o, "percent", To), t.copyToObject(o, "rank", So), t.copyToObject(o, "operator", Ao), t.copyToObject(o, "text", Ao), t.copyToObject(o, "timePeriod", Ao);
1766
1766
  },
1767
1767
  closeTag: (t) => {
1768
1768
  const e = t.getParent();
1769
1769
  if (!e?.r) return;
1770
1770
  const o = e.conditionals[e.conditionals.length - 1], s = o?.rule;
1771
1771
  if (!s) return;
1772
- const r = {}, i = F(s, n);
1772
+ const r = {}, i = Qt(s, n);
1773
1773
  i && (r.condition = i), s.style && (r.style = s.style), s.scale && (r.scale = s.scale), s.stopIfTrue && (r.stopIfTrue = !0), s.pivot && "number" == typeof s.priority && (r.pivotKey = s.priority), o.v = r, o.priority = s.priority, s.x14Id && (o.x14Id = s.x14Id), delete o.rule;
1774
1774
  }
1775
1775
  });
1776
- const S = (t) => {
1776
+ const T = (t) => {
1777
1777
  const e = t.conditions ?? [], o = [];
1778
1778
  for (let t = 0; t < e.length; t++) {
1779
1779
  const s = e[t], r = {};
@@ -1786,10 +1786,10 @@ var Xo = {
1786
1786
  to: {},
1787
1787
  openTag: (t) => {},
1788
1788
  closeTag: (t) => {
1789
- const e = t.getSource(), o = e.colors ?? [], s = S(e);
1789
+ const e = t.getSource(), o = e.colors ?? [], s = T(e);
1790
1790
  for (let t = 0; t < s.length; t++) s[t].color = o[t];
1791
1791
  t.getParent().scale = {
1792
- type: g.ScaleType.ColorScale,
1792
+ type: b.ScaleType.ColorScale,
1793
1793
  stops: s
1794
1794
  };
1795
1795
  }
@@ -1797,12 +1797,12 @@ var Xo = {
1797
1797
  from: "dataBar",
1798
1798
  to: {},
1799
1799
  openTag: (t) => {
1800
- t.copyTo("maxLength", yo), t.copyTo("minLength", yo), t.copyTo("showValue", vo);
1800
+ t.copyTo("maxLength", So), t.copyTo("minLength", So), t.copyTo("showValue", To);
1801
1801
  },
1802
1802
  closeTag: (t) => {
1803
1803
  const e = t.getSource(), o = {
1804
- type: g.ScaleType.DataBar,
1805
- stops: S(e)
1804
+ type: b.ScaleType.DataBar,
1805
+ stops: T(e)
1806
1806
  }, s = e.colors?.[0];
1807
1807
  s && (o.color = s), void 0 !== e.minLength && (o.minLength = e.minLength), void 0 !== e.maxLength && (o.maxLength = e.maxLength), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
1808
1808
  }
@@ -1810,12 +1810,12 @@ var Xo = {
1810
1810
  from: "iconSet",
1811
1811
  to: {},
1812
1812
  openTag: (t) => {
1813
- t.copyTo("iconSet", wo), t.copyTo("reverse", vo), t.copyTo("showValue", vo);
1813
+ t.copyTo("iconSet", Ao), t.copyTo("reverse", To), t.copyTo("showValue", To);
1814
1814
  },
1815
1815
  closeTag: (t) => {
1816
1816
  const e = t.getSource(), o = {
1817
- type: g.ScaleType.IconSet,
1818
- stops: S(e)
1817
+ type: b.ScaleType.IconSet,
1818
+ stops: T(e)
1819
1819
  };
1820
1820
  void 0 !== e.iconSet && (o.iconSet = e.iconSet), void 0 !== e.reverse && (o.reverse = e.reverse), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
1821
1821
  }
@@ -1834,11 +1834,11 @@ var Xo = {
1834
1834
  const e = t.getParent();
1835
1835
  e.conditions || (e.conditions = []);
1836
1836
  const o = t.getSource();
1837
- if (e.conditions.push(o), t.copyTo("type", wo), o.type === g.ColorStopType.Formula) {
1837
+ if (e.conditions.push(o), t.copyTo("type", Ao), o.type === b.ColorStopType.Formula) {
1838
1838
  const e = t.getAttribute("val");
1839
1839
  null != e && (o.value = f(String(e)));
1840
- } else t.copyTo("value", xo, "val");
1841
- !1 === t.getAttribute("gte", vo) && (o.exclusive = !0);
1840
+ } else t.copyTo("value", ko, "val");
1841
+ !1 === t.getAttribute("gte", To) && (o.exclusive = !0);
1842
1842
  }
1843
1843
  }), l.registerVisitor({
1844
1844
  from: "color",
@@ -1846,7 +1846,7 @@ var Xo = {
1846
1846
  openTag: (t) => {
1847
1847
  const e = t.getParent();
1848
1848
  e.colors || (e.colors = []);
1849
- const o = Et((e) => t.getAttribute(e));
1849
+ const o = ft((e) => t.getAttribute(e));
1850
1850
  e.colors.push(o);
1851
1851
  }
1852
1852
  }), l.registerVisitor({
@@ -1858,11 +1858,11 @@ var Xo = {
1858
1858
  let r = e.filter;
1859
1859
  r || (r = { conditions: [] }, e.filter = r);
1860
1860
  let n = r.conditions;
1861
- if (n || (n = [], r.conditions = n), n.push(s), t.getAttribute("hiddenButton", vo) && e) {
1861
+ if (n || (n = [], r.conditions = n), n.push(s), t.getAttribute("hiddenButton", To) && e) {
1862
1862
  let t = e.hiddenButtons;
1863
1863
  t || (t = [], e.hiddenButtons = t), t.push(o);
1864
1864
  }
1865
- if (t.getAttribute("showButton", vo) && e) {
1865
+ if (t.getAttribute("showButton", To) && e) {
1866
1866
  let t = e.showButtons;
1867
1867
  t || (t = [], e.showButtons = t), t.push(o);
1868
1868
  }
@@ -1872,7 +1872,7 @@ var Xo = {
1872
1872
  from: "colorFilter",
1873
1873
  openTag: (t) => {
1874
1874
  const e = t.getParent(), o = {};
1875
- e.operator = v.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", vo);
1875
+ e.operator = x.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", To);
1876
1876
  const s = c(t);
1877
1877
  s && (o.style = s);
1878
1878
  }
@@ -1880,63 +1880,63 @@ var Xo = {
1880
1880
  from: "iconFilter",
1881
1881
  openTag: (t) => {
1882
1882
  const e = t.getParent(), o = {};
1883
- e.operator = v.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", yo), t.copyToObject(o, "iconSet", wo);
1883
+ e.operator = x.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", So), t.copyToObject(o, "iconSet", Ao);
1884
1884
  }
1885
1885
  }), l.registerVisitor({
1886
1886
  from: "top10",
1887
1887
  openTag: (t) => {
1888
1888
  const e = t.getParent(), o = {};
1889
- e.operator = v.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", xo), t.copyToObject(o, "percent", vo), t.copyToObject(o, "top", vo), t.copyToObject(o, "limit", xo, "val");
1889
+ e.operator = x.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", ko), t.copyToObject(o, "percent", To), t.copyToObject(o, "top", To), t.copyToObject(o, "limit", ko, "val");
1890
1890
  }
1891
1891
  }), l.registerVisitor({
1892
1892
  from: "dynamicFilter",
1893
1893
  openTag: (t) => {
1894
- const e = t.getParent(), o = ot(t.getAttribute("type"), t.getAttribute("val"), t.getAttribute("maxVal"));
1894
+ const e = t.getParent(), o = wt(t.getAttribute("type"), t.getAttribute("val"), t.getAttribute("maxVal"));
1895
1895
  e.operator = o.operator, e.param = o.param;
1896
1896
  }
1897
1897
  });
1898
- const C = {
1898
+ const k = {
1899
1899
  from: "filters",
1900
1900
  to: {},
1901
1901
  openTag: (t) => {
1902
1902
  const e = t.getParent(), o = {};
1903
- return e.selector = v.BuiltInSelectorNames.Display, e.operator = v.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", vo), t.copyToObject(o, "calendarType", wo), o;
1903
+ return e.selector = x.BuiltInSelectorNames.Display, e.operator = x.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", To), t.copyToObject(o, "calendarType", Ao), o;
1904
1904
  }
1905
1905
  };
1906
- l.registerVisitor(C);
1906
+ l.registerVisitor(k);
1907
1907
  const A = {
1908
1908
  from: "filter",
1909
1909
  openTag: (t) => {
1910
1910
  const e = t.getParent();
1911
1911
  let o = e.items;
1912
- o || (o = [], e.items = o), o.push(t.getAttribute("val", wo));
1912
+ o || (o = [], e.items = o), o.push(t.getAttribute("val", Ao));
1913
1913
  }
1914
1914
  };
1915
1915
  l.registerVisitor(A);
1916
- const k = {
1916
+ const C = {
1917
1917
  from: "dateGroupItem",
1918
1918
  to: {},
1919
1919
  openTag: (t) => {
1920
1920
  const e = t.getParent();
1921
1921
  let o = e.dateGroups;
1922
- o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", wo, "dateTimeGrouping"), t.copyTo("day", yo), t.copyTo("hour", yo), t.copyTo("minute", yo), t.copyTo("month", yo), t.copyTo("second", yo), t.copyTo("year", yo);
1922
+ o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", Ao, "dateTimeGrouping"), t.copyTo("day", So), t.copyTo("hour", So), t.copyTo("minute", So), t.copyTo("month", So), t.copyTo("second", So), t.copyTo("year", So);
1923
1923
  }
1924
1924
  };
1925
- l.registerVisitor(k);
1925
+ l.registerVisitor(C);
1926
1926
  const E = /* @__PURE__ */ new Map();
1927
1927
  E.set("filterColumn", {
1928
1928
  from: "filterColumn",
1929
1929
  transparent: !0
1930
- }), E.set("filters", C), E.set("filter", A), E.set("dateGroupItem", k), l.registerVisitor({
1930
+ }), E.set("filters", k), E.set("filter", A), E.set("dateGroupItem", C), l.registerVisitor({
1931
1931
  from: "customFilters",
1932
1932
  openTag: (t) => {
1933
1933
  const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
1934
- return e.operator = s ? v.BuiltInOperatorNames.And : v.BuiltInOperatorNames.Or, e.param = r, t.setSource(e), r;
1934
+ return e.operator = s ? x.BuiltInOperatorNames.And : x.BuiltInOperatorNames.Or, e.param = r, t.setSource(e), r;
1935
1935
  },
1936
1936
  closeTag: (t) => {
1937
1937
  const e = t.getSource(), o = e?.param;
1938
1938
  if (!e || !o) return;
1939
- const s = 1 === o.length ? o[0] : Tt(e);
1939
+ const s = 1 === o.length ? o[0] : q(e);
1940
1940
  s !== e && (e.operator = s.operator, e.param = s.param);
1941
1941
  }
1942
1942
  }), l.registerVisitor({
@@ -1945,7 +1945,7 @@ var Xo = {
1945
1945
  const e = t.getParent();
1946
1946
  let o;
1947
1947
  Array.isArray(e) ? (o = {}, e.push(o)) : o = e;
1948
- const s = q({
1948
+ const s = Mt({
1949
1949
  operator: t.getAttribute("operator"),
1950
1950
  val: t.getAttribute("val")
1951
1951
  }, (e) => t.warn(e));
@@ -1962,15 +1962,15 @@ var Xo = {
1962
1962
  if (!o) return;
1963
1963
  const s = {};
1964
1964
  I = {};
1965
- const r = t.getAttribute("caseSensitive", vo);
1966
- null != r && (I.collatorOptions = r ? T.CaseSensitiveOptions : T.CaseInsensitiveOptions);
1965
+ const r = t.getAttribute("caseSensitive", To);
1966
+ null != r && (I.collatorOptions = r ? v.CaseSensitiveOptions : v.CaseInsensitiveOptions);
1967
1967
  const n = t.getAttribute("sortMethod");
1968
1968
  "stroke" !== n && "pinYin" !== n || (I.collatorOptions = {
1969
1969
  ...I.collatorOptions,
1970
1970
  collation: "stroke" === n ? "stroke" : "pinyin"
1971
- }), t.getAttribute("columnSort", vo) && (s.axis = p.Axis.Column);
1971
+ }), t.getAttribute("columnSort", To) && (s.axis = p.Axis.Column);
1972
1972
  const i = t.getAttribute("ref"), a = e.r;
1973
- P = i && a ? m.fastStringToRange(i) : null, P && (s.extent = { range: Ot(a, P) }), o.sort = s, t.setSource(e);
1973
+ P = i && a ? S.fastStringToRange(i) : null, P && (s.extent = { range: Lt(a, P) }), o.sort = s, t.setSource(e);
1974
1974
  }
1975
1975
  }), l.registerVisitor({
1976
1976
  from: "sortCondition",
@@ -1985,14 +1985,14 @@ var Xo = {
1985
1985
  const n = t.getAttribute("ref");
1986
1986
  let i = 0, a = null;
1987
1987
  if (n) {
1988
- const t = m.fastStringToRange(n, ss), o = t.colStart, s = e.r, r = s.colStart;
1989
- i = s ? o - r : o, s && P && (a = R(s, P, t));
1988
+ const t = S.fastStringToRange(n, as), o = t.colStart, s = e.r, r = s.colStart;
1989
+ i = s ? o - r : o, s && P && (a = _t(s, P, t));
1990
1990
  }
1991
1991
  s.extent && (s.extent.sorts ??= []).push(a);
1992
- const l = { ...I }, h = st(t.getAttribute("sortBy"));
1993
- h && (l.sortOn = h);
1994
- const u = c(t);
1995
- u && (l.style = u), t.copyToObject(l, "iconSet", wo), t.copyToObject(l, "customList", wo), l.reverse = t.getAttribute("descending", vo) ?? !1;
1992
+ const l = { ...I }, u = qt(t.getAttribute("sortBy"));
1993
+ u && (l.sortOn = u);
1994
+ const h = c(t);
1995
+ h && (l.style = h), t.copyToObject(l, "iconSet", Ao), t.copyToObject(l, "customList", Ao), l.reverse = t.getAttribute("descending", To) ?? !1;
1996
1996
  const d = {
1997
1997
  index: i,
1998
1998
  criteria: l
@@ -2001,15 +2001,15 @@ var Xo = {
2001
2001
  }
2002
2002
  });
2003
2003
  const O = (t) => {
2004
- y = t.getSource(), w = "topLeft", t.copyTo("topLeft", wo, "topLeftCell");
2005
- const e = ht(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
2006
- null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", vo), t.copyTo("showFormulas", vo), t.copyTo("zoomScale", yo), t.copyTo("viewMode", wo, "view");
2004
+ y = t.getSource(), w = "topLeft", t.copyTo("topLeft", Ao, "topLeftCell");
2005
+ const e = ct(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
2006
+ null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", To), t.copyTo("showFormulas", To), t.copyTo("zoomScale", So), t.copyTo("viewMode", Ao, "view");
2007
2007
  const s = {};
2008
- for (const [e, o] of Lt) {
2009
- const r = t.getAttribute(o, yo);
2008
+ for (const [e, o] of Yt) {
2009
+ const r = t.getAttribute(o, So);
2010
2010
  r && (s[e] = Math.min(400, Math.max(10, r)));
2011
2011
  }
2012
- Object.keys(s).length > 0 && (t.getSource().zoomScales = s), t.copyTo("showRuler", vo), t.copyTo("showWhitespace", vo, "showWhiteSpace"), t.copyTo("windowProtection", vo), t.copyTo("showRowHeaders", vo, "showRowColHeaders"), t.copyTo("showColumnHeaders", vo, "showRowColHeaders"), t.copyTo("showRowGridlines", vo, "showGridLines"), t.copyTo("showColumnGridlines", vo, "showGridLines"), t.copyTo("rightToLeft", vo), t.copyTo("showOutlineSymbols", vo);
2012
+ Object.keys(s).length > 0 && (t.getSource().zoomScales = s), t.copyTo("showRuler", To), t.copyTo("showWhitespace", To, "showWhiteSpace"), t.copyTo("windowProtection", To), t.copyTo("showRowHeaders", To, "showRowColHeaders"), t.copyTo("showColumnHeaders", To, "showRowColHeaders"), t.copyTo("showRowGridlines", To, "showGridLines"), t.copyTo("showColumnGridlines", To, "showGridLines"), t.copyTo("rightToLeft", To), t.copyTo("showOutlineSymbols", To);
2013
2013
  };
2014
2014
  l.registerVisitor({
2015
2015
  from: "sheetView",
@@ -2051,7 +2051,7 @@ var Xo = {
2051
2051
  }
2052
2052
  const r = {};
2053
2053
  e && (r.cell = e);
2054
- const n = t.getAttribute("activeCellId", yo);
2054
+ const n = t.getAttribute("activeCellId", So);
2055
2055
  null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)), y.selection = r;
2056
2056
  }
2057
2057
  }), l.registerVisitor({
@@ -2063,20 +2063,20 @@ var Xo = {
2063
2063
  const e = t.getAttribute("state");
2064
2064
  if ("frozen" === e || "frozenSplit" === e) {
2065
2065
  const e = {};
2066
- y.freezePanes = e, t.copyToObject(e, "topLeft", wo, "topLeftCell");
2067
- const o = (y.topLeft ? m.fastStringToCell(y.topLeft) : void 0) ?? {
2066
+ y.freezePanes = e, t.copyToObject(e, "topLeft", Ao, "topLeftCell");
2067
+ const o = (y.topLeft ? S.fastStringToCell(y.topLeft) : void 0) ?? {
2068
2068
  colIndex: 0,
2069
2069
  rowIndex: 0
2070
2070
  }, s = {
2071
2071
  colIndex: 0,
2072
2072
  rowIndex: 0
2073
2073
  };
2074
- t.copyToObject(s, "colIndex", yo, "xSplit"), t.copyToObject(s, "rowIndex", yo, "ySplit");
2074
+ t.copyToObject(s, "colIndex", So, "xSplit"), t.copyToObject(s, "rowIndex", So, "ySplit");
2075
2075
  const r = {
2076
2076
  colIndex: o.colIndex + s.colIndex,
2077
2077
  rowIndex: o.rowIndex + s.rowIndex
2078
2078
  };
2079
- e.coords = m.cellToString(r);
2079
+ e.coords = S.cellToString(r);
2080
2080
  }
2081
2081
  }
2082
2082
  }), l.registerVisitor({
@@ -2084,9 +2084,9 @@ var Xo = {
2084
2084
  transparent: !0,
2085
2085
  openTag: (e) => {
2086
2086
  const o = e.getAttribute("codeName");
2087
- o && (t.codeName = o), !1 === e.getAttribute("enableFormatConditionsCalculation", vo) && (t.conditionalFormatCalculation = !1), !0 === e.getAttribute("transitionEvaluation", vo) && (t.transitionFormulaEvaluation = !0), !0 === e.getAttribute("transitionEntry", vo) && (t.transitionFormulaEntry = !0), !1 === e.getAttribute("published", vo) && (t.excludeFromPublishing = !0);
2087
+ o && (t.codeName = o), !1 === e.getAttribute("enableFormatConditionsCalculation", To) && (t.conditionalFormatCalculation = !1), !0 === e.getAttribute("transitionEvaluation", To) && (t.transitionFormulaEvaluation = !0), !0 === e.getAttribute("transitionEntry", To) && (t.transitionFormulaEntry = !0), !1 === e.getAttribute("published", To) && (t.excludeFromPublishing = !0);
2088
2088
  const s = {};
2089
- !0 === e.getAttribute("syncHorizontal", vo) && (s.horizontal = !0), !0 === e.getAttribute("syncVertical", vo) && (s.vertical = !0);
2089
+ !0 === e.getAttribute("syncHorizontal", To) && (s.horizontal = !0), !0 === e.getAttribute("syncVertical", To) && (s.vertical = !0);
2090
2090
  const r = e.getAttribute("syncRef");
2091
2091
  r && (s.anchor = r), Object.keys(s).length > 0 && (t.syncScroll = s);
2092
2092
  }
@@ -2094,7 +2094,7 @@ var Xo = {
2094
2094
  from: "tabColor",
2095
2095
  to: null,
2096
2096
  openTag: (e) => {
2097
- const o = Et((t) => e.getAttribute(t));
2097
+ const o = ft((t) => e.getAttribute(t));
2098
2098
  o && (t.tabColor = o);
2099
2099
  }
2100
2100
  });
@@ -2104,7 +2104,7 @@ var Xo = {
2104
2104
  from: "pageSetUpPr",
2105
2105
  to: null,
2106
2106
  openTag: (t) => {
2107
- !0 === t.getAttribute("fitToPage", vo) && (N().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", vo) && (N().hideAutoPageBreaks = !0);
2107
+ !0 === t.getAttribute("fitToPage", To) && (N().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", To) && (N().hideAutoPageBreaks = !0);
2108
2108
  }
2109
2109
  }), l.registerVisitor({
2110
2110
  from: "outlinePr",
@@ -2124,7 +2124,7 @@ var Xo = {
2124
2124
  to: null,
2125
2125
  openTag: (t) => {
2126
2126
  if (D) return;
2127
- const e = (e, o) => t.getAttribute(e, xo) ?? o, o = {
2127
+ const e = (e, o) => t.getAttribute(e, ko) ?? o, o = {
2128
2128
  left: e("left", .7),
2129
2129
  right: e("right", .7),
2130
2130
  top: e("top", .75),
@@ -2139,7 +2139,7 @@ var Xo = {
2139
2139
  to: null,
2140
2140
  openTag: (t) => {
2141
2141
  if (D) return;
2142
- const o = N(), s = (e) => t.getAttribute(e, yo) ?? void 0, r = (e) => t.getAttribute(e, vo), n = t.getAttribute("orientation");
2142
+ const o = N(), s = (e) => t.getAttribute(e, So) ?? void 0, r = (e) => t.getAttribute(e, To), n = t.getAttribute("orientation");
2143
2143
  "landscape" !== n && "portrait" !== n || (o.orientation = n);
2144
2144
  for (const t of [
2145
2145
  "paperSize",
@@ -2158,10 +2158,10 @@ var Xo = {
2158
2158
  i && (o.paperHeight = i);
2159
2159
  const a = t.getAttribute("paperWidth");
2160
2160
  a && (o.paperWidth = a), "overThenDown" === t.getAttribute("pageOrder") && (o.printOrder = "overThenDown"), !0 === r("blackAndWhite") && (o.blackAndWhite = !0), !0 === r("draft") && (o.draftMode = !0), !0 === r("useFirstPageNumber") && (o.useFirstPageNumber = !0), !1 === r("usePrinterDefaults") && (o.ignorePrinterDefaults = !0);
2161
- const l = t.getAttribute("cellComments"), c = pt.find(([t]) => t === l)?.[1];
2161
+ const l = t.getAttribute("cellComments"), c = rt.find(([t]) => t === l)?.[1];
2162
2162
  c && (o.printComments = c);
2163
- const h = t.getAttribute("errors"), u = bt.find(([t]) => t === h)?.[1];
2164
- u && (o.printErrors = u);
2163
+ const u = t.getAttribute("errors"), h = Y.find(([t]) => t === u)?.[1];
2164
+ h && (o.printErrors = h);
2165
2165
  const d = t.getAttribute("r:id"), p = d ? e(d, "part") : null;
2166
2166
  p && (o.printerSettings = p);
2167
2167
  }
@@ -2170,7 +2170,7 @@ var Xo = {
2170
2170
  to: null,
2171
2171
  openTag: (t) => {
2172
2172
  if (D) return;
2173
- const e = (e) => !0 === t.getAttribute(e, vo);
2173
+ const e = (e) => !0 === t.getAttribute(e, To);
2174
2174
  e("horizontalCentered") && (N().centerHorizontally = !0), e("verticalCentered") && (N().centerVertically = !0), e("gridLines") && (N().printGridlines = !0), e("headings") && (N().printHeadings = !0);
2175
2175
  }
2176
2176
  }), l.registerVisitor({
@@ -2178,17 +2178,17 @@ var Xo = {
2178
2178
  to: {},
2179
2179
  openTag: (t) => {
2180
2180
  if (D) return;
2181
- const e = {}, o = (e) => t.getAttribute(e, vo);
2181
+ const e = {}, o = (e) => t.getAttribute(e, To);
2182
2182
  !0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (N().headerFooter = e);
2183
2183
  }
2184
2184
  });
2185
- for (const t of Nt) l.registerVisitor({
2185
+ for (const t of et) l.registerVisitor({
2186
2186
  from: t,
2187
2187
  to: {},
2188
2188
  text: (e, o) => {
2189
2189
  if (D) return;
2190
2190
  const s = N(), r = s.headerFooter ??= {};
2191
- r[t] = (r[t] ?? "") + Ut(e);
2191
+ r[t] = (r[t] ?? "") + W(e);
2192
2192
  }
2193
2193
  });
2194
2194
  let _ = "rowBreaks";
@@ -2204,12 +2204,12 @@ var Xo = {
2204
2204
  to: null,
2205
2205
  openTag: (t) => {
2206
2206
  if (D) return;
2207
- const e = t.getAttribute("id", yo);
2207
+ const e = t.getAttribute("id", So);
2208
2208
  if (null == e) return;
2209
- const o = { index: e }, s = t.getAttribute("min", yo);
2209
+ const o = { index: e }, s = t.getAttribute("min", So);
2210
2210
  null != s && (o.min = s);
2211
- const r = t.getAttribute("max", yo);
2212
- null != r && (o.max = r), !0 !== t.getAttribute("man", vo) && (o.automatic = !0), !0 === t.getAttribute("pt", vo) && (o.pivot = !0);
2211
+ const r = t.getAttribute("max", So);
2212
+ null != r && (o.max = r), !0 !== t.getAttribute("man", To) && (o.automatic = !0), !0 === t.getAttribute("pt", To) && (o.pivot = !0);
2213
2213
  const n = N();
2214
2214
  (n[_] ??= []).push(o);
2215
2215
  }
@@ -2223,7 +2223,7 @@ var Xo = {
2223
2223
  const o = e.getAttribute("sqref");
2224
2224
  if (!o) return;
2225
2225
  const s = [];
2226
- for (const t of J) !0 === e.getAttribute(t, vo) && s.push(t);
2226
+ for (const t of B) !0 === e.getAttribute(t, To) && s.push(t);
2227
2227
  if (0 !== s.length) for (const e of o.trim().split(/\s+/)) (t.ignoredErrors ??= []).push({
2228
2228
  r: e,
2229
2229
  v: s
@@ -2241,17 +2241,17 @@ var Xo = {
2241
2241
  openTag: (e) => {
2242
2242
  e.setSource([]);
2243
2243
  const o = {};
2244
- !0 === e.getAttribute("disablePrompts", vo) && (o.disablePrompts = !0);
2245
- const s = e.getAttribute("xWindow", yo);
2244
+ !0 === e.getAttribute("disablePrompts", To) && (o.disablePrompts = !0);
2245
+ const s = e.getAttribute("xWindow", So);
2246
2246
  null !== s && (o.windowX = s);
2247
- const r = e.getAttribute("yWindow", yo);
2247
+ const r = e.getAttribute("yWindow", So);
2248
2248
  null !== r && (o.windowY = r), Object.keys(o).length > 0 && (t.validationSettings = {
2249
2249
  ...t.validationSettings,
2250
2250
  ...o
2251
2251
  });
2252
2252
  }
2253
2253
  });
2254
- const $ = {
2254
+ const M = {
2255
2255
  from: "dataValidation",
2256
2256
  to: [],
2257
2257
  openTag: (t) => {
@@ -2265,28 +2265,28 @@ var Xo = {
2265
2265
  operator: t.getAttribute("operator") ?? void 0
2266
2266
  }
2267
2267
  };
2268
- !0 === t.getAttribute("showDropDown", vo) && (o.hideDropdown = !0), t.copyToObject(o, "alert", wo, "error"), t.copyToObject(o, "alertTitle", wo, "errorTitle"), t.copyToObject(o, "showAlertMessage", vo, "showErrorMessage"), o.alertStyle = t.getAttribute("errorStyle") ?? "stop", t.copyToObject(o, "imeMode"), t.copyToObject(o, "prompt"), t.copyToObject(o, "promptTitle"), t.copyToObject(o, "showPromptMessage", vo, "showInputMessage"), t.setSource(s);
2268
+ !0 === t.getAttribute("showDropDown", To) && (o.hideDropdown = !0), t.copyToObject(o, "alert", Ao, "error"), t.copyToObject(o, "alertTitle", Ao, "errorTitle"), t.copyToObject(o, "showAlertMessage", To, "showErrorMessage"), o.alertStyle = t.getAttribute("errorStyle") ?? "stop", t.copyToObject(o, "imeMode"), t.copyToObject(o, "prompt"), t.copyToObject(o, "promptTitle"), t.copyToObject(o, "showPromptMessage", To, "showInputMessage"), t.setSource(s);
2269
2269
  },
2270
2270
  closeTag: (t) => {
2271
2271
  const e = t.getSource();
2272
2272
  if (!e?.rule) return;
2273
- const o = Zt(e.rule, n);
2274
- o && (t.getAttribute("allowBlank", vo) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
2273
+ const o = ot(e.rule, n);
2274
+ o && (t.getAttribute("allowBlank", To) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
2275
2275
  }
2276
2276
  };
2277
- l.registerVisitor($), l.registerVisitor({
2277
+ l.registerVisitor(M), l.registerVisitor({
2278
2278
  from: "formula1",
2279
2279
  to: {},
2280
2280
  text: (t, e) => {
2281
2281
  const o = e.getParent().rule;
2282
- o?.type && (o.formula1 = It(f(t), o.type));
2282
+ o?.type && (o.formula1 = oe(f(t), o.type));
2283
2283
  }
2284
2284
  }), l.registerVisitor({
2285
2285
  from: "formula2",
2286
2286
  to: {},
2287
2287
  text: (t, e) => {
2288
2288
  const o = e.getParent().rule;
2289
- o?.type && (o.formula2 = It(f(t), o.type));
2289
+ o?.type && (o.formula2 = oe(f(t), o.type));
2290
2290
  }
2291
2291
  }), l.registerVisitor({
2292
2292
  from: "picture",
@@ -2298,7 +2298,7 @@ var Xo = {
2298
2298
  t.getSource().resId = s;
2299
2299
  }
2300
2300
  });
2301
- const V = {
2301
+ const R = {
2302
2302
  from: "slicer",
2303
2303
  to: {},
2304
2304
  openTag: (t) => {
@@ -2310,8 +2310,8 @@ var Xo = {
2310
2310
  for (const t of n) r.slicers[t] = s[t];
2311
2311
  }
2312
2312
  };
2313
- l.registerVisitor(V);
2314
- const L = {
2313
+ l.registerVisitor(R);
2314
+ const V = {
2315
2315
  from: "timelineRef",
2316
2316
  to: {},
2317
2317
  openTag: (t) => {
@@ -2333,8 +2333,8 @@ var Xo = {
2333
2333
  closeTag: (t) => {
2334
2334
  e(String(t.getSource() ?? ""), t);
2335
2335
  }
2336
- }), B = /* @__PURE__ */ new Map();
2337
- B.set("dataValidations", {
2336
+ }), F = /* @__PURE__ */ new Map();
2337
+ F.set("dataValidations", {
2338
2338
  from: "dataValidations",
2339
2339
  to: "validations",
2340
2340
  openTag: (t) => {
@@ -2344,10 +2344,10 @@ var Xo = {
2344
2344
  closeTag: (t) => {
2345
2345
  0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
2346
2346
  }
2347
- }), B.set("dataValidation", {
2348
- ...$,
2347
+ }), F.set("dataValidation", {
2348
+ ...M,
2349
2349
  closeTag: (t) => {
2350
- $.closeTag(t);
2350
+ M.closeTag(t);
2351
2351
  const e = t.getSource();
2352
2352
  e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
2353
2353
  }
@@ -2362,18 +2362,18 @@ var Xo = {
2362
2362
  });
2363
2363
  }
2364
2364
  });
2365
- B.set("formula1", H("formula1")), B.set("formula2", H("formula2")), B.set("f", j("f", (t, e) => {
2365
+ F.set("formula1", H("formula1")), F.set("formula2", H("formula2")), F.set("f", j("f", (t, e) => {
2366
2366
  const o = e.getParent(), s = o?.rule;
2367
- s && (s[o.key] = It(f(t), s.type));
2368
- })), B.set("sqref", j("sqref", (t, e) => {
2367
+ s && (s[o.key] = oe(f(t), s.type));
2368
+ })), F.set("sqref", j("sqref", (t, e) => {
2369
2369
  const o = e.getParent(), s = t.trim();
2370
2370
  o && s && (o.r = s.split(/\s+/).join(","));
2371
2371
  }));
2372
- const W = /* @__PURE__ */ new Map(), z = [], X = /* @__PURE__ */ new Map();
2373
- X.set("conditionalFormattings", {
2372
+ const z = /* @__PURE__ */ new Map(), X = [], G = /* @__PURE__ */ new Map();
2373
+ G.set("conditionalFormattings", {
2374
2374
  from: "conditionalFormattings",
2375
2375
  transparent: !0
2376
- }), X.set("conditionalFormatting", {
2376
+ }), G.set("conditionalFormatting", {
2377
2377
  from: "conditionalFormatting",
2378
2378
  to: {},
2379
2379
  openTag: (t) => {
@@ -2383,85 +2383,85 @@ var Xo = {
2383
2383
  const e = t.getSource(), o = e?.rules ?? [];
2384
2384
  for (let t = 0; t < o.length; t++) {
2385
2385
  const s = o[t];
2386
- s.sqref = e.sqref, s.id ? W.set(s.id, s) : z.push(s);
2386
+ s.sqref = e.sqref, s.id ? z.set(s.id, s) : X.push(s);
2387
2387
  }
2388
2388
  }
2389
- }), X.set("cfRule", {
2389
+ }), G.set("cfRule", {
2390
2390
  from: "cfRule",
2391
2391
  to: {},
2392
2392
  openTag: (t) => {
2393
- t.copyTo("id", wo), t.copyTo("type", wo), t.copyTo("priority", yo), t.copyTo("stopIfTrue", vo), t.copyTo("operator", wo), t.copyTo("text", wo), t.copyTo("timePeriod", wo), t.copyTo("aboveAverage", vo), t.copyTo("equalAverage", vo), t.copyTo("stdDev", yo), t.copyTo("bottom", vo), t.copyTo("percent", vo), t.copyTo("rank", yo);
2393
+ t.copyTo("id", Ao), t.copyTo("type", Ao), t.copyTo("priority", So), t.copyTo("stopIfTrue", To), t.copyTo("operator", Ao), t.copyTo("text", Ao), t.copyTo("timePeriod", Ao), t.copyTo("aboveAverage", To), t.copyTo("equalAverage", To), t.copyTo("stdDev", So), t.copyTo("bottom", To), t.copyTo("percent", To), t.copyTo("rank", So);
2394
2394
  },
2395
2395
  closeTag: (t) => {
2396
2396
  const e = t.getSource();
2397
2397
  e && t.getParent()?.rules?.push(e);
2398
2398
  }
2399
- }), X.set("sqref", j("sqref", (t, e) => {
2399
+ }), G.set("sqref", j("sqref", (t, e) => {
2400
2400
  const o = e.getParent(), s = t.trim();
2401
2401
  o && s && (o.sqref = s);
2402
- })), X.set("dataBar", {
2402
+ })), G.set("dataBar", {
2403
2403
  from: "dataBar",
2404
2404
  to: {},
2405
2405
  openTag: (t) => {
2406
- t.copyTo("minLength", yo), t.copyTo("maxLength", yo), t.copyTo("gradient", vo), t.copyTo("border", vo), t.copyTo("direction", wo), t.copyTo("axisPosition", wo), t.copyTo("negativeBarColorSameAsPositive", vo), t.copyTo("negativeBarBorderColorSameAsPositive", vo);
2406
+ t.copyTo("minLength", So), t.copyTo("maxLength", So), t.copyTo("gradient", To), t.copyTo("border", To), t.copyTo("direction", Ao), t.copyTo("axisPosition", Ao), t.copyTo("negativeBarColorSameAsPositive", To), t.copyTo("negativeBarBorderColorSameAsPositive", To);
2407
2407
  },
2408
2408
  closeTag: (t) => {
2409
2409
  t.getParent().dataBar = t.getSource();
2410
2410
  }
2411
- }), X.set("iconSet", {
2411
+ }), G.set("iconSet", {
2412
2412
  from: "iconSet",
2413
2413
  to: {},
2414
2414
  openTag: (t) => {
2415
- t.copyTo("iconSet", wo), t.copyTo("custom", vo), t.copyTo("reverse", vo), t.copyTo("showValue", vo);
2415
+ t.copyTo("iconSet", Ao), t.copyTo("custom", To), t.copyTo("reverse", To), t.copyTo("showValue", To);
2416
2416
  },
2417
2417
  closeTag: (t) => {
2418
2418
  t.getParent().iconSet = t.getSource();
2419
2419
  }
2420
2420
  });
2421
- const U = /* @__PURE__ */ new Map();
2422
- U.set("f", j("f", (t, e) => {
2421
+ const K = /* @__PURE__ */ new Map();
2422
+ K.set("f", j("f", (t, e) => {
2423
2423
  const o = e.getParent();
2424
2424
  if (!o) return;
2425
2425
  const s = t.trim(), r = Number(s);
2426
2426
  o.value = s.length > 0 && Number.isFinite(r) ? r : f(t);
2427
- })), X.set("cfvo", {
2427
+ })), G.set("cfvo", {
2428
2428
  from: "cfvo",
2429
2429
  to: {},
2430
- scope: () => U,
2430
+ scope: () => K,
2431
2431
  openTag: (t) => {
2432
2432
  const e = t.getParent();
2433
2433
  e.conditions || (e.conditions = []);
2434
2434
  const o = t.getSource();
2435
- e.conditions.push(o), t.copyTo("type", wo), !1 === t.getAttribute("gte", vo) && (o.exclusive = !0);
2435
+ e.conditions.push(o), t.copyTo("type", Ao), !1 === t.getAttribute("gte", To) && (o.exclusive = !0);
2436
2436
  }
2437
- }), X.set("f", j("f", (t, e) => {
2437
+ }), G.set("f", j("f", (t, e) => {
2438
2438
  const o = e.getParent();
2439
2439
  o && (o.formulas ??= []).push(f(t));
2440
- })), X.set("dxf", {
2440
+ })), G.set("dxf", {
2441
2441
  from: "dxf",
2442
2442
  to: {},
2443
2443
  raw: !0,
2444
2444
  closeTag: (t) => {
2445
- if (!u) return;
2445
+ if (!h) return;
2446
2446
  const e = t.getParent();
2447
2447
  if (!e) return;
2448
- const o = u(t.getRawXml() ?? "");
2448
+ const o = h(t.getRawXml() ?? "");
2449
2449
  o && (e.style = o);
2450
2450
  }
2451
2451
  });
2452
- const G = (t) => ({
2452
+ const J = (t) => ({
2453
2453
  from: t,
2454
2454
  to: {},
2455
2455
  openTag: (e) => {
2456
- const o = Et((t) => e.getAttribute(t));
2456
+ const o = ft((t) => e.getAttribute(t));
2457
2457
  o && (e.getParent()[t] = o);
2458
2458
  }
2459
2459
  });
2460
- X.set("borderColor", G("borderColor")), X.set("negativeFillColor", G("negativeFillColor")), X.set("negativeBorderColor", G("negativeBorderColor")), X.set("axisColor", G("axisColor")), X.set("cfIcon", {
2460
+ G.set("borderColor", J("borderColor")), G.set("negativeFillColor", J("negativeFillColor")), G.set("negativeBorderColor", J("negativeBorderColor")), G.set("axisColor", J("axisColor")), G.set("cfIcon", {
2461
2461
  from: "cfIcon",
2462
2462
  to: {},
2463
2463
  openTag: (t) => {
2464
- const e = t.getAttribute("iconSet"), o = t.getAttribute("iconId", yo);
2464
+ const e = t.getAttribute("iconSet"), o = t.getAttribute("iconId", So);
2465
2465
  if (null === e || null === o) return;
2466
2466
  const s = t.getParent();
2467
2467
  s.icons || (s.icons = []), s.icons.push({
@@ -2470,31 +2470,96 @@ var Xo = {
2470
2470
  });
2471
2471
  }
2472
2472
  });
2473
- const K = /* @__PURE__ */ new Map();
2474
- K.set("id", j("id", (t, e) => {
2473
+ const Z = /* @__PURE__ */ new Map();
2474
+ Z.set("id", j("id", (t, e) => {
2475
2475
  const o = e.getParent(), s = t.trim();
2476
2476
  o && s && (o.x14Id = s);
2477
2477
  }));
2478
- const Z = /* @__PURE__ */ new Map();
2479
- Z.set("slicerList", {
2478
+ const Q = /* @__PURE__ */ new Map();
2479
+ Q.set("slicerList", {
2480
2480
  from: "slicerList",
2481
2481
  transparent: !0
2482
- }), Z.set("slicer", V);
2483
- const Q = /* @__PURE__ */ new Map();
2484
- Q.set("timelineRefs", {
2482
+ }), Q.set("slicer", R);
2483
+ const tt = /* @__PURE__ */ new Map();
2484
+ tt.set("timelineRefs", {
2485
2485
  from: "timelineRefs",
2486
2486
  transparent: !0
2487
- }), Q.set("timelineRef", L);
2488
- const Y = /* @__PURE__ */ new Map([
2489
- [Gt(M), B],
2490
- [Gt(St), X],
2491
- [Gt(kt), X],
2492
- [Gt(et), K],
2493
- [Gt(Bt), Z],
2494
- [Gt(at), Z],
2495
- [Gt($t), Q],
2496
- [Gt(wt), E]
2497
- ]), tt = /* @__PURE__ */ new Set();
2487
+ }), tt.set("timelineRef", V);
2488
+ const st = /* @__PURE__ */ new Map();
2489
+ st.set("sparklineGroups", {
2490
+ from: "sparklineGroups",
2491
+ to: "sparklineGroups",
2492
+ openTag: (t) => {
2493
+ const e = t.getParent();
2494
+ t.setSource(e.sparklineGroups ?? []);
2495
+ },
2496
+ closeTag: (t) => {
2497
+ 0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
2498
+ }
2499
+ }), st.set("sparklineGroup", {
2500
+ from: "sparklineGroup",
2501
+ to: [],
2502
+ openTag: (t) => {
2503
+ const e = t.getFrom().attributes ?? {}, o = {};
2504
+ for (const t in e) {
2505
+ const s = e[t];
2506
+ o[t] = "string" == typeof s ? s : s?.value ?? "";
2507
+ }
2508
+ t.setSource({
2509
+ properties: U(o),
2510
+ entries: []
2511
+ });
2512
+ },
2513
+ closeTag: (t) => {
2514
+ const e = t.getSource(), o = Rt(e.properties, e.entries);
2515
+ o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
2516
+ }
2517
+ });
2518
+ for (const t of at) st.set(t, {
2519
+ from: t,
2520
+ to: {},
2521
+ openTag: (e) => {
2522
+ const o = ft((t) => e.getAttribute(t));
2523
+ o && (e.getParent().properties[t] = o);
2524
+ }
2525
+ });
2526
+ st.set("sparklines", {
2527
+ from: "sparklines",
2528
+ transparent: !0
2529
+ }), st.set("sparkline", {
2530
+ from: "sparkline",
2531
+ to: {},
2532
+ openTag: (t) => {
2533
+ t.setSource({ isSparkline: !0 });
2534
+ },
2535
+ closeTag: (t) => {
2536
+ const e = t.getSource(), o = t.getParent(), s = e?.sqref?.trim(), r = s ? S.fastStringToRange(s.split(/\s+/)[0]) : null;
2537
+ r ? o.entries.push({
2538
+ location: {
2539
+ rowIndex: r.rowStart,
2540
+ colIndex: r.colStart
2541
+ },
2542
+ data: e.data ?? ""
2543
+ }) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
2544
+ }
2545
+ }), st.set("f", j("f", (t, e) => {
2546
+ const o = e.getParent(), s = t.trim();
2547
+ o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
2548
+ })), st.set("sqref", j("sqref", (t, e) => {
2549
+ const o = e.getParent();
2550
+ o?.isSparkline && (o.sqref = t);
2551
+ }));
2552
+ const it = /* @__PURE__ */ new Map([
2553
+ [Dt(Jt), st],
2554
+ [Dt($t), F],
2555
+ [Dt(se), G],
2556
+ [Dt(nt), G],
2557
+ [Dt(mt), Z],
2558
+ [Dt(gt), Q],
2559
+ [Dt(xt), Q],
2560
+ [Dt(Ht), tt],
2561
+ [Dt(kt), E]
2562
+ ]), lt = /* @__PURE__ */ new Set();
2498
2563
  l.registerVisitor({
2499
2564
  from: "extLst",
2500
2565
  transparent: !0
@@ -2502,11 +2567,11 @@ var Xo = {
2502
2567
  from: "ext",
2503
2568
  transparent: !0,
2504
2569
  scope: (t) => {
2505
- const e = t.getAttribute("uri"), o = Gt(e), s = Y.get(o);
2570
+ const e = t.getAttribute("uri"), o = Dt(e), s = it.get(o);
2506
2571
  if (s) return s;
2507
- if (!Ft.has(o) && !tt.has(o)) {
2508
- tt.add(o);
2509
- const s = ft[o];
2572
+ if (!L.has(o) && !lt.has(o)) {
2573
+ lt.add(o);
2574
+ const s = $[o];
2510
2575
  t.warn(s ? `Extension content '${s}' (${e}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${e}) is not read; it will be lost on resave.`);
2511
2576
  }
2512
2577
  return null;
@@ -2565,20 +2630,20 @@ var Xo = {
2565
2630
  t.setSource(e(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
2566
2631
  }
2567
2632
  });
2568
- let rt = null, nt = !1;
2569
- const it = /* @__PURE__ */ new Map(), ct = {
2633
+ let ut = null, ht = !1;
2634
+ const dt = /* @__PURE__ */ new Map(), pt = {
2570
2635
  from: "Fallback",
2571
2636
  to: null
2572
- }, ut = {
2637
+ }, yt = {
2573
2638
  from: "Choice",
2574
2639
  transparent: !0
2575
2640
  };
2576
- it.set("Fallback", ct), it.set("Choice", ut), it.set("control", {
2641
+ dt.set("Fallback", pt), dt.set("Choice", yt), dt.set("control", {
2577
2642
  from: "control",
2578
2643
  transparent: !0,
2579
2644
  openTag: (t) => {
2580
2645
  const o = t.getAttribute("name"), s = t.getAttribute("r:id"), r = s ? e(s, "formControl") : null;
2581
- if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (rt = null);
2646
+ if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (ut = null);
2582
2647
  const n = r.json, i = parseInt(t.getAttribute("shapeId") ?? "", 10);
2583
2648
  isNaN(i) || (n.shapeId = i);
2584
2649
  const a = {
@@ -2601,60 +2666,60 @@ var Xo = {
2601
2666
  json: n
2602
2667
  }
2603
2668
  };
2604
- o && (a.content.name = o), rt = {
2669
+ o && (a.content.name = o), ut = {
2605
2670
  movable: a,
2606
2671
  control: n
2607
2672
  };
2608
2673
  },
2609
2674
  closeTag: () => {
2610
- rt && (t.movables || (t.movables = []), t.movables.push(rt.movable), rt = null);
2675
+ ut && (t.movables || (t.movables = []), t.movables.push(ut.movable), ut = null);
2611
2676
  }
2612
- }), it.set("controlPr", {
2677
+ }), dt.set("controlPr", {
2613
2678
  from: "controlPr",
2614
2679
  transparent: !0,
2615
2680
  raw: !0,
2616
2681
  openTag: (t) => {
2617
- if (!rt) return;
2682
+ if (!ut) return;
2618
2683
  const e = t.getFrom().attributes ?? {}, o = {};
2619
2684
  for (const t in e) {
2620
2685
  const s = e[t];
2621
2686
  o[t] = "string" == typeof s ? s : s?.value ?? "";
2622
2687
  }
2623
- Dt(o, rt.control);
2688
+ bt(o, ut.control);
2624
2689
  },
2625
2690
  closeTag: (t) => {
2626
- if (!rt) return;
2691
+ if (!ut) return;
2627
2692
  const e = ((t) => {
2628
2693
  const e = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(t);
2629
2694
  if (!e) return null;
2630
2695
  const o = e[2], s = (t) => new RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${t}>`).exec(o)?.[1], r = e[1], n = /\bmoveWithCells="(?:1|true)"/.test(r), i = /\bsizeWithCells="(?:1|true)"/.test(r);
2631
2696
  return {
2632
2697
  anchor: {
2633
- tl: Uo(s("from")),
2634
- br: Uo(s("to"))
2698
+ tl: Zo(s("from")),
2699
+ br: Zo(s("to"))
2635
2700
  },
2636
2701
  anchorType: n ? i ? "twoCell" : "oneCell" : "absolute",
2637
2702
  rest: (t.slice(0, e.index) + t.slice(e.index + e[0].length)).trim()
2638
2703
  };
2639
2704
  })(t.getRawXml() ?? "");
2640
- e ? (rt.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (rt.movable.anchorType = e.anchorType), e.rest && (rt.control.xml = e.rest)) : nt || (nt = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2705
+ e ? (ut.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (ut.movable.anchorType = e.anchorType), e.rest && (ut.control.xml = e.rest)) : ht || (ht = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2641
2706
  }
2642
2707
  });
2643
- const dt = {
2708
+ const vt = {
2644
2709
  from: "controls",
2645
2710
  transparent: !0,
2646
- scope: () => it
2711
+ scope: () => dt
2647
2712
  };
2648
- l.registerVisitor(dt);
2649
- const gt = /* @__PURE__ */ new Map([
2650
- ["Choice", ut],
2651
- ["Fallback", ct],
2652
- ["controls", dt]
2713
+ l.registerVisitor(vt);
2714
+ const Tt = /* @__PURE__ */ new Map([
2715
+ ["Choice", yt],
2716
+ ["Fallback", pt],
2717
+ ["controls", vt]
2653
2718
  ]);
2654
2719
  l.registerVisitor({
2655
2720
  from: "AlternateContent",
2656
2721
  transparent: !0,
2657
- scope: () => gt
2722
+ scope: () => Tt
2658
2723
  }), l.registerVisitor({
2659
2724
  from: "tableParts",
2660
2725
  to: "tables",
@@ -2671,26 +2736,26 @@ var Xo = {
2671
2736
  s ? t.setSource(s) : t.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
2672
2737
  }
2673
2738
  });
2674
- const mt = (t, e) => {
2675
- e.conditions?.length && (t.stops = S(e)), void 0 !== e.minLength && (t.minLength = e.minLength), void 0 !== e.maxLength && (t.maxLength = e.maxLength), (e.gradient ?? 1) && (t.gradient = !0), e.border && e.borderColor && (t.borderColor = e.borderColor), !e.negativeBarColorSameAsPositive && e.negativeFillColor && (t.negativeFillColor = e.negativeFillColor), !(e.negativeBarBorderColorSameAsPositive ?? 1) && e.negativeBorderColor && (t.negativeBorderColor = e.negativeBorderColor), e.axisColor && (t.axisColor = e.axisColor), "middle" !== e.axisPosition && "none" !== e.axisPosition || (t.axisPosition = e.axisPosition), "leftToRight" !== e.direction && "rightToLeft" !== e.direction || (t.direction = e.direction);
2676
- }, vt = (t, e) => {
2677
- e.conditions?.length && (t.stops = S(e)), e.iconSet && e.iconSet !== t.iconSet && (t.iconSet = e.iconSet), e.icons?.length && (t.icon = e.icons), void 0 !== e.reverse && (t.reverse = e.reverse), void 0 !== e.showValue && (t.showValue = e.showValue);
2678
- }, yt = (t) => {
2739
+ const At = (t, e) => {
2740
+ e.conditions?.length && (t.stops = T(e)), void 0 !== e.minLength && (t.minLength = e.minLength), void 0 !== e.maxLength && (t.maxLength = e.maxLength), (e.gradient ?? 1) && (t.gradient = !0), e.border && e.borderColor && (t.borderColor = e.borderColor), !e.negativeBarColorSameAsPositive && e.negativeFillColor && (t.negativeFillColor = e.negativeFillColor), !(e.negativeBarBorderColorSameAsPositive ?? 1) && e.negativeBorderColor && (t.negativeBorderColor = e.negativeBorderColor), e.axisColor && (t.axisColor = e.axisColor), "middle" !== e.axisPosition && "none" !== e.axisPosition || (t.axisPosition = e.axisPosition), "leftToRight" !== e.direction && "rightToLeft" !== e.direction || (t.direction = e.direction);
2741
+ }, Ct = (t, e) => {
2742
+ e.conditions?.length && (t.stops = T(e)), e.iconSet && e.iconSet !== t.iconSet && (t.iconSet = e.iconSet), e.icons?.length && (t.icon = e.icons), void 0 !== e.reverse && (t.reverse = e.reverse), void 0 !== e.showValue && (t.showValue = e.showValue);
2743
+ }, Et = (t) => {
2679
2744
  if (!t.sqref) return null;
2680
2745
  const e = t.sqref.split(/\s+/).join(",");
2681
2746
  if ("iconSet" === t.type) {
2682
2747
  if (!t.iconSet) return null;
2683
2748
  const o = {
2684
- type: g.ScaleType.IconSet,
2749
+ type: b.ScaleType.IconSet,
2685
2750
  stops: []
2686
2751
  };
2687
- return vt(o, t.iconSet), {
2752
+ return Ct(o, t.iconSet), {
2688
2753
  r: e,
2689
2754
  v: { scale: o },
2690
2755
  priority: t.priority
2691
2756
  };
2692
2757
  }
2693
- const o = F(t, n);
2758
+ const o = Qt(t, n);
2694
2759
  if (!o) return null;
2695
2760
  const s = { condition: o };
2696
2761
  return t.style && (s.style = t.style), t.stopIfTrue && (s.stopIfTrue = !0), {
@@ -2710,16 +2775,16 @@ var Xo = {
2710
2775
  const e = o[t], s = e.x14Id;
2711
2776
  if (!s) continue;
2712
2777
  delete e.x14Id;
2713
- const r = W.get(s);
2778
+ const r = z.get(s);
2714
2779
  if (!r) continue;
2715
- W.delete(s);
2780
+ z.delete(s);
2716
2781
  const n = e.v?.scale;
2717
- r.dataBar && n?.type === g.ScaleType.DataBar ? mt(n, r.dataBar) : r.iconSet && n?.type === g.ScaleType.IconSet && vt(n, r.iconSet);
2782
+ r.dataBar && n?.type === b.ScaleType.DataBar ? At(n, r.dataBar) : r.iconSet && n?.type === b.ScaleType.IconSet && Ct(n, r.iconSet);
2718
2783
  }
2719
- const s = [...W.values(), ...z], r = /* @__PURE__ */ new Set();
2784
+ const s = [...z.values(), ...X], r = /* @__PURE__ */ new Set();
2720
2785
  let i = 0;
2721
2786
  for (let t = 0; t < s.length; t++) {
2722
- const n = yt(s[t]);
2787
+ const n = Et(s[t]);
2723
2788
  n ? (o || (o = [], e.conditionals = o), o.push(n)) : (r.add(s[t].type ?? "unknown"), i++);
2724
2789
  }
2725
2790
  if (i > 0) {
@@ -2757,13 +2822,13 @@ var Xo = {
2757
2822
  to: "protection",
2758
2823
  openTag: (t) => {
2759
2824
  const e = t.getSource();
2760
- for (const o of lt) {
2825
+ for (const o of Kt) {
2761
2826
  const s = t.hasAttribute(o.attribute) ? t.getAttribute(o.attribute) : null;
2762
- e[o.key] = xt(o, s);
2827
+ e[o.key] = St(o, s);
2763
2828
  }
2764
2829
  if (e.sheet) return;
2765
2830
  const o = {};
2766
- t.copyToObject(o, "hash", wo, "hashValue"), t.copyToObject(o, "algorithm", wo, "algorithmName"), t.copyToObject(o, "salt", wo, "saltValue"), t.copyToObject(o, "spinCount", yo), t.copyToObject(o, "legacyHash", wo, "password"), Object.keys(o).length > 0 && (t.getSource().password = o);
2831
+ t.copyToObject(o, "hash", Ao, "hashValue"), t.copyToObject(o, "algorithm", Ao, "algorithmName"), t.copyToObject(o, "salt", Ao, "saltValue"), t.copyToObject(o, "spinCount", So), t.copyToObject(o, "legacyHash", Ao, "password"), Object.keys(o).length > 0 && (t.getSource().password = o);
2767
2832
  }
2768
2833
  }), l.registerVisitor({
2769
2834
  from: "protectedRanges",
@@ -2783,7 +2848,7 @@ var Xo = {
2783
2848
  };
2784
2849
  t.copyToObject(o, "name"), t.copyToObject(o, "securityDescriptor");
2785
2850
  const r = {};
2786
- t.copyToObject(r, "hash", wo, "hashValue"), t.copyToObject(r, "algorithm", wo, "algorithmName"), t.copyToObject(r, "salt", wo, "saltValue"), t.copyToObject(r, "spinCount", yo), t.copyToObject(r, "legacyHash", wo, "password"), Object.keys(r).length > 0 && (o.password = r), t.setSource(s);
2851
+ t.copyToObject(r, "hash", Ao, "hashValue"), t.copyToObject(r, "algorithm", Ao, "algorithmName"), t.copyToObject(r, "salt", Ao, "saltValue"), t.copyToObject(r, "spinCount", So), t.copyToObject(r, "legacyHash", Ao, "password"), Object.keys(r).length > 0 && (o.password = r), t.setSource(s);
2787
2852
  },
2788
2853
  closeTag: (t) => {
2789
2854
  const e = t.getSource();
@@ -2793,11 +2858,11 @@ var Xo = {
2793
2858
  from: "sheetFormatPr",
2794
2859
  to: "sheetFormatPr",
2795
2860
  openTag: (e) => {
2796
- e.copyToObject(t, "defaultColSize", xo, "defaultColWidth");
2861
+ e.copyToObject(t, "defaultColSize", ko, "defaultColWidth");
2797
2862
  const o = e.getAttribute("customHeight");
2798
- "1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize", xo, "defaultRowHeight");
2799
- const s = e.getAttribute("baseColWidth", yo);
2800
- s && 8 !== s && (t.baseColSize = s), h = !!e.getAttribute("zeroHeight", vo);
2863
+ "1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize", ko, "defaultRowHeight");
2864
+ const s = e.getAttribute("baseColWidth", So);
2865
+ s && 8 !== s && (t.baseColSize = s), u = !!e.getAttribute("zeroHeight", To);
2801
2866
  }
2802
2867
  }), l.registerVisitor({
2803
2868
  from: "cols",
@@ -2810,9 +2875,9 @@ var Xo = {
2810
2875
  to: [],
2811
2876
  openTag: (t) => {
2812
2877
  const e = t.getSource(), o = t.getAttribute("min"), s = t.getAttribute("max"), r = void 0 === o ? 0 : parseInt(o) - 1, n = void 0 === s ? r : parseInt(s) - 1;
2813
- e.r = m.runToString(r, n, !0);
2878
+ e.r = S.runToString(r, n, !0);
2814
2879
  const i = {};
2815
- e.v = i, t.copyToObject(i, "sz", xo, "width"), t.copyToObject(i, "csz", vo, "customWidth"), t.copyToObject(i, "h", vo, "hidden"), t.copyToObject(i, "l", yo, "outlineLevel"), t.copyToObject(i, "cl", vo, "collapsed"), t.getAttribute("bestFit", vo) && (i.bf = !0), t.copyToObject(i, "s", yo, "style");
2880
+ e.v = i, t.copyToObject(i, "sz", ko, "width"), t.copyToObject(i, "csz", To, "customWidth"), t.copyToObject(i, "h", To, "hidden"), t.copyToObject(i, "l", So, "outlineLevel"), t.copyToObject(i, "cl", To, "collapsed"), t.getAttribute("bestFit", To) && (i.bf = !0), t.copyToObject(i, "s", So, "style");
2816
2881
  }
2817
2882
  }), l.registerVisitor({
2818
2883
  from: "oleObjects",
@@ -2821,40 +2886,40 @@ var Xo = {
2821
2886
  t.warn("'OLE Objects' are not supported.");
2822
2887
  }
2823
2888
  });
2824
- let Ct = !1, At = !1, Pt = 0, _t = "", Mt = "";
2825
- const Rt = (t) => {
2889
+ let It = !1, Pt = !1, Ot = 0, Nt = "", Vt = "";
2890
+ const jt = (t) => {
2826
2891
  const e = t.indexOf(":");
2827
2892
  return -1 === e ? t : t.slice(e + 1);
2828
- }, Vt = new Wo();
2829
- return ns(b, t, l.createEventHandler(t, r, n), n, i, {
2893
+ }, Bt = new Uo();
2894
+ return cs(g, t, l.createEventHandler(t, r, n), n, i, {
2830
2895
  onOpenTag: (t) => {
2831
- Ct = !0;
2832
- const e = Rt(t.name);
2833
- "t" === e || "v" === e ? 0 === Pt && (At = !0) : "rPh" === e || "phoneticPr" === e ? Pt++ : 0 === Pt && Vt.onOpenTag(e, t.attributes);
2896
+ It = !0;
2897
+ const e = jt(t.name);
2898
+ "t" === e || "v" === e ? 0 === Ot && (Pt = !0) : "rPh" === e || "phoneticPr" === e ? Ot++ : 0 === Ot && Bt.onOpenTag(e, t.attributes);
2834
2899
  },
2835
2900
  onText: (t) => {
2836
- At && (_t += t, Vt.onText(t));
2901
+ Pt && (Nt += t, Bt.onText(t));
2837
2902
  },
2838
2903
  onCloseTag: (t) => {
2839
- const e = Rt(t.name);
2840
- "t" === e || "v" === e ? At = !1 : "rPh" === e || "phoneticPr" === e ? Pt > 0 && Pt-- : Vt.onCloseTag(e);
2904
+ const e = jt(t.name);
2905
+ "t" === e || "v" === e ? Pt = !1 : "rPh" === e || "phoneticPr" === e ? Ot > 0 && Ot-- : Bt.onCloseTag(e);
2841
2906
  },
2842
2907
  onEnd: () => {
2843
- if (!Ct) return;
2844
- const t = Vt.take();
2845
- Ct = !1, At = !1, Pt = 0;
2846
- const e = Ut(_t);
2847
- return _t = "", Mt = e, t ? {
2908
+ if (!It) return;
2909
+ const t = Bt.take();
2910
+ It = !1, Pt = !1, Ot = 0;
2911
+ const e = W(Nt);
2912
+ return Nt = "", Vt = e, t ? {
2848
2913
  t: "r",
2849
2914
  v: {
2850
2915
  type: "richText",
2851
- data: { runs: zo(t, a?.get(Qo)) }
2916
+ data: { runs: Go(t, a?.get(os)) }
2852
2917
  }
2853
2918
  } : o(e);
2854
2919
  },
2855
2920
  onError: (t) => {}
2856
- }, a, o, () => h, () => Mt);
2857
- }, ts = class {
2921
+ }, a, o, () => u, () => Vt);
2922
+ }, rs = class {
2858
2923
  static {
2859
2924
  this.Collapsed = 1;
2860
2925
  }
@@ -2885,22 +2950,22 @@ var Xo = {
2885
2950
  static {
2886
2951
  this.Spans = 512;
2887
2952
  }
2888
- }, es = (t, e, o) => {
2953
+ }, ns = (t, e, o) => {
2889
2954
  if (t[0].value[0] === t[1].value[0]) return e;
2890
- }, os = /^\s*TABLE\s*\(/i, ss = {
2955
+ }, is = /^\s*TABLE\s*\(/i, as = {
2891
2956
  colStart: 0,
2892
2957
  colEnd: 0,
2893
2958
  rowStart: 0,
2894
2959
  rowEnd: 0
2895
- }, rs = (t) => "1" === t || "true" === t, ns = (t, e, o, s, i, a, l, c, h, u) => {
2960
+ }, ls = (t) => "1" === t || "true" === t, cs = (t, e, o, s, i, a, l, c, u, h) => {
2896
2961
  let g = !1;
2897
- const b = [], v = l?.get(Zo), x = l?.get(Qo), w = /* @__PURE__ */ new Map();
2898
- let T = !1, S = [], C = !1, k = null, E = null, I = null, P = null, O = null, D = null;
2962
+ const m = [], b = l?.get(es), v = l?.get(os), x = /* @__PURE__ */ new Map();
2963
+ let w = !1, T = [], k = !1, C = null, E = null, I = null, P = null, O = null, D = null;
2899
2964
  const N = l?.get("richData") ?? r.EmptyArray;
2900
- let _ = null, $ = !1;
2901
- const M = m.normalizeA1ToR1C1, R = n.createConflatingRanges(), V = /* @__PURE__ */ new Map(), L = [], j = [];
2902
- let B = !1, F = !1, H = null;
2903
- const W = (t) => {
2965
+ let M = null, $ = !1;
2966
+ const R = S.normalizeA1ToR1C1, L = n.createConflatingRanges(), V = /* @__PURE__ */ new Map(), j = [], B = [];
2967
+ let F = !1, H = !1, W = null;
2968
+ const z = (t) => {
2904
2969
  const e = (l?.get("metadata"))?.values;
2905
2970
  if (!e) return;
2906
2971
  const o = parseInt(t, 10);
@@ -2908,94 +2973,94 @@ var Xo = {
2908
2973
  const s = e[o - 1]?.get("XLRICHVALUE");
2909
2974
  return void 0 !== s?.richValueIndex ? N[s.richValueIndex] : void 0;
2910
2975
  };
2911
- let z = !1;
2912
- const X = n.createConflatingRanges();
2913
- let q, U = !1, G = -1, K = -1, J = null, Z = null;
2914
- const Q = (t) => ({
2976
+ let X = !1;
2977
+ const q = n.createConflatingRanges();
2978
+ let U, G = !1, K = -1, J = -1, Z = null, Q = null;
2979
+ const Y = (t) => ({
2915
2980
  t: "r",
2916
2981
  v: {
2917
2982
  type: "hyperlink",
2918
2983
  data: {
2919
- address: q,
2984
+ address: U,
2920
2985
  friendly: t
2921
2986
  }
2922
2987
  }
2923
2988
  });
2924
- let Y = null;
2925
- const tt = [];
2926
- let et = null, ot = -2, st = 0, nt = "", it = "", at = "", lt = "", ct = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "", vt = "", yt = "", xt = !0, wt = null, Tt = !1, St = !1, Ct = !1, At = null, kt = 0;
2989
+ let tt = null;
2990
+ const et = [];
2991
+ let ot = null, rt = -2, nt = 0, it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "", yt = "", vt = "", xt = !0, wt = null, Tt = !1, St = !1, kt = !1, At = null, Ct = 0;
2927
2992
  const Et = (t) => {
2928
2993
  let s = t.name;
2929
2994
  const r = s.indexOf(":");
2930
- if (-1 !== r && (s = s.slice(r + 1)), kt++, kt % 196608 == 0 && i?.(kt), Z) {
2995
+ if (-1 !== r && (s = s.slice(r + 1)), Ct++, Ct % 196608 == 0 && i?.(Ct), Q) {
2931
2996
  const e = t.attributes;
2932
2997
  switch (s) {
2933
2998
  case "v":
2934
- T = !0;
2999
+ w = !0;
2935
3000
  break;
2936
3001
  case "f":
2937
- switch (C = !0, e.t ?? null) {
3002
+ switch (k = !0, e.t ?? null) {
2938
3003
  case null:
2939
3004
  case "normal": break;
2940
3005
  case "shared":
2941
3006
  const t = e.si;
2942
- E = e.ref, k = t;
3007
+ E = e.ref, C = t;
2943
3008
  break;
2944
3009
  case "array":
2945
- E = e.ref, H = E;
3010
+ E = e.ref, W = E;
2946
3011
  break;
2947
3012
  case "dataTable": {
2948
3013
  const t = ((t, e, o) => {
2949
- const s = t.r1, r = rs(t.del1);
3014
+ const s = t.r1, r = ls(t.del1);
2950
3015
  if (!s && !r) return null;
2951
- const n = t.ref ?? m.cellToString({
3016
+ const n = t.ref ?? S.cellToString({
2952
3017
  rowIndex: e,
2953
3018
  colIndex: o
2954
- }), i = m.fastStringToRange(n);
3019
+ }), i = S.fastStringToRange(n);
2955
3020
  if (!i) return null;
2956
3021
  const a = { ref: {
2957
3022
  rowStart: i.rowStart,
2958
3023
  colStart: i.colStart,
2959
3024
  rowEnd: i.rowEnd,
2960
3025
  colEnd: i.colEnd
2961
- } }, l = rs(t.dt2D);
2962
- if (l || rs(t.dtr) ? (s && (a.rowInput = s), r && (a.rowInputDeleted = !0)) : (s && (a.columnInput = s), r && (a.columnInputDeleted = !0)), l) {
3026
+ } }, l = ls(t.dt2D);
3027
+ if (l || ls(t.dtr) ? (s && (a.rowInput = s), r && (a.rowInputDeleted = !0)) : (s && (a.columnInput = s), r && (a.columnInputDeleted = !0)), l) {
2963
3028
  const e = t.r2;
2964
- e && (a.columnInput = e), rs(t.del2) && (a.columnInputDeleted = !0);
3029
+ e && (a.columnInput = e), ls(t.del2) && (a.columnInputDeleted = !0);
2965
3030
  }
2966
3031
  return a;
2967
- })(e, G, K);
2968
- t && (j.push(t), rs(e.ca) && X.append(G, K));
3032
+ })(e, K, J);
3033
+ t && (B.push(t), ls(e.ca) && q.append(K, J));
2969
3034
  return;
2970
3035
  }
2971
3036
  }
2972
3037
  const t = e.ca;
2973
- void 0 !== t && (z = "1" === t);
3038
+ void 0 !== t && (X = "1" === t);
2974
3039
  break;
2975
3040
  case "is":
2976
- U = !0;
3041
+ G = !0;
2977
3042
  return;
2978
3043
  }
2979
- U && !C && a?.onOpenTag?.(t);
3044
+ G && !k && a?.onOpenTag?.(t);
2980
3045
  return;
2981
3046
  }
2982
3047
  if (g) {
2983
3048
  if ("c" === s) {
2984
- Z = t, q = void 0;
3049
+ Q = t, U = void 0;
2985
3050
  const e = t.attributes, o = e.r;
2986
- K = void 0 !== o ? m.fastStringToCol(o) : K + 1;
3051
+ J = void 0 !== o ? S.fastStringToCol(o) : J + 1;
2987
3052
  const s = e.t;
2988
- void 0 === s ? Y = null : (Y = s, "str" === Y && (U = !0));
3053
+ void 0 === s ? tt = null : (tt = s, "str" === tt && (G = !0));
2989
3054
  let r = e.s;
2990
- void 0 === r && (null !== At || Ct) && (r = "0"), void 0 !== r && (r = parseInt(r), wt && wt.value === r && wt.colEnd + 1 === K ? wt.colEnd = K : (wt = {
2991
- colStart: K,
2992
- rowStart: G,
2993
- colEnd: K,
2994
- rowEnd: G,
3055
+ void 0 === r && (null !== At || kt) && (r = "0"), void 0 !== r && (r = parseInt(r), wt && wt.value === r && wt.colEnd + 1 === J ? wt.colEnd = J : (wt = {
3056
+ colStart: J,
3057
+ rowStart: K,
3058
+ colEnd: J,
3059
+ rowEnd: K,
2995
3060
  value: r
2996
- }, S.push(wt))), H = null, F = !1, $ = !1;
3061
+ }, T.push(wt))), W = null, H = !1, $ = !1;
2997
3062
  const n = e.cm;
2998
- B = void 0 !== n && ((t) => {
3063
+ F = void 0 !== n && ((t) => {
2999
3064
  const e = (l?.get("metadata"))?.cells;
3000
3065
  if (!e) return !1;
3001
3066
  const o = parseInt(t, 10);
@@ -3003,13 +3068,13 @@ var Xo = {
3003
3068
  })(n);
3004
3069
  const i = e.vm;
3005
3070
  if (void 0 !== i) {
3006
- const t = W(i);
3007
- if (d.isError(t)) {
3071
+ const t = z(i);
3072
+ if (f.isError(t)) {
3008
3073
  const e = t.getCode();
3009
- J = {
3074
+ Z = {
3010
3075
  t: "e",
3011
3076
  v: e
3012
- }, B && e === d.Code.Spill && (F = !0);
3077
+ }, F && e === f.Code.Spill && (H = !0);
3013
3078
  }
3014
3079
  }
3015
3080
  }
@@ -3017,41 +3082,41 @@ var Xo = {
3017
3082
  if (St && "row" === s) {
3018
3083
  g = !0;
3019
3084
  const e = t.attributes.r;
3020
- if (G = void 0 !== e ? parseInt(e) - 1 : G + 1, K = -1, h?.()) {
3021
- const t = b[b.length - 1];
3022
- t && t.max + 1 === G ? t.max = G : b.push({
3023
- min: G,
3024
- max: G
3085
+ if (K = void 0 !== e ? parseInt(e) - 1 : K + 1, J = -1, u?.()) {
3086
+ const t = m[m.length - 1];
3087
+ t && t.max + 1 === K ? t.max = K : m.push({
3088
+ min: K,
3089
+ max: K
3025
3090
  });
3026
3091
  }
3027
- if (st = 0, it = t.attributes.customHeight, void 0 !== it && (st |= ts.CustomHeight), it !== ft && (xt = !0, ft = it), nt = t.attributes.ht, void 0 !== nt && (st |= ts.Ht), nt !== pt && (xt = !0, pt = nt), at = t.attributes.hidden, void 0 !== at && (st |= ts.Hidden), at !== gt && (xt = !0, gt = at), ct = t.attributes.s, void 0 !== ct && (st |= ts.S), ct !== bt && (xt = !0, bt = ct), lt = t.attributes.customFormat, void 0 !== lt && (st |= ts.CustomFormat), lt !== mt && (xt = !0, mt = lt), ht = t.attributes.outlineLevel, void 0 !== ht && (st |= ts.OutlineLevel), ht !== vt && (xt = !0, vt = ht), dt = t.attributes.collapsed, void 0 !== dt && (st |= ts.Collapsed), dt !== yt && (xt = !0, yt = dt), 0 !== st) if (ot + 1 !== G || xt) {
3028
- const t = void 0 !== it && ("1" === it || "true" === it), e = void 0 !== lt && ("1" === lt || "true" === lt);
3029
- At = e && void 0 !== ct ? ct : null, e && null === At && (At = "0"), et = {
3030
- min: G,
3031
- max: G,
3092
+ if (nt = 0, at = t.attributes.customHeight, void 0 !== at && (nt |= rs.CustomHeight), at !== ft && (xt = !0, ft = at), it = t.attributes.ht, void 0 !== it && (nt |= rs.Ht), it !== pt && (xt = !0, pt = it), lt = t.attributes.hidden, void 0 !== lt && (nt |= rs.Hidden), lt !== gt && (xt = !0, gt = lt), ut = t.attributes.s, void 0 !== ut && (nt |= rs.S), ut !== bt && (xt = !0, bt = ut), ct = t.attributes.customFormat, void 0 !== ct && (nt |= rs.CustomFormat), ct !== mt && (xt = !0, mt = ct), ht = t.attributes.outlineLevel, void 0 !== ht && (nt |= rs.OutlineLevel), ht !== yt && (xt = !0, yt = ht), dt = t.attributes.collapsed, void 0 !== dt && (nt |= rs.Collapsed), dt !== vt && (xt = !0, vt = dt), 0 !== nt) if (rt + 1 !== K || xt) {
3093
+ const t = void 0 !== at && ("1" === at || "true" === at), e = void 0 !== ct && ("1" === ct || "true" === ct);
3094
+ At = e && void 0 !== ut ? ut : null, e && null === At && (At = "0"), ot = {
3095
+ min: K,
3096
+ max: K,
3032
3097
  value: {
3033
- sz: void 0 === nt ? -1 : parseFloat(nt),
3098
+ sz: void 0 === it ? -1 : parseFloat(it),
3034
3099
  csz: t,
3035
- h: void 0 !== at && ("1" === at || "true" === at),
3100
+ h: void 0 !== lt && ("1" === lt || "true" === lt),
3036
3101
  s: null === At ? void 0 : "0" === At ? 0 : parseInt(At),
3037
3102
  l: void 0 === ht || "0" === ht ? 0 : parseInt(ht),
3038
3103
  cl: void 0 !== dt && ("1" === dt || "true" === dt)
3039
3104
  }
3040
- }, tt.push(et);
3041
- } else et.max = G;
3042
- ot = G, xt = !1;
3105
+ }, et.push(ot);
3106
+ } else ot.max = K;
3107
+ rt = K, xt = !1;
3043
3108
  return;
3044
3109
  }
3045
3110
  if ("sheetData" === s && (St = !0), !Tt && "sheetData" === s) {
3046
3111
  Tt = !0;
3047
3112
  const t = e.cols, o = t ? t.length : 0;
3048
- for (let e = 0; !Ct && e < o; e++) t[e].v.s && (Ct = !0);
3113
+ for (let e = 0; !kt && e < o; e++) t[e].v.s && (kt = !0);
3049
3114
  }
3050
3115
  o?.onOpenTag?.(t);
3051
3116
  }
3052
3117
  }, It = (e) => {
3053
3118
  let s = e.name;
3054
- if ("sheetData" === s && (St = !1), !C || "c" !== s && "f" !== s || (k && (P = V.get(k) ?? null), P && (q = ((t) => {
3119
+ if ("sheetData" === s && (St = !1), !k || "c" !== s && "f" !== s || (C && (P = V.get(C) ?? null), P && (U = ((t) => {
3055
3120
  if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
3056
3121
  if (!/^HYPERLINK\(/i.test(t)) return;
3057
3122
  let e = 1, o = !1, s = 10;
@@ -3062,36 +3127,36 @@ var Xo = {
3062
3127
  if (0 !== e || t.slice(s).trim().length > 0) return;
3063
3128
  const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
3064
3129
  return r ? r[1].replace(/""/g, "\"") : null;
3065
- })(P[2]), R.append(G, K, P), z && X.append(G, K)), null !== H && L.push([H, B ? F ? "error" : "dynamic" : "fixed"]), C = !1, P = null, k = null, E = null, T = !1, z = !1, H = null, B = !1, F = !1), Z) {
3130
+ })(P[2]), L.append(K, J, P), X && q.append(K, J)), null !== W && j.push([W, F ? H ? "error" : "dynamic" : "fixed"]), k = !1, P = null, C = null, E = null, w = !1, X = !1, W = null, F = !1, H = !1), Q) {
3066
3131
  const o = s.indexOf(":");
3067
- if (-1 !== o && (s = s.slice(o + 1)), U) if ("is" === s || "v" === s) {
3132
+ if (-1 !== o && (s = s.slice(o + 1)), G) if ("is" === s || "v" === s) {
3068
3133
  const e = a?.onEnd?.();
3069
- null == e || $ && "" === u?.() || t.pushAt(G, K, void 0 !== q && "number" == typeof e ? Q(u?.() ?? "") : "number" == typeof e ? "" + e : e);
3134
+ null == e || $ && "" === h?.() || t.pushAt(K, J, void 0 !== U && "number" == typeof e ? Y(h?.() ?? "") : "number" == typeof e ? "" + e : e);
3070
3135
  } else "f" !== s && a?.onCloseTag?.(e);
3071
- T && (T = !1), "c" === s && (Z = null, U = !1);
3136
+ w && (w = !1), "c" === s && (Q = null, G = !1);
3072
3137
  return;
3073
3138
  }
3074
3139
  if (g) return g = !1, void (wt = null);
3075
3140
  o?.onCloseTag?.(e);
3076
3141
  }, Pt = (e) => {
3077
3142
  const r = e.trim();
3078
- if (T) {
3079
- switch (J = null, Y) {
3143
+ if (w) {
3144
+ switch (Z = null, tt) {
3080
3145
  case null:
3081
3146
  case "n":
3082
- J = f.flushSubnormal(parseFloat(r));
3147
+ Z = d.flushSubnormal(parseFloat(r));
3083
3148
  break;
3084
3149
  case "b":
3085
- J = "1" === r || "true" === r;
3150
+ Z = "1" === r || "true" === r;
3086
3151
  break;
3087
3152
  case "s": {
3088
3153
  const t = parseInt(r, 10);
3089
- let e = w.get(t);
3154
+ let e = x.get(t);
3090
3155
  if (void 0 === e) {
3091
- const o = v?.get(t);
3092
- e = o ? zo(o, x) : null, w.set(t, e);
3156
+ const o = b?.get(t);
3157
+ e = o ? Go(o, v) : null, x.set(t, e);
3093
3158
  }
3094
- J = e ? {
3159
+ Z = e ? {
3095
3160
  t: "r",
3096
3161
  v: {
3097
3162
  type: "richText",
@@ -3103,44 +3168,44 @@ var Xo = {
3103
3168
  case "d": {
3104
3169
  const t = ((t, e = !1) => {
3105
3170
  if (!t) return null;
3106
- const o = jo.exec(t);
3171
+ const o = Wo.exec(t);
3107
3172
  if (o) {
3108
3173
  const [, t, e, s] = o;
3109
3174
  return void 0 === t && void 0 === e && void 0 === s ? null : (3600 * parseFloat(t ?? "0") + 60 * parseFloat(e ?? "0") + parseFloat(s ?? "0")) / 86400;
3110
3175
  }
3111
- const s = Lo.exec(t);
3176
+ const s = Ho.exec(t);
3112
3177
  if (!s) return null;
3113
- const [, r, n, i, a, l, c, h] = s;
3178
+ const [, r, n, i, a, l, c, u] = s;
3114
3179
  if (void 0 === r && void 0 === a) return null;
3115
- let u = 0;
3180
+ let h = 0;
3116
3181
  if (void 0 !== r) {
3117
3182
  const t = parseInt(r, 10), o = parseInt(n, 10), s = parseInt(i, 10);
3118
3183
  if (o < 1 || o > 12 || s < 1 || s > 31) return null;
3119
- const a = Bo(t, o, s) - Fo;
3120
- if (u = a <= 60 ? a - 1 : a, e && (u -= 1462), u < 0) return null;
3184
+ const a = zo(t, o, s) - Xo;
3185
+ if (h = a <= 60 ? a - 1 : a, e && (h -= 1462), h < 0) return null;
3121
3186
  }
3122
- return void 0 !== a && (u += (3600 * parseInt(a, 10) + 60 * parseInt(l, 10) + (void 0 !== c ? parseInt(c, 10) : 0) + (void 0 !== h ? parseFloat(h) : 0)) / 86400), u;
3123
- })(r, !0 === l?.get(Jo));
3124
- null !== t ? J = t : c && (s?.(`Date '${r}' in cell ${m.cellToString({
3125
- colIndex: K,
3126
- rowIndex: G
3127
- })} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), J = "" + c(r));
3187
+ return void 0 !== a && (h += (3600 * parseInt(a, 10) + 60 * parseInt(l, 10) + (void 0 !== c ? parseInt(c, 10) : 0) + (void 0 !== u ? parseFloat(u) : 0)) / 86400), h;
3188
+ })(r, !0 === l?.get(ts));
3189
+ null !== t ? Z = t : c && (s?.(`Date '${r}' in cell ${S.cellToString({
3190
+ colIndex: J,
3191
+ rowIndex: K
3192
+ })} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), Z = "" + c(r));
3128
3193
  break;
3129
3194
  }
3130
3195
  case "e":
3131
3196
  if ("#VALUE!" === r) {
3132
- const t = Z.attributes.vm;
3197
+ const t = Q.attributes.vm;
3133
3198
  if (void 0 !== t) {
3134
- const e = W(t);
3135
- if (d.isError(e)) {
3136
- J = {
3199
+ const e = z(t);
3200
+ if (f.isError(e)) {
3201
+ Z = {
3137
3202
  t: "e",
3138
3203
  v: e.getCode()
3139
3204
  };
3140
3205
  break;
3141
3206
  }
3142
3207
  if (y.isJSON(e)) {
3143
- J = {
3208
+ Z = {
3144
3209
  t: "r",
3145
3210
  v: e
3146
3211
  };
@@ -3148,67 +3213,67 @@ var Xo = {
3148
3213
  }
3149
3214
  }
3150
3215
  }
3151
- const t = d.getBuiltInByLabel(r);
3152
- t ? J = {
3216
+ const t = f.getBuiltInByLabel(r);
3217
+ t ? Z = {
3153
3218
  t: "e",
3154
3219
  v: t.getCode()
3155
- } : (J = r, s?.(`Unknown formula error '${r}' in cell ${m.cellToString({
3156
- colIndex: K,
3157
- rowIndex: G
3220
+ } : (Z = r, s?.(`Unknown formula error '${r}' in cell ${S.cellToString({
3221
+ colIndex: J,
3222
+ rowIndex: K
3158
3223
  })}`));
3159
3224
  break;
3160
3225
  case "str":
3161
- case "inlineStr": U = !0;
3226
+ case "inlineStr": G = !0;
3162
3227
  }
3163
- null !== J && t.pushAt(G, K, void 0 === q || "number" != typeof J && "boolean" != typeof J ? J : Q(J));
3228
+ null !== Z && t.pushAt(K, J, void 0 === U || "number" != typeof Z && "boolean" != typeof Z ? Z : Y(Z));
3164
3229
  }
3165
- const n = null !== k;
3166
- if (k) {
3167
- if (O === k) P = D;
3230
+ const n = null !== C;
3231
+ if (C) {
3232
+ if (O === C) P = D;
3168
3233
  else {
3169
- if (P = V.get(k) ?? null, !P) {
3234
+ if (P = V.get(C) ?? null, !P) {
3170
3235
  const t = [];
3171
- I = M(r, G, K, t), P = [
3236
+ I = R(r, K, J, t), P = [
3172
3237
  I,
3173
3238
  t,
3174
3239
  r
3175
- ], V.set(k, P);
3240
+ ], V.set(C, P);
3176
3241
  }
3177
- O = k, D = P;
3242
+ O = C, D = P;
3178
3243
  }
3179
- k = null;
3244
+ C = null;
3180
3245
  }
3181
- if (C) {
3246
+ if (k) {
3182
3247
  let t = r;
3183
- const e = n ? void 0 : l?.get(Ko);
3248
+ const e = n ? void 0 : l?.get(Yo);
3184
3249
  if (e) {
3185
3250
  const o = ((t) => {
3186
- if (t.length < Ao.length) return Io;
3187
- if (t.slice(0, Ao.length).toUpperCase() !== ko) return Io;
3188
- const e = Oo(t, Ao.length);
3189
- if (null === e) return Io;
3190
- if (41 !== t.charCodeAt(e.end)) return Io;
3191
- if (44 !== t.charCodeAt(e.end + 1)) return Io;
3192
- if (41 !== t.charCodeAt(t.length - 1)) return Io;
3251
+ if (t.length < Po.length) return No;
3252
+ if (t.slice(0, Po.length).toUpperCase() !== Oo) return No;
3253
+ const e = Mo(t, Po.length);
3254
+ if (null === e) return No;
3255
+ if (41 !== t.charCodeAt(e.end)) return No;
3256
+ if (44 !== t.charCodeAt(e.end + 1)) return No;
3257
+ if (41 !== t.charCodeAt(t.length - 1)) return No;
3193
3258
  const o = e.value;
3194
- return o.toUpperCase() === Eo ? Po : 0 === o.length ? Io : {
3259
+ return o.toUpperCase() === Do ? _o : 0 === o.length ? No : {
3195
3260
  kind: "formula",
3196
3261
  formula: o
3197
3262
  };
3198
3263
  })(r);
3199
- "none" !== o.kind && (_ ??= new No(e), "spilled" === o.kind ? $ = _.placeholder(G, K) : _.anchor(G, K, o.formula) && (t = o.formula, z ||= ((t) => Do(t).some((t) => rt(t) || !0 === A.get(t)?.getDeclaration().getReturnType()?.isVolatile()))(t)));
3264
+ "none" !== o.kind && (M ??= new Ro(e), "spilled" === o.kind ? $ = M.placeholder(K, J) : M.anchor(K, J, o.formula) && (t = o.formula, X ||= ((t) => $o(t).some((t) => _(t) || !0 === A.get(t)?.getDeclaration().getReturnType()?.isVolatile()))(t)));
3200
3265
  }
3201
- if ($) z = !1;
3266
+ if ($) X = !1;
3202
3267
  else {
3203
3268
  const e = [];
3204
- I = M(t, G, K, e), P = [
3269
+ I = R(t, K, J, e), P = [
3205
3270
  I,
3206
3271
  e,
3207
3272
  t
3208
3273
  ];
3209
3274
  }
3210
3275
  }
3211
- U ? a?.onText?.(e) : g || o?.onText?.(r);
3276
+ G ? a?.onText?.(e) : g || o?.onText?.(r);
3212
3277
  }, Ot = {
3213
3278
  r: void 0,
3214
3279
  t: void 0,
@@ -3228,11 +3293,11 @@ var Xo = {
3228
3293
  name: "f",
3229
3294
  attributes: Nt,
3230
3295
  isSelfClosing: !1
3231
- }, $t = {
3296
+ }, Mt = {
3232
3297
  name: "v",
3233
3298
  attributes: {},
3234
3299
  isSelfClosing: !1
3235
- }, Mt = {
3300
+ }, $t = {
3236
3301
  r: void 0,
3237
3302
  s: void 0,
3238
3303
  ht: void 0,
@@ -3243,61 +3308,61 @@ var Xo = {
3243
3308
  outlineLevel: void 0
3244
3309
  }, Rt = {
3245
3310
  name: "row",
3246
- attributes: Mt,
3311
+ attributes: $t,
3247
3312
  isSelfClosing: !1
3248
- }, Vt = bo.NEED_MORE, Lt = bo.NOT_HANDLED, jt = bo.decodeText;
3313
+ }, Lt = wo.NEED_MORE, Vt = wo.NOT_HANDLED, jt = wo.decodeText;
3249
3314
  let Bt = !1;
3250
3315
  const Ft = (t, e, o, s) => {
3251
3316
  for (;;) {
3252
3317
  let r = 0;
3253
3318
  for (; e < o && (32 === (r = t.charCodeAt(e)) || 9 === r || 10 === r || 13 === r);) e++;
3254
- if (e >= o) return Vt;
3319
+ if (e >= o) return Lt;
3255
3320
  if (62 === r) return Bt = !1, e + 1;
3256
- if (47 === r) return e + 1 >= o ? Vt : 62 !== t.charCodeAt(e + 1) ? Lt : (Bt = !0, e + 2);
3321
+ if (47 === r) return e + 1 >= o ? Lt : 62 !== t.charCodeAt(e + 1) ? Vt : (Bt = !0, e + 2);
3257
3322
  const n = e;
3258
3323
  for (; e < o && 61 !== (r = t.charCodeAt(e));) {
3259
- if (62 === r || 47 === r || 32 === r || 9 === r || 10 === r || 13 === r) return Lt;
3324
+ if (62 === r || 47 === r || 32 === r || 9 === r || 10 === r || 13 === r) return Vt;
3260
3325
  e++;
3261
3326
  }
3262
- if (e + 1 >= o) return Vt;
3327
+ if (e + 1 >= o) return Lt;
3263
3328
  const i = e - n, a = t.charCodeAt(e + 1);
3264
- if (34 !== a && 39 !== a) return Lt;
3329
+ if (34 !== a && 39 !== a) return Vt;
3265
3330
  const l = e + 2;
3266
3331
  let c = l;
3267
3332
  for (; c < o && (r = t.charCodeAt(c)) !== a;) {
3268
- if (38 === r || r < 32) return Lt;
3333
+ if (38 === r || r < 32) return Vt;
3269
3334
  c++;
3270
3335
  }
3271
- if (c >= o) return Vt;
3336
+ if (c >= o) return Lt;
3272
3337
  e = c + 1;
3273
- const h = t.charCodeAt(n);
3338
+ const u = t.charCodeAt(n);
3274
3339
  if (2 === s) switch (i) {
3275
3340
  case 1:
3276
- 114 === h ? Mt.r = t.slice(l, c) : 115 === h && (Mt.s = t.slice(l, c));
3341
+ 114 === u ? $t.r = t.slice(l, c) : 115 === u && ($t.s = t.slice(l, c));
3277
3342
  break;
3278
3343
  case 2:
3279
- t.startsWith("ht", n) && (Mt.ht = t.slice(l, c));
3344
+ t.startsWith("ht", n) && ($t.ht = t.slice(l, c));
3280
3345
  break;
3281
3346
  case 6:
3282
- t.startsWith("hidden", n) && (Mt.hidden = t.slice(l, c));
3347
+ t.startsWith("hidden", n) && ($t.hidden = t.slice(l, c));
3283
3348
  break;
3284
3349
  case 9:
3285
- t.startsWith("collapsed", n) && (Mt.collapsed = t.slice(l, c));
3350
+ t.startsWith("collapsed", n) && ($t.collapsed = t.slice(l, c));
3286
3351
  break;
3287
- case 12: t.startsWith("customHeight", n) ? Mt.customHeight = t.slice(l, c) : t.startsWith("customFormat", n) ? Mt.customFormat = t.slice(l, c) : t.startsWith("outlineLevel", n) && (Mt.outlineLevel = t.slice(l, c));
3352
+ case 12: t.startsWith("customHeight", n) ? $t.customHeight = t.slice(l, c) : t.startsWith("customFormat", n) ? $t.customFormat = t.slice(l, c) : t.startsWith("outlineLevel", n) && ($t.outlineLevel = t.slice(l, c));
3288
3353
  }
3289
- else if (0 === s) 1 === i ? 114 === h ? Ot.r = t.slice(l, c) : 116 === h ? Ot.t = t.slice(l, c) : 115 === h && (Ot.s = t.slice(l, c)) : 2 === i && 109 === t.charCodeAt(n + 1) && (99 === h ? Ot.cm = t.slice(l, c) : 118 === h && (Ot.vm = t.slice(l, c)));
3290
- else if (1 === i) 116 === h && (Nt.t = t.slice(l, c));
3354
+ else if (0 === s) 1 === i ? 114 === u ? Ot.r = t.slice(l, c) : 116 === u ? Ot.t = t.slice(l, c) : 115 === u && (Ot.s = t.slice(l, c)) : 2 === i && 109 === t.charCodeAt(n + 1) && (99 === u ? Ot.cm = t.slice(l, c) : 118 === u && (Ot.vm = t.slice(l, c)));
3355
+ else if (1 === i) 116 === u && (Nt.t = t.slice(l, c));
3291
3356
  else if (2 === i) {
3292
3357
  const e = t.charCodeAt(n + 1);
3293
- 115 === h && 105 === e ? Nt.si = t.slice(l, c) : 99 === h && 97 === e && (Nt.ca = t.slice(l, c));
3358
+ 115 === u && 105 === e ? Nt.si = t.slice(l, c) : 99 === u && 97 === e && (Nt.ca = t.slice(l, c));
3294
3359
  } else 3 === i && t.startsWith("ref", n) && (Nt.ref = t.slice(l, c));
3295
3360
  }
3296
3361
  }, Ht = (t, e, o) => 47 === t.charCodeAt(e + 1) && t.charCodeAt(e + 2) === o && 62 === t.charCodeAt(e + 3);
3297
3362
  return {
3298
3363
  ...o,
3299
3364
  onEnd: () => {
3300
- if (h?.()) {
3365
+ if (u?.()) {
3301
3366
  let t = 0;
3302
3367
  const e = [], o = (t, e) => ({
3303
3368
  min: t,
@@ -3311,16 +3376,16 @@ var Xo = {
3311
3376
  cl: !1
3312
3377
  }
3313
3378
  });
3314
- for (const s of b) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
3315
- t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (tt.push(...e), tt.sort((t, e) => t.min - e.min));
3379
+ for (const s of m) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
3380
+ t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (et.push(...e), et.sort((t, e) => t.min - e.min));
3316
3381
  }
3317
- tt.length > 0 && (e.rows = m.runsToRefs(tt, !1));
3318
- let s = R.done(es);
3382
+ et.length > 0 && (e.rows = S.runsToRefs(et, !1));
3383
+ let s = L.done(ns);
3319
3384
  s = ((t, e) => {
3320
3385
  let o = null;
3321
3386
  for (let e = 0; e < t.length; e++) {
3322
3387
  const s = t[e];
3323
- if (!os.test(s.value[2])) continue;
3388
+ if (!is.test(s.value[2])) continue;
3324
3389
  o ??= /* @__PURE__ */ new Map();
3325
3390
  const r = s.value[0], n = o.get(r);
3326
3391
  n ? n.push(s) : o.set(r, [s]);
@@ -3340,54 +3405,54 @@ var Xo = {
3340
3405
  o.rowStart < r.rowStart && (r.rowStart = o.rowStart), o.colStart < r.colStart && (r.colStart = o.colStart), o.rowEnd > r.rowEnd && (r.rowEnd = o.rowEnd), o.colEnd > r.colEnd && (r.colEnd = o.colEnd), n += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1);
3341
3406
  }
3342
3407
  if (n !== (r.rowEnd - r.rowStart + 1) * (r.colEnd - r.colStart + 1)) continue;
3343
- const i = Vo(m.resolveRelativeToA1(o.value[1], r.rowStart, r.colStart), r);
3408
+ const i = Fo(S.resolveRelativeToA1(o.value[1], r.rowStart, r.colStart), r);
3344
3409
  if (i) {
3345
3410
  e.push(i);
3346
3411
  for (let e = 0; e < t.length; e++) s.add(t[e]);
3347
3412
  }
3348
3413
  }
3349
3414
  return 0 === s.size ? t : t.filter((t) => !s.has(t));
3350
- })(s, j);
3415
+ })(s, B);
3351
3416
  const r = s.length;
3352
- if (r > 0 || j.length > 0) {
3417
+ if (r > 0 || B.length > 0) {
3353
3418
  const t = new Array(r);
3354
3419
  for (let e = 0; e < r; e++) {
3355
- const o = s[e], r = m.rangeToString(o), n = o.value[1], i = m.resolveRelativeToA1(n, o.rowStart, o.colStart);
3420
+ const o = s[e], r = S.rangeToString(o), n = o.value[1], i = S.resolveRelativeToA1(n, o.rowStart, o.colStart);
3356
3421
  t[e] = [r, i];
3357
3422
  }
3358
- for (let e = 0; e < j.length; e++) {
3359
- const o = j[e], s = o.ref;
3360
- t.push([m.cellToString({
3423
+ for (let e = 0; e < B.length; e++) {
3424
+ const o = B[e], s = o.ref;
3425
+ t.push([S.cellToString({
3361
3426
  rowIndex: s.rowStart,
3362
3427
  colIndex: s.colStart
3363
- }), ut(o)]), L.push([m.rangeToString(s), "dynamic"]);
3428
+ }), st(o)]), j.push([S.rangeToString(s), "dynamic"]);
3364
3429
  }
3365
3430
  e.formulas = t;
3366
3431
  }
3367
- const i = X.done(!0), a = i.length;
3432
+ const i = q.done(!0), a = i.length;
3368
3433
  if (a > 0) {
3369
3434
  const t = new Array(a);
3370
3435
  for (let e = 0; e < a; e++) {
3371
- const o = i[e], s = m.rangeToString(o);
3436
+ const o = i[e], s = S.rangeToString(o);
3372
3437
  t[e] = s;
3373
3438
  }
3374
3439
  e.volatile = t;
3375
3440
  }
3376
- _ && L.push(..._.getFormulaArray()), L.length > 0 && (e.formulaArray = [...L]);
3377
- const l = S.length;
3441
+ M && j.push(...M.getFormulaArray()), j.length > 0 && (e.formulaArray = [...j]);
3442
+ const l = T.length;
3378
3443
  if (l > 0) {
3379
- S.sort(n.createRangeComparator(p.Axis.Column));
3380
- let t = S[0], o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value;
3444
+ T.sort(n.createRangeComparator(p.Axis.Column));
3445
+ let t = T[0], o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value;
3381
3446
  const a = [];
3382
3447
  a.push(t);
3383
3448
  let c = null;
3384
- for (let e = 1; e < l; e++) c = S[e], i !== c.value || o !== c.colStart || s !== c.colEnd || r + 1 !== c.rowEnd ? (a.push(c), t = c, o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value) : (r = c.rowEnd, t.rowEnd = r);
3385
- const h = a.length, u = new Array(h);
3386
- for (let t = 0; t < h; t++) {
3387
- const e = a[t], o = m.rangeToString(e);
3388
- u[t] = [o, e.value];
3449
+ for (let e = 1; e < l; e++) c = T[e], i !== c.value || o !== c.colStart || s !== c.colEnd || r + 1 !== c.rowEnd ? (a.push(c), t = c, o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value) : (r = c.rowEnd, t.rowEnd = r);
3450
+ const u = a.length, h = new Array(u);
3451
+ for (let t = 0; t < u; t++) {
3452
+ const e = a[t], o = S.rangeToString(e);
3453
+ h[t] = [o, e.value];
3389
3454
  }
3390
- e.directStyles = u;
3455
+ e.directStyles = h;
3391
3456
  }
3392
3457
  const c = t.build();
3393
3458
  c && (e.data = c.tuples), o?.onEnd?.();
@@ -3398,68 +3463,68 @@ var Xo = {
3398
3463
  elementScanners: [{
3399
3464
  name: "c",
3400
3465
  scan: (t, e, o) => {
3401
- if (!g || null !== Z) return Lt;
3466
+ if (!g || null !== Q) return Vt;
3402
3467
  Ot.r = Ot.t = Ot.s = Ot.cm = Ot.vm = void 0;
3403
3468
  let s = Ft(t, e + 2, o, 0);
3404
3469
  if (s < 0) return s;
3405
3470
  const r = Ot.t;
3406
- if (void 0 === Ot.r || "str" === r || "inlineStr" === r) return Lt;
3407
- let n = !1, i = -1, a = -1, l = -1, c = -1, h = s;
3471
+ if (void 0 === Ot.r || "str" === r || "inlineStr" === r) return Vt;
3472
+ let n = !1, i = -1, a = -1, l = -1, c = -1, u = s;
3408
3473
  if (!Bt) for (Nt.t = Nt.si = Nt.ref = Nt.ca = void 0;;) {
3409
3474
  const e = t.indexOf("<", s);
3410
- if (-1 === e || e + 3 >= o) return Vt;
3475
+ if (-1 === e || e + 3 >= o) return Lt;
3411
3476
  for (let o = s; o < e; o++) {
3412
3477
  const e = t.charCodeAt(o);
3413
- if (32 !== e && 9 !== e && 10 !== e && 13 !== e) return Lt;
3478
+ if (32 !== e && 9 !== e && 10 !== e && 13 !== e) return Vt;
3414
3479
  }
3415
- const r = t.charCodeAt(e + 1), u = t.charCodeAt(e + 2);
3480
+ const r = t.charCodeAt(e + 1), h = t.charCodeAt(e + 2);
3416
3481
  if (47 === r) {
3417
- if (!Ht(t, e, 99)) return Lt;
3418
- h = e + 4;
3482
+ if (!Ht(t, e, 99)) return Vt;
3483
+ u = e + 4;
3419
3484
  break;
3420
3485
  }
3421
- if (102 === r && !n && -1 === l && (32 === u || 62 === u || 47 === u)) {
3486
+ if (102 === r && !n && -1 === l && (32 === h || 62 === h || 47 === h)) {
3422
3487
  if (n = !0, s = Ft(t, e + 2, o, 1), s < 0) return s;
3423
- if ("dataTable" === Nt.t) return Lt;
3488
+ if ("dataTable" === Nt.t) return Vt;
3424
3489
  if (Bt) continue;
3425
3490
  const r = t.indexOf("<", s);
3426
- if (-1 === r || r + 3 >= o) return Vt;
3427
- if (!Ht(t, r, 102)) return Lt;
3491
+ if (-1 === r || r + 3 >= o) return Lt;
3492
+ if (!Ht(t, r, 102)) return Vt;
3428
3493
  i = s, a = r, s = r + 4;
3429
3494
  continue;
3430
3495
  }
3431
- if (118 === r && 62 === u && -1 === l) {
3496
+ if (118 === r && 62 === h && -1 === l) {
3432
3497
  const r = t.indexOf("<", e + 3);
3433
- if (-1 === r || r + 3 >= o) return Vt;
3434
- if (!Ht(t, r, 118)) return Lt;
3498
+ if (-1 === r || r + 3 >= o) return Lt;
3499
+ if (!Ht(t, r, 118)) return Vt;
3435
3500
  l = e + 3, c = r, s = r + 4;
3436
3501
  continue;
3437
3502
  }
3438
- return Lt;
3503
+ return Vt;
3439
3504
  }
3440
- return Et(Dt), n && (Et(_t), a > i && Pt(jt(t.slice(i, a))), It(_t)), -1 !== l && (Et($t), c > l && Pt(jt(t.slice(l, c))), It($t)), It(Dt), h;
3505
+ return Et(Dt), n && (Et(_t), a > i && Pt(jt(t.slice(i, a))), It(_t)), -1 !== l && (Et(Mt), c > l && Pt(jt(t.slice(l, c))), It(Mt)), It(Dt), u;
3441
3506
  }
3442
3507
  }, {
3443
3508
  name: "row",
3444
3509
  openTag: Rt,
3445
3510
  scan: (t, e, o) => {
3446
- if (!St || g || null !== Z) return Lt;
3447
- Mt.r = Mt.s = Mt.ht = Mt.hidden = Mt.collapsed = Mt.customHeight = Mt.customFormat = Mt.outlineLevel = void 0;
3511
+ if (!St || g || null !== Q) return Vt;
3512
+ $t.r = $t.s = $t.ht = $t.hidden = $t.collapsed = $t.customHeight = $t.customFormat = $t.outlineLevel = void 0;
3448
3513
  const s = Ft(t, e + 4, o, 2);
3449
- return s < 0 ? s : Bt || void 0 === Mt.r ? Lt : (Et(Rt), s);
3514
+ return s < 0 ? s : Bt || void 0 === $t.r ? Vt : (Et(Rt), s);
3450
3515
  }
3451
3516
  }]
3452
3517
  };
3453
- }, is = /* @__PURE__ */ new Map([
3518
+ }, us = /* @__PURE__ */ new Map([
3454
3519
  ["urn:schemas-microsoft-com:vml", "v"],
3455
3520
  ["urn:schemas-microsoft-com:office:office", "o"],
3456
3521
  ["urn:schemas-microsoft-com:office:excel", "x"]
3457
- ]), as = [...is].map(([t, e]) => ` xmlns:${e}="${t}"`).join(""), ls = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, cs = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, hs = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
3458
- function us(t) {
3522
+ ]), hs = [...us].map(([t, e]) => ` xmlns:${e}="${t}"`).join(""), ds = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, ps = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, fs = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
3523
+ function gs(t) {
3459
3524
  if (!t || !((t) => {
3460
3525
  let e;
3461
- for (hs.lastIndex = 0; null !== (e = hs.exec(t));) {
3462
- const t = is.get(e[2] ?? e[3] ?? "");
3526
+ for (fs.lastIndex = 0; null !== (e = fs.exec(t));) {
3527
+ const t = us.get(e[2] ?? e[3] ?? "");
3463
3528
  if (t && t !== (e[1] ?? "")) return !0;
3464
3529
  }
3465
3530
  return !1;
@@ -3476,34 +3541,34 @@ function us(t) {
3476
3541
  const s = e[o].bindings.get(t);
3477
3542
  if (void 0 !== s) return s;
3478
3543
  }
3479
- })(n, o), a = void 0 !== i ? is.get(i) : void 0;
3544
+ })(n, o), a = void 0 !== i ? us.get(i) : void 0;
3480
3545
  return a ? `${a}:${-1 === r ? t : t.substring(r + 1)}` : null;
3481
3546
  };
3482
3547
  let s = !1, r = !1;
3483
- const n = t.replace(ls, (t, n, i, a, l) => {
3548
+ const n = t.replace(ds, (t, n, i, a, l) => {
3484
3549
  if (n) {
3485
3550
  const s = e[e.length - 1], r = o(i, null, !1);
3486
3551
  return s && s.name === i && (s.nested > 0 ? s.nested-- : e.pop()), r ? `</${r}>` : t;
3487
3552
  }
3488
3553
  const c = ((t) => {
3489
3554
  let e, o = null;
3490
- for (hs.lastIndex = 0; null !== (e = hs.exec(t));) (o ??= /* @__PURE__ */ new Map()).set(e[1] ?? "", e[2] ?? e[3] ?? "");
3555
+ for (fs.lastIndex = 0; null !== (e = fs.exec(t));) (o ??= /* @__PURE__ */ new Map()).set(e[1] ?? "", e[2] ?? e[3] ?? "");
3491
3556
  return o;
3492
3557
  })(a);
3493
3558
  c?.forEach((t, e) => {
3494
- const o = [...is].find(([, t]) => t === e)?.[0];
3559
+ const o = [...us].find(([, t]) => t === e)?.[0];
3495
3560
  o && o !== t && (s = !0);
3496
3561
  });
3497
- const h = o(i, c, !1);
3498
- let u = a.replace(cs, (t, e, s, r, n) => {
3562
+ const u = o(i, c, !1);
3563
+ let h = a.replace(ps, (t, e, s, r, n) => {
3499
3564
  if ("xmlns" === s || s.startsWith("xmlns:")) {
3500
3565
  const e = n.slice(1, -1);
3501
- return is.has(e) ? "" : t;
3566
+ return us.has(e) ? "" : t;
3502
3567
  }
3503
3568
  const i = o(s, c, !0);
3504
3569
  return i ? `${e}${i}${r}${n}` : t;
3505
3570
  });
3506
- if (r || (r = !0, u = u.replace(/\s+$/, "") + as), !l) {
3571
+ if (r || (r = !0, h = h.replace(/\s+$/, "") + hs), !l) {
3507
3572
  const t = e[e.length - 1];
3508
3573
  c ? e.push({
3509
3574
  name: i,
@@ -3511,11 +3576,11 @@ function us(t) {
3511
3576
  nested: 0
3512
3577
  }) : t && t.name === i && t.nested++;
3513
3578
  }
3514
- return `<${h ?? i}${u}${l}>`;
3579
+ return `<${u ?? i}${h}${l}>`;
3515
3580
  });
3516
3581
  return s ? t : n;
3517
3582
  }
3518
- var ds = {
3583
+ var ms = {
3519
3584
  creator: "author",
3520
3585
  category: "category",
3521
3586
  description: "comments",
@@ -3528,47 +3593,47 @@ var ds = {
3528
3593
  revision: "revisionNumber",
3529
3594
  subject: "subject",
3530
3595
  title: "title"
3531
- }, ps = {
3596
+ }, bs = {
3532
3597
  Company: "company",
3533
3598
  Manager: "manager"
3534
- }, fs = {
3535
- lpwstr: I.Type.String,
3536
- lpstr: I.Type.String,
3537
- bstr: I.Type.String,
3538
- i1: I.Type.Number,
3539
- i2: I.Type.Number,
3540
- i4: I.Type.Number,
3541
- i8: I.Type.Number,
3542
- int: I.Type.Number,
3543
- ui1: I.Type.Number,
3544
- ui2: I.Type.Number,
3545
- ui4: I.Type.Number,
3546
- ui8: I.Type.Number,
3547
- uint: I.Type.Number,
3548
- r4: I.Type.Float,
3549
- r8: I.Type.Float,
3550
- decimal: I.Type.Float,
3551
- bool: I.Type.Boolean,
3552
- filetime: I.Type.Date,
3553
- date: I.Type.Date
3554
- }, gs = (t) => {
3555
- const e = t.kind ? fs[t.kind] : void 0;
3599
+ }, ys = {
3600
+ lpwstr: E.Type.String,
3601
+ lpstr: E.Type.String,
3602
+ bstr: E.Type.String,
3603
+ i1: E.Type.Number,
3604
+ i2: E.Type.Number,
3605
+ i4: E.Type.Number,
3606
+ i8: E.Type.Number,
3607
+ int: E.Type.Number,
3608
+ ui1: E.Type.Number,
3609
+ ui2: E.Type.Number,
3610
+ ui4: E.Type.Number,
3611
+ ui8: E.Type.Number,
3612
+ uint: E.Type.Number,
3613
+ r4: E.Type.Float,
3614
+ r8: E.Type.Float,
3615
+ decimal: E.Type.Float,
3616
+ bool: E.Type.Boolean,
3617
+ filetime: E.Type.Date,
3618
+ date: E.Type.Date
3619
+ }, vs = (t) => {
3620
+ const e = t.kind ? ys[t.kind] : void 0;
3556
3621
  if (!e) return null;
3557
3622
  const o = t.value.trim();
3558
3623
  let s;
3559
- if (e === I.Type.String) s = {
3624
+ if (e === E.Type.String) s = {
3560
3625
  key: t.key,
3561
3626
  type: e,
3562
3627
  value: t.value
3563
3628
  };
3564
- else if (e === I.Type.Boolean) {
3629
+ else if (e === E.Type.Boolean) {
3565
3630
  if ("true" !== o && "false" !== o && "1" !== o && "0" !== o) return null;
3566
3631
  s = {
3567
3632
  key: t.key,
3568
3633
  type: e,
3569
3634
  value: "true" === o || "1" === o
3570
3635
  };
3571
- } else if (e === I.Type.Date) {
3636
+ } else if (e === E.Type.Date) {
3572
3637
  const r = new Date(o);
3573
3638
  if (!o || isNaN(r.getTime())) return null;
3574
3639
  s = {
@@ -3579,32 +3644,32 @@ var ds = {
3579
3644
  } else {
3580
3645
  const r = Number(o);
3581
3646
  if (!o || !Number.isFinite(r)) return null;
3582
- const n = e === I.Type.Number && r >= -2147483648 && r <= 2147483647;
3647
+ const n = e === E.Type.Number && r >= -2147483648 && r <= 2147483647;
3583
3648
  s = {
3584
3649
  key: t.key,
3585
- type: n ? e : I.Type.Float,
3650
+ type: n ? e : E.Type.Float,
3586
3651
  value: r
3587
3652
  };
3588
3653
  }
3589
3654
  return t.linkTarget && (s.linkTarget = t.linkTarget), s;
3590
- }, ms = "hiddenXfs", bs = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, vs = (t) => {
3655
+ }, xs = "hiddenXfs", ws = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, Ts = (t) => {
3591
3656
  if (!t || 0 === t.length) return !1;
3592
- const e = m.refsToRuns(t, !0);
3657
+ const e = S.refsToRuns(t, !0);
3593
3658
  let o = 0;
3594
3659
  for (const t of e) {
3595
3660
  if (t.min > o || void 0 === t.value?.s) return !1;
3596
3661
  o = Math.max(o, t.max + 1);
3597
3662
  }
3598
- return o > mt;
3599
- }, ys = (t, e) => {
3663
+ return o > F;
3664
+ }, Ss = (t, e) => {
3600
3665
  t.protection = {
3601
3666
  ...t.protection,
3602
3667
  showFormulas: e
3603
3668
  };
3604
- }, xs = "pivotButtonXfs", ws = (t, e) => {
3605
- const o = S(t, e);
3669
+ }, ks = "pivotButtonXfs", As = (t, e) => {
3670
+ const o = w(t, e);
3606
3671
  if (!o || !t.location) return null;
3607
- const s = m.fastStringToRange(t.location), r = {
3672
+ const s = S.fastStringToRange(t.location), r = {
3608
3673
  rowIndex: s.rowStart - o.top,
3609
3674
  colIndex: s.colStart
3610
3675
  };
@@ -3618,51 +3683,51 @@ var ds = {
3618
3683
  origin: r,
3619
3684
  formats: o
3620
3685
  };
3621
- }, Ts = (t, e, o, s) => {
3686
+ }, Cs = (t, e, o, s) => {
3622
3687
  let r = t;
3623
3688
  const n = s?.numberFormat ?? e ?? 0;
3624
- if (void 0 !== t.numberFormat && Ss(t.numberFormat, n)) {
3689
+ if (void 0 !== t.numberFormat && Es(t.numberFormat, n)) {
3625
3690
  const { numberFormat: t, ...e } = r;
3626
3691
  r = e;
3627
3692
  }
3628
3693
  const i = r.alignment;
3629
- if (null !== o && i?.horizontal === h.HorizontalAlignment.Left && (i.indent ?? 0) === o) {
3694
+ if (null !== o && i?.horizontal === u.HorizontalAlignment.Left && (i.indent ?? 0) === o) {
3630
3695
  const { horizontal: t, indent: e, ...o } = i, { alignment: s, ...n } = r;
3631
- r = Is(o) ? n : {
3696
+ r = Ns(o) ? n : {
3632
3697
  ...n,
3633
3698
  alignment: o
3634
3699
  };
3635
3700
  }
3636
3701
  if (s) {
3637
3702
  const { numberFormat: t, ...e } = s;
3638
- if (r = ks(r, e), r.alignment && Is(r.alignment)) {
3703
+ if (r = Os(r, e), r.alignment && Ns(r.alignment)) {
3639
3704
  const { alignment: t, ...e } = r;
3640
3705
  r = e;
3641
3706
  }
3642
3707
  }
3643
3708
  if (r === t) return t;
3644
- for (const t of Object.keys(r)) if (void 0 !== r[t] && ("named" !== t || r.named !== u.BuiltInName.Normal)) return r;
3709
+ for (const t of Object.keys(r)) if (void 0 !== r[t] && ("named" !== t || r.named !== h.BuiltInName.Normal)) return r;
3645
3710
  return null;
3646
- }, Ss = (t, e) => t === e || c.toBuiltInID(t) === c.toBuiltInID(e), Cs = (t) => "object" == typeof t && null !== t && !Array.isArray(t), As = (t, e) => !(!Cs(t) || !Cs(e)) && ("solid" === t.patternType && "solid" === e.patternType ? t.foreground === e.foreground : a.JSONStableStringify(t) === a.JSONStableStringify(e)), ks = (t, e) => {
3711
+ }, Es = (t, e) => t === e || c.toBuiltInID(t) === c.toBuiltInID(e), Is = (t) => "object" == typeof t && null !== t && !Array.isArray(t), Ps = (t, e) => !(!Is(t) || !Is(e)) && ("solid" === t.patternType && "solid" === e.patternType ? t.foreground === e.foreground : a.JSONStableStringify(t) === a.JSONStableStringify(e)), Os = (t, e) => {
3647
3712
  let o = null;
3648
3713
  const s = (e, s) => {
3649
3714
  o ??= { ...t }, void 0 === s ? delete o[e] : o[e] = s;
3650
3715
  };
3651
3716
  for (const o of Object.keys(t)) {
3652
3717
  const r = t[o], n = e[o];
3653
- if (void 0 !== n && void 0 !== r) if ("fill" === o) As(r, n) && s(o);
3654
- else if (Cs(r) && Cs(n)) {
3655
- const t = ks(r, n);
3718
+ if (void 0 !== n && void 0 !== r) if ("fill" === o) Ps(r, n) && s(o);
3719
+ else if (Is(r) && Is(n)) {
3720
+ const t = Os(r, n);
3656
3721
  t !== r && s(o, Object.keys(t).some((e) => void 0 !== t[e]) ? t : void 0);
3657
3722
  } else r === n && s(o);
3658
3723
  }
3659
3724
  return o ?? t;
3660
- }, Es = {
3661
- vertical: h.VerticalAlignment.Bottom,
3725
+ }, Ds = {
3726
+ vertical: u.VerticalAlignment.Bottom,
3662
3727
  relativeIndent: 0,
3663
- overflow: h.Overflow.Visible,
3728
+ overflow: u.Overflow.Visible,
3664
3729
  rotation: 0
3665
- }, Is = (t) => Object.keys(t).every((e) => void 0 === t[e] || Es[e] === t[e]), Ps = (t, e) => {
3730
+ }, Ns = (t) => Object.keys(t).every((e) => void 0 === t[e] || Ds[e] === t[e]), _s = (t, e) => {
3666
3731
  const o = Math.max(t.rowStart, e.rowStart), s = Math.min(t.rowEnd, e.rowEnd), r = Math.max(t.colStart, e.colStart), n = Math.min(t.colEnd, e.colEnd);
3667
3732
  return o <= s && r <= n ? {
3668
3733
  rowStart: o,
@@ -3670,7 +3735,7 @@ var ds = {
3670
3735
  colStart: r,
3671
3736
  colEnd: n
3672
3737
  } : null;
3673
- }, Os = (t, e) => {
3738
+ }, Ms = (t, e) => {
3674
3739
  const o = [];
3675
3740
  return t.rowStart < e.rowStart && o.push({
3676
3741
  ...t,
@@ -3689,24 +3754,24 @@ var ds = {
3689
3754
  colStart: e.colEnd + 1,
3690
3755
  colEnd: t.colEnd
3691
3756
  }), o;
3692
- }, Ds = "xfComplements", Ns = (t, e) => {
3757
+ }, $s = "xfComplements", Rs = (t, e) => {
3693
3758
  if ("string" == typeof t) return void e.push(t);
3694
3759
  const o = Array.isArray(t) ? t : [t];
3695
3760
  for (let t = 0; t < o.length; t++) {
3696
- const s = m.rangeToString(o[t]);
3761
+ const s = S.rangeToString(o[t]);
3697
3762
  s && e.push(s);
3698
3763
  }
3699
- }, _s = (t) => {
3764
+ }, Ls = (t) => {
3700
3765
  const e = Array.isArray(t) ? t[1] : t.v;
3701
3766
  if (!e || !("s" in e)) return;
3702
3767
  const o = e.s;
3703
3768
  return delete e.s, o;
3704
- }, $s = (t, e, o, s) => {
3769
+ }, Vs = (t, e, o, s) => {
3705
3770
  if (!t) return;
3706
3771
  const r = e ? 2 : 1, n = e ? o.rowStart : o.colStart, i = e ? o.rowEnd : o.colEnd;
3707
3772
  let a, l = -1;
3708
3773
  for (const o of t) {
3709
- const t = m.refToRun(o, e), c = _s(o);
3774
+ const t = S.refToRun(o, e), c = Ls(o);
3710
3775
  t && void 0 !== c ? c !== l || (e ? a.colEnd : a.rowEnd) + 1 !== t.min ? (a = {
3711
3776
  colStart: e ? t.min : n,
3712
3777
  rowStart: e ? n : t.min,
@@ -3718,7 +3783,7 @@ var ds = {
3718
3783
  }
3719
3784
  }, l = c, s.push(a)) : e ? a.colEnd = t.max : a.rowEnd = t.max : l = -1;
3720
3785
  }
3721
- }, Ms = {
3786
+ }, js = {
3722
3787
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks",
3723
3788
  "application/vnd.ms-excel.sheet.macroEnabled.main+xml": "workbooks",
3724
3789
  "application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
@@ -3751,7 +3816,7 @@ var ds = {
3751
3816
  "application/vnd.ms-excel.externalLink": "links",
3752
3817
  "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
3753
3818
  "application/vnd.openxmlformats-officedocument.theme+xml": "themes"
3754
- }, Rs = Vt({ readXLSX: () => Fs }), Vs = (t) => t.startsWith("/") ? t.slice(1) : t, Ls = [
3819
+ }, Bs = ut({ readXLSX: () => Xs }), Fs = (t) => t.startsWith("/") ? t.slice(1) : t, Hs = [
3755
3820
  208,
3756
3821
  207,
3757
3822
  17,
@@ -3760,56 +3825,56 @@ var ds = {
3760
3825
  177,
3761
3826
  26,
3762
3827
  225
3763
- ], js = /^xl\/worksheets\/[^/]+\.xml$/i, Bs = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), Fs = async (n, l) => {
3764
- const { password: c, onVBA: h, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: f = {}, ...g } = l ?? {};
3765
- await C.load();
3766
- const v = !!f.origin && "string" != typeof f.origin, y = d ? new de("function" == typeof d ? d : void 0) : null, x = [], T = (t, e, o) => {
3767
- x.push([
3828
+ ], Ws = /^xl\/worksheets\/[^/]+\.xml$/i, zs = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), Xs = async (n, l) => {
3829
+ const { password: c, onVBA: u, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: f = {}, ...m } = l ?? {};
3830
+ await k.load();
3831
+ const b = !!f.origin && "string" != typeof f.origin, y = d ? new me("function" == typeof d ? d : void 0) : null, v = [], x = (t, e, o) => {
3832
+ v.push([
3768
3833
  t,
3769
3834
  e ?? "",
3770
3835
  o
3771
3836
  ]);
3772
- }, S = { onWarning: T }, I = l?.progress, P = I?.onProgress ? I.onProgress.bind(I) : void 0, O = n.byteLength;
3837
+ }, w = { onWarning: x }, E = l?.progress, P = E?.onProgress ? E.onProgress.bind(E) : void 0, O = n.byteLength;
3773
3838
  let D = 0, N = 0;
3774
- const $ = P ? (t) => {
3839
+ const _ = P ? (t) => {
3775
3840
  if (D <= 0) return;
3776
3841
  N += t;
3777
3842
  const e = Math.min(O, Math.round(N / D * O));
3778
3843
  P(e, O);
3779
- } : void 0, M = import("./z7nDK_gfX7G37XbZ.js");
3780
- let R = null;
3844
+ } : void 0, $ = import("./DFlL4pAqxaQ_hVe1.js");
3845
+ let L = null;
3781
3846
  try {
3782
- R = new DOMParser();
3847
+ L = new DOMParser();
3783
3848
  } catch (n) {}
3784
- let F = null;
3849
+ let V = null;
3785
3850
  try {
3786
- F = new XMLSerializer();
3851
+ V = new XMLSerializer();
3787
3852
  } catch (n) {}
3788
- let H, z, q, G = null;
3789
- R || (G = import("./APP8AzsNgQXHTalA.js").then((e) => t(e.default, 1)));
3853
+ let B, F, q, U = null;
3854
+ L || (U = import("./udbHvSLquJ5xGK3R.js").then((e) => t(e.default, 1)));
3790
3855
  try {
3791
- const [t, e] = await Promise.all([G, M]);
3792
- H = new e.DOMTransformer(), z = R ?? new t.DOMParser(), q = F ?? new t.XMLSerializer();
3856
+ const [t, e] = await Promise.all([U, $]);
3857
+ B = new e.DOMTransformer(), F = L ?? new t.DOMParser(), q = V ?? new t.XMLSerializer();
3793
3858
  } catch (n) {
3794
3859
  throw new Error("Unable to load XLSX parser.", { cause: n });
3795
3860
  }
3796
- const K = (t) => q.serializeToString(t);
3861
+ const J = (t) => q.serializeToString(t);
3797
3862
  if (((t) => {
3798
- if (t.byteLength < Ls.length) return !1;
3799
- const e = new Uint8Array(t, 0, Ls.length);
3800
- return Ls.every((t, o) => e[o] === t);
3863
+ if (t.byteLength < Hs.length) return !1;
3864
+ const e = new Uint8Array(t, 0, Hs.length);
3865
+ return Hs.every((t, o) => e[o] === t);
3801
3866
  })(n)) throw new i("This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.");
3802
- let J;
3867
+ let Y;
3803
3868
  try {
3804
- J = await ue.create(n);
3869
+ Y = await ge.create(n);
3805
3870
  } catch (n) {
3806
3871
  throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: n });
3807
3872
  }
3808
3873
  y?.mark("zip-open");
3809
3874
  try {
3810
- if (!J.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3875
+ if (!Y.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3811
3876
  const t = (t) => {
3812
- const e = J.getEntry(t);
3877
+ const e = Y.getEntry(t);
3813
3878
  return e ? { content: e } : void 0;
3814
3879
  }, o = {
3815
3880
  workbooks: [],
@@ -3845,7 +3910,7 @@ var ds = {
3845
3910
  const e = s.ContentType, o = s.PartName;
3846
3911
  if (!e || !o) return;
3847
3912
  t.overrides[o.startsWith("/") ? o.slice(1) : o] = e;
3848
- const r = Ms[e], n = r ? t[r] : void 0;
3913
+ const r = js[e], n = r ? t[r] : void 0;
3849
3914
  Array.isArray(n) && n.push(o);
3850
3915
  } else if ("Default" === o) {
3851
3916
  const e = s.Extension, o = s.ContentType;
@@ -3857,25 +3922,25 @@ var ds = {
3857
3922
  },
3858
3923
  onError: (t) => {
3859
3924
  ((t) => {
3860
- x.push([t, "[Content_Types].xml"]);
3925
+ v.push([t, "[Content_Types].xml"]);
3861
3926
  })(`Error parsing content types: ${t?.message ?? t}`);
3862
3927
  }
3863
- }))(o), e = await J.getTextStream("[Content_Types].xml");
3928
+ }))(o), e = await Y.getTextStream("[Content_Types].xml");
3864
3929
  if (!e) throw new Error("Error parsing content types: '[Content_Types].xml'");
3865
3930
  try {
3866
- await Ie.parseStream(e, t, { xmlns: !1 });
3931
+ await Ne.parseStream(e, t, { xmlns: !1 });
3867
3932
  } catch (n) {
3868
3933
  throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: n });
3869
3934
  }
3870
- v && await J.getBuffer("[Content_Types].xml");
3935
+ b && await Y.getBuffer("[Content_Types].xml");
3871
3936
  }
3872
3937
  y?.mark("content-types");
3873
3938
  const l = o.sst, c = /* @__PURE__ */ new Set();
3874
- for (const t of o.sheets) c.add(Vs(t));
3875
- l && c.add(Vs(l));
3876
- for (const t of c) D += J.uncompressedSize(t);
3877
- if (await J.prefetch((t) => !c.has(t) && !js.test(t)), y?.mark("prefetch-side-parts"), 0 === o.workbooks.length) {
3878
- const e = Rt("_rels/.rels", t, z, H, S), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
3939
+ for (const t of o.sheets) c.add(Fs(t));
3940
+ l && c.add(Fs(l));
3941
+ for (const t of c) D += Y.uncompressedSize(t);
3942
+ if (await Y.prefetch((t) => !c.has(t) && !Ws.test(t)), y?.mark("prefetch-side-parts"), 0 === o.workbooks.length) {
3943
+ const e = pt("_rels/.rels", t, F, B, w), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
3879
3944
  if (e) {
3880
3945
  for (const t of e.values()) if (t.type === s && t.target) {
3881
3946
  o.workbooks.push(t.target);
@@ -3884,83 +3949,83 @@ var ds = {
3884
3949
  }
3885
3950
  }
3886
3951
  if (0 === o.workbooks.length) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3887
- const g = f?.resources ?? new w(), C = g.beginPersist(), N = {}, M = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Map();
3888
- R.set("parseInlineDxf", (t) => {
3952
+ const m = f?.resources ?? new T(), k = m.beginPersist(), N = {}, $ = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Map();
3953
+ L.set("parseInlineDxf", (t) => {
3889
3954
  if (!t) return;
3890
- const e = z.parseFromString(`<dxf xmlns:x14="${Y}" xmlns:xm="${U}">${t}</dxf>`, "text/xml")?.documentElement;
3955
+ const e = F.parseFromString(`<dxf xmlns:x14="${re}" xmlns:xm="${G}">${t}</dxf>`, "text/xml")?.documentElement;
3891
3956
  if (!e) return;
3892
- const o = H.parseDxf(e, "", S);
3957
+ const o = B.parseDxf(e, "", w);
3893
3958
  return Object.keys(o).length > 0 ? o : void 0;
3894
3959
  });
3895
- const F = Ht("metadata", o, t, z, H, S).entries().next()?.value?.[1]?.metadata;
3896
- F && R.set("metadata", F), R.set(Go, ct());
3897
- const q = /* @__PURE__ */ new Map(), G = [], tt = /* @__PURE__ */ new Set(), et = (t) => {
3898
- tt.add(Vs(t));
3899
- }, ot = (e, o = q) => {
3960
+ const V = Ot("metadata", o, t, F, B, w).entries().next()?.value?.[1]?.metadata;
3961
+ V && L.set("metadata", V), L.set(Qo, Z());
3962
+ const q = /* @__PURE__ */ new Map(), U = [], et = /* @__PURE__ */ new Set(), ot = (t) => {
3963
+ et.add(Fs(t));
3964
+ }, st = (e, o = q) => {
3900
3965
  const s = e.lastIndexOf("/"), r = e.substring(0, s + 1) + "_rels/" + e.substring(s + 1, e.length) + ".rels";
3901
3966
  let n = o.get(r);
3902
- return n || (n = Rt(r, t, z, H, wt), o.set(r, n)), n;
3903
- }, st = (e, o, s, r = q) => {
3904
- let n = ot(o, r).get(e), i = n?.target;
3967
+ return n || (n = pt(r, t, F, B, Tt), o.set(r, n)), n;
3968
+ }, rt = (e, o, s, r = q) => {
3969
+ let n = st(o, r).get(e), i = n?.target;
3905
3970
  if (!i) return null;
3906
3971
  if ("External" === n.targetMode) {
3907
3972
  if (!s) return n.target;
3908
- const t = g.add({ source: { external: n.target } });
3909
- return t.addReference(N), M.add(t), C.toResourceId(t);
3973
+ const t = m.add({ source: { external: n.target } });
3974
+ return t.addReference(N), $.add(t), k.toResourceId(t);
3910
3975
  }
3911
3976
  const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
3912
- i.startsWith("/") || (i = l + i), i = dt(i);
3913
- const c = H?.getVisitorParamsState().get("dxfs");
3914
- let h = r.get(i);
3915
- if (!h) {
3977
+ i.startsWith("/") || (i = l + i), i = Ct(i);
3978
+ const c = B?.getVisitorParamsState().get("dxfs");
3979
+ let u = r.get(i);
3980
+ if (!u) {
3916
3981
  const e = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
3917
3982
  if (n.type === e) {
3918
3983
  const t = {};
3919
- h = t;
3984
+ u = t;
3920
3985
  const e = async () => {
3921
- const e = Yo(t, (t, e) => "legacyDrawing" === e ? at(t, i) : "formControl" === e ? lt(t, i) : "part" === e ? ht(t, i) : st(t, i, "resource" === e) ?? null, Ot, c, () => {}, (t, e, o) => {
3922
- T(t, e ? `${e} (${i})` : i, o);
3923
- }, void 0, R), o = await J.getTextStream(i, $);
3986
+ const e = ss(t, (t, e) => "legacyDrawing" === e ? ct(t, i) : "formControl" === e ? ut(t, i) : "part" === e ? ft(t, i) : rt(t, i, "resource" === e) ?? null, Mt, c, () => {}, (t, e, o) => {
3987
+ x(t, e ? `${e} (${i})` : i, o);
3988
+ }, void 0, L), o = await Y.getTextStream(i, _);
3924
3989
  if (o) try {
3925
- await Ie.parseStream(o, e, {
3990
+ await Ne.parseStream(o, e, {
3926
3991
  xmlns: !1,
3927
3992
  lean: !0
3928
3993
  });
3929
3994
  } catch (t) {
3930
3995
  throw new Error(`Error parsing sheet: '${i}'`, { cause: t });
3931
3996
  }
3932
- const s = ot(i, r);
3997
+ const s = st(i, r);
3933
3998
  if (s) {
3934
- it(t, i, s, r), gt(t), Jt(t);
3999
+ at(t, i, s, r), R(t), z(t);
3935
4000
  const e = [];
3936
4001
  s.forEach((t, o) => {
3937
4002
  if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" !== t.type) return;
3938
- const s = ht(o, i, t.type, (t) => "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" !== t);
4003
+ const s = ft(o, i, t.type, (t) => "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" !== t);
3939
4004
  if (!s?.xml) return;
3940
4005
  const r = /<pivotTableDefinition\b[^>]*>/.exec(s.xml)?.[0] ?? "", n = parseInt(/\scacheId="(\d+)"/.exec(r)?.[1] ?? "", 10);
3941
- if (isNaN(n)) return void x.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
3942
- const a = /\sname="([^"]*)"/.exec(r)?.[1], l = Xt(s.xml);
3943
- if (!l) return void x.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
3944
- const c = H?.getVisitorParamsState(), h = Kt(c?.get("numFmts"), c?.get("dxfs")), u = X(s.xml, h), d = u ? void 0 : vt(s.xml, h);
4006
+ if (isNaN(n)) return void v.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
4007
+ const a = /\sname="([^"]*)"/.exec(r)?.[1], l = j(s.xml);
4008
+ if (!l) return void v.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
4009
+ const c = B?.getVisitorParamsState(), u = it(c?.get("numFmts"), c?.get("dxfs")), h = dt(s.xml, u), d = h ? void 0 : At(s.xml, u);
3945
4010
  e.push({
3946
- ...a ? { name: qt(a) } : {},
4011
+ ...a ? { name: zt(a) } : {},
3947
4012
  cacheId: n,
3948
4013
  location: l,
3949
4014
  part: s,
3950
4015
  ...d ? { partFormats: d } : {},
3951
- ...u
4016
+ ...h
3952
4017
  });
3953
4018
  }), e.length > 0 && (t.pivotTables = e);
3954
4019
  }
3955
4020
  };
3956
- G.push(e());
4021
+ U.push(e());
3957
4022
  } else if (n.type === o) {
3958
- const e = jt(i, t, z, H, wt);
4023
+ const e = Wt(i, t, F, B, Tt);
3959
4024
  if (e && 0 !== Object.keys(e).length) {
3960
4025
  const t = e, o = t.__bookRelId, s = t.__absoluteUrlRelId;
3961
4026
  delete t.__bookRelId, delete t.__absoluteUrlRelId;
3962
4027
  const n = [];
3963
- ot(i, r)?.forEach((t, e) => {
4028
+ st(i, r)?.forEach((t, e) => {
3964
4029
  if ("External" === t.targetMode && t.type && t.target) {
3965
4030
  const r = {
3966
4031
  type: t.type,
@@ -3968,43 +4033,43 @@ var ds = {
3968
4033
  };
3969
4034
  e === o ? r.role = "book" : e === s && (r.role = "absoluteUrl"), n.push(r);
3970
4035
  }
3971
- }), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n, et(i), h = t;
3972
- } else h = null;
3973
- } else h = s ? Q(i, t, (t, e) => {
3974
- const o = g.add({ source: { buffer: t } });
3975
- return o.addReference(N), M.add(o), C.toResourceId(o);
3976
- }, wt) : jt(i, t, z, H, wt);
4036
+ }), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n, ot(i), u = t;
4037
+ } else u = null;
4038
+ } else u = s ? Pt(i, t, (t, e) => {
4039
+ const o = m.add({ source: { buffer: t } });
4040
+ return o.addReference(N), $.add(o), k.toResourceId(o);
4041
+ }, Tt) : Wt(i, t, F, B, Tt);
3977
4042
  }
3978
- return h;
3979
- }, rt = (t, e) => {
4043
+ return u;
4044
+ }, nt = (t, e) => {
3980
4045
  if (!t) return null;
3981
- const o = ot(e, q)?.get(t);
4046
+ const o = st(e, q)?.get(t);
3982
4047
  if (!o?.target || "External" === o.targetMode) return null;
3983
4048
  let s = o.target;
3984
- return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), dt(s);
3985
- }, it = (t, e, o, s) => {
4049
+ return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), Ct(s);
4050
+ }, at = (t, e, o, s) => {
3986
4051
  const n = [], i = /* @__PURE__ */ new Map(), a = [];
3987
4052
  o.forEach((t, o) => {
3988
4053
  if ("http://schemas.microsoft.com/office/2017/10/relationships/threadedComment" !== t.type) return;
3989
- const r = st(o, e, !1, s)?.comments;
4054
+ const r = rt(o, e, !1, s)?.comments;
3990
4055
  if (!r) return;
3991
4056
  for (let t = 0; t < r.length; t++) {
3992
4057
  const e = r[t];
3993
4058
  if (!e?.v?.id) continue;
3994
- const { parentId: o, done: s, content: l, ...c } = e.v, h = {
4059
+ const { parentId: o, done: s, content: l, ...c } = e.v, u = {
3995
4060
  ...c,
3996
- content: Bs(l)
4061
+ content: zs(l)
3997
4062
  };
3998
4063
  o ? a.push({
3999
4064
  parentId: o,
4000
- json: h
4001
- }) : (s && (h.done = !0), i.set(h.id, h), n.push({
4065
+ json: u
4066
+ }) : (s && (u.done = !0), i.set(u.id, u), n.push({
4002
4067
  r: e.r,
4003
- v: h
4068
+ v: u
4004
4069
  }));
4005
4070
  }
4006
- const l = rt(o, e);
4007
- l && et(l);
4071
+ const l = nt(o, e);
4072
+ l && ot(l);
4008
4073
  });
4009
4074
  for (let t = 0; t < a.length; t++) {
4010
4075
  const { parentId: e, json: o } = a[t], s = i.get(e);
@@ -4013,7 +4078,7 @@ var ds = {
4013
4078
  const l = [];
4014
4079
  if (o.forEach((t, o) => {
4015
4080
  if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" !== t.type) return;
4016
- const n = st(o, e, !1, s), a = n?.comments;
4081
+ const n = rt(o, e, !1, s), a = n?.comments;
4017
4082
  if (!a) return;
4018
4083
  const c = n?.authors;
4019
4084
  for (let t = 0; t < a.length; t++) {
@@ -4021,30 +4086,30 @@ var ds = {
4021
4086
  if (!e?.r) continue;
4022
4087
  let o = c && void 0 !== e.v.authorId ? c[e.v.authorId] : void 0;
4023
4088
  if (o && o.startsWith("tc=")) {
4024
- if (i.has(B(o.substring(3)))) continue;
4089
+ if (i.has(Xt(o.substring(3)))) continue;
4025
4090
  o = void 0;
4026
4091
  }
4027
4092
  const s = {
4028
4093
  id: r.uuidV4().toUpperCase(),
4029
4094
  asNote: !0,
4030
4095
  content: e.v.content ?? ""
4031
- }, n = o ? xt({ displayName: o }) : void 0;
4096
+ }, n = o ? wt({ displayName: o }) : void 0;
4032
4097
  n && (s.personId = n.id), l.push({
4033
4098
  r: e.r,
4034
4099
  v: s
4035
4100
  });
4036
4101
  }
4037
- const h = rt(o, e);
4038
- h && et(h);
4102
+ const u = nt(o, e);
4103
+ u && ot(u);
4039
4104
  }), 0 === n.length && 0 === l.length) return;
4040
- const c = [...n, ...l], h = t.legacyDrawing;
4041
- if (h?.xml) {
4042
- const { rest: e, notes: o } = L(h.xml);
4105
+ const c = [...n, ...l], u = t.legacyDrawing;
4106
+ if (u?.xml) {
4107
+ const { rest: e, notes: o } = yt(u.xml);
4043
4108
  if (o.length > 0) {
4044
4109
  const s = /* @__PURE__ */ new Map();
4045
4110
  for (let t = 0; t < o.length; t++) {
4046
4111
  const e = o[t];
4047
- s.set(m.cellToString({
4112
+ s.set(S.cellToString({
4048
4113
  rowIndex: e.row,
4049
4114
  colIndex: e.col
4050
4115
  }), e);
@@ -4053,9 +4118,9 @@ var ds = {
4053
4118
  const e = c[t], o = s.get(String(e.r).toUpperCase());
4054
4119
  if (!o) continue;
4055
4120
  if (s.delete(String(e.r).toUpperCase()), !e.v.asNote) continue;
4056
- const r = Z(o.xml), n = {};
4121
+ const r = Q(o.xml), n = {};
4057
4122
  if (r.anchor) {
4058
- const [t, e, s, i, a, l, c, h] = r.anchor;
4123
+ const [t, e, s, i, a, l, c, u] = r.anchor;
4059
4124
  n.anchor = {
4060
4125
  tl: {
4061
4126
  c: t - o.col,
@@ -4067,7 +4132,7 @@ var ds = {
4067
4132
  c: a - o.col,
4068
4133
  x: l,
4069
4134
  r: c - o.row,
4070
- y: h
4135
+ y: u
4071
4136
  }
4072
4137
  };
4073
4138
  } else r.bounds && (n.bounds = r.bounds);
@@ -4077,55 +4142,55 @@ var ds = {
4077
4142
  s.forEach((t) => {
4078
4143
  r.push(t.xml);
4079
4144
  });
4080
- const n = V(e, r);
4081
- n ? h.xml = n : delete t.legacyDrawing;
4145
+ const n = Zt(e, r);
4146
+ n ? u.xml = n : delete t.legacyDrawing;
4082
4147
  }
4083
4148
  }
4084
4149
  t.comments = c;
4085
- }, at = (e, o) => {
4086
- const s = rt(e, o);
4150
+ }, ct = (e, o) => {
4151
+ const s = nt(e, o);
4087
4152
  if (!s) return null;
4088
- const r = t(Vs(s));
4153
+ const r = t(Fs(s));
4089
4154
  if (!r) return null;
4090
- const n = { xml: us(new TextDecoder("utf-8").decode(r.content)) }, i = [];
4091
- return ot(s, q)?.forEach((t, e) => {
4155
+ const n = { xml: gs(new TextDecoder("utf-8").decode(r.content)) }, i = [];
4156
+ return st(s, q)?.forEach((t, e) => {
4092
4157
  if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" !== t.type) return;
4093
- const o = st(e, s, !0);
4158
+ const o = rt(e, s, !0);
4094
4159
  "number" == typeof o && i.push({
4095
4160
  id: e,
4096
4161
  resId: o
4097
4162
  });
4098
- }), i.length > 0 && (n.images = i), et(s), n;
4099
- }, lt = (e, o) => {
4100
- const s = rt(e, o);
4163
+ }), i.length > 0 && (n.images = i), ot(s), n;
4164
+ }, ut = (e, o) => {
4165
+ const s = nt(e, o);
4101
4166
  if (!s) return null;
4102
- const r = jt(s, t, z, H, wt)?.formControl ?? null;
4103
- return r && et(s), r;
4104
- }, ht = (e, s, r, n, i = /* @__PURE__ */ new Set()) => {
4105
- const a = rt(e, s);
4167
+ const r = Wt(s, t, F, B, Tt)?.formControl ?? null;
4168
+ return r && ot(s), r;
4169
+ }, ft = (e, s, r, n, i = /* @__PURE__ */ new Set()) => {
4170
+ const a = nt(e, s);
4106
4171
  if (!a || i.has(a)) return null;
4107
- const l = r ?? ot(s, q)?.get(e)?.type;
4172
+ const l = r ?? st(s, q)?.get(e)?.type;
4108
4173
  if (!l) return null;
4109
- const c = t(Vs(a));
4174
+ const c = t(Fs(a));
4110
4175
  if (!c) return null;
4111
4176
  i.add(a);
4112
- const h = a.substring(a.lastIndexOf("/") + 1), u = o.overrides[Vs(a)] ?? o.defaults[h.substring(h.lastIndexOf(".") + 1).toLowerCase()], d = {
4177
+ const u = a.substring(a.lastIndexOf("/") + 1), h = o.overrides[Fs(a)] ?? o.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], d = {
4113
4178
  id: e,
4114
4179
  type: l,
4115
- name: h
4180
+ name: u
4116
4181
  };
4117
- if (u && (d.contentType = u), ((t, e) => t ? t.endsWith("+xml") || "application/xml" === t : /\.(xml|rels|vml)$/i.test(e))(u, h)) d.xml = new TextDecoder("utf-8").decode(c.content);
4182
+ if (h && (d.contentType = h), ((t, e) => t ? t.endsWith("+xml") || "application/xml" === t : /\.(xml|rels|vml)$/i.test(e))(h, u)) d.xml = new TextDecoder("utf-8").decode(c.content);
4118
4183
  else {
4119
- const t = st(e, s, !0);
4184
+ const t = rt(e, s, !0);
4120
4185
  if ("number" != typeof t) return null;
4121
4186
  d.resId = t;
4122
4187
  }
4123
4188
  const p = [];
4124
- return ot(a, q)?.forEach((t, e) => {
4189
+ return st(a, q)?.forEach((t, e) => {
4125
4190
  if (!t?.type) return;
4126
4191
  if (n && !n(t.type)) return;
4127
4192
  if ("External" === t.targetMode) {
4128
- const o = st(e, a, !0);
4193
+ const o = rt(e, a, !0);
4129
4194
  "number" == typeof o && p.push({
4130
4195
  id: e,
4131
4196
  type: t.type,
@@ -4133,138 +4198,138 @@ var ds = {
4133
4198
  });
4134
4199
  return;
4135
4200
  }
4136
- const o = ht(e, a, t.type, n, i);
4201
+ const o = ft(e, a, t.type, n, i);
4137
4202
  o && p.push(o);
4138
- }), p.length > 0 && (d.parts = p), et(a), d;
4139
- }, ut = Ht("coreprops", o, t, z, H, S), pt = Ht("extprops", o, t, z, H, S), ft = Ht("custprops", o, t, z, H, S);
4140
- ft.forEach((t, e) => {
4141
- t?.custom && et(e);
4203
+ }), p.length > 0 && (d.parts = p), ot(a), d;
4204
+ }, gt = Ot("coreprops", o, t, F, B, w), mt = Ot("extprops", o, t, F, B, w), bt = Ot("custprops", o, t, F, B, w);
4205
+ bt.forEach((t, e) => {
4206
+ t?.custom && ot(e);
4142
4207
  });
4143
- const mt = new k(), bt = Ht("people", o, t, z, H, S);
4144
- if (bt.size > 0) {
4145
- const [t, e] = bt.entries().next().value;
4146
- mt.fromJSON(e?.persons), et(t);
4147
- }
4148
- const xt = (t) => {
4149
- if (t) return mt.add(t).toJSON();
4150
- }, wt = {
4151
- paramMap: R,
4152
- getRefs: ot,
4153
- getRef: st,
4208
+ const vt = new C(), xt = Ot("people", o, t, F, B, w);
4209
+ if (xt.size > 0) {
4210
+ const [t, e] = xt.entries().next().value;
4211
+ vt.fromJSON(e?.persons), ot(t);
4212
+ }
4213
+ const wt = (t) => {
4214
+ if (t) return vt.add(t).toJSON();
4215
+ }, Tt = {
4216
+ paramMap: L,
4217
+ getRefs: st,
4218
+ getRef: rt,
4154
4219
  parsedRefs: q,
4155
- readEmbeddedPart: (t, e) => ht(t, e),
4156
- addPerson: xt,
4157
- serializeElement: K,
4158
- onWarning: T
4159
- }, Tt = [], St = /* @__PURE__ */ new Map();
4160
- if (R.set(Zo, St), l) {
4161
- const t = await J.getTextStream(l, $);
4220
+ readEmbeddedPart: (t, e) => ft(t, e),
4221
+ addPerson: wt,
4222
+ serializeElement: J,
4223
+ onWarning: x
4224
+ }, St = [], kt = /* @__PURE__ */ new Map();
4225
+ if (L.set(es, kt), l) {
4226
+ const t = await Y.getTextStream(l, _);
4162
4227
  if (t) {
4163
4228
  const e = ((t, e) => {
4164
4229
  let o = !1, s = !1, r = 0, n = "";
4165
- const i = new Wo();
4230
+ const i = new Uo();
4166
4231
  return {
4167
4232
  onOpenTag: (t) => {
4168
- const e = Ho(t.name);
4233
+ const e = qo(t.name);
4169
4234
  "t" === e ? o && 0 === r && (s = !0) : "si" === e ? (o = !0, n = "", i.reset(), r = 0) : "rPh" === e || "phoneticPr" === e ? r++ : o && 0 === r && i.onOpenTag(e, t.attributes);
4170
4235
  },
4171
4236
  onText: (t) => {
4172
4237
  s && (n += t, i.onText(t));
4173
4238
  },
4174
4239
  onCloseTag: (t) => {
4175
- const e = Ho(t.name);
4240
+ const e = qo(t.name);
4176
4241
  "t" === e ? s = !1 : "si" === e ? (((t, e) => {
4177
- e && St.set(Tt.length, e), Tt.push(t);
4178
- })(Ut(n), i.take() ?? void 0), o = !1, n = "") : "rPh" === e || "phoneticPr" === e ? r > 0 && r-- : i.onCloseTag(e);
4242
+ e && kt.set(St.length, e), St.push(t);
4243
+ })(W(n), i.take() ?? void 0), o = !1, n = "") : "rPh" === e || "phoneticPr" === e ? r > 0 && r-- : i.onCloseTag(e);
4179
4244
  },
4180
4245
  onError: (t) => {
4181
4246
  e?.(`Error parsing shared strings: ${t?.message ?? t}`);
4182
4247
  }
4183
4248
  };
4184
4249
  })(0, (t) => {
4185
- T(t, l);
4250
+ x(t, l);
4186
4251
  });
4187
4252
  try {
4188
- await Ie.parseStream(t, e, { xmlns: !1 });
4253
+ await Ne.parseStream(t, e, { xmlns: !1 });
4189
4254
  } catch (n) {
4190
4255
  throw new Error(`Error parsing shared strings: '${l}'`, { cause: n });
4191
4256
  }
4192
4257
  }
4193
4258
  }
4194
4259
  y?.mark("shared-strings");
4195
- let kt = Tt.length;
4196
- const Et = /* @__PURE__ */ new Map();
4197
- let It = kt;
4198
- const Ot = (t) => {
4199
- const e = Et.get(t);
4260
+ let It = St.length;
4261
+ const Dt = /* @__PURE__ */ new Map();
4262
+ let _t = It;
4263
+ const Mt = (t) => {
4264
+ const e = Dt.get(t);
4200
4265
  if (void 0 !== e) return e;
4201
- const o = It;
4202
- return Et.set(t, It++), Tt.push(t), o;
4203
- }, Dt = [];
4204
- o.slicersCache = Dt;
4205
- const Nt = J.getNames(), $t = Nt.length;
4206
- for (let t = 0; t < $t; t++) {
4207
- const e = Nt[t];
4208
- e && (e.startsWith("xl/slicerCache") || e.startsWith("xl/timelineCaches/") && e.endsWith(".xml")) && Dt.push(`/${e}`);
4209
- }
4210
- const Vt = Ht("slicersCache", o, t, z, H, wt), Lt = /* @__PURE__ */ new Map();
4266
+ const o = _t;
4267
+ return Dt.set(t, _t++), St.push(t), o;
4268
+ }, $t = [];
4269
+ o.slicersCache = $t;
4270
+ const Rt = Y.getNames(), Lt = Rt.length;
4271
+ for (let t = 0; t < Lt; t++) {
4272
+ const e = Rt[t];
4273
+ e && (e.startsWith("xl/slicerCache") || e.startsWith("xl/timelineCaches/") && e.endsWith(".xml")) && $t.push(`/${e}`);
4274
+ }
4275
+ const Vt = Ot("slicersCache", o, t, F, B, Tt), Bt = /* @__PURE__ */ new Map();
4211
4276
  Vt.forEach((t, e) => {
4212
- t?.cacheName && (t.cachePath = e, Lt.set(t.cacheName, t));
4213
- }), R.set("slicerCaches", Lt);
4214
- const Bt = [];
4215
- o.slicers = Bt;
4216
- for (let t = 0; t < $t; t++) {
4217
- const e = Nt[t];
4218
- e && (e.startsWith("xl/slicers/") || e.startsWith("xl/timelines/")) && e.endsWith(".xml") && Bt.push(`/${e}`);
4219
- }
4220
- const Ft = {
4277
+ t?.cacheName && (t.cachePath = e, Bt.set(t.cacheName, t));
4278
+ }), L.set("slicerCaches", Bt);
4279
+ const Ft = [];
4280
+ o.slicers = Ft;
4281
+ for (let t = 0; t < Lt; t++) {
4282
+ const e = Rt[t];
4283
+ e && (e.startsWith("xl/slicers/") || e.startsWith("xl/timelines/")) && e.endsWith(".xml") && Ft.push(`/${e}`);
4284
+ }
4285
+ const Ht = {
4221
4286
  getFile: t,
4222
- domParser: z,
4287
+ domParser: F,
4223
4288
  getAddress: (t, e) => {
4224
- const o = st(e, t, !1);
4289
+ const o = rt(e, t, !1);
4225
4290
  return "string" == typeof o ? o : null;
4226
4291
  },
4227
4292
  getBytes: (e, o) => {
4228
- const s = rt(o, e), r = s ? t(s.substring(1))?.content : void 0;
4293
+ const s = nt(o, e), r = s ? t(s.substring(1))?.content : void 0;
4229
4294
  return r ? r.slice().buffer : null;
4230
4295
  },
4231
4296
  addFetched: (t, e) => {
4232
- const o = g.add({
4297
+ const o = m.add({
4233
4298
  source: { buffer: t },
4234
4299
  fetchedFrom: e
4235
4300
  });
4236
- return o.addReference(N), M.add(o), C.toResourceId(o);
4301
+ return o.addReference(N), $.add(o), k.toResourceId(o);
4237
4302
  },
4238
- markAbsorbed: et
4239
- }, zt = /* @__PURE__ */ new Map();
4240
- for (const t of At.getAll()) zt.set(t.structure, t.beginRead(Ft));
4303
+ markAbsorbed: ot
4304
+ }, qt = /* @__PURE__ */ new Map();
4305
+ for (const t of H.getAll()) qt.set(t.structure, t.beginRead(Ht));
4241
4306
  const Gt = ((t, e) => {
4242
4307
  const o = (o) => {
4243
4308
  const s = t(o);
4244
4309
  return s ? e.parseFromString(new TextDecoder().decode(s.content), "text/xml").documentElement ?? null : null;
4245
- }, s = ie(o("xl/richData/rdrichvaluestructure.xml"), "s").map((t) => ({
4310
+ }, s = ue(o("xl/richData/rdrichvaluestructure.xml"), "s").map((t) => ({
4246
4311
  t: t.getAttribute("t") ?? "",
4247
- keys: ae(t)
4248
- })), r = ie(o("xl/richData/rdrichvalue.xml"), "rv").map((t) => {
4249
- const e = ie(t, "fb")[0];
4312
+ keys: he(t)
4313
+ })), r = ue(o("xl/richData/rdrichvalue.xml"), "rv").map((t) => {
4314
+ const e = ue(t, "fb")[0];
4250
4315
  return {
4251
4316
  s: parseInt(t.getAttribute("s") ?? "-1", 10),
4252
- values: ie(t, "v").map((t) => t.textContent ?? ""),
4317
+ values: ue(t, "v").map((t) => t.textContent ?? ""),
4253
4318
  fb: e ? e.textContent ?? "" : null
4254
4319
  };
4255
- }), n = ie(o("xl/richData/rdarray.xml"), "a").map((t) => {
4256
- const e = le(t), o = parseInt(t.getAttribute("r") ?? "", 10), s = parseInt(t.getAttribute("c") ?? "", 10), r = o > 0 ? o : e.length;
4320
+ }), n = ue(o("xl/richData/rdarray.xml"), "a").map((t) => {
4321
+ const e = de(t), o = parseInt(t.getAttribute("r") ?? "", 10), s = parseInt(t.getAttribute("c") ?? "", 10), r = o > 0 ? o : e.length;
4257
4322
  return {
4258
4323
  rows: r,
4259
4324
  columns: s > 0 ? s : Math.max(1, Math.ceil(e.length / Math.max(1, r))),
4260
4325
  items: e
4261
4326
  };
4262
- }), i = ie(o("xl/richData/rdsupportingpropertybagstructure.xml"), "s").map(ae), a = o("xl/richData/rdsupportingpropertybag.xml"), l = ie(ie(a, "spbArrays")[0], "a").map(le), c = ie(ie(a, "spbData")[0], "spb").map((t) => ({
4327
+ }), i = ue(o("xl/richData/rdsupportingpropertybagstructure.xml"), "s").map(he), a = o("xl/richData/rdsupportingpropertybag.xml"), l = ue(ue(a, "spbArrays")[0], "a").map(de), c = ue(ue(a, "spbData")[0], "spb").map((t) => ({
4263
4328
  s: parseInt(t.getAttribute("s") ?? "-1", 10),
4264
- values: ie(t, "v").map((t) => t.textContent ?? "")
4265
- })), h = o("xl/richData/rdRichValueTypes.xml"), u = ce(ie(ie(h, "global")[0], "keyFlags")[0]), d = /* @__PURE__ */ new Map();
4266
- for (const t of ie(ie(h, "types")[0], "type")) d.set(t.getAttribute("name") ?? "", ce(ie(t, "keyFlags")[0]));
4267
- const p = o("xl/richData/richStyles.xml"), f = ie(ie(p, "dxfs")[0], "dxf").map((t) => ie(t, "numFmt")[0]?.getAttribute("formatCode") ?? null), g = ie(ie(p, "richProperties")[0], "rPr").map((t) => t.getAttribute("n") ?? "");
4329
+ values: ue(t, "v").map((t) => t.textContent ?? "")
4330
+ })), u = o("xl/richData/rdRichValueTypes.xml"), h = pe(ue(ue(u, "global")[0], "keyFlags")[0]), d = /* @__PURE__ */ new Map();
4331
+ for (const t of ue(ue(u, "types")[0], "type")) d.set(t.getAttribute("name") ?? "", pe(ue(t, "keyFlags")[0]));
4332
+ const p = o("xl/richData/richStyles.xml"), f = ue(ue(p, "dxfs")[0], "dxf").map((t) => ue(t, "numFmt")[0]?.getAttribute("formatCode") ?? null), g = ue(ue(p, "richProperties")[0], "rPr").map((t) => t.getAttribute("n") ?? "");
4268
4333
  return {
4269
4334
  structures: s,
4270
4335
  values: r,
@@ -4272,11 +4337,11 @@ var ds = {
4272
4337
  bagStructures: i,
4273
4338
  bagArrays: l,
4274
4339
  bags: c,
4275
- globalKeyFlags: u,
4340
+ globalKeyFlags: h,
4276
4341
  typeKeyFlags: d,
4277
- richStyles: ie(ie(p, "richStyles")[0], "rSty").map((t) => {
4342
+ richStyles: ue(ue(p, "richStyles")[0], "rSty").map((t) => {
4278
4343
  const e = /* @__PURE__ */ new Map();
4279
- for (const o of ie(t, "rpv")) {
4344
+ for (const o of ue(t, "rpv")) {
4280
4345
  const t = g[parseInt(o.getAttribute("i") ?? "-1", 10)];
4281
4346
  t && e.set(t, o.textContent ?? "");
4282
4347
  }
@@ -4288,25 +4353,25 @@ var ds = {
4288
4353
  };
4289
4354
  })
4290
4355
  };
4291
- })(t, z), Zt = Yt(Gt, zt, (t) => {
4292
- T(t, "/xl/richData/rdrichvalue.xml");
4356
+ })(t, F), Kt = Ut(Gt, qt, (t) => {
4357
+ x(t, "/xl/richData/rdrichvalue.xml");
4293
4358
  });
4294
- R.set("richData", Gt.values.map((t, e) => Zt.cellValue(e)));
4295
- for (let t = 0; t < $t; t++) {
4296
- const e = Nt[t];
4297
- e.startsWith("xl/richData/") && !e.includes("/_rels/") && et(e);
4298
- }
4299
- const te = Ht("themes", o, t, z, H, wt);
4300
- let ee = null;
4301
- if (te && te.entries) {
4302
- let t = te.entries().next();
4303
- t?.value?.[1] && (ee = t.value[1]);
4304
- }
4305
- const se = new b(ee);
4306
- let re = Ht("styles", o, t, z, H, wt).entries().next()?.value?.[1];
4307
- re && (re = JSON.parse(a.JSONStableStringify(re)));
4308
- const ne = Ht("workbooks", o, t, z, H, wt);
4309
- R.set(Jo, !0 === ne.entries().next().value?.[1]?.date1904), "none" !== (f.calcOnLoad ?? p) && R.set(Ko, ((t, e) => {
4359
+ L.set("richData", Gt.values.map((t, e) => Kt.cellValue(e)));
4360
+ for (let t = 0; t < Lt; t++) {
4361
+ const e = Rt[t];
4362
+ e.startsWith("xl/richData/") && !e.includes("/_rels/") && ot(e);
4363
+ }
4364
+ const Jt = Ot("themes", o, t, F, B, Tt);
4365
+ let Qt = null;
4366
+ if (Jt && Jt.entries) {
4367
+ let t = Jt.entries().next();
4368
+ t?.value?.[1] && (Qt = t.value[1]);
4369
+ }
4370
+ const Yt = new g(Qt);
4371
+ let oe = Ot("styles", o, t, F, B, Tt).entries().next()?.value?.[1];
4372
+ oe && (oe = JSON.parse(a.JSONStableStringify(oe)));
4373
+ const se = Ot("workbooks", o, t, F, B, Tt);
4374
+ L.set(ts, !0 === se.entries().next().value?.[1]?.date1904), "none" !== (f.calcOnLoad ?? p) && L.set(Yo, ((t, e) => {
4310
4375
  const o = /* @__PURE__ */ new Set();
4311
4376
  if (t) for (let e = 0; e < t.length; e++) o.add(String(t[e]?.name).toUpperCase());
4312
4377
  if (e) for (let t = 0; t < e.length; t++) try {
@@ -4318,17 +4383,17 @@ var ds = {
4318
4383
  for (const t of s.keys()) o.add(t.toUpperCase());
4319
4384
  } catch {}
4320
4385
  return (t) => o.has(t) || A.has(t);
4321
- })(ne.entries().next().value?.[1]?.names, f.functions)), y?.mark("side-parts-json"), await Promise.all(G);
4386
+ })(se.entries().next().value?.[1]?.names, f.functions)), y?.mark("side-parts-json"), await Promise.all(U);
4322
4387
  {
4323
- const t = ne.entries().next().value?.[1], e = ct(t?.names), o = t?.sheets ?? [];
4388
+ const t = se.entries().next().value?.[1], e = Z(t?.names), o = t?.sheets ?? [];
4324
4389
  for (let t = 0; t < o.length; t++) {
4325
- const s = o[t], r = Qt(s);
4390
+ const s = o[t], r = K(s);
4326
4391
  if ("macro" === s?.kind && r?.part.xml) {
4327
- r.part.xml = Wt(r.part.xml, Tt);
4392
+ r.part.xml = M(r.part.xml, St);
4328
4393
  continue;
4329
4394
  }
4330
- const n = W(s);
4331
- n && Mt(n, e);
4395
+ const n = ht(s);
4396
+ n && lt(n, e);
4332
4397
  }
4333
4398
  const s = t?.names;
4334
4399
  if (s) for (let t = 0; t < s.length; t++) {
@@ -4337,11 +4402,11 @@ var ds = {
4337
4402
  }
4338
4403
  }
4339
4404
  P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))), y?.mark("sheets");
4340
- const he = {
4341
- ...ne.entries().next().value?.[1],
4342
- styles: re,
4343
- theme: se.toJSON()
4344
- }, ue = ((t, e, o, s) => {
4405
+ const ne = {
4406
+ ...se.entries().next().value?.[1],
4407
+ styles: oe,
4408
+ theme: Yt.toJSON()
4409
+ }, ae = ((t, e, o, s) => {
4345
4410
  const r = {}, n = (t, e) => {
4346
4411
  if (t) for (const { key: o, value: s } of t) {
4347
4412
  const t = e[o];
@@ -4351,35 +4416,35 @@ var ds = {
4351
4416
  } else r[t] = s;
4352
4417
  }
4353
4418
  };
4354
- if (n(t, ds), n(e, ps), o) {
4419
+ if (n(t, ms), n(e, bs), o) {
4355
4420
  const t = [];
4356
4421
  for (const e of o) {
4357
- const o = gs(e);
4422
+ const o = vs(e);
4358
4423
  o ? t.push(o) : s?.(`The custom document property '${e.key}' holds a value of a kind that is not read (${e.kind ? "vt:" + e.kind : "none"}); it was dropped.`, "xlsx.docProps.custom.kind");
4359
4424
  }
4360
4425
  t.length > 0 && (r.custom = t);
4361
4426
  }
4362
4427
  return Object.keys(r).length > 0 ? r : void 0;
4363
- })(ut.values().next().value?.properties, pt.values().next().value?.properties, ft.values().next().value?.custom, (t, e) => {
4364
- T(t, "docProps/custom.xml", e);
4428
+ })(gt.values().next().value?.properties, mt.values().next().value?.properties, bt.values().next().value?.custom, (t, e) => {
4429
+ x(t, "docProps/custom.xml", e);
4365
4430
  });
4366
- ue && (he.properties = ue), ((t, e) => {
4431
+ ae && (ne.properties = ae), ((t, e) => {
4367
4432
  if (!e || 0 === e.size) return;
4368
4433
  const o = t.styles;
4369
4434
  if (!o) return;
4370
4435
  const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
4371
4436
  for (const o of t.sheets ?? []) {
4372
- const t = W(o);
4437
+ const t = ht(o);
4373
4438
  if (!t) continue;
4374
4439
  const n = /* @__PURE__ */ new Set();
4375
- vs(t.cols) || n.add(0);
4440
+ Ts(t.cols) || n.add(0);
4376
4441
  for (const e of t.directStyles ?? []) n.add(Array.isArray(e) ? e[1] : e.v);
4377
4442
  for (const e of t.rows ?? []) {
4378
- const t = bs(e);
4443
+ const t = ws(e);
4379
4444
  void 0 !== t && n.add(t);
4380
4445
  }
4381
4446
  for (const e of t.cols ?? []) {
4382
- const t = bs(e);
4447
+ const t = ws(e);
4383
4448
  void 0 !== t && n.add(t);
4384
4449
  }
4385
4450
  let i = !1;
@@ -4397,30 +4462,30 @@ var ds = {
4397
4462
  }
4398
4463
  if (0 === s.size) return;
4399
4464
  const n = o.direct ?? (o.direct = []);
4400
- for (const t of s) 0 !== t && ys(n[t] ?? (n[t] = {}), !0);
4401
- for (const t of r) 0 !== t && ys(n[t] ?? (n[t] = {}), !1);
4465
+ for (const t of s) 0 !== t && Ss(n[t] ?? (n[t] = {}), !0);
4466
+ for (const t of r) 0 !== t && Ss(n[t] ?? (n[t] = {}), !1);
4402
4467
  if (s.has(0)) {
4403
- const t = o.named ?? (o.named = []), e = u.BuiltInName.Normal.toLowerCase();
4468
+ const t = o.named ?? (o.named = []), e = h.BuiltInName.Normal.toLowerCase();
4404
4469
  let s = t.find((t) => t.name?.toLowerCase() === e);
4405
4470
  s || (s = {
4406
- name: u.BuiltInName.Normal,
4471
+ name: h.BuiltInName.Normal,
4407
4472
  style: {}
4408
- }, t.push(s)), ys(s.style, !0);
4473
+ }, t.push(s)), Ss(s.style, !0);
4409
4474
  }
4410
- })(he, R.get(ms)), ((t, e) => {
4475
+ })(ne, L.get(xs)), ((t, e) => {
4411
4476
  if (e && 0 !== e.size) for (const o of t.sheets ?? []) {
4412
- const t = W(o), s = t?.pivotTables;
4477
+ const t = ht(o), s = t?.pivotTables;
4413
4478
  if (!t || !s || 0 === s.length) continue;
4414
- const r = s.map(j), n = s.map(() => []);
4479
+ const r = s.map(Et), n = s.map(() => []);
4415
4480
  for (const [o, s] of t.directStyles ?? []) {
4416
4481
  if (!e.has(s)) continue;
4417
- const t = m.fastStringToRange(o);
4482
+ const t = S.fastStringToRange(o);
4418
4483
  for (let e = 0; e < r.length; e++) {
4419
4484
  const o = r[e];
4420
4485
  if (!o) continue;
4421
4486
  const s = Math.max(t.rowStart, o.rowStart), i = Math.min(t.rowEnd, o.rowEnd), a = Math.max(t.colStart, o.colStart), l = Math.min(t.colEnd, o.colEnd);
4422
4487
  if (s > i || a > l) continue;
4423
- const c = m.rangeToString({
4488
+ const c = S.rangeToString({
4424
4489
  rowStart: s - o.rowStart,
4425
4490
  rowEnd: i - o.rowStart,
4426
4491
  colStart: a - o.colStart,
@@ -4431,19 +4496,19 @@ var ds = {
4431
4496
  }
4432
4497
  for (let t = 0; t < s.length; t++) n[t].length > 0 && (s[t].buttons = n[t]);
4433
4498
  }
4434
- })(he, R.get(xs));
4435
- const de = R.get(Ds);
4499
+ })(ne, L.get(ks));
4500
+ const le = L.get($s);
4436
4501
  ((t, e) => {
4437
4502
  const o = t.styles?.direct;
4438
4503
  if (!o || 0 === o.length) return;
4439
4504
  let s = null;
4440
4505
  const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = (t, i, l, c) => {
4441
- let h = "";
4442
- c && (h = n.get(c) ?? a.JSONStableStringify(c), n.set(c, h));
4443
- const u = `${t}|${i ?? ""}|${l ?? ""}|${h}`;
4444
- let d = r.get(u);
4506
+ let u = "";
4507
+ c && (u = n.get(c) ?? a.JSONStableStringify(c), n.set(c, u));
4508
+ const h = `${t}|${i ?? ""}|${l ?? ""}|${u}`;
4509
+ let d = r.get(h);
4445
4510
  if (void 0 !== d) return d;
4446
- const p = o[t], f = p ? Ts(p, i, l, c) : null, g = e?.get(t);
4511
+ const p = o[t], f = p ? Cs(p, i, l, c) : null, g = e?.get(t);
4447
4512
  return d = f === p ? t : f || void 0 !== g ? ((t, r) => {
4448
4513
  if (!s) {
4449
4514
  s = /* @__PURE__ */ new Map();
@@ -4457,29 +4522,29 @@ var ds = {
4457
4522
  void 0 !== r && (n += `|${r}`);
4458
4523
  let i = s.get(n);
4459
4524
  return void 0 === i && (i = o.length, o.push(t), s.set(n, i), void 0 !== r && e.set(i, r)), i;
4460
- })(f ?? {}, g) : null, r.set(u, d), d;
4525
+ })(f ?? {}, g) : null, r.set(h, d), d;
4461
4526
  }, l = new Map((t.pivotCaches ?? []).map((t) => [t.cacheId, t.fields]));
4462
4527
  for (const e of t.sheets ?? []) {
4463
- const t = W(e), o = t?.pivotTables, s = t?.directStyles;
4528
+ const t = ht(e), o = t?.pivotTables, s = t?.directStyles;
4464
4529
  if (!t || !o || 0 === o.length || !s || 0 === s.length) continue;
4465
4530
  let r = s, n = !1;
4466
4531
  for (const t of o) {
4467
- const e = ws(t, l.get(t.cacheId));
4532
+ const e = As(t, l.get(t.cacheId));
4468
4533
  if (!e) continue;
4469
4534
  const o = [];
4470
4535
  for (const t of r) {
4471
- const s = m.fastStringToRange(t[0]), r = Ps(s, e.coords);
4536
+ const s = S.fastStringToRange(t[0]), r = _s(s, e.coords);
4472
4537
  if (!r) {
4473
4538
  o.push(t);
4474
4539
  continue;
4475
4540
  }
4476
4541
  n = !0;
4477
- for (const e of Os(s, r)) o.push([m.rangeToString(e), t[1]]);
4542
+ for (const e of Ms(s, r)) o.push([S.rangeToString(e), t[1]]);
4478
4543
  const { rowIndex: a, colIndex: l } = e.origin;
4479
4544
  for (let s = r.rowStart; s <= r.rowEnd; s++) {
4480
4545
  let n = r.colStart, c = null;
4481
- const h = (t) => {
4482
- null !== c && o.push([m.rangeToString({
4546
+ const u = (t) => {
4547
+ null !== c && o.push([S.rangeToString({
4483
4548
  rowStart: s,
4484
4549
  rowEnd: s,
4485
4550
  colStart: n,
@@ -4487,17 +4552,17 @@ var ds = {
4487
4552
  }), c]);
4488
4553
  };
4489
4554
  for (let o = r.colStart; o <= r.colEnd; o++) {
4490
- const { numberFormat: u, labelIndent: d, user: p } = e.formats.formatAt(s - a, o - l), f = i(t[1], u, d, p);
4491
- o !== r.colStart && f === c || (o !== r.colStart && h(o - 1), n = o, c = f);
4555
+ const { numberFormat: h, labelIndent: d, user: p } = e.formats.formatAt(s - a, o - l), f = i(t[1], h, d, p);
4556
+ o !== r.colStart && f === c || (o !== r.colStart && u(o - 1), n = o, c = f);
4492
4557
  }
4493
- h(r.colEnd);
4558
+ u(r.colEnd);
4494
4559
  }
4495
4560
  }
4496
4561
  r = o;
4497
4562
  }
4498
4563
  n && (t.directStyles = r);
4499
4564
  }
4500
- })(he, de), ((t) => {
4565
+ })(ne, le), ((t) => {
4501
4566
  const o = {
4502
4567
  colStart: 0,
4503
4568
  rowStart: 0,
@@ -4505,13 +4570,13 @@ var ds = {
4505
4570
  rowEnd: 1048575
4506
4571
  };
4507
4572
  for (const r of t.sheets ?? []) {
4508
- const t = W(r);
4573
+ const t = ht(r);
4509
4574
  if (!t) continue;
4510
4575
  const n = [];
4511
- if ($s(t.cols, !0, o, n), $s(t.rows, !1, o, n), 0 === n.length) continue;
4576
+ if (Vs(t.cols, !0, o, n), Vs(t.rows, !1, o, n), 0 === n.length) continue;
4512
4577
  const i = [];
4513
4578
  for (const [e, o] of t.directStyles ?? []) i.push({
4514
- ...m.fastStringToRange(e),
4579
+ ...S.fastStringToRange(e),
4515
4580
  value: {
4516
4581
  kind: 0,
4517
4582
  index: o
@@ -4532,11 +4597,11 @@ var ds = {
4532
4597
  }
4533
4598
  s = t ?? o ?? r;
4534
4599
  }
4535
- a.push([m.rangeToString(t.value.range, o), s.index]);
4600
+ a.push([S.rangeToString(t.value.range, o), s.index]);
4536
4601
  }
4537
4602
  a.length > 0 ? t.directStyles = a : delete t.directStyles;
4538
4603
  }
4539
- })(he), de && ((t, e, o) => {
4604
+ })(ne), le && ((t, e, o) => {
4540
4605
  if (!e || 0 === e.size || !o) return;
4541
4606
  const s = (t) => {
4542
4607
  if (void 0 === t || 0 === t) return null;
@@ -4544,7 +4609,7 @@ var ds = {
4544
4609
  return void 0 !== s ? o.controls[s] ?? null : null;
4545
4610
  };
4546
4611
  for (const e of t.sheets ?? []) {
4547
- const t = W(e);
4612
+ const t = ht(e);
4548
4613
  if (!t) continue;
4549
4614
  const o = /* @__PURE__ */ new Map();
4550
4615
  for (const e of t.directStyles ?? []) {
@@ -4555,7 +4620,7 @@ var ds = {
4555
4620
  i || (i = {
4556
4621
  control: r,
4557
4622
  addresses: []
4558
- }, o.set(n, i)), Ns(t, i.addresses);
4623
+ }, o.set(n, i)), Rs(t, i.addresses);
4559
4624
  }
4560
4625
  if (0 === o.size) continue;
4561
4626
  const r = [...t.cellControls ?? []];
@@ -4565,32 +4630,32 @@ var ds = {
4565
4630
  });
4566
4631
  t.cellControls = r;
4567
4632
  }
4568
- })(he, de, Ht("featurePropertyBag", o, t, z, H, wt).values().next().value?.featurePropertyBag);
4633
+ })(ne, le, Ot("featurePropertyBag", o, t, F, B, Tt).values().next().value?.featurePropertyBag);
4569
4634
  {
4570
4635
  const e = /* @__PURE__ */ new Map();
4571
- Ht("slicers", o, t, z, H, wt).forEach((t, o) => {
4636
+ Ot("slicers", o, t, F, B, Tt).forEach((t, o) => {
4572
4637
  t?.slicers && e.set(o, t.slicers);
4573
- }), oe(he, {
4638
+ }), ie(ne, {
4574
4639
  warn: (t, e) => {
4575
- T(t, "xl/slicers", e);
4640
+ x(t, "xl/slicers", e);
4576
4641
  },
4577
- markAbsorbed: et,
4642
+ markAbsorbed: ot,
4578
4643
  slicerParts: e
4579
4644
  });
4580
4645
  }
4581
- he.calc = {
4582
- ...he.calc ?? {},
4646
+ ne.calc = {
4647
+ ...ne.calc ?? {},
4583
4648
  legacyIntersect: !0
4584
- }, Tt.length > 0 && (he.strings = Tt);
4585
- const pe = mt.toJSON();
4586
- pe && pe.length > 0 && (he.people = pe);
4587
- const fe = J.getEntry("xl/vbaProject.bin");
4649
+ }, St.length > 0 && (ne.strings = St);
4650
+ const ce = vt.toJSON();
4651
+ ce && ce.length > 0 && (ne.people = ce);
4652
+ const fe = Y.getEntry("xl/vbaProject.bin");
4588
4653
  if (fe) try {
4589
- const { VBAProject: t } = await import("./BebXDUnlrDDRGW60.js"), e = t.extract(fe);
4654
+ const { VBAProject: t } = await import("./BiOrM24CFYL1JGFE.js"), e = t.extract(fe);
4590
4655
  if (e) {
4591
4656
  const o = /* @__PURE__ */ new Map();
4592
- for (const t of he.sheets ?? []) {
4593
- const e = W(t), s = e?.codeName;
4657
+ for (const t of ne.sheets ?? []) {
4658
+ const e = ht(t), s = e?.codeName;
4594
4659
  s && o.set(s, e);
4595
4660
  }
4596
4661
  for (const s of e.modules) {
@@ -4598,38 +4663,38 @@ var ds = {
4598
4663
  n && (e.source = n), r && (e.sourceHeader = r);
4599
4664
  const i = "document" === s.type ? o.get(s.name) : void 0;
4600
4665
  i || "document" !== s.type || (e.scope = "workbook");
4601
- const a = i ? i.modules ??= {} : he.modules ??= {};
4666
+ const a = i ? i.modules ??= {} : ne.modules ??= {};
4602
4667
  a[s.name] || (a[s.name] = e);
4603
4668
  }
4604
- h?.(e);
4605
- } else x.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
4669
+ u?.(e);
4670
+ } else v.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
4606
4671
  } catch (n) {
4607
- x.push([`Error extracting VBA: ${n?.message ?? n}`, "xl/vbaProject.bin"]);
4672
+ v.push([`Error extracting VBA: ${n?.message ?? n}`, "xl/vbaProject.bin"]);
4608
4673
  }
4609
- const ge = R.get("calcId"), me = void 0 === ge || !(Number(ge) >= 191029), be = f.calcOnLoad ?? ("auto" === p && me ? "full" : p), ve = {
4674
+ const ge = L.get("calcId"), me = void 0 === ge || !(Number(ge) >= 191029), be = f.calcOnLoad ?? ("auto" === p && me ? "full" : p), ye = {
4610
4675
  ...f,
4611
4676
  calcOnLoad: be,
4612
- resources: g,
4613
- json: he
4677
+ resources: m,
4678
+ json: ne
4614
4679
  };
4615
- if (void 0 === ve.disableLoadAutoFit) {
4616
- const t = R.get(nt);
4617
- ve.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await _(t.faces);
4680
+ if (void 0 === ye.disableLoadAutoFit) {
4681
+ const t = L.get(ee);
4682
+ ye.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await jt(t.faces);
4618
4683
  }
4619
4684
  y?.mark("json-assembled");
4620
- const ye = new E(ve);
4621
- if (y?.mark("workbook-constructed"), M.forEach((t) => {
4685
+ const ve = new I(ye);
4686
+ if (y?.mark("workbook-constructed"), $.forEach((t) => {
4622
4687
  t.deleteReference(N);
4623
- }), C.endPersist(), v) {
4624
- yt(ye);
4688
+ }), k.endPersist(), b) {
4689
+ X(ve);
4625
4690
  const t = /* @__PURE__ */ new Map();
4626
4691
  let e = 0;
4627
- for (const o of J.getNames()) {
4628
- const s = J.getEntry(o);
4692
+ for (const o of Y.getNames()) {
4693
+ const s = Y.getEntry(o);
4629
4694
  if (!s) continue;
4630
- const r = J.getRawEntry(o), n = r ? {
4695
+ const r = Y.getRawEntry(o), n = r ? {
4631
4696
  data: s,
4632
- uncompressedSize: J.uncompressedSize(o),
4697
+ uncompressedSize: Y.uncompressedSize(o),
4633
4698
  raw: {
4634
4699
  compressedData: r.data,
4635
4700
  compressionMethod: r.compressionMethod,
@@ -4637,40 +4702,40 @@ var ds = {
4637
4702
  }
4638
4703
  } : {
4639
4704
  data: s,
4640
- uncompressedSize: J.uncompressedSize(o)
4705
+ uncompressedSize: Y.uncompressedSize(o)
4641
4706
  };
4642
4707
  t.set(o, n), e += s.byteLength;
4643
4708
  }
4644
- if (e > 67108864) x.push([`Source package too large to retain (${e} bytes, limit ${Ct}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
4709
+ if (e > 67108864) v.push([`Source package too large to retain (${e} bytes, limit ${te}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
4645
4710
  else if (t.size > 0) {
4646
- const e = new Pt(t, tt);
4647
- _t(ye, e);
4648
- let o = ye.getWorksheets().getItems();
4649
- const s = ye.getTransactions().addListener({ onCommitEnd: (t) => {
4711
+ const e = new Nt(t, et);
4712
+ tt(ve, e);
4713
+ let o = ve.getWorksheets().getItems();
4714
+ const s = ve.getTransactions().addListener({ onCommitEnd: (t) => {
4650
4715
  const o = t.getOperation()?.name;
4651
4716
  "insertCells" !== o && "deleteCells" !== o || e.markStructuralChange();
4652
- } }), r = ye.addListeners({ onSheetsChange: () => {
4653
- const t = ye.getWorksheets().getItems();
4717
+ } }), r = ve.addListeners({ onSheetsChange: () => {
4718
+ const t = ve.getWorksheets().getItems();
4654
4719
  (t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
4655
4720
  } });
4656
- ye.addListeners({ onClose: () => {
4657
- s(), r(), yt(ye);
4721
+ ve.addListeners({ onClose: () => {
4722
+ s(), r(), X(ve);
4658
4723
  } });
4659
4724
  }
4660
4725
  }
4661
- if (x.length && I?.onWarning) {
4726
+ if (v.length && E?.onWarning) {
4662
4727
  const t = /* @__PURE__ */ new Set();
4663
- for (const e of x) {
4728
+ for (const e of v) {
4664
4729
  const [o, s, r] = e, n = r ?? o;
4665
- t.has(n) || (t.add(n), I.onWarning(o, s));
4730
+ t.has(n) || (t.add(n), E.onWarning(o, s));
4666
4731
  }
4667
4732
  }
4668
- return y && !0 === d && console.table(y.toTable()), await ye.whenFontsReady(), ye;
4733
+ return y && !0 === d && console.table(y.toTable()), await ve.whenFontsReady(), ve;
4669
4734
  } catch (n) {
4670
4735
  let t = "Unable to parse XLSX.";
4671
4736
  throw n instanceof o && (t = "Unable to open XLSX. There are too many rows or columns."), new Error(t, { cause: n });
4672
4737
  } finally {
4673
- await J.close().catch(() => {});
4738
+ await Y.close().catch(() => {});
4674
4739
  }
4675
4740
  };
4676
- export { Qo as a, Fs as i, Ds as n, Rs as o, xs as r, ms as t };
4741
+ export { Xs as a, ks as i, xs as n, os as o, $s as r, Bs as t };