@sheetxl/studio-vanilla 0.7.6 → 0.7.7
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.
- package/LICENSE.md +1 -1
- package/browser/cjs/{BCp8EKu-fnWiHBVn.cjs → 1Dnt0ANTHdjxETSZ.cjs} +1 -1
- package/browser/cjs/{CwW8vJh2IPnMize_.cjs → AFGPXXJy4XT9a4sl.cjs} +1 -1
- package/browser/cjs/{BYG2IVD2Gqh-q7h2.cjs → B-DRcuaOZUOS5AMU.cjs} +1 -1
- package/browser/cjs/B7BbvcfK1qDzaFkU.cjs +6 -0
- package/browser/cjs/{vboT_zkA4ebu7qb6.cjs → B8TAKROBRJF-L83B.cjs} +2 -2
- package/browser/cjs/{IvtzDl_wnrZdNyGU.cjs → BBd3KPjI9z4IEpfd.cjs} +2 -2
- package/browser/cjs/{CXoepqRJNlPbIb0L.cjs → BF7e6idd5EAbSe-5.cjs} +2 -2
- package/browser/cjs/{DzZiFk2M690x2Na1.cjs → BFZTyYmr0ydpu1Ri.cjs} +2 -2
- package/browser/cjs/{BXZgVqL7XkYsoi33.cjs → BFibWMggm34JCRTQ.cjs} +2 -2
- package/browser/cjs/{xadQkBVply50Pfsy.cjs → BIZ9GLrC0LfBPG_l.cjs} +2 -2
- package/browser/cjs/{DVN-SKDgVS0saY0w.cjs → BJRQKCTg7qCzDnCi.cjs} +1 -1
- package/browser/cjs/{CUpgKTIV0yg_QYHZ.cjs → BKYGUco6ubqF6p08.cjs} +3 -3
- package/browser/cjs/{CR_3znwknfRYUQjJ.cjs → BLBDkH1kQ7yBroDQ.cjs} +2 -2
- package/browser/cjs/{Cr07exWoIE8PUEEj.cjs → BSdEA609H-d2dczO.cjs} +2 -2
- package/browser/cjs/{CbvWAZQhSUzqCg17.cjs → Bm3QhiCF0C1LZr4q.cjs} +1 -1
- package/browser/cjs/BneuIxiCQWMGZKpu.cjs +6 -0
- package/browser/cjs/{DlekR-mM3nwaCQEe.cjs → BoYIRg5QNVKrlO1o.cjs} +1 -1
- package/browser/cjs/{h58md3Y3c_TrQFVs.cjs → BpZPEUJROF3R8X8o.cjs} +1 -1
- package/browser/cjs/{BzgLQhJ2sqEZCsrb.cjs → Bt7_s2Gsv6kQuZ8n.cjs} +1 -1
- package/browser/cjs/{DSJLyqI4SU0MEH4t.cjs → By_M12tC09G2LrpY.cjs} +1 -1
- package/browser/cjs/{D10iC-iUoXqxQ9CM.cjs → C4pHJGPOoYRTdbji.cjs} +1 -1
- package/browser/cjs/{n8FQtLqAFmSMvjE4.cjs → C8FAAtGuznwvkc3K.cjs} +1 -1
- package/browser/cjs/{DzhZxaJEM_tDkpp3.cjs → CBX3gO9WQIHQl8He.cjs} +1 -1
- package/browser/cjs/CDQWmVCT_C4kt4z4.cjs +327 -0
- package/browser/cjs/CDbUGxSLtIqQcFJA.cjs +6 -0
- package/browser/cjs/{BExG5buAzGxZlmJw.cjs → CGbGQK87LoR7syZ2.cjs} +5 -5
- package/browser/cjs/CMH9g70xbNsRmba4.cjs +6 -0
- package/browser/cjs/{BtkQmDedsmbw95Pc.cjs → CRZbe0vrznX0gec4.cjs} +2 -2
- package/browser/cjs/{CSyKzMKdjLhLe40I.cjs → CU9eF67hofMTnlvg.cjs} +1 -1
- package/browser/cjs/{DNQbFZZOmDP_rJEI.cjs → CVJNmAx7_1hAsGM-.cjs} +1 -1
- package/browser/cjs/{DxV-3v_QDuTNlIGN.cjs → CVhKqGf9u7VY_SdR.cjs} +1 -1
- package/browser/cjs/{BFooBtpsd0cC8qDG.cjs → CbuHVEgHJ-PN2nTC.cjs} +1 -1
- package/browser/cjs/{CA1KKidNd07a0DJH.cjs → CbzvhHU6HeixD_I0.cjs} +5 -5
- package/browser/cjs/{DbMWszNm4m-5OHJM.cjs → CzUFi87fwOEv2c_X.cjs} +1 -1
- package/browser/cjs/{CcpKk964zuH4DpgM.cjs → CzmekfFZOipvm9p8.cjs} +19 -19
- package/browser/cjs/{FNnpnCx0BZnP5O_r.cjs → D0hBhQDMuGpldHoB.cjs} +1 -1
- package/browser/cjs/{DQmdNFzWR-h9wYSi.cjs → D1NKZY8fEGk-xu0l.cjs} +1 -1
- package/browser/cjs/{DT7rBrGhpA-qvk1s.cjs → D2tXQhW7Dvnm5yAX.cjs} +3 -3
- package/browser/cjs/{Ck_CXORzAURg_vBX.cjs → D9q3XIB_Yfv-93Xd.cjs} +2 -2
- package/browser/cjs/{BgE8ast3JVnmh0C3.cjs → DDoFIZezJ5QxEijC.cjs} +8 -8
- package/browser/cjs/{Bdri1EOZVClr_s5d.cjs → DQPqvdF3RMR6ocN9.cjs} +3 -3
- package/browser/cjs/{BVMvTKkVRG3ARblV.cjs → DR1070UPEnh9vSgI.cjs} +1 -1
- package/browser/cjs/{BDDGDj16_JM9JSNw.cjs → DUGnz-6DG2d64bPN.cjs} +1 -1
- package/browser/cjs/{BkGg_LJgjZj1NXHZ.cjs → DYEwCN0j9-ut9msc.cjs} +1 -1
- package/browser/cjs/{BuBu8hoBcG1L5gWU.cjs → DhPAcnVndNoNTyEG.cjs} +1 -1
- package/browser/cjs/{CvfHD9dwIrbEr7hM.cjs → DkLx6pMV8ccL8z_3.cjs} +2 -2
- package/browser/cjs/{L04N6OHKBL9HtaR6.cjs → Du7lT1PTtIz-NYNf.cjs} +1 -1
- package/browser/cjs/{D3LgtUzW8PLgmpsZ.cjs → EVU5UM5IoTkYikI3.cjs} +1 -1
- package/browser/cjs/{CkA2FSMaiJvL4xnW.cjs → PbtPWuRp8TEGAKWd.cjs} +1 -1
- package/browser/cjs/{tRdYhB45JaC-A2GK.cjs → TIGLxnYSTlonzaOE.cjs} +1 -1
- package/browser/cjs/ULlk5i1EUx5ksTqm.cjs +32 -0
- package/browser/cjs/{BVjaiAwC49wwDMDI.cjs → Va0pmZgEdlde9hBK.cjs} +21 -21
- package/browser/cjs/{C4IJ8og_7pYXOaaa.cjs → Yf7jJGAVX09ZsdB5.cjs} +1 -1
- package/browser/cjs/{ogfsvA_pd4h9pATi.cjs → dwwTAvxsASYxLV2-.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Bk3M_kByuRSgE2I7.cjs → tp3T4Y4k6rqq119C.cjs} +1 -1
- package/browser/cjs/{DxeyIaJ9kTqsgZRQ.cjs → tru9ZJTmej20u6bS.cjs} +1 -1
- package/browser/cjs/{KsrjGYui6AhDRqb2.cjs → y7Bomd49fYwjmegW.cjs} +1 -1
- package/browser/esm/{T7q0269_QPB8lCOv.mjs → -dzuo_Wj7VBnGDUj.mjs} +1 -1
- package/{cdn/assets/DZUm1u-H4bx3eAew.js → browser/esm/B9WgUACq7BGa52o0.mjs} +1 -1
- package/browser/esm/{BACzy7WLUtqbx_4H.mjs → BD8BczjPJG9W-Wwx.mjs} +1 -1
- package/browser/esm/{D8NWmHOvxbnTKXqJ.mjs → BFkCRejnNGToEAbq.mjs} +7 -7
- package/browser/esm/{BNtLK4CbKRlPzlKT.mjs → BRK9zryqPcYCdqaH.mjs} +1 -1
- package/{cdn/assets/BQEH9vzW6MLoEQpS.js → browser/esm/BV7PHP-zb2ezFZwN.mjs} +1 -1
- package/browser/esm/Bf7V3mrqMy2JcLj6.mjs +149 -0
- package/browser/esm/{DwDbdg2MYgA3Tnfe.mjs → Bl8Mbds4_g4irYW4.mjs} +2 -2
- package/{cdn/assets/BoXZxgubGIYbaajd.js → browser/esm/C2B6ZZypFHHcBtgN.mjs} +1 -1
- package/browser/esm/C3WMLOorMvTnqgVk.mjs +47 -0
- package/browser/esm/{BrFqlosk1B5lJ1wT.mjs → C5zdw4KK0DA7Xxpv.mjs} +5 -5
- package/{cdn/assets/zd-Kc5cLey9IZ283.js → browser/esm/CAWVgaadqOqZLqMd.mjs} +1 -1
- package/{cdn/assets/B-ODKhdttBS8vm_N.js → browser/esm/CDd7H-0sNO3a6_HD.mjs} +1 -1
- package/{cdn/assets/DVTFDA3Ssz9_4NcI.js → browser/esm/CIePuRxeXL-pCqr6.mjs} +1 -1
- package/{cdn/assets/DDCRVmkZtcoY5u7P.js → browser/esm/CIgIp7emlh-h5Tkp.mjs} +1 -1
- package/{cdn/assets/Bab--HPvvqz_dgfE.js → browser/esm/CLZ1oiAIiDhUh4ww.mjs} +1 -1
- package/browser/esm/CMTee4KqDOZMxil0.mjs +44 -0
- package/browser/esm/{DMKVMuMh4XJ4LGTp.mjs → COLScMrSH92V1QBs.mjs} +1 -1
- package/{cdn/assets/Gye5i_y6LTkSeZWV.js → browser/esm/CSjCyt7aceQtuuQH.mjs} +1 -1
- package/browser/esm/{95UgFJTU5KLLCYf1.mjs → CWFbko7h7uYHcSb4.mjs} +1 -1
- package/browser/esm/{BgY1Ko1OPI79IwRW.mjs → CX2j3a6eI-W-vHAV.mjs} +21 -21
- package/browser/esm/{D3h1wZvV9AHRqaZq.mjs → CX8Vw2K-gX-Geldr.mjs} +143 -143
- package/{cdn/assets/DnoVwExJraUmPO4h.js → browser/esm/Cb2h80Rdfkc2yBwD.mjs} +2 -2
- package/{cdn/assets/CIyDrXxc2D-28-mW.js → browser/esm/CfIlb4oS-hEuUXmr.mjs} +1 -1
- package/browser/esm/{DElt69us9iAn7_Ww.mjs → Cgu3L7rWlUfKbFNC.mjs} +2 -2
- package/browser/esm/{D2h5jM12-ZC4VX_T.mjs → Cljc33Z0WZxiQD48.mjs} +3 -3
- package/{cdn/assets/Dfx2_yQe2iRmxaeg.js → browser/esm/Ct4D5jD2LgwWNypV.mjs} +1 -1
- package/{cdn/assets/C7IRTn7ZcC4A4N9E.js → browser/esm/Cwm7vw41FBiyBap8.mjs} +1 -1
- package/browser/esm/{ftYo_nnqtr7QkIOP.mjs → Cyefe5RSNySP6tcT.mjs} +2 -2
- package/browser/esm/{B2xZE9bUnQFNq8II.mjs → D0bkJedCy5YwEz99.mjs} +1 -1
- package/browser/esm/{B_8aGF2Dt1micWZg.mjs → DC1hfAh_7PsrjS9S.mjs} +1 -1
- package/browser/esm/{BpD67geWfh3vSqJb.mjs → DDUE_Wib21ixQxd9.mjs} +1 -1
- package/browser/esm/{CGT3S9MzdRk9rFZa.mjs → DOpGO4l1g7gO5ekA.mjs} +77 -77
- package/{cdn/assets/D8xKI9bNALrDO0EI.js → browser/esm/DRwGtmg7N0TBtF7R.mjs} +1 -1
- package/{cdn/assets/CrM-2l9BMnS0Lkh1.js → browser/esm/DSGhERiou-5Ibeko.mjs} +1 -1
- package/browser/esm/{CE_I19FK1G8gpXuH.mjs → DTbZV7szPb-PidC9.mjs} +8 -8
- package/browser/esm/{B2zSi60WxtMoZe1R.mjs → DU3arW-SqDtRv3t4.mjs} +6 -6
- package/browser/esm/{pOUm75Y0UEeP9DxX.mjs → DViS2gssDOJR2t_d.mjs} +1 -1
- package/{cdn/assets/Cf3RGVsf9qqF9dVB.js → browser/esm/DXJ2nb7A-gJDYaOg.mjs} +1 -1
- package/browser/esm/{DWvwKL3aLkiqeSo1.mjs → DdzZuvu4slMZd3sW.mjs} +8 -8
- package/browser/esm/{BBklcrb4gMwawbW0.mjs → DpdapIkgiOkLU_jc.mjs} +2 -2
- package/{cdn/assets/CXwDT0Rc1CeP5C6C.js → browser/esm/Dv_qFZLVmZ4aVY0G.mjs} +1 -1
- package/browser/esm/{CdWkJs6rYnFmetuJ.mjs → F9Cwy_aefTGi6WoG.mjs} +1 -1
- package/browser/esm/{1oqbqwBb8fBG-SRu.mjs → HKjRvq9Afdm8X4IO.mjs} +1 -1
- package/browser/esm/{Yx74P2tuzTl_vWeR.mjs → IymOl6PCKM5cdD59.mjs} +19696 -19539
- package/browser/esm/JNG5rnbnm1mveXHl.mjs +48 -0
- package/browser/esm/{2Q2-3kHAmqNdLDwx.mjs → LmdWOZpWumKhbIeQ.mjs} +1 -1
- package/{cdn/assets/CNtcjn_Cn7cQOWP5.js → browser/esm/TRoNOaX9xm77vhNo.mjs} +1 -1
- package/browser/esm/bfKo7TSL68OC9OZ8.mjs +39 -0
- package/{cdn/assets/CQ7RZs6ggMhy9TKv.js → browser/esm/hWAXOspM00OjNXxf.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{ymbdHoeF6JmtSeHf.mjs → jHLE9-xV-wivIQzI.mjs} +1 -1
- package/browser/esm/{B_x9S07WXHgD87c0.mjs → k-WybkgL_HctOBZL.mjs} +4 -4
- package/{cdn/assets/DCyiJ8jlUG-B76Tb.js → browser/esm/kOyTOCy58irfQ9hf.mjs} +1 -1
- package/browser/esm/{B6jSw9o_80cFla40.mjs → pVwSjWKIVDRYwmKS.mjs} +9 -9
- package/browser/esm/{CuTudjzephfkt36F.mjs → pimj6QzQFEVJ2YR8.mjs} +5 -5
- package/browser/esm/{Cx11CBX88voKcCgb.mjs → qD_ZNq2dhIRKdKRj.mjs} +7 -7
- package/browser/esm/{yvf7TZWzRux6eb-r.mjs → w4rJuLfuST6h0X6K.mjs} +2 -2
- package/cdn/assets/{T7q0269_QPB8lCOv.js → -dzuo_Wj7VBnGDUj.js} +1 -1
- package/cdn/assets/{BH4LGqC8Z4Iqh7XS.js → 0kt2tL10VoH7eLWk.js} +2 -2
- package/{browser/esm/FMJGVl5BuwTspvXB.mjs → cdn/assets/B3XKN3j6OGaC2PeU.js} +2 -2
- package/cdn/assets/{BXs2QdxsuX2lw_x3.js → B6n-XFROq-mJr6X4.js} +147 -147
- package/{browser/esm/DZUm1u-H4bx3eAew.mjs → cdn/assets/B9WgUACq7BGa52o0.js} +1 -1
- package/cdn/assets/{Bqca9Nkofzm6UFZ1.js → BCO9ENV5uM-3cC6k.js} +19697 -19540
- package/cdn/assets/{BACzy7WLUtqbx_4H.js → BD8BczjPJG9W-Wwx.js} +1 -1
- package/{browser/esm/Cck1ZCX3140-xMNV.mjs → cdn/assets/BEtGGlmsA5Vu0tOe.js} +17 -15
- package/cdn/assets/{Dqv_r2crwVb5hDRt.js → BQQZnaZ5HH_q0teH.js} +2 -2
- package/cdn/assets/{8lSvXDLbx-eV1Nz0.js → BQWb7WJpQdUBKjqJ.js} +21 -21
- package/cdn/assets/{D6Bd-wh8DUctiTBq.js → BQ_uhzdW_ySk-rS3.js} +4 -4
- package/cdn/assets/{BNtLK4CbKRlPzlKT.js → BRK9zryqPcYCdqaH.js} +1 -1
- package/{browser/esm/BQEH9vzW6MLoEQpS.mjs → cdn/assets/BV7PHP-zb2ezFZwN.js} +1 -1
- package/cdn/assets/Bki_B5mRvivmATn8.js +151 -0
- package/cdn/assets/{DNDzb50fYztOU6sL.js → Bmaqrt1Afut_jxeE.js} +2 -2
- package/cdn/assets/{C2wV3vQ-5dEezy7R.js → BozBaszO14QWRzV5.js} +3 -3
- package/cdn/assets/BrLkQrjXFwMtmii1.js +41 -0
- package/{browser/esm/BoXZxgubGIYbaajd.mjs → cdn/assets/C2B6ZZypFHHcBtgN.js} +1 -1
- package/cdn/assets/{C75SpXwjYmdo6WC6.js → C6H7cXzfs7xQB4iW.js} +7 -7
- package/cdn/assets/{DZwStU2_wQO6T5Ug.js → C6vzdOHft3HZWuxy.js} +3 -3
- package/cdn/assets/{ij04ZtjSyJ1O2CRc.js → C9zuuQStgoOfugfQ.js} +2 -2
- package/{browser/esm/zd-Kc5cLey9IZ283.mjs → cdn/assets/CAWVgaadqOqZLqMd.js} +1 -1
- package/{browser/esm/B-ODKhdttBS8vm_N.mjs → cdn/assets/CDd7H-0sNO3a6_HD.js} +1 -1
- package/{browser/esm/DVTFDA3Ssz9_4NcI.mjs → cdn/assets/CIePuRxeXL-pCqr6.js} +1 -1
- package/{browser/esm/DDCRVmkZtcoY5u7P.mjs → cdn/assets/CIgIp7emlh-h5Tkp.js} +1 -1
- package/{browser/esm/Bab--HPvvqz_dgfE.mjs → cdn/assets/CLZ1oiAIiDhUh4ww.js} +1 -1
- package/cdn/assets/{BXHEwZhPbMaOdb_Z.js → CN-ih7whNYnQh8PD.js} +3 -3
- package/{browser/esm/Gye5i_y6LTkSeZWV.mjs → cdn/assets/CSjCyt7aceQtuuQH.js} +1 -1
- package/cdn/assets/{95UgFJTU5KLLCYf1.js → CWFbko7h7uYHcSb4.js} +1 -1
- package/cdn/assets/{-ZtRkphm8qlj8ebp.js → CYQrF5RfAVqg1i0t.js} +1 -1
- package/{browser/esm/CIyDrXxc2D-28-mW.mjs → cdn/assets/CfIlb4oS-hEuUXmr.js} +1 -1
- package/cdn/assets/{Cn0K1aSWZCVlK66V.js → CfodwjJ4We7P3FOq.js} +1 -1
- package/cdn/assets/{ByTOIrEYNeA_wpXy.js → CpiCssHUOXBUIN_K.js} +52 -52
- package/{browser/esm/Dfx2_yQe2iRmxaeg.mjs → cdn/assets/Ct4D5jD2LgwWNypV.js} +1 -1
- package/cdn/assets/{CnLv6xBX-8QXgr8C.js → CugoceVTjknLDPZs.js} +13 -13
- package/{browser/esm/C7IRTn7ZcC4A4N9E.mjs → cdn/assets/Cwm7vw41FBiyBap8.js} +1 -1
- package/cdn/assets/{B2xZE9bUnQFNq8II.js → D0bkJedCy5YwEz99.js} +1 -1
- package/cdn/assets/{BtXsNo8KL5XLE7xA.js → D3G0eWNgbOrHH0SS.js} +79 -79
- package/cdn/assets/{L4iwFaFUwrc5iENg.js → DBfMtT3sAy1ItCCQ.js} +3 -3
- package/cdn/assets/{B_8aGF2Dt1micWZg.js → DC1hfAh_7PsrjS9S.js} +1 -1
- package/cdn/assets/{BpD67geWfh3vSqJb.js → DDUE_Wib21ixQxd9.js} +1 -1
- package/cdn/assets/DNLAdV0FAEdHf40R.js +46 -0
- package/cdn/assets/{DVE11KnTbk8UCl2L.js → DRguekK_Q_Gd9dVv.js} +4 -4
- package/{browser/esm/D8xKI9bNALrDO0EI.mjs → cdn/assets/DRwGtmg7N0TBtF7R.js} +1 -1
- package/{browser/esm/CrM-2l9BMnS0Lkh1.mjs → cdn/assets/DSGhERiou-5Ibeko.js} +1 -1
- package/cdn/assets/{pOUm75Y0UEeP9DxX.js → DViS2gssDOJR2t_d.js} +1 -1
- package/{browser/esm/Cf3RGVsf9qqF9dVB.mjs → cdn/assets/DXJ2nb7A-gJDYaOg.js} +1 -1
- package/cdn/assets/{F9FRh_1TEIanjKfd.js → DfxyIgqC_EStNQyw.js} +18 -18
- package/cdn/assets/{C3urWNCGtWeKM42K.js → DkqE2-qY8H9T98WT.js} +4 -4
- package/cdn/assets/{5dKHsl0r2V-JmyNP.js → DsmpINqpSKnRqkx4.js} +2 -2
- package/{browser/esm/CXwDT0Rc1CeP5C6C.mjs → cdn/assets/Dv_qFZLVmZ4aVY0G.js} +1 -1
- package/cdn/assets/{DPUzShmQFsZiAy1y.js → Dvnx0PSv_jiWsIKe.js} +13 -13
- package/cdn/assets/{DfsGU1WZFPDvuEF7.js → F0iq1NszMJTVwyJd.js} +2 -2
- package/cdn/assets/{CdWkJs6rYnFmetuJ.js → F9Cwy_aefTGi6WoG.js} +1 -1
- package/cdn/assets/{1oqbqwBb8fBG-SRu.js → HKjRvq9Afdm8X4IO.js} +1 -1
- package/cdn/assets/HpghV8z9BTeDJHo1.js +50 -0
- package/cdn/assets/{2Q2-3kHAmqNdLDwx.js → LmdWOZpWumKhbIeQ.js} +1 -1
- package/cdn/assets/{BCA5bMx1egW3eRmp.js → Ls9uzNrVr3yxkM2m.js} +4 -4
- package/{browser/esm/CNtcjn_Cn7cQOWP5.mjs → cdn/assets/TRoNOaX9xm77vhNo.js} +1 -1
- package/{browser/esm/CQ7RZs6ggMhy9TKv.mjs → cdn/assets/hWAXOspM00OjNXxf.js} +1 -1
- package/cdn/assets/{ymbdHoeF6JmtSeHf.js → jHLE9-xV-wivIQzI.js} +1 -1
- package/{browser/esm/DCyiJ8jlUG-B76Tb.mjs → cdn/assets/kOyTOCy58irfQ9hf.js} +1 -1
- package/cdn/assets/{RgzmLUjP4Fyf4q1K.js → kPIrz_4t6rv8Lnkv.js} +2 -2
- package/cdn/assets/{CHESIwo-YlB-g6gr.js → z8mH2SruNZNb285Q.js} +2 -2
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +7 -7
- package/browser/cjs/B7wz5PktsGQNKYoq.cjs +0 -6
- package/browser/cjs/BiHqOGcXJWRP3FQy.cjs +0 -32
- package/browser/cjs/Bv5i7awWQ7wuK-N1.cjs +0 -6
- package/browser/cjs/C2AUpeG75-dSdAU8.cjs +0 -6
- package/browser/cjs/CEt7dvaTwfePj4ER.cjs +0 -326
- package/browser/cjs/DpTEicgZ3kB8YiOW.cjs +0 -6
- package/browser/cjs/LBIRCj-htZFg3vYw.cjs +0 -6
- package/browser/esm/B234kPv37vM5M_fj.mjs +0 -147
- package/browser/esm/BdviOCLagnd001u0.mjs +0 -48
- package/browser/esm/BkUCD0Hn_pXVY8BG.mjs +0 -58
- package/browser/esm/DpfLzruLjqt5WaT4.mjs +0 -39
- package/browser/esm/DsdO4-Dxa2PoruYq.mjs +0 -44
- package/cdn/assets/3tDFtZFz8w76rYBA.js +0 -49
- package/cdn/assets/BqOHcOxJPktjB8oL.js +0 -46
- package/cdn/assets/Cwd_PFnZO3GB10Ib.js +0 -41
- package/cdn/assets/DtDieGCmD7tfP-IC.js +0 -60
- package/cdn/assets/JUjq8dsNEwlP2TmD.js +0 -149
- package/cdn/assets/eIefNRuHeizv4VyQ.js +0 -50
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.7
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./CDQWmVCT_C4kt4z4.cjs"),rs=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ks=new RegExp(`^[${rs}][-${rs}.0-9·̀-ͯ‿-⁀]*$`,"u");function us(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ns="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",Es=new RegExp(`^[${ns}][-${ns}.0-9·̀-ͯ‿-⁀]*$`,"u");function ds(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Z=function(i){return i===32||i===10||i===13||i===9},As=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ne=us,as=function(i){return us(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ps=[32,10,13,9],Ps=ks,Ds=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Os=ds,Is=function(i){return ds(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Vs=Es,me="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",Ls={__proto__:null,xml:me,xmlns:Qt},Ns={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},P=-1,ct=-2,W=13,jt=33,nt=10,vt=60,Gt=61,H=62,F=63,Zt=93,fe=i=>i===34||i===39,gs=[34,39],Rs=[...gs,91,H],Ms=[...gs,vt,Zt],$s=[Gt,F,...ps],js=[...ps,H,38,vt];function De(i,t,s){switch(t){case"xml":s!==me&&i.fail(`xml prefix must be bound to ${me}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case me:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Hs=i=>Vs.test(i),Xs=i=>Ps.test(i),ls={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"};class Fs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Os,this.nameCheck=Is,this.isName=Hs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Ls};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))De(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ne,this.nameCheck=as,this.isName=Xs,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;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()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ns),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[ls[t]]=s}off(t){this[ls[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return P;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return P;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===P||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
-
`,s=this.i,n=nt;break;case P:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===P)return this.name+=t.slice(s),P;if(!as(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===P||!
|
|
9
|
-
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case P:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":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),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==
|
|
8
|
+
`,s=this.i,n=nt;break;case P:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===P)return this.name+=t.slice(s),P;if(!as(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===P||!Z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=As,this.getCode=this.getCode10):(this.isChar=Ds,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case P:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Rs);switch(t){case H:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case P:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:fe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Ms);t!==P&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===vt?this.state=6:fe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
|
+
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case P:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":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),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==H?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case H:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||Z(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===P)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||Z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:Z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===H){const{piTarget:s}=this;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=W}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==P&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo($s);if(t===F)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(Z(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=jt,void this.fail("XML declaration is incomplete.");Z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=jt,void this.fail("XML declaration is incomplete.");Z(t)||(fe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===P)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(Z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===H?(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=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===P)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case H:this.openTag();break;case 47:this.state=35;break;default:Z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===H?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==P&&(ne(t)?(this.unget(),this.state=37):t===H?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:Z(t)?this.state=38:t===H?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==P&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case P:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===H?this.openTag():ne(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();fe(t)?(this.q=t,this.state=40):Z(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case P:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();Z(t)?this.state=36:t===H?this.openTag():t===47?this.state=35:ne(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(js);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case P:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===H?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===H?this.closeTag():Z(t)?this.state=44:t!==P&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case H:this.closeTag();break;case P:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case H:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
10
|
`),t=this.i,s=0;break;case P:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,f=s.slice(t,this.prevI);h.length!==0?(o(h+f),this.text=""):f.length!==0&&o(f)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
-
`),t=this.i;break;case P:o!==void 0&&(this.text+=s.slice(t));break t;default:Y(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ee(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ee(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qname(s.name);s.prefix=a,s.local=h;const f=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),f===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:f,local:D}=a;let x,S;f===""?(x=h==="xmlns"?Zt:"",S=h):(x=this.resolve(f),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(f)}.`),x=f),S=`{${x}}${D}`),n.has(S)&&this.fail(`duplicate attribute: ${S}.`),n.add(S),a.uri=x,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;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};`)}}var Oe,mt;(mt=Oe||(Oe={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},mt.parseStream=async(i,t,s)=>{const o=new Fs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,A=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Bs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,f=null,D=null,x=null;const S=[],E={key:null,source:t};let b=null,R=!1;const _=(m,c)=>{let y=D.attributes[m];if(c){if(Array.isArray(c)){for(let O=0;O<c.length;O++)if(y==null||(y=c[O](y),y==null))return}else if(y==null||(y=c(y),y==null))return}return y},T={getSource:()=>b.source,setSource:m=>{b.source=m},setKey:m=>{b.key=m},getFrom:()=>D,getAttribute:(m,c)=>_(m,c)??null,hasAttribute:m=>T.getAttribute(m)!==null,getParent:()=>S[S.length-2].source,getPath:()=>{const m=[];for(let c=0;c<a.length;c++)m.push(a[c].local);return m.join("\\")},parseAttribute:_,copyToObject:(m,c,y,O)=>{const z=_(O??c,y);z!==void 0&&(m[c]=z)},copyTo:(m,c,y)=>{const O=_(y??m,c);O!==void 0&&(b.source[m]=O)},warn:m=>{o?o?.(m):console.warn(m)}};return{onOpenTag:m=>{let c=m.name;const y=c.indexOf(":");y!==-1&&(c=c.slice(y+1));const O=n.get(c);if(h={local:c,visitor:O,tag:m,destination:null},R)return a.push(h),f=c,void(D=m);x=h?.visitor??null,O&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,h.destination=b,b&&S.push(b)),a.push(h),f=c,D=m,R=x?.to===null,x?.openTag?.(T)},onCloseTag:m=>{let c=m.name;const y=c.indexOf(":");if(y!==-1&&(c=c.slice(y+1)),c!==f)throw new Error(`mismatch open/close tag: '${c}'/'${f}'`);R||x?.closeTag?.(T);const O=a.pop()??null;h=a[a.length-1]??null;const z=O?.destination;if(z){S.pop(),b=S[S.length-1]??E;const ut=O.visitor;ut&&ut.to&&z.source!==void 0&&(Array.isArray(ut.to)?b.source.push?b.source.push(z.source):o?.(`Unable to parse array for ${ut.from} at ${T.getPath()}`):z.key?b.source[z.key]=z.source:typeof ut.to=="string"&&(b.source[ut.to]=z.source))}f=h?.local??null,D=h?.tag??null,x=h?.visitor??null,R=!h?.destination},onText:m=>{x?.text?.(m,T)},onEnd:s}}}const cs=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let f=h.content;try{s&&(f=s(f))}catch(D){console.warn(D)}return o?.parsedRefs?.set(i,f),f},Ie=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const f=t(a);if(!f)return null;const D=f.content;try{const x=new TextDecoder().decode(D),S=s.parseFromString(x,"text/xml"),E=o.convert(S,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const f=h?h.length:0;for(let D=0;D<f;D++){const x=h[D];if(!x)continue;let S=x;S.startsWith("/")&&(S=S.substring(1));const E=Ie(S,b=>t.files[b],s,o,n);a.set(S,E)}return a},qs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ve=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=qs[h]);let f=i("tint");if(f&&(s+=` ${d.T.AdjustmentType.ETint} ${parseFloat(f)}`),s)return s},fs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ms=i=>i==="true"||i==="1";class jt{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ws=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},hs={colStart:0,colEnd:0,rowStart:0,rowEnd:0},_s=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,f=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(f);const D=h?.onProgress;let x=0;const S=Promise.resolve().then(()=>require("./DQmdNFzWR-h9wYSi.cjs")),E=Promise.resolve().then(()=>require("./BXZgVqL7XkYsoi33.cjs"));let b=null;try{b=new DOMParser}catch{}let R=null;b||(R=Promise.resolve().then(()=>require("./CkA2FSMaiJvL4xnW.cjs")).then(c=>c.i));let _=null,T=null,m=null;try{const c=await Promise.all([S,E,R]);_=c[0],T=c[1],m=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=_.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const y=new T.FromOOXMLConverter,O=b??new m.DOMParser,z=o?.resources??new d.Mm,ut=z.beginPersist(),Le={},Ne=new Set,Te=new Map;Te.set("richTypes",[]);const Re=new Map,$e=[],ae=w=>c.files[w],ye=(w,B)=>{const Z=w.lastIndexOf("/"),et=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(et);return dt||(dt=((L,ve,Se,Ce,Xt=null)=>{if(!L)return null;const st=Ie(L,ve,Se,Ce,Xt);if(!st)return null;const it=new Map,yt=Object.keys(st),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Bt=yt[bt],Ct=st[Bt];it.set(Bt,Ct)}return it})(et,ae,O,y,Tt),B.set(et,dt)),dt},le=(w,B,Z,et=Re)=>{let dt=ye(B,et).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const ve=B.lastIndexOf("/"),Se=B.substring(0,ve+1);L.startsWith("/")||(L=Se+L),L=(st=>{const it=st.split(/\/+/);return it.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),it).join("/")})(L);const Ce=y?.getVisitorParamsState().get("dxfs");let Xt=et.get(L);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const st={};Xt=st;const it=async()=>{const yt=(($,X,Qt,U,Q,G,Jt,kt)=>{const u=new Bs,J=new d.Vt.TransposedBuilder;let H=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const I=l[p];I!=="rule"&&(r[I]=r.rule[I])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",A),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",A);if(l!==null){let p=U?.get(l);p||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",A),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",A),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",A),e.copyTo("minLength",A),e.copyTo("showValue",v)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",v)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ve(p=>e.getAttribute(p));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",A,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",A,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Icon,e.copyTo("iconId",A),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",A),e.copyTo("hour",A),e.copyTo("minute",A),e.copyTo("month",A),e.copyTo("second",A),e.copyTo("year",A)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.cu.Type.Custom,e.copyTo("and",v)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const p=e.getAttribute("ref");if(p){const I=d.Yr.fastStringToRange(p,hs).colStart,K=d.Yr.fastStringToRange(r.ref,hs),qt=K.colStart;l.offset=K?I-qt:I}l.reverse=e.getAttribute("descending",v)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const de=e=>{H=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ms(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",A),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{de(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{de(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",A,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=H.topLeft?d.Yr.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",A,"xSplit"),e.copyToObject(p,"rowIndex",A,"ySplit");const I={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=d.Yr.cellToString(I)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ve(l=>e.getAttribute(l));r&&($.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?X(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const I=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const K=e.getAttribute("location");if(K&&(I&&I!==K&&console.warn("display and location are different",I,K),p+="#"+K),!p)return void console.warn("No address found for hyperlink. r:id",r);let qt;const xt=e.getAttribute("tooltip");qt=xt?{address:p,tooltip:xt}:p,e.setSource({r:l,v:qt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=I=>I===!0||I==="1"||I==="on"||I==="true"||I===!1||I==="0"||I==="off"||I==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",k,"hashValue"),e.copyToObject(p,"algorithm",k,"algorithmName"),e.copyToObject(p,"salt",k,"saltValue"),e.copyToObject(p,"spinCount",A),Object.keys(p).length>0&&(e.getSource().password=p)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",A),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject($,"defaultColSize",ht,"defaultColWidth"),e.copyToObject($,"outlineLevelCol",A,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject($,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject($,"outlineLevelRow",A,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",A,"outlineLevel"),e.copyTo("s",A,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const Ss={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Qt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,I,K,qt)=>{let xt=!1,pe=!1,Wt=[],_t=!1,At=null,te=null,ge=null,at=null,qe=null,We=null;const Cs=qt?.get("richData")??[],_e=d.Yr.normalizeA1ToR1C1,ze=d.Ht$1.createConflatingRanges(),Ue=new Map,ke=[];let ee=null;const Ge=d.Ht$1.createConflatingRanges();let se,Dt=!1,q=-1,tt=-1,pt=null,ie=null;const Ae=[];let De=null,Ye=-2,gt=0,zt="",Pt="",Et="",Ot="",It="",Vt="",Lt="",Ze="",Qe="",Je="",Ke="",ts="",es="",ss="",ft=!0,Nt=null,Pe=0;return{...l,onEnd:()=>{Ae.length>0&&(r.rows=Ae);let g=ze.done(Ws);const C=g.length;if(C>0){const M=new Array(C);for(let V=0;V<C;V++){const lt=g[V],Rt=d.Yr.rangeToString(lt),$t=lt.value[1],oe=d.Yr.resolveRelativeToA1($t,lt.rowStart,lt.colStart);M[V]=[Rt,oe]}r.formulas=M}const ot=Ge.done(!0),N=ot.length;if(N>0){const M=new Array(N);for(let V=0;V<N;V++){const lt=ot[V],Rt=d.Yr.rangeToString(lt);M[V]=Rt}r.volatile=M}if(ke.length>0&&(r.dynamicArray=[...ke]),Wt.length>0){Wt.sort(d.Ht$1.createRangeComparator(d.w.Orientation.Column));const M=[];let V=null,lt=-1,Rt=-1,$t=-1,oe=-1,wt=null;const is=Wt.length;is>0&&(V=Wt[0],lt=V.colStart,Rt=V.colEnd,$t=V.rowEnd,oe=V.value,M.push(V));for(let Mt=1;Mt<is;Mt++)wt=Wt[Mt],oe!==wt.value||lt!==wt.colStart||Rt!==wt.colEnd||$t+1!==wt.rowEnd?(M.push(wt),V=wt,lt=V.colStart,Rt=V.colEnd,$t=V.rowEnd,oe=V.value):($t=wt.rowEnd,V.rowEnd=$t);let os=[];for(let Mt=0;Mt<M.length;Mt++){const re=M[Mt];os.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=os}const rt=e.build();if(rt){const M=rt.tuples;r.data=M}l?.onEnd?.()},onOpenTag:g=>{let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),Pe++,Pe%196608==0&&I(Pe),se){const N=g.attributes;switch(C){case"v":pe=!0;break;case"f":switch(N.t??null){case null:case"normal":_t=!0;break;case"shared":const rt=N.si;te=N.ref,At=rt;break;case"array":_t=!0,te=N.ref,ee=[te,!1];break;case"datatable":_t=!0,te=N.ref,_t=!0}N.ca!==void 0&&Ge.append(q,tt);break;case"is":return void(Dt=!0)}return void(Dt&&K?.onOpenTag(g))}if(xt){if(C==="c"){se=g;const N=g.attributes.r;tt=d.Yr.fastStringToCol(N);const rt=g.attributes.t;rt===void 0?ie=null:(ie=rt,ie==="str"&&(Dt=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Nt&&Nt.value===M&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:M},Wt.push(Nt)))}}else{if(C==="row"){xt=!0;const N=g.attributes.r;if(q=parseInt(N)-1,gt=0,Pt=g.attributes.customHeight,Pt!==void 0&&(gt|=jt.CustomHeight),Pt!==Qe&&(ft=!0,Qe=Pt),zt=g.attributes.ht,zt!==void 0&&(gt|=jt.Ht),zt!==Ze&&(ft=!0,Ze=zt),Et=g.attributes.hidden,Et!==void 0&&(gt|=jt.Hidden),Et!==Je&&(ft=!0,Je=Et),It=g.attributes.s,It!==void 0&&(gt|=jt.S),It!==ts&&(ft=!0,ts=It),Ot=g.attributes.customFormat,Ot!==void 0&&(gt|=jt.CustomFormat),Ot!==Ke&&(ft=!0,Ke=Ot),Vt=g.attributes.outlineLevel,Vt!==void 0&&(gt|=jt.OutlineLevel),Vt!==es&&(ft=!0,es=Vt),Lt=g.attributes.collapsed,Lt!==void 0&&(gt|=jt.Collapsed),Lt!==ss&&(ft=!0,ss=Lt),gt!==0)if(Ye+1!==q||ft){const rt=Pt!==void 0&&(Pt==="1"||Pt==="true"),M=Ot!==void 0&&(Ot==="1"||Ot==="true");De={min:q,max:q,sz:rt&&zt!==void 0?parseFloat(zt):-1,csz:rt,h:Et!==void 0&&(Et==="1"||Et==="true"),s:rt&&It!==void 0&&It!=="0"?parseInt(It):0,cs:M,l:Vt===void 0||Vt==="0"?0:parseInt(Vt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Ae.push(De)}else De.max=q;return Ye=q,void(ft=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),Dt)if(C==="is"||C==="v"){const N=K?.onEnd();N!==null&&e.addValue(q,tt,""+N)}else K?.onCloseTag?.(g);return pe&&(pe=!1),void(C==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),pe){switch(pt=null,ie){case null:case"n":pt=parseFloat(g);break;case"b":pt=g==="1"||g==="true";break;case"s":pt=g;break;case"e":if(g==="#VALUE!"){const ot=se.attributes.vm;if(ot!==void 0){const N=Cs[parseInt(ot)-1];if(N&&N.isFormulaError){pt={t:d.M$1.Error,v:N.getCode()};break}}}const C=d.n.getBuiltInByLabel(g);C?pt={t:d.M$1.Error,v:C.getCode()}:(pt=g,p?.(`Unknown formula error '${g}' in cell ${d.Yr.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),ke.push(ee),ee=null),At)if(qe===At)at=We;else{if(at=Ue.get(At),!at){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g],Ue.set(At,at)}qe=At,We=at}if(_t){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g]}if(at)return ze.append(q,tt,at),at=null,_t=!1,At=null,void(te=null);Dt?K?.onText(g):xt||l?.onText(g)}}})(J,$,u.createEventHandler($,()=>{},G),G,e=>{x+=e,D?.(x)},Ss,kt)})(st,($,X=!1)=>le($,L,X)??null,ys,Ce,0,($,X)=>{X=X?`${X} (${L})`:L,a.push([$,X])},0,Te),Ft=cs(L,ae),bt=await(async($,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./DbMWszNm4m-5OHJM.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let U=0;const Q=$ instanceof Uint8Array?$:new Uint8Array($);return new ReadableStream({pull(G){if(U>=Q.byteLength)return void G.close();const Jt=Q.subarray(U,Math.min(U+X,Q.byteLength)),kt=Qt.decode(Jt,{stream:U+X<Q.byteLength});G.enqueue(kt),U+=Jt.length}}).getReader()})(Ft);try{await Oe.parseStream(bt,yt,{xmlns:!1})}catch($){throw console.warn(`Error parsing sheet: '${L}'`,$),new Error(`Error parsing sheet: '${L}'`,{cause:$})}const Bt=ye(L,et);let Ct,Be=new Map;if(Bt){const $="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Bt.forEach((U,Q)=>{U.type===$&&(Ct=le(Q,L,!1,et)?.comments,Ct&&Ct.forEach(G=>{Be.set(G.id,G)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Bt.forEach((U,Q)=>{U.type===Qt&&(X=le(Q,L,!1,et))}),X||Ct){const U=Ct??[],Q=X?.comments;if(Q){const G=X?.authors,Jt=Q.length;for(let kt=0;kt<Jt;kt++){const u=Q[kt];if(!u)continue;let J=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=fs(J.substring(3)),Be.has(J)))continue;let H=null;J&&(H=he.get(J)),H||(H=je.get(J)),H||(H={id:d.te.uuidV4(),displayName:J},je.set(H.displayName,H),he.set(H.id,H)),J=H?.id??null;const de={id:d.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};U.push(de)}}st.comments=U}}};$e.push(it())}else Xt=Z?cs(L,ae,st=>{const it=z.add({buffer:st});return it.addReference(Le),Ne.add(it),ut.toResourceId(it)},Tt):Ie(L,ae,O,y,Tt);return Xt},Tt={paramMap:Te,getRefs:ye,getRef:le,parsedRefs:Re,addPerson:w=>null},ce=[];let be=0;c.Strings&&(be=parseInt(c.Strings.Unique??c.Strings.length??0));const Ts=c.Strings??[];for(let w=0;w<be;w++)ce.push(Ts[w]?.t??"");const Me=new Map;let He=be;const ys=w=>{const B=Me.get(w);if(B!==void 0)return B;const Z=He;return Me.set(w,He++),ce.push(w),Z},he=(Ut("richstructure",c,O,y,Tt),Ut("richdata",c,O,y,Tt),new Map),je=new Map,Xe=Ut("people",c,O,y);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];he.set(Z.id,Z),he.set(Z.displayName,Z)}}const xe=Ut("themes",c,O,y,Tt);let Fe=null;if(xe&&xe.entries){let w=xe.entries().next();w?.value?.[1]&&(Fe=w.value[1])}const bs=new d.kl(Fe);let ue=Ut("styles",c,O,y,Tt).entries().next()?.value[1];ue&&(ue=JSON.parse(d.oe(ue)));const xs=Ut("workbooks",c,O,y,Tt);await Promise.all($e);const we={...xs.entries().next().value[1],styles:ue,theme:bs.toJSON()};ce.length>0&&(we.strings=ce),St&&St.length>0&&(we.people=St);const ws={...o,resources:z,json:we},vs=new d.cy(ws);if(Ne.forEach(w=>{w.deleteReference(Le)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,et]=B;w(Z,et)}}return h?.onComplete?.(x),vs}catch(c){let y="Unable to parse XLSX.";throw c instanceof d.ae&&(y="Unable to open XLSX. There are too many rows or columns."),new Error(y,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DQmdNFzWR-h9wYSi.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],f=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,f,h.name);const D=h.sheet,x=i.getSheetAt(a),S=x.getUsedRange();if(S?(f["!ref"]=S.getA1(),S.forEach((E,b)=>{const R={t:"z"},_=b.getCell().getStyle();if(!_.isNormal()){let T=_.getNumberFormat();T!==d.De.Type.General&&(T===d.De.Type.ShortDate?T="m/d/yyyy":T===d.De.Type.MediumDate?T="d-mmm-yy":T===d.De.Type.LongDate?T="[$-x-sysdate]dddd, mmmm dd, yyyy":T===d.De.Type.ShortTime?T="h:mm":T===d.De.Type.MediumTime?T="h:mm AM/PM":T===d.De.Type.LongTime&&(T="h:mm:ss AM/PM"),R.z=T)}if(E!==null)switch(b.getType()){case d.M$1.Number:R.t="n",R.v=E;break;case d.M$1.String:R.t="s",R.v=E;break;case d.M$1.Boolean:R.t="b",R.v=E;break;case d.M$1.Error:R.t="e",R.v=E.toString();case d.M$1.RichData:}f[b.getA1()]=R})):f["!ref"]="A1:A1",D.merges?.length>0){const E=[];f["!merges"]=E;for(let b=0;b<D.merges.length;b++)E.push(s.utils.decode_range(D.merges[b]))}if(D.cols?.length>0){const E=[];f["!cols"]=E;const b=D.cols,R={width:D.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let _=0;_<b.length;_++){const T=b[_];for(let c=E.length;c<=T.min-1;c++)E.push(R);const m={};T.sz!==void 0&&(m.width=T.sz),T.h!==void 0&&(m.hidden=T.h),T.l!==void 0&&(m.level=T.l);for(let c=T.min;c<=T.max;c++)E.push(m)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=ms,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ve,exports.i=_s,exports.p=i=>parseFloat(i)/6e4,exports.r=fs,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
11
|
+
`),t=this.i;break;case P:o!==void 0&&(this.text+=s.slice(t));break t;default:Z(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,De(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,De(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qname(s.name);s.prefix=a,s.local=h;const f=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),f===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:f,local:A}=a;let x,S;f===""?(x=h==="xmlns"?Qt:"",S=h):(x=this.resolve(f),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(f)}.`),x=f),S=`{${x}}${A}`),n.has(S)&&this.fail(`duplicate attribute: ${S}.`),n.add(S),a.uri=x,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;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};`)}}var Oe,mt;(mt=Oe||(Oe={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},mt.parseStream=async(i,t,s)=>{const o=new Fs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Bs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,f=null,A=null,x=null;const S=[],D={key:null,source:t};let b=null,R=!1;const _=(m,c)=>{let y=A.attributes[m];if(c){if(Array.isArray(c)){for(let O=0;O<c.length;O++)if(y==null||(y=c[O](y),y==null))return}else if(y==null||(y=c(y),y==null))return}return y},T={getSource:()=>b.source,setSource:m=>{b.source=m},setKey:m=>{b.key=m},getFrom:()=>A,getAttribute:(m,c)=>_(m,c)??null,hasAttribute:m=>T.getAttribute(m)!==null,getParent:()=>S[S.length-2].source,getPath:()=>{const m=[];for(let c=0;c<a.length;c++)m.push(a[c].local);return m.join("\\")},parseAttribute:_,copyToObject:(m,c,y,O)=>{const z=_(O??c,y);z!==void 0&&(m[c]=z)},copyTo:(m,c,y)=>{const O=_(y??m,c);O!==void 0&&(b.source[m]=O)},warn:m=>{o?o?.(m):console.warn(m)}};return{onOpenTag:m=>{let c=m.name;const y=c.indexOf(":");y!==-1&&(c=c.slice(y+1));const O=n.get(c);if(h={local:c,visitor:O,tag:m,destination:null},R)return a.push(h),f=c,void(A=m);x=h?.visitor??null,O&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,h.destination=b,b&&S.push(b)),a.push(h),f=c,A=m,R=x?.to===null,x?.openTag?.(T)},onCloseTag:m=>{let c=m.name;const y=c.indexOf(":");if(y!==-1&&(c=c.slice(y+1)),c!==f)throw new Error(`mismatch open/close tag: '${c}'/'${f}'`);R||x?.closeTag?.(T);const O=a.pop()??null;h=a[a.length-1]??null;const z=O?.destination;if(z){S.pop(),b=S[S.length-1]??D;const ut=O.visitor;ut&&ut.to&&z.source!==void 0&&(Array.isArray(ut.to)?b.source.push?b.source.push(z.source):o?.(`Unable to parse array for ${ut.from} at ${T.getPath()}`):z.key?b.source[z.key]=z.source:typeof ut.to=="string"&&(b.source[ut.to]=z.source))}f=h?.local??null,A=h?.tag??null,x=h?.visitor??null,R=!h?.destination},onText:m=>{x?.text?.(m,T)},onEnd:s}}}const cs=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let f=h.content;try{s&&(f=s(f))}catch(A){console.warn(A)}return o?.parsedRefs?.set(i,f),f},Ie=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const f=t(a);if(!f)return null;const A=f.content;try{const x=new TextDecoder().decode(A),S=s.parseFromString(x,"text/xml"),D=o.convert(S,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const f=h?h.length:0;for(let A=0;A<f;A++){const x=h[A];if(!x)continue;let S=x;S.startsWith("/")&&(S=S.substring(1));const D=Ie(S,b=>t.files[b],s,o,n);a.set(S,D)}return a},qs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ve=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=qs[h]);let f=i("tint");if(f&&(s+=` ${d.T.AdjustmentType.ETint} ${parseFloat(f)}`),s)return s},fs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ms=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ws=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},hs={colStart:0,colEnd:0,rowStart:0,rowEnd:0},_s=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,f=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(f);const A=h?.onProgress;let x=0;const S=Promise.resolve().then(()=>require("./D1NKZY8fEGk-xu0l.cjs")),D=Promise.resolve().then(()=>require("./BFibWMggm34JCRTQ.cjs"));let b=null;try{b=new DOMParser}catch{}let R=null;b||(R=Promise.resolve().then(()=>require("./PbtPWuRp8TEGAKWd.cjs")).then(c=>c.i));let _=null,T=null,m=null;try{const c=await Promise.all([S,D,R]);_=c[0],T=c[1],m=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=_.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const y=new T.FromOOXMLConverter,O=b??new m.DOMParser,z=o?.resources??new d.tf,ut=z.beginPersist(),Le={},Ne=new Set,Te=new Map;Te.set("richTypes",[]);const Re=new Map,Me=[],ae=w=>c.files[w],ye=(w,B)=>{const Q=w.lastIndexOf("/"),et=w.substring(0,Q+1)+"_rels/"+w.substring(Q+1,w.length)+".rels";let dt=B.get(et);return dt||(dt=((L,ve,Se,Ce,Xt=null)=>{if(!L)return null;const st=Ie(L,ve,Se,Ce,Xt);if(!st)return null;const it=new Map,yt=Object.keys(st),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Bt=yt[bt],Ct=st[Bt];it.set(Bt,Ct)}return it})(et,ae,O,y,Tt),B.set(et,dt)),dt},le=(w,B,Q,et=Re)=>{let dt=ye(B,et).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const ve=B.lastIndexOf("/"),Se=B.substring(0,ve+1);L.startsWith("/")||(L=Se+L),L=(st=>{const it=st.split(/\/+/);return it.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),it).join("/")})(L);const Ce=y?.getVisitorParamsState().get("dxfs");let Xt=et.get(L);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const st={};Xt=st;const it=async()=>{const yt=((M,X,Jt,U,J,G,Kt,kt)=>{const u=new Bs,K=new d.Lt.TransposedBuilder;let j=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const I=l[p];I!=="rule"&&(r[I]=r.rule[I])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=U?.get(l);p||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",v)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ve(p=>e.getAttribute(p));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.ku.Type.Custom,e.copyTo("and",v)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const p=e.getAttribute("ref");if(p){const I=d.Eo.fastStringToRange(p,hs).colStart,Y=d.Eo.fastStringToRange(r.ref,hs),qt=Y.colStart;l.offset=Y?I-qt:I}l.reverse=e.getAttribute("descending",v)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const de=e=>{j=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ms(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{de(e)},closeTag:()=>{j=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{de(e)},closeTag:()=>{j=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=j.topLeft?d.Eo.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const I={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=d.Eo.cellToString(I)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ve(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?X(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const I=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const Y=e.getAttribute("location");if(Y&&(I&&I!==Y&&console.warn("display and location are different",I,Y),p+="#"+Y),!p)return void console.warn("No address found for hyperlink. r:id",r);let qt;const xt=e.getAttribute("tooltip");qt=xt?{address:p,tooltip:xt}:p,e.setSource({r:l,v:qt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=I=>I===!0||I==="1"||I==="on"||I==="true"||I===!1||I==="0"||I==="off"||I==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",k,"hashValue"),e.copyToObject(p,"algorithm",k,"algorithmName"),e.copyToObject(p,"salt",k,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",E,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const Ss={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,p,I,Y,qt)=>{let xt=!1,pe=!1,Wt=[],_t=!1,Et=null,te=null,ge=null,at=null,qe=null,We=null;const Cs=qt?.get("richData")??[],_e=d.Eo.normalizeA1ToR1C1,ze=d.Ht.createConflatingRanges(),Ue=new Map,ke=[];let ee=null;const Ge=d.Ht.createConflatingRanges();let se,At=!1,q=-1,tt=-1,pt=null,ie=null;const Ee=[];let Ae=null,Ze=-2,gt=0,zt="",Pt="",Dt="",Ot="",It="",Vt="",Lt="",Qe="",Je="",Ke="",Ye="",ts="",es="",ss="",ft=!0,Nt=null,Pe=0;return{...l,onEnd:()=>{Ee.length>0&&(r.rows=Ee);let g=ze.done(Ws);const C=g.length;if(C>0){const $=new Array(C);for(let V=0;V<C;V++){const lt=g[V],Rt=d.Eo.rangeToString(lt),Mt=lt.value[1],oe=d.Eo.resolveRelativeToA1(Mt,lt.rowStart,lt.colStart);$[V]=[Rt,oe]}r.formulas=$}const ot=Ge.done(!0),N=ot.length;if(N>0){const $=new Array(N);for(let V=0;V<N;V++){const lt=ot[V],Rt=d.Eo.rangeToString(lt);$[V]=Rt}r.volatile=$}if(ke.length>0&&(r.dynamicArray=[...ke]),Wt.length>0){Wt.sort(d.Ht.createRangeComparator(d.w.Orientation.Column));const $=[];let V=null,lt=-1,Rt=-1,Mt=-1,oe=-1,wt=null;const is=Wt.length;is>0&&(V=Wt[0],lt=V.colStart,Rt=V.colEnd,Mt=V.rowEnd,oe=V.value,$.push(V));for(let $t=1;$t<is;$t++)wt=Wt[$t],oe!==wt.value||lt!==wt.colStart||Rt!==wt.colEnd||Mt+1!==wt.rowEnd?($.push(wt),V=wt,lt=V.colStart,Rt=V.colEnd,Mt=V.rowEnd,oe=V.value):(Mt=wt.rowEnd,V.rowEnd=Mt);let os=[];for(let $t=0;$t<$.length;$t++){const re=$[$t];os.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=os}const rt=e.build();if(rt){const $=rt.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),Pe++,Pe%196608==0&&I(Pe),se){const N=g.attributes;switch(C){case"v":pe=!0;break;case"f":switch(N.t??null){case null:case"normal":_t=!0;break;case"shared":const rt=N.si;te=N.ref,Et=rt;break;case"array":_t=!0,te=N.ref,ee=[te,!1];break;case"datatable":_t=!0,te=N.ref,_t=!0}N.ca!==void 0&&Ge.append(q,tt);break;case"is":return void(At=!0)}return void(At&&Y?.onOpenTag(g))}if(xt){if(C==="c"){se=g;const N=g.attributes.r;tt=d.Eo.fastStringToCol(N);const rt=g.attributes.t;rt===void 0?ie=null:(ie=rt,ie==="str"&&(At=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Nt&&Nt.value===$&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:$},Wt.push(Nt)))}}else{if(C==="row"){xt=!0;const N=g.attributes.r;if(q=parseInt(N)-1,gt=0,Pt=g.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Je&&(ft=!0,Je=Pt),zt=g.attributes.ht,zt!==void 0&&(gt|=Ht.Ht),zt!==Qe&&(ft=!0,Qe=zt),Dt=g.attributes.hidden,Dt!==void 0&&(gt|=Ht.Hidden),Dt!==Ke&&(ft=!0,Ke=Dt),It=g.attributes.s,It!==void 0&&(gt|=Ht.S),It!==ts&&(ft=!0,ts=It),Ot=g.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==Ye&&(ft=!0,Ye=Ot),Vt=g.attributes.outlineLevel,Vt!==void 0&&(gt|=Ht.OutlineLevel),Vt!==es&&(ft=!0,es=Vt),Lt=g.attributes.collapsed,Lt!==void 0&&(gt|=Ht.Collapsed),Lt!==ss&&(ft=!0,ss=Lt),gt!==0)if(Ze+1!==q||ft){const rt=Pt!==void 0&&(Pt==="1"||Pt==="true"),$=Ot!==void 0&&(Ot==="1"||Ot==="true");Ae={min:q,max:q,sz:rt&&zt!==void 0?parseFloat(zt):-1,csz:rt,h:Dt!==void 0&&(Dt==="1"||Dt==="true"),s:rt&&It!==void 0&&It!=="0"?parseInt(It):0,cs:$,l:Vt===void 0||Vt==="0"?0:parseInt(Vt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Ee.push(Ae)}else Ae.max=q;return Ze=q,void(ft=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),At)if(C==="is"||C==="v"){const N=Y?.onEnd();N!==null&&e.addValue(q,tt,""+N)}else Y?.onCloseTag?.(g);return pe&&(pe=!1),void(C==="c"&&(se=null,At=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),pe){switch(pt=null,ie){case null:case"n":pt=parseFloat(g);break;case"b":pt=g==="1"||g==="true";break;case"s":pt=g;break;case"e":if(g==="#VALUE!"){const ot=se.attributes.vm;if(ot!==void 0){const N=Cs[parseInt(ot)-1];if(N&&N.isFormulaError){pt={t:d.M.Error,v:N.getCode()};break}}}const C=d.n.getBuiltInByLabel(g);C?pt={t:d.M.Error,v:C.getCode()}:(pt=g,p?.(`Unknown formula error '${g}' in cell ${d.Eo.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":At=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),ke.push(ee),ee=null),Et)if(qe===Et)at=We;else{if(at=Ue.get(Et),!at){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g],Ue.set(Et,at)}qe=Et,We=at}if(_t){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g]}if(at)return ze.append(q,tt,at),at=null,_t=!1,Et=null,void(te=null);At?Y?.onText(g):xt||l?.onText(g)}}})(K,M,u.createEventHandler(M,()=>{},G),G,e=>{x+=e,A?.(x)},Ss,kt)})(st,(M,X=!1)=>le(M,L,X)??null,ys,Ce,0,(M,X)=>{X=X?`${X} (${L})`:L,a.push([M,X])},0,Te),Ft=cs(L,ae),bt=await(async(M,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./CzUFi87fwOEv2c_X.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let U=0;const J=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(G){if(U>=J.byteLength)return void G.close();const Kt=J.subarray(U,Math.min(U+X,J.byteLength)),kt=Jt.decode(Kt,{stream:U+X<J.byteLength});G.enqueue(kt),U+=Kt.length}}).getReader()})(Ft);try{await Oe.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${L}'`,M),new Error(`Error parsing sheet: '${L}'`,{cause:M})}const Bt=ye(L,et);let Ct,Be=new Map;if(Bt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Bt.forEach((U,J)=>{U.type===M&&(Ct=le(J,L,!1,et)?.comments,Ct&&Ct.forEach(G=>{Be.set(G.id,G)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Bt.forEach((U,J)=>{U.type===Jt&&(X=le(J,L,!1,et))}),X||Ct){const U=Ct??[],J=X?.comments;if(J){const G=X?.authors,Kt=J.length;for(let kt=0;kt<Kt;kt++){const u=J[kt];if(!u)continue;let K=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(K&&K.startsWith("tc=")&&(K=fs(K.substring(3)),Be.has(K)))continue;let j=null;K&&(j=he.get(K)),j||(j=He.get(K)),j||(j={id:d.te.uuidV4(),displayName:K},He.set(j.displayName,j),he.set(j.id,j)),K=j?.id??null;const de={id:d.te.uuidV4(),personId:K,ref:u.ref,done:!1,asNote:!0,content:u.content};U.push(de)}}st.comments=U}}};Me.push(it())}else Xt=Q?cs(L,ae,st=>{const it=z.add({buffer:st});return it.addReference(Le),Ne.add(it),ut.toResourceId(it)},Tt):Ie(L,ae,O,y,Tt);return Xt},Tt={paramMap:Te,getRefs:ye,getRef:le,parsedRefs:Re,addPerson:w=>null},ce=[];let be=0;c.Strings&&(be=parseInt(c.Strings.Unique??c.Strings.length??0));const Ts=c.Strings??[];for(let w=0;w<be;w++)ce.push(Ts[w]?.t??"");const $e=new Map;let je=be;const ys=w=>{const B=$e.get(w);if(B!==void 0)return B;const Q=je;return $e.set(w,je++),ce.push(w),Q},he=(Ut("richstructure",c,O,y,Tt),Ut("richdata",c,O,y,Tt),new Map),He=new Map,Xe=Ut("people",c,O,y);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Q=St[B];he.set(Q.id,Q),he.set(Q.displayName,Q)}}const xe=Ut("themes",c,O,y,Tt);let Fe=null;if(xe&&xe.entries){let w=xe.entries().next();w?.value?.[1]&&(Fe=w.value[1])}const bs=new d.rc(Fe);let ue=Ut("styles",c,O,y,Tt).entries().next()?.value[1];ue&&(ue=JSON.parse(d.oe(ue)));const xs=Ut("workbooks",c,O,y,Tt);await Promise.all(Me);const we={...xs.entries().next().value[1],styles:ue,theme:bs.toJSON()};ce.length>0&&(we.strings=ce),St&&St.length>0&&(we.people=St);const ws={...o,resources:z,json:we},vs=new d.qy(ws);if(Ne.forEach(w=>{w.deleteReference(Le)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Q,et]=B;w(Q,et)}}return h?.onComplete?.(x),vs}catch(c){let y="Unable to parse XLSX.";throw c instanceof d.ae&&(y="Unable to open XLSX. There are too many rows or columns."),new Error(y,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./D1NKZY8fEGk-xu0l.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],f=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,f,h.name);const A=h.sheet,x=i.getSheetAt(a),S=x.getUsedRange();if(S?(f["!ref"]=S.getA1(),S.forEach((D,b)=>{const R={t:"z"},_=b.getCell().getStyle();if(!_.isNormal()){let T=_.getNumberFormat();T!==d.je.Type.General&&(T===d.je.Type.ShortDate?T="m/d/yyyy":T===d.je.Type.MediumDate?T="d-mmm-yy":T===d.je.Type.LongDate?T="[$-x-sysdate]dddd, mmmm dd, yyyy":T===d.je.Type.ShortTime?T="h:mm":T===d.je.Type.MediumTime?T="h:mm AM/PM":T===d.je.Type.LongTime&&(T="h:mm:ss AM/PM"),R.z=T)}if(D!==null)switch(b.getType()){case d.M.Number:R.t="n",R.v=D;break;case d.M.String:R.t="s",R.v=D;break;case d.M.Boolean:R.t="b",R.v=D;break;case d.M.Error:R.t="e",R.v=D.toString();case d.M.RichData:}f[b.getA1()]=R})):f["!ref"]="A1:A1",A.merges?.length>0){const D=[];f["!merges"]=D;for(let b=0;b<A.merges.length;b++)D.push(s.utils.decode_range(A.merges[b]))}if(A.cols?.length>0){const D=[];f["!cols"]=D;const b=A.cols,R={width:A.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let _=0;_<b.length;_++){const T=b[_];for(let c=D.length;c<=T.min-1;c++)D.push(R);const m={};T.sz!==void 0&&(m.width=T.sz),T.h!==void 0&&(m.hidden=T.h),T.l!==void 0&&(m.level=T.l);for(let c=T.min;c<=T.max;c++)D.push(m)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=ms,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ve,exports.i=_s,exports.p=i=>parseFloat(i)/6e4,exports.r=fs,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.7
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|