@sheetxl/studio-vanilla 0.6.14 → 0.6.16
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/{B-o0-c-dbTUi-97-.cjs → -kFzEiBOrzMIo3-Q.cjs} +1 -1
- package/browser/cjs/{M2yzJ8C1gHTCT0Rr.cjs → 4Wv88KJHUGD8WNH9.cjs} +1 -1
- package/browser/cjs/{CykpdnAPWY8h2XDC.cjs → 711NYaEmqq4TSOn3.cjs} +1 -1
- package/browser/cjs/{BXXayUN6GbjZMtUG.cjs → 7_t8qbH6FkHHTE3s.cjs} +2 -2
- package/browser/cjs/{xTH2hPbJTzqQ3o8s.cjs → B3RQ004Y3OdIvk3c.cjs} +1 -1
- package/browser/cjs/{7C02vj2rvnGBaa2u.cjs → B6maXpjBoW-uc-mx.cjs} +1 -1
- package/browser/cjs/{DoOv2rsuRb0isE7-.cjs → BAAzkkZv-L1yDiQ6.cjs} +2 -2
- package/browser/cjs/{CFEFfcrebmSVV81j.cjs → BJgA8_GvAft4V423.cjs} +1 -1
- package/browser/cjs/{BDKvR6qJ0b0mMgOl.cjs → BK4O29qOmHfia3UP.cjs} +1 -1
- package/browser/cjs/{BHg5wbFsbp9BFHLr.cjs → BNx_H9exPUEgBivk.cjs} +1 -1
- package/browser/cjs/{CTVATAUVUHOQC6-D.cjs → BPmNc_x_tDRGJLYT.cjs} +1 -1
- package/browser/cjs/{8SfPjn1r6EH-Ec8P.cjs → BUQmJXlGVfOeWfuV.cjs} +1 -1
- package/browser/cjs/{BXsOo_zGPni9CDoz.cjs → BaOy0b4aNPynwXnR.cjs} +1 -1
- package/browser/cjs/{DEXKezwdxticIbUl.cjs → BgDoeua-D9XeQqt-.cjs} +1 -1
- package/browser/cjs/{DYuN1TaGRFwJBVoo.cjs → BgFTp9SUFPO8AgTM.cjs} +1 -1
- package/browser/cjs/{WalLBJFCF9kOtc--.cjs → Bl_WM-94JgXGkyNh.cjs} +1 -1
- package/browser/cjs/{DPyAXqpaXmad_Z2_.cjs → BnzmPXxrRi5mvIL4.cjs} +4 -4
- package/browser/cjs/Bob5x3q9l1igZ6Fg.cjs +330 -0
- package/browser/cjs/{BAueAXnjb8aHMWkw.cjs → BwduEWVS8CtiMXf-.cjs} +2 -2
- package/browser/cjs/{Bkt_if01EEz9mqy6.cjs → Bx9MD2EvSkR6gi1e.cjs} +1 -1
- package/browser/cjs/{CZSZbQC3rVVSy006.cjs → BykVjVAhMLanfeVx.cjs} +2 -2
- package/browser/cjs/{tfRgJXaIhNey8E52.cjs → BzYerDs_YEhl3Od6.cjs} +1 -1
- package/browser/cjs/{BzEkOuVAYD3uUzhm.cjs → C-OGhxsNkeumWc2c.cjs} +1 -1
- package/browser/cjs/{Dn6HV2pMA4z-f6d9.cjs → C0IRmuP51CoF8UGz.cjs} +199 -198
- package/browser/cjs/{BTqCPyzYeuT8bfLc.cjs → C94pTCt-3BIGCUhO.cjs} +1 -1
- package/browser/cjs/{fuwfS5z-l8pLUAFD.cjs → CI1CYyIhY5RHRrz8.cjs} +2 -2
- package/browser/cjs/CQBauP8J2uaCgSwi.cjs +6 -0
- package/browser/cjs/{B6tFl-mxUJSiaDpc.cjs → CjUI2STz0JuiCOkV.cjs} +2 -2
- package/browser/cjs/{KCcczK2VO5_K02kd.cjs → CkyD6YJrOB1xnHjG.cjs} +1 -1
- package/browser/cjs/{Dkg9Pg8C-Z-w-2Kt.cjs → CmU8CGDf4Xjb3N6O.cjs} +2 -2
- package/browser/cjs/{CJdoJ4gSRenMUW0c.cjs → Cm_sXa-x01uyrb86.cjs} +1 -1
- package/browser/cjs/{BAlOipQRZ1F1Jq-C.cjs → Cq-dltP1ZZGIThSB.cjs} +4 -4
- package/browser/cjs/{BmcEiimYeB8JzD4S.cjs → CqwZRxyNANbcLEqu.cjs} +1 -1
- package/browser/cjs/{CIbUVdLrWF5bsROO.cjs → D-PavNTFiiazngrP.cjs} +1 -1
- package/browser/cjs/{Bxd5RlUDt5nPy1mf.cjs → D15doeQRi781h0yS.cjs} +1 -1
- package/browser/cjs/{pBbtPJKpHvoAWCpW.cjs → D5sdOzQupVYQZ8X6.cjs} +1 -1
- package/browser/cjs/{B0eDUC4C8cNaAjaY.cjs → DDwTwt6KQoz6bXyu.cjs} +1 -1
- package/browser/cjs/{D9usippGN2CzqfNn.cjs → DHXNEvAYjVGmhN36.cjs} +1 -1
- package/browser/cjs/{BHHFB1wpd6yBop6E.cjs → DQckpnNA64KQJfxz.cjs} +2 -2
- package/browser/cjs/{DXB_aEXXw9ql070d.cjs → DXRq47m-tDHXLZpp.cjs} +1 -1
- package/browser/cjs/{B-nQnLFg0DbZwuCy.cjs → D_IO7ejCpgVRzwue.cjs} +2 -2
- package/browser/cjs/{C6y8lhongw7hRGa0.cjs → Dm2b6HXdhdsNgxS9.cjs} +2 -2
- package/browser/cjs/{CDxcOwm9vchALCxa.cjs → Dqh-z_kTyrJyab9t.cjs} +1 -1
- package/browser/cjs/{pqQjdkrjbje61vEg.cjs → DtIEI2x0BkjHmo4r.cjs} +1 -1
- package/browser/cjs/{CIn_Y8Vbsb3LWdJC.cjs → DtnL0Xx6NP2aLeLz.cjs} +2 -2
- package/browser/cjs/{JxHEM60tdMd1PIsL.cjs → K-Ace_pyUq4gU7pY.cjs} +5 -5
- package/browser/cjs/{BY1Q7JBD3uqkHmGG.cjs → Llg9cDvb6uXKanag.cjs} +1 -1
- package/browser/cjs/{BifVJNm1kcbmvkpk.cjs → OgTycreacq01fAsN.cjs} +2 -2
- package/browser/cjs/{CVS1nEir8s0tplMk.cjs → RpDc1iyUUM37DB0x.cjs} +5 -5
- package/browser/cjs/{C2Pkxh_kCvmcDeYO.cjs → Y88jPu8kZr-bqqiU.cjs} +2 -2
- package/browser/cjs/{C7bfb73H7yKsPH5B.cjs → flNubQeVp2zJ94Ld.cjs} +2 -2
- package/browser/cjs/{DMZEUXw7PKjE8HC8.cjs → hzUSJYH6jc2_dVs5.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CNznGfE4o0uSpnKF.cjs → iyApIr6-H-aeTxZM.cjs} +1 -1
- package/browser/cjs/{CWK28zXLMj_9ZnWn.cjs → pliz83ppR2gRpJwc.cjs} +1 -1
- package/browser/cjs/{CwAtuor9yUGDQXVc.cjs → s-GoeyY3SBjppbEW.cjs} +4 -4
- package/browser/cjs/{DVB1k7_MKPFZ2Ey4.cjs → t-MNbCL2J5ZArSOq.cjs} +2 -2
- package/browser/cjs/{B6l3H31iqFIeJUYh.cjs → wlpFcNkvJnI_FZOE.cjs} +3 -3
- package/{cdn/assets/CfgKKDpt6FJts2yU.js → browser/esm/B14z0JOQFwZju5U2.mjs} +1 -1
- package/browser/esm/{BuNcpaoqEwpCq0am.mjs → B1l9D4ICrI6vKf34.mjs} +1 -1
- package/{cdn/assets/D5cEZwiJG5S3hXbv.js → browser/esm/B2KYixwu2_kIurJw.mjs} +1 -1
- package/{cdn/assets/C_D9dwSoxtoDQP1e.js → browser/esm/B7O3AC40GUSWJpOf.mjs} +1 -1
- package/browser/esm/{BTant6GZPvmtUHqu.mjs → BBmnNOvSdJ3pM7-t.mjs} +4 -4
- package/browser/esm/{BmB60bRhtEHTwAnD.mjs → BJjKo7NhRbs51BuJ.mjs} +1 -1
- package/{cdn/assets/Bcidn1-Q--YRO-rf.js → browser/esm/BMTlX1jCFMW4hCzU.mjs} +1 -1
- package/{cdn/assets/COr8PgJeIXU1f52-.js → browser/esm/BOPN0DV1Zld0t5O7.mjs} +1 -1
- package/browser/esm/{leTzbE5dFSp8WIlz.mjs → BRD22vJSoeQb1Pl8.mjs} +1 -1
- package/browser/esm/{CQZD9S1Fj95g06tu.mjs → BeL9RR7Iy7L5weWM.mjs} +11373 -11290
- package/browser/esm/{DAdUaMV6ZTlAPY1C.mjs → BegYh8ceF2OP9bMv.mjs} +1 -1
- package/browser/esm/{DE-lJw75gwjZJdfz.mjs → BfUAhXfHL0JRNI8-.mjs} +2 -2
- package/browser/esm/{Djy3QxWBcgj3tvs1.mjs → BiIrMVRuLg2IdnQf.mjs} +7 -7
- package/browser/esm/{nxOjd6p0da58cCCU.mjs → BmJZ38tcauRQ6pFV.mjs} +4 -4
- package/{cdn/assets/v-E9VGb0mqV1Yizd.js → browser/esm/BtaOfAef2NxPsef1.mjs} +1 -1
- package/browser/esm/{CfYVZm9mPxuq3afN.mjs → C1oYcOulPTFILJae.mjs} +3 -3
- package/browser/esm/{BUvPihSEYjtMWL0h.mjs → C3jh0s40CvI3oFRs.mjs} +2 -2
- package/browser/esm/{CaTZb5xGUZOVBi2W.mjs → CAnEsQD5KDGA4Hjs.mjs} +1 -1
- package/{cdn/assets/BCN617QdOZand--H.js → browser/esm/CHq_Ckbpl7jR21s4.mjs} +1 -1
- package/browser/esm/{kGODKBW8DqlKq_NN.mjs → CQgmLKfxYZoCNJHI.mjs} +1 -1
- package/{cdn/assets/CnE_CdzxMRj-JRDg.js → browser/esm/CQrpZZ-1CtNxCPc9.mjs} +2 -2
- package/browser/esm/{DSupb275jbQc1ud3.mjs → CWPGozYlq2fnGNx1.mjs} +1 -1
- package/{cdn/assets/DqX6lgOdG0CcvHCd.js → browser/esm/CahOp7GMy8VHEsBw.mjs} +1 -1
- package/browser/esm/{bovrg1tI3DRe3s_C.mjs → CcjlX6Yl0Vkr6A2c.mjs} +1 -1
- package/browser/esm/{BTK_CnRfFkczHTqF.mjs → CdRBcPXrRa2IBe80.mjs} +2 -2
- package/browser/esm/{B67ISEeOcHsdX2Vu.mjs → CgaubTG47opdZhye.mjs} +1 -1
- package/browser/esm/{CrVvbXh6cpMUH_LK.mjs → ChgYfVb4KZMBw7Fs.mjs} +3 -3
- package/browser/esm/{DVPKf8J7MaSpsgc2.mjs → CjIsNav925KuFd5F.mjs} +2 -2
- package/{cdn/assets/DQhR5lI1Hwu07SuL.js → browser/esm/CjfIhEH55YZkavRq.mjs} +1 -1
- package/browser/esm/{C_pmIxbF1r6l9AXf.mjs → CoH6IbDlr-zluALa.mjs} +3 -3
- package/browser/esm/{CIvc04ecHeglBRf-.mjs → CsKS8jl-7MrA_FPI.mjs} +1 -1
- package/browser/esm/{R5mwTR1X0_CxETrm.mjs → Cwck98-l4vk-h3rf.mjs} +2 -2
- package/browser/esm/{D3aGe-V2-tUN9yKx.mjs → D3kVzfZsacwEXWbL.mjs} +45 -45
- package/browser/esm/{CaDo_ZebRygip6Zi.mjs → D482zRNXaVrLuBOY.mjs} +2 -2
- package/{cdn/assets/C3ZjC-r4F47MWgED.js → browser/esm/D9nCbMhExtwht2tT.mjs} +1 -1
- package/browser/esm/{kWkp3SJmW1nTMaXH.mjs → DGZIC3UKLU32ANcZ.mjs} +1 -1
- package/{cdn/assets/Dk8K71wazIQkSDWD.js → browser/esm/DIWp-r3nbNOm_pyE.mjs} +1 -1
- package/browser/esm/{sqsBTYgaxA-Z_ipa.mjs → DNHLNCVrxo46FqvV.mjs} +5 -5
- package/{cdn/assets/D4aC-mCl50AbITFw.js → browser/esm/DNQEKBXgef3WIPff.mjs} +2 -2
- package/browser/esm/{WKL280lT2BOglb0g.mjs → DPvq9--F3ugmge6v.mjs} +199 -198
- package/browser/esm/{DqvqW1GWwsQsTmgU.mjs → DU38hs6YlB_tz72-.mjs} +1 -1
- package/browser/esm/{D-ct1_8rpnzBT6-9.mjs → DZeWR0ED-c0E3Cff.mjs} +1 -1
- package/{cdn/assets/CsTVo15YrCguJQw9.js → browser/esm/Da-Mr0uahMqzgpIA.mjs} +1 -1
- package/browser/esm/{BH6eoEbXh8bcmJ6T.mjs → Dbri0Gen47bGrMIg.mjs} +2 -2
- package/browser/esm/{B_owJTaqeVhiYiEL.mjs → DbuuKeMHVZNtvjYx.mjs} +9 -9
- package/browser/esm/{CvdOMYS_IlXW7ilK.mjs → DcLzZU5v2k4OW38I.mjs} +1 -1
- package/browser/esm/{t9rONuh5NS6BH_LA.mjs → DiVFXL20Rx94Ib_V.mjs} +20 -20
- package/browser/esm/{BXkHLypI1_SQJRSI.mjs → DjMpWb8vN4GP0Kke.mjs} +3 -3
- package/browser/esm/{BXxbX1NrxbZ_wel1.mjs → DjnHcd7owT22pyeb.mjs} +1 -1
- package/{cdn/assets/ZKl04FNZqcSY8J_X.js → browser/esm/JopNokOIkJBN3nxt.mjs} +1 -1
- package/{cdn/assets/DsZqZv86sGrRuqui.js → browser/esm/ODD7USoF0vFi2UIB.mjs} +1 -1
- package/browser/esm/{BzExb0NwPRjHp2HQ.mjs → SAM1hVVFlETdoDiu.mjs} +2 -2
- package/{cdn/assets/CimMyNHmhN6pFQzE.js → browser/esm/WMbhpVavj_NI9JRl.mjs} +1 -1
- package/browser/esm/{PFd2UbEIg85MChuy.mjs → ZmodCJdz7Td5mPAL.mjs} +8 -8
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BANe0VY9hWVdRLVN.mjs → jp6n6MISPKnzMSYJ.mjs} +6 -6
- package/browser/esm/{B_Rl7WDxGXUQptTM.mjs → sBtF8NB1smuyscCK.mjs} +1 -1
- package/browser/esm/{FmGkS9k1UMw1epk_.mjs → xE3yKYtc9iVsM1_p.mjs} +1 -1
- package/{browser/esm/CfgKKDpt6FJts2yU.mjs → cdn/assets/B14z0JOQFwZju5U2.js} +1 -1
- package/cdn/assets/{BuNcpaoqEwpCq0am.js → B1l9D4ICrI6vKf34.js} +1 -1
- package/{browser/esm/D5cEZwiJG5S3hXbv.mjs → cdn/assets/B2KYixwu2_kIurJw.js} +1 -1
- package/cdn/assets/{DiWF2TLCA4SUvVpg.js → B6ai9XPWEvRqL2sY.js} +10 -10
- package/{browser/esm/C_D9dwSoxtoDQP1e.mjs → cdn/assets/B7O3AC40GUSWJpOf.js} +1 -1
- package/cdn/assets/BAmVIxd-X6pt7Ll1.js +22 -0
- package/cdn/assets/{BZQt2zfMgUPNFid-.js → BEY63iYfoXSMMhPr.js} +3 -3
- package/{browser/esm/b7uz6z0OpT3Zdg7e.mjs → cdn/assets/BEjaduQ41HNgCGam.js} +43 -43
- package/{browser/esm/Bcidn1-Q--YRO-rf.mjs → cdn/assets/BMTlX1jCFMW4hCzU.js} +1 -1
- package/{browser/esm/COr8PgJeIXU1f52-.mjs → cdn/assets/BOPN0DV1Zld0t5O7.js} +1 -1
- package/cdn/assets/{leTzbE5dFSp8WIlz.js → BRD22vJSoeQb1Pl8.js} +1 -1
- package/cdn/assets/{BuAQNMTzjXrYEhlq.js → BbZxC7ekWGZfbbSb.js} +8 -8
- package/cdn/assets/{CcEx_Ij_VxqTMQYw.js → BdPo4K8JsrPKD5yA.js} +3 -3
- package/cdn/assets/{DAdUaMV6ZTlAPY1C.js → BegYh8ceF2OP9bMv.js} +1 -1
- package/cdn/assets/{Dpxn7Td3KVVbja22.js → BhdrDDNVAJlH6IvS.js} +4 -4
- package/cdn/assets/{D2GU23Up_viFkHzd.js → BjSLrqS_XiDtmLwJ.js} +2 -2
- package/cdn/assets/{CkVSHnR9Q7lbLTmy.js → BlG7nBYR0GkZsvKf.js} +1 -1
- package/cdn/assets/{wMt9DC2kuOT7AHMT.js → BlbHPTunGfEP9Mlj.js} +2 -2
- package/{browser/esm/v-E9VGb0mqV1Yizd.mjs → cdn/assets/BtaOfAef2NxPsef1.js} +1 -1
- package/cdn/assets/{IzyX3YK-_Le7VBre.js → By6_rIdBFxxlKzWw.js} +2 -2
- package/cdn/assets/{BodoixdPVA_TyFMF.js → ByuI-7H6NubT3kMb.js} +9 -9
- package/cdn/assets/{Cx74UZbIkFy7rmYz.js → C09_BgKMw0utwdfy.js} +3 -3
- package/cdn/assets/{CaTZb5xGUZOVBi2W.js → CAnEsQD5KDGA4Hjs.js} +1 -1
- package/cdn/assets/{Cq1ojnRvda1ATyFV.js → CHYFny88eD9E5_8j.js} +2 -2
- package/{browser/esm/BCN617QdOZand--H.mjs → cdn/assets/CHq_Ckbpl7jR21s4.js} +1 -1
- package/cdn/assets/{P3jJW1mvYmqCAZ59.js → CNUAH1vTDBkqUNob.js} +4 -4
- package/cdn/assets/{e8D9MmdXqlxuS3Wa.js → CNqZjd_FpGIxQbMR.js} +13 -13
- package/cdn/assets/{m5TSRozmmZU6NbCk.js → CO4MX0DR7gDk81Bg.js} +2 -2
- package/cdn/assets/{Dk-8IM98kweAFk9Q.js → COUCdXXHXh4nyAMH.js} +12730 -12647
- package/cdn/assets/{kGODKBW8DqlKq_NN.js → CQgmLKfxYZoCNJHI.js} +1 -1
- package/cdn/assets/{DSupb275jbQc1ud3.js → CWPGozYlq2fnGNx1.js} +1 -1
- package/{browser/esm/DqX6lgOdG0CcvHCd.mjs → cdn/assets/CahOp7GMy8VHEsBw.js} +1 -1
- package/cdn/assets/{bovrg1tI3DRe3s_C.js → CcjlX6Yl0Vkr6A2c.js} +1 -1
- package/cdn/assets/{B67ISEeOcHsdX2Vu.js → CgaubTG47opdZhye.js} +1 -1
- package/cdn/assets/{Bts3U5NpfUZKTs8J.js → CjT3QxlT5JjzaY7K.js} +9 -9
- package/{browser/esm/DQhR5lI1Hwu07SuL.mjs → cdn/assets/CjfIhEH55YZkavRq.js} +1 -1
- package/cdn/assets/{Bg2ElTwZPOILoMnO.js → CoIH4LXlr9wqGAtG.js} +2 -2
- package/cdn/assets/{BtviH8tVZAn9_6A1.js → Copl9KSHVGrrb3id.js} +2 -2
- package/cdn/assets/{CIvc04ecHeglBRf-.js → CsKS8jl-7MrA_FPI.js} +1 -1
- package/cdn/assets/{Bf1UfItvnG6AoN2i.js → Czxu8Ia6lwsnTy6z.js} +12 -12
- package/{browser/esm/C3ZjC-r4F47MWgED.mjs → cdn/assets/D9nCbMhExtwht2tT.js} +1 -1
- package/cdn/assets/{DGaswD2se9M6IrJt.js → DDFH8KhvVyAuXzH4.js} +3 -3
- package/{browser/esm/B5Q1oyqI6inDq7e5.mjs → cdn/assets/DGLbdtMWdeKKoYhD.js} +2 -2
- package/cdn/assets/{kWkp3SJmW1nTMaXH.js → DGZIC3UKLU32ANcZ.js} +1 -1
- package/{browser/esm/Dk8K71wazIQkSDWD.mjs → cdn/assets/DIWp-r3nbNOm_pyE.js} +1 -1
- package/cdn/assets/{BGAFZB7JnIRhQFJw.js → DIzUQJ4iBjOlhAUx.js} +5 -5
- package/cdn/assets/{DqvqW1GWwsQsTmgU.js → DU38hs6YlB_tz72-.js} +1 -1
- package/cdn/assets/{DHPoZ_5GTZKtZIQ5.js → DWJmtFb3z0lRWMGk.js} +199 -198
- package/cdn/assets/{D-ct1_8rpnzBT6-9.js → DZeWR0ED-c0E3Cff.js} +1 -1
- package/{browser/esm/CsTVo15YrCguJQw9.mjs → cdn/assets/Da-Mr0uahMqzgpIA.js} +1 -1
- package/cdn/assets/{CvdOMYS_IlXW7ilK.js → DcLzZU5v2k4OW38I.js} +1 -1
- package/cdn/assets/{B11YdOehgwRxYe-u.js → Ddl-pHqHUXldMdv1.js} +45 -45
- package/cdn/assets/{BXxbX1NrxbZ_wel1.js → DjnHcd7owT22pyeb.js} +1 -1
- package/cdn/assets/{B7oKHW4e7uQY333P.js → DkmLinnJhiwSd-FJ.js} +4 -4
- package/cdn/assets/{DfdGD6e9RBL_003Q.js → DpPvsY5YFYI7N4fF.js} +1 -1
- package/cdn/assets/{xrD5p_W-F6uO_QbC.js → DtON3bF4JQRlPPET.js} +20 -20
- package/cdn/assets/{DH1c2CqaQp6xvSrG.js → GTePNUvTni80s4z4.js} +10 -10
- package/{browser/esm/ZKl04FNZqcSY8J_X.mjs → cdn/assets/JopNokOIkJBN3nxt.js} +1 -1
- package/{browser/esm/DsZqZv86sGrRuqui.mjs → cdn/assets/ODD7USoF0vFi2UIB.js} +1 -1
- package/{browser/esm/CimMyNHmhN6pFQzE.mjs → cdn/assets/WMbhpVavj_NI9JRl.js} +1 -1
- package/cdn/assets/{GQE6bPWm0ipAX9Q_.js → lT8HqiDpcAF_G8hN.js} +19 -19
- package/cdn/assets/{B_Rl7WDxGXUQptTM.js → sBtF8NB1smuyscCK.js} +1 -1
- package/cdn/assets/{CUU6j6zJgJ3l9a6Z.js → ub0MY-AjaPEbuU96.js} +4 -4
- package/cdn/assets/{FmGkS9k1UMw1epk_.js → xE3yKYtc9iVsM1_p.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/BBj0FFgmhiZWvooq.cjs +0 -330
- package/browser/cjs/DU7I39VJk2mnSP05.cjs +0 -6
- package/cdn/assets/Vjo6hdX5Fp3JVIlE.js +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BBj0FFgmhiZWvooq.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>H(a,i));e.reactExports.useEffect(()=>{m(H(a,i))},[a,i]);const y=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.At.Content.Formulas,Values:e.At.Content.Values,Notes:e.At.Content.Notes,Comments:e.At.Content.Comments},W={...Z};delete W.Values;const Y={"By Rows":!0,"By Columns":!1},H=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},$=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),A=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[C,N]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.At.Content.Formulas]},scope:S.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.At.Content.Values&&(u.findOptions.fields=[e.At.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,C,x]);const M=e.T((t,n)=>{if(t.keyCode===e.eo.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),F(t,E?I.current:A.current)):F(t,s?k.current:w.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.At.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.At.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.Mo();return e.jsxRuntimeExports.jsx(e.x6,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:C,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:w,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:k,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:A,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:I,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.C9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.At.Content.Values?e.At.Content.Formulas:o.findOptions.fields?.[0],options:x?W:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=$,exports.ScopeOptions=S,exports.default=$;
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Bob5x3q9l1igZ6Fg.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>H(a,i));e.reactExports.useEffect(()=>{m(H(a,i))},[a,i]);const y=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.Ae.Content.Formulas,Values:e.Ae.Content.Values,Notes:e.Ae.Content.Notes,Comments:e.Ae.Content.Comments},W={...Z};delete W.Values;const Y={"By Rows":!0,"By Columns":!1},H=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},$=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),A=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[C,N]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Ae.Content.Formulas]},scope:S.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Ae.Content.Values&&(u.findOptions.fields=[e.Ae.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,C,x]);const M=e.T((t,n)=>{if(t.keyCode===e.eo.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),F(t,E?I.current:A.current)):F(t,s?k.current:w.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Ae.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Ae.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.Mo();return e.jsxRuntimeExports.jsx(e.x6,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:C,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:w,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:k,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:A,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:I,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.C9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Ae.Content.Values?e.Ae.Content.Formulas:o.findOptions.fields?.[0],options:x?W:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=$,exports.ScopeOptions=S,exports.default=$;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Bob5x3q9l1igZ6Fg.cjs"),m=e.reactExports.memo(u=>{const{title:g,onHide:h,autoFocusSel:j=".range-input input",context:f,notifier:i=e.Bt,command:a,commands:r,...y}=u,[R,l]=e.reactExports.useState(!1),[x,c]=e.reactExports.useState(!1),p=e.reactExports.useRef(null),[v,E]=e.reactExports.useReducer(t=>t+1,0),[b,{width:N}]=e.Mo();e.fo(a);const s=f??a.context(),o=s.table(),[w,S]=e.reactExports.useState(()=>o?s.getNames().getRanges(o.getRange()):null),C=e.reactExports.useMemo(()=>o?.getName()??"",[o]);e.gt(s.table(),{onAnchorCoordsChange(t){S(s.getNames().getRanges(t.getRange()))},onProtectedChange(t){E()}});const T=e.T(t=>{s?.table().setName(t)},[s]),B=e.T(t=>{s?.table().resize(t.at(0))},[s]);let d=null;return s.table()||(d=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.x6,{ref:p,title:g??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:h,onFocus:()=>l(!0),onBlur:t=>{p?.current?.contains(t.relatedTarget)||l(!1)},PaperProps:{elevation:R?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:b,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:s.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:t=>t.spacing(2),paddingRight:t=>t.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.pu,{formName:"name",defaultInput:C,value:o?.getName()??"No table",onChangeInput:T,onValidate:t=>{o&&o.getName().toLowerCase()===t.toLowerCase()||s?.getNames().validateName(t)},disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}}),e.jsxRuntimeExports.jsx(e.uu,{formName:"range",value:w,onChangeInput:B,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginTop:t=>t.spacing(1.5),marginBottom:t=>t.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.Vm,{disabled:o?.isProtected(),styleOptions:o?.getStyleOptions()??null,onStyleOptionsChange:t=>{o.updateStyleOptions(t)},showHeaderRow:o?.getShowHeaders(),onShowHeaderRowChange:t=>{try{o.setShowHeaders(t)}catch(n){i.showError(n)}},showTotalRow:o?.getShowTotals(),onShowTotalRowChange:t=>{try{o.setShowTotals(t)}catch(n){i.showError(n)}},showFilterButton:o?.getFilter()?o.getShowFilterButton():null,onShowFilterButtonChange:t=>{try{o.setShowFilterButton(t)}catch(n){i.showError(n)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:t=>t.spacing(2),marginBottom:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Zp,{table:o,styles:s.styles(),bodyStyle:s.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.G6,{variant:e.yo.Menuitem,command:r.getCommand("convertTableToRange"),commandState:o,icon:e.p2(e.jsxRuntimeExports.jsx(e.l7,{}))}),e.jsxRuntimeExports.jsx(e.G6,{variant:e.yo.Menuitem,commandState:o,command:r.getCommand("deleteTable"),icon:e.p2(e.jsxRuntimeExports.jsx(e.l7,{}))})]})]})]}),d]})})});exports.TableDetailsWindow=m,exports.default=m;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./Bob5x3q9l1igZ6Fg.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=(function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),I()){let f=function(O,L){_(t.transformHeader)&&(O=t.transformHeader(O,L)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;I()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var L=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((A=>{if(M.test(A)&&(A=parseFloat(A),v<A&&A<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(L[y]=L[y]||[],L[y].push(g)):L[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),L}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function I(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,I()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,L,b,y,g)=>{var U,d,S,A;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:L,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(A===void 0||A<D)&&1.99<D&&(d=F,U=tt,A=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
|
|
7
7
|
`)).length&&c[0].length<E[0].length,E.length===1||h)return`
|
|
8
8
|
`;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
|
|
9
9
|
`&&f++;return f>=E.length/2?`\r
|
|
10
10
|
`:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
11
|
`&&i!=="\r"&&i!==`\r
|
|
12
12
|
`&&(i=`
|
|
13
|
-
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,
|
|
14
|
-
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",
|
|
15
|
-
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a})()),pt.exports);const kt=(function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))})({__proto__:null,default:yt.
|
|
13
|
+
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,I=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var L=u.split(i),b=0;b<L.length;b++){if(f=L[b],o+=f.length,b!==L.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],A(f.split(e)),D(),j)return F()}else A(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+I)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+I),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+I,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+I),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function A(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,A(f),h&&D()),F()}function tt(x){o=x,A(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
|
|
14
|
+
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",I=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(I&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(I?p:s[c]).length,f=!1,O=I?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!I&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&I){for(var L=[],b=0;b<E;b++){var y=z?p[b]:b;L.push(s[c][y])}f=L.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=I&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((I,z)=>{for(var h=0;h<z.length;h++)if(-1<I.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
15
|
+
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a})()),pt.exports);const kt=(function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))})({__proto__:null,default:yt.Ig(gt)},[gt]);exports.p=kt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./Bob5x3q9l1igZ6Fg.cjs");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await(async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()})(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.createWorkbookOptions??{},json:g};return new J.sy(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):(function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return(function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
|
|
7
7
|
`;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
|
|
8
8
|
`);return y+=`
|
|
9
9
|
`+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./Bob5x3q9l1igZ6Fg.cjs"),Ke=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ys=new RegExp(`^[${Ke}][-${Ke}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ne=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Kt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Kt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,W=13,Xt=33,ot=10,St=60,Qt=61,H=62,F=63,Jt=93,pe=i=>i===34||i===39,as=[34,39],Ps=[...as,91,H],Es=[...as,St,Jt],Os=[Qt,F,...ns],Is=[...ns,H,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Kt&&i.fail(`xmlns prefix must be bound to ${Kt}.`)}switch(s){case Kt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Kt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ns{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ne,this.nameCheck=ts,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
-
`,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(
|
|
9
|
-
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==
|
|
8
|
+
`,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ps);switch(t){case H:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Es);t!==I&&(this.text+=String.fromCodePoint(t),t===Jt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
|
+
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==H?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Jt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Jt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case H:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Jt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||U(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Xt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===H){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Xt}sXMLDeclName(){const t=this.captureTo(Os);if(t===F)return this.state=Xt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Qt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Qt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=Xt,void this.fail("XML declaration is incomplete.");U(t)||(t!==Qt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=Xt,void this.fail("XML declaration is incomplete.");U(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=Xt,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(U(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Xt}sXMLDeclEnding(){this.getCodeNorm()===H?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case H:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===H?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(ne(t)?(this.unget(),this.state=37):t===H?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Qt?this.state=39:U(t)?this.state=38:t===H?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Qt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===H?this.openTag():ne(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===H?this.openTag():t===47?this.state=35:ne(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===H?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===H?this.closeTag():U(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case H:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Jt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case H:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
10
|
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
-
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Kt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let X=0;X<m.length;X++)if(V==null||(V=m[X](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,X)=>{const q=P(X??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const X=P(V??y,m);X!==void 0&&(b.source[y]=X)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const X=n.get(m);if(c={local:m,visitor:X,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,X&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const X=a.pop()??null;c=a[a.length-1]??null;const q=X?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=X.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.N.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Hs=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./DYuN1TaGRFwJBVoo.cjs")),T=Promise.resolve().then(()=>require("./DU7I39VJk2mnSP05.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./WalLBJFCF9kOtc--.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Xm,m=y.beginPersist(),V={},X=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ae=O=>d.files[O],fe=(O,G)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=G.get(ut);return dt||(dt=((M,be,xe,we,Bt=null)=>{if(!M)return null;const tt=De(M,be,xe,we,Bt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Wt=bt.length;for(let xt=0;xt<Wt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ae,f,P,yt),G.set(ut,dt)),dt},le=(O,G,Y,ut=ht)=>{let dt=fe(G,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=G.lastIndexOf("/"),xe=G.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Wt,xt)=>(Wt==="."?bt.splice(xt,1):Wt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=P?.getVisitorParamsState().get("dxfs");let Bt=ut.get(M);if(!Bt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Bt=tt;const et=async()=>{const bt=((L,Z,Yt,_,Q,z,_t)=>{const h=new Rs,wt=new u.Ht.TransposedBuilder;let $=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Du.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.mo.fastStringToRange(p,is).colStart,pt=u.mo.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const J=e=>{$=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=$.topLeft?u.mo.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.mo.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?Z(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const Dt=e.getAttribute("tooltip");rt=Dt?{address:p,tooltip:Dt}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let At=null;const ms={onOpenTag:e=>{At===null&&(At="")},onText:e=>{At+=e},onEnd:()=>{const e=Yt(At);return At=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,Dt=!1,zt=[],Ut=!1,Et=null,te=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],He=u.mo.normalizeA1ToR1C1,je=u.Zt.createConflatingRanges(),Xe=new Map,ve=[];let ee=null;const Fe=u.Zt.createConflatingRanges();let se,Pt=!1,B=-1,K=-1,gt=null,ie=null;const Se=[];let Ce=null,Be=-2,ft=0,Gt="",Ot="",It="",Vt="",Lt="",Nt="",Rt="",We="",qe="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Mt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done($s);const k=g.length;if(k>0){const H=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.mo.rangeToString(at),Ht=at.value[1],oe=u.mo.resolveRelativeToA1(Ht,at.rowStart,at.colStart);H[N]=[$t,oe]}r.formulas=H}const st=Fe.done(!0),R=st.length;if(R>0){const H=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.mo.rangeToString(at);H[N]=$t}r.volatile=H}if(ve.length>0&&(r.dynamicArray=[...ve]),zt.length>0){zt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const H=[];let N=null,at=-1,$t=-1,Ht=-1,oe=-1,vt=null;const Qe=zt.length;Qe>0&&(N=zt[0],at=N.colStart,$t=N.colEnd,Ht=N.rowEnd,oe=N.value,H.push(N));for(let jt=1;jt<Qe;jt++)vt=zt[jt],oe!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Ht+1!==vt.rowEnd?(H.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Ht=N.rowEnd,oe=N.value):(Ht=vt.rowEnd,N.rowEnd=Ht);let Je=[];for(let jt=0;jt<H.length;jt++){const re=H[jt];Je.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=Je}const it=e.build();if(it){const H=it.tuples;r.data=H}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),se){const R=g.attributes;switch(k){case"v":Dt=!0;break;case"f":switch(R.t??null){case null:case"normal":Ut=!0;break;case"shared":const it=R.si;te=R.ref,Et=it;break;case"array":Ut=!0,te=R.ref,ee=[te,!1];break;case"datatable":Ut=!0,te=R.ref,Ut=!0}R.ca!==void 0&&Fe.append(B,K);break;case"is":return void(Pt=!0)}return void(Pt&&C?.onOpenTag(g))}if(rt){if(k==="c"){se=g;const R=g.attributes.r;K=u.mo.fastStringToCol(R);const it=g.attributes.t;it===void 0?ie=null:(ie=it,ie==="str"&&(Pt=!0));let H=g.attributes.s;H!==void 0&&(H=parseInt(H),Mt&&Mt.value===H&&Mt.colEnd+1===K?Mt.colEnd=K:(Mt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:H},zt.push(Mt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Ot=g.attributes.customHeight,Ot!==void 0&&(ft|=Ft.CustomHeight),Ot!==qe&&(mt=!0,qe=Ot),Gt=g.attributes.ht,Gt!==void 0&&(ft|=Ft.Ht),Gt!==We&&(mt=!0,We=Gt),It=g.attributes.hidden,It!==void 0&&(ft|=Ft.Hidden),It!==_e&&(mt=!0,_e=It),Lt=g.attributes.s,Lt!==void 0&&(ft|=Ft.S),Lt!==Ue&&(mt=!0,Ue=Lt),Vt=g.attributes.customFormat,Vt!==void 0&&(ft|=Ft.CustomFormat),Vt!==ze&&(mt=!0,ze=Vt),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ft.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Rt=g.attributes.collapsed,Rt!==void 0&&(ft|=Ft.Collapsed),Rt!==Ze&&(mt=!0,Ze=Rt),ft!==0)if(Be+1!==B||mt){const it=Ot!==void 0&&(Ot==="1"||Ot==="true"),H=Vt!==void 0&&(Vt==="1"||Vt==="true");Ce={min:B,max:B,sz:it&&Gt!==void 0?parseFloat(Gt):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Lt!==void 0&&Lt!=="0"?parseInt(Lt):0,cs:H,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Rt!==void 0&&(Rt==="1"||Rt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Pt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return Dt&&(Dt=!1),void(k==="c"&&(se=null,Pt=!1))}if(rt)return rt=!1,void(Mt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),Dt){switch(gt=null,ie){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=se.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.mo.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Pt=!0}gt!==null&&e.addValue(B,K,gt)}if(ee&&(ie==="e"&&(ee[1]=!0),ve.push(ee),ee=null),Et)if(Me===Et)nt=$e;else{if(nt=Xe.get(Et),!nt){const k=[];de=He(g,B,K,k),nt=[de,k,g],Xe.set(Et,nt)}Me=Et,$e=nt}if(Ut){const k=[];de=He(g,B,K,k),nt=[de,k,g]}if(nt)return je.append(B,K,nt),nt=null,Ut=!1,Et=null,void(te=null);Pt?C?.onText(g):rt||l?.onText(g)}}})(wt,L,h.createEventHandler(L,()=>{},z),z,ms,_t)})(tt,(L,Z=!1)=>le(L,M,Z)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Wt=ss(M,ae),xt=await(async(L,Z=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./DEXKezwdxticIbUl.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Yt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const _t=Q.subarray(_,Math.min(_+Z,Q.byteLength)),h=Yt.decode(_t,{stream:_+Z<Q.byteLength});z.enqueue(h),_+=_t.length}}).getReader()})(Wt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const qt=fe(M,ut);let kt,Re=new Map;if(qt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let Z;qt.forEach((_,Q)=>{_.type===L&&(kt=le(Q,M,!1,ut)?.comments,kt&&kt.forEach(z=>{Re.set(z.id,z)}))});const Yt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Q)=>{_.type===Yt&&(Z=le(Q,M,!1,ut))}),Z||kt){const _=kt??[],Q=Z?.comments;if(Q){const z=Z?.authors,_t=Q.length;for(let h=0;h<_t;h++){const wt=Q[h];if(!wt)continue;let $=z&&wt.authorId!==void 0?z[wt.authorId]:wt.authorId;if($&&$.startsWith("tc=")&&($=ls($.substring(3)),Re.has($)))continue;let J=null;$&&(J=he.get($)),J||(J=Ve.get($)),J||(J={id:u.Xt.uuidV4(),displayName:$},Ve.set(J.displayName,J),he.set(J.id,J)),$=J?.id??null;const At={id:u.Xt.uuidV4(),personId:$,ref:wt.ref,done:!1,asNote:!0,content:wt.content};_.push(At)}}tt.comments=_}}};Pe.push(et())}else Bt=Y?ss(M,ae,tt=>{const et=y.add({buffer:tt});return et.addReference(V),X.add(et),m.toResourceId(et)},yt):De(M,ae,f,P,yt);return Bt},yt={paramMap:q,getRefs:fe,getRef:le,parsedRefs:ht,onWarning:o,addPerson:O=>null},ce=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)ce.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const G=Oe.get(O);if(G!==void 0)return G;const Y=Ie;return Oe.set(O,Ie++),ce.push(O),Y},he=(Zt("richstructure",d,f,P,yt),Zt("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Zt("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let G=0;G<O;G++){const Y=Ct[G];he.set(Y.id,Y),he.set(Y.displayName,Y)}}const Te=Zt("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.ec(Ne);let ue=Zt("styles",d,f,P,yt).entries().next()?.value[1];ue&&(ue=JSON.parse(u.re(ue)));const ps=Zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:ue,theme:ds.toJSON()};ce.length>0&&(ye.strings=ce),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Wy(gs);return X.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.oe&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DYuN1TaGRFwJBVoo.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.He.Type.General&&(f===u.He.Type.ShortDate?f="m/d/yyyy":f===u.He.Type.MediumDate?f="d-mmm-yy":f===u.He.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.He.Type.ShortTime?f="h:mm":f===u.He.Type.MediumTime?f="h:mm AM/PM":f===u.He.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=Hs,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
11
|
+
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Kt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],P={key:null,source:t};let b=null,d=!1;const E=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let X=0;X<m.length;X++)if(V==null||(V=m[X](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>E(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:E,copyToObject:(y,m,V,X)=>{const q=E(X??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const X=E(V??y,m);X!==void 0&&(b.source[y]=X)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const X=n.get(m);if(c={local:m,visitor:X,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,X&&(b=a.length===0?P:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const X=a.pop()??null;c=a[a.length-1]??null;const q=X?.destination;if(q){w.pop(),b=w[w.length-1]??P;const ht=X.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),P=o.convert(w,i,n);return n?.parsedRefs?.set(i,P),P}catch(x){console.warn(x)}return null},Zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const P=De(w,b=>t.files[b],s,o,n);a.set(w,P)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Pe=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./BgFTp9SUFPO8AgTM.cjs")),T=Promise.resolve().then(()=>require("./CQBauP8J2uaCgSwi.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./Bl_WM-94JgXGkyNh.cjs")).then(d=>d.i));let w=null,P=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],P=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const E=new P.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.xm,m=y.beginPersist(),V={},X=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Ee=[],ae=O=>d.files[O],fe=(O,G)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=G.get(ut);return dt||(dt=((M,be,xe,we,Bt=null)=>{if(!M)return null;const tt=De(M,be,xe,we,Bt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Wt=bt.length;for(let xt=0;xt<Wt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ae,f,E,yt),G.set(ut,dt)),dt},le=(O,G,Y,ut=ht)=>{let dt=fe(G,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=G.lastIndexOf("/"),xe=G.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Wt,xt)=>(Wt==="."?bt.splice(xt,1):Wt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=E?.getVisitorParamsState().get("dxfs");let Bt=ut.get(M);if(!Bt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Bt=tt;const et=async()=>{const bt=((L,Z,Yt,_,Q,z,_t)=>{const h=new Rs,wt=new u.Pe.TransposedBuilder;let $=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Pe(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.id.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.no.fastStringToRange(p,is).colStart,pt=u.no.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const J=e=>{$=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=$.topLeft?u.no.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.no.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Pe(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?Z(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const Dt=e.getAttribute("tooltip");rt=Dt?{address:p,tooltip:Dt}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let At=null;const ms={onOpenTag:e=>{At===null&&(At="")},onText:e=>{At+=e},onEnd:()=>{const e=Yt(At);return At=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,Dt=!1,zt=[],Ut=!1,Pt=null,te=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],je=u.no.normalizeA1ToR1C1,He=u.Zt.createConflatingRanges(),Xe=new Map,ve=[];let ee=null;const Fe=u.Zt.createConflatingRanges();let se,Et=!1,B=-1,K=-1,gt=null,ie=null;const Se=[];let Ce=null,Be=-2,ft=0,Gt="",Ot="",It="",Vt="",Lt="",Nt="",Rt="",We="",qe="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Mt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done($s);const k=g.length;if(k>0){const j=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.no.rangeToString(at),jt=at.value[1],oe=u.no.resolveRelativeToA1(jt,at.rowStart,at.colStart);j[N]=[$t,oe]}r.formulas=j}const st=Fe.done(!0),R=st.length;if(R>0){const j=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.no.rangeToString(at);j[N]=$t}r.volatile=j}if(ve.length>0&&(r.dynamicArray=[...ve]),zt.length>0){zt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const j=[];let N=null,at=-1,$t=-1,jt=-1,oe=-1,vt=null;const Qe=zt.length;Qe>0&&(N=zt[0],at=N.colStart,$t=N.colEnd,jt=N.rowEnd,oe=N.value,j.push(N));for(let Ht=1;Ht<Qe;Ht++)vt=zt[Ht],oe!==vt.value||at!==vt.colStart||$t!==vt.colEnd||jt+1!==vt.rowEnd?(j.push(vt),N=vt,at=N.colStart,$t=N.colEnd,jt=N.rowEnd,oe=N.value):(jt=vt.rowEnd,N.rowEnd=jt);let Je=[];for(let Ht=0;Ht<j.length;Ht++){const re=j[Ht];Je.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=Je}const it=e.build();if(it){const j=it.tuples;r.data=j}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),se){const R=g.attributes;switch(k){case"v":Dt=!0;break;case"f":switch(R.t??null){case null:case"normal":Ut=!0;break;case"shared":const it=R.si;te=R.ref,Pt=it;break;case"array":Ut=!0,te=R.ref,ee=[te,!1];break;case"datatable":Ut=!0,te=R.ref,Ut=!0}R.ca!==void 0&&Fe.append(B,K);break;case"is":return void(Et=!0)}return void(Et&&C?.onOpenTag(g))}if(rt){if(k==="c"){se=g;const R=g.attributes.r;K=u.no.fastStringToCol(R);const it=g.attributes.t;it===void 0?ie=null:(ie=it,ie==="str"&&(Et=!0));let j=g.attributes.s;j!==void 0&&(j=parseInt(j),Mt&&Mt.value===j&&Mt.colEnd+1===K?Mt.colEnd=K:(Mt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:j},zt.push(Mt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Ot=g.attributes.customHeight,Ot!==void 0&&(ft|=Ft.CustomHeight),Ot!==qe&&(mt=!0,qe=Ot),Gt=g.attributes.ht,Gt!==void 0&&(ft|=Ft.Ht),Gt!==We&&(mt=!0,We=Gt),It=g.attributes.hidden,It!==void 0&&(ft|=Ft.Hidden),It!==_e&&(mt=!0,_e=It),Lt=g.attributes.s,Lt!==void 0&&(ft|=Ft.S),Lt!==Ue&&(mt=!0,Ue=Lt),Vt=g.attributes.customFormat,Vt!==void 0&&(ft|=Ft.CustomFormat),Vt!==ze&&(mt=!0,ze=Vt),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ft.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Rt=g.attributes.collapsed,Rt!==void 0&&(ft|=Ft.Collapsed),Rt!==Ze&&(mt=!0,Ze=Rt),ft!==0)if(Be+1!==B||mt){const it=Ot!==void 0&&(Ot==="1"||Ot==="true"),j=Vt!==void 0&&(Vt==="1"||Vt==="true");Ce={min:B,max:B,sz:it&&Gt!==void 0?parseFloat(Gt):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Lt!==void 0&&Lt!=="0"?parseInt(Lt):0,cs:j,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Rt!==void 0&&(Rt==="1"||Rt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Et)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return Dt&&(Dt=!1),void(k==="c"&&(se=null,Et=!1))}if(rt)return rt=!1,void(Mt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),Dt){switch(gt=null,ie){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=se.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.no.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Et=!0}gt!==null&&e.addValue(B,K,gt)}if(ee&&(ie==="e"&&(ee[1]=!0),ve.push(ee),ee=null),Pt)if(Me===Pt)nt=$e;else{if(nt=Xe.get(Pt),!nt){const k=[];de=je(g,B,K,k),nt=[de,k,g],Xe.set(Pt,nt)}Me=Pt,$e=nt}if(Ut){const k=[];de=je(g,B,K,k),nt=[de,k,g]}if(nt)return He.append(B,K,nt),nt=null,Ut=!1,Pt=null,void(te=null);Et?C?.onText(g):rt||l?.onText(g)}}})(wt,L,h.createEventHandler(L,()=>{},z),z,ms,_t)})(tt,(L,Z=!1)=>le(L,M,Z)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Wt=ss(M,ae),xt=await(async(L,Z=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./BgDoeua-D9XeQqt-.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Yt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const _t=Q.subarray(_,Math.min(_+Z,Q.byteLength)),h=Yt.decode(_t,{stream:_+Z<Q.byteLength});z.enqueue(h),_+=_t.length}}).getReader()})(Wt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const qt=fe(M,ut);let kt,Re=new Map;if(qt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let Z;qt.forEach((_,Q)=>{_.type===L&&(kt=le(Q,M,!1,ut)?.comments,kt&&kt.forEach(z=>{Re.set(z.id,z)}))});const Yt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Q)=>{_.type===Yt&&(Z=le(Q,M,!1,ut))}),Z||kt){const _=kt??[],Q=Z?.comments;if(Q){const z=Z?.authors,_t=Q.length;for(let h=0;h<_t;h++){const wt=Q[h];if(!wt)continue;let $=z&&wt.authorId!==void 0?z[wt.authorId]:wt.authorId;if($&&$.startsWith("tc=")&&($=ls($.substring(3)),Re.has($)))continue;let J=null;$&&(J=he.get($)),J||(J=Ve.get($)),J||(J={id:u.Xt.uuidV4(),displayName:$},Ve.set(J.displayName,J),he.set(J.id,J)),$=J?.id??null;const At={id:u.Xt.uuidV4(),personId:$,ref:wt.ref,done:!1,asNote:!0,content:wt.content};_.push(At)}}tt.comments=_}}};Ee.push(et())}else Bt=Y?ss(M,ae,tt=>{const et=y.add({buffer:tt});return et.addReference(V),X.add(et),m.toResourceId(et)},yt):De(M,ae,f,E,yt);return Bt},yt={paramMap:q,getRefs:fe,getRef:le,parsedRefs:ht,onWarning:o,addPerson:O=>null},ce=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)ce.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const G=Oe.get(O);if(G!==void 0)return G;const Y=Ie;return Oe.set(O,Ie++),ce.push(O),Y},he=(Zt("richstructure",d,f,E,yt),Zt("richdata",d,f,E,yt),new Map),Ve=new Map,Le=Zt("people",d,f,E);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let G=0;G<O;G++){const Y=Ct[G];he.set(Y.id,Y),he.set(Y.displayName,Y)}}const Te=Zt("themes",d,f,E,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.Ml(Ne);let ue=Zt("styles",d,f,E,yt).entries().next()?.value[1];ue&&(ue=JSON.parse(u.re(ue)));const ps=Zt("workbooks",d,f,E,yt);await Promise.all(Ee);const ye={...ps.entries().next().value[1],styles:ue,theme:ds.toJSON()};ce.length>0&&(ye.strings=ce),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.sy(gs);return X.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let E="Unable to parse XLSX.";throw d instanceof u.oe&&(E="Unable to open XLSX. There are too many rows or columns."),new Error(E,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./BgFTp9SUFPO8AgTM.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((P,b)=>{const d={t:"z"},E=b.getCell().getStyle();if(!E.isNormal()){let f=E.getNumberFormat();f!==u.Dt.Type.General&&(f===u.Dt.Type.ShortDate?f="m/d/yyyy":f===u.Dt.Type.MediumDate?f="d-mmm-yy":f===u.Dt.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Dt.Type.ShortTime?f="h:mm":f===u.Dt.Type.MediumTime?f="h:mm AM/PM":f===u.Dt.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(P!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=P;break;case u.M.String:d.t="s",d.v=P;break;case u.M.Boolean:d.t="b",d.v=P;break;case u.M.Error:d.t="e",d.v=P.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const P=[];T["!merges"]=P;for(let b=0;b<S.merges.length;b++)P.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const P=[];T["!cols"]=P;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let E=0;E<b.length;E++){const f=b[E];for(let m=P.length;m<=f.min-1;m++)P.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)P.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Pe,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Bob5x3q9l1igZ6Fg.cjs"),w=["Ok","Cancel"],j=e.reactExports.memo(E=>{const{initialValue:T,context:x,onOption:m,onValidateOption:p,onInputOption:d,onDone:l,options:g=w,defaultOption:r=g?.[0],cancelOption:i="Cancel",sx:b,...v}=E,[o,y]=e.reactExports.useState(T),[C,O]=e.reactExports.useState(!1),u=e.reactExports.useCallback(async(t,a)=>!0,[]),c=e.T(async t=>{d?.(o,t),m?.(t,t===i,t===r),l?.()},[o,d,l,m,i,r]),k=e.T(async t=>{t.keyCode===e.eo.Enter&&await u?.(o,null)!==!1&&c(r)},[o,c]),D=e.T(t=>{y(t.target.value),u?.(t.target.value,null)},[p]),R=e.T(async t=>{let a=await Promise.resolve(p?.(t));try{a!==!1&&(a=await Promise.resolve(u?.(o,t))??!0)}catch{}return a??!0},[p]),[h,f]=e.reactExports.useState(e.Dt.Styles.lookupStyle(o).formatType??e.Dt.Type.Custom);e.reactExports.useEffect(()=>{f(e.Dt.Styles.lookupStyle(o).formatType??e.Dt.Type.Custom)},[o]);const S=e.reactExports.useMemo(()=>{const t=e.Dt.Styles.lookupPrimary(),a=n=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:n,children:n},n),s=Object.keys(t).map(n=>a(t[n].formatType));return s.push(a(e.Dt.Type.Custom)),s},[]),F=e.reactExports.useCallback(t=>{const a=t.target.value;f(a);const s=e.Dt.Styles.lookupDefault(a);s&&y(s)},[]),P=e.reactExports.useMemo(()=>{const t=x();return t.createTemporaryCell({value:t.getValue()??12345,style:{numberFormat:o}})},[h,o,x]);return e.jsxRuntimeExports.jsx(e.k3,{title:"Number Format",options:g,onDone:l,onOption:t=>c(t),onValidateOption:R,defaultOption:r,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"580px",...b},...v,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:"Category"}),e.jsxRuntimeExports.jsx(e.Select,{value:h,label:"Category",onChange:F,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},children:S})]}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Code",onFocus:t=>{C||t.target?.select(),O(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:D,onKeyDown:k,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsxs(e.Box,{children:[e.jsxRuntimeExports.jsx(e.Typography,{variant:"caption",component:"div",sx:{paddingLeft:t=>t.spacing(2)},children:"Preview"}),e.jsxRuntimeExports.jsx(e.Typography,{variant:"body2",component:"div",sx:{borderRadius:t=>`${t.shape.borderRadius}px`,padding:t=>t.spacing(1),border:t=>`1px solid ${t.palette.grey[400]}`},children:P.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=j,exports.default=j;
|