@sheetxl/studio-vanilla 0.6.5 → 0.6.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/browser/cjs/{CuyqWl8TtYPE7cas.cjs → B-RS05VornOldrL9.cjs} +2 -2
- package/browser/cjs/{DBLgeCJrYVDDlTYO.cjs → B3IYNI3z6mcbe3EI.cjs} +1 -1
- package/browser/cjs/{CEuy5mrMYYaKilHh.cjs → B3htTp6BdTpcwfc-.cjs} +1 -1
- package/browser/cjs/{CFep85kcTTZiLq1s.cjs → B5hu9_FYVC-RLOgi.cjs} +1 -1
- package/browser/cjs/{z9Nd8o1UXeSTjADs.cjs → B5vtgM0_WVTv1zKa.cjs} +12 -12
- package/browser/cjs/{CWqY5qD9F8ejqlhn.cjs → B8X707JrwtMd0Eyo.cjs} +1 -1
- package/browser/cjs/B9gppe9yylOBVjlO.cjs +11 -0
- package/browser/cjs/{Dn2j4hs3RfBXCOAB.cjs → BC5hMfP9nDp-FX8w.cjs} +2 -2
- package/browser/cjs/{OVBBMnz7U1N8Auls.cjs → BDQTloR6ySF1oJmn.cjs} +5 -5
- package/browser/cjs/BGmWpUqfmKTMUMGn.cjs +7 -0
- package/browser/cjs/BKUqPcB-J7lrb6tK.cjs +16 -0
- package/browser/cjs/BOGPmlcdjsR1qGaw.cjs +12 -0
- package/browser/cjs/Bm0v2rjm2HlzxhYA.cjs +6 -0
- package/browser/cjs/{DEYDql7M3QlI-qyY.cjs → Boc6wJysGvzcubzE.cjs} +1 -1
- package/browser/cjs/Bu-QtkFZAjl5aqEZ.cjs +42 -0
- package/browser/cjs/Bu5RUSGc8vWvj5h1.cjs +7 -0
- package/browser/cjs/{o9UvxolVM8N5j5LT.cjs → Bz6AFqV-iXwN2WXy.cjs} +1 -1
- package/browser/cjs/{D-yGu0GKJTlWjCxV.cjs → BzjDXtPtypjn5O_r.cjs} +1 -1
- package/browser/cjs/CCqgQpZBR5wOpyiV.cjs +14 -0
- package/browser/cjs/CD_immjTuT8VP5bS.cjs +6 -0
- package/browser/cjs/CI-H71iwfm3NKxMS.cjs +124 -0
- package/browser/cjs/CIJw5emAR2nvDIDj.cjs +161 -0
- package/browser/cjs/{BsohAXSW9Zd3K4Gg.cjs → CLnjehFtQBLSaonl.cjs} +2 -2
- package/browser/cjs/CVq2lRYh2ZK9ZzEp.cjs +15 -0
- package/browser/cjs/{DapbHy2lgBdWLWXl.cjs → CaKK8Dpj8rxVd-Wo.cjs} +1 -1
- package/browser/cjs/{D9EkzEeAA8NvFlem.cjs → CbGqtIkA64SUCGEX.cjs} +1 -1
- package/browser/cjs/{Cbnj0TlUbiPA_cBl.cjs → CnlXlI3wOKu-GDWY.cjs} +3 -3
- package/browser/cjs/{fzltUv7k3g_41akR.cjs → CvXAxxhFkfbMd1H8.cjs} +1 -1
- package/browser/cjs/Cx89ds7YFppm4HH8.cjs +330 -0
- package/browser/cjs/{3khn6THwfFkU5jiH.cjs → D66WJ7L44lH-gqEs.cjs} +2 -2
- package/browser/cjs/{BQqQus7GNCcRanky.cjs → D7gvl_LJVORCBWTA.cjs} +1 -1
- package/browser/cjs/DCFKfo0Ks_YcBE8v.cjs +145 -0
- package/browser/cjs/{BgBZia5f0ckQO3tv.cjs → DD1C5KAehYscPt_U.cjs} +1 -1
- package/browser/cjs/{DsfbagZuh7gCZyZ8.cjs → DDRMd_y3PtDFdzBi.cjs} +2 -2
- package/browser/cjs/DF5NXM1lV0Jz4B1B.cjs +6 -0
- package/browser/cjs/{CJRGbGQR903TfsX2.cjs → DJi6RguPp8dklFKW.cjs} +1 -1
- package/browser/cjs/{B1YRBQSzaSCXrDlD.cjs → DOZnkhk5efb0CiB9.cjs} +2 -2
- package/browser/cjs/DR_fZ7-8acyZaLf_.cjs +19 -0
- package/browser/cjs/{CT96vwef1frE_xO5.cjs → DU-89orbH_T7qaL_.cjs} +2 -2
- package/browser/cjs/{DeRclvX0tjcH-5d2.cjs → DUn4qKP1csajZc4U.cjs} +1 -1
- package/browser/cjs/{BzFcYUyBS3xk7vSt.cjs → DXlz9YcBEiIGssXP.cjs} +1 -1
- package/browser/cjs/DrjMGXXyOnkOigI3.cjs +6 -0
- package/browser/cjs/{DzjzjVrsJAiGWj9X.cjs → Dsrylhr0rINLqxIo.cjs} +2 -2
- package/browser/cjs/{BnVqC38vXnNaYwta.cjs → DuF2g76E_LpdsOdz.cjs} +1 -1
- package/browser/cjs/{C9mIuhpLiGvTMK3B.cjs → DutZZ9gvn9J4bp35.cjs} +1 -1
- package/browser/cjs/{ZZZZKdW69P9OmQK5.cjs → G3x4UlaZ9MkYVc_H.cjs} +1 -1
- package/browser/cjs/{DactbGy-IDnFmHL7.cjs → JDc0LRRyF9OoLcKS.cjs} +1 -1
- package/browser/cjs/{k4_Gtj0ee7QZfher.cjs → NLVU73SQVRkwS4d0.cjs} +1 -1
- package/browser/cjs/{e4hIpC2H8SZs_FaH.cjs → VbpW0QWkLYTAJZ9w.cjs} +1 -1
- package/browser/cjs/WWBhcM7q4pZnnMeY.cjs +6 -0
- package/browser/cjs/{BndRovkKEbGeFsIH.cjs → ZF7PNrdu1G2yTlSk.cjs} +1 -1
- package/browser/cjs/_GxFAa8FZ2HuEH-n.cjs +15 -0
- package/browser/cjs/{x7GV7VCCkhxBkRVr.cjs → cr5ZnpTRS8qn8ngu.cjs} +2 -2
- package/browser/cjs/{BbqDvLB4XRAq8PjK.cjs → dL8JD9YUPUIBdJkl.cjs} +1 -1
- package/browser/cjs/{Dx_G16YNQRCCsesH.cjs → hvq3aBxxvks6uvKj.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{B3PJcVj-IGm2RK7S.cjs → nJzfcdG4V6pfF7h0.cjs} +5 -5
- package/browser/cjs/{BYe6FaSGXohfwifR.cjs → v338k5Im1PgN694P.cjs} +1 -1
- package/browser/esm/{CqSQOGGwktiMRz1z.mjs → 282jouDV7h31MJHQ.mjs} +5 -5
- package/{cdn/assets/CJN-uFq_MoeA5VM-.js → browser/esm/321FigfSIHj07fJF.mjs} +1 -1
- package/browser/esm/{DmZ4vbOEMyG1LvTc.mjs → 9MIReimVqrwIxqEh.mjs} +1 -1
- package/{cdn/assets/B9rnABCK7K6EEcUc.js → browser/esm/B-gztIZ7YM5iJ3wt.mjs} +17 -17
- package/browser/esm/{C50gVw8rEDbiul-B.mjs → B2OboXsiOvfvb8MH.mjs} +1 -1
- package/{cdn/assets/Ciwk37oa-xAQO86p.js → browser/esm/B9MJ-EmRjSDTv1w4.mjs} +1 -1
- package/browser/esm/{MMr5Kq6qb0K9sPfX.mjs → BISAvXzk3EtsunSD.mjs} +2 -2
- package/{cdn/assets/DoOlH6JiH7WXd0Qg.js → browser/esm/BJvO68MxNlLVN11J.mjs} +4 -4
- package/browser/esm/{CN5ju_1W5NIt_JCQ.mjs → BcB6Q7VGZgUIWt2j.mjs} +4 -4
- package/browser/esm/{BMNrxDrMdnAXIAiO.mjs → Bd38h6XDigUqNbcg.mjs} +67 -67
- package/browser/esm/{DngFb_8sfEsFaHaQ.mjs → Bivu8-qvZh-EDNQz.mjs} +1 -1
- package/browser/esm/{BNzwQyGLGh1tjzhn.mjs → Bw8K2kVeFl_Jw0P0.mjs} +1 -1
- package/browser/esm/{eiBFvjjW2dDKZjOF.mjs → C19ecRqHKBtGZDfI.mjs} +12 -12
- package/browser/esm/{BCS2lE8-uzpKYINn.mjs → C3qEhTp5YVVnZe5X.mjs} +7 -7
- package/browser/esm/{D4HHHmz1LQD5ETIe.mjs → CG-xcWmpigeW_Kx8.mjs} +168 -168
- package/browser/esm/{hdg94KDLbrr748yN.mjs → CI7wOlrf3eE6yN7V.mjs} +586 -586
- package/browser/esm/{CrpsPARYIAfu5oHf.mjs → CKFK8GcprNVEDHNa.mjs} +357 -356
- package/{cdn/assets/CJim-5oZhpIg7Vf4.js → browser/esm/CKfqzGFvOATXIjAg.mjs} +1 -1
- package/{cdn/assets/DGLvDjF4Ltazle05.js → browser/esm/CYyb69OWQjTFKZv7.mjs} +1 -1
- package/browser/esm/{VUyduI-iwcib6hbK.mjs → Ca3LaiFQ9rDcFlEo.mjs} +8 -8
- package/browser/esm/{DRXQI_U2zF18xL3R.mjs → Cawd10Vkye_QwId6.mjs} +2 -2
- package/{cdn/assets/BGrkjy07_4jYJwBH.js → browser/esm/CbJB9w-prfu6jjZ0.mjs} +1 -1
- package/browser/esm/{DbcUVpIOErroPO4b.mjs → CbXdVcSvxsdppPQ4.mjs} +75 -82
- package/browser/esm/{BXKAAavlpQcvnarE.mjs → CdwPs5lUbmC7U3Lf.mjs} +5 -5
- package/browser/esm/{BFDqHUU6NBrQYJ-F.mjs → Cl6khHlxvVnMqS0D.mjs} +7 -7
- package/browser/esm/{CXhxt8m9WX6gvLG1.mjs → Csz20JNLZYTSnN3K.mjs} +10 -10
- package/browser/esm/{JxKR3nJXui56hTBx.mjs → D1lQwvLcMPDvQDo3.mjs} +60 -60
- package/browser/esm/{BL9NSV4ILX2820PR.mjs → DAPBPRU-M2q2HiIn.mjs} +1 -1
- package/{cdn/assets/Dh_Pj2pa2DKQx8aH.js → browser/esm/DBR_WsF8TffwuBP5.mjs} +1 -1
- package/browser/esm/{DrQxuqUa-GmFG82t.mjs → DBW1hdmDRqaRvLdG.mjs} +1 -1
- package/browser/esm/{DBLTAEDLOALSC-7a.mjs → DFAD0oXlIppeZ1IQ.mjs} +6 -6
- package/{cdn/assets/C-SXSAOGAHA0bZUW.js → browser/esm/DFfg5BY06x9-h5wg.mjs} +34 -34
- package/browser/esm/{CdZXTJk-jNtcVXha.mjs → DH4lpkIZMn3CDh2L.mjs} +1 -1
- package/{cdn/assets/DeQHUGB9ottxRmbH.js → browser/esm/DJItiTiaGl2-0zAy.mjs} +1 -1
- package/browser/esm/{Ceq0QgfNVk9io8W8.mjs → DMOg-rB-O9FQsKkk.mjs} +5 -5
- package/{cdn/assets/CkCqmIbs1HHqbf34.js → browser/esm/DRygyzN5WothohKo.mjs} +1 -1
- package/browser/esm/{BxD3MYvWDk4f5t_w.mjs → DXNGyZw3edrDJuF1.mjs} +160 -160
- package/{cdn/assets/D8i0nz8-BvYAe8oj.js → browser/esm/DeG9MYnptEMw6Ci6.mjs} +1 -1
- package/browser/esm/{CAT2zqzqokcdysLX.mjs → Djig3YKXdV_mj88V.mjs} +193 -193
- package/browser/esm/{MqGfbbA-UIKBZ5Tg.mjs → Dm2C0SjlSYBZS9oV.mjs} +1 -1
- package/browser/esm/{DhfT1I2puhMG8qyB.mjs → DtMlg7r-7Kg2ayER.mjs} +1758 -1713
- package/{cdn/assets/CWPiSqGk_qGiuLTG.js → browser/esm/DvDXwlRVOM7de1QK.mjs} +1 -1
- package/browser/esm/{BSsqSjmoZaq9VjJ_.mjs → DxjMGNLar5dDlfH_.mjs} +1 -1
- package/{cdn/assets/DvN21qGioKQrYwy6.js → browser/esm/E33ZqiZAVm4cVSiH.mjs} +1 -1
- package/browser/esm/{C30vxb2B-wCWYHyT.mjs → I3vLnXgPWzkEMtym.mjs} +13 -13
- package/browser/esm/{DjMBFC3zWPemXx3O.mjs → K61zfEs7RrucoPnb.mjs} +15436 -15311
- package/browser/esm/{COCcNVFiLmqqNfVi.mjs → PgD4CyzbD_U5krXX.mjs} +1 -1
- package/{cdn/assets/CBnB_qT-UB_ZNgr9.js → browser/esm/PrQ3OVkLkyIlDEHZ.mjs} +38 -38
- package/{cdn/assets/DimykeZaWz3Rxvru.js → browser/esm/SvSuP9M_jWMrPq63.mjs} +1 -1
- package/browser/esm/{CjkleAGl3FPE0lTt.mjs → Zhy5PMTCSYaidSab.mjs} +9 -9
- package/browser/esm/{BtJtQbcCcJQwi2Ye.mjs → cJvqQx_I0x7ktXkn.mjs} +8 -8
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CiyMv2h97cqIcynz.mjs → jKFK6KscRWBH7tPf.mjs} +3 -3
- package/browser/esm/{CYgmtE8McBoj3TaY.mjs → lgGOpw-8ydsoTisK.mjs} +7 -7
- package/browser/esm/{DhKU9Oa9vYS0eExH.mjs → uKUM2sxpQwuh_nK7.mjs} +1 -1
- package/{cdn/assets/EWdHaNI3cfEdN2qZ.js → browser/esm/wDr5_PkewoAFIrSf.mjs} +17 -17
- package/{cdn/assets/TbcqA8k5V12hx--M.js → browser/esm/wLe5ErQZrZcWaars.mjs} +1 -1
- package/{cdn/assets/D2g6xWYtxhSSbeIg.js → browser/esm/zudk-msJM8N8TvQw.mjs} +1 -1
- package/{browser/esm/CJN-uFq_MoeA5VM-.mjs → cdn/assets/321FigfSIHj07fJF.js} +1 -1
- package/cdn/assets/{DCy4YIoci_md9gam.js → 90jiHAR6NVWs1jzk.js} +11 -11
- package/cdn/assets/{DmZ4vbOEMyG1LvTc.js → 9MIReimVqrwIxqEh.js} +1 -1
- package/cdn/assets/9Zm1kh3NR1JoshnB.js +22 -0
- package/{browser/esm/C_6cfOrpNv_R0fzp.mjs → cdn/assets/AWYiFPClRuayIl9x.js} +6 -6
- package/cdn/assets/{DMh4HTxSNspJWLf6.js → B-4pX265Exs8Q3Ic.js} +8 -8
- package/cdn/assets/{C50gVw8rEDbiul-B.js → B2OboXsiOvfvb8MH.js} +1 -1
- package/cdn/assets/{CKLIeTejFu3Chzc0.js → B4YJTAf0poVXP8L5.js} +2 -2
- package/{browser/esm/Ciwk37oa-xAQO86p.mjs → cdn/assets/B9MJ-EmRjSDTv1w4.js} +1 -1
- package/cdn/assets/{BcwnerrAZQ4U26yF.js → BCpiEapQ9ORxsm8i.js} +17 -17
- package/cdn/assets/{BLlBmq17Ns85SGIy.js → BDpsB4gB5WlFNaD9.js} +3 -3
- package/{browser/esm/DoOlH6JiH7WXd0Qg.mjs → cdn/assets/BJvO68MxNlLVN11J.js} +4 -4
- package/cdn/assets/{Bc88uy0uKB2E8nZF.js → BM7LiF_a2pzxiL9z.js} +9 -9
- package/cdn/assets/{DngFb_8sfEsFaHaQ.js → Bivu8-qvZh-EDNQz.js} +1 -1
- package/cdn/assets/{CONhxNzXu71azh3U.js → BoaBdKMl_TI4KOG4.js} +1 -1
- package/cdn/assets/{BNzwQyGLGh1tjzhn.js → Bw8K2kVeFl_Jw0P0.js} +1 -1
- package/cdn/assets/{DOL53NVAyIA3BCpu.js → BzNkHK2uCe3sZJjM.js} +3 -3
- package/cdn/assets/{CpzbAOY6S-fCGokT.js → C3Uwcfkr3Vxb1l6W.js} +3 -3
- package/cdn/assets/{DBySRnkeKApkqWoJ.js → C5PTWP3-CKX2W7rN.js} +4 -4
- package/cdn/assets/{Cr3aHpBRlCcE0133.js → C7NcQPRjBbbwZPYQ.js} +12 -12
- package/cdn/assets/{YDKdfPwqd5jfl-N0.js → CHbRDN7qNXFI7ERc.js} +10 -10
- package/cdn/assets/{hdg94KDLbrr748yN.js → CI7wOlrf3eE6yN7V.js} +586 -586
- package/cdn/assets/{CrpsPARYIAfu5oHf.js → CKFK8GcprNVEDHNa.js} +357 -356
- package/{browser/esm/CJim-5oZhpIg7Vf4.mjs → cdn/assets/CKfqzGFvOATXIjAg.js} +1 -1
- package/{browser/esm/DGLvDjF4Ltazle05.mjs → cdn/assets/CYyb69OWQjTFKZv7.js} +1 -1
- package/cdn/assets/{Boy7yvaVLE0PsPuH.js → C_xB0pERAopiMdvi.js} +2 -2
- package/cdn/assets/{BtXaxs1sazydxVbz.js → CaCiTJE2_MJc90Mb.js} +16388 -16263
- package/cdn/assets/{DAqZessyZO7y1dzE.js → Cavphgcoa0QAHI4t.js} +4 -4
- package/{browser/esm/BGrkjy07_4jYJwBH.mjs → cdn/assets/CbJB9w-prfu6jjZ0.js} +1 -1
- package/cdn/assets/{DbcUVpIOErroPO4b.js → CbXdVcSvxsdppPQ4.js} +75 -82
- package/cdn/assets/{B7YLlVtTf8SyjRxl.js → CxYYYES99eqMaXS6.js} +53 -53
- package/cdn/assets/{RgTun6OehOIz_L1Y.js → CyxLxezaPBJ7ttzY.js} +1758 -1713
- package/cdn/assets/{CrjpZUy5OEHTDbj6.js → D3Fizhhok4urArOz.js} +168 -168
- package/cdn/assets/{vcOEiIk1OYCnaDRj.js → D96I9AC-G_mJQ17A.js} +7 -7
- package/cdn/assets/{BitXsx5qKVZKyUTJ.js → D9ExW89xyL0Yg3Rt.js} +5 -5
- package/cdn/assets/{BL9NSV4ILX2820PR.js → DAPBPRU-M2q2HiIn.js} +1 -1
- package/{browser/esm/Dh_Pj2pa2DKQx8aH.mjs → cdn/assets/DBR_WsF8TffwuBP5.js} +1 -1
- package/cdn/assets/{DrQxuqUa-GmFG82t.js → DBW1hdmDRqaRvLdG.js} +1 -1
- package/cdn/assets/{CdZXTJk-jNtcVXha.js → DH4lpkIZMn3CDh2L.js} +1 -1
- package/{browser/esm/DeQHUGB9ottxRmbH.mjs → cdn/assets/DJItiTiaGl2-0zAy.js} +1 -1
- package/cdn/assets/{usddELzSbbsMIYFT.js → DNItKxoG_Q2f6LZH.js} +9 -9
- package/{browser/esm/CkCqmIbs1HHqbf34.mjs → cdn/assets/DRygyzN5WothohKo.js} +1 -1
- package/cdn/assets/{BIRDVeAokEioxEMg.js → DSEAFlw0g7QF2Mfu.js} +12 -12
- package/cdn/assets/{DX-j8vaA1R6x38jO.js → DU9-sbmPBpyK8ktC.js} +8 -8
- package/cdn/assets/{BfgS5gIABj2bHJof.js → D_F8ngmTDFKi26MZ.js} +69 -69
- package/{browser/esm/D8i0nz8-BvYAe8oj.mjs → cdn/assets/DeG9MYnptEMw6Ci6.js} +1 -1
- package/cdn/assets/{MqGfbbA-UIKBZ5Tg.js → Dm2C0SjlSYBZS9oV.js} +1 -1
- package/cdn/assets/{BNJIXyHxPjWIalrP.js → DoX3XAVH8Iy19wb6.js} +4 -4
- package/{browser/esm/CWPiSqGk_qGiuLTG.mjs → cdn/assets/DvDXwlRVOM7de1QK.js} +1 -1
- package/cdn/assets/{DALlODXPDn6BGsXV.js → DwjBlRF-rzuhl244.js} +26 -26
- package/cdn/assets/{BSsqSjmoZaq9VjJ_.js → DxjMGNLar5dDlfH_.js} +1 -1
- package/{browser/esm/DvN21qGioKQrYwy6.mjs → cdn/assets/E33ZqiZAVm4cVSiH.js} +1 -1
- package/{browser/esm/DSze70JHdAh2o4p9.mjs → cdn/assets/EFp9HFyLmGj1_WJp.js} +17 -17
- package/cdn/assets/{YyvEF1qZsZDaA58n.js → Gigloq__yXekS86R.js} +21 -21
- package/cdn/assets/{COCcNVFiLmqqNfVi.js → PgD4CyzbD_U5krXX.js} +1 -1
- package/{browser/esm/CBnB_qT-UB_ZNgr9.mjs → cdn/assets/PrQ3OVkLkyIlDEHZ.js} +38 -38
- package/{browser/esm/DimykeZaWz3Rxvru.mjs → cdn/assets/SvSuP9M_jWMrPq63.js} +1 -1
- package/cdn/assets/{B2NFKI-3rXb76mvP.js → WWXOc9ZGS04IoLgi.js} +160 -160
- package/cdn/assets/{BDCRKnCTXynByvqI.js → qg_xcC9otctUkCnM.js} +7 -7
- package/cdn/assets/{fMhtLphCYHJcJ0rQ.js → u2X7MYw3x6jMX0Hz.js} +195 -195
- package/cdn/assets/{DhKU9Oa9vYS0eExH.js → uKUM2sxpQwuh_nK7.js} +1 -1
- package/{browser/esm/EWdHaNI3cfEdN2qZ.mjs → cdn/assets/wDr5_PkewoAFIrSf.js} +17 -17
- package/{browser/esm/TbcqA8k5V12hx--M.mjs → cdn/assets/wLe5ErQZrZcWaars.js} +1 -1
- package/{browser/esm/D2g6xWYtxhSSbeIg.mjs → cdn/assets/zudk-msJM8N8TvQw.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/BH0JlnXxs_y9xAfD.cjs +0 -15
- package/browser/cjs/BIOXqmoH-9ZdUMHO.cjs +0 -15
- package/browser/cjs/BVefqxsvansu52pf.cjs +0 -19
- package/browser/cjs/BWzl7ZXSHwavO1h4.cjs +0 -6
- package/browser/cjs/C_nqx5jy0WdS5eUt.cjs +0 -14
- package/browser/cjs/CjaswnmozG1Wnkph.cjs +0 -161
- package/browser/cjs/Ck162yhI8a8AzP2Y.cjs +0 -6
- package/browser/cjs/DEd-uOI_8EwTswrZ.cjs +0 -6
- package/browser/cjs/DRa2LS1ZYygPeKIb.cjs +0 -145
- package/browser/cjs/Deuzq2vrUnAdRwxw.cjs +0 -330
- package/browser/cjs/DhZX40l9OVd1jfAd.cjs +0 -16
- package/browser/cjs/Dz-80wbKR9gluvY0.cjs +0 -124
- package/browser/cjs/LVJHt4cXqQ6d6uQv.cjs +0 -11
- package/browser/cjs/NOXwAG1U2GSI3--B.cjs +0 -42
- package/browser/cjs/PJxjbBQ6T_x_8d3R.cjs +0 -7
- package/browser/cjs/Rs4SPldcFaR25pkN.cjs +0 -6
- package/browser/cjs/Uy4-KgVmrHLJmZPY.cjs +0 -12
- package/browser/cjs/VMrvwITLckOb9OZJ.cjs +0 -6
- package/browser/cjs/oZeX-CFYY8CzIcSm.cjs +0 -7
- package/cdn/assets/DYF0w_-PnC9qTlpv.js +0 -22
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.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 u=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./Cx89ds7YFppm4HH8.cjs"),Ke=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ys=new RegExp(`^[${Ke}][-${Ke}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(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 Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(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},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Qt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,W=13,Ht=33,ot=10,St=60,Gt=61,j=62,F=63,Zt=93,pe=i=>i===34||i===39,as=[34,39],Es=[...as,91,j],Ps=[...as,St,Zt],Os=[Gt,F,...ns],Is=[...ns,j,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);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 ge: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 Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={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 Ns{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=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=ts,this.isName=Ls,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(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[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 I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;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 I;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 ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;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===lt?ot: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===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;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 lt:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
-
`,s=this.i,n=ot;break;case I: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===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,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 St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Es);switch(t){case
|
|
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 I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(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
|
|
8
|
+
`,s=this.i,n=ot;break;case I: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===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,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 St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Es);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(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(Ps);t!==I&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===St?this.state=6:pe(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===j?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===j&&(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 lt: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 I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(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!==j?(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 j: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===I)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?Ht: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===j){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!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Ht}sXMLDeclName(){const t=this.captureTo(Os);if(t===F)return this.state=Ht,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=Ht,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=Ht,void this.fail("XML declaration is incomplete.");z(t)||(pe(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=Ht,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)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=Ht}sXMLDeclEnding(){this.getCodeNorm()===j?(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===I)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 j: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()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===j?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===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(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 ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I: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===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I: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 St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}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 j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
10
|
`),t=this.i,s=0;break;case I: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 St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}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 lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
-
`),t=this.i;break;case I: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 c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}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:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(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:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=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 Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)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,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(V==null||(V=m[H](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,H)=>{const q=P(H??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const H=P(V??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const q=H?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=H.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(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 c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,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 c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(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 c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.N.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=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 $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Fs=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./DRa2LS1ZYygPeKIb.cjs")),T=Promise.resolve().then(()=>require("./Rs4SPldcFaR25pkN.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./LVJHt4cXqQ6d6uQv.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.vm,m=y.beginPersist(),V={},H=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=((M,be,xe,we,Xt=null)=>{if(!M)return null;const tt=De(M,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get(M);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,Q,Jt,_,G,Z,wt)=>{const h=new Rs,J=new u.Ve.TransposedBuilder;let j=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.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 C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(Z?.(`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",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.cu.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.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",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.Qr.fastStringToRange(p,is).colStart,pt=u.Qr.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{j=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(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",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.Qr.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.Qr.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.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?Q(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Q(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Q(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.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=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="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",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.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",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const ms={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Jt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Dt=null,Yt=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],Fe=u.Qr.normalizeA1ToR1C1,je=u.Zt.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.Zt.createConflatingRanges();let ee,Et=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",We="",qe="",_e="",ze="",Ue="",Qe="",Ge="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done($s);const k=g.length;if(k>0){const $=new Array(k);for(let N=0;N<k;N++){const at=g[N],Mt=u.Qr.rangeToString(at),$t=at.value[1],ie=u.Qr.resolveRelativeToA1($t,at.rowStart,at.colStart);$[N]=[Mt,ie]}r.formulas=$}const st=Xe.done(!0),R=st.length;if(R>0){const $=new Array(R);for(let N=0;N<R;N++){const at=st[N],Mt=u.Qr.rangeToString(at);$[N]=Mt}r.volatile=$}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const $=[];let N=null,at=-1,Mt=-1,$t=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(N=qt[0],at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value,$.push(N));for(let Ft=1;Ft<Ze;Ft++)vt=qt[Ft],ie!==vt.value||at!==vt.colStart||Mt!==vt.colEnd||$t+1!==vt.rowEnd?($.push(vt),N=vt,at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value):($t=vt.rowEnd,N.rowEnd=$t);let Je=[];for(let Ft=0;Ft<$.length;Ft++){const oe=$[Ft];Je.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Je}const it=e.build();if(it){const $=it.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Dt=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Et=!0)}return void(Et&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.Qr.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Et=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Rt&&Rt.value===$&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:$},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ht.CustomHeight),Pt!==qe&&(mt=!0,qe=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Ht.Ht),zt!==We&&(mt=!0,We=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ht.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ht.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ht.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ht.OutlineLevel),Lt!==Qe&&(mt=!0,Qe=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ht.Collapsed),Nt!==Ge&&(mt=!0,Ge=Nt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),$=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:$,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Et)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Et=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.Qr.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Et=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Dt)if(Me===Dt)nt=$e;else{if(nt=He.get(Dt),!nt){const k=[];de=Fe(g,B,K,k),nt=[de,k,g],He.set(Dt,nt)}Me=Dt,$e=nt}if(_t){const k=[];de=Fe(g,B,K,k),nt=[de,k,g]}if(nt)return je.append(B,K,nt),nt=null,_t=!1,Dt=null,void(Yt=null);Et?C?.onText(g):rt||l?.onText(g)}}})(J,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,Q=!1)=>ae(L,M,Q)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Bt=ss(M,ne),xt=await(async(L,Q=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./Ck162yhI8a8AzP2Y.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const G=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=G.byteLength)return void Z.close();const wt=G.subarray(_,Math.min(_+Q,G.byteLength)),h=Jt.decode(wt,{stream:_+Q<G.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const Wt=fe(M,ut);let kt,Re=new Map;if(Wt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let Q;Wt.forEach((_,G)=>{_.type===L&&(kt=ae(G,M,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,G)=>{_.type===Jt&&(Q=ae(G,M,!1,ut))}),Q||kt){const _=kt??[],G=Q?.comments;if(G){const Z=Q?.authors;for(let wt=0;wt<G.length;wt++){const h=G[wt];let J=h.authorId!==void 0?Z[h.authorId]:void 0;if((!J||J.startsWith("tc="))&&(J=ls(J.substring(3)),Re.has(J)))continue;let j=ce.get(J);j||(j=Ve.get(J)),j||(j={id:u.Xt.uuidV4(),displayName:J},Ve.set(j.displayName,j),ce.set(j.id,j)),J=j?.id??null;const ue={id:u.Xt.uuidV4(),personId:J,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?ss(M,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),H.add(et),m.toResourceId(et)},yt):De(M,ne,f,P,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.Ol(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.re(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.ny(gs);return H.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.oe&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DRa2LS1ZYygPeKIb.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.Ft.Type.General&&(f===u.Ft.Type.ShortDate?f="m/d/yyyy":f===u.Ft.Type.MediumDate?f="d-mmm-yy":f===u.Ft.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Ft.Type.ShortTime?f="h:mm":f===u.Ft.Type.MediumTime?f="h:mm AM/PM":f===u.Ft.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}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=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=Fs,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
11
|
+
`),t=this.i;break;case I: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 c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}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:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(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:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Qt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=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 Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)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,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let X=0;X<m.length;X++)if(V==null||(V=m[X](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,X)=>{const q=P(X??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const X=P(V??y,m);X!==void 0&&(b.source[y]=X)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const X=n.get(m);if(c={local:m,visitor:X,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,X&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const X=a.pop()??null;c=a[a.length-1]??null;const q=X?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=X.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(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 c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,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 c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(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 c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.N.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Xt{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 $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./DCFKfo0Ks_YcBE8v.cjs")),T=Promise.resolve().then(()=>require("./DrjMGXXyOnkOigI3.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./B9gppe9yylOBVjlO.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Om,m=y.beginPersist(),V={},X=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=((M,be,xe,we,Ft=null)=>{if(!M)return null;const tt=De(M,be,xe,we,Ft);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=P?.getVisitorParamsState().get("dxfs");let Ft=ut.get(M);if(!Ft)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Ft=tt;const et=async()=>{const bt=((L,G,Jt,_,Z,Q,wt)=>{const h=new Rs,J=new u.We.TransposedBuilder;let H=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.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 C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(Q?.(`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",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.wd.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.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",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.ao.fastStringToRange(p,is).colStart,pt=u.ao.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(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",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.ao.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.ao.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.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?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.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=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="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",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.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",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const ms={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Jt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Dt=null,Yt=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],je=u.ao.normalizeA1ToR1C1,He=u.Zt.createConflatingRanges(),Xe=new Map,ve=[];let te=null;const Fe=u.Zt.createConflatingRanges();let ee,Et=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",We="",qe="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done($s);const k=g.length;if(k>0){const $=new Array(k);for(let N=0;N<k;N++){const at=g[N],Mt=u.ao.rangeToString(at),$t=at.value[1],ie=u.ao.resolveRelativeToA1($t,at.rowStart,at.colStart);$[N]=[Mt,ie]}r.formulas=$}const st=Fe.done(!0),R=st.length;if(R>0){const $=new Array(R);for(let N=0;N<R;N++){const at=st[N],Mt=u.ao.rangeToString(at);$[N]=Mt}r.volatile=$}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const $=[];let N=null,at=-1,Mt=-1,$t=-1,ie=-1,vt=null;const Qe=qt.length;Qe>0&&(N=qt[0],at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value,$.push(N));for(let jt=1;jt<Qe;jt++)vt=qt[jt],ie!==vt.value||at!==vt.colStart||Mt!==vt.colEnd||$t+1!==vt.rowEnd?($.push(vt),N=vt,at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value):($t=vt.rowEnd,N.rowEnd=$t);let Je=[];for(let jt=0;jt<$.length;jt++){const oe=$[jt];Je.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Je}const it=e.build();if(it){const $=it.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Dt=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Fe.append(B,K);break;case"is":return void(Et=!0)}return void(Et&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.ao.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Et=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Rt&&Rt.value===$&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:$},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Xt.CustomHeight),Pt!==qe&&(mt=!0,qe=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Xt.Ht),zt!==We&&(mt=!0,We=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Xt.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Xt.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Xt.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Xt.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Xt.Collapsed),Nt!==Ze&&(mt=!0,Ze=Nt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),$=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:$,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Et)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Et=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.ao.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Et=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Dt)if(Me===Dt)nt=$e;else{if(nt=Xe.get(Dt),!nt){const k=[];de=je(g,B,K,k),nt=[de,k,g],Xe.set(Dt,nt)}Me=Dt,$e=nt}if(_t){const k=[];de=je(g,B,K,k),nt=[de,k,g]}if(nt)return He.append(B,K,nt),nt=null,_t=!1,Dt=null,void(Yt=null);Et?C?.onText(g):rt||l?.onText(g)}}})(J,L,h.createEventHandler(L,()=>{},Q),Q,ms,wt)})(tt,(L,G=!1)=>ae(L,M,G)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Bt=ss(M,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Q}=await Promise.resolve().then(()=>require("./Bm0v2rjm2HlzxhYA.cjs"));globalThis.ReadableStream=Q}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Z=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Q){if(_>=Z.byteLength)return void Q.close();const wt=Z.subarray(_,Math.min(_+G,Z.byteLength)),h=Jt.decode(wt,{stream:_+G<Z.byteLength});Q.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const Wt=fe(M,ut);let kt,Re=new Map;if(Wt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Wt.forEach((_,Z)=>{_.type===L&&(kt=ae(Z,M,!1,ut)?.comments,kt&&kt.forEach(Q=>{Re.set(Q.id,Q)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,Z)=>{_.type===Jt&&(G=ae(Z,M,!1,ut))}),G||kt){const _=kt??[],Z=G?.comments;if(Z){const Q=G?.authors;for(let wt=0;wt<Z.length;wt++){const h=Z[wt];let J=h.authorId!==void 0?Q[h.authorId]:void 0;if((!J||J.startsWith("tc="))&&(J=ls(J.substring(3)),Re.has(J)))continue;let H=ce.get(J);H||(H=Ve.get(J)),H||(H={id:u.Xt.uuidV4(),displayName:J},Ve.set(H.displayName,H),ce.set(H.id,H)),J=H?.id??null;const ue={id:u.Xt.uuidV4(),personId:J,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Ft=Y?ss(M,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),X.add(et),m.toResourceId(et)},yt):De(M,ne,f,P,yt);return Ft},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.jl(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.re(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.wy(gs);return X.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.oe&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DCFKfo0Ks_YcBE8v.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.Lt.Type.General&&(f===u.Lt.Type.ShortDate?f="m/d/yyyy":f===u.Lt.Type.MediumDate?f="d-mmm-yy":f===u.Lt.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Lt.Type.ShortTime?f="h:mm":f===u.Lt.Type.MediumTime?f="h:mm AM/PM":f===u.Lt.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}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=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.7
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ce,ue,ne={},ee={},U={},oe={},H={};function Ne(){if(ue)return H;ue=1;var g=H&&H.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=H&&H.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return(function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([D,O])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.JsDelivrSourceResolver=void 0;var j=(function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e})();return H.JsDelivrSourceResolver=j,H}var le,pe,he,N={},V={};function se(){if(pe)return le;function g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function x(e,t){for(var o,n="",r=0,s=-1,l=0,f=0;f<=e.length;++f){if(f<e.length)o=e.charCodeAt(f);else{if(o===47)break;o=47}if(o===47){if(s!==f-1&&l!==1)if(s!==f-1&&l===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var D=n.lastIndexOf("/");if(D!==n.length-1){D===-1?(n="",r=0):r=(n=n.slice(0,D)).length-1-n.lastIndexOf("/"),s=f,l=0;continue}}else if(n.length===2||n.length===1){n="",r=0,s=f,l=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(s+1,f):n=e.slice(s+1,f),r=f-s-1;s=f,l=0}else o===46&&l!==-1?++l:l=-1}return n}pe=1;var j={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(e===void 0&&(e=process.cwd()),r=e),g(r),r.length!==0&&(t=r+"/"+t,o=r.charCodeAt(0)===47)}return t=x(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(g(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return(e=x(e,!t)).length!==0||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return g(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];g(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":j.normalize(e)},relative:function(e,t){if(g(e),g(t),e===t||(e=j.resolve(e))===(t=j.resolve(t)))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var n=e.length,r=n-o,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var l=t.length-s,f=r<l?r:l,D=-1,O=0;O<=f;++O){if(O===f){if(l>f){if(t.charCodeAt(s+O)===47)return t.slice(s+O+1);if(O===0)return t.slice(s+O)}else r>f&&(e.charCodeAt(o+O)===47?D=O:O===0&&(D=0));break}var c=e.charCodeAt(o+O);if(c!==t.charCodeAt(s+O))break;c===47&&(D=O)}var i="";for(O=o+D+1;O<=n;++O)O!==n&&e.charCodeAt(O)!==47||(i.length===0?i+="..":i+="/..");return i.length>0?i+t.slice(s+D):(s+=D,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(g(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,n=-1,r=!0,s=e.length-1;s>=1;--s)if((t=e.charCodeAt(s))===47){if(!r){n=s;break}}else r=!1;return n===-1?o?"/":".":o&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');g(e);var o,n=0,r=-1,s=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,f=-1;for(o=e.length-1;o>=0;--o){var D=e.charCodeAt(o);if(D===47){if(!s){n=o+1;break}}else f===-1&&(s=!1,f=o+1),l>=0&&(D===t.charCodeAt(l)?--l===-1&&(r=o):(l=-1,r=f))}return n===r?r=f:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else r===-1&&(s=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){g(e);for(var t=-1,o=0,n=-1,r=!0,s=0,l=e.length-1;l>=0;--l){var f=e.charCodeAt(l);if(f!==47)n===-1&&(r=!1,n=l+1),f===46?t===-1?t=l:s!==1&&(s=1):t!==-1&&(s=-1);else if(!r){o=l+1;break}}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return o=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),o?o===t.root?o+n:o+"/"+n:n;var t,o,n},parse:function(e){g(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o,n=e.charCodeAt(0),r=n===47;r?(t.root="/",o=1):o=0;for(var s=-1,l=0,f=-1,D=!0,O=e.length-1,c=0;O>=o;--O)if((n=e.charCodeAt(O))!==47)f===-1&&(D=!1,f=O+1),n===46?s===-1?s=O:c!==1&&(c=1):s!==-1&&(c=-1);else if(!D){l=O+1;break}return s===-1||f===-1||c===0||c===1&&s===f-1&&s===l+1?f!==-1&&(t.base=t.name=l===0&&r?e.slice(1,f):e.slice(l,f)):(l===0&&r?(t.name=e.slice(1,s),t.base=e.slice(1,f)):(t.name=e.slice(l,s),t.base=e.slice(l,f)),t.ext=e.slice(s,f)),l>0?t.dir=e.slice(0,l-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return j.posix=j,le=j}var fe,te={};function Ie(){if(fe)return te;fe=1;var g=te&&te.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(te,"__esModule",{value:!0}),te.importResourcePathToString=void 0;var x=g(se());return te.importResourcePathToString=function(j){var e;switch(j.kind){case"package":return x.default.join(j.packageName,(e=j.importPath)!==null&&e!==void 0?e:"","package.json");case"relative":return x.default.join(j.sourcePath,j.importPath);case"relative-in-package":return x.default.join(j.packageName,j.sourcePath,j.importPath)}},te}var de,ie={};function ve(){return de||(de=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.invokeUpdate=void 0,ie.invokeUpdate=function(g,x){var j,e="".concat(g.type,": ");switch(g.type){case"CodeChanged":case"ResolveNewImports":e+="";break;case"LookedUpTypeFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":e+='package.json for package "'.concat(g.package,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up").concat(g.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":e+='"'.concat(g.importPath,'" was loaded from cache');break;case"StoredToCache":e+='"'.concat(g.importPath,'" was stored to cache')}e.endsWith(": ")&&(e=e.slice(void 0,-2)),(j=x.onUpdate)===null||j===void 0||j.call(x,g,e)}),ie}var ye,ge,me,be,ae={};function ke(){if(ye)return ae;ye=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.RecursionDepth=void 0;var g=(function(){function x(j,e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.options=j,this.fileRecursionDepth=e,this.packageRecursionDepth=t}return x.prototype.nextPackage=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},x.prototype.nextFile=function(){return new x(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},x.prototype.same=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},x.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},x})();return ae.RecursionDepth=g,ae}function Le(){if(me)return U;me=1;var g=U&&U.__assign||function(){return g=Object.assign||function(i){for(var b,k=1,A=arguments.length;k<A;k++)for(var y in b=arguments[k])Object.prototype.hasOwnProperty.call(b,y)&&(i[y]=b[y]);return i},g.apply(this,arguments)},x=U&&U.__createBinding||(Object.create?function(i,b,k,A){A===void 0&&(A=k);var y=Object.getOwnPropertyDescriptor(b,k);y&&!("get"in y?!b.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return b[k]}}),Object.defineProperty(i,A,y)}:function(i,b,k,A){A===void 0&&(A=k),i[A]=b[k]}),j=U&&U.__setModuleDefault||(Object.create?function(i,b){Object.defineProperty(i,"default",{enumerable:!0,value:b})}:function(i,b){i.default=b}),e=U&&U.__importStar||function(i){if(i&&i.__esModule)return i;var b={};if(i!=null)for(var k in i)k!=="default"&&Object.prototype.hasOwnProperty.call(i,k)&&x(b,i,k);return j(b,i),b},t=U&&U.__awaiter||function(i,b,k,A){return new(k||(k=Promise))(function(y,T){function E(X){try{Z(A.next(X))}catch(R){T(R)}}function Y(X){try{Z(A.throw(X))}catch(R){T(R)}}function Z(X){var R;X.done?y(X.value):(R=X.value,R instanceof k?R:new k(function(G){G(R)})).then(E,Y)}Z((A=A.apply(i,b||[])).next())})},o=U&&U.__generator||function(i,b){var k,A,y,T,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function Y(Z){return function(X){return(function(R){if(k)throw new TypeError("Generator is already executing.");for(;E;)try{if(k=1,A&&(y=2&R[0]?A.return:R[0]?A.throw||((y=A.return)&&y.call(A),0):A.next)&&!(y=y.call(A,R[1])).done)return y;switch(A=0,y&&(R=[2&R[0],y.value]),R[0]){case 0:case 1:y=R;break;case 4:return E.label++,{value:R[1],done:!1};case 5:E.label++,A=R[1],R=[0];continue;case 7:R=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||R[0]!==6&&R[0]!==2)){E=0;continue}if(R[0]===3&&(!y||R[1]>y[0]&&R[1]<y[3])){E.label=R[1];break}if(R[0]===6&&E.label<y[1]){E.label=y[1],y=R;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(R);break}y[2]&&E.ops.pop(),E.trys.pop();continue}R=b.call(i,E)}catch(G){R=[6,G],A=0}finally{k=y=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}})([Z,X])}}},n=U&&U.__values||function(i){var b=typeof Symbol=="function"&&Symbol.iterator,k=b&&i[b],A=0;if(k)return k.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&A>=i.length&&(i=void 0),{value:i&&i[A++],done:!i}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(U,"__esModule",{value:!0}),U.AutoTypingsCore=void 0;var r=(function(){if(ce)return oe;ce=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.DummySourceCache=void 0;var i=(function(){function b(){}return b.prototype.getFile=function(k){return Promise.resolve(void 0)},b.prototype.isFileAvailable=function(k){return Promise.resolve(!1)},b.prototype.storeFile=function(k,A){return Promise.resolve(void 0)},b.prototype.clear=function(){return Promise.resolve(void 0)},b})();return oe.DummySourceCache=i,oe})(),s=Ne(),l=(function(){if(ge)return N;ge=1;var i=N&&N.__assign||function(){return i=Object.assign||function(_){for(var a,h=1,v=arguments.length;h<v;h++)for(var u in a=arguments[h])Object.prototype.hasOwnProperty.call(a,u)&&(_[u]=a[u]);return _},i.apply(this,arguments)},b=N&&N.__createBinding||(Object.create?function(_,a,h,v){v===void 0&&(v=h);var u=Object.getOwnPropertyDescriptor(a,h);u&&!("get"in u?!a.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return a[h]}}),Object.defineProperty(_,v,u)}:function(_,a,h,v){v===void 0&&(v=h),_[v]=a[h]}),k=N&&N.__setModuleDefault||(Object.create?function(_,a){Object.defineProperty(_,"default",{enumerable:!0,value:a})}:function(_,a){_.default=a}),A=N&&N.__importStar||function(_){if(_&&_.__esModule)return _;var a={};if(_!=null)for(var h in _)h!=="default"&&Object.prototype.hasOwnProperty.call(_,h)&&b(a,_,h);return k(a,_),a},y=N&&N.__awaiter||function(_,a,h,v){return new(h||(h=Promise))(function(u,S){function m(C){try{p(v.next(C))}catch(d){S(d)}}function w(C){try{p(v.throw(C))}catch(d){S(d)}}function p(C){var d;C.done?u(C.value):(d=C.value,d instanceof h?d:new h(function(P){P(d)})).then(m,w)}p((v=v.apply(_,a||[])).next())})},T=N&&N.__generator||function(_,a){var h,v,u,S,m={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return S={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function w(p){return function(C){return(function(d){if(h)throw new TypeError("Generator is already executing.");for(;m;)try{if(h=1,v&&(u=2&d[0]?v.return:d[0]?v.throw||((u=v.return)&&u.call(v),0):v.next)&&!(u=u.call(v,d[1])).done)return u;switch(v=0,u&&(d=[2&d[0],u.value]),d[0]){case 0:case 1:u=d;break;case 4:return m.label++,{value:d[1],done:!1};case 5:m.label++,v=d[1],d=[0];continue;case 7:d=m.ops.pop(),m.trys.pop();continue;default:if(!((u=(u=m.trys).length>0&&u[u.length-1])||d[0]!==6&&d[0]!==2)){m=0;continue}if(d[0]===3&&(!u||d[1]>u[0]&&d[1]<u[3])){m.label=d[1];break}if(d[0]===6&&m.label<u[1]){m.label=u[1],u=d;break}if(u&&m.label<u[2]){m.label=u[2],m.ops.push(d);break}u[2]&&m.ops.pop(),m.trys.pop();continue}d=a.call(_,m)}catch(P){d=[6,P],v=0}finally{h=u=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([p,C])}}},E=N&&N.__values||function(_){var a=typeof Symbol=="function"&&Symbol.iterator,h=a&&_[a],v=0;if(h)return h.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&v>=_.length&&(_=void 0),{value:_&&_[v++],done:!_}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=N&&N.__read||function(_,a){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var v,u,S=h.call(_),m=[];try{for(;(a===void 0||a-- >0)&&!(v=S.next()).done;)m.push(v.value)}catch(w){u={error:w}}finally{try{v&&!v.done&&(h=S.return)&&h.call(S)}finally{if(u)throw u.error}}return m};Object.defineProperty(N,"__esModule",{value:!0}),N.ImportResolver=void 0;var Z=(function(){if(he)return V;he=1;var _=V&&V.__createBinding||(Object.create?function(w,p,C,d){d===void 0&&(d=C);var P=Object.getOwnPropertyDescriptor(p,C);P&&!("get"in P?!p.__esModule:P.writable||P.configurable)||(P={enumerable:!0,get:function(){return p[C]}}),Object.defineProperty(w,d,P)}:function(w,p,C,d){d===void 0&&(d=C),w[d]=p[C]}),a=V&&V.__setModuleDefault||(Object.create?function(w,p){Object.defineProperty(w,"default",{enumerable:!0,value:p})}:function(w,p){w.default=p}),h=V&&V.__importStar||function(w){if(w&&w.__esModule)return w;var p={};if(w!=null)for(var C in w)C!=="default"&&Object.prototype.hasOwnProperty.call(w,C)&&_(p,w,C);return a(p,w),p},v=V&&V.__read||function(w,p){var C=typeof Symbol=="function"&&w[Symbol.iterator];if(!C)return w;var d,P,I=C.call(w),L=[];try{for(;(p===void 0||p-- >0)&&!(d=I.next()).done;)L.push(d.value)}catch(M){P={error:M}}finally{try{d&&!d.done&&(C=I.return)&&C.call(I)}finally{if(P)throw P.error}}return L},u=V&&V.__spreadArray||function(w,p,C){if(C||arguments.length===2)for(var d,P=0,I=p.length;P<I;P++)!d&&P in p||(d||(d=Array.prototype.slice.call(p,0,P)),d[P]=p[P]);return w.concat(d||Array.prototype.slice.call(p))};Object.defineProperty(V,"__esModule",{value:!0}),V.DependencyParser=void 0;var S=h(se()),m=(function(){function w(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return w.prototype.parseDependencies=function(p,C){var d=this;return u([],v(p.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(P){var I,L;return(L=(I=P[1])!==null&&I!==void 0?I:P[2])!==null&&L!==void 0?L:P[3]}).filter(function(P){return!!P}).map(function(P){return d.resolvePath(P,C)})},w.prototype.resolvePath=function(p,C){var d=p.match(this.REGEX_NODE_MODULE);if(d)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(d[1],".d.ts"),sourcePath:""};if(typeof C=="string"){if(p.startsWith("."))return{kind:"relative",importPath:p,sourcePath:C};if(p.startsWith("@")){var P=p.split("/");return{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}}return{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}switch(C.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return p.startsWith(".")?{kind:"relative-in-package",packageName:C.packageName,sourcePath:S.join(C.sourcePath,C.importPath),importPath:p}:p.startsWith("@")?(P=p.split("/"),{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}):{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}},w})();return V.DependencyParser=m,V})(),X=Ie(),R=A(se()),G=ve(),Me=ke(),Ue=(function(){function _(a){var h,v;if(this.options=a,this.loadedFiles=[],this.dependencyParser=new Z.DependencyParser,this.cache=a.sourceCache,this.sourceResolver=a.sourceResolver,this.newImportsResolved=!1,this.monaco=a.monaco,a.preloadPackages&&a.versions){this.versions=a.versions;try{for(var u=E(Object.entries(a.versions)),S=u.next();!S.done;S=u.next()){var m=Y(S.value,2),w=m[0];m[1],this.resolveImport({kind:"package",packageName:w,importPath:""},new Me.RecursionDepth(this.options)).catch(function(p){console.error(p)})}}catch(p){h={error:p}}finally{try{S&&!S.done&&(v=u.return)&&v.call(u)}finally{if(h)throw h.error}}}}return _.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},_.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},_.prototype.resolveImportsInFile=function(a,h,v){var u,S,m;return y(this,void 0,void 0,function(){var w,p,C,d,P,I,L,M;return T(this,function(F){switch(F.label){case 0:if(v.shouldStop())return[2];w=this.dependencyParser.parseDependencies(a,h),F.label=1;case 1:F.trys.push([1,8,9,10]),p=E(w),C=p.next(),F.label=2;case 2:if(C.done)return[3,7];d=C.value,F.label=3;case 3:return F.trys.push([3,5,,6]),[4,this.resolveImport(d,v)];case 4:return F.sent(),[3,6];case 5:return P=F.sent(),this.options.onError?(S=(u=this.options).onError)===null||S===void 0||S.call(u,(m=P.message)!==null&&m!==void 0?m:P):console.error(P),[3,6];case 6:return C=p.next(),[3,2];case 7:return[3,10];case 8:return I=F.sent(),L={error:I},[3,10];case 9:try{C&&!C.done&&(M=p.return)&&M.call(p)}finally{if(L)throw L.error}return[7];case 10:return[2]}})})},_.prototype.resolveImport=function(a,h){return y(this,void 0,void 0,function(){var v,u;return T(this,function(S){switch(S.label){case 0:if(v=this.hashImportResourcePath(a),this.loadedFiles.includes(v))return[2];switch(this.loadedFiles.push(v),a.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(a)];case 2:return(u=S.sent())?[4,this.resolveImportInPackage(u,h.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,S.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(a,h.nextFile())];case 8:return[2]}})})},_.prototype.resolveImportInPackage=function(a,h){return y(this,void 0,void 0,function(){var v,u,S;return T(this,function(m){switch(m.label){case 0:return[4,this.loadSourceFileContents(a)];case 1:return(v=m.sent())?(u=v.source,S=v.at,this.createModel(u,this.monaco.Uri.parse(this.options.fileRootPath+R.join("node_modules/".concat(a.packageName),S))),[4,this.resolveImportsInFile(u,{kind:"relative-in-package",packageName:a.packageName,sourcePath:R.dirname(S),importPath:""},h)]):[3,3];case 2:m.sent(),m.label=3;case 3:return[2]}})})},_.prototype.resolveImportFromPackageRoot=function(a){var h,v,u,S,m,w,p,C,d;return y(this,void 0,void 0,function(){var P,I,L,M,F,B,re,J,W;return T(this,function($){switch($.label){case 0:return P={type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(h=this.versions)!==null&&h!==void 0&&h[a.packageName]||(v=this.versions)!==null&&v!==void 0&&v["@types/"+a.packageName]?(I=(S=(u=a.importPath)===null||u===void 0?void 0:u.length)!==null&&S!==void 0&&S,L=I?"/".concat(a.importPath):"",[4,this.resolvePackageJson(a.packageName,(m=this.versions)===null||m===void 0?void 0:m[a.packageName],I?a.importPath:void 0)]):((0,G.invokeUpdate)(P,this.options),[2]);case 1:return(M=$.sent())||!I?[3,3]:[4,this.resolvePackageJson(a.packageName,(w=this.versions)===null||w===void 0?void 0:w[a.packageName])];case 2:M=$.sent(),L="",$.label=3;case 3:return M?(F=JSON.parse(M)).typings||F.types?(W=F.typings||F.types,this.createModel(M,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(a.packageName).concat(L,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(a.packageName,F.version),[2,{kind:"relative-in-package",packageName:a.packageName,sourcePath:"",importPath:R.join((p=a.importPath)!==null&&p!==void 0?p:"",W.startsWith("./")?W.slice(2):W)}]):[3,4]:[3,7];case 4:return B="@types/".concat(a.packageName.startsWith("@")?a.packageName.slice(1).replace(/\//,"__"):a.packageName),[4,this.resolvePackageJson(B,(C=this.versions)===null||C===void 0?void 0:C[B])];case 5:if(re=$.sent()){if((J=JSON.parse(re)).typings||J.types)return W=J.typings||J.types,this.createModel(re,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(B,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:B,definitelyTyped:!0,success:!0},this.options),this.setVersion(B,J.version),[2,{kind:"relative-in-package",packageName:B,sourcePath:"",importPath:R.join((d=a.importPath)!==null&&d!==void 0?d:"",W.startsWith("./")?W.slice(2):W)}];(0,G.invokeUpdate)(P,this.options)}else(0,G.invokeUpdate)(P,this.options);$.label=6;case 6:return[3,8];case 7:(0,G.invokeUpdate)(P,this.options),$.label=8;case 8:return[2]}})})},_.prototype.loadSourceFileContents=function(a){return y(this,void 0,void 0,function(){var h,v,u,S,m,w,p,C,d,P,I,L,M,F,B,re;return T(this,function(J){switch(J.label){case 0:return h=R.join(a.packageName,a.sourcePath,a.importPath),v={type:"LookedUpTypeFile",path:h,definitelyTyped:!1,success:!1},u=a.packageName,S=this.getVersion(a.packageName),(m=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(W){return a.importPath.endsWith(W)}).reduce(function(W,$){return W||$},!1)?[4,this.resolveSourceFile(u,S,R.join(a.sourcePath,a.importPath))]:[3,2];case 1:return(F=J.sent())?[2,{source:F,at:R.join(a.sourcePath,a.importPath)}]:[3,9];case 2:J.trys.push([2,7,8,9]),w=E(m),p=w.next(),J.label=3;case 3:return p.done?[3,6]:(C=p.value,d=R.join(a.sourcePath,a.importPath),M=(C===".d.ts"&&d.endsWith(".js")?d.slice(0,-3):d)+C,[4,this.resolveSourceFile(u,S,M)]);case 4:if(F=J.sent(),(0,G.invokeUpdate)({type:"AttemptedLookUpFile",path:R.join(u,M),success:!!F},this.options),F)return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=5;case 5:return p=w.next(),[3,3];case 6:return[3,9];case 7:return P=J.sent(),B={error:P},[3,9];case 8:try{p&&!p.done&&(re=w.return)&&re.call(w)}finally{if(B)throw B.error}return[7];case 9:return[4,this.resolvePackageJson(u,S,R.join(a.sourcePath,a.importPath))];case 10:return(I=J.sent())&&(L=JSON.parse(I).types)?(M=R.join(a.sourcePath,a.importPath,L),[4,this.resolveSourceFile(u,S,M)]):[3,12];case 11:if(F=J.sent())return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=12;case 12:return(0,G.invokeUpdate)(v,this.options),[2,null]}})})},_.prototype.getVersion=function(a){var h;return(h=this.versions)===null||h===void 0?void 0:h[a]},_.prototype.setVersions=function(a){var h,v;this.versions=a,(v=(h=this.options).onUpdateVersions)===null||v===void 0||v.call(h,a)},_.prototype.setVersion=function(a,h){var v;this.setVersions(i(i({},this.versions),((v={})[a]=h,v)))},_.prototype.createModel=function(a,h){h=h.with({path:h.path.replace("@types/","")}),this.monaco.editor.getModel(h)||(this.monaco.editor.createModel(a,"typescript",h),this.newImportsResolved=!0)},_.prototype.hashImportResourcePath=function(a){return(0,X.importResourcePathToString)(a)},_.prototype.resolvePackageJson=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v??"","package.json"),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?m==null?[3,5]:(w=m,[3,7]):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolvePackageJson(a,h,v)];case 9:return(m=p.sent())&&this.cache.storeFile(u,m),[2,m]}})})},_.prototype.resolveSourceFile=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?((0,G.invokeUpdate)({type:"LoadedFromCache",importPath:u},this.options),m==null?[3,5]:(w=m,[3,7])):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolveSourceFile(a,h,v)];case 9:return(m=p.sent())&&((0,G.invokeUpdate)({type:"StoredToCache",importPath:u},this.options),this.cache.storeFile(u,m)),[2,m]}})})},_})();return N.ImportResolver=Ue,N})(),f=e(se()),D=ve(),O=ke(),c=(function(){function i(b,k){var A=this;this.editor=b,this.options=k,this.disposables=[],this.importResolver=new l.ImportResolver(k);var y=b.onDidChangeModelContent(function(T){A.debouncedResolveContents()});this.disposables.push(y),this.resolveContents(),k.dontAdaptEditorOptions||k.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(g(g({},k.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:k.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:k.fileRootPath}))}return i.create=function(b,k){var A,y;return t(this,void 0,void 0,function(){var T;return o(this,function(E){if(k?.shareCache&&k.sourceCache&&!i.sharedCache&&(i.sharedCache=k.sourceCache),!(T=k?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new i(b,g(g({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(A=i.sharedCache)!==null&&A!==void 0?A:new r.DummySourceCache,sourceResolver:(y=k?.sourceResolver)!==null&&y!==void 0?y:new s.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},k),{monaco:T}))]})})},i.prototype.dispose=function(){var b,k;try{for(var A=n(this.disposables),y=A.next();!y.done;y=A.next())y.value.dispose()}catch(T){b={error:T}}finally{try{y&&!y.done&&(k=A.return)&&k.call(A)}finally{if(b)throw b.error}}},i.prototype.setVersions=function(b){this.importResolver.setVersions(b),this.options.versions=b},i.prototype.clearCache=function(){return t(this,void 0,void 0,function(){return o(this,function(b){switch(b.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return b.sent(),[2]}})})},i.prototype.debouncedResolveContents=function(){var b=this;this.isResolving||((0,D.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return t(b,void 0,void 0,function(){return o(this,function(k){switch(k.label){case 0:return[4,this.resolveContents()];case 1:return k.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},i.prototype.resolveContents=function(){var b;return t(this,void 0,void 0,function(){var k,A,y,T;return o(this,function(E){switch(E.label){case 0:if(this.isResolving=!0,(0,D.invokeUpdate)({type:"ResolveNewImports"},this.options),!(k=this.editor.getModel()))throw Error("No model");A=k.getLinesContent(),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(A.join(`
|
|
7
|
+
`),f.dirname(k.uri.toString()),new O.RecursionDepth(this.options))];case 2:return E.sent(),[3,4];case 3:if(y=E.sent(),!this.options.onError)throw y;return this.options.onError((b=y.message)!==null&&b!==void 0?b:y),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(T=this.editor.getPosition(),k.setValue(k.getValue()),T&&this.editor.setPosition(T)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},i})();return U.AutoTypingsCore=c,U}var we,z={},_e,Pe,Oe,je,Re,Ce,Se,xe,Ae={},De={},Ee={},Te={},Q={};const Ge=(function(g,x){for(var j=0;j<x.length;j++){const e=x[j];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in g)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(g,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))})({__proto__:null},[xe?Se:(xe=1,Ce||(Ce=1,q=ne,Fe=ne&&ne.__createBinding||(Object.create?function(g,x,j,e){e===void 0&&(e=j);var t=Object.getOwnPropertyDescriptor(x,j);t&&!("get"in t?!x.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return x[j]}}),Object.defineProperty(g,e,t)}:function(g,x,j,e){e===void 0&&(e=j),g[e]=x[j]}),K=ne&&ne.__exportStar||function(g,x){for(var j in g)j==="default"||Object.prototype.hasOwnProperty.call(x,j)||Fe(x,g,j)},Object.defineProperty(q,"__esModule",{value:!0}),K((function(){if(be)return ee;be=1;var g,x=ee&&ee.__extends||(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])})(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}g(e,t),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AutoTypings=void 0;var j=(function(e){function t(o,n){return e.call(this,o,n)||this}return x(t,e),t})(Le().AutoTypingsCore);return ee.AutoTypings=j,ee})(),q),K(Ie(),q),K((function(){if(we)return z;we=1;var g=z&&z.__awaiter||function(t,o,n,r){return new(n||(n=Promise))(function(s,l){function f(c){try{O(r.next(c))}catch(i){l(i)}}function D(c){try{O(r.throw(c))}catch(i){l(i)}}function O(c){var i;c.done?s(c.value):(i=c.value,i instanceof n?i:new n(function(b){b(i)})).then(f,D)}O((r=r.apply(t,o||[])).next())})},x=z&&z.__generator||function(t,o){var n,r,s,l,f={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function D(O){return function(c){return(function(i){if(n)throw new TypeError("Generator is already executing.");for(;f;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return f.label++,{value:i[1],done:!1};case 5:f.label++,r=i[1],i=[0];continue;case 7:i=f.ops.pop(),f.trys.pop();continue;default:if(!((s=(s=f.trys).length>0&&s[s.length-1])||i[0]!==6&&i[0]!==2)){f=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){f.label=i[1];break}if(i[0]===6&&f.label<s[1]){f.label=s[1],s=i;break}if(s&&f.label<s[2]){f.label=s[2],f.ops.push(i);break}s[2]&&f.ops.pop(),f.trys.pop();continue}i=o.call(t,f)}catch(b){i=[6,b],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}})([O,c])}}},j=z&&z.__values||function(t){var o=typeof Symbol=="function"&&Symbol.iterator,n=o&&t[o],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0}),z.LocalStorageCache=void 0;var e=(function(){function t(){this.localCache={}}return t.prototype.getFile=function(o){var n;return g(this,void 0,void 0,function(){return x(this,function(r){try{return[2,(n=localStorage.getItem(t.LOCALSTORAGE_PREFIX+o))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[o]]}return[2]})})},t.prototype.storeFile=function(o,n){return g(this,void 0,void 0,function(){return x(this,function(r){this.localCache[o]=n;try{localStorage.setItem(t.LOCALSTORAGE_PREFIX+o,n)}catch{}return[2]})})},t.prototype.clear=function(){return g(this,void 0,void 0,function(){var o,n,r,s,l,f,D;return x(this,function(O){for(this.localCache={},o=[],n=0;n<localStorage.length;n++)(l=localStorage.key(n))!=null&&l.startsWith(t.LOCALSTORAGE_PREFIX)&&o.push(l);try{for(r=j(o),s=r.next();!s.done;s=r.next())l=s.value,localStorage.removeItem(l)}catch(c){f={error:c}}finally{try{s&&!s.done&&(D=r.return)&&D.call(r)}finally{if(f)throw f.error}}return[2]})})},t.LOCALSTORAGE_PREFIX="__autotyper_cache_",t})();return z.LocalStorageCache=e,z})(),q),K((_e||(_e=1,Object.defineProperty(Ae,"__esModule",{value:!0})),Ae),q),K((Pe||(Pe=1,Object.defineProperty(De,"__esModule",{value:!0})),De),q),K((Oe||(Oe=1,Object.defineProperty(Ee,"__esModule",{value:!0})),Ee),q),K((je||(je=1,Object.defineProperty(Te,"__esModule",{value:!0})),Te),q),K((function(){if(Re)return Q;Re=1;var g=Q&&Q.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=Q&&Q.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return(function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([D,O])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.UnpkgSourceResolver=void 0;var j=(function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e})();return Q.UnpkgSourceResolver=j,Q})(),q),K(Ne(),q)),Se=ne)]);var q,Fe,K;exports.c=Ge;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.7
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./Cx89ds7YFppm4HH8.cjs");function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){me(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,a=new Array(u),p=0;p<u;p++)a[p]=arguments[p];return t.apply(r,[].concat(o,a))}}}function U(e){return{}.toString.call(e).includes("Object")}function q(e){return typeof e=="function"}var P=D(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ve=function(e,t){return U(t)||P("changeType"),Object.keys(t).some(function(r){return n=e,o=r,!Object.prototype.hasOwnProperty.call(n,o);var n,o})&&P("changeField"),t},be=function(e){q(e)||P("selectorType")},Ee=function(e){q(e)||U(e)||P("handlerType"),U(e)&&Object.values(e).some(function(t){return!q(t)})&&P("handlersType")},Oe=function(e){var t;e||P("initialIsRequired"),U(e)||P("initialType"),t=e,Object.keys(t).length||P("initialContent")};function we(e,t){return q(t)?t(e.current):t}function je(e,t){return e.current=ie(ie({},e.current),t),t}function xe(e,t,r){return q(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var K,Me=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Oe(e),Ee(t);var r={current:e},n=D(xe)(r,t),o=D(je)(r),i=D(ve)(e),u=D(we)(r);return[function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return be(a),a(r.current)},function(a){(function(){for(var p=arguments.length,g=new Array(p),O=0;O<p;O++)g[O]=arguments[O];return function(b){return g.reduceRight(function(x,M){return M(x)},b)}})(n,o,i,u)(a)}]},le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
7
|
+
You are using deprecated way of configuration.
|
|
8
|
+
|
|
9
|
+
Instead of using
|
|
10
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
11
|
+
use
|
|
12
|
+
monaco.config({ paths: { vs: '...' } })
|
|
13
|
+
|
|
14
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
15
|
+
`},ue=(K=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=K.length?K.apply(this,n):function(){for(var i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];return e.apply(t,[].concat(n,u))}})(le),Pe=function(e){var t;return e||ue("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||ue("configType"),e.urls?(console.warn(le.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ne(ne({},e),t)}var Se={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Se):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var W,fe=(function(e){if(Array.isArray(e))return e})(W=Me({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||(function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(t.push(i.value),t.length!==2);r=!0);}catch(a){n=!0,o=a}finally{try{r||u.return==null||u.return()}finally{if(n)throw o}}return t}})(W)||(function(e){if(e){if(typeof e=="string")return oe(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,2):void 0}})(W)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})(),z=fe[0],B=fe[1];function Re(e){return document.body.appendChild(e)}function ke(e){var t,r,n=z(function(i){return{config:i.config,reject:i.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function Te(){var e=z(function(r){return{config:r.config,resolve:r.resolve,reject:r.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){de(r),e.resolve(r)},function(r){e.reject(r)})}function de(e){z().monaco||B({monaco:e})}var X=new Promise(function(e,t){return B({resolve:e,reject:t})}),V={config:function(e){var t=Pe(e),r=t.monaco,n=(function(o,i){if(o==null)return{};var u,a,p=(function(O,b){if(O==null)return{};var x,M,S={},R=Object.keys(O);for(M=0;M<R.length;M++)x=R[M],b.indexOf(x)>=0||(S[x]=O[x]);return S})(o,i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(a=0;a<g.length;a++)u=g[a],i.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(o,u)&&(p[u]=o[u])}return p})(t,["monaco"]);B(function(o){return{config:se(o.config,n),monaco:r}})},init:function(){var e=z(function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}});if(!e.isInitialized){if(B({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,u){return u(i)},o)}})(Re,ke)(Te)}return Q(X)},__getMonacoInstance:function(){return z(function(e){return e.monaco})}},Ie={display:"flex",position:"relative",textAlign:"initial"},Ce={width:"100%"},Ae={display:"none"},De={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ve=function({children:e}){return c.mt.createElement("div",{style:De.container},e)},pe=c.reactExports.memo(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:u}){return c.mt.createElement("section",{style:{...Ie,width:e,height:t},...u},!r&&c.mt.createElement(Ve,null,n),c.mt.createElement("div",{ref:o,style:{...Ce,...!r&&Ae},className:i}))}),Z=function(e){c.reactExports.useEffect(e,[])},w=function(e,t,r=!0){let n=c.reactExports.useRef(!0);c.reactExports.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function L(){}function T(e,t,r,n){return i=n,(o=e).editor.getModel(ae(o,i))||(function(u,a,p,g){return u.editor.createModel(a,p,g?ae(u,g):void 0)})(e,t,r,n);var o,i}function ae(e,t){return e.Uri.parse(t)}var Le=c.reactExports.memo(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:p=!1,theme:g="light",loading:O="Loading...",options:b={},height:x="100%",width:M="100%",className:S,wrapperProps:R={},beforeMount:Y=L,onMount:$=L}){let[E,I]=c.reactExports.useState(!1),[C,m]=c.reactExports.useState(!0),y=c.reactExports.useRef(null),f=c.reactExports.useRef(null),A=c.reactExports.useRef(null),v=c.reactExports.useRef($),l=c.reactExports.useRef(Y),k=c.reactExports.useRef(!1);Z(()=>{let s=V.init();return s.then(d=>(f.current=d)&&m(!1)).catch(d=>d?.type!=="cancelation"&&console.error("Monaco initialization: error:",d)),()=>y.current?(function(){let d=y.current?.getModel();a||d?.original?.dispose(),p||d?.modified?.dispose(),y.current?.dispose()})():s.cancel()}),w(()=>{if(y.current&&f.current){let s=y.current.getOriginalEditor(),d=T(f.current,e||"",n||r||"text",i||"");d!==s.getModel()&&s.setModel(d)}},[i],E),w(()=>{if(y.current&&f.current){let s=y.current.getModifiedEditor(),d=T(f.current,t||"",o||r||"text",u||"");d!==s.getModel()&&s.setModel(d)}},[u],E),w(()=>{let s=y.current.getModifiedEditor();s.getOption(f.current.editor.EditorOption.readOnly)?s.setValue(t||""):t!==s.getValue()&&(s.executeEdits("",[{range:s.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),s.pushUndoStop())},[t],E),w(()=>{y.current?.getModel()?.original.setValue(e||"")},[e],E),w(()=>{let{original:s,modified:d}=y.current.getModel();f.current.editor.setModelLanguage(s,n||r||"text"),f.current.editor.setModelLanguage(d,o||r||"text")},[r,n,o],E),w(()=>{f.current?.editor.setTheme(g)},[g],E),w(()=>{y.current?.updateOptions(b)},[b],E);let _=c.reactExports.useCallback(()=>{if(!f.current)return;l.current(f.current);let s=T(f.current,e||"",n||r||"text",i||""),d=T(f.current,t||"",o||r||"text",u||"");y.current?.setModel({original:s,modified:d})},[r,t,o,e,n,i,u]),N=c.reactExports.useCallback(()=>{!k.current&&A.current&&(y.current=f.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...b}),_(),f.current?.editor.setTheme(g),I(!0),k.current=!0)},[b,g,_]);return c.reactExports.useEffect(()=>{E&&v.current(y.current,f.current)},[E]),c.reactExports.useEffect(()=>{!C&&!E&&N()},[C,E,N]),c.mt.createElement(pe,{width:M,height:x,isEditorReady:E,loading:O,_ref:A,className:S,wrapperProps:R})}),F=new Map,ge=c.reactExports.memo(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:u="light",line:a,loading:p="Loading...",options:g={},overrideServices:O={},saveViewState:b=!0,keepCurrentModel:x=!1,width:M="100%",height:S="100%",className:R,wrapperProps:Y={},beforeMount:$=L,onMount:E=L,onChange:I,onValidate:C=L}){let[m,y]=c.reactExports.useState(!1),[f,A]=c.reactExports.useState(!0),v=c.reactExports.useRef(null),l=c.reactExports.useRef(null),k=c.reactExports.useRef(null),_=c.reactExports.useRef(E),N=c.reactExports.useRef($),s=c.reactExports.useRef(),d=c.reactExports.useRef(n),he=(function(h){let j=c.reactExports.useRef();return c.reactExports.useEffect(()=>{j.current=h},[h]),j.current})(i),ee=c.reactExports.useRef(!1),G=c.reactExports.useRef(!1);Z(()=>{let h=V.init();return h.then(j=>(v.current=j)&&A(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>l.current?(s.current?.dispose(),x?b&&F.set(i,l.current.saveViewState()):l.current.getModel()?.dispose(),void l.current.dispose()):h.cancel()}),w(()=>{let h=T(v.current,e||n||"",t||o||"",i||r||"");h!==l.current?.getModel()&&(b&&F.set(he,l.current?.saveViewState()),l.current?.setModel(h),b&&l.current?.restoreViewState(F.get(i)))},[i],m),w(()=>{l.current?.updateOptions(g)},[g],m),w(()=>{!l.current||n===void 0||(l.current.getOption(v.current.editor.EditorOption.readOnly)?l.current.setValue(n):n!==l.current.getValue()&&(G.current=!0,l.current.executeEdits("",[{range:l.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),l.current.pushUndoStop(),G.current=!1))},[n],m),w(()=>{let h=l.current?.getModel();h&&o&&v.current?.editor.setModelLanguage(h,o)},[o],m),w(()=>{a!==void 0&&l.current?.revealLine(a)},[a],m),w(()=>{v.current?.editor.setTheme(u)},[u],m);let te=c.reactExports.useCallback(()=>{if(k.current&&v.current&&!ee.current){N.current(v.current);let h=i||r,j=T(v.current,n||e||"",t||o||"",h||"");l.current=v.current?.editor.create(k.current,{model:j,automaticLayout:!0,...g},O),b&&l.current.restoreViewState(F.get(h)),v.current.editor.setTheme(u),a!==void 0&&l.current.revealLine(a),y(!0),ee.current=!0}},[e,t,r,n,o,i,g,O,b,u,a]);return c.reactExports.useEffect(()=>{m&&_.current(l.current,v.current)},[m]),c.reactExports.useEffect(()=>{!f&&!m&&te()},[f,m,te]),d.current=n,c.reactExports.useEffect(()=>{m&&I&&(s.current?.dispose(),s.current=l.current?.onDidChangeModelContent(h=>{G.current||I(l.current.getValue(),h)}))},[m,I]),c.reactExports.useEffect(()=>{if(m){let h=v.current.editor.onDidChangeMarkers(j=>{let H=l.current.getModel()?.uri;if(H&&j.find(J=>J.path===H.path)){let J=v.current.editor.getModelMarkers({resource:H});C?.(J)}});return()=>{h?.dispose()}}return()=>{}},[m,C]),c.mt.createElement(pe,{width:M,height:S,isEditorReady:m,loading:p,_ref:k,className:R,wrapperProps:Y})}),qe=ge;exports.DiffEditor=Le,exports.Editor=ge,exports.default=qe,exports.loader=V,exports.useMonaco=function(){let[e,t]=c.reactExports.useState(V.__getMonacoInstance());return Z(()=>{let r;return e||(r=V.init(),r.then(n=>{t(n)})),()=>r?.cancel()}),e};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.7
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./Cx89ds7YFppm4HH8.cjs");exports.fromBufferJSON=async(p,l)=>{let u=p;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await(async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()})(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),w={...l?.createWorkbookOptions??{},json:g};return new J.wy(w)},exports.toBufferJSON=async(p,l)=>{const u=await p.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(p,u),g=b===0?JSON.stringify(u):(function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return(function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
|
|
7
|
+
`;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
|
|
8
|
+
`);return y+=`
|
|
9
|
+
`+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
|
|
10
|
+
`;m||(s=0);for(let c=0;c<d;c++){const y=B[c];S+=O+JSON.stringify(y)+": "+o(e[y],a+1,s,!1),c<d-1&&(S+=`,
|
|
11
|
+
`)}return S+=`
|
|
12
|
+
`+A+"}",S})(i,0,0,!1)})(u,b);let w=new TextEncoder().encode(g).buffer;const t=l?.compress??!0;return t&&(w=await(async function(i,r="gzip"){let n;typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const f=new ReadableStream({start(a){a.enqueue(n),a.close()}}),o=new CompressionStream(r),e=f.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()})(w,typeof t=="string"?t:void 0)),w};
|