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