@sheetxl/studio-vanilla 0.7.9 → 0.7.10

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 (188) hide show
  1. package/browser/cjs/{BzWBS9dKcCw5_3VL.cjs → 8RfiafCVuvalyWgG.cjs} +1 -1
  2. package/browser/cjs/{DtcVgpdytT29BDrX.cjs → A2sMA1rkxY2C4imP.cjs} +1 -1
  3. package/browser/cjs/{ax00EVAzg1-wEeli.cjs → B6uycsDeyWfXd30N.cjs} +1 -1
  4. package/browser/cjs/{D8X6TP0dbfp_I68L.cjs → B8LS7_xuiRLqiz39.cjs} +2 -2
  5. package/browser/cjs/{4HQQsZp_Dtpou5d-.cjs → BGVhZTZCsB43TTwA.cjs} +1 -1
  6. package/browser/cjs/{DWnnzbiYZqMYfOtO.cjs → BLBn-CLuulR6I2Ga.cjs} +2 -2
  7. package/browser/cjs/{BZ7A3G8yvWBEbPQg.cjs → BS1TrhHmuCvzVnwe.cjs} +1 -1
  8. package/browser/cjs/{B3zn4UACSeM23IZD.cjs → BSYX8XwNn0_At72M.cjs} +1 -1
  9. package/browser/cjs/{Dyfld4qTyM2o0k8p.cjs → BkcYqE4Mg0roejM4.cjs} +19 -19
  10. package/browser/cjs/{DMkg41_NWFmCCTPS.cjs → BwLSPp7eayMgYH4t.cjs} +2 -2
  11. package/browser/cjs/{gGyygQPVOUdpU2hb.cjs → BwUirvy83NgauAe_.cjs} +1 -1
  12. package/browser/cjs/{v6JQur9NiLDO0Ktv.cjs → C2Ym9o2UyGdPMpGF.cjs} +1 -1
  13. package/browser/cjs/{D55IuXpDG_yOqLOr.cjs → CEjYsjf5rhuYUZBY.cjs} +1 -1
  14. package/browser/cjs/{DoIc8TRrn9BXtvZS.cjs → CFbyIOIIDflCG8xf.cjs} +2 -2
  15. package/browser/cjs/{DBIXaKPrKqoX5Ej0.cjs → CI-SIObGARYLlaD0.cjs} +1 -1
  16. package/browser/cjs/{Dd6hGYHS3cbMBbXA.cjs → CJ6ep0mCcKwe-K6x.cjs} +1 -1
  17. package/browser/cjs/CN4kAKDbbc5vx7ze.cjs +6 -0
  18. package/browser/cjs/{B1b4yakNGFFm6RKb.cjs → CQrPirttQBD2oFlH.cjs} +1 -1
  19. package/browser/cjs/CU6n-o9BpYTLqmrY.cjs +11 -0
  20. package/browser/cjs/{fsmwv8vXa5GMorQG.cjs → CVirc38g7rX4naWE.cjs} +1 -1
  21. package/browser/cjs/{CvShkDwGyhYRrNiN.cjs → Chn3GBWzbmL5oSIb.cjs} +1 -1
  22. package/browser/cjs/{B17LiG4dyBmP6TrN.cjs → CmkLGqQl06XTkl2M.cjs} +4 -4
  23. package/browser/cjs/{BuXXymW3NvKvPMkQ.cjs → CnErGY1yxFa4tbhh.cjs} +2 -2
  24. package/browser/cjs/{VCKB7r9Cy9W_Y2eC.cjs → CsTewh7bEYZ5WE9U.cjs} +7 -7
  25. package/browser/cjs/{DXz9_M2oCUFeOvd6.cjs → CwJonjnwEq4xJqkh.cjs} +1 -1
  26. package/browser/cjs/{BSNMVqk1t0UhVqdb.cjs → CyIkHwcwTWN17li5.cjs} +1 -1
  27. package/browser/cjs/{BLkZ10BgGSKfXn8i.cjs → D1gnAsTKRtDyWDp5.cjs} +2 -2
  28. package/browser/cjs/{Bi3eyLr3xw96w_Ec.cjs → D6BPthEVXFKI4EuF.cjs} +1 -1
  29. package/browser/cjs/{DdQwp9nBpZcoIdAJ.cjs → DBBW-RCAhmWrWfDZ.cjs} +1 -1
  30. package/browser/cjs/{CFajgGuqITaobO3F.cjs → DEunIC6P9scgWw1P.cjs} +3 -3
  31. package/browser/cjs/{Dy8reGDChpxfnCJ_.cjs → DK6kyoOWh-JARjgf.cjs} +2 -2
  32. package/browser/cjs/{mphO2n0YWLCwl-y3.cjs → DNCTKUi0YOVTayYE.cjs} +8 -8
  33. package/browser/cjs/DU1ovF3blyLu7Vpl.cjs +6 -0
  34. package/browser/cjs/{DaQSG2NK8zorWz4p.cjs → DX5CowMMCd9GCv4f.cjs} +3 -3
  35. package/browser/cjs/{C-hbHl6SPjfJFws_.cjs → DcUyMcC3dlHUZl4L.cjs} +1 -1
  36. package/browser/cjs/{28ueRdtTlxneL0gM.cjs → DcpYpFxUS3nhucCH.cjs} +2 -2
  37. package/browser/cjs/{-jRNNdUXwoXaLfLk.cjs → DeGuXojfhauTW29M.cjs} +2 -2
  38. package/browser/cjs/{DRWk3O67719LopNw.cjs → DiiaRC786jf-ic4p.cjs} +1 -1
  39. package/browser/cjs/{DxEYABfvkvMQXjkd.cjs → DmPC8C_CNdahQl0b.cjs} +1 -1
  40. package/browser/cjs/{DzdNT91Z6wp2t1ln.cjs → DrSYCVmQNqWJPApL.cjs} +3 -3
  41. package/browser/cjs/{CsXxIP9lLu9aFL3J.cjs → Gtbnzd4B9f1DIKAU.cjs} +1 -1
  42. package/browser/cjs/{CpuJvPRM-ZfIbNLP.cjs → Pm0_WqtObuxp-EuT.cjs} +1 -1
  43. package/browser/cjs/{DsvmywyXGwBNM-Zk.cjs → RZjOTUkBjANiPQLN.cjs} +1 -1
  44. package/browser/cjs/{LmL4erfidoyTg6Rn.cjs → RjrLHqUK_EdTAiSS.cjs} +4 -4
  45. package/browser/cjs/{4602FFTU0gpad3xf.cjs → a64ODK1QnL34lHpX.cjs} +1 -1
  46. package/browser/cjs/{Ddyt1ktuWSMrEkIX.cjs → bPlEup1_WNEt_RwV.cjs} +2 -2
  47. package/browser/cjs/{Cae33-B3bPeB4Lry.cjs → dzwDCMIhgcZc9cbb.cjs} +1 -1
  48. package/browser/cjs/{BeKopOONXyBBKG_1.cjs → eov1JMx2WBMhdpoJ.cjs} +2 -2
  49. package/browser/cjs/{BH4rNjGU9wYFc-uC.cjs → eu-ZFKAZZ7B6uk1x.cjs} +1 -1
  50. package/browser/cjs/{2KLpsnKefVyEmZ2O.cjs → ewAfXUp0y0GHQf37.cjs} +1 -1
  51. package/browser/cjs/{zbjyZT6o6ykMIKBr.cjs → hkiktbu43dbh7QWI.cjs} +1 -1
  52. package/browser/cjs/{BtXW0ExoOeHBxuRe.cjs → iNwxwTjW5q41Gklb.cjs} +2 -2
  53. package/browser/cjs/index.cjs +2 -2
  54. package/browser/cjs/kNEruqqvNqSMEAzQ.cjs +327 -0
  55. package/browser/cjs/{C7XUWFBNagw3WqkA.cjs → r2nncfSTgk8IoVXa.cjs} +5 -5
  56. package/browser/cjs/{BO3zSl1fYMj4HEPM.cjs → vx0u0BKzwHXjkFOr.cjs} +1 -1
  57. package/browser/cjs/{C3Fhn8b2S1z6xZCM.cjs → xnY4O4rqueY08rpT.cjs} +1 -1
  58. package/browser/cjs/{w5JxRpgiKOvh5tFM.cjs → z6f40QLDeC0y99VG.cjs} +1 -1
  59. package/{cdn/assets/Ql3e_vvI0FI2W43h.js → browser/esm/38k3YnsYUefZ1KgM.mjs} +2 -2
  60. package/browser/esm/7mwDc5DIxFaeIWKF.mjs +48 -0
  61. package/{cdn/assets/CyAL0Nk6PrxryVRw.js → browser/esm/AbjhUeTNR-U8qKZd.mjs} +1 -1
  62. package/browser/esm/{pRXKDt8_bIadmeiR.mjs → B5M-s1vNMxf-NkNs.mjs} +1 -1
  63. package/browser/esm/{BRcmFAIQ2SPbJ-XM.mjs → B5_mlhtTkaqvQKMh.mjs} +7 -7
  64. package/browser/esm/{CqqOAWyXxM1Y7xHg.mjs → B9cPVUQiue_I563s.mjs} +2 -2
  65. package/browser/esm/{DCGMWZ69nZwmiyhn.mjs → B9miygVhYR02HXbg.mjs} +1 -1
  66. package/browser/esm/{CfnYVg2Fcignoanv.mjs → BC2iutbmE7Q2bHNb.mjs} +1 -1
  67. package/browser/esm/{D31oMNVEevFiSSu3.mjs → BDCQh_NtcP3UtNFO.mjs} +1 -1
  68. package/browser/esm/{CbWw3rzixUR8EDhs.mjs → BEhiMpe9sj2HllDD.mjs} +2 -2
  69. package/{cdn/assets/BOTc2W6k6GWqCVcp.js → browser/esm/BFVNKOKUJHGXx3_N.mjs} +1 -1
  70. package/browser/esm/{CHKwHt2qLiyuOTYD.mjs → BK06ihtf1I-_67oo.mjs} +6 -6
  71. package/{cdn/assets/DTiWq6c6dIhO7q3w.js → browser/esm/BNEk0-9ePYVYTTS4.mjs} +2 -2
  72. package/browser/esm/{D9mNgZwIB18h1gd3.mjs → BNQAmohXUIzw05d1.mjs} +1 -1
  73. package/browser/esm/{Bd8Yvpc8OayD21zg.mjs → BPdip6dtPdYr7KkR.mjs} +1 -1
  74. package/browser/esm/{J1nGYMTPHDl0Dtk1.mjs → BQaQHVsou6-pv9Ju.mjs} +2 -2
  75. package/browser/esm/{BRQ5s5G8SIeFcq2K.mjs → BXfFV2BdBlhgkv9G.mjs} +1 -1
  76. package/{cdn/assets/PhwSfaFQy7vsmHQH.js → browser/esm/BYMb2NO7eaBtRT3r.mjs} +1 -1
  77. package/browser/esm/{BC4z07NIqrag6LK1.mjs → BcUhpG_sMmRcqqQs.mjs} +1 -1
  78. package/browser/esm/{Cw7cbwion0vbFHQC.mjs → BfgfgjIhYIB7Iea-.mjs} +1 -1
  79. package/{cdn/assets/CjNqjvPAYIJ1Txzc.js → browser/esm/BiOFFDEgChuOwhDE.mjs} +1 -1
  80. package/{cdn/assets/DaH--fxsswaRgEcF.js → browser/esm/Bl_TetCg54CHQqHm.mjs} +1 -1
  81. package/browser/esm/{Cnao9JBvOgVnFQZP.mjs → Bp9Eeb58kHoP7YGC.mjs} +2 -2
  82. package/{cdn/assets/CO0-isMoTEJCBD3A.js → browser/esm/BvIcikdTDlEgEQ6f.mjs} +1 -1
  83. package/browser/esm/{CPIVxYDjYBGrlKzN.mjs → CAOJk3YprB5zINMx.mjs} +1 -1
  84. package/browser/esm/{DuOp_v2dInrQQz2J.mjs → CEmFDYC7bYojak4f.mjs} +2 -2
  85. package/browser/esm/{CyiZ9q3nsOxuzkPs.mjs → CQ8dCPE-ihoMrQAl.mjs} +1 -1
  86. package/browser/esm/{BlRskWTo6RyVPYhw.mjs → CQv5nnKDSep6_Lrr.mjs} +3 -3
  87. package/{cdn/assets/DIPL9v_lUxBLj7uL.js → browser/esm/CVPNLOJ8pTObaFlz.mjs} +1 -1
  88. package/browser/esm/{BbFJbFt12fFxLxgW.mjs → C_3VkH0ZheZ071rN.mjs} +1 -1
  89. package/{cdn/assets/BitbWBCvLcgf5_k8.js → browser/esm/Cb5eiZuAiDsI8J4q.mjs} +1 -1
  90. package/{cdn/assets/Budczm2E0D1oDtxb.js → browser/esm/CkIGtcKufzFHfIOa.mjs} +34 -34
  91. package/{cdn/assets/CTnPqIJ_buVJyq7v.js → browser/esm/CltETef3jhrkecPf.mjs} +1 -1
  92. package/{cdn/assets/DB6k1pDUo7QnUyag.js → browser/esm/Cu_mvr8D4-6ZsoaY.mjs} +1 -1
  93. package/browser/esm/{BJDgDeqzt7VmeRxD.mjs → CzokFhjn3Zd8eHAV.mjs} +4 -4
  94. package/{cdn/assets/lgPHHQHWLWGNnYGO.js → browser/esm/Czxxkqcv2kfogbB3.mjs} +1 -1
  95. package/{cdn/assets/CKPAoMVPiyx_7ozH.js → browser/esm/D3Vs8usLpvWrfPaD.mjs} +1 -1
  96. package/{cdn/assets/JjYKx_AWKoQp1iP5.js → browser/esm/DIKQVQUhIEDd8OHB.mjs} +1 -1
  97. package/browser/esm/{vrPREn1FiY2DXcCj.mjs → DJ2cli9crYBDffna.mjs} +1 -1
  98. package/browser/esm/{B1o6XtsajKzSB_Ee.mjs → DOLR2rBtsRGjK38Q.mjs} +2 -2
  99. package/browser/esm/{Bq2-_FvbBSnQ1mRA.mjs → DP96oVn4D_WVyEii.mjs} +3 -3
  100. package/browser/esm/{CTls6jXHDizCTQqa.mjs → DUZ2FYogdfTwBU1s.mjs} +1 -1
  101. package/browser/esm/{DT2Nk1w2teUvSMOy.mjs → DXps-gn4Z0b70HV6.mjs} +1 -1
  102. package/browser/esm/{DSAXrKks652VbNll.mjs → DfOdt_g3leZhg92P.mjs} +2 -2
  103. package/browser/esm/{CrW2aOCLgiCxGleL.mjs → DjbsjMrDZxmueStH.mjs} +535 -530
  104. package/browser/esm/{_GsOJmagfG9vJ3_O.mjs → DpunkhfrdW9tMyiB.mjs} +1 -1
  105. package/{cdn/assets/C_XaNFGBTyUBeyCT.js → browser/esm/DsGfDyrPuOLTSGzn.mjs} +1 -1
  106. package/browser/esm/{CRoUrsxPF-3VB2tH.mjs → DxzUHJ6WmoMZwB7B.mjs} +11107 -11067
  107. package/browser/esm/{CjbmSAjgptXZOZub.mjs → FcLh9simFslbIw7z.mjs} +6 -6
  108. package/browser/esm/{kjrrmIaLKG4Y49Rj.mjs → KN6_FHcdgAaW1FOp.mjs} +2 -2
  109. package/browser/esm/index.mjs +2 -2
  110. package/browser/esm/{iQsD2LQQtFWVdA0k.mjs → kfVyLUlQFwMOrtte.mjs} +297 -293
  111. package/{cdn/assets/B2niIQY0fIjYfoM9.js → browser/esm/mcVONUsaRKHFvrNv.mjs} +1 -1
  112. package/browser/esm/{Cnj0U7PbRaaA2bEF.mjs → nvSrYkBMwLtC2sW6.mjs} +4 -4
  113. package/browser/esm/{rltHJRjXNQqhdulf.mjs → q78ROlDJASSNUTW7.mjs} +13 -13
  114. package/browser/esm/{Crulydg0c0mpXHIv.mjs → r9LAUwYbHSuMlTKO.mjs} +1 -1
  115. package/browser/esm/{BvxCl7fyU6J4RrDH.mjs → vjJjgi1zidw9mn_p.mjs} +2 -2
  116. package/browser/esm/{C4ESbAWre7JpSMEG.mjs → zyU823tQU2DE6Ff6.mjs} +2 -2
  117. package/{browser/esm/CyAL0Nk6PrxryVRw.mjs → cdn/assets/AbjhUeTNR-U8qKZd.js} +1 -1
  118. package/cdn/assets/{CnWk1uC-0lCbD-Xj.js → B0Ir7uCbQF3-mEU3.js} +4 -4
  119. package/cdn/assets/{CmJmZ1IbSjVFq_Hy.js → B5B-prjpWkwoWjie.js} +4 -4
  120. package/cdn/assets/{pRXKDt8_bIadmeiR.js → B5M-s1vNMxf-NkNs.js} +1 -1
  121. package/cdn/assets/{DU715r3dWSIxWSHJ.js → B5sObQ-xoa3R4ReP.js} +3 -3
  122. package/cdn/assets/{C5vXwUdGo1QPuz37.js → B7D8V6hl0pqrQbTn.js} +2 -2
  123. package/cdn/assets/{DCGMWZ69nZwmiyhn.js → B9miygVhYR02HXbg.js} +1 -1
  124. package/cdn/assets/{CQX8wcJJrnAOBgqs.js → BADnvy5bTGT8cX40.js} +7 -7
  125. package/cdn/assets/{NkjC32CMsHhn6YZJ.js → BAvxGh8BmrH0FQlm.js} +28 -28
  126. package/cdn/assets/{CfnYVg2Fcignoanv.js → BC2iutbmE7Q2bHNb.js} +1 -1
  127. package/cdn/assets/{D31oMNVEevFiSSu3.js → BDCQh_NtcP3UtNFO.js} +1 -1
  128. package/{browser/esm/BOTc2W6k6GWqCVcp.mjs → cdn/assets/BFVNKOKUJHGXx3_N.js} +1 -1
  129. package/cdn/assets/{BxXfkgY3YQZkihsr.js → BI9MEeqtjZ3NfNHD.js} +43 -43
  130. package/cdn/assets/{D9mNgZwIB18h1gd3.js → BNQAmohXUIzw05d1.js} +1 -1
  131. package/cdn/assets/{Bd8Yvpc8OayD21zg.js → BPdip6dtPdYr7KkR.js} +1 -1
  132. package/cdn/assets/{D6w3q0288dODJlma.js → BQvjW9Jty4-U9SFK.js} +3 -3
  133. package/cdn/assets/{BRQ5s5G8SIeFcq2K.js → BXfFV2BdBlhgkv9G.js} +1 -1
  134. package/{browser/esm/PhwSfaFQy7vsmHQH.mjs → cdn/assets/BYMb2NO7eaBtRT3r.js} +1 -1
  135. package/cdn/assets/{dLGHt7fYI2QA8zVZ.js → Bc2e5A_96EeltLb_.js} +1 -1
  136. package/cdn/assets/{BC4z07NIqrag6LK1.js → BcUhpG_sMmRcqqQs.js} +1 -1
  137. package/cdn/assets/{Cw7cbwion0vbFHQC.js → BfgfgjIhYIB7Iea-.js} +1 -1
  138. package/{browser/esm/CjNqjvPAYIJ1Txzc.mjs → cdn/assets/BiOFFDEgChuOwhDE.js} +1 -1
  139. package/cdn/assets/{B2MR39qRXcxeC2TY.js → BiSKRg5rgwN8P_b3.js} +7 -7
  140. package/{browser/esm/DaH--fxsswaRgEcF.mjs → cdn/assets/Bl_TetCg54CHQqHm.js} +1 -1
  141. package/{browser/esm/CO0-isMoTEJCBD3A.mjs → cdn/assets/BvIcikdTDlEgEQ6f.js} +1 -1
  142. package/cdn/assets/{CPpuNRDowyacHTZD.js → C1pxxUzCqRQ7o_0N.js} +1 -1
  143. package/{browser/esm/BVZ3XoT7zKr_Qy4r.mjs → cdn/assets/C8iM1Hgq_DrD3Gf0.js} +3 -3
  144. package/cdn/assets/{B1eWg6aDktGH7WwS.js → CAmj2oLwI3DeBBsG.js} +4 -4
  145. package/cdn/assets/{CAaDybJknuY5Rk4X.js → CBun3_1B9YitAgHd.js} +9 -9
  146. package/cdn/assets/{Dih1QKQhKyzIsly7.js → CGd5FvkBKn68xVbC.js} +2 -2
  147. package/cdn/assets/{DNpMIeruLey0l4fR.js → COxP66Oa4UF7vs0r.js} +2 -2
  148. package/cdn/assets/{CyiZ9q3nsOxuzkPs.js → CQ8dCPE-ihoMrQAl.js} +1 -1
  149. package/{browser/esm/DIPL9v_lUxBLj7uL.mjs → cdn/assets/CVPNLOJ8pTObaFlz.js} +1 -1
  150. package/cdn/assets/{BbFJbFt12fFxLxgW.js → C_3VkH0ZheZ071rN.js} +1 -1
  151. package/{browser/esm/BitbWBCvLcgf5_k8.mjs → cdn/assets/Cb5eiZuAiDsI8J4q.js} +1 -1
  152. package/{browser/esm/CTnPqIJ_buVJyq7v.mjs → cdn/assets/CltETef3jhrkecPf.js} +1 -1
  153. package/cdn/assets/{UdKHykZGCh2M-vBY.js → CmLC_Rn8ALwIQeJW.js} +7 -7
  154. package/{browser/esm/DB6k1pDUo7QnUyag.mjs → cdn/assets/Cu_mvr8D4-6ZsoaY.js} +1 -1
  155. package/cdn/assets/{AuxAIQlEjIRo3x4L.js → CyinLzMAW_Amnu6N.js} +4 -4
  156. package/{browser/esm/lgPHHQHWLWGNnYGO.mjs → cdn/assets/Czxxkqcv2kfogbB3.js} +1 -1
  157. package/{browser/esm/CKPAoMVPiyx_7ozH.mjs → cdn/assets/D3Vs8usLpvWrfPaD.js} +1 -1
  158. package/{browser/esm/JjYKx_AWKoQp1iP5.mjs → cdn/assets/DIKQVQUhIEDd8OHB.js} +1 -1
  159. package/cdn/assets/{vrPREn1FiY2DXcCj.js → DJ2cli9crYBDffna.js} +1 -1
  160. package/cdn/assets/{Nrog426oRA7TG4QM.js → DLsiLi8vx5Dfptv-.js} +299 -295
  161. package/cdn/assets/{BlASKis61iVryoIm.js → DNuCczMLMAIbZD23.js} +11 -11
  162. package/cdn/assets/{B-fEw_RqtU2JwlFR.js → DOjZi6T0-bH7nqRD.js} +2 -2
  163. package/cdn/assets/{CTls6jXHDizCTQqa.js → DUZ2FYogdfTwBU1s.js} +1 -1
  164. package/cdn/assets/{DT2Nk1w2teUvSMOy.js → DXps-gn4Z0b70HV6.js} +1 -1
  165. package/cdn/assets/{DQVq0WtjtMUmA_iU.js → D_zn49P7Vl2EfoIZ.js} +2 -2
  166. package/cdn/assets/{DyGoZdjTBNNXu9LZ.js → DamY69Nh17USJC4D.js} +15 -15
  167. package/cdn/assets/{D5cBSeQ7k8GlZgsV.js → Dfl2D3cYNOI5S_je.js} +4 -4
  168. package/cdn/assets/{CUji_8_tNWmnGxA-.js → Dlyhn7y9N6lvS2m8.js} +3 -3
  169. package/cdn/assets/{_GsOJmagfG9vJ3_O.js → DpunkhfrdW9tMyiB.js} +1 -1
  170. package/{browser/esm/C_XaNFGBTyUBeyCT.mjs → cdn/assets/DsGfDyrPuOLTSGzn.js} +1 -1
  171. package/cdn/assets/{KqkDMLfvKbmvpsXV.js → DwuTMIrWJCUalUcq.js} +20 -20
  172. package/cdn/assets/{CqfbNUobbGU7YeN6.js → LlLVEq_yWPMPI-k2.js} +4 -4
  173. package/cdn/assets/{CzlrfkoZCsC-jd7h.js → MlhOVOZDOPIWEne0.js} +11812 -11772
  174. package/{browser/esm/BcoTAKeH3O9xhPgO.mjs → cdn/assets/PKHd0iQO69iNIAx0.js} +2 -2
  175. package/{browser/esm/CoZ8jQyUjenp9yNL.mjs → cdn/assets/TpfdiXShlwAgtUkY.js} +2 -2
  176. package/cdn/assets/{DNnTxeTzLFooA_UL.js → XR4G5EYDdHGkrxmW.js} +2 -2
  177. package/cdn/assets/{CRpTXJTj6-teqdEk.js → Xugp6lHzQ6dLo2g4.js} +5 -5
  178. package/cdn/assets/{BlAVbL9PoGGN-eLF.js → lvoY5e0ca7208QtA.js} +535 -530
  179. package/{browser/esm/B2niIQY0fIjYfoM9.mjs → cdn/assets/mcVONUsaRKHFvrNv.js} +1 -1
  180. package/cdn/assets/{Crulydg0c0mpXHIv.js → r9LAUwYbHSuMlTKO.js} +1 -1
  181. package/cdn/index.js +2 -2
  182. package/cdn/loader.js +1 -1
  183. package/package.json +3 -3
  184. package/browser/cjs/Codn0RTBGbMdTfjS.cjs +0 -11
  185. package/browser/cjs/DjKwZTEjS8bDI6vB.cjs +0 -6
  186. package/browser/cjs/DmP5P4nD6s_T0R0_.cjs +0 -6
  187. package/browser/cjs/GPgjyt_HTe2fOhPL.cjs +0 -327
  188. package/browser/esm/w4952094eLDa6Dfm.mjs +0 -48
@@ -1,6 +1,6 @@
1
- import { G as Nt, a3 as Mt, ai as Se, aj as Ce, ak as ke, al as Ft, am as wt, t as re, an as Ae, ao as De, ah as Ee, ap as Pe, a8 as ne, z as Oe, aq as Ie, a0 as Ve } from "./CRoUrsxPF-3VB2tH.mjs";
1
+ import { G as Nt, a3 as Mt, ai as Se, aj as Ce, ak as ke, al as Ft, am as vt, t as re, an as Ae, ao as De, ah as Ee, ap as Pe, a8 as ne, y as Oe, aq as Ie, a0 as Ve } from "./DxzUHJ6WmoMZwB7B.mjs";
2
2
  /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -23,7 +23,7 @@ const it = function(i) {
23
23
  return i >= 1 && i <= 55295 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
24
24
  }, je = be, He = function(i) {
25
25
  return be(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
26
- }, Xe = Ne, oe = "http://www.w3.org/XML/1998/namespace", qt = "http://www.w3.org/2000/xmlns/", Fe = { __proto__: null, xml: oe, xmlns: qt }, Be = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, N = -1, bt = -2, Y = 13, Rt = 33, pt = 10, Ot = 60, Wt = 61, B = 62, G = 63, _t = 93, ie = (i) => i === 34 || i === 39, we = [34, 39], We = [...we, 91, B], _e = [...we, Ot, _t], qe = [Wt, G, ...xe], ze = [...xe, B, 38, Ot];
26
+ }, Xe = Ne, oe = "http://www.w3.org/XML/1998/namespace", qt = "http://www.w3.org/2000/xmlns/", Fe = { __proto__: null, xml: oe, xmlns: qt }, Be = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, N = -1, xt = -2, Y = 13, Rt = 33, ft = 10, Ot = 60, Wt = 61, F = 62, U = 63, _t = 93, ie = (i) => i === 34 || i === 39, we = [34, 39], We = [...we, 91, F], _e = [...we, Ot, _t], qe = [Wt, U, ...xe], ze = [...xe, F, 38, Ot];
27
27
  function ae(i, t, s) {
28
28
  switch (t) {
29
29
  case "xml":
@@ -48,18 +48,18 @@ function ae(i, t, s) {
48
48
  }
49
49
  }
50
50
  }
51
- const Ue = (i) => Xe.test(i), Ge = (i) => $e.test(i), ge = { xmldecl: "xmldeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
51
+ const Ge = (i) => Xe.test(i), Ue = (i) => $e.test(i), ge = { xmldecl: "xmlDeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
52
52
  class Ze {
53
53
  constructor(t) {
54
54
  this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
55
55
  const s = this.xmlnsOpt = !!this.opt.xmlns;
56
56
  if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, s) {
57
- this.nameStartCheck = je, this.nameCheck = He, this.isName = Ue, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fe };
57
+ this.nameStartCheck = je, this.nameCheck = He, this.isName = Ge, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fe };
58
58
  const o = this.opt.additionalNamespaces;
59
59
  o != null && ((function(a, n) {
60
60
  for (const c of Object.keys(n)) ae(a, c, n[c]);
61
61
  })(this, o), Object.assign(this.ns, o));
62
- } else this.nameStartCheck = Jt, this.nameCheck = pe, this.isName = Ge, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
62
+ } else this.nameStartCheck = Jt, this.nameCheck = pe, this.isName = Ue, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
63
63
  this.stateTable = [this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite], this._init();
64
64
  }
65
65
  get closed() {
@@ -98,7 +98,7 @@ class Ze {
98
98
  return o(s), this;
99
99
  }
100
100
  write(t) {
101
- if (this.closed) return this.fail("cannot write after close; assign an onready handler.");
101
+ if (this.closed) return this.fail("cannot write after close.");
102
102
  let s = !1;
103
103
  t === null ? (s = !0, t = "") : typeof t == "object" && (t = t.toString()), this.carriedFromPrevious !== void 0 && (t = `${this.carriedFromPrevious}${t}`, this.carriedFromPrevious = void 0);
104
104
  let o = t.length;
@@ -118,10 +118,10 @@ class Ze {
118
118
  if (this.column++, o < 55296) {
119
119
  if (o >= 32 || o === 9) return o;
120
120
  switch (o) {
121
- case pt:
122
- return this.line++, this.column = 0, this.positionAtNewLine = this.position, pt;
121
+ case ft:
122
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, ft;
123
123
  case 13:
124
- return t.charCodeAt(s + 1) === pt && (this.i = s + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, bt;
124
+ return t.charCodeAt(s + 1) === ft && (this.i = s + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, xt;
125
125
  default:
126
126
  return this.fail("disallowed character."), o;
127
127
  }
@@ -137,15 +137,15 @@ class Ze {
137
137
  if (this.column++, o < 55296) {
138
138
  if (o > 31 && o < 127 || o > 159 && o !== 8232 || o === 9) return o;
139
139
  switch (o) {
140
- case pt:
141
- return this.line++, this.column = 0, this.positionAtNewLine = this.position, pt;
140
+ case ft:
141
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, ft;
142
142
  case 13: {
143
143
  const n = t.charCodeAt(s + 1);
144
- n !== pt && n !== 133 || (this.i = s + 2);
144
+ n !== ft && n !== 133 || (this.i = s + 2);
145
145
  }
146
146
  case 133:
147
147
  case 8232:
148
- return this.line++, this.column = 0, this.positionAtNewLine = this.position, bt;
148
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, xt;
149
149
  default:
150
150
  return this.fail("disallowed character."), o;
151
151
  }
@@ -156,16 +156,16 @@ class Ze {
156
156
  }
157
157
  getCodeNorm() {
158
158
  const t = this.getCode();
159
- return t === bt ? pt : t;
159
+ return t === xt ? ft : t;
160
160
  }
161
- unget() {
161
+ unGet() {
162
162
  this.i = this.prevI, this.column--;
163
163
  }
164
164
  captureTo(t) {
165
165
  let { i: s } = this;
166
166
  const { chunk: o } = this;
167
167
  for (; ; ) {
168
- const a = this.getCode(), n = a === bt, c = n ? pt : a;
168
+ const a = this.getCode(), n = a === xt, c = n ? ft : a;
169
169
  if (c === N || t.includes(c)) return this.text += o.slice(s, this.prevI), c;
170
170
  n && (this.text += `${o.slice(s, this.prevI)}
171
171
  `, s = this.i);
@@ -177,9 +177,9 @@ class Ze {
177
177
  for (; ; ) {
178
178
  let a = this.getCode();
179
179
  switch (a) {
180
- case bt:
180
+ case xt:
181
181
  this.text += `${o.slice(s, this.prevI)}
182
- `, s = this.i, a = pt;
182
+ `, s = this.i, a = ft;
183
183
  break;
184
184
  case N:
185
185
  return this.text += o.slice(s), !1;
@@ -192,7 +192,7 @@ class Ze {
192
192
  for (; ; ) {
193
193
  const o = this.getCode();
194
194
  if (o === N) return this.name += t.slice(s), N;
195
- if (!pe(o)) return this.name += t.slice(s, this.prevI), o === bt ? pt : o;
195
+ if (!pe(o)) return this.name += t.slice(s, this.prevI), o === xt ? ft : o;
196
196
  }
197
197
  }
198
198
  skipSpaces() {
@@ -216,13 +216,13 @@ class Ze {
216
216
  case N:
217
217
  break;
218
218
  default:
219
- this.unget(), this.state = Y, this.xmlDeclPossible = !1;
219
+ this.unGet(), this.state = Y, this.xmlDeclPossible = !1;
220
220
  }
221
221
  }
222
222
  sDoctype() {
223
223
  const t = this.captureTo(We);
224
224
  switch (t) {
225
- case B:
225
+ case F:
226
226
  this.doctypeHandler?.(this.text), this.text = "", this.state = Y, this.doctype = !0;
227
227
  break;
228
228
  case N:
@@ -249,7 +249,7 @@ class Ze {
249
249
  case 33:
250
250
  this.state = 7, this.openWakaBang = "";
251
251
  break;
252
- case G:
252
+ case U:
253
253
  this.state = 11;
254
254
  break;
255
255
  default:
@@ -269,14 +269,14 @@ class Ze {
269
269
  }
270
270
  sDTDCommentEnded() {
271
271
  const t = this.getCodeNorm();
272
- this.text += String.fromCodePoint(t), t === B ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
272
+ this.text += String.fromCodePoint(t), t === F ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
273
273
  }
274
274
  sDTDPI() {
275
- this.captureToChar(G) && (this.text += "?", this.state = 12);
275
+ this.captureToChar(U) && (this.text += "?", this.state = 12);
276
276
  }
277
277
  sDTDPIEnding() {
278
278
  const t = this.getCodeNorm();
279
- this.text += String.fromCodePoint(t), t === B && (this.state = 4);
279
+ this.text += String.fromCodePoint(t), t === F && (this.state = 4);
280
280
  }
281
281
  sText() {
282
282
  this.tags.length !== 0 ? this.handleTextInRoot() : this.handleTextOutsideRoot();
@@ -285,7 +285,7 @@ class Ze {
285
285
  let { i: t } = this;
286
286
  const { chunk: s } = this;
287
287
  t: for (; ; ) switch (this.getCode()) {
288
- case bt:
288
+ case xt:
289
289
  this.entity += `${s.slice(t, this.prevI)}
290
290
  `, t = this.i;
291
291
  break;
@@ -302,7 +302,7 @@ class Ze {
302
302
  }
303
303
  sOpenWaka() {
304
304
  const t = this.getCode();
305
- if (Jt(t)) this.state = 34, this.unget(), this.xmlDeclPossible = !1;
305
+ if (Jt(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
306
306
  else switch (t) {
307
307
  case 47:
308
308
  this.state = 43, this.xmlDeclPossible = !1;
@@ -310,7 +310,7 @@ class Ze {
310
310
  case 33:
311
311
  this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
312
312
  break;
313
- case G:
313
+ case U:
314
314
  this.state = 23;
315
315
  break;
316
316
  default:
@@ -341,7 +341,7 @@ class Ze {
341
341
  }
342
342
  sCommentEnded() {
343
343
  const t = this.getCodeNorm();
344
- t !== B ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Y;
344
+ t !== F ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Y;
345
345
  }
346
346
  sCData() {
347
347
  this.captureToChar(_t) && (this.state = 21);
@@ -353,7 +353,7 @@ class Ze {
353
353
  sCDataEnding2() {
354
354
  const t = this.getCodeNorm();
355
355
  switch (t) {
356
- case B:
356
+ case F:
357
357
  this.cdataHandler?.(this.text), this.text = "", this.state = Y;
358
358
  break;
359
359
  case _t:
@@ -365,7 +365,7 @@ class Ze {
365
365
  }
366
366
  sPIFirstChar() {
367
367
  const t = this.getCodeNorm();
368
- this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === G || it(t) ? (this.fail("processing instruction without a target."), this.state = t === G ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
368
+ this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === U || it(t) ? (this.fail("processing instruction without a target."), this.state = t === U ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
369
369
  }
370
370
  sPIRest() {
371
371
  const { chunk: t, i: s } = this;
@@ -374,7 +374,7 @@ class Ze {
374
374
  if (o === N) return void (this.piTarget += t.slice(s));
375
375
  if (!this.nameCheck(o)) {
376
376
  this.piTarget += t.slice(s, this.prevI);
377
- const a = o === G;
377
+ const a = o === U;
378
378
  a || it(o) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = a ? Rt : 27) : this.state = a ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
379
379
  break;
380
380
  }
@@ -383,24 +383,24 @@ class Ze {
383
383
  sPIBody() {
384
384
  if (this.text.length === 0) {
385
385
  const t = this.getCodeNorm();
386
- t === G ? this.state = 26 : it(t) || (this.text = String.fromCodePoint(t));
387
- } else this.captureToChar(G) && (this.state = 26);
386
+ t === U ? this.state = 26 : it(t) || (this.text = String.fromCodePoint(t));
387
+ } else this.captureToChar(U) && (this.state = 26);
388
388
  }
389
389
  sPIEnding() {
390
390
  const t = this.getCodeNorm();
391
- if (t === B) {
391
+ if (t === F) {
392
392
  const { piTarget: s } = this;
393
393
  s.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({ target: s, body: this.text }), this.piTarget = this.text = "", this.state = Y;
394
- } else t === G ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
394
+ } else t === U ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
395
395
  this.xmlDeclPossible = !1;
396
396
  }
397
397
  sXMLDeclNameStart() {
398
398
  const t = this.skipSpaces();
399
- t !== G ? t !== N && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Rt;
399
+ t !== U ? t !== N && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Rt;
400
400
  }
401
401
  sXMLDeclName() {
402
402
  const t = this.captureTo(qe);
403
- if (t === G) return this.state = Rt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
403
+ if (t === U) return this.state = Rt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
404
404
  if (it(t) || t === Wt) {
405
405
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
406
406
  case 0:
@@ -417,17 +417,17 @@ class Ze {
417
417
  }
418
418
  sXMLDeclEq() {
419
419
  const t = this.getCodeNorm();
420
- if (t === G) return this.state = Rt, void this.fail("XML declaration is incomplete.");
420
+ if (t === U) return this.state = Rt, void this.fail("XML declaration is incomplete.");
421
421
  it(t) || (t !== Wt && this.fail("value required."), this.state = 30);
422
422
  }
423
423
  sXMLDeclValueStart() {
424
424
  const t = this.getCodeNorm();
425
- if (t === G) return this.state = Rt, void this.fail("XML declaration is incomplete.");
425
+ if (t === U) return this.state = Rt, void this.fail("XML declaration is incomplete.");
426
426
  it(t) || (ie(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
427
427
  }
428
428
  sXMLDeclValue() {
429
- const t = this.captureTo([this.q, G]);
430
- if (t === G) return this.state = Rt, this.text = "", void this.fail("XML declaration is incomplete.");
429
+ const t = this.captureTo([this.q, U]);
430
+ if (t === U) return this.state = Rt, this.text = "", void this.fail("XML declaration is incomplete.");
431
431
  if (t === N) return;
432
432
  const s = this.text;
433
433
  switch (this.text = "", this.name) {
@@ -447,17 +447,17 @@ class Ze {
447
447
  }
448
448
  sXMLDeclSeparator() {
449
449
  const t = this.getCodeNorm();
450
- t !== G ? (it(t) || (this.fail("whitespace required."), this.unget()), this.state = 27) : this.state = Rt;
450
+ t !== U ? (it(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = Rt;
451
451
  }
452
452
  sXMLDeclEnding() {
453
- this.getCodeNorm() === B ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmldeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Y) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
453
+ this.getCodeNorm() === F ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Y) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
454
454
  }
455
455
  sOpenTag() {
456
456
  const t = this.captureNameChars();
457
457
  if (t === N) return;
458
458
  const s = this.tag = { name: this.name, attributes: /* @__PURE__ */ Object.create(null) };
459
459
  switch (this.name = "", this.xmlnsOpt && (this.topNS = s.ns = /* @__PURE__ */ Object.create(null)), this.openTagStartHandler?.(s), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), t) {
460
- case B:
460
+ case F:
461
461
  this.openTag();
462
462
  break;
463
463
  case 47:
@@ -468,15 +468,15 @@ class Ze {
468
468
  }
469
469
  }
470
470
  sOpenTagSlash() {
471
- this.getCode() === B ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
471
+ this.getCode() === F ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
472
472
  }
473
473
  sAttrib() {
474
474
  const t = this.skipSpaces();
475
- t !== N && (Jt(t) ? (this.unget(), this.state = 37) : t === B ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
475
+ t !== N && (Jt(t) ? (this.unGet(), this.state = 37) : t === F ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
476
476
  }
477
477
  sAttribName() {
478
478
  const t = this.captureNameChars();
479
- t === Wt ? this.state = 39 : it(t) ? this.state = 38 : t === B ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== N && this.fail("disallowed character in attribute name.");
479
+ t === Wt ? this.state = 39 : it(t) ? this.state = 38 : t === F ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== N && this.fail("disallowed character in attribute name.");
480
480
  }
481
481
  sAttribNameSawWhite() {
482
482
  const t = this.skipSpaces();
@@ -487,12 +487,12 @@ class Ze {
487
487
  this.state = 39;
488
488
  break;
489
489
  default:
490
- this.fail("attribute without value."), this.text = "", this.name = "", t === B ? this.openTag() : Jt(t) ? (this.unget(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
490
+ this.fail("attribute without value."), this.text = "", this.name = "", t === F ? this.openTag() : Jt(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
491
491
  }
492
492
  }
493
493
  sAttribValue() {
494
494
  const t = this.getCodeNorm();
495
- ie(t) ? (this.q = t, this.state = 40) : it(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unget());
495
+ ie(t) ? (this.q = t, this.state = 40) : it(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
496
496
  }
497
497
  sAttribValueQuoted() {
498
498
  const { q: t, chunk: s } = this;
@@ -502,8 +502,8 @@ class Ze {
502
502
  return this.pushAttrib(this.name, this.text + s.slice(o, this.prevI)), this.name = this.text = "", this.q = null, void (this.state = 41);
503
503
  case 38:
504
504
  return this.text += s.slice(o, this.prevI), this.state = 14, void (this.entityReturnState = 40);
505
- case pt:
506
- case bt:
505
+ case ft:
506
+ case xt:
507
507
  case 9:
508
508
  this.text += `${s.slice(o, this.prevI)} `, o = this.i;
509
509
  break;
@@ -515,7 +515,7 @@ class Ze {
515
515
  }
516
516
  sAttribValueClosed() {
517
517
  const t = this.getCodeNorm();
518
- it(t) ? this.state = 36 : t === B ? this.openTag() : t === 47 ? this.state = 35 : Jt(t) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = 37) : this.fail("disallowed character in attribute name.");
518
+ it(t) ? this.state = 36 : t === F ? this.openTag() : t === 47 ? this.state = 35 : Jt(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
519
519
  }
520
520
  sAttribValueUnquoted() {
521
521
  const t = this.captureTo(ze);
@@ -529,16 +529,16 @@ class Ze {
529
529
  case N:
530
530
  break;
531
531
  default:
532
- this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === B ? this.openTag() : this.state = 36;
532
+ this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === F ? this.openTag() : this.state = 36;
533
533
  }
534
534
  }
535
535
  sCloseTag() {
536
536
  const t = this.captureNameChars();
537
- t === B ? this.closeTag() : it(t) ? this.state = 44 : t !== N && this.fail("disallowed character in closing tag.");
537
+ t === F ? this.closeTag() : it(t) ? this.state = 44 : t !== N && this.fail("disallowed character in closing tag.");
538
538
  }
539
539
  sCloseTagSawWhite() {
540
540
  switch (this.skipSpaces()) {
541
- case B:
541
+ case F:
542
542
  this.closeTag();
543
543
  break;
544
544
  case N:
@@ -575,10 +575,10 @@ class Ze {
575
575
  throw new Error("impossible state");
576
576
  }
577
577
  break;
578
- case B:
578
+ case F:
579
579
  s === 2 && this.fail('the string "]]>" is disallowed in char data.'), s = 0;
580
580
  break;
581
- case bt:
581
+ case xt:
582
582
  a !== void 0 && (this.text += `${o.slice(t, this.prevI)}
583
583
  `), t = this.i, s = 0;
584
584
  break;
@@ -599,14 +599,14 @@ class Ze {
599
599
  switch (n) {
600
600
  case Ot:
601
601
  if (this.state = 15, o !== void 0) {
602
- const { text: c } = this, p = s.slice(t, this.prevI);
603
- c.length !== 0 ? (o(c + p), this.text = "") : p.length !== 0 && o(p);
602
+ const { text: c } = this, g = s.slice(t, this.prevI);
603
+ c.length !== 0 ? (o(c + g), this.text = "") : g.length !== 0 && o(g);
604
604
  }
605
605
  break t;
606
606
  case 38:
607
607
  this.state = 14, this.entityReturnState = Y, o !== void 0 && (this.text += s.slice(t, this.prevI)), a = !0;
608
608
  break t;
609
- case bt:
609
+ case xt:
610
610
  o !== void 0 && (this.text += `${s.slice(t, this.prevI)}
611
611
  `), t = this.i;
612
612
  break;
@@ -620,7 +620,7 @@ class Ze {
620
620
  a && (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));
621
621
  }
622
622
  pushAttribNS(t, s) {
623
- const { prefix: o, local: a } = this.qname(t), n = { name: t, prefix: o, local: a, value: s };
623
+ const { prefix: o, local: a } = this.qName(t), n = { name: t, prefix: o, local: a, value: s };
624
624
  if (this.attribList.push(n), this.attributeHandler?.(n), o === "xmlns") {
625
625
  const c = s.trim();
626
626
  this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[a] = c, ae(this, a, c);
@@ -651,7 +651,7 @@ class Ze {
651
651
  for (let a = o.length - 1; a >= 0; a--) if (s = o[a].ns[t], s !== void 0) return s;
652
652
  return s = this.ns[t], s !== void 0 ? s : this.opt.resolvePrefix?.(t);
653
653
  }
654
- qname(t) {
654
+ qName(t) {
655
655
  const s = t.indexOf(":");
656
656
  if (s === -1) return { prefix: "", local: t };
657
657
  const o = t.slice(s + 1), a = t.slice(0, s);
@@ -660,17 +660,17 @@ class Ze {
660
660
  processAttribsNS() {
661
661
  const { attribList: t } = this, s = this.tag;
662
662
  {
663
- const { prefix: n, local: c } = this.qname(s.name);
663
+ const { prefix: n, local: c } = this.qName(s.name);
664
664
  s.prefix = n, s.local = c;
665
- const p = s.uri = this.resolve(n) ?? "";
666
- n !== "" && (n === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), p === "" && (this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`), s.uri = n));
665
+ const g = s.uri = this.resolve(n) ?? "";
666
+ n !== "" && (n === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), g === "" && (this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`), s.uri = n));
667
667
  }
668
668
  if (t.length === 0) return;
669
669
  const { attributes: o } = s, a = /* @__PURE__ */ new Set();
670
670
  for (const n of t) {
671
- const { name: c, prefix: p, local: k } = n;
672
- let y, S;
673
- p === "" ? (y = c === "xmlns" ? qt : "", S = c) : (y = this.resolve(p), y === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(p)}.`), y = p), S = `{${y}}${k}`), a.has(S) && this.fail(`duplicate attribute: ${S}.`), a.add(S), n.uri = y, o[c] = n;
671
+ const { name: c, prefix: g, local: A } = n;
672
+ let T, v;
673
+ g === "" ? (T = c === "xmlns" ? qt : "", v = c) : (T = this.resolve(g), T === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(g)}.`), T = g), v = `{${T}}${A}`), a.has(v) && this.fail(`duplicate attribute: ${v}.`), a.add(v), n.uri = T, o[c] = n;
674
674
  }
675
675
  this.attribList = [];
676
676
  }
@@ -697,7 +697,7 @@ class Ze {
697
697
  for (; a-- > 0; ) {
698
698
  const n = this.tag = t.pop();
699
699
  if (this.topNS = n.ns, o?.(n), n.name === s) break;
700
- this.fail("unexpected close tag.");
700
+ this.fail(`unexpected close tag: ${s}.`);
701
701
  }
702
702
  a === 0 ? this.closedRoot = !0 : a < 0 && (this.fail(`unmatched closing tag: ${s}.`), this.text += `</${s}>`);
703
703
  }
@@ -710,16 +710,16 @@ class Ze {
710
710
  return t[1] === "x" && /^#x[0-9a-f]+$/i.test(t) ? s = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (s = parseInt(t.slice(1), 10)), this.isChar(s) ? String.fromCodePoint(s) : (this.fail("malformed character entity."), `&${t};`);
711
711
  }
712
712
  }
713
- var le, At;
714
- (At = le || (le = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, At.parseStream = async (i, t, s) => {
713
+ var le, Dt;
714
+ (Dt = le || (le = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, Dt.parseStream = async (i, t, s) => {
715
715
  const o = new Ze({ position: !1, ...s });
716
716
  let a;
717
- if (t.onOpenTagStart && o.on(At.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(At.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(At.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(At.Events.Attribute, t.onAttribute), t.onText && o.on(At.Events.Text, t.onText), t.onError && o.on(At.Events.Error, t.onError), t.onEnd) {
717
+ if (t.onOpenTagStart && o.on(Dt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(Dt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(Dt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(Dt.Events.Attribute, t.onAttribute), t.onText && o.on(Dt.Events.Text, t.onText), t.onError && o.on(Dt.Events.Error, t.onError), t.onEnd) {
718
718
  t.onEnd;
719
719
  const n = () => {
720
720
  a = t.onEnd();
721
721
  };
722
- o.on(At.Events.End, n);
722
+ o.on(Dt.Events.End, n);
723
723
  }
724
724
  for (; ; ) {
725
725
  const { value: n, done: c } = await i.read();
@@ -728,13 +728,13 @@ var le, At;
728
728
  }
729
729
  return o.close(), a;
730
730
  };
731
- const A = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1 && i !== "0" && i !== "off" && i !== "false" && null, V = (i) => {
731
+ const E = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1 && i !== "0" && i !== "off" && i !== "false" && null, L = (i) => {
732
732
  const t = parseInt(i);
733
733
  return isNaN(t) ? null : t;
734
- }, xt = (i) => {
734
+ }, wt = (i) => {
735
735
  const t = parseFloat(i);
736
736
  return isNaN(t) ? null : t;
737
- }, P = null;
737
+ }, I = null;
738
738
  class Qe {
739
739
  constructor() {
740
740
  this._registeredVisitors = /* @__PURE__ */ new Map();
@@ -744,57 +744,57 @@ class Qe {
744
744
  }
745
745
  createEventHandler(t, s, o) {
746
746
  const a = this._registeredVisitors, n = [];
747
- let c = null, p = null, k = null, y = null;
748
- const S = [], C = { key: null, source: t };
749
- let b = null, O = !1;
750
- const I = (f, l) => {
751
- let w = k.attributes[f];
747
+ let c = null, g = null, A = null, T = null;
748
+ const v = [], S = { key: null, source: t };
749
+ let y = null, V = !1;
750
+ const R = (p, l) => {
751
+ let f = A.attributes[p];
752
752
  if (l) {
753
753
  if (Array.isArray(l)) {
754
- for (let D = 0; D < l.length; D++) if (w == null || (w = l[D](w), w == null)) return;
755
- } else if (w == null || (w = l(w), w == null)) return;
754
+ for (let P = 0; P < l.length; P++) if (f == null || (f = l[P](f), f == null)) return;
755
+ } else if (f == null || (f = l(f), f == null)) return;
756
756
  }
757
- return w;
758
- }, x = { getSource: () => b.source, setSource: (f) => {
759
- b.source = f;
760
- }, setKey: (f) => {
761
- b.key = f;
762
- }, getFrom: () => k, getAttribute: (f, l) => I(f, l) ?? null, hasAttribute: (f) => x.getAttribute(f) !== null, getParent: () => S[S.length - 2].source, getPath: () => {
763
- const f = [];
764
- for (let l = 0; l < n.length; l++) f.push(n[l].local);
765
- return f.join("\\");
766
- }, parseAttribute: I, copyToObject: (f, l, w, D) => {
767
- const q = I(D ?? l, w);
768
- q !== void 0 && (f[l] = q);
769
- }, copyTo: (f, l, w) => {
770
- const D = I(w ?? f, l);
771
- D !== void 0 && (b.source[f] = D);
772
- }, warn: (f) => {
773
- o ? o?.(f) : console.warn(f);
757
+ return f;
758
+ }, k = { getSource: () => y.source, setSource: (p) => {
759
+ y.source = p;
760
+ }, setKey: (p) => {
761
+ y.key = p;
762
+ }, getFrom: () => A, getAttribute: (p, l) => R(p, l) ?? null, hasAttribute: (p) => k.getAttribute(p) !== null, getParent: () => v[v.length - 2].source, getPath: () => {
763
+ const p = [];
764
+ for (let l = 0; l < n.length; l++) p.push(n[l].local);
765
+ return p.join("\\");
766
+ }, parseAttribute: R, copyToObject: (p, l, f, P) => {
767
+ const _ = R(P ?? l, f);
768
+ _ !== void 0 && (p[l] = _);
769
+ }, copyTo: (p, l, f) => {
770
+ const P = R(f ?? p, l);
771
+ P !== void 0 && (y.source[p] = P);
772
+ }, warn: (p) => {
773
+ o ? o?.(p) : console.warn(p);
774
774
  } };
775
- return { onOpenTag: (f) => {
776
- let l = f.name;
777
- const w = l.indexOf(":");
778
- w !== -1 && (l = l.slice(w + 1));
779
- const D = a.get(l);
780
- if (c = { local: l, visitor: D, tag: f, destination: null }, O) return n.push(c), p = l, void (k = f);
781
- y = c?.visitor ?? null, D && (b = n.length === 0 ? C : y?.to !== null ? { key: null, source: {} } : null, c.destination = b, b && S.push(b)), n.push(c), p = l, k = f, O = y?.to === null, y?.openTag?.(x);
782
- }, onCloseTag: (f) => {
783
- let l = f.name;
784
- const w = l.indexOf(":");
785
- if (w !== -1 && (l = l.slice(w + 1)), l !== p) throw new Error(`mismatch open/close tag: '${l}'/'${p}'`);
786
- O || y?.closeTag?.(x);
787
- const D = n.pop() ?? null;
775
+ return { onOpenTag: (p) => {
776
+ let l = p.name;
777
+ const f = l.indexOf(":");
778
+ f !== -1 && (l = l.slice(f + 1));
779
+ const P = a.get(l);
780
+ if (c = { local: l, visitor: P, tag: p, destination: null }, V) return n.push(c), g = l, void (A = p);
781
+ T = c?.visitor ?? null, P && (y = n.length === 0 ? S : T?.to !== null ? { key: null, source: {} } : null, c.destination = y, y && v.push(y)), n.push(c), g = l, A = p, V = T?.to === null, T?.openTag?.(k);
782
+ }, onCloseTag: (p) => {
783
+ let l = p.name;
784
+ const f = l.indexOf(":");
785
+ if (f !== -1 && (l = l.slice(f + 1)), l !== g) throw new Error(`mismatch open/close tag: '${l}'/'${g}'`);
786
+ V || T?.closeTag?.(k);
787
+ const P = n.pop() ?? null;
788
788
  c = n[n.length - 1] ?? null;
789
- const q = D?.destination;
790
- if (q) {
791
- S.pop(), b = S[S.length - 1] ?? C;
792
- const ot = D.visitor;
793
- ot && ot.to && q.source !== void 0 && (Array.isArray(ot.to) ? b.source.push ? b.source.push(q.source) : o?.(`Unable to parse array for ${ot.from} at ${x.getPath()}`) : q.key ? b.source[q.key] = q.source : typeof ot.to == "string" && (b.source[ot.to] = q.source));
789
+ const _ = P?.destination;
790
+ if (_) {
791
+ v.pop(), y = v[v.length - 1] ?? S;
792
+ const ot = P.visitor;
793
+ ot && ot.to && _.source !== void 0 && (Array.isArray(ot.to) ? y.source.push ? y.source.push(_.source) : o?.(`Unable to parse array for ${ot.from} at ${k.getPath()}`) : _.key ? y.source[_.key] = _.source : typeof ot.to == "string" && (y.source[ot.to] = _.source));
794
794
  }
795
- p = c?.local ?? null, k = c?.tag ?? null, y = c?.visitor ?? null, O = !c?.destination;
796
- }, onText: (f) => {
797
- y?.text?.(f, x);
795
+ g = c?.local ?? null, A = c?.tag ?? null, T = c?.visitor ?? null, V = !c?.destination;
796
+ }, onText: (p) => {
797
+ T?.text?.(p, k);
798
798
  }, onEnd: s };
799
799
  }
800
800
  }
@@ -806,40 +806,40 @@ const fe = (i, t, s, o = null) => {
806
806
  if (n !== void 0) return n;
807
807
  const c = t(a);
808
808
  if (!c) return null;
809
- let p = c.content;
809
+ let g = c.content;
810
810
  try {
811
- s && (p = s(p));
812
- } catch (k) {
813
- console.warn(k);
811
+ s && (g = s(g));
812
+ } catch (A) {
813
+ console.warn(A);
814
814
  }
815
- return o?.parsedRefs?.set(i, p), p;
815
+ return o?.parsedRefs?.set(i, g), g;
816
816
  }, ce = (i, t, s, o, a = null) => {
817
817
  if (!i) return null;
818
818
  let n = i;
819
819
  n.startsWith("/") && (n = n.substring(1));
820
820
  let c = a?.parsedRefs?.get(i);
821
821
  if (c !== void 0) return c;
822
- const p = t(n);
823
- if (!p) return null;
824
- const k = p.content;
822
+ const g = t(n);
823
+ if (!g) return null;
824
+ const A = g.content;
825
825
  try {
826
- const y = new TextDecoder().decode(k), S = s.parseFromString(y, "text/xml"), C = o.convert(S, i, a);
827
- return a?.parsedRefs?.set(i, C), C;
828
- } catch (y) {
829
- console.warn(y);
826
+ const T = new TextDecoder().decode(A), v = s.parseFromString(T, "text/xml"), S = o.convert(v, i, a);
827
+ return a?.parsedRefs?.set(i, S), S;
828
+ } catch (T) {
829
+ console.warn(T);
830
830
  }
831
831
  return null;
832
832
  }, Bt = (i, t, s, o, a = null) => {
833
833
  const n = /* @__PURE__ */ new Map();
834
834
  let c = t.Directory[i];
835
- const p = c ? c.length : 0;
836
- for (let k = 0; k < p; k++) {
837
- const y = c[k];
838
- if (!y) continue;
839
- let S = y;
840
- S.startsWith("/") && (S = S.substring(1));
841
- const C = ce(S, (b) => t.files[b], s, o, a);
842
- n.set(S, C);
835
+ const g = c ? c.length : 0;
836
+ for (let A = 0; A < g; A++) {
837
+ const T = c[A];
838
+ if (!T) continue;
839
+ let v = T;
840
+ v.startsWith("/") && (v = v.substring(1));
841
+ const S = ce(v, (y) => t.files[y], s, o, a);
842
+ n.set(v, S);
843
843
  }
844
844
  return n;
845
845
  }, Je = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], me = (i, t = "dk1") => {
@@ -852,8 +852,8 @@ const fe = (i, t, s, o = null) => {
852
852
  n && (s = n.toLowerCase(), n.length !== 8 || n.startsWith("FF") || (s = "FF" + n.substring(2, n.length)));
853
853
  const c = i("theme");
854
854
  c && (s = Je[c]);
855
- let p = i("tint");
856
- if (p && (s += ` ${Pe.AdjustmentType.ETint} ${parseFloat(p)}`), s) return s;
855
+ let g = i("tint");
856
+ if (g && (s += ` ${Pe.AdjustmentType.ETint} ${parseFloat(g)}`), s) return s;
857
857
  }, Ke = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), is = (i) => i ? re.roundAccurately(parseFloat(i) / 12700, 4) : null, os = (i) => i ? re.roundAccurately(parseFloat(i) / 9525, 1) : null, rs = (i) => parseFloat(i) / 1e3, ns = (i) => parseFloat(i) / 6e4, Ye = (i) => i === "true" || i === "1";
858
858
  class $t {
859
859
  static {
@@ -896,405 +896,410 @@ class $t {
896
896
  const ts = (i, t, s) => {
897
897
  if (i[0].value[0] === i[1].value[0]) return t;
898
898
  }, Te = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, es = (i, t, s, o, a, n, c) => {
899
- let p = !1, k = !1, y = [], S = !1, C = null, b = null, O = null, I = null, x = null, f = null;
900
- const l = c?.get("richData") ?? [], w = wt.normalizeA1ToR1C1, D = ne.createConflatingRanges(), q = /* @__PURE__ */ new Map(), ot = [];
901
- let Dt = null;
899
+ let g = !1, A = !1, T = [], v = !1, S = null, y = null, V = null, R = null, k = null, p = null;
900
+ const l = c?.get("richData") ?? [], f = vt.normalizeA1ToR1C1, P = ne.createConflatingRanges(), _ = /* @__PURE__ */ new Map(), ot = [];
901
+ let Et = null;
902
902
  const zt = ne.createConflatingRanges();
903
- let vt, gt = !1, W = -1, z = -1, rt = null, ft = null;
904
- const lt = [];
905
- let Et = null, jt = -2, ht = 0, St = "", mt = "", Ct = "", ct = "", Tt = "", yt = "", Z = "", Ht = "", Ut = "", Kt = "", It = "", Yt = "", Xt = "", te = "", ut = !0, v = null, j = 0;
903
+ let St, mt = !1, B = -1, q = -1, rt = null, Tt = null;
904
+ const ct = [];
905
+ let Pt = null, jt = -2, dt = 0, Ct = "", yt = "", kt = "", ht = "", At = "", bt = "", J = "", Ht = "", Gt = "", Kt = "", It = "", Yt = "", Xt = "", te = "", pt = !0, x = null, W = !1, z = !1, G = null, nt = 0;
906
906
  return { ...s, onEnd: () => {
907
- lt.length > 0 && (t.rows = lt);
908
- let d = D.done(ts);
909
- const T = d.length;
910
- if (T > 0) {
911
- const L = new Array(T);
912
- for (let E = 0; E < T; E++) {
913
- const U = d[E], H = wt.rangeToString(U), X = U.value[1], tt = wt.resolveRelativeToA1(X, U.rowStart, U.colStart);
914
- L[E] = [H, tt];
907
+ ct.length > 0 && (t.rows = ct);
908
+ let h = P.done(ts);
909
+ const C = h.length;
910
+ if (C > 0) {
911
+ const b = new Array(C);
912
+ for (let w = 0; w < C; w++) {
913
+ const H = h[w], tt = vt.rangeToString(H), Z = H.value[1], ut = vt.resolveRelativeToA1(Z, H.rowStart, H.colStart);
914
+ b[w] = [tt, ut];
915
915
  }
916
- t.formulas = L;
916
+ t.formulas = b;
917
917
  }
918
- const R = zt.done(!0), g = R.length;
919
- if (g > 0) {
920
- const L = new Array(g);
921
- for (let E = 0; E < g; E++) {
922
- const U = R[E], H = wt.rangeToString(U);
923
- L[E] = H;
918
+ const K = zt.done(!0), D = K.length;
919
+ if (D > 0) {
920
+ const b = new Array(D);
921
+ for (let w = 0; w < D; w++) {
922
+ const H = K[w], tt = vt.rangeToString(H);
923
+ b[w] = tt;
924
924
  }
925
- t.volatile = L;
925
+ t.volatile = b;
926
926
  }
927
- if (ot.length > 0 && (t.dynamicArray = [...ot]), y.length > 0) {
928
- y.sort(ne.createRangeComparator(Oe.Orientation.Column));
929
- const L = [];
930
- let E = null, U = -1, H = -1, X = -1, tt = -1, J = null;
931
- const dt = y.length;
932
- dt > 0 && (E = y[0], U = E.colStart, H = E.colEnd, X = E.rowEnd, tt = E.value, L.push(E));
933
- for (let K = 1; K < dt; K++) J = y[K], tt !== J.value || U !== J.colStart || H !== J.colEnd || X + 1 !== J.rowEnd ? (L.push(J), E = J, U = E.colStart, H = E.colEnd, X = E.rowEnd, tt = E.value) : (X = J.rowEnd, E.rowEnd = X);
934
- let kt = [];
935
- for (let K = 0; K < L.length; K++) {
936
- const Pt = L[K];
937
- kt.push({ r: { colStart: Pt.colStart, colEnd: Pt.colEnd, rowStart: Pt.rowStart, rowEnd: Pt.rowEnd }, v: Pt.value });
927
+ if (ot.length > 0 && (t.dynamicArray = [...ot]), T.length > 0) {
928
+ T.sort(ne.createRangeComparator(Oe.Orientation.Column));
929
+ const b = [];
930
+ let w = null, H = -1, tt = -1, Z = -1, ut = -1, Q = null;
931
+ const Ut = T.length;
932
+ Ut > 0 && (w = T[0], H = w.colStart, tt = w.colEnd, Z = w.rowEnd, ut = w.value, b.push(w));
933
+ for (let O = 1; O < Ut; O++) Q = T[O], ut !== Q.value || H !== Q.colStart || tt !== Q.colEnd || Z + 1 !== Q.rowEnd ? (b.push(Q), w = Q, H = w.colStart, tt = w.colEnd, Z = w.rowEnd, ut = w.value) : (Z = Q.rowEnd, w.rowEnd = Z);
934
+ let $ = [];
935
+ for (let O = 0; O < b.length; O++) {
936
+ const gt = b[O];
937
+ $.push({ r: { colStart: gt.colStart, colEnd: gt.colEnd, rowStart: gt.rowStart, rowEnd: gt.rowEnd }, v: gt.value });
938
938
  }
939
- t.directStyles = kt;
939
+ t.directStyles = $;
940
940
  }
941
- const Q = i.build();
942
- if (Q) {
943
- const L = Q.tuples;
944
- t.data = L;
941
+ const j = i.build();
942
+ if (j) {
943
+ const b = j.tuples;
944
+ t.data = b;
945
945
  }
946
946
  s?.onEnd?.();
947
- }, onOpenTag: (d) => {
948
- let T = d.name;
949
- const R = T.indexOf(":");
950
- if (R !== -1 && (T = T.slice(R + 1)), j++, j % 196608 == 0 && a(j), vt) {
951
- const g = d.attributes;
952
- switch (T) {
947
+ }, onOpenTag: (h) => {
948
+ let C = h.name;
949
+ const K = C.indexOf(":");
950
+ if (K !== -1 && (C = C.slice(K + 1)), nt++, nt % 196608 == 0 && a(nt), St) {
951
+ const D = h.attributes;
952
+ switch (C) {
953
953
  case "v":
954
- k = !0;
954
+ A = !0;
955
955
  break;
956
956
  case "f":
957
- switch (g.t ?? null) {
957
+ switch (D.t ?? null) {
958
958
  case null:
959
959
  case "normal":
960
- S = !0;
960
+ v = !0;
961
961
  break;
962
962
  case "shared":
963
- const Q = g.si;
964
- b = g.ref, C = Q;
963
+ const j = D.si;
964
+ y = D.ref, S = j;
965
965
  break;
966
966
  case "array":
967
- S = !0, b = g.ref, Dt = [b, !1];
967
+ v = !0, y = D.ref, Et = [y, !1];
968
968
  break;
969
969
  case "datatable":
970
- S = !0, b = g.ref, S = !0;
970
+ v = !0, y = D.ref, v = !0;
971
971
  }
972
- g.ca !== void 0 && zt.append(W, z);
972
+ D.ca !== void 0 && zt.append(B, q);
973
973
  break;
974
974
  case "is":
975
- return void (gt = !0);
975
+ return void (mt = !0);
976
976
  }
977
- return void (gt && n?.onOpenTag(d));
977
+ return void (mt && n?.onOpenTag(h));
978
978
  }
979
- if (p) {
980
- if (T === "c") {
981
- vt = d;
982
- const g = d.attributes.r;
983
- z = wt.fastStringToCol(g);
984
- const Q = d.attributes.t;
985
- Q === void 0 ? ft = null : (ft = Q, ft === "str" && (gt = !0));
986
- let L = d.attributes.s;
987
- L !== void 0 && (L = parseInt(L), v && v.value === L && v.colEnd + 1 === z ? v.colEnd = z : (v = { colStart: z, rowStart: W, colEnd: z, rowEnd: W, value: L }, y.push(v)));
979
+ if (g) {
980
+ if (C === "c") {
981
+ St = h;
982
+ const D = h.attributes.r;
983
+ q = vt.fastStringToCol(D);
984
+ const j = h.attributes.t;
985
+ j === void 0 ? Tt = null : (Tt = j, Tt === "str" && (mt = !0));
986
+ let b = h.attributes.s;
987
+ b === void 0 && (G !== null || z) && (b = "0"), b !== void 0 && (b = parseInt(b), x && x.value === b && x.colEnd + 1 === q ? x.colEnd = q : (x = { colStart: q, rowStart: B, colEnd: q, rowEnd: B, value: b }, T.push(x)));
988
988
  }
989
989
  } else {
990
- if (T === "row") {
991
- p = !0;
992
- const g = d.attributes.r;
993
- if (W = parseInt(g) - 1, ht = 0, mt = d.attributes.customHeight, mt !== void 0 && (ht |= $t.CustomHeight), mt !== Ut && (ut = !0, Ut = mt), St = d.attributes.ht, St !== void 0 && (ht |= $t.Ht), St !== Ht && (ut = !0, Ht = St), Ct = d.attributes.hidden, Ct !== void 0 && (ht |= $t.Hidden), Ct !== Kt && (ut = !0, Kt = Ct), Tt = d.attributes.s, Tt !== void 0 && (ht |= $t.S), Tt !== Yt && (ut = !0, Yt = Tt), ct = d.attributes.customFormat, ct !== void 0 && (ht |= $t.CustomFormat), ct !== It && (ut = !0, It = ct), yt = d.attributes.outlineLevel, yt !== void 0 && (ht |= $t.OutlineLevel), yt !== Xt && (ut = !0, Xt = yt), Z = d.attributes.collapsed, Z !== void 0 && (ht |= $t.Collapsed), Z !== te && (ut = !0, te = Z), ht !== 0) if (jt + 1 !== W || ut) {
994
- const Q = mt !== void 0 && (mt === "1" || mt === "true"), L = ct !== void 0 && (ct === "1" || ct === "true");
995
- Et = { min: W, max: W, sz: Q && St !== void 0 ? parseFloat(St) : -1, csz: Q, h: Ct !== void 0 && (Ct === "1" || Ct === "true"), s: Q && Tt !== void 0 && Tt !== "0" ? parseInt(Tt) : 0, cs: L, l: yt === void 0 || yt === "0" ? 0 : parseInt(yt), cl: Z !== void 0 && (Z === "1" || Z === "true") }, lt.push(Et);
996
- } else Et.max = W;
997
- return jt = W, void (ut = !1);
990
+ if (C === "row") {
991
+ g = !0;
992
+ const D = h.attributes.r;
993
+ if (B = parseInt(D) - 1, dt = 0, yt = h.attributes.customHeight, yt !== void 0 && (dt |= $t.CustomHeight), yt !== Gt && (pt = !0, Gt = yt), Ct = h.attributes.ht, Ct !== void 0 && (dt |= $t.Ht), Ct !== Ht && (pt = !0, Ht = Ct), kt = h.attributes.hidden, kt !== void 0 && (dt |= $t.Hidden), kt !== Kt && (pt = !0, Kt = kt), At = h.attributes.s, At !== void 0 && (dt |= $t.S), At !== Yt && (pt = !0, Yt = At), ht = h.attributes.customFormat, ht !== void 0 && (dt |= $t.CustomFormat), ht !== It && (pt = !0, It = ht), bt = h.attributes.outlineLevel, bt !== void 0 && (dt |= $t.OutlineLevel), bt !== Xt && (pt = !0, Xt = bt), J = h.attributes.collapsed, J !== void 0 && (dt |= $t.Collapsed), J !== te && (pt = !0, te = J), dt !== 0) if (jt + 1 !== B || pt) {
994
+ const j = yt !== void 0 && (yt === "1" || yt === "true");
995
+ G = ht === void 0 || ht !== "1" && ht !== "true" || At === void 0 ? null : At, Pt = { min: B, max: B, sz: j && Ct !== void 0 ? parseFloat(Ct) : -1, csz: j, h: kt !== void 0 && (kt === "1" || kt === "true"), s: G === null ? void 0 : G === "0" ? 0 : parseInt(G), l: bt === void 0 || bt === "0" ? 0 : parseInt(bt), cl: J !== void 0 && (J === "1" || J === "true") }, ct.push(Pt);
996
+ } else Pt.max = B;
997
+ return jt = B, void (pt = !1);
998
998
  }
999
- s?.onOpenTag(d);
999
+ if (!W && C === "sheetData") {
1000
+ W = !0;
1001
+ const D = t.cols, j = D ? D.length : 0;
1002
+ for (let b = 0; !z && b < j; b++) D[b].s && (z = !0);
1003
+ }
1004
+ s?.onOpenTag(h);
1000
1005
  }
1001
- }, onCloseTag: (d) => {
1002
- if (vt) {
1003
- let T = d.name;
1004
- const R = T.indexOf(":");
1005
- if (R !== -1 && (T = T.slice(R + 1)), gt) if (T === "is" || T === "v") {
1006
- const g = n?.onEnd();
1007
- g !== null && i.addValue(W, z, "" + g);
1008
- } else n?.onCloseTag?.(d);
1009
- return k && (k = !1), void (T === "c" && (vt = null, gt = !1));
1006
+ }, onCloseTag: (h) => {
1007
+ if (St) {
1008
+ let C = h.name;
1009
+ const K = C.indexOf(":");
1010
+ if (K !== -1 && (C = C.slice(K + 1)), mt) if (C === "is" || C === "v") {
1011
+ const D = n?.onEnd();
1012
+ D !== null && i.addValue(B, q, "" + D);
1013
+ } else n?.onCloseTag?.(h);
1014
+ return A && (A = !1), void (C === "c" && (St = null, mt = !1));
1010
1015
  }
1011
- if (p) return p = !1, void (v = null);
1012
- s?.onCloseTag(d);
1013
- }, onText: (d) => {
1014
- if (d = d.trim(), k) {
1015
- switch (rt = null, ft) {
1016
+ if (g) return g = !1, void (x = null);
1017
+ s?.onCloseTag(h);
1018
+ }, onText: (h) => {
1019
+ if (h = h.trim(), A) {
1020
+ switch (rt = null, Tt) {
1016
1021
  case null:
1017
1022
  case "n":
1018
- rt = parseFloat(d);
1023
+ rt = parseFloat(h);
1019
1024
  break;
1020
1025
  case "b":
1021
- rt = d === "1" || d === "true";
1026
+ rt = h === "1" || h === "true";
1022
1027
  break;
1023
1028
  case "s":
1024
- rt = d;
1029
+ rt = h;
1025
1030
  break;
1026
1031
  case "e":
1027
- if (d === "#VALUE!") {
1028
- const R = vt.attributes.vm;
1029
- if (R !== void 0) {
1030
- const g = l[parseInt(R) - 1];
1031
- if (g && g.isFormulaError) {
1032
- rt = { t: Mt.Error, v: g.getCode() };
1032
+ if (h === "#VALUE!") {
1033
+ const K = St.attributes.vm;
1034
+ if (K !== void 0) {
1035
+ const D = l[parseInt(K) - 1];
1036
+ if (D && D.isFormulaError) {
1037
+ rt = { t: Mt.Error, v: D.getCode() };
1033
1038
  break;
1034
1039
  }
1035
1040
  }
1036
1041
  }
1037
- const T = Ve.getBuiltInByLabel(d);
1038
- T ? rt = { t: Mt.Error, v: T.getCode() } : (rt = d, o?.(`Unknown formula error '${d}' in cell ${wt.cellToString({ colIndex: z, rowIndex: W })}`));
1042
+ const C = Ve.getBuiltInByLabel(h);
1043
+ C ? rt = { t: Mt.Error, v: C.getCode() } : (rt = h, o?.(`Unknown formula error '${h}' in cell ${vt.cellToString({ colIndex: q, rowIndex: B })}`));
1039
1044
  break;
1040
1045
  case "str":
1041
1046
  case "inlineStr":
1042
- gt = !0;
1047
+ mt = !0;
1043
1048
  }
1044
- rt !== null && i.addValue(W, z, rt);
1049
+ rt !== null && i.addValue(B, q, rt);
1045
1050
  }
1046
- if (Dt && (ft === "e" && (Dt[1] = !0), ot.push(Dt), Dt = null), C) if (x === C) I = f;
1051
+ if (Et && (Tt === "e" && (Et[1] = !0), ot.push(Et), Et = null), S) if (k === S) R = p;
1047
1052
  else {
1048
- if (I = q.get(C), !I) {
1049
- const T = [];
1050
- O = w(d, W, z, T), I = [O, T, d], q.set(C, I);
1053
+ if (R = _.get(S), !R) {
1054
+ const C = [];
1055
+ V = f(h, B, q, C), R = [V, C, h], _.set(S, R);
1051
1056
  }
1052
- x = C, f = I;
1057
+ k = S, p = R;
1053
1058
  }
1054
- if (S) {
1055
- const T = [];
1056
- O = w(d, W, z, T), I = [O, T, d];
1059
+ if (v) {
1060
+ const C = [];
1061
+ V = f(h, B, q, C), R = [V, C, h];
1057
1062
  }
1058
- if (I) return D.append(W, z, I), I = null, S = !1, C = null, void (b = null);
1059
- gt ? n?.onText(d) : p || s?.onText(d);
1063
+ if (R) return P.append(B, q, R), R = null, v = !1, S = null, void (y = null);
1064
+ mt ? n?.onText(h) : g || s?.onText(h);
1060
1065
  } };
1061
1066
  }, as = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
1062
- const { password: s, createWorkbookOptions: o = {}, ...a } = t ?? {}, n = [], c = t?.progress, p = c?.onStart?.(t?.name ?? "Parsing XLSX");
1063
- await Promise.resolve(p);
1064
- const k = c?.onProgress;
1065
- let y = 0;
1066
- const S = import("./CO0-isMoTEJCBD3A.mjs"), C = import("./Bq2-_FvbBSnQ1mRA.mjs");
1067
- let b = null;
1067
+ const { password: s, createWorkbookOptions: o = {}, ...a } = t ?? {}, n = [], c = t?.progress, g = c?.onStart?.(t?.name ?? "Parsing XLSX");
1068
+ await Promise.resolve(g);
1069
+ const A = c?.onProgress;
1070
+ let T = 0;
1071
+ const v = import("./BvIcikdTDlEgEQ6f.mjs"), S = import("./DP96oVn4D_WVyEii.mjs");
1072
+ let y = null;
1068
1073
  try {
1069
- b = new DOMParser();
1074
+ y = new DOMParser();
1070
1075
  } catch {
1071
1076
  }
1072
- let O = null;
1073
- b || (O = import("./CKPAoMVPiyx_7ozH.mjs").then((l) => l.i));
1074
- let I = null, x = null, f = null;
1077
+ let V = null;
1078
+ y || (V = import("./D3Vs8usLpvWrfPaD.mjs").then((l) => l.i));
1079
+ let R = null, k = null, p = null;
1075
1080
  try {
1076
- const l = await Promise.all([S, C, O]);
1077
- I = l[0], x = l[1], f = l[2];
1081
+ const l = await Promise.all([v, S, V]);
1082
+ R = l[0], k = l[1], p = l[2];
1078
1083
  } catch (l) {
1079
1084
  throw new Error("Unable to load XLSX parser.", { cause: l });
1080
1085
  }
1081
1086
  try {
1082
- const l = I.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
1087
+ const l = R.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
1083
1088
  if (!l.Directory) throw new Se("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
1084
1089
  l.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], l.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
1085
- const w = new x.FromOOXMLConverter(), D = b ?? new f.DOMParser(), q = o?.resources ?? new Ce(), ot = q.beginPersist(), Dt = {}, zt = /* @__PURE__ */ new Set(), vt = /* @__PURE__ */ new Map();
1086
- vt.set("richTypes", []);
1087
- const gt = /* @__PURE__ */ new Map(), W = [], z = (v) => l.files[v], rt = (v, j) => {
1088
- const d = v.lastIndexOf("/"), T = v.substring(0, d + 1) + "_rels/" + v.substring(d + 1, v.length) + ".rels";
1089
- let R = j.get(T);
1090
- return R || (R = ((g, Q, L, E, U = null) => {
1091
- if (!g) return null;
1092
- const H = ce(g, Q, L, E, U);
1093
- if (!H) return null;
1094
- const X = /* @__PURE__ */ new Map(), tt = Object.keys(H), J = tt.length;
1095
- for (let dt = 0; dt < J; dt++) {
1096
- const kt = tt[dt], K = H[kt];
1097
- X.set(kt, K);
1090
+ const f = new k.FromOOXMLConverter(), P = y ?? new p.DOMParser(), _ = o?.resources ?? new Ce(), ot = _.beginPersist(), Et = {}, zt = /* @__PURE__ */ new Set(), St = /* @__PURE__ */ new Map();
1091
+ St.set("richTypes", []);
1092
+ const mt = /* @__PURE__ */ new Map(), B = [], q = (x) => l.files[x], rt = (x, W) => {
1093
+ const z = x.lastIndexOf("/"), G = x.substring(0, z + 1) + "_rels/" + x.substring(z + 1, x.length) + ".rels";
1094
+ let nt = W.get(G);
1095
+ return nt || (nt = ((h, C, K, D, j = null) => {
1096
+ if (!h) return null;
1097
+ const b = ce(h, C, K, D, j);
1098
+ if (!b) return null;
1099
+ const w = /* @__PURE__ */ new Map(), H = Object.keys(b), tt = H.length;
1100
+ for (let Z = 0; Z < tt; Z++) {
1101
+ const ut = H[Z], Q = b[ut];
1102
+ w.set(ut, Q);
1098
1103
  }
1099
- return X;
1100
- })(T, z, D, w, lt), j.set(T, R)), R;
1101
- }, ft = (v, j, d, T = gt) => {
1102
- let R = rt(j, T).get(v), g = R?.target;
1103
- if (!g) return null;
1104
- if (R.targetMode === "External") return R.target;
1105
- const Q = j.lastIndexOf("/"), L = j.substring(0, Q + 1);
1106
- g.startsWith("/") || (g = L + g), g = ((H) => {
1107
- const X = H.split(/\/+/);
1108
- return X.reduce((tt, J, dt) => (J === "." ? tt.splice(dt, 1) : J === ".." && tt.splice(dt - 1, 2), tt), X).join("/");
1109
- })(g);
1110
- const E = w?.getVisitorParamsState().get("dxfs");
1111
- let U = T.get(g);
1112
- if (!U) if (R.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
1113
- const H = {};
1114
- U = H;
1115
- const X = async () => {
1116
- const tt = ((M, _, Gt, et, nt, st, Zt, Vt) => {
1117
- const u = new Qe(), at = new ke.TransposedBuilder();
1118
- let F = null;
1119
- u.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
1120
- e.copyTo("ref", P);
1121
- } }), u.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
1104
+ return w;
1105
+ })(G, q, P, f, ct), W.set(G, nt)), nt;
1106
+ }, Tt = (x, W, z, G = mt) => {
1107
+ let nt = rt(W, G).get(x), h = nt?.target;
1108
+ if (!h) return null;
1109
+ if (nt.targetMode === "External") return nt.target;
1110
+ const C = W.lastIndexOf("/"), K = W.substring(0, C + 1);
1111
+ h.startsWith("/") || (h = K + h), h = ((b) => {
1112
+ const w = b.split(/\/+/);
1113
+ return w.reduce((H, tt, Z) => (tt === "." ? H.splice(Z, 1) : tt === ".." && H.splice(Z - 1, 2), H), w).join("/");
1114
+ })(h);
1115
+ const D = f?.getVisitorParamsState().get("dxfs");
1116
+ let j = G.get(h);
1117
+ if (!j) if (nt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
1118
+ const b = {};
1119
+ j = b;
1120
+ const w = async () => {
1121
+ const H = (($, O, gt, et, at, st, Zt, Vt) => {
1122
+ const d = new Qe(), lt = new ke.TransposedBuilder();
1123
+ let X = null;
1124
+ d.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
1125
+ e.copyTo("ref", I);
1126
+ } }), d.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
1122
1127
  const r = e.getParent();
1123
1128
  r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
1124
- const h = e.getAttribute("sqref");
1125
- h && (e.getSource().ref = h.split(" ").join(",")), e.copyTo("pivot", A);
1129
+ const u = e.getAttribute("sqref");
1130
+ u && (e.getSource().ref = u.split(" ").join(",")), e.copyTo("pivot", E);
1126
1131
  }, closeTag: (e) => {
1127
1132
  const r = e.getSource();
1128
1133
  if (r.rule) {
1129
- const h = Object.keys(r.rule);
1130
- for (let m = 0; m < h.length; m++) {
1131
- const $ = h[m];
1132
- $ !== "rule" && (r[$] = r.rule[$]);
1134
+ const u = Object.keys(r.rule);
1135
+ for (let m = 0; m < u.length; m++) {
1136
+ const M = u[m];
1137
+ M !== "rule" && (r[M] = r.rule[M]);
1133
1138
  }
1134
1139
  }
1135
1140
  delete r.rule;
1136
- } }), u.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
1141
+ } }), d.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
1137
1142
  const r = e.getParent();
1138
- e.copyToObject(r, "type", P), e.copyToObject(r, "priority", V), e.copyToObject(r, "stopIfTrue", A);
1139
- const h = e.getAttribute("dxfId", V);
1140
- if (h !== null) {
1141
- let m = et?.get(h);
1142
- m || (st?.(`Unable to load conditional color. Invalid dxfI: '${h}' at '${e.getPath()}'.`), m = {}), r.style = m;
1143
+ e.copyToObject(r, "type", I), e.copyToObject(r, "priority", L), e.copyToObject(r, "stopIfTrue", E);
1144
+ const u = e.getAttribute("dxfId", L);
1145
+ if (u !== null) {
1146
+ let m = et?.get(u);
1147
+ m || (st?.(`Unable to load conditional color. Invalid dxfI: '${u}' at '${e.getPath()}'.`), m = {}), r.style = m;
1143
1148
  }
1144
- e.copyToObject(r, "aboveAverage", A), e.copyToObject(r, "equalAverage", A), e.copyToObject(r, "stdDev", V), e.copyToObject(r, "bottom", A), e.copyToObject(r, "percent", A), e.copyToObject(r, "rank", V), e.copyToObject(r, "operator", P), e.copyToObject(r, "text", P), e.copyToObject(r, "timePeriod", P);
1145
- } }), u.registerVisitor({ from: "colorScale", to: "colorScale" }), u.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
1146
- e.copyTo("maxLength", V), e.copyTo("minLength", V), e.copyTo("showValue", A);
1147
- } }), u.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
1148
- e.copyTo("iconSet", P), e.copyTo("reverse", A), e.copyTo("showValue", A);
1149
- } }), u.registerVisitor({ from: "formula", to: null, text: (e, r) => {
1150
- const h = r.getParent();
1151
- let m = h.formulas;
1152
- m || (m = [], h.formulas = m), m.push(e);
1153
- } }), u.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
1149
+ e.copyToObject(r, "aboveAverage", E), e.copyToObject(r, "equalAverage", E), e.copyToObject(r, "stdDev", L), e.copyToObject(r, "bottom", E), e.copyToObject(r, "percent", E), e.copyToObject(r, "rank", L), e.copyToObject(r, "operator", I), e.copyToObject(r, "text", I), e.copyToObject(r, "timePeriod", I);
1150
+ } }), d.registerVisitor({ from: "colorScale", to: "colorScale" }), d.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
1151
+ e.copyTo("maxLength", L), e.copyTo("minLength", L), e.copyTo("showValue", E);
1152
+ } }), d.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
1153
+ e.copyTo("iconSet", I), e.copyTo("reverse", E), e.copyTo("showValue", E);
1154
+ } }), d.registerVisitor({ from: "formula", to: null, text: (e, r) => {
1155
+ const u = r.getParent();
1156
+ let m = u.formulas;
1157
+ m || (m = [], u.formulas = m), m.push(e);
1158
+ } }), d.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
1154
1159
  const r = e.getParent();
1155
- r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", P), e.copyTo("value", xt, "val"), e.copyTo("gte", A);
1156
- } }), u.registerVisitor({ from: "color", to: {}, openTag: (e) => {
1160
+ r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", I), e.copyTo("value", wt, "val"), e.copyTo("gte", E);
1161
+ } }), d.registerVisitor({ from: "color", to: {}, openTag: (e) => {
1157
1162
  const r = e.getParent();
1158
1163
  r.colors || (r.colors = []);
1159
- const h = me((m) => e.getAttribute(m));
1160
- r.colors.push(h);
1161
- } }), u.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
1164
+ const u = me((m) => e.getAttribute(m));
1165
+ r.colors.push(u);
1166
+ } }), d.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
1162
1167
  const r = e.getParent();
1163
- r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", V, "colId"), e.copyTo("hiddenButton", A), e.copyTo("showButton", A);
1164
- } }), u.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
1168
+ r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", L, "colId"), e.copyTo("hiddenButton", E), e.copyTo("showButton", E);
1169
+ } }), d.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
1165
1170
  const r = e.getParent();
1166
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Color, e.copyTo("cellColor", A), e.copyTo("styleId", V, "dxfId");
1167
- } }), u.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1171
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Color, e.copyTo("cellColor", E), e.copyTo("styleId", L, "dxfId");
1172
+ } }), d.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1168
1173
  const r = e.getParent();
1169
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Dynamic, e.copyTo("dynamicType", P, "type"), e.copyTo("val", xt), e.copyTo("maxVal", xt, "maxVal");
1170
- } }), u.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1174
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Dynamic, e.copyTo("dynamicType", I, "type"), e.copyTo("val", wt), e.copyTo("maxVal", wt, "maxVal");
1175
+ } }), d.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1171
1176
  const r = e.getParent();
1172
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Icon, e.copyTo("iconId", V), e.copyTo("iconSet", P);
1173
- } }), u.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1177
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Icon, e.copyTo("iconId", L), e.copyTo("iconSet", I);
1178
+ } }), d.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1174
1179
  const r = e.getParent();
1175
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Top10, e.copyTo("filterVal", xt), e.copyTo("percent", A), e.copyTo("top", A), e.copyTo("val", xt);
1176
- } }), u.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1180
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Top10, e.copyTo("filterVal", wt), e.copyTo("percent", E), e.copyTo("top", E), e.copyTo("val", wt);
1181
+ } }), d.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1177
1182
  const r = e.getParent();
1178
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Items, e.copyTo("blank", A), e.copyTo("calendarType", P);
1179
- } }), u.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1183
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Items, e.copyTo("blank", E), e.copyTo("calendarType", I);
1184
+ } }), d.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1180
1185
  const r = e.getParent();
1181
- r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", P, "dateTimeGrouping"), e.copyTo("day", V), e.copyTo("hour", V), e.copyTo("minute", V), e.copyTo("month", V), e.copyTo("second", V), e.copyTo("year", V);
1182
- } }), u.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1186
+ r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", I, "dateTimeGrouping"), e.copyTo("day", L), e.copyTo("hour", L), e.copyTo("minute", L), e.copyTo("month", L), e.copyTo("second", L), e.copyTo("year", L);
1187
+ } }), d.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1183
1188
  const r = e.getParent();
1184
- r.items || (r.items = []), r.items.push(e.getAttribute("val", xt));
1185
- } }), u.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1189
+ r.items || (r.items = []), r.items.push(e.getAttribute("val", wt));
1190
+ } }), d.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1186
1191
  const r = e.getParent();
1187
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Custom, e.copyTo("and", A);
1188
- } }), u.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1192
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Custom, e.copyTo("and", E);
1193
+ } }), d.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1189
1194
  const r = e.getParent();
1190
- r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", P), e.copyTo("value", xt, "val");
1191
- } }), u.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1192
- e.copyTo("ref", P);
1193
- } }), u.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1195
+ r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", I), e.copyTo("value", wt, "val");
1196
+ } }), d.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1197
+ e.copyTo("ref", I);
1198
+ } }), d.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1194
1199
  const r = e.getParent();
1195
1200
  r.fields || (r.fields = []);
1196
- const h = e.getSource();
1197
- r.fields.push(h), e.copyTo("sortOn", P, "sortBy"), e.copyTo("dxfId", P, "sortBy"), e.copyTo("iconSet", P), e.copyTo("customList", P);
1201
+ const u = e.getSource();
1202
+ r.fields.push(u), e.copyTo("sortOn", I, "sortBy"), e.copyTo("dxfId", I, "sortBy"), e.copyTo("iconSet", I), e.copyTo("customList", I);
1198
1203
  const m = e.getAttribute("ref");
1199
1204
  if (m) {
1200
- const $ = wt.fastStringToRange(m, Te).colStart, Lt = wt.fastStringToRange(r.ref, Te), se = Lt.colStart;
1201
- h.offset = Lt ? $ - se : $;
1205
+ const M = vt.fastStringToRange(m, Te).colStart, Lt = vt.fastStringToRange(r.ref, Te), se = Lt.colStart;
1206
+ u.offset = Lt ? M - se : M;
1202
1207
  }
1203
- h.reverse = e.getAttribute("descending", A) ?? !1;
1204
- } }), u.registerVisitor({ from: "AlternateContent", to: null });
1208
+ u.reverse = e.getAttribute("descending", E) ?? !1;
1209
+ } }), d.registerVisitor({ from: "AlternateContent", to: null });
1205
1210
  const ee = (e) => {
1206
- F = e.getSource(), e.copyTo("topLeft", P, "topLeftCell");
1207
- const r = Ye(e.getAttribute("defaultGridColor")), h = e.getAttribute("colorId");
1208
- h === null || r || (e.getSource().gridLineColor = "index" + parseFloat(h)), e.copyTo("showZeros", A), e.copyTo("showFormulas", A), e.copyTo("zoomScale", V), e.copyTo("showRowHeaders", A, "showRowColHeaders"), e.copyTo("showColumnHeaders", A, "showRowColHeaders"), e.copyTo("showRowGridlines", A, "showGridLines"), e.copyTo("showColumnGridlines", A, "showGridLines");
1211
+ X = e.getSource(), e.copyTo("topLeft", I, "topLeftCell");
1212
+ const r = Ye(e.getAttribute("defaultGridColor")), u = e.getAttribute("colorId");
1213
+ u === null || r || (e.getSource().gridLineColor = "index" + parseFloat(u)), e.copyTo("showZeros", E), e.copyTo("showFormulas", E), e.copyTo("zoomScale", L), e.copyTo("showRowHeaders", E, "showRowColHeaders"), e.copyTo("showColumnHeaders", E, "showRowColHeaders"), e.copyTo("showRowGridlines", E, "showGridLines"), e.copyTo("showColumnGridlines", E, "showGridLines");
1209
1214
  };
1210
- u.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1215
+ d.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1211
1216
  ee(e);
1212
1217
  }, closeTag: () => {
1213
- F = null;
1214
- } }), u.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1218
+ X = null;
1219
+ } }), d.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1215
1220
  e.setSource([]);
1216
- } }), u.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1221
+ } }), d.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1217
1222
  ee(e);
1218
1223
  }, closeTag: () => {
1219
- F = null;
1220
- } }), u.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1221
- if (!F) return;
1222
- e.copyTo("cell", P, "activeCell"), e.copyTo("rangeIndex", V, "activeCellId");
1223
- const r = e.getAttribute("activeCell"), h = e.getAttribute("sqref");
1224
- h && h !== r && (e.getSource().ranges = h.split(" "));
1225
- } }), u.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1226
- if (F && e.getAttribute("state") === "frozen") {
1224
+ X = null;
1225
+ } }), d.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1226
+ if (!X) return;
1227
+ e.copyTo("cell", I, "activeCell"), e.copyTo("rangeIndex", L, "activeCellId");
1228
+ const r = e.getAttribute("activeCell"), u = e.getAttribute("sqref");
1229
+ u && u !== r && (e.getSource().ranges = u.split(" "));
1230
+ } }), d.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1231
+ if (X && e.getAttribute("state") === "frozen") {
1227
1232
  const r = {};
1228
- F.freezePanes = r, e.copyToObject(r, "topLeft", P, "topLeftCell");
1229
- const h = F.topLeft ? wt.fastStringToCell(F.topLeft) : { colIndex: 0, rowIndex: 0 }, m = { colIndex: 0, rowIndex: 0 };
1230
- e.copyToObject(m, "colIndex", V, "xSplit"), e.copyToObject(m, "rowIndex", V, "ySplit");
1231
- const $ = { colIndex: h.colIndex + m.colIndex, rowIndex: h.rowIndex + m.rowIndex };
1232
- r.coords = wt.cellToString($);
1233
+ X.freezePanes = r, e.copyToObject(r, "topLeft", I, "topLeftCell");
1234
+ const u = X.topLeft ? vt.fastStringToCell(X.topLeft) : { colIndex: 0, rowIndex: 0 }, m = { colIndex: 0, rowIndex: 0 };
1235
+ e.copyToObject(m, "colIndex", L, "xSplit"), e.copyToObject(m, "rowIndex", L, "ySplit");
1236
+ const M = { colIndex: u.colIndex + m.colIndex, rowIndex: u.rowIndex + m.rowIndex };
1237
+ r.coords = vt.cellToString(M);
1233
1238
  }
1234
- } }), u.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1235
- const r = me((h) => e.getAttribute(h));
1236
- r && (M.tabColor = r);
1237
- } }), u.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1238
- } }), u.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1239
- } }), u.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1240
- } }), u.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1241
- } }), u.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1242
- } }), u.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1239
+ } }), d.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1240
+ const r = me((u) => e.getAttribute(u));
1241
+ r && ($.tabColor = r);
1242
+ } }), d.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1243
+ } }), d.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1244
+ } }), d.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1245
+ } }), d.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1246
+ } }), d.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1247
+ } }), d.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1243
1248
  e.setSource([]);
1244
- } }), u.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1249
+ } }), d.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1245
1250
  const r = e.getAttribute("ref");
1246
1251
  e.setSource(r);
1247
- } }), u.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1252
+ } }), d.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1248
1253
  e.setSource([]);
1249
- } }), u.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1250
- const r = e.getAttribute("r:id"), h = e.getAttribute("ref");
1251
- if (!h) return void console.warn("No ref found for hyperlink");
1252
- e.setKey(h);
1253
- let m = r ? _(r) : "";
1254
+ } }), d.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1255
+ const r = e.getAttribute("r:id"), u = e.getAttribute("ref");
1256
+ if (!u) return void console.warn("No ref found for hyperlink");
1257
+ e.setKey(u);
1258
+ let m = r ? O(r) : "";
1254
1259
  if (typeof m != "string") return void console.warn("Invalid address ", m);
1255
- const $ = e.getAttribute("location");
1260
+ const M = e.getAttribute("location");
1256
1261
  m.endsWith("\\") && (m = m.substring(0, m.length - 1));
1257
1262
  const Lt = e.getAttribute("location");
1258
- if (Lt && ($ && $ !== Lt && console.warn("display and location are different", $, Lt), m += "#" + Lt), !m) return void console.warn("No address found for hyperlink. r:id", r);
1263
+ if (Lt && (M && M !== Lt && console.warn("display and location are different", M, Lt), m += "#" + Lt), !m) return void console.warn("No address found for hyperlink. r:id", r);
1259
1264
  let se;
1260
1265
  const he = e.getAttribute("tooltip");
1261
- se = he ? { address: m, tooltip: he } : m, e.setSource({ r: h, v: se });
1262
- } }), u.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1266
+ se = he ? { address: m, tooltip: he } : m, e.setSource({ r: u, v: se });
1267
+ } }), d.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1263
1268
  const r = e.getAttribute("r:id");
1264
1269
  if (!r) return;
1265
- const h = _(r);
1266
- h ? e.setSource(h.movables) : console.warn("no drawing found for rId", r);
1267
- } }), u.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1270
+ const u = O(r);
1271
+ u ? e.setSource(u.movables) : console.warn("no drawing found for rId", r);
1272
+ } }), d.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1268
1273
  e.setSource([]);
1269
- } }), u.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1274
+ } }), d.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1270
1275
  const r = e.getAttribute("r:id");
1271
1276
  if (!r) return;
1272
- const h = _(r);
1273
- h ? e.setSource(h) : console.warn("no table found for rId", r);
1274
- } }), u.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1275
- } }), u.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1277
+ const u = O(r);
1278
+ u ? e.setSource(u) : console.warn("no table found for rId", r);
1279
+ } }), d.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1280
+ } }), d.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1276
1281
  let r = !1;
1277
- if (e.hasAttribute("sheet") && A(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1278
- const h = ($) => $ === !0 || $ === "1" || $ === "on" || $ === "true" || $ === !1 || $ === "0" || $ === "off" || $ === "false" || null;
1279
- e.copyTo("autoFilter", h), e.copyTo("deleteColumns", h), e.copyTo("formatCells", h), e.copyTo("formatColumns", h), e.copyTo("formatRows", h), e.copyTo("insertColumns", h), e.copyTo("insertHyperlinks", h), e.copyTo("insertRows", h), e.copyTo("objects", h), e.copyTo("pivotTables", h), e.copyTo("scenarios", h), e.copyTo("selectUnlockedCells", h), e.copyTo("selectUnlockedCells", h), e.copyTo("sort", h);
1282
+ if (e.hasAttribute("sheet") && E(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1283
+ const u = (M) => M === !0 || M === "1" || M === "on" || M === "true" || M === !1 || M === "0" || M === "off" || M === "false" || null;
1284
+ e.copyTo("autoFilter", u), e.copyTo("deleteColumns", u), e.copyTo("formatCells", u), e.copyTo("formatColumns", u), e.copyTo("formatRows", u), e.copyTo("insertColumns", u), e.copyTo("insertHyperlinks", u), e.copyTo("insertRows", u), e.copyTo("objects", u), e.copyTo("pivotTables", u), e.copyTo("scenarios", u), e.copyTo("selectUnlockedCells", u), e.copyTo("selectUnlockedCells", u), e.copyTo("sort", u);
1280
1285
  const m = {};
1281
- e.copyToObject(m, "hash", P, "hashValue"), e.copyToObject(m, "algorithm", P, "algorithmName"), e.copyToObject(m, "salt", P, "saltValue"), e.copyToObject(m, "spinCount", V), Object.keys(m).length > 0 && (e.getSource().password = m);
1282
- } }), u.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1286
+ e.copyToObject(m, "hash", I, "hashValue"), e.copyToObject(m, "algorithm", I, "algorithmName"), e.copyToObject(m, "salt", I, "saltValue"), e.copyToObject(m, "spinCount", L), Object.keys(m).length > 0 && (e.getSource().password = m);
1287
+ } }), d.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1283
1288
  e.setSource({});
1284
- } }), u.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1289
+ } }), d.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1285
1290
  const r = e.getAttribute("sqref");
1286
1291
  e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1287
- const h = {};
1288
- e.copyToObject(h, "hash", P, "hashValue"), e.copyToObject(h, "algorithm", P, "algorithmName"), e.copyToObject(h, "salt", P, "saltValue"), e.copyToObject(h, "spinCount", V), Object.keys(h).length > 0 && (e.getSource().password = h);
1289
- } }), u.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1290
- e.copyToObject(M, "defaultColSize", xt, "defaultColWidth"), e.copyToObject(M, "outlineLevelCol", V, "outlineLevelCol");
1292
+ const u = {};
1293
+ e.copyToObject(u, "hash", I, "hashValue"), e.copyToObject(u, "algorithm", I, "algorithmName"), e.copyToObject(u, "salt", I, "saltValue"), e.copyToObject(u, "spinCount", L), Object.keys(u).length > 0 && (e.getSource().password = u);
1294
+ } }), d.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1295
+ e.copyToObject($, "defaultColSize", wt, "defaultColWidth"), e.copyToObject($, "outlineLevelCol", L, "outlineLevelCol");
1291
1296
  const r = e.getAttribute("customHeight");
1292
- r !== "1" && r !== "true" || e.copyToObject(M, "defaultRowSize", xt, "defaultRowHeight"), e.copyToObject(M, "outlineLevelRow", V, "outlineLevelRow");
1293
- } }), u.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1297
+ r !== "1" && r !== "true" || e.copyToObject($, "defaultRowSize", wt, "defaultRowHeight"), e.copyToObject($, "outlineLevelRow", L, "outlineLevelRow");
1298
+ } }), d.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1294
1299
  e.setSource([]);
1295
- } }), u.registerVisitor({ from: "col", to: [], openTag: (e) => {
1296
- e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", xt, "width"), e.copyTo("cs", A, "customWidth"), e.copyTo("h", A, "hidden"), e.copyTo("l", V, "outlineLevel"), e.copyTo("s", V, "style");
1297
- } }), u.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1300
+ } }), d.registerVisitor({ from: "col", to: [], openTag: (e) => {
1301
+ e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", wt, "width"), e.copyTo("csz", E, "customWidth"), e.copyTo("h", E, "hidden"), e.copyTo("l", L, "outlineLevel"), e.copyTo("s", L, "style");
1302
+ } }), d.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1298
1303
  e.warn("'OLE Objects' are not supported.");
1299
1304
  } });
1300
1305
  let Qt = null;
@@ -1303,166 +1308,166 @@ const ts = (i, t, s) => {
1303
1308
  }, onText: (e) => {
1304
1309
  Qt += e;
1305
1310
  }, onEnd: () => {
1306
- const e = Gt(Qt);
1311
+ const e = gt(Qt);
1307
1312
  return Qt = null, e;
1308
1313
  }, onError: (e) => {
1309
1314
  } };
1310
- return es(at, M, u.createEventHandler(M, () => {
1315
+ return es(lt, $, d.createEventHandler($, () => {
1311
1316
  }, st), st, (e) => {
1312
- y += e, k?.(y);
1317
+ T += e, A?.(T);
1313
1318
  }, ve, Vt);
1314
- })(H, (M, _ = !1) => ft(M, g, _) ?? null, Ct, E, 0, (M, _) => {
1315
- _ = _ ? `${_} (${g})` : g, n.push([M, _]);
1316
- }, 0, vt), J = fe(g, z), dt = await (async (M, _ = 8388608) => {
1319
+ })(b, ($, O = !1) => Tt($, h, O) ?? null, kt, D, 0, ($, O) => {
1320
+ O = O ? `${O} (${h})` : h, n.push([$, O]);
1321
+ }, 0, St), tt = fe(h, q), Z = await (async ($, O = 8388608) => {
1317
1322
  await (async () => {
1318
1323
  if (typeof ReadableStream > "u") if (typeof window > "u") {
1319
- const { ReadableStream: st } = await import("./CyAL0Nk6PrxryVRw.mjs");
1324
+ const { ReadableStream: st } = await import("./AbjhUeTNR-U8qKZd.mjs");
1320
1325
  globalThis.ReadableStream = st;
1321
1326
  } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1322
1327
  })();
1323
- const Gt = new TextDecoder("utf-8");
1328
+ const gt = new TextDecoder("utf-8");
1324
1329
  let et = 0;
1325
- const nt = M instanceof Uint8Array ? M : new Uint8Array(M);
1330
+ const at = $ instanceof Uint8Array ? $ : new Uint8Array($);
1326
1331
  return new ReadableStream({ pull(st) {
1327
- if (et >= nt.byteLength) return void st.close();
1328
- const Zt = nt.subarray(et, Math.min(et + _, nt.byteLength)), Vt = Gt.decode(Zt, { stream: et + _ < nt.byteLength });
1332
+ if (et >= at.byteLength) return void st.close();
1333
+ const Zt = at.subarray(et, Math.min(et + O, at.byteLength)), Vt = gt.decode(Zt, { stream: et + O < at.byteLength });
1329
1334
  st.enqueue(Vt), et += Zt.length;
1330
1335
  } }).getReader();
1331
- })(J);
1336
+ })(tt);
1332
1337
  try {
1333
- await le.parseStream(dt, tt, { xmlns: !1 });
1334
- } catch (M) {
1335
- throw console.warn(`Error parsing sheet: '${g}'`, M), new Error(`Error parsing sheet: '${g}'`, { cause: M });
1338
+ await le.parseStream(Z, H, { xmlns: !1 });
1339
+ } catch ($) {
1340
+ throw console.warn(`Error parsing sheet: '${h}'`, $), new Error(`Error parsing sheet: '${h}'`, { cause: $ });
1336
1341
  }
1337
- const kt = rt(g, T);
1338
- let K, Pt = /* @__PURE__ */ new Map();
1339
- if (kt) {
1340
- const M = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1341
- let _;
1342
- kt.forEach((et, nt) => {
1343
- et.type === M && (K = ft(nt, g, !1, T)?.comments, K && K.forEach((st) => {
1344
- Pt.set(st.id, st);
1342
+ const ut = rt(h, G);
1343
+ let Q, Ut = /* @__PURE__ */ new Map();
1344
+ if (ut) {
1345
+ const $ = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1346
+ let O;
1347
+ ut.forEach((et, at) => {
1348
+ et.type === $ && (Q = Tt(at, h, !1, G)?.comments, Q && Q.forEach((st) => {
1349
+ Ut.set(st.id, st);
1345
1350
  }));
1346
1351
  });
1347
- const Gt = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1348
- if (kt.forEach((et, nt) => {
1349
- et.type === Gt && (_ = ft(nt, g, !1, T));
1350
- }), _ || K) {
1351
- const et = K ?? [], nt = _?.comments;
1352
- if (nt) {
1353
- const st = _?.authors, Zt = nt.length;
1352
+ const gt = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1353
+ if (ut.forEach((et, at) => {
1354
+ et.type === gt && (O = Tt(at, h, !1, G));
1355
+ }), O || Q) {
1356
+ const et = Q ?? [], at = O?.comments;
1357
+ if (at) {
1358
+ const st = O?.authors, Zt = at.length;
1354
1359
  for (let Vt = 0; Vt < Zt; Vt++) {
1355
- const u = nt[Vt];
1356
- if (!u) continue;
1357
- let at = st && u.authorId !== void 0 ? st[u.authorId] : u.authorId;
1358
- if (at && at.startsWith("tc=") && (at = Ke(at.substring(3)), Pt.has(at))) continue;
1359
- let F = null;
1360
- at && (F = ct.get(at)), F || (F = Tt.get(at)), F || (F = { id: re.uuidV4(), displayName: at }, Tt.set(F.displayName, F), ct.set(F.id, F)), at = F?.id ?? null;
1361
- const ee = { id: re.uuidV4(), personId: at, ref: u.ref, done: !1, asNote: !0, content: u.content };
1360
+ const d = at[Vt];
1361
+ if (!d) continue;
1362
+ let lt = st && d.authorId !== void 0 ? st[d.authorId] : d.authorId;
1363
+ if (lt && lt.startsWith("tc=") && (lt = Ke(lt.substring(3)), Ut.has(lt))) continue;
1364
+ let X = null;
1365
+ lt && (X = ht.get(lt)), X || (X = At.get(lt)), X || (X = { id: re.uuidV4(), displayName: lt }, At.set(X.displayName, X), ht.set(X.id, X)), lt = X?.id ?? null;
1366
+ const ee = { id: re.uuidV4(), personId: lt, ref: d.ref, done: !1, asNote: !0, content: d.content };
1362
1367
  et.push(ee);
1363
1368
  }
1364
1369
  }
1365
- H.comments = et;
1370
+ b.comments = et;
1366
1371
  }
1367
1372
  }
1368
1373
  };
1369
- W.push(X());
1370
- } else U = d ? fe(g, z, (H) => {
1371
- const X = q.add({ buffer: H });
1372
- return X.addReference(Dt), zt.add(X), ot.toResourceId(X);
1373
- }, lt) : ce(g, z, D, w, lt);
1374
- return U;
1375
- }, lt = { paramMap: vt, getRefs: rt, getRef: ft, parsedRefs: gt, addPerson: (v) => null }, Et = [];
1374
+ B.push(w());
1375
+ } else j = z ? fe(h, q, (b) => {
1376
+ const w = _.add({ buffer: b });
1377
+ return w.addReference(Et), zt.add(w), ot.toResourceId(w);
1378
+ }, ct) : ce(h, q, P, f, ct);
1379
+ return j;
1380
+ }, ct = { paramMap: St, getRefs: rt, getRef: Tt, parsedRefs: mt, addPerson: (x) => null }, Pt = [];
1376
1381
  let jt = 0;
1377
1382
  l.Strings && (jt = parseInt(l.Strings.Unique ?? l.Strings.length ?? 0));
1378
- const ht = l.Strings ?? [];
1379
- for (let v = 0; v < jt; v++) Et.push(ht[v]?.t ?? "");
1380
- const St = /* @__PURE__ */ new Map();
1381
- let mt = jt;
1382
- const Ct = (v) => {
1383
- const j = St.get(v);
1384
- if (j !== void 0) return j;
1385
- const d = mt;
1386
- return St.set(v, mt++), Et.push(v), d;
1387
- }, ct = (Bt("richstructure", l, D, w, lt), Bt("richdata", l, D, w, lt), /* @__PURE__ */ new Map()), Tt = /* @__PURE__ */ new Map(), yt = Bt("people", l, D, w);
1388
- let Z = null;
1389
- if (yt.size > 0 && (Z = yt.entries().next()?.value?.[1]?.persons, Z)) {
1390
- const v = Z.length;
1391
- for (let j = 0; j < v; j++) {
1392
- const d = Z[j];
1393
- ct.set(d.id, d), ct.set(d.displayName, d);
1383
+ const dt = l.Strings ?? [];
1384
+ for (let x = 0; x < jt; x++) Pt.push(dt[x]?.t ?? "");
1385
+ const Ct = /* @__PURE__ */ new Map();
1386
+ let yt = jt;
1387
+ const kt = (x) => {
1388
+ const W = Ct.get(x);
1389
+ if (W !== void 0) return W;
1390
+ const z = yt;
1391
+ return Ct.set(x, yt++), Pt.push(x), z;
1392
+ }, ht = (Bt("richstructure", l, P, f, ct), Bt("richdata", l, P, f, ct), /* @__PURE__ */ new Map()), At = /* @__PURE__ */ new Map(), bt = Bt("people", l, P, f);
1393
+ let J = null;
1394
+ if (bt.size > 0 && (J = bt.entries().next()?.value?.[1]?.persons, J)) {
1395
+ const x = J.length;
1396
+ for (let W = 0; W < x; W++) {
1397
+ const z = J[W];
1398
+ ht.set(z.id, z), ht.set(z.displayName, z);
1394
1399
  }
1395
1400
  }
1396
- const Ht = Bt("themes", l, D, w, lt);
1397
- let Ut = null;
1401
+ const Ht = Bt("themes", l, P, f, ct);
1402
+ let Gt = null;
1398
1403
  if (Ht && Ht.entries) {
1399
- let v = Ht.entries().next();
1400
- v?.value?.[1] && (Ut = v.value[1]);
1404
+ let x = Ht.entries().next();
1405
+ x?.value?.[1] && (Gt = x.value[1]);
1401
1406
  }
1402
- const Kt = new Ae(Ut);
1403
- let It = Bt("styles", l, D, w, lt).entries().next()?.value[1];
1407
+ const Kt = new Ae(Gt);
1408
+ let It = Bt("styles", l, P, f, ct).entries().next()?.value[1];
1404
1409
  It && (It = JSON.parse(De(It)));
1405
- const Yt = Bt("workbooks", l, D, w, lt);
1406
- await Promise.all(W);
1410
+ const Yt = Bt("workbooks", l, P, f, ct);
1411
+ await Promise.all(B);
1407
1412
  const Xt = { ...Yt.entries().next().value[1], styles: It, theme: Kt.toJSON() };
1408
- Et.length > 0 && (Xt.strings = Et), Z && Z.length > 0 && (Xt.people = Z);
1409
- const te = { ...o, resources: q, json: Xt }, ut = new Ee(te);
1410
- if (zt.forEach((v) => {
1411
- v.deleteReference(Dt);
1413
+ Pt.length > 0 && (Xt.strings = Pt), J && J.length > 0 && (Xt.people = J);
1414
+ const te = { ...o, resources: _, json: Xt }, pt = new Ee(te);
1415
+ if (zt.forEach((x) => {
1416
+ x.deleteReference(Et);
1412
1417
  }), ot.endPersist(), n.length) {
1413
- const v = c?.onWarning;
1414
- if (v) for (const j of n) {
1415
- const [d, T] = j;
1416
- v(d, T);
1418
+ const x = c?.onWarning;
1419
+ if (x) for (const W of n) {
1420
+ const [z, G] = W;
1421
+ x(z, G);
1417
1422
  }
1418
1423
  }
1419
- return c?.onComplete?.(y), ut;
1424
+ return c?.onComplete?.(T), pt;
1420
1425
  } catch (l) {
1421
- let w = "Unable to parse XLSX.";
1422
- throw l instanceof Ie && (w = "Unable to open XLSX. There are too many rows or columns."), new Error(w, { cause: l });
1426
+ let f = "Unable to parse XLSX.";
1427
+ throw l instanceof Ie && (f = "Unable to open XLSX. There are too many rows or columns."), new Error(f, { cause: l });
1423
1428
  }
1424
1429
  }, toBufferXLSX: async (i, t) => {
1425
- const s = await import("./CO0-isMoTEJCBD3A.mjs"), o = await i.toJSON(!0), a = s.utils.book_new();
1430
+ const s = await import("./BvIcikdTDlEgEQ6f.mjs"), o = await i.toJSON(!0), a = s.utils.book_new();
1426
1431
  for (let n = 0; n < o.sheets.length; n++) {
1427
- const c = o.sheets[n], p = s.utils.json_to_sheet([{}]);
1428
- s.utils.book_append_sheet(a, p, c.name);
1429
- const k = c.sheet, y = i.getSheetAt(n), S = y.getUsedRange();
1430
- if (S ? (p["!ref"] = S.getA1(), S.forEach((C, b) => {
1431
- const O = { t: "z" }, I = b.getCell().getStyle();
1432
- if (!I.isNormal()) {
1433
- let x = I.getNumberFormat();
1434
- x !== Nt.Type.General && (x === Nt.Type.ShortDate ? x = "m/d/yyyy" : x === Nt.Type.MediumDate ? x = "d-mmm-yy" : x === Nt.Type.LongDate ? x = "[$-x-sysdate]dddd, mmmm dd, yyyy" : x === Nt.Type.ShortTime ? x = "h:mm" : x === Nt.Type.MediumTime ? x = "h:mm AM/PM" : x === Nt.Type.LongTime && (x = "h:mm:ss AM/PM"), O.z = x);
1432
+ const c = o.sheets[n], g = s.utils.json_to_sheet([{}]);
1433
+ s.utils.book_append_sheet(a, g, c.name);
1434
+ const A = c.sheet, T = i.getSheetAt(n), v = T.getUsedRange();
1435
+ if (v ? (g["!ref"] = v.getA1(), v.forEach((S, y) => {
1436
+ const V = { t: "z" }, R = y.getCell().getStyle();
1437
+ if (!R.isNormal()) {
1438
+ let k = R.getNumberFormat();
1439
+ k !== Nt.Type.General && (k === Nt.Type.ShortDate ? k = "m/d/yyyy" : k === Nt.Type.MediumDate ? k = "d-mmm-yy" : k === Nt.Type.LongDate ? k = "[$-x-sysdate]dddd, mmmm dd, yyyy" : k === Nt.Type.ShortTime ? k = "h:mm" : k === Nt.Type.MediumTime ? k = "h:mm AM/PM" : k === Nt.Type.LongTime && (k = "h:mm:ss AM/PM"), V.z = k);
1435
1440
  }
1436
- if (C !== null) switch (b.getType()) {
1441
+ if (S !== null) switch (y.getType()) {
1437
1442
  case Mt.Number:
1438
- O.t = "n", O.v = C;
1443
+ V.t = "n", V.v = S;
1439
1444
  break;
1440
1445
  case Mt.String:
1441
- O.t = "s", O.v = C;
1446
+ V.t = "s", V.v = S;
1442
1447
  break;
1443
1448
  case Mt.Boolean:
1444
- O.t = "b", O.v = C;
1449
+ V.t = "b", V.v = S;
1445
1450
  break;
1446
1451
  case Mt.Error:
1447
- O.t = "e", O.v = C.toString();
1452
+ V.t = "e", V.v = S.toString();
1448
1453
  case Mt.RichData:
1449
1454
  }
1450
- p[b.getA1()] = O;
1451
- })) : p["!ref"] = "A1:A1", k.merges?.length > 0) {
1452
- const C = [];
1453
- p["!merges"] = C;
1454
- for (let b = 0; b < k.merges.length; b++) C.push(s.utils.decode_range(k.merges[b]));
1455
+ g[y.getA1()] = V;
1456
+ })) : g["!ref"] = "A1:A1", A.merges?.length > 0) {
1457
+ const S = [];
1458
+ g["!merges"] = S;
1459
+ for (let y = 0; y < A.merges.length; y++) S.push(s.utils.decode_range(A.merges[y]));
1455
1460
  }
1456
- if (k.cols?.length > 0) {
1457
- const C = [];
1458
- p["!cols"] = C;
1459
- const b = k.cols, O = { width: k.defaultColSize ?? y.getColumnWidthAsFontUnit(y.getColumnHeaders().getDefaultSize()) };
1460
- for (let I = 0; I < b.length; I++) {
1461
- const x = b[I];
1462
- for (let l = C.length; l <= x.min - 1; l++) C.push(O);
1463
- const f = {};
1464
- x.sz !== void 0 && (f.width = x.sz), x.h !== void 0 && (f.hidden = x.h), x.l !== void 0 && (f.level = x.l);
1465
- for (let l = x.min; l <= x.max; l++) C.push(f);
1461
+ if (A.cols?.length > 0) {
1462
+ const S = [];
1463
+ g["!cols"] = S;
1464
+ const y = A.cols, V = { width: A.defaultColSize ?? T.getColumnWidthAsFontUnit(T.getColumnHeaders().getDefaultSize()) }, R = y.length;
1465
+ for (let k = 0; k < R; k++) {
1466
+ const p = y[k];
1467
+ for (let f = S.length; f <= p.min - 1; f++) S.push(V);
1468
+ const l = {};
1469
+ p.sz !== void 0 && (l.width = p.sz), p.h !== void 0 && (l.hidden = p.h), p.l !== void 0 && (l.level = p.l);
1470
+ for (let f = p.min; f <= p.max; f++) S.push(l);
1466
1471
  }
1467
1472
  }
1468
1473
  }