@sheetxl/studio-vanilla 0.3.1 → 0.3.3
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/LICENSE.md +11 -11
- package/README.md +97 -97
- package/browser/cjs/{CzHenNm5o19h9rNf.cjs → -mcHZst9U0zNDZao.cjs} +1 -1
- package/browser/cjs/{CBJAarKn0X6M88pE.cjs → -q2o2lS8jxJdArvq.cjs} +1 -1
- package/browser/cjs/{BCwQKO-V-abKxWJ_.cjs → -wP4OG5GpQTxGLJN.cjs} +2 -2
- package/browser/cjs/{DoVq0lqvAcxtM1Q9.cjs → 2TmE8J3tbgenWyNa.cjs} +2 -2
- package/browser/cjs/{D-ca3kpTC3bPbYMY.cjs → 3ghCxtNVxZjrbziE.cjs} +1 -1
- package/browser/cjs/{DjrGUr-awhOmDtrE.cjs → 6AlZR3dVayTg7C5E.cjs} +36 -36
- package/browser/cjs/{C7OrIlP5y8YNBUSH.cjs → B0BcYYAX9Qq_i5Iv.cjs} +1 -1
- package/browser/cjs/{BF4_gTBFjNLsAuPo.cjs → B237Hj6a3Klw9rQn.cjs} +4 -4
- package/browser/cjs/{Dy4AAvOJQs8TKfi3.cjs → B24aLncmXYgEQNjl.cjs} +1 -1
- package/browser/cjs/{ClXPeqKnCdO5VQd1.cjs → B9C-V-MR_epPI-2J.cjs} +2 -2
- package/browser/cjs/{DGZ-53usY93Q9LZJ.cjs → BASowCefqJFspuu-.cjs} +1 -1
- package/browser/cjs/{MSWIE9Rd2oZbZuZB.cjs → BeDnbSWoeqV6GajE.cjs} +1 -1
- package/browser/cjs/{C8SAbjqWtcbByYiY.cjs → Bhq8u8Q04XpLmF4K.cjs} +2 -2
- package/browser/cjs/{C8hd-STurhDiTimj.cjs → BnYTCcol8RjTTC3U.cjs} +1 -1
- package/browser/cjs/{qhNuYY2km30jEjYq.cjs → BoBKeal3_qovATWu.cjs} +2 -2
- package/browser/cjs/{DzvuCPwdW59TYNeg.cjs → BucBlzmuZS_nYU9N.cjs} +1 -1
- package/browser/cjs/{C3cZA4YXXR0nGmiX.cjs → C-YXuaIn5H1e3gGL.cjs} +2 -2
- package/browser/cjs/{BRQNzdFmQ9PNvWfV.cjs → C662YNYNcFb-AwnS.cjs} +2 -2
- package/browser/cjs/{J_OG6N-DJrUW5gl6.cjs → CGg3vZ0YENmM73uu.cjs} +1 -1
- package/browser/cjs/{OhHbe4dM7GBzMzB9.cjs → CJ9WKDMLDxv2vmlL.cjs} +1 -1
- package/browser/cjs/{DO9ZaMqU-TGY63RK.cjs → CSZ-Bfo-TZpVumqr.cjs} +1 -1
- package/browser/cjs/{B_9pnEZ3P5dxBLVz.cjs → CcxjUuuq3eq1io9D.cjs} +1 -1
- package/browser/cjs/{Cy3k3rXLi24oJPm-.cjs → Ch4kNO1QwQ4Dqczw.cjs} +2 -2
- package/browser/cjs/{CabhMyhLi9hYK9FO.cjs → CrXR8mOrQVdukohR.cjs} +1 -1
- package/browser/cjs/{B29HyGkvyTaqtIuC.cjs → CuLinKNAohDMFqJU.cjs} +2 -2
- package/browser/cjs/{Do0vp6vAs3RSV-Wj.cjs → D0Ruzl2vdZGdUhjE.cjs} +2 -2
- package/browser/cjs/{BgGqhWOYof8HtKvS.cjs → D4CfqUrC04nbs39G.cjs} +1 -1
- package/browser/cjs/{DFoejjkymKumh6SJ.cjs → D4a_UoEEluqny9gi.cjs} +1 -1
- package/browser/cjs/{CFfzGa0ejQ07wxHV.cjs → D6cHa8Tv5I8L_uAO.cjs} +1 -1
- package/browser/cjs/{DMJ4JoGWQ1NWhoNM.cjs → D7MyL7xgt0wGGz3I.cjs} +2 -2
- package/browser/cjs/{C4u2p0WIEc0W5hox.cjs → D7U5Wmdc51Op-pty.cjs} +1 -1
- package/browser/cjs/{cwVi8FCIym0yZxmX.cjs → D9SYWsd_viMxXbL_.cjs} +1 -1
- package/browser/cjs/{Dj5Aixw77uvtuMcZ.cjs → DMIPzZRAbLsma6rR.cjs} +2 -2
- package/browser/cjs/{dDk7hLjpihmO5-cX.cjs → DPTxGnV0pA87nrhG.cjs} +4 -4
- package/browser/cjs/{C5x7lcJ4jXraEzwd.cjs → DTtUhkXmo3x2L2GG.cjs} +1 -1
- package/browser/cjs/{CN7DAGeuWAMsmRhb.cjs → DbSTC90BuNxq2k-j.cjs} +1 -1
- package/browser/cjs/{DcQYUHhq5WoB1QxG.cjs → DgBFcVOVhZuytQ4k.cjs} +1 -1
- package/browser/cjs/{Y2adlqLM2N2Vzjg9.cjs → Dh5RBi3PW-5ty2QU.cjs} +1 -1
- package/browser/cjs/{BnWGeUEXNoVAHA9V.cjs → DnkioRlJqXrbcW-8.cjs} +1 -1
- package/browser/cjs/{CHT-XlD5pCRxYb1o.cjs → DoCfDJUgwatpHG4J.cjs} +4 -4
- package/browser/cjs/{B8iSa6r3JrD4vHjL.cjs → Dwc5vGQ4nkaSmift.cjs} +2 -2
- package/browser/cjs/{CDO0e018-e_cnUym.cjs → GbU6d05bhcxQrAUD.cjs} +2 -2
- package/browser/cjs/{VqhUjfIqtv4hC74q.cjs → OW7aZPHGxXjRF38A.cjs} +1 -1
- package/browser/cjs/{BIhAYujRx9pHZ67U.cjs → TJOJ_VEsTmCJ4d0P.cjs} +2 -2
- package/browser/cjs/{DK7XNv54M-Rj1fg6.cjs → VXCGmehGJvuKNhXg.cjs} +4 -4
- package/browser/cjs/{DSNepPmduhFJYvxi.cjs → WKvz7zs0yI8-TRzJ.cjs} +1 -1
- package/browser/cjs/{YWP5pMacbGbLcEZn.cjs → WQBNSYPbQzvO23r-.cjs} +2 -2
- package/browser/cjs/{CV8cwUmZBb2eYPim.cjs → XF920uRM7LSmFp49.cjs} +1 -1
- package/browser/cjs/{D9PapZZefCMRgdbF.cjs → XazDEHRGho7wJTUR.cjs} +2 -2
- package/browser/cjs/{Cl4uI7uL1nugyAcD.cjs → Zjw2XvR7-Zfykt20.cjs} +1 -1
- package/browser/cjs/{DnvWyFlaRONdjoOF.cjs → eM5uLWq0QtvNN4O-.cjs} +1 -1
- package/browser/cjs/{DdWNj_URRJBkxSgW.cjs → gjPOOFOH_THG1O-L.cjs} +1 -1
- package/browser/cjs/{CxEt88bduUlmhV5K.cjs → hhZA8Q_VAVRnX3Rz.cjs} +3 -3
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CU_R48ZMXIyABak8.cjs → pPJG7KbyLkcVi77H.cjs} +2 -2
- package/browser/cjs/{Ciie7NCkasQUFTqv.cjs → qjCnEqCfcXzLIady.cjs} +1 -1
- package/browser/cjs/{DOgxIZ6SD7AX7tN7.cjs → s238D5kFNyDNYzIV.cjs} +1 -1
- package/browser/cjs/{oeYUTiYZNPC7s8k1.cjs → t-6Fa6b5-CXTHDjn.cjs} +1 -1
- package/browser/cjs/{DWrbdNR6TNLNKinN.cjs → zvHV2c0_QPS3v2Wt.cjs} +3 -3
- package/browser/esm/{md8aPMcWKEZYJq3K.mjs → 1Esqj-uAqAeHBGzU.mjs} +63 -63
- package/browser/esm/{DeRdpzXPAT-NTuGX.mjs → B-v14ikVOXpmpHCI.mjs} +2 -2
- package/browser/esm/{CNM_6Ekj85ca8CMj.mjs → B1M7fpFXcO34FZ5C.mjs} +2 -2
- package/{cdn/assets/gkLlKpramCNBfTs7.js → browser/esm/B1bRlKApOQZbRHvx.mjs} +1 -1
- package/browser/esm/{BI0TtNjq7VHPYLFi.mjs → B3iFtnvwZZ0izvkj.mjs} +2 -2
- package/browser/esm/{DY-wznfI02TzBooB.mjs → B6nZCfPr7UmxzAi6.mjs} +437 -436
- package/{cdn/assets/Bai9y7ZvJNafZXkG.js → browser/esm/B7RdrgkvZilWOBgD.mjs} +1 -1
- package/{cdn/assets/BT81je-vUgJM770Z.js → browser/esm/B7k3pb4haBsw-Yvr.mjs} +1 -1
- package/{cdn/assets/CQqb_o_4QHZmqlml.js → browser/esm/B8ajmWm1J-ZsmBzK.mjs} +1 -1
- package/{cdn/assets/BfLOMcpVLb78_pS5.js → browser/esm/BGvKR9TNj2ORlcKm.mjs} +1 -1
- package/browser/esm/{CQeoE2w94fROIlBe.mjs → BNixyL5UPlHciWwi.mjs} +4 -4
- package/browser/esm/{CUny7mPoyQiagYdd.mjs → BXkh5kfYj7Zx_PAe.mjs} +1 -1
- package/browser/esm/{Bk0J-4CfOjaMoUjW.mjs → BZD8sqVzxMPTV1eH.mjs} +3 -3
- package/browser/esm/{BAmbFIYJN2lFgCcK.mjs → Bc8y371ooCwvBkRs.mjs} +1 -1
- package/browser/esm/{By7CDTFXYiSCNGfD.mjs → BezHCUZawkIGzzUm.mjs} +2 -2
- package/{cdn/assets/m6vgp5BteyB5mur7.js → browser/esm/BnxMjyy6JPTUe9Lg.mjs} +1 -1
- package/browser/esm/{CJG5baH0nxhKQDUu.mjs → BskzQvqHyjuVccIH.mjs} +2 -2
- package/browser/esm/{BhUrSLzqiTM2hBhI.mjs → Bz98C5-blFN81GJ-.mjs} +2 -2
- package/browser/esm/{uQZVXIPp9jLPfqko.mjs → BzS_V6RkpVpk_d1w.mjs} +4 -4
- package/{cdn/assets/CBmA6m_MD-T3IhT-.js → browser/esm/C1opHAkl00_vHPMO.mjs} +1 -1
- package/browser/esm/{DrCAbGKUtU3dQxf1.mjs → C7cRxJLNfGjCT_Hk.mjs} +2 -2
- package/{cdn/assets/Bhhrqsmqp91hJqxG.js → browser/esm/CM--Vw5PcrLIXc8O.mjs} +1 -1
- package/browser/esm/{COWqzRwRuDK_Bdic.mjs → CZ9K3g_56s3hfJO0.mjs} +2 -2
- package/browser/esm/{BiH9xaAzVGhk_0Qd.mjs → CaLAEGMKeQ3INVEV.mjs} +2 -2
- package/browser/esm/{D1i7jbpYgGHdUBHI.mjs → CdJVpNbmXP_fHybW.mjs} +3 -3
- package/browser/esm/{DxxYtl4yGitwPRVP.mjs → CflOcniWVa_VR5Wy.mjs} +1 -1
- package/browser/esm/{B9y2dkVuJJxTR6Cu.mjs → Cn9w-KgbsxAKNj6s.mjs} +1 -1
- package/{cdn/assets/BGTzGVKBHhjSJDwD.js → browser/esm/CtW_m0lUeW_X_FHB.mjs} +1 -1
- package/{cdn/assets/DIhOwgfJ-KW70dVG.js → browser/esm/D6KdwQgZEBMy0260.mjs} +1 -1
- package/browser/esm/{C0uV2sp4PwEuNpbn.mjs → DAOw8vm-XsJ_n7BK.mjs} +1 -1
- package/{cdn/assets/Ct4edmJJhlsaXjWT.js → browser/esm/DIKvxkHBBvYo2rnC.mjs} +1 -1
- package/browser/esm/{ILxB2ghS7La7VXBi.mjs → DNVkA-vwqtIw6aKf.mjs} +4 -4
- package/browser/esm/{Bn7Uxz6sXrXta-rf.mjs → DTHujOSrUxuBuwud.mjs} +2 -2
- package/{cdn/assets/CRkdWAFwM0QqPkBl.js → browser/esm/DTS0EgQuwHdS5aQN.mjs} +1 -1
- package/browser/esm/{_JHuVqxt7gNsoWn-.mjs → DaeiyDhcdRvg5nGs.mjs} +6 -6
- package/browser/esm/{uxqyDXIaFmgmll6p.mjs → DeSyxK8Ibb-tIa67.mjs} +1 -1
- package/browser/esm/{Cuy_iWJUt-DZPu_m.mjs → DgPz063GFvbhOHHK.mjs} +1 -1
- package/{cdn/assets/fwoCYLInyLSFnSZQ.js → browser/esm/DhFd9KX61TdmTNyk.mjs} +1 -1
- package/browser/esm/{ZVFMnXncU5v2xxQj.mjs → Di8gWiOWhfFzcOuw.mjs} +1 -1
- package/browser/esm/{CXufcwWBSTc0ufnJ.mjs → Dlg7LT4wsJCPSTCT.mjs} +2 -2
- package/browser/esm/{BGjWX_kSxlX68bbv.mjs → DqDxWoCftkWurpDk.mjs} +1 -1
- package/browser/esm/{BuyGJm1GNrHBofAV.mjs → DupExqAEenu5ZS6G.mjs} +2 -2
- package/browser/esm/{BFMayN3xlOUqRI_o.mjs → DwLRqrlPfv8xcbxB.mjs} +2 -2
- package/{cdn/assets/ZozmNU1fZz0rIwnM.js → browser/esm/Dwd9xRP6sCbvd7-2.mjs} +1 -1
- package/browser/esm/{TTzsQrEYYCtjJ_aM.mjs → Dy1zdTKMeT50nXcy.mjs} +1 -1
- package/{cdn/assets/BR58mmeGHPieLgMd.js → browser/esm/Dz_O3du2SrhYK47v.mjs} +1 -1
- package/browser/esm/{-GyxMlVRTAiygfTi.mjs → FXy016gXiiQkH7aF.mjs} +2 -2
- package/browser/esm/{DeFkwgSUXcAL-4MI.mjs → IbCi65rCiiLS_OGe.mjs} +4 -4
- package/browser/esm/{DjWavLHPu3GKEzTU.mjs → R2Li5a5IPMuoQEGD.mjs} +1 -1
- package/browser/esm/{DI31ljXqecIkfzC_.mjs → SWzqhkO1HABv0bfG.mjs} +1 -1
- package/browser/esm/{Cj_b4SBU9OExCjrq.mjs → VDflSVY_vwi7ZcHQ.mjs} +3 -3
- package/{cdn/assets/7LvL2PwFxo4tRjtC.js → browser/esm/dAJOajC7rsn3_hWk.mjs} +1 -1
- package/{cdn/assets/BZzMRDxX8W3pn7y9.js → browser/esm/fvsQWBiDZg7zRYOa.mjs} +1 -1
- package/{cdn/assets/CbAbkQUb6oMbznUI.js → browser/esm/iHc25sW_jPEvAQNG.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{QuHaOall6bLwODh8.mjs → nT3k8GnD4H3I293i.mjs} +2 -2
- package/browser/esm/{C70QesBx8A7k3kJu.mjs → o8Z04Tjc17JBUDsL.mjs} +1 -1
- package/browser/esm/{ESh2pnYgW_hn_Y4g.mjs → qbGHKDeXrxvghjMt.mjs} +1 -1
- package/browser/esm/{CdXVTrxlfpdxLJIW.mjs → uk5NsqjbkRuKv1vU.mjs} +1 -1
- package/cdn/assets/{C1-crlw6ThhTeBjo.js → 3ijH6Pl-l2q9T5Ky.js} +2 -2
- package/{browser/esm/gkLlKpramCNBfTs7.mjs → cdn/assets/B1bRlKApOQZbRHvx.js} +1 -1
- package/cdn/assets/{BHQY35m5ZsNLGx4s.js → B2P82Dvadjo7-hRY.js} +6 -6
- package/{browser/esm/Bai9y7ZvJNafZXkG.mjs → cdn/assets/B7RdrgkvZilWOBgD.js} +1 -1
- package/{browser/esm/BT81je-vUgJM770Z.mjs → cdn/assets/B7k3pb4haBsw-Yvr.js} +1 -1
- package/{browser/esm/CQqb_o_4QHZmqlml.mjs → cdn/assets/B8ajmWm1J-ZsmBzK.js} +1 -1
- package/cdn/assets/{DXG92ERB-BJo0KZb.js → BFDOApZozGNnJdxs.js} +4 -4
- package/{browser/esm/BfLOMcpVLb78_pS5.mjs → cdn/assets/BGvKR9TNj2ORlcKm.js} +1 -1
- package/cdn/assets/{Ds4qf07Q_SexJRqj.js → BJgFwyqDjKdTH0xW.js} +2 -2
- package/cdn/assets/{wVem_Fk0Cp-sFmAO.js → BKxjmGpW0pe8KUzm.js} +4 -4
- package/cdn/assets/{BXoIUikm6MxpGehl.js → BQFdL0Ou_nLqI7lR.js} +2 -2
- package/cdn/assets/{CUny7mPoyQiagYdd.js → BXkh5kfYj7Zx_PAe.js} +1 -1
- package/cdn/assets/{BAmbFIYJN2lFgCcK.js → Bc8y371ooCwvBkRs.js} +1 -1
- package/{browser/esm/m6vgp5BteyB5mur7.mjs → cdn/assets/BnxMjyy6JPTUe9Lg.js} +1 -1
- package/{browser/esm/CBmA6m_MD-T3IhT-.mjs → cdn/assets/C1opHAkl00_vHPMO.js} +1 -1
- package/cdn/assets/{D0lIj4chgObzK66x.js → C4Vp4GoCEGQgWaGc.js} +3 -3
- package/{browser/esm/Bhhrqsmqp91hJqxG.mjs → cdn/assets/CM--Vw5PcrLIXc8O.js} +1 -1
- package/cdn/assets/{Bs1BVe17rehcBW3a.js → COS-oUtP1lQi0Hd8.js} +2 -2
- package/cdn/assets/{Cu0RUSPX2LvwFQ6U.js → CSxbcCsSh3AdRzkk.js} +3 -3
- package/cdn/assets/{DxxYtl4yGitwPRVP.js → CflOcniWVa_VR5Wy.js} +1 -1
- package/cdn/assets/{B9y2dkVuJJxTR6Cu.js → Cn9w-KgbsxAKNj6s.js} +1 -1
- package/cdn/assets/{BIUc5ppdovF97mnI.js → Cqq1J11IdNmbXlgF.js} +3 -3
- package/cdn/assets/{BSAajMR-86LIB0Wr.js → Cqyz2pkIcU2pAivO.js} +2 -2
- package/{browser/esm/BGTzGVKBHhjSJDwD.mjs → cdn/assets/CtW_m0lUeW_X_FHB.js} +1 -1
- package/cdn/assets/{D0LTvhKDv_AaR2AJ.js → CuYtiG4SP9OK6dJP.js} +4 -4
- package/cdn/assets/{CsNx7C_i1iOqmV3n.js → D5Ns-uBNTj4-Jo0p.js} +2 -2
- package/{browser/esm/DIhOwgfJ-KW70dVG.mjs → cdn/assets/D6KdwQgZEBMy0260.js} +1 -1
- package/cdn/assets/{CqgEiFyDq2dBshfr.js → DAC77jdtNbZopLX5.js} +2 -2
- package/cdn/assets/{C0uV2sp4PwEuNpbn.js → DAOw8vm-XsJ_n7BK.js} +1 -1
- package/cdn/assets/{DGyubEhwYpXIK9_t.js → DCwhACFXcpYD60H9.js} +2 -2
- package/{browser/esm/Ct4edmJJhlsaXjWT.mjs → cdn/assets/DIKvxkHBBvYo2rnC.js} +1 -1
- package/cdn/assets/{DK-NdTpBC0eQBgZV.js → DJ3siDIdJVpw0GCs.js} +2 -2
- package/cdn/assets/{BnEAWPtKX5CgVKkp.js → DOLBqVto8cJdYLWp.js} +2 -2
- package/cdn/assets/{DK1bSVHKRKH0lHUk.js → DQQK1YdQWQGsESk_.js} +2 -2
- package/{browser/esm/CRkdWAFwM0QqPkBl.mjs → cdn/assets/DTS0EgQuwHdS5aQN.js} +1 -1
- package/cdn/assets/{uxqyDXIaFmgmll6p.js → DeSyxK8Ibb-tIa67.js} +1 -1
- package/cdn/assets/{CzPqPp4BsLzOooEG.js → Dew12-owBXPNmL1S.js} +2 -2
- package/cdn/assets/{Cuy_iWJUt-DZPu_m.js → DgPz063GFvbhOHHK.js} +1 -1
- package/{browser/esm/fwoCYLInyLSFnSZQ.mjs → cdn/assets/DhFd9KX61TdmTNyk.js} +1 -1
- package/cdn/assets/{ZVFMnXncU5v2xxQj.js → Di8gWiOWhfFzcOuw.js} +1 -1
- package/cdn/assets/{B7pTGz0qoUEf5oRZ.js → DirkLhQ9-HVY0eDv.js} +2 -2
- package/cdn/assets/{mGs6ZnI3Kp7ca3V9.js → Dk8MDG7PNGIWw80U.js} +4 -4
- package/cdn/assets/{BUBhf8MVk-zzMvIn.js → Dkcj5uYhkoaa5JJt.js} +2 -2
- package/cdn/assets/{BGjWX_kSxlX68bbv.js → DqDxWoCftkWurpDk.js} +1 -1
- package/{browser/esm/ZozmNU1fZz0rIwnM.mjs → cdn/assets/Dwd9xRP6sCbvd7-2.js} +1 -1
- package/cdn/assets/{TTzsQrEYYCtjJ_aM.js → Dy1zdTKMeT50nXcy.js} +1 -1
- package/{browser/esm/BR58mmeGHPieLgMd.mjs → cdn/assets/Dz_O3du2SrhYK47v.js} +1 -1
- package/cdn/assets/{BjtNxCPTeumKQNaW.js → G9bfOnISYlZUeW4U.js} +436 -435
- package/cdn/assets/{DjWavLHPu3GKEzTU.js → R2Li5a5IPMuoQEGD.js} +1 -1
- package/cdn/assets/{DI31ljXqecIkfzC_.js → SWzqhkO1HABv0bfG.js} +1 -1
- package/{browser/esm/7LvL2PwFxo4tRjtC.mjs → cdn/assets/dAJOajC7rsn3_hWk.js} +1 -1
- package/{browser/esm/BZzMRDxX8W3pn7y9.mjs → cdn/assets/fvsQWBiDZg7zRYOa.js} +1 -1
- package/{browser/esm/CbAbkQUb6oMbznUI.mjs → cdn/assets/iHc25sW_jPEvAQNG.js} +1 -1
- package/cdn/assets/{C70QesBx8A7k3kJu.js → o8Z04Tjc17JBUDsL.js} +1 -1
- package/cdn/assets/{ESh2pnYgW_hn_Y4g.js → qbGHKDeXrxvghjMt.js} +1 -1
- package/cdn/assets/{CdXVTrxlfpdxLJIW.js → uk5NsqjbkRuKv1vU.js} +1 -1
- package/cdn/assets/{BrOXBqkeDvOBK9Fc.js → ukDxhSJqMPzLXoCP.js} +63 -63
- package/cdn/assets/{DLrEolIaGLyUO3dd.js → vw_ELbpa8MGzVBfc.js} +2 -2
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./DjrGUr-awhOmDtrE.cjs");var Co=typeof global=="object"&&global&&global.Object===Object&&global,Us=typeof self=="object"&&self&&self.Object===Object&&self,wt=Co||Us||Function("return this")(),It=wt.Symbol,ko=Object.prototype,Fs=ko.hasOwnProperty,Ds=ko.toString,Ie=It?It.toStringTag:void 0,js=Object.prototype.toString,Vr=It?It.toStringTag:void 0;function Qt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Vr&&Vr in Object(t)?function(n){var r=Fs.call(n,Ie),i=n[Ie];try{n[Ie]=void 0;var o=!0}catch{}var s=Ds.call(n);return o&&(r?n[Ie]=i:delete n[Ie]),s}(t):(e=t,js.call(e));var e}function Ot(t){return t!=null&&typeof t=="object"}function An(t){return typeof t=="symbol"||Ot(t)&&Qt(t)=="[object Symbol]"}function In(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var B=Array.isArray,Hr=It?It.prototype:void 0,Yr=Hr?Hr.toString:void 0;function bo(t){if(typeof t=="string")return t;if(B(t))return In(t,bo)+"";if(An(t))return Yr?Yr.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Bs=/\s/,$s=/^\s+/;function Rt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ws=/^[-+]0x[0-9a-f]+$/i,Gs=/^0b[01]+$/i,Ks=/^0o[0-7]+$/i,zs=parseInt,Vs=1/0;function Rn(t){var e=function(r){return r?(r=function(i){if(typeof i=="number")return i;if(An(i))return NaN;if(Rt(i)){var o=typeof i.valueOf=="function"?i.valueOf():i;i=Rt(o)?o+"":o}if(typeof i!="string")return i===0?i:+i;var s;i=(s=i)&&s.slice(0,function(c){for(var u=c.length;u--&&Bs.test(c.charAt(u)););return u}(s)+1).replace($s,"");var a=Gs.test(i);return a||Ks.test(i)?zs(i.slice(2),a?2:8):Ws.test(i)?NaN:+i}(r))===Vs||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0}(t),n=e%1;return e==e?n?e-n:e:0}function pe(t){return t}function Yt(t){if(!Rt(t))return!1;var e=Qt(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"}var Xr,Pn=wt["__core-js_shared__"],qr=(Xr=/[^.]+$/.exec(Pn&&Pn.keys&&Pn.keys.IE_PROTO||""))?"Symbol(src)_1."+Xr:"",Hs=Function.prototype.toString;function oe(t){if(t!=null){try{return Hs.call(t)}catch{}try{return t+""}catch{}}return""}var Ys=/^\[object .+?Constructor\]$/,Xs=Function.prototype,qs=Object.prototype,Zs=Xs.toString,Qs=qs.hasOwnProperty,Js=RegExp("^"+Zs.call(Qs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function se(t,e){var n,r,i,o,s=(n=t,r=e,n?.[r]);return Rt(i=s)&&(o=i,!qr||!(qr in o))&&(Yt(i)?Js:Ys).test(oe(i))?s:void 0}var cr=se(wt,"WeakMap"),Zr=Object.create,ta=function(){function t(){}return function(e){if(!Rt(e))return{};if(Zr)return Zr(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Z(){}var Qr,wn,Mn,ea=Date.now,cn=function(){try{var t=se(Object,"defineProperty");return t({},"",{}),t}catch{}}(),na=cn?function(t,e){return cn(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:pe,ra=(Qr=na,wn=0,Mn=0,function(){var t=ea(),e=16-(t-Mn);if(Mn=t,e>0){if(++wn>=800)return arguments[0]}else wn=0;return Qr.apply(void 0,arguments)});function Po(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function wo(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function ia(t){return t!=t}function kr(t,e,n){return e==e?function(r,i,o){for(var s=o-1,a=r.length;++s<a;)if(r[s]===i)return s;return-1}(t,e,n):wo(t,ia,n)}function Mo(t,e){return!(t==null||!t.length)&&kr(t,e,0)>-1}var oa=/^(?:0|[1-9]\d*)$/;function Nn(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&(n=="number"||n!="symbol"&&oa.test(t))&&t>-1&&t%1==0&&t<e}function br(t,e,n){e=="__proto__"&&cn?cn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function $e(t,e){return t===e||t!=t&&e!=e}var sa=Object.prototype.hasOwnProperty;function yn(t,e,n){var r=t[e];sa.call(t,e)&&$e(r,n)&&(n!==void 0||e in t)||br(t,e,n)}function ur(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],c=void 0;c===void 0&&(c=t[a]),i?br(n,a,c):yn(n,a,c)}return n}var Jr=Math.max;function Pr(t,e){return ra((n=t,i=pe,r=Jr((r=e)===void 0?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=Jr(o.length-r,0),c=Array(a);++s<a;)c[s]=o[r+s];s=-1;for(var u=Array(r+1);++s<r;)u[s]=o[s];return u[r]=i(c),function(l,h,I){switch(I.length){case 0:return l.call(h);case 1:return l.call(h,I[0]);case 2:return l.call(h,I[0],I[1]);case 3:return l.call(h,I[0],I[1],I[2])}return l.apply(h,I)}(n,this,u)}),t+"");var n,r,i}function wr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}function Mt(t){return t!=null&&wr(t.length)&&!Yt(t)}function Uo(t,e,n){if(!Rt(n))return!1;var r=typeof e;return!!(r=="number"?Mt(n)&&Nn(e,n.length):r=="string"&&e in n)&&$e(n[e],t)}var aa=Object.prototype;function We(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||aa)}function ti(t){return Ot(t)&&Qt(t)=="[object Arguments]"}var Fo=Object.prototype,ca=Fo.hasOwnProperty,ua=Fo.propertyIsEnumerable,vn=ti(function(){return arguments}())?ti:function(t){return Ot(t)&&ca.call(t,"callee")&&!ua.call(t,"callee")},Do=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ei=Do&&typeof module=="object"&&module&&!module.nodeType&&module,ni=ei&&ei.exports===Do?wt.Buffer:void 0,we=(ni?ni.isBuffer:void 0)||function(){return!1},z={};function On(t){return function(e){return t(e)}}z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Arguments]"]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object Boolean]"]=z["[object DataView]"]=z["[object Date]"]=z["[object Error]"]=z["[object Function]"]=z["[object Map]"]=z["[object Number]"]=z["[object Object]"]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object WeakMap]"]=!1;var jo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xe=jo&&typeof module=="object"&&module&&!module.nodeType&&module,Un=xe&&xe.exports===jo&&Co.process,qt=function(){try{return xe&&xe.require&&xe.require("util").types||Un&&Un.binding&&Un.binding("util")}catch{}}(),ri=qt&&qt.isTypedArray,Mr=ri?On(ri):function(t){return Ot(t)&&wr(t.length)&&!!z[Qt(t)]},la=Object.prototype.hasOwnProperty;function Bo(t,e){var n=B(t),r=!n&&vn(t),i=!n&&!r&&we(t),o=!n&&!r&&!i&&Mr(t),s=n||r||i||o,a=s?function(l,h){for(var I=-1,v=Array(l);++I<l;)v[I]=h(I);return v}(t.length,String):[],c=a.length;for(var u in t)!e&&!la.call(t,u)||s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Nn(u,c))||a.push(u);return a}function $o(t,e){return function(n){return t(e(n))}}var ha=$o(Object.keys,Object),fa=Object.prototype.hasOwnProperty;function Wo(t){if(!We(t))return ha(t);var e=[];for(var n in Object(t))fa.call(t,n)&&n!="constructor"&&e.push(n);return e}function Nt(t){return Mt(t)?Bo(t):Wo(t)}var Fn,da=Object.prototype.hasOwnProperty,dt=(Fn=function(t,e){if(We(e)||Mt(e))ur(e,Nt(e),t);else for(var n in e)da.call(e,n)&&yn(t,n,e[n])},Pr(function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=Fn.length>3&&typeof i=="function"?(r--,i):void 0,o&&Uo(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var s=e[n];s&&Fn(t,s)}return t})),pa=Object.prototype.hasOwnProperty;function Go(t){return Mt(t)?Bo(t,!0):function(e){if(!Rt(e))return function(o){var s=[];if(o!=null)for(var a in Object(o))s.push(a);return s}(e);var n=We(e),r=[];for(var i in e)(i!="constructor"||!n&&pa.call(e,i))&&r.push(i);return r}(t)}var ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/;function lr(t,e){if(B(t))return!1;var n=typeof t;return!(n!="number"&&n!="symbol"&&n!="boolean"&&t!=null&&!An(t))||Ea.test(t)||!ma.test(t)||e!=null&&t in Object(e)}var Re=se(Object,"create"),ga=Object.prototype.hasOwnProperty,Ta=Object.prototype.hasOwnProperty;function ne(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ke(t,e){for(var n=t.length;n--;)if($e(t[n][0],e))return n;return-1}ne.prototype.clear=function(){this.__data__=Re?Re(null):{},this.size=0},ne.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ne.prototype.get=function(t){var e=this.__data__;if(Re){var n=e[t];return n==="__lodash_hash_undefined__"?void 0:n}return ga.call(e,t)?e[t]:void 0},ne.prototype.has=function(t){var e=this.__data__;return Re?e[t]!==void 0:Ta.call(e,t)},ne.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Re&&e===void 0?"__lodash_hash_undefined__":e,this};var Aa=Array.prototype.splice;function Vt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=function(){this.__data__=[],this.size=0},Vt.prototype.delete=function(t){var e=this.__data__,n=Ke(e,t);return!(n<0||(n==e.length-1?e.pop():Aa.call(e,n,1),--this.size,0))},Vt.prototype.get=function(t){var e=this.__data__,n=Ke(e,t);return n<0?void 0:e[n][1]},Vt.prototype.has=function(t){return Ke(this.__data__,t)>-1},Vt.prototype.set=function(t,e){var n=this.__data__,r=Ke(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Me=se(wt,"Map");function ze(t,e){var n,r,i=t.__data__;return((r=typeof(n=e))=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null)?i[typeof e=="string"?"string":"hash"]:i.map}function Gt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ur(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ur.Cache||Gt),n}Gt.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Me||Vt),string:new ne}},Gt.prototype.delete=function(t){var e=ze(this,t).delete(t);return this.size-=e?1:0,e},Gt.prototype.get=function(t){return ze(this,t).get(t)},Gt.prototype.has=function(t){return ze(this,t).has(t)},Gt.prototype.set=function(t,e){var n=ze(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Ur.Cache=Gt;var Dn,jn,Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ra=/\\(\\)?/g,Na=(Dn=Ur(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Ia,function(n,r,i,o){e.push(i?o.replace(Ra,"$1"):r||n)}),e},function(t){return jn.size===500&&jn.clear(),t}),jn=Dn.cache,Dn);function Sn(t,e){return B(t)?t:lr(t,e)?[t]:Na((n=t)==null?"":bo(n));var n}function Ue(t){if(typeof t=="string"||An(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function hr(t,e){for(var n=0,r=(e=Sn(e,t)).length;t!=null&&n<r;)t=t[Ue(e[n++])];return n&&n==r?t:void 0}function Fr(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var ii=It?It.isConcatSpreadable:void 0;function ya(t){return B(t)||vn(t)||!!(ii&&t&&t[ii])}function Dr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=ya),i||(i=[]);++o<s;){var a=t[o];n(a)?Fr(i,a):r||(i[i.length]=a)}return i}function yt(t){return t!=null&&t.length?Dr(t):[]}var Ko=$o(Object.getPrototypeOf,Object);function zo(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function va(t,e,n,r){var i=-1,o=t==null?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function bt(t){var e=this.__data__=new Vt(t);this.size=e.size}bt.prototype.clear=function(){this.__data__=new Vt,this.size=0},bt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},bt.prototype.get=function(t){return this.__data__.get(t)},bt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vt){var r=n.__data__;if(!Me||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(t,e),this.size=n.size,this};var Vo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oi=Vo&&typeof module=="object"&&module&&!module.nodeType&&module,si=oi&&oi.exports===Vo?wt.Buffer:void 0,ai=si?si.allocUnsafe:void 0;function jr(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Ho(){return[]}var Oa=Object.prototype.propertyIsEnumerable,ci=Object.getOwnPropertySymbols,Br=ci?function(t){return t==null?[]:(t=Object(t),jr(ci(t),function(e){return Oa.call(t,e)}))}:Ho,Sa=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Fr(e,Br(t)),t=Ko(t);return e}:Ho;function Yo(t,e,n){var r=e(t);return B(t)?r:Fr(r,n(t))}function fr(t){return Yo(t,Nt,Br)}var dr=se(wt,"DataView"),pr=se(wt,"Promise"),fe=se(wt,"Set"),ui="[object Map]",li="[object Promise]",hi="[object Set]",fi="[object WeakMap]",di="[object DataView]",_a=oe(dr),La=oe(Me),xa=oe(pr),Ca=oe(fe),ka=oe(cr),At=Qt;(dr&&At(new dr(new ArrayBuffer(1)))!=di||Me&&At(new Me)!=ui||pr&&At(pr.resolve())!=li||fe&&At(new fe)!=hi||cr&&At(new cr)!=fi)&&(At=function(t){var e=Qt(t),n=e=="[object Object]"?t.constructor:void 0,r=n?oe(n):"";if(r)switch(r){case _a:return di;case La:return ui;case xa:return li;case Ca:return hi;case ka:return fi}return e});var ba=Object.prototype.hasOwnProperty,un=wt.Uint8Array,Pa=/\w*$/,pi=It?It.prototype:void 0,mi=pi?pi.valueOf:void 0,Ei=qt&&qt.isMap,wa=Ei?On(Ei):function(t){return Ot(t)&&At(t)=="[object Map]"},gi=qt&&qt.isSet,Ma=gi?On(gi):function(t){return Ot(t)&&At(t)=="[object Set]"},Xo="[object Arguments]",qo="[object Function]",Zo="[object Object]",G={};function Je(t,e,n,r,i,o){var s;if(s!==void 0)return s;if(!Rt(t))return t;var a,c,u,l=B(t);if(l)return c=(a=t).length,u=new a.constructor(c),c&&typeof a[0]=="string"&&ba.call(a,"index")&&(u.index=a.index,u.input=a.input),function(g,d){var A=-1,N=g.length;for(d||(d=Array(N));++A<N;)d[A]=g[A];return d}(t,s=u);var h,I,v,O=At(t),x=O==qo||O=="[object GeneratorFunction]";if(we(t))return I=(h=t).length,v=ai?ai(I):new h.constructor(I),h.copy(v),v;if(O==Zo||O==Xo||x&&!i)return s=x?{}:function(g){return typeof g.constructor!="function"||We(g)?{}:ta(Ko(g))}(t),function(g,d){return ur(g,Br(g),d)}(t,function(g,d){return g&&ur(d,Nt(d),g)}(s,t));if(!G[O])return i?t:{};s=function(g,d){var A,N,f,m,p,E,R,P,L,y=g.constructor;switch(d){case"[object ArrayBuffer]":return p=new(m=g).constructor(m.byteLength),new un(p).set(new un(m)),p;case"[object Boolean]":case"[object Date]":return new y(+g);case"[object DataView]":return f=(N=g).buffer,new N.constructor(f,N.byteOffset,N.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return R=(E=g).buffer,new E.constructor(R,E.byteOffset,E.length);case"[object Map]":case"[object Set]":return new y;case"[object Number]":case"[object String]":return new y(g);case"[object RegExp]":return(L=new(P=g).constructor(P.source,Pa.exec(P))).lastIndex=P.lastIndex,L;case"[object Symbol]":return A=g,mi?Object(mi.call(A)):{}}}(t,O),o||(o=new bt);var _=o.get(t);if(_)return _;o.set(t,s),Ma(t)?t.forEach(function(g){s.add(Je(g,e,n,g,t,o))}):wa(t)&&t.forEach(function(g,d){s.set(d,Je(g,e,n,d,t,o))});var T=l?void 0:fr(t);return Po(T||t,function(g,d){T&&(g=t[d=g]),yn(s,d,Je(g,e,n,d,t,o))}),s}function et(t){return Je(t,4)}function Fe(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function de(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Gt;++e<n;)this.add(t[e])}function Qo(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function $r(t,e){return t.has(e)}function Ti(t,e,n,r,i,o){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var h=-1,I=!0,v=2&n?new de:void 0;for(o.set(t,e),o.set(e,t);++h<a;){var O=t[h],x=e[h];if(r)var _=s?r(x,O,h,e,t,o):r(O,x,h,t,e,o);if(_!==void 0){if(_)continue;I=!1;break}if(v){if(!Qo(e,function(T,g){if(!$r(v,g)&&(O===T||i(O,T,n,r,o)))return v.push(g)})){I=!1;break}}else if(O!==x&&!i(O,x,n,r,o)){I=!1;break}}return o.delete(t),o.delete(e),I}function Ua(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Wr(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}G[Xo]=G["[object Array]"]=G["[object ArrayBuffer]"]=G["[object DataView]"]=G["[object Boolean]"]=G["[object Date]"]=G["[object Float32Array]"]=G["[object Float64Array]"]=G["[object Int8Array]"]=G["[object Int16Array]"]=G["[object Int32Array]"]=G["[object Map]"]=G["[object Number]"]=G[Zo]=G["[object RegExp]"]=G["[object Set]"]=G["[object String]"]=G["[object Symbol]"]=G["[object Uint8Array]"]=G["[object Uint8ClampedArray]"]=G["[object Uint16Array]"]=G["[object Uint32Array]"]=!0,G["[object Error]"]=G[qo]=G["[object WeakMap]"]=!1,de.prototype.add=de.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},de.prototype.has=function(t){return this.__data__.has(t)};var Ai=It?It.prototype:void 0,Bn=Ai?Ai.valueOf:void 0,Fa=Object.prototype.hasOwnProperty,Ii="[object Arguments]",Ri="[object Array]",Ve="[object Object]",Ni=Object.prototype.hasOwnProperty;function mr(t,e,n,r,i){return t===e||(t==null||e==null||!Ot(t)&&!Ot(e)?t!=t&&e!=e:function(o,s,a,c,u,l){var h=B(o),I=B(s),v=h?Ri:At(o),O=I?Ri:At(s),x=(v=v==Ii?Ve:v)==Ve,_=(O=O==Ii?Ve:O)==Ve,T=v==O;if(T&&we(o)){if(!we(s))return!1;h=!0,x=!1}if(T&&!x)return l||(l=new bt),h||Mr(o)?Ti(o,s,a,c,u,l):function(f,m,p,E,R,P,L){switch(p){case"[object DataView]":if(f.byteLength!=m.byteLength||f.byteOffset!=m.byteOffset)return!1;f=f.buffer,m=m.buffer;case"[object ArrayBuffer]":return!(f.byteLength!=m.byteLength||!P(new un(f),new un(m)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+f,+m);case"[object Error]":return f.name==m.name&&f.message==m.message;case"[object RegExp]":case"[object String]":return f==m+"";case"[object Map]":var y=Ua;case"[object Set]":var M=1&E;if(y||(y=Wr),f.size!=m.size&&!M)return!1;var C=L.get(f);if(C)return C==m;E|=2,L.set(f,m);var k=Ti(y(f),y(m),E,R,P,L);return L.delete(f),k;case"[object Symbol]":if(Bn)return Bn.call(f)==Bn.call(m)}return!1}(o,s,v,a,c,u,l);if(!(1&a)){var g=x&&Ni.call(o,"__wrapped__"),d=_&&Ni.call(s,"__wrapped__");if(g||d){var A=g?o.value():o,N=d?s.value():s;return l||(l=new bt),u(A,N,a,c,l)}}return!!T&&(l||(l=new bt),function(f,m,p,E,R,P){var L=1&p,y=fr(f),M=y.length;if(M!=fr(m).length&&!L)return!1;for(var C=M;C--;){var k=y[C];if(!(L?k in m:Fa.call(m,k)))return!1}var $=P.get(f),X=P.get(m);if($&&X)return $==m&&X==f;var W=!0;P.set(f,m),P.set(m,f);for(var rt=L;++C<M;){var mt=f[k=y[C]],Ct=m[k];if(E)var Ae=L?E(Ct,mt,k,m,f,P):E(mt,Ct,k,f,m,P);if(!(Ae===void 0?mt===Ct||R(mt,Ct,p,E,P):Ae)){W=!1;break}rt||(rt=k=="constructor")}if(W&&!rt){var nt=f.constructor,Jt=m.constructor;nt==Jt||!("constructor"in f)||!("constructor"in m)||typeof nt=="function"&&nt instanceof nt&&typeof Jt=="function"&&Jt instanceof Jt||(W=!1)}return P.delete(f),P.delete(m),W}(o,s,a,c,u,l))}(t,e,n,r,mr,i))}function yi(t){return t==t&&!Rt(t)}function vi(t,e){return function(n){return n!=null&&n[t]===e&&(e!==void 0||t in Object(n))}}function Da(t,e){return t!=null&&e in Object(t)}function Jo(t,e,n){for(var r=-1,i=(e=Sn(e,t)).length,o=!1;++r<i;){var s=Ue(e[r]);if(!(o=t!=null&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=t==null?0:t.length)&&wr(i)&&Nn(s,i)&&(B(t)||vn(t))}function Pt(t){return typeof t=="function"?t:t==null?pe:typeof t=="object"?B(t)?(e=t[0],n=t[1],lr(e)&&yi(n)?vi(Ue(e),n):function(r){var i,o,s,a,c=(o=(i=r)==null?void 0:hr(i,e))===void 0?void 0:o;return c===void 0&&c===n?(a=e,(s=r)!=null&&Jo(s,a,Da)):mr(n,c,3)}):function(r){var i=function(o){for(var s=Nt(o),a=s.length;a--;){var c=s[a],u=o[c];s[a]=[c,u,yi(u)]}return s}(r);return i.length==1&&i[0][2]?vi(i[0][0],i[0][1]):function(o){return o===r||function(s,a,c){var u=c.length,l=u;if(s==null)return!l;for(s=Object(s);u--;){var h=c[u];if(h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++u<l;){var I=(h=c[u])[0],v=s[I],O=h[1];if(h[2]){if(v===void 0&&!(I in s))return!1}else if(!mr(O,v,3,void 0,new bt))return!1}return!0}(o,0,i)}}(t):function(r){return lr(r)?(i=Ue(r),function(o){return o?.[i]}):function(o){return function(s){return hr(s,o)}}(r);var i}(t);var e,n}function ja(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}var Oi,ae=(Oi=function(t,e){return t&&function(n,r,i){for(var o=-1,s=Object(n),a=i(n),c=a.length;c--;){var u=a[++o];if(r(s[u],u,s)===!1)break}return n}(t,e,Nt)},function(t,e){if(t==null)return t;if(!Mt(t))return Oi(t,e);for(var n=t.length,r=-1,i=Object(t);++r<n&&e(i[r],r,i)!==!1;);return t});function Ba(t,e,n,r){return ae(t,function(i,o,s){e(r,i,n(i),s)}),r}var ts=Object.prototype,$a=ts.hasOwnProperty,Er=Pr(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Uo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=Go(o),a=-1,c=s.length;++a<c;){var u=s[a],l=t[u];(l===void 0||$e(l,ts[u])&&!$a.call(t,u))&&(t[u]=o[u])}return t});function Si(t){return Ot(t)&&Mt(t)}var ln=Pr(function(t,e){return Si(t)?function(n,r){var i=-1,o=Mo,s=!0,a=n.length,c=[],u=r.length;if(!a)return c;r.length>=200&&(o=$r,s=!1,r=new de(r));t:for(;++i<a;){var l=n[i],h=l;if(l=l!==0?l:0,s&&h==h){for(var I=u;I--;)if(r[I]===h)continue t;c.push(l)}else o(r,h,void 0)||c.push(l)}return c}(t,Dr(e,0,Si,!0)):[]});function me(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function tt(t,e,n){var r=t==null?0:t.length;return r?zo(t,(e=e===void 0?1:Rn(e))<0?0:e,r):[]}function De(t,e,n){var r=t==null?0:t.length;return r?zo(t,0,(e=r-(e=e===void 0?1:Rn(e)))<0?0:e):[]}function U(t,e){var n;return(B(t)?Po:ae)(t,typeof(n=e)=="function"?n:pe)}function Wa(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ga(t,e){var n=!0;return ae(t,function(r,i,o){return n=!!e(r,i,o)}),n}function vt(t,e,n){return(B(t)?Wa:Ga)(t,Pt(e))}function es(t,e){var n=[];return ae(t,function(r,i,o){e(r,i,o)&&n.push(r)}),n}function gt(t,e){return(B(t)?jr:es)(t,Pt(e))}var _i,Ka=Math.max,Ee=(_i=function(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Rn(n);return i<0&&(i=Ka(r+i,0)),wo(t,Pt(e),i)},function(t,e,n){var r=Object(t);if(!Mt(t)){var i=Pt(e);t=Nt(t),e=function(s){return i(r[s],s,r)}}var o=_i(t,e,n);return o>-1?r[i?t[o]:o]:void 0});function St(t){return t&&t.length?t[0]:void 0}function za(t,e){var n=-1,r=Mt(t)?Array(t.length):[];return ae(t,function(i,o,s){r[++n]=e(i,o,s)}),r}function b(t,e){return(B(t)?In:za)(t,Pt(e))}function Tt(t,e){return Dr(b(t,e))}var Li,Va=Object.prototype.hasOwnProperty,Ha=(Li=function(t,e,n){Va.call(t,n)?t[n].push(e):br(t,n,[e])},function(t,e){return(B(t)?ja:Ba)(t,Li,Pt(e),{})}),Ya=Object.prototype.hasOwnProperty;function Xa(t,e){return t!=null&&Ya.call(t,e)}function w(t,e){return t!=null&&Jo(t,e,Xa)}function ut(t){return typeof t=="string"||!B(t)&&Ot(t)&&Qt(t)=="[object String]"}function Q(t){return t==null?[]:(e=t,In(Nt(t),function(n){return e[n]}));var e}var qa=Math.max;function at(t,e,n,r){t=Mt(t)?t:Q(t),n=n?Rn(n):0;var i=t.length;return n<0&&(n=qa(i+n,0)),ut(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&kr(t,e,n)>-1}function xi(t,e,n){return t!=null&&t.length?kr(t,e,0):-1}var Za=Object.prototype.hasOwnProperty;function K(t){if(t==null)return!0;if(Mt(t)&&(B(t)||typeof t=="string"||typeof t.splice=="function"||we(t)||Mr(t)||vn(t)))return!t.length;var e=At(t);if(e=="[object Map]"||e=="[object Set]")return!t.size;if(We(t))return!Wo(t).length;for(var n in t)if(Za.call(t,n))return!1;return!0}var Ci=qt&&qt.isRegExp,Kt=Ci?On(Ci):function(t){return Ot(t)&&Qt(t)=="[object RegExp]"};function Ht(t){return t===void 0}function Qa(t,e,n,r){if(!Rt(t))return t;for(var i=-1,o=(e=Sn(e,t)).length,s=o-1,a=t;a!=null&&++i<o;){var c=Ue(e[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(i!=s){var l=a[c];(u=void 0)==null&&(u=Rt(l)?l:Nn(e[i+1])?[]:{})}yn(a,c,u),a=a[c]}return t}function _t(t,e){if(t==null)return{};var n=In(Yo(t,Go,Sa),function(r){return[r]});return e=Pt(e),function(r,i,o){for(var s=-1,a=i.length,c={};++s<a;){var u=i[s],l=hr(r,u);o(l,u)&&Qa(c,Sn(u,r),l)}return c}(t,n,function(r,i){return e(r,i[0])})}function Ja(t,e,n,r,i){return i(t,function(o,s,a){n=r?(r=!1,o):e(n,o,s,a)}),n}function ft(t,e,n){var r=B(t)?va:Ja,i=arguments.length<3;return r(t,Pt(e),n,i,ae)}function tn(t,e){return(B(t)?jr:es)(t,function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}(Pt(e)))}function tc(t,e){var n;return ae(t,function(r,i,o){return!(n=e(r,i,o))}),!!n}function ns(t,e,n){return(B(t)?Qo:tc)(t,Pt(e))}var ec=fe&&1/Wr(new fe([,-0]))[1]==1/0?function(t){return new fe(t)}:Z;function gr(t){return t&&t.length?function(e){var n=-1,r=Mo,i=e.length,o=!0,s=[],a=s;if(i>=200){var c=ec(e);if(c)return Wr(c);o=!1,r=$r,a=new de}else a=s;t:for(;++n<i;){var u=e[n],l=u;if(u=u!==0?u:0,o&&l==l){for(var h=a.length;h--;)if(a[h]===l)continue t;s.push(u)}else r(a,l,void 0)||(a!==s&&a.push(l),s.push(u))}return s}(t):[]}function Tr(t){console&&console.error&&console.error(`Error: ${t}`)}function rs(t){console&&console.warn&&console.warn(`Warning: ${t}`)}function is(t){const e=new Date().getTime(),n=t();return{time:new Date().getTime()-e,value:n}}function os(t){function e(){}e.prototype=t;const n=new e;function r(){return typeof n.bar}return r(),r(),t}function nc(t){return ut((e=t).LABEL)&&e.LABEL!==""?t.LABEL:t.name;var e}class Ut{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),U(this.definition,n=>{n.accept(e)})}}class pt extends Ut{constructor(e){super([]),this.idx=1,dt(this,_t(e,n=>n!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class ge extends Ut{constructor(e){super(e.definition),this.orgText="",dt(this,_t(e,n=>n!==void 0))}}class ht extends Ut{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,dt(this,_t(e,n=>n!==void 0))}}class lt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Ft extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Dt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class J extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Lt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class xt extends Ut{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,dt(this,_t(e,n=>n!==void 0))}}class V{constructor(e){this.idx=1,dt(this,_t(e,n=>n!==void 0))}accept(e){e.visit(this)}}function en(t){function e(n){return b(n,en)}if(t instanceof pt){const n={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return ut(t.label)&&(n.label=t.label),n}if(t instanceof ht)return{type:"Alternative",definition:e(t.definition)};if(t instanceof lt)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof Ft)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof Dt)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:en(new V({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Lt)return{type:"RepetitionWithSeparator",idx:t.idx,separator:en(new V({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof J)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof xt)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof V){const n={type:"Terminal",name:t.terminalType.name,label:nc(t.terminalType),idx:t.idx};ut(t.label)&&(n.terminalLabel=t.label);const r=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(n.pattern=Kt(r)?r.source:r),n}if(t instanceof ge)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}class Te{visit(e){const n=e;switch(n.constructor){case pt:return this.visitNonTerminal(n);case ht:return this.visitAlternative(n);case lt:return this.visitOption(n);case Ft:return this.visitRepetitionMandatory(n);case Dt:return this.visitRepetitionMandatoryWithSeparator(n);case Lt:return this.visitRepetitionWithSeparator(n);case J:return this.visitRepetition(n);case xt:return this.visitAlternation(n);case V:return this.visitTerminal(n);case ge:return this.visitRule(n);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function hn(t,e=[]){return t instanceof lt||t instanceof J||t instanceof Lt||(t instanceof xt?ns(t.definition,n=>hn(n,e)):!(t instanceof pt&&at(e,t))&&t instanceof Ut&&(t instanceof pt&&e.push(t),vt(t.definition,n=>hn(n,e))))}function kt(t){if(t instanceof pt)return"SUBRULE";if(t instanceof lt)return"OPTION";if(t instanceof xt)return"OR";if(t instanceof Ft)return"AT_LEAST_ONE";if(t instanceof Dt)return"AT_LEAST_ONE_SEP";if(t instanceof Lt)return"MANY_SEP";if(t instanceof J)return"MANY";if(t instanceof V)return"CONSUME";throw Error("non exhaustive match")}class _n{walk(e,n=[]){U(e.definition,(r,i)=>{const o=tt(e.definition,i+1);if(r instanceof pt)this.walkProdRef(r,o,n);else if(r instanceof V)this.walkTerminal(r,o,n);else if(r instanceof ht)this.walkFlat(r,o,n);else if(r instanceof lt)this.walkOption(r,o,n);else if(r instanceof Ft)this.walkAtLeastOne(r,o,n);else if(r instanceof Dt)this.walkAtLeastOneSep(r,o,n);else if(r instanceof Lt)this.walkManySep(r,o,n);else if(r instanceof J)this.walkMany(r,o,n);else{if(!(r instanceof xt))throw Error("non exhaustive match");this.walkOr(r,o,n)}})}walkTerminal(e,n,r){}walkProdRef(e,n,r){}walkFlat(e,n,r){const i=n.concat(r);this.walk(e,i)}walkOption(e,n,r){const i=n.concat(r);this.walk(e,i)}walkAtLeastOne(e,n,r){const i=[new lt({definition:e.definition})].concat(n,r);this.walk(e,i)}walkAtLeastOneSep(e,n,r){const i=ki(e,n,r);this.walk(e,i)}walkMany(e,n,r){const i=[new lt({definition:e.definition})].concat(n,r);this.walk(e,i)}walkManySep(e,n,r){const i=ki(e,n,r);this.walk(e,i)}walkOr(e,n,r){const i=n.concat(r);U(e.definition,o=>{const s=new ht({definition:[o]});this.walk(s,i)})}}function ki(t,e,n){return[new lt({definition:[new V({terminalType:t.separator})].concat(t.definition)})].concat(e,n)}function Ce(t){if(t instanceof pt)return Ce(t.referencedRule);if(t instanceof V)return[t.terminalType];if((e=t)instanceof ht||e instanceof lt||e instanceof J||e instanceof Ft||e instanceof Dt||e instanceof Lt||e instanceof V||e instanceof ge)return function(n){let r=[];const i=n.definition;let o,s=0,a=i.length>s,c=!0;for(;a&&c;)o=i[s],c=hn(o),r=r.concat(Ce(o)),s+=1,a=i.length>s;return gr(r)}(t);var e;if(function(n){return n instanceof xt}(t))return function(n){return gr(yt(b(n.definition,r=>Ce(r))))}(t);throw Error("non exhaustive match")}const ss="_~IN~_";class rc extends _n{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,n,r){}walkProdRef(e,n,r){const i=(o=e.referencedRule,s=e.idx,o.name+s+ss+this.topProd.name);var o,s;const a=n.concat(r),c=Ce(new ht({definition:a}));this.follows[i]=c}}function F(t){return t.charCodeAt(0)}function $n(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function Ne(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function ce(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function bi(t){return t.type==="Character"}const fn=[];for(let t=F("0");t<=F("9");t++)fn.push(t);const dn=[F("_")].concat(fn);for(let t=F("a");t<=F("z");t++)dn.push(t);for(let t=F("A");t<=F("Z");t++)dn.push(t);const Pi=[F(" "),F("\f"),F(`
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./6AlZR3dVayTg7C5E.cjs");var Co=typeof global=="object"&&global&&global.Object===Object&&global,Us=typeof self=="object"&&self&&self.Object===Object&&self,wt=Co||Us||Function("return this")(),It=wt.Symbol,ko=Object.prototype,Fs=ko.hasOwnProperty,Ds=ko.toString,Ie=It?It.toStringTag:void 0,js=Object.prototype.toString,Vr=It?It.toStringTag:void 0;function Qt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Vr&&Vr in Object(t)?function(n){var r=Fs.call(n,Ie),i=n[Ie];try{n[Ie]=void 0;var o=!0}catch{}var s=Ds.call(n);return o&&(r?n[Ie]=i:delete n[Ie]),s}(t):(e=t,js.call(e));var e}function Ot(t){return t!=null&&typeof t=="object"}function An(t){return typeof t=="symbol"||Ot(t)&&Qt(t)=="[object Symbol]"}function In(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var B=Array.isArray,Hr=It?It.prototype:void 0,Yr=Hr?Hr.toString:void 0;function bo(t){if(typeof t=="string")return t;if(B(t))return In(t,bo)+"";if(An(t))return Yr?Yr.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Bs=/\s/,$s=/^\s+/;function Rt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ws=/^[-+]0x[0-9a-f]+$/i,Gs=/^0b[01]+$/i,Ks=/^0o[0-7]+$/i,zs=parseInt,Vs=1/0;function Rn(t){var e=function(r){return r?(r=function(i){if(typeof i=="number")return i;if(An(i))return NaN;if(Rt(i)){var o=typeof i.valueOf=="function"?i.valueOf():i;i=Rt(o)?o+"":o}if(typeof i!="string")return i===0?i:+i;var s;i=(s=i)&&s.slice(0,function(c){for(var u=c.length;u--&&Bs.test(c.charAt(u)););return u}(s)+1).replace($s,"");var a=Gs.test(i);return a||Ks.test(i)?zs(i.slice(2),a?2:8):Ws.test(i)?NaN:+i}(r))===Vs||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0}(t),n=e%1;return e==e?n?e-n:e:0}function pe(t){return t}function Yt(t){if(!Rt(t))return!1;var e=Qt(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"}var Xr,Pn=wt["__core-js_shared__"],qr=(Xr=/[^.]+$/.exec(Pn&&Pn.keys&&Pn.keys.IE_PROTO||""))?"Symbol(src)_1."+Xr:"",Hs=Function.prototype.toString;function oe(t){if(t!=null){try{return Hs.call(t)}catch{}try{return t+""}catch{}}return""}var Ys=/^\[object .+?Constructor\]$/,Xs=Function.prototype,qs=Object.prototype,Zs=Xs.toString,Qs=qs.hasOwnProperty,Js=RegExp("^"+Zs.call(Qs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function se(t,e){var n,r,i,o,s=(n=t,r=e,n?.[r]);return Rt(i=s)&&(o=i,!qr||!(qr in o))&&(Yt(i)?Js:Ys).test(oe(i))?s:void 0}var cr=se(wt,"WeakMap"),Zr=Object.create,ta=function(){function t(){}return function(e){if(!Rt(e))return{};if(Zr)return Zr(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Z(){}var Qr,wn,Mn,ea=Date.now,cn=function(){try{var t=se(Object,"defineProperty");return t({},"",{}),t}catch{}}(),na=cn?function(t,e){return cn(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:pe,ra=(Qr=na,wn=0,Mn=0,function(){var t=ea(),e=16-(t-Mn);if(Mn=t,e>0){if(++wn>=800)return arguments[0]}else wn=0;return Qr.apply(void 0,arguments)});function Po(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function wo(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function ia(t){return t!=t}function kr(t,e,n){return e==e?function(r,i,o){for(var s=o-1,a=r.length;++s<a;)if(r[s]===i)return s;return-1}(t,e,n):wo(t,ia,n)}function Mo(t,e){return!(t==null||!t.length)&&kr(t,e,0)>-1}var oa=/^(?:0|[1-9]\d*)$/;function Nn(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&(n=="number"||n!="symbol"&&oa.test(t))&&t>-1&&t%1==0&&t<e}function br(t,e,n){e=="__proto__"&&cn?cn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function $e(t,e){return t===e||t!=t&&e!=e}var sa=Object.prototype.hasOwnProperty;function yn(t,e,n){var r=t[e];sa.call(t,e)&&$e(r,n)&&(n!==void 0||e in t)||br(t,e,n)}function ur(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],c=void 0;c===void 0&&(c=t[a]),i?br(n,a,c):yn(n,a,c)}return n}var Jr=Math.max;function Pr(t,e){return ra((n=t,i=pe,r=Jr((r=e)===void 0?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=Jr(o.length-r,0),c=Array(a);++s<a;)c[s]=o[r+s];s=-1;for(var u=Array(r+1);++s<r;)u[s]=o[s];return u[r]=i(c),function(l,h,I){switch(I.length){case 0:return l.call(h);case 1:return l.call(h,I[0]);case 2:return l.call(h,I[0],I[1]);case 3:return l.call(h,I[0],I[1],I[2])}return l.apply(h,I)}(n,this,u)}),t+"");var n,r,i}function wr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}function Mt(t){return t!=null&&wr(t.length)&&!Yt(t)}function Uo(t,e,n){if(!Rt(n))return!1;var r=typeof e;return!!(r=="number"?Mt(n)&&Nn(e,n.length):r=="string"&&e in n)&&$e(n[e],t)}var aa=Object.prototype;function We(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||aa)}function ti(t){return Ot(t)&&Qt(t)=="[object Arguments]"}var Fo=Object.prototype,ca=Fo.hasOwnProperty,ua=Fo.propertyIsEnumerable,vn=ti(function(){return arguments}())?ti:function(t){return Ot(t)&&ca.call(t,"callee")&&!ua.call(t,"callee")},Do=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ei=Do&&typeof module=="object"&&module&&!module.nodeType&&module,ni=ei&&ei.exports===Do?wt.Buffer:void 0,we=(ni?ni.isBuffer:void 0)||function(){return!1},z={};function On(t){return function(e){return t(e)}}z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Arguments]"]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object Boolean]"]=z["[object DataView]"]=z["[object Date]"]=z["[object Error]"]=z["[object Function]"]=z["[object Map]"]=z["[object Number]"]=z["[object Object]"]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object WeakMap]"]=!1;var jo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xe=jo&&typeof module=="object"&&module&&!module.nodeType&&module,Un=xe&&xe.exports===jo&&Co.process,qt=function(){try{return xe&&xe.require&&xe.require("util").types||Un&&Un.binding&&Un.binding("util")}catch{}}(),ri=qt&&qt.isTypedArray,Mr=ri?On(ri):function(t){return Ot(t)&&wr(t.length)&&!!z[Qt(t)]},la=Object.prototype.hasOwnProperty;function Bo(t,e){var n=B(t),r=!n&&vn(t),i=!n&&!r&&we(t),o=!n&&!r&&!i&&Mr(t),s=n||r||i||o,a=s?function(l,h){for(var I=-1,v=Array(l);++I<l;)v[I]=h(I);return v}(t.length,String):[],c=a.length;for(var u in t)!e&&!la.call(t,u)||s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Nn(u,c))||a.push(u);return a}function $o(t,e){return function(n){return t(e(n))}}var ha=$o(Object.keys,Object),fa=Object.prototype.hasOwnProperty;function Wo(t){if(!We(t))return ha(t);var e=[];for(var n in Object(t))fa.call(t,n)&&n!="constructor"&&e.push(n);return e}function Nt(t){return Mt(t)?Bo(t):Wo(t)}var Fn,da=Object.prototype.hasOwnProperty,dt=(Fn=function(t,e){if(We(e)||Mt(e))ur(e,Nt(e),t);else for(var n in e)da.call(e,n)&&yn(t,n,e[n])},Pr(function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=Fn.length>3&&typeof i=="function"?(r--,i):void 0,o&&Uo(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var s=e[n];s&&Fn(t,s)}return t})),pa=Object.prototype.hasOwnProperty;function Go(t){return Mt(t)?Bo(t,!0):function(e){if(!Rt(e))return function(o){var s=[];if(o!=null)for(var a in Object(o))s.push(a);return s}(e);var n=We(e),r=[];for(var i in e)(i!="constructor"||!n&&pa.call(e,i))&&r.push(i);return r}(t)}var ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/;function lr(t,e){if(B(t))return!1;var n=typeof t;return!(n!="number"&&n!="symbol"&&n!="boolean"&&t!=null&&!An(t))||Ea.test(t)||!ma.test(t)||e!=null&&t in Object(e)}var Re=se(Object,"create"),ga=Object.prototype.hasOwnProperty,Ta=Object.prototype.hasOwnProperty;function ne(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ke(t,e){for(var n=t.length;n--;)if($e(t[n][0],e))return n;return-1}ne.prototype.clear=function(){this.__data__=Re?Re(null):{},this.size=0},ne.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ne.prototype.get=function(t){var e=this.__data__;if(Re){var n=e[t];return n==="__lodash_hash_undefined__"?void 0:n}return ga.call(e,t)?e[t]:void 0},ne.prototype.has=function(t){var e=this.__data__;return Re?e[t]!==void 0:Ta.call(e,t)},ne.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Re&&e===void 0?"__lodash_hash_undefined__":e,this};var Aa=Array.prototype.splice;function Vt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=function(){this.__data__=[],this.size=0},Vt.prototype.delete=function(t){var e=this.__data__,n=Ke(e,t);return!(n<0||(n==e.length-1?e.pop():Aa.call(e,n,1),--this.size,0))},Vt.prototype.get=function(t){var e=this.__data__,n=Ke(e,t);return n<0?void 0:e[n][1]},Vt.prototype.has=function(t){return Ke(this.__data__,t)>-1},Vt.prototype.set=function(t,e){var n=this.__data__,r=Ke(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Me=se(wt,"Map");function ze(t,e){var n,r,i=t.__data__;return((r=typeof(n=e))=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null)?i[typeof e=="string"?"string":"hash"]:i.map}function Gt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ur(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ur.Cache||Gt),n}Gt.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Me||Vt),string:new ne}},Gt.prototype.delete=function(t){var e=ze(this,t).delete(t);return this.size-=e?1:0,e},Gt.prototype.get=function(t){return ze(this,t).get(t)},Gt.prototype.has=function(t){return ze(this,t).has(t)},Gt.prototype.set=function(t,e){var n=ze(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Ur.Cache=Gt;var Dn,jn,Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ra=/\\(\\)?/g,Na=(Dn=Ur(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Ia,function(n,r,i,o){e.push(i?o.replace(Ra,"$1"):r||n)}),e},function(t){return jn.size===500&&jn.clear(),t}),jn=Dn.cache,Dn);function Sn(t,e){return B(t)?t:lr(t,e)?[t]:Na((n=t)==null?"":bo(n));var n}function Ue(t){if(typeof t=="string"||An(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function hr(t,e){for(var n=0,r=(e=Sn(e,t)).length;t!=null&&n<r;)t=t[Ue(e[n++])];return n&&n==r?t:void 0}function Fr(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var ii=It?It.isConcatSpreadable:void 0;function ya(t){return B(t)||vn(t)||!!(ii&&t&&t[ii])}function Dr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=ya),i||(i=[]);++o<s;){var a=t[o];n(a)?Fr(i,a):r||(i[i.length]=a)}return i}function yt(t){return t!=null&&t.length?Dr(t):[]}var Ko=$o(Object.getPrototypeOf,Object);function zo(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function va(t,e,n,r){var i=-1,o=t==null?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function bt(t){var e=this.__data__=new Vt(t);this.size=e.size}bt.prototype.clear=function(){this.__data__=new Vt,this.size=0},bt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},bt.prototype.get=function(t){return this.__data__.get(t)},bt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vt){var r=n.__data__;if(!Me||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(t,e),this.size=n.size,this};var Vo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oi=Vo&&typeof module=="object"&&module&&!module.nodeType&&module,si=oi&&oi.exports===Vo?wt.Buffer:void 0,ai=si?si.allocUnsafe:void 0;function jr(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Ho(){return[]}var Oa=Object.prototype.propertyIsEnumerable,ci=Object.getOwnPropertySymbols,Br=ci?function(t){return t==null?[]:(t=Object(t),jr(ci(t),function(e){return Oa.call(t,e)}))}:Ho,Sa=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Fr(e,Br(t)),t=Ko(t);return e}:Ho;function Yo(t,e,n){var r=e(t);return B(t)?r:Fr(r,n(t))}function fr(t){return Yo(t,Nt,Br)}var dr=se(wt,"DataView"),pr=se(wt,"Promise"),fe=se(wt,"Set"),ui="[object Map]",li="[object Promise]",hi="[object Set]",fi="[object WeakMap]",di="[object DataView]",_a=oe(dr),La=oe(Me),xa=oe(pr),Ca=oe(fe),ka=oe(cr),At=Qt;(dr&&At(new dr(new ArrayBuffer(1)))!=di||Me&&At(new Me)!=ui||pr&&At(pr.resolve())!=li||fe&&At(new fe)!=hi||cr&&At(new cr)!=fi)&&(At=function(t){var e=Qt(t),n=e=="[object Object]"?t.constructor:void 0,r=n?oe(n):"";if(r)switch(r){case _a:return di;case La:return ui;case xa:return li;case Ca:return hi;case ka:return fi}return e});var ba=Object.prototype.hasOwnProperty,un=wt.Uint8Array,Pa=/\w*$/,pi=It?It.prototype:void 0,mi=pi?pi.valueOf:void 0,Ei=qt&&qt.isMap,wa=Ei?On(Ei):function(t){return Ot(t)&&At(t)=="[object Map]"},gi=qt&&qt.isSet,Ma=gi?On(gi):function(t){return Ot(t)&&At(t)=="[object Set]"},Xo="[object Arguments]",qo="[object Function]",Zo="[object Object]",G={};function Je(t,e,n,r,i,o){var s;if(s!==void 0)return s;if(!Rt(t))return t;var a,c,u,l=B(t);if(l)return c=(a=t).length,u=new a.constructor(c),c&&typeof a[0]=="string"&&ba.call(a,"index")&&(u.index=a.index,u.input=a.input),function(g,d){var A=-1,N=g.length;for(d||(d=Array(N));++A<N;)d[A]=g[A];return d}(t,s=u);var h,I,v,O=At(t),x=O==qo||O=="[object GeneratorFunction]";if(we(t))return I=(h=t).length,v=ai?ai(I):new h.constructor(I),h.copy(v),v;if(O==Zo||O==Xo||x&&!i)return s=x?{}:function(g){return typeof g.constructor!="function"||We(g)?{}:ta(Ko(g))}(t),function(g,d){return ur(g,Br(g),d)}(t,function(g,d){return g&&ur(d,Nt(d),g)}(s,t));if(!G[O])return i?t:{};s=function(g,d){var A,N,f,m,p,E,R,P,L,y=g.constructor;switch(d){case"[object ArrayBuffer]":return p=new(m=g).constructor(m.byteLength),new un(p).set(new un(m)),p;case"[object Boolean]":case"[object Date]":return new y(+g);case"[object DataView]":return f=(N=g).buffer,new N.constructor(f,N.byteOffset,N.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return R=(E=g).buffer,new E.constructor(R,E.byteOffset,E.length);case"[object Map]":case"[object Set]":return new y;case"[object Number]":case"[object String]":return new y(g);case"[object RegExp]":return(L=new(P=g).constructor(P.source,Pa.exec(P))).lastIndex=P.lastIndex,L;case"[object Symbol]":return A=g,mi?Object(mi.call(A)):{}}}(t,O),o||(o=new bt);var _=o.get(t);if(_)return _;o.set(t,s),Ma(t)?t.forEach(function(g){s.add(Je(g,e,n,g,t,o))}):wa(t)&&t.forEach(function(g,d){s.set(d,Je(g,e,n,d,t,o))});var T=l?void 0:fr(t);return Po(T||t,function(g,d){T&&(g=t[d=g]),yn(s,d,Je(g,e,n,d,t,o))}),s}function et(t){return Je(t,4)}function Fe(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function de(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Gt;++e<n;)this.add(t[e])}function Qo(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function $r(t,e){return t.has(e)}function Ti(t,e,n,r,i,o){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var h=-1,I=!0,v=2&n?new de:void 0;for(o.set(t,e),o.set(e,t);++h<a;){var O=t[h],x=e[h];if(r)var _=s?r(x,O,h,e,t,o):r(O,x,h,t,e,o);if(_!==void 0){if(_)continue;I=!1;break}if(v){if(!Qo(e,function(T,g){if(!$r(v,g)&&(O===T||i(O,T,n,r,o)))return v.push(g)})){I=!1;break}}else if(O!==x&&!i(O,x,n,r,o)){I=!1;break}}return o.delete(t),o.delete(e),I}function Ua(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Wr(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}G[Xo]=G["[object Array]"]=G["[object ArrayBuffer]"]=G["[object DataView]"]=G["[object Boolean]"]=G["[object Date]"]=G["[object Float32Array]"]=G["[object Float64Array]"]=G["[object Int8Array]"]=G["[object Int16Array]"]=G["[object Int32Array]"]=G["[object Map]"]=G["[object Number]"]=G[Zo]=G["[object RegExp]"]=G["[object Set]"]=G["[object String]"]=G["[object Symbol]"]=G["[object Uint8Array]"]=G["[object Uint8ClampedArray]"]=G["[object Uint16Array]"]=G["[object Uint32Array]"]=!0,G["[object Error]"]=G[qo]=G["[object WeakMap]"]=!1,de.prototype.add=de.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},de.prototype.has=function(t){return this.__data__.has(t)};var Ai=It?It.prototype:void 0,Bn=Ai?Ai.valueOf:void 0,Fa=Object.prototype.hasOwnProperty,Ii="[object Arguments]",Ri="[object Array]",Ve="[object Object]",Ni=Object.prototype.hasOwnProperty;function mr(t,e,n,r,i){return t===e||(t==null||e==null||!Ot(t)&&!Ot(e)?t!=t&&e!=e:function(o,s,a,c,u,l){var h=B(o),I=B(s),v=h?Ri:At(o),O=I?Ri:At(s),x=(v=v==Ii?Ve:v)==Ve,_=(O=O==Ii?Ve:O)==Ve,T=v==O;if(T&&we(o)){if(!we(s))return!1;h=!0,x=!1}if(T&&!x)return l||(l=new bt),h||Mr(o)?Ti(o,s,a,c,u,l):function(f,m,p,E,R,P,L){switch(p){case"[object DataView]":if(f.byteLength!=m.byteLength||f.byteOffset!=m.byteOffset)return!1;f=f.buffer,m=m.buffer;case"[object ArrayBuffer]":return!(f.byteLength!=m.byteLength||!P(new un(f),new un(m)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+f,+m);case"[object Error]":return f.name==m.name&&f.message==m.message;case"[object RegExp]":case"[object String]":return f==m+"";case"[object Map]":var y=Ua;case"[object Set]":var M=1&E;if(y||(y=Wr),f.size!=m.size&&!M)return!1;var C=L.get(f);if(C)return C==m;E|=2,L.set(f,m);var k=Ti(y(f),y(m),E,R,P,L);return L.delete(f),k;case"[object Symbol]":if(Bn)return Bn.call(f)==Bn.call(m)}return!1}(o,s,v,a,c,u,l);if(!(1&a)){var g=x&&Ni.call(o,"__wrapped__"),d=_&&Ni.call(s,"__wrapped__");if(g||d){var A=g?o.value():o,N=d?s.value():s;return l||(l=new bt),u(A,N,a,c,l)}}return!!T&&(l||(l=new bt),function(f,m,p,E,R,P){var L=1&p,y=fr(f),M=y.length;if(M!=fr(m).length&&!L)return!1;for(var C=M;C--;){var k=y[C];if(!(L?k in m:Fa.call(m,k)))return!1}var $=P.get(f),X=P.get(m);if($&&X)return $==m&&X==f;var W=!0;P.set(f,m),P.set(m,f);for(var rt=L;++C<M;){var mt=f[k=y[C]],Ct=m[k];if(E)var Ae=L?E(Ct,mt,k,m,f,P):E(mt,Ct,k,f,m,P);if(!(Ae===void 0?mt===Ct||R(mt,Ct,p,E,P):Ae)){W=!1;break}rt||(rt=k=="constructor")}if(W&&!rt){var nt=f.constructor,Jt=m.constructor;nt==Jt||!("constructor"in f)||!("constructor"in m)||typeof nt=="function"&&nt instanceof nt&&typeof Jt=="function"&&Jt instanceof Jt||(W=!1)}return P.delete(f),P.delete(m),W}(o,s,a,c,u,l))}(t,e,n,r,mr,i))}function yi(t){return t==t&&!Rt(t)}function vi(t,e){return function(n){return n!=null&&n[t]===e&&(e!==void 0||t in Object(n))}}function Da(t,e){return t!=null&&e in Object(t)}function Jo(t,e,n){for(var r=-1,i=(e=Sn(e,t)).length,o=!1;++r<i;){var s=Ue(e[r]);if(!(o=t!=null&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=t==null?0:t.length)&&wr(i)&&Nn(s,i)&&(B(t)||vn(t))}function Pt(t){return typeof t=="function"?t:t==null?pe:typeof t=="object"?B(t)?(e=t[0],n=t[1],lr(e)&&yi(n)?vi(Ue(e),n):function(r){var i,o,s,a,c=(o=(i=r)==null?void 0:hr(i,e))===void 0?void 0:o;return c===void 0&&c===n?(a=e,(s=r)!=null&&Jo(s,a,Da)):mr(n,c,3)}):function(r){var i=function(o){for(var s=Nt(o),a=s.length;a--;){var c=s[a],u=o[c];s[a]=[c,u,yi(u)]}return s}(r);return i.length==1&&i[0][2]?vi(i[0][0],i[0][1]):function(o){return o===r||function(s,a,c){var u=c.length,l=u;if(s==null)return!l;for(s=Object(s);u--;){var h=c[u];if(h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++u<l;){var I=(h=c[u])[0],v=s[I],O=h[1];if(h[2]){if(v===void 0&&!(I in s))return!1}else if(!mr(O,v,3,void 0,new bt))return!1}return!0}(o,0,i)}}(t):function(r){return lr(r)?(i=Ue(r),function(o){return o?.[i]}):function(o){return function(s){return hr(s,o)}}(r);var i}(t);var e,n}function ja(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}var Oi,ae=(Oi=function(t,e){return t&&function(n,r,i){for(var o=-1,s=Object(n),a=i(n),c=a.length;c--;){var u=a[++o];if(r(s[u],u,s)===!1)break}return n}(t,e,Nt)},function(t,e){if(t==null)return t;if(!Mt(t))return Oi(t,e);for(var n=t.length,r=-1,i=Object(t);++r<n&&e(i[r],r,i)!==!1;);return t});function Ba(t,e,n,r){return ae(t,function(i,o,s){e(r,i,n(i),s)}),r}var ts=Object.prototype,$a=ts.hasOwnProperty,Er=Pr(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Uo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=Go(o),a=-1,c=s.length;++a<c;){var u=s[a],l=t[u];(l===void 0||$e(l,ts[u])&&!$a.call(t,u))&&(t[u]=o[u])}return t});function Si(t){return Ot(t)&&Mt(t)}var ln=Pr(function(t,e){return Si(t)?function(n,r){var i=-1,o=Mo,s=!0,a=n.length,c=[],u=r.length;if(!a)return c;r.length>=200&&(o=$r,s=!1,r=new de(r));t:for(;++i<a;){var l=n[i],h=l;if(l=l!==0?l:0,s&&h==h){for(var I=u;I--;)if(r[I]===h)continue t;c.push(l)}else o(r,h,void 0)||c.push(l)}return c}(t,Dr(e,0,Si,!0)):[]});function me(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function tt(t,e,n){var r=t==null?0:t.length;return r?zo(t,(e=e===void 0?1:Rn(e))<0?0:e,r):[]}function De(t,e,n){var r=t==null?0:t.length;return r?zo(t,0,(e=r-(e=e===void 0?1:Rn(e)))<0?0:e):[]}function U(t,e){var n;return(B(t)?Po:ae)(t,typeof(n=e)=="function"?n:pe)}function Wa(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ga(t,e){var n=!0;return ae(t,function(r,i,o){return n=!!e(r,i,o)}),n}function vt(t,e,n){return(B(t)?Wa:Ga)(t,Pt(e))}function es(t,e){var n=[];return ae(t,function(r,i,o){e(r,i,o)&&n.push(r)}),n}function gt(t,e){return(B(t)?jr:es)(t,Pt(e))}var _i,Ka=Math.max,Ee=(_i=function(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Rn(n);return i<0&&(i=Ka(r+i,0)),wo(t,Pt(e),i)},function(t,e,n){var r=Object(t);if(!Mt(t)){var i=Pt(e);t=Nt(t),e=function(s){return i(r[s],s,r)}}var o=_i(t,e,n);return o>-1?r[i?t[o]:o]:void 0});function St(t){return t&&t.length?t[0]:void 0}function za(t,e){var n=-1,r=Mt(t)?Array(t.length):[];return ae(t,function(i,o,s){r[++n]=e(i,o,s)}),r}function b(t,e){return(B(t)?In:za)(t,Pt(e))}function Tt(t,e){return Dr(b(t,e))}var Li,Va=Object.prototype.hasOwnProperty,Ha=(Li=function(t,e,n){Va.call(t,n)?t[n].push(e):br(t,n,[e])},function(t,e){return(B(t)?ja:Ba)(t,Li,Pt(e),{})}),Ya=Object.prototype.hasOwnProperty;function Xa(t,e){return t!=null&&Ya.call(t,e)}function w(t,e){return t!=null&&Jo(t,e,Xa)}function ut(t){return typeof t=="string"||!B(t)&&Ot(t)&&Qt(t)=="[object String]"}function Q(t){return t==null?[]:(e=t,In(Nt(t),function(n){return e[n]}));var e}var qa=Math.max;function at(t,e,n,r){t=Mt(t)?t:Q(t),n=n?Rn(n):0;var i=t.length;return n<0&&(n=qa(i+n,0)),ut(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&kr(t,e,n)>-1}function xi(t,e,n){return t!=null&&t.length?kr(t,e,0):-1}var Za=Object.prototype.hasOwnProperty;function K(t){if(t==null)return!0;if(Mt(t)&&(B(t)||typeof t=="string"||typeof t.splice=="function"||we(t)||Mr(t)||vn(t)))return!t.length;var e=At(t);if(e=="[object Map]"||e=="[object Set]")return!t.size;if(We(t))return!Wo(t).length;for(var n in t)if(Za.call(t,n))return!1;return!0}var Ci=qt&&qt.isRegExp,Kt=Ci?On(Ci):function(t){return Ot(t)&&Qt(t)=="[object RegExp]"};function Ht(t){return t===void 0}function Qa(t,e,n,r){if(!Rt(t))return t;for(var i=-1,o=(e=Sn(e,t)).length,s=o-1,a=t;a!=null&&++i<o;){var c=Ue(e[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(i!=s){var l=a[c];(u=void 0)==null&&(u=Rt(l)?l:Nn(e[i+1])?[]:{})}yn(a,c,u),a=a[c]}return t}function _t(t,e){if(t==null)return{};var n=In(Yo(t,Go,Sa),function(r){return[r]});return e=Pt(e),function(r,i,o){for(var s=-1,a=i.length,c={};++s<a;){var u=i[s],l=hr(r,u);o(l,u)&&Qa(c,Sn(u,r),l)}return c}(t,n,function(r,i){return e(r,i[0])})}function Ja(t,e,n,r,i){return i(t,function(o,s,a){n=r?(r=!1,o):e(n,o,s,a)}),n}function ft(t,e,n){var r=B(t)?va:Ja,i=arguments.length<3;return r(t,Pt(e),n,i,ae)}function tn(t,e){return(B(t)?jr:es)(t,function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}(Pt(e)))}function tc(t,e){var n;return ae(t,function(r,i,o){return!(n=e(r,i,o))}),!!n}function ns(t,e,n){return(B(t)?Qo:tc)(t,Pt(e))}var ec=fe&&1/Wr(new fe([,-0]))[1]==1/0?function(t){return new fe(t)}:Z;function gr(t){return t&&t.length?function(e){var n=-1,r=Mo,i=e.length,o=!0,s=[],a=s;if(i>=200){var c=ec(e);if(c)return Wr(c);o=!1,r=$r,a=new de}else a=s;t:for(;++n<i;){var u=e[n],l=u;if(u=u!==0?u:0,o&&l==l){for(var h=a.length;h--;)if(a[h]===l)continue t;s.push(u)}else r(a,l,void 0)||(a!==s&&a.push(l),s.push(u))}return s}(t):[]}function Tr(t){console&&console.error&&console.error(`Error: ${t}`)}function rs(t){console&&console.warn&&console.warn(`Warning: ${t}`)}function is(t){const e=new Date().getTime(),n=t();return{time:new Date().getTime()-e,value:n}}function os(t){function e(){}e.prototype=t;const n=new e;function r(){return typeof n.bar}return r(),r(),t}function nc(t){return ut((e=t).LABEL)&&e.LABEL!==""?t.LABEL:t.name;var e}class Ut{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),U(this.definition,n=>{n.accept(e)})}}class pt extends Ut{constructor(e){super([]),this.idx=1,dt(this,_t(e,n=>n!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class ge extends Ut{constructor(e){super(e.definition),this.orgText="",dt(this,_t(e,n=>n!==void 0))}}class ht extends Ut{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,dt(this,_t(e,n=>n!==void 0))}}class lt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Ft extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Dt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class J extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class Lt extends Ut{constructor(e){super(e.definition),this.idx=1,dt(this,_t(e,n=>n!==void 0))}}class xt extends Ut{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,dt(this,_t(e,n=>n!==void 0))}}class V{constructor(e){this.idx=1,dt(this,_t(e,n=>n!==void 0))}accept(e){e.visit(this)}}function en(t){function e(n){return b(n,en)}if(t instanceof pt){const n={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return ut(t.label)&&(n.label=t.label),n}if(t instanceof ht)return{type:"Alternative",definition:e(t.definition)};if(t instanceof lt)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof Ft)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof Dt)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:en(new V({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Lt)return{type:"RepetitionWithSeparator",idx:t.idx,separator:en(new V({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof J)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof xt)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof V){const n={type:"Terminal",name:t.terminalType.name,label:nc(t.terminalType),idx:t.idx};ut(t.label)&&(n.terminalLabel=t.label);const r=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(n.pattern=Kt(r)?r.source:r),n}if(t instanceof ge)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}class Te{visit(e){const n=e;switch(n.constructor){case pt:return this.visitNonTerminal(n);case ht:return this.visitAlternative(n);case lt:return this.visitOption(n);case Ft:return this.visitRepetitionMandatory(n);case Dt:return this.visitRepetitionMandatoryWithSeparator(n);case Lt:return this.visitRepetitionWithSeparator(n);case J:return this.visitRepetition(n);case xt:return this.visitAlternation(n);case V:return this.visitTerminal(n);case ge:return this.visitRule(n);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function hn(t,e=[]){return t instanceof lt||t instanceof J||t instanceof Lt||(t instanceof xt?ns(t.definition,n=>hn(n,e)):!(t instanceof pt&&at(e,t))&&t instanceof Ut&&(t instanceof pt&&e.push(t),vt(t.definition,n=>hn(n,e))))}function kt(t){if(t instanceof pt)return"SUBRULE";if(t instanceof lt)return"OPTION";if(t instanceof xt)return"OR";if(t instanceof Ft)return"AT_LEAST_ONE";if(t instanceof Dt)return"AT_LEAST_ONE_SEP";if(t instanceof Lt)return"MANY_SEP";if(t instanceof J)return"MANY";if(t instanceof V)return"CONSUME";throw Error("non exhaustive match")}class _n{walk(e,n=[]){U(e.definition,(r,i)=>{const o=tt(e.definition,i+1);if(r instanceof pt)this.walkProdRef(r,o,n);else if(r instanceof V)this.walkTerminal(r,o,n);else if(r instanceof ht)this.walkFlat(r,o,n);else if(r instanceof lt)this.walkOption(r,o,n);else if(r instanceof Ft)this.walkAtLeastOne(r,o,n);else if(r instanceof Dt)this.walkAtLeastOneSep(r,o,n);else if(r instanceof Lt)this.walkManySep(r,o,n);else if(r instanceof J)this.walkMany(r,o,n);else{if(!(r instanceof xt))throw Error("non exhaustive match");this.walkOr(r,o,n)}})}walkTerminal(e,n,r){}walkProdRef(e,n,r){}walkFlat(e,n,r){const i=n.concat(r);this.walk(e,i)}walkOption(e,n,r){const i=n.concat(r);this.walk(e,i)}walkAtLeastOne(e,n,r){const i=[new lt({definition:e.definition})].concat(n,r);this.walk(e,i)}walkAtLeastOneSep(e,n,r){const i=ki(e,n,r);this.walk(e,i)}walkMany(e,n,r){const i=[new lt({definition:e.definition})].concat(n,r);this.walk(e,i)}walkManySep(e,n,r){const i=ki(e,n,r);this.walk(e,i)}walkOr(e,n,r){const i=n.concat(r);U(e.definition,o=>{const s=new ht({definition:[o]});this.walk(s,i)})}}function ki(t,e,n){return[new lt({definition:[new V({terminalType:t.separator})].concat(t.definition)})].concat(e,n)}function Ce(t){if(t instanceof pt)return Ce(t.referencedRule);if(t instanceof V)return[t.terminalType];if((e=t)instanceof ht||e instanceof lt||e instanceof J||e instanceof Ft||e instanceof Dt||e instanceof Lt||e instanceof V||e instanceof ge)return function(n){let r=[];const i=n.definition;let o,s=0,a=i.length>s,c=!0;for(;a&&c;)o=i[s],c=hn(o),r=r.concat(Ce(o)),s+=1,a=i.length>s;return gr(r)}(t);var e;if(function(n){return n instanceof xt}(t))return function(n){return gr(yt(b(n.definition,r=>Ce(r))))}(t);throw Error("non exhaustive match")}const ss="_~IN~_";class rc extends _n{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,n,r){}walkProdRef(e,n,r){const i=(o=e.referencedRule,s=e.idx,o.name+s+ss+this.topProd.name);var o,s;const a=n.concat(r),c=Ce(new ht({definition:a}));this.follows[i]=c}}function F(t){return t.charCodeAt(0)}function $n(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function Ne(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function ce(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function bi(t){return t.type==="Character"}const fn=[];for(let t=F("0");t<=F("9");t++)fn.push(t);const dn=[F("_")].concat(fn);for(let t=F("a");t<=F("z");t++)dn.push(t);for(let t=F("A");t<=F("Z");t++)dn.push(t);const Pi=[F(" "),F("\f"),F(`
|
|
7
7
|
`),F("\r"),F(" "),F("\v"),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F(" "),F("\u2028"),F("\u2029"),F(" "),F(" "),F(" "),F("\uFEFF")],ic=/[0-9a-fA-F]/,He=/[0-9]/,oc=/[1-9]/;class Ar{visitChildren(e){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}let nn={};const sc=new class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");const e=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Ne(n,"global");break;case"i":Ne(n,"ignoreCase");break;case"m":Ne(n,"multiLine");break;case"u":Ne(n,"unicode");break;case"y":Ne(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:e,loc:this.loc(0)}}disjunction(){const t=[],e=this.idx;for(t.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(e)}}alternative(){const t=[],e=this.idx;for(;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(e)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":let e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}ce(e);const n=this.disjunction();return this.consumeChar(")"),{type:e,value:n,loc:this.loc(t)}}return function(){throw Error("Internal Error - Should never get here!")}()}quantifier(t=!1){let e;const n=this.idx;switch(this.popChar()){case"*":e={atLeast:0,atMost:1/0};break;case"+":e={atLeast:1,atMost:1/0};break;case"?":e={atLeast:0,atMost:1};break;case"{":const r=this.integerIncludingZero();switch(this.popChar()){case"}":e={atLeast:r,atMost:r};break;case",":let i;this.isDigit()?(i=this.integerIncludingZero(),e={atLeast:r,atMost:i}):e={atLeast:r,atMost:1/0},this.consumeChar("}")}if(t===!0&&e===void 0)return;ce(e)}if(t!==!0||e!==void 0)return ce(e)?(this.peekChar(0)==="?"?(this.consumeChar("?"),e.greedy=!1):e.greedy=!0,e.type="Quantifier",e.loc=this.loc(n),e):void 0}atom(){let t;const e=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group()}if(t===void 0&&this.isPatternCharacter()&&(t=this.patternCharacter()),ce(t))return t.loc=this.loc(e),this.isQuantifier()&&(t.quantifier=this.quantifier()),t}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[F(`
|
|
8
8
|
`),F("\r"),F("\u2028"),F("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,e=!1;switch(this.popChar()){case"d":t=fn;break;case"D":t=fn,e=!0;break;case"s":t=Pi;break;case"S":t=Pi,e=!0;break;case"w":t=dn;break;case"W":t=dn,e=!0}if(ce(t))return{type:"Set",value:t,complement:e}}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=F("\f");break;case"n":t=F(`
|
|
9
9
|
`);break;case"r":t=F("\r");break;case"t":t=F(" ");break;case"v":t=F("\v")}if(ce(t))return{type:"Character",value:t}}controlLetterEscapeAtom(){this.consumeChar("c");const t=this.popChar();if(/[a-zA-Z]/.test(t)===!1)throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:F("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:F(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),o=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),o=require("./6AlZR3dVayTg7C5E.cjs"),B=["Ok","Cancel"],C=l.memo(v=>{const{initialValue:S,context:g,onOption:y,onValidateOption:p,onInputOption:x,onDone:u,options:f=B,defaultOption:i=f?.[0],cancelOption:c="Cancel",sx:j,...k}=v,[t,h]=l.useState(S),[F,O]=l.useState(!1),d=l.useCallback(async(e,n)=>!0,[]),m=o.Te(async e=>{x?.(t,e),y?.(e,e===c,e===i),u?.()},[t,x,u,y,c,i]),P=o.Te(async e=>{e.keyCode===o.Sn.Enter&&await d?.(t,null)!==!1&&m(i)},[t,m]),w=o.Te(e=>{h(e.target.value),d?.(e.target.value,null)},[p]),I=o.Te(async e=>{let n=await Promise.resolve(p?.(e));try{n!==!1&&(n=await Promise.resolve(d?.(t,e))??!0)}catch{}return n??!0},[p]),[T,b]=l.useState(o.uo.Styles.lookupStyle(t).formatType??o.uo.Type.Custom);l.useEffect(()=>{b(o.uo.Styles.lookupStyle(t).formatType??o.uo.Type.Custom)},[t]);const D=l.useMemo(()=>{const e=o.uo.Styles.lookupPrimary(),n=r=>a.jsx(o.MenuItem,{value:r,children:r},r),s=Object.keys(e).map(r=>n(e[r].formatType));return s.push(n(o.uo.Type.Custom)),s},[]),M=l.useCallback(e=>{const n=e.target.value;b(n);const s=o.uo.Styles.lookupDefault(n);s&&h(s)},[]),$=l.useMemo(()=>{const e=g();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:t}})},[T,t,g]);return a.jsx(o.Tb,{title:"Number Format",options:f,onDone:u,onOption:e=>m(e),onValidateOption:I,defaultOption:i,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"580px",...j},...k,children:a.jsxs(o.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[a.jsxs(o.FormControl,{sx:{minWidth:135},size:"small",children:[a.jsx(o.InputLabel,{children:"Category"}),a.jsx(o.Select,{value:T,label:"Category",onChange:M,sx:{backgroundImage:`linear-gradient(${o.alpha("#fff",o.no(5))}, ${o.alpha("#fff",o.no(5))})`},children:D})]}),a.jsx(o.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:a.jsx(o.TextField,{label:"Code",onFocus:e=>{F||e.target?.select(),O(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${o.alpha("#fff",o.no(5))}, ${o.alpha("#fff",o.no(5))})`}}},value:t,onChange:w,onKeyDown:P,onContextMenu:e=>{e.stopPropagation()}})}),a.jsxs(o.Box,{children:[a.jsx(o.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),a.jsx(o.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:$.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=C,exports.default=C;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./6AlZR3dVayTg7C5E.cjs");exports.fromBufferJSON=async(g,y)=>{let i=g;(function(s){if(s.byteLength<4)return!1;const u=new Uint8Array(s),c={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(c);for(let n=0;n<r.length;n++){const o=r[n],e=c[o];let a=!0;for(let t=0;t<e.length;t++)if(u[t]!==e[t]){a=!1;break}if(a)return o}return!1})(i)&&(i=await async function(s,u="gzip"){const c=new Blob([s]).stream(),r=new DecompressionStream(u),n=c.pipeThrough(r);return(await new Response(n).blob()).arrayBuffer()}(i));let b=new TextDecoder().decode(i);const w=JSON.parse(b),p={...y?.constructorOptions??{},json:w};return new j.vL(p)},exports.toBufferJSON=async(g,y)=>{const i=await g.toJSON(),b=y?.whiteSpace??0;let w;y?.beforeWrite?.(g,i),w=b===0?JSON.stringify(i):function(u,c=2){const r=[];function n(o){const e=c*o;return r[e]===void 0&&(r[e]=" ".repeat(e)),r[e]}return function o(e,a,t,N){if(e==null||typeof e!="object")return JSON.stringify(e);const h=n(a),m=n(a+1);if(Array.isArray(e)){const f=e.length;if(f===0)return"[]";if(t!==0)return JSON.stringify(e);let l=`[
|
|
7
7
|
`;for(let O=0;O<f;O++)l+=m+o(e[O],a+1,t+1,!0),O<f-1&&(l+=`,
|
|
8
8
|
`);return l+=`
|
|
9
9
|
`+h+"]",l}const J=Object.keys(e),d=J.length;if(d===0)return"{}";if(!(t<2))return JSON.stringify(e);let S=`{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -10,4 +10,4 @@ Please use Chrome or Edge if external copy and paste is required.`,k=`You do not
|
|
|
10
10
|
All copy and paste operations will be limited to the browser tab.`,jt={Safari:`The Safari browser does not support advanced copy and paste.
|
|
11
11
|
Copy and paste will be limited to within the browser tab.
|
|
12
12
|
|
|
13
|
-
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./
|
|
13
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./2TmE8J3tbgenWyNa.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}}),Gt=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:Vt},Symbol.toStringTag,{value:"Module"}));exports.$=xt,exports.i=Gt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("react"),t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("react"),t=require("./6AlZR3dVayTg7C5E.cjs"),D=["Ok","Cancel"],h=i.memo(C=>{const{initialComments:T=null,onUpdateComments:d,context:O,onOption:m,onValidateOption:c,onDone:p,options:g=D,defaultOption:u=g?.[0],cancelOption:l="Cancel",sx:b,...y}=C,x=i.useMemo(()=>{const e=T??O?.()?.getComments();let n="";if(e&&e.content&&e.content.runs){const s=e.content.runs;for(let o=0;o<s.length;o++){const S=s[o];n+=S?.text}}return n},[]),[a,F]=i.useState(x),[j,P]=i.useState(!1),f=i.useCallback(async(e,n)=>null,[]),k=t.Te(async e=>{const n=a===""?[]:a.split(`
|
|
7
7
|
`);if(e!==l){const s=[];for(let o=0;o<n.length;o++)s.push({text:n[o]});d?.({content:{runs:s}})}m?.(e,e===l,e===u),p?.()},[a,d,p,m,u,l]),v=t.Te(e=>{F(e.target.value),f(e.target.value,null)},[c]),w=t.Te(async e=>{let n=await Promise.resolve(c?.(e));try{n!==!1&&(n=await f(a,e))}catch{}return n??!0},[c,a]);return r.jsx(t.Tb,{title:(x?"Edit":"Insert")+" Comments",options:g,onDone:p,onOption:e=>k(e),onValidateOption:w,defaultOption:u,cancelOption:l,autoFocusSel:".autoFocus",sx:{width:"480px",...b},...y,children:r.jsx(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:r.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:r.jsx(t.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:e=>{j||e.target?.select(),P(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.no(5))}, ${t.alpha("#fff",t.no(5))})`}}},value:a,onChange:v,onContextMenu:e=>{e.stopPropagation()}})})})})});exports.CommentsDialog=h,exports.default=h;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./D7MyL7xgt0wGGz3I.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
|
|
7
7
|
interface FirstTest {
|
|
8
8
|
isTrue?: boolean;
|
|
9
9
|
}
|
|
10
|
-
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./
|
|
10
|
+
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./gjPOOFOH_THG1O-L.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
|
|
11
11
|
/**
|
|
12
12
|
* Represents the completion of an asynchronous operation
|
|
13
13
|
*/
|
|
@@ -21,7 +21,7 @@ interface Promise<T> {
|
|
|
21
21
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
22
|
}
|
|
23
23
|
`,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
|
|
24
|
-
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./
|
|
24
|
+
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./D4CfqUrC04nbs39G.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
|
|
25
25
|
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
26
26
|
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
27
27
|
export const Observable = globalThis.${l}?.Observable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.3
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -223,7 +223,7 @@ var v;
|
|
|
223
223
|
return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
|
|
224
224
|
}, v.getBuiltInById = (e) => Te.get(e) || Et;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.3
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1498,4 +1498,4 @@ var or = /* @__PURE__ */ Object.freeze({
|
|
|
1498
1498
|
__proto__: null,
|
|
1499
1499
|
initialize: nr
|
|
1500
1500
|
});
|
|
1501
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1501
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./DPTxGnV0pA87nrhG.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|