@sheetxl/studio-vanilla 0.7.19 → 0.7.21
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/{DRVFzMhcQXKbpKm7.cjs → 6-vJOr7Q28gyS483.cjs} +2 -2
- package/browser/cjs/{sgLOri9jDZrGC3lo.cjs → 97jt2JXgyNPl7Mtt.cjs} +1 -1
- package/browser/cjs/{Cmbk7RIr3oJ8_crB.cjs → AcaOLiUNlyIuhJJ6.cjs} +1 -1
- package/browser/cjs/{DJ7uFtZBeUszjiLC.cjs → BDErSmCb8DIXLRwh.cjs} +1 -1
- package/browser/cjs/{BJuDAGGLWB2yeOFQ.cjs → BEUbpk4AljnzeEZu.cjs} +1 -1
- package/browser/cjs/{DxKSTB52bepxFYOp.cjs → BLiI50zkGELG61E3.cjs} +1 -1
- package/browser/cjs/{Ck7kT3K8178HStPr.cjs → BOyje3Q70GAB5ARH.cjs} +19 -19
- package/browser/cjs/BTb7NFxLYXig6VK-.cjs +327 -0
- package/browser/cjs/{dufuxo2tie8vlSOn.cjs → Bai88-Sb1JMwJZxx.cjs} +1 -1
- package/browser/cjs/BbeQO7zyILXGyFPt.cjs +6 -0
- package/browser/cjs/{DjBTSnWMmc_2AVQB.cjs → Bdf95Imu-qLUe6b1.cjs} +2 -2
- package/browser/cjs/{WTVrAt5KZ4GRSZea.cjs → Bfg0ZfAfPLLoL95E.cjs} +1 -1
- package/browser/cjs/{DxYC9TawNFEEcLKr.cjs → BlV9Yx3ZFFZkpIqA.cjs} +6 -6
- package/browser/cjs/{CeZTEpALgbyMb2Zl.cjs → Bonegnp0I4BgzBlE.cjs} +2 -2
- package/browser/cjs/{CADzueR-wE3wLlbX.cjs → BrOEeOfcxZrMg4eQ.cjs} +1 -1
- package/browser/cjs/{DQQpQX6GqGFZEnCJ.cjs → BxIyKkpK22SVErHN.cjs} +1 -1
- package/browser/cjs/{jCI_40ihd3wtnnNj.cjs → ByWmzz4XYnBBLpTQ.cjs} +2 -2
- package/browser/cjs/{DWoGF8C_C7EdaCNx.cjs → Bzedo5wSGgXxeqny.cjs} +2 -2
- package/browser/cjs/{8GtVZ0BXzEqDySKa.cjs → C6S-f2VWTy_7_wpC.cjs} +1 -1
- package/browser/cjs/{wgVrsjCw5o1VkBiI.cjs → C8bNFncZgt3sY1nV.cjs} +1 -1
- package/browser/cjs/{QxDDrOjt_hMD6DtL.cjs → C8kLkPSa7V_EZDVI.cjs} +1 -1
- package/browser/cjs/{D1I1a4lhD7mIEeFT.cjs → CAPVUAfIRWYTSl-R.cjs} +1 -1
- package/browser/cjs/CEzDe8lKYA-cAXWM.cjs +11 -0
- package/browser/cjs/{BtnAFMq0FY6QcR9q.cjs → CIzozNiy51noyx1l.cjs} +1 -1
- package/browser/cjs/{BlLQA3N-dVogR5AL.cjs → CRU3HIw_0ucOdCZP.cjs} +4 -4
- package/browser/cjs/{B8OfgzVKDYm2gwv2.cjs → CTz-NfTn9ZVOtN4i.cjs} +2 -2
- package/browser/cjs/{CuT8iDL2TswRLUjr.cjs → CUZawO_WFunopkE1.cjs} +1 -1
- package/browser/cjs/{By09RPB6-Zs7cCC8.cjs → CaODCLchpXyJRQzM.cjs} +1 -1
- package/browser/cjs/{sBolZJI4xHg2O5JO.cjs → CbqD-HCikI1X_r9e.cjs} +1 -1
- package/browser/cjs/{6G3wZkFD7xZzSZ54.cjs → CfR9YPEANKuvTdxN.cjs} +1 -1
- package/browser/cjs/{xA6O-vgZXdOuV_HR.cjs → CipmwWwUlaocheHw.cjs} +1 -1
- package/browser/cjs/{DwLb1jP6dznc2mZ0.cjs → CkA0Qjb5oCDzMqvt.cjs} +2 -2
- package/browser/cjs/{BpfpP1auSfKYKi3y.cjs → Cpp4lHX4OTpOnmUg.cjs} +8 -8
- package/browser/cjs/{DMC4eifs4iwfHs44.cjs → CrlzYXw3MHGD4_-q.cjs} +2 -2
- package/browser/cjs/{BZyCcU37CRRUujVa.cjs → CzAgQQK8QvyS6_TA.cjs} +1 -1
- package/browser/cjs/{Dgc5q8UlfJR_yG-D.cjs → D1XFFsr5xtC70ydy.cjs} +1 -1
- package/browser/cjs/{DAV0XTQLfkITQOWv.cjs → DG30v0uDwwizwD2r.cjs} +1 -1
- package/browser/cjs/{IINJgiLeuIbuioD5.cjs → DGRO7tn2MFWdNQsO.cjs} +1 -1
- package/browser/cjs/{wbNq_okaMH-3Il1R.cjs → DJFIFH0FbmmkZiCR.cjs} +1 -1
- package/browser/cjs/{CDnd06N_hxKvkkq-.cjs → DTUhB6vlRSty_nEf.cjs} +1 -1
- package/browser/cjs/{pfYzABL5F_j4WxXE.cjs → DavL30GjAQCawLMH.cjs} +2 -2
- package/browser/cjs/{diRdUGh06Skr8P66.cjs → DdSaBJNzCfJpCeVA.cjs} +2 -2
- package/browser/cjs/{CgaWa15NfhIQZXWf.cjs → DhvPc6q6NqMbAEvF.cjs} +2 -2
- package/browser/cjs/{BOdBlrTync7JSM9V.cjs → Doohr9PtvoUazXx3.cjs} +2 -2
- package/browser/cjs/{AUq5HkyXu5Li7hmX.cjs → DpNQUAG-TvQDBKoa.cjs} +2 -2
- package/browser/cjs/{DHitw_grB793KQEL.cjs → DrTZWF9aIF_bMlaJ.cjs} +1 -1
- package/browser/cjs/{Cn0DhbMbL__w-fzz.cjs → DyCcBWCnb27xwGeG.cjs} +2 -2
- package/browser/cjs/{CPbZWiQMVudU1PmI.cjs → Dzu6uLKaNk1sgEsK.cjs} +1 -1
- package/browser/cjs/FQg6n4i2NjLOhptV.cjs +12 -0
- package/browser/cjs/{BmWKngDPUtGx2oyg.cjs → JXd5-4lH2t50MwgC.cjs} +1 -1
- package/browser/cjs/{C9gGCv5W6jo9lenL.cjs → KLTaZshw3kdfQByJ.cjs} +4 -4
- package/browser/cjs/{C4TAC3X7Fr4jTe35.cjs → MpPjEWu-1oO7TTLJ.cjs} +1 -1
- package/browser/cjs/{CXPURayE9T5c1xyI.cjs → TDzW9D6o0zP8plyu.cjs} +3 -3
- package/browser/cjs/{C4EyjRvmNPSYfzrk.cjs → XqyRKqYt_vtON2XQ.cjs} +6 -6
- package/browser/cjs/{DM-Mq1eShkzQbF2P.cjs → _AtktFOL5ZmIoo3x.cjs} +2 -2
- package/browser/cjs/{DMAGeMFYLhrKvYq0.cjs → eqUnAwibTeTANx3J.cjs} +1 -1
- package/browser/cjs/{DwleRZYf6uvRQcLl.cjs → iSvsTAjxNcOe4nfr.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DLPMsc0csv1wYnSH.cjs → pyrSah1S03Pjcgjz.cjs} +1 -1
- package/{cdn/assets/CI-oHEkHOo3xFtoH.js → browser/esm/0Y5gefudV72yvrqS.mjs} +1 -1
- package/browser/esm/{6TSgBZHjfUk28lWJ.mjs → 1ksOtOUVUX4KLQ9u.mjs} +40 -40
- package/{cdn/assets/Dmfr2PKo4XMQUec_.js → browser/esm/6irz7V0AEik-oFdR.mjs} +1 -1
- package/browser/esm/{J-isbDj53wmwpAy-.mjs → 8MJ4FtEQ38pjfWty.mjs} +1 -1
- package/{cdn/assets/D7Z1zdw-RLVN-3Ls.js → browser/esm/AMVCY6d-OktdfOQE.mjs} +1 -1
- package/browser/esm/{D4ij20XhEjUYIZPu.mjs → B4jVhMsVA-Mmw9qH.mjs} +1 -1
- package/browser/esm/{DleO8qAx2LgVFtsk.mjs → B8QLSA97cr_AP7r9.mjs} +1 -1
- package/browser/esm/{D5--2_VUyOrMtmcB.mjs → B9wzNp0HXrPxB3mR.mjs} +13 -13
- package/browser/esm/{BZ9u0I2KrR8iX95X.mjs → BBdUME9WGIBoo1ny.mjs} +1 -1
- package/browser/esm/{CTHHoNZxuqDqb7_d.mjs → BBrfl5Nlrf2w6aQW.mjs} +17 -17
- package/browser/esm/{TV6DBYoKaf9hRfQ7.mjs → BIz59j9Xq7ky1AL-.mjs} +2 -2
- package/browser/esm/{1ggFE3isqO2V-CIX.mjs → BR5hyjZ5Os742V_v.mjs} +2 -2
- package/browser/esm/{oArxBwfS8YjRFtCD.mjs → BRqFp2pl8HikXTFt.mjs} +25 -25
- package/browser/esm/{StmZcJM9ToxqDuz5.mjs → BUPRdtMv_fXp0FDY.mjs} +9 -9
- package/browser/esm/{a3frdoXMJG4a-QQP.mjs → BWGSTS25S1XWOcqu.mjs} +12 -12
- package/browser/esm/{Bug-PVDnrmc1QMPE.mjs → BXR7TnsuCEpho1AU.mjs} +2 -2
- package/browser/esm/{BFTIF9N4iDUtv0cL.mjs → BdQCRxN2rixUHxOl.mjs} +1 -1
- package/browser/esm/{B47w7PUveixXKjV4.mjs → BdSlSLWrpvc4_G6J.mjs} +1 -1
- package/browser/esm/{BcqXlf4BN5a-yreW.mjs → Bdd-VDF9hcSuHmH5.mjs} +1 -1
- package/{cdn/assets/BcWyKhPi9t85pwd7.js → browser/esm/BfAp_QcJuhDULyD9.mjs} +1 -1
- package/{cdn/assets/BiDvReQjtqGsrEcG.js → browser/esm/BgELNRooJzC8YlDI.mjs} +1 -1
- package/{cdn/assets/DYN0490BjV0r4F44.js → browser/esm/Bmv_Ya5-UmS_-HS3.mjs} +1 -1
- package/browser/esm/{BrCiF7ljEOZ0j6mo.mjs → BrNBOYOb6FQm6NDt.mjs} +1 -1
- package/{cdn/assets/BB41DCywf-4x6Wa5.js → browser/esm/ByuHrhH0nFMCN572.mjs} +1 -1
- package/browser/esm/{BRk-4nWwNObq2XBH.mjs → C8sYGCGQem4v9TwQ.mjs} +2 -2
- package/{cdn/assets/CP0E_WsGdXVqPokU.js → browser/esm/C9ObN98JqT5tLS5g.mjs} +1 -1
- package/browser/esm/{BU5xb3-gVi-Z8bxG.mjs → CUqbqz2samKfHOoe.mjs} +9 -9
- package/browser/esm/{CLACT9f5pxngZ9fd.mjs → CdZfyBeXLtHUAnSL.mjs} +1 -1
- package/browser/esm/{CfFbWTa-L5WMWTCO.mjs → CmsP4fA9ozarTWvD.mjs} +1 -1
- package/browser/esm/{DwJJCEZYO9uHPhrW.mjs → CpzwyPfeoLaA13rc.mjs} +9 -9
- package/browser/esm/{BY7XJvgJiR8FIIGA.mjs → Cqvfh689dGMncbPU.mjs} +3 -4
- package/browser/esm/{D5A5fnXYvAUdPRaT.mjs → Cvm_VLcMKFBDg7cI.mjs} +1 -1
- package/browser/esm/{DRn3C3MLnZ-KMH4g.mjs → CvoGYY1fWczsqjxx.mjs} +1 -1
- package/{cdn/assets/Bwjgq8hdAFOoPahG.js → browser/esm/D-sKAXoVNI9Wl3Gu.mjs} +1 -1
- package/browser/esm/{iHsQFFNfHlNFaOGy.mjs → D1ubbhTM0PPYk_4g.mjs} +15 -15
- package/browser/esm/{zXHgV5kkdvNl3ho-.mjs → D1ygqUdAm6vV2Wu1.mjs} +19 -19
- package/browser/esm/D2W2MeIZqi1a78Wo.mjs +46 -0
- package/{cdn/assets/BOQa4qYE5yX3-RWz.js → browser/esm/DAgf08hha8x4NkiW.mjs} +1 -1
- package/{cdn/assets/BXFpZZjLpDAYfij9.js → browser/esm/DF3364yTjdOhE032.mjs} +1 -1
- package/browser/esm/{CaqdUKlNnd7dmszx.mjs → DGIpt4xqgo5wnXvI.mjs} +3 -3
- package/browser/esm/DHikzoSuZHmfdSGR.mjs +1483 -0
- package/browser/esm/{qQ6f7bLStjj7TTzF.mjs → DHtUFaCIWaHG5aYd.mjs} +1 -1
- package/browser/esm/{Cho_qEL7pbEjiB3T.mjs → DS8TRQNTZhPt1f8w.mjs} +1 -1
- package/browser/esm/{_Q2jMl7Gd_ehoRoV.mjs → DgulLzh_EvvOjeVx.mjs} +4 -4
- package/browser/esm/Dulk_QHiqWiy9JRN.mjs +39 -0
- package/browser/esm/{DEMDGmo5kSRvDnHp.mjs → DxgruwCeDJTbE6BY.mjs} +4 -4
- package/browser/esm/{DK2KWhKNd93kl2kE.mjs → G70q4hSkx8NcTIKq.mjs} +1 -1
- package/{cdn/assets/DyRuNVuHvHCjoVW1.js → browser/esm/JVXhdaSy30fFzmJ7.mjs} +1 -1
- package/browser/esm/{B_ZmJ2eJe49Jj5qv.mjs → KWhubU_eRmtHQTVn.mjs} +2 -2
- package/browser/esm/{AIs60voJQ9fkBbpa.mjs → M0TBnxbjkgqSV-d-.mjs} +1 -1
- package/browser/esm/{Cculdw1pkcnbNSGA.mjs → PyAqLbHqBupOkXBp.mjs} +19435 -19384
- package/browser/esm/{CoPM3wTh9Ote6q-H.mjs → QT4TXuIWZVGw5W5z.mjs} +1 -1
- package/{cdn/assets/WxXfcvzIJGSwcDyC.js → browser/esm/XoVlPZtnLC2eEZlk.mjs} +1 -1
- package/browser/esm/{CGfVwWucPraqqLYZ.mjs → hAkqzllvkN9izXI7.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{SnpevHKgGtEDdXnc.mjs → peouLp3TIJeeFSPG.mjs} +5 -5
- package/browser/esm/{B4NeWRsWibcr2UIo.mjs → rHLNvA1AXYIckwOI.mjs} +1 -1
- package/{cdn/assets/DWzi9GvIPVFueBJ7.js → browser/esm/sKs0rW2QqSvXYO-K.mjs} +1 -1
- package/browser/esm/{ujzQD_ZRSqkq2LLT.mjs → sxz2WOEbh7KwirsX.mjs} +15 -12
- package/{browser/esm/CI-oHEkHOo3xFtoH.mjs → cdn/assets/0Y5gefudV72yvrqS.js} +1 -1
- package/cdn/assets/{BsEG1j-6LL-ZHRra.js → 1rC1OgsRROXIR4ap.js} +4 -4
- package/{browser/esm/Dmfr2PKo4XMQUec_.mjs → cdn/assets/6irz7V0AEik-oFdR.js} +1 -1
- package/cdn/assets/{J-isbDj53wmwpAy-.js → 8MJ4FtEQ38pjfWty.js} +1 -1
- package/{browser/esm/D7Z1zdw-RLVN-3Ls.mjs → cdn/assets/AMVCY6d-OktdfOQE.js} +1 -1
- package/cdn/assets/{D4ij20XhEjUYIZPu.js → B4jVhMsVA-Mmw9qH.js} +1 -1
- package/cdn/assets/{BimqgxoRSQBjywh0.js → B5zuziWQAqN3tu-Q.js} +7 -7
- package/cdn/assets/{BZ9u0I2KrR8iX95X.js → BBdUME9WGIBoo1ny.js} +1 -1
- package/cdn/assets/{D1eSJaVgUdtcXO0c.js → BJ13QLvuKdqU65pj.js} +2 -2
- package/cdn/assets/{wCxFU2Ml1gPfya0Y.js → BMKO-uJI7mJ2C3sW.js} +3 -3
- package/cdn/assets/{D9lsoZLyNT3YnRKD.js → BN-bM9RVum-ACh7O.js} +12 -12
- package/cdn/assets/{DUU-mtqgoPobErkk.js → BZL0_H5oEMX8NF7M.js} +19 -19
- package/cdn/assets/{BFTIF9N4iDUtv0cL.js → BdQCRxN2rixUHxOl.js} +1 -1
- package/cdn/assets/{B47w7PUveixXKjV4.js → BdSlSLWrpvc4_G6J.js} +1 -1
- package/cdn/assets/{BcqXlf4BN5a-yreW.js → Bdd-VDF9hcSuHmH5.js} +1 -1
- package/{browser/esm/BcWyKhPi9t85pwd7.mjs → cdn/assets/BfAp_QcJuhDULyD9.js} +1 -1
- package/{browser/esm/BiDvReQjtqGsrEcG.mjs → cdn/assets/BgELNRooJzC8YlDI.js} +1 -1
- package/cdn/assets/{CGkY7ZPDlb_NVT0w.js → Bgpk4W4CQhholXa6.js} +2 -2
- package/cdn/assets/{S7tnZ2JSgeqIU2Ik.js → BgxRG1-sWpywlnAD.js} +2 -2
- package/{browser/esm/DYN0490BjV0r4F44.mjs → cdn/assets/Bmv_Ya5-UmS_-HS3.js} +1 -1
- package/cdn/assets/{DJfD1Of7XnIO99Vu.js → BnH-3eCKgCudNXNv.js} +3 -3
- package/cdn/assets/{BrCiF7ljEOZ0j6mo.js → BrNBOYOb6FQm6NDt.js} +1 -1
- package/cdn/assets/BtFhIZstiHoRdl91.js +1483 -0
- package/{browser/esm/BB41DCywf-4x6Wa5.mjs → cdn/assets/ByuHrhH0nFMCN572.js} +1 -1
- package/cdn/assets/C9Em4SG9Bu9yfgZ2.js +46 -0
- package/cdn/assets/{J4iDL0_0TW6Jvv_w.js → C9F5SMblLZR6llDC.js} +9 -9
- package/{browser/esm/CP0E_WsGdXVqPokU.mjs → cdn/assets/C9ObN98JqT5tLS5g.js} +1 -1
- package/cdn/assets/{ZohbbPReZ8R6DXT0.js → CIYTPoXO0_IxL2Il.js} +16 -16
- package/cdn/assets/CMPyx-14e9yukzaY.js +41 -0
- package/cdn/assets/{BDN8HrQBmRQYAITJ.js → CWoJvFMdnz7risZh.js} +2 -2
- package/cdn/assets/{aVUHn41Xjkw01VZY.js → CczV0JNf4842mL46.js} +2 -2
- package/cdn/assets/{B2s4XDzxT0wMQgfj.js → CdWcgrvC3zmKEuiT.js} +46 -43
- package/cdn/assets/{CLACT9f5pxngZ9fd.js → CdZfyBeXLtHUAnSL.js} +1 -1
- package/cdn/assets/{DjRlhCDP79COT8cu.js → Chvtx3LElavAKTBM.js} +4 -4
- package/cdn/assets/{CfFbWTa-L5WMWTCO.js → CmsP4fA9ozarTWvD.js} +1 -1
- package/cdn/assets/{BdDKDfNHY38boXN8.js → Cr0zSyE_0zg80NKX.js} +49 -49
- package/cdn/assets/{D5A5fnXYvAUdPRaT.js → Cvm_VLcMKFBDg7cI.js} +1 -1
- package/cdn/assets/{DRn3C3MLnZ-KMH4g.js → CvoGYY1fWczsqjxx.js} +1 -1
- package/{browser/esm/Bwjgq8hdAFOoPahG.mjs → cdn/assets/D-sKAXoVNI9Wl3Gu.js} +1 -1
- package/cdn/assets/{DpbOFt0S00FmxGYt.js → D7pqAxdvMydZdMez.js} +2 -2
- package/cdn/assets/{BRhRAKDmewivuq2-.js → D7tm1uwijt6yRCig.js} +4 -4
- package/cdn/assets/{BSZNfIJisYoJMneC.js → DAJy_HCUldnnaEJp.js} +4 -4
- package/{browser/esm/BOQa4qYE5yX3-RWz.mjs → cdn/assets/DAgf08hha8x4NkiW.js} +1 -1
- package/{browser/esm/BXFpZZjLpDAYfij9.mjs → cdn/assets/DF3364yTjdOhE032.js} +1 -1
- package/cdn/assets/{qQ6f7bLStjj7TTzF.js → DHtUFaCIWaHG5aYd.js} +1 -1
- package/cdn/assets/{Coc65lX6IvJKXkAS.js → DLCRJN3sA8sJWNsZ.js} +18457 -18406
- package/cdn/assets/{Cho_qEL7pbEjiB3T.js → DS8TRQNTZhPt1f8w.js} +1 -1
- package/cdn/assets/{BaCJCBTNoZDULFZk.js → DT7e7zhUsFJGcx2Z.js} +5 -6
- package/cdn/assets/{DdMTBEKdTxBEC0CH.js → DU1Zo3S2s-1xTJJs.js} +19 -19
- package/cdn/assets/{GsXdWfv7Tzy6DDvJ.js → DXTgNpbkKzuEWeF2.js} +7 -7
- package/cdn/assets/{CQhLsrkjwj_0M21G.js → Dco0MS8_hEsc0OPo.js} +3 -3
- package/cdn/assets/{DgrX7Y9SiY3X7gOp.js → Dfjm_X6eQE-sv061.js} +4 -4
- package/cdn/assets/{DK2KWhKNd93kl2kE.js → G70q4hSkx8NcTIKq.js} +1 -1
- package/{browser/esm/DyRuNVuHvHCjoVW1.mjs → cdn/assets/JVXhdaSy30fFzmJ7.js} +1 -1
- package/cdn/assets/{AIs60voJQ9fkBbpa.js → M0TBnxbjkgqSV-d-.js} +1 -1
- package/cdn/assets/{CoPM3wTh9Ote6q-H.js → QT4TXuIWZVGw5W5z.js} +1 -1
- package/cdn/assets/{CZzh01u6s-0ONPqW.js → UtmutBQROyuBtl4r.js} +1 -1
- package/{browser/esm/WxXfcvzIJGSwcDyC.mjs → cdn/assets/XoVlPZtnLC2eEZlk.js} +1 -1
- package/cdn/assets/{D2SNpr52mALnvU-6.js → aPBS98bJMioBkE9g.js} +10 -10
- package/cdn/assets/{i_jXmsODYQjjPYrt.js → drYtPnOe21tQDl8L.js} +23 -23
- package/cdn/assets/{BzcBAhihXimz7Pm3.js → jmwAu8IOkB1kD1KF.js} +2 -2
- package/cdn/assets/{B4NeWRsWibcr2UIo.js → rHLNvA1AXYIckwOI.js} +1 -1
- package/{browser/esm/DWzi9GvIPVFueBJ7.mjs → cdn/assets/sKs0rW2QqSvXYO-K.js} +1 -1
- package/cdn/assets/{DoSfwMyLmLRTw_Bd.js → wGEPbEOJOOYqjwRF.js} +10 -10
- package/cdn/assets/{CENqAGzgzPx94ePo.js → xpA-oP_sNRbMCnCC.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/Bt9xFGGN34d5HCKh.cjs +0 -12
- package/browser/cjs/Cc_X2-Rt58m9MOa7.cjs +0 -11
- package/browser/cjs/ChnistDO497Y61ua.cjs +0 -6
- package/browser/cjs/a1u892SuaZ0Yzflb.cjs +0 -327
- package/browser/esm/Cq55zKkr5eBdCfZF.mjs +0 -1485
- package/browser/esm/L_l8BGjzdmT2Wme8.mjs +0 -48
- package/browser/esm/tYJT2ABoxQBj433T.mjs +0 -39
- package/cdn/assets/CHcdhFuhL3bUUL0-.js +0 -41
- package/cdn/assets/LcYBd92cdUPlYyVs.js +0 -1485
- package/cdn/assets/iher43-Ku7eJKDlh.js +0 -48
|
@@ -1,1485 +0,0 @@
|
|
|
1
|
-
import { a0 as Nt, M as Mt, ag as Se, ah as Ce, ai as ke, aj as Ft, ak as vt, t as re, al as Ae, am as De, af as Ee, an as Pe, H as ne, w as Oe, ao as Ie, n as Ve } from "./Coc65lX6IvJKXkAS.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.19
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
const ue = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Le = new RegExp(`^[${ue}][-${ue}.0-9·̀-ͯ‿-⁀]*$`, "u");
|
|
9
|
-
function ye(i) {
|
|
10
|
-
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;
|
|
11
|
-
}
|
|
12
|
-
const de = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Ne = new RegExp(`^[${de}][-${de}.0-9·̀-ͯ‿-⁀]*$`, "u");
|
|
13
|
-
function be(i) {
|
|
14
|
-
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;
|
|
15
|
-
}
|
|
16
|
-
const it = function(i) {
|
|
17
|
-
return i === 32 || i === 10 || i === 13 || i === 9;
|
|
18
|
-
}, Re = function(i) {
|
|
19
|
-
return i >= 32 && i <= 55295 || i === 10 || i === 13 || i === 9 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
|
|
20
|
-
}, Jt = ye, pe = function(i) {
|
|
21
|
-
return ye(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
|
|
22
|
-
}, xe = [32, 10, 13, 9], $e = Le, Me = function(i) {
|
|
23
|
-
return i >= 1 && i <= 55295 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
|
|
24
|
-
}, He = be, je = function(i) {
|
|
25
|
-
return be(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
|
|
26
|
-
}, Xe = Ne, oe = "http://www.w3.org/XML/1998/namespace", qt = "http://www.w3.org/2000/xmlns/", Fe = { __proto__: null, xml: oe, xmlns: qt }, Be = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, N = -1, xt = -2, Y = 13, Rt = 33, ft = 10, Ot = 60, Wt = 61, F = 62, U = 63, _t = 93, ie = (i) => i === 34 || i === 39, we = [34, 39], We = [...we, 91, F], _e = [...we, Ot, _t], qe = [Wt, U, ...xe], ze = [...xe, F, 38, Ot];
|
|
27
|
-
function ae(i, t, s) {
|
|
28
|
-
switch (t) {
|
|
29
|
-
case "xml":
|
|
30
|
-
s !== oe && i.fail(`xml prefix must be bound to ${oe}.`);
|
|
31
|
-
break;
|
|
32
|
-
case "xmlns":
|
|
33
|
-
s !== qt && i.fail(`xmlns prefix must be bound to ${qt}.`);
|
|
34
|
-
}
|
|
35
|
-
switch (s) {
|
|
36
|
-
case qt:
|
|
37
|
-
i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${qt}.`);
|
|
38
|
-
break;
|
|
39
|
-
case oe:
|
|
40
|
-
switch (t) {
|
|
41
|
-
case "xml":
|
|
42
|
-
break;
|
|
43
|
-
case "":
|
|
44
|
-
i.fail(`the default namespace may not be set to ${s}.`);
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
i.fail("may not assign the xml namespace to another prefix.");
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const Ge = (i) => Xe.test(i), Ue = (i) => $e.test(i), ge = { xmldecl: "xmlDeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
|
|
52
|
-
class Ze {
|
|
53
|
-
constructor(t) {
|
|
54
|
-
this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
|
|
55
|
-
const s = this.xmlnsOpt = !!this.opt.xmlns;
|
|
56
|
-
if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, s) {
|
|
57
|
-
this.nameStartCheck = He, this.nameCheck = je, this.isName = Ge, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fe };
|
|
58
|
-
const o = this.opt.additionalNamespaces;
|
|
59
|
-
o != null && ((function(a, n) {
|
|
60
|
-
for (const c of Object.keys(n)) ae(a, c, n[c]);
|
|
61
|
-
})(this, o), Object.assign(this.ns, o));
|
|
62
|
-
} else this.nameStartCheck = Jt, this.nameCheck = pe, this.isName = Ue, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
|
|
63
|
-
this.stateTable = [this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite], this._init();
|
|
64
|
-
}
|
|
65
|
-
get closed() {
|
|
66
|
-
return this._closed;
|
|
67
|
-
}
|
|
68
|
-
_init() {
|
|
69
|
-
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 = [];
|
|
70
|
-
const { fragmentOpt: t } = this;
|
|
71
|
-
this.state = t ? Y : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = t, this.xmlDeclPossible = !t, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
|
|
72
|
-
let { defaultXMLVersion: s } = this.opt;
|
|
73
|
-
if (s === void 0) {
|
|
74
|
-
if (this.opt.forceXMLVersion === !0) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
|
|
75
|
-
s = "1.0";
|
|
76
|
-
}
|
|
77
|
-
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(Be), this.readyHandler?.();
|
|
78
|
-
}
|
|
79
|
-
get position() {
|
|
80
|
-
return this.chunkPosition + this.i;
|
|
81
|
-
}
|
|
82
|
-
get columnIndex() {
|
|
83
|
-
return this.position - this.positionAtNewLine;
|
|
84
|
-
}
|
|
85
|
-
on(t, s) {
|
|
86
|
-
this[ge[t]] = s;
|
|
87
|
-
}
|
|
88
|
-
off(t) {
|
|
89
|
-
this[ge[t]] = void 0;
|
|
90
|
-
}
|
|
91
|
-
makeError(t) {
|
|
92
|
-
let s = this.fileName ?? "";
|
|
93
|
-
return this.trackPosition && (s.length > 0 && (s += ":"), s += `${this.line}:${this.column}`), s.length > 0 && (s += ": "), new Error(s + t);
|
|
94
|
-
}
|
|
95
|
-
fail(t) {
|
|
96
|
-
const s = this.makeError(t), o = this.errorHandler;
|
|
97
|
-
if (o === void 0) throw s;
|
|
98
|
-
return o(s), this;
|
|
99
|
-
}
|
|
100
|
-
write(t) {
|
|
101
|
-
if (this.closed) return this.fail("cannot write after close.");
|
|
102
|
-
let s = !1;
|
|
103
|
-
t === null ? (s = !0, t = "") : typeof t == "object" && (t = t.toString()), this.carriedFromPrevious !== void 0 && (t = `${this.carriedFromPrevious}${t}`, this.carriedFromPrevious = void 0);
|
|
104
|
-
let o = t.length;
|
|
105
|
-
const a = t.charCodeAt(o - 1);
|
|
106
|
-
!s && (a === 13 || a >= 55296 && a <= 56319) && (this.carriedFromPrevious = t[o - 1], o--, t = t.slice(0, o));
|
|
107
|
-
const { stateTable: n } = this;
|
|
108
|
-
for (this.chunk = t, this.i = 0; this.i < o; ) n[this.state].call(this);
|
|
109
|
-
return this.chunkPosition += o, s ? this.end() : this;
|
|
110
|
-
}
|
|
111
|
-
close() {
|
|
112
|
-
return this.write(null);
|
|
113
|
-
}
|
|
114
|
-
getCode10() {
|
|
115
|
-
const t = this.chunk, s = this.i;
|
|
116
|
-
if (this.prevI = s, this.i++, s >= t.length) return N;
|
|
117
|
-
const o = t.charCodeAt(s);
|
|
118
|
-
if (this.column++, o < 55296) {
|
|
119
|
-
if (o >= 32 || o === 9) return o;
|
|
120
|
-
switch (o) {
|
|
121
|
-
case ft:
|
|
122
|
-
return this.line++, this.column = 0, this.positionAtNewLine = this.position, ft;
|
|
123
|
-
case 13:
|
|
124
|
-
return t.charCodeAt(s + 1) === ft && (this.i = s + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, xt;
|
|
125
|
-
default:
|
|
126
|
-
return this.fail("disallowed character."), o;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if (o > 56319) return o >= 57344 && o <= 65533 || this.fail("disallowed character."), o;
|
|
130
|
-
const a = 65536 + 1024 * (o - 55296) + (t.charCodeAt(s + 1) - 56320);
|
|
131
|
-
return this.i = s + 2, a > 1114111 && this.fail("disallowed character."), a;
|
|
132
|
-
}
|
|
133
|
-
getCode11() {
|
|
134
|
-
const { chunk: t, i: s } = this;
|
|
135
|
-
if (this.prevI = s, this.i = s + 1, s >= t.length) return N;
|
|
136
|
-
const o = t.charCodeAt(s);
|
|
137
|
-
if (this.column++, o < 55296) {
|
|
138
|
-
if (o > 31 && o < 127 || o > 159 && o !== 8232 || o === 9) return o;
|
|
139
|
-
switch (o) {
|
|
140
|
-
case ft:
|
|
141
|
-
return this.line++, this.column = 0, this.positionAtNewLine = this.position, ft;
|
|
142
|
-
case 13: {
|
|
143
|
-
const n = t.charCodeAt(s + 1);
|
|
144
|
-
n !== ft && n !== 133 || (this.i = s + 2);
|
|
145
|
-
}
|
|
146
|
-
case 133:
|
|
147
|
-
case 8232:
|
|
148
|
-
return this.line++, this.column = 0, this.positionAtNewLine = this.position, xt;
|
|
149
|
-
default:
|
|
150
|
-
return this.fail("disallowed character."), o;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
if (o > 56319) return o >= 57344 && o <= 65533 || this.fail("disallowed character."), o;
|
|
154
|
-
const a = 65536 + 1024 * (o - 55296) + (t.charCodeAt(s + 1) - 56320);
|
|
155
|
-
return this.i = s + 2, a > 1114111 && this.fail("disallowed character."), a;
|
|
156
|
-
}
|
|
157
|
-
getCodeNorm() {
|
|
158
|
-
const t = this.getCode();
|
|
159
|
-
return t === xt ? ft : t;
|
|
160
|
-
}
|
|
161
|
-
unGet() {
|
|
162
|
-
this.i = this.prevI, this.column--;
|
|
163
|
-
}
|
|
164
|
-
captureTo(t) {
|
|
165
|
-
let { i: s } = this;
|
|
166
|
-
const { chunk: o } = this;
|
|
167
|
-
for (; ; ) {
|
|
168
|
-
const a = this.getCode(), n = a === xt, c = n ? ft : a;
|
|
169
|
-
if (c === N || t.includes(c)) return this.text += o.slice(s, this.prevI), c;
|
|
170
|
-
n && (this.text += `${o.slice(s, this.prevI)}
|
|
171
|
-
`, s = this.i);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
captureToChar(t) {
|
|
175
|
-
let { i: s } = this;
|
|
176
|
-
const { chunk: o } = this;
|
|
177
|
-
for (; ; ) {
|
|
178
|
-
let a = this.getCode();
|
|
179
|
-
switch (a) {
|
|
180
|
-
case xt:
|
|
181
|
-
this.text += `${o.slice(s, this.prevI)}
|
|
182
|
-
`, s = this.i, a = ft;
|
|
183
|
-
break;
|
|
184
|
-
case N:
|
|
185
|
-
return this.text += o.slice(s), !1;
|
|
186
|
-
}
|
|
187
|
-
if (a === t) return this.text += o.slice(s, this.prevI), !0;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
captureNameChars() {
|
|
191
|
-
const { chunk: t, i: s } = this;
|
|
192
|
-
for (; ; ) {
|
|
193
|
-
const o = this.getCode();
|
|
194
|
-
if (o === N) return this.name += t.slice(s), N;
|
|
195
|
-
if (!pe(o)) return this.name += t.slice(s, this.prevI), o === xt ? ft : o;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
skipSpaces() {
|
|
199
|
-
for (; ; ) {
|
|
200
|
-
const t = this.getCodeNorm();
|
|
201
|
-
if (t === N || !it(t)) return t;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
setXMLVersion(t) {
|
|
205
|
-
this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Re, this.getCode = this.getCode10) : (this.isChar = Me, this.getCode = this.getCode11);
|
|
206
|
-
}
|
|
207
|
-
sBegin() {
|
|
208
|
-
this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
|
|
209
|
-
}
|
|
210
|
-
sBeginWhitespace() {
|
|
211
|
-
const t = this.i, s = this.skipSpaces();
|
|
212
|
-
switch (this.prevI !== t && (this.xmlDeclPossible = !1), s) {
|
|
213
|
-
case Ot:
|
|
214
|
-
if (this.state = 15, this.text.length !== 0) throw new Error("no-empty text at start");
|
|
215
|
-
break;
|
|
216
|
-
case N:
|
|
217
|
-
break;
|
|
218
|
-
default:
|
|
219
|
-
this.unGet(), this.state = Y, this.xmlDeclPossible = !1;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
sDoctype() {
|
|
223
|
-
const t = this.captureTo(We);
|
|
224
|
-
switch (t) {
|
|
225
|
-
case F:
|
|
226
|
-
this.doctypeHandler?.(this.text), this.text = "", this.state = Y, this.doctype = !0;
|
|
227
|
-
break;
|
|
228
|
-
case N:
|
|
229
|
-
break;
|
|
230
|
-
default:
|
|
231
|
-
this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : ie(t) && (this.state = 3, this.q = t);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
sDoctypeQuote() {
|
|
235
|
-
const t = this.q;
|
|
236
|
-
this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
|
|
237
|
-
}
|
|
238
|
-
sDTD() {
|
|
239
|
-
const t = this.captureTo(_e);
|
|
240
|
-
t !== N && (this.text += String.fromCodePoint(t), t === _t ? this.state = 2 : t === Ot ? this.state = 6 : ie(t) && (this.state = 5, this.q = t));
|
|
241
|
-
}
|
|
242
|
-
sDTDQuoted() {
|
|
243
|
-
const t = this.q;
|
|
244
|
-
this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.state = 4, this.q = null);
|
|
245
|
-
}
|
|
246
|
-
sDTDOpenWaka() {
|
|
247
|
-
const t = this.getCodeNorm();
|
|
248
|
-
switch (this.text += String.fromCodePoint(t), t) {
|
|
249
|
-
case 33:
|
|
250
|
-
this.state = 7, this.openWakaBang = "";
|
|
251
|
-
break;
|
|
252
|
-
case U:
|
|
253
|
-
this.state = 11;
|
|
254
|
-
break;
|
|
255
|
-
default:
|
|
256
|
-
this.state = 4;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
sDTDOpenWakaBang() {
|
|
260
|
-
const t = String.fromCodePoint(this.getCodeNorm()), s = this.openWakaBang += t;
|
|
261
|
-
this.text += t, s !== "-" && (this.state = s === "--" ? 8 : 4, this.openWakaBang = "");
|
|
262
|
-
}
|
|
263
|
-
sDTDComment() {
|
|
264
|
-
this.captureToChar(45) && (this.text += "-", this.state = 9);
|
|
265
|
-
}
|
|
266
|
-
sDTDCommentEnding() {
|
|
267
|
-
const t = this.getCodeNorm();
|
|
268
|
-
this.text += String.fromCodePoint(t), this.state = t === 45 ? 10 : 8;
|
|
269
|
-
}
|
|
270
|
-
sDTDCommentEnded() {
|
|
271
|
-
const t = this.getCodeNorm();
|
|
272
|
-
this.text += String.fromCodePoint(t), t === F ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
|
|
273
|
-
}
|
|
274
|
-
sDTDPI() {
|
|
275
|
-
this.captureToChar(U) && (this.text += "?", this.state = 12);
|
|
276
|
-
}
|
|
277
|
-
sDTDPIEnding() {
|
|
278
|
-
const t = this.getCodeNorm();
|
|
279
|
-
this.text += String.fromCodePoint(t), t === F && (this.state = 4);
|
|
280
|
-
}
|
|
281
|
-
sText() {
|
|
282
|
-
this.tags.length !== 0 ? this.handleTextInRoot() : this.handleTextOutsideRoot();
|
|
283
|
-
}
|
|
284
|
-
sEntity() {
|
|
285
|
-
let { i: t } = this;
|
|
286
|
-
const { chunk: s } = this;
|
|
287
|
-
t: for (; ; ) switch (this.getCode()) {
|
|
288
|
-
case xt:
|
|
289
|
-
this.entity += `${s.slice(t, this.prevI)}
|
|
290
|
-
`, t = this.i;
|
|
291
|
-
break;
|
|
292
|
-
case 59: {
|
|
293
|
-
const { entityReturnState: o } = this, a = this.entity + s.slice(t, this.prevI);
|
|
294
|
-
let n;
|
|
295
|
-
this.state = o, a === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(a), this.entity = ""), o === Y && this.textHandler === void 0 || (this.text += n);
|
|
296
|
-
break t;
|
|
297
|
-
}
|
|
298
|
-
case N:
|
|
299
|
-
this.entity += s.slice(t);
|
|
300
|
-
break t;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
sOpenWaka() {
|
|
304
|
-
const t = this.getCode();
|
|
305
|
-
if (Jt(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
|
|
306
|
-
else switch (t) {
|
|
307
|
-
case 47:
|
|
308
|
-
this.state = 43, this.xmlDeclPossible = !1;
|
|
309
|
-
break;
|
|
310
|
-
case 33:
|
|
311
|
-
this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
|
|
312
|
-
break;
|
|
313
|
-
case U:
|
|
314
|
-
this.state = 23;
|
|
315
|
-
break;
|
|
316
|
-
default:
|
|
317
|
-
this.fail("disallowed character in tag name"), this.state = Y, this.xmlDeclPossible = !1;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
sOpenWakaBang() {
|
|
321
|
-
switch (this.openWakaBang += String.fromCodePoint(this.getCodeNorm()), this.openWakaBang) {
|
|
322
|
-
case "[CDATA[":
|
|
323
|
-
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 = "";
|
|
324
|
-
break;
|
|
325
|
-
case "--":
|
|
326
|
-
this.state = 17, this.openWakaBang = "";
|
|
327
|
-
break;
|
|
328
|
-
case "DOCTYPE":
|
|
329
|
-
this.state = 2, (this.doctype || this.sawRoot) && this.fail("inappropriately located doctype declaration."), this.openWakaBang = "";
|
|
330
|
-
break;
|
|
331
|
-
default:
|
|
332
|
-
this.openWakaBang.length >= 7 && this.fail("incorrect syntax.");
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
sComment() {
|
|
336
|
-
this.captureToChar(45) && (this.state = 18);
|
|
337
|
-
}
|
|
338
|
-
sCommentEnding() {
|
|
339
|
-
const t = this.getCodeNorm();
|
|
340
|
-
t === 45 ? (this.state = 19, this.commentHandler?.(this.text), this.text = "") : (this.text += `-${String.fromCodePoint(t)}`, this.state = 17);
|
|
341
|
-
}
|
|
342
|
-
sCommentEnded() {
|
|
343
|
-
const t = this.getCodeNorm();
|
|
344
|
-
t !== F ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Y;
|
|
345
|
-
}
|
|
346
|
-
sCData() {
|
|
347
|
-
this.captureToChar(_t) && (this.state = 21);
|
|
348
|
-
}
|
|
349
|
-
sCDataEnding() {
|
|
350
|
-
const t = this.getCodeNorm();
|
|
351
|
-
t === _t ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
|
|
352
|
-
}
|
|
353
|
-
sCDataEnding2() {
|
|
354
|
-
const t = this.getCodeNorm();
|
|
355
|
-
switch (t) {
|
|
356
|
-
case F:
|
|
357
|
-
this.cdataHandler?.(this.text), this.text = "", this.state = Y;
|
|
358
|
-
break;
|
|
359
|
-
case _t:
|
|
360
|
-
this.text += "]";
|
|
361
|
-
break;
|
|
362
|
-
default:
|
|
363
|
-
this.text += `]]${String.fromCodePoint(t)}`, this.state = 20;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
sPIFirstChar() {
|
|
367
|
-
const t = this.getCodeNorm();
|
|
368
|
-
this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === U || it(t) ? (this.fail("processing instruction without a target."), this.state = t === U ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
|
|
369
|
-
}
|
|
370
|
-
sPIRest() {
|
|
371
|
-
const { chunk: t, i: s } = this;
|
|
372
|
-
for (; ; ) {
|
|
373
|
-
const o = this.getCodeNorm();
|
|
374
|
-
if (o === N) return void (this.piTarget += t.slice(s));
|
|
375
|
-
if (!this.nameCheck(o)) {
|
|
376
|
-
this.piTarget += t.slice(s, this.prevI);
|
|
377
|
-
const a = o === U;
|
|
378
|
-
a || it(o) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = a ? Rt : 27) : this.state = a ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
|
|
379
|
-
break;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
sPIBody() {
|
|
384
|
-
if (this.text.length === 0) {
|
|
385
|
-
const t = this.getCodeNorm();
|
|
386
|
-
t === U ? this.state = 26 : it(t) || (this.text = String.fromCodePoint(t));
|
|
387
|
-
} else this.captureToChar(U) && (this.state = 26);
|
|
388
|
-
}
|
|
389
|
-
sPIEnding() {
|
|
390
|
-
const t = this.getCodeNorm();
|
|
391
|
-
if (t === F) {
|
|
392
|
-
const { piTarget: s } = this;
|
|
393
|
-
s.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({ target: s, body: this.text }), this.piTarget = this.text = "", this.state = Y;
|
|
394
|
-
} else t === U ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
|
|
395
|
-
this.xmlDeclPossible = !1;
|
|
396
|
-
}
|
|
397
|
-
sXMLDeclNameStart() {
|
|
398
|
-
const t = this.skipSpaces();
|
|
399
|
-
t !== U ? t !== N && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Rt;
|
|
400
|
-
}
|
|
401
|
-
sXMLDeclName() {
|
|
402
|
-
const t = this.captureTo(qe);
|
|
403
|
-
if (t === U) return this.state = Rt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
|
|
404
|
-
if (it(t) || t === Wt) {
|
|
405
|
-
if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
|
|
406
|
-
case 0:
|
|
407
|
-
this.fail("did not expect any more name/value pairs.");
|
|
408
|
-
break;
|
|
409
|
-
case 1:
|
|
410
|
-
this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);
|
|
411
|
-
break;
|
|
412
|
-
default:
|
|
413
|
-
this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
|
|
414
|
-
}
|
|
415
|
-
this.state = t === Wt ? 30 : 29;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
sXMLDeclEq() {
|
|
419
|
-
const t = this.getCodeNorm();
|
|
420
|
-
if (t === U) return this.state = Rt, void this.fail("XML declaration is incomplete.");
|
|
421
|
-
it(t) || (t !== Wt && this.fail("value required."), this.state = 30);
|
|
422
|
-
}
|
|
423
|
-
sXMLDeclValueStart() {
|
|
424
|
-
const t = this.getCodeNorm();
|
|
425
|
-
if (t === U) return this.state = Rt, void this.fail("XML declaration is incomplete.");
|
|
426
|
-
it(t) || (ie(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
|
|
427
|
-
}
|
|
428
|
-
sXMLDeclValue() {
|
|
429
|
-
const t = this.captureTo([this.q, U]);
|
|
430
|
-
if (t === U) return this.state = Rt, this.text = "", void this.fail("XML declaration is incomplete.");
|
|
431
|
-
if (t === N) return;
|
|
432
|
-
const s = this.text;
|
|
433
|
-
switch (this.text = "", this.name) {
|
|
434
|
-
case "version": {
|
|
435
|
-
this.xmlDeclExpects = ["encoding", "standalone"];
|
|
436
|
-
const o = s;
|
|
437
|
-
this.xmlDecl.version = o, /^1\.[0-9]+$/.test(o) ? this.opt.forceXMLVersion || this.setXMLVersion(o) : this.fail("version number must match /^1\\.[0-9]+$/.");
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
case "encoding":
|
|
441
|
-
/^[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;
|
|
442
|
-
break;
|
|
443
|
-
case "standalone":
|
|
444
|
-
s !== "yes" && s !== "no" && this.fail('standalone value must match "yes" or "no".'), this.xmlDeclExpects = [], this.xmlDecl.standalone = s;
|
|
445
|
-
}
|
|
446
|
-
this.name = "", this.state = 32;
|
|
447
|
-
}
|
|
448
|
-
sXMLDeclSeparator() {
|
|
449
|
-
const t = this.getCodeNorm();
|
|
450
|
-
t !== U ? (it(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = Rt;
|
|
451
|
-
}
|
|
452
|
-
sXMLDeclEnding() {
|
|
453
|
-
this.getCodeNorm() === F ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Y) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
|
|
454
|
-
}
|
|
455
|
-
sOpenTag() {
|
|
456
|
-
const t = this.captureNameChars();
|
|
457
|
-
if (t === N) return;
|
|
458
|
-
const s = this.tag = { name: this.name, attributes: /* @__PURE__ */ Object.create(null) };
|
|
459
|
-
switch (this.name = "", this.xmlnsOpt && (this.topNS = s.ns = /* @__PURE__ */ Object.create(null)), this.openTagStartHandler?.(s), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), t) {
|
|
460
|
-
case F:
|
|
461
|
-
this.openTag();
|
|
462
|
-
break;
|
|
463
|
-
case 47:
|
|
464
|
-
this.state = 35;
|
|
465
|
-
break;
|
|
466
|
-
default:
|
|
467
|
-
it(t) || this.fail("disallowed character in tag name."), this.state = 36;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
sOpenTagSlash() {
|
|
471
|
-
this.getCode() === F ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
|
|
472
|
-
}
|
|
473
|
-
sAttrib() {
|
|
474
|
-
const t = this.skipSpaces();
|
|
475
|
-
t !== N && (Jt(t) ? (this.unGet(), this.state = 37) : t === F ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
|
|
476
|
-
}
|
|
477
|
-
sAttribName() {
|
|
478
|
-
const t = this.captureNameChars();
|
|
479
|
-
t === Wt ? this.state = 39 : it(t) ? this.state = 38 : t === F ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== N && this.fail("disallowed character in attribute name.");
|
|
480
|
-
}
|
|
481
|
-
sAttribNameSawWhite() {
|
|
482
|
-
const t = this.skipSpaces();
|
|
483
|
-
switch (t) {
|
|
484
|
-
case N:
|
|
485
|
-
return;
|
|
486
|
-
case Wt:
|
|
487
|
-
this.state = 39;
|
|
488
|
-
break;
|
|
489
|
-
default:
|
|
490
|
-
this.fail("attribute without value."), this.text = "", this.name = "", t === F ? this.openTag() : Jt(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
sAttribValue() {
|
|
494
|
-
const t = this.getCodeNorm();
|
|
495
|
-
ie(t) ? (this.q = t, this.state = 40) : it(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
|
|
496
|
-
}
|
|
497
|
-
sAttribValueQuoted() {
|
|
498
|
-
const { q: t, chunk: s } = this;
|
|
499
|
-
let { i: o } = this;
|
|
500
|
-
for (; ; ) switch (this.getCode()) {
|
|
501
|
-
case t:
|
|
502
|
-
return this.pushAttrib(this.name, this.text + s.slice(o, this.prevI)), this.name = this.text = "", this.q = null, void (this.state = 41);
|
|
503
|
-
case 38:
|
|
504
|
-
return this.text += s.slice(o, this.prevI), this.state = 14, void (this.entityReturnState = 40);
|
|
505
|
-
case ft:
|
|
506
|
-
case xt:
|
|
507
|
-
case 9:
|
|
508
|
-
this.text += `${s.slice(o, this.prevI)} `, o = this.i;
|
|
509
|
-
break;
|
|
510
|
-
case Ot:
|
|
511
|
-
return this.text += s.slice(o, this.prevI), void this.fail("disallowed character.");
|
|
512
|
-
case N:
|
|
513
|
-
return void (this.text += s.slice(o));
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
sAttribValueClosed() {
|
|
517
|
-
const t = this.getCodeNorm();
|
|
518
|
-
it(t) ? this.state = 36 : t === F ? this.openTag() : t === 47 ? this.state = 35 : Jt(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
|
|
519
|
-
}
|
|
520
|
-
sAttribValueUnquoted() {
|
|
521
|
-
const t = this.captureTo(ze);
|
|
522
|
-
switch (t) {
|
|
523
|
-
case 38:
|
|
524
|
-
this.state = 14, this.entityReturnState = 42;
|
|
525
|
-
break;
|
|
526
|
-
case Ot:
|
|
527
|
-
this.fail("disallowed character.");
|
|
528
|
-
break;
|
|
529
|
-
case N:
|
|
530
|
-
break;
|
|
531
|
-
default:
|
|
532
|
-
this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === F ? this.openTag() : this.state = 36;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
sCloseTag() {
|
|
536
|
-
const t = this.captureNameChars();
|
|
537
|
-
t === F ? this.closeTag() : it(t) ? this.state = 44 : t !== N && this.fail("disallowed character in closing tag.");
|
|
538
|
-
}
|
|
539
|
-
sCloseTagSawWhite() {
|
|
540
|
-
switch (this.skipSpaces()) {
|
|
541
|
-
case F:
|
|
542
|
-
this.closeTag();
|
|
543
|
-
break;
|
|
544
|
-
case N:
|
|
545
|
-
break;
|
|
546
|
-
default:
|
|
547
|
-
this.fail("disallowed character in closing tag.");
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
handleTextInRoot() {
|
|
551
|
-
let { i: t, forbiddenState: s } = this;
|
|
552
|
-
const { chunk: o, textHandler: a } = this;
|
|
553
|
-
t: for (; ; ) switch (this.getCode()) {
|
|
554
|
-
case Ot:
|
|
555
|
-
if (this.state = 15, a !== void 0) {
|
|
556
|
-
const { text: n } = this, c = o.slice(t, this.prevI);
|
|
557
|
-
n.length !== 0 ? (a(n + c), this.text = "") : c.length !== 0 && a(c);
|
|
558
|
-
}
|
|
559
|
-
s = 0;
|
|
560
|
-
break t;
|
|
561
|
-
case 38:
|
|
562
|
-
this.state = 14, this.entityReturnState = Y, a !== void 0 && (this.text += o.slice(t, this.prevI)), s = 0;
|
|
563
|
-
break t;
|
|
564
|
-
case _t:
|
|
565
|
-
switch (s) {
|
|
566
|
-
case 0:
|
|
567
|
-
s = 1;
|
|
568
|
-
break;
|
|
569
|
-
case 1:
|
|
570
|
-
s = 2;
|
|
571
|
-
break;
|
|
572
|
-
case 2:
|
|
573
|
-
break;
|
|
574
|
-
default:
|
|
575
|
-
throw new Error("impossible state");
|
|
576
|
-
}
|
|
577
|
-
break;
|
|
578
|
-
case F:
|
|
579
|
-
s === 2 && this.fail('the string "]]>" is disallowed in char data.'), s = 0;
|
|
580
|
-
break;
|
|
581
|
-
case xt:
|
|
582
|
-
a !== void 0 && (this.text += `${o.slice(t, this.prevI)}
|
|
583
|
-
`), t = this.i, s = 0;
|
|
584
|
-
break;
|
|
585
|
-
case N:
|
|
586
|
-
a !== void 0 && (this.text += o.slice(t));
|
|
587
|
-
break t;
|
|
588
|
-
default:
|
|
589
|
-
s = 0;
|
|
590
|
-
}
|
|
591
|
-
this.forbiddenState = s;
|
|
592
|
-
}
|
|
593
|
-
handleTextOutsideRoot() {
|
|
594
|
-
let { i: t } = this;
|
|
595
|
-
const { chunk: s, textHandler: o } = this;
|
|
596
|
-
let a = !1;
|
|
597
|
-
t: for (; ; ) {
|
|
598
|
-
const n = this.getCode();
|
|
599
|
-
switch (n) {
|
|
600
|
-
case Ot:
|
|
601
|
-
if (this.state = 15, o !== void 0) {
|
|
602
|
-
const { text: c } = this, g = s.slice(t, this.prevI);
|
|
603
|
-
c.length !== 0 ? (o(c + g), this.text = "") : g.length !== 0 && o(g);
|
|
604
|
-
}
|
|
605
|
-
break t;
|
|
606
|
-
case 38:
|
|
607
|
-
this.state = 14, this.entityReturnState = Y, o !== void 0 && (this.text += s.slice(t, this.prevI)), a = !0;
|
|
608
|
-
break t;
|
|
609
|
-
case xt:
|
|
610
|
-
o !== void 0 && (this.text += `${s.slice(t, this.prevI)}
|
|
611
|
-
`), t = this.i;
|
|
612
|
-
break;
|
|
613
|
-
case N:
|
|
614
|
-
o !== void 0 && (this.text += s.slice(t));
|
|
615
|
-
break t;
|
|
616
|
-
default:
|
|
617
|
-
it(n) || (a = !0);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
a && (this.sawRoot || this.reportedTextBeforeRoot || (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
|
|
621
|
-
}
|
|
622
|
-
pushAttribNS(t, s) {
|
|
623
|
-
const { prefix: o, local: a } = this.qName(t), n = { name: t, prefix: o, local: a, value: s };
|
|
624
|
-
if (this.attribList.push(n), this.attributeHandler?.(n), o === "xmlns") {
|
|
625
|
-
const c = s.trim();
|
|
626
|
-
this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[a] = c, ae(this, a, c);
|
|
627
|
-
} else if (t === "xmlns") {
|
|
628
|
-
const c = s.trim();
|
|
629
|
-
this.topNS[""] = c, ae(this, "", c);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
pushAttribPlain(t, s) {
|
|
633
|
-
const o = { name: t, value: s };
|
|
634
|
-
this.attribList.push(o), this.attributeHandler?.(o);
|
|
635
|
-
}
|
|
636
|
-
end() {
|
|
637
|
-
this.sawRoot || this.fail("document must contain a root element.");
|
|
638
|
-
const { tags: t } = this;
|
|
639
|
-
for (; t.length > 0; ) {
|
|
640
|
-
const o = t.pop();
|
|
641
|
-
this.fail(`unclosed tag: ${o.name}`);
|
|
642
|
-
}
|
|
643
|
-
this.state !== 0 && this.state !== Y && this.fail("unexpected end.");
|
|
644
|
-
const { text: s } = this;
|
|
645
|
-
return s.length !== 0 && (this.textHandler?.(s), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
|
|
646
|
-
}
|
|
647
|
-
resolve(t) {
|
|
648
|
-
let s = this.topNS[t];
|
|
649
|
-
if (s !== void 0) return s;
|
|
650
|
-
const { tags: o } = this;
|
|
651
|
-
for (let a = o.length - 1; a >= 0; a--) if (s = o[a].ns[t], s !== void 0) return s;
|
|
652
|
-
return s = this.ns[t], s !== void 0 ? s : this.opt.resolvePrefix?.(t);
|
|
653
|
-
}
|
|
654
|
-
qName(t) {
|
|
655
|
-
const s = t.indexOf(":");
|
|
656
|
-
if (s === -1) return { prefix: "", local: t };
|
|
657
|
-
const o = t.slice(s + 1), a = t.slice(0, s);
|
|
658
|
-
return (a === "" || o === "" || o.includes(":")) && this.fail(`malformed name: ${t}.`), { prefix: a, local: o };
|
|
659
|
-
}
|
|
660
|
-
processAttribsNS() {
|
|
661
|
-
const { attribList: t } = this, s = this.tag;
|
|
662
|
-
{
|
|
663
|
-
const { prefix: n, local: c } = this.qName(s.name);
|
|
664
|
-
s.prefix = n, s.local = c;
|
|
665
|
-
const g = s.uri = this.resolve(n) ?? "";
|
|
666
|
-
n !== "" && (n === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), g === "" && (this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`), s.uri = n));
|
|
667
|
-
}
|
|
668
|
-
if (t.length === 0) return;
|
|
669
|
-
const { attributes: o } = s, a = /* @__PURE__ */ new Set();
|
|
670
|
-
for (const n of t) {
|
|
671
|
-
const { name: c, prefix: g, local: A } = n;
|
|
672
|
-
let T, v;
|
|
673
|
-
g === "" ? (T = c === "xmlns" ? qt : "", v = c) : (T = this.resolve(g), T === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(g)}.`), T = g), v = `{${T}}${A}`), a.has(v) && this.fail(`duplicate attribute: ${v}.`), a.add(v), n.uri = T, o[c] = n;
|
|
674
|
-
}
|
|
675
|
-
this.attribList = [];
|
|
676
|
-
}
|
|
677
|
-
processAttribsPlain() {
|
|
678
|
-
const { attribList: t } = this, s = this.tag.attributes;
|
|
679
|
-
for (const { name: o, value: a } of t) s[o] !== void 0 && this.fail(`duplicate attribute: ${o}.`), s[o] = a;
|
|
680
|
-
this.attribList = [];
|
|
681
|
-
}
|
|
682
|
-
openTag() {
|
|
683
|
-
this.processAttribs();
|
|
684
|
-
const { tags: t } = this, s = this.tag;
|
|
685
|
-
s.isSelfClosing = !1, this.openTagHandler?.(s), t.push(s), this.state = Y, this.name = "";
|
|
686
|
-
}
|
|
687
|
-
openSelfClosingTag() {
|
|
688
|
-
this.processAttribs();
|
|
689
|
-
const { tags: t } = this, s = this.tag;
|
|
690
|
-
s.isSelfClosing = !0, this.openTagHandler?.(s), this.closeTagHandler?.(s), (this.tag = t[t.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = Y, this.name = "";
|
|
691
|
-
}
|
|
692
|
-
closeTag() {
|
|
693
|
-
const { tags: t, name: s } = this;
|
|
694
|
-
if (this.state = Y, this.name = "", s === "") return this.fail("weird empty close tag."), void (this.text += "</>");
|
|
695
|
-
const o = this.closeTagHandler;
|
|
696
|
-
let a = t.length;
|
|
697
|
-
for (; a-- > 0; ) {
|
|
698
|
-
const n = this.tag = t.pop();
|
|
699
|
-
if (this.topNS = n.ns, o?.(n), n.name === s) break;
|
|
700
|
-
this.fail(`unexpected close tag: ${s}.`);
|
|
701
|
-
}
|
|
702
|
-
a === 0 ? this.closedRoot = !0 : a < 0 && (this.fail(`unmatched closing tag: ${s}.`), this.text += `</${s}>`);
|
|
703
|
-
}
|
|
704
|
-
parseEntity(t) {
|
|
705
|
-
if (t[0] !== "#") {
|
|
706
|
-
const o = this.ENTITIES[t];
|
|
707
|
-
return o !== void 0 ? o : (this.fail(this.isName(t) ? "undefined entity." : "disallowed character in entity name."), `&${t};`);
|
|
708
|
-
}
|
|
709
|
-
let s = NaN;
|
|
710
|
-
return t[1] === "x" && /^#x[0-9a-f]+$/i.test(t) ? s = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (s = parseInt(t.slice(1), 10)), this.isChar(s) ? String.fromCodePoint(s) : (this.fail("malformed character entity."), `&${t};`);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
var le, Dt;
|
|
714
|
-
(Dt = le || (le = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, Dt.parseStream = async (i, t, s) => {
|
|
715
|
-
const o = new Ze({ position: !1, ...s });
|
|
716
|
-
let a;
|
|
717
|
-
if (t.onOpenTagStart && o.on(Dt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(Dt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(Dt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(Dt.Events.Attribute, t.onAttribute), t.onText && o.on(Dt.Events.Text, t.onText), t.onError && o.on(Dt.Events.Error, t.onError), t.onEnd) {
|
|
718
|
-
t.onEnd;
|
|
719
|
-
const n = () => {
|
|
720
|
-
a = t.onEnd();
|
|
721
|
-
};
|
|
722
|
-
o.on(Dt.Events.End, n);
|
|
723
|
-
}
|
|
724
|
-
for (; ; ) {
|
|
725
|
-
const { value: n, done: c } = await i.read();
|
|
726
|
-
if (c) break;
|
|
727
|
-
o.write(n);
|
|
728
|
-
}
|
|
729
|
-
return o.close(), a;
|
|
730
|
-
};
|
|
731
|
-
const E = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1 && i !== "0" && i !== "off" && i !== "false" && null, L = (i) => {
|
|
732
|
-
const t = parseInt(i);
|
|
733
|
-
return isNaN(t) ? null : t;
|
|
734
|
-
}, wt = (i) => {
|
|
735
|
-
const t = parseFloat(i);
|
|
736
|
-
return isNaN(t) ? null : t;
|
|
737
|
-
}, I = null;
|
|
738
|
-
class Qe {
|
|
739
|
-
constructor() {
|
|
740
|
-
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
741
|
-
}
|
|
742
|
-
registerVisitor(t) {
|
|
743
|
-
this._registeredVisitors.set(t.from, t);
|
|
744
|
-
}
|
|
745
|
-
createEventHandler(t, s, o) {
|
|
746
|
-
const a = this._registeredVisitors, n = [];
|
|
747
|
-
let c = null, g = null, A = null, T = null;
|
|
748
|
-
const v = [], S = { key: null, source: t };
|
|
749
|
-
let y = null, V = !1;
|
|
750
|
-
const R = (p, l) => {
|
|
751
|
-
let f = A.attributes[p];
|
|
752
|
-
if (l) {
|
|
753
|
-
if (Array.isArray(l)) {
|
|
754
|
-
for (let P = 0; P < l.length; P++) if (f == null || (f = l[P](f), f == null)) return;
|
|
755
|
-
} else if (f == null || (f = l(f), f == null)) return;
|
|
756
|
-
}
|
|
757
|
-
return f;
|
|
758
|
-
}, k = { getSource: () => y.source, setSource: (p) => {
|
|
759
|
-
y.source = p;
|
|
760
|
-
}, setKey: (p) => {
|
|
761
|
-
y.key = p;
|
|
762
|
-
}, getFrom: () => A, getAttribute: (p, l) => R(p, l) ?? null, hasAttribute: (p) => k.getAttribute(p) !== null, getParent: () => v[v.length - 2].source, getPath: () => {
|
|
763
|
-
const p = [];
|
|
764
|
-
for (let l = 0; l < n.length; l++) p.push(n[l].local);
|
|
765
|
-
return p.join("\\");
|
|
766
|
-
}, parseAttribute: R, copyToObject: (p, l, f, P) => {
|
|
767
|
-
const _ = R(P ?? l, f);
|
|
768
|
-
_ !== void 0 && (p[l] = _);
|
|
769
|
-
}, copyTo: (p, l, f) => {
|
|
770
|
-
const P = R(f ?? p, l);
|
|
771
|
-
P !== void 0 && (y.source[p] = P);
|
|
772
|
-
}, warn: (p) => {
|
|
773
|
-
o ? o?.(p) : console.warn(p);
|
|
774
|
-
} };
|
|
775
|
-
return { onOpenTag: (p) => {
|
|
776
|
-
let l = p.name;
|
|
777
|
-
const f = l.indexOf(":");
|
|
778
|
-
f !== -1 && (l = l.slice(f + 1));
|
|
779
|
-
const P = a.get(l);
|
|
780
|
-
if (c = { local: l, visitor: P, tag: p, destination: null }, V) return n.push(c), g = l, void (A = p);
|
|
781
|
-
T = c?.visitor ?? null, P && (y = n.length === 0 ? S : T?.to !== null ? { key: null, source: {} } : null, c.destination = y, y && v.push(y)), n.push(c), g = l, A = p, V = T?.to === null, T?.openTag?.(k);
|
|
782
|
-
}, onCloseTag: (p) => {
|
|
783
|
-
let l = p.name;
|
|
784
|
-
const f = l.indexOf(":");
|
|
785
|
-
if (f !== -1 && (l = l.slice(f + 1)), l !== g) throw new Error(`mismatch open/close tag: '${l}'/'${g}'`);
|
|
786
|
-
V || T?.closeTag?.(k);
|
|
787
|
-
const P = n.pop() ?? null;
|
|
788
|
-
c = n[n.length - 1] ?? null;
|
|
789
|
-
const _ = P?.destination;
|
|
790
|
-
if (_) {
|
|
791
|
-
v.pop(), y = v[v.length - 1] ?? S;
|
|
792
|
-
const ot = P.visitor;
|
|
793
|
-
ot && ot.to && _.source !== void 0 && (Array.isArray(ot.to) ? y.source.push ? y.source.push(_.source) : o?.(`Unable to parse array for ${ot.from} at ${k.getPath()}`) : _.key ? y.source[_.key] = _.source : typeof ot.to == "string" && (y.source[ot.to] = _.source));
|
|
794
|
-
}
|
|
795
|
-
g = c?.local ?? null, A = c?.tag ?? null, T = c?.visitor ?? null, V = !c?.destination;
|
|
796
|
-
}, onText: (p) => {
|
|
797
|
-
T?.text?.(p, k);
|
|
798
|
-
}, onEnd: s };
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
const fe = (i, t, s, o = null) => {
|
|
802
|
-
if (!i) return null;
|
|
803
|
-
let a = i;
|
|
804
|
-
a.startsWith("/") && (a = a.substring(1));
|
|
805
|
-
let n = o?.parsedRefs?.get(i);
|
|
806
|
-
if (n !== void 0) return n;
|
|
807
|
-
const c = t(a);
|
|
808
|
-
if (!c) return null;
|
|
809
|
-
let g = c.content;
|
|
810
|
-
try {
|
|
811
|
-
s && (g = s(g));
|
|
812
|
-
} catch (A) {
|
|
813
|
-
console.warn(A);
|
|
814
|
-
}
|
|
815
|
-
return o?.parsedRefs?.set(i, g), g;
|
|
816
|
-
}, ce = (i, t, s, o, a = null) => {
|
|
817
|
-
if (!i) return null;
|
|
818
|
-
let n = i;
|
|
819
|
-
n.startsWith("/") && (n = n.substring(1));
|
|
820
|
-
let c = a?.parsedRefs?.get(i);
|
|
821
|
-
if (c !== void 0) return c;
|
|
822
|
-
const g = t(n);
|
|
823
|
-
if (!g) return null;
|
|
824
|
-
const A = g.content;
|
|
825
|
-
try {
|
|
826
|
-
const T = new TextDecoder().decode(A), v = s.parseFromString(T, "text/xml"), S = o.convert(v, i, a);
|
|
827
|
-
return a?.parsedRefs?.set(i, S), S;
|
|
828
|
-
} catch (T) {
|
|
829
|
-
console.warn(T);
|
|
830
|
-
}
|
|
831
|
-
return null;
|
|
832
|
-
}, Bt = (i, t, s, o, a = null) => {
|
|
833
|
-
const n = /* @__PURE__ */ new Map();
|
|
834
|
-
let c = t.Directory[i];
|
|
835
|
-
const g = c ? c.length : 0;
|
|
836
|
-
for (let A = 0; A < g; A++) {
|
|
837
|
-
const T = c[A];
|
|
838
|
-
if (!T) continue;
|
|
839
|
-
let v = T;
|
|
840
|
-
v.startsWith("/") && (v = v.substring(1));
|
|
841
|
-
const S = ce(v, (y) => t.files[y], s, o, a);
|
|
842
|
-
n.set(v, S);
|
|
843
|
-
}
|
|
844
|
-
return n;
|
|
845
|
-
}, Je = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], me = (i, t = "dk1") => {
|
|
846
|
-
let s;
|
|
847
|
-
const o = i("auto");
|
|
848
|
-
o === void 0 || o !== "1" && o !== "true" || (s = t);
|
|
849
|
-
const a = i("indexed");
|
|
850
|
-
a && (s = `index${a}`);
|
|
851
|
-
const n = i("rgb");
|
|
852
|
-
n && (s = n.toLowerCase(), n.length !== 8 || n.startsWith("FF") || (s = "FF" + n.substring(2, n.length)));
|
|
853
|
-
const c = i("theme");
|
|
854
|
-
c && (s = Je[c]);
|
|
855
|
-
let g = i("tint");
|
|
856
|
-
if (g && (s += ` ${Pe.AdjustmentType.ETint} ${parseFloat(g)}`), s) return s;
|
|
857
|
-
}, Ke = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), is = (i) => i ? re.roundAccurately(parseFloat(i) / 12700, 4) : null, os = (i) => i ? re.roundAccurately(parseFloat(i) / 9525, 1) : null, rs = (i) => parseFloat(i) / 1e3, ns = (i) => parseFloat(i) / 6e4, Ye = (i) => i === "true" || i === "1";
|
|
858
|
-
class $t {
|
|
859
|
-
static {
|
|
860
|
-
this.Collapsed = 1;
|
|
861
|
-
}
|
|
862
|
-
static {
|
|
863
|
-
this.CustomFormat = 2;
|
|
864
|
-
}
|
|
865
|
-
static {
|
|
866
|
-
this.CustomHeight = 4;
|
|
867
|
-
}
|
|
868
|
-
static {
|
|
869
|
-
this.Hidden = 8;
|
|
870
|
-
}
|
|
871
|
-
static {
|
|
872
|
-
this.Ht = 16;
|
|
873
|
-
}
|
|
874
|
-
static {
|
|
875
|
-
this.OutlineLevel = 32;
|
|
876
|
-
}
|
|
877
|
-
static {
|
|
878
|
-
this.Ph = 64;
|
|
879
|
-
}
|
|
880
|
-
static {
|
|
881
|
-
this.R = 128;
|
|
882
|
-
}
|
|
883
|
-
static {
|
|
884
|
-
this.S = 256;
|
|
885
|
-
}
|
|
886
|
-
static {
|
|
887
|
-
this.Spans = 512;
|
|
888
|
-
}
|
|
889
|
-
static {
|
|
890
|
-
this.ThickBot = 1024;
|
|
891
|
-
}
|
|
892
|
-
static {
|
|
893
|
-
this.ThickTop = 2048;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
const ts = (i, t, s) => {
|
|
897
|
-
if (i[0].value[0] === i[1].value[0]) return t;
|
|
898
|
-
}, Te = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, es = (i, t, s, o, a, n, c) => {
|
|
899
|
-
let g = !1, A = !1, T = [], v = !1, S = null, y = null, V = null, R = null, k = null, p = null;
|
|
900
|
-
const l = c?.get("richData") ?? [], f = vt.normalizeA1ToR1C1, P = ne.createConflatingRanges(), _ = /* @__PURE__ */ new Map(), ot = [];
|
|
901
|
-
let Et = null;
|
|
902
|
-
const zt = ne.createConflatingRanges();
|
|
903
|
-
let St, mt = !1, B = -1, q = -1, rt = null, Tt = null;
|
|
904
|
-
const ct = [];
|
|
905
|
-
let Pt = null, Ht = -2, dt = 0, Ct = "", yt = "", kt = "", ht = "", At = "", bt = "", J = "", jt = "", Gt = "", Kt = "", It = "", Yt = "", Xt = "", te = "", pt = !0, x = null, W = !1, z = !1, G = null, nt = 0;
|
|
906
|
-
return { ...s, onEnd: () => {
|
|
907
|
-
ct.length > 0 && (t.rows = ct);
|
|
908
|
-
let h = P.done(ts);
|
|
909
|
-
const C = h.length;
|
|
910
|
-
if (C > 0) {
|
|
911
|
-
const b = new Array(C);
|
|
912
|
-
for (let w = 0; w < C; w++) {
|
|
913
|
-
const j = h[w], tt = vt.rangeToString(j), Z = j.value[1], ut = vt.resolveRelativeToA1(Z, j.rowStart, j.colStart);
|
|
914
|
-
b[w] = [tt, ut];
|
|
915
|
-
}
|
|
916
|
-
t.formulas = b;
|
|
917
|
-
}
|
|
918
|
-
const K = zt.done(!0), D = K.length;
|
|
919
|
-
if (D > 0) {
|
|
920
|
-
const b = new Array(D);
|
|
921
|
-
for (let w = 0; w < D; w++) {
|
|
922
|
-
const j = K[w], tt = vt.rangeToString(j);
|
|
923
|
-
b[w] = tt;
|
|
924
|
-
}
|
|
925
|
-
t.volatile = b;
|
|
926
|
-
}
|
|
927
|
-
if (ot.length > 0 && (t.dynamicArray = [...ot]), T.length > 0) {
|
|
928
|
-
T.sort(ne.createRangeComparator(Oe.Orientation.Column));
|
|
929
|
-
const b = [];
|
|
930
|
-
let w = null, j = -1, tt = -1, Z = -1, ut = -1, Q = null;
|
|
931
|
-
const Ut = T.length;
|
|
932
|
-
Ut > 0 && (w = T[0], j = w.colStart, tt = w.colEnd, Z = w.rowEnd, ut = w.value, b.push(w));
|
|
933
|
-
for (let O = 1; O < Ut; O++) Q = T[O], ut !== Q.value || j !== Q.colStart || tt !== Q.colEnd || Z + 1 !== Q.rowEnd ? (b.push(Q), w = Q, j = w.colStart, tt = w.colEnd, Z = w.rowEnd, ut = w.value) : (Z = Q.rowEnd, w.rowEnd = Z);
|
|
934
|
-
let $ = [];
|
|
935
|
-
for (let O = 0; O < b.length; O++) {
|
|
936
|
-
const gt = b[O];
|
|
937
|
-
$.push({ r: { colStart: gt.colStart, colEnd: gt.colEnd, rowStart: gt.rowStart, rowEnd: gt.rowEnd }, v: gt.value });
|
|
938
|
-
}
|
|
939
|
-
t.directStyles = $;
|
|
940
|
-
}
|
|
941
|
-
const H = i.build();
|
|
942
|
-
if (H) {
|
|
943
|
-
const b = H.tuples;
|
|
944
|
-
t.data = b;
|
|
945
|
-
}
|
|
946
|
-
s?.onEnd?.();
|
|
947
|
-
}, onOpenTag: (h) => {
|
|
948
|
-
let C = h.name;
|
|
949
|
-
const K = C.indexOf(":");
|
|
950
|
-
if (K !== -1 && (C = C.slice(K + 1)), nt++, nt % 196608 == 0 && a(nt), St) {
|
|
951
|
-
const D = h.attributes;
|
|
952
|
-
switch (C) {
|
|
953
|
-
case "v":
|
|
954
|
-
A = !0;
|
|
955
|
-
break;
|
|
956
|
-
case "f":
|
|
957
|
-
switch (D.t ?? null) {
|
|
958
|
-
case null:
|
|
959
|
-
case "normal":
|
|
960
|
-
v = !0;
|
|
961
|
-
break;
|
|
962
|
-
case "shared":
|
|
963
|
-
const H = D.si;
|
|
964
|
-
y = D.ref, S = H;
|
|
965
|
-
break;
|
|
966
|
-
case "array":
|
|
967
|
-
v = !0, y = D.ref, Et = [y, !1];
|
|
968
|
-
break;
|
|
969
|
-
case "datatable":
|
|
970
|
-
v = !0, y = D.ref, v = !0;
|
|
971
|
-
}
|
|
972
|
-
D.ca !== void 0 && zt.append(B, q);
|
|
973
|
-
break;
|
|
974
|
-
case "is":
|
|
975
|
-
return void (mt = !0);
|
|
976
|
-
}
|
|
977
|
-
return void (mt && n?.onOpenTag(h));
|
|
978
|
-
}
|
|
979
|
-
if (g) {
|
|
980
|
-
if (C === "c") {
|
|
981
|
-
St = h;
|
|
982
|
-
const D = h.attributes.r;
|
|
983
|
-
q = vt.fastStringToCol(D);
|
|
984
|
-
const H = h.attributes.t;
|
|
985
|
-
H === void 0 ? Tt = null : (Tt = H, Tt === "str" && (mt = !0));
|
|
986
|
-
let b = h.attributes.s;
|
|
987
|
-
b === void 0 && (G !== null || z) && (b = "0"), b !== void 0 && (b = parseInt(b), x && x.value === b && x.colEnd + 1 === q ? x.colEnd = q : (x = { colStart: q, rowStart: B, colEnd: q, rowEnd: B, value: b }, T.push(x)));
|
|
988
|
-
}
|
|
989
|
-
} else {
|
|
990
|
-
if (C === "row") {
|
|
991
|
-
g = !0;
|
|
992
|
-
const D = h.attributes.r;
|
|
993
|
-
if (B = parseInt(D) - 1, dt = 0, yt = h.attributes.customHeight, yt !== void 0 && (dt |= $t.CustomHeight), yt !== Gt && (pt = !0, Gt = yt), Ct = h.attributes.ht, Ct !== void 0 && (dt |= $t.Ht), Ct !== jt && (pt = !0, jt = Ct), kt = h.attributes.hidden, kt !== void 0 && (dt |= $t.Hidden), kt !== Kt && (pt = !0, Kt = kt), At = h.attributes.s, At !== void 0 && (dt |= $t.S), At !== Yt && (pt = !0, Yt = At), ht = h.attributes.customFormat, ht !== void 0 && (dt |= $t.CustomFormat), ht !== It && (pt = !0, It = ht), bt = h.attributes.outlineLevel, bt !== void 0 && (dt |= $t.OutlineLevel), bt !== Xt && (pt = !0, Xt = bt), J = h.attributes.collapsed, J !== void 0 && (dt |= $t.Collapsed), J !== te && (pt = !0, te = J), dt !== 0) if (Ht + 1 !== B || pt) {
|
|
994
|
-
const H = yt !== void 0 && (yt === "1" || yt === "true");
|
|
995
|
-
G = ht === void 0 || ht !== "1" && ht !== "true" || At === void 0 ? null : At, Pt = { min: B, max: B, sz: H && Ct !== void 0 ? parseFloat(Ct) : -1, csz: H, h: kt !== void 0 && (kt === "1" || kt === "true"), s: G === null ? void 0 : G === "0" ? 0 : parseInt(G), l: bt === void 0 || bt === "0" ? 0 : parseInt(bt), cl: J !== void 0 && (J === "1" || J === "true") }, ct.push(Pt);
|
|
996
|
-
} else Pt.max = B;
|
|
997
|
-
return Ht = B, void (pt = !1);
|
|
998
|
-
}
|
|
999
|
-
if (!W && C === "sheetData") {
|
|
1000
|
-
W = !0;
|
|
1001
|
-
const D = t.cols, H = D ? D.length : 0;
|
|
1002
|
-
for (let b = 0; !z && b < H; b++) D[b].s && (z = !0);
|
|
1003
|
-
}
|
|
1004
|
-
s?.onOpenTag(h);
|
|
1005
|
-
}
|
|
1006
|
-
}, onCloseTag: (h) => {
|
|
1007
|
-
if (St) {
|
|
1008
|
-
let C = h.name;
|
|
1009
|
-
const K = C.indexOf(":");
|
|
1010
|
-
if (K !== -1 && (C = C.slice(K + 1)), mt) if (C === "is" || C === "v") {
|
|
1011
|
-
const D = n?.onEnd();
|
|
1012
|
-
D !== null && i.addValue(B, q, "" + D);
|
|
1013
|
-
} else n?.onCloseTag?.(h);
|
|
1014
|
-
return A && (A = !1), void (C === "c" && (St = null, mt = !1));
|
|
1015
|
-
}
|
|
1016
|
-
if (g) return g = !1, void (x = null);
|
|
1017
|
-
s?.onCloseTag(h);
|
|
1018
|
-
}, onText: (h) => {
|
|
1019
|
-
if (h = h.trim(), A) {
|
|
1020
|
-
switch (rt = null, Tt) {
|
|
1021
|
-
case null:
|
|
1022
|
-
case "n":
|
|
1023
|
-
rt = parseFloat(h);
|
|
1024
|
-
break;
|
|
1025
|
-
case "b":
|
|
1026
|
-
rt = h === "1" || h === "true";
|
|
1027
|
-
break;
|
|
1028
|
-
case "s":
|
|
1029
|
-
rt = h;
|
|
1030
|
-
break;
|
|
1031
|
-
case "e":
|
|
1032
|
-
if (h === "#VALUE!") {
|
|
1033
|
-
const K = St.attributes.vm;
|
|
1034
|
-
if (K !== void 0) {
|
|
1035
|
-
const D = l[parseInt(K) - 1];
|
|
1036
|
-
if (D && D.isFormulaError) {
|
|
1037
|
-
rt = { t: Mt.Error, v: D.getCode() };
|
|
1038
|
-
break;
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
const C = Ve.getBuiltInByLabel(h);
|
|
1043
|
-
C ? rt = { t: Mt.Error, v: C.getCode() } : (rt = h, o?.(`Unknown formula error '${h}' in cell ${vt.cellToString({ colIndex: q, rowIndex: B })}`));
|
|
1044
|
-
break;
|
|
1045
|
-
case "str":
|
|
1046
|
-
case "inlineStr":
|
|
1047
|
-
mt = !0;
|
|
1048
|
-
}
|
|
1049
|
-
rt !== null && i.addValue(B, q, rt);
|
|
1050
|
-
}
|
|
1051
|
-
if (Et && (Tt === "e" && (Et[1] = !0), ot.push(Et), Et = null), S) if (k === S) R = p;
|
|
1052
|
-
else {
|
|
1053
|
-
if (R = _.get(S), !R) {
|
|
1054
|
-
const C = [];
|
|
1055
|
-
V = f(h, B, q, C), R = [V, C, h], _.set(S, R);
|
|
1056
|
-
}
|
|
1057
|
-
k = S, p = R;
|
|
1058
|
-
}
|
|
1059
|
-
if (v) {
|
|
1060
|
-
const C = [];
|
|
1061
|
-
V = f(h, B, q, C), R = [V, C, h];
|
|
1062
|
-
}
|
|
1063
|
-
if (R) return P.append(B, q, R), R = null, v = !1, S = null, void (y = null);
|
|
1064
|
-
mt ? n?.onText(h) : g || s?.onText(h);
|
|
1065
|
-
} };
|
|
1066
|
-
}, as = Object.freeze(Object.defineProperty({ __proto__: null, readBufferXLSX: async (i, t) => {
|
|
1067
|
-
const { password: s, createWorkbookOptions: o = {}, ...a } = t ?? {}, n = [], c = t?.progress, g = c?.onStart?.(t?.name ?? "Parsing XLSX");
|
|
1068
|
-
await Promise.resolve(g);
|
|
1069
|
-
const A = c?.onProgress;
|
|
1070
|
-
let T = 0;
|
|
1071
|
-
const v = import("./BcWyKhPi9t85pwd7.js"), S = import("./GsXdWfv7Tzy6DDvJ.js");
|
|
1072
|
-
let y = null;
|
|
1073
|
-
try {
|
|
1074
|
-
y = new DOMParser();
|
|
1075
|
-
} catch {
|
|
1076
|
-
}
|
|
1077
|
-
let V = null;
|
|
1078
|
-
y || (V = import("./BrCiF7ljEOZ0j6mo.js").then((l) => l.i));
|
|
1079
|
-
let R = null, k = null, p = null;
|
|
1080
|
-
try {
|
|
1081
|
-
const l = await Promise.all([v, S, V]);
|
|
1082
|
-
R = l[0], k = l[1], p = l[2];
|
|
1083
|
-
} catch (l) {
|
|
1084
|
-
throw new Error("Unable to load XLSX parser.", { cause: l });
|
|
1085
|
-
}
|
|
1086
|
-
try {
|
|
1087
|
-
const l = R.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
|
|
1088
|
-
if (!l.Directory) throw new Se("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
1089
|
-
l.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], l.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
|
|
1090
|
-
const f = new k.FromOOXMLConverter(), P = y ?? new p.DOMParser(), _ = o?.resources ?? new Ce(), ot = _.beginPersist(), Et = {}, zt = /* @__PURE__ */ new Set(), St = /* @__PURE__ */ new Map();
|
|
1091
|
-
St.set("richTypes", []);
|
|
1092
|
-
const mt = /* @__PURE__ */ new Map(), B = [], q = (x) => l.files[x], rt = (x, W) => {
|
|
1093
|
-
const z = x.lastIndexOf("/"), G = x.substring(0, z + 1) + "_rels/" + x.substring(z + 1, x.length) + ".rels";
|
|
1094
|
-
let nt = W.get(G);
|
|
1095
|
-
return nt || (nt = ((h, C, K, D, H = null) => {
|
|
1096
|
-
if (!h) return null;
|
|
1097
|
-
const b = ce(h, C, K, D, H);
|
|
1098
|
-
if (!b) return null;
|
|
1099
|
-
const w = /* @__PURE__ */ new Map(), j = Object.keys(b), tt = j.length;
|
|
1100
|
-
for (let Z = 0; Z < tt; Z++) {
|
|
1101
|
-
const ut = j[Z], Q = b[ut];
|
|
1102
|
-
w.set(ut, Q);
|
|
1103
|
-
}
|
|
1104
|
-
return w;
|
|
1105
|
-
})(G, q, P, f, ct), W.set(G, nt)), nt;
|
|
1106
|
-
}, Tt = (x, W, z, G = mt) => {
|
|
1107
|
-
let nt = rt(W, G).get(x), h = nt?.target;
|
|
1108
|
-
if (!h) return null;
|
|
1109
|
-
if (nt.targetMode === "External") return nt.target;
|
|
1110
|
-
const C = W.lastIndexOf("/"), K = W.substring(0, C + 1);
|
|
1111
|
-
h.startsWith("/") || (h = K + h), h = ((b) => {
|
|
1112
|
-
const w = b.split(/\/+/);
|
|
1113
|
-
return w.reduce((j, tt, Z) => (tt === "." ? j.splice(Z, 1) : tt === ".." && j.splice(Z - 1, 2), j), w).join("/");
|
|
1114
|
-
})(h);
|
|
1115
|
-
const D = f?.getVisitorParamsState().get("dxfs");
|
|
1116
|
-
let H = G.get(h);
|
|
1117
|
-
if (!H) if (nt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
|
|
1118
|
-
const b = {};
|
|
1119
|
-
H = b;
|
|
1120
|
-
const w = async () => {
|
|
1121
|
-
const j = (($, O, gt, et, at, st, Zt, Vt) => {
|
|
1122
|
-
const d = new Qe(), lt = new ke.TransposedBuilder();
|
|
1123
|
-
let X = null;
|
|
1124
|
-
d.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
|
|
1125
|
-
e.copyTo("ref", I);
|
|
1126
|
-
} }), d.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
|
|
1127
|
-
const r = e.getParent();
|
|
1128
|
-
r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
|
|
1129
|
-
const u = e.getAttribute("sqref");
|
|
1130
|
-
u && (e.getSource().ref = u.split(" ").join(",")), e.copyTo("pivot", E);
|
|
1131
|
-
}, closeTag: (e) => {
|
|
1132
|
-
const r = e.getSource();
|
|
1133
|
-
if (r.rule) {
|
|
1134
|
-
const u = Object.keys(r.rule);
|
|
1135
|
-
for (let m = 0; m < u.length; m++) {
|
|
1136
|
-
const M = u[m];
|
|
1137
|
-
M !== "rule" && (r[M] = r.rule[M]);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
delete r.rule;
|
|
1141
|
-
} }), d.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
|
|
1142
|
-
const r = e.getParent();
|
|
1143
|
-
e.copyToObject(r, "type", I), e.copyToObject(r, "priority", L), e.copyToObject(r, "stopIfTrue", E);
|
|
1144
|
-
const u = e.getAttribute("dxfId", L);
|
|
1145
|
-
if (u !== null) {
|
|
1146
|
-
let m = et?.get(u);
|
|
1147
|
-
m || (st?.(`Unable to load conditional color. Invalid dxfI: '${u}' at '${e.getPath()}'.`), m = {}), r.style = m;
|
|
1148
|
-
}
|
|
1149
|
-
e.copyToObject(r, "aboveAverage", E), e.copyToObject(r, "equalAverage", E), e.copyToObject(r, "stdDev", L), e.copyToObject(r, "bottom", E), e.copyToObject(r, "percent", E), e.copyToObject(r, "rank", L), e.copyToObject(r, "operator", I), e.copyToObject(r, "text", I), e.copyToObject(r, "timePeriod", I);
|
|
1150
|
-
} }), d.registerVisitor({ from: "colorScale", to: "colorScale" }), d.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
|
|
1151
|
-
e.copyTo("maxLength", L), e.copyTo("minLength", L), e.copyTo("showValue", E);
|
|
1152
|
-
} }), d.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
|
|
1153
|
-
e.copyTo("iconSet", I), e.copyTo("reverse", E), e.copyTo("showValue", E);
|
|
1154
|
-
} }), d.registerVisitor({ from: "formula", to: null, text: (e, r) => {
|
|
1155
|
-
const u = r.getParent();
|
|
1156
|
-
let m = u.formulas;
|
|
1157
|
-
m || (m = [], u.formulas = m), m.push(e);
|
|
1158
|
-
} }), d.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
|
|
1159
|
-
const r = e.getParent();
|
|
1160
|
-
r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", I), e.copyTo("value", wt, "val"), e.copyTo("gte", E);
|
|
1161
|
-
} }), d.registerVisitor({ from: "color", to: {}, openTag: (e) => {
|
|
1162
|
-
const r = e.getParent();
|
|
1163
|
-
r.colors || (r.colors = []);
|
|
1164
|
-
const u = me((m) => e.getAttribute(m));
|
|
1165
|
-
r.colors.push(u);
|
|
1166
|
-
} }), d.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
|
|
1167
|
-
const r = e.getParent();
|
|
1168
|
-
r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", L, "colId"), e.copyTo("hiddenButton", E), e.copyTo("showButton", E);
|
|
1169
|
-
} }), d.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
|
|
1170
|
-
const r = e.getParent();
|
|
1171
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Color, e.copyTo("cellColor", E), e.copyTo("styleId", L, "dxfId");
|
|
1172
|
-
} }), d.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
|
|
1173
|
-
const r = e.getParent();
|
|
1174
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Dynamic, e.copyTo("dynamicType", I, "type"), e.copyTo("val", wt), e.copyTo("maxVal", wt, "maxVal");
|
|
1175
|
-
} }), d.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
|
|
1176
|
-
const r = e.getParent();
|
|
1177
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Icon, e.copyTo("iconId", L), e.copyTo("iconSet", I);
|
|
1178
|
-
} }), d.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
|
|
1179
|
-
const r = e.getParent();
|
|
1180
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Top10, e.copyTo("filterVal", wt), e.copyTo("percent", E), e.copyTo("top", E), e.copyTo("val", wt);
|
|
1181
|
-
} }), d.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
|
|
1182
|
-
const r = e.getParent();
|
|
1183
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Items, e.copyTo("blank", E), e.copyTo("calendarType", I);
|
|
1184
|
-
} }), d.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
|
|
1185
|
-
const r = e.getParent();
|
|
1186
|
-
r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", I, "dateTimeGrouping"), e.copyTo("day", L), e.copyTo("hour", L), e.copyTo("minute", L), e.copyTo("month", L), e.copyTo("second", L), e.copyTo("year", L);
|
|
1187
|
-
} }), d.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
|
|
1188
|
-
const r = e.getParent();
|
|
1189
|
-
r.items || (r.items = []), r.items.push(e.getAttribute("val", wt));
|
|
1190
|
-
} }), d.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
|
|
1191
|
-
const r = e.getParent();
|
|
1192
|
-
r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Custom, e.copyTo("and", E);
|
|
1193
|
-
} }), d.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
|
|
1194
|
-
const r = e.getParent();
|
|
1195
|
-
r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", I), e.copyTo("value", wt, "val");
|
|
1196
|
-
} }), d.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
|
|
1197
|
-
e.copyTo("ref", I);
|
|
1198
|
-
} }), d.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
|
|
1199
|
-
const r = e.getParent();
|
|
1200
|
-
r.fields || (r.fields = []);
|
|
1201
|
-
const u = e.getSource();
|
|
1202
|
-
r.fields.push(u), e.copyTo("sortOn", I, "sortBy"), e.copyTo("dxfId", I, "sortBy"), e.copyTo("iconSet", I), e.copyTo("customList", I);
|
|
1203
|
-
const m = e.getAttribute("ref");
|
|
1204
|
-
if (m) {
|
|
1205
|
-
const M = vt.fastStringToRange(m, Te).colStart, Lt = vt.fastStringToRange(r.ref, Te), se = Lt.colStart;
|
|
1206
|
-
u.offset = Lt ? M - se : M;
|
|
1207
|
-
}
|
|
1208
|
-
u.reverse = e.getAttribute("descending", E) ?? !1;
|
|
1209
|
-
} }), d.registerVisitor({ from: "AlternateContent", to: null });
|
|
1210
|
-
const ee = (e) => {
|
|
1211
|
-
X = e.getSource(), e.copyTo("topLeft", I, "topLeftCell");
|
|
1212
|
-
const r = Ye(e.getAttribute("defaultGridColor")), u = e.getAttribute("colorId");
|
|
1213
|
-
u === null || r || (e.getSource().gridLineColor = "index" + parseFloat(u)), e.copyTo("showZeros", E), e.copyTo("showFormulas", E), e.copyTo("zoomScale", L), e.copyTo("showRowHeaders", E, "showRowColHeaders"), e.copyTo("showColumnHeaders", E, "showRowColHeaders"), e.copyTo("showRowGridlines", E, "showGridLines"), e.copyTo("showColumnGridlines", E, "showGridLines");
|
|
1214
|
-
};
|
|
1215
|
-
d.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
|
|
1216
|
-
ee(e);
|
|
1217
|
-
}, closeTag: () => {
|
|
1218
|
-
X = null;
|
|
1219
|
-
} }), d.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
|
|
1220
|
-
e.setSource([]);
|
|
1221
|
-
} }), d.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
|
|
1222
|
-
ee(e);
|
|
1223
|
-
}, closeTag: () => {
|
|
1224
|
-
X = null;
|
|
1225
|
-
} }), d.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
|
|
1226
|
-
if (!X) return;
|
|
1227
|
-
e.copyTo("cell", I, "activeCell"), e.copyTo("rangeIndex", L, "activeCellId");
|
|
1228
|
-
const r = e.getAttribute("activeCell"), u = e.getAttribute("sqref");
|
|
1229
|
-
u && u !== r && (e.getSource().ranges = u.split(" "));
|
|
1230
|
-
} }), d.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
|
|
1231
|
-
if (X && e.getAttribute("state") === "frozen") {
|
|
1232
|
-
const r = {};
|
|
1233
|
-
X.freezePanes = r, e.copyToObject(r, "topLeft", I, "topLeftCell");
|
|
1234
|
-
const u = X.topLeft ? vt.fastStringToCell(X.topLeft) : { colIndex: 0, rowIndex: 0 }, m = { colIndex: 0, rowIndex: 0 };
|
|
1235
|
-
e.copyToObject(m, "colIndex", L, "xSplit"), e.copyToObject(m, "rowIndex", L, "ySplit");
|
|
1236
|
-
const M = { colIndex: u.colIndex + m.colIndex, rowIndex: u.rowIndex + m.rowIndex };
|
|
1237
|
-
r.coords = vt.cellToString(M);
|
|
1238
|
-
}
|
|
1239
|
-
} }), d.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
|
|
1240
|
-
const r = me((u) => e.getAttribute(u));
|
|
1241
|
-
r && ($.tabColor = r);
|
|
1242
|
-
} }), d.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
|
|
1243
|
-
} }), d.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
|
|
1244
|
-
} }), d.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
|
|
1245
|
-
} }), d.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
|
|
1246
|
-
} }), d.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
|
|
1247
|
-
} }), d.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
|
|
1248
|
-
e.setSource([]);
|
|
1249
|
-
} }), d.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
|
|
1250
|
-
const r = e.getAttribute("ref");
|
|
1251
|
-
e.setSource(r);
|
|
1252
|
-
} }), d.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
|
|
1253
|
-
e.setSource([]);
|
|
1254
|
-
} }), d.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
|
|
1255
|
-
const r = e.getAttribute("r:id"), u = e.getAttribute("ref");
|
|
1256
|
-
if (!u) return void console.warn("No ref found for hyperlink");
|
|
1257
|
-
e.setKey(u);
|
|
1258
|
-
let m = r ? O(r) : "";
|
|
1259
|
-
if (typeof m != "string") return void console.warn("Invalid address ", m);
|
|
1260
|
-
const M = e.getAttribute("location");
|
|
1261
|
-
m.endsWith("\\") && (m = m.substring(0, m.length - 1));
|
|
1262
|
-
const Lt = e.getAttribute("location");
|
|
1263
|
-
if (Lt && (M && M !== Lt && console.warn("display and location are different", M, Lt), m += "#" + Lt), !m) return void console.warn("No address found for hyperlink. r:id", r);
|
|
1264
|
-
let se;
|
|
1265
|
-
const he = e.getAttribute("tooltip");
|
|
1266
|
-
se = he ? { address: m, tooltip: he } : m, e.setSource({ r: u, v: se });
|
|
1267
|
-
} }), d.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
|
|
1268
|
-
const r = e.getAttribute("r:id");
|
|
1269
|
-
if (!r) return;
|
|
1270
|
-
const u = O(r);
|
|
1271
|
-
u ? e.setSource(u.movables) : console.warn("no drawing found for rId", r);
|
|
1272
|
-
} }), d.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
|
|
1273
|
-
e.setSource([]);
|
|
1274
|
-
} }), d.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
|
|
1275
|
-
const r = e.getAttribute("r:id");
|
|
1276
|
-
if (!r) return;
|
|
1277
|
-
const u = O(r);
|
|
1278
|
-
u ? e.setSource(u) : console.warn("no table found for rId", r);
|
|
1279
|
-
} }), d.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
|
|
1280
|
-
} }), d.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
|
|
1281
|
-
let r = !1;
|
|
1282
|
-
if (e.hasAttribute("sheet") && E(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
|
|
1283
|
-
const u = (M) => M === !0 || M === "1" || M === "on" || M === "true" || M === !1 || M === "0" || M === "off" || M === "false" || null;
|
|
1284
|
-
e.copyTo("autoFilter", u), e.copyTo("deleteColumns", u), e.copyTo("formatCells", u), e.copyTo("formatColumns", u), e.copyTo("formatRows", u), e.copyTo("insertColumns", u), e.copyTo("insertHyperlinks", u), e.copyTo("insertRows", u), e.copyTo("objects", u), e.copyTo("pivotTables", u), e.copyTo("scenarios", u), e.copyTo("selectUnlockedCells", u), e.copyTo("selectUnlockedCells", u), e.copyTo("sort", u);
|
|
1285
|
-
const m = {};
|
|
1286
|
-
e.copyToObject(m, "hash", I, "hashValue"), e.copyToObject(m, "algorithm", I, "algorithmName"), e.copyToObject(m, "salt", I, "saltValue"), e.copyToObject(m, "spinCount", L), Object.keys(m).length > 0 && (e.getSource().password = m);
|
|
1287
|
-
} }), d.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
|
|
1288
|
-
e.setSource({});
|
|
1289
|
-
} }), d.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
|
|
1290
|
-
const r = e.getAttribute("sqref");
|
|
1291
|
-
e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
|
|
1292
|
-
const u = {};
|
|
1293
|
-
e.copyToObject(u, "hash", I, "hashValue"), e.copyToObject(u, "algorithm", I, "algorithmName"), e.copyToObject(u, "salt", I, "saltValue"), e.copyToObject(u, "spinCount", L), Object.keys(u).length > 0 && (e.getSource().password = u);
|
|
1294
|
-
} }), d.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
|
|
1295
|
-
e.copyToObject($, "defaultColSize", wt, "defaultColWidth"), e.copyToObject($, "outlineLevelCol", L, "outlineLevelCol");
|
|
1296
|
-
const r = e.getAttribute("customHeight");
|
|
1297
|
-
r !== "1" && r !== "true" || e.copyToObject($, "defaultRowSize", wt, "defaultRowHeight"), e.copyToObject($, "outlineLevelRow", L, "outlineLevelRow");
|
|
1298
|
-
} }), d.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
|
|
1299
|
-
e.setSource([]);
|
|
1300
|
-
} }), d.registerVisitor({ from: "col", to: [], openTag: (e) => {
|
|
1301
|
-
e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", wt, "width"), e.copyTo("csz", E, "customWidth"), e.copyTo("h", E, "hidden"), e.copyTo("l", L, "outlineLevel"), e.copyTo("s", L, "style");
|
|
1302
|
-
} }), d.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
|
|
1303
|
-
e.warn("'OLE Objects' are not supported.");
|
|
1304
|
-
} });
|
|
1305
|
-
let Qt = null;
|
|
1306
|
-
const ve = { onOpenTag: (e) => {
|
|
1307
|
-
Qt === null && (Qt = "");
|
|
1308
|
-
}, onText: (e) => {
|
|
1309
|
-
Qt += e;
|
|
1310
|
-
}, onEnd: () => {
|
|
1311
|
-
const e = gt(Qt);
|
|
1312
|
-
return Qt = null, e;
|
|
1313
|
-
}, onError: (e) => {
|
|
1314
|
-
} };
|
|
1315
|
-
return es(lt, $, d.createEventHandler($, () => {
|
|
1316
|
-
}, st), st, (e) => {
|
|
1317
|
-
T += e, A?.(T);
|
|
1318
|
-
}, ve, Vt);
|
|
1319
|
-
})(b, ($, O = !1) => Tt($, h, O) ?? null, kt, D, 0, ($, O) => {
|
|
1320
|
-
O = O ? `${O} (${h})` : h, n.push([$, O]);
|
|
1321
|
-
}, 0, St), tt = fe(h, q), Z = await (async ($, O = 8388608) => {
|
|
1322
|
-
await (async () => {
|
|
1323
|
-
if (typeof ReadableStream > "u") if (typeof window > "u") {
|
|
1324
|
-
const { ReadableStream: st } = await import("./CI-oHEkHOo3xFtoH.js");
|
|
1325
|
-
globalThis.ReadableStream = st;
|
|
1326
|
-
} else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
|
|
1327
|
-
})();
|
|
1328
|
-
const gt = new TextDecoder("utf-8");
|
|
1329
|
-
let et = 0;
|
|
1330
|
-
const at = $ instanceof Uint8Array ? $ : new Uint8Array($);
|
|
1331
|
-
return new ReadableStream({ pull(st) {
|
|
1332
|
-
if (et >= at.byteLength) return void st.close();
|
|
1333
|
-
const Zt = at.subarray(et, Math.min(et + O, at.byteLength)), Vt = gt.decode(Zt, { stream: et + O < at.byteLength });
|
|
1334
|
-
st.enqueue(Vt), et += Zt.length;
|
|
1335
|
-
} }).getReader();
|
|
1336
|
-
})(tt);
|
|
1337
|
-
try {
|
|
1338
|
-
await le.parseStream(Z, j, { xmlns: !1 });
|
|
1339
|
-
} catch ($) {
|
|
1340
|
-
throw console.warn(`Error parsing sheet: '${h}'`, $), new Error(`Error parsing sheet: '${h}'`, { cause: $ });
|
|
1341
|
-
}
|
|
1342
|
-
const ut = rt(h, G);
|
|
1343
|
-
let Q, Ut = /* @__PURE__ */ new Map();
|
|
1344
|
-
if (ut) {
|
|
1345
|
-
const $ = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
|
|
1346
|
-
let O;
|
|
1347
|
-
ut.forEach((et, at) => {
|
|
1348
|
-
et.type === $ && (Q = Tt(at, h, !1, G)?.comments, Q && Q.forEach((st) => {
|
|
1349
|
-
Ut.set(st.id, st);
|
|
1350
|
-
}));
|
|
1351
|
-
});
|
|
1352
|
-
const gt = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
|
1353
|
-
if (ut.forEach((et, at) => {
|
|
1354
|
-
et.type === gt && (O = Tt(at, h, !1, G));
|
|
1355
|
-
}), O || Q) {
|
|
1356
|
-
const et = Q ?? [], at = O?.comments;
|
|
1357
|
-
if (at) {
|
|
1358
|
-
const st = O?.authors, Zt = at.length;
|
|
1359
|
-
for (let Vt = 0; Vt < Zt; Vt++) {
|
|
1360
|
-
const d = at[Vt];
|
|
1361
|
-
if (!d) continue;
|
|
1362
|
-
let lt = st && d.authorId !== void 0 ? st[d.authorId] : d.authorId;
|
|
1363
|
-
if (lt && lt.startsWith("tc=") && (lt = Ke(lt.substring(3)), Ut.has(lt))) continue;
|
|
1364
|
-
let X = null;
|
|
1365
|
-
lt && (X = ht.get(lt)), X || (X = At.get(lt)), X || (X = { id: re.uuidV4(), displayName: lt }, At.set(X.displayName, X), ht.set(X.id, X)), lt = X?.id ?? null;
|
|
1366
|
-
const ee = { id: re.uuidV4(), personId: lt, ref: d.ref, done: !1, asNote: !0, content: d.content };
|
|
1367
|
-
et.push(ee);
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
b.comments = et;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
};
|
|
1374
|
-
B.push(w());
|
|
1375
|
-
} else H = z ? fe(h, q, (b) => {
|
|
1376
|
-
const w = _.add({ buffer: b });
|
|
1377
|
-
return w.addReference(Et), zt.add(w), ot.toResourceId(w);
|
|
1378
|
-
}, ct) : ce(h, q, P, f, ct);
|
|
1379
|
-
return H;
|
|
1380
|
-
}, ct = { paramMap: St, getRefs: rt, getRef: Tt, parsedRefs: mt, addPerson: (x) => null }, Pt = [];
|
|
1381
|
-
let Ht = 0;
|
|
1382
|
-
l.Strings && (Ht = parseInt(l.Strings.Unique ?? l.Strings.length ?? 0));
|
|
1383
|
-
const dt = l.Strings ?? [];
|
|
1384
|
-
for (let x = 0; x < Ht; x++) Pt.push(dt[x]?.t ?? "");
|
|
1385
|
-
const Ct = /* @__PURE__ */ new Map();
|
|
1386
|
-
let yt = Ht;
|
|
1387
|
-
const kt = (x) => {
|
|
1388
|
-
const W = Ct.get(x);
|
|
1389
|
-
if (W !== void 0) return W;
|
|
1390
|
-
const z = yt;
|
|
1391
|
-
return Ct.set(x, yt++), Pt.push(x), z;
|
|
1392
|
-
}, ht = (Bt("richstructure", l, P, f, ct), Bt("richdata", l, P, f, ct), /* @__PURE__ */ new Map()), At = /* @__PURE__ */ new Map(), bt = Bt("people", l, P, f);
|
|
1393
|
-
let J = null;
|
|
1394
|
-
if (bt.size > 0 && (J = bt.entries().next()?.value?.[1]?.persons, J)) {
|
|
1395
|
-
const x = J.length;
|
|
1396
|
-
for (let W = 0; W < x; W++) {
|
|
1397
|
-
const z = J[W];
|
|
1398
|
-
ht.set(z.id, z), ht.set(z.displayName, z);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
const jt = Bt("themes", l, P, f, ct);
|
|
1402
|
-
let Gt = null;
|
|
1403
|
-
if (jt && jt.entries) {
|
|
1404
|
-
let x = jt.entries().next();
|
|
1405
|
-
x?.value?.[1] && (Gt = x.value[1]);
|
|
1406
|
-
}
|
|
1407
|
-
const Kt = new Ae(Gt);
|
|
1408
|
-
let It = Bt("styles", l, P, f, ct).entries().next()?.value[1];
|
|
1409
|
-
It && (It = JSON.parse(De(It)));
|
|
1410
|
-
const Yt = Bt("workbooks", l, P, f, ct);
|
|
1411
|
-
await Promise.all(B);
|
|
1412
|
-
const Xt = { ...Yt.entries().next().value[1], styles: It, theme: Kt.toJSON() };
|
|
1413
|
-
Pt.length > 0 && (Xt.strings = Pt), J && J.length > 0 && (Xt.people = J);
|
|
1414
|
-
const te = { ...o, resources: _, json: Xt }, pt = new Ee(te);
|
|
1415
|
-
if (zt.forEach((x) => {
|
|
1416
|
-
x.deleteReference(Et);
|
|
1417
|
-
}), ot.endPersist(), n.length) {
|
|
1418
|
-
const x = c?.onWarning;
|
|
1419
|
-
if (x) for (const W of n) {
|
|
1420
|
-
const [z, G] = W;
|
|
1421
|
-
x(z, G);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
return c?.onComplete?.(T), pt;
|
|
1425
|
-
} catch (l) {
|
|
1426
|
-
let f = "Unable to parse XLSX.";
|
|
1427
|
-
throw l instanceof Ie && (f = "Unable to open XLSX. There are too many rows or columns."), new Error(f, { cause: l });
|
|
1428
|
-
}
|
|
1429
|
-
}, writeBufferXLSX: async (i, t) => {
|
|
1430
|
-
const s = await import("./BcWyKhPi9t85pwd7.js"), o = await i.toJSON(!0), a = s.utils.book_new();
|
|
1431
|
-
for (let n = 0; n < o.sheets.length; n++) {
|
|
1432
|
-
const c = o.sheets[n], g = s.utils.json_to_sheet([{}]);
|
|
1433
|
-
s.utils.book_append_sheet(a, g, c.name);
|
|
1434
|
-
const A = c.sheet, T = i.getSheetAt(n), v = T.getUsedRange();
|
|
1435
|
-
if (v ? (g["!ref"] = v.getA1(), v.forEach((S, y) => {
|
|
1436
|
-
const V = { t: "z" }, R = y.getCell().getStyle();
|
|
1437
|
-
if (!R.isNormal()) {
|
|
1438
|
-
let k = R.getNumberFormat();
|
|
1439
|
-
k !== Nt.Type.General && (k === Nt.Type.ShortDate ? k = "m/d/yyyy" : k === Nt.Type.MediumDate ? k = "d-mmm-yy" : k === Nt.Type.LongDate ? k = "[$-x-sysdate]dddd, mmmm dd, yyyy" : k === Nt.Type.ShortTime ? k = "h:mm" : k === Nt.Type.MediumTime ? k = "h:mm AM/PM" : k === Nt.Type.LongTime && (k = "h:mm:ss AM/PM"), V.z = k);
|
|
1440
|
-
}
|
|
1441
|
-
if (S !== null) switch (y.getType()) {
|
|
1442
|
-
case Mt.Number:
|
|
1443
|
-
V.t = "n", V.v = S;
|
|
1444
|
-
break;
|
|
1445
|
-
case Mt.String:
|
|
1446
|
-
V.t = "s", V.v = S;
|
|
1447
|
-
break;
|
|
1448
|
-
case Mt.Boolean:
|
|
1449
|
-
V.t = "b", V.v = S;
|
|
1450
|
-
break;
|
|
1451
|
-
case Mt.Error:
|
|
1452
|
-
V.t = "e", V.v = S.toString();
|
|
1453
|
-
case Mt.RichData:
|
|
1454
|
-
}
|
|
1455
|
-
g[y.getA1()] = V;
|
|
1456
|
-
})) : g["!ref"] = "A1:A1", A.merges?.length > 0) {
|
|
1457
|
-
const S = [];
|
|
1458
|
-
g["!merges"] = S;
|
|
1459
|
-
for (let y = 0; y < A.merges.length; y++) S.push(s.utils.decode_range(A.merges[y]));
|
|
1460
|
-
}
|
|
1461
|
-
if (A.cols?.length > 0) {
|
|
1462
|
-
const S = [];
|
|
1463
|
-
g["!cols"] = S;
|
|
1464
|
-
const y = A.cols, V = { width: A.defaultColSize ?? T.getColumnWidthAsFontUnit(T.getColumnHeaders().getDefaultSize()) }, R = y.length;
|
|
1465
|
-
for (let k = 0; k < R; k++) {
|
|
1466
|
-
const p = y[k];
|
|
1467
|
-
for (let f = S.length; f <= p.min - 1; f++) S.push(V);
|
|
1468
|
-
const l = {};
|
|
1469
|
-
p.sz !== void 0 && (l.width = p.sz), p.h !== void 0 && (l.hidden = p.h), p.l !== void 0 && (l.level = p.l);
|
|
1470
|
-
for (let f = p.min; f <= p.max; f++) S.push(l);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
return s.write(a, { type: "array", bookType: "xlsx" }), s.write(a, { type: "array", bookType: "xlsx" });
|
|
1475
|
-
} }, Symbol.toStringTag, { value: "Module" }));
|
|
1476
|
-
export {
|
|
1477
|
-
as as H,
|
|
1478
|
-
rs as a,
|
|
1479
|
-
Ye as b,
|
|
1480
|
-
os as c,
|
|
1481
|
-
me as d,
|
|
1482
|
-
ns as p,
|
|
1483
|
-
Ke as r,
|
|
1484
|
-
is as t
|
|
1485
|
-
};
|