@sheetxl/studio-vanilla 0.8.0-beta.2 → 0.8.0-beta.4
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/{DIdPQwECld6gubdK2.cjs → 6V1LlorEUj_nSWnU.cjs} +1 -1
- package/browser/cjs/9Fb0mL7xhqVmVTQp.cjs +3 -0
- package/browser/cjs/{CKEselBM-qmMpQBW2.cjs → BFR2qcJJZqIGySId2.cjs} +2 -2
- package/browser/cjs/BItTNeA_ukOziuTp.cjs +41 -0
- package/browser/cjs/Be5j4deP5deGlAPe2.cjs +1 -0
- package/browser/cjs/{BQWmn92gYmxC8eWt.cjs → BhmvJA5P78JScqAa.cjs} +1 -1
- package/browser/cjs/{DLtFM988NCD-jeBV.cjs → Bj3YkKmVIoQ3YtYm.cjs} +4 -4
- package/browser/cjs/{C19UoK2TTtKU_faS.cjs → BqfmTrd9tnu_owvN.cjs} +1 -1
- package/browser/cjs/{DZBKNR9xUMTHWS_D.cjs → BtrnAiRF11y21NX4.cjs} +1 -1
- package/browser/cjs/CClH6iclautDoj8x2.cjs +1 -0
- package/browser/cjs/{GPlG4lbMP89VDHYJ.cjs → CIDcABwPAtKB7XVf.cjs} +3 -3
- package/browser/cjs/{Dg3GaW0QWwnlqetX2.cjs → CJK0UKBYYLMe5y7n2.cjs} +1 -1
- package/browser/cjs/{Bo7EQ8niKmwtAwo_2.cjs → CLHQ0mEi1NKau4Fd2.cjs} +1 -1
- package/browser/cjs/{CtsduUtTrkcWM02v.cjs → CMOeL2fuTqmW07BD.cjs} +199 -199
- package/browser/cjs/{BLAG3kDSthU0SH-E.cjs → CQd4PPsP2BuocLDM.cjs} +2 -2
- package/browser/cjs/{D_IilnLuy_hDaBmI.cjs → CRplh7TkT0zSJ0-T.cjs} +1 -1
- package/browser/cjs/{D5Gp16-G3pjMtypl2.cjs → CSWmGDsxPB7HVJiO2.cjs} +1 -1
- package/browser/cjs/{9vk-L6rRvx20jeQj.cjs → Cj57ZO62uLbSZ0gK.cjs} +1 -1
- package/browser/cjs/{C_T-ehCAzjaVRmTk.cjs → CjqMMBQ8Kk0moB_z.cjs} +1 -1
- package/browser/cjs/CnZ9pMlpPsqEhbLB2.cjs +1 -0
- package/browser/cjs/CpSKXzK-k_sOImbA.cjs +54 -0
- package/browser/cjs/{CTDN-AYeejrfopDC.cjs → CuANpK3BdrKl4Yhe.cjs} +1 -1
- package/browser/cjs/{DHMQnssVXWjGBSs-.cjs → Cw4BDzyIt0BkEzuh.cjs} +1 -1
- package/browser/cjs/D689Ek3LK_7M1YS9.cjs +14 -0
- package/browser/cjs/{ibvsavYh4kU-xxL8.cjs → D6OTRWh1ys5CR_lb.cjs} +1 -1
- package/browser/cjs/DDvxqFQeKcwQCcgl2.cjs +1 -0
- package/browser/cjs/{DA0nGLC0bEkOhh7G2.cjs → DOQTjBWUIU3tFiC42.cjs} +1 -1
- package/browser/cjs/{9rXsWW4SnEpudhfh.cjs → DOjeFFlUuGZs14pR.cjs} +1 -1
- package/browser/cjs/{3a3qEmdJWFXfGW0q.cjs → DRRqcawQ_OlK5O2S.cjs} +1 -1
- package/browser/cjs/{D-N5oLosHPjoj-oG.cjs → DW8fGIUUK-oUTjOo.cjs} +1 -1
- package/browser/cjs/{TZQc-szdIVnHDH6F.cjs → DggQv_m8hwCk0ZPk.cjs} +2 -2
- package/browser/cjs/{CX7VUEYca9dtWS0N.cjs → DjAg1qKbGRcCxZG2.cjs} +1 -1
- package/browser/cjs/DlAHUQXBMc-ZTn_c.cjs +32 -0
- package/browser/cjs/{Co31kjvOPAAYbeF-.cjs → DniLHjmREpdi1cFx.cjs} +1 -1
- package/browser/cjs/{BylqpwnwQYDHIWjX.cjs → DnjrhTDYSGg20fYP.cjs} +1 -1
- package/browser/cjs/DoFDjP2FgjU48C712.cjs +1 -0
- package/browser/cjs/DqnvNfw5YpO2rdty2.cjs +1 -0
- package/browser/cjs/{BdJvn1vLXMZvE-8h.cjs → DrdQTBiFulmvlRaX.cjs} +3 -3
- package/browser/cjs/DuQsMI_VBrtewlPT2.cjs +8 -0
- package/browser/cjs/DunGPPWyXlG69yIV2.cjs +1 -0
- package/browser/cjs/Dw7oGgh_7fEPOoIV2.cjs +3 -0
- package/browser/cjs/{DCRe7NqRclU-Jr7p.cjs → DxHsJ5c6KlwGpED6.cjs} +1 -1
- package/browser/cjs/LMZmmGBTj9hqFwwu2.cjs +1 -0
- package/browser/cjs/{Dg5fR9uTvYHyxOX62.cjs → Ugq14m_1jIROW2RN2.cjs} +2 -2
- package/browser/cjs/VSzadbRbgIx_c4Y7.cjs +1 -0
- package/browser/cjs/{DsqHxG-lGZxL1XgQ.cjs → ZsgZv9u2bNY2LY78.cjs} +1 -1
- package/browser/cjs/{BhcbKFKbSWEavYJm.cjs → axigL4G2Pi0ixZPE.cjs} +2 -2
- package/browser/cjs/bojG-rqzdkE9lH_h2.cjs +1 -0
- package/browser/cjs/{C-xC6h1TOBr5ZDSe2.cjs → e4jYID_FHS7YL-b22.cjs} +1 -1
- package/browser/cjs/{BF8ZxFWyAAnbe4mz.cjs → gsOqF4MyYN9gz4oo.cjs} +2 -2
- package/browser/cjs/{CH7BUjrXIKDIE7XE.cjs → hHVT-pzS2bhjFHSL.cjs} +43 -43
- package/browser/cjs/ihI3PbaHdmlJLCOt2.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/jW0ar9T4rYfgy_4N.cjs +1 -0
- package/browser/cjs/lc_UysVCoJyKATFy2.cjs +1 -0
- package/browser/cjs/{DHL7SVvz96-5zSWE2.cjs → nIKxgoGnF7yTmzVB2.cjs} +2 -2
- package/browser/cjs/{ClVLjLIRgWqX3Q-F.cjs → pWgqqjBa4jIrxyvw.cjs} +1 -1
- package/browser/cjs/{aBulzIf4cHnL7sbw.cjs → ufEYN2m0y5pER93_.cjs} +1 -1
- package/browser/cjs/{p3PYFz7cN2z4XQoU.cjs → v4gWTjOVv8h2S0zO.cjs} +1 -1
- package/browser/cjs/y4PTOoQv-PlD-vAG2.cjs +1 -0
- package/browser/esm/{C6X4CmElTpPxrad6.mjs → 00bUQB6RgRxfotbx.mjs} +1 -1
- package/{cdn/assets/BuyRy9BcgPYo8l8W.js → browser/esm/3763dmlGYD95oq8Z.mjs} +264 -264
- package/browser/esm/{BIab7njjwaSXjSEP2.mjs → 5FA-4PCi5EIs85WR2.mjs} +2 -2
- package/{cdn/assets/nBZATD4yR1W5D4Fi.js → browser/esm/7XkdeYBragcPQQS0.mjs} +1 -1
- package/browser/esm/{CTzKk6VuZTohsOIF2.mjs → 7bhO6Xzgwllu2tcj2.mjs} +1 -1
- package/browser/esm/{D5Pa9lfPfAcCGj_N.mjs → AwRapR2kwqYVijeW.mjs} +1 -1
- package/browser/esm/{LgoljOEffsYkpZZJ2.mjs → B0Z8VrL6RioP-2R02.mjs} +817 -817
- package/browser/esm/{bvuPDJZmI2O5oihy2.mjs → B1uljoK1sRsKmI6N2.mjs} +91 -91
- package/browser/esm/{j-9DpYsIlTN1mwql.mjs → B3WsFHUqTcKWNGy_.mjs} +5334 -5294
- package/browser/esm/{CaTmLXIsIxaOrLcZ.mjs → B5SNHCcrvOdUn7Vu.mjs} +74 -74
- package/browser/esm/{Be7--zCnU6JvLkK1.mjs → B6wW3holuLEkDOgD.mjs} +57 -57
- package/browser/esm/{B2vjec5TDs2ZJ1eI2.mjs → BCWx6QCIVIKOKt9n2.mjs} +1 -1
- package/browser/esm/{BPt7dDNLBsKrZgzO2.mjs → BCYJaBOW6d6KNCuQ2.mjs} +7 -7
- package/browser/esm/{C3qSUuVA-FII3rMU2.mjs → BCmGrMte2QyvzkAM2.mjs} +19 -19
- package/browser/esm/{R2c8rUTz1GjCQEp-2.mjs → BEsIwguAjJa2eS4g2.mjs} +22 -22
- package/browser/esm/{QNvOHujamKYSXWWA2.mjs → BFAAw3m7wW7Wnf8i2.mjs} +1 -1
- package/{cdn/assets/CQBSLdAdR53c7BVh.js → browser/esm/BG_6y3dWHiR8LpP-2.mjs} +1 -1
- package/browser/esm/{B-Zf8W3s_WXgYxhN.mjs → BJdwKtEOslRkGQhk.mjs} +7 -7
- package/browser/esm/{0YKBRd7eLIUmcKns.mjs → BJk7BkFlT-d2_MDc.mjs} +3 -3
- package/browser/esm/{Bc8-re9biUn57kdl.mjs → BO6Lz-qmEF5k4ZPU.mjs} +9659 -9661
- package/{cdn/assets/DgH-AoqKDdIWg0J8.js → browser/esm/BPh6sTO11J2UoKVG.mjs} +1 -1
- package/{cdn/assets/BEYY8z4FusH7S5K-2.js → browser/esm/BQRlxHPPnb-Xp7mx.mjs} +1 -1
- package/{cdn/assets/BdCn57ENgiC2kOsF.js → browser/esm/BThp5CcmvMVU7Frk.mjs} +2 -2
- package/browser/esm/{BG_hG8jUkf0aMzGK2.mjs → BThp5CcmvMVU7Frk2.mjs} +2 -2
- package/{cdn/assets/7lIMFL11BRZrMXdc.js → browser/esm/BUbwA9WVFeKfIV6H.mjs} +1 -1
- package/browser/esm/{DmPq6SwNcX1qXKct.mjs → BVri2gMOX526uJV5.mjs} +1 -1
- package/browser/esm/{DMMtONCySdMHoaMU.mjs → BYcIifmA2KfISUAD.mjs} +6 -6
- package/browser/esm/{9CP_UyAqmAHE7-mv.mjs → BYha1NqMzu8G7ReU.mjs} +7 -7
- package/browser/esm/{BuSBBEiK_3KnBr632.mjs → BZiMIYsX6zktg4iD2.mjs} +23 -23
- package/browser/esm/{xzoxSwyGoZdH-ysh.mjs → BcZHZLyy1g0r4Qk4.mjs} +23 -23
- package/{cdn/assets/DvfekR32WVFv_WrS.js → browser/esm/BcdWHWjggmDQ6_Zx2.mjs} +81 -81
- package/browser/esm/{CwDjNuGkKnVtfJo-.mjs → Bd-Kkar9gnLuKTRo2.mjs} +1 -1
- package/{cdn/assets/DoCYcvHzw3S0MDCW.js → browser/esm/BeQYgyU20NLEnFql2.mjs} +1 -1
- package/browser/esm/{B0aCnXuYD0ZopZdA.mjs → Be_zCt9smEb4NVGF.mjs} +2 -2
- package/{cdn/assets/CU1_-PzBC9cDsm5t.js → browser/esm/BfRnXrO08JOzICDf2.mjs} +1 -1
- package/{cdn/assets/B0FNPu0uhX_WW-aJ2.js → browser/esm/BfZiZa7P8RpKrStu.mjs} +1 -1
- package/browser/esm/{fJ0eqh3Ja3O0z1QL.mjs → BiHOntEpAjSdwJmu.mjs} +12 -12
- package/{cdn/assets/jQ5c7MGwQOZq4s5w2.js → browser/esm/BjCuy-yO9BQxUj_22.mjs} +1 -1
- package/browser/esm/{BhGgNWNVYntkJYgU.mjs → BnT_figq3Qu4_Tdm.mjs} +12 -12
- package/{cdn/assets/13CH9sjvoEqt6nbt.js → browser/esm/BouiFjb9pyWsROiW2.mjs} +1 -1
- package/browser/esm/{C1doaJjkCzQlB_3u2.mjs → BqT5uCSFT_HATJJw2.mjs} +1 -1
- package/browser/esm/{DeeFxCkhXDF0p1nl.mjs → BranNZUk8WXrCCjb.mjs} +3 -3
- package/browser/esm/{DBTB0moKfwOu0F47.mjs → BxrknRRdcnKV7-zU.mjs} +5 -5
- package/{cdn/assets/DuijhgjRhgWB9sCY2.js → browser/esm/C62Y8jSQuT2_lqUs.mjs} +240 -228
- package/browser/esm/{BJJBFdJaP2dMlug92.mjs → C9-p4koE4kCDp9UL2.mjs} +8 -8
- package/{cdn/assets/Bfq8Gdqf3I7y_Hju2.js → browser/esm/C9QsQZR03iUbXGDd.mjs} +1 -1
- package/browser/esm/{CYU_-DiQXjh1SEU1.mjs → CByxip-S_IKsaoyZ.mjs} +347 -347
- package/{cdn/assets/CAVONPXgoytyiNK-.js → browser/esm/CFKZFbkoc-8gG0EH.mjs} +1 -1
- package/browser/esm/{BEWsOD2JQ8dwQCEm2.mjs → CIfWyeqd8SBHxpym2.mjs} +17 -17
- package/browser/esm/{eTXmezPFvAwM_L-D2.mjs → CIsuqkDFqRaqaULt.mjs} +1 -1
- package/browser/esm/{iYNN3Px9AekrMEfu2.mjs → CMIHnlRJ6ctaJThm2.mjs} +12 -12
- package/browser/esm/{Bcjus_Q6f72kE1MK.mjs → CNBdjbsAfeLxOXNu2.mjs} +1 -1
- package/browser/esm/{rxlYDHBsenoxRx-K2.mjs → CNO2b9u-Zhj6V2us2.mjs} +6 -6
- package/browser/esm/{Cvw3poNlUmn3qAh0.mjs → CP2cFopeWN8lQpif.mjs} +5 -5
- package/browser/esm/{DYyxB53T5uaoyInL2.mjs → CPCWNpkZIX3cxPMS2.mjs} +2 -2
- package/browser/esm/{Bokc-Wu4XBPWKmdt.mjs → CPgdrQexyUXiviTo.mjs} +1 -1
- package/{cdn/assets/BDZAVKSYpcOp9Dve.js → browser/esm/CQi9Ek-nl9QWmoMC2.mjs} +1 -1
- package/browser/esm/{DtqMTXq5u5DmS5S1.mjs → CRNpbge-G8dLIqk9.mjs} +2 -2
- package/browser/esm/{sfOREE_huDAOcfYs.mjs → CSus1KY0Y1UJN-c6.mjs} +1495 -1495
- package/browser/esm/{lHpMVBxqkkCYD6d12.mjs → CVV-QxmM_7vUYzFC.mjs} +1 -1
- package/browser/esm/{DHzdEqMCGL_JPh9w2.mjs → CXT9wGUombXj7n-s2.mjs} +11 -11
- package/browser/esm/{gAriGKwELet15RCY2.mjs → CZrkJteg0C4_fGBy2.mjs} +10 -10
- package/browser/esm/{ep-IjWXOPg2b-REP2.mjs → C_6kPChYiQzj6w3V2.mjs} +1 -1
- package/{cdn/assets/yVLsr0rcaOFel2nS.js → browser/esm/ChKDkoQeoZMHq0r72.mjs} +1 -1
- package/browser/esm/{DTfDzhFtORWkuoRv.mjs → CiMRlH1xk4i9IiEn.mjs} +1 -1
- package/{cdn/assets/DbVSG7Uf7YDQbmc3.js → browser/esm/CiUtfAMZeVao4r9g.mjs} +1 -1
- package/browser/esm/{D13sLQRMMKrDHepu.mjs → ClQiq37bto-oxKtL.mjs} +1 -1
- package/browser/esm/{AAHsV9V95k39t9SD.mjs → ClrdhQeh_WoBg0Ws2.mjs} +1 -1
- package/browser/esm/{txVgXcuMeWVNWHnZ.mjs → CmNtmMkhbzV8j_I0.mjs} +1 -1
- package/browser/esm/{V-oO_EfTyth0iptZ2.mjs → Cm_bL9sY_cm-k_Pq.mjs} +1 -1
- package/browser/esm/{kcfC6hY47HklE6Om.mjs → CmmaFuVaTfOm96g4.mjs} +11 -11
- package/{cdn/assets/Dd80tsdITZsotoCX.js → browser/esm/CqheKk46etN--iuw2.mjs} +1 -1
- package/browser/esm/{DeSDYBzD8e5XXnvq.mjs → CqwPCy756gUmUtv1.mjs} +6 -6
- package/browser/esm/{BM343UBJqjbDokO62.mjs → CsDejQBEe09RdeRI.mjs} +1 -1
- package/browser/esm/{BBaNqp1ZjuO25FQg2.mjs → CsG9IQdgctp6tf2X2.mjs} +1 -1
- package/browser/esm/{C1EvC_qPiGiVMrkF.mjs → CxYnCECXc2PyTCrn.mjs} +499 -499
- package/{cdn/assets/DjNR_ZGCbg-xia15.js → browser/esm/Cz77LBaC6qe0hPm02.mjs} +1 -1
- package/browser/esm/{ZJ32DJlBpN_9fAph.mjs → Cz_f9WxedmIkn2jq.mjs} +3 -3
- package/browser/esm/{BVOTzF7NFvB20R7D.mjs → D36mtiddUg8k6tPW.mjs} +2 -2
- package/browser/esm/{BOhfbmK18Xj1P7-i.mjs → DCY3GQ5g02kgKrPz2.mjs} +1 -1
- package/{cdn/assets/CPgOplnn6NuHwsZ_2.js → browser/esm/DDfhrc6lUmerlDLA2.mjs} +1 -1
- package/browser/esm/{B2nEJHcip8raAhdc.mjs → DGjbC2bQDlXZu71U.mjs} +757 -757
- package/browser/esm/{yFldtlfN_ASKyMll.mjs → DIHvZTIPYMmuDQO4.mjs} +5 -5
- package/browser/esm/{CmSATmXaMlqwTjAe2.mjs → DN6XiWA9mgKCYBL72.mjs} +1 -1
- package/browser/esm/{DyPe20tPiPVm1PLe.mjs → DNtf7XnGnTZmf9SF.mjs} +6 -6
- package/browser/esm/{XB269tVMhdRHj10G.mjs → DOwrrqcb3f3wDR3B.mjs} +123 -208
- package/{cdn/assets/CULlzRLL3s2Dikjg.js → browser/esm/DQXXQ7c_080TSD18.mjs} +1 -1
- package/{cdn/assets/WFkg-W8MQ-V6F1Fu.js → browser/esm/DSuOkzhjUeUGtHv8.mjs} +3 -3
- package/browser/esm/{D-egzesxukW7Z_e3.mjs → DXuBmWXG49kvaZNr2.mjs} +1 -1
- package/{cdn/assets/B_49GiUSgx96vBvq.js → browser/esm/DYoBCnD1PVzOITgb2.mjs} +1 -1
- package/{cdn/assets/gCeoOjDjiVaX8dtF.js → browser/esm/D_tGKL5JvKpHg5Se2.mjs} +1 -1
- package/browser/esm/{Dz713G5R9JayR5v1.mjs → D_vJszM7OyxfNtiD.mjs} +2 -2
- package/browser/esm/{b49cTAZ6BWPQgfYu.mjs → DdNzoOIDRFbcy-qK.mjs} +14 -14
- package/browser/esm/{GDYIOITizuJ9xSUf2.mjs → DdSdpckWJszr8vE72.mjs} +13 -13
- package/browser/esm/{YC83lJ3yRZP57lBl2.mjs → Di2yc0eSWx4sqa1t2.mjs} +4 -4
- package/browser/esm/{Bvy9LWN5UHwJXV9i2.mjs → DiZjLPj4GVJccT-7.mjs} +2 -2
- package/browser/esm/{BcHN_VMA7bLNKKMO.mjs → DkUKK8YkXuoIqQIx.mjs} +1914 -1904
- package/browser/esm/{CA4eJpge9meoO0rj2.mjs → DmBNtqAUPAi3RnfW2.mjs} +11 -11
- package/{cdn/assets/CnvlkxK0pS02Z3gZ.js → browser/esm/Dr3NMWk6K4-HWYsp.mjs} +1 -1
- package/browser/esm/{B50P0gSziuG68Umu.mjs → DsGBg42mflMr5nWn.mjs} +1 -1
- package/{cdn/assets/C04uI3XsvTc6Cc7w.js → browser/esm/DtFBvTH8ScTC26Xd.mjs} +1 -1
- package/browser/esm/{CcK4ACF7d5ogFpAS.mjs → DuwZ5U8z5dBDeSgO.mjs} +8 -8
- package/browser/esm/{C3M_lKSZ_Fq1SQOn.mjs → DvFQ4AKUGVQ_qhdP.mjs} +2 -2
- package/browser/esm/{04mVsW7CTmUlxnOa.mjs → DvQg18Zd8rnQh20c.mjs} +3 -3
- package/browser/esm/{Dn8Z0WK2Hwi8MRnQ.mjs → DwpzhMm9SjvmHEpB.mjs} +1 -1
- package/browser/esm/{BnFriW2cIcOJkXU42.mjs → Dz6F8pPCO-Rr6Cab2.mjs} +12 -12
- package/{cdn/assets/D1bACCJy4F8kANLy2.js → browser/esm/ERmTt8XRToIi7stb.mjs} +1 -1
- package/browser/esm/{CUYBRp4sHMdGwkLT.mjs → I5pKfeOLCqhpzdsw.mjs} +1 -1
- package/{cdn/assets/C2JMpa_lWCs9k2ZI.js → browser/esm/Jsx_oA3RHPHgakon.mjs} +174 -174
- package/browser/esm/{BCQgeu38866r56Dh.mjs → LOn47j35pLEOdnml.mjs} +5 -5
- package/browser/esm/{DkuK8fY8vrl7aZpf2.mjs → LTN_uMk0eLGdRMPd2.mjs} +7 -7
- package/browser/esm/{f9r0yTaD2YChFtEg2.mjs → LryKLHFrshlshCEk2.mjs} +1 -1
- package/{cdn/assets/LfHB39-nf7mi9XC7.js → browser/esm/N9sXUCWDhn_zpuR2.mjs} +1 -1
- package/{cdn/assets/BF842ZtkvebA1LgR2.js → browser/esm/NLHUljnhbCboNbaU.mjs} +1 -1
- package/browser/esm/{S2_pz0y2RTJFpXkS.mjs → U7ZDW4cwSiPyirkE.mjs} +1 -1
- package/{cdn/assets/CThP3jXwDzLlUOeI2.js → browser/esm/XGGjX0z3ae_AWeTr.mjs} +1 -1
- package/{cdn/assets/DtQu3vHaJfA5KM2H.js → browser/esm/_WaFh_cvGeblogUn2.mjs} +1 -1
- package/browser/esm/{BZZ2IOkVKppFWNLE.mjs → cVFbVoYZRXdqyfp0.mjs} +5 -5
- package/browser/esm/{BBzzLAeBBFbVvgph2.mjs → cwwLkCUZ083FPUTU2.mjs} +2 -2
- package/browser/esm/{BTNqElWtYkKW47Vg.mjs → i8BR1tNQSYLz-zpk.mjs} +3 -3
- package/browser/esm/index.mjs +4 -4
- package/browser/esm/{apjOZ6N9KbmyErGz.mjs → ooXd7RLQr67NrRz9.mjs} +65 -65
- package/browser/esm/{Bl5xLu1ou-9zMIBZ2.mjs → p-0E4OSYsnvo4Jvb2.mjs} +1 -1
- package/browser/esm/{BA6JMESdvw_1-mFg2.mjs → q4b66GxkR8TkSiGY2.mjs} +17 -17
- package/{cdn/assets/Be2-C5U5LlfLTmyo.js → browser/esm/rUQqpcI_WXcsiwea2.mjs} +1 -1
- package/{cdn/assets/CjFOk9mcZqAngWD22.js → browser/esm/yg7AU6dKBI7tCqJd2.mjs} +1 -1
- package/browser/esm/{BiArrlzwKsOlSm00.mjs → z-KpvdyYTapfvTA-.mjs} +4 -4
- package/cdn/assets/{C6X4CmElTpPxrad6.js → 00bUQB6RgRxfotbx2.js} +1 -1
- package/cdn/assets/{Be_TDLQucHiVwNvT.js → 0Jeqx95iG9faxIsB.js} +8 -8
- package/cdn/assets/{QT-5i27zeGPhkyui2.js → 3o0o7-MzWgSJRADP2.js} +12 -12
- package/cdn/assets/{BIab7njjwaSXjSEP.js → 5FA-4PCi5EIs85WR.js} +2 -2
- package/cdn/assets/{BNm-ZCOBoBRceGXA2.js → 61OH_HiXgmNuRUDx2.js} +73 -73
- package/{browser/esm/nBZATD4yR1W5D4Fi.mjs → cdn/assets/7XkdeYBragcPQQS0.js} +1 -1
- package/cdn/assets/{CTzKk6VuZTohsOIF.js → 7bhO6Xzgwllu2tcj.js} +1 -1
- package/cdn/assets/{D5Pa9lfPfAcCGj_N2.js → AwRapR2kwqYVijeW2.js} +1 -1
- package/cdn/assets/{D6Uwvg4vo1g0pWZa.js → B1eVAWzwtBE6vo-r.js} +2 -2
- package/cdn/assets/{588lLflWQypQVzce.js → B3XQHzZTHSzv7fpC.js} +5 -5
- package/cdn/assets/{B2vjec5TDs2ZJ1eI.js → BCWx6QCIVIKOKt9n.js} +1 -1
- package/cdn/assets/{B66--qmqjDI4V95v2.js → BEcgIVa19rKPTwlt2.js} +8 -8
- package/cdn/assets/{QNvOHujamKYSXWWA.js → BFAAw3m7wW7Wnf8i.js} +1 -1
- package/{browser/esm/CQBSLdAdR53c7BVh2.mjs → cdn/assets/BG_6y3dWHiR8LpP-.js} +1 -1
- package/cdn/assets/{BWtyERLPrUmI8Qbi2.js → BInccbDEuHGg1a2y2.js} +92 -92
- package/cdn/assets/{b-o8RUlQpF1RaDgI.js → BJ74o1RxHOu_KTYD2.js} +130 -215
- package/cdn/assets/{XFQGB8ADW__0ZBoF2.js → BKrWCWpOpggPjFQq2.js} +3 -3
- package/cdn/assets/{BTB79KyzSZf-h-lm2.js → BLKL_d2AFcnL6fbw2.js} +16 -16
- package/cdn/assets/{gJT4n5za0DqWXFK12.js → BNSYILHKGtNTW6AH2.js} +22 -22
- package/{browser/esm/DgH-AoqKDdIWg0J8.mjs → cdn/assets/BPh6sTO11J2UoKVG.js} +1 -1
- package/{browser/esm/BEYY8z4FusH7S5K-.mjs → cdn/assets/BQRlxHPPnb-Xp7mx2.js} +1 -1
- package/{browser/esm/7lIMFL11BRZrMXdc2.mjs → cdn/assets/BUbwA9WVFeKfIV6H.js} +1 -1
- package/cdn/assets/{Bqe5WbSIlCRYLcqT.js → BVFVnXqCCuycZFnG.js} +4 -4
- package/cdn/assets/BVri2gMOX526uJV5.js +24 -0
- package/cdn/assets/BVri2gMOX526uJV52.js +24 -0
- package/cdn/assets/{CP0M0z_IaCwCMGNS.js → BXV_vaLwr-mEvH-k.js} +7 -7
- package/cdn/assets/{_gPnIgVx33slqynA.js → BY7a2KqdhpxV2mYN.js} +2 -2
- package/cdn/assets/{BKouftCLbhExXXXU.js → BZpQlzDFTqlBTj8r.js} +124 -125
- package/cdn/assets/{COk-0FZl3cv__3yY2.js → BcGLaH5XYmlLx2is2.js} +7 -7
- package/cdn/assets/{CwDjNuGkKnVtfJo-2.js → Bd-Kkar9gnLuKTRo.js} +1 -1
- package/{browser/esm/DoCYcvHzw3S0MDCW.mjs → cdn/assets/BeQYgyU20NLEnFql.js} +1 -1
- package/{browser/esm/CU1_-PzBC9cDsm5t2.mjs → cdn/assets/BfRnXrO08JOzICDf.js} +1 -1
- package/{browser/esm/B0FNPu0uhX_WW-aJ.mjs → cdn/assets/BfZiZa7P8RpKrStu2.js} +1 -1
- package/cdn/assets/{DPN0a43QHMUmHgo5.js → Bhat781Vzqa1jNlj.js} +3 -3
- package/cdn/assets/{CheDxDxt7x0CPz9P.js → BiQlKPbuRw8sLCC5.js} +7 -7
- package/cdn/assets/{Dlq2nAMNpWkqjt9Y.js → Bijn-3ZS9ONia1ja.js} +14 -14
- package/{browser/esm/jQ5c7MGwQOZq4s5w.mjs → cdn/assets/BjCuy-yO9BQxUj_2.js} +1 -1
- package/{browser/esm/CUMu_1tXFa0LPKGV.mjs → cdn/assets/BlPAZIJrjbcHxcJj.js} +316 -316
- package/cdn/assets/{CPjsJ0CY-AurDJgm2.js → BljA9tG92oDDEqjC2.js} +13 -13
- package/{browser/esm/13CH9sjvoEqt6nbt2.mjs → cdn/assets/BouiFjb9pyWsROiW.js} +1 -1
- package/cdn/assets/{C1doaJjkCzQlB_3u.js → BqT5uCSFT_HATJJw.js} +1 -1
- package/cdn/assets/{f1iQWnLWVpKZ34XR2.js → Buwn5fZU7jRx2O2L2.js} +8 -8
- package/cdn/assets/{CzEHYpK2SYTRpxDm2.js → ByMjPzoTrB6veNzc2.js} +25 -25
- package/cdn/assets/{CUrzB9ponX7LAYXR.js → Bzv3-2eiz66ZkXnN.js} +3 -3
- package/cdn/assets/{CUTnOs5iWyc3J2cN2.js → C1HfU9WnOyE_81Y22.js} +14 -14
- package/cdn/assets/{CWOPhBfYI6R0kz-p.js → C2-SeODnwo_GR5pz.js} +501 -501
- package/cdn/assets/{BT3KOuPzJsNUvy4B.js → C3D_ZF-8-b6d8y4e2.js} +2 -2
- package/cdn/assets/{C7ZHXwoL2A_nxZjl.js → C4cN9i6GMOS58iau.js} +65 -65
- package/cdn/assets/{CDijenaMI_dBIGU-.js → C5JHyXmpBXqT829C.js} +464 -464
- package/{browser/esm/DuijhgjRhgWB9sCY.mjs → cdn/assets/C62Y8jSQuT2_lqUs2.js} +240 -228
- package/cdn/assets/{BaEH7HZAJkFGHtNj2.js → C6FGZZf4iXdgdE2p2.js} +66 -66
- package/{browser/esm/Bfq8Gdqf3I7y_Hju.mjs → cdn/assets/C9QsQZR03iUbXGDd2.js} +1 -1
- package/{browser/esm/CAVONPXgoytyiNK-.mjs → cdn/assets/CFKZFbkoc-8gG0EH.js} +1 -1
- package/cdn/assets/{eTXmezPFvAwM_L-D.js → CIsuqkDFqRaqaULt2.js} +1 -1
- package/cdn/assets/{Bcjus_Q6f72kE1MK.js → CNBdjbsAfeLxOXNu.js} +1 -1
- package/cdn/assets/{BB6k7f_6TCVysy8a.js → CNJDMOYg-cuIfNfJ.js} +3 -3
- package/cdn/assets/{CA9oxppuFcYDyylE.js → CNJExdRjs2zrq2QI2.js} +12 -12
- package/{browser/esm/BG_hG8jUkf0aMzGK.mjs → cdn/assets/COqWk0Oh4IaPrTm7.js} +2 -2
- package/cdn/assets/{Bokc-Wu4XBPWKmdt.js → CPgdrQexyUXiviTo.js} +1 -1
- package/{browser/esm/BDZAVKSYpcOp9Dve2.mjs → cdn/assets/CQi9Ek-nl9QWmoMC.js} +1 -1
- package/cdn/assets/{B9hBziUoXFzKPWF02.js → CRGjj70fiZgAfoOZ2.js} +7 -7
- package/cdn/assets/{2QsTDWiE6SMelbNU2.js → CRepp6I1poWZwijy2.js} +7 -7
- package/cdn/assets/{B_sKE05xgjFFafjm.js → CU-pICtgXW5Kn0sP.js} +1839 -1839
- package/cdn/assets/{lHpMVBxqkkCYD6d1.js → CVV-QxmM_7vUYzFC2.js} +1 -1
- package/cdn/assets/{BPOi08RtEmQdlbtS2.js → CX7_0zQyYWqVfYUE2.js} +12 -12
- package/cdn/assets/{Ifw8W-tqHjQnCWZO2.js → CZuu-bOdg704oDMV2.js} +40 -40
- package/cdn/assets/{ep-IjWXOPg2b-REP2.js → C_6kPChYiQzj6w3V2.js} +1 -1
- package/cdn/assets/{UNtnFd2ssTtnrqRp.js → CdP9qTlDd3C1oYJE.js} +1917 -1907
- package/{browser/esm/yVLsr0rcaOFel2nS2.mjs → cdn/assets/ChKDkoQeoZMHq0r7.js} +1 -1
- package/cdn/assets/{DTfDzhFtORWkuoRv2.js → CiMRlH1xk4i9IiEn.js} +1 -1
- package/{browser/esm/DbVSG7Uf7YDQbmc32.mjs → cdn/assets/CiUtfAMZeVao4r9g2.js} +1 -1
- package/cdn/assets/{B9oLwnLz9m-TWSPJ2.js → CkGtAcs5pCYCEP8p.js} +65 -65
- package/cdn/assets/{D13sLQRMMKrDHepu2.js → ClQiq37bto-oxKtL2.js} +1 -1
- package/cdn/assets/{AAHsV9V95k39t9SD.js → ClrdhQeh_WoBg0Ws.js} +1 -1
- package/cdn/assets/{txVgXcuMeWVNWHnZ.js → CmNtmMkhbzV8j_I0.js} +1 -1
- package/cdn/assets/{V-oO_EfTyth0iptZ.js → Cm_bL9sY_cm-k_Pq2.js} +1 -1
- package/cdn/assets/{Bi9IWSBo7DDXROTC.js → CnBG1teWhE7BlvvP.js} +2 -2
- package/{browser/esm/Dd80tsdITZsotoCX2.mjs → cdn/assets/CqheKk46etN--iuw.js} +1 -1
- package/cdn/assets/{CCTYceFrydwG3Vyt2.js → Cr34xFdpfmYj3XVX.js} +6852 -6812
- package/cdn/assets/{BM343UBJqjbDokO6.js → CsDejQBEe09RdeRI2.js} +1 -1
- package/cdn/assets/{BBaNqp1ZjuO25FQg.js → CsG9IQdgctp6tf2X.js} +1 -1
- package/cdn/assets/{erwt6xEgCY7lDQWp.js → CweS1pLcEo28_Fd3.js} +3 -3
- package/{browser/esm/DjNR_ZGCbg-xia152.mjs → cdn/assets/Cz77LBaC6qe0hPm0.js} +1 -1
- package/{browser/esm/BVtQCzVeMOJZq64r2.mjs → cdn/assets/D6FSp0JpvARNns7B.js} +81 -81
- package/cdn/assets/{BsHFBjNwTzc_CKLq2.js → D6g5-9e1xAhCBLKs2.js} +9659 -9661
- package/cdn/assets/{BOhfbmK18Xj1P7-i2.js → DCY3GQ5g02kgKrPz.js} +1 -1
- package/{browser/esm/CPgOplnn6NuHwsZ_.mjs → cdn/assets/DDfhrc6lUmerlDLA.js} +1 -1
- package/cdn/assets/{DIlrvTRlRll76TiE2.js → DE2W5y4QJln8ofNW2.js} +117 -117
- package/cdn/assets/{DmRqcUu6qCPcOxgW.js → DFs_9gdet_-cO7iH.js} +2 -2
- package/cdn/assets/{DmQ4uKOlhrcJfgk82.js → DLBKxOA2T_WJvvvH2.js} +16 -16
- package/cdn/assets/{CmSATmXaMlqwTjAe.js → DN6XiWA9mgKCYBL7.js} +1 -1
- package/{browser/esm/CULlzRLL3s2Dikjg.mjs → cdn/assets/DQXXQ7c_080TSD18.js} +1 -1
- package/{browser/esm/BauR0SATr44ggHRU.mjs → cdn/assets/DVRMsPYzWC08As4p.js} +264 -264
- package/cdn/assets/{BsGz_0JrhSfOZ24Q.js → DW_9fxHbJWAA6hS7.js} +3 -3
- package/cdn/assets/{D-egzesxukW7Z_e32.js → DXuBmWXG49kvaZNr.js} +1 -1
- package/{browser/esm/B_49GiUSgx96vBvq2.mjs → cdn/assets/DYoBCnD1PVzOITgb.js} +1 -1
- package/{browser/esm/gCeoOjDjiVaX8dtF2.mjs → cdn/assets/D_tGKL5JvKpHg5Se.js} +1 -1
- package/cdn/assets/{ByHzW_x0qXsBJMwv2.js → DhJUo9PMmo1COlmU2.js} +1045 -1045
- package/cdn/assets/{CAOPlenSF-pjVfqt2.js → DiViqDuRVTrNy_8T2.js} +2 -2
- package/cdn/assets/{CqI09iUEId8rHfJ9.js → DilLxTePPshHHpSq.js} +6 -6
- package/cdn/assets/{CBQrIDBtf5Ibwi96.js → DoVrePIXmzfLRmKR2.js} +2 -2
- package/cdn/assets/{C2X9NooB33IkSomz.js → Doj9y5S2cMVRtP1D.js} +8 -8
- package/{browser/esm/CnvlkxK0pS02Z3gZ.mjs → cdn/assets/Dr3NMWk6K4-HWYsp.js} +1 -1
- package/{browser/esm/DZLyXICwEHYRnCuO.mjs → cdn/assets/DrVaoGzrL25jLUGy.js} +3 -3
- package/cdn/assets/{B50P0gSziuG68Umu2.js → DsGBg42mflMr5nWn2.js} +1 -1
- package/{browser/esm/C04uI3XsvTc6Cc7w2.mjs → cdn/assets/DtFBvTH8ScTC26Xd2.js} +1 -1
- package/cdn/assets/{B_UEqzmXZIhHAEyS.js → DtOWX0kdgZMsDoO7.js} +8 -8
- package/cdn/assets/{Dz0_oXqVesISvhbJ.js → DtumfSbgP4e8W8h3.js} +3 -3
- package/cdn/assets/{DJBTmv-rddT91Z-N2.js → DwB2Aw3VeP0bDUcu2.js} +18 -18
- package/cdn/assets/{Dn8Z0WK2Hwi8MRnQ2.js → DwpzhMm9SjvmHEpB2.js} +1 -1
- package/{browser/esm/D1bACCJy4F8kANLy.mjs → cdn/assets/ERmTt8XRToIi7stb2.js} +1 -1
- package/cdn/assets/{VEJV_bhNDNNyZAIA2.js → FG3AVHTW-X8T6X6V2.js} +8 -8
- package/cdn/assets/{Dg26zVdGlO10MX0h2.js → Ks5Tzjg6SEeoLe6a.js} +21 -21
- package/cdn/assets/{f9r0yTaD2YChFtEg.js → LryKLHFrshlshCEk.js} +1 -1
- package/{browser/esm/LfHB39-nf7mi9XC72.mjs → cdn/assets/N9sXUCWDhn_zpuR22.js} +1 -1
- package/cdn/assets/{BSixIKI7PxSqiUGB2.js → NHd14bmjDunGi64w2.js} +5 -5
- package/{browser/esm/BF842ZtkvebA1LgR.mjs → cdn/assets/NLHUljnhbCboNbaU2.js} +1 -1
- package/cdn/assets/{I2Cn0c2NkX845WIx.js → POvNgF4k1Kibh6Db.js} +6 -6
- package/cdn/assets/{C3KIo0iwLXhIIMG8.js → RnavifpmQlGK2gal.js} +2 -2
- package/cdn/assets/{DoBxkE57H5PfH7Or.js → TA52Zf5ZMCu6I721.js} +2 -2
- package/cdn/assets/{S2_pz0y2RTJFpXkS2.js → U7ZDW4cwSiPyirkE2.js} +1 -1
- package/{browser/esm/CThP3jXwDzLlUOeI.mjs → cdn/assets/XGGjX0z3ae_AWeTr2.js} +1 -1
- package/cdn/assets/{DYCh_5thAx4qo1ns2.js → ZGRko_YhO95NyKLu.js} +757 -757
- package/{browser/esm/DtQu3vHaJfA5KM2H2.mjs → cdn/assets/_WaFh_cvGeblogUn.js} +1 -1
- package/cdn/assets/{CZ3JFujrzd0iX0zL2.js → hbYg8nwB--Ouo3PE2.js} +72 -72
- package/cdn/assets/{DI4QTfUQPCjSn0kl.js → kgHG0ixsMXmNdu8U.js} +7 -7
- package/cdn/assets/{Bl5xLu1ou-9zMIBZ.js → p-0E4OSYsnvo4Jvb.js} +1 -1
- package/cdn/assets/{N5PCgig3g9yqotn9.js → qBcxlsrimi009WnV.js} +2 -2
- package/{browser/esm/Be2-C5U5LlfLTmyo2.mjs → cdn/assets/rUQqpcI_WXcsiwea.js} +1 -1
- package/{browser/esm/CjFOk9mcZqAngWD2.mjs → cdn/assets/yg7AU6dKBI7tCqJd.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +3 -3
- package/browser/cjs/B0FCH1gFfg2bQiPi2.cjs +0 -1
- package/browser/cjs/B3WkiDqFBfA_xxJL2.cjs +0 -1
- package/browser/cjs/Bqup1MCJFqTZbLDd2.cjs +0 -1
- package/browser/cjs/BsJHSGeWLskirGXg.cjs +0 -14
- package/browser/cjs/Bsl_clm06l5cwpML.cjs +0 -32
- package/browser/cjs/BvVzIzXLyLxpBcia2.cjs +0 -3
- package/browser/cjs/C1tOH7BEpO_ANMsa.cjs +0 -1
- package/browser/cjs/CA_ZsYjkTHSpGK0j.cjs +0 -41
- package/browser/cjs/CoCKYtBIVeDXxSIq2.cjs +0 -1
- package/browser/cjs/CqPb6CbrHTRnbSKa2.cjs +0 -8
- package/browser/cjs/D2ZPx3v4EVejvhR2.cjs +0 -54
- package/browser/cjs/D8tkBbkGH5cZzIJP2.cjs +0 -1
- package/browser/cjs/DP1pufP3NJFoDa-g.cjs +0 -3
- package/browser/cjs/DTZiRVEB3kVK7eK-2.cjs +0 -1
- package/browser/cjs/DU2HMmI1EeHBTvuG.cjs +0 -1
- package/browser/cjs/DWzkpizTIJkaqf4J2.cjs +0 -1
- package/browser/cjs/Dk1WS0vM-LQJx_EO2.cjs +0 -1
- package/browser/cjs/DtlC63s51_88j6AY2.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B872.cjs +0 -1
- package/browser/cjs/VgwyOcXDHhEp_NvH2.cjs +0 -1
- package/browser/cjs/xTT7lHV4HUjeNdMs2.cjs +0 -1
- package/cdn/assets/C6X4CmElTpPxrad62.js +0 -24
- package/cdn/assets/CUYBRp4sHMdGwkLT2.js +0 -24
- /package/browser/cjs/{1XrWGMP3GmsQOMIX2.cjs → 1XrWGMP3GmsQOMIX.cjs} +0 -0
- /package/browser/cjs/{B6vy56yEA1I3B74O2.cjs → B6vy56yEA1I3B74O.cjs} +0 -0
- /package/browser/cjs/{BK0SCfN_VZYqBxoQ2.cjs → BK0SCfN_VZYqBxoQ.cjs} +0 -0
- /package/browser/cjs/{BcROQ4pvVajDQ1em.cjs → BcROQ4pvVajDQ1em2.cjs} +0 -0
- /package/browser/cjs/{BvG8N7G_8CXIAlT-.cjs → BvG8N7G_8CXIAlT-2.cjs} +0 -0
- /package/browser/cjs/{C4cZxb9nRtzTCA40.cjs → C4cZxb9nRtzTCA402.cjs} +0 -0
- /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
- /package/browser/cjs/{CVHc_cJddJk7J3Zt2.cjs → CVHc_cJddJk7J3Zt.cjs} +0 -0
- /package/browser/cjs/{CaJGoNwTL6pAJ6a42.cjs → CaJGoNwTL6pAJ6a4.cjs} +0 -0
- /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
- /package/browser/cjs/{DF4l8xrxkcLkgExp2.cjs → DF4l8xrxkcLkgExp.cjs} +0 -0
- /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
- /package/browser/cjs/{DM7-R_ltoLbA9jde.cjs → DM7-R_ltoLbA9jde2.cjs} +0 -0
- /package/browser/cjs/{DNKyaSruDogoBd2H2.cjs → DNKyaSruDogoBd2H.cjs} +0 -0
- /package/browser/cjs/{Dtxj9JR14A-uliu5.cjs → Dtxj9JR14A-uliu52.cjs} +0 -0
- /package/browser/cjs/{Dx7GQ4ALtNG3kshu.cjs → Dx7GQ4ALtNG3kshu2.cjs} +0 -0
- /package/browser/cjs/{aONv0Ys3C8xmnaR82.cjs → aONv0Ys3C8xmnaR8.cjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./DLtFM988NCD-jeBV.cjs"),t=require("./BPWKnUtyoTrtW567.cjs"),n=require("./CH7BUjrXIKDIE7XE.cjs"),r=require("./DP1pufP3NJFoDa-g.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./TZQc-szdIVnHDH6F.cjs"),o=require("./DZBKNR9xUMTHWS_D.cjs");var s=new Uint8Array,c=class e{constructor(e,t,n){this.buffers=new Map,this.zip=e,this.entries=t,this.rawBuffer=n}static normalize(e){return e.startsWith(`/`)?e.slice(1):e}static async create(t){let n=t instanceof Blob?s:t instanceof Uint8Array?t:new Uint8Array(t),r=new a.o(t instanceof Blob?new a.E(t):new a.k(n)),i=new Map;for(let e of await r.getEntries())e.directory||i.set(e.filename,e);return new e(r,i,n)}getNames(){return[...this.entries.keys()]}has(t){return this.entries.has(e.normalize(t))}uncompressedSize(t){return this.entries.get(e.normalize(t))?.uncompressedSize??0}async getBuffer(t){let n=e.normalize(t),r=this.buffers.get(n);if(r)return r;let i=this.entries.get(n);if(!i)return null;let o=await i.getData(new a.M);return this.buffers.set(n,o),o}async prefetch(e){let t=[];for(let[n,r]of this.entries)!this.buffers.has(n)&&e(n,r)&&t.push(r.getData(new a.M).then(e=>{this.buffers.set(n,e)}));await Promise.all(t)}getEntry(t){return this.buffers.get(e.normalize(t))??null}async getTextStream(t,n){let r=this.entries.get(e.normalize(t));if(!r)return null;let i=new TransformStream;r.getData(i.writable).catch(()=>{});let a=i.readable.getReader(),o=new TextDecoder(`utf-8`);return new ReadableStream({async pull(e){let{value:t,done:r}=await a.read();if(r){let t=o.decode();t&&e.enqueue(t),e.close();return}n?.(t.byteLength);let i=o.decode(t,{stream:!0});i&&e.enqueue(i)}}).getReader()}getRawEntry(t){let n=this.entries.get(e.normalize(t));if(!n||n.encrypted)return null;let r=n.offset;if(r+30>this.rawBuffer.byteLength)return null;let i=new DataView(this.rawBuffer.buffer,this.rawBuffer.byteOffset+r,30);if(i.getUint32(0,!0)!==67324752)return null;let a=r+30+i.getUint16(26,!0)+i.getUint16(28,!0),o=a+n.compressedSize;return o>this.rawBuffer.byteLength?null:{data:this.rawBuffer.subarray(a,o),compressionMethod:n.compressionMethod,signature:n.signature}}async close(){await this.zip.close()}},l=class{constructor(e){this._sink=e,this._samples=[],this._t0=u(),this._tPrev=this._t0,this._heapPrev=d()}mark(e){let t=u(),n=d(),r={label:e,tMs:t-this._t0,dtMs:t-this._tPrev,heapBytes:n,dHeapBytes:n!==void 0&&this._heapPrev!==void 0?n-this._heapPrev:void 0,rssBytes:f()};this._tPrev=t,this._heapPrev=n,this._samples.push(r),this._sink?.(r)}samples(){return this._samples}toTable(){return this._samples.map(e=>({phase:e.label,tMs:Math.round(e.tMs),dtMs:Math.round(e.dtMs),heapMB:e.heapBytes===void 0?`—`:p(e.heapBytes/1048576),dHeapMB:e.dHeapBytes===void 0?`—`:p(e.dHeapBytes/1048576),rssMB:e.rssBytes===void 0?`—`:p(e.rssBytes/1048576)}))}},u=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now();function d(){let e=typeof performance==`object`?performance.memory:void 0;if(e&&typeof e.usedJSHeapSize==`number`)return e.usedJSHeapSize;let t=globalThis.process;return typeof t==`object`&&typeof t.memoryUsage==`function`?t.memoryUsage().heapUsed:void 0}function f(){let e=globalThis.process;if(typeof e==`object`&&typeof e.memoryUsage==`function`)return e.memoryUsage().rss}function p(e){return Math.round(10*e)/10}var m=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,h=`-${m}.0-9·̀-ͯ‿-⁀`,g=(RegExp(`^[${m}]$`,`u`),RegExp(`^[${h}]$`,`u`),RegExp(`^[${m}][${h}]*$`,`u`)),_=(RegExp(`^[${h}]+$`,`u`),[32,10,13,9]);function v(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var y=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,b=`-${y}.0-9·̀-ͯ‿-⁀`;RegExp(`^[${y}]$`,`u`),RegExp(`^[${b}]$`,`u`),RegExp(`^[${y}][${b}]*$`,`u`),RegExp(`^[${b}]+$`,`u`);var x=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,S=`-${x}.0-9·̀-ͯ‿-⁀`,ee=(RegExp(`^[${x}]$`,`u`),RegExp(`^[${S}]$`,`u`),RegExp(`^[${x}][${S}]*$`,`u`));function C(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var w,T=function(e){return e===32||e===10||e===13||e===9},te=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},E=v,D=function(e){return v(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256},ne=_,O=g,k=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},A=C,j=function(e){return C(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256},M=ee,re=`http://www.w3.org/XML/1998/namespace`,N=`http://www.w3.org/2000/xmlns/`,P={__proto__:null,xml:re,xmlns:N},F={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},I=-1,L=-2,R=13,z=33,B=10,V=60,H=61,U=62,W=63,ie=93,G=e=>e===34||e===39,ae=[34,39],oe=[...ae,91,U],se=[...ae,V,ie],ce=[H,W,...ne],le=[...ne,U,38,V];function ue(e,t,n){switch(t){case`xml`:n!==re&&e.fail(`xml prefix must be bound to ${re}.`);break;case`xmlns`:n!==N&&e.fail(`xmlns prefix must be bound to ${N}.`)}switch(n){case N:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${N}.`);break;case re:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}var de,fe=e=>M.test(e),pe=e=>O.test(e),me={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`},he=class{get closed(){return this._closed}constructor(e){this.i=0,this.prevI=0,this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=A,this.nameCheck=j,this.isName=fe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...P};let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))ue(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=E,this.nameCheck=D,this.isName=pe,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()}_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=[];let{fragmentOpt:e}=this;this.state=e?R:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:t}=this.opt;if(t===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);t=`1.0`}this.setXMLVersion(t),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(F),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[me[e]]=t}off(e){this[me[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let e=this.chunk,t=this.i;if(this.prevI=t,this.i++,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:return e.charCodeAt(t+1)===B&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:{let n=e.charCodeAt(t+1);n!==B&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===L?B:e}unGet(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===L,a=i?B:r;if(a===I||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case L:this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i,r=B;break;case I:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===I)return this.name+=e.slice(t),I;if(!D(n))return this.name+=e.slice(t,this.prevI),n===L?B:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===I||!T(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=te,this.getCode=this.getCode10):(this.isChar=k,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case V:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case I:break;default:this.unGet(),this.state=R,this.xmlDeclPossible=!1}}sDoctype(){let e=this.captureTo(oe);switch(e){case U:this.doctypeHandler?.(this.text),this.text=``,this.state=R,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(e),e===91?this.state=4:G(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(se);e!==I&&(this.text+=String.fromCodePoint(e),e===ie?this.state=2:e===V?this.state=6:G(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case W:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(W)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;t:for(;;)switch(this.getCode()){case L:this.entity+=`${t.slice(e,this.prevI)}\n`,e=this.i;break;case 59:{let n,{entityReturnState:r}=this,i=this.entity+t.slice(e,this.prevI);this.state=r,i===``?(this.fail(`empty entity name.`),n=`&;`):(n=this.parseEntity(i),this.entity=``),r===R&&this.textHandler===void 0||(this.text+=n);break t}case I:this.entity+=t.slice(e);break t}}sOpenWaka(){let e=this.getCode();if(E(e))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=``,this.xmlDeclPossible=!1;break;case W:this.state=23;break;default:this.fail(`disallowed character in tag name`),this.state=R,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(){let e=this.getCodeNorm();e===45?(this.state=19,this.commentHandler?.(this.text),this.text=``):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===U?this.state=R:(this.fail(`malformed comment.`),this.text+=`--${String.fromCodePoint(e)}`,this.state=17)}sCData(){this.captureToChar(ie)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===ie?this.state=22:(this.text+=`]${String.fromCodePoint(e)}`,this.state=20)}sCDataEnding2(){let e=this.getCodeNorm();switch(e){case U:this.cdataHandler?.(this.text),this.text=``,this.state=R;break;case ie:this.text+=`]`;break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===W||T(e)?(this.fail(`processing instruction without a target.`),this.state=e===W?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===I)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===W;r||T(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?z:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===W?this.state=26:T(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(W)&&(this.state=26)}sPIEnding(){let e=this.getCodeNorm();if(e===U){let{piTarget:e}=this;e.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),this.piHandler?.({target:e,body:this.text}),this.piTarget=this.text=``,this.state=R}else e===W?this.text+=`?`:(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===W?this.state=z:e!==I&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(ce);if(e===W)return this.state=z,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(T(e)||e===H){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=e===H?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(e!==H&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(G(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,W]);if(e===W)return this.state=z,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===I)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===W?this.state=z:(T(e)||(this.fail(`whitespace required.`),this.unGet()),this.state=27)}sXMLDeclEnding(){this.getCodeNorm()===U?(this.piTarget===`xml`?this.name!==`version`&&this.xmlDeclExpects.includes(`version`)&&this.fail(`XML declaration must contain a version.`):this.fail(`processing instructions are not allowed before root.`),this.xmlDeclHandler?.(this.xmlDecl),this.name=``,this.piTarget=this.text=``,this.state=R):this.fail(`The character ? is disallowed anywhere in XML declarations.`),this.xmlDeclPossible=!1}sOpenTag(){let e=this.captureNameChars();if(e===I)return;let t=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=``,this.xmlnsOpt&&(this.topNS=t.ns=Object.create(null)),this.openTagStartHandler?.(t),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail(`documents may contain only one root.`),e){case U:this.openTag();break;case 47:this.state=35;break;default:T(e)||this.fail(`disallowed character in tag name.`),this.state=36}}sOpenTagSlash(){this.getCode()===U?this.openSelfClosingTag():(this.fail(`forward-slash in opening tag not followed by >.`),this.state=36)}sAttrib(){let e=this.skipSpaces();e!==I&&(E(e)?(this.unGet(),this.state=37):e===U?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===H?this.state=39:T(e)?this.state=38:e===U?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==I&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case I:return;case H:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===U?this.openTag():E(e)?(this.unGet(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();G(e)?(this.q=e,this.state=40):T(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unGet())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case B:case L:case 9:this.text+=`${t.slice(n,this.prevI)} `,n=this.i;break;case V:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case I:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();T(e)?this.state=36:e===U?this.openTag():e===47?this.state=35:E(e)?(this.fail(`no whitespace between attributes.`),this.unGet(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(le);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case V: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=``,e===U?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===U?this.closeTag():T(e)?this.state=44:e!==I&&this.fail(`disallowed character in closing tag.`)}sCloseTagSawWhite(){switch(this.skipSpaces()){case U:this.closeTag();break;case I:break;default:this.fail(`disallowed character in closing tag.`)}}handleTextInRoot(){let{i:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;t:for(;;)switch(this.getCode()){case V:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break t;case 38:this.state=14,this.entityReturnState=R,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break t;case ie:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case U:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case L:r!==void 0&&(this.text+=`${n.slice(e,this.prevI)}\n`),e=this.i,t=0;break;case I:r!==void 0&&(this.text+=n.slice(e));break t;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;t:for(;;){let i=this.getCode();switch(i){case V:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break t;case 38:this.state=14,this.entityReturnState=R,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break t;case L:n!==void 0&&(this.text+=`${t.slice(e,this.prevI)}\n`),e=this.i;break;case I:n!==void 0&&(this.text+=t.slice(e));break t;default:T(i)||(r=!0)}}r&&(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(e,t){let{prefix:n,local:r}=this.qName(e),i={name:e,prefix:n,local:r,value:t};if(this.attribList.push(i),this.attributeHandler?.(i),n===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[r]=e,ue(this,r,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,ue(this,``,e)}}pushAttribPlain(e,t){let n={name:e,value:t};this.attribList.push(n),this.attributeHandler?.(n)}end(){this.sawRoot||this.fail(`document must contain a root element.`);let{tags:e}=this;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}this.state!==0&&this.state!==R&&this.fail(`unexpected end.`);let{text:t}=this;return t.length!==0&&(this.textHandler?.(t),this.text=``),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(e){let t=this.topNS[e];if(t!==void 0)return t;let{tags:n}=this;for(let r=n.length-1;r>=0;r--)if(t=n[r].ns[e],t!==void 0)return t;return t=this.ns[e],t===void 0?this.opt.resolvePrefix?.(e):t}qName(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qName(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let e,i,{name:a,prefix:o,local:s}=t;o===``?(e=a===`xmlns`?N:``,i=a):(e=this.resolve(o),e===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),e=o),i=`{${e}}${s}`),r.has(i)&&this.fail(`duplicate attribute: ${i}.`),r.add(i),t.uri=e,n[a]=t}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!1,this.openTagHandler?.(t),e.push(t),this.state=R,this.name=``}openSelfClosingTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!0,this.openTagHandler?.(t),this.closeTagHandler?.(t),(this.tag=e[e.length-1]??null)===null&&(this.closedRoot=!0),this.state=R,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=R,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-->0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag: ${t}.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;return e[1]===`x`&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail(`malformed character entity.`),`&${e};`)}},ge=/&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g,_e={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},ve=(e,t)=>{let n=_e[t];if(n!==void 0)return n;let r=t.charCodeAt(1)===120?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>0&&r<=1114111?String.fromCodePoint(r):e},K=e=>{let t=e;return t.indexOf(`\r`)!==-1&&(t=t.replace(/\r\n?/g,`
|
|
2
|
-
`)),t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},ye=e=>{let t=e,n=t.length;for(let e=0;e<n;e++){let n=t.charCodeAt(e);if(n===9||n===10||n===13){t=t.replace(/\r\n|[\t\n\r]/g,` `);break}}return t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},q=e=>e===32||e===9||e===10||e===13,be=class e{constructor(){this._openTagHandler=void 0,this._closeTagHandler=void 0,this._textHandler=void 0,this._cdataHandler=void 0,this._errorHandler=void 0,this._endHandler=void 0,this._scanners=null,this._carry=``,this._text=``,this._tags=[],this._sawRoot=!1,this._closed=!1}static{this.NEED_MORE=-1}static{this.NOT_HANDLED=-2}static decodeText(e){return K(e)}on(e,t){switch(e){case`opentag`:this._openTagHandler=t;break;case`closetag`:this._closeTagHandler=t;break;case`text`:this._textHandler=t;break;case`cdata`:this._cdataHandler=t;break;case`error`:this._errorHandler=t;break;case`end`:this._endHandler=t}}setElementScanners(e){if(!e||e.length===0)return void(this._scanners=null);let t=Array(128);for(let n of e){let e=n.name.charCodeAt(0);if(!(e<128)||t[e]!==void 0)throw Error(`Element scanner '${n.name}' needs an ASCII first character no other scanner uses.`);t[e]=n}this._scanners=t}fail(e){let t=Error(e),n=this._errorHandler;if(n===void 0)throw t;n(t)}write(e){if(this._closed)return this.fail(`cannot write after close.`),this;let t=e;this._carry.length!==0&&(t=this._carry+e,this._carry=``);let n=t.length,r=0;for(;r<n;){let e=t.indexOf(`<`,r);if(e===-1)return this._text+=t.slice(r),this;e>r&&(this._text+=t.slice(r,e));let i=this._markup(t,e,n);if(i===-1)return this._carry=t.slice(e),this;r=i}return this}close(){this._carry.length!==0&&(this.fail(`unexpected end.`),this._carry=``),this._sawRoot||this.fail(`document must contain a root element.`);let e=this._tags;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}return this._flushText(),this._closed=!0,this._endHandler?.(),this}_flushText(){let e=this._text;if(e.length===0)return;this._text=``;let t=this._textHandler;t!==void 0&&this._tags.length!==0&&t(K(e))}_markup(t,n,r){if(n+1>=r)return-1;let i=t.charCodeAt(n+1);if(i===47){let e=t.indexOf(`>`,n+2);return e===-1?-1:(this._flushText(),this._closeTag(t.slice(n+2,e).trimEnd()),e+1)}if(i===63){let e=t.indexOf(`?>`,n+2);return e===-1?-1:e+2}if(i===33){if(n+4>r)return-1;if(t.charCodeAt(n+2)===45&&t.charCodeAt(n+3)===45){let e=t.indexOf(`-->`,n+4);return e===-1?-1:e+3}if(n+9>r)return-1;if(t.startsWith(`[CDATA[`,n+2)){let e=t.indexOf(`]]>`,n+9);return e===-1?-1:(this._flushText(),this._cdataHandler?.(t.slice(n+9,e)),e+3)}let e=t.indexOf(`[`,n+2),i=t.indexOf(`>`,n+2);if(i===-1)return-1;if(e!==-1&&e<i){let n=t.indexOf(`]>`,e);return n===-1?-1:n+2}return i+1}let a=this._scanners;if(a!==null){let o=i<128?a[i]:void 0;if(o!==void 0&&t.startsWith(o.name,n+1)){let i=n+1+o.name.length;if(i>=r)return-1;let a=t.charCodeAt(i);if(a===62||a===47||q(a)){this._flushText();let i=o.scan(t,n,r);if(i!==e.NOT_HANDLED){if(i!==e.NEED_MORE){this._sawRoot=!0;let e=o.openTag;e!==void 0&&this._tags.push(e)}return i}}}}return this._openTag(t,n,r)}_openTag(e,t,n){let r=t+1,i=0;for(;r<n&&(i=e.charCodeAt(r),i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t+1,r),o={},s=!1;for(;;){for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i===62){r++;break}if(i===47){if(r+1>=n)return-1;if(e.charCodeAt(r+1)!==62){this.fail(`forward-slash in opening tag not followed by >.`),r++;continue}s=!0,r+=2;break}let t=r;for(;r<n&&(i=e.charCodeAt(r),i!==61&&i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t,r);for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==61){this.fail(`attribute without value.`);continue}for(r++;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==34&&i!==39){this.fail(`unquoted attribute value.`);continue}let c=e.indexOf(i===34?`"`:`'`,r+1);if(c===-1)return-1;a!==`__proto__`&&(o[a]=ye(e.slice(r+1,c))),r=c+1}this._flushText(),this._sawRoot=!0;let c={name:a,attributes:o,isSelfClosing:s};return this._openTagHandler?.(c),s?this._closeTagHandler?.(c):this._tags.push(c),r}_closeTag(e){if(e===``)return void this.fail(`weird empty close tag.`);let t=this._tags,n=this._closeTagHandler,r=t.length;for(;r-->0;){let r=t.pop();if(n?.(r),r.name===e)return;this.fail(`unexpected close tag: ${e}.`)}this.fail(`unmatched closing tag: ${e}.`)}};(de=w||={}).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`},de.parseStream=async(e,t,n)=>{if(n?.lean)return(async(e,t)=>{let n,r=new be;t.elementScanners&&r.setElementScanners(t.elementScanners),t.onOpenTag&&r.on(`opentag`,t.onOpenTag),t.onCloseTag&&r.on(`closetag`,t.onCloseTag),t.onText&&r.on(`text`,t.onText),t.onError&&r.on(`error`,t.onError);let i=t.onEnd;for(i&&r.on(`end`,()=>{n=i()});;){let{value:t,done:n}=await e.read();if(n)break;r.write(t)}return r.close(),n})(e,t);let r,i=new he({position:!1,...n});t.onOpenTagStart&&i.on(w.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&i.on(w.Events.OpenTag,t.onOpenTag),t.onCloseTag&&i.on(w.Events.CloseTag,t.onCloseTag),t.onAttribute&&i.on(w.Events.Attribute,t.onAttribute),t.onText&&i.on(w.Events.Text,t.onText),t.onError&&i.on(w.Events.Error,t.onError);let a=t.onEnd;for(a&&i.on(w.Events.End,()=>{r=a()});;){let{value:t,done:n}=await e.read();if(n)break;i.write(t)}return i.close(),r};var J=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,Y=e=>{let t=parseInt(e);return isNaN(t)?null:t},X=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Z=null,xe=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),Q=e=>xe(e).replace(/"/g,`"`),Se=class{constructor(){this._registeredVisitors=new Map}registerVisitor(e){this._registeredVisitors.set(e.from,e)}createEventHandler(e,t,n){let r=this._registeredVisitors,i=[],a=[],o=null,s=null,c=null,l=null,u=[],d={key:null,source:e,parent:null},f=null,p=!1,m=null,h=null,g=null,_=(e,t)=>{let n=c.attributes[e];if(t){if(Array.isArray(t)){let e=t.length;for(let r=0;r<e;r++)if(n==null||(n=t[r](n),n==null))return}else if(n==null||(n=t(n),n==null))return}return n},v={getSource:()=>f?.source??null,setSource:e=>{f.source=e},setKey:e=>{f.key=e},getFrom:()=>c,getAttribute:(e,t)=>_(e,t)??null,hasAttribute:e=>v.getAttribute(e)!==null,getParent:()=>{let e=u[u.length-2];return e.parent??e.source},getPath:()=>{let e=[],t=a.length;for(let n=0;n<t;n++)e.push(a[n].local);return e.join(`\\`)},parseAttribute:_,getRawXml:()=>g,copyToObject:(e,t,n,r)=>{let i=_(r??t,n);i!==void 0&&(e[t]=i)},copyTo:(e,t,n)=>{let r=_(n??e,t);r!==void 0&&(f.source[e]=r)},warn:(e,t)=>{n?n(e,void 0,t?.onceKey):console.warn(e)}};return{onOpenTag:e=>{let t=e.name,n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),m)return m.push((e=>{let t=e.attributes??{},n=`<${e.name}`;for(let e in t){let r=t[e];n+=` ${e}="${Q(typeof r==`string`?r:r?.value??``)}"`}return n+`>`})(e)),o={local:t,tag:e,destination:null},a.push(o),s=t,void(c=e);let g=(i.length>0?i[i.length-1]:r).get(t);if(o={local:t,visitor:g,tag:e,destination:null},p)return a.push(o),s=t,void(c=e);l=o?.visitor??null,s=t,c=e;let _=!!g&&g.to===null;if(g&&!_&&g.scope){let e=g.scope(v);e===null?_=!0:e&&(i.push(e),o.pushedScope=!0)}g&&(a.length===0?(f=d,o.destination=f,o.pushedDestination=!0,u.push(f)):_?(f=null,o.destination=null):g.transparent?o.destination=f:(f={key:null,source:{},parent:null},o.destination=f,o.pushedDestination=!0,u.push(f))),a.push(o),p=_;let y=l?.openTag?.(v);y!==void 0&&(f.parent=y),g?.raw&&!_&&(m=[],h=o)},onCloseTag:e=>{let t=e.name,r=t.indexOf(`:`);if(r!==-1&&(t=t.slice(r+1)),t!==s)throw Error(`mismatch open/close tag: '${t}'/'${s}'`);let _=!1;if(m){if(a[a.length-1]!==h)return m.push(`</${e.name}>`),a.pop(),o=a[a.length-1]??null,s=o?.local??null,void(c=o?.tag??null);g=m.join(``),m=null,h=null,_=!0}p||l?.closeTag?.(v),_&&(g=null);let y=a.pop()??null;o=a[a.length-1]??null,y?.pushedScope&&i.pop();let b=y?.destination;if(b&&y.pushedDestination){u.pop(),f=u[u.length-1]??d;let e=y.visitor;e&&e.to&&b.source!==void 0&&(Array.isArray(e.to)?f.source.push?f.source.push(b.source):n?.(`Unable to parse array for ${e.from} at ${v.getPath()}`):b.key?f.source[b.key]=b.source:typeof e.to==`string`&&(f.source[e.to]=b.source))}else b||(f=u[u.length-1]??d);s=o?.local??null,c=o?.tag??null,l=o?.visitor??null,p=!o?.destination},onText:e=>{m?m.push(xe(e)):l?.text?.(e,v)},onEnd:t}}},Ce=`IFERROR(${a.it}(`,$=Ce.toUpperCase(),we=a.ot.toUpperCase(),Te={kind:`none`},Ee={kind:`spilled`},De=(e,t)=>{if(e.charCodeAt(t)!==34)return null;let n=``,r=t+1;for(;r<e.length;)if(e.charCodeAt(r)===34){if(e.charCodeAt(r+1)!==34)return{value:n,end:r+1};n+=`"`,r+=2}else n+=e[r],r++;return null},Oe=e=>{let t=[],n=0;for(;n<e.length;){let r=e.charCodeAt(n);if(r===34){let t=De(e,n);if(t===null)break;n=t.end;continue}if(!(r>=65&&r<=90||r>=97&&r<=122||r===95)){n++;continue}let i=n+1;for(;i<e.length;){let t=e.charCodeAt(i);if(!(t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===95||t===46))break;i++}e.charCodeAt(i)===40&&t.push(e.slice(n,i).toUpperCase().replace(/^_XLFN\./,``).replace(/^_XLWS\./,``)),n=i}return t},ke=e=>{let t=t=>{if(e)return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1]},n=e=>{let t=parseInt(e??``,10);return isNaN(t)?0:t};return{c:n(t(`col`)),r:n(t(`row`)),x:o.h(t(`colOff`)??`0`)??0,y:o.h(t(`rowOff`)??`0`)??0}},Ae=`formulaDialect`,je=class{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}},Me=(e,t,n)=>{if(e[0].value[0]===e[1].value[0])return t},Ne={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Pe=(r,i,a,o,s,c,l)=>{let u=!1,d=!1,f=[],p=!1,m=null,h=null,g=null,_=null,v=null,y=null,b=l?.get(`richData`)??e.R.EmptyArray,x=l?.get(`dummyWrapped`)??null,S=n.nt.normalizeA1ToR1C1,ee=e.f.createConflatingRanges(),C=new Map,w=[],T=!1,te=!1,E=null,D=!1,ne=e.f.createConflatingRanges(),O=!1,k=-1,A=-1,j=null,M=null,re=null,N=[],P=null,F=-2,I=0,L=``,R=``,z=``,B=``,V=``,H=``,U=``,W=``,ie=``,G=``,ae=``,oe=``,se=``,ce=``,le=!0,ue=null,de=!1,fe=!1,pe=!1,me=null,he=0,ge=e=>{let r=e.name,o=r.indexOf(`:`);if(o!==-1&&(r=r.slice(o+1)),he++,he%196608==0&&s?.(he),M){let t=e.attributes;switch(r){case`v`:d=!0;break;case`f`:switch(p=!0,t.t??null){case null:case`normal`:break;case`shared`:let e=t.si;h=t.ref,m=e;break;case`array`:h=t.ref,E=h;break;case`datatable`:h=t.ref,p=!0}let e=t.ca;e!==void 0&&(D=e===`1`);break;case`is`:O=!0;return}O&&!p&&c?.onOpenTag?.(e);return}if(u){if(r===`c`){M=e;let r=e.attributes,i=r.r;A=n.nt.fastStringToCol(i);let a=r.t;a===void 0?re=null:(re=a,re===`str`&&(O=!0));let o=r.s;o===void 0&&(me!==null||pe)&&(o=`0`),o!==void 0&&(o=parseInt(o),ue&&ue.value===o&&ue.colEnd+1===A?ue.colEnd=A:(ue={colStart:A,rowStart:k,colEnd:A,rowEnd:k,value:o},f.push(ue))),E=null,te=!1;let s=r.cm;T=s!==void 0&&(e=>{let t=l?.get(`metadata`)?.cells;if(!t)return!1;let n=parseInt(e,10);return!(!Number.isFinite(n)||n<1)&&!0===t[n-1]?.get(`XLDAPR`)?.fDynamic})(s);let c=r.vm;if(c!==void 0){let e=b[parseInt(c)-1];if(t.i.isError(e)){let n=e.getCode();j={t:`e`,v:n},T&&n===t.i.Code.Spill&&(te=!0)}}}}else{if(fe&&r===`row`){u=!0;let t=e.attributes.r;if(k=parseInt(t)-1,I=0,R=e.attributes.customHeight,R!==void 0&&(I|=je.CustomHeight),R!==ie&&(le=!0,ie=R),L=e.attributes.ht,L!==void 0&&(I|=je.Ht),L!==W&&(le=!0,W=L),z=e.attributes.hidden,z!==void 0&&(I|=je.Hidden),z!==G&&(le=!0,G=z),V=e.attributes.s,V!==void 0&&(I|=je.S),V!==oe&&(le=!0,oe=V),B=e.attributes.customFormat,B!==void 0&&(I|=je.CustomFormat),B!==ae&&(le=!0,ae=B),H=e.attributes.outlineLevel,H!==void 0&&(I|=je.OutlineLevel),H!==se&&(le=!0,se=H),U=e.attributes.collapsed,U!==void 0&&(I|=je.Collapsed),U!==ce&&(le=!0,ce=U),I!==0)if(F+1!==k||le){let e=R!==void 0&&(R===`1`||R===`true`),t=B!==void 0&&(B===`1`||B===`true`);me=t&&V!==void 0?V:null,t&&me===null&&(me=`0`),P={min:k,max:k,value:{sz:L===void 0?-1:parseFloat(L),csz:e,h:z!==void 0&&(z===`1`||z===`true`),s:me===null?void 0:me===`0`?0:parseInt(me),l:H===void 0||H===`0`?0:parseInt(H),cl:U!==void 0&&(U===`1`||U===`true`)}},N.push(P)}else P.max=k;F=k,le=!1;return}if(r===`sheetData`&&(fe=!0),!de&&r===`sheetData`){de=!0;let e=i.cols,t=e?e.length:0;for(let n=0;!pe&&n<t;n++)e[n].v.s&&(pe=!0)}a?.onOpenTag?.(e)}},_e=e=>{let t=e.name;if(t===`sheetData`&&(fe=!1),!p||t!==`c`&&t!==`f`||(m&&(_=C.get(m)??null),_&&(ee.append(k,A,_),D&&ne.append(k,A)),E!==null&&w.push([E,T?te?`error`:`dynamic`:`fixed`]),p=!1,_=null,m=null,h=null,d=!1,D=!1,E=null,T=!1,te=!1),M){let n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),O)if(t===`is`||t===`v`){let e=c?.onEnd?.();e!=null&&r.pushAt(k,A,``+e)}else t!==`f`&&c?.onCloseTag?.(e);d&&=!1,t===`c`&&(M=null,O=!1);return}if(u)return u=!1,void(ue=null);a?.onCloseTag?.(e)},ve=e=>{let s=e.trim();if(d){switch(j=null,re){case null:case`n`:j=parseFloat(s);break;case`b`:j=s===`1`||s===`true`;break;case`s`:j=s;break;case`e`:if(s===`#VALUE!`){let e=M.attributes.vm;if(e!==void 0){let n=b[parseInt(e)-1];if(t.i.isError(n)){j={t:`e`,v:n.getCode()};break}}}let e=t.i.getBuiltInByLabel(s);e?j={t:`e`,v:e.getCode()}:(j=s,o?.(`Unknown formula error '${s}' in cell ${n.nt.cellToString({colIndex:A,rowIndex:k})}`));break;case`str`:case`inlineStr`:O=!0}j!==null&&r.pushAt(k,A,j)}if(m){if(v===m)_=y;else{if(_=C.get(m)??null,!_){let e=[];g=S(s,k,A,e),_=[g,e,s],C.set(m,_)}v=m,y=_}m=null}if(p){if(x!==null){let e=(e=>{if(e.length<Ce.length||e.slice(0,Ce.length).toUpperCase()!==$)return Te;let t=De(e,Ce.length);if(t===null||e.charCodeAt(t.end)!==41||e.charCodeAt(t.end+1)!==44||e.charCodeAt(e.length-1)!==41)return Te;let n=t.value;return n.toUpperCase()===we?Ee:n.length===0?Te:{kind:`formula`,formula:n}})(s);e.kind!==`none`&&x.push({sheet:i,rowIndex:k,colIndex:A,formula:e.kind===`formula`?e.formula:null})}let e=[];g=S(s,k,A,e),_=[g,e,s]}O?c?.onText?.(e):u||a?.onText?.(s)},K={r:void 0,t:void 0,s:void 0,cm:void 0,vm:void 0},ye={name:`c`,attributes:K,isSelfClosing:!1},q={t:void 0,si:void 0,ref:void 0,ca:void 0},J={name:`f`,attributes:q,isSelfClosing:!1},Y={name:`v`,attributes:{},isSelfClosing:!1},X={r:void 0,s:void 0,ht:void 0,hidden:void 0,collapsed:void 0,customHeight:void 0,customFormat:void 0,outlineLevel:void 0},Z={name:`row`,attributes:X,isSelfClosing:!1},xe=be.NEED_MORE,Q=be.NOT_HANDLED,Se=be.decodeText,Oe=!1,ke=(e,t,n,r)=>{for(;;){let i=0;for(;t<n&&((i=e.charCodeAt(t))===32||i===9||i===10||i===13);)t++;if(t>=n)return xe;if(i===62)return Oe=!1,t+1;if(i===47)return t+1>=n?xe:e.charCodeAt(t+1)===62?(Oe=!0,t+2):Q;let a=t;for(;t<n&&(i=e.charCodeAt(t))!==61;){if(i===62||i===47||i===32||i===9||i===10||i===13)return Q;t++}if(t+1>=n)return xe;let o=t-a,s=e.charCodeAt(t+1);if(s!==34&&s!==39)return Q;let c=t+2,l=c;for(;l<n&&(i=e.charCodeAt(l))!==s;){if(i===38||i<32)return Q;l++}if(l>=n)return xe;t=l+1;let u=e.charCodeAt(a);if(r===2)switch(o){case 1:u===114?X.r=e.slice(c,l):u===115&&(X.s=e.slice(c,l));break;case 2:e.startsWith(`ht`,a)&&(X.ht=e.slice(c,l));break;case 6:e.startsWith(`hidden`,a)&&(X.hidden=e.slice(c,l));break;case 9:e.startsWith(`collapsed`,a)&&(X.collapsed=e.slice(c,l));break;case 12:e.startsWith(`customHeight`,a)?X.customHeight=e.slice(c,l):e.startsWith(`customFormat`,a)?X.customFormat=e.slice(c,l):e.startsWith(`outlineLevel`,a)&&(X.outlineLevel=e.slice(c,l))}else if(r===0)o===1?u===114?K.r=e.slice(c,l):u===116?K.t=e.slice(c,l):u===115&&(K.s=e.slice(c,l)):o===2&&e.charCodeAt(a+1)===109&&(u===99?K.cm=e.slice(c,l):u===118&&(K.vm=e.slice(c,l)));else if(o===1)u===116&&(q.t=e.slice(c,l));else if(o===2){let t=e.charCodeAt(a+1);u===115&&t===105?q.si=e.slice(c,l):u===99&&t===97&&(q.ca=e.slice(c,l))}else o===3&&e.startsWith(`ref`,a)&&(q.ref=e.slice(c,l))}},Ae=(e,t,n)=>e.charCodeAt(t+1)===47&&e.charCodeAt(t+2)===n&&e.charCodeAt(t+3)===62;return{...a,onEnd:()=>{N.length>0&&(i.rows=n.nt.runsToRefs(N,!1));let o=ee.done(Me),s=o.length;if(s>0){let e=Array(s);for(let t=0;t<s;t++){let r=o[t],i=n.nt.rangeToString(r),a=r.value[1];e[t]=[i,n.nt.resolveRelativeToA1(a,r.rowStart,r.colStart)]}i.formulas=e}let c=ne.done(!0),l=c.length;if(l>0){let e=Array(l);for(let t=0;t<l;t++){let r=c[t];e[t]=n.nt.rangeToString(r)}i.volatile=e}w.length>0&&(i.formulaArray=[...w]);let u=f.length;if(u>0){f.sort(e.f.createRangeComparator(t.l.Axis.Column));let r=f[0],a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value,l=[];l.push(r);let d=null;for(let e=1;e<u;e++)d=f[e],c!==d.value||a!==d.colStart||o!==d.colEnd||s+1!==d.rowEnd?(l.push(d),r=d,a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value):(s=d.rowEnd,r.rowEnd=s);let p=l.length,m=Array(p);for(let e=0;e<p;e++){let t=l[e];m[e]=[n.nt.rangeToString(t),t.value]}i.directStyles=m}let d=r.build();d&&(i.data=d.tuples),a?.onEnd?.()},onOpenTag:ge,onCloseTag:_e,onText:ve,elementScanners:[{name:`c`,scan:(e,t,n)=>{if(!u||M!==null)return Q;K.r=K.t=K.s=K.cm=K.vm=void 0;let r=ke(e,t+2,n,0);if(r<0)return r;let i=K.t;if(K.r===void 0||i===`str`||i===`inlineStr`)return Q;let a=!1,o=-1,s=-1,c=-1,l=-1,d=r;if(!Oe)for(q.t=q.si=q.ref=q.ca=void 0;;){let t=e.indexOf(`<`,r);if(t===-1||t+3>=n)return xe;for(let n=r;n<t;n++){let t=e.charCodeAt(n);if(t!==32&&t!==9&&t!==10&&t!==13)return Q}let i=e.charCodeAt(t+1),u=e.charCodeAt(t+2);if(i===47){if(!Ae(e,t,99))return Q;d=t+4;break}if(i===102&&!a&&c===-1&&(u===32||u===62||u===47)){if(a=!0,r=ke(e,t+2,n,1),r<0)return r;if(Oe)continue;let i=e.indexOf(`<`,r);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,102))return Q;o=r,s=i,r=i+4;continue}if(i===118&&u===62&&c===-1){let i=e.indexOf(`<`,t+3);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,118))return Q;c=t+3,l=i,r=i+4;continue}return Q}return ge(ye),a&&(ge(J),s>o&&ve(Se(e.slice(o,s))),_e(J)),c!==-1&&(ge(Y),l>c&&ve(Se(e.slice(c,l))),_e(Y)),_e(ye),d}},{name:`row`,openTag:Z,scan:(e,t,n)=>{if(!fe||u||M!==null)return Q;X.r=X.s=X.ht=X.hidden=X.collapsed=X.customHeight=X.customFormat=X.outlineLevel=void 0;let r=ke(e,t+4,n,2);return r<0?r:Oe||X.r===void 0?Q:(ge(Z),r)}}]}},Fe=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},Ie={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.macroEnabled.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.binary.macroEnabled.main":`workbooks`,"application/vnd.ms-excel.addin.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":`sheets`,"application/vnd.ms-excel.worksheet":`sheets`,"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":`charts`,"application/vnd.ms-excel.chartsheet":`charts`,"application/vnd.ms-excel.macrosheet+xml":`macros`,"application/vnd.ms-excel.macrosheet":`macros`,"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":`dialogs`,"application/vnd.ms-excel.dialogsheet":`dialogs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":`strs`,"application/vnd.ms-excel.sharedStrings":`strs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":`styles`,"application/vnd.ms-excel.styles":`styles`,"application/vnd.openxmlformats-package.core-properties+xml":`coreprops`,"application/vnd.openxmlformats-officedocument.custom-properties+xml":`custprops`,"application/vnd.openxmlformats-officedocument.extended-properties+xml":`extprops`,"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":`comments`,"application/vnd.ms-excel.comments":`comments`,"application/vnd.ms-excel.threadedcomments+xml":`threadedcomments`,"application/vnd.ms-excel.person+xml":`people`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":`metadata`,"application/vnd.ms-excel.sheetMetadata":`metadata`,"application/vnd.ms-excel.externalLink":`links`,"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":`links`,"application/vnd.openxmlformats-officedocument.theme+xml":`themes`},Le=e=>e.startsWith(`/`)?e.slice(1):e,Re=/^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i,ze=e=>typeof e==`string`?e:(e?.runs??[]).map(e=>e.text??``).join(``);exports.readXLSX=async(t,s)=>{let{password:u,onVBA:d,profile:f,calcOnLoad:p=`auto`,createWorkbookOptions:m={},...h}=s??{},g=!!m.origin&&typeof m.origin!=`string`,_=f?new l(typeof f==`function`?f:void 0):null,v=[],y=(e,t,n)=>{v.push([e,t??``,n])},b={onWarning:y},x=s?.progress,S=x?.onProgress?x.onProgress.bind(x):void 0,ee=t.byteLength,C=0,T=0,te=S?e=>{if(C<=0)return;T+=e;let t=Math.min(ee,Math.round(T/C*ee));S(t,ee)}:void 0,E=Promise.resolve().then(()=>require("./Co31kjvOPAAYbeF-.cjs")),D=null;try{D=new DOMParser}catch{}let ne=null;try{ne=new XMLSerializer}catch{}let O,k,A,j=null;D||(j=Promise.resolve().then(()=>require("./DLYEQZzAGuSAmJsp.cjs")).then(e=>i.t(e.default,1)));try{let[e,t]=await Promise.all([j,E]);O=new t.DOMTransformer,k=D??new e.DOMParser,A=ne??new e.XMLSerializer}catch(e){throw Error(`Unable to load XLSX parser.`,{cause:e})}let M,re=e=>A.serializeToString(e);try{M=await c.create(t)}catch(t){throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`,{cause:t})}_?.mark(`zip-open`);try{if(!M.has(`[Content_Types].xml`))throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let t=e=>{let t=M.getEntry(e);return t?{content:t}:void 0},i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],metadata:[],people:[],overrides:{},sst:``,style:``,defaults:{}};{let e=(e=>({onOpenTag:t=>{let n=(e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)})(t.name),r=t.attributes;if(n===`Override`){let t=r.ContentType,n=r.PartName;if(!t||!n)return;e.overrides[n.startsWith(`/`)?n.slice(1):n]=t;let i=Ie[t],a=i?e[i]:void 0;Array.isArray(a)&&a.push(n)}else if(n===`Default`){let t=r.Extension,n=r.ContentType;t&&(e.defaults[t.toLowerCase()]=n)}},onEnd:()=>{e.sst=e.strs.length>0?e.strs[0]:``,e.style=e.styles.length>0?e.styles[0]:``},onError:e=>{(e=>{v.push([e,`[Content_Types].xml`])})(`Error parsing content types: ${e?.message??e}`)}}))(i),t=await M.getTextStream(`[Content_Types].xml`);if(!t)throw Error(`Error parsing content types: '[Content_Types].xml'`);try{await w.parseStream(t,e,{xmlns:!1})}catch(e){throw Error(`Error parsing content types: '[Content_Types].xml'`,{cause:e})}g&&await M.getBuffer(`[Content_Types].xml`)}_?.mark(`content-types`);let s=i.sst,c=new Set;for(let e of i.sheets)c.add(Le(e));s&&c.add(Le(s));for(let e of c)C+=M.uncompressedSize(e);if(await M.prefetch(e=>!c.has(e)&&!Re.test(e)),_?.mark(`prefetch-side-parts`),i.workbooks.length===0){let e=o.s(`_rels/.rels`,t,k,O,b);if(e){for(let t of e.values())if(t.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`&&t.target){i.workbooks.push(t.target);break}}}if(i.workbooks.length===0)throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);i.richstructure=[`/xl/richData/rdrichvaluestructure.xml`],i.richdata=[`/xl/richData/rdrichvalue.xml`];let l=m?.resources??new n.j,u=l.beginPersist(),h={},T=new Set,E=new Map;E.set(`richTypes`,[]),E.set(`parseInlineDxf`,e=>{if(!e)return;let t=k.parseFromString(`<dxf xmlns:x14="${a.Z}" xmlns:xm="${a.T}">${e}</dxf>`,`text/xml`)?.documentElement;if(!t)return;let n=O.parseDxf(t,``,b);return Object.keys(n).length>0?n:void 0});let D=[];E.set(`dummyWrapped`,D);let ne=o.d(`metadata`,i,t,k,O,b).entries().next()?.value?.[1]?.metadata;ne&&E.set(`metadata`,ne),E.set(Ae,a.R());let A=new Map,j=[],N=new Set,P=e=>{N.add(Le(e))},F=(e,n=A)=>{let r=e.lastIndexOf(`/`),i=e.substring(0,r+1)+`_rels/`+e.substring(r+1,e.length)+`.rels`,a=n.get(i);return a||(a=o.s(i,t,k,O,G),n.set(i,a)),a},I=(e,r,i,s=A)=>{let c=F(r,s).get(e),d=c?.target;if(!d)return null;if(c.targetMode===`External`){if(!i)return c.target;let e=l.add({source:{external:c.target}});return e.addReference(h),T.add(e),u.toResourceId(e)}let f=r.lastIndexOf(`/`),p=r.substring(0,f+1);d.startsWith(`/`)||(d=p+d),d=o.a(d);let m=O?.getVisitorParamsState().get(`dxfs`),g=s.get(d);if(!g)if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`){let e={};g=e,j.push((async()=>{let t=((e,t,r,i,s,c,l,u)=>{let d=new Se,f=u?.get(`parseInlineDxf`),p=u?.get(Ae),m=e=>p&&e?p.readDetached(e):e,h=new n.it.TransposedBuilder,g=null;d.registerVisitor({from:`autoFilter`,to:`autoTable`,openTag:e=>{let t=e.getAttribute(`ref`),r=n.nt.fastStringToRange(t);e.getSource().r=r,e.getSource().v={}},closeTag:e=>{let t=e.getSource(),n=t.v,r=n.hiddenButtons;if(Array.isArray(r)){let e=r.length,i=t.r,a=i.colEnd-i.colStart+1;e===0?n.hiddenButtons=!1:e===a&&(n.hiddenButtons=!0)}}}),d.registerVisitor({from:`conditionalFormatting`,to:{},openTag:e=>{let t=e.getParent();t.conditionals||=[];let n=e.getAttribute(`sqref`);n&&=n.trim().split(/\s+/).join(`,`);let r={r:n,conditionals:t.conditionals},i=e.getAttribute(`pivot`,J);i!==null&&(r.pivot=i),e.setSource(r)}}),d.registerVisitor({from:`cfRule`,to:{},openTag:e=>{let t=e.getParent();if(!t?.r)return;let n=e.getSource()??{};t.pivot!==void 0&&(n.pivot=t.pivot),t.conditionals.push({r:t.r,v:null,rule:n}),e.copyToObject(n,`type`,Z),e.copyToObject(n,`priority`,Y),e.copyToObject(n,`stopIfTrue`,J);let r=e.getAttribute(`dxfId`,Y);if(r!==null){let t=i?.get(r);t||=(c?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${e.getPath()}'.`),{}),n.style=t}e.copyToObject(n,`aboveAverage`,J),e.copyToObject(n,`equalAverage`,J),e.copyToObject(n,`stdDev`,Y),e.copyToObject(n,`bottom`,J),e.copyToObject(n,`percent`,J),e.copyToObject(n,`rank`,Y),e.copyToObject(n,`operator`,Z),e.copyToObject(n,`text`,Z),e.copyToObject(n,`timePeriod`,Z)},closeTag:e=>{let t=e.getParent();if(!t?.r)return;let n=t.conditionals[t.conditionals.length-1],r=n?.rule;if(!r)return;let i={},o=a.Q(r,c);o&&(i.condition=o),r.style&&(i.style=r.style),r.scale&&(i.scale=r.scale),r.stopIfTrue&&(i.stopIfTrue=!0),r.pivot&&(i.pivot=!0),n.v=i,n.priority=r.priority,r.x14Id&&(n.x14Id=r.x14Id),delete n.rule}});let _=e=>{let t=e.conditions??[],n=[];for(let e=0;e<t.length;e++){let r=t[e],i={};r.type&&(i.type=r.type),r.value!==void 0&&(i.value=r.value),r.exclusive&&(i.exclusive=!0),n.push(i)}return n};d.registerVisitor({from:`colorScale`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t.colors??[],i=_(t);for(let e=0;e<i.length;e++)i[e].color=r[e];e.getParent().scale={type:n.It.ScaleType.ColorScale,stops:i}}}),d.registerVisitor({from:`dataBar`,to:{},openTag:e=>{e.copyTo(`maxLength`,Y),e.copyTo(`minLength`,Y),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.It.ScaleType.DataBar,stops:_(t)},i=t.colors?.[0];i&&(r.color=i),t.minLength!==void 0&&(r.minLength=t.minLength),t.maxLength!==void 0&&(r.maxLength=t.maxLength),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.It.ScaleType.IconSet,stops:_(t)};t.iconSet!==void 0&&(r.iconSet=t.iconSet),t.reverse!==void 0&&(r.reverse=t.reverse),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`formula`,to:{},text:(e,t)=>{let n=t.getParent(),r=n.formulas;r||(r=[],n.formulas=r),r.push(m(e))}}),d.registerVisitor({from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let r=e.getSource();if(t.conditions.push(r),e.copyTo(`type`,Z),r.type===n.It.ColorStopType.Formula){let t=e.getAttribute(`val`);t!=null&&(r.value=m(String(t)))}else e.copyTo(`value`,X,`val`);!1===e.getAttribute(`gte`,J)&&(r.exclusive=!0)}}),d.registerVisitor({from:`color`,to:{},openTag:e=>{let t=e.getParent();t.colors||=[];let n=o.l(t=>e.getAttribute(t));t.colors.push(n)}}),d.registerVisitor({from:`filterColumn`,to:{},openTag:e=>{let t=e.getParent().v,n=parseInt(e.getAttribute(`colId`)),r=e.getSource();r.index=n;let i=t.filter;i||(i={conditions:[]},t.filter=i);let a=i.conditions;if(a||(a=[],i.conditions=a),a.push(r),e.getAttribute(`hiddenButton`,J)&&t){let e=t.hiddenButtons;e||(e=[],t.hiddenButtons=e),e.push(n)}if(e.getAttribute(`showButton`,J)&&t){let e=t.showButtons;e||(e=[],t.showButtons=e),e.push(n)}return r}}),d.registerVisitor({from:`colorFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.Color,t.param=r,e.copyToObject(r,`cellColor`),e.copyToObject(r,`styleId`,Y,`dxfId`)}}),d.registerVisitor({from:`iconFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.Icon,t.param=r,e.copyToObject(r,`iconId`,Y),e.copyToObject(r,`iconSet`,Z)}}),d.registerVisitor({from:`top10`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.TopN,t.param=r,e.copyToObject(r,`filterVal`,X),e.copyToObject(r,`percent`,J),e.copyToObject(r,`top`,J),e.copyToObject(r,`limit`,X,`val`)}}),d.registerVisitor({from:`dynamicFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.TimePeriod,t.param=r;let i=e.getAttribute(`type`);Object.values(n.ot.AverageType).includes(i)?(t.operator=n.ot.BuiltInOperatorNames.Average,e.copyToObject(r,`stdDevs`,Y,`val`)):e.copyToObject(r,`anchorDate`,Y,`val`),e.copyToObject(r,`operator`,Z,`type`),e.copyToObject(r,`maxVal`,X,`maxVal`)}}),d.registerVisitor({from:`filters`,to:{},openTag:e=>{let t=e.getParent(),r={};return t.operator=n.ot.BuiltInOperatorNames.InSet,t.param=r,e.copyToObject(r,`blank`,J),e.copyToObject(r,`calendarType`,Z),r}}),d.registerVisitor({from:`filter`,openTag:e=>{let t=e.getParent(),n=t.items;n||(n=[],t.items=n),n.push(e.getAttribute(`val`,Z))}}),d.registerVisitor({from:`dateGroupItem`,to:{},openTag:e=>{let t=e.getParent(),n=t.dateGroups;n||(n=[],t.dateGroups=n),n.push(e.getSource()),e.copyTo(`group`,Z,`dateTimeGrouping`),e.copyTo(`day`,Y),e.copyTo(`hour`,Y),e.copyTo(`minute`,Y),e.copyTo(`month`,Y),e.copyTo(`second`,Y),e.copyTo(`year`,Y)}}),d.registerVisitor({from:`customFilters`,openTag:e=>{let t=e.getParent(),r=e.getAttribute(`and`),i=r===`and`||r===`1`,a=[];return t.operator=i?n.ot.BuiltInOperatorNames.And:n.ot.BuiltInOperatorNames.Or,t.param=a,e.setSource(t),a},closeTag:e=>{let t=e.getSource(),n=t?.param;if(n?.length!==1)return;let r=n[0];t.operator=r.operator,t.param=r.param}}),d.registerVisitor({from:`customFilter`,openTag:e=>{let t,n=e.getParent();Array.isArray(n)?(t={},n.push(t)):t=n;let r=a.st({operator:e.getAttribute(`operator`),val:e.getAttribute(`val`)});r&&(t.operator=r.operator,t.param=r.param)}}),d.registerVisitor({from:`sortState`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;n&&(n.sort={},e.setSource(t))}}),d.registerVisitor({from:`sortCondition`,to:{},openTag:e=>{let t=e.getParent(),r=t.v;if(!r)return;let i=r.sort;if(!i)return;let a=i.sorts;a||(a=[],i.sorts=a);let o=e.getAttribute(`ref`),s=0;if(o){let e=n.nt.fastStringToRange(o,Ne).colStart,r=t.r,i=r.colStart;s=r?e-i:e}let c={};e.copyToObject(c,`sortOn`,Z,`sortBy`),e.copyToObject(c,`dxfId`,Z,`sortBy`),e.copyToObject(c,`iconSet`,Z),e.copyToObject(c,`customList`,Z),c.reverse=e.getAttribute(`descending`,J)??!1;let l={index:s,criteria:c};a.push(l)}});let v=e=>{g=e.getSource(),e.copyTo(`topLeft`,Z,`topLeftCell`);let t=o.t(e.getAttribute(`defaultGridColor`)),n=e.getAttribute(`colorId`);n===null||t||(e.getSource().gridLineColor=`index`+parseFloat(n)),e.copyTo(`showZeros`,J),e.copyTo(`showFormulas`,J),e.copyTo(`zoomScale`,Y),e.copyTo(`showRowHeaders`,J,`showRowColHeaders`),e.copyTo(`showColumnHeaders`,J,`showRowColHeaders`),e.copyTo(`showRowGridlines`,J,`showGridLines`),e.copyTo(`showColumnGridlines`,J,`showGridLines`),e.copyTo(`rightToLeft`,J)};d.registerVisitor({from:`sheetView`,to:`view`,openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`customSheetViews`,to:`customSheetViews`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`customSheetView`,to:[],openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`selection`,to:`selection`,openTag:e=>{if(!g)return;e.copyTo(`cell`,Z,`activeCell`),e.copyTo(`rangeIndex`,Y,`activeCellId`);let t=e.getAttribute(`activeCell`),n=e.getAttribute(`sqref`);n&&n!==t&&(e.getSource().ranges=n.trim().split(/\s+/))}}),d.registerVisitor({from:`pane`,to:null,openTag:e=>{if(g&&e.getAttribute(`state`)===`frozen`){let t={};g.freezePanes=t,e.copyToObject(t,`topLeft`,Z,`topLeftCell`);let r=(g.topLeft?n.nt.fastStringToCell(g.topLeft):void 0)??{colIndex:0,rowIndex:0},i={colIndex:0,rowIndex:0};e.copyToObject(i,`colIndex`,Y,`xSplit`),e.copyToObject(i,`rowIndex`,Y,`ySplit`);let a={colIndex:r.colIndex+i.colIndex,rowIndex:r.rowIndex+i.rowIndex};t.coords=n.nt.cellToString(a)}}}),d.registerVisitor({from:`sheetPr`,transparent:!0,openTag:t=>{let n=t.getAttribute(`codeName`);n&&(e.codeName=n),!1===t.getAttribute(`enableFormatConditionsCalculation`,J)&&(e.conditionalFormatCalculation=!1)}}),d.registerVisitor({from:`tabColor`,to:null,openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(e.tabColor=n)}}),d.registerVisitor({from:`pageSetUpPr`,to:`pageSetUpPr`,openTag:e=>{}}),d.registerVisitor({from:`outlinePr`,to:null,openTag:t=>{let n={};t.copyToObject(n,`summaryBelow`,J),t.copyToObject(n,`summaryRight`,J),t.copyToObject(n,`showOutlineSymbols`,J),t.copyToObject(n,`applyStyles`,J),Object.keys(n).length>0&&(e.outline=n)}}),d.registerVisitor({from:`pageMargins`,to:`pageMargins`,openTag:e=>{e.copyTo(`bottom`,X),e.copyTo(`footer`,X),e.copyTo(`header`,X),e.copyTo(`left`,X),e.copyTo(`right`,X),e.copyTo(`top`,X),e.copyTo(`bottom`,X)}}),d.registerVisitor({from:`pageSetup`,to:`pageSetup`,openTag:e=>{e.copyTo(`blackAndWhite`,J),e.copyTo(`cellComments`),e.copyTo(`copies`,Y),e.copyTo(`draft`,J),e.copyTo(`errors`),e.copyTo(`firstPageNumber`,Y),e.copyTo(`fitToHeight`,Y),e.copyTo(`fitToWidth`,Y),e.copyTo(`horizontalDpi`,Y),e.copyTo(`orientation`),e.copyTo(`pageOrder`),e.copyTo(`paperSize`,Y),e.copyTo(`scale`,Y),e.copyTo(`useFirstPageNumber`,J),e.copyTo(`usePrinterDefaults`,J),e.copyTo(`verticalDpi`,Y)}}),d.registerVisitor({from:`printOptions`,to:`printOptions`,openTag:e=>{e.copyTo(`gridLines`,J),e.copyTo(`gridLinesSet`,J),e.copyTo(`headings`,J),e.copyTo(`horizontalCentered`,J),e.copyTo(`verticalCentered`,J)}}),d.registerVisitor({from:`headerFoot`,to:`headerFoot`,openTag:e=>{}}),d.registerVisitor({from:`mergeCells`,to:`merges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`dataValidations`,to:`validations`,openTag:e=>{e.setSource([])}});let y={from:`dataValidation`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n,rule:{type:e.getAttribute(`type`)??void 0,operator:e.getAttribute(`operator`)??void 0}};!0===e.getAttribute(`showDropDown`,J)&&(n.hideDropdown=!0),e.copyToObject(n,`alert`,Z,`error`),e.copyToObject(n,`alertTitle`,Z,`errorTitle`),e.copyToObject(n,`showAlertMessage`,J,`showErrorMessage`),n.alertStyle=e.getAttribute(`errorStyle`)??`stop`,e.copyToObject(n,`imeMode`),e.copyToObject(n,`prompt`),e.copyToObject(n,`promptTitle`),e.copyToObject(n,`showPromptMessage`,J,`showInputMessage`),e.setSource(r)},closeTag:e=>{let t=e.getSource();if(!t?.rule)return;let n=a.l(t.rule,c);n&&(e.getAttribute(`allowBlank`,J)&&(n.includeBlanks=!0),t.v.condition=n),delete t.rule}};d.registerVisitor(y),d.registerVisitor({from:`formula1`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula1=a.p(m(e),n.type))}}),d.registerVisitor({from:`formula2`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula2=a.p(m(e),n.type))}}),d.registerVisitor({from:`picture`,to:`picture`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.sheet.picture.noRel`});let r=t(n,`resource`);e.getSource().resId=r}});let b={from:`slicer`,to:{},openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A slicer names no cache; it was not imported.`,{onceKey:`xlsx.sheet.slicer.noRel`});let r=t(n)?.slicers,i=e.getParent();i.slicers||={};let a=Object.keys(r);for(let e of a)i.slicers[e]=r[e]}};d.registerVisitor(b);let x=(e,t)=>({from:e,to:{},openTag:e=>{e.setSource(``)},text:(e,t)=>{t.setSource((t.getSource()??``)+e)},closeTag:e=>{t(String(e.getSource()??``),e)}}),S=new Map;S.set(`dataValidations`,{from:`dataValidations`,to:`validations`,openTag:e=>{let t=e.getParent();e.setSource(t.validations??[])},closeTag:e=>{(e.getSource()?.length??0)===0&&e.setSource(void 0)}}),S.set(`dataValidation`,{...y,closeTag:e=>{y.closeTag(e);let t=e.getSource();t&&!t.r&&(e.warn(`x14 dataValidation with no xm:sqref was dropped.`),e.setSource(void 0))}});let ee=e=>({from:e,to:{},openTag:t=>{t.setSource({rule:t.getParent()?.rule,key:e})}});S.set(`formula1`,ee(`formula1`)),S.set(`formula2`,ee(`formula2`)),S.set(`f`,x(`f`,(e,t)=>{let n=t.getParent(),r=n?.rule;r&&(r[n.key]=a.p(m(e),r.type))})),S.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.r=r.split(/\s+/).join(`,`))}));let C=new Map,w=[],T=new Map;T.set(`conditionalFormattings`,{from:`conditionalFormattings`,transparent:!0}),T.set(`conditionalFormatting`,{from:`conditionalFormatting`,to:{},openTag:e=>{e.setSource({rules:[]})},closeTag:e=>{let t=e.getSource(),n=t?.rules??[];for(let e=0;e<n.length;e++){let r=n[e];r.sqref=t.sqref,r.id?C.set(r.id,r):w.push(r)}}}),T.set(`cfRule`,{from:`cfRule`,to:{},openTag:e=>{e.copyTo(`id`,Z),e.copyTo(`type`,Z),e.copyTo(`priority`,Y),e.copyTo(`stopIfTrue`,J),e.copyTo(`operator`,Z),e.copyTo(`text`,Z),e.copyTo(`timePeriod`,Z),e.copyTo(`aboveAverage`,J),e.copyTo(`equalAverage`,J),e.copyTo(`stdDev`,Y),e.copyTo(`bottom`,J),e.copyTo(`percent`,J),e.copyTo(`rank`,Y)},closeTag:e=>{let t=e.getSource();t&&e.getParent()?.rules?.push(t)}}),T.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.sqref=r)})),T.set(`dataBar`,{from:`dataBar`,to:{},openTag:e=>{e.copyTo(`minLength`,Y),e.copyTo(`maxLength`,Y),e.copyTo(`gradient`,J),e.copyTo(`border`,J),e.copyTo(`direction`,Z),e.copyTo(`axisPosition`,Z),e.copyTo(`negativeBarColorSameAsPositive`,J),e.copyTo(`negativeBarBorderColorSameAsPositive`,J)},closeTag:e=>{e.getParent().dataBar=e.getSource()}}),T.set(`iconSet`,{from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`custom`,J),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{e.getParent().iconSet=e.getSource()}});let te=new Map;te.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();if(!n)return;let r=e.trim(),i=Number(r);n.value=r.length>0&&Number.isFinite(i)?i:m(e)})),T.set(`cfvo`,{from:`cfvo`,to:{},scope:()=>te,openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();t.conditions.push(n),e.copyTo(`type`,Z),!1===e.getAttribute(`gte`,J)&&(n.exclusive=!0)}}),T.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();n&&(n.formulas??=[]).push(m(e))})),T.set(`dxf`,{from:`dxf`,to:{},raw:!0,closeTag:e=>{if(!f)return;let t=e.getParent();if(!t)return;let n=f(e.getRawXml()??``);n&&(t.style=n)}});let E=e=>({from:e,to:{},openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(t.getParent()[e]=n)}});T.set(`borderColor`,E(`borderColor`)),T.set(`negativeFillColor`,E(`negativeFillColor`)),T.set(`negativeBorderColor`,E(`negativeBorderColor`)),T.set(`axisColor`,E(`axisColor`)),T.set(`cfIcon`,{from:`cfIcon`,to:{},openTag:e=>{let t=e.getAttribute(`iconSet`),n=e.getAttribute(`iconId`,Y);if(t===null||n===null)return;let r=e.getParent();r.icons||=[],r.icons.push({set:t,id:n})}});let D=new Map;D.set(`id`,x(`id`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.x14Id=r)}));let ne=new Map;ne.set(`slicerList`,{from:`slicerList`,transparent:!0}),ne.set(`slicer`,b);let O=new Map([[a.x(a.V),S],[a.x(a.et),T],[a.x(a.O),T],[a.x(a.A),D],[a.x(a.q),ne],[a.x(a.W),ne]]),k=new Set;d.registerVisitor({from:`extLst`,transparent:!0}),d.registerVisitor({from:`ext`,transparent:!0,scope:e=>{let t=e.getAttribute(`uri`),n=a.x(t),r=O.get(n);if(r)return r;if(!a.P.has(n)&&!k.has(n)){k.add(n);let r=a.I[n];e.warn(r?`Extension content '${r}' (${t}) is not read; it will be lost on resave.`:`Unknown extension content (uri ${t}) is not read; it will be lost on resave.`)}return null}}),d.registerVisitor({from:`mergeCell`,to:[],openTag:e=>{let t=e.getAttribute(`ref`);e.setSource(t)}}),d.registerVisitor({from:`hyperlinks`,to:`hyperlinks`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`hyperlink`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`),r=e.getAttribute(`ref`);if(!r)return void e.warn(`A hyperlink has no ref; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.noRef`});e.setKey(r);let i=n?t(n):``;if(typeof i!=`string`)return void e.warn(`A hyperlink has an invalid address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});i.endsWith(`\\`)&&(i=i.substring(0,i.length-1));let a=e.getAttribute(`location`);if(a&&(i+=`#`+a),!i)return void e.warn(`A hyperlink has no address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});let o,s=e.getAttribute(`tooltip`);o=s?{address:i,screenTip:s}:i,e.setSource({r,v:o})}}),d.registerVisitor({from:`drawing`,to:`movables`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r.movables):e.warn(`A drawing part is missing; its shapes were not imported.`,{onceKey:`xlsx.sheet.drawing.missing`})}}),d.registerVisitor({from:`legacyDrawing`,to:`legacyDrawing`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}}),d.registerVisitor({from:`legacyDrawingHF`,to:`legacyDrawingHF`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}});let A=null,j=!1,M=new Map,re={from:`Fallback`,to:null},N={from:`Choice`,transparent:!0};M.set(`Fallback`,re),M.set(`Choice`,N),M.set(`control`,{from:`control`,transparent:!0,openTag:e=>{let n={},r=parseInt(e.getAttribute(`shapeId`)??``,10);isNaN(r)||(n.shapeId=r);let i=e.getAttribute(`r:id`),a=i?t(i,`part`):null;a&&(n.part=a);let o=e.getAttribute(`name`),s={anchor:{tl:{c:0,r:0,x:0,y:0},br:{c:0,r:0,x:0,y:0}},content:{type:`control`,json:n}};o&&(s.name=o),A={movable:s,control:n}},closeTag:()=>{A&&=(e.movables||=[],e.movables.push(A.movable),null)}}),M.set(`controlPr`,{from:`controlPr`,transparent:!0,raw:!0,openTag:e=>{if(!A)return;let t=e.getFrom().attributes??{},n={};for(let e in t){let r=t[e];n[e]=typeof r==`string`?r:r?.value??``}Object.keys(n).length>0&&(A.control.props=n)},closeTag:e=>{if(!A)return;let t=(e=>{let t=/<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);if(!t)return null;let n=t[2],r=e=>RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1],i=t[1],a=/\bmoveWithCells="(?:1|true)"/.test(i),o=/\bsizeWithCells="(?:1|true)"/.test(i);return{anchor:{tl:ke(r(`from`)),br:ke(r(`to`))},anchorType:a?o?`twoCell`:`oneCell`:`absolute`,rest:(e.slice(0,t.index)+e.slice(t.index+t[0].length)).trim()}})(e.getRawXml()??``);t?(A.movable.anchor=t.anchor,t.anchorType!==`twoCell`&&(A.movable.anchorType=t.anchorType),t.rest&&(A.control.xml=t.rest)):j||(j=!0,e.warn(`A form control has no anchor; it is placed at the top left of the sheet.`))}});let P={from:`controls`,transparent:!0,scope:()=>M};d.registerVisitor(P);let F=new Map([[`Choice`,N],[`Fallback`,re],[`controls`,P]]);d.registerVisitor({from:`AlternateContent`,transparent:!0,scope:()=>F}),d.registerVisitor({from:`tableParts`,to:`tables`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`tablePart`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r):e.warn(`A table part is missing; the table was not imported.`,{onceKey:`xlsx.sheet.table.missing`})}});let I=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.minLength!==void 0&&(e.minLength=t.minLength),t.maxLength!==void 0&&(e.maxLength=t.maxLength),(t.gradient??1)&&(e.gradient=!0),t.border&&t.borderColor&&(e.borderColor=t.borderColor),!t.negativeBarColorSameAsPositive&&t.negativeFillColor&&(e.negativeFillColor=t.negativeFillColor),!(t.negativeBarBorderColorSameAsPositive??1)&&t.negativeBorderColor&&(e.negativeBorderColor=t.negativeBorderColor),t.axisColor&&(e.axisColor=t.axisColor),t.axisPosition!==`middle`&&t.axisPosition!==`none`||(e.axisPosition=t.axisPosition),t.direction!==`leftToRight`&&t.direction!==`rightToLeft`||(e.direction=t.direction)},L=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.iconSet&&t.iconSet!==e.iconSet&&(e.iconSet=t.iconSet),t.icons?.length&&(e.icon=t.icons),t.reverse!==void 0&&(e.reverse=t.reverse),t.showValue!==void 0&&(e.showValue=t.showValue)},R=e=>{if(!e.sqref)return null;let t=e.sqref.split(/\s+/).join(`,`);if(e.type===`iconSet`){if(!e.iconSet)return null;let r={type:n.It.ScaleType.IconSet,stops:[]};return L(r,e.iconSet),{r:t,v:{scale:r},priority:e.priority}}let r=a.Q(e,c);if(!r)return null;let i={condition:r};return e.style&&(i.style=e.style),e.stopIfTrue&&(i.stopIfTrue=!0),{r:t,v:i,priority:e.priority}};d.registerVisitor({from:`worksheet`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t?.conditionals;if(r)for(let e=0;e<r.length;e++){let t=r[e],i=t.x14Id;if(!i)continue;delete t.x14Id;let a=C.get(i);if(!a)continue;C.delete(i);let o=t.v?.scale;a.dataBar&&o?.type===n.It.ScaleType.DataBar?I(o,a.dataBar):a.iconSet&&o?.type===n.It.ScaleType.IconSet&&L(o,a.iconSet)}let i=[...C.values(),...w],a=new Set,o=0;for(let e=0;e<i.length;e++){let n=R(i[e]);n?(r||(r=[],t.conditionals=r),r.push(n)):(a.add(i[e].type??`unknown`),o++)}if(o>0){let e=[...a].map(e=>`'${e}'`).join(`, `);c?.(o===1?`An x14-only conditional formatting rule (type ${e}) is not read and will be lost on resave.`:`${o} x14-only conditional formatting rules (types ${e}) are not read and will be lost on resave.`)}if(r){r.length>1&&r.sort((e,t)=>(e.priority??1/0)-(t.priority??1/0));for(let e=0;e<r.length;e++)delete r[e].priority}}}),d.registerVisitor({from:`customProperties`,to:`customProperties`,openTag:e=>{e.setSource([])},closeTag:e=>{let t=e.getSource();t.length>0&&(e.getParent().customProperties=t)}}),d.registerVisitor({from:`customPr`,to:{},openTag:e=>{let n=e.getParent();e.copyTo(`name`);let r=e.getAttribute(`r:id`);if(!r)return void e.warn(`A custom property names no part; it was not imported.`,{onceKey:`xlsx.sheet.customProperty.noRel`});let i=t(r,`resource`),a=e.getSource();a.resId=i,n.push(a)}}),d.registerVisitor({from:`sheetProtection`,to:`protection`,openTag:e=>{let t=e.getSource();for(let n of a.n){let r=e.hasAttribute(n.attribute)?e.getAttribute(n.attribute):null;t[n.key]=a.u(n,r)}if(t.sheet)return;let n={};e.copyToObject(n,`hash`,Z,`hashValue`),e.copyToObject(n,`algorithm`,Z,`algorithmName`),e.copyToObject(n,`salt`,Z,`saltValue`),e.copyToObject(n,`spinCount`,Y),Object.keys(n).length>0&&(e.getSource().password=n)}}),d.registerVisitor({from:`protectedRanges`,to:`protectedRanges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`protectedRange`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n};e.copyToObject(n,`name`),e.copyToObject(n,`securityDescriptor`);let i={};e.copyToObject(i,`hash`,Z,`hashValue`),e.copyToObject(i,`algorithm`,Z,`algorithmName`),e.copyToObject(i,`salt`,Z,`saltValue`),e.copyToObject(i,`spinCount`,Y),Object.keys(i).length>0&&(n.password=i),e.setSource(r)},closeTag:e=>{let t=e.getSource();t?.r&&t.v.name||e.setSource(void 0)}}),d.registerVisitor({from:`sheetFormatPr`,to:`sheetFormatPr`,openTag:t=>{t.copyToObject(e,`defaultColSize`,X,`defaultColWidth`),t.copyToObject(e,`outlineLevelCol`,Y,`outlineLevelCol`);let n=t.getAttribute(`customHeight`);n!==`1`&&n!==`true`||t.copyToObject(e,`defaultRowSize`,X,`defaultRowHeight`),t.copyToObject(e,`outlineLevelRow`,Y,`outlineLevelRow`)}}),d.registerVisitor({from:`cols`,to:`cols`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`col`,to:[],openTag:e=>{let t=e.getSource(),r=e.getAttribute(`min`),i=e.getAttribute(`max`),a=r===void 0?0:parseInt(r)-1,o=i===void 0?a:parseInt(i)-1;t.r=n.nt.runToString(a,o,!0);let s={};t.v=s,e.copyToObject(s,`sz`,X,`width`),e.copyToObject(s,`csz`,J,`customWidth`),e.copyToObject(s,`h`,J,`hidden`),e.copyToObject(s,`l`,Y,`outlineLevel`),e.copyToObject(s,`s`,Y,`style`)}}),d.registerVisitor({from:`oleObjects`,to:null,openTag:e=>{e.warn(`'OLE Objects' are not supported.`)}});let z=!1,B=!1,V=0,H=``,U=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)};return Pe(h,e,d.createEventHandler(e,s,c),c,l,{onOpenTag:e=>{z=!0;let t=U(e.name);t===`t`||t===`v`?V===0&&(B=!0):t!==`rPh`&&t!==`phoneticPr`||V++},onText:e=>{B&&(H+=e)},onCloseTag:e=>{let t=U(e.name);t===`t`||t===`v`?B=!1:t!==`rPh`&&t!==`phoneticPr`||V>0&&V--},onEnd:()=>{if(!z)return;let e=r(a._(H));return z=!1,B=!1,V=0,H=``,e},onError:e=>{}},u)})(e,(e,t)=>t===`legacyDrawing`?z(e,d):t===`part`?B(e,d):I(e,d,t===`resource`)??null,le,m,()=>{},(e,t,n)=>{y(e,t?`${t} (${d})`:d,n)},void 0,E),r=await M.getTextStream(d,te);if(r)try{await w.parseStream(r,t,{xmlns:!1,lean:!0})}catch(e){throw Error(`Error parsing sheet: '${d}'`,{cause:e})}let i=F(d,s);if(i){R(e,d,i,s);let t=[];i.forEach((e,n)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`)return;let r=B(n,d,e.type,e=>e!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`);if(!r?.xml)return;let i=/<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0]??``,o=parseInt(/\scacheId="(\d+)"/.exec(i)?.[1]??``,10);if(isNaN(o))return void v.push([`Pivot table '${r.name}' names no cache and was dropped.`,d]);let s=/\sname="([^"]*)"/.exec(i)?.[1];t.push({...s?{name:a.H(s)}:{},cacheId:o,part:r})}),t.length>0&&(e.pivotTables=t)}})())}else if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`){let e=o.i(d,t,k,O,G);if(e&&Object.keys(e).length!==0){let t=e,n=t.__bookRelId,r=t.__absoluteUrlRelId;delete t.__bookRelId,delete t.__absoluteUrlRelId;let i=[];F(d,s)?.forEach((e,t)=>{if(e.targetMode===`External`&&e.type&&e.target){let a={type:e.type,target:e.target};t===n?a.role=`book`:t===r&&(a.role=`absoluteUrl`),i.push(a)}}),i.sort((e,t)=>(e.role===`book`?0:1)-(t.role===`book`?0:1)),t.sources=i,P(d),g=t}else g=null}else g=i?o.u(d,t,(e,t)=>{let n=l.add({source:{buffer:e}});return n.addReference(h),T.add(n),u.toResourceId(n)},G):o.i(d,t,k,O,G);return g},L=(e,t)=>{if(!e)return null;let n=F(t,A)?.get(e);if(!n?.target||n.targetMode===`External`)return null;let r=n.target;return r.startsWith(`/`)||(r=t.substring(0,t.lastIndexOf(`/`)+1)+r),o.a(r)},R=(t,r,i,s)=>{let c=[],l=new Map,u=[];i.forEach((e,t)=>{if(e.type!==`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`)return;let n=I(t,r,!1,s)?.comments;if(!n)return;for(let e=0;e<n.length;e++){let t=n[e];if(!t?.v?.id)continue;let{parentId:r,done:i,content:a,...o}=t.v,s={...o,content:ze(a)};r?u.push({parentId:r,json:s}):(i&&(s.done=!0),l.set(s.id,s),c.push({r:t.r,v:s}))}let i=L(t,r);i&&P(i)});for(let e=0;e<u.length;e++){let{parentId:t,json:n}=u[e],r=l.get(t);r&&(r.replies??=[]).push(n)}let d=[];if(i.forEach((t,n)=>{if(t.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`)return;let i=I(n,r,!1,s),a=i?.comments;if(!a)return;let c=i?.authors;for(let t=0;t<a.length;t++){let n=a[t];if(!n?.r)continue;let r=c&&n.v.authorId!==void 0?c[n.v.authorId]:void 0;if(r&&r.startsWith(`tc=`)){if(l.has(o.c(r.substring(3))))continue;r=void 0}let i={id:e.R.uuidV4().toUpperCase(),asNote:!0,content:n.v.content??``},s=r?ie({displayName:r}):void 0;s&&(i.personId=s.id),d.push({r:n.r,v:i})}let u=L(n,r);u&&P(u)}),c.length===0&&d.length===0)return;let f=[...c,...d],p=t.legacyDrawing;if(p?.xml){let{rest:e,notes:r}=a.c(p.xml);if(r.length>0){let i=new Map;for(let e=0;e<r.length;e++){let t=r[e];i.set(n.nt.cellToString({rowIndex:t.row,colIndex:t.col}),t)}for(let e=0;e<f.length;e++){let t=f[e],n=i.get(String(t.r).toUpperCase());n&&(t.v.box={xml:n.xml},i.delete(String(t.r).toUpperCase()))}let o=[];i.forEach(e=>{o.push(e.xml)});let s=a.m(e,o);s?p.xml=s:delete t.legacyDrawing}}t.comments=f},z=(e,n)=>{let r=L(e,n);if(!r)return null;let i=t(Le(r));if(!i)return null;let a={xml:new TextDecoder(`utf-8`).decode(i.content)},o=[];return F(r,A)?.forEach((e,t)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`)return;let n=I(t,r,!0);typeof n==`number`&&o.push({id:t,resId:n})}),o.length>0&&(a.images=o),P(r),a},B=(e,n,r,a,o=new Set)=>{let s=L(e,n);if(!s||o.has(s))return null;let c=r??F(n,A)?.get(e)?.type;if(!c)return null;let l=t(Le(s));if(!l)return null;o.add(s);let u=s.substring(s.lastIndexOf(`/`)+1),d=i.overrides[Le(s)]??i.defaults[u.substring(u.lastIndexOf(`.`)+1).toLowerCase()],f={id:e,type:c,name:u};if(d&&(f.contentType=d),((e,t)=>e?e.endsWith(`+xml`)||e===`application/xml`:/\.(xml|rels|vml)$/i.test(t))(d,u))f.xml=new TextDecoder(`utf-8`).decode(l.content);else{let t=I(e,n,!0);if(typeof t!=`number`)return null;f.resId=t}let p=[];return F(s,A)?.forEach((e,t)=>{if(!e?.type||a&&!a(e.type))return;if(e.targetMode===`External`){let n=I(t,s,!0);typeof n==`number`&&p.push({id:t,type:e.type,resId:n});return}let n=B(t,s,e.type,a,o);n&&p.push(n)}),p.length>0&&(f.parts=p),P(s),f};o.d(`coreprops`,i,t,k,O,b),o.d(`extprops`,i,t,k,O,b);let V=new Map,H=new Map,U=o.d(`people`,i,t,k,O,b),W=null;if(U.size>0){let[e,t]=U.entries().next().value;if(W=t?.persons,P(e),W){let e=W.length;for(let t=0;t<e;t++){let e=W[t];V.set(e.id,e),e.displayName!==void 0&&H.set(e.displayName,e)}}}let ie=t=>{if(!t)return;if(t.id&&V.has(t.id))return V.get(t.id);let n=t.displayName;if(!t.id){if(n){let e=H.get(n);if(e)return e}t.id=e.R.uuidV4()}let r=V.get(t.id);if(r)return r;let i=t;return V.set(t.id,i),n&&H.set(n,i),W||=[],W.push(i),i},G={paramMap:E,getRefs:F,getRef:I,parsedRefs:A,readEmbeddedPart:(e,t)=>B(e,t),addPerson:ie,serializeElement:re,onWarning:y},ae=[];if(s){let e=await M.getTextStream(s,te);if(e){let t=((e,t)=>{let n=!1,r=!1,i=0,o=``;return{onOpenTag:e=>{let t=Fe(e.name);t===`t`?n&&i===0&&(r=!0):t===`si`?(n=!0,o=``,i=0):t!==`rPh`&&t!==`phoneticPr`||i++},onText:e=>{r&&(o+=e)},onCloseTag:e=>{let t=Fe(e.name);t===`t`?r=!1:t===`si`?((e=>{ae.push(e)})(a._(o)),n=!1,o=``):t!==`rPh`&&t!==`phoneticPr`||i>0&&i--},onError:e=>{t?.(`Error parsing shared strings: ${e?.message??e}`)}}})(0,e=>{y(e,s)});try{await w.parseStream(e,t,{xmlns:!1})}catch(e){throw Error(`Error parsing shared strings: '${s}'`,{cause:e})}}}_?.mark(`shared-strings`);let oe=ae.length,se=new Map,ce=oe,le=e=>{let t=se.get(e);if(t!==void 0)return t;let n=ce;return se.set(e,ce++),ae.push(e),n},ue=[];i.slicersCache=ue;let de=M.getNames(),fe=de.length;for(let e=0;e<fe;e++){let t=de[e];t&&t.startsWith(`xl/slicerCache`)&&ue.push(`/${t}`)}let pe=o.d(`slicersCache`,i,t,k,O,G),me=new Map;pe.forEach(e=>{let t=e.name;delete e.name,me.set(t,e)}),E.set(`slicerCaches`,me),o.d(`richstructure`,i,t,k,O,G),o.d(`richdata`,i,t,k,O,G);let he=o.d(`themes`,i,t,k,O,G),ge=null;if(he&&he.entries){let e=he.entries().next();e?.value?.[1]&&(ge=e.value[1])}let _e=new n.Gt(ge),ve=o.d(`styles`,i,t,k,O,G).entries().next()?.value?.[1];ve&&=JSON.parse(e.t.JSONStableStringify(ve));let K=o.d(`workbooks`,i,t,k,O,G);_?.mark(`side-parts-json`),await Promise.all(j);{let e=K.entries().next().value?.[1],t=a.R(e?.names),n=e?.sheets??[];for(let e=0;e<n.length;e++){let r=n[e]?.sheet;r&&a.C(r,t)}let r=e?.names;if(r)for(let e=0;e<r.length;e++){let n=r[e]?.ref;typeof n==`string`&&(r[e].ref=t.readDetached(n))}}S&&C>0&&(S(ee,ee),await new Promise(e=>setTimeout(e,0))),_?.mark(`sheets`);let ye={...K.entries().next().value?.[1],styles:ve,theme:_e.toJSON()};o.n(ye,E.get(o.p)),ye.calc={...ye.calc??{},legacyIntersect:!0},ae.length>0&&(ye.strings=ae),W&&W.length>0&&(ye.people=W);let q=M.getEntry(`xl/vbaProject.bin`);if(q)try{let{VBAProject:e}=await Promise.resolve().then(()=>require("./Dy50BSaRMmRISD2Y.cjs")),t=e.extract(q);if(t){let n=new Map;for(let e of ye.sheets??[]){let t=e?.sheet?.codeName;t&&n.set(t,e.sheet)}for(let r of t.modules){let t={language:`vba`},{header:i,body:a}=e.splitAttributes(r.code);a&&(t.source=a),i&&(t.sourceHeader=i);let o=r.type===`document`?n.get(r.name):void 0;o||r.type!==`document`||(t.scope=`workbook`);let s=o?o.modules??={}:ye.modules??={};s[r.name]||(s[r.name]=t)}d?.(t)}else v.push([`Unable to parse VBA project.`,`xl/vbaProject.bin`])}catch(e){v.push([`Error extracting VBA: ${e?.message??e}`,`xl/vbaProject.bin`])}let be=E.get(`calcId`),xe=be===void 0||!(Number(be)>=191029),Q=m.calcOnLoad??(p===`auto`&&xe?`full`:p),Ce={...m,calcOnLoad:Q,resources:l,json:ye};Ce.disableLoadAutoFit===void 0&&(Ce.disableLoadAutoFit=!1),_?.mark(`json-assembled`);let $=new r.g(Ce);if(_?.mark(`workbook-constructed`),D.length>0&&Q!==`none`){await $.whenCalculationReady();let e=new Map,t=ye.sheets??[],n=$.getSheets().getItems();for(let r=0;r<t.length;r++){let i=t[r]?.sheet,a=n[r];i&&a&&e.set(i,a)}((e,t,n)=>{if(t.length===0)return;let r=e.getCalculation().getFunctions(),i=new Map,a=e=>{let t=i.get(e);return t===void 0&&(t=r.getByName(e)!==null,i.set(e,t)),t},o=new Map;for(let e of t){let t=o.get(e.sheet);t||(t=[],o.set(e.sheet,t)),t.push(e)}for(let[e,t]of o){let r=n.get(e);if(!r)continue;let i=(e,t)=>`${e},${t}`,o=new Set;for(let e of t)e.formula===null&&o.add(i(e.rowIndex,e.colIndex));for(let e of t){if(e.formula===null)continue;let t=Oe(e.formula),n=!0;for(let e of t)if(!a(e)){n=!1;break}if(!n)continue;let s=[],c=[[e.rowIndex,e.colIndex]],l=new Set([i(e.rowIndex,e.colIndex)]);for(;c.length>0;){let[e,t]=c.pop(),n=[[e+1,t],[e-1,t],[e,t+1],[e,t-1]];for(let[e,t]of n){let n=i(e,t);!l.has(n)&&o.has(n)&&(l.add(n),s.push([e,t]),c.push([e,t]))}}for(let[e,t]of s)o.delete(i(e,t)),r.getRange({rowStart:e,colStart:t,rowEnd:e,colEnd:t}).clear();r.getRange({rowStart:e.rowIndex,colStart:e.colIndex,rowEnd:e.rowIndex,colEnd:e.colIndex}).setValue(`=`+e.formula)}}})($,D,e)}if(T.forEach(e=>{e.deleteReference(h)}),u.endPersist(),g){a.F($);let e=new Map,t=0;for(let n of M.getNames()){let r=M.getEntry(n);if(!r)continue;let i=M.getRawEntry(n),a=i?{data:r,uncompressedSize:M.uncompressedSize(n),raw:{compressedData:i.data,compressionMethod:i.compressionMethod,signature:i.signature}}:{data:r,uncompressedSize:M.uncompressedSize(n)};e.set(n,a),t+=r.byteLength}if(t>67108864)v.push([`Source package too large to retain (${t} bytes, limit ${a.nt}); unmodeled parts will be dropped on save.`,`SourcePackage`]);else if(e.size>0){let t=new a.N(e,N);a.L($,t);let n=$.getSheets().getItems(),r=$.getTransactions().addListener({onCommitEnd:e=>{let n=e.getOperation()?.name;n!==`insertCells`&&n!==`deleteCells`||t.markStructuralChange()}}),i=$.addListeners({onSheetsChange:()=>{let e=$.getSheets().getItems();(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&t.markStructuralChange(),n=e}});$.addListeners({onClose:()=>{r(),i(),a.F($)}})}}if(v.length&&x?.onWarning){let e=new Set;for(let t of v){let[n,r,i]=t,a=i??n;e.has(a)||(e.add(a),x.onWarning(n,r))}}return _&&!0===f&&console.table(_.toTable()),$}catch(t){let n=`Unable to parse XLSX.`;throw t instanceof e.K&&(n=`Unable to open XLSX. There are too many rows or columns.`),Error(n,{cause:t})}finally{await M.close().catch(()=>{})}};
|
|
1
|
+
const e=require("./Bj3YkKmVIoQ3YtYm.cjs"),t=require("./BPWKnUtyoTrtW567.cjs"),n=require("./hHVT-pzS2bhjFHSL.cjs"),r=require("./9Fb0mL7xhqVmVTQp.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./DggQv_m8hwCk0ZPk.cjs"),o=require("./BtrnAiRF11y21NX4.cjs");var s=new Uint8Array,c=class e{constructor(e,t,n){this.buffers=new Map,this.zip=e,this.entries=t,this.rawBuffer=n}static normalize(e){return e.startsWith(`/`)?e.slice(1):e}static async create(t){let n=t instanceof Blob?s:t instanceof Uint8Array?t:new Uint8Array(t),r=new a.o(t instanceof Blob?new a.E(t):new a.k(n)),i=new Map;for(let e of await r.getEntries())e.directory||i.set(e.filename,e);return new e(r,i,n)}getNames(){return[...this.entries.keys()]}has(t){return this.entries.has(e.normalize(t))}uncompressedSize(t){return this.entries.get(e.normalize(t))?.uncompressedSize??0}async getBuffer(t){let n=e.normalize(t),r=this.buffers.get(n);if(r)return r;let i=this.entries.get(n);if(!i)return null;let o=await i.getData(new a.M);return this.buffers.set(n,o),o}async prefetch(e){let t=[];for(let[n,r]of this.entries)!this.buffers.has(n)&&e(n,r)&&t.push(r.getData(new a.M).then(e=>{this.buffers.set(n,e)}));await Promise.all(t)}getEntry(t){return this.buffers.get(e.normalize(t))??null}async getTextStream(t,n){let r=this.entries.get(e.normalize(t));if(!r)return null;let i=new TransformStream;r.getData(i.writable).catch(()=>{});let a=i.readable.getReader(),o=new TextDecoder(`utf-8`);return new ReadableStream({async pull(e){let{value:t,done:r}=await a.read();if(r){let t=o.decode();t&&e.enqueue(t),e.close();return}n?.(t.byteLength);let i=o.decode(t,{stream:!0});i&&e.enqueue(i)}}).getReader()}getRawEntry(t){let n=this.entries.get(e.normalize(t));if(!n||n.encrypted)return null;let r=n.offset;if(r+30>this.rawBuffer.byteLength)return null;let i=new DataView(this.rawBuffer.buffer,this.rawBuffer.byteOffset+r,30);if(i.getUint32(0,!0)!==67324752)return null;let a=r+30+i.getUint16(26,!0)+i.getUint16(28,!0),o=a+n.compressedSize;return o>this.rawBuffer.byteLength?null:{data:this.rawBuffer.subarray(a,o),compressionMethod:n.compressionMethod,signature:n.signature}}async close(){await this.zip.close()}},l=class{constructor(e){this._sink=e,this._samples=[],this._t0=u(),this._tPrev=this._t0,this._heapPrev=d()}mark(e){let t=u(),n=d(),r={label:e,tMs:t-this._t0,dtMs:t-this._tPrev,heapBytes:n,dHeapBytes:n!==void 0&&this._heapPrev!==void 0?n-this._heapPrev:void 0,rssBytes:f()};this._tPrev=t,this._heapPrev=n,this._samples.push(r),this._sink?.(r)}samples(){return this._samples}toTable(){return this._samples.map(e=>({phase:e.label,tMs:Math.round(e.tMs),dtMs:Math.round(e.dtMs),heapMB:e.heapBytes===void 0?`—`:p(e.heapBytes/1048576),dHeapMB:e.dHeapBytes===void 0?`—`:p(e.dHeapBytes/1048576),rssMB:e.rssBytes===void 0?`—`:p(e.rssBytes/1048576)}))}},u=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now();function d(){let e=typeof performance==`object`?performance.memory:void 0;if(e&&typeof e.usedJSHeapSize==`number`)return e.usedJSHeapSize;let t=globalThis.process;return typeof t==`object`&&typeof t.memoryUsage==`function`?t.memoryUsage().heapUsed:void 0}function f(){let e=globalThis.process;if(typeof e==`object`&&typeof e.memoryUsage==`function`)return e.memoryUsage().rss}function p(e){return Math.round(10*e)/10}var m=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,h=`-${m}.0-9·̀-ͯ‿-⁀`,g=(RegExp(`^[${m}]$`,`u`),RegExp(`^[${h}]$`,`u`),RegExp(`^[${m}][${h}]*$`,`u`)),_=(RegExp(`^[${h}]+$`,`u`),[32,10,13,9]);function v(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var y=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,b=`-${y}.0-9·̀-ͯ‿-⁀`;RegExp(`^[${y}]$`,`u`),RegExp(`^[${b}]$`,`u`),RegExp(`^[${y}][${b}]*$`,`u`),RegExp(`^[${b}]+$`,`u`);var x=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,S=`-${x}.0-9·̀-ͯ‿-⁀`,ee=(RegExp(`^[${x}]$`,`u`),RegExp(`^[${S}]$`,`u`),RegExp(`^[${x}][${S}]*$`,`u`));function C(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var w,T=function(e){return e===32||e===10||e===13||e===9},te=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},E=v,D=function(e){return v(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256},ne=_,O=g,k=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},A=C,j=function(e){return C(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256},M=ee,re=`http://www.w3.org/XML/1998/namespace`,N=`http://www.w3.org/2000/xmlns/`,P={__proto__:null,xml:re,xmlns:N},F={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},I=-1,L=-2,R=13,z=33,B=10,V=60,H=61,U=62,W=63,ie=93,G=e=>e===34||e===39,ae=[34,39],oe=[...ae,91,U],se=[...ae,V,ie],ce=[H,W,...ne],le=[...ne,U,38,V];function ue(e,t,n){switch(t){case`xml`:n!==re&&e.fail(`xml prefix must be bound to ${re}.`);break;case`xmlns`:n!==N&&e.fail(`xmlns prefix must be bound to ${N}.`)}switch(n){case N:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${N}.`);break;case re:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}var de,fe=e=>M.test(e),pe=e=>O.test(e),me={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`},he=class{get closed(){return this._closed}constructor(e){this.i=0,this.prevI=0,this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=A,this.nameCheck=j,this.isName=fe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...P};let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))ue(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=E,this.nameCheck=D,this.isName=pe,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()}_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=[];let{fragmentOpt:e}=this;this.state=e?R:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:t}=this.opt;if(t===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);t=`1.0`}this.setXMLVersion(t),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(F),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[me[e]]=t}off(e){this[me[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let e=this.chunk,t=this.i;if(this.prevI=t,this.i++,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:return e.charCodeAt(t+1)===B&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:{let n=e.charCodeAt(t+1);n!==B&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===L?B:e}unGet(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===L,a=i?B:r;if(a===I||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case L:this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i,r=B;break;case I:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===I)return this.name+=e.slice(t),I;if(!D(n))return this.name+=e.slice(t,this.prevI),n===L?B:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===I||!T(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=te,this.getCode=this.getCode10):(this.isChar=k,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case V:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case I:break;default:this.unGet(),this.state=R,this.xmlDeclPossible=!1}}sDoctype(){let e=this.captureTo(oe);switch(e){case U:this.doctypeHandler?.(this.text),this.text=``,this.state=R,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(e),e===91?this.state=4:G(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(se);e!==I&&(this.text+=String.fromCodePoint(e),e===ie?this.state=2:e===V?this.state=6:G(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case W:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(W)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;t:for(;;)switch(this.getCode()){case L:this.entity+=`${t.slice(e,this.prevI)}\n`,e=this.i;break;case 59:{let n,{entityReturnState:r}=this,i=this.entity+t.slice(e,this.prevI);this.state=r,i===``?(this.fail(`empty entity name.`),n=`&;`):(n=this.parseEntity(i),this.entity=``),r===R&&this.textHandler===void 0||(this.text+=n);break t}case I:this.entity+=t.slice(e);break t}}sOpenWaka(){let e=this.getCode();if(E(e))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=``,this.xmlDeclPossible=!1;break;case W:this.state=23;break;default:this.fail(`disallowed character in tag name`),this.state=R,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(){let e=this.getCodeNorm();e===45?(this.state=19,this.commentHandler?.(this.text),this.text=``):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===U?this.state=R:(this.fail(`malformed comment.`),this.text+=`--${String.fromCodePoint(e)}`,this.state=17)}sCData(){this.captureToChar(ie)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===ie?this.state=22:(this.text+=`]${String.fromCodePoint(e)}`,this.state=20)}sCDataEnding2(){let e=this.getCodeNorm();switch(e){case U:this.cdataHandler?.(this.text),this.text=``,this.state=R;break;case ie:this.text+=`]`;break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===W||T(e)?(this.fail(`processing instruction without a target.`),this.state=e===W?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===I)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===W;r||T(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?z:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===W?this.state=26:T(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(W)&&(this.state=26)}sPIEnding(){let e=this.getCodeNorm();if(e===U){let{piTarget:e}=this;e.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),this.piHandler?.({target:e,body:this.text}),this.piTarget=this.text=``,this.state=R}else e===W?this.text+=`?`:(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===W?this.state=z:e!==I&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(ce);if(e===W)return this.state=z,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(T(e)||e===H){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=e===H?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(e!==H&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(G(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,W]);if(e===W)return this.state=z,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===I)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===W?this.state=z:(T(e)||(this.fail(`whitespace required.`),this.unGet()),this.state=27)}sXMLDeclEnding(){this.getCodeNorm()===U?(this.piTarget===`xml`?this.name!==`version`&&this.xmlDeclExpects.includes(`version`)&&this.fail(`XML declaration must contain a version.`):this.fail(`processing instructions are not allowed before root.`),this.xmlDeclHandler?.(this.xmlDecl),this.name=``,this.piTarget=this.text=``,this.state=R):this.fail(`The character ? is disallowed anywhere in XML declarations.`),this.xmlDeclPossible=!1}sOpenTag(){let e=this.captureNameChars();if(e===I)return;let t=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=``,this.xmlnsOpt&&(this.topNS=t.ns=Object.create(null)),this.openTagStartHandler?.(t),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail(`documents may contain only one root.`),e){case U:this.openTag();break;case 47:this.state=35;break;default:T(e)||this.fail(`disallowed character in tag name.`),this.state=36}}sOpenTagSlash(){this.getCode()===U?this.openSelfClosingTag():(this.fail(`forward-slash in opening tag not followed by >.`),this.state=36)}sAttrib(){let e=this.skipSpaces();e!==I&&(E(e)?(this.unGet(),this.state=37):e===U?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===H?this.state=39:T(e)?this.state=38:e===U?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==I&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case I:return;case H:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===U?this.openTag():E(e)?(this.unGet(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();G(e)?(this.q=e,this.state=40):T(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unGet())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case B:case L:case 9:this.text+=`${t.slice(n,this.prevI)} `,n=this.i;break;case V:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case I:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();T(e)?this.state=36:e===U?this.openTag():e===47?this.state=35:E(e)?(this.fail(`no whitespace between attributes.`),this.unGet(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(le);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case V: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=``,e===U?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===U?this.closeTag():T(e)?this.state=44:e!==I&&this.fail(`disallowed character in closing tag.`)}sCloseTagSawWhite(){switch(this.skipSpaces()){case U:this.closeTag();break;case I:break;default:this.fail(`disallowed character in closing tag.`)}}handleTextInRoot(){let{i:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;t:for(;;)switch(this.getCode()){case V:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break t;case 38:this.state=14,this.entityReturnState=R,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break t;case ie:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case U:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case L:r!==void 0&&(this.text+=`${n.slice(e,this.prevI)}\n`),e=this.i,t=0;break;case I:r!==void 0&&(this.text+=n.slice(e));break t;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;t:for(;;){let i=this.getCode();switch(i){case V:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break t;case 38:this.state=14,this.entityReturnState=R,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break t;case L:n!==void 0&&(this.text+=`${t.slice(e,this.prevI)}\n`),e=this.i;break;case I:n!==void 0&&(this.text+=t.slice(e));break t;default:T(i)||(r=!0)}}r&&(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(e,t){let{prefix:n,local:r}=this.qName(e),i={name:e,prefix:n,local:r,value:t};if(this.attribList.push(i),this.attributeHandler?.(i),n===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[r]=e,ue(this,r,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,ue(this,``,e)}}pushAttribPlain(e,t){let n={name:e,value:t};this.attribList.push(n),this.attributeHandler?.(n)}end(){this.sawRoot||this.fail(`document must contain a root element.`);let{tags:e}=this;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}this.state!==0&&this.state!==R&&this.fail(`unexpected end.`);let{text:t}=this;return t.length!==0&&(this.textHandler?.(t),this.text=``),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(e){let t=this.topNS[e];if(t!==void 0)return t;let{tags:n}=this;for(let r=n.length-1;r>=0;r--)if(t=n[r].ns[e],t!==void 0)return t;return t=this.ns[e],t===void 0?this.opt.resolvePrefix?.(e):t}qName(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qName(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let e,i,{name:a,prefix:o,local:s}=t;o===``?(e=a===`xmlns`?N:``,i=a):(e=this.resolve(o),e===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),e=o),i=`{${e}}${s}`),r.has(i)&&this.fail(`duplicate attribute: ${i}.`),r.add(i),t.uri=e,n[a]=t}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!1,this.openTagHandler?.(t),e.push(t),this.state=R,this.name=``}openSelfClosingTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!0,this.openTagHandler?.(t),this.closeTagHandler?.(t),(this.tag=e[e.length-1]??null)===null&&(this.closedRoot=!0),this.state=R,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=R,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-->0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag: ${t}.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;return e[1]===`x`&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail(`malformed character entity.`),`&${e};`)}},ge=/&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g,_e={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},ve=(e,t)=>{let n=_e[t];if(n!==void 0)return n;let r=t.charCodeAt(1)===120?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>0&&r<=1114111?String.fromCodePoint(r):e},K=e=>{let t=e;return t.indexOf(`\r`)!==-1&&(t=t.replace(/\r\n?/g,`
|
|
2
|
+
`)),t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},ye=e=>{let t=e,n=t.length;for(let e=0;e<n;e++){let n=t.charCodeAt(e);if(n===9||n===10||n===13){t=t.replace(/\r\n|[\t\n\r]/g,` `);break}}return t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},q=e=>e===32||e===9||e===10||e===13,be=class e{constructor(){this._openTagHandler=void 0,this._closeTagHandler=void 0,this._textHandler=void 0,this._cdataHandler=void 0,this._errorHandler=void 0,this._endHandler=void 0,this._scanners=null,this._carry=``,this._text=``,this._tags=[],this._sawRoot=!1,this._closed=!1}static{this.NEED_MORE=-1}static{this.NOT_HANDLED=-2}static decodeText(e){return K(e)}on(e,t){switch(e){case`opentag`:this._openTagHandler=t;break;case`closetag`:this._closeTagHandler=t;break;case`text`:this._textHandler=t;break;case`cdata`:this._cdataHandler=t;break;case`error`:this._errorHandler=t;break;case`end`:this._endHandler=t}}setElementScanners(e){if(!e||e.length===0)return void(this._scanners=null);let t=Array(128);for(let n of e){let e=n.name.charCodeAt(0);if(!(e<128)||t[e]!==void 0)throw Error(`Element scanner '${n.name}' needs an ASCII first character no other scanner uses.`);t[e]=n}this._scanners=t}fail(e){let t=Error(e),n=this._errorHandler;if(n===void 0)throw t;n(t)}write(e){if(this._closed)return this.fail(`cannot write after close.`),this;let t=e;this._carry.length!==0&&(t=this._carry+e,this._carry=``);let n=t.length,r=0;for(;r<n;){let e=t.indexOf(`<`,r);if(e===-1)return this._text+=t.slice(r),this;e>r&&(this._text+=t.slice(r,e));let i=this._markup(t,e,n);if(i===-1)return this._carry=t.slice(e),this;r=i}return this}close(){this._carry.length!==0&&(this.fail(`unexpected end.`),this._carry=``),this._sawRoot||this.fail(`document must contain a root element.`);let e=this._tags;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}return this._flushText(),this._closed=!0,this._endHandler?.(),this}_flushText(){let e=this._text;if(e.length===0)return;this._text=``;let t=this._textHandler;t!==void 0&&this._tags.length!==0&&t(K(e))}_markup(t,n,r){if(n+1>=r)return-1;let i=t.charCodeAt(n+1);if(i===47){let e=t.indexOf(`>`,n+2);return e===-1?-1:(this._flushText(),this._closeTag(t.slice(n+2,e).trimEnd()),e+1)}if(i===63){let e=t.indexOf(`?>`,n+2);return e===-1?-1:e+2}if(i===33){if(n+4>r)return-1;if(t.charCodeAt(n+2)===45&&t.charCodeAt(n+3)===45){let e=t.indexOf(`-->`,n+4);return e===-1?-1:e+3}if(n+9>r)return-1;if(t.startsWith(`[CDATA[`,n+2)){let e=t.indexOf(`]]>`,n+9);return e===-1?-1:(this._flushText(),this._cdataHandler?.(t.slice(n+9,e)),e+3)}let e=t.indexOf(`[`,n+2),i=t.indexOf(`>`,n+2);if(i===-1)return-1;if(e!==-1&&e<i){let n=t.indexOf(`]>`,e);return n===-1?-1:n+2}return i+1}let a=this._scanners;if(a!==null){let o=i<128?a[i]:void 0;if(o!==void 0&&t.startsWith(o.name,n+1)){let i=n+1+o.name.length;if(i>=r)return-1;let a=t.charCodeAt(i);if(a===62||a===47||q(a)){this._flushText();let i=o.scan(t,n,r);if(i!==e.NOT_HANDLED){if(i!==e.NEED_MORE){this._sawRoot=!0;let e=o.openTag;e!==void 0&&this._tags.push(e)}return i}}}}return this._openTag(t,n,r)}_openTag(e,t,n){let r=t+1,i=0;for(;r<n&&(i=e.charCodeAt(r),i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t+1,r),o={},s=!1;for(;;){for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i===62){r++;break}if(i===47){if(r+1>=n)return-1;if(e.charCodeAt(r+1)!==62){this.fail(`forward-slash in opening tag not followed by >.`),r++;continue}s=!0,r+=2;break}let t=r;for(;r<n&&(i=e.charCodeAt(r),i!==61&&i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t,r);for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==61){this.fail(`attribute without value.`);continue}for(r++;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==34&&i!==39){this.fail(`unquoted attribute value.`);continue}let c=e.indexOf(i===34?`"`:`'`,r+1);if(c===-1)return-1;a!==`__proto__`&&(o[a]=ye(e.slice(r+1,c))),r=c+1}this._flushText(),this._sawRoot=!0;let c={name:a,attributes:o,isSelfClosing:s};return this._openTagHandler?.(c),s?this._closeTagHandler?.(c):this._tags.push(c),r}_closeTag(e){if(e===``)return void this.fail(`weird empty close tag.`);let t=this._tags,n=this._closeTagHandler,r=t.length;for(;r-->0;){let r=t.pop();if(n?.(r),r.name===e)return;this.fail(`unexpected close tag: ${e}.`)}this.fail(`unmatched closing tag: ${e}.`)}};(de=w||={}).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`},de.parseStream=async(e,t,n)=>{if(n?.lean)return(async(e,t)=>{let n,r=new be;t.elementScanners&&r.setElementScanners(t.elementScanners),t.onOpenTag&&r.on(`opentag`,t.onOpenTag),t.onCloseTag&&r.on(`closetag`,t.onCloseTag),t.onText&&r.on(`text`,t.onText),t.onError&&r.on(`error`,t.onError);let i=t.onEnd;for(i&&r.on(`end`,()=>{n=i()});;){let{value:t,done:n}=await e.read();if(n)break;r.write(t)}return r.close(),n})(e,t);let r,i=new he({position:!1,...n});t.onOpenTagStart&&i.on(w.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&i.on(w.Events.OpenTag,t.onOpenTag),t.onCloseTag&&i.on(w.Events.CloseTag,t.onCloseTag),t.onAttribute&&i.on(w.Events.Attribute,t.onAttribute),t.onText&&i.on(w.Events.Text,t.onText),t.onError&&i.on(w.Events.Error,t.onError);let a=t.onEnd;for(a&&i.on(w.Events.End,()=>{r=a()});;){let{value:t,done:n}=await e.read();if(n)break;i.write(t)}return i.close(),r};var J=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,Y=e=>{let t=parseInt(e);return isNaN(t)?null:t},X=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Z=null,xe=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),Q=e=>xe(e).replace(/"/g,`"`),Se=class{constructor(){this._registeredVisitors=new Map}registerVisitor(e){this._registeredVisitors.set(e.from,e)}createEventHandler(e,t,n){let r=this._registeredVisitors,i=[],a=[],o=null,s=null,c=null,l=null,u=[],d={key:null,source:e,parent:null},f=null,p=!1,m=null,h=null,g=null,_=(e,t)=>{let n=c.attributes[e];if(t){if(Array.isArray(t)){let e=t.length;for(let r=0;r<e;r++)if(n==null||(n=t[r](n),n==null))return}else if(n==null||(n=t(n),n==null))return}return n},v={getSource:()=>f?.source??null,setSource:e=>{f.source=e},setKey:e=>{f.key=e},getFrom:()=>c,getAttribute:(e,t)=>_(e,t)??null,hasAttribute:e=>v.getAttribute(e)!==null,getParent:()=>{let e=u[u.length-2];return e.parent??e.source},getPath:()=>{let e=[],t=a.length;for(let n=0;n<t;n++)e.push(a[n].local);return e.join(`\\`)},parseAttribute:_,getRawXml:()=>g,copyToObject:(e,t,n,r)=>{let i=_(r??t,n);i!==void 0&&(e[t]=i)},copyTo:(e,t,n)=>{let r=_(n??e,t);r!==void 0&&(f.source[e]=r)},warn:(e,t)=>{n?n(e,void 0,t?.onceKey):console.warn(e)}};return{onOpenTag:e=>{let t=e.name,n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),m)return m.push((e=>{let t=e.attributes??{},n=`<${e.name}`;for(let e in t){let r=t[e];n+=` ${e}="${Q(typeof r==`string`?r:r?.value??``)}"`}return n+`>`})(e)),o={local:t,tag:e,destination:null},a.push(o),s=t,void(c=e);let g=(i.length>0?i[i.length-1]:r).get(t);if(o={local:t,visitor:g,tag:e,destination:null},p)return a.push(o),s=t,void(c=e);l=o?.visitor??null,s=t,c=e;let _=!!g&&g.to===null;if(g&&!_&&g.scope){let e=g.scope(v);e===null?_=!0:e&&(i.push(e),o.pushedScope=!0)}g&&(a.length===0?(f=d,o.destination=f,o.pushedDestination=!0,u.push(f)):_?(f=null,o.destination=null):g.transparent?o.destination=f:(f={key:null,source:{},parent:null},o.destination=f,o.pushedDestination=!0,u.push(f))),a.push(o),p=_;let y=l?.openTag?.(v);y!==void 0&&(f.parent=y),g?.raw&&!_&&(m=[],h=o)},onCloseTag:e=>{let t=e.name,r=t.indexOf(`:`);if(r!==-1&&(t=t.slice(r+1)),t!==s)throw Error(`mismatch open/close tag: '${t}'/'${s}'`);let _=!1;if(m){if(a[a.length-1]!==h)return m.push(`</${e.name}>`),a.pop(),o=a[a.length-1]??null,s=o?.local??null,void(c=o?.tag??null);g=m.join(``),m=null,h=null,_=!0}p||l?.closeTag?.(v),_&&(g=null);let y=a.pop()??null;o=a[a.length-1]??null,y?.pushedScope&&i.pop();let b=y?.destination;if(b&&y.pushedDestination){u.pop(),f=u[u.length-1]??d;let e=y.visitor;e&&e.to&&b.source!==void 0&&(Array.isArray(e.to)?f.source.push?f.source.push(b.source):n?.(`Unable to parse array for ${e.from} at ${v.getPath()}`):b.key?f.source[b.key]=b.source:typeof e.to==`string`&&(f.source[e.to]=b.source))}else b||(f=u[u.length-1]??d);s=o?.local??null,c=o?.tag??null,l=o?.visitor??null,p=!o?.destination},onText:e=>{m?m.push(xe(e)):l?.text?.(e,v)},onEnd:t}}},Ce=`IFERROR(${a.it}(`,$=Ce.toUpperCase(),we=a.ot.toUpperCase(),Te={kind:`none`},Ee={kind:`spilled`},De=(e,t)=>{if(e.charCodeAt(t)!==34)return null;let n=``,r=t+1;for(;r<e.length;)if(e.charCodeAt(r)===34){if(e.charCodeAt(r+1)!==34)return{value:n,end:r+1};n+=`"`,r+=2}else n+=e[r],r++;return null},Oe=e=>{let t=[],n=0;for(;n<e.length;){let r=e.charCodeAt(n);if(r===34){let t=De(e,n);if(t===null)break;n=t.end;continue}if(!(r>=65&&r<=90||r>=97&&r<=122||r===95)){n++;continue}let i=n+1;for(;i<e.length;){let t=e.charCodeAt(i);if(!(t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===95||t===46))break;i++}e.charCodeAt(i)===40&&t.push(e.slice(n,i).toUpperCase().replace(/^_XLFN\./,``).replace(/^_XLWS\./,``)),n=i}return t},ke=e=>{let t=t=>{if(e)return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1]},n=e=>{let t=parseInt(e??``,10);return isNaN(t)?0:t};return{c:n(t(`col`)),r:n(t(`row`)),x:o.h(t(`colOff`)??`0`)??0,y:o.h(t(`rowOff`)??`0`)??0}},Ae=`formulaDialect`,je=class{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}},Me=(e,t,n)=>{if(e[0].value[0]===e[1].value[0])return t},Ne={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Pe=(r,i,a,o,s,c,l)=>{let u=!1,d=!1,f=[],p=!1,m=null,h=null,g=null,_=null,v=null,y=null,b=l?.get(`richData`)??e.I.EmptyArray,x=l?.get(`dummyWrapped`)??null,S=n.nt.normalizeA1ToR1C1,ee=e.d.createConflatingRanges(),C=new Map,w=[],T=!1,te=!1,E=null,D=!1,ne=e.d.createConflatingRanges(),O=!1,k=-1,A=-1,j=null,M=null,re=null,N=[],P=null,F=-2,I=0,L=``,R=``,z=``,B=``,V=``,H=``,U=``,W=``,ie=``,G=``,ae=``,oe=``,se=``,ce=``,le=!0,ue=null,de=!1,fe=!1,pe=!1,me=null,he=0,ge=e=>{let r=e.name,o=r.indexOf(`:`);if(o!==-1&&(r=r.slice(o+1)),he++,he%196608==0&&s?.(he),M){let t=e.attributes;switch(r){case`v`:d=!0;break;case`f`:switch(p=!0,t.t??null){case null:case`normal`:break;case`shared`:let e=t.si;h=t.ref,m=e;break;case`array`:h=t.ref,E=h;break;case`datatable`:h=t.ref,p=!0}let e=t.ca;e!==void 0&&(D=e===`1`);break;case`is`:O=!0;return}O&&!p&&c?.onOpenTag?.(e);return}if(u){if(r===`c`){M=e;let r=e.attributes,i=r.r;A=n.nt.fastStringToCol(i);let a=r.t;a===void 0?re=null:(re=a,re===`str`&&(O=!0));let o=r.s;o===void 0&&(me!==null||pe)&&(o=`0`),o!==void 0&&(o=parseInt(o),ue&&ue.value===o&&ue.colEnd+1===A?ue.colEnd=A:(ue={colStart:A,rowStart:k,colEnd:A,rowEnd:k,value:o},f.push(ue))),E=null,te=!1;let s=r.cm;T=s!==void 0&&(e=>{let t=l?.get(`metadata`)?.cells;if(!t)return!1;let n=parseInt(e,10);return!(!Number.isFinite(n)||n<1)&&!0===t[n-1]?.get(`XLDAPR`)?.fDynamic})(s);let c=r.vm;if(c!==void 0){let e=b[parseInt(c)-1];if(t.i.isError(e)){let n=e.getCode();j={t:`e`,v:n},T&&n===t.i.Code.Spill&&(te=!0)}}}}else{if(fe&&r===`row`){u=!0;let t=e.attributes.r;if(k=parseInt(t)-1,I=0,R=e.attributes.customHeight,R!==void 0&&(I|=je.CustomHeight),R!==ie&&(le=!0,ie=R),L=e.attributes.ht,L!==void 0&&(I|=je.Ht),L!==W&&(le=!0,W=L),z=e.attributes.hidden,z!==void 0&&(I|=je.Hidden),z!==G&&(le=!0,G=z),V=e.attributes.s,V!==void 0&&(I|=je.S),V!==oe&&(le=!0,oe=V),B=e.attributes.customFormat,B!==void 0&&(I|=je.CustomFormat),B!==ae&&(le=!0,ae=B),H=e.attributes.outlineLevel,H!==void 0&&(I|=je.OutlineLevel),H!==se&&(le=!0,se=H),U=e.attributes.collapsed,U!==void 0&&(I|=je.Collapsed),U!==ce&&(le=!0,ce=U),I!==0)if(F+1!==k||le){let e=R!==void 0&&(R===`1`||R===`true`),t=B!==void 0&&(B===`1`||B===`true`);me=t&&V!==void 0?V:null,t&&me===null&&(me=`0`),P={min:k,max:k,value:{sz:L===void 0?-1:parseFloat(L),csz:e,h:z!==void 0&&(z===`1`||z===`true`),s:me===null?void 0:me===`0`?0:parseInt(me),l:H===void 0||H===`0`?0:parseInt(H),cl:U!==void 0&&(U===`1`||U===`true`)}},N.push(P)}else P.max=k;F=k,le=!1;return}if(r===`sheetData`&&(fe=!0),!de&&r===`sheetData`){de=!0;let e=i.cols,t=e?e.length:0;for(let n=0;!pe&&n<t;n++)e[n].v.s&&(pe=!0)}a?.onOpenTag?.(e)}},_e=e=>{let t=e.name;if(t===`sheetData`&&(fe=!1),!p||t!==`c`&&t!==`f`||(m&&(_=C.get(m)??null),_&&(ee.append(k,A,_),D&&ne.append(k,A)),E!==null&&w.push([E,T?te?`error`:`dynamic`:`fixed`]),p=!1,_=null,m=null,h=null,d=!1,D=!1,E=null,T=!1,te=!1),M){let n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),O)if(t===`is`||t===`v`){let e=c?.onEnd?.();e!=null&&r.pushAt(k,A,``+e)}else t!==`f`&&c?.onCloseTag?.(e);d&&=!1,t===`c`&&(M=null,O=!1);return}if(u)return u=!1,void(ue=null);a?.onCloseTag?.(e)},ve=e=>{let s=e.trim();if(d){switch(j=null,re){case null:case`n`:j=parseFloat(s);break;case`b`:j=s===`1`||s===`true`;break;case`s`:j=s;break;case`e`:if(s===`#VALUE!`){let e=M.attributes.vm;if(e!==void 0){let n=b[parseInt(e)-1];if(t.i.isError(n)){j={t:`e`,v:n.getCode()};break}}}let e=t.i.getBuiltInByLabel(s);e?j={t:`e`,v:e.getCode()}:(j=s,o?.(`Unknown formula error '${s}' in cell ${n.nt.cellToString({colIndex:A,rowIndex:k})}`));break;case`str`:case`inlineStr`:O=!0}j!==null&&r.pushAt(k,A,j)}if(m){if(v===m)_=y;else{if(_=C.get(m)??null,!_){let e=[];g=S(s,k,A,e),_=[g,e,s],C.set(m,_)}v=m,y=_}m=null}if(p){if(x!==null){let e=(e=>{if(e.length<Ce.length||e.slice(0,Ce.length).toUpperCase()!==$)return Te;let t=De(e,Ce.length);if(t===null||e.charCodeAt(t.end)!==41||e.charCodeAt(t.end+1)!==44||e.charCodeAt(e.length-1)!==41)return Te;let n=t.value;return n.toUpperCase()===we?Ee:n.length===0?Te:{kind:`formula`,formula:n}})(s);e.kind!==`none`&&x.push({sheet:i,rowIndex:k,colIndex:A,formula:e.kind===`formula`?e.formula:null})}let e=[];g=S(s,k,A,e),_=[g,e,s]}O?c?.onText?.(e):u||a?.onText?.(s)},K={r:void 0,t:void 0,s:void 0,cm:void 0,vm:void 0},ye={name:`c`,attributes:K,isSelfClosing:!1},q={t:void 0,si:void 0,ref:void 0,ca:void 0},J={name:`f`,attributes:q,isSelfClosing:!1},Y={name:`v`,attributes:{},isSelfClosing:!1},X={r:void 0,s:void 0,ht:void 0,hidden:void 0,collapsed:void 0,customHeight:void 0,customFormat:void 0,outlineLevel:void 0},Z={name:`row`,attributes:X,isSelfClosing:!1},xe=be.NEED_MORE,Q=be.NOT_HANDLED,Se=be.decodeText,Oe=!1,ke=(e,t,n,r)=>{for(;;){let i=0;for(;t<n&&((i=e.charCodeAt(t))===32||i===9||i===10||i===13);)t++;if(t>=n)return xe;if(i===62)return Oe=!1,t+1;if(i===47)return t+1>=n?xe:e.charCodeAt(t+1)===62?(Oe=!0,t+2):Q;let a=t;for(;t<n&&(i=e.charCodeAt(t))!==61;){if(i===62||i===47||i===32||i===9||i===10||i===13)return Q;t++}if(t+1>=n)return xe;let o=t-a,s=e.charCodeAt(t+1);if(s!==34&&s!==39)return Q;let c=t+2,l=c;for(;l<n&&(i=e.charCodeAt(l))!==s;){if(i===38||i<32)return Q;l++}if(l>=n)return xe;t=l+1;let u=e.charCodeAt(a);if(r===2)switch(o){case 1:u===114?X.r=e.slice(c,l):u===115&&(X.s=e.slice(c,l));break;case 2:e.startsWith(`ht`,a)&&(X.ht=e.slice(c,l));break;case 6:e.startsWith(`hidden`,a)&&(X.hidden=e.slice(c,l));break;case 9:e.startsWith(`collapsed`,a)&&(X.collapsed=e.slice(c,l));break;case 12:e.startsWith(`customHeight`,a)?X.customHeight=e.slice(c,l):e.startsWith(`customFormat`,a)?X.customFormat=e.slice(c,l):e.startsWith(`outlineLevel`,a)&&(X.outlineLevel=e.slice(c,l))}else if(r===0)o===1?u===114?K.r=e.slice(c,l):u===116?K.t=e.slice(c,l):u===115&&(K.s=e.slice(c,l)):o===2&&e.charCodeAt(a+1)===109&&(u===99?K.cm=e.slice(c,l):u===118&&(K.vm=e.slice(c,l)));else if(o===1)u===116&&(q.t=e.slice(c,l));else if(o===2){let t=e.charCodeAt(a+1);u===115&&t===105?q.si=e.slice(c,l):u===99&&t===97&&(q.ca=e.slice(c,l))}else o===3&&e.startsWith(`ref`,a)&&(q.ref=e.slice(c,l))}},Ae=(e,t,n)=>e.charCodeAt(t+1)===47&&e.charCodeAt(t+2)===n&&e.charCodeAt(t+3)===62;return{...a,onEnd:()=>{N.length>0&&(i.rows=n.nt.runsToRefs(N,!1));let o=ee.done(Me),s=o.length;if(s>0){let e=Array(s);for(let t=0;t<s;t++){let r=o[t],i=n.nt.rangeToString(r),a=r.value[1];e[t]=[i,n.nt.resolveRelativeToA1(a,r.rowStart,r.colStart)]}i.formulas=e}let c=ne.done(!0),l=c.length;if(l>0){let e=Array(l);for(let t=0;t<l;t++){let r=c[t];e[t]=n.nt.rangeToString(r)}i.volatile=e}w.length>0&&(i.formulaArray=[...w]);let u=f.length;if(u>0){f.sort(e.d.createRangeComparator(t.l.Axis.Column));let r=f[0],a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value,l=[];l.push(r);let d=null;for(let e=1;e<u;e++)d=f[e],c!==d.value||a!==d.colStart||o!==d.colEnd||s+1!==d.rowEnd?(l.push(d),r=d,a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value):(s=d.rowEnd,r.rowEnd=s);let p=l.length,m=Array(p);for(let e=0;e<p;e++){let t=l[e];m[e]=[n.nt.rangeToString(t),t.value]}i.directStyles=m}let d=r.build();d&&(i.data=d.tuples),a?.onEnd?.()},onOpenTag:ge,onCloseTag:_e,onText:ve,elementScanners:[{name:`c`,scan:(e,t,n)=>{if(!u||M!==null)return Q;K.r=K.t=K.s=K.cm=K.vm=void 0;let r=ke(e,t+2,n,0);if(r<0)return r;let i=K.t;if(K.r===void 0||i===`str`||i===`inlineStr`)return Q;let a=!1,o=-1,s=-1,c=-1,l=-1,d=r;if(!Oe)for(q.t=q.si=q.ref=q.ca=void 0;;){let t=e.indexOf(`<`,r);if(t===-1||t+3>=n)return xe;for(let n=r;n<t;n++){let t=e.charCodeAt(n);if(t!==32&&t!==9&&t!==10&&t!==13)return Q}let i=e.charCodeAt(t+1),u=e.charCodeAt(t+2);if(i===47){if(!Ae(e,t,99))return Q;d=t+4;break}if(i===102&&!a&&c===-1&&(u===32||u===62||u===47)){if(a=!0,r=ke(e,t+2,n,1),r<0)return r;if(Oe)continue;let i=e.indexOf(`<`,r);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,102))return Q;o=r,s=i,r=i+4;continue}if(i===118&&u===62&&c===-1){let i=e.indexOf(`<`,t+3);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,118))return Q;c=t+3,l=i,r=i+4;continue}return Q}return ge(ye),a&&(ge(J),s>o&&ve(Se(e.slice(o,s))),_e(J)),c!==-1&&(ge(Y),l>c&&ve(Se(e.slice(c,l))),_e(Y)),_e(ye),d}},{name:`row`,openTag:Z,scan:(e,t,n)=>{if(!fe||u||M!==null)return Q;X.r=X.s=X.ht=X.hidden=X.collapsed=X.customHeight=X.customFormat=X.outlineLevel=void 0;let r=ke(e,t+4,n,2);return r<0?r:Oe||X.r===void 0?Q:(ge(Z),r)}}]}},Fe=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},Ie={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.macroEnabled.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.binary.macroEnabled.main":`workbooks`,"application/vnd.ms-excel.addin.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":`sheets`,"application/vnd.ms-excel.worksheet":`sheets`,"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":`charts`,"application/vnd.ms-excel.chartsheet":`charts`,"application/vnd.ms-excel.macrosheet+xml":`macros`,"application/vnd.ms-excel.macrosheet":`macros`,"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":`dialogs`,"application/vnd.ms-excel.dialogsheet":`dialogs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":`strs`,"application/vnd.ms-excel.sharedStrings":`strs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":`styles`,"application/vnd.ms-excel.styles":`styles`,"application/vnd.openxmlformats-package.core-properties+xml":`coreprops`,"application/vnd.openxmlformats-officedocument.custom-properties+xml":`custprops`,"application/vnd.openxmlformats-officedocument.extended-properties+xml":`extprops`,"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":`comments`,"application/vnd.ms-excel.comments":`comments`,"application/vnd.ms-excel.threadedcomments+xml":`threadedcomments`,"application/vnd.ms-excel.person+xml":`people`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":`metadata`,"application/vnd.ms-excel.sheetMetadata":`metadata`,"application/vnd.ms-excel.externalLink":`links`,"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":`links`,"application/vnd.openxmlformats-officedocument.theme+xml":`themes`},Le=e=>e.startsWith(`/`)?e.slice(1):e,Re=/^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i,ze=e=>typeof e==`string`?e:(e?.runs??[]).map(e=>e.text??``).join(``);exports.readXLSX=async(t,s)=>{let{password:u,onVBA:d,profile:f,calcOnLoad:p=`auto`,createWorkbookOptions:m={},...h}=s??{},g=!!m.origin&&typeof m.origin!=`string`,_=f?new l(typeof f==`function`?f:void 0):null,v=[],y=(e,t,n)=>{v.push([e,t??``,n])},b={onWarning:y},x=s?.progress,S=x?.onProgress?x.onProgress.bind(x):void 0,ee=t.byteLength,C=0,T=0,te=S?e=>{if(C<=0)return;T+=e;let t=Math.min(ee,Math.round(T/C*ee));S(t,ee)}:void 0,E=Promise.resolve().then(()=>require("./DniLHjmREpdi1cFx.cjs")),D=null;try{D=new DOMParser}catch{}let ne=null;try{ne=new XMLSerializer}catch{}let O,k,A,j=null;D||(j=Promise.resolve().then(()=>require("./DLYEQZzAGuSAmJsp.cjs")).then(e=>i.t(e.default,1)));try{let[e,t]=await Promise.all([j,E]);O=new t.DOMTransformer,k=D??new e.DOMParser,A=ne??new e.XMLSerializer}catch(e){throw Error(`Unable to load XLSX parser.`,{cause:e})}let M,re=e=>A.serializeToString(e);try{M=await c.create(t)}catch(t){throw new e.c(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`,{cause:t})}_?.mark(`zip-open`);try{if(!M.has(`[Content_Types].xml`))throw new e.c(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let t=e=>{let t=M.getEntry(e);return t?{content:t}:void 0},i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],metadata:[],people:[],overrides:{},sst:``,style:``,defaults:{}};{let e=(e=>({onOpenTag:t=>{let n=(e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)})(t.name),r=t.attributes;if(n===`Override`){let t=r.ContentType,n=r.PartName;if(!t||!n)return;e.overrides[n.startsWith(`/`)?n.slice(1):n]=t;let i=Ie[t],a=i?e[i]:void 0;Array.isArray(a)&&a.push(n)}else if(n===`Default`){let t=r.Extension,n=r.ContentType;t&&(e.defaults[t.toLowerCase()]=n)}},onEnd:()=>{e.sst=e.strs.length>0?e.strs[0]:``,e.style=e.styles.length>0?e.styles[0]:``},onError:e=>{(e=>{v.push([e,`[Content_Types].xml`])})(`Error parsing content types: ${e?.message??e}`)}}))(i),t=await M.getTextStream(`[Content_Types].xml`);if(!t)throw Error(`Error parsing content types: '[Content_Types].xml'`);try{await w.parseStream(t,e,{xmlns:!1})}catch(e){throw Error(`Error parsing content types: '[Content_Types].xml'`,{cause:e})}g&&await M.getBuffer(`[Content_Types].xml`)}_?.mark(`content-types`);let s=i.sst,c=new Set;for(let e of i.sheets)c.add(Le(e));s&&c.add(Le(s));for(let e of c)C+=M.uncompressedSize(e);if(await M.prefetch(e=>!c.has(e)&&!Re.test(e)),_?.mark(`prefetch-side-parts`),i.workbooks.length===0){let e=o.s(`_rels/.rels`,t,k,O,b);if(e){for(let t of e.values())if(t.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`&&t.target){i.workbooks.push(t.target);break}}}if(i.workbooks.length===0)throw new e.c(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);i.richstructure=[`/xl/richData/rdrichvaluestructure.xml`],i.richdata=[`/xl/richData/rdrichvalue.xml`];let l=m?.resources??new n.R,u=l.beginPersist(),h={},T=new Set,E=new Map;E.set(`richTypes`,[]),E.set(`parseInlineDxf`,e=>{if(!e)return;let t=k.parseFromString(`<dxf xmlns:x14="${a.Z}" xmlns:xm="${a.T}">${e}</dxf>`,`text/xml`)?.documentElement;if(!t)return;let n=O.parseDxf(t,``,b);return Object.keys(n).length>0?n:void 0});let D=[];E.set(`dummyWrapped`,D);let ne=o.d(`metadata`,i,t,k,O,b).entries().next()?.value?.[1]?.metadata;ne&&E.set(`metadata`,ne),E.set(Ae,a.R());let A=new Map,j=[],N=new Set,P=e=>{N.add(Le(e))},F=(e,n=A)=>{let r=e.lastIndexOf(`/`),i=e.substring(0,r+1)+`_rels/`+e.substring(r+1,e.length)+`.rels`,a=n.get(i);return a||(a=o.s(i,t,k,O,G),n.set(i,a)),a},I=(e,r,i,s=A)=>{let c=F(r,s).get(e),d=c?.target;if(!d)return null;if(c.targetMode===`External`){if(!i)return c.target;let e=l.add({source:{external:c.target}});return e.addReference(h),T.add(e),u.toResourceId(e)}let f=r.lastIndexOf(`/`),p=r.substring(0,f+1);d.startsWith(`/`)||(d=p+d),d=o.a(d);let m=O?.getVisitorParamsState().get(`dxfs`),g=s.get(d);if(!g)if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`){let e={};g=e,j.push((async()=>{let t=((e,t,r,i,s,c,l,u)=>{let d=new Se,f=u?.get(`parseInlineDxf`),p=u?.get(Ae),m=e=>p&&e?p.readDetached(e):e,h=new n.ot.TransposedBuilder,g=null;d.registerVisitor({from:`autoFilter`,to:`autoTable`,openTag:e=>{let t=e.getAttribute(`ref`),r=n.nt.fastStringToRange(t);e.getSource().r=r,e.getSource().v={}},closeTag:e=>{let t=e.getSource(),n=t.v,r=n.hiddenButtons;if(Array.isArray(r)){let e=r.length,i=t.r,a=i.colEnd-i.colStart+1;e===0?n.hiddenButtons=!1:e===a&&(n.hiddenButtons=!0)}}}),d.registerVisitor({from:`conditionalFormatting`,to:{},openTag:e=>{let t=e.getParent();t.conditionals||=[];let n=e.getAttribute(`sqref`);n&&=n.trim().split(/\s+/).join(`,`);let r={r:n,conditionals:t.conditionals},i=e.getAttribute(`pivot`,J);i!==null&&(r.pivot=i),e.setSource(r)}}),d.registerVisitor({from:`cfRule`,to:{},openTag:e=>{let t=e.getParent();if(!t?.r)return;let n=e.getSource()??{};t.pivot!==void 0&&(n.pivot=t.pivot),t.conditionals.push({r:t.r,v:null,rule:n}),e.copyToObject(n,`type`,Z),e.copyToObject(n,`priority`,Y),e.copyToObject(n,`stopIfTrue`,J);let r=e.getAttribute(`dxfId`,Y);if(r!==null){let t=i?.get(r);t||=(c?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${e.getPath()}'.`),{}),n.style=t}e.copyToObject(n,`aboveAverage`,J),e.copyToObject(n,`equalAverage`,J),e.copyToObject(n,`stdDev`,Y),e.copyToObject(n,`bottom`,J),e.copyToObject(n,`percent`,J),e.copyToObject(n,`rank`,Y),e.copyToObject(n,`operator`,Z),e.copyToObject(n,`text`,Z),e.copyToObject(n,`timePeriod`,Z)},closeTag:e=>{let t=e.getParent();if(!t?.r)return;let n=t.conditionals[t.conditionals.length-1],r=n?.rule;if(!r)return;let i={},o=a.Q(r,c);o&&(i.condition=o),r.style&&(i.style=r.style),r.scale&&(i.scale=r.scale),r.stopIfTrue&&(i.stopIfTrue=!0),r.pivot&&(i.pivot=!0),n.v=i,n.priority=r.priority,r.x14Id&&(n.x14Id=r.x14Id),delete n.rule}});let _=e=>{let t=e.conditions??[],n=[];for(let e=0;e<t.length;e++){let r=t[e],i={};r.type&&(i.type=r.type),r.value!==void 0&&(i.value=r.value),r.exclusive&&(i.exclusive=!0),n.push(i)}return n};d.registerVisitor({from:`colorScale`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t.colors??[],i=_(t);for(let e=0;e<i.length;e++)i[e].color=r[e];e.getParent().scale={type:n.Xt.ScaleType.ColorScale,stops:i}}}),d.registerVisitor({from:`dataBar`,to:{},openTag:e=>{e.copyTo(`maxLength`,Y),e.copyTo(`minLength`,Y),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.Xt.ScaleType.DataBar,stops:_(t)},i=t.colors?.[0];i&&(r.color=i),t.minLength!==void 0&&(r.minLength=t.minLength),t.maxLength!==void 0&&(r.maxLength=t.maxLength),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.Xt.ScaleType.IconSet,stops:_(t)};t.iconSet!==void 0&&(r.iconSet=t.iconSet),t.reverse!==void 0&&(r.reverse=t.reverse),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`formula`,to:{},text:(e,t)=>{let n=t.getParent(),r=n.formulas;r||(r=[],n.formulas=r),r.push(m(e))}}),d.registerVisitor({from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let r=e.getSource();if(t.conditions.push(r),e.copyTo(`type`,Z),r.type===n.Xt.ColorStopType.Formula){let t=e.getAttribute(`val`);t!=null&&(r.value=m(String(t)))}else e.copyTo(`value`,X,`val`);!1===e.getAttribute(`gte`,J)&&(r.exclusive=!0)}}),d.registerVisitor({from:`color`,to:{},openTag:e=>{let t=e.getParent();t.colors||=[];let n=o.l(t=>e.getAttribute(t));t.colors.push(n)}}),d.registerVisitor({from:`filterColumn`,to:{},openTag:e=>{let t=e.getParent().v,n=parseInt(e.getAttribute(`colId`)),r=e.getSource();r.index=n;let i=t.filter;i||(i={conditions:[]},t.filter=i);let a=i.conditions;if(a||(a=[],i.conditions=a),a.push(r),e.getAttribute(`hiddenButton`,J)&&t){let e=t.hiddenButtons;e||(e=[],t.hiddenButtons=e),e.push(n)}if(e.getAttribute(`showButton`,J)&&t){let e=t.showButtons;e||(e=[],t.showButtons=e),e.push(n)}return r}}),d.registerVisitor({from:`colorFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ct.BuiltInOperatorNames.Color,t.param=r,e.copyToObject(r,`cellColor`),e.copyToObject(r,`styleId`,Y,`dxfId`)}}),d.registerVisitor({from:`iconFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ct.BuiltInOperatorNames.Icon,t.param=r,e.copyToObject(r,`iconId`,Y),e.copyToObject(r,`iconSet`,Z)}}),d.registerVisitor({from:`top10`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ct.BuiltInOperatorNames.TopN,t.param=r,e.copyToObject(r,`filterVal`,X),e.copyToObject(r,`percent`,J),e.copyToObject(r,`top`,J),e.copyToObject(r,`limit`,X,`val`)}}),d.registerVisitor({from:`dynamicFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ct.BuiltInOperatorNames.TimePeriod,t.param=r;let i=e.getAttribute(`type`);Object.values(n.ct.AverageType).includes(i)?(t.operator=n.ct.BuiltInOperatorNames.Average,e.copyToObject(r,`stdDevs`,Y,`val`)):e.copyToObject(r,`anchorDate`,Y,`val`),e.copyToObject(r,`operator`,Z,`type`),e.copyToObject(r,`maxVal`,X,`maxVal`)}}),d.registerVisitor({from:`filters`,to:{},openTag:e=>{let t=e.getParent(),r={};return t.operator=n.ct.BuiltInOperatorNames.InSet,t.param=r,e.copyToObject(r,`blank`,J),e.copyToObject(r,`calendarType`,Z),r}}),d.registerVisitor({from:`filter`,openTag:e=>{let t=e.getParent(),n=t.items;n||(n=[],t.items=n),n.push(e.getAttribute(`val`,Z))}}),d.registerVisitor({from:`dateGroupItem`,to:{},openTag:e=>{let t=e.getParent(),n=t.dateGroups;n||(n=[],t.dateGroups=n),n.push(e.getSource()),e.copyTo(`group`,Z,`dateTimeGrouping`),e.copyTo(`day`,Y),e.copyTo(`hour`,Y),e.copyTo(`minute`,Y),e.copyTo(`month`,Y),e.copyTo(`second`,Y),e.copyTo(`year`,Y)}}),d.registerVisitor({from:`customFilters`,openTag:e=>{let t=e.getParent(),r=e.getAttribute(`and`),i=r===`and`||r===`1`,a=[];return t.operator=i?n.ct.BuiltInOperatorNames.And:n.ct.BuiltInOperatorNames.Or,t.param=a,e.setSource(t),a},closeTag:e=>{let t=e.getSource(),n=t?.param;if(n?.length!==1)return;let r=n[0];t.operator=r.operator,t.param=r.param}}),d.registerVisitor({from:`customFilter`,openTag:e=>{let t,n=e.getParent();Array.isArray(n)?(t={},n.push(t)):t=n;let r=a.st({operator:e.getAttribute(`operator`),val:e.getAttribute(`val`)});r&&(t.operator=r.operator,t.param=r.param)}}),d.registerVisitor({from:`sortState`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;n&&(n.sort={},e.setSource(t))}}),d.registerVisitor({from:`sortCondition`,to:{},openTag:e=>{let t=e.getParent(),r=t.v;if(!r)return;let i=r.sort;if(!i)return;let a=i.sorts;a||(a=[],i.sorts=a);let o=e.getAttribute(`ref`),s=0;if(o){let e=n.nt.fastStringToRange(o,Ne).colStart,r=t.r,i=r.colStart;s=r?e-i:e}let c={};e.copyToObject(c,`sortOn`,Z,`sortBy`),e.copyToObject(c,`dxfId`,Z,`sortBy`),e.copyToObject(c,`iconSet`,Z),e.copyToObject(c,`customList`,Z),c.reverse=e.getAttribute(`descending`,J)??!1;let l={index:s,criteria:c};a.push(l)}});let v=e=>{g=e.getSource(),e.copyTo(`topLeft`,Z,`topLeftCell`);let t=o.t(e.getAttribute(`defaultGridColor`)),n=e.getAttribute(`colorId`);n===null||t||(e.getSource().gridLineColor=`index`+parseFloat(n)),e.copyTo(`showZeros`,J),e.copyTo(`showFormulas`,J),e.copyTo(`zoomScale`,Y),e.copyTo(`showRowHeaders`,J,`showRowColHeaders`),e.copyTo(`showColumnHeaders`,J,`showRowColHeaders`),e.copyTo(`showRowGridlines`,J,`showGridLines`),e.copyTo(`showColumnGridlines`,J,`showGridLines`),e.copyTo(`rightToLeft`,J)};d.registerVisitor({from:`sheetView`,to:`view`,openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`customSheetViews`,to:`customSheetViews`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`customSheetView`,to:[],openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`selection`,to:`selection`,openTag:e=>{if(!g)return;e.copyTo(`cell`,Z,`activeCell`),e.copyTo(`rangeIndex`,Y,`activeCellId`);let t=e.getAttribute(`activeCell`),n=e.getAttribute(`sqref`);n&&n!==t&&(e.getSource().ranges=n.trim().split(/\s+/))}}),d.registerVisitor({from:`pane`,to:null,openTag:e=>{if(g&&e.getAttribute(`state`)===`frozen`){let t={};g.freezePanes=t,e.copyToObject(t,`topLeft`,Z,`topLeftCell`);let r=(g.topLeft?n.nt.fastStringToCell(g.topLeft):void 0)??{colIndex:0,rowIndex:0},i={colIndex:0,rowIndex:0};e.copyToObject(i,`colIndex`,Y,`xSplit`),e.copyToObject(i,`rowIndex`,Y,`ySplit`);let a={colIndex:r.colIndex+i.colIndex,rowIndex:r.rowIndex+i.rowIndex};t.coords=n.nt.cellToString(a)}}}),d.registerVisitor({from:`sheetPr`,transparent:!0,openTag:t=>{let n=t.getAttribute(`codeName`);n&&(e.codeName=n),!1===t.getAttribute(`enableFormatConditionsCalculation`,J)&&(e.conditionalFormatCalculation=!1)}}),d.registerVisitor({from:`tabColor`,to:null,openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(e.tabColor=n)}}),d.registerVisitor({from:`pageSetUpPr`,to:`pageSetUpPr`,openTag:e=>{}}),d.registerVisitor({from:`outlinePr`,to:null,openTag:t=>{let n={};t.copyToObject(n,`summaryBelow`,J),t.copyToObject(n,`summaryRight`,J),t.copyToObject(n,`showOutlineSymbols`,J),t.copyToObject(n,`applyStyles`,J),Object.keys(n).length>0&&(e.outline=n)}}),d.registerVisitor({from:`pageMargins`,to:`pageMargins`,openTag:e=>{e.copyTo(`bottom`,X),e.copyTo(`footer`,X),e.copyTo(`header`,X),e.copyTo(`left`,X),e.copyTo(`right`,X),e.copyTo(`top`,X),e.copyTo(`bottom`,X)}}),d.registerVisitor({from:`pageSetup`,to:`pageSetup`,openTag:e=>{e.copyTo(`blackAndWhite`,J),e.copyTo(`cellComments`),e.copyTo(`copies`,Y),e.copyTo(`draft`,J),e.copyTo(`errors`),e.copyTo(`firstPageNumber`,Y),e.copyTo(`fitToHeight`,Y),e.copyTo(`fitToWidth`,Y),e.copyTo(`horizontalDpi`,Y),e.copyTo(`orientation`),e.copyTo(`pageOrder`),e.copyTo(`paperSize`,Y),e.copyTo(`scale`,Y),e.copyTo(`useFirstPageNumber`,J),e.copyTo(`usePrinterDefaults`,J),e.copyTo(`verticalDpi`,Y)}}),d.registerVisitor({from:`printOptions`,to:`printOptions`,openTag:e=>{e.copyTo(`gridLines`,J),e.copyTo(`gridLinesSet`,J),e.copyTo(`headings`,J),e.copyTo(`horizontalCentered`,J),e.copyTo(`verticalCentered`,J)}}),d.registerVisitor({from:`headerFoot`,to:`headerFoot`,openTag:e=>{}}),d.registerVisitor({from:`mergeCells`,to:`merges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`dataValidations`,to:`validations`,openTag:e=>{e.setSource([])}});let y={from:`dataValidation`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n,rule:{type:e.getAttribute(`type`)??void 0,operator:e.getAttribute(`operator`)??void 0}};!0===e.getAttribute(`showDropDown`,J)&&(n.hideDropdown=!0),e.copyToObject(n,`alert`,Z,`error`),e.copyToObject(n,`alertTitle`,Z,`errorTitle`),e.copyToObject(n,`showAlertMessage`,J,`showErrorMessage`),n.alertStyle=e.getAttribute(`errorStyle`)??`stop`,e.copyToObject(n,`imeMode`),e.copyToObject(n,`prompt`),e.copyToObject(n,`promptTitle`),e.copyToObject(n,`showPromptMessage`,J,`showInputMessage`),e.setSource(r)},closeTag:e=>{let t=e.getSource();if(!t?.rule)return;let n=a.l(t.rule,c);n&&(e.getAttribute(`allowBlank`,J)&&(n.includeBlanks=!0),t.v.condition=n),delete t.rule}};d.registerVisitor(y),d.registerVisitor({from:`formula1`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula1=a.p(m(e),n.type))}}),d.registerVisitor({from:`formula2`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula2=a.p(m(e),n.type))}}),d.registerVisitor({from:`picture`,to:`picture`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.sheet.picture.noRel`});let r=t(n,`resource`);e.getSource().resId=r}});let b={from:`slicer`,to:{},openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A slicer names no cache; it was not imported.`,{onceKey:`xlsx.sheet.slicer.noRel`});let r=t(n)?.slicers,i=e.getParent();i.slicers||={};let a=Object.keys(r);for(let e of a)i.slicers[e]=r[e]}};d.registerVisitor(b);let x=(e,t)=>({from:e,to:{},openTag:e=>{e.setSource(``)},text:(e,t)=>{t.setSource((t.getSource()??``)+e)},closeTag:e=>{t(String(e.getSource()??``),e)}}),S=new Map;S.set(`dataValidations`,{from:`dataValidations`,to:`validations`,openTag:e=>{let t=e.getParent();e.setSource(t.validations??[])},closeTag:e=>{(e.getSource()?.length??0)===0&&e.setSource(void 0)}}),S.set(`dataValidation`,{...y,closeTag:e=>{y.closeTag(e);let t=e.getSource();t&&!t.r&&(e.warn(`x14 dataValidation with no xm:sqref was dropped.`),e.setSource(void 0))}});let ee=e=>({from:e,to:{},openTag:t=>{t.setSource({rule:t.getParent()?.rule,key:e})}});S.set(`formula1`,ee(`formula1`)),S.set(`formula2`,ee(`formula2`)),S.set(`f`,x(`f`,(e,t)=>{let n=t.getParent(),r=n?.rule;r&&(r[n.key]=a.p(m(e),r.type))})),S.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.r=r.split(/\s+/).join(`,`))}));let C=new Map,w=[],T=new Map;T.set(`conditionalFormattings`,{from:`conditionalFormattings`,transparent:!0}),T.set(`conditionalFormatting`,{from:`conditionalFormatting`,to:{},openTag:e=>{e.setSource({rules:[]})},closeTag:e=>{let t=e.getSource(),n=t?.rules??[];for(let e=0;e<n.length;e++){let r=n[e];r.sqref=t.sqref,r.id?C.set(r.id,r):w.push(r)}}}),T.set(`cfRule`,{from:`cfRule`,to:{},openTag:e=>{e.copyTo(`id`,Z),e.copyTo(`type`,Z),e.copyTo(`priority`,Y),e.copyTo(`stopIfTrue`,J),e.copyTo(`operator`,Z),e.copyTo(`text`,Z),e.copyTo(`timePeriod`,Z),e.copyTo(`aboveAverage`,J),e.copyTo(`equalAverage`,J),e.copyTo(`stdDev`,Y),e.copyTo(`bottom`,J),e.copyTo(`percent`,J),e.copyTo(`rank`,Y)},closeTag:e=>{let t=e.getSource();t&&e.getParent()?.rules?.push(t)}}),T.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.sqref=r)})),T.set(`dataBar`,{from:`dataBar`,to:{},openTag:e=>{e.copyTo(`minLength`,Y),e.copyTo(`maxLength`,Y),e.copyTo(`gradient`,J),e.copyTo(`border`,J),e.copyTo(`direction`,Z),e.copyTo(`axisPosition`,Z),e.copyTo(`negativeBarColorSameAsPositive`,J),e.copyTo(`negativeBarBorderColorSameAsPositive`,J)},closeTag:e=>{e.getParent().dataBar=e.getSource()}}),T.set(`iconSet`,{from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`custom`,J),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{e.getParent().iconSet=e.getSource()}});let te=new Map;te.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();if(!n)return;let r=e.trim(),i=Number(r);n.value=r.length>0&&Number.isFinite(i)?i:m(e)})),T.set(`cfvo`,{from:`cfvo`,to:{},scope:()=>te,openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();t.conditions.push(n),e.copyTo(`type`,Z),!1===e.getAttribute(`gte`,J)&&(n.exclusive=!0)}}),T.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();n&&(n.formulas??=[]).push(m(e))})),T.set(`dxf`,{from:`dxf`,to:{},raw:!0,closeTag:e=>{if(!f)return;let t=e.getParent();if(!t)return;let n=f(e.getRawXml()??``);n&&(t.style=n)}});let E=e=>({from:e,to:{},openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(t.getParent()[e]=n)}});T.set(`borderColor`,E(`borderColor`)),T.set(`negativeFillColor`,E(`negativeFillColor`)),T.set(`negativeBorderColor`,E(`negativeBorderColor`)),T.set(`axisColor`,E(`axisColor`)),T.set(`cfIcon`,{from:`cfIcon`,to:{},openTag:e=>{let t=e.getAttribute(`iconSet`),n=e.getAttribute(`iconId`,Y);if(t===null||n===null)return;let r=e.getParent();r.icons||=[],r.icons.push({set:t,id:n})}});let D=new Map;D.set(`id`,x(`id`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.x14Id=r)}));let ne=new Map;ne.set(`slicerList`,{from:`slicerList`,transparent:!0}),ne.set(`slicer`,b);let O=new Map([[a.x(a.V),S],[a.x(a.et),T],[a.x(a.O),T],[a.x(a.A),D],[a.x(a.q),ne],[a.x(a.W),ne]]),k=new Set;d.registerVisitor({from:`extLst`,transparent:!0}),d.registerVisitor({from:`ext`,transparent:!0,scope:e=>{let t=e.getAttribute(`uri`),n=a.x(t),r=O.get(n);if(r)return r;if(!a.P.has(n)&&!k.has(n)){k.add(n);let r=a.I[n];e.warn(r?`Extension content '${r}' (${t}) is not read; it will be lost on resave.`:`Unknown extension content (uri ${t}) is not read; it will be lost on resave.`)}return null}}),d.registerVisitor({from:`mergeCell`,to:[],openTag:e=>{let t=e.getAttribute(`ref`);e.setSource(t)}}),d.registerVisitor({from:`hyperlinks`,to:`hyperlinks`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`hyperlink`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`),r=e.getAttribute(`ref`);if(!r)return void e.warn(`A hyperlink has no ref; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.noRef`});e.setKey(r);let i=n?t(n):``;if(typeof i!=`string`)return void e.warn(`A hyperlink has an invalid address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});i.endsWith(`\\`)&&(i=i.substring(0,i.length-1));let a=e.getAttribute(`location`);if(a&&(i+=`#`+a),!i)return void e.warn(`A hyperlink has no address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});let o,s=e.getAttribute(`tooltip`);o=s?{address:i,screenTip:s}:i,e.setSource({r,v:o})}}),d.registerVisitor({from:`drawing`,to:`movables`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r.movables):e.warn(`A drawing part is missing; its shapes were not imported.`,{onceKey:`xlsx.sheet.drawing.missing`})}}),d.registerVisitor({from:`legacyDrawing`,to:`legacyDrawing`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}}),d.registerVisitor({from:`legacyDrawingHF`,to:`legacyDrawingHF`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}});let A=null,j=!1,M=new Map,re={from:`Fallback`,to:null},N={from:`Choice`,transparent:!0};M.set(`Fallback`,re),M.set(`Choice`,N),M.set(`control`,{from:`control`,transparent:!0,openTag:e=>{let n={},r=parseInt(e.getAttribute(`shapeId`)??``,10);isNaN(r)||(n.shapeId=r);let i=e.getAttribute(`r:id`),a=i?t(i,`part`):null;a&&(n.part=a);let o=e.getAttribute(`name`),s={anchor:{tl:{c:0,r:0,x:0,y:0},br:{c:0,r:0,x:0,y:0}},content:{type:`control`,json:n}};o&&(s.name=o),A={movable:s,control:n}},closeTag:()=>{A&&=(e.movables||=[],e.movables.push(A.movable),null)}}),M.set(`controlPr`,{from:`controlPr`,transparent:!0,raw:!0,openTag:e=>{if(!A)return;let t=e.getFrom().attributes??{},n={};for(let e in t){let r=t[e];n[e]=typeof r==`string`?r:r?.value??``}Object.keys(n).length>0&&(A.control.props=n)},closeTag:e=>{if(!A)return;let t=(e=>{let t=/<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);if(!t)return null;let n=t[2],r=e=>RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1],i=t[1],a=/\bmoveWithCells="(?:1|true)"/.test(i),o=/\bsizeWithCells="(?:1|true)"/.test(i);return{anchor:{tl:ke(r(`from`)),br:ke(r(`to`))},anchorType:a?o?`twoCell`:`oneCell`:`absolute`,rest:(e.slice(0,t.index)+e.slice(t.index+t[0].length)).trim()}})(e.getRawXml()??``);t?(A.movable.anchor=t.anchor,t.anchorType!==`twoCell`&&(A.movable.anchorType=t.anchorType),t.rest&&(A.control.xml=t.rest)):j||(j=!0,e.warn(`A form control has no anchor; it is placed at the top left of the sheet.`))}});let P={from:`controls`,transparent:!0,scope:()=>M};d.registerVisitor(P);let F=new Map([[`Choice`,N],[`Fallback`,re],[`controls`,P]]);d.registerVisitor({from:`AlternateContent`,transparent:!0,scope:()=>F}),d.registerVisitor({from:`tableParts`,to:`tables`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`tablePart`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r):e.warn(`A table part is missing; the table was not imported.`,{onceKey:`xlsx.sheet.table.missing`})}});let I=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.minLength!==void 0&&(e.minLength=t.minLength),t.maxLength!==void 0&&(e.maxLength=t.maxLength),(t.gradient??1)&&(e.gradient=!0),t.border&&t.borderColor&&(e.borderColor=t.borderColor),!t.negativeBarColorSameAsPositive&&t.negativeFillColor&&(e.negativeFillColor=t.negativeFillColor),!(t.negativeBarBorderColorSameAsPositive??1)&&t.negativeBorderColor&&(e.negativeBorderColor=t.negativeBorderColor),t.axisColor&&(e.axisColor=t.axisColor),t.axisPosition!==`middle`&&t.axisPosition!==`none`||(e.axisPosition=t.axisPosition),t.direction!==`leftToRight`&&t.direction!==`rightToLeft`||(e.direction=t.direction)},L=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.iconSet&&t.iconSet!==e.iconSet&&(e.iconSet=t.iconSet),t.icons?.length&&(e.icon=t.icons),t.reverse!==void 0&&(e.reverse=t.reverse),t.showValue!==void 0&&(e.showValue=t.showValue)},R=e=>{if(!e.sqref)return null;let t=e.sqref.split(/\s+/).join(`,`);if(e.type===`iconSet`){if(!e.iconSet)return null;let r={type:n.Xt.ScaleType.IconSet,stops:[]};return L(r,e.iconSet),{r:t,v:{scale:r},priority:e.priority}}let r=a.Q(e,c);if(!r)return null;let i={condition:r};return e.style&&(i.style=e.style),e.stopIfTrue&&(i.stopIfTrue=!0),{r:t,v:i,priority:e.priority}};d.registerVisitor({from:`worksheet`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t?.conditionals;if(r)for(let e=0;e<r.length;e++){let t=r[e],i=t.x14Id;if(!i)continue;delete t.x14Id;let a=C.get(i);if(!a)continue;C.delete(i);let o=t.v?.scale;a.dataBar&&o?.type===n.Xt.ScaleType.DataBar?I(o,a.dataBar):a.iconSet&&o?.type===n.Xt.ScaleType.IconSet&&L(o,a.iconSet)}let i=[...C.values(),...w],a=new Set,o=0;for(let e=0;e<i.length;e++){let n=R(i[e]);n?(r||(r=[],t.conditionals=r),r.push(n)):(a.add(i[e].type??`unknown`),o++)}if(o>0){let e=[...a].map(e=>`'${e}'`).join(`, `);c?.(o===1?`An x14-only conditional formatting rule (type ${e}) is not read and will be lost on resave.`:`${o} x14-only conditional formatting rules (types ${e}) are not read and will be lost on resave.`)}if(r){r.length>1&&r.sort((e,t)=>(e.priority??1/0)-(t.priority??1/0));for(let e=0;e<r.length;e++)delete r[e].priority}}}),d.registerVisitor({from:`customProperties`,to:`customProperties`,openTag:e=>{e.setSource([])},closeTag:e=>{let t=e.getSource();t.length>0&&(e.getParent().customProperties=t)}}),d.registerVisitor({from:`customPr`,to:{},openTag:e=>{let n=e.getParent();e.copyTo(`name`);let r=e.getAttribute(`r:id`);if(!r)return void e.warn(`A custom property names no part; it was not imported.`,{onceKey:`xlsx.sheet.customProperty.noRel`});let i=t(r,`resource`),a=e.getSource();a.resId=i,n.push(a)}}),d.registerVisitor({from:`sheetProtection`,to:`protection`,openTag:e=>{let t=e.getSource();for(let n of a.n){let r=e.hasAttribute(n.attribute)?e.getAttribute(n.attribute):null;t[n.key]=a.u(n,r)}if(t.sheet)return;let n={};e.copyToObject(n,`hash`,Z,`hashValue`),e.copyToObject(n,`algorithm`,Z,`algorithmName`),e.copyToObject(n,`salt`,Z,`saltValue`),e.copyToObject(n,`spinCount`,Y),Object.keys(n).length>0&&(e.getSource().password=n)}}),d.registerVisitor({from:`protectedRanges`,to:`protectedRanges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`protectedRange`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n};e.copyToObject(n,`name`),e.copyToObject(n,`securityDescriptor`);let i={};e.copyToObject(i,`hash`,Z,`hashValue`),e.copyToObject(i,`algorithm`,Z,`algorithmName`),e.copyToObject(i,`salt`,Z,`saltValue`),e.copyToObject(i,`spinCount`,Y),Object.keys(i).length>0&&(n.password=i),e.setSource(r)},closeTag:e=>{let t=e.getSource();t?.r&&t.v.name||e.setSource(void 0)}}),d.registerVisitor({from:`sheetFormatPr`,to:`sheetFormatPr`,openTag:t=>{t.copyToObject(e,`defaultColSize`,X,`defaultColWidth`),t.copyToObject(e,`outlineLevelCol`,Y,`outlineLevelCol`);let n=t.getAttribute(`customHeight`);n!==`1`&&n!==`true`||t.copyToObject(e,`defaultRowSize`,X,`defaultRowHeight`),t.copyToObject(e,`outlineLevelRow`,Y,`outlineLevelRow`)}}),d.registerVisitor({from:`cols`,to:`cols`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`col`,to:[],openTag:e=>{let t=e.getSource(),r=e.getAttribute(`min`),i=e.getAttribute(`max`),a=r===void 0?0:parseInt(r)-1,o=i===void 0?a:parseInt(i)-1;t.r=n.nt.runToString(a,o,!0);let s={};t.v=s,e.copyToObject(s,`sz`,X,`width`),e.copyToObject(s,`csz`,J,`customWidth`),e.copyToObject(s,`h`,J,`hidden`),e.copyToObject(s,`l`,Y,`outlineLevel`),e.copyToObject(s,`s`,Y,`style`)}}),d.registerVisitor({from:`oleObjects`,to:null,openTag:e=>{e.warn(`'OLE Objects' are not supported.`)}});let z=!1,B=!1,V=0,H=``,U=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)};return Pe(h,e,d.createEventHandler(e,s,c),c,l,{onOpenTag:e=>{z=!0;let t=U(e.name);t===`t`||t===`v`?V===0&&(B=!0):t!==`rPh`&&t!==`phoneticPr`||V++},onText:e=>{B&&(H+=e)},onCloseTag:e=>{let t=U(e.name);t===`t`||t===`v`?B=!1:t!==`rPh`&&t!==`phoneticPr`||V>0&&V--},onEnd:()=>{if(!z)return;let e=r(a._(H));return z=!1,B=!1,V=0,H=``,e},onError:e=>{}},u)})(e,(e,t)=>t===`legacyDrawing`?z(e,d):t===`part`?B(e,d):I(e,d,t===`resource`)??null,le,m,()=>{},(e,t,n)=>{y(e,t?`${t} (${d})`:d,n)},void 0,E),r=await M.getTextStream(d,te);if(r)try{await w.parseStream(r,t,{xmlns:!1,lean:!0})}catch(e){throw Error(`Error parsing sheet: '${d}'`,{cause:e})}let i=F(d,s);if(i){R(e,d,i,s);let t=[];i.forEach((e,n)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`)return;let r=B(n,d,e.type,e=>e!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`);if(!r?.xml)return;let i=/<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0]??``,o=parseInt(/\scacheId="(\d+)"/.exec(i)?.[1]??``,10);if(isNaN(o))return void v.push([`Pivot table '${r.name}' names no cache and was dropped.`,d]);let s=/\sname="([^"]*)"/.exec(i)?.[1];t.push({...s?{name:a.H(s)}:{},cacheId:o,part:r})}),t.length>0&&(e.pivotTables=t)}})())}else if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`){let e=o.i(d,t,k,O,G);if(e&&Object.keys(e).length!==0){let t=e,n=t.__bookRelId,r=t.__absoluteUrlRelId;delete t.__bookRelId,delete t.__absoluteUrlRelId;let i=[];F(d,s)?.forEach((e,t)=>{if(e.targetMode===`External`&&e.type&&e.target){let a={type:e.type,target:e.target};t===n?a.role=`book`:t===r&&(a.role=`absoluteUrl`),i.push(a)}}),i.sort((e,t)=>(e.role===`book`?0:1)-(t.role===`book`?0:1)),t.sources=i,P(d),g=t}else g=null}else g=i?o.u(d,t,(e,t)=>{let n=l.add({source:{buffer:e}});return n.addReference(h),T.add(n),u.toResourceId(n)},G):o.i(d,t,k,O,G);return g},L=(e,t)=>{if(!e)return null;let n=F(t,A)?.get(e);if(!n?.target||n.targetMode===`External`)return null;let r=n.target;return r.startsWith(`/`)||(r=t.substring(0,t.lastIndexOf(`/`)+1)+r),o.a(r)},R=(t,r,i,s)=>{let c=[],l=new Map,u=[];i.forEach((e,t)=>{if(e.type!==`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`)return;let n=I(t,r,!1,s)?.comments;if(!n)return;for(let e=0;e<n.length;e++){let t=n[e];if(!t?.v?.id)continue;let{parentId:r,done:i,content:a,...o}=t.v,s={...o,content:ze(a)};r?u.push({parentId:r,json:s}):(i&&(s.done=!0),l.set(s.id,s),c.push({r:t.r,v:s}))}let i=L(t,r);i&&P(i)});for(let e=0;e<u.length;e++){let{parentId:t,json:n}=u[e],r=l.get(t);r&&(r.replies??=[]).push(n)}let d=[];if(i.forEach((t,n)=>{if(t.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`)return;let i=I(n,r,!1,s),a=i?.comments;if(!a)return;let c=i?.authors;for(let t=0;t<a.length;t++){let n=a[t];if(!n?.r)continue;let r=c&&n.v.authorId!==void 0?c[n.v.authorId]:void 0;if(r&&r.startsWith(`tc=`)){if(l.has(o.c(r.substring(3))))continue;r=void 0}let i={id:e.I.uuidV4().toUpperCase(),asNote:!0,content:n.v.content??``},s=r?ie({displayName:r}):void 0;s&&(i.personId=s.id),d.push({r:n.r,v:i})}let u=L(n,r);u&&P(u)}),c.length===0&&d.length===0)return;let f=[...c,...d],p=t.legacyDrawing;if(p?.xml){let{rest:e,notes:r}=a.c(p.xml);if(r.length>0){let i=new Map;for(let e=0;e<r.length;e++){let t=r[e];i.set(n.nt.cellToString({rowIndex:t.row,colIndex:t.col}),t)}for(let e=0;e<f.length;e++){let t=f[e],n=i.get(String(t.r).toUpperCase());n&&(t.v.box={xml:n.xml},i.delete(String(t.r).toUpperCase()))}let o=[];i.forEach(e=>{o.push(e.xml)});let s=a.m(e,o);s?p.xml=s:delete t.legacyDrawing}}t.comments=f},z=(e,n)=>{let r=L(e,n);if(!r)return null;let i=t(Le(r));if(!i)return null;let a={xml:new TextDecoder(`utf-8`).decode(i.content)},o=[];return F(r,A)?.forEach((e,t)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`)return;let n=I(t,r,!0);typeof n==`number`&&o.push({id:t,resId:n})}),o.length>0&&(a.images=o),P(r),a},B=(e,n,r,a,o=new Set)=>{let s=L(e,n);if(!s||o.has(s))return null;let c=r??F(n,A)?.get(e)?.type;if(!c)return null;let l=t(Le(s));if(!l)return null;o.add(s);let u=s.substring(s.lastIndexOf(`/`)+1),d=i.overrides[Le(s)]??i.defaults[u.substring(u.lastIndexOf(`.`)+1).toLowerCase()],f={id:e,type:c,name:u};if(d&&(f.contentType=d),((e,t)=>e?e.endsWith(`+xml`)||e===`application/xml`:/\.(xml|rels|vml)$/i.test(t))(d,u))f.xml=new TextDecoder(`utf-8`).decode(l.content);else{let t=I(e,n,!0);if(typeof t!=`number`)return null;f.resId=t}let p=[];return F(s,A)?.forEach((e,t)=>{if(!e?.type||a&&!a(e.type))return;if(e.targetMode===`External`){let n=I(t,s,!0);typeof n==`number`&&p.push({id:t,type:e.type,resId:n});return}let n=B(t,s,e.type,a,o);n&&p.push(n)}),p.length>0&&(f.parts=p),P(s),f};o.d(`coreprops`,i,t,k,O,b),o.d(`extprops`,i,t,k,O,b);let V=new Map,H=new Map,U=o.d(`people`,i,t,k,O,b),W=null;if(U.size>0){let[e,t]=U.entries().next().value;if(W=t?.persons,P(e),W){let e=W.length;for(let t=0;t<e;t++){let e=W[t];V.set(e.id,e),e.displayName!==void 0&&H.set(e.displayName,e)}}}let ie=t=>{if(!t)return;if(t.id&&V.has(t.id))return V.get(t.id);let n=t.displayName;if(!t.id){if(n){let e=H.get(n);if(e)return e}t.id=e.I.uuidV4()}let r=V.get(t.id);if(r)return r;let i=t;return V.set(t.id,i),n&&H.set(n,i),W||=[],W.push(i),i},G={paramMap:E,getRefs:F,getRef:I,parsedRefs:A,readEmbeddedPart:(e,t)=>B(e,t),addPerson:ie,serializeElement:re,onWarning:y},ae=[];if(s){let e=await M.getTextStream(s,te);if(e){let t=((e,t)=>{let n=!1,r=!1,i=0,o=``;return{onOpenTag:e=>{let t=Fe(e.name);t===`t`?n&&i===0&&(r=!0):t===`si`?(n=!0,o=``,i=0):t!==`rPh`&&t!==`phoneticPr`||i++},onText:e=>{r&&(o+=e)},onCloseTag:e=>{let t=Fe(e.name);t===`t`?r=!1:t===`si`?((e=>{ae.push(e)})(a._(o)),n=!1,o=``):t!==`rPh`&&t!==`phoneticPr`||i>0&&i--},onError:e=>{t?.(`Error parsing shared strings: ${e?.message??e}`)}}})(0,e=>{y(e,s)});try{await w.parseStream(e,t,{xmlns:!1})}catch(e){throw Error(`Error parsing shared strings: '${s}'`,{cause:e})}}}_?.mark(`shared-strings`);let oe=ae.length,se=new Map,ce=oe,le=e=>{let t=se.get(e);if(t!==void 0)return t;let n=ce;return se.set(e,ce++),ae.push(e),n},ue=[];i.slicersCache=ue;let de=M.getNames(),fe=de.length;for(let e=0;e<fe;e++){let t=de[e];t&&t.startsWith(`xl/slicerCache`)&&ue.push(`/${t}`)}let pe=o.d(`slicersCache`,i,t,k,O,G),me=new Map;pe.forEach(e=>{let t=e.name;delete e.name,me.set(t,e)}),E.set(`slicerCaches`,me),o.d(`richstructure`,i,t,k,O,G),o.d(`richdata`,i,t,k,O,G);let he=o.d(`themes`,i,t,k,O,G),ge=null;if(he&&he.entries){let e=he.entries().next();e?.value?.[1]&&(ge=e.value[1])}let _e=new n.Jt(ge),ve=o.d(`styles`,i,t,k,O,G).entries().next()?.value?.[1];ve&&=JSON.parse(e.z.JSONStableStringify(ve));let K=o.d(`workbooks`,i,t,k,O,G);_?.mark(`side-parts-json`),await Promise.all(j);{let e=K.entries().next().value?.[1],t=a.R(e?.names),n=e?.sheets??[];for(let e=0;e<n.length;e++){let r=n[e]?.sheet;r&&a.C(r,t)}let r=e?.names;if(r)for(let e=0;e<r.length;e++){let n=r[e]?.ref;typeof n==`string`&&(r[e].ref=t.readDetached(n))}}S&&C>0&&(S(ee,ee),await new Promise(e=>setTimeout(e,0))),_?.mark(`sheets`);let ye={...K.entries().next().value?.[1],styles:ve,theme:_e.toJSON()};o.n(ye,E.get(o.p)),ye.calc={...ye.calc??{},legacyIntersect:!0},ae.length>0&&(ye.strings=ae),W&&W.length>0&&(ye.people=W);let q=M.getEntry(`xl/vbaProject.bin`);if(q)try{let{VBAProject:e}=await Promise.resolve().then(()=>require("./Dy50BSaRMmRISD2Y.cjs")),t=e.extract(q);if(t){let n=new Map;for(let e of ye.sheets??[]){let t=e?.sheet?.codeName;t&&n.set(t,e.sheet)}for(let r of t.modules){let t={language:`vba`},{header:i,body:a}=e.splitAttributes(r.code);a&&(t.source=a),i&&(t.sourceHeader=i);let o=r.type===`document`?n.get(r.name):void 0;o||r.type!==`document`||(t.scope=`workbook`);let s=o?o.modules??={}:ye.modules??={};s[r.name]||(s[r.name]=t)}d?.(t)}else v.push([`Unable to parse VBA project.`,`xl/vbaProject.bin`])}catch(e){v.push([`Error extracting VBA: ${e?.message??e}`,`xl/vbaProject.bin`])}let be=E.get(`calcId`),xe=be===void 0||!(Number(be)>=191029),Q=m.calcOnLoad??(p===`auto`&&xe?`full`:p),Ce={...m,calcOnLoad:Q,resources:l,json:ye};Ce.disableLoadAutoFit===void 0&&(Ce.disableLoadAutoFit=!1),_?.mark(`json-assembled`);let $=new r.g(Ce);if(_?.mark(`workbook-constructed`),D.length>0&&Q!==`none`){await $.whenCalculationReady();let e=new Map,t=ye.sheets??[],n=$.getSheets().getItems();for(let r=0;r<t.length;r++){let i=t[r]?.sheet,a=n[r];i&&a&&e.set(i,a)}((e,t,n)=>{if(t.length===0)return;let r=e.getCalculation().getFunctions(),i=new Map,a=e=>{let t=i.get(e);return t===void 0&&(t=r.getByName(e)!==null,i.set(e,t)),t},o=new Map;for(let e of t){let t=o.get(e.sheet);t||(t=[],o.set(e.sheet,t)),t.push(e)}for(let[e,t]of o){let r=n.get(e);if(!r)continue;let i=(e,t)=>`${e},${t}`,o=new Set;for(let e of t)e.formula===null&&o.add(i(e.rowIndex,e.colIndex));for(let e of t){if(e.formula===null)continue;let t=Oe(e.formula),n=!0;for(let e of t)if(!a(e)){n=!1;break}if(!n)continue;let s=[],c=[[e.rowIndex,e.colIndex]],l=new Set([i(e.rowIndex,e.colIndex)]);for(;c.length>0;){let[e,t]=c.pop(),n=[[e+1,t],[e-1,t],[e,t+1],[e,t-1]];for(let[e,t]of n){let n=i(e,t);!l.has(n)&&o.has(n)&&(l.add(n),s.push([e,t]),c.push([e,t]))}}for(let[e,t]of s)o.delete(i(e,t)),r.getRange({rowStart:e,colStart:t,rowEnd:e,colEnd:t}).clear();r.getRange({rowStart:e.rowIndex,colStart:e.colIndex,rowEnd:e.rowIndex,colEnd:e.colIndex}).setValue(`=`+e.formula)}}})($,D,e)}if(T.forEach(e=>{e.deleteReference(h)}),u.endPersist(),g){a.F($);let e=new Map,t=0;for(let n of M.getNames()){let r=M.getEntry(n);if(!r)continue;let i=M.getRawEntry(n),a=i?{data:r,uncompressedSize:M.uncompressedSize(n),raw:{compressedData:i.data,compressionMethod:i.compressionMethod,signature:i.signature}}:{data:r,uncompressedSize:M.uncompressedSize(n)};e.set(n,a),t+=r.byteLength}if(t>67108864)v.push([`Source package too large to retain (${t} bytes, limit ${a.nt}); unmodeled parts will be dropped on save.`,`SourcePackage`]);else if(e.size>0){let t=new a.N(e,N);a.L($,t);let n=$.getSheets().getItems(),r=$.getTransactions().addListener({onCommitEnd:e=>{let n=e.getOperation()?.name;n!==`insertCells`&&n!==`deleteCells`||t.markStructuralChange()}}),i=$.addListeners({onSheetsChange:()=>{let e=$.getSheets().getItems();(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&t.markStructuralChange(),n=e}});$.addListeners({onClose:()=>{r(),i(),a.F($)}})}}if(v.length&&x?.onWarning){let e=new Set;for(let t of v){let[n,r,i]=t,a=i??n;e.has(a)||(e.add(a),x.onWarning(n,r))}}return _&&!0===f&&console.table(_.toTable()),$}catch(t){let n=`Unable to parse XLSX.`;throw t instanceof e.K&&(n=`Unable to open XLSX. There are too many rows or columns.`),Error(n,{cause:t})}finally{await M.close().catch(()=>{})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./9Fb0mL7xhqVmVTQp.cjs"),t=require("./DYqvGm5rx1DB53p7.cjs");exports.readSXL=async(n,r)=>{let i=n;(function(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e),n={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(n);for(let e=0;e<r.length;e++){let i=r[e],a=n[i],o=!0;for(let e=0;e<a.length;e++)if(t[e]!==a[e]){o=!1;break}if(o)return i}return!1})(i)&&(i=await t.n(i));let a=new TextDecoder().decode(i),o=JSON.parse(a);return new e.g({...r?.createWorkbookOptions??{},json:o})};
|