@sheetxl/studio-vanilla 0.8.0-beta.1 → 0.8.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/-LoBx7J6imeqaxCq.mjs +236 -0
- package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
- package/browser/esm/{CJPemkFUzhcAD_qR.mjs → B00ixdmb8-O5ijEp.mjs} +1 -1
- package/{cdn/assets/Bv_96nwOEMHN9Sa0.js → browser/esm/B0Wjc3lwtjKMwnvn.mjs} +27 -29
- package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
- package/{cdn/assets/C_Io1QC4CeLGRBrz.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
- package/{cdn/assets/D_t53-8k73CNpV-p2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +94 -74
- package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
- package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
- package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
- package/browser/esm/{Dnx3_xXfRlD6ECfZ2.mjs → BMlPFJ1glExv-70Z.mjs} +5 -5
- package/browser/esm/{DBL3Qp5jyPrFg7KI2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
- package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
- package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
- package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
- package/browser/esm/{8V-VceXEjpADM8qK2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
- package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
- package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
- package/browser/esm/{CfvrjQGuf7vXiQCB.mjs → BWo1N4YbK_zGU0nu.mjs} +1 -1
- package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
- package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
- package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
- package/{cdn/assets/C1ZePT2B182vSnxW.js → browser/esm/BhkeuRcx8RlLCQ5E.mjs} +1 -1
- package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
- package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
- package/browser/esm/{B4iT_CduJeJunwBc.mjs → BsUrrzAgfyAdcCJW.mjs} +28 -13
- package/browser/esm/{47Yv4X226-93If7L.mjs → BtGmrIqU9W1L8zfZ.mjs} +1 -1
- package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
- package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
- package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
- package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
- package/browser/esm/{BqTFwWLbXXJ0Fu-X2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
- package/browser/esm/{Blc1T4zLkp8bRC_n2.mjs → ByqhqEMBLrnkaPKE.mjs} +28 -27
- package/{cdn/assets/8f9hCbpXTTYEgG31.js → browser/esm/C-0viTjg1dT2F-sk.mjs} +2 -2
- package/{cdn/assets/BMRav2VAqEzDSp3r.js → browser/esm/C3r_9RqlWrEmlXZ1.mjs} +37 -3
- package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
- package/browser/esm/{Be4QC65cR8N84rTn.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
- package/browser/esm/{1guzFZp1LHz_FwfL.mjs → C9NyIoUahFiyRCxP.mjs} +2 -2
- package/{cdn/assets/BykiUmcpDgSRNQI1.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
- package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
- package/browser/esm/{BLcn1kGRsjURZSzk.mjs → CDsuiN--qdALFyql.mjs} +179 -202
- package/{cdn/assets/BDkVAo0CDCTE04ZJ.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
- package/browser/esm/{CH0of3GZTzHviuQV.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
- package/browser/esm/{CEN8dYSpN2oew8HH.mjs → CMxbiQ5J79M3n1tk.mjs} +604 -405
- package/browser/esm/{vcRSnmAqjwKglEkY.mjs → CQOyeq_-pg3CM-uA.mjs} +6 -7
- package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
- package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
- package/{cdn/assets/hFSDx-LnUOObv-6h.js → browser/esm/CSEMxasVyGCekxKf.mjs} +6 -7
- package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
- package/{cdn/assets/CdMv3f8Gyxh8q2RR.js → browser/esm/CTdFZ_I-41Vr6Dy4.mjs} +1 -1
- package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
- package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
- package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
- package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
- package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
- package/{cdn/assets/DLEdaT0MmrOxMa2h2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +94 -94
- package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
- package/browser/esm/{BVRzmIk5PujkT_Ap.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
- package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
- package/browser/esm/{DTaVECXVrgvC48BE.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
- package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
- package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
- package/browser/esm/{CQM87ZBN7Yzn4Yxr.mjs → Cpza4AeltEVHASij.mjs} +3 -3
- package/browser/esm/{BceIETi6JJRW6Ss62.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
- package/{cdn/assets/iXWgTu3qpYZHcx1J.js → browser/esm/CtZPEkaldpJpoGtW.mjs} +2197 -2013
- package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
- package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
- package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
- package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
- package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
- package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
- package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
- package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
- package/browser/esm/{9_bymSfTn_rR_v6W.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
- package/{cdn/assets/DKeLjEJPO9nT3bpr.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
- package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
- package/browser/esm/{RW23HF8taEtW8q9D.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
- package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
- package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
- package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
- package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
- package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
- package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
- package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
- package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
- package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
- package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
- package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
- package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
- package/{cdn/assets/D9-wpGVbTS9rRpxx.js → browser/esm/DLqc11Pf8vaE4Q5B.mjs} +2 -2
- package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
- package/browser/esm/{R5bs6kCQSZmsCXz-.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
- package/browser/esm/{BCkXtOM3yKocv7L-2.mjs → DQEjvIGMgEkiaP6J.mjs} +1 -1
- package/{cdn/assets/CAPgMrAKg07EREFD2.js → browser/esm/DQIRFXG4MveFkK3I.mjs} +1 -1
- package/browser/esm/{DrUEYcXg6N2D2s1Z2.mjs → DRm1R4uVOkaMfXNI.mjs} +51 -11
- package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
- package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
- package/{cdn/assets/UYgwKnPX3US3Cj2k2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
- package/{cdn/assets/Clfp7SznkOrJoQvL.js → browser/esm/DVpi1vC8ixXvUQG_.mjs} +3 -3
- package/browser/esm/{BOl4FzJRD7MplCU72.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
- package/{cdn/assets/B5ZqqASTcBEV5L9K.js → browser/esm/DXo8mR6t5HGsmTcu.mjs} +1 -1
- package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
- package/browser/esm/{DVZ_UnchuMRveDG32.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
- package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
- package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
- package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
- package/{cdn/assets/EwzqnZl1lTr56hH-.js → browser/esm/Dc2ZwgbIEgYWwAsF.mjs} +1 -1
- package/{cdn/assets/DQ4o4dG7gWbL1X8F.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
- package/{cdn/assets/DRc_Wi5c7WdKHTVN.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
- package/browser/esm/{D3G3tI3DVCUF3Gdk.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
- package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
- package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
- package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
- package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
- package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
- package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
- package/browser/esm/{DZbR5R1fNikjgqYb.mjs → DrI_S0A9TQvriTua.mjs} +1 -1
- package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
- package/browser/esm/{D6SKy2BtcWkhfiA02.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
- package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
- package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
- package/browser/esm/{Cbw0JeJURvQyxIoa.mjs → DxcRLd7wmBGDgJsA.mjs} +1 -1
- package/{cdn/assets/DOsbSsKsexrBoeXa2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
- package/browser/esm/{Dc0BDcQUGy_WIVFa.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
- package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
- package/browser/esm/{BD7RxHQgrqy_4tb5.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
- package/{cdn/assets/COA_SZY2x8q6t4BD.js → browser/esm/FO1Jezau486fH4kN.mjs} +7 -6
- package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
- package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
- package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
- package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
- package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
- package/browser/esm/{Gy0CHZTvn4hY-rkx2.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
- package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
- package/browser/esm/{qG5zdZZAe6mQIJo32.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
- package/{cdn/assets/CtXoSHbCUKMY-tSJ2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
- package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
- package/browser/esm/{BHmYoIIbNW3GdcqV2.mjs → VwGokBaawZfZiV2X.mjs} +1 -1
- package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
- package/browser/esm/{DW72HwfnJtQxzoGa.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
- package/browser/esm/{CR3jgkduTLczbMjH2.mjs → ZxsFYopF0_WWqw4Q.mjs} +1 -1
- package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
- package/{cdn/assets/BHBJtVTiQByD_y9j2.js → browser/esm/_t0Mx-mUFVtmVNkU.mjs} +2 -2
- package/browser/esm/{B0HA_dHcr0kKfudQ.mjs → _zRV52yhE4gPf3XI.mjs} +213 -190
- package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
- package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
- package/browser/esm/{NekeSGoazNCraGNC2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
- package/browser/esm/{DuPdSe-EXFTx9dsc2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
- package/{cdn/assets/DQ-0yyFAwoWtxmhV2.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
- package/browser/esm/{B4vYIE3kSPTxCgpf2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
- package/browser/esm/index.mjs +644 -48
- package/browser/esm/{7rixDGGrR72lXkMV.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
- package/{cdn/assets/BCZjYGV8AqIZghBH.js → browser/esm/lqknEt3DTma5Juxs.mjs} +69 -4
- package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
- package/browser/esm/{DtXC6uPF2LLktqFE.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
- package/browser/esm/{BPv6Pw1hW-sV5Fya.mjs → pc49xtHdprXZLW2X.mjs} +1 -1
- package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
- package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
- package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
- package/browser/esm/{DXWmgQSeh0_HDxZj.mjs → rY-dC3WB558TIbum.mjs} +4 -4
- package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
- package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
- package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
- package/{cdn/assets/CopfZ7Y1Zn_PDNXK.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
- package/browser/esm/{CG5v2hAwGR5Ptufn.mjs → x6GcENwqoUVbd60j.mjs} +1 -1
- package/{cdn/assets/CGqvy5LwQ4z9J2oD.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
- package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
- package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
- package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
- package/{browser/esm/DVQNQmjI2PKkwiOw2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
- package/cdn/assets/{mtrwY1hjJeYlmzC-.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
- package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
- package/cdn/assets/{CJPemkFUzhcAD_qR.js → B00ixdmb8-O5ijEp.js} +1 -1
- package/{browser/esm/Bv_96nwOEMHN9Sa02.mjs → cdn/assets/B0Wjc3lwtjKMwnvn.js} +27 -29
- package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
- package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
- package/{browser/esm/D_t53-8k73CNpV-p.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +94 -74
- package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
- package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
- package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
- package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
- package/cdn/assets/{CF8m5SqeMaRkGIYM.js → BIsbcP5RXRU2XPfx.js} +2 -2
- package/cdn/assets/{Dnx3_xXfRlD6ECfZ.js → BMlPFJ1glExv-70Z.js} +5 -5
- package/cdn/assets/{DBL3Qp5jyPrFg7KI.js → BN2d5U1nw7pRtOrn.js} +1 -1
- package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
- package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
- package/cdn/assets/{8V-VceXEjpADM8qK.js → BSCja5yvevmKZPBB.js} +1 -1
- package/cdn/assets/{CfvrjQGuf7vXiQCB2.js → BWo1N4YbK_zGU0nu.js} +1 -1
- package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
- package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
- package/cdn/assets/{CBuvbUg67ah_3BOZ.js → BeQ95CzwR65il0CK.js} +2 -2
- package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
- package/cdn/assets/{C8mUyjJ26jsHGl_D.js → Bgbi7BFR3rN5qj51.js} +22 -21
- package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
- package/{browser/esm/C1ZePT2B182vSnxW2.mjs → cdn/assets/BhkeuRcx8RlLCQ5E.js} +1 -1
- package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
- package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
- package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
- package/cdn/assets/{-2S675KWulPRlVNb2.js → BpZ7P0CO148rR4zW.js} +23 -22
- package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
- package/cdn/assets/{j8nXVEYbO2kPuEYQ.js → Bsn-tUx172sEG2kR.js} +59 -47
- package/cdn/assets/{47Yv4X226-93If7L2.js → BtGmrIqU9W1L8zfZ.js} +1 -1
- package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
- package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
- package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
- package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
- package/cdn/assets/{BqTFwWLbXXJ0Fu-X.js → ByUcqyCNfqi5Mm7w.js} +2 -2
- package/{browser/esm/CsufM5aF6VTLKDWM.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
- package/{browser/esm/8f9hCbpXTTYEgG312.mjs → cdn/assets/C-0viTjg1dT2F-sk.js} +2 -2
- package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
- package/cdn/assets/{B55nrhIK6gAAu4ZA.js → C32co-XulWTkEKrW.js} +2 -2
- package/{browser/esm/BMRav2VAqEzDSp3r2.mjs → cdn/assets/C3r_9RqlWrEmlXZ1.js} +37 -3
- package/cdn/assets/{Be4QC65cR8N84rTn2.js → C5EKgE9Owsc_juw-.js} +1 -1
- package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
- package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
- package/{browser/esm/DMX-ZlC_ljcf7oUN.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
- package/{browser/esm/BykiUmcpDgSRNQI12.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
- package/cdn/assets/{DZDynaLqNeVaDoiH2.js → CCvBdPu7W2ZF6A9J.js} +3 -3
- package/cdn/assets/{Chq4BwbjH0sbIkJN2.js → CDAYVaQYywqaxg4O.js} +28 -13
- package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
- package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
- package/{browser/esm/BDkVAo0CDCTE04ZJ2.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
- package/cdn/assets/{1guzFZp1LHz_FwfL2.js → CHMqT9DzYKTxPfP6.js} +2 -2
- package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
- package/cdn/assets/{DnzDlqizzNkbhJP7.js → CIyaijfp6itgRpFM.js} +95 -87
- package/cdn/assets/{DW7JlG-SQEdLYNar2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
- package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
- package/cdn/assets/{CEN8dYSpN2oew8HH2.js → CMxbiQ5J79M3n1tk.js} +604 -405
- package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
- package/cdn/assets/{vcRSnmAqjwKglEkY2.js → CQOyeq_-pg3CM-uA.js} +6 -7
- package/cdn/assets/{c6VvwMHfXubjjtyj.js → CRXSrbGNABtzf532.js} +141 -126
- package/{browser/esm/hFSDx-LnUOObv-6h2.mjs → cdn/assets/CSEMxasVyGCekxKf.js} +6 -7
- package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
- package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
- package/{browser/esm/CdMv3f8Gyxh8q2RR2.mjs → cdn/assets/CTdFZ_I-41Vr6Dy4.js} +1 -1
- package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
- package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
- package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
- package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
- package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
- package/{browser/esm/D4VqLbEWag8lTWzC2.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
- package/{browser/esm/Bl6bX86tSq8hfyb2.mjs → cdn/assets/CbTN0q6XnYGJqyEp.js} +2215 -2027
- package/cdn/assets/{gspQcUnmlRIwG609.js → Cfg4Dtndwurxv9LM.js} +8 -8
- package/cdn/assets/{BhDLR-jtbOOG-tl12.js → ChAKLV5zrGAHAof2.js} +28 -27
- package/cdn/assets/{CpnA5TZRkPDt4HnM2.js → CsrTRThObSryov1b.js} +182 -132
- package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
- package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
- package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
- package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
- package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
- package/cdn/assets/{CT3G9YRPVfKtHWwf2.js → D-bNmX0QsA8SuT0m.js} +32 -31
- package/{browser/esm/Dg5wjQp0fArKXlM3.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
- package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
- package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
- package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
- package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
- package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
- package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
- package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
- package/cdn/assets/{R5bs6kCQSZmsCXz-2.js → DNaPo7BQu6hr1fWq.js} +1 -1
- package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
- package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
- package/cdn/assets/{BCkXtOM3yKocv7L-.js → DQEjvIGMgEkiaP6J.js} +1 -1
- package/{browser/esm/CAPgMrAKg07EREFD.mjs → cdn/assets/DQIRFXG4MveFkK3I.js} +1 -1
- package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
- package/cdn/assets/{DrUEYcXg6N2D2s1Z.js → DRm1R4uVOkaMfXNI.js} +51 -11
- package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
- package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
- package/{browser/esm/Clfp7SznkOrJoQvL.mjs → cdn/assets/DVpi1vC8ixXvUQG_.js} +3 -3
- package/cdn/assets/{BOl4FzJRD7MplCU7.js → DWgp4t9N9u0eWthH.js} +1 -1
- package/{browser/esm/B5ZqqASTcBEV5L9K2.mjs → cdn/assets/DXo8mR6t5HGsmTcu.js} +1 -1
- package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
- package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
- package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
- package/{browser/esm/EwzqnZl1lTr56hH-2.mjs → cdn/assets/Dc2ZwgbIEgYWwAsF.js} +1 -1
- package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
- package/{browser/esm/oYdWyqsKo9ejAdVm.mjs → cdn/assets/De2z8LdHaWRFiR5T.js} +179 -202
- package/{browser/esm/DQ4o4dG7gWbL1X8F2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
- package/{browser/esm/DRc_Wi5c7WdKHTVN2.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
- package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
- package/cdn/assets/{D3G3tI3DVCUF3Gdk2.js → DjdkGy-EI1kSo226.js} +7 -5
- package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
- package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
- package/cdn/assets/{DaBczM5xU9ev5_or.js → Dp-GJXOMz_b8qAxD.js} +2 -2
- package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
- package/cdn/assets/{DZbR5R1fNikjgqYb.js → DrI_S0A9TQvriTua.js} +1 -1
- package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
- package/cdn/assets/{D6SKy2BtcWkhfiA0.js → Dv8aQFTTaQBJKDDk.js} +2 -5
- package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
- package/cdn/assets/{Cbw0JeJURvQyxIoa.js → DxcRLd7wmBGDgJsA.js} +1 -1
- package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
- package/cdn/assets/{Dc0BDcQUGy_WIVFa.js → Dy44qJVkwNseMG-3.js} +1 -1
- package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
- package/{browser/esm/COA_SZY2x8q6t4BD.mjs → cdn/assets/FO1Jezau486fH4kN.js} +7 -6
- package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
- package/cdn/assets/{DbEGszSW_J_k96KJ.js → G5z0uVlyF6CLw_PA.js} +179 -202
- package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
- package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
- package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
- package/cdn/assets/{Gy0CHZTvn4hY-rkx.js → PtGiIWFBYP-ujLmf.js} +1 -1
- package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
- package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
- package/cdn/assets/{qG5zdZZAe6mQIJo3.js → RfHd1JATBlcsfLPv.js} +5 -5
- package/{browser/esm/CtXoSHbCUKMY-tSJ.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
- package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
- package/{browser/esm/DzDwSOBdJh_lx_NM.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
- package/cdn/assets/{BHmYoIIbNW3GdcqV.js → VwGokBaawZfZiV2X.js} +1 -1
- package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
- package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
- package/cdn/assets/{CR3jgkduTLczbMjH.js → ZxsFYopF0_WWqw4Q.js} +1 -1
- package/{browser/esm/BHBJtVTiQByD_y9j.mjs → cdn/assets/_t0Mx-mUFVtmVNkU.js} +2 -2
- package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
- package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
- package/cdn/assets/{tVOVNvOs6ro8FXqa2.js → dn69mDhY7Xcc91kF.js} +20 -19
- package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
- package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
- package/cdn/assets/{EjOJX5m8OEL-IjPB.js → hg8WYI0Yy4WPPPoP.js} +28 -27
- package/{browser/esm/DQ-0yyFAwoWtxmhV2.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
- package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
- package/{browser/esm/BCZjYGV8AqIZghBH.mjs → cdn/assets/lqknEt3DTma5Juxs.js} +69 -4
- package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
- package/cdn/assets/{BPv6Pw1hW-sV5Fya.js → pc49xtHdprXZLW2X.js} +1 -1
- package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
- package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
- package/{browser/esm/BqwvP0318zI2izeL2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
- package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
- package/cdn/assets/{CG5v2hAwGR5Ptufn2.js → x6GcENwqoUVbd60j.js} +1 -1
- package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
- package/{browser/esm/CGqvy5LwQ4z9J2oD2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +13 -14
- package/browser/cjs/1XrWGMP3GmsQOMIX2.cjs +0 -1
- package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +0 -7
- package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
- package/browser/cjs/B19QM3SGmPKKwD_o.cjs +0 -1
- package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
- package/browser/cjs/B5YBx0GqLor3i0O1.cjs +0 -1
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/B9EI7wviSkHS9ZkH.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
- package/browser/cjs/BC2gCQkR1iykfAuC.cjs +0 -1
- package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
- package/browser/cjs/BEVqcFGFU6Ri9y8T.cjs +0 -5
- package/browser/cjs/BEzaum_kgG4yAOx0.cjs +0 -1
- package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
- package/browser/cjs/BIQZDBQfv3Qm5iC8.cjs +0 -4
- package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
- package/browser/cjs/BSCgCfORdZz1Ii5S.cjs +0 -2
- package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
- package/browser/cjs/BZr-IqNS1skh1hr6.cjs +0 -21
- package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
- package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +0 -3
- package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +0 -1
- package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
- package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
- package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
- package/browser/cjs/BziOCn_XEGT4ynN5.cjs +0 -1
- package/browser/cjs/C-HOJozu5NgCil1q.cjs +0 -1
- package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
- package/browser/cjs/C2oTW2DjZypuqq7x.cjs +0 -1
- package/browser/cjs/C2uDl8VIJqh58YF_.cjs +0 -1
- package/browser/cjs/C5rQELB0TUeXY6VM.cjs +0 -1
- package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +0 -33
- package/browser/cjs/C9C-pr-T_ThweQX92.cjs +0 -1
- package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
- package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CPgCih_KEqnUZ9Rv.cjs +0 -3
- package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
- package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +0 -5
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
- package/browser/cjs/CW-b31_-r-_raT8Y2.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
- package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
- package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
- package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
- package/browser/cjs/CcneNtiqtKppCa-p.cjs +0 -57
- package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
- package/browser/cjs/Ci8Uu7_b4lwwRLAD2.cjs +0 -1
- package/browser/cjs/Clu7XiAsCB48GDXN2.cjs +0 -1
- package/browser/cjs/Cm21F18ga8TluA9h.cjs +0 -1
- package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
- package/browser/cjs/CojEXZgX08waZOoq.cjs +0 -1
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
- package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +0 -88
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
- package/browser/cjs/CvV18ZJgssoHMkdf2.cjs +0 -2
- package/browser/cjs/Cy-4IMt-AbR-ifP3.cjs +0 -126
- package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +0 -7
- package/browser/cjs/CzgwTfy2072Dmt5u.cjs +0 -1
- package/browser/cjs/D19RglhKiroWfpQn2.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS2.cjs +0 -1
- package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
- package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +0 -1
- package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
- package/browser/cjs/DG2kqsWRUtVugjay2.cjs +0 -1
- package/browser/cjs/DH3WXPfGHwWJW0nH.cjs +0 -1
- package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
- package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
- package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
- package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H2.cjs +0 -1
- package/browser/cjs/DNy-UU3NKNqQQngF.cjs +0 -1
- package/browser/cjs/DPjEO7dwhCFd8DHR2.cjs +0 -2
- package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
- package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
- package/browser/cjs/DfMJOaJ0GcUiSn4Q.cjs +0 -1
- package/browser/cjs/DiZDRPIgbO3sQ8Vb.cjs +0 -1
- package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
- package/browser/cjs/DsIHLUKUrSrYhFHl.cjs +0 -1
- package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
- package/browser/cjs/DvSvfeo9V0Abfd3q2.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
- package/browser/cjs/DxQkFYAFNZubVdn22.cjs +0 -1
- package/browser/cjs/E-IqDztfMb_xdszH.cjs +0 -1
- package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
- package/browser/cjs/ElcoSB--cCpS6i7R2.cjs +0 -1
- package/browser/cjs/JfM6P_qoQQTWakZf.cjs +0 -1
- package/browser/cjs/KNCocKN9uPR0tvUS.cjs +0 -1
- package/browser/cjs/Kr8f1inOTt-MICaP2.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
- package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
- package/browser/cjs/PM3PrEWG3WHKxaDx.cjs +0 -1
- package/browser/cjs/YG320hBA20Dl3HoU2.cjs +0 -1
- package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
- package/browser/cjs/_H5j4dU7HOBYTawU.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +0 -1
- package/browser/cjs/aONv0Ys3C8xmnaR82.cjs +0 -1
- package/browser/cjs/aYuNpndpwcZG5eik2.cjs +0 -20
- package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +0 -1
- package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +0 -1
- package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
- package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
- package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
- package/browser/cjs/hzUo76TXMOBqsI3U2.cjs +0 -1
- package/browser/cjs/i2VboqjlOcozI9MQ.cjs +0 -12
- package/browser/cjs/index.cjs +0 -79
- package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
- package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
- package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
- package/browser/cjs/xBcvszV6x7ys-m532.cjs +0 -1
- package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
- package/browser/esm/-vgNEEXiEad4bltZ.mjs +0 -28782
- package/browser/esm/3y_bCend8tkaewDG2.mjs +0 -106
- package/browser/esm/At60x9FEPePwPP_J.mjs +0 -51151
- package/browser/esm/B1NoGosH2YQh01g7.mjs +0 -105
- package/browser/esm/B4h6iO7hQ9lCR7kj.mjs +0 -11273
- package/browser/esm/BBtOlJMVlsWorNJH.mjs +0 -824
- package/browser/esm/BQDXkeSabbxB5DUB2.mjs +0 -47
- package/browser/esm/BUCKq_2lHPd1ndvw.mjs +0 -149
- package/browser/esm/BVjXdv_wkL1x_8ZJ2.mjs +0 -1149
- package/browser/esm/BX4f6i2WMBMKFVCq.mjs +0 -99
- package/browser/esm/BZsx0QHg1RZlM9ZN.mjs +0 -15
- package/browser/esm/BhxX7CZWSOlV2Dsz.mjs +0 -224
- package/browser/esm/BhzLZRz2N8RxjQ_U.mjs +0 -34
- package/browser/esm/BjTf3XA9Swj0ngpH.mjs +0 -7813
- package/browser/esm/BkSb_vyWe-AhyEDa.mjs +0 -4423
- package/browser/esm/Bp9qFBIcpIGXvMgo.mjs +0 -134
- package/browser/esm/C0rS1uBqfsj-gPR8.mjs +0 -152
- package/browser/esm/C6CK_4GD9IpxKglV2.mjs +0 -6713
- package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +0 -87
- package/browser/esm/CGyydD3tRb0ik50l2.mjs +0 -20
- package/browser/esm/CPUlpDM6aAzZzCat2.mjs +0 -471
- package/browser/esm/CU1d8OvDv5TU6fSd.mjs +0 -2211
- package/browser/esm/CY1zykikO58_ADk8.mjs +0 -3188
- package/browser/esm/CZWIS7FuqNjbheSw.mjs +0 -235
- package/browser/esm/Cb-FUOYcyRSkHG6u2.mjs +0 -238
- package/browser/esm/Cc5IufffX4N-8QpE.mjs +0 -6104
- package/browser/esm/Cd8HXAJlflkkTXxc.mjs +0 -53
- package/browser/esm/CfuhUkrvOq11d9FR.mjs +0 -44
- package/browser/esm/Ckl3FLCOeqw7yhkP2.mjs +0 -82
- package/browser/esm/CpjX81WsWJbXMUoT.mjs +0 -3655
- package/browser/esm/D9-wpGVbTS9rRpxx.mjs +0 -24
- package/browser/esm/DDOO4tcrO4OfMUDe.mjs +0 -25
- package/browser/esm/DDUYQ8FPeh1TJU24.mjs +0 -538
- package/browser/esm/DFdU1DsC1lXOrejZ.mjs +0 -8260
- package/browser/esm/DMLwXmjo28k_iNEU.mjs +0 -4740
- package/browser/esm/DVJd6McdAG5udItH.mjs +0 -27
- package/browser/esm/D_zNx76HGunFi7xJ.mjs +0 -509
- package/browser/esm/DfRGH6mEtIVDWEYN2.mjs +0 -304
- package/browser/esm/DnuaqN0xfgqzl8qG.mjs +0 -2687
- package/browser/esm/fJ1McMt7xzRA_lUX.mjs +0 -383
- package/browser/esm/nguMxPB9LKexKBRX.mjs +0 -219
- package/browser/esm/qzhFT2j-mpQEQnKs.mjs +0 -16386
- package/cdn/assets/2CuCH0wi9XPgVzE42.js +0 -44
- package/cdn/assets/2UHIeioUPXrwtZy-2.js +0 -83
- package/cdn/assets/BAhvL7M7ZcgZ8eDc2.js +0 -48
- package/cdn/assets/BJEpPEyFWtLzMIq-2.js +0 -3655
- package/cdn/assets/BKEzd89UphJ8q1pp2.js +0 -2211
- package/cdn/assets/BM7OqAUEUk-up7_82.js +0 -134
- package/cdn/assets/BNuoKAzs4zkxSocG2.js +0 -44
- package/cdn/assets/BNybEGR813e3aNIv.js +0 -8263
- package/cdn/assets/BU6uQhQhpaLElTT82.js +0 -225
- package/cdn/assets/BVgTMDEoPgsWFmku.js +0 -510
- package/cdn/assets/BVjXdv_wkL1x_8ZJ2.js +0 -1149
- package/cdn/assets/BWlMK76Aj2d4ygsH.js +0 -538
- package/cdn/assets/BZsx0QHg1RZlM9ZN2.js +0 -15
- package/cdn/assets/BixsQGDDf3Iv_PtW2.js +0 -4740
- package/cdn/assets/Bl6C6xWT8E6b7OwJ2.js +0 -239
- package/cdn/assets/BzUU8y1IFjREzgog2.js +0 -107
- package/cdn/assets/CGyydD3tRb0ik50l.js +0 -20
- package/cdn/assets/CH0of3GZTzHviuQV.js +0 -24
- package/cdn/assets/CH0of3GZTzHviuQV2.js +0 -24
- package/cdn/assets/CHttngK66Ido5dWW.js +0 -106
- package/cdn/assets/Ce5A_D4YBgi_s2KF.js +0 -176
- package/cdn/assets/CpYlf4dXa_V2v-iS2.js +0 -3188
- package/cdn/assets/Crkvq5j5KIa6eTLI2.js +0 -51151
- package/cdn/assets/Cv-KXN9kl0UeMezQ.js +0 -824
- package/cdn/assets/CvtkpvGzCHhNuwTm.js +0 -16386
- package/cdn/assets/D-fJXasEYyfRUcj2.js +0 -6104
- package/cdn/assets/D1MA2ed2cLMt7hV9.js +0 -236
- package/cdn/assets/D9gETGi23d14kT7u2.js +0 -99
- package/cdn/assets/D9joTG0Z2zdWHAEa2.js +0 -4423
- package/cdn/assets/DC9obE_EVmxtvXCf.js +0 -11275
- package/cdn/assets/DCnA2-zB7W_QB-tD2.js +0 -2199
- package/cdn/assets/DDNivpFWzQ3AIJia.js +0 -2687
- package/cdn/assets/DDOO4tcrO4OfMUDe.js +0 -25
- package/cdn/assets/DEUY_zuVwmptMX4l.js +0 -150
- package/cdn/assets/DIQf1pX-j-dWQu_e.js +0 -472
- package/cdn/assets/DJwQ9abZkyFO9Doy.js +0 -7404
- package/cdn/assets/DTCtbG90ip7Z7LaG.js +0 -220
- package/cdn/assets/DVS_5oDniuAFH3vT2.js +0 -6715
- package/cdn/assets/D_HeH7AJqWoxehn52.js +0 -53
- package/cdn/assets/DfRGH6mEtIVDWEYN.js +0 -304
- package/cdn/assets/DvItgGbf8IOWPyxd.js +0 -28784
- package/cdn/assets/DvlpP6sUZ9Qzl9s22.js +0 -616
- package/cdn/assets/WLUhtyUNK5QJ7Pff.js +0 -34
- package/cdn/assets/c7aIqKLOO4pvUsV12.js +0 -220
- package/cdn/assets/mtI43hWjdp4E3Z_-.js +0 -152
- package/cdn/assets/nmR_PgTW7GrlbHHZ.js +0 -27
- package/cdn/assets/vTCuFafvRlSaT9wy.js +0 -87
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./BnccBYHCCq9TGFx4.cjs"),r=require("./BEJFcqVMDMKOvs11.cjs"),i=require("./BIQZDBQfv3Qm5iC8.cjs"),a=require("./Cy-4IMt-AbR-ifP3.cjs"),o=require("./CPgCih_KEqnUZ9Rv.cjs"),s=require("./i2VboqjlOcozI9MQ.cjs"),c=require("./Cm21F18ga8TluA9h.cjs"),l=require("./BEzaum_kgG4yAOx0.cjs"),u=require("./C5rQELB0TUeXY6VM.cjs"),d=require("./C2oTW2DjZypuqq7x.cjs"),f=require("./CrDTTLE9EvaGDSD4.cjs"),p=require("./BziOCn_XEGT4ynN5.cjs"),m=require("./B5YBx0GqLor3i0O1.cjs"),h=require("./CPcBvw4ZPwHVTUZF.cjs"),g=require("./bIaGoYEDSBCrAaB6.cjs"),_=require("./C6yxQPAEgcGWAhYR.cjs"),v=require("./DNCC-QNp2I7saV-I.cjs"),y=require("./CzgwTfy2072Dmt5u.cjs");var b=a.Et(),x=e.r(t.i(),1),S=x.createContext(null);function C(){return x.useContext(S)}var w=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`,T=e.r(t.r(),1);function E(e){let{children:t,theme:n}=e,r=C(),i=x.useMemo(()=>{let e=r===null?{...n}:function(e,t){return typeof t==`function`?t(e):{...e,...t}}(r,n);return e!=null&&(e[w]=r!==null),e},[n,r]);return(0,T.jsx)(S.Provider,{value:i,children:t})}var D={};function O(e,t,n,r=!1){return x.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function k(e){let{children:t,theme:n,themeId:r}=e,s=i._(D),c=C()||D,l=O(r,s,n),u=O(r,c,n,!0),d=(r?l[r]:l).direction===`rtl`,f=function(e){let t=i._(),n=a.vt()||``,{modularCssLayers:r}=e,s=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return s=r&&t===null?typeof r==`string`?r.replace(/mui(?!\.)/g,s):`@layer ${s};`:``,a.St(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(s){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=s,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[s,n]),s?(0,T.jsx)(o.E,{styles:s}):null}(l);return(0,T.jsx)(E,{theme:u,children:(0,T.jsx)(i.N.Provider,{value:l,children:(0,T.jsx)(a.bt,{value:d,children:(0,T.jsxs)(a.yt,{value:r?l[r].components:l.components,children:[f,t]})})})})}var A=`mode`,j=`color-scheme`,M=`data-color-scheme`;({...x}).useSyncExternalStore;function ee(){}var te=({key:e,storageWindow:t})=>(t||typeof window>`u`||(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return ee;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function N(){}function ne(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function P(e,t){return e.mode===`light`||e.mode===`system`&&e.systemMode===`light`?t(`light`):e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`?t(`dark`):void 0}function re(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=A,colorSchemeStorageKey:o=j,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=te,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=x.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=x.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=x.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=x.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:ne(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=x.useState(l||!d);x.useEffect(()=>{v(!0)},[]);let y=function(e){return P(e,t=>t===`light`?e.lightColorScheme:t===`dark`?e.darkColorScheme:void 0)}(h),b=x.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:ne(r)}})},[f,t]),S=x.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return P(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=x.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=x.useRef(C);return w.current=C,x.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),x.useEffect(()=>{if(d){let e=f?.subscribe(e=>{e&&![`light`,`dark`,`system`].includes(e)||b(e||t)})||N,n=p?.subscribe(e=>{e&&!u.match(e)||S({light:e})})||N,r=m?.subscribe(e=>{e&&!u.match(e)||S({dark:e})})||N;return()=>{e(),n(),r()}}},[S,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:S}}var F=i.v(),ie=b(`div`,{name:`MuiStack`,slot:`Root`});function ae(e){return a.Ct({props:e,name:`MuiStack`,defaultTheme:F})}function oe(e,t){let n=x.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(x.cloneElement(t,{key:`separator-${i}`})),e),[])}var I=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...i.C({theme:t},i.T({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=i.b(t),a=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),o=i.T({values:e.direction,base:a}),s=i.T({values:e.spacing,base:a});typeof o==`object`&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){let r=t>0?o[n[t-1]]:`column`;o[e]=r}}),n=i.D(n,i.C({theme:t},s,(t,n)=>{return e.useFlexGap?{gap:i.x(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${a=n?o[n]:e.direction,{row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`}[a]}`]:i.x(r,t)}};var a}))}return n=i.w(t.breakpoints,n),n};function se(e){return i.m(`MuiAccordionSummary`,e)}var L=i.p(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`content`,`expandIconWrapper`]);function ce(e){return i.m(`MuiToggleButton`,e)}var R=i.p(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function le({theme:e,...t}){let n=`$$material`in e?e[i.B]:void 0;return(0,T.jsx)(k,{...t,themeId:n?i.B:void 0,theme:n||e})}var{CssVarsProvider:ue,useColorScheme:de,getInitColorSchemeScript:z}=function(e){let{themeId:t,theme:n={},modeStorageKey:r=A,colorSchemeStorageKey:i=j,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=x.createContext(void 0),f={},p={},m=typeof c==`string`?c:c.light,h=typeof c==`string`?c:c.dark;return{CssVarsProvider:function(e){let{children:u,theme:m,modeStorageKey:h=r,colorSchemeStorageKey:g=i,disableTransitionOnChange:_=s,storageManager:v,storageWindow:y=typeof window>`u`?void 0:window,documentNode:b=typeof document>`u`?void 0:document,colorSchemeNode:S=typeof document>`u`?void 0:document.documentElement,disableNestedContext:w=!1,disableStyleSheetGeneration:E=!1,defaultMode:D=`system`,forceThemeRerender:O=!1,noSsr:A}=e,j=x.useRef(!1),M=C(),ee=x.useContext(d),te=!!ee&&!w,N=x.useMemo(()=>m||(typeof n==`function`?n():n),[m]),ne=N[t],P=ne||N,{colorSchemes:F=f,components:ie=p,cssVarPrefix:ae}=P,oe=Object.keys(F).filter(e=>!!F[e]).join(`,`),I=x.useMemo(()=>oe.split(`,`),[oe]),se=typeof c==`string`?c:c.light,L=typeof c==`string`?c:c.dark,{mode:ce,setMode:R,systemMode:le,lightColorScheme:ue,darkColorScheme:de,colorScheme:z,setColorScheme:fe}=re({supportedColorSchemes:I,defaultLightColorScheme:se,defaultDarkColorScheme:L,modeStorageKey:h,colorSchemeStorageKey:g,defaultMode:F[se]&&F[L]?D:F[P.defaultColorScheme]?.palette?.mode||P.palette?.mode,storageManager:v,storageWindow:y,noSsr:A}),pe=ce,B=z;te&&(pe=ee.mode,B=ee.colorScheme);let me=B||P.defaultColorScheme;P.vars&&!O&&(me=P.defaultColorScheme);let V=x.useMemo(()=>{let e=P.generateThemeVars?.()||P.vars,t={...P,components:ie,colorSchemes:F,cssVarPrefix:ae,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=F[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return l?l(t):t},[P,me,ie,F,ae]),he=P.colorSchemeSelector;a.St(()=>{if(B&&S&&he&&he!==`media`){let e=he,t=he;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))S.classList.remove(...I.map(e=>t.substring(1).replace(`%s`,e))),S.classList.add(t.substring(1).replace(`%s`,B));else{let e=t.replace(`%s`,B).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||I.forEach(e=>{S.removeAttribute(t.replace(B,e))}),S.setAttribute(t,n?n.replace(/"|'/g,``):``)}else S.setAttribute(t,B)}}},[B,he,S,I]),x.useEffect(()=>{let e;if(_&&j.current&&b){let t=b.createElement(`style`);t.appendChild(b.createTextNode(`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),b.head.appendChild(t),window.getComputedStyle(b.body),e=setTimeout(()=>{b.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[B,_,b]),x.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);let ge=x.useMemo(()=>({allColorSchemes:I,colorScheme:B,darkColorScheme:de,lightColorScheme:ue,mode:pe,setColorScheme:fe,setMode:R,systemMode:le}),[I,B,de,ue,pe,fe,R,le,V.colorSchemeSelector]),_e=!0;(E||!1===P.cssVariables||te&&M?.cssVarPrefix===ae)&&(_e=!1);let ve=(0,T.jsxs)(x.Fragment,{children:[(0,T.jsx)(k,{themeId:ne?t:void 0,theme:V,children:u}),_e&&(0,T.jsx)(o.D,{styles:V.generateStyleSheets?.()||[]})]});return te?ve:(0,T.jsx)(d.Provider,{value:ge,children:ve})},useColorScheme:()=>x.useContext(d)||u,getInitColorSchemeScript:e=>function(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=A,colorSchemeStorageKey:a=j,attribute:o=M,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,T.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${a}-dark') || '${r}';\n const light = localStorage.getItem('${a}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${l}\n }\n} catch(e){}})();`}},`mui-color-scheme-init`)}({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}({themeId:i.B,theme:()=>i.i({cssVariables:!0}),colorSchemeStorageKey:`mui-color-scheme`,modeStorageKey:`mui-mode`,defaultColorScheme:{light:`light`,dark:`dark`},resolveTheme:e=>{let t={...e,typography:i.s(e.palette,e.typography)};return t.unstable_sx=function(e){return i.y({sx:e,theme:this})},t}}),fe=ue;function pe({theme:e,...t}){let n=x.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[i.B]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,T.jsx)(le,{theme:n,...t}):(0,T.jsx)(fe,{theme:e,...t})}var B=x.createContext({});function me(e){return i.m(`MuiAccordion`,e)}var V=i.p(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),he=a.ut(a.V,{name:`MuiAccordion`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${V.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(a.lt(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:`relative`,...a.nt(e,[`margin`],t),overflowAnchor:`none`,"&::before":{position:`absolute`,left:0,top:-1,right:0,height:1,content:`""`,opacity:1,backgroundColor:(e.vars||e).palette.divider,...a.nt(e,[`opacity`,`background-color`],t)},"&:first-of-type":{"&::before":{display:`none`}},[`&.${V.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:`none`}}},[`&.${V.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),a.lt(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${V.expanded}`]:{margin:`16px 0`}}}]}))),ge=a.ut(`h3`,{name:`MuiAccordion`,slot:`Heading`})({all:`unset`}),_e=a.ut(`div`,{name:`MuiAccordion`,slot:`Region`})({}),ve=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiAccordion`}),{children:r,className:o,defaultExpanded:s=!1,disabled:c=!1,disableGutters:l=!1,expanded:u,onChange:f,slots:p={},slotProps:m={},...h}=n,[g,_]=a.J({controlled:u,default:s,name:`Accordion`,state:`expanded`}),v=x.useCallback(e=>{_(!g),f&&f(e,!g)},[g,f,_]),[y,...b]=x.Children.toArray(r),S=x.useMemo(()=>({expanded:g,disabled:c,disableGutters:l,toggle:v}),[g,c,l,v]),C={...n,disabled:c,disableGutters:l,expanded:g},w=(e=>{let{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e;return a._t({root:[`root`,!n&&`rounded`,r&&`expanded`,i&&`disabled`,!o&&`gutters`],heading:[`heading`],region:[`region`]},me,t)})(C),E={slots:p,slotProps:m},[D,O]=a.H(`root`,{elementType:he,externalForwardedProps:{...E,...h},className:i.h(w.root,o),shouldForwardComponentProp:!0,ownerState:C,ref:t}),[k,A]=a.H(`heading`,{elementType:ge,externalForwardedProps:E,className:w.heading,ownerState:C}),[j,M]=a.H(`transition`,{elementType:d.t,externalForwardedProps:E,ownerState:C}),[ee,te]=a.H(`region`,{elementType:_e,externalForwardedProps:E,ownerState:C,className:w.region,additionalProps:{"aria-labelledby":y.props.id,id:y.props[`aria-controls`],role:`region`}});return(0,T.jsxs)(D,{...O,children:[(0,T.jsx)(k,{...A,children:(0,T.jsx)(B.Provider,{value:S,children:y})}),(0,T.jsx)(j,{in:g,timeout:`auto`,...M,children:(0,T.jsx)(ee,{...te,children:b})})]})});function ye(e){return i.m(`MuiAccordionDetails`,e)}i.p(`MuiAccordionDetails`,[`root`]);var be=a.ut(`div`,{name:`MuiAccordionDetails`,slot:`Root`})(a.lt(({theme:e})=>({padding:e.spacing(1,2,2)}))),xe=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiAccordionDetails`}),{className:r,...o}=n,s=n,c=(e=>{let{classes:t}=e;return a._t({root:[`root`]},ye,t)})(s);return(0,T.jsx)(be,{className:i.h(c.root,r),ref:t,ownerState:s,...o})}),H=a.ut(a.L,{name:`MuiAccordionSummary`,slot:`Root`})(a.lt(({theme:e})=>({display:`flex`,width:`100%`,minHeight:48,padding:e.spacing(0,2),...a.nt(e,[`min-height`,`background-color`],{duration:e.transitions.duration.shortest}),[`&.${L.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${L.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${L.disabled})`]:{cursor:`pointer`},variants:[{props:e=>!e.disableGutters,style:{[`&.${L.expanded}`]:{minHeight:64}}}]}))),Se=a.ut(`span`,{name:`MuiAccordionSummary`,slot:`Content`})(a.lt(({theme:e})=>({display:`flex`,textAlign:`start`,flexGrow:1,margin:`12px 0`,variants:[{props:e=>!e.disableGutters,style:{...a.nt(e,[`margin`],{duration:e.transitions.duration.shortest}),[`&.${L.expanded}`]:{margin:`20px 0`}}}]}))),Ce=a.ut(`span`,{name:`MuiAccordionSummary`,slot:`ExpandIconWrapper`})(a.lt(({theme:e})=>({display:`flex`,color:(e.vars||e).palette.action.active,transform:`rotate(0deg)`,...a.nt(e,`transform`,{duration:e.transitions.duration.shortest}),[`&.${L.expanded}`]:{transform:`rotate(180deg)`}}))),we=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiAccordionSummary`}),{children:r,className:o,expandIcon:s,focusVisibleClassName:c,onClick:l,slots:u,slotProps:d,...f}=n,{disabled:p=!1,disableGutters:m,expanded:h,toggle:g}=x.useContext(B),_={...n,expanded:h,disabled:p,disableGutters:m},v=(e=>{let{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return a._t({root:[`root`,n&&`expanded`,r&&`disabled`,!i&&`gutters`],focusVisible:[`focusVisible`],content:[`content`,n&&`expanded`],expandIconWrapper:[`expandIconWrapper`,n&&`expanded`]},se,t)})(_),y={slots:u,slotProps:d},[b,S]=a.H(`root`,{ref:t,shouldForwardComponentProp:!0,className:i.h(v.root,o),elementType:H,externalForwardedProps:{...y,...f},ownerState:_,additionalProps:{focusRipple:!1,disableRipple:!0,internalNativeButton:!0,disabled:p,"aria-expanded":h,focusVisibleClassName:i.h(v.focusVisible,c)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{g&&g(e),l&&l(e)})(t)}})}),[C,w]=a.H(`content`,{className:v.content,elementType:Se,externalForwardedProps:y,ownerState:_}),[E,D]=a.H(`expandIconWrapper`,{className:v.expandIconWrapper,elementType:Ce,externalForwardedProps:y,ownerState:_});return(0,T.jsxs)(b,{...S,children:[(0,T.jsx)(C,{...w,children:r}),s&&(0,T.jsx)(E,{...D,children:s})]})});function Te(e){return i.m(`MuiListSubheader`,e)}i.p(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var Ee=a.ut(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${a.st(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(a.lt(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),De=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiListSubheader`}),{className:r,color:o=`default`,component:s=`li`,disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=n,f={...n,color:o,component:s,disableGutters:c,disableSticky:l,inset:u},p=(e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e;return a._t({root:[`root`,n!=="default"&&`color${a.st(n)}`,!r&&`gutters`,i&&`inset`,!o&&`sticky`]},Te,t)})(f);return(0,T.jsx)(Ee,{as:s,className:i.h(p.root,r),ref:t,ownerState:f,...d})});function Oe(e){return i.m(`MuiCard`,e)}i.p(`MuiCard`,[`root`]);var ke=a.ut(a.V,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),Ae=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiCard`}),{className:r,raised:o=!1,...s}=n,c={...n,raised:o},l=(e=>{let{classes:t}=e;return a._t({root:[`root`]},Oe,t)})(c);return(0,T.jsx)(ke,{className:i.h(l.root,r),elevation:o?8:void 0,ref:t,ownerState:c,...s})});function U(e){return i.m(`MuiCardActions`,e)}i.p(`MuiCardActions`,[`root`,`spacing`]);var W=a.ut(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),G=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:o,...s}=n,c={...n,disableSpacing:r},l=(e=>{let{classes:t,disableSpacing:n}=e;return a._t({root:[`root`,!n&&`spacing`]},U,t)})(c);return(0,T.jsx)(W,{className:i.h(l.root,o),ownerState:c,ref:t,...s})}),K=typeof o.S({})==`function`,q=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),je=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Me=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:q(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...je(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},Ne=`mui-ecs`,Pe=o.S(K?({theme:e,enableColorScheme:t})=>Me(e,t):({theme:e})=>(e=>{let t=Me(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ne})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${Ne}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${Ne}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Fe(e){let{children:t,enableColorScheme:n=!1}=a.ct({props:e,name:`MuiCssBaseline`});return(0,T.jsxs)(x.Fragment,{children:[K&&(0,T.jsx)(Pe,{enableColorScheme:n}),!K&&!n&&(0,T.jsx)(`span`,{className:Ne,style:{display:`none`}}),t]})}var Ie=function(e={}){let{createStyledComponent:t=ie,useThemeProps:n=ae,componentName:r=`MuiStack`}=e,o=t(I);return x.forwardRef(function(e,t){let{component:s=`div`,direction:c=`column`,spacing:l=0,divider:u,children:d,className:f,useFlexGap:p=!1,...m}=n(e),h={direction:c,spacing:l,useFlexGap:p},g=a._t({root:[`root`]},e=>i.m(r,e),{});return(0,T.jsx)(o,{as:s,ownerState:h,ref:t,className:i.h(g.root,f),...m,children:u?oe(d,u):d})})}({createStyledComponent:a.ut(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>a.ct({props:e,name:`MuiStack`})}),Le=x.createContext({}),Re=x.createContext(void 0);function ze(e,t){return t!==void 0&&e!==void 0&&(Array.isArray(t)?t.includes(e):e===t)}var Be=a.ut(a.L,{name:`MuiToggleButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`size${a.st(n.size)}`]]}})(a.lt(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${R.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:`none`,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[{props:{color:`standard`},style:{[`&.${R.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(a.I()).map(([t])=>({props:{color:t},style:{[`&.${R.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),J=x.forwardRef(function(e,t){let{value:n,...r}=x.useContext(Le),o=x.useContext(Re),s=a.ct({props:a.Tt({...r,selected:ze(e.value,n)},e),name:`MuiToggleButton`}),{children:c,className:l,color:u=`standard`,disabled:d=!1,disableFocusRipple:f=!1,fullWidth:p=!1,onChange:m,onClick:h,selected:g,size:_=`medium`,value:v,...y}=s,b={...s,color:u,disabled:d,disableFocusRipple:f,fullWidth:p,size:_},S=(e=>{let{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:s}=e;return a._t({root:[`root`,r&&`selected`,i&&`disabled`,n&&`fullWidth`,`size${a.st(o)}`,s]},ce,t)})(b),C=o||``;return(0,T.jsx)(Be,{className:i.h(r.className,S.root,l,C),internalNativeButton:!0,disabled:d,focusRipple:!f,ref:t,onClick:e=>{h&&(h(e,v),e.defaultPrevented)||m&&m(e,v)},onChange:m,value:v,ownerState:b,"aria-pressed":g,...y,children:c})});function Ve(e){return i.m(`MuiToggleButtonGroup`,e)}var Y=i.p(`MuiToggleButtonGroup`,[`root`,`selected`,`horizontal`,`vertical`,`disabled`,`grouped`,`fullWidth`,`firstButton`,`lastButton`,`middleButton`]),He=a.ut(`div`,{name:`MuiToggleButtonGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Y.grouped}`]:t.grouped},{[`& .${Y.firstButton}`]:t.firstButton},{[`& .${Y.lastButton}`]:t.lastButton},{[`& .${Y.middleButton}`]:t.middleButton},t.root,n.orientation===`vertical`&&t.vertical,n.fullWidth&&t.fullWidth]}})(a.lt(({theme:e})=>({display:`inline-flex`,borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:`vertical`},style:{flexDirection:`column`,[`& .${Y.grouped}`]:{[`&.${Y.selected} + .${Y.grouped}.${Y.selected}`]:{borderTop:0,marginTop:0}},[`& .${Y.firstButton},& .${Y.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Y.lastButton},& .${Y.middleButton}`]:{marginTop:-1,borderTop:`1px solid transparent`,borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Y.lastButton}.${R.disabled},& .${Y.middleButton}.${R.disabled}`]:{borderTop:`1px solid transparent`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{orientation:`horizontal`},style:{[`& .${Y.grouped}`]:{[`&.${Y.selected} + .${Y.grouped}.${Y.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Y.firstButton},& .${Y.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Y.lastButton},& .${Y.middleButton}`]:{marginLeft:-1,borderLeft:`1px solid transparent`,borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Y.lastButton}.${R.disabled},& .${Y.middleButton}.${R.disabled}`]:{borderLeft:`1px solid transparent`}}}]}))),Ue=x.forwardRef(function(e,t){let n=a.ct({props:e,name:`MuiToggleButtonGroup`}),{children:r,className:o,color:s=`standard`,disabled:c=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f=`horizontal`,size:p=`medium`,value:m,...h}=n,g={...n,disabled:c,fullWidth:u,orientation:f,size:p},_=(e=>{let{classes:t,orientation:n,fullWidth:r,disabled:i}=e;return a._t({root:[`root`,n,r&&`fullWidth`],grouped:[`grouped`,i&&`disabled`],firstButton:[`firstButton`],lastButton:[`lastButton`],middleButton:[`middleButton`]},Ve,t)})(g),v=x.useCallback((e,t)=>{if(!d)return;let n=m&&m.indexOf(t),r;m&&n>=0?(r=m.slice(),r.splice(n,1)):r=m?m.concat(t):[t],d(e,r)},[d,m]),y=x.useCallback((e,t)=>{d&&d(e,m===t?null:t)},[d,m]),b=x.useMemo(()=>({className:_.grouped,onChange:l?y:v,value:m,size:p,fullWidth:u,color:s,disabled:c}),[_.grouped,l,y,v,m,p,u,s,c]),S=function(e){return x.Children.toArray(e).filter(e=>x.isValidElement(e))}(r),C=S.length,w=e=>{let t=e===0,n=e===C-1;return t&&n?``:t?_.firstButton:n?_.lastButton:_.middleButton};return(0,T.jsx)(He,{role:`group`,className:i.h(_.root,o),ref:t,ownerState:g,...h,children:(0,T.jsx)(Le.Provider,{value:b,children:S.map((e,t)=>(0,T.jsx)(Re.Provider,{value:w(t),children:e},t))})})}),We=e.r(t.n(),1),Ge=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{workbook:n,descriptor:r,args:i,dragReorder:a,...o}=e;return(0,T.jsx)(s.b,{ref:t,workbook:n,descriptor:(0,x.useMemo)(()=>(e=>{let t=t=>e.getCollection(t.getSelectedSheet());return{key:e.key,messageKeys:e.messageKeys,getItems:e=>t(e).getItems(),subscribe:(t,n)=>{let r=null,i=()=>{r?.();let i={onProtectionChange:()=>n.onChange(),onInvalidated:()=>n.onInvalidated()};for(let t of e.changeEvents)i[t]=()=>n.onChange();r=t.getSelectedSheet().addListeners(i,{transactional:!1})};i();let a=t.addListeners({onSelectedSheetChange:()=>{i(),n.onChange()}},{transactional:!1});return()=>{r?.(),a?.()}},isReadOnly:t=>{let n=t.getSelectedSheet();return e.isReadOnly?.(n)??!n.getProtection().isObjectsAllowed()},isItemReadOnly:(t,n)=>{let r=n.getSelectedSheet();return(e.isReadOnly?.(r)??!r.getProtection().isObjectsAllowed())||t.isProtected()},subscribeItem:(e,t)=>e.addListeners({onInvalidated:()=>t(),onProtectedChange:()=>t()},{transactional:!1}),createDraft:(e,n)=>t(e).createItem(n),createSeededDraft:e.applySeed?(n,r)=>{let i=t(n).createItem();return e.applySeed(i,r),i}:void 0,beforeSave:e.beforeSave,save:(n,r,i)=>{i===null?t(n).add(r,{replaceExisting:!0}):e.applyUpdate(i,r)},delete:e=>e.delete(),duplicate:(e,n)=>{let r=t(n);r.add(r.createItem(e),{index:e.getIndex()})},moveBy:e.reorderable??1?(e,t)=>{e.setIndex(e.getIndex()+t)}:void 0,getCardTitle:e.getCardTitle,getCardSubtitle:e=>e.getRanges().toString(),CardSubtitle:e.CardSubtitle,CardMedia:e.CardMedia,CardBody:e.CardBody,EditorBody:({draft:t})=>{let n=e.EditorBody;return(0,T.jsx)(n,{item:t})}}})(r),[r]),args:i,dragReorder:a,...o})}));Ge.displayName=`AnchorItemsPanel`;var Ke=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r,...a}=e;return(0,T.jsx)(l.t,{size:`small`,type:`text`,placeholder:i.Xt()(`condition.enterText`),value:t??``,onChange:e=>n(String(e.target.value)),disabled:r,...a,slotProps:{input:{sx:{backgroundColor:`background.paper`}}}})});Ke.displayName=`StringOption`;var qe=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r,...a}=e;return(0,T.jsx)(l.t,{size:`small`,type:`number`,placeholder:i.Xt()(`condition.enterNumber`),value:``+(t??``),onChange:e=>n(Number(e.target.value)),disabled:r,...a,slotProps:{input:{sx:{backgroundColor:`background.paper`}}}})});qe.displayName=`NumberOption`;var Je=e=>e==null?``:typeof e==`boolean`?e?`TRUE`:`FALSE`:g.o.isError(e)?e.getLabel():String(e),Ye=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r,...a}=e,o=i.Xt();return(0,T.jsx)(y.r,{size:`small`,value:Je(t),onChangeText:e=>n((e=>{if(e.length===0)return null;if(!e.startsWith(`=`)){let t=e.trim();if(t.length>0){let e=Number(t);if(Number.isFinite(e))return e}}return e})(e)),placeholder:o(`condition.enterValueOrFormula`),disabled:r,fullWidth:!0,equals:`literal`,pickAs:`absolute`,label:null,showError:!1,helperText:null,...a})});Ye.displayName=`ScalarOption`;var Xe=(0,x.memo)(e=>{let{option:t,onOptionChange:n,...o}=e,s=i.Xt(),[c,u]=(0,x.useState)(``),d=typeof t?.items==`string`,f=(0,x.useMemo)(()=>t?.items&&Array.isArray(t.items)?t.items:[],[t?.items]),p=()=>{if(!c.trim())return;let e=c,r=[...f,e];n({...t,items:r}),u(``)};return(0,T.jsxs)(i.t,{...o,style:{display:`flex`,flex:`1 1 auto`,flexDirection:`column`,gap:`8px`,...o?.style},children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,T.jsx)(a.N,{variant:`body2`,sx:{flexGrow:1},children:s(d?`condition.formulaMode`:`condition.listMode`)}),(0,T.jsx)(a.D,{size:`small`,variant:`outlined`,onClick:()=>{n(d?{...t,items:[]}:{...t,items:``})},children:s(d?`condition.switchToList`:`condition.switchToFormula`)})]}),d&&(0,T.jsx)(l.t,{fullWidth:!0,size:`small`,label:s(`condition.formula`),value:t.items||``,onChange:e=>{var r=e.target.value;n({...t,items:r})},placeholder:`=A1:A10`,slotProps:{input:{sx:{backgroundColor:`background.paper`}}},helperText:s(`condition.formulaHelper`)}),!d&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,gap:1},children:[(0,T.jsx)(l.t,{fullWidth:!0,size:`small`,label:s(`condition.addValue`),value:c,onChange:e=>u(e.target.value),onKeyPress:e=>{e.key===`Enter`&&p()},slotProps:{input:{sx:{backgroundColor:`background.paper`}}}}),(0,T.jsx)(a.F,{color:`primary`,onClick:p,disabled:!c.trim(),sx:{backgroundColor:`background.paper`},children:(0,T.jsx)(r.r,{iconKey:`Add`})})]}),f.length>0&&(0,T.jsxs)(i.t,{sx:{p:2,backgroundColor:`background.paper`,border:1,borderColor:`divider`,borderRadius:1},children:[(0,T.jsx)(a.N,{variant:`caption`,sx:{mb:1,display:`block`,color:`text.secondary`},children:s(`condition.valuesCount`,{count:f.length})}),(0,T.jsx)(Ie,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:f.map((e,r)=>(0,T.jsx)(a.k,{label:String(e),onDelete:()=>(e=>{let r=f.filter((t,n)=>n!==e);n({...t,items:r.length>0?r:void 0})})(r),size:`small`,sx:{mb:1}},r))})]}),f.length===0&&(0,T.jsx)(i.t,{sx:{p:3,textAlign:`center`,backgroundColor:`action.hover`,borderRadius:1,border:1,borderColor:`divider`,borderStyle:`dashed`},children:(0,T.jsx)(a.N,{variant:`body2`,sx:{color:`text.secondary`},children:s(`condition.noValues`)})})]})]})});Xe.displayName=`InSetOption`;var Ze={},Qe=(0,x.memo)(e=>{let{option:t,onOptionChange:n,className:a,readOnly:s,...c}=e,d=i.Xt(),f=t?.type??_.B.AverageType.Above,p=t?.stdDevs??``,m={backgroundColor:`background.paper`};return s&&(m={...m,"& .MuiSelect-icon":{display:`none`},"& .MuiOutlinedInput-notchedOutline":{borderColor:`action.disabled`}}),(0,T.jsxs)(i.t,{className:h.t(a,Ze.option),...c,sx:{display:`flex`,flexDirection:`row`,gap:.25,...c?.sx},children:[(0,T.jsx)(o.h,{sx:{flex:.5},size:`small`,children:(0,T.jsxs)(o.t,{value:f,sx:m,IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),disabled:s,onChange:e=>n({...t,type:e.target.value}),children:[(0,T.jsx)(u.t,{value:_.B.AverageType.Above,children:d(`condition.above`)}),(0,T.jsx)(u.t,{value:_.B.AverageType.Below,children:d(`condition.below`)})]})}),(0,T.jsx)(l.t,{size:`small`,placeholder:d(`condition.stdDevs`),value:p,onChange:e=>{let r=Number(e.target.value)||``,i={...t};typeof r==`number`?i.stdDevs=r:delete i.stdDevs,n(i)},sx:{flex:.5},disabled:s,slotProps:{input:{sx:{backgroundColor:`background.paper`}}},type:`number`})]})});Qe.displayName=`AverageOption`;var $e=0,et=new WeakMap,tt=Object.freeze([_.B.BuiltInOperatorNames.Icon,_.B.BuiltInOperatorNames.Color]),nt=(e,t,n,r=tt)=>{let i=t??Object.values(_.I.BuiltInOperators),a=e?.getSelectType()??null,o=e?.isList;return i.filter(t=>{if(r.includes(t.getName()))return!1;let n=t.acceptsList?.();if(!o&&n||o&&!n)return!1;if(!e)return!0;let i=t.getAcceptsTypes?.();return!i||i.includes(a)}).sort((e,t)=>(e.getTitle?.()??``).localeCompare(t.getTitle?.()??``,n))},rt=(e,t,n,r)=>{let i=(e,t)=>(e.getTitle?.()??``).localeCompare(t.getTitle?.()??``,r),a=e.filter(e=>!e.isCombinator?.()).sort(i),o=e.filter(e=>e.isCombinator?.()).sort(i),s=[];return a.length>0&&(s.push((0,T.jsx)(De,{disableSticky:!0,sx:at,children:n(`condition.groupBasic`)},`__header:leaf`)),a.forEach(e=>s.push(t(e)))),a.length>0&&o.length>0&&s.push((0,T.jsx)(f.Zt,{},`__divider`)),o.length>0&&(s.push((0,T.jsx)(De,{disableSticky:!0,sx:at,children:n(`condition.groupCombine`)},`__header:combinator`)),o.forEach(e=>s.push(t(e)))),s},it=(e,t,n=null)=>{if(!e.isCombinator?.())return e.createDefaultParam?.(n??void 0)??null;let r=t.find(e=>!e.isCombinator?.())??null,i=r?{operator:r.getName(),param:r.createDefaultParam?.(n??void 0)??null}:null;return e.getName()===`not`?i:i?[i]:[]},at={userSelect:`none`,lineHeight:`2`,fontSize:`0.75rem`,fontWeight:600,color:`text.secondary`,paddingLeft:1,paddingRight:1},ot={pl:2},st=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:a,...s}=e,c=function(e,t){let n=e=>new Intl.DateTimeFormat(t,{month:`long`}).format(new Date(2e3,e,1));return[{header:e(`condition.period.day`),options:[{value:_.B.TimePeriodType.Today,label:e(`condition.period.today`)},{value:_.B.TimePeriodType.Yesterday,label:e(`condition.period.yesterday`)},{value:_.B.TimePeriodType.Tomorrow,label:e(`condition.period.tomorrow`)}]},{header:e(`condition.period.week`),options:[{value:_.B.TimePeriodType.ThisWeek,label:e(`condition.period.thisWeek`)},{value:_.B.TimePeriodType.LastWeek,label:e(`condition.period.lastWeek`)},{value:_.B.TimePeriodType.NextWeek,label:e(`condition.period.nextWeek`)}]},{header:e(`condition.period.month`),options:[{value:_.B.TimePeriodType.ThisMonth,label:e(`condition.period.thisMonth`)},{value:_.B.TimePeriodType.LastMonth,label:e(`condition.period.lastMonth`)},{value:_.B.TimePeriodType.NextMonth,label:e(`condition.period.nextMonth`)}]},{header:e(`condition.period.year`),options:[{value:_.B.TimePeriodType.YearToDate,label:e(`condition.period.yearToDate`)},{value:_.B.TimePeriodType.LastYear,label:e(`condition.period.lastYear`)}]},{header:e(`condition.period.byMonth`),options:[{value:_.B.TimePeriodType.M1,label:n(0)},{value:_.B.TimePeriodType.M2,label:n(1)},{value:_.B.TimePeriodType.M3,label:n(2)},{value:_.B.TimePeriodType.M4,label:n(3)},{value:_.B.TimePeriodType.M5,label:n(4)},{value:_.B.TimePeriodType.M6,label:n(5)},{value:_.B.TimePeriodType.M7,label:n(6)},{value:_.B.TimePeriodType.M8,label:n(7)},{value:_.B.TimePeriodType.M9,label:n(8)},{value:_.B.TimePeriodType.M10,label:n(9)},{value:_.B.TimePeriodType.M11,label:n(10)},{value:_.B.TimePeriodType.M12,label:n(11)}]},{header:e(`condition.period.byQuarter`),options:[{value:_.B.TimePeriodType.ThisQuarter,label:e(`condition.period.thisQuarter`)},{value:_.B.TimePeriodType.LastQuarter,label:e(`condition.period.lastQuarter`)},{value:_.B.TimePeriodType.NextQuarter,label:e(`condition.period.nextQuarter`)},{value:_.B.TimePeriodType.Q1,label:e(`condition.period.q1`)},{value:_.B.TimePeriodType.Q2,label:e(`condition.period.q2`)},{value:_.B.TimePeriodType.Q3,label:e(`condition.period.q3`)},{value:_.B.TimePeriodType.Q4,label:e(`condition.period.q4`)}]}]}(i.Xt(),i.Rt()),l=t?.type??_.B.TimePeriodType.Today;return(0,T.jsx)(i.t,{...s,sx:{display:`flex`,flexDirection:`column`,gap:2,...s?.sx},children:(0,T.jsx)(o.h,{size:`small`,children:(0,T.jsx)(o.t,{value:l,sx:{backgroundColor:`background.paper`},IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),onChange:e=>n({...t,type:e.target.value}),disabled:a,children:c.map((e,t)=>{let n=[];return t>0&&n.push((0,T.jsx)(f.Zt,{},`divider-${t}`)),n.push((0,T.jsx)(De,{sx:at,children:e.header},`header-${t}`)),e.options.map(e=>n.push((0,T.jsx)(u.t,{sx:ot,value:e.value,children:e.label},e.value))),n})})})})});st.displayName=`TimePeriodOption`;var ct=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:a,...s}=e,c=i.Xt(),d=t?.top??!0,f=t?.limit??10,p=t?.percent??!1;return(0,T.jsxs)(i.t,{...s,sx:{display:`flex`,flexDirection:`row`,gap:.25,...s?.sx},children:[(0,T.jsx)(o.h,{size:`small`,sx:{flex:1},children:(0,T.jsxs)(o.t,{value:d?`top`:`bottom`,sx:{backgroundColor:`background.paper`},IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),onChange:e=>n({...t,top:e.target.value===`top`}),disabled:a,children:[(0,T.jsx)(u.t,{value:`top`,children:c(`condition.top`)}),(0,T.jsx)(u.t,{value:`bottom`,children:c(`condition.bottom`)})]})}),(0,T.jsx)(l.t,{size:`small`,placeholder:`10`,value:f,onChange:e=>{let r=parseFloat(e.target.value)||10;n({...t,limit:r})},disabled:a,type:`number`,slotProps:{input:{sx:{backgroundColor:`background.paper`}}},sx:{flex:.6}}),(0,T.jsx)(o.h,{size:`small`,sx:{flex:1},children:(0,T.jsxs)(o.t,{value:p?`percent`:`items`,sx:{backgroundColor:`background.paper`},IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),onChange:e=>n({...t,percent:e.target.value===`percent`}),disabled:a,children:[(0,T.jsx)(u.t,{value:`items`,children:c(`condition.items`)}),(0,T.jsx)(u.t,{value:`percent`,children:c(`condition.percent`)})]})})]})});ct.displayName=`TopNOption`;var lt=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r,...a}=e,o=i.Xt();return(0,T.jsxs)(i.t,{...a,sx:{display:`flex`,flexDirection:`row`,gap:.25,...a?.sx},children:[(0,T.jsx)(Ye,{option:t?.from??null,placeholder:o(`condition.from`),onOptionChange:e=>{n({...t,from:e})},readOnly:r,sx:{flex:.6,minWidth:0}}),(0,T.jsx)(Ye,{option:t?.to??null,placeholder:o(`condition.to`),onOptionChange:e=>{n({...t,to:e})},readOnly:r,sx:{flex:.6,minWidth:0}})]})});lt.displayName=`BetweenOption`;var ut=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r,...a}=e,o=i.Xt();return(0,T.jsx)(y.r,{size:`small`,value:t??``,onChangeText:e=>n(e),placeholder:o(`condition.enterFormula`),disabled:r,fullWidth:!0,equals:`bare`,label:null,showError:!1,helperText:null,...a})});ut.displayName=`ExpressionOption`;var dt=(0,x.memo)(e=>{let{value:t=null,selectors:n,onChange:a,title:s,allowNull:c=!1,readOnly:l=!1,...d}=e,f=i.Xt(),p=s??f(`condition.selectorTitle`),m=n.map(e=>{let t=e.getName();return(0,T.jsx)(u.t,{value:t,children:e.getTitle?.()??e.getName()},t)}),h={backgroundColor:`background.paper`};return l&&(h={...h,"& .MuiSelect-icon":{display:`none`},"& .MuiOutlinedInput-notchedOutline":{borderColor:`action.disabled`}}),(0,T.jsxs)(o.h,{size:`small`,...d,children:[(0,T.jsx)(o.p,{children:p}),(0,T.jsxs)(o.t,{value:t?.getName()??`null`,label:p,readOnly:l,IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),onChange:e=>{let t=e.target.value,r=t===`null`?null:n.find(e=>e.getName()===t)??null;a(r)},sx:h,children:[c&&(0,T.jsx)(u.t,{value:`null`,children:f(`condition.anySelector`)}),m]})]})});dt.displayName=`SelectorSelect`;var ft=(0,x.memo)(e=>{let{value:t,operators:n,onChange:a,title:s,readOnly:c=!1,...l}=e,d=i.Xt(),f=i.Rt(),p=s??d(`condition.operatorTitle`),m=new Map;n.forEach(e=>{m.set(e.getName(),e)});let h=rt(n,e=>(0,T.jsx)(u.t,{value:e.getName(),sx:ot,children:e.getTitle?.()},e.getName()),d,f);return(0,T.jsxs)(o.h,{size:`small`,...l,children:[(0,T.jsx)(o.p,{children:p}),(0,T.jsx)(o.t,{value:t?.getName()??`null`,label:p,readOnly:c,IconComponent:e=>(0,T.jsx)(r.r,{iconKey:`ExpandMore`,...e}),onChange:e=>{let t=e.target.value,n=t===`null`?null:m.get(t)??null;a(n)},sx:c?{"& .MuiSelect-icon":{display:`none`},"& .MuiOutlinedInput-notchedOutline":{borderColor:`action.disabled`}}:void 0,children:h})]})});ft.displayName=`OperatorSelect`;var pt=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{icon:n,tooltip:a,label:s,darkMode:c,propsPanel:l,value:d,operators:p,onChange:m,title:h,readOnly:g=!1,..._}=e,v=i.Xt(),y=i.Rt();h??v(`condition.operatorTitle`);let b=n||(0,T.jsx)(r.r,{iconKey:`Add`}),S=(0,x.useRef)(m);return S.current=m,(0,T.jsx)(f.Rt,{ref:t,createPopupPanel:(0,x.useCallback)(e=>{let{closeFloatAll:t}=e,n=rt(p,e=>(0,T.jsx)(u.t,{sx:ot,value:e.getName(),onClick:()=>{t?.(),S.current(e)},children:e.getTitle?.()},e.getName()),v,y);return(0,T.jsx)(`div`,{style:{minWidth:200,paddingTop:`8px`,paddingBottom:`8px`,...l?.style},...l,onKeyDown:e=>{e.which===i.Et.Enter&&t?.()},children:(0,T.jsx)(o.r,{disablePadding:!0,children:n})})},[p,v,y]),tooltip:a||s||`When`,label:s,disabled:g,icon:b,..._})})),mt=(0,x.memo)(e=>{let{operator:t,inputs:n,onOptionChange:r,operators:a,selector:o,readOnly:s,...c}=e,l=i.Xt(),u=t.getName()===`not`,d=u?null:t.getName()===`and`?l(`condition.and`):l(`condition.or`),f=u?l(`condition.not`):d;return(0,T.jsx)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:.5,pl:1,borderLeft:2,borderColor:`divider`},...c,children:n.map((e,t)=>(0,T.jsx)(x.Fragment,{children:(0,T.jsx)(bt,{operatorTitle:t>0?f??``:``,operatorParam:e,onOperatorParamChange:e=>((e,t)=>{let i=n.slice(),a={operator:t.operator,param:t.param};((e,t)=>{let n=et.get(e);n&&et.set(t,n)})(n[e],a),i[e]=a,r(i)})(t,e),onRemove:()=>(e=>{let t=n.filter((t,n)=>n!==e);r(t)})(t),operators:a,selector:o,readOnly:s,required:u})},(e=>{let t=et.get(e);return t||(t=`__ci_`+ ++$e,et.set(e,t)),t})(e)))})});mt.displayName=`CombinatorOption`;var ht=(0,x.memo)(e=>{let{option:t,onOptionChange:n,readOnly:r}=e,a=i.Xt();return(0,T.jsxs)(Ue,{exclusive:!0,size:`small`,value:t??!0,onChange:(e,t)=>{t!==null&&n(t)},sx:{my:0,py:0,backgroundColor:`background.paper`},disabled:r,children:[(0,T.jsx)(J,{value:!0,children:a(`condition.true`)}),(0,T.jsx)(J,{value:!1,children:a(`condition.false`)})]})});function gt(e,t){if(!e)return _t(t);let n=new Date(`${e}T${t||`00:00`}`);return isNaN(n.getTime())?null:n}function _t(e){return e?gt(`1970-01-01`,e):null}ht.displayName=`BooleanOption`;var vt=(0,x.memo)(e=>{let{option:t,onOptionChange:n,allowFormula:r,readOnly:a,type:o=`dateTime`,...s}=e,c=i.Xt(),l=o===`date`||o===`dateTime`,u=o===`time`||o===`dateTime`,d=f.F(),p=(0,x.useCallback)(e=>{if(!d||e===null)return null;let t=d.createCell({value:e}),n=t.getValue();return t.getType()===g.t.Number?n:null},[d]),m=(0,x.useCallback)(e=>d?d.createCell({value:e,style:{numberFormat:`Short DateTime`}}).getDate():null,[d]);if(r&&typeof t==`string`)return(0,T.jsx)(Ye,{option:t,onOptionChange:e=>n(e),readOnly:a,sx:s?.sx});let h=m(t??null),_=!(v=h)||isNaN(v.getTime())?``:`${v.getFullYear()}-${String(v.getMonth()+1).padStart(2,`0`)}-${String(v.getDate()).padStart(2,`0`)}`;var v;let y=function(e){return!e||isNaN(e.getTime())?``:`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}(h);return(0,T.jsxs)(i.t,{...s,sx:{display:`flex`,flexDirection:`row`,gap:.5,...s?.sx},children:[l&&(0,T.jsx)(Ke,{option:_,type:`date`,placeholder:c(`condition.enterDate`),onOptionChange:e=>{let t=p(gt(e,y));n(t)},sx:{flex:1.5},readOnly:a}),u&&(0,T.jsx)(Ke,{option:y,type:`time`,placeholder:c(`condition.enterTime`),onOptionChange:e=>{let t=p(o===`time`?_t(e):gt(_,e));n(t)},sx:{flex:1},readOnly:a})]})});vt.displayName=`DateTimeOption`;var X=_.B.BuiltInOperatorNames,yt=new Set([X.EqualTo,X.GreaterThan,X.GreaterThanEqualTo,X.LessThan,X.LessThanEqualTo,X.After,X.AfterEqualTo,X.Before,X.BeforeEqualTo]),bt=(0,x.memo)(e=>{let{operatorParam:t,onOperatorParamChange:n,onRemove:a,operators:o,selector:s,operatorTitle:c,readOnly:l,required:u,...d}=e,p=i.Xt(),m=c??p(`condition.when`),h=t?.operator??null,g=o.find(e=>e.getName()===h)??null,y=t?.param??null,b=!!g?.isCombinator?.(),[S,{width:C}]=v.i(),w=(0,x.useMemo)(()=>!g||b?null:g.getParamType?.(s??void 0)??null,[g,b,s]),E=!b&&w!==`list`&&C>360,D=i.tt(e=>{n({operator:h,param:e})},[n,h]),O=(0,x.useMemo)(()=>{if(!g||b||!w)return null;let e={sx:{flex:.6,minWidth:0},option:y,onOptionChange:D},t=!!h&&yt.has(h);return w===_.B.BuiltInSelectorNames.Number||w===_.B.BuiltInSelectorNames.TextLength?(0,T.jsx)(t?Ye:qe,{...e}):w===_.B.BuiltInSelectorNames.Whole?t?(0,T.jsx)(Ye,{...e}):(0,T.jsx)(qe,{...e,placeholder:p(`condition.enterWholeNumber`),slotProps:{htmlInput:{step:1,onKeyDown:e=>{[`.`,`,`,`e`,`E`].includes(e.key)&&e.preventDefault()},onPaste:e=>{/^-?\d+$/.test(e.clipboardData.getData(`text`))||e.preventDefault()}}}}):w===_.B.BuiltInSelectorNames.Text?(0,T.jsx)(t?Ye:Ke,{...e}):w===_.B.BuiltInSelectorNames.DateTime?(0,T.jsx)(vt,{...e,allowFormula:t}):w===_.B.BuiltInSelectorNames.Date?(0,T.jsx)(vt,{...e,type:`date`,allowFormula:t}):w===_.B.BuiltInSelectorNames.Time?(0,T.jsx)(vt,{...e,type:`time`,allowFormula:t}):w===_.B.BuiltInSelectorNames.List?(0,T.jsx)(Xe,{...e}):w===_.B.BuiltInSelectorNames.Logical?(0,T.jsx)(ht,{...e}):w===_.B.BuiltInOperatorNames.Average?(0,T.jsx)(Qe,{...e}):w===_.B.BuiltInOperatorNames.TimePeriod?(0,T.jsx)(st,{...e}):w===_.B.BuiltInOperatorNames.TopN?(0,T.jsx)(ct,{...e}):w===_.B.BuiltInOperatorNames.Between?(0,T.jsx)(lt,{...e}):w===_.B.BuiltInOperatorNames.Expression?(0,T.jsx)(ut,{...e}):null},[g,b,w,y,p]),k=(0,x.useMemo)(()=>b&&y?Array.isArray(y)?y:[y]:[],[b,y]),A=b&&g?.getName()===`not`,j=e=>{if(!e||e===g)return;let t,r=!!e.isCombinator?.();if(r&&b)t=e.getName()===`not`?k[0]??it(e,o,s):k.length>0?k:it(e,o,s);else{let n=g?.getParamType?.(s??void 0)??null,i=e.getParamType?.(s??void 0)??null;t=!r&&i&&i===n?y:it(e,o,s)}n({operator:e?.getName()??null,param:t})};return(0,T.jsx)(i.t,{ref:S,sx:{display:`flex`,flexDirection:`column`,gap:.5,backgroundColor:`background.paper`,border:1,borderColor:`divider`,borderRadius:1,p:1},...d,children:E?(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:.5},children:[(0,T.jsx)(ft,{title:m,sx:{flex:.4},value:g,operators:o,onChange:j,readOnly:l}),O,!l&&!u&&(0,T.jsx)(f.Gt,{icon:(0,T.jsx)(r.r,{iconKey:`Close`}),onClick:a})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:.5},children:[(0,T.jsx)(ft,{title:m,sx:{flex:1},value:g,operators:o,onChange:j,readOnly:l}),b&&!A&&!l&&(0,T.jsx)(pt,{label:g?.getTitle?.(),icon:(0,T.jsx)(r.r,{iconKey:`Add`}),operators:o,value:null,onChange:e=>{if(!e)return;let t=it(e,o,s),r=[...k,{operator:e?.getName()??null,param:t}];n({operator:h,param:r})}}),!l&&!u&&(0,T.jsx)(f.Gt,{icon:(0,T.jsx)(r.r,{iconKey:`Close`}),disabled:l,onClick:a})]}),b?(0,T.jsx)(mt,{operator:g,inputs:k,onOptionChange:e=>{n({operator:h,param:A?e[0]??null:e})},operators:o,selector:s,readOnly:l}):O]})})});bt.displayName=`OperatorAndParamEditor`;var xt=(0,x.memo)(e=>{let{condition:t,onConditionChange:n,showIncludeBlanks:r=!1,selectorTitle:a,readOnly:o,operators:s,selectors:l,...u}=e,d=i.Xt(),f=i.Rt(),[p,m]=(0,x.useState)(()=>t?.getSelector()??null),[h,g]=(0,x.useState)(()=>t?.getOperator()?{operator:t.getOperator().getName(),param:t.getParam()}:null),[v,y]=(0,x.useState)(()=>t?.isIncludeBlanks()??!1);(0,x.useEffect)(()=>{if(!t)return m(null),void g(null);let e=t.getOperator(),n=t.getSelector()??null;m(n),g(e?{operator:e.getName(),param:t.getParam()}:null),y(t.isIncludeBlanks())},[t]);let b=(0,x.useMemo)(()=>(l??Object.values(_.I.BuiltInSelectors)).slice().sort((e,t)=>(e.getTitle?.()??``).localeCompare(t.getTitle?.()??``,f)),[l,f]),S=(0,x.useMemo)(()=>s??Object.values(_.I.BuiltInOperators),[s]),C=(0,x.useMemo)(()=>nt(p,S,f),[p,S,f]),w=e=>{g(e),n?.({selector:p,...e})},E=r;return(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,p:2,pb:+!E,gap:1,backgroundColor:`action.hover`,border:1,borderColor:`divider`,borderRadius:1},...u,children:[(0,T.jsx)(dt,{title:a,selectors:b,value:p,onChange:e=>{if(m(e),h){let{operator:t}=h,r=S.find(e=>e.getName()===t)??null,i=nt(e,S);if(!r||!i.includes(r))return g(null),void n?.({selector:e,operator:null,param:null});let a=!!r.isCombinator?.(),o=r.getParamType?.(p??void 0)??null,s=r.getParamType?.(e??void 0)??null;if(a||o!==s){let t=it(r,i,e),a={operator:r.getName(),param:t};g(a),n?.({selector:e,...a});return}}n?.({selector:e,...h})},allowNull:!0,readOnly:o}),h?(0,T.jsx)(bt,{operatorParam:h,onOperatorParamChange:w,onRemove:()=>{g(null),n?.({selector:p,operator:null,param:null})},operators:C,selector:p,readOnly:o}):!o&&(0,T.jsx)(i.t,{sx:{display:`flex`},children:(0,T.jsx)(pt,{label:d(`condition.when`),operators:C,value:null,onChange:e=>{e&&w({operator:e?.getName()??null,param:it(e,C,p)})},readOnly:o})}),E&&(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{checked:!v,onChange:e=>{var t=!e.target.checked;y(t),n?.({selector:p,...h,includeBlanks:t})}}),disabled:o,label:d(`condition.ignoreBlanks`)})]})});xt.displayName=`ConditionEditor`;var Z=(0,x.memo)(e=>{let{variant:t=`format`,children:n,sx:r,...a}=e;return(0,T.jsx)(i.t,{className:`sxl-cf-rule-section sxl-cf-rule-section-${t}`,sx:{display:`flex`,flexDirection:`column`,gap:1,p:2,border:1,borderColor:`divider`,borderRadius:1,...t===`config`?{backgroundColor:`action.hover`}:null,...r},...a,children:n})});Z.displayName=`RuleSection`;var St=new _.Y(`transparent`),Ct={lightRedFillDarkRedText:n.v(`conditionalFormat.preset.lightRedFillDarkRedText`),yellowFillDarkYellowText:n.v(`conditionalFormat.preset.yellowFillDarkYellowText`),greenFillDarkGreenText:n.v(`conditionalFormat.preset.greenFillDarkGreenText`),lightRedFill:n.v(`conditionalFormat.preset.lightRedFill`),redText:n.v(`conditionalFormat.preset.redText`),redBorder:n.v(`conditionalFormat.preset.redBorder`)},wt=e=>e?typeof e==`string`?e:e.type===_.dt.Type.None?null:e.color??e.foreground??null:null,Tt=(e,t)=>e===`auto`?null:s.j(e,t),Et=(0,x.memo)(e=>{let{format:t,onFormatChange:a,readOnly:o,...c}=e,l=i.Xt(),{workbook:u,schemeLookup:d,themeKey:p,darkMode:m,propsColorPanel:h}=s.T(),g=t?.font??null,v=(g?.weight??400)>=600,y=g?.style===_.Q.Style.Italic,b=!!g?.underline&&g.underline!==_.Q.UnderlineStyle.None,S=!!g?.strike,C=e=>{let n={...g};for(let[t,r]of Object.entries(e))r===void 0?delete n[t]:n[t]=r;let r={...t};Object.keys(n).length===0?delete r.font:r.font=n,a(Object.keys(r).length===0?null:r)},w=(0,x.useMemo)(()=>u?.getStyles().getNormal().getFont().getColor(),[u,p]),E=(0,x.useMemo)(()=>Tt(g?.color,u),[g?.color,u,p]),D=(0,x.useMemo)(()=>Tt(wt(t?.fill),u),[t?.fill,u,p]),O={padding:`4px`,border:`none`,borderRadius:1};return(0,T.jsxs)(Z,{...c,children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`flex-start`,gap:1},children:[(0,T.jsx)(i.t,{sx:{flex:`1 1 auto`,minWidth:0,display:`flex`,gap:.5,flexWrap:`wrap`},children:f.E.map((e,t)=>{let n=Tt(wt(e.style.fill),u),r=Tt(e.style.font?.color,u),i=e.style.border?Tt(Object.values(e.style.border)[0]?.color,u):null;return(0,T.jsx)(s.S,{sheet:!0,title:l(Ct[e.key]??e.key),disabled:o,onClick:()=>a(structuredClone(e.style)),sx:{backgroundColor:n?.toCSS(`adaptive`)??void 0,color:r?.toCSS(`adaptive`)??void 0,outline:i?`1px solid ${i.toCSS(`adaptive`)}`:void 0,outlineOffset:`-3px`},children:`Aa`},t)})}),(0,T.jsx)(s.S,{title:l(`conditionalFormat.clearStyle`),disabled:o||!t,onClick:()=>a(null),sx:{color:`text.secondary`,"&:disabled":{opacity:.4}},children:(0,T.jsx)(r.r,{iconKey:`ClearFormats`,size:16})})]}),(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:.25},children:[(0,T.jsx)(J,{value:`bold`,size:`small`,sx:O,selected:v,disabled:o,onChange:()=>C({weight:v?void 0:700}),children:(0,T.jsx)(r.r,{iconKey:`TextBold`})}),(0,T.jsx)(J,{value:`italic`,size:`small`,sx:O,selected:y,disabled:o,onChange:()=>C({style:y?void 0:_.Q.Style.Italic}),children:(0,T.jsx)(r.r,{iconKey:`TextItalic`})}),(0,T.jsx)(J,{value:`underline`,size:`small`,sx:O,selected:b,disabled:o,onChange:()=>C({underline:b?void 0:_.Q.UnderlineStyle.Single}),children:(0,T.jsx)(r.r,{iconKey:`TextUnderline`})}),(0,T.jsx)(J,{value:`strike`,size:`small`,sx:O,selected:S,disabled:o,onChange:()=>C({strike:!S||void 0}),children:(0,T.jsx)(r.r,{iconKey:`TextStrike`})}),u&&(0,T.jsx)(s.o,{tooltip:l(`conditionalFormat.border`),selectedBorder:t?.border,createBorder:e=>u.getStyles().getNormal().createStyle({border:e}).getBorder(),schemeLookup:d,autoColor:w,darkMode:m,disabled:o,onSelectBorder:e=>(e=>{let n={...t};e&&Object.keys(e).length!==0?n.border=e:delete n.border,a(Object.keys(n).length===0?null:n)})(e)}),(0,T.jsx)(s.c,{icon:`fill.colored`,tooltip:l(`conditionalFormat.fillColor`),selectedColor:D,disabled:o,onSelectColor:e=>(e=>{let n={...t};e?n.fill={type:_.dt.Type.Solid,color:e.toString()}:delete n.fill,a(Object.keys(n).length===0?null:n)})(e),darkMode:m,propsPanel:{disableAlpha:!0,autoColor:St,autoColorLabelKey:n.v(`color.noFill`),autoColorPosition:s.C.End,...h}}),(0,T.jsx)(s.c,{icon:`text.colored`,tooltip:l(`conditionalFormat.fontColor`),selectedColor:E,disabled:o,onSelectColor:e=>C({color:e?e.toString():void 0}),darkMode:m,propsPanel:{disableAlpha:!0,autoColor:w,...h}})]})]})});Et.displayName=`ConditionalFormatStylePicker`;var Dt={[_.G.ColorStopType.AutoMin]:n.v(`conditionalFormat.stopType.autoMin`),[_.G.ColorStopType.AutoMax]:n.v(`conditionalFormat.stopType.autoMax`),[_.G.ColorStopType.Min]:n.v(`conditionalFormat.stopType.min`),[_.G.ColorStopType.Max]:n.v(`conditionalFormat.stopType.max`),[_.G.ColorStopType.Num]:n.v(`conditionalFormat.stopType.num`),[_.G.ColorStopType.Percent]:n.v(`conditionalFormat.stopType.percent`),[_.G.ColorStopType.Percentile]:n.v(`conditionalFormat.stopType.percentile`),[_.G.ColorStopType.Formula]:n.v(`conditionalFormat.stopType.formula`)},Ot=new Set([_.G.ColorStopType.AutoMin,_.G.ColorStopType.AutoMax,_.G.ColorStopType.Min,_.G.ColorStopType.Max]),kt=(0,x.memo)(e=>{let{label:t,stop:n,onStopChange:r,allowedTypes:c,showColor:d=!1,leading:f,showExclusive:p=!1,readOnly:m,...h}=e,g=i.Xt(),{darkMode:v,toColor:b,propsColorPanel:x}=s.T(),S=n.type??_.G.ColorStopType.Num,C=!Ot.has(S),w=m||!C,E=S===_.G.ColorStopType.Formula,D=n.color,O=d?b(D):null;return(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:.5},...h,children:[t!==void 0&&(0,T.jsx)(a.N,{variant:`caption`,sx:{color:`text.secondary`,flex:`0 0 62px`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},children:t}),f,d&&(0,T.jsx)(s.c,{tooltip:g(`conditionalFormat.stopColor`),selectedColor:O,disabled:m,onSelectColor:e=>{e&&r({...n,color:e.toString()})},darkMode:v,propsPanel:{disableAlpha:!0,...x}}),p&&(0,T.jsxs)(o.t,{size:`small`,value:n.exclusive?`gt`:`gte`,disabled:m,onChange:e=>{let t={...n};e.target.value===`gt`?t.exclusive=!0:delete t.exclusive,r(t)},sx:{flex:`0 0 auto`,backgroundColor:`background.paper`},children:[(0,T.jsx)(u.t,{value:`gte`,children:`>=`}),(0,T.jsx)(u.t,{value:`gt`,children:`>`})]}),(0,T.jsx)(o.t,{size:`small`,value:S,disabled:m,onChange:e=>(e=>{let t={...n,type:e};if(Ot.has(e))delete t.value;else if(t.value===void 0)t.value=e===_.G.ColorStopType.Formula?``:0;else if(e!==_.G.ColorStopType.Formula&&typeof t.value==`string`){let e=Number(t.value);t.value=Number.isFinite(e)?e:0}r(t)})(e.target.value),sx:{flex:`1 1 40%`,minWidth:0,backgroundColor:`background.paper`},children:c.map(e=>(0,T.jsx)(u.t,{value:e,children:g(Dt[e])},e))}),E?(0,T.jsx)(y.r,{size:`small`,value:`${n.value??``}`,onChangeText:e=>{r({...n,value:e})},placeholder:g(`conditionalFormat.enterFormula`),disabled:w,equals:`bare`,pickAs:`absolute`,label:null,showError:!1,helperText:null,sx:{flex:`1 1 30%`,minWidth:0,"& .MuiInputBase-root":{backgroundColor:w?`action.disabledBackground`:`background.paper`}}}):(0,T.jsx)(l.t,{size:`small`,type:`number`,placeholder:C?void 0:g(`conditionalFormat.stopFromData`),value:C?`${n.value??``}`:``,disabled:w,onChange:e=>{let t=e.target.value;r({...n,value:t===``?0:Number(t)})},sx:{flex:`1 1 30%`,minWidth:0,cursor:w?`not-allowed`:void 0},slotProps:{input:{sx:{backgroundColor:w?`action.disabledBackground`:`background.paper`,cursor:w?`not-allowed`:void 0}}}})]})});kt.displayName=`ScaleStopRow`;var At=[_.G.ColorStopType.Min,_.G.ColorStopType.Max,_.G.ColorStopType.Num,_.G.ColorStopType.Percent,_.G.ColorStopType.Percentile,_.G.ColorStopType.Formula],jt=(0,x.memo)(e=>{let{scale:t,onScaleChange:r,readOnly:a,...o}=e,c=i.Xt(),{workbook:l,toColor:u}=s.T(),d=t.stops??[],p=d.length===2?[n.v(`conditionalFormat.stop.minimum`),n.v(`conditionalFormat.stop.maximum`)]:[n.v(`conditionalFormat.stop.minimum`),n.v(`conditionalFormat.stop.midpoint`),n.v(`conditionalFormat.stop.maximum`)];return(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:1},...o,children:[(0,T.jsx)(Z,{children:(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`flex-start`,gap:1},children:[(0,T.jsx)(i.t,{sx:{flex:`1 1 auto`,minWidth:0,display:`flex`,gap:.5,flexWrap:`wrap`},children:f.v.filter(e=>e.stops.length===(d.length===2?2:3)).map((e,t)=>(0,T.jsx)(s.S,{sheet:!0,disabled:a,onClick:()=>r(structuredClone(e)),children:(0,T.jsx)(s.w,{rows:s.y(e.stops??[],s.k,l)})},t))}),(0,T.jsxs)(Ue,{exclusive:!0,size:`small`,value:d.length===2?2:3,disabled:a,onChange:(e,n)=>{n&&(e=>{if(e===d.length||e!==2&&e!==3)return;let n=d.slice();if(e===3){let e=`#FFEB84`,t=u(d[0]?.color??e)?.toRGBA(),r=u(d[d.length-1]?.color??e)?.toRGBA();if(t&&r){let n=e=>Math.round(e).toString(16).padStart(2,`0`).toUpperCase();e=`#${n((t.red+r.red)/2)}${n((t.green+r.green)/2)}${n((t.blue+r.blue)/2)}`}n.splice(1,0,{type:_.G.ColorStopType.Percentile,value:50,color:e})}else n.splice(1,n.length-2);r({...t,stops:n})})(n)},sx:{flex:`0 0 auto`},children:[(0,T.jsx)(J,{value:2,sx:{textTransform:`none`,pt:.25,pb:.25},children:c(`conditionalFormat.twoColor`)}),(0,T.jsx)(J,{value:3,sx:{textTransform:`none`,pt:.25,pb:.25},children:c(`conditionalFormat.threeColor`)})]})]})}),(0,T.jsx)(Z,{variant:`config`,children:d.map((e,n)=>(0,T.jsx)(kt,{label:c(p[Math.min(n,p.length-1)]),stop:e,allowedTypes:At,showColor:!0,readOnly:a,onStopChange:e=>{let i=d.slice();i[n]=e,r({...t,stops:i})}},n))})]})});jt.displayName=`ColorScaleRulePanel`;var Mt=[_.G.ColorStopType.AutoMin,_.G.ColorStopType.Min,_.G.ColorStopType.Num,_.G.ColorStopType.Percent,_.G.ColorStopType.Percentile,_.G.ColorStopType.Formula],Nt=[_.G.ColorStopType.AutoMax,_.G.ColorStopType.Max,_.G.ColorStopType.Num,_.G.ColorStopType.Percent,_.G.ColorStopType.Percentile,_.G.ColorStopType.Formula],Pt=`__auto__`,Ft=(0,x.memo)(e=>{let{scale:t,onScaleChange:n,readOnly:l,...d}=e,p=i.Xt(),{darkMode:m,toColor:h,propsColorPanel:g}=s.T(),v=t.stops??[],y=h(t.color),b=h(t.negativeFillColor),x=h(t.borderColor),S=h(t.negativeBorderColor),C=t.gradient??!1,w=e=>{let r={...t};for(let[t,n]of Object.entries(e))n===void 0?delete r[t]:r[t]=n;n(r)},E={backgroundColor:`background.paper`};return(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:1},...d,children:[(0,T.jsxs)(Z,{children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`flex-start`,gap:1},children:[(0,T.jsx)(i.t,{sx:{flex:`1 1 auto`,minWidth:0,display:`flex`,gap:.5,flexWrap:`wrap`},children:f.W.filter(e=>(e.gradient??!1)===C).map((e,t)=>(0,T.jsx)(s.S,{sheet:!0,disabled:l,onClick:()=>w({color:e.color,gradient:e.gradient,borderColor:e.borderColor}),children:(0,T.jsx)(s.w,{rows:s.D(e,h(e.color)?.toCSS(`adaptive`)??`var(--sxl-color-primary, rgb(33, 115, 70))`)})},t))}),(0,T.jsxs)(Ue,{exclusive:!0,size:`small`,value:C,disabled:l,onChange:(e,t)=>{t!==null&&w({gradient:!!t||void 0})},sx:{flex:`0 0 auto`},children:[(0,T.jsx)(J,{value:!1,sx:{textTransform:`none`,pt:.25,pb:.25},children:p(`conditionalFormat.solidFill`)}),(0,T.jsx)(J,{value:!0,sx:{textTransform:`none`,pt:.25,pb:.25},children:p(`conditionalFormat.gradientFill`)})]})]}),(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{size:`small`,checked:!1===t.showValue,disabled:l,onChange:e=>w({showValue:!e.target.checked&&void 0})}),label:(0,T.jsx)(a.N,{variant:`body2`,children:p(`conditionalFormat.showBarsOnly`)})}),(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[(0,T.jsx)(a.N,{variant:`caption`,sx:{color:`text.secondary`,flex:`0 0 62px`},children:p(`conditionalFormat.bar`)}),(0,T.jsx)(s.c,{icon:`fill.colored`,tooltip:p(`conditionalFormat.barColor`),selectedColor:y,disabled:l,onSelectColor:e=>w({color:e?e.toString():void 0}),darkMode:m,propsPanel:{disableAlpha:!0,...g}}),(0,T.jsx)(s.c,{icon:`stroke.colored`,tooltip:p(`conditionalFormat.barBorderColor`),selectedColor:x,disabled:l,onSelectColor:e=>w({borderColor:e?e.toString():void 0}),darkMode:m,propsPanel:{disableAlpha:!0,...g}})]}),(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[(0,T.jsx)(a.N,{variant:`caption`,sx:{color:`text.secondary`,flex:`0 0 62px`},children:p(`conditionalFormat.negative`)}),(0,T.jsx)(s.c,{icon:`fill.colored`,tooltip:p(`conditionalFormat.negativeColor`),selectedColor:b??y,disabled:l,onSelectColor:e=>w({negativeFillColor:e?e.toString():void 0}),darkMode:m,propsPanel:{disableAlpha:!0,...g}}),(0,T.jsx)(s.c,{icon:`stroke.colored`,tooltip:p(`conditionalFormat.negativeBorderColor`),selectedColor:S??x,disabled:l,onSelectColor:e=>w({negativeBorderColor:e?e.toString():void 0}),darkMode:m,propsPanel:{disableAlpha:!0,...g}}),(0,T.jsx)(s.S,{title:p(`conditionalFormat.sameAsPositive`),disabled:l||!t.negativeFillColor&&!t.negativeBorderColor,onClick:()=>w({negativeFillColor:void 0,negativeBorderColor:void 0}),sx:{color:`text.secondary`,"&:disabled":{opacity:.4}},children:(0,T.jsx)(r.r,{iconKey:`ClearFormats`,size:16})})]}),(0,T.jsxs)(i.t,{sx:{display:`flex`,gap:1,mt:.5},children:[(0,T.jsxs)(o.h,{size:`small`,sx:{flex:1,minWidth:0},children:[(0,T.jsx)(o.p,{children:p(`conditionalFormat.axis`)}),(0,T.jsxs)(o.t,{label:p(`conditionalFormat.axis`),value:t.axisPosition??Pt,disabled:l,sx:E,onChange:e=>{let t=e.target.value;w({axisPosition:t===Pt?void 0:t})},children:[(0,T.jsx)(u.t,{value:Pt,children:p(`conditionalFormat.automatic`)}),(0,T.jsx)(u.t,{value:`middle`,children:p(`conditionalFormat.axisMiddle`)}),(0,T.jsx)(u.t,{value:`none`,children:p(`conditionalFormat.axisNone`)})]})]}),(0,T.jsxs)(o.h,{size:`small`,sx:{flex:1,minWidth:0},children:[(0,T.jsx)(o.p,{children:p(`conditionalFormat.direction`)}),(0,T.jsxs)(o.t,{label:p(`conditionalFormat.direction`),value:t.direction??Pt,disabled:l,sx:E,onChange:e=>{let t=e.target.value;w({direction:t===Pt?void 0:t})},children:[(0,T.jsx)(u.t,{value:Pt,children:p(`conditionalFormat.automatic`)}),(0,T.jsx)(u.t,{value:`leftToRight`,children:p(`conditionalFormat.leftToRight`)}),(0,T.jsx)(u.t,{value:`rightToLeft`,children:p(`conditionalFormat.rightToLeft`)})]})]})]})]}),(0,T.jsxs)(Z,{variant:`config`,children:[(0,T.jsx)(kt,{label:p(`conditionalFormat.stop.minimum`),stop:v[0]??{type:_.G.ColorStopType.AutoMin},allowedTypes:Mt,readOnly:l,onStopChange:e=>{let t=v.slice();t[0]=e,w({stops:t})}}),(0,T.jsx)(kt,{label:p(`conditionalFormat.stop.maximum`),stop:v[1]??{type:_.G.ColorStopType.AutoMax},allowedTypes:Nt,readOnly:l,onStopChange:e=>{let t=v.slice();for(;t.length<2;)t.push({type:_.G.ColorStopType.AutoMax});t[1]=e,w({stops:t})}})]})]})});Ft.displayName=`DataBarRulePanel`;var It=n.v(`conditionalFormat.noCellIcon`),Lt=n.v(`conditionalFormat.cellIcon`),Rt={borderColor:`primary.main`,boxShadow:e=>`inset 0 0 0 1px ${e.palette.primary.main}`},zt={width:`28px`,height:`26px`},Bt=(0,x.memo)(e=>{let{icon:t,onPick:n}=e,r=i.Xt();return(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:`4px`,padding:`6px 8px`},children:[(0,T.jsx)(s.S,{sheet:!0,title:r(It),"aria-pressed":t===null,sx:{...zt,...t===null?Rt:null},onClick:()=>{n({...f.u})},children:(0,T.jsx)(f.B,{icons:[null],size:16})}),(0,T.jsx)(i.t,{sx:{display:`grid`,gridTemplateColumns:`repeat(8, auto)`,justifyContent:`start`,gap:`3px`},children:f.D.map(e=>{let i=((e,t)=>!!e&&e.iconKey===t.iconKey&&e.color===t.color)(t,e.spec);return(0,T.jsx)(s.S,{sheet:!0,title:s.N(r,e.spec),"aria-pressed":i,sx:{...zt,...i?Rt:null},onClick:()=>{n({set:e.set,id:e.id})},children:(0,T.jsx)(f.B,{icons:[e.spec],size:16})},`${e.set}:${e.id}`)})})]})});Bt.displayName=`IconCatalogPanel`;var Vt=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{icon:n,onPick:r,tooltip:a,...o}=e,s=i.Xt();return(0,T.jsx)(f.Rt,{ref:t,createPopupPanel:(0,x.useCallback)(e=>{let{closeFloat:t}=e,i=(0,T.jsx)(Bt,{icon:n,onPick:e=>{t?.(),r(e)}});return f.Ft({...e,children:i})},[n,r]),tooltip:a??s(Lt),icon:(0,T.jsx)(f.B,{icons:[n],size:16}),outlined:!0,...o})}));Vt.displayName=`IconPickerPopupButton`;var Ht=[_.G.ColorStopType.Percent,_.G.ColorStopType.Num,_.G.ColorStopType.Percentile,_.G.ColorStopType.Formula],Ut=(0,x.memo)(e=>{let{scale:t,onScaleChange:r,readOnly:o,...l}=e,u=i.Xt(),d=t.iconSet??_.ct.IconSet.TrafficLights3,p=f.I(d).length===0,m=t.stops??[],h=m.length,g=f.Q(t),v=e=>{let n={...t};for(let[t,r]of Object.entries(e))r===void 0?delete n[t]:n[t]=r;r(n)},y=(0,x.useCallback)(e=>{let{closeFloat:t}=e,n=(0,T.jsx)(s.l,{groups:s.M,disabled:o,onPick:e=>{t?.(),e.type===_.G.ScaleType.IconSet&&e.iconSet&&(e=>{if(e===d)return;let t=f.a(e),n=m;t!==m.length&&(n=f.f(t)),v({iconSet:e,stops:n,icon:void 0})})(e.iconSet)}});return f.Ft({...e,children:n})},[o,t]),b=n.A.camelToPrettyCase(d);return(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:1},...l,children:[(0,T.jsxs)(Z,{children:[(0,T.jsx)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:1},children:(0,T.jsx)(f.Rt,{outlined:!0,disabled:o,label:b,tooltip:b,icon:(0,T.jsx)(i.t,{sx:{width:`82px`,display:`flex`,justifyContent:`center`},children:p?(0,T.jsx)(a.N,{variant:`caption`,noWrap:!0,children:b}):(0,T.jsx)(f.B,{icons:f.I(d),order:`descending`,size:14,gap:3})}),createPopupPanel:y})}),p&&(0,T.jsx)(a.N,{variant:`caption`,sx:{color:`text.secondary`},children:u(`conditionalFormat.adoptedIconSet`)}),(0,T.jsxs)(i.t,{sx:{display:`flex`,gap:1},children:[(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{size:`small`,checked:!1===t.showValue,disabled:o,onChange:e=>v({showValue:!e.target.checked&&void 0})}),label:(0,T.jsx)(a.N,{variant:`body2`,children:u(`conditionalFormat.showIconsOnly`)})}),(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{size:`small`,checked:t.reverse??!1,disabled:o,onChange:e=>v({reverse:!!e.target.checked||void 0})}),label:(0,T.jsx)(a.N,{variant:`body2`,children:u(`conditionalFormat.reverseIcons`)})})]})]}),(0,T.jsx)(Z,{variant:`config`,children:m.map((e,n)=>{let i=t.reverse?h-1-n:n;return(0,T.jsx)(kt,{stop:e,allowedTypes:Ht,showExclusive:!0,readOnly:o||n===0,leading:(0,T.jsx)(Vt,{icon:g[n]??null,disabled:o||p,onPick:e=>r(f.mt(t,i,e))}),onStopChange:e=>{let t=m.slice();t[n]=e,v({stops:t})}},n)})})]})});Ut.displayName=`IconSetRulePanel`;var Wt=(e,t,n)=>s.j(e,t)?.toCSS(`adaptive`)??n,Gt=(e,t,n)=>{if(!e)return n;if(typeof e==`string`)return Wt(e,t,n);if(e.type===_.dt.Type.None)return n;let r=e,i=e;return Wt(i.foreground??r.color??i.background,t,n)},Kt=(0,x.memo)(e=>{let{conditionalFormat:t,size:n=28,...r}=e,{workbook:a,themeKey:o}=s.T();f.O(t,`onAnyChange`);let c=t.getScale(),l=t.getStyle(),u=(0,x.useMemo)(()=>{try{return a?.getStyles().getNormal().getFont().toCSS(`adaptive`)??{}}catch{return{}}},[a,o]),d=(0,x.useMemo)(()=>{if(c?.type===_.G.ScaleType.ColorScale)return(0,T.jsx)(s.w,{rows:s.y(c.stops??[],s.k,a)});if(c?.type===_.G.ScaleType.DataBar)return(0,T.jsx)(s.w,{rows:s.D(c,Wt(c.color,a,s.v),c.borderColor?Wt(c.borderColor,a,s.v):void 0)});if(c?.type===_.G.ScaleType.IconSet)return(0,T.jsx)(i.t,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,height:`100%`,px:.5},children:(0,T.jsx)(f.B,{icons:f.Q(c),order:`descending`,size:14,gap:3})});let e=l?.font,t=e?.underline&&e.underline!==_.Q.UnderlineStyle.None;return(0,T.jsx)(i.t,{sx:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,...u,backgroundColor:Gt(l?.fill,a,`transparent`),...e?.color&&e.color!==`auto`?{color:Wt(e.color,a,s.E)}:null,...e?.weight?{fontWeight:e.weight}:null,...e?.style?{fontStyle:e.style}:null,textDecoration:[t?`underline`:``,e?.strike?`line-through`:``].join(` `).trim()||`none`,fontSize:`${Math.round(.5*n)}px`,lineHeight:1,outline:l?.border?`1px solid ${Wt(Object.values(l.border)[0]?.color,a,s.A)}`:void 0,outlineOffset:`-3px`},children:`Aa`})},[c,l,n,u,a,o]);return(0,T.jsx)(s.S,{sheet:!0,className:`sxl-cf-rule-preview`,sx:{width:`auto`,minWidth:1.7*n+`px`,height:`${n}px`},...r,children:d})});Kt.displayName=`RulePreview`;var qt=(0,x.memo)(e=>{let{conditionalFormat:t,label:n,helperText:r}=e,a=i.Xt(),o=i.ot();f.O(t,[`onAnchorCoordsChange`,`onAnyChange`]);let s=t.getRanges();return(0,T.jsx)(y.r,{grammar:`reference`,value:s,allowMulti:!0,allowCrossSheet:!1,home:(0,x.useMemo)(()=>{if(s.isInvalid())return;let e=s.at(0).getCoords();return{rowIndex:e.rowStart,colIndex:e.colStart,scope:s.at(0).getSheet().getName()}},[s]),pickAs:`absolute`,changeOn:`done`,onDone:(0,x.useCallback)(e=>{let n=e?.getReferences();if(n&&!n.isInvalid())try{t.setRanges(n)}catch(e){o.showMessage?.(e.message,{type:i.dt.Error})}},[t,o]),label:n===void 0?a(`conditionalFormat.applyTo`):n,helperText:r,disabled:t.isProtected()})});qt.displayName=`ConditionalFormatRangeField`;var Jt=(e,t)=>{let r=e.getCondition()?.toString();if(r)return r;let i=e.getScale();return i?n.A.camelToPrettyCase(i.type):t(`conditionalFormat.noCondition`)},Yt={classic:n.v(`conditionalFormat.tab.classic`),[_.G.ScaleType.ColorScale]:n.v(`conditionalFormat.tab.colorScale`),[_.G.ScaleType.DataBar]:n.v(`conditionalFormat.tab.dataBars`),[_.G.ScaleType.IconSet]:n.v(`conditionalFormat.tab.iconSets`)},Xt=(0,x.memo)(e=>{let{conditionalFormat:t}=e,n=i.Xt();f.O(t,`onAnyChange`);let r=t.getScale(),o=t.getCondition(),l=t.getStyle(),u=t.isProtected(),d=r?.type??`classic`,p=(0,x.useRef)({scales:{}}),m=e=>{t.update({scale:e})};return(0,T.jsxs)(a.V,{tabIndex:0,className:s._[`editor-panel`],sx:{gap:e=>e.spacing(1),paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(2),paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5),border:e=>`1px solid ${e.palette.divider}`,borderRadius:e=>e.spacing(1.25),overflow:`auto`},children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:e=>e.spacing(1.75),margin:e=>e.spacing(1.25),marginBottom:0},children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,alignItems:`center`,gap:e=>e.spacing(1.5)},children:[(0,T.jsx)(Kt,{conditionalFormat:t,size:48}),(0,T.jsx)(a.N,{variant:`body2`,sx:{minWidth:0,wordBreak:`break-word`},children:Jt(t,n)})]}),(0,T.jsx)(qt,{conditionalFormat:t})]}),(0,T.jsx)(s.I,{value:d,onChange:(e,n)=>{u||(e=>{if(e!==d)if(d===`classic`?(p.current.condition=o?.toJSON()??null,p.current.style=l):r&&(p.current.scales[r.type]=r),e===`classic`)t.update({condition:p.current.condition??{operator:_.B.BuiltInOperatorNames.Between,param:null},style:p.current.style??null,scale:null});else{let n=p.current.scales[e]??(e===_.G.ScaleType.ColorScale?f.r():e===_.G.ScaleType.DataBar?f.V():f.p());t.update({scale:n,condition:null,style:null})}})(n)},variant:`fullWidth`,sx:{minHeight:`36px`,borderBottom:1,borderColor:`divider`,"& .MuiTab-root":{minHeight:`36px`,textTransform:`none`,pt:.5,pb:.5,px:.5,minWidth:0}},children:Object.keys(Yt).map(e=>(0,T.jsx)(s.L,{value:e,label:n(Yt[e])},e))}),d===`classic`&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Et,{format:l,readOnly:u,onFormatChange:e=>t.update({style:e})}),(0,T.jsx)(xt,{selectorTitle:n(`conditionalFormat.highlight`),condition:o,readOnly:u,onConditionChange:e=>t.setCondition(e)})]}),r?.type===_.G.ScaleType.ColorScale&&(0,T.jsx)(jt,{scale:r,onScaleChange:m,readOnly:u}),r?.type===_.G.ScaleType.DataBar&&(0,T.jsx)(Ft,{scale:r,onScaleChange:m,readOnly:u}),r?.type===_.G.ScaleType.IconSet&&(0,T.jsx)(Ut,{scale:r,onScaleChange:m,readOnly:u}),d===`classic`&&(0,T.jsx)(i.t,{sx:{pl:2,pr:2,border:1,borderColor:`divider`,borderRadius:1},children:(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{checked:t.isStopIfTrue(),disabled:u,onChange:e=>t.setStopIfTrue(e.target.checked)}),label:n(`conditionalFormat.stopIfTrue`)})})]})});Xt.displayName=`ConditionalFormatEditorPanel`;var Zt=(0,x.memo)(({item:e})=>{let t=i.Xt();return f.O(e,`onAnyChange`),!e.isStopIfTrue()||e.getScale()?null:(0,T.jsx)(i.t,{sx:{display:`inline-flex`,alignItems:`center`,alignSelf:`flex-start`,px:.75,py:.25,border:1,borderColor:`divider`,borderRadius:1,color:`text.secondary`},children:(0,T.jsx)(a.N,{variant:`caption`,children:t(`conditionalFormat.stopIfTrue`)})})});Zt.displayName=`StopIfTrueBadge`;var Qt={key:`conditional-format`,messageKeys:{none:n.v(`conditionalFormat.none`),addPrompt:n.v(`conditionalFormat.addPrompt`),heading:n.v(`conditionalFormat.heading`),insert:n.v(`conditionalFormat.insert`),new:n.v(`conditionalFormat.new`),moveUp:n.v(`conditionalFormat.moveUp`),moveDown:n.v(`conditionalFormat.moveDown`),edit:n.v(`conditionalFormat.edit`),duplicate:n.v(`conditionalFormat.duplicate`),delete:n.v(`conditionalFormat.delete`),cancel:n.v(`conditionalFormat.cancel`),save:n.v(`conditionalFormat.save`)},getCollection:e=>e.getConditionalFormats(),changeEvents:[`onConditionalFormatsChange`],applyUpdate:(e,t)=>{e.update(t);let n=t.getRanges();n.isInvalid()||n.toString()===e.getRanges().toString()||e.setRanges(n)},applySeed:(e,t)=>{e.update({condition:t.condition??null,style:t.style??null,scale:t.scale??null,stopIfTrue:t.stopIfTrue??!1})},getCardTitle:Jt,CardMedia:({item:e})=>(0,T.jsx)(Kt,{conditionalFormat:e,size:32}),CardSubtitle:({item:e})=>(0,T.jsx)(qt,{conditionalFormat:e,helperText:null}),CardBody:Zt,EditorBody:({item:e})=>(0,T.jsx)(Xt,{conditionalFormat:e})},$t=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{workbook:n,args:r,...i}=e;return(0,T.jsx)(Ge,{ref:t,workbook:n,descriptor:Qt,args:r,dragReorder:!0,...i})}));$t.displayName=`ConditionalFormatDetailsPanel`;function en(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=en(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function tn(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=en(e))&&(r&&(r+=` `),r+=t);return r}var nn={data:``},rn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,an=/\/\*[^]*?\*\/| +/g,on=/\n+/g,sn=(e,t)=>{let n=``,r=``,i=``;for(let a in e){let o=e[a];a[0]==`@`?a[1]==`i`?n=a+` `+o+`;`:r+=a[1]==`f`?sn(o,a):a+`{`+sn(o,a[1]==`k`?``:t)+`}`:typeof o==`object`?r+=sn(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+` `+t:t)):a):o!=null&&(a=a[1]==`-`?a:a.replace(/[A-Z]/g,`-$&`).toLowerCase(),i+=sn.p?sn.p(a,o):a+`:`+o+`;`)}return n+(t&&i?t+`{`+i+`}`:i)+r},cn={},ln=e=>{if(typeof e==`object`){let t=``;for(let n in e)t+=n+ln(e[n]);return t}return e};function un(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,i)=>{let a=ln(e),o=cn[a]||(cn[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return`go`+n})(a));if(!cn[o]){let t=a===e?(e=>{let t,n,r=[{}];for(;t=rn.exec(e.replace(an,``));)t[4]?r.shift():t[3]?(n=t[3].replace(on,` `).trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(on,` `).trim();return r[0]})(e):e;cn[o]=sn(i?{[`@keyframes `+o]:t}:t,n?``:`.`+o)}let s=n&&cn.g;return n&&(cn.g=cn[o]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):t.data.indexOf(e)===-1&&(t.data=n?e+t.data:t.data+e)})(cn[o],t,r,s),o})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?`.`+t:e&&typeof e==`object`?e.props?``:sn(e,``):!1===e?``:e}return e+r+(a??``)},``))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(e=>{if(typeof window==`object`){let t=(e?e.querySelector(`#_goober`):window._goober)||Object.assign(document.createElement(`style`),{innerHTML:` `,id:`_goober`});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||nn})(t.target),t.g,t.o,t.k)}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t,n){return t&&dn(e.prototype,t),n&&dn(e,n),e}function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function pn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function mn(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function hn(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}un.bind({g:1}),un.bind({k:1});var gn=function(){return``},_n=x.createContext({enqueueSnackbar:gn,closeSnackbar:gn}),vn=`@media (max-width:599.95px)`,yn=`@media (min-width:600px)`,bn=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},xn=function(e){return``+bn(e.vertical)+bn(e.horizontal)},Sn=function(e){return!!e||e===0},Cn=`unmounted`,wn=`exited`,Tn=`entering`,En=`entered`,Dn=`exiting`,On=function(e){function t(t){var n,r=e.call(this,t)||this,i=t.appear;return r.appearStatus=null,t.in?i?(n=wn,r.appearStatus=Tn):n=En:n=t.unmountOnExit||t.mountOnEnter?Cn:wn,r.state={status:n},r.nextCallback=null,r}pn(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Cn?{status:wn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tn&&n!==En&&(t=Tn):n!==Tn&&n!==En||(t=Dn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return e!=null&&typeof e!=`number`&&typeof e!=`string`&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){e===void 0&&(e=!1),t===null?this.props.unmountOnExit&&this.state.status===wn&&this.setState({status:Cn}):(this.cancelNextCallback(),t===Tn?this.performEnter(e):this.performExit())},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,i=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:Tn},function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(i.enter,function(){t.safeSetState({status:En},function(){t.props.onEntered&&t.props.onEntered(t.node,r)})})})):this.safeSetState({status:En},function(){t.props.onEntered&&t.props.onEntered(t.node,r)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Dn},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:wn},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:wn},function(){e.props.onExited&&e.props.onExited(e.node)})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=e==null&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),e!=null&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Cn)return null;var t=this.props;return(0,t.children)(e,mn(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]))},fn(t,[{key:`node`,get:function(){var e=this.props.nodeRef?.current;if(!e)throw Error(`notistack - Custom snackbar is not refForwarding`);return e}}]),t}(x.Component);function kn(){}function An(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function jn(e,t){return(0,x.useMemo)(function(){return e==null&&t==null?null:function(n){An(e,n),An(t,n)}},[e,t])}function Mn(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,i=e.mode;return{duration:typeof t==`object`?t[i]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}On.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kn,onEntering:kn,onEntered:kn,onExit:kn,onExiting:kn,onExited:kn};var Nn=function(e){e.scrollTop=e.scrollTop},Pn=function(e){return Math.round(e)+`ms`};function Fn(e,t){e===void 0&&(e=[`all`]);var n=t||{},r=n.duration,i=r===void 0?300:r,a=n.easing,o=a===void 0?`cubic-bezier(0.4, 0, 0.2, 1)`:a,s=n.delay,c=s===void 0?0:s;return(Array.isArray(e)?e:[e]).map(function(e){var t=typeof i==`string`?i:Pn(i),n=typeof c==`string`?c:Pn(c);return e+` `+t+` `+o+` `+n}).join(`,`)}function In(e){return function(e){return e&&e.ownerDocument||document}(e).defaultView||window}function Ln(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),i=In(t);if(t.fakeTransform)n=t.fakeTransform;else{var a=i.getComputedStyle(t);n=a.getPropertyValue(`-webkit-transform`)||a.getPropertyValue(`transform`)}var o=0,s=0;if(n&&n!==`none`&&typeof n==`string`){var c=n.split(`(`)[1].split(`)`)[0].split(`,`);o=parseInt(c[4],10),s=parseInt(c[5],10)}switch(e){case`left`:return`translateX(`+(i.innerWidth+o-r.left)+`px)`;case`right`:return`translateX(-`+(r.left+r.width-o)+`px)`;case`up`:return`translateY(`+(i.innerHeight+s-r.top)+`px)`;default:return`translateY(-`+(r.top+r.height-s)+`px)`}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Rn=(0,x.forwardRef)(function(e,t){var n=e.children,r=e.direction,i=r===void 0?`down`:r,a=e.in,o=e.style,s=e.timeout,c=s===void 0?0:s,l=e.onEnter,u=e.onEntered,d=e.onExit,f=e.onExited,p=mn(e,[`children`,`direction`,`in`,`style`,`timeout`,`onEnter`,`onEntered`,`onExit`,`onExited`]),m=(0,x.useRef)(null),h=jn(jn(n.ref,m),t),g=(0,x.useCallback)(function(){m.current&&Ln(i,m.current)},[i]);return(0,x.useEffect)(function(){if(!a&&i!==`down`&&i!==`right`){var e=function(e,t){var n;function r(){for(var r=this,i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];clearTimeout(n),n=setTimeout(function(){e.apply(r,a)},t)}return t===void 0&&(t=166),r.clear=function(){clearTimeout(n)},r}(function(){m.current&&Ln(i,m.current)}),t=In(m.current);return t.addEventListener(`resize`,e),function(){e.clear(),t.removeEventListener(`resize`,e)}}},[i,a]),(0,x.useEffect)(function(){a||g()},[a,g]),(0,x.createElement)(On,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){Ln(i,e),Nn(e),l&&l(e,t)},onEntered:u,onEntering:function(e){var t=Mn({timeout:c,mode:`enter`,style:Q({},o,{transitionTimingFunction:o?.transitionTimingFunction||`cubic-bezier(0.0, 0, 0.2, 1)`})});e.style.webkitTransition=Fn(`-webkit-transform`,t),e.style.transition=Fn(`transform`,t),e.style.webkitTransform=`none`,e.style.transform=`none`},onExit:function(e){var t=Mn({timeout:c,mode:`exit`,style:Q({},o,{transitionTimingFunction:o?.transitionTimingFunction||`cubic-bezier(0.4, 0, 0.6, 1)`})});e.style.webkitTransition=Fn(`-webkit-transform`,t),e.style.transition=Fn(`transform`,t),Ln(i,e),d&&d(e)},onExited:function(e){e.style.webkitTransition=``,e.style.transition=``,f&&f(e)},in:a,timeout:c},p),function(e,t){return(0,x.cloneElement)(n,Q({ref:h,style:Q({visibility:e!==`exited`||a?void 0:`hidden`},o,{},n.props.style)},t))})});Rn.displayName=`Slide`;var zn=function(e){return x.createElement(`svg`,Object.assign({viewBox:`0 0 24 24`,focusable:`false`,style:{fontSize:20,marginInlineEnd:8,userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,fill:`currentColor`,flexShrink:0}},e))},Bn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:`default`,autoHideDuration:5e3,iconVariant:{default:void 0,success:x.createElement(function(){return x.createElement(zn,null,x.createElement(`path`,{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
2
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:x.createElement(function(){return x.createElement(zn,null,x.createElement(`path`,{d:`M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z`}))},null),error:x.createElement(function(){return x.createElement(zn,null,x.createElement(`path`,{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
3
|
-
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
4
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:x.createElement(function(){return x.createElement(zn,null,x.createElement(`path`,{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
5
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:`bottom`,horizontal:`left`},TransitionComponent:Rn,transitionDuration:{enter:225,exit:195}};function Vn(e){return Object.entries(e).reduce(function(e,t){var n,r=t[0],i=t[1];return Q({},e,((n={})[r]=un(i),n))},{})}var Hn=`notistack-CollapseWrapper`,Un=function(e){return`notistack-MuiContent-`+e},Wn=Vn({root:{height:0},entered:{height:`auto`}}),Gn=`0px`,Kn=(0,x.forwardRef)(function(e,t){var n=e.children,r=e.in,i=e.onExited,a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=jn(t,o),c=function(){return a.current?a.current.clientHeight:0};return(0,x.createElement)(On,{in:r,unmountOnExit:!0,onEnter:function(e){e.style.height=Gn},onEntered:function(e){e.style.height=`auto`},onEntering:function(e){var t=c(),n=Mn({timeout:175,mode:`enter`}),r=n.duration,i=n.easing;e.style.transitionDuration=typeof r==`string`?r:r+`ms`,e.style.height=t+`px`,e.style.transitionTimingFunction=i||``},onExit:function(e){e.style.height=c()+`px`},onExited:i,onExiting:function(e){Nn(e);var t=Mn({timeout:175,mode:`exit`}),n=t.duration,r=t.easing;e.style.transitionDuration=typeof n==`string`?n:n+`ms`,e.style.height=Gn,e.style.transitionTimingFunction=r||``},nodeRef:o,timeout:175},function(e,t){return(0,x.createElement)(`div`,Object.assign({ref:s,className:tn(Wn.root,e===`entered`&&Wn.entered),style:Q({pointerEvents:`all`,overflow:`hidden`,minHeight:Gn,transition:Fn(`height`)},e===`entered`&&{overflow:`visible`},{},e===`exited`&&!r&&{visibility:`hidden`})},t),(0,x.createElement)(`div`,{ref:a,className:Hn,style:{display:`flex`,width:`100%`}},n))})});Kn.displayName=`Collapse`;var qn={right:`left`,left:`right`,bottom:`up`,top:`down`},Jn=function(e){return`anchorOrigin`+xn(e)},Yn=function(){};function Xn(e,t){return e.reduce(function(e,n){return n==null?e:function(){var r=[...arguments],i=[].concat(r);t&&i.indexOf(t)===-1&&i.push(t),e.apply(this,i),n.apply(this,i)}},Yn)}var Zn,Qn=typeof window<`u`?x.useLayoutEffect:x.useEffect;function $n(e){var t=(0,x.useRef)(e);return Qn(function(){t.current=e}),(0,x.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var er=(0,x.forwardRef)(function(e,t){var n=e.children,r=e.className,i=e.autoHideDuration,a=e.disableWindowBlurListener,o=a!==void 0&&a,s=e.onClose,c=e.id,l=e.open,u=e.SnackbarProps,d=u===void 0?{}:u,f=(0,x.useRef)(),p=$n(function(){s&&s.apply(void 0,arguments)}),m=$n(function(e){s&&e!=null&&(f.current&&clearTimeout(f.current),f.current=setTimeout(function(){p(null,`timeout`,c)},e))});(0,x.useEffect)(function(){return l&&m(i),function(){f.current&&clearTimeout(f.current)}},[l,i,m]);var h=function(){f.current&&clearTimeout(f.current)},g=(0,x.useCallback)(function(){i!=null&&m(.5*i)},[i,m]);return(0,x.useEffect)(function(){if(!o&&l)return window.addEventListener(`focus`,g),window.addEventListener(`blur`,h),function(){window.removeEventListener(`focus`,g),window.removeEventListener(`blur`,h)}},[o,g,l]),(0,x.createElement)(`div`,Object.assign({ref:t},d,{className:tn(`notistack-Snackbar`,r),onMouseEnter:function(e){d.onMouseEnter&&d.onMouseEnter(e),h()},onMouseLeave:function(e){d.onMouseLeave&&d.onMouseLeave(e),g()}}),n)});er.displayName=`Snackbar`;var tr=Vn({root:(Zn={display:`flex`,flexWrap:`wrap`,flexGrow:1},Zn[yn]={flexGrow:`initial`,minWidth:`288px`},Zn)}),nr=(0,x.forwardRef)(function(e,t){var n=e.className,r=mn(e,[`className`]);return x.createElement(`div`,Object.assign({ref:t,className:tn(tr.root,n)},r))});nr.displayName=`SnackbarContent`;var rr,ir,ar,or,sr,cr=Vn({root:{backgroundColor:`#313131`,fontSize:`0.875rem`,lineHeight:1.43,letterSpacing:`0.01071em`,color:`#fff`,alignItems:`center`,padding:`6px 16px`,borderRadius:`4px`,boxShadow:`0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)`},lessPadding:{paddingLeft:`20px`},default:{backgroundColor:`#313131`},success:{backgroundColor:`#43a047`},error:{backgroundColor:`#d32f2f`},warning:{backgroundColor:`#ff9800`},info:{backgroundColor:`#2196f3`},message:{display:`flex`,alignItems:`center`,padding:`8px 0`},action:{display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:`16px`,marginRight:`-8px`}}),lr=`notistack-snackbar`,ur=(0,x.forwardRef)(function(e,t){var n=e.id,r=e.message,i=e.action,a=e.iconVariant,o=e.variant,s=e.hideIconVariant,c=e.style,l=e.className,u=a[o],d=i;return typeof d==`function`&&(d=d(n)),x.createElement(nr,{ref:t,role:`alert`,"aria-describedby":lr,style:c,className:tn(`notistack-MuiContent`,Un(o),cr.root,cr[o],l,!s&&u&&cr.lessPadding)},x.createElement(`div`,{id:lr,className:cr.message},s?null:u,r),d&&x.createElement(`div`,{className:cr.action},d))});ur.displayName=`MaterialDesignContent`;var dr=(0,x.memo)(ur),fr=Vn({wrappedRoot:{width:`100%`,position:`relative`,transform:`translateX(0)`,top:0,right:0,bottom:0,left:0,minWidth:`288px`}}),pr=function(e){var t=(0,x.useRef)(),n=(0,x.useState)(!0),r=n[0],i=n[1],a=Xn([e.snack.onClose,e.onClose]),o=(0,x.useCallback)(function(){t.current=setTimeout(function(){i(function(e){return!e})},125)},[]);(0,x.useEffect)(function(){return function(){t.current&&clearTimeout(t.current)}},[]);var s,c=e.snack,l=e.classes,u=e.Component,d=u===void 0?dr:u,f=(0,x.useMemo)(function(){return function(e){e===void 0&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,n){var r;return Q({},t,((r={})[n]=e[n],r))},{})}(l)},[l]),p=c.open,m=c.SnackbarProps,h=c.TransitionComponent,g=c.TransitionProps,_=c.transitionDuration,v=c.disableWindowBlurListener,y=c.content,b=mn(c,[`open`,`SnackbarProps`,`TransitionComponent`,`TransitionProps`,`transitionDuration`,`disableWindowBlurListener`,`content`,`entered`,`requestClose`,`onEnter`,`onEntered`,`onExit`,`onExited`]),S=Q({direction:(s=b.anchorOrigin,s.horizontal===`center`?qn[s.vertical]:qn[s.horizontal]),timeout:_},g),C=y;typeof C==`function`&&(C=C(b.id,b.message));var w=[`onEnter`,`onEntered`,`onExit`,`onExited`].reduce(function(t,n){var r;return Q({},t,((r={})[n]=Xn([e.snack[n],e[n]],b.id),r))},{});return x.createElement(Kn,{in:r,onExited:w.onExited},x.createElement(er,{open:p,id:b.id,disableWindowBlurListener:v,autoHideDuration:b.autoHideDuration,className:tn(fr.wrappedRoot,f.root,f[Jn(b.anchorOrigin)]),SnackbarProps:m,onClose:a},x.createElement(h,Object.assign({},S,{appear:!0,in:p,onExit:w.onExit,onExited:o,onEnter:w.onEnter,onEntered:Xn([w.onEntered,function(){e.snack.requestClose&&a(null,`instructed`,e.snack.id)}],b.id)}),C||x.createElement(d,Object.assign({},b)))))},mr=20,hr=6,gr=2,_r=`.`+Hn,vr=Vn({root:(rr={boxSizing:`border-box`,display:`flex`,maxHeight:`100%`,position:`fixed`,zIndex:1400,height:`auto`,width:`auto`,transition:Fn([`top`,`right`,`bottom`,`left`,`max-width`],{duration:300,easing:`ease`}),pointerEvents:`none`},rr[_r]={padding:hr+`px 0px`,transition:`padding 300ms ease 0ms`},rr.maxWidth=`calc(100% - `+2*mr+`px)`,rr[vn]={width:`100%`,maxWidth:`calc(100% - 32px)`},rr),rootDense:(ir={},ir[_r]={padding:gr+`px 0px`},ir),top:{top:mr-hr+`px`,flexDirection:`column`},bottom:{bottom:mr-hr+`px`,flexDirection:`column-reverse`},left:(ar={left:mr+`px`},ar[yn]={alignItems:`flex-start`},ar[vn]={left:`16px`},ar),right:(or={right:mr+`px`},or[yn]={alignItems:`flex-end`},or[vn]={right:`16px`},or),center:(sr={left:`50%`,transform:`translateX(-50%)`},sr[yn]={alignItems:`center`},sr)}),yr=(0,x.memo)(function(e){var t=e.classes,n=t===void 0?{}:t,r=e.anchorOrigin,i=e.dense,a=e.children,o=tn(`notistack-SnackbarContainer`,vr[r.vertical],vr[r.horizontal],vr.root,n.containerRoot,n[`containerAnchorOrigin`+xn(r)],i&&vr.rootDense);return x.createElement(`div`,{className:o},a)}),br=function(e){return!(typeof e==`string`||(0,x.isValidElement)(e))},xr=function(e){function t(t){var n=e.call(this,t)||this;return n.enqueueSnackbar=function(e,t){if(t===void 0&&(t={}),e==null)throw Error(`enqueueSnackbar called with invalid argument`);var r=br(e)?e:t,i=br(e)?e.message:e,a=r.key,o=r.preventDuplicate,s=mn(r,[`key`,`preventDuplicate`]),c=Sn(a),l=c?a:new Date().getTime()+Math.random(),u=function(e,t){return function(n,r){return r===void 0&&(r=!1),r?Q({},Bn[n],{},t[n],{},e[n]):n===`autoHideDuration`?(i=e.autoHideDuration,a=t.autoHideDuration,(o=function(e){return typeof e==`number`||e===null})(i)?i:o(a)?a:Bn.autoHideDuration):n===`transitionDuration`?function(e,t){var n=function(e,t){return t.some(function(t){return typeof e===t})};return n(e,[`string`,`number`])?e:n(e,[`object`])?Q({},Bn.transitionDuration,{},n(t,[`object`])&&t,{},e):n(t,[`string`,`number`])?t:n(t,[`object`])?Q({},Bn.transitionDuration,{},t):Bn.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||Bn[n];var i,a,o}}(s,n.props),d=Q({id:l},s,{message:i,open:!0,entered:!1,requestClose:!1,persist:u(`persist`),action:u(`action`),content:u(`content`),variant:u(`variant`),anchorOrigin:u(`anchorOrigin`),disableWindowBlurListener:u(`disableWindowBlurListener`),autoHideDuration:u(`autoHideDuration`),hideIconVariant:u(`hideIconVariant`),TransitionComponent:u(`TransitionComponent`),transitionDuration:u(`transitionDuration`),TransitionProps:u(`TransitionProps`,!0),iconVariant:u(`iconVariant`,!0),style:u(`style`,!0),SnackbarProps:u(`SnackbarProps`,!0),className:tn(n.props.className,s.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState(function(e){if(o===void 0&&n.props.preventDuplicate||o){var t=function(e){return c?e.id===l:e.message===i},r=e.queue.findIndex(t)>-1,a=e.snacks.findIndex(t)>-1;if(r||a)return e}return n.handleDisplaySnack(Q({},e,{queue:[].concat(e.queue,[d])}))}),l},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?Q({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,r=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===n.maxSnack&&(r=!0);var i=e.snacks.map(function(e){return t||e.persist&&!r?Q({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,`maxsnack`,e.id),n.props.onClose&&n.props.onClose(null,`maxsnack`,e.id),Q({},e,{open:!1})):Q({},e,{requestClose:!0}))});return Q({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!Sn(r))throw Error(`handleEnteredSnack Cannot be called with undefined key`);n.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===r?Q({},e,{entered:!0}):Q({},e)})}})},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var i=r===void 0;n.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return i||e.id===r?e.entered?Q({},e,{open:!1}):Q({},e,{requestClose:!0}):Q({},e)}),queue:n.filter(function(e){return e.id!==r})}})},n.closeSnackbar=function(e){var t=n.state.snacks.find(function(t){return t.id===e});Sn(e)&&t&&t.onClose&&t.onClose(null,`instructed`,e),n.handleCloseSnack(null,`instructed`,e)},n.handleExitedSnack=function(e,t){if(!Sn(t))throw Error(`handleExitedSnack Cannot be called with undefined key`);n.setState(function(e){var r=n.processQueue(Q({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return r.queue.length===0?r:n.handleDismissOldest(r)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(hn(n)),closeSnackbar:n.closeSnackbar.bind(hn(n))}},n}return pn(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,i=n.children,a=n.dense,o=a!==void 0&&a,s=n.Components,c=s===void 0?{}:s,l=n.classes,u=this.state.snacks.reduce(function(e,t){var n,r=xn(t.anchorOrigin),i=e[r]||[];return Q({},e,((n={})[r]=[].concat(i,[t]),n))},{}),d=Object.keys(u).map(function(t){var n=u[t],r=n[0];return x.createElement(yr,{key:t,dense:o,anchorOrigin:r.anchorOrigin,classes:l},n.map(function(t){return x.createElement(pr,{key:t.id,snack:t,classes:l,Component:c[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:Xn([e.handleExitedSnack,e.props.onExited],t.id),onEntered:Xn([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return x.createElement(_n.Provider,{value:t},i,r?(0,We.createPortal)(d,r):d)},fn(t,[{key:`maxSnack`,get:function(){return this.props.maxSnack||Bn.maxSnack}}]),t}(x.Component),Sr=function(){return(0,x.useContext)(_n)},$={card:`_card_h0jnt_7`,actionRoot:`_actionRoot_h0jnt_11`,icons:`_icons_h0jnt_16`,expand:`_expand_h0jnt_22`,expandOpen:`_expandOpen_h0jnt_29`,stackTraceContainer:`_stackTraceContainer_h0jnt_33`,paper:`_paper_h0jnt_37`,checkIcon:`_checkIcon_h0jnt_42`,button:`_button_h0jnt_47`},Cr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{id:o,message:s,iconVariant:c,error:l,hideIconVariant:u,...p}=e,m=i.Xt(),{closeSnackbar:g}=Sr(),[_,v]=(0,x.useState)(!1),y=l?n.R.collectErrorChain(l,!0)?.[0]?.error:void 0,b=y&&!(y instanceof n.s),S=(0,x.useCallback)(()=>{v(e=>!e)},[]),C=(0,x.useCallback)(()=>{g(o)},[o,g]),w=y?.message;return!w&&(0,x.isValidElement)(s)&&(w=s),w||typeof s!=`string`||(w=s),w||=`Unknown Error: ${s}`,(0,T.jsx)(nr,{ref:t,className:h.t($.root,`error-snackbar`),children:(0,T.jsxs)(Ae,{className:$.card,style:{backgroundColor:`var(--sxl-color-error)`,color:`var(--sxl-color-error-content)`,border:`1px solid var(--sxl-color-error)`},children:[(0,T.jsxs)(G,{className:$.actionRoot,children:[u?null:c?.error,(0,T.jsx)(a.N,{variant:`body2`,component:`div`,className:$.typography,children:w}),(0,T.jsx)(`div`,{style:{flex:`1 1 auto`}}),(0,T.jsxs)(`div`,{className:$.icons,children:[b?(0,T.jsx)(a.F,{"aria-label":m(`toast.showMore`),size:`small`,className:h.t($.expand,{[$.expandOpen]:_}),onClick:S,children:(0,T.jsx)(r.r,{iconKey:`ExpandMore`})}):null,(0,T.jsx)(a.F,{size:`small`,className:$.expand,onClick:C,children:(0,T.jsx)(r.r,{iconKey:`Close`,style:{transform:`scale(0.8)`}})})]})]}),b?(0,T.jsx)(d.t,{in:_,timeout:`auto`,children:(0,T.jsx)(`div`,{className:$.stackTraceContainer,style:{backgroundColor:`color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))`,borderTop:`1px solid var(--sxl-color-error)`},children:(0,T.jsx)(f.St,{error:l,hideLineNumbers:!0})})}):null]})})}));Cr.displayName=`ToastError`;var wr=(0,T.jsx)(()=>(0,T.jsx)(a.v,{label:`SheetXL`,description:i.Xt()(`logo.description`),children:(0,T.jsx)(i.t,{component:`a`,href:`https://www.sheetxl.com`,target:`_blank`,rel:`noopener noreferrer`,sx:{display:`inline-flex`,width:`24px`,height:`24px`,marginBottom:`4px`,marginLeft:`6px`,cursor:`pointer`},children:(0,T.jsx)(f.n,{style:{width:`24px`,height:`24px`}})})}),{}),Tr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{workbook:n,className:r,logo:a=wr,mainElement:o,startElement:c,endElement:l,...u}=e,[d,{width:f}]=v.i(),p=f<530,h=(0,x.useRef)(null);return(0,T.jsx)(i.t,{...u,ref:m.n([h,d,t]),className:r,children:s.O({isCompact:p,wrapperSelect:e=>(0,T.jsxs)(i.t,{sx:{display:`grid`,gridTemplateColumns:`1fr auto 1fr`,flex:`1`,alignItems:`stretch`,gap:e=>e.spacing(1),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)},children:[(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`start`,gap:e=>e.spacing(.5)},children:[a,(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e=>e.spacing(.25)},children:[c,e]})]}),(0,T.jsx)(i.t,{sx:{display:`flex`,flexDirection:`row`,minWidth:0,overflow:`hidden`,alignItems:`center`,justifyContent:`center`},children:o}),(0,T.jsx)(i.t,{sx:{display:`flex`,alignItems:`center`,justifyContent:`end`},children:l})]})})})}));Tr.displayName=`StudioToolbar`;var Er=(0,x.lazy)(()=>Promise.resolve().then(()=>require("./DPjEO7dwhCFd8DHR2.cjs")));s.i();var Dr=new Set([`ui`]),Or=e=>{let t=e=>{if(typeof e!=`function`)return e;try{return e()}catch{return}},r=(e,r)=>{let i=t(e);return typeof i==`string`?n.g(i,r,n.d.getActive()):void 0},a=[];for(let n of e.names())if(!Dr.has(n))for(let o of e.keys(n)){let s=e.resolveDefinition(n,o);a.push({groupKey:n,command:{getLabel:()=>r(s?.label,s?.params)??o,getIcon:()=>t(s?.icon),getDescription:()=>r(s?.description,s?.params)??``,getShortcut:()=>t(s?.shortcut)??null,getScope:()=>n,getScopeLabel:()=>i.Ot.DefaultCommandCatalogService.getScopeLabel(n)}})}return{getAllCommands:()=>a}},kr=e=>{let{children:t,workbook:r,setWorkbook:a,workbookTitle:o,isDirty:c}=e,l=i.Ot.useCommandScope(),u=i.ot(),{showModal:d}=f.xt(),p=i.Xt(),m=(0,x.useRef)(c);m.current=c;let h=i.tt(()=>{let e=l?.getRoot().getRegistry();if(!e)return;let t=d(Er,{title:p(`dialog.shortcutKeys.title`),commands:Or(e),onDone:()=>t.hide()})},[l,d]);(0,x.useEffect)(()=>{if(!l)return;let e=l.getRoot().contribution();return function(e,t){let n=()=>t.showShortcuts();e.updateCommand(`showKeyboardShortcuts`,{callback:n}),e.updateCommand(`help`,{callback:n});for(let[t,n]of Object.entries({gotoUrlGithub:`https://github.com/sheetxl/sheetxl`,gotoUrlDiscord:`https://discord.gg/NTKdwUgK9p`,gotoUrlDocumentation:`https://www.sheetxl.com/docs`,gotoUrlIssue:`https://github.com/sheetxl/sheetxl/issues`}))e.updateCommand(t,{callback:()=>{window?.open(n)}})}(e,{showShortcuts:h}),()=>e.remove()},[l,h]);let g=s.F(`(prefers-color-scheme: dark)`),{themeMode:_}=i.rt(),[v,y]=i.ct(f.t.Mode,null),[b,S]=i.ct(f.t.DarkGrid,!1),[C,w]=i.ct(f.t.DarkImages,!1);(0,x.useEffect)(()=>{if(!l)return;let e=l.getRoot().contribution();return function(e,t){e.updateCommand(`themeMode`,{state:t.mode??null,params:{dark:t.isDark},icon:t.isDark?`DarkMode`:`LightMode`,callback:()=>t.setMode(t.isDark?`light`:`dark`)}),e.updateCommand(`defaultThemeMode`,{state:!t.mode,icon:t.systemDefaultDark?`SystemDefaultDarkMode`:`SystemDefaultLightMode`,callback:()=>t.setMode(null)}),e.updateCommand(`enableDarkGrid`,{state:t.enableDarkGrid,callback:()=>t.setEnableDarkGrid(e=>!e)}),e.updateCommand(`enableDarkImages`,{state:t.enableDarkImages,callback:()=>t.setEnableDarkImages(e=>!e)})}(e,{mode:v,setMode:y,isDark:v===`dark`||!v&&_===`dark`,systemDefaultDark:g,enableDarkGrid:b,setEnableDarkGrid:S,enableDarkImages:C,setEnableDarkImages:w}),()=>e.remove()},[l,v,_,g,b,C,y,S,w]);let[T,E]=i.ct(i.Dt.Active,null),[D,O]=(0,x.useState)(()=>n.d.getActive());(0,x.useEffect)(()=>n.d.addChangeListener(O),[]),(0,x.useEffect)(()=>{T&&T!==n.d.getActive()&&n.d.setActive(T)},[T]),(0,x.useEffect)(()=>{if(!l)return;let e=l.getRoot().contribution();return function(e,t){e.updateCommand(`language`,{state:t.active,callback:e=>{e&&t.setActive(e)}})}(e,{active:D,setActive:e=>{E(e)}}),()=>e.remove()},[l,D,E]);let{isFullscreenAvailable:k,isFullscreenEnabled:A,toggleFullscreen:j}=i.it();return(0,x.useEffect)(()=>{if(!l)return;let e=l.getRoot().contribution();return function(e,t){e.updateCommand(`fullScreenToggle`,{state:t.isFullscreenEnabled,disabledReasons:t.isFullscreenAvailable?[]:[n.v(`reason.fullscreenUnavailable`)],icon:t.isFullscreenEnabled?`FullScreenOff`:`FullScreen`,callback:()=>{t.toggleFullscreen()}})}(e,{isFullscreenAvailable:k,isFullscreenEnabled:A,toggleFullscreen:j}),()=>e.remove()},[l,k,A,j]),(0,x.useEffect)(()=>{if(!l||!r)return;let e=l.getRoot().contribution(),t=function(e,t){let{workbook:r,setWorkbook:a,workbookTitle:o=`export`,isDirty:s,notifier:c}=t,l=!1,u=async(e=null,t=null,r=null)=>{let a,o=[],s={source:e&&typeof e!=`string`?e:null,typedCreateWorkbookOptions:t??void 0,onPassword:async({origin:e,validate:t})=>{let r=await c.showInput({title:n._(`dialog.password.title`),description:n._(`dialog.password.open.description`,{name:e.getName()??``}),inputType:`password`,options:[{id:`Open`,label:()=>n._(`dialog.open`)},`Cancel`],defaultOption:`Open`,onValidateInput:async(e,r)=>r===void 0?{valid:!0}:e?await t(e)?{valid:!0}:{valid:!1,message:n._(`dialog.password.open.retry`)}:{valid:!1,message:n._(`dialog.password.open.required`)}});return r?.option===`Open`?r.input??null:null},progress:{onWarning:e=>{o.push(e)}}};r&&(s.progress.onStart=r);let l=-5;return f.l.read({...s,progress:{async onStart(e,t){await s?.progress?.onStart?.(e,t),a=await c?.showBusy?.(n._(`workbook.opening`,{name:e?.getName()??``})),t&&a?.setProgress?.(0,t)},onProgress(e,t){if(!t)return;let n=Math.min(100,Math.round(e/t*100));if(n>=100){if(l===100)return;l=100,a?.setProgress?.(e,t);return}n-l<5||(l=n,a?.setProgress?.(e,t))},onComplete(){a?.(),o.length>0&&(c.showMessage(n._(`workbook.importWarnings`)),console.warn(`Import warnings:
|
|
6
|
-
`+o.join(`
|
|
7
|
-
`)))},onWarning(e){c.showMessage(e,{type:i.dt.Info})}}})},d=async(e,t,r=!1)=>{let i,a,s={format:t?.key,progress:{async onStart(e){i=await c?.showBusy?.(n._(`workbook.saving`,{name:e?.getName()??``}))},onComplete(){i?.()}}};if(r){let r=e.getOrigin(),i=t?.exts?.[0]??(r.getExtension()||`sxl`),c=`${o||r.getName()||n._(`workbook.defaultName`)}.${i}`;a=await f.l.writeAs(e,c,{...s,prompt:!0})}else a=await f.l.write(e,void 0,s);return!!a};return e.updateCommand(`newWorkbook`,{callback:()=>{window.open(window.origin.toString(),`sheetxl-`+n.A.uuidV4(),`popup=true`)}}),e.updateCommand(`closeWorkbook`,{callback:async()=>{s()&&await c.showOptions({title:n._(`dialog.confirm.title`),description:n._(`dialog.unsavedChanges`),options:[{id:`Close`,label:()=>n._(`dialog.close`)},`Cancel`],defaultOption:`Cancel`})!==`Close`||window.close()}}),(async()=>{let t=await f.l.getWriteFormats();if(l)return;let i=f.l.canWrite(),o=f.l.canRead();if(i){let i=e=>{let n=e?t.find(t=>t.key===e):void 0;d(r,n,!0).catch(e=>c.showError(e))};e.updateCommand(`saveWorkbook`,{callback:()=>{d(r,void 0,!1).catch(e=>c.showError(e))}}),e.updateCommand(`saveWorkbookAs`,{callback:e=>{i(e)}}),e.updateCommand(`protectWorkbook`,{tags:[`noTransaction`,`noRepeat`],callback:async()=>{let e=r.getOrigin(),t=r.getProtection(),n=t.hasPassword();await c.showWindow(`protectWorkbook`,{initialValue:{encrypt:e.isEncrypted(),encryptPassword:e.isEncrypted()?null:``,structure:t.isLocked(),structurePassword:n?null:``,lockStructure:!t.isStructureAllowed(),lockWindows:!t.isWindowsAllowed()},onApply:async n=>{try{n.encrypt?n.encryptPassword!==null&&n.encryptPassword!==``&&e.setPassword(n.encryptPassword):e.setPassword(null);let r=n.structure;!r&&t.isLocked()?await t.unlock(n.structurePassword??void 0):r&&!t.isLocked()&&await t.lock({structure:n.lockStructure,windows:n.lockWindows},n.structurePassword||void 0)}catch(e){c.showError(e)}}})}});for(let r of t){let t=r.key;e.updateCommand(`saveWorkbookAs${t}`,{label:()=>n._(`command.saveAsFormat.label`,{format:r.description}),groupLabels:{workbook:()=>n._(`command.saveAsFormat.workbook`,{format:r.description}),saveWorkbookOptions:()=>n._(`command.saveAsFormat.compact`,{format:r.description})},tags:r.tags,description:()=>n._(`command.saveAsFormat`,{format:r.description}),icon:t===`CSV`?`FileDownloadAsCSV`:t===`Excel`?`FileDownloadAsExcel`:`FileDownloadAsSheet`,callback:()=>{i(t)}})}}let p=async(e=null)=>{let t={csv:{date1904:r.getRuntime().isDate1904(),...r.options}};try{let i=``,a=await u(e,t,async e=>{i=e?.getName()??``});if(!a)return;let o=a.getSheets().getItems();await r.doBatch(async()=>{for(let e=0;e<o.length;e++){let t=o[e],n=o.length===1?i:t.getName(),a=r.findValidSheetName(n);await r.getSheets().add({name:a,autoSelect:e===o.length-1}).getEntireRange().copyFrom(t.getEntireRange())}},n.v(`op.importData`)),a.close()}catch(e){c.showError(e)}};if(e.updateCommand(`insertDataFromFile`,{tags:[`noTransaction`,`noRepeat`],callback:async(e=null)=>{let t=e;if(t||f.l.canRead()||(t=await(async()=>{let e=await f.l.getReadFormats(),t=[...new Set(e.flatMap(e=>e.exts))].map(e=>`.${e}`);return n.t.openFileDialog(t.length?t.join(`,`):`*.*`)})(),t))return p(t)}}),e.updateCommand(`insertDataFromURL`,{tags:[`noTransaction`,`noRepeat`],callback:async e=>{if(!e){let t=await c.showInput({title:n._(`dialog.importFromWeb.title`),description:n._(`dialog.importFromWeb.description`),inputLabel:n._(`dialog.webAddress.inputLabel`),initialValue:`https://www.sheetxl.com/docs/examples/financial-calculators.xlsx`,propsInput:{style:{minWidth:`440px`}},options:[{id:`Import`,label:()=>n._(`dialog.import`)}]});if(t.option!==`Import`)return;e=t.input}if(e)try{let t=await fetch(e);if(!t.ok)throw Error(`Could not fetch '${e}' (${t.status} ${t.statusText}).`);let n=await t.blob(),r=decodeURIComponent(e.split(`/`).pop()?.split(`?`)[0]||``)||`import.xlsx`;await p(new File([n],r,{type:n.type}))}catch(e){c.showError(e)}}}),o){let t=async()=>!s()||await c.showOptions({title:n._(`dialog.confirm.title`),description:n._(`dialog.unsavedChanges`),options:[{id:`Open`,label:()=>n._(`dialog.open`)},`Cancel`],defaultOption:`Cancel`})===`Open`,i=async(e=null)=>{let t={csv:{date1904:r.getRuntime().isDate1904(),...r.options}};try{let n=await u(e,t);if(!n)return;a(n)}catch(e){c.showError(e)}};e.updateCommand(`openWorkbook`,{callback:async(e=null)=>{await t()&&await i(e)}}),e.updateCommand(`openWorkbookFromUrl`,{callback:async e=>{if(!e){let t=await c.showInput({title:n._(`dialog.openFromWeb.title`),description:n._(`dialog.openFromWeb.description`),inputLabel:n._(`dialog.webAddress.inputLabel`),initialValue:`https://www.sheetxl.com/docs/examples/financial-calculators.xlsx`,propsInput:{style:{minWidth:`440px`}},options:[{id:`Open`,label:()=>n._(`dialog.open`)}]});if(t.option!==`Open`)return;e=t.input}if(e&&await t())try{let t=await fetch(e);if(!t.ok)throw Error(`Could not fetch '${e}' (${t.status} ${t.statusText}).`);let n=await t.blob(),r=decodeURIComponent(e.split(`/`).pop()?.split(`?`)[0]||``)||`workbook.xlsx`;await i(new File([n],r,{type:n.type}))}catch(e){c.showError(e)}}})}})(),()=>{l=!0}}(e,{workbook:r,setWorkbook:a,workbookTitle:o??void 0,isDirty:()=>m.current?.()??!1,notifier:u});return()=>{t(),e.remove()}},[l,r,a,o,u]),t};kr.displayName=`StudioCommandProvider`;var Ar=({renderWorkbook:e})=>{let t=i.Ot.useCommandResolver(),n=(0,x.useRef)(null),[r,o]=(0,x.useState)(null),s=(0,x.useCallback)(e=>{let n=e.dataTransfer;if(t&&n){if(e.type===`dragenter`||e.type===`dragover`){let e=e=>{let t=n.items,r=t.length;for(let n=0;n<r;n++){let r=t[n];if(r.type.startsWith(e))return r}return null},t=null;t=e(`image/`);let r=n.types,i=n.items;t?o({item:t,text:``}):r.includes(`Files`)&&i.length>0?o({item:i[0],text:`Drop to open`}):r.includes(`text/html`)||r.includes(`text/plain`)?(o({item:i[0],text:``}),n.effectAllowed=`none`,n.dropEffect=`none`):(n.effectAllowed=`none`,n.dropEffect=`none`)}else e.type===`dragleave`&&o(null);e.preventDefault()}},[t]),c=i.tt(e=>{if(r&&t&&(e.preventDefault(),e.stopPropagation(),o(null),e.dataTransfer.files&&e.dataTransfer.files.length>0)){let r=e.dataTransfer.files[0];if(!r)return;if(r?.type?.startsWith(`image/`)){let i=n.current?.getSheetElement()?.getGridSurface().getPaneFromClient(e.clientX,e.clientY);if(!i)return;let a=i.getPanePointFromPointer(e.clientX,e.clientY);if(!a)return;let o=i.toAbsoluteBounds({x:a.x??0,y:a.y??0,width:0,height:0});t.execute(`insertImageFromFile`,{file:r,options:{bounds:{x:o.x,y:o.y}}})}else{if(!f.l.canRead())return;let n=(e.dataTransfer.items?.[0])?.getAsFileSystemHandle?.();n?n.then(e=>t.execute(`openWorkbook`,e?.kind===`file`?e:r)).catch(()=>t.execute(`openWorkbook`,r)):t.execute(`openWorkbook`,r)}}},[t,r]),l=(0,x.useMemo)(()=>r&&r.text?(0,T.jsx)(i.t,{className:`drop-overlay`,sx:{position:`absolute`,width:`100%`,height:`100%`,boxSizing:`border-box`,pointerEvents:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,background:e=>e.palette.divider,color:e=>e.palette.primary.dark},children:(0,T.jsx)(a.N,{variant:`h4`,children:r.text})}):null,[r]);return(0,T.jsxs)(T.Fragment,{children:[e({ref:n,onDragStart:e=>{if(e.target.src){let t=new Image;t.src=e.target.src,e.dataTransfer.setDragImage(t,1,1)}},onDragEnter:s,onDragLeave:s,onDragOver:s,onDrop:c}),l]})},jr=(0,x.memo)(e=>{let{workbook:t,setWorkbook:n,refDocumentTitle:r,titleWorkbook:i,setWorkbookTitle:a,isDirty:o,initialCommandAnchor:s,renderWorkbook:c}=e;return(0,T.jsx)(f.A,{initialAnchor:s,children:(0,T.jsx)(kr,{workbook:t,setWorkbook:n,workbookTitle:i,isDirty:o,children:(0,T.jsx)(Ar,{renderWorkbook:c})})})});jr.displayName=`CommandsWrapper`;var Mr={sort:()=>Promise.resolve().then(()=>require("./Kr8f1inOTt-MICaP2.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./ElcoSB--cCpS6i7R2.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./Ci8Uu7_b4lwwRLAD2.cjs")),comments:()=>Promise.resolve().then(()=>require("./CvV18ZJgssoHMkdf2.cjs")),find:()=>Promise.resolve().then(()=>require("./xBcvszV6x7ys-m532.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./DvSvfeo9V0Abfd3q2.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./hzUo76TXMOBqsI3U2.cjs")),insertFunction:()=>Promise.resolve().then(()=>require("./bGMaev70Zd_NXqLM2.cjs")),resizeHeader:()=>Promise.resolve().then(()=>require("./DxQkFYAFNZubVdn22.cjs")),workbookStatistics:()=>Promise.resolve().then(()=>require("./YG320hBA20Dl3HoU2.cjs")),protectWorkbook:()=>Promise.resolve().then(()=>require("./DfMJOaJ0GcUiSn4Q.cjs")).then(e=>e.t).then(e=>e.n)},Nr=[`find`],Pr=(0,x.memo)(e=>{let{children:t}=e,o=Sr(),s=o?o.enqueueSnackbar:()=>{},c=o?o.closeSnackbar:()=>{},[l,u]=(0,x.useState)({isMounted:!1,label:null,progress:null,starting:new Map,running:new Map}),d=(0,x.useCallback)(()=>{u(e=>({...e,isMounted:!0}))},[]),p=(0,x.useCallback)(()=>{u(e=>({...e,isMounted:!1}))},[]),m=i.Xt(),h=n.A.EmptyObject,g=f.Ct(h),_=f.Dt(h),v=f.Xt(h),y=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(y.current)return;y.current=!0;let e=window,t=e.requestIdleCallback??(e=>setTimeout(e,500)),n=e.cancelIdleCallback??clearTimeout,r=t(()=>{for(let e of Nr)g(e,Mr[e],{prewarm:!0}).catch(()=>{})});return()=>n(r)},[]);let b=(0,x.useRef)(new Set),S=(0,x.useMemo)(()=>{let e=(e,t)=>{if(t?.onceKey){if(b.current.has(t.onceKey))return;let e=new Set(b.current);e.add(t.onceKey),b.current=e}let n={variant:t?.type??i.dt.Info,anchorOrigin:{vertical:`top`,horizontal:`center`},preventDuplicate:t?.preventDuplicate,persist:t?.persist??t?.type===i.dt.Error,action:e=>(0,T.jsx)(a.F,{onClick:()=>c(e),children:(0,T.jsx)(r.r,{iconKey:`Cancel`})})};t?.enqueueProps&&Object.assign(n,t.enqueueProps),e||console.log(`message is 'null'`,t),s(e??`Alert`,n)},t={showMessage:e,showBusy:(e,t)=>{let n=null,r=new Promise(e=>{n=e});return u(t=>{let i=new Map(t.starting);return i.set(r,n),{...t,label:e,starting:i}}),r},showWindow:(e,t)=>{let n=t;return t={...t,onKeyDown:e=>{e.isDefaultPrevented()||e.isPropagationStopped()||n?.onKeyDown?.(e)}},g(e,Mr[e],t)},showOptions:_,showInput:v,showError:t=>{let r,a=i.dt.Error,o=m(`error.unknown`);typeof t==`string`?o=t:t instanceof Error&&(r=t,t.message&&(o=m(t.message))),t instanceof n.j&&(a=i.dt.Info),e(o,{type:a,enqueueProps:{error:r}})}},o=new i.ft;return o.setOverrides(t),o},[m]);(0,x.useEffect)(()=>{l.starting.size<=0||!l.isMounted||u(e=>{let t=new Map(e.running);return e.starting.forEach((e,n)=>{let r=i.W(()=>{u(e=>{let t=new Map(e.running);return t.delete(n),{...e,progress:t.size===0?null:e.progress,running:t}})},(e,t)=>{let n=t&&t>0&&e!=null?Math.max(0,Math.min(1,e/t)):null;u(e=>e.progress===n?e:{...e,progress:n})},e=>{u(t=>({...t,label:e}))});t.set(n,r),e(r)}),{...e,starting:new Map,running:t}})},[l]);let[C,w]=(0,x.useState)(null);return(0,x.useEffect)(()=>{l.starting.size!==0||l.running.size!==0?w((0,T.jsx)(f.jt,{icon:(0,T.jsx)(f.Yt,{sx:{transform:`scale(0.7)`,marginLeft:`-6px`}}),panel:!0,label:l.label,progress:l.progress,onMount:d,onUnmount:p,sx:{position:`absolute`,left:`0`,top:`0`,width:`100%`,height:`100%`,zIndex:`9999`}})):w(null)},[l.starting,l.running,l.label,l.progress]),(0,T.jsxs)(i.G,{notifier:S,children:[C,t]})});Pr.displayName=`StudioNotifierProvider`;var Fr=`var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))`,Ir=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{children:n,title:o,taskPanes:c,onSelect:l,selected:u,registry:d=f.nt,style:p,iconsOnly:m,side:g=`right`,className:_,...v}=e,y=g!==`right`,b=(0,x.useMemo)(()=>c.map(t=>{let n=d.getRegisteredTaskPane(t);if(!n)return null;let o=n.getIcon?.();typeof o==`string`&&(o=(0,T.jsx)(r.r,{iconKey:o}));let c=t===u,l=o?(0,T.jsx)(i.t,{sx:{display:`inline-block`,transform:y?`rotate(-90deg)`:`rotate(90deg)`,transformOrigin:`center`,color:e=>e.palette.text.secondary},children:o}):null,f=!o||!m&&c,p=(0,T.jsx)(i.t,{sx:{display:`grid`,gridTemplateColumns:f?`1fr`:`0fr`,opacity:+!!f,transition:e=>e.transitions.create([`grid-template-columns`,`opacity`],{duration:e.transitions.duration.short})},children:(0,T.jsx)(i.t,{sx:{overflow:`hidden`,minWidth:0,minHeight:0},children:(0,T.jsx)(a.N,{component:`div`,sx:{textTransform:`none`,whiteSpace:`nowrap`,transform:y?`rotate(180deg)`:void 0,padding:`4px 0px`,color:e=>c?e.palette.primary.main:e.palette.text.secondary},children:n.getTitle()})})});return(0,T.jsx)(s.L,{value:t,label:(0,T.jsx)(a.s,{disableInteractive:!0,title:n.getTitle()??``,placement:`left-start`,children:(0,T.jsxs)(i.t,{sx:{padding:`0px 0px`,writingMode:y?`vertical-lr`:`vertical-rl`,textOrientation:`mixed`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,minWidth:`0px`,color:e=>e.palette.text.secondary},children:[y?p:l,y?l:p]})}),sx:{padding:`4px 4px`,minWidth:`0px`,minHeight:`0px`,borderRadius:`4px`},className:h.t(`taskpane-strip-item`,{"Mui-selected":c}),onClick:()=>e.onSelect(t)},t)}),[c,u,l,d,y,m,i.Rt()]);return(0,T.jsx)(i.t,{ref:i.$t(t,()=>({isTaskPaneStrip:()=>!0}),[]),className:(0,x.useMemo)(()=>h.t(`taskpane-strip`,_),[_]),sx:{paddingLeft:y?void 0:`2px`,paddingRight:y?`2px`:void 0,paddingTop:`4px`,...p},...v,children:(0,T.jsx)(s.I,{orientation:`vertical`,variant:`scrollable`,value:u,onChange:(e,t)=>{l(t)},slotProps:{list:{sx:{gap:`2px`}},indicator:{sx:{left:y?void 0:`0px`,right:y?void 0:`unset`,bottom:y?`0px`:void 0}}},children:b})})})),Lr=e=>{let{title:t,icon:n,onClose:o,readOnly:s,focused:c,...l}=e,u=(0,x.useRef)(null),d=i.Xt();return(0,T.jsx)(a.C,{className:h.t({"Mui-selected":c}),sx:{display:`flex`,flex:`1 1 %0`,color:e=>e.palette.text.secondary,boxSizing:`border-box`,padding:`0 0`,transitionProperty:`opacity`,transitionDuration:e=>`${e.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:e=>e.transitions.duration.shortest/2+`ms`},backgroundColor:e=>i.c(e.palette.action.hover,.03),borderBottom:`solid ${Fr} 1px`},...l,children:(0,T.jsxs)(i.t,{sx:{display:`flex`,flex:`1 1 10%`,flexDirection:`row`,alignItems:`center`,marginTop:e=>e.spacing(.25),marginBottom:e=>e.spacing(.25),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},children:[(0,T.jsx)(i.t,{sx:{flex:`1 1 100%`,paddingLeft:e=>e.spacing(1)},children:t}),(0,T.jsx)(a.v,{label:d(`taskPane.close`),children:(0,T.jsx)(a.F,{"aria-label":`close`,sx:{color:e=>e.palette.text.icon??e.palette.action.active},touchRippleRef:u,onPointerDown:e=>{u.current?.start(e,{center:!1}),e.stopPropagation(),e.preventDefault()},onPointerUp:()=>{o()},children:(0,T.jsx)(r.r,{iconKey:`Close`})})})]})})},Rr=(0,x.forwardRef)((e,t)=>{let{model:n,side:r,...a}=e,o=i.n();return(0,T.jsx)(f.et,{model:n,ref:t,propsFrame:{style:{border:`solid ${Fr} 1px`,borderRadius:`${o.shape.borderRadius??4}px`,marginBottom:`${o.spacing?.(.5)??4}px`}},alwaysShowStrip:!0,componentTitle:Lr,componentStrip:Ir,side:r,...e,onOpen:()=>{e?.onOpen?.()},onClose:()=>{e?.onClose?.()},...a})}),zr={},Br={flex:`1 1 100%`,display:`flex`,boxSizing:`border-box`},Vr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let n,r,{mainElement:a,sidebarElement:o,position:s,persistKey:c,onPositionChange:l,className:u,style:d,taskSide:f=`right`,...p}=e,[g,_]=i.ct(c??null,zr),y=i.n(),[b,{width:S}]=v.i(),C=S>530||S===0,w=(0,x.useRef)(null),E=null,D=4,O=13;C?E=`m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991`:(E=`M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991`,D=13,O=4);let k,A=a,j=o,M=f!==`right`,ee=C?`row`:`column`,te=M&&j?`before`:`after`,N=`${ee}:${te}`,ne=c?g[N]:void 0,P=ne==null?((e,t)=>{if(e==null)return`40%`;if(typeof e==`number`||typeof e==`string`)return e;let n=e[t];return n==null?`40%`:`${n}%`})(s,N):`${ne}%`,re=c||l?e=>{c&&_(t=>({...t,[N]:e.percent})),l?.(e,{orientation:ee,side:te,key:N})}:void 0;return M&&j?(A=o,j=a,r={style:{flexDirection:`column`,boxSizing:`border-box`,paddingRight:`2px`}},n={},k={fixedPane:`before`,position:P,minBefore:C?`280px`:`120px`,splitDirection:C?`row`:`column`}):(n={style:{flexDirection:`column`,marginRight:o?void 0:`6px`}},r={style:{marginLeft:C?`0px`:`4px`,marginRight:C?`8px`:`4px`}},k={fixedPane:`after`,position:P,minAfter:C?`280px`:`120px`,splitDirection:C?`row`:`column`}),(0,T.jsx)(i.nt,{ref:m.n([w,b,t]),className:u,style:d?{...Br,...d}:Br,...p,...k,onPositionChange:re,propsResizer:{className:h.t(`styled-resizer`,`_styled-resizer_fdl5y_3`),style:{minWidth:C?`7px`:void 0,minHeight:C?void 0:`6px`,maskImage:`url("data:image/svg+xml,%3Csvg width='${D}' height='${O}' viewBox='0 0 ${D} ${O}' version='1.1' fill='${y.palette.text.icon??y.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${E}' /%3E%3C/svg%3E%0A")`,maskRepeat:`no-repeat`,maskPosition:M?C?`center center`:`bottom center`:C?`left center`:`top center`}},elementBefore:A,propsPaneBefore:n,elementAfter:j,propsPaneAfter:r})}));Vr.displayName=`StudioSplitPane`;var Hr=(0,x.memo)(e=>{let{dataValidation:t}=e,d=i.Xt(),p=t.getRenderHints();return f.O(t,`onAnyChange`),(0,T.jsxs)(a.V,{tabIndex:0,className:s._[`editor-panel`],sx:{gap:e=>e.spacing(1),paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(2),paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5),border:e=>`1px solid ${e.palette.divider}`,borderRadius:e=>e.spacing(1.25),overflow:`auto`},children:[(0,T.jsx)(i.t,{sx:{margin:e=>e.spacing(1.25)},children:(0,T.jsx)(a.N,{variant:`body2`,sx:{color:`text.secondary`},children:d(`dataValidation.range`,{range:t.getRanges().toString()})})}),(0,T.jsx)(xt,{selectorTitle:d(`dataValidation.allow`),showIncludeBlanks:!0,condition:t.getCondition(),readOnly:t.isProtected(),onConditionChange:e=>t.setCondition(e)}),(0,T.jsxs)(ve,{expanded:t.isShowPromptMessage(),onChange:(e,n)=>t.setShowPromptMessage(n),disableGutters:!0,elevation:0,sx:{backgroundColor:`action.hover`,border:1,borderColor:`divider`,borderRadius:1,mb:0,"&:before":{display:`none`},"&.Mui-expanded":{margin:0,mb:1}},children:[(0,T.jsx)(we,{expandIcon:(0,T.jsx)(r.r,{iconKey:`ExpandMore`}),sx:{px:2,"& .MuiAccordionSummary-content":{my:0},"&.Mui-expanded .MuiAccordionSummary-content":{my:0}},children:(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{checked:t.isShowPromptMessage(),onChange:e=>{e.stopPropagation();let n=e.target.checked;t.setShowPromptMessage(n)},onClick:e=>e.stopPropagation()}),label:d(`dataValidation.showPrompt`),onClick:e=>e.stopPropagation()})}),(0,T.jsxs)(xe,{sx:{pl:2,pr:2,pt:0,pb:2,display:`flex`,flexDirection:`column`,gap:2},children:[(0,T.jsx)(l.t,{size:`small`,label:d(`dataValidation.title`),value:t.getPromptTitle(),onChange:e=>t.setPromptTitle(e.target.value),fullWidth:!0,sx:{backgroundColor:`background.paper`}}),(0,T.jsx)(l.t,{size:`small`,label:d(`dataValidation.message`),value:t.getPromptMessage(),onChange:e=>t.setPromptMessage(e.target.value),multiline:!0,rows:2,fullWidth:!0,sx:{backgroundColor:`background.paper`}})]})]}),(0,T.jsxs)(ve,{expanded:t.isShowAlertMessage(),onChange:(e,n)=>t.setShowAlertMessage(n),disableGutters:!0,elevation:0,sx:{backgroundColor:`action.hover`,border:1,borderColor:`divider`,borderRadius:1,mb:0,"&:before":{display:`none`},"&.Mui-expanded":{margin:0,mb:1}},children:[(0,T.jsx)(we,{expandIcon:(0,T.jsx)(r.r,{iconKey:`ExpandMore`}),sx:{px:2,"& .MuiAccordionSummary-content":{my:0},"&.Mui-expanded .MuiAccordionSummary-content":{my:0}},children:(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{checked:t.isShowAlertMessage(),onChange:e=>{e.stopPropagation();let n=e.target.checked;t.setShowAlertMessage(n)},onClick:e=>e.stopPropagation()}),label:d(`dataValidation.showAlert`),onClick:e=>e.stopPropagation()})}),(0,T.jsxs)(xe,{sx:{pl:2,pr:2,pt:0,pb:2,display:`flex`,flexDirection:`column`,gap:2},children:[(0,T.jsxs)(o.h,{fullWidth:!0,size:`small`,sx:{backgroundColor:`background.paper`},children:[(0,T.jsx)(o.p,{children:d(`dataValidation.alertStyle`)}),(0,T.jsxs)(o.t,{value:t.getAlertStyle(),label:d(`dataValidation.alertStyle`),onChange:e=>t.setAlertStyle(e.target.value),children:[(0,T.jsx)(u.t,{value:_.pt.AlertStyle.Stop,children:d(`dataValidation.alertStop`)}),(0,T.jsx)(u.t,{value:_.pt.AlertStyle.Warning,children:d(`dataValidation.alertWarning`)}),(0,T.jsx)(u.t,{value:_.pt.AlertStyle.Information,children:d(`dataValidation.alertInformation`)})]})]}),(0,T.jsx)(l.t,{size:`small`,label:d(`dataValidation.title`),value:t.getAlertTitle(),onChange:e=>t.setAlertTitle(e.target.value),fullWidth:!0,sx:{backgroundColor:`background.paper`}}),(0,T.jsx)(l.t,{size:`small`,label:d(`dataValidation.message`),value:t.getAlertMessage(),onChange:e=>t.setAlertMessage(e.target.value),multiline:!0,rows:2,fullWidth:!0,sx:{backgroundColor:`background.paper`}})]})]}),p.length>0&&(0,T.jsx)(i.t,{sx:{pl:2,pr:2,backgroundColor:`action.hover`,border:1,borderColor:`divider`,borderRadius:1},children:(0,T.jsx)(c.t,{control:(0,T.jsx)(c.n,{checked:!t.isHideDropdown(),onChange:e=>t.setHideDropdown(!e.target.checked)}),label:d(`dataValidation.useCustomInput`,{type:n.A.camelToPrettyCase(p[0])})})})]})});Hr.displayName=`DataValidationEditorPanel`;var Ur={key:`data-validation`,messageKeys:{none:n.v(`dataValidation.none`),addPrompt:n.v(`dataValidation.addPrompt`),heading:n.v(`dataValidation.heading`),insert:n.v(`dataValidation.insert`),new:n.v(`dataValidation.new`),moveUp:n.v(`dataValidation.moveUp`),moveDown:n.v(`dataValidation.moveDown`),edit:n.v(`dataValidation.edit`),duplicate:n.v(`dataValidation.duplicate`),delete:n.v(`dataValidation.delete`),cancel:n.v(`dataValidation.cancel`),save:n.v(`dataValidation.save`)},getCollection:e=>e.getDataValidations(),changeEvents:[`onDataValidationsChange`],applyUpdate:(e,t)=>{e.update(t)},getCardTitle:(e,t)=>e.getCondition()?.toString()??t(`dataValidation.noCondition`),CardBody:({item:e})=>{let t=i.Xt();return e.isShowPromptMessage()&&e.getPromptTitle()?(0,T.jsx)(a.N,{variant:`caption`,sx:{color:e=>e.palette.text.secondary,fontStyle:`italic`},children:t(`dataValidation.promptPrefix`,{title:e.getPromptTitle()})}):null},EditorBody:({item:e})=>(0,T.jsx)(Hr,{dataValidation:e})},Wr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{workbook:n,...r}=e;return(0,T.jsx)(Ge,{ref:t,workbook:n,descriptor:Ur,dragReorder:!0,...r})}));Wr.displayName=`DataValidationDetailsPanel`;var Gr=new WeakMap,Kr=(0,x.memo)(e=>{let{protectedRange:t}=e,n=i.Xt();f.O(t,`onAnyChange`);let o=t.isProtected(),[c,u]=(0,x.useState)(()=>t.getName()),[d]=(0,x.useState)(()=>t.getName()),[m,h]=(0,x.useState)(null),[g,_]=(0,x.useState)(``),[v,y]=(0,x.useState)(!1),[b]=(0,x.useState)(()=>t.hasPassword()),S=(()=>{try{let e=t.getRanges();return e.isInvalid()?null:e.getSheet().getProtectedRanges()}catch{return null}})(),C=()=>{let e=c.trim();if(!e)return void h(n(`protectedRange.nameRequired`));let r=S?.getItems({name:e})[0];if(r&&r.getName().toLocaleLowerCase()!==d.toLocaleLowerCase())h(n(`protectedRange.nameTaken`,{name:e}));else if(e!==t.getName())try{t.setName(e),h(null)}catch(e){h(e?.message??n(`protectedRange.nameRequired`))}else h(null)};return(0,T.jsxs)(a.V,{tabIndex:0,className:s._[`editor-panel`],sx:{gap:e=>e.spacing(1),paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(2),paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5),border:e=>`1px solid ${e.palette.divider}`,borderRadius:e=>e.spacing(1.25),overflow:`auto`},children:[(0,T.jsx)(i.t,{sx:{margin:e=>e.spacing(1.25)},children:(0,T.jsx)(a.N,{variant:`body2`,sx:{color:`text.secondary`},children:n(`protectedRange.range`,{range:t.getRanges().toString()})})}),(0,T.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,gap:e=>e.spacing(2),margin:e=>e.spacing(1.25)},children:[(0,T.jsx)(l.t,{label:n(`protectedRange.name`),size:`small`,fullWidth:!0,disabled:o,value:c,error:m!==null,helperText:m??void 0,onChange:e=>{u(e.target.value),h(null)},onBlur:C,onKeyDown:e=>{e.key===`Enter`&&C()}}),(0,T.jsx)(l.t,{label:n(`protectedRange.password`),size:`small`,fullWidth:!0,disabled:o,type:`password`,value:g,placeholder:b&&!v?n(`protectedRange.passwordUnchanged`):void 0,helperText:n(v?`protectedRange.passwordCleared`:`protectedRange.passwordHelp`),autoComplete:`new-password`,onChange:e=>{let n=e.target.value;_(n),y(!1),n?Gr.set(t,n):Gr.delete(t)},slotProps:{input:{startAdornment:b&&!v?(0,T.jsx)(p.t,{position:`start`,children:(0,T.jsx)(r.r,{iconKey:`Lock`})}):void 0}}}),b&&!g?(0,T.jsx)(a.D,{size:`small`,color:`inherit`,disabled:o||v,sx:{alignSelf:`flex-start`,textTransform:`none`},onClick:()=>{y(!0),Gr.set(t,null)},children:n(`protectedRange.removePassword`)}):null,t.getSecurityDescriptor()?(0,T.jsx)(a.N,{variant:`caption`,sx:{color:`text.secondary`,fontStyle:`italic`},children:n(`protectedRange.hasPermissions`)}):null]})]})});Kr.displayName=`ProtectedRangeEditorPanel`;var qr={key:`protected-range`,messageKeys:{none:n.v(`protectedRange.none`),addPrompt:n.v(`protectedRange.addPrompt`),heading:n.v(`protectedRange.heading`),insert:n.v(`protectedRange.insert`),new:n.v(`protectedRange.new`),edit:n.v(`protectedRange.edit`),duplicate:n.v(`protectedRange.duplicate`),delete:n.v(`protectedRange.delete`),cancel:n.v(`protectedRange.cancel`),save:n.v(`protectedRange.save`)},getCollection:e=>e.getProtectedRanges(),changeEvents:[`onProtectedRangesChange`],reorderable:!1,beforeSave:e=>(async e=>{if(!Gr.has(e))return;let t=Gr.get(e);Gr.delete(e),await e.setPassword(t)})(e),applyUpdate:(e,t)=>{e.update(t)},getCardTitle:(e,t)=>e.getName()||t(`protectedRange.unnamed`),CardBody:({item:e})=>{let t=i.Xt();return e.hasPassword()?(0,T.jsx)(a.N,{variant:`caption`,sx:{color:e=>e.palette.text.secondary,fontStyle:`italic`},children:t(`protectedRange.passwordRequired`)}):null},EditorBody:({item:e})=>(0,T.jsx)(Kr,{protectedRange:e})},Jr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{workbook:n,...r}=e;return(0,T.jsx)(Ge,{ref:t,workbook:n,descriptor:qr,...r})}));Jr.displayName=`ProtectedRangeDetailsPanel`,s.u(),r.t.register(`plugin-table`,{icons:{}}),f.nt.registerTaskPane({key:`dataValidationDetails`,getTitle:()=>`Data Validation`,getIcon:()=>`DataValidation`,component:e=>{let{model:t,entryKey:n,frame:r,ref:i,...a}=e;return(0,T.jsx)(Wr,{ref:i,workbook:t,...a})}},!0),f.nt.registerTaskPane({key:`conditionalFormatDetails`,getTitle:()=>`Conditional Formatting`,getIcon:()=>`FormatPaint`,component:e=>{let{model:t,entryKey:n,frame:r,args:i,ref:a,...o}=e;return(0,T.jsx)($t,{ref:a,workbook:t,args:i,...o})}},!0),f.nt.registerTaskPane({key:`protectedRangeDetails`,getTitle:()=>`Allow Edit Ranges`,getIcon:()=>`Lock`,component:e=>{let{model:t,entryKey:n,frame:r,ref:i,...a}=e;return(0,T.jsx)(Jr,{ref:i,workbook:t,...a})}},!0),s.r(),s.h();var Yr=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r}),r={promise:n,settled:!1,resolve:t=>{r.settled=!0,e(t)},reject:e=>{r.settled=!0,t(e)}};return n.catch(()=>{}),r},Xr=(e,t)=>{if(!e)return{};let{colorSchemes:r,...i}=e,a=r?.[t?`dark`:`light`];return a&&typeof a==`object`?n.A.deepMerge(i,a):i},Zr=(0,x.memo)((0,x.forwardRef)((e,t)=>{let{className:o,sx:c,square:l,elevation:u,variant:d,style:p,onWorkbookLoad:g,onDocumentError:_,renderDocumentError:v=s.f,propsDocumentError:y,propsTaskPaneArea:b,renderTaskPaneArea:S=Qr,taskPaneSide:C=`right`,onKeyDown:w,workbook:E,onWorkbookChange:D,logo:O,topLeft:k,topRight:A,muiTheme:j,tokens:M,cssBaseline:ee,autoFocus:te=!1,title:N,onDirtyChange:ne,propsDocumentTitle:P,renderDocumentLoading:re=s.a,propsDocumentLoading:F,propsWorkbook:ie,showFormulaBar:ae,propsFormulaBar:oe,renderFormulaBar:I,editable:se,showStatusBar:L,propsStatusBar:ce,renderStatusBar:R,propsToolbar:le,renderToolbar:ue,...de}=e,z=(0,x.useRef)(null),fe=(0,x.useRef)(null),B=(0,x.useRef)(null),me=i.tt(()=>{B.current?.getNamedCollectionEditorElement?.()?.focus?.()},[]),V=i.tt(_??(()=>{}),[_]),he=i.tt(ne??(()=>{}),[ne]),ge=P?.placeHolder,[_e]=i.ct(f.t.Mode,void 0),{themeMode:ve}=i.rt({mode:_e??void 0}),[ye]=i.ct(i.Dt.Active,null),be=(0,x.useRef)(ye);be.current=ye;let xe=i.yt(),H=(0,x.useMemo)(()=>({light:a.g(!1,n.A.deepMerge(Xr(j,!1),s.P(xe?.light))),dark:a.g(!0,n.A.deepMerge(Xr(j,!0),s.P(xe?.dark)))}),[j,xe?.light,xe?.dark]),Se=ve===`dark`,Ce=i.Y(`studio`,(0,x.useId)()),we=(0,x.useMemo)(()=>s.s(H.light,H.dark,`.${Ce}`,M),[H,Ce,M]),Te=(0,x.useMemo)(()=>f._(`sxl-defaults`,`.${Ce}`),[Ce]),Ee=f.X(),[De,Oe]=(0,x.useState)(()=>E??null);(0,x.useEffect)(()=>{Oe(E??null)},[E]);let[ke,Ae]=(0,x.useState)(0),U=(0,x.useRef)(null);U.current||=Yr();let W=f.pt(De,{io:f.l,defaultTheme:Ee.getDefaultTheme(),reloadKey:ke}),G=W.status===`loaded`?W.workbook:null,K=(0,x.useMemo)(()=>W.status===`error`?{status:`error`,error:W.error}:W.status===`loaded`?{status:`loaded`,workbook:W.workbook}:{status:`loading`},[W]);(0,x.useEffect)(()=>{U.current.settled&&(U.current=Yr())},[De,ke]),(0,x.useEffect)(()=>{K.status===`loaded`?U.current.resolve(K.workbook):K.status===`error`&&(V?.(K.error),U.current.reject(K.error))},[K]);let[q,je]=(0,x.useState)(null);G&&!q&&je(G);let Me=G&&q&&G!==q?G:null,Ne=(0,x.useRef)(Me);Ne.current=Me;let Pe=(0,x.useRef)(q);Pe.current=q;let Ie=(0,x.useRef)([]),Le=(0,x.useCallback)(e=>{let t=Pe.current;t&&Ie.current.push(t),Oe(e)},[]);(0,x.useEffect)(()=>{let e=Ie.current;if(e.length!==0){Ie.current=e.filter(e=>e===q);for(let t=0;t<e.length;t++){let n=e[t];if(n!==q)try{n.close()}catch(e){console.warn(`Unable to close the replaced workbook`,e)}}}},[q]);let Re=se?null:q,ze=f.S(),Be=(0,x.useMemo)(()=>Re?f.w(Re.getSelectedSheet(),{referenceMode:ze}):null,[Re,ze]),J=se??Be,Ve=(0,x.useRef)(J);Ve.current=J,(0,x.useEffect)(()=>{if(!J)return;let e=J.getSession();return J.subscribe(()=>{let t=e;e=J.getSession(),t&&!e&&t.getActiveEditorId()===`formula-bar`&&B.current?.contains?.(document.activeElement)&&z.current?.focus()})},[J]);let Y=f.K(q),{isDirty:He,saveState:Ue}=f.N(q,f.l),We=f.ct(q),Ge=(0,x.useRef)(Ue);Ge.current=Ue;let Ke=(0,x.useCallback)(()=>Ge.current?.isDirty()??!1,[]),qe=(0,x.useRef)(K);qe.current=K;let[Je,Ye]=(0,x.useState)(null),Xe=N??P?.title,[Ze,Qe]=(0,x.useState)(null);(0,x.useEffect)(()=>{Qe(null)},[q]);let $e=Xe??Ze??Y??``;(0,x.useEffect)(()=>{he?.(He)},[He]);let et=i.tt(D??(()=>{}),[D]);(0,x.useEffect)(()=>{et?.(G)},[G]);let tt=(0,x.useRef)(G);tt.current=G,f.O(q,`onViewChange`);let nt=(0,x.useMemo)(()=>(0,T.jsx)(f.Pt,{groupKey:`helpOptions`,disableHover:!0,sx:{padding:`0`},propsButton:{sx:{maxHeight:`22px`}}}),[]),[rt,it]=(0,x.useState)(null),at=(0,x.useCallback)(e=>{it(e)},[]);(0,x.useEffect)(()=>{r.t.prefetch()},[]);let ot=(0,x.useRef)(null);ot.current||=Yr();let st=(0,x.useRef)(null),ct=(0,x.useCallback)(()=>st.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement()??ot.current.promise,[]),lt=i.tt(async e=>{let t=be.current;t&&t!==n.d.getActive()&&await n.d.setActive(t),await i.Ot.DefaultCommandCatalogService.prefetch(t??void 0),Ye(e),st.current=e.source,ot.current.settled||ot.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement()??null),g?.(e)},[]),ut=(0,x.useRef)(null),dt=(0,x.useCallback)(e=>{let t=null,n={readOnly:!0,...P};return P?.hidden||(t=(0,T.jsx)(s.d,{...n,style:{maxWidth:`100%`,...P?.style},workbook:e.workbook??z.current,ref:ut,title:$e,modified:He,encrypted:We,placeHolder:ge,onTitleChange:e=>{Qe(e),P?.onTitleChange?.(e)}})),(0,T.jsx)(Tr,{...e,logo:O,mainElement:t,startElement:k,endElement:A})},[O,$e,He,We,P,k,A]);(0,x.useEffect)(()=>{let e=z.current;if(!e)return;let t=e=>e.preventDefault();return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[Je]);let[ft,pt]=(0,x.useState)(null);(0,x.useEffect)(()=>{pt(Je?.source?.getCommandScope?.()??null)},[Je]);let mt=(0,x.useMemo)(()=>({"& .SnackbarContainer-root":{position:`absolute !important`},"& .notistack-SnackbarContainer > div":{maxWidth:`min(100%, 720px)`},"& .notistack-Snackbar":{minWidth:`unset`},"& .notistack-Snackbar > .error-snackbar .MuiTypography-root":{color:e=>e.palette.getContrastText(e.palette.error.main)},"& .notistack-Snackbar > .error-snackbar .MuiCardActions-root":{color:e=>e.palette.getContrastText(e.palette.error.main)},"& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root":{color:e=>e.palette.getContrastText(e.palette.error.main)},"& .notistack-MuiContent *":{fontFamily:e=>e.typography.fontFamily},"& #notistack-snackbar":{maxWidth:`560px`,whiteSpace:`pre-wrap`},"*":{userSelect:`none`},...c}),[c]),[ht,gt]=(0,x.useState)(null),[,_t]=i.ct(null,!1);(0,x.useEffect)(()=>{_t(ht!=null)},[ht,_t]);let vt=(0,x.useCallback)(e=>S({model:q,side:C,...e,...b}),[q,C,b]),X=i.$t(t,()=>({isStudioElement:()=>!0,getWorkbookElement:()=>z.current,getWorkbook:()=>tt.current??null,isDirty:()=>Ge.current?.isDirty()??!1,getEditable:()=>Ve.current,getFormulaBarElement:()=>B.current??null,focus:()=>z.current?.focus(),whenReady:()=>(U.current||=Yr(),U.current.promise),getWorkbookState:()=>qe.current,retry:()=>Ae(e=>e+1)}),[]),yt=(0,x.useRef)(!1),bt=i.tt((e,t)=>{t===Ne.current&&requestAnimationFrame(()=>requestAnimationFrame(()=>{t===Ne.current&&(yt.current=X.current?.contains(document.activeElement)??!0,je(t),lt(e))}))},[]);(0,x.useEffect)(()=>{yt.current&&(yt.current=!1,z.current?.focus())},[q]);let xt=(0,x.useCallback)(()=>(0,T.jsx)(T.Fragment,{}),[]),Z=(0,x.useCallback)(e=>{let{ref:t,...n}=e,r=Se?H.dark:H.light,o=K.status===`error`?v({...y,style:{width:`100%`,height:`100%`,...y?.style},error:K.error}):null;if(o&&!q)return(0,T.jsx)(a.V,{sx:c,style:{width:`100%`,height:`100%`,position:`absolute`,display:`flex`,alignItems:`stretch`,justifyContent:`stretch`},children:o});let p=null;if(q){let e=q,a=e.getView(),o=ae??a?.isShowFormulaBar(),c=L??a?.isShowStatusBar(),l=Je?.source??z.current,u=(ue??dt)({workbook:l,...le}),d=o?(I??s.p)({ref:B,style:{marginTop:r.spacing(.25),marginLeft:r.spacing(1),marginRight:r.spacing(1),marginBottom:r.spacing(.75)},workbook:e,editable:J??void 0,...oe,propsNamedCollectionEditor:{restoreFocus:e=>l?.focus(e),...oe?.propsNamedCollectionEditor}}):null,h=c?(R??s.m)({childrenEnd:nt,...ce}):null,g=(e,r)=>(0,T.jsx)(s.g,{...ie,tabIndex:0,autoFocus:!r&&te,workbook:e,editable:r?void 0:J??void 0,focusNameBox:r?void 0:me,ref:r?fe:m.n([t,z]),onWorkbookLoad:r?t=>bt(t,e):lt,onKeyDown:e=>{w?.(e)},propsWorkbookLoading:F,renderWorkbookLoading:xt,style:r?{...ie?.style,position:`absolute`,inset:0,visibility:`hidden`}:{flex:`1 1 100%`,minHeight:0,...ie?.style},onContextMenu:e=>e.preventDefault(),...r?null:n},e.getId());p=(0,T.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:`1 1 100%`,minWidth:0,minHeight:0,...f.lt({window:r.palette.background.default,windowText:r.palette.text.primary})},children:[u,d,(0,T.jsx)(Vr,{taskSide:C,persistKey:`taskPanePosition`,sidebarElement:ht?(0,T.jsx)(i.Ot.CommandScopeProvider,{scope:ft,children:ht}):void 0,mainElement:(0,T.jsxs)(`div`,{style:{position:`relative`,display:`flex`,flexDirection:`column`,flex:`1 1 100%`,minWidth:0,minHeight:0},children:[[g(q,!1),Me?g(Me,!0):null],(0,T.jsx)(i.t,{ref:at,sx:{position:`absolute`,top:`10%`,left:0,right:0,bottom:0,pointerEvents:`none`,"& > :first-of-type":{position:`relative`}}})]})}),h]})}let h=Je?null:re({...F});return(0,T.jsxs)(a.V,{sx:mt,style:{width:`100%`,height:`100%`,position:`absolute`,display:`flex`,alignItems:`stretch`,justifyContent:`stretch`,backgroundColor:`var(--sxl-color-base-200)`},className:`eager-studio`,square:l,elevation:u,variant:d,children:[p,o?(0,T.jsx)(a.V,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`stretch`,justifyContent:`stretch`},children:o}):null,h?(0,T.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`var(--sxl-color-base-100, ${Se?`#121212`:`#fff`})`},children:h}):null]})},[K,q,Me,Je,$e,re,F,xt,ie,de,l,u,d,nt,v,y,dt,mt,ht,C,ft,ae,oe,I,J,L,ce,R,le,ue,H,Se]),St=(0,T.jsx)(xr,{maxSnack:3,domRoot:rt??void 0,anchorOrigin:{vertical:`bottom`,horizontal:`right`},autoHideDuration:3500,onClose:(e,t,n)=>{z.current?.focus()},Components:{error:Cr},iconVariant:{success:(0,T.jsx)(a.$,{style:{marginRight:`8px`},children:(0,T.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`})}),error:(0,T.jsx)(r.r,{iconKey:`ErrorAlert`,style:{marginRight:`8px`}})},children:(0,T.jsx)(f.$,{workbook:q,children:(0,T.jsx)(f.k,{renderArea:vt,onUpdateArea:e=>{gt(e)},children:(0,T.jsx)(f.Ut,{children:(0,T.jsx)(Pr,{children:(0,T.jsx)(i.st,{children:(0,T.jsx)(i.K,{children:(0,T.jsx)(jr,{workbook:q,initialCommandAnchor:ct,renderWorkbook:Z,setWorkbook:Le,titleWorkbook:$e,setWorkbookTitle:Qe,refDocumentTitle:ut,isDirty:Ke})})})})})})})});return St=(0,T.jsxs)(pe,{theme:Se?H.dark:H.light,children:[ee?(0,T.jsx)(Fe,{}):null,(0,T.jsxs)(`div`,{ref:X,className:h.t(`sheetxl-studio`,Ce,o),"data-sxl-theme-mode":Se?`dark`:`light`,style:{display:`flex`,flexDirection:`column`,flex:`1 1 100%`,width:`100%`,height:`100%`,minWidth:0,minHeight:0,position:`relative`,...p},...de,children:[(0,T.jsx)(`style`,{children:we}),(0,T.jsx)(`style`,{children:Te}),(0,T.jsx)(f.Kt,{themeScopeClass:Ce,themeSurface:`app`,themeMode:ve,children:St})]})]}),St}));Zr.displayName=`EagerStudio`;var Qr=e=>(0,T.jsx)(Rr,{...e});exports.EagerStudio=Zr,exports.default=Zr;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./BEJFcqVMDMKOvs11.cjs"),r=require("./BIQZDBQfv3Qm5iC8.cjs"),i=require("./CPgCih_KEqnUZ9Rv.cjs"),a=require("./BEzaum_kgG4yAOx0.cjs"),o=require("./CrDTTLE9EvaGDSD4.cjs"),s=require("./BziOCn_XEGT4ynN5.cjs"),c=require("./CPcBvw4ZPwHVTUZF.cjs");var l=e.r(t.i(),1),u=e.r(t.r(),1),d=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;l.createContext(null).displayName=`HookFormControlContext`,d?l.useLayoutEffect:l.useEffect;var f=l.createContext(null);f.displayName=`HookFormContext`;var p=()=>l.useContext(f),m=e=>{e.button===0&&e.preventDefault()},h=`20px`,g=`4px`,_=`calc(${h} + ${g})`,v=(0,l.memo)((0,l.forwardRef)((e,t)=>{let{grammar:d=`formula`,formName:f,formOptions:_,disabled:v,className:y,sx:ee,onKeyDown:b,onFocus:x,value:S,onChangeInput:C,onChangeText:te,onDone:w,changeOn:T,apiRef:E,workbook:D,home:O,equals:k,pickAs:ne,allowMulti:re,allowCrossSheet:ie,label:A,labelPlacement:ae=`floating`,placeholder:oe,helperText:j,showError:M=!0,onChangeError:N,hideAdornment:P,classNameInput:F,id:I,...L}=e,R=r.Xt(),z=ae===`above`,B=(0,l.useId)(),V=I??B,H=d===`formula`,U=A===void 0?R(H?`formulaInput.label`:`rangeInput.label`):A,W=oe??R(H?`formulaInput.placeholder`:`rangeInput.placeholder`),G=p(),K=f&&G?G.register(f,_):null,q=o.dt({value:S,onChange:C,onChangeText:te,onDone:w,changeOn:T,workbook:D,home:O,equals:k,pickAs:ne,allowMulti:re,allowCrossSheet:ie,disabled:v},d);(0,l.useImperativeHandle)(E,()=>q,[q]);let J=o.st({api:q,grammar:d,disabled:v,workbook:D,home:O}),Y=!!q.error&&!J.inputExpected,se=M&&Y?R(q.error):j===void 0?` `:j,X=(0,l.useRef)(G);X.current=G;let Z=(0,l.useRef)(N);Z.current=N;let Q=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(q.error===Q.current||(Q.current=q.error,Z.current?.(q.error),!f))return;let e=X.current;e&&(q.error?e.setError(f,{message:q.error}):e.clearErrors(f))},[q.error,f]);let $=!!w,ce=(0,l.useMemo)(()=>P?void 0:(0,u.jsx)(s.t,{tabIndex:-1,onMouseDown:m,sx:{display:`flex`,position:`relative`,flex:`0`},position:`end`,children:q.engaged&&$?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Gt,{dense:!0,outlined:!1,color:`primary`,"aria-label":`commit-reference`,icon:(0,u.jsx)(n.r,{iconKey:`CheckSuccess`}),propsTooltip:{label:R(`referenceInput.commit`),simple:!0},disabled:!!q.error,tabIndex:-1,onMouseDown:m,onClick:()=>{q.commit()}}),(0,u.jsx)(o.Gt,{dense:!0,outlined:!1,color:`warning`,"aria-label":`cancel-reference`,icon:(0,u.jsx)(n.r,{iconKey:`CloseError`}),propsTooltip:{label:R(`referenceInput.cancel`),simple:!0},tabIndex:-1,onMouseDown:m,onClick:()=>{q.cancel()}})]}):(0,u.jsx)(o.Gt,{dense:!0,outlined:!1,disabled:v||!q.canSelectCurrent,sx:{"&.Mui-disabled":{opacity:.35}},"aria-label":`select-current-range`,icon:(0,u.jsx)(n.r,{iconKey:`SelectRangeMode`}),propsTooltip:{label:R(`referenceInput.selectCurrent`),simple:!0},tabIndex:-1,onMouseDown:m,onClick:()=>{q.engaged||q.togglePoint(),q.selectCurrent()}})}),[P,v,$,q.engaged,q.canSelectCurrent,q.togglePoint,q.selectCurrent,q.commit,q.cancel,!!q.error]);return(0,u.jsxs)(i.h,{sx:{minWidth:135,width:`100%`,...ee},size:`small`,ref:e=>{J.containerRef.current=e,typeof t==`function`?t(e):t&&(t.current=e)},className:c.t(`sxl-formula-field`,y),"data-grammar":d,...L,children:[z?(0,u.jsx)(r.t,{component:`label`,htmlFor:V,sx:{lineHeight:h,marginBottom:g,paddingLeft:`14px`,display:`flex`,alignItems:`center`,gap:`4px`,overflow:`hidden`,whiteSpace:`nowrap`,fontSize:`0.8rem`,color:v?`text.disabled`:`text.primary`},children:U}):null,(0,u.jsx)(a.t,{id:V,label:z?void 0:U,placeholder:W,disabled:v,error:Y,helperText:se,sx:{"& .MuiFormHelperText-root":{marginTop:g,...z?{lineHeight:h}:null}},slotProps:{input:{endAdornment:ce},inputLabel:{shrink:!0},htmlInput:{className:F,spellCheck:!1,autoComplete:`off`,readOnly:v||q.inputProps.readOnly,name:f,sx:{paddingTop:e=>e.spacing(z||U==null?1:1.25),paddingBottom:e=>e.spacing(z||U==null?1:.75),...J.overlayActive?{color:`transparent`,caretColor:e=>e.palette.text.primary}:null},onSelect:e=>{q.inputProps.onSelect(e),J.inputHandlers.onSelect(e)},onScroll:J.inputHandlers.onScroll,onMouseMove:J.inputHandlers.onMouseMove,onMouseLeave:J.inputHandlers.onMouseLeave}},value:q.inputProps.value,inputRef:e=>{J.inputElRef.current=e,q.inputProps.ref(e),K?.ref&&K.ref(e)},onChange:e=>{q.inputProps.onChange(e),J.inputHandlers.onSelect(e),K?.onChange(e)},onKeyDown:e=>{J.handleKeyDown(e)||(q.inputProps.onKeyDown(e),e.defaultPrevented||b?.(e))},onPointerDown:J.inputHandlers.onPointerDown,onMouseDown:q.inputProps.onMouseDown,onFocus:e=>{q.inputProps.onFocus(e),x?.(e)},onBlur:e=>{q.inputProps.onBlur(e),K?.onBlur(e)},onContextMenu:e=>{e.stopPropagation()}}),J.overlayElement,J.tipElement,J.hintElement]})}));v.displayName=`FormulaField`,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./BIQZDBQfv3Qm5iC8.cjs"),r=require("./Cy-4IMt-AbR-ifP3.cjs"),i=require("./CPgCih_KEqnUZ9Rv.cjs"),a=require("./BEzaum_kgG4yAOx0.cjs");var o=e.r(t.r(),1),s=e.r(t.i(),1),c=[`Input`],l=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{initialValue:l=``,onOption:u,onValidateOption:d,onInput:f,onValidateInput:p,onDone:m,propsInput:h,inputLabel:g,inputType:_,inputPlaceHolder:v,options:y=c,autoFocusSel:b=`.autoFocus`,cancelOption:x,defaultOption:S=y?.[0],...C}=e,[w,T]=(0,s.useState)(!1),[E,D]=(0,s.useState)(l),[O,k]=(0,s.useState)(``),[A,j]=(0,s.useState)(!0),M=n.tt(async(e,t)=>{if(!p)return!0;let n=await p?.(e,t);k(n?.message??``);let r=n?.valid??!0;return j(r),r},[p]),N=n.tt(async e=>{f?.(E,e)},[E,f,m,u,x,S]),P=n.tt(async e=>{e.keyCode===n.Et.Enter&&await M?.(E,void 0)},[E,N]),F=n.tt(e=>{D(e.target.value),M?.(e.target.value,void 0)},[d]);return(0,o.jsx)(r.i,{options:y,onDone:m,onOption:(e,t)=>{t||N(e)},onValidateOption:n.tt(async e=>await M(E,e)??!0,[E,d]),cancelOption:x,defaultOption:S,autoFocusSel:b,ref:t,...C,children:(0,o.jsx)(n.t,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:(0,o.jsx)(i.h,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:`100%`},size:`small`,children:(0,o.jsx)(a.t,{onFocus:e=>{w||e.target?.select(),T(!0)},type:_,label:g,helperText:O||` `,sx:{width:`100%`,"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:A?void 0:`error.main`}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:v,spellCheck:!1,autoComplete:`off`,...h,className:r.r(`autoFocus`,h?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},value:E,onChange:F,onKeyDown:P,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={DATESTRING:{s:`Converts a standard date code into a localized text string.`,p:{number:{d:`A numeric value representing a date code.`}},h:`Unimplemented Japanese.`},NUMBERSTRING:{s:`Converts a number into Japanese Kanji words.`,p:{number:{d:`A numeric value representing a date code.`},number2:{d:`A numeric value representing a date code.`}},h:`Unimplemented Japanese.`}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={ABS:{s:`Returns the absolute value of a number, a number without its sign.`,p:{number:{d:`is the real number for which you want the absolute value.`}}},AGGREGATE:{s:`Returns an aggregate in a list or database.`,p:{functionNum:{d:`The function to use: 1-19.`},options:{d:`The options for the aggregate: 0-7.`},array:{d:`The ranges to aggregate.`},KOrRest:{d:`If functionNum is 14-19, this is the k value. Otherwise, this is the first of the ranges to aggregate.`}}},ARABIC:{s:`Converts a Roman numeral to Arabic.`,p:{text:{d:`is the Roman numeral you want to convert.`}}},BASE:{s:`Converts a number into a text representation with the given radix (base).`,p:{number:{d:`is the number that you want to convert.`},radix:{d:`is the base Radix that you want to convert the number into.`},minLength:{d:`is the minimum length of the returned string.`}}},CEILING:{s:`Rounds a number up, to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the value you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},"CEILING.MATH":{s:`Rounds a number up, to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`when given and nonzero this function will round away from zero.`},mode:{}}},"CEILING.PRECISE":{s:`Rounds a number up to the nearest integer or to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},"ECMA.CEILING":{s:`Rounds a number up, to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the value you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},COMBIN:{s:`Returns the number of combinations for a given number of items.`,p:{number:{d:`is the total number of items.`},numberChosen:{d:`is the number of items in each combination.`}}},COMBINA:{s:`Returns the number of combinations with repetitions for a given number of items.`,p:{number:{d:`is the total number of items.`},numberChosen:{d:`is the number of items in each combination.`}}},DECIMAL:{s:`Converts a text representation of a number in a given base into a decimal number.`,p:{number:{d:`is the number that you want to convert.`},radix:{d:`is the base Radix of the number you are converting.`}}},DEGREES:{s:`Converts radians to degrees.`,p:{angle:{d:`is the angle in radians that you want to convert.`}}},EVEN:{s:`Rounds a positive number up and negative number down to the nearest even integer.`,p:{number:{d:`is the value to round.`}}},EXP:{s:`Returns e raised to the power of a given number.`,p:{number:{d:`is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm.`}}},FACT:{s:`Returns the factorial of a number, equal to 1*2*3*...* Number.`,p:{number:{d:`is the nonnegative number you want the factorial for.`}}},FACTDOUBLE:{s:`Returns the double factorial of a number.`,p:{number:{d:`is the value for which to return the double factorial.`}}},FLOOR:{s:`Rounds a number down to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round. Number and Significance must either both be positive or both be negative.`}}},"FLOOR.MATH":{s:`Rounds a number down, to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`},mode:{d:`when given and nonzero this function will round towards zero.`}}},"FLOOR.PRECISE":{s:`Rounds a number down to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},GCD:{s:`Returns the greatest common divisor.`,p:{number:{d:`are 1 to 255 values.`}}},INT:{s:`Rounds a number down to the nearest integer.`,p:{number:{d:`is the real number you want to round down to an integer.`}}},"ISO.CEILING":{s:`Rounds a number up to the nearest integer.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round up to an integer.`},significance:{d:`is the multiple to which you want to round number.`}}},LCM:{s:`Returns the least common multiple.`,p:{number:{d:`are 1 to 255 values for which you want the least common multiple.`}}},LN:{s:`Returns the natural logarithm of a number.`,p:{number:{d:`is the positive real number for which you want the natural logarithm.`}}},LOG:{s:`Returns the logarithm of a number to the base you specify.`,p:{number:{d:`is the positive real number for which you want the logarithm.`},base:{d:`is the base of the logarithm.`}}},LOG10:{s:`Returns the base-10 logarithm of a number.`,p:{number:{d:`is the positive real number for which you want the base-10 logarithm.`}}},MDETERM:{s:`Returns the matrix determinant of an array.`,p:{array:{d:`is a numeric array with an equal number of rows and columns, either a cell range or an array constant.`}}},MINVERSE:{s:`Returns the inverse matrix for the matrix stored in an array.`,p:{array:{d:`is a numeric array with an equal number of rows and columns, either a cell range or an array constant.`}}},MMULT:{s:`Returns the matrix product of two arrays, an array with the same number of rows as array1 and columns as array2.`,p:{array1:{d:`is the first array of numbers to multiply and must have the same number of columns as Array2 has rows.`},array2:{d:`is the second array of numbers to multiply and must have the same number of columns as Array1 has rows.`}}},MOD:{s:`Returns the remainder after a number is divided by a divisor.`,p:{number:{d:`is the number for which you want to find the remainder after the division is performed.`},divisor:{d:`is the number by which you want to divide Number.`}}},MROUND:{s:`Returns a number rounded to the desired multiple.`,p:{number:{d:`is the value to round.`},multiple:{d:`is the multiple to which you want to round number.`}}},MULTINOMIAL:{s:`Returns the multinomial of a set of numbers.`,p:{number:{d:`are 1 to 255 values for which you want the multinomial.`}}},MUNIT:{s:`Returns the unit matrix for the specified dimension.`,p:{dimension:{d:`is an integer specifying the dimension of the unit matrix that you want to return.`}}},ODD:{s:`Rounds a positive number up and negative number down to the nearest odd integer.`,p:{number:{d:`is the value to round.`}}},PERCENTOF:{s:`Returns the percentage of a subset of a given data set.`,p:{dataSubset:{d:`is the subset.`},dataAll:{d:`is the data set.`}}},PI:{s:`Returns the value of Pi, 3.14159265358979, accurate to 15 digits.`,p:{}},POWER:{s:`Returns the result of a number raised to a power.`,p:{number:{d:`is the base number, any real number.`},power:{d:`is the exponent, to which the base number is raised.`}}},PRODUCT:{s:`Multiplies all the numbers given as arguments.`,p:{number:{d:`are 1 to 255 numbers, logical values, or text representations of numbers that you want to multiply.`}}},QUOTIENT:{s:`Returns the integer portion of a division.`,p:{numerator:{d:`is the dividend.`},denominator:{d:`is the divisor.`}}},RADIANS:{s:`Converts degrees to radians.`,p:{angle:{d:`is an angle in degrees that you want to convert.`}}},RAND:{s:`Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation).`,p:{}},RANDARRAY:{s:`Returns an array of random numbers.`,p:{rows:{d:`the number of rows in the returned array.`},columns:{d:`the number of columns in the returned array.`},min:{d:`the minimum number you would like returned.`},max:{d:`the maximum number you would like returned.`},integer:{d:`return an integer or a decimal value. TRUE for an integer, FALSE for a decimal number.`}}},RANDBETWEEN:{s:`Returns a random number between the numbers you specify.`,p:{bottom:{d:`is the smallest integer RANDBETWEEN will return.`},top:{d:`is the largest integer RANDBETWEEN will return.`}}},ROMAN:{s:`Converts an Arabic numeral to Roman, as text.`,p:{number:{d:`is the Arabic numeral you want to convert.`},form:{d:`is the number specifying the type of Roman numeral you want.`}}},ROUND:{s:`Rounds a number to a specified number of digits.`,p:{number:{d:`is the number you want to round.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},ROUNDDOWN:{s:`Rounds a number down, toward zero.`,p:{number:{d:`is any real number that you want rounded down.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},ROUNDUP:{s:`Rounds a number up, away from zero.`,p:{number:{d:`is any real number that you want rounded up.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},SEQUENCE:{s:`Returns a sequence of numbers.`,p:{rows:{d:`the number of rows to return.`},columns:{d:`the number of columns to return.`},start:{d:`the first number in the sequence.`},step:{d:`the amount to increment each subsequent value in the sequence.`}}},SERIESSUM:{s:`Returns the sum of a power series based on the formula.`,p:{x:{d:`is the input value to the power series.`},n:{d:`is the initial power to which you want to raise x.`},m:{d:`is the step by which to increase n for each term in the series.`},coefficients:{d:`is a set of coefficients by which each successive power of x is multiplied.`}}},SIGN:{s:`Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative.`,p:{number:{d:`is any real number.`}}},SQRT:{s:`Returns the square root of a number.`,p:{number:{d:`is the number for which you want the square root.`}}},SQRTPI:{s:`Returns the square root of (number * Pi).`,p:{number:{d:`is the number by which p is multiplied.`}}},SUBTOTAL:{s:`Returns a subtotal in a list or database.`,p:{functionNum:{d:`is the number 1 to 11 that specifies the summary function for the subtotal.`},ref:{d:`are 1 to 254 ranges or references for which you want the subtotal.`}}},SUM:{s:`Adds all the numbers in a range of cells.`,p:{number:{d:`are 1 to 255 numbers to sum. Logical values and text are ignored in cells, included if typed as arguments.`}}},SUMIF:{s:`Adds the cells specified by a given condition or criteria.`,p:{range:{d:`is the range of cells you want evaluated.`},criteria:{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be added.`},sumRange:{d:`are the actual cells to sum. If omitted, the cells in range are used.`}}},SUMIFS:{s:`Adds the cells specified by a given set of conditions or criteria.`,p:{sumRange:{d:`are the actual cells to sum.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want evaluated for the particular condition.`},"criteria.criteria":{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be added.`}}},SUMPRODUCT:{s:`Returns the sum of the products of corresponding ranges or arrays.`,p:{array:{d:`are 2 to 255 arrays for which you want to multiply and then add components. All arrays must have the same dimensions.`}}},SUMSQ:{s:`Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names, or references to cells that contain numbers.`,p:{number:{d:`are 1 to 255 numbers, arrays, names, or references to arrays for which you want the sum of the squares.`}}},SUMX2MY2:{s:`Sums the differences between the squares of two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},SUMX2PY2:{s:`Returns the sum total of the sums of squares of numbers in two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},SUMXMY2:{s:`Sums the squares of the differences in two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},TRUNC:{s:`Truncates a number to an integer by removing the decimal, or fractional, part of the number.`,p:{number:{d:`is the number you want to truncate.`},numDigits:{d:`is a number specifying the precision of the truncation.`}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={BAHTTEXT:{s:`Converts a number to baht (Thai) text.`,c:`Baht`,p:{number:{d:`is the number to convert.`}},h:`Thai`}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return Array.isArray?Array.isArray(e):c(e)===`[object Array]`}function t(e){return e==null?``:function(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}(e)}function n(e){return typeof e==`string`}function r(e){return typeof e==`number`}function i(e){return!0===e||!1===e||function(e){return a(e)&&e!==null}(e)&&c(e)==`[object Boolean]`}function a(e){return typeof e==`object`}function o(e){return e!=null}function s(e){return!e.trim().length}function c(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var l=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,u=Object.prototype.hasOwnProperty,d=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=f(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function f(t){let r=null,i=null,a=null,o=1,s=null;if(n(t)||e(t))a=t,r=p(t),i=m(t);else{if(!u.call(t,`name`))throw Error(`Missing name property in key`);let e=t.name;if(a=e,u.call(t,`weight`)&&t.weight!==void 0&&(o=t.weight,o<=0))throw Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(m(e)));r=p(e),i=m(e),s=t.getFn??null}return{path:r,id:i,weight:o,src:a,getFn:s}}function p(t){return e(t)?t:t.split(`.`)}function m(t){return e(t)?t.join(`.`):t}var h=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:function(a,s){let c=[],l=!1,u=(a,s,d,f)=>{if(o(a))if(s[d]){let p=a[s[d]];if(!o(p))return;if(d===s.length-1&&(n(p)||r(p)||i(p)||typeof p==`bigint`))c.push(f===void 0?t(p):{v:t(p),i:f});else if(e(p)){l=!0;for(let e=0,t=p.length;e<t;e+=1)u(p[e],s,d+1,e)}else s.length&&u(p,s,d+1,f)}else c.push(f===void 0?a:{v:a,i:f})};return u(a,n(s)?s.split(`.`):s,0),l?c:c[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1});function g(e){return e>=9&&e<=13||e===32||e===160}var _=class{constructor({getFn:e=h.getFn,fieldNormWeight:t=h.fieldNormWeight}={}){this.norm=function(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)g(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(n(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(l);if(n(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let r=this._createObjectRecord(e,t);return this.records.push(r),r}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(l);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!o(e)||s(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(r,i){let a={i,$:{}};for(let i=0,c=this.keys.length;i<c;i++){let c=this.keys[i],l=c.getFn?c.getFn(r):this.getFn(r,c.path);if(o(l)){if(e(l)){let e=[];for(let r=0,i=l.length;r<i;r+=1){let i=l[r];if(o(i)){if(n(i)){if(!s(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}}else if(o(i.v)){let r=n(i.v)?i.v:t(i.v);if(!s(r)){let t={v:r,i:i.i,n:this.norm.get(r)};e.push(t)}}}}a.$[i]=e}else if(n(l)&&!s(l)){let e={v:l,n:this.norm.get(l)};a.$[i]=e}}}return a}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function v(e,t,{getFn:n=h.getFn,fieldNormWeight:r=h.fieldNormWeight}={}){let i=new _({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(f)),i.setSources(t),i.create(),i}function y(e,t,n,{location:r=h.location,distance:i=h.distance,threshold:a=h.threshold,findAllMatches:o=h.findAllMatches,minMatchCharLength:s=h.minMatchCharLength,includeMatches:c=h.includeMatches,ignoreLocation:l=h.ignoreLocation}={}){if(t.length>32)throw Error(`Pattern length exceeds max of 32.`);let u,d=t.length,f=e.length,p=Math.max(0,Math.min(r,f)),m=a,g=p,_=(e,t)=>{let n=e/d;if(l)return n;let r=Math.abs(p-t);return i?n+r/i:r?1:n},v=s>1||c,y=v?Array(f):[];for(;(u=e.indexOf(t,g))>-1;){let e=_(0,u);if(m=Math.min(e,m),g=u+d,v){let e=0;for(;e<d;)y[u+e]=1,e+=1}}g=-1;let b=[],x=1,S=0,C=d+f,w=1<<d-1;for(let t=0;t<d;t+=1){let r=0,i=C;for(;r<i;)_(t,p+i)<=m?r=i:C=i,i=Math.floor((C-r)/2+r);C=i;let a=Math.max(1,p-i+1),s=o?f:Math.min(p+i,f)+d,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),c[r]&w&&(x=_(t,i),x<=m)){if(m=x,g=i,S=t,g<=p)break;a=Math.max(1,2*p-g)}}if(_(t+1,p)>m)break;b=c}if(v&&g>=0){let t=Math.min(f-1,g+d-1+S);for(let r=g;r<=t;r+=1)n[e[r]]&&(y[r]=1)}let T={isMatch:g>=0,score:Math.max(.001,x)};if(v){let e=function(e=[],t=h.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:o||r===-1||(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}(y,s);e.length?c&&(T.indices=e):T.isMatch=!1}return T}function b(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function x(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var S={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},C=RegExp(`[`+Object.keys(S).join(``)+`]`,`g`),w=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(C,e=>S[e]):e=>e,T=class{constructor(e,{location:t=h.location,threshold:n=h.threshold,distance:r=h.distance,includeMatches:i=h.includeMatches,findAllMatches:a=h.findAllMatches,minMatchCharLength:o=h.minMatchCharLength,isCaseSensitive:s=h.isCaseSensitive,ignoreDiacritics:c=h.ignoreDiacritics,ignoreLocation:l=h.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?w(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:b(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?w(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=y(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=x(u)),p}},E=new Set([`fuzzy`,`include`]);function D(e){return e.startsWith(`inverse`)}var O=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n,r=0,i=[],a=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+a,i.push([n,r-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new T(e,{location:t.location??h.location,threshold:t.threshold??h.threshold,distance:t.distance??h.distance,includeMatches:t.includeMatches??h.includeMatches,findAllMatches:t.findAllMatches??h.findAllMatches,minMatchCharLength:t.minMatchCharLength??h.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??h.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??h.ignoreDiacritics,ignoreLocation:t.ignoreLocation??h.ignoreLocation});return{type:`fuzzy`,search:e=>n.searchIn(e)}}}],k=O.length;function A(e,t){let n=e.match(t);return n?n[1]:null}var j=[];function M(...e){j.push(...e)}function N(e,t){for(let n=0,r=j.length;n<r;n+=1){let r=j[n];if(r.condition(e,t))return new r(e,t)}return new T(e,t)}var P=`$and`,F=`$path`,I=e=>!(!e[P]&&!e.$or),L=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function R(t,r,{auto:i=!0}={}){let o=t=>{if(n(t)){let e={keyId:null,pattern:t};return i&&(e.searcher=N(t,r)),e}let s=Object.keys(t),c=(e=>!!e[F])(t);if(!c&&s.length>1&&!I(t))return o(L(t));if((t=>!e(t)&&a(t)&&!I(t))(t)){let e=c?t[F]:s[0],a=c?t.$val:t[e];if(!n(a))throw Error((e=>`Invalid value for key ${e}`)(e));let o={keyId:m(e),pattern:a};return i&&(o.searcher=N(a,r)),o}let l={children:[],operator:s[0]};return s.forEach(n=>{let r=t[n];e(r)&&r.forEach(e=>{l.children.push(o(e))})}),l};return I(t)||(t=L(t)),o(t)}function z(e,{ignoreFieldNorm:t=h.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**(+(a||1)*(t?1:r))}),n}var B=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{let i=2*(e=r)+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function V(e,t,{includeMatches:n=h.includeMatches,includeScore:r=h.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=function(e){let t=[];return e.matches.forEach(e=>{if(!o(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(a.score=e.score),a})}var H=/[\p{L}\p{M}\p{N}_]+/gu,U=new WeakSet;function W({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=function(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||(t=e,U.has(t)||(U.add(t),console.warn(`[Fuse] tokenize regex ${t} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))),t=>t.match(e)||[]):e=>e.match(H)||[];var t}(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=w(n)),r(n))}}function G(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function K(e,t,n,r){let{i,v:a,$:o}=t;if(a===void 0){if(o)for(let t=0;t<n;t++){let n=o[t];if(n)if(Array.isArray(n))for(let t of n)G(e,t.v,i,r);else G(e,n.v,i,r)}}else G(e,a,i,r)}function q(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function J(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)q(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Y=class{constructor(e,t,n){this.options={...h,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new d(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=N(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof _))throw Error(`Incorrect 'index' type`);if(this._myIndex=t||v(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=W({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)K(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!o(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=W({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});(function(e,t,n,r){K(e,t,n,r)})(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&J(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(l);this._invertedIndex&&J(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:i=-1}=t||{},{includeMatches:a,includeScore:o,shouldSort:s,sortFn:c,ignoreFieldNorm:l}=this.options;if(n(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return r(i)&&i>-1&&(e=e.slice(0,i)),e}let u,d=s&&r(i)&&i>0&&n(e),f=c,p=(e,t)=>f(e,t)||e.idx-t.idx;if(d){let t=new B(i,p);n(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:l}),u=t.extractSorted()}else u=n(e)?n(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=h.ignoreFieldNorm}){e.forEach(e=>{e.score=z(e.matches,{ignoreFieldNorm:t})})}(u,{ignoreFieldNorm:l}),s&&u.sort(n(e)?p:f),r(i)&&i>-1&&(u=u.slice(0,i));return V(u,this._docs,{includeMatches:a,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,s=t?null:[];return a.forEach(({v:e,i:a,n:c})=>{if(!o(e))return;let l=r.searchIn(e);if(l.isMatch){let r={score:l.score,value:e,norm:c,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);let o=[r];if(!i||this._coversAllTokens(o)){let r={item:e,idx:a,matches:o};t?(r.score=z(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}}),s}_searchLogical(e){let t=R(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let r,{keyId:a,searcher:o}=e;return a===null?(r=[],n.forEach((e,n)=>{r.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):r=this._findMatches({key:this._keyStore.get(a),value:this._myIndex.getValueForItemAtKeyId(t,a),searcher:o}),r&&r.length?[{idx:i,item:t,matches:r}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e<n;e+=1){let n=a[e],c=r(n,t,i);if(c.length)s.push(...c);else if(o===P)return[]}return s},i=this._myIndex.records,a=new Map,s=[];return i.forEach(({$:e,i:n})=>{if(o(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),s.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),s}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,s=this._normalizedKeys(),c=t?null:[];return a.forEach(({$:e,i:a})=>{if(!o(e))return;let l=[],u=!1,d=!1;if(s.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(d=!0)):u=!0}),(!d||!u)&&l.length&&(!i||this._coversAllTokens(l))){let r={idx:a,item:e,matches:l};t?(r.score=z(r.matches,{ignoreFieldNorm:n}),t.insert(r)):c.push(r)}}),c}_findMatches({key:t,value:n,searcher:r}){if(!o(n))return[];let i=[];if(e(n))n.forEach(({v:e,i:n,n:a})=>{if(!o(e))return;let s=r.searchIn(e);if(s.isMatch){let r={score:s.score,key:t,value:e,idx:n,norm:a,indices:s.indices,hasInverse:s.hasInverse};s.termCount!==void 0&&(r.matchedMask=s.matchedMask,r.matchedTerms=s.matchedTerms,r.termCount=s.termCount),i.push(r)}});else{let{v:e,n:a}=n,o=r.searchIn(e);if(o.isMatch){let n={score:o.score,key:t,value:e,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),i.push(n)}}return i}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};Y.version=`7.5.0`,Y.createIndex=v,Y.parseIndex=function(e,{getFn:t=h.getFn,fieldNormWeight:n=h.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new _({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a},Y.config=h,Y.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`);return N(e,{...h,...n}).searchIn(t)},Y.parseQuery=R,M(class{constructor(e,{isCaseSensitive:t=h.isCaseSensitive,ignoreDiacritics:n=h.ignoreDiacritics,includeMatches:r=h.includeMatches,minMatchCharLength:i=h.minMatchCharLength,ignoreLocation:a=h.ignoreLocation,findAllMatches:o=h.findAllMatches,location:s=h.location,threshold:c=h.threshold,distance:l=h.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?w(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,`\0`).split(`|`).map(e=>{let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<k;){let e=O[o],n=A(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<k;){let e=O[o],n=A(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?w(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(!l){s=0,a=0,o.length=0,c=!1;break}a+=1,s+=d,D(r.type)&&(c=!0),n&&(E.has(r.type)?o.push(...u):o.push(u))}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=x(o)),e}}return{isMatch:!1,score:1}}}),M(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=W({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new T(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=x(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}}),Y.use=function(...e){e.forEach(e=>M(e))};var X=Y;exports.default=X;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./C-bW8lKUTFFUVap4.cjs");var n=[208,207,17,224,161,177,26,225],r=async()=>(await Promise.resolve().then(()=>require("./DIbdDzNf_3S2RYZN.cjs"))).OffCryptoEncryption,i={key:`offcrypto`,description:`Office Document Encryption`,detect:async e=>!!(e=>{if(e.byteLength<n.length)return!1;let t=new Uint8Array(e,0,n.length);for(let e=0;e<n.length;e++)if(t[e]!==n[e])return!1;return!0})(e)&&(await r()).detect(e),decode:async(e,t)=>(await r()).decode(e,t),encode:async(e,t)=>(await r()).encode(e,t)},a=`Excel`,o={key:a,description:`Excel Workbook`,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,exts:[`xlsx`,`xls`,`xlsm`],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DNy-UU3NKNqQQngF.cjs"))).readXLSX(e,t)},s={key:a,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,description:`Excel Workbook`,exts:[`xlsx`],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./CSNCOmYEOR-iTJ7K.cjs"))).writeXLSX(e,t)},c={name:`@sheetxl/io-xlsx`,version:`0.8.0-beta.1`,description:`XLSX I/O formats for SheetXL`,author:`SheetXL`,async register(e){await e.registerReadFormat(o),await e.registerWriteFormat(s),await e.registerEncryption(i)}},l=e.n({CSVPlugin:()=>w,IOPlugin:()=>T,IOUtils:()=>u,SXLPlugin:()=>x}),u=t.r({MAX_WORKBOOK_NAME_SIZE:()=>96,isReservedFileNameChar:()=>p,isValidFileName:()=>m}),d=/^(con|prn|aux|nul|com\d|lpt\d)$/i,f=/[<>:"/\\|?*\u0000-\u001F]/,p=e=>f.test(e),m=e=>!(!e||e.length>255||f.test(e)||d.test(e)||e===`.`||e===`..`),h=async(e,t)=>(await Promise.resolve().then(()=>require("./B9EI7wviSkHS9ZkH.cjs"))).readSXL(e,t),g=e=>async(t,n)=>(await Promise.resolve().then(()=>require("./Cty5pi0fwToP1GWe.cjs"))).writeSXL(t,{...n,compress:n?.compress??e.compress,whiteSpace:n?.whiteSpace??e.whiteSpace}),_={key:`SheetXL`,description:`SheetXL Workbook`,mimeType:`application/vnd.sheetxl.sheet`,exts:[`sxl`],handler:h},v={key:`JSON`,description:`SheetXL Workbook (JSON)`,mimeType:`application/json`,exts:[`json`],handler:h},y={key:`SheetXL`,mimeType:`application/vnd.sheetxl.sheet`,description:`SheetXL Workbook`,exts:[`sxl`],handler:g({compress:!0,whiteSpace:0})},b={key:`JSON`,mimeType:`application/json`,description:`SheetXL Workbook (JSON)`,exts:[`json`],advanced:!0,handler:g({compress:!1,whiteSpace:2})},x={name:`SXLPlugin`,version:`0.8.0-beta.1`,description:`Import and export SXL format`,author:`SheetXL`,async register(e){await e.registerReadFormat(_),await e.registerReadFormat(v),await e.registerWriteFormat(y),await e.registerWriteFormat(b)}},S={key:`CSV`,description:`Comma Separated Values`,mimeType:`text/csv`,exts:[`csv`],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./B19QM3SGmPKKwD_o.cjs"))).readCSV(e,t)},C={key:`CSV`,mimeType:`text/csv`,description:`Comma Separated Values`,exts:[`csv`],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./ppSJKdLn646BZOzg.cjs"))).writeCSV(e,t)},w={name:`CSVPlugin`,version:`0.8.0-beta.1`,description:`Import and export CSV format`,author:`SheetXL`,async register(e){await e.registerReadFormat(S),await e.registerWriteFormat(C)}},T={name:`@sheetxl/io`,version:`0.8.0-beta.1`,description:`Built-in I/O formats for SheetXL`,author:`SheetXL`,async register(e){await x.register(e),await w.register(e),await c.register(e)}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("./xQ6-wbTw5UzZUM1Y.cjs");var t,n;function r(e,t){if(t<0||t+1>=e.length)throw RangeError(`toUInt16LE: Offset ${t} is out of bounds for buffer length ${e.length}. Needed 2 bytes.`);return e[t]|e[t+1]<<8}function i(e){if(e<=0||e<=16)return 12;if(e<=32)return 11;if(e<=64)return 10;if(e<=128)return 9;if(e<=256)return 8;if(e<=512)return 7;if(e<=1024)return 6;if(e<=2048)return 5;if(e<=4096)return 4;let t=e-1>>4;return t<=0?12:Math.max(4,12-(Math.trunc(Math.log2(t))+1))}function a(e,t,n){let a=n,o=r(t,a);a+=2;let s=0,c=new Uint8Array(4198),l=1+(4095&o),u=a+l;if((32768&o)>>>15==1){for(;a<u&&a<t.length;){let n=t[a];a++;for(let l=0;l<8&&!(a>=u);l++)if(n&1<<l){if(a+1>=t.length)throw Error(`EOF reading copy token word.`);let n=r(t,a),l=i(s),u=65535>>>16-l,d=3+(n&u),f=(65535&n&~u)>>>l,p=f+1,m=s-p;if(m<0)throw Error(`Invalid CopyToken offset ${p} (history size ${s}, tokenOffsetField ${f}, raw token word 0x${n.toString(16)}, header 0x${o.toString(16)})`);if(s+d>=c.length){let e=new Uint8Array(c.length+4198);e.set(c.subarray(0,s)),c=e}for(let t=0;t<d;t++){if(m>=s)throw Error(`CopyToken source read OOB: source_idx=${m}, history_written=${s}`);let t=c[m];e.push(t),c[s]=t,s++,m++}a+=2}else{if(a>=t.length)throw Error(`EOF reading literal byte.`);let n=t[a];e.push(n),c[s]=n,s++,a++}}return{newPos:u}}if(a+l>t.length)throw Error(`Raw chunk data length (${l}) extends beyond input buffer (length ${t.length}, current pos ${a}).`);for(let n=0;n<l;n++)e.push(t[a+n]);return a+=l,{newPos:a}}(function(e){function t(e,t){let n=[],r=0;n.push(0);let a=1,o=t,s=Math.min(t+4096,e.length);for(;o<s;){let c=0,l=r;for(let r=0;r<8&&!(o>=s);r++){let l=-1,u=0,d=o-t;if(d>0){let n=(1<<i(d))-1;for(let r=o-1;r>=t;r--)if(e[r]===e[o]){let t=1;for(;o+t<s&&r+t<o&&e[r+t]===e[o+t]&&t<n+3;)t++;if(t>u&&(l=r,u=t,u>=n+3))break}}if(u>=3){c|=1<<r;let e=o-l-1<<i(d)|u-3;n[a++]=255&e,n[a++]=e>>8&255,o+=u}else n[a++]=e[o++]}n[l]=c,o<s&&(r=a,n.push(0),a++)}return a===1&&n[0]===0?{chunk:null,newAbsoluteStartPos:s}:{chunk:Uint8Array.from(n.slice(0,a)),newAbsoluteStartPos:s}}e.CompressPart=function(e){let n=[];n.push(1);let r=0;for(;r<e.length;){let i=t(e,r),a=i.chunk;if(a&&a.length>0){let e=a.length-1&4095;e|=45056,n.push(255&e),n.push(e>>8&255);for(let e=0;e<a.length;e++)n.push(a[e])}r=i.newAbsoluteStartPos}return Uint8Array.from(n)},e.DecompressPart=function(e,t=0){if(!e||e.length===0)return new Uint8Array;if(t>=e.length||e[t]!==1)return console.error(`DecompressPart failed: Invalid signature byte 0x${e[t]?.toString(16)} at pos ${t} or invalid startPos.`),null;let n=[],r=t+1;for(;r<e.length-1&&!(r+1>=e.length);)try{r=a(n,e,r).newPos}catch(e){return console.error(`Error during DecompressChunk at input offset ${r}:`,e.message),null}return Uint8Array.from(n)}})(t||={}),function(n){let r={1250:`windows-1250`,1251:`windows-1251`,1252:`windows-1252`,1253:`windows-1253`,1254:`windows-1254`,1255:`windows-1255`,1256:`windows-1256`,1257:`windows-1257`,1258:`windows-1258`,874:`windows-874`,932:`shift_jis`,936:`gbk`,949:`euc-kr`,950:`big5`,65001:`utf-8`},i=(e,t,n)=>{let r=``;for(let i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r};n.extract=n=>{let a;try{a=e.t.read(n)}catch{return null}let o=a.readStream(`dir`);if(!o)return null;let s=t.DecompressPart(o);if(!s)return null;let c,l=new DataView(s.buffer,s.byteOffset,s.byteLength),u=1252,d=[],f=0;for(;f+6<=s.length;){let e=l.getUint16(f,!0),t=l.getUint32(f+2,!0),n=f+6;switch(e){case 3:u=l.getUint16(n,!0);break;case 25:c={name:i(s,n,t)},d.push(c);break;case 26:c&&(c.stream=i(s,n,t));break;case 49:c&&(c.offset=l.getUint32(n,!0))}if(e===16)break;f=n+(e===9?6:t)}let p=(e=>{let t=r[e]??`windows-1252`;try{return new TextDecoder(t)}catch{return new TextDecoder(`windows-1252`)}})(u),m=[];for(let e of d){let n=e.stream??e.name,r=a.readStream(n);if(!r||e.offset===void 0)continue;let i=t.DecompressPart(r,e.offset);i&&m.push({name:e.name,code:p.decode(i)})}return{codePage:u,modules:m}},n.stripAttributes=e=>{let t=e.split(/\r\n|\r|\n/),n=0;for(;n<t.length&&/^Attribute\s/.test(t[n]);)n++;return t.slice(n).join(`
|
|
2
|
-
`)}}(n||={}),Object.defineProperty(exports,"VBAProject",{enumerable:!0,get:function(){return n}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={ASC:{s:`Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).`,p:{text:{d:`is a text or a reference to a cell containing text.`}},h:`DBCS`},ARRAYTOTEXT:{s:`Returns a text representation of an array.`,p:{array:{d:`the array to represent as text.`},format:{d:`0 for relaxed format, 1 for strict format.`}}},CHAR:{s:`Returns the character specified by the code number from the character set for your computer.`,p:{number:{d:`is a number between 1 and 255 specifying which character you want.`}}},CLEAN:{s:`Removes all nonprintable characters from text.`,p:{text:{d:`is the text you want to clean.`}}},CODE:{s:`Returns the Unicode value of the first character in a text string.`,p:{text:{d:`is the text string whose Unicode value you want.`}}},CONCAT:{s:`Concatenates a list or range of text strings.`,p:{text:{d:`are 1 to 252 text strings or ranges to be joined.`}}},CONCATENATE:{s:`Joins several text strings into one text string.`,c:`Compatibility`,p:{text:{d:`is the first text string or range to be joined.`}}},DETECTLANGUAGE:{s:`Detects the language of a given text.`,p:{text:{d:`is the text to detect the language for.`}},h:`Unimplemented Connectivity`},DBCS:{s:`Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).`,p:{text:{d:`is a text or a reference to a cell containing text.`}},h:`DBCS`},DOLLAR:{s:`Converts a number to text in currency format.`,p:{number:{d:`is the number to convert.`},decimals:{d:`is the number of digits to the right of the decimal point.`}}},EXACT:{s:`Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive.`,p:{text1:{d:`is the first text string.`},text2:{d:`is the second text string.`}}},FIND:{s:`Returns the starting position of one text string within another text string. FIND is case-sensitive.`,p:{findText:{d:`Returns the starting position of one text string within another text string. FIND is case-sensitive.`},withinText:{d:`is the text you want to search.`},startNum:{d:`specifies the character at which to start the search. The first character in withinText is character number 1.`}}},FINDB:{s:`Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text you want to search.`},startNum:{d:`is the position in withinText to start searching.`}},h:`DBCS`},FIXED:{s:`Rounds a number to the specified number of decimals and returns the result as text with or without commas`,p:{number:{d:`is the number you want to round and convert to text.`},decimals:{d:`is the number of digits to the right of the decimal point.`},noCommas:{d:`is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE.`}}},JOIN:{s:`Concatenates elements of an array or range with a delimiter.`,c:`Sheets`,p:{delimiter:{d:`The delimiter to place between values.`},value:{d:`The array or range to join.`}}},LEFT:{s:`Returns the specified number of characters from the start of a text string.`,p:{text:{d:`is the text string from which you want to extract characters.`},numChars:{d:`specifies how many characters you want LEFT to extract.`}}},LEFTB:{s:`Returns the leftmost numBytes characters from text. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},numBytes:{d:`is the number of bytes to extract.`}},h:`DBCS`},LEN:{s:`Returns the number of characters in a text string.`,p:{text:{d:`is the text whose length you want to find. Spaces count as characters.`}}},LENB:{s:`Returns the number of bytes in a text string. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`}}},LOWER:{s:`Converts all letters in a text string to lowercase.`,p:{text:{d:`is the text you want to convert to lowercase. Characters in Text that are not letters are not changed.`}}},MID:{s:`Returns the characters from the middle of a text string, given a starting position and length.`,p:{text:{d:`is the text string from which you want to extract characters.`},startNum:{d:`is the position of the first character you want to extract.`},numChars:{d:`specifies how many characters to return from Text.`}}},MIDB:{s:`Returns characters from the middle of a text string. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},startNum:{d:`is the position of the first character you want to extract.`},numBytes:{d:`is the number of bytes to extract.`}},h:`DBCS`},NUMBERVALUE:{s:`Converts text to number in a locale-independent manner.`,p:{text:{d:`is the text string you want to convert.`},decimalSeparator:{d:`is the character that separates the integer part from the decimal part of the number.`},groupSeparator:{d:`is the character that separates groups of thousands.`}}},PROPER:{s:`Converts the first letter of each word in a text string to uppercase.`,p:{text:{d:`is the text string you want to convert.`}}},REPLACE:{s:`Replaces part of a text string with a different text string.`,p:{oldText:{d:`is the text string to be changed.`},startNum:{d:`is the position of the first character you want to replace.`},numChars:{d:`is the number of characters to replace.`},newText:{d:`is the text string that will replace oldText.`}}},REPLACEB:{s:`Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).`,p:{oldText:{d:`is the text string to be changed.`},startNum:{d:`is the position of the first character you want to replace.`},numBytes:{d:`is the number of bytes to replace.`},newText:{d:`is the text string that will replace oldText.`}},h:`DBCS`},REPT:{s:`Repeats text a given number of times.`,p:{text:{d:`is the text you want to repeat.`},numberTimes:{d:`is the number of times you want to repeat text.`}}},RIGHT:{s:`Returns the specified number of characters from the end of a text string.`,p:{text:{d:`is the text string that contains the characters you want to extract.`},numChars:{d:`specifies how many characters you want to extract.`}}},RIGHTB:{s:`Returns the rightmost numBytes characters from text. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},numBytes:{d:`is the number of bytes to extract.`}}},SEARCH:{s:`Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive).`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text in which you want to search for findText.`},startNum:{d:`is the character number in withinText, counting from the left, at which you want to start searching.`}}},SEARCHB:{s:`Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text in which you want to search for findText.`},startBytes:{d:`is the character number in withinText, counting from the left, at which you want to start searching.`}},h:`DBCS`},SPLIT:{s:`Splits text around a specified delimiter.`,c:`Sheets`,p:{text:{d:`The text to split.`},delimiter:{d:`The character or string to split around.`},splitByEach:{d:`Whether to split around each character in delimiter individually. Default TRUE.`},removeEmptyText:{d:`Whether to remove empty strings from results. Default TRUE.`}}},SUBSTITUTE:{s:`Replaces existing text with new text in a text string.`,p:{text:{d:`is the text or the reference to a cell containing text in which you want to substitute characters.`},oldText:{d:`is the existing text you want to replace. If the case of oldText does not match the case of text, SUBSTITUTE will not replace the text.`},newText:{d:`is the text you want to replace oldText with.`},instanceNum:{d:`specifies which occurrence of oldText you want to replace. If omitted, every instance of oldText is replaced.`}}},T:{s:`Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not.`,p:{value:{d:`is the value to test.`}}},TEXT:{s:`Converts a value to text in a specific number format.`,p:{value:{d:`is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.`},formatText:{d:`is a text string that defines the number format to use.`}}},TEXTAFTER:{s:`Returns text that's after delimiting characters.`,p:{text:{d:`The text you want to search for the delimiter.`},delimiter:{d:`The character or string to use as a delimiter.`},instanceNum:{d:`The desired occurrence of delimiter. The default is 1. A negative number searches from the end.`},matchMode:{d:`Searches the text for a delimiter match. By default, a case-sensitive match is done.`},matchEnd:{d:`Whether to match the delimiter against the end of text. By default, they're not matched.`},ifNotFound:{d:`Returned if no match is found. By default, #N/A is returned.`}}},TEXTBEFORE:{s:`Returns text that's before delimiting characters.`,p:{text:{d:`The text you want to search for the delimiter.`},delimiter:{d:`The character or string to use as a delimiter.`},instanceNum:{d:`The desired occurrence of delimiter. The default is 1. A negative number searches from the end.`},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)."},matchEnd:{d:`Whether to match the delimiter against the end of text. By default, they're not matched.`},ifNotFound:{d:`Returned if no match is found. By default, #N/A is returned.`}}},TEXTJOIN:{s:`Concatenates a list or range of text strings using a delimiter.`,p:{delimiter:{d:`Character or string to insert between each text item.`},ignoreEmpty:{d:`if TRUE(default), ignores empty cells.`},text:{d:`are 1 to 252 text strings or ranges to be joined.`}}},TEXTSPLIT:{s:`Splits text into rows or columns using delimiters.`,p:{text:{d:`The text to split.`},colDelimiter:{d:`The column delimiter(s) - can be string or array of strings.`},rowDelimiter:{d:`The row delimiter(s), null/undefined means no row splitting.`},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)."},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)."},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)."}}},TRANSLATE:{s:`Translate a text string from one language to another using the Microsoft Translator service.`,p:{text:{d:`The text to translate.`},sourceLanguage:{d:`Specifiy the source language your text is currently in. Expressed as a two-letter language code.`},targetLanguage:{d:`Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code.`}},h:`Unsupported Connectivity`},TRIM:{s:`Removes all spaces from text except for single spaces between words.`,p:{text:{d:`The text from which you want to remove extra spaces.`}}},UNICHAR:{s:`Returns the Unicode character referenced by the given numeric value.`,p:{number:{d:`is the Unicode number representing a character.`}}},UNICODE:{s:`Returns the number (code point) corresponding to the first character of the text.`,p:{text:{d:`is the character that you want the Unicode value of.`}}},UPPER:{s:`Converts a text string to all uppercase letters.`,p:{text:{d:`is the text you want converted to uppercase, a reference or a text string.`}}},VALUE:{s:`Converts a text string that represents a number to a number.`,p:{text:{d:`is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert.`}}},VALUETOTEXT:{s:`Returns a text representation of a value.`,p:{value:{d:`the value to represent as text.`},format:{d:`the format of the text.`}}}};
|