@sheetxl/studio-vanilla 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{C-YXuaIn5H1e3gGL.cjs → -aNm3r-RpjcRRCbw.cjs} +2 -2
- package/browser/cjs/6e91IXsvk9_k3W5c.cjs +6 -0
- package/browser/cjs/{TJOJ_VEsTmCJ4d0P.cjs → BLHbDre9R0bvyb9G.cjs} +2 -2
- package/browser/cjs/BN0MiwKQ8NjKXgue.cjs +7 -0
- package/browser/cjs/BNtn_2pcq6Dd-2HL.cjs +11 -0
- package/browser/cjs/{-mcHZst9U0zNDZao.cjs → BW_fZwvTtMLqteuJ.cjs} +1 -1
- package/browser/cjs/{Dh5RBi3PW-5ty2QU.cjs → Bg9KIoDuqtkhIYfN.cjs} +1 -1
- package/browser/cjs/{D4a_UoEEluqny9gi.cjs → BiiW2FlRZHxGIWso.cjs} +1 -1
- package/browser/cjs/{pPJG7KbyLkcVi77H.cjs → Biyqj-Wu75uxLHv1.cjs} +2 -2
- package/browser/cjs/BwocMiKAPb8s__1Z.cjs +6 -0
- package/browser/cjs/{CSZ-Bfo-TZpVumqr.cjs → CdWBtYv7LuuDLPL2.cjs} +1 -1
- package/browser/cjs/CuY7mAREmYhHuYWx.cjs +6 -0
- package/browser/cjs/CvESC6HiL0-peppq.cjs +12 -0
- package/browser/cjs/{VXCGmehGJvuKNhXg.cjs → Cxt39d6l0pu9k1vT.cjs} +8 -8
- package/browser/cjs/{DbSTC90BuNxq2k-j.cjs → D7NgrO__M-IUmM8o.cjs} +1 -1
- package/browser/cjs/{DnkioRlJqXrbcW-8.cjs → DCWZ2ZkLp-Horeca.cjs} +1 -1
- package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +301 -0
- package/browser/cjs/{Bhq8u8Q04XpLmF4K.cjs → DIawrhwQ7E_1l99b.cjs} +6 -6
- package/browser/cjs/{BoBKeal3_qovATWu.cjs → DKit140jXAUUSf-_.cjs} +2 -2
- package/browser/cjs/DKsZXMMHWKP9IZ4E.cjs +12 -0
- package/browser/cjs/DeAt9vyyaeB2vbxQ.cjs +6 -0
- package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +6 -0
- package/browser/cjs/Ya4f5p9go_UndgNy.cjs +6 -0
- package/browser/cjs/{BnYTCcol8RjTTC3U.cjs → hSI9QVPgIxqt3pXc.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/qjPE6k7aYlu-R90s.cjs +6 -0
- package/browser/cjs/{WKvz7zs0yI8-TRzJ.cjs → yvA5FY7oe6FILMqB.cjs} +1 -1
- package/{cdn/assets/DAC77jdtNbZopLX5.js → browser/esm/BLsIMzjofsOnRFrU.mjs} +16 -16
- package/{cdn/assets/DQQK1YdQWQGsESk_.js → browser/esm/BTQ-TGJnw7w1Y0CX.mjs} +14 -14
- package/browser/esm/{BNixyL5UPlHciWwi.mjs → BdLAPrmXIfjGFhhA.mjs} +152 -152
- package/browser/esm/BsDYj6xix3mlXry2.mjs +46 -0
- package/browser/esm/Btk74VwCVJ1T5LQD.mjs +46 -0
- package/browser/esm/{DhFd9KX61TdmTNyk.mjs → C60KakDbde-A4anI.mjs} +1 -1
- package/browser/esm/{1Esqj-uAqAeHBGzU.mjs → CAm14rTtmPL5-rvQ.mjs} +193 -192
- package/browser/esm/{CZ9K3g_56s3hfJO0.mjs → CLTP12OHGQ2k4_Kt.mjs} +21 -20
- package/browser/esm/{BXkh5kfYj7Zx_PAe.mjs → CPWh2H15145LP-d5.mjs} +1 -1
- package/browser/esm/CYXzmWJtZn5OJVBF.mjs +24861 -0
- package/{cdn/assets/BQFdL0Ou_nLqI7lR.js → browser/esm/ChMaIhqaEhF3SLLt.mjs} +6 -6
- package/browser/esm/{nT3k8GnD4H3I293i.mjs → CntwHkPpskE88Ixu.mjs} +11 -10
- package/{cdn/assets/C1opHAkl00_vHPMO.js → browser/esm/CsVV_QnEl77BQM3V.mjs} +1 -1
- package/{cdn/assets/iHc25sW_jPEvAQNG.js → browser/esm/CvFAAktSd9TQK1h4.mjs} +1 -1
- package/browser/esm/{DwLRqrlPfv8xcbxB.mjs → D0-tgawYa4KXYT2c.mjs} +2 -2
- package/browser/esm/{B3iFtnvwZZ0izvkj.mjs → D244UwY3qPC_LNc5.mjs} +2 -2
- package/{cdn/assets/B1bRlKApOQZbRHvx.js → browser/esm/DCuLWmzd9eLWgI03.mjs} +1 -1
- package/{cdn/assets/Dwd9xRP6sCbvd7-2.js → browser/esm/DDD5zfwNNPKuc_zZ.mjs} +1 -1
- package/browser/esm/{BZD8sqVzxMPTV1eH.mjs → DFa_tXqv1VN1OZdv.mjs} +75 -74
- package/{cdn/assets/Cqq1J11IdNmbXlgF.js → browser/esm/DJxioSY-hxyM7dmk.mjs} +24 -23
- package/{cdn/assets/Dkcj5uYhkoaa5JJt.js → browser/esm/DdrICyX8Ead15N32.mjs} +7 -7
- package/{cdn/assets/vw_ELbpa8MGzVBfc.js → browser/esm/Di2tNceI3NodSsgU.mjs} +10 -10
- package/browser/esm/{B7RdrgkvZilWOBgD.mjs → Did46-x6ZVwk_-r-.mjs} +1 -1
- package/browser/esm/Q1yWEkJBu4cVEF33.mjs +1467 -0
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/CtW_m0lUeW_X_FHB.js → browser/esm/mq5uPzTIc1x8unBP.mjs} +1 -1
- package/browser/esm/wziCLl5xvHu6Guu_.mjs +22 -0
- package/cdn/assets/B41q92oKD_VR31Dd.js +46 -0
- package/cdn/assets/{DJ3siDIdJVpw0GCs.js → BOl7blN8JotSzCHJ.js} +2 -2
- package/{browser/esm/CaLAEGMKeQ3INVEV.mjs → cdn/assets/Bs-psXrTRw1jFety.js} +14 -14
- package/cdn/assets/{3ijH6Pl-l2q9T5Ky.js → BzptX9H_YCM2l0DE.js} +11 -10
- package/cdn/assets/{DhFd9KX61TdmTNyk.js → C60KakDbde-A4anI.js} +1 -1
- package/{browser/esm/Bz98C5-blFN81GJ-.mjs → cdn/assets/C8omEbSXHWI_wNjp.js} +10 -10
- package/{browser/esm/C7cRxJLNfGjCT_Hk.mjs → cdn/assets/CEXK9SXjFf1dGHZe.js} +16 -16
- package/cdn/assets/{BXkh5kfYj7Zx_PAe.js → CPWh2H15145LP-d5.js} +1 -1
- package/cdn/assets/C_E1C68wCcRpC6XN.js +46 -0
- package/cdn/assets/{D5Ns-uBNTj4-Jo0p.js → ClFGbVy7cnhMW-dO.js} +2 -2
- package/cdn/assets/{C4Vp4GoCEGQgWaGc.js → CoCIP7n4THmzOggq.js} +75 -74
- package/{browser/esm/C1opHAkl00_vHPMO.mjs → cdn/assets/CsVV_QnEl77BQM3V.js} +1 -1
- package/{browser/esm/iHc25sW_jPEvAQNG.mjs → cdn/assets/CvFAAktSd9TQK1h4.js} +1 -1
- package/{browser/esm/CdJVpNbmXP_fHybW.mjs → cdn/assets/Cz33L9W3cdQckAL5.js} +24 -23
- package/{browser/esm/DTHujOSrUxuBuwud.mjs → cdn/assets/DBgbBl_3O65WhfWN.js} +6 -6
- package/{browser/esm/B1bRlKApOQZbRHvx.mjs → cdn/assets/DCuLWmzd9eLWgI03.js} +1 -1
- package/{browser/esm/Dwd9xRP6sCbvd7-2.mjs → cdn/assets/DDD5zfwNNPKuc_zZ.js} +1 -1
- package/cdn/assets/DLYF-18qErpwF9Q-.js +1467 -0
- package/cdn/assets/{Dk8MDG7PNGIWw80U.js → DXMyzCcyP7039z13.js} +238 -238
- package/{browser/esm/FXy016gXiiQkH7aF.mjs → cdn/assets/DdrICyX8Ead15N32.js} +7 -7
- package/cdn/assets/{B7RdrgkvZilWOBgD.js → Did46-x6ZVwk_-r-.js} +1 -1
- package/cdn/assets/{ukDxhSJqMPzLXoCP.js → Dj3GhNedlKE9TeTn.js} +193 -192
- package/cdn/assets/F-RqJeKWiW4i5344.js +24708 -0
- package/cdn/assets/{DirkLhQ9-HVY0eDv.js → NHbXgEQMftGzY01r.js} +21 -20
- package/cdn/assets/lM5it-aJgI7DLNH9.js +22 -0
- package/{browser/esm/CtW_m0lUeW_X_FHB.mjs → cdn/assets/mq5uPzTIc1x8unBP.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -2
- package/browser/cjs/-q2o2lS8jxJdArvq.cjs +0 -6
- package/browser/cjs/-wP4OG5GpQTxGLJN.cjs +0 -6
- package/browser/cjs/2TmE8J3tbgenWyNa.cjs +0 -6
- package/browser/cjs/3ghCxtNVxZjrbziE.cjs +0 -6
- package/browser/cjs/6AlZR3dVayTg7C5E.cjs +0 -452
- package/browser/cjs/B0BcYYAX9Qq_i5Iv.cjs +0 -6
- package/browser/cjs/B237Hj6a3Klw9rQn.cjs +0 -12
- package/browser/cjs/B24aLncmXYgEQNjl.cjs +0 -6
- package/browser/cjs/B9C-V-MR_epPI-2J.cjs +0 -6
- package/browser/cjs/BASowCefqJFspuu-.cjs +0 -6
- package/browser/cjs/BeDnbSWoeqV6GajE.cjs +0 -6
- package/browser/cjs/BucBlzmuZS_nYU9N.cjs +0 -6
- package/browser/cjs/C662YNYNcFb-AwnS.cjs +0 -6
- package/browser/cjs/CGg3vZ0YENmM73uu.cjs +0 -6
- package/browser/cjs/CJ9WKDMLDxv2vmlL.cjs +0 -6
- package/browser/cjs/CcxjUuuq3eq1io9D.cjs +0 -6
- package/browser/cjs/Ch4kNO1QwQ4Dqczw.cjs +0 -124
- package/browser/cjs/CrXR8mOrQVdukohR.cjs +0 -6
- package/browser/cjs/CuLinKNAohDMFqJU.cjs +0 -6
- package/browser/cjs/D0Ruzl2vdZGdUhjE.cjs +0 -12
- package/browser/cjs/D4CfqUrC04nbs39G.cjs +0 -6
- package/browser/cjs/D6cHa8Tv5I8L_uAO.cjs +0 -6
- package/browser/cjs/D7MyL7xgt0wGGz3I.cjs +0 -13
- package/browser/cjs/D7U5Wmdc51Op-pty.cjs +0 -6
- package/browser/cjs/D9SYWsd_viMxXbL_.cjs +0 -6
- package/browser/cjs/DMIPzZRAbLsma6rR.cjs +0 -7
- package/browser/cjs/DPTxGnV0pA87nrhG.cjs +0 -32
- package/browser/cjs/DTtUhkXmo3x2L2GG.cjs +0 -6
- package/browser/cjs/DgBFcVOVhZuytQ4k.cjs +0 -6
- package/browser/cjs/DoCfDJUgwatpHG4J.cjs +0 -1501
- package/browser/cjs/Dwc5vGQ4nkaSmift.cjs +0 -6
- package/browser/cjs/GbU6d05bhcxQrAUD.cjs +0 -15
- package/browser/cjs/OW7aZPHGxXjRF38A.cjs +0 -6
- package/browser/cjs/WQBNSYPbQzvO23r-.cjs +0 -6
- package/browser/cjs/XF920uRM7LSmFp49.cjs +0 -6
- package/browser/cjs/XazDEHRGho7wJTUR.cjs +0 -6
- package/browser/cjs/Zjw2XvR7-Zfykt20.cjs +0 -6
- package/browser/cjs/eM5uLWq0QtvNN4O-.cjs +0 -6
- package/browser/cjs/gjPOOFOH_THG1O-L.cjs +0 -6
- package/browser/cjs/hhZA8Q_VAVRnX3Rz.cjs +0 -7
- package/browser/cjs/qjCnEqCfcXzLIady.cjs +0 -6
- package/browser/cjs/s238D5kFNyDNYzIV.cjs +0 -6
- package/browser/cjs/t-6Fa6b5-CXTHDjn.cjs +0 -6
- package/browser/cjs/zvHV2c0_QPS3v2Wt.cjs +0 -11
- package/browser/esm/B-v14ikVOXpmpHCI.mjs +0 -5560
- package/browser/esm/B1M7fpFXcO34FZ5C.mjs +0 -29
- package/browser/esm/B6nZCfPr7UmxzAi6.mjs +0 -48671
- package/browser/esm/B7k3pb4haBsw-Yvr.mjs +0 -10
- package/browser/esm/B8ajmWm1J-ZsmBzK.mjs +0 -10
- package/browser/esm/BGvKR9TNj2ORlcKm.mjs +0 -10
- package/browser/esm/Bc8y371ooCwvBkRs.mjs +0 -10
- package/browser/esm/BezHCUZawkIGzzUm.mjs +0 -422
- package/browser/esm/BnxMjyy6JPTUe9Lg.mjs +0 -10
- package/browser/esm/BskzQvqHyjuVccIH.mjs +0 -22
- package/browser/esm/BzS_V6RkpVpk_d1w.mjs +0 -472
- package/browser/esm/CM--Vw5PcrLIXc8O.mjs +0 -12
- package/browser/esm/CflOcniWVa_VR5Wy.mjs +0 -10
- package/browser/esm/Cn9w-KgbsxAKNj6s.mjs +0 -10
- package/browser/esm/D6KdwQgZEBMy0260.mjs +0 -10
- package/browser/esm/DAOw8vm-XsJ_n7BK.mjs +0 -10
- package/browser/esm/DIKvxkHBBvYo2rnC.mjs +0 -10
- package/browser/esm/DNVkA-vwqtIw6aKf.mjs +0 -1575
- package/browser/esm/DTS0EgQuwHdS5aQN.mjs +0 -10
- package/browser/esm/DaeiyDhcdRvg5nGs.mjs +0 -1466
- package/browser/esm/DeSyxK8Ibb-tIa67.mjs +0 -10
- package/browser/esm/DgPz063GFvbhOHHK.mjs +0 -10
- package/browser/esm/Di8gWiOWhfFzcOuw.mjs +0 -21
- package/browser/esm/Dlg7LT4wsJCPSTCT.mjs +0 -46
- package/browser/esm/DqDxWoCftkWurpDk.mjs +0 -10
- package/browser/esm/DupExqAEenu5ZS6G.mjs +0 -820
- package/browser/esm/Dy1zdTKMeT50nXcy.mjs +0 -10
- package/browser/esm/Dz_O3du2SrhYK47v.mjs +0 -10
- package/browser/esm/IbCi65rCiiLS_OGe.mjs +0 -46
- package/browser/esm/R2Li5a5IPMuoQEGD.mjs +0 -10
- package/browser/esm/SWzqhkO1HABv0bfG.mjs +0 -10
- package/browser/esm/VDflSVY_vwi7ZcHQ.mjs +0 -3922
- package/browser/esm/dAJOajC7rsn3_hWk.mjs +0 -10
- package/browser/esm/fvsQWBiDZg7zRYOa.mjs +0 -10
- package/browser/esm/o8Z04Tjc17JBUDsL.mjs +0 -10
- package/browser/esm/qbGHKDeXrxvghjMt.mjs +0 -24
- package/browser/esm/uk5NsqjbkRuKv1vU.mjs +0 -10
- package/cdn/assets/B2P82Dvadjo7-hRY.js +0 -1466
- package/cdn/assets/B7k3pb4haBsw-Yvr.js +0 -10
- package/cdn/assets/B8ajmWm1J-ZsmBzK.js +0 -10
- package/cdn/assets/BFDOApZozGNnJdxs.js +0 -46
- package/cdn/assets/BGvKR9TNj2ORlcKm.js +0 -10
- package/cdn/assets/BJgFwyqDjKdTH0xW.js +0 -422
- package/cdn/assets/BKxjmGpW0pe8KUzm.js +0 -472
- package/cdn/assets/Bc8y371ooCwvBkRs.js +0 -10
- package/cdn/assets/BnxMjyy6JPTUe9Lg.js +0 -10
- package/cdn/assets/CM--Vw5PcrLIXc8O.js +0 -12
- package/cdn/assets/COS-oUtP1lQi0Hd8.js +0 -22
- package/cdn/assets/CSxbcCsSh3AdRzkk.js +0 -3922
- package/cdn/assets/CflOcniWVa_VR5Wy.js +0 -10
- package/cdn/assets/Cn9w-KgbsxAKNj6s.js +0 -10
- package/cdn/assets/Cqyz2pkIcU2pAivO.js +0 -5560
- package/cdn/assets/CuYtiG4SP9OK6dJP.js +0 -1575
- package/cdn/assets/D6KdwQgZEBMy0260.js +0 -10
- package/cdn/assets/DAOw8vm-XsJ_n7BK.js +0 -10
- package/cdn/assets/DCwhACFXcpYD60H9.js +0 -820
- package/cdn/assets/DIKvxkHBBvYo2rnC.js +0 -10
- package/cdn/assets/DOLBqVto8cJdYLWp.js +0 -46
- package/cdn/assets/DTS0EgQuwHdS5aQN.js +0 -10
- package/cdn/assets/DeSyxK8Ibb-tIa67.js +0 -10
- package/cdn/assets/Dew12-owBXPNmL1S.js +0 -29
- package/cdn/assets/DgPz063GFvbhOHHK.js +0 -10
- package/cdn/assets/Di8gWiOWhfFzcOuw.js +0 -21
- package/cdn/assets/DqDxWoCftkWurpDk.js +0 -10
- package/cdn/assets/Dy1zdTKMeT50nXcy.js +0 -10
- package/cdn/assets/Dz_O3du2SrhYK47v.js +0 -10
- package/cdn/assets/G9bfOnISYlZUeW4U.js +0 -48518
- package/cdn/assets/R2Li5a5IPMuoQEGD.js +0 -10
- package/cdn/assets/SWzqhkO1HABv0bfG.js +0 -10
- package/cdn/assets/dAJOajC7rsn3_hWk.js +0 -10
- package/cdn/assets/fvsQWBiDZg7zRYOa.js +0 -10
- package/cdn/assets/o8Z04Tjc17JBUDsL.js +0 -10
- package/cdn/assets/qbGHKDeXrxvghjMt.js +0 -24
- package/cdn/assets/uk5NsqjbkRuKv1vU.js +0 -10
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/const u=require("react"),s=require("react/jsx-runtime"),Yu=require("react-dom/client"),$=require("@sheetxl/sdk"),yo=require("react-dom");function Ju(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Z=Ju(u),HC=Ju(s),am=Ju(Yu),WC=Ju(yo),kc={black:"#000",white:"#fff"},UC="#e57373",qC="#ef5350",KC="#f44336",lm="#d32f2f",GC="#c62828",ZC="#f3e5f5",XC="#ce93d8",YC="#ba68c8",JC="#ab47bc",QC="#9c27b0",ek="#7b1fa2",tk="#e3f2fd",nk="#90caf9",sm="#42a5f5",ok="#1976d2",rk="#1565c0",ik="#4fc3f7",ak="#29b6f6",lk="#03a9f4",cm="#0288d1",sk="#01579b",ck="#81c784",dk="#66bb6a",uk="#4caf50",pk="#388e3c",hk="#2e7d32",fk="#1b5e20",mk="#ffb74d",gk="#ffa726",yk="#ff9800",xk="#f57c00",bk="#e65100",vk={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ma(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const i1="$$material";function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ou.apply(null,arguments)}var wk=function(){function e(n){var o=this;this._insertTag=function(r){var i;i=o.tags.length===0?o.insertionPoint?o.insertionPoint.nextSibling:o.prepend?o.container.firstChild:o.before:o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(r,i),o.tags.push(r)},this.isSpeedy=n.speedy===void 0||n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(i){var a=document.createElement("style");return a.setAttribute("data-emotion",i.key),i.nonce!==void 0&&a.setAttribute("nonce",i.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(i){if(i.sheet)return i.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===i)return document.styleSheets[a]}(o);try{r.insertRule(n,r.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Sr="-ms-",dm="-moz-",Xn="-webkit-",uy="comm",Kh="rule",Gh="decl",py="@keyframes",Sk=Math.abs,Qu=String.fromCharCode,Ck=Object.assign;function hy(e){return e.trim()}function Yn(e,t,n){return e.replace(t,n)}function p5(e,t){return e.indexOf(t)}function gr(e,t){return 0|e.charCodeAt(t)}function Ec(e,t,n){return e.slice(t,n)}function oa(e){return e.length}function Zh(e){return e.length}function z1(e,t){return t.push(e),e}var e2=1,Is=1,fy=0,Ur=0,er=0,Zs="";function t2(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:e2,column:Is,length:a,return:""}}function m0(e,t){return Ck(t2("",null,null,"",null,null,0),e,{length:-e.length},t)}function kk(){return er=Ur>0?gr(Zs,--Ur):0,Is--,er===10&&(Is=1,e2--),er}function si(){return er=Ur<fy?gr(Zs,Ur++):0,Is++,er===10&&(Is=1,e2++),er}function ca(){return gr(Zs,Ur)}function Pd(){return Ur}function a1(e,t){return Ec(Zs,e,t)}function Mc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function my(e){return e2=Is=1,fy=oa(Zs=e),Ur=0,[]}function gy(e){return Zs="",e}function Od(e){return hy(a1(Ur-1,h5(e===91?e+2:e===40?e+1:e)))}function Ek(e){for(;(er=ca())&&er<33;)si();return Mc(e)>2||Mc(er)>3?"":" "}function Mk(e,t){for(;--t&&si()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return a1(e,Pd()+(t<6&&ca()==32&&si()==32))}function h5(e){for(;si();)switch(er){case e:return Ur;case 34:case 39:e!==34&&e!==39&&h5(er);break;case 40:e===41&&h5(e);break;case 92:si()}return Ur}function Tk(e,t){for(;si()&&e+er!==57&&(e+er!==84||ca()!==47););return"/*"+a1(t,Ur-1)+"*"+Qu(e===47?e:si())}function _k(e){for(;!Mc(ca());)si();return a1(e,Ur)}function jk(e){return gy(Dd("",null,null,null,[""],e=my(e),0,[0],e))}function Dd(e,t,n,o,r,i,a,l,c){for(var d=0,p=0,h=a,f=0,g=0,m=0,y=1,x=1,v=1,b=0,w="",E=r,S=i,R=o,_=w;x;)switch(m=b,b=si()){case 40:if(m!=108&&gr(_,h-1)==58){p5(_+=Yn(Od(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Od(b);break;case 9:case 10:case 13:case 32:_+=Ek(m);break;case 92:_+=Mk(Pd()-1,7);continue;case 47:switch(ca()){case 42:case 47:z1(Rk(Tk(si(),Pd()),t,n),c);break;default:_+="/"}break;case 123*y:l[d++]=oa(_)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+p:v==-1&&(_=Yn(_,/\f/g,"")),g>0&&oa(_)-h&&z1(g>32?pm(_+";",o,n,h-1):pm(Yn(_," ","")+";",o,n,h-2),c);break;case 59:_+=";";default:if(z1(R=um(_,t,n,d,p,r,l,w,E=[],S=[],h),i),b===123)if(p===0)Dd(_,t,R,R,E,i,h,l,S);else switch(f===99&&gr(_,3)===110?100:f){case 100:case 108:case 109:case 115:Dd(e,R,R,o&&z1(um(e,R,R,0,0,r,l,w,r,E=[],h),S),r,S,h,l,o?E:S);break;default:Dd(_,R,R,R,[""],S,0,l,S)}}d=p=g=0,y=v=1,w=_="",h=a;break;case 58:h=1+oa(_),g=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&kk()==125)continue}switch(_+=Qu(b),b*y){case 38:v=p>0?1:(_+="\f",-1);break;case 44:l[d++]=(oa(_)-1)*v,v=1;break;case 64:ca()===45&&(_+=Od(si())),f=ca(),p=h=oa(w=_+=_k(Pd())),b++;break;case 45:m===45&&oa(_)==2&&(y=0)}}return i}function um(e,t,n,o,r,i,a,l,c,d,p){for(var h=r-1,f=r===0?i:[""],g=Zh(f),m=0,y=0,x=0;m<o;++m)for(var v=0,b=Ec(e,h+1,h=Sk(y=a[m])),w=e;v<g;++v)(w=hy(y>0?f[v]+" "+b:Yn(b,/&\f/g,f[v])))&&(c[x++]=w);return t2(e,t,n,r===0?Kh:l,c,d,p)}function Rk(e,t,n){return t2(e,t,n,uy,Qu(er),Ec(e,2,-2),0)}function pm(e,t,n,o){return t2(e,t,n,Gh,Ec(e,0,o),Ec(e,o+1,-1),o)}function vs(e,t){for(var n="",o=Zh(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Ik(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Gh:return e.return=e.return||e.value;case uy:return"";case py:return e.return=e.value+"{"+vs(e.children,o)+"}";case Kh:e.value=e.props.join(",")}return oa(n=vs(e.children,o))?e.return=e.value+"{"+n+"}":""}function yy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Pk=function(e,t,n){for(var o=0,r=0;o=r,r=ca(),o===38&&r===12&&(t[n]=1),!Mc(r);)si();return a1(e,Ur)},Ok=function(e,t){return gy(function(n,o){var r=-1,i=44;do switch(Mc(i)){case 0:i===38&&ca()===12&&(o[r]=1),n[r]+=Pk(Ur-1,o,r);break;case 2:n[r]+=Od(i);break;case 4:if(i===44){n[++r]=ca()===58?"&\f":"",o[r]=n[r].length;break}default:n[r]+=Qu(i)}while(i=si());return n}(my(e),t))},hm=new WeakMap,Dk=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(!(n=n.parent))return;if((e.props.length!==1||t.charCodeAt(0)===58||hm.get(n))&&!o){hm.set(e,!0);for(var r=[],i=Ok(t,r),a=n.props,l=0,c=0;l<i.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=r[l]?i[l].replace(/&\f/g,a[d]):a[d]+" "+i[l]}}},Lk=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function xy(e,t){switch(function(n,o){return 45^gr(n,0)?(((o<<2^gr(n,0))<<2^gr(n,1))<<2^gr(n,2))<<2^gr(n,3):0}(e,t)){case 5103:return Xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+dm+e+Sr+e+e;case 6828:case 4268:return Xn+e+Sr+e+e;case 6165:return Xn+e+Sr+"flex-"+e+e;case 5187:return Xn+e+Yn(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Sr+"flex-$1$2")+e;case 5443:return Xn+e+Sr+"flex-item-"+Yn(e,/flex-|-self/,"")+e;case 4675:return Xn+e+Sr+"flex-line-pack"+Yn(e,/align-content|flex-|-self/,"")+e;case 5548:return Xn+e+Sr+Yn(e,"shrink","negative")+e;case 5292:return Xn+e+Sr+Yn(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+Yn(e,"-grow","")+Xn+e+Sr+Yn(e,"grow","positive")+e;case 4554:return Xn+Yn(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return Yn(Yn(Yn(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return Yn(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return Yn(Yn(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4095:case 3583:case 4068:case 2532:return Yn(e,/(.+)-inline(.+)/,Xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oa(e)-1-t>6)switch(gr(e,t+1)){case 109:if(gr(e,t+4)!==45)break;case 102:return Yn(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+dm+(gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~p5(e,"stretch")?xy(Yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gr(e,t+1)!==115)break;case 6444:switch(gr(e,oa(e)-3-(~p5(e,"!important")&&10))){case 107:return Yn(e,":",":"+Xn)+e;case 101:return Yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xn+(gr(e,14)===45?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Sr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return Xn+e+Sr+Yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+Sr+Yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+Sr+Yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xn+e+Sr+e+e}return e}var fm,mm,gm,ym,Ak=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Gh:e.return=xy(e.value,e.length);break;case py:return vs([m0(e,{value:Yn(e.value,"@","@"+Xn)})],o);case Kh:if(e.length)return function(r,i){return r.map(i).join("")}(e.props,function(r){switch(function(i,a){return(i=a.exec(i))?i[0]:i}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vs([m0(e,{props:[Yn(r,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return vs([m0(e,{props:[Yn(r,/:(plac\w+)/,":"+Xn+"input-$1")]}),m0(e,{props:[Yn(r,/:(plac\w+)/,":-moz-$1")]}),m0(e,{props:[Yn(r,/:(plac\w+)/,Sr+"input-$1")]})],o)}return""})}}],zk=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){g.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o,r,i=e.stylisPlugins||Ak,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)a[m[y]]=!0;l.push(g)});var c,d,p=[Ik,(d=function(g){c.insert(g)},function(g){g.root||(g=g.return)&&d(g)})],h=function(g){var m=Zh(g);return function(y,x,v,b){for(var w="",E=0;E<m;E++)w+=g[E](y,x,v,b)||"";return w}}([Dk,Lk].concat(i,p));r=function(g,m,y,x){c=y,function(v){vs(jk(v),h)}(g?g+"{"+m.styles+"}":m.styles),x&&(f.inserted[m.name]=!0)};var f={key:t,sheet:new wk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return f.sheet.hydrate(l),f},xm={exports:{}},eo={};function Fk(){return mm||(mm=1,xm.exports=function(){if(fm)return eo;fm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case t:switch(S=S.type){case c:case d:case o:case i:case r:case h:return S;default:switch(S=S&&S.$$typeof){case l:case p:case m:case g:case a:return S;default:return R}}case n:return R}}}function E(S){return w(S)===d}return eo.AsyncMode=c,eo.ConcurrentMode=d,eo.ContextConsumer=l,eo.ContextProvider=a,eo.Element=t,eo.ForwardRef=p,eo.Fragment=o,eo.Lazy=m,eo.Memo=g,eo.Portal=n,eo.Profiler=i,eo.StrictMode=r,eo.Suspense=h,eo.isAsyncMode=function(S){return E(S)||w(S)===c},eo.isConcurrentMode=E,eo.isContextConsumer=function(S){return w(S)===l},eo.isContextProvider=function(S){return w(S)===a},eo.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},eo.isForwardRef=function(S){return w(S)===p},eo.isFragment=function(S){return w(S)===o},eo.isLazy=function(S){return w(S)===m},eo.isMemo=function(S){return w(S)===g},eo.isPortal=function(S){return w(S)===n},eo.isProfiler=function(S){return w(S)===i},eo.isStrictMode=function(S){return w(S)===r},eo.isSuspense=function(S){return w(S)===h},eo.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===o||S===d||S===i||S===r||S===h||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===g||S.$$typeof===a||S.$$typeof===l||S.$$typeof===p||S.$$typeof===x||S.$$typeof===v||S.$$typeof===b||S.$$typeof===y)},eo.typeOf=w,eo}()),xm.exports}(function(){if(ym)return gm;ym=1;var e=Fk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};function i(f){return e.isMemo(f)?o:r[f.$$typeof]||t}r[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r[e.Memo]=o;var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;gm=function f(g,m,y){if(typeof m!="string"){if(h){var x=p(m);x&&x!==h&&f(g,x,y)}var v=l(m);c&&(v=v.concat(c(m)));for(var b=i(g),w=i(m),E=0;E<v.length;++E){var S=v[E];if(!(n[S]||y&&y[S]||w&&w[S]||b&&b[S])){var R=d(m,S);try{a(g,S,R)}catch{}}}}return g}})();function by(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Xh=function(e,t,n){var o=e.key+"-"+t.name;n===!1&&e.registered[o]===void 0&&(e.registered[o]=t.styles)},Yh=function(e,t,n){Xh(e,t,n);var o=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}},Bk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nk=/[A-Z]|^ms/g,$k=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vy=function(e){return e.charCodeAt(1)===45},bm=function(e){return e!=null&&typeof e!="boolean"},q2=yy(function(e){return vy(e)?e:e.replace(Nk,"-$&").toLowerCase()}),vm=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($k,function(n,o,r){return ra={name:o,styles:r,next:ra},o})}return Bk[e]===1||vy(e)||typeof t!="number"||t===0?t:t+"px"};function lc(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(r.anim===1)return ra={name:r.name,styles:r.styles,next:ra},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ra={name:a.name,styles:a.styles,next:ra},a=a.next;return i.styles+";"}return function(h,f,g){var m="";if(Array.isArray(g))for(var y=0;y<g.length;y++)m+=lc(h,f,g[y])+";";else for(var x in g){var v=g[x];if(typeof v!="object"){var b=v;f!=null&&f[b]!==void 0?m+=x+"{"+f[b]+"}":bm(b)&&(m+=q2(x)+":"+vm(x,b)+";")}else if(!Array.isArray(v)||typeof v[0]!="string"||f!=null&&f[v[0]]!==void 0){var w=lc(h,f,v);switch(x){case"animation":case"animationName":m+=q2(x)+":"+w+";";break;default:m+=x+"{"+w+"}"}}else for(var E=0;E<v.length;E++)bm(v[E])&&(m+=q2(x)+":"+vm(x,v[E])+";")}return m}(e,t,n);case"function":if(e!==void 0){var l=ra,c=n(e);return ra=l,lc(e,t,c)}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}var ra,wm=/label:\s*([^\s;{]+)\s*(;|$)/g;function l1(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";ra=void 0;var i=e[0];i==null||i.raw===void 0?(o=!1,r+=lc(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=lc(n,t,e[a]),o&&(r+=i[a]);wm.lastIndex=0;for(var l,c="";(l=wm.exec(r))!==null;)c+="-"+l[1];var d=function(p){for(var h,f=0,g=0,m=p.length;m>=4;++g,m-=4)h=1540483477*(65535&(h=255&p.charCodeAt(g)|(255&p.charCodeAt(++g))<<8|(255&p.charCodeAt(++g))<<16|(255&p.charCodeAt(++g))<<24))+(59797*(h>>>16)<<16),f=1540483477*(65535&(h^=h>>>24))+(59797*(h>>>16)<<16)^1540483477*(65535&f)+(59797*(f>>>16)<<16);switch(m){case 3:f^=(255&p.charCodeAt(g+2))<<16;case 2:f^=(255&p.charCodeAt(g+1))<<8;case 1:f=1540483477*(65535&(f^=255&p.charCodeAt(g)))+(59797*(f>>>16)<<16)}return(((f=1540483477*(65535&(f^=f>>>13))+(59797*(f>>>16)<<16))^f>>>15)>>>0).toString(36)}(r)+c;return{name:d,styles:r,next:ra}}var wy=!!Z.useInsertionEffect&&Z.useInsertionEffect,Sy=wy||function(e){return e()},Sm=wy||Z.useLayoutEffect,Cy=Z.createContext(typeof HTMLElement<"u"?zk({key:"css"}):null);Cy.Provider;var K2,Cm,Jh=function(e){return u.forwardRef(function(t,n){var o=u.useContext(Cy);return e(t,o,n)})},Xs=Z.createContext({}),f5={}.hasOwnProperty,m5="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vk=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Xh(t,n,o),Sy(function(){return Yh(t,n,o)}),null},Hk=Jh(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[m5],i=[o],a="";typeof e.className=="string"?a=by(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=l1(i,void 0,Z.useContext(Xs));a+=t.key+"-"+l.name;var c={};for(var d in e)f5.call(e,d)&&d!=="css"&&d!==m5&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),Z.createElement(Z.Fragment,null,Z.createElement(Vk,{cache:t,serialized:l,isStringTag:typeof r=="string"}),Z.createElement(r,c))}),km=function(e,t){var n=arguments;if(t==null||!f5.call(t,"css"))return Z.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Hk,r[1]=function(a,l){var c={};for(var d in l)f5.call(l,d)&&(c[d]=l[d]);return c[m5]=a,c}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return Z.createElement.apply(null,r)};K2=km||(km={}),Cm||(Cm=K2.JSX||(K2.JSX={}));var Wk=Jh(function(e,t){var n=l1([e.styles],void 0,Z.useContext(Xs)),o=Z.useRef();return Sm(function(){var r=t.key+"-global",i=new t.sheet.constructor({key:r,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+r+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",r),i.hydrate([l])),o.current=[i,a],function(){i.flush()}},[t]),Sm(function(){var r=o.current,i=r[0];if(r[1])r[1]=!1;else{if(n.next!==void 0&&Yh(t,n.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function Qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l1(t)}function s1(){var e=Qh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Uk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qk=yy(function(e){return Uk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Kk=function(e){return e!=="theme"},Em=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?qk:Kk},Mm=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(i){return e.__emotion_forwardProp(i)&&r(i)}:r}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},Gk=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Xh(t,n,o),Sy(function(){return Yh(t,n,o)}),null},g5=function e(t,n){var o,r,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;n!==void 0&&(o=n.label,r=n.target);var l=Mm(t,n,i),c=l||Em(a),d=!c("as");return function(){var p=arguments,h=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var f=p[0];h.push(f[0]);for(var g=p.length,m=1;m<g;m++)h.push(p[m],f[m])}var y=Jh(function(x,v,b){var w=d&&x.as||a,E="",S=[],R=x;if(x.theme==null){for(var _ in R={},x)R[_]=x[_];R.theme=Z.useContext(Xs)}typeof x.className=="string"?E=by(v.registered,S,x.className):x.className!=null&&(E=x.className+" ");var A=l1(h.concat(S),v.registered,R);E+=v.key+"-"+A.name,r!==void 0&&(E+=" "+r);var T=d&&l===void 0?Em(w):c,j={};for(var C in x)d&&C==="as"||T(C)&&(j[C]=x[C]);return j.className=E,b&&(j.ref=b),Z.createElement(Z.Fragment,null,Z.createElement(Gk,{cache:v,serialized:A,isStringTag:typeof w=="string"}),Z.createElement(w,j))});return y.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=h,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+r}}),y.withComponent=function(x,v){return e(x,ou({},n,v,{shouldForwardProp:Mm(y,v,!0)})).apply(void 0,h)},y}}.bind(null);function ky(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>{return t((i=r)==null||Object.keys(i).length===0?n:r);var i}:t;return s.jsx(Wk,{styles:o})}function n2(e,t){return g5(e,t)}function e3(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g5[e]=g5(e)});const Tm=[];function Tc(e){return Tm[0]=e,l1(Tm)}var _m,jm,Rm={exports:{}},io={};function Zk(){if(_m)return io;_m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case f:return y;default:switch(y=y&&y.$$typeof){case a:case l:case h:case p:case i:return y;default:return x}}case t:return x}}}return io.ContextConsumer=i,io.ContextProvider=a,io.Element=e,io.ForwardRef=l,io.Fragment=n,io.Lazy=h,io.Memo=p,io.Portal=t,io.Profiler=r,io.StrictMode=o,io.Suspense=c,io.SuspenseList=d,io.isContextConsumer=function(y){return m(y)===i},io.isContextProvider=function(y){return m(y)===a},io.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},io.isForwardRef=function(y){return m(y)===l},io.isFragment=function(y){return m(y)===n},io.isLazy=function(y){return m(y)===h},io.isMemo=function(y){return m(y)===p},io.isPortal=function(y){return m(y)===t},io.isProfiler=function(y){return m(y)===r},io.isStrictMode=function(y){return m(y)===o},io.isSuspense=function(y){return m(y)===c},io.isSuspenseList=function(y){return m(y)===d},io.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},io.typeOf=m,io}function Xk(){return jm||(jm=1,Rm.exports=Zk()),Rm.exports}var Ey=Xk();function ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function My(e){if(Z.isValidElement(e)||Ey.isValidElementType(e)||!ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=My(e[n])}),t}function cr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return ia(e)&&ia(t)&&Object.keys(t).forEach(r=>{Z.isValidElement(t[r])||Ey.isValidElementType(t[r])?o[r]=t[r]:ia(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ia(e[r])?o[r]=cr(e[r],t[r],n):n.clone?o[r]=ia(t[r])?My(t[r]):t[r]:o[r]=t[r]}),o}function Yk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(p=>{const h=Object.keys(p).map(f=>({key:f,val:p[f]}))||[];return h.sort((f,g)=>f.val-g.val),h.reduce((f,g)=>({...f,[g.key]:g.val}),{})})(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function d(p,h){const f=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(f!==-1&&typeof t[a[f]]=="number"?t[a[f]]:h)-o/100}${n})`}return{keys:a,values:i,up:l,down:c,between:d,only:function(p){return a.indexOf(p)+1<a.length?d(p,a[a.indexOf(p)+1]):l(p)},not:function(p){const h=a.indexOf(p);return h===0?l(a[1]):h===a.length-1?c(a[h]):d(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")},unit:n,...r}}const Jk={borderRadius:4};function sc(e,t){return t?cr(e,t,{clone:!1}):e}const o2={xs:0,sm:600,md:900,lg:1200,xl:1536},Im={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o2[e]}px)`},Qk={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:o2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ta(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||Im;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||Im;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,h){const f=h.match(/^@([^/]+)?\/?(.+)?$/);if(!f)return null;const[,g,m]=f,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:Qk,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||o2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function xt(e){if(typeof e!="string")throw new Error(Ma(7));return e.charAt(0).toUpperCase()+e.slice(1)}function r2(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function ru(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:r2(e,n)||o,t&&(r=t(r,o,e)),r}function Ko(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=r2(a.theme,o)||{};return Ta(a,l,d=>{let p=ru(c,r,d);return d===p&&typeof d=="string"&&(p=ru(c,r,`${t}${d==="default"?"":xt(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const eE={m:"margin",p:"padding"},tE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nE=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Pm[e])return[e];e=Pm[e]}const[t,n]=e.split(""),o=eE[t],r=tE[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Ty=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_y=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function c1(e,t,n,o){const r=r2(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function t3(e){return c1(e,"spacing",8)}function d1(e,t){return typeof t=="string"||t==null?t:e(t)}function oE(e,t,n,o){if(!t.includes(n))return null;const r=function(i,a){return l=>i.reduce((c,d)=>(c[d]=d1(a,l),c),{})}(nE(n),o);return Ta(e,e[n],r)}function jy(e,t){const n=t3(e.theme);return Object.keys(e).map(o=>oE(e,t,o,n)).reduce(sc,{})}function Ro(e){return jy(e,Ty)}function Io(e){return jy(e,_y)}function i2(e=8,t=t3({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(r=>{const i=t(r);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function a2(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?sc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function xi(e){return typeof e!="number"?e:`${e}px solid`}function Ri(e,t){return Ko({prop:e,themeKey:"borders",transform:t})}Ro.propTypes={},Ro.filterProps=Ty,Io.propTypes={},Io.filterProps=_y;const rE=Ri("border",xi),iE=Ri("borderTop",xi),aE=Ri("borderRight",xi),lE=Ri("borderBottom",xi),sE=Ri("borderLeft",xi),cE=Ri("borderColor"),dE=Ri("borderTopColor"),uE=Ri("borderRightColor"),pE=Ri("borderBottomColor"),hE=Ri("borderLeftColor"),fE=Ri("outline",xi),mE=Ri("outlineColor"),Ld=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=c1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:d1(t,o)});return Ta(e,e.borderRadius,n)}return null};Ld.propTypes={},Ld.filterProps=["borderRadius"],a2(rE,iE,aE,lE,sE,cE,dE,uE,pE,hE,Ld,fE,mE);const iu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=c1(e.theme,"spacing",8),n=o=>({gap:d1(t,o)});return Ta(e,e.gap,n)}return null};iu.propTypes={},iu.filterProps=["gap"];const au=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=c1(e.theme,"spacing",8),n=o=>({columnGap:d1(t,o)});return Ta(e,e.columnGap,n)}return null};au.propTypes={},au.filterProps=["columnGap"];const lu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=c1(e.theme,"spacing",8),n=o=>({rowGap:d1(t,o)});return Ta(e,e.rowGap,n)}return null};lu.propTypes={},lu.filterProps=["rowGap"];function ws(e,t){return t==="grey"?t:e}a2(iu,au,lu,Ko({prop:"gridColumn"}),Ko({prop:"gridRow"}),Ko({prop:"gridAutoFlow"}),Ko({prop:"gridAutoColumns"}),Ko({prop:"gridAutoRows"}),Ko({prop:"gridTemplateColumns"}),Ko({prop:"gridTemplateRows"}),Ko({prop:"gridTemplateAreas"}),Ko({prop:"gridArea"}));function Qr(e){return e<=1&&e!==0?100*e+"%":e}a2(Ko({prop:"color",themeKey:"palette",transform:ws}),Ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ws}),Ko({prop:"backgroundColor",themeKey:"palette",transform:ws}));const gE=Ko({prop:"width",transform:Qr}),n3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||o2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Qr(n)}};return Ta(e,e.maxWidth,t)}return null};n3.filterProps=["maxWidth"];const yE=Ko({prop:"minWidth",transform:Qr}),xE=Ko({prop:"height",transform:Qr}),bE=Ko({prop:"maxHeight",transform:Qr}),vE=Ko({prop:"minHeight",transform:Qr});Ko({prop:"size",cssProperty:"width",transform:Qr}),Ko({prop:"size",cssProperty:"height",transform:Qr});a2(gE,n3,yE,xE,bE,vE,Ko({prop:"boxSizing"}));const u1={border:{themeKey:"borders",transform:xi},borderTop:{themeKey:"borders",transform:xi},borderRight:{themeKey:"borders",transform:xi},borderBottom:{themeKey:"borders",transform:xi},borderLeft:{themeKey:"borders",transform:xi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ld},color:{themeKey:"palette",transform:ws},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ws},backgroundColor:{themeKey:"palette",transform:ws},p:{style:Io},pt:{style:Io},pr:{style:Io},pb:{style:Io},pl:{style:Io},px:{style:Io},py:{style:Io},padding:{style:Io},paddingTop:{style:Io},paddingRight:{style:Io},paddingBottom:{style:Io},paddingLeft:{style:Io},paddingX:{style:Io},paddingY:{style:Io},paddingInline:{style:Io},paddingInlineStart:{style:Io},paddingInlineEnd:{style:Io},paddingBlock:{style:Io},paddingBlockStart:{style:Io},paddingBlockEnd:{style:Io},m:{style:Ro},mt:{style:Ro},mr:{style:Ro},mb:{style:Ro},ml:{style:Ro},mx:{style:Ro},my:{style:Ro},margin:{style:Ro},marginTop:{style:Ro},marginRight:{style:Ro},marginBottom:{style:Ro},marginLeft:{style:Ro},marginX:{style:Ro},marginY:{style:Ro},marginInline:{style:Ro},marginInlineStart:{style:Ro},marginInlineEnd:{style:Ro},marginBlock:{style:Ro},marginBlockStart:{style:Ro},marginBlockEnd:{style:Ro},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:iu},rowGap:{style:lu},columnGap:{style:au},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qr},maxWidth:{style:n3},minWidth:{transform:Qr},height:{transform:Qr},maxHeight:{transform:Qr},minHeight:{transform:Qr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Rl=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const h=r2(o,c)||{};return p?p(i):Ta(i,n,f=>{let g=ru(h,d,f);return f===g&&typeof f=="string"&&(g=ru(h,d,`${t}${f==="default"?"":xt(f)}`,f)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??u1;function a(l){let c=l;if(typeof l=="function")c=l(r);else if(typeof l!="object")return l;if(!c)return null;const d=function(f={}){return f.keys?.reduce((m,y)=>(m[f.up(y)]={},m),{})||{}}(r.breakpoints),p=Object.keys(d);let h=d;return Object.keys(c).forEach(f=>{const g=function(m,y){return typeof m=="function"?m(y):m}(c[f],r);if(g!=null)if(typeof g=="object")if(i[f])h=sc(h,e(f,g,r,i));else{const m=Ta({theme:r},g,y=>({[f]:y}));(function(...y){const x=y.reduce((b,w)=>b.concat(Object.keys(w)),[]),v=new Set(x);return y.every(b=>v.size===Object.keys(b).length)})(m,g)?h[f]=t({sx:g,theme:r}):h=sc(h,m)}else h=sc(h,e(f,g,r,i))}),function(f,g){if(!f.containerQueries)return g;const m=Object.keys(g).filter(y=>y.startsWith("@container")).sort((y,x)=>{const v=/min-width:\s*([0-9.]+)/;return+(y.match(v)?.[1]||0)-+(x.match(v)?.[1]||0)});return m.length?m.reduce((y,x)=>{const v=g[x];return delete y[x],y[x]=v,y},{...g}):g}(r,function(f,g){return f.reduce((m,y)=>{const x=m[y];return(!x||Object.keys(x).length===0)&&delete m[y],m},g)}(p,h))}return Array.isArray(o)?o.map(a):a(o)}}();function wE(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function o3(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e;let l=cr({breakpoints:Yk(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:i2(r),shape:{...Jk,...i}},a);return l=function(c){const d=(g,m)=>g.replace("@media",m?`@container ${m}`:"@container");function p(g,m){g.up=(...y)=>d(c.breakpoints.up(...y),m),g.down=(...y)=>d(c.breakpoints.down(...y),m),g.between=(...y)=>d(c.breakpoints.between(...y),m),g.only=(...y)=>d(c.breakpoints.only(...y),m),g.not=(...y)=>{const x=d(c.breakpoints.not(...y),m);return x.includes("not all and")?x.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):x}}const h={},f=g=>(p(h,g),h);return p(f),{...c,containerQueries:f}}(l),l.applyStyles=wE,l=t.reduce((c,d)=>cr(c,d),l),l.unstable_sxConfig={...u1,...a?.unstable_sxConfig},l.unstable_sx=function(c){return Rl({sx:c,theme:this})},l}function r3(e=null){const t=Z.useContext(Xs);return t&&(n=t,Object.keys(n).length!==0)?t:e;var n}Rl.filterProps=["sx"];const SE=o3();function p1(e=SE){return r3(e)}function CE({styles:e,themeId:t,defaultTheme:n={}}){const o=p1(n),r=typeof e=="function"?e(t&&o[t]||o):e;return s.jsx(ky,{styles:r})}function Ry(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=(a=>{const l={systemProps:{},otherProps:{}},c=a?.theme?.unstable_sxConfig??u1;return Object.keys(a).forEach(d=>{c[d]?l.systemProps[d]=a[d]:l.otherProps[d]=a[d]}),l})(n);let i;return i=Array.isArray(t)?[o,...t]:typeof t=="function"?(...a)=>{const l=t(...a);return ia(l)?{...o,...l}:o}:{...o,...t},{...r,sx:i}}const Om=e=>e,Iy=(()=>{let e=Om;return{configure(t){e=t},generate:t=>e(t),reset(){e=Om}}})();function Py(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Py(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Dt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Py(e))&&(o&&(o+=" "),o+=t);return o}const kE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function In(e,t,n="Mui"){const o=kE[t];return o?`${n}-${o}`:`${Iy.generate(e)}-${t}`}function En(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=In(e,r,n)}),o}function Oy(e){const{variants:t,...n}=e,o={variants:t,style:Tc(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Tc(r.style))}),o}const EE=o3();function G2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ME(e){return e?(t,n)=>n[e]:null}function Ad(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ad(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return Dy(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Dy(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function TE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _c(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(a)if(i){n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;n[r][c]=_c(i[c],a[c])}}else n[r]=a;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}const qr=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function _E(e,t,n,o,r){const[i,a]=Z.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return qr(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const Ly={...Z}.useSyncExternalStore;function jE(e,t,n,o,r){const i=Z.useCallback(()=>t,[t]),a=Z.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[l,c]=Z.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,n,e]);return Ly(c,l,a)}function Ay(e={}){const{themeId:t}=e;return function(n,o={}){let r=r3();r&&t&&(r=r[t]||r);const i=typeof window<"u"&&window.matchMedia!==void 0,{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:d=!1}=function(h){const{theme:f,name:g,props:m}=h;return f&&f.components&&f.components[g]&&f.components[g].defaultProps?_c(f.components[g].defaultProps,m):m}({name:"MuiUseMediaQuery",props:o,theme:r});let p=typeof n=="function"?n(r):n;return p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
7
|
+
`)),(Ly!==void 0?jE:_E)(p,a,l,c,d)}}function is(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function i3(e,t=0,n=1){return is(e,t,n)}function Qa(e){if(e.type)return e;if(e.charAt(0)==="#")return Qa(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ma(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ma(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}Ay();const H0=(e,t)=>{try{return(n=>{const o=Qa(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function l2(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function zy(e){e=Qa(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),l2({type:l,values:c})}function y5(e){let t=(e=Qa(e)).type==="hsl"||e.type==="hsla"?Qa(zy(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ht(e,t){return e=Qa(e),t=i3(t),e.type!=="rgb"&&e.type!=="hsl"||(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,l2(e)}function F1(e,t,n){try{return ht(e,t)}catch{return e}}function Il(e,t){if(e=Qa(e),t=i3(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l2(e)}function co(e,t,n){try{return Il(e,t)}catch{return e}}function Pl(e,t){if(e=Qa(e),t=i3(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l2(e)}function uo(e,t,n){try{return Pl(e,t)}catch{return e}}function B1(e,t,n){try{return function(o,r=.15){return y5(o)>.5?Il(o,r):Pl(o,r)}(e,t)}catch{return e}}function Dm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function s2(e,t=166){let n;function o(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return o.clear=()=>{clearTimeout(n)},o}function Z2(e,t){return Z.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function ur(e){return e&&e.ownerDocument||document}function Vi(e){return ur(e).defaultView||window}function Lm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Am=0;const zm={...Z}.useId;function h1(e){if(zm!==void 0){const t=zm();return e??t}return function(t){const[n,o]=Z.useState(t),r=t||n;return Z.useEffect(()=>{n==null&&(Am+=1,o(`mui-${Am}`))},[n]),r}(e)}function jc({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=Z.useRef(e!==void 0),[i,a]=Z.useState(t);return[r?e:i,Z.useCallback(l=>{r||a(l)},[])]}function Ar(e){const t=Z.useRef(e);return qr(()=>{t.current=e}),Z.useRef((...n)=>(0,t.current)(...n)).current}function Xo(...e){const t=Z.useRef(void 0),n=Z.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return Z.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Fm={};function Fy(e,t){const n=Z.useRef(Fm);return n.current===Fm&&(n.current=e(t)),n}const RE=[];class c2{static create(){return new c2}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bl(){const e=Fy(c2.create).current;var t;return t=e.disposeEffect,Z.useEffect(t,RE),e}function Ps(e){try{return e.matches(":focus-visible")}catch{}return!1}function By(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const IE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Pn(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}o[r]=a}return o}function Ny(e,t,n){return e===void 0||typeof e=="string"?t:{...t,ownerState:{...t.ownerState,...n}}}function cc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Bm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $y(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const g=Dt(n?.className,i,r?.className,o?.className),m={...n?.style,...r?.style,...o?.style},y={...n,...r,...o};return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=cc({...r,...o}),l=Bm(o),c=Bm(r),d=t(a),p=Dt(d?.className,n?.className,i,r?.className,o?.className),h={...d?.style,...n?.style,...r?.style,...o?.style},f={...d,...n,...c,...l};return p.length>0&&(f.className=p),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:d.ref}}function Vy(e,t,n){return typeof e=="function"?e(t,n):e}function $r(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Vy(n,o),{props:l,internalRef:c}=$y({...i,externalSlotProps:a});return Ny(t,{...l,ref:Xo(c,a?.ref,e.additionalProps?.ref)},o)}function Ys(e){return parseInt(Z.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Hy=Z.createContext(null);function a3(){return Z.useContext(Hy)}const PE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function OE(e){const{children:t,theme:n}=e,o=a3(),r=Z.useMemo(()=>{const i=o===null?{...n}:function(a,l){return typeof l=="function"?l(a):{...a,...l}}(o,n);return i!=null&&(i[PE]=o!==null),i},[n,o]);return s.jsx(Hy.Provider,{value:r,children:t})}const Wy=Z.createContext();function DE({value:e,...t}){return s.jsx(Wy.Provider,{value:e??!0,...t})}const Js=()=>Z.useContext(Wy)??!1,Uy=Z.createContext(void 0);function LE({value:e,children:t}){return s.jsx(Uy.Provider,{value:e,children:t})}function AE({props:e,name:t}){return function(n){const{theme:o,name:r,props:i}=n;if(!o||!o.components||!o.components[r])return i;const a=o.components[r];return a.defaultProps?_c(a.defaultProps,i):a.styleOverrides||a.variants?i:_c(a,i)}({props:e,name:t,theme:{components:Z.useContext(Uy)}})}const Nm={};function $m(e,t,n,o=!1){return Z.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const i=n(r),a=e?{...t,[e]:i}:i;return o?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function qy(e){const{children:t,theme:n,themeId:o}=e,r=r3(Nm),i=a3()||Nm,a=$m(o,r,n),l=$m(o,i,n,!0),c=(o?a[o]:a).direction==="rtl";return s.jsx(OE,{theme:l,children:s.jsx(Xs.Provider,{value:a,children:s.jsx(DE,{value:c,children:s.jsx(LE,{value:o?a[o].components:a.components,children:t})})})})}const Vm={theme:void 0},x5="mode",b5="color-scheme",zE="data-color-scheme";function FE(){}const BE=({key:e,storageWindow:t})=>(t||typeof window>"u"||(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let o;try{o=t.localStorage.getItem(e)}catch{}return o||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return FE;const o=r=>{const i=r.newValue;r.key===e&&n(i)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function X2(){}function Hm(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Wm(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 NE(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:i=x5,colorSchemeStorageKey:a=b5,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=BE,noSsr:d=!1}=e,p=r.join(","),h=r.length>1,f=Z.useMemo(()=>c?.({key:i,storageWindow:l}),[c,i,l]),g=Z.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),m=Z.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,x]=Z.useState(()=>{const A=f?.get(t)||t,T=g?.get(n)||n,j=m?.get(o)||o;return{mode:A,systemMode:Hm(A),lightColorScheme:T,darkColorScheme:j}}),[v,b]=Z.useState(d||!h);Z.useEffect(()=>{b(!0)},[]);const w=function(A){return Wm(A,T=>T==="light"?A.lightColorScheme:T==="dark"?A.darkColorScheme:void 0)}(y),E=Z.useCallback(A=>{x(T=>{if(A===T.mode)return T;const j=A??t;return f?.set(j),{...T,mode:j,systemMode:Hm(j)}})},[f,t]),S=Z.useCallback(A=>{A?typeof A=="string"?A&&!p.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):x(T=>{const j={...T};return Wm(T,C=>{C==="light"&&(g?.set(A),j.lightColorScheme=A),C==="dark"&&(m?.set(A),j.darkColorScheme=A)}),j}):x(T=>{const j={...T},C=A.light===null?n:A.light,k=A.dark===null?o:A.dark;return C&&(p.includes(C)?(j.lightColorScheme=C,g?.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),k&&(p.includes(k)?(j.darkColorScheme=k,m?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),j}):x(T=>(g?.set(n),m?.set(o),{...T,lightColorScheme:n,darkColorScheme:o}))},[p,g,m,n,o]),R=Z.useCallback(A=>{y.mode==="system"&&x(T=>{const j=A?.matches?"dark":"light";return T.systemMode===j?T:{...T,systemMode:j}})},[y.mode]),_=Z.useRef(R);return _.current=R,Z.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const A=(...j)=>_.current(...j),T=window.matchMedia("(prefers-color-scheme: dark)");return T.addListener(A),A(T),()=>{T.removeListener(A)}},[h]),Z.useEffect(()=>{if(h){const A=f?.subscribe(C=>{C&&!["light","dark","system"].includes(C)||E(C||t)})||X2,T=g?.subscribe(C=>{C&&!p.match(C)||S({light:C})})||X2,j=m?.subscribe(C=>{C&&!p.match(C)||S({dark:C})})||X2;return()=>{A(),T(),j()}}},[S,E,p,t,l,h,f,g,m]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?w:void 0,setMode:E,setColorScheme:S}}function l3(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o!="string"||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${o}`:`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Um=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function Y2(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,h)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const f=`--${n?`${n}-`:""}${d.join("-")}`,g=((m,y)=>typeof y=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>m.includes(x))||m[m.length-1].toLowerCase().includes("opacity")?y:`${y}px`:y)(d,p);Object.assign(r,{[f]:g}),Um(i,d,`var(${f})`,h),Um(a,d,`var(${f}, ${g})`,h)}},c=d=>d[0]==="vars",function d(p,h=[],f=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...h,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...h,g],Array.isArray(m)?[...f,g]:f):l([...h,g],m,f))})}(e),{css:r,vars:i,varsWithDefaults:a}}function Ky(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:kc.white,default:kc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const $E=Ky();function Gy(){return{text:{primary:kc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:kc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qm=Gy();function Km(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Pl(e.main,r):t==="dark"&&(e.dark=Il(e.main,i)))}function s3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:nk,light:tk,dark:sm}:{main:ok,light:sm,dark:rk}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:XC,light:ZC,dark:JC}:{main:QC,light:YC,dark:ek}}(t),l=e.error||function(m="light"){return m==="dark"?{main:KC,light:UC,dark:lm}:{main:lm,light:qC,dark:GC}}(t),c=e.info||function(m="light"){return m==="dark"?{main:ak,light:ik,dark:cm}:{main:cm,light:lk,dark:sk}}(t),d=e.success||function(m="light"){return m==="dark"?{main:dk,light:ck,dark:pk}:{main:hk,light:uk,dark:fk}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:gk,light:mk,dark:xk}:{main:"#ed6c02",light:yk,dark:bk}}(t);function h(m){return function(x,v){const b=y5(x),w=y5(v);return(Math.max(b,w)+.05)/(Math.min(b,w)+.05)}(m,qm.text.primary)>=n?qm.text.primary:$E.text.primary}const f=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(Ma(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Ma(12,y?` (${y})`:"",JSON.stringify(m.main)));return Km(m,"light",v,o),Km(m,"dark",b,o),m.contrastText||(m.contrastText=h(m.main)),m};let g;return t==="light"?g=Ky():t==="dark"&&(g=Gy()),cr({common:{...kc},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:d,name:"success"}),grey:vk,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:o,...g},r)}function VE(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const Gm={textTransform:"uppercase"},Zm='"Roboto", "Helvetica", "Arial", sans-serif';function HE(e,t){const{fontFamily:n=Zm,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,f=o/14,g=p||(x=>x/c*f+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===Zm?{letterSpacing:(S=w/v,Math.round(1e5*S)/1e5+"em")}:{},...E,...d};var S},y={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Gm),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Gm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return cr({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},h,{clone:!1})}function So(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const WE=["none",So(0,2,1,-1,0,1,1,0,0,1,3,0),So(0,3,1,-2,0,2,2,0,0,1,5,0),So(0,3,3,-2,0,3,4,0,0,1,8,0),So(0,2,4,-1,0,4,5,0,0,1,10,0),So(0,3,5,-1,0,5,8,0,0,1,14,0),So(0,3,5,-1,0,6,10,0,0,1,18,0),So(0,4,5,-2,0,7,10,1,0,2,16,1),So(0,5,5,-3,0,8,10,1,0,3,14,2),So(0,5,6,-3,0,9,12,1,0,3,16,2),So(0,6,6,-3,0,10,14,1,0,4,18,3),So(0,6,7,-4,0,11,15,1,0,4,20,3),So(0,7,8,-4,0,12,17,2,0,5,22,4),So(0,7,8,-4,0,13,19,2,0,5,24,4),So(0,7,9,-4,0,14,21,2,0,5,26,4),So(0,8,9,-5,0,15,22,2,0,6,28,5),So(0,8,10,-5,0,16,24,2,0,6,30,5),So(0,8,11,-5,0,17,26,2,0,6,32,5),So(0,9,11,-5,0,18,28,2,0,7,34,6),So(0,9,12,-6,0,19,29,2,0,7,36,6),So(0,10,13,-6,0,20,31,3,0,8,38,7),So(0,10,13,-6,0,21,33,3,0,8,40,7),So(0,10,14,-6,0,22,35,3,0,8,42,7),So(0,11,14,-7,0,23,36,3,0,9,44,8),So(0,11,15,-7,0,24,38,3,0,9,46,8)],UE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Zy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xm(e){return`${Math.round(e)}ms`}function qE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function KE(e){const t={...UE,...e.easing},n={...Zy,...e.duration};return{getAutoHeightDuration:qE,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Xm(i)} ${a} ${typeof l=="string"?l:Xm(l)}`).join(",")},...e,easing:t,duration:n}}const GE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ZE(e){return ia(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xy(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!ZE(l)||a.startsWith("unstable_")?delete o[a]:ia(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
8
|
+
|
|
9
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
10
|
+
|
|
11
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
12
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
13
|
+
|
|
14
|
+
export default theme;`}function v5(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ma(20));const p=s3(i),h=o3(e);let f=cr(h,{mixins:(g=h.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:WE.slice(),typography:HE(p,l),transitions:KE(a),zIndex:{...GE}});var g,m;return f=cr(f,d),f=t.reduce((y,x)=>cr(y,x),f),f.unstable_sxConfig={...u1,...d?.unstable_sxConfig},f.unstable_sx=function(y){return Rl({sx:y,theme:this})},f.toRuntimeSource=Xy,f}function w5(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const XE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=w5(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ym(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Jm(e){return e==="dark"?XE:[]}function YE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const JE=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var a;return o};function at(e,t,n){!e[t]&&n&&(e[t]=n)}function W0(e){return typeof e=="string"&&e.startsWith("hsl")?zy(e):e}function fa(e,t){`${t}Channel`in e||(e[`${t}Channel`]=H0(W0(e[t])))}const Gi=e=>{try{return e()}catch{}};function J2(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...h}=l,f=s3(c);return{palette:f,opacity:{...Ym(f.mode),...d},overlays:p||Jm(f.mode),...h}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=v5({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Ym(r),...t?.opacity},overlays:t?.overlays||Jm(r)},a}function QE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=YE,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...d}=e,p=Object.keys(n)[0],h=o||(n.light&&p!=="light"?"light":p),f=((j="mui")=>l3(j))(i),{[h]:g,light:m,dark:y,...x}=n,v={...x};let b=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ma(21,h));const w=J2(v,b,d,h);m&&!v.light&&J2(v,m,void 0,"light"),y&&!v.dark&&J2(v,y,void 0,"dark");let E={defaultColorScheme:h,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:f,colorSchemes:v,font:{...VE(w.typography),...w.font},spacing:(S=d.spacing,typeof S=="number"?`${S}px`:typeof S=="string"||typeof S=="function"||Array.isArray(S)?S:"8px")};var S;Object.keys(E.colorSchemes).forEach(j=>{const C=E.colorSchemes[j].palette,k=O=>{const I=O.split("-"),z=I[1],L=I[2];return f(O,C[z][L])};var P;if(C.mode==="light"&&(at(C.common,"background","#fff"),at(C.common,"onBackground","#000")),C.mode==="dark"&&(at(C.common,"background","#000"),at(C.common,"onBackground","#fff")),P=C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(O=>{P[O]||(P[O]={})}),C.mode==="light"){at(C.Alert,"errorColor",co(C.error.light,.6)),at(C.Alert,"infoColor",co(C.info.light,.6)),at(C.Alert,"successColor",co(C.success.light,.6)),at(C.Alert,"warningColor",co(C.warning.light,.6)),at(C.Alert,"errorFilledBg",k("palette-error-main")),at(C.Alert,"infoFilledBg",k("palette-info-main")),at(C.Alert,"successFilledBg",k("palette-success-main")),at(C.Alert,"warningFilledBg",k("palette-warning-main")),at(C.Alert,"errorFilledColor",Gi(()=>C.getContrastText(C.error.main))),at(C.Alert,"infoFilledColor",Gi(()=>C.getContrastText(C.info.main))),at(C.Alert,"successFilledColor",Gi(()=>C.getContrastText(C.success.main))),at(C.Alert,"warningFilledColor",Gi(()=>C.getContrastText(C.warning.main))),at(C.Alert,"errorStandardBg",uo(C.error.light,.9)),at(C.Alert,"infoStandardBg",uo(C.info.light,.9)),at(C.Alert,"successStandardBg",uo(C.success.light,.9)),at(C.Alert,"warningStandardBg",uo(C.warning.light,.9)),at(C.Alert,"errorIconColor",k("palette-error-main")),at(C.Alert,"infoIconColor",k("palette-info-main")),at(C.Alert,"successIconColor",k("palette-success-main")),at(C.Alert,"warningIconColor",k("palette-warning-main")),at(C.AppBar,"defaultBg",k("palette-grey-100")),at(C.Avatar,"defaultBg",k("palette-grey-400")),at(C.Button,"inheritContainedBg",k("palette-grey-300")),at(C.Button,"inheritContainedHoverBg",k("palette-grey-A100")),at(C.Chip,"defaultBorder",k("palette-grey-400")),at(C.Chip,"defaultAvatarColor",k("palette-grey-700")),at(C.Chip,"defaultIconColor",k("palette-grey-700")),at(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),at(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),at(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),at(C.LinearProgress,"primaryBg",uo(C.primary.main,.62)),at(C.LinearProgress,"secondaryBg",uo(C.secondary.main,.62)),at(C.LinearProgress,"errorBg",uo(C.error.main,.62)),at(C.LinearProgress,"infoBg",uo(C.info.main,.62)),at(C.LinearProgress,"successBg",uo(C.success.main,.62)),at(C.LinearProgress,"warningBg",uo(C.warning.main,.62)),at(C.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),at(C.Slider,"primaryTrack",uo(C.primary.main,.62)),at(C.Slider,"secondaryTrack",uo(C.secondary.main,.62)),at(C.Slider,"errorTrack",uo(C.error.main,.62)),at(C.Slider,"infoTrack",uo(C.info.main,.62)),at(C.Slider,"successTrack",uo(C.success.main,.62)),at(C.Slider,"warningTrack",uo(C.warning.main,.62));const O=B1(C.background.default,.8);at(C.SnackbarContent,"bg",O),at(C.SnackbarContent,"color",Gi(()=>C.getContrastText(O))),at(C.SpeedDialAction,"fabHoverBg",B1(C.background.paper,.15)),at(C.StepConnector,"border",k("palette-grey-400")),at(C.StepContent,"border",k("palette-grey-400")),at(C.Switch,"defaultColor",k("palette-common-white")),at(C.Switch,"defaultDisabledColor",k("palette-grey-100")),at(C.Switch,"primaryDisabledColor",uo(C.primary.main,.62)),at(C.Switch,"secondaryDisabledColor",uo(C.secondary.main,.62)),at(C.Switch,"errorDisabledColor",uo(C.error.main,.62)),at(C.Switch,"infoDisabledColor",uo(C.info.main,.62)),at(C.Switch,"successDisabledColor",uo(C.success.main,.62)),at(C.Switch,"warningDisabledColor",uo(C.warning.main,.62)),at(C.TableCell,"border",uo(F1(C.divider,1),.88)),at(C.Tooltip,"bg",F1(C.grey[700],.92))}if(C.mode==="dark"){at(C.Alert,"errorColor",uo(C.error.light,.6)),at(C.Alert,"infoColor",uo(C.info.light,.6)),at(C.Alert,"successColor",uo(C.success.light,.6)),at(C.Alert,"warningColor",uo(C.warning.light,.6)),at(C.Alert,"errorFilledBg",k("palette-error-dark")),at(C.Alert,"infoFilledBg",k("palette-info-dark")),at(C.Alert,"successFilledBg",k("palette-success-dark")),at(C.Alert,"warningFilledBg",k("palette-warning-dark")),at(C.Alert,"errorFilledColor",Gi(()=>C.getContrastText(C.error.dark))),at(C.Alert,"infoFilledColor",Gi(()=>C.getContrastText(C.info.dark))),at(C.Alert,"successFilledColor",Gi(()=>C.getContrastText(C.success.dark))),at(C.Alert,"warningFilledColor",Gi(()=>C.getContrastText(C.warning.dark))),at(C.Alert,"errorStandardBg",co(C.error.light,.9)),at(C.Alert,"infoStandardBg",co(C.info.light,.9)),at(C.Alert,"successStandardBg",co(C.success.light,.9)),at(C.Alert,"warningStandardBg",co(C.warning.light,.9)),at(C.Alert,"errorIconColor",k("palette-error-main")),at(C.Alert,"infoIconColor",k("palette-info-main")),at(C.Alert,"successIconColor",k("palette-success-main")),at(C.Alert,"warningIconColor",k("palette-warning-main")),at(C.AppBar,"defaultBg",k("palette-grey-900")),at(C.AppBar,"darkBg",k("palette-background-paper")),at(C.AppBar,"darkColor",k("palette-text-primary")),at(C.Avatar,"defaultBg",k("palette-grey-600")),at(C.Button,"inheritContainedBg",k("palette-grey-800")),at(C.Button,"inheritContainedHoverBg",k("palette-grey-700")),at(C.Chip,"defaultBorder",k("palette-grey-700")),at(C.Chip,"defaultAvatarColor",k("palette-grey-300")),at(C.Chip,"defaultIconColor",k("palette-grey-300")),at(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),at(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),at(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),at(C.LinearProgress,"primaryBg",co(C.primary.main,.5)),at(C.LinearProgress,"secondaryBg",co(C.secondary.main,.5)),at(C.LinearProgress,"errorBg",co(C.error.main,.5)),at(C.LinearProgress,"infoBg",co(C.info.main,.5)),at(C.LinearProgress,"successBg",co(C.success.main,.5)),at(C.LinearProgress,"warningBg",co(C.warning.main,.5)),at(C.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),at(C.Slider,"primaryTrack",co(C.primary.main,.5)),at(C.Slider,"secondaryTrack",co(C.secondary.main,.5)),at(C.Slider,"errorTrack",co(C.error.main,.5)),at(C.Slider,"infoTrack",co(C.info.main,.5)),at(C.Slider,"successTrack",co(C.success.main,.5)),at(C.Slider,"warningTrack",co(C.warning.main,.5));const O=B1(C.background.default,.98);at(C.SnackbarContent,"bg",O),at(C.SnackbarContent,"color",Gi(()=>C.getContrastText(O))),at(C.SpeedDialAction,"fabHoverBg",B1(C.background.paper,.15)),at(C.StepConnector,"border",k("palette-grey-600")),at(C.StepContent,"border",k("palette-grey-600")),at(C.Switch,"defaultColor",k("palette-grey-300")),at(C.Switch,"defaultDisabledColor",k("palette-grey-600")),at(C.Switch,"primaryDisabledColor",co(C.primary.main,.55)),at(C.Switch,"secondaryDisabledColor",co(C.secondary.main,.55)),at(C.Switch,"errorDisabledColor",co(C.error.main,.55)),at(C.Switch,"infoDisabledColor",co(C.info.main,.55)),at(C.Switch,"successDisabledColor",co(C.success.main,.55)),at(C.Switch,"warningDisabledColor",co(C.warning.main,.55)),at(C.TableCell,"border",co(F1(C.divider,1),.68)),at(C.Tooltip,"bg",F1(C.grey[700],.92))}fa(C.background,"default"),fa(C.background,"paper"),fa(C.common,"background"),fa(C.common,"onBackground"),fa(C,"divider"),Object.keys(C).forEach(O=>{const I=C[O];O!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&at(C[O],"mainChannel",H0(W0(I.main))),I.light&&at(C[O],"lightChannel",H0(W0(I.light))),I.dark&&at(C[O],"darkChannel",H0(W0(I.dark))),I.contrastText&&at(C[O],"contrastTextChannel",H0(W0(I.contrastText))),O==="text"&&(fa(C[O],"primary"),fa(C[O],"secondary")),O==="action"&&(I.active&&fa(C[O],"active"),I.selected&&fa(C[O],"selected")))})}),E=t.reduce((j,C)=>cr(j,C),E);const R={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:JE(E)},{vars:_,generateThemeVars:A,generateStyleSheets:T}=function(j,C={}){const{getSelector:k=X,disableCssColorScheme:P,colorSchemeSelector:O}=C,{colorSchemes:I={},components:z,defaultColorScheme:L="light",...D}=j,{vars:F,css:B,varsWithDefaults:M}=Y2(D,C);let N=M;const V={},{[L]:U,...J}=I;if(Object.entries(J||{}).forEach(([H,ne])=>{const{vars:oe,css:ge,varsWithDefaults:de}=Y2(ne,C);N=cr(N,de),V[H]={css:ge,vars:oe}}),U){const{css:H,vars:ne,varsWithDefaults:oe}=Y2(U,C);N=cr(N,oe),V[L]={css:H,vars:ne}}function X(H,ne){let oe=O;if(O==="class"&&(oe=".%s"),O==="data"&&(oe="[data-%s]"),O?.startsWith("data-")&&!O.includes("%s")&&(oe=`[${O}="%s"]`),H){if(oe==="media")return j.defaultColorScheme===H?":root":{[`@media (prefers-color-scheme: ${I[H]?.palette?.mode||H})`]:{":root":ne}};if(oe)return j.defaultColorScheme===H?`:root, ${oe.replace("%s",String(H))}`:oe.replace("%s",String(H))}return":root"}return{vars:N,generateThemeVars:()=>{let H={...F};return Object.entries(V).forEach(([,{vars:ne}])=>{H=cr(H,ne)}),H},generateStyleSheets:()=>{const H=[],ne=j.defaultColorScheme||"light";function oe(ye,ve){Object.keys(ve).length&&H.push(typeof ye=="string"?{[ye]:{...ve}}:ye)}oe(k(void 0,{...B}),B);const{[ne]:ge,...de}=V;if(ge){const{css:ye}=ge,ve=I[ne]?.palette?.mode,be=!P&&ve?{colorScheme:ve,...ye}:{...ye};oe(k(ne,{...be}),be)}return Object.entries(de).forEach(([ye,{css:ve}])=>{const be=I[ye]?.palette?.mode,re=!P&&be?{colorScheme:be,...ve}:{...ve};oe(k(ye,{...re}),re)}),H}}}(E,R);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,C])=>{E[j]=C}),E.generateThemeVars=A,E.generateStyleSheets=T,E.generateSpacing=function(){return i2(d.spacing,t3(this))},E.getColorSchemeSelector=function(j){return function(C){return j==="media"?`@media (prefers-color-scheme: ${C})`:j?j.startsWith("data-")&&!j.includes("%s")?`[${j}="${C}"] &`:j==="class"?`.${C} &`:j==="data"?`[data-${C}] &`:`${j.replace("%s",C)} &`:"&"}}(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...u1,...d?.unstable_sxConfig},E.unstable_sx=function(j){return Rl({sx:j,theme:this})},E.toRuntimeSource=Xy,E}function Qm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:s3({...n===!0?{}:n.palette,mode:t})})}function Yy(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return v5(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=v5({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},Qm(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Qm(h,"light",d.light)),h}return n||"light"in d||l!=="light"||(d.light=!0),QE({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const c3=Yy();function Qs(){const e=p1(c3);return e[i1]||e}function d2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xr=e=>d2(e)&&e!=="classes",Et=function(e={}){const{themeId:t,defaultTheme:n=EE,rootShouldForwardProp:o=G2,slotShouldForwardProp:r=G2}=e;function i(a){(function(l,c,d){l.theme=function(p){for(const h in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme})(a,t,n)}return(a,l={})=>{e3(a,E=>E.filter(S=>S!==Rl));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:f=ME(TE(d)),...g}=l,m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let x=G2;d==="Root"||d==="root"?x=o:d?x=r:function(E){return typeof E=="string"&&E.charCodeAt(0)>96}(a)&&(x=void 0);const v=n2(a,{shouldForwardProp:x,label:void 0,...g}),b=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(S){return Ad(S,E)};if(ia(E)){const S=Oy(E);return S.variants?function(R){return Ad(R,S)}:S.style}return E},w=(...E)=>{const S=[],R=E.map(b),_=[];if(S.push(i),c&&f&&_.push(function(j){const C=j.theme,k=C.components?.[c]?.styleOverrides;if(!k)return null;const P={};for(const O in k)P[O]=Ad(j,k[O]);return f(j,P)}),c&&!m&&_.push(function(j){const C=j.theme,k=C?.components?.[c]?.variants;return k?Dy(j,k):null}),y||_.push(Rl),Array.isArray(R[0])){const j=R.shift(),C=new Array(S.length).fill(""),k=new Array(_.length).fill("");let P;P=[...C,...j,...k],P.raw=[...C,...j.raw,...k],S.unshift(P)}const A=[...S,...R,..._],T=v(...A);return a.muiName&&(T.muiName=a.muiName),T};return v.withConfig&&(w.withConfig=v.withConfig),w}}({themeId:i1,defaultTheme:c3,rootShouldForwardProp:Xr});function eM(e){return s.jsx(CE,{...e,defaultTheme:c3,themeId:i1})}function Jy(e){return function(t){return s.jsx(eM,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}const vn=function(e){let t,n;return function(o){let r=t;return r!==void 0&&o.theme===n||(Vm.theme=o.theme,r=Oy(e(Vm)),t=r,n=o.theme),r}};function An(e){return AE(e)}function tM(e){return In("MuiSvgIcon",e)}En("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nM=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${xt(n.color)}`],t[`fontSize${xt(n.fontSize)}`]]}})(vn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Xe=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiSvgIcon"}),{children:o,className:r,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...f}=n,g=Z.isValidElement(o)&&o.type==="svg",m={...n,color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const x=(v=>{const{color:b,fontSize:w,classes:E}=v;return Pn({root:["root",b!=="inherit"&&`color${xt(b)}`,`fontSize${xt(w)}`]},tM,E)})(m);return s.jsxs(nM,{as:a,className:Dt(x.root,r),focusable:"false",color:c,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t,...y,...f,...g&&o.props,ownerState:m,children:[g?o.props.children:o,p?s.jsx("title",{children:p}):null]})});function Gn(e,t){function n(o,r){return s.jsx(Xe,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=Xe.muiName,Z.memo(Z.forwardRef(n))}function Qy(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return r=>{const i=typeof t=="function"?t(r):t,a=typeof e=="function"?e({...r,...i}):e,l=Dt(r?.className,i?.className,a?.className);return{...i,...a,...!!l&&{className:l},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const n=t,o=Dt(n?.className,e?.className);return{...t,...e,...!!o&&{className:o},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ex(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function S5(e,t){return S5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},S5(e,t)}function tx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,S5(e,t)}Xe.muiName="SvgIcon";const e6=!1,su=u.createContext(null);var U0="unmounted",fl="exited",ml="entering",as="entered",C5="exiting",Bi=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var a,l=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?l?(a=fl,i.appearStatus=ml):a=as:a=o.unmountOnExit||o.mountOnEnter?U0:fl,i.state={status:a},i.nextCallback=null,i}tx(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===U0?{status:fl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var r=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ml&&i!==as&&(r=ml):i!==ml&&i!==as||(r=C5)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,a=this.props.timeout;return o=r=i=a,a!=null&&typeof a!="number"&&(o=a.exit,r=a.enter,i=a.appear!==void 0?a.appear:r),{exit:o,enter:r,appear:i}},n.updateStatus=function(o,r){if(o===void 0&&(o=!1),r!==null)if(this.cancelNextCallback(),r===ml){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);i&&function(a){a.scrollTop}(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fl&&this.setState({status:U0})},n.performEnter=function(o){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[yo.findDOMNode(this),a],c=l[0],d=l[1],p=this.getTimeouts(),h=a?p.appear:p.enter;!o&&!i||e6?this.safeSetState({status:as},function(){r.props.onEntered(c)}):(this.props.onEnter(c,d),this.safeSetState({status:ml},function(){r.props.onEntering(c,d),r.onTransitionEnd(h,function(){r.safeSetState({status:as},function(){r.props.onEntered(c,d)})})}))},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:yo.findDOMNode(this);r&&!e6?(this.props.onExit(a),this.safeSetState({status:C5},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:fl},function(){o.props.onExited(a)})})})):this.safeSetState({status:fl},function(){o.props.onExited(a)})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,r){r=this.setNextCallback(r),this.setState(o,r)},n.setNextCallback=function(o){var r=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,r.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(i&&!a){if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===U0)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var a=ex(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(su.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function Xl(){}function k5(e,t){var n=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=function(r){return t&&u.isValidElement(r)?t(r):r}(o)}),n}function vl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function oM(e,t,n){var o=k5(e.children),r=function(i,a){function l(y){return y in a?a[y]:i[y]}i=i||{},a=a||{};var c,d=Object.create(null),p=[];for(var h in i)h in a?p.length&&(d[h]=p,p=[]):p.push(h);var f={};for(var g in a){if(d[g])for(c=0;c<d[g].length;c++){var m=d[g][c];f[d[g][c]]=l(m)}f[g]=l(g)}for(c=0;c<p.length;c++)f[p[c]]=l(p[c]);return f}(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(u.isValidElement(a)){var l=i in t,c=i in o,d=t[i],p=u.isValidElement(d)&&!d.props.in;!c||l&&!p?c||!l||p?c&&l&&u.isValidElement(d)&&(r[i]=u.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:vl(a,"exit",e),enter:vl(a,"enter",e)})):r[i]=u.cloneElement(a,{in:!1}):r[i]=u.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:vl(a,"exit",e),enter:vl(a,"enter",e)})}}),r}Bi.contextType=su,Bi.propTypes={},Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xl,onEntering:Xl,onEntered:Xl,onExit:Xl,onExiting:Xl,onExited:Xl},Bi.UNMOUNTED=U0,Bi.EXITED=fl,Bi.ENTERING=ml,Bi.ENTERED=as,Bi.EXITING=C5;var rM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},E5=function(e){function t(o,r){var i,a=(i=e.call(this,o,r)||this).handleExited.bind(function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}tx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,r){var i,a,l=r.children,c=r.handleExited;return{children:r.firstRender?(i=o,a=c,k5(i.children,function(d){return u.cloneElement(d,{onExited:a.bind(null,d),in:!0,appear:vl(d,"appear",i),enter:vl(d,"enter",i),exit:vl(d,"exit",i)})})):oM(o,l,c),firstRender:!1}},n.handleExited=function(o,r){var i=k5(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(r),this.mounted&&this.setState(function(a){var l=ou({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,r=o.component,i=o.childFactory,a=ex(o,["component","childFactory"]),l=this.state.contextValue,c=rM(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,r===null?u.createElement(su.Provider,{value:l},c):u.createElement(su.Provider,{value:l},u.createElement(r,a,c))},t}(u.Component);E5.propTypes={},E5.defaultProps={component:"div",childFactory:function(e){return e}};const nx=e=>e.scrollTop;function Rc(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function iM(e){return In("MuiPaper",e)}En("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const aM=Et("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Mi=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiPaper"}),o=Qs(),{className:r,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...d}=n,p={...n,component:i,elevation:a,square:l,variant:c},h=(f=>{const{square:g,elevation:m,variant:y,classes:x}=f;return Pn({root:["root",y,!g&&"rounded",y==="elevation"&&`elevation${m}`]},iM,x)})(p);return s.jsx(aM,{as:i,ownerState:p,className:Dt(h.root,r),ref:t,...d,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ht("#fff",w5(a))}, ${ht("#fff",w5(a))})`}},...d.style}})});function no(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...f}=i,g=p[e]||o,m=Vy(h[e],r),{props:{component:y,...x},internalRef:v}=$y({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),b=Xo(v,m?.ref,t.ref),w=e==="root"?y||d:y;return[g,Ny(g,{...e==="root"&&!d&&!p[e]&&a,...e!=="root"&&!p[e]&&a,...x,...w&&!l&&{as:w},...w&&l&&{component:w},ref:b},r)]}class cu{static create(){return new cu}static use(){const t=Fy(cu.create).current,[n,o]=Z.useState(!1);return t.shouldMount=n,t.setShouldMount=o,Z.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let t,n;const o=new Promise((r,i)=>{t=r,n=i});return o.resolve=t,o.reject=n,o}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}const gi=En("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),lM=s1`
|
|
15
|
+
0% {
|
|
16
|
+
transform: scale(0);
|
|
17
|
+
opacity: 0.1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
transform: scale(1);
|
|
22
|
+
opacity: 0.3;
|
|
23
|
+
}
|
|
24
|
+
`,sM=s1`
|
|
25
|
+
0% {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
`,cM=s1`
|
|
33
|
+
0% {
|
|
34
|
+
transform: scale(1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
50% {
|
|
38
|
+
transform: scale(0.92);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
100% {
|
|
42
|
+
transform: scale(1);
|
|
43
|
+
}
|
|
44
|
+
`,dM=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),uM=Et(function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:d}=e,[p,h]=Z.useState(!1),f=Dt(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-a/2+i,left:-a/2+r},m=Dt(n.child,p&&n.childLeaving,o&&n.childPulsate);return l||p||h(!0),Z.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),s.jsx("span",{className:f,style:g,children:s.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
45
|
+
opacity: 0;
|
|
46
|
+
position: absolute;
|
|
47
|
+
|
|
48
|
+
&.${gi.rippleVisible} {
|
|
49
|
+
opacity: 0.3;
|
|
50
|
+
transform: scale(1);
|
|
51
|
+
animation-name: ${lM};
|
|
52
|
+
animation-duration: ${550}ms;
|
|
53
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.${gi.ripplePulsate} {
|
|
57
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& .${gi.child} {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
background-color: currentColor;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .${gi.childLeaving} {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
animation-name: ${sM};
|
|
72
|
+
animation-duration: ${550}ms;
|
|
73
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& .${gi.childPulsate} {
|
|
77
|
+
position: absolute;
|
|
78
|
+
/* @noflip */
|
|
79
|
+
left: 0px;
|
|
80
|
+
top: 0;
|
|
81
|
+
animation-name: ${cM};
|
|
82
|
+
animation-duration: 2500ms;
|
|
83
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
84
|
+
animation-iteration-count: infinite;
|
|
85
|
+
animation-delay: 200ms;
|
|
86
|
+
}
|
|
87
|
+
`,pM=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i,...a}=n,[l,c]=Z.useState([]),d=Z.useRef(0),p=Z.useRef(null);Z.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=Z.useRef(!1),f=bl(),g=Z.useRef(null),m=Z.useRef(null),y=Z.useCallback(w=>{const{pulsate:E,rippleX:S,rippleY:R,rippleSize:_,cb:A}=w;c(T=>[...T,s.jsx(uM,{classes:{ripple:Dt(r.ripple,gi.ripple),rippleVisible:Dt(r.rippleVisible,gi.rippleVisible),ripplePulsate:Dt(r.ripplePulsate,gi.ripplePulsate),child:Dt(r.child,gi.child),childLeaving:Dt(r.childLeaving,gi.childLeaving),childPulsate:Dt(r.childPulsate,gi.childPulsate)},timeout:550,pulsate:E,rippleX:S,rippleY:R,rippleSize:_},d.current)]),d.current+=1,p.current=A},[r]),x=Z.useCallback((w={},E={},S=()=>{})=>{const{pulsate:R=!1,center:_=o||E.pulsate,fakeElement:A=!1}=E;if(w?.type==="mousedown"&&h.current)return void(h.current=!1);w?.type==="touchstart"&&(h.current=!0);const T=A?null:m.current,j=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,k,P;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)C=Math.round(j.width/2),k=Math.round(j.height/2);else{const{clientX:O,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;C=Math.round(O-j.left),k=Math.round(I-j.top)}if(_)P=Math.sqrt((2*j.width**2+j.height**2)/3),P%2==0&&(P+=1);else{const O=2*Math.max(Math.abs((T?T.clientWidth:0)-C),C)+2,I=2*Math.max(Math.abs((T?T.clientHeight:0)-k),k)+2;P=Math.sqrt(O**2+I**2)}w?.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:C,rippleY:k,rippleSize:P,cb:S})},f.start(80,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:C,rippleY:k,rippleSize:P,cb:S})},[o,y,f]),v=Z.useCallback(()=>{x({},{pulsate:!0})},[x]),b=Z.useCallback((w,E)=>{if(f.clear(),w?.type==="touchend"&&g.current)return g.current(),g.current=null,void f.start(0,()=>{b(w,E)});g.current=null,c(S=>S.length>0?S.slice(1):S),p.current=E},[f]);return Z.useImperativeHandle(t,()=>({pulsate:v,start:x,stop:b}),[v,x,b]),s.jsx(dM,{className:Dt(gi.root,r.root,i),ref:m,...a,children:s.jsx(E5,{component:null,exit:!0,children:l})})});function hM(e){return In("MuiButtonBase",e)}const fM=En("MuiButtonBase",["root","disabled","focusVisible"]),mM=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),el=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:E,onKeyUp:S,onMouseDown:R,onMouseLeave:_,onMouseUp:A,onTouchEnd:T,onTouchMove:j,onTouchStart:C,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:O,type:I,...z}=n,L=Z.useRef(null),D=cu.use(),F=Xo(D.ref,O),[B,M]=Z.useState(!1);c&&B&&M(!1),Z.useImperativeHandle(o,()=>({focusVisible:()=>{M(!0),L.current.focus()}}),[]);const N=D.shouldMount&&!d&&!c;Z.useEffect(()=>{B&&h&&!d&&D.pulsate()},[d,h,B,D]);const V=ma(D,"start",R,p),U=ma(D,"stop",x,p),J=ma(D,"stop",v,p),X=ma(D,"stop",A,p),H=ma(D,"stop",ee=>{B&&ee.preventDefault(),_&&_(ee)},p),ne=ma(D,"start",C,p),oe=ma(D,"stop",T,p),ge=ma(D,"stop",j,p),de=ma(D,"stop",ee=>{Ps(ee.target)||M(!1),m&&m(ee)},!1),ye=Ar(ee=>{L.current||(L.current=ee.currentTarget),Ps(ee.target)&&(M(!0),w&&w(ee)),b&&b(ee)}),ve=()=>{const ee=L.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},be=Ar(ee=>{h&&!ee.repeat&&B&&ee.key===" "&&D.stop(ee,()=>{D.start(ee)}),ee.target===ee.currentTarget&&ve()&&ee.key===" "&&ee.preventDefault(),E&&E(ee),ee.target===ee.currentTarget&&ve()&&ee.key==="Enter"&&!c&&(ee.preventDefault(),y&&y(ee))}),re=Ar(ee=>{h&&ee.key===" "&&B&&!ee.defaultPrevented&&D.stop(ee,()=>{D.pulsate(ee)}),S&&S(ee),y&&ee.target===ee.currentTarget&&ve()&&ee.key===" "&&!ee.defaultPrevented&&y(ee)});let ce=l;ce==="button"&&(z.href||z.to)&&(ce=g);const we={};ce==="button"?(we.type=I===void 0?"button":I,we.disabled=c):(z.href||z.to||(we.role="button"),c&&(we["aria-disabled"]=c));const ae=Xo(t,L),Y={...n,centerRipple:r,component:l,disabled:c,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:k,focusVisible:B},le=(ee=>{const{disabled:Ie,focusVisible:Me,focusVisibleClassName:ot,classes:Ve}=ee,Ce=Pn({root:["root",Ie&&"disabled",Me&&"focusVisible"]},hM,Ve);return Me&&ot&&(Ce.root+=` ${ot}`),Ce})(Y);return s.jsxs(mM,{as:ce,className:Dt(le.root,a),ownerState:Y,onBlur:de,onClick:y,onContextMenu:U,onFocus:ye,onKeyDown:be,onKeyUp:re,onMouseDown:V,onMouseLeave:H,onMouseUp:X,onDragLeave:J,onTouchEnd:oe,onTouchMove:ge,onTouchStart:ne,ref:ae,tabIndex:c?-1:k,type:I,...we,...z,children:[i,N?s.jsx(pM,{ref:F,center:r,...P}):null]})});function ma(e,t,n,o=!1){return Ar(r=>(n&&n(r),o||e[t](r),!0))}function dr(e=[]){return([,t])=>t&&function(n,o=[]){if(!function(r){return typeof r.main=="string"}(n))return!1;for(const r of o)if(!n.hasOwnProperty(r)||typeof n[r]!="string")return!1;return!0}(t,e)}function gM(e){return In("MuiCircularProgress",e)}En("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const N1=44,M5=s1`
|
|
88
|
+
0% {
|
|
89
|
+
transform: rotate(0deg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
100% {
|
|
93
|
+
transform: rotate(360deg);
|
|
94
|
+
}
|
|
95
|
+
`,T5=s1`
|
|
96
|
+
0% {
|
|
97
|
+
stroke-dasharray: 1px, 200px;
|
|
98
|
+
stroke-dashoffset: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
50% {
|
|
102
|
+
stroke-dasharray: 100px, 200px;
|
|
103
|
+
stroke-dashoffset: -15px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
100% {
|
|
107
|
+
stroke-dasharray: 1px, 200px;
|
|
108
|
+
stroke-dashoffset: -126px;
|
|
109
|
+
}
|
|
110
|
+
`,yM=typeof M5!="string"?Qh`
|
|
111
|
+
animation: ${M5} 1.4s linear infinite;
|
|
112
|
+
`:null,xM=typeof T5!="string"?Qh`
|
|
113
|
+
animation: ${T5} 1.4s ease-in-out infinite;
|
|
114
|
+
`:null,bM=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xt(n.color)}`]]}})(vn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:yM||{animation:`${M5} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),vM=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),wM=Et("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:xM||{animation:`${T5} 1.4s ease-in-out infinite`}}]}))),d3=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...h}=n,f={...n,color:r,disableShrink:i,size:a,thickness:c,value:d,variant:p},g=(v=>{const{classes:b,variant:w,color:E,disableShrink:S}=v;return Pn({root:["root",w,`color${xt(E)}`],svg:["svg"],circle:["circle",`circle${xt(w)}`,S&&"circleDisableShrink"]},gM,b)})(f),m={},y={},x={};if(p==="determinate"){const v=2*Math.PI*((N1-c)/2);m.strokeDasharray=v.toFixed(3),x["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*v).toFixed(3)}px`,y.transform="rotate(-90deg)"}return s.jsx(bM,{className:Dt(g.root,o),style:{width:a,height:a,...y,...l},ownerState:f,ref:t,role:"progressbar",...x,...h,children:s.jsx(vM,{className:g.svg,ownerState:f,viewBox:"22 22 44 44",children:s.jsx(wM,{className:g.circle,style:m,ownerState:f,cx:N1,cy:N1,r:(N1-c)/2,fill:"none",strokeWidth:c})})})});function SM(e){return In("MuiIconButton",e)}const t6=En("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),CM=Et(el,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${xt(n.color)}`],n.edge&&t[`edge${xt(n.edge)}`],t[`size${xt(n.size)}`]]}})(vn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ht((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${t6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${t6.loading}`]:{color:"transparent"}}))),kM=Et("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Mr=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiIconButton"}),{edge:o=!1,children:r,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:f,...g}=n,m=h1(p),y=f??s.jsx(d3,{"aria-labelledby":m,color:"inherit",size:16}),x={...n,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:d},v=(b=>{const{classes:w,disabled:E,color:S,edge:R,size:_,loading:A}=b;return Pn({root:["root",A&&"loading",E&&"disabled",S!=="default"&&`color${xt(S)}`,R&&`edge${xt(R)}`,`size${xt(_)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},SM,w)})(x);return s.jsxs(CM,{id:h?m:p,className:Dt(v.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:t,...g,ownerState:x,children:[typeof h=="boolean"&&s.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:s.jsx(kM,{className:v.loadingIndicator,ownerState:x,children:h&&y})}),r]})});function EM(e){return In("MuiTypography",e)}En("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},TM=Ry,_M=Et("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${xt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${xt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),n6={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tn=Z.forwardRef(function(e,t){const{color:n,...o}=An({props:e,name:"MuiTypography"}),r=TM({...o,...!MM[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:f=n6,...g}=r,m={...r,align:i,color:n,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:p,variant:h,variantMapping:f},y=l||(p?"p":f[h]||n6[h])||"span",x=(v=>{const{align:b,gutterBottom:w,noWrap:E,paragraph:S,variant:R,classes:_}=v;return Pn({root:["root",R,v.align!=="inherit"&&`align${xt(b)}`,w&&"gutterBottom",E&&"noWrap",S&&"paragraph"]},EM,_)})(m);return s.jsx(_M,{as:y,ref:t,className:Dt(x.root,a),...g,ownerState:m,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...g.style}})});var Hr="top",Ti="bottom",_i="right",Wr="left",_5="auto",f1=[Hr,Ti,_i,Wr],Os="start",Ic="end",ox="viewport",g0="popper",o6=f1.reduce(function(e,t){return e.concat([t+"-"+Os,t+"-"+Ic])},[]),rx=[].concat(f1,[_5]).reduce(function(e,t){return e.concat([t,t+"-"+Os,t+"-"+Ic])},[]),jM=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function da(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ol(e){return e instanceof ci(e).Element||e instanceof Element}function ki(e){return e instanceof ci(e).HTMLElement||e instanceof HTMLElement}function u3(e){return typeof ShadowRoot<"u"&&(e instanceof ci(e).ShadowRoot||e instanceof ShadowRoot)}const RM={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];ki(i)&&da(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]).reduce(function(l,c){return l[c]="",l},{});ki(r)&&da(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]};function aa(e){return e.split("-")[0]}var El=Math.max,du=Math.min,Ds=Math.round;function j5(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ix(){return!/^((?!chrome|android).)*safari/i.test(j5())}function Ls(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&ki(e)&&(r=e.offsetWidth>0&&Ds(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ds(o.height)/e.offsetHeight||1);var a=(Ol(e)?ci(e):window).visualViewport,l=!ix()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,h=o.height/i;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function p3(e){var t=Ls(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ax(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u3(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ka(e){return ci(e).getComputedStyle(e)}function IM(e){return["table","td","th"].indexOf(da(e))>=0}function Ya(e){return((Ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function u2(e){return da(e)==="html"?e:e.assignedSlot||e.parentNode||(u3(e)?e.host:null)||Ya(e)}function r6(e){return ki(e)&&ka(e).position!=="fixed"?e.offsetParent:null}function m1(e){for(var t=ci(e),n=r6(e);n&&IM(n)&&ka(n).position==="static";)n=r6(n);return n&&(da(n)==="html"||da(n)==="body"&&ka(n).position==="static")?t:n||function(o){var r=/firefox/i.test(j5());if(/Trident/i.test(j5())&&ki(o)&&ka(o).position==="fixed")return null;var i=u2(o);for(u3(i)&&(i=i.host);ki(i)&&["html","body"].indexOf(da(i))<0;){var a=ka(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||r&&a.willChange==="filter"||r&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}(e)||t}function h3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function q0(e,t,n){return El(e,du(t,n))}function lx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function sx(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}const PM={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=aa(n.placement),c=h3(l),d=[Wr,_i].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(A,T){return lx(typeof(A=typeof A=="function"?A(Object.assign({},T.rects,{placement:T.placement})):A)!="number"?A:sx(A,f1))}(r.padding,n),h=p3(i),f=c==="y"?Hr:Wr,g=c==="y"?Ti:_i,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=m1(i),v=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,b=m/2-y/2,w=p[f],E=v-h[d]-p[g],S=v/2-h[d]/2+b,R=q0(w,S,E),_=c;n.modifiersData[o]=((t={})[_]=R,t.centerOffset=R-S,t)}},effect:function(e){var t=e.state,n=e.options.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o!="string"||(o=t.elements.popper.querySelector(o)))&&ax(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var OM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i6(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,f=a.x,g=f===void 0?0:f,m=a.y,y=m===void 0?0:m,x=typeof p=="function"?p({x:g,y}):{x:g,y};g=x.x,y=x.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=Wr,E=Hr,S=window;if(d){var R=m1(n),_="clientHeight",A="clientWidth";R===ci(n)&&ka(R=Ya(n)).position!=="static"&&l==="absolute"&&(_="scrollHeight",A="scrollWidth"),(r===Hr||(r===Wr||r===_i)&&i===Ic)&&(E=Ti,y-=(h&&R===S&&S.visualViewport?S.visualViewport.height:R[_])-o.height,y*=c?1:-1),(r===Wr||(r===Hr||r===Ti)&&i===Ic)&&(w=_i,g-=(h&&R===S&&S.visualViewport?S.visualViewport.width:R[A])-o.width,g*=c?1:-1)}var T,j=Object.assign({position:l},d&&OM),C=p===!0?function(k,P){var O=k.x,I=k.y,z=P.devicePixelRatio||1;return{x:Ds(O*z)/z||0,y:Ds(I*z)/z||0}}({x:g,y},ci(n)):{x:g,y};return g=C.x,y=C.y,c?Object.assign({},j,((T={})[E]=b?"0":"",T[w]=v?"0":"",T.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",T)):Object.assign({},j,((t={})[E]=b?y+"px":"",t[w]=v?g+"px":"",t.transform="",t))}var $1={passive:!0},DM={left:"right",right:"left",bottom:"top",top:"bottom"};function V1(e){return e.replace(/left|right|bottom|top/g,function(t){return DM[t]})}var LM={start:"end",end:"start"};function a6(e){return e.replace(/start|end/g,function(t){return LM[t]})}function f3(e){var t=ci(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R5(e){return Ls(Ya(e)).left+f3(e).scrollLeft}function m3(e){var t=ka(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function cx(e){return["html","body","#document"].indexOf(da(e))>=0?e.ownerDocument.body:ki(e)&&m3(e)?e:cx(u2(e))}function dc(e,t){var n;t===void 0&&(t=[]);var o=cx(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=ci(o),a=r?[i].concat(i.visualViewport||[],m3(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(dc(u2(a)))}function I5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function l6(e,t,n){return t===ox?I5(function(o,r){var i=ci(o),a=Ya(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,h=0;if(l){c=l.width,d=l.height;var f=ix();(f||!f&&r==="fixed")&&(p=l.offsetLeft,h=l.offsetTop)}return{width:c,height:d,x:p+R5(o),y:h}}(e,n)):Ol(t)?function(o,r){var i=Ls(o,!1,r==="fixed");return i.top=i.top+o.clientTop,i.left=i.left+o.clientLeft,i.bottom=i.top+o.clientHeight,i.right=i.left+o.clientWidth,i.width=o.clientWidth,i.height=o.clientHeight,i.x=i.left,i.y=i.top,i}(t,n):I5(function(o){var r,i=Ya(o),a=f3(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=El(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=El(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+R5(o),h=-a.scrollTop;return ka(l||i).direction==="rtl"&&(p+=El(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:h}}(Ya(e)))}function AM(e,t,n,o){var r=t==="clippingParents"?function(c){var d=dc(u2(c)),p=["absolute","fixed"].indexOf(ka(c).position)>=0&&ki(c)?m1(c):c;return Ol(p)?d.filter(function(h){return Ol(h)&&ax(h,p)&&da(h)!=="body"}):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,d){var p=l6(e,d,o);return c.top=El(p.top,c.top),c.right=du(p.right,c.right),c.bottom=du(p.bottom,c.bottom),c.left=El(p.left,c.left),c},l6(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function dx(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?aa(r):null,a=r?As(r):null,l=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(i){case Hr:t={x:l,y:n.y-o.height};break;case Ti:t={x:l,y:n.y+n.height};break;case _i:t={x:n.x+n.width,y:c};break;case Wr:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y}}var d=i?h3(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Os:t[d]=t[d]-(n[p]/2-o[p]/2);break;case Ic:t[d]=t[d]+(n[p]/2-o[p]/2)}}return t}function Pc(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?"clippingParents":l,d=n.rootBoundary,p=d===void 0?ox:d,h=n.elementContext,f=h===void 0?g0:h,g=n.altBoundary,m=g!==void 0&&g,y=n.padding,x=y===void 0?0:y,v=lx(typeof x!="number"?x:sx(x,f1)),b=f===g0?"reference":g0,w=e.rects.popper,E=e.elements[m?b:f],S=AM(Ol(E)?E:E.contextElement||Ya(e.elements.popper),c,p,a),R=Ls(e.elements.reference),_=dx({reference:R,element:w,placement:r}),A=I5(Object.assign({},w,_)),T=f===g0?A:R,j={top:S.top-T.top+v.top,bottom:T.bottom-S.bottom+v.bottom,left:S.left-T.left+v.left,right:T.right-S.right+v.right},C=e.modifiersData.offset;if(f===g0&&C){var k=C[r];Object.keys(j).forEach(function(P){var O=[_i,Ti].indexOf(P)>=0?1:-1,I=[Hr,Ti].indexOf(P)>=0?"y":"x";j[P]+=k[I]*O})}return j}function zM(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?rx:c,p=As(o),h=p?l?o6:o6.filter(function(m){return As(m)===p}):f1,f=h.filter(function(m){return d.indexOf(m)>=0});f.length===0&&(f=h);var g=f.reduce(function(m,y){return m[y]=Pc(e,{placement:y,boundary:r,rootBoundary:i,padding:a})[aa(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}const FM={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0||r,a=n.altAxis,l=a===void 0||a,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,m=g===void 0||g,y=n.allowedAutoPlacements,x=t.options.placement,v=aa(x),b=c||(v===x||!m?[V1(x)]:function(M){if(aa(M)===_5)return[];var N=V1(M);return[a6(M),N,a6(N)]}(x)),w=[x].concat(b).reduce(function(M,N){return M.concat(aa(N)===_5?zM(t,{placement:N,boundary:p,rootBoundary:h,padding:d,flipVariations:m,allowedAutoPlacements:y}):N)},[]),E=t.rects.reference,S=t.rects.popper,R=new Map,_=!0,A=w[0],T=0;T<w.length;T++){var j=w[T],C=aa(j),k=As(j)===Os,P=[Hr,Ti].indexOf(C)>=0,O=P?"width":"height",I=Pc(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:f,padding:d}),z=P?k?_i:Wr:k?Ti:Hr;E[O]>S[O]&&(z=V1(z));var L=V1(z),D=[];if(i&&D.push(I[C]<=0),l&&D.push(I[z]<=0,I[L]<=0),D.every(function(M){return M})){A=j,_=!1;break}R.set(j,D)}if(_)for(var F=function(M){var N=w.find(function(V){var U=R.get(V);if(U)return U.slice(0,M).every(function(J){return J})});if(N)return A=N,"break"},B=m?3:1;B>0&&F(B)!=="break";B--);t.placement!==A&&(t.modifiersData[o]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function s6(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function c6(e){return[Hr,_i,Ti,Wr].some(function(t){return e[t]>=0})}const BM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=rx.reduce(function(p,h){return p[h]=function(f,g,m){var y=aa(f),x=[Wr,Hr].indexOf(y)>=0?-1:1,v=typeof m=="function"?m(Object.assign({},g,{placement:f})):m,b=v[0],w=v[1];return b=b||0,w=(w||0)*x,[Wr,_i].indexOf(y)>=0?{x:w,y:b}:{x:b,y:w}}(h,t.rects,i),p},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=a}},NM={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0||r,a=n.altAxis,l=a!==void 0&&a,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,f=n.tether,g=f===void 0||f,m=n.tetherOffset,y=m===void 0?0:m,x=Pc(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),v=aa(t.placement),b=As(t.placement),w=!b,E=h3(v),S=E==="x"?"y":"x",R=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,j=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(R){if(i){var P,O=E==="y"?Hr:Wr,I=E==="y"?Ti:_i,z=E==="y"?"height":"width",L=R[E],D=L+x[O],F=L-x[I],B=g?-A[z]/2:0,M=b===Os?_[z]:A[z],N=b===Os?-A[z]:-_[z],V=t.elements.arrow,U=g&&V?p3(V):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=J[O],H=J[I],ne=q0(0,_[z],U[z]),oe=w?_[z]/2-B-ne-X-j.mainAxis:M-ne-X-j.mainAxis,ge=w?-_[z]/2+B+ne+H+j.mainAxis:N+ne+H+j.mainAxis,de=t.elements.arrow&&m1(t.elements.arrow),ye=de?E==="y"?de.clientTop||0:de.clientLeft||0:0,ve=(P=C?.[E])!=null?P:0,be=L+ge-ve,re=q0(g?du(D,L+oe-ve-ye):D,L,g?El(F,be):F);R[E]=re,k[E]=re-L}if(l){var ce,we=E==="x"?Hr:Wr,ae=E==="x"?Ti:_i,Y=R[S],le=S==="y"?"height":"width",ee=Y+x[we],Ie=Y-x[ae],Me=[Hr,Wr].indexOf(v)!==-1,ot=(ce=C?.[S])!=null?ce:0,Ve=Me?ee:Y-_[le]-A[le]-ot+j.altAxis,Ce=Me?Y+_[le]+A[le]-ot-j.altAxis:Ie,je=g&&Me?function(Ge,Be,ct){var Ye=q0(Ge,Be,ct);return Ye>ct?ct:Ye}(Ve,Y,Ce):q0(g?Ve:ee,Y,g?Ce:Ie);R[S]=je,k[S]=je-Y}t.modifiersData[o]=k}},requiresIfExists:["offset"]};function $M(e,t,n){n===void 0&&(n=!1);var o=ki(t),r=ki(t)&&function(d){var p=d.getBoundingClientRect(),h=Ds(p.width)/d.offsetWidth||1,f=Ds(p.height)/d.offsetHeight||1;return h!==1||f!==1}(t),i=Ya(t),a=Ls(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((da(t)!=="body"||m3(i))&&(l=function(d){return d!==ci(d)&&ki(d)?{scrollLeft:(p=d).scrollLeft,scrollTop:p.scrollTop}:f3(d);var p}(t)),ki(t)?((c=Ls(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=R5(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function VM(e){var t=new Map,n=new Set,o=[];function r(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),o.push(i)}return e.forEach(function(i){t.set(i.name,i)}),e.forEach(function(i){n.has(i.name)||r(i)}),o}var d6={placement:"bottom",modifiers:[],strategy:"absolute"};function u6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function HM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?d6:r;return function(a,l,c){c===void 0&&(c=i);var d,p,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},d6,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],g=!1,m={state:h,setOptions:function(x){var v=typeof x=="function"?x(h.options):x;y(),h.options=Object.assign({},i,h.options,v),h.scrollParents={reference:Ol(a)?dc(a):a.contextElement?dc(a.contextElement):[],popper:dc(l)};var b,w,E=function(S){var R=VM(S);return jM.reduce(function(_,A){return _.concat(R.filter(function(T){return T.phase===A}))},[])}((b=[].concat(o,h.options.modifiers),w=b.reduce(function(S,R){var _=S[R.name];return S[R.name]=_?Object.assign({},_,R,{options:Object.assign({},_.options,R.options),data:Object.assign({},_.data,R.data)}):R,S},{}),Object.keys(w).map(function(S){return w[S]})));return h.orderedModifiers=E.filter(function(S){return S.enabled}),h.orderedModifiers.forEach(function(S){var R=S.name,_=S.options,A=_===void 0?{}:_,T=S.effect;if(typeof T=="function"){var j=T({state:h,name:R,instance:m,options:A}),C=function(){};f.push(j||C)}}),m.update()},forceUpdate:function(){if(!g){var x=h.elements,v=x.reference,b=x.popper;if(u6(v,b)){h.rects={reference:$M(v,m1(b),h.options.strategy==="fixed"),popper:p3(b)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(T){return h.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<h.orderedModifiers.length;w++)if(h.reset!==!0){var E=h.orderedModifiers[w],S=E.fn,R=E.options,_=R===void 0?{}:R,A=E.name;typeof S=="function"&&(h=S({state:h,options:_,name:A,instance:m})||h)}else h.reset=!1,w=-1}}},update:(d=function(){return new Promise(function(x){m.forceUpdate(),x(h)})},function(){return p||(p=new Promise(function(x){Promise.resolve().then(function(){p=void 0,x(d())})})),p}),destroy:function(){y(),g=!0}};if(!u6(a,l))return m;function y(){f.forEach(function(x){return x()}),f=[]}return m.setOptions(c).then(function(x){!g&&c.onFirstUpdate&&c.onFirstUpdate(x)}),m}}var WM=HM({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0||r,a=o.resize,l=a===void 0||a,c=ci(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,$1)}),l&&c.addEventListener("resize",n.update,$1),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,$1)}),l&&c.removeEventListener("resize",n.update,$1)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=dx({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0||o,i=n.adaptive,a=i===void 0||i,l=n.roundOffsets,c=l===void 0||l,d={placement:aa(t.placement),variation:As(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i6(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i6(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},RM,BM,FM,NM,PM,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pc(t,{elementContext:"reference"}),l=Pc(t,{altBoundary:!0}),c=s6(a,o),d=s6(l,r,i),p=c6(c),h=c6(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}}]});const ux=Z.forwardRef(function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[i,a]=Z.useState(null),l=Xo(Z.isValidElement(n)?Ys(n):null,t);if(qr(()=>{r||a(function(c){return typeof c=="function"?c():c}(o)||document.body)},[o,r]),qr(()=>{if(i&&!r)return Lm(t,i),()=>{Lm(t,null)}},[t,i,r]),r){if(Z.isValidElement(n)){const c={ref:l};return Z.cloneElement(n,c)}return n}return i&&WC.createPortal(n,i)});function UM(e){return In("MuiPopper",e)}function P5(e){return typeof e=="function"?e():e}En("MuiPopper",["root"]);const qM={},KM=Z.forwardRef(function(e,t){const{anchorEl:n,children:o,direction:r,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:g,ownerState:m,...y}=e,x=Z.useRef(null),v=Xo(x,t),b=Z.useRef(null),w=Xo(b,p),E=Z.useRef(w);qr(()=>{E.current=w},[w]),Z.useImperativeHandle(p,()=>b.current,[]);const S=function(O,I){if(I==="ltr")return O;switch(O){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return O}}(c,r),[R,_]=Z.useState(S),[A,T]=Z.useState(P5(n));Z.useEffect(()=>{b.current&&b.current.forceUpdate()}),Z.useEffect(()=>{n&&T(P5(n))},[n]),qr(()=>{if(!A||!l)return;let O=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z.placement)}}];a!=null&&(O=O.concat(a)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const I=WM(A,x.current,{placement:S,...d,modifiers:O});return E.current(I),()=>{I.destroy(),E.current(null)}},[A,i,a,l,d,S]);const j={placement:R};g!==null&&(j.TransitionProps=g);const C=(O=>{const{classes:I}=O;return Pn({root:["root"]},UM,I)})(e),k=f.root??"div",P=$r({elementType:k,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:C.root});return s.jsx(k,{...P,children:typeof o=="function"?o(j):o})}),GM=Z.forwardRef(function(e,t){const{anchorEl:n,children:o,container:r,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:h=qM,popperRef:f,style:g,transition:m=!1,slotProps:y={},slots:x={},...v}=e,[b,w]=Z.useState(!0);if(!l&&!d&&(!m||b))return null;let E;if(r)E=r;else if(n){const _=P5(n);E=_&&_.nodeType!==void 0?ur(_).body:ur(null).body}const S=d||!l||m&&!b?void 0:"none",R=m?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return s.jsx(ux,{disablePortal:a,container:E,children:s.jsx(KM,{anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:p,popperOptions:h,popperRef:f,slotProps:y,slots:x,...v,style:{position:"fixed",top:0,left:0,display:S,...g},TransitionProps:R,children:o})})}),ZM=Et(GM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),g3=Z.forwardRef(function(e,t){const n=Js(),o=An({props:e,name:"MuiPopper"}),{anchorEl:r,component:i,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:g,popperOptions:m,popperRef:y,transition:x,slots:v,slotProps:b,...w}=o,E=v?.root??a?.Root,S={anchorEl:r,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:g,popperOptions:m,popperRef:y,transition:x,...w};return s.jsx(ZM,{as:i,direction:n?"rtl":"ltr",slots:{root:E},slotProps:b??l,...S,ref:t})}),XM=Gn(s.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function YM(e){return In("MuiChip",e)}const Bn=En("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),JM=Et("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Bn.avatar}`]:t.avatar},{[`& .${Bn.avatar}`]:t[`avatar${xt(l)}`]},{[`& .${Bn.avatar}`]:t[`avatarColor${xt(o)}`]},{[`& .${Bn.icon}`]:t.icon},{[`& .${Bn.icon}`]:t[`icon${xt(l)}`]},{[`& .${Bn.icon}`]:t[`iconColor${xt(r)}`]},{[`& .${Bn.deleteIcon}`]:t.deleteIcon},{[`& .${Bn.deleteIcon}`]:t[`deleteIcon${xt(l)}`]},{[`& .${Bn.deleteIcon}`]:t[`deleteIconColor${xt(o)}`]},{[`& .${Bn.deleteIcon}`]:t[`deleteIcon${xt(c)}Color${xt(o)}`]},t.root,t[`size${xt(l)}`],t[`color${xt(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${xt(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${xt(o)}`],t[c],t[`${c}${xt(o)}`]]}})(vn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Bn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Bn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Bn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Bn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Bn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Bn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Bn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ht(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ht(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Bn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Bn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(dr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Bn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ht(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Bn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Bn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Bn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(dr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Bn.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Bn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Bn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Bn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Bn.avatar}`]:{marginLeft:4},[`& .${Bn.avatarSmall}`]:{marginLeft:2},[`& .${Bn.icon}`]:{marginLeft:4},[`& .${Bn.iconSmall}`]:{marginLeft:2},[`& .${Bn.deleteIcon}`]:{marginRight:5},[`& .${Bn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ht(e.palette[n].main,.7)}`,[`&.${Bn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Bn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ht(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Bn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ht(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),QM=Et("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${xt(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function p6(e){return e.key==="Backspace"||e.key==="Delete"}const eT=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiChip"}),{avatar:o,className:r,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:d=!1,icon:p,label:h,onClick:f,onDelete:g,onKeyDown:m,onKeyUp:y,size:x="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,...E}=n,S=Xo(Z.useRef(null),t),R=I=>{I.stopPropagation(),g&&g(I)},_=!(i===!1||!f)||i,A=_||g?el:l||"div",T={...n,component:A,disabled:d,size:x,color:a,iconColor:Z.isValidElement(p)&&p.props.color||a,onDelete:!!g,clickable:_,variant:v},j=(I=>{const{classes:z,disabled:L,size:D,color:F,iconColor:B,onDelete:M,clickable:N,variant:V}=I;return Pn({root:["root",V,L&&"disabled",`size${xt(D)}`,`color${xt(F)}`,N&&"clickable",N&&`clickableColor${xt(F)}`,M&&"deletable",M&&`deletableColor${xt(F)}`,`${V}${xt(F)}`],label:["label",`label${xt(D)}`],avatar:["avatar",`avatar${xt(D)}`,`avatarColor${xt(F)}`],icon:["icon",`icon${xt(D)}`,`iconColor${xt(B)}`],deleteIcon:["deleteIcon",`deleteIcon${xt(D)}`,`deleteIconColor${xt(F)}`,`deleteIcon${xt(V)}Color${xt(F)}`]},YM,z)})(T),C=A===el?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let k=null;g&&(k=c&&Z.isValidElement(c)?Z.cloneElement(c,{className:Dt(c.props.className,j.deleteIcon),onClick:R}):s.jsx(XM,{className:Dt(j.deleteIcon),onClick:R}));let P=null;o&&Z.isValidElement(o)&&(P=Z.cloneElement(o,{className:Dt(j.avatar,o.props.className)}));let O=null;return p&&Z.isValidElement(p)&&(O=Z.cloneElement(p,{className:Dt(j.icon,p.props.className)})),s.jsxs(JM,{as:A,className:Dt(j.root,r),disabled:!(!_||!d)||void 0,onClick:f,onKeyDown:I=>{I.currentTarget===I.target&&p6(I)&&I.preventDefault(),m&&m(I)},onKeyUp:I=>{I.currentTarget===I.target&&g&&p6(I)&&g(I),y&&y(I)},ref:S,tabIndex:w&&d?-1:b,ownerState:T,...C,...E,children:[P||O,s.jsx(QM,{className:Dt(j.label),ownerState:T,children:h}),k]})});function H1(e){return parseInt(e,10)||0}const tT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function h6(e){return function(t){for(const n in t)return!1;return!0}(e)||e.outerHeightStyle===0&&!e.overflowing}const nT=Z.forwardRef(function(e,t){const{onChange:n,maxRows:o,minRows:r=1,style:i,value:a,...l}=e,{current:c}=Z.useRef(a!=null),d=Z.useRef(null),p=Xo(t,d),h=Z.useRef(null),f=Z.useRef(null),g=Z.useCallback(()=>{const v=d.current,b=f.current;if(!v||!b)return;const w=Vi(v).getComputedStyle(v);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=w.width,b.value=v.value||e.placeholder||"x",b.value.slice(-1)===`
|
|
115
|
+
`&&(b.value+=" ");const E=w.boxSizing,S=H1(w.paddingBottom)+H1(w.paddingTop),R=H1(w.borderBottomWidth)+H1(w.borderTopWidth),_=b.scrollHeight;b.value="x";const A=b.scrollHeight;let T=_;return r&&(T=Math.max(Number(r)*A,T)),o&&(T=Math.min(Number(o)*A,T)),T=Math.max(T,A),{outerHeightStyle:T+(E==="border-box"?S+R:0),overflowing:Math.abs(T-_)<=1}},[o,r,e.placeholder]),m=Ar(()=>{const v=d.current,b=g();if(!v||!b||h6(b))return!1;const w=b.outerHeightStyle;return h.current!=null&&h.current!==w}),y=Z.useCallback(()=>{const v=d.current,b=g();if(!v||!b||h6(b))return;const w=b.outerHeightStyle;h.current!==w&&(h.current=w,v.style.height=`${w}px`),v.style.overflow=b.overflowing?"hidden":""},[g]),x=Z.useRef(-1);return qr(()=>{const v=s2(y),b=d?.current;if(!b)return;const w=Vi(b);let E;return w.addEventListener("resize",v),typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{m()&&(E.unobserve(b),cancelAnimationFrame(x.current),y(),x.current=requestAnimationFrame(()=>{E.observe(b)}))}),E.observe(b)),()=>{v.clear(),cancelAnimationFrame(x.current),w.removeEventListener("resize",v),E&&E.disconnect()}},[g,y,m]),qr(()=>{y()}),s.jsxs(Z.Fragment,{children:[s.jsx("textarea",{value:a,onChange:v=>{c||y(),n&&n(v)},ref:p,rows:r,style:i,...l}),s.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...tT,...i,paddingTop:0,paddingBottom:0}})]})});function wl(e){return typeof e=="string"}function Wl({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&e[r]===void 0&&(o[r]=n[r]),o),{})}const p2=Z.createContext(void 0);function Ra(){return Z.useContext(p2)}function f6(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function uu(e,t=!1){return e&&(f6(e.value)&&e.value!==""||t&&f6(e.defaultValue)&&e.defaultValue!=="")}function oT(e){return In("MuiInputBase",e)}const zs=En("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var m6;const h2=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},f2=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},m2=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:h2})(vn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),g2=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:f2})(vn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zs.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${zs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),g6=Jy({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),y3=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:r,autoFocus:i,className:a,color:l,components:c={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:f,endAdornment:g,error:m,fullWidth:y=!1,id:x,inputComponent:v="input",inputProps:b={},inputRef:w,margin:E,maxRows:S,minRows:R,multiline:_=!1,name:A,onBlur:T,onChange:j,onClick:C,onFocus:k,onKeyDown:P,onKeyUp:O,placeholder:I,readOnly:z,renderSuffix:L,rows:D,size:F,slotProps:B={},slots:M={},startAdornment:N,type:V="text",value:U,...J}=n,X=b.value!=null?b.value:U,{current:H}=Z.useRef(X!=null),ne=Z.useRef(),oe=Z.useCallback(Ve=>{},[]),ge=Xo(ne,w,b.ref,oe),[de,ye]=Z.useState(!1),ve=Ra(),be=Wl({props:n,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=ve?ve.focused:de,Z.useEffect(()=>{!ve&&h&&de&&(ye(!1),T&&T())},[ve,h,de,T]);const re=ve&&ve.onFilled,ce=ve&&ve.onEmpty,we=Z.useCallback(Ve=>{uu(Ve)?re&&re():ce&&ce()},[re,ce]);qr(()=>{H&&we({value:X})},[X,we,H]),Z.useEffect(()=>{we(ne.current)},[]);let ae=v,Y=b;_&&ae==="input"&&(Y=D?{type:void 0,minRows:D,maxRows:D,...Y}:{type:void 0,maxRows:S,minRows:R,...Y},ae=nT),Z.useEffect(()=>{ve&&ve.setAdornedStart(!!N)},[ve,N]);const le={...n,color:be.color||"primary",disabled:be.disabled,endAdornment:g,error:be.error,focused:be.focused,formControl:ve,fullWidth:y,hiddenLabel:be.hiddenLabel,multiline:_,size:be.size,startAdornment:N,type:V},ee=(Ve=>{const{classes:Ce,color:je,disabled:Ge,error:Be,endAdornment:ct,focused:Ye,formControl:he,fullWidth:Ze,hiddenLabel:Se,multiline:Re,readOnly:ue,size:De,startAdornment:Le,type:W}=Ve;return Pn({root:["root",`color${xt(je)}`,Ge&&"disabled",Be&&"error",Ze&&"fullWidth",Ye&&"focused",he&&"formControl",De&&De!=="medium"&&`size${xt(De)}`,Re&&"multiline",Le&&"adornedStart",ct&&"adornedEnd",Se&&"hiddenLabel",ue&&"readOnly"],input:["input",Ge&&"disabled",W==="search"&&"inputTypeSearch",Re&&"inputMultiline",De==="small"&&"inputSizeSmall",Se&&"inputHiddenLabel",Le&&"inputAdornedStart",ct&&"inputAdornedEnd",ue&&"readOnly"]},oT,Ce)})(le),Ie=M.root||c.Root||m2,Me=B.root||d.root||{},ot=M.input||c.Input||g2;return Y={...Y,...B.input??d.input},s.jsxs(Z.Fragment,{children:[!f&&typeof g6=="function"&&(m6||(m6=s.jsx(g6,{}))),s.jsxs(Ie,{...Me,ref:t,onClick:Ve=>{ne.current&&Ve.currentTarget===Ve.target&&ne.current.focus(),C&&C(Ve)},...J,...!wl(Ie)&&{ownerState:{...le,...Me.ownerState}},className:Dt(ee.root,Me.className,a,z&&"MuiInputBase-readOnly"),children:[N,s.jsx(p2.Provider,{value:null,children:s.jsx(ot,{"aria-invalid":be.error,"aria-describedby":o,autoComplete:r,autoFocus:i,defaultValue:p,disabled:be.disabled,id:x,onAnimationStart:Ve=>{we(Ve.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})},name:A,placeholder:I,readOnly:z,required:be.required,rows:D,value:X,onKeyDown:P,onKeyUp:O,type:V,...Y,...!wl(ot)&&{as:ae,ownerState:{...le,...Y.ownerState}},ref:ge,className:Dt(ee.input,Y.className,z&&"MuiInputBase-readOnly"),onBlur:Ve=>{T&&T(Ve),b.onBlur&&b.onBlur(Ve),ve&&ve.onBlur?ve.onBlur(Ve):ye(!1)},onChange:(Ve,...Ce)=>{if(!H){const je=Ve.target||ne.current;if(je==null)throw new Error(Ma(1));we({value:je.value})}b.onChange&&b.onChange(Ve,...Ce),j&&j(Ve,...Ce)},onFocus:Ve=>{k&&k(Ve),b.onFocus&&b.onFocus(Ve),ve&&ve.onFocus?ve.onFocus(Ve):ye(!0)}})}),g,L?L({...be,startAdornment:N}):null]})]})});function rT(e){return In("MuiInput",e)}const y0={...zs,...En("MuiInput",["root","underline","input"])};function iT(e){return In("MuiOutlinedInput",e)}const Zi={...zs,...En("MuiOutlinedInput",["root","notchedOutline","input"])};function aT(e){return In("MuiFilledInput",e)}const al={...zs,...En("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lT=Gn(s.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sT={entering:{opacity:1},entered:{opacity:1}},px=Z.forwardRef(function(e,t){const n=Qs(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:l,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:g,onExiting:m,style:y,timeout:x=o,TransitionComponent:v=Bi,...b}=e,w=Z.useRef(null),E=Xo(w,Ys(a),t),S=k=>P=>{if(k){const O=w.current;P===void 0?k(O):k(O,P)}},R=S(h),_=S((k,P)=>{nx(k);const O=Rc({style:y,timeout:x,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",O),k.style.transition=n.transitions.create("opacity",O),d&&d(k,P)}),A=S(p),T=S(m),j=S(k=>{const P=Rc({style:y,timeout:x,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",P),k.style.transition=n.transitions.create("opacity",P),f&&f(k)}),C=S(g);return s.jsx(v,{appear:i,in:c,nodeRef:w,onEnter:_,onEntered:A,onEntering:R,onExit:j,onExited:C,onExiting:T,addEndListener:k=>{r&&r(w.current,k)},timeout:x,...b,children:(k,{ownerState:P,...O})=>Z.cloneElement(a,{style:{opacity:0,visibility:k!=="exited"||c?void 0:"hidden",...sT[k],...y,...a.props.style},ref:E,...O})})});function cT(e){return In("MuiBackdrop",e)}En("MuiBackdrop",["root","invisible"]);const dT=Et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),hx=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiBackdrop"}),{children:o,className:r,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:f,transitionDuration:g,...m}=n,y={...n,component:i,invisible:a},x=(R=>{const{classes:_,invisible:A}=R;return Pn({root:["root",A&&"invisible"]},cT,_)})(y),v={slots:{transition:f,root:c.Root,...h},slotProps:{...d,...p}},[b,w]=no("root",{elementType:dT,externalForwardedProps:v,className:Dt(x.root,r),ownerState:y}),[E,S]=no("transition",{elementType:px,externalForwardedProps:v,ownerState:y});return s.jsx(E,{in:l,timeout:g,...m,...S,children:s.jsx(b,{"aria-hidden":!0,...w,classes:x,ref:t,children:o})})}),uT=En("MuiBox",["root"]),pT=Yy(),Ae=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=n2("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Rl);return Z.forwardRef(function(a,l){const c=p1(n),{className:d,component:p="div",...h}=Ry(a);return s.jsx(i,{as:p,ref:l,className:Dt(d,r?r(o):o),theme:t&&c[t]||c,...h})})}({themeId:i1,defaultTheme:pT,defaultClassName:uT.root,generateClassName:Iy.generate});function hT(e){return In("MuiButton",e)}const ll=En("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),fT=Z.createContext({}),mT=Z.createContext(void 0),fx=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],gT=Et(el,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xt(n.color)}`],t[`size${xt(n.size)}`],t[`${n.variant}Size${xt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(vn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ll.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ll.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ll.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ll.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(dr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:ht(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ll.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ll.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ll.loading}`]:{color:"transparent"}}}]}})),yT=Et("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${xt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...fx]})),xT=Et("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${xt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...fx]})),bT=Et("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),y6=Et("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Oc=Z.forwardRef(function(e,t){const n=Z.useContext(fT),o=Z.useContext(mT),r=An({props:_c(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:g,fullWidth:m=!1,id:y,loading:x=null,loadingIndicator:v,loadingPosition:b="center",size:w="medium",startIcon:E,type:S,variant:R="text",..._}=r,A=h1(y),T=v??s.jsx(d3,{"aria-labelledby":A,color:"inherit",size:16}),j={...r,color:a,component:l,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:m,loading:x,loadingIndicator:T,loadingPosition:b,size:w,type:S,variant:R},C=(z=>{const{color:L,disableElevation:D,fullWidth:F,size:B,variant:M,loading:N,loadingPosition:V,classes:U}=z,J=Pn({root:["root",N&&"loading",M,`${M}${xt(L)}`,`size${xt(B)}`,`${M}Size${xt(B)}`,`color${xt(L)}`,D&&"disableElevation",F&&"fullWidth",N&&`loadingPosition${xt(V)}`],startIcon:["icon","startIcon",`iconSize${xt(B)}`],endIcon:["icon","endIcon",`iconSize${xt(B)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},hT,U);return{...U,...J}})(j),k=(E||x&&b==="start")&&s.jsx(yT,{className:C.startIcon,ownerState:j,children:E||s.jsx(y6,{className:C.loadingIconPlaceholder,ownerState:j})}),P=(f||x&&b==="end")&&s.jsx(xT,{className:C.endIcon,ownerState:j,children:f||s.jsx(y6,{className:C.loadingIconPlaceholder,ownerState:j})}),O=o||"",I=typeof x=="boolean"?s.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:x&&s.jsx(bT,{className:C.loadingIndicator,ownerState:j,children:T})}):null;return s.jsxs(gT,{ownerState:j,className:Dt(n.className,C.root,c,O),component:l,disabled:d||x,focusRipple:!h,focusVisibleClassName:Dt(C.focusVisible,g),ref:t,type:S,id:x?A:y,..._,classes:C,children:[k,b!=="end"&&I,i,b==="end"&&I,P]})});function vT(e){return In("PrivateSwitchBase",e)}En("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wT=Et(el)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),ST=Et("input",{shouldForwardProp:Xr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CT=Z.forwardRef(function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:f,name:g,onBlur:m,onChange:y,onFocus:x,readOnly:v,required:b=!1,tabIndex:w,type:E,value:S,slots:R={},slotProps:_={},...A}=e,[T,j]=jc({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),C=Ra();let k=a;C&&k===void 0&&(k=C.disabled);const P=E==="checkbox"||E==="radio",O={...e,checked:T,disabled:k,disableFocusRipple:l,edge:c},I=(M=>{const{classes:N,checked:V,disabled:U,edge:J}=M;return Pn({root:["root",V&&"checked",U&&"disabled",J&&`edge${xt(J)}`],input:["input"]},vT,N)})(O),z={slots:R,slotProps:{input:h,..._}},[L,D]=no("root",{ref:t,elementType:wT,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...A},getSlotProps:M=>({...M,onFocus:N=>{M.onFocus?.(N),(V=>{x&&x(V),C&&C.onFocus&&C.onFocus(V)})(N)},onBlur:N=>{M.onBlur?.(N),(V=>{m&&m(V),C&&C.onBlur&&C.onBlur(V)})(N)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:k,role:void 0,tabIndex:null}}),[F,B]=no("input",{ref:f,elementType:ST,className:I.input,externalForwardedProps:z,getSlotProps:M=>({onChange:N=>{M.onChange?.(N),(V=>{if(V.nativeEvent.defaultPrevented)return;const U=V.target.checked;j(U),y&&y(V,U)})(N)}}),ownerState:O,additionalProps:{autoFocus:n,checked:o,defaultChecked:i,disabled:k,id:P?p:void 0,name:g,readOnly:v,required:b,tabIndex:w,type:E,...E==="checkbox"&&S===void 0?{}:{value:S}}});return s.jsxs(L,{...D,children:[s.jsx(F,{...B}),T?r:d]})}),kT=Gn(s.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ET=Gn(s.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),MT=Gn(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function TT(e){return In("MuiCheckbox",e)}const Q2=En("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_T=Et(CT,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${xt(n.size)}`],n.color!=="default"&&t[`color${xt(n.color)}`]]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ht(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&.${Q2.checked}, &.${Q2.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Q2.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jT=s.jsx(ET,{}),RT=s.jsx(kT,{}),IT=s.jsx(MT,{}),Na=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiCheckbox"}),{checkedIcon:o=jT,color:r="primary",icon:i=RT,indeterminate:a=!1,indeterminateIcon:l=IT,inputProps:c,size:d="medium",disableRipple:p=!1,className:h,slots:f={},slotProps:g={},...m}=n,y=a?l:i,x=a?l:o,v={...n,disableRipple:p,color:r,indeterminate:a,size:d},b=(R=>{const{classes:_,indeterminate:A,color:T,size:j}=R,C=Pn({root:["root",A&&"indeterminate",`color${xt(T)}`,`size${xt(j)}`]},TT,_);return{..._,...C}})(v),w=g.input??c,[E,S]=no("root",{ref:t,elementType:_T,className:Dt(b.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:g,...m},ownerState:v,additionalProps:{type:"checkbox",icon:Z.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:Z.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:p,slots:f,slotProps:{input:Qy(typeof w=="function"?w(v):w,{"data-indeterminate":a})}}});return s.jsx(E,{...S,classes:b})});function uc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x6(e){return parseInt(Vi(e).getComputedStyle(e).paddingRight,10)||0}function b6(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!function(d){const p=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(d.tagName),h=d.tagName==="INPUT"&&d.getAttribute("type")==="hidden";return p||h}(a);l&&c&&uc(a,r)})}function ep(e,t){let n=-1;return e.some((o,r)=>!!t(o)&&(n=r,!0)),n}function PT(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(i){const a=ur(i);return a.body===i?Vi(i).innerWidth>a.documentElement.clientWidth:i.scrollHeight>i.clientHeight}(o)){const i=By(Vi(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${x6(o)+i}px`;const a=ur(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${x6(l)+i}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=ur(o).body;else{const i=o.parentElement,a=Vi(o);r=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:i,property:a})=>{r?i.style.setProperty(a,r):i.style.removeProperty(a)})}}const OT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DT(e){const t=[],n=[];return Array.from(e.querySelectorAll(OT)).forEach((o,r)=>{const i=function(a){const l=parseInt(a.getAttribute("tabindex")||"",10);return Number.isNaN(l)?a.contentEditable==="true"||(a.nodeName==="AUDIO"||a.nodeName==="VIDEO"||a.nodeName==="DETAILS")&&a.getAttribute("tabindex")===null?0:a.tabIndex:l}(o);i!==-1&&function(a){return!(a.disabled||a.tagName==="INPUT"&&a.type==="hidden"||function(l){if(l.tagName!=="INPUT"||l.type!=="radio"||!l.name)return!1;const c=p=>l.ownerDocument.querySelector(`input[type="radio"]${p}`);let d=c(`[name="${l.name}"]:checked`);return d||(d=c(`[name="${l.name}"]`)),d!==l}(a))}(o)&&(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function LT(){return!0}function AT(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=DT,isEnabled:a=LT,open:l}=e,c=Z.useRef(!1),d=Z.useRef(null),p=Z.useRef(null),h=Z.useRef(null),f=Z.useRef(null),g=Z.useRef(!1),m=Z.useRef(null),y=Xo(Ys(t),m),x=Z.useRef(null);Z.useEffect(()=>{l&&m.current&&(g.current=!n)},[n,l]),Z.useEffect(()=>{if(!l||!m.current)return;const b=ur(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),Z.useEffect(()=>{if(!l||!m.current)return;const b=ur(m.current),w=R=>{x.current=R,!o&&a()&&R.key==="Tab"&&b.activeElement===m.current&&R.shiftKey&&(c.current=!0,p.current&&p.current.focus())},E=()=>{const R=m.current;if(R===null)return;if(!b.hasFocus()||!a()||c.current)return void(c.current=!1);if(R.contains(b.activeElement)||o&&b.activeElement!==d.current&&b.activeElement!==p.current)return;if(b.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let _=[];if(b.activeElement!==d.current&&b.activeElement!==p.current||(_=i(m.current)),_.length>0){const A=!!(x.current?.shiftKey&&x.current?.key==="Tab"),T=_[0],j=_[_.length-1];typeof T!="string"&&typeof j!="string"&&(A?j.focus():T.focus())}else R.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const S=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,o,r,a,l,i]);const v=b=>{h.current===null&&(h.current=b.relatedTarget),g.current=!0};return s.jsxs(Z.Fragment,{children:[s.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:y,onFocus:b=>{h.current===null&&(h.current=b.relatedTarget),g.current=!0,f.current=b.target;const w=t.props.onFocus;w&&w(b)}}),s.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:p,"data-testid":"sentinelEnd"})]})}const v6=()=>{},W1=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&uc(e.modalRef,!1);const o=function(i){const a=[];return[].forEach.call(i.children,l=>{l.getAttribute("aria-hidden")==="true"&&a.push(l)}),a}(t);b6(t,e.mount,e.modalRef,o,!0);const r=ep(this.containers,i=>i.container===t);return r!==-1?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=ep(this.containers,r=>r.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=PT(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=ep(this.containers,i=>i.modals.includes(e)),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),e.modalRef&&uc(e.modalRef,t),b6(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&uc(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function zT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:p}=e,h=Z.useRef({}),f=Z.useRef(null),g=Z.useRef(null),m=Xo(g,p),[y,x]=Z.useState(!d),v=function(C){return!!C&&C.props.hasOwnProperty("in")}(l);let b=!0;e["aria-hidden"]!=="false"&&e["aria-hidden"]!==!1||(b=!1);const w=()=>(h.current.modalRef=g.current,h.current.mount=f.current,h.current),E=()=>{W1.mount(w(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},S=Ar(()=>{const C=function(k){return typeof k=="function"?k():k}(t)||ur(f.current).body;W1.add(w(),C),g.current&&E()}),R=()=>W1.isTopModal(w()),_=Ar(C=>{f.current=C,C&&(d&&R()?E():g.current&&uc(g.current,b))}),A=Z.useCallback(()=>{W1.remove(w(),b)},[b]);Z.useEffect(()=>()=>{A()},[A]),Z.useEffect(()=>{d?S():v&&r||A()},[d,A,v,r,S]);const T=C=>k=>{C.onKeyDown?.(k),k.key==="Escape"&&k.which!==229&&R()&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},j=C=>k=>{C.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(C={})=>{const k=cc(e);delete k.onTransitionEnter,delete k.onTransitionExited;const P={...k,...C};return{role:"presentation",...P,onKeyDown:T(P),ref:m}},getBackdropProps:(C={})=>{const k=C;return{"aria-hidden":!0,...k,onClick:j(k),open:d}},getTransitionProps:()=>({onEnter:Dm(()=>{x(!1),i&&i()},l?.props.onEnter??v6),onExited:Dm(()=>{x(!0),a&&a(),r&&A()},l?.props.onExited??v6)}),rootRef:m,portalRef:_,isTopModal:R,exited:y,hasTransition:v}}function FT(e){return In("MuiModal",e)}En("MuiModal",["root","hidden","backdrop"]);const BT=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),NT=Et(hx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$T=Z.forwardRef(function(e,t){const n=An({name:"MuiModal",props:e}),{BackdropComponent:o=NT,BackdropProps:r,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:d,component:p,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:E=!1,onBackdropClick:S,onClose:R,onTransitionEnter:_,onTransitionExited:A,open:T,slotProps:j={},slots:C={},theme:k,...P}=n,O={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:v,disableScrollLock:b,hideBackdrop:w,keepMounted:E},{getRootProps:I,getBackdropProps:z,getTransitionProps:L,portalRef:D,isTopModal:F,exited:B,hasTransition:M}=zT({...O,rootRef:t}),N={...O,exited:B},V=(ge=>{const{open:de,exited:ye,classes:ve}=ge;return Pn({root:["root",!de&&ye&&"hidden"],backdrop:["backdrop"]},FT,ve)})(N),U={};if(c.props.tabIndex===void 0&&(U.tabIndex="-1"),M){const{onEnter:ge,onExited:de}=L();U.onEnter=ge,U.onExited=de}const J={slots:{root:h.Root,backdrop:h.Backdrop,...C},slotProps:{...f,...j}},[X,H]=no("root",{ref:t,elementType:BT,externalForwardedProps:{...J,...P,component:p},getSlotProps:I,ownerState:N,className:Dt(a,V?.root,!N.open&&N.exited&&V?.hidden)}),[ne,oe]=no("backdrop",{ref:r?.ref,elementType:o,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:ge=>z({...ge,onClick:de=>{S&&S(de),ge?.onClick&&ge.onClick(de)}}),className:Dt(r?.className,V?.backdrop),ownerState:N});return E||T||M&&!B?s.jsx(ux,{ref:D,container:d,disablePortal:x,children:s.jsxs(X,{...H,children:[!w&&o?s.jsx(ne,{...oe}):null,s.jsx(AT,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:v,isEnabled:F,open:T,children:Z.cloneElement(c,U)})]})}):null}),VT=Z.createContext({});function HT(e){return In("MuiDialogActions",e)}En("MuiDialogActions",["root","spacing"]);const WT=Et("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),UT=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:r=!1,...i}=n,a={...n,disableSpacing:r},l=(c=>{const{classes:d,disableSpacing:p}=c;return Pn({root:["root",!p&&"spacing"]},HT,d)})(a);return s.jsx(WT,{className:Dt(l.root,o),ownerState:a,ref:t,...i})});function qT(e){return In("MuiDialogContent",e)}function KT(e){return In("MuiDialogTitle",e)}En("MuiDialogContent",["root","dividers"]);const GT=En("MuiDialogTitle",["root"]),ZT=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${GT.root} + &`]:{paddingTop:0}}}]}))),mx=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogContent"}),{className:o,dividers:r=!1,...i}=n,a={...n,dividers:r},l=(c=>{const{classes:d,dividers:p}=c;return Pn({root:["root",p&&"dividers"]},qT,d)})(a);return s.jsx(ZT,{className:Dt(l.root,o),ownerState:a,ref:t,...i})}),XT=Et(Tn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),gx=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogTitle"}),{className:o,id:r,...i}=n,a=n,l=(d=>{const{classes:p}=d;return Pn({root:["root"]},KT,p)})(a),{titleId:c=r}=Z.useContext(VT);return s.jsx(XT,{component:"h2",className:Dt(l.root,o),ownerState:a,ref:t,variant:"h6",id:r??c,...i})});function YT(e){return In("MuiDivider",e)}const w6=En("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JT=Et("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vn(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ht(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),QT=Et("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vn(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),va=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:i,orientation:a="horizontal",component:l=r||a==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:f="fullWidth",...g}=n,m={...n,absolute:o,component:l,flexItem:c,light:d,orientation:a,role:p,textAlign:h,variant:f},y=(x=>{const{absolute:v,children:b,classes:w,flexItem:E,light:S,orientation:R,textAlign:_,variant:A}=x;return Pn({root:["root",v&&"absolute",A,S&&"light",R==="vertical"&&"vertical",E&&"flexItem",b&&"withChildren",b&&R==="vertical"&&"withChildrenVertical",_==="right"&&R!=="vertical"&&"textAlignRight",_==="left"&&R!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",R==="vertical"&&"wrapperVertical"]},YT,w)})(m);return s.jsx(JT,{as:l,className:Dt(y.root,i),role:p,ref:t,ownerState:m,"aria-orientation":p!=="separator"||l==="hr"&&a!=="vertical"?void 0:a,...g,children:r?s.jsx(QT,{className:y.wrapper,ownerState:m,children:r}):null})});va&&(va.muiSkipListHighlight=!0);const e_=Et(m2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h2(e,t),!n.disableUnderline&&t.underline]}})(vn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${al.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${al.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${al.disabled}, .${al.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dr()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),t_=Et(g2,{name:"MuiFilledInput",slot:"Input",overridesResolver:f2})(vn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),x3=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:r={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text",...g}=n,m={...n,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:d,type:f},y=(E=>{const{classes:S,disableUnderline:R,startAdornment:_,endAdornment:A,size:T,hiddenLabel:j,multiline:C}=E,k=Pn({root:["root",!R&&"underline",_&&"adornedStart",A&&"adornedEnd",T==="small"&&`size${xt(T)}`,j&&"hiddenLabel",C&&"multiline"],input:["input"]},aT,S);return{...S,...k}})(n),x={root:{ownerState:m},input:{ownerState:m}},v=p??i?cr(x,p??i):x,b=h.root??r.Root??e_,w=h.input??r.Input??t_;return s.jsx(y3,{slots:{root:b,input:w},slotProps:v,fullWidth:a,inputComponent:c,multiline:d,ref:t,type:f,...g,classes:y})});function n_(e){return In("MuiFormControl",e)}x3.muiName="Input",En("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const o_=Et("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${xt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),g1=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormControl"}),{children:o,className:r,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:m="medium",variant:y="outlined",...x}=n,v={...n,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:f,required:g,size:m,variant:y},b=(O=>{const{classes:I,margin:z,fullWidth:L}=O;return Pn({root:["root",z!=="none"&&`margin${xt(z)}`,L&&"fullWidth"]},n_,I)})(v),[w,E]=Z.useState(()=>{let O=!1;return o&&Z.Children.forEach(o,I=>{if(!Z2(I,["Input","Select"]))return;const z=Z2(I,["Select"])?I.props.input:I;z&&z.props.startAdornment&&(O=!0)}),O}),[S,R]=Z.useState(()=>{let O=!1;return o&&Z.Children.forEach(o,I=>{Z2(I,["Input","Select"])&&(uu(I.props,!0)||uu(I.props.inputProps,!0))&&(O=!0)}),O}),[_,A]=Z.useState(!1);l&&_&&A(!1);const T=d===void 0||l?_:d;let j;Z.useRef(!1);const C=Z.useCallback(()=>{R(!0)},[]),k=Z.useCallback(()=>{R(!1)},[]),P=Z.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:i,disabled:l,error:c,filled:S,focused:T,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:k,onFilled:C,registerEffect:j,required:g,variant:y}),[w,i,l,c,S,T,p,h,j,k,C,g,m,y]);return s.jsx(p2.Provider,{value:P,children:s.jsx(o_,{as:a,ownerState:v,className:Dt(b.root,r),ref:t,...x,children:o})})});function r_(e){return In("MuiFormControlLabel",e)}const K0=En("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),i_=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${K0.label}`]:t.label},t.root,t[`labelPlacement${xt(n.labelPlacement)}`]]}})(vn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${K0.disabled}`]:{cursor:"default"},[`& .${K0.label}`]:{[`&.${K0.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),a_=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vn(({theme:e})=>({[`&.${K0.error}`]:{color:(e.vars||e).palette.error.main}}))),$a=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormControlLabel"}),{checked:o,className:r,componentsProps:i={},control:a,disabled:l,disableTypography:c,inputRef:d,label:p,labelPlacement:h="end",name:f,onChange:g,required:m,slots:y={},slotProps:x={},value:v,...b}=n,w=Ra(),E=l??a.props.disabled??w?.disabled,S=m??a.props.required,R={disabled:E,required:S};["checked","name","onChange","value","inputRef"].forEach(O=>{a.props[O]===void 0&&n[O]!==void 0&&(R[O]=n[O])});const _=Wl({props:n,muiFormControl:w,states:["error"]}),A={...n,disabled:E,labelPlacement:h,required:S,error:_.error},T=(O=>{const{classes:I,disabled:z,labelPlacement:L,error:D,required:F}=O;return Pn({root:["root",z&&"disabled",`labelPlacement${xt(L)}`,D&&"error",F&&"required"],label:["label",z&&"disabled"],asterisk:["asterisk",D&&"error"]},r_,I)})(A),j={slots:y,slotProps:{...i,...x}},[C,k]=no("typography",{elementType:Tn,externalForwardedProps:j,ownerState:A});let P=p;return P==null||P.type===Tn||c||(P=s.jsx(C,{component:"span",...k,className:Dt(T.label,k?.className),children:P})),s.jsxs(i_,{className:Dt(T.root,r),ownerState:A,ref:t,...b,children:[Z.cloneElement(a,R),S?s.jsxs("div",{children:[P,s.jsxs(a_,{ownerState:A,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):P]})});function l_(e){return In("MuiFormHelperText",e)}const S6=En("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var C6;const s_=Et("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${S6.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${S6.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),c_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormHelperText"}),{children:o,className:r,component:i="p",disabled:a,error:l,filled:c,focused:d,margin:p,required:h,variant:f,...g}=n,m=Wl({props:n,muiFormControl:Ra(),states:["variant","size","disabled","error","filled","focused","required"]}),y={...n,component:i,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete y.ownerState;const x=(v=>{const{classes:b,contained:w,size:E,disabled:S,error:R,filled:_,focused:A,required:T}=v;return Pn({root:["root",S&&"disabled",R&&"error",E&&`size${xt(E)}`,w&&"contained",A&&"focused",_&&"filled",T&&"required"]},l_,b)})(y);return s.jsx(s_,{as:i,className:Dt(x.root,r),ref:t,...g,ownerState:y,children:o===" "?C6||(C6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function d_(e){return In("MuiFormLabel",e)}const pc=En("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),u_=Et("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&.${pc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${pc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),p_=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vn(({theme:e})=>({[`&.${pc.error}`]:{color:(e.vars||e).palette.error.main}}))),h_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormLabel"}),{children:o,className:r,color:i,component:a="label",disabled:l,error:c,filled:d,focused:p,required:h,...f}=n,g=Wl({props:n,muiFormControl:Ra(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},y=(x=>{const{classes:v,color:b,focused:w,disabled:E,error:S,filled:R,required:_}=x;return Pn({root:["root",`color${xt(b)}`,E&&"disabled",S&&"error",R&&"filled",w&&"focused",_&&"required"],asterisk:["asterisk",S&&"error"]},d_,v)})(m);return s.jsxs(u_,{as:a,ownerState:m,className:Dt(y.root,r),ref:t,...f,children:[o,g.required&&s.jsxs(p_,{ownerState:m,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function O5(e){return`scale(${e}, ${e**2})`}const f_={entering:{opacity:1,transform:O5(1)},entered:{opacity:1,transform:"none"}},tp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Dc=Z.forwardRef(function(e,t){const{addEndListener:n,appear:o=!0,children:r,easing:i,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:f,style:g,timeout:m="auto",TransitionComponent:y=Bi,...x}=e,v=bl(),b=Z.useRef(),w=Qs(),E=Z.useRef(null),S=Xo(E,Ys(r),t),R=P=>O=>{if(P){const I=E.current;O===void 0?P(I):P(I,O)}},_=R(d),A=R((P,O)=>{nx(P);const{duration:I,delay:z,easing:L}=Rc({style:g,timeout:m,easing:i},{mode:"enter"});let D;m==="auto"?(D=w.transitions.getAutoHeightDuration(P.clientHeight),b.current=D):D=I,P.style.transition=[w.transitions.create("opacity",{duration:D,delay:z}),w.transitions.create("transform",{duration:tp?D:.666*D,delay:z,easing:L})].join(","),l&&l(P,O)}),T=R(c),j=R(f),C=R(P=>{const{duration:O,delay:I,easing:z}=Rc({style:g,timeout:m,easing:i},{mode:"exit"});let L;m==="auto"?(L=w.transitions.getAutoHeightDuration(P.clientHeight),b.current=L):L=O,P.style.transition=[w.transitions.create("opacity",{duration:L,delay:I}),w.transitions.create("transform",{duration:tp?L:.666*L,delay:tp?I:I||.333*L,easing:z})].join(","),P.style.opacity=0,P.style.transform=O5(.75),p&&p(P)}),k=R(h);return s.jsx(y,{appear:o,in:a,nodeRef:E,onEnter:A,onEntered:T,onEntering:_,onExit:C,onExited:k,onExiting:j,addEndListener:P=>{m==="auto"&&v.start(b.current||0,P),n&&n(E.current,P)},timeout:m==="auto"?null:m,...x,children:(P,{ownerState:O,...I})=>Z.cloneElement(r,{style:{opacity:0,transform:O5(.75),visibility:P!=="exited"||a?void 0:"hidden",...f_[P],...g,...r.props.style},ref:S,...I})})});Dc&&(Dc.muiSupportAuto=!0);const m_=Ay({themeId:i1}),g_=Et(m2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h2(e,t),!n.disableUnderline&&t.underline]}})(vn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${y0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${y0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${y0.disabled}, .${y0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${y0.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),y_=Et(g2,{name:"MuiInput",slot:"Input",overridesResolver:f2})({}),Ul=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:r={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:h="text",...f}=n,g=(b=>{const{classes:w,disableUnderline:E}=b,S=Pn({root:["root",!E&&"underline"],input:["input"]},rT,w);return{...w,...S}})(n),m={root:{ownerState:{disableUnderline:o}}},y=d??i?cr(d??i,m):m,x=p.root??r.Root??g_,v=p.input??r.Input??y_;return s.jsx(y3,{slots:{root:x,input:v},slotProps:y,fullWidth:a,inputComponent:l,multiline:c,ref:t,type:h,...f,classes:g})});function x_(e){return In("MuiInputAdornment",e)}Ul.muiName="Input";const k6=En("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var E6;const b_=Et("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]}})(vn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${k6.positionStart}&:not(.${k6.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),yx=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...p}=n,h=Ra()||{};let f=d;d&&h.variant,h&&!f&&(f=h.variant);const g={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:f},m=(y=>{const{classes:x,disablePointerEvents:v,hiddenLabel:b,position:w,size:E,variant:S}=y;return Pn({root:["root",v&&"disablePointerEvents",w&&`position${xt(w)}`,S,b&&"hiddenLabel",E&&`size${xt(E)}`]},x_,x)})(g);return s.jsx(p2.Provider,{value:null,children:s.jsx(b_,{as:i,ownerState:g,className:Dt(m.root,r),ref:t,...p,children:typeof o!="string"||l?s.jsxs(Z.Fragment,{children:[c==="start"?E6||(E6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]}):s.jsx(Tn,{color:"textSecondary",children:o})})})});function v_(e){return In("MuiInputLabel",e)}En("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const w_=Et(h_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xx=Z.forwardRef(function(e,t){const n=An({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:r,shrink:i,variant:a,className:l,...c}=n,d=Ra();let p=i;p===void 0&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Wl({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),f={...n,disableAnimation:o,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=(m=>{const{classes:y,formControl:x,size:v,shrink:b,disableAnimation:w,variant:E,required:S}=m,R=Pn({root:["root",x&&"formControl",!w&&"animated",b&&"shrink",v&&v!=="normal"&&`size${xt(v)}`,E],asterisk:[S&&"asterisk"]},v_,y);return{...y,...R}})(f);return s.jsx(w_,{"data-shrink":p,ref:t,className:Dt(g.root,l),...c,ownerState:f,classes:g})}),pu=Z.createContext({});function S_(e){return In("MuiList",e)}En("MuiList",["root","padding","dense","subheader"]);const C_=Et("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),k_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiList"}),{children:o,className:r,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=n,p=Z.useMemo(()=>({dense:a}),[a]),h={...n,component:i,dense:a,disablePadding:l},f=(g=>{const{classes:m,disablePadding:y,dense:x,subheader:v}=g;return Pn({root:["root",!y&&"padding",x&&"dense",v&&"subheader"]},S_,m)})(h);return s.jsx(pu.Provider,{value:p,children:s.jsxs(C_,{as:i,className:Dt(f.root,r),ref:t,ownerState:h,...d,children:[c,o]})})});function E_(e){return In("MuiListItemIcon",e)}const M6=En("MuiListItemIcon",["root","alignItemsFlexStart"]),M_=Et("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),T_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiListItemIcon"}),{className:o,...r}=n,i=Z.useContext(pu),a={...n,alignItems:i.alignItems},l=(c=>{const{alignItems:d,classes:p}=c;return Pn({root:["root",d==="flex-start"&&"alignItemsFlexStart"]},E_,p)})(a);return s.jsx(M_,{className:Dt(l.root,o),ownerState:a,ref:t,...r})}),T6=En("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function np(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _6(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bx(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length!==0&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function x0(e,t,n,o,r,i){let a=!1,l=r(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=!o&&(l.disabled||l.getAttribute("aria-disabled")==="true");if(l.hasAttribute("tabindex")&&bx(l,i)&&!c)return l.focus(),!0;l=r(e,l,n)}return!1}const __=Z.forwardRef(function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,f=Z.useRef(null),g=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qr(()=>{o&&f.current.focus()},[o]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const w=!f.current.style.width;if(v.clientHeight<f.current.clientHeight&&w){const E=`${By(Vi(v))}px`;f.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=E,f.current.style.width=`calc(100% + ${E})`}return f.current}}),[]);const m=Xo(f,t);let y=-1;Z.Children.forEach(i,(v,b)=>{Z.isValidElement(v)?(v.props.disabled||(p==="selectedMenu"&&v.props.selected||y===-1)&&(y=b),y===b&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(y+=1,y>=i.length&&(y=-1))):y===b&&(y+=1,y>=i.length&&(y=-1))});const x=Z.Children.map(i,(v,b)=>{if(b===y){const w={};return r&&(w.autoFocus=!0),v.props.tabIndex===void 0&&p==="selectedMenu"&&(w.tabIndex=0),Z.cloneElement(v,w)}return v});return s.jsx(k_,{role:"menu",ref:m,className:a,onKeyDown:v=>{const b=f.current,w=v.key;if(v.ctrlKey||v.metaKey||v.altKey)return void(d&&d(v));const E=ur(b).activeElement;if(w==="ArrowDown")v.preventDefault(),x0(b,E,c,l,np);else if(w==="ArrowUp")v.preventDefault(),x0(b,E,c,l,_6);else if(w==="Home")v.preventDefault(),x0(b,null,c,l,np);else if(w==="End")v.preventDefault(),x0(b,null,c,l,_6);else if(w.length===1){const S=g.current,R=w.toLowerCase(),_=performance.now();S.keys.length>0&&(_-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&R!==S.keys[0]&&(S.repeating=!1)),S.lastTime=_,S.keys.push(R);const A=E&&!S.repeating&&bx(E,S);S.previousKeyMatched&&(A||x0(b,E,!1,l,np,S))?v.preventDefault():S.previousKeyMatched=!1}d&&d(v)},tabIndex:o?0:-1,...h,children:x})});function j_(e){return In("MuiPopover",e)}function j6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function R6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function I6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function U1(e){return typeof e=="function"?e():e}En("MuiPopover",["root","paper"]);const R_=Et($T,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vx=Et(Mi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),I_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:p,elevation:h=8,marginThreshold:f=16,open:g,PaperProps:m={},slots:y={},slotProps:x={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:E={},disableScrollLock:S=!1,...R}=n,_=Z.useRef(),A={...n,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:f,transformOrigin:v,TransitionComponent:b,transitionDuration:w,TransitionProps:E},T=(H=>{const{classes:ne}=H;return Pn({root:["root"],paper:["paper"]},j_,ne)})(A),j=Z.useCallback(()=>{if(l==="anchorPosition")return a;const H=U1(r),ne=(H&&H.nodeType===1?H:ur(_.current).body).getBoundingClientRect();return{top:ne.top+j6(ne,i.vertical),left:ne.left+R6(ne,i.horizontal)}},[r,i.horizontal,i.vertical,a,l]),C=Z.useCallback(H=>({vertical:j6(H,v.vertical),horizontal:R6(H,v.horizontal)}),[v.horizontal,v.vertical]),k=Z.useCallback(H=>{const ne={width:H.offsetWidth,height:H.offsetHeight},oe=C(ne);if(l==="none")return{top:null,left:null,transformOrigin:I6(oe)};const ge=j();let de=ge.top-oe.vertical,ye=ge.left-oe.horizontal;const ve=de+ne.height,be=ye+ne.width,re=Vi(U1(r)),ce=re.innerHeight-f,we=re.innerWidth-f;if(f!==null&&de<f){const ae=de-f;de-=ae,oe.vertical+=ae}else if(f!==null&&ve>ce){const ae=ve-ce;de-=ae,oe.vertical+=ae}if(f!==null&&ye<f){const ae=ye-f;ye-=ae,oe.horizontal+=ae}else if(be>we){const ae=be-we;ye-=ae,oe.horizontal+=ae}return{top:`${Math.round(de)}px`,left:`${Math.round(ye)}px`,transformOrigin:I6(oe)}},[r,l,j,C,f]),[P,O]=Z.useState(g),I=Z.useCallback(()=>{const H=_.current;if(!H)return;const ne=k(H);ne.top!==null&&H.style.setProperty("top",ne.top),ne.left!==null&&(H.style.left=ne.left),H.style.transformOrigin=ne.transformOrigin,O(!0)},[k]);Z.useEffect(()=>(S&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[r,S,I]),Z.useEffect(()=>{g&&I()}),Z.useImperativeHandle(o,()=>g?{updatePosition:()=>{I()}}:null,[g,I]),Z.useEffect(()=>{if(!g)return;const H=s2(()=>{I()}),ne=Vi(U1(r));return ne.addEventListener("resize",H),()=>{H.clear(),ne.removeEventListener("resize",H)}},[r,g,I]);let z=w;const L={slots:{transition:b,...y},slotProps:{transition:E,paper:m,...x}},[D,F]=no("transition",{elementType:Dc,externalForwardedProps:L,ownerState:A,getSlotProps:H=>({...H,onEntering:(ne,oe)=>{H.onEntering?.(ne,oe),I()},onExited:ne=>{H.onExited?.(ne),O(!1)}}),additionalProps:{appear:!0,in:g}});w!=="auto"||D.muiSupportAuto||(z=void 0);const B=p||(r?ur(U1(r)).body:void 0),[M,{slots:N,slotProps:V,...U}]=no("root",{ref:t,elementType:R_,externalForwardedProps:{...L,...R},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:Qy(typeof x.backdrop=="function"?x.backdrop(A):x.backdrop,{invisible:!0})},container:B,open:g},ownerState:A,className:Dt(T.root,d)}),[J,X]=no("paper",{ref:_,className:T.paper,elementType:vx,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:P?void 0:{opacity:0}},ownerState:A});return s.jsx(M,{...U,...!wl(M)&&{slots:N,slotProps:V,disableScrollLock:S},children:s.jsx(D,{...F,timeout:z,children:s.jsx(J,{...X,children:c})})})});function P_(e){return In("MuiMenu",e)}En("MuiMenu",["root","paper","list"]);const O_={vertical:"top",horizontal:"right"},D_={vertical:"top",horizontal:"left"},L_=Et(I_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A_=Et(vx,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),z_=Et(__,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),F_=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:g,...m}={},variant:y="selectedMenu",slots:x={},slotProps:v={},...b}=n,w=Js(),E={...n,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:f,TransitionProps:m,variant:y},S=(z=>{const{classes:L}=z;return Pn({root:["root"],paper:["paper"],list:["list"]},P_,L)})(E),R=o&&!a&&d,_=Z.useRef(null);let A=-1;Z.Children.map(r,(z,L)=>{Z.isValidElement(z)&&(z.props.disabled||(y==="selectedMenu"&&z.props.selected||A===-1)&&(A=L))});const T={slots:x,slotProps:{list:l,transition:m,paper:p,...v}},j=$r({elementType:x.root,externalSlotProps:v.root,ownerState:E,className:[S.root,i]}),[C,k]=no("paper",{className:S.paper,elementType:A_,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:E}),[P,O]=no("list",{className:Dt(S.list,l.className),elementType:z_,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:z=>({...z,onKeyDown:L=>{(D=>{D.key==="Tab"&&(D.preventDefault(),c&&c(D,"tabKeyDown"))})(L),z.onKeyDown?.(L)}}),ownerState:E}),I=typeof T.slotProps.transition=="function"?T.slotProps.transition(E):T.slotProps.transition;return s.jsx(L_,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?O_:D_,slots:{root:x.root,paper:C,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:k,backdrop:typeof v.backdrop=="function"?v.backdrop(E):v.backdrop,transition:{...I,onEntering:(...z)=>{((L,D)=>{_.current&&_.current.adjustStyleForScrollbar(L,{direction:w?"rtl":"ltr"}),g&&g(L,D)})(...z),I?.onEntering?.(...z)}}},open:d,ref:t,transitionDuration:f,ownerState:E,...b,classes:h,children:s.jsx(P,{actions:_,autoFocus:o&&(A===-1||a),autoFocusItem:R,variant:y,...O,children:r})})});function B_(e){return In("MuiMenuItem",e)}const b0=En("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),N_=Et(el,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(vn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ht(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${b0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ht(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${b0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${b0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${w6.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${w6.inset}`]:{marginLeft:52},[`& .${T6.root}`]:{marginTop:0,marginBottom:0},[`& .${T6.inset}`]:{paddingLeft:36},[`& .${M6.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${M6.root} svg`]:{fontSize:"1.25rem"}}}]}))),y1=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:p,className:h,...f}=n,g=Z.useContext(pu),m=Z.useMemo(()=>({dense:i||g.dense||!1,disableGutters:l}),[g.dense,i,l]),y=Z.useRef(null);qr(()=>{o&&y.current&&y.current.focus()},[o]);const x={...n,dense:m.dense,divider:a,disableGutters:l},v=(E=>{const{disabled:S,dense:R,divider:_,disableGutters:A,selected:T,classes:j}=E,C=Pn({root:["root",R&&"dense",S&&"disabled",!A&&"gutters",_&&"divider",T&&"selected"]},B_,j);return{...j,...C}})(n),b=Xo(y,t);let w;return n.disabled||(w=p!==void 0?p:-1),s.jsx(pu.Provider,{value:m,children:s.jsx(N_,{ref:b,role:d,tabIndex:w,component:r,focusVisibleClassName:Dt(v.focusVisible,c),className:Dt(v.root,h),...f,ownerState:x,classes:v})})});function $_(e){return In("MuiNativeSelect",e)}const b3=En("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wx=Et("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${b3.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),V_=Et(wx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b3.multiple}`]:t.multiple}]}})({}),Sx=Et("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${b3.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),H_=Et(Sx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xt(n.variant)}`],n.open&&t.iconOpen]}})({}),W_=Z.forwardRef(function(e,t){const{className:n,disabled:o,error:r,IconComponent:i,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:r},p=(h=>{const{classes:f,variant:g,disabled:m,multiple:y,open:x,error:v}=h;return Pn({select:["select",g,m&&"disabled",y&&"multiple",v&&"error"],icon:["icon",`icon${xt(g)}`,x&&"iconOpen",m&&"disabled"]},$_,f)})(d);return s.jsxs(Z.Fragment,{children:[s.jsx(V_,{ownerState:d,className:Dt(p.select,n),disabled:o,ref:a||t,...c}),e.multiple?null:s.jsx(H_,{as:i,ownerState:d,className:p.icon})]})});var P6;const U_=Et("fieldset",{shouldForwardProp:Xr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),q_=Et("legend",{shouldForwardProp:Xr})(vn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))),K_=Et(m2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:h2})(vn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{color:n},style:{[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Zi.error} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zi.disabled} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),G_=Et(function(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return s.jsx(U_,{"aria-hidden":!0,className:o,ownerState:c,...a,children:s.jsx(q_,{ownerState:c,children:l?s.jsx("span",{children:r}):P6||(P6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Z_=Et(g2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:f2})(vn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),v3=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:r=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:p={},type:h="text",...f}=n,g=(S=>{const{classes:R}=S,_=Pn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iT,R);return{...R,..._}})(n),m=Ra(),y=Wl({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:r,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},v=d.root??o.Root??K_,b=d.input??o.Input??Z_,[w,E]=no("notchedOutline",{elementType:G_,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&y.required?s.jsxs(Z.Fragment,{children:[a," ","*"]}):a}});return s.jsx(y3,{slots:{root:v,input:b},slotProps:p,renderSuffix:S=>s.jsx(w,{...E,notched:c!==void 0?c:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:r,inputComponent:i,multiline:l,ref:t,type:h,...f,classes:{...g,notchedOutline:null}})});function Cx(e){return In("MuiSelect",e)}v3.muiName="Input";const v0=En("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var O6;const X_=Et(wx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${v0.select}`]:t.select},{[`&.${v0.select}`]:t[n.variant]},{[`&.${v0.error}`]:t.error},{[`&.${v0.multiple}`]:t.multiple}]}})({[`&.${v0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Y_=Et(Sx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xt(n.variant)}`],n.open&&t.iconOpen]}})({}),J_=Et("input",{shouldForwardProp:e=>d2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function D6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Q_(e){return e==null||typeof e=="string"&&!e.trim()}const ej=Z.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":o,autoFocus:r,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:g,inputRef:m,labelId:y,MenuProps:x={},multiple:v,name:b,onBlur:w,onChange:E,onClose:S,onFocus:R,onOpen:_,open:A,readOnly:T,renderValue:j,required:C,SelectDisplayProps:k={},tabIndex:P,type:O,value:I,variant:z="standard",...L}=e,[D,F]=jc({controlled:I,default:d,name:"Select"}),[B,M]=jc({controlled:A,default:c,name:"Select"}),N=Z.useRef(null),V=Z.useRef(null),[U,J]=Z.useState(null),{current:X}=Z.useRef(A!=null),[H,ne]=Z.useState(),oe=Xo(t,m),ge=Z.useCallback(Ge=>{V.current=Ge,Ge&&J(Ge)},[]),de=U?.parentNode;Z.useImperativeHandle(oe,()=>({focus:()=>{V.current.focus()},node:N.current,value:D}),[D]),Z.useEffect(()=>{c&&B&&U&&!X&&(ne(i?null:de.clientWidth),V.current.focus())},[U,i]),Z.useEffect(()=>{r&&V.current.focus()},[r]),Z.useEffect(()=>{if(!y)return;const Ge=ur(V.current).getElementById(y);if(Ge){const Be=()=>{getSelection().isCollapsed&&V.current.focus()};return Ge.addEventListener("click",Be),()=>{Ge.removeEventListener("click",Be)}}},[y]);const ye=(Ge,Be)=>{Ge?_&&_(Be):S&&S(Be),X||(ne(i?null:de.clientWidth),M(Ge))},ve=Z.Children.toArray(a),be=Ge=>Be=>{let ct;if(Be.currentTarget.hasAttribute("tabindex")){if(v){ct=Array.isArray(D)?D.slice():[];const Ye=D.indexOf(Ge.props.value);Ye===-1?ct.push(Ge.props.value):ct.splice(Ye,1)}else ct=Ge.props.value;if(Ge.props.onClick&&Ge.props.onClick(Be),D!==ct&&(F(ct),E)){const Ye=Be.nativeEvent||Be,he=new Ye.constructor(Ye.type,Ye);Object.defineProperty(he,"target",{writable:!0,value:{value:ct,name:b}}),E(he,Ge)}v||ye(!1,Be)}},re=U!==null&&B;let ce,we;delete L["aria-invalid"];const ae=[];let Y=!1;(uu({value:D})||h)&&(j?ce=j(D):Y=!0);const le=ve.map(Ge=>{if(!Z.isValidElement(Ge))return null;let Be;if(v){if(!Array.isArray(D))throw new Error(Ma(2));Be=D.some(ct=>D6(ct,Ge.props.value)),Be&&Y&&ae.push(Ge.props.children)}else Be=D6(D,Ge.props.value),Be&&Y&&(we=Ge.props.children);return Z.cloneElement(Ge,{"aria-selected":Be?"true":"false",onClick:be(Ge),onKeyUp:ct=>{ct.key===" "&&ct.preventDefault(),Ge.props.onKeyUp&&Ge.props.onKeyUp(ct)},role:"option",selected:Be,value:void 0,"data-value":Ge.props.value})});Y&&(ce=v?ae.length===0?null:ae.reduce((Ge,Be,ct)=>(Ge.push(Be),ct<ae.length-1&&Ge.push(", "),Ge),[]):we);let ee,Ie=H;!i&&X&&U&&(Ie=de.clientWidth),ee=P!==void 0?P:p?null:0;const Me=k.id||(b?`mui-component-select-${b}`:void 0),ot={...e,variant:z,value:D,open:re,error:f},Ve=(Ge=>{const{classes:Be,variant:ct,disabled:Ye,multiple:he,open:Ze,error:Se}=Ge;return Pn({select:["select",ct,Ye&&"disabled",he&&"multiple",Se&&"error"],icon:["icon",`icon${xt(ct)}`,Ze&&"iconOpen",Ye&&"disabled"],nativeInput:["nativeInput"]},Cx,Be)})(ot),Ce={...x.PaperProps,...x.slotProps?.paper},je=h1();return s.jsxs(Z.Fragment,{children:[s.jsx(X_,{as:"div",ref:ge,tabIndex:ee,role:"combobox","aria-controls":re?je:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,Me].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":C?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Ge=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Ge.key)&&(Ge.preventDefault(),ye(!0,Ge))},onMouseDown:p||T?null:Ge=>{Ge.button===0&&(Ge.preventDefault(),V.current.focus(),ye(!0,Ge))},onBlur:Ge=>{!re&&w&&(Object.defineProperty(Ge,"target",{writable:!0,value:{value:D,name:b}}),w(Ge))},onFocus:R,...k,ownerState:ot,className:Dt(k.className,Ve.select,l),id:Me,children:Q_(ce)?O6||(O6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ce}),s.jsx(J_,{"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:b,ref:N,"aria-hidden":!0,onChange:Ge=>{const Be=ve.find(ct=>ct.props.value===Ge.target.value);Be!==void 0&&(F(Be.props.value),E&&E(Ge,Be))},tabIndex:-1,disabled:p,className:Ve.nativeInput,autoFocus:r,required:C,...L,ownerState:ot}),s.jsx(Y_,{as:g,className:Ve.icon,ownerState:ot}),s.jsx(F_,{id:`menu-${b||""}`,anchorEl:de,open:re,onClose:Ge=>{ye(!1,Ge)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:je,...x.MenuListProps},paper:{...Ce,style:{minWidth:Ie,...Ce!=null?Ce.style:null}}},children:le})]})}),w3={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xr(e)&&e!=="variant",slot:"Root"},tj=Et(Ul,w3)(""),nj=Et(v3,w3)(""),oj=Et(x3,w3)(""),y2=Z.forwardRef(function(e,t){const n=An({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=lT,id:p,input:h,inputProps:f,label:g,labelId:m,MenuProps:y,multiple:x=!1,native:v=!1,onClose:b,onOpen:w,open:E,renderValue:S,SelectDisplayProps:R,variant:_="outlined",...A}=n,T=v?W_:ej,j=Wl({props:n,muiFormControl:Ra(),states:["variant","error"]}),C=j.variant||_,k={...n,variant:C,classes:i},P=(D=>{const{classes:F}=D,B=Pn({root:["root"]},Cx,F);return{...F,...B}})(k),{root:O,...I}=P,z=h||{standard:s.jsx(tj,{ownerState:k}),outlined:s.jsx(nj,{label:g,ownerState:k}),filled:s.jsx(oj,{ownerState:k})}[C],L=Xo(t,Ys(z));return s.jsx(Z.Fragment,{children:Z.cloneElement(z,{inputComponent:T,inputProps:{children:r,error:j.error,IconComponent:d,variant:C,type:void 0,multiple:x,...v?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:y,onClose:b,onOpen:w,open:E,renderValue:S,SelectDisplayProps:{id:p,...R}},...f,classes:f?cr(I,f.classes):I,...h?h.props.inputProps:{}},...(x&&v||c)&&C==="outlined"?{notched:!0}:{},ref:L,className:Dt(z.props.className,a,P.root),...!h&&{variant:C},...A})})});y2.muiName="Select";function Yl(e,t,n,o,r){return n===1?Math.min(e+t,r):Math.max(e-t,o)}function kx(e,t){return e-t}function L6(e,t){const{index:n}=e.reduce((o,r,i)=>{const a=Math.abs(t-r);return o===null||a<o.distance||a===o.distance?{distance:a,index:i}:o},null)??{};return n}function q1(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let o=0;o<n.changedTouches.length;o+=1){const r=n.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function hu(e,t,n){return 100*(e-t)/(n-t)}function rj(e,t,n){const o=Math.round((e-n)/t)*t+n;return Number(o.toFixed(function(r){if(Math.abs(r)<1){const a=r.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const i=r.toString().split(".")[1];return i?i.length:0}(t)))}function A6({values:e,newValue:t,index:n}){const o=e.slice();return o[n]=t,o.sort(kx)}function K1({sliderRef:e,activeIndex:t,setActive:n}){const o=ur(e.current);e.current?.contains(o.activeElement)&&Number(o?.activeElement?.getAttribute("data-index"))===t||e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function G1(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"&&function(n,o,r=(i,a)=>i===a){return n.length===o.length&&n.every((i,a)=>r(i,o[a]))}(e,t)}const ij={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},aj=e=>e;let op;function z6(){return op===void 0&&(op=typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("touch-action","none")),op}function lj(e){const{"aria-labelledby":t,defaultValue:n,disabled:o=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:d,onChange:p,onChangeCommitted:h,orientation:f="horizontal",rootRef:g,scale:m=aj,step:y=1,shiftStep:x=10,tabIndex:v,value:b}=e,w=Z.useRef(void 0),[E,S]=Z.useState(-1),[R,_]=Z.useState(-1),[A,T]=Z.useState(!1),j=Z.useRef(0),C=Z.useRef(null),[k,P]=jc({controlled:b,default:n??c,name:"Slider"}),O=p&&((ae,Y,le)=>{const ee=ae.nativeEvent||ae,Ie=new ee.constructor(ee.type,ee);Object.defineProperty(Ie,"target",{writable:!0,value:{value:Y,name:d}}),C.current=Y,p(Ie,Y,le)}),I=Array.isArray(k);let z=I?k.slice().sort(kx):[k];z=z.map(ae=>ae==null?c:is(ae,c,l));const L=a===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((ae,Y)=>({value:c+y*Y})):a||[],D=L.map(ae=>ae.value),[F,B]=Z.useState(-1),M=Z.useRef(null),N=Xo(g,M),V=ae=>Y=>{const le=Number(Y.currentTarget.getAttribute("data-index"));Ps(Y.target)&&B(le),_(le),ae?.onFocus?.(Y)},U=ae=>Y=>{Ps(Y.target)||B(-1),_(-1),ae?.onBlur?.(Y)},J=(ae,Y)=>{const le=Number(ae.currentTarget.getAttribute("data-index")),ee=z[le],Ie=D.indexOf(ee);let Me=Y;if(L&&y==null){const ot=D[D.length-1];Me=Me>=ot?ot:Me<=D[0]?D[0]:Me<ee?D[Ie-1]:D[Ie+1]}if(Me=is(Me,c,l),I){r&&(Me=is(Me,z[le-1]||-1/0,z[le+1]||1/0));const ot=Me;Me=A6({values:z,newValue:Me,index:le});let Ve=le;r||(Ve=Me.indexOf(ot)),K1({sliderRef:M,activeIndex:Ve})}P(Me),B(le),O&&!G1(Me,k)&&O(ae,Me,le),h&&h(ae,C.current??Me)},X=ae=>Y=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Y.key)){Y.preventDefault();const le=Number(Y.currentTarget.getAttribute("data-index")),ee=z[le];let Ie=null;if(y!=null){const Me=Y.shiftKey?x:y;switch(Y.key){case"ArrowUp":Ie=Yl(ee,Me,1,c,l);break;case"ArrowRight":Ie=Yl(ee,Me,i?-1:1,c,l);break;case"ArrowDown":Ie=Yl(ee,Me,-1,c,l);break;case"ArrowLeft":Ie=Yl(ee,Me,i?1:-1,c,l);break;case"PageUp":Ie=Yl(ee,x,1,c,l);break;case"PageDown":Ie=Yl(ee,x,-1,c,l);break;case"Home":Ie=c;break;case"End":Ie=l}}else if(L){const Me=D[D.length-1],ot=D.indexOf(ee),Ve=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(Y.key)?Ie=ot===0?D[0]:D[ot-1]:Ve.includes(Y.key)&&(Ie=ot===D.length-1?Me:D[ot+1])}Ie!=null&&J(Y,Ie)}ae?.onKeyDown?.(Y)};qr(()=>{o&&M.current.contains(document.activeElement)&&document.activeElement?.blur()},[o]),o&&E!==-1&&S(-1),o&&F!==-1&&B(-1);const H=Z.useRef(void 0);let ne=f;i&&f==="horizontal"&&(ne+="-reverse");const oe=({finger:ae,move:Y=!1})=>{const{current:le}=M,{width:ee,height:Ie,bottom:Me,left:ot}=le.getBoundingClientRect();let Ve,Ce;if(Ve=ne.startsWith("vertical")?(Me-ae.y)/Ie:(ae.x-ot)/ee,ne.includes("-reverse")&&(Ve=1-Ve),Ce=function(Ge,Be,ct){return(ct-Be)*Ge+Be}(Ve,c,l),y)Ce=rj(Ce,y,c);else{const Ge=L6(D,Ce);Ce=D[Ge]}Ce=is(Ce,c,l);let je=0;if(I){je=Y?H.current:L6(z,Ce),r&&(Ce=is(Ce,z[je-1]||-1/0,z[je+1]||1/0));const Ge=Ce;Ce=A6({values:z,newValue:Ce,index:je}),r&&Y||(je=Ce.indexOf(Ge),H.current=je)}return{newValue:Ce,activeIndex:je}},ge=Ar(ae=>{const Y=q1(ae,w);if(!Y)return;if(j.current+=1,ae.type==="mousemove"&&ae.buttons===0)return void de(ae);const{newValue:le,activeIndex:ee}=oe({finger:Y,move:!0});K1({sliderRef:M,activeIndex:ee,setActive:S}),P(le),!A&&j.current>2&&T(!0),O&&!G1(le,k)&&O(ae,le,ee)}),de=Ar(ae=>{const Y=q1(ae,w);if(T(!1),!Y)return;const{newValue:le}=oe({finger:Y,move:!0});S(-1),ae.type==="touchend"&&_(-1),h&&h(ae,C.current??le),w.current=void 0,ve()}),ye=Ar(ae=>{if(o)return;z6()||ae.preventDefault();const Y=ae.changedTouches[0];Y!=null&&(w.current=Y.identifier);const le=q1(ae,w);if(le!==!1){const{newValue:Ie,activeIndex:Me}=oe({finger:le});K1({sliderRef:M,activeIndex:Me,setActive:S}),P(Ie),O&&!G1(Ie,k)&&O(ae,Ie,Me)}j.current=0;const ee=ur(M.current);ee.addEventListener("touchmove",ge,{passive:!0}),ee.addEventListener("touchend",de,{passive:!0})}),ve=Z.useCallback(()=>{const ae=ur(M.current);ae.removeEventListener("mousemove",ge),ae.removeEventListener("mouseup",de),ae.removeEventListener("touchmove",ge),ae.removeEventListener("touchend",de)},[de,ge]);Z.useEffect(()=>{const{current:ae}=M;return ae.addEventListener("touchstart",ye,{passive:z6()}),()=>{ae.removeEventListener("touchstart",ye),ve()}},[ve,ye]),Z.useEffect(()=>{o&&ve()},[o,ve]);const be=hu(I?z[0]:c,c,l),re=hu(z[z.length-1],c,l)-be,ce=ae=>Y=>{ae.onMouseLeave?.(Y),_(-1)};let we;return f==="vertical"&&(we=i?"vertical-rl":"vertical-lr"),{active:E,axis:ne,axisProps:ij,dragging:A,focusedThumbIndex:F,getHiddenInputProps:(ae={})=>{const Y=cc(ae),le={onChange:(ee=Y||{},Me=>{ee.onChange?.(Me),J(Me,Me.target.valueAsNumber)}),onFocus:V(Y||{}),onBlur:U(Y||{}),onKeyDown:X(Y||{})};var ee;const Ie={...Y,...le};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(l),"aria-valuemin":m(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:o,...ae,...Ie,style:{...IE,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:we}}},getRootProps:(ae={})=>{const Y=cc(ae),le={onMouseDown:(ee=Y||{},Me=>{if(ee.onMouseDown?.(Me),o||Me.defaultPrevented||Me.button!==0)return;Me.preventDefault();const ot=q1(Me,w);if(ot!==!1){const{newValue:Ce,activeIndex:je}=oe({finger:ot});K1({sliderRef:M,activeIndex:je,setActive:S}),P(Ce),O&&!G1(Ce,k)&&O(Me,Ce,je)}j.current=0;const Ve=ur(M.current);Ve.addEventListener("mousemove",ge,{passive:!0}),Ve.addEventListener("mouseup",de)})};var ee;const Ie={...Y,...le};return{...ae,ref:N,...Ie}},getThumbProps:(ae={})=>{const Y=cc(ae),le={onMouseOver:(ee=Y||{},Ie=>{ee.onMouseOver?.(Ie);const Me=Number(Ie.currentTarget.getAttribute("data-index"));_(Me)}),onMouseLeave:ce(Y||{})};var ee;return{...ae,...Y,...le}},marks:L,open:R,range:I,rootRef:N,trackLeap:re,trackOffset:be,values:z,getThumbStyle:ae=>({pointerEvents:E!==-1&&E!==ae?"none":void 0})}}function sj(e){return In("MuiSlider",e)}const wi=En("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);function F6(e){return e}const cj=Et("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${xt(n.color)}`],n.size!=="medium"&&t[`size${xt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(vn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${wi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${wi.dragging}`]:{[`& .${wi.thumb}, & .${wi.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),dj=Et("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),uj=Et("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(vn(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:Pl(e.palette[t].main,.62),borderColor:Pl(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Il(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Il(e.palette[t].main,.5)})}}}))]}))),pj=Et("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${xt(n.color)}`],n.size!=="medium"&&t[`thumbSize${xt(n.size)}`]]}})(vn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${wi.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${wi.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ht(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${wi.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ht(e.palette[t].main,.16)}`}}}}))]}))),hj=Et(function(e){const{children:t,className:n,value:o}=e,r=(i=>{const{open:a}=i;return{offset:Dt(a&&wi.valueLabelOpen),circle:wi.valueLabelCircle,label:wi.valueLabelLabel}})(e);return t?Z.cloneElement(t,{className:Dt(t.props.className)},s.jsxs(Z.Fragment,{children:[t.props.children,s.jsx("span",{className:Dt(r.offset,n),"aria-hidden":!0,children:s.jsx("span",{className:r.circle,children:s.jsx("span",{className:r.label,children:o})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(vn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${wi.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${wi.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),fj=Et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>d2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(vn(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),mj=Et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>d2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(vn(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),gj=({children:e})=>e,yj=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiSlider"}),o=Js(),{"aria-label":r,"aria-valuetext":i,"aria-labelledby":a,component:l="span",components:c={},componentsProps:d={},color:p="primary",classes:h,className:f,disableSwap:g=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:x,marks:v=!1,max:b=100,min:w=0,name:E,onChange:S,onChangeCommitted:R,orientation:_="horizontal",shiftStep:A=10,size:T="medium",step:j=1,scale:C=F6,slotProps:k,slots:P,tabIndex:O,track:I="normal",value:z,valueLabelDisplay:L="off",valueLabelFormat:D=F6,...F}=n,B={...n,isRtl:o,max:b,min:w,classes:h,disabled:m,disableSwap:g,orientation:_,marks:v,color:p,size:T,step:j,shiftStep:A,scale:C,track:I,valueLabelDisplay:L,valueLabelFormat:D},{axisProps:M,getRootProps:N,getHiddenInputProps:V,getThumbProps:U,open:J,active:X,axis:H,focusedThumbIndex:ne,range:oe,dragging:ge,marks:de,values:ye,trackOffset:ve,trackLeap:be,getThumbStyle:re}=lj({...B,rootRef:t});B.marked=de.length>0&&de.some(se=>se.label),B.dragging=ge,B.focusedThumbIndex=ne;const ce=(se=>{const{disabled:te,dragging:ie,marked:pe,orientation:me,track:fe,classes:_e,color:Fe,size:qe}=se;return Pn({root:["root",te&&"disabled",ie&&"dragging",pe&&"marked",me==="vertical"&&"vertical",fe==="inverted"&&"trackInverted",fe===!1&&"trackFalse",Fe&&`color${xt(Fe)}`,qe&&`size${xt(qe)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",te&&"disabled",qe&&`thumbSize${xt(qe)}`,Fe&&`thumbColor${xt(Fe)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},sj,_e)})(B),we=P?.root??c.Root??cj,ae=P?.rail??c.Rail??dj,Y=P?.track??c.Track??uj,le=P?.thumb??c.Thumb??pj,ee=P?.valueLabel??c.ValueLabel??hj,Ie=P?.mark??c.Mark??fj,Me=P?.markLabel??c.MarkLabel??mj,ot=P?.input??c.Input??"input",Ve=k?.root??d.root,Ce=k?.rail??d.rail,je=k?.track??d.track,Ge=k?.thumb??d.thumb,Be=k?.valueLabel??d.valueLabel,ct=k?.mark??d.mark,Ye=k?.markLabel??d.markLabel,he=k?.input??d.input,Ze=$r({elementType:we,getSlotProps:N,externalSlotProps:Ve,externalForwardedProps:F,additionalProps:{...(Se=we,(!Se||!wl(Se))&&{as:l})},ownerState:{...B,...Ve?.ownerState},className:[ce.root,f]});var Se;const Re=$r({elementType:ae,externalSlotProps:Ce,ownerState:B,className:ce.rail}),ue=$r({elementType:Y,externalSlotProps:je,additionalProps:{style:{...M[H].offset(ve),...M[H].leap(be)}},ownerState:{...B,...je?.ownerState},className:ce.track}),De=$r({elementType:le,getSlotProps:U,externalSlotProps:Ge,ownerState:{...B,...Ge?.ownerState},className:ce.thumb}),Le=$r({elementType:ee,externalSlotProps:Be,ownerState:{...B,...Be?.ownerState},className:ce.valueLabel}),W=$r({elementType:Ie,externalSlotProps:ct,ownerState:B,className:ce.mark}),Q=$r({elementType:Me,externalSlotProps:Ye,ownerState:B,className:ce.markLabel}),q=$r({elementType:ot,getSlotProps:V,externalSlotProps:he,ownerState:B});return s.jsxs(we,{...Ze,children:[s.jsx(ae,{...Re}),s.jsx(Y,{...ue}),de.filter(se=>se.value>=w&&se.value<=b).map((se,te)=>{const ie=hu(se.value,w,b),pe=M[H].offset(ie);let me;return me=I===!1?ye.includes(se.value):I==="normal"&&(oe?se.value>=ye[0]&&se.value<=ye[ye.length-1]:se.value<=ye[0])||I==="inverted"&&(oe?se.value<=ye[0]||se.value>=ye[ye.length-1]:se.value>=ye[0]),s.jsxs(Z.Fragment,{children:[s.jsx(Ie,{"data-index":te,...W,...!wl(Ie)&&{markActive:me},style:{...pe,...W.style},className:Dt(W.className,me&&ce.markActive)}),se.label!=null?s.jsx(Me,{"aria-hidden":!0,"data-index":te,...Q,...!wl(Me)&&{markLabelActive:me},style:{...pe,...Q.style},className:Dt(ce.markLabel,Q.className,me&&ce.markLabelActive),children:se.label}):null]},te)}),ye.map((se,te)=>{const ie=hu(se,w,b),pe=M[H].offset(ie),me=L==="off"?gj:ee;return s.jsx(me,{...!wl(me)&&{valueLabelFormat:D,valueLabelDisplay:L,value:typeof D=="function"?D(C(se),te):D,index:te,open:J===te||X===te||L==="on",disabled:m},...Le,children:s.jsx(le,{"data-index":te,...De,className:Dt(ce.thumb,De.className,X===te&&ce.active,ne===te&&ce.focusVisible),style:{...pe,...re(te),...De.style},children:s.jsx(ot,{"data-index":te,"aria-label":y?y(te):r,"aria-valuenow":C(se),"aria-labelledby":a,"aria-valuetext":x?x(C(se),te):i,value:ye[te],...q})})},te)})]})});function xj(e){return In("MuiTooltip",e)}const Ao=En("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bj=Et(g3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(vn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ao.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ao.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ao.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ao.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ao.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ao.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ao.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ao.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),vj=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${xt(n.placement.split("-")[0])}`]]}})(vn(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ht(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ao.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ao.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ao.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ao.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:n})=>n.arrow,style:{position:"relative",margin:0}},{props:({ownerState:n})=>n.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:n})=>!n.isRtl,style:{[`.${Ao.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ao.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:n})=>!n.isRtl&&n.touch,style:{[`.${Ao.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ao.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:n})=>!!n.isRtl,style:{[`.${Ao.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ao.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:n})=>!!n.isRtl&&n.touch,style:{[`.${Ao.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ao.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Ao.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Ao.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),wj=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(vn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ht(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Z1=!1;const B6=new c2;let w0={x:0,y:0};function X1(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const Sj=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:r,classes:i,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:x=!1,id:v,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:E,onOpen:S,open:R,placement:_="bottom",PopperComponent:A,PopperProps:T={},slotProps:j={},slots:C={},title:k,TransitionComponent:P,TransitionProps:O,...I}=n,z=Z.isValidElement(r)?r:s.jsx("span",{children:r}),L=Qs(),D=Js(),[F,B]=Z.useState(),[M,N]=Z.useState(null),V=Z.useRef(!1),U=h||x,J=bl(),X=bl(),H=bl(),ne=bl(),[oe,ge]=jc({controlled:R,default:!1,name:"Tooltip",state:"open"});let de=oe;const ye=h1(v),ve=Z.useRef(),be=Ar(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),ne.clear()});Z.useEffect(()=>be,[be]);const re=pe=>{B6.clear(),Z1=!0,ge(!0),S&&!de&&S(pe)},ce=Ar(pe=>{B6.start(800+b,()=>{Z1=!1}),ge(!1),E&&de&&E(pe),J.start(L.transitions.duration.shortest,()=>{V.current=!1})}),we=pe=>{V.current&&pe.type!=="touchstart"||(F&&F.removeAttribute("title"),X.clear(),H.clear(),g||Z1&&m?X.start(Z1?m:g,()=>{re(pe)}):re(pe))},ae=pe=>{X.clear(),H.start(b,()=>{ce(pe)})},[,Y]=Z.useState(!1),le=pe=>{Ps(pe.target)||(Y(!1),ae(pe))},ee=pe=>{F||B(pe.currentTarget),Ps(pe.target)&&(Y(!0),we(pe))},Ie=pe=>{V.current=!0;const me=z.props;me.onTouchStart&&me.onTouchStart(pe)},Me=pe=>{Ie(pe),H.clear(),J.clear(),be(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(y,()=>{document.body.style.WebkitUserSelect=ve.current,we(pe)})},ot=pe=>{z.props.onTouchEnd&&z.props.onTouchEnd(pe),be(),H.start(w,()=>{ce(pe)})};Z.useEffect(()=>{if(de)return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)};function pe(me){me.key==="Escape"&&ce(me)}},[ce,de]);const Ve=Xo(Ys(z),B,t);k||k===0||(de=!1);const Ce=Z.useRef(),je={},Ge=typeof k=="string";c?(je.title=de||!Ge||p?null:k,je["aria-describedby"]=de?ye:null):(je["aria-label"]=Ge?k:null,je["aria-labelledby"]=de&&!Ge?ye:null);const Be={...je,...I,...z.props,className:Dt(I.className,z.props.className),onTouchStart:Ie,ref:Ve,...x?{onMouseMove:pe=>{const me=z.props;me.onMouseMove&&me.onMouseMove(pe),w0={x:pe.clientX,y:pe.clientY},Ce.current&&Ce.current.update()}}:{}},ct={};f||(Be.onTouchStart=Me,Be.onTouchEnd=ot),p||(Be.onMouseOver=X1(we,Be.onMouseOver),Be.onMouseLeave=X1(ae,Be.onMouseLeave),U||(ct.onMouseOver=we,ct.onMouseLeave=ae)),d||(Be.onFocus=X1(ee,Be.onFocus),Be.onBlur=X1(le,Be.onBlur),U||(ct.onFocus=ee,ct.onBlur=le));const Ye={...n,isRtl:D,arrow:o,disableInteractive:U,placement:_,PopperComponentProp:A,touch:V.current},he=typeof j.popper=="function"?j.popper(Ye):j.popper,Ze=Z.useMemo(()=>{let pe=[{name:"arrow",enabled:!!M,options:{element:M,padding:4}}];return T.popperOptions?.modifiers&&(pe=pe.concat(T.popperOptions.modifiers)),he?.popperOptions?.modifiers&&(pe=pe.concat(he.popperOptions.modifiers)),{...T.popperOptions,...he?.popperOptions,modifiers:pe}},[M,T.popperOptions,he?.popperOptions]),Se=(pe=>{const{classes:me,disableInteractive:fe,arrow:_e,touch:Fe,placement:qe}=pe;return Pn({popper:["popper",!fe&&"popperInteractive",_e&&"popperArrow"],tooltip:["tooltip",_e&&"tooltipArrow",Fe&&"touch",`tooltipPlacement${xt(qe.split("-")[0])}`],arrow:["arrow"]},xj,me)})(Ye),Re=typeof j.transition=="function"?j.transition(Ye):j.transition,ue={slots:{popper:a.Popper,transition:a.Transition??P,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:j.arrow??l.arrow,popper:{...T,...he??l.popper},tooltip:j.tooltip??l.tooltip,transition:{...O,...Re??l.transition}}},[De,Le]=no("popper",{elementType:bj,externalForwardedProps:ue,ownerState:Ye,className:Dt(Se.popper,T?.className)}),[W,Q]=no("transition",{elementType:Dc,externalForwardedProps:ue,ownerState:Ye}),[q,se]=no("tooltip",{elementType:vj,className:Se.tooltip,externalForwardedProps:ue,ownerState:Ye}),[te,ie]=no("arrow",{elementType:wj,className:Se.arrow,externalForwardedProps:ue,ownerState:Ye,ref:N});return s.jsxs(Z.Fragment,{children:[Z.cloneElement(z,Be),s.jsx(De,{as:A??g3,placement:_,anchorEl:x?{getBoundingClientRect:()=>({top:w0.y,left:w0.x,right:w0.x,bottom:w0.y,width:0,height:0})}:F,popperRef:Ce,open:!!F&&de,id:ye,transition:!0,...ct,...Le,popperOptions:Ze,children:({TransitionProps:pe})=>s.jsx(W,{timeout:L.transitions.duration.shorter,...pe,...Q,children:s.jsxs(q,{...se,children:[k,o?s.jsx(te,{...ie}):null]})})})]})});function Cj(e){return In("MuiTab",e)}const hi=En("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),kj=Et(el,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${xt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${hi.iconWrapper}`]:t.iconWrapper},{[`& .${hi.icon}`]:t.icon}]}})(vn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${hi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${hi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${hi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${hi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${hi.selected}`]:{opacity:1},[`&.${hi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${hi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${hi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Ej=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:p,onChange:h,onClick:f,onFocus:g,selected:m,selectionFollowsFocus:y,textColor:x="inherit",value:v,wrapped:b=!1,...w}=n,E={...n,disabled:r,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!p,fullWidth:a,textColor:x,wrapped:b},S=(_=>{const{classes:A,textColor:T,fullWidth:j,wrapped:C,icon:k,label:P,selected:O,disabled:I}=_;return Pn({root:["root",k&&P&&"labelIcon",`textColor${xt(T)}`,j&&"fullWidth",C&&"wrapped",O&&"selected",I&&"disabled"],icon:["iconWrapper","icon"]},Cj,A)})(E),R=l&&p&&Z.isValidElement(l)?Z.cloneElement(l,{className:Dt(S.icon,l.props.className)}):l;return s.jsxs(kj,{focusRipple:!i,className:Dt(S.root,o),ref:t,role:"tab","aria-selected":m,disabled:r,onClick:_=>{!m&&h&&h(_,v),f&&f(_)},onFocus:_=>{y&&!m&&h&&h(_,v),g&&g(_)},ownerState:E,tabIndex:m?0:-1,...w,children:[c==="top"||c==="start"?s.jsxs(Z.Fragment,{children:[R,p]}):s.jsxs(Z.Fragment,{children:[p,R]}),d]})});function Mj(e){return In("MuiToolbar",e)}En("MuiToolbar",["root","gutters","regular","dense"]);const Tj=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(vn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),_j=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:a="regular",...l}=n,c={...n,component:r,disableGutters:i,variant:a},d=(p=>{const{classes:h,disableGutters:f,variant:g}=p;return Pn({root:["root",!f&&"gutters",g]},Mj,h)})(c);return s.jsx(Tj,{as:r,className:Dt(d.root,o),ref:t,ownerState:c,...l})}),jj=Gn(s.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Rj=Gn(s.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ij(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Pj={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Oj(e){return In("MuiTabScrollButton",e)}const Dj=En("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Lj=Et(el,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Dj.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Aj=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTabScrollButton"}),{className:o,slots:r={},slotProps:i={},direction:a,orientation:l,disabled:c,...d}=n,p=Js(),h={isRtl:p,...n},f=(v=>{const{classes:b,orientation:w,disabled:E}=v;return Pn({root:["root",w,E&&"disabled"]},Oj,b)})(h),g=r.StartScrollButtonIcon??jj,m=r.EndScrollButtonIcon??Rj,y=$r({elementType:g,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),x=$r({elementType:m,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return s.jsx(Lj,{component:"div",className:Dt(f.root,o),ref:t,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:a==="left"?s.jsx(g,{...y}):s.jsx(m,{...x})})});function zj(e){return In("MuiTabs",e)}const rp=En("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),N6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,$6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Y1=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const i=r.disabled||r.getAttribute("aria-disabled")==="true";if(r.hasAttribute("tabindex")&&!i)return void r.focus();r=n(e,r)}},Fj=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rp.scrollButtons}`]:t.scrollButtons},{[`& .${rp.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${rp.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Bj=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Nj=Et("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),$j=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Vj=Et(function(e){const{onChange:t,...n}=e,o=Z.useRef(),r=Z.useRef(null),i=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return qr(()=>{const a=s2(()=>{const c=o.current;i(),c!==o.current&&t(o.current)}),l=Vi(r.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),Z.useEffect(()=>{i(),t(o.current)},[t]),s.jsx("div",{style:Pj,...n,ref:r})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),V6={},Hj=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTabs"}),o=Qs(),r=Js(),{"aria-label":i,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:g="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:x,scrollButtons:v="auto",selectionFollowsFocus:b,slots:w={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:R={},textColor:_="primary",value:A,variant:T="standard",visibleScrollbar:j=!1,...C}=n,k=T==="scrollable",P=y==="vertical",O=P?"scrollTop":"scrollLeft",I=P?"top":"left",z=P?"bottom":"right",L=P?"clientHeight":"clientWidth",D=P?"height":"width",F={...n,component:h,allowScrollButtonsMobile:f,indicatorColor:g,orientation:y,vertical:P,scrollButtons:v,textColor:_,variant:T,visibleScrollbar:j,fixed:!k,hideScrollbar:k&&!j,scrollableX:k&&!P,scrollableY:k&&P,centered:c&&!k,scrollButtonsHideMobile:!f},B=(me=>{const{vertical:fe,fixed:_e,hideScrollbar:Fe,scrollableX:qe,scrollableY:Je,centered:Qe,scrollButtonsHideMobile:rt,classes:At}=me;return Pn({root:["root",fe&&"vertical"],scroller:["scroller",_e&&"fixed",Fe&&"hideScrollbar",qe&&"scrollableX",Je&&"scrollableY"],list:["list","flexContainer",fe&&"flexContainerVertical",fe&&"vertical",Qe&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",rt&&"scrollButtonsHideMobile"],scrollableX:[qe&&"scrollableX"],hideScrollbar:[Fe&&"hideScrollbar"]},zj,At)})(F),M=$r({elementType:w.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:F}),N=$r({elementType:w.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:F}),[V,U]=Z.useState(!1),[J,X]=Z.useState(V6),[H,ne]=Z.useState(!1),[oe,ge]=Z.useState(!1),[de,ye]=Z.useState(!1),[ve,be]=Z.useState({overflow:"hidden",scrollbarWidth:0}),re=new Map,ce=Z.useRef(null),we=Z.useRef(null),ae={slots:w,slotProps:{indicator:S,scrollButton:R,...E}},Y=()=>{const me=ce.current;let fe,_e;if(me){const Fe=me.getBoundingClientRect();fe={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollWidth:me.scrollWidth,top:Fe.top,bottom:Fe.bottom,left:Fe.left,right:Fe.right}}if(me&&A!==!1){const Fe=we.current.children;if(Fe.length>0){const qe=Fe[re.get(A)];_e=qe?qe.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:_e}},le=Ar(()=>{const{tabsMeta:me,tabMeta:fe}=Y();let _e,Fe=0;P?(_e="top",fe&&me&&(Fe=fe.top-me.top+me.scrollTop)):(_e=r?"right":"left",fe&&me&&(Fe=(r?-1:1)*(fe[_e]-me[_e]+me.scrollLeft)));const qe={[_e]:Fe,[D]:fe?fe[D]:0};if(typeof J[_e]!="number"||typeof J[D]!="number")X(qe);else{const Je=Math.abs(J[_e]-qe[_e]),Qe=Math.abs(J[D]-qe[D]);(Je>=1||Qe>=1)&&X(qe)}}),ee=(me,{animation:fe=!0}={})=>{fe?function(_e,Fe,qe,Je={},Qe=()=>{}){const{ease:rt=Ij,duration:At=300}=Je;let zt=null;const _t=Fe[_e];let Vt=!1;const on=()=>{Vt=!0},Yt=_n=>{if(Vt)return void Qe(new Error("Animation cancelled"));zt===null&&(zt=_n);const pn=Math.min(1,(_n-zt)/At);Fe[_e]=rt(pn)*(qe-_t)+_t,pn>=1?requestAnimationFrame(()=>{Qe(null)}):requestAnimationFrame(Yt)};_t===qe?Qe(new Error("Element already at target position")):requestAnimationFrame(Yt)}(O,ce.current,me,{duration:o.transitions.duration.standard}):ce.current[O]=me},Ie=me=>{let fe=ce.current[O];fe+=P?me:me*(r?-1:1),ee(fe)},Me=()=>{const me=ce.current[L];let fe=0;const _e=Array.from(we.current.children);for(let Fe=0;Fe<_e.length;Fe+=1){const qe=_e[Fe];if(fe+qe[L]>me){Fe===0&&(fe=me);break}fe+=qe[L]}return fe},ot=()=>{Ie(-1*Me())},Ve=()=>{Ie(Me())},[Ce,{onChange:je,...Ge}]=no("scrollbar",{className:Dt(B.scrollableX,B.hideScrollbar),elementType:Vj,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:F}),Be=Z.useCallback(me=>{je?.(me),be({overflow:null,scrollbarWidth:me})},[je]),[ct,Ye]=no("scrollButtons",{className:Dt(B.scrollButtons,R.className),elementType:Aj,externalForwardedProps:ae,ownerState:F,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:M,endScrollButtonIcon:N}}}),he=Ar(me=>{const{tabsMeta:fe,tabMeta:_e}=Y();if(_e&&fe){if(_e[I]<fe[I]){const Fe=fe[O]+(_e[I]-fe[I]);ee(Fe,{animation:me})}else if(_e[z]>fe[z]){const Fe=fe[O]+(_e[z]-fe[z]);ee(Fe,{animation:me})}}}),Ze=Ar(()=>{k&&v!==!1&&ye(!de)});Z.useEffect(()=>{const me=s2(()=>{ce.current&&le()});let fe;const _e=Je=>{Je.forEach(Qe=>{Qe.removedNodes.forEach(rt=>{fe?.unobserve(rt)}),Qe.addedNodes.forEach(rt=>{fe?.observe(rt)})}),me(),Ze()},Fe=Vi(ce.current);let qe;return Fe.addEventListener("resize",me),typeof ResizeObserver<"u"&&(fe=new ResizeObserver(me),Array.from(we.current.children).forEach(Je=>{fe.observe(Je)})),typeof MutationObserver<"u"&&(qe=new MutationObserver(_e),qe.observe(we.current,{childList:!0})),()=>{me.clear(),Fe.removeEventListener("resize",me),qe?.disconnect(),fe?.disconnect()}},[le,Ze]),Z.useEffect(()=>{const me=Array.from(we.current.children),fe=me.length;if(typeof IntersectionObserver<"u"&&fe>0&&k&&v!==!1){const _e=me[0],Fe=me[fe-1],qe={root:ce.current,threshold:.99},Je=new IntersectionObserver(rt=>{ne(!rt[0].isIntersecting)},qe);Je.observe(_e);const Qe=new IntersectionObserver(rt=>{ge(!rt[0].isIntersecting)},qe);return Qe.observe(Fe),()=>{Je.disconnect(),Qe.disconnect()}}},[k,v,de,d?.length]),Z.useEffect(()=>{U(!0)},[]),Z.useEffect(()=>{le()}),Z.useEffect(()=>{he(V6!==J)},[he,J]),Z.useImperativeHandle(l,()=>({updateIndicator:le,updateScrollButtons:Ze}),[le,Ze]);const[Se,Re]=no("indicator",{className:Dt(B.indicator,S.className),elementType:$j,externalForwardedProps:ae,ownerState:F,additionalProps:{style:J}}),ue=s.jsx(Se,{...Re});let De=0;const Le=Z.Children.map(d,me=>{if(!Z.isValidElement(me))return null;const fe=me.props.value===void 0?De:me.props.value;re.set(fe,De);const _e=fe===A;return De+=1,Z.cloneElement(me,{fullWidth:T==="fullWidth",indicator:_e&&!V&&ue,selected:_e,selectionFollowsFocus:b,onChange:m,textColor:_,value:fe,...De!==1||A!==!1||me.props.tabIndex?{}:{tabIndex:0}})}),W=(()=>{const me={};me.scrollbarSizeListener=k?s.jsx(Ce,{...Ge,onChange:Be}):null;const fe=k&&(v==="auto"&&(H||oe)||v===!0);return me.scrollButtonStart=fe?s.jsx(ct,{direction:r?"right":"left",onClick:ot,disabled:!H,...Ye}):null,me.scrollButtonEnd=fe?s.jsx(ct,{direction:r?"left":"right",onClick:Ve,disabled:!oe,...Ye}):null,me})(),[Q,q]=no("root",{ref:t,className:Dt(B.root,p),elementType:Fj,externalForwardedProps:{...ae,...C,component:h},ownerState:F}),[se,te]=no("scroller",{ref:ce,className:B.scroller,elementType:Bj,externalForwardedProps:ae,ownerState:F,additionalProps:{style:{overflow:ve.overflow,[P?"margin"+(r?"Left":"Right"):"marginBottom"]:j?void 0:-ve.scrollbarWidth}}}),[ie,pe]=no("list",{ref:we,className:Dt(B.list,B.flexContainer),elementType:Nj,externalForwardedProps:ae,ownerState:F,getSlotProps:me=>({...me,onKeyDown:fe=>{(_e=>{if(_e.altKey||_e.shiftKey||_e.ctrlKey||_e.metaKey)return;const Fe=we.current,qe=ur(Fe).activeElement;if(qe.getAttribute("role")!=="tab")return;let Je=y==="horizontal"?"ArrowLeft":"ArrowUp",Qe=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&r&&(Je="ArrowRight",Qe="ArrowLeft"),_e.key){case Je:_e.preventDefault(),Y1(Fe,qe,$6);break;case Qe:_e.preventDefault(),Y1(Fe,qe,N6);break;case"Home":_e.preventDefault(),Y1(Fe,null,N6);break;case"End":_e.preventDefault(),Y1(Fe,null,$6)}})(fe),me.onKeyDown?.(fe)}})});return s.jsxs(Q,{...q,children:[W.scrollButtonStart,W.scrollbarSizeListener,s.jsxs(se,{...te,children:[s.jsx(ie,{"aria-label":i,"aria-labelledby":a,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...pe,children:Le}),V&&ue]}),W.scrollButtonEnd]})});function Wj(e){return In("MuiTextField",e)}En("MuiTextField",["root"]);const Uj={standard:Ul,filled:x3,outlined:v3},qj=Et(g1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S3=Z.forwardRef(function(e,t){const n=An({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:r=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:g,id:m,InputLabelProps:y,inputProps:x,InputProps:v,inputRef:b,label:w,maxRows:E,minRows:S,multiline:R=!1,name:_,onBlur:A,onChange:T,onFocus:j,placeholder:C,required:k=!1,rows:P,select:O=!1,SelectProps:I,slots:z={},slotProps:L={},type:D,value:F,variant:B="outlined",...M}=n,N={...n,autoFocus:r,color:l,disabled:d,error:p,fullWidth:f,multiline:R,required:k,select:O,variant:B},V=(ot=>{const{classes:Ve}=ot;return Pn({root:["root"]},Wj,Ve)})(N),U=h1(m),J=g&&U?`${U}-helper-text`:void 0,X=w&&U?`${U}-label`:void 0,H=Uj[B],ne={slots:z,slotProps:{input:v,inputLabel:y,htmlInput:x,formHelperText:h,select:I,...L}},oe={},ge=ne.slotProps.inputLabel;B==="outlined"&&(ge&&ge.shrink!==void 0&&(oe.notched=ge.shrink),oe.label=w),O&&(I&&I.native||(oe.id=void 0),oe["aria-describedby"]=void 0);const[de,ye]=no("root",{elementType:qj,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...M},ownerState:N,className:Dt(V.root,a),ref:t,additionalProps:{disabled:d,error:p,fullWidth:f,required:k,color:l,variant:B}}),[ve,be]=no("input",{elementType:H,externalForwardedProps:ne,additionalProps:oe,ownerState:N}),[re,ce]=no("inputLabel",{elementType:xx,externalForwardedProps:ne,ownerState:N}),[we,ae]=no("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:N}),[Y,le]=no("formHelperText",{elementType:c_,externalForwardedProps:ne,ownerState:N}),[ee,Ie]=no("select",{elementType:y2,externalForwardedProps:ne,ownerState:N}),Me=s.jsx(ve,{"aria-describedby":J,autoComplete:o,autoFocus:r,defaultValue:c,fullWidth:f,multiline:R,name:_,rows:P,maxRows:E,minRows:S,type:D,value:F,id:U,inputRef:b,onBlur:A,onChange:T,onFocus:j,placeholder:C,inputProps:ae,slots:{input:z.htmlInput?we:void 0},...be});return s.jsxs(de,{...ye,children:[w!=null&&w!==""&&s.jsx(re,{htmlFor:U,id:X,...ce,children:w}),O?s.jsx(ee,{"aria-describedby":J,id:U,labelId:X,value:F,input:Me,...Ie,children:i}):Me,g&&s.jsx(Y,{id:J,...le,children:g})]})}),Kj=Gn(s.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Gj=Gn(s.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Zj=Gn(s.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Xj=Gn(s.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ex=Gn(s.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Yj=Gn(s.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport"),C3=Gn(s.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Jj=Gn(s.jsx("path",{d:"m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42M6.92 19 5 17.08l8.06-8.06 1.92 1.92z"}),"Colorize"),Qj=Gn(s.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),H6=Gn(s.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),eR=Gn(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),tR=Gn(s.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Mx=Gn(s.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),W6=Gn(s.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),hc=Gn(s.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),U6=Gn(s.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),nR=Gn(s.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),oR=Gn(s.jsx("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"}),"Keyboard"),q6=Gn(s.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),x2=Gn(s.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),rR=Gn(s.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),iR=Gn(s.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),aR=Gn(s.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Tx=Gn(s.jsx("path",{d:"M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"}),"WebhookOutlined");function _x(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=_x(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Eo(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=_x(e))&&(o&&(o+=" "),o+=t);return o}const zo={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},kr="text/html",xa="text/plain",zd="image/png",lR=Object.freeze({left:0,top:0}),sR=Object.freeze({left:0,top:0,bottom:0,right:0}),cR=Object.freeze({x:0,y:0,width:0,height:0}),Lc=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:cR,EmptyRect:sR,EmptyTopLeft:lR},Symbol.toStringTag,{value:"Module"})),Ml="column",Ac="row",dR=Object.freeze({colIndex:0,rowIndex:0}),uR=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),jx=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Rx=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,pR=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,hR=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,K6=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,G6=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Ix=(e=Ac,t=!1)=>t?e!==Ml?pR:hR:e!==Ml?Rx:jx,Z6=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,D5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,L5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),X6=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!D5(e[n],t[n]))return!1;return!0},ip=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},Y6=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];L5(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},fR=[null,null],mR=(e,t,n)=>{if(e[0].value===e[1].value)return t};function J6(e,t=2,n,o=Ac,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Ml,l=0,c=!1;do{const d=i.sort(Ix(a?Ac:Ml));i=[],i.push(d[0]);const p=d.length;let h=0,f=d[0],g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?f&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:f&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(f.value!==void 0&&(E.value=f.value),n){const S=r??[null,null];S[0]=f,S[1]=b,E=n(S,E,o)}if(E){i[h]=E,c=!0,f=E,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;continue}}i[++h]=b,f=b,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}const Go=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:dR,EmptyRange:uR,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:K6,columnFirstRangeComparator:jx,createCellComparator:(e=Ac,t=!1)=>t?e!==Ml?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==Ml?G6:K6,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const h=d!==void 0;if(h){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const f=t?l:c,g=t?c:l;o={colStart:f,rowStart:g,colEnd:f,rowEnd:g},h&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?J6(n,3,l===!0?mR:l,t?Ml:Ac,fR):n)}},createRangeComparator:Ix,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:Y6,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!D5(n,o);)o=n,n=Y6(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(L5(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:Z6,isEqualRanges:D5,isEqualRangesArrays:X6,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Z6(e.cell,t.cell)&&X6(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:L5,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:J6,rowFirstCellComparator:G6,rowFirstRangeComparator:Rx,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:ip,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=ip(o,e[r],n);return t&&(o=ip(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),gR=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function yR(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===gR}(e)}function G0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Dl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function xR(e,t,n){return e.concat(t).map(function(o){return G0(o,n)})}function Q6(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function e4(e,t){try{return t in e}catch{return!1}}function Dl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||xR,n.isMergeableObject=n.isMergeableObject||yR,n.cloneUnlessOtherwiseSpecified=G0;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&Q6(r).forEach(function(c){l[c]=G0(r[c],a)}),Q6(i).forEach(function(c){var d,p;e4(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(e4(r,c)&&a.isMergeableObject(i[c])?l[c]=function(h,f){if(!f.customMerge)return Dl;const g=f.customMerge(h);return typeof g=="function"?g:Dl}(c,a)(r[c],i[c],a):l[c]=G0(i[c],a))}),l}(e,t,n):G0(t,n)}Dl.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Dl(n,o,t)},{})};const bR=Object.freeze([]),vR=Object.freeze({}),t4=e=>e,Fd=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),Px=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),S0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ox=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Ox(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),wR=(e,t)=>!(e!==t&&!Px(e,t)&&!e.isEqual?.(t)),Dx=(e,t,n=wR)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const a=o[i];Dx(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},n4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),o4=e=>e==null,r4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),i4=!(typeof window>"u"||!window.document||!window.document.createElement),Rr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},zc=()=>{if(Lx())return Rr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Rr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Rr.MacOS:/(iphone|ipad|ipod)/i.test(e)?Rr.IOS:/android/.test(e)?Rr.Android:/linux/.test(e)?Rr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Rr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Rr.Firefox:Rr.Unknown:Rr.Unknown};function Lx(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const a4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Jt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:bR,EmptyObject:vR,OSType:Rr,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:i4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>o4(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:Dl,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=t4){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=t4){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!S0(a))return a;o=a}return o??null},getOS:zc,hasFocus:a4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Px,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:Lx,isNullOrUndefined:o4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:S0,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:r4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!S0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Dl(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!i4)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:Ox,removeEqualValues:Dx,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=n4(),o={id:requestAnimationFrame(function r(){n4()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!S0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!S0(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!r4(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),l(),i(),a()):(i(),a(),l(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Fd,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{a4(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const Ax=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},A5=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")}),SR=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Ax,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:A5},Symbol.toStringTag,{value:"Module"})),zx="data:image/png;base64,",Fx="Unable to resolve image.",l4=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(Fx)}),ap="image/svg+xml";var s4,c4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:zx,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(Fx)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await l4(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:ap})),l=await l4(a);n={mimeType:t??ap,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===ap?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(c4=s4||(s4={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let h,f=r[p];if(f!==void 0){const g=i[p];h=g?(0,c4.resolveTypedUpdates)(f,g,n,o?.[p]):f}else h=o?.[p];h!=null&&(l=l??{},l[p]=h)}}return l};let z5=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const d4=`The Safari browser does not support advanced copy and paste.
|
|
116
|
+
Copy and paste will be limited to within the browser tab.
|
|
117
|
+
|
|
118
|
+
Please use Chrome or Edge if external copy and paste is required.`,lp=`You do not have permissions to access the clipboard.
|
|
119
|
+
All copy and paste operations will be limited to the browser tab.`,Bx={Safari:`The Safari browser does not support advanced copy and paste.
|
|
120
|
+
Copy and paste will be limited to within the browser tab.
|
|
121
|
+
|
|
122
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:lp,PermsWrite:zc()===Rr.Safari?d4:lp,PermsRead:zc()===Rr.Safari?d4:lp},sp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),cp=async(e,t,n)=>{if(zc()===Rr.Safari)return await n(new Error(Bx.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},Nx=async e=>{try{return await e.read({unsanitized:[kr]})}catch{}return await e.read()},$x=async(e,t)=>{if(!e)return null;const n=await Nx(e);let o=!1;for(let r=0;!o&&n&&r<n.length;r++)if(o=n[r].types.includes(t),o)return await n[r].getType(t);return o?void 0:null};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const fu=async(e,t=kr)=>new Promise(async(n,o)=>{try{const r=await $x(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),F5=async(e,t=kr)=>{const n=await fu(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,kr)}catch{console.warn("Can't parse html from clipboard.")}return o},CR=$x,kR=fu,ER=F5,Fc="clipboard-uuid",Jl="web text/uuid",u4=e=>`<div style="display:none" ${Fc}="${e}"/>`,MR=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,kr);o.body.firstElementChild.setAttribute(Fc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},p4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Fc}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let Fs=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await cp("clipboard-read",async()=>{await sp();const e=await fu(this._nativeClipboard,Jl);if(!this._state||e&&e===this._state.uuid)return!0;const t=await F5(this._nativeClipboard,kr);return!this._state||(p4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||zc()===Rr.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await cp("clipboard-read",async()=>{if(await sp(),this._state?.uuid){const t=await fu(this._nativeClipboard,Jl);if(t&&t===e._state.uuid)return!0;const n=await F5(this._nativeClipboard,kr);if(p4(e._state?.uuid,n))return!0}return e._state={items:await Nx(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Fd(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await cp("clipboard-write",async()=>{await sp(),o&&r.length===0&&(r.push(new ClipboardItem({[Jl]:new Blob([o],{type:Jl})})),r.push(new ClipboardItem({[kr]:new Blob([u4(o)],{type:kr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(kr),d=null;if(c!==-1){const f=await l.getType(kr);d=await A5(f),d&&(d=MR(o,d))}if(!d&&l.types.includes(xa)){const f=await l.getType(xa);if(f){let g=null;typeof f=="string"?(console.warn("text as string",f),g=f):g=await A5(f),g&&(d=`<div ${Fc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(zd)){const f=await l.getType(zd),g=Ax(await f.arrayBuffer());d=`<div ${Fc}="${o}"><img src="${zx+g}"/></div>`}!d&&o&&(d=u4(o));const p=new Blob([d??""],{type:kr}),h={};for(let f=0;f<l.types.length;f++){const g=l.types[f];h[g]=f===c?p:l.getType(g)}d&&c===-1&&(h[kr]=p),o&&(h[Jl]=new Blob([o],{type:Jl})),n.push(new ClipboardItem(h))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[xa]=new Blob([r??""],{type:xa}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[kr]=new Blob([r],{type:kr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[zd]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Fd(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(xa)&&(o=await n[i].getType(xa));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[xa]:new Blob([e],{type:xa})})];return this._write({uuid:Fd(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(a){console.warn(a)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var dp;(dp=Fs||(Fs={})).ErrorMessages=Bx,dp.Global=new dp,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const $e={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},nn={Tab:9,Enter:13,Escape:27,Space:32,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Delete:46,F1:112,F2:113},yr={Horizontal:"horizontal",Vertical:"vertical"};function Vx(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Vx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ds(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Vx(e))&&(o&&(o+=" "),o+=t);return o}var TR=function(){},Hx=typeof window<"u",_R=Hx?u.useLayoutEffect:u.useEffect,h4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Ll=Hx&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(h4),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return _R(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[TR,h4]},Te=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},Wx=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},Ux=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},jR=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...t},className:`scrollbar-button ${r?"vertical":"horizontal"} edge`,...o,children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:s.jsx("path",{style:{transition:"opacity 240ms ease 0s",opacity:e.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})},B5=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r},f4=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:B5},Symbol.toStringTag,{value:"Module"})),k3=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=yr.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=Wx,createScrollEndButton:y=Ux,...x}=e,v=Te(d,[d]),b=u.useRef(null),[w,{width:E,height:S}]=Ll(),[R,{width:_,height:A}]=Ll(),T=l===yr.Vertical,j=T?"top":"left",C=T?"scrollTop":"scrollLeft",k=T?S:E,P=T?A:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=ne?0:B5(H,ge[j],de,!0,Math.max(0,H-h));return I(ye),Math.max(0,ye)},[]),L=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=Math.ceil(P-k),ve=ne?ye:B5(H,ge[j],de,!1,Math.max(0,H+h));return I(ve),Math.min(ye,ve)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[C];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[C]=n)},[n,C]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ge=f)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):L(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ge)},[z,L,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:ds("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(S??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));k3.displayName="Scrollbar";let m4=Date.now,Wa={},RR=1;const C0=e=>{let t=Wa[e]!==null;return t&&(Wa[e]=null),t},g4=(e,t,n,o=0,r)=>{let i=m4(),a=i,l=0,c=0,d=RR++;if(d%20==0){const h={};for(let f in Wa)h[f]=!0;Wa=h}const p=function(h){const f=h!==!0,g=m4();if(!Wa[d]||t&&!t(d))return Wa[d]=null,void n(60-c/((g-i)/1e3),d,!1);if(f){const y=Math.round((g-a)/16.666666666666668)-1;for(let x=0;x<Math.min(y,4);x++)p(!0),c++}o&&(l=(g-i)/o,l>1&&(l=1));const m=r?r(l):l;e(m,g,f)!==!1&&l!==1||!f?f&&(a=g,requestAnimationFrame(p)):(Wa[d]=null,n(60-c/((g-i)/1e3),d,l===1||o===void 0))};return Wa[d]=!0,requestAnimationFrame(p),d};var IR=function(){},PR=function(e){return Math.pow(e-1,3)+1},OR=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},qx=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:IR,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};qx.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(C0(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var a=e/i,l=a*(this.__scrollLeft+n)-n,c=a*(this.__scrollTop+o)-o;l>this.__maxScrollLeft?l=this.__maxScrollLeft:l<0&&(l=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(l,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(C0(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(C0(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(C0(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var h=p;if(p=p/this.__lastScale*n,h!==(p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom))){var f=o-this.__clientLeft,g=r-this.__clientTop;c=(f+c)*p/h-f,d=(g+d)*p/h-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;var m=this.__maxScrollLeft;(c>m||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>m?m:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;var y=this.__maxScrollTop;(d>y||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>y?y:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{var x=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=x,this.__enableScrollY=this.options.scrollingY&&b>=x,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],a=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=a/i*(1e3/60),this.__decelerationVelocityY=l/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(C0(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,h=function(m,y,x){x&&(this.__scrollLeft=i+c*m,this.__scrollTop=a+d*m,this.__zoomLevel=l+p*m,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),f=function(m){return this.__isAnimating===m}.bind(this),g=function(m,y,x){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||x)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=g4(h,f,g,this.options.animationDuration,r?PR:OR)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(d,p,h){this.__stepThroughDeceleration(h)}.bind(this),a=this.options.snapping?4:.1,l=function(){var d=Math.abs(this.__decelerationVelocityX)>=a||Math.abs(this.__decelerationVelocityY)>=a;return d||(this.__didDecelerationComplete=!0),d}.bind(this),c=function(d,p,h){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=g4(i,l,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,a=0,l=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?a=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(a=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*l:this.__decelerationVelocityX=i*c),a!==0&&(a*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=a*l:this.__decelerationVelocityY=a*c)}}};var ni=typeof window<"u"?window:{screen:{},navigator:{}},Bs=(ni.matchMedia||function(){return{matches:!1}}).bind(ni),Kx=!1,DR={get passive(){return Kx=!0}},y4=function(){};ni.addEventListener&&ni.addEventListener("p",y4,DR),ni.removeEventListener&&ni.removeEventListener("p",y4,!1);var LR=Kx,AR="PointerEvent"in ni,E3="ontouchstart"in ni,Gx=E3||"TouchEvent"in ni&&Bs("(any-pointer: coarse)").matches,x4=(ni.navigator.maxTouchPoints||0)>0||Gx,Zx=ni.navigator.userAgent||"",zR=Bs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Zx)&&Math.min(ni.screen.width||0,ni.screen.height||0)>=768,Xx=(Bs("(pointer: coarse)").matches||!Bs("(pointer: fine)").matches&&E3)&&!/Windows.*Firefox/.test(Zx),FR=Bs("(any-pointer: fine)").matches||Bs("(any-hover: hover)").matches||zR||!E3,N5=!x4||!FR&&Xx?x4?"touchOnly":"mouseOnly":"hybrid",BR=N5==="mouseOnly"?"mouse":N5==="touchOnly"||Xx?"touch":"mouse";const NR=Object.freeze(Object.defineProperty({__proto__:null,deviceType:N5,primaryInput:BR,supportsPassiveEvents:LR,supportsPointerEvents:AR,supportsTouchEvents:Gx},Symbol.toStringTag,{value:"Module"})),$R=new Set(["INPUT","TEXTAREA","SELECT"]),Yx={};function $5(){return NR}const Jx=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Jt.camelToPrettyCase(e),Rn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Yx,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:$5,focusableNodeNames:$R,toPrettyKeyCode:Jx},Symbol.toStringTag,{value:"Module"})),VR=[];function ir(e,t,n=VR){const o=u.useRef(null);return u.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const b4=e=>s.jsx(k3,{...e}),HR=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),M3=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=HR,createHorizontalScrollbar:c=b4,createVerticalScrollbar:d=b4,style:p,touchElement:h,disableTouch:f,...g}=e,m=Te(r,[r]),y=ir(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft!==!o?.left||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,h]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),S=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=h??y.current;if(!f&&$5().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new qx(v,P)}$5().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),S({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,f,h]);const[R,{width:_}]=Ll(),[A,{height:T}]=Ll(),j=u.useMemo(()=>{const k=d({orientation:yr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const k=c({orientation:yr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:A,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));M3.displayName="ScrollPane";const ua={Error:"error",Warning:"warning",Info:"info"},v4=new Set,mu={showMessage:(e,t)=>{if(t?.onceKey){if(v4.has(t.onceKey))return;v4.add(t.onceKey)}let n=console.log;t?.type!==ua.Warning&&t?.type!==ua.Error||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},WR=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let J1=0;const UR=100,qR=100,KR=1e6,GR=100,ZR=50,Qx=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=UR,endScrollIncrement:l=qR,style:c=Yx,onMouseDown:d,onScrollOffset:p,onScroll:h,scaleLimit:f=KR,scaleFactor:g=GR,precisionFactor:m=ZR,...y}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=Te(d,[d]),v=()=>({offset:n,totalSize:f===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=f!==0&&b.totalSize>f?g:1,S=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),A=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,C]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=Te((z,L,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<S&&(z=_),p?.(z*E,_,A))},[p,E,S,_,A]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(k3,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:A,onMouseDown:I,onScrollOffset:P})}));Qx.displayName="VirtualScrollbar";const up="bottom",V5="right",pp="top";function hp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var gu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=hp(o,t),i=typeof r=="function";n.push(i?r:()=>hp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)hp(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:gu([r,t]),onFocus:i,...o})}));const XR=u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:h}]=Ll(),f=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=h-w+b;return function(S,R,_=!1){if(R===0)return S;function A(O,I,z){let L=I.x-O.x,D=I.y-O.y,F=Math.sqrt(L*L+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function C(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=S.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=C(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let L=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&L&&L.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=C(L),V=C(D),U=C(F);_?(B=T(V,L.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=A(V,N,R),M=A(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=C(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,h,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:gu([f,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})})),YR={},JR=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=YR,...d}=e,p=o==="row",{style:h,className:f,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ds("hit-box",f),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...h},onPointerDown:a?void 0:t,...g})},l)},Q1={},sl=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ed=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Oa=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)},H5=u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:h,children:f,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=Q1,paneProps:E=Q1,paneBeforeProps:S=Q1,paneAfterProps:R=Q1,createResizer:_=JR}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const A=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:Oa(c,De),maxBefore:Oa(d,De),minAfter:Oa(p,De),maxAfter:Oa(h,De)}},[c,d,p,h]),j=Te(l,[l]),[C,k]=u.useState(()=>Oa(a,i===null));u.useEffect(()=>{k(Oa(a,i===null))},[a,i]);const[P,{width:O,height:I}]=Ll(),[z,{width:L,height:D}]=Ll(),F=r==="row"?L:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Le,W)=>{const Q=[null,null],q=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,q[1]=100):(Q[1]=ue?.pixels-Le,q[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(q[0]=ue?.percent,q[1]=100-ue?.percent):(q[1]=ue?.percent,q[0]=100-ue?.percent)),{percents:q,pixels:Q,minBefore:ed(W.minBefore,!0),maxBefore:ed(W.maxBefore,!0),minAfter:ed(W.minAfter),maxAfter:ed(W.maxAfter)};let se=sl(ue,De,W.fixedPaneOffset!==1),te=De-Le,ie=sl(W.minBefore,te,!0)??0,pe=sl(W.maxBefore,te,!0)??te,me=0,fe=0,_e=0,Fe=te;me=(sl(W.maxAfter,De,!1)??Le)-Le,fe=sl(W.minAfter,De,!1)??De,_e=Math.max(ie,me),Fe=Math.min(pe,fe),se=Math.max(_e,Math.min(se,Fe)),fe=Math.min(te-se,sl(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,sl(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const qe=Math.max(0,Math.min(100,se/te*100));return q[0]=qe,q[1]=100-q[0],{percents:q,pixels:Q,minBefore:`${ie}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(C,B,F,T),[T,C,B,F,r]),[N,V]=u.useState(!1),U=Te(x,[x]),J=Te(v,[v]),X=Te(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ge,className:de,...ye}=E,ve={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:be,style:re,...ce}=S,{className:we,style:ae,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Ie,onPointerDown:Me,...ot}=w,Ve=Te(ue=>{const De=Oa(ue,i===null);k(De)},[i]),Ce=Te(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Le=Math.max(0,Math.min(B,Le)),T.fixedPaneOffset===1&&(Le=B-Le),a&&C.pixels===Le||k({pixels:Le,percent:null}),J?.(Le),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,C,B]),je=Te(ue=>{if(document.removeEventListener("pointermove",Ce),document.removeEventListener("touchmove",Ce),document.removeEventListener("pointerup",je),N&&(V(!1),C)){if(X(C.pixels),!Oa(a,i===null)||C.pixels!==a){const De={...C};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[C,N,a,i,B]),Ge=Te(ue=>{Me?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ce,{passive:!1}),document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("pointerup",je,{passive:!1}))},[Me]),Be=ir(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>A?_?.({key:"resizer",ref:gu([z,ne]),className:ds("resizer",ee),onPointerDownCapture:Ge,style:{cursor:y?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Ie},splitDirection:r,disabled:y,...ot}):null,[A,ee,ot,r,Ie,y]),Ye=r==="row"?"Width":"Height",he={...ve,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Ye}`]:M?.minBefore,[`max${Ye}`]:o?M?.maxBefore:"100%"},Ze={...ve,...ae,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Ye}`]:M?.minAfter,[`max${Ye}`]:n?M?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:H,className:ds("before",de,be),style:he,...ye,...ce,children:n},"before"):null,[n,E,S,T,M]),Re=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:ds("after",de,we),style:Ze,...ye,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:gu([P,Be]),className:ds("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[Se,ct,Re]})}));function w4(e,t){return function(n){if(!n)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:o,onPointerUp:r,onPointerMoveOrWait:i,processTouch:a=!1,consumeTouch:l=!0}=n,c=Te(o,[o]),d=Te(r,[r]),p=Te(i,[i]),h=u.useRef(!1),f=n?.timerInitial??230,g=n?.timerContinuous??f/2,m=u.useRef(null),y=u.useRef(null),x=u.useRef(null),v=u.useRef(null),b=u.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null)},[]),w=u.useCallback(k=>{v.current=setTimeout(()=>{window.requestAnimationFrame(()=>{h.current!==!1&&p?.(y.current,x.current,m.current)}),w(g)},k??f)},[]);u.useEffect(()=>()=>b(),[]);const E=a?"pointer":"mouse",S=u.useCallback(k=>{k.stopPropagation(),k.stopImmediatePropagation(),k.preventDefault()},[]),R=Te(k=>{document.removeEventListener(`${E}move`,T),document.removeEventListener(`${E}up`,R),document.removeEventListener("keydown",j),document.removeEventListener("keyup",C),document.removeEventListener("touchstart",S,{capture:!0}),document.removeEventListener("touchmove",S,{capture:!0}),window.removeEventListener("blur",_),b(),window.requestAnimationFrame(()=>{h.current!==!1&&(h.current=!1,d?.(k,x.current,m.current),x.current=null)})},[]),_=u.useCallback(()=>{h.current!==!1&&(h.current=!1,R(y.current))},[]),A=Te(()=>{b(),w(g),window.requestAnimationFrame(()=>{h.current!==!1&&p?.(y.current,x.current,m.current)})},[g]),T=Te(k=>{y.current=k,A()},[]),j=Te(k=>{x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},A()},[]),C=Te(k=>{x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},A()},[g]);return Te(k=>{k.isDefaultPrevented()||(x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},c(k,x.current)!==!1&&(m.current=k,y.current=k.nativeEvent,document.addEventListener(`${E}up`,R,{passive:!1}),document.addEventListener(`${E}move`,T,{passive:!1}),document.addEventListener("keydown",j,{passive:!1}),document.addEventListener("keyup",C,{passive:!1}),window.addEventListener("blur",_,{passive:!0}),a&&l&&(document.addEventListener("touchstart",S,{passive:!1,capture:!0}),document.addEventListener("touchmove",S,{passive:!1,capture:!0})),h.current=!0,w(f)))},[f,a])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const QR=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},W5=e=>{console&&console.warn&&console.warn(e)},fp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let eI=1,U5=!1,eb=!1;const Bd=[],us=[],yu=()=>{us.forEach(e=>e())},tI=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||U5!==!1||(eb=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return us[0]!==i?(e||U5!==!0||W5("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Bd])}return us.push(i),yu(),()=>{r=!1,o.current?.length>0&&W5("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),us.splice(us.indexOf(i),1),yu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(QR,{...r,key:i}))})},tb=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=h=>{r=h,yo.unstable_batchedUpdates(()=>l.forEach(f=>f(h)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[h,f]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=eI++;return Bd.push({hook:g,key:m}),us.length===0&&eb===!1&&(U5=!0,(y=>{if(fp.document&&fp.document.createElement){const x=fp.document.createElement("div");Yu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else W5("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(tI)),yu(),()=>{Bd.splice(Bd.findIndex(y=>y.key===m),1),yu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(f),r!==h&&f(r),()=>{l.splice(l.indexOf(f),1),l.length===0&&c&&(o(),i=!1)}),[]),h}};let nb=()=>{console.warn("You must call useEditMode before setting its state.")};const nI=tb(null,()=>{const[e,t]=u.useState(null);return nb=t,e}),Hi=()=>{const e=nI();return u.useMemo(()=>({setMode:t=>{nb(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let He=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return typeof this._context=="function"?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}},Tt=class extends He{},e0=class ob{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Jt.uuidV4(),this._target=t,this._groupKey=n??null,this._root=this,this._nodes=new Map,this._nodes.set(n,this),this._children=new Map,this._listeners=new Set,this._commandsByKey=new Map,this._commandsByShortcut=new Map;const o=this;this._unListenersByCommand=new Map,this._listenersByKey=new Map,this._commandsPropertyListener=(r,i)=>{const a=o._root._listenersByKey,l=i.key(),c=a.get(l);c&&o._notifyCommands(c,"onCommandChange",i)}}_getCommand(t){return this._commandsByKey.get(t)||(this._parent?._getCommand(t)??null)}getCommand(t,n=!1){const o=this._root._focused;let r=o,i=o===this;for(;!i&&r;)r===this&&(i=!0),r=r._parent;return(i?o:this)._getCommand(t)}createChildGroup(t,n,o){let r;if(!o){let l=this;for(;l&&!r;){let c=l._nodes.get(n);c&&(r=c),l=l._parent}}r||(r=new ob(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(l,c)=>{!l.has(n)||o?l.set(n,c):o===void 0&&console.warn("commandGroup already registered",n)};i(this._root._nodes,r);let a=this._parent;for(;a;)i(this._nodes,r),a=a._parent;return this._children.set(n,r),this._notify("onGroupChange"),r}getKey(){return this._groupKey}getGroup(t){return this._nodes.get(t)}_addCommands(t,n=void 0){const o=this._commandsByKey,r=this._commandsByShortcut,i=this._root._commandsPropertyListener,a=this._root._unListenersByCommand;for(let l=0;l<t.length;l++){const c=t[l],d=c.key();if(o.has(d)&&!n){n===void 0&&console.warn("command already registered",d);continue}o.set(d,c);let p=a.get(c);p&&(p(),a.delete(c));const h=c.addPropertyListener(i);a.set(c,h);const f=c.shortcut();if(!f)continue;const g=Array.isArray(f)?f:[f];for(let m=0;m<g.length;m++){const y=k0(g[m]),x=r.get(y);x&&!n&&n===void 0&&console.warn(`Shortcut already registered: ${y}, ${d}, ${x}.`),r.set(y,d)}}}removeFromParent(){if(!this._parent)return;let t=this._parent,n=[];const o=this._groupKey;for(;t;)n.push(t._nodes),t._nodes.delete(o),t=t._parent;t=this._parent;const r=i=>{i._children.forEach(a=>{for(let l=0;l<n.length;l++)a._nodes.delete(n[l]);r(a)})};r(this),this._parent=null,this._notify("onGroupChange")}addCommands(t,n){this._addCommands(t,n),this._notify("onGroupChange")}getActive(){return this._root._focused??this._root}activate(t){let n=this;if(t&&(n=this._nodes.get(t),!n))return void console.warn("group not found",t);let o=this._root._focused??this._root;for(;o;)o=o._parent;this._root._focused!==n&&(this._root._focused=n,this._notify("onGroupChange"),this._notify("onActiveChange"))}findCommandByEvent(t){const n=[];t.altKey&&n.push($e.Alt),t.shiftKey&&n.push($e.Shift),t.ctrlKey&&n.push($e.Ctrl),t.metaKey&&n.push($e.Meta);let o=k0({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=k0({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=k0({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=k0({key:t.code.substring(3,t.code.length),modifiers:n}),i=r.get(o));let a=null;return i&&(a=this._commandsByKey.get(i),a&&a.disabled()&&(a=null),!a||a.target()&&a.target().contains(t.target)||(a=null)),a||(this._parent?.findCommandByEvent(t)??null)}dispatchToFocusedCommand(t){const n=this.getActive();if(!n||t.isDefaultPrevented())return!1;const o=n.findCommandByEvent?.(t);return!!o&&(o.execute(),t.preventDefault(),!0)}getRoot(){return this._parent?this._parent.getRoot():this}getParent(){return this._parent}addListener(t,n){const o=this._listeners,r=n?.keys,i=this._root._listenersByKey;if(r&&!t.onCommandChange)throw new Error("keys were provided but the listener does not contain 'onCommandChange'.");let a=null;if(r)for(let l=0;l<r.length;l++){const c=r[l];if(!c)continue;let d=i.get(c);d||(d=new Set,i.set(c,d)),a||(a=[]),a.push(d),d.add(t)}return o.add(t),()=>{if(a)for(let l=0;l<a.length;l++)a[l].delete(t);o.delete(t)}}_notifyCommands(t,n,o){const r=this;setTimeout(()=>{t.forEach(i=>{i[n]?.(r,o)})},0)}_notify(t,n){const o=this;setTimeout(()=>{o._listeners.forEach(r=>{r[t]?.(o,n)}),o._parent&&o._parent._notify(t,n)},0)}getAllCommands(){const t=[],n=this._groupKey;return this._commandsByKey.forEach(o=>{t.push({command:o,groupKey:n})}),this._children.forEach(o=>{t.push(...o.getAllCommands())}),t}};const oI=Jt.getOS()===Jt.OSType.MacOS||Jt.getOS()===Jt.OSType.IOS?"Cmd":"Ctrl",rI=Jt.getOS()===Jt.OSType.MacOS||Jt.getOS()===Jt.OSType.IOS?"⌘":"^",k0=(e,t=!1)=>{const n={};for(let r=0;e.modifiers&&r<e.modifiers.length;r++)n[e.modifiers[r]]=!0;let o="";return(n?.[$e.Ctrl]||n?.[$e.Meta])&&(o+=(o.length>0?"+":"")+(t?rI:oI)),n?.[$e.Alt]&&(o+=t?"⌥":"Alt"),n?.[$e.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Jx(e.key),o};function rl(e,t=null){const n=u.useRef(t);n.current=t;const[o,r]=u.useReducer(a=>a+1,0),i=u.useMemo(()=>Array.isArray(e)?e:[e],[e]);return u.useEffect(()=>{if(!i||i.length===0)return;const a=(d,p)=>{n.current?.onChange?.(p),r()};let l=null;t&&(l={onExecute(d,p){n.current?.onExecute?.(d,p)},onError(d,p,h){n.current?.onError?.(d,p,h)}});const c=new Set;for(let d=0;d<i.length;d++)c.add(i[d]?.addPropertyListener(Jt.debounce(a,0),!0)),t&&c.add(i[d]?.addExecuteListener(l));return()=>{c.forEach(d=>{d?.()})}},[e]),o}const td=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function _o(e,t=null,n=null,o){const r=u.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,a]=u.useState(td(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const f=td(e,t);a(f),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(f,g)=>{r.current?.onChange?.(e),a(td(e,t))});const p=e?.addListener(c,d),h=td(e,t);return a(h),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Qt={Toolbar:"toolbar",Menuitem:"menuitem"},rb=tb({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Fs.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(Fs.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}}),ib=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=mu,commands:a}=e,l=Te(r,[r]),c=Te(o,[o]),{getClipboard:d,refNativeCopy:p}=rb(),h=d();u.useMemo(()=>{const b=t?.element,w=n?.element??t?.element;if(!a)return;const E=[new Tt("cut",b,{label:"Cut",description:"Remove the selection and put it on the clipboard so you can paste it somewhere else.",shortcut:{key:"X",modifiers:[$e.Ctrl]}}),new Tt("copy",b,{label:"Copy",description:"Put a copy of the selection on the clipboard so you can paste it somewhere else.",shortcut:{key:"C",modifiers:[$e.Ctrl]}}),new Tt("paste",w,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[$e.Ctrl]},{key:"F8",modifiers:[$e.Ctrl]}]})];a?.addCommands(E,!0)},[a]);const f=Te(async b=>{if(!t?.element)return;let w=null;try{w=t.doCopy?.(b),typeof w=="string"?await h.writeText(w):await h.writeReference(w)}catch(E){throw E}},[t,i]),g=Te(async b=>{const w=t?.element?.();if(w){p.current={sourceElement:w,args:b};try{await f(b)}catch(E){i?.showError?.(E)}}},[t?.element,i]),m=u.useCallback(()=>{g({isCut:!0})},[]),y=Te(async(b,w,E)=>{try{if(await b.doPaste(w,E)===!1)return;c?.(w,E)}catch(S){i?.showError?.(S)}},[c]),x=Te(async(b,w,E)=>{const S=n?.element?.();if(S&&await Jt.whenFocus(S),!b&&!w)return;const R=await i?.showBusy?.("Pasting...");if(w)try{return await y(n,w,E),void R?.()}catch(T){R?.(),i?.showError?.(T)}let _,A=n.importFromExternal;A||(A=(T,j)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{_=await A(b,{isCut:!1})}catch(T){R?.(),i?.showError?.(T)}if(_)try{const T=await Promise.resolve(_);await y(n,T,E),R?.()}catch(T){R?.(),i?.showError?.(T)}else R?.()},[y,n,i]),v=Te(async b=>{if(n?.element)try{const w=await h.readReference();if(w)return void await x(null,w,b);const E=[];E[0]=await kR(h,xa),E[1]=await ER(h,kr),E[2]=await CR(h,zd);const S={text:E[0]??null,html:E[1]??null,image:E[2]??null};await x(S,null,b)}catch(w){if(w?.message==="Document is not focused.")return;i?.showError?.(w)}},[x,n?.element,i]);return Te(async b=>{},[t?.element]),Te(async b=>{},[n?.element,x,i]),u.useEffect(()=>{if(!h)return;const b=async S=>{const R=await h.readReference();l?.(R)},w=S=>{i?.showMessage?.(Fs.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},E=S=>{i?.showMessage?.(Fs.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return h.addEventListener("clipboardchange",b),h.addEventListener("clipboarderrorread",w),h.addEventListener("clipboarderrorwrite",E),()=>{h.removeEventListener("clipboardchange",b),h.removeEventListener("clipboarderrorread",w),h.removeEventListener("clipboarderrorwrite",E)}},[h,i]),u.useEffect(()=>{},[f,x,t,n]),u.useEffect(()=>{a?.getCommand("cut")?.updateCallback(m).update({disabled:!t||!n}),a?.getCommand("copy")?.updateCallback(g).update({disabled:!t}),a?.getCommand("paste")?.updateCallback(v).update({disabled:!n})},[t,n,a]),{paste:v,copy:g,clipboard:h}};u.useId;const S4="Undo the last action.",C4="Repeat the last action or undo the redo.",iI=e=>`Redo ${e}`;function ab(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ab(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function rr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ab(e))&&(o&&(o+=" "),o+=t);return o}const Ir="text/html",Da="text/plain",mp="image/png",aI=Object.freeze({left:0,top:0}),lI=Object.freeze({left:0,top:0,bottom:0,right:0}),sI=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:sI,EmptyRect:lI,EmptyTopLeft:aI},Symbol.toStringTag,{value:"Module"}));const Tl="column",Bc="row",cI=Object.freeze({colIndex:0,rowIndex:0}),dI=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),lb=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,sb=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,uI=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,pI=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,k4=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,E4=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,cb=(e=Bc,t=!1)=>t?e!==Tl?uI:pI:e!==Tl?sb:lb,M4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,q5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,K5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),T4=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!q5(e[n],t[n]))return!1;return!0},gp=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},_4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];K5(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},hI=[null,null],fI=(e,t,n)=>{if(e[0].value===e[1].value)return t};function j4(e,t=2,n,o=Bc,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Tl,l=0,c=!1;do{const d=i.sort(cb(a?Bc:Tl));i=[],i.push(d[0]);const p=d.length;let h=0,f=d[0],g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?f&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:f&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(f.value!==void 0&&(E.value=f.value),n){const S=r??[null,null];S[0]=f,S[1]=b,E=n(S,E,o)}if(E){i[h]=E,c=!0,f=E,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;continue}}i[++h]=b,f=b,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:cI,EmptyRange:dI,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:k4,columnFirstRangeComparator:lb,createCellComparator:(e=Bc,t=!1)=>t?e!==Tl?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==Tl?E4:k4,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const h=d!==void 0;if(h){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const f=t?l:c,g=t?c:l;o={colStart:f,rowStart:g,colEnd:f,rowEnd:g},h&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?j4(n,3,l===!0?fI:l,t?Tl:Bc,hI):n)}},createRangeComparator:cb,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:_4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!q5(n,o);)o=n,n=_4(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(K5(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:M4,isEqualRanges:q5,isEqualRangesArrays:T4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!M4(e.cell,t.cell)&&T4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:K5,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:j4,rowFirstCellComparator:E4,rowFirstRangeComparator:sb,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:gp,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=gp(o,e[r],n);return t&&(o=gp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const mI=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function gI(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===mI}(e)}function Z0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Al((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function yI(e,t,n){return e.concat(t).map(function(o){return Z0(o,n)})}function R4(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function I4(e,t){try{return t in e}catch{return!1}}function Al(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||yI,n.isMergeableObject=n.isMergeableObject||gI,n.cloneUnlessOtherwiseSpecified=Z0;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&R4(r).forEach(function(c){l[c]=Z0(r[c],a)}),R4(i).forEach(function(c){var d,p;I4(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(I4(r,c)&&a.isMergeableObject(i[c])?l[c]=function(h,f){if(!f.customMerge)return Al;const g=f.customMerge(h);return typeof g=="function"?g:Al}(c,a)(r[c],i[c],a):l[c]=Z0(i[c],a))}),l}(e,t,n):Z0(t,n)}Al.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Al(n,o,t)},{})};const xI=Object.freeze([]),bI=Object.freeze({}),P4=e=>e,Nd=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),db=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),E0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ub=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?ub(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),vI=(e,t)=>!(e!==t&&!db(e,t)&&!e.isEqual?.(t)),pb=(e,t,n=vI)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const a=o[i];pb(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},O4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),D4=e=>e==null,L4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),A4=!(typeof window>"u"||!window.document||!window.document.createElement),Pr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Nc=()=>{if(hb())return Pr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Pr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Pr.MacOS:/(iphone|ipad|ipod)/i.test(e)?Pr.IOS:/android/.test(e)?Pr.Android:/linux/.test(e)?Pr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Pr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Pr.Firefox:Pr.Unknown:Pr.Unknown};function hb(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const z4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),To=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:xI,EmptyObject:bI,OSType:Pr,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:A4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>D4(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:Al,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=P4){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=P4){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!E0(a))return a;o=a}return o??null},getOS:Nc,hasFocus:z4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:db,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:hb,isNullOrUndefined:D4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:E0,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:L4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!E0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Al(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!A4)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:ub,removeEqualValues:pb,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=O4(),o={id:requestAnimationFrame(function r(){O4()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!E0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!E0(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!L4(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),l(),i(),a()):(i(),a(),l(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Nd,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{z4(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const fb=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},G5=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:fb,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:G5},Symbol.toStringTag,{value:"Module"}));const mb="data:image/png;base64,",gb="Unable to resolve image.",F4=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(gb)}),yp="image/svg+xml";var B4,N4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:mb,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(gb)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await F4(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:yp})),l=await F4(a);n={mimeType:t??yp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===yp?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(N4=B4||(B4={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let h,f=r[p];if(f!==void 0){const g=i[p];h=g?(0,N4.resolveTypedUpdates)(f,g,n,o?.[p]):f}else h=o?.[p];h!=null&&(l=l??{},l[p]=h)}}return l};const $4=`The Safari browser does not support advanced copy and paste.
|
|
123
|
+
Copy and paste will be limited to within the browser tab.
|
|
124
|
+
|
|
125
|
+
Please use Chrome or Edge if external copy and paste is required.`,xp=`You do not have permissions to access the clipboard.
|
|
126
|
+
All copy and paste operations will be limited to the browser tab.`,yb={Safari:`The Safari browser does not support advanced copy and paste.
|
|
127
|
+
Copy and paste will be limited to within the browser tab.
|
|
128
|
+
|
|
129
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:xp,PermsWrite:Nc()===Pr.Safari?$4:xp,PermsRead:Nc()===Pr.Safari?$4:xp},bp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),vp=async(e,t,n)=>{if(Nc()===Pr.Safari)return await n(new Error(yb.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},xb=async e=>{try{return await e.read({unsanitized:[Ir]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const Z5=async(e,t=Ir)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await xb(i);let c=!1;for(let d=0;!c&&l&&d<l.length;d++)if(c=l[d].types.includes(a),c)return await l[d].getType(a);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),V4=async(e,t=Ir)=>{const n=await Z5(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Ir)}catch{console.warn("Can't parse html from clipboard.")}return o},$c="clipboard-uuid",Ql="web text/uuid",H4=e=>`<div style="display:none" ${$c}="${e}"/>`,wI=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Ir);o.body.firstElementChild.setAttribute($c,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},W4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${$c}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let xu=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await vp("clipboard-read",async()=>{await bp();const e=await Z5(this._nativeClipboard,Ql);if(!this._state||e&&e===this._state.uuid)return!0;const t=await V4(this._nativeClipboard,Ir);return!this._state||(W4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Nc()===Pr.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await vp("clipboard-read",async()=>{if(await bp(),this._state?.uuid){const t=await Z5(this._nativeClipboard,Ql);if(t&&t===e._state.uuid)return!0;const n=await V4(this._nativeClipboard,Ir);if(W4(e._state?.uuid,n))return!0}return e._state={items:await xb(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Nd(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await vp("clipboard-write",async()=>{await bp(),o&&r.length===0&&(r.push(new ClipboardItem({[Ql]:new Blob([o],{type:Ql})})),r.push(new ClipboardItem({[Ir]:new Blob([H4(o)],{type:Ir})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Ir),d=null;if(c!==-1){const f=await l.getType(Ir);d=await G5(f),d&&(d=wI(o,d))}if(!d&&l.types.includes(Da)){const f=await l.getType(Da);if(f){let g=null;typeof f=="string"?(console.warn("text as string",f),g=f):g=await G5(f),g&&(d=`<div ${$c}="${o}">${g}</div>`)}}if(!d&&l.types.includes(mp)){const f=await l.getType(mp),g=fb(await f.arrayBuffer());d=`<div ${$c}="${o}"><img src="${mb+g}"/></div>`}!d&&o&&(d=H4(o));const p=new Blob([d??""],{type:Ir}),h={};for(let f=0;f<l.types.length;f++){const g=l.types[f];h[g]=f===c?p:l.getType(g)}d&&c===-1&&(h[Ir]=p),o&&(h[Ql]=new Blob([o],{type:Ql})),n.push(new ClipboardItem(h))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[Da]=new Blob([r??""],{type:Da}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Ir]=new Blob([r],{type:Ir}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[mp]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Nd(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(Da)&&(o=await n[i].getType(Da));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[Da]:new Blob([e],{type:Da})})];return this._write({uuid:Nd(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(a){console.warn(a)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var wp;(wp=xu||(xu={})).ErrorMessages=yb,wp.Global=new wp;const Ns=e=>s.jsx(Xe,{...e,children:s.jsx("path",{})}),T3=e=>s.jsx(Xe,{...e,children:s.jsx("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),U4=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,21.888913 v -7 h 2 v 7 z M 12,9 V 2 h 2 V 9 Z M 4,2 V 21.999938 H 2 V 2 Z"}),s.jsx("path",{className:"styled info",d:"m 6,12.91274 h 3.9862992 3.8490838 4.160058 v 2.554311 L 22,11.635609 17.995441,7.8041663 V 10.358479 H 13.835383 9.9863002 6 Z"})]}),SI=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 22.062389,1.9999683 V 22.000032 h -2 V 1.9999683 Z m -18.062427,0 V 22.000032 h -2 V 1.9999683 Z"}),s.jsx("path",{className:"styled info",d:"m 6.0839844,6.3867187 h 7.4238286 c 2.442808,0 4.423828,1.995808 4.423828,4.4589843 0,2.463178 -1.981061,4.460938 -4.423828,4.460938 H 8.9316406 v 1.404296 L 6.1132812,13.871094 8.9316406,11.03125 v 1.404297 h 4.5761724 c 0.870956,0 1.576171,-0.713095 1.576171,-1.589844 0,-0.8767853 -0.70537,-1.5878905 -1.576171,-1.5878905 H 6.0839844 Z"})]}),CI=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4,3 V 21 H 2 V 3 Z m 18,5.573e-4 V 21.000557 H 20 V 3.0005573 Z"}),s.jsx("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),kI=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 21.974894,2.0582915 V 22.058355 h -2 V 2.0582915 Z M 3.999962,1.9999683 V 22.000032 h -2 V 1.9999683 Z"}),s.jsx("path",{className:"styled info",d:"m 6.2289672,7.8040604 -6.3e-5,8.2560526 h 2.518176 l 2e-5,-2.642838 h 6.4753038 l -2e-5,2.642838 h 2.518175 l 6.1e-5,-8.2560526 h -2.518174 l -2.2e-5,2.9478576 H 8.7471192 l 2.3e-5,-2.9478576 z"})]}),EI=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 9.2299627,5.1022181 V 7.0235319 H 11.052809 L 9.2996104,17.11043 H 7.3086489 v 1.921315 H 13.072591 V 17.11043 H 11.249744 L 13.002943,7.0235319 h 1.990962 V 5.1022181 Z"})}),MI=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 15.500659,11.85365 c 0.97,-0.67 1.65,-1.77 1.65,-2.79 0,-2.2599999 -1.75,-3.9999999 -4,-3.9999999 H 6.9006595 V 19.06365 h 7.0399995 c 2.09,0 3.71,-1.7 3.71,-3.79 0,-1.52 -0.86,-2.82 -2.15,-3.42 M 9.9006595,7.5636501 h 2.9999995 c 0.83,0 1.5,0.6699999 1.5,1.4999999 0,0.83 -0.67,1.5 -1.5,1.5 H 9.9006595 Z M 13.400659,16.56365 H 9.9006595 v -3 h 3.4999995 c 0.83,0 1.5,0.67 1.5,1.5 0,0.83 -0.67,1.5 -1.5,1.5"})}),TI=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),s.jsx("path",{className:"styled info",d:"M 5.7580928,1.3371537 4.9319914,4.6570488 H 2.2351143 V 5.7189333 H 4.6566242 L 3.933785,8.6756882 H 1.3143556 V 9.7375737 H 3.6584179 L 2.840922,13.047141 H 3.8546168 L 4.6721135,9.7375737 H 6.7958823 L 6.1677007,12.277835 7.5152788,10.930257 7.8112989,9.7375737 H 8.709684 L 9.7715688,8.6756882 H 8.086666 L 8.8095044,5.7189333 H 11.428935 V 4.6570488 H 9.0848717 L 9.9109739,1.3371537 H 8.8955565 L 8.0694549,4.6570488 H 5.947407 L 6.7717875,1.3371537 Z M 5.6634348,5.701723 H 7.8181826 L 7.079855,8.6911775 H 4.9251067 Z"})]}),q4=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 15.03125,1.3183594 C 14.54185,1.3182736 14.053088,1.5042411 13.679688,1.8769531 11.398308,4.157118 3.6820968,11.87362 1.5410156,14.013672 c -0.86142447,0.86938 -0.86098491,2.265402 0.00195,3.134765 l 5.6855469,5.685547 c 0.1357951,0.134779 0.3202858,0.213709 0.515625,0.214844 H 18.921875 c 0.952769,-0.0183 0.952325,-1.440701 -0.0059,-1.458984 h -6.72461 c 0.52861,-0.528334 1.319592,-1.318068 1.550782,-1.548828 l 0.0293,-0.02734 0.0059,-0.0098 0.002,-0.002 0.0039,-0.0039 0.0059,-0.0059 0.0039,-0.0039 0.01172,-0.01172 0.0098,-0.0078 c 0.0012,-0.0011 0.01373,-0.01569 0.01563,-0.01758 0.0213,-0.02126 0.07807,-0.07612 0.1875,-0.185547 1.191778,-1.191762 7.211708,-7.213963 8.521484,-8.523437 0.0975,-0.09747 0.168608,-0.170617 0.208985,-0.210938 l 0.0078,-0.0078 0.0059,-0.0059 0.002,-0.002 0.0039,-0.0039 0.002,-0.002 0.002,-0.002 0.002,-0.002 0.01758,-0.01563 c 0.746601,-0.747927 0.74678,-1.9550164 0,-2.7031246 L 16.382812,1.8769531 C 16.009537,1.5041056 15.520443,1.3184452 15.03125,1.3183594 Z m 0,1.4570312 c 0.114653,3.98e-5 0.230973,0.043724 0.320313,0.1328125 l 6.408203,6.4082032 c 0.175951,0.1776856 0.17626,0.4665109 0.002,0.6425781 L 13.296875,18.423828 6.2421875,11.371094 14.708984,2.9082031 c 0.08956,-0.089187 0.207055,-0.1328525 0.322266,-0.1328125 z m -9.8183594,9.6269534 7.0527344,7.052734 -2.134766,2.134766 H 8.0449219 L 2.5722656,16.119141 c -0.2949291,-0.297692 -0.2937607,-0.781608 0,-1.078125 z"})}),bb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),s.jsx("path",{className:"styled info",d:"m 1.6679826,1.0184502 c -0.330106,0 -0.601562,0.314804 -0.601562,0.701172 v 2.810547 c 0,0.386369 0.271456,0.703125 0.601562,0.703125 h 7.201172 c 0.3301052,0 0.5996094,-0.316756 0.5996094,-0.703125 v -0.703125 h 0.601561 v 2.810547 H 4.0683736 v 7.3261708 l 2.40039,-2.363281 V 8.0418882 H 10.08595 l 1.183594,-1.164063 v -4.455078 h -1.80078 v -0.703125 c 0,-0.386368 -0.2695042,-0.701172 -0.5996094,-0.701172 z"})]});function zl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const _3="$$material";function vb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wb(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var K4,G4,Z4={exports:{}},ao={},Sb=(G4||(G4=1,Z4.exports=function(){if(K4)return ao;K4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case f:return y;default:switch(y=y&&y.$$typeof){case a:case l:case h:case p:case i:return y;default:return x}}case t:return x}}}return ao.ContextConsumer=i,ao.ContextProvider=a,ao.Element=e,ao.ForwardRef=l,ao.Fragment=n,ao.Lazy=h,ao.Memo=p,ao.Portal=t,ao.Profiler=r,ao.StrictMode=o,ao.Suspense=c,ao.SuspenseList=d,ao.isContextConsumer=function(y){return m(y)===i},ao.isContextProvider=function(y){return m(y)===a},ao.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ao.isForwardRef=function(y){return m(y)===l},ao.isFragment=function(y){return m(y)===n},ao.isLazy=function(y){return m(y)===h},ao.isMemo=function(y){return m(y)===p},ao.isPortal=function(y){return m(y)===t},ao.isProfiler=function(y){return m(y)===r},ao.isStrictMode=function(y){return m(y)===o},ao.isSuspense=function(y){return m(y)===c},ao.isSuspenseList=function(y){return m(y)===d},ao.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},ao.typeOf=m,ao}()),Z4.exports);function wa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Cb(e){if(Z.isValidElement(e)||Sb.isValidElementType(e)||!wa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Cb(e[n])}),t}function oi(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return wa(e)&&wa(t)&&Object.keys(t).forEach(r=>{Z.isValidElement(t[r])||Sb.isValidElementType(t[r])?o[r]=t[r]:wa(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&wa(e[r])?o[r]=oi(e[r],t[r],n):n.clone?o[r]=wa(t[r])?Cb(t[r]):t[r]:o[r]=t[r]}),o}function j3(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function tl(e){if(e.type)return e;if(e.charAt(0)==="#")return tl(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(zl(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(zl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const X0=(e,t)=>{try{return(n=>{const o=tl(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function b2(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function kb(e){e=tl(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),b2({type:l,values:c})}function X5(e){let t=(e=tl(e)).type==="hsl"||e.type==="hsla"?tl(kb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nd(e,t,n){try{return function(o,r){return o=tl(o),r=j3(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,b2(o)}(e,t)}catch{return e}}function R3(e,t){if(e=tl(e),t=j3(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return b2(e)}function po(e,t,n){try{return R3(e,t)}catch{return e}}function I3(e,t){if(e=tl(e),t=j3(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return b2(e)}function ho(e,t,n){try{return I3(e,t)}catch{return e}}function od(e,t,n){try{return function(o,r=.15){return X5(o)>.5?R3(o,r):I3(o,r)}(e,t)}catch{return e}}const Vc={black:"#000",white:"#fff"},_I={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},X4="#d32f2f",Y4="#42a5f5",J4="#0288d1";function Eb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vc.white,default:Vc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const jI=Eb();function Mb(){return{text:{primary:Vc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Q4=Mb();function e7(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=I3(e.main,r):t==="dark"&&(e.dark=R3(e.main,i)))}function P3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:"#90caf9",light:"#e3f2fd",dark:Y4}:{main:"#1976d2",light:Y4,dark:"#1565c0"}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),l=e.error||function(m="light"){return m==="dark"?{main:"#f44336",light:"#e57373",dark:X4}:{main:X4,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:J4}:{main:J4,light:"#03a9f4",dark:"#01579b"}}(t),d=e.success||function(m="light"){return m==="dark"?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function h(m){return function(y,x){const v=X5(y),b=X5(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,Q4.text.primary)>=n?Q4.text.primary:jI.text.primary}const f=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(zl(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(zl(12,y?` (${y})`:"",JSON.stringify(m.main)));return e7(m,"light",v,o),e7(m,"dark",b,o),m.contrastText||(m.contrastText=h(m.main)),m};let g;return t==="light"?g=Eb():t==="dark"&&(g=Mb()),oi({common:{...Vc},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:d,name:"success"}),grey:_I,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:o,...g},r)}var t7,n7,o7,r7,i7,a7={exports:{}};function Y5(){return i7||(i7=1,a7.exports=function(){if(r7)return o7;r7=1;var e=n7?t7:(n7=1,t7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,o7=function(){function o(a,l,c,d,p,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()()),a7.exports}function fc(e,t){return t?oi(e,t,{clone:!1}):e}const v2={xs:0,sm:600,md:900,lg:1200,xl:1536},l7={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${v2[e]}px)`},RI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:v2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _a(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||l7;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||l7;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,h){const f=h.match(/^@([^/]+)?\/?(.+)?$/);if(!f)return null;const[,g,m]=f,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:RI,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||v2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function Tb(e){if(typeof e!="string")throw new Error(zl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function w2(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function bu(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:w2(e,n)||o,t&&(r=t(r,o,e)),r}function Uo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=w2(a.theme,o)||{};return _a(a,l,d=>{let p=bu(c,r,d);return d===p&&typeof d=="string"&&(p=bu(c,r,`${t}${d==="default"?"":Tb(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const II={m:"margin",p:"padding"},PI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s7={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OI=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!s7[n])return[n];n=s7[n]}const[o,r]=n.split(""),i=II[o],a=PI[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),_b=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function x1(e,t,n,o){const r=w2(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function O3(e){return x1(e,"spacing",8)}function b1(e,t){return typeof t=="string"||t==null?t:e(t)}function Rb(e,t){const n=O3(e.theme);return Object.keys(e).map(o=>function(r,i,a,l){if(!i.includes(a))return null;const c=function(d,p){return h=>d.reduce((f,g)=>(f[g]=b1(p,h),f),{})}(OI(a),l);return _a(r,r[a],c)}(e,t,o,n)).reduce(fc,{})}function Po(e){return Rb(e,_b)}function Oo(e){return Rb(e,jb)}function Ib(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(a)if(i){n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;n[r][c]=Ib(i[c],a[c])}}else n[r]=a;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}Po.propTypes={},Po.filterProps=_b,Oo.propTypes={},Oo.filterProps=jb;const c7=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function Sp(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,h)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(f=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>f.includes(x))||f[f.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),c7(i,d,`var(${m})`,h),c7(a,d,`var(${m}, ${y})`,h)}var f,g},c=d=>d[0]==="vars",function d(p,h=[],f=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...h,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...h,g],Array.isArray(m)?[...f,g]:f):l([...h,g],m,f))})}(e),{css:r,vars:i,varsWithDefaults:a}}function DI(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}function vu(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?fc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function bi(e){return typeof e!="number"?e:`${e}px solid`}function Ii(e,t){return Uo({prop:e,themeKey:"borders",transform:t})}const LI=Ii("border",bi),AI=Ii("borderTop",bi),zI=Ii("borderRight",bi),FI=Ii("borderBottom",bi),BI=Ii("borderLeft",bi),NI=Ii("borderColor"),$I=Ii("borderTopColor"),VI=Ii("borderRightColor"),HI=Ii("borderBottomColor"),WI=Ii("borderLeftColor"),UI=Ii("outline",bi),qI=Ii("outlineColor"),$d=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=x1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:b1(t,o)});return _a(e,e.borderRadius,n)}return null};$d.propTypes={},$d.filterProps=["borderRadius"],vu(LI,AI,zI,FI,BI,NI,$I,VI,HI,WI,$d,UI,qI);const wu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=x1(e.theme,"spacing",8),n=o=>({gap:b1(t,o)});return _a(e,e.gap,n)}return null};wu.propTypes={},wu.filterProps=["gap"];const Su=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=x1(e.theme,"spacing",8),n=o=>({columnGap:b1(t,o)});return _a(e,e.columnGap,n)}return null};Su.propTypes={},Su.filterProps=["columnGap"];const Vd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=x1(e.theme,"spacing",8),n=o=>({rowGap:b1(t,o)});return _a(e,e.rowGap,n)}return null};function Ss(e,t){return t==="grey"?t:e}function ei(e){return e<=1&&e!==0?100*e+"%":e}Vd.propTypes={},Vd.filterProps=["rowGap"],vu(wu,Su,Vd,Uo({prop:"gridColumn"}),Uo({prop:"gridRow"}),Uo({prop:"gridAutoFlow"}),Uo({prop:"gridAutoColumns"}),Uo({prop:"gridAutoRows"}),Uo({prop:"gridTemplateColumns"}),Uo({prop:"gridTemplateRows"}),Uo({prop:"gridTemplateAreas"}),Uo({prop:"gridArea"})),vu(Uo({prop:"color",themeKey:"palette",transform:Ss}),Uo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ss}),Uo({prop:"backgroundColor",themeKey:"palette",transform:Ss}));const KI=Uo({prop:"width",transform:ei}),D3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||v2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ei(n)}};return _a(e,e.maxWidth,t)}return null};D3.filterProps=["maxWidth"];const GI=Uo({prop:"minWidth",transform:ei}),ZI=Uo({prop:"height",transform:ei}),XI=Uo({prop:"maxHeight",transform:ei}),YI=Uo({prop:"minHeight",transform:ei});Uo({prop:"size",cssProperty:"width",transform:ei}),Uo({prop:"size",cssProperty:"height",transform:ei}),vu(KI,D3,GI,ZI,XI,YI,Uo({prop:"boxSizing"}));const S2={border:{themeKey:"borders",transform:bi},borderTop:{themeKey:"borders",transform:bi},borderRight:{themeKey:"borders",transform:bi},borderBottom:{themeKey:"borders",transform:bi},borderLeft:{themeKey:"borders",transform:bi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$d},color:{themeKey:"palette",transform:Ss},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ss},backgroundColor:{themeKey:"palette",transform:Ss},p:{style:Oo},pt:{style:Oo},pr:{style:Oo},pb:{style:Oo},pl:{style:Oo},px:{style:Oo},py:{style:Oo},padding:{style:Oo},paddingTop:{style:Oo},paddingRight:{style:Oo},paddingBottom:{style:Oo},paddingLeft:{style:Oo},paddingX:{style:Oo},paddingY:{style:Oo},paddingInline:{style:Oo},paddingInlineStart:{style:Oo},paddingInlineEnd:{style:Oo},paddingBlock:{style:Oo},paddingBlockStart:{style:Oo},paddingBlockEnd:{style:Oo},m:{style:Po},mt:{style:Po},mr:{style:Po},mb:{style:Po},ml:{style:Po},mx:{style:Po},my:{style:Po},margin:{style:Po},marginTop:{style:Po},marginRight:{style:Po},marginBottom:{style:Po},marginLeft:{style:Po},marginX:{style:Po},marginY:{style:Po},marginInline:{style:Po},marginInlineStart:{style:Po},marginInlineEnd:{style:Po},marginBlock:{style:Po},marginBlockStart:{style:Po},marginBlockEnd:{style:Po},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wu},rowGap:{style:Vd},columnGap:{style:Su},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ei},maxWidth:{style:D3},minWidth:{transform:ei},height:{transform:ei},maxHeight:{transform:ei},minHeight:{transform:ei},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},$s=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const h=w2(o,c)||{};return p?p(i):_a(i,n,f=>{let g=bu(h,d,f);return f===g&&typeof f=="string"&&(g=bu(h,d,`${t}${f==="default"?"":Tb(f)}`,f)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??S2;function a(l){let c=l;if(typeof l=="function")c=l(r);else if(typeof l!="object")return l;if(!c)return null;const d=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),p=Object.keys(d);let h=d;return Object.keys(c).forEach(g=>{const m=typeof(y=c[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(i[g])h=fc(h,e(g,m,r,i));else{const x=_a({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((E,S)=>E.concat(Object.keys(S)),[]),w=new Set(b);return v.every(E=>w.size===Object.keys(E).length)})(x,m)?h[g]=t({sx:m,theme:r}):h=fc(h,x)}else h=fc(h,e(g,m,r,i))}),function(g,m){if(!g.containerQueries)return m;const y=Object.keys(m).filter(x=>x.startsWith("@container")).sort((x,v)=>{const b=/min-width:\s*([0-9.]+)/;return+(x.match(b)?.[1]||0)-+(v.match(b)?.[1]||0)});return y.length?y.reduce((x,v)=>{const b=m[v];return delete x[v],x[v]=b,x},{...m}):m}(r,(f=h,p.reduce((g,m)=>{const y=g[m];return(!y||Object.keys(y).length===0)&&delete g[m],g},f)));var f}return Array.isArray(o)?o.map(a):a(o)}}();$s.filterProps=["sx"];const JI={borderRadius:4};function QI(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function L3(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e;let l=oi({breakpoints:function(c){const{values:d={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:p="px",step:h=5,...f}=c,g=(b=>{const w=Object.keys(b).map(E=>({key:E,val:b[E]}))||[];return w.sort((E,S)=>E.val-S.val),w.reduce((E,S)=>({...E,[S.key]:S.val}),{})})(d),m=Object.keys(g);function y(b){return`@media (min-width:${typeof d[b]=="number"?d[b]:b}${p})`}function x(b){return`@media (max-width:${(typeof d[b]=="number"?d[b]:b)-h/100}${p})`}function v(b,w){const E=m.indexOf(w);return`@media (min-width:${typeof d[b]=="number"?d[b]:b}${p}) and (max-width:${(E!==-1&&typeof d[m[E]]=="number"?d[m[E]]:w)-h/100}${p})`}return{keys:m,values:g,up:y,down:x,between:v,only:function(b){return m.indexOf(b)+1<m.length?v(b,m[m.indexOf(b)+1]):y(b)},not:function(b){const w=m.indexOf(b);return w===0?y(m[1]):w===m.length-1?x(m[w]):v(b,m[m.indexOf(b)+1]).replace("@media","@media not all and")},unit:p,...f}}(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(c=8,d=O3({spacing:c})){if(c.mui)return c;const p=(...h)=>(h.length===0?[1]:h).map(f=>{const g=d(f);return typeof g=="number"?`${g}px`:g}).join(" ");return p.mui=!0,p}(r),shape:{...JI,...i}},a);return l=function(c){const d=(g,m)=>g.replace("@media",m?`@container ${m}`:"@container");function p(g,m){g.up=(...y)=>d(c.breakpoints.up(...y),m),g.down=(...y)=>d(c.breakpoints.down(...y),m),g.between=(...y)=>d(c.breakpoints.between(...y),m),g.only=(...y)=>d(c.breakpoints.only(...y),m),g.not=(...y)=>{const x=d(c.breakpoints.not(...y),m);return x.includes("not all and")?x.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):x}}const h={},f=g=>(p(h,g),h);return p(f),{...c,containerQueries:f}}(l),l.applyStyles=QI,l=t.reduce((c,d)=>oi(c,d),l),l.unstable_sxConfig={...S2,...a?.unstable_sxConfig},l.unstable_sx=function(c){return $s({sx:c,theme:this})},l}const d7={textTransform:"uppercase"},u7='"Roboto", "Helvetica", "Arial", sans-serif';function eP(e,t){const{fontFamily:n=u7,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,f=o/14,g=p||(x=>x/c*f+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===u7?{letterSpacing:(S=w/v,Math.round(1e5*S)/1e5+"em")}:{},...E,...d};var S},y={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,d7),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,d7),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oi({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},h,{clone:!1})}function Co(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tP=["none",Co(0,2,1,-1,0,1,1,0,0,1,3,0),Co(0,3,1,-2,0,2,2,0,0,1,5,0),Co(0,3,3,-2,0,3,4,0,0,1,8,0),Co(0,2,4,-1,0,4,5,0,0,1,10,0),Co(0,3,5,-1,0,5,8,0,0,1,14,0),Co(0,3,5,-1,0,6,10,0,0,1,18,0),Co(0,4,5,-2,0,7,10,1,0,2,16,1),Co(0,5,5,-3,0,8,10,1,0,3,14,2),Co(0,5,6,-3,0,9,12,1,0,3,16,2),Co(0,6,6,-3,0,10,14,1,0,4,18,3),Co(0,6,7,-4,0,11,15,1,0,4,20,3),Co(0,7,8,-4,0,12,17,2,0,5,22,4),Co(0,7,8,-4,0,13,19,2,0,5,24,4),Co(0,7,9,-4,0,14,21,2,0,5,26,4),Co(0,8,9,-5,0,15,22,2,0,6,28,5),Co(0,8,10,-5,0,16,24,2,0,6,30,5),Co(0,8,11,-5,0,17,26,2,0,6,32,5),Co(0,9,11,-5,0,18,28,2,0,7,34,6),Co(0,9,12,-6,0,19,29,2,0,7,36,6),Co(0,10,13,-6,0,20,31,3,0,8,38,7),Co(0,10,13,-6,0,21,33,3,0,8,40,7),Co(0,10,14,-6,0,22,35,3,0,8,42,7),Co(0,11,14,-7,0,23,36,3,0,9,44,8),Co(0,11,15,-7,0,24,38,3,0,9,46,8)],nP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function p7(e){return`${Math.round(e)}ms`}function rP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function iP(e){const t={...nP,...e.easing},n={...oP,...e.duration};return{getAutoHeightDuration:rP,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:p7(i)} ${a} ${typeof l=="string"?l:p7(l)}`).join(",")},...e,easing:t,duration:n}}const aP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lP(e){return wa(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Pb(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!lP(l)||a.startsWith("unstable_")?delete o[a]:wa(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
130
|
+
|
|
131
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
132
|
+
|
|
133
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
134
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
135
|
+
|
|
136
|
+
export default theme;`}function J5(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(zl(20));const p=P3(i),h=L3(e);let f=oi(h,{mixins:(g=h.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:tP.slice(),typography:eP(p,l),transitions:iP(a),zIndex:{...aP}});var g,m;return f=oi(f,d),f=t.reduce((y,x)=>oi(y,x),f),f.unstable_sxConfig={...S2,...d?.unstable_sxConfig},f.unstable_sx=function(y){return $s({sx:y,theme:this})},f.toRuntimeSource=Pb,f}function Ob(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const sP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ob(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function h7(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function f7(e){return e==="dark"?sP:[]}function cP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const dP=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var a;return o};function lt(e,t,n){!e[t]&&n&&(e[t]=n)}function Y0(e){return typeof e=="string"&&e.startsWith("hsl")?kb(e):e}function ga(e,t){`${t}Channel`in e||(e[`${t}Channel`]=X0(Y0(e[t])))}const Xi=e=>{try{return e()}catch{}};function Cp(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...h}=l,f=P3(c);return{palette:f,opacity:{...h7(f.mode),...d},overlays:p||f7(f.mode),...h}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=J5({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...h7(r),...t?.opacity},overlays:t?.overlays||f7(r)},a}function m7(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:P3({...n===!0?{}:n.palette,mode:t})})}function Q5(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return J5(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=J5({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},m7(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},m7(h,"light",d.light)),h}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...h){const{colorSchemes:f={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=cP,colorSchemeSelector:v=f.light&&f.dark?"media":void 0,rootSelector:b=":root",...w}=p,E=Object.keys(f)[0],S=g||(f.light&&E!=="light"?"light":E),R=((B="mui")=>l3(B))(y),{[S]:_,light:A,dark:T,...j}=f,C={...j};let k=_;if((S==="dark"&&!("dark"in f)||S==="light"&&!("light"in f))&&(k=!0),!k)throw new Error(zl(21,S));const P=Cp(C,k,w,S);A&&!C.light&&Cp(C,A,void 0,"light"),T&&!C.dark&&Cp(C,T,void 0,"dark");let O={defaultColorScheme:S,...P,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:R,colorSchemes:C,font:{...DI(P.typography),...P.font},spacing:(I=w.spacing,typeof I=="number"?`${I}px`:typeof I=="string"||typeof I=="function"||Array.isArray(I)?I:"8px")};var I;Object.keys(O.colorSchemes).forEach(B=>{const M=O.colorSchemes[B].palette,N=U=>{const J=U.split("-"),X=J[1],H=J[2];return R(U,M[X][H])};var V;if(M.mode==="light"&&(lt(M.common,"background","#fff"),lt(M.common,"onBackground","#000")),M.mode==="dark"&&(lt(M.common,"background","#000"),lt(M.common,"onBackground","#fff")),V=M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{V[U]||(V[U]={})}),M.mode==="light"){lt(M.Alert,"errorColor",po(M.error.light,.6)),lt(M.Alert,"infoColor",po(M.info.light,.6)),lt(M.Alert,"successColor",po(M.success.light,.6)),lt(M.Alert,"warningColor",po(M.warning.light,.6)),lt(M.Alert,"errorFilledBg",N("palette-error-main")),lt(M.Alert,"infoFilledBg",N("palette-info-main")),lt(M.Alert,"successFilledBg",N("palette-success-main")),lt(M.Alert,"warningFilledBg",N("palette-warning-main")),lt(M.Alert,"errorFilledColor",Xi(()=>M.getContrastText(M.error.main))),lt(M.Alert,"infoFilledColor",Xi(()=>M.getContrastText(M.info.main))),lt(M.Alert,"successFilledColor",Xi(()=>M.getContrastText(M.success.main))),lt(M.Alert,"warningFilledColor",Xi(()=>M.getContrastText(M.warning.main))),lt(M.Alert,"errorStandardBg",ho(M.error.light,.9)),lt(M.Alert,"infoStandardBg",ho(M.info.light,.9)),lt(M.Alert,"successStandardBg",ho(M.success.light,.9)),lt(M.Alert,"warningStandardBg",ho(M.warning.light,.9)),lt(M.Alert,"errorIconColor",N("palette-error-main")),lt(M.Alert,"infoIconColor",N("palette-info-main")),lt(M.Alert,"successIconColor",N("palette-success-main")),lt(M.Alert,"warningIconColor",N("palette-warning-main")),lt(M.AppBar,"defaultBg",N("palette-grey-100")),lt(M.Avatar,"defaultBg",N("palette-grey-400")),lt(M.Button,"inheritContainedBg",N("palette-grey-300")),lt(M.Button,"inheritContainedHoverBg",N("palette-grey-A100")),lt(M.Chip,"defaultBorder",N("palette-grey-400")),lt(M.Chip,"defaultAvatarColor",N("palette-grey-700")),lt(M.Chip,"defaultIconColor",N("palette-grey-700")),lt(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),lt(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),lt(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),lt(M.LinearProgress,"primaryBg",ho(M.primary.main,.62)),lt(M.LinearProgress,"secondaryBg",ho(M.secondary.main,.62)),lt(M.LinearProgress,"errorBg",ho(M.error.main,.62)),lt(M.LinearProgress,"infoBg",ho(M.info.main,.62)),lt(M.LinearProgress,"successBg",ho(M.success.main,.62)),lt(M.LinearProgress,"warningBg",ho(M.warning.main,.62)),lt(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),lt(M.Slider,"primaryTrack",ho(M.primary.main,.62)),lt(M.Slider,"secondaryTrack",ho(M.secondary.main,.62)),lt(M.Slider,"errorTrack",ho(M.error.main,.62)),lt(M.Slider,"infoTrack",ho(M.info.main,.62)),lt(M.Slider,"successTrack",ho(M.success.main,.62)),lt(M.Slider,"warningTrack",ho(M.warning.main,.62));const U=od(M.background.default,.8);lt(M.SnackbarContent,"bg",U),lt(M.SnackbarContent,"color",Xi(()=>M.getContrastText(U))),lt(M.SpeedDialAction,"fabHoverBg",od(M.background.paper,.15)),lt(M.StepConnector,"border",N("palette-grey-400")),lt(M.StepContent,"border",N("palette-grey-400")),lt(M.Switch,"defaultColor",N("palette-common-white")),lt(M.Switch,"defaultDisabledColor",N("palette-grey-100")),lt(M.Switch,"primaryDisabledColor",ho(M.primary.main,.62)),lt(M.Switch,"secondaryDisabledColor",ho(M.secondary.main,.62)),lt(M.Switch,"errorDisabledColor",ho(M.error.main,.62)),lt(M.Switch,"infoDisabledColor",ho(M.info.main,.62)),lt(M.Switch,"successDisabledColor",ho(M.success.main,.62)),lt(M.Switch,"warningDisabledColor",ho(M.warning.main,.62)),lt(M.TableCell,"border",ho(nd(M.divider,1),.88)),lt(M.Tooltip,"bg",nd(M.grey[700],.92))}if(M.mode==="dark"){lt(M.Alert,"errorColor",ho(M.error.light,.6)),lt(M.Alert,"infoColor",ho(M.info.light,.6)),lt(M.Alert,"successColor",ho(M.success.light,.6)),lt(M.Alert,"warningColor",ho(M.warning.light,.6)),lt(M.Alert,"errorFilledBg",N("palette-error-dark")),lt(M.Alert,"infoFilledBg",N("palette-info-dark")),lt(M.Alert,"successFilledBg",N("palette-success-dark")),lt(M.Alert,"warningFilledBg",N("palette-warning-dark")),lt(M.Alert,"errorFilledColor",Xi(()=>M.getContrastText(M.error.dark))),lt(M.Alert,"infoFilledColor",Xi(()=>M.getContrastText(M.info.dark))),lt(M.Alert,"successFilledColor",Xi(()=>M.getContrastText(M.success.dark))),lt(M.Alert,"warningFilledColor",Xi(()=>M.getContrastText(M.warning.dark))),lt(M.Alert,"errorStandardBg",po(M.error.light,.9)),lt(M.Alert,"infoStandardBg",po(M.info.light,.9)),lt(M.Alert,"successStandardBg",po(M.success.light,.9)),lt(M.Alert,"warningStandardBg",po(M.warning.light,.9)),lt(M.Alert,"errorIconColor",N("palette-error-main")),lt(M.Alert,"infoIconColor",N("palette-info-main")),lt(M.Alert,"successIconColor",N("palette-success-main")),lt(M.Alert,"warningIconColor",N("palette-warning-main")),lt(M.AppBar,"defaultBg",N("palette-grey-900")),lt(M.AppBar,"darkBg",N("palette-background-paper")),lt(M.AppBar,"darkColor",N("palette-text-primary")),lt(M.Avatar,"defaultBg",N("palette-grey-600")),lt(M.Button,"inheritContainedBg",N("palette-grey-800")),lt(M.Button,"inheritContainedHoverBg",N("palette-grey-700")),lt(M.Chip,"defaultBorder",N("palette-grey-700")),lt(M.Chip,"defaultAvatarColor",N("palette-grey-300")),lt(M.Chip,"defaultIconColor",N("palette-grey-300")),lt(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),lt(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),lt(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),lt(M.LinearProgress,"primaryBg",po(M.primary.main,.5)),lt(M.LinearProgress,"secondaryBg",po(M.secondary.main,.5)),lt(M.LinearProgress,"errorBg",po(M.error.main,.5)),lt(M.LinearProgress,"infoBg",po(M.info.main,.5)),lt(M.LinearProgress,"successBg",po(M.success.main,.5)),lt(M.LinearProgress,"warningBg",po(M.warning.main,.5)),lt(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),lt(M.Slider,"primaryTrack",po(M.primary.main,.5)),lt(M.Slider,"secondaryTrack",po(M.secondary.main,.5)),lt(M.Slider,"errorTrack",po(M.error.main,.5)),lt(M.Slider,"infoTrack",po(M.info.main,.5)),lt(M.Slider,"successTrack",po(M.success.main,.5)),lt(M.Slider,"warningTrack",po(M.warning.main,.5));const U=od(M.background.default,.98);lt(M.SnackbarContent,"bg",U),lt(M.SnackbarContent,"color",Xi(()=>M.getContrastText(U))),lt(M.SpeedDialAction,"fabHoverBg",od(M.background.paper,.15)),lt(M.StepConnector,"border",N("palette-grey-600")),lt(M.StepContent,"border",N("palette-grey-600")),lt(M.Switch,"defaultColor",N("palette-grey-300")),lt(M.Switch,"defaultDisabledColor",N("palette-grey-600")),lt(M.Switch,"primaryDisabledColor",po(M.primary.main,.55)),lt(M.Switch,"secondaryDisabledColor",po(M.secondary.main,.55)),lt(M.Switch,"errorDisabledColor",po(M.error.main,.55)),lt(M.Switch,"infoDisabledColor",po(M.info.main,.55)),lt(M.Switch,"successDisabledColor",po(M.success.main,.55)),lt(M.Switch,"warningDisabledColor",po(M.warning.main,.55)),lt(M.TableCell,"border",po(nd(M.divider,1),.68)),lt(M.Tooltip,"bg",nd(M.grey[700],.92))}ga(M.background,"default"),ga(M.background,"paper"),ga(M.common,"background"),ga(M.common,"onBackground"),ga(M,"divider"),Object.keys(M).forEach(U=>{const J=M[U];U!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&<(M[U],"mainChannel",X0(Y0(J.main))),J.light&<(M[U],"lightChannel",X0(Y0(J.light))),J.dark&<(M[U],"darkChannel",X0(Y0(J.dark))),J.contrastText&<(M[U],"contrastTextChannel",X0(Y0(J.contrastText))),U==="text"&&(ga(M[U],"primary"),ga(M[U],"secondary")),U==="action"&&(J.active&&ga(M[U],"active"),J.selected&&ga(M[U],"selected")))})}),O=h.reduce((B,M)=>oi(B,M),O);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:dP(O)},{vars:L,generateThemeVars:D,generateStyleSheets:F}=function(B,M={}){const{getSelector:N=ce,disableCssColorScheme:V,colorSchemeSelector:U}=M,{colorSchemes:J={},components:X,defaultColorScheme:H="light",...ne}=B,{vars:oe,css:ge,varsWithDefaults:de}=Sp(ne,M);let ye=de;const ve={},{[H]:be,...re}=J;if(Object.entries(re||{}).forEach(([we,ae])=>{const{vars:Y,css:le,varsWithDefaults:ee}=Sp(ae,M);ye=oi(ye,ee),ve[we]={css:le,vars:Y}}),be){const{css:we,vars:ae,varsWithDefaults:Y}=Sp(be,M);ye=oi(ye,Y),ve[H]={css:we,vars:ae}}function ce(we,ae){let Y=U;if(U==="class"&&(Y=".%s"),U==="data"&&(Y="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(Y=`[${U}="%s"]`),we){if(Y==="media")return B.defaultColorScheme===we?":root":{[`@media (prefers-color-scheme: ${J[we]?.palette?.mode||we})`]:{":root":ae}};if(Y)return B.defaultColorScheme===we?`:root, ${Y.replace("%s",String(we))}`:Y.replace("%s",String(we))}return":root"}return{vars:ye,generateThemeVars:()=>{let we={...oe};return Object.entries(ve).forEach(([,{vars:ae}])=>{we=oi(we,ae)}),we},generateStyleSheets:()=>{const we=[],ae=B.defaultColorScheme||"light";function Y(Ie,Me){Object.keys(Me).length&&we.push(typeof Ie=="string"?{[Ie]:{...Me}}:Ie)}Y(N(void 0,{...ge}),ge);const{[ae]:le,...ee}=ve;if(le){const{css:Ie}=le,Me=J[ae]?.palette?.mode,ot=!V&&Me?{colorScheme:Me,...Ie}:{...Ie};Y(N(ae,{...ot}),ot)}return Object.entries(ee).forEach(([Ie,{css:Me}])=>{const ot=J[Ie]?.palette?.mode,Ve=!V&&ot?{colorScheme:ot,...Me}:{...Me};Y(N(Ie,{...Ve}),Ve)}),we}}}(O,z);return O.vars=L,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([B,M])=>{O[B]=M}),O.generateThemeVars=D,O.generateStyleSheets=F,O.generateSpacing=function(){return i2(w.spacing,O3(this))},O.getColorSchemeSelector=function(B){return function(M){return B==="media"?`@media (prefers-color-scheme: ${M})`:B?B.startsWith("data-")&&!B.includes("%s")?`[${B}="${M}"] &`:B==="class"?`.${M} &`:B==="data"?`[data-${M}] &`:`${B.replace("%s",M)} &`:"&"}}(v),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=x,O.unstable_sxConfig={...S2,...w?.unstable_sxConfig},O.unstable_sx=function(B){return $s({sx:B,theme:this})},O.toRuntimeSource=Pb,O}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const A3=Q5();function z3(){const e=p1(A3);return e[_3]||e}function uP(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ib(t.components[n].defaultProps,o):o}const pP=L3(),hP=L3();function kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fP(e){return e?(t,n)=>n[e]:null}function Hd(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Hd(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return Db(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Db(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function mP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const gP=function(e={}){const{themeId:t,defaultTheme:n=hP,rootShouldForwardProp:o=kp,slotShouldForwardProp:r=kp}=e;function i(a){var l,c,d;c=t,d=n,(l=a).theme=function(p){for(const h in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme}return(a,l={})=>{e3(a,S=>S.filter(R=>R!==$s));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:f=fP(mP(d)),...g}=l,m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let x=kp;var v;d==="Root"||d==="root"?x=o:d?x=r:typeof(v=a)=="string"&&v.charCodeAt(0)>96&&(x=void 0);const b=n2(a,{shouldForwardProp:x,label:void 0,...g}),w=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(R){return Hd(R,S)};if(wa(S)){const R=function(_){const{variants:A,...T}=_,j={variants:A,style:Tc(T),isProcessed:!0};return j.style===T||A&&A.forEach(C=>{typeof C.style!="function"&&(C.style=Tc(C.style))}),j}(S);return R.variants?function(_){return Hd(_,R)}:R.style}return S},E=(...S)=>{const R=[],_=S.map(w),A=[];if(R.push(i),c&&f&&A.push(function(C){const k=C.theme,P=k.components?.[c]?.styleOverrides;if(!P)return null;const O={};for(const I in P)O[I]=Hd(C,P[I]);return f(C,O)}),c&&!m&&A.push(function(C){const k=C.theme,P=k?.components?.[c]?.variants;return P?Db(C,P):null}),y||A.push($s),Array.isArray(_[0])){const C=_.shift(),k=new Array(R.length).fill(""),P=new Array(A.length).fill("");let O;O=[...k,...C,...P],O.raw=[...k,...C.raw,...P],R.unshift(O)}const T=[...R,..._,...A],j=b(...T);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(E.withConfig=b.withConfig),E}}({themeId:_3,defaultTheme:A3,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),v1=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},g7=(e=1)=>t=>{if(t.palette.mode!=="dark")return;const n=t.palette.mode==="dark"?t.palette.text.primary:t.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},yP=u.memo(u.forwardRef((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:a,...l}=e;let c=24,d=24;return o==="medium"?(c=32,d=32):o==="large"&&(c=42,d=42),s.jsx(Ae,{ref:t,className:rr("icon",a),sx:{width:c,height:d,...n},...l,children:i})})),Lb=gP(yP)(({theme:e})=>({fill:"currentColor","& .activeColor":{fill:e.palette.primary.main},"& .styled.high_contrast":{fill:e.palette.primary.main},"& .styled.background":{fill:e.palette.background.paper},"& .styled.current_color":{fill:"currentColor"},"& .styled.secondary":{fill:e.palette.secondary.main},"& .styled.secondary_dark":{fill:e.palette.secondary.dark},"& .styled.secondary_light":{fill:e.palette.secondary.light},"& .styled.info":{fill:e.palette.info.main},"& .styled.info.stroked":{stroke:e.palette.info.main},"& .styled.info_dark":{fill:e.palette.info.dark},"& .styled.info_light":{fill:e.palette.info.light},"& .styled.warning":{fill:e.palette.warning.main},"& .styled.warning.stroked":{stroke:e.palette.warning.main},"& .styled.warning_dark":{fill:e.palette.warning.dark},"& .styled.warning_light":{fill:e.palette.warning.light},"& .styled.error.info":{fill:e.palette.error.main},"& .styled.error.stroked":{stroke:e.palette.error.main},"& .styled.error_dark":{fill:e.palette.error.dark},"& .styled.error_light":{fill:e.palette.error.light},"& .styled.success":{fill:e.palette.success.main},"& .styled.success_dark":{fill:e.palette.success.dark},"& .styled.success_light":{fill:e.palette.success.light},"& .styled.grey":{fill:e.palette.text.icon??e.palette.action.active}})),ze=e=>s.jsx(Lb,{children:e}),xP=e=>{const{sx:t,...n}=e;return s.jsxs(Xe,{sx:{overflow:"visible","& .activeColor":{filter:v1},...t},...n,children:[s.jsx("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),s.jsx("path",{d:"M19 17c1.1 0 2-.9 2-2 0-1.33-2-3.5-2-3.5s-2 2.17-2 3.5c0 1.1.9 2 2 2zm-10.06-.44c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5zM10 5.21L14.79 10H5.21L10 5.21z",fillOpacity:"1"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},F3=e=>{const{sx:t,...n}=e;return s.jsxs(Xe,{sx:{overflow:"visible","& .activeColor":{filter:v1},...t},...n,children:[s.jsx("path",{d:"m 17.28,7.18 -3.75,-3.75 -10,10 v 3.75 h 3.75 z m 2.96,-2.96 c 0.39,-0.39 0.39,-1.02 0,-1.41 l -2.34,-2.34 c -0.39,-0.39 -1.02,-0.39 -1.41,0 l -1.96,1.96 3.75,3.75 z",fillOpacity:"1"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},bP=e=>{const{sx:t,...n}=e;return s.jsxs(Xe,{sx:{overflow:"visible","& .activeColor":{filter:v1},...t},...n,children:[s.jsx("path",{d:"M 5.615,17.375 H 8.0566072 L 9.3379465,13.763035 H 15.038393 L 16.309643,17.375 H 18.75125 L 13.444285,3.25 h -2.52232 z m 4.459465,-5.66009 2.048125,-5.8416954 h 0.12107 l 2.048125,5.8416954 z",fillOpacity:"1"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},y7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 2.7062296,0.90879274 H 21.29377 c 0.981786,0 1.797437,0.81565116 1.797437,1.79743686 V 21.29377 c 0,0.981786 -0.815651,1.797437 -1.797437,1.797437 H 2.7062296 c -0.9817857,0 -1.79743686,-0.815651 -1.79743686,-1.797437 V 2.7062296 c 0,-0.9817857 0.81565116,-1.79743686 1.79743686,-1.79743686 z M 2.5118579,2.5118579 v 5.5045251 1.3285403 5.3101537 1.32854 5.504525 h 5.5045251 1.3285403 5.3101537 1.32854 5.504525 V 15.983617 14.655077 9.3449233 8.016383 2.5118579 H 15.983617 14.655077 9.3449233 8.016383 Z"}),s.jsx("path",{className:"styled info",d:"m 8.44571,8.0624624 3.396641,-3.9592297 3.396641,3.9592297 H 12.691469 V 13.011077 H 10.993224 V 8.0624624 Z m 6.793271,7.5823776 -3.39664,3.707336 -3.396642,-3.707336 h 2.547525 v -4.633763 h 1.698245 v 4.633763 z m 0.494653,-7.113411 3.959229,3.396646 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z m -7.5823711,6.793275 -3.707336,-3.39664 3.707336,-3.396647 v 2.54753 h 4.6337601 v 1.698245 H 8.1512629 Z"})]}),vP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4707032,0 V 8.3066406 H 14.777344 V 2.7519531 Z m 6.4707027,0 v 5.5546875 h 5.554688 V 2.7519531 Z M 2.7519531,9.2109375 v 0.2011719 5.1757816 1.294922 5.365234 h 5.3652344 1.2949219 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 9.2109375 Z"}),s.jsx("path",{className:"styled info",d:"m 15.699562,11.871427 3.959229,3.396644 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z M 8.1171875,18.6647 4.4098515,15.26806 8.1171875,11.871415 v 2.547528 h 4.6337635 v 1.698245 H 8.1171875 Z"})]}),wP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4667969,0 V 21.248047 h 0.1933594 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 8.1171875 2.7519531 H 15.882813 14.587891 9.4121094 Z M 2.7519531,9.2226563 V 14.777344 H 8.3066406 V 9.2226563 Z m 0,6.4707027 v 5.554688 h 5.5546875 v -5.554688 z"}),s.jsx("path",{className:"styled info",d:"M 11.759025,7.9527347 15.155669,3.993505 18.55231,7.9527347 H 16.004787 V 12.901345 H 14.306542 V 7.9527347 Z m 6.793274,7.5823733 -3.39664,3.707336 -3.396645,-3.707336 h 2.547528 v -4.633763 h 1.698245 v 4.633763 z"})]}),Ab=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"})}),SP=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 11.263672,2.2636719 h 1.472656 v 4.5449218 l 3.505859,-3.5058593 1.042969,1.0371093 -4.548828,4.5507813 v 2.373047 h 2.373047 l 4.550781,-4.5488283 1.03711,1.0429688 -3.50586,3.5058595 h 4.544922 v 1.472656 h -4.544922 l 3.50586,3.505859 -1.03711,1.042969 -4.550781,-4.548828 h -2.373047 v 2.373047 l 4.548828,4.550781 -1.042969,1.03711 -3.505859,-3.50586 v 4.544922 h -1.472656 v -4.544922 l -3.5058595,3.50586 -1.0429688,-1.03711 4.5488283,-4.550781 V 12.736328 H 8.890625 L 4.3398437,17.285156 3.3027344,16.242187 6.8085937,12.736328 H 2.2636719 V 11.263672 H 6.8085937 L 3.3027344,7.7578125 4.3398437,6.7148437 8.890625,11.263672 h 2.373047 V 8.890625 L 6.7148437,4.3398437 7.7578125,3.3027344 11.263672,6.8085937 Z"})}),CP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),s.jsx("path",{className:"styled info",d:"M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),kP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),s.jsx("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 5.4006271,3.6183952 5.2693357,3.4869436 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),EP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),s.jsx("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),eh=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 14.147472,23.193365 c -0.06508,0 -0.163329,0 -0.228406,-0.03317 L 10.032492,21.788491 C 9.77091,21.690244 9.575694,21.428646 9.575694,21.168365 L 9.574448,14.275229 2.061319,4.1155175 C 1.636402,3.5272726 1.571332,2.7756983 1.89799,2.1223827 2.224647,1.4690672 2.877962,1.077339 3.596349,1.077339 h 17.247858 c 0.718386,0 1.371701,0.3917282 1.698359,1.0450437 0.326658,0.6533156 0.26158,1.4048899 -0.163329,1.9931348 L 14.834096,14.275229 v 8.264768 c 0,0.228406 -0.09825,0.424918 -0.293484,0.555056 -0.09825,0.06508 -0.26158,0.09825 -0.393,0.09825 z m -3.200233,-2.483121 2.548192,0.881714 -0.0013,-7.545141 c 0,-0.130154 0.03317,-0.293483 0.130155,-0.391728 L 21.302099,3.3320488 C 21.498604,3.070468 21.400357,2.8420618 21.367174,2.743803 21.334005,2.6455442 21.170677,2.4503213 20.877193,2.4503213 H 3.597649 c -0.326657,0 -0.456798,0.2284052 -0.489986,0.2934817 -0.03317,0.098252 -0.130154,0.3266583 0.06508,0.5882458 l 7.676458,10.3230402 c 0.09826,0.130153 0.130153,0.26158 0.130153,0.391728 v 6.663165 z"})}),B3=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),s.jsx("path",{d:"M 21.017161,7.1665586 C 20.392995,6.5201968 19.608002,6.0517137 18.742868,5.8090983 17.877689,5.5664598 16.963524,5.5585838 16.094114,5.7860476 15.22488,6.0135852 14.431817,6.4684234 13.796391,7.1037635 c -0.635429,0.6353402 -1.090178,1.428404 -1.317717,2.2977256 -0.227452,0.8693219 -0.219576,1.7834869 0.02305,2.6487529 0.242637,0.865179 0.711099,1.650171 1.35746,2.274294 0.624169,0.646362 1.409161,1.114846 2.274293,1.357462 0.865181,0.242638 1.779345,0.250513 2.648753,0.02306 0.869237,-0.227538 1.6623,-0.682376 2.297726,-1.317715 0.635429,-0.635343 1.090178,-1.428408 1.317717,-2.297728 0.22745,-0.869322 0.219574,-1.783489 -0.02305,-2.6487532 C 22.131989,8.5756772 21.663527,7.7906849 21.017165,7.1665603 Z m -0.713725,6.4440904 c -0.662132,0.662892 -1.533581,1.075598 -2.465862,1.167976 -0.932389,0.09237 -1.867901,-0.141358 -2.647232,-0.661352 -0.779332,-0.52001 -1.354249,-1.294155 -1.626785,-2.190554 -0.272531,-0.896354 -0.225846,-1.859508 0.132116,-2.7253361 0.35788,-0.8657633 1.005002,-1.5807687 1.830956,-2.0229792 0.825931,-0.4422113 1.779669,-0.5844215 2.698649,-0.4022913 0.918982,0.1821195 1.746458,0.6772985 2.341333,1.4010248 0.594836,0.7238123 0.920438,1.6314471 0.921196,2.5682628 0.0017,0.532203 -0.101936,1.059415 -0.305336,1.551284 -0.203304,0.491785 -0.50213,0.938401 -0.879233,1.313899 z"}),s.jsx("path",{className:"styled info",d:"M 20.061955,12.09978 18.551369,10.589193 20.061955,9.0786072 C 20.241841,8.8987223 20.312147,8.6365615 20.24631,8.3908377 20.180471,8.1451188 19.988451,7.9530974 19.742725,7.8872526 c -0.245721,-0.065847 -0.507883,0.00456 -0.68777,0.1843533 L 17.544368,9.5821922 16.033782,8.0716076 C 15.853898,7.8917219 15.591737,7.8214144 15.346013,7.8872534 c -0.24572,0.065839 -0.437742,0.2578588 -0.503586,0.5035843 -0.06584,0.2457213 0.0045,0.5078813 0.184355,0.6877695 l 1.510585,1.5105858 -1.510587,1.510587 c -0.179886,0.179885 -0.250192,0.442047 -0.184353,0.687771 0.06584,0.24572 0.257859,0.437743 0.503583,0.503585 0.245721,0.06584 0.507883,-0.0046 0.687771,-0.184354 l 1.510589,-1.510588 1.510586,1.510588 c 0.179884,0.179885 0.442045,0.250192 0.68777,0.184354 0.245719,-0.06584 0.43774,-0.25786 0.503584,-0.503585 0.06584,-0.245721 -0.0045,-0.507884 -0.184355,-0.687771 z"})]}),zb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),s.jsx("path",{className:"styled info",d:"m 22.256089,10.618935 c 0.0019,1.595286 -0.778827,3.089601 -2.088797,3.999919 -1.309934,0.909821 -2.982899,1.119896 -4.477215,0.56162 l -0.417759,0.486352 c -0.03192,0.03667 -0.07859,0.05668 -0.127184,0.05479 -0.01329,0.0019 -0.02715,0.0019 -0.0405,0 -0.06002,-0.01619 -0.10479,-0.06574 -0.115756,-0.127184 L 14.56112,13.385637 c -0.01,-0.04716 0.0024,-0.09622 0.03333,-0.132889 0.03096,-0.03717 0.07716,-0.05765 0.125271,-0.05621 l 2.248423,0.100502 v -4.75e-4 c 0.06049,0.0034 0.113848,0.04002 0.138147,0.09574 0.02383,0.05572 0.01433,0.120043 -0.02524,0.166249 l -0.232452,0.27057 c 0.176723,0.03096 0.355838,0.04668 0.534937,0.04668 1.158004,9.49e-4 2.229278,-0.612579 2.814249,-1.611505 0.584958,-0.999375 0.595909,-2.234035 0.02859,-3.2434941 -0.0324,-0.05812 -0.02476,-0.1300373 0.01905,-0.1800642 L 21.13477,7.8246932 v -4.744e-4 c 0.0324,-0.037617 0.0805,-0.058597 0.130514,-0.05573 0.04954,0.00291 0.09527,0.028569 0.123375,0.070014 0.567802,0.8155087 0.870761,1.786251 0.867432,2.7804702 z m -7.707782,1.59809 c -0.566851,-1.008902 -0.556375,-2.2426917 0.02763,-3.2415452 0.584008,-0.9989012 1.654307,-1.6129669 2.811444,-1.6133333 0.179114,0 0.358214,0.015737 0.534937,0.046666 l -0.232452,0.2705727 c -0.03953,0.046189 -0.04907,0.1105115 -0.02524,0.1662469 0.02429,0.05573 0.07765,0.09241 0.138132,0.095746 l 2.248423,0.1005125 v -4.75e-4 c 0.04859,0.00291 0.09622,-0.017628 0.127662,-0.054307 0.03192,-0.037148 0.04478,-0.087165 0.03478,-0.1348157 L 19.779192,5.6435045 c -0.01042,-0.061449 -0.05572,-0.110992 -0.115279,-0.1271835 -0.05907,-0.015252 -0.121463,0.00387 -0.161479,0.049548 l -0.41776,0.4863542 c -1.305178,-0.4882571 -2.757055,-0.3934678 -3.98797,0.2600843 -1.230426,0.653553 -2.122089,1.8034465 -2.448413,3.1581335 -0.326325,1.354689 -0.05621,2.784249 0.741668,3.926511 0.02953,0.04144 0.07622,0.06621 0.127185,0.06717 h 0.0091 -4.75e-4 c 0.04335,-4.77e-4 0.0848,-0.01905 0.114323,-0.05049 l 0.889347,-1.016046 v -4.76e-4 c 0.04477,-0.04954 0.0524,-0.122419 0.01905,-0.180064 z"})]}),MP=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 16.384064,5.4840697 C 15.849784,4.9209811 15.205202,4.4682187 14.488187,4.1710272 13.033567,3.566779 11.34346,3.4869289 9.8402213,3.9635743 8.3024412,4.4509209 7.0699875,5.5548619 6.4345935,7.0391759 6.0822502,7.8615625 5.9324318,8.7572257 5.9324318,9.6488233 c 0,1.6579667 0.5252172,2.9915157 1.576473,4.0231087 0.5301483,0.520284 1.1829709,0.917897 1.8802394,1.170621 0.8956638,0.324356 1.8646028,0.403385 2.8104858,0.352344 0.675035,-0.03621 1.319618,-0.200038 1.955961,-0.429731 -0.532615,1.307271 -1.443936,2.383942 -2.684461,3.152105 -1.273528,0.788646 -3.092884,1.334434 -5.4176042,1.657966 l 0.586965,0.989509 c 1.0191383,0 2.0284138,-0.07655 3.0260774,-0.289773 0.7104398,-0.152298 1.4134618,-0.358919 2.0786348,-0.652002 0.657753,-0.289774 1.240588,-0.670926 1.828374,-1.079243 1.394537,-0.970581 2.506804,-2.263815 3.295409,-3.78033 0.808395,-1.516369 1.212602,-3.073072 1.212602,-4.770621 8.22e-4,-1.8407229 -0.585301,-3.3365027 -1.697482,-4.5088729 z"})}),TP=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 7.5,4.2265625 c 1.8031695,0 3.273437,1.470268 3.273438,3.2734375 0,1.8031695 -1.4702685,3.273437 -3.273438,3.273438 -1.8031695,0 -3.2734375,-1.4702685 -3.2734375,-3.273438 0,-1.8031695 1.470268,-3.2734375 3.2734375,-3.2734375 z m 11.089844,0.089844 1.09375,1.09375 -14.2675784,14.2675778 -1.09375,-1.09375 z M 7.5,5.7734375 C 6.544151,5.7734375 5.7734375,6.544151 5.7734375,7.5 5.7734375,8.455849 6.544151,9.2265625 7.5,9.2265625 8.455849,9.2265625 9.2265625,8.455849 9.2265625,7.5 9.2265625,6.544151 8.455849,5.7734375 7.5,5.7734375 Z m 9,7.4531255 c 1.803169,0 3.273437,1.470268 3.273437,3.273437 0,1.803169 -1.470268,3.273437 -3.273437,3.273437 -1.803169,0 -3.273437,-1.470268 -3.273437,-3.273437 0,-1.803169 1.470268,-3.273437 3.273437,-3.273437 z m 0,1.546875 c -0.955849,0 -1.726562,0.770713 -1.726562,1.726562 -1e-6,0.955849 0.770713,1.726563 1.726562,1.726562 0.955849,0 1.726563,-0.770713 1.726562,-1.726562 0,-0.955849 -0.770713,-1.726562 -1.726562,-1.726562 z"})}),_P=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),s.jsx("path",{className:"styled info",d:"m 20.624555,19 -4.244229,3.90401 V 20.301337 H 7.8918586 V 17.698663 H 16.380326 V 15.09599 L 20.624555,19"})]}),jP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),s.jsx("path",{className:"styled info",d:"m 3.2454426,19 4.2442288,3.90401 V 20.301337 H 15.978128 V 17.698663 H 7.4896714 V 15.09599 L 3.2454426,19"})]}),RP=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 10.150391,3.1503906 h 2.699218 v 2.1582031 l 0.115235,0.027344 c 1.960079,0.4782967 2.961261,1.9200272 3.083984,3.5136719 H 14.138672 C 14.029741,7.5973962 13.290333,6.75 11.5,6.75 c -1.7437901,0 -2.8496094,0.7991882 -2.8496094,2 0,1.0564872 0.8200058,1.700825 3.1132814,2.296875 2.252935,0.585565 4.585937,1.521676 4.585937,4.253906 0,1.954738 -1.478101,3.040096 -3.376953,3.400391 l -0.123047,0.02344 v 2.125 H 10.150391 V 18.707031 L 10.03125,18.681641 C 8.2079362,18.292287 6.6711519,17.158849 6.4863281,15.150391 H 8.3867188 C 8.5553675,16.353343 9.4500331,17.25 11.5,17.25 c 2.278912,0 2.849609,-1.151198 2.849609,-1.939453 0,-1.024825 -0.565953,-1.944813 -3.115234,-2.556641 -2.7612489,-0.663095 -4.5839844,-1.778508 -4.5839844,-3.9843747 0,-1.8383456 1.4911552,-3.0518263 3.3808594,-3.4609376 L 10.150391,5.28125 Z"})}),IP=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 5.78125,3.0058594 c 1.9829152,0 3.5996094,1.6167226 3.5996094,3.5996093 0,0.5476133 -0.1339172,1.0628676 -0.3554688,1.5312501 L 8.9746094,8.2421875 21.597656,18.814453 c 0.332993,0.278536 0.378219,0.774352 0.09961,1.107422 -0.27842,0.332842 -0.775739,0.377926 -1.107422,0.09961 l -8.830078,-7.394531 -2.7871097,2.339844 0.050781,0.105469 c 0.2227064,0.468278 0.3574219,0.984409 0.3574219,1.533203 0,1.982884 -1.6166943,3.599609 -3.5996094,3.599609 -1.9829151,0 -3.5996094,-1.616725 -3.5996094,-3.599609 0,-1.982888 1.6166941,-3.59961 3.5996094,-3.59961 0.7809243,0 1.5000394,0.257488 2.0917969,0.683594 L 7.96875,13.757813 10.535156,11.603516 7.9707031,9.453125 7.875,9.5214844 C 7.2828198,9.9466952 6.5625337,10.205078 5.78125,10.205078 c -1.9829152,0 -3.5996094,-1.6167226 -3.5996094,-3.5996093 0,-1.9828867 1.6166942,-3.5996093 3.5996094,-3.5996093 z m 0,1.5742187 c -1.1183325,0 -2.0253906,0.9070725 -2.0253906,2.0253906 0,1.118318 0.9070581,2.0253907 2.0253906,2.0253907 1.1183326,0 2.0253906,-0.9070727 2.0253906,-2.0253907 0,-1.1183181 -0.907058,-2.0253906 -2.0253906,-2.0253906 z m 0,9.9999999 c -1.1183323,0 -2.0253906,0.907071 -2.0253906,2.025391 0,1.118318 0.9070581,2.02539 2.0253906,2.02539 1.1183326,0 2.0253906,-0.907072 2.0253906,-2.02539 0,-1.11832 -0.9070582,-2.025391 -2.0253906,-2.025391 z"}),s.jsx("path",{d:"m 21.087891,3.0039063 c 0.226287,-0.00155 0.452554,0.095728 0.609375,0.2832031 0.277334,0.3327963 0.231821,0.8312691 -0.09961,1.109375 l -6.90039,5.7753906 c -0.147833,0.123716 -0.326255,0.183594 -0.503907,0.183594 -0.223947,0 -0.448021,-0.09724 -0.603515,-0.283203 -0.278427,-0.3328528 -0.232198,-0.8299063 0.09961,-1.1093754 L 20.589844,3.1875 c 0.145984,-0.1221105 0.322682,-0.1823961 0.498047,-0.1835937 z"})]});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const xr={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},Kr={Horizontal:"horizontal",Vertical:"vertical"};function Fb(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Fb(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ps(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Fb(e))&&(o&&(o+=" "),o+=t);return o}var PP=function(){},Bb=typeof window<"u",OP=Bb?u.useLayoutEffect:u.useEffect,x7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Fl=Bb&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(x7),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return OP(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[PP,x7]},kn=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},DP=e=>{const{style:t,orientation:n=Kr.Vertical,...o}=e,r=n===Kr.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},LP=e=>{const{style:t,orientation:n=Kr.Vertical,...o}=e,r=n===Kr.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},th=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:th},Symbol.toStringTag,{value:"Module"}));const N3=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=Kr.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=DP,createScrollEndButton:y=LP,...x}=e,v=kn(d,[d]),b=u.useRef(null),[w,{width:E,height:S}]=Fl(),[R,{width:_,height:A}]=Fl(),T=l===Kr.Vertical,j=T?"top":"left",C=T?"scrollTop":"scrollLeft",k=T?S:E,P=T?A:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=ne?0:th(H,ge[j],de,!0,Math.max(0,H-h));return I(ye),Math.max(0,ye)},[]),L=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=Math.ceil(P-k),ve=ne?ye:th(H,ge[j],de,!1,Math.max(0,H+h));return I(ve),Math.min(ye,ve)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[C];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[C]=n)},[n,C]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ge=f)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):L(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ge)},[z,L,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:ps("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(S??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));N3.displayName="Scrollbar";let b7=Date.now,Ua={},AP=1;const M0=e=>{let t=Ua[e]!==null;return t&&(Ua[e]=null),t},v7=(e,t,n,o=0,r)=>{let i=b7(),a=i,l=0,c=0,d=AP++;if(d%20==0){const h={};for(let f in Ua)h[f]=!0;Ua=h}const p=function(h){const f=h!==!0,g=b7();if(!Ua[d]||t&&!t(d))return Ua[d]=null,void n(60-c/((g-i)/1e3),d,!1);if(f){const y=Math.round((g-a)/16.666666666666668)-1;for(let x=0;x<Math.min(y,4);x++)p(!0),c++}o&&(l=(g-i)/o,l>1&&(l=1));const m=r?r(l):l;e(m,g,f)!==!1&&l!==1||!f?f&&(a=g,requestAnimationFrame(p)):(Ua[d]=null,n(60-c/((g-i)/1e3),d,l===1||o===void 0))};return Ua[d]=!0,requestAnimationFrame(p),d};var zP=function(){},FP=function(e){return Math.pow(e-1,3)+1},BP=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},Nb=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:zP,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};Nb.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(M0(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var a=e/i,l=a*(this.__scrollLeft+n)-n,c=a*(this.__scrollTop+o)-o;l>this.__maxScrollLeft?l=this.__maxScrollLeft:l<0&&(l=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(l,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(M0(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(M0(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(M0(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var h=p;if(p=p/this.__lastScale*n,h!==(p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom))){var f=o-this.__clientLeft,g=r-this.__clientTop;c=(f+c)*p/h-f,d=(g+d)*p/h-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;var m=this.__maxScrollLeft;(c>m||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>m?m:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;var y=this.__maxScrollTop;(d>y||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>y?y:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{var x=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=x,this.__enableScrollY=this.options.scrollingY&&b>=x,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],a=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=a/i*(1e3/60),this.__decelerationVelocityY=l/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(M0(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,h=function(m,y,x){x&&(this.__scrollLeft=i+c*m,this.__scrollTop=a+d*m,this.__zoomLevel=l+p*m,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),f=function(m){return this.__isAnimating===m}.bind(this),g=function(m,y,x){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||x)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=v7(h,f,g,this.options.animationDuration,r?FP:BP)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(d,p,h){this.__stepThroughDeceleration(h)}.bind(this),a=this.options.snapping?4:.1,l=function(){var d=Math.abs(this.__decelerationVelocityX)>=a||Math.abs(this.__decelerationVelocityY)>=a;return d||(this.__didDecelerationComplete=!0),d}.bind(this),c=function(d,p,h){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=v7(i,l,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,a=0,l=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?a=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(a=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*l:this.__decelerationVelocityX=i*c),a!==0&&(a*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=a*l:this.__decelerationVelocityY=a*c)}}};var ri=typeof window<"u"?window:{screen:{},navigator:{}},Vs=(ri.matchMedia||function(){return{matches:!1}}).bind(ri),$b=!1,NP={get passive(){return $b=!0}},w7=function(){};ri.addEventListener&&ri.addEventListener("p",w7,NP),ri.removeEventListener&&ri.removeEventListener("p",w7,!1);var $P=$b,VP="PointerEvent"in ri,$3="ontouchstart"in ri,Vb=$3||"TouchEvent"in ri&&Vs("(any-pointer: coarse)").matches,S7=(ri.navigator.maxTouchPoints||0)>0||Vb,Hb=ri.navigator.userAgent||"",HP=Vs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Hb)&&Math.min(ri.screen.width||0,ri.screen.height||0)>=768,Wb=(Vs("(pointer: coarse)").matches||!Vs("(pointer: fine)").matches&&$3)&&!/Windows.*Firefox/.test(Hb),WP=Vs("(any-pointer: fine)").matches||Vs("(any-hover: hover)").matches||HP||!$3,nh=!S7||!WP&&Wb?S7?"touchOnly":"mouseOnly":"hybrid",UP=nh==="mouseOnly"?"mouse":nh==="touchOnly"||Wb?"touch":"mouse";const qP=Object.freeze(Object.defineProperty({__proto__:null,deviceType:nh,primaryInput:UP,supportsPassiveEvents:$P,supportsPointerEvents:VP,supportsTouchEvents:Vb},Symbol.toStringTag,{value:"Module"})),KP=new Set(["INPUT","TEXTAREA","SELECT"]),Ub={};function oh(){return qP}const GP=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Ub,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:oh,focusableNodeNames:KP,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":To.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),ZP=[];function C2(e,t,n=ZP){const o=u.useRef(null);return u.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const C7=e=>s.jsx(N3,{...e}),XP=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),YP=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=XP,createHorizontalScrollbar:c=C7,createVerticalScrollbar:d=C7,style:p,touchElement:h,disableTouch:f,...g}=e,m=kn(r,[r]),y=C2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft!==!o?.left||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,h]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),S=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=h??y.current;if(!f&&oh().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new Nb(v,P)}oh().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),S({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,f,h]);const[R,{width:_}]=Fl(),[A,{height:T}]=Fl(),j=u.useMemo(()=>{const k=d({orientation:Kr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const k=c({orientation:Kr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:A,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));YP.displayName="ScrollPane";const JP=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let rd=0;function V3(){return u.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return rd++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),rd--,rd<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),rd=0)}},[]),{getPortalContainer:JP}}const QP=100,eO=100,tO=1e6,nO=100,oO=50,rO=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=QP,endScrollIncrement:l=eO,style:c=Ub,onMouseDown:d,onScrollOffset:p,onScroll:h,scaleLimit:f=tO,scaleFactor:g=nO,precisionFactor:m=oO,...y}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=kn(d,[d]),v=()=>({offset:n,totalSize:f===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=f!==0&&b.totalSize>f?g:1,S=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),A=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,C]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=kn((z,L,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<S&&(z=_),p?.(z*E,_,A))},[p,E,S,_,A]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(N3,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:A,onMouseDown:I,onScrollOffset:P})}));function Ep(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}rO.displayName="VirtualScrollbar";var Cu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Ep(o,t),i=typeof r=="function";n.push(i?r:()=>Ep(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Ep(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:Cu([r,t]),onFocus:i,...o})})),u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:h}]=Fl(),f=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=h-w+b;return function(S,R,_=!1){if(R===0)return S;function A(O,I,z){let L=I.x-O.x,D=I.y-O.y,F=Math.sqrt(L*L+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function C(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=S.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=C(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let L=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&L&&L.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=C(L),V=C(D),U=C(F);_?(B=T(V,L.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=A(V,N,R),M=A(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=C(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,h,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Cu([f,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const iO={},aO=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=iO,...d}=e,p=o==="row",{style:h,className:f,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ps("hit-box",f),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...h},onPointerDown:a?void 0:t,...g})},l)},id={},cl=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ad=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,La=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:h,children:f,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=id,paneProps:E=id,paneBeforeProps:S=id,paneAfterProps:R=id,createResizer:_=aO}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const A=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:La(c,De),maxBefore:La(d,De),minAfter:La(p,De),maxAfter:La(h,De)}},[c,d,p,h]),j=kn(l,[l]),[C,k]=u.useState(()=>La(a,i===null));u.useEffect(()=>{k(La(a,i===null))},[a,i]);const[P,{width:O,height:I}]=Fl(),[z,{width:L,height:D}]=Fl(),F=r==="row"?L:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Le,W)=>{const Q=[null,null],q=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,q[1]=100):(Q[1]=ue?.pixels-Le,q[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(q[0]=ue?.percent,q[1]=100-ue?.percent):(q[1]=ue?.percent,q[0]=100-ue?.percent)),{percents:q,pixels:Q,minBefore:ad(W.minBefore,!0),maxBefore:ad(W.maxBefore,!0),minAfter:ad(W.minAfter),maxAfter:ad(W.maxAfter)};let se=cl(ue,De,W.fixedPaneOffset!==1),te=De-Le,ie=cl(W.minBefore,te,!0)??0,pe=cl(W.maxBefore,te,!0)??te,me=0,fe=0,_e=0,Fe=te;me=(cl(W.maxAfter,De,!1)??Le)-Le,fe=cl(W.minAfter,De,!1)??De,_e=Math.max(ie,me),Fe=Math.min(pe,fe),se=Math.max(_e,Math.min(se,Fe)),fe=Math.min(te-se,cl(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,cl(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const qe=Math.max(0,Math.min(100,se/te*100));return q[0]=qe,q[1]=100-q[0],{percents:q,pixels:Q,minBefore:`${ie}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(C,B,F,T),[T,C,B,F,r]),[N,V]=u.useState(!1),U=kn(x,[x]),J=kn(v,[v]),X=kn(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ge,className:de,...ye}=E,ve={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:be,style:re,...ce}=S,{className:we,style:ae,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Ie,onPointerDown:Me,...ot}=w,Ve=kn(ue=>{const De=La(ue,i===null);k(De)},[i]),Ce=kn(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Le=Math.max(0,Math.min(B,Le)),T.fixedPaneOffset===1&&(Le=B-Le),a&&C.pixels===Le||k({pixels:Le,percent:null}),J?.(Le),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,C,B]),je=kn(ue=>{if(document.removeEventListener("pointermove",Ce),document.removeEventListener("touchmove",Ce),document.removeEventListener("pointerup",je),N&&(V(!1),C)){if(X(C.pixels),!La(a,i===null)||C.pixels!==a){const De={...C};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[C,N,a,i,B]),Ge=kn(ue=>{Me?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ce,{passive:!1}),document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("pointerup",je,{passive:!1}))},[Me]),Be=C2(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>A?_?.({key:"resizer",ref:Cu([z,ne]),className:ps("resizer",ee),onPointerDownCapture:Ge,style:{cursor:y?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Ie},splitDirection:r,disabled:y,...ot}):null,[A,ee,ot,r,Ie,y]),Ye=r==="row"?"Width":"Height",he={...ve,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Ye}`]:M?.minBefore,[`max${Ye}`]:o?M?.maxBefore:"100%"},Ze={...ve,...ae,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Ye}`]:M?.minAfter,[`max${Ye}`]:n?M?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:H,className:ps("before",de,be),style:he,...ye,...ce,children:n},"before"):null,[n,E,S,T,M]),Re=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:ps("after",de,we),style:Ze,...ye,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:Cu([P,Be]),className:ps("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[Se,ct,Re]})}));const lO=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},rh=e=>{console&&console.warn&&console.warn(e)},Mp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let sO=1,ih=!1,qb=!1;const Wd=[],hs=[],ku=()=>{hs.forEach(e=>e())},cO=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||ih!==!1||(qb=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return hs[0]!==i?(e||ih!==!0||rh("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Wd])}return hs.push(i),ku(),()=>{r=!1,o.current?.length>0&&rh("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),hs.splice(hs.indexOf(i),1),ku()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(lO,{...r,key:i}))})},Kb=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=h=>{r=h,yo.unstable_batchedUpdates(()=>l.forEach(f=>f(h)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[h,f]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=sO++;return Wd.push({hook:g,key:m}),hs.length===0&&qb===!1&&(ih=!0,(y=>{if(Mp.document&&Mp.document.createElement){const x=Mp.document.createElement("div");Yu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else rh("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(cO)),ku(),()=>{Wd.splice(Wd.findIndex(y=>y.key===m),1),ku()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(f),r!==h&&f(r),()=>{l.splice(l.indexOf(f),1),l.length===0&&c&&(o(),i=!1)}),[]),h}};function H3(e,t=null){const n=u.useRef(t);n.current=t;const[o,r]=u.useReducer(a=>a+1,0),i=u.useMemo(()=>Array.isArray(e)?e:[e],[e]);return u.useEffect(()=>{if(!i||i.length===0)return;const a=(d,p)=>{n.current?.onChange?.(p),r()};let l=null;t&&(l={onExecute(d,p){n.current?.onExecute?.(d,p)},onError(d,p,h){n.current?.onError?.(d,p,h)}});const c=new Set;for(let d=0;d<i.length;d++)c.add(i[d]?.addPropertyListener(To.debounce(a,0),!0)),t&&c.add(i[d]?.addExecuteListener(l));return()=>{c.forEach(d=>{d?.()})}},[e]),o}Kb(null,()=>{const[e,t]=u.useState(null);return e}),To.getOS()===To.OSType.MacOS||(To.getOS(),To.OSType.IOS),To.getOS()===To.OSType.MacOS||(To.getOS(),To.OSType.IOS);const ld=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function W3(e,t=null,n=null,o){const r=u.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,a]=u.useState(ld(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const f=ld(e,t);a(f),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(f,g)=>{r.current?.onChange?.(e),a(ld(e,t))});const p=e?.addListener(c,d),h=ld(e,t);return a(h),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Si={Toolbar:"toolbar",Menuitem:"menuitem"};Kb({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>xu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(xu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Tp=!1,dO=0;var uO=typeof document<"u"?u.useLayoutEffect:u.useEffect;const k7=()=>"sheetxl-ui-"+dO++,pO=u.useId??function(){const[e,t]=u.useState(()=>Tp?k7():void 0);return uO(()=>{e==null&&t(k7())},[]),u.useEffect(()=>{Tp||(Tp=!0)},[]),e},hO=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+pO().replaceAll(":","");u.useEffect(()=>{if(!t)return;const a=`
|
|
137
|
+
@keyframes ${r} {
|
|
138
|
+
to {
|
|
139
|
+
stroke-dashoffset: 0px;
|
|
140
|
+
}
|
|
141
|
+
}`,l=document.createElement("style");return l.appendChild(document.createTextNode(a)),document.head.appendChild(l),l.sheet.insertRule(a,0),()=>{document.head.removeChild(l)}},[t]);let i=u.useMemo(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return s.jsx(Xe,{...o,children:s.jsxs("g",{children:[s.jsx("path",{d:"M 16,1 H 4 C 2.9,1 2,1.9 2,3 V 17 H 4 V 3 h 12 z"}),s.jsx("rect",{x:"7",y:"6",width:"13",height:"16",rx:"1.5",className:`styled ${n} stroked`,style:{fill:"none",strokeWidth:"2px",vectorEffect:"non-scaling-stroke",...i}})]})})},E7=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 12.25,0.84375 c 1.221781,0 2.257109,0.7931648 2.652344,1.8847656 l 0.07226,0.1992188 h 4.566407 c 0.978211,0 1.78125,0.8030383 1.78125,1.78125 V 21.375 c 0,0.978211 -0.803039,1.78125 -1.78125,1.78125 H 4.9589844 c -0.9782117,0 -1.78125,-0.803039 -1.78125,-1.78125 V 4.7089844 c 0,-0.9782117 0.8030383,-1.78125 1.78125,-1.78125 H 9.5253906 L 9.5976563,2.7285156 C 9.9928911,1.6369148 11.028219,0.84375 12.25,0.84375 Z m 0,1.4785156 c -0.740184,0 -1.34375,0.603566 -1.34375,1.34375 0,0.740184 0.602868,1.3457031 1.34375,1.3457031 0.740882,0 1.34375,-0.6055191 1.34375,-1.3457031 0,-0.740184 -0.603566,-1.34375 -1.34375,-1.34375 z M 4.65625,4.40625 v 17.271484 h 15.1875 V 4.40625 h -2.6875 v 3.125 h -9.8125 v -3.125 z"})}),fO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.1777344 H 19.527344 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 7.5761719 L 7.4375,20.818359 7.2070312,21.736328 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),s.jsx("path",{className:"styled info",d:"m 11.739786,23.556948 0.902735,-3.568955 H 9.4304658 l 0.3149085,-1.259631 h 3.2120547 l 0.944723,-3.778895 H 10.27022 l 0.314907,-1.259632 h 3.631935 l 0.881741,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.799886 l 0.881743,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.21206 l -0.314908,1.259632 h -3.21206 l -0.944722,3.778895 h 3.631936 l -0.314908,1.259631 h -3.631935 l -0.881743,3.568955 h -1.25963 l 0.902734,-3.568955 h -3.799887 l -0.881741,3.568955 z m 2.45628,-4.828586 h 3.799888 l 0.944723,-3.778895 H 15.14079 Z"})]}),mO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.4257813 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 8.5722659 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),s.jsx("path",{className:"styled info",d:"m 21.482442,11.065857 v -0.7 c 0,-0.3850002 -0.315,-0.7000003 -0.7,-0.7000003 h -8.4 c -0.385,0 -0.7,0.3150001 -0.7,0.7000003 v 2.8 c 0,0.385 0.315,0.7 0.7,0.7 h 8.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -0.7 h 0.7 v 2.8 h -7 v 7.7 c 0,0.385 0.315,0.7 0.7,0.7 h 1.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -6.3 h 5.6 v -5.6 z"})]}),gO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 v 7.050781 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 3.28125 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),s.jsx("path",{className:"styled info",d:"m 16.272946,14.080613 c 0.08203,-0.104202 0.120059,-0.235524 0.187385,-0.348236 0.0679,-0.113283 0.02918,-0.133961 -0.08536,-0.133041 -0.452794,0.0038 -0.905675,-0.0019 -1.358469,0.0034 -0.120751,0.0015 -0.162109,-0.02505 -0.139019,-0.156938 0.100298,-0.5725 0.196692,-1.145676 0.342588,-1.708645 0.08629,-0.333412 0.178539,-0.666941 0.362824,-0.963823 0.183594,-0.296176 0.43944,-0.373059 0.754352,-0.2199 0.263212,0.127758 0.477353,0.318823 0.654059,0.550881 0.0772,0.101452 0.178882,0.181066 0.296646,0.113284 0.226792,-0.130401 0.425882,-0.289524 0.541354,-0.545854 0.06675,-0.148209 0.104202,-0.31444 0.02666,-0.466323 -0.107769,-0.2104774 -0.306882,-0.3572068 -0.525617,-0.4380898 -0.363382,-0.1341901 -0.755969,-0.1025941 -1.116263,0.02401 -0.415677,0.1461414 -0.814795,0.3875308 -1.160971,0.6583238 -0.127759,0.09995 -0.251837,0.205768 -0.368794,0.318589 -0.430028,0.414529 -0.750116,0.907852 -0.975411,1.460146 -0.160041,0.392705 -0.287914,0.793205 -0.352264,1.212999 -0.01172,0.0772 -0.03677,0.146371 -0.122011,0.159582 -0.10524,0.01632 -0.229435,3.44e-4 -0.336294,6.89e-4 -0.239315,6.87e-4 -0.487235,-0.05056 -0.664412,0.156822 -0.07893,0.09225 -0.162108,0.199795 -0.229549,0.300882 -0.06675,0.100298 -0.06158,0.198301 0.05619,0.242762 0.12925,0.0486 0.299058,0.01735 0.431411,0.01299 0.174747,-0.0056 0.349499,0.0034 0.524235,-4.58e-4 0.120288,-0.0026 0.159468,0.02011 0.136374,0.155791 -0.02206,0.131549 -0.04791,0.257467 -0.06722,0.387764 -0.06606,0.447853 -0.141199,0.894529 -0.216567,1.340999 -0.10489,0.619264 -0.208409,1.239087 -0.321705,1.85741 -0.108224,0.590647 -0.184975,1.186706 -0.318707,1.773558 -0.104435,0.459205 -0.171185,0.927264 -0.282284,1.384646 -0.09317,0.383381 -0.17291,0.775381 -0.385441,1.120293 -0.154641,0.251035 -0.380618,0.357088 -0.664411,0.290097 -0.256665,-0.06112 -0.498618,-0.157629 -0.707618,-0.327794 -0.137982,-0.112479 -0.2958534,-0.196347 -0.4645002,-0.09949 -0.1586624,0.09111 -0.2727473,0.260112 -0.3604113,0.416235 -0.281367,0.501823 0.1777349,0.978852 0.6731465,1.05447 0.332707,0.05056 0.66097,-0.06881 0.953353,-0.216912 0.390382,-0.197841 0.727705,-0.475999 1.010676,-0.804116 0.231961,-0.268957 0.474852,-0.525383 0.668087,-0.824794 0.128791,-0.199794 0.246897,-0.406353 0.354441,-0.618 0.381323,-0.751264 0.618323,-1.561911 0.813999,-2.377998 0.0941,-0.39247 0.196463,-0.782499 0.283318,-1.176823 0.11822,-0.53641 0.215647,-1.08191 0.304235,-1.623969 0.04401,-0.268955 0.08099,-0.537441 0.137179,-0.804234 0.0463,-0.220016 0.08468,-0.447941 0.114321,-0.670736 0.03459,-0.259075 0.198988,-0.242991 0.423146,-0.267693 0.189109,-0.02091 0.379471,-0.03068 0.569264,-0.04469 0.15223,-0.01107 0.326971,0.0027 0.470235,-0.05813 0.05113,-0.02172 0.09731,-0.05342 0.133732,-0.09995 z"}),s.jsx("path",{className:"styled info",d:"m 23.12147,13.86826 c -0.03102,-0.103631 -0.08709,-0.196806 -0.160041,-0.276538 -0.06675,-0.07285 -0.160962,-0.1682 -0.250688,-0.211167 -0.2909,-0.139363 -0.683352,-0.01713 -0.935205,0.153494 -0.133962,0.09088 -0.253446,0.204617 -0.373265,0.313411 -0.118797,0.107991 -0.233915,0.219439 -0.3395,0.340412 -0.219438,0.251494 -0.417853,0.521146 -0.608234,0.794911 -0.0926,0.133388 -0.353294,0.618793 -0.432912,0.571 -0.08387,-0.05021 -0.188764,-0.534588 -0.228629,-0.670853 -0.05538,-0.189224 -0.09225,-0.384882 -0.180492,-0.562853 C 19.491985,14.076971 19.416617,13.81146 19.247388,13.592371 19.060461,13.350069 18.845859,13.28046 18.5538,13.36891 c -0.28688,0.08686 -0.518382,0.267464 -0.745411,0.450471 -0.332823,0.267923 -0.580883,0.611911 -0.830293,0.953822 -0.186465,0.255974 -0.188074,0.254827 0.02964,0.487471 0.136374,0.146141 0.133962,0.144299 0.257124,-0.0056 0.175896,-0.214729 0.346735,-0.435647 0.582941,-0.590176 0.172564,-0.113167 0.276078,-0.09041 0.382822,0.08766 0.05239,0.08766 0.09696,0.181871 0.132239,0.278032 0.221738,0.603853 0.389823,1.224735 0.589146,1.835352 0.02516,0.07778 -0.0075,0.128103 -0.04434,0.183938 -0.235524,0.355941 -0.475177,0.709559 -0.741853,1.042735 -0.211625,0.26505 -0.424969,0.531029 -0.70944,0.725058 -0.124082,0.08513 -0.2693,0.143841 -0.420029,0.103632 -0.154526,-0.04148 -0.246898,-0.181526 -0.388089,-0.246783 -0.004,-0.002 -0.0084,-0.0035 -0.01252,-0.0052 -0.06584,-0.02688 -0.164982,-0.02574 -0.233227,-0.01038 -0.29997,0.06767 -0.460823,0.405676 -0.52194,0.676235 -0.05537,0.245521 -8.03e-4,0.514029 0.172564,0.701852 0.151194,0.163718 0.378,0.232076 0.595588,0.235409 0.124886,0.0019 0.264133,-0.03079 0.380176,-0.0756 0.442794,-0.173138 0.780559,-0.586059 1.060206,-0.952323 0.188535,-0.247358 0.363617,-0.504705 0.548029,-0.755293 0.152344,-0.207147 0.453117,-0.824205 0.538941,-0.826176 0.05193,-0.0012 0.06561,0.122703 0.07548,0.159238 0.02205,0.08168 0.04401,0.163374 0.06755,0.2446 0.110637,0.382117 0.227137,0.763912 0.346852,1.143028 0.07985,0.253792 0.208641,0.517 0.370412,0.728853 0.04906,0.06445 0.110521,0.126035 0.173711,0.176241 0.245288,0.196118 0.554117,0.181297 0.836411,0.08134 0.126494,-0.04469 0.244371,-0.107769 0.356264,-0.181985 0.51653,-0.343411 0.885559,-0.821911 1.234264,-1.322734 0.08215,-0.118106 0.071,-0.184167 -0.02274,-0.282744 -0.242646,-0.255171 -0.235867,-0.257467 -0.465764,0.01321 -0.17245,0.202436 -0.348235,0.404647 -0.580882,0.540912 -0.162452,0.09547 -0.273094,0.06824 -0.391529,-0.07824 -0.09812,-0.121209 -0.162682,-0.262065 -0.218864,-0.406147 -0.231044,-0.595235 -0.38903,-1.214499 -0.584676,-1.821469 -0.143612,-0.445323 -0.147632,-0.449441 0.138326,-0.824794 0.295617,-0.388205 0.578471,-0.790558 0.965881,-1.09741 0.284812,-0.225644 0.483471,-0.213121 0.745736,0.03906 0.05205,0.05009 0.137065,0.0918 0.209329,0.09753 0.244255,0.01964 0.456558,-0.199793 0.581911,-0.382588 0.124312,-0.18049 0.171414,-0.408764 0.107769,-0.620734 z"})]}),yO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189276,0.76838322 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 9.3613281 L 19.263672,7.8886719 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 4.1523438 l 1.4726561,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z m 8.736328,13.2031249 v 0.04687 H 20.6875 Z"}),s.jsx("path",{className:"styled info",d:"M 18.125,20.675 H 15.65 v -6.6 H 14 v 6.6 h -2.475 l 3.3,3.3 z M 23.9,14.9 20.6,11.6 v 2.475 h -6.598389 v 1.65 H 20.6 V 18.2 Z"})]}),xO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189275,0.76838292 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 14.525391 H 20 c -0.198708,0 -0.390751,0.01635 -0.576172,0.03906 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 8.34375 c 0.105427,0.52739 0.2985439,1.023695 0.5625,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),s.jsx("path",{className:"styled info",d:"m 10.894531,19.75 c 0,-1.23975 1.00775,-2.2475 2.2475,-2.2475 h 2.9 V 16.125 h -2.9 c -2.001,0 -3.6249998,1.624 -3.6249998,3.625 0,2.001 1.6239998,3.625 3.6249998,3.625 h 2.9 v -1.3775 h -2.9 c -1.23975,0 -2.2475,-1.00775 -2.2475,-2.2475 z m 2.9725,0.725 h 5.8 v -1.45 h -5.8 z m 6.525,-4.35 h -2.9 v 1.3775 h 2.9 c 1.23975,0 2.2475,1.00775 2.2475,2.2475 0,1.23975 -1.00775,2.2475 -2.2475,2.2475 h -2.9 v 1.3775 h 2.9 c 2.001,0 3.625,-1.624 3.625,-3.625 0,-2.001 -1.624,-3.625 -3.625,-3.625 z"})]}),bO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z"}),s.jsx("path",{className:"styled info",d:"m 13.683923,4.0063431 c 0,0.9359586 -0.758778,1.6947369 -1.694737,1.6947369 -0.935959,0 -1.694737,-0.7587783 -1.694737,-1.6947369 0,-0.9359586 0.758778,-1.6947369 1.694737,-1.6947369 0.935959,0 1.694737,0.7587783 1.694737,1.6947369 M 11.989186,0.61686939 c -3.3684211,0 -5.0000001,3.38947371 -5.0000001,3.38947371 0,0 1.621015,3.3894737 5.0000001,3.3894737 3.378985,0 5,-3.3894737 5,-3.3894737 0,0 -1.631598,-3.38947371 -5,-3.38947371 z m 0,6.01052641 c -1.45265,0 -2.6210527,-1.1789286 -2.6210527,-2.6210527 0,-1.4526504 1.1789287,-2.6210526 2.6210527,-2.6210526 1.442086,0 2.621052,1.1789286 2.621052,2.6210526 0,1.4526504 -1.168421,2.6210527 -2.621052,2.6210527 z"})]}),vO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 14.810547,3.015625 C 12.885069,3.0518161 10.956121,3.021032 9.0292969,3.03125 8.3433956,3.1343875 8.6152376,3.9661078 8.5664062,4.4670215 8.5699112,5.1357719 8.5542361,5.8058913 8.5859372,6.4726562 10.776053,5.6771754 13.22001,5.608155 15.453125,6.2714844 15.459619,5.3070102 15.449086,4.3390862 15.420589,3.3804146 15.336948,3.1307215 15.056647,3.011539 14.810547,3.015625 Z M 8.5839844,15.521484 c -0.032496,2.708187 -0.020058,5.420929 -0.00781,8.13086 0.6176166,0.774595 1.9260036,0.185956 2.8240216,0.370414 1.248725,-0.01851 2.51169,0.04635 3.751527,-0.04064 0.554855,-0.529107 0.169024,-1.453013 0.278022,-2.157801 -0.0036,-2.03393 0.0211,-4.067779 0.01948,-6.101694 -2.232675,0.661793 -4.675292,0.591069 -6.8652406,-0.201138 z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),s.jsx("path",{className:"styled info",d:"m 15.770959,7.0009902 c -0.126716,-0.127416 -0.331342,-0.127416 -0.458057,0 L 8.1789151,14.174303 c -0.1267182,0.127415 -0.1267182,0.33317 0,0.460581 0.068254,0.06863 0.1461605,0.09802 0.2339177,0.09802 0.087699,0 0.1656718,-0.02939 0.2339192,-0.09802 L 15.78074,7.4615714 c 0.116929,-0.1176426 0.116929,-0.333239 -0.0098,-0.4605812 z m -3.716974,5.4945338 c 0.931273,0 1.693141,-0.761954 1.693141,-1.69314 0,-0.217653 -0.03627,-0.42334 -0.120976,-0.616782 l -2.189046,2.189045 c 0.181464,0.07255 0.399194,0.120892 0.616846,0.120892 z M 10.360802,10.80234 c 0,0.217652 0.03627,0.43539 0.120976,0.616781 L 12.670823,9.2300774 C 12.477297,9.1575285 12.271714,9.1091013 12.054042,9.1091013 11.122682,9.109187 10.360816,9.871055 10.360816,10.802327 Z M 9.997978,11.90291 C 9.8165985,11.576345 9.7198318,11.201447 9.7198318,10.802319 c 0,-1.2941195 1.0400992,-2.3341742 2.3341762,-2.3341742 0.399108,0 0.774026,0.096764 1.112662,0.2781441 L 13.964907,7.9480523 C 13.384408,7.7787386 12.755491,7.6699084 12.054028,7.6699084 c -3.1686715,0 -5.1037381,2.1769486 -5.6721638,2.9025986 -0.1088279,0.133041 -0.1088279,0.326565 0,0.459601 0.3265634,0.43539 1.1489237,1.366661 2.4188334,2.068145 z m 7.728171,-1.330359 C 17.399587,10.137161 16.577226,9.2058888 15.307317,8.5044061 L 14.12211,9.689613 c 0.181378,0.326562 0.278145,0.70146 0.278145,1.112662 0,1.294119 -1.052172,2.334175 -2.334175,2.334175 -0.399108,0 -0.774028,-0.09676 -1.112662,-0.278143 l -0.79824,0.798235 c 0.5805,0.169314 1.209417,0.278144 1.91088,0.278144 3.168672,0 5.103738,-2.176949 5.672163,-2.902599 0.08462,-0.132955 0.08462,-0.326479 -0.01215,-0.459515 z"})]}),wO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 15.044727,18.095388 h 4.01181 c 0.237383,0 0.429823,0.247831 0.429823,0.44852 v 4.186244 c 0,0.247831 -0.192553,0.448516 -0.429823,0.448516 h -4.01181 c -0.237396,0 -0.429834,-0.247831 -0.429834,-0.448516 v -4.186244 c 0,-0.247831 0.192562,-0.44852 0.429834,-0.44852 z m -7.3072108,0 h 4.0118108 c 0.237385,0 0.429822,0.247831 0.429822,0.44852 v 4.186244 c 0,0.247831 -0.192551,0.448516 -0.429822,0.448516 H 7.7375162 c -0.2373949,0 -0.4298325,-0.247831 -0.4298325,-0.448516 v -4.186244 c 0,-0.247831 0.1925619,-0.44852 0.4298325,-0.44852 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.247831 0.4298325,0.44852 v 4.186244 c 0,0.247831 -0.1925618,0.448516 -0.4298325,0.448516 H 0.42983194 C 0.19244752,23.178668 -5.45e-7,22.930837 -5.45e-7,22.730152 v -4.186244 c 0,-0.247831 0.192561825,-0.44852 0.429832485,-0.44852 z M 23.570166,8.9807146 H 8.3107884 C 8.1969692,8.9805809 8.0874296,9.0278176 8.0067478,9.1120542 7.9260977,9.1960959 7.8808422,9.3101394 7.8808422,9.4292345 v 5.7559505 c 0,0.24783 0.1925618,0.448514 0.4298325,0.448514 H 23.570053 c 0.114211,0 0.223359,-0.0471 0.304042,-0.131338 0.08065,-0.08404 0.125904,-0.198045 0.125904,-0.317139 V 9.4292703 c 0,-0.1190951 -0.04518,-0.2331059 -0.125904,-0.3171814 -0.08065,-0.084231 -0.189831,-0.1315417 -0.304042,-0.1313374 z M 12.752474,14.06415 H 9.385189 v -3.51349 h 3.367285 z m 4.871619,0 h -3.366921 v -3.51349 h 3.367087 z m 4.871591,0 h -3.367077 v -3.513491 h 3.367077 z M 15.044727,1.4355069 h 4.011809 c 0.237384,0 0.429824,0.2477898 0.429824,0.4485157 v 4.1862447 c 0,0.2478309 -0.192554,0.4485146 -0.429824,0.4485146 h -4.011809 c -0.237396,0 -0.429834,-0.2477888 -0.429834,-0.4485146 V 1.8840226 c 0,-0.2478309 0.192562,-0.4485157 0.429834,-0.4485157 z m -7.3072108,0 h 4.0118098 c 0.237385,0 0.429822,0.2477898 0.429822,0.4485157 v 4.1862447 c 0,0.2478309 -0.192551,0.4485146 -0.429822,0.4485146 H 7.7375162 c -0.2373949,0 -0.4298325,-0.2477888 -0.4298325,-0.4485146 V 1.8840226 c 0,-0.2478309 0.1925619,-0.4485157 0.4298325,-0.4485157 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.2477898 0.4298325,0.4485157 v 4.1862447 c 0,0.2478309 -0.1925618,0.4485146 -0.4298325,0.4485146 H 0.42983194 C 0.19244752,6.5187819 -5.45e-7,6.2709931 -5.45e-7,6.0702673 V 1.8840226 c 0,-0.2478309 0.192561825,-0.4485157 0.429832485,-0.4485157 z"}),s.jsx("path",{className:"styled info",d:"m 5.0953063,12.037504 c 0,0.70197 -0.5690836,1.271053 -1.2710528,1.271053 -0.7019694,0 -1.2710529,-0.569083 -1.2710529,-1.271053 0,-0.701969 0.5690835,-1.271051 1.2710529,-1.271051 0.7019692,0 1.2710528,0.569082 1.2710528,1.271051 M 3.8242535,9.4954 c -2.5263161,0 -3.7500004,2.542104 -3.7500004,2.542104 0,0 1.2157613,2.542106 3.7500004,2.542106 2.5342388,0 3.7499996,-2.542106 3.7499996,-2.542106 0,0 -1.223698,-2.542104 -3.7499996,-2.542104 z m 0,4.507893 c -1.0894876,0 -1.9657898,-0.884195 -1.9657898,-1.965789 0,-1.089487 0.8841967,-1.965789 1.9657898,-1.965789 1.0815645,0 1.9657891,0.884196 1.9657891,1.965789 0,1.089488 -0.8763159,1.965789 -1.9657891,1.965789 z"})]}),SO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.9717046,9.233336 c 0.022866,1.925478 0.00341,3.854426 0.00988,5.78125 0.065161,0.685901 0.5906617,0.414059 0.9071511,0.46289 0.4225321,-0.0035 0.8459298,0.01217 1.2672078,-0.01953 C 4.6533351,13.267831 4.6097266,10.823874 5.0288336,8.590759 4.4194561,8.584259 3.8078987,8.594759 3.202187,8.623299 3.044425,8.706939 2.969123,8.987241 2.9717046,9.233341 Z m 13.9134934,6.226562 c 2.262009,0.0325 4.527823,0.02006 6.791289,0.0078 0.64698,-0.617616 0.15532,-1.926003 0.309388,-2.824021 -0.01546,-1.248725 0.03871,-2.51169 -0.03394,-3.751527 C 23.51,8.337295 22.738308,8.723126 22.149635,8.614128 c -1.698837,0.0036 -3.397606,-0.0211 -5.096431,-0.01948 0.552762,2.232675 0.49369,4.675292 -0.168001,6.86524 z m -0.700982,2.558966 h 4.32147 c 0.255761,0 0.463042,0.255874 0.463042,0.46303 v 4.321474 c 0,0.255874 -0.207232,0.46303 -0.463042,0.46303 h -4.32147 c -0.255799,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z m -7.871241,0 h 4.321467 c 0.255799,0 0.463046,0.207118 0.463046,0.46303 v 4.321474 c 0,0.255496 -0.207232,0.46303 -0.463046,0.46303 H 8.312975 c -0.25561,0 -0.463041,-0.207496 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.20742,-0.46303 0.463041,-0.46303 z m -7.871287,0 h 4.321467 c 0.255799,0 0.463045,0.255874 0.463045,0.46303 v 4.321474 c 0,0.255874 -0.207231,0.46303 -0.463045,0.46303 H 0.441688 c -0.255798,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z M 16.184216,0.821406 h 4.32147 c 0.122798,0 0.240416,0.04876 0.327271,0.135685 0.08685,0.08655 0.13557,0.204472 0.13557,0.327307 v 4.321475 c 0,0.255874 -0.207231,0.46303 -0.463041,0.46303 h -4.321281 c -0.255799,0 -0.463045,-0.207118 -0.463045,-0.46303 V 1.284398 c 0,-0.122835 0.04872,-0.240378 0.135571,-0.327307 0.08685,-0.08693 0.204662,-0.135685 0.327459,-0.135685 z m -7.871241,0 h 4.321467 c 0.255799,1.89e-4 0.463046,0.207496 0.463046,0.46303 v 4.321475 c 0,0.255874 -0.207232,0.463067 -0.463046,0.463067 H 8.312975 c -0.122797,0 -0.240567,-0.04876 -0.327269,-0.135685 C 7.898856,5.846363 7.849945,5.728821 7.849945,5.605986 V 1.284511 c 0,-0.255496 0.20742,-0.46303 0.463045,-0.46303 z m -7.871287,0 h 4.321467 c 0.122797,0 0.240567,0.04876 0.327269,0.135685 0.08685,0.08655 0.135761,0.204472 0.135761,0.327307 v 4.321475 c 0,0.255874 -0.20742,0.46303 -0.463041,0.46303 H 0.441673 c -0.255799,0 -0.463041,-0.207118 -0.463041,-0.46303 V 1.284398 c 0,-0.255496 0.207231,-0.46303 0.463041,-0.46303 z"}),s.jsx("path",{className:"styled info",d:"m 14.223803,8.6734848 c -0.110187,-0.1107963 -0.288122,-0.1107963 -0.39831,0 L 7.6220235,14.91115 c -0.11019,0.1108 -0.11019,0.289714 0,0.400506 0.059348,0.05968 0.1270966,0.08524 0.2034071,0.08524 0.076261,0 0.1440627,-0.02556 0.203408,-0.08524 L 14.23231,9.0739903 c 0.101675,-0.1022988 0.101675,-0.2897732 -0.0085,-0.4005055 z m -3.232152,4.7778582 c 0.809803,0 1.472298,-0.662569 1.472298,-1.472297 0,-0.189263 -0.03154,-0.368121 -0.1052,-0.536331 l -1.903518,1.903518 c 0.157795,0.06309 0.347125,0.105125 0.536387,0.105125 z M 9.5193174,11.979009 c 0,0.189262 0.031539,0.3786 0.1051963,0.536331 l 1.9035183,-1.903517 c -0.168283,-0.06309 -0.347051,-0.1052 -0.536331,-0.1052 -0.809879,7.5e-5 -1.4723717,0.662569 -1.4723717,1.472372 z M 9.2038182,12.936026 C 9.0460972,12.652056 8.961952,12.326057 8.961952,11.97899 c 0,-1.125322 0.9044347,-2.0297185 2.029719,-2.0297185 0.347051,0 0.673066,0.084138 0.967533,0.2418635 L 12.653323,9.4970174 C 12.148541,9.3497877 11.601657,9.255153 10.991688,9.255153 c -2.7553668,0 -4.4380344,1.893 -4.9323172,2.524 -0.094633,0.115688 -0.094633,0.283971 0,0.399653 0.2839678,0.3786 0.9990639,1.188402 2.1033338,1.798388 z M 15.92397,11.779192 c -0.283967,-0.3786 -0.999064,-1.188404 -2.103333,-1.798388 l -1.030615,1.030615 c 0.15772,0.283967 0.241865,0.609966 0.241865,0.967533 0,1.125321 -0.914933,2.029717 -2.029719,2.029717 -0.34705,0 -0.673067,-0.08414 -0.967532,-0.241862 l -0.6941221,0.694118 c 0.5047828,0.147228 1.0516681,0.241863 1.6616361,0.241863 2.755368,0 4.438034,-1.892999 4.932317,-2.523999 0.07359,-0.115613 0.07359,-0.283895 -0.01062,-0.399579 z"})]}),T0=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 4.1757812,3.6210938 h 3.609375 V 5.0703125 H 4.0625 v 4.5839844 1.1093751 0.0098 2.21289 2.25586 1.11914 4.583984 h 4.5839844 1.1191406 4.46875 1.119141 4.583984 v -4.583984 -1.11914 -4.46875 -0.123047 H 19.9277 V 9.7675781 h 0.0098 V 5.0703125 H 19.773437 16.132812 V 3.6210938 h 3.691407 c 0.853925,-1e-7 1.5625,0.7085755 1.5625,1.5624999 V 20.832031 c 0,0.853925 -0.708575,1.5625 -1.5625,1.5625 H 4.1757812 c -0.8539247,0 -1.5625,-0.708575 -1.5624999,-1.5625 V 5.1835937 c 0,-0.8539247 0.7085755,-1.5625 1.5624999,-1.5624999 z"}),s.jsx("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),M7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z m -15.8170465,0 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z"}),s.jsx("path",{className:"styled info",d:"M 12.859695,5.8455913 V 4.0508962 h 1.872747 c 0.11307,0 0.221313,-0.042986 0.301134,-0.1195368 0.07997,-0.076571 0.124695,-0.1802351 0.124695,-0.288668 V 2.8111242 c 0,-0.1080607 -0.04472,-0.2120482 -0.124694,-0.2886582 C 14.95379,2.4458948 14.845551,2.4029292 14.732442,2.4029292 H 12.859695 V 0.60819501 c 0,-0.10843292 -0.04472,-0.21205813 -0.124693,-0.28865835 C 12.655212,0.24296576 12.546783,0.2 12.433866,0.2 h -0.867733 c -0.235293,0 -0.425829,0.1828202 -0.425829,0.40823417 V 2.4029685 H 9.2673765 c -0.2351001,0 -0.4258292,0.1824481 -0.4258292,0.4080872 v 0.8315672 c 0,0.1080608 0.044916,0.2120483 0.1246941,0.2886583 0.079972,0.076571 0.1882195,0.1195367 0.3011351,0.1195367 H 11.140304 V 5.845513 c 0,0.1084328 0.04472,0.2120581 0.124694,0.2886583 0.07978,0.076571 0.188219,0.1195367 0.301135,0.1195367 h 0.867733 c 0.112878,0 0.221314,-0.042887 0.301135,-0.1195367 0.07997,-0.076571 0.124694,-0.1802255 0.124694,-0.2886583 z"})]}),T7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.986328,1.2324219 h 2.378906 v 0.00195 h 6.275391 c 0.383144,0 0.695313,0.3140538 0.695312,0.7011719 V 16.167969 h -0.0059 v 5.884765 c 0,0.387121 -0.311627,0.699219 -0.695312,0.699219 H 14.205078 V 22.75 h -1.222656 c -0.383714,0 -0.695313,-0.311963 -0.695313,-0.699219 v -4.75 c 0.494532,-0.24814 0.961457,-0.546684 1.392579,-0.892578 v 4.941406 h 1.685546 v 0.002 H 20.9375 V 6.3398437 h 0.0078 V 2.6347656 h -6.740234 v -0.00195 H 13.681641 V 4.1816406 C 13.250904,3.835679 12.784994,3.5353833 12.291016,3.2871094 V 1.9335937 c 0,-0.3871161 0.312172,-0.7011718 0.695312,-0.7011718 z"}),s.jsx("path",{d:"M 12.832873,5.607207 C 12.102129,4.850478 11.183099,4.302002 10.170243,4.017959 9.1573351,3.733891 8.0870751,3.724671 7.0692151,3.990969 6.0515591,4.257359 5.1230791,4.78986 4.3791541,5.533685 3.6352261,6.27751 3.1028281,7.205989 2.8364381,8.223748 c -0.266289,1.017758 -0.257069,2.088017 0.02699,3.101026 0.284067,1.012909 0.832519,1.931938 1.589247,2.662632 0.730744,0.756728 1.649775,1.305205 2.662629,1.589248 1.012909,0.284068 2.083168,0.293288 3.1010279,0.027 1.017657,-0.26639 1.946137,-0.798892 2.690063,-1.542716 0.743928,-0.743826 1.276326,-1.672306 1.542716,-2.690064 0.266288,-1.017759 0.257068,-2.088019 -0.02699,-3.101028 C 14.138058,7.256932 13.589605,6.337901 12.832877,5.607208 Z m -0.835594,7.544419 c -0.775191,0.776082 -1.795439,1.259257 -2.8869079,1.367409 -1.091595,0.108147 -2.186847,-0.165495 -3.099248,-0.774279 -0.912403,-0.608801 -1.585489,-1.515132 -1.904559,-2.56459 -0.319066,-1.049407 -0.264409,-2.177019 0.154675,-3.190688 0.418989,-1.013593 1.176607,-1.850685 2.143591,-2.368403 0.96696,-0.517719 2.083549,-0.684213 3.159446,-0.470984 1.0758969,0.213217 2.0446629,0.792948 2.7411169,1.640251 0.696403,0.847403 1.077599,1.910018 1.078488,3.006794 0.002,0.623076 -0.119346,1.240309 -0.357472,1.816167 -0.238018,0.575757 -0.587868,1.098632 -1.029362,1.538247 z"}),s.jsx("path",{className:"styled info",d:"M 12.049184,8.931163 H 9.4991431 v -2.55004 c 0,-0.303666 -0.161935,-0.584287 -0.424911,-0.736122 -0.262971,-0.151829 -0.587125,-0.151829 -0.850107,0 -0.262977,0.151829 -0.424913,0.432452 -0.424913,0.736122 v 2.55004 h -2.550038 c -0.303666,0 -0.584288,0.161935 -0.736122,0.424912 -0.15183,0.262971 -0.15183,0.587126 0,0.850107 0.151828,0.262977 0.432451,0.424911 0.736122,0.424911 h 2.550038 v 2.550041 c 0,0.303666 0.161936,0.584288 0.424913,0.736123 0.262971,0.151831 0.587126,0.151831 0.850107,0 0.262976,-0.151828 0.424911,-0.432453 0.424911,-0.736123 v -2.550041 h 2.5500409 c 0.303665,0 0.584288,-0.161934 0.736123,-0.424911 0.15183,-0.262972 0.15183,-0.587126 0,-0.850107 C 12.633479,9.093098 12.352853,8.931163 12.049184,8.931163 Z"})]}),CO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 1.7298676,12.488882 v 2.378906 h 0.002 v 6.275391 c 0,0.383144 0.314054,0.695313 0.701172,0.695312 H 16.665415 v -0.0059 h 5.884765 c 0.387121,0 0.699219,-0.311627 0.699219,-0.695312 v -7.429647 h -0.002 v -1.222656 c 0,-0.383714 -0.311963,-0.695313 -0.699219,-0.695313 h -4.75 c -0.24814,0.494532 -0.546684,0.961457 -0.892578,1.392579 h 4.941406 v 1.685546 h 0.002 v 5.572266 H 6.8372896 v 0.0078 H 3.1322116 V 13.70762 h -0.0019 v -0.523425 h 1.548775 C 4.3331246,12.753458 4.0328296,12.287548 3.7845556,11.79357 h -1.353516 c -0.387116,0 -0.701172,0.312172 -0.701172,0.695312 z"}),s.jsx("path",{d:"m 5.8131464,12.235547 c -0.756729,-0.730744 -1.305205,-1.649774 -1.589248,-2.66263 -0.284068,-1.0129079 -0.293288,-2.0831679 -0.02699,-3.1010279 0.26639,-1.017656 0.798891,-1.946136 1.542716,-2.690061 0.743825,-0.743928 1.672304,-1.276326 2.690063,-1.542716 1.017758,-0.266289 2.0880156,-0.257069 3.1010246,0.02699 1.012909,0.284067 1.931938,0.832519 2.662632,1.589247 0.756728,0.730744 1.305205,1.649775 1.589248,2.662629 0.284068,1.012909 0.293288,2.083168 0.027,3.1010279 -0.26639,1.017657 -0.798892,1.946137 -1.542716,2.690063 -0.743826,0.743928 -1.672306,1.276326 -2.690064,1.542716 -1.017759,0.266288 -2.0880176,0.257068 -3.1010266,-0.02699 -1.012914,-0.284063 -1.931945,-0.832516 -2.662638,-1.589244 z m 7.5444176,-0.835594 c 0.776082,-0.775191 1.259257,-1.795439 1.367409,-2.8869079 0.108147,-1.091595 -0.165495,-2.186847 -0.774279,-3.099248 -0.608801,-0.912403 -1.515132,-1.585489 -2.56459,-1.904559 -1.049407,-0.319066 -2.1770176,-0.264409 -3.1906866,0.154675 -1.013593,0.418989 -1.850685,1.176607 -2.368403,2.143591 -0.517719,0.96696 -0.684213,2.083549 -0.470984,3.159446 0.213217,1.0758969 0.792948,2.0446629 1.640251,2.7411169 0.847403,0.696403 1.910018,1.077599 3.0067926,1.078488 0.623076,0.002 1.240309,-0.119346 1.816167,-0.357472 0.575757,-0.238018 1.098632,-0.587868 1.538247,-1.029362 z"}),s.jsx("path",{className:"styled info",d:"M 9.1371024,11.451858 V 8.9018171 h -2.55004 c -0.303666,0 -0.584287,-0.161935 -0.736122,-0.424911 -0.151829,-0.262971 -0.151829,-0.587125 0,-0.850107 0.151829,-0.262977 0.432452,-0.424913 0.736122,-0.424913 h 2.55004 v -2.550038 c 0,-0.303666 0.161935,-0.584288 0.424912,-0.736122 0.2629706,-0.15183 0.5871246,-0.15183 0.8501056,0 0.262977,0.151828 0.424911,0.432451 0.424911,0.736122 v 2.550038 h 2.550041 c 0.303666,0 0.584288,0.161936 0.736123,0.424913 0.151831,0.262971 0.151831,0.587126 0,0.850107 -0.151828,0.262976 -0.432453,0.424911 -0.736123,0.424911 h -2.550041 v 2.5500409 c 0,0.303665 -0.161934,0.584288 -0.424911,0.736123 -0.262972,0.15183 -0.587125,0.15183 -0.8501056,0 -0.262977,-0.151828 -0.424912,-0.432454 -0.424912,-0.736123 z"})]}),ah=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 18.619141,5.5078125 c 0.424809,-0.013626 0.853669,0.032536 1.271484,0.1445312 1.114343,0.2985286 2.064671,1.0266678 2.644531,2.0234375 0.572944,1.0008485 0.72825,2.1886901 0.429688,3.3027348 -0.298352,1.113969 -1.025212,2.06237 -2.021485,2.642578 l -4.832031,2.791015 c -0.888544,0.512809 -1.9297,0.693494 -2.939453,0.509766 -0.840019,-0.14978 -1.61734,-0.543707 -2.236328,-1.128906 l 1.257812,-0.726563 c 0.424883,0.302884 0.922211,0.489415 1.441407,0.542969 0.623515,0.06527 1.25038,-0.06715 1.792968,-0.380859 l 4.816407,-2.78125 0.01563,-0.0098 C 21.17925,11.901541 21.743935,10.9176 21.742187,9.8535156 21.740649,8.789242 21.172946,7.8084933 20.251953,7.2753906 19.330966,6.7422918 18.197358,6.7369245 17.273437,7.265625 l -4.832031,2.789063 c -0.42267,0.243452 -0.77918,0.590225 -1.037109,1.003906 -0.212681,0.342222 -0.351152,0.721598 -0.414063,1.11914 -0.43659,0.238394 -0.91749,0.498035 -1.3945309,0.759766 -0.044673,-0.702093 0.076403,-1.407524 0.359375,-2.052734 C 10.324758,10.03783 10.957146,9.3346541 11.757813,8.8730469 L 16.587891,6.0839844 C 17.213455,5.725581 17.911308,5.530517 18.619141,5.5078125 Z m -4.205078,6.3027345 c 0.236568,-0.0077 0.473947,0.0021 0.710937,0.0332 0.914521,0.11981 1.766487,0.529255 2.435547,1.162109 l -1.257813,0.726563 c -0.424857,-0.302882 -0.922033,-0.489587 -1.441406,-0.542969 -0.623552,-0.06525 -1.24994,0.06512 -1.792969,0.378906 l -4.8300777,2.791016 c -0.6690128,0.388554 -1.1621399,1.01985 -1.3750001,1.763672 -0.2106995,0.735956 -0.1319447,1.525955 0.2207032,2.205078 v 0.0098 l 0.0625,0.09961 c 0.388193,0.668812 1.018153,1.1619 1.7617187,1.375 0.7359698,0.210741 1.5244539,0.129993 2.2031249,-0.222656 h 0.0098 l 4.933593,-2.847657 c 0.422548,-0.243379 0.779268,-0.587812 1.03711,-1.001953 0.216798,-0.348674 0.355234,-0.737142 0.416015,-1.142578 l 1.386719,-0.798828 c 0.05662,0.722377 -0.06175,1.448541 -0.353515,2.113281 -0.369392,0.846701 -1.000526,1.551958 -1.800782,2.013672 l -4.832031,2.789063 c -1.001028,0.572948 -2.1885184,0.728047 -3.3027342,0.429687 -1.1071985,-0.296706 -2.0531794,-1.016826 -2.6347657,-2.003906 0,0 0,-0.002 0,-0.002 l -0.00977,-0.01758 C 5.3881613,20.120237 5.232707,18.934131 5.53125,17.820312 5.8299633,16.706419 6.556311,15.755782 7.5527344,15.175781 l 4.8320316,-2.789062 c 0.622469,-0.356424 1.319697,-0.552944 2.029297,-0.576172 z"}),s.jsx("path",{d:"M 9.1428648,3.107132 C 8.5947558,2.5395327 7.9054197,2.1281377 7.1457075,1.9150857 6.3859562,1.702015 5.583187,1.6950994 4.8197214,1.8948413 4.0564088,2.0946523 3.3599844,2.494065 2.8019891,3.0519854 2.2439914,3.6099057 1.8446561,4.3063294 1.6448451,5.0697192 1.4451099,5.8331083 1.4520255,6.6358767 1.6650897,7.3957037 c 0.2130699,0.759752 0.624447,1.4490878 1.1920455,1.997159 0.5481087,0.5675985 1.2374457,0.9789943 1.9971565,1.1920463 0.759752,0.213071 1.5625204,0.219986 2.325986,0.02025 C 7.9435914,10.405349 8.640015,10.005936 9.1980114,9.4480165 9.7560087,8.8900957 10.155344,8.1936711 10.355156,7.4302819 10.55489,6.6668921 10.547974,5.8641229 10.334911,5.1042958 10.121844,4.3445401 9.710466,3.6552031 9.1428675,3.1071327 Z M 8.5161111,8.7659695 C 7.9346643,9.348085 7.1694074,9.7104997 6.35073,9.7916212 5.531958,9.8727391 4.710443,9.6674878 4.026079,9.2108584 3.3417135,8.7542155 2.8368523,8.074404 2.5975276,7.2872377 2.358206,6.5001097 2.3992026,5.6543224 2.7135447,4.8940004 3.0278155,4.1337354 3.5960815,3.5058583 4.3213865,3.117534 5.0466737,2.7292087 5.8841928,2.6043267 6.6911902,2.7642633 7.4981876,2.9241908 8.2248297,3.3590293 8.7472185,3.9945652 9.2695686,4.630177 9.5554923,5.4272112 9.5561592,6.2498693 9.5576892,6.7172195 9.4666452,7.180187 9.2880303,7.6121205 9.1095,8.0439782 8.8470888,8.4361707 8.5159374,8.7659128 Z"}),s.jsx("path",{className:"styled info",d:"M 8.5178648,5.607132 H 6.6051568 V 3.6944247 c 0,-0.2277706 -0.121462,-0.4382557 -0.318713,-0.5521425 -0.197246,-0.1138823 -0.440384,-0.1138823 -0.637639,0 -0.197251,0.1138823 -0.318714,0.324369 -0.318714,0.5521425 V 5.607132 h -1.912705 c -0.227771,0 -0.438257,0.121462 -0.552143,0.318713 -0.113883,0.197247 -0.113883,0.440385 0,0.637639 0.113882,0.197251 0.324368,0.318713 0.552143,0.318713 h 1.912705 v 1.912707 c 0,0.227772 0.121463,0.438257 0.318714,0.552144 0.197247,0.113883 0.440385,0.113883 0.637639,0 0.197251,-0.113881 0.318713,-0.32437 0.318713,-0.552143 V 6.882197 h 1.912708 c 0.227769,0 0.438257,-0.121462 0.552143,-0.318713 0.113883,-0.197247 0.113883,-0.440385 0,-0.637639 -0.113882,-0.197251 -0.32437,-0.318713 -0.552143,-0.318713 z"})]}),lh=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 18.054853,10.379482 c -0.123748,0 -0.246135,0.0049 -0.368186,0.01221 V 5.2879282 c 0,-0.7768693 -0.632102,-1.4091874 -1.409014,-1.4091874 H 1.5183591 c -0.77686828,0 -1.40901288,0.6322755 -1.40901288,1.4091874 v 8.8826488 c 0,0.776696 0.63210098,1.408493 1.40901288,1.408493 h 0.2605437 v 4.201566 c 0,0.01458 0.00328,0.02798 0.00436,0.04221 0.00152,0.02255 0.00272,0.04476 0.00676,0.06663 0.0037,0.01967 0.0095,0.03847 0.015088,0.05713 0.00546,0.01898 0.010143,0.03764 0.017291,0.05594 0.0073,0.01865 0.016778,0.03627 0.025942,0.05424 0.00884,0.01696 0.016952,0.03458 0.027458,0.05086 0.011182,0.01729 0.024066,0.03306 0.03695,0.04881 0.011694,0.01475 0.022549,0.02967 0.035432,0.04357 0.01644,0.01696 0.035258,0.03205 0.053738,0.04747 0.010038,0.0079 0.018306,0.01779 0.028986,0.0256 0.00272,0.0019 0.00556,0.0031 0.0083,0.0051 0.010472,0.0073 0.021872,0.0134 0.03288,0.02 0.020684,0.01272 0.041531,0.02457 0.063229,0.03458 0.011694,0.0051 0.023564,0.01002 0.03577,0.01458 0.023728,0.009 0.04764,0.01628 0.07187,0.02237 0.011192,0.0028 0.022036,0.0055 0.033568,0.0077 0.036448,0.0067 0.073233,0.01119 0.1098429,0.01119 h 1.626e-4 1.625e-4 c 0.045764,0 0.089673,-0.0057 0.1322219,-0.01526 0.011694,-0.0027 0.02255,-0.0071 0.03407,-0.01048 0.03119,-0.009 0.0612,-0.01916 0.090175,-0.03255 0.014072,-0.0067 0.027294,-0.01458 0.040516,-0.02237 0.025254,-0.01441 0.049495,-0.02983 0.072382,-0.04747 0.012884,-0.01002 0.025254,-0.02 0.037124,-0.03085 0.024578,-0.02237 0.046614,-0.04661 0.067298,-0.0729 0.00556,-0.0071 0.013048,-0.01238 0.01848,-0.02 L 6.1699123,15.57889 H 12.06176 c -0.03984,0.279529 -0.06153,0.564838 -0.06153,0.855372 0,3.338254 2.716133,6.054128 6.05456,6.054128 3.338254,0 6.054562,-2.715962 6.054562,-6.054128 0,-3.3386 -2.716308,-6.054556 -6.054562,-6.054556 z M 5.859807,14.363718 c -0.01271,0 -0.02424,0.0028 -0.036611,0.004 -0.024752,0.0016 -0.049494,0.0028 -0.07391,0.0073 -0.017804,0.0033 -0.034244,0.0089 -0.051196,0.01356 -0.020684,0.0055 -0.041531,0.0112 -0.061538,0.01898 -0.016952,0.0068 -0.032891,0.01527 -0.049156,0.02356 -0.018982,0.0097 -0.037974,0.01898 -0.055942,0.03034 -0.015262,0.01002 -0.02916,0.02169 -0.04356,0.03289 -0.016778,0.01289 -0.033568,0.02525 -0.048818,0.04034 -0.014574,0.01408 -0.027294,0.02983 -0.040342,0.04542 -0.010472,0.01238 -0.022036,0.02255 -0.031866,0.03577 l -2.3728744,3.285875 1.625e-4,-2.930377 c 0,-0.33564 -0.271899,-0.607539 -0.6075391,-0.607539 H 1.5185303 c -0.106964,0 -0.1939271,-0.0868 -0.1939271,-0.193414 V 5.2881595 c 0,-0.106964 0.086956,-0.1940951 0.1939271,-0.1940951 H 16.277825 c 0.106964,0 0.193925,0.086956 0.193925,0.1940951 v 5.3029455 c -1.902801,0.51619 -3.436706,1.937872 -4.106475,3.772856 z m 12.195046,6.909456 c -2.668312,0 -4.839483,-2.170781 -4.839483,-4.839049 0,-2.668487 2.171127,-4.839481 4.839483,-4.839481 2.668311,0 4.839482,2.171126 4.839482,4.839481 0,2.668312 -2.171127,4.839049 -4.839482,4.839049 z"}),s.jsx("path",{d:"m 15.386715,9.0817687 c 0,-1.056852 -0.86001,-1.916861 -1.917397,-1.916861 -1.056851,0 -1.916862,0.859831 -1.916862,1.916861 0,1.0570293 0.859833,1.9172173 1.916862,1.9172173 1.057387,0 1.917397,-0.860188 1.917397,-1.9172173 z m -1.917219,0.668565 c -0.368602,0 -0.668208,-0.29997 -0.668208,-0.668565 0,-0.368594 0.299624,-0.668209 0.668208,-0.668209 0.368777,0 0.668744,0.299624 0.668744,0.668209 -1.67e-4,0.368602 -0.300145,0.668565 -0.668744,0.668565 z M 8.8865838,7.1650867 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.9168592,-0.86001 1.9168592,-1.9172163 0,-1.05685 -0.8598292,-1.91686 -1.9168592,-1.91686 z m 0,2.58547 c -0.368605,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299623,-0.668208 0.66821,-0.668208 0.368583,0 0.668207,0.299624 0.668207,0.668208 0,0.368586 -0.299798,0.668565 -0.668207,0.668565 z m -4.583006,-2.58547 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.916862,-0.86001 1.916862,-1.9172163 0,-1.05685 -0.859832,-1.91686 -1.916862,-1.91686 z m 0,2.58547 c -0.368602,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299626,-0.668208 0.66821,-0.668208 0.368603,0 0.668208,0.299624 0.668208,0.668208 0,0.368586 -0.299973,0.668565 -0.668208,0.668565 z"}),s.jsx("path",{className:"styled info",d:"m 21.414868,15.755151 h -2.697203 v -2.697715 c 0,-0.359844 -0.291508,-0.651352 -0.651352,-0.651352 -0.359845,0 -0.651353,0.291508 -0.651353,0.651352 v 2.697529 l -2.697202,1.85e-4 c -0.359844,0 -0.651352,0.291508 -0.651352,0.651352 0,0.359844 0.291508,0.651352 0.651352,0.651352 h 2.697202 v 2.697203 c 0,0.359844 0.291508,0.651352 0.651353,0.651352 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 v -2.697202 h 2.697389 c 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 0,-0.359844 -0.291871,-0.651352 -0.651538,-0.651352 z"})]}),sd=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 20.755578,11.219159 V 4.2861685 c 0,-1.2559826 -1.021811,-2.2777936 -2.277795,-2.2777936 l -14.8013936,1.49e-4 c -1.255983,0 -2.277794,1.021811 -2.277794,2.2777946 V 16.38563 c 0,1.255984 1.021811,2.277795 2.277794,2.277795 h 8.8030186 c 0.953091,1.878573 2.89978,3.171949 5.146368,3.171949 3.183038,0 5.772503,-2.589585 5.772503,-5.772503 -1.49e-4,-2.029336 -1.055053,-3.814043 -2.64302,-4.843875 z M 3.6763104,17.632165 c -0.687314,0 -1.246287,-0.559013 -1.246287,-1.246286 V 4.2861685 c 0,-0.687313 0.559013,-1.2462856 1.246287,-1.2462856 H 18.477704 c 0.687313,0 1.246286,0.5590126 1.246286,1.2462856 v 6.4046255 c -0.651437,-0.255495 -1.357307,-0.400464 -2.098214,-0.400464 -0.339986,0 -0.671391,0.03539 -0.995633,0.09213 L 14.948914,9.0158145 c -0.0023,-0.0017 -0.0048,-0.0028 -0.0072,-0.0048 -0.0145,-0.01138 -0.02993,-0.02026 -0.04536,-0.02993 -0.01403,-0.0089 -0.02744,-0.01855 -0.04225,-0.02572 -0.01107,-0.0055 -0.02276,-0.0089 -0.03445,-0.01372 -0.01995,-0.0083 -0.03959,-0.01684 -0.06017,-0.02276 -0.0076,-0.002 -0.01574,-0.0023 -0.02369,-0.0045 -0.02401,-0.0055 -0.04879,-0.0106 -0.07326,-0.01232 -0.0097,-6.22e-4 -0.01995,3.2e-4 -0.02962,0 -0.02276,-3.19e-4 -0.04567,-0.0011 -0.06843,0.0017 -0.01231,0.0014 -0.02447,0.0051 -0.03679,0.0072 -0.02058,0.0037 -0.04084,0.0072 -0.06079,0.01372 -0.01138,0.0037 -0.02229,0.0094 -0.03398,0.01403 -0.02058,0.008 -0.04053,0.01621 -0.06017,0.02681 -0.002,0.0014 -0.0045,0.0017 -0.0065,0.0031 L 12.031074,10.310487 9.2550842,7.7240545 c -0.0028,-0.0028 -0.0069,-0.0034 -0.0097,-0.0058 -0.04677,-0.04193 -0.09899,-0.07326 -0.155105,-0.09524 -0.0069,-0.0028 -0.01341,-0.0055 -0.02027,-0.008 -0.05612,-0.01933 -0.113797,-0.02821 -0.172564,-0.02744 -0.0076,0 -0.01512,0 -0.02276,3.2e-4 -0.05737,0.0031 -0.114109,0.01652 -0.168514,0.03913 -0.0079,0.0031 -0.01543,0.0062 -0.02338,0.01 -0.03991,0.01886 -0.07841,0.04162 -0.113798,0.07155 L 3.3124834,12.178522 c -0.216993,0.184258 -0.243495,0.509888 -0.05877,0.726901 0.101794,0.120031 0.247234,0.181607 0.392989,0.181607 0.118316,0 0.236946,-0.04022 0.333908,-0.122681 L 8.8883352,8.7913065 13.000321,12.623426 c -0.717243,0.961951 -1.147636,2.150133 -1.147636,3.439479 0,0.544646 0.08075,1.06922 0.222448,1.569131 z m 10.0113926,-5.778091 -0.866734,-0.807631 1.752463,-1.006727 0.848815,0.689628 c -0.646767,0.268748 -1.230882,0.653472 -1.734544,1.12473 z m 3.937993,8.950275 c -2.614368,0 -4.740916,-2.127227 -4.740916,-4.740916 0,-2.614049 2.127227,-4.740916 4.740916,-4.740916 2.614048,0 4.740916,2.127227 4.740916,4.740916 0,2.613689 -2.126748,4.740916 -4.740916,4.740916 z"}),s.jsx("path",{className:"styled secondary_light",d:"m 5.2446666,7.807211 c 1.102784,0 1.999992,-0.897208 1.999992,-2 0,-1.102784 -0.897208,-2 -1.999992,-2 -1.102792,0 -2.000008,0.897216 -2.000008,2 0,1.102792 0.897216,2 2.000008,2 z m 0,-3.051888 c 0.579848,0 1.051592,0.471744 1.051592,1.0516 0,0.579848 -0.471744,1.051592 -1.051592,1.051592 -0.579856,0 -1.0516,-0.471744 -1.0516,-1.051592 0,-0.579856 0.471744,-1.0516 1.0516,-1.0516 z"}),s.jsx("path",{className:"styled info",d:"m 21.071857,15.532739 h -2.84657 v -2.84657 c 0,-0.31834 -0.25837,-0.57672 -0.57672,-0.57672 -0.31834,0 -0.57671,0.25837 -0.57671,0.57672 v 2.84657 h -2.84657 c -0.31834,0 -0.57672,0.25837 -0.57672,0.57671 0,0.31834 0.25837,0.57672 0.57672,0.57672 h 2.84657 v 2.84657 c 0,0.31834 0.25837,0.57671 0.57671,0.57671 0.31834,0 0.57672,-0.25837 0.57672,-0.57671 v -2.84657 h 2.84657 c 0.31834,0 0.57671,-0.25837 0.57671,-0.57672 0,-0.31834 -0.25801,-0.57671 -0.57671,-0.57671 z"})]}),Hc=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 1.3300781,2.1191409 c -0.176367,0 -0.3183593,0.1524484 -0.3183593,0.3421836 v 11.0485395 4.074713 3.829097 c 0,0.189385 0.1418333,0.342185 0.3183593,0.342185 H 22.693359 c 0.1762,0 0.31836,-0.1528 0.31836,-0.342185 V 17.584577 13.509864 2.4613245 c 0,-0.1893847 -0.14216,-0.3421836 -0.31836,-0.3421836 z m 0.3203125,4.46728 H 8.1328125 V 9.6807681 H 1.6503906 Z m 7.1210938,0 H 15.251953 V 9.6807681 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 9.6807681 H 15.890625 Z M 1.6503906,10.367234 h 6.4824219 v 3.092247 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.092247 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 13.46158 H 15.890625 Z M 1.6503906,14.196331 h 6.4824219 v 3.043964 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.043964 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.043964 H 15.890625 Z M 1.6503906,17.975044 h 6.4824219 v 3.094348 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.094348 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.094348 h -6.482422 z"})}),_7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 15.432227,23.559503 v -7.799619 c -0.461329,0.313474 -1.017411,0.45628 -1.572473,0.40379 -0.555288,-0.05235 -1.074897,-0.296693 -1.469367,-0.690826 l -0.391181,-0.391185 -0.388951,0.391185 c -0.39481,0.394636 -0.915175,0.639009 -1.470955,0.691004 -0.555779,0.05197 -1.112239,-0.09169 -1.57338,-0.406209 v 7.80183 c 7.56e-4,0.255421 0.207497,0.462335 0.463031,0.463042 h 5.940473 c 0.122834,0 0.240378,-0.04872 0.327307,-0.135571 0.08693,-0.08685 0.135685,-0.204663 0.135685,-0.327458 z M 14.085052,5.6315691 c 0.480832,-0.00207 0.950929,0.1424882 1.347326,0.4144971 V 3.4948431 C 15.432529,3.3720462 15.383622,3.2542761 15.296693,3.1673848 15.210142,3.0805308 15.092221,3.0318131 14.969386,3.0318131 H 9.028951 c -0.122835,0 -0.240756,0.048718 -0.327308,0.1355717 -0.08693,0.086854 -0.135685,0.2046614 -0.135685,0.3274583 v 2.5534757 c 0.461141,-0.3144946 1.0176,-0.4581771 1.57338,-0.4062048 0.555931,0.051969 1.076145,0.2963528 1.470955,0.6910036 l 0.388951,0.3911849 0.391181,-0.3911849 C 12.838979,5.8823673 13.449109,5.6298645 14.085014,5.6315918 Z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),s.jsx("path",{className:"styled info",d:"m 14.471925,14.162913 0.787389,-0.787389 c 0.213543,-0.213468 0.213543,-0.559386 0,-0.772846 l -1.699276,-1.699283 1.699276,-1.6992836 v 1.776e-4 c 0.102425,-0.1025764 0.160252,-0.2414362 0.160252,-0.3863471 0,-0.1450583 -0.05745,-0.2839182 -0.160252,-0.386521 L 14.471925,7.6440318 C 14.369499,7.5416066 14.230413,7.483931 14.085581,7.483931 c -0.144756,0 -0.283842,0.057676 -0.386343,0.1601008 L 11.999962,9.3433152 10.300648,7.6440318 C 10.198223,7.5416066 10.059137,7.483931 9.914305,7.483931 c -0.144756,0 -0.283843,0.057676 -0.386343,0.1601008 l -0.78739,0.7873891 c -0.213543,0.2134677 -0.213543,0.5593853 0,0.7728455 l 1.699276,1.6992836 -1.699276,1.699283 v -1.77e-4 c -0.102425,0.102425 -0.160251,0.241436 -0.160251,0.386347 0,0.144907 0.05745,0.283918 0.160251,0.386521 l 0.78739,0.787389 c 0.213165,0.213279 0.559408,0.213279 0.772724,0 l 1.699276,-1.699284 1.699276,1.699284 c 0.102425,0.102425 0.241512,0.159912 0.386343,0.159912 0.144756,0 0.283843,-0.05752 0.386344,-0.159912 z"})]}),j7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 3.3723286,7.8084837 V 22.040909 c 0,0.387119 0.3121683,0.701172 0.6953125,0.701172 h 6.2753909 v 0.002 h 2.378906 c 0.38314,0 0.695313,-0.314055 0.695313,-0.701172 v -1.353515 c -0.493979,-0.248274 -0.959889,-0.54857 -1.390625,-0.894532 v 1.548829 h -0.523438 v -0.002 H 4.7629536 v -3.705078 h 0.00781 V 2.6248897 h 5.5722654 v 0.002 h 1.68555 v 4.94141 c 0.431121,-0.345894 0.898047,-0.644438 1.392578,-0.892578 v -4.75 c 0,-0.387256 -0.311599,-0.6992189 -0.695313,-0.6992189 h -1.222656 v -0.002 H 4.0735004 c -0.3836857,0 -0.6953125,0.3120979 -0.6953125,0.6992189 v 5.884765 z"}),s.jsx("path",{d:"m 20.517526,9.6190337 c 0.756729,0.7307433 1.305205,1.6497763 1.589248,2.6626323 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 -1.01291,-0.284067 -1.931939,-0.832519 -2.662631,-1.589247 -0.756728,-0.730744 -1.305207,-1.649775 -1.589251,-2.662629 -0.284069,-1.012909 -0.29329,-2.083168 -0.027,-3.101028 0.266391,-1.017657 0.798895,-1.94614 1.542719,-2.6900653 0.743825,-0.743927 1.672305,-1.276325 2.690063,-1.542715 1.017759,-0.266288 2.088017,-0.257068 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589243 z m -7.544417,0.8355933 c -0.776082,0.775194 -1.259256,1.795442 -1.367408,2.886911 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044664 -1.640251,-2.741121 -0.847403,-0.6964013 -1.910018,-1.0775963 -3.006793,-1.0784853 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357471 -0.575756,0.238017 -1.098632,0.5878663 -1.538247,1.0293613 z"}),s.jsx("path",{className:"styled info",d:"m 19.432824,15.63695 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287675 -0.301889,-0.512485 -0.589572,-0.589573 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215833 l -1.76852,1.76852 -1.768518,-1.768519 c -0.2106,-0.210601 -0.517526,-0.292914 -0.805207,-0.215833 -0.287676,0.07708 -0.512486,0.30189 -0.589572,0.589573 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),kO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 8.0214844,2.2460938 H 22.253906 c 0.387119,0 0.701172,0.3121683 0.701172,0.6953125 v 6.2753906 h 0.002 v 2.3789061 c 0,0.38314 -0.314055,0.695313 -0.701172,0.695313 h -1.353515 c -0.248274,-0.493979 -0.54857,-0.959889 -0.894532,-1.390625 h 1.548829 v -0.523438 h -0.002 V 3.6367188 h -3.705078 v 0.00781 H 2.8378906 v 5.5722656 h 0.00195 V 10.902344 H 7.78125 c -0.3458936,0.431121 -0.6444378,0.898047 -0.8925781,1.392578 h -4.75 c -0.3872555,0 -0.6992188,-0.311599 -0.6992188,-0.695313 V 10.376953 H 1.4375 V 2.9472656 c 0,-0.3836857 0.3120982,-0.6953125 0.6992188,-0.6953125 h 5.8847656 z"}),s.jsx("path",{d:"m 18.191717,11.748829 c 0.756729,0.730744 1.305205,1.649774 1.589248,2.66263 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 C 11.461242,21.434207 10.542213,20.885755 9.811521,20.129027 9.054793,19.398283 8.506316,18.479252 8.222273,17.466398 7.938205,16.453489 7.928985,15.38323 8.195273,14.36537 c 0.26639,-1.017657 0.798892,-1.946137 1.5427165,-2.690063 0.7438245,-0.743928 1.6723045,-1.276326 2.6900625,-1.542716 1.017759,-0.2662877 2.088017,-0.2570677 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589244 z M 10.6473,12.584423 c -0.7760815,0.775191 -1.259256,1.795439 -1.367408,2.886908 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044663 -1.640251,-2.741117 -0.847403,-0.696403 -1.910018,-1.077599 -3.006793,-1.078488 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357472 -0.575756,0.238018 -1.098632,0.587868 -1.538247,1.029362 z"}),s.jsx("path",{className:"styled info",d:"m 17.107015,17.766743 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287674 -0.301889,-0.512483 -0.589572,-0.589571 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215832 l -1.76852,1.768519 -1.768518,-1.768518 c -0.2106,-0.2106 -0.517526,-0.292913 -0.805207,-0.215832 -0.287676,0.07708 -0.512486,0.301889 -0.589572,0.589571 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),EO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),s.jsx("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),MO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),s.jsx("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),TO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 19.880282,3.1253973 v 1.7167968 h 0.851563 c 0.06225,0 0.08398,0.027898 0.08398,0.080078 v 1.3261718 h 1.722656 V 4.9222723 c 0,-0.9900118 -0.81968,-1.7968751 -1.80664,-1.796875 z m 0.935547,4.1370057 v 2.11914 c 0,0.05217 -0.02171,0.08008 -0.08398,0.08008 h -7.222656 -1.541016 c -0.987185,0 -1.806641,0.8111 -1.806641,1.800782 v 0.458985 h 1.720703 v -0.458987 c 0,-0.04911 0.02442,-0.08008 0.08594,-0.08008 h 1.541016 7.222656 c 0.987178,0 1.806641,-0.811095 1.80664,-1.800782 V 7.262403 Z M 8.7679091,18.507575 v 2.998047 c 0,1.235762 1.014238,2.250001 2.2499999,2.25 1.235678,0 2.251962,-1.014894 2.251953,-2.25 v -2.998047 z m 1.3886819,-5.108896 v 2.923828 H 9.6272951 c -0.479448,-0.0018 -0.865107,0.384547 -0.863282,0.863281 v 2.714844 h 4.5019539 v -2.714844 c 0.0018,-0.480054 -0.386529,-0.865104 -0.865235,-0.863281 h -0.523437 v -2.923828 z m 2.5e-5,-2.051023 c 0.0011,0.0068 0.002,0.01353 0.002,0.02149 v 3.576171 h 1.722657 v -3.576171 c 0,-0.0072 8.7e-5,-0.01428 0,-0.02149 z M 20.814819,5.1347656 c 0.0011,0.0068 0.002,0.013534 0.002,0.021484 v 3.515625 h 1.722657 V 5.15625 c 0,-0.0072 8.7e-5,-0.014274 0,-0.021484 z"}),s.jsx("path",{className:"styled info",d:"m 17.404297,0.44921875 c -0.07081,8.138e-4 -0.143662,0.004376 -0.210938,0.0117188 H 5.4902344 C 4.1525203,0.4243701 3.0054304,1.6927542 3.1386719,3.0136719 c 0.021871,0.9461512 -0.050473,1.9039617 0.046875,2.8515625 0.2179595,1.1823832 1.417011,2.0074176 2.5917968,1.8789062 3.9411951,-0.00202 7.8840343,0.00319 11.8261723,-0.00391 1.312982,-0.03522 2.368675,-1.3065531 2.228515,-2.5917969 0.01172,-0.1312372 0.02662,-0.26053 0.03516,-0.3984375 V 3.296875 l -0.002,-0.00586 C 19.774361,3.0207819 19.896551,2.5516284 19.757812,2.2226563 19.506263,1.1645186 18.468764,0.4369752 17.404297,0.44921875 Z M 5.4882812,2.1816406 H 17.484375 c 0.583998,-0.018068 0.674958,0.6128217 0.626953,1.078125 -0.0082,0.7566135 0.0156,1.5145404 -0.01367,2.2636719 -0.09518,0.5462285 -0.699316,0.5126149 -1.152344,0.4980469 H 5.4863281 C 4.9024853,6.0371317 4.8115036,5.4054689 4.859375,4.9394531 4.8674807,4.1829001 4.8438683,3.425015 4.8730469,2.6757813 4.9219827,2.3881103 5.1972243,2.1732403 5.4882812,2.1816406 Z"})]}),Gb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),s.jsx("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),s.jsx("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),s.jsx("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),s.jsx("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),sh=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),s.jsx("path",{d:"m 10.722257,6.8830305 v -1.50391 h 4.88082 v 1.50391 z m 0,3.5809205 V 8.9600505 h 7.099404 v 1.5039005 z m 0,3.58085 v -1.50391 h 9.317921 v 1.50391 z m 0,3.58092 v -1.50391 h 11.536489 v 1.50391 z"})]}),_O=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{className:"styled info",d:"M 7.8167266,10.428041 A 2.7552276,2.7552276 0 0 1 5.061499,13.183269 2.7552276,2.7552276 0 0 1 2.3062715,10.428041 2.7552276,2.7552276 0 0 1 5.061499,7.6728163 2.7552276,2.7552276 0 0 1 7.8167266,10.428041 Z M 3.9394531,4.5996094 v 1.9121094 a 4.1082412,4.2066421 0 0 1 0.2578125,-0.056641 3.690037,3.7884378 0 0 1 0.3007813,-0.066406 4.1082412,4.2066421 0 0 1 0.1425781,-0.011719 3.690037,3.7884378 0 0 1 0.3789062,-0.03125 3.690037,3.7884378 0 0 1 0.023438,0.00195 4.1082412,4.2066421 0 0 1 0.048828,-0.00391 4.1082412,4.2066421 0 0 1 0.9648437,0.1269531 V 4.5996094 Z m 0,9.9882816 v 3.984375 H 6.0566406 V 14.638672 A 4.1082412,4.2066421 0 0 1 5.0917969,14.755859 4.1082412,4.2066421 0 0 1 3.9394531,14.587891 Z"}),s.jsx("path",{d:"m 10.722257,16.12182 v 1.503901 h 7.099404 V 16.12182 Z m 0,-2.076939 V 12.54097 h 11.536489 v 1.503911 z m 0,-3.580921 V 8.9600505 h 9.317921 V 10.46396 Z m 0,-3.5809295 v -1.50391 h 4.88082 v 1.50391 z"})]}),jO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),s.jsx("path",{className:"styled info",d:"m 20,11 h 3 v 2 h -3 v 3 h -2 v -3 h -3 v -2 h 3 V 8 h 2 z"})]}),RO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),s.jsx("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),R7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.793828,12.0675 c 1.055094,0.414425 1.787109,0.74604 1.787109,1.902344 0,1 -0.809297,1.669922 -2.279297,1.669922 C 10.76164,15.639766 9.37,15.1 9.37,13.13 H 6.40125 c 0,0.55 0.080234,1.130078 0.240234,1.580078 0.81,2.29 3.289922,3.300781 5.669922,3.300781 2.27,0 5.298828,-0.890781 5.298828,-4.050781 0,-0.293994 -0.0104,-1.125305 -0.453125,-1.892578 z M 6.85,7.08 C 6.85,4.37 9.45,3 12.24,3 c 1.64,0 3,0.49 3.9,1.28 0.77,0.65 1.46,1.73 1.46,3.24 h -3.01 c 0,-0.31 -0.05,-0.59 -0.15,-0.85 -0.29,-0.86 -1.2,-1.28 -2.25,-1.28 -1.86,0 -2.34,1.02 -2.34,1.7 0,0.48 0.25,0.88 0.74,1.21 C 10.97,8.55 11.36,8.78 12,9 H 7.39 C 7.18,8.66 6.85,8.11 6.85,7.08 Z"}),s.jsx("path",{className:"styled info",d:"m 2.985229,9.9941 v 2 H 12.60437 C 12.60977,11.9962 12.61465,11.9979 12.62,12 h 8.365229 v -0.0059 -2 z"})]}),IO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 5.88,20 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,12.73 17.81,6 h -2.68 l -3.07,4.99 H 11.94 L 8.85,6 H 6.19 l 4.32,6.73 z"}),s.jsx("path",{className:"styled info",d:"m 22,7 h -2 v 1 h 3 V 9 H 19 V 7 c 0,-0.55 0.45,-1 1,-1 h 2 V 5 H 19 V 4 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),PO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 5.88,18 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,10.73 17.81,4 H 15.13 L 12.06,8.99 H 11.94 L 8.85,4 H 6.19 l 4.32,6.73 z"}),s.jsx("path",{className:"styled info",d:"m 22,18 h -2 v 1 h 3 v 1 h -4 v -2 c 0,-0.55 0.45,-1 1,-1 h 2 v -1 h -3 v -1 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),_p=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12,17 c 3.31,0 6,-2.69 6,-6 V 3 h -2.5 v 8 c 0,1.93 -1.57,3.5 -3.5,3.5 -1.93,0 -3.5,-1.57 -3.5,-3.5 V 3 H 6 v 8 c 0,3.31 2.69,6 6,6 z"}),s.jsx("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),I7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 17.983101,9.6935009 q 0,3.6331771 -2.067499,5.4798741 Q 13.868177,17 10.154709,17 H 6.1000033 V 2.668021 H 10.59631 q 2.248154,0 3.894124,0.802912 1.666042,0.802912 2.569318,2.3685904 0.923349,1.5456056 0.923349,3.8539775 z m -3.15143,0.080291 q 0,-2.3886631 -1.043785,-3.4926671 Q 12.7441,5.1570482 10.756893,5.1570482 H 9.130996 V 14.4909 h 1.304732 q 4.395943,0 4.395943,-4.7171079 z"}),s.jsx("path",{className:"styled info",d:"m 5,21.242188 v 1.671875 H 19 V 21.242188 Z M 5,18.75 v 1.671875 H 19 V 18.75 Z"})]}),P7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),s.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),O7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),s.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z M 5,20.3125 v 1.094624 H 19 V 20.3125 Z"})]}),OO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.75,3 h -1.5 L 6.5,14 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z M 10.13,10 12,4.98 13.87,10 Z"}),s.jsx("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),D7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 19.4,4.91 18.34,3.85 7.2,8.27 l 1.48,1.48 2.19,-0.92 3.54,3.54 -0.92,2.19 1.48,1.48 z m -6.81,3.1 4.87,-2.23 -2.23,4.87 z"}),s.jsx("path",{className:"styled info",d:"M 14.27,21 V 16.76 L 12.86,18.17 4.02,9.33 2.6,10.75 11.44,19.59 10.03,21 Z"})]}),L7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 21,12 V 10.5 L 10,5.75 v 2.1 l 2.2,0.9 v 5 l -2.2,0.9 v 2.1 z M 14,9.38 19.02,11.25 14,13.12 Z"}),s.jsx("path",{className:"styled info",d:"m 6,19.75 3,-3 H 7 V 4.25 H 5 v 12.5 H 3 Z"})]}),A7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 10,13.4375 v -1.5 l 11,-4.75 v 2.1 l -2.2,0.9 v 5 l 2.2,0.9 v 2.1 z m 7,-2.62 -5.02,1.87 5.02,1.87 z"}),s.jsx("path",{className:"styled info",d:"m 6,4.25 3,3 H 7 v 12.5 H 5 V 7.25 H 3 Z"})]}),cd=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4.49,4.21 3.43,5.27 7.85,16.4 9.33,14.92 8.41,12.73 l 3.54,-3.54 2.19,0.92 1.48,-1.48 z m 3.09,6.8 -2.22,-4.87 4.87,2.23 z"}),s.jsx("path",{className:"styled info",d:"m 20.57,9.33 h -4.24 l 1.41,1.41 -8.84,8.84 1.42,1.42 8.84,-8.84 1.41,1.41 z"})]}),z7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.775,5.225 h -1.5 l -4.75,11 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z m -2.62,7 1.87,-5.02 1.87,5.02 z"}),s.jsx("path",{className:"styled info",d:"M 5.8342066,2.1057288 6.7489352,3.5142877 C 4.5119738,4.8935056 2.8102304,7.136837 2.2198413,9.9143995 1.1410154,14.989875 4.1186315,19.977298 8.953265,21.515989 L 9.3732789,19.53998 C 5.6220734,18.241799 3.3289986,14.310176 4.1750146,10.329983 4.6489709,8.1001948 6.0317389,6.2990363 7.8414141,5.1965572 L 8.7807545,6.6430144 9.5761234,2.9010978 Z M 15.045094,2.470135 14.625081,4.4461449 c 3.751204,1.2981805 6.04428,5.2298043 5.198264,9.2099961 -0.476939,2.243839 -1.873607,4.05475 -3.700087,5.155302 L 15.08,17.204971 l -0.795367,3.741917 3.741916,0.795368 -0.810813,-1.248542 c 2.253817,-1.377379 3.969387,-3.630283 4.562782,-6.42199 C 22.857344,8.9962479 19.879726,4.0088265 15.045094,2.470135 Z"})]}),DO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),s.jsx("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),LO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 4,11 v 2 h 16 v -2 z"}),s.jsx("path",{className:"styled info",d:"m 8,19 h 3 v 4 h 2 v -4 h 3 L 12,15 Z M 16,5 H 13 V 1 H 11 V 5 H 8 l 4,4 z"})]}),F7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 4,19 v 2 h 16 v -2 z"}),s.jsx("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),Wc=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 3.6503906 C 22.533056,3.5835353 22.245605,3.5503497 21.958984,3.5644531 21.714123,3.574937 21.478658,3.6106011 21.248047,3.65625 V 2.7519531 H 15.693359 V 7.1679687 C 15.384511,7.43193 15.080608,7.7009831 14.777344,7.9707031 v -5.21875 H 9.2226563 V 8.3066406 H 14.400391 C 14.066225,8.6087427 13.733481,8.9137148 13.40625,9.2226563 H 9.2226563 V 12.171875 C 8.9144,12.251628 8.6073686,12.359707 8.3066406,12.498047 V 9.2226563 H 2.7519531 v 5.5546877 h 2.6621094 c -0.2529233,0.292971 -0.4887468,0.600495 -0.7089844,0.916015 h -1.953125 v 5.554688 H 2.9140625 C 2.8210423,21.766482 2.6927179,22.284969 2.5195313,22.75 1.7631952,22.557231 1.1894531,21.87003 1.1894531,21.058594 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z M 22.810547,11.259766 v 9.798828 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 h -7.134766 c 0.550597,-0.44244 1.02425,-0.975141 1.371094,-1.63086 0.156933,-0.269785 0.285005,-0.553463 0.398437,-0.841796 v 0.910156 h 5.554688 v -5.554688 h -2.777344 c 0.33283,-0.303009 0.665729,-0.606191 0.992188,-0.916015 h 1.785156 v -1.78711 c 0.536806,-0.563086 1.06071,-1.137681 1.5625,-1.730468 z"}),s.jsx("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),AO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 2.9414062 1 C 1.8801751 1 1 1.8801751 1 2.9414062 L 1 21.058594 C 1 22.016977 1.7179462 22.826507 2.6386719 22.974609 C 2.8746068 22.392265 3.0352813 21.712461 3.140625 21.058594 L 2.9414062 21.058594 L 2.9414062 15.882812 L 4.8007812 15.882812 C 5.1118517 15.428446 5.4603359 14.99253 5.8378906 14.587891 L 2.9414062 14.587891 L 2.9414062 9.4121094 L 8.1171875 9.4121094 L 8.1171875 12.800781 C 8.5414237 12.58005 8.9761389 12.414501 9.4121094 12.316406 L 9.4121094 9.4121094 L 13.480469 9.4121094 C 14.261447 8.6729624 15.062312 7.9531127 15.882812 7.2539062 L 15.882812 2.9414062 L 21.058594 2.9414062 L 21.058594 3.8867188 C 21.351078 3.8150484 21.652926 3.7673448 21.966797 3.7539062 C 22.315888 3.7367325 22.667546 3.7904677 23 3.8984375 L 23 2.9414062 C 23 1.8801751 22.119825 1 21.058594 1 L 2.9414062 1 z M 2.9414062 2.9414062 L 8.1171875 2.9414062 L 8.1171875 8.1171875 L 2.9414062 8.1171875 L 2.9414062 2.9414062 z M 9.4121094 2.9414062 L 14.587891 2.9414062 L 14.587891 8.1171875 L 9.4121094 8.1171875 L 9.4121094 2.9414062 z M 23 10.738281 C 22.386197 11.489898 21.732626 12.210989 21.058594 12.916016 L 21.058594 14.587891 L 19.388672 14.587891 C 18.927998 15.026276 18.459668 15.457175 17.986328 15.882812 L 21.058594 15.882812 L 21.058594 21.058594 L 15.882812 21.058594 L 15.882812 18.917969 C 15.772781 19.675711 15.520363 20.414383 15.130859 21.083984 C 14.70264 21.89323 14.079246 22.511928 13.347656 23 L 21.058594 23 C 22.119825 23 23 22.119825 23 21.058594 L 23 10.738281 z "}),s.jsx("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),zO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),FO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),Zb=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 1.6875,1.0761719 h 5.5 c 0.1623225,0 0.3189114,0.063052 0.4335937,0.1777343 C 7.7357798,1.3685879 7.7988281,1.5251759 7.7988281,1.6875 v 9.757813 L 14.699219,4.5449219 c 0.114721,-0.11458 0.271299,-0.1777344 0.433594,-0.1777344 0.162295,0 0.318906,0.063183 0.433593,0.1777344 l 3.888672,3.8886719 c 0.114587,0.1147184 0.177735,0.2712971 0.177734,0.4335937 0,0.1622964 -0.06318,0.3189061 -0.177734,0.4335938 l -6.90039,6.9003907 H 22.3125 c 0.162324,0 0.318911,0.06305 0.433594,0.177734 0.114685,0.114682 0.177734,0.27127 0.177734,0.433594 v 5.5 c 0,0.162322 -0.06305,0.31891 -0.177734,0.433594 -0.114681,0.114685 -0.271269,0.177734 -0.433594,0.177734 H 4.421875 C 3.5331871,22.918718 2.6814293,22.563525 2.0546875,21.933594 1.4277775,21.303864 1.0770706,20.451103 1.0761719,19.5625 V 1.6875 c 0,-0.1623225 0.063052,-0.3189103 0.1777343,-0.4335938 C 1.3685868,1.1392213 1.5251762,1.0761719 1.6875,1.0761719 Z M 2.2988281,2.2988281 V 5.2011719 H 6.5761719 V 2.2988281 Z M 15.130859,5.84375 13.080078,7.8945312 16.103516,10.917969 18.15625,8.8671875 Z M 2.2988281,6.4238281 V 9.3261719 H 6.5761719 V 6.4238281 Z M 12.214844,8.7597656 10.162109,10.8125 13.1875,13.835938 15.238281,11.785156 Z M 2.2988281,10.548828 v 2.902344 h 4.2773438 v -2.902344 z m 7,1.128906 -1.5,1.498047 v 1.103516 l 2.4707029,2.472656 0.373047,-0.373047 1.679688,-1.677734 z m -7,2.996094 V 19.5625 c 6.51e-4,0.566698 0.2261684,1.108818 0.6269532,1.509766 0.4008158,0.400706 0.9447472,0.62827 1.5117187,0.628906 C 5.0043265,21.700521 5.5466134,21.47308 5.9472656,21.072266 6.3481233,20.671618 6.5755363,20.12945 6.5761719,19.5625 v -4.888672 z m 5.5,1.337891 v 3.210937 L 9.40625,17.617187 Z m 3.5312499,1.412109 -0.78125,0.78125 v 3.496094 h 2.902344 v -4.277344 z m 3.34375,0 v 4.277344 h 2.902344 v -4.277344 z m 4.125,0 v 4.277344 h 2.902344 v -4.277344 z m -9.4726561,2.005859 -2.2714844,2.271485 h 2.2714844 z"})}),BO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),s.jsx("path",{className:"styled info",d:"m 12,7.0668288 c -2.2088889,0 -4,1.7911111 -4,3.9999992 0,2.208889 1.7911111,4 4,4 2.208889,0 4,-1.791111 4,-4 0,-0.204445 -0.01778,-0.408889 -0.04445,-0.604445 C 15.52,11.071273 14.808889,11.466828 14,11.466828 c -1.324445,0 -2.4,-1.075555 -2.4,-2.3999992 0,-0.8044445 0.395555,-1.52 1.004445,-1.9555555 -0.195556,-0.026667 -0.4,-0.044444 -0.604445,-0.044444 z"})]}),NO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),s.jsx("path",{className:"styled info",d:"m 12,9.015354 c -1.003636,0 -1.818182,0.8145452 -1.818182,1.818181 0,1.003636 0.814546,1.818182 1.818182,1.818182 1.003636,0 1.818182,-0.814546 1.818182,-1.818182 0,-1.0036358 -0.814546,-1.818181 -1.818182,-1.818181 z m -3.6363636,2.181817 h 0.7272727 c 0.2,0 0.3636364,-0.163636 0.3636364,-0.363636 0,-0.2 -0.1636364,-0.363636 -0.3636364,-0.363636 H 8.3636364 C 8.1636364,10.469899 8,10.633535 8,10.833535 c 0,0.2 0.1636364,0.363636 0.3636364,0.363636 z m 6.5454546,0 h 0.727273 c 0.2,0 0.363636,-0.163636 0.363636,-0.363636 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 h -0.727273 c -0.2,0 -0.363636,0.163636 -0.363636,0.363636 0,0.2 0.163636,0.363636 0.363636,0.363636 z M 11.636364,7.1971724 v 0.7272727 c 0,0.2 0.163636,0.3636364 0.363636,0.3636364 0.2,0 0.363636,-0.1636364 0.363636,-0.3636364 V 7.1971724 C 12.363636,6.9971724 12.2,6.833536 12,6.833536 c -0.2,0 -0.363636,0.1636364 -0.363636,0.3636364 z m 0,6.5454536 v 0.727273 c 0,0.2 0.163636,0.363636 0.363636,0.363636 0.2,0 0.363636,-0.163636 0.363636,-0.363636 v -0.727273 c 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 -0.2,0 -0.363636,0.163636 -0.363636,0.363636 z M 9.8145455,8.1353542 C 9.6727273,7.993536 9.44,7.993536 9.3018182,8.1353542 9.16,8.2771724 9.16,8.5098996 9.3018182,8.6480815 L 9.6872727,9.033536 c 0.1418182,0.1418178 0.3745453,0.1418178 0.5127273,0 0.138182,-0.141818 0.141818,-0.3745455 0,-0.5127273 z m 4.4981815,4.4981808 c -0.141818,-0.141818 -0.374545,-0.141818 -0.512727,0 -0.141818,0.141818 -0.141818,0.374545 0,0.512727 l 0.385455,0.385455 c 0.141818,0.141818 0.374545,0.141818 0.512727,0 0.141818,-0.141818 0.141818,-0.374546 0,-0.512727 z m 0.385455,-3.9854535 c 0.141818,-0.1418182 0.141818,-0.3745455 0,-0.5127273 -0.141818,-0.1418182 -0.374546,-0.1418182 -0.512727,0 L 13.8,8.5208087 c -0.141818,0.1418182 -0.141818,0.3745453 0,0.5127273 0.141818,0.1381818 0.374545,0.1418178 0.512727,0 z M 10.2,13.146262 c 0.141818,-0.141818 0.141818,-0.374545 0,-0.512727 -0.141818,-0.141818 -0.3745455,-0.141818 -0.5127273,0 L 9.3018182,13.01899 c -0.1418182,0.141818 -0.1418182,0.374545 0,0.512727 0.1418182,0.138182 0.3745454,0.141818 0.5127273,0 z"})]}),Xb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 11.990234,4.5 c -1.4,0 -2.7404684,0.2492188 -3.9804684,0.6992188 L 10.169922,7.359375 C 10.739922,7.129375 11.35,7 12,7 c 2.76,0 5,2.24 5,5 0,0.65 -0.129375,1.260078 -0.359375,1.830078 L 19.560547,16.75 c 1.51,-1.26 2.699687,-2.89 3.429687,-4.75 -1.73,-4.39 -6,-7.5 -11,-7.5 z M 4.4667969,7.2363281 C 2.9391014,8.4988579 1.7360476,10.131572 1,12 c 1.73,4.39 6,7.5 11,7.5 1.421129,0 2.781865,-0.254758 4.039062,-0.712891 L 13.867188,16.619141 C 13.287518,16.858524 12.661535,17 12,17 9.24,17 7,14.76 7,12 7,11.342179 7.1400222,10.719516 7.3769531,10.142578 Z m 7.5429691,1.7734375 -0.169922,0.00977 3.15039,3.1503904 0.01953,-0.160156 c 0,-1.66 -1.34,-3 -3,-3 z M 9.0136719,11.777344 C 9.0071589,11.851577 9,11.925377 9,12 c 0,1.66 1.34,3 3,3 0.07662,0 0.152316,-0.0088 0.228516,-0.01563 z"}),s.jsx("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),$O=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 12.014585,1.0145787 c -2.9173083,0 -5.7150653,1.1589573 -7.7781146,3.2218854 -2.0630492,2.0629281 -3.2218854,4.860625 -3.2218854,7.7781139 0,2.91749 1.1589576,5.715066 3.2218854,7.778115 2.0629284,2.063049 4.8606245,3.221885 7.7781146,3.221885 2.91749,0 5.715066,-1.158957 7.778115,-3.221885 2.063049,-2.062929 3.221885,-4.860625 3.221885,-7.778115 0,-2.9174889 -1.158957,-5.7150648 -3.221885,-7.7781139 -2.062929,-2.06305 -4.860625,-3.2218854 -7.778115,-3.2218854 z M 13.454319,18.933997 H 10.69791 v -2.711384 h 2.801514 z m 2.665954,-7.817276 c -0.393369,0.480362 -0.849436,0.905921 -1.355692,1.265237 l -0.677677,0.542148 c -0.340096,0.246802 -0.593209,0.594783 -0.723064,0.994116 -0.0933,0.353966 -0.139007,0.718651 -0.135539,1.084567 h -2.485365 c -0.004,-0.734733 0.102442,-1.465996 0.316147,-2.169219 0.298807,-0.564837 0.733789,-1.046159 1.265561,-1.400716 l 0.677675,-0.542147 c 0.208661,-0.150352 0.391797,-0.333481 0.542147,-0.542149 0.238289,-0.328436 0.365,-0.7243298 0.361537,-1.1296746 C 13.915784,8.7495526 13.773307,8.2896447 13.499392,7.9082991 13.22832,7.516817 12.731253,7.3207704 12.008222,7.3207704 v 3.208e-4 c -0.297234,-0.027745 -0.596672,0.024585 -0.866787,0.1519262 -0.270128,0.1270191 -0.501476,0.3243371 -0.669484,0.5708244 -0.290933,0.4434869 -0.4479,0.9610316 -0.451999,1.491171 H 7.3085687 C 7.3687712,7.7576298 7.9862449,6.5074836 9.1613173,5.7844902 9.9748465,5.2833264 10.91764,5.03211 11.8727,5.0617409 c 1.235866,-0.046327 2.454463,0.3019609 3.479482,0.9937921 0.944328,0.6906014 1.47229,1.8145812 1.400717,2.9824229 0.02302,0.743552 -0.199523,1.4739041 -0.632602,2.0787641 z"})}),VO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 19.470429,3.2227425 c -0.973736,0.562118 -2.218716,0.228623 -2.780834,-0.7451281 -0.160461,-0.278328 -0.516282,-0.373468 -0.79462,-0.212804 L 1.7911267,10.407837 c -0.278327,0.160461 -0.373467,0.516283 -0.212803,0.79462 0.562118,0.973736 0.228622,2.218715 -0.74512891,2.780834 -0.278327,0.160461 -0.373468,0.516282 -0.212804,0.79462 l 3.19914991,5.541206 c 0.160462,0.278327 0.516282,0.373467 0.79462,0.212803 0.973736,-0.562118 2.218716,-0.228622 2.780834,0.74513 0.160461,0.278326 0.516282,0.373467 0.79462,0.212803 L 22.293462,13.346826 c 0.278328,-0.160461 0.373468,-0.516282 0.212805,-0.79462 -0.562118,-0.973736 -0.228623,-2.218715 0.745128,-2.7808335 0.278328,-0.160461 0.373468,-0.516282 0.212804,-0.79462 l -3.19915,-5.541205 c -0.160462,-0.278328 -0.516283,-0.373671 -0.79462,-0.212805 z m 0.72259,7.6496675 c 0.319099,0.552615 0.129223,1.261598 -0.423371,1.580724 L 8.6768517,18.857459 c -0.552615,0.319099 -1.261598,0.129224 -1.580724,-0.423369 l -3.205226,-5.552112 c -0.3191,-0.552615 -0.129224,-1.261598 0.423369,-1.580724 L 15.406549,4.8969295 c 0.552614,-0.3191 1.261598,-0.129223 1.580724,0.42337 z"}),s.jsx("path",{d:"M 15.843458,5.6521485 4.7506607,12.056473 c -0.136121,0.07851 -0.18298,0.252766 -0.104068,0.388887 l 3.205227,5.551592 c 0.07851,0.13612 0.252766,0.182979 0.388886,0.104067 L 19.332983,11.696695 c 0.136121,-0.07851 0.18298,-0.252766 0.104069,-0.388887 L 16.231825,5.7562165 c -0.07851,-0.136121 -0.252563,-0.182575 -0.388684,-0.104068 z"})]}),Yb=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 22.976945,4.1728234 c -1.33047,-1.27297 -3.05206,-2.0588 -4.88525,-2.230281 -2.10522,-0.135121 -4.18237,0.540501 -5.80555,1.888121 -0.0974,0.0747 -0.23291,0.0747 -0.33029,0 -1.61964,-1.35414 -3.6993694,-2.030529 -5.8055494,-1.888121 -1.8332,0.171461 -3.55478,0.957311 -4.88526,2.230281 -0.42017001,0.38403 -0.65641001,0.92924 -0.64892001,1.49857 V 18.651443 c -0.0109,0.69237 0.32021,1.34565 0.88499001,1.74627 0.53079,0.38896 1.21765,0.49464 1.84068,0.28328 0.92429,-0.32417 1.90016,-0.47628 2.87921,-0.44842 1.70242,0.0498 3.3491595,0.61792 4.7200894,1.62833 0.35874,0.25404 0.78759,0.39035 1.22716,0.39035 0.43956,0 0.8684,-0.13631 1.22715,-0.39035 1.37093,-1.01041 3.01767,-1.57857 4.7201,-1.62833 0.97389,-0.0247 1.9448,0.12306 2.86732,0.43656 0.59598,0.19241 1.24789,0.0917 1.75815,-0.27142 0.54677,-0.3935 0.87134,-1.02543 0.87316,-1.69908 V 5.7185734 c 0.0243,-0.58374 -0.20861,-1.14872 -0.63709,-1.54575 z M 6.2207656,18.462663 h -0.23587 c -1.10053,-1.9e-4 -2.19332,0.18332 -3.23321,0.54283 -0.0747,0.0359 -0.16159,0.0359 -0.23606,0 -0.084,-0.0593 -0.13275,-0.15685 -0.12979,-0.25957 V 5.7658734 c -0.002,-0.0814 0.0326,-0.15942 0.0944,-0.21236 1.02189,-1.03236 2.36733,-1.6823 3.81138,-1.84089 1.6475,-0.10963 3.2740695,0.4184 4.5428894,1.47506 0.12584,0.0881 0.26017,0.16317 0.40121,0.22421 V 19.961163 c -1.5097899,-0.93399 -3.2402794,-1.45113 -5.0150194,-1.49857 z m 15.6112594,0.23607 h 1.9e-4 c 0.005,0.10628 -0.0494,0.20643 -0.14164,0.25957 -0.0688,0.0427 -0.15566,0.0427 -0.22421,0 -1.13846,-0.38936 -2.33714,-0.57327 -3.53997,-0.54283 -1.76665,0.0516 -3.48839,0.56852 -4.99131,1.49857 V 5.4239434 c 0.16357,-0.0569 0.31844,-0.13631 0.46008,-0.23607 1.27019,-1.06376 2.90172,-1.59632 4.55473,-1.48668 1.43176,0.13274 2.77589,0.7485 3.81138,1.74626 0.0618,0.0531 0.0964,0.13097 0.0944,0.21236 z"})}),HO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 19.995193,4.1812078 a 19.013613,19.013613 0 0 0 -4.681888,-1.4532973 0.07187425,0.07187425 0 0 0 -0.07475,0.035937 c -0.202686,0.3593713 -0.426933,0.8294288 -0.583619,1.197425 a 17.522941,17.522941 0 0 0 -5.2583209,0 A 11.870751,11.870751 0 0 0 8.8043723,2.7638477 0.07331173,0.07331173 0 0 0 8.729623,2.7279105 C 7.1124525,3.0067826 5.5384065,3.4955275 4.0477346,4.1812078 a 0.05893688,0.05893688 0 0 0 -0.030187,0.025875 C 1.0362036,8.6618483 0.21827469,13.007365 0.61933299,17.298257 c 0.00144,0.02013 0.014375,0.04025 0.030187,0.05319 a 19.08405,19.08405 0 0 0 5.74275231,2.90372 0.07187425,0.07187425 0 0 0 0.080499,-0.02731 c 0.4427453,-0.603744 0.8366162,-1.24055 1.1758627,-1.910418 a 0.07187425,0.07187425 0 0 0 -0.014375,-0.08481 0.07331173,0.07331173 0 0 0 -0.025875,-0.01581 12.757679,12.757679 0 0 1 -1.7939812,-0.855303 0.07187425,0.07187425 0 0 1 -0.02875,-0.09487 0.07331173,0.07331173 0 0 1 0.021562,-0.02731 C 5.9279635,17.148776 6.0487122,17.0539 6.163711,16.959026 a 0.07187425,0.07187425 0 0 1 0.073312,-0.01006 c 3.764774,1.719232 7.840044,1.719232 11.558817,0 a 0.07474922,0.07474922 0 0 1 0.07619,0.01006 c 0.114999,0.09487 0.235748,0.189748 0.356496,0.28031 a 0.07331173,0.07331173 0 0 1 -0.0057,0.122186 11.865001,11.865001 0 0 1 -1.795418,0.853866 0.07187425,0.07187425 0 0 0 -0.04312,0.04312 0.07474922,0.07474922 0 0 0 0.0043,0.05894 c 0.344996,0.668431 0.740304,1.306674 1.174425,1.910418 a 0.07187425,0.07187425 0 0 0 0.0805,0.02731 19.025113,19.025113 0 0 0 5.751377,-2.90372 0.07043676,0.07043676 0 0 0 0.03019,-0.05319 C 23.905152,12.337497 22.621478,8.0279175 20.023943,4.20852 a 0.04887449,0.04887449 0 0 0 -0.02875,-0.027312 z M 8.210691,14.68491 c -1.1341756,0 -2.0671034,-1.040739 -2.0671034,-2.317225 0,-1.277925 0.9156779,-2.318664 2.0671034,-2.318664 1.1600503,0 2.084354,1.049364 2.067104,2.318664 0,1.276486 -0.9156786,2.317225 -2.067104,2.317225 z m 7.641671,0 c -1.132739,0 -2.067104,-1.040739 -2.067104,-2.317225 0,-1.277925 0.915678,-2.318664 2.067104,-2.318664 1.16005,0 2.08579,1.049364 2.067103,2.318664 0,1.276486 -0.907053,2.317225 -2.067103,2.317225 z"})}),WO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 11.994177,0.64138243 c -6.3495538,0 -11.49893642,5.14871627 -11.49893642,11.50038057 0,5.08024 3.29478962,9.390915 7.86457222,10.912246 0.5753806,0.105166 0.7850455,-0.249827 0.7850455,-0.554855 0,-0.273303 -0.00988,-0.996138 -0.015529,-1.955634 C 5.9305529,21.238279 5.2556377,19.001727 5.2556377,19.001727 4.7325067,17.67312 3.978535,17.319396 3.978535,17.319396 c -1.0441366,-0.713 0.079073,-0.698883 0.079073,-0.698883 1.154267,0.08121 1.7614035,1.185372 1.7614035,1.185372 1.0257841,1.757041 2.6918882,1.249456 3.3470392,0.955055 0.1044834,-0.742662 0.4016909,-1.249613 0.7299723,-1.536875 -2.5535238,-0.29091 -5.2383375,-1.277087 -5.2383375,-5.683792 0,-1.255943 0.4482938,-2.2817109 1.1839131,-3.0858226 C 5.7229977,8.1635877 5.3283653,6.9944739 5.9545522,5.4109636 c 0,0 0.965064,-0.3092311 3.1620715,1.1782662 0.9170653,-0.2548559 1.9011953,-0.3819269 2.8789643,-0.3868758 0.977072,0.00494 1.960505,0.1320199 2.878982,0.3868758 2.19558,-1.4874973 3.159201,-1.1782662 3.159201,-1.1782662 0.627662,1.5835103 0.233013,2.7526241 0.115159,3.0434868 0.736951,0.8041117 1.181723,1.8298796 1.181723,3.0858226 0,4.417998 -2.689096,5.390185 -5.250312,5.674591 0.412287,0.355152 0.780112,1.05689 0.780112,2.129959 0,1.536876 -0.01413,2.77729 -0.01413,3.154331 0,0.307725 0.207571,0.665731 0.790708,0.553428 4.566198,-1.524186 7.858211,-5.831372 7.858211,-10.910819 0,-6.3516643 -5.149461,-11.50038057 -11.501063,-11.50038057 z"})}),B7=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 9.1445313,1.9277344 c 3.9843487,0 7.2167967,3.2324477 7.2167967,7.2167969 0,1.7875897 -0.654646,3.4321647 -1.742187,4.6972657 l -0.203125,0.236328 0.642578,0.615234 h 0.916015 l 5.464844,5.476563 -1.269531,1.269531 -5.476563,-5.464844 v -0.916015 l -0.615234,-0.642578 -0.234375,0.203125 c -1.265123,1.087569 -2.911633,1.742187 -4.6992187,1.742187 -3.9843492,0 -7.2167969,-3.232448 -7.2167969,-7.2167967 0,-3.9843492 3.2324477,-7.2167969 7.2167969,-7.2167969 z m 0,1.6660156 c -3.07113,0 -5.5507813,2.4796513 -5.5507813,5.5507813 0,3.0711297 2.4797193,5.5488277 5.5507813,5.5488277 3.0710627,0 5.5488277,-2.477765 5.5488277,-5.5488277 0,-3.071062 -2.477698,-5.5507813 -5.5488277,-5.5507813 z"})}),Jb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 16.2342,8.4780852 h 0.01571 c 0.287571,0.4887143 0.708714,0.7338572 1.266571,0.7338572 0.617572,0 1.109429,-0.264 1.477143,-0.7904286 0.370857,-0.5264286 0.554715,-1.2257143 0.554715,-2.0947143 0,-0.803 -0.157143,-1.4347143 -0.473,-1.8967143 -0.315858,-0.4635714 -0.766858,-0.6945714 -1.351429,-0.6945714 -0.636429,0 -1.128286,0.3048571 -1.474,0.913 H 16.2342 V 1.3547995 h -1.400147 v 7.7298571 h 1.398571 V 8.4780852 Z M 16.210628,6.8107995 V 6.2765138 c 0,-0.3897143 0.09114,-0.704 0.275,-0.9444286 a 0.84857143,0.84857143 0 0 1 0.699286,-0.3614286 0.77,0.77 0 0 1 0.685143,0.3661429 c 0.163428,0.242 0.243571,0.5782857 0.243571,1.0104286 0,0.5185714 -0.088,0.9224285 -0.265571,1.2068571 a 0.82342857,0.82342857 0 0 1 -0.738572,0.4242857 0.77785714,0.77785714 0 0 1 -0.645857,-0.3315714 1.3404286,1.3404286 0 0 1 -0.251428,-0.836 z"}),s.jsx("path",{className:"styled info",d:"m 5.7527709,5.6589424 3.5529999,3.5655714 3.4854282,-3.4948572 -1.1,-1.1 -1.590285,1.5824286 -0.01257,-2.5142857 A 0.82185714,0.82185714 0 0 1 10.874059,2.8712281 H 13.26263 V 1.3547995 H 10.874057 A 2.3288571,2.3288571 0 0 0 8.5483423,3.6946566 V 6.2262281 L 6.8621994,4.5495138 Z"}),s.jsx("path",{d:"m 14.834057,19.848943 c -0.402286,0.242 -0.982143,0.363 -1.741143,0.363 -0.884715,0 -1.602857,-0.279714 -2.151286,-0.837572 -0.548429,-0.557857 -0.821857,-1.277571 -0.821857,-2.159142 0,-1.018286 0.292286,-1.819715 0.88,-2.404286 0.587714,-0.590858 1.375,-0.884715 2.357143,-0.884715 0.680428,0 1.172285,0.09429 1.477143,0.281286 V 15.7758 a 1.98,1.98 0 0 0 -1.244572,-0.433714 c -0.510714,0 -0.916143,0.157143 -1.216286,0.468285 -0.298571,0.308 -0.444714,0.735429 -0.444714,1.282286 0,0.531143 0.141429,0.947572 0.427429,1.252429 0.286,0.300143 0.677285,0.451 1.177,0.451 0.443143,0 0.876857,-0.144572 1.301143,-0.433715 z M 6.9769137,10.783371 5.4054852,12.3548 v 9.428571 L 6.9769137,23.3548 H 17.976914 l 1.571429,-1.571429 V 12.3548 l -1.571429,-1.571429 z m 0,1.571429 H 17.976914 v 9.428571 H 6.9769137 Z"})]}),UO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{className:"styled info",d:"m 2.350101,20.254318 c 0.550055,0 1.000101,-0.450045 1.000101,-1.000101 0,-6.065612 4.935498,-11.0011108 11.001111,-11.0011108 h 5.585564 l -2.295232,2.2952318 c -0.390039,0.390039 -0.390039,1.025103 0,1.415143 0.200021,0.190019 0.455046,0.290029 0.710072,0.290029 0.255026,0 0.510052,-0.10001 0.705071,-0.29503 l 4.000404,-4.0004038 c 0.015,-0.015 0.025,-0.03 0.04,-0.05001 0.015,-0.015 0.03,-0.035 0.04501,-0.055 0.05501,-0.07001 0.10001,-0.140014 0.130013,-0.220023 0,0 0,-0.005 0.005,-0.005 0,0 0,0 0,0 0.035,-0.08501 0.05501,-0.170017 0.06501,-0.255026 0.005,-0.02 0.005,-0.04 0.005,-0.06001 0.005,-0.08501 0.005,-0.175018 -0.015,-0.260026 0,0 0,-0.005 0,-0.005 -0.015,-0.08001 -0.045,-0.160016 -0.08501,-0.2350231 -0.01,-0.02 -0.02,-0.035 -0.03,-0.05501 -0.045,-0.07501 -0.09501,-0.1500149 -0.160017,-0.215022 l -4.00041,-4.0003969 c -0.390039,-0.390039 -1.025103,-0.390039 -1.415143,0 -0.390039,0.39004 -0.390039,1.0251039 0,1.4151429 l 2.300233,2.295232 H 14.351313 C 7.185589,6.2529042 1.35,12.083493 1.35,19.254217 c 0,0.550056 0.450045,1.000101 1.000101,1.000101 z"})}),qO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{className:"styled error_light",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),KO=e=>s.jsx(Xe,{...e,children:s.jsx("path",{className:"styled success_light",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),GO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 3 3 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 3 3 z"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),ZO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),s.jsx("path",{className:"styled info",d:"M 9.7812231,5.9814554 H 7.5343168 V 3.7345497 c 0,-0.2675679 -0.1426852,-0.5148303 -0.3743998,-0.648616 -0.2317102,-0.1337804 -0.5173316,-0.1337804 -0.7490516,0 C 6.1791497,3.2197142 6.0364635,3.4669783 6.0364635,3.7345497 V 5.9814554 H 3.7895607 c -0.267568,0 -0.5148318,0.1426851 -0.6486164,0.3744009 -0.1337813,0.2317104 -0.1337813,0.5173316 0,0.7490509 0.1337792,0.2317158 0.3810441,0.3744001 0.6486164,0.3744001 h 2.2469028 v 2.2469063 c 0,0.2675679 0.1426862,0.5148294 0.3744019,0.6486154 0.2317104,0.133782 0.5173316,0.133782 0.7490516,0 C 7.3916316,10.24105 7.5343168,9.9937845 7.5343168,9.7262136 V 7.4793073 h 2.2469063 c 0.2675669,0 0.5148309,-0.1426843 0.6486159,-0.3744001 0.133782,-0.2317113 0.133782,-0.5173317 0,-0.7490509 C 10.296059,6.1241405 10.048794,5.9814554 9.7812231,5.9814554 Z"})]}),XO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),s.jsx("path",{className:"styled info",d:"M 9.4260315,5.8230168 9.8837653,5.3652823 c 0.2615617,-0.2615626 0.2615617,-0.6539057 0,-0.9154683 L 9.4260315,3.9920795 c -0.2615623,-0.2615626 -0.6539063,-0.2615626 -0.9154686,0 L 8.0528281,4.449814 Z M 8.9682967,6.2807515 5.6987653,9.5502826 C 5.5679836,9.6810635 5.437202,9.7464544 5.2410305,9.7464544 h -0.784687 c -0.1961725,0 -0.3269531,-0.1307818 -0.3269531,-0.3269536 V 8.6348143 c 0,-0.1961717 0.065392,-0.3269536 0.1961715,-0.4577346 L 7.5950933,4.9075478 Z"})]}),YO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),s.jsx("path",{className:"styled info",d:"m 9.8759095,8.5319992 -1.76852,-1.7685208 1.768519,-1.768519 C 10.086509,4.7843591 10.16882,4.4774348 10.091741,4.1897526 10.014661,3.902078 9.7898525,3.6772687 9.5021695,3.6001811 c -0.287678,-0.077085 -0.594604,0.00523 -0.805207,0.2158316 l -1.76852,1.7685197 -1.768518,-1.7685182 c -0.2106,-0.2106004 -0.517526,-0.2929129 -0.805207,-0.2158323 -0.287676,0.07708 -0.512486,0.3018891 -0.589572,0.5895714 -0.07708,0.2876781 0.0052,0.594603 0.215833,0.8052068 l 1.768518,1.7685183 -1.76852,1.7685198 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.2929128 0.805207,0.215833 0.287676,-0.07708 0.5124855,-0.301889 0.5895705,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.2158315,-0.805207 z"})]}),JO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 19.818359 12.601562 L 17.876953 14.542969 L 17.876953 14.941406 L 17.876953 16.236328 L 17.876953 21.412109 L 13.181641 21.412109 L 8.875 21.412109 L 8.8164062 21.412109 L 8.8164062 21.416016 L 5.8417969 21.416016 L 5.8417969 16.240234 L 5.8417969 14.945312 L 5.8417969 14.634766 L 3.9003906 12.693359 L 3.9003906 21.416016 C 3.9003906 22.477247 4.7805669 23.357422 5.8417969 23.357422 L 13.181641 23.357422 L 13.181641 23.353516 L 17.876953 23.353516 C 18.93818 23.353516 19.818359 22.47334 19.818359 21.412109 L 19.818359 12.601562 z "}),s.jsx("path",{className:"styled info",d:"m 6.5400304,2.3536823 c 0.407733,-0.4077339 0.407733,-1.0682821 0,-1.47568634 -0.4074036,-0.40740418 -1.0682827,-0.40740418 -1.475687,0 z M 1.628074,5.7899809 0.89039543,5.0519753 c -0.40773302,0.4074008 -0.40773302,1.06828 0,1.4756843 z m 3.4363028,4.9118911 c 0.4074043,0.407734 1.0682826,0.407734 1.4756856,0 0.407734,-0.407405 0.407734,-1.0682838 0,-1.475687 z M 5.0643107,0.87796266 0.89023053,5.0520731 2.3659174,6.5277583 6.5399624,2.3536823 Z M 0.89023053,6.5277583 5.0643107,10.701806 6.5399964,9.2261186 2.3659509,5.0520413 Z M 17.377723,9.0938804 c -0.407402,0.4074032 -0.407402,1.0682816 0,1.4756866 0.407405,0.407734 1.068283,0.407734 1.475689,0 z M 22.28965,5.6575759 23.027656,6.395585 c 0.407734,-0.4074017 0.407734,-1.06828 0,-1.4756834 z M 18.853377,0.74565808 c -0.407733,-0.4077329 -1.068281,-0.4077329 -1.475686,0 -0.407403,0.40740532 -0.407403,1.06828332 0,1.47568742 z m 0,9.82384292 4.174049,-4.1740473 -1.475687,-1.4756852 -4.174081,4.1740791 z M 23.027426,4.9197685 18.853377,0.74565808 17.377691,2.2213455 21.551772,6.3954202 Z"}),s.jsx("path",{className:"styled info",d:"M 11.747147,15.560724 H 7.4303463 L 11.747147,9.0742171 V 13.39102 h 4.316803 l -4.316803,6.486504 z"})]}),QO=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.874943,4.312687 1.941407,1.941406 h 0.398437 1.294922 5.175781 v 4.695312 4.306641 0.05859 h 0.0039 v 2.974613 h -5.175775 -1.294922 -0.310546 l -1.941407,1.941406 h 8.722657 c 1.061231,0 1.941406,-0.880176 1.941406,-1.941406 v -7.339844 h -0.0039 V 6.254093 c 0,-1.061227 -0.880176,-1.941406 -1.941407,-1.941406 z"}),s.jsx("path",{className:"styled info",d:"m 2.6270626,17.591016 c -0.407734,-0.407733 -1.068282,-0.407733 -1.475686,0 -0.40740404,0.407403 -0.40740404,1.068282 0,1.475687 z m 3.436299,4.911956 -0.738006,0.737679 c 0.407401,0.407733 1.06828,0.407733 1.475685,0 z m 4.9118914,-3.436303 c 0.407734,-0.407404 0.407734,-1.068282 0,-1.475685 -0.407405,-0.407734 -1.0682841,-0.407734 -1.4756872,0 z m -9.8239094,6.6e-5 4.17411,4.17408 1.475685,-1.475686 -4.174076,-4.174045 z m 5.649795,4.17408 4.1740484,-4.17408 L 9.4994998,17.59105 5.3254216,21.765095 Z M 9.3672606,6.753323 c 0.4074043,0.407402 1.0682824,0.407402 1.4756874,0 0.407734,-0.407405 0.407734,-1.068283 0,-1.475689 z M 5.9309566,1.841396 6.6689656,1.1033901 c -0.407402,-0.40773402 -1.06828,-0.40773402 -1.475683,0 z m -4.911918,3.436273 c -0.40773308,0.407733 -0.40773308,1.068281 0,1.475686 0.407405,0.407403 1.068283,0.407403 1.475687,0 z m 9.8238434,0 L 6.6688346,1.1036201 5.1931496,2.579307 9.3672286,6.753388 Z M 5.1931486,1.1036201 1.0190386,5.277669 2.4947256,6.753355 6.6688006,2.579274 Z"}),s.jsx("path",{className:"styled info",d:"M 12.896987,13.468751 H 8.5801856 L 12.896987,6.982244 v 4.316803 h 4.316803 l -4.316803,6.486504 z"})]}),eD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{className:"styled info",d:"M 11.845703 5.453125 L 11.845703 11.003906 C 11.845703 11.603796 11.357701 12.089844 10.757812 12.089844 L 5.3105469 12.089844 L 5.3105469 17.640625 C 5.3105469 18.173432 5.6950678 18.614569 6.2011719 18.707031 L 11.947266 18.707031 L 11.947266 13.175781 C 11.947266 12.575891 12.435268 12.089844 13.035156 12.089844 L 18.578125 12.089844 L 18.578125 6.4550781 C 18.534873 5.8982245 18.07655 5.4580759 17.509766 5.453125 L 11.845703 5.453125 z "}),s.jsx("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),s.jsx("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"})]}),tD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),s.jsx("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"}),s.jsx("path",{className:"styled info",d:"M 6.3870283,5.4529718 C 5.7915885,5.4581562 5.3102618,5.9415596 5.3102618,6.5382239 v 3.3792726 h -0.00895 v 2.1723885 h 0.00895 v 5.55166 c 0,0.532807 0.3839722,0.973936 0.8900763,1.066398 H 17.695427 c 0.478802,-0.08745 0.843595,-0.488296 0.88206,-0.982479 V 6.4543075 C 18.534235,5.8974539 18.075991,5.4579227 17.509207,5.4529718 Z"})]}),nD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 19.121621,6.5507223 v 2.638672 h 0.386719 0.701171 v 0.695313 2.6386707 4.582031 2.640625 0.693359 H 19.50834 16.869668 12.291543 9.6528698 8.9536488 v -0.693359 -0.636719 h -2.640625 v 2.650391 c 0,0.04555 0.00331,0.09041 0.00781,0.134765 0.0045,0.04436 0.010741,0.08791 0.019531,0.13086 0.01758,0.0859 0.042792,0.169117 0.076172,0.248047 0.06677,0.157862 0.163813,0.298578 0.283203,0.417968 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562532 6.90039 3.337891 c 0.728732,0 1.320312,-0.589625 1.320312,-1.318359 V 18.425721 14.677675 11.34369 11.203065 7.8690823 c 0,-0.728735 -0.59158,-1.31836 -1.320312,-1.31836 z"}),s.jsx("path",{className:"styled info",d:"m 2.7801023,1.3044689 c -0.752638,0.0065 -1.361038,0.617579 -1.361038,1.371768 v 4.271422 h -0.01138 v 2.745913 h 0.01138 v 7.0173311 c 0,0.673471 0.485343,1.23106 1.125061,1.347933 H 17.073983 c 0.605208,-0.110538 1.066309,-0.61721 1.114929,-1.241859 V 2.5701669 c -0.05467,-0.703869 -0.633894,-1.25944 -1.350312,-1.265698 z"})]}),oD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 7.7499822,5.7341962 c -0.728735,0 -1.320313,0.589625 -1.320313,1.31836 v 3.3339868 3.482422 3.333984 0.40625 3.333984 c 0,0.04555 0.0033,0.09041 0.0078,0.134766 0.0045,0.04436 0.01074,0.08791 0.01953,0.13086 0.01758,0.0859 0.04279,0.169116 0.07617,0.248046 0.06677,0.157862 0.163813,0.298579 0.283203,0.417969 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562498 6.900391 3.33789 c 0.728732,0 1.320313,-0.589626 1.320313,-1.31836 V 17.609198 13.861151 10.527167 10.386542 7.0525552 c 0,-0.728735 -0.591581,-1.31836 -1.320313,-1.31836 h -3.33789 z m 1.320313,2.638672 h 0.699218 2.6386718 4.578125 2.638672 0.701172 v 0.695312 2.6386748 4.582032 2.640625 0.693359 H 19.624982 16.98631 12.408185 9.7695132 9.0702952 v -0.693359 -2.640625 -2.419922 -2.16211 -2.6386748 z"}),s.jsx("path",{className:"styled info",d:"M 2.884418,1.1177875 C 2.13178,1.1242875 1.52309,1.7366454 1.52309,2.4908334 v 4.271485 H 1.51332 v 2.746094 h 0.00977 v 7.0175756 c 0,0.673471 0.487235,1.230784 1.126953,1.347656 h 2.603516 v -5.099609 h -0.00977 v -2.746092 h 0.00977 V 5.7564594 c 0,-0.75419 0.60869,-1.364594 1.361328,-1.371094 H 18.294575 V 2.3834124 C 18.239905,1.6795434 17.659431,1.1240455 16.943013,1.1177875 Z"})]}),N7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 23.999882,4.3309515 C 23.997503,4.0907208 23.966582,3.8338404 23.883334,3.6055023 23.759651,3.2748878 23.626454,3.0441711 23.400494,2.7730196 23.115071,2.4305125 22.65126,2.1522254 22.213612,2.0642201 22.00668,2.0237852 21.799749,2 21.58806,2 21.326423,2 21.064785,2 20.803148,2 20.306037,2 19.811304,2 19.314193,2 18.64345,2 17.972707,2 17.301964,2 16.512294,2 15.722625,2 14.930577,2 14.076688,2 13.222798,2 12.368909,2 11.503127,2 10.637345,2 9.771563,2 8.9581085,2 8.144654,2 7.3311994,2 6.6223999,2 5.9136003,2 5.2024222,2 4.6529837,2 4.1035451,2 3.5541065,2 3.2211134,2 2.8881203,2 2.5551273,2 2.4861503,2 2.4195515,2 2.3505744,2 1.7250231,2.0023785 1.0947148,2.2473663 0.66182375,2.7040425 0.23368979,3.1535831 0.00297315,3.7386996 5.9463e-4,4.3594938 c 0,0.092762 0,0.1879032 0,0.2806656 0,0.4352695 0,0.8705391 0,1.3058086 0,0.6802573 0,1.3605146 0,2.0431504 0,0.8277256 0,1.6530726 0,2.4807986 0,0.863403 0,1.724428 0,2.587832 0,0.799183 0,1.598367 0,2.395171 0,0.632687 0,1.262996 0,1.895682 0,0.361536 0,0.723071 0,1.084606 0,0.06898 -0.00237852,0.140333 0.00237852,0.20931 0.03329931,0.587495 0.24498777,1.101256 0.6374439,1.536526 0.0451919,0.04995 0.0927624,0.09514 0.14508984,0.135575 0.12368314,0.0999 0.25212331,0.20931 0.39483461,0.287802 0.2045529,0.114169 0.4376481,0.211688 0.6707432,0.249744 0.3044509,0.04995 0.5708453,0.05471 0.8729176,0.05471 0.3900776,0 0.7801552,0 1.1678543,0 0.592252,0 1.184504,0 1.776756,0 0.7397203,0 1.4794406,0 2.2167825,0 0.8348612,0 1.6673439,0 2.5022049,0 0.865782,0 1.729186,0 2.594968,0 0.844375,0 1.68875,0 2.530747,0 0.765884,0 1.534147,0 2.300031,0 0.632687,0 1.267752,0 1.900439,0 0.447162,0 0.891946,0 1.339108,0 0.197417,0 0.397213,0 0.59463,0 0.176011,0 0.356779,-0.02854 0.528032,-0.05946 0.22596,-0.04044 0.454298,-0.137954 0.651715,-0.252123 0.135576,-0.07849 0.261638,-0.183146 0.380564,-0.280666 0.05471,-0.04519 0.109412,-0.09276 0.156982,-0.147468 0.404349,-0.461433 0.62793,-1.008493 0.630309,-1.626909 0,-0.278287 0,-0.558953 0,-0.83724 0,-0.575602 0,-1.148826 0,-1.724428 0,-0.770641 0,-1.541282 0,-2.311924 0,-0.856268 0,-1.712535 0,-2.568803 0,-0.841997 0,-1.683994 0,-2.528369 0,-0.7254495 0,-1.4508987 0,-2.1763479 0,-0.5066252 0,-1.0132504 0,-1.5198755 0.0048,-0.1807677 0.0048,-0.3615354 0.0048,-0.5423031 0,-0.3044508 -0.133198,-0.6255512 -0.347265,-0.8419967 -0.206931,-0.2069315 -0.544681,-0.3615354 -0.841996,-0.3472643 -0.30683,0.014271 -0.625552,0.1141691 -0.841997,0.3472643 -0.214067,0.2330951 -0.347264,0.5185177 -0.347264,0.8419967 0,0.4804615 0,0.9585444 0,1.4390059 0,1.1416905 0,2.2833806 0,3.4250716 0,1.379543 0,2.761464 0,4.141007 0,1.184504 0,2.369008 0,3.553512 0,0.556574 0.0024,1.115527 0,1.672101 0,0.05946 -0.0048,0.118926 -0.01189,0.178389 0.01427,-0.104655 0.02854,-0.211689 0.04281,-0.316344 -0.01427,0.09514 -0.04043,0.185525 -0.07611,0.27353 0.04044,-0.09514 0.08087,-0.190281 0.118926,-0.283044 -0.04044,0.09514 -0.09276,0.183146 -0.156983,0.266395 0.06184,-0.08087 0.123683,-0.159361 0.185525,-0.240231 -0.05946,0.07136 -0.123683,0.137954 -0.195039,0.195039 0.08087,-0.06184 0.159361,-0.123683 0.240231,-0.185525 -0.08325,0.06422 -0.171254,0.114169 -0.266394,0.156983 0.09514,-0.04043 0.190281,-0.08087 0.283044,-0.118927 -0.08801,0.03568 -0.180768,0.05946 -0.27353,0.07611 0.104655,-0.01427 0.211688,-0.02854 0.316343,-0.04281 -0.211688,0.02616 -0.432891,0.01189 -0.646958,0.01189 -0.463812,0 -0.927624,0 -1.393814,0 -0.694528,0 -1.389057,0 -2.083585,0 -0.85389,0 -1.710157,0 -2.564047,0 -0.934759,0 -1.86714,0 -2.801899,0 -0.941894,0 -1.886168,0 -2.8280624,0 -0.8776746,0 -1.7553493,0 -2.6330239,0 -0.7397203,0 -1.4794407,0 -2.219161,0 -0.5280319,0 -1.0560638,0 -1.5840956,0 -0.2426093,0 -0.4852185,0 -0.7254493,0 -0.061841,0 -0.1236831,-0.0048 -0.1855247,-0.01189 0.104655,0.01427 0.2116885,0.02854 0.3163435,0.04281 -0.095141,-0.01427 -0.1855248,-0.04043 -0.2735301,-0.07611 0.095141,0.04043 0.1902818,0.08087 0.2830441,0.118927 -0.095141,-0.04043 -0.1831462,-0.09276 -0.2663944,-0.156983 0.08087,0.06184 0.159361,0.123683 0.2402307,0.185525 -0.071356,-0.05946 -0.1379543,-0.123683 -0.1950388,-0.195039 0.061842,0.08087 0.1236831,0.159361 0.1855247,0.240231 -0.06422,-0.08325 -0.114169,-0.171254 -0.1569824,-0.266395 0.040435,0.09514 0.08087,0.190282 0.1189261,0.283044 -0.035678,-0.088 -0.059463,-0.180767 -0.076113,-0.27353 0.014271,0.104655 0.028542,0.211689 0.042813,0.316344 -0.021407,-0.168875 -0.011893,-0.342507 -0.011893,-0.513761 0,-0.342507 0,-0.687393 0,-1.0299 0,-1.139312 0,-2.278624 0,-3.417936 0,-1.386678 0,-2.775735 0,-4.162414 0,-1.194018 0,-2.3904142 0,-3.5844322 0,-0.5637097 -0.00238,-1.1250409 0,-1.6887506 0,-0.059463 0.00476,-0.1189261 0.011893,-0.1783892 -0.014271,0.104655 -0.028542,0.2116885 -0.042813,0.3163434 0.014271,-0.095141 0.040435,-0.1855247 0.076113,-0.27353 -0.040435,0.095141 -0.08087,0.1902818 -0.1189261,0.2830441 0.040435,-0.095141 0.092762,-0.1831462 0.1569824,-0.2663944 -0.061842,0.08087 -0.1236831,0.1593609 -0.1855247,0.2402307 0.059463,-0.071356 0.1236831,-0.1379543 0.1950388,-0.1950388 -0.08087,0.061841 -0.159361,0.1236831 -0.2402307,0.1855247 0.083248,-0.06422 0.1712536,-0.1141691 0.2663944,-0.1569825 -0.095141,0.040435 -0.1902817,0.08087 -0.2830441,0.1189261 0.088005,-0.035678 0.1807677,-0.059463 0.2735301,-0.076113 -0.104655,0.014271 -0.2116885,0.028542 -0.3163435,0.042813 0.2116885,-0.026164 0.432891,-0.011893 0.646958,-0.011893 0.4638118,0 0.9276236,0 1.3938139,0 0.6945284,0 1.3890569,0 2.0835853,0 0.8538894,0 1.7101573,0 2.5640467,0 0.9347591,0 1.86714,0 2.801899,0 0.941895,0 1.886168,0 2.828063,0 0.877674,0 1.755349,0 2.633023,0 0.739721,0 1.479441,0 2.219161,0 0.528032,0 1.056064,0 1.584096,0 0.242609,0 0.485219,0 0.725449,0 0.06184,0 0.123683,0.00476 0.185525,0.011893 -0.104655,-0.014271 -0.211688,-0.028542 -0.316343,-0.042813 0.09514,0.014271 0.185524,0.040435 0.27353,0.076113 -0.09514,-0.040435 -0.190282,-0.08087 -0.283044,-0.1189261 0.09514,0.040435 0.183146,0.092762 0.266394,0.1569825 -0.08087,-0.061842 -0.159361,-0.1236832 -0.240231,-0.1855247 0.07136,0.059463 0.137955,0.1236831 0.195039,0.1950388 -0.06184,-0.08087 -0.123683,-0.159361 -0.185525,-0.2402307 0.06422,0.083248 0.114169,0.1712535 0.156983,0.2663944 -0.04044,-0.095141 -0.08087,-0.1902817 -0.118926,-0.2830441 0.03568,0.088005 0.05946,0.1807677 0.07611,0.27353 -0.01427,-0.1046549 -0.02854,-0.2116884 -0.04281,-0.3163434 0.0071,0.054706 0.01189,0.1070335 0.01189,0.1617395 0.0048,0.3068293 0.130818,0.6231728 0.347264,0.8419968 0.206931,0.2069314 0.544681,0.3615353 0.841997,0.3472642 0.306829,-0.014271 0.625551,-0.1141691 0.841996,-0.3472642 0.211689,-0.2259596 0.352022,-0.5161393 0.347265,-0.8372398 z"}),s.jsx("path",{className:"styled info",d:"m 6.1847518,10.990813 c 0,-1.170233 0,-2.338087 0,-3.5083198 0,-0.1617395 0,-0.3258575 0,-0.487597 C 5.7875387,7.3921094 5.392704,7.786944 4.9954908,8.184157 c 1.1726114,0 2.3476012,0 3.5202126,0 0.1664965,0 0.3329931,0 0.4994896,0 0.3044508,0 0.6255513,-0.133197 0.8419968,-0.347264 C 10.064121,7.6299616 10.218725,7.2922114 10.204454,6.9948962 10.190183,6.6880668 10.090285,6.3693449 9.8571898,6.1528994 9.6240946,5.9388324 9.338672,5.8056352 9.015193,5.8056352 c -1.1726113,0 -2.3476012,0 -3.5202126,0 -0.1664965,0 -0.332993,0 -0.4994896,0 -0.6422009,0 -1.189261,0.5446815 -1.189261,1.189261 0,1.1702328 0,2.3380868 0,3.5083198 0,0.16174 0,0.325858 0,0.487597 0,0.304451 0.1331973,0.625551 0.3472642,0.841997 0.2069315,0.206931 0.5446816,0.361535 0.8419968,0.347264 0.3068294,-0.01427 0.6255513,-0.114169 0.8419968,-0.347264 0.2116885,-0.233095 0.3472642,-0.520896 0.3472642,-0.841997 z"}),s.jsx("path",{className:"styled info",d:"m 17.815724,11.918437 c 0,1.170233 0,2.338087 0,3.50832 0,0.161739 0,0.325857 0,0.487597 0.397214,-0.397213 0.792048,-0.792048 1.189261,-1.189261 -1.172611,0 -2.347601,0 -3.520212,0 -0.166497,0 -0.332993,0 -0.49949,0 -0.304451,0 -0.625551,0.133197 -0.841997,0.347264 -0.206931,0.206931 -0.361535,0.544681 -0.347264,0.841997 0.01427,0.306829 0.114169,0.625551 0.347264,0.841996 0.233096,0.214067 0.518518,0.347265 0.841997,0.347265 1.172612,0 2.347601,0 3.520213,0 0.166496,0 0.332993,0 0.499489,0 0.642201,0 1.189261,-0.544682 1.189261,-1.189261 0,-1.170233 0,-2.338087 0,-3.50832 0,-0.16174 0,-0.325858 0,-0.487597 0,-0.304451 -0.133197,-0.625552 -0.347264,-0.841997 -0.206931,-0.206931 -0.544681,-0.361535 -0.841997,-0.347264 -0.306829,0.01427 -0.625551,0.114169 -0.841996,0.347264 -0.211689,0.233095 -0.347265,0.520896 -0.347265,0.841997 z"})]}),$7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.2645807,10.897934 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.74999998,-0.336 -0.74999998,-0.75 V 3.3979338 c 0,-1.519 1.23099998,-2.74999998 2.74999998,-2.74999998 H 20.514581 c 1.519,0 2.75,1.23099998 2.75,2.74999998 V 20.397934 c 0,1.519 -1.231,2.75 -2.75,2.75 h -7.5 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 7.5 c 0.69,0 1.25,-0.56 1.25,-1.25 V 3.3979338 c 0,-0.69 -0.56,-1.25 -1.25,-1.25 H 3.5145807 c -0.69,0 -1.25,0.56 -1.25,1.25 z"}),s.jsx("path",{d:"m 8.5145807,12.647934 c 0.729,0 1.429,0.29 1.9450003,0.805 0.515,0.516 0.805,1.216 0.805,1.945 v 5 c 0,0.729 -0.29,1.429 -0.805,1.945 -0.5160003,0.515 -1.2160003,0.805 -1.9450003,0.805 h -5 c -0.729,0 -1.429,-0.29 -1.945,-0.805 -0.515,-0.516 -0.80499998,-1.216 -0.80499998,-1.945 v -5 c 0,-0.729 0.28999998,-1.429 0.80499998,-1.945 0.516,-0.515 1.216,-0.805 1.945,-0.805 z m 0,1.5 h -5 c -0.332,0 -0.649,0.132 -0.884,0.366 -0.234,0.235 -0.366,0.552 -0.366,0.884 v 5 c 0,0.332 0.132,0.649 0.366,0.884 0.235,0.234 0.552,0.366 0.884,0.366 h 5 c 0.332,0 0.649,-0.132 0.884,-0.366 0.234,-0.235 0.366,-0.552 0.366,-0.884 v -5 c 0,-0.332 -0.132,-0.649 -0.366,-0.884 -0.235,-0.234 -0.552,-0.366 -0.884,-0.366 z"}),s.jsx("path",{className:"styled info",d:"m 12.544581,12.427934 c -0.292,0.293 -0.768,0.293 -1.06,0 -0.293,-0.292 -0.293,-0.768 0,-1.06 l 5,-5.0000002 c 0.292,-0.293 0.768,-0.293 1.06,0 0.293,0.292 0.293,0.768 0,1.06 z"}),s.jsx("path",{className:"styled info",d:"m 13.514581,7.1479338 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 4 c 0.414,0 0.75,0.336 0.75,0.75 v 4.0000002 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.75,-0.336 -0.75,-0.75 V 7.1479338 Z"})]}),V7=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 21.447994,4.4312275 c 0.607513,0 1.1,0.4924868 1.1,1.1 v 3.6666666 c 0,0.6075131 -0.492487,1.0999999 -1.1,1.0999999 H 6.5368835 c -0.6075131,0 -1.0999999,-0.4924868 -1.0999999,-1.0999999 V 5.5312275 c 0,-0.6075132 0.4924868,-1.1 1.0999999,-1.1 z"}),s.jsx("path",{d:"m 16.559105,13.964561 c 0.607513,0 1.1,0.492487 1.1,1.1 v 3.666666 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 6.5368835 c -0.6075131,0 -1.0999999,-0.492487 -1.0999999,-1.1 v -3.666666 c 0,-0.607513 0.4924868,-1.1 1.0999999,-1.1 z"}),s.jsx("path",{className:"styled info",d:"m 2.1145803,1.1312275 c 0.6075132,0 1.1,0.4924868 1.1,1.1 V 22.031227 c 0,0.607513 -0.4924868,1.1 -1.1,1.1 -0.6075132,0 -1.0999999,-0.492487 -1.0999999,-1.1 V 2.2312275 c 0,-0.6075132 0.4924867,-1.1 1.0999999,-1.1 z"})]}),rD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.12113,4.6308594 c -0.607513,0 -1.1015632,0.4920964 -1.1015632,1.0996094 v 3.6660156 c 0,0.6075126 0.4940502,1.0996096 1.1015632,1.0996096 H 6.529333 10.67972 V 4.6308594 H 6.529333 Z m 10.757808,0 v 5.8652346 h 4.152344 4.408203 c 0.607513,0 1.101563,-0.492097 1.101563,-1.0996096 V 5.7304688 c 0,-0.607513 -0.49405,-1.0996094 -1.101563,-1.0996094 h -4.408203 z"}),s.jsx("path",{d:"m 3.5654659,14.283049 c -0.607513,0 -1.101563,0.492097 -1.101563,1.09961 v 3.666015 c 0,0.607513 0.49405,1.101563 1.101563,1.101563 H 9.9736685 10.680695 V 14.283049 H 9.9736685 Z m 9.3144491,0 v 5.867188 h 0.707031 6.408204 c 0.607513,0 1.101562,-0.49405 1.101562,-1.101563 v -3.666015 c 0,-0.607513 -0.494049,-1.09961 -1.101562,-1.09961 h -6.408204 z"}),s.jsx("path",{className:"styled info",d:"m 11.780306,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),iD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.406197,4.3145814 c -0.607513,0 -1.1,0.492486 -1.1,1.099999 v 3.666667 c 0,0.607513 0.492487,1.0999996 1.1,1.0999996 h 14.911111 c 0.607513,0 1.099999,-0.4924866 1.099999,-1.0999996 v -3.666667 c 0,-0.607513 -0.492486,-1.099999 -1.099999,-1.099999 z"}),s.jsx("path",{d:"m 7.295086,13.847914 c -0.607513,0 -1.1,0.492487 -1.1,1.1 v 3.666666 c 0,0.607513 0.492487,1.1 1.1,1.1 h 10.022222 c 0.607513,0 1.099999,-0.492487 1.099999,-1.1 v -3.666666 c 0,-0.607513 -0.492486,-1.1 -1.099999,-1.1 z"}),s.jsx("path",{className:"styled info",d:"m 21.739611,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),aD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 9.121447,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 17.091421 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 5.45478 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),s.jsx("path",{d:"m 18.65478,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 21.98031 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666667 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),s.jsx("path",{className:"styled info",d:"m 21.95478,1.0803095 c 0.607513,0 1.1,0.4924869 1.1,1.1 0,0.6075131 -0.492487,1.1 -1.1,1.1 h -19.8 c -0.607513,0 -1.1,-0.4924869 -1.1,-1.1 0,-0.6075131 0.492487,-1.1 1.1,-1.1 z"})]}),lD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 10.501613,3.8822204 c 0,-0.607513 -0.492094,-1.101563 -1.099607,-1.101563 H 5.735991 c -0.607513,0 -1.101563,0.49405 -1.101563,1.101563 v 6.4082026 0.707026 h 5.867185 v -0.707026 z m 0,9.3144486 H 4.634428 v 0.707031 6.408204 c 0,0.607513 0.49405,1.101562 1.101563,1.101562 h 3.666015 c 0.607513,0 1.099607,-0.494049 1.099607,-1.101562 V 13.9037 Z"}),s.jsx("path",{d:"m 19.32899,2.4378845 c 0,-0.607513 -0.492097,-1.1015632 -1.09961,-1.1015632 h -3.666015 c -0.607513,0 -1.09961,0.4940502 -1.09961,1.1015632 v 4.408203 4.1503865 H 19.32899 V 6.8460875 Z m 0,10.7578075 h -5.865235 v 4.152344 4.408203 c 0,0.607513 0.492097,1.101563 1.09961,1.101563 h 3.666015 c 0.607513,0 1.09961,-0.49405 1.09961,-1.101563 v -4.408203 z"}),s.jsx("path",{className:"styled info",d:"m 22.945269,12.09706 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 H 2.04527 c -0.607513,0 -1.10000006,0.492487 -1.10000006,1.1 0,0.607513 0.49248706,1.1 1.10000006,1.1 h 19.799999 c 0.607513,0 1.1,-0.492487 1.1,-1.1 z"})]}),sD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 5.45478,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 2.18031 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 14.911112 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),s.jsx("path",{d:"m 14.988113,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 7.069199 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 10.022223 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),s.jsx("path",{className:"styled info",d:"m 2.15478,23.080311 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607514 0.492487,-1.100001 1.1,-1.100001 h 19.8 c 0.607513,0 1.1,0.492487 1.1,1.100001 0,0.607513 -0.492487,1.1 -1.1,1.1 z"})]}),cD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 13.96456,3.575672 c 0.607513,0 1.1,0.492486 1.1,1.1 v 14.911112 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666666 c -0.6075126,0 -1.0999994,-0.492487 -1.0999994,-1.1 V 4.675672 c 0,-0.607514 0.4924868,-1.1 1.0999994,-1.1 z"}),s.jsx("path",{className:"styled info",d:"m 2.2312276,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"}),s.jsx("path",{className:"styled info",d:"m 22.031227,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"})]}),dD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 20.686783,13.964561 c 0,0.607513 -0.492486,1.1 -1.1,1.1 H 4.675671 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 v -3.666666 c 0,-0.6075126 0.492487,-1.0999994 1.1,-1.0999994 h 14.911112 c 0.607514,0 1.1,0.4924868 1.1,1.0999994 z"}),s.jsx("path",{className:"styled info",d:"m 23.131228,2.2312286 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"}),s.jsx("path",{className:"styled info",d:"m 23.131228,22.031228 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"})]}),uD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 7.4442836,6.1414523 C 7.1776305,5.8729824 6.7435071,5.8729824 6.4750135,6.1396336 L 1.3183252,11.276286 C 1.0553061,11.538395 1.0489458,11.9625 1.3037662,12.231902 l 5.1557571,5.4633 c 0.1346942,0.142885 0.3167219,0.214786 0.4987304,0.214786 0.1683697,0 0.3376442,-0.06189 0.4705169,-0.186572 0.274854,-0.260292 0.287598,-0.693507 0.028209,-0.968338 L 2.7590415,11.776889 7.4425348,7.1118018 c 0.26847,-0.266653 0.26847,-0.7007763 0.00182,-0.96927 z"}),s.jsx("path",{d:"M 22.858666,11.617566 17.702909,6.1542664 C 17.443525,5.8794126 17.0094,5.8666685 16.734571,6.1260574 c -0.274854,0.2602919 -0.287599,0.6935068 -0.02821,0.968338 l 4.697936,4.9782216 -4.683492,4.665087 c -0.26847,0.266653 -0.26847,0.700776 -0.0018,0.969269 0.133785,0.134694 0.309429,0.202045 0.485077,0.202045 0.175651,0 0.34948,-0.06644 0.483261,-0.200225 L 22.8431,12.572141 c 0.263018,-0.262108 0.269379,-0.686214 0.01455,-0.955617 z"}),s.jsx("path",{className:"styled info",d:"M 14.852552,2.3717794 C 14.489421,2.2643858 14.108091,2.4727992 14.001617,2.8359342 L 8.8677612,20.299897 c -0.1064841,0.363134 0.1010188,0.743553 0.4641546,0.850937 0.064624,0.01912 0.1292354,0.02821 0.193852,0.02821 0.2966855,0 0.5697212,-0.193851 0.6570922,-0.492371 L 15.316715,3.2227132 C 15.423197,2.85958 15.215694,2.4791604 14.85256,2.3717767 Z"})]}),pD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 2.7366908,1.2208053 c -1.0214438,0 -1.86861981,0.8084813 -1.86861981,1.7832708 V 19.645543 c 0,0.97479 0.84717601,1.78327 1.86861981,1.78327 H 12.76031 l -0.20303,-1.063862 -0.03384,0.0323 -0.142873,-0.751702 H 8.9647936 v -4.75419 h 2.5096614 l -0.227467,-1.18945 H 8.9647936 V 8.9477179 h 4.9817294 v 0.9741612 l 1.246373,0.2170779 V 8.9477179 h 4.981733 v 2.0559631 l 1.855461,0.32113 -0.04324,0.03947 0.0564,0.009 V 3.0041128 c 0,-0.9747894 -0.847176,-1.7832707 -1.86862,-1.7832707 z m 0,1.7832708 H 7.7184235 V 7.7582688 H 2.7366908 Z m 6.2281057,0 H 13.946527 V 7.7582688 H 8.9647965 Z m 6.2281035,0 h 4.981734 V 7.7582688 H 15.1929 Z M 2.7366908,8.9477142 H 7.7184235 V 13.701905 H 2.7366908 Z m 0,5.9436358 h 4.9817327 v 4.754193 H 2.7366908 Z"}),s.jsx("path",{className:"styled info",d:"m 17.863373,19.953554 -2.685067,2.867548 -1.790047,-10.175181 9.845251,1.850034 -2.774573,2.77505 2.774573,2.960054 -2.506066,2.590043 z"})]}),hD=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 16.470703,1.7597656 c -3.00595,-0.06715 -5.352602,2.1826885 -5.490234,2.3203125 L 2.4980469,12.5625 2.5,8.2636719 C 2.4966965,7.8058069 2.1302788,7.4388541 1.671875,7.4355469 1.2082006,7.4327101 0.83311655,7.8070636 0.8359375,8.2675781 l -0.001953,6.3066409 c 0.003309,0.457861 0.37046582,0.824808 0.83203122,0.828125 l 6.2949219,-0.002 c 0.2268179,0.0034 0.4431455,-0.08736 0.59375,-0.242188 0.157568,-0.156086 0.2474887,-0.369538 0.2460938,-0.59375 C 8.797478,14.106588 8.4303344,13.739644 7.96875,13.736328 l -4.2949219,0.002 8.4843749,-8.4824216 c 0.102653,-0.102653 3.908486,-3.9176862 7.560547,-0.265625 4.186678,4.1866776 0.329431,8.0260386 0.263672,8.0917966 l -7.84375,7.84375 c -0.781688,0.78286 0.396306,1.958381 1.177734,1.175781 l 7.84375,-7.843749 C 21.45568,13.962289 26.040293,8.958261 20.896484,3.8144531 19.426928,2.3448967 17.896128,1.7916082 16.470703,1.7597656 Z"})}),fD=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 7.6869782,1.7597656 c 3.0059498,-0.06715 5.3526018,2.1826885 5.4902338,2.3203125 l 8.482422,8.4824219 -0.002,-4.2988281 c 0.0033,-0.457865 0.369721,-0.8248178 0.828125,-0.828125 0.463675,-0.00284 0.838759,0.3715167 0.835938,0.8320312 l 0.002,6.3066409 c -0.0033,0.457861 -0.370466,0.824808 -0.832032,0.828125 l -6.294921,-0.002 c -0.226818,0.0034 -0.443146,-0.08736 -0.59375,-0.242188 -0.157568,-0.156086 -0.247489,-0.369538 -0.246094,-0.59375 0.0033,-0.457818 0.370447,-0.824762 0.832031,-0.828078 l 4.294922,0.002 -8.484375,-8.4824216 C 11.896825,5.1532534 8.0909922,1.3382202 4.4389312,4.9902814 0.25225321,9.176959 4.1095002,13.01632 4.1752592,13.082078 l 7.8437498,7.84375 c 0.781688,0.78286 -0.396306,1.958381 -1.177734,1.175781 L 2.9975252,14.25786 C 2.7020012,13.962289 -1.8826118,8.958261 3.2611972,3.8144531 4.7307532,2.3448967 6.2615532,1.7916082 7.6869782,1.7597656 Z"})}),mD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"}),s.jsx("path",{d:"M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"})]}),gD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.867188,1.6601562 c 0.268232,-0.0099 0.532856,0.027161 0.787109,0.1210938 0.303937,0.1123746 0.570511,0.3115911 0.712891,0.5898438 0.08749,0.1712653 0.04893,0.3700013 -0.04297,0.5742187 -0.15546,0.3450701 -0.428892,0.5686288 -0.757813,0.7578125 -0.08042,0.04623 -0.155484,-0.00416 -0.251953,-0.1308594 C 13.035105,3.2054418 12.692907,2.8989531 12.269531,2.6933594 11.722626,2.4273439 11.250208,2.5683233 10.931641,3.0820313 10.639621,3.5525493 10.496228,4.0780104 10.365234,4.5839844 10.142637,5.442716 9.9974555,6.3174287 9.8457031,7.1835937 9.7907552,7.4979743 9.946054,7.5988786 10.205078,7.5957031 c 0.679622,-0.00771 1.361146,0.00162 2.042969,-0.00391 -0.0982,0.1729953 -0.154765,0.3484265 -0.261719,0.484375 -0.03547,0.045421 -0.0834,0.080352 -0.142578,0.1054687 -0.192898,0.081789 -0.424815,0.058827 -0.664062,0.076172 -0.286247,0.021121 -0.576223,0.036384 -0.865235,0.068359 -0.30666,0.033798 -0.7051075,0.00873 -0.7753905,0.5351562 -0.044397,0.3334766 -0.1026064,0.6745859 -0.171875,1.0039063 -0.085774,0.4074896 -0.1406716,0.8207126 -0.2070312,1.2265626 -0.1339129,0.819155 -0.2827094,1.638784 -0.4609375,2.447266 -0.130955,0.594887 -0.2850923,1.183996 -0.4277344,1.779296 -0.2952398,1.231409 -0.648992,2.445826 -1.21875,3.56836 -0.160516,0.31587 -0.3371768,0.623867 -0.5292969,0.921875 -0.2874564,0.44552 -0.6473592,0.821475 -1,1.230468 -0.4171445,0.483675 -0.9112147,0.892182 -1.4824219,1.181641 -0.4325073,0.219056 -0.8912993,0.382454 -1.3515625,0.3125 -0.660156,-0.100735 -1.2749333,-0.720347 -0.9101562,-1.371094 0.1291698,-0.230175 0.2801456,-0.452743 0.4882812,-0.572265 0.1704247,-0.09786 0.3413131,-0.01809 0.53125,0.136718 0.3395109,0.276371 0.7298685,0.42944 1.1328125,0.525391 0.4949665,0.116918 0.9051575,-0.07614 1.1699219,-0.505859 0.3351487,-0.544032 0.4611101,-1.164498 0.6015625,-1.742188 0.1694882,-0.697288 0.2686538,-1.406696 0.4257812,-2.097656 0.203537,-0.893107 0.321038,-1.797936 0.484375,-2.689453 0.1717492,-0.937131 0.329452,-1.876938 0.4882813,-2.814453 C 7.2157716,10.726316 7.3314387,10.046609 7.4316406,9.3671875 7.4604144,9.1726632 7.4975986,8.9858124 7.53125,8.7851563 7.5858629,8.4637191 7.4284516,8.3677749 7.171875,8.3730469 c -0.2607537,0.00567 -0.5260002,-0.00861 -0.7949219,0 -0.2100703,0.0068 -0.430734,0.052232 -0.5957031,-0.00977 C 5.7141096,8.3379277 5.7129165,8.3058354 5.7695312,8.2207031 5.867873,8.0734302 5.9909981,7.9154087 6.1074219,7.7792969 6.3209291,7.5294779 6.6134436,7.5947817 6.9980469,7.59375 c 0.15382,-4.499e-4 0.3554847,0.02528 0.53125,-0.00195 0.222675,-0.03439 0.2912558,-0.2268586 0.3125,-0.3671875 C 7.9369689,6.6041648 8.1257855,6.0091648 8.3652344,5.421875 8.6991095,4.6035376 9.1722556,3.8752184 9.8066406,3.2636719 9.9792522,3.0971381 10.163328,2.9397829 10.353516,2.7910156 c 0.51527,-0.4029987 1.10343,-0.7577896 1.714843,-0.9726562 0.260195,-0.09149 0.530313,-0.1482961 0.798829,-0.1582032 z"}),s.jsx("path",{className:"styled info",d:"m 20.593801,9.5925389 c 0.04254,-0.0019 0.08513,-0.0028 0.126953,0 0.108321,0.0073 0.20924,0.0313 0.298828,0.07422 0.114943,0.05505 0.232637,0.176683 0.332031,0.285157 0.09768,0.1067151 0.171576,0.2276851 0.210938,0.3593751 0.0819,0.273087 0.02046,0.571159 -0.144532,0.810547 -0.178348,0.260139 -0.459024,0.538504 -0.74414,0.515625 -0.07274,-0.0058 -0.165122,-0.05208 -0.222657,-0.107422 -0.448643,-0.431182 -0.839256,-0.455722 -1.328125,-0.06836 -0.603232,0.477816 -1.044426,1.104066 -1.490234,1.689453 -0.17329,0.227494 -0.290244,0.386345 -0.34375,0.529297 -0.09212,0.246127 -0.019,0.453303 0.111328,0.857422 0.295252,0.915828 0.536566,1.858628 0.888672,2.765625 0.08696,0.223138 0.193305,0.455995 0.355469,0.65625 0.222773,0.275445 0.471577,0.336803 0.785156,0.152344 0.373054,-0.21834 0.656305,-0.544414 0.917969,-0.851563 0.174275,-0.205111 0.234375,-0.253906 0.234375,-0.253906 0,0 0.06389,0.04658 0.248047,0.240235 0.09371,0.09865 0.09585,0.125809 0.01758,0.238281 -0.525383,0.754693 -1.069157,1.458282 -1.828125,1.96289 -0.16141,0.107212 -0.328472,0.195222 -0.50586,0.257813 -0.395643,0.140114 -0.80702,0.151607 -1.121093,-0.09961 -0.08791,-0.06982 -0.170063,-0.151346 -0.236328,-0.238282 -0.233299,-0.305521 -0.420476,-0.686062 -0.53711,-1.05664 -0.18099,-0.573096 -0.358218,-1.151376 -0.52539,-1.728516 -0.03527,-0.121618 -0.06609,-0.243086 -0.09961,-0.367187 -0.0072,-0.02672 -0.04071,-0.356431 -0.265625,-0.351563 -0.06665,0.0015 -0.119113,0.0413 -0.146484,0.06641 -0.195656,0.179449 -0.584031,0.970611 -0.785156,1.244141 -0.280118,0.381 -0.546304,0.770326 -0.830079,1.142578 -0.421568,0.552161 -0.908083,1.145866 -1.539062,1.392578 -0.164094,0.0634 -0.349163,0.106011 -0.517578,0.103516 -0.301449,-0.0046 -0.598849,-0.0984 -0.792969,-0.308594 -0.225815,-0.244421 -0.298796,-0.596613 -0.224609,-0.925781 0.08669,-0.3839 0.304096,-0.824313 0.675781,-0.908203 0.08147,-0.0183 0.201118,-0.018 0.259766,0.0059 0.0082,0.0035 0.01049,0.0034 0.01563,0.0059 0.187819,0.08679 0.343446,0.310851 0.611328,0.382813 0.28767,0.07671 0.554968,-0.03578 0.761718,-0.177734 0.448791,-0.306125 0.783232,-0.727866 1.103516,-1.128907 0.40814,-0.509983 0.775715,-1.050202 1.132813,-1.589843 0.05527,-0.08364 0.146588,-0.221098 0.08594,-0.408204 -0.300915,-0.921893 -0.557436,-1.867035 -0.894531,-2.785156 -0.05639,-0.153888 -0.128386,-0.303936 -0.212891,-0.445312 -0.205,-0.341984 -0.459971,-0.398652 -0.791015,-0.181641 -0.377901,0.24719 -0.653096,0.600423 -0.917969,0.923828 -0.03319,0.04037 -0.05515,0.06815 -0.07617,0.0918 -0.0232,-0.02266 -0.04675,-0.04995 -0.08398,-0.08984 -0.164777,-0.176119 -0.211195,-0.232299 -0.212891,-0.261718 -0.0017,-0.02942 0.03847,-0.08935 0.179687,-0.283204 0.37786,-0.518122 0.740184,-1.024838 1.228516,-1.417968 0.342718,-0.276113 0.67152,-0.5318791 1.076172,-0.6542971 0.380453,-0.115231 0.643965,-0.03004 0.888672,0.287109 0.24488,0.3168201 0.350398,0.6996891 0.537109,1.0761721 0.127589,0.257083 0.178498,0.53686 0.263672,0.828125 0.05873,0.200711 0.212809,0.98214 0.412109,1.101563 0.06971,0.04185 0.137378,0.02845 0.183594,0.0078 0.211308,-0.09438 0.552848,-0.74165 0.673828,-0.916016 0.286685,-0.412172 0.583054,-0.814464 0.910157,-1.189453 0.15466,-0.177339 0.324428,-0.342386 0.501953,-0.503906 0.182637,-0.166057 0.354754,-0.330495 0.546875,-0.4609381 0.233979,-0.158539 0.544018,-0.281462 0.841797,-0.294921 z"})]}),yD=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 18.389839,21.43332 H 4.5479552 A 0.76899357,0.62936313 0 0 1 3.9158424,20.445851 L 10.533799,12.622237 3.9158424,4.7986349 A 0.76899357,0.62936313 0 0 1 4.5479552,3.8111645 H 18.389839 a 0.76899357,0.62936313 0 0 1 0.768992,0.6293631 v 3.146816 a 0.76899381,0.62936332 0 0 1 -1.537987,0 V 5.0698908 H 6.0151952 l 6.0858138,7.1942382 a 0.76899357,0.62936313 0 0 1 0,0.716215 l -6.0858138,7.19425 H 17.620844 v -2.517453 a 0.76899381,0.62936332 0 0 1 1.537987,0 v 3.146817 a 0.76899357,0.62936313 0 0 1 -0.768992,0.629362 z"})}),xD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4.6406587,2 H 18.692805 c 1.824112,0.00341 3.303782,1.4831539 3.307194,3.3071945 V 20.029798 c 4.66e-4,0.522189 -0.209529,1.021995 -0.580278,1.389924 C 21.050238,21.788204 20.551407,21.997765 20.029798,22 H 7.9851008 C 6.8975633,22 6.014899,21.117336 6.0148989,20.029798 V 11.298177 H 3.9702018 C 2.8826644,11.298177 2.0000002,10.415512 2,9.3279746 V 4.6406585 C 1.9999999,3.1823918 3.1823921,1.9999995 4.6406587,2 Z m -0.00196,1.2644579 c -0.6886073,0 -1.3765549,0.4616413 -1.3762008,1.3762006 v 4.681435 c 10e-8,0.3918024 0.3159019,0.7077035 0.7077044,0.7077035 H 6.0148989 V 4.6406585 C 6.0145449,3.7261175 5.3273054,3.2644579 4.6386987,3.2644579 Z m 2.2387766,0.00392 0.033327,0.056852 c 0.2364681,0.3988302 0.3641569,0.852036 0.3665942,1.3154241 v 15.389144 c 0,0.391803 0.3159014,0.707704 0.7077043,0.707704 H 20.029798 c 0.391803,1e-6 0.707704,-0.315901 0.707704,-0.707704 V 5.3130757 c 0,-1.1298234 -0.914874,-2.0446971 -2.044697,-2.044697 z"}),s.jsx("path",{className:"styled info",d:"m 11.783203,7.09375 c 0.368273,0 0.738495,0.096559 1.06836,0.2871094 l 4.666015,2.6894536 c 0.661171,0.382614 1.066406,1.087767 1.066406,1.849609 0,0.739654 -0.382377,1.425022 -1.009765,1.814453 l -4.72461,2.730469 c -0.657431,0.387116 -1.473068,0.385556 -2.132812,-0.002 -0.661063,-0.38095 -1.0664064,-1.083862 -1.0664064,-1.845703 V 9.2285156 c 0,-0.7619467 0.4053474,-1.46671 1.0664064,-1.8476562 C 11.047524,7.1902609 11.415058,7.09375 11.783203,7.09375 Z m 0.002,1.6152344 c -0.08997,0.00192 -0.17745,0.025161 -0.259765,0.068359 -0.161224,0.093237 -0.259766,0.2653146 -0.259766,0.4511718 v 5.3886724 c 0,0.184057 0.09697,0.356194 0.257813,0.447265 0.159466,0.09338 0.356243,0.09525 0.517578,0.0039 l 4.669921,-2.699218 c 0.158801,-0.09297 0.257813,-0.262683 0.257813,-0.447266 0,-0.184591 -0.100631,-0.356052 -0.259766,-0.447266 L 12.041016,8.7773438 c -0.07748,-0.04456 -0.164258,-0.068377 -0.25586,-0.068359 z"})]}),bD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4.640625,2 C 3.1823599,1.9999995 1.9999999,3.1823598 2,4.640625 v 4.6875 c 2e-7,1.087536 0.8831668,1.970703 1.9707031,1.970703 H 6.015625 v 8.730469 C 6.0156251,21.116834 6.8968386,22 7.984375,22 h 3.810547 C 11.475372,21.762421 11.17322,21.501489 10.894531,21.212891 10.737985,21.06173 10.591026,20.901929 10.449219,20.738281 H 7.984375 c -0.3918025,0 -0.7070312,-0.317182 -0.7070312,-0.708984 V 4.640625 C 7.2749065,4.1772374 7.1466241,3.7250017 6.9101562,3.3261719 L 6.8769531,3.2675781 H 18.693359 c 1.129822,-1e-7 2.044922,0.9150996 2.044922,2.0449219 v 5.052734 c 0.1799,0.153336 0.354457,0.313431 0.519531,0.484375 0.27039,0.261087 0.516473,0.542689 0.742188,0.839844 V 5.3066406 C 21.996588,3.4826018 20.51747,2.00341 18.693359,2 Z m -0.00195,1.2636719 c 0.688606,0 1.3765991,0.462413 1.3769531,1.3769531 v 5.388672 H 3.9707031 c -0.3918021,0 -0.7089843,-0.3152294 -0.7089843,-0.7070314 V 4.640625 C 3.2613647,3.7260666 3.9500653,3.2636719 4.6386719,3.2636719 Z"}),s.jsx("path",{d:"m 20.482992,12.175071 c -0.720698,-0.746325 -1.627093,-1.287261 -2.626024,-1.567398 -0.998983,-0.280163 -2.054528,-0.289256 -3.058394,-0.02662 -1.003665,0.262727 -1.91938,0.787907 -2.653077,1.521506 -0.7337,0.733598 -1.258779,1.649312 -1.521506,2.653079 -0.262628,1.003765 -0.253535,2.05931 0.02662,3.058392 0.280161,0.998983 0.821072,1.905376 1.567397,2.626024 0.720698,0.746325 1.627094,1.287261 2.626022,1.567399 0.998984,0.280162 2.054528,0.289256 3.058394,0.02662 1.003665,-0.262725 1.919381,-0.787905 2.653078,-1.521503 0.733702,-0.733594 1.25878,-1.649309 1.521506,-2.653075 0.262628,-1.003766 0.253534,-2.059312 -0.02662,-3.058393 -0.280156,-0.998988 -0.821068,-1.905383 -1.567393,-2.62603 z m -0.824107,7.440694 c -0.764534,0.765413 -1.770754,1.241945 -2.847218,1.34861 -1.076587,0.10666 -2.156781,-0.163219 -3.056638,-0.763634 -0.899858,-0.60043 -1.563691,-1.494301 -1.878374,-2.529331 -0.314679,-1.034979 -0.260774,-2.147088 0.152549,-3.146821 0.413228,-0.999657 1.16043,-1.82524 2.11412,-2.335841 0.953665,-0.510601 2.054902,-0.674806 3.116008,-0.464508 1.061105,0.210285 2.016552,0.782046 2.703431,1.617699 0.686828,0.835753 1.062784,1.883759 1.06366,2.965456 0.002,0.61451 -0.117709,1.223257 -0.352557,1.791197 -0.234746,0.567842 -0.579786,1.083528 -1.01521,1.517099 z"}),s.jsx("path",{className:"styled info",d:"m 19.285761,15.525542 h -2.246906 v -2.246905 c 0,-0.267568 -0.142685,-0.514831 -0.3744,-0.648616 -0.23171,-0.133781 -0.517332,-0.133781 -0.749052,0 -0.231715,0.13378 -0.374402,0.381044 -0.374402,0.648616 v 2.246905 h -2.246902 c -0.267568,0 -0.514832,0.142685 -0.648617,0.374401 -0.133781,0.231711 -0.133781,0.517332 0,0.749051 0.133779,0.231716 0.381044,0.3744 0.648617,0.3744 h 2.246902 v 2.246907 c 0,0.267568 0.142687,0.514829 0.374402,0.648615 0.231711,0.133782 0.517332,0.133782 0.749052,0 0.231715,-0.133779 0.3744,-0.381044 0.3744,-0.648615 v -2.246907 h 2.246906 c 0.267567,0 0.514831,-0.142684 0.648616,-0.3744 0.133782,-0.231711 0.133782,-0.517332 0,-0.749051 -0.13378,-0.231716 -0.381045,-0.374401 -0.648616,-0.374401 z"})]}),vD=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 4.3007812,1.4355469 H 16.400391 c 0.174994,0 0.343836,0.070399 0.46875,0.1953125 l 5.5,5.5 c 0.124808,0.1247939 0.195312,0.2939152 0.195312,0.46875 l -0.002,12.0996096 c 0,1.576487 -1.286795,2.863281 -2.863281,2.863281 H 4.3007812 c -1.5774391,0 -2.8652343,-1.286169 -2.8652343,-2.863281 V 4.3007812 c 0,-1.5757367 1.2894976,-2.8652343 2.8652343,-2.8652343 z m 0,1.328125 c -0.8504478,0 -1.5351563,0.6876384 -1.5351562,1.5371093 l -0.00195,15.3984378 c 0,0.850447 0.6876385,1.535156 1.5371093,1.535156 l 15.3984378,0.002 c 0.850443,0 1.535156,-0.687587 1.535156,-1.537109 V 7.8769531 L 16.125,2.765625 H 14.865234 L 14.867188,6.5 c 0,0.3638815 -0.301094,0.6640626 -0.666016,0.6640625 H 6.5019531 C 6.1370308,7.1640625 5.8359375,6.8638819 5.8359375,6.5 V 2.7636719 Z m 2.8632813,0.00195 V 5.8359375 H 13.535156 V 2.765625 Z"}),s.jsx("path",{className:"styled info",d:"m 12,10.140625 c 2.236203,0 4.060547,1.824344 4.060547,4.060547 0,2.236201 -1.824345,4.060547 -4.060547,4.060547 -2.2362018,0 -4.0605469,-1.824346 -4.0605469,-4.060547 0,-2.236203 1.824345,-4.060547 4.0605469,-4.060547 z m 0,1.521484 c -1.402733,0 -2.5390625,1.135235 -2.5390625,2.539063 0,1.402733 1.1352355,2.539062 2.5390625,2.539062 1.403806,0 2.539062,-1.136324 2.539063,-2.539062 0,-1.402734 -1.135235,-2.539063 -2.539063,-2.539063 z"})]}),U3=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"})}),Qb=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"}),s.jsx("path",{d:"M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"})]}),wD=e=>(t=>{const{style:n,orientation:o=Kr.Vertical,...r}=t,i=o===Kr.Vertical;return s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...n},className:`scrollbar-button ${i?"vertical":"horizontal"} edge`,...r,children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:s.jsx("path",{style:{transition:"opacity 240ms ease 0s",opacity:t.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})})({style:{cursor:"pointer"},...e}),ev=(e,t,n,o)=>{const{style:r,...i}=e,a=s.jsx(Mr,{component:"div",...i,style:{...r,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:t});return s.jsx(di,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?s.jsx("div",{style:{display:"flex"},children:a}):a})},SD=e=>ev(e,s.jsx(Xj,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Kr.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),CD=e=>ev(e,s.jsx(Ex,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Kr.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),$t=u.memo(u.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return s.jsx(va,{ref:t,sx:{marginLeft:i?"1px":void 0,marginRight:i?"1px":void 0,backgroundColor:"transparent !important",borderColor:a=>a.palette.divider,...o},orientation:n,variant:"middle",flexItem:!0,...r})}));function jp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var q3=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=jp(o,t),i=typeof r=="function";n.push(i?r:()=>jp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)jp(n,t)}},kD=function(){},tv=typeof window<"u",nv=tv?u.useLayoutEffect:u.useEffect,H7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const W7=tv&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(H7),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return nv(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[kD,H7]};u.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return s.jsx(Ae,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],fill:"none"},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),s.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),s.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:s.jsx("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const ED=u.memo(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return s.jsx(Ae,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600]},"& .secondary":{stroke:i=>i.palette.grey[600],fill:"none",opacity:.5},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),s.jsx("path",{className:"primary",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",children:s.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});u.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return s.jsx(Ae,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),s.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),s.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),u.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return s.jsx(Ae,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600],stroke:"none"},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),s.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),s.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),u.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return s.jsx(Ae,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:i=>i.palette.grey[600],opacity:.8,stroke:i=>i.palette.background.paper},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),s.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const MD=u.memo(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...a}=e;return s.jsxs(Ae,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:l=>l.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:rr("_traverse-ellipsis_14l1h_1","animated-icon"),...a,children:[s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"})]})}),TD=s.jsx(ED,{}),t0=u.memo(u.forwardRef((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:a="1200ms",panel:l=!1,transparentBackground:c=!0,icon:d=TD,label:p,...h}=e,f=u.useMemo(()=>typeof p=="string"?s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:p}):p,[p]),g=u.useRef(null),m=u.useMemo(()=>{let v=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[f,d]});return l===!0&&(v=s.jsx(Mi,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:b=>b.palette.info.light,color:b=>b.palette.info.contrastText,paddingLeft:b=>b.spacing(2),paddingRight:b=>b.spacing(2),paddingTop:b=>b.spacing(2),paddingBottom:b=>b.spacing(1),rowGap:b=>b.spacing(1),borderRadius:b=>`${b.shape.borderRadius}px`,boxShadow:b=>b.shadows[2],"& .primary":{background:b=>`${ht(b.palette.info.contrastText,.9)} !important`,boxShadow:b=>`0 0 0 1px ${b.palette.mode==="dark"?b.palette.text.secondary:b.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:v})),s.jsx(Ae,{ref:q3([g,t]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:c?.001:1,transitionProperty:"opacity",transitionDelay:a,transitionDuration:"320ms",transitionTimingFunction:"ease-in",overflow:"hidden",outline:"none",width:"100%",height:"100%",zIndex:99999,"&.animating":{opacity:1},"&.animating-exit":{opacity:0,transition:"opacity 210ms"},...n,...o},...h,children:s.jsxs(Ae,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[s.jsx(Ae,{className:"backdrop",sx:{opacity:b=>c?1.5*b.palette.action.disabledOpacity:void 0,background:b=>c?void 0:b.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:b=>`${b.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),v]})})},[n,l]),y=u.useRef(!1),x=u.useRef(!1);return nv(()=>{if(g.current&&!y.current&&!x.current){if(x.current=!0,g.current.classList.contains("animatable")&&!g.current.classList.contains("animating")){let v=!1;const b=()=>{x.current&&(y.current=!0,x.current=!1,v=!0,r?.())};g.current&&g.current.addEventListener("transitionrun",b,{once:!0,capture:!0,passive:!0}),x.current&&g.current&&(window.getComputedStyle(g.current,null).opacity,g.current.classList.add("animating")),setTimeout(()=>{!v&&x.current&&g.current&&(g.current?.removeEventListener("transitionrun",b),b())},100)}else y.current=!0,x.current=!1,r?.();return()=>{}}},[g.current]),u.useEffect(()=>()=>{y.current&&(g.current?.classList.remove("animating"),y.current=!1,x.current=!1,i?.())},[]),m}));t0.displayName="LoadingPanel";const _D=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,jD=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,U7=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},K3=u.memo(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=u.useState(null);if(!e?.stack)return null;const i=(d=>{const p=[],h=(f,g=0)=>{f&&(p.push({error:f,depth:g}),f.cause&&f.cause instanceof Error&&h(f.cause,g+1))};return h(d),p.reverse()})(e).reverse(),a=[];i.forEach(({error:d},p)=>{const h=(d.stack||"").split(`
|
|
142
|
+
`).filter(Boolean).map(f=>{let g=f.match(_D);if(g){const[,m="",y,x,v,b]=g;return{line:`at ${m?m+" ":""}${y}`,location:`${U7(x).split(/[\\/]/).pop()}:${v}:${b}`}}if(g=f.match(jD),g){const[,m="",y,x,v]=g,b=U7(y),w=`${b.split(/[\\/]/).pop()}:${x}:${v}`;return{line:`at ${m?m+" ":""}${w}`,location:b!==w?`${b}:${x}:${v}`:void 0}}return{line:f.trim()}});h.length&&(a.push({line:p?`Caused by: ${h[0].line}`:h[0].line,isBoundary:!0}),a.push(...h.slice(1)))});const l=t?a.slice(0,t):a,c=t&&a.length>t;return s.jsxs(Ae,{sx:{width:"100%",mt:1},children:[s.jsxs(Ae,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[s.jsxs(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),s.jsx(Ae,{sx:{flex:1}}),o&&s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),s.jsx(Mr,{size:"small",onClick:async()=>{try{let d=0;const p=a.map(h=>{if(h.isBoundary)return d=0,h.line;d++;let f=h.location&&h.line!==h.location?`${h.line} (${h.location})`:h.line;return d>=1&&(f=` ${f}`),f}).join(`
|
|
143
|
+
`);await navigator.clipboard.writeText(p),r("Copied!"),setTimeout(()=>r(null),2e3)}catch(d){r("Can't copy!"),console.warn("Failed to copy stack trace:",d)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:s.jsx(Qj,{sx:{fontSize:"0.875rem"}})}),s.jsx(Mr,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:s.jsx(Yj,{sx:{fontSize:"0.875rem"}})})]}),s.jsxs(Ae,{sx:{mt:1,backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:1,p:1,maxHeight:"300px",overflow:"auto",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.4},children:[l.map((d,p)=>d.isBoundary?s.jsx(Ae,{sx:{py:1,mt:p>0?1:0,mb:.5,borderTop:p>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:h=>d.isBoundary?h.palette.text.primary:h.palette.text.secondary,display:"block"},children:d.line})},`error-${p}`):s.jsxs(Ae,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:p+1}),s.jsxs(Ae,{sx:{flex:1,overflow:"hidden"},children:[s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:d.line}),d.location&&d.line!==d.location&&s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:d.location})]})]},`stack-${p}`)),c&&s.jsxs(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",a.length-t," more frames"]})]})]})});K3.displayName="StackTrace";const ov=u.memo(u.forwardRef((e,t)=>{const{sx:n,icon:o=s.jsx(eR,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:a=!1,...l}=e,c=u.useMemo(()=>((d,p=!1)=>{if(u.isValidElement(d))return d;if(d instanceof Error)return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:d.message}),d.cause?s.jsxs(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",d.cause instanceof Error?d.cause.message:String(d.cause)]}):null,!p&&s.jsx(K3,{error:d,hideLineNumbers:!0})]});const h=d==="string"?d:`Unknown Error: ${String(d)}`;return s.jsx(Tn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:h})})(r,i),[r,i,a]);return u.useMemo(()=>s.jsx(Ae,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...l,children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[s.jsx(Ae,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:d=>`${d.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),s.jsx(Mi,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:d=>d.palette.error.light,color:d=>d.palette.error.contrastText,paddingLeft:d=>d.spacing(2),paddingRight:d=>d.spacing(2),paddingTop:d=>d.spacing(2),paddingBottom:d=>d.spacing(2),borderRadius:d=>`${d.shape.borderRadius}px`,boxShadow:d=>d.shadows[2],"& .primary":{background:d=>`${d.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:d=>d.spacing(2),width:"100%",maxWidth:"600px"},children:s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:d=>d.spacing(2)},children:[o,c]})})})]})}),[n])}));ov.displayName="ErrorPanel";const rv=u.memo(u.forwardRef((e,t)=>{const{chips:n,sx:o,...r}=e,i=u.useMemo(()=>{if(!n)return null;let a=null;a=Array.isArray(n)?n:[n];const l=[];for(let c=0;c<a.length;c++){const d=a[c];let p=null;typeof d=="string"?p=s.jsx(eT,{label:d,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+c):u.cloneElement(d,{key:"chip-"+c}),l.push(p)}return l},[n]);return s.jsx(Ae,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var ch="top",Ud="bottom",dh="right",iv="left",RD=[ch,Ud,dh,iv],av="viewport",_0="popper";function Sl(e){return e?(e.nodeName||"").toLowerCase():null}function Ia(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cs(e){return e instanceof Ia(e).Element||e instanceof Element}function ks(e){return e instanceof Ia(e).HTMLElement||e instanceof HTMLElement}function uh(e){return typeof ShadowRoot<"u"&&(e instanceof Ia(e).ShadowRoot||e instanceof ShadowRoot)}var mc=Math.max,q7=Math.min,K7=Math.round;function ph(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lv(){return!/^((?!chrome|android).)*safari/i.test(ph())}function G3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&ks(e)&&(r=e.offsetWidth>0&&K7(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&K7(o.height)/e.offsetHeight||1);var a=(Cs(e)?Ia(e):window).visualViewport,l=!lv()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,h=o.height/i;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function Za(e){return Ia(e).getComputedStyle(e)}function ID(e){return["table","td","th"].indexOf(Sl(e))>=0}function Es(e){return((Cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eu(e){return Sl(e)==="html"?e:e.assignedSlot||e.parentNode||(uh(e)?e.host:null)||Es(e)}function G7(e){return ks(e)&&Za(e).position!=="fixed"?e.offsetParent:null}function sv(e){var t=Ia(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z7(e){return G3(Es(e)).left+sv(e).scrollLeft}function cv(e){var t=Za(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function dv(e){return["html","body","#document"].indexOf(Sl(e))>=0?e.ownerDocument.body:ks(e)&&cv(e)?e:dv(Eu(e))}function uv(e,t){var n;t===void 0&&(t=[]);var o=dv(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ia(o),a=r?[i].concat(i.visualViewport||[],cv(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(uv(Eu(a)))}function hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X7(e,t,n){return t===av?hh(function(o,r){var i=Ia(o),a=Es(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,h=0;if(l){c=l.width,d=l.height;var f=lv();(f||!f&&r==="fixed")&&(p=l.offsetLeft,h=l.offsetTop)}return{width:c,height:d,x:p+Z7(o),y:h}}(e,n)):Cs(t)?function(o,r){var i=G3(o,!1,r==="fixed");return i.top=i.top+o.clientTop,i.left=i.left+o.clientLeft,i.bottom=i.top+o.clientHeight,i.right=i.left+o.clientWidth,i.width=o.clientWidth,i.height=o.clientHeight,i.x=i.left,i.y=i.top,i}(t,n):hh(function(o){var r,i=Es(o),a=sv(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=mc(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=mc(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+Z7(o),h=-a.scrollTop;return Za(l||i).direction==="rtl"&&(p+=mc(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:h}}(Es(e)))}const PD={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,o=function(g,m){m===void 0&&(m={});var y,x,v=m,b=v.placement,w=b===void 0?g.placement:b,E=v.strategy,S=E===void 0?g.strategy:E,R=v.boundary,_=R===void 0?"clippingParents":R,A=v.rootBoundary,T=A===void 0?av:A,j=v.elementContext,C=j===void 0?_0:j,k=v.altBoundary,P=k!==void 0&&k,O=v.padding,I=O===void 0?0:O,z=(x=typeof I!="number"?I:(y=I,RD.reduce(function(ne,oe){return ne[oe]=y,ne},{})),Object.assign({},{top:0,right:0,bottom:0,left:0},x)),L=C===_0?"reference":_0,D=g.rects.popper,F=g.elements[P?L:C],B=function(ne,oe,ge,de){var ye=oe==="clippingParents"?function(ce){var we=uv(Eu(ce)),ae=["absolute","fixed"].indexOf(Za(ce).position)>=0&&ks(ce)?function(Y){for(var le=Ia(Y),ee=G7(Y);ee&&ID(ee)&&Za(ee).position==="static";)ee=G7(ee);return ee&&(Sl(ee)==="html"||Sl(ee)==="body"&&Za(ee).position==="static")?le:ee||function(Ie){var Me=/firefox/i.test(ph());if(/Trident/i.test(ph())&&ks(Ie)&&Za(Ie).position==="fixed")return null;var ot=Eu(Ie);for(uh(ot)&&(ot=ot.host);ks(ot)&&["html","body"].indexOf(Sl(ot))<0;){var Ve=Za(ot);if(Ve.transform!=="none"||Ve.perspective!=="none"||Ve.contain==="paint"||["transform","perspective"].indexOf(Ve.willChange)!==-1||Me&&Ve.willChange==="filter"||Me&&Ve.filter&&Ve.filter!=="none")return ot;ot=ot.parentNode}return null}(Y)||le}(ce):ce;return Cs(ae)?we.filter(function(Y){return Cs(Y)&&function(le,ee){var Ie=ee.getRootNode&&ee.getRootNode();if(le.contains(ee))return!0;if(Ie&&uh(Ie)){var Me=ee;do{if(Me&&le.isSameNode(Me))return!0;Me=Me.parentNode||Me.host}while(Me)}return!1}(Y,ae)&&Sl(Y)!=="body"}):[]}(ne):[].concat(oe),ve=[].concat(ye,[ge]),be=ve[0],re=ve.reduce(function(ce,we){var ae=X7(ne,we,de);return ce.top=mc(ae.top,ce.top),ce.right=q7(ae.right,ce.right),ce.bottom=q7(ae.bottom,ce.bottom),ce.left=mc(ae.left,ce.left),ce},X7(ne,be,de));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}(Cs(F)?F:F.contextElement||Es(g.elements.popper),_,T,S),M=G3(g.elements.reference),N=function(ne){var oe,ge=ne.reference,de=ne.element,ye=ne.placement,ve=ye?ye.split("-")[0]:null,be=ye?ye.split("-")[1]:null,re=ge.x+ge.width/2-de.width/2,ce=ge.y+ge.height/2-de.height/2;switch(ve){case ch:oe={x:re,y:ge.y-de.height};break;case Ud:oe={x:re,y:ge.y+ge.height};break;case dh:oe={x:ge.x+ge.width,y:ce};break;case iv:oe={x:ge.x-de.width,y:ce};break;default:oe={x:ge.x,y:ge.y}}var we=ve?["top","bottom"].indexOf(ve)>=0?"x":"y":null;if(we!=null){var ae=we==="y"?"height":"width";switch(be){case"start":oe[we]=oe[we]-(ge[ae]/2-de[ae]/2);break;case"end":oe[we]=oe[we]+(ge[ae]/2-de[ae]/2)}}return oe}({reference:M,element:D,placement:w}),V=hh(Object.assign({},D,N)),U=C===_0?V:M,J={top:B.top-U.top+z.top,bottom:U.bottom-B.bottom+z.bottom,left:B.left-U.left+z.left,right:U.right-B.right+z.right},X=g.modifiersData.offset;if(C===_0&&X){var H=X[w];Object.keys(J).forEach(function(ne){var oe=[dh,Ud].indexOf(ne)>=0?1:-1,ge=[ch,Ud].indexOf(ne)>=0?"y":"x";J[ne]+=H[ge]*oe})}return J}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,a=r.y;let l=t.rects.popper,c=l.width,d=l.height,p=t.placement.split("-")[0],h=p==="left"?"left":"right",f=p==="top"?"top":"bottom";t.modifiersData[n]={width:c-o[h]-i,height:d-o[f]-a}}},OD=[0,2],pv=u.memo(u.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:a=OD,anchorEl:l,anchorPosition:c,onMount:d,onOpening:p,onOpen:h,onClosing:f,onClose:g,resizeOnOverflow:m=!0,...y}=e;if(Array.isArray(r))throw new Error("children can not be an array");const x=z3(),v={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:F}){const{height:B}=F.modifiersData.maxSize;F.styles.popper.maxHeight=B-10+"px"}},b=u.useMemo(()=>{const F=[{name:"offset",options:{offset:a}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return m&&F.unshift(PD,v),F},[m,a]),[w,E]=u.useState(!1),S=u.useRef(null),R=kn(()=>{d?.(P.current,S.current)},[p]),_=kn(p,[p]),A=kn(h,[h]),T=kn(f,[f]),j=kn(()=>{E(!1),g?.()},[g]),[C,k]=u.useState(!1),P=u.useRef(null),O=u.useRef(!0),I=u.useMemo(()=>({onFirstUpdate:()=>{O.current&&(k(!0),R?.(),O.current=!1)}}),[o,w]);u.useEffect(()=>{o&&C?_?.():!o&&w&&T?.(),o&&E(o)},[o,C]);const z=u.useMemo(()=>({getBoundingClientRect:()=>c?new DOMRect(c?.left||0,c?.top||0,0,0):l.getBoundingClientRect()}),[c,l]);u.useImperativeHandle(t,()=>({instance:()=>S.current,element:()=>P.current}),[]);const{getPortalContainer:L}=V3(),D=u.useMemo(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:w&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,w]);return s.jsx(g3,{ref:P,popperRef:S,container:L,anchorEl:z,open:w,role:void 0,popperOptions:I,transition:!0,sx:D,placement:"bottom-start",modifiers:b,...y,children:({TransitionProps:F,placement:B,...M})=>{const{in:N,onEnter:V,onExited:U,...J}=F??{};return s.jsx(Dc,{...J,in:o,onEnter:()=>{V?.(),A()},onExited:()=>{U?.(),j()},timeout:{enter:x.transitions.duration.shorter,exit:0},style:{transformOrigin:B==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:F,placement:B,...M}):r||{}})}})}));pv.displayName="ExhibitPopper";const ji={Toolbar:"toolbar",Menuitem:"menuitem"},Nn=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:a,sx:l,...c}=e;return s.jsx(Ae,{className:rr("menu",a),sx:{display:"flex",flexDirection:"column",...l},...c,children:i})},Y7=(e,t,n)=>s.jsx(Zj,{sx:{marginLeft:e?void 0:t?"-5px":"-3px",marginRight:e?void 0:t?"-5px":"-6px",transform:()=>{let o;return t&&(o=(o?o+" ":"")+"scale(0.8)"),n&&(o=(o?o+" ":"")+"rotate(180deg)"),o}},color:"inherit"}),DD=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,LD=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,fh=function(e,t=null){if(!e)return e;e=e.replace(DD,function(o,r,i,a){return r+r+i+i+a+a});let n=LD.exec(e);return n?t===null?`rgb(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)})`:`rgb(${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)} / ${100*t}%)`:e},fi=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=fh(e),o?Il(e,Math.max(0,Math.min(1,1*t))):Pl(e,Math.max(0,Math.min(1,1.5*t)))};function Z3(e,t){const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:ht((t=cr({track:fi(e.palette.background.paper,.05,e?.palette.mode),thumb:fi(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},t||{})).track,.2),width:"13px",height:"13px"},"&::-webkit-scrollbar-button":{display:"none"},"& .scrollbar-button":{fill:t.thumb,backgroundColor:"transparent",transition:"fill opacity 260ms ease",width:"13px",height:"13px"},"& .scrollbar-button:hover:not([disabled])":{fill:t.active},"& .scrollbar-button:disabled":{opacity:.8},"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track":{},"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece":{},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t.thumb,minHeight:"24px",minWidth:"24px",border:`2px solid ${t.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:t.corner||t.thumb}};return To.getOS()===To.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const hv=u.memo(u.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:a,createPopupPanel:l=Nn,popperProps:c,onMount:d,onClosing:p,onClose:h,onOpening:f,onOpen:g,children:m,sx:y,...x}=e,v=kn(p,[p]),b=kn(h,[h]),w=kn(f,[f]),E=kn(g,[g]),[S,R]=u.useState(),_=u.useRef(null),A=kn((j,C)=>{R(j),d?.(_.current,C)},[d]),T=u.useMemo(()=>{const j={popupContainer:S,floatReference:a,children:m,...x},C=l(j);return s.jsx(Mi,{elevation:8,ref:_,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":k=>Z3(k)},tabIndex:0,children:C})},[l,m,S,a]);return s.jsx(pv,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:A,onOpening:w,onOpen:E,onClosing:v,onClose:b,...c,children:T})}));hv.displayName="ExhibitFloatPanel";const Va=new Map;let Rp=null;const Ha=new Map;let Sa=null;const Ip=(e=null,t,n,o)=>(Sa&&(Sa.fn.clear(),Sa=null),e===0?t:(e===null&&(e=120),Sa={fn:To.debounce(()=>t(),e),setReferences:n,isClose:o},Sa.fn)),fv=(e,t)=>{if(t===null)return;e.add(t);const n=Va.get(t.key);if(!n)return;const o=Ha.get(n);o&&fv(e,o)},J7=e=>{const t=new Set;return fv(t,e),t},pa=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:a,createPopupPanel:l=Nn}=e??{},c=kn(r,[r]),d=kn(i,[i]),[p,h]=u.useState(null),[f,g]=u.useState(!1),[m,y]=u.useState(!1),x=u.useMemo(()=>o===null?(Rp===null&&(Rp={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:H=>null,closeChild:H=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>z(0),floatElement:()=>null,anchorElement:()=>null}),Rp):o,[]),v=u.useMemo(()=>({label:n}),[]),b=u.useRef(null),w=u.useRef(t);u.useEffect(()=>{w.current=t},[t]);const E=H=>{const ne=Va.get(H);let oe=null;return ne&&(oe=Ha.get(ne)?.close(0)),oe},S=()=>E(F.key),[R,_]=u.useState(),A=()=>{if(!p)return void k();const H=new Promise((ne,oe)=>{_(ge=>({resolve:ne,reject:oe}))});return S(),Va.delete(x.key),h(!1),H};u.useEffect(()=>{R&&(R.resolve(),_(null))},[f,m,R]);const T=u.useCallback(()=>{let H=x;for(;H.parent;)H=H.parent;return E(H.key)},[]),j=()=>{if(p)return void k();x&&Ha.get(x.key)?.open(0);const H=Va.get(x.key);H&&H!==v&&Ha.get(H)?.close(0),requestAnimationFrame(()=>{Va.set(x.key,F.key),h(!0)})},[C,k]=u.useReducer(H=>H+1,0),P=u.useCallback(H=>l===null?null:l({closeFloat:z,closeFloatAll:D,...H}),[l]),O=l===null,I=kn((H=120)=>Ip(H,j,new Set([F]),!1)(),[j]),z=kn((H=60)=>Ip(H,A,J7(F),!0)(),[A]),L=kn((H=360)=>Ip(H,S,J7((ne=>{const oe=Va.get(ne.key);return oe&&Ha.get(oe)||null})(F)),!0)(),[S]),D=kn(T,[T]),F=u.useMemo(()=>({key:v,isRoot:!1,label:n,parent:x,onChildVisible:()=>{y(!0)},onChildHidden:()=>{y(!1)},open:I,close:z,closeChild:L,closeAll:D,floatElement:()=>b.current,anchorElement:()=>w.current}),[]);u.useEffect(()=>{Ha.set(v,F)},[F]),u.useEffect(()=>()=>{Ha.delete(v),z(0)},[]),u.useEffect(()=>{p&&!O&&(g(!0),x.onChildVisible())},[p,O]);const B=u.useCallback(H=>{H.which===xr.Escape&&(H.preventDefault(),H.stopPropagation(),z(0))},[]),M=u.useRef(null),N=u.useCallback(()=>{const H=M.current,ne=b.current;H&&ne&&(requestAnimationFrame(()=>{(ne.contains(document.activeElement)||document.activeElement===document.body)&&H.focus()}),M.current=null),d?.()},[]),V=u.useCallback(H=>{b.current=H,H.addEventListener("focus",oe=>{M.current=oe.relatedTarget},{once:!0,passive:!0});const ne=document.activeElement;requestAnimationFrame(()=>{ne===document.activeElement&&H.focus()})},[]),[U,J]=u.useState();u.useEffect(()=>{O&&(p?c?.():p===!1&&d?.()),J(f?s.jsx(hv,{floatReference:F,open:p,label:n,anchorEl:t,onOpening:()=>{c?.(),x.onChildVisible()},onClosing:N,onClose:()=>{g(!1),x.onChildHidden()},onMount:V,popperProps:{onKeyDown:B,onMouseEnter:H=>{p&&Sa?.isClose&&Sa.setReferences.has(F)&&(Sa.fn.clear(),Sa=null,F.closeChild())},...a},createPopupPanel:P}):null)},[f,p,n,O,a,P,C]);const X=kn(H=>{if(Va.size===0)return;let ne=!1;Va.forEach(oe=>{const ge=Ha.get(oe);!ne&&ge&&(ge.floatElement()?.contains?.(H.target)&&(ne=!0),ge.anchorElement()?.contains?.(H.target)&&(ne=!0))}),ne||T()},[T]);return u.useEffect(()=>{if(!p||!x.isRoot)return;const H=ne=>{X(ne)};return document.addEventListener("mousedown",H),document.addEventListener("touchstart",H),document.addEventListener("focus",H),()=>{document.removeEventListener("mousedown",H),document.removeEventListener("touchstart",H),document.removeEventListener("focus",H)}},[p,x]),{component:U,reference:F}},AD=u.memo(u.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...a}=e,l={disabled:r,createPopupPanel:kn(c=>{if(!n||n.length===0)return null;const{popupContainer:d,floatReference:p,...h}=c,f=[];for(let g=0;g<n.length;g++){const m=n[g];m&&f.push(s.jsx(AD,{parentFloat:p,...h,...m},g))}return s.jsxs(Ae,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",f,s.jsx(Gr,{parentFloat:p,children:"Close other children"})]})},[n]),...a};return s.jsx(o===ji.Toolbar?Ui:w1,{...l})})),zD={placement:"right-start"},mv=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:a=zD,label:l,...c}=e;(function(x){if(!x)throw new Error("Invariant failed")})(u.isValidElement(n));const d=n,p=u.useMemo(()=>({...d?.props,...c,onContextMenu:x=>{d?.props?.onContextMenu?.(x),x.isDefaultPrevented()||(c?.onContextMenu?.(x),x.isDefaultPrevented()||(g(x),x.preventDefault()))}}),[c,d?.props]),h=kn(i,[i]),[f,g]=u.useState(null),{reference:m,component:y}=pa({label:l??"contextMenu",popperProps:a,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(f?.clientX||0,f?.clientY||0)},onClose:()=>g(null),createPopupPanel:h});return u.useEffect(()=>{f?m.open(0):m.close(0)},[f]),s.jsxs(s.Fragment,{children:[u.cloneElement(n,p),y]})})),di=u.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=V3();return s.jsx(Sj,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});di.displayName="SimpleTooltip";const j0=u.memo(e=>{const{modifier:t,sx:n,...o}=e;return s.jsx(Ae,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:r=>ht(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>ht(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>ht(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>ht(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>ht(r.palette.action.hover,r.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...o,children:s.jsx(Ae,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),FD=To.getOS()===To.OSType.MacOS||To.getOS()===To.OSType.IOS?"Cmd":"Ctrl",X3=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],a=e;for(let l=0;l<a.length;l++)i.push(X3(a[l],t,n??""+l));return s.jsx(Ae,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:i},n)}if(!e?.key)return null;const o={};for(let i=0;e.modifiers&&i<e.modifiers.length;i++)o[e.modifiers[i]]=!0;const r=[];return o?.ctrl&&(r.push(s.jsx(j0,{modifier:t?"^":s.jsx("div",{style:{paddingRight:"1px"},children:FD})},"ctrl")),r.push("+")),o?.alt&&(r.push(s.jsx(j0,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(s.jsx(j0,{modifier:t?"⇧":s.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(s.jsx(j0,{modifier:t?s.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(s.jsx(j0,{modifier:GP.toPrettyKeyCode(e.key)},"character")),s.jsx(Ae,{sx:{display:"flex",alignItems:"center"},children:r},n)},br=u.memo(u.forwardRef((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:a,maxWidth:l=280,useModifierSymbols:c=!1,children:d,simple:p,componentDisabled:h=!1,sx:f,...g}=e;let m=null;return r&&(m=X3(r,c)),s.jsx(di,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...f},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?s.jsxs(Ae,{sx:{maxWidth:`${l}px`},ref:t,children:[s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",marginBottom:a?"4px":"0px"},children:[s.jsx(Tn,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?s.jsx(rv,{chips:i}):null,m?s.jsx(Ae,{sx:{marginLeft:"8px"}},"leadingSpace"):s.jsx(s.Fragment,{}),m]}),a?s.jsx(Tn,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:a}):s.jsx(s.Fragment,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...g,children:s.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:d})})})),k2=s.jsx(Ns,{}),BD=ze(s.jsx(T3,{})),ii=u.memo(u.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:a,icon:l,tooltipProps:c,children:d,primary:p,sx:h,className:f,onFocus:g,onBlur:m,...y}=e,[x,v]=u.useState(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:_=>`${_.shape.borderRadius}px`,color:_=>p?void 0:_.palette.text.icon??_.palette.action.active,border:_=>`solid ${o?_.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:_=>`${_.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:_=>ht(_.palette.text.primary,_.palette.action.selectedOpacity),border:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`},"&.Mui-disabled":{border:_=>`solid ${o?_.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...h},w={"&:hover:not(.Mui-disabled, [disabled])":{color:_=>_.palette.text.primary,border:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:_=>ht(_.palette.text.primary,_.palette.action.selectedOpacity+_.palette.action.hoverOpacity)},"> .outline-hover":{outline:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:_=>`solid ${_.palette.primary.main} 1px`,border:_=>`1px solid ${_.palette?.primary?.main}`,zIndex:1}};let E=b;r||(E=To.mergeContentful(b,w));const S=u.useMemo(()=>{let _=typeof l=="function"?l():l;return _===null?_:_||(a===void 0?k2:BD)},[l,a]);let R=s.jsxs(Mr,{component:"div",ref:t,className:rr({"Mui-focusVisible":x,"Mui-selected":a},f),onFocus:_=>{v(!0),g?.(_)},onBlur:_=>{v(!1),m?.(_)},size:"small",TouchRippleProps:{center:!1},sx:E,edge:"end",...y,children:[S,d]});if(c)if(c.simple&&c.label&&!c.disabled){const{label:_,description:A,maxWidth:T,shortcut:j,useModifierSymbols:C,componentDisabled:k,simple:P,chips:O,...I}=c;R=s.jsx(di,{disableInteractive:!0,title:_??"",...I,children:s.jsx(Ae,{sx:{display:"flex"},children:R})})}else R=s.jsx(br,{children:R,...c});return R})),ND=e=>e.icon,Gr=u.memo(u.forwardRef((e,t)=>{const{icon:n=k2,renderIcon:o=ND,parentFloat:r,className:i,onFocus:a,selected:l,onBlur:c,onMouseOver:d,onMouseOut:p,onMouseEnter:h,disabled:f,children:g,sx:m,tooltipProps:y,chips:x,primary:v,...b}=e,[w,E]=u.useState(!1),[S,R]=u.useState(!1),_=u.useMemo(()=>{const T=o?.({icon:n,disabled:f,selected:l});return T?s.jsx(T_,{className:rr({"Mui-focusVisible":w,"Mui-hovered":S}),sx:{"& .MuiSvgIcon-root":{color:j=>v?void 0:j.palette.text.icon??j.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:j=>j.palette.text.primary}}},children:T}):null},[o,f,n,w,S,v,l]);let A=s.jsxs(y1,{ref:t,disabled:f,onMouseOver:T=>{d?.(T),T.isDefaultPrevented()||R(!0)},onMouseOut:T=>{p?.(T),T.isDefaultPrevented()||R(!1)},onMouseEnter:T=>{h?.(T),T.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:rr({"Mui-focusVisible":w,"Mui-hovered":S},i),onFocus:T=>{a?.(T),E(!0)},onBlur:T=>{c?.(T),E(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:T=>T.palette.text.primary},color:T=>T.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:T=>T.palette.text.primary},...m},...b,children:[_,g,x?s.jsx(rv,{chips:x}):null]});return y&&(A=s.jsx(br,{children:A,placement:"right-start",...y})),A})),Hs=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...a}=e;return s.jsx(s.Fragment,{children:s.jsx(Tn,{ref:t,variant:i,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:i==="subtitle1"?"2px":void 0,paddingBottom:i==="subtitle1"?"2px":void 0,color:l=>r?void 0:l.palette.text.secondary,...o},...a,children:n})})})),Ui=u.memo(u.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:a,parentFloat:l,createPopupPanel:c,popupProps:d,onPopupOpen:p,onPopupClose:h,quickButtonProps:f,createQuickButton:g,tooltip:m="",createTooltip:y,icon:x,disabled:v,buttonProps:b=To.EmptyObject,disableHover:w,touchRippleRef:E,primary:S,children:R,sx:_,className:A,...T}=e,j=z3(),C=u.useMemo(()=>{const re=(ce,we,ae,Y=ae)=>{const le=typeof o=="boolean"?null:o[ce];return typeof le=="function"?le(we):le||(o?ae:Y)};return{outline:{color:ce=>re("color",ce,ce.palette.divider,"transparent"),hoverColor:ce=>re("hoverColor",ce,ce.palette.text?.primary,ce.palette.divider),focusColor:ce=>re("focusColor",ce,ce.palette?.primary?.main)},active:j.palette.mode==="dark"?j.palette.text.secondary:j.palette.text.primary,text:j.palette.text.icon??j.palette.action.active}},[o,j]),[k,P]=u.useState(!1),[O,I]=u.useState(!1),[z,L]=u.useState(!1),D=u.useRef(null),F=u.useRef(null),B=pa({anchor:D.current,label:r,createPopupPanel:c,parentFloat:l,popperProps:d?.popperProps,onClose:()=>{P(!1),h?.()},onOpen:()=>{P(!0),p?.()}}),M=kn(re=>{a?.(re),B.reference.close(0)},[a,B]),N=kn(()=>{k?B.reference.close(0):B.reference.open(0)},[k,B,l,r]),V=u.useMemo(()=>{const re={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:ee=>C.outline.color(ee),"&.Mui-focusVisible":{border:ee=>`1px solid ${C.outline.focusColor(ee)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>w?"transparent":void 0,backgroundColor:()=>w?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:ee=>C.outline.hoverColor(ee)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:ee=>C.outline.hoverColor(ee)},"&.left":{borderTopLeftRadius:ee=>`${ee.shape.borderRadius}px`,borderBottomLeftRadius:ee=>`${ee.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:ee=>C.outline.color(ee)},"&.right":{borderTopRightRadius:ee=>`${ee.shape.borderRadius}px`,borderBottomRightRadius:ee=>`${ee.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:ee=>`${ee.shape.borderRadius}px !important`}},ce={"&.Mui-selected":{backgroundColor:ee=>ht(ee.palette.primary.main,ee.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ee=>ht(ee.palette.primary.main,ee.palette.action.selectedOpacity+ee.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ee=>ht(ee.palette.primary.main,ee.palette.action.selectedOpacity)}}}},we={maxHeight:"100%","&.Mui-selected":{backgroundColor:ee=>ht(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ee=>ht(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity+ee.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ee=>ht(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:ee=>ee.palette.text.primary},backgroundColor:()=>w?"transparent":void 0,color:ee=>ee.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},ae=To.mergeContentful(we,re),Y=To.mergeContentful(ae,ce),le=To.mergeContentful(we,re);return{quickButtonStyling:ae,openQuickButtonStyling:Y,compoundStyling:le,openCompoundStyling:To.mergeContentful(le,ce)}},[C,w]),U=kn(re=>{const{children:ce,...we}=re;return s.jsx(di,{...we,disableInteractive:!0,children:ce})},[]),J=a||g,X=J&&(f?.tooltip||f?.createTooltip),H=re=>{const{tooltip:ce,createTooltip:we,sx:ae,...Y}=re;let le=s.jsx(Mr,{sx:{...ae},component:"div",...Y});return X&&(le=(we??U)({title:k?"":ce??m,children:s.jsx("div",{children:le})},k)),le},ne={onKeyDown:re=>{re.keyCode===xr.Space?N():re.keyCode===xr.F4||re.keyCode===xr.Down?B.reference.open(0):re.keyCode===xr.Up&&B.reference.close(0)}};let oe=s.jsx(s.Fragment,{});const ge=u.useMemo(()=>typeof x=="function"?x():x,[x]);if(J){let re=k?V.openQuickButtonStyling:V.quickButtonStyling;const ce=(g||H)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{B.reference.parent.closeChild()},onMouseDown:ae=>{ae.button===0&&(ae.preventDefault(),M(ae))},touchRippleRef:E,children:ge,...f,className:rr({"Mui-focusVisible":O||k,"Mui-selected":i,"Mui-hovered":z||k,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},f?.className),sx:{...V.quickButtonStyling,height:"100%",...f?.sx}});let we=Y7(!0,n,k);X&&(we=(y??U)({title:k?"":m,children:we},k)),oe=s.jsxs(s.Fragment,{children:[ce,s.jsx(Mr,{ref:F,component:"div",className:rr({"Mui-selected":k,"Mui-hovered":z||k,"Mui-disabled":v,"Mui-focusVisible":O||k,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...V.quickButtonStyling,...re},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:ae=>{ae.button===0&&(ae.preventDefault(),N())},children:we})]})}else{let re=k?V.openCompoundStyling:V.compoundStyling;oe=s.jsx(ii,{ref:F,tabIndex:-1,disabled:v,size:"small",icon:ge,className:rr({"Mui-selected":k||i,"Mui-hovered":z,"Mui-disabled":v,"Mui-focusVisible":O||k,bordered:!0,left:!0,right:!0}),sx:{...V.quickButtonStyling,...re},onMouseDown:ce=>{ce.button===0&&(ce.preventDefault(),N())},children:Y7(!1,n,k)})}const{className:de,sx:ye,...ve}=b;let be=s.jsx(Ae,{onFocus:()=>I(!0),onBlur:()=>I(!1),onMouseOver:()=>L(!0),onMouseOut:()=>L(!1),...ne,"aria-label":"split button",ref:D,tabIndex:v?void 0:0,className:rr(de,"split-button-root",{"Mui-focusVisible":O||k,"Mui-selected":k||i,"Mui-hovered":z,"Mui-disabled":v}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:o?"1px":"0px",marginRight:o?"1px":"0px",borderRadius:re=>`${re.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:re=>`solid ${re.palette.primary.main} 1px`,zIndex:2},...ye},...ve,children:oe});return X||(be=(y??U)({title:k?"":m,children:be},k)),s.jsxs(Ae,{className:rr(A,"popupIconButton"),ref:t,...T,sx:{zIndex:O||k?2:void 0,display:"flex",alignItems:"center",..._},children:[be,B.component]})}));Ui.displayName="ExhibitPopupIconButton";const $D={},w1=u.memo(u.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:a,popupProps:l=$D,onPopupOpen:c,onPopupClose:d,quickButtonProps:p,createQuickButton:h,tooltip:f="",createTooltip:g,icon:m,disabled:y,touchRippleRef:x,primary:v,children:b,sx:w,...E}=e,[S,R]=u.useState(!1),[_,A]=u.useState(!1),[T,j]=u.useState(!1),[C,k]=u.useState(!1),P=u.useRef(null),O=u.useRef(null),I=u.useMemo(()=>{if(!l)return;const{popperProps:X}=l;return{placement:"right-start",offsets:[-4,-2],...X}},[l]),z=pa({anchor:P.current,label:o,createPopupPanel:a,parentFloat:i,popperProps:I,onClose:()=>{R(!1),d?.()},onOpen:()=>{R(!0),c?.()}}),L=kn(X=>{X.button===0&&(r?.(X),z.reference.close(0))},[r]),D=s.jsx(Ex,{sx:{transform:()=>{}}}),F={"&.Mui-selected":{color:X=>X.palette.text.primary,"& svg * ":{color:X=>X.palette.text.primary}}},B=u.useCallback(X=>{const{children:H,...ne}=X;return s.jsx(di,{...ne,disableInteractive:!0,children:H})},[]),M=r||h,N=X=>{const{tooltip:H,createTooltip:ne,...oe}=X;return s.jsx(Gr,{icon:m,className:rr({"Mui-hovered":T}),sx:{flex:"1 1 100%",...F},...oe,children:o})},V={onFocus:()=>{A(!0)},onBlur:()=>A(!1),onMouseOver:()=>{j(!0)},onMouseLeave:()=>{j(!1)},onMouseEnter:()=>{z.reference.open()},onMouseDown:X=>{X.button===0&&X.preventDefault()}};let U=s.jsx(s.Fragment,{});if(M){const X=(h||N)({tabIndex:-1,disabled:y,onMouseEnter:()=>{z.reference.parent.closeChild()},onMouseDown:H=>{H.button===0&&(H.preventDefault(),L(H))},className:rr("quick-left",{},p?.className),...p});U=s.jsxs(s.Fragment,{children:[X,s.jsx(va,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),s.jsx(y1,{ref:O,className:rr({"Mui-selected":S,"Mui-hovered":T}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:H=>v?void 0:H.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:H=>H.palette.text.primary},...F},tabIndex:-1,disabled:y,...V,children:s.jsx(Ae,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:H=>v?void 0:H.palette.text.icon??H.palette.action.active},onMouseOver:H=>{H.preventDefault(),k(!0)},onMouseLeave:()=>{k(!1)},onClick:H=>{H.preventDefault(),S?z.reference.close():z.reference.open()},children:D})})]})}else U=s.jsxs(Gr,{ref:O,tabIndex:-1,disabled:y,icon:m,className:rr({"Mui-selected":S||n,"Mui-hovered":T}),sx:{flex:"1 1 100%",paddingRight:"0px",...F},onClick:X=>{X.preventDefault(),S?z.reference.close():z.reference.open()},...V,children:[s.jsx("div",{style:{flex:"1 1 100%"},children:o}),s.jsx(Ae,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:X=>v?void 0:X.palette.text.icon??X.palette.action.active},children:D})]});let J=s.jsx(Ae,{"aria-label":"split button",ref:P,tabIndex:y?void 0:0,className:rr({"Mui-disabled":y,"Mui-selected":S,"Mui-focusVisible":_||S,"Mui-hovered":T}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},...w},...E,children:U});return M&&!C&&(p?.tooltip||p?.createTooltip)&&(J=(p?.createTooltip??B)({title:S?"":J??p?.tooltip,children:J},S)),s.jsxs(Ae,{ref:t,sx:{zIndex:_||S?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[J,z.component]})})),gv=u.memo(u.forwardRef((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:a=0,preventFocus:l=!1,...c}=e;return s.jsx(br,{label:r,shortcut:i,children:s.jsx(ii,{ref:t,outlined:!1,tabIndex:a,selected:o,onMouseDown:d=>{l&&d.preventDefault()},onClick:()=>{n?.(!o)},...c})})})),S1=u.memo(u.forwardRef((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...a}=e,l={display:"flex",border:d=>o?`solid ${r?d.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:d=>`${d.shape.borderRadius}px`,backgroundColor:d=>{if(o)return ht(d.palette.text.icon??d.palette.action.active,d.palette.action.selectedOpacity)}};let c=n;return c===null&&(c=s.jsx(Ns,{})),c||(c=s.jsx(T3,{})),c=ze(c),s.jsx(Ae,{ref:t,sx:{...l,...i},...a,children:c})}));function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Er.apply(null,arguments)}function yv(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}var Ci,es,VD={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},xv=u.createContext(void 0);(es=Ci||(Ci={})).SHOW="SHOW",es.HIDE="HIDE",es.UPDATE="UPDATE",es.DESTROY="DESTROY",es.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",es.UNKNOWN="UNKNOWN";var HD={};function WD(e,t){switch(t.type){case Ci.SHOW:var n,o=t.payload,r=o.id,i=o.component,a=o.props,l=o.options;return Er({},e,((n={})[r]={component:i,props:Er({},a,{open:!0}),options:l},n));case Ci.HIDE:var c,d=t.payload.id;return e[d]?Er({},e,((c={})[d]=Er({},e[d],{props:Er({},e[d].props,{open:!1})}),c)):e;case Ci.UPDATE:var p,h=t.payload,f=h.id,g=h.props;return e[f]?Er({},e,((p={})[f]=Er({},e[f],{props:Er({},e[f].props,g)}),p)):e;case Ci.DESTROY:var m=t.payload.id,y=Er({},e);return delete y[m],y;case Ci.DESTROY_BY_ROOT_ID:var x=t.payload.rootId;return Object.keys(e).filter(function(v){return v.split(".")[0]!==x}).reduce(function(v,b){var w;return Er({},v,((w={})[b]=e[b],w))},{});default:throw new Error("Unexpected action")}}var Pp="[ERROR]: Modal ID is missing",bv=function(e){e===void 0&&(e=8);for(var t=[],n=0;n<e;n++)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t.join("")},UD=["open"],qD=["showModal","destroyModalsByRootId"],Q7={disableAutoDestroy:!1};function dd(e){e===void 0&&(e=Q7);var t=Er({},Q7,e).disableAutoDestroy,n=u.useContext(xv)||VD,o=n.showModal,r=n.destroyModalsByRootId,i=yv(n,qD),a=u.useRef(bv(6));return u.useEffect(function(){return function(){!t&&r&&r(a.current)}},[t,r]),Er({showModal:u.useCallback(function(l,c,d){return o(l,c,Er({rootId:a.current,hideOnClose:!0},d))},[o]),destroyModalsByRootId:r},i)}var vv=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Mu=vv.join(","),wv=typeof Element>"u",_l=wv?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qd=!wv&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Tu=function e(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert");return r===""||r==="true"||n&&t&&e(t.parentNode)},Sv=function(e,t,n){if(Tu(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Mu));return t&&_l.call(e,Mu)&&o.unshift(e),o.filter(n)},Cv=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var a=i.shift();if(!Tu(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=e(l.length?l:a.children,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:a,candidates:c})}else{_l.call(a,Mu)&&o.filter(a)&&(n||!t.includes(a))&&r.push(a);var d=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),p=!Tu(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(d&&p){var h=e(d===!0?a.children:d.children,!0,o);o.flatten?r.push.apply(r,h):r.push({scopeParent:a,candidates:h})}else i.unshift.apply(i,a.children)}}return r},kv=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Xa=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||(o=(t=e)==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable"))===""||o==="true")&&!kv(e)?0:e.tabIndex;var t,n,o},KD=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ev=function(e){return e.tagName==="INPUT"},e8=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},_u=function(e,t){return!(t.disabled||Tu(t)||(o=t,Ev(o)&&o.type==="hidden")||function(r,i){var a=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(r).visibility==="hidden")return!0;var c=_l.call(r,"details>summary:first-of-type")?r.parentElement:r;if(_l.call(c,"details:not([open]) *"))return!0;if(a&&a!=="full"&&a!=="legacy-full"){if(a==="non-zero-area")return e8(r)}else{if(typeof l=="function"){for(var d=r;r;){var p=r.parentElement,h=qd(r);if(p&&!p.shadowRoot&&l(p)===!0)return e8(r);r=r.assignedSlot?r.assignedSlot:p||h===r.ownerDocument?p:h.host}r=d}if(function(f){var g,m,y,x,v=f&&qd(f),b=(g=v)===null||g===void 0?void 0:g.host,w=!1;if(v&&v!==f)for(w=!!((m=b)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(b)||f!=null&&(x=f.ownerDocument)!==null&&x!==void 0&&x.contains(f));!w&&b;){var E,S,R;w=!((S=b=(E=v=qd(b))===null||E===void 0?void 0:E.host)===null||S===void 0||(R=S.ownerDocument)===null||R===void 0||!R.contains(b))}return w}(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}return!1}(t,e)||(n=t,n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(r){return r.tagName==="SUMMARY"}))||function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var i=r.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var a=0;a<i.children.length;a++){var l=i.children.item(a);if(l.tagName==="LEGEND")return!!_l.call(i,"fieldset[disabled] *")||!l.contains(r)}return!0}i=i.parentElement}return!1}(t));var n,o},mh=function(e,t){return!(Ev(o=n=t)&&o.type==="radio"&&!function(r){if(!r.name)return!0;var i,a=r.form||qd(r),l=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")i=l(window.CSS.escape(r.name));else try{i=l(r.name)}catch(d){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",d.message),!1}var c=function(d,p){for(var h=0;h<d.length;h++)if(d[h].checked&&d[h].form===p)return d[h]}(i,r.form);return!c||c===r}(n)||Xa(t)<0||!_u(e,t));var n,o},GD=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ZD=function e(t){var n=[],o=[];return t.forEach(function(r,i){var a,l,c,d=!!r.scopeParent,p=d?r.scopeParent:r,h=(l=d,(c=Xa(a=p))<0&&l&&!kv(a)?0:c),f=d?e(r.candidates):p;h===0?d?n.push.apply(n,f):n.push(p):o.push({documentOrder:i,tabIndex:h,item:r,isScope:d,content:f})}),o.sort(KD).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},Mv=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Cv([e],t.includeContainer,{filter:mh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:GD}):Sv(e,t.includeContainer,mh.bind(null,t)),ZD(n)},Tv=function(e,t){return(t=t||{}).getShadowRoot?Cv([e],t.includeContainer,{filter:_u.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Sv(e,t.includeContainer,_u.bind(null,t))},gl=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return _l.call(e,Mu)!==!1&&mh(t,e)},XD=vv.concat("iframe").join(","),Kd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return _l.call(e,XD)!==!1&&_u(t,e)};const YD=Object.freeze(Object.defineProperty({__proto__:null,focusable:Tv,getTabIndex:Xa,isFocusable:Kd,isTabbable:gl,tabbable:Mv},Symbol.toStringTag,{value:"Module"}));function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function JD(e,t,n){return(t=function(o){var r=function(i){if(typeof i!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var l=a.call(i,"string");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(o);return typeof r=="symbol"?r:r+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function n8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(n),!0).forEach(function(o){JD(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t8(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var gc=function(e){return e?.key==="Tab"||e?.keyCode===9},QD=function(e){return gc(e)&&!e.shiftKey},eL=function(e){return gc(e)&&e.shiftKey},o8=function(e){return setTimeout(e,0)},R0=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,n):e},ud=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},tL=[];const nL=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||tL,i=n8({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:QD,isKeyBackward:eL},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(T,j,C){return T&&T[j]!==void 0?T[j]:i[C||j]},c=function(T,j){var C=typeof j?.composedPath=="function"?j.composedPath():void 0;return a.containerGroups.findIndex(function(k){var P=k.container,O=k.tabbableNodes;return P.contains(T)||C?.includes(P)||O.find(function(I){return I===T})})},d=function(T){var j,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=C.hasFallback,P=k!==void 0&&k,O=C.params,I=O===void 0?[]:O,z=i[T];if(typeof z=="function"&&(z=z.apply(void 0,function(D){if(Array.isArray(D))return Op(D)}(j=I)||function(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}(j)||function(D,F){if(D){if(typeof D=="string")return Op(D,F);var B={}.toString.call(D).slice(8,-1);return B==="Object"&&D.constructor&&(B=D.constructor.name),B==="Map"||B==="Set"?Array.from(D):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?Op(D,F):void 0}}(j)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())),z===!0&&(z=void 0),!z){if(z===void 0||z===!1)return z;throw new Error("`".concat(T,"` was specified but was not a node, or did not return a node"))}var L=z;if(typeof z=="string"){try{L=o.querySelector(z)}catch(D){throw new Error("`".concat(T,'` appears to be an invalid selector; error="').concat(D.message,'"'))}if(!L&&!P)throw new Error("`".concat(T,"` as selector refers to no known node"))}return L},p=function(){var T=d("initialFocus",{hasFallback:!0});if(T===!1)return!1;if(T===void 0||T&&!Kd(T,i.tabbableOptions))if(c(o.activeElement)>=0)T=o.activeElement;else{var j=a.tabbableGroups[0];T=j&&j.firstTabbableNode||d("fallbackFocus")}else T===null&&(T=d("fallbackFocus"));if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},h=function(){if(a.containerGroups=a.containers.map(function(T){var j=Mv(T,i.tabbableOptions),C=Tv(T,i.tabbableOptions),k=j.length>0?j[0]:void 0,P=j.length>0?j[j.length-1]:void 0,O=C.find(function(L){return gl(L)}),I=C.slice().reverse().find(function(L){return gl(L)}),z=!!j.find(function(L){return Xa(L)>0});return{container:T,tabbableNodes:j,focusableNodes:C,posTabIndexesFound:z,firstTabbableNode:k,lastTabbableNode:P,firstDomTabbableNode:O,lastDomTabbableNode:I,nextTabbableNode:function(L){var D=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=j.indexOf(L);return F<0?D?C.slice(C.indexOf(L)+1).find(function(B){return gl(B)}):C.slice(0,C.indexOf(L)).reverse().find(function(B){return gl(B)}):j[F+(D?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(T){return T.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function(T){var j=T.activeElement;if(j)return j.shadowRoot&&j.shadowRoot.activeElement!==null?f(j.shadowRoot):j},g=function(T){var j;T!==!1&&T!==f(document)&&(T&&T.focus?(T.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=T,(j=T).tagName&&j.tagName.toLowerCase()==="input"&&typeof j.select=="function"&&T.select()):g(p()))},m=function(T){var j=d("setReturnFocus",{params:[T]});return j||j!==!1&&T},y=function(T){var j=T.target,C=T.event,k=T.isBackward,P=k!==void 0&&k;j=j||ud(C),h();var O=null;if(a.tabbableGroups.length>0){var I=c(j,C),z=I>=0?a.containerGroups[I]:void 0;if(I<0)O=P?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(P){var L=a.tabbableGroups.findIndex(function(V){var U=V.firstTabbableNode;return j===U});if(L<0&&(z.container===j||Kd(j,i.tabbableOptions)&&!gl(j,i.tabbableOptions)&&!z.nextTabbableNode(j,!1))&&(L=I),L>=0){var D=L===0?a.tabbableGroups.length-1:L-1,F=a.tabbableGroups[D];O=Xa(j)>=0?F.lastTabbableNode:F.lastDomTabbableNode}else gc(C)||(O=z.nextTabbableNode(j,!1))}else{var B=a.tabbableGroups.findIndex(function(V){var U=V.lastTabbableNode;return j===U});if(B<0&&(z.container===j||Kd(j,i.tabbableOptions)&&!gl(j,i.tabbableOptions)&&!z.nextTabbableNode(j))&&(B=I),B>=0){var M=B===a.tabbableGroups.length-1?0:B+1,N=a.tabbableGroups[M];O=Xa(j)>=0?N.firstTabbableNode:N.firstDomTabbableNode}else gc(C)||(O=z.nextTabbableNode(j))}}else O=d("fallbackFocus");return O},x=function(T){var j=ud(T);c(j,T)>=0||(R0(i.clickOutsideDeactivates,T)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):R0(i.allowOutsideClick,T)||T.preventDefault())},v=function(T){var j=ud(T),C=c(j,T)>=0;if(C||j instanceof Document)C&&(a.mostRecentlyFocusedNode=j);else{var k;T.stopImmediatePropagation();var P=!0;if(a.mostRecentlyFocusedNode)if(Xa(a.mostRecentlyFocusedNode)>0){var O=c(a.mostRecentlyFocusedNode),I=a.containerGroups[O].tabbableNodes;if(I.length>0){var z=I.findIndex(function(L){return L===a.mostRecentlyFocusedNode});z>=0&&(i.isKeyForward(a.recentNavEvent)?z+1<I.length&&(k=I[z+1],P=!1):z-1>=0&&(k=I[z-1],P=!1))}}else a.containerGroups.some(function(L){return L.tabbableNodes.some(function(D){return Xa(D)>0})})||(P=!1);else P=!1;P&&(k=y({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),g(k||a.mostRecentlyFocusedNode||p())}a.recentNavEvent=void 0},b=function(T){(i.isKeyForward(T)||i.isKeyBackward(T))&&function(j){var C=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=j;var k=y({event:j,isBackward:C});k&&(gc(j)&&j.preventDefault(),g(k))}(T,i.isKeyBackward(T))},w=function(T){var j;((j=T)==null?void 0:j.key)!=="Escape"&&j?.key!=="Esc"&&j?.keyCode!==27||R0(i.escapeDeactivates,T)===!1||(T.preventDefault(),n.deactivate())},E=function(T){var j=ud(T);c(j,T)>=0||R0(i.clickOutsideDeactivates,T)||R0(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},S=function(){if(a.active)return function(T,j){if(T.length>0){var C=T[T.length-1];C!==j&&C._setPausedState(!0)}var k=T.indexOf(j);k===-1||T.splice(k,1),T.push(j)}(r,n),a.delayInitialFocusTimer=i.delayInitialFocus?o8(function(){g(p())}):g(p()),o.addEventListener("focusin",v,!0),o.addEventListener("mousedown",x,{capture:!0,passive:!1}),o.addEventListener("touchstart",x,{capture:!0,passive:!1}),o.addEventListener("click",E,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",w),n},R=function(){if(a.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",x,!0),o.removeEventListener("touchstart",x,!0),o.removeEventListener("click",E,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",w),n},_=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(T){T.some(function(j){return Array.from(j.removedNodes).some(function(C){return C===a.mostRecentlyFocusedNode})})&&g(p())}):void 0,A=function(){_&&(_.disconnect(),a.active&&!a.paused&&a.containers.map(function(T){_.observe(T,{subtree:!0,childList:!0})}))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(T){if(a.active)return this;var j=l(T,"onActivate"),C=l(T,"onPostActivate"),k=l(T,"checkCanFocusTrap");k||h(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(o),j?.();var P=function(){k&&h(),S(),A(),C?.()};return k?(k(a.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(T){if(!a.active)return this;var j,C,k,P=n8({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,R(),a.active=!1,a.paused=!1,A(),C=n,(k=(j=r).indexOf(C))!==-1&&j.splice(k,1),j.length>0&&!j[j.length-1]._isManuallyPaused()&&j[j.length-1]._setPausedState(!1);var O=l(P,"onDeactivate"),I=l(P,"onPostDeactivate"),z=l(P,"checkCanReturnFocus"),L=l(P,"returnFocus","returnFocusOnDeactivate");O?.();var D=function(){o8(function(){L&&g(m(a.nodeFocusedBeforeActivation)),I?.()})};return L&&z?(z(m(a.nodeFocusedBeforeActivation)).then(D,D),this):(D(),this)},pause:function(T){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,T)):this},unpause:function(T){return a.active?(a.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,T)):this},updateContainerElements:function(T){var j=[].concat(T).filter(Boolean);return a.containers=j.map(function(C){return typeof C=="string"?o.querySelector(C):C}),a.active&&h(),A(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(T,j){if(a.paused===T)return this;if(a.paused=T,T){var C=l(j,"onPause"),k=l(j,"onPostPause");C?.(),R(),A(),k?.()}else{var P=l(j,"onUnpause"),O=l(j,"onPostUnpause");P?.(),h(),S(),A(),O?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),oL=wb(nL),rL=wb(YD);var r8,i8,iL=function(){if(i8)return r8;function e(h){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(h)}function t(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!h})()}function n(h){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)})(h)}function o(h,f){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,m){return g.__proto__=m,g})(h,f)}function r(h){var f=function(g){if(e(g)!="object"||!g)return g;var m=g[Symbol.toPrimitive];if(m!==void 0){var y=m.call(g,"string");if(e(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(h);return e(f)=="symbol"?f:f+""}i8=1;var i=u,a=Y5(),l=oL.createFocusTrap,c=rL.isFocusable,d=function(h){function f(y){var x,v,b,w;(function(R,_){if(!(R instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),function(R,_,A){(_=r(_))in R?Object.defineProperty(R,_,{value:A,enumerable:!0,configurable:!0,writable:!0}):R[_]=A}((v=this,w=[y],b=n(b=f),x=function(R,_){if(_&&(e(_)=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(R)}(v,t()?Reflect.construct(b,w||[],n(v).constructor):b.apply(v,w))),"getNodeForOption",function(R){var _,A=(_=this.internalOptions[R])!==null&&_!==void 0?_:this.originalOptions[R];if(typeof A=="function"){for(var T=arguments.length,j=new Array(T>1?T-1:0),C=1;C<T;C++)j[C-1]=arguments[C];A=A.apply(void 0,j)}if(A===!0&&(A=void 0),!A){if(A===void 0||A===!1)return A;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var k,P=A;if(typeof A=="string"&&!(P=(k=this.getDocument())===null||k===void 0?void 0:k.querySelector(A)))throw new Error("`".concat(R,"` as selector refers to no known node"));return P}),x.handleDeactivate=x.handleDeactivate.bind(x),x.handlePostDeactivate=x.handlePostDeactivate.bind(x),x.handleClickOutsideDeactivates=x.handleClickOutsideDeactivates.bind(x),x.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:x.handleDeactivate,onPostDeactivate:x.handlePostDeactivate,clickOutsideDeactivates:x.handleClickOutsideDeactivates},x.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var E=y.focusTrapOptions;for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(S!=="returnFocusOnDeactivate"&&S!=="onDeactivate"&&S!=="onPostDeactivate"&&S!=="checkCanReturnFocus"&&S!=="clickOutsideDeactivates"?x.internalOptions[S]=E[S]:x.originalOptions[S]=E[S]);return x.outsideClick=null,x.focusTrapElements=y.containerElements||[],x.updatePreviousElement(),x}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),x&&o(y,x)}(f,h),g=f,m=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var y=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return y||y!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var y=this.getDocument();y&&(this.previouslyFocusedElement=y.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(y){var x=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,y):this.originalOptions.clickOutsideDeactivates;return x&&(this.outsideClick={target:y.target,allowDeactivation:x}),x}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var y=this,x=function(){var v=y.getReturnFocusNode(),b=!(!y.originalOptions.returnFocusOnDeactivate||v==null||!v.focus||y.outsideClick&&(!y.outsideClick.allowDeactivation||c(y.outsideClick.target,y.internalOptions.tabbableOptions))),w=y.internalOptions.preventScroll,E=w!==void 0&&w;b&&v.focus({preventScroll:E}),y.originalOptions.onPostDeactivate&&y.originalOptions.onPostDeactivate.call(null),y.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(x,x):x()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(y){if(this.focusTrap){y.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var x=!y.active&&this.props.active,v=y.active&&!this.props.active,b=!y.paused&&this.props.paused,w=y.paused&&!this.props.paused;if(x&&(this.updatePreviousElement(),this.focusTrap.activate()),v)return void this.deactivateTrap();b&&this.focusTrap.pause(),w&&this.focusTrap.unpause()}else y.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var y=this,x=this.props.children?i.Children.only(this.props.children):void 0;if(x){if(x.type&&x.type===i.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return i.cloneElement(x,{ref:function(v){var b=y.props.containerElements;x&&(typeof x.ref=="function"?x.ref(v):x.ref&&(x.ref.current=v)),y.focusTrapElements=b||[v]}})}return null}}],m&&function(y,x){for(var v=0;v<x.length;v++){var b=x[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,r(b.key),b)}}(g.prototype,m),Object.defineProperty(g,"prototype",{writable:!1}),g;var g,m}(i.Component),p=typeof Element>"u"?Function:Element;return d.propTypes={active:a.bool,paused:a.bool,focusTrapOptions:a.shape({document:a.object,onActivate:a.func,onPostActivate:a.func,checkCanFocusTrap:a.func,onPause:a.func,onPostPause:a.func,onUnpause:a.func,onPostUnpause:a.func,onDeactivate:a.func,onPostDeactivate:a.func,checkCanReturnFocus:a.func,initialFocus:a.oneOfType([a.instanceOf(p),a.string,a.bool,a.func]),fallbackFocus:a.oneOfType([a.instanceOf(p),a.string,a.func]),escapeDeactivates:a.oneOfType([a.bool,a.func]),clickOutsideDeactivates:a.oneOfType([a.bool,a.func]),returnFocusOnDeactivate:a.bool,setReturnFocus:a.oneOfType([a.instanceOf(p),a.string,a.bool,a.func]),allowOutsideClick:a.oneOfType([a.bool,a.func]),preventScroll:a.bool,tabbableOptions:a.shape({displayCheck:a.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:a.oneOfType([a.bool,a.func])}),trapStack:a.array,isKeyForward:a.func,isKeyBackward:a.func}),containerElements:a.arrayOf(a.instanceOf(p)),children:a.oneOfType([a.element,a.instanceOf(p)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:l},r8=d}();const aL=vb(iL);var a8,l8,I0={exports:{}},s8={},pd={exports:{}},$o={},dl={};function ju(){return l8||(l8=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},dl.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},dl.int=function(e){return parseInt(e,10)},dl.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},dl.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),dl}var c8,d8,Aa={};function gh(){if(d8)return $o;d8=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.addClassName=a,$o.addEvent=function(c,d,p,h){if(!c)return;const f={capture:!0,...h};c.addEventListener?c.addEventListener(d,p,f):c.attachEvent?c.attachEvent("on"+d,p):c["on"+d]=p},$o.addUserSelectStyles=function(c){if(!c)return;let d=c.getElementById("react-draggable-style-el");d||(d=c.createElement("style"),d.type="text/css",d.id="react-draggable-style-el",d.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
145
|
+
`,d.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
146
|
+
`,c.getElementsByTagName("head")[0].appendChild(d)),c.body&&a(c.body,"react-draggable-transparent-selection")},$o.createCSSTransform=function(c,d){const p=r(c,d,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},$o.createSVGTransform=function(c,d){return r(c,d,"")},$o.getTouch=function(c,d){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>d===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>d===p.identifier)},$o.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},$o.getTranslation=r,$o.innerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingTop),d-=(0,e.int)(p.paddingBottom),d},$o.innerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingLeft),d-=(0,e.int)(p.paddingRight),d},$o.matchesSelector=o,$o.matchesSelectorAndParentsTo=function(c,d,p){let h=c;do{if(o(h,d))return!0;if(h===p)return!1;h=h.parentNode}while(h);return!1},$o.offsetXYFromParent=function(c,d,p){const h=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-h.left)/p,y:(c.clientY+d.scrollTop-h.top)/p}},$o.outerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderTopWidth),d+=(0,e.int)(p.borderBottomWidth),d},$o.outerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderLeftWidth),d+=(0,e.int)(p.borderRightWidth),d},$o.removeClassName=l,$o.removeEvent=function(c,d,p,h){if(!c)return;const f={capture:!0,...h};c.removeEventListener?c.removeEventListener(d,p,f):c.detachEvent?c.detachEvent("on"+d,p):c["on"+d]=null},$o.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=ju(),t=function(c){if(typeof WeakMap=="function")var d=new WeakMap;return function(p){if(p&&p.__esModule)return p;var h,f,g={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return g;if(h=d){if(h.has(p))return h.get(p);h.set(p,g)}for(const m in p)m!=="default"&&{}.hasOwnProperty.call(p,m)&&((f=(h=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,m))&&(f.get||f.set)?h(g,m,f):g[m]=p[m]);return g}(c)}(function(){if(c8)return Aa;c8=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.browserPrefixToKey=p,Aa.browserPrefixToStyle=function(h,f){return f?`-${f.toLowerCase()}-${h}`:h},Aa.default=void 0,Aa.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const f=window.document?.documentElement?.style;if(!f||h in f)return"";for(let g=0;g<c.length;g++)if(p(h,c[g])in f)return c[g];return""}function p(h,f){return f?`${f}${function(g){let m="",y=!0;for(let x=0;x<g.length;x++)y?(m+=g[x].toUpperCase(),y=!1):g[x]==="-"?y=!0:m+=g[x];return m}(h)}`:h}return Aa.default=d(),Aa}());let n="";function o(c,d){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(p){return(0,e.isFunction)(c[p])})),!!(0,e.isFunction)(c[n])&&c[n](d)}function r(c,d,p){let{x:h,y:f}=c,g=`translate(${h}${p},${f}${p})`;return d&&(g=`translate(${typeof d.x=="string"?d.x:d.x+p}, ${typeof d.y=="string"?d.y:d.y+p})`+g),g}function i(c){if(c)try{if(c.body&&l(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const d=(c.defaultView||window).getSelection();d&&d.type!=="Caret"&&d.removeAllRanges()}}catch{}}function a(c,d){c.classList?c.classList.add(d):c.className.match(new RegExp(`(?:^|\\s)${d}(?!\\S)`))||(c.className+=` ${d}`)}function l(c,d){c.classList?c.classList.remove(d):c.className=c.className.replace(new RegExp(`(?:^|\\s)${d}(?!\\S)`,"g"),"")}return $o}var u8,Yi={};function p8(){if(u8)return Yi;u8=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Yi.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Yi.createCoreData=function(o,r,i){const a=!(0,e.isNum)(o.lastX),l=n(o);return a?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:l,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},Yi.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},Yi.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:a}=o.props;var l;a=typeof a=="string"?a:{left:(l=a).left,top:l.top,right:l.right,bottom:l.bottom};const c=n(o);if(typeof a=="string"){const{ownerDocument:d}=c,p=d.defaultView;let h;if(h=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(h instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const f=h,g=p.getComputedStyle(c),m=p.getComputedStyle(f);a={left:-c.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(g.marginLeft),top:-c.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(f)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(f)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(a.right)&&(r=Math.min(r,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(r=Math.max(r,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[r,i]},Yi.getControlPosition=function(o,r,i){const a=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!a)return null;const l=n(i),c=i.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(a||o,c,i.props.scale)},Yi.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=ju(),t=gh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Yi}var h8,f8,m8,g8,P0={},Dp={};function y8(){return h8||(h8=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=function(){}),Dp}var lL=function(){if(g8)return I0.exports;g8=1;const{default:e,DraggableCore:t}=(m8||(m8=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),n.default=void 0;var o=function(x){if(typeof WeakMap=="function")var v=new WeakMap;return function(b){if(b&&b.__esModule)return b;var w,E,S={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return S;if(w=v){if(w.has(b))return w.get(b);w.set(b,S)}for(const R in b)R!=="default"&&{}.hasOwnProperty.call(b,R)&&((E=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,R))&&(E.get||E.set)?w(S,R,E):S[R]=b[R]);return S}(x)}(u),r=f(Y5()),i=f(yo),a=function(){if(a8)return pd.exports;function x(b){var w,E,S="";if(typeof b=="string"||typeof b=="number")S+=b;else if(typeof b=="object")if(Array.isArray(b)){var R=b.length;for(w=0;w<R;w++)b[w]&&(E=x(b[w]))&&(S&&(S+=" "),S+=E)}else for(E in b)b[E]&&(S&&(S+=" "),S+=E);return S}function v(){for(var b,w,E=0,S="",R=arguments.length;E<R;E++)(b=arguments[E])&&(w=x(b))&&(S&&(S+=" "),S+=w);return S}return a8=1,pd.exports=v,pd.exports.clsx=v,pd.exports}(),l=gh(),c=p8(),d=ju(),p=f(function(){if(f8)return P0;f8=1,Object.defineProperty(P0,"__esModule",{value:!0}),P0.default=void 0;var x=function(P){if(typeof WeakMap=="function")var O=new WeakMap;return function(I){if(I&&I.__esModule)return I;var z,L,D={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return D;if(z=O){if(z.has(I))return z.get(I);z.set(I,D)}for(const F in I)F!=="default"&&{}.hasOwnProperty.call(I,F)&&((L=(z=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,F))&&(L.get||L.set)?z(D,F,L):D[F]=I[F]);return D}(P)}(u),v=_(Y5()),b=_(yo),w=gh(),E=p8(),S=ju(),R=_(y8());function _(P){return P&&P.__esModule?P:{default:P}}function A(P,O,I){return(O=typeof(z=function(L){if(typeof L!="object"||!L)return L;var D=L[Symbol.toPrimitive];if(D!==void 0){var F=D.call(L,"string");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}(O))=="symbol"?z:z+"")in P?Object.defineProperty(P,O,{value:I,enumerable:!0,configurable:!0,writable:!0}):P[O]=I,P;var z}const T={start:"touchstart",move:"touchmove",stop:"touchend"},j={start:"mousedown",move:"mousemove",stop:"mouseup"};let C=j,k=class extends x.Component{constructor(){super(...arguments),A(this,"dragging",!1),A(this,"lastX",NaN),A(this,"lastY",NaN),A(this,"touchIdentifier",null),A(this,"mounted",!1),A(this,"handleDragStart",P=>{if(this.props.onMouseDown(P),!this.props.allowAnyClick&&typeof P.button=="number"&&P.button!==0)return!1;const O=this.findDOMNode();if(!O||!O.ownerDocument||!O.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:I}=O;if(this.props.disabled||!(P.target instanceof I.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(P.target,this.props.handle,O)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(P.target,this.props.cancel,O))return;P.type!=="touchstart"||this.props.allowMobileScroll||P.preventDefault();const z=(0,w.getTouchIdentifier)(P);this.touchIdentifier=z;const L=(0,E.getControlPosition)(P,z,this);if(L==null)return;const{x:D,y:F}=L,B=(0,E.createCoreData)(this,D,F);(0,R.default)("DraggableCore: handleDragStart: %j",B),(0,R.default)("calling",this.props.onStart),this.props.onStart(P,B)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(I),this.dragging=!0,this.lastX=D,this.lastY=F,(0,w.addEvent)(I,C.move,this.handleDrag),(0,w.addEvent)(I,C.stop,this.handleDragStop))}),A(this,"handleDrag",P=>{const O=(0,E.getControlPosition)(P,this.touchIdentifier,this);if(O==null)return;let{x:I,y:z}=O;if(Array.isArray(this.props.grid)){let D=I-this.lastX,F=z-this.lastY;if([D,F]=(0,E.snapToGrid)(this.props.grid,D,F),!D&&!F)return;I=this.lastX+D,z=this.lastY+F}const L=(0,E.createCoreData)(this,I,z);if((0,R.default)("DraggableCore: handleDrag: %j",L),this.props.onDrag(P,L)!==!1&&this.mounted!==!1)this.lastX=I,this.lastY=z;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const D=document.createEvent("MouseEvents");D.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(D)}}),A(this,"handleDragStop",P=>{if(!this.dragging)return;const O=(0,E.getControlPosition)(P,this.touchIdentifier,this);if(O==null)return;let{x:I,y:z}=O;if(Array.isArray(this.props.grid)){let F=I-this.lastX||0,B=z-this.lastY||0;[F,B]=(0,E.snapToGrid)(this.props.grid,F,B),I=this.lastX+F,z=this.lastY+B}const L=(0,E.createCoreData)(this,I,z);if(this.props.onStop(P,L)===!1||this.mounted===!1)return!1;const D=this.findDOMNode();D&&this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(D.ownerDocument),(0,R.default)("DraggableCore: handleDragStop: %j",L),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,D&&((0,R.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(D.ownerDocument,C.move,this.handleDrag),(0,w.removeEvent)(D.ownerDocument,C.stop,this.handleDragStop))}),A(this,"onMouseDown",P=>(C=j,this.handleDragStart(P))),A(this,"onMouseUp",P=>(C=j,this.handleDragStop(P))),A(this,"onTouchStart",P=>(C=T,this.handleDragStart(P))),A(this,"onTouchEnd",P=>(C=T,this.handleDragStop(P)))}componentDidMount(){this.mounted=!0;const P=this.findDOMNode();P&&(0,w.addEvent)(P,T.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const P=this.findDOMNode();if(P){const{ownerDocument:O}=P;(0,w.removeEvent)(O,j.move,this.handleDrag),(0,w.removeEvent)(O,T.move,this.handleDrag),(0,w.removeEvent)(O,j.stop,this.handleDragStop),(0,w.removeEvent)(O,T.stop,this.handleDragStop),(0,w.removeEvent)(P,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(O)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:b.default.findDOMNode(this)}render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return P0.default=k,A(k,"displayName","DraggableCore"),A(k,"propTypes",{allowAnyClick:v.default.bool,allowMobileScroll:v.default.bool,children:v.default.node.isRequired,disabled:v.default.bool,enableUserSelectHack:v.default.bool,offsetParent:function(P,O){if(P[O]&&P[O].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:v.default.arrayOf(v.default.number),handle:v.default.string,cancel:v.default.string,nodeRef:v.default.object,onStart:v.default.func,onDrag:v.default.func,onStop:v.default.func,onMouseDown:v.default.func,scale:v.default.number,className:S.dontSetMe,style:S.dontSetMe,transform:S.dontSetMe}),A(k,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),P0}()),h=f(y8());function f(x){return x&&x.__esModule?x:{default:x}}function g(){return g=Object.assign?Object.assign.bind():function(x){for(var v=1;v<arguments.length;v++){var b=arguments[v];for(var w in b)({}).hasOwnProperty.call(b,w)&&(x[w]=b[w])}return x},g.apply(null,arguments)}function m(x,v,b){return(v=typeof(w=function(E){if(typeof E!="object"||!E)return E;var S=E[Symbol.toPrimitive];if(S!==void 0){var R=S.call(E,"string");if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(E)}(v))=="symbol"?w:w+"")in x?Object.defineProperty(x,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):x[v]=b,x;var w}class y extends o.Component{static getDerivedStateFromProps(v,b){let{position:w}=v,{prevPropsPosition:E}=b;return!w||E&&w.x===E.x&&w.y===E.y?null:((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:E}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(v){super(v),m(this,"onDragStart",(b,w)=>{if((0,h.default)("Draggable: onDragStart: %j",w),this.props.onStart(b,(0,c.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(b,w)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",w);const E=(0,c.createDraggableData)(this,w),S={x:E.x,y:E.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:_}=S;S.x+=this.state.slackX,S.y+=this.state.slackY;const[A,T]=(0,c.getBoundPosition)(this,S.x,S.y);S.x=A,S.y=T,S.slackX=this.state.slackX+(R-S.x),S.slackY=this.state.slackY+(_-S.y),E.x=S.x,E.y=S.y,E.deltaX=S.x-this.state.x,E.deltaY=S.y-this.state.y}if(this.props.onDrag(b,E)===!1)return!1;this.setState(S)}),m(this,"onDragStop",(b,w)=>{if(!this.state.dragging||this.props.onStop(b,(0,c.createDraggableData)(this,w))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",w);const E={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:S,y:R}=this.props.position;E.x=S,E.y=R}this.setState(E)}),this.state={dragging:!1,dragged:!1,x:v.position?v.position.x:v.defaultPosition.x,y:v.position?v.position.y:v.defaultPosition.y,prevPropsPosition:{...v.position},slackX:0,slackY:0,isElementSVG:!1},!v.position||v.onDrag||v.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:v,bounds:b,children:w,defaultPosition:E,defaultClassName:S,defaultClassNameDragging:R,defaultClassNameDragged:_,position:A,positionOffset:T,scale:j,...C}=this.props;let k={},P=null;const O=!A||this.state.dragging,I=A||E,z={x:(0,c.canDragX)(this)&&O?this.state.x:I.x,y:(0,c.canDragY)(this)&&O?this.state.y:I.y};this.state.isElementSVG?P=(0,l.createSVGTransform)(z,T):k=(0,l.createCSSTransform)(z,T);const L=(0,a.clsx)(w.props.className||"",S,{[R]:this.state.dragging,[_]:this.state.dragged});return o.createElement(p.default,g({},C,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(w),{className:L,style:{...w.props.style,...k},transform:P}))}}n.default=y,m(y,"displayName","Draggable"),m(y,"propTypes",{...p.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),m(y,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(s8)),s8);return I0.exports=e,I0.exports.default=e,I0.exports.DraggableCore=t,I0.exports}();const sL=vb(lL),x8={x:0,y:0},cL=u.memo(u.forwardRef((e,t)=>{const{defaultPosition:n=x8,PaperComponent:o=Mi,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:a=".draggable-title",titleSize:l,rootSize:c,...d}=e,p=u.useRef(null),h=u.useMemo(()=>l&&c?{left:0,top:0,right:c.width-l.width,bottom:c.height-l.height}:null,[l,c]),[f,g]=u.useState(null),[m,y]=u.useState(null),[x,v]=u.useState(null);return u.useLayoutEffect(()=>{!f&&n&&g(n??x8)},[n]),u.useEffect(()=>{h&&f&&y({x:Math.max(0,Math.min(f.x,h.right)),y:Math.max(0,Math.min(f.y,h.bottom))})},[f,h]),s.jsx(sL,{nodeRef:p,handle:a,cancel:'[class*="MuiDialogContent-root"]',position:m,bounds:h??".MuiModal-root",onStop:r,onStart:(b,w)=>{const E=b;v({x:(E.clientX??E.touches?.[0]?.clientX)-w.x,y:(E.clientY??E.touches?.[0]?.clientY)-w.y})},onDrag:(b,w)=>{const E=b,S=E.clientX??E.touches?.[0]?.clientX,R=E.clientY??E.touches?.[0]?.clientY;g({x:S-x.x,y:R-x.y})},children:s.jsx(o,{ref:q3([p,t]),...d})})})),dL={x:"50",y:"50"},_v=u.memo(e=>{const t=function({props:le,name:ee}){return function({props:Ie,name:Me,defaultTheme:ot,themeId:Ve}){let Ce=function(je=pP){return function(Ge=null){const Be=Z.useContext(Xs);return Be&&(ct=Be,Object.keys(ct).length!==0)?Be:Ge;var ct}(je)}(ot);return Ce=Ce[Ve]||Ce,uP({theme:Ce,name:Me,props:Ie})}({props:le,name:ee,defaultTheme:A3,themeId:_3})}({props:e,name:"MuiDialog"}),n=z3(),o={enter:.66*n.transitions.duration.enteringScreen,exit:.66*n.transitions.duration.leavingScreen},{title:r="SheetXL",key:i="draggable-window",onCancel:a,onDone:l,onShow:c,onShown:d,onHide:p,refWindow:h,open:f,autoFocusSel:g,children:m,TransitionComponent:y=px,TransitionProps:x,transitionDuration:v=o,BackdropComponent:b=hx,BackdropProps:w,PaperComponent:E=Mi,PaperProps:S,onBackdropClick:R,sx:_,className:A,onMouseDown:T,initialPosition:j=dL,isModal:C=!1,...k}=t,P=u.useRef(null),[O,I]=u.useState(null),[z,L]=u.useState(!1),[D,F]=u.useState(!1),B=u.useRef(null),[M,N]=W7(),V=u.useRef(null),[U,J]=W7(),X=u.useRef(null);u.useEffect(()=>{O&&L(f)},[f,O]);const H=kn(()=>{a?.(),L(!1)},[a]);u.useEffect(()=>{if(N.width===0&&N.height===0||O)return;const le=X.current?.getBoundingClientRect(),ee=N.height-le.height,Ie=N.width-le.width;let Me=.5*Ie,ot=.5*ee;typeof j?.x=="number"?Me=j.x:typeof j?.x=="string"&&(Me=Ie*(parseFloat(j.x)/100)),typeof j?.y=="number"?ot=j.y:typeof j?.y=="string"&&(ot=ee*(parseFloat(j.y)/100)),I({x:Me,y:ot})},[N,J]);const[ne,oe]=u.useState(!1),[ge,de]=u.useState(null),[ye,ve]=u.useState(null),be=kn(le=>{if(ge)return ge.focus(le),!0;if(g){const ee=V.current?.querySelectorAll?.(g);if(ee&&ee.length>0)return ee[0]?.focus?.(le),!0}return V.current?.focus?.(le),!1},[ge,g]),re=C2(h,()=>({focus:le=>{be(le)}}),[]),ce={...x,onExited:le=>{l?.(null),x?.onExited?.(le)},onExit:le=>{const ee=ye;ee&&requestAnimationFrame(()=>{re.current?.contains(document.activeElement)&&ee.focus()}),p?.(),F(!1),x?.onExit?.(le)},onEntered:(le,ee)=>{c?.(),x?.onEntered?.(le,ee)},onEntering:(le,ee)=>{F(!0),d?.(re.current)}};u.useEffect(()=>{D&&be()},[D]);const we=s.jsx(aL,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:P,active:D,children:s.jsx(y,{in:z,timeout:v,role:"presentation",...ce,children:s.jsx(Ae,{className:"MuiDialog-container",ref:V,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:le=>{le.which===xr.Escape&&(H(),B.current?.start(le,{center:!1}),setTimeout(()=>B.current?.stop(le),180)),le.stopPropagation()},children:s.jsxs(cL,{className:rr({"Mui-focusVisible":ne},A),sx:{"& *":le=>Z3(le),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:le=>`solid ${ht(le.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:le=>`solid ${ht(le.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",..._},defaultPosition:O,ref:X,titleSize:J,rootSize:N,PaperComponent:E,...k,...S,children:[r?s.jsx(gx,{className:rr({"Mui-selected":ne},"draggable-title"),sx:{cursor:"move",display:"flex",color:le=>le.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:le=>`${le.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:le=>le.transitions.duration.shortest/2+"ms"},backgroundColor:le=>ht(le.palette.action.hover,.03)},ref:U,children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:le=>le.spacing(1),marginLeft:le=>le.spacing(1),marginRight:le=>le.spacing(1)},children:[s.jsx(Ae,{sx:{flex:"1 1 100%",paddingLeft:le=>le.spacing(1)},children:r}),s.jsx(br,{label:"Close",children:s.jsx(Mr,{"aria-label":"close",sx:{color:le=>le.palette.text.icon??le.palette.action.active},touchRippleRef:B,onPointerDown:le=>{B.current?.start(le,{center:!1}),le.stopPropagation(),le.preventDefault()},onPointerUp:H,children:s.jsx(C3,{})})})]})}):null,m]})})})});let ae=null;C&&(ae=s.jsx(b,{...w,open:z,onMouseDown:le=>{H(),w?.onMouseDown?.(le)},onClick:le=>{R?.(le),w?.onClick?.(le)},sx:{pointerEvents:"auto",...w?.sx}}));const{getPortalContainer:Y}=V3();return yo.createPortal(s.jsxs(Ae,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:q3([re,M]),onPointerDown:le=>{ne&&(le.target===V.current||le.target.tabIndex<0)&&V.current?.contains(document.activeElement)},onContextMenu:le=>{le.isPropagationStopped()||le.preventDefault()},onFocus:le=>{!ne&&(le.target===V.current||le.target.tabIndex<0)&&setTimeout(()=>{be()},100),P.current?.focusTrap?.unpause(),oe(!0),V.current?.contains(le.target)&&le.target!==V.current&&de(le.target),le.relatedTarget&&!ye&&ve(le.relatedTarget)},onBlur:le=>{re?.current?.contains(le.relatedTarget)||(ve(null),P.current?.focusTrap?.pause(),oe(!1))},children:[ae,we]}),Y(),i+"")});var Ei=typeof window<"u"?window:{screen:{},navigator:{}},Ws=(Ei.matchMedia||function(){return{matches:!1}}).bind(Ei),uL={get passive(){return!0}},b8=function(){};Ei.addEventListener&&Ei.addEventListener("p",b8,uL),Ei.removeEventListener&&Ei.removeEventListener("p",b8,!1);var Y3="ontouchstart"in Ei,pL=Y3||"TouchEvent"in Ei&&Ws("(any-pointer: coarse)").matches,v8=(Ei.navigator.maxTouchPoints||0)>0||pL,jv=Ei.navigator.userAgent||"",hL=Ws("(pointer: coarse)").matches&&/iPad|Macintosh/.test(jv)&&Math.min(Ei.screen.width||0,Ei.screen.height||0)>=768,Rv=(Ws("(pointer: coarse)").matches||!Ws("(pointer: fine)").matches&&Y3)&&!/Windows.*Firefox/.test(jv),fL=Ws("(any-pointer: fine)").matches||Ws("(any-hover: hover)").matches||hL||!Y3,w8=!v8||!fL&&Rv?v8?"touchOnly":"mouseOnly":"hybrid",mL=w8==="mouseOnly"?"mouse":w8==="touchOnly"||Rv?"touch":"mouse",yc=e=>e.type==="checkbox",Cl=e=>e instanceof Date,Lr=e=>e==null;const Iv=e=>typeof e=="object";var Zo=e=>!Lr(e)&&!Array.isArray(e)&&Iv(e)&&!Cl(e),J3=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function Cr(e){let t;const n=Array.isArray(e),o=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(J3&&(e instanceof Blob||o)||!n&&!Zo(e))return e;if(t=n?[]:{},n||(r=>{const i=r.constructor&&r.constructor.prototype;return Zo(i)&&i.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=Cr(e[r]));else t=e}return t}var E2=e=>/^\w*$/.test(e),Jo=e=>e===void 0,yh=e=>Array.isArray(e)?e.filter(Boolean):[],Q3=e=>yh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Zt=(e,t,n)=>{if(!t||!Zo(e))return n;const o=(E2(t)?[t]:Q3(t)).reduce((r,i)=>Lr(r)?r:r[i],e);return Jo(o)||o===e?Jo(e[t])?n:e[t]:o},na=e=>typeof e=="boolean",xo=(e,t,n)=>{let o=-1;const r=E2(t)?[t]:Q3(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const d=e[l];c=Zo(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Pv="onChange",Ov="onSubmit",J0="all",S8="pattern",C8="required",Dv=u.createContext(null);Dv.displayName="HookFormContext";const gL=e=>{const{children:t,...n}=e;return u.createElement(Dv.Provider,{value:n},t)},yL=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;var la=e=>typeof e=="string",xL=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},Q0=e=>Array.isArray(e)?e:[e],k8=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(n=>n!==t)}}),unsubscribe:()=>{e=[]}}},xh=e=>Lr(e)||!Iv(e);function qa(e,t){if(xh(e)||xh(t))return e===t;if(Cl(e)&&Cl(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const i=e[r];if(!o.includes(r))return!1;if(r!=="ref"){const a=t[r];if(Cl(i)&&Cl(a)||Zo(i)&&Zo(a)||Array.isArray(i)&&Array.isArray(a)?!qa(i,a):i!==a)return!1}}return!0}var Nr=e=>Zo(e)&&!Object.keys(e).length,ef=e=>e.type==="file",Ni=e=>typeof e=="function",Ru=e=>{if(!J3)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Lv=e=>e.type==="select-multiple",tf=e=>e.type==="radio",Lp=e=>Ru(e)&&e.isConnected;function nr(e,t){const n=Array.isArray(t)?t:E2(t)?[t]:Q3(t),o=n.length===1?e:function(a,l){const c=l.slice(0,-1).length;let d=0;for(;d<c;)a=Jo(a)?d++:a[l[d++]];return a}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(Zo(o)&&Nr(o)||Array.isArray(o)&&function(a){for(const l in a)if(a.hasOwnProperty(l)&&!Jo(a[l]))return!1;return!0}(o))&&nr(e,n.slice(0,-1)),e}var Av=e=>{for(const t in e)if(Ni(e[t]))return!0;return!1};function Iu(e,t={}){const n=Array.isArray(e);if(Zo(e)||n)for(const o in e)Array.isArray(e[o])||Zo(e[o])&&!Av(e[o])?(t[o]=Array.isArray(e[o])?[]:{},Iu(e[o],t[o])):Lr(e[o])||(t[o]=!0);return t}function zv(e,t,n){const o=Array.isArray(e);if(Zo(e)||o)for(const r in e)Array.isArray(e[r])||Zo(e[r])&&!Av(e[r])?Jo(t)||xh(n[r])?n[r]=Array.isArray(e[r])?Iu(e[r],[]):{...Iu(e[r])}:zv(e[r],Lr(t)?{}:t[r],n[r]):n[r]=!qa(e[r],t[r]);return n}var O0=(e,t)=>zv(e,t,Iu(t));const E8={value:!1,isValid:!1},M8={value:!0,isValid:!0};var Fv=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jo(e[0].attributes.value)?Jo(e[0].value)||e[0].value===""?M8:{value:e[0].value,isValid:!0}:M8:E8}return E8},Bv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Jo(e)?e:t?e===""?NaN:e&&+e:n&&la(e)?new Date(e):o?o(e):e;const T8={isValid:!1,value:null};var Nv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,T8):T8;function _8(e){const t=e.ref;return ef(t)?t.files:tf(t)?Nv(e.refs).value:Lv(t)?[...t.selectedOptions].map(({value:n})=>n):yc(t)?Fv(e.refs).value:Bv(Jo(t.value)?e.ref.value:t.value,e)}var Pu=e=>e instanceof RegExp,D0=e=>Jo(e)?e:Pu(e)?e.source:Zo(e)?Pu(e.value)?e.value.source:e.value:e,j8=e=>({isOnSubmit:!e||e===Ov,isOnBlur:e==="onBlur",isOnChange:e===Pv,isOnAll:e===J0,isOnTouch:e==="onTouched"});const R8="AsyncFunction";var bL=e=>!!e&&!!e.validate&&!!(Ni(e.validate)&&e.validate.constructor.name===R8||Zo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===R8)),I8=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const xc=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=Zt(e,r);if(i){const{_f:a,...l}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],r)&&!o||a.ref&&t(a.ref,a.name)&&!o)return!0;if(xc(l,t))break}else if(Zo(l)&&xc(l,t))break}}};function P8(e,t,n){const o=Zt(e,n);if(o||E2(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),a=Zt(t,i),l=Zt(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};r.pop()}return{name:n}}var vL=(e,t,n)=>{const o=Q0(Zt(e,n));return xo(o,"root",t[n]),xo(e,n,o),e},Gd=e=>la(e);function O8(e,t,n="validate"){if(Gd(e)||Array.isArray(e)&&e.every(Gd)||na(e)&&!e)return{type:n,message:Gd(e)?e:"",ref:t}}var ts=e=>Zo(e)&&!Pu(e)?e:{value:e,message:""},D8=async(e,t,n,o,r,i)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:p,min:h,max:f,pattern:g,validate:m,name:y,valueAsNumber:x,mount:v}=e._f,b=Zt(n,y);if(!v||t.has(y))return{};const w=l?l[0]:a,E=k=>{r&&w.reportValidity&&(w.setCustomValidity(na(k)?"":k||""),w.reportValidity())},S={},R=tf(a),_=yc(a),A=R||_,T=(x||ef(a))&&Jo(a.value)&&Jo(b)||Ru(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,j=xL.bind(null,y,o,S),C=(k,P,O,I="maxLength",z="minLength")=>{const L=k?P:O;S[y]={type:k?I:z,message:L,ref:a,...j(k?I:z,L)}};if(i?!Array.isArray(b)||!b.length:c&&(!A&&(T||Lr(b))||na(b)&&!b||_&&!Fv(l).isValid||R&&!Nv(l).isValid)){const{value:k,message:P}=Gd(c)?{value:!!c,message:c}:ts(c);if(k&&(S[y]={type:C8,message:P,ref:w,...j(C8,P)},!o))return E(P),S}if(!(T||Lr(h)&&Lr(f))){let k,P;const O=ts(f),I=ts(h);if(Lr(b)||isNaN(b)){const z=a.valueAsDate||new Date(b),L=B=>new Date(new Date().toDateString()+" "+B),D=a.type=="time",F=a.type=="week";la(O.value)&&b&&(k=D?L(b)>L(O.value):F?b>O.value:z>new Date(O.value)),la(I.value)&&b&&(P=D?L(b)<L(I.value):F?b<I.value:z<new Date(I.value))}else{const z=a.valueAsNumber||b&&+b;Lr(O.value)||(k=z>O.value),Lr(I.value)||(P=z<I.value)}if((k||P)&&(C(!!k,O.message,I.message,"max","min"),!o))return E(S[y].message),S}if((d||p)&&!T&&(la(b)||i&&Array.isArray(b))){const k=ts(d),P=ts(p),O=!Lr(k.value)&&b.length>+k.value,I=!Lr(P.value)&&b.length<+P.value;if((O||I)&&(C(O,k.message,P.message),!o))return E(S[y].message),S}if(g&&!T&&la(b)){const{value:k,message:P}=ts(g);if(Pu(k)&&!b.match(k)&&(S[y]={type:S8,message:P,ref:a,...j(S8,P)},!o))return E(P),S}if(m){if(Ni(m)){const k=O8(await m(b,n),w);if(k&&(S[y]={...k,...j("validate",k.message)},!o))return E(k.message),S}else if(Zo(m)){let k={};for(const P in m){if(!Nr(k)&&!o)break;const O=O8(await m[P](b,n),w,P);O&&(k={...O,...j(P,O.message)},E(O.message),o&&(S[y]=k))}if(!Nr(k)&&(S[y]={ref:w,...k},!o))return S}}return E(!0),S};const wL={mode:Ov,reValidateMode:Pv,shouldFocusError:!0},SL=["Ok","Cancel"],bh=e=>{const{description:t,icon:n,onCancel:o,onOption:r,onDone:i,onValidateOption:a,createOptionsButton:l,options:c=SL,autoFocusSel:d=".defaultOption",defaultOption:p=c[0],cancelOption:h="Cancel",children:f,...g}=e,m=function(j={}){const C=u.useRef(void 0),k=u.useRef(void 0),[P,O]=u.useState({isDirty:!1,isValidating:!1,isLoading:Ni(j.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:j.errors||{},disabled:j.disabled||!1,isReady:!1,defaultValues:Ni(j.defaultValues)?void 0:j.defaultValues});if(!C.current)if(j.formControl)C.current={...j.formControl,formState:P},j.defaultValues&&!Ni(j.defaultValues)&&j.formControl.reset(j.defaultValues,j.resetOptions);else{const{formControl:z,...L}=function(D={}){let F={...wL,...D},B={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ni(F.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:F.errors||{},disabled:F.disabled||!1};const M={};let N,V=(Zo(F.defaultValues)||Zo(F.values))&&Cr(F.defaultValues||F.values)||{},U=F.shouldUnregister?{}:Cr(V),J={action:!1,mount:!1,watch:!1},X={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},H=0;const ne={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let oe={...ne};const ge={array:k8(),state:k8()},de=F.criteriaMode===J0,ye=async W=>{if(!F.disabled&&(ne.isValid||oe.isValid||W)){const Q=F.resolver?Nr((await ce()).errors):await we(M,!0);Q!==B.isValid&&ge.state.next({isValid:Q})}},ve=(W,Q)=>{!F.disabled&&(ne.isValidating||ne.validatingFields||oe.isValidating||oe.validatingFields)&&((W||Array.from(X.mount)).forEach(q=>{q&&(Q?xo(B.validatingFields,q,Q):nr(B.validatingFields,q))}),ge.state.next({validatingFields:B.validatingFields,isValidating:!Nr(B.validatingFields)}))},be=(W,Q,q,se)=>{const te=Zt(M,W);if(te){const ie=Zt(U,W,Jo(q)?Zt(V,W):q);Jo(ie)||se&&se.defaultChecked||Q?xo(U,W,Q?ie:_8(te._f)):le(W,ie),J.mount&&ye()}},re=(W,Q,q,se,te)=>{let ie=!1,pe=!1;const me={name:W};if(!F.disabled){if(!q||se){(ne.isDirty||oe.isDirty)&&(pe=B.isDirty,B.isDirty=me.isDirty=ae(),ie=pe!==me.isDirty);const fe=qa(Zt(V,W),Q);pe=!!Zt(B.dirtyFields,W),fe?nr(B.dirtyFields,W):xo(B.dirtyFields,W,!0),me.dirtyFields=B.dirtyFields,ie=ie||(ne.dirtyFields||oe.dirtyFields)&&pe!==!fe}if(q){const fe=Zt(B.touchedFields,W);fe||(xo(B.touchedFields,W,q),me.touchedFields=B.touchedFields,ie=ie||(ne.touchedFields||oe.touchedFields)&&fe!==q)}ie&&te&&ge.state.next(me)}return ie?me:{}},ce=async W=>{ve(W,!0);const Q=await F.resolver(U,F.context,((q,se,te,ie)=>{const pe={};for(const me of q){const fe=Zt(se,me);fe&&xo(pe,me,fe._f)}return{criteriaMode:te,names:[...q],fields:pe,shouldUseNativeValidation:ie}})(W||X.mount,M,F.criteriaMode,F.shouldUseNativeValidation));return ve(W),Q},we=async(W,Q,q={valid:!0})=>{for(const se in W){const te=W[se];if(te){const{_f:ie,...pe}=te;if(ie){const me=X.array.has(ie.name),fe=te._f&&bL(te._f);fe&&ne.validatingFields&&ve([se],!0);const _e=await D8(te,X.disabled,U,de,F.shouldUseNativeValidation&&!Q,me);if(fe&&ne.validatingFields&&ve([se]),_e[ie.name]&&(q.valid=!1,Q))break;!Q&&(Zt(_e,ie.name)?me?vL(B.errors,_e,ie.name):xo(B.errors,ie.name,_e[ie.name]):nr(B.errors,ie.name))}!Nr(pe)&&await we(pe,Q,q)}}return q.valid},ae=(W,Q)=>!F.disabled&&(W&&Q&&xo(U,W,Q),!qa(Ce(),V)),Y=(W,Q,q)=>{return se=W,te=X,ie={...J.mount?U:Jo(Q)?V:la(W)?{[W]:Q}:Q},pe=q,me=Q,la(se)?(pe&&te.watch.add(se),Zt(ie,se,me)):Array.isArray(se)?se.map(fe=>(pe&&te.watch.add(fe),Zt(ie,fe))):(pe&&(te.watchAll=!0),ie);var se,te,ie,pe,me},le=(W,Q,q={})=>{const se=Zt(M,W);let te=Q;if(se){const ie=se._f;ie&&(!ie.disabled&&xo(U,W,Bv(Q,ie)),te=Ru(ie.ref)&&Lr(Q)?"":Q,Lv(ie.ref)?[...ie.ref.options].forEach(pe=>pe.selected=te.includes(pe.value)):ie.refs?yc(ie.ref)?ie.refs.forEach(pe=>{pe.defaultChecked&&pe.disabled||(Array.isArray(te)?pe.checked=!!te.find(me=>me===pe.value):pe.checked=te===pe.value||!!te)}):ie.refs.forEach(pe=>pe.checked=pe.value===te):ef(ie.ref)?ie.ref.value="":(ie.ref.value=te,ie.ref.type||ge.state.next({name:W,values:Cr(U)})))}(q.shouldDirty||q.shouldTouch)&&re(W,te,q.shouldTouch,q.shouldDirty,!0),q.shouldValidate&&Ve(W)},ee=(W,Q,q)=>{for(const se in Q){if(!Q.hasOwnProperty(se))return;const te=Q[se],ie=W+"."+se,pe=Zt(M,ie);(X.array.has(W)||Zo(te)||pe&&!pe._f)&&!Cl(te)?ee(ie,te,q):le(ie,te,q)}},Ie=(W,Q,q={})=>{const se=Zt(M,W),te=X.array.has(W),ie=Cr(Q);xo(U,W,ie),te?(ge.array.next({name:W,values:Cr(U)}),(ne.isDirty||ne.dirtyFields||oe.isDirty||oe.dirtyFields)&&q.shouldDirty&&ge.state.next({name:W,dirtyFields:O0(V,U),isDirty:ae(W,ie)})):!se||se._f||Lr(ie)?le(W,ie,q):ee(W,ie,q),I8(W,X)&&ge.state.next({...B}),ge.state.next({name:J.mount?W:void 0,values:Cr(U)})},Me=async W=>{J.mount=!0;const Q=W.target;let q=Q.name,se=!0;const te=Zt(M,q),ie=Fe=>{se=Number.isNaN(Fe)||Cl(Fe)&&isNaN(Fe.getTime())||qa(Fe,Zt(U,q,Fe))},pe=j8(F.mode),me=j8(F.reValidateMode);if(te){let Fe,qe;const Je=Q.type?_8(te._f):Zo(_e=W)&&_e.target?yc(_e.target)?_e.target.checked:_e.target.value:_e,Qe=W.type==="blur"||W.type==="focusout",rt=!((fe=te._f).mount&&(fe.required||fe.min||fe.max||fe.maxLength||fe.minLength||fe.pattern||fe.validate)||F.resolver||Zt(B.errors,q)||te._f.deps)||((Vt,on,Yt,_n,pn)=>!pn.isOnAll&&(!Yt&&pn.isOnTouch?!(on||Vt):(Yt?_n.isOnBlur:pn.isOnBlur)?!Vt:!(Yt?_n.isOnChange:pn.isOnChange)||Vt))(Qe,Zt(B.touchedFields,q),B.isSubmitted,me,pe),At=I8(q,X,Qe);xo(U,q,Je),Qe?(te._f.onBlur&&te._f.onBlur(W),N&&N(0)):te._f.onChange&&te._f.onChange(W);const zt=re(q,Je,Qe),_t=!Nr(zt)||At;if(!Qe&&ge.state.next({name:q,type:W.type,values:Cr(U)}),rt)return(ne.isValid||oe.isValid)&&(F.mode==="onBlur"?Qe&&ye():Qe||ye()),_t&&ge.state.next({name:q,...At?{}:zt});if(!Qe&&At&&ge.state.next({...B}),F.resolver){const{errors:Vt}=await ce([q]);if(ie(Je),se){const on=P8(B.errors,M,q),Yt=P8(Vt,M,on.name||q);Fe=Yt.error,q=Yt.name,qe=Nr(Vt)}}else ve([q],!0),Fe=(await D8(te,X.disabled,U,de,F.shouldUseNativeValidation))[q],ve([q]),ie(Je),se&&(Fe?qe=!1:(ne.isValid||oe.isValid)&&(qe=await we(M,!0)));se&&(te._f.deps&&Ve(te._f.deps),((Vt,on,Yt,_n)=>{const pn=Zt(B.errors,Vt),Mn=(ne.isValid||oe.isValid)&&na(on)&&B.isValid!==on;var kt;if(F.delayError&&Yt?(kt=()=>{return rn=Vt,fn=Yt,xo(B.errors,rn,fn),void ge.state.next({errors:B.errors});var rn,fn},N=rn=>{clearTimeout(H),H=setTimeout(kt,rn)},N(F.delayError)):(clearTimeout(H),N=null,Yt?xo(B.errors,Vt,Yt):nr(B.errors,Vt)),(Yt?!qa(pn,Yt):pn)||!Nr(_n)||Mn){const rn={..._n,...Mn&&na(on)?{isValid:on}:{},errors:B.errors,name:Vt};B={...B,...rn},ge.state.next(rn)}})(q,qe,Fe,zt))}var fe,_e},ot=(W,Q)=>{if(Zt(B.errors,Q)&&W.focus)return W.focus(),1},Ve=async(W,Q={})=>{let q,se;const te=Q0(W);if(F.resolver){const ie=await(async pe=>{const{errors:me}=await ce(pe);if(pe)for(const fe of pe){const _e=Zt(me,fe);_e?xo(B.errors,fe,_e):nr(B.errors,fe)}else B.errors=me;return me})(Jo(W)?W:te);q=Nr(ie),se=W?!te.some(pe=>Zt(ie,pe)):q}else W?(se=(await Promise.all(te.map(async ie=>{const pe=Zt(M,ie);return await we(pe&&pe._f?{[ie]:pe}:pe)}))).every(Boolean),(se||B.isValid)&&ye()):se=q=await we(M);return ge.state.next({...!la(W)||(ne.isValid||oe.isValid)&&q!==B.isValid?{}:{name:W},...F.resolver||!W?{isValid:q}:{},errors:B.errors}),Q.shouldFocus&&!se&&xc(M,ot,W?te:X.mount),se},Ce=W=>{const Q={...J.mount?U:V};return Jo(W)?Q:la(W)?Zt(Q,W):W.map(q=>Zt(Q,q))},je=(W,Q)=>({invalid:!!Zt((Q||B).errors,W),isDirty:!!Zt((Q||B).dirtyFields,W),error:Zt((Q||B).errors,W),isValidating:!!Zt(B.validatingFields,W),isTouched:!!Zt((Q||B).touchedFields,W)}),Ge=(W,Q,q)=>{const se=(Zt(M,W,{_f:{}})._f||{}).ref,te=Zt(B.errors,W)||{},{ref:ie,message:pe,type:me,...fe}=te;xo(B.errors,W,{...fe,...Q,ref:se}),ge.state.next({name:W,errors:B.errors,isValid:!1}),q&&q.shouldFocus&&se&&se.focus&&se.focus()},Be=W=>ge.state.subscribe({next:Q=>{var q,se,te;q=W.name,se=Q.name,te=W.exact,q&&se&&q!==se&&!Q0(q).some(ie=>ie&&(te?ie===se:ie.startsWith(se)||se.startsWith(ie)))||!((ie,pe,me,fe)=>{me(ie);const{name:_e,...Fe}=ie;return Nr(Fe)||Object.keys(Fe).length>=Object.keys(pe).length||Object.keys(Fe).find(qe=>pe[qe]===(!fe||J0))})(Q,W.formState||ne,De,W.reRenderRoot)||W.callback({values:{...U},...B,...Q})}}).unsubscribe,ct=(W,Q={})=>{for(const q of W?Q0(W):X.mount)X.mount.delete(q),X.array.delete(q),Q.keepValue||(nr(M,q),nr(U,q)),!Q.keepError&&nr(B.errors,q),!Q.keepDirty&&nr(B.dirtyFields,q),!Q.keepTouched&&nr(B.touchedFields,q),!Q.keepIsValidating&&nr(B.validatingFields,q),!F.shouldUnregister&&!Q.keepDefaultValue&&nr(V,q);ge.state.next({values:Cr(U)}),ge.state.next({...B,...Q.keepDirty?{isDirty:ae()}:{}}),!Q.keepIsValid&&ye()},Ye=({disabled:W,name:Q})=>{(na(W)&&J.mount||W||X.disabled.has(Q))&&(W?X.disabled.add(Q):X.disabled.delete(Q))},he=(W,Q={})=>{let q=Zt(M,W);const se=na(Q.disabled)||na(F.disabled);return xo(M,W,{...q||{},_f:{...q&&q._f?q._f:{ref:{name:W}},name:W,mount:!0,...Q}}),X.mount.add(W),q?Ye({disabled:na(Q.disabled)?Q.disabled:F.disabled,name:W}):be(W,!0,Q.value),{...se?{disabled:Q.disabled||F.disabled}:{},...F.progressive?{required:!!Q.required,min:D0(Q.min),max:D0(Q.max),minLength:D0(Q.minLength),maxLength:D0(Q.maxLength),pattern:D0(Q.pattern)}:{},name:W,onChange:Me,onBlur:Me,ref:te=>{if(te){he(W,Q),q=Zt(M,W);const _e=Jo(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,Fe=tf(fe=_e)||yc(fe),qe=q._f.refs||[];if(Fe?qe.find(Je=>Je===_e):_e===q._f.ref)return;xo(M,W,{_f:{...q._f,...Fe?{refs:[...qe.filter(Lp),_e,...Array.isArray(Zt(V,W))?[{}]:[]],ref:{type:_e.type,name:W}}:{ref:_e}}}),be(W,!1,void 0,_e)}else q=Zt(M,W,{}),q._f&&(q._f.mount=!1),(F.shouldUnregister||Q.shouldUnregister)&&(ie=X.array,pe=W,!ie.has((me=pe).substring(0,me.search(/\.\d+(\.|$)/))||me)||!J.action)&&X.unMount.add(W);var ie,pe,me,fe}}},Ze=()=>F.shouldFocusError&&xc(M,ot,X.mount),Se=(W,Q)=>async q=>{let se;q&&(q.preventDefault&&q.preventDefault(),q.persist&&q.persist());let te=Cr(U);if(ge.state.next({isSubmitting:!0}),F.resolver){const{errors:ie,values:pe}=await ce();B.errors=ie,te=pe}else await we(M);if(X.disabled.size)for(const ie of X.disabled)xo(te,ie,void 0);if(nr(B.errors,"root"),Nr(B.errors)){ge.state.next({errors:{}});try{await W(te,q)}catch(ie){se=ie}}else Q&&await Q({...B.errors},q),Ze(),setTimeout(Ze);if(ge.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(B.errors)&&!se,submitCount:B.submitCount+1,errors:B.errors}),se)throw se},Re=(W,Q={})=>{const q=W?Cr(W):V,se=Cr(q),te=Nr(W),ie=te?V:se;if(Q.keepDefaultValues||(V=q),!Q.keepValues){if(Q.keepDirtyValues){const pe=new Set([...X.mount,...Object.keys(O0(V,U))]);for(const me of Array.from(pe))Zt(B.dirtyFields,me)?xo(ie,me,Zt(U,me)):Ie(me,Zt(ie,me))}else{if(J3&&Jo(W))for(const pe of X.mount){const me=Zt(M,pe);if(me&&me._f){const fe=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;if(Ru(fe)){const _e=fe.closest("form");if(_e){_e.reset();break}}}}for(const pe of X.mount)Ie(pe,Zt(ie,pe))}U=Cr(ie),ge.array.next({values:{...ie}}),ge.state.next({values:{...ie}})}X={mount:Q.keepDirtyValues?X.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},J.mount=!ne.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,J.watch=!!F.shouldUnregister,ge.state.next({submitCount:Q.keepSubmitCount?B.submitCount:0,isDirty:!te&&(Q.keepDirty?B.isDirty:!(!Q.keepDefaultValues||qa(W,V))),isSubmitted:!!Q.keepIsSubmitted&&B.isSubmitted,dirtyFields:te?{}:Q.keepDirtyValues?Q.keepDefaultValues&&U?O0(V,U):B.dirtyFields:Q.keepDefaultValues&&W?O0(V,W):Q.keepDirty?B.dirtyFields:{},touchedFields:Q.keepTouched?B.touchedFields:{},errors:Q.keepErrors?B.errors:{},isSubmitSuccessful:!!Q.keepIsSubmitSuccessful&&B.isSubmitSuccessful,isSubmitting:!1})},ue=(W,Q)=>Re(Ni(W)?W(U):W,Q),De=W=>{B={...B,...W}},Le={control:{register:he,unregister:ct,getFieldState:je,handleSubmit:Se,setError:Ge,_subscribe:Be,_runSchema:ce,_focusError:Ze,_getWatch:Y,_getDirty:ae,_setValid:ye,_setFieldArray:(W,Q=[],q,se,te=!0,ie=!0)=>{if(se&&q&&!F.disabled){if(J.action=!0,ie&&Array.isArray(Zt(M,W))){const fe=q(Zt(M,W),se.argA,se.argB);te&&xo(M,W,fe)}if(ie&&Array.isArray(Zt(B.errors,W))){const fe=q(Zt(B.errors,W),se.argA,se.argB);te&&xo(B.errors,W,fe),pe=B.errors,!yh(Zt(pe,me=W)).length&&nr(pe,me)}if((ne.touchedFields||oe.touchedFields)&&ie&&Array.isArray(Zt(B.touchedFields,W))){const fe=q(Zt(B.touchedFields,W),se.argA,se.argB);te&&xo(B.touchedFields,W,fe)}(ne.dirtyFields||oe.dirtyFields)&&(B.dirtyFields=O0(V,U)),ge.state.next({name:W,isDirty:ae(W,Q),dirtyFields:B.dirtyFields,errors:B.errors,isValid:B.isValid})}else xo(U,W,Q);var pe,me},_setDisabledField:Ye,_setErrors:W=>{B.errors=W,ge.state.next({errors:B.errors,isValid:!1})},_getFieldArray:W=>yh(Zt(J.mount?U:V,W,F.shouldUnregister?Zt(V,W,[]):[])),_reset:Re,_resetDefaultValues:()=>Ni(F.defaultValues)&&F.defaultValues().then(W=>{ue(W,F.resetOptions),ge.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const W of X.unMount){const Q=Zt(M,W);Q&&(Q._f.refs?Q._f.refs.every(q=>!Lp(q)):!Lp(Q._f.ref))&&ct(W)}X.unMount=new Set},_disableForm:W=>{na(W)&&(ge.state.next({disabled:W}),xc(M,(Q,q)=>{const se=Zt(M,q);se&&(Q.disabled=se._f.disabled||W,Array.isArray(se._f.refs)&&se._f.refs.forEach(te=>{te.disabled=se._f.disabled||W}))},0,!1))},_subjects:ge,_proxyFormState:ne,get _fields(){return M},get _formValues(){return U},get _state(){return J},set _state(W){J=W},get _defaultValues(){return V},get _names(){return X},set _names(W){X=W},get _formState(){return B},get _options(){return F},set _options(W){F={...F,...W}}},subscribe:W=>(J.mount=!0,oe={...oe,...W.formState},Be({...W,formState:oe})),trigger:Ve,register:he,handleSubmit:Se,watch:(W,Q)=>Ni(W)?ge.state.subscribe({next:q=>W(Y(void 0,Q),q)}):Y(W,Q,!0),setValue:Ie,getValues:Ce,reset:ue,resetField:(W,Q={})=>{Zt(M,W)&&(Jo(Q.defaultValue)?Ie(W,Cr(Zt(V,W))):(Ie(W,Q.defaultValue),xo(V,W,Cr(Q.defaultValue))),Q.keepTouched||nr(B.touchedFields,W),Q.keepDirty||(nr(B.dirtyFields,W),B.isDirty=Q.defaultValue?ae(W,Cr(Zt(V,W))):ae()),Q.keepError||(nr(B.errors,W),ne.isValid&&ye()),ge.state.next({...B}))},clearErrors:W=>{W&&Q0(W).forEach(Q=>nr(B.errors,Q)),ge.state.next({errors:W?B.errors:{}})},unregister:ct,setError:Ge,setFocus:(W,Q={})=>{const q=Zt(M,W),se=q&&q._f;if(se){const te=se.refs?se.refs[0]:se.ref;te.focus&&(te.focus(),Q.shouldSelect&&Ni(te.select)&&te.select())}},getFieldState:je};return{...Le,formControl:Le}}(j);C.current={...L,formState:P}}const I=C.current.control;return I._options=j,yL(()=>{const z=I._subscribe({formState:I._proxyFormState,callback:()=>O({...I._formState}),reRenderRoot:!0});return O(L=>({...L,isReady:!0})),I._formState.isReady=!0,z},[I]),u.useEffect(()=>I._disableForm(j.disabled),[I,j.disabled]),u.useEffect(()=>{j.mode&&(I._options.mode=j.mode),j.reValidateMode&&(I._options.reValidateMode=j.reValidateMode)},[I,j.mode,j.reValidateMode]),u.useEffect(()=>{j.errors&&(I._setErrors(j.errors),I._focusError())},[I,j.errors]),u.useEffect(()=>{j.shouldUnregister&&I._subjects.state.next({values:I._getWatch()})},[I,j.shouldUnregister]),u.useEffect(()=>{if(I._proxyFormState.isDirty){const z=I._getDirty();z!==P.isDirty&&I._subjects.state.next({isDirty:z})}},[I,P.isDirty]),u.useEffect(()=>{j.values&&!qa(j.values,k.current)?(I._reset(j.values,I._options.resetOptions),k.current=j.values,O(z=>({...z}))):I._resetDefaultValues()},[I,j.values]),u.useEffect(()=>{I._state.mount||(I._setValid(),I._state.mount=!0),I._state.watch&&(I._state.watch=!1,I._subjects.state.next({...I._formState})),I._removeUnmounted()}),C.current.formState=((z,L,D,F=!0)=>{const B={defaultValues:L._defaultValues};for(const M in z)Object.defineProperty(B,M,{get:()=>{const N=M;return L._proxyFormState[N]!==J0&&(L._proxyFormState[N]=!F||J0),z[N]}});return B})(P,I),C.current}({shouldUseNativeValidation:!1}),{handleSubmit:y,formState:x}=m,v=u.useRef(null),b=u.useRef(null),w=u.useRef(null),E=kn(async j=>{let C;try{if(C=await Promise.resolve(a?.(j))??!0,C!==!0)return;await Promise.resolve(r?.(j,j===h,j===p)),i?.(j)}catch{}},[r,i,a,h,p]),S=kn((j,C)=>{setTimeout(()=>{E(p)},180)},[E]),R=kn(()=>{r?.(h,!0,!1),o?.(),i?.(null)},[r,h,o,i]),_=x&&(Object.keys(x.errors).length>0||x.disabled||x.isSubmitted),A=kn((j,C)=>{const k=j===h,P={className:C?"defaultOption":"action",type:C?"submit":"button",style:{minWidth:"75px"},onClick:()=>{k?R():C||E(j)}};if(l)return l(j,P,C);const O={className:C?"defaultOption":"action",variant:C?"contained":"outlined",size:"small",disabled:!k&&_,color:"primary",...P};if(C||k){const I=C?v:b;O.touchRippleRef=I,O.onPointerDown=z=>{I.current?.start(z,{center:!1}),z.stopPropagation(),z.preventDefault()}}return s.jsx(Oc,{...O,children:s.jsx("div",{style:{paddingTop:"3px"},children:j})},`action:${j}`)},[c,p,h,l,x]),T=u.useMemo(()=>{const j=[];for(let C=0;C<c.length;C++){const k=c[C],P=p?k===p:C===0;j.push(A(k,P))}return j},[c,p,x]);return s.jsx(_v,{onCancel:R,initialPosition:{y:mL==="touch"?"15":"35"},onDone:i,autoFocusSel:d,isModal:!0,PaperProps:{},...g,children:s.jsx(gL,{...m,children:s.jsxs("form",{ref:w,onSubmit:y(S),children:[s.jsx(mx,{dividers:!0,onKeyDown:j=>{if(j.isDefaultPrevented())return;j.stopPropagation();let C=null,k=null;const P=j.which===xr.Escape&&h;if(P)C=h,k=b;else{if(_)return;j.which===xr.Enter&&(C=p??c[0],k=v)}C&&(k.current?.start(j,{center:!1}),setTimeout(()=>{k.current?.stop(j),P&&E(C)},180))},children:s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:j=>j.spacing(n||t?1.5:0)},children:[s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column"},children:[n,t]}),f]})}),s.jsx(UT,{sx:{paddingTop:j=>j.spacing(1),paddingBottom:j=>j.spacing(1),paddingLeft:j=>j.spacing(1),paddingRight:j=>j.spacing(1),backgroundColor:j=>ht(j.palette.action.hover,.03)},children:T})]})})})},CL=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:bh,default:bh},Symbol.toStringTag,{value:"Module"})),kL=u.lazy(()=>Promise.resolve().then(()=>CL)),EL=u.lazy(()=>Promise.resolve().then(()=>require("./Dkl2t2DSaDxPbm2V.cjs"))),n0=u.memo(u.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...a}=e;return H3(n),s.jsx(br,{ref:t,label:o!==void 0?n?.label():"",shortcut:r!==void 0?r:Array.isArray(n?.shortcut())?n?.shortcut()[0]:n?.shortcut(),description:n?.description(),disabled:o,chips:n?.tags(),componentDisabled:n?.disabled(),...a,children:s.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:i})})})),We=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:a,labelOverride:l,disabled:c=!1,variant:d=Si.Toolbar,shortcut:p,commandState:h,tooltipProps:f,...g}=e,m=u.useRef(null),y=u.useRef(!1),x=u.useMemo(()=>{const A={onExecute(T,j){o?.onExecute?.(T,j),y.current||(m.current?.start({center:!1}),setTimeout(()=>m.current?.stop({}),180)),y.current=!1},onError(T,j,C){o?.onError(T,j,C)}};return o?.beforeExecute&&(A.beforeExecute=o.beforeExecute),A},[o]),v=H3(n,x),b=u.useCallback(A=>{A.button===0&&A.preventDefault()},[]),w=u.useCallback(A=>{A.button===0&&n?.execute(h,o)},[v,o,h]),E=u.useCallback(A=>{A.keyCode!==xr.Enter&&A.keyCode!==xr.Space||n?.execute(h,o)},[v,o,h]),S=u.useMemo(()=>a||d===Si.Toolbar||n?.state()?typeof a=="function"?a(n):a:k2,[v,a]),R=u.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:d===Si.Toolbar?S:s.jsx(S1,{selected:n?.state()??!1,children:S}),touchRippleRef:m,disabled:c||!n||n.disabled(),onMouseDown:b,onMouseUp:w,onKeyDown:E}),[v,o,c,S]);let _;return _=d===Si.Menuitem?s.jsx(Gr,{...g,chips:n?.tags(),...R,children:l??n?.label(r,i)}):s.jsx(ii,{...g,...R}),(l||n?.label())&&((n.disabled()||c)&&(_=s.jsx("div",{children:_})),_=s.jsx(n0,{command:n,placement:d===Si.Toolbar?"bottom-start":"right-start",shortcut:p,...f,children:_})),_})),ML=u.memo(u.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=k2,label:i,variant:a=Si.Toolbar,disabled:l=!1,commandHook:c,...d}=e,p=u.useRef(null),h=u.useRef(!1),f=u.useMemo(()=>{const _={onExecute(A,T){c?.onExecute?.(A,T),h.current||(p.current?.start({center:!1}),setTimeout(()=>p.current?.stop({}),180)),h.current=!1},onError(A,T,j){c?.onError(A,T,j)}};return c?.beforeExecute&&(_.beforeExecute=c.beforeExecute),_},[c]),g=H3(n,f),m=()=>n?.state()?.toString()||"0",[y,x]=u.useState(m),v=kn(()=>{const _=parseFloat(y);isNaN(_)?x(m()):parseFloat(m())!==_&&n.execute(_,c)},[m,n,y,c]);u.useEffect(()=>{x(m())},[n?.state()]);const b=u.useMemo(()=>typeof r=="function"?r(n):r,[g,r]),w=u.useMemo(()=>i===void 0?n?.label(o):typeof i=="function"?i():i,[g]),E=u.useMemo(()=>s.jsx(Mr,{...d,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:_=>_.stopPropagation(),onMouseDown:_=>{_.button===0&&_.stopPropagation()},onMouseUp:_=>{_.button===0&&_.stopPropagation()},children:s.jsx(Ul,{inputMode:"numeric",disabled:l||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.key()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:_=>`${Math.round(_.typography.fontSize)}px`,width:_=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:y,onFocus:_=>{_.target?.select()},onKeyDown:_=>{if(_.which===xr.Enter)m()!==y&&(_.stopPropagation(),_.preventDefault(),v());else if(_.which===xr.Escape)m()!==y&&(x(m()),setTimeout(()=>{_.target?.select()},0),_.stopPropagation(),_.preventDefault());else{if(_.key.match("[-]")||_.key.match("[0-9.]")&&(y+_.key).length>4)return _.stopPropagation(),void _.preventDefault();if(_.which===xr.Space)return void _.preventDefault()}},onBlur:()=>{v()},onChange:_=>{if(_.target.value.length>4)return _.stopPropagation(),void _.preventDefault();x(_.target.value)}})}),[y,l,n]),S={tabIndex:0,ref:t,icon:b,touchRippleRef:p,disabled:l||!n||n.disabled(),onMouseDown:_=>{_.button===0&&_.preventDefault()},onMouseUp:_=>{_.button!==0||_.isPropagationStopped()||_.isDefaultPrevented()||_.isDefaultPrevented()||(_.preventDefault(),n?.execute(!n?.state?.(),f))},onKeyDown:_=>{_.keyCode!==xr.Enter&&_.keyCode!==xr.Space||n?.execute(!n?.state?.(),f)}};let R;return R=a===Si.Menuitem?s.jsxs(Gr,{...d,chips:n?.tags(),...S,children:[w,E]}):s.jsx(ii,{...d,...S}),n?.label()&&((n.disabled()||l)&&(R=s.jsx("div",{children:R})),R=s.jsx(n0,{command:n,placement:a===Si.Toolbar?"bottom-start":"right-start",children:R})),R})),Jn=u.memo(u.forwardRef((e,t)=>{const{variant:n=Si.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:a,commandHook:l,disabled:c,label:d,icon:p,createPopupPanel:h,tooltip:f,selected:g,scope:m,...y}=e,x=u.useRef(null),v=u.useRef(!1),b=u.useMemo(()=>{const j={onExecute(C,k){l?.onExecute?.(C,k),v.current||(x.current?.start({center:!1}),setTimeout(()=>x.current?.stop({}),180)),v.current=!1},onError(C,k,P){l?.onError(C,k,P)}};return l?.beforeExecute&&(j.beforeExecute=l.beforeExecute),j},[l]),w=W3(i,[o],null,[o]),E=w[0],{label:S,icon:R}=u.useMemo(()=>{let j=null;d&&(j=typeof d=="function"?d(E):d),j||(j=E?.label?.(m));let C=null;return p&&(C=typeof p=="function"?p(E):p),C||(C=E?.icon?.()),{label:j,icon:C}},[w,d,p]),_={disabled:c,scope:m,touchRippleRef:x,onQuickClick:r,tooltip:f,label:S,icon:R};(S||f)&&(_.createTooltip=({children:j},C)=>s.jsx(br,{label:S,description:f,disabled:C,children:j}));const A=kn(j=>h?.(j,i),[h,w]),T=kn(j=>E?.execute(a,b),[E]);return E?(_.quickButtonProps={},_.quickButtonProps.createTooltip=({children:j,placement:C},k)=>s.jsx(n0,{command:E,placement:C??n===Si.Toolbar?"bottom-start":"right-start",disabled:k,children:j}),_.disabled=_.disabled??E?.disabled(),r||(_.onQuickClick=T)):o&&(_.onQuickClick=()=>{}),_.selected=g??E?.state(),_.createPopupPanel=A,n===Si.Toolbar?s.jsx(Ui,{...y,..._,ref:t}):s.jsx(w1,{...y,..._,ref:t})}));Jn.displayName="CommandPopupButton";const Us=e=>{const{command:t,label:n,scope:o,icon:r=s.jsx(T3,{}),sx:i,...a}=e;return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:l=>l.typography.subtitle2.fontSize,...i},...a,children:[r?ze(r):null,s.jsx(Tn,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:l=>l.spacing(.25),paddingRight:l=>l.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},C1=u.memo(u.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:a,children:l,...c}=e,d=C2(t,()=>({}),[]),[p,h]=u.useState(null),{reference:f}=pa({label:"toolbar",anchor:d.current,parentFloat:i,createPopupPanel:null}),g=u.useCallback(()=>{const _=p;_&&requestAnimationFrame(()=>{d.current?.contains(document.activeElement)&&_.focus()})},[]),m=u.useMemo(()=>({dense:!0,outlined:!1}),[]),y=u.useMemo(()=>{const{commandHook:_,...A}=r||{};return{commandHook:{beforeExecute:(T,j)=>_?.beforeExecute?.(T,j)!==!1&&f.closeAll(),onExecute(T,j){_?.onExecute?.(T,j),g()},onError(T,j,C){_?.onError?.(T,j,C)}},...A}},[f,r]),x=u.useMemo(()=>({...m,...y}),[m,y]),[v,b]=u.useReducer(_=>_+1,0);W3(o,[],{onChange:()=>{b()}});const w=u.useMemo(()=>({commands:o,parentFloat:f,...y}),[v,x,f,r]);let E=0;m.dense||(E+=2),m.outlined&&E++;let S=2;m.dense||(S=4);const R=u.useMemo(()=>a({commands:o,commandButtonProps:x,commandPopupProps:{commands:o,...w,...r}}),[v,x,w,a]);return s.jsx(_j,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${S}px`,paddingBottom:`${S}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:d,onFocus:_=>{_.relatedTarget&&!p&&h(_.relatedTarget)},onBlur:_=>{p&&!d?.current?.contains(_.relatedTarget)&&h(null)},onKeyDown:_=>{p&&_.which===xr.Escape&&p.focus()},...c,children:s.jsx("div",{ref:d,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${S}px`,columnGap:`${E}px`,alignItems:"center",maxWidth:"100%"},children:R})})}));C1.displayName="CommandToolbar";const TL=e=>{const{key:t,...n}=e;return s.jsx(We,{...n},t)},sa=u.memo(u.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o,scope:r,commands:i,icon:a,quickCommand:l,popupScope:c=l,commandState:d,commandHook:p,disabled:h=!1,...f}=e;W3(i,[l,...n]);const g=u.useCallback((m,y)=>{const x={variant:Si.Menuitem,commandHook:p,commandState:d,icon:a,scope:c,disabled:h},v=[];for(let b=0;b<n?.length;b++){const w=n[b];if(w===null||w==="-"){v.push(s.jsx($t,{orientation:"horizontal"},`element-${v.length}`));continue}const E=y.getCommand(w),S={key:`${w}-${v.length}`,command:E,...x},R=o?.(S)??TL(S);R&&v.push(R)}return Nn({...m,children:v})},[h,p,d,c,n,a,o]);return s.jsx(Jn,{ref:t,commands:i,disabled:h,commandHook:p,commandState:d,scope:r,quickCommand:l,icon:a,createPopupPanel:g,...f})}));(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const $v=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),d=u.useMemo(()=>{for(let g=0;g<c.length;g++)if(c[g]?.state())return c[g].key();return c[0]?.key()},[c]),p=u.useMemo(()=>{const g=new Map;return g.set("formatAlignLeftToggle",ze(s.jsx(U6,{}))),g.set("formatAlignCenterToggle",ze(s.jsx(W6,{}))),g.set("formatAlignRightToggle",ze(s.jsx(nR,{}))),g.set("formatAlignJustifyToggle",ze(s.jsx(hc,{}))),g.set("formatAlignCenterContinuousToggle",ze(s.jsx(W6,{}))),g.set("formatAlignFillToggle",ze(s.jsx(hc,{}))),g.set("formatAlignDistributedHorizontalToggle",ze(s.jsx(hc,{}))),g},[]),h=u.useMemo(()=>{if(!o)return null;const g={...o};return delete g.beforeExecute,g},[o]),f=u.useCallback((g,m)=>{const y={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(We,{...y,command:m.getCommand("formatAlignLeftToggle"),icon:p.get("formatAlignLeftToggle")}),s.jsx(We,{...y,command:m.getCommand("formatAlignCenterToggle"),icon:p.get("formatAlignCenterToggle")}),s.jsx(We,{...y,command:m.getCommand("formatAlignRightToggle"),icon:p.get("formatAlignRightToggle")}),s.jsx(We,{...y,command:m.getCommand("formatAlignJustifyToggle"),icon:p.get("formatAlignJustifyToggle")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...y,command:m.getCommand("formatAlignCenterContinuousToggle"),icon:p.get("formatAlignCenterContinuousToggle")}),s.jsx(We,{...y,command:m.getCommand("formatAlignFillToggle"),icon:p.get("formatAlignFillToggle")}),s.jsx(We,{...y,command:m.getCommand("formatAlignDistributedHorizontalToggle"),icon:p.get("formatAlignDistributedHorizontalToggle")})]}),v=s.jsxs(Ae,{sx:{className:Eo("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:w=>w.stopPropagation(),children:[s.jsx(We,{command:m.getCommand("formatIndentDecrease"),commandHook:h,scope:r,disabled:i,icon:ze(s.jsx(MO,{}))}),s.jsx(We,{command:m.getCommand("formatIndentIncrease"),commandHook:h,scope:r,disabled:i,icon:ze(s.jsx(EO,{}))})]}),b=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...l,children:[v,s.jsx($t,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:x})]});return Nn({...g,children:b})},[i,o]);return s.jsx(Jn,{ref:t,parentFloat:a,commands:n,commandHook:o,scope:r,createPopupPanel:f,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:d,icon:p.get(d)??s.jsx(U6,{}),...l})})),Vv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),c=u.useMemo(()=>{for(let h=0;h<l.length;h++)if(l[h]?.state())return l[h].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatAlignTopToggle",ze(s.jsx(DO,{}))),h.set("formatAlignMiddleToggle",ze(s.jsx(LO,{}))),h.set("formatAlignBottomToggle",ze(s.jsx(F7,{}))),h.set("formatAlignJustifyVerticalToggle",ze(s.jsx(hc,{}))),h.set("formatAlignDistributedVerticalToggle",ze(s.jsx(hc,{}))),h},[]),p=u.useCallback((h,f)=>{const g={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(We,{...g,command:f.getCommand("formatAlignTopToggle"),icon:d.get("formatAlignTopToggle")}),s.jsx(We,{...g,command:f.getCommand("formatAlignMiddleToggle"),icon:d.get("formatAlignMiddleToggle")}),s.jsx(We,{...g,command:f.getCommand("formatAlignBottomToggle"),icon:d.get("formatAlignBottomToggle")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...g,command:f.getCommand("formatAlignJustifyVerticalToggle"),icon:d.get("formatAlignJustifyVerticalToggle")}),s.jsx(We,{...g,command:f.getCommand("formatAlignDistributedVerticalToggle"),icon:d.get("formatAlignDistributedVerticalToggle")})]});return Nn({...h,children:m})},[i,o,d]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,createPopupPanel:p,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:d.get(c)??ze(s.jsx(F7,{})),...a})})),Hv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),c=u.useMemo(()=>{for(let h=0;h<l.length;h++)if(l[h]?.state())return l[h].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatTextOverflowVisibleToggle",ze(s.jsx(U4,{}))),h.set("formatTextOverflowWrapToggle",ze(s.jsx(SI,{}))),h.set("formatTextOverflowClipToggle",ze(s.jsx(CI,{}))),h.set("formatTextOverflowShrinkToggle",ze(s.jsx(kI,{}))),h},[]),p=Te((h,f)=>{const g={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(We,{...g,command:f.getCommand("formatTextOverflowVisibleToggle"),icon:d.get("formatTextOverflowVisibleToggle")}),s.jsx(We,{...g,command:f.getCommand("formatTextOverflowWrapToggle"),icon:d.get("formatTextOverflowWrapToggle")}),s.jsx(We,{...g,command:f.getCommand("formatTextOverflowClipToggle"),icon:d.get("formatTextOverflowClipToggle")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...g,command:f.getCommand("formatTextOverflowShrinkToggle"),icon:d.get("formatTextOverflowShrinkToggle")})]});return Nn({...h,children:m})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,scope:r,label:"Text Overflow",tooltip:"Configure how text behaves when it doesn't fit within a cell.",createPopupPanel:p,icon:d.get(c)??ze(s.jsx(U4,{})),...a})})),Wv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),c=u.useMemo(()=>{for(let f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[1]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatTextRotate0",ze(s.jsx(cd,{}))),f.set("formatTextRotate315",ze(s.jsx(cd,{}))),f.set("formatTextRotate45",ze(s.jsx(D7,{}))),f.set("formatTextRotate90",ze(s.jsx(L7,{}))),f.set("formatTextRotate270",ze(s.jsx(A7,{}))),f.set("formatTextRotateCustom",ze(s.jsx(z7,{}))),f},[]),p=u.useCallback((f,g)=>{const m={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},y=s.jsxs(s.Fragment,{children:[s.jsx(We,{...m,command:g.getCommand("formatTextRotate0"),icon:ze(s.jsx(OO,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...m,command:g.getCommand("formatTextRotate315"),icon:ze(s.jsx(cd,{}))}),s.jsx(We,{...m,command:g.getCommand("formatTextRotate45"),icon:ze(s.jsx(D7,{}))}),s.jsx(We,{...m,command:g.getCommand("formatTextRotate90"),icon:ze(s.jsx(L7,{}))}),s.jsx(We,{...m,command:g.getCommand("formatTextRotate270"),icon:ze(s.jsx(A7,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(ML,{...m,command:g.getCommand("formatTextRotateCustom"),icon:ze(s.jsx(z7,{})),label:"Custom"})]});return Nn({...f,children:y})},[i,o,r]),h=u.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[l]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,scope:r,selected:h,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:p,quickCommand:h?"formatTextRotate0":"formatTextRotate315",icon:ze(d.get(c)??s.jsx(cd,{})),...a})}));function Bl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ja="$$material";var fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L8,A8,z8={exports:{}},lo={},Uv=(A8||(A8=1,z8.exports=function(){if(L8)return lo;L8=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case f:return y;default:switch(y=y&&y.$$typeof){case a:case l:case h:case p:case i:return y;default:return x}}case t:return x}}}return lo.ContextConsumer=i,lo.ContextProvider=a,lo.Element=e,lo.ForwardRef=l,lo.Fragment=n,lo.Lazy=h,lo.Memo=p,lo.Portal=t,lo.Profiler=r,lo.StrictMode=o,lo.Suspense=c,lo.SuspenseList=d,lo.isContextConsumer=function(y){return m(y)===i},lo.isContextProvider=function(y){return m(y)===a},lo.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},lo.isForwardRef=function(y){return m(y)===l},lo.isFragment=function(y){return m(y)===n},lo.isLazy=function(y){return m(y)===h},lo.isMemo=function(y){return m(y)===p},lo.isPortal=function(y){return m(y)===t},lo.isProfiler=function(y){return m(y)===r},lo.isStrictMode=function(y){return m(y)===o},lo.isSuspense=function(y){return m(y)===c},lo.isSuspenseList=function(y){return m(y)===d},lo.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},lo.typeOf=m,lo}()),z8.exports);function Ca(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function qv(e){if(Z.isValidElement(e)||Uv.isValidElementType(e)||!Ca(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=qv(e[n])}),t}function ai(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ca(e)&&Ca(t)&&Object.keys(t).forEach(r=>{Z.isValidElement(t[r])||Uv.isValidElementType(t[r])?o[r]=t[r]:Ca(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ca(e[r])?o[r]=ai(e[r],t[r],n):n.clone?o[r]=Ca(t[r])?qv(t[r]):t[r]:o[r]=t[r]}),o}function nf(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function nl(e){if(e.type)return e;if(e.charAt(0)==="#")return nl(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Bl(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Bl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ec=(e,t)=>{try{return(n=>{const o=nl(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function M2(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Kv(e){e=nl(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),M2({type:l,values:c})}function vh(e){let t=(e=nl(e)).type==="hsl"||e.type==="hsla"?nl(Kv(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hd(e,t,n){try{return function(o,r){return o=nl(o),r=nf(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,M2(o)}(e,t)}catch{return e}}function of(e,t){if(e=nl(e),t=nf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return M2(e)}function fo(e,t,n){try{return of(e,t)}catch{return e}}function rf(e,t){if(e=nl(e),t=nf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return M2(e)}function mo(e,t,n){try{return rf(e,t)}catch{return e}}function fd(e,t,n){try{return function(o,r=.15){return vh(o)>.5?of(o,r):rf(o,r)}(e,t)}catch{return e}}const Uc={black:"#000",white:"#fff"},_L={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},F8="#d32f2f",B8="#42a5f5",N8="#0288d1";function Gv(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Uc.white,default:Uc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const jL=Gv();function Zv(){return{text:{primary:Uc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Uc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const $8=Zv();function V8(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rf(e.main,r):t==="dark"&&(e.dark=of(e.main,i)))}function af(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:"#90caf9",light:"#e3f2fd",dark:B8}:{main:"#1976d2",light:B8,dark:"#1565c0"}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),l=e.error||function(m="light"){return m==="dark"?{main:"#f44336",light:"#e57373",dark:F8}:{main:F8,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:N8}:{main:N8,light:"#03a9f4",dark:"#01579b"}}(t),d=e.success||function(m="light"){return m==="dark"?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function h(m){return function(y,x){const v=vh(y),b=vh(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,$8.text.primary)>=n?$8.text.primary:jL.text.primary}const f=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(Bl(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Bl(12,y?` (${y})`:"",JSON.stringify(m.main)));return V8(m,"light",v,o),V8(m,"dark",b,o),m.contrastText||(m.contrastText=h(m.main)),m};let g;return t==="light"?g=Gv():t==="dark"&&(g=Zv()),ai({common:{...Uc},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:d,name:"success"}),grey:_L,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:o,...g},r)}var H8,W8,Ap,U8,q8,K8={exports:{}};function RL(){if(U8)return Ap;U8=1;var e=W8?H8:(W8=1,H8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Ap=function(){function o(a,l,c,d,p,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ap}function qc(){return q8||(q8=1,K8.exports=RL()()),K8.exports}function bc(e,t){return t?ai(e,t,{clone:!1}):e}const T2={xs:0,sm:600,md:900,lg:1200,xl:1536},G8={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${T2[e]}px)`},IL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:T2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ja(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||G8;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||G8;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,h){const f=h.match(/^@([^/]+)?\/?(.+)?$/);if(!f)return null;const[,g,m]=f,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:IL,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||T2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function Xv(e){if(typeof e!="string")throw new Error(Bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _2(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Ou(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:_2(e,n)||o,t&&(r=t(r,o,e)),r}function qo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=_2(a.theme,o)||{};return ja(a,l,d=>{let p=Ou(c,r,d);return d===p&&typeof d=="string"&&(p=Ou(c,r,`${t}${d==="default"?"":Xv(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const PL={m:"margin",p:"padding"},OL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Z8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},DL=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!Z8[n])return[n];n=Z8[n]}const[o,r]=n.split(""),i=PL[o],a=OL[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),Yv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function k1(e,t,n,o){const r=_2(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function lf(e){return k1(e,"spacing",8)}function E1(e,t){return typeof t=="string"||t==null?t:e(t)}function Qv(e,t){const n=lf(e.theme);return Object.keys(e).map(o=>function(r,i,a,l){if(!i.includes(a))return null;const c=function(d,p){return h=>d.reduce((f,g)=>(f[g]=E1(p,h),f),{})}(DL(a),l);return ja(r,r[a],c)}(e,t,o,n)).reduce(bc,{})}function Do(e){return Qv(e,Yv)}function Lo(e){return Qv(e,Jv)}Do.propTypes={},Do.filterProps=Yv,Lo.propTypes={},Lo.filterProps=Jv;const X8=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function zp(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,h)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(f=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>f.includes(x))||f[f.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),X8(i,d,`var(${m})`,h),X8(a,d,`var(${m}, ${y})`,h)}var f,g},c=d=>d[0]==="vars",function d(p,h=[],f=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...h,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...h,g],Array.isArray(m)?[...f,g]:f):l([...h,g],m,f))})}(e),{css:r,vars:i,varsWithDefaults:a}}function LL(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}function Du(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?bc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function vi(e){return typeof e!="number"?e:`${e}px solid`}function Pi(e,t){return qo({prop:e,themeKey:"borders",transform:t})}const AL=Pi("border",vi),zL=Pi("borderTop",vi),FL=Pi("borderRight",vi),BL=Pi("borderBottom",vi),NL=Pi("borderLeft",vi),$L=Pi("borderColor"),VL=Pi("borderTopColor"),HL=Pi("borderRightColor"),WL=Pi("borderBottomColor"),UL=Pi("borderLeftColor"),qL=Pi("outline",vi),KL=Pi("outlineColor"),Zd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=k1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:E1(t,o)});return ja(e,e.borderRadius,n)}return null};Zd.propTypes={},Zd.filterProps=["borderRadius"],Du(AL,zL,FL,BL,NL,$L,VL,HL,WL,UL,Zd,qL,KL);const Lu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=k1(e.theme,"spacing",8),n=o=>({gap:E1(t,o)});return ja(e,e.gap,n)}return null};Lu.propTypes={},Lu.filterProps=["gap"];const Au=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=k1(e.theme,"spacing",8),n=o=>({columnGap:E1(t,o)});return ja(e,e.columnGap,n)}return null};Au.propTypes={},Au.filterProps=["columnGap"];const Xd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=k1(e.theme,"spacing",8),n=o=>({rowGap:E1(t,o)});return ja(e,e.rowGap,n)}return null};function Ms(e,t){return t==="grey"?t:e}function ti(e){return e<=1&&e!==0?100*e+"%":e}Xd.propTypes={},Xd.filterProps=["rowGap"],Du(Lu,Au,Xd,qo({prop:"gridColumn"}),qo({prop:"gridRow"}),qo({prop:"gridAutoFlow"}),qo({prop:"gridAutoColumns"}),qo({prop:"gridAutoRows"}),qo({prop:"gridTemplateColumns"}),qo({prop:"gridTemplateRows"}),qo({prop:"gridTemplateAreas"}),qo({prop:"gridArea"})),Du(qo({prop:"color",themeKey:"palette",transform:Ms}),qo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ms}),qo({prop:"backgroundColor",themeKey:"palette",transform:Ms}));const GL=qo({prop:"width",transform:ti}),sf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||T2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ti(n)}};return ja(e,e.maxWidth,t)}return null};sf.filterProps=["maxWidth"];const ZL=qo({prop:"minWidth",transform:ti}),XL=qo({prop:"height",transform:ti}),YL=qo({prop:"maxHeight",transform:ti}),JL=qo({prop:"minHeight",transform:ti});qo({prop:"size",cssProperty:"width",transform:ti}),qo({prop:"size",cssProperty:"height",transform:ti}),Du(GL,sf,ZL,XL,YL,JL,qo({prop:"boxSizing"}));const j2={border:{themeKey:"borders",transform:vi},borderTop:{themeKey:"borders",transform:vi},borderRight:{themeKey:"borders",transform:vi},borderBottom:{themeKey:"borders",transform:vi},borderLeft:{themeKey:"borders",transform:vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zd},color:{themeKey:"palette",transform:Ms},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ms},backgroundColor:{themeKey:"palette",transform:Ms},p:{style:Lo},pt:{style:Lo},pr:{style:Lo},pb:{style:Lo},pl:{style:Lo},px:{style:Lo},py:{style:Lo},padding:{style:Lo},paddingTop:{style:Lo},paddingRight:{style:Lo},paddingBottom:{style:Lo},paddingLeft:{style:Lo},paddingX:{style:Lo},paddingY:{style:Lo},paddingInline:{style:Lo},paddingInlineStart:{style:Lo},paddingInlineEnd:{style:Lo},paddingBlock:{style:Lo},paddingBlockStart:{style:Lo},paddingBlockEnd:{style:Lo},m:{style:Do},mt:{style:Do},mr:{style:Do},mb:{style:Do},ml:{style:Do},mx:{style:Do},my:{style:Do},margin:{style:Do},marginTop:{style:Do},marginRight:{style:Do},marginBottom:{style:Do},marginLeft:{style:Do},marginX:{style:Do},marginY:{style:Do},marginInline:{style:Do},marginInlineStart:{style:Do},marginInlineEnd:{style:Do},marginBlock:{style:Do},marginBlockStart:{style:Do},marginBlockEnd:{style:Do},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Lu},rowGap:{style:Xd},columnGap:{style:Au},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ti},maxWidth:{style:sf},minWidth:{transform:ti},height:{transform:ti},maxHeight:{transform:ti},minHeight:{transform:ti},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},o0=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const h=_2(o,c)||{};return p?p(i):ja(i,n,f=>{let g=Ou(h,d,f);return f===g&&typeof f=="string"&&(g=Ou(h,d,`${t}${f==="default"?"":Xv(f)}`,f)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??j2;function a(l){let c=l;if(typeof l=="function")c=l(r);else if(typeof l!="object")return l;if(!c)return null;const d=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),p=Object.keys(d);let h=d;return Object.keys(c).forEach(g=>{const m=typeof(y=c[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(i[g])h=bc(h,e(g,m,r,i));else{const x=ja({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((E,S)=>E.concat(Object.keys(S)),[]),w=new Set(b);return v.every(E=>w.size===Object.keys(E).length)})(x,m)?h[g]=t({sx:m,theme:r}):h=bc(h,x)}else h=bc(h,e(g,m,r,i))}),function(g,m){if(!g.containerQueries)return m;const y=Object.keys(m).filter(x=>x.startsWith("@container")).sort((x,v)=>{const b=/min-width:\s*([0-9.]+)/;return+(x.match(b)?.[1]||0)-+(v.match(b)?.[1]||0)});return y.length?y.reduce((x,v)=>{const b=m[v];return delete x[v],x[v]=b,x},{...m}):m}(r,(f=h,p.reduce((g,m)=>{const y=g[m];return(!y||Object.keys(y).length===0)&&delete g[m],g},f)));var f}return Array.isArray(o)?o.map(a):a(o)}}();o0.filterProps=["sx"];const QL={borderRadius:4};function eA(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function ew(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=function(d){const{values:p={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:h="px",step:f=5,...g}=d,m=(w=>{const E=Object.keys(w).map(S=>({key:S,val:w[S]}))||[];return E.sort((S,R)=>S.val-R.val),E.reduce((S,R)=>({...S,[R.key]:R.val}),{})})(p),y=Object.keys(m);function x(w){return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${h})`}function v(w){return`@media (max-width:${(typeof p[w]=="number"?p[w]:w)-f/100}${h})`}function b(w,E){const S=y.indexOf(E);return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${h}) and (max-width:${(S!==-1&&typeof p[y[S]]=="number"?p[y[S]]:E)-f/100}${h})`}return{keys:y,values:m,up:x,down:v,between:b,only:function(w){return y.indexOf(w)+1<y.length?b(w,y[y.indexOf(w)+1]):x(w)},not:function(w){const E=y.indexOf(w);return E===0?x(y[1]):E===y.length-1?v(y[E]):b(w,y[y.indexOf(w)+1]).replace("@media","@media not all and")},unit:h,...g}}(n);let c=ai({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(d=8,p=lf({spacing:d})){if(d.mui)return d;const h=(...f)=>(f.length===0?[1]:f).map(g=>{const m=p(g);return typeof m=="number"?`${m}px`:m}).join(" ");return h.mui=!0,h}(r),shape:{...QL,...i}},a);return c=function(d){const p=(m,y)=>m.replace("@media",y?`@container ${y}`:"@container");function h(m,y){m.up=(...x)=>p(d.breakpoints.up(...x),y),m.down=(...x)=>p(d.breakpoints.down(...x),y),m.between=(...x)=>p(d.breakpoints.between(...x),y),m.only=(...x)=>p(d.breakpoints.only(...x),y),m.not=(...x)=>{const v=p(d.breakpoints.not(...x),y);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const f={},g=m=>(h(f,m),f);return h(g),{...d,containerQueries:g}}(c),c.applyStyles=eA,c=t.reduce((d,p)=>ai(d,p),c),c.unstable_sxConfig={...j2,...a?.unstable_sxConfig},c.unstable_sx=function(d){return o0({sx:d,theme:this})},c}const Y8={textTransform:"uppercase"},J8='"Roboto", "Helvetica", "Arial", sans-serif';function tw(e,t){const{fontFamily:n=J8,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,f=o/14,g=p||(x=>x/c*f+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===J8?{letterSpacing:(S=w/v,Math.round(1e5*S)/1e5+"em")}:{},...E,...d};var S},y={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Y8),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Y8),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ai({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},h,{clone:!1})}function ko(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tA=["none",ko(0,2,1,-1,0,1,1,0,0,1,3,0),ko(0,3,1,-2,0,2,2,0,0,1,5,0),ko(0,3,3,-2,0,3,4,0,0,1,8,0),ko(0,2,4,-1,0,4,5,0,0,1,10,0),ko(0,3,5,-1,0,5,8,0,0,1,14,0),ko(0,3,5,-1,0,6,10,0,0,1,18,0),ko(0,4,5,-2,0,7,10,1,0,2,16,1),ko(0,5,5,-3,0,8,10,1,0,3,14,2),ko(0,5,6,-3,0,9,12,1,0,3,16,2),ko(0,6,6,-3,0,10,14,1,0,4,18,3),ko(0,6,7,-4,0,11,15,1,0,4,20,3),ko(0,7,8,-4,0,12,17,2,0,5,22,4),ko(0,7,8,-4,0,13,19,2,0,5,24,4),ko(0,7,9,-4,0,14,21,2,0,5,26,4),ko(0,8,9,-5,0,15,22,2,0,6,28,5),ko(0,8,10,-5,0,16,24,2,0,6,30,5),ko(0,8,11,-5,0,17,26,2,0,6,32,5),ko(0,9,11,-5,0,18,28,2,0,7,34,6),ko(0,9,12,-6,0,19,29,2,0,7,36,6),ko(0,10,13,-6,0,20,31,3,0,8,38,7),ko(0,10,13,-6,0,21,33,3,0,8,40,7),ko(0,10,14,-6,0,22,35,3,0,8,42,7),ko(0,11,14,-7,0,23,36,3,0,9,44,8),ko(0,11,15,-7,0,24,38,3,0,9,46,8)],nA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Q8(e){return`${Math.round(e)}ms`}function rA(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function iA(e){const t={...nA,...e.easing},n={...oA,...e.duration};return{getAutoHeightDuration:rA,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Q8(i)} ${a} ${typeof l=="string"?l:Q8(l)}`).join(",")},...e,easing:t,duration:n}}const aA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lA(e){return Ca(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function nw(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!lA(l)||a.startsWith("unstable_")?delete o[a]:Ca(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
147
|
+
|
|
148
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
149
|
+
|
|
150
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
151
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
152
|
+
|
|
153
|
+
export default theme;`}function wh(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Bl(20));const p=af(i),h=ew(e);let f=ai(h,{mixins:(g=h.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:tA.slice(),typography:tw(p,l),transitions:iA(a),zIndex:{...aA}});var g,m;return f=ai(f,d),f=t.reduce((y,x)=>ai(y,x),f),f.unstable_sxConfig={...j2,...d?.unstable_sxConfig},f.unstable_sx=function(y){return o0({sx:y,theme:this})},f.toRuntimeSource=nw,f}function Hn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const sA=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Hn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function e9(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function t9(e){return e==="dark"?sA:[]}function cA(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const dA=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var a;return o};function st(e,t,n){!e[t]&&n&&(e[t]=n)}function tc(e){return typeof e=="string"&&e.startsWith("hsl")?Kv(e):e}function ya(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ec(tc(e[t])))}const Ji=e=>{try{return e()}catch{}};function Fp(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...h}=l,f=af(c);return{palette:f,opacity:{...e9(f.mode),...d},overlays:p||t9(f.mode),...h}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=wh({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...e9(r),...t?.opacity},overlays:t?.overlays||t9(r)},a}function n9(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:af({...n===!0?{}:n.palette,mode:t})})}function ow(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return wh(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=wh({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},n9(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},n9(h,"light",d.light)),h}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...h){const{colorSchemes:f={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=cA,colorSchemeSelector:v=f.light&&f.dark?"media":void 0,rootSelector:b=":root",...w}=p,E=Object.keys(f)[0],S=g||(f.light&&E!=="light"?"light":E),R=((B="mui")=>l3(B))(y),{[S]:_,light:A,dark:T,...j}=f,C={...j};let k=_;if((S==="dark"&&!("dark"in f)||S==="light"&&!("light"in f))&&(k=!0),!k)throw new Error(Bl(21,S));const P=Fp(C,k,w,S);A&&!C.light&&Fp(C,A,void 0,"light"),T&&!C.dark&&Fp(C,T,void 0,"dark");let O={defaultColorScheme:S,...P,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:R,colorSchemes:C,font:{...LL(P.typography),...P.font},spacing:(I=w.spacing,typeof I=="number"?`${I}px`:typeof I=="string"||typeof I=="function"||Array.isArray(I)?I:"8px")};var I;Object.keys(O.colorSchemes).forEach(B=>{const M=O.colorSchemes[B].palette,N=U=>{const J=U.split("-"),X=J[1],H=J[2];return R(U,M[X][H])};var V;if(M.mode==="light"&&(st(M.common,"background","#fff"),st(M.common,"onBackground","#000")),M.mode==="dark"&&(st(M.common,"background","#000"),st(M.common,"onBackground","#fff")),V=M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{V[U]||(V[U]={})}),M.mode==="light"){st(M.Alert,"errorColor",fo(M.error.light,.6)),st(M.Alert,"infoColor",fo(M.info.light,.6)),st(M.Alert,"successColor",fo(M.success.light,.6)),st(M.Alert,"warningColor",fo(M.warning.light,.6)),st(M.Alert,"errorFilledBg",N("palette-error-main")),st(M.Alert,"infoFilledBg",N("palette-info-main")),st(M.Alert,"successFilledBg",N("palette-success-main")),st(M.Alert,"warningFilledBg",N("palette-warning-main")),st(M.Alert,"errorFilledColor",Ji(()=>M.getContrastText(M.error.main))),st(M.Alert,"infoFilledColor",Ji(()=>M.getContrastText(M.info.main))),st(M.Alert,"successFilledColor",Ji(()=>M.getContrastText(M.success.main))),st(M.Alert,"warningFilledColor",Ji(()=>M.getContrastText(M.warning.main))),st(M.Alert,"errorStandardBg",mo(M.error.light,.9)),st(M.Alert,"infoStandardBg",mo(M.info.light,.9)),st(M.Alert,"successStandardBg",mo(M.success.light,.9)),st(M.Alert,"warningStandardBg",mo(M.warning.light,.9)),st(M.Alert,"errorIconColor",N("palette-error-main")),st(M.Alert,"infoIconColor",N("palette-info-main")),st(M.Alert,"successIconColor",N("palette-success-main")),st(M.Alert,"warningIconColor",N("palette-warning-main")),st(M.AppBar,"defaultBg",N("palette-grey-100")),st(M.Avatar,"defaultBg",N("palette-grey-400")),st(M.Button,"inheritContainedBg",N("palette-grey-300")),st(M.Button,"inheritContainedHoverBg",N("palette-grey-A100")),st(M.Chip,"defaultBorder",N("palette-grey-400")),st(M.Chip,"defaultAvatarColor",N("palette-grey-700")),st(M.Chip,"defaultIconColor",N("palette-grey-700")),st(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),st(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),st(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),st(M.LinearProgress,"primaryBg",mo(M.primary.main,.62)),st(M.LinearProgress,"secondaryBg",mo(M.secondary.main,.62)),st(M.LinearProgress,"errorBg",mo(M.error.main,.62)),st(M.LinearProgress,"infoBg",mo(M.info.main,.62)),st(M.LinearProgress,"successBg",mo(M.success.main,.62)),st(M.LinearProgress,"warningBg",mo(M.warning.main,.62)),st(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),st(M.Slider,"primaryTrack",mo(M.primary.main,.62)),st(M.Slider,"secondaryTrack",mo(M.secondary.main,.62)),st(M.Slider,"errorTrack",mo(M.error.main,.62)),st(M.Slider,"infoTrack",mo(M.info.main,.62)),st(M.Slider,"successTrack",mo(M.success.main,.62)),st(M.Slider,"warningTrack",mo(M.warning.main,.62));const U=fd(M.background.default,.8);st(M.SnackbarContent,"bg",U),st(M.SnackbarContent,"color",Ji(()=>M.getContrastText(U))),st(M.SpeedDialAction,"fabHoverBg",fd(M.background.paper,.15)),st(M.StepConnector,"border",N("palette-grey-400")),st(M.StepContent,"border",N("palette-grey-400")),st(M.Switch,"defaultColor",N("palette-common-white")),st(M.Switch,"defaultDisabledColor",N("palette-grey-100")),st(M.Switch,"primaryDisabledColor",mo(M.primary.main,.62)),st(M.Switch,"secondaryDisabledColor",mo(M.secondary.main,.62)),st(M.Switch,"errorDisabledColor",mo(M.error.main,.62)),st(M.Switch,"infoDisabledColor",mo(M.info.main,.62)),st(M.Switch,"successDisabledColor",mo(M.success.main,.62)),st(M.Switch,"warningDisabledColor",mo(M.warning.main,.62)),st(M.TableCell,"border",mo(hd(M.divider,1),.88)),st(M.Tooltip,"bg",hd(M.grey[700],.92))}if(M.mode==="dark"){st(M.Alert,"errorColor",mo(M.error.light,.6)),st(M.Alert,"infoColor",mo(M.info.light,.6)),st(M.Alert,"successColor",mo(M.success.light,.6)),st(M.Alert,"warningColor",mo(M.warning.light,.6)),st(M.Alert,"errorFilledBg",N("palette-error-dark")),st(M.Alert,"infoFilledBg",N("palette-info-dark")),st(M.Alert,"successFilledBg",N("palette-success-dark")),st(M.Alert,"warningFilledBg",N("palette-warning-dark")),st(M.Alert,"errorFilledColor",Ji(()=>M.getContrastText(M.error.dark))),st(M.Alert,"infoFilledColor",Ji(()=>M.getContrastText(M.info.dark))),st(M.Alert,"successFilledColor",Ji(()=>M.getContrastText(M.success.dark))),st(M.Alert,"warningFilledColor",Ji(()=>M.getContrastText(M.warning.dark))),st(M.Alert,"errorStandardBg",fo(M.error.light,.9)),st(M.Alert,"infoStandardBg",fo(M.info.light,.9)),st(M.Alert,"successStandardBg",fo(M.success.light,.9)),st(M.Alert,"warningStandardBg",fo(M.warning.light,.9)),st(M.Alert,"errorIconColor",N("palette-error-main")),st(M.Alert,"infoIconColor",N("palette-info-main")),st(M.Alert,"successIconColor",N("palette-success-main")),st(M.Alert,"warningIconColor",N("palette-warning-main")),st(M.AppBar,"defaultBg",N("palette-grey-900")),st(M.AppBar,"darkBg",N("palette-background-paper")),st(M.AppBar,"darkColor",N("palette-text-primary")),st(M.Avatar,"defaultBg",N("palette-grey-600")),st(M.Button,"inheritContainedBg",N("palette-grey-800")),st(M.Button,"inheritContainedHoverBg",N("palette-grey-700")),st(M.Chip,"defaultBorder",N("palette-grey-700")),st(M.Chip,"defaultAvatarColor",N("palette-grey-300")),st(M.Chip,"defaultIconColor",N("palette-grey-300")),st(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),st(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),st(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),st(M.LinearProgress,"primaryBg",fo(M.primary.main,.5)),st(M.LinearProgress,"secondaryBg",fo(M.secondary.main,.5)),st(M.LinearProgress,"errorBg",fo(M.error.main,.5)),st(M.LinearProgress,"infoBg",fo(M.info.main,.5)),st(M.LinearProgress,"successBg",fo(M.success.main,.5)),st(M.LinearProgress,"warningBg",fo(M.warning.main,.5)),st(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),st(M.Slider,"primaryTrack",fo(M.primary.main,.5)),st(M.Slider,"secondaryTrack",fo(M.secondary.main,.5)),st(M.Slider,"errorTrack",fo(M.error.main,.5)),st(M.Slider,"infoTrack",fo(M.info.main,.5)),st(M.Slider,"successTrack",fo(M.success.main,.5)),st(M.Slider,"warningTrack",fo(M.warning.main,.5));const U=fd(M.background.default,.98);st(M.SnackbarContent,"bg",U),st(M.SnackbarContent,"color",Ji(()=>M.getContrastText(U))),st(M.SpeedDialAction,"fabHoverBg",fd(M.background.paper,.15)),st(M.StepConnector,"border",N("palette-grey-600")),st(M.StepContent,"border",N("palette-grey-600")),st(M.Switch,"defaultColor",N("palette-grey-300")),st(M.Switch,"defaultDisabledColor",N("palette-grey-600")),st(M.Switch,"primaryDisabledColor",fo(M.primary.main,.55)),st(M.Switch,"secondaryDisabledColor",fo(M.secondary.main,.55)),st(M.Switch,"errorDisabledColor",fo(M.error.main,.55)),st(M.Switch,"infoDisabledColor",fo(M.info.main,.55)),st(M.Switch,"successDisabledColor",fo(M.success.main,.55)),st(M.Switch,"warningDisabledColor",fo(M.warning.main,.55)),st(M.TableCell,"border",fo(hd(M.divider,1),.68)),st(M.Tooltip,"bg",hd(M.grey[700],.92))}ya(M.background,"default"),ya(M.background,"paper"),ya(M.common,"background"),ya(M.common,"onBackground"),ya(M,"divider"),Object.keys(M).forEach(U=>{const J=M[U];U!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&st(M[U],"mainChannel",ec(tc(J.main))),J.light&&st(M[U],"lightChannel",ec(tc(J.light))),J.dark&&st(M[U],"darkChannel",ec(tc(J.dark))),J.contrastText&&st(M[U],"contrastTextChannel",ec(tc(J.contrastText))),U==="text"&&(ya(M[U],"primary"),ya(M[U],"secondary")),U==="action"&&(J.active&&ya(M[U],"active"),J.selected&&ya(M[U],"selected")))})}),O=h.reduce((B,M)=>ai(B,M),O);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:dA(O)},{vars:L,generateThemeVars:D,generateStyleSheets:F}=function(B,M={}){const{getSelector:N=ce,disableCssColorScheme:V,colorSchemeSelector:U}=M,{colorSchemes:J={},components:X,defaultColorScheme:H="light",...ne}=B,{vars:oe,css:ge,varsWithDefaults:de}=zp(ne,M);let ye=de;const ve={},{[H]:be,...re}=J;if(Object.entries(re||{}).forEach(([we,ae])=>{const{vars:Y,css:le,varsWithDefaults:ee}=zp(ae,M);ye=ai(ye,ee),ve[we]={css:le,vars:Y}}),be){const{css:we,vars:ae,varsWithDefaults:Y}=zp(be,M);ye=ai(ye,Y),ve[H]={css:we,vars:ae}}function ce(we,ae){let Y=U;if(U==="class"&&(Y=".%s"),U==="data"&&(Y="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(Y=`[${U}="%s"]`),we){if(Y==="media")return B.defaultColorScheme===we?":root":{[`@media (prefers-color-scheme: ${J[we]?.palette?.mode||we})`]:{":root":ae}};if(Y)return B.defaultColorScheme===we?`:root, ${Y.replace("%s",String(we))}`:Y.replace("%s",String(we))}return":root"}return{vars:ye,generateThemeVars:()=>{let we={...oe};return Object.entries(ve).forEach(([,{vars:ae}])=>{we=ai(we,ae)}),we},generateStyleSheets:()=>{const we=[],ae=B.defaultColorScheme||"light";function Y(Ie,Me){Object.keys(Me).length&&we.push(typeof Ie=="string"?{[Ie]:{...Me}}:Ie)}Y(N(void 0,{...ge}),ge);const{[ae]:le,...ee}=ve;if(le){const{css:Ie}=le,Me=J[ae]?.palette?.mode,ot=!V&&Me?{colorScheme:Me,...Ie}:{...Ie};Y(N(ae,{...ot}),ot)}return Object.entries(ee).forEach(([Ie,{css:Me}])=>{const ot=J[Ie]?.palette?.mode,Ve=!V&&ot?{colorScheme:ot,...Me}:{...Me};Y(N(Ie,{...Ve}),Ve)}),we}}}(O,z);return O.vars=L,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([B,M])=>{O[B]=M}),O.generateThemeVars=D,O.generateStyleSheets=F,O.generateSpacing=function(){return i2(w.spacing,lf(this))},O.getColorSchemeSelector=function(B){return function(M){return B==="media"?`@media (prefers-color-scheme: ${M})`:B?B.startsWith("data-")&&!B.includes("%s")?`[${B}="${M}"] &`:B==="class"?`.${M} &`:B==="data"?`[data-${M}] &`:`${B.replace("%s",M)} &`:"&"}}(v),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=x,O.unstable_sxConfig={...j2,...w?.unstable_sxConfig},O.unstable_sx=function(B){return o0({sx:B,theme:this})},O.toRuntimeSource=nw,O}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const rw=ow();function qi(){const e=p1(rw);return e[Ja]||e}function uA({theme:e,...t}){const n=Ja in e?e[Ja]:void 0;return s.jsx(qy,{...t,themeId:n?Ja:void 0,theme:n||e})}const{CssVarsProvider:pA}=function(e){const{themeId:t,theme:n={},modeStorageKey:o=x5,colorSchemeStorageKey:r=b5,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=Z.createContext(void 0),p={},h={},f=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:function(m){const{children:y,theme:x,modeStorageKey:v=o,colorSchemeStorageKey:b=r,disableTransitionOnChange:w=i,storageManager:E,storageWindow:S=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:A=!1,disableStyleSheetGeneration:T=!1,defaultMode:j="system",noSsr:C}=m,k=Z.useRef(!1),P=a3(),O=Z.useContext(d),I=!!O&&!A,z=Z.useMemo(()=>x||(typeof n=="function"?n():n),[x]),L=z[t],D=L||z,{colorSchemes:F=p,components:B=h,cssVarPrefix:M}=D,N=Object.keys(F).filter(ee=>!!F[ee]).join(","),V=Z.useMemo(()=>N.split(","),[N]),U=typeof a=="string"?a:a.light,J=typeof a=="string"?a:a.dark,X=F[U]&&F[J]?j:F[D.defaultColorScheme]?.palette?.mode||D.palette?.mode,{mode:H,setMode:ne,systemMode:oe,lightColorScheme:ge,darkColorScheme:de,colorScheme:ye,setColorScheme:ve}=NE({supportedColorSchemes:V,defaultLightColorScheme:U,defaultDarkColorScheme:J,modeStorageKey:v,colorSchemeStorageKey:b,defaultMode:X,storageManager:E,storageWindow:S,noSsr:C});let be=H,re=ye;I&&(be=O.mode,re=O.colorScheme);const ce=Z.useMemo(()=>{const ee=re||D.defaultColorScheme,Ie=D.generateThemeVars?.()||D.vars,Me={...D,components:B,colorSchemes:F,cssVarPrefix:M,vars:Ie};if(typeof Me.generateSpacing=="function"&&(Me.spacing=Me.generateSpacing()),ee){const ot=F[ee];ot&&typeof ot=="object"&&Object.keys(ot).forEach(Ve=>{ot[Ve]&&typeof ot[Ve]=="object"?Me[Ve]={...Me[Ve],...ot[Ve]}:Me[Ve]=ot[Ve]})}return l?l(Me):Me},[D,re,B,F,M]),we=D.colorSchemeSelector;qr(()=>{if(re&&_&&we&&we!=="media"){const ee=we;let Ie=we;if(ee==="class"&&(Ie=".%s"),ee==="data"&&(Ie="[data-%s]"),ee?.startsWith("data-")&&!ee.includes("%s")&&(Ie=`[${ee}="%s"]`),Ie.startsWith("."))_.classList.remove(...V.map(Me=>Ie.substring(1).replace("%s",Me))),_.classList.add(Ie.substring(1).replace("%s",re));else{const Me=Ie.replace("%s",re).match(/\[([^\]]+)\]/);if(Me){const[ot,Ve]=Me[1].split("=");Ve||V.forEach(Ce=>{_.removeAttribute(ot.replace(re,Ce))}),_.setAttribute(ot,Ve?Ve.replace(/"|'/g,""):"")}else _.setAttribute(Ie,re)}}},[re,we,_,V]),Z.useEffect(()=>{let ee;if(w&&k.current&&R){const Ie=R.createElement("style");Ie.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(Ie),window.getComputedStyle(R.body),ee=setTimeout(()=>{R.head.removeChild(Ie)},1)}return()=>{clearTimeout(ee)}},[re,w,R]),Z.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const ae=Z.useMemo(()=>({allColorSchemes:V,colorScheme:re,darkColorScheme:de,lightColorScheme:ge,mode:be,setColorScheme:ve,setMode:ne,systemMode:oe}),[V,re,de,ge,be,ve,ne,oe,ce.colorSchemeSelector]);let Y=!0;(T||D.cssVariables===!1||I&&P?.cssVarPrefix===M)&&(Y=!1);const le=s.jsxs(Z.Fragment,{children:[s.jsx(qy,{themeId:L?t:void 0,theme:ce,children:y}),Y&&s.jsx(ky,{styles:ce.generateStyleSheets?.()||[]})]});return I?le:s.jsx(d.Provider,{value:ae,children:le})},useColorScheme:()=>Z.useContext(d)||c,getInitColorSchemeScript:m=>function(y){const{defaultMode:x="system",defaultLightColorScheme:v="light",defaultDarkColorScheme:b="dark",modeStorageKey:w=x5,colorSchemeStorageKey:E=b5,attribute:S=zE,colorSchemeNode:R="document.documentElement",nonce:_}=y||{};let A="",T=S;if(S==="class"&&(T=".%s"),S==="data"&&(T="[data-%s]"),T.startsWith(".")){const C=T.substring(1);A+=`${R}.classList.remove('${C}'.replace('%s', light), '${C}'.replace('%s', dark));
|
|
154
|
+
${R}.classList.add('${C}'.replace('%s', colorScheme));`}const j=T.match(/\[([^\]]+)\]/);if(j){const[C,k]=j[1].split("=");k||(A+=`${R}.removeAttribute('${C}'.replace('%s', light));
|
|
155
|
+
${R}.removeAttribute('${C}'.replace('%s', dark));`),A+=`
|
|
156
|
+
${R}.setAttribute('${C}'.replace('%s', colorScheme), ${k?`${k}.replace('%s', colorScheme)`:'""'});`}else A+=`${R}.setAttribute('${T}', colorScheme);`;return s.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?_:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
157
|
+
try {
|
|
158
|
+
let colorScheme = '';
|
|
159
|
+
const mode = localStorage.getItem('${w}') || '${x}';
|
|
160
|
+
const dark = localStorage.getItem('${E}-dark') || '${b}';
|
|
161
|
+
const light = localStorage.getItem('${E}-light') || '${v}';
|
|
162
|
+
if (mode === 'system') {
|
|
163
|
+
// handle system mode
|
|
164
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
165
|
+
if (mql.matches) {
|
|
166
|
+
colorScheme = dark
|
|
167
|
+
} else {
|
|
168
|
+
colorScheme = light
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (mode === 'light') {
|
|
172
|
+
colorScheme = light;
|
|
173
|
+
}
|
|
174
|
+
if (mode === 'dark') {
|
|
175
|
+
colorScheme = dark;
|
|
176
|
+
}
|
|
177
|
+
if (colorScheme) {
|
|
178
|
+
${A}
|
|
179
|
+
}
|
|
180
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:r,defaultLightColorScheme:f,defaultDarkColorScheme:g,modeStorageKey:o,...m})}}({themeId:Ja,theme:()=>ow({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t={...e,typography:tw(e.palette,e.typography)};return t.unstable_sx=function(n){return o0({sx:n,theme:this})},t}}),hA=pA;function iw({theme:e,...t}){const n=Z.useMemo(()=>{if(typeof e=="function")return e;const o=Ja in e?e[Ja]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?s.jsx(uA,{theme:n,...t}):s.jsx(hA,{theme:e,...t})}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-grid_h9wwa_7{position:relative;box-sizing:border-box;user-select:none}._sheetxl-grid_h9wwa_7 *{box-sizing:border-box!important}._sheetxl-grid_h9wwa_7 *:focus{outline:none}._sheetxl-grid_h9wwa_7 .cell-container{position:absolute;overflow:visible;white-space:pre}._sheetxl-grid_h9wwa_7 .cell-container>*{inset:0;position:absolute}._sheetxl-grid_h9wwa_7 .sheetxl-stage{contain:strict}._sheetxl-grid_h9wwa_7 .sheetxl-stage>*{contain:strict}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const oo="up",ro="down",to="left",qn="right",zu="tl",Kc="t",Gc="l",Jr="c",Or="text/html",za="text/plain",Bp="image/png",fA=Object.freeze({left:0,top:0}),mA=Object.freeze({left:0,top:0,bottom:0,right:0}),gA=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:gA,EmptyRect:mA,EmptyTopLeft:fA},Symbol.toStringTag,{value:"Module"}));const Vr="column",Ea="row",yA=Object.freeze({colIndex:0,rowIndex:0}),xA=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),aw=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,lw=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,bA=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,vA=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,o9=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,r9=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,sw=(e=Ea,t=!1)=>t?e!==Vr?bA:vA:e!==Vr?lw:aw,i9=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Sh=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Ch=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),a9=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Sh(e[n],t[n]))return!1;return!0},Np=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},l9=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];Ch(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},wA=[null,null],SA=(e,t,n)=>{if(e[0].value===e[1].value)return t};function s9(e,t=2,n,o=Ea,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Vr,l=0,c=!1;do{const d=i.sort(sw(a?Ea:Vr));i=[],i.push(d[0]);const p=d.length;let h=0,f=d[0],g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?f&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:f&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(f.value!==void 0&&(E.value=f.value),n){const S=r??[null,null];S[0]=f,S[1]=b,E=n(S,E,o)}if(E){i[h]=E,c=!0,f=E,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd;continue}}i[++h]=b,f=b,g=f.colStart,m=f.rowStart,y=f.colEnd,x=f.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}const Wt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:yA,EmptyRange:xA,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:o9,columnFirstRangeComparator:aw,createCellComparator:(e=Ea,t=!1)=>t?e!==Vr?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==Vr?r9:o9,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const h=d!==void 0;if(h){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const f=t?l:c,g=t?c:l;o={colStart:f,rowStart:g,colEnd:f,rowEnd:g},h&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?s9(n,3,l===!0?SA:l,t?Vr:Ea,wA):n)}},createRangeComparator:sw,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:l9,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Sh(n,o);)o=n,n=l9(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(Ch(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:i9,isEqualRanges:Sh,isEqualRangesArrays:a9,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!i9(e.cell,t.cell)&&a9(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Ch,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:s9,rowFirstCellComparator:r9,rowFirstRangeComparator:lw,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:Np,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=Np(o,e[r],n);return t&&(o=Np(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),CA=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function kA(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===CA}(e)}function nc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Nl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function EA(e,t,n){return e.concat(t).map(function(o){return nc(o,n)})}function c9(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function d9(e,t){try{return t in e}catch{return!1}}function Nl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||EA,n.isMergeableObject=n.isMergeableObject||kA,n.cloneUnlessOtherwiseSpecified=nc;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&c9(r).forEach(function(c){l[c]=nc(r[c],a)}),c9(i).forEach(function(c){var d,p;d9(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(d9(r,c)&&a.isMergeableObject(i[c])?l[c]=function(h,f){if(!f.customMerge)return Nl;const g=f.customMerge(h);return typeof g=="function"?g:Nl}(c,a)(r[c],i[c],a):l[c]=nc(i[c],a))}),l}(e,t,n):nc(t,n)}Nl.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Nl(n,o,t)},{})};const MA=Object.freeze([]),TA=Object.freeze({}),u9=e=>e,Yd=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),cw=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),L0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,dw=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?dw(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),_A=(e,t)=>!(e!==t&&!cw(e,t)&&!e.isEqual?.(t)),uw=(e,t,n=_A)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const a=o[i];uw(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},p9=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),h9=e=>e==null,f9=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),m9=!(typeof window>"u"||!window.document||!window.document.createElement),Dr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Zc=()=>{if(pw())return Dr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Dr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Dr.MacOS:/(iphone|ipad|ipod)/i.test(e)?Dr.IOS:/android/.test(e)?Dr.Android:/linux/.test(e)?Dr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Dr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Dr.Firefox:Dr.Unknown:Dr.Unknown};function pw(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const g9=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Qo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:MA,EmptyObject:TA,OSType:Dr,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:m9,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>h9(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:Nl,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=u9){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=u9){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!L0(a))return a;o=a}return o??null},getOS:Zc,hasFocus:g9,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:cw,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:pw,isNullOrUndefined:h9,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:L0,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:f9,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!L0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Nl(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!m9)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:dw,removeEqualValues:uw,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=p9(),o={id:requestAnimationFrame(function r(){p9()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!L0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!L0(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!f9(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),l(),i(),a()):(i(),a(),l(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Yd,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{g9(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const hw=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},kh=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:hw,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:kh},Symbol.toStringTag,{value:"Module"}));const fw="data:image/png;base64,",mw="Unable to resolve image.",y9=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(mw)}),$p="image/svg+xml";var x9,b9;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:fw,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(mw)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await y9(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:$p})),l=await y9(a);n={mimeType:t??$p,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===$p?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(b9=x9||(x9={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let h,f=r[p];if(f!==void 0){const g=i[p];h=g?(0,b9.resolveTypedUpdates)(f,g,n,o?.[p]):f}else h=o?.[p];h!=null&&(l=l??{},l[p]=h)}}return l};const v9=`The Safari browser does not support advanced copy and paste.
|
|
181
|
+
Copy and paste will be limited to within the browser tab.
|
|
182
|
+
|
|
183
|
+
Please use Chrome or Edge if external copy and paste is required.`,Vp=`You do not have permissions to access the clipboard.
|
|
184
|
+
All copy and paste operations will be limited to the browser tab.`,gw={Safari:`The Safari browser does not support advanced copy and paste.
|
|
185
|
+
Copy and paste will be limited to within the browser tab.
|
|
186
|
+
|
|
187
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:Vp,PermsWrite:Zc()===Dr.Safari?v9:Vp,PermsRead:Zc()===Dr.Safari?v9:Vp},Hp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Wp=async(e,t,n)=>{if(Zc()===Dr.Safari)return await n(new Error(gw.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},yw=async e=>{try{return await e.read({unsanitized:[Or]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const Eh=async(e,t=Or)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await yw(i);let c=!1;for(let d=0;!c&&l&&d<l.length;d++)if(c=l[d].types.includes(a),c)return await l[d].getType(a);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),w9=async(e,t=Or)=>{const n=await Eh(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Or)}catch{console.warn("Can't parse html from clipboard.")}return o},Xc="clipboard-uuid",ns="web text/uuid",S9=e=>`<div style="display:none" ${Xc}="${e}"/>`,jA=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Or);o.body.firstElementChild.setAttribute(Xc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},C9=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Xc}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let Fu=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await Wp("clipboard-read",async()=>{await Hp();const e=await Eh(this._nativeClipboard,ns);if(!this._state||e&&e===this._state.uuid)return!0;const t=await w9(this._nativeClipboard,Or);return!this._state||(C9(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Zc()===Dr.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await Wp("clipboard-read",async()=>{if(await Hp(),this._state?.uuid){const t=await Eh(this._nativeClipboard,ns);if(t&&t===e._state.uuid)return!0;const n=await w9(this._nativeClipboard,Or);if(C9(e._state?.uuid,n))return!0}return e._state={items:await yw(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Yd(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await Wp("clipboard-write",async()=>{await Hp(),o&&r.length===0&&(r.push(new ClipboardItem({[ns]:new Blob([o],{type:ns})})),r.push(new ClipboardItem({[Or]:new Blob([S9(o)],{type:Or})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Or),d=null;if(c!==-1){const f=await l.getType(Or);d=await kh(f),d&&(d=jA(o,d))}if(!d&&l.types.includes(za)){const f=await l.getType(za);if(f){let g=null;typeof f=="string"?(console.warn("text as string",f),g=f):g=await kh(f),g&&(d=`<div ${Xc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(Bp)){const f=await l.getType(Bp),g=hw(await f.arrayBuffer());d=`<div ${Xc}="${o}"><img src="${fw+g}"/></div>`}!d&&o&&(d=S9(o));const p=new Blob([d??""],{type:Or}),h={};for(let f=0;f<l.types.length;f++){const g=l.types[f];h[g]=f===c?p:l.getType(g)}d&&c===-1&&(h[Or]=p),o&&(h[ns]=new Blob([o],{type:ns})),n.push(new ClipboardItem(h))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[za]=new Blob([r??""],{type:za}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Or]=new Blob([r],{type:Or}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Bp]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Yd(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(za)&&(o=await n[i].getType(za));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[za]:new Blob([e],{type:za})})];return this._write({uuid:Yd(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(a){console.warn(a)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var Up;(Up=Fu||(Fu={})).ErrorMessages=gw,Up.Global=new Up,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const oc={Left:"left",Right:"right",Center:"center"},Vo="shift",ul="alt",mr="ctrl",ol={Horizontal:"horizontal",Vertical:"vertical"};function xw(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ms(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xw(e))&&(o&&(o+=" "),o+=t);return o}var RA=function(){},bw=typeof window<"u",IA=bw?u.useLayoutEffect:u.useEffect,k9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const $l=bw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(k9),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return IA(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[RA,k9]},wt=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},PA=e=>{const{style:t,orientation:n=ol.Vertical,...o}=e,r=n===ol.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},OA=e=>{const{style:t,orientation:n=ol.Vertical,...o}=e,r=n===ol.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},Mh=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:Mh},Symbol.toStringTag,{value:"Module"}));const cf=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=ol.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=PA,createScrollEndButton:y=OA,...x}=e,v=wt(d,[d]),b=u.useRef(null),[w,{width:E,height:S}]=$l(),[R,{width:_,height:A}]=$l(),T=l===ol.Vertical,j=T?"top":"left",C=T?"scrollTop":"scrollLeft",k=T?S:E,P=T?A:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=ne?0:Mh(H,ge[j],de,!0,Math.max(0,H-h));return I(ye),Math.max(0,ye)},[]),L=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ge=oe.getBoundingClientRect(),de=oe.children,ye=Math.ceil(P-k),ve=ne?ye:Mh(H,ge[j],de,!1,Math.max(0,H+h));return I(ve),Math.min(ye,ve)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[C];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[C]=n)},[n,C]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ge=f)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):L(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ge)},[z,L,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:ms("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(S??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));cf.displayName="Scrollbar";let E9=Date.now,Ka={},DA=1;const A0=e=>{let t=Ka[e]!==null;return t&&(Ka[e]=null),t},M9=(e,t,n,o=0,r)=>{let i=E9(),a=i,l=0,c=0,d=DA++;if(d%20==0){const h={};for(let f in Ka)h[f]=!0;Ka=h}const p=function(h){const f=h!==!0,g=E9();if(!Ka[d]||t&&!t(d))return Ka[d]=null,void n(60-c/((g-i)/1e3),d,!1);if(f){const y=Math.round((g-a)/16.666666666666668)-1;for(let x=0;x<Math.min(y,4);x++)p(!0),c++}o&&(l=(g-i)/o,l>1&&(l=1));const m=r?r(l):l;e(m,g,f)!==!1&&l!==1||!f?f&&(a=g,requestAnimationFrame(p)):(Ka[d]=null,n(60-c/((g-i)/1e3),d,l===1||o===void 0))};return Ka[d]=!0,requestAnimationFrame(p),d};var LA=function(){},AA=function(e){return Math.pow(e-1,3)+1},zA=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},vw=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:LA,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};vw.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(A0(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var a=e/i,l=a*(this.__scrollLeft+n)-n,c=a*(this.__scrollTop+o)-o;l>this.__maxScrollLeft?l=this.__maxScrollLeft:l<0&&(l=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(l,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(A0(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(A0(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(A0(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var h=p;if(p=p/this.__lastScale*n,h!==(p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom))){var f=o-this.__clientLeft,g=r-this.__clientTop;c=(f+c)*p/h-f,d=(g+d)*p/h-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;var m=this.__maxScrollLeft;(c>m||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>m?m:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;var y=this.__maxScrollTop;(d>y||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>y?y:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{var x=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=x,this.__enableScrollY=this.options.scrollingY&&b>=x,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],a=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=a/i*(1e3/60),this.__decelerationVelocityY=l/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(A0(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,h=function(m,y,x){x&&(this.__scrollLeft=i+c*m,this.__scrollTop=a+d*m,this.__zoomLevel=l+p*m,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),f=function(m){return this.__isAnimating===m}.bind(this),g=function(m,y,x){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||x)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=M9(h,f,g,this.options.animationDuration,r?AA:zA)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(d,p,h){this.__stepThroughDeceleration(h)}.bind(this),a=this.options.snapping?4:.1,l=function(){var d=Math.abs(this.__decelerationVelocityX)>=a||Math.abs(this.__decelerationVelocityY)>=a;return d||(this.__didDecelerationComplete=!0),d}.bind(this),c=function(d,p,h){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=M9(i,l,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,a=0,l=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?a=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(a=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*l:this.__decelerationVelocityX=i*c),a!==0&&(a*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=a*l:this.__decelerationVelocityY=a*c)}}};var li=typeof window<"u"?window:{screen:{},navigator:{}},qs=(li.matchMedia||function(){return{matches:!1}}).bind(li),ww=!1,FA={get passive(){return ww=!0}},T9=function(){};li.addEventListener&&li.addEventListener("p",T9,FA),li.removeEventListener&&li.removeEventListener("p",T9,!1);var BA=ww,NA="PointerEvent"in li,df="ontouchstart"in li,Sw=df||"TouchEvent"in li&&qs("(any-pointer: coarse)").matches,_9=(li.navigator.maxTouchPoints||0)>0||Sw,Cw=li.navigator.userAgent||"",$A=qs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Cw)&&Math.min(li.screen.width||0,li.screen.height||0)>=768,kw=(qs("(pointer: coarse)").matches||!qs("(pointer: fine)").matches&&df)&&!/Windows.*Firefox/.test(Cw),VA=qs("(any-pointer: fine)").matches||qs("(any-hover: hover)").matches||$A||!df,Th=!_9||!VA&&kw?_9?"touchOnly":"mouseOnly":"hybrid",HA=Th==="mouseOnly"?"mouse":Th==="touchOnly"||kw?"touch":"mouse";const WA=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Th,primaryInput:HA,supportsPassiveEvents:BA,supportsPointerEvents:NA,supportsTouchEvents:Sw},Symbol.toStringTag,{value:"Module"})),UA=new Set(["INPUT","TEXTAREA","SELECT"]),Ew={};function _h(){return WA}const en=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Ew,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:_h,focusableNodeNames:UA,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Qo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),qA=[];function R2(e,t,n=qA){const o=u.useRef(null);return u.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const j9=e=>s.jsx(cf,{...e}),KA=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Mw=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=KA,createHorizontalScrollbar:c=j9,createVerticalScrollbar:d=j9,style:p,touchElement:h,disableTouch:f,...g}=e,m=wt(r,[r]),y=R2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft!==!o?.left||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,h]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),S=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=h??y.current;if(!f&&_h().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new vw(v,P)}_h().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),S({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,f,h]);const[R,{width:_}]=$l(),[A,{height:T}]=$l(),j=u.useMemo(()=>{const k=d({orientation:ol.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const k=c({orientation:ol.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:A,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));Mw.displayName="ScrollPane";const GA=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let md=0;function Tw(){return u.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return md++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),md--,md<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),md=0)}},[]),{getPortalContainer:GA}}const ZA=100,XA=100,YA=1e6,JA=100,QA=50,ez=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=ZA,endScrollIncrement:l=XA,style:c=Ew,onMouseDown:d,onScrollOffset:p,onScroll:h,scaleLimit:f=YA,scaleFactor:g=JA,precisionFactor:m=QA,...y}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=wt(d,[d]),v=()=>({offset:n,totalSize:f===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=f!==0&&b.totalSize>f?g:1,S=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),A=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,C]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=wt((z,L,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<S&&(z=_),p?.(z*E,_,A))},[p,E,S,_,A]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(cf,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:A,onMouseDown:I,onScrollOffset:P})}));function qp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}ez.displayName="VirtualScrollbar";var Bu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=qp(o,t),i=typeof r=="function";n.push(i?r:()=>qp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)qp(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:Bu([r,t]),onFocus:i,...o})})),u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:h}]=$l(),f=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=h-w+b;return function(S,R,_=!1){if(R===0)return S;function A(O,I,z){let L=I.x-O.x,D=I.y-O.y,F=Math.sqrt(L*L+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function C(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=S.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=C(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let L=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&L&&L.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=C(L),V=C(D),U=C(F);_?(B=T(V,L.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=A(V,N,R),M=A(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=C(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,h,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Bu([f,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const tz={},nz=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=tz,...d}=e,p=o==="row",{style:h,className:f,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ms("hit-box",f),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...h},onPointerDown:a?void 0:t,...g})},l)},gd={},pl=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,yd=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Fa=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};function Ts(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:n,onPointerMoveOrWait:o,processTouch:r=!1,consumeTouch:i=!0}=e,a=wt(t,[t]),l=wt(n,[n]),c=wt(o,[o]),d=u.useRef(!1),p=e?.timerInitial??230,h=e?.timerContinuous??p/2,f=u.useRef(null),g=u.useRef(null),m=u.useRef(null),y=u.useRef(null),x=u.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null)},[]),v=u.useCallback(j=>{y.current=setTimeout(()=>{window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,f.current)}),v(h)},j??p)},[]);u.useEffect(()=>()=>x(),[]);const b=r?"pointer":"mouse",w=u.useCallback(j=>{j.stopPropagation(),j.stopImmediatePropagation(),j.preventDefault()},[]),E=wt(j=>{document.removeEventListener(`${b}move`,_),document.removeEventListener(`${b}up`,E),document.removeEventListener("keydown",A),document.removeEventListener("keyup",T),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",S),x(),window.requestAnimationFrame(()=>{d.current!==!1&&(d.current=!1,l?.(j,m.current,f.current),m.current=null)})},[]),S=u.useCallback(()=>{d.current!==!1&&(d.current=!1,E(g.current))},[]),R=wt(()=>{x(),v(h),window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,f.current)})},[h]),_=wt(j=>{g.current=j,R()},[]),A=wt(j=>{m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},R()},[]),T=wt(j=>{m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},R()},[h]);return wt(j=>{j.isDefaultPrevented()||(m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},a(j,m.current)!==!1&&(f.current=j,g.current=j.nativeEvent,document.addEventListener(`${b}up`,E,{passive:!1}),document.addEventListener(`${b}move`,_,{passive:!1}),document.addEventListener("keydown",A,{passive:!1}),document.addEventListener("keyup",T,{passive:!1}),window.addEventListener("blur",S,{passive:!0}),r&&i&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),d.current=!0,v(p)))},[p,r])}u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:h,children:f,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=gd,paneProps:E=gd,paneBeforeProps:S=gd,paneAfterProps:R=gd,createResizer:_=nz}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const A=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:Fa(c,De),maxBefore:Fa(d,De),minAfter:Fa(p,De),maxAfter:Fa(h,De)}},[c,d,p,h]),j=wt(l,[l]),[C,k]=u.useState(()=>Fa(a,i===null));u.useEffect(()=>{k(Fa(a,i===null))},[a,i]);const[P,{width:O,height:I}]=$l(),[z,{width:L,height:D}]=$l(),F=r==="row"?L:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Le,W)=>{const Q=[null,null],q=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,q[1]=100):(Q[1]=ue?.pixels-Le,q[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(q[0]=ue?.percent,q[1]=100-ue?.percent):(q[1]=ue?.percent,q[0]=100-ue?.percent)),{percents:q,pixels:Q,minBefore:yd(W.minBefore,!0),maxBefore:yd(W.maxBefore,!0),minAfter:yd(W.minAfter),maxAfter:yd(W.maxAfter)};let se=pl(ue,De,W.fixedPaneOffset!==1),te=De-Le,ie=pl(W.minBefore,te,!0)??0,pe=pl(W.maxBefore,te,!0)??te,me=0,fe=0,_e=0,Fe=te;me=(pl(W.maxAfter,De,!1)??Le)-Le,fe=pl(W.minAfter,De,!1)??De,_e=Math.max(ie,me),Fe=Math.min(pe,fe),se=Math.max(_e,Math.min(se,Fe)),fe=Math.min(te-se,pl(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,pl(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const qe=Math.max(0,Math.min(100,se/te*100));return q[0]=qe,q[1]=100-q[0],{percents:q,pixels:Q,minBefore:`${ie}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(C,B,F,T),[T,C,B,F,r]),[N,V]=u.useState(!1),U=wt(x,[x]),J=wt(v,[v]),X=wt(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ge,className:de,...ye}=E,ve={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:be,style:re,...ce}=S,{className:we,style:ae,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Ie,onPointerDown:Me,...ot}=w,Ve=wt(ue=>{const De=Fa(ue,i===null);k(De)},[i]),Ce=wt(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Le=Math.max(0,Math.min(B,Le)),T.fixedPaneOffset===1&&(Le=B-Le),a&&C.pixels===Le||k({pixels:Le,percent:null}),J?.(Le),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,C,B]),je=wt(ue=>{if(document.removeEventListener("pointermove",Ce),document.removeEventListener("touchmove",Ce),document.removeEventListener("pointerup",je),N&&(V(!1),C)){if(X(C.pixels),!Fa(a,i===null)||C.pixels!==a){const De={...C};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[C,N,a,i,B]),Ge=wt(ue=>{Me?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ce,{passive:!1}),document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("pointerup",je,{passive:!1}))},[Me]),Be=R2(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>A?_?.({key:"resizer",ref:Bu([z,ne]),className:ms("resizer",ee),onPointerDownCapture:Ge,style:{cursor:y?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Ie},splitDirection:r,disabled:y,...ot}):null,[A,ee,ot,r,Ie,y]),Ye=r==="row"?"Width":"Height",he={...ve,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Ye}`]:M?.minBefore,[`max${Ye}`]:o?M?.maxBefore:"100%"},Ze={...ve,...ae,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Ye}`]:M?.minAfter,[`max${Ye}`]:n?M?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:H,className:ms("before",de,be),style:he,...ye,...ce,children:n},"before"):null,[n,E,S,T,M]),Re=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:ms("after",de,we),style:Ze,...ye,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:Bu([P,Be]),className:ms("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[Se,ct,Re]})}));const oz=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},jh=e=>{console&&console.warn&&console.warn(e)},Kp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let rz=1,Rh=!1,_w=!1;const Jd=[],gs=[],Nu=()=>{gs.forEach(e=>e())},iz=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||Rh!==!1||(_w=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return gs[0]!==i?(e||Rh!==!0||jh("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Jd])}return gs.push(i),Nu(),()=>{r=!1,o.current?.length>0&&jh("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),gs.splice(gs.indexOf(i),1),Nu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(oz,{...r,key:i}))})},jw=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=h=>{r=h,yo.unstable_batchedUpdates(()=>l.forEach(f=>f(h)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[h,f]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=rz++;return Jd.push({hook:g,key:m}),gs.length===0&&_w===!1&&(Rh=!0,(y=>{if(Kp.document&&Kp.document.createElement){const x=Kp.document.createElement("div");Yu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else jh("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(iz)),Nu(),()=>{Jd.splice(Jd.findIndex(y=>y.key===m),1),Nu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(f),r!==h&&f(r),()=>{l.splice(l.indexOf(f),1),l.length===0&&c&&(o(),i=!1)}),[]),h}};jw(null,()=>{const[e,t]=u.useState(null);return e});let az=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return typeof this._context=="function"?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}};class bn extends az{}Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),jw({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Fu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(Fu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Gp=!1,lz=0;var sz=typeof document<"u"?u.useLayoutEffect:u.useEffect;const R9=()=>"sheetxl-ui-"+lz++,cz=u.useId??function(){const[e,t]=u.useState(()=>Gp?R9():void 0);return sz(()=>{e==null&&t(R9())},[]),u.useEffect(()=>{Gp||(Gp=!0)},[]),e},ys=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,a,l;e==="column"?(i=o.columnMetadataMap,a=o.lastMeasuredColumnIndex,l=o.recalcColumnIndices):(i=o.rowMetadataMap,a=o.lastMeasuredRowIndex,l=o.recalcRowIndices);const c=l.length>0;if(t>a){let d=0;if(a>=0){const p=i[a];d=p.offset+p.size}for(let p=a+1;p<=t;p++){let h=c?l.includes(p)?n(p)*r:i[p]?.size||n(p)*r:n(p)*r;i[p]={offset:d,size:h},d+=h}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},I9=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let a,l;e==="column"?(a=o.columnMetadataMap,l=o.lastMeasuredColumnIndex):(a=o.rowMetadataMap,l=o.lastMeasuredRowIndex);let c=0;return c=(l>0?a[l].offset:0)>=r?Rw({itemType:e,itemSize:t,instanceProps:o,high:l,low:0,offset:r,scale:i}):dz({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,l),offset:r,scale:i}),c=Math.min(c,n),c},Rw=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:a})=>{for(;r<=o;){const l=r+Math.floor((o-r)/2),c=ys({itemType:e,itemSize:t,index:l,instanceProps:n,scale:a}).offset;if(c===i)return l;c<i?r=l+1:c>i&&(o=l-1)}return r>0?r-1:0},dz=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:a})=>{let l=1;for(;r<n&&ys({itemType:e,itemSize:t,index:r,instanceProps:o,scale:a}).offset<i;)r+=l,l*=2;return Rw({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:a})},uf="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",P9=e=>{if(!e)return null;if(e.eventType==="start")return{type:e.eventType};if(e.eventType==="submit")return{type:e.eventType};if(e.eventType==="cancel")return{type:e.eventType};if(e.eventType==="keyboard")return{type:e.eventType,key:e.event.key};if(e.eventType==="pointer")return{type:e.eventType};if(e.eventType==="coordsChange"){const t={type:e.eventType};return e.activeCoords&&(t.activeCoords=e.activeCoords),t}return{type:e.eventType??"unknown"}},uz=e=>!0,pz=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||uf.indexOf(e.key)===-1)),hz=e=>!!e&&e.type==="dblclick"&&{editMode:!0},fz=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:a,getCellEditor:l,propsEditor:c,borderStrokeFill:d="rgb(33, 115, 70)",borderStrokeWidth:p=2,alignment:h=oc.Left,style:f,...g}=e,m=u.useRef(null),y=u.useRef(null),[x,v]=u.useState(!1),b=t.coords,w=u.useCallback(async C=>{if(m.current?.getBoundingClientRect()){if(C.eventType==="keyboard"){const k=C.event,P=new KeyboardEvent(k.type,{bubbles:!0,cancelable:!0,view:window,key:k.key,code:k.code,location:k.location,repeat:k.repeat,isComposing:k.isComposing,charCode:k.charCode,keyCode:k.keyCode,which:k.which,ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey});P.isSynthetic=!0,P.key,y.current?.dispatchEvent(P)}else C.eventType==="pointer"||console.warn("unsupported event type",C);await new Promise(k=>requestAnimationFrame(k))}},[]);u.useEffect(()=>{const C=y.current;return v(!0),y.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(C),t.editorRefsDispatchEditorEvent.push(w);const k=[...t.events];for(let P=0;P<k.length;P++)await w(k[P]);t.onMount(C)})(),()=>{const k=t.editorRefs.indexOf(C);k!==-1&&t.editorRefs.splice(k,1),t.onUnmount(C)}},[]);const E=u.useCallback(()=>o(t),[]),S=u.useCallback(()=>{r(t)},[]),R=n.current&&Wt.isEqualCells(n.current,b),_=a&&R&&x,A=l({autoFocus:!!t.startEvent?.autoFocus,...c,onSubmitEdit:E,onCancelEdit:S,ref:y},b),T=i.x+en.boundPixel(-p/2),j=en.boundPixel(i.width+p/2,!0);return s.jsx("div",{tabIndex:0,ref:m,style:{background:void 0,...f,opacity:_?f?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+en.boundPixel(-p/2)}px`,height:en.boundPixel(i.height+p/2,!0),left:`${T}px`,width:j},...g,children:s.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${en.boundPixel(1)}px`,top:`${en.boundPixel(1)}px`,width:en.boundPixel(i.width-2,!0),height:en.boundPixel(i.height-2,!0),outline:`${p}px ${d} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:A})})},Kn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===qn||n===ro;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},xd=(e,t,n)=>{const o=[];let r=t;for(;r<=n;){const i=Math.max(0,e(r));i===0?(o.push(r),r++):r+=i}return o},mz=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:a,colIndex:l}=e;switch(o){case ro:{a=Kn(n,Math.min(a+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a<i;)a=Kn(n,Math.min(++a,i),o),c=t({rowIndex:a,colIndex:l});return a}case oo:{a=Kn(n,Math.max(a-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a>i;)a=Kn(n,Math.max(--a,i),o),c=t({rowIndex:a,colIndex:l});return a}case qn:{l=Kn(n,Math.min(l+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l<i;)l=Kn(n,Math.min(++l,i),o),c=t({rowIndex:a,colIndex:l});return l}case to:{l=Kn(n,Math.max(l-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l>i;)l=Kn(n,Math.max(--l,i),o),c=t({rowIndex:a,colIndex:l});return l}default:return i}},gz=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:a,colIndex:l}=e;switch(o){case ro:{a=Kn(n,Math.min(a+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a<i;)a=Kn(n,Math.min(++a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a-1}case oo:{a=Kn(n,Math.max(a-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a>i;)a=Kn(n,Math.max(--a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a+1}case qn:{l=Kn(n,Math.min(l+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l<i;)l=Kn(n,Math.min(++l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l-1}case to:{l=Kn(n,Math.max(l-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l>i;)l=Kn(n,Math.max(--l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l+1}default:return null}},yz=(e,t,n,o,r,i)=>{if(!t)return i;let a,{rowIndex:l,colIndex:c}=e;o===ro?a={rowIndex:l+1,colIndex:c}:o===oo?a={rowIndex:l-1,colIndex:c}:o===qn?a={rowIndex:l,colIndex:c+1}:o===to&&(a={rowIndex:l,colIndex:c-1});const d=t(e);var p,h;return(h=t(a),!(p=d)&&!h||!p&&h||p&&!h?mz:gz)(e,t,n,o,!1,i)??i},O9=(e,t)=>`${e}:${t}`,D9=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let a=o;return e==="nearest"&&(o-t>0?e="start":n-r>0&&(e="end")),e==="start"?a=t:e==="end"?a=n-(r-o):e==="center"&&(a=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(a,i-(r-o)))},L9=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),Ih=(e,t=qn,n,o,r,i=null)=>{if(i&&Wt.isEqualSelectionCoords(i,e))return e;const a=e.ranges[e.rangeIndex];if(!Wt.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},a))return e;let l={...e.cell},c=e.rangeIndex;switch(t){case qn:l.colIndex=Kn(r,l.colIndex+1,t);break;case to:l.colIndex=Kn(r,l.colIndex-1,t);break;case ro:l.rowIndex=Kn(o,l.rowIndex+1,t);break;case oo:l.rowIndex=Kn(o,l.rowIndex-1,t)}const d=f=>{if(f){c=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const g=e.ranges[c];l={colIndex:g.colStart,rowIndex:g.rowStart}}else{c=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const g=e.ranges[c];l={colIndex:g.colEnd,rowIndex:g.rowEnd}}};if(t===qn&&l.colIndex>a.colEnd&&l.rowIndex===a.rowEnd)d(!0);else if(t===to&&l.colIndex<a.colStart&&l.rowIndex===a.rowStart)d(!1);else if(t===ro&&l.colIndex===a.colEnd&&l.rowIndex>a.rowEnd)d(!0);else if(t===oo&&l.colIndex===a.colStart&&l.rowIndex<a.rowStart)d(!1);else{let f=l.rowIndex,g=l.colIndex;switch(t){case qn:g>a.colEnd&&(f=Kn(o,f+1,t),g=a.colStart,f>a.rowEnd&&(f=a.rowStart));break;case to:g<a.colStart&&(f=Kn(o,f-1,t),g=a.colEnd,f<a.rowStart&&(f=a.rowEnd));break;case ro:f>a.rowEnd&&(g=Kn(r,g+1,t),f=a.rowStart,g>a.colEnd&&(g=a.colStart));break;case oo:f<a.rowStart&&(g=Kn(r,g-1,t),f=a.rowEnd,g<a.colStart&&(g=a.colEnd))}l={rowIndex:f,colIndex:g}}let p=n(l);if(!Wt.isRangeWithinRange(p,a)){const f=Wt.intersectRanges(p,a);f&&(p=f)}let h={rowStart:Kn(o,p.rowStart,ro),colStart:Kn(r,p.colStart,qn),rowEnd:Kn(o,p.rowEnd,oo),colEnd:Kn(r,p.colEnd,to)};if(h.rowStart!==l.rowIndex||h.colStart!==l.colIndex){switch(t){case qn:e.ranges[c].colStart===h.colStart&&e.ranges[c].colEnd===h.colEnd&&(l.rowIndex=h.rowEnd),l.colIndex=h.colEnd;break;case to:e.ranges[c].colStart===h.colStart&&e.ranges[c].colEnd===h.colEnd&&(l.rowIndex=h.rowStart),l.rowIndex===h.rowStart?l.colIndex=h.colStart+1:l.colIndex=h.colStart;break;case ro:e.ranges[c].rowStart===h.rowStart&&e.ranges[c].rowEnd===h.rowEnd&&(l.colIndex=h.colEnd),l.rowIndex=h.rowEnd;break;case oo:e.ranges[c].rowStart===h.rowStart&&e.ranges[c].rowEnd===h.rowEnd&&(l.colIndex=h.colStart),l.colIndex===h.colStart?l.rowIndex=h.rowStart+1:l.rowIndex=h.rowStart}return Ih({cell:l,ranges:e.ranges,rangeIndex:c},t,n,o,r,i??e)}return{ranges:e.ranges,cell:l,rangeIndex:c}},A9=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=to,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=qn,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=oo,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=ro,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},$u=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let a=n(r?e:e+1),l=n(r?e+1:e),c=e+(r?2:-1),d=0;for(;(l-a)*i<=0;){if(r&&c-1>o+1||!r&&c+1<o)return d;a=l,l=n(c),c+=i,d++}return d},z9=(e,t,n,o,r)=>{const i={};let a=null,l=null;for(let c=0;c<=n.length&&n[c]<=r;c++){const d=n[c];if(d<o)continue;const p=a===d?l:t?e.getColOffset(d):e.getRowOffset(d),h=t?e.getColOffset(d+1):e.getRowOffset(d+1);a=d+1,l=h,i[d]=Object.freeze({offset:p,size:h-p,spanIndex:c})}return Object.freeze(i)},F9=(e,t,n)=>{const o=e.getColOffset(t.colStart)+(n?.left??0),r=e.getRowOffset(t.rowStart)+(n?.top??0);return{x:o,y:r,width:e.getColOffset(t.colEnd+1)+(n?.right??0)-(n?.left??0)-o,height:e.getRowOffset(t.rowEnd+1)+(n?.bottom??0)-(n?.top??0)-r}},xz=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),Zp=(e,t=!0)=>`M ${en.boundPixel(e.left)} ${en.boundPixel(e.top)} L ${en.boundPixel(e.right,!0)} ${en.boundPixel(e.top)} L ${en.boundPixel(e.right,!0)} ${en.boundPixel(e.bottom,!0)} L ${en.boundPixel(e.left)} ${en.boundPixel(e.bottom,!0)} L ${en.boundPixel(e.left)} ${en.boundPixel(e.top)} ${t?"Z":""}`,xs=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return s.jsx("svg",{width:`${en.boundPixel(n.width,!0)}`,height:`${en.boundPixel(n.height,!0)}`,viewBox:`0 0 ${en.boundPixel(n.width,!0)} ${en.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${en.boundPixel(n.x)}px`,top:`${en.boundPixel(n.y)}px`,width:`${en.boundPixel(n.width,!0)}px`,height:`${en.boundPixel(n.height,!0)}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",...r},...i,children:s.jsx("path",{d:`M ${en.boundPixel(t[0])} ${en.boundPixel(t[1])} L ${en.boundPixel(t[2])} ${en.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},bz=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:a,strokeWidth:l=0,strokeDasharray:c,strokeDashoffset:d,clipPath:p,pathBounds:h,pathProps:f,style:g,...m}=e,y=n,x=t,v=o,b=r;let w=null;if(i){let E=Zp({top:0,left:0,bottom:b,right:v});h&&(E=E+" "+Zp({top:h.y-y,left:h.x-x,bottom:h.height+h.y-y,right:h.width+h.x-x})),w=[s.jsx("path",{d:E,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return s.jsxs("svg",{width:`${en.boundPixel(o,!0)}`,height:`${en.boundPixel(r,!0)}`,viewBox:`0 0 ${en.boundPixel(o,!0)} ${en.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${en.boundPixel(t)}px`,top:`${en.boundPixel(n)}px`,pointerEvents:"none",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",boxShadow:"rgb(60 64 67 / 5%) 0px 1px 4px 2px, rgb(255 255 255 / 15%) 0px 0px 2px 1px",overflow:"visible",...g},...m,children:[w,s.jsx("path",{d:Zp({top:0,left:0,right:v,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:d,stroke:a,vectorEffect:"non-scaling-stroke",strokeWidth:l,...f})]})},Iw=e=>{const{key:t,...n}=e;return s.jsx(I2,{...n},t)},I2=u.memo(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:a=0,style:l,isAnimatedStroke:c,animatedStrokeProps:d,range:p,cell:h,...f}=e,g=c||!!d,m={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...d};let y=m.dashGap+m.dashLength;const x=m.speed*y,v=cz().replaceAll(":",""),b=`${m.name}-${v}`;let w;return u.useEffect(()=>{if(!g)return;const E=`@keyframes ${b} {
|
|
188
|
+
to {
|
|
189
|
+
stroke-dashoffset: 0px;
|
|
190
|
+
}
|
|
191
|
+
}`,S=document.createElement("style");return S.appendChild(document.createTextNode(E)),document.head.appendChild(S),S.sheet.insertRule(E,0),()=>{document.head.removeChild(S)}},[g]),g&&(w={strokeDasharray:`${m.dashLength}px ${m.dashGap}px`,strokeDashoffset:`${y}px`,animation:`${b} ${x}ms linear infinite`,willChange:"stroke-dashoffset"}),s.jsx(bz,{x:o,y:r,width:i,height:a,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...w,...l},...f})});function Pw(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Pw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function jl(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Pw(e))&&(o&&(o+=" "),o+=t);return o}I2.displayName="Selection";const Ow=u.memo(u.forwardRef((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:a,corner:l,style:c,className:d,background:p,...h}=e;if(n===0||o===0)return null;let f=!0,g=!0,m=!0,y=!0;switch(l){case"tl":f=!1,g=!1;break;case"bl":f=!1,y=!1;break;case"br":m=!1,y=!1;break;case"tr":g=!1,m=!1}return s.jsx("div",{className:jl("fill-handle",d),style:{position:"absolute",left:n-(i+(f?r:0))/2,top:o-(i+(g?r:0))/2,width:i,height:i,borderLeft:f?`${r}px ${a}`:void 0,borderTop:g?`${r}px ${a}`:void 0,borderRight:m?`${r}px ${a}`:void 0,borderBottom:y?`${r}px ${a}`:void 0,background:p,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...c},tabIndex:-1,...h})}));Ow.displayName="FillHandle";var vz=function(){},Dw=typeof window<"u",wz=Dw?u.useLayoutEffect:u.useEffect,B9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Lw=Dw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(B9),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return wz(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[vz,B9]};function Xp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Sz=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Xp(o,t),i=typeof r=="function";n.push(i?r:()=>Xp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Xp(n,t)}};const Ph=u.memo(u.forwardRef((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:a="white",borderWidth:l=1.5,size:c=22,style:d,className:p,selectionTouchPointerHandler:h,onTouchSelectStart:f,onTouchSelectEnd:g,currentTouchAnchor:m,scrollableElement:y,scrollableRoot:x=document.body,...v}=e,b=wt(f,[f]),w=wt(g,[g]),{bounds:E,coordsPivot:S,key:R}=u.useMemo(()=>{if(!n||!o)return null;let z=null,L=null;switch(r){case"tl":z={colIndex:n.colEnd,rowIndex:n.rowEnd},L={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":z={colIndex:n.colStart,rowIndex:n.rowStart},L={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"t":case"l":z={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"b":z={colIndex:n.colStart,rowIndex:n.rowStart};break;case"r":z={colIndex:n.colStart,rowIndex:n.rowEnd}}let D=o.getRangeCoordsBounds(L?{rowStart:L.rowIndex,colStart:L.colIndex,rowEnd:L.rowIndex,colEnd:L.colIndex}:n);const F=o.getBounds(),B=o.getViewportSize(),M=F.x,N=F.y,V=B.width,U=B.height;switch(r){case"tl":break;case"br":D.x=D.x+D.width,D.y=D.y+D.height;break;case"t":D.x=V/2-M;break;case"b":D.x=V/2-M,D.y=D.y+D.height;break;case"l":D.y=U/2-N;break;case"r":D.x=D.x+D.width,D.y=U/2-N}const J=o.toClipBounds(D,0);return!J||J.width<=0||J.height<=0||D.x<0||D.y<0||D.x>V||D.y>U?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:D,coordsAnchor:null,coordsPivot:z,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),_=u.useRef(null),A=Ts(u.useMemo(()=>{const z=L=>r==="t"||r==="b"?{...L,colIndex:void 0}:r==="l"||r==="r"?{...L,rowIndex:void 0}:L;return{processTouch:!0,consumeTouch:!0,onPointerDown:(L,D)=>{const F=z(o.getCellCoordsFromClient(L.clientX,L.clientY));return _.current={coordsPivot:S},b?.(r),h.onSelectionPointerDown(L,D,o,F,S,!1,!0)},onPointerMoveOrWait:(L,D,F)=>{const B=z(o.getCellCoordsFromClient(L.clientX,L.clientY));return h.onSelectionPointerMoveOrWait(L,D,F,o,B,_.current?.coordsPivot,!0,!0)},onPointerUp:(L,D,F)=>(_.current=null,w?.(r),h.onPointerUp(L,D,F))}},[h,n,o,r])),[T,{y:j,x:C}]=Lw(),k=u.useRef(null),{getPortalContainer:P}=Tw(),[O,I]=u.useState(null);return u.useEffect(()=>{const z=k.current?.getBoundingClientRect();if(!z||!E)return void I(null);let L=0,D=0,F=y;for(;F;)L+=F.scrollLeft,D+=F.scrollTop,F=x&&F===x.parentElement?null:F.parentElement;I(yo.createPortal(s.jsx("div",{className:jl("touch-select-handle",p),ref:t,style:{position:"absolute",left:L+(z?.x??0)-(c+l)/2,top:D+(z?.y??0)-(c+l)/2,width:c,height:c,borderWidth:`${l}px`,border:i,borderRadius:"50%",background:a,boxShadow:`0 0 0 1.5px ${a}`,cursor:"grab",pointerEvents:"all",opacity:m?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...d},tabIndex:-1,onPointerDown:A,...v}),x??P(),R))},[j,C,E?.x,E?.y,E?.width,E?.height,p,m,a,c,l,i,y]),E?s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:Sz([T,k]),style:{position:"absolute",left:E.x,top:E.y,opacity:0}}),O]}):null}));Ph.displayName="TouchSelectHandle";const jr=-10,Cz=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),Aw=Object.freeze({colIndex:0,rowIndex:0}),Oh=Object.freeze([]),Yr=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??Oh};return t.rangeIndex=e?.rangeIndex??t.ranges.length-1,t.cell=e?.cell,!t.cell&&t.ranges.length>0&&(t.cell={rowIndex:t.ranges[t.rangeIndex].rowStart,colIndex:t.ranges[t.rangeIndex].colStart}),t.cell||(t.cell=Aw),Wt.isEqualSelectionCoords(t,e)?e:t},bd=(e,t,n)=>{const o=e.getVisibleRangeCoords(),r=e.getScrollOrientation();!r.horizontal&&(t.colIndex>o.colEnd||t.colIndex<o.colStart)&&(t={...t,colIndex:t.colIndex>o.colEnd?o.colEnd+1:o.colEnd-1},e=n.current.getViewFromLocation(Jr)),!r.vertical&&(t.rowIndex>o.rowEnd||t.rowIndex<o.rowStart)&&(t={...t,rowIndex:t.rowIndex>o.rowEnd?o.rowEnd+1:o.rowEnd-1},e=n.current.getViewFromLocation(Jr)),e.scrollCellCoordsIntoView(t)},kz=()=>!1,zw=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:a,selectionPolicy:l="multiple",newSelectionMode:c="clear",allowDeselectSelection:d=!0,onFillPreview:p,onFillCancel:h,onFillDone:f,onFill:g,disableFillDrag:m=!g,fillHandleBorderColor:y="white",hiddenRowsAt:x,hiddenColumnsAt:v,isContentfulCell:b,contentfulCellFinder:w=yz,getDataCoords:E,alwaysScrollToActiveCoords:S=!1,selectionBounds:R,pointerDownInterceptor:_,pointerMoveInterceptor:A,mergedRanges:T,canSelectionSpanMergedCells:j=kz,onMoveDragStart:C,onMoveDragUpdate:k,onMoveDragEnd:P,onMoveDragDone:O,selectionRenderer:I=Iw,disableMoveDrag:z=!P,getCellCoordsAsRangeCoords:L=Wt.cellToRange,moveDragHitSize:D=6,moveDragOutlineSize:F=4,selectionBackgroundColor:B="rgba(16, 124, 65, 0.1)",selectionBorderColor:M="rgb(33, 115, 70)",selectionRemoveBorderColor:N="rgb(255, 0, 0)",selectionRemoveBackgroundColor:V="rgba(250, 10, 10, 0.1)",disableTouchSelection:U=!1,touchSelectHandleProps:J})=>{const X=u.useCallback(()=>({top:R?.top??0,left:R?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),H=wt(g,[g]),ne=wt(p,[p]),oe=wt(h,[h]),ge=wt(f,[f]),de=wt(b,[b]),ye=wt(I,[I]),ve=wt((K,G=!1)=>$u(K,G,n.getRowOffset,G?X().bottom:X().top),[n?.getRowOffset]),be=wt(x??ve,[x]),re=wt((K,G=!1)=>$u(K,G,n.getColOffset,G?X().right:X().left),[n?.getColOffset]),ce=wt(v??re,[v]),[we,ae]=u.useState(()=>Yr(o)),Y=u.useMemo(()=>Yr(we),[we]),le=u.useRef(Y),ee=u.useRef(!0);u.useLayoutEffect(Qo.throttle(()=>{ae(K=>{ee.current=!0;const G=Yr(o);return Wt.isEqualSelectionCoords(G,K)?K:G})},0),[o]),u.useLayoutEffect(()=>{le.current=Y},[Y]),u.useEffect(()=>{ee.current||!r||Wt.isEqualSelectionCoords(o,Y)||r(Y)},[Y]);const Ie=u.useCallback(K=>{ae(G=>{ee.current=!1,G=Yr(G);let ke=typeof K=="function"?K(G.ranges):K??Oh;if(Wt.isEqualRangesArrays(ke,G.ranges))return G;let Pe=Math.max(ke.length?0:-1,Math.min(G.rangeIndex,ke.length-1)),et=G.cell;Pe===-1||Wt.isCellWithinRange(et,ke[Pe])||(et={rowIndex:ke[Pe].rowStart,colIndex:ke[Pe].colStart}),ke.length===1&&Wt.isSingleCell(ke[0])&&Wt.isCellWithinRange(et,ke[0])&&(ke=[],Pe=-1);const pt={cell:et,ranges:ke,rangeIndex:Pe};return Wt.isEqualSelectionCoords(pt,G)?G:pt})},[]),Me=wt(K=>{ae(G=>{ee.current=!1,G=Yr(G);const ke=K??Aw,Pe=L(ke);if(!Wt.isSingleCell(Pe)&&G.ranges.length===0)return{ranges:[Pe],rangeIndex:0,cell:ke};if(Wt.isEqualCells(ke,G.cell))return G;let et=G.ranges,pt=G.rangeIndex;G.ranges.length===1&&(Wt.isSingleCell(G.ranges[0])&&Wt.isCellWithinRange(ke,G.ranges[0])||!Wt.isCellWithinRange(ke,G.ranges[0]))&&(et=[],pt=-1);const it={ranges:et,rangeIndex:pt,cell:ke};return Wt.isEqualSelectionCoords(it,G)?G:it})},[L]),[ot,Ve]=u.useState(null),[Ce,je]=u.useState(null),Ge=u.useRef(null),[Be,ct]=u.useState(null),Ye=u.useRef(null),he=u.useRef(null),[Ze,Se]=u.useState(null),Re=u.useRef(null),ue=u.useRef(null),De=u.useRef(T);u.useEffect(()=>{De.current=T},[T]);const Le=wt((K,G={inline:"nearest",block:"nearest"})=>{let{rowIndex:ke,colIndex:Pe}=K;ke===void 0&&Y?.cell&&(ke=Y.cell.rowIndex),Pe===void 0&&Y?.cell&&(Pe=Y.cell.colIndex),ke!==void 0&&Pe!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:ke,colIndex:Pe},G)},[Y]),W=u.useCallback(K=>{const G=X();return K.rowIndex<G.top||K.colIndex<G.left||K.colIndex>G.right||K.rowIndex>G.bottom},[]),Q=wt((K,G)=>{if(!e?.current)return null;const ke={rowStart:Math.min(K.rowIndex,G.rowIndex),colStart:Math.min(K.colIndex,G.colIndex),rowEnd:Math.max(K.rowIndex,G.rowIndex),colEnd:Math.max(K.colIndex,G.colIndex)};if(j?.(ke))return ke;const Pe=L(K),et=L(G),pt={rowStart:Math.min(Pe.rowStart,et.rowStart),colStart:Math.min(Pe.colStart,et.colStart),rowEnd:Math.max(Pe.rowEnd,et.rowEnd),colEnd:Math.max(Pe.colEnd,et.colEnd)};let it;return typeof De.current=="function"?it=De.current(pt):T&&(it=T),it?Wt.extendRangeToUnionRanges(pt,it):pt},[j,L]),q=wt((K,G,ke)=>{const Pe=K.ranges.length>0?K.ranges[K.rangeIndex]:{rowStart:K.cell.rowIndex,colStart:K.cell.colIndex,rowEnd:K.cell.rowIndex,colEnd:K.cell.colIndex},et={rowStart:Math.min(G.rowIndex??Pe.rowStart,ke.rowIndex??Pe.rowStart),colStart:Math.min(G.colIndex??Pe.colStart,ke.colIndex??Pe.colStart),rowEnd:Math.max(G.rowIndex??Pe.rowEnd,ke.rowIndex??Pe.rowEnd),colEnd:Math.max(G.colIndex??Pe.colEnd,ke.colIndex??Pe.colEnd)},pt={rowIndex:et.rowStart,colIndex:et.colStart},it={rowIndex:et.rowEnd,colIndex:et.colEnd};if(!W(pt)&&!W(it))return Q(pt,it)},[Q]),se=wt((K,G,ke)=>{if(l==="single"||!le.current)return;const Pe=q(le.current,K,G??le.current.cell);if(!Pe)return;const et=le.current.rangeIndex;Ie(pt=>pt.length?pt.map((it,Pt)=>et===Pt?Pe:it):[Pe]),ke&&Pe&&Me({colIndex:Pe.colStart,rowIndex:Pe.rowStart})},[]),te=u.useCallback((K,G,ke)=>{if(!le.current)return;K={...le.current?.cell,...K},G=G??K;const Pe=q(le.current,K,G);if(!Pe)return;const et={rowIndex:Pe.rowStart,colIndex:Pe.colStart},pt={...et,...ke};c==="clear"?(Re.current=pt,pe()):c==="modify"?se(et):ie(et),Me(pt)},[]),ie=u.useCallback((K,G=K,ke)=>{l!=="multiple"||!K||W(K)||W(G)||ae(Pe=>{ee.current=!1,Pe=Yr(Pe);const et=Q(K,G);if(!et)return Pe;let pt=Pe.ranges.length>0?[...Pe.ranges]:[Q(Pe.cell,Pe.cell)];pt.push(et);const it={ranges:pt,cell:{rowIndex:et.rowStart,colIndex:et.colStart,...ke},rangeIndex:pt.length-1};return Wt.isEqualSelectionCoords(it,Pe)?Pe:it})},[]),pe=()=>{Ie(Oh)},me=en.detectIt().primaryInput==="touch",fe=u.useRef(null),_e=u.useRef(null),Fe=u.useRef(null),qe=u.useMemo(()=>({onPointerDown:K=>{if(!e||!e.current)return!1;const G=K.nativeEvent,ke=e.current.getViewFromClient(G.clientX,G.clientY);if(G.pointerType==="touch"||G.type==="touchstart")return _e.current={topLeft:ke.getScrollTopLeft(),point:{x:G.clientX,y:G.clientY}},!0;const Pe=ke.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!Pe)return!1;fe.current={anchor:ke.getAnchor(),coords:Pe},ue.current=null;const et=K.nativeEvent.which===3;if(et&&Wt.indexOfCoords(Pe,Y.ranges)!==-1)return!1;const pt=K.nativeEvent.shiftKey,it=K.nativeEvent.ctrlKey||K.nativeEvent.metaKey,Pt=it,Nt=d,Ft=Y.ranges.length>0,Kt=it&&Nt;if(_?.(K,Pe,Y)===!1)return!1;i?.(le.current,K.nativeEvent);const Sn=!et&&l!=="single";if(pt)return se(Pe),Sn;const Ht=Wt.isEqualCells(Pe,Y.cell);if(Pt){if(Ht&&(!Kt||!Ft))return Sn;if(it&&Wt.indexOfCoords(Pe,Y.ranges)!==-1&&Nt){Ye.current=Pe;const Ut=Q(Pe,Pe);return he.current=Ut,ct(Ut),Sn}return ie(Pe),Sn}S&&Le(Pe),Ht&&Y.ranges.length===0||te(Pe)},onPointerMoveOrWait:Qo.throttle((K,G)=>{if(!e?.current||K.pointerType==="touch"||K.type==="touchmove"||!fe.current)return;const ke=fe.current.anchor;let Pe=e.current.getViewFromLocation(ke),et=Pe.getCellCoordsFromClient(K.clientX,K.clientY);if(!Wt.isEqualCells(et,fe.current?.coords)&&(fe.current={anchor:ke,coords:et},et&&A?.(K,et,le.current)!==!1)){if(Ye.current){const pt={rowStart:Math.min(et.rowIndex,Ye.current.rowIndex),colStart:Math.min(et.colIndex,Ye.current.colIndex),rowEnd:Math.max(et.rowIndex,Ye.current.rowIndex),colEnd:Math.max(et.colIndex,Ye.current.colIndex)},it={rowIndex:pt.rowStart,colIndex:pt.colStart},Pt={rowIndex:pt.rowEnd,colIndex:pt.colEnd};if(W(it)||W(Pt))return;const Nt=Q(it,Pt);he.current=Nt,ct(Nt)}else se(et);Fe.current=G,bd(Pe,et,e)}},60),onPointerUp:K=>{if(fe.current=null,K.pointerType==="touch"||K.type==="touchend"){if(_e.current){const ke=e.current.getViewFromClient(_e.current.point.x,_e.current.point.y),Pe=ke.getScrollTopLeft();if(Pe.left===_e.current.topLeft.left&&Pe.top===_e.current.topLeft.top){const et=ke.getCellCoordsFromClient(_e.current.point.x,_e.current.point.y);te(et)}}return _e.current=null,void(fe.current=null)}try{a?.(le.current,K)}catch(ke){console.warn(ke)}if(!Ye.current)return;const G=he.current;Ye.current=null,he.current=null,ct(null),ae(ke=>{if(ee.current=!1,(ke=Yr(ke)).ranges.length===0)return ke;let Pe=[],et=-1,pt=ke.cell;for(let Pt=0;Pt<ke.ranges.length;Pt++){const Nt=ke.ranges[Pt];if(Wt.isRangesIntersect(Nt,G)){const Ft=Qo.subtractRect({top:Nt.rowStart,left:Nt.colStart,bottom:Nt.rowEnd+1,right:Nt.colEnd+1},{top:G.rowStart,left:G.colStart,bottom:G.rowEnd+1,right:G.colEnd+1});for(let Kt=0;Kt<Ft.length;Kt++){const Sn={rowStart:Ft[Kt].top,colStart:Ft[Kt].left,rowEnd:Ft[Kt].bottom-1,colEnd:Ft[Kt].right-1};Pe.push(Sn),Wt.isCellWithinRange(ke.cell,Sn)&&(et=Pe.length-1)}}else Pe.push(Nt);Pe.length>0&&et===-1&&Wt.isCellWithinRange(ke.cell,Nt)&&(et=Pe.length-1,pt={rowIndex:Pe[Pe.length-1].rowStart,colIndex:Pe[Pe.length-1].colStart})}const it={cell:pt,rangeIndex:et,ranges:Pe};return Wt.isEqualSelectionCoords(it,ke)?ke:it})},processTouch:!0,consumeTouch:!1}),[Y,l,d,S,c]),Je=wt(Ts(qe),[]),Qe=u.useMemo(()=>({onSelectionPointerDown:(K,G,ke,Pe,et=Y.cell,pt=S,it=K.nativeEvent.shiftKey,Pt=!1)=>{if(!e||!e.current)return!1;K.stopPropagation(),K.preventDefault(),K.nativeEvent.stopImmediatePropagation();const Nt=ke??e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),Ft=Pe??Nt.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!Ft)return!1;fe.current={anchor:Nt.getAnchor(),coords:Ft},ue.current=null;const Kt=K.nativeEvent.which===3;if(Kt&&Wt.indexOfCoords(Ft,Y.ranges)!==-1)return!1;const Sn=K.nativeEvent.ctrlKey||K.nativeEvent.metaKey,Ht=Sn,Ut=d,Qn=Y.ranges.length>0,Ct=Sn&&Ut;if(_?.(K,Ft,Y)===!1)return!1;i?.(le.current,K.nativeEvent);const cn=!Kt&&l!=="single";if(it)return se(Ft,et,Pt),cn;const wo=Wt.isEqualCells(Ft,et);if(Ht){if(wo&&(!Ct||!Qn))return cn;if(Ct&&Wt.indexOfCoords(Ft,Y.ranges)!==-1&&Ut){Ye.current=Ft;const Xt=Q(Ft,Ft);return he.current=Xt,ct(Xt),cn}return ie(Ft),cn}pt&&Le(Ft),wo&&Y.ranges.length===0||te(Ft)},onSelectionPointerMoveOrWait:(K,G,ke,Pe,et,pt=Y.cell,it=!0,Pt=!1)=>{if(!e?.current||(K.stopPropagation(),K.preventDefault(),K.stopImmediatePropagation(),!fe.current))return;const Nt=fe.current.anchor;let Ft=Pe??e.current.getViewFromLocation(Nt),Kt=et??Ft.getCellCoordsFromClient(K.clientX,K.clientY);if(!Wt.isEqualCells(Kt,fe.current?.coords)&&(fe.current={anchor:Nt,coords:Kt},Kt&&A?.(K,Kt,le.current)!==!1)){if(Ye.current){const Sn={rowStart:Math.min(Kt.rowIndex,Ye.current.rowIndex),colStart:Math.min(Kt.colIndex,Ye.current.colIndex),rowEnd:Math.max(Kt.rowIndex,Ye.current.rowIndex),colEnd:Math.max(Kt.colIndex,Ye.current.colIndex)},Ht={rowIndex:Sn.rowStart,colIndex:Sn.colStart},Ut={rowIndex:Sn.rowEnd,colIndex:Sn.colEnd};if(W(Ht)||W(Ut))return;const Qn=Q(Ht,Ut);he.current=Qn,ct(Qn)}else se(Kt,pt,Pt);it&&bd(Ft,Kt,e)}},onPointerUp:K=>{fe.current=null,K.stopPropagation(),K.preventDefault(),K.stopImmediatePropagation();try{a?.(le.current,K)}catch(ke){console.warn(ke)}if(!Ye.current)return;const G=he.current;Ye.current=null,he.current=null,ct(null),ae(ke=>{if(ee.current=!1,(ke=Yr(ke)).ranges.length===0)return ke;let Pe=[],et=-1,pt=ke.cell;for(let Pt=0;Pt<ke.ranges.length;Pt++){const Nt=ke.ranges[Pt];if(Wt.isRangesIntersect(Nt,G)){const Ft=Qo.subtractRect({top:Nt.rowStart,left:Nt.colStart,bottom:Nt.rowEnd+1,right:Nt.colEnd+1},{top:G.rowStart,left:G.colStart,bottom:G.rowEnd+1,right:G.colEnd+1});for(let Kt=0;Kt<Ft.length;Kt++){const Sn={rowStart:Ft[Kt].top,colStart:Ft[Kt].left,rowEnd:Ft[Kt].bottom-1,colEnd:Ft[Kt].right-1};Pe.push(Sn),Wt.isCellWithinRange(ke.cell,Sn)&&(et=Pe.length-1)}}else Pe.push(Nt);Pe.length>0&&et===-1&&Wt.isCellWithinRange(ke.cell,Nt)&&(et=Pe.length-1,pt={rowIndex:Pe[Pe.length-1].rowStart,colIndex:Pe[Pe.length-1].colStart})}const it={cell:pt,rangeIndex:et,ranges:Pe};return Wt.isEqualSelectionCoords(it,ke)?ke:it})}}),[Y,l,d,S,c]),rt=wt((K,G=!1,ke=!1,Pe=0)=>{if(!e.current||!Y.cell)return;let et=Y.cell,pt=Y.cell;if(G&&Y.ranges.length>0){const Ct=Y.ranges[Y.rangeIndex],cn=Y.cell;switch(K){case oo:pt={rowIndex:cn.rowIndex===Ct.rowStart?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colEnd},et={rowIndex:cn.rowIndex===Ct.rowStart?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colStart};break;case ro:pt={rowIndex:cn.rowIndex===Ct.rowEnd?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colEnd},et={rowIndex:cn.rowIndex===Ct.rowEnd?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colStart};break;case to:pt={rowIndex:Ct.rowEnd,colIndex:cn.colIndex===Ct.colStart?Ct.colEnd:Ct.colStart},et={rowIndex:Ct.rowStart,colIndex:cn.colIndex===Ct.colStart?Ct.colStart:Ct.colEnd};break;case qn:pt={rowIndex:Ct.rowEnd,colIndex:cn.colIndex===Ct.colEnd?Ct.colStart:Ct.colEnd},et={rowIndex:Ct.rowStart,colIndex:cn.colIndex===Ct.colEnd?Ct.colEnd:Ct.colStart}}}const it=L(pt);let{rowStart:Pt,colStart:Nt}=it;const Ft=X();if(ue.current)switch(K){case oo:case ro:ue.current.colIndex>=it.colStart&&ue.current.colIndex<=it.colEnd&&(Nt=ue.current.colIndex);break;case to:case qn:ue.current.rowIndex>=it.rowStart&&ue.current.rowIndex<=it.rowEnd&&(Pt=ue.current.rowIndex)}if(!Pe){switch(K){case oo:Pt=Kn(be,Math.max(it.rowStart-1,Ft.top),K);break;case ro:Pt=Kn(be,Math.min(it.rowEnd+1,Ft.bottom),K);break;case to:Nt=Kn(ce,Math.max(it.colStart-1,Ft.left),K);break;case qn:Nt=Kn(ce,Math.min(it.colEnd+1,Ft.right),K)}if(ke)switch(K){case oo:Pt=w({...pt,colIndex:Y.cell.colIndex},de,be,K,!1,Math.max(Ft.top,be(Ft.top,!1)));break;case ro:Pt=w({...pt,colIndex:Y.cell.colIndex},de,be,K,!1,Math.min(Ft.bottom,Ft.bottom-be(Ft.bottom,!0)));break;case to:Nt=w({...pt,rowIndex:Y.cell.rowIndex},de,ce,K,!1,Math.max(Ft.left,ce(Ft.left,!1)));break;case qn:Nt=w({...pt,rowIndex:Y.cell.rowIndex},de,ce,K,!1,Math.min(Ft.right,Ft.right-ce(Ft.right,!0)))}}let Kt=null;if(Pe){let Ct=0;switch(K){case oo:Ct=n.getRowOffset(Pt+1),Pt=Math.max(Ft.top,n.getRowIndex(Ct-Pe)),Kt={top:n.getRowOffset(Pt+1)-(Ct-e.current.getScrollPosition().top)};break;case ro:Ct=n.getRowOffset(Pt),Pt=Math.min(Ft.bottom,n.getRowIndex(Ct+Pe)),Kt={top:n.getRowOffset(Pt)-(Ct-e.current.getScrollPosition().top)};break;case to:Ct=n.getColOffset(Nt+1),Nt=Math.max(Ft.left,n.getColIndex(Ct-Pe)),Kt={left:n.getColOffset(Nt+1)-(Ct-e.current.getScrollPosition().left)};break;case qn:Ct=n.getColOffset(Nt),Nt=Math.min(Ft.right,n.getColIndex(Ct+Pe)),Kt={left:n.getColOffset(Nt)-(Ct-e.current.getScrollPosition().left)}}}const Sn={rowIndex:Pt,colIndex:Nt},Ht=L(Sn),Ut={rowIndex:Ht.rowStart,colIndex:Ht.colStart};G||(ue.current=Sn);const Qn=Wt.isEqualCells(Re.current,Ut)&&Wt.isEqualCells(Re.current,et);if(G&&!Qn?se(Ut,et):te(Ut),Kt)e.current.scrollTo(Kt);else{if(G&&Re.current){const Ct=X();if(K===qn&&Re.current.colIndex===Ct.left||K===to&&Re.current.colIndex===Ct.right||K===oo&&Re.current.rowIndex===Ct.bottom||K===ro&&Re.current.rowIndex===Ct.top)return}K===to||K===qn?Le({colIndex:Sn.colIndex}):K!==oo&&K!==ro||Le({rowIndex:Sn.rowIndex})}},[Y,L]),At=wt(K=>{if(!e.current)return;if(Y.ranges.length===0)return void rt(K);const G=L(Y.cell);if(Wt.isEqualRangesArrays([G],Y.ranges))return void rt(K);const ke=Ih(Y,K,L,be,ce);ae(Pe=>{ee.current=!1,Pe=Yr(Pe);const et={...Pe,cell:ke.cell,rangeIndex:ke.rangeIndex};return Wt.isEqualSelectionCoords(et,Pe)?Pe:et}),ke.cell&&Le(ke.cell)},[Y,L]),zt=u.useCallback(()=>{const K=X();se({rowIndex:K.top},{rowIndex:K.bottom})},[]),_t=u.useCallback(()=>{const K=X();se({colIndex:K.left},{colIndex:K.right})},[]),Vt=wt(()=>{Y.cell&&e?.current&&Le(Y.cell)},[Y.cell]),on=u.useCallback((K=!1)=>{const G={rowIndex:X().top};K?se(G):te(G),Le(G)},[]),Yt=u.useCallback((K=!1)=>{const G={rowIndex:X().bottom};K?se(G):te(G),Le(G)},[]),_n=u.useCallback((K=!1)=>{const G={colIndex:X().left};K?se(G):te(G),Le(G)},[]),pn=u.useCallback((K=!1)=>{const G=X(),ke={rowIndex:G.top,colIndex:G.left};K?se(ke):te(ke),Le(ke)},[]),Mn=u.useCallback((K=!1)=>{const G=X(),ke={colIndex:E?.()?.colEnd??G.right};K?se(ke):te(ke),Le(ke)},[E]),kt=u.useCallback((K=!1)=>{const G=X(),ke={rowIndex:E?.()?.rowEnd??G.bottom,colIndex:E?.()?.colEnd??G.right};K?se(ke):te(ke),Le(ke)},[E]),rn=wt(K=>{if(!e.current||Y.ranges.length<=1)return;const G=K===to||K===oo;let ke=Y.rangeIndex+(G?-1:1);ke<0?ke=Y.ranges.length-1:ke>Y.ranges.length-1&&(ke=0);const Pe=Y.ranges[ke],et=Ih({cell:{rowIndex:Pe.rowEnd,colIndex:Pe.colEnd},rangeIndex:0,ranges:[Pe]},qn,L,be,ce);ae(pt=>{ee.current=!1,pt=Yr(pt);const it={...pt,cell:et.cell,rangeIndex:ke};return Wt.isEqualSelectionCoords(it,pt)?pt:it}),et.cell&&Le(et.cell)},[Y,L]),fn=wt(()=>{const K=L9(Y);ae(G=>{ee.current=!1,G=Yr(G);const ke={...G,visibleSelection:K};return Wt.isEqualSelectionCoords(ke,G)?G:ke}),K.cell&&Le(K.cell)},[Y,L]),zn=wt(()=>{if(!e.current||Y.ranges.length===0)return;const K=Y.cell,G=Y.ranges[Y.rangeIndex],ke=L9({cell:K,rangeIndex:0,ranges:[G]}),Pe=ke.ranges[ke.rangeIndex];let et;et=Pe.rowStart===K.rowIndex&&Pe.colStart===K.colIndex?{rowIndex:Pe.rowStart,colIndex:Pe.colEnd}:Pe.rowStart===K.rowIndex&&Pe.colEnd===K.colIndex?{rowIndex:Pe.rowEnd,colIndex:Pe.colStart}:Pe.rowEnd===K.rowIndex&&Pe.colStart===K.colIndex?{rowIndex:Pe.rowEnd,colIndex:Pe.colEnd}:{rowIndex:Pe.rowStart,colIndex:Pe.colStart},ae(pt=>{pt=Yr(pt);const it={...pt,cell:et};return Wt.isEqualSelectionCoords(it,pt)?pt:it}),et&&Le(et)},[Y,L]),$n=u.useCallback((K=!1)=>{rt(ro,K,!1,e.current.getDimensions().containerHeight)},[]),hn=u.useCallback((K=!1)=>{rt(oo,K,!1,e.current.getDimensions().containerHeight)},[]),go=u.useCallback((K=!1)=>{rt(qn,K,!1,e.current.getDimensions().containerWidth)},[]),bo=u.useCallback((K=!1)=>{rt(to,K,!1,e.current.getDimensions().containerWidth)},[]),Fo=u.useCallback(()=>{At(to)},[]),tr=u.useCallback(()=>{At(qn)},[]),Tr=u.useCallback(()=>{At(oo)},[]),_r=u.useCallback(()=>{At(ro)},[]),ui=u.useCallback(()=>{rn(to)},[]),Ki=u.useCallback(()=>{rn(qn)},[]),pi=u.useCallback(()=>{zn()},[]),pr=u.useCallback(()=>{rt(to,!1,!1)},[]),tt=u.useCallback(()=>{rt(to,!0,!1)},[]),mt=u.useCallback(()=>{rt(to,!1,!0)},[]),gt=u.useCallback(()=>{rt(to,!0,!0)},[]),ut=u.useCallback(()=>{rt(qn,!1,!1)},[]),vt=u.useCallback(()=>{rt(qn,!0,!1)},[]),jt=u.useCallback(()=>{rt(qn,!1,!0)},[]),Ot=u.useCallback(()=>{rt(qn,!0,!0)},[]),Rt=u.useCallback(()=>{rt(oo,!1,!1)},[]),Bt=u.useCallback(()=>{rt(oo,!0,!1)},[]),Lt=u.useCallback(()=>{rt(oo,!1,!0)},[]),mn=u.useCallback(()=>{rt(oo,!0,!0)},[]),Fn=u.useCallback(()=>{rt(ro,!1,!1)},[]),wn=u.useCallback(()=>{rt(ro,!0,!1)},[]),Ne=u.useCallback(()=>{rt(ro,!1,!0)},[]),yt=u.useCallback(()=>{rt(ro,!0,!0)},[]),qt=u.useCallback(()=>{Ie(K=>K.slice(0,-1))},[]),tn=u.useMemo(()=>{const K=X();return((G,ke,Pe,et,pt)=>{for(let it=0;it<G.length;it++){const Pt=G[it];if(Pt.rowStart===ke&&Pt.colStart===Pe&&Pt.rowEnd===et&&Pt.colEnd===pt)return!0}return!1})(Y.ranges,K.top,K.left,K.bottom,K.right)},[R,Y.ranges]),an=u.useCallback((K,G=!0)=>{Re.current=K,Me(K),G&&K&&e?.current&&Le(K)},[]),It=wt((K=!0)=>{const G=Ge.current;if(!le.current?.cell)return;const ke=le.current?.ranges,Pe=le.current?.cell;if(!Pe||!G||!G)return;let et=null;if(et=ke.length>0?ke[ke.length-1]:L(Pe),et.colEnd>=et.colStart&&et.rowEnd>=et.rowStart){const pt=A9(et,G);let it=K?H:ne;try{it?.(et,G,pt.direction)}catch(Pt){console.warn(Pt)}finally{K&&ge?.()}}},[L]),On=u.useRef(null),hr=Ts(u.useMemo(()=>({onPointerDown:(K,G)=>{if(Fe.current=G,!e||!e.current)return!1;const ke=e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),Pe=ke?.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);Pe&&(K.stopPropagation(),Ve("crosshair"),On.current={anchor:ke.getAnchor(),coords:Pe})},onPointerMoveOrWait:(K,G)=>{if(m||!e?.current||!le.current||!On.current)return;const ke=On.current.anchor;let Pe=e.current.getViewFromLocation(ke),et=Pe.getCellCoordsFromClient(K.clientX,K.clientY);if(!et)return;On.current={anchor:ke,coords:et};const pt=le.current.ranges;let it=Q(le.current.cell,et);if(!it)return;const Pt=pt.length>0,Nt=Pt?pt[pt.length-1]:L(le.current.cell);if(!it)return;const Ft=it.rowStart<Nt.rowStart?oo:it.rowEnd>Nt.rowEnd?ro:it.colEnd>Nt.colEnd?qn:to,Kt=X();Ft===to&&(it={...Nt,colStart:Math.max(Kt.left,it.colStart)}),Ft===oo&&(it={...Nt,rowStart:Math.max(Kt.top,it.rowStart)}),Ft===qn&&(it={...Nt,colEnd:Math.min(Kt.right,it.colEnd)}),Ft===ro&&(it={...Nt,rowEnd:Math.min(Kt.bottom,it.rowEnd)});const Sn=A9(Nt,it);if(!j?.(Nt)){let Ht;typeof De.current=="function"?Ht=De.current(Nt):T&&(Ht=T),it=((Ut,Qn,Ct,cn,wo,Xt)=>{const gn={...Qn};if(Ct.length===0)return gn;if(wo===to){const Zn=Ut.colEnd+1-Ut.colStart;gn.colStart=Ut.colStart-Math.ceil(Xt/Zn)*Zn,gn.colStart<cn.left&&(gn.colStart=gn.colStart+Math.ceil((cn.left-gn.colStart)/Zn)*Zn)}else if(wo===qn){const Zn=Ut.colEnd+1-Ut.colStart;gn.colEnd=Ut.colEnd+Math.ceil(Xt/Zn)*Zn,gn.colEnd>cn.right&&(gn.colEnd=gn.colEnd-Math.ceil((cn.right-gn.colEnd)/Zn)*Zn)}else if(wo===oo){const Zn=Ut.rowEnd+1-Ut.rowStart;gn.rowStart=Ut.rowStart-Math.ceil(Xt/Zn)*Zn,gn.rowStart<cn.top&&(gn.rowStart=gn.rowStart+Math.ceil((cn.top-gn.rowStart)/Zn)*Zn)}else if(wo===ro){const Zn=Ut.rowEnd+1-Ut.rowStart;gn.rowEnd=Ut.rowEnd+Math.ceil(Xt/Zn)*Zn,gn.rowEnd>cn.bottom&&(gn.rowEnd=gn.rowEnd-Math.ceil((cn.bottom-gn.rowEnd)/Zn)*Zn)}return gn})(Nt,it,Ht,Kt,Sn.direction,Sn.amount)}if(Pt&&Wt.isRangeWithinRange(it,Nt)&&(it=null),!Wt.isEqualRanges(it,Ge.current)){if(je(it),Ge.current=it,!it){try{oe?.()}catch{}return void ge?.()}It(!1)}Fe.current=G,bd(Pe,et,e)},onPointerUp:(K,G)=>{Fe.current=G,Promise.resolve(It(!0)).finally(()=>{ge?.(),je(null),Ge.current=null,On.current=null,Ve(null),e.current?.focus()})}}),[L])),vr=u.useMemo(()=>({onPointerDown:hr}),[hr]),[dn,Wn]=u.useState(null),Dn=u.useRef(null),Un=u.useMemo(()=>({onPointerDown:(K,G)=>{if(Fe.current=G,!e||!e.current)return!1;const ke=e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),Pe=ke?.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!Pe)return;if(_?.(K,Pe,Y)===!1)return!1;K.stopPropagation(),Ve("default");const et=ke.getRelativePointFromClient(0,0),pt=le.current?.ranges[le.current?.ranges.length-1]??Wt.cellToRange(le.current?.cell),it=ke.toClipBounds(ke.getRangeCoordsBounds(pt)),Pt={x:0,y:0};it.x-et.x>K.nativeEvent.clientX?Pt.x=K.nativeEvent.clientX-(it.x-et.x):K.nativeEvent.clientX>=it.x-et.x+it.width&&(Pt.x=Math.max(0,K.nativeEvent.clientX-(it.x-et.x+it.width))+1),it.y-et.y>K.nativeEvent.clientY?Pt.y=K.nativeEvent.clientY-(it.y-et.y):K.nativeEvent.clientY>=it.y-et.y+it.height&&(Pt.y=Math.max(0,K.nativeEvent.clientY-(it.y-et.y+it.height))+1),C?.(pt,K.nativeEvent,G),Dn.current={range:pt,anchor:ke.getAnchor(),cell:Pe,isMoving:!1,extrusion:Pt}},onPointerMoveOrWait:(K,G,ke)=>{if(z||!e?.current||!le.current||!Dn.current)return;const Pe=K.clientX-ke.clientX,et=K.clientY-ke.clientY;if(Dn.current.isMoving=Dn.current.isMoving||Math.abs(Pe)>Math.max(1,2)||Math.abs(et)>Math.max(1,2)||performance.now()-ke.timeStamp>500,!Dn.current.isMoving)return;const pt=Dn.current.anchor,it=Dn.current.extrusion;let Pt=e.current.getViewFromLocation(pt),Nt=Pt.getCellCoordsFromClient(K.clientX-it.x,K.clientY-it.y,!0);if(!Nt)return;const Ft=Dn.current.cell,Kt=Dn.current.range,Sn=X(),Ht=Kt.colEnd-Kt.colStart+1,Ut=Math.min(Math.max(0,Ft.colIndex-Kt.colStart),Ht-1),Qn=Math.min(Sn.right-Ht+1,Math.max(Sn.left,Nt.colIndex-Ut)),Ct=Kt.rowEnd-Kt.rowStart+1,cn=Math.min(Math.max(0,Ft.rowIndex-Kt.rowStart),Ct-1),wo=Math.min(Sn.bottom-Ct+1,Math.max(Sn.top,Nt.rowIndex-cn)),Xt={colStart:Qn,colEnd:Qn+Ht-1,rowStart:wo,rowEnd:wo+Ct-1};var gn;Wt.isEqualRanges(dn,Xt)&&!(!(gn=K)||!Fe.current||Fe.current.ctrlKey!==gn.ctrlKey||Fe.current.shiftKey!==gn.shiftKey||Fe.current.altKey!==gn.altKey||Fe.current.metaKey!==gn.metaKey)||(Wn(Xt),k?.(Xt,K,G)),Fe.current=G,bd(Pt,Nt,e)},onPointerUp:(K,G)=>{Fe.current=G;const ke=()=>{Wn(null),Dn.current=null,Ve(null),e.current?.focus()};if(!Dn.current)return void ke();const Pe=Dn.current.range,et=dn;P?.(Pe,K,G),Promise.resolve(Pe&&et&&O?.(Pe,et,K,G)).finally(()=>{ke()})}}),[dn]),jn=Ts(Un),vo=u.useMemo(()=>({onPointerDown:jn}),[jn]),Ke=u.useRef(null),xe=u.useMemo(()=>{const K=Wt.isEqualSelectionCoords(Y,Ke.current)?Ke.current:Y;return Ke.current=K,K},[Y]),St=u.useCallback(K=>{let G=null,ke="br";const Pe=[],et={stroke:y,fill:B,strokeWidth:.5},pt=(Ht,Ut,Qn)=>{const Ct=K.toClipBounds(K.getRangeCoordsBounds(Ht),jr);if(!Ct)return;Ct.x=Ct.width>0?Ct.x:Ct.x-et.strokeWidth/2,Ct.y=Ct.height>0?Ct.y:Ct.y-et.strokeWidth/2,Ct.width=Math.max(Ct.width,et.strokeWidth),Ct.height=Math.max(Ct.height,et.strokeWidth);const cn={key:`selection-fill-${Ut}`,range:Ht,...Ct,...et};if(Qn){const wo=K.getCellCoordsAsRangeCoords(Qn);cn.cell=Qn,cn.pathBounds=K.toClipBounds(K.getRangeCoordsBounds(wo),jr),cn.pathBounds&&(cn.pathBounds.width<=0||cn.pathBounds.height<=0)&&(delete cn.pathBounds,delete cn.cell)}return ye(cn)};let it=Y?Yr(Y):null;const Pt=it?.cell?K.getCellCoordsAsRangeCoords(it?.cell):Cz;!it||it.ranges&&it.ranges.length!==0||(it={ranges:[Pt],rangeIndex:0,cell:it.cell});for(let Ht=0;it&&Ht<it.ranges.length;Ht++){const Ut=it.ranges[Ht],Qn=pt(Ut,Ht,Ht===it.rangeIndex?it.cell:null);Qn&&Pe.push(Qn);const Ct=2,cn=.5,wo=K.toClipBounds(K.getRangeCoordsBounds(Ut,{top:0,left:0,right:0,bottom:0}),jr);if(wo){const Xt=(it.ranges.length,4);Pe.push(ye({range:Ut,key:`selection-inside-edge-${Ht}`,x:wo.x-1,y:wo.y-1,width:Math.max(wo.width+1,0),height:Math.max(wo.height+1,0),style:{overflow:"hidden"},stroke:y,strokeWidth:Xt}))}if(it.ranges.length===1){const Xt=K.toClipBounds(K.getRangeCoordsBounds(Ut),jr);if(Xt){z||Pe.push(ye({range:Ut,key:`move-selection-hit-box-${Ht}`,x:Xt.width>1?Xt.x:Xt.x-(D/2+1),y:Xt.height>1?Xt.y:Xt.y-(D/2+1),width:Math.max(Xt.width+2,1),height:Math.max(Xt.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:dn?void 0:"move",pointerEvents:"stroke"},strokeWidth:D,...vo}));const gn=Ct;Pe.push(ye({range:Ut,key:`selection-single-${Ht}`,x:Xt.x-gn/2,y:Xt.y-gn/2,width:Math.max(Xt.width+gn/2,1),height:Math.max(Xt.height+gn/2,1),stroke:M,strokeWidth:gn}))}}else{const Xt=K.toClipBounds(K.getRangeCoordsBounds(Ut,{top:-1,left:-1,right:-2,bottom:-2}),jr);Xt&&Pe.push(ye({range:Ut,key:`selection-multi-${Ht}`,x:Xt.width>1?Xt.x:Xt.x-cn/2,y:Xt.height>1?Xt.y:Xt.y-cn/2,width:Math.max(Xt.width,cn)+1,height:Math.max(Xt.height,cn)+1,stroke:M,style:{overflow:"hidden"},strokeWidth:2}))}if(it.ranges.length>1&&Ht===it.rangeIndex){const Xt=K.getCellCoordsAsRangeCoords(it.cell),gn=K.toClipBounds(K.getRangeCoordsBounds(Xt,{top:1,left:1,right:-1,bottom:-1}),jr);gn&&Pe.push(ye({range:Ut,key:`selection-anchor-${Ht}`,x:gn.x,y:gn.y,width:Math.max(gn.width,cn),height:Math.max(gn.height,cn),stroke:M,style:{overflow:"hidden"},strokeWidth:2}))}if(Ht===it.ranges.length-1){G=null,ke=null;const Xt=Ut.rowStart===X().top&&Ut.rowEnd===X().bottom,gn=Ut.colStart===X().left&&Ut.colEnd===X().right,Zn=K.getRangeCoordsBounds(Ut);let Fr=null;if(Xt||gn){if(Fr=K.toClipBounds(Zn,jr),Object.keys(K.allViews()).length>1){const Pa=K.getVisibleRangeCoords(),T1=K.allViews()[zu],ar=K.allViews()[Kc],Bo=K.allViews()[Gc],Gt=K.getAnchor();(gn&&(Gt===Kc&&T1||Gt===Jr&&Bo||!Wt.isCellWithinRange({colIndex:Ut.colStart,rowIndex:Ut.rowEnd},Pa)&&!Wt.isCellWithinRange({colIndex:Ut.colStart,rowIndex:Ut.rowEnd+1},Pa))||Xt&&(Gt===Gc&&T1||Gt===Jr&&ar||!Wt.isCellWithinRange({colIndex:Ut.colEnd,rowIndex:Ut.rowStart},Pa)&&!Wt.isCellWithinRange({colIndex:Ut.colEnd+1,rowIndex:Ut.rowStart},Pa)))&&(Fr=null)}}else Fr=K.toClipBounds(Zn,jr);if(!Fr||Fr.width===0||Fr.height===0)continue;G={x:Fr.x+Fr.width+1,y:Fr.y+Fr.height+1},Fr.width===0||Fr.height===0||Ut.rowStart===X().top&&Ut.colStart===X().left&&Ut.rowEnd===X().bottom&&Ut.colEnd===X().right||(Xt?(G.y=Ct,ke="tr"):gn&&(G.x=Ct,ke="bl"))}}let Nt=null;if(Be){const Ht=K.toClipBounds(K.getRangeCoordsBounds(Be,{top:0,left:0,right:0,bottom:0}),jr);Ht&&(Nt=ye({...et,range:Be,key:"remove-selection",x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height,strokeWidth:2,stroke:N,fill:V}))}let Ft=null;if(Ce){const Ht=K.toClipBounds(K.getRangeCoordsBounds(Ce,{top:0,left:0,right:0,bottom:0}),jr);Ht&&(Ft=ye({range:Ce,key:"selection-fill-outline",x:Ht.x-1,y:Ht.y-1,width:Ht.width+1,height:Ht.height+1,strokeWidth:2,stroke:M,strokeDasharray:"3 2"}))}let Kt=null;!m&&G&&!dn&&(Kt=u.createElement(Ow,{...G,corner:ke,size:7.5,borderStroke:`${y} solid`,style:{borderRadius:1},background:M,...vr,key:"fillHandle"}));const Sn=[...Pe];if(Nt&&Sn.push(Nt),Ft&&Sn.push(Ft),Kt&&Sn.push(Kt),!U&&me&&it?.ranges.length===1&&it.ranges[it.ranges.length-1]){const Ht=it.ranges[it.ranges.length-1],Ut=Ht.rowStart===X().top&&Ht.rowEnd===X().bottom,Qn=Ht.colStart===X().left&&Ht.colEnd===X().right,Ct={view:K,range:Ht,borderStroke:`${M} solid`,background:y,selectionTouchPointerHandler:Qe,...J,onTouchSelectStart:cn=>Se(cn),onTouchSelectEnd:()=>Se(null),currentTouchAnchor:Ze};Sn.push(s.jsx(Ph,{anchor:Qn?"b":Ut?"r":"br",scrollableElement:e.current,...Ct},"touch-select-handle-after")),Sn.push(s.jsx(Ph,{anchor:Qn?"t":Ut?"l":"tl",scrollableElement:e.current,...Ct},"touch-select-handle-before"))}if(dn){const Ht=K.toClipBounds(K.getRangeCoordsBounds(dn,{top:1,left:1,right:1,bottom:1}),jr);Ht&&Sn.push(ye({range:dn,key:"selection-move-outline",x:Ht.x-F/2,y:Ht.y-F/2,width:Math.max(Ht.width+F/2,1),height:Math.max(Ht.height+F/2,1),stroke:M,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:F}))}return s.jsx("div",{children:Sn},"selection")},[xe,Be,m,Ce,z,dn,X,y,M,B,N,V,U,J,Ze]),Mt=u.useMemo(()=>{const K=()=>e.current;return[new bn("moveToPageDown",K,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>$n(!1)),new bn("selectToPageDown",K,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[Vo]}]},()=>$n(!0)),new bn("moveToPageRight",K,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[ul]}]},()=>go(!1)),new bn("selectToPageRight",K,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[ul,Vo]}]},()=>go(!0)),new bn("moveToPageUp",K,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>hn(!1)),new bn("selectToPageUp",K,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[Vo]}]},()=>hn(!0)),new bn("moveToPageLeft",K,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[ul]}]},()=>bo(!1)),new bn("selectToPageLeft",K,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[ul,Vo]}]},()=>bo(!0)),new bn("selectColumn",K,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[mr]}},zt),new bn("selectRow",K,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[Vo]}},_t),new bn("selectToColumnStart",K,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>on(!0)),new bn("selectToColumnEnd",K,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Yt(!0)),new bn("moveToRowStart",K,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>_n(!1)),new bn("selectToRowStart",K,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[Vo]}]},()=>_n(!0)),new bn("moveToSheetStart",K,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr]}]},()=>pn(!1)),new bn("selectToSheetStart",K,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr,Vo]}]},()=>pn(!0)),new bn("moveToRowEnd",K,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>Mn(!1)),new bn("selectToRowEnd",K,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[Vo]}]},()=>Mn(!0)),new bn("moveToSheetEnd",K,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr]}]},()=>kt(!1)),new bn("selectToSheetEnd",K,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr,Vo]}]},()=>kt(!0)),new bn("scrollToActiveCoords",K,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[mr]}},Vt),new bn("scrollToActiveCoordsClearSelection",K,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[Vo]}},()=>{pe(),an(Y.cell,!0)}),new bn("traverseSelectionRight",K,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},tr),new bn("traverseSelectionLeft",K,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[Vo]}},Fo),new bn("traverseSelectionDown",K,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},_r),new bn("traverseSelectionUp",K,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[Vo]},{key:"NumpadEnter",modifiers:[Vo]}]},Tr),new bn("moveLeft",K,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},pr),new bn("selectLeft",K,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[Vo]}]},tt),new bn("moveContentfulLeft",K,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr]}]},mt),new bn("selectContentfulLeft",K,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr,Vo]}]},gt),new bn("moveRight",K,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},ut),new bn("selectRight",K,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[Vo]}]},vt),new bn("moveContentfulRight",K,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr]}]},jt),new bn("selectContentfulRight",K,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr,Vo]}]},Ot),new bn("moveUp",K,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},Rt),new bn("selectUp",K,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[Vo]}]},Bt),new bn("moveContentfulUp",K,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr]}]},Lt),new bn("selectContentfulUp",K,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr,Vo]}]},mn),new bn("moveDown",K,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},Fn),new bn("selectDown",K,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[Vo]}]},wn),new bn("moveContentfulDown",K,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr]}]},Ne),new bn("selectContentfulDown",K,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr,Vo]}]},yt),new bn("selectVisible",K,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[ul]}},fn),new bn("traverseSelectionPreviousRange",K,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[mr,ul]}},ui),new bn("traverseSelectionNextRange",K,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[mr,ul]}},Ki),new bn("traverseSelectionCorners",K,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[mr]}},pi)]},[]);return u.useMemo(()=>{t?.addCommands(Mt,!0)},[t]),{selection:xe,setSelectionCell:an,setSelectionRanges:Ie,overlay:St,cursor:ot,onPointerDown:Je,clearLastSelection:qt,newSelection:te,modifySelection:se,appendSelection:ie,clearSelections:pe,isEntire:tn,navigate:rt,navigateSelection:At}};function Qd(e,t){if(!e)throw new Error("Invariant failed")}const N9={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},Ez=Object.freeze({top:0,left:0}),Mz=Object.freeze({bottom:-4,right:-4}),Tz=Object.freeze({horizontal:!0,vertical:!0}),$9=[zu,Kc,Gc,Jr],Qi=3e3,Yp={},Fw=u.memo(u.forwardRef((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:a,defaultColumnWidth:l,getRowHeight:c,getColumnWidth:d,layout:p,onViewportScroll:h,onImmediateScroll:f,showGridLines:g=!0,gridLineColor:m="rgb(224, 224, 224)",gridLineRowsProps:y,gridLineColumnsProps:x,clipCells:v=!0,cursor:b,freezeLeft:w=0,freezeTop:E=0,freezeLeftProps:S,freezeTopProps:R,cellRenderer:_,onViewportChange:A,onFirstRender:T,overlayRenderer:j,overlayProps:C,overlays:k,overlaysProps:P,allowOverlaysOverflow:O=!1,stageProps:I,stageWrapper:z=null,hiddenRowsAt:L,hiddenColumnsAt:D,hiddenCellAt:F,getVisibleCells:B,zoom:M=1,enableMouseWheel:N=!0,onWheelScroll:V,getCellCoordsAsRangeCoords:U=Wt.cellToRange,scrollPoint:J=Ez,style:X={},...H}=e;Qd(_),Qd(!e?.children);const ne=wt(f,[f]),oe=wt(A,[A]),ge=wt(h,[h]),de=wt(V,[V]),ye=wt(T,[T]),ve=u.useRef(null),be=u.useRef(null),re=u.useRef(null),[ce,we]=u.useReducer(tt=>tt+1,0),[ae,Y]=u.useState({left:J?.left??0,top:J?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),le=u.useRef(null),ee=u.useRef(ae),{top:Ie,left:Me,verticalScrollDirection:ot,horizontalScrollDirection:Ve}=ae,Ce=u.useRef(!1),je=(tt=>{const{rowCount:mt,columnCount:gt,defaultRowHeight:ut,getRowHeight:vt,defaultColumnWidth:jt,getColumnWidth:Ot}=tt||{},Rt=u.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),Bt=wt(On=>I9({itemType:"row",itemCount:mt,itemSize:vt??(()=>ut??20),instanceProps:Rt.current,offset:On}),[mt,vt,ut]),Lt=wt(On=>On===-1?0:ys({itemType:"row",index:On,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).offset,[vt,ut]),mn=wt(On=>ys({itemType:"row",index:On,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).size,[vt,ut]),Fn=wt(On=>I9({itemType:"column",itemCount:gt,itemSize:Ot??(()=>jt??75),instanceProps:Rt.current,offset:On}),[gt,Ot,jt]),wn=wt(On=>On===-1?0:ys({itemType:"column",index:On,itemSize:Ot??(()=>jt??75),instanceProps:Rt.current}).offset,[Ot,jt]),Ne=wt(On=>ys({itemType:"column",index:On,itemSize:Ot??(()=>jt??75),instanceProps:Rt.current}).size,[Ot,jt]),[yt,qt]=u.useReducer(On=>On+1,0),tn=()=>({getRowOffset:Lt,getColOffset:wn,getRowIndex:Bt,getColIndex:Fn}),[an,It]=u.useState(()=>tt?tn():null);return u.useEffect(()=>{It(tt?tn():null)},[yt,mt,gt,jt,ut,mn,Ne]),an})({rowCount:r,columnCount:i,defaultRowHeight:a,defaultColumnWidth:l,getRowHeight:c,getColumnWidth:d}),Ge=u.useRef(null),Be=u.useMemo(()=>{const tt=p||je;return Ge.current=null,{getColOffset:mt=>tt.getColOffset(mt)*M,getColIndex:mt=>tt.getColIndex(mt/M),getRowOffset:mt=>tt.getRowOffset(mt)*M,getRowIndex:mt=>tt.getRowIndex(mt/M)}},[je,p,M]),ct=(tt,mt,gt)=>{const ut=(mt?.left??0)+0,vt=(mt?.top??0)+0;return{getColOffset:jt=>tt.getColOffset(jt)-ut,getColIndex:jt=>tt.getColIndex(jt+ut),getRowOffset:jt=>tt.getRowOffset(jt)-vt,getRowIndex:jt=>tt.getRowIndex(jt+vt)}},Ye=u.useCallback((tt,mt=!1)=>$u(tt,mt,Be.getRowOffset,mt?0:r),[r,Be?.getRowOffset]),he=wt(L??Ye,[L]),Ze=u.useCallback((tt,mt=!1)=>$u(tt,mt,Be.getColOffset,mt?i:0),[i,Be?.getColOffset]),Se=wt(D??Ze,[D]),Re=u.useMemo(()=>Math.min(n??800,Be.getColOffset(i)),[Be.getColOffset,i,n]),ue=u.useMemo(()=>Math.min(o??600,Be.getRowOffset(r)),[Be.getRowOffset,r,o]),De=u.useCallback(tt=>{Qo.canUseDOM&&setTimeout(()=>{ve.current?.focus({preventScroll:!0,...tt})},0)},[]),Le=u.useCallback(tt=>ve.current?.contains(tt)||be.current?.contains(tt),[]);u.useEffect(()=>{Ce.current&&(le.current&&le.current.left!==ee.current?.left&&le.current.top!==ee.current?.top||(le.current=null,ge?.({left:Me,top:Ie})))},[Me,Ie]);const W=wt(()=>({top:Ie,left:Me}),[Ie,Me]),Q=u.useMemo(()=>{const tt=[];let mt=0,gt=0;typeof E=="number"?mt=E:(mt=E.index??0,gt=(E.scrollOffset??0)*M);const ut=gt,vt=Be.getRowOffset(mt),jt=vt-ut;if(mt>0){const Fn=ct(Be,{top:gt+Be.getRowOffset(0)}),wn=Be.getRowIndex(ut),Ne=Be.getRowIndex(vt-1);let yt;tt[1]={minIndex:wn,maxIndex:Ne,minCoord:0,maxCoord:mt-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(xd(he,wn,Ne)),yt),layout:Fn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Ot=Math.max(0,ue-jt),Rt=ct(Be,{top:Ie+jt}),Bt=Rt.getRowIndex(0),Lt=Rt.getRowIndex(Ot);let mn;return tt[0]={minIndex:Bt,maxIndex:Lt,minCoord:mt,maxCoord:r-1,minBounds:jt,maxBounds:Ot,visibleIndices:()=>mn||(mn=Object.freeze(xd(he,Bt,Lt)),mn),layout:Rt,maxVirtualBounds:Be.getRowOffset(r),scrollOffset:Ie,freezeOffset:(mt>0?Be.getRowOffset(mt):0)-gt},tt},[Be.getRowIndex,Be.getRowOffset,he,ue,r,E,Ie,M]),q=u.useMemo(()=>{const tt=[];let mt=0,gt=0;typeof w=="number"?mt=w:(mt=w.index??0,gt=(w.scrollOffset??0)*M);const ut=gt,vt=Be.getColOffset(mt),jt=vt-ut;if(mt>0){const Fn=ct(Be,{left:gt+Be.getColOffset(0)}),wn=Be.getColIndex(ut),Ne=Be.getColIndex(vt-1);let yt;tt[1]={minIndex:wn,maxIndex:Ne,minCoord:0,maxCoord:mt-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(xd(Se,wn,Ne)),yt),layout:Fn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Ot=Math.max(0,Re-jt),Rt=ct(Be,{left:Me+jt}),Bt=Rt.getColIndex(0),Lt=Rt.getColIndex(Ot);let mn;return tt[0]={minIndex:Bt,maxIndex:Lt,minCoord:mt,maxCoord:i-1,minBounds:jt,maxBounds:Ot,visibleIndices:()=>mn||(mn=Object.freeze(xd(Se,Bt,Lt)),mn),layout:Rt,maxVirtualBounds:Be.getColOffset(i),scrollOffset:Me,freezeOffset:(mt>0?Be.getColOffset(mt):0)-gt},tt},[Be.getColIndex,Be.getColOffset,Se,Re,i,w,Me,M]),se=u.useRef({}),te=u.useRef([]),ie=u.useMemo(()=>{let tt={};const mt=(ut,vt,jt,Ot,Rt)=>{const Bt={vertical:Ot?.vertical||!1,horizontal:Ot?.horizontal||!1};if(ut>=q.length||vt>=Q.length)return null;const Lt={rowStart:Q[vt].minIndex,colStart:q[ut].minIndex,rowEnd:Q[vt].maxIndex,colEnd:q[ut].maxIndex};if(Lt.rowStart>Lt.rowEnd||Lt.colStart>Lt.colEnd)return null;const mn={getColIndex:dn=>q[ut].layout.getColIndex(dn),getColOffset:dn=>q[ut].layout.getColOffset(dn),getRowIndex:dn=>Q[vt].layout.getRowIndex(dn),getRowOffset:dn=>Q[vt].layout.getRowOffset(dn)},Fn=Object.freeze({left:Rt?.left??0,top:Rt?.top??0,right:Rt?.right??0,bottom:Rt?.bottom??0}),wn=Object.freeze({x:q[ut].minBounds,y:Q[vt].minBounds,width:q[ut].maxBounds,height:Q[vt].maxBounds}),Ne=(dn,Wn)=>F9(mn,dn??Lt,Wn),yt={width:q[ut].maxVirtualBounds,height:Q[vt].maxVirtualBounds},qt={left:q[ut].scrollOffset,top:Q[vt].scrollOffset},tn={left:q[ut].freezeOffset,top:Q[vt].freezeOffset},an={width:Re,height:ue};let It=null,On=null;const hr=(tn.top+(Ot.vertical?qt.top:0))/M,vr=(tn.left+(Ot.horizontal?qt.left:0))/M;return{getStage:()=>ve.current??null,getVisibleRangeCoords:()=>Lt,toClipBounds:(dn,Wn)=>{let Dn,Un=0;return Wn===void 0||typeof Wn=="number"?(Dn=Ne(Lt),Un=Wn):Dn=Wn,((jn,vo,Ke=0)=>{if(jn.x>vo.width||jn.y>vo.height)return null;const xe={left:jn.x,top:jn.y,bottom:jn.height+jn.y,right:jn.width+jn.x},St={left:vo.x+Ke,top:vo.y+Ke,bottom:vo.height-2*Ke+vo.y,right:vo.width-2*Ke+vo.x},Mt={left:Math.max(xe.left,St.left),top:Math.max(xe.top,St.top),bottom:Math.min(xe.bottom,St.bottom),right:Math.min(xe.right,St.right)},K={x:Mt.left,y:Mt.top,width:Mt.right-Mt.left,height:Mt.bottom-Mt.top};return K.height<0||K.width<0?null:K})(dn??{x:0,y:0,width:wn.width,height:wn.height},Dn,Un)},toViewBounds:dn=>vr===0&&hr===0&&M===1?dn:{x:(dn.x-vr)*M,y:(dn.y-hr)*M,width:dn.width*M,height:dn.height*M},toAbsoluteBounds:dn=>vr===0&&hr===0&&M===1?dn:{x:dn.x/M+vr,y:dn.y/M+hr,width:dn.width/M,height:dn.height/M},getRelativePointFromClient:(dn,Wn)=>{const Dn=qe(dn,Wn);return{x:Dn.x-wn.x,y:Dn.y-wn.y}},getLayout:()=>mn,getCellCoordsAsRangeCoords:U,getVisibleColumns:()=>q[ut].visibleIndices(),getVisibleRows:()=>Q[vt].visibleIndices(),getVisibleColumnOffsets:()=>(It||(It=z9(q[ut].layout,!0,q[ut].visibleIndices(),Lt.colStart,Lt.colEnd)),It),getVisibleRowOffsets:()=>(On||(On=z9(Q[vt].layout,!1,Q[vt].visibleIndices(),Lt.rowStart,Lt.rowEnd)),On),getTotalRangeCoords:()=>({colStart:q[ut].minCoord,colEnd:q[ut].maxCoord,rowStart:Q[vt].minCoord,rowEnd:Q[vt].maxCoord}),getRangeCoordsBounds:Ne,scrollCellCoordsIntoView:(dn,Wn)=>_n(dn,Wn,jt),getCellCoordsFromClient:(dn,Wn,Dn=!1)=>{const Un=qe(dn,Wn);if(!Un)return null;const jn=mn.getColIndex(Un.x-wn.x),vo={rowIndex:mn.getRowIndex(Un.y-wn.y),colIndex:jn};if(Dn)return vo;const Ke=U(vo);return{rowIndex:Ke.rowStart,colIndex:Ke.colStart}},getZoom:()=>M,getAnchor:()=>jt,getBounds:()=>wn,getInsets:()=>Fn,getTotalSize:()=>yt,getViewportSize:()=>an,getScrollTopLeft:()=>qt,getFreezeTopLeft:()=>tn,getScrollOrientation:()=>Bt,allViews:()=>tt}};let gt=tt[Jr]=mt(0,0,Jr,Tz,Mz);return gt&&(tt[Jr]=gt),gt=mt(0,1,Kc,{horizontal:!0}),gt&&(tt[Kc]=gt),gt=mt(1,0,Gc,{vertical:!0}),gt&&(tt[Gc]=gt),gt=mt(1,1,zu,{}),gt&&(tt[zu]=gt),se.current=null,tt=Object.freeze(tt)},[Q,q,U]),pe=Object.keys(ie),me=q[0]?.maxVirtualBounds??0,fe=Q[0]?.maxVirtualBounds??0,_e=u.useMemo(()=>({left:q[1]?q[1].layout.getColOffset(q[1].maxIndex+1):0,top:Q[1]?Q[1].layout.getRowOffset(Q[1].maxIndex+1):0}),[ie]);u.useEffect(()=>{if(te.current.length>0){for(let tt=0;tt<te.current.length;tt++)te.current[tt]();te.current=[]}},[ie]);const Fe=wt(()=>({containerWidth:Re,containerHeight:ue,totalWidth:me,totalHeight:fe}),[Re,ue,Be]);u.useEffect(()=>{!le.current&&Ce.current&&oe({top:Ie,left:Me,width:Re,height:ue,totalWidth:me,totalHeight:fe})},[Ie,Me,me,fe]),u.useEffect(()=>{Ce.current&&oe({top:Ie,left:Me,width:Re,height:ue,totalWidth:me,totalHeight:fe})},[Re,ue]);const qe=u.useCallback((tt,mt)=>{Qd(typeof tt=="number"&&typeof mt=="number");const gt=ve.current?.getBoundingClientRect();return gt?{x:tt-gt.x,y:mt-gt.y}:{x:tt,y:mt}},[]),Je=wt(tt=>ie[tt]||null,[ie]),Qe=wt((tt,mt)=>{if(Object.keys(ie).length===1)return ie[Jr];const gt=qe(tt,mt);if(!gt)return null;const{x:ut,y:vt}=gt;let jt=null;const Ot=$9;for(let Rt=0;!jt&&Rt<Ot.length;Rt++){const Bt=ie[Ot[Rt]];Bt&&xz(ut,vt,Bt.getBounds())&&(jt=Bt)}return jt||(jt=ie[Jr]),jt},[ie,U]),rt=wt(()=>ie[Jr].getVisibleRangeCoords(),[ie[Jr]]),At=u.useRef(null),zt=u.useCallback(()=>{At.current!==null&&Qo.cancelTimeout(At.current),At.current=Qo.requestTimeout(_t,150)},[]),_t=u.useCallback(()=>{At.current=null,Y(tt=>{const mt={...tt,verticalScrollDirection:null,horizontalScrollDirection:null};return ee.current=mt,mt})},[]),Vt=wt(tt=>{const mt=tt?.left??tt?.[0],gt=tt?.top??tt?.[1],ut=mt!==void 0?Math.min(me-Re,Math.max(q?.[1]?.scrollOffset??0,mt)):ee.current.left,vt=gt!==void 0?Math.min(fe-ue,Math.max(Q?.[1]?.scrollOffset??0,gt)):ee.current.top;if(ee.current.left===ut&&ee.current.top===vt)return;let jt=null,Ot=null;ee.current.left>ut?jt=to:ee.current.left<ut&&(jt=qn),ee.current.top>vt?Ot=oo:ee.current.top<vt&&(Ot=ro),Qo.throttle(()=>{Y(Rt=>{const Bt={...Rt,left:ut,top:vt,horizontalScrollDirection:jt,verticalScrollDirection:Ot};return ee.current=Bt,Bt})},17)(),le.current?.top===vt&&le.current?.left===ut||(le.current={left:ut,top:vt},ne({left:ut,top:vt}),oe({left:ut,top:vt,width:Re,height:ue,totalWidth:me,totalHeight:fe})),zt()},[me,fe,Q,q]);u.useEffect(()=>{le.current||Vt({left:Me,top:Ie})},[me,Re,fe,ue]),u.useLayoutEffect(()=>{le.current={left:J?.left,top:J?.top},Vt(le.current)},[J?.left,J?.top]);const on=wt(tt=>{const mt=tt?.left??tt?.[0],gt=tt?.top??tt?.[1],ut=tt?.behavior??"auto",vt={left:ee.current.left+(mt??0),top:ee.current.top+(gt??0)};ut&&(vt.behavior=ut),Vt(vt)},[me,Re,fe,ue]),Yt=u.useCallback(tt=>{let mt=null;if(Object.keys(ie).length>1){const gt=$9;for(let ut=0;!mt&&ut<gt.length;ut++){const vt=ie[gt[ut]];vt&&Wt.isCellWithinRange(tt,vt.getVisibleRangeCoords())&&(mt=vt)}}return mt||(mt=ie[Jr]),mt},[ie]),_n=wt((tt,mt={inline:"nearest",block:"nearest"},gt=null)=>{const ut={rowIndex:0,colIndex:0,...tt};let vt=null;if(gt!==null){if(vt=ie[gt],vt===null)return new Promise((tn,an)=>{an("Invalid view")})}else vt=Yt(ut);const jt=U(ut),Ot=vt.getLayout(),Rt=Ot.getColOffset(jt.colStart),Bt=Ot.getRowOffset(jt.rowStart),Lt=Ot.getColOffset(jt.colEnd+1),mn=Ot.getRowOffset(jt.rowEnd+1),Fn=vt.getBounds(),wn=vt.getTotalSize(),Ne=vt.getScrollTopLeft(),yt={...((tn,an,It=!0)=>(It=It===!0?{block:"start",inline:"end"}:It===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...It},{left:D9(It.inline,tn.x,tn.x+tn.width,an.left,an.left+an.width,an.totalWidth),top:D9(It.block,tn.y,tn.y+tn.height,an.top,an.top+an.height,an.totalHeight)}))({x:Rt+Ne.left,y:Bt+Ne.top,width:Lt-Rt,height:mn-Bt},{left:Ne.left,top:Ne.top,width:Fn.width,height:Fn.height,totalWidth:wn.width,totalHeight:wn.height},mt)};yt.left>Me?yt.left+=20:yt.left<Me&&(yt.left-=0),yt.top>Ie?yt.top+=20:yt.top<Ie&&(yt.top-=0);const qt=vt.getScrollOrientation();return qt.horizontal&&tt.colIndex!==void 0||delete yt.left,qt.vertical&&tt.rowIndex!==void 0||delete yt.top,new Promise((tn,an)=>{try{Vt(yt),tn(yt)}catch(It){an(It)}})},[me,fe,ie,U]),pn=wt(tt=>{const mt=tt.shiftKey;tt.preventDefault();const{deltaX:gt,deltaY:ut,deltaMode:vt}=tt;if(re.current||de?.(tt)===!1)return;let jt=mt?ut:gt,Ot=ut;const Rt=mt||Math.abs(jt)>Math.abs(Ot);vt===1&&(Ot*=0),re.current=window.requestAnimationFrame(()=>{re.current=null,on(Rt?{left:jt}:{top:Ot})})},[me,Re,fe,ue,de]),Mn=u.useCallback((tt=null)=>{Ge.current=null,se.current=null,we()},[]);u.useLayoutEffect(()=>{Mn()},[_]);const kt=R2(t,()=>({stage:ve.current,focus:De,contains:Le,invalidate:Mn,scrollTo:Vt,scrollBy:on,scrollCellCoordsIntoView:_n,getScrollPosition:W,getDimensions:Fe,getViewport:rt,handleWheel:pn,rowCount:r,columnCount:i,getLayout:()=>Be,getRelativePointFromClient:qe,getViewFromClient:Qe,getViewFromCellCoords:Yt,getViewFromLocation:Je,onViewChangeOnce:tt=>{te.current.push(tt)}}),[r,i,ie]);u.useEffect(()=>(N&&kt.current?.addEventListener("wheel",pn,{passive:!1}),Ce.current=!0,le.current=null,()=>{kt.current?.removeEventListener("wheel",pn)}),[N]);const rn=u.useRef([]),fn=(tt,mt)=>{!tt||!j||(rn.current=[],mt.push((gt=>{const ut=`view:${gt.getAnchor()}:overlay:${mt.length}`,vt=j?.({key:ut,view:gt},Ot=>rn.current[0]=Ot);if(!vt)return null;const jt=gt.getBounds();return s.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${jt.width}px`,height:`${jt.height}px`,overflow:"hidden"},children:vt},`overlay-${gt.getAnchor()}-0`)})(tt)))},zn=u.useMemo(()=>{const tt={},mt=Object.keys(ie);for(let gt=0;gt<mt.length;gt++){const ut=mt[gt],vt=[];fn(ie[ut],vt),tt[ut]={overlays:vt}}return tt},[ce,j,r,i,Q,q]),$n=(tt,mt,gt,ut,vt,jt,Ot)=>{if(!tt)return;const Rt=tt.getVisibleColumns(),Bt=tt.getVisibleRows();if(Rt.length===0||Bt.length===0)return;let Lt=null;if(B)Lt=B(tt);else{Lt=[];for(let Wn=0;Wn<Bt.length;Wn++)for(let Dn=0;Dn<Rt.length;Dn++){const Un={rowIndex:Bt[Wn],colIndex:Rt[Dn]};if(F?.(Un))continue;const jn={coords:Un,range:U(Un)};Lt.push(jn)}}const mn=tt.getVisibleColumnOffsets(),Fn=tt.getVisibleRowOffsets(),wn=tt.getScrollTopLeft(),Ne=tt.getFreezeTopLeft(),yt=wn.left+Ne.left,qt=wn.top+Ne.top,tn=Math.trunc(yt/Qi),an=Math.trunc(qt/Qi),It={},On=(Wn,Dn,Un,jn,vo)=>{const Ke=`view:${Wn.getAnchor()}:cell:${O9(Dn.rowIndex,Dn.colIndex)}`,xe=jn.x,St=jn.y,Mt=Math.trunc((yt+xe)/Qi)-tn,K=Math.trunc((qt+St)/Qi)-an;It[K]||(It[K]={});let G=It[K][Mt];G||(G=It[K][Mt]=[]);let ke=jt?.get(Ke);if(!ke){const Pe=(yt+xe)%Qi,et=(qt+St)%Qi;ke=_({key:Ke,coords:Dn,bounds:jn,zoom:M,range:Un,view:Wn,value:vo,style:{left:en.boundPixel(Pe),top:en.boundPixel(et),width:en.boundPixel(jn.width,!0),height:en.boundPixel(jn.height,!0)}})}Ot?.set(Ke,ke),G.push(ke)};for(let Wn=0;Lt&&Wn<Lt.length;Wn++){const Dn=Lt[Wn],Un=Dn?.coords??Dn;if(!Un)continue;const jn=Dn?.range??{rowStart:Un.rowIndex,colStart:Un.colIndex,rowEnd:Un.rowIndex,colEnd:Un.colIndex},vo=tt.getVisibleRangeCoords();if(!Wt.isRangesIntersect(jn,vo)&&!Wt.isRangeWithinRange(jn,vo))continue;const Ke=jn&&!Wt.isSingleCell(jn);if(!Ke&&F?.(Un))continue;const xe=Un.rowIndex,St=Un.colIndex,Mt=Fn[xe],K=mn[St];let G=null;Mt&&K&&(G={x:K.offset,y:Mt.offset,width:K.size,height:Mt.size});const ke=O9(jn.rowStart,jn.colStart);if(Ke){if(vt.has(ke))continue;vt.add(ke),jn.rowEnd-jn.rowStart>0&>.push(jn),jn.colEnd-jn.colStart>0&&ut.push(jn)}if(Ke&&(G=F9(tt.getLayout(),jn)),!G){console.warn("no bounds for cell",ke);continue}const Pe=Dn?.value;On(tt,Un,jn,G,Pe)}const hr=yt%Qi,vr=qt%Qi,dn=Object.keys(It);for(let Wn=0;Wn<dn.length;Wn++){const Dn=It[dn[Wn]];if(!Dn)continue;const Un=Object.keys(Dn);for(let jn=0;jn<Un.length;jn++){const vo=Dn[Un[jn]];if(!vo)continue;const Ke=parseInt(dn[Wn]),xe=parseInt(Un[jn]),St=Ke+an,Mt=xe+tn,K=`view:${tt.getAnchor()}:segment:${Mt}:${St}`;mt.push(s.jsx("div",{className:"cell-container",style:{transform:`translate(${en.boundPixel(xe*Qi-hr,!0)}px, ${en.boundPixel(Ke*Qi-vr,!0)}px)`,willChange:"transform"},children:vo},K))}}},hn=u.useMemo(()=>{const tt=Ge.current,mt=new Map,gt={},ut=Object.keys(ie);for(let vt=0;vt<ut.length;vt++){const jt=ut[vt],Ot=[],Rt=[],Bt=[];$n(ie[jt],Bt,Ot,Rt,new Set,tt,mt),gt[jt]={cells:Bt,rangesH:Ot,rangesV:Rt}}return Ge.current=mt,gt},[ce,r,i,Q,q,g,X,v,F,B,U]),go=(tt,mt,gt,ut,vt)=>{if(tt)if(mt){const jt=`view:${tt.getAnchor()}:hl:`,Ot=tt.getVisibleRows();if(!Ot||Ot.length===0)return;const Rt=0,Bt=tt.getBounds().width;let Lt=[];const mn=vt.sort(Wt.rowFirstRangeComparator),Fn=tt.getVisibleRangeCoords();for(let wn=0;wn<Ot.length&&Ot[wn]<=Fn.rowEnd;wn++){const Ne=Ot[wn];if(Ne<Fn.rowStart)continue;let yt=!1;for(;mn.length>0&&mn[0].rowStart<=Ne;){const It=mn.shift();It.rowEnd>Ne&&(Lt.push(It),yt=!0)}yt&&(Lt=Lt.sort(Wt.columnFirstRangeComparator));const qt=tt.getLayout(),tn=qt.getRowOffset(Ne+1);let an=Rt;for(let It=0;It<Lt.length+1;It++){let On=an,hr=Bt;const vr=Lt[It];It<Lt.length&&(hr=Math.min(Bt,qt.getColOffset(vr.colStart)),an=Math.min(Bt,qt.getColOffset(vr.colEnd+1))),ut.push(u.createElement("path",{d:`M ${en.boundPixel(On)} ${en.boundPixel(tn,!1,gt)} L ${en.boundPixel(hr)} ${en.boundPixel(tn,!1,gt)}`,stroke:m,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y,key:jt+Ne+":"+It}))}for(let It=Lt.length-1;It>=0;It--)Lt[It].rowEnd<=Ot[wn+1]&&Lt.splice(It,1)}}else{const jt=`view:${tt.getAnchor()}:vl:`,Ot=tt.getVisibleColumns();if(!Ot||Ot.length===0)return;const Rt=0,Bt=tt.getBounds().height;let Lt=[];const mn=vt.sort(Wt.columnFirstRangeComparator),Fn=tt.getVisibleRangeCoords();for(let wn=0;wn<Ot.length&&Ot[wn]<=Fn.colEnd;wn++){const Ne=Ot[wn];if(Ne<Fn.colStart)continue;let yt=!1;for(;mn.length>0&&mn[0].colStart<=Ne;){const It=mn.shift();It.colEnd>Ne&&(Lt.push(It),yt=!0)}yt&&(Lt=Lt.sort(Wt.rowFirstRangeComparator));const qt=tt.getLayout(),tn=qt.getColOffset(Ne+1);let an=Rt;for(let It=0;It<Lt.length+1;It++){let On=an,hr=Bt;const vr=Lt[It];It<Lt.length&&(hr=Math.min(Bt,qt.getRowOffset(vr.rowStart)),an=Math.min(Bt,qt.getRowOffset(vr.rowEnd+1)));let dn=m;ut.push(s.jsx("path",{d:`M ${en.boundPixel(tn,!1,gt)} ${en.boundPixel(On)} L ${en.boundPixel(tn,!1,gt)} ${en.boundPixel(hr)}`,stroke:dn,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x},jt+Ne+":"+It))}for(let It=Lt.length-1;It>=0;It--)Lt[It].colEnd<=Ot[wn+1]&&Lt.splice(It,1)}}},bo=tt=>{if(!hn)return;const mt={};for(let gt=0;gt<pe.length;gt++){const ut=pe[gt],vt=ie[ut],jt=[];go(vt,tt,0,jt,tt?hn[ut].rangesH:hn[ut].rangesV);const Ot=vt.getRangeCoordsBounds(),Rt=Math.ceil(Ot.width),Bt=Math.ceil(Ot.height);mt[ut]=s.jsx("svg",{width:`${Rt}`,height:`${Bt}`,viewBox:`0 0 ${Rt} ${Bt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:jt})}return mt},Fo=u.useMemo(()=>g===!0||g?.horizontal===!0?bo(!0):null,[ce,g,Q,E,w,m,y,r,i,Re,me,hn]),tr=u.useMemo(()=>g===!0||g?.vertical===!0?bo(!1):null,[ce,g,q,E,w,m,x,r,i,ue,fe,hn]),Tr=u.useMemo(()=>_e.left===0?null:s.jsx(xs,{linePoints:[0,0,0,ue+1],bounds:{x:_e.left,y:0,width:1,height:ue+1},...S}),[ce,_e.left,ue,S]),_r=u.useMemo(()=>_e.top===0?null:s.jsx(xs,{linePoints:[0,0,Re+1,0],bounds:{x:0,y:_e.top,width:Re+1,height:1},...R}),[ce,_e.top,Re,R]),ui=u.useMemo(()=>{const tt=[],mt=gt=>{if(!gt||!ie[gt])return;const ut=ie[gt].getBounds();return s.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:ut.x,top:ut.y,width:ut.width,height:ut.height,clip:`rect(0, ${ut.width+1}px, ${ut.height+1}px, 0)`},className:`view view-${gt}`,children:[Fo?.[gt],tr?.[gt],hn?.[gt].cells]},`view:${gt}`)};for(let gt=0;gt<pe.length;gt++)tt.push(mt(pe[gt]));return s.jsx(s.Fragment,{children:tt})},[ie,Fo,tr,hn]),Ki=u.useMemo(()=>{if(!t)return;const tt=(Ot,Rt,Bt,Lt)=>{if(!Lt||Lt.length===0)return;const mn=[];for(let Fn=0;Fn<Lt.length;Fn++){const wn=Lt[Fn];let Ne=Ot?.get(wn);Ne!==Yp&&(Ne=wn(Bt)??Yp),Rt.set(wn,Ne),Ne&&Ne!==Yp&&mn.push(Ne)}return mn},mt=(Ot,Rt,Bt)=>{if(!Bt)return;const Lt=Bt.getBounds(),mn=Bt.getInsets(),Fn=Bt.getAnchor();return s.jsxs("div",{className:jl("view",`view-${Fn}`,N9.view),style:{position:"absolute",pointerEvents:"none",left:Lt.x-mn.left,top:Lt.y-mn.top,width:Lt.width-(mn.left+mn.right),height:Lt.height-(mn.top+mn.bottom),clipPath:O?"inset(-2px)":"inset(0px)"},children:[tt(Ot,Rt,Bt,k),zn?.[Fn].overlays]},`view:${Fn}`)},gt=se.current,ut={},vt=[],jt=Object.keys(ie);for(let Ot=0;Ot<jt.length;Ot++){const Rt=jt[Ot],Bt=gt?.[Rt],Lt=ut[Rt]=new Map;vt.push(mt(Bt,Lt,ie[Rt]))}return se.current=ut,vt},[ce,ie,O,k]),pi=u.useMemo(()=>{const{style:tt,...mt}=I??{};return s.jsx("div",{style:{width:Re,height:ue,...tt},className:"sheetxl-stage",tabIndex:0,ref:ve,...mt,...H,children:z?z(ui):ui})},[Re,ue,ui,I,z]),pr=u.useRef(!1);return u.useEffect(()=>{!pr.current&&hn&&(pr.current=!0,ye?.(kt.current))},[hn]),s.jsxs("div",{className:jl("sheetxl-grid",N9["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Re,maxHeight:ue,width:Re,height:ue,...X},ref:kt,children:[pi,s.jsxs("div",{className:jl("sheetxl-overlays"),ref:be,...P,children:[Ki,Tr,_r]})]})}));Fw.displayName="BaseGrid";const P2=u.memo(u.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...a}=e,[l,{width:c,height:d}]=Lw();return s.jsx("div",{className:i,style:{...r},children:s.jsx("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:l,children:s.jsx(Fw,{ref:t,width:n??c,height:o??d,...a})})})}));P2.displayName="Grid";const _z=u.memo(u.forwardRef((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:a,viewport:l,onScrollViewport:c,style:d={},className:p,onScroll:h,...f}=e,[g,m]=u.useState(null),y=u.useRef(null),x=u.useRef(null);Qd(!l),u.useImperativeHandle(t,()=>x.current&&y.current?Object.assign(x.current,y.current):null);const v=u.useCallback(b=>{x.current?.scrollTo(b),c?.(b)},[]);return s.jsx(Mw,{className:p,style:d,ref:y,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:a,viewport:g,onScrollViewport:v,children:s.jsx(P2,{style:{width:"100%",height:"100%"},...f,onViewportChange:b=>m(b),ref:x})})}));_z.displayName="ScrollableGrid";const V9=()=>!1,Bw=u.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=k=>`${k}`,headerStyle:a,headerStyleSelect:l=a,headerStyleSelectAll:c=l,headerStyleHover:d=c,verticalPadding:p=0,horizontalPadding:h=0,isSelected:f=V9,isSelectedAll:g=V9,coords:m,bounds:y,range:x,orientation:v,view:b,style:w,...E}=e,S=r/100,R=u.useRef(null),[_,A]=u.useState(!1),T=f?.(t)||!1,j=g?.(t)?c:T?l:a;let C=j;if(_){let k=d;typeof d=="function"&&(k=d(j)),C=Qo.mergeContentful(j,k)}return s.jsx("div",{ref:R,style:{background:C.fill,color:C.text?.fill,fontFamily:C.text?.fontFamily??a.text?.fontFamily,fontSize:96*(C.text?.fontSize??11)/72*S,fontStyle:C.text?.fontStyle,fontWeight:C.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${S}px`,...w,left:w.left-(v===Vr?1:0),top:w.top-(v===Ea?1:0),width:w.width+1,height:w.height+1,overflow:"hidden"},...E,onMouseMove:k=>{en.detectIt().primaryInput!=="touch"&&k.buttons===0&&A(!0)},onMouseOut:k=>{A(!1)},children:i(t)})});Bw.displayName="HeaderRenderer";const Nw="ew-resize",$w="ns-resize",jz=u.memo(u.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:a,disabled:l=!1,disabledResize:c=!1,isNextHidden:d,isHidden:p,isSelected:h,isSelectedAll:f,showTouchDivider:g,headerStyle:m,headerStyleSelect:y,headerStyleSelectAll:x,headerStyleHover:v,bounds:b,onPointerDown:w,onAutoFit:E,...S}=e,R=n===Vr;let _=m;h&&y&&(_=y),f&&x&&(_=x);const A=en.detectIt().primaryInput==="touch";let T=R?14:8,j=T/2,C=0;d&&(C=-2),p&&(C=2),p&&(T=T/2+C,j=2*C);let k=_.dividerStrokeFill??_.strokeFill;return!(h||f)&&C===0&&(k=`linear-gradient(${R?180:90}deg, ${_.fill}, ${k} 55%, ${k} 100%)`),s.jsxs("div",{className:jl("header-divider",{disabled:l},i,`index-${r}`),ref:t,onPointerDown:A?void 0:w,onDoubleClick:A?void 0:()=>E?.(),style:{top:(R?0:-T/2+(C-1))+"px",left:(R?-T/2+(C-1):0)+"px",width:R?T:"calc(100% + 1px)",height:R?"calc(100% + 1px)":T,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:l||c||A?void 0:R?Nw:$w,...a},...S,children:[s.jsx("div",{style:{position:"relative",top:`${R?0:j}px`,left:`${R?j:0}px`,width:R?1:"100%",height:R?"100%":1,background:k},onDoubleClick:()=>E?.()}),g&&A?s.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:R?"-6px":"2px",bottom:R?"2px":"-9px",height:"24px",width:R?"24px":"18px",maxHeight:R?"calc(100% - 4px)":void 0,maxWidth:R?void 0:"calc(100% - 4px)",background:_.fill,border:`${x.edgeStrokeFill} solid 1px`,boxShadow:`0.5px 0.5px 0px 0px ${m.text.fill}`,display:"flex",alignItems:"center",justifyContent:"center"},onPointerDown:w,children:s.jsx("div",{style:{width:"6.4px",height:"12px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${encodeURIComponent(y.text.fill)}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",transform:R?void 0:"rotate(90deg)"}})}):null]})})),Rz=(e,t)=>s.jsx(jz,{...e,ref:t}),Iz=u.memo(u.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:a=!1,resizeThreshold:l=1,dividerRenderer:c=Rz,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:h,onDividerResizeEnd:f,onDividerMouseUp:g,onDividerAutoFit:m,onPointerDown:y,...x}=e,v=wt(y,[y]),b=wt(m,[m]),w=n===Vr;let E=w?o.getVisibleColumns():o.getVisibleRows(),S=null;E.length>0&&(w?S=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:E[0],colEnd:E[E.length-1]}):o.getRangeCoordsBounds({rowStart:E[0],rowEnd:E[E.length-1],colStart:0,colEnd:0}),S=o.toClipBounds(S,jr));const R=u.useRef(null),[_,A]=u.useState(null),T=(L,D)=>w?L.clientX-D.clientX:L.clientY-D.clientY,j=o.getLayout(),C=w?j.getColOffset(r+1):j.getRowOffset(r+1),k=Ts({processTouch:!0,onPointerDown:L=>{if(v?.(L),!i&&!a){const D=w?j.getColOffset(r):j.getRowOffset(r),F=C-D;R.current={isResizing:!1,startSize:F,index:r,view:o,orientation:n,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:h,onDividerResizeEnd:f,onDividerMouseUp:g},A(R.current),d?.(r,F)}L.stopPropagation(),L.preventDefault()},onPointerUp:(L,D,F)=>{if(!R.current)return;R.current.isResizing&&R.current.onDividerResizeEnd?.(R.current.index,Math.max(0,R.current.startSize+T(L,F)),R.current.startSize);const B=R.current;R.current=null,A(R.current),B.onDividerMouseUp?.(B.index)},onPointerMoveOrWait:(L,D,F)=>{if(!R.current)return;const B=T(L,F);R.current.isResizing?R.current.onDividerResize?.(R.current.index,Math.max(0,R.current.startSize+B),R.current.startSize):Math.abs(B)>Math.max(1,l)&&(R.current={...R.current,isResizing:!0},A(R.current),R.current.onDividerResizeStart?.(R.current.index,Math.max(0,R.current.startSize+B))),L.stopPropagation(),L.preventDefault()}}),P=wt(()=>{b?.(r)},[r]);if(!S)return;const O=c({bounds:S,orientation:n,view:o,index:r,disabled:i,disabledResize:a,onAutoFit:P,onPointerDown:k,...x},t);if(!O)return;const{getPortalContainer:I}=Tw();let z=null;return _&&_.isResizing&&_.index===r&&(z=yo.createPortal(s.jsx("div",{style:{position:"absolute",cursor:w?Nw:$w,left:0,top:0,width:"100%",height:"100%"}}),I(),"divider:"+r)),s.jsxs(s.Fragment,{children:[z,s.jsx("div",{className:jl("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${w?S.y:C}px`,left:`${w?C:S.x}px`,width:(w?0:S.width-1)+"px",height:(w?S.height-1:0)+"px",display:"flex"},tabIndex:-1,children:O})]})}));let Pz=class{naturalDimensions(e,t={}){const n=document.createElement("div");let o=t?.lineHeight??"1";!t?.lineHeight&&t.paintableText?.fontSize&&(o=Math.ceil(1.2*t.paintableText.fontSize)+"px");const r=document.createElement("div");r.style.visibility="hidden",r.style.position="absolute",r.style.textRendering="geometricprecision",r.style.display="inline-grid",r.style.overflowWrap="break-word",r.style.maxWidth=t.maxWidth?t.maxWidth+"px":"100%",r.style.lineHeight=o,r.style.letterSpacing=(t.paintableText?.letterSpacing??0)+"px",r.style.fontSize=t.paintableText?.fontSize?t.paintableText.fontSize+"px":"unset",r.style.fontFamily=t.paintableText?.fontSize?t.paintableText.fontFamily:"unset",r.style.fontWeight=t.paintableText?.fontWeight?""+t.paintableText.fontWeight:"400",r.style.fontStyle=t.paintableText?.fontStyle?t.paintableText.fontStyle:"normal",r.style.whiteSpace=t.paintableText?.wrap==="wrap"?"break-spaces":"pre",n.appendChild(r);const i=e.split(`
|
|
192
|
+
`);for(let l=0;l<i.length;l++){let c=document.createElement("span");r.appendChild(c),c.textContent=i[l]}i.length!==0&&i[i.length-1].length!==0||r.appendChild(document.createElement("br")),document.body.appendChild(r);let a=r.getBoundingClientRect();return r.remove(),{width:a.width,height:a.height,maxLineHeight:1.2*(t.paintableText?.fontSize||1056/72)}}};const Oz=Object.freeze({clean:Dz,dirty:void 0,editMode:!1});var Dz;u.memo(u.forwardRef((e,t)=>{const{editState:n=Oz,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:a,onCancelEdit:l,onDoneEdit:c,containerBounds:d,setNaturalDimensions:p,onNavigate:h,textProperties:f,style:g,autoFocus:m,...y}=e,x=u.useRef(null),{width:v=0}=d??{},[b,w]=u.useState(()=>n);u.useEffect(()=>{w(n)},[n]);const E=f?.align||"left",S=f?.vAlign||"middle",R=f?.fill||"#040404",_=f?.wrap||"wrap",A=f?.fontFamily||"Calibri",T=f?.fontSize||11,j=f?.fontWeight||400,C=f?.fontStyle||"normal",k=b.dirty??b.clean??"";let P=2;const O=96*T/72,I=1.2*O;S==="right"&&(P+=1);const z=u.useMemo(()=>new Pz().naturalDimensions(k,{maxWidth:_==="wrap"?v-P:void 0,lineHeight:`${I}px`,paintableText:{fontStyle:C,wrap:_,letterSpacing:-.25}}),[k,_,P,O,A,j,C,p,v]),L=u.useCallback(()=>z.maxLineHeight?z.maxLineHeight+"px":"1.2",[z]),[D,F]=u.useState(L);u.useLayoutEffect(()=>{F(L())},[d,z]),u.useLayoutEffect(()=>{p?.({width:_==="wrap"?void 0:z.width+P,height:z.height})},[z,p]);const B=wt(i,[i]),M=wt(oe=>{if(b.dirty===oe)return;const ge={...b};ge.dirty=oe,x.current,w(ge),B?.(ge)},[b]),N=wt(oe=>{if(b.editMode===oe)return;const ge={...b};ge.editMode=oe,w(ge),B?.(ge)},[b]),V=wt(()=>{try{return a?.(b),c?.(),!0}catch{return!1}},[a,b]),U=wt(()=>{w(n),l?.(),c?.()},[l,n]),J=wt(oe=>{if(!x.current)return;if(oe.isDefaultPrevented(),!(oe.isTrusted||oe.nativeEvent.ctrlKey||oe.nativeEvent.metaKey||oe.nativeEvent.altKey||oe.nativeEvent.isComposing)&&uf.indexOf(oe.nativeEvent.key)!==-1){const de={...b};return de.dirty=oe.nativeEvent.key==="Backspace"?"":(de.dirty??"")+oe.key,w(de),B?.(de),void oe.preventDefault()}const ge=oe.nativeEvent.shiftKey;if(oe.which===27)return oe.preventDefault(),void U();if(oe.which===113)return N(!0),void oe.preventDefault();if(oe.which===13&&(oe.preventDefault(),V()&&h?.(ge?oo:ro)),oe.which===9)return oe.preventDefault(),void(V()&&h?.(ge?to:qn));if(!b.editMode){let de=null;switch(oe.which){case 37:de=to;break;case 39:de=qn;break;case 38:de=oo;break;case 40:de=ro}if(de)return void V()}},[b,h]),[X,H]=u.useState(!m);u.useEffect(()=>{H(!1)},[]);const ne=R2(t,()=>({startEdit(oe){let ge=oe?.initialSelection;if(!ge){const ye=x.current.value.length??0;ge={start:ye,end:ye,direction:"forward"}}x.current?.setSelectionRange(ge.start,ge.end,ge.direction);const de={...n,editMode:oe?.editMode??!1};oe?.text!==void 0&&(de.dirty=oe.text),de.editMode===n.editMode&&de.dirty===n.dirty||(w(de),B?.(de))},submitEdit:()=>V(),cancelEdit(){U()},autoFocus(){x.current?.focus()},getLineHeight:()=>z?.maxLineHeight??I,dispatchEvent:oe=>x.current.dispatchEvent(oe)}),[n,r]);return s.jsx("div",{ref:ne,...y,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:z.height,maxWidth:"100%",maxHeight:"100%",...g},children:s.jsx("textarea",{spellCheck:"false",ref:x,value:k,autoFocus:!1,disabled:X,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${O}px`,fontFamily:`${A}`,fontWeight:`${j}`,fontStyle:`${C}`,padding:"0px",marginRight:E==="right"?"3px":"0px",marginLeft:E==="left"?"2px":"0px",lineHeight:D,height:z.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:E,background:"transparent",color:R,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:_==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:oe=>{M(oe.target.value)},onDoubleClick:oe=>{oe.isTrusted},onMouseDown:oe=>{N(!0)},onKeyDown:J})})})),u.memo(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:a,style:l,...c}=e;return s.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:l?.fontSize||1056/72,...l},...c,children:t})}),function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const Yc=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:Yc},Symbol.toStringTag,{value:"Module"}));const Vw=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),Dh=(e,t=!0,n=Vw)=>{if(!n||n.length===0)return e;if(e===void 0)return n[0];if(t&&e>=n[n.length-1]||!t&&e<=n[0])return e;let o=Jt.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},Lz=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:Vw,findNextFontSize:Dh},Symbol.toStringTag,{value:"Module"})),H9=u.memo(e=>{const{anchorLocation:t=zo.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:a,fill:l,pathProps:c,style:d,...p}=e,h=r,f=i;let g="red",m=[],y=[];return t===zo.TopLeft?(g=a?"rgb(255, 198, 246)":"green",m.push(f),y.push(f),m.push(f+h),y.push(f),m.push(f),y.push(f+h)):t===zo.TopRight?(g=a?"rgb(0, 255, 255)":"red",m.push(n-f),y.push(f),m.push(n-(f+h)),y.push(f),m.push(n-f),y.push(f+h)):t===zo.BottomRight?(g=a?"rgb(236, 252, 211)":"purple",m.push(n-f),y.push(o-f),m.push(n-(f+h)),y.push(o-f),m.push(n-f),y.push(o-(f+h))):t===zo.BottomLeft&&(g=a?"rgb(255, 236, 183)":"blue",m.push(f),y.push(o-f),m.push(f+h),y.push(o-f),m.push(f),y.push(o-(f+h))),s.jsx("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...d},...p,children:s.jsx("path",{d:`M ${m[0]} ${y[0]} L ${m[1]} ${y[1]} L ${m[2]} ${y[2]} L ${m[0]} ${y[0]} Z`,fill:l??g,...c})})}),Az=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:a,style:l,...c}=e,d=u.useMemo(()=>{let g=null;const m=i.getSortField();m&&(g=m.reverse);const y=i.getField(),x=y&&y.criteria&&y.criteria.length>0;return g===!0?x?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,9.452298 H 4.24187 V 2.0761788 H 3.170122 V 9.452298 H 1.5625 l 2.143496,2.950446 z":"m 13.109228,9.865914 h -1.607622 v -7.37612 h -1.071748 v 7.37612 H 8.822236 l 2.143496,2.950446 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":g===!1?x?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,5.0266248 H 4.24187 V 12.402744 H 3.170122 V 5.0266248 H 1.5625 l 2.143496,-2.950446 z":"m 13.109228,5.44024 h -1.607622 v 7.37612 H 10.429858 V 5.44024 H 8.822236 L 10.965732,2.489794 Z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":x?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":"m 3,5.025 4.5,5 4.5,-5 z"},[i]),[p,h]=u.useState(!1),f=Math.min(Math.min(18,t.height-8),t.width);return s.jsx("div",{style:{width:`${f}px`,height:`${f}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${p&&!r?"--sxl-app-color-primary-light, rgba(0,0,0,.55)":"--sxl-app-color-border-button, grey"})`,backgroundColor:"var(--sxl-app-color-button-fill, white)",backgroundImage:"var(--sxl-app-image-background)",borderRadius:(f>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:r?void 0:"pointer",...l},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:g=>{a?.(g,i)},...c,children:s.jsx("svg",{width:""+15*o,height:""+15*o,viewBox:"0 0 15 15",style:{fill:`var(${p&&!r?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:r?.6:1},children:s.jsx("path",{d})})})},zz=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:a,zoom:l=1,view:c,bodyStyle:d,normalStyle:p,showFormulas:h,showZeros:f,docTheme:g,onLinkMouseDown:m,onFilterButtonMouseDown:y,filterButtonProps:x,createFilterButton:v=Az,...b}=e,w=o.height/l,E=o.width/l,S=t,R=S.getValue(),_=t.getStyle(),A=d?.darkMode??!1;let T,j;const C=R&&R.isFormulaError,k=C&&R instanceof $.FormulaError.Parse;let P,O=h||k;if(O)if(S.isSpillOverflow())j="";else{const Ye=S.getFormulaText();Ye?j=Ye:T=S.getNumberFormat($.NumberFormat.Type.General)}else T=S.getNumberFormat();O||(P=S.getTextOverflow());const I=P?P.colBounds.width+P.leftOffset+P.rightOffset:E,z=P?P.anchorBounds.x-P.leftOffset:0,L=P?P.anchorBounds.width:E,D=P?P.anchorBounds.x:0;let F,B=S.getRenderHorizontalAlignment();T&&(F=T?.formattedRuns,j=F?.runs[0]?.text??T.displayText);const M=S.getCalcStatus()===$.ICell.CalcStatus.Pending;let N=null,V=_.getFill().toCSS(A,o),U=0,J=0;if(!_.getBorder().isEmpty()){const Ye=_.getBorder().getRight();!Ye.isNone()&&$.IBorder.BuiltInDefinitions.get(Ye.getStyle()).width>1&&(U=1);const he=_.getBorder().getBottom();!he.isNone()&&$.IBorder.BuiltInDefinitions.get(he.getStyle()).width>1&&(J=1)}let X=null;if(E!==L||U||J||typeof V?.backgroundPosition=="number"){const{backgroundPosition:Ye,...he}=V,Ze=Ye??0,Se=c?.getScrollTopLeft(),Re=Ze?-(o.x+(Se.left??0))%Ze:0,ue=Ze?-(o.y+(Se.top??0))%Ze:0;(Ye!==void 0||U||J||E!==L)&&(Object.keys(he).length===1&&he.background==="none"||(V=null,X=s.jsx("div",{className:"fill",style:{marginLeft:`${Re}px`,marginTop:`${ue}px`,left:D*l,width:Rn.boundPixel(L*l-Re+1+U),height:Rn.boundPixel(o.height-ue+1+J),...he}},"background")))}let H=null;const ne=S.getComments(),oe=S.getWarnings(),ge=S.getErrors();if(ne||C||ge.length>0||oe.length>0){const Ye={size:7*l,darkMode:A,cellWidth:L*l+2,cellHeight:w*l+2,style:{top:-1,left:D*l-1}};H=H??[],(oe.length>0||ge.length>0||C)&&H.push(s.jsx(H9,{anchorLocation:zo.TopLeft,...Ye},`indicator-${H.length}`)),ne&&H.push(s.jsx(H9,{anchorLocation:zo.TopRight,...Ye},`indicator-${H.length}`))}const de=_.getFont();let ye=T?.conditionalColor;const ve=_.getAlignment(),be=ve.getHorizontal()===$.ITextFrame.HorizontalAlignment.Fill,re=ve.getHorizontal()===$.ITextFrame.HorizontalAlignment.CenterContinuous||be,ce=re||O?0:ve.getRotation(),we=S.getInsets(),ae=we.top+we.bottom;let Y=we.left,le=we.right;const ee={...i,left:i.left-1,top:i.top-1,width:i.width+1+U,height:i.height+1+J},Ie=S.getColumnFilter(),Me=Ie&&!Ie?.hasHiddenButton();let ot=null;M&&(ot=s.jsxs("div",{className:"slider",children:[s.jsx("div",{className:"line"}),s.jsx("div",{className:"subline inc"})]},"pending"));const Ve=!(M||Me||X||r||H||F?.runs.length>1||P||ce%360!=0);V?.background==="none"&&(V=null);let Ce=re||!(!P||!(P.rightIndex>0||P.leftIndex>0||P.colSpan>1));if(!Ce){const Ye=S.getSpans();(Ye.width>1||Ye.height>1)&&(Ce=!0)}const je={...V,...ee,pointerEvents:m?"auto":void 0};if(!Jt.isEmpty(j)||!Jt.isEmpty(T?.repeatPlaceholder)){const Ye=T?.canWrap??!1;let he=null,Ze=null,Se=null,Re=[],ue=!0;f||O||R!==0||(ue=!1);const De=S.getTextFrame(O);if(ue&&De){let Le=I-1-(Y+le);if(ce){he=De.layout().bounds;const fe={x:0,y:0,width:I-1,height:w};if(F){let _e=F.width;if(T.repeatPlaceholder||T.repeatChars.length>0){const Fe=$.GeomUtils.boundsToPoints(fe),qe=$.GeomUtils.rotatePoints(Fe,-ce);_e=$.GeomUtils.minBoundingRect(qe).width}he={...he,width:_e}}Se=$.GeomUtils.clipToOuterRect({...he,width:he.width+1+Y+le},fe,ce),Le=Se.width-1-(Y+le)+.01}let W=null;Ye&&(W={width:Le});let Q=null,q=T?.repeatPlaceholder;const se=De.layout(W);if(he=se.bounds,O?he={...he,width:0}:F&&(he={...he,width:T.repeatPlaceholder||T.repeatChars.length>0?Le:F.width}),ce&&Ye){let fe=null;se.visitLines({visitTextLine:(_e,Fe)=>{let qe=_e.bounds;const Je=$.GeomUtils.boundsToPoints(qe),Qe=$.GeomUtils.rotatePoints(Je,ce),rt=$.GeomUtils.minBoundingRect(Qe);qe={...qe,x:(rt.width-qe.width)/2,y:(rt.height-qe.height)/2},fe=fe?$.GeomUtils.unionBounds(fe,qe):qe}}),he={...fe,width:fe.width+Y+le}}if(!q&&S.getType()!==$.ScalarType.String&&Math.floor(he.width)>Le){if(_.getNumberFormat()==="General"&&S.getType()===$.ScalarType.Number){const fe=_.measureText("0"),_e=Math.floor(Le/fe.width),Fe=R,qe=Jt.splitNumber(Fe),Je=Math.min(10,_e-(Math.max(1,qe.ipLength)+1)-(Fe<0?1:0));if(Je>=-1){const Qe=`0${Je>0?".":""}${"#".repeat(Math.max(0,Je))}`;Q=S.getNumberFormat(Qe).displayText,Q==="0"&&Fe<0&&(Q="-0")}else if(Math.abs(Fe)>=Math.pow(10,5)||Math.abs(Fe)<=Math.pow(10,-5)){const Qe=_e-5-(Fe<0?1:0);if(Qe>=0){const rt=`0.${"0".repeat(Math.max(0,Qe-1))}E+00`;Q=S.getNumberFormat(rt).displayText}}}Q||(q="#")}if(!q&&F?.lastRepeatIndex>=0&&F?.width>Le&&(q="#"),q&&Le>0){const fe=_.measureText(q),_e=Math.floor((Le||1)/(fe?.width||1));Q=_e>0?q.repeat(_e):""}if(O&&(B=$.ITextFrame.HorizontalAlignment.Left),Q){const fe=_.measureText(Q).width;fe&&(he={...he,width:fe})}if(Ze={...he,width:he.width+Y+le,height:he.height},ce&&!Ye){const fe=$.GeomUtils.boundsToPoints(Ze),_e=$.GeomUtils.rotatePoints(fe,ce),Fe=$.GeomUtils.minBoundingRect(_e);Ze.width=Fe.width,Ze.height=Fe.height}B===$.ITextFrame.HorizontalAlignment.Center||B===$.ITextFrame.HorizontalAlignment.CenterContinuous?Ze.x=(I-Ze.width)/2:B===$.ITextFrame.HorizontalAlignment.Right?Ze.x=I-Ze.width-.5:Ze.x=.5,ve.getVertical()===$.ITextFrame.VerticalAlignment.Center?Ze.y=(w-Ze.height)/2:ve.getVertical()===$.ITextFrame.VerticalAlignment.Bottom?Ze.y=w-Ze.height-ae:Ze.y=ae;const te=Ve?{...b}:void 0,ie={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:ce?`rotate(${ce}deg)`:void 0,cursor:m?"pointer":void 0,pointerEvents:m?"auto":void 0,zIndex:Ce?1:void 0,...V},onMouseDown:m,onDoubleClick:m?fe=>{fe.stopPropagation(),fe.preventDefault()}:null,...te};k&&(ie.style.textDecorationStyle="wavy",ie.style.textDecorationColor=A?"rgb(0, 255, 255)":"red",ie.style.textDecorationLine="underline");const pe=de.getSize(),me=(fe,_e,Fe,qe,Je,Qe,rt,At=null)=>{let zt=pe*l,_t=Fe,Vt=rt?.runs?rt.runs:[{type:$.NumberFormat.ParseRunType.Text,text:fe,width:_.measureText(fe,zt).width}];rt&&rt?.width!==he.width&&(he={...he,width:rt?.width});let on=Y;if(rt?.lastRepeatIndex>=0&&Le>rt?.width){const Mn=rt.runs[rt.lastRepeatIndex];if(Mn){const kt=[...Vt],rn=Math.max(0,Le-1-rt.width);let fn=0,zn="";if(rn>0){const $n=Math.floor(rn/Mn.width);zn=$n>0?Mn.text.repeat($n):"",fn=rn}kt[rt.lastRepeatIndex]={type:$.NumberFormat.ParseRunType.Repeat,text:zn,width:fn},Vt=kt,he={...he,width:rt.width+fn}}}const Yt=(Mn,kt,rn,fn,zn,$n,hn,go,bo,Fo=null)=>{let tr,Tr=_t.width;Je===$.ITextFrame.HorizontalAlignment.Justify?(Tr=zn,Qe||(tr="justify")):Je===$.ITextFrame.HorizontalAlignment.Distributed&&(Tr=zn,tr=Qe||Mn.text.split(" ").length-1==0?"center":"justify");const{style:_r,className:ui,...Ki}=Fo;let pi=Mn.text;if(Je===$.ITextFrame.HorizontalAlignment.Fill&&T?.repeatChars.length===0){const Rt=Math.max(1,Math.floor((_t?.width??0)/(hn?.width??1)));pi=pi.repeat(Rt)}let pr=_t.height;const tt=de.getVerticalAlignment(),mt=tt===$.IFont.VerticalAlignment.Sub,gt=tt===$.IFont.VerticalAlignment.Super;if(mt||gt){const Rt=de.getSuperSubScale();zt*=Rt,pr*=Rt}const ut={textAlign:tr,textAlignLast:tr,background:void 0,..._r,...de.toCSS(A,l,!0),fontSize:zt*$.IFont.getDeviceScale()};ye&&(ut.color=ye.toCSS(A));const vt=on+kt;let jt=we.top+_t.y+0;if(mt&&(jt+=bo-zt),$n){const Rt=(hn.x+vt)*l+1,Bt=(hn.y+jt)*l+1;Bt<0?ut.marginTop=Bt:ut.paddingTop=Bt,Rt<0?(ut.width=(_r?.width??0)-Rt,ut.left=(_r?.left??0)+Rt):ut.paddingLeft=Rt,ut.paddingRight=Math.max(0,(_r?.width??0)-Tr*l-Rt),ut.paddingBottom=Math.max(0,(_r?.height??0)-_t.height*l-Bt),ut.height=(_r?.height??0)+(Bt<0?-Bt:0),(Bt<0||Rt<0)&&(ut.clipPath=`inset(${Bt<0?-Bt:0}px 0px 0px ${Rt<0?1-Rt:0}px)`)}else if(ut.left=(hn.x+vt)*l+1,ut.top=(hn.y+jt)*l+1,ut.width=hn.width*l,ut.height=hn.height*l,ce&&!Ye){ut.left=(hn.x+kt)*l+1,ut.top=(hn.y+(_t.y+0))*l+1;const Rt=$.GeomUtils.centerPoint({x:on+kt,y:0,width:Mn.width,height:_t.height}),Bt=$.GeomUtils.centerPoint({x:on,y:0,width:zn,height:_t.height}),Lt=$.GeomUtils.rotatePoints([Rt],ce,Bt),mn={x:Lt[0].x-Rt.x,y:Lt[0].y-Rt.y};ut.left=ut.left+mn.x*l,ut.top=ut.top+mn.y*l;const Fn={..._t,x:on,y:we.top,width:_t.width+(Y+le)},wn=$.GeomUtils.boundsToPoints(Fn),Ne=$.GeomUtils.rotatePoints(wn,ce),yt=$.GeomUtils.minBoundingRect(Ne);Fn.width=yt.width,Fn.height=yt.height;const qt=$.GeomUtils.centerPoint(Fn),tn={x:qt.x-Bt.x,y:qt.y-Bt.y};ut.left=ut.left+tn.x*l,ut.top=ut.top+tn.y*l}ut.lineHeight=pr*l+"px";const Ot=Ve?void 0:"text-line";Re.push(s.jsx("div",{className:ui?`${ui} ${Ot}`:Ot,style:ut,...Ki,children:pi},`text-${_t.y}-${fn}-${rn}`))};if(ve.getOverflow()===$.ITextFrame.Overflow.Shrink&&Le>0){let Mn=he?.width??0,kt=0;for(;Mn>1&&Mn>Le&&zt>2&&kt<100;)zt*=Le/Mn,Mn=_.measureText(fe,zt).width,kt++;he={...he,width:Mn}}let _n=_t.x;Je===$.ITextFrame.HorizontalAlignment.Right?_n+=he.width-_t.width:Je!==$.ITextFrame.HorizontalAlignment.Center&&Je!==$.ITextFrame.HorizontalAlignment.CenterContinuous||(_n+=(he.width-_t.width)/2),rt?.lastRepeatIndex>=0&&(_n=_t.x);const pn=Vt.length;for(let Mn=0;Mn<pn;Mn++){const kt=Vt[Mn];(kt.type===$.NumberFormat.ParseRunType.Text||kt.type===$.NumberFormat.ParseRunType.Repeat)&&(kt.type,$.NumberFormat.ParseRunType.Repeat,Yt(kt,_n,Mn,_e,Je===$.ITextFrame.HorizontalAlignment.Justify||Je===$.ITextFrame.HorizontalAlignment.Distributed||rt?.lastRepeatIndex>=0?Le:_t.width,Ve,{x:Ze.x+z,y:Ze.y,width:kt.width,height:he.height},0,qe,At)),_n+=kt.width}};Q?me(Q,0,{x:0,y:0,...he},se.lines[0].baseline,B,!0,null,ie):se.visitLines({visitTextLine:(fe,_e,Fe)=>{const qe=fe.runs[0].text.replace(/\s+$/,""),Je=_e===Fe-1;let Qe=B===$.ITextFrame.HorizontalAlignment.Justify&&(Je||fe.runs[0].text.endsWith(`
|
|
193
|
+
`))?$.ITextFrame.HorizontalAlignment.Left:B,rt=0;_e>0&&(ve.getVertical()===$.ITextFrame.VerticalAlignment.Distributed||ve.getVertical()===$.ITextFrame.VerticalAlignment.Justify)&&(rt=Math.max(0,(w-(ae+3)-fe.bounds.height*Fe)/(Fe-1)*_e)),ve.getVertical()===$.ITextFrame.VerticalAlignment.Distributed&&ce&&ce%90==0&&ce%180!=0&&(Qe=$.ITextFrame.HorizontalAlignment.Distributed),Qe!==$.ITextFrame.HorizontalAlignment.Justify&&Qe!==$.ITextFrame.HorizontalAlignment.Distributed&&Qe!==$.ITextFrame.HorizontalAlignment.Fill||(he={...he,width:Le});const At={...fe.bounds,y:fe.bounds.y+rt+0,width:be||T&&(T.repeatChars.length>0||T.spacingChars.length>0)?he.width:fe.bounds.width};me(qe,_e,At,De.lines[0].baseline,Qe,Je,Fe===1?F:null,Ve&&_e>0?{...ie,style:{...ie.style,background:void 0}}:ie)}})}Re.length>0&&(N=Re)}if(Ve)return N&&N.length>0?N:s.jsx("div",{style:je,...b});let Ge=m?"auto":ee.pointerEvents,Be=null;if(Me){const Ye={x:D*l-1,y:-1,width:L*l+1,height:w*l+1};Ge="auto",Be=v({renderBounds:Ye,darkMode:A,className:"filter-button",disabled:!S.isEditAllowed(),zoom:l,filter:S.getColumnFilter(),onFilterButtonMouseDown:y,...x}),Be&&(Be=s.jsx("div",{style:{...Ye,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:he=>{he.stopPropagation(),he.preventDefault()},children:Be},"filterButton"))}M&&!N&&(N=s.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:"..."},"pending-ellipsis"));const ct=[X,N,r,H,ot,Be];return s.jsx("div",{style:{...V,...ee,pointerEvents:Ge},...b,children:ct})},W9={text:"",placeholder:""},U9=(e,t)=>{if(!e.clean().getStyle().getNumberFormat().endsWith("%"))return!1;const n=t??e.dirty??"";return n.length===0||n.endsWith("%")&&!isNaN(parseFloat(n.substring(0,n.length-1)))},Fz=Object.freeze([nn.Delete,nn.Home,nn.End]),Hw=u.memo(u.forwardRef((e,t)=>{const{editState:n,onStartEdit:o,onChangeEdit:r,onSubmitEdit:i,onCancelEdit:a,onDoneEdit:l,defaultTextStyle:c,useRichStyling:d=!0,bodyStyle:p,activeCoords:h,sheet:f,commands:g,containerBounds:m,setNaturalDimensions:y,onFocus:x,disabled:v,style:b,zoom:w=1,linesVisible:E,autoFocus:S=!1,...R}=e,{height:_=0,width:A=0}=m??{},T=p?.darkMode??!1,j=u.useRef(null),[C,k]=u.useState(!1),[P,O]=u.useState(null),[I,z]=u.useState(()=>n);u.useEffect(()=>{J.current=!1,z(n)},[n]);const L=u.useMemo(()=>{const he=I.clean();let Ze=he.getStyle();d||(Ze=Ze.createTemporaryStyle({font:{size:c?.fontSize}}));const Se=he.getFormula(),Re=Ze.getAlignment(),ue=Se?$.ITextFrame.HorizontalAlignment.Left:Re.getHorizontal(),De=Re.getVertical(),Le=Re.getOverflow()===$.ITextFrame.Overflow.Wrap||he.getType()===$.ScalarType.String&&(ue===$.ITextFrame.HorizontalAlignment.Justify||ue===$.ITextFrame.HorizontalAlignment.Distributed||De===$.ITextFrame.VerticalAlignment.Justify||De===$.ITextFrame.VerticalAlignment.Distributed),W=(se=>{if(!se)return W9;const te=se.clean();if(!te)return W9;let ie=te.getStyle()?.getQuotePrefix();if(se.dirty===void 0||se.dirty===null){let pe="",me=te.getFormulaText();me&&(pe=me,ie=!1),pe||(pe=te.toTextUnformatted(!0)??"");let fe="";if(!se.editMode&&te.isSpillOverflow()){const _e=te.getSpill();if(_e){const Fe=_e.getCell(),qe=Fe.getFormulaText();Fe.isEqual(te)||(fe=qe)}}return ie&&(pe="'"+pe),{text:pe,placeholder:fe}}return{text:se.dirty??"",placeholder:""}})(I),Q=W.text,q=$.ITextFrame.toCSSHorizontalTextAlign(d&&!Se?I.clean()?.getRenderHorizontalAlignment():$.ITextFrame.HorizontalAlignment.Left);return{style:Ze,isWrapped:Le,textValue:Q,formula:Se,frameVertAlign:De,placeholder:W.placeholder,insets:d?he.getInsets():Lc.EmptyRect,textAlign:q}},[I,c,T,w,d]),D=u.useRef(null),F=ir(t,()=>({startEdit:he=>{j.current=he?.initialSelection;const Ze={...n,editMode:he?.editMode??!1};he?.text!==void 0&&(Ze.dirty=he.text),Ze.editMode===n.editMode&&Ze.dirty===n.dirty||(z(Ze),N?.(Ze))},submitEdit:()=>X(),cancelEdit(){H()},autoFocus(){D.current.focus()},dispatchEvent:he=>D.current.dispatchEvent(he),focus(){D.current.focus()},getLineHeight:M}),[o,n]);u.useLayoutEffect(()=>{if(!P||!C)return;const he=D.current;L.textValue,he&&he.setSelectionRange(P.start,P.end,P.direction)},[D.current,P,L.textValue]);const B=u.useMemo(()=>{const he=I?.clean(),Ze=L.style.createTemporaryTextFrame(L.textValue,he?.getType()===$.ScalarType.String),Se=d?he.getInsets().right+he.getInsets().left:0;let Re=null;return L.isWrapped&&(Re={width:A-Se}),Ze.layout(Re)},[L,A,I,d]),M=Te(()=>Math.ceil(B?.lines[0]?.bounds.height),[B]);u.useLayoutEffect(()=>{if(!B)return;const he=L.style,Ze=he.getInsets()??Lc.EmptyRect,Se=d?Ze.left+Ze.right:0,Re=d?.04*he.getFont().getSize():1,ue=Math.round(L.isWrapped?void 0:B.bounds.width+Se+Re),De=Math.round(B.bounds.height);y?.({width:ue,height:De})},[B,y,L,d,I]);const N=Te(r,[r]),V=Te(he=>{if(I.dirty===he)return;const Ze={...I};Ze.dirty=he,D.current,z(Ze),N?.(Ze)},[I]),U=Te(he=>{if(I.editMode===he)return;const Ze={...I};Ze.editMode=he,z(Ze),N?.(Ze)},[I]),J=u.useRef(!1),X=Te(()=>{if(J.current)return!1;try{i?.(I),l?.(),J.current=!0}catch{return!1}return!0},[i,I]),H=Te(()=>{J.current=!0,z(n),a?.(),l?.()},[a,n]),ne=Te(he=>{if(!D.current)return;if(he.key,he.isDefaultPrevented(),!(he.isTrusted||he.nativeEvent.ctrlKey||he.nativeEvent.metaKey||he.nativeEvent.altKey||he.nativeEvent.isComposing||uf.indexOf(he.nativeEvent.key)===-1&&he.nativeEvent.key!=="Backspace")){const W={...I};let Q=0;return U9(W,W.dirty)&&!isNaN(parseFloat(he.key))?(W.dirty?.endsWith("%")?W.dirty=(W.dirty.substring(0,W.dirty.length-1)??"")+he.key+"%":W.dirty=(W.dirty??"")+he.key+"%",Q=W.dirty.length-1):he.nativeEvent.key==="Backspace"?(W.dirty="",Q=W.dirty.length):(W.dirty=(W.dirty??"")+he.key,Q=W.dirty.length),D.current.value=W?.dirty,j.current={start:Q,end:Q,direction:"forward"},D.current?.setSelectionRange(Q,Q,"forward"),z(W),N?.(W),void he.preventDefault()}const Ze=he.nativeEvent.ctrlKey,Se=he.nativeEvent.shiftKey,Re=he.nativeEvent.altKey,ue=he.nativeEvent.metaKey;if(Ze&&he.key==="z"&&he.stopPropagation(),he.which===nn.Escape)return he.preventDefault(),void H();if(he.which===nn.F2)return U(!0),void he.preventDefault();const De=he.target;if(he.key==="%"&&De.selectionStart===De.selectionEnd&&De.value[De.selectionStart]==="%"&&I?.clean().getStyle().numberFormat.includes("%"))return O({start:De.selectionStart+1,end:De.selectionEnd+1,direction:De.selectionDirection}),void he.preventDefault();if(he.which===nn.Enter){if(he.preventDefault(),ue||Re){const W=L.textValue.substring(0,De.selectionStart)+`
|
|
194
|
+
`+L.textValue.substring(De.selectionEnd);return V(W),void O({start:De.selectionStart+1,end:De.selectionStart+1,direction:De.selectionDirection})}return void(X()&&f.getSelection().traverse($.IRange.Orientation.Column,Se))}if(he.which===nn.Tab)return he.preventDefault(),void(X()&&f.getSelection().traverse($.IRange.Orientation.Row,Se));let Le=null;switch(he.which){case nn.Left:Le=$.IRange.Direction.Left;break;case nn.Right:Le=$.IRange.Direction.Right;break;case nn.Up:Le=$.IRange.Direction.Up;break;case nn.Down:Le=$.IRange.Direction.Down}!Le||Ze||Se||Re||ue||I.editMode?I.editMode&&(Le||Fz.includes(he.which))&&he.stopPropagation():X()},[I,f,L]),oe=u.useCallback(()=>{D.current?.focus(),setTimeout(()=>{D.current?.select()},0)},[]),ge=u.useCallback(()=>{D.current?.focus(),console.log("implement toggleRelativeReferences")},[]),de=Te(()=>{const he=D.current?.value;let Ze="";if(h.rowIndex>0){const Se=f.getRange({rowIndex:h.rowIndex-1,colIndex:h.colIndex}).getCell();Se&&(Ze=Se.toTextUnformatted(!0))}V(he+Ze)},[h,f]);u.useEffect(()=>f.getRange(h).addListener(()=>{const he={...I,clean:()=>f.getRange(h).getCell()};z(he),N?.(he)}),[h,f]);const ye=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:Yc(),style:{numberFormat:"Medium Time"}}).toText();V((D.current?.value??"")+he)},[f]),ve=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:Yc(),style:{numberFormat:"Short Date"}}).toText();V((D.current?.value??"")+he)},[f]),be=u.useMemo(()=>({element:()=>D.current,doCopy:he=>{const Ze=D.current.value.substring(D.current.selectionStart,D.current.selectionEnd);if(he?.isCut){const Se=D.current.value.substring(0,D.current.selectionStart)+D.current.value.substring(D.current.selectionEnd,D.current.value.length);V(Se)}return Ze}}),[D.current]),re=u.useMemo(()=>({element:()=>D.current,doPaste:async(he,Ze)=>{const Se=await he.toText?.();if(!Se)return!0;const Re=D.current.value.substring(0,D.current.selectionStart)+Se+D.current.value.substring(D.current.selectionEnd,D.current.value.length);return V(Re),O({start:D.current.selectionStart+Se.length,end:D.current.selectionStart+Se.length,direction:"forward"}),!0}}),[D.current]),ce=u.useMemo(()=>({contains:he=>D.current?.contains(he)||!1,focus(){D.current.focus()}}),[]),we=u.useMemo(()=>[new Tt("selectAll",ce,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[$e.Ctrl]}},oe),new Tt("startEditValueAbove",ce,{label:"Copy From Above",description:"Copy the value from the cell above the active cell into the cell or the formula bar.",shortcut:[{key:'"',modifiers:[$e.Ctrl]},{key:'"',modifiers:[$e.Ctrl,$e.Shift]}]},de),new Tt("startEditCurrentTime",ce,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},ye),new Tt("startEditCurrentDate",ce,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},ve),new He("relativeReferencesToggle",ce,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},ge),new He("toggleEditorFocus",ce,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[$e.Ctrl]}})],[]),ae=u.useMemo(()=>{let he=null;const Ze=()=>({contains:Se=>D.current?.contains(Se)||!1,focus(){D.current.focus()}});return he=g?g.createChildGroup(Ze,"editor",!1):new e0(Ze,"editor"),he.addCommands(we,!0),he},[g,we]),Y=u.useMemo(()=>({notifier:null,source:be,target:re,commands:ae}),[be,re,ae]);ib(Y);const[le,ee]=u.useState(!S);u.useEffect(()=>{ee(!1)},[]);const Ie=Te(he=>{k(!0),ae?.activate();const Ze=j.current;if(Ze!==!1){let Se,Re;const ue=D.current.value;U9(I,ue)&&(Se=ue.length-1,Re=ue.length-1),Se=Ze?.start??Se??ue.length,Re=Ze?.end??Re??ue.length,j.current=!1,O({start:Se,end:Re,direction:"forward"})}x?.(he)},[x,I]),Me=L.insets;let ot=Me.left+1;const Ve=Me.left+Me.right+2-1,Ce=B?.bounds.height??0;let je,Ge=Me.top;L.frameVertAlign===$.ITextFrame.VerticalAlignment.Center?Ge=Math.max(0,(_-(Me.top+Me.bottom)-Ce)/2):L.frameVertAlign===$.ITextFrame.VerticalAlignment.Bottom&&(Ge=Math.max(0,_-(Me.top+Me.bottom)-Ce)),E!==void 0&&B?.lines[0]?.bounds&&(je=B?.lines[0]?.bounds.height*E);const Be=L.style.getFont();let ct=Be.getSize();Be.isSuperSub()&&(ct*=Be.getSuperSubScale()),ct*=$.IFont.getDeviceScale()*w;const Ye=d?Be.toCSS(T,w):null;return s.jsx("div",{className:"sheet-cell-editor",onMouseDown:he=>{D.current&&document.activeElement!==D.current&&requestAnimationFrame(()=>{D.current.focus()})},ref:F,...R,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...b},children:s.jsx("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:Ge*w+1,left:ot*w,width:`calc(100% - ${Ve*w}px)`,maxWidth:`calc(100% - ${Ve*w}px)`,height:(je??Ce)*w,maxHeight:(je??Ce)*w},children:s.jsx("textarea",{spellCheck:"false",placeholder:L.placeholder,ref:D,value:L.textValue,disabled:le,readOnly:v,name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...Ye,fontSize:ct?`${ct}px`:"inherit",textAlign:L.textAlign,lineHeight:(B?.lines[0]?.bounds.height??0)*w+"px",height:(B?.bounds.height??0)*w,boxSizing:"border-box",padding:"0px",margin:"0px",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",background:"transparent",maxHeight:"100%",maxWidth:"100%",width:"100%",userSelect:"text",position:"absolute",whiteSpace:L.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:Ie,onBlur:()=>{k(!1)},onSelect:he=>{},onChange:he=>{D.current&&!J.current&&(j.current=!1,V(he.target.value),L.textValue,he.target.value,he.target.selectionStart,he.target.selectionEnd,he.target.selectionDirection,O({start:he.target.selectionStart,end:he.target.selectionEnd,direction:he.target.selectionDirection}))},onMouseDown:he=>{C&&U(!0)},onKeyDown:ne})})})})),Ww=(e,t)=>({clean:e,dirty:t,editMode:!1}),Uw=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:a=!1,offsetX:l=0,offsetY:c=0,isVertical:d=!1,...p}=e,h=b=>{let w=null;if(b&&n>0){w="";for(let E=0;E<b.length;E++)w+=b[E],E<b.length-1&&(w+=",")}return w},f=h(o);let g=f;r&&(g=h(r));let m=n,y=t,x=null;if(i){m=Math.floor(n/2);const b=m+m/2+1;let w=null;w=d?`M ${Rn.boundPixel(l+b)} ${Rn.boundPixel(c)} L ${Rn.boundPixel(l+b)} ${Rn.boundPixel(c+y)}`:`M ${Rn.boundPixel(l)} ${Rn.boundPixel(c+b)} L ${Rn.boundPixel(l+y)} ${Rn.boundPixel(c+b)}`,x=s.jsx("path",{strokeWidth:m,strokeDasharray:g,d:w,...p})}if(a){m=n/2;const b=m+m/2;let w=g,E=null;E=d?`M ${Rn.boundPixel(l+b)} ${Rn.boundPixel(c)} L ${Rn.boundPixel(l+b)} ${Rn.boundPixel(c+y)}`:`M ${Rn.boundPixel(l)} ${Rn.boundPixel(c+b)} L ${Rn.boundPixel(l+y)} ${Rn.boundPixel(c+b)}`,x=s.jsx("path",{strokeWidth:m,strokeDasharray:w,strokeDashoffset:"1",shapeRendering:"crispEdges",d:E,...p})}let v=null;return v=d?`M ${Rn.boundPixel(l+m/2)} ${Rn.boundPixel(c)} L ${Rn.boundPixel(l+m/2)} ${Rn.boundPixel(c+y)}`:`M ${Rn.boundPixel(l)} ${Rn.boundPixel(c+m/2)} L ${Rn.boundPixel(l+y)} ${Rn.boundPixel(c+m/2)}`,s.jsxs(s.Fragment,{children:[s.jsx("path",{strokeWidth:m,strokeDasharray:f,d:v,...p}),x]})};function Jp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var r0=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Jp(o,t),i=typeof r=="function";n.push(i?r:()=>Jp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Jp(n,t)}},Bz=function(){},qw=typeof window<"u",rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nz=qw?u.useLayoutEffect:u.useEffect,q9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Vl=qw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(q9),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return Nz(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[Bz,q9]},$z=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Vz=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Hz=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:a=!1,shiftIfWide:l=!1,isVertical:c=!1,intersections:d,layout:p}=e,h=$.IBorder.BuiltInDefinitions.get(a?$.IBorder.StrokeStyle.Thin:r.getStyle());if(!h)return null;const f=n[0],g=n[1],m=n[2],y=n[3];let x=1+(c?y-g:m-f),v=0;const b=r.getColor().toRGBA(i).toString(),w=h.description.toLowerCase().includes("double");let E,S;const R=c?"rowStart":"colStart",_=c?"rowEnd":"colEnd",A=c?g:f;if(d?.length>0){const k=d[0];if(k?.range[R]===o[R]){const P=$.IBorder.BuiltInDefinitions.get(k.stroke.getStyle());v=Math.floor(P.width/2)}if(d[d.length-1]?.range[_]===o[_]){const P=$.IBorder.BuiltInDefinitions.get(d[d.length-1].stroke.getStyle());x=Math.floor(x+(P.width===2?0:P.width/2))}if(w){const P=c?"colStart":"rowStart",O=c?"colEnd":"rowEnd",I=c?p?.getRowOffset:p?.getColOffset;let z=0,L=0;E=[],S=[];for(let D=0;D<d.length;D++){const F=d[D];if(F.stroke.getStyle()===$.IBorder.StrokeStyle.Double&&I){const B=I(F.range[R])-(A-v);F.range[P]<o[P]&&(E.push(B-z),z=B,E.push(1),z++),F.range[O]>o[O]&&(S.push(B-L),L=B,S.push(1),L++)}}E.length>0&&z<x&&E.push(x-z),S.length>0&&L<x&&S.push(x-L)}}let T=c?-Math.floor(h.width/2):-v,j=c?-v:-Math.floor(h.width/2);const C=l&&h.width>2?-1:0;return s.jsx(Uw,{offsetX:f+T+C,offsetY:g+j+C,length:x+v,isVertical:c,stroke:b,width:h.width,dashArray:E??h.pattern,dashArrayAdditional:S,isDouble:w,isAngled:h.description.toLowerCase().includes("slant")},t)},Kw=({getBorderAt:e,borderRenderer:t=Hz,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:a=!1})=>{const l=Te(n,[n]);return{overlay:u.useMemo(()=>c=>{const d=c.toClipBounds(c.getRangeCoordsBounds(),-3);if(!d)return;const p=l(c);if(p.length===0)return;const h=c.getVisibleColumnOffsets(),f=c.getVisibleRowOffsets();let g=[],m=[];const y=c.getVisibleColumns(),x=c.getVisibleRows(),v=[],b=[],w=[],E=(A,T,j,C,k,P,O)=>{const I={index:C,stroke:k,visibleIndex:j,edge:P,length:O};A[T]||(A[T]=[]),A[T].length>0&&A[T][A[T].length-1]?.index===C?A[T][A[T].length-1]=I:A[T].push(I)};for(let A=0;A<p.length;A++){const T=p[A],j=T.coords;if(!j)continue;const C=T?.range??{rowStart:j.rowIndex,colStart:j.colIndex,rowEnd:j.rowIndex,colEnd:j.colIndex},k=c.getVisibleRangeCoords();if(!Go.isRangesIntersect(C,k)&&!Go.isRangeWithinRange(C,k))continue;const P=j.colIndex,O=j.rowIndex,I=h[P],z=f[O];if(C.rowEnd!==C.rowStart){const H=f[C.rowStart]?.spanIndex??-1,ne=f[C.rowEnd]?.spanIndex??f[x[x.length-1]].spanIndex+1;g.push({...C,rowStart:H,rowEnd:ne})}if(C.colEnd!==C.colStart){const H=h[C.colStart]?.spanIndex??-1,ne=h[C.colEnd]?.spanIndex??h[y[y.length-1]].spanIndex+1;m.push({...C,colStart:H,colEnd:ne})}const L=T.value,D=e(L,A);if(!D||D.isEmpty())continue;const F=D.getLeft(),B=D.getTop(),M=D.getRight(),N=D.getBottom();let V=1,U=1;if(!I||!z)continue;const J=I.spanIndex,X=z.spanIndex;F.isNone()||E(v,J,X,O,F,$.IBorder.Edge.Left,V),B.isNone()||E(b,X,J,P,B,$.IBorder.Edge.Top,U),M.isNone()||E(v,J+U,X,O,M,$.IBorder.Edge.Right,V),N.isNone()||E(b,X+V,J,P,N,$.IBorder.Edge.Bottom,U)}const S=(A,T,j)=>{const C=[];return A.forEach((k,P)=>{let O=null;k.sort((I,z)=>I.visibleIndex-z.visibleIndex);for(let I=0;I<k.length;I++){const z=k[I];if(!z?.stroke||T[P]===void 0&&T[P-1]===void 0)continue;let L=!1;if(j)for(let M=0;!L&&M<g.length;M++){let N=g[M];N.colStart<=z.index&&N.colEnd>=z.index&&N.rowStart<P&&N.rowEnd>=P&&(L=!0)}else for(let M=0;!L&&M<m.length;M++){let N=m[M];N.rowStart<=z.index&&N.rowEnd>=z.index&&N.colStart<P&&N.colEnd>=P&&(L=!0)}if(L)continue;const D=z.stroke?.getColor(),F=D?D.toRGBA().toString():i,B=z.stroke.getStyle()+":"+F;(B!==O?.key||O&&O.visibleIndex+1<z.visibleIndex)&&(O&&C.push(O),O={key:B,index:T[P]??T[P-1]+1,visibleIndex:z.visibleIndex,edge:z.edge,stroke:z.stroke,from:z.index,to:z.index+z.length-1,intersections:[],length:1}),O.to=z.index+z.length-1,O.visibleIndex=z.visibleIndex}O&&C.push(O)}),C};g=g.sort(Vz),m=m.sort($z);const R=S(v,y,!1),_=S(b,x,!0);if(R.length===0&&_.length===0)return null;for(let A=0;A<_.length;A++){const T=_[A];let j=Jt.findEqualOrGreater(R,T.from,k=>k.index),C=!1;for(;!C;){const k=R[j++];k&&k.index>=T.from&&k.index<=T.to+1&&k.from<=T.index&&k.to+1>=T.index&&(T.intersections.push({stroke:k.stroke,range:{rowStart:k.from,rowEnd:k.to+1,colStart:k.index,colEnd:k.index}}),k.intersections.push({stroke:T.stroke,range:{rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1}})),C=!k||k.index>T.to+1}}for(let A=0;A<_.length;A++){const T=_[A];let j=T.stroke;const C=`rBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,k={rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1},P=c.getLayout(),O=!1,I=P.getColOffset(k.colStart),z=P.getRowOffset(k.rowStart),L=[I,z,P.getColOffset(k.colEnd),z];w.push(t({key:C,points:L,stroke:j,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:k,intersections:T.intersections,layout:P,isVertical:O}))}for(let A=0;A<R.length;A++){const T=R[A];let j=T.stroke;const C=`cBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,k={rowStart:T.from,rowEnd:T.to+1,colStart:T.index,colEnd:T.index},P=c.getLayout(),O=!0,I=P.getColOffset(k.colStart),z=[I,P.getRowOffset(k.rowStart),I,P.getRowOffset(k.rowEnd)];w.push(t({key:C,stroke:j,points:z,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:k,intersections:T.intersections,layout:P,isVertical:O}))}return s.jsx("svg",{width:`${d.width}`,height:`${d.height}`,viewBox:`0 0 ${d.width} ${d.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${d.width}px`,height:`${d.height}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",overflow:"visible"},children:w},"borders")},[e,o])}},K9=zo.Center,Wz=Object.freeze({horizontal:!1,vertical:!1}),G9=Lc.EmptyTopLeft,Uz=(e,t)=>Go.EmptyCell,qz=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),pf=u.memo(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:a=2,darkMode:l,forceThinBorder:c,children:d,...p}=e,h=u.useRef(null),[f,{width:g,height:m}]=Vl(),y=n??g,x=o??m,v=u.useMemo(()=>{const I=[];for(let z=0;z<i;z++)for(let L=0;L<a;L++){const D={colIndex:L,rowIndex:z};I.push({coords:D,value:D})}return I},[]),b=u.useCallback(I=>v,[v]),{overlay:w}=Kw({getVisibleCells:b,getBorderAt:t,darkMode:l,forceThinBorder:c}),E=Math.floor(y/a),S=Math.floor(x/i),R={getColOffset:I=>Math.ceil(I*E)+0,getRowOffset:I=>Math.ceil(I*S)+0,getColIndex:I=>Math.floor((I-0)/E)-1,getRowIndex:I=>Math.floor((I-0)/S)-1},_={rowStart:0,colStart:0,rowEnd:i,colEnd:a},A={x:0,y:0,width:Math.max(0,y)+0,height:Math.max(0,x)+0},T=u.useMemo(()=>{const I={},z=Math.floor(y/a);for(let L=0;L<a;L++)I[L]={offset:L*z,size:z,spanIndex:L};return I},[y,x]),j=u.useMemo(()=>{const I={},z=Math.floor(x/i);for(let L=0;L<i;L++)I[L]={offset:L*z,size:z,spanIndex:L};return I},[y,x]);if(!w)return null;const C={width:y,height:x},k={width:y,height:x},P={getStage:()=>h.current,getTotalSize:()=>C,getViewportSize:()=>k,getLayout:()=>R,getCellCoordsAsRangeCoords:Go.cellToRange,getVisibleRangeCoords:()=>_,getVisibleRows:()=>{const I=[];for(let z=0;z<i;z++)I.push(z);return I},getTotalRangeCoords:()=>_,getRelativePointFromClient:(I,z)=>({x:I,y:z}),getVisibleColumns:()=>{const I=[];for(let z=0;z<a;z++)I.push(z);return I},toClipBounds:(I,z)=>A,toViewBounds:I=>I,toAbsoluteBounds:I=>I,getBounds:()=>A,getInsets:()=>null,getRangeCoordsBounds:(I,z)=>null,getVisibleColumnOffsets:()=>T,getVisibleRowOffsets:()=>j,allViews:()=>({[K9]:P}),getAnchor:()=>K9,getZoom:()=>1,scrollCellCoordsIntoView:qz,getCellCoordsFromClient:Uz,getScrollOrientation:()=>Wz,getScrollTopLeft:()=>G9,getFreezeTopLeft:()=>G9},O=w(P);return s.jsxs("div",{style:{...r,position:"relative",display:"flex"},...p,children:[s.jsx("div",{ref:r0([h,f]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:d}),O]})});function Gw(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Gw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Zr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Gw(e))&&(o&&(o+=" "),o+=t);return o}const Kz=e=>{const{style:t,...n}=e??{};return s.jsxs("svg",{style:{width:"135px",height:"37px",...t},viewBox:"0 0 135 37",...n,children:[s.jsx("path",{d:"M 1.0984,0 C 0.4978,0 0.01,0.40548 0.01,0.90302 v 19.5766 H 0 v 15.61762 c 0,0.30574 0.185,0.57535 0.466,0.73886 v 0.1426 H 0.8565 C 0.9315,36.992 1.0086,37 1.0883,37 H 13.063 25.9706 v 0 h 8.7553 c 0.08,0 0.1563,-0.008 0.2308,-0.0213 h 0.054 v -0.0141 c 0.4621,-0.10457 0.8035,-0.45175 0.8035,-0.86739 v -15.312 c 0,-0.0328 0.01,-0.0658 0.01,-0.0995 V 0.90304 C 35.8242,0.4052 35.3363,6e-5 34.7358,6e-5 H 22.5969 V 1.7e-4 H 21.0014 V 6e-5 Z",fill:"#547dbe",fillRule:"evenodd"}),s.jsx("path",{d:"M 1.4849,2.09543 V 9.06408 H 8.1947 V 2.09543 Z m 8.6592,0 V 9.06408 H 16.854 V 2.09543 Z m 8.685,0 v 6.96865 h 6.7098 V 2.09543 Z m 8.7355,0 v 6.96865 h 6.7099 V 2.09543 Z M 1.4849,11.04391 v 6.81444 h 6.7098 v -6.81444 z m 8.6592,0 v 6.81444 h 6.7099 v -6.81444 z m 8.685,0 v 6.81444 h 6.7098 v -6.81444 z m 8.7355,0 v 6.81444 h 6.7099 V 11.04391 Z M 1.4849,19.83872 v 6.68584 h 6.7098 v -6.68584 z m 8.6592,0 v 6.68584 h 6.7351 v -6.68584 z m 8.685,0 v 6.68584 h 6.7098 v -6.68584 z m 8.7355,0 v 6.68584 h 6.7099 v -6.68584 z m -26.052,8.38811 v 6.68588 h 6.7098 v -6.68588 z m 8.6592,0 v 6.68588 h 6.7355 v -6.68588 z m 8.685,0 v 6.68588 h 6.7099 v -6.68588 z m 8.7356,0 v 6.68588 h 6.7098 v -6.68588 z",fill:"#ffffff",fillRule:"evenodd"}),s.jsx("path",{d:"m 1.4785,2.09737 v 6.96865 h 6.741 V 2.09737 Z m 0,8.94851 v 6.81449 h 6.741 v -6.81449 z m 0,8.79485 v 6.6858 h 6.741 v -6.6858 z m 0.028,8.388 v 6.68588 h 6.741 v -6.68588 z",fill:"#547dbe",fillRule:"evenodd",strokeWidth:"0.4"}),s.jsx("path",{d:"M 120.9895,32.82218 V 10.13469 h 4.7986 v 18.71559 h 9.2153 v 3.9719 z m 0.4853,0 h -5.4976 l -5.275,-8.57923 -5.2751,8.57923 h -5.1481 l 7.5314,-11.69325 -7.0545,-10.99424 h 5.3067 l 4.8936,8.16618 4.7986,-8.16618 h 5.1796 l -7.118,11.24826 z M 95.9361,29.04099 c 0.5297,0 1.0381,-0.053 1.5254,-0.15888 0.4872,-0.10591 0.9745,-0.23299 1.4617,-0.3813 v 3.52703 c -0.5084,0.21183 -1.144,0.39189 -1.9066,0.54018 -0.7415,0.16946 -1.5571,0.2542 -2.4469,0.2542 -1.038,0 -1.9701,-0.16947 -2.7964,-0.5084 -0.805,-0.33894 -1.4511,-0.92148 -1.9384,-1.74763 -0.466,-0.84734 -0.6991,-2.01241 -0.6991,-3.49526 v -8.35686 h -2.2562 v -2.00181 l 2.6058,-1.58876 1.3664,-3.65411 h 3.0189 v 3.6859 h 4.8619 v 3.55878 h -4.8619 v 8.35686 c 0,0.65668 0.1906,1.15449 0.5719,1.49342 0.3814,0.31776 0.8792,0.47664 1.4935,0.47664 z M 79.1445,14.83743 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3983,1.35581 2.0972,3.29411 2.0972,5.81491 v 2.28769 H 75.7444 c 0.042,1.33475 0.4342,2.38315 1.1758,3.14596 0.7626,0.76244 1.8113,1.14385 3.1459,1.14385 1.1227,0 2.1396,-0.10609 3.0506,-0.3179 0.9109,-0.23311 1.8536,-0.58257 2.8283,-1.0484 v 3.654 c -0.8476,0.42362 -1.7479,0.73087 -2.7012,0.92139 -0.9322,0.21181 -2.0655,0.3179 -3.4001,0.3179 -1.7373,0 -3.2731,-0.3179 -4.6078,-0.95333 -1.3346,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0169,-5.05235 0.6991,-1.35578 1.6629,-2.37258 2.8917,-3.0504 1.2286,-0.67783 2.6586,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.2879,0.88967 -0.5933,0.59322 -0.9428,1.51461 -1.0487,2.76455 h 6.6415 c -0.021,-1.05904 -0.2967,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3559,-1.04855 -2.4787,-1.04855 z m -17.011,-3.36815 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3982,1.35581 2.0973,3.29411 2.0973,5.81491 v 2.28769 H 58.7653 c 0.042,1.33475 0.4343,2.38315 1.1758,3.14596 0.7627,0.76244 1.8113,1.14385 3.1459,1.14385 1.1228,0 2.1397,-0.10609 3.0507,-0.3179 0.911,-0.23311 1.8536,-0.58257 2.8282,-1.0484 v 3.654 c -0.8475,0.42362 -1.7478,0.73087 -2.7011,0.92139 -0.9321,0.21181 -2.0655,0.3179 -3.4002,0.3179 -1.7372,0 -3.273,-0.3179 -4.6077,-0.95333 -1.3347,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0168,-5.05235 0.6991,-1.35578 1.6631,-2.37258 2.8918,-3.0504 1.2287,-0.67783 2.6587,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.288,0.88967 -0.5931,0.59322 -0.9427,1.51461 -1.0486,2.76455 h 6.6414 c -0.021,-1.05904 -0.2965,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3558,-1.04855 -2.4786,-1.04855 z M 41.7033,13.59817 c 0,0.84739 -0.032,1.66288 -0.095,2.44668 -0.042,0.78385 -0.085,1.33456 -0.1271,1.65231 h 0.2542 c 0.5508,-0.88968 1.2605,-1.53575 2.1291,-1.93827 0.8686,-0.40251 1.8325,-0.60371 2.8917,-0.60371 1.8855,0 3.3896,0.50838 4.5124,1.52518 1.144,0.99558 1.716,2.60556 1.716,4.82998 V 32.82218 H 48.2498 V 22.68575 c 0,-2.49951 -0.9322,-3.74937 -2.7964,-3.74937 -1.4194,0 -2.4045,0.49788 -2.9553,1.49362 -0.5297,0.97424 -0.7945,2.38314 -0.7945,4.22592 v 8.16626 H 36.9688 V 8.67305 h 4.7348 z",fill:"#eb594d"}),s.jsx("path",{d:"m 23.345,4.88926 c 1.4307,0 2.8282,0.229 4.1916,0.68692 1.3636,0.45803 2.6999,1.15712 4.0084,2.09748 l -1.8344,2.50966 C 28.6222,9.40175 27.5522,8.82162 26.5004,8.44306 25.4486,8.0645 24.3968,7.87524 23.345,7.87524 c -1.9935,0 -3.5435,0.40902 -4.6503,1.22728 -1.1068,0.81819 -1.6601,1.97842 -1.6601,3.48048 v 0.0183 c 0,1.05019 0.3179,1.8502 0.9538,2.39973 0.636,0.54952 1.4615,0.95869 2.4765,1.22731 1.015,0.26862 2.0975,0.51907 3.2468,0.75111 1.003,0.20755 1.9996,0.44872 2.9905,0.7235 0.9905,0.27478 1.8922,0.66562 2.7057,1.1724 0.813,0.50679 1.4615,1.1937 1.9444,2.06075 0.4832,0.86705 0.7247,1.99672 0.7247,3.38884 v 0.0367 c 0,2.45464 -0.8561,4.35355 -2.5682,5.69703 -1.7122,1.34311 -4.1216,2.01505 -7.2278,2.01505 -1.2963,0 -2.5162,-0.12207 -3.6598,-0.36658 -1.1434,-0.24413 -2.2134,-0.61071 -3.2102,-1.09898 -0.9968,-0.48864 -1.9292,-1.09897 -2.7975,-1.83175 l 1.9628,-2.47308 c 1.0763,0.92809 2.2534,1.62428 3.5314,2.08825 1.2779,0.46431 2.669,0.69627 4.1733,0.69627 2.1158,0 3.7513,-0.40613 4.9071,-1.21827 1.1558,-0.81214 1.7335,-1.95096 1.7335,-3.4164 v -0.0183 c 0,-1.06247 -0.2872,-1.87762 -0.8622,-2.44543 -0.5746,-0.56786 -1.3267,-0.99528 -2.2563,-1.28234 -0.9292,-0.28695 -1.9383,-0.52812 -3.0267,-0.72354 -1.0397,-0.18314 -2.0822,-0.39685 -3.1278,-0.64117 -1.0457,-0.24417 -2.0026,-0.60444 -2.8709,-1.08076 -0.8683,-0.47621 -1.5685,-1.15396 -2.1005,-2.0333 -0.532,-0.87933 -0.798,-2.05162 -0.798,-3.5171 v -0.0183 c 0,-2.4792 0.8255,-4.39955 2.4766,-5.7611 1.651,-1.36167 3.9807,-2.04258 6.9892,-2.04258 z",stroke:"#eb594d",strokeWidth:"2",fill:"#f9cecb"})]})},Gz=u.memo(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:a,...l}=e??{},[c,d]=u.useState(null);u.useEffect(()=>{(async()=>{const S=await $.LicenseManager.getDetails();d(S)})()},[]);const[p,h]=u.useState(!1),f={opacity:.65},g=u.useMemo(()=>{if(!(c?.exceptions().length>0))return null;const S=[];for(let R=0;R<c.exceptions().length;R++){const _=c.exceptions()[R];S.push(s.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:_},R))}return S},[c,n]);if(c==null||c.isValidFor(i))return null;const m=c.type(),y=!g&&m.endsWith("ity"),x=c.licensee(),v=y?1.6:1,b=135/v,w=37/v;let E=null;return!m&&x?.length>0&&(E=s.jsx("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:t},children:x})),s.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...a},...l,children:s.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[p?s.jsx(Kz,{style:f}):s.jsx("svg",{width:b,height:w,style:f,children:s.jsx("image",{style:{width:b,height:w},href:"https://www.sheetxl.com/watermark.svg",onError:()=>h(!0)})}),s.jsxs("div",{children:[E,g,s.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),sn=(e,t,n)=>{const o=u.useRef(t);o.current=t;const r=n?.fireOnModelChange??!0;u.useEffect(()=>{if(!e||!o.current)return;const i=Object.keys(o.current),a={};for(let c=0;c<i.length;c++){const d=i[c];a[d]=(p,h)=>{o.current[d]?.(p,h)}}const l=e.addListeners(a,n);if(r)for(let c=0;c<i.length;c++)a[i[c]](e);return()=>{l?.()}},[e])},vd=new $.Color("transparent");var Z9,X9;(function(){if(X9)return Z9;X9=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof rc=="object"&&rc&&rc.Object===Object&&rc,a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")(),c=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return l.Date.now()};function f(m){var y=typeof m;return!!m&&(y=="object"||y=="function")}function g(m){if(typeof m=="number")return m;if(typeof(y=m)=="symbol"||function(b){return!!b&&typeof b=="object"}(y)&&c.call(y)=="[object Symbol]")return NaN;var y;if(f(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=f(x)?x+"":x}if(typeof m!="string")return m===0?m:+m;m=m.replace(e,"");var v=n.test(m);return v||o.test(m)?r(m.slice(2),v?2:8):t.test(m)?NaN:+m}Z9=function(m,y,x){var v,b,w,E,S,R,_=0,A=!1,T=!1,j=!0;if(typeof m!="function")throw new TypeError("Expected a function");function C(z){var L=v,D=b;return v=b=void 0,_=z,E=m.apply(D,L)}function k(z){var L=z-R;return R===void 0||L>=y||L<0||T&&z-_>=w}function P(){var z,L,D=h();if(k(D))return O(D);S=setTimeout(P,(L=y-((z=D)-R),T?p(L,w-(z-_)):L))}function O(z){return S=void 0,j&&v?C(z):(v=b=void 0,E)}function I(){var z,L=h(),D=k(L);if(v=arguments,b=this,R=L,D){if(S===void 0)return _=z=R,S=setTimeout(P,y),A?C(z):E;if(T)return S=setTimeout(P,y),C(R)}return S===void 0&&(S=setTimeout(P,y)),E}return y=g(y)||0,f(x)&&(A=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,j="trailing"in x?!!x.trailing:j),I.cancel=function(){S!==void 0&&clearTimeout(S),_=0,v=R=b=S=void 0},I.flush=function(){return S===void 0?E:O(h())},I}})();var Y9,J9,Q9={};J9||(J9=1,function(){if(Y9)return Q9;Y9=1;var e=u,t=typeof Object.is=="function"?Object.is:function(c,d){return c===d&&(c!==0||1/c==1/d)||c!=c&&d!=d},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function a(c){var d=c.getSnapshot;c=c.value;try{var p=d();return!t(c,p)}catch{return!0}}var l=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,d){return d()}:function(c,d){var p=d(),h=n({inst:{value:p,getSnapshot:d}}),f=h[0].inst,g=h[1];return r(function(){f.value=p,f.getSnapshot=d,a(f)&&g({inst:f})},[c,p,d]),o(function(){return a(f)&&g({inst:f}),c(function(){a(f)&&g({inst:f})})},[c]),i(p),p};Q9.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var eg,tg,wd={exports:{}},ls={exports:{}},Zz=ls.exports;function ng(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(tg)return wd.exports;tg=1;for(var e=(eg||(eg=1,function(){var h,f,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?ls.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ls.exports=function(){return(h()-y)/1e6},f=process.hrtime,m=(h=function(){var v;return 1e9*(v=f())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(ls.exports=function(){return Date.now()-g},g=Date.now()):(ls.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(Zz)),ls.exports),t=typeof window>"u"?rc:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],a=0;!r&&a<n.length;a++)r=t[n[a]+"Request"+o],i=t[n[a]+"Cancel"+o]||t[n[a]+"CancelRequest"+o];if(!r||!i){var l=0,c=0,d=[],p=1e3/60;r=function(h){if(d.length===0){var f=e(),g=Math.max(0,p-(f-l));l=g+f,setTimeout(function(){var m=d.slice(0);d.length=0;for(var y=0;y<m.length;y++)if(!m[y].cancelled)try{m[y].callback(l)}catch(x){setTimeout(function(){throw x},0)}},Math.round(g))}return d.push({handle:++c,callback:h,cancelled:!1}),c},i=function(h){for(var f=0;f<d.length;f++)d[f].handle===h&&(d[f].cancelled=!0)}}wd.exports=function(h){return r.call(t,h)},wd.exports.cancel=function(){i.apply(t,arguments)},wd.exports.polyfill=function(h){h||(h=t),h.requestAnimationFrame=r,h.cancelAnimationFrame=i}})();const Vu=u.memo(u.forwardRef((e,t)=>{const{style:n=Rn.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:a,onScrollOffset:l,showCustomScrollButtons:c=!1,offset:d=0,totalSize:p=0,viewportSize:h=0,...f}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[g]=Vl(),m=Te(i,[i]),y=Te(a,[a]),x=u.useMemo(()=>v===null&&b===null?null:V=>{ng(v,V),ng(b,V)},[v=g,b=t]);var v,b;const[w,E]=u.useState(()=>{const V=r.getView().getTopLeft();return o===yr.Vertical?V.top:V.left}),S=()=>{const V=r.getView().getFreezePanes();return o===yr.Vertical?V.coords.rowIndex===0?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(V.coords.rowIndex)-V.topLeft.top,scroll:V.topLeft.top}:V.coords.colIndex===0?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(V.coords.colIndex)-V.topLeft.left,scroll:V.topLeft.left}},[R,_]=u.useState(S),[A,T]=u.useState(null),[j,C]=u.useState(!1),k=o===yr.Vertical?r.getRowHeaders():r.getColumnHeaders(),P=()=>{const V=r.getUsedRange()?.getCoords()??Go.EmptyRange,U=r.getSelection().getCoords().cell;return{colIndex:Math.max(V.colEnd,U.colIndex),rowIndex:Math.max(V.rowEnd,U.rowIndex)}},[O,I]=u.useState(P),z=O?(o===yr.Vertical?O.rowIndex:O.colIndex)+1:0,L=()=>{const V=P();Go.isEqualCells(O,V)||I(V)};sn(r.getView(),{onFreezeSplitChange:()=>{_(S)}}),sn(r.getSelection(),{onChange:L}),sn(r,{onUsedRangeChange:L}),u.useEffect(()=>{I(P())},[r]),u.useEffect(()=>{if(!A)return j&&y?.(),void C(!1);const V=k.getTextAt(k.findIndex(w/(r.getView().getZoomScale()/100)+R.scroll+R.shift));C(!0),m?.({...A,display:(o===yr.Vertical?"Row":"Column")+": "+V})},[d,w,R,o,A,k,j,r]);const D=Te((V,U,J)=>{E(V);const X=V+R.scroll,H=U+R.shift,ne=J+R.shift+R.scroll;l?.(X,H,ne)},[l,R]),F=d-R.scroll,B=h-R.shift,M=p-(R.shift+R.scroll),N=k.findOffset(z)*(r.getView().getZoomScale()/100)-(R.scroll+R.shift);return s.jsx(Qx,{ref:x,style:n,offset:F,viewportSize:B,totalSize:M,orientation:o,showCustomScrollButtons:c,onMouseDown:V=>{T({anchor:{x:V.clientX,y:V.clientY}}),V.preventDefault()},onScrollOffset:D,onMouseOut:()=>{T(null)},onMouseUp:()=>{T(null)},minSize:N,...f})}));Vu.displayName="SheetScrollbar";const og=(e,t,n=null)=>{const o=[];for(let r=0;r<e.length;r++)if(e[r].value.isSelectedAll){if(e[r].min===e[r].max&&e[r].min===n)continue;o.push({address:{min:e[r].min,max:e[r].max},update:t})}return o},rg=u.memo(u.forwardRef((e,t)=>{const{sheetHeader:n,gridRef:o,sheetElement:r,commands:i,oppositeSize:a=30,containerWidth:l,containerHeight:c,headerText:d,freezeStart:p,gridStyle:h,verticalPadding:f,horizontalPadding:g,onSheetContextMenu:m,onResizeHeadersStart:y,onResizeHeaders:x,onResizeHeadersEnd:v,onResizeHeadersDown:b,onResizeHeadersUp:w,scrollPoint:E,onSelectionStart:S,onSelectionEnd:R}=e,_=u.useMemo(()=>n.getOrientation(),[n]),A=u.useRef(null),[T,j]=u.useReducer(Se=>Se+1,0),[C,k]=u.useReducer(Se=>Se+1,0),P=n?.getSheet(),O=u.useRef(!1);u.useLayoutEffect(()=>{O.current=!0},[n]);const I=u.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),z=u.useMemo(()=>{const Se=_===$.IRange.Orientation.Column;return{left:Se?E.left:0,top:Se?0:E.top}},[E]),[L,D]=u.useState(P?.getView().getZoomScale()/100),[F,B]=u.useState(null);sn(n,{onSizesChange:Se=>{D(P?.getView().getZoomScale()/100),we(re())}});const M=u.useCallback(()=>{A.current?.invalidate(),k()},[]),N=u.useCallback(Jt.debounce(()=>{M()},10),[]),[V,U]=u.useState(null);sn(n.getSheet(),{onSelectionChange(){U(P?.getSelection().getCoords()),N()},onProtectionChange(){M()},onViewChange(){N()}}),u.useLayoutEffect(()=>{we(re())},[_,L,a]),u.useLayoutEffect(()=>{B(null),D(n?.getSheet().getView().getZoomScale()/100),we(re())},[n]);const J=u.useCallback(Se=>n.at(Se)?.isHidden()||n.at(Se)?.getSize()===0,[n]),X=u.useCallback((Se,Re)=>n.hiddenHeadersAt(Se,Re),[J]),H=Te(Se=>n.isSelected(Se),[n]),ne=Te(Se=>n.isSelectedAll(Se),[n]),oe=u.useCallback(()=>n.getMinSize(),[n]),ge=u.useCallback(()=>n.getMaxSize(),[n]),de=Te((Se,Re,ue)=>{Re/=L;const De={size:Re=Math.max(oe(),Math.min(Jt.roundAccurately(Re,oe()),ge())),hidden:!1},Le=[];if(Re<=0&&(De.hidden=!0,De.size=ue),Le.push({address:{min:Se,max:Se},update:De}),Re<0){const W=_===$.IRange.Orientation.Column,Q=W?ce.getColOffset:ce.getRowOffset,q=W?ce.getColIndex:ce.getRowIndex,se=Q(Se);let te=q(se+Re);const ie=Q(te);ie===se+Re?te--:Le.push({address:{min:te,max:te},update:{size:se-ie+Re}}),Se-te>1&&Le.push({address:{min:te+1,max:Se-1},update:{hidden:!0}})}n.updateHeaderPairs(Le),x?.(Se,Re,ue)},[T,n,L,x]),ye=Te((Se,Re,ue)=>{const De=_===$.IRange.Orientation.Column;let Le=null,W={min:Se,max:Se};if(n.isSelectedAll(Se)){const Q=n.getSelectedRuns();Q.length>1?Le="Resize "+(De?"Columns":"Rows"):W=Q[0];const q={hidden:Re<=0,size:(Re<=0?ue:Re)/L};n.updateHeaderPairs(og(Q,q,Se))}if(W){const Q=W.max-W.min+1;let q;q=Q===1?n.getRange(W).at(0).getDisplayText():n.getRange(W).toString(),Le=`Resize ${De?"Column":"Row"}${Q>1?"s":""} '${q}'`}v?.(Se,Re,Le)},[T,n,v]),ve=Te((Se,Re)=>{const ue=_===$.IRange.Orientation.Column;y(Se,Re,`Resize ${ue?"Column":"Row"}(s)`)},[y]),be=Te(Se=>{let Re=!1;const ue=_===$.IRange.Orientation.Column,De=n.getSheet().getEntireRange().getCoords(),Le=[],W=n.getSelectedRuns(),Q=q=>{let se;se=ue?{colStart:q.min,rowStart:De.rowStart,colEnd:q.max,rowEnd:De.rowEnd}:{colStart:De.colStart,rowStart:q.min,colEnd:De.colEnd,rowEnd:q.max},Le.push(se)};for(let q=0;q<W.length;q++){const se=W[q];se.value.isSelectedAll&&(se.min<=Se&&se.max>=Se&&(Re=!0),Q(se))}if(Re||Q({min:Se,max:Se}),n.getSheet().getRanges(Le).autoFit({orientations:ue?$.IRange.Orientations.Column:$.IRange.Orientations.Row}),J(Se)){const q={hidden:null},se=og(W,q);Re||se.push({address:Se,update:q}),n.updateHeaderPairs(se)}v?.(Se,null,"Resize Column(s)")},[T,n,v,J]),re=()=>{const Se=_===$.IRange.Orientation.Column;return{getColOffset:Re=>Se?n.findOffset(Re):Re===0?0:a/L,getColIndex:Re=>Se?n.findIndex(Re):0,getRowOffset:Re=>Se?Re===0?0:a/L:n.findOffset(Re),getRowIndex:Re=>Se?0:n.findIndex(Re)}},[ce,we]=u.useState(()=>re()),ae=u.useCallback((Se,Re)=>Se.nativeEvent.which!==3||!ne(_===$.IRange.Orientation.Column?Re.colIndex:Re.rowIndex),[_,ne]),Y=Te(Se=>{r.focusSheet()},[r]),le=Te(Se=>{P?.getSelection().updateCoords(Se)},[P]),{...ee}=zw({gridRef:o,commands:null,layout:ce,selection:V,fillHandleBorderColor:h.body.fill,selectionBackgroundColor:h.selection.fill,selectionBorderColor:h.selection.strokeFill,selectionRemoveBackgroundColor:h.selectionRemove.fill,selectionRemoveBorderColor:h.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:le,canSelectionSpanMergedCells:Se=>{const Re=P.getRange(Se);return Re.isEntireColumns()||Re.isEntireRows()}}),Ie=Te(()=>{S?.();const Se=P?.getSelection();Se&&Se.setAdjusting(Se.getCoords())},[P,S]),Me=Te(async()=>{P?.getSelection().setAdjusting(null),R?.()},[P,R]),{...ot}=(({gridRef:Se,gridMainRef:Re,orientation:ue=Ea,headerCount:De,selectionPolicy:Le="multiple",newSelectionMode:W="clear",alwaysScrollToActiveCoords:Q=!0,onDragStart:q,onDragEnd:se,pointerDownInterceptor:te,pointerMoveInterceptor:ie,onPointerUp:pe,newSelection:me,modifySelection:fe,appendSelection:_e,clearSelections:Fe})=>{const qe=De??((ue===Ea?Se.current?.rowCount:Se.current?.columnCount)||0),Je=u.useRef(null),Qe=u.useRef(null),rt=u.useRef(!1),At=u.useRef(null),zt=u.useCallback(kt=>ue===Vr?{rowIndex:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:0},[ue]),_t=u.useCallback(kt=>ue===Vr?{rowIndex:Re.current?Re.current.rowCount-1:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:Re.current?Re.current.columnCount-1:0},[ue]),Vt=kt=>{Qe.current=_t(kt),fe(Qe.current,Je.current)},on=u.useCallback((kt,rn)=>{if(!Se.current)return;const fn=Se.current.getViewFromClient(kt,rn)?.getCellCoordsFromClient(kt,rn);return fn?(ue===Vr?fn.rowIndex=Re.current.getViewport().rowStart:fn.colIndex=Re.current.getViewport().colStart,fn):void 0},[]),Yt=u.useCallback((kt,rn=!1)=>{let fn=kt;return rn||(fn={...kt},ue===Ea?delete fn.colIndex:delete fn.rowIndex),Re.current?.scrollCellCoordsIntoView(fn)},[ue]),_n=wt(se,[se]),pn=wt(q,[q]),Mn=u.useMemo(()=>({onPointerDown:kt=>{if(!Se||!Se.current||kt.nativeEvent.defaultPrevented)return;const rn=on(kt.nativeEvent.clientX,kt.nativeEvent.clientY);if(!rn)return;kt.nativeEvent.which;const fn=kt.nativeEvent.shiftKey,zn=kt.nativeEvent.ctrlKey||kt.nativeEvent.metaKey;if(te?.(kt,rn)===!1)return;pn?.(),rt.current=!0;const $n=Re.current?.getViewFromClient(kt.nativeEvent.clientX,kt.nativeEvent.clientY),hn=(go=rn,bo=$n.getVisibleRangeCoords(),ue===Vr?{...go,rowIndex:bo.rowStart}:{...go,colIndex:bo.colStart});var go,bo;if(fn)Vt(rn);else{if(zn)return((Fo,tr=Fo,Tr)=>{Je.current=zt(Fo),Qe.current=_t(tr),_e(Je.current,Qe.current,Tr)})(rn,rn,hn),void(Q&&Yt(hn,!0));((Fo,tr=Fo,Tr)=>{Je.current=zt(Fo),Qe.current=_t(tr),me(Je.current,Qe.current,Tr)})(rn,rn,hn),Vt(rn),Q&&Yt(hn,!0)}},onPointerMoveOrWait:Qo.throttle(kt=>{if(!rt.current||!Se?.current)return;const rn=on(kt.clientX,kt.clientY);if(rn&&ie?.(kt,rn)!==!1){if(Wt.isEqualCells(At.current,rn))return Fe();Vt(rn),Yt(rn)}},60),onPointerUp:kt=>{rt.current=!1,_n?.(),pe?.(kt)},processTouch:!0,consumeTouch:!0}),[Le,Q,qe,W,Fe,te,pe]);return{onPointerDown:wt(Ts(Mn),[]),getCellCoordsFromClient:on}})({orientation:_,headerCount:I,gridRef:A,gridMainRef:o,newSelection:ee?.newSelection,modifySelection:ee?.modifySelection,appendSelection:ee?.appendSelection,clearSelections:ee?.clearSelections,pointerDownInterceptor:ae,onPointerUp:Y,onDragStart:Ie,onDragEnd:Me}),Ve=h.selection?.strokeFill;u.useEffect(()=>{if(!A.current)return void B(null);const Se=_===$.IRange.Orientation.Column,Re=n.getSelectedRuns(),ue=n.isProtected()?null:de,De=(W,Q,q)=>{if(q)return s.jsx("div",Se?{style:{position:"absolute",borderBottom:`${h.headerSelection.strokeWidth}px solid ${Ve}`,pointerEvents:"none",top:`${Rn.boundPixel(-h.headerSelection.strokeWidth/2)}px`,left:`${Rn.boundPixel(q.x-h.headerSelection.strokeWidth)}px`,width:`${Rn.boundPixel(q.width+h.headerSelection.strokeWidth+1,!0)}px`,height:a+h.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${h.headerSelection.strokeWidth}px solid ${Ve}`,pointerEvents:"none",top:`${Rn.boundPixel(q.y-h.headerSelection.strokeWidth)}px`,left:`${Rn.boundPixel(-h.headerSelection.strokeWidth/2)}px`,width:a+h.headerSelection.strokeWidth-.5+"px",height:`${Rn.boundPixel(q.height+h.headerSelection.strokeWidth+1,!0)}px`}},W)},Le=(W,Q,q)=>{const se={x:0,y:0,width:0,height:0};if(Se){const te=q.toClipBounds(q.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:W,colEnd:Math.min(I,Q)}),jr);if(!te)return;se.x=te.x,se.width=te.width}else{const te=q.toClipBounds(q.getRangeCoordsBounds({rowStart:W,rowEnd:Math.min(I,Q),colStart:0,colEnd:0}),jr);if(!te)return;se.y=te.y,se.height=te.height}return{x:se.x,y:se.y,width:se.width,height:se.height}};B([W=>{const Q=[];let q=null,se=Se?W.getVisibleColumns():W.getVisibleRows();const te=Se?W.getTotalRangeCoords().colStart:W.getTotalRangeCoords().rowStart;se.length>0&&se[0]>te&&(se=[se[0]-1,...se]);let ie=[];const pe=[];for(let qe=0;qe<se.length;qe++){const Je=se[qe],Qe=qe<se.length-1?se[qe+1]:Je+X(Je+1,!1)+1,rt=Je+1!==Qe;if(!q||q.max<Je)if(Re.length>0&&Re[Re.length-1].max>=Je){const _t=Jt.findEqualOrGreater(Re,Je,Vt=>Vt.max);q=Re[_t]}else q=null;let At=!1,zt=!1;if(q?.value&&(q.min<=Je||q.min<=Qe&&!rt)&&(At=!0,zt=q.value.isSelectedAll),Je===te){let _t=!1,Vt=!1;q?.value&&q.min<=Je&&(_t=!0,Vt=q.value.isSelectedAll),Je>0&&pe.push({index:Je-1,isNextHidden:rt,isSelected:_t,isSelectedAll:Vt,disabledResize:!0})}if(zt&&ie.push(pe.length),pe.push({index:Je,isHidden:qe===0&&X(Je,!1)>0,isNextHidden:rt,isSelected:At,isSelectedAll:zt,onDividerMouseDown:b,onDividerResizeStart:ve,onDividerResize:ue,onDividerMouseUp:w,onDividerResizeEnd:ye,onDividerAutoFit:be}),rt){let _t=!1,Vt=!1;if(q&&q.min>=Je&&q.max<=Qe-1&&q.value.isSelectedAll&&ie.push(pe.length),!(q?.value&&q.max>=Qe))if(Re.length>0&&Re[Re.length-1].max>=Qe){const on=Jt.findEqualOrGreater(Re,Qe,Yt=>Yt.max);q=Re[on]}else q=null;q?.value&&q.min<=Qe&&(_t=q.value.isSelected,Vt=q.value.isSelectedAll),Qe>0&&pe.push({index:Qe-1,isHidden:!0,isSelected:_t,isSelectedAll:Vt,onDividerMouseDown:b,onDividerResizeStart:ve,onDividerResize:ue,onDividerMouseUp:w,onDividerResizeEnd:ye,onDividerAutoFit:be})}}if(ie.length>0){let qe=ie.length-1;if(ie.length>0){const rt=pe[ie[qe]].index;let At=null;Se?(At=W.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:rt,colEnd:rt}),At.x+At.width>W.getBounds().width&&(qe-=1,qe===0&&(qe=-1))):(At=W.getRangeCoordsBounds({rowStart:rt,rowEnd:rt,colStart:0,colEnd:0}),At.y+At.height>W.getBounds().height&&(qe-=1,qe===0&&(qe=-1)))}const Je=Re?.[Re.length-1],Qe=W.getAnchor();if(Qe==="t"||Qe==="l"){const rt=pe[ie[Math.max(0,ie.length-1)]];rt.showTouchDivider=Je&&Je.max<=rt.index}else qe>=0&&(pe[ie[qe]].showTouchDivider=!0)}const{header:me,headerSelect:fe,headerSelectAll:_e,headerHover:Fe}=h??{};for(let qe=0;qe<pe.length;qe++)Q.push(s.jsx(Iz,{orientation:_,view:W,headerStyle:me,headerStyleSelect:fe,headerStyleSelectAll:_e,headerStyleHover:Fe,disabled:n.isProtected(),...pe[qe]},`divider${qe}`));return Q},W=>{const Q=[];for(let q=0;Re&&q<Re.length;q++)Q.push(De(`selection:${W.getAnchor()}:${q}`,0,Le(Re[q].min,Re[q].max,W)));return Q}])},[C,!0,Ve,h,ce,I,p,T,L]),u.useEffect(()=>{A.current?.invalidate()},[T]);const Ce=Te(Se=>d?d(Se):n.getTextAt(Se),[d,n]),je=Te(Se=>{const{header:Re,headerSelect:ue,headerSelectAll:De,headerHover:Le}=h??{},{range:W,key:Q,...q}=Se;return s.jsx(Bw,{orientation:_,index:_===$.IRange.Orientation.Column?W.colStart:W.rowStart,isSelected:H,isSelectedAll:ne,zoomScale:100*L,headerText:Ce,headerStyle:Re,headerStyleSelect:ue,headerStyleSelectAll:De,headerStyleHover:Le,verticalPadding:f,horizontalPadding:g,...q},Q)},[T,I,h,L,n]),Ge=Hi(),Be=u.useMemo(()=>{const Se="white",Re="black",ue={};if(Rn.detectIt().primaryInput!=="touch"){let De=_===$.IRange.Orientation.Column?`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${Re}' fill='${Se}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer`:`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${Re}' fill='${Se}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;Ge.getMode()?.key==="formatPainter"&&(De=`url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='${Re}' fill='${Se}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),ue.cursor=De}return ue.backgroundColor=h?.header?.fill||"transparent",ue},[_,T,Ge,h]),ct=ir(t,()=>({scrollTo:Se=>{A.current?.scrollTo(Se)},forceRender:()=>{j()},getGridElement:()=>A.current}),[]),Ye=u.useCallback(Se=>{ot.onPointerDown(Se)},[ot]),he=u.useCallback(Se=>{const Re=ot.getCellCoordsFromClient(Se.clientX,Se.clientY);if(!Re||!m)return;const ue=_===$.IRange.Orientation.Column;m({originalEvent:Se,clientX:Se.clientX,clientY:Se.clientY,rowIndex:ue?-1:Re.rowIndex,colIndex:ue?Re.colIndex:-1}),Se.stopPropagation(),Se.preventDefault()},[ot,m]),Ze=u.useMemo(()=>{const Se=_===$.IRange.Orientation.Column;return s.jsx("div",{ref:ct,children:s.jsx(P2,{className:"sheet-header",style:Be,ref:A,scrollPoint:z,columnCount:Se?I:1,rowCount:Se?1:I,width:Se?l:a,height:Se?a:c,freezeLeft:Se?p:void 0,freezeTop:Se?void 0:p,hiddenColumnsAt:Se?X:void 0,hiddenRowsAt:Se?void 0:X,showGridLines:!1,layout:ce,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:he,onPointerDown:Ye,zoom:L,cellRenderer:je,overlays:F})})},[F,ce,l,c,z,Be,C]);return u.useEffect(()=>{O.current=!1,A.current?.invalidate(),k()},[n,h]),Ze})),Xz=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,a=Te((d,p)=>d.getStyle().getBorder(),[]),{overlay:l}=Kw({getVisibleCells:r,getBorderAt:a,darkMode:i.body.darkMode,shiftIfWide:!0}),c=l(n);return c&&n?c:null})),Yz={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},Jz={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},Qz={type:$.ICell.Content.Values},eF={fitDestination:!0,type:$.ICell.Content.Formats},tF={fitDestination:!0,type:$.ICell.Content.Formulas},nF={transpose:!0},oF={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},rF=u.memo(u.forwardRef((e,t)=>{const{view:n,element:o,sheet:r,gridStyle:i,commands:a,notifier:l}=e,c=i.body??{},d=r.getView(),{overlays:p}=(({element:h,sheet:f,sheetView:g,commands:m,onClipboardUpdate:y,onPaste:x,selectionRenderer:v=Iw,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:w="rgb(33, 115, 70)",copyBackgroundColor:E="white",cutBackgroundColor:S="white",notifier:R,..._})=>{const A=Te(v,[v]),T=u.useRef(null),j=Hi(),C=j.getMode(),k=u.useMemo(()=>({element:h,doCopy:L=>{const D=f.getSelectedRanges().getSnapshot(L);return new $.RangeClipboardItem(D)}}),[f,g,h]),P=u.useMemo(()=>({element:h,importFromExternal:async(L,D)=>{const F=new $.ExternalRangeClipboardItem(L,D,f.getStyles(),f.isDate1904());return await F.parse()?F:null},doPaste:async(L,D)=>{if(L?.getItemType()!=="range")return;D?.contentsOnly&&delete(D={...D,type:$.ICell.Content.Values}).contentsOnly;const F=f.getSelectedRange(),B=L.getItem(),M=B.getName();return await F.doBatch(async()=>{const N=await F.copyFrom(B,D);!N||N.isEntireRows()||N.isEntireColumns()||N.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(M?` ${M}`:""),autoSelect:!0}),!0}}),[f,g,R,h]),{clipboard:O,...I}=ib({..._,source:k,commands:m,target:P,notifier:R,onClipboardUpdate:L=>{const D=L?.getItemType()==="range"?L:null;if(D){const F=L.editMode?.(),B={...L?.isCut?.()?Jz:Yz,...F,args:{isClipboard:!0,...F?.args},onModeChange:M=>{M?.args?.isClipboard||O.clear(!0),F?.onModeChange?.(M)}};j.setMode(B)}T.current=D,y?.(D)},onPaste:(L,D)=>{if(L?.getItemType()!=="range")return;let F=j.getMode()?.key==="cut"||L.isCut?.();if(!F&&j.getMode()?.key==="copy"){const B=L.getItem().getCoords(),M=f.getSelectedRanges().getCoords();let N=!1;if(!N&&B&&M&&L.getItem().getSource?.()===f)for(let V=0;!N&&V<M.length;V++)N=Go.isRangesIntersect(B,M[V]);F=N}F&&j.setMode(null),h?.()?.focus(),x?.(L,D)}});u.useMemo(()=>{const L=h;if(!m)return;const D=[new He("pasteValues",L,{label:"Paste Values",scopedLabels:{paste:"Values"},description:`Paste only the values of the selected cells.
|
|
195
|
+
|
|
196
|
+
The formatting is not applied.`,shortcut:{key:"V",modifiers:[$e.Ctrl,$e.Shift]}}),new He("pasteFormats",L,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
|
|
197
|
+
|
|
198
|
+
The content is not applied.`}),new He("pasteFormulas",L,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new He("pasteTranspose",L,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new He("pasteLinks",L,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];m.addCommands(D,!0)},[m,h]),u.useEffect(()=>{if(!m)return;const L={disabled:!f.getProtection().isFormatCellsAllowed()};m.getCommand("pasteValues").updateCallback(D=>I.paste({...Qz,...D})).update(L),m.getCommand("pasteFormats").updateCallback((D,F)=>I.paste({...eF,description:F.label(),...D})).update(L),m.getCommand("pasteFormulas").updateCallback((D,F)=>I.paste({...tF,description:F.label(),...D})).update(L),m.getCommand("pasteTranspose").updateCallback((D,F)=>I.paste({...nF,description:F.label(),...D})).update(L),m.getCommand("pasteLinks").updateCallback((D,F)=>I.paste({...oF,description:F.label(),...D})).update(L),m.getCommand("cut").update(L),m.getCommand("paste").update(L)},[f,m]);const z=u.useMemo(()=>{if(!C||!T.current)return;const L=C.key;if(L!=="copy"&&L!=="cut"&&L!=="formatPainter")return;const D=T.current.getItem();if(D.getSource()!==f)return;const F=T.current.isCut?.(),B=F?S:E,M=F?w:b,N=D.getCoords(),V=N?[N]:null;return V&&V.length!==0?U=>{const J=[];for(let X=0;X<V.length;X++){const H=V[X],ne=U.toClipBounds(U.getRangeCoordsBounds(H,{top:0,left:0,right:1,bottom:1}),jr);ne&&(J.push(A({range:H,key:`copy-selection-background-${X}`,x:ne.x,y:ne.y,width:Math.max(ne.width,0),height:Math.max(ne.height,0),stroke:B,strokeWidth:2})),J.push(A({range:H,key:`copy-selection-foreground-${X}`,x:ne.x+(ne.width<=2?-1:0),y:ne.y,width:Math.max(ne.width,3),height:Math.max(ne.height,3),stroke:M,strokeWidth:2,isAnimatedStroke:!0})))}return J}:null},[C,f,g,b,E,w,S]);return{...I,clipboard:O,overlays:z}})({element:o,sheet:r,sheetView:d,commands:a,copyForegroundColor:i.selection.strokeFill,copyBackgroundColor:c.fill,cutForegroundColor:i.selectionRemove.strokeFill,cutBackgroundColor:c.fill,notifier:l});return sn(r?.getSelection(),{onChange(h){}}),u.useEffect(()=>{n?.getStage()},[n?.getStage()]),p&&n?p(n):null})),iF={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},aF={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},lF={key:"dragCopy",description:"Drag selection to copy cell contents."},sF={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},ig=(e,t)=>t.ctrlKey&&t.shiftKey?sF:t.ctrlKey?lF:t.shiftKey?aF:iF,cF={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},dF=u.memo(u.forwardRef((e,t)=>{const{view:n,commands:o,className:r,onFirstRender:i,notifier:a,onShowTooltip:l,onCloseTooltip:c,sheet:d,gridRef:p,gridStyle:h,isActive:f,editingCoords:g,...m}=e,y=n?.getBounds(),x=Te(l,[l]),v=Te(c,[c]),[b,w]=u.useState(()=>d?.getSelection().getCoords()),E=Te(de=>{Go.isEqualSelectionCoords(de,b)||d&&d.getSelection().updateCoords(de)},[d,b]),S=Hi(),R=u.useRef(null),[_,A]=u.useState(d?.getProtection().isLocked()),[T,j]=u.useState(d?.getView().getMovableSelection().length>0),C=Rn.detectIt().primaryInput==="touch",k=!C&&f,P=g!==null||T,O=Te(de=>{const ye=Go.cellToRange(de);if(d.isClosed())return ye;const ve=d.getRange(ye,{excludeHidden:!0}).getMerges();return ve.length===0?ye:ve[0]},[d]),I=Te((de,ye,ve,be,re,ce)=>{const we=d.getSelectedRange().getExtended(be,de).getCoords();switch(be){case $.IRange.Direction.Up:return we.rowStart;case $.IRange.Direction.Down:return we.rowEnd;case $.IRange.Direction.Left:return we.colStart;case $.IRange.Direction.Right:return we.colEnd}},[d]),z=Te(()=>{const de=d.getUsedRange()?.getCoords(),ye=d.getRowHeaders().getUsedRange()?.getCoords(),ve=d.getColumnHeaders().getUsedRange()?.getCoords();return{...de,colEnd:Math.max(de?.colEnd??0,ve?.max??0),rowEnd:Math.max(de?.rowEnd??0,ye?.max??0)}},[d]),L=Te((de,ye)=>d.getRowHeaders().hiddenHeadersAt(de,ye),[d]),D=Te((de,ye)=>d.getColumnHeaders().hiddenHeadersAt(de,ye),[d]),F=Te(de=>d.getRange(de,{excludeHidden:!0}).getMerges(),[d]),B=Te(de=>{d?.getSelection().setAdjusting(de)},[d]),M=Te(async()=>{d?.getSelection().setAdjusting(null),S.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),S.setMode(null))},[S,b,d,o]),N=u.useMemo(()=>{const de=S.getMode();return de?.key==="cut"||de?.key==="copy"},[S]);sn(d?.getView(),{onMovableSelectionChange:()=>{j(d.getView().getMovableSelection().length>0)}}),sn(d?.getSelection(),{onChange(de){const ye=d.getSelection().getCoords();w(ye)}}),sn(d,{onProtectionChange:()=>{A(d.getProtection().isLocked())}});const{body:V={}}=h||{},U=n.getLayout(),J=!(k&&b.ranges.length<=1&&g===null&&!_&&(!S.getMode()||N)),{overlay:X,onPointerDown:H}=zw({gridRef:p,commands:o,layout:U,getCellCoordsAsRangeCoords:O,selection:b,fillHandleBorderColor:V.fill,selectionBackgroundColor:f?h.selection.fill:h.selectionInactive.fill,selectionBorderColor:f?h.selection.strokeFill:h.selectionInactive.strokeFill,selectionRemoveBackgroundColor:f?h.selectionRemove.fill:h.selectionInactive.fill,selectionRemoveBorderColor:f?h.selectionRemove.strokeFill:h.selectionInactive.strokeFill,disableFillDrag:J,disableMoveDrag:C||!(f&&b.ranges.length<=1&&g===null&&!_),disableTouchSelection:P,onSelectionChange:E,onSelectionDragStart:B,onSelectionDragEnd:M,onMoveDragStart:(de,ye,ve)=>{S.setMode(ig(0,ve))},onMoveDragUpdate:(de,ye,ve)=>{S.setMode(ig(0,ve))},onMoveDragEnd:(de,ye)=>{S.setMode(null)},onMoveDragDone:async(de,ye,ve)=>{if(Go.isEqualRanges(de,ye))return;const be=d.getRange(ye);if(a?.showOptions){const Y=be.getDifferences(de);let le=!1;for(let ee=0;!le&&ee<Y.getCount();ee++)le=Y.at(ee).isContentful();if(le&&await a?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const re=!ve.ctrlKey,ce=ve.shiftKey,we=ce?re?"Insert Moved Cells":"Insert Copied Cells":re?"Move Cells":"Copy Cells",ae=await a?.showBusy?.(we);try{const Y=d.getRange(de);await be.doBatch(async()=>{ce?await be.insertFrom(de,{isCut:re,undoRange:Y}):await be.copyFrom(de,{isCut:re,undoRange:Y}),Y.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0}),be.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0})},{description:we,autoSelect:!0})}catch(Y){a?.showError?.(Y)}finally{ae?.()}},contentfulCellFinder:I,hiddenRowsAt:L,hiddenColumnsAt:D,mergedRanges:F,getDataCoords:z,canSelectionSpanMergedCells:de=>{const ye=d.getRange(de);return ye.isEntireColumns()||ye.isEntireRows()},onFill:async(de,ye)=>{const ve="Auto Fill",be=await a?.showBusy?.(ve);try{await d.doBatch(()=>{d.getRange(de).autoFill(ye),d.getRange(ye).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:ve,autoSelect:!0})}catch(re){a?.showError?.(re)}finally{R.current=null,be?.()}},onFillPreview:(de,ye,ve)=>{if(p.current&&x){S.setMode(cF);try{R.current?.direction!==ve&&(R.current=null,d.getRange(de).autoFill(ye,{previewOnly:ee=>{R.current={callback:ee,direction:ve}}}));const be=R.current?.callback?.(ye);if(!be||be.isEmpty())return;const re=be.toText();if(!re)return;const ce=Go.cellToRange(be.getCoords()),we=n.getRelativePointFromClient(0,0);let ae=0,Y=0,le=up;if(ve===$.IRange.Direction.Down){ae=U.getColOffset(ce.colEnd+1)-we.x;const ee=U.getRowOffset(ce.rowEnd),Ie=U.getRowOffset(ce.rowEnd+1);Y=Ie-(Ie-ee)/2-we.y,le=V5}else if(ve===$.IRange.Direction.Right){Y=U.getRowOffset(ce.rowEnd+1)-we.y;const ee=U.getColOffset(ce.colEnd),Ie=U.getColOffset(ce.colEnd+1);ae=Ie-(Ie-ee)/2-we.x,le=up}else if(ve===$.IRange.Direction.Up){ae=U.getColOffset(ce.colEnd+1)-we.x;const ee=U.getRowOffset(ce.rowStart),Ie=U.getRowOffset(ce.rowStart+1);Y=Ie-(Ie-ee)/2-we.y,le=V5}else if(ve===$.IRange.Direction.Left){Y=U.getRowOffset(ce.rowEnd+1)-we.y;const ee=U.getColOffset(ce.colStart),Ie=U.getColOffset(ce.colStart+1);ae=Ie-(Ie-ee)/2-we.x,le=up}x({anchor:{x:ae,y:Y},display:re,placement:le})}catch(be){a?.showError?.(be)}}},onFillDone:()=>{R.current=null,S.setMode(null),v?.()}}),ne=Te(de=>{H(Rn.createSyntheticEvent(de))},[H,g]);u.useEffect(()=>{const de=n?.getStage();if(de)return de.addEventListener("pointerdown",ne),()=>{de.removeEventListener("pointerdown",ne)}},[n?.getStage()]);const oe=ir(t,()=>({}),[]),ge=u.useRef(null);return s.jsx("div",{className:Zr(r,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:y?.width,height:y?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:r0([oe,ge]),...m,children:X(n)})})),Sd=Object.freeze({x:0,y:0,width:0,height:0}),uF={fireOnModelChange:!1},pF=u.memo(u.forwardRef((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:a,onHide:l,onShow:c,onUnFocus:d,isDragging:p,updateFrameBounds:h,dragStart:f,style:g,disabled:m,renderMovable:y,...x}=e,[v,b]=u.useState(Sd),[w,E]=u.useState(null),[S,R]=u.useState(!1),_=u.useRef(null);u.useLayoutEffect(()=>{if(r.isClosed())return;const T=r.getBounds();if(!T)return;const j=o.toViewBounds(T);b(j??Sd),h(j??Sd)},[o?.getBounds()]),sn(r,{onBoundsChange:T=>{const j=T.getBounds();if(!j)return;const C=o.toViewBounds(j);b(C??Sd),h(C)},onSelectionChange:()=>{const T=Jt.hasFocus(_.current,!0);!S&&!T||r.isSelected()||d()}}),sn(r,{onRequestFocus:()=>Jt.whenFocus(_.current,!0)},uF),u.useEffect(()=>{const T=_.current;return i(T),()=>{a(T)}},[]);const A=u.useMemo(()=>{if(!v)return null;let{width:T,height:j}=v;return y({view:o,movable:r,disabled:m,isDragging:p,style:{position:"relative",left:0,top:0,width:T,height:j},onHide:l,onShow:c})},[o,r,v.width,v.height,m,p]);return s.jsx("div",{className:"movable",tabIndex:0,ref:r0([_,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:v.x,top:v.y,width:v.width,height:v.height,...g},onMouseDown:async T=>{const j=T.shiftKey||T.ctrlKey,C=r.isSelected(),k=T.currentTarget;j&&C?r.unselect():(C&&!j||await r.select({addToSelection:j}),f(T.nativeEvent,k),k.focus())},onFocus:T=>{T.relatedTarget&&!w&&E(T.relatedTarget),R(!0)},onBlur:T=>{w&&!_?.current?.contains(T.relatedTarget)&&E(null),T.relatedTarget&&R(!1)},...x,children:A})})),hF=u.memo(u.forwardRef((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:a,onUnFocus:l,onFocus:c,disabled:d=!1,disableDrag:p=!1,disableResize:h=!1,className:f,style:g,renderDirections:m=["nw","n","ne","w","e","sw","s","se"],onFirstRender:y,...x}=e,v=n.getBounds(),b=Te(y,[y]),w=Te(l,[l]),E=Te(c,[c]),[S,R]=u.useState([]),[_,A]=u.useState(!1),[T,j]=u.useState(!1),C=u.useRef(!0),k=u.useRef(new Map),P=u.useRef(new Map),O=u.useRef(new Map),I=u.useRef(new Map),z=u.useRef(new Map),L=u.useRef({onRequestFocus:Ce=>(ve(Ce),null)}),D=u.useRef(null),F=u.useRef(null),B=u.useRef(null),[M,N]=u.useReducer(Ce=>Ce+1,0);u.useLayoutEffect(()=>{N()},[n,o]),sn(o,{onCollectionChange:()=>{const Ce=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),je=z.current;je.forEach(Be=>{Be()}),je.clear();const Ge=L.current;for(let Be=0;Be<Ce.length;Be++){const ct=Ce[Be];if(ct.isClosed())continue;const Ye=ct.addListeners(Ge);je.set(ct,Ye)}N()},onInvalidated:()=>{N()}}),sn(r,{onMovableSelectionChange(Ce){U(),N()}});const V=u.useCallback((Ce,je)=>{const Ge=O.current.get(Ce);B.current&&(B.current.getTargets().forEach(Be=>{if(Be===Ge)return Be.style.left=je.x+"px",Be.style.top=je.y+"px",Be.style.width=je.width+"px",void(Be.style.height=je.height+"px")}),B.current.updateRect())},[]),U=()=>{const Ce=[],je=r.getMovableSelection();je.forEach(Ge=>{const Be=O.current.get(Ge);Be&&je.indexOf(Ge)!==-1&&Ce.push(Be)}),R(Ge=>Jt.isEqualArrays(Ge,Ce)?Ge:Ce)},J=u.useRef(null),X=u.useMemo(()=>new Promise(Ce=>{J.current=Ce}),[]),H=u.useRef(null),ne=Te(async(Ce,je)=>{H.current=je,await(async()=>!(!await X.then()||!B.current))()&&H.current===je&&B.current.dragStart(Ce,je)},[S]),[oe,ge]=u.useState(!1),de=u.useRef(null),ye=u.useRef(null),ve=Te(async(Ce=null)=>{if(Ce||(Ce=r.getMovableSelection()[0]),!Ce)return w?.(),!1;const je=O.current.get(Ce);je?(await Jt.whenFocus(je),je.focus(),ye.current=je,de.current=null):de.current=Ce},[r]);u.useEffect(()=>{oe&&S.length>0&&ye.current!==S[0]&&ve(),C.current&&(b?.(),C.current=!1)},[S]);const be=u.useMemo(()=>{const Ce=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(Ce.length===0&&k.current.size===0)return null;const je=(he,Ze,Se,Re=!0)=>{const ue=he.isSelected(),De={tabIndex:Se,view:n,movable:he,onRefLoad:Le=>{de.current===he&&(Le.focus(),ye.current=Le,de.current=null),O.current.set(he,Le),P.current.set(Le,he),Ze.rendered=!0,U()},onRefUnload:Le=>{O.current.delete(he),P.current.delete(Le),Ze.rendered=!1,U()},onUnFocus:w,onHide:Le=>{Ze.onHide=Le},onShow:Le=>{Ze.onShow=Le},isDragging:ue&&(T||_),disabled:d,renderMovable:i,updateFrameBounds:Le=>{V(he,Le)},dragStart:ne,onMouseUp:()=>{if(H.current=null,F.current){A(!1),j(!1);let Le=!1;I.current?.forEach(W=>{Jt.isEqualBounds(W.movable.getBounds(),W.startBounds)||(Le=!0)}),Le?ce():we()}},style:{opacity:Re?_&&ue?.7:void 0:0,zIndex:_&&ue?he.getZIndex()+Ce.length:void 0,pointerEvents:Re?void 0:"none",cursor:T&&ue?"grabbing":d||p?"initial":"move",boxShadow:!ue||T&&!_?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(pF,{...De},`movable-${he.getUUID()}`)},Ge=k.current,Be=new Map,ct=[];for(let he=0;he<Ce.length;he++){const Ze=Ce[he];if(Ze.isClosed())continue;let Se=Ge.get(Ze);Se||(Se={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(Re,ue)=>{if(!ue||ue.shown===!0)return;ue.shown=!0;const De=++ue.visibilityRequestId;requestAnimationFrame(()=>{const Le=k.current.get(Re);Le&&De===ue.visibilityRequestId&&(ue.onShow?.(Re),Le.shown=!0)})},doHide:async(Re,ue)=>{if(!ue||ue?.shown===!1)return;ue.shown=!1;const De=++ue.visibilityRequestId,Le=await Promise.resolve(ue.onHide?.(Re));De===ue.visibilityRequestId&&Le!==!1&&(ue.shown=!1,k.current.delete(Re),N())},visibilityRequestId:0}),Se.frame=je(Ze,Se,he,!0),ct.push(Se.frame),Se.doShow(Ze,Se),Ge.delete(Ze),Be.set(Ze,Se)}const Ye=[];return r.getMovableSelection().forEach(he=>{const Ze=Ge.get(he);Ze&&(Ze.frame=je(he,Ze,-1,!1),Ye.push(Ze.frame),Ge.delete(he),Be.set(he,Ze))}),Ge.forEach((he,Ze)=>{he.frame=je(Ze,he,-1,!1),Ye.push(he.frame),he.doHide(Ze,he),Ge.delete(Ze),Be.set(Ze,he)}),k.current=Be,U(),[...Ye,...ct]},[M,n,i,d,p,h,_,T]),re=Te((Ce,je)=>{const Ge=`${je} ${S.length===1?$.TextUtils.capitalize(P.current?.get(S[0]).getContent().getType()):"Drawings"}`;F.current&&(console.warn(`Transaction ${F.current.getDescription()} is being replaced by ${Ge}`),F.current.rollback(),F.current=null),F.current=a.beginCommit({description:Ge}),I.current.clear();for(let Be=0;Be<S.length;Be++){const ct=S[Be],Ye=P.current?.get(ct);Ye?I.current.set(ct,{movable:Ye,startBounds:n.toViewBounds(Ye.getBounds())}):console.warn("invalid element",Ye)}},[a,n,S]),ce=u.useCallback(()=>{if(!F.current)return;const Ce=[];I.current?.forEach(je=>{Ce.push(je.movable)}),F.current.commit({viewAfter:{view:r,movableSelection:Ce}}),I.current.clear(),F.current=null},[]),we=u.useCallback(()=>{F.current&&(F.current.rollback(),F.current=null)},[]),ae=u.useRef(null);u.useEffect(()=>{ae.current&&(ae.current.onscroll=Ce=>{Ce.preventDefault(),Ce.srcElement.scrollTop=0,Ce.srcElement.scrollLeft=0})},[ae.current]);const Y=ir(t,()=>({isMovableArea:()=>!0,focusMovable:ve,focus:()=>{ve()}}),[r]),[le,ee]=u.useState(null),Ie=u.useRef(!1),Me=u.useRef(!1),ot=u.useRef(!1);u.useEffect(()=>{if(d||S.length===0||ot.current||Ie.current)return;if(Me.current)return void requestAnimationFrame(()=>{B.current&&D.current&&B.current.refTargets.length>0&&(ot.current=!0,J.current?.(!0)),R([...S])});Ie.current=!0;const Ce=u.lazy(async()=>{try{const je=await Promise.resolve().then(()=>require("./Bg9KIoDuqtkhIYfN.cjs"));return Ie.current=!1,Me.current=!0,R([...S]),je}catch(je){return console.warn(je),J.current?.(!1),null}});ee(Ce)},[S,d,p,h]);const Ve=u.useMemo(()=>!le||d?null:s.jsx(u.Suspense,{children:s.jsx(le,{className:Zr({dragging:_||T,resizing:_,moving:T}),container:null,ref:B,target:B.current?S:[],draggable:!d&&!p,resizable:!d&&!h,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:m,onResizeStart:Ce=>{re(Ce.target,"Resize")},onResize:Ce=>{if(!F.current)return Ce.stopDrag(),void N();A(!0);const je=Ce.direction[0]!==0&&Ce.direction[1]!==0;let Ge=0,Be=0;for(let ct=0;ct<S.length;ct++){const Ye=S[ct],he=I.current.get(Ye),Ze=P.current.get(Ye);if(!he||!Ze){console.warn("invalid element");continue}let Se=Ce.dist[0],Re=Ce.dist[1],ue=Ce.drag.dist[0],De=Ce.drag.dist[1],Le=he.startBounds.width,W=he.startBounds.height;ct===0?(Ge=Le,Be=W):(Se*=Le/Ge,ue*=Le/Ge,Re*=W/Be,De*=W/Be);const Q={...he.startBounds};if(Q.width=Math.max(0,Le+Se),Q.height=Math.max(0,W+Re),Ce.direction[0]===-1&&(Q.width=Math.max(0,Math.min(he.startBounds.x+Le,Le-ue))),Ce.direction[1]===-1&&(Q.height=Math.max(0,Math.min(he.startBounds.y+W,W-De))),je&&(Ze.isLockAspectRatio()||Ce.inputEvent?.shiftKey)){const q=Le/W,se=Q.width/Q.height;se>q?Q.height=Q.width/q:se<q&&(Q.width=Q.height*q)}Ce.direction[0]===-1&&(Q.x=Math.max(0,Math.min(he.startBounds.x+Le,he.startBounds.x+Le-Q.width))),Ce.direction[1]===-1&&(Q.y=Math.min(he.startBounds.y+W,he.startBounds.y+W-Q.height)),he.movable.setBounds(n.toAbsoluteBounds(Q))}},onResizeEnd:Ce=>{A(!1),ce()},onDragStart:Ce=>{re(Ce.target,"Move")},onDrag:Ce=>{if(!F.current)return Ce.stopDrag(),void N();j(!0);for(let je=0;je<S.length;je++){const Ge=S[je],Be=I.current.get(Ge);Be?Be.movable.setBounds(n.toAbsoluteBounds({...Be.startBounds,x:Be.startBounds.x+Ce.translate[0],y:Be.startBounds.y+Ce.translate[1]})):console.warn("invalid element")}},onDragEnd:Ce=>{},onMouseUp:Ce=>{}})}),[M,le,S,n,d,p,h,_,T]);return s.jsx("div",{className:Zr(f,"movable-area","_movable-area_314c6_5"),style:{width:v.width,height:v.height,...g,position:"absolute",overflow:"hidden",willChange:"transform"},ref:r0([Y,ae]),...x,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:v.width,height:v.height},...x,children:s.jsxs("div",{ref:D,style:{position:"absolute",pointerEvents:"auto"},onFocus:Ce=>{E?.(),ge(!0)},onBlur:Ce=>{ge(!1)},onKeyDownCapture:Ce=>{if(Ce.isDefaultPrevented())return;const je=Ce.nativeEvent.ctrlKey,Ge=Ce.nativeEvent.altKey,Be=Ce.nativeEvent.shiftKey;if(Ce.which===nn.Escape){const Se=r.getMovableSelection();let Re=[...Se];return S.forEach(ue=>{if(Re.length===0)return;const De=P.current.get(ue);let Le=Re.indexOf(De);Re.splice(Le,1)}),Re.length!==Se.length&&r.selectMovables(Re),Re.length===0&&w?.(),void Ce.preventDefault()}const ct=.1,Ye=Se=>{o.updateSelected(Re=>{Re.setRotation(Re.getRotation()+Se)},"Rotate")},he=(Se,Re=!0)=>{o.updateSelected(ue=>{const De=ue.getBounds();let Le=1+Se;Re||(Le=1/Le);const W=Math.sqrt(Math.pow(De.width,2)+Math.pow(De.height,2)),Q=Math.atan2(De.height,De.width),q=Le*W;if(q<10)return;const se=q*Math.cos(Q),te=q*Math.sin(Q),ie={x:De.x+(De.width-se)/2,y:De.y+(De.height-te)/2,width:se,height:te};ue.setBounds(ie)},"Resize")},Ze=Se=>{o.updateSelected(Re=>{const ue=Re.getBounds(),De={x:ue.x+(Se.x??0),y:ue.y+(Se.y??0),width:ue.width+(Se.width??0),height:ue.height+(Se.height??0)};Re.setBounds(De)},"Nudge")};if(Ce.which===nn.Delete)o.updateSelected(Se=>{Se.delete()},"Delete"),Ce.preventDefault();else if(Ce.key==="a"&&je){const Se=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(Se,!0),Ce.preventDefault()}else Ce.key==="ArrowLeft"?(Be?he(ct,!1):Ge?Ye(-10):Ze({x:je?-10:-1}),Ce.preventDefault()):Ce.key==="ArrowRight"?(Be?he(ct,!0):Ge?Ye(10):Ze({x:je?10:1}),Ce.preventDefault()):Ce.key==="ArrowUp"?(Be?he(ct,!0):Ze({y:je?-10:-1}),Ce.preventDefault()):Ce.key==="ArrowDown"&&(Be?he(ct,!1):Ze({y:je?10:1}),Ce.preventDefault())},children:[be,Ve]})})})})),os=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,o=0,r=0;for(let i=0;i<e.length;i++){const a=e[i].getBounds();t=Math.min(a.x,t),n=Math.min(a.y,n),o=Math.max(a.x+a.width,o),r=Math.max(a.y+a.height,r)}return{x:t,y:n,width:o-t,height:r-n}},ag=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let a=0,l=Number.MAX_SAFE_INTEGER,c=0;for(let h=0;h<e.length;h++){const f=e[h],g=f.getBounds();a+=g[i],l=Math.min(g[o],l),c=Math.max(g[o]+g[i],c),n.push({bounds:g,movable:f})}const d=(c-l-a)/(e.length-1);n.sort((h,f)=>{const g=h.bounds[o],m=f.bounds[o];return g!==m?g-m:h.bounds[r]-f.bounds[r]});const p=new Map;p.set(n[0].movable,n[0].bounds);for(let h=1;h<n.length-1;h++){const f=n[h-1].bounds,g={...n[h].bounds};g[o]=f[o]+f[i]+d,n[h].bounds=g,p.set(n[h].movable,g)}return p.set(n[n.length-1].movable,n[n.length-1].bounds),p},fF=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:a,onHide:l,onShow:c,...d}=e;u.useEffect(()=>{},[r]);const p=ir(t,()=>({isEmptyFrame:()=>!0}),[]),[h,{height:f,width:g}]=Vl();return s.jsx("div",{...d,ref:r0([p,h]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:i.getZoom(),display:"flex",position:"relative",filter:o?"blur(1px)":void 0,boxShadow:a?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:r})})})})),mF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:a,target:l,notifier:c,onRepeatCommandChange:d}=e,p=function(f){const{movables:g,movablesView:m,transactional:y,commands:x,target:v,onRepeatCommandChange:b,notifier:w}=f,E=Hi();u.useRef(E.getMode()).current=E.getMode();const S=Te(async(I,z,L=null,D=!0)=>{const F=async()=>{const B=await Promise.resolve(w?.showBusy?.(I.label()));try{await z();const M=L??I?.label?.();if(b){let N=null;I&&M!==!1&&(N=new Tt(I.key(),v,{label:M,description:M},F)),b(N)}B?.(),D&&E.setMode(null)}catch(M){B?.(),w?.showError?.(M)}};await F()},[b,w]),[R,_]=u.useReducer(I=>I+1,0),A=Te((I,z,L)=>{if(!m)return;const D=m.getMovableSelection();if(D.length===0)return;let F="Drawings";if(D.length===1){const M=D[0];F=$.TextUtils.capitalize(M.getContent().getType())??"Drawing"}const B=`${I.label()} ${F}`;S(I,()=>{let M=null;y&&(M=y.beginCommit(B));const N=m.getMovableSelection();if(N.length===0)return;const V=L?.(N);for(let U=0;U<N.length;U++){const J=N[U];z(J,V)}M?.commit()})},[m,y]),[T,j]=u.useState(m.getMovableSelection()[0]??null),[C,k]=u.useState(!T||T?.isProtected()),P=u.useMemo(()=>[new He("moveToFront",v,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[$e.Ctrl,$e.Shift]}},function(){A(this,I=>{I.moveToFront()})}),new He("moveForward",v,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[$e.Ctrl]}},function(){A(this,I=>{I.moveForward()})}),new He("moveToBack",v,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[$e.Ctrl,$e.Shift]}},function(){A(this,I=>{I.moveToBack()})}),new He("moveBackward",v,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[$e.Ctrl]}},function(){A(this,I=>{I.moveBackward()})}),new He("toggleLockAspectRatio",v,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){A(this,I=>{I.setLockAspectRatio(!I.isLockAspectRatio())})}),new He("formatAnchorTypeTwoCell",v,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){A(this,I=>{I.setAnchorType($.IAnchored.Type.TwoCell)})}),new He("formatAnchorTypeOneCell",v,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){A(this,I=>{I.setAnchorType($.IAnchored.Type.OneCell)})}),new He("formatAnchorTypeAbsolute",v,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){A(this,I=>{I.setAnchorType($.IAnchored.Type.Absolute)})}),new He("formatDrawAlignLeft",v,{label:"Align Left",description:"Align the selected drawings to the left."},function(){A(this,(I,z)=>{I.setBounds({x:z.x})},os)}),new He("formatDrawAlignCenter",v,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){A(this,(I,z)=>{I.setBounds({x:(z.width-I.getBounds().width)/2+z.x})},os)}),new He("formatDrawAlignRight",v,{label:"Align Right",description:"Align the selected drawings to the right."},function(){A(this,(I,z)=>{I.setBounds({x:z.width-I.getBounds().width+z.x})},os)}),new He("formatDrawAlignTop",v,{label:"Align Top",description:"Align the selected drawings to the top."},function(){A(this,(I,z)=>{I.setBounds({y:z.y})},os)}),new He("formatDrawAlignMiddle",v,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){A(this,(I,z)=>{I.setBounds({y:(z.height-I.getBounds().height)/2+z.y})},os)}),new He("formatDrawAlignBottom",v,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){A(this,(I,z)=>{I.setBounds({y:z.height-I.getBounds().height+z.y})},os)}),new He("formatDrawDistributeHorz",v,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){A(this,(I,z)=>{I.setBounds(z.get(I))},I=>ag(I))}),new He("formatDrawDistributeVert",v,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){A(this,(I,z)=>{I.setBounds(z.get(I))},I=>ag(I,!1))}),new He("formatDrawFlipHorz",v,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new He("formatDrawFlipVert",v,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new He("formatDrawGroup",v,{label:"Group",description:"Group the selected drawings into a single drawing."}),new He("formatDrawUngroup",v,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new He("formatDrawSwapShapes",v,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new He("formatDrawSwapShapesHorz",v,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new He("formatDrawSwapShapesVert",v,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[m,T]);u.useEffect(()=>{},[E]);const O=u.useMemo(()=>{let I=null;return I=x?x.createChildGroup(v,"movable",!1):new e0(v,"movable"),I.addCommands(P,!0),I},[x,P]);return sn(T,{onAnyChange:()=>{O.getCommand("formatAnchorTypeTwoCell").update({state:T?.getAnchorType()===$.IAnchored.Type.TwoCell}),O.getCommand("formatAnchorTypeOneCell").update({state:T?.getAnchorType()===$.IAnchored.Type.OneCell}),O.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),O.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),O.getCommand("toggleLockAspectRatio").update({state:T?.isLockAspectRatio()})},onProtectedChange:I=>{k(I.isProtected())},onDelete:()=>{}}),sn(m,{onMovableSelectionChange:()=>{const I=m.getMovableSelection()[0]??null;j(I),k(!I||I.isProtected()),_()}}),sn(g,{onCollectionChange:()=>{_()}}),u.useEffect(()=>{const I={disabled:C};O.getCommand("formatAnchorTypeTwoCell").update(I),O.getCommand("formatAnchorTypeOneCell").update(I),O.getCommand("formatAnchorTypeAbsolute").update(I),O.getCommand("toggleLockAspectRatio").update(I);const z=g.getCount(),L=m.getMovableSelection(),D=C||z<=1||L.length===0;let F={disabled:D},B=F;if(!D&&L.length===1){const V=L[0];V.getZIndex()===0&&(F={disabled:!0}),V.getZIndex()===z-1&&(B={disabled:!0})}O.getCommand("moveToFront").update(B),O.getCommand("moveForward").update(B),O.getCommand("moveToBack").update(F),O.getCommand("moveBackward").update(F);const M={disabled:C||L.length<=1};O.getCommand("formatDrawAlignLeft").update(M),O.getCommand("formatDrawAlignCenter").update(M),O.getCommand("formatDrawAlignRight").update(M),O.getCommand("formatDrawAlignTop").update(M),O.getCommand("formatDrawAlignMiddle").update(M),O.getCommand("formatDrawAlignBottom").update(M),O.getCommand("formatDrawFlipHorz").update(M),O.getCommand("formatDrawFlipVert").update(M),O.getCommand("formatDrawGroup").update(M),O.getCommand("formatDrawUngroup").update(M),O.getCommand("formatDrawSwapShapes").update(M),O.getCommand("formatDrawSwapShapesHorz").update(M),O.getCommand("formatDrawSwapShapesVert").update(M);const N={disabled:C||L.length<=2};O.getCommand("formatDrawDistributeHorz").update(N),O.getCommand("formatDrawDistributeVert").update(N)},[R,C,R]),O}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:d,commands:a,target:l,notifier:c});u.useEffect(()=>{n?.getStage()},[n?.getStage()]);const h=u.useMemo(()=>s.jsx(hF,{ref:t,view:n,movables:o.getMovables(),disableResize:!o.getProtection().isObjectsAllowed(),disableDrag:!o.getProtection().isObjectsAllowed(),movablesView:o.getView(),transactional:o,renderMovable:i,...r,onFocus:()=>{p.activate(),r?.onFocus?.()}},"movable-area"),[o,r,a,p]);return h&&n?h:null})),gF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:a,setEditingCoords:l,commands:c,notifier:d=mu}=e,p=Hi(),[h,f]=u.useState(null),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),[w,E]=u.useState(null);u.useLayoutEffect(()=>{if(y===null)return b(null),void E(null);const L=()=>{const D=o.getRange(y).getCell(),F=D.getStyle();let B,M=F.getFill()?.toCSS(r.body.darkMode);M.background!=="none"&&M.background!=="transparent"||(M=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),M.background!=="none"&&M.background!=="transparent"||(M={background:r.body.fill}),b({style:M}),D&&!D.getFormula()&&(B=D?.getRenderHorizontalAlignment()),E(B??"left")};return L(),o.getRange(y).addListener(()=>{L()})},[o,y,r?.body]);const S=Te(()=>{let L=g.editState.dirty??"";if(g.editState.dirty!==void 0){const D=$.TextUtils.clampString(L);try{const F=g.sheet.getRange(g.coords),B=`Typing '${D}' into ${F.toString()}`;return F.setValue(L,{description:B,autoFit:!0}),x(null),m(null),p.setMode(null),l(null),!0}catch(F){throw d.showError(new Error(`Unable to enter '${D}'.`,{cause:F})),F}}},[o,g,d]),R=Te(L=>o.getRange(L).getCell().getExtrusions()??Go.cellToRange(L),[o]);Te(L=>{let D=$.IRange.Orientation.Row,F=!1;L!==$.IRange.Direction.Up&&L!==$.IRange.Direction.Down||(D=$.IRange.Orientation.Column),L!==$.IRange.Direction.Left&&L!==$.IRange.Direction.Up||(F=!0),o.getSelection().traverse(D,F)},[o]);const _=u.useCallback((L,D)=>{if(i)return i(L,D);if(!o)return null;const{ref:F,...B}=L;return s.jsx(Hw,{ref:F,...B,sheet:o,bodyStyle:r?.body,activeCoords:D,commands:c,onChangeEdit:M=>{const N={sheet:o,coords:D,editState:M};p.setMode(V=>({...V,description:N.editState.editMode?"Edit":"Enter",args:{...V?.args,stateAndCoords:N}}))},editState:g.editState})},[o,v,i,g,y]),{overlay:A,startEdit:T,submitEdit:j,cancelEdit:C,onKeyboardEventNative:k,onPointerEventNative:P}=(L=>{const{view:D,canEdit:F=uz,getCellEditor:B,onBeforeStartEdit:M,onStartEdit:N,onSubmitEdit:V,onCancelEdit:U,onDoneEdit:J,isEditorStartKeyEvent:X=pz,isEditorStartPointerEvent:H=hz,containerProps:ne,borderStrokeFill:oe,borderStrokeWidth:ge=2,getRangeCoords:de=null,activeCoords:ye,alignment:ve=oc.Left}=L,[be,re]=u.useState(!1),[ce,we]=u.useState(void 0),ae=wt((q,se,te,ie,pe,me)=>{if(!se)return null;const fe=pe?.(se,q),_e=q.getRangeCoordsBounds(fe),Fe=q.toClipBounds(_e),qe=_e,Je=q.getZoom();if(!Fe)return null;te&&(te*=Je),ie&&(ie*=Je);let Qe=qe,rt=!1;if(te!==void 0){let _t={...fe},Vt=0;for(;!rt&&Qe.width<=te&&Vt<20;){Vt++,Vt>19&&console.warn("max width reached");const on=q.getTotalRangeCoords(),Yt=q.getLayout();me===oc.Left?_t.colEnd+1<on.colEnd?_t.colEnd=Yt.getColIndex(Qe.x+te):rt=!0:me===oc.Right?_t.colStart-1>=0?_t.colStart=Yt.getColIndex(Qe.x-(te-Qe.width)):rt=!0:me===oc.Center&&_t.colEnd+1<on.colEnd&&_t.colStart-1>=0?(_t.colStart=Yt.getColIndex(Qe.x-(te-Qe.width)/2),_t.colEnd=Yt.getColIndex(Qe.x+Qe.width+(te-Qe.width)/2)):rt=!0,rt||(Qe=q.getRangeCoordsBounds(_t))}}Qe.height=qe.height,ie!==void 0&&(Qe.height=Math.max(ie+1,qe.height));const{width:At,height:zt}=q.getViewportSize();return{x:Qe.x??0,y:Qe.y??0,height:Math.min(zt-Qe.y,Qe.height)+1,width:Math.min(At-Qe.x,Qe.width)+1}},[ve]),Y=wt(F,[F]),le=u.useCallback(()=>{D?.getStage()?.focus()},[D]),ee=u.useRef(null),Ie=wt(q=>{M?.(q),Ze(),re(!0),ee.current=null},[M]),Me=wt(q=>{N?.(q.coords)},[N]),ot=wt(q=>{q.isSubmitted||q.isCancelled||(je.current.isEditorClosed=!0,le(),q.isCancelled=!0,U?.(q.coords),Ze())},[U]),Ve=wt(q=>{if(q.isSubmitted||q.isCancelled)return!1;try{return ee.current=q.coords,q.isEditorClosing=!0,q.isSubmitted=!0,q.isEditorSubmitted||(q.isEditorSubmitted=!0,q.editorRefs[0]?.submitEdit?.()),q.coords,V?.(q.coords),q.isEditorClosed=!0,le(),Ze(),!0}catch(se){throw q.isEditorClosing=!1,q.isSubmitted=!1,se}},[V]),Ce=wt(q=>{re(!1),J?.(q.coords),Ze()},[J]),je=u.useRef(null),Ge=u.useRef(null),Be=u.useRef(null),ct=u.useRef([]),[Ye,he]=u.useReducer(q=>q+1,0),Ze=u.useCallback(q=>{q&&ct.current.push(q),he()},[]),Se=wt(q=>{if(q.defaultPrevented||q.isSynthetic||!D)return;const se=D?.getCellCoordsFromClient(q.clientX,q.clientY);se&&Ze({eventType:"pointer",event:q,coords:se})},[D]),Re=wt(q=>{const se=q.nativeEvent;Se(se)},[D]),ue=wt(q=>{if(q.defaultPrevented||q.isSynthetic||!D?.getStage())return;const se=Ge.current;X(q,se)&&(q.stopPropagation(),q.preventDefault()),q.key,Ze({eventType:"keyboard",event:q,coords:se})},[D]);u.useLayoutEffect(()=>{const q=(ie,pe)=>{const me=pe?.cell??ie;if(!me)return null;const fe=me;if(!Y(me))return null;Ie?.(me);const _e=Qo.uuidV4();pe=Object.freeze({autoFocus:!0,...pe}),Be.current=me;const Fe={coords:fe,startEvent:pe,uuid:_e,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:qe=>{Fe.isMounted||(Fe.isMounted=!0,Ze())},onUnmount:qe=>{if(Fe.editorRefs.length===0){const Je=()=>{Fe.isMounted=!1,Ze()};if(document.activeElement!==document.body)Je();else{const Qe=rt=>{rt.defaultPrevented||rt.target!==document.body||ue(rt)};window.addEventListener("keydown",Qe,!0),D.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",Qe),Je()},{once:!0}),le()}}}};return Fe};if(ct.current.length<=0&&!je.current)return;const se=ct.current[0];P9(se),(ie=>{const pe=[],me=ie?.length??0;for(let fe=0;fe<me;fe++){const _e=ie[fe];pe.push(P9(_e))}})(ct.current),je.current,je.current;let te=je.current;if(je.current){if(je.current.isDone)je.current=null;else if(je.current.isSubmitted||je.current.isCancelled){if(je.current.isMounted)return;je.current.isDone||(Ce(je.current),je.current.isDone=!0)}}if(se){if(se.eventType==="start"){const ie=se,pe=ie.startEvent?.cell??Ge.current;je.current&&Wt.isEqualCells(je.current.coords,pe)||(je.current=q(pe,ie.startEvent))}else if(se.eventType==="keyboard"){const ie=se.event;if(je.current){let pe=!1;switch(ie.which){case 37:case 39:case 38:case 40:case 13:case 9:pe=!0}if(!pe){je.current.events.push(se);for(let me=0;me<je.current.editorRefsDispatchEditorEvent.length;me++)je.current.editorRefsDispatchEditorEvent[me](se)}}else if(X(ie,se.coords)){const pe=q(Ge.current,void 0);pe&&pe.events.push(se),je.current=pe}}else if(se.eventType==="pointer"){const ie=se.event;if(je.current){je.current.events.push(se);for(let pe=0;pe<je.current.editorRefsDispatchEditorEvent.length;pe++)je.current.editorRefsDispatchEditorEvent[pe](se)}else{const pe=se?.coords??Ge.current,me=H(ie,pe);if(me){let fe;typeof fe!="boolean"&&(fe=me);const _e=q(pe,fe);_e&&_e.events.push(se),je.current=_e}}}else if(se.eventType==="submit"){if(je.current&&!je.current.isSubmitted&&!je.current.isCancelled){if(!je.current.isMounted)return;Ve(je.current)}}else if(se.eventType==="cancel"){if(je.current&&!je.current.isSubmitted&&!je.current.isCancelled){if(!je.current.isMounted)return;ot(je.current)}}else if(se.eventType==="coordsChange"){const ie=se;if(Ge.current=ie.activeCoords,je.current,je.current&&!je.current.isSubmitted&&!je.current.isCancelled){if(!je.current.isMounted)return;try{Ve(je.current)}catch{}}}}ct.current.length>0&&(ct.current.shift(),Ze()),ct.current.length===0&&(!je.current||je.current.isEditorClosing||je.current.isEditorClosed?!je.current&&te&&le():je.current.isMounted&&!je.current.isStarted&&(je.current.isStarted=!0,je.current.startEvent.autoFocus&&(typeof je.current.startEvent.autoFocus=="string"?je.current.editorRefs[0]?.autoFocus(je.current.startEvent.autoFocus):je.current.editorRefs[0]?.autoFocus()),Me?.(je.current),requestAnimationFrame(()=>{D&&je.current?.coords&&D.scrollCellCoordsIntoView(je.current.coords)})))},[Ye]),u.useEffect(()=>{Be.current=ye;const q=je.current?.coords;Wt.isEqualCells(q,ye)||(je.current&&(je.current.isEditorClosing=!0),Ze({eventType:"coordsChange",activeCoords:ye}))},[ye]);const De=u.useCallback(q=>{ue(q.nativeEvent)},[]),{width:Le=0,height:W=0}=ce??{width:0,height:0},Q=wt(B,[B]);return{overlay:wt(q=>{if(!je.current||je.current.isEditorClosed)return je.current,null;je.current.coords;let se=ae(q,je.current.coords,Le,W,de,ve),te=!0;se&&se.width!==0&&se.height!==0||(se={x:0,y:0,width:Le,height:Le},te=!1);const ie=q.getZoom(),pe={containerBounds:{x:0,y:0,width:se.width/ie,height:se.height/ie},setNaturalDimensions:we,zoom:ie};return s.jsx(fz,{session:je.current,refLatestCoords:Be,handleSubmitEdit:Ve,handleCancelEdit:ot,cellBounds:se,borderStrokeWidth:ge,borderStrokeFill:oe,isInBounds:te,getCellEditor:Q,propsEditor:pe,alignment:ve,...ne},"editor:"+je.current.uuid)},[B,de,Ye,Le,W,ve,ge,oe]),startEdit:u.useCallback(q=>{Ze({eventType:"start",startEvent:q})},[]),submitEdit:u.useCallback(()=>{Ze({eventType:"submit"})},[]),cancelEdit:u.useCallback(()=>{Ze({eventType:"cancel"})},[]),onKeyboardEvent:De,onPointerEvent:Re,onKeyboardEventNative:ue,onPointerEventNative:Se,isEditing:be}})({view:n,activeCoords:h,getCellEditor:_,canEdit:()=>{const L=!o.getProtection().isLocked();return L||a(),L},onBeforeStartEdit:L=>{const D=Ww(()=>o.getRange(L).getCell()),F={sheet:o,coords:L,editState:Object.freeze(D)};p.setMode({key:"edit",args:{stateAndCoords:F}}),m(F)},onStartEdit:L=>{x(L),l(L)},onSubmitEdit:S,onCancelEdit:L=>{x(null),m(null),p.setMode(null),l(null)},onDoneEdit:L=>{p.setMode(null)},containerProps:v,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:w,getRangeCoords:R});sn(o.getSelection(),{onChange(L){f(o.getSelection().getCoords().cell)}});const O=Te(L=>{P(L),y&&j()},[P,C,y]),I=u.useCallback(L=>{P(L)},[P]),z=u.useCallback(L=>{k(L)},[k]);return u.useEffect(()=>{const L=n?.getStage();if(L)return L.addEventListener("pointerdown",O),L.addEventListener("dblclick",I),L.addEventListener("keydown",z),()=>{L.removeEventListener("pointerdown",O),L.removeEventListener("dblclick",I),L.removeEventListener("keydown",z)}},[n?.getStage()]),u.useEffect(()=>{const L=p.getMode(),D=L?.key;D==="edit"||D==="enter"?g?L.args?.cancel?C():L.args?.submit?j():m(L.args?.stateAndCoords):T(L.args?.start):y&&C()},[p]),A(n,t)})),Zw="white",Xw="black",yF=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${Xw}' fill='${Zw}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,xF=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${Xw}' fill='${Zw}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,bF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o}=e,[r,i]=u.useState(o.getTables().getCount()>0),[a,l]=u.useState(null),[c,d]=u.useState(null),[p,h]=u.useState(null),[f,g]=u.useState(null),m=Te(()=>{if(o.getTables().getCount()>0){i(!0);const S=o.getTables().search({address:n.getVisibleRangeCoords()});l(S.length>0?S:null)}else i(!1),l(null)},[o,n]),y=Te(S=>{S.preventDefault(),S.stopPropagation();const R=n.getCellCoordsFromClient(S.clientX,S.clientY),_=o.getTables().search({address:R});_.length===1&&_[0].select()},[n,o]),x=Te(S=>{S.preventDefault(),S.stopPropagation();const R=n.getCellCoordsFromClient(S.clientX,S.clientY),_=o.getTables().search({address:R});if(_.length===1){const A=_[0].getRange().getCoords(),T={colStart:A.colStart,rowStart:R.rowIndex,colEnd:A.colEnd,rowEnd:R.rowIndex};o.getRange(T).select()}},[n,o]),v=Te(()=>{if(!r)return;const S=o.getTables().search({address:n.getVisibleRangeCoords()});l(S.length>0?S:null)},[o,r,n]);sn(o?.getSelection(),{onChange(S){d(o.getSelection().getCoords().cell)}}),sn(p,{onAnyChange(S){m(),v()}}),sn(f,{onAnyChange(S){v()}}),sn(o,{onTablesChange(S){m(),v()},onInvalidated(S){m(),v()}});const b=u.useMemo(()=>Jt.debounce(Jt.throttle(v,300),300),[]);u.useEffect(()=>{b()},[n]),u.useEffect(()=>{let S=null;if(a)for(let R=0;R<a.length&&!S;R++){const _=a[R],A=_.getRange().getCoords();$.CoordUtils.isCellWithinRange(c,A)&&(S=_)}h(S)},[c,a]);const w=Te(S=>{let R=null;if(a)for(let _=0;_<a.length;_++){const A=a[_],T=A.getRange().getCoords();let j=n.getRangeCoordsBounds(T);const C=n.getRelativePointFromClient(S.clientX,S.clientY),k=C.x,P=C.y;if(k>=j.x&&k<=j.x+j.width&&P>=j.y&&P<=j.y+j.height){const O=n.getViewportSize();k<=0||P<=0||k>=O.width||P>=O.height||(R=A)}}g(R)},[n,a]);if(u.useEffect(()=>{const S=n?.getStage();if(S&&a)return S.addEventListener("mousemove",w),S.addEventListener("mouseleave",w),()=>{S.removeEventListener("mousemove",w),S.removeEventListener("mouseleave",w)}},[a,n?.getStage()]),!n||!a||a.length===0)return null;const E=[];for(let S=0;S<a.length;S++){const R=a[S];if(R.isClosed())continue;const _=R===f,A=R===p,T=R.getRange().getCoords(),j=n.getRangeCoordsBounds(T);let C;if(_||A){const k=R.getStyle().getProperties(),P=k.headerRow?.fill?.background??k.wholeTable?.border?.top?.color?.toString();if(P&&o){const O=o.getStyles().parseColor(P);O&&(C=O.toCSS())}C||(C="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}E.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:j.height,pointerEvents:"all",cursor:yF},onMouseDown:x},`table-select-row-${R.getName()}`)),E.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:Math.min(16,j.height),pointerEvents:"all",cursor:xF},onMouseDown:y},`table-select-${R.getName()}`)),E.push(s.jsx(I2,{x:j.x,y:j.y,width:j.width,height:j.height,range:T,strokeWidth:A?.5:0,stroke:C??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:_?`${C} 0px 0px 1px 1px`:void 0}},`table-outline-${R.getName()}`))}return E})),vF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,a]=u.useState(null),[l,c]=u.useState(null),d=u.useRef(null),p=Te(()=>{const x=o.getSelectedCell(),v=x.getSpill()?.getCoords()??null;Go.isEqualRanges(v,i)||(c(v?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(v),coords:v}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),a(v))},[o,n,i]);u.useEffect(()=>(d.current&&(clearTimeout(d.current),d.current=null),l&&(d.current=setTimeout(()=>{c(null),d.current=null},r)),()=>{d.current&&(clearTimeout(d.current),d.current=null)}),[l,r]);const h=u.useMemo(()=>Jt.debounce(Jt.throttle(p,80),80),[]);if(sn(o?.getSelection(),{onChange(x){h()}}),sn(o,{onSpillsChange(x){p()},onInvalidated(x){p()}}),!n||!i&&!l)return null;const f=o.getRange(i).getValue()instanceof $.FormulaError.Spill,g=[];let m=l?.bounds??n.getRangeCoordsBounds(i);if(l&&!Jt.isEqualBounds(l.bounds,n.getRangeCoordsBounds(l.coords))&&c(null),m=n.toClipBounds(m,-10),!m)return;const y="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return g.push(s.jsx(I2,{x:m.x,y:m.y,width:m.width,height:m.height,range:i,strokeWidth:1,stroke:y,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:f?"6 3":void 0,opacity:l?.transition==="out"?0:1,transition:l?.transition?l.transition==="in"||l.transition==="out"?`opacity ${1.5*r}ms ease-in-out`:`left ${r}ms ease-out, top ${r}ms ease-out, width ${r}ms ease-out, height ${r}ms ease-out`:"none",boxShadow:`${y} 0px 0px 4px 0px`}},"spill-outline}")),g})),wF={position:"absolute",top:0,left:0,bottom:0,right:0},lg=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},a=n.body=Jt.mergeContentful(e.body,i);return n.body=Jt.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},a),n.buttonSurface=Jt.mergeContentful({fill:"#fff",text:{fill:"black"},edgeStrokeFill:"black"},n.buttonSurface),n.selection={fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#217346",strokeWidth:2,...e.selection},n.selectionInactive={...n.selection,fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#dad8d6",...e.selectionInactive},n.selectionRemove={...n.selection,fill:"rgba(200, 0, 0, 0.1)",strokeFill:"rgba(200, 0, 0, 1)",...e.selectionRemove},n.headerSelection={...n.selection,...e.headerSelection},n.headerSelectionInactive={...n.selectionInactive,...e.headerSelectionInactive},n.header=Jt.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Jt.mergeContentful(n.header,i),n.headerSelect=Jt.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Jt.mergeContentful(n.headerSelect,i),n.headerSelectAll=Jt.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Jt.mergeContentful(n.headerSelectAll,i),n},SF={fireOnModelChange:!1},sg={},Yw=u.memo(u.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=sg,headersStyle:r=sg,onSheetContextMenu:i,showColumnHeaders:a,columnHeaderProps:l,showRowHeaders:c,rowHeaderProps:d,showScrollbars:p=!0,scrollPaneProps:h,onViewportChange:f,commands:g,onRepeatCommandChange:m,onMoveCell:y,overlays:x,renderMovable:v,viewportComponent:b,onElementLoad:w,getCellEditor:E,onFocus:S,onBlur:R,style:_=Rn.EmptyCssProperties,notifier:A,onShowTooltip:T,onShowColumnTooltip:j,onShowRowTooltip:C,onCloseTooltip:k,gridProps:P,cellRenderProps:O,...I}=e;if(u.useEffect(()=>{$.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[z,L]=u.useReducer(Ke=>Ke+1,0),[D,{width:F,height:B}]=Vl(),M=Te(T,[T]),N=Te(j,[j]),V=Te(C,[C]),U=Te(k,[k]),J=u.useRef(!1);u.useLayoutEffect(()=>{J.current=!0},[n]);const X=n?.getStyles(),H=u.useMemo(()=>lg(o,X),[o,X]),ne=u.useMemo(()=>lg(r,X),[r,X]),{body:oe={},buttonSurface:ge={}}=H,{header:de={},headerSelect:ye={},headerSelectAll:ve={}}=ne,be=u.useRef(null),[re,ce]=u.useState(()=>n?.getView()),we=(re?.getZoomScale()??100)/100,ae=u.useMemo(()=>({vertical:re.isShowColumnGridlines()&&we>=.4,horizontal:re.isShowRowGridlines()&&we>=.4}),[re?.isShowColumnGridlines(),re?.isShowRowGridlines(),we]),Y=u.useMemo(()=>{if(re?.getGridLineColor())return{strokeDasharray:"1,1"}},[re?.getGridLineColor(),H]),le=a??re?.isShowColumnHeaders(),ee=c??re?.isShowRowHeaders(),[Ie,Me]=u.useState({width:0,height:0}),ot=u.useMemo(()=>{let Ke=40,xe=20;const St=n?.getStyles().getNormal().getFont();if(Ie.width>0&&Ie.height>0){const Mt=St?.toCSS()?.fontFamily??H.header.text.fontFamily,K=St?.getSize()??H.header.text.fontSize,G=$.IFont.getSharedMeasurer()(""+Ie.height,Math.ceil(K*$.IFont.getDeviceScale()),Mt);Ke=G.width,xe=G.lineHeight}return{width:Math.round(Ke+5),height:Math.round(xe+3)}},[Ie,H?.header.text,n]),Ve=ee?we*ot.width:de.edgeStrokeWidth,Ce=le?we*ot.height:de.edgeStrokeWidth,je=Math.max(F,(n?.getColumnHeaders().getDefaultSize()??ot.width)+Ve+1),Ge=Math.max(B,(n?.getRowHeaders().getDefaultSize()??ot.height)+Ce+1),Be=u.useRef(new Map),ct=u.useRef(null),Ye=()=>({getColOffset:Ke=>n.getColumnHeaders().findOffset(Ke),getColIndex:Ke=>n.getColumnHeaders().findIndex(Ke),getRowOffset:Ke=>n.getRowHeaders().findOffset(Ke),getRowIndex:Ke=>n.getRowHeaders().findIndex(Ke)}),[he,Ze]=u.useState(()=>Ye()),[Se,Re]=u.useState(!1),[ue,De]=u.useState(null),Le=!0,W=H.selection?.strokeFill,Q=u.useCallback(()=>pr.current,[]),[q,se]=u.useState(),te=Te(Ke=>{se(Ke),n&&n.getView()&&n.getView().setTopLeft(Ke?{left:Ke.left,top:Ke.top}:null),f?.(Ke)},[n,f]),ie=u.useRef(null);u.useEffect(()=>{if(!q||!n)return;const Ke=n.getRangeAtBounds({x:q.left,y:q.top,width:q.width,height:q.height});ie.current?.(),ie.current=Ke.addListener(()=>{const xe=Ke.getCoords();be?.current?.invalidate(xe)})},[q,n]);const[pe,me]=u.useState(()=>n?.getView().getTopLeft()),fe=Te(Ke=>{const xe=Go.cellToRange(Ke);if(n.isClosed())return xe;const St=n.getRange(xe,{excludeHidden:!0}).getMerges();return St.length===0?xe:St[0]},[n]),_e=Ke=>{if(!Ke||Ke.coords.colIndex===0&&Ke.coords.rowIndex===0)return null;const xe={};return Ke.coords.colIndex>0&&(xe[zo.Left]={index:Ke.coords.colIndex,scrollOffset:Ke.topLeft.left}),Ke.coords.rowIndex>0&&(xe[zo.Top]={index:Ke.coords.rowIndex,scrollOffset:Ke.topLeft.top}),xe},[Fe,qe]=u.useState(()=>_e(n.getView().getFreezePanes())),Je=Hi(),Qe=u.useCallback(()=>be.current,[]),rt=Te(Ke=>{Je.setMode(xe=>xe?.key==="edit"?{...xe,args:{...xe.args}}:{key:"edit",args:{stateAndCoords:null,start:Ke}})},[]),At=Te(()=>q,[q]),zt=function(Ke){const{sheet:xe,onRepeatCommandChange:St,bodyStyle:Mt,commands:K,target:G,notifier:ke,onStartEdit:Pe,getViewport:et}=Ke,[pt,it]=u.useState(null),[Pt,Nt]=u.useState(null),Ft=u.useRef(null),Kt=Te(Pe,[Pe]),Sn=Te(et,[et]),[Ht,Ut]=u.useState(),[Qn,Ct]=u.useState(()=>xe?.getStyles().parseColor($.IColor.Scheme.Bg2)),[cn,wo]=u.useState(()=>xe?.getStyles().getNormal().getFont().getFill()),Xt=Hi();u.useRef(Xt.getMode()).current=Xt.getMode();const gn=rb(),[Zn,Fr]=u.useState(Jt.EmptyArray),Pa=u.useCallback(()=>{if(Ft.current!==xe)return;const Ee=xe.getSelectedRanges();let nt=null;Zn.length>0&&Go.isCellWithinRange(pt,Zn[0].getRange().getCoords())&&(nt=Zn[0]);const dt=xe?.getSelectedCell(),Ue=dt?.getCoords()??null;yo.unstable_batchedUpdates(()=>{$2(nt),it(Ue),Nt(Ee)})},[xe,Zn,Pt,pt]),T1=u.useCallback(Jt.debounce(Pa,210),[Pa]);u.useEffect(()=>{Ft.current=xe,Pa()},[xe]);const ar=Te(()=>xe.getRange(pt).getCell(),[xe,pt]),Bo=Te(async(Ee,nt,dt=null,Ue=!1,ft=!0)=>{const bt=Ee?.label?.(),yn=async()=>{const un=await Promise.resolve(ft&&ke?.showBusy?.(bt??"Busy..."));try{await xe.doBatch(async()=>nt(xe),bt),Ue&&Xt.setMode(null),un&&un()}catch(so){if(un&&un(),!so)return;ke?.showError?.(so)}},xn=[];let ln=!1;const Cn=async()=>(xn.push(yn),(async()=>{if(!ln){for(ln=!0;xn.length>0;){const un=xn.shift();un&&await un()}ln=!1}})());if(St){let un=null;if(dt!==!1&&Ee){const so=dt??bt;un=new Tt(Ee.key(),G,{label:so,description:so},Cn)}St(un)}return Cn()},[xe,St,ke]),Gt=Te((Ee,nt,dt=!1,Ue)=>Bo(Ee,ft=>{const bt=ft.getSelectedRanges();dt&&bt.updateStyle(null,Ue),bt.updateStyle(nt,Ue),bt.autoFit({expandOnly:$.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[xe]),Zf=Te((Ee,nt,dt)=>{Bo(Ee,Ue=>{let ft=nt;(dt||nt?.address)&&(ft=ft??{},!dt&&nt?.address?.startsWith("#")?dt=nt?.address.substring(1):dt&&(ft.displayText=dt)),Ue.getSelectedRange().setHyperlink(ft)})},[xe]),Xf=Te((Ee,nt)=>{Bo(Ee,dt=>{dt.getSelectedRange().setComments(nt)})},[xe]),l0=Te((Ee,nt)=>{Bo(Ee,dt=>{dt.getSelectedRanges().clear(nt)})},[xe]),il=Te(async(Ee,nt,dt=!1,Ue=!1)=>Bo(Ee,async ft=>{let bt=ft.getSelectedRanges();dt&&(nt===$.IRange.Orientation.Row?bt=bt.getEntireRows(Ue):nt===$.IRange.Orientation.Column&&(bt=bt.getEntireColumns(Ue)));let yn=null;const xn=Xt.getMode()?.key;if(xn==="copy"||xn==="cut"){const ln=await gn.getClipboard().readReference();ln&&ln.getItemType()==="range"&&(yn=ln.getItem(),yn.getCoords()||(yn=null))}if(yn){const ln=await bt.insertFrom(yn,{...yn.getMarkOptions(),orientation:nt,autoSelect:!0});!ln||ln.isEntireRows()||ln.isEntireColumns()||ln.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0}),Xt.setMode(null)}else bt.insert(nt,{autoSelect:!0})},"Insert Cells",!1),[Xt]),[ha,$2]=u.useState(null),PC=Te(Ee=>xe.getStyles().setDefaultTableStyle(Ee),[xe]),OC=Te(Ee=>{xe.getStyles().getTableStyle(Ee)?.delete()},[xe]),s0=Te((Ee,nt)=>{Bo(Ee,async dt=>{const Ue=dt.getSelectedRange(),ft=dt.getSelectedCell().getCoords();let bt=null,yn=0;const xn=ft.rowIndex>0?dt.getRange({rowIndex:ft.rowIndex,colIndex:ft.colIndex}).getExtended($.IRange.Direction.Up):null;xn&&dt.getRange({colStart:ft.colIndex,rowStart:xn.getCoords().rowStart,colEnd:ft.colIndex,rowEnd:xn.getCoords().rowStart}).isContentful()&&(bt=$.IRange.Direction.Up,yn=ft.rowIndex-xn.getCoords().rowEnd);const ln=ft.colIndex>0?dt.getRange({rowIndex:ft.rowIndex,colIndex:ft.colIndex-1}).getExtended($.IRange.Direction.Left):null;if(ln&&dt.getRange({colStart:ln.getCoords().colStart,rowStart:ft.rowIndex,colEnd:ln.getCoords().colStart,rowEnd:ft.rowIndex}).isContentful()){const un=ft.colIndex-ln.getCoords().colEnd;(un<yn||!bt)&&(bt=$.IRange.Direction.Left,yn=un)}let Cn=null;if(bt===$.IRange.Direction.Up){if(Cn={...xn.getCoords()},(Cn.rowEnd===ft.rowIndex||!dt.getRange({colIndex:ft.colIndex,rowIndex:ft.rowIndex-1}).isContentful())&&Cn.rowStart>0&&dt.getRange({colIndex:ft.colIndex,rowIndex:Cn.rowStart-1}).isContentful()){const un=xn.getExtended($.IRange.Direction.Up);Cn={colStart:ft.colIndex,rowStart:un.getCoords().rowStart,colEnd:ft.colIndex,rowEnd:xn.getCoords().rowEnd}}Cn.rowEnd=ft.rowIndex-1}else if(bt===$.IRange.Direction.Left){if(Cn={...ln.getCoords()},(Cn.colEnd===ft.colIndex||!dt.getRange({colIndex:ft.colIndex-1,rowIndex:ft.rowIndex}).isContentful())&&Cn.colStart>0&&dt.getRange({colIndex:Cn.colStart-1,rowIndex:ft.rowIndex}).isContentful()){const un=ln.getExtended($.IRange.Direction.Left);Cn={colStart:un.getCoords().colStart,rowStart:ft.rowIndex,colEnd:un.getCoords().colEnd,rowEnd:ft.rowIndex}}Cn.colEnd=ft.colIndex-1}if(Ue.size!==1&&bt){const un=Ue.getCoords(),so=Ue.startIncrementalUpdates({orientation:$.IRange.Orientation.Column}),jo={...Cn},wr=un.rowStart,Di=un.rowEnd,Li=un.colStart,Ai=un.colEnd,Br=bt===$.IRange.Direction.Up;for(let fr=Li;fr<=Ai;fr++){jo.colStart=Br?fr:Cn.colStart+(fr-Li),jo.colEnd=Br?fr:Cn.colEnd+(fr-Li);for(let No=wr;No<=Di;No++){jo.rowStart=Br?Cn.rowStart+(No-wr):No,jo.rowEnd=Br?Cn.rowEnd+(No-wr):No;const Ln=dt.getRange(jo).toString();so.pushAt(No,fr,`=${nt}(${Ln})`)}}so.apply()}else{const un=Cn?dt.getRange(Cn).toString():"",so=`=${nt}(`;Kt?.({text:`${so}${un})`,editMode:!0,initialSelection:{start:so.length,end:so.length+un.length}})}},!1)},[xe]),_1=Te((Ee,nt,dt=!1,Ue=!0)=>{Bo(Ee,async ft=>{let bt=null;if(ha)return void ha.updateStyleOptions(nt);{const ln=ft.getSelectedRanges().getFixed(!0),Cn=ft.getSelectedRange().getDefaultSortCriteria();let un={ranges:ln,hasHeader:Cn?.options?.hasHeader??!1};bt=Ue?new Promise((so,jo)=>{const wr={tableOptions:un,onCancel:()=>{jo()},onDone:Di=>{so(Di)},context:{getNames:()=>ft.getNames()}};ke.showWindow?.("tableNew",wr)}):{option:"Ok",tableOptions:un}}const yn=await Promise.resolve(bt);if(yn?.option!=="Ok")throw null;const xn=await Promise.resolve(ke?.showBusy?.(Ee.label()));try{await ft.getTables().add(yn.tableOptions.ranges.at(0),{styleName:nt?.name,clearFormatting:dt,hasHeader:yn.tableOptions.hasHeader}).getRange().select()}catch(ln){xn(),ke?.showError?.(ln)}xn()},!1,!0,!1)},[ha]),Yf=Te(()=>Mt,[Mt]),Jf=Te(Ee=>({styles:()=>xe.getStyles(),table:()=>Ee,bodyStyle:Yf,getNames:()=>xe.getNames()}),[xe]),DC=Te(async(Ee,nt,dt,Ue=!0)=>{let ft=null;if(!nt){let bt=xe.getSelectedRange();bt.size===1&&(bt=bt.getSurrounding());let yn=xe.getTables().search({address:xe.getSelectedRange()});yn.length>0&&(nt=yn[0]),await bt.select()}if(nt){if(Ue){try{dt&&await nt.select()}catch{}ft=new Promise(async(bt,yn)=>{Ee.update({context:Jf(nt)});const xn={command:Ee,commands:Oe,notifier:ke,onDone:Cn=>{bt(Cn)}},ln=await ke.showWindow?.("tableDetails",xn,{disableAutoDestroy:!0});setTimeout(()=>{ln.focus()},180)})}Promise.resolve(ft).then(bt=>{},bt=>{ke?.showError?.(bt)})}},[ke]),Qf=Te(async(Ee,nt,dt=!1)=>{let Ue=null;if(nt)nt.isITable?Ue=nt:nt.getValue()&&(Ue=nt.getValue());else{const ft=xe.getTables().search({address:xe.getSelectedRange()});ft.length>0&&(Ue=ft[0])}if(Ue){if(!dt){const ft=Ue.getRange().getCoords(),bt=(ft.colEnd-ft.colStart+1)*(ft.rowEnd-ft.rowStart+1);if(bt>1e4&&await ke?.showOptions({title:"Confirm",description:`Converting a table to range with '${bt}' cells will set a large number of cell styles and may affect performance.
|
|
199
|
+
Continue?`,options:["Convert","Cancel"],defaultOption:"Convert"})!=="Convert")return}Bo(Ee,async()=>{dt?Ue.delete():Ue.convertToRange()},!1,!0)}},[ke]),V2=Te((Ee,nt,dt)=>{Bo(Ee,async Ue=>{let ft=Ue.getSelectedRanges();if(ft.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let bt=ft.at(0);bt.size===1&&(bt=bt.getSurrounding());const yn=Ue.getSelection().getCoords().cell;let xn=bt.getDefaultSortCriteria($.IRange.Orientation.Row,yn);if(!xn){if(dt)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let ln=xn.options;if(dt&&(ln=new Promise((un,so)=>{const jo={range:bt,options:xn.options,cell:yn,onCancel:()=>{so()},onDone:wr=>{wr?un(wr.options):so()}};ke.showWindow?.("sort",jo)})),ln=await Promise.resolve(ln),!ln)return;const Cn=await Promise.resolve(ke?.showBusy?.(Ee.label()));try{bt.doBatch(()=>{const un={...ln,...nt};bt.sort(un),bt.autoFit({orientations:un?.orientation===$.IRange.Orientation.Column?$.IRange.Orientations.Column:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},Ee?.label?.())}catch(un){Cn(),ke?.showError?.(un)}Cn()},!1,!1,!1)},[ke]),LC=Te(()=>{console.log("compactedSelection");const Ee=xe.getSelection().getCoords(),nt=xe.getSelectedRanges().getFlattened().getCoords(),dt=(()=>{const bt=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),yn=URL.createObjectURL(bt),xn=new Worker(yn);return URL.revokeObjectURL(yn),xn})();setTimeout(()=>{dt.terminate(),console.log("Worker terminated")},5e3);let Ue=-1;for(let bt=0;Ue===-1&&bt<nt.length;bt++)Go.isCellWithinRange(Ee.cell,nt[bt])&&(Ue=bt);if(Go.isEqualRangesArrays(Ee.ranges,nt))return;const ft={cell:Ee.cell,ranges:nt,rangeIndex:Ue};xe.getSelection().updateCoords(ft)},[xe]),AC=Te(()=>{console.log("selectComments")},[xe]),em=Te(async(Ee=!1,nt=!1)=>{let dt=null;if(nt)dt=xe.getEntireRange();else{const Ue=xe.getSelectedRange();if(Ue.isEntireRange()){const ft=xe.getSelection().getCoords().cell,bt=xe.getRange(ft);dt=bt.getSurrounding(),dt.isEntireRange()&&(dt=bt)}else dt=Ue.getSurrounding({contentOnly:Ee})}dt&&await dt.select()},[xe]),c0=Te((Ee,nt,dt)=>{Bo(Ee,async Ue=>{let ft=Ue.getSelectedRanges();dt&&(nt===$.IRange.Orientation.Row?ft=ft.getEntireRows():nt===$.IRange.Orientation.Column&&(ft=ft.getEntireColumns())),ft.delete(nt)},"Delete Cells")},[xe]);Te(async Ee=>{let nt=null;const dt=Sn(),Ue=Math.min(dt.width-8,480),ft=Math.min(dt.height-8,288);try{xe.getSelectedRanges(),nt=await xe.getMovables().add({bounds:{x:dt.left+(dt.width-Ue)/2,y:dt.top+(dt.height-ft)/2,width:Ue,height:ft},type:"chart",json:Ee.template}),nt.select(),Xt.setMode(null)}catch(bt){ke?.showError?.(bt)}return nt},[xe,ke]);const tm=Te(async(Ee,nt,dt)=>{const Ue=await ke?.showBusy?.(Ee.label());try{const ft=await xe.getMovables().addImage(nt,{autoSelect:!0,...dt});return Ue(),Xt.setMode(null),ft}catch(ft){Ue();let bt=ft;typeof bt!="string"&&(console.warn(ft),bt="Unable to resolve image."),ke?.showMessage?.(bt,{type:ua.Error})}},[xe,ke]),j1=Te((Ee,nt)=>{Bo(Ee,async dt=>{const Ue=dt.getSelectedRanges();Ue.doBatch(()=>{const ft=nt===$.IRange.Direction.Up||nt===$.IRange.Direction.Down,bt=Ue.getCoords().slice().sort(Go.createRangeComparator(ft?$.IRange.Orientation.Row:$.IRange.Orientation.Column));for(let yn=0;yn<bt.length;yn++){const xn=bt[yn];let ln=xn;const Cn=dt.getRange(ln).getMerges();let un=0,so=0;if(Cn.length>0){const jo=Cn[0];un=jo.rowEnd-jo.rowStart,so=jo.colEnd-jo.colStart}nt===$.IRange.Direction.Left?ln={...xn,colStart:xn.colEnd+so}:nt===$.IRange.Direction.Right?ln={...xn,colEnd:xn.colStart+so}:nt===$.IRange.Direction.Up?ln={...xn,rowStart:xn.rowEnd+un}:nt===$.IRange.Direction.Down&&(ln={...xn,rowEnd:xn.rowStart+un}),dt.getRange(ln).autoFill(xn,{filler:$.AutoFill.Types.Copy}),dt.getRange(xn).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:Ee.label()})})},[ke]),zC=Te(()=>{let Ee=null;const nt=xe.getSelectedCell().getCoords();if(nt?.rowIndex>0){const dt=xe.getRange({rowIndex:nt.rowIndex-1,colIndex:nt.colIndex}).getCell();dt&&(Ee=dt.toTextUnformatted(!0))}Kt?.({text:Ee})},[xe]),[d0,FC]=u.useReducer(Ee=>Ee+1,0),[R1,ql]=u.useReducer(Ee=>Ee+1,0),nm=u.useMemo(()=>[new He("gridlinesToggle",G,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new He("sheetViewToggleGridlinesRows",G,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new He("sheetViewToggleGridlinesColumns",G,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new He("sheetViewFormatGridlinesColor",G,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new He("sheetViewToggleShowHeadings",G,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new He("sheetViewToggleShowHeadingRows",G,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new He("sheetViewToggleShowHeadingColumns",G,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new He("sheetViewToggleShowHeadingsNumeric",G,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[$e.Ctrl,$e.Shift]}}),new He("sheetViewToggleFormulaView",G,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[$e.Ctrl]},{key:"`",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("sheetViewToggleShowZeros",G,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new Tt("selectComments",G,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[$e.Ctrl,$e.Shift]}},()=>AC()),new He("selectAll",G,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[$e.Ctrl]},{key:"Space",modifiers:[$e.Ctrl,$e.Shift]}]},(Ee=!1)=>em(!1,Ee)),new Tt("selectRegion",G,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[$e.Ctrl,$e.Shift]}},()=>em(!0,!1)),new Tt("breakSelection",G,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Alt]}},()=>LC()),new Tt("formatTextRotate0",G,{label:"No Text Rotation",description:"Remove all text rotation."}),new Tt("formatTextRotate45",G,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new Tt("formatTextRotate90",G,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new Tt("formatTextRotate270",G,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new Tt("formatTextRotate315",G,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new He("formatTextRotateCustom",G,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new Tt("formatTextRotateVertical",G,{label:"Vertical Text",description:"Stack text vertically."}),new Tt("sortAscending",G,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){V2(this,{reverse:!1},!1)}),new Tt("sortDescending",G,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){V2(this,{reverse:!0},!1)}),new Tt("sortCustom",G,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){V2(this,{},!0)}),new He("protectionSheetToggle",G,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:`Prevent unwanted changes from others by limiting their ability to edit.
|
|
200
|
+
For example, you can prevent people from editing locked cells or making formatting changes.`}),new He("formatSheetTabColor",G,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new He("formatCellStyle",G,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(Ee){Gt(this,{named:Ee.getName()},!0)}),new He("formatTableStyle",G,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(Ee){_1(this,Ee)}),new He("formatTableStyleClearCellStyles",G,{label:"Format as Table (Clear Styles)",scopedLabels:{table:"Apply (Clear Styles)"},description:"Create a table or apply style to the current table and clears all cell styles."},function(Ee){_1(this,Ee,!0)}),new He("formatTableStyleClearTableStyle",G,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){_1(this,{name:null},!0)}),new He("setDefaultTableStyle",G,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},PC),new He("deleteTableStyle",G,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},OC),new He("formatBorder",G,{label:"Border",description:"Create an outline border."},function(Ee){Gt(this,{border:Ee})}),new He("formatFillColor",G,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(Ee){Gt(this,{fill:Ee})}),new He("formatFontColor",G,{label:"Font Color",description:"Change the color of your text."},function(Ee){Gt(this,{font:{fill:Ee}})}),new He("formatBoldToggle",G,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[$e.Ctrl]},{key:"2",modifiers:[$e.Ctrl]}]}),new He("formatItalicToggle",G,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[$e.Ctrl]},{key:"3",modifiers:[$e.Ctrl]}]}),new He("formatUnderlinedToggle",G,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[$e.Ctrl]},{key:"4",modifiers:[$e.Ctrl]}]}),new He("formatUnderlinedDoubleToggle",G,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new He("formatUnderlinedAccountingToggle",G,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new He("formatUnderlinedAccountingDoubleToggle",G,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new He("formatStrikeThroughToggle",G,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[$e.Ctrl]}}),new He("formatSuperscriptToggle",G,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new He("formatSubscriptToggle",G,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new He("formatAlignTopToggle",G,{label:"Align Top",description:"Align text to the top."}),new He("formatTextOverflowVisibleToggle",G,{label:"Overflow Text",description:"Overflow text to the next cells."}),new He("formatTextOverflowWrapToggle",G,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new He("formatTextOverflowClipToggle",G,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new He("formatTextOverflowShrinkToggle",G,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new He("formatTextOverflowEllipsisToggle",G,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new He("formatAlignMiddleToggle",G,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new He("formatAlignBottomToggle",G,{label:"Align Bottom",description:"Align text to the bottom."}),new He("formatAlignJustifyVerticalToggle",G,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new He("formatAlignDistributedVerticalToggle",G,{label:"Distribute Vertically",description:"Justify your content vertically."}),new He("formatAlignLeftToggle",G,{label:"Align Left",description:"Align your content to the left."}),new He("formatAlignCenterToggle",G,{label:"Align Center",description:"Center your content."}),new He("formatAlignRightToggle",G,{label:"Align Right",description:"Align your content to the right."}),new He("formatAlignJustifyToggle",G,{label:"Align Justify",description:"Justify your content."}),new He("formatAlignCenterContinuousToggle",G,{label:"Center Across",description:"Center your content across multiple cells."}),new He("formatAlignFillToggle",G,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new He("formatAlignDistributedHorizontalToggle",G,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new Tt("formatFontSizeIncrease",G,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,Ee=>({font:{size:Dh(Ee.getFont().getSize(),!0)}}))}),new Tt("formatFontSizeDecrease",G,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,Ee=>({font:{size:Dh(Ee.getFont().getSize(),!1)}}))}),new He("formatFontFamily",G,{label:"Font",description:"Select the font your text."},function(Ee){Gt(this,{font:{family:Ee}})}),new He("formatFontSize",G,{label:"Font Size",description:"Change the size of your text."},function(Ee){Gt(this,{font:{size:Ee}})}),new He("formatNumberDialog",G,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[$e.Ctrl]},{key:"1",modifiers:[$e.Ctrl,$e.Alt]}]},function(Ee,nt){const dt=this,Ue={initialValue:Ee??nt.state(),context:nt.context(),onInputOption:(ft,bt)=>{Gt(dt,{numberFormat:ft})}};ke.showWindow?.("numberFormat",Ue)}),new He("formatNumberFormat",G,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(Ee){Gt(this,{numberFormat:Ee})}),new He("formatNumberFormatGeneralStyle",G,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:$.NumberFormat.Type.General})}),new He("formatNumberFormatNumberStyle",G,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:"#,##0.00"})}),new He("formatNumberFormatTimeStyle",G,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:"h:mm AM/PM"})}),new He("formatNumberFormatDateStyle",G,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:"d-mmm-yy"})}),new He("formatNumberFormatAccountingStyle",G,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[$e.Ctrl,$e.Shift]}},function(Ee){Gt(this,{numberFormat:Ee??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new He("formatNumberFormatPercentStyle",G,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:"0%"})}),new He("formatNumberFormatScientificStyle",G,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[$e.Ctrl,$e.Shift]}},function(){Gt(this,{numberFormat:"0.00E+00"})}),new He("formatNumberFormatCommaStyle",G,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[$e.Ctrl]}},function(){Gt(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new He("formatNumberFormatIncreaseDecimal",G,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){Gt(this,Ee=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Ee.getNumberFormat(),1)}))}),new He("formatNumberFormatDecreaseDecimal",G,{label:"Decrease Decimal",description:"Show few decimal places."},function(){Gt(this,Ee=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Ee.getNumberFormat(),-1)}))}),new He("displayPlaceholdersToggle",G,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[$e.Ctrl]}}),new Tt("noOp",G,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[$e.Ctrl]}},function(){}),new He("displayOutlineSymbolsToggle",G,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[$e.Ctrl]}}),new He("hideRows",G,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[$e.Ctrl]}}),new He("unhideRows",G,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[$e.Ctrl,$e.Shift]}}),new He("hideColumns",G,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[$e.Ctrl]},{key:"0",modifiers:[$e.Ctrl,$e.Alt]}]}),new He("unhideColumns",G,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[$e.Ctrl,$e.Shift]}}),new He("quickFormulaSum",G,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[$e.Alt]}},function(){s0(this,"SUM")}),new He("quickFormulaAverage",G,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){s0(this,"AVERAGE")}),new He("quickFormulaCount",G,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){s0(this,"COUNT")}),new He("quickFormulaMax",G,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){s0(this,"MAX")}),new He("quickFormulaMin",G,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){s0(this,"MIN")}),new He("startEditCurrentTime",G,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},function(){Kt?.({text:xe.createTemporaryCell({value:Yc(),style:{numberFormat:"Medium Time"}}).toText()})}),new He("startEditCurrentDate",G,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},function(){Kt?.({text:xe.createTemporaryCell({value:Yc(),style:{numberFormat:"Short Date"}}).toText()})}),new Tt("sheetZoomOut",G,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[$e.Ctrl,$e.Alt]},{key:"NumpadSubtract",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("sheetZoomIn",G,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[$e.Ctrl,$e.Alt]},{key:"NumpadAdd",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("sheetZoom100",G,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[$e.Ctrl,$e.Alt]}}),new He("insertFunction",G,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[$e.Shift]}},function(Ee,nt){console.log("insertFunction")}),new He("updateHyperlink",G,{label:"Link",scopedLabels:{contextMenu:"Insert Link…",insert:"Link…",hyperlink:"Edit"},description:"Create a hyperlink to either another webpage or another location within this document.",context:()=>ar,shortcut:[{key:"K",modifiers:[$e.Ctrl]},{key:"K",modifiers:[$e.Ctrl,$e.Alt]}]},async function(Ee,nt){const dt=this,Ue={context:nt.context(),onUpdateHyperlink:(ft,bt)=>{Zf(dt,ft,bt)}};ke.showWindow?.("hyperlink",Ue)}),new He("openHyperlink",G,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[$e.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>ar},async(Ee,nt)=>{const dt=nt.context()();if(!dt)return;const Ue=dt.getHyperlink();if(Ue)try{await Ue.open()}catch(ft){ke?.showError?.(ft)}}),new He("deleteHyperlink",G,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>ar},function(Ee,nt){Zf(this,null,null)}),new Tt("insertNote",G,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[$e.Shift]},description:"Add a note to the cell."},(Ee,nt)=>{var dt,Ue;dt=ke,Ue=nt.label(),dt?.showMessage?.(s.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[Ue," is not yet implemented.",s.jsx("br",{}),s.jsx("br",{}),"Please see the ",s.jsx("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))}),new He("updateComments",G,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[$e.Ctrl,$e.Alt]},description:"Add a comment to the current cell.",context:()=>ar},async function(Ee,nt){const dt=this,Ue={context:nt.context(),onUpdateComments:ft=>{Xf(dt,ft)}};ke.showWindow?.("comments",Ue)}),new He("deleteComments",G,{label:"Delete Comments",description:"Remove any comments.",context:()=>ar},function(Ee,nt){Xf(this,null)}),new He("insertImageFromFile",G,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(Ee=null){let nt=null,dt=null;typeof Ee=="string"?dt=Ee:nt=Ee?.file?Ee.file:Ee,(nt||(nt=await Jt.openFileDialog(dt??"image/*"),nt))&&await tm(this,{file:nt},Ee?.options)}),new He("insertImageFromURL",G,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(Ee){if(!Ee){const nt=await ke?.showInputOptions?.({title:"Insert Image from Web",description:"Enter the web address for the image to insert.",inputLabel:"Address",initialValue:"https://picsum.photos/360",inputProps:{style:{minWidth:"440px"}},options:["Insert"]});if(nt.option!=="Insert")return;Ee=nt.input}Ee&&tm(this,{fetch:Ee})}),new Tt("insertTable",G,{label:"Insert Table",scopedLabels:{contextMenu:"Insert Table…",insert:"Table"},description:"Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.",shortcut:[{key:"L",modifiers:[$e.Ctrl]},{key:"T",modifiers:[$e.Alt,$e.Ctrl]}]},function(){_1(this)}),new He("editTable",G,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(Ee){let nt=null,dt=!1;Ee.isITable?nt=Ee:Ee.getValue()&&(nt=Ee.getValue(),dt=!0),DC(this,nt,dt)}),new He("deleteTable",G,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:`Remove the table.
|
|
201
|
+
|
|
202
|
+
The table and table specific styling will be removed but the values will be preserved.`},function(Ee){Qf(this,Ee,!0)}),new He("convertTableToRange",G,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
|
|
203
|
+
|
|
204
|
+
The values and the formatting are preserved.`},function(Ee){Qf(this,Ee,!1)}),new He("tableTotalRowToggle",G,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[$e.Ctrl,$e.Alt]}},function(){const Ee=this.context().table();Ee&&Ee.setShowTotals(!Ee.getShowTotals())}),new He("tableHeaderRowToggle",G,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const Ee=this.context().table();Ee&&Ee.setShowHeaders(!Ee.getShowHeaders())}),new He("autoFilterToggle",G,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[$e.Ctrl,$e.Shift]}},function(){const Ee=this.context().table();Ee&&Ee.setShowFilterButton(!Ee.getShowFilterButton())}),new He("autoFilterReapply",G,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[$e.Ctrl,$e.Alt]}}),new He("autoFilterClear",G,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new Tt("startEditValueAbove",G,{label:"Copy From Above",description:"Copy the value from the cell above the active cell into the cell or the formula bar.",shortcut:[{key:"Quote",modifiers:[$e.Ctrl]},{key:'"',modifiers:[$e.Ctrl,$e.Shift]}]},zC),new He("formatPainterToggle",G,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new Tt("insertCells",G,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[$e.Ctrl,$e.Shift]}},function(){il(this)}),new Tt("insertCellsShiftRight",G,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){il(this,$.IRange.Orientation.Column)}),new Tt("insertCellsShiftDown",G,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return il(this,$.IRange.Orientation.Row)}),new Tt("insertRows",G,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return il(this,$.IRange.Orientation.Row,!0)}),new Tt("insertColumns",G,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return il(this,$.IRange.Orientation.Column,!0)}),new Tt("insertRowsAfter",G,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return il(this,$.IRange.Orientation.Row,!0,!0)}),new Tt("insertColumnsAfter",G,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return il(this,$.IRange.Orientation.Column,!0,!0)}),new Tt("deleteCells",G,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[$e.Ctrl]}},function(){return c0(this)}),new Tt("deleteCellsShiftUp",G,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return c0(this,$.IRange.Orientation.Row)}),new Tt("deleteCellsShiftLeft",G,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return c0(this,$.IRange.Orientation.Column)}),new Tt("deleteRows",G,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return c0(this,$.IRange.Orientation.Row,!0)}),new Tt("deleteColumns",G,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return c0(this,$.IRange.Orientation.Column,!0)}),new Tt("flashFill",G,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[$e.Ctrl]},{key:"e",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("fillDown",G,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[$e.Ctrl]}},function(){return j1(this,$.IRange.Direction.Down)}),new Tt("fillRight",G,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[$e.Ctrl]}]},function(){return j1(this,$.IRange.Direction.Right)}),new Tt("fillUp",G,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return j1(this,$.IRange.Direction.Up)}),new Tt("fillLeft",G,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return j1(this,$.IRange.Direction.Left)}),new Tt("formatBorderAddOutline",G,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Gt(this,{border:{left:{style:$.IBorder.StrokeStyle.Thin,color:null},top:{style:$.IBorder.StrokeStyle.Thin,color:null},right:{style:$.IBorder.StrokeStyle.Thin,color:null},bottom:{style:$.IBorder.StrokeStyle.Thin,color:null}}})}),new Tt("formatBorderClearOutline",G,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Gt(this,{border:null})}),new Tt("formatIndentDecrease",G,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return Gt(this,Ee=>{const nt=Ee.getAlignment().getIndent()-1;return{alignment:{indent:nt>0?nt:0}}})}),new Tt("formatIndentIncrease",G,{label:"Increase Indent",description:"Move your content further from the border."},function(){return Gt(this,Ee=>{const nt={alignment:{indent:Ee.getAlignment().getIndent()+1}};return Ee.getAlignment().getHorizontal()===$.ITextFrame.HorizontalAlignment.General&&(nt.alignment.horizontal=$.ITextFrame.HorizontalAlignment.Left),nt})}),new He("mergeToggle",G,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[$e.Ctrl]}}),new Tt("mergeHorizontal",G,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new Tt("mergeVertical",G,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new Tt("unmerge",G,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new Tt("clearContents",G,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:`Clear only the contents in the cells.
|
|
205
|
+
|
|
206
|
+
The formatting is not cleared.`,shortcut:{key:"Delete"}},function(){l0(this,$.ICell.Content.Values)}),new Tt("clearFormats",G,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){l0(this,$.ICell.Content.Formats)}),new Tt("clearHyperlinks",G,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){l0(this,$.ICell.Content.Hyperlinks)}),new Tt("clearComments",G,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){l0(this,$.ICell.Content.Comments)}),new Tt("clearAll",G,{label:"Clear All",scopedLabels:{clear:"All"},description:`Clears everything from the cells.
|
|
207
|
+
|
|
208
|
+
All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[$e.Ctrl,$e.Shift]}},function(){l0(this)}),new He("freezeToggle",G,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new He("freezeToggleHorizontal",G,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new He("freezeToggleVertical",G,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new Tt("unfreeze",G,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new Tt("autoFitRows",G,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new Tt("autoFitColumns",G,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),Oe=u.useMemo(()=>{let Ee=null;return Ee=K?K.createChildGroup(G,"sheet",!1):new e0(G,"sheet"),Ee.addCommands(nm,!0),Ee},[K,nm]),[u0,BC]=u.useState(!1),[p0,NC]=u.useState(!1);u.useEffect(()=>{if(Ft.current!==xe||!Pt)return;const Ee=Pt.getCoords(),nt=xe.getTables().search({address:Ee[0]});Fr(yn=>Jt.isEqualArrays(yn,nt)?yn:nt),pt&&nt[0]&&Go.isCellWithinRange(pt,nt[0].getRange().getCoords())?$2(nt[0]??null):$2(null);const dt=xe.getSelectedRanges(),Ue=dt.getMerges().length>0,ft=dt.isOverlapping();let bt=!0;for(let yn=0;bt&&yn<Ee.length;yn++)bt=Go.isSingleCell(Ee[yn]);NC(ft),BC(nt.length===0&&!ft&&(Ue||!bt))},[R1,Pt,xe]),_o(K,null,{onChange:()=>{const Ee=Xt.getMode()?.key==="formatPainter";Oe.getCommand("formatPainterToggle").update({disabled:!K?.getCommand("copy"),state:()=>Ee}).updateCallback(()=>Ee?void Xt.setMode(null):Oe.getCommand("copy").execute({editMode:{key:"formatPainter",description:"Use the mouse to apply the copied format to another selection.",cursor:`url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`}}))}},[Xt,d0,K]),sn(xe.getView(),{onFreezeSplitChange:()=>{ql()}}),sn(xe.getSelection(),{onChange:()=>{T1()}});const I1=()=>{Oe.getCommand("sheetViewFormatGridlinesColor").update({state:()=>xe.getView().getGridLineColor(),context:()=>({onColorSelect:Ee=>{},darkMode:Mt.darkMode,autoColor:xe.getStyles().parseColor(Mt.strokeFill),schemeLookup:xe.getStyles().schemeLookup(),recentColors:()=>xe.getStyles().recentColors(),addRecentColor:Ee=>xe.getStyles().addRecentColor(Ee),clearRecentColors:()=>xe.getStyles().clearRecentColors()})}),Oe.getCommand("formatSheetTabColor").updateCallback(Ee=>{xe.setTabColor(Ee)}).update({state:()=>xe?.getTabColor()??vd,context:()=>({onColorSelect:Ee=>{},darkMode:Mt.darkMode,autoColor:vd,schemeLookup:xe.getStyles().schemeLookup(),recentColors:()=>xe.getStyles().recentColors(),addRecentColor:Ee=>xe.getStyles().addRecentColor(Ee),clearRecentColors:()=>xe.getStyles().clearRecentColors()})})},H2=()=>{Oe.getCommand("formatBorder").update({context:()=>({onBorderSelect:Ee=>{Ut(Ee)},darkMode:Mt.darkMode,quickBorder:Ht,autoColor:xe.getStyles().getNormal().getFont().getFill(),autoStyle:$.IBorder.StrokeStyle.Thin,createTemporaryBorder:Ee=>xe.getStyles().getNormal().createTemporaryStyle({border:Ee}).getBorder(),schemeLookup:xe.getStyles().schemeLookup()})})};u.useEffect(()=>{H2()},[Ht]),u.useEffect(()=>{const Ee=!xe.getProtection().isInsertHyperlinksAllowed();Oe.getCommand("openHyperlink").update({disabled:!ar().getHyperlink()}),Oe.getCommand("deleteHyperlink").update({disabled:Ee||!ar().getHyperlink()});const nt=ar().getHyperlink()?"Edit":"Insert",dt="Link";Oe.getCommand("updateHyperlink").update({label:()=>(ar().getHyperlink(),`${nt} ${dt}`),scopedLabels:{contextMenu:`${nt} ${dt}…`,insert:`${dt}…`,hyperlink:`${nt}…`},disabled:Ee})},[ar()?.getHyperlink(),d0]),u.useEffect(()=>{const Ee=ar().getComments(),nt=()=>Ee?"Edit":"Insert",dt=()=>Ee?"Comments":"Comment";Oe.getCommand("updateComments").update({label:()=>`${nt()} ${dt()}`,scopedLabels:{contextMenu:`${nt()} ${dt()}…`,insert:`${dt()}…`}})},[ar()?.getComments(),d0]),sn(xe,{onViewChange:()=>{const Ee=xe.getView();Oe.getCommand("sheetViewToggleFormulaView").update({state:Ee.isShowFormulas()}),Oe.getCommand("sheetViewToggleShowZeros").update({state:Ee.isShowZeros()}),Oe.getCommand("gridlinesToggle").update({state:Ee.isShowColumnGridlines()||Ee.isShowRowGridlines()}),Oe.getCommand("sheetViewToggleGridlinesColumns").update({state:Ee.isShowColumnGridlines()}),Oe.getCommand("sheetViewToggleGridlinesRows").update({state:Ee.isShowRowGridlines()}),Oe.getCommand("sheetViewToggleShowHeadings").update({state:Ee.isShowColumnHeaders()||Ee.isShowRowHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingColumns").update({state:Ee.isShowColumnHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingRows").update({state:Ee.isShowRowHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>xe.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&xe.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero}),I1()},onTabColorChange:()=>{I1()},onMergesChange:()=>{ql()},onMovablesChange:()=>{ql()},onTablesChange:()=>{ql()},onProtectionChange:()=>{ql(),FC()},onStyleChange:()=>{I1(),H2(),ql()}}),u.useEffect(()=>{I1(),H2()},[Mt]),u.useEffect(()=>{const Ee=!xe.getProtection().isFormatCellsAllowed(),nt=Zn.length>0&&!ha||Ee,dt=Jf(ha),Ue={context:dt};Oe.getCommand("editTable").update(Ue),Oe.getCommand("deleteTable").update(Ue),Oe.getCommand("convertTableToRange").update(Ue);const ft={context:dt,disabled:nt};Oe.getCommand("formatTableStyle").update({label:ha?"Apply Table Style":"Format As Table",...ft}),Oe.getCommand("formatTableStyleClearCellStyles").update(ft),Oe.getCommand("deleteTableStyle").update(ft),Oe.getCommand("convertTableToRange").update(ft),Oe.getCommand("insertTable").update({disabled:nt||Zn.length>0});const bt={context:dt,disabled:nt||Zn.length===0};Oe.getCommand("tableHeaderRowToggle").update(bt),Oe.getCommand("tableTotalRowToggle").update(bt),Oe.getCommand("autoFilterToggle").update(bt),Oe.getCommand("formatTableStyleClearTableStyle").update({...bt,disabled:bt.disabled||!ha||ha.getStyleOptions().name===null})},[ha,Zn,d0]),u.useEffect(()=>{Oe.getCommand("sheetZoomOut").updateCallback(()=>{xe.getView().update({zoomScale:Jt.findNextStep(xe.getView().getZoomScale(),!1)})}),Oe.getCommand("sheetZoomIn").updateCallback(()=>{xe.getView().update({zoomScale:Jt.findNextStep(xe.getView().getZoomScale())})}),Oe.getCommand("sheetZoom100").updateCallback(()=>{xe.getView().update({zoomScale:100})}),Oe.getCommand("gridlinesToggle").updateCallback(()=>{const Ee=xe.getView().isShowColumnGridlines()&&xe.getView().isShowRowGridlines();xe.getView().update({showColumnGridlines:!Ee,showRowGridlines:!Ee})}),Oe.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{xe.getView().update({showRowGridlines:!xe.getView().isShowRowGridlines()})}),Oe.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{xe.getView().update({showColumnGridlines:!xe.getView().isShowColumnGridlines()})}),Oe.getCommand("sheetViewFormatGridlinesColor").updateCallback(Ee=>{xe.getView().update({gridLineColor:Ee})}),Oe.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const Ee=xe.getView().isShowColumnHeaders()&&xe.getView().isShowRowHeaders();xe.getView().update({showColumnHeaders:!Ee,showRowHeaders:!Ee})}),Oe.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{xe.getView().update({showColumnHeaders:!xe.getView().isShowColumnHeaders()})}),Oe.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{xe.getView().update({showRowHeaders:!xe.getView().isShowRowHeaders()})}),Oe.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const Ee=xe.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&xe.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero;xe.getView().update({columnHeaderStyle:Ee?$.ISheetView.HeaderTextStyle.A1:$.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:Ee?$.ISheetView.HeaderTextStyle.One:$.ISheetView.HeaderTextStyle.Zero})}),Oe.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{xe.getView().update({showFormulas:!xe.getView().isShowFormulas()})}),Oe.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{xe.getView().update({showZeros:!xe.getView().isShowZeros()})})},[xe]),u.useEffect(()=>{const Ee=xe.getView().getFreezePanes(),nt=()=>Ee.coords.rowIndex!==0,dt=()=>Ee.coords.colIndex!==0,Ue=()=>Ee.coords.rowIndex!==0||Ee.coords.colIndex!==0;Oe.getCommand("freezeToggle").updateCallback(()=>{Ue()?xe.getView().setFreezePanes(null):Ue()?dt()?xe.getView().setFreezePanes({coords:{rowIndex:pt.rowIndex}}):nt()&&xe.getView().setFreezePanes({coords:{colIndex:pt.colIndex}}):xe.getView().setFreezePanes({coords:pt})}).update({state:Ue,disabled:()=>!pt||!Ue()&&pt.rowIndex===0&&pt.colIndex===0}),Oe.getCommand("freezeToggleHorizontal").updateCallback(()=>{xe.getView().setFreezePanes({coords:{rowIndex:nt()?0:pt.rowIndex}})}).update({state:nt,disabled:()=>!pt||!nt()&&pt.rowIndex===0}),Oe.getCommand("freezeToggleVertical").updateCallback(()=>{xe.getView().setFreezePanes({coords:{colIndex:dt()?0:pt.colIndex}})}).update({state:dt,disabled:()=>!pt||!dt()&&pt.colIndex===0}),Oe.getCommand("unfreeze").updateCallback(()=>{xe.getView().setFreezePanes(null)}).update({disabled:()=>!Ue()})},[R1,pt,xe,Mt]);const Kl=ar().getStyle(),Yo=Kl.getFont(),P1=Kl.getAlignment(),Oi=P1.getHorizontal(),h0=P1.getVertical(),f0=P1.getOverflow(),Gl=P1.getRotation();return u.useEffect(()=>{Oe.getCommand("formatCellStyle").update({context:()=>({styles:()=>xe.getStyles(),named:()=>ar().getStyle(!0).getNamed(),bodyStyle:Yf,createTemporaryCell:Ln=>xe.createTemporaryCell(Ln)})}),Oe.getCommand("formatFillColor").update({state:()=>{let Ln=null;const lr=Kl.getFill();return lr?.getType()===$.IFill.Type.Solid?Ln=lr.getColor():lr?.getType()===$.IFill.Type.Gradient?Ln=lr.getStops()?.[0]?.getColor():lr?.getType()===$.IFill.Type.Pattern&&(Ln=lr.getBackground()),Ln},context:()=>{const Ln=xe.getStyles();return{onColorSelect:lr=>{Ct(lr??vd)},darkMode:Mt.darkMode,quickColor:Qn,autoColor:vd,schemeLookup:Ln.schemeLookup(),recentColors:Ln.recentColors(),addRecentColor:lr=>Ln.addRecentColor(lr),clearRecentColors:()=>Ln.clearRecentColors()}}}),Oe.getCommand("formatFontColor").update({state:()=>Yo.toJSON()?.fill?Yo.getFill():null,context:()=>{const Ln=xe.getStyles();return{onColorSelect:lr=>{wo(lr)},darkMode:Mt.darkMode,quickColor:cn,autoColor:Ln.getNormal().getFont().getFill(),schemeLookup:Ln.schemeLookup(),recentColors:Ln.recentColors(),addRecentColor:lr=>Ln.addRecentColor(lr),clearRecentColors:()=>Ln.clearRecentColors()}}}),Oe.getCommand("formatNumberFormat").update({state:()=>Kl.getNumberFormat(),context:()=>ar}),Oe.getCommand("formatNumberDialog").update({state:()=>Kl.getNumberFormat(),context:()=>ar}),Oe.getCommand("formatFontFamily").update({state:()=>Yo.getFamily()}),Oe.getCommand("formatFontSize").update({state:()=>Yo.getSize()});const Ee=function(){const Ln=Yo.getWeight()||0;return!isNaN(Ln)&&Ln>500};Oe.getCommand("formatBoldToggle").updateCallback(function(){Gt(this,{font:{weight:Ee()?400:700}})}).update({state:Ee});const nt=function(){return Yo.getStyle()===$.IFont.Style.Italic};Oe.getCommand("formatItalicToggle").updateCallback(function(){Gt(this,{font:{style:nt()?$.IFont.Style.Normal:$.IFont.Style.Italic}})}).update({state:nt}),Oe.getCommand("formatStrikeThroughToggle").updateCallback(function(){Gt(this,{font:{strike:!Yo.getStrike()}})}).update({state:Yo.getStrike()}),Oe.getCommand("formatUnderlinedToggle").updateCallback(function(){Gt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Single?$.IFont.UnderlineStyle.Single:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Single}),Oe.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){Gt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Double?$.IFont.UnderlineStyle.Double:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Double}),Oe.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){Gt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.SingleAccounting?$.IFont.UnderlineStyle.SingleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.SingleAccounting}),Oe.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){Gt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.DoubleAccounting?$.IFont.UnderlineStyle.DoubleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.DoubleAccounting}),Oe.getCommand("formatSuperscriptToggle").updateCallback(function(){Gt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Super?$.IFont.VerticalAlignment.Super:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Super}),Oe.getCommand("formatSubscriptToggle").updateCallback(function(){Gt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Sub?$.IFont.VerticalAlignment.Sub:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Sub});const dt=()=>f0===$.ITextFrame.Overflow.Visible;Oe.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){Gt(this,{alignment:{overflow:(dt(),$.ITextFrame.Overflow.Visible)}})}).update({state:dt});const Ue=()=>f0===$.ITextFrame.Overflow.Wrap;Oe.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){Gt(this,{alignment:{overflow:Ue()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Wrap}})}).update({state:Ue});const ft=function(){return f0===$.ITextFrame.Overflow.Clip};Oe.getCommand("formatTextOverflowClipToggle").updateCallback(function(){Gt(this,{alignment:{overflow:ft()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Clip}})}).update({state:ft});const bt=function(){return f0===$.ITextFrame.Overflow.Shrink};Oe.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){Gt(this,{alignment:{overflow:bt()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Shrink}})}).update({state:bt});const yn=function(){return f0===$.ITextFrame.Overflow.Shrink};Oe.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){Gt(this,{alignment:{overflow:yn()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Ellipsis}})}).update({state:yn,disabled:!0});const xn=function(){return h0===$.ITextFrame.VerticalAlignment.Top};Oe.getCommand("formatAlignTopToggle").updateCallback(function(){Gt(this,{alignment:{vertical:xn()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Top}})}).update({state:xn});const ln=function(){return h0===$.ITextFrame.VerticalAlignment.Center};Oe.getCommand("formatAlignMiddleToggle").updateCallback(function(){Gt(this,{alignment:{vertical:ln()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Center}})}).update({state:ln});const Cn=function(){return h0===$.ITextFrame.VerticalAlignment.Bottom};Oe.getCommand("formatAlignBottomToggle").updateCallback(function(){Gt(this,{alignment:{vertical:(Cn(),$.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:Cn});const un=function(){return h0===$.ITextFrame.VerticalAlignment.Justify};Oe.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){Gt(this,{alignment:{vertical:un()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Justify}})}).update({state:un});const so=function(){return h0===$.ITextFrame.VerticalAlignment.Distributed};Oe.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){Gt(this,{alignment:{vertical:so()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Distributed}})}).update({state:so});const jo=function(){return Oi===$.ITextFrame.HorizontalAlignment.Left};Oe.getCommand("formatAlignLeftToggle").updateCallback(function(){Gt(this,{alignment:{horizontal:jo()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Left}})}).update({state:jo});const wr=function(){return Oi===$.ITextFrame.HorizontalAlignment.Center};Oe.getCommand("formatAlignCenterToggle").updateCallback(function(){Gt(this,{alignment:{horizontal:wr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Center}})}).update({state:wr});const Di=function(){return Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous};Oe.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const Ln={alignment:{horizontal:Di()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};Gt(this,Ln)}).update({state:Di});const Li=function(){return Oi===$.ITextFrame.HorizontalAlignment.Fill};Oe.getCommand("formatAlignFillToggle").updateCallback(function(){const Ln={alignment:{horizontal:Li()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Fill,rotation:null}};Gt(this,Ln)}).update({state:Li});const Ai=function(){return Oi===$.ITextFrame.HorizontalAlignment.Distributed};Oe.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){Gt(this,{alignment:{horizontal:Ai()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:Ai});const Br=function(){return Oi===$.ITextFrame.HorizontalAlignment.Right};Oe.getCommand("formatAlignRightToggle").updateCallback(function(){Gt(this,{alignment:{horizontal:Br()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Right}})}).update({state:Br});const fr=function(){return Oi===$.ITextFrame.HorizontalAlignment.Justify};Oe.getCommand("formatAlignJustifyToggle").updateCallback(function(){Gt(this,{alignment:{horizontal:fr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Justify}})}).update({state:fr});const No=Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous||Oi===$.ITextFrame.HorizontalAlignment.Fill;Oe.getCommand("formatTextRotate0").updateCallback(function(Ln){Gt(this,{alignment:{rotation:0}})}).update({disabled:No,state:Gl===0}),Oe.getCommand("formatTextRotate45").updateCallback(function(Ln){Gt(this,{alignment:{rotation:Ln??1?45:0}})}).update({disabled:No,state:Gl===45}),Oe.getCommand("formatTextRotate90").updateCallback(function(Ln){Gt(this,{alignment:{rotation:Ln??1?90:0}})}).update({disabled:No,state:Gl===90}),Oe.getCommand("formatTextRotate270").updateCallback(function(Ln){Gt(this,{alignment:{rotation:Ln??1?270:0}})}).update({disabled:No,state:Gl===270}),Oe.getCommand("formatTextRotate315").updateCallback(function(Ln){Gt(this,{alignment:{rotation:Ln??1?315:0}})}).update({disabled:No,state:Gl===315}),Oe.getCommand("formatTextRotateCustom").updateCallback(function(Ln){Gt(this,{alignment:{rotation:Ln}})}).update({disabled:No,state:Gl??0})},[Kl,xe,Mt,Qn,cn]),u.useEffect(()=>{const Ee=!xe.getProtection().isFormatCellsAllowed(),nt=xe.getSelectedRanges().getMerges().length>0,dt=async(Mo,O1)=>{Bo(O1,async Zl=>{const D1=async(L1=!1)=>{const $C=await Promise.resolve(ke?.showBusy?.(O1.label()));try{const A1=Zl.getSelectedRanges();if(A1.merge({orientations:Mo,discardMultipleValues:L1}),Mo===$.IRange.Orientations.Both){const VC={alignment:{horizontal:$.ITextFrame.HorizontalAlignment.Center}};A1.updateStyle(VC)}}catch(A1){throw A1}finally{$C?.()}};let im;try{await D1()}catch(L1){if(L1.type!=="discardMultipleValues")throw L1;im=!0}if(im&&ke?.showOptions){if(await ke?.showOptions({title:"Confirm",description:"Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",options:["Merge","Cancel"],defaultOption:"Merge"})!=="Merge")return;await D1(!0)}},void 0,void 0,!1)},Ue=Mo=>{Bo(Mo,async O1=>{try{const Zl=O1.getSelectedRanges();Zl.unmerge();const D1={alignment:{horizontal:null}};Zl.updateStyle(D1)}catch(Zl){throw Zl}})};Oe.getCommand("mergeToggle").updateCallback(function(){Go.isSingleCell(xe.getSelectedRange().getCoords())||(nt?Ue(this):dt($.IRange.Orientations.Both,this))}).update({state:nt,disabled:!u0||Ee}),Oe.getCommand("mergeHorizontal").updateCallback(function(){dt($.IRange.Orientations.Column,this)}).update({disabled:!u0||Ee}),Oe.getCommand("mergeVertical").updateCallback(function(){dt($.IRange.Orientations.Row,this)}).update({disabled:!u0}),Oe.getCommand("unmerge").updateCallback(function(){Ue(this)}).update({disabled:!nt||!u0||Ee});const ft={disabled:Ee};Oe.getCommand("hideRows").updateCallback(function(){Bo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ft),Oe.getCommand("hideColumns").updateCallback(function(){Bo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ft),Oe.getCommand("unhideRows").updateCallback(function(){Bo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ft),Oe.getCommand("unhideColumns").updateCallback(function(){Bo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ft),Oe.getCommand("autoFitRows").updateCallback(function(){Bo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Row})})}).update(ft),Oe.getCommand("autoFitColumns").updateCallback(function(){Bo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Column})})}).update(ft);let bt=!1,yn=0,xn=!1,ln=!1,Cn=0,un=!1;!Pt||Ee||p0||(bt=Pt.isEntireColumnsAny(),bt&&!Pt.isEntireColumns()?xn=!0:yn=Pt.getColumnCount(),ln=Pt.isEntireRowsAny(),ln&&!Pt.isEntireRows()?un=!0:Cn=Pt.getRowCount());const so={disabled:Ee||Pt&&Pt.getCount()!==1};Oe.getCommand("sortAscending").update(so),Oe.getCommand("sortDescending").update(so);const jo={disabled:bt||ln||Ee||p0},wr=bt||Ee||p0||un;wr&&(yn=1);const Di=ln||Ee||p0||xn;Di&&(Cn=1);let Li="",Ai="",Br="",fr="",No="",Ln="",lr="",W2="",U2="";yn>1&&(Ln=Ai=yn+" ",lr=Br="s"),Cn>1&&(W2=fr=Cn+" ",U2=No="s"),Xt.getMode()?.key==="copy"?(Li=fr=Ai="Copied ",Br=No="s"):Xt.getMode()?.key==="cut"&&(Li=fr=Ai="Cut ",Br=No="s");let om="",rm="";if(Pt){const Mo=Pt.getDefaultShiftOrientation()===$.IRange.Orientation.Column;om=` (${Mo?"Shift Right":"Shift Down"})`,rm=` (${Mo?"Shift Left":"Shift up"})`,Oe.getCommand("deleteCells").update({label:`Delete Cells${rm}`})}Oe.getCommand("insertCells").update({label:`Insert ${Li}Cells${om}`,scopedLabels:{insertCells:`${Li}At Selection`}}),Oe.getCommand("insertCellsShiftRight").update(jo),Oe.getCommand("insertCellsShiftDown").update(jo),Oe.getCommand("deleteCellsShiftUp").update(jo),Oe.getCommand("deleteCellsShiftLeft").update(jo),Oe.getCommand("insertRows").update({label:`Insert ${fr}Row${No}`,scopedLabels:{insertCells:`${fr}Row${No}`},disabled:Di}),Oe.getCommand("insertRowsAfter").update({label:`Insert ${fr}Row${No} Below`,disabled:Di}),Oe.getCommand("insertColumns").update({label:`Insert ${Ai}Column${Br}`,scopedLabels:{insertCells:`${Ai}Column${Br}`},disabled:wr}),Oe.getCommand("insertColumnsAfter").update({label:`Insert ${Ai}Column${Br} After`,disabled:wr}),Oe.getCommand("deleteRows").update({label:`Delete ${W2}Row${U2}`,scopedLabels:{deleteCells:`${W2}Row${U2}`},disabled:Di}),Oe.getCommand("deleteColumns").update({label:`Delete ${Ln}Column${lr}`,scopedLabels:{deleteCells:`${Ln}Column${lr}`},disabled:wr})},[R1,u0,p0,Pt,Xt,ke,d0]),u.useEffect(()=>{const Ee=xe.getProtection(),nt=xe.getProtection().isLocked(),dt=!Ee.isFormatCellsAllowed(),Ue={disabled:dt};Oe.getCommand("protectionSheetToggle").updateCallback(async(yn,xn)=>{let ln=null;try{if(nt){let Cn=null;if(Ee.hasPassword()){const un=await ke?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(un.option!=="Unprotect")return;Cn=un.input}ln=await Promise.resolve(ke?.showBusy?.(xn.label())),await Ee.unlock(Cn)}else ln=await Promise.resolve(ke?.showBusy?.(xn.label())),await Ee.lock();ln?.()}catch(Cn){ln?.(),ke?.showError?.(Cn)}}).update({state:nt,label:()=>nt?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:nt?"Unprotect":"Protect"}}),Oe.getCommand("deleteTable").update(Ue),Oe.getCommand("sortAscending").update(Ue),Oe.getCommand("sortDescending").update(Ue),Oe.getCommand("sortCustom")?.update(Ue),Oe.getCommand("updateComments").update(Ue),Oe.getCommand("deleteComments").update(Ue),Oe.getCommand("insertChart")?.update(Ue),Oe.getCommand("insertImageFromFile").update(Ue),Oe.getCommand("insertImageFromURL").update(Ue),Oe.getCommand("formatBorder").update(Ue),Oe.getCommand("formatFillColor").update(Ue),Oe.getCommand("formatFontColor").update(Ue),Oe.getCommand("formatBoldToggle").update(Ue),Oe.getCommand("formatItalicToggle").update(Ue),Oe.getCommand("formatUnderlinedToggle").update(Ue),Oe.getCommand("formatStrikeThroughToggle").update(Ue),Oe.getCommand("formatSuperscriptToggle").update(Ue),Oe.getCommand("formatSubscriptToggle").update(Ue),Oe.getCommand("formatAlignTopToggle").update(Ue),Oe.getCommand("formatTextOverflowVisibleToggle").update(Ue),Oe.getCommand("formatTextOverflowWrapToggle").update(Ue),Oe.getCommand("formatTextOverflowClipToggle").update(Ue),Oe.getCommand("formatTextOverflowShrinkToggle").update(Ue),Oe.getCommand("formatAlignMiddleToggle").update(Ue),Oe.getCommand("formatAlignBottomToggle").update(Ue),Oe.getCommand("formatAlignDistributedVerticalToggle").update(Ue),Oe.getCommand("formatAlignJustifyVerticalToggle").update(Ue),Oe.getCommand("formatAlignLeftToggle").update(Ue),Oe.getCommand("formatAlignCenterToggle").update(Ue),Oe.getCommand("formatAlignRightToggle").update(Ue),Oe.getCommand("formatAlignJustifyToggle").update(Ue),Oe.getCommand("formatAlignCenterContinuousToggle").update(Ue),Oe.getCommand("formatAlignDistributedHorizontalToggle").update(Ue),Oe.getCommand("formatAlignFillToggle").update(Ue),Oe.getCommand("formatFontSizeIncrease").update(Ue),Oe.getCommand("formatFontSizeDecrease").update(Ue),Oe.getCommand("formatFontFamily").update(Ue),Oe.getCommand("formatFontSize").update(Ue),Oe.getCommand("formatNumberFormat").update(Ue),Oe.getCommand("formatNumberFormatGeneralStyle").update(Ue),Oe.getCommand("formatNumberFormatNumberStyle").update(Ue),Oe.getCommand("formatNumberFormatTimeStyle").update(Ue),Oe.getCommand("formatNumberFormatDateStyle").update(Ue),Oe.getCommand("formatNumberFormatAccountingStyle").update(Ue),Oe.getCommand("formatNumberFormatPercentStyle").update(Ue),Oe.getCommand("formatNumberFormatScientificStyle").update(Ue),Oe.getCommand("formatNumberFormatCommaStyle").update(Ue),Oe.getCommand("formatNumberFormatIncreaseDecimal").update(Ue),Oe.getCommand("formatNumberFormatDecreaseDecimal").update(Ue),Oe.getCommand("hideColumns").update(Ue),Oe.getCommand("unhideColumns").update(Ue),Oe.getCommand("hideRows").update(Ue),Oe.getCommand("unhideRows").update(Ue),Oe.getCommand("quickFormulaSum").update(Ue),Oe.getCommand("quickFormulaAverage").update(Ue),Oe.getCommand("quickFormulaCount").update(Ue),Oe.getCommand("quickFormulaMax").update(Ue),Oe.getCommand("quickFormulaMin").update(Ue),Oe.getCommand("startEditCurrentTime").update(Ue),Oe.getCommand("startEditCurrentDate").update(Ue),Oe.getCommand("startEditValueAbove").update(Ue),Oe.getCommand("fillDown").update(Ue),Oe.getCommand("fillRight").update(Ue),Oe.getCommand("fillUp").update(Ue),Oe.getCommand("fillLeft").update(Ue),Oe.getCommand("formatCellStyle").update(Ue),Oe.getCommand("formatTableStyle").update(Ue),Oe.getCommand("formatBorderAddOutline").update(Ue),Oe.getCommand("formatBorderClearOutline").update(Ue),Oe.getCommand("formatIndentDecrease").update(Ue),Oe.getCommand("formatIndentIncrease").update(Ue),Oe.getCommand("clearContents").update(Ue),Oe.getCommand("clearFormats").update(Ue),Oe.getCommand("clearAll").update(Ue);const ft=Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous||Oi===$.ITextFrame.HorizontalAlignment.Fill,bt={disabled:dt||ft};Oe.getCommand("formatTextRotate0").update(bt),Oe.getCommand("formatTextRotate45").update(bt),Oe.getCommand("formatTextRotate90").update(bt),Oe.getCommand("formatTextRotate270").update(bt),Oe.getCommand("formatTextRotate315").update(bt),Oe.getCommand("formatTextRotateCustom").update(bt),Oe.getCommand("formatTextRotateVertical").update(bt)},[R1]),Oe}({sheet:n,commands:g,target:Qe,onRepeatCommandChange:m,bodyStyle:oe,notifier:A,onStartEdit:rt,getViewport:At}),[_t,Vt]=u.useState(n.getSelection().isEntire()),[on,Yt]=u.useState(re?.getMovableSelection().length>0),_n=ue!==null||on,pn=null,[Mn,kt]=u.useState(!1);u.useEffect(()=>{kt(!1)},[n.getProtection()]);const rn=Te(()=>{Mn||(kt(!0),A.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:ua.Error}))},[A,Mn]),fn=u.useMemo(()=>{const Ke=Je.getMode();return Ke?.cursor?Ke.cursor:null},[pn,Je]),[zn,$n]=u.useState(null),hn=u.useRef(!1),[go,bo]=u.useState([]),Fo=u.useRef(null),[tr,Tr]=u.useState(Lc.EmptyTopLeft),[_r,ui]=u.useState(Lc.EmptyTopLeft);u.useEffect(()=>{Tr({left:pe?.left,top:0})},[pe?.left]),u.useEffect(()=>{ui({left:0,top:pe?.top})},[pe?.top]),sn(n?.getView(),{onFreezeSplitChange:()=>{qe(_e(n.getView().getFreezePanes()))},onTopLeftChange:()=>{me(n.getView().getTopLeft())},onMovableSelectionChange:()=>{Yt(n.getView().getMovableSelection().length>0)}}),sn(n?.getSelection(),{onChange:()=>{Vt(n.getSelection().isEntire())}}),sn(n,{onViewChange(){ce(n.getView()),Ze(Ye())},onLayoutChange:()=>{const Ke=n.getEntireRange();Me({height:Ke.getRowCount(),width:Ke.getColumnCount()}),Ze(Ye())},onStyleChange:()=>{tt()},onMovablesChange:()=>{},onInvalidated:()=>{tt()}}),sn(n,{onRequestScrollIntoView:async(Ke,xe)=>{if(!xe)return;const St={colIndex:xe?.coords.colStart,rowIndex:xe?.coords.rowStart};return await be.current?.scrollCellCoordsIntoView(St,xe?.scroll),!0},onRequestFocus:()=>Jt.whenFocus(pr.current)},SF);const Ki=u.useMemo(()=>{const Ke=(St,Mt)=>{hn.current=!0,$n([K=>{if(!K.toClipBounds(K.getRangeCoordsBounds({rowStart:0,rowEnd:Ie.height,colStart:St,colEnd:St})))return;const G=K.getLayout(),ke=Math.max(0,G.getColOffset(St)),Pe=K.getBounds(),et=Math.min(Pe.x+Pe.width,G.getColOffset(St+1)),pt=K.getAnchor();if(Mt!==null&&(pt===zo.Left||pt===zo.Center||pt===zo.Right)){const Sn=Jt.roundAccurately(Mt*Jt.getDPI(),0),Ht=Jt.roundAccurately(n?.getColumnWidthAsFontUnit(Mt/we),2).toFixed(2),Ut="Width: "+(Mt?Ht+" ("+Sn+" pixels)":"Hidden"),Qn=qt.current.getGridElement().getRelativePointFromClient(0,0),Ct=0-Qn.y,cn=0-Qn.y+Ce,wo={x:ke-(Qn.x-Pe.x),y:Ct,width:et-ke,height:cn-Ct};requestAnimationFrame(()=>{hn.current&&N?.({anchor:wo,display:Ut})})}const it=[0,0,0,Pe.height],Pt={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Nt={x:ke-1,y:0,width:1,height:Pe.height},Ft={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Kt={x:et-1,y:0,width:1,height:Pe.height};return s.jsxs(u.Fragment,{children:[s.jsx(xs,{linePoints:it,bounds:Nt,...Pt}),s.jsx(xs,{linePoints:it,bounds:Kt,...Ft})]},"resize-dividers")}])};let xe=null;return{onResizeHeadersStart:(St,Mt,K)=>{xe=n.beginCommit(K),Ke(St,Mt)},onResizeHeaders:(St,Mt,K)=>{Ke(St,Mt)},onResizeHeadersDown:(St,Mt)=>{Ke(St,Mt)},onResizeHeadersEnd:(St,Mt,K)=>{xe?.commit({description:K}),xe=null,requestAnimationFrame(()=>U?.()),hn.current=!1,$n(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),hn.current=!1,$n(null)},...l}},[n,l,Ce,zn]),pi=u.useMemo(()=>{const Ke=(St,Mt)=>{hn.current=!0,$n([K=>{if(!K.toClipBounds(K.getRangeCoordsBounds({rowStart:St,rowEnd:St,colStart:0,colEnd:Ie.width})))return;const G=K.getLayout(),ke=Math.max(0,G.getRowOffset(St)),Pe=K.getBounds(),et=Math.min(Pe.y+Pe.height,G.getRowOffset(St+1)),pt=K.getAnchor();if(Mt!==null&&(pt===zo.Top||pt===zo.Center||pt===zo.Bottom)){const Sn=Math.floor(10*Jt.getDPI())/10,Ht=Jt.roundAccurately(Mt*Sn,0),Ut=Jt.roundAccurately(Ht/we/(n?.getRowHeaders().getScaleFactor()*Jt.getDPI()),2).toFixed(2),Qn="Height: "+(Mt?Ut+" ("+Ht+" pixels)":"Hidden"),Ct=Ne.current.getGridElement().getRelativePointFromClient(0,0),cn=0-Ct.x,wo=0-Ct.x+Ve,Xt={x:cn,y:ke-(Ct.y-Pe.y),width:wo-cn,height:et-ke};requestAnimationFrame(()=>{hn.current&&V?.({anchor:Xt,display:Qn})})}const it=[0,0,Pe.width,0],Pt={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Nt={x:0,y:ke-1,width:Pe.width,height:1},Ft={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Kt={x:0,y:et-1,width:Pe.width,height:1};return s.jsxs(u.Fragment,{children:[s.jsx(xs,{linePoints:it,bounds:Nt,...Pt}),s.jsx(xs,{linePoints:it,bounds:Kt,...Ft})]},"resize-dividers")}])};let xe=null;return{onResizeHeadersStart:(St,Mt,K)=>{xe=n.beginCommit(K),Ke(St,Mt)},onResizeHeaders:(St,Mt,K)=>{Ke(St,Mt)},onResizeHeadersDown:(St,Mt)=>{Ke(St,Mt)},onResizeHeadersEnd:(St,Mt,K)=>{xe?.commit({description:K}),xe=null,requestAnimationFrame(()=>U?.()),hn.current=!1,$n(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),hn.current=!1,$n(null)},...d}},[n,d,Ve]),pr=ir(t,()=>{const Ke=St=>{n?.getView()&&n.getView().selectMovables([]),ct.current=null,be?.current?.focus(St)},xe=async(St=null)=>{if(St||(St=n?.getView().getMovableSelection()[0]),!St)return!1;const Mt=St.getAnchorCoords();if(!Mt)return!1;const K=be.current?.getViewFromCellCoords({colIndex:Mt.colStart,rowIndex:Mt.rowStart});if(!K)return!1;const G=K.getAnchor();n?.getView().getMovableSelection().indexOf(St)===-1&&n?.getView().selectMovables([St]);let ke=Be.current?.get(G);return ke?.current?(await ke.current.focusMovable(St),!0):(ct.current={movable:St,anchor:G},!0)};return{getGridElement:()=>be.current,getRowHeaderElement:()=>Ne.current,getColumnHeaderElement:()=>qt.current,rowHeaderHeight:()=>Ce,colHeaderWidth:()=>Ve,startEdit:rt,submitEdit:()=>{Je.setMode(St=>St?.key!=="edit"?St:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{Je.setMode(St=>St?.key!=="edit"?St:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:ue!==null,focus:St=>{n?.getView().getMovableSelection().length>0&&xe()||Ke(St)},focusSheet:Ke,focusMovable:xe,contains:St=>be?.current?.contains?.(St),invalidate:tt,isSheetElement:()=>!0,getSheet:()=>n}},[n]),tt=u.useCallback(Ke=>{J.current||(be?.current?.invalidate(Ke),L?.())},[]);u.useEffect(()=>{tt()},[H]);const mt=_t?ve.edgeStrokeFill:de.fill,gt=_t?ye.fill:typeof H.headerHover=="function"?H.headerHover(de)?.fill:de.fill,ut=u.useMemo(()=>b?s.jsx("div",{className:Zr("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:b}):s.jsx(s.Fragment,{}),[b]);let vt=null;le&&ee&&(vt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${Ce}px`,width:`${Ve}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Ke=>{let xe=!Ke.ctrlKey;zt?.getCommand("selectAll")?.execute(!xe||Ke.button!==0),Ke.nativeEvent.which===3?i?.({originalEvent:Ke,clientX:Ke.clientX,clientY:Ke.clientY,rowIndex:-1,colIndex:-1}):be.current?.focus()},children:[s.jsx("div",{style:{height:Ce-5+"px",width:Ce-5+"px",clipPath:`path('M${Ce-5} 0 L0 ${Ce-5} L${Ce-5} ${Ce-5} L${Ce-5} 0 Z')`,borderRight:`2px solid ${mt}`,borderBottom:`2px solid ${mt}`,background:`${gt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${Ce}px`,width:`${Ve}px`,boxSizing:"border-box",borderRight:`solid 1px ${de.strokeFill}`,borderBottom:`solid 1px ${de.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const jt=Te(({_left:Ke,_top:xe})=>{},[]),Ot=Te(Ke=>{if(!i)return;const xe=be.current.getViewFromClient(Ke.clientX,Ke.clientY)?.getCellCoordsFromClient(Ke.clientX,Ke.clientY);xe&&(i({originalEvent:Ke,clientX:Ke.clientX,clientY:Ke.clientY,rowIndex:xe.rowIndex,colIndex:xe.colIndex}),Ke.stopPropagation(),Ke.preventDefault())},[i]),Rt=Te(Ke=>{if(Ke.shiftKey||!Ke.ctrlKey&&!Ke.metaKey)return;const{deltaY:xe}=Ke;return xe>0?zt.getCommand("sheetZoomOut")?.execute():xe<0&&zt.getCommand("sheetZoomIn")?.execute(),xe===0},[zt]);u.useEffect(()=>{bo(null),Fo.current=null,hn.current=!1,$n(null);const Ke=n?.getView().getTopLeft();jt(Ke),be.current?.scrollTo(Ke),me(Ke),ce(n.getView()),qe(_e(n.getView().getFreezePanes())),Ze(Ye()),L()},[n?.getView()]);const Bt=Te(Ke=>{const xe=Ke.getVisibleRangeCoords();if(!xe)return null;const St=[];return n.getRange(xe).forEach((Mt,K)=>{const G=K.getCoords(),ke=K.getCell();(Pe=>{if(Pe.isEmpty())return!1;const et=Pe.getSpans();if(et.width>1||et.height>1||Pe.getStyle().hasVisibleStyling()||re.isShowFormulas()&&Pe.getFormula()!==null)return!0;const pt=Pe.getValue();return pt!==null&&!(!re.isShowZeros()&&pt===0&&Pe.getType()===$.ScalarType.Number)})(ke)&&St.push({coords:G,value:ke,range:re.isShowFormulas()?null:ke.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),St},[n,re.isShowZeros(),re.isShowFormulas(),ue]);u.useEffect(()=>{const Ke=[];x&&Ke.push(...x),zn&&Ke.push(...zn),Jt.isEqualArrays(Ke,Fo.current)||(Fo.current=Ke,bo(Ke))},[x,zn,H]);const Lt=u.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[H?.header?.edgeStrokeFill]),mn=Te(Ke=>{Ke.isDefaultPrevented()||Ke.isPropagationStopped()||(ct.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Fn=u.useMemo(()=>{const Ke=Je.getMode();return Ke?.key==="cut"||Ke?.key==="copy"},[Je]),wn=Te(async Ke=>{const xe=Je.getMode();return Ke.keyCode===nn.Escape&&xe?(Ke.preventDefault(),void Je.setMode(null)):Ke.keyCode===nn.Enter&&Fn?(Ke.preventDefault(),await zt?.getCommand("paste")?.execute(),void Je.setMode(null)):void zt?.dispatchToFocusedCommand(Ke)},[zt,Je]),Ne=u.useRef(null),yt=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ce+1}px`,width:`${Ve+de.edgeStrokeWidth}px`,minWidth:`${Ve+de.edgeStrokeWidth}px`,borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,height:`calc(100% - ${Ce}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(rg,{ref:Ne,sheetElement:pr.current,gridRef:be,freezeStart:Fe?.[zo.Top],oppositeSize:Ve,containerWidth:Ve,containerHeight:Ge,sheetHeader:n.getRowHeaders(),gridStyle:ne,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:_r,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ce+1}px`,width:`${Ve+de.edgeStrokeWidth}px`,minWidth:`${Ve+de.edgeStrokeWidth}px`,borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,height:`calc(100% - ${Ce}px)`,boxSizing:"border-box",zIndex:"2",...pi?.style},...pi})}),[Ve,Ce,Ge,n,_r,Fe?.[zo.Top],H,Le,i,de.fill,d]),qt=u.useRef(null),tn=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${Ce+de.edgeStrokeWidth}px`,minHeight:`${Ce+de.edgeStrokeWidth}px`,borderBottom:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(rg,{ref:qt,sheetElement:pr.current,gridRef:be,freezeStart:Fe?.[zo.Left],oppositeSize:Ce,containerWidth:je,containerHeight:Ce,sheetHeader:n.getColumnHeaders(),gridStyle:ne,scrollPoint:tr,onSheetContextMenu:i,...Ki,style:{...Ki?.style,position:"relative",left:"0px",width:"100%",height:`${Ce+de.edgeStrokeWidth}px`,minHeight:`${Ce+de.edgeStrokeWidth}px`,borderBottom:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[Ce,je,n,tr,Fe?.[zo.Left],H,de.fill,Le,i,l]),an=Te(Ke=>{const{value:xe,key:St,...Mt}=Ke;let K=xe,G=ue;if(!G||G.colIndex===Ke.coords.colIndex&&G.rowIndex===Ke.coords.rowIndex||(G=null),!K){const et=Ke.range;if(K=n.getRange({rowIndex:et.rowStart,colIndex:et.colStart}).getCell(),K.isEmpty())return null}let ke=null;K.getHyperlink()&&(ke=async et=>{if(O?.onLinkMouseDown?.(et),et.button===0&&!et.isDefaultPrevented()){et.stopPropagation(),et.preventDefault();try{await K.getHyperlink()?.open()}catch(pt){A?.showError?.(pt)}}}),G&&G.colIndex===Ke.range.colStart&&G.rowIndex===Ke.range.rowStart&&(K=K.createTemporaryCell({value:null}));const Pe=n.getStyles();return u.createElement(zz,{...Mt,key:St,bodyStyle:oe,docTheme:Pe.getTheme(),normalStyle:Pe.getNormal(),showFormulas:re.isShowFormulas(),showZeros:re.isShowZeros(),onLinkMouseDown:ke,...O,value:K})},[n,he,oe,ue,re?.isShowFormulas(),re.isShowZeros()]),It=u.useCallback((Ke,xe)=>{const{key:St,...Mt}=Ke;return[s.jsx(Xz,{ref:xe,getVisibleCells:Bt,sheet:n,gridStyle:H,...Mt},`border-${St}`),s.jsx(bF,{ref:xe,sheet:n,commands:zt,...Mt},`table-${St}`),s.jsx(vF,{ref:xe,sheet:n,...Mt},`spill-${St}`),s.jsx(dF,{ref:xe,sheet:n,commands:zt,notifier:A,onShowTooltip:M,onCloseTooltip:U,gridStyle:H,gridRef:be,editingCoords:ue,isActive:Le,...Mt},`selection-${St}`),s.jsx(rF,{ref:xe,sheet:n,commands:zt,gridStyle:H,element:Q,notifier:A,...Mt},`copy-paste-${St}`),s.jsx(mF,{ref:xe,sheet:n,commands:zt,target:Qe,notifier:A,renderMovable:v,movableProps:{onUnFocus:()=>{pr.current.focus()}},...Mt},`movable-${St}`),s.jsx(gF,{ref:xe,sheet:n,commands:zt,notifier:A,gridStyle:H,getCellEditor:E,showProtectedError:rn,setEditingCoords:De,...Mt},`editor-${St}`)]},[n,be.current,H,E,zt,A]),[On,hr]=u.useState(!1),vr=u.useMemo(()=>{if(je===0||Ge===0)return null;const Ke=n.getStyles().getNormal(),xe=Ke.getFont(),St=Ke.getFill(),Mt=Ke.getBorder(),K=Ke.getFill().getType()===$.IFill.Type.None;let G=Y,ke=Y;const Pe=(pt,it,Pt)=>Pt?{stroke:Mt.getBottom().isNone()?"none":pt.getColor().toRGBA(oe.darkMode).toString(),...it}:it;ke=Pe(Mt.getBottom(),ke,!Mt.getBottom().isNone()),ke=Pe(Mt.getTop(),ke,!Mt.getTop().isNone()),G=Pe(Mt.getRight(),G,!Mt.getRight().isNone()),G=Pe(Mt.getLeft(),G,!Mt.getLeft().isNone());let et=re?.getGridLineColor()?.toRGBA(oe.darkMode).toString()??oe.strokeFill;return K||(ke=Pe(Mt.getBottom(),ke,!0),ke=Pe(Mt.getTop(),ke,!0),G=Pe(Mt.getRight(),G,!0),G=Pe(Mt.getLeft(),G,!0)),s.jsx(P2,{className:"sheetxl-sheet-primary",style:{...wF,...St.toCSS(oe.darkMode),...xe.toCSS(oe.darkMode,we),"--sxl-app-color-background":oe.fill,"--sxl-app-color-shadow":H.colorShadow,"--sxl-app-color-grey":H.colorGrey,"--sxl-app-color-button-fill":ge.fill,"--sxl-app-color-button-text":ge.text?.fill,"--sxl-app-color-button-border":ge.edgeStrokeFill,"--sxl-app-color-primary-dark":H.selection.strokeFill},ref:be,zoom:we,...P,onFirstRender:pt=>{hr(!0),P?.onFirstRender?.(pt),zt?.activate()},showGridLines:ae,gridLineColor:et,gridLineColumnsProps:G,gridLineRowsProps:ke,freezeLeft:Fe?.[zo.Left],freezeLeftProps:Lt,freezeTop:Fe?.[zo.Top],freezeTopProps:Lt,width:je,height:Ge,columnCount:Ie.width,rowCount:Ie.height,cursor:fn??pn??"cell",clipCells:!0,layout:he,cellRenderer:an,overlayRenderer:It,getCellCoordsAsRangeCoords:fe,getVisibleCells:Bt,onWheelScroll:Rt,onPointerDown:mn,onKeyDown:wn,onViewportChange:te,onImmediateScroll:jt,scrollPoint:pe,stageProps:{onFocus:()=>{zt?.activate()}},overlays:go})},[z]);u.useEffect(()=>{J.current||L()},[he,Fe,we,zt,pe?.left,pe?.top,oe,P,je,Ge,fn,go,Le,pn]);let dn={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};p||(dn={...dn,..._});const Wn=u.useMemo(()=>{const Ke=n.getStyles().getTheme(),xe=Ke.getColorScheme(),St=Ke.getFontScheme();return{"--sxl-doc-color-dk1":xe.getDk1().toCSS(oe.darkMode),"--sxl-doc-color-dk2":xe.getDk2().toCSS(oe.darkMode),"--sxl-doc-color-lt1":xe.getLt1().toCSS(oe.darkMode),"--sxl-doc-color-lt2":xe.getLt2().toCSS(oe.darkMode),"--sxl-doc-color-accent1":xe.getAccent1().toCSS(oe.darkMode),"--sxl-doc-color-accent2":xe.getAccent2().toCSS(oe.darkMode),"--sxl-doc-color-accent3":xe.getAccent3().toCSS(oe.darkMode),"--sxl-doc-color-accent4":xe.getAccent4().toCSS(oe.darkMode),"--sxl-doc-color-accent5":xe.getAccent5().toCSS(oe.darkMode),"--sxl-doc-color-accent6":xe.getAccent6().toCSS(oe.darkMode),"--sxl-doc-color-hlink":xe.getHlink().toCSS(oe.darkMode),"--sxl-doc-color-fol-hlink":xe.getFolHlink().toCSS(oe.darkMode),"--sxl-doc-font-major":St.getMajorFont(),"--sxl-doc-font-minor":St.getMinorFont()}},[n.getStyles().getTheme()]);let Dn=s.jsx("div",{style:dn,onTouchStart:()=>{vo()},onFocus:Ke=>{Re(!0),S?.(Ke)},onBlur:Ke=>{Re(!1),R?.(Ke)},ref:pr,...I,children:s.jsx("div",{className:Zr("sheetxl-sheet","_sheetxl-sheet_1qeq6_5"),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...Wn},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[vt,yt,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[tn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,backgroundColor:oe.fill},ref:D,onContextMenu:Ot,children:[vr,ut,s.jsx(Gz,{style:{position:"absolute",right:24,bottom:4},colorLicensee:H?.selection?.strokeFill,colorCredits:H?.body?.text?.fill})]})]})]})})});if(p){const Ke=xe=>s.jsx(Vu,{...xe,sheet:n});Dn=s.jsx(M3,{style:{flex:"1 1 100%",overflow:"hidden",background:`${de.fill}`,minHeight:2*ot.height,minWidth:2*ot.width,..._},viewport:q,touchElement:be.current?.stage,disableTouch:_n,onScrollViewport:xe=>{be.current?.scrollTo(xe)},createHorizontalScrollbar:Ke,createVerticalScrollbar:Ke,...h,children:Dn})}u.useEffect(()=>{J.current=!1,L?.(),Se&&pr.current?.focus()},[n]);const[Un,jn]=u.useState(!1),vo=Te(()=>{Un||jn(!0)},[Un]);return u.useEffect(()=>{if(On)return typeof w=="function"&&w(),Rn.detectIt().primaryInput==="touch"&&vo(),()=>{}},[w,On,Un]),Dn}));Yw.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const cg="data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=",Jw=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:a,isDragging:l,view:c,onHide:d,onShow:p,onKeyDownCapture:h,onFocus:f,onBlur:g,loadingPanel:m,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(null),[E,S]=u.useState(null),[R,_]=u.useState(null);u.useEffect(()=>{S(null),i.getDetails().then(j=>{v(!1),S(j.asUrl()),j.asSVGText?.()&&_(j.asSVGText())}).catch(j=>{console.warn(j),v(!0),S(cg),_(null)})},[i]);const A=ir(t,()=>({isPictureEditor:()=>!0}),[]),T=u.useMemo(()=>{if(E||R)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:x?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:x?"var(--sxl-app-color-background, white)":void 0,boxShadow:x?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:x?"contain":void 0,opacity:b?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:E,onLoad:()=>{w(!0)},onError:({currentTarget:j})=>{console.log("error"),j.onerror=null,S(cg),v(!0)},alt:a??`${i.getType()}`})},[b,i,E,R,l]);if(!i.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:l?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...r,width:"100%",height:"100%"},tabIndex:0,...y,onKeyDownCapture:j=>{h?.(j)},ref:A,children:[b||x?void 0:m,T]})}));Jw.displayName="PictureEditor";const CF=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:a,onHide:l,onShow:c,...d}=e;u.useEffect(()=>{},[r]);const p=ir(t,()=>({isChartEditor:()=>!0}),[]),[h,{height:f,width:g}]=Vl();if(!r.isClosed())return s.jsx("div",{...d,ref:r0([p,h]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:i.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:o?"blur(1px)":void 0,boxShadow:a?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:r.getDescription()})})})})),kF=e=>s.jsx("input",{...e}),EF=u.memo(u.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:a,onCancel:l,createInput:c=kF,notifier:d,styleHover:p={},dragging:h,maxLength:f,disabled:g=!1,readOnly:m=!1,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(!1),[E,S]=u.useState(r);u.useEffect(()=>{S(r)},[r]);const R=u.useRef(null),[_,A]=u.useState(null),T=u.useCallback(function(z){const L=z.message;_!==L&&(d?.showMessage?.(L,{type:ua.Error}),A(L))},[d,_]),j=u.useCallback(z=>{let L=!1;try{L=i?.(z)??!0}catch(D){T(D)}return L?(R.current=null,w(!1),S(z),L):(setTimeout(()=>{R.current?.focus()},0),L)},[i]),C=Te(()=>{S(r),R.current=null,w(!1),l?.()},[l,r]),k=u.useMemo(()=>{if(!b)return null;const z={className:Zr("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:f,type:"text",value:E,onFocus:L=>{R.current||(R.current=L.target,setTimeout(()=>{L.target?.select()},0))},onBlur:L=>{R.current&&j(E)},onChange:L=>{b&&S(L.target.value)},onMouseDown:L=>L.stopPropagation(),onKeyDown:L=>L.code==="Escape"?(L.preventDefault(),void C()):L.code==="Enter"?(L.preventDefault(),void j(L.target.value)):void(L.code!=="Tab"?L.stopPropagation():j(L.target.value))};return s.jsx(s.Fragment,{children:c(z)})},[b,E,j,C,c,g]),[P,O]=u.useState();u.useLayoutEffect(()=>{let z=Object.assign({},n);(h||x)&&(z=Object.assign(z,p)),O(z)},[h,x,p,n]),u.useEffect(()=>{k&&a?.(E)},[k,a,E]);const I=ir(t,()=>({startEdit(){g||m||w(!0)},cancel(){C()}}),[]);return s.jsxs("div",{...y,ref:I,style:{flexDirection:"column",display:"flex",...P},className:Zr(o),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{g||m||w(!0)},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:E}),k]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...p},children:E})]})})),O2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function i0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function hf(e){return"nodeType"in e}function zr(e){var t,n;return e?i0(e)?e:hf(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ff(e){const{Document:t}=zr(e);return e instanceof t}function M1(e){return!i0(e)&&e instanceof zr(e).HTMLElement}function Qw(e){return e instanceof zr(e).SVGElement}function Ks(e){return e?i0(e)?e.document:hf(e)?ff(e)?e:M1(e)||Qw(e)?e.ownerDocument:document:document:document}const $i=O2?u.useLayoutEffect:u.useEffect;function D2(e){const t=u.useRef(e);return $i(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function vc(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return $i(()=>{n.current!==e&&(n.current=e)},t),n}function ic(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function eu(e){const t=D2(e),n=u.useRef(null),o=u.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Hu(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let Qp={};function Jc(e,t){return u.useMemo(()=>{if(t)return t;const n=Qp[e]==null?0:Qp[e]+1;return Qp[e]=n,e+"-"+n},[e,t])}function eS(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((i,a)=>{const l=Object.entries(a);for(const[c,d]of l){const p=i[c];p!=null&&(i[c]=p+e*d)}return i},{...t})}}const bs=eS(1),Qc=eS(-1);function L2(e){if(!e)return!1;const{KeyboardEvent:t}=zr(e.target);return t&&e instanceof t}function Wu(e){if(function(n){if(!n)return!1;const{TouchEvent:o}=zr(n.target);return o&&n instanceof o}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:o}=e.touches[0];return{x:n,y:o}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:o}=e.changedTouches[0];return{x:n,y:o}}}return"clientX"in(t=e)&&"clientY"in t?{x:e.clientX,y:e.clientY}:null;var t}const Hl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Hl.Translate.toString(e),Hl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),dg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function MF(e){return e.matches(dg)?e:e.querySelector(dg)}const TF={display:"none"};function _F(e){let{id:t,value:n}=e;return u.createElement("div",{id:t,style:TF},n)}function jF(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return u.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const tS=u.createContext(null),RF={draggable:`
|
|
209
|
+
To pick up a draggable item, press the space bar.
|
|
210
|
+
While dragging, use the arrow keys to move the item.
|
|
211
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
212
|
+
`},IF={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function PF(e){let{announcements:t=IF,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=RF}=e;const{announce:i,announcement:a}=function(){const[h,f]=u.useState("");return{announce:u.useCallback(g=>{g!=null&&f(g)},[]),announcement:h}}(),l=Jc("DndLiveRegion"),[c,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),function(h){const f=u.useContext(tS);u.useEffect(()=>{if(!f)throw new Error("useDndMonitor must be used within a children of <DndContext>");return f(h)},[h,f])}(u.useMemo(()=>({onDragStart(h){let{active:f}=h;i(t.onDragStart({active:f}))},onDragMove(h){let{active:f,over:g}=h;t.onDragMove&&i(t.onDragMove({active:f,over:g}))},onDragOver(h){let{active:f,over:g}=h;i(t.onDragOver({active:f,over:g}))},onDragEnd(h){let{active:f,over:g}=h;i(t.onDragEnd({active:f,over:g}))},onDragCancel(h){let{active:f,over:g}=h;i(t.onDragCancel({active:f,over:g}))}}),[i,t])),!c)return null;const p=u.createElement(u.Fragment,null,u.createElement(_F,{id:o,value:r.draggable}),u.createElement(jF,{id:l,announcement:a}));return n?yo.createPortal(p,n):p}var or;function Uu(){}function e5(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(or||(or={}));const Wi=Object.freeze({x:0,y:0});function nS(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function OF(e,t){const n=Wu(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function oS(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function DF(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function ug(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function rS(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function pg(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const LF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=pg(t,t.left,t.top),i=[];for(const a of o){const{id:l}=a,c=n.get(l);if(c){const d=nS(pg(c),r);i.push({id:l,data:{droppableContainer:a,value:d}})}}return i.sort(oS)};function AF(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=r-o,l=i-n;if(o<r&&n<i){const c=t.width*t.height,d=e.width*e.height,p=a*l;return Number((p/(c+d-p)).toFixed(4))}return 0}const zF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:a}=i,l=n.get(a);if(l){const c=AF(l,t);c>0&&r.push({id:a,data:{droppableContainer:i,value:c}})}}return r.sort(DF)};function hg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wi}const FF=function(){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce((r,i)=>({...r,top:r.top+1*i.y,bottom:r.bottom+1*i.y,left:r.left+1*i.x,right:r.right+1*i.x}),{...e})}}();function iS(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const BF={ignoreTransform:!1};function a0(e,t){t===void 0&&(t=BF);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=zr(e).getComputedStyle(e);d&&(n=function(h,f,g){const m=iS(f);if(!m)return h;const{scaleX:y,scaleY:x,x:v,y:b}=m,w=h.left-v-(1-y)*parseFloat(g),E=h.top-b-(1-x)*parseFloat(g.slice(g.indexOf(" ")+1)),S=y?h.width/y:h.width,R=x?h.height/x:h.height;return{width:S,height:R,top:E,right:w+S,bottom:E+R,left:w}}(n,d,p))}const{top:o,left:r,width:i,height:a,bottom:l,right:c}=n;return{top:o,left:r,width:i,height:a,bottom:l,right:c}}function fg(e){return a0(e,{ignoreTransform:!0})}function A2(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(ff(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!M1(r)||Qw(r)||n.includes(r))return n;const i=zr(e).getComputedStyle(r);return r!==e&&function(c,d){d===void 0&&(d=zr(c).getComputedStyle(c));const p=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(h=>{const f=d[h];return typeof f=="string"&&p.test(f)})}(r,i)&&n.push(r),a=r,(l=i)===void 0&&(l=zr(a).getComputedStyle(a)),l.position==="fixed"?n:o(r.parentNode);var a,l}(e):n}function aS(e){const[t]=A2(e,1);return t??null}function t5(e){return O2&&e?i0(e)?e:hf(e)?ff(e)||e===Ks(e).scrollingElement?window:M1(e)?e:null:null:null}function lS(e){return i0(e)?e.scrollX:e.scrollLeft}function sS(e){return i0(e)?e.scrollY:e.scrollTop}function Lh(e){return{x:lS(e),y:sS(e)}}var sr;function cS(e){return!(!O2||!e)&&e===document.scrollingElement}function dS(e){const t={x:0,y:0},n=cS(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(sr||(sr={}));const NF={x:.2,y:.2};function $F(e,t,n,o,r){let{top:i,left:a,right:l,bottom:c}=n;o===void 0&&(o=10),r===void 0&&(r=NF);const{isTop:d,isBottom:p,isLeft:h,isRight:f}=dS(e),g={x:0,y:0},m={x:0,y:0},y=t.height*r.y,x=t.width*r.x;return!d&&i<=t.top+y?(g.y=sr.Backward,m.y=o*Math.abs((t.top+y-i)/y)):!p&&c>=t.bottom-y&&(g.y=sr.Forward,m.y=o*Math.abs((t.bottom-y-c)/y)),!f&&l>=t.right-x?(g.x=sr.Forward,m.x=o*Math.abs((t.right-x-l)/x)):!h&&a<=t.left+x&&(g.x=sr.Backward,m.x=o*Math.abs((t.left+x-a)/x)),{direction:g,speed:m}}function VF(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function uS(e){return e.reduce((t,n)=>bs(t,Lh(n)),Wi)}function pS(e,t){if(t===void 0&&(t=a0),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);aS(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const HF=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+lS(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+sS(n),0)}]];class Ah{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=A2(n),r=uS(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of HF)for(const c of a)Object.defineProperty(this,c,{get:()=>{const d=l(o),p=r[i]-d;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class wc{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function n5(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var yi,Vn;function mg(e){e.preventDefault()}function WF(e){e.stopPropagation()}(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(yi||(yi={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Vn||(Vn={}));const hS={start:[Vn.Space,Vn.Enter],cancel:[Vn.Esc],end:[Vn.Space,Vn.Enter,Vn.Tab]},UF=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Vn.Right:return{...n,x:n.x+25};case Vn.Left:return{...n,x:n.x-25};case Vn.Down:return{...n,y:n.y+25};case Vn.Up:return{...n,y:n.y-25}}};class mf{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new wc(Ks(n)),this.windowListeners=new wc(zr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(yi.Resize,this.handleCancel),this.windowListeners.add(yi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(yi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&pS(o),n(Wi)}handleKeyDown(t){if(L2(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=hS,coordinateGetter:a=UF,scrollBehavior:l="smooth"}=r,{code:c}=t;if(i.end.includes(c))return void this.handleEnd(t);if(i.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:d}=o.current,p=d?{x:d.left,y:d.top}:Wi;this.referenceCoordinates||(this.referenceCoordinates=p);const h=a(t,{active:n,context:o.current,currentCoordinates:p});if(h){const f=Qc(h,p),g={x:0,y:0},{scrollableAncestors:m}=o.current;for(const y of m){const x=t.code,{isTop:v,isRight:b,isLeft:w,isBottom:E,maxScroll:S,minScroll:R}=dS(y),_=VF(y),A={x:Math.min(x===Vn.Right?_.right-_.width/2:_.right,Math.max(x===Vn.Right?_.left:_.left+_.width/2,h.x)),y:Math.min(x===Vn.Down?_.bottom-_.height/2:_.bottom,Math.max(x===Vn.Down?_.top:_.top+_.height/2,h.y))},T=x===Vn.Right&&!b||x===Vn.Left&&!w,j=x===Vn.Down&&!E||x===Vn.Up&&!v;if(T&&A.x!==h.x){const C=y.scrollLeft+f.x,k=x===Vn.Right&&C<=S.x||x===Vn.Left&&C>=R.x;if(k&&!f.y)return void y.scrollTo({left:C,behavior:l});g.x=k?y.scrollLeft-C:x===Vn.Right?y.scrollLeft-S.x:y.scrollLeft-R.x,g.x&&y.scrollBy({left:-g.x,behavior:l});break}if(j&&A.y!==h.y){const C=y.scrollTop+f.y,k=x===Vn.Down&&C<=S.y||x===Vn.Up&&C>=R.y;if(k&&!f.x)return void y.scrollTo({top:C,behavior:l});g.y=k?y.scrollTop-C:x===Vn.Down?y.scrollTop-S.y:y.scrollTop-R.y,g.y&&y.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,bs(Qc(h,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function gg(e){return!(!e||!("distance"in e))}function yg(e){return!(!e||!("delay"in e))}mf.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=hS,onActivation:r}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(o.start.includes(a)){const l=i.activatorNode.current;return!(l&&e.target!==l||(e.preventDefault(),r?.({event:e.nativeEvent}),0))}return!1}}];class gf{constructor(t,n,o){var r;o===void 0&&(o=function(l){const{EventTarget:c}=zr(l);return l instanceof c?l:Ks(l)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=Ks(a),this.documentListeners=new wc(this.document),this.listeners=new wc(o),this.windowListeners=new wc(zr(a)),this.initialCoordinates=(r=Wu(i))!=null?r:Wi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(yi.Resize,this.handleCancel),this.windowListeners.add(yi.DragStart,mg),this.windowListeners.add(yi.VisibilityChange,this.handleCancel),this.windowListeners.add(yi.ContextMenu,mg),this.documentListeners.add(yi.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(yg(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(gg(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(yi.Click,WF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(yi.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!r)return;const c=(n=Wu(t))!=null?n:Wi,d=Qc(r,c);if(!o&&l){if(gg(l)){if(l.tolerance!=null&&n5(d,l.tolerance))return this.handleCancel();if(n5(d,l.distance))return this.handleStart()}return yg(l)&&n5(d,l.tolerance)?this.handleCancel():void this.handlePending(l,d)}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Vn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const qF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class fS extends gf{constructor(t){const{event:n}=t,o=Ks(n.target);super(t,qF,o)}}fS.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const KF={move:{name:"mousemove"},end:{name:"mouseup"}};var zh;(function(e){e[e.RightClick=2]="RightClick"})(zh||(zh={}));class mS extends gf{constructor(t){super(t,KF,Ks(t.event.target))}}mS.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==zh.RightClick&&(o?.({event:n}),!0)}}];const o5={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class gS extends gf{constructor(t){super(t,o5)}static setup(){return window.addEventListener(o5.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(o5.move.name,t)};function t(){}}}var Sc,qu;gS.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1||(o?.({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Sc||(Sc={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(qu||(qu={}));const GF={x:{[sr.Backward]:!1,[sr.Forward]:!1},y:{[sr.Backward]:!1,[sr.Forward]:!1}};var e1,Fh;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(e1||(e1={})),(Fh||(Fh={})).Optimized="optimized";const xg=new Map;function Bh(e,t){return ic(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Ku(e){let{callback:t,disabled:n}=e;const o=D2(t),r=u.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:i}=window;return new i(o)},[n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function ZF(e){return new Ah(a0(e),e)}function bg(e,t,n){t===void 0&&(t=ZF);const[o,r]=u.useState(null);function i(){r(c=>{if(!e)return null;var d;if(e.isConnected===!1)return(d=c??n)!=null?d:null;const p=t(e);return JSON.stringify(c)===JSON.stringify(p)?c:p})}const a=function(c){let{callback:d,disabled:p}=c;const h=D2(d),f=u.useMemo(()=>{if(p||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:g}=window;return new g(h)},[h,p]);return u.useEffect(()=>()=>f?.disconnect(),[f]),f}({callback(c){if(e)for(const d of c){const{type:p,target:h}=d;if(p==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),l=Ku({callback:i});return $i(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),a?.disconnect())},[e]),o}const vg=[];function wg(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==Wi;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Qc(e,n.current):Wi}function Sg(e){return u.useMemo(()=>e?function(t){const n=t.innerWidth,o=t.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}(e):null,[e])}const Cg=[];function yS(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return M1(t)?t:e}const XF=[{sensor:fS,options:{}},{sensor:mf,options:{}}],YF={current:{}},tu={draggable:{measure:fg},droppable:{measure:fg,strategy:e1.WhileDragging,frequency:Fh.Optimized},dragOverlay:{measure:a0}};class Cc extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const JF={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Cc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Uu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tu,measureDroppableContainers:Uu,windowRect:null,measuringScheduled:!1},xS={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Uu,draggableNodes:new Map,over:null,measureDroppableContainers:Uu},t1=u.createContext(xS),bS=u.createContext(JF);function QF(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Cc}}}function eB(e,t){switch(t.type){case or.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case or.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case or.DragEnd:case or.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case or.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new Cc(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case or.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const a=new Cc(e.droppable.containers);return a.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:a}}}case or.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new Cc(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function tB(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=u.useContext(t1),i=Hu(o),a=Hu(n?.id);return u.useEffect(()=>{if(!t&&!o&&i&&a!=null){if(!L2(i)||document.activeElement===i.target)return;const l=r.get(a);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[c.current,d.current]){if(!p)continue;const h=MF(p);if(h){h.focus();break}}})}},[o,t,r,a,i]),null}function vS(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const z2=u.createContext({...Wi,scaleX:1,scaleY:1});var Ga;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ga||(Ga={}));const nB=u.memo(function(e){var t,n,o,r;let{id:i,accessibility:a,autoScroll:l=!0,children:c,sensors:d=XF,collisionDetection:p=zF,measuring:h,modifiers:f,...g}=e;const m=u.useReducer(eB,void 0,QF),[y,x]=m,[v,b]=function(){const[te]=u.useState(()=>new Set),ie=u.useCallback(pe=>(te.add(pe),()=>te.delete(pe)),[te]);return[u.useCallback(pe=>{let{type:me,event:fe}=pe;te.forEach(_e=>{var Fe;return(Fe=_e[me])==null?void 0:Fe.call(_e,fe)})},[te]),ie]}(),[w,E]=u.useState(Ga.Uninitialized),S=w===Ga.Initialized,{draggable:{active:R,nodes:_,translate:A},droppable:{containers:T}}=y,j=R!=null?_.get(R):null,C=u.useRef({initial:null,translated:null}),k=u.useMemo(()=>{var te;return R!=null?{id:R,data:(te=j?.data)!=null?te:YF,rect:C}:null},[R,j]),P=u.useRef(null),[O,I]=u.useState(null),[z,L]=u.useState(null),D=vc(g,Object.values(g)),F=Jc("DndDescribedBy",i),B=u.useMemo(()=>T.getEnabled(),[T]),M=u.useMemo(()=>({draggable:{...tu.draggable,...N?.draggable},droppable:{...tu.droppable,...N?.droppable},dragOverlay:{...tu.dragOverlay,...N?.dragOverlay}}),[(N=h)==null?void 0:N.draggable,N?.droppable,N?.dragOverlay]);var N;const{droppableRects:V,measureDroppableContainers:U,measuringScheduled:J}=function(te,ie){let{dragging:pe,dependencies:me,config:fe}=ie;const[_e,Fe]=u.useState(null),{frequency:qe,measure:Je,strategy:Qe}=fe,rt=u.useRef(te),At=function(){switch(Qe){case e1.Always:return!1;case e1.BeforeDragging:return pe;default:return!pe}}(),zt=vc(At),_t=u.useCallback(function(Yt){Yt===void 0&&(Yt=[]),zt.current||Fe(_n=>_n===null?Yt:_n.concat(Yt.filter(pn=>!_n.includes(pn))))},[zt]),Vt=u.useRef(null),on=ic(Yt=>{if(At&&!pe)return xg;if(!Yt||Yt===xg||rt.current!==te||_e!=null){const _n=new Map;for(let pn of te){if(!pn)continue;if(_e&&_e.length>0&&!_e.includes(pn.id)&&pn.rect.current){_n.set(pn.id,pn.rect.current);continue}const Mn=pn.node.current,kt=Mn?new Ah(Je(Mn),Mn):null;pn.rect.current=kt,kt&&_n.set(pn.id,kt)}return _n}return Yt},[te,_e,pe,At,Je]);return u.useEffect(()=>{rt.current=te},[te]),u.useEffect(()=>{At||_t()},[pe,At]),u.useEffect(()=>{_e&&_e.length>0&&Fe(null)},[JSON.stringify(_e)]),u.useEffect(()=>{At||typeof qe!="number"||Vt.current!==null||(Vt.current=setTimeout(()=>{_t(),Vt.current=null},qe))},[qe,At,_t,...me]),{droppableRects:on,measureDroppableContainers:_t,measuringScheduled:_e!=null}}(B,{dragging:S,dependencies:[A.x,A.y],config:M.droppable}),X=function(te,ie){const pe=ie!=null?te.get(ie):void 0,me=pe?pe.node.current:null;return ic(fe=>{var _e;return ie==null?null:(_e=me??fe)!=null?_e:null},[me,ie])}(_,R),H=u.useMemo(()=>z?Wu(z):null,[z]),ne=function(){const te=O?.autoScrollEnabled===!1,ie=typeof l=="object"?l.enabled===!1:l===!1,pe=S&&!te&&!ie;return typeof l=="object"?{...l,enabled:pe}:{enabled:pe}}(),oe=(ge=X,de=M.draggable.measure,Bh(ge,de));var ge,de;(function(te){let{activeNode:ie,measure:pe,initialRect:me,config:fe=!0}=te;const _e=u.useRef(!1),{x:Fe,y:qe}=typeof fe=="boolean"?{x:fe,y:fe}:fe;$i(()=>{if(!Fe&&!qe||!ie)return void(_e.current=!1);if(_e.current||!me)return;const Je=ie?.node.current;if(!Je||Je.isConnected===!1)return;const Qe=hg(pe(Je),me);if(Fe||(Qe.x=0),qe||(Qe.y=0),_e.current=!0,Math.abs(Qe.x)>0||Math.abs(Qe.y)>0){const rt=aS(Je);rt&&rt.scrollBy({top:Qe.y,left:Qe.x})}},[ie,Fe,qe,me,pe])})({activeNode:R!=null?_.get(R):null,config:ne.layoutShiftCompensation,initialRect:oe,measure:M.draggable.measure});const ye=bg(X,M.draggable.measure,oe),ve=bg(X?X.parentElement:null),be=u.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=T.getNodeFor((t=be.current.over)==null?void 0:t.id),ce=function(te){let{measure:ie}=te;const[pe,me]=u.useState(null),fe=Ku({callback:u.useCallback(Je=>{for(const{target:Qe}of Je)if(M1(Qe)){me(rt=>{const At=ie(Qe);return rt?{...rt,width:At.width,height:At.height}:At});break}},[ie])}),_e=u.useCallback(Je=>{const Qe=yS(Je);fe?.disconnect(),Qe&&fe?.observe(Qe),me(Qe?ie(Qe):null)},[ie,fe]),[Fe,qe]=eu(_e);return u.useMemo(()=>({nodeRef:Fe,rect:pe,setRef:qe}),[pe,Fe,qe])}({measure:M.dragOverlay.measure}),we=(n=ce.nodeRef.current)!=null?n:X,ae=S?(o=ce.rect)!=null?o:ye:null,Y=!(!ce.nodeRef.current||!ce.rect),le=hg(ee=Y?null:ye,Bh(ee));var ee;const Ie=Sg(we?zr(we):null),Me=function(te){const ie=u.useRef(te),pe=ic(me=>te?me&&me!==vg&&te&&ie.current&&te.parentNode===ie.current.parentNode?me:A2(te):vg,[te]);return u.useEffect(()=>{ie.current=te},[te]),pe}(S?re??X:null),ot=function(te,ie){ie===void 0&&(ie=a0);const[pe]=te,me=Sg(pe?zr(pe):null),[fe,_e]=u.useState(Cg);function Fe(){_e(()=>te.length?te.map(Je=>cS(Je)?me:new Ah(ie(Je),Je)):Cg)}const qe=Ku({callback:Fe});return $i(()=>{qe?.disconnect(),Fe(),te.forEach(Je=>qe?.observe(Je))},[te]),fe}(Me),Ve=vS(f,{transform:{x:A.x-le.x,y:A.y-le.y,scaleX:1,scaleY:1},activatorEvent:z,active:k,activeNodeRect:ye,containerNodeRect:ve,draggingNodeRect:ae,over:be.current.over,overlayNodeRect:ce.rect,scrollableAncestors:Me,scrollableAncestorRects:ot,windowRect:Ie}),Ce=H?bs(H,A):null,je=function(te){const[ie,pe]=u.useState(null),me=u.useRef(te),fe=u.useCallback(_e=>{const Fe=t5(_e.target);Fe&&pe(qe=>qe?(qe.set(Fe,Lh(Fe)),new Map(qe)):null)},[]);return u.useEffect(()=>{const _e=me.current;if(te!==_e){Fe(_e);const qe=te.map(Je=>{const Qe=t5(Je);return Qe?(Qe.addEventListener("scroll",fe,{passive:!0}),[Qe,Lh(Qe)]):null}).filter(Je=>Je!=null);pe(qe.length?new Map(qe):null),me.current=te}return()=>{Fe(te),Fe(_e)};function Fe(qe){qe.forEach(Je=>{t5(Je)?.removeEventListener("scroll",fe)})}},[fe,te]),u.useMemo(()=>te.length?ie?Array.from(ie.values()).reduce((_e,Fe)=>bs(_e,Fe),Wi):uS(te):Wi,[te,ie])}(Me),Ge=wg(je),Be=wg(je,[ye]),ct=bs(Ve,Ge),Ye=ae?FF(ae,Ve):null,he=k&&Ye?p({active:k,collisionRect:Ye,droppableRects:V,droppableContainers:B,pointerCoordinates:Ce}):null,Ze=rS(he,"id"),[Se,Re]=u.useState(null),ue=function(te,ie,pe){return{...te,scaleX:ie&&pe?ie.width/pe.width:1,scaleY:ie&&pe?ie.height/pe.height:1}}(Y?Ve:bs(Ve,Be),(r=Se?.rect)!=null?r:null,ye),De=u.useRef(null),Le=u.useCallback((te,ie)=>{let{sensor:pe,options:me}=ie;if(P.current==null)return;const fe=_.get(P.current);if(!fe)return;const _e=te.nativeEvent,Fe=new pe({active:P.current,activeNode:fe,event:_e,options:me,context:be,onAbort(Je){if(!_.get(Je))return;const{onDragAbort:Qe}=D.current,rt={id:Je};Qe?.(rt),v({type:"onDragAbort",event:rt})},onPending(Je,Qe,rt,At){if(!_.get(Je))return;const{onDragPending:zt}=D.current,_t={id:Je,constraint:Qe,initialCoordinates:rt,offset:At};zt?.(_t),v({type:"onDragPending",event:_t})},onStart(Je){const Qe=P.current;if(Qe==null)return;const rt=_.get(Qe);if(!rt)return;const{onDragStart:At}=D.current,zt={activatorEvent:_e,active:{id:Qe,data:rt.data,rect:C}};yo.unstable_batchedUpdates(()=>{At?.(zt),E(Ga.Initializing),x({type:or.DragStart,initialCoordinates:Je,active:Qe}),v({type:"onDragStart",event:zt}),I(De.current),L(_e)})},onMove(Je){x({type:or.DragMove,coordinates:Je})},onEnd:qe(or.DragEnd),onCancel:qe(or.DragCancel)});function qe(Je){return async function(){const{active:Qe,collisions:rt,over:At,scrollAdjustedTranslate:zt}=be.current;let _t=null;if(Qe&&zt){const{cancelDrop:Vt}=D.current;_t={activatorEvent:_e,active:Qe,collisions:rt,delta:zt,over:At},Je===or.DragEnd&&typeof Vt=="function"&&await Promise.resolve(Vt(_t))&&(Je=or.DragCancel)}P.current=null,yo.unstable_batchedUpdates(()=>{x({type:Je}),E(Ga.Uninitialized),Re(null),I(null),L(null),De.current=null;const Vt=Je===or.DragEnd?"onDragEnd":"onDragCancel";if(_t){const on=D.current[Vt];on?.(_t),v({type:Vt,event:_t})}})}}De.current=Fe},[_]),W=u.useCallback((te,ie)=>(pe,me)=>{const fe=pe.nativeEvent,_e=_.get(me);if(P.current!==null||!_e||fe.dndKit||fe.defaultPrevented)return;const Fe={active:_e};te(pe,ie.options,Fe)===!0&&(fe.dndKit={capturedBy:ie.sensor},P.current=me,Le(pe,ie))},[_,Le]),Q=function(te,ie){return u.useMemo(()=>te.reduce((pe,me)=>{const{sensor:fe}=me;return[...pe,...fe.activators.map(_e=>({eventName:_e.eventName,handler:ie(_e.handler,me)}))]},[]),[te,ie])}(d,W);(function(te){u.useEffect(()=>{if(!O2)return;const ie=te.map(pe=>{let{sensor:me}=pe;return me.setup==null?void 0:me.setup()});return()=>{for(const pe of ie)pe?.()}},te.map(ie=>{let{sensor:pe}=ie;return pe}))})(d),$i(()=>{ye&&w===Ga.Initializing&&E(Ga.Initialized)},[ye,w]),u.useEffect(()=>{const{onDragMove:te}=D.current,{active:ie,activatorEvent:pe,collisions:me,over:fe}=be.current;if(!ie||!pe)return;const _e={active:ie,activatorEvent:pe,collisions:me,delta:{x:ct.x,y:ct.y},over:fe};yo.unstable_batchedUpdates(()=>{te?.(_e),v({type:"onDragMove",event:_e})})},[ct.x,ct.y]),u.useEffect(()=>{const{active:te,activatorEvent:ie,collisions:pe,droppableContainers:me,scrollAdjustedTranslate:fe}=be.current;if(!te||P.current==null||!ie||!fe)return;const{onDragOver:_e}=D.current,Fe=me.get(Ze),qe=Fe&&Fe.rect.current?{id:Fe.id,rect:Fe.rect.current,data:Fe.data,disabled:Fe.disabled}:null,Je={active:te,activatorEvent:ie,collisions:pe,delta:{x:fe.x,y:fe.y},over:qe};yo.unstable_batchedUpdates(()=>{Re(qe),_e?.(Je),v({type:"onDragOver",event:Je})})},[Ze]),$i(()=>{be.current={activatorEvent:z,active:k,activeNode:X,collisionRect:Ye,collisions:he,droppableRects:V,draggableNodes:_,draggingNode:we,draggingNodeRect:ae,droppableContainers:T,over:Se,scrollableAncestors:Me,scrollAdjustedTranslate:ct},C.current={initial:ae,translated:Ye}},[k,X,he,Ye,_,we,ae,V,T,Se,Me,ct]),function(te){let{acceleration:ie,activator:pe=Sc.Pointer,canScroll:me,draggingRect:fe,enabled:_e,interval:Fe=5,order:qe=qu.TreeOrder,pointerCoordinates:Je,scrollableAncestors:Qe,scrollableAncestorRects:rt,delta:At,threshold:zt}=te;const _t=function(fn){let{delta:zn,disabled:$n}=fn;const hn=Hu(zn);return ic(go=>{if($n||!hn||!go)return GF;const bo=Math.sign(zn.x-hn.x),Fo=Math.sign(zn.y-hn.y);return{x:{[sr.Backward]:go.x[sr.Backward]||bo===-1,[sr.Forward]:go.x[sr.Forward]||bo===1},y:{[sr.Backward]:go.y[sr.Backward]||Fo===-1,[sr.Forward]:go.y[sr.Forward]||Fo===1}}},[$n,zn,hn])}({delta:At,disabled:!_e}),[Vt,on]=function(){const fn=u.useRef(null);return[u.useCallback((zn,$n)=>{fn.current=setInterval(zn,$n)},[]),u.useCallback(()=>{fn.current!==null&&(clearInterval(fn.current),fn.current=null)},[])]}(),Yt=u.useRef({x:0,y:0}),_n=u.useRef({x:0,y:0}),pn=u.useMemo(()=>{switch(pe){case Sc.Pointer:return Je?{top:Je.y,bottom:Je.y,left:Je.x,right:Je.x}:null;case Sc.DraggableRect:return fe}},[pe,fe,Je]),Mn=u.useRef(null),kt=u.useCallback(()=>{const fn=Mn.current;if(!fn)return;const zn=Yt.current.x*_n.current.x,$n=Yt.current.y*_n.current.y;fn.scrollBy(zn,$n)},[]),rn=u.useMemo(()=>qe===qu.TreeOrder?[...Qe].reverse():Qe,[qe,Qe]);u.useEffect(()=>{if(_e&&Qe.length&&pn){for(const fn of rn){if(me?.(fn)===!1)continue;const zn=Qe.indexOf(fn),$n=rt[zn];if(!$n)continue;const{direction:hn,speed:go}=$F(fn,$n,pn,ie,zt);for(const bo of["x","y"])_t[bo][hn[bo]]||(go[bo]=0,hn[bo]=0);if(go.x>0||go.y>0)return on(),Mn.current=fn,Vt(kt,Fe),Yt.current=go,void(_n.current=hn)}Yt.current={x:0,y:0},_n.current={x:0,y:0},on()}else on()},[ie,kt,me,on,_e,Fe,JSON.stringify(pn),JSON.stringify(_t),Vt,Qe,rn,rt,JSON.stringify(zt)])}({...ne,delta:A,draggingRect:Ye,pointerCoordinates:Ce,scrollableAncestors:Me,scrollableAncestorRects:ot});const q=u.useMemo(()=>({active:k,activeNode:X,activeNodeRect:ye,activatorEvent:z,collisions:he,containerNodeRect:ve,dragOverlay:ce,draggableNodes:_,droppableContainers:T,droppableRects:V,over:Se,measureDroppableContainers:U,scrollableAncestors:Me,scrollableAncestorRects:ot,measuringConfiguration:M,measuringScheduled:J,windowRect:Ie}),[k,X,ye,z,he,ve,ce,_,T,V,Se,U,Me,ot,M,J,Ie]),se=u.useMemo(()=>({activatorEvent:z,activators:Q,active:k,activeNodeRect:ye,ariaDescribedById:{draggable:F},dispatch:x,draggableNodes:_,over:Se,measureDroppableContainers:U}),[z,Q,k,ye,x,F,_,Se,U]);return u.createElement(tS.Provider,{value:b},u.createElement(t1.Provider,{value:se},u.createElement(bS.Provider,{value:q},u.createElement(z2.Provider,{value:ue},c)),u.createElement(tB,{disabled:a?.restoreFocus===!1})),u.createElement(PF,{...a,hiddenTextDescribedById:F}))}),oB=u.createContext(null),kg="button";function wS(){return u.useContext(bS)}const rB={timeout:25};function iB(e){let{animation:t,children:n}=e;const[o,r]=u.useState(null),[i,a]=u.useState(null),l=Hu(n);return n||o||!l||r(l),$i(()=>{if(!i)return;const c=o?.key,d=o?.props.id;c!=null&&d!=null?Promise.resolve(t(d,i)).then(()=>{r(null)}):r(null)},[t,o,i]),u.createElement(u.Fragment,null,n,o?u.cloneElement(o,{ref:a}):null)}const aB={x:0,y:0,scaleX:1,scaleY:1};function lB(e){let{children:t}=e;return u.createElement(t1.Provider,{value:xS},u.createElement(z2.Provider,{value:aB},t))}const sB={position:"fixed",touchAction:"none"},cB=e=>L2(e)?"transform 250ms ease":void 0,dB=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:a,rect:l,style:c,transform:d,transition:p=cB}=e;if(!l)return null;const h=r?d:{...d,scaleX:1,scaleY:1},f={...sB,width:l.width,height:l.height,top:l.top,left:l.left,transform:Hl.Transform.toString(h),transformOrigin:r&&o?OF(o,l):void 0,transition:typeof p=="function"?p(o):p,...c};return u.createElement(n,{className:a,style:f,ref:t},i)}),SS={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Hl.Transform.toString(t)},{transform:Hl.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:a}=e;if(i!=null&&i.active)for(const[l,c]of Object.entries(i.active))c!==void 0&&(r[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,c));if(i!=null&&i.dragOverlay)for(const[l,c]of Object.entries(i.dragOverlay))c!==void 0&&o.node.style.setProperty(l,c);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&o.node.classList.add(a.dragOverlay),function(){for(const[l,c]of Object.entries(r))n.node.style.setProperty(l,c);a!=null&&a.active&&n.node.classList.remove(a.active)}})({styles:{active:{opacity:"0"}}})};let Eg=0;const uB=u.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:a,wrapperElement:l="div",className:c,zIndex:d=999}=e;const{activatorEvent:p,active:h,activeNodeRect:f,containerNodeRect:g,draggableNodes:m,droppableContainers:y,dragOverlay:x,over:v,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:E,windowRect:S}=wS(),R=u.useContext(z2),_=(k=h?.id,u.useMemo(()=>{if(k!=null)return Eg++,Eg},[k])),A=vS(a,{activatorEvent:p,active:h,activeNodeRect:f,containerNodeRect:g,draggingNodeRect:x.rect,over:v,overlayNodeRect:x.rect,scrollableAncestors:w,scrollableAncestorRects:E,transform:R,windowRect:S}),T=Bh(f),j=function(P){let{config:O,draggableNodes:I,droppableContainers:z,measuringConfiguration:L}=P;return D2((D,F)=>{if(O===null)return;const B=I.get(D);if(!B)return;const M=B.node.current;if(!M)return;const N=yS(F);if(!N)return;const{transform:V}=zr(F).getComputedStyle(F),U=iS(V);if(!U)return;const J=typeof O=="function"?O:function(X){const{duration:H,easing:ne,sideEffects:oe,keyframes:ge}={...SS,...X};return de=>{let{active:ye,dragOverlay:ve,transform:be,...re}=de;if(!H)return;const ce=ve.rect.left-ye.rect.left,we=ve.rect.top-ye.rect.top,ae={scaleX:be.scaleX!==1?ye.rect.width*be.scaleX/ve.rect.width:1,scaleY:be.scaleY!==1?ye.rect.height*be.scaleY/ve.rect.height:1},Y={x:be.x-ce,y:be.y-we,...ae},le=ge({...re,active:ye,dragOverlay:ve,transform:{initial:be,final:Y}}),[ee]=le,Ie=le[le.length-1];if(JSON.stringify(ee)===JSON.stringify(Ie))return;const Me=oe?.({active:ye,dragOverlay:ve,...re}),ot=ve.node.animate(le,{duration:H,easing:ne,fill:"forwards"});return new Promise(Ve=>{ot.onfinish=()=>{Me?.(),Ve()}})}}(O);return pS(M,L.draggable.measure),J({active:{id:D,data:B.data,node:M,rect:L.draggable.measure(M)},draggableNodes:I,dragOverlay:{node:F,rect:L.dragOverlay.measure(N)},droppableContainers:z,measuringConfiguration:L,transform:U})})}({config:o,draggableNodes:m,droppableContainers:y,measuringConfiguration:b}),C=T?x.setRef:void 0;var k;return u.createElement(lB,null,u.createElement(iB,{animation:j},h&&_?u.createElement(dB,{key:_,id:h.id,ref:C,as:l,activatorEvent:p,adjustScale:t,className:c,transition:i,rect:T,style:{zIndex:d,...r},transform:A},n):null))});function yf(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function pB(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function Cd(e){return e!==null&&e>=0}const kd={scaleX:1,scaleY:1},hB=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:a}=e;const l=(t=n[r])!=null?t:o;if(!l)return null;const c=function(d,p,h){const f=d[p],g=d[p-1],m=d[p+1];return f&&(g||m)?h<p?g?f.left-(g.left+g.width):m.left-(f.left+f.width):m?m.left-(f.left+f.width):f.left-(g.left+g.width):0}(n,a,r);if(a===r){const d=n[i];return d?{x:r<i?d.left+d.width-(l.left+l.width):d.left-l.left,y:0,...kd}:null}return a>r&&a<=i?{x:-l.width-c,y:0,...kd}:a<r&&a>=i?{x:l.width+c,y:0,...kd}:{x:0,y:0,...kd}},xf=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=yf(t,o,n),a=t[r],l=i[r];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},CS="Sortable",kS=u.createContext({activeIndex:-1,containerId:CS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:xf,disabled:{draggable:!1,droppable:!1}});function fB(e){let{children:t,id:n,items:o,strategy:r=xf,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:d,measureDroppableContainers:p}=wS(),h=Jc(CS,n),f=l.rect!==null,g=u.useMemo(()=>o.map(R=>typeof R=="object"&&"id"in R?R.id:R),[o]),m=a!=null,y=a?g.indexOf(a.id):-1,x=d?g.indexOf(d.id):-1,v=u.useRef(g),b=!function(R,_){if(R===_)return!0;if(R.length!==_.length)return!1;for(let A=0;A<R.length;A++)if(R[A]!==_[A])return!1;return!0}(g,v.current),w=x!==-1&&y===-1||b,E=function(R){return typeof R=="boolean"?{draggable:R,droppable:R}:R}(i);$i(()=>{b&&m&&p(g)},[b,g,m,p]),u.useEffect(()=>{v.current=g},[g]);const S=u.useMemo(()=>({activeIndex:y,containerId:h,disabled:E,disableTransforms:w,items:g,overIndex:x,useDragOverlay:f,sortedRects:pB(g,c),strategy:r}),[y,h,E.draggable,E.droppable,w,g,x,c,f,r]);return u.createElement(kS.Provider,{value:S},t)}const mB=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return yf(n,o,r).indexOf(t)},gB=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:d}=e;return!(!d||!o||l!==i&&r===a||!n&&(a===r||t!==c))},yB={duration:200,easing:"ease"},ES="transform",xB=Hl.Transition.toString({property:ES,duration:0,easing:"linear"}),bB={roleDescription:"sortable"};function Gu(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const vB=[Vn.Down,Vn.Right,Vn.Up,Vn.Left],wB=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(vB.includes(e.code)){if(e.preventDefault(),!n||!o)return;const p=[];i.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const m=r.get(g.id);if(m)switch(e.code){case Vn.Down:o.top<m.top&&p.push(g);break;case Vn.Up:o.top>m.top&&p.push(g);break;case Vn.Left:o.left>m.left&&p.push(g);break;case Vn.Right:o.left<m.left&&p.push(g)}});const h=(g=>{let{collisionRect:m,droppableRects:y,droppableContainers:x}=g;const v=ug(m),b=[];for(const w of x){const{id:E}=w,S=y.get(E);if(S){const R=ug(S),_=v.reduce((T,j,C)=>T+nS(R[C],j),0),A=Number((_/4).toFixed(4));b.push({id:E,data:{droppableContainer:w,value:A}})}}return b.sort(oS)})({collisionRect:o,droppableRects:r,droppableContainers:p});let f=rS(h,"id");if(f===a?.id&&h.length>1&&(f=h[1].id),f!=null){const g=i.get(n.id),m=i.get(f),y=m?r.get(m.id):null,x=m?.node.current;if(x&&y&&g&&m){const v=A2(x).some((R,_)=>l[_]!==R),b=Mg(g,m),w=(d=m,!!(Gu(c=g)&&Gu(d)&&Mg(c,d))&&c.data.current.sortable.index<d.data.current.sortable.index),E=v||!b?{x:0,y:0}:{x:w?o.width-y.width:0,y:w?o.height-y.height:0},S={x:y.left,y:y.top};return E.x&&E.y?S:Qc(S,E)}}}var c,d};function Mg(e,t){return!(!Gu(e)||!Gu(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const SB=e=>{let{transform:t}=e;return{...t,y:0}},CB=u.memo(u.forwardRef((e,t)=>{const{children:n,style:o,className:r,index:i,editing:a,editable:l,selectedIndex:c,background:d,activeColor:p,borderColor:h,borderWidth:f,dragging:g,...m}=e;return s.jsxs("div",{ref:t,className:Zr(r),style:{...o,display:"flex",flexDirection:"column",background:c===i?"white":d,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===i?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...m,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===i?"0px":"-1px",marginTop:c===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===i?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===i&&p?p?.toCSS():"none",minHeight:"2px"}})]})})),zi={Wrapper:"_Wrapper_1wyun_25",fadeIn:"_fadeIn_1wyun_33",dragOverlay:"_dragOverlay_1wyun_37",Item:"_Item_1wyun_47",withHandle:"_withHandle_1wyun_61",dragging:"_dragging_1wyun_66",disabled:"_disabled_1wyun_74"},MS=u.memo(u.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:a,index:l,listeners:c,onRemove:d,renderItem:p,sorting:h,style:f,transition:g,transform:m,value:y,wrapperStyle:x,...v},b)=>{u.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=p?p({dragOverlay:!!t,dragging:!!n,sorting:!!h,index:l,fadeIn:!!r,listeners:c,ref:b,style:f,transform:m,transition:g,value:y}):s.jsx(s.Fragment,{children:y});return s.jsx("div",{className:Zr("tab-item",zi.Wrapper,r&&zi.fadeIn,h&&zi.sorting,t&&zi.dragOverlay),style:{...x,transition:[g,x?.transition].filter(Boolean).join(", "),"--translate-x":m?`${Math.round(m.x)}px`:void 0,"--translate-y":m?`${Math.round(m.y)}px`:void 0,"--scale-x":m?.scaleX?`${m.scaleX}`:void 0,"--scale-y":m?.scaleY?`${m.scaleY}`:void 0,"--index":l},ref:b,children:s.jsx("div",{className:Zr(zi.Item,n&&zi.dragging,i&&zi.withHandle,t&&zi.dragOverlay,o&&zi.disabled,e&&zi.color,"dragging"),style:f,"data-cypress":"draggable-item",...i?void 0:c,...v,tabIndex:i?void 0:-1,children:w})})})),Tg={Row:"_Row_1kr10_1"},kB=u.memo(u.forwardRef(({children:e,horizontal:t,style:n},o)=>s.jsx("div",{ref:o,style:{...n},className:Zr(Tg.Row,t&&Tg.horizontal),children:e}))),EB={...SS},MB=u.memo(u.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:a=LF,coordinateGetter:l=wB,dropAnimation:c=EB,getItemStyles:d=()=>({}),getNewIndex:p,handle:h=!1,items:f,onMove:g,isDisabled:m=()=>!1,measuring:y,modifiers:x,renderItem:v,renderDivider:b,reorderItems:w=yf,strategy:E=xf,style:S,useDragOverlay:R=!0,onDragStart:_,wrapperStyle:A=()=>({})}=e,[T,j]=u.useState(()=>f);u.useEffect(()=>{j(f)},[f]);const[C,k]=u.useState(null),P=function(){for(var D=arguments.length,F=new Array(D),B=0;B<D;B++)F[B]=arguments[B];return u.useMemo(()=>[...F].filter(M=>M!=null),[...F])}(e5(mS,{activationConstraint:o}),e5(gS,{activationConstraint:o}),e5(mf,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:l})),O=T.indexOf.bind(T),I=C?O(C):-1,z=[];T.map((D,F)=>{z.push(s.jsx(TB,{id:D,handle:h,index:F,style:d,wrapperStyle:A,disabled:m(D),renderItem:v,animateLayoutChanges:r,useDragOverlay:R,getNewIndex:p},D+"-"+F));const B=b?.({key:"divider-"+F});B&&z.push(B)});const{getPortalContainer:L}=(u.useEffect(()=>{function D(){const F=document.fullscreenElement;if(!F)return;let B=F.querySelector(".fullscreen-portal-root");B||(B=document.createElement("div"),B.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",F.appendChild(B))}return J1++,D(),document.addEventListener("fullscreenchange",D),()=>{document.removeEventListener("fullscreenchange",D),J1--,J1<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(F=>{F.parentNode&&F.parentNode.removeChild(F)}),J1=0)}},[]),{getPortalContainer:WR});return s.jsxs(nB,{sensors:P,collisionDetection:a,onDragStart:D=>{const{active:F}=D;F&&(_?.(D),k(F.id))},autoScroll:{canScroll:D=>!0},onDragEnd:D=>{if(k(null),D.over){const F=O(D.over.id);I!==F&&(j(B=>w(B,I,F)),g?.(I,F))}},onDragCancel:()=>{k(null)},measuring:y,modifiers:x,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...S},className:Zr(n,zi.Wrapper),children:s.jsx(fB,{items:T,strategy:E,children:s.jsx(kB,{ref:t,children:z})})}),R?yo.createPortal(s.jsx(uB,{adjustScale:i,dropAnimation:c,children:C?s.jsx(MS,{value:T[I],handle:h,renderItem:v,wrapperStyle:A({index:I,isDragging:!0,id:T[I]}),index:I,dragging:!0,style:d({id:T[I],index:I,isSorting:C!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),L()):null]})}));function TB({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:a,style:l,renderItem:c,useDragOverlay:d,wrapperStyle:p}){const{attributes:h,isDragging:f,isSorting:g,listeners:m,overIndex:y,setNodeRef:x,transform:v,transition:b}=function(w){let{animateLayoutChanges:E=gB,attributes:S,disabled:R,data:_,getNewIndex:A=mB,id:T,strategy:j,resizeObserverConfig:C,transition:k=yB}=w;const{items:P,containerId:O,activeIndex:I,disabled:z,disableTransforms:L,sortedRects:D,overIndex:F,useDragOverlay:B,strategy:M}=u.useContext(kS),N=(he=z,typeof(Ye=R)=="boolean"?{draggable:Ye,droppable:!1}:{draggable:(Ze=Ye?.draggable)!=null?Ze:he.draggable,droppable:(Se=Ye?.droppable)!=null?Se:he.droppable}),V=P.indexOf(T),U=u.useMemo(()=>({sortable:{containerId:O,index:V,items:P},..._}),[O,_,V,P]),J=u.useMemo(()=>P.slice(P.indexOf(T)),[P,T]),{rect:X,node:H,isOver:ne,setNodeRef:oe}=function(Re){let{data:ue,disabled:De=!1,id:Le,resizeObserverConfig:W}=Re;const Q=Jc("Droppable"),{active:q,dispatch:se,over:te,measureDroppableContainers:ie}=u.useContext(t1),pe=u.useRef({disabled:De}),me=u.useRef(!1),fe=u.useRef(null),_e=u.useRef(null),{disabled:Fe,updateMeasurementsFor:qe,timeout:Je}={...rB,...W},Qe=vc(qe??Le),rt=Ku({callback:u.useCallback(()=>{me.current?(_e.current!=null&&clearTimeout(_e.current),_e.current=setTimeout(()=>{ie(Array.isArray(Qe.current)?Qe.current:[Qe.current]),_e.current=null},Je)):me.current=!0},[Je]),disabled:Fe||!q}),At=u.useCallback((on,Yt)=>{rt&&(Yt&&(rt.unobserve(Yt),me.current=!1),on&&rt.observe(on))},[rt]),[zt,_t]=eu(At),Vt=vc(ue);return u.useEffect(()=>{rt&&zt.current&&(rt.disconnect(),me.current=!1,rt.observe(zt.current))},[zt,rt]),u.useEffect(()=>(se({type:or.RegisterDroppable,element:{id:Le,key:Q,disabled:De,node:zt,rect:fe,data:Vt}}),()=>se({type:or.UnregisterDroppable,key:Q,id:Le})),[Le]),u.useEffect(()=>{De!==pe.current.disabled&&(se({type:or.SetDroppableDisabled,id:Le,key:Q,disabled:De}),pe.current.disabled=De)},[Le,Q,De,se]),{active:q,rect:fe,isOver:te?.id===Le,node:zt,over:te,setNodeRef:_t}}({id:T,data:U,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:J,...C}}),{active:ge,activatorEvent:de,activeNodeRect:ye,attributes:ve,setNodeRef:be,listeners:re,isDragging:ce,over:we,setActivatorNodeRef:ae,transform:Y}=function(Re){let{id:ue,data:De,disabled:Le=!1,attributes:W}=Re;const Q=Jc("Draggable"),{activators:q,activatorEvent:se,active:te,activeNodeRect:ie,ariaDescribedById:pe,draggableNodes:me,over:fe}=u.useContext(t1),{role:_e=kg,roleDescription:Fe="draggable",tabIndex:qe=0}=W??{},Je=te?.id===ue,Qe=u.useContext(Je?z2:oB),[rt,At]=eu(),[zt,_t]=eu(),Vt=(Yt=q,_n=ue,u.useMemo(()=>Yt.reduce((pn,Mn)=>{let{eventName:kt,handler:rn}=Mn;return pn[kt]=fn=>{rn(fn,_n)},pn},{}),[Yt,_n])),on=vc(De);var Yt,_n;return $i(()=>(me.set(ue,{id:ue,key:Q,node:rt,activatorNode:zt,data:on}),()=>{const pn=me.get(ue);pn&&pn.key===Q&&me.delete(ue)}),[me,ue]),{active:te,activatorEvent:se,activeNodeRect:ie,attributes:u.useMemo(()=>({role:_e,tabIndex:qe,"aria-disabled":Le,"aria-pressed":!(!Je||_e!==kg)||void 0,"aria-roledescription":Fe,"aria-describedby":pe.draggable}),[Le,_e,qe,Je,Fe,pe.draggable]),isDragging:Je,listeners:Le?void 0:Vt,node:rt,over:fe,setNodeRef:At,setActivatorNodeRef:_t,transform:Qe}}({id:T,data:U,attributes:{...bB,...S},disabled:N.draggable}),le=function(){for(var Re=arguments.length,ue=new Array(Re),De=0;De<Re;De++)ue[De]=arguments[De];return u.useMemo(()=>Le=>{ue.forEach(W=>W(Le))},ue)}(oe,be),ee=!!ge,Ie=ee&&!L&&Cd(I)&&Cd(F),Me=!B&&ce,ot=Ie?(Me&&Ie?Y:null)??(j??M)({rects:D,activeNodeRect:ye,activeIndex:I,overIndex:F,index:V}):null,Ve=Cd(I)&&Cd(F)?A({id:T,items:P,activeIndex:I,overIndex:F}):V,Ce=ge?.id,je=u.useRef({activeId:Ce,items:P,newIndex:Ve,containerId:O}),Ge=P!==je.current.items,Be=E({active:ge,containerId:O,isDragging:ce,isSorting:ee,id:T,index:V,items:P,newIndex:je.current.newIndex,previousItems:je.current.items,previousContainerId:je.current.containerId,transition:k,wasDragging:je.current.activeId!=null}),ct=function(Re){let{disabled:ue,index:De,node:Le,rect:W}=Re;const[Q,q]=u.useState(null),se=u.useRef(De);return $i(()=>{if(!ue&&De!==se.current&&Le.current){const te=W.current;if(te){const ie=a0(Le.current,{ignoreTransform:!0}),pe={x:te.left-ie.left,y:te.top-ie.top,scaleX:te.width/ie.width,scaleY:te.height/ie.height};(pe.x||pe.y)&&q(pe)}}De!==se.current&&(se.current=De)},[ue,De,Le,W]),u.useEffect(()=>{Q&&q(null)},[Q]),Q}({disabled:!Be,index:V,node:H,rect:X});var Ye,he,Ze,Se;return u.useEffect(()=>{ee&&je.current.newIndex!==Ve&&(je.current.newIndex=Ve),O!==je.current.containerId&&(je.current.containerId=O),P!==je.current.items&&(je.current.items=P)},[ee,Ve,O,P]),u.useEffect(()=>{if(Ce===je.current.activeId)return;if(Ce!=null&&je.current.activeId==null)return void(je.current.activeId=Ce);const Re=setTimeout(()=>{je.current.activeId=Ce},50);return()=>clearTimeout(Re)},[Ce]),{active:ge,activeIndex:I,attributes:ve,data:U,rect:X,index:V,newIndex:Ve,items:P,isOver:ne,isSorting:ee,isDragging:ce,listeners:re,node:H,overIndex:F,over:we,setNodeRef:le,setActivatorNodeRef:ae,setDroppableNodeRef:oe,setDraggableNodeRef:be,transform:ct??ot,transition:ct||Ge&&je.current.newIndex===V?xB:Me&&!L2(de)||!k||!ee&&!Be?void 0:Hl.Transition.toString({...k,property:ES})}}({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(MS,{ref:x,value:r,disabled:e,dragging:f,sorting:g,handle:o,renderItem:c,index:i,style:l({index:i,id:r,isDragging:f,isSorting:g,overIndex:y}),onRemove:a?()=>a(r):void 0,transform:v,transition:b,wrapperStyle:p({index:i,isDragging:f,id:r}),listeners:m,"data-index":i,"data-id":r,dragOverlay:!d&&f,...h})}const _B=new $.Color("rgb(33, 115, 70)"),jB="#eee",RB=e=>s.jsx(CB,{...e}),TS=u.memo(u.forwardRef((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:a=[],onSelectedTabIndexChange:l,onTabNameChange:c,onTabMove:d,createScrollStartButton:p=Wx,createScrollEndButton:h=Ux,createScrollEdgeButton:f=jR,createTabButton:g=RB,createTabDivider:m,editLabelProps:y,disabled:x=!1,disableDrag:v=!1,background:b="white",activeColor:w=_B,borderColor:E=jB,borderWidth:S=1}=e,[R,_]=u.useState(i),[A,T]=u.useState(a),j=u.useCallback(ae=>{const Y=L.current?.[ae]?.closest(".tab-item")??L.current?.[ae];Y&&U.current?.scrollTo({top:Y.offsetTop,left:Y.offsetLeft,behavior:"smooth"})},[]);u.useEffect(()=>{j(i)},[i]);const C=u.useCallback((ae,Y)=>{Y!==R&&(_(Y),l?.(Y)),j(Y)},[l,R]),k=u.useCallback((ae,Y)=>{d?.(ae,Y)},[d]),P=u.useRef(null),[O,I]=u.useState(-1),z=u.useCallback((ae,Y)=>{c?.(ae,Y)},[c]);u.useLayoutEffect(()=>{_(i)},[i]),u.useLayoutEffect(()=>{T(a)},[a]);const L=u.useRef([]),D=u.useRef(null);u.useImperativeHandle(t,()=>Object.assign({startEdit(ae){L.current?.[ae]?.startEdit()},cancel(ae){L.current?.[ae]?.cancel()}},D.current),[R,O]);const F=u.useCallback(({value:ae,index:Y,dragging:le})=>{const{style:ee,maxLength:Ie,...Me}=y||{},ot=s.jsx(EF,{ref:Ve=>{L.current[Y]=Ve},value:ae,disabled:x,maxLength:Ie,style:{color:R===Y&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...ee},styleHover:{},onSubmit:Ve=>(P.current=!1,I(-1),z(Y,Ve)),onCancel:()=>{P.current=!1,I(-1)},onChange:Ve=>{P.current=!0,I(Y)},...Me});return g({onClick:Ve=>C(Ve,Y),value:ae,index:Y,editing:O===Y&&P.current,editable:!0,disabled:x,selectedIndex:R,background:b,activeColor:w,borderColor:E,borderWidth:S,dragging:le,children:ot})},[R,z,C,y,x,O,g]),[B,{width:M}]=Vl(),[N,{width:V}]=Vl(),U=u.useRef(null),[J,X]=u.useState({left:0,top:0,width:0,height:0}),[H,ne]=u.useState(null);u.useEffect(()=>{H!==null&&U.current&&U.current.scrollTo({left:H,behavior:"smooth"})},[H]);const oe=u.useCallback((ae,Y=!1)=>{if(!U.current)return 0;let le=U.current.firstChild.getBoundingClientRect(),ee=U.current.firstChild.firstChild.children,Ie=0;return Ie=Y?0:f4.getScrollTo(ae,le.left,ee,!0,Math.max(0,ae-200)),ne(Ie),Math.max(0,Ie)},[]),ge=u.useCallback((ae,Y=!1)=>{if(!U.current)return 0;let le=U.current.firstChild.getBoundingClientRect(),ee=U.current.firstChild.firstChild.children,Ie=0;const Me=Math.ceil(V-M);return Ie=Y?Me:f4.getScrollTo(ae,le.left,ee,!1,Math.max(0,ae+200)),ne(Ie),Math.min(Me,Ie)},[V,M]),de=u.useRef(null),ye=u.useRef(null),ve=u.useCallback(()=>{ye.current&&(clearTimeout(ye.current),ye.current=null,de.current=null)},[]),be=u.useCallback((ae,Y,le=260)=>{de.current=ae,ye.current=setTimeout(()=>{const ee=Y?oe(de.current||ae):ge(de.current||ae);ee!==de.current?be(ee,Y,120):ve()},le)},[oe,ge,ve]);u.useEffect(()=>()=>ve(),[ve]);const re=u.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(J.left)<=0||Math.floor(V-M)===0,orientation:yr.Horizontal,onMouseUp:ve,onMouseLeave:ve,onMouseDown:()=>be(U.current.scrollLeft,!0),onClick:ae=>oe(Math.min(U.current.scrollLeft,H??Number.MAX_SAFE_INTEGER),ae.ctrlKey)}),[J,H,V,M]),ce=u.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(V-M)<=Math.ceil(J.left),orientation:yr.Horizontal,onMouseUp:ve,onMouseLeave:ve,onMouseDown:()=>be(U.current.scrollLeft,!1),onClick:ae=>ge(Math.max(U.current.scrollLeft,H??0),ae.ctrlKey)}),[J,H,V,M]),we=u.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,f?.(re)]}),[re,ce,p,h,n,f]);return s.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:Zr("_TabStrip_3x0dp_1",r),ref:D,children:[s.jsx("div",{style:{borderTop:`solid ${E} ${S}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:we}),s.jsx("div",{className:"Tabs",ref:B,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:U,onScroll:ae=>{X({left:ae.target.scrollLeft,top:ae.target.scrollTop,width:ae.target.scrollWidth,height:ae.target.scrollHeight})},children:s.jsx(MB,{isDisabled:ae=>x||v,items:A,strategy:hB,modifiers:[SB],ref:N,renderItem:F,renderDivider:m,onMove:k,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:f(ce)})]})}));TS.displayName="TabStrip";const IB=u.createContext(null),bf=()=>{const e=u.useContext(IB),[t]=u.useState(()=>new $.ThemeCollection);return u.useMemo(()=>e||t,[e])},PB=u.lazy(()=>Promise.resolve().then(()=>require("./hSI9QVPgIxqt3pXc.cjs"))),OB={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},_g=async(e,t,n)=>{const o=e.getModel();if(!o)return;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),a=await i.getNavigationTree(o.uri.toString()),l=e.getPosition();let c={...l};c.lineNumber=1,c.column=1;let d=!1;for(let y=l.lineNumber;y>=1;y--)if(o.getLineContent(y).trim()===""){const x=vf(a,o.getOffsetAt({lineNumber:y,column:1}),"function");if(!x||LB(x)){d=!0,c.lineNumber=y+1;break}{const v=x.spans[0].start;y=o.getPositionAt(v).lineNumber,c.lineNumber=y}}let p=n,h=!1;!d&&!p.startsWith(`
|
|
213
|
+
`)&&c.lineNumber>1&&(p=`
|
|
214
|
+
`+p,h=!0);let f=!1;o.getLineCount()>1&&(p.endsWith(`
|
|
215
|
+
|
|
216
|
+
`)||(p+=`
|
|
217
|
+
|
|
218
|
+
`,f=!0));const g=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${p}`}];let m=null;o.pushEditOperations([],g,y=>(m=y[0].range,h&&m.startLineNumber++,f&&m.endLineNumber--,[new t.Selection(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn)])),e.setSelection({startLineNumber:m.endLineNumber,startColumn:m.endColumn,endLineNumber:m.startLineNumber,endColumn:m.startColumn})};function DB(e,t){let n=null;for(let o=0;!n&&o<e.length;o++){const r=e[o];r.getName()===t.text&&(n=r)}return n?n.getContext():"formula"}function Nh(e,t,n,o,r=[]){if(o.kind==="function"&&o.kindModifiers==="export"){const i=o.spans[0].start,a=e.getPositionAt(i);r.push({name:o.text,type:DB(n,o),lineNumber:a.lineNumber})}if(o.childItems)for(const i of o.childItems)Nh(e,t,n,i,r);return r}function vf(e,t,n="function",o){const r=e.spans;for(let i=0;i<r.length;i++){const a=r[i];if(a.start<=t&&t<a.start+a.length){if(e.kind===n&&(!o||e.kindModifiers===o))return e;for(const l of e.childItems||[]){const c=vf(l,t,n,o);if(c)return c}}return null}}function LB(e){return e.kind==="comment"}const AB=u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:a,darkMode:l,loadingPanel:c,autoFocus:d=!0,onStatusChange:p,...h}=e,f=u.useRef(null),g=Te(a,[a]),m=u.useRef(!1),y=u.useMemo(()=>({contains(D){if(!f.current)return;const F=f.current.editor;return F&&F.getDomNode()?.contains(D)},focus(){if(!f.current)return;const D=f.current.editor;return D&&D.getDomNode()?.focus()}}),[]),x=u.useMemo(()=>[new He("help",y,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),v=u.useMemo(()=>{let D=null;const F=()=>y;return D=r?r.createChildGroup(F,"scriptEditor",!1):new e0(F,"scriptEditor"),D.addCommands(x,!0),D},[r,x]),b=_o(v,["executeSelectedScript"])[0],w=b?.context(),E=Te(D=>{b?.execute(D)},[b]),S=u.useRef(""),[R,_]=u.useState(!1),A=Te(async()=>{if(!f.current)return null;const D=f.current,F=D.editor;if(!F)return null;const B=D.monaco,M=await(async(N,V,U="export")=>{const J=N.getModel();if(!J)return null;const X=await V.languages.typescript.getTypeScriptWorker(),H=await X(J.uri),ne=await H.getNavigationTree(J.uri.toString());let oe=null,ge=N.getSelection();const de=ge.startLineNumber===ge.endLineNumber&&ge.startColumn===ge.endColumn?J.getLineCount():Math.min(ge.endLineNumber,J.getLineCount());for(let ye=ge.startLineNumber;!oe&&ye<=de;ye++){const ve=vf(ne,J.getOffsetAt({lineNumber:ye,column:1}),"function",U);ve&&(oe=ve.text)}return oe})(F,B);return p?.({message:(M??"").toUpperCase()}),M?{source:F.getValue(),name:M}:null},[p]),T=Te(async(D,F,B)=>{const M=await w.getScripts().createModule({source:B?.getValue(),declarationsOnly:!0}),N=M?M.getFunctions().search():Jt.EmptyArray;M&&(async function(V,U){const J=[];for(let X=1;X<V.getLineCount()+1;X++){const H={startLineNumber:X,startColumn:1,endLineNumber:X,endColumn:V.getLineLength(X)+1},ne=V.getValueInRange(H).indexOf("modelt");ne!==-1&&J.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:U.MarkerSeverity.Hint,startLineNumber:H.startLineNumber,startColumn:ne+1,endLineNumber:H.startLineNumber,endColumn:ne+5})}U.editor.setModelMarkers(V,"owner",J)}(D,F),async function(V,U,J,X){const H=await U.languages.typescript.getTypeScriptWorker(),ne=await H(V.uri),oe=await ne.getNavigationTree(V.uri.toString()),ge=Nh(V,U,X,oe).map(de=>{let ye=null,ve=null;return de.type==="formula"?(ye="formula.margin-icon",ve="Formula"):de.type==="macro"?(ye="macro.margin-icon",ve="Macro"):de.type==="autoRun"&&(ye="autorun.margin-icon",ve="Auto Run"),{range:new U.Range(de.lineNumber,1,de.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:ye,glyphMarginHoverMessage:ve,stickiness:U.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});P.current&&P.current.clear(),P.current=J.createDecorationsCollection(ge)}(D,F,B,N))},[w]),j=Te(Jt.debounce(T,580),[]),C=Te(async(D=void 0)=>{if(!f.current||!w)return;const F=f.current.editor.getPosition(),B={cursor:F?F.toString():""};D!==void 0&&(B.message=D),p?.(B);const M=A();w.setSelectedFunction(M)},[w,p]);u.useEffect(()=>{if(!w)return;const D={insertSnippet:B=>{f.current?.editor&&(R?_g(f.current.editor,f.current.monaco,B):S.current=B)}};w.setEditor(D),w.setSelectedFunction(A());const F=w.addContainerListener({onBeforeSave:async()=>{if(!f.current?.editor||!w)return;const B=f.current.editor,M=w?.getScripts().getModules().getByName("scripting"),N=M?.getSource(),V=B.getValue();if((N?.length??0)===V.length&&N===V)return;await w.saveSource(B.getValue());const U=(N?.length??0)!==V.length||N!==V;p?.({dirty:U})},onReadonlyChange(){},onScriptChange:async()=>{if(!f.current?.editor||!w)return;const B=f.current.editor,M=w.getScripts().getModules().search()[0]?.getSource()??"";B.setValue(M)}});return()=>{F(),w.setSelectedFunction(null),w.setEditor(null)}},[w,R]),u.useEffect(()=>()=>{if(!f.current?.editor)return;const D=f.current.editor;w?.saveSource(D.getValue())},[]);const k=Te(D=>{const F=f.current;if(!F)return!1;const B=F.editor;return!!B&&(B.focus(),!0)},[]),P=u.useRef(null),O=Te((D,F)=>{f.current={monaco:F,editor:D},_(!0),C("Loading Types");const B=w.getScripts().getModules().search()[0]?.getSource()??"";D.setValue(B),Promise.resolve().then(()=>require("./BiiW2FlRZHxGIWso.cjs")).then(V=>V.c).then(V=>{C(""),V.AutoTypings.create(D,{shareCache:!0,monaco:F,onError:U=>{U==="Not implemented yet"&&(U="Compile Errors"),console.warn("Error compiling types",U)}}).then(async U=>{const J=D.getModel();j(J,F,D)})}),D.addCommand("executeScript",function(V,...U){U?.[0]&&E({functionName:U?.[0]})},""),D.addAction({id:"executeScript",label:"Execute",keybindings:[F.KeyCode.F8],run:async V=>{const U=A();w.setSelectedFunction(U);const J=await U;E(J)}}),D.addAction({id:"saveScript",label:"Save Script",keybindings:[F.KeyMod.CtrlCmd|F.KeyCode.KeyS],run:V=>{w?.saveSource(D.getValue()).then(()=>{const U=w?.getScripts().getModules().getByName("scripting"),J=U?.getSource(),X=D.getValue(),H=(J?.length??0)!==X.length||J!==X;p?.({dirty:H})})}}),D.onMouseDown(async V=>{if(V.target.type===F.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const U=V.target.position.lineNumber,J=await F.languages.typescript.getTypeScriptWorker(),X=await J(M.uri),H=await X.getNavigationTree(M.uri.toString()),ne=D?.getValue(),oe=(await w?.saveSource(ne)).getFunctions().search(),ge=Nh(M,F,oe,H).find(de=>de.lineNumber===U);if(ge){const de=V.event.browserEvent.button;de===0?ge.type==="macro"||ge.type==="autoRun"?E({functionName:ge.name}):ge.type==="formula"&&w.quickInsertFunction?.(ge.name):de===2&&(console.log("Context menu for function:",ge.name),V.event.browserEvent.preventDefault())}}}),D.onDidChangeModelContent(()=>{const V=D.getModel();j(V,F,D)});const M=D.getModel();var N;(N=F).languages.registerInlayHintsProvider("typescript",{provideInlayHints(V,U,J){const X=[];for(let H=1;H<V.getLineCount()+1;H++){const ne={startLineNumber:H,startColumn:1,endLineNumber:H,endColumn:V.getLineLength(H)+1},oe="hint",ge=V.getValueInRange(ne).indexOf("hint");ge!==-1&&X.push({kind:N.languages.InlayHintKind.Type,position:{lineNumber:ne.startLineNumber,column:ge+oe.length+1},label:"[hint]"})}return{hints:X,dispose:()=>{}}}}),M.onDidChangeContent(V=>{const U=w?.getScripts().getModules().getByName("scripting"),J=U?.getSource(),X=D.getValue(),H=(J?.length??0)!==X.length||J!==X;p?.({dirty:H})}),D.onDidChangeCursorPosition(V=>{C()})},[w,p]),I=u.useMemo(()=>R?null:c||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[R,c]),z=u.useMemo(()=>{const D=w?.getScripts().getModules().getByName("scripting")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(u.Suspense,{children:s.jsx(PB,{theme:l?"extended-dark":"extended",options:{...OB,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:D,onValidate:F=>{let B=!1;for(let M=0;!B&&M<F?.length;M++)F[M].severity===8&&(B=!0)},beforeMount:F=>{F.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),F.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),F.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),F.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let B=!1;try{const N=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/index.d.ts")).text())(),V=F.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),U=F.editor.createModel(N,"typescript",V);F.editor.setModelMarkers(U,"default",[]),B=!0}catch(N){console.warn("cant load types",N)}F.languages.registerLinkProvider("*",{provideLinks:(N,V)=>{const U=[],J={links:U},X=N.getLinesContent();for(let H=1;H<=X.length;H++){const ne=X[H-1],oe=F.editor.tokenize(ne,"typescript");for(let ge=0;ge<oe[0].length;ge++){const de=oe[0]?.[ge];if(de&&de.type.startsWith("string")){let ye=de.offset,ve=oe[0]?.[ge+1]?.offset??ne.length,be=new F.Range(H,ye+1,H,ve+1),re=N.getValueInRange(be);const ce=re[0];ce!=="`"&&ce!=="'"&&ce!=='"'||(ye++,re=re.substring(1));const we=re[re.length-1];we!=="`"&&we!=="'"&&we!=='"'||(ye++,re=re.substring(0,re.length-1));try{w.getRanges(re)&&U.push({range:{endColumn:ve,endLineNumber:H,startColumn:ye,startLineNumber:H},tooltip:`Goto range '${re}'`,url:`/range/${re}`})}catch(ae){console.warn(ae)}}}}return J}}),F.editor.registerLinkOpener({open(N){if(N?.path?.startsWith("/range/")){try{w.getRanges(N.path.substring(7))?.select()}catch(V){console.warn("invalid range",V)}return!0}return!1}});const M=F.languages.typescript.typescriptDefaults.getCompilerOptions();F.languages.typescript.typescriptDefaults.setCompilerOptions({...M,target:F.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:F.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),S.current&&(await _g(f.current.editor,f.current.monaco,S.current),S.current=null),m.current&&requestAnimationFrame(async()=>{m.current&&F.editor.focus()}),F.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),_(!0)})()},onMount:O})}),I]})},[w,v,i,I,l]),L=ir(t,()=>({isScriptEditorElement:()=>!0,focus:D=>{k(D)},close:()=>{g?.()},getEditor:()=>w?.getEditor()}),[w]);return u.useEffect(()=>(d&&requestAnimationFrame(()=>{k()}),()=>{f.current?.editor&&requestAnimationFrame(()=>{L.current?.contains(document.activeElement)&&k()})}),[]),s.jsx("div",{className:Zr("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:L,...h,children:z})})),_S={Preset:"preset",Custom:"custom"},_s={Start:"start",End:"end"},r5={},zB=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(r5[r])return r5[r];const i=((a,l,c,d)=>{if(typeof document>"u"&&!d)return null;const p=d?new d:document.createElement("canvas");p.width=2*c,p.height=2*c;const h=p.getContext("2d");return h?(h.fillStyle=a,h.fillRect(0,0,p.width,p.height),h.fillStyle=l,h.fillRect(0,0,c,c),h.translate(c,c),h.fillRect(0,0,c,c),p.toDataURL()):null})(e,t,n,o);return r5[r]=i,i},FB={},jS=u.memo(e=>{const{className:t,style:n=Rn.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:a,boxShadow:l,renderers:c=FB,children:d,...p}=e,h=d,f=u.useMemo(()=>Object.assign({borderRadius:a,boxShadow:l,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${zB(o,r,i,c?.canvas)}) center left`},n),[o,r,i,c]);return u.isValidElement(d)?u.cloneElement(d,{...h.props}):s.jsx("div",{style:f,...p})}),BB=u.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:a,onMouseLeave:l,onFocus:c,style:d=Rn.EmptyCssProperties,children:p,alphaWhite:h,alphaGrey:f,darkMode:g,alphaCheckSize:m=7,...y}=e;if(!t)throw new Error("a selectedColor is required");const x=u.useCallback(R=>{r?.(R),R.isDefaultPrevented()||(R.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),v=u.useCallback(R=>{a?.(R),R.isDefaultPrevented()||o?.(t.toRGBA())},[o,a,t]),b=u.useCallback(R=>{l?.(R),R.isDefaultPrevented()},[o,l]),w=u.useCallback(R=>{c?.(R),R.isDefaultPrevented()||o?.(t.toRGBA())},[o,c,t]),E=u.useCallback(R=>{i?.(R),R.isDefaultPrevented()||R.keyCode===nn.Enter&&n?.(t.toRGBA())},[n,i,t]),S=u.useMemo(()=>t.toRGBA().alpha===1?null:s.jsx(jS,{size:m,white:h,grey:f,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[h,f,t]);return s.jsxs("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...d},tabIndex:0,...y,onClick:x,onKeyDown:E,onMouseOver:v,onMouseLeave:b,onFocus:w,children:[S,s.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(g)},children:p})]})}),F2=u.memo(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:i,onPreviewColorDef:a,swatchProps:l,defaultButtonSize:c=24,isLarge:d=!1,compareRGB:p=!1,darkMode:h=!1,...f}=e,g=new $.Color({val:r.definition.val,adjs:r.definition.adjs},S=>t(S)),m=p?g.toRGBA().toString():g.toString(),y=n&&(p?n.toRGBA().toString():n.toString())===m,x=o&&(p?o.toRGBA().toString():o.toString())===m,v=[];v.push({[$.IColor.AdjustmentType.Inv]:!0}),v.push({[$.IColor.AdjustmentType.Alpha]:100});const b=g.adjust(v),w=u.useCallback(()=>{i?.(r)},[i,r]),E=u.useCallback(S=>{a?.(S?r:null)},[a,r]);return s.jsx(di,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:r.description,placement:"bottom-start",children:s.jsx("div",{style:{width:c*(d?1.2:1)+"px",height:c*(d?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...f,children:s.jsxs(BB,{selectedColor:g,title:null,onSelectColor:w,onPreviewColor:E,alphaCheckSize:d?9:void 0,darkMode:h,...l,children:[s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:b.toRGBA(h).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:y?"1":"0"}}),s.jsx("div",{style:{position:"absolute",width:.33*c*(d?1.2:1)+"px",height:.33*c*(d?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:b.toRGBA(h).toString(),borderRadius:"50%",opacity:x?"1":"0"}})]})})})}),Ed=u.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:a,onPreviewColorDef:l,style:c=Rn.EmptyCssProperties,compareRGB:d=!1,darkMode:p,swatchProps:h,...f}=e;let g;if(Array.isArray(o[0]))g=o;else{g=[];for(let b=0;b<o.length;b++)g.push([o[b]])}const m=u.useCallback(b=>{a?.(b)},[a]),y=u.useCallback(b=>{l?.(b)},[l]),x=u.useMemo(()=>{let b=[];for(let w=0;w<g.length;w++){let E=[],S=g[w];for(let _=0;_<S.length;_++){let A=S[_];E.push(s.jsx(F2,{schemeColorLookup:n,colorDef:A,selectedColor:r,previewColor:i,onSelectColorDef:m,onPreviewColorDef:y,swatchProps:h,compareRGB:d,darkMode:p},w+" "+_))}let R=s.jsx(Ae,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:_=>_.shadows[2],borderRadius:"2px",overflow:"hidden"},children:E},""+w);b.push(R)}return b},[g,r,i,m,y]),v=u.useMemo(()=>t?s.jsx(Tn,{noWrap:!0,component:"div",sx:{display:"flex",flexShrink:"0",paddingLeft:"6px",paddingBottom:"4px",paddingTop:"0px",userSelect:"none",color:b=>b.palette.text.secondary},children:t}):null,[t]);return s.jsxs(Ae,{style:{...c},children:[v,s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...f,children:x})]})}),Fi=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),Ho=(e,t,n,o,r,i)=>{const a=Fi(e,t);o?.push(a);const l=new $.Color({val:a.definition.val,adjs:a.definition.adjs},n),c=l.toString();r?.set(c,l);const d=l.toRGBA().toString();i?.set(d,l)},NB=u.lazy(()=>Promise.resolve().then(()=>require("./DIawrhwQ7E_1l99b.cjs"))),RS=u.memo(u.forwardRef((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:i,disableAlpha:a=!1,previewDebounceTime:l=100,initialPanelType:c,defaultButtonSize:d=24,width:p,onElementLoad:h,onDone:f,onEyeDropStart:g,onEyeDropStop:m,onPreviewColor:y,onPreviewColorImmediate:x,onSelectColor:v,autoColor:b,autoColorLabel:w="Automatic",autoColorPosition:E=_s.Start,compareRGB:S=!1,darkMode:R=!1,..._}=e,A=o||n,T=Te(y,[y]),j=Te(x,[x]),C=Te(v,[v]),k=Te(g,[g]),P=Te(m,[m]),[O,I]=u.useState(!1),z=qi(),L=u.useMemo(()=>i||$.Color.getDefaultSchemeLookup(),[i]),D=u.useMemo(()=>{const re=new Map,ce=new Map,we=[];Ho("Primary Background","bg1",L,we,re,ce),Ho("Primary Text","tx1",L,we,re,ce),Ho("Secondary Background","bg2",L,we,re,ce),Ho("Secondary Text","tx2",L,we,re,ce),Ho("Accent 1","accent1",L,we,re,ce),Ho("Accent 2","accent2",L,we,re,ce),Ho("Accent 3","accent3",L,we,re,ce),Ho("Accent 4","accent4",L,we,re,ce),Ho("Accent 5","accent5",L,we,re,ce),Ho("Accent 6","accent6",L,we,re,ce);const ae=$.ITheme.buildPalette(we,L,re,ce),Y=[];if(Ho("Dark Red","C00000",L,Y,re,ce),Ho("Red","FF0000",L,Y,re,ce),Ho("Orange","FFC000",L,Y,re,ce),Ho("Yellow","FFFF00",L,Y,re,ce),Ho("Light Green","92D050",L,Y,re,ce),Ho("Green","00B050",L,Y,re,ce),Ho("Light Blue","00B0F0",L,Y,re,ce),Ho("Blue","0070C0",L,Y,re,ce),Ho("Dark Blue","002060",L,Y,re,ce),a?Ho("Purple Is A Fruit","7030A0",L,Y,re,ce):Ho("Transparent","00000000",L,Y,re,ce),b){const Me=b.toString();re.set(Me,b)}const le=new Map,ee=typeof r=="function"?r():r,Ie=[];for(let Me=0;ee&&Me<ee.length;Me++){const ot=ee[Me].toString();le.set(ot,ee[Me]),Ie.push({description:"Recent "+(Me+1),definition:{val:ee[Me].toString()}})}return{primaryColors:we,modifiedPresets:ae,standardColors:Y,recentColorsLimited:Ie,mapAllPresets:re,mapAllPresetsRGB:ce,mapRecent:le}},[L,r,a,b]);u.useEffect(()=>{h?.()},[]);const[F,B]=u.useState(!1),M=u.useCallback(()=>{B(re=>!re)},[]);u.useEffect(()=>{if(c)B(c===_S.Custom);else if(n){let re=n.toString(),ce=D.mapAllPresets.get(re);ce||(re=n.toRGBA().toString(),ce=D.mapAllPresetsRGB.get(re));const we=D.mapRecent.get(re);B(!ce&&!we)}},[n,c]);const N=u.useCallback($.CommonUtils.debounce(re=>{T?.(re)},l),[T,l]),[V,U]=u.useState();u.useEffect(()=>{U(o||n)},[o,n]);const J=Te(re=>{j&&(j(re),N(re))},[j]),X=Te(re=>{J(re?new $.Color({val:re.definition.val,adjs:re.definition.adjs},L):null)},[L]),H=u.useCallback(re=>{re.ctrlKey&&B(!0)},[]),ne=Te(re=>{let ce=!1;if(re){const we=re.toString();ce=!D.mapAllPresets.has(we)}C?.(re,ce)},[C,D]),oe=Te(re=>{const ce=re?new $.Color({val:re.definition.val,adjs:re.definition.adjs},L):null;Promise.resolve(f?.()).then(()=>{ne(ce)})},[L,f]),ge=Te(re=>{J(re?new $.Color(re,L):null)},[L]),de=u.useMemo(()=>window.EyeDropper===void 0?s.jsx(s.Fragment,{}):s.jsx(Mr,{"aria-label":"eye dropper",size:"small",sx:{color:re=>re.palette.text.icon??re.palette.action.active},onClick:async()=>{I(!0),k?.(),await new EyeDropper().open().then(re=>{I(!1),P?.();let ce=new $.Color(re.sRGBHex),we=ce.toString(),ae=D.mapAllPresets.get(we);if(ae||(we=ce.toRGBA().toString(),ae=D.mapAllPresetsRGB.get(we)),!ae){const Y=ce.toRGBA(),le=3;let ee=255;D.mapAllPresetsRGB.forEach((Ie,Me)=>{const ot=Ie.toRGBA(),Ve=Math.abs(ot.red-Y.red)+Math.abs(ot.blue-Y.blue)+Math.abs(ot.green-Y.green);Ve<le&&Ve<ee&&(ae=Ie)})}B(!ae),J(ae||ce)}).catch(re=>{I(!1),re?.name!=="AbortError"&&console.error(re)})},children:s.jsx(Jj,{})}),[D,R]),ye=u.useMemo(()=>{if(!F)return;const re={opacity:F?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return s.jsx(u.Suspense,{fallback:s.jsx("div",{style:re,children:s.jsx(t0,{})}),children:s.jsx(NB,{style:re,selectedColor:A?A.toRGBA().toString():"transparent",onColorChange:ge,disableAlpha:a})})},[F,A]),ve=u.useMemo(()=>({onClick:H,alphaGrey:z.palette.text.icon??z.palette.action.active}),[H,z]),be=u.useMemo(()=>{if(!b)return null;const re={description:w,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return s.jsx(s.Fragment,{children:s.jsxs(y1,{sx:{display:"flex",color:ce=>ce.palette.text.secondary},onMouseOver:()=>{X(null)},onClick:()=>{oe(null)},children:[s.jsx(Ae,{sx:{flex:"none",boxShadow:ce=>ce.shadows[2],borderRadius:ce=>ce.spacing(.5),overflow:"hidden"},children:s.jsx(F2,{schemeColorLookup:L,colorDef:re,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:d,isLarge:!0,darkMode:R,compareRGB:S,swatchProps:ve})}),s.jsx(Tn,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:w})]})})},[b,w,L,n,o]);return s.jsxs(Ae,{ref:t,sx:{width:p,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},..._,children:[s.jsxs("div",{style:{position:"relative",display:"flex"},children:[s.jsxs("div",{style:{opacity:F?"0":1},children:[be&&E===_s.Start?s.jsxs(s.Fragment,{children:[be,s.jsx(va,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,s.jsx(Ed,{title:"Theme Colors",schemeColorLookup:L,colorDefs:D.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ve,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:S,darkMode:R}),s.jsx(Ed,{schemeColorLookup:L,colorDefs:D.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ve,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:S,darkMode:R}),s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Ed,{title:"Standard Colors",schemeColorLookup:L,colorDefs:D.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ve,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:S,darkMode:R}),s.jsxs("div",{style:{opacity:D.recentColorsLimited.length===0?"0":void 0,display:D.recentColorsLimited.length===0?"none":void 0},children:[s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Ed,{title:"Recent Colors",schemeColorLookup:L,colorDefs:D.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ve,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:S,darkMode:R})]}),be&&E===_s.End?s.jsxs(s.Fragment,{children:[s.jsx(va,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),be,s.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),ye]}),s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[de,s.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),s.jsx(Oc,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{M()},children:s.jsx("div",F?{children:"Preset"}:{children:"Custom"})}),s.jsx(Oc,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(f?.()).then(()=>{ne(V)})},children:"Done"})]})]})})),$B=s.jsx(e=>{const{sx:t,...n}=e;return s.jsxs(Xe,{sx:{overflow:"visible","& .activeColor":{filter:v1},...t},...n,children:[s.jsx("path",{className:"activeColor",opacity:"1",d:"M12 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8z"}),s.jsx("path",{className:"style_grey",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"}),s.jsx("path",{className:"activeColor",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"})]})},{}),wf=u.memo(u.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=$B,tooltip:i,label:a,onPreviewColor:l,onPreviewColorImmediate:c,onSelectColor:d,variant:p=ji.Toolbar,panelProps:h,shouldCloseFloatAll:f=!0,compareRGB:g=!1,darkMode:m=!1,...y}=e,x=Te(l,[l]),v=Te(c,[c]),b=Te(d,[d]),[w,E]=u.useState(()=>{}),S=o||w||n||h?.autoColor,R=r,_=u.useRef(!1),A=u.useCallback(()=>{},[]),T=Te(()=>{E(n)},[n]),j=Te(F=>{_.current||(E(F),x?.(F))},[x]),C=Te(F=>{_.current||(E(F),v?.(F))},[v]),k=Te((F,B)=>{_.current||(E(void 0),b?.(F,B))},[b]),P=u.useMemo(()=>s.jsx(Ae,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${S?.toCSS(m)??"transparent"}`,"& .activeColor":{fill:`${S?.toCSS(m)??"transparent"}`},"& .style_grey":{fill:F=>F.palette.text.icon??F.palette.action.active}},children:R}),[S,R,m]),O=Te(F=>{b?.(o,!1)},[b,o]),[I,z]=u.useState(!1),L=u.useCallback(F=>{const{closeFloat:B,closeFloatAll:M}=F;return s.jsx(RS,{...h,selectedColor:n,previewColor:w,onDone:f?M:B,onKeyDown:N=>{N.which===nn.Enter&&(f?M():B())},onPreviewColorImmediate:C,onPreviewColor:j,onSelectColor:k,onEyeDropStart:()=>z(!0),onEyeDropStop:()=>z(!1),compareRGB:g,darkMode:m})},[n,w,f,S,h?.autoColor,m]),D={onQuickClick:o?O:void 0,createPopupPanel:L,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:T,onPopupClose:A,tooltip:i||a||"Color",label:a,icon:P,...y};return p===ji.Toolbar?s.jsx(Ui,{ref:t,...D}):s.jsx(w1,{ref:t,...D})})),nu=82,$h=e=>{const{styleColor:t,length:n=nu,width:o=1,dashArray:r=null,sx:i,isDouble:a=!1,isAngled:l=!1,darkMode:c=!1,...d}=e;return s.jsx(Xe,{sx:{width:`${n}px`,height:`${o}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:p=>`${t?t.toRGBA(c).toString():p.palette.text.icon??p.palette.action.active}`},"& .style_grey":{stroke:p=>p.palette.text.icon??p.palette.action.active},...i},height:o,width:n,viewBox:`0 0 ${n} ${o}`,...d,children:s.jsx(Uw,{length:n,width:o,dashArray:r,isDouble:a,isAngled:l,className:"activeColor"})})},IS=u.memo(u.forwardRef((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:a,selectedStyle:l,onSelectStyle:c,showNone:d=!0,darkMode:p,sx:h,...f}=e,g=Te(c,[]),m=u.useCallback(b=>{const{popupContainer:w,floatReference:E,closeFloat:S,...R}=b,_=[],A=$.IBorder.BuiltInDefinitionsArray;for(let T=0;T<A.length;T++){const j=A[T];if(j.description==="None"&&!d)continue;const C=s.jsx($h,{styleColor:a,length:nu,width:j.width,darkMode:p,dashArray:j.pattern,isDouble:j.description.toLowerCase().includes("double"),isAngled:j.description.toLowerCase().includes("slant")});let k=null;k=o?s.jsxs(s.Fragment,{children:[s.jsx(Ae,{sx:{marginRight:"6px"},children:j.description}),s.jsxs(Ae,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[s.jsx("div",{style:{flex:"1 1 100%"}}),C]})]}):j.description==="None"?"None":C,_.push(s.jsx(Gr,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:g7(4)},paddingLeft:"16px",background:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},tooltipProps:{description:o?"":j.description},icon:null,disabled:r,onMouseDown:P=>P.preventDefault(),onMouseUp:()=>{S(),g(j.style)},onKeyDown:P=>{P.which===nn.Enter&&S()},selected:j.style===l,parentFloat:E,children:k},T))}return s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:_})},[r,d,a,l,p]),y=u.useMemo(()=>{const b=$.IBorder.BuiltInDefinitions.get(l);let w;return w=b.description==="None"?s.jsx(Ae,{sx:{minWidth:`${nu}px`},children:"None"}):s.jsx($h,{styleColor:a,length:nu,width:b.width,dashArray:b.pattern,darkMode:p,isDouble:b.description.toLowerCase().includes("double"),isAngled:b.description.toLowerCase().includes("slant")}),s.jsx(Ae,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:g7()}},children:w})},[l,a]),x=u.useMemo(()=>$.IBorder.BuiltInDefinitions.get(l),[l]),v={disabled:r,icon:y,tooltip:"Border Style: "+x.description,sx:{background:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,...h},createPopupPanel:m,...f};return n===ji.Toolbar?s.jsx(Ui,{...v}):s.jsx(w1,{...v})})),PS=u.memo(u.forwardRef((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=$.IBorder.StrokeStyle.Thin,disabled:i=!1,darkMode:a=!1,showStylingBefore:l=!0,onSelectBorder:c,onPreviewBorder:d,selectedBorder:p,createTemporaryBorder:h,...f}=e,g=Te(c,[c]),m=Te(d,[d]),[y,x]=u.useState(),[v,b]=u.useState(),w=y??r,E=v??n,S=p||{bottom:{style:r,color:n?.toString()}},R=Te(k=>{const P={},O=k?Object.keys(k):[];let I=!1;for(let V=0;V<O.length;V++)k[O[V]]?.style&&(P[O[V]]={style:k[O[V]].style,color:k[O[V]].color},I||P[O[V]].style===$.IBorder.StrokeStyle.None||(I=!0));O.length<6&&(I=!0);const z=I?P.left:null,L=I?P.top:null,D=I?P.right:null,F=I?P.bottom:null,B=I?P.vertical:null,M=I?P.horizontal:null;let N="";return L||z||(N+="M 3,5 H 5 V 3 H 3 "),L||(N+="M 7,5 H 9 V 3 H 7 "),L||B||(N+="M 11,5 h 2 V 3 h -2 "),L||(N+="M 15,5 h 2 V 3 h -2 "),L||D||(N+="M 19,5 h 2 V 3 h -2 "),z||(N+="M 3,9 H 5 V 7 H 3 "),B||(N+="M 11,9 h 2 V 7 h -2 "),D||(N+="M 19,9 h 2 V 7 h -2 "),M||z||(N+="M 3,13 H 5 V 11 H 3 "),M||(N+="M 7,13 H 9 V 11 H 7 "),M||B||(N+="M 11,13 h 2 v -2 h -2 "),M||D||(N+="M 19,13 h 2 v -2 h -2 "),M||(N+="M 15,13 h 2 v -2 h -2 "),z||(N+="M 3,17 H 5 V 15 H 3 "),B||(N+="M 11,17 h 2 v -2 h -2 "),D||(N+="M 19,17 h 2 v -2 h -2 "),F||z||(N+="M 3,21 H 5 V 19 H 3 "),F||(N+="M 7,21 H 9 V 19 H 7 "),F||B||(N+="M 11,21 h 2 v -2 h -2 "),F||(N+="M 15,21 h 2 v -2 h -2 "),F||D||(N+="M 19,21 h 2 v -2 h -2 "),s.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[s.jsx(Xe,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:s.jsx("path",{d:N})}),s.jsx(Ae,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:v1}},children:s.jsx(pf,{getBorderAt:(V,U)=>{if(!h||O.length===0)return null;const J=V.rowIndex,X=V.colIndex,H={};return J===0?(H.top=P.top,H.bottom=P.horizontal):(H.top=P.horizontal,H.bottom=P.bottom),X===0?(H.left=P.left,H.right=P.vertical):(H.left=P.vertical,H.right=P.right),h?.(H)},width:18,height:18,darkMode:a,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[E,w,a]),_=u.useCallback((k,P,O)=>{let I=null;if(k&&k.length>0){let z=null;(P||O)&&(z={style:O,color:P?.toString()??null}),I={};for(let L=0;L<k.length;L++)I[k[L]]=z}return I},[]),A=u.useCallback(k=>{g?.(k)},[]),T=u.useCallback(k=>{m?.(k)},[]),j=u.useCallback(k=>{const{closeFloatAll:P,floatReference:O}=k,I=(D,F,B="bottom",M=!1)=>{const N=_(D,E??null,M?$.IBorder.StrokeStyle.None:w??null),V=M?_([],E??null,w??null):N;return s.jsx(ii,{icon:R(V),sx:{background:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},tooltipProps:{label:F,simple:!0,placement:B},onClick:()=>{P(),T(N),A(N)}})},z=s.jsxs(s.Fragment,{children:[s.jsxs(Ae,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom,$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical],"All Borders","top"),I([$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical],"Inner Borders","top"),I([$.IBorder.Edge.Horizontal],"Inside Horizontal Borders","top"),I([$.IBorder.Edge.Vertical],"Inside Vertical Borders","top"),I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom],"Outside Borders","top")]}),s.jsxs(Ae,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[I([$.IBorder.Edge.Left],"Left Borders"),I([$.IBorder.Edge.Top],"Top Borders"),I([$.IBorder.Edge.Right],"Right Borders"),I([$.IBorder.Edge.Bottom],"Bottom Borders"),I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom,$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical,$.IBorder.Edge.DiagonalUp,$.IBorder.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),L=s.jsx(s.Fragment,{children:s.jsxs(Ae,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[s.jsx(wf,{variant:ji.Toolbar,icon:s.jsx(F3,{}),selectedColor:w===$.IBorder.StrokeStyle.None?new $.Color("transparent"):E,onPreviewColor:D=>{b(D)},onSelectColor:(D,F)=>{b(D)},darkMode:a,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||w===$.IBorder.StrokeStyle.None,parentFloat:O,shouldCloseFloatAll:!1}),s.jsx(IS,{selectedStyle:w,onSelectStyle:x,styleColor:E,darkMode:a,variant:ji.Toolbar,parentFloat:O})]})});return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:D=>D.stopPropagation(),children:[l?L:z,s.jsx($t,{orientation:"horizontal"}),l?z:L]})},[w,E,n,o,a]),C=u.useMemo(()=>R(S),[S,a]);return s.jsx(Ui,{ref:t,createPopupPanel:j,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:k},P)=>s.jsx(br,{label:"Borders",description:"Set the borders.",disabled:P,children:k}),onQuickClick:()=>{g?.(S)},quickButtonProps:{sx:{}},disabled:i,icon:C,...f})})),OS=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=Qt.Toolbar,disabled:a=!1,autoColor:l,autoStrokeStyle:c,schemeLookup:d,createTemporaryBorder:p,selectedBorder:h,onSelectBorder:f,darkMode:g,...m}=e,y=_o(n,["formatBorder"]),x=o??y[0],v=x?.context()??null,b=v?.autoColor??l,w=v?.autoStyle??c,E=h??v?.quickBorder,S=g??v?.darkMode,R=p??v?.createTemporaryBorder,_=d??v?.schemeLookup,A=Te(j=>{v?.onBorderSelect&&v.onBorderSelect(j),f?.(j),x?.execute(j,r)},[x,f,r]),T=u.useCallback((j,C)=>{const{children:k,title:P,...O}=j;let I=j.children;return(x?.disabled()||a)&&(I=s.jsx("div",{children:I})),s.jsx(n0,{command:x,placement:i===Qt.Toolbar?"bottom-start":"right-start",disabled:C,...O,children:I})},[x,a]);return s.jsx(PS,{ref:t,autoColor:b,darkMode:S,autoStrokeStyle:w,createTemporaryBorder:R,schemeLookup:_,selectedBorder:E,onSelectBorder:A,createTooltip:T,disabled:a||!x||x.disabled(),...m})})),DS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("mergeToggle"),icon:ze(s.jsx(y7,{}))}),s.jsx(We,{...p,command:d.getCommand("mergeHorizontal"),icon:ze(s.jsx(vP,{}))}),s.jsx(We,{...p,command:d.getCommand("mergeVertical"),icon:ze(s.jsx(wP,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...p,command:d.getCommand("unmerge"),icon:ze(s.jsx(Ab,{}))})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:l,icon:ze(s.jsx(y7,{})),...a})})),LS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("freezeToggle"),icon:ze(s.jsx(EP,{}))}),s.jsx(We,{...p,command:d.getCommand("freezeToggleHorizontal"),icon:ze(s.jsx(CP,{}))}),s.jsx(We,{...p,command:d.getCommand("freezeToggleVertical"),icon:ze(s.jsx(kP,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...p,command:d.getCommand("unfreeze"),icon:s.jsx(Ab,{})})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,createPopupPanel:l,quickCommand:"freezeToggle",label:"Freeze Panes",tooltip:"Freeze a portion of the sheet to keep it visible while you scroll through the rest of the sheet.\\n\\nUseful for viewing data in other parts of your worksheet without losing your headers or labels.",icon:s.jsx(SP,{}),...a})})),AS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:r,disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("find"),icon:ze(s.jsx(B7,{}))}),s.jsx(We,{...p,command:d.getCommand("findReplace"),icon:ze(s.jsx(Jb,{}))}),s.jsx(We,{...p,command:d.getCommand("goto"),icon:ze(s.jsx(UO,{}))})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,createPopupPanel:l,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:ze(s.jsx(B7,{})),...a})})),zS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:a=Lz.DefaultFontSizes,disabled:l=!1,parentFloat:c,sx:d,...p}=e;rl(n);const h=()=>n?.state()?.toString()||"11",[f,g]=u.useState(h),m=Te(()=>{const R=parseFloat(f);isNaN(R)?g(h()):parseFloat(h())!==R&&n.execute(R,o)},[h,n,f,o]);u.useEffect(()=>{g(h())},[n?.state()]);const y=u.useMemo(()=>{if(!o)return null;const R={...o};return delete R.beforeExecute,R},[o]),x=_o(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),v=u.useMemo(()=>x?s.jsxs(Ae,{className:Eo("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:R=>R.stopPropagation(),children:[s.jsx(We,{command:x[0],commandHook:y,icon:ze(s.jsx(jO,{}))}),s.jsx(We,{command:x[1],icon:ze(s.jsx(RO,{}))})]}):null,[x]),b=qi(),w=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("12.3",Math.round(b.typography.fontSize),b.typography.fontFamily).width}px`,[b]),E=u.useCallback(R=>{const{onMouseDown:_,onMouseUp:A,...T}=R;return s.jsx(Mr,{component:"div",...T,disableRipple:!0,children:s.jsx(Ul,{inputMode:"numeric",disabled:l||!n||n.disabled(),inputProps:{name:"font-input",autoComplete:"off",tabIndex:0,type:"number",maxLength:4,max:409,min:2},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:j=>`1px solid ${j.palette.text.icon??j.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:j=>`1px solid ${j.palette.error.main}`},"::after":{borderBottom:j=>`1px solid ${j.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:j=>`${Math.round(j.typography.fontSize)}px`,width:w,color:j=>j.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:j=>j.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:j=>j.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:f,onFocus:j=>{j.target?.select()},onKeyDown:j=>{if(j.which===nn.Enter)h()!==f&&(j.stopPropagation(),j.preventDefault(),m());else if(j.which===nn.Escape)h()!==f&&(g(h()),setTimeout(()=>{j.target?.select()},0),j.stopPropagation(),j.preventDefault());else{if(j.key.match("[-]")||j.key.match("[0-9.]")&&(f+j.key).length>4)return j.stopPropagation(),void j.preventDefault();if(j.which===nn.Space)return void j.preventDefault()}},onBlur:()=>{m()},onChange:j=>{if(j.target.value.length>4)return j.stopPropagation(),void j.preventDefault();g(j.target.value)}})})},[f,l,n]),S=u.useCallback(R=>{const _=C=>{n?.execute(C,o)},A=n?.state(),T=[];for(let C=0;C<a.length;C++){const k=a[C]===A;T.push(s.jsx(Gr,{selected:k,icon:k?s.jsx(S1,{}):void 0,disabled:l||!n||n.disabled(),onMouseDown:P=>{P.button===0&&P.preventDefault()},onMouseUp:P=>{P.button===0&&_(a[C])},onKeyDown:P=>{P.keyCode!==nn.Enter&&P.keyCode!==nn.Space||_(a[C])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:a[C]})},"fontSize-"+C))}const j=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[v,s.jsx($t,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:T})]});return Nn({...R,children:j})},[l,n?.state(),o]);return s.jsx(Ui,{ref:t,sx:{...d},tabIndex:-1,outlined:!0,disabled:l,parentFloat:c,createPopupPanel:S,createTooltip:({children:R},_)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:_||n?.disabled(),children:R}),createQuickButton:E,...p})})),jg=u.memo(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:a,...l}=e;return s.jsx(Gr,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...a},disabled:n,selected:t,icon:t?s.jsx(S1,{}):void 0,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(i.numberFormat)},onKeyDown:c=>{c.keyCode!==nn.Enter&&c.keyCode!==nn.Space||r(i.numberFormat)},...l,children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[s.jsxs(Tn,{component:"div",children:[i.formatType,i.formatType===$.NumberFormat.Type.Custom?"…":""]}),s.jsx(Tn,{variant:"caption",component:"div",sx:{color:c=>ht(c.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),FS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,sx:i,disabled:a=!1,parentFloat:l,...c}=e,d=_o(n,["formatNumberFormat"])[0],p=d?.state()?$.NumberFormat.Styles.lookupStyle(d?.state()).formatType:$.NumberFormat.Type.General,h=u.useMemo(()=>{if(!o)return null;const y={...o};return delete y.beforeExecute,y},[o]),f=u.useCallback((y,x)=>{const v=j=>{o?.beforeExecute?.(d,d?.state()),d.execute(j,o),o?.onExecute?.(d,d?.state())},b=d?.context()(),w=$.NumberFormat.Styles.lookupPrimary(),E=[];for(let j=0;j<w.length;j++){let C="";if(b&&!b.isEmpty())try{C=b.getNumberFormat(w[j].numberFormat).displayText}catch(P){console.warn(P)}C===""&&w[j].formatType===$.NumberFormat.Type.General&&(C="No specific format");const k=w[j].formatType===p;E.push(s.jsx(jg,{selected:k,disabled:a||!d||d.disabled(),formattedValue:C,handleSetFormat:v,format:w[j]},w[j].formatType))}const S={numberFormat:"",formatType:$.NumberFormat.Type.Custom},R=p===$.NumberFormat.Type.Custom,_=s.jsx(jg,{selected:R,disabled:a||!d||d.disabled(),formattedValue:R?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(d,d?.state()),x.getCommand("formatNumberDialog")?.execute(d?.state()),o?.onExecute?.(d,d?.state())},format:S,sx:{flex:"0",width:"100%"}},$.NumberFormat.Type.Custom),A=s.jsxs(Ae,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:j=>j.stopPropagation(),children:[s.jsx(We,{command:x.getCommand("formatNumberFormatAccountingStyle"),commandHook:h,scope:r,icon:s.jsx(RP,{})}),s.jsx(We,{command:x.getCommand("formatNumberFormatPercentStyle"),commandHook:h,scope:r,icon:s.jsx(TP,{})}),s.jsx(We,{command:x.getCommand("formatNumberFormatCommaStyle"),commandHook:h,scope:r,icon:s.jsx(MP,{})}),s.jsx(We,{command:x.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:h,scope:r,icon:ze(s.jsx(_P,{}))}),s.jsx(We,{command:x.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:h,scope:r,icon:ze(s.jsx(jP,{}))})]}),T=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[A,s.jsx($t,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:E}),s.jsx($t,{orientation:"horizontal"}),_]});return Nn({...y,children:T})},[d?.context(),d?.state(),o,r]),g=qi(),m=u.useMemo(()=>{const y=$.NumberFormat.Type.MediumTime;return`${$.IFont.getSharedMeasurer()(y,Math.round(g.typography.fontSize),g.typography.fontFamily).width}px`},[g]);return s.jsx(Jn,{ref:t,commands:n,sx:i,outlined:!0,disabled:a,parentFloat:l,createPopupPanel:f,createTooltip:({children:y},x)=>s.jsx(br,{label:d?.label(),description:d?.description(),disabled:x,children:y}),icon:s.jsx(Ae,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:y=>`${Math.round(y.typography.fontSize)}px`,color:y=>y.palette.text.secondary,fontFamily:y=>y.typography.fontFamily,width:m},children:s.jsx(Ae,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:p})}),...c})})),Sf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:"clear",disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("clearAll"),icon:s.jsx(q4,{})}),s.jsx(We,{...p,command:d.getCommand("clearFormats"),icon:ze(s.jsx(bb,{}))}),s.jsx(We,{...p,command:d.getCommand("clearContents"),icon:ze(s.jsx(TI,{}))}),s.jsx(We,{...p,command:d.getCommand("clearComments")}),s.jsx(We,{...p,command:d.getCommand("clearHyperlinks")})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Clear",tooltip:"Clear everything in the cell, or remove just the formatting or contents.",createPopupPanel:l,icon:s.jsx(q4,{}),...a})})),BS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:"fill",disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("fillDown"),icon:ze(s.jsx(T0,{}))}),s.jsx(We,{...p,command:d.getCommand("fillRight"),icon:ze(s.jsx(T0,{sx:{transform:"rotate(270deg)"}}))}),s.jsx(We,{...p,command:d.getCommand("fillUp"),icon:ze(s.jsx(T0,{sx:{transform:"rotate(180deg)"}}))}),s.jsx(We,{...p,command:d.getCommand("fillLeft"),icon:ze(s.jsx(T0,{sx:{transform:"rotate(90deg)"}}))})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:l,icon:ze(s.jsx(T0,{})),...a})})),Cf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:a=!1,preferSingleMenu:l=!0,showQuickButton:c=!0,variant:d=Qt.Toolbar,...p}=e,h=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],f=_o(n,h),{singleCommand:g,allDisabled:m}=u.useMemo(()=>{let v=null,b=0;for(let w=0;w<f.length;w++)f[w]&&!f[w]?.disabled()&&(l&&d===Qt.Menuitem&&(v=b===0?f[w]:null),b++);return{singleCommand:v,allDisabled:b===0}},[f]),y=u.useMemo(()=>{const v=new Map;return v.set("insertCellsShiftDown",ze(s.jsx(M7,{}))),v.set("insertCellsShiftRight",ze(s.jsx(M7,{sx:{transform:"rotate(270deg)"}}))),v.set("insertRows",ze(s.jsx(CO,{}))),v.set("insertColumns",ze(s.jsx(T7,{}))),v},[]),x=u.useCallback((v,b)=>{let w=null;const E={variant:Qt.Menuitem,commandHook:o,scope:"insertCells",disabled:i};a||(w=s.jsxs(s.Fragment,{children:[s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...E,command:b.getCommand("addSheet"),icon:ze(s.jsx(Ns,{}))})]}));const S=s.jsxs(s.Fragment,{children:[s.jsx(We,{...E,command:f[0],icon:y.get(h[0])}),s.jsx(We,{...E,command:f[1],icon:y.get(h[1])}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...E,command:f[2],icon:y.get(h[2])}),s.jsx(We,{...E,command:f[3],icon:y.get(h[3])}),w]});return Nn({...v,children:S})},[i,f,o,r,y]);return g?s.jsx(We,{ref:t,variant:d,commandHook:o,disabled:i,command:g,icon:y.get(g.key()),...p}):s.jsx(Jn,{ref:t,variant:d,quickCommand:"insertCells",commands:n,commandHook:o,scope:r,disabled:i||m,tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Insert new cells, rows or columns to your workbook."}),s.jsx("br",{}),s.jsx("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:x,icon:ze(s.jsx(T7,{})),...p})})),kf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:a=!1,preferSingleMenu:l=!0,showQuickButton:c=!0,variant:d=Qt.Toolbar,...p}=e,h=_o(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:f,allDisabled:g}=u.useMemo(()=>{let x=null,v=0;for(let b=0;b<h.length;b++)h[b]&&!h[b]?.disabled()&&(l&&d===Qt.Menuitem&&(x=v===0?h[b]:null),v++);return{singleCommand:x,allDisabled:v===0}},[h]),m=u.useMemo(()=>{const x=new Map;return x.set("deleteCellsShiftUp",ze(s.jsx(_7,{sx:{transform:"rotate(0deg)"}}))),x.set("deleteCellsShiftLeft",ze(s.jsx(_7,{sx:{transform:"rotate(270deg)"}}))),x.set("deleteRows",ze(s.jsx(kO,{}))),x.set("deleteColumns",ze(s.jsx(j7,{}))),x},[]),y=u.useCallback((x,v)=>{const b={variant:Qt.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let w=null;a||(w=s.jsxs(s.Fragment,{children:[s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...b,command:v.getCommand("deleteSheet"),icon:ze(s.jsx(Ns,{}))})]}));const E=s.jsxs(s.Fragment,{children:[s.jsx(We,{...b,command:v.getCommand("deleteCellsShiftUp"),icon:m.get("deleteCellsShiftUp")}),s.jsx(We,{...b,command:v.getCommand("deleteCellsShiftLeft"),icon:m.get("deleteCellsShiftLeft")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...b,command:v.getCommand("deleteRows"),icon:m.get("deleteRows")}),s.jsx(We,{...b,command:v.getCommand("deleteColumns"),icon:m.get("deleteColumns")}),w]});return Nn({...x,children:E})},[i,o,r,m]);return f?s.jsx(We,{ref:t,variant:d,commandHook:o,disabled:i,command:f,icon:m.get(f.key()),...p}):s.jsx(Jn,{ref:t,variant:d,quickCommand:"deleteCells",commands:n,commandHook:o,scope:r,disabled:i||g,tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),s.jsx("br",{}),s.jsx("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:y,icon:ze(s.jsx(j7,{})),...p})})),Gs=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:a=Qt.Toolbar,quickColor:l,panelProps:c,isSplit:d=!1,darkMode:p,icon:h,...f}=e,{autoColor:g,schemeLookup:m,recentColors:y,...x}=c;if(f.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");rl(n);const v=n?.context();let b=l??v?.quickColor;d&&!b&&(b=new $.Color("transparent"));const w=g??v?.autoColor,E=m??v?.schemeLookup,S=y??v?.recentColors,R=p??v?.darkMode,_=u.useMemo(()=>({autoColor:w,schemeLookup:E,recentColors:S,darkMode:R,...x}),[w,E,S,R]),A=Te((j,C)=>{j&&C&&v?.addRecentColor&&v.addRecentColor(j),v?.onColorSelect&&v.onColorSelect(j),r?.(j,C),n?.execute(j,o)},[n,r,o,v]),T=u.useCallback((j,C)=>{const{children:k,title:P,...O}=j;let I=j.children;return(n?.disabled()||i)&&(I=s.jsx("div",{children:I})),s.jsx(n0,{command:n,placement:a===Qt.Toolbar?"bottom-start":"right-start",disabled:C,...O,children:I})},[n,i]);return s.jsx(wf,{ref:t,panelProps:_,icon:h,quickColor:b,selectedColor:n?.state(),onSelectColor:A,variant:a===Qt.Menuitem?ji.Menuitem:ji.Toolbar,createTooltip:T,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:R,...f})}));Gs.displayName="ColorCommandButton";const NS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),d=u.useCallback((p,h)=>{const f={variant:Qt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(We,{...f,command:h.getCommand("gridlinesToggle")}),s.jsx(Gs,{...f,command:h.getCommand("sheetViewFormatGridlinesColor"),icon:s.jsx(F3,{}),panelProps:{disableAlpha:!0}}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...f,command:h.getCommand("sheetViewToggleGridlinesColumns")}),s.jsx(We,{...f,command:h.getCommand("sheetViewToggleGridlinesRows")})]});return Nn({...p,children:g})},[i,o]);return s.jsx(Jn,{ref:t,parentFloat:a,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:d,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:s.jsx(Us,{command:c[0],scope:"view"}),...l})})),Ef=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:"sort",disabled:i},h=d.getCommand("sortCustom"),f=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:d.getCommand("sortAscending"),icon:ze(s.jsx(sh,{}))}),s.jsx(We,{...p,command:d.getCommand("sortDescending"),icon:ze(s.jsx(Gb,{}))}),h?s.jsx(We,{...p,command:h,icon:ze(s.jsx(_O,{}))}):null,s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(eh,{}))}),s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx(B3,{}))}),s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(zb,{}))})]});return Nn({...c,children:f})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Sort",tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Organize your data so it's easier to analyze."}),s.jsx("br",{}),s.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:l,icon:ze(s.jsx(sh,{})),...a})})),VB=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Qt.Menuitem,commandHook:o,scope:"sort",disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(eh,{}))}),s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx(B3,{}))}),s.jsx(We,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(zb,{}))})]});return Nn({...c,children:h})},[i,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Filter",tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Organize your data so it's easier to analyze."}),s.jsx("br",{}),s.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:l,icon:ze(s.jsx(eh,{})),...a})})),Mf=u.memo(u.forwardRef((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:a,scope:l,sx:c,disabled:d,commands:p,...h}=e,f=[n];!r&&i&&f.push("redo");const g=_o(p,f),m=g[0],y=g[1],x=a??m?.context?.()?.undoManager;let v=d;d||(v=!m||m.disabled(),y&&!y.disabled()&&(v=!1));const[b,w]=u.useState(0),E=u.useCallback((S,R)=>{let _=b===0?"Cancel":`${m.label()} ${b} Action${b===1?"":"s"}`,A=!1;x||(A=!0),A||(A=i?!x.hasRedo()&&!x.hasUndo():!x.hasRedo());const T=I=>{m.execute(I)},j=s.jsx(Gr,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:A?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{w(0)},onMouseDown:I=>{I.button===0&&I.preventDefault()},onMouseUp:I=>{I.button===0&&T(b)},onKeyDown:I=>{I.isDefaultPrevented()||I.keyCode!==nn.Enter&&I.keyCode!==nn.Space||T(b)},children:s.jsx(Tn,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:_})});if(A)return j;const C=r?x?.getRedoDescriptions():x?.getUndoDescriptions(),k=[];for(let I=0;I<C.length;I++){const z=C[I];k.push(s.jsx(Gr,{sx:{maxWidth:"360px",display:"flex"},icon:s.jsx(Ns,{}),disabled:v,selected:I<b,onMouseEnter:()=>{w(I+1)},onMouseDown:L=>{L.button===0&&L.preventDefault()},onMouseUp:L=>{L.button===0&&T(I+1)},onKeyDown:L=>{L.isDefaultPrevented()||L.keyCode!==nn.Enter&&L.keyCode!==nn.Space||T(I+1)},children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[s.jsx(Tn,{component:"div",children:z}),s.jsx(Ns,{})]})},`action:${I}`))}let P=null;if(!r&&i){const I={scope:"undo",commands:R,variant:Qt.Menuitem,parentFloat:S.floatReference};P=[],P.push(s.jsx(Mf,{...I,quickCommand:"redo",isRedo:!0},"nested:redo")),x.hasRedo()&&x.hasUndo()&&P.push(s.jsx($t,{orientation:"horizontal"},"action:redo-div"))}const O=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{S.closeFloatAll()},onMouseLeave:()=>{w(0)},children:[P,s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:k}),s.jsx($t,{orientation:"horizontal"}),j]});return Nn({...S,children:O})},[m?.context(),m?.state(),l,x,b,v]);return s.jsx(Jn,{ref:t,commands:p,quickCommand:n,scope:l,disabled:v,label:m?.label()??(r?"Redo":"Undo"),tooltip:s.jsx(s.Fragment,{children:s.jsx("span",{children:`${m?.label()??"No"} last actions.`})}),createPopupPanel:E,icon:o??ze(s.jsx(r?fD:hD,{})),selected:!1,...h})})),js=$.IFontCollection.getFontList(),$S=new Map;for(let e=0;e<js.length;e++)$S.set(js[e].fontRef.getFamily(),js[e]);const VS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:a,...l}=e;rl(n);const c=n?.state(),d=qi(),p=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("Times New Roman",Math.round(d.typography.fontSize),d.typography.fontFamily).width}px`,[d]),h=u.useCallback(f=>{const g=v=>{n?.execute(v,o)},m=[];for(let v=0;v<js.length;v++)m.push({key:js[v].fontRef.getFamily(),description:js[v].fontRef.getFamily()});$S.get(c)||m.unshift({key:c,description:c});const y=[];for(let v=0;v<m.length;v++){const b=m[v].key===c;y.push(s.jsx(Gr,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:b,disabled:i||!n||n.disabled(),icon:b?s.jsx(S1,{}):void 0,onMouseUp:w=>{w.button===0&&g(m[v].key)},onMouseDown:w=>{w.button===0&&w.preventDefault()},onKeyDown:w=>{w.keyCode!==nn.Enter&&w.keyCode!==nn.Space||g(m[v].key)},children:s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:s.jsx(Tn,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>m[v]?.key},children:m[v].description})})},v+""+m[v].key))}const x=s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...l,children:s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:y})});return Nn({...f,children:x})},[i,n?.state()]);return s.jsx(Ui,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:a,createPopupPanel:h,createTooltip:({children:f},g)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:g,children:f}),icon:s.jsx(Ae,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:f=>`${Math.round(f.typography.fontSize)}px`,fontFamily:f=>f.typography.fontFamily,color:f=>f.palette.text.secondary,width:p},children:s.jsx(Ae,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:c})}),...l})})),HS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),c=u.useMemo(()=>{for(let h=0;h<l.length;h++)if(l[h]?.state())return l[h].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatStrikeThroughToggle",ze(s.jsx(R7,{}))),h.set("formatSuperscriptToggle",ze(s.jsx(IO,{}))),h.set("formatSubscriptToggle",ze(s.jsx(PO,{}))),h},[]),p=u.useCallback((h,f)=>{const g={variant:Qt.Menuitem,commandHook:o,scope:"textEffects",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(We,{...g,command:f.getCommand("formatStrikeThroughToggle"),icon:d.get("formatStrikeThroughToggle")}),s.jsx(We,{...g,command:f.getCommand("formatSuperscriptToggle"),icon:d.get("formatSuperscriptToggle")}),s.jsx(We,{...g,command:f.getCommand("formatSubscriptToggle"),icon:d.get("formatSubscriptToggle")})]});return Nn({...h,children:m})},[i,o,r]);return s.jsx(Jn,{ref:t,quickCommand:c,commands:n,commandHook:o,createPopupPanel:p,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:d.get(c)??ze(s.jsx(R7,{})),...a})})),WS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),c=u.useMemo(()=>{for(let h=0;h<l.length;h++)if(l[h]?.state())return l[h].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatUnderlinedToggle",ze(s.jsx(_p,{}))),h.set("formatUnderlinedDoubleToggle",ze(s.jsx(I7,{}))),h.set("formatUnderlinedAccountingToggle",ze(s.jsx(P7,{}))),h.set("formatUnderlinedAccountingDoubleToggle",ze(s.jsx(O7,{}))),h},[]),p=u.useCallback((h,f)=>{const g={variant:Qt.Menuitem,commandHook:o,scope:"underline",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(We,{...g,command:f.getCommand("formatUnderlinedToggle"),icon:ze(s.jsx(_p,{}))}),s.jsx(We,{...g,command:f.getCommand("formatUnderlinedDoubleToggle"),icon:ze(s.jsx(I7,{}))}),s.jsx(We,{...g,command:f.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ze(s.jsx(P7,{}))}),s.jsx(We,{...g,command:f.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ze(s.jsx(O7,{}))})]});return Nn({...h,children:m})},[i,o,r]);return s.jsx(Jn,{ref:t,quickCommand:c,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:p,icon:d.get(c)??ze(s.jsx(_p,{})),...a})})),Tf=u.memo(u.forwardRef((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:a=!0,disabled:l=!1,...c}=e,d=Te((p,h)=>{const f={variant:Qt.Menuitem,commandHook:r,scope:"paste",disabled:l},g=[];return a&&(g.push(u.createElement(We,{...f,command:h.getCommand("paste"),key:"paste",icon:s.jsx(E7,{})})),g.push(s.jsx($t,{orientation:"horizontal"},"paste-div"))),g.push(u.createElement(We,{...f,command:h.getCommand("pasteValues"),key:"pasteValues",icon:ze(s.jsx(fO,{}))})),g.push(u.createElement(We,{...f,command:h.getCommand("pasteFormats"),key:"pasteFormats",icon:ze(s.jsx(mO,{}))})),g.push(u.createElement(We,{...f,command:h.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ze(s.jsx(gO,{}))})),g.push(u.createElement(We,{...f,command:h.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ze(s.jsx(yO,{}))})),g.push(u.createElement(We,{...f,command:h.getCommand("pasteLinks"),key:"pasteLinks",icon:ze(s.jsx(xO,{}))})),Nn({...p,children:g})},[l,r,i,a]);return s.jsx(Jn,{ref:t,commands:o,commandHook:r,scope:i,createPopupPanel:d,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:s.jsx(E7,{}),...c})})),US=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),d=u.useCallback((p,h)=>{const f={variant:Qt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(We,{...f,command:h.getCommand("sheetViewToggleShowHeadings")}),s.jsx(We,{...f,command:h.getCommand("sheetViewToggleShowHeadingsNumeric")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...f,command:h.getCommand("sheetViewToggleShowHeadingColumns")}),s.jsx(We,{...f,command:h.getCommand("sheetViewToggleShowHeadingRows")})]});return Nn({...p,children:g})},[i,o,r]);return s.jsx(Jn,{ref:t,parentFloat:a,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:d,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:s.jsx(Us,{command:c[0],scope:"view"}),...l})})),qS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...a}=e,l=u.useCallback(c=>{const d={variant:Qt.Menuitem,parentFloat:c.floatReference,commandHook:o,scope:r,disabled:i},p=s.jsxs(s.Fragment,{children:[s.jsx(We,{...d,command:n.getCommand("workbookViewToggleShowFormulaBar")}),s.jsx(We,{...d,command:n.getCommand("workbookViewToggleShowTabs")}),s.jsx(We,{...d,command:n.getCommand("workbookViewToggleShowStatusBar")}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...d,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),s.jsx(We,{...d,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return Nn({...c,children:p})},[i,n,o,r]);return s.jsx(Jn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:l,icon:s.jsx(Us,{icon:null,label:"Workbook View"}),...a})})),KS=u.memo(u.forwardRef((e,t)=>{const{value:n,cellStyle:o,styles:r,createTemporaryCell:i,bodyStyle:a,sx:l,borderProps:c,disabled:d,...p}=e,h=u.useMemo(()=>i({value:n,style:o}),[n,o,i]),f=u.useMemo(()=>h.getStyle(),[h,a]),g=u.useMemo(()=>f.getFill().toCSS(a?.darkMode??!1),[f]),m=f.getInsets(),y=f.getFont(),x=u.useCallback(()=>f.getBorder(),[f]);return s.jsx(Ae,{ref:t,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:a?.fill,filter:d?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...g},"& .text":{flex:"1 1 100%",...y.toCSS(a?.darkMode??!1,1),boxSizing:"border-box",padding:`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`,margin:"0px",outline:"none",resize:"none",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"baseline",textDecoration:y.toCSS().textDecoration,textAlign:$.ITextFrame.toCSSHorizontalTextAlign(h.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...l},...p,children:s.jsx(pf,{getBorderAt:x,darkMode:a?.darkMode??!1,rowCount:1,columnCount:1,style:{display:"flex",flex:"1 1 100%",width:"100%",maxWidth:"100%",justifyContent:"start",alignItems:"stretch",...c?.style},...c,children:s.jsx(Ae,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:s.jsx(Ae,{className:"text",children:n})})})})})),HB=u.memo(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:a,createTemporaryCell:l,parentFloat:c,commands:d,disabled:p,commandHook:h,...f}=e,g=u.useCallback(x=>{const v={variant:Qt.Menuitem,commandHook:h,context:"cellStyle"},b=s.jsxs(s.Fragment,{children:[s.jsx(We,{...v,sx:{fontWeight:550},command:d.getCommand("formatCellStyle"),commandState:n,disabled:p,icon:ze(s.jsx(Wc,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...v,command:d.getCommand("modifyCellStyle"),commandState:{named:n}}),s.jsx(We,{...v,command:d.getCommand("deleteCellStyle"),commandState:n,disabled:p||n?.getName()===$.IStyle.BuiltInName.Normal})]});return Nn({...x,children:s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:b})})})},[]),m=n?.getName()===o?.getName();let y=s.jsx(ii,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:x=>`solid ${m?x.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName(),placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{a?.(n)},...f,children:s.jsx(KS,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:l,bodyStyle:i})},n.getName());return r&&(y=s.jsx(mv,{label:n.getName(),parentFloat:c,createPopupPanel:g,children:y})),y}),GS=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedNamed:i,onSelectNamed:a,disabled:l=!1,bodyStyle:c,usePreviewIcon:d=!0,...p}=e;rl(o);const h=o?.context(),f=h?.styles,g=i??h?.named(),m=c??h?.bodyStyle(),y=Te(E=>{a?.(E),o?.execute(E,r)},[o,a,r]),x=u.useCallback((E,S)=>{const R={onSelectNamed:y,styles:f(),parentFloat:E.floatReference},_=f().getCustomNamed(),A=new Map,T=[];for(let L=0;L<_.length;L++)A.set(_[L].getName(),_[L]),f().getNamed(_[L].getName()).getBuiltInID()===null&&T.push(_[L].getName());const j=L=>{let D=A.get(L);return D||(D=f().getNamed(L)),!D||D.isHidden()?null:s.jsx(HB,{namedStyle:D,selectedNamed:g,bodyStyle:h.bodyStyle(),createTemporaryCell:h.createTemporaryCell,commands:n,commandHook:r,...R},L)},C=(L,D,F=!0)=>{const B=[];for(let M=0;M<D.length;M++){const N=j(D[M]);N&&B.push(N)}return B.length===0?null:s.jsxs(Ae,{children:[F?s.jsx($t,{orientation:"horizontal"}):null,s.jsx(Hs,{children:L},L+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:B},L+"-presets")]},L)},k=(L,D)=>{const F=[];for(let B=0;B<D.length;B++){const M=j(D[B]);M&&F.push(M)}return F.length===0?null:s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:F},L+"-presets")},P=[];P.push(C("Custom",T,!1)),P.push(C("Good, Bad and Neutral",[$.IStyle.BuiltInName.Normal,$.IStyle.BuiltInName.Bad,$.IStyle.BuiltInName.Good,$.IStyle.BuiltInName.Neutral],T.length>0)),P.push(C("Data and Model",[$.IStyle.BuiltInName.Calculation,$.IStyle.BuiltInName.CheckCell,$.IStyle.BuiltInName.ExplanatoryText,$.IStyle.BuiltInName.FollowedHyperlink,$.IStyle.BuiltInName.Hyperlink,$.IStyle.BuiltInName.Input,$.IStyle.BuiltInName.LinkedCell,$.IStyle.BuiltInName.Note,$.IStyle.BuiltInName.Output,$.IStyle.BuiltInName.WarningText])),P.push(C("Titles and Headings",[$.IStyle.BuiltInName.Heading1,$.IStyle.BuiltInName.Heading2,$.IStyle.BuiltInName.Heading3,$.IStyle.BuiltInName.Heading4,$.IStyle.BuiltInName.Title,$.IStyle.BuiltInName.Total]));let O=[];var I,z;return O.push(k("Accent 1",[$.IStyle.BuiltInName.Accent1_20,$.IStyle.BuiltInName.Accent1_40,$.IStyle.BuiltInName.Accent1_60,$.IStyle.BuiltInName.Accent1])),O.push(k("Accent 2",[$.IStyle.BuiltInName.Accent2_20,$.IStyle.BuiltInName.Accent2_40,$.IStyle.BuiltInName.Accent2_60,$.IStyle.BuiltInName.Accent2])),O.push(k("Accent 3",[$.IStyle.BuiltInName.Accent3_20,$.IStyle.BuiltInName.Accent3_40,$.IStyle.BuiltInName.Accent3_60,$.IStyle.BuiltInName.Accent3])),O.push(k("Accent 4",[$.IStyle.BuiltInName.Accent4_20,$.IStyle.BuiltInName.Accent4_40,$.IStyle.BuiltInName.Accent4_60,$.IStyle.BuiltInName.Accent4])),O.push(k("Accent 5",[$.IStyle.BuiltInName.Accent5_20,$.IStyle.BuiltInName.Accent5_40,$.IStyle.BuiltInName.Accent5_60,$.IStyle.BuiltInName.Accent5])),O.push(k("Accent 6",[$.IStyle.BuiltInName.Accent6_20,$.IStyle.BuiltInName.Accent6_40,$.IStyle.BuiltInName.Accent6_60,$.IStyle.BuiltInName.Accent6])),P.push((I="Themed Cell Styles",z=O,s.jsxs(Ae,{children:[s.jsx($t,{orientation:"horizontal"}),s.jsx(Hs,{children:I},I+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:z},I+"-presets")]},I))),P.push(C("Number Format",[$.IStyle.BuiltInName.Comma,$.IStyle.BuiltInName.Comma0,$.IStyle.BuiltInName.Currency,$.IStyle.BuiltInName.Currency0,$.IStyle.BuiltInName.Percent])),s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:L=>`${L.shape.borderRadius}px`,paddingBottom:L=>`${L.shape.borderRadius}px`},children:[s.jsx(Ae,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:P}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{variant:Qt.Menuitem,commandState:g,command:S.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:l,icon:ze(s.jsx(AO,{}))})]})},[g,f?.().getTheme(),m]),v=Te(E=>{const S=18/$.IFont.getDeviceScale(),R=h?.createTemporaryCell(E);return R.getStyle().getFont().getSize()<=S?R:R.createTemporaryCell({style:{font:{size:S}}})},[h?.createTemporaryCell]),b=l||!o||o.disabled(),w=u.useMemo(()=>h&&d?s.jsx(KS,{value:g?.getName()??"Custom",cellStyle:g?{named:g.getName()}:void 0,styles:h.styles(),createTemporaryCell:v,bodyStyle:h.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:E=>`1px solid ${E.palette.action.hover}`},borderProps:{}}):ze(s.jsx(Wc,{})),[g,m,b]);return s.jsx(Jn,{ref:t,createPopupPanel:x,outlined:d,commands:n,createTooltip:({children:E},S)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:S,children:E}),selected:!1,disabled:b,label:o?.label(),icon:w,...p})})),ZS="_sheetxl-reset_ods65_1",WB=10,_f=u.memo(u.forwardRef((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:a,disabled:l,className:c,forceThinBorder:d,cellHeight:p=WB,isLive:h=!1,...f}=e,g=Math.ceil(1.3*p),[m,y]=u.useReducer(E=>E+1,0);u.useEffect(()=>{if(h&&o)return o.addListeners({onAnyChange:()=>{y()}})},[o,h]);const x=u.useMemo(()=>{let E=o?.toJSON()??{};const S={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return E&&(E.styleOptions={...E.styleOptions,name:r.getName()}),E.ref=S,new $.Table({initialAnchor:S,json:E,styles:n})},[m,o,r,n]),v=u.useMemo(()=>{const E=[];for(let S=0;S<5;S++)for(let R=0;R<5;R++){const _=x.getStyleAt({colIndex:R,rowIndex:S});E.push(_)}return E},[x]),b=u.useMemo(()=>{const E=(R,_,A)=>{let T=A.getFill().toCSS(i?.darkMode??!1);const j=g-(_<4?1:0),C=p-(R<4?1:0),k=A.getFont().getFill().toCSS(i?.darkMode??!1);return T={...T,position:"absolute",boxSizing:"border-box",left:_*(g-1),top:R*(p-1),width:j,height:C},s.jsx("td",{className:`table-style-fill ${R}-${_}`,style:T,children:s.jsx("div",{className:`table-style-text ${R}-${_}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(j-6)/2,top:(C-1)/2,borderTop:`1px solid ${k}`}})},`${R}-${_}`)},S=[];for(let R=0;R<5;R++){const _=[];for(let A=0;A<5;A++){const T=v[5*R+A];_.push(E(R,A,T))}S.push(s.jsx("tr",{children:_},R))}return S},[x,r,i]),w=u.useCallback((E,S)=>v[S].getBorder()??null,[v]);return s.jsx(Ae,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:l?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...a},...f,children:s.jsx(pf,{getBorderAt:w,rowCount:5,columnCount:5,forceThinBorder:d,width:5*(g-1)+1,height:5*(p-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:s.jsx("table",{className:Eo(c,"sheetxl-table-preview",ZS),style:{borderCollapse:"collapse",width:5*(g-1)+1,height:5*(p-1)+1},children:s.jsx("tbody",{children:b})})})})})),z0=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},XS=u.memo(u.forwardRef((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:a,style:l,className:c,canvas:d,...p}=e,h=u.useMemo(()=>{const m=n.toJSON(),y={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return m.styleOptions={...m.styleOptions,name:o.getName()},m.ref=y,new $.Table({initialAnchor:y,json:m,styles:r})},[n,o,r]),f=u.useMemo(()=>{const m=[];for(let y=0;y<5;y++)for(let x=0;x<5;x++){const v=h.getStyleAt({colIndex:x,rowIndex:y});m.push(v)}return m},[h]),g=u.useMemo(()=>{let m=d;if(d||(m=document.createElement("canvas")),!m)return null;m.width!==61&&(m.width=61),m.height!==46&&(m.height=46);const y=m.getContext("2d",{alpha:!1});if(!y)return null;const x=12,v=i?.darkMode??!1;for(let b=0;b<5;b++)for(let w=0;w<5;w++){const E=f[5*b+w].getFill();let S=i?.fill;E.getType()===$.IFill.Type.Solid?S=E.getColor().toCSS(v,!1):E.getType()===$.IFill.Type.Gradient?S=E.getStops[0]?.color.toCSS(v,!1):E.getType()===$.IFill.Type.Pattern&&(S=E.getForeground().toCSS(v,!1)),y.fillStyle=S;const R=w*x,_=9*b;y.fillRect(R,_,13,10)}y.lineWidth=1;for(let b=0;b<5;b++)for(let w=0;w<5;w++){const E=f[5*b+w],S=w*x,R=9*b,_=E.getBorder();if(!_.isEmpty()){const j=_.getLeft();j.isNone()||(y.strokeStyle=j.getColor().toCSS(v,!1),z0(y,S,R,S,R+9));const C=_.getTop();C.isNone()||(y.strokeStyle=C.getColor().toCSS(v,!1),z0(y,S,R,S+x,9*b));const k=_.getRight();k.isNone()||(y.strokeStyle=k.getColor().toCSS(v,!1),z0(y,S+x,R,S+x,R+9));const P=_.getBottom();P.isNone()||(y.strokeStyle=P.getColor().toCSS(v,!1),z0(y,S,R+9,S+x,R+9))}y.strokeStyle=E.getFont().getFill().toCSS(v,!1);const A=4,T=2.5;z0(y,w*x+T,9*b+A,w*x+T+7,9*b+A)}return`url(${m.toDataURL()})`},[d,h,o,i]);return s.jsx("div",{ref:t,className:Eo("table-style-preview",c),style:{backgroundImage:g,width:61,height:46,...l},...p})})),YS=u.memo(u.forwardRef((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:a,onShowTotalRowChange:l,showFilterButton:c,onShowFilterButtonChange:d,sx:p,disabled:h,...f}=e;return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap",userSelect:"none",pt:1,pb:1,"& .MuiFormControlLabel-root":{marginLeft:g=>`${g.spacing(2)}`,marginRight:g=>`${g.spacing(2)}`},"& .MuiCheckbox-root":{padding:g=>`${g.spacing(.5)}`},...p},...f,ref:t,children:[i&&s.jsx($a,{control:s.jsx(Na,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:h||r==null}),label:"Header Row",labelPlacement:"end"}),l&&s.jsx($a,{control:s.jsx(Na,{checked:a??!1,indeterminate:a==null,onChange:()=>l(!a),disabled:h||a==null}),label:"Total Row",labelPlacement:"end"}),s.jsx($a,{control:s.jsx(Na,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:h||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),s.jsx($a,{control:s.jsx(Na,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:h||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),s.jsx($a,{control:s.jsx(Na,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:h||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),s.jsx($a,{control:s.jsx(Na,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:h||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),d&&s.jsx($a,{control:s.jsx(Na,{checked:c??!1,indeterminate:c==null,disabled:h||!n||c==null,onChange:()=>d(!c)}),label:"Filter Button",labelPlacement:"end"})]})})),UB=u.memo(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:a=!0,bodyStyle:l,parentFloat:c,commands:d,disabled:p,commandHook:h,useCanvasPreview:f=!0,canvas:g,...m}=e,y=u.useCallback(w=>{const E={variant:Qt.Menuitem,commandHook:h,context:"table"},S=s.jsxs(s.Fragment,{children:[s.jsx(We,{...E,command:d.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:p,icon:ze(s.jsx(Wc,{}))}),s.jsx(We,{...E,sx:{fontWeight:550},command:d.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:p,icon:ze(s.jsx(Wc,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...E,command:d.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:p}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...E,command:d.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:p||!n||n.isBuiltIn()})]});return Nn({...w,children:s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:S})})})},[d]),x=n?.getName()===o,v=u.useMemo(()=>{const w={table:t,tableStyle:n,styles:i,bodyStyle:l};return f?s.jsx(XS,{canvas:g,...w}):s.jsx(_f,{...w})},[t,n,i,l]);let b=s.jsx(ii,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:w=>`solid ${x?w.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName()??"None",placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{r?.(n?.getName())},...m,children:v},n.getName());return a&&(b=s.jsx(mv,{label:t.getStyleOptions().name,parentFloat:c,createPopupPanel:y,children:b})),b}),JS=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:a,disabled:l=!1,bodyStyle:c,usePreviewIcon:d=!1,...p}=e;rl(o);const h=o?.context(),f=h?.styles,g=i??h?.table?.();let m="insertTable";g&&(m="editTable");const y=u.useMemo(()=>((T,j)=>{const C={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new $.Table({initialAnchor:C,styles:j,json:{name:"PreviewTable",ref:C,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:T}})})(g?.getStyleOptions(),f?.()),[f?.().getDefaultTableStyle(),g?.getStyleOptions()]),x=g??y,[v,b]=u.useState(x);u.useEffect(()=>{b(x)},[x]);const w=c??h?.bodyStyle(),E=Te(T=>{a?.(T),o?.execute({name:T},r)},[o,a,r]),S=u.useRef(null),R=u.useCallback((T,j)=>{const C={onSelectTableStyleName:E,styles:f(),parentFloat:T.floatReference};S.current||(S.current=document.createElement("canvas"));const k=M=>{const N=f().getTableStyle(M);return N?s.jsx(UB,{table:v,tableStyle:N,selectedTableStyleName:v.getStyleOptions().name,bodyStyle:h.bodyStyle(),commands:j,commandHook:r,canvas:S.current,...C},M):null},P=(M,N,V=!0)=>{const U=[];for(let J=0;J<N.length;J++){const X=k(N[J]);X&&U.push(X)}return U.length===0?null:s.jsxs(Ae,{children:[V?s.jsx($t,{orientation:"horizontal"}):null,s.jsx(Hs,{children:M},M+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:U},M+"-presets")]},M)},O=[],I=f().getCustomTableStyles(),z=[];if(I.length>0){for(let M=0;M<I.length;M++)I[M].isShownInTableStyles()&&z.push(I[M].getName());O.push(P("Custom",z,!1))}const L=[];g&&!g.getStyleOptions().name&&L.push(null);for(let M=0;M<21;M++)L.push("TableStyleLight"+(M+1));O.push(P("Light",L,z.length>0));const D=[];for(let M=0;M<28;M++)D.push("TableStyleMedium"+(M+1));O.push(P("Medium",D));const F=[];for(let M=0;M<11;M++)F.push("TableStyleDark"+(M+1));O.push(P("Dark",F));let B=null;return g&&(B=s.jsxs(s.Fragment,{children:[s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{variant:Qt.Menuitem,command:j.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:l,icon:ze(s.jsx(bb,{}))})]})),s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:M=>`${M.shape.borderRadius}px`,paddingBottom:M=>`${M.shape.borderRadius}px`},children:[s.jsx(Ae,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:O}),B]})},[f,f?.().getTheme(),w,v]),_=l||!o||o.disabled(),A=u.useMemo(()=>{if(!h||!d)return ze(s.jsx(Wc,{}))},[v,w,_]);return s.jsx(Jn,{ref:t,quickCommand:m,createPopupPanel:R,commands:n,label:o?.label(),commandState:g,commandHook:r,selected:g!==null,createTooltip:({children:T},j)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:j,children:T}),disabled:_,icon:A,...p})})),mi=[];mi.push(Fi("Primary Background","bg1")),mi.push(Fi("Primary Text","tx1")),mi.push(Fi("Secondary Background","bg2")),mi.push(Fi("Secondary Text","tx2")),mi.push(Fi("Accent 1","accent1")),mi.push(Fi("Accent 2","accent2")),mi.push(Fi("Accent 3","accent3")),mi.push(Fi("Accent 4","accent4")),mi.push(Fi("Accent 5","accent5")),mi.push(Fi("Accent 6","accent6"));const QS=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:a,...l}=e,c=qi(),d=u.useMemo(()=>{let p=[];for(let h=0;h<mi.length;h++){const f=mi[h];p.push(s.jsx(F2,{schemeColorLookup:t.schemeLookup(),colorDef:f,darkMode:o,selectedColor:null},h+"-colorDef"))}return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:s.jsx(Ae,{sx:{display:"flex",boxShadow:h=>h.shadows[2]},children:p})})},[t,c]);return s.jsx(ii,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:p=>`solid ${r?p.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:p=>`solid ${p.palette.text.primary} 1px !important`}},icon:null,...l,children:s.jsxs(Ae,{sx:{border:p=>`solid ${p.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:p=>r?p.palette.text.primary:void 0,"&:hover:not([disabled])":{color:p=>p.palette.text.primary}},children:[s.jsx(Ae,{sx:{},children:t.getName()}),s.jsxs(Ae,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[d,s.jsx(Ae,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:s.jsx(di,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:s.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.
|
|
219
|
+
The heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:s.jsx("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},eC=u.memo(u.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:a=!1,darkMode:l,...c}=e,d=u.useMemo(()=>{const p=n?.search({selected:o})??[],h=[];if(p.length===0)return s.jsx(Hs,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let f=0;f<p.length;f++){const g=p[f],m=o&&g?.getName()===o.getName(),y=p[f+1];y&&y.isCustom()!==g.isCustom()&&h.push(s.jsx($t,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${f}`)),h.push(s.jsx(QS,{docTheme:g,onSelectTheme:()=>r(g),isSelected:m,disabled:a,darkMode:l,onMouseDown:x=>{x.button===0&&x.preventDefault()},onMouseUp:x=>{x.button===0&&r(g)},onKeyDown:x=>{x.keyCode!==nn.Enter&&x.keyCode!==nn.Space||r(g)}},g.getName()))}return h},[o,r,l]);return s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...c,children:s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(Hs,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),s.jsx($t,{}),s.jsx(Ae,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:d})]})})})),tC=u.memo(u.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:a,label:l,variant:c=ji.Toolbar,darkMode:d,panelProps:p,...h}=e,f=i||ze(s.jsx(Zb,{})),g={createPopupPanel:u.useCallback(m=>{const{closeFloatAll:y}=m;return s.jsx(eC,{...p,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:d,onKeyDown:x=>{x.which===nn.Enter&&y()}})},[n,o,r,p,d]),tooltip:a||l||"Theme",label:l,icon:f,...h};return c===ji.Toolbar?s.jsx(Ui,{ref:t,...g}):s.jsx(w1,{ref:t,...g})})),nC=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:a=!1,darkMode:l,variant:c,...d}=e;rl(n);const p=n?.context()?.themes,h=r||n?.context()?.theme,f=l??n?.context()?.darkMode,g=Te(y=>{i?.(y),n?.execute(y,o)},[i,o]),m=u.useCallback((y,x)=>{const{children:v,title:b,...w}=y;let E=y.children;return(n?.disabled()||a)&&(E=s.jsx("div",{children:E})),s.jsx(n0,{command:n,placement:c===Qt.Toolbar?"bottom-start":"right-start",disabled:x,...w,children:E})},[n,a]);return s.jsx(tC,{ref:t,themes:p,selectedTheme:h,onSelectTheme:g,variant:c===Qt.Menuitem?ji.Menuitem:ji.Toolbar,createTooltip:m,disabled:a,darkMode:f,icon:ze(s.jsx(Zb,{})),...d})})),oC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["themeMode"])[0],c=l?.state(),d=l?.state()!==null,p=m_("(prefers-color-scheme: dark)"),h=c==="dark"||c===null&&p,f=Te((g,m)=>{const y={variant:Qt.Menuitem,commandHook:o,scope:"appearance",disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(We,{...y,command:l,icon:ze(s.jsx(h?H6:q6,{}))}),s.jsx(We,{...y,command:m.getCommand("defaultThemeMode"),icon:ze(s.jsx(p?BO:NO,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...y,command:m.getCommand("forceLightGrid")}),s.jsx(We,{...y,command:m.getCommand("forceLightImages")})]});return Nn({...g,children:x})},[i,l,o,r,p,c,d]);return s.jsx(Jn,{ref:t,quickCommand:"themeMode",commands:n,commandHook:o,createPopupPanel:f,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{l?.execute(h?"light":"dark",o)},selected:d,icon:ze(s.jsx(h?H6:q6,{})),...a})})),rC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:a,...l}=e,c=u.useCallback((d,p)=>{const h={variant:Qt.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(g,m)=>o?.beforeExecute?.(g,m)!==!1&&d.floatReference.closeAll()},disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(We,{...h,command:p.getCommand("showKeyboardShortcuts"),icon:ze(s.jsx(oR,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...h,command:p.getCommand("gotoUrlGithub"),icon:ze(s.jsx(WO,{}))}),s.jsx(We,{...h,command:p.getCommand("gotoUrlDiscord"),icon:ze(s.jsx(HO,{}))}),s.jsx(We,{...h,command:p.getCommand("gotoUrlDocumentation"),icon:ze(s.jsx(Yb,{}))}),s.jsx(We,{...h,command:p.getCommand("gotoUrlIssue"),icon:ze(s.jsx(VO,{}))})]});return Nn({...d,children:f})},[i,o]);return s.jsx(Jn,{ref:t,sx:a,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:c,icon:ze(s.jsx($O,{sx:{transform:"scale(0.75)"}})),...l})})),jf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:a=!0,showQuickButton:l=!0,variant:c=Qt.Toolbar,...d}=e,p=_o(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:h,allDisabled:f}=u.useMemo(()=>{let m=null,y=0;for(let x=0;x<p.length;x++)p[x]&&!p[x]?.disabled()&&(a&&c===Qt.Menuitem&&(m=y===0?p[x]:null),y++);return{singleMenuCommand:m,allDisabled:y===0}},[p]),g=u.useCallback((m,y)=>{const x={variant:Qt.Menuitem,commandHook:o,scope:"insertImage",disabled:i},v=s.jsxs(s.Fragment,{children:[s.jsx(We,{...x,command:y.getCommand("insertImageFromFile"),icon:ze(s.jsx(sd,{}))}),s.jsx(We,{...x,command:y.getCommand("insertImageFromURL"),icon:ze(s.jsx(sd,{}))})]});return Nn({...m,children:v})},[i,o,r]);return h?s.jsx(We,{ref:t,variant:c,commandHook:o,disabled:i,command:h,icon:ze(s.jsx(sd,{})),...d}):s.jsx(Jn,{ref:t,variant:c,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||f,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:g,icon:ze(s.jsx(sd,{})),...d})})),B2=u.memo(u.forwardRef((e,t)=>{const{command:n,...o}=e,r=Hi(),[i,a]=u.useState(!1),[l,c]=u.useState("info");return u.useEffect(()=>{const d=r.getMode();a(d?.key==="copy"||d?.key==="cut"),c(d?.key==="cut"?"warning":"info")},[r]),s.jsx(We,{ref:t,command:n,icon:ze(s.jsx(hO,{isWalking:i,themedType:l})),...o})})),qB=u.memo(u.forwardRef((e,t)=>{const{...n}=e;return s.jsx(sa,{ref:t,...n,popupCommandKeys:["quickFormulaSum","quickFormulaAverage","quickFormulaCount","quickFormulaMax","quickFormulaMin",null,"insertFunction"],quickCommand:"quickFormulaSum",popupScope:"quickFormula",label:"Quick Formulas",tooltip:"More quick functions.",icon:o=>{switch(o?.key()){case"quickFormulaSum":return ze(s.jsx(yD,{}));case"insertFunction":return ze(s.jsx(gD,{}));default:return null}}})})),iC=u.createContext(null);iC.displayName="HookFormContext";const aC=()=>u.useContext(iC),Rf=u.memo(u.forwardRef((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:a,value:l,formName:c,formOptions:d,onChangeInput:p,onValidate:h,onKeyDown:f,...g}=e,m=aC(),y=c&&m?m.register(c,d):null,[x,v]=u.useState(""),[b,w]=u.useState(""),[E,S]=u.useState(l);u.useEffect(()=>{S(l),w("")},[l]);const R=Te(C=>{let k="";try{S(C),h?.(C),p?.(C)}catch(P){k=P.message??"Invalid Name"}c&&m&&(k?m.setError(c,{message:k}):m.clearErrors(c)),w(k)},[l,h,p]),_=Te(async C=>{C.keyCode===nn.Escape&&x!==l&&(R(x),m?.setValue(c,x),m?.clearErrors(c),C.stopPropagation()),f?.(C)},[f,x,l,m]),A=Te(C=>{v(C.target.value??"")},[]),T=Te(C=>{v(""),y?.onBlur(C)},[]),j=u.useCallback(C=>{R(C.target.value),y?.onChange(C)},[y]);return s.jsx(g1,{sx:{paddingTop:C=>C.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Eo("named-input",r),...g,children:s.jsx(S3,{label:"Name",placeholder:a,onFocus:A,onBlur:T,inputRef:y?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:C=>C.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:c,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:C=>C.spacing(1.25),paddingBottom:C=>C.spacing(.75),backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`}}},value:E??"",onChange:j,onKeyDownCapture:_,onContextMenu:C=>{C.stopPropagation()}})})}));Rf.displayName="NamedInput";const Md=e=>e===null?"":e.toString(),If=u.memo(u.forwardRef((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:a,sx:l,onKeyDown:c,value:d,onChangeInput:p,resolvedAddress:h,...f}=e,g=aC(),m=n&&g?g.register(n,o):null,[y,x]=u.useState(""),[v,b]=u.useState(!1),[w,E]=u.useState(()=>Md(d));u.useEffect(()=>{E(Md(d)),x(""),n&&g&&g.clearErrors(n),b(!1)},[d]);const S=Te(k=>{let P="";try{E(k);const O=Md(d),I=h(k);I.toString()!==O&&p?.(I)}catch{P="Invalid Range"}n&&g&&(P?g.setError(n,{message:P}):g.clearErrors(n)),x(P),b(!0)},[w,p,n,g]),R=Te(async k=>{if(v&&k.keyCode===nn.Escape){const P=Md(d);E(P),x(""),b(!1),k.stopPropagation()}c?.(k)},[d,p,c,v]),_=Te(k=>{m?.onBlur(k)},[m]),A=u.useCallback(k=>{S(k.target.value),m?.onChange(k)},[m]),[T,j]=u.useState(!1),C=u.useMemo(()=>s.jsx(yx,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:s.jsx(gv,{disabled:!0,selected:T,onSelectToggle:k=>{j(k)},label:"Select Range",icon:ze(s.jsx(pD,{}))})}),[T]);return s.jsx(g1,{sx:{paddingTop:k=>k.spacing(1.5),minWidth:135,width:"100%",...l},size:"small",ref:t,className:Eo("range-input",a),...f,children:s.jsx(S3,{label:"Range",placeholder:"Enter Range",onBlur:_,disabled:r,error:!!y,inputRef:m?.ref,helperText:y||" ",sx:{"& .MuiFormHelperText-root":{marginTop:k=>k.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:k=>k.spacing(1.25),paddingBottom:k=>k.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},endAdornment:C},value:w??"",onChange:A,onKeyDownCapture:R,onContextMenu:k=>{k.stopPropagation()}})})}));If.displayName="RangeInput";const Pf=u.memo(u.forwardRef((e,t)=>{const{sheet:n,className:o,debounceDelay:r=220,sx:i,...a}=e,[l,c]=u.useState(()=>n.getView().getZoomScale()),[d,p]=u.useState(null),h=u.useRef(0);sn(n,{onViewChange:()=>{p(!0),h.current===0&&c(n.getView().getZoomScale())}}),u.useEffect(()=>{h.current=0,p(!1),c(n.getView().getZoomScale())},[n]),u.useEffect(()=>{h.current!==0&&$.CommonUtils.debounce(()=>{l===h.current&&(h.current=0,n.getView().update({zoomScale:l}))},r)()},[l,r]);const f=Te(_=>{let A=_;_<100?A=Math.round(_/(10/9)+10):_>100&&(A=Math.round(3*_-200)),h.current=A,p(!0),c(A)},[n]),g=_=>{let A=_;return _<100?A=10/9*(_-10):_>100&&(A=(_+200)/3),A},m=g(l),[y,x]=u.useState(null),v=u.useRef(null),b=u.useCallback(()=>{const _=y;_&&requestAnimationFrame(()=>{v.current?.contains(document.activeElement)&&_.focus()})},[]),w=w4(()=>{f(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),E=w4(()=>f(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),S=qi(),R=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("100%",Math.round(S.typography.fontSize),S.typography.fontFamily).width}px`,[S]);return s.jsxs(Ae,{ref:t,className:Eo(o),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:_=>_.palette.text.secondary,...i},onFocus:_=>{_.relatedTarget&&!y&&x(_.relatedTarget)},onBlur:_=>{y&&!v?.current?.contains(_.relatedTarget)&&x(null)},onMouseDown:_=>{_.button===0&&_.preventDefault()},onMouseUp:_=>{_.button===0&&b()},...a,children:[s.jsx(di,{disableInteractive:!0,title:"Zoom Out",children:s.jsx(Mr,{sx:{padding:"0","&:hover:not([disabled])":{color:_=>_.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:_=>{_.button!==0?_.preventDefault():w(_)},children:s.jsx(aR,{})})}),s.jsx(yj,{ref:v,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:_=>`0px 0px 0px 3px ${fh(_.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:_=>`0px 0px 0px 2px ${fh(_.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:d?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:m,max:200,marks:[{value:100}],onAnimationEnd:()=>p(!1),onWheel:_=>{f(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),_.deltaY<0,10)))},onKeyDown:_=>{_.which===nn.Down||_.which===nn.Right?(f(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),_.preventDefault()):_.which===nn.Up||_.which===nn.Left?(f(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),_.preventDefault()):_.which!==nn.Enter&&_.which!==nn.Escape||b()},onChange:(_,A)=>{Math.abs(A-100)<3?f(100):f(A)},valueLabelFormat:(_,A)=>`Zoom: ${Math.round(l)}%`}),s.jsx(di,{disableInteractive:!0,title:"Zoom In",children:s.jsx(Mr,{sx:{padding:"0","&:hover:not([disabled])":{color:_=>_.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:_=>{_.button!==0?_.preventDefault():E(_)},children:s.jsx(Kj,{})})}),s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row"},children:[s.jsx(Ae,{sx:{minWidth:"8px"}}),s.jsx(Tn,{noWrap:!0,component:"div",onClick:()=>{f(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:R},children:s.jsx("div",{children:Math.round(l)+"%"})})]})]})}));Pf.displayName="SheetZoomScale";const Of=u.memo(u.forwardRef((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:a,...l}=e;u.useImperativeHandle(t,()=>({}));const c=u.useRef(null);u.useEffect(()=>{const g=m=>m.preventDefault();return c.current?.addEventListener("wheel",g,{passive:!1}),()=>{c.current?.removeEventListener("wheel",g)}},[]);const d=Hi(),p=u.useMemo(()=>{const g=d.getMode();return g?.description?g.description:"Ready"},[d]),[h,f]=u.useState(!1);return s.jsxs(Ae,{ref:c,sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",overflow:h?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),...l,children:[i,s.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:s.jsx(Tn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:g=>g.palette.text.secondary},variant:"caption",children:p})}),a?s.jsx(Ae,{sx:{display:"flex",alignItems:"center"},children:a}):null,s.jsx($t,{style:{marginTop:"6px",marginBottom:"6px"}}),s.jsx(Pf,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));Of.displayName="StatusBar";var Rg,Ig,Td={exports:{}},F0={},B0={exports:{}},Pg={},_d={exports:{}},Wo={},hl={};function Zu(){return Ig||(Ig=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},hl.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},hl.int=function(e){return parseInt(e,10)},hl.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},hl.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),hl}var Og,Dg,Ba={};function Vh(){if(Dg)return Wo;Dg=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.addClassName=a,Wo.addEvent=function(c,d,p,h){if(!c)return;const f={capture:!0,...h};c.addEventListener?c.addEventListener(d,p,f):c.attachEvent?c.attachEvent("on"+d,p):c["on"+d]=p},Wo.addUserSelectStyles=function(c){if(!c)return;let d=c.getElementById("react-draggable-style-el");d||(d=c.createElement("style"),d.type="text/css",d.id="react-draggable-style-el",d.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
220
|
+
`,d.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
221
|
+
`,c.getElementsByTagName("head")[0].appendChild(d)),c.body&&a(c.body,"react-draggable-transparent-selection")},Wo.createCSSTransform=function(c,d){const p=r(c,d,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},Wo.createSVGTransform=function(c,d){return r(c,d,"")},Wo.getTouch=function(c,d){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>d===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>d===p.identifier)},Wo.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},Wo.getTranslation=r,Wo.innerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingTop),d-=(0,e.int)(p.paddingBottom),d},Wo.innerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingLeft),d-=(0,e.int)(p.paddingRight),d},Wo.matchesSelector=o,Wo.matchesSelectorAndParentsTo=function(c,d,p){let h=c;do{if(o(h,d))return!0;if(h===p)return!1;h=h.parentNode}while(h);return!1},Wo.offsetXYFromParent=function(c,d,p){const h=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-h.left)/p,y:(c.clientY+d.scrollTop-h.top)/p}},Wo.outerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderTopWidth),d+=(0,e.int)(p.borderBottomWidth),d},Wo.outerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderLeftWidth),d+=(0,e.int)(p.borderRightWidth),d},Wo.removeClassName=l,Wo.removeEvent=function(c,d,p,h){if(!c)return;const f={capture:!0,...h};c.removeEventListener?c.removeEventListener(d,p,f):c.detachEvent?c.detachEvent("on"+d,p):c["on"+d]=null},Wo.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=Zu(),t=function(c){if(typeof WeakMap=="function")var d=new WeakMap;return function(p){if(p&&p.__esModule)return p;var h,f,g={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return g;if(h=d){if(h.has(p))return h.get(p);h.set(p,g)}for(const m in p)m!=="default"&&{}.hasOwnProperty.call(p,m)&&((f=(h=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,m))&&(f.get||f.set)?h(g,m,f):g[m]=p[m]);return g}(c)}(function(){if(Og)return Ba;Og=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.browserPrefixToKey=p,Ba.browserPrefixToStyle=function(h,f){return f?`-${f.toLowerCase()}-${h}`:h},Ba.default=void 0,Ba.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const f=window.document?.documentElement?.style;if(!f||h in f)return"";for(let g=0;g<c.length;g++)if(p(h,c[g])in f)return c[g];return""}function p(h,f){return f?`${f}${function(g){let m="",y=!0;for(let x=0;x<g.length;x++)y?(m+=g[x].toUpperCase(),y=!1):g[x]==="-"?y=!0:m+=g[x];return m}(h)}`:h}return Ba.default=d(),Ba}());let n="";function o(c,d){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(p){return(0,e.isFunction)(c[p])})),!!(0,e.isFunction)(c[n])&&c[n](d)}function r(c,d,p){let{x:h,y:f}=c,g=`translate(${h}${p},${f}${p})`;return d&&(g=`translate(${typeof d.x=="string"?d.x:d.x+p}, ${typeof d.y=="string"?d.y:d.y+p})`+g),g}function i(c){if(c)try{if(c.body&&l(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const d=(c.defaultView||window).getSelection();d&&d.type!=="Caret"&&d.removeAllRanges()}}catch{}}function a(c,d){c.classList?c.classList.add(d):c.className.match(new RegExp(`(?:^|\\s)${d}(?!\\S)`))||(c.className+=` ${d}`)}function l(c,d){c.classList?c.classList.remove(d):c.className=c.className.replace(new RegExp(`(?:^|\\s)${d}(?!\\S)`,"g"),"")}return Wo}var Lg,ea={};function Ag(){if(Lg)return ea;Lg=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},ea.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},ea.createCoreData=function(o,r,i){const a=!(0,e.isNum)(o.lastX),l=n(o);return a?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:l,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},ea.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},ea.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:a}=o.props;var l;a=typeof a=="string"?a:{left:(l=a).left,top:l.top,right:l.right,bottom:l.bottom};const c=n(o);if(typeof a=="string"){const{ownerDocument:d}=c,p=d.defaultView;let h;if(h=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(h instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const f=h,g=p.getComputedStyle(c),m=p.getComputedStyle(f);a={left:-c.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(g.marginLeft),top:-c.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(f)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(f)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(a.right)&&(r=Math.min(r,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(r=Math.max(r,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[r,i]},ea.getControlPosition=function(o,r,i){const a=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!a)return null;const l=n(i),c=i.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(a||o,c,i.props.scale)},ea.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=Zu(),t=Vh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return ea}var zg,Fg,Bg,Ng,N0={},i5={};function $g(){return zg||(zg=1,Object.defineProperty(i5,"__esModule",{value:!0}),i5.default=function(){}),i5}function KB(){return Bg||(Bg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=function(m){if(typeof WeakMap=="function")var y=new WeakMap;return function(x){if(x&&x.__esModule)return x;var v,b,w={__proto__:null,default:x};if(x===null||typeof x!="object"&&typeof x!="function")return w;if(v=y){if(v.has(x))return v.get(x);v.set(x,w)}for(const E in x)E!=="default"&&{}.hasOwnProperty.call(x,E)&&((b=(v=Object.defineProperty)&&Object.getOwnPropertyDescriptor(x,E))&&(b.get||b.set)?v(w,E,b):w[E]=x[E]);return w}(m)}(u),n=p(qc()),o=p(yo),r=function(){if(Rg)return _d.exports;function m(x){var v,b,w="";if(typeof x=="string"||typeof x=="number")w+=x;else if(typeof x=="object")if(Array.isArray(x)){var E=x.length;for(v=0;v<E;v++)x[v]&&(b=m(x[v]))&&(w&&(w+=" "),w+=b)}else for(b in x)x[b]&&(w&&(w+=" "),w+=b);return w}function y(){for(var x,v,b=0,w="",E=arguments.length;b<E;b++)(x=arguments[b])&&(v=m(x))&&(w&&(w+=" "),w+=v);return w}return Rg=1,_d.exports=y,_d.exports.clsx=y,_d.exports}(),i=Vh(),a=Ag(),l=Zu(),c=p(function(){if(Fg)return N0;Fg=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.default=void 0;var m=function(C){if(typeof WeakMap=="function")var k=new WeakMap;return function(P){if(P&&P.__esModule)return P;var O,I,z={__proto__:null,default:P};if(P===null||typeof P!="object"&&typeof P!="function")return z;if(O=k){if(O.has(P))return O.get(P);O.set(P,z)}for(const L in P)L!=="default"&&{}.hasOwnProperty.call(P,L)&&((I=(O=Object.defineProperty)&&Object.getOwnPropertyDescriptor(P,L))&&(I.get||I.set)?O(z,L,I):z[L]=P[L]);return z}(C)}(u),y=S(qc()),x=S(yo),v=Vh(),b=Ag(),w=Zu(),E=S($g());function S(C){return C&&C.__esModule?C:{default:C}}function R(C,k,P){return(k=typeof(O=function(I,z){if(typeof I!="object"||!I)return I;var L=I[Symbol.toPrimitive];if(L!==void 0){var D=L.call(I,z);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(k,"string"))=="symbol"?O:O+"")in C?Object.defineProperty(C,k,{value:P,enumerable:!0,configurable:!0,writable:!0}):C[k]=P,C;var O}const _={start:"touchstart",move:"touchmove",stop:"touchend"},A={start:"mousedown",move:"mousemove",stop:"mouseup"};let T=A,j=class extends m.Component{constructor(){super(...arguments),R(this,"dragging",!1),R(this,"lastX",NaN),R(this,"lastY",NaN),R(this,"touchIdentifier",null),R(this,"mounted",!1),R(this,"handleDragStart",C=>{if(this.props.onMouseDown(C),!this.props.allowAnyClick&&typeof C.button=="number"&&C.button!==0)return!1;const k=this.findDOMNode();if(!k||!k.ownerDocument||!k.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:P}=k;if(this.props.disabled||!(C.target instanceof P.defaultView.Node)||this.props.handle&&!(0,v.matchesSelectorAndParentsTo)(C.target,this.props.handle,k)||this.props.cancel&&(0,v.matchesSelectorAndParentsTo)(C.target,this.props.cancel,k))return;C.type!=="touchstart"||this.props.allowMobileScroll||C.preventDefault();const O=(0,v.getTouchIdentifier)(C);this.touchIdentifier=O;const I=(0,b.getControlPosition)(C,O,this);if(I==null)return;const{x:z,y:L}=I,D=(0,b.createCoreData)(this,z,L);(0,E.default)("DraggableCore: handleDragStart: %j",D),(0,E.default)("calling",this.props.onStart),this.props.onStart(C,D)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,v.addUserSelectStyles)(P),this.dragging=!0,this.lastX=z,this.lastY=L,(0,v.addEvent)(P,T.move,this.handleDrag),(0,v.addEvent)(P,T.stop,this.handleDragStop))}),R(this,"handleDrag",C=>{const k=(0,b.getControlPosition)(C,this.touchIdentifier,this);if(k==null)return;let{x:P,y:O}=k;if(Array.isArray(this.props.grid)){let z=P-this.lastX,L=O-this.lastY;if([z,L]=(0,b.snapToGrid)(this.props.grid,z,L),!z&&!L)return;P=this.lastX+z,O=this.lastY+L}const I=(0,b.createCoreData)(this,P,O);if((0,E.default)("DraggableCore: handleDrag: %j",I),this.props.onDrag(C,I)!==!1&&this.mounted!==!1)this.lastX=P,this.lastY=O;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const z=document.createEvent("MouseEvents");z.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(z)}}),R(this,"handleDragStop",C=>{if(!this.dragging)return;const k=(0,b.getControlPosition)(C,this.touchIdentifier,this);if(k==null)return;let{x:P,y:O}=k;if(Array.isArray(this.props.grid)){let L=P-this.lastX||0,D=O-this.lastY||0;[L,D]=(0,b.snapToGrid)(this.props.grid,L,D),P=this.lastX+L,O=this.lastY+D}const I=(0,b.createCoreData)(this,P,O);if(this.props.onStop(C,I)===!1||this.mounted===!1)return!1;const z=this.findDOMNode();z&&this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(z.ownerDocument),(0,E.default)("DraggableCore: handleDragStop: %j",I),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,z&&((0,E.default)("DraggableCore: Removing handlers"),(0,v.removeEvent)(z.ownerDocument,T.move,this.handleDrag),(0,v.removeEvent)(z.ownerDocument,T.stop,this.handleDragStop))}),R(this,"onMouseDown",C=>(T=A,this.handleDragStart(C))),R(this,"onMouseUp",C=>(T=A,this.handleDragStop(C))),R(this,"onTouchStart",C=>(T=_,this.handleDragStart(C))),R(this,"onTouchEnd",C=>(T=_,this.handleDragStop(C)))}componentDidMount(){this.mounted=!0;const C=this.findDOMNode();C&&(0,v.addEvent)(C,_.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const C=this.findDOMNode();if(C){const{ownerDocument:k}=C;(0,v.removeEvent)(k,A.move,this.handleDrag),(0,v.removeEvent)(k,_.move,this.handleDrag),(0,v.removeEvent)(k,A.stop,this.handleDragStop),(0,v.removeEvent)(k,_.stop,this.handleDragStop),(0,v.removeEvent)(C,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(k)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:x.default.findDOMNode(this)}render(){return m.cloneElement(m.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return N0.default=j,R(j,"displayName","DraggableCore"),R(j,"propTypes",{allowAnyClick:y.default.bool,allowMobileScroll:y.default.bool,children:y.default.node.isRequired,disabled:y.default.bool,enableUserSelectHack:y.default.bool,offsetParent:function(C,k){if(C[k]&&C[k].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:y.default.arrayOf(y.default.number),handle:y.default.string,cancel:y.default.string,nodeRef:y.default.object,onStart:y.default.func,onDrag:y.default.func,onStop:y.default.func,onMouseDown:y.default.func,scale:y.default.number,className:w.dontSetMe,style:w.dontSetMe,transform:w.dontSetMe}),R(j,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),N0}()),d=p($g());function p(m){return m&&m.__esModule?m:{default:m}}function h(){return h=Object.assign?Object.assign.bind():function(m){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var v in x)({}).hasOwnProperty.call(x,v)&&(m[v]=x[v])}return m},h.apply(null,arguments)}function f(m,y,x){return(y=typeof(v=function(b,w){if(typeof b!="object"||!b)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var S=E.call(b,w);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(b)}(y,"string"))=="symbol"?v:v+"")in m?Object.defineProperty(m,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[y]=x,m;var v}class g extends t.Component{static getDerivedStateFromProps(y,x){let{position:v}=y,{prevPropsPosition:b}=x;return!v||b&&v.x===b.x&&v.y===b.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:b}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(y){super(y),f(this,"onDragStart",(x,v)=>{if((0,d.default)("Draggable: onDragStart: %j",v),this.props.onStart(x,(0,a.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),f(this,"onDrag",(x,v)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",v);const b=(0,a.createDraggableData)(this,v),w={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:E,y:S}=w;w.x+=this.state.slackX,w.y+=this.state.slackY;const[R,_]=(0,a.getBoundPosition)(this,w.x,w.y);w.x=R,w.y=_,w.slackX=this.state.slackX+(E-w.x),w.slackY=this.state.slackY+(S-w.y),b.x=w.x,b.y=w.y,b.deltaX=w.x-this.state.x,b.deltaY=w.y-this.state.y}if(this.props.onDrag(x,b)===!1)return!1;this.setState(w)}),f(this,"onDragStop",(x,v)=>{if(!this.state.dragging||this.props.onStop(x,(0,a.createDraggableData)(this,v))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",v);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:w,y:E}=this.props.position;b.x=w,b.y=E}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:y.position?y.position.x:y.defaultPosition.x,y:y.position?y.position.y:y.defaultPosition.y,prevPropsPosition:{...y.position},slackX:0,slackY:0,isElementSVG:!1},!y.position||y.onDrag||y.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:y,bounds:x,children:v,defaultPosition:b,defaultClassName:w,defaultClassNameDragging:E,defaultClassNameDragged:S,position:R,positionOffset:_,scale:A,...T}=this.props;let j={},C=null;const k=!R||this.state.dragging,P=R||b,O={x:(0,a.canDragX)(this)&&k?this.state.x:P.x,y:(0,a.canDragY)(this)&&k?this.state.y:P.y};this.state.isElementSVG?C=(0,i.createSVGTransform)(O,_):j=(0,i.createCSSTransform)(O,_);const I=(0,r.clsx)(v.props.className||"",w,{[E]:this.state.dragging,[S]:this.state.dragged});return t.createElement(c.default,h({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:I,style:{...v.props.style,...j},transform:C}))}}e.default=g,f(g,"displayName","Draggable"),f(g,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),f(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Pg)),Pg}function lC(){if(Ng)return B0.exports;Ng=1;const{default:e,DraggableCore:t}=KB();return B0.exports=e,B0.exports.default=e,B0.exports.DraggableCore=t,B0.exports}var Vg,jd={},Hg,Wg,$0={};function sC(){if(Hg)return $0;Hg=1,$0.__esModule=!0,$0.resizableProps=void 0;var e,t=(e=qc())&&e.__esModule?e:{default:e};lC();var n={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a,l=r[0];return l.axis==="both"||l.axis==="y"?(a=t.default.number).isRequired.apply(a,r):t.default.number.apply(t.default,r)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a,l=r[0];return l.axis==="both"||l.axis==="x"?(a=t.default.number).isRequired.apply(a,r):t.default.number.apply(t.default,r)}};return $0.resizableProps=n,$0}function Ug(){if(Wg)return F0;Wg=1,F0.__esModule=!0,F0.default=void 0;var e=function(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var g=i(void 0);if(g&&g.has(f))return g.get(f);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in f)if(x!=="default"&&Object.prototype.hasOwnProperty.call(f,x)){var v=y?Object.getOwnPropertyDescriptor(f,x):null;v&&(v.get||v.set)?Object.defineProperty(m,x,v):m[x]=f[x]}return m.default=f,g&&g.set(f,m),m}(u),t=lC(),n=function(){if(Vg)return jd;Vg=1,jd.__esModule=!0,jd.cloneElement=function(v,b){return b.style&&v.props.style&&(b.style=y(y({},v.props.style),b.style)),b.className&&v.props.className&&(b.className=v.props.className+" "+b.className),g.default.cloneElement(v,b)};var f,g=(f=u)&&f.__esModule?f:{default:f};function m(v,b){var w=Object.keys(v);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(v);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(v,S).enumerable})),w.push.apply(w,E)}return w}function y(v){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?m(Object(w),!0).forEach(function(E){x(v,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(w)):m(Object(w)).forEach(function(E){Object.defineProperty(v,E,Object.getOwnPropertyDescriptor(w,E))})}return v}function x(v,b,w){return(b=typeof(E=function(S,R){if(typeof S!="object"||S===null)return S;var _=S[Symbol.toPrimitive];if(_!==void 0){var A=_.call(S,R);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(b,"string"))=="symbol"?E:String(E))in v?Object.defineProperty(v,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[b]=w,v;var E}return jd}(),o=sC(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(i=function(y){return y?m:g})(f)}function a(){return a=Object.assign?Object.assign.bind():function(f){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(f[y]=m[y])}return f},a.apply(this,arguments)}function l(f,g){var m=Object.keys(f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);g&&(y=y.filter(function(x){return Object.getOwnPropertyDescriptor(f,x).enumerable})),m.push.apply(m,y)}return m}function c(f){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?l(Object(m),!0).forEach(function(y){d(f,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(m,y))})}return f}function d(f,g,m){return(g=typeof(y=function(x,v){if(typeof x!="object"||x===null)return x;var b=x[Symbol.toPrimitive];if(b!==void 0){var w=b.call(x,v);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)}(g,"string"))=="symbol"?y:String(y))in f?Object.defineProperty(f,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[g]=m,f;var y}function p(f,g){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,y){return m.__proto__=y,m})(f,g)}var h=function(f){var g,m;function y(){for(var v,b=arguments.length,w=new Array(b),E=0;E<b;E++)w[E]=arguments[E];return(v=f.call.apply(f,[this].concat(w))||this).handleRefs={},v.lastHandleRect=null,v.slack=null,v}m=f,(g=y).prototype=Object.create(m.prototype),g.prototype.constructor=g,p(g,m);var x=y.prototype;return x.componentWillUnmount=function(){this.resetData()},x.resetData=function(){this.lastHandleRect=this.slack=null},x.runConstraints=function(v,b){var w=this.props,E=w.minConstraints,S=w.maxConstraints,R=w.lockAspectRatio;if(!E&&!S&&!R)return[v,b];if(R){var _=this.props.width/this.props.height,A=v-this.props.width,T=b-this.props.height;Math.abs(A)>Math.abs(T*_)?b=v/_:v=b*_}var j=v,C=b,k=this.slack||[0,0],P=k[0],O=k[1];return v+=P,b+=O,E&&(v=Math.max(E[0],v),b=Math.max(E[1],b)),S&&(v=Math.min(S[0],v),b=Math.min(S[1],b)),this.slack=[P+(j-v),O+(C-b)],[v,b]},x.resizeHandler=function(v,b){var w=this;return function(E,S){var R=S.node,_=S.deltaX,A=S.deltaY;v==="onResizeStart"&&w.resetData();var T=(w.props.axis==="both"||w.props.axis==="x")&&b!=="n"&&b!=="s",j=(w.props.axis==="both"||w.props.axis==="y")&&b!=="e"&&b!=="w";if(T||j){var C=b[0],k=b[b.length-1],P=R.getBoundingClientRect();w.lastHandleRect!=null&&(k==="w"&&(_+=P.left-w.lastHandleRect.left),C==="n"&&(A+=P.top-w.lastHandleRect.top)),w.lastHandleRect=P,k==="w"&&(_=-_),C==="n"&&(A=-A);var O=w.props.width+(T?_/w.props.transformScale:0),I=w.props.height+(j?A/w.props.transformScale:0),z=w.runConstraints(O,I);O=z[0],I=z[1];var L=O!==w.props.width||I!==w.props.height,D=typeof w.props[v]=="function"?w.props[v]:null;D&&!(v==="onResize"&&!L)&&(E.persist==null||E.persist(),D(E,{node:R,size:{width:O,height:I},handle:b})),v==="onResizeStop"&&w.resetData()}}},x.renderResizeHandle=function(v,b){var w=this.props.handle;if(!w)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+v,ref:b});if(typeof w=="function")return w(v,b);var E=c({ref:b},typeof w.type=="string"?{}:{handleAxis:v});return e.cloneElement(w,E)},x.render=function(){var v=this,b=this.props,w=b.children,E=b.className,S=b.draggableOpts;b.width,b.height,b.handle,b.handleSize,b.lockAspectRatio,b.axis,b.minConstraints,b.maxConstraints,b.onResize,b.onResizeStop,b.onResizeStart;var R=b.resizeHandles;b.transformScale;var _=function(A,T){if(A==null)return{};var j,C,k={},P=Object.keys(A);for(C=0;C<P.length;C++)j=P[C],T.indexOf(j)>=0||(k[j]=A[j]);return k}(b,r);return(0,n.cloneElement)(w,c(c({},_),{},{className:(E?E+" ":"")+"react-resizable",children:[].concat(w.props.children,R.map(function(A){var T,j=(T=v.handleRefs[A])!=null?T:v.handleRefs[A]=e.createRef();return e.createElement(t.DraggableCore,a({},S,{nodeRef:j,key:"resizableHandle-"+A,onStop:v.resizeHandler("onResizeStop",A),onStart:v.resizeHandler("onResizeStart",A),onDrag:v.resizeHandler("onResize",A)}),v.renderResizeHandle(A,j))}))}))},y}(e.Component);return F0.default=h,h.propTypes=o.resizableProps,h.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},F0}var qg,Kg,V0={},GB=(Kg||(Kg=1,Td.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Td.exports.Resizable=Ug().default,Td.exports.ResizableBox=function(){if(qg)return V0;qg=1,V0.__esModule=!0,V0.default=void 0;var e=function(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var m=a(void 0);if(m&&m.has(g))return m.get(g);var y={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in g)if(v!=="default"&&Object.prototype.hasOwnProperty.call(g,v)){var b=x?Object.getOwnPropertyDescriptor(g,v):null;b&&(b.get||b.set)?Object.defineProperty(y,v,b):y[v]=g[v]}return y.default=g,m&&m.set(g,y),y}(u),t=i(qc()),n=i(Ug()),o=sC(),r=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(g){return g&&g.__esModule?g:{default:g}}function a(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,y=new WeakMap;return(a=function(x){return x?y:m})(g)}function l(){return l=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x])}return g},l.apply(this,arguments)}function c(g,m){var y=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);m&&(x=x.filter(function(v){return Object.getOwnPropertyDescriptor(g,v).enumerable})),y.push.apply(y,x)}return y}function d(g){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?c(Object(y),!0).forEach(function(x){p(g,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(y,x))})}return g}function p(g,m,y){return(m=typeof(x=function(v,b){if(typeof v!="object"||v===null)return v;var w=v[Symbol.toPrimitive];if(w!==void 0){var E=w.call(v,b);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}(m,"string"))=="symbol"?x:String(x))in g?Object.defineProperty(g,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[m]=y,g;var x}function h(g,m){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,x){return y.__proto__=x,y})(g,m)}var f=function(g){var m,y;function x(){for(var v,b=arguments.length,w=new Array(b),E=0;E<b;E++)w[E]=arguments[E];return(v=g.call.apply(g,[this].concat(w))||this).state={width:v.props.width,height:v.props.height,propsWidth:v.props.width,propsHeight:v.props.height},v.onResize=function(S,R){var _=R.size;v.props.onResize?(S.persist==null||S.persist(),v.setState(_,function(){return v.props.onResize&&v.props.onResize(S,R)})):v.setState(_)},v}return y=g,(m=x).prototype=Object.create(y.prototype),m.prototype.constructor=m,h(m,y),x.getDerivedStateFromProps=function(v,b){return b.propsWidth!==v.width||b.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null},x.prototype.render=function(){var v=this.props,b=v.handle,w=v.handleSize;v.onResize;var E=v.onResizeStart,S=v.onResizeStop,R=v.draggableOpts,_=v.minConstraints,A=v.maxConstraints,T=v.lockAspectRatio,j=v.axis;v.width,v.height;var C=v.resizeHandles,k=v.style,P=v.transformScale,O=function(I,z){if(I==null)return{};var L,D,F={},B=Object.keys(I);for(D=0;D<B.length;D++)L=B[D],z.indexOf(L)>=0||(F[L]=I[L]);return F}(v,r);return e.createElement(n.default,{axis:j,draggableOpts:R,handle:b,handleSize:w,height:this.state.height,lockAspectRatio:T,maxConstraints:A,minConstraints:_,onResizeStart:E,onResize:this.onResize,onResizeStop:S,resizeHandles:C,transformScale:P,width:this.state.width},e.createElement("div",l({},O,{style:d(d({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},x}(e.Component);return V0.default=f,f.propTypes=d(d({},o.resizableProps),{},{children:t.default.element}),V0}().default),Td.exports);function a5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var N2=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=a5(o,t),i=typeof r=="function";n.push(i?r:()=>a5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)a5(n,t)}};const Df=u.memo(u.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,disabled:a=!1,commandPopupButtonProps:l,sx:c,notifier:d,...p}=e,[h,f]=u.useState(null),[g,m]=u.useState(()=>r.getSelectedRanges().getCoords()),[y,x]=u.useState(!1),{reference:v}=pa({parentFloat:l?.parentFloat}),b=()=>h?.text??"",[w,E]=u.useState(b),S=Te(()=>{if(v?.closeAll(),!w){const N=b();return E(b()),N}if(b()===w)return w;const F=w.trim().toLowerCase();if(F==="r"||F==="c")return w;try{const N=r.getRanges(w);if(N)return N.toString()}catch{}const B=o.getByName(w);if(B&&B.getRanges())return w;let M=null;try{const N=r.getRanges(w).getCoords().map(V=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V}));M=r.getRanges(N)}catch{}if(!M){const N=r.getSelectedRanges().getCoords().map(V=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V}));M=r.getRanges(N)}try{let N=o.getByName(w);N||(N=o.addReference(w,M)),f({text:N.getName()})}catch(N){E(b()),d.showMessage?.(N.message,{type:ua.Error})}return null},[w,o,v]),R=Te(()=>{if(r.isClosed())return;const F=[];for(let N=0;N<g.length;N++){const V=g[N];F.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V})}let B=null;try{B=o.lookupByRanges(F)}catch{}let M=null;M=B?.length>0?B[0].getName():r.getSelectedSheet().getSelectedRange().toString(),f({text:M})},[r,g]),[_,A]=u.useState(()=>o?.search()??null);sn(o,{onCollectionChange(F){A(o.search()),R()},onClose(F){A([])}}),u.useEffect(()=>{E(b())},[h,g]);const[T,j]=u.useState(r?.getSelectedSheet());sn(r,{onSheetsChange:F=>{j(F?.getSelectedSheet())},onViewChange(F){j(F?.getSelectedSheet())}});const[C,k]=u.useState(null),P=Te($.CommonUtils.debounce(R,C?320:0),[]);sn(T.getSelection(),{onChange:()=>{m(F=>{const B=r.getSelectedRanges().getCoords();return $.CoordUtils.isEqualRangesArrays(B,F)?F:B})},onAdjustingChange:F=>{k(F.getAdjusting())}}),u.useEffect(()=>{if(C){const F=r.getSelectedRange(),B=F.getRowCount(),M=F.getColumnCount();let N=`${B}R x ${M}C`;if(N.length>17&&(N=`${B}x${M}`),B>1||M>1)return void f({text:N,fontStyle:"italic",justifyContent:"center"})}f({text:r.getSelectedSheet().getSelectedRange().toString()}),P()},[g,r,C]);const O=u.useRef(null),I=u.useCallback(F=>{const{onMouseDown:B,onMouseUp:M,...N}=F;return s.jsx(Mr,{...N,sx:{...N?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:s.jsx(Ul,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:O},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:V=>`1px solid ${V.palette.text.icon??V.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:V=>`1px solid ${V.palette.primary.main}`},"::after":{borderBottom:V=>`1px solid ${V.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*$.IFont.getDeviceScale(),fontStyle:h?.fontStyle,paddingLeft:V=>V.spacing(.75),paddingRight:V=>V.spacing(.75),boxShadow:"none",flex:"1",color:V=>V.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:V=>V.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:V=>V.palette.text.primary}}},value:w,onFocus:V=>{V.target?.select()},onKeyDown:V=>{if(V.which===nn.Enter||V.which===nn.Tab){let U=w;b()!==w&&(V.stopPropagation(),V.preventDefault(),U=S()),U?z(U):i?.()}else if(V.which===nn.Escape)b()!==w?(E(b()),setTimeout(()=>{V.target?.select()},0),V.stopPropagation(),V.preventDefault()):i?.();else if(V.which===nn.Space)return void V.stopPropagation()},onBlur:()=>{E(b())},onChange:V=>{E(V.target.value)}})})},[w,h]),z=Te(async F=>{try{v?.closeAll();const B=o.lookupByRanges(F)?.[0];B&&await B?.select(),await r.getRanges(F)?.select()}catch(B){d.showMessage?.(B.message,{type:ua.Error})}},[o,d,r]),L=u.useCallback(F=>{setTimeout(()=>{x(!0)},0);const B={variant:Qt.Menuitem,parentFloat:F.floatReference,commandHook:{...l?.commandHook,beforeExecute:(U,J)=>(v?.closeAll(),l?.commandHook?.beforeExecute?.(U,J))},scope:l?.scope,commands:l?.commands};let M=o.search({scope:r?.getSelectedSheet().getName()});M=M.sort((U,J)=>U.getType()===J.getType()?U.getName().localeCompare(J.getName()):U.getType()==="range"?-1:1);const N=[];for(let U=0;U<M.length;U++){const J=M[U],X=J.getRanges();if(!X||J.isHidden())continue;const H=J.getType();H!==M[U-1]?.getType()&&(U>0&&N.push(s.jsx($t,{orientation:"horizontal"},`type-divider-${N.length}`)),N.push(s.jsx(Hs,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:J.getType()==="reference"?"Ranges":"Tables"},`type-header-${N.length}`))),H==="reference"?N.push(u.createElement(sa,{...B,key:"named-"+N.length,popupCommandKeys:["editNamedReference","deleteNamedReference"],popupScope:"namedItem",scope:"namedItem",commandState:J,commands:l?.commands,label:J.getName(),quickCommand:"selectNamed",disabled:!J.getRanges()||a,icon:ne=>{switch(ne.key()){case"editNamedReference":return ze(s.jsx(XO,{}));case"deleteNamedReference":return ze(s.jsx(YO,{}));default:return ze(s.jsx(GO,{}))}}})):H==="table"&&N.push(u.createElement(sa,{...B,key:"namedItem-"+N.length,popupCommandKeys:["editTable",null,"convertTableToRange","deleteTable"],popupScope:"namedItem",scope:"namedItem",commands:l?.commands,commandState:J,label:J.getName(),quickCommand:"selectNamed",disabled:!X||a,icon:ne=>(ne.key(),ze(s.jsx(Hc,{})))}))}const V=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[s.jsx(We,{...B,scope:"namedItem",command:l?.commands.getCommand("addNamedReference"),icon:ze(s.jsx(ZO,{}))}),N&&N.length>0?s.jsxs(s.Fragment,{children:[s.jsx($t,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:N})]}):null]});return Nn({...F,children:V})},[r,_,o,h]),D=ir(t,()=>({focus(F){O.current?.focus(F)}}),[]);return s.jsx(Ae,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...c},ref:N2([D,t]),...p,children:s.jsx(Ui,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...c},buttonProps:{sx:{backgroundColor:F=>F.palette.background.paper,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`}},tabIndex:-1,outlined:{color:F=>n?F.palette.action.disabled:ht(F.palette.divider,.2)},parentFloat:v,createPopupPanel:L,onPopupOpen:()=>x(!0),onPopupClose:()=>x(!1),createTooltip:({children:F},B)=>s.jsx(br,{title:B||y?"":"Name Box",disabled:B,leaveDelay:0,sx:{opacity:B||y?0:1},children:F}),createQuickButton:I})})}));Df.displayName="NamedCollectionEditor";const ZB=(e,t)=>s.jsx(Df,{ref:t,...e}),Lf=u.memo(u.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:a=!0,NamedCollectionEditorProps:l,renderNamedCollectionEditor:c=ZB,disabled:d,commands:p,...h}=e,[f,g]=u.useState(o?.getSelectedSheet());sn(o,{onSheetsChange:X=>{g(X?.getSelectedSheet())},onViewChange(X){g(X?.getSelectedSheet())}});const[m,y]=u.useState(f.getSelection().getCoords().cell),x=f.getRange(m).getCell(),v=d||!x.isEditAllowed(),b=u.useRef(null),w=u.useMemo(()=>({fontSize:11}),[]);sn(f.getSelection(),{onChange:()=>{y(f.getSelection().getCoords().cell)}}),sn(f,{onProtectionChange(){y(f.getSelection().getCoords().cell)}});const E=b.current?.getLineHeight()??20,[S,R]=u.useState(E),[_,A]=u.useState(5),[T,j]=u.useState(1),C=Te((X,{size:H})=>{X.preventDefault(),X.stopPropagation();const ne=Math.floor(H.height/E);R(ne*E+1),ne>1&&A(ne)},[E]),k=Te((X,{size:H})=>{const ne=Math.floor(H.height/E);j(ne)},[E]),P=Hi(),O=P.getMode();let I=null;O?.key==="edit"&&(I=O.args?.stateAndCoords);const z=u.useMemo(()=>{let X=I?.editState;return X||(X=Ww(()=>f.getRange(m).getCell())),s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:s.jsx(Hw,{ref:b,activeCoords:m,sheet:f,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:m})},defaultTextStyle:w,useRichStyling:!1,disabled:v,onChangeEdit:H=>{if(H.dirty!==void 0){const ne={sheet:f,coords:m,editState:H};P.setMode(oe=>({...oe,args:{...oe?.args,stateAndCoords:ne}}))}},editState:X,commands:p,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:T})})},[f,I,m,T,r]),L=u.useRef(null),D=u.useMemo(()=>a?c({names:o.getNames(),workbook:o,...l},L):null,[c,l,a,f,o,v]),F=u.useMemo(()=>s.jsxs(Mi,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,border:X=>`solid ${v?X.palette.action.disabled:ht(X.palette.divider,.2)} 1px`},children:[s.jsx(ii,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"warning","aria-label":"cancel-formula-edit",icon:ze(s.jsx(qO,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:v||I===null,onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{r.cancelEdit()}}),s.jsx(ii,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"primary","aria-label":"commit-formula-edit",icon:ze(s.jsx(KO,{})),tooltipProps:{label:"Enter",simple:!0},disabled:v||I===null,onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{r.submitEdit()}}),s.jsx(ii,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,disabled:!0,"aria-label":"commit-formula-function",icon:ze(s.jsx(mD,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:X=>{X.button===0&&X.preventDefault()}})]}),[v,I]),B=qi(),[M,N]=u.useState(!1),V=u.useMemo(()=>s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:X=>X.spacing(.5),alignItems:"start"},children:[F,s.jsxs(Mi,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:X=>X.typography.fontFamily,fontSize:11*$.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:X=>`${X.shape.borderRadius}px`,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,border:X=>`solid ${v?X.palette.action.disabled:ht(X.palette.divider,.2)} 1px`,"& textarea":{color:X=>v?`${X.palette.text.disabled} !important`:X.palette.text.primary},"& .react-resizable-handle":{width:"100%",height:"8px",backgroundColor:"transparent",boxSizing:"content-box",zIndex:1e3},"& .react-resizable-handle-s":{position:"absolute",bottom:"-10px",cursor:"s-resize"}},onFocus:()=>N(!0),onBlur:()=>N(!1),onMouseDown:X=>{X.target?.classList.contains("react-resizable-handle")&&X.preventDefault()},children:[s.jsx(Ae,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:X=>X.spacing(1),paddingRight:X=>X.spacing(1)},children:s.jsx(GB.ResizableBox,{height:S,draggableOpts:{grid:[E,E]},minConstraints:[E,E],maxConstraints:[15*E,15*E],onResize:k,onResizeStop:C,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:z})}),s.jsx(ii,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,"aria-label":"toggle-expand-formula-edit",icon:ze(s.jsx(T>1?tR:Mx,{})),tooltipProps:{label:(T>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{const X=T>1?1:_;R(X*E+1),j(X)}}),s.jsx(Ae,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:M?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:X=>X.palette.primary.main,borderRadius:X=>`${X.shape.borderRadius}px`}})]})]}),[F,z,M,T,E]),U=u.useMemo(()=>D||V?!D&&V?V:D&&!V?D:s.jsx(s.Fragment,{children:s.jsx(H5,{fixedPane:"before",minBefore:"165px",minAfter:"200px",paneBeforeProps:{style:{alignItems:"flex-start"}},paneAfterProps:{style:{overflow:"visible"}},resizerProps:{style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${B.palette.text.icon??B.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-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.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-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 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center 6.5px",minWidth:"18px"}},elementBefore:D,elementAfter:V})}):null,[D,V]),J=ir(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>L.current}),[]);return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",gap:X=>X.spacing(.5),...n},ref:J,...h,children:U})}));Lf.displayName="FormulaBar";const Af=u.memo(u.forwardRef((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:a,...l}=e,c=u.useMemo(()=>({}),[]),d=u.useMemo(()=>({commandHook:{beforeExecute:(f,g)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:a}),[r,a]),p=u.useMemo(()=>({...c,...d,variant:Qt.Menuitem}),[c,d]),h=s.jsxs(s.Fragment,{children:[s.jsx(We,{...p,command:o.getCommand("sortAscending"),icon:ze(s.jsx(sh,{}))}),s.jsx(We,{...p,command:o.getCommand("sortDescending"),icon:ze(s.jsx(Gb,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...p,command:o.getCommand("autoFilterClear"),icon:ze(s.jsx(B3,{}))}),[]]});return s.jsx(Ae,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...l,children:h})}));Af.displayName="FilterColumnMenu";const cC=u.memo(u.forwardRef((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:a,...l}=e,c=ir(t,()=>({isFilters:()=>!0}),[]);return s.jsx("div",{ref:c,className:Eo("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...l,children:s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",minHeight:"100px",minWidth:"220px",alignItems:"center",border:"grey solid 1px",padding:"4px 4px",overflow:"hidden",flexDirection:"column",justifyContent:"space-evenly",marginTop:"4px",marginBottom:"4px",marginLeft:"16px",marginRight:"16px"},children:[s.jsx("div",{children:a.getName()}),s.jsx("div",{children:"Filter Widget"})]})})}));cC.displayName="Filters";const zf=u.memo(u.forwardRef((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:a,index:l,editing:c,editable:d,disabled:p,selectedIndex:h,dragging:f,borderColor:g,borderWidth:m,activeColor:y,background:x="white",tabRadius:v=4,gridTheme:b,...w}=e,[E,S]=u.useState(()=>!!o&&o.getProtection().isLocked()),[R,_]=u.useState(()=>o?o.getTabColor():null);sn(o,{onProtectionChange:()=>{S(o.getProtection().isLocked())},onTabColorChange:()=>{_(o.getTabColor())},onStyleChange:()=>{_(o.getTabColor())}});const A=qi(),T=h===l;let j=null,C=null;if(R||f){let O=x;R?(C=R.toBlackOrWhite().toCSS(),O=R?.toCSS()):T||(O=A.palette.background.paper),j=s.jsx(Ae,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:T?"50%":"100%",borderRadius:"4px",border:I=>T?`${x} solid 1px`:`${I.palette.divider} solid 1px`,background:T&&R?`linear-gradient(0deg, ${O} 0%, transparent)`:O}})}let k=null;typeof g=="string"?k=g:g?.toCSS&&(k=g.toCSS());const P=T?s.jsx(Ae,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:O=>O.palette.primary.main}}):null;return s.jsx(iw,{theme:T?b??A:A,children:s.jsx(Ae,{ref:t,className:Eo(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:T?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:f?"grabbing":void 0},...w,children:s.jsx(XR,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:v,strokeColor:T?k:"transparent",children:s.jsx(Oc,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:T?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:f?"grabbing":void 0,color:T?"primary":C||"text.secondary",backgroundColor:T?x:"transparent","&:hover:not([disabled])":{backgroundColor:T?x:"transparent"},"& input":{color:O=>`${O.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:p,disableRipple:c,component:"div",children:s.jsxs(s.Fragment,{children:[j,s.jsxs(Ae,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:T?void 0:"1px"},children:[n,P]}),E?s.jsx(x2,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):s.jsx(Ae,{sx:{minHeight:"22px"}})]})]})},a+":"+l)})})})}));zf.displayName="SheetTab";const Ff=u.memo(u.forwardRef((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:a,floatReference:l,sx:c,className:d,tabStripRef:p,...h}=e,[f,g]=u.useState(n?.getProtection());sn(n,{onProtectionChange:b=>{g(b?.getProtection())}});const m=u.useMemo(()=>({}),[]),y=u.useMemo(()=>({commandHook:{beforeExecute:(b,w)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:a||o===void 0,parentFloat:l}),[a,l]),x=u.useMemo(()=>({...m,...y}),[m,y]),v=s.jsxs(s.Fragment,{children:[s.jsx(We,{command:r.getCommand("addSheet"),commandState:o,...x,variant:Qt.Menuitem}),s.jsx(We,{command:r.getCommand("deleteSheet"),...x,variant:Qt.Menuitem}),s.jsxs(Gr,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(l.closeAll()).then(()=>{p?.startEdit(o)})},disabled:a||!f.isStructureAllowed(),parentFloat:l,children:["Rename",i!=="sheet"?" Sheet":""]}),s.jsx(We,{command:r.getCommand("duplicateSheet"),...x,variant:Qt.Menuitem}),s.jsx(We,{command:r?.getCommand("protectionSheetToggle"),...x,variant:Qt.Menuitem,icon:s.jsx(x2,{})}),s.jsx(Gs,{variant:Qt.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:s.jsx(F3,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:_s.End},parentFloat:l}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{command:r.getCommand("hideSheet"),...x,variant:Qt.Menuitem,icon:ze(s.jsx(Xb,{}))})]});return s.jsx(Ae,{ref:t,className:Eo("menu",d),sx:{...c},...h,children:v})}));Ff.displayName="SheetTabMenu";const Bf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:a,...l}=e,[c,d]=u.useState(n?.getSheets().search()),[p,h]=u.useState(n?.getProtection());sn(n,{onSheetsChange:g=>{d(g.getSheets().search())},onProtectionChange:g=>{h(g?.getProtection())}});const f=u.useMemo(()=>{const g=[],m=n.getSheets().search({visibility:$.ISheet.Visibility.Hidden}),y=n.getSelectedSheet();for(let x=0;x<m.length;x++){const v=m[x],b=v.getVisibility();if(b===$.ISheet.Visibility.VeryHidden)continue;const w=y===v,E=v.getProtection().isLocked(),S=v.getTabColor(),R=o?.body.fill??"transparent";let _=null,A=null,T=R;S&&(T=S.toCSS(),w||(A=S.toBlackOrWhite().toCSS()),_=s.jsx(Ae,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:w?T:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:s.jsx(Ae,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:w||b===$.ISheet.Visibility.Hidden?"50%":"100%",border:C=>w?`${R} solid 1.5px`:`${C.palette.divider} solid 1px`,background:w&&S?`linear-gradient(0deg, ${T} 0%, ${R})`:T,borderRadius:"4px"}})}));let j=null;E&&(j=s.jsx(x2,{color:"secondary"})),b!==$.ISheet.Visibility.Visible&&(j=ze(s.jsx(Xb,{style:{opacity:p.isStructureAllowed()?1:.7},color:"secondary"}))),j&&(j=s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:j})),g.push(s.jsx(Gr,{disabled:!p.isStructureAllowed()&&b===$.ISheet.Visibility.Hidden,sx:{color:C=>{let k=w?C.palette.primary.main:C.palette.text.secondary;return A&&(k=A),b===$.ISheet.Visibility.Hidden&&(k=ht(k,C.palette.action.disabledOpacity)),k},borderLeft:C=>`${w?C.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:w?"700":"400","&:hover":{fontWeight:"700"}},icon:w?s.jsx(S1,{}):void 0,onMouseDown:C=>C.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{v.select()}catch(C){console.error(C)}})},children:s.jsxs(s.Fragment,{children:[_,s.jsxs(Ae,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[s.jsxs(Ae,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[v.getName(),s.jsx(Ae,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:v.getName()})]}),j]})]})},""+x))}return g},[n,p,c,r,o]);return s.jsx(Ae,{ref:t,className:Eo("menu",a),...l,children:f})}));Bf.displayName="SheetsAllMenu";var XB=function(){},dC=typeof window<"u",YB=dC?u.useLayoutEffect:u.useEffect,Gg={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const n1=dC&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(Gg),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,h=c.width,f=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:h,height:f,top:g,left:m,bottom:y,right:x})}})},[]);return YB(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[XB,Gg]};function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xu.apply(null,arguments)}function Nf(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function $f(e,t){return($f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n})(e,t)}function uC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$f(e,t)}function Zg(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const pC=u.createContext(null);var hC=function(e){return e.scrollTop},ac="unmounted",yl="exited",xl="entering",ss="entered",Hh="exiting",ba=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var a,l=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?l?(a=yl,i.appearStatus=xl):a=ss:a=o.unmountOnExit||o.mountOnEnter?ac:yl,i.state={status:a},i.nextCallback=null,i}uC(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===ac?{status:yl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var r=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==xl&&i!==ss&&(r=xl):i!==xl&&i!==ss||(r=Hh)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,a=this.props.timeout;return o=r=i=a,a!=null&&typeof a!="number"&&(o=a.exit,r=a.enter,i=a.appear!==void 0?a.appear:r),{exit:o,enter:r,appear:i}},n.updateStatus=function(o,r){if(o===void 0&&(o=!1),r!==null)if(this.cancelNextCallback(),r===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);i&&hC(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:ac})},n.performEnter=function(o){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[yo.findDOMNode(this),a],c=l[0],d=l[1],p=this.getTimeouts(),h=a?p.appear:p.enter;o||i?(this.props.onEnter(c,d),this.safeSetState({status:xl},function(){r.props.onEntering(c,d),r.onTransitionEnd(h,function(){r.safeSetState({status:ss},function(){r.props.onEntered(c,d)})})})):this.safeSetState({status:ss},function(){r.props.onEntered(c)})},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:yo.findDOMNode(this);r?(this.props.onExit(a),this.safeSetState({status:Hh},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:yl},function(){o.props.onExited(a)})})})):this.safeSetState({status:yl},function(){o.props.onExited(a)})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,r){r=this.setNextCallback(r),this.setState(o,r)},n.setNextCallback=function(o){var r=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,r.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(i&&!a){if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===ac)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var a=Nf(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(pC.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function rs(){}ba.contextType=pC,ba.propTypes={},ba.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rs,onEntering:rs,onEntered:rs,onExit:rs,onExiting:rs,onExited:rs},ba.UNMOUNTED=ac,ba.EXITED=yl,ba.ENTERING=xl,ba.ENTERED=ss,ba.EXITING=Hh;var l5=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return r=n,void((o=e).classList?o.classList.remove(r):typeof o.className=="string"?o.className=Zg(o.className,r):o.setAttribute("class",Zg(o.className&&o.className.baseVal||"",r)));var o,r})},Wh=function(e){function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(o=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var d=o.resolveArguments(l,c),p=d[0],h=d[1];o.removeClasses(p,"exit"),o.addClass(p,h?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var d=o.resolveArguments(l,c),p=d[0],h=d[1]?"appear":"enter";o.addClass(p,h,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var d=o.resolveArguments(l,c),p=d[0],h=d[1]?"appear":"enter";o.removeClasses(p,h),o.addClass(p,h,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l)[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l)[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l)[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,d=typeof c=="string",p=d?(d&&c?c+"-":"")+l:c[l];return{baseClassName:p,activeClassName:d?p+"-active":c[l+"Active"],doneClassName:d?p+"-done":c[l+"Done"]}},o}uC(t,e);var n=t.prototype;return n.addClass=function(o,r,i){var a,l,c=this.getClassNames(r)[i+"ClassName"],d=this.getClassNames("enter").doneClassName;r==="appear"&&i==="done"&&d&&(c+=" "+d),i==="active"&&o&&hC(o),c&&(this.appliedClasses[r][i]=c,l=c,(a=o)&&l&&l.split(" ").forEach(function(p){return m=p,void((g=a).classList?g.classList.add(m):(h=g,f=m,(h.classList?!!f&&h.classList.contains(f):(" "+(h.className.baseVal||h.className)+" ").indexOf(" "+f+" ")!==-1)||(typeof g.className=="string"?g.className=g.className+" "+m:g.setAttribute("class",(g.className&&g.className.baseVal||"")+" "+m))));var h,f,g,m}))},n.removeClasses=function(o,r){var i=this.appliedClasses[r],a=i.base,l=i.active,c=i.done;this.appliedClasses[r]={},a&&l5(o,a),l&&l5(o,l),c&&l5(o,c)},n.render=function(){var o=this.props;o.classNames;var r=Nf(o,["classNames"]);return u.createElement(ba,Xu({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.Component);Wh.defaultProps={classNames:""},Wh.propTypes={};const fC={Light:"light",Dark:"dark"},s5=.12,Uh=(e,t)=>{const n={},o=c=>{const d=c.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:c.typography?.fontFamily??"Calibri",fontSize:c.typography?.fontSize??8.25,fontWeight:c.typography?.fontWeightRegular??"400",fill:c.palette.mode==="dark"?c.palette?.text?.secondary:c.palette?.text?.primary},fill:d,strokeFill:fi(d,s5,c.palette?.mode),darkMode:c.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:fi(n.body.fill,s5,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:fi(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:fi(n.body.fill,.328,e.palette?.mode)},n.headerHover=c=>({...n.header,strokeFill:fi(c?.fill??n.body.fill,.22,e.palette?.mode),fill:fi(c?.fill??n.header.fill,.065,e.palette?.mode),text:{...c?.text,fontWeight:e.typography?.fontWeightBold}});const i=fi(e.palette.mode!=="dark"?e.palette.primary.light:e.palette.primary.main,.055,e.palette?.mode);n.headerSelect={...n.header,strokeFill:e.palette.primary.main,fill:ht(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:ht(i,.7)},n.headerSelectAll={...n.headerSelect,fill:ht(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:fi(r.fill,s5,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:fi(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:fi(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?ht(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?ht(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const a=t??e,l=a.palette.mode==="dark";return n.selection={fill:a.palette?.primary?.main?ht(a.palette?.primary?.main,.1):void 0,strokeFill:a.palette?.primary?.main},n.selectionInactive={...n.selection,fill:a.palette?.divider?ht(a.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:ht(a.palette.warning.light,.05),strokeFill:a.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=ht(a.palette.action.active,.5),n.colorGrey=a.palette.action.active,n.filterDarkInvert=l?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function mC(e){const{mode:t}=e||{},[n,o]=u.useState(()=>{if(t==="light"||t==="dark")return{themeMode:t,source:"prop"};if(typeof document<"u"){const r=Xg();if(r)return{themeMode:r,source:"class"}}return{themeMode:Yg(),source:"media"}});return u.useEffect(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const r=()=>{const c=Xg();if(c)o({themeMode:c,source:"class"});else{const d=Yg();o({themeMode:d,source:"media"})}},i=new MutationObserver(r),a=[document.documentElement,document.body].filter(Boolean);for(const c of a)i.observe(c,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",r),r(),()=>{i.disconnect(),l.removeEventListener("change",r)}},[t]),n}function Xg(){if(typeof document>"u")return null;const e=[...Array.from(document.body.classList),...document.documentElement?Array.from(document.documentElement.classList):[]];return e.includes("dark")?"dark":e.includes("light")?"light":null}function Yg(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const o1=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,a=ir(t,()=>({}),[]),[l,c]=n1(),d=u.useRef(null),p=u.useRef(null),[h,f]=u.useReducer(S=>S+1,0),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),{reference:w}=pa({parentFloat:r,label:"overflow"});u.useLayoutEffect(()=>{p.current={refs:[]};const S=[],R=u.Children.toArray(n);let _=0;R.forEach((A,T)=>{S.push(s.jsx(Ae,{sx:{display:"flex"},ref:j=>{_++,_===R.length&&f();const C={current:null};C.current=j,p.current.refs[T]=C},children:A},T))}),m(S)},[n,c]),u.useLayoutEffect(()=>{if(!g)return;const S=p.current.refs;if(!a.current||!S||S.length===0)return x(null),void b(null);const R=a.current?.getBoundingClientRect(),_=[],A=[];let T=0,j=!1;for(let k=0;!j&&k<S.length;k++){const P=S[k];if(!P)continue;if(!P.current){j=!0;continue}const O=P.current.getBoundingClientRect();T+=O?.width,T>R.width&&(j=!0)}if(!j)return x(null),void b([]);const C=d.current?.getBoundingClientRect();T=0;for(let k=0;k<S.length;k++){const P=S[k];let O=!1;if(P.current){const I=P.current.getBoundingClientRect();T+=I?.width,T<R.width-C.width&&(O=!0)}O?_.push(g[k]):A.push(g[k])}x(_.length>0?_:null),b(A.length>0?A:null)},[n,g,c,w,h]);const E=Te(S=>{const R=[];for(let A=0;A<v.length;A++){let T=u.Children.toArray(v[A]);const j=T[0];T=u.Children.toArray(j.props.children?.props.children??j.props.children);const C=T[0],k={...C.props};k.parentFloat&&(k.parentFloat=S.floatReference);const P=u.cloneElement(C,k);R.push(P)}const _=s.jsx(Ae,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:A=>A.spacing(.5),paddingBottom:A=>A.spacing(.5),paddingLeft:A=>A.spacing(1),paddingRight:A=>A.spacing(1),overflow:"hidden"},children:R});return Nn({...S,children:_})},[v]);return s.jsxs(Ae,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:N2([a,l,t]),...i,children:[s.jsx(Ae,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:y??g}),s.jsx(Ae,{sx:{display:v!==null&&v.length===0?"none":"flex",flex:"1 1 0"},children:s.jsx(Ui,{createPopupPanel:E,ref:d,parentFloat:w,createTooltip:({children:S},R)=>s.jsx(br,{label:"More",description:"More toolbar options…",disabled:R,children:S}),icon:s.jsx(Lb,{children:s.jsx(iR,{})})})})]})})),gC="https://unpkg.com/@sheetxl/scripting-templates/dist",JB=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DKsZXMMHWKP9IZ4E.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DeAt9vyyaeB2vbxQ.cjs"))).fromBufferCSV(e,t)},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BNtn_2pcq6Dd-2HL.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],QB=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DKsZXMMHWKP9IZ4E.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DeAt9vyyaeB2vbxQ.cjs"))).toBufferCSV(e,t)},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BNtn_2pcq6Dd-2HL.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class yC{constructor(t=JB,n=QB){this._readFormatTypes=[],this._writeFormatType=[],this._readFormatTypes=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}_detectImportSourceType(t){return t&&typeof t=="object"&&"base64"in t?"base64":t&&typeof t=="object"&&"input"in t?"fetch":typeof t=="string"?t.startsWith("data:")?"base64":(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../"),"fetch"):typeof File<"u"&&t instanceof File?"file":t instanceof ArrayBuffer||ArrayBuffer.isView(t)?"buffer":typeof ReadableStream<"u"&&t instanceof ReadableStream?"stream":null}getReadFormats(){return this._readFormatTypes}getWriteFormats(){return this._writeFormatType}getReadFormatTypeForKey(t){return this._readFormatTypes.find(n=>n.key.includes(t))??null}getReadFormatTypeForExt(t){return t=t.toLowerCase(),this._readFormatTypes.find(n=>n.exts.includes(t))??null}getReadFormatTypeForMimeType(t){return this._readFormatTypes.find(n=>n.mimeType===t)??null}getWriteFormatTypeForExt(t){return t=t.toLowerCase(),this._writeFormatType.find(n=>n.ext===t)??null}getWriteFormatType(t){t=t.toLowerCase();let n=this._writeFormatType.find(o=>o.ext===t)??null;return n||(n=this._writeFormatType.find(o=>o.key.toLowerCase()===t)??null,n||(this._writeFormatType.find(o=>o.mimeType.toLowerCase()===t)??null))}getAllReadFormatTypeAsString(){const t=[];for(let n=0;n<this._readFormatTypes.length;n++)t.push(this._readFormatTypes[n].mimeType);return t}async toArrayBuffer(t,n,o){const r=this.getWriteFormatType(n);if(!r)throw new Error(`Invalid export type for '${n}'.`);try{const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r.description??n}.`);return i(t,o)}catch(i){throw new Error(`Unable to load handler for '${n}.'`,{cause:i})}}async _fromArrayBuffer(t,n,o=null){let r=this.getReadFormatTypeForKey(n)??this.getReadFormatTypeForExt(n)??this.getReadFormatTypeForMimeType(n);if(!t||!r){if(!t)throw new Error("ArrayBuffer must be specified.");if(!n)throw new Error("formatKey must be specified.")}const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r?.description??n}.`);const a={...o,...o?.typedConstructorOptions?.[n]};let l;delete a.typedConstructorOptions;try{l=await i(t,a)}catch(c){throw new Error("Unable to import",{cause:c})}return l}async read(t){if(!t)throw new Error("'options' must be provided for load.");let n=t.source;if(!n)throw new Error("'options.source' must be provided for load.");const o=t.name,r=t.formatType;typeof n=="function"&&(n=n()),n&&typeof n=="object"&&typeof n.then=="function"&&(n=await Promise.resolve(n));const i=this._detectImportSourceType(n);if(!i)throw new Error("Unable to detect source type from provided input.");switch(i){case"file":{const a=n;return await this._fromFile(a,t)}case"base64":{let a;if(n&&typeof n=="object"&&"base64"in n)a=n.base64;else if(typeof n=="string"&&n.startsWith("data:")){const[,d]=n.split(",");a=d}else a=n;const l=SR.base64ToArrayBuffer(a),c=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!c)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(l,c.key,t),title:o||"imported-file",formatType:c}}case"fetch":{let a,l,c=null;if(typeof n=="string")c=n;else{if(!n||typeof n!="object"||!("input"in n))throw new Error("Invalid fetch source provided.");{const y=n;c=y.input,a=y.init,l=y.timeout}}const d=l||3e4,p=new AbortController,h=setTimeout(()=>p.abort(),d),f=typeof c=="string"?c:c.toString(),g=r||$.TextUtils.getFileNameExtension(f),m=this.getReadFormatTypeForExt(g)||this._readFormatTypes[0];try{const y=await fetch(c,{...a,signal:p.signal});if(clearTimeout(h),!y.ok)throw new Error(`Failed to fetch: ${y.status} ${y.statusText}`);const x=await y.arrayBuffer();if(!m)throw new Error(`Unable to determine import type for fetched content: ${f}`);return{workbook:await this._fromArrayBuffer(x,m.key,t),title:o||$.TextUtils.getBaseName(f,!0)||"fetched-file",formatType:m}}catch(y){throw clearTimeout(h),y.name==="AbortError"?new Error(`Fetch timeout after ${d}ms: ${f}`):y}}case"buffer":{const a=n,l=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!l)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(a,l.key,t),title:o||"buffer-file",formatType:l}}case"stream":{const a=n.getReader(),l=[];let c=0;try{for(;;){const{done:g,value:m}=await a.read();if(g)break;l.push(m),c+=m.length}}finally{a.releaseLock()}const d=new ArrayBuffer(c),p=new Uint8Array(d);let h=0;for(const g of l)p.set(g,h),h+=g.length;const f=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!f)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(d,f.key,t),title:o||"stream-file",formatType:f}}default:throw new Error(`Unsupported source type: ${i}`)}}async _fromFile(t,n=null){let o=null;try{let r="";t?.name&&(r=`${$.TextUtils.getBaseName(t.name)}`);const i=this.getReadFormatTypeForExt($.TextUtils.getFileNameExtension(t?.name));if(!i)throw new Error(`Unknown file type: ${$.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);const a=await t.arrayBuffer(),l=new Uint8Array(a),c={...n,...n?.typedConstructorOptions?.[i.key]};delete c.typedConstructorOptions;const d=i.handler;if(!d)throw new Error(`Unable to resolve handler for type: ${i?.description??$.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await c.onStart?.(r);const p=await d(l,c);o=new eN(t,p,r,i)}catch(r){throw r}return o}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");if(!n.isIWorkbook)throw new Error("Invalid workbook model provided. Must be an instance of IWorkbook.");const r=$.TextUtils.getFileNameExtension(t);r&&(t=t.slice(0,t.length-r.length-1));let i=null;o?.formatType&&(i=this.getWriteFormatType(o.formatType));const a=this.getWriteFormats(),l=a.length;for(let p=0;!i&&p<l;p++)(a[p].ext===r||!r&&a[p].isDefault)&&(i=a[p]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const c=t+"."+i.ext;let d=null;try{d=await this.toArrayBuffer(n,i.key)}catch(p){throw typeof p=="string"?new Error(p):p}try{await(async(p,h)=>{(function(f,g){const m=URL.createObjectURL(f),y=document.createElement("a");y.style.display="none",y.href=m,y.download=g,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(m)})(new Blob([h],{type:"application/octet-stream"}),p)})(c,d)}catch(p){throw new Error("Unable to write file.",{cause:p})}return!0}}class eN{constructor(t,n,o,r){this.file=t,this.workbook=n,this.title=o,this.formatType=r}get[Symbol.toStringTag](){return"[WorkbookHandle]"}toString(){return`'${this.file.name}' ${this.file.size} (${this.formatType.description})`}}const tN=new yC;var Jg,Qg,nN=function(){if(Qg)return Jg;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,r){for(var i,a="",l=0,c=-1,d=0,p=0;p<=o.length;++p){if(p<o.length)i=o.charCodeAt(p);else{if(i===47)break;i=47}if(i===47){if(c!==p-1&&d!==1)if(c!==p-1&&d===2){if(a.length<2||l!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",l=0):l=(a=a.slice(0,h)).length-1-a.lastIndexOf("/"),c=p,d=0;continue}}else if(a.length===2||a.length===1){a="",l=0,c=p,d=0;continue}}r&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+o.slice(c+1,p):a=o.slice(c+1,p),l=p-c-1;c=p,d=0}else i===46&&d!==-1?++d:d=-1}return a}Qg=1;var n={resolve:function(){for(var o,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var l;a>=0?l=arguments[a]:(o===void 0&&(o=process.cwd()),l=o),e(l),l.length!==0&&(r=l+"/"+r,i=l.charCodeAt(0)===47)}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(o){if(e(o),o.length===0)return".";var r=o.charCodeAt(0)===47,i=o.charCodeAt(o.length-1)===47;return(o=t(o,!r)).length!==0||r||(o="."),o.length>0&&i&&(o+="/"),r?"/"+o:o},isAbsolute:function(o){return e(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(o===void 0?o=i:o+="/"+i)}return o===void 0?".":n.normalize(o)},relative:function(o,r){if(e(o),e(r),o===r||(o=n.resolve(o))===(r=n.resolve(r)))return"";for(var i=1;i<o.length&&o.charCodeAt(i)===47;++i);for(var a=o.length,l=a-i,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var d=r.length-c,p=l<d?l:d,h=-1,f=0;f<=p;++f){if(f===p){if(d>p){if(r.charCodeAt(c+f)===47)return r.slice(c+f+1);if(f===0)return r.slice(c+f)}else l>p&&(o.charCodeAt(i+f)===47?h=f:f===0&&(h=0));break}var g=o.charCodeAt(i+f);if(g!==r.charCodeAt(c+f))break;g===47&&(h=f)}var m="";for(f=i+h+1;f<=a;++f)f!==a&&o.charCodeAt(f)!==47||(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(c+h):(c+=h,r.charCodeAt(c)===47&&++c,r.slice(c))},_makeLong:function(o){return o},dirname:function(o){if(e(o),o.length===0)return".";for(var r=o.charCodeAt(0),i=r===47,a=-1,l=!0,c=o.length-1;c>=1;--c)if((r=o.charCodeAt(c))===47){if(!l){a=c;break}}else l=!1;return a===-1?i?"/":".":i&&a===1?"//":o.slice(0,a)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(o);var i,a=0,l=-1,c=!0;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var d=r.length-1,p=-1;for(i=o.length-1;i>=0;--i){var h=o.charCodeAt(i);if(h===47){if(!c){a=i+1;break}}else p===-1&&(c=!1,p=i+1),d>=0&&(h===r.charCodeAt(d)?--d===-1&&(l=i):(d=-1,l=p))}return a===l?l=p:l===-1&&(l=o.length),o.slice(a,l)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===47){if(!c){a=i+1;break}}else l===-1&&(c=!1,l=i+1);return l===-1?"":o.slice(a,l)},extname:function(o){e(o);for(var r=-1,i=0,a=-1,l=!0,c=0,d=o.length-1;d>=0;--d){var p=o.charCodeAt(d);if(p!==47)a===-1&&(l=!1,a=d+1),p===46?r===-1?r=d:c!==1&&(c=1):r!==-1&&(c=-1);else if(!l){i=d+1;break}}return r===-1||a===-1||c===0||c===1&&r===a-1&&r===i+1?"":o.slice(r,a)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return i=(r=o).dir||r.root,a=r.base||(r.name||"")+(r.ext||""),i?i===r.root?i+a:i+"/"+a:a;var r,i,a},parse:function(o){e(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var i,a=o.charCodeAt(0),l=a===47;l?(r.root="/",i=1):i=0;for(var c=-1,d=0,p=-1,h=!0,f=o.length-1,g=0;f>=i;--f)if((a=o.charCodeAt(f))!==47)p===-1&&(h=!1,p=f+1),a===46?c===-1?c=f:g!==1&&(g=1):c!==-1&&(g=-1);else if(!h){d=f+1;break}return c===-1||p===-1||g===0||g===1&&c===p-1&&c===d+1?p!==-1&&(r.base=r.name=d===0&&l?o.slice(1,p):o.slice(d,p)):(d===0&&l?(r.name=o.slice(1,c),r.base=o.slice(1,p)):(r.name=o.slice(d,c),r.base=o.slice(d,p)),r.ext=o.slice(c,p)),d>0?r.dir=o.slice(0,d-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,Jg=n}();const ey=/^(con|prn|aux|nul|com\d|lpt\d)$/i,ty=/[<>:"/\\|?*\u0000-\u001F]/g,kl=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:ty,WINDOW_FILENAME_RESERVED_REGEX:ey,isValidWindowsFilename:e=>!(!e||e.length>255||ty.test(e)||ey.test(e)||e==="."||e===".."),relativePath:(e,t)=>{try{return new URL(t),t}catch{}if(t.startsWith("/")||/^[a-zA-Z]:/.test(t))return t;if(typeof window>"u"||window.document===void 0){if(typeof require<"u"&&typeof process<"u")return nN.Path.resolve(e,t);throw new Error("Unsupported environment")}try{let n=e.startsWith("http")?e:`file:///${e.replace(/\\/g,"/")}`;return n.endsWith("/")||(n+="/"),new URL(t,n).href}catch{const n=document.createElement("a");let o=e;return o.endsWith("/")||(o+="/"),n.href=new URL(t,o).href,n.href}}},Symbol.toStringTag,{value:"Module"})),ny=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:yC,IOUtils:kl,WorkbookIO:tN},Symbol.toStringTag,{value:"Module"})),oN=e=>{if(e.metadata?.name)return e.metadata.name;let t=(e.path.split("/").pop()||"").replace(/\.[^/.]+$/,"");return e.metadata?.icon==="formula"?t.toUpperCase():(t=t.replace(/([a-z])([A-Z])/g,"$1 $2"),t.replace(/[-_]/g," ").trim().split(/\s+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))},xC=async e=>{const t=kl.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new z5(`Failed to retrieve directory at '${e}': ${n.statusText}`);const o=await n.text();if(o.trim().toLowerCase().startsWith("<!doctype html")||o.trim().toLowerCase().startsWith("<html"))throw new z5(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(a){throw new Error(`Failed to parse directory: ${a.message}. Ensure the file is valid JSON.`)}const i=r.map(async a=>{try{const l=kl.relativePath(e,a.path),c=await fetch(l);if(!c.ok)throw new Error(`Failed to fetch file at '${a.path}': ${c.statusText}`);const d=await c.text();let p=a.metadata;return p?.title||(p={title:oN(a),...p}),{path:a.path,content:d,metadata:p}}catch(l){console.error(l.message)}return null});return(await Promise.all(i)).filter(a=>a!==null)},c5={fontSize:"0.8rem",marginRight:"4px"},rN=u.memo(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...a}=e;let l;return l=n.metadata?.icon==="formula"?s.jsx(Qb,{sx:c5}):n.metadata?.icon==="macro"?s.jsx(U3,{sx:c5}):s.jsx(Tx,{sx:c5}),s.jsx(Gr,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:l,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(n)},onKeyDown:c=>{c.keyCode!==nn.Enter&&c.keyCode!==nn.Space||r(n)},...a,children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[s.jsx(Tn,{component:"div",children:n.metadata?.title??n.path}),s.jsx(Tn,{variant:"caption",component:"div",sx:{color:c=>ht(c.palette.text.secondary??c.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),bC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:a=gC,...l}=e,[c,d]=u.useState([]),[p,h]=u.useState(!0),f=_o(n,["executeSelectedScript"]),g=f[0]?.context?.();u.useEffect(()=>{(async()=>{try{const y=await xC(a);d(y)}catch{}finally{h(!1)}})()},[a]);const m=u.useCallback((y,x)=>{if(p)return s.jsx("div",{children:"Loading..."});const v={variant:Qt.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=S=>{g.getEditor()?.insertSnippet(S.content),y.closeFloat()},w=[];for(let S=0;S<c.length;S++){const R=c[S];R&&w.push(s.jsx(rN,{handleInsert:b,snippet:R},R.path))}const E=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[w.length>0?s.jsxs(s.Fragment,{children:[s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:w}),s.jsx($t,{orientation:"horizontal"})]}):null,u.createElement(We,{...v,key:"help",command:n.getCommand("help"),icon:ze(s.jsx(Yb,{}))})]});return Nn({...y,children:E})},[i,o,r,p,g]);return s.jsx(Jn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Insert Script",tooltip:"Inserts a script from a set of templates.",createPopupPanel:m,icon:ze(s.jsx(bD,{})),...l})})),Vf=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=Te(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[s.jsx("div",{children:s.jsx(o1,{parentFloat:o,style:{},children:s.jsx(We,{...c,command:n.getCommand("saveScripts"),icon:ze(s.jsx(vD,{}))})})}),s.jsx("div",{style:{flex:"1 1 100%"}}),s.jsx("div",{children:s.jsx(o1,{parentFloat:o,style:{},children:s.jsx(bC,{...c,commands:n})})})]})})},[n]);return s.jsx(C1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})}));Vf.displayName="ScriptEditorToolbar";const d5={fontSize:"1rem"},vC=u.memo(u.forwardRef((e,t)=>{const{scriptPath:n=gC,onScriptSelect:o,sx:r=Rn.EmptyCssProperties,className:i,buttonMinWidth:a=210,buttonMinHeight:l=80,gap:c=12,...d}=e,[p,h]=u.useState([]),[f,g]=u.useState(!0),[m,y]=u.useState(null);if(u.useEffect(()=>{(async()=>{const b=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{g(!0),y(null);const w=await xC(n);for(let E=0;E<w.length;E++){const S=w[E];S&&b.push(S)}}catch(w){y(w instanceof Error?w.message:"Failed to load scripts"),w instanceof z5||console.error("Error loading scripts:",w)}finally{h(b),g(!1)}})()},[n]),f)return s.jsx(Ae,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Eo(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,...r},...d,children:s.jsx(d3,{})});let x=null;m&&(x=s.jsxs(Ae,{display:"flex",justifyContent:"center",alignItems:"center",className:Eo(i,"script-select","error-results"),sx:{background:b=>b.palette.error.light,flex:"0",zIndex:1e3,flexDirection:"column",padding:b=>b.spacing(1),border:b=>`1px solid ${b.palette.error.main}`,borderBottomLeftRadius:1,borderBottomRightRadius:1,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},...d,children:[s.jsx(Tn,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),s.jsx(Tn,{color:"error",component:"div",children:m})]}));const v=b=>{const w=b.metadata?.icon;return w==="macro"?s.jsx(U3,{sx:d5}):w==="formula"?s.jsx(Qb,{sx:d5}):w==="autostart"?s.jsx(Tx,{sx:d5}):null};return s.jsxs(Ae,{ref:t,className:Eo(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,...r},...d,children:[s.jsxs(Ae,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[s.jsx(Tn,{variant:"h6",gutterBottom:!0,children:"Script Template"}),s.jsx(Tn,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Choose from a template to provide a starting point to automate tasks or create user defined functions."}),s.jsx(Tn,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),s.jsx(Ae,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${a}px, 1fr))`,gap:`${c}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:p.map((b,w)=>s.jsxs(Oc,{variant:"outlined",sx:{minWidth:a,minHeight:l,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...w===0&&{borderStyle:"dashed",marginBottom:"8px"},...w===1&&{gridColumn:"1"}},onClick:()=>o?.(b),children:[s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[s.jsx(Tn,{variant:"subtitle2",component:"div",children:b.metadata?.title||b.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),v(b)]}),b.metadata?.summary&&s.jsx(Tn,{variant:"body2",component:"div",color:"text.secondary",sx:{overflow:"hidden",display:"flex",flexDirection:"column",textOverflow:"ellipsis",alignItems:"flex-start"},children:b.metadata.summary})]},`${b.path}-${w}`))})]}),x]})}));vC.displayName="TemplateSelectPanel";const Hf=u.memo(u.forwardRef((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:a=!1,onClose:l,autoFocusSel:c,autoFocus:d=!0,scripts:p,...h}=e,f=qi(),[g,m]=u.useState(!1),y=u.useRef(!1),[x,v]=u.useState({message:"Loading",cursor:"",dirty:!1}),[b,w]=u.useState(null);u.useEffect(()=>{let D=!1;return w(null),async function(){if(p&&(await p.start(),!D)){const F=p.getModules().search()[0]?.getSource();w({source:F||null})}}(),()=>{D=!0}},[p]);const E=u.useCallback(D=>{v(F=>({...F,...D}))},[]),S=u.useRef(null),R=u.useRef(null),[_,A]=u.useState(null),T=u.useRef(null),j=Te(D=>{if(_)return _.focus(D),!0;if(c){const F=R.current?.querySelectorAll?.(c);if(F&&F.length>0)return F[0]?.focus?.(D),!0}return R.current?.focus?.(D),!1},[_,c,d]),C=u.useMemo(()=>s.jsx(t0,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),k=u.useMemo(()=>s.jsx(Mi,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,marginLeft:D=>D.spacing(.5),marginRight:D=>D.spacing(.5),marginTop:D=>D.spacing(1),marginBottom:D=>D.spacing(1)},children:s.jsx(Vf,{commands:i})}),[f,i]),P=u.useMemo(()=>s.jsx(Ae,{className:Eo("script-status-panel","status-panel"),sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",margin:0,borderTop:`solid 1px ${f.palette.divider}`},children:s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[s.jsx(Tn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:D=>D.palette.text.secondary},variant:"caption",children:x.message}),s.jsx(Tn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:D=>D.palette.text.secondary},variant:"caption",children:x.dirty?"Unsaved":""}),s.jsx(Tn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:D=>D.palette.text.secondary},variant:"caption",children:x.cursor})]})}),[x]),O=u.useMemo(()=>s.jsxs(Ae,{className:Eo("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[k,s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:s.jsx(AB,{ref:R,loadingPanel:C,readOnly:a,onClose:l,autoFocus:d,commands:i,onStatusChange:E,darkMode:f.palette.mode==="dark",...r})}),P]}),[f,i,k,P,g,C,a,r,d,c,l,E]),I=u.useMemo(()=>s.jsx(gx,{className:Eo({"Mui-selected":y.current}),sx:{display:"flex",color:D=>D.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:D=>`${D.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:D=>D.transitions.duration.shortest/2+"ms"},backgroundColor:D=>ht(D.palette.action.hover,.03),borderBottom:D=>`solid ${ht(D.palette.divider,.2)} 1px`},onPointerDown:D=>{D.isDefaultPrevented()||(D.preventDefault(),j())},children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:D=>D.spacing(.25),marginBottom:D=>D.spacing(.25),marginLeft:D=>D.spacing(1),marginRight:D=>D.spacing(1)},children:[s.jsx(Ae,{sx:{flex:"1 1 100%",paddingLeft:D=>D.spacing(1)},children:"Script (Typescript)"}),s.jsx(br,{label:"Close",children:s.jsx(Mr,{"aria-label":"close",sx:{color:D=>D.palette.text.icon??D.palette.action.active},touchRippleRef:S,onPointerDown:D=>{S.current?.start(D,{center:!1}),D.stopPropagation(),D.preventDefault()},onPointerUp:()=>{R.current?.close()},children:s.jsx(C3,{})})})]})}),[f,g]),z=u.useMemo(()=>{let D;return b===null?null:(b.source===null&&(D=s.jsx(vC,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:F=>{R.current?.getEditor().insertSnippet(F.content),w({source:F.content??""})}})),s.jsxs(Ae,{tabIndex:0,className:Eo("script-workspace",n),sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",alignItems:"stretch",userSelect:"none",flexGrow:0,outline:"none",backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},onPointerDown:F=>{F.isDefaultPrevented()||R.current?.focus()},children:[I,s.jsxs(Ae,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[O,D]})]}))},[k,O,n,b]),L=ir(t,()=>({isScriptWorkspaceElement:()=>!0,focus:D=>{j(D)}}),[]);return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:L,...h,onFocus:D=>{m(!0),y.current=!0,L.current?.contains(D.target)&&D.target!==L.current&&A(D.target),D.relatedTarget&&!T.current&&(T.current=D.relatedTarget),h?.onFocus?.(D)},onBlur:D=>{L?.current?.contains(D.relatedTarget)||L?.current===D.relatedTarget||(T.current=null,y.current=!1,m(!1)),h?.onBlur?.(D)},children:z})}));Hf.displayName="ScriptWorkspace";const Wf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["executeScript"])[0].context();_o(n,["showScriptEditor"]);const c=u.useCallback((d,p)=>{const h={variant:Qt.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},f=l?.getScripts(),g=f?.searchFunction({type:"macro"}),m=[];if(g)for(let x=0;x<g.length;x++){const v=g[x];m.push(s.jsx(We,{...h,command:p.getCommand("executeScript"),commandState:{declaration:v},tooltipProps:{description:`Execute ${v.getName()??"script"}`},icon:ze(s.jsx(U3,{})),labelOverride:v.getName()??`Script '${v.getName()}'`},`script-${v.getName()}-${x}`))}const y=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[m.length>0?s.jsxs(s.Fragment,{children:[s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:m}),s.jsx($t,{orientation:"horizontal"})]}):null,u.createElement(We,{...h,key:"show-editor",command:p.getCommand("showScriptEditor"),icon:ze(s.jsx(uD,{}))})]});return Nn({...d,children:y})},[i,l,o,r]);return s.jsx(Jn,{ref:t,commands:n,commandHook:o,createPopupPanel:c,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:ze(s.jsx(xD,{})),...a})})),iN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=_o(n,["executeScript","showScriptEditor"]),l=a[0]?.context?.(),c=u.useCallback(d=>{const{commandButtonProps:p,commandPopupProps:h}=d,f=s.jsx(Gs,{...h,command:n.getCommand("formatFontColor"),icon:s.jsx(bP,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),g=s.jsx(Gs,{...h,command:n.getCommand("formatFillColor"),icon:s.jsx(xP,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:_s.End}}),m=n.getCommand("undo")?s.jsx(s.Fragment,{children:s.jsx(Mf,{...h,quickCommand:"undo"})}):null,y=n.getCommand("find")?s.jsx(s.Fragment,{children:s.jsx(AS,{...h})}):null;let x=null;const v=l?.getScripts();if(a[1]?.state?.()||v){let b=a[1]?.state?.();const w=v?.searchFunction({type:"macro"});for(let E=0;w&&!b&&E<w?.length;E++)b=!0;b&&(x=s.jsxs(s.Fragment,{children:[s.jsx($t,{}),s.jsx(Wf,{...h})]}))}return s.jsxs(o1,{parentFloat:o,children:[m,null,m?s.jsx($t,{}):null,s.jsx(Tf,{...h,command:n.getCommand("paste")}),s.jsx(We,{...p,command:n.getCommand("formatPainterToggle"),icon:ze(s.jsx(TO,{}))}),s.jsx(B2,{...p,command:n.getCommand("copy")}),s.jsx($t,{}),s.jsx(VS,{...h,command:n.getCommand("formatFontFamily")}),s.jsx(zS,{...h,command:n.getCommand("formatFontSize")}),s.jsx(We,{...p,command:n.getCommand("formatBoldToggle"),icon:s.jsx(MI,{})}),s.jsx(We,{...p,command:n.getCommand("formatItalicToggle"),icon:s.jsx(EI,{})}),s.jsx(WS,{...h}),s.jsx(HS,{...h}),f,s.jsx($t,{}),g,s.jsx(OS,{...h}),s.jsx(DS,{...h}),s.jsx($t,{}),s.jsx($v,{...h}),s.jsx(Vv,{...h}),s.jsx(Hv,{...h}),s.jsx(Wv,{...h}),s.jsx($t,{}),s.jsx(FS,{...h}),s.jsx(GS,{command:n.getCommand("formatCellStyle"),...h}),s.jsx(JS,{command:n.getCommand("formatTableStyle"),...h}),s.jsx($t,{}),s.jsx(Cf,{...h}),s.jsx(kf,{...h}),s.jsx($t,{}),s.jsx(BS,{...h}),null,s.jsx(Sf,{...h}),s.jsx(Ef,{...h}),y,x]})},[n,a]);return s.jsx(C1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:c,...i})})),aN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=Te(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsxs(o1,{parentFloat:o,children:[null,s.jsx(We,{...c,command:n.getCommand("updateHyperlink"),icon:ze(s.jsx(ah,{}))}),s.jsx(We,{...c,command:n.getCommand("updateComments"),icon:ze(s.jsx(lh,{}))}),s.jsx(jf,{...d}),s.jsx(We,{...c,command:n.getCommand("insertTable"),icon:ze(s.jsx(Hc,{}))})]})},[n]);return s.jsx(C1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),lN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=Te(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsxs(o1,{parentFloat:o,children:[s.jsx(LS,{...d}),s.jsx(We,{...c,command:n.getCommand("protectionSheetToggle"),icon:s.jsx(x2,{color:"secondary"})}),s.jsx($t,{}),s.jsx(NS,{...d}),s.jsx(US,{...d}),s.jsx($t,{}),s.jsx(We,{...c,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:s.jsx(Us,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),s.jsx(We,{...c,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:s.jsx(Us,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),s.jsx($t,{}),s.jsx(qS,{...d}),s.jsx(nC,{command:n.getCommand("selectTheme"),...d}),s.jsx($t,{}),s.jsx(Wf,{...d,scope:"view"}),s.jsx($t,{}),s.jsx(We,{...c,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ze(n.getCommand("fullScreenToggle").state()?s.jsx(FO,{}):s.jsx(zO,{}))})]})},[n]);return s.jsx(C1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),wC=e=>s.jsx(uN,{...e}),sN=u.memo(e=>{const{sx:t,...n}=e;return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:o=>`${ht(o.palette.primary.main,.35)} solid 2px`}},children:[s.jsx(Ej,{disableRipple:!0,onMouseDown:o=>{o.button===0&&o.preventDefault()},sx:{textTransform:"none",flex:"1 1 100%",fontWeight:o=>o.typography.fontWeightRegular,padding:"2px 6px",minHeight:"0px",minWidth:"0px",marginRight:o=>o.spacing(.5),"&.Mui-selected":{},"&.Mui-focusVisible":{},...t},...n}),s.jsx(Ae,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),cN=u.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,a=u.useMemo(()=>{const l=[];for(let c=0;c<t.length;c++)l.push(s.jsx(sN,{label:t[c].label},t[c].label));return l},[t]);return s.jsx(Hj,{value:n,onChange:(l,c)=>{o?.(c)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:l=>l.spacing(1.5),paddingRight:l=>l.spacing(1.5),paddingTop:l=>l.spacing(0),paddingBottom:l=>l.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:l=>l.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:s.jsx("span",{className:"MuiTabs-indicatorSpan"})},...i,children:a})}),dN=u.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,a=u.useCallback(c=>{o?.(c.target.value)},[o]),l=u.useMemo(()=>{const c=[];for(let d=0;d<t.length;d++){const p=t[d].label;c.push(s.jsx(y1,{value:d,sx:{color:h=>{if(n===d)return h.palette.primary.main}},children:p},p))}return c},[t,n]);return s.jsx(g1,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:c=>c.spacing(.5),paddingBottom:c=>c.spacing(.5),paddingLeft:c=>c.spacing(2),color:c=>c.palette.primary.main},"& .MuiSelect-icon":{fill:c=>c.palette.text.icon??c.palette.action.active,"&:hover:not(.Mui-disabled)":{color:c=>c.palette.text.icon??c.palette.action.active}},...r},size:"small",children:s.jsx(y2,{value:n,onChange:a,variant:"outlined",sx:{backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`},...i,children:l})})}),uN=u.memo(u.forwardRef((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:a,toolbarsProps:l,paletteProps:c={},workbook:d,sx:p,...h}=e,f=u.useMemo(()=>{const S=[];return S.push({label:"Home",component:s.jsx(iN,{commands:n,...l?.Home})}),S.push({label:"Insert",component:s.jsx(aN,{commands:n,...l?.Insert})}),S.push({label:"View",component:s.jsx(lN,{commands:n,...l?.View})}),S},[n]),g=u.useMemo(()=>{const S=[];for(let R=0;R<f.length;R++)S.push(u.cloneElement(f[R].component,{...f[R].component.props,key:f[R].key??f[R].label}));return S},[f]),[m,y]=u.useState(0),x=S=>{y(S)},v=u.useMemo(()=>s.jsx(i?dN:cN,{toolbars:f,value:m,onToolbarChange:x,sx:r}),[f,m,r,i]),{sx:b,...w}=c,E=s.jsx(Mi,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`,marginLeft:S=>S.spacing(1),marginRight:S=>S.spacing(1),marginTop:S=>S.spacing(.5),marginBottom:S=>S.spacing(.5),...b},...w,children:g[m]});return s.jsxs(Ae,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:S=>S.spacing(.5),"*":{userSelect:"none"},...p},...h,children:[o?o(v):v,a?a(E):E]})})),pN=e=>s.jsx(Ff,{...e}),hN=e=>s.jsx(Bf,{...e}),fN=e=>s.jsx(zf,{...e}),Uf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:a=!1,readOnly:l=!1,contextMenuProps:c,renderContextMenu:d=pN,sheetsAllProps:p,renderSheetsAll:h=hN,sheetTabProps:f,renderSheetTab:g,background:m="transparent",className:y,notifier:x,sx:v,borderWidth:b,borderColor:w,gridTheme:E,gridStyle:S,...R}=e,[_,A]=u.useState(n?.getSelectedSheetIndex()),[T,j]=u.useState(n?.getSheets().search()),[C,k]=u.useState(n?.getProtection());sn(n,{onViewChange(be){A(be?.getSelectedSheetIndex())},onSheetsChange:be=>{j(be.getSheets().search())},onProtectionChange:be=>{k(be?.getProtection())}});const P=u.useMemo(()=>{const be=[];for(let re=0;re<T.length;re++)be.push(T[re].getName());return be},[T]),O=u.useCallback(be=>{r?.(be)!==!1&&(n.getSheetAt(be).select(),i?.(be))},[n,r,i]),I=u.useCallback((be,re)=>{n.getSheetAt(be).setName(re),i?.(be)},[n,i]),z=u.useCallback((be,re)=>{n.getSheetAt(be).setPosition(re),i?.(re)},[n,i]),L=Te(()=>{if(r?.(_)===!1)return;const be=_+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(be)},[n,r,i,_]),D=u.useMemo(()=>({placement:"top-start"}),[]),F=u.useRef(null),[B,M]=u.useState(!1),N=u.useCallback(be=>{const{closeFloatAll:re,floatReference:ce}=be;return h({workbook:n,gridStyle:S,floatReference:ce,closeFloatAll:re,...p})},[h,p,a,n,S]),{reference:V,component:U}=pa({label:"allSheet",popperProps:D,anchor:F.current,onOpen:()=>M(!0),onClose:()=>M(!1),createPopupPanel:N}),J=u.useRef(null),[X,H]=u.useState(null),ne=u.useCallback(be=>{const{floatReference:re}=be;return d?.({workbook:n,index:X?.index,tabStripRef:J.current,commands:o,disabled:a,floatReference:re,...c})},[d,c,a,n,o,X]),{reference:oe,component:ge}=pa({label:"sheetTab",popperProps:D,anchor:{getBoundingClientRect:()=>new DOMRect(X?.left||0,X?.top||0,0,0)},onClose:()=>H(null),createPopupPanel:ne});u.useEffect(()=>{X?oe.open(0):oe.close(0)},[X]);const de=u.useCallback((be,re)=>{be.preventDefault(),H({left:be.clientX-2,top:be.clientY-4,index:re})},[]),ye=Te(be=>{let re;try{re=n?.getSheetAt(be.index)}catch{}return re?(g??fN)({sheet:re,gridTheme:E,onContextMenu:ce=>{O(be.index),de(ce,be.index)},...be,...f}):null},[g,f,n,E]),ve=u.useMemo(()=>l||!C?.isStructureAllowed()?null:s.jsx(di,{disableInteractive:!0,title:"New sheet",children:s.jsx(Mr,{disabled:a,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:be=>be.palette.primary.main},color:be=>be.palette.text.icon??be.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:be=>{be.button===0&&be.preventDefault()},onClick:()=>L(),children:s.jsx(Gj,{})})}),[l,a,C,L]);return s.jsxs(Ae,{ref:t,className:Eo(y),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...v},...R,children:[s.jsx(TS,{ref:J,selectedTabIndex:_,tabNames:P,onSelectedTabIndexChange:O,onTabNameChange:I,onTabMove:z,background:m,borderColor:w,borderWidth:b,activeColor:null,disabled:a,disableDrag:l||!C.isStructureAllowed(),createScrollStartButton:SD,createScrollEndButton:CD,createScrollEdgeButton:wD,createTabButton:ye,createTabDivider:be=>{const{key:re,...ce}=be;return s.jsx($t,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:we=>ht(we.palette.divider,.25)},...ce},re)},editLabelProps:{maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:be=>{n.isValidSheetNameCharacter(be.key)||be.preventDefault()},onCancel:()=>{i?.(_)},notifier:x},children:s.jsx(di,{disableInteractive:!0,title:B?"":"List all sheets",children:s.jsx(ii,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:be=>be.palette.text.icon??be.palette.action.active},ref:F,dense:!0,outlined:!1,selected:B,color:"primary","aria-label":"menu",onMouseDown:be=>{be.button===0&&be.preventDefault()},onClick:()=>{B?V.close(0):V.open(0)},icon:s.jsx(rR,{})})})}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,minWidth:"4px"}}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,flex:"none",display:"flex",alignItems:"center"},children:ve}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,flex:1,minWidth:"24px"}}),ge,U]})}));Uf.displayName="WorkbookStrip";const qf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:a,className:l,...c}=e,[d,p]=u.useReducer(k=>k+1,0),[h,f]=u.useState(n.getSelectedSheet()),[g,m]=u.useState(h.getSelectedRanges()),[y,x]=u.useState(h.getSelectedCell());sn(n,{onSheetsChange(){f(n.getSelectedSheet())}}),sn(h.getSelection(),{onChange(){m(h.getSelectedRanges()),x(h.getSelectedCell())}}),_o(o,[],{onChange:()=>{p()}});const v=u.useMemo(()=>({}),[]),b=u.useMemo(()=>({commandHook:{beforeExecute:(k,P)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:a}),[r,a]),w=u.useMemo(()=>({...v,...b,variant:Qt.Menuitem}),[v,b]),E=u.useMemo(()=>({commands:o,variant:Qt.Menuitem,parentFloat:a,...b}),[o,b,a]),S=[];let R=g.isEntireRows(),_=g.isEntireColumns();g&&(R&&(S.push(s.jsx($t,{orientation:"horizontal"},"context:"+S.length)),S.push(u.createElement(We,{command:o.getCommand("hideColumns"),...w,icon:ze(s.jsx(vO,{})),key:"context:"+S.length})),S.push(u.createElement(We,{command:o.getCommand("unhideColumns"),...w,icon:ze(s.jsx(bO,{})),key:"context:"+S.length}))),_&&(S.push(s.jsx($t,{orientation:"horizontal"},"context:"+S.length)),S.push(u.createElement(We,{command:o.getCommand("hideRows"),...w,icon:ze(s.jsx(SO,{})),key:"context:"+S.length})),S.push(u.createElement(We,{command:o.getCommand("unhideRows"),...w,icon:ze(s.jsx(wO,{})),key:"context:"+S.length}))),(R||_)&&S.push(s.jsx($t,{orientation:"horizontal"},"context:"+S.length)),R&&S.push(u.createElement(We,{command:o.getCommand("autoFitColumns"),...w,icon:ze(s.jsx(JO,{})),key:"context:"+S.length})),_&&S.push(u.createElement(We,{command:o.getCommand("autoFitRows"),...w,icon:ze(s.jsx(QO,{})),key:"context:"+S.length})));const A=[],T=o.getCommand("formatTableStyle"),j=T?.context()?.table();if(rl(T),!R&&!_){if(A.push(s.jsx($t,{orientation:"horizontal"},"contextBefore:"+A.length)),y?.getHyperlink())A.push(u.createElement(sa,{...E,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+A.length,quickCommand:"openHyperlink",icon:k=>k.key()==="openHyperlink"?ze(s.jsx(ah,{})):null}));else{const k=o.getCommand("updateHyperlink");A.push(u.createElement(We,{command:k,...w,icon:ze(s.jsx(ah,{})),key:"contextBefore:"+A.length}))}if(y?.getComments())A.push(u.createElement(sa,{...E,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+A.length,quickCommand:"updateComments",icon:k=>k.key()==="updateComments"?ze(s.jsx(lh,{})):null}));else{const k=o.getCommand("updateComments");A.push(u.createElement(We,{command:k,...w,icon:ze(s.jsx(lh,{})),key:"contextBefore:"+A.length}))}j?A.push(u.createElement(sa,{...E,variant:Qt.Menuitem,key:"contextBefore:"+A.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:j,quickCommand:"editTable",icon:k=>(k.key(),ze(s.jsx(Hc,{})))})):A.push(u.createElement(We,{command:o.getCommand("insertTable"),...w,icon:ze(s.jsx(Hc,{})),key:"context:"+S.length})),A.push(u.createElement(jf,{...E,key:"contextBefore:"+A.length}))}const C=s.jsxs(s.Fragment,{children:[s.jsx(We,{command:o.getCommand("cut"),...w,icon:s.jsx(IP,{})}),s.jsx(B2,{command:o.getCommand("copy"),...w}),s.jsx(Tf,{command:o.getCommand("paste"),...E,includePasteAllInPopup:!1}),s.jsx($t,{orientation:"horizontal"}),s.jsx(Ef,{...E}),s.jsx($t,{orientation:"horizontal"}),s.jsx(Cf,{commands:o,...E,disableSheet:!0}),s.jsx(kf,{commands:o,...E,disableSheet:!0}),s.jsx(Sf,{...E}),A,S]});return s.jsx(Ae,{ref:t,className:Eo("menu",l),sx:{...i},...c,children:C})}));var oy,ry;qf.displayName="WorkbookContextMenu",function(){if(ry)return oy;ry=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof fs=="object"&&fs&&fs.Object===Object&&fs,a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")(),c=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return l.Date.now()};function f(m){var y=typeof m;return!!m&&(y=="object"||y=="function")}function g(m){if(typeof m=="number")return m;if(typeof(y=m)=="symbol"||function(b){return!!b&&typeof b=="object"}(y)&&c.call(y)=="[object Symbol]")return NaN;var y;if(f(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=f(x)?x+"":x}if(typeof m!="string")return m===0?m:+m;m=m.replace(e,"");var v=n.test(m);return v||o.test(m)?r(m.slice(2),v?2:8):t.test(m)?NaN:+m}oy=function(m,y,x){var v,b,w,E,S,R,_=0,A=!1,T=!1,j=!0;if(typeof m!="function")throw new TypeError("Expected a function");function C(z){var L=v,D=b;return v=b=void 0,_=z,E=m.apply(D,L)}function k(z){var L=z-R;return R===void 0||L>=y||L<0||T&&z-_>=w}function P(){var z,L,D=h();if(k(D))return O(D);S=setTimeout(P,(L=y-((z=D)-R),T?p(L,w-(z-_)):L))}function O(z){return S=void 0,j&&v?C(z):(v=b=void 0,E)}function I(){var z,L=h(),D=k(L);if(v=arguments,b=this,R=L,D){if(S===void 0)return _=z=R,S=setTimeout(P,y),A?C(z):E;if(T)return S=setTimeout(P,y),C(R)}return S===void 0&&(S=setTimeout(P,y)),E}return y=g(y)||0,f(x)&&(A=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,j="trailing"in x?!!x.trailing:j),I.cancel=function(){S!==void 0&&clearTimeout(S),_=0,v=R=b=S=void 0},I.flush=function(){return S===void 0?E:O(h())},I}}();var iy,ay,ly={};ay||(ay=1,function(){if(iy)return ly;iy=1;var e=u,t=typeof Object.is=="function"?Object.is:function(c,d){return c===d&&(c!==0||1/c==1/d)||c!=c&&d!=d},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function a(c){var d=c.getSnapshot;c=c.value;try{var p=d();return!t(c,p)}catch{return!0}}var l=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,d){return d()}:function(c,d){var p=d(),h=n({inst:{value:p,getSnapshot:d}}),f=h[0].inst,g=h[1];return r(function(){f.value=p,f.getSnapshot=d,a(f)&&g({inst:f})},[c,p,d]),o(function(){return a(f)&&g({inst:f}),c(function(){a(f)&&g({inst:f})})},[c]),i(p),p};ly.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var sy,cy,Rd={exports:{}},cs={exports:{}},mN=cs.exports;(function(){if(cy)return Rd.exports;cy=1;for(var e=(sy||(sy=1,function(){var h,f,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?cs.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(cs.exports=function(){return(h()-y)/1e6},f=process.hrtime,m=(h=function(){var v;return 1e9*(v=f())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(cs.exports=function(){return Date.now()-g},g=Date.now()):(cs.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(mN)),cs.exports),t=typeof window>"u"?fs:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],a=0;!r&&a<n.length;a++)r=t[n[a]+"Request"+o],i=t[n[a]+"Cancel"+o]||t[n[a]+"CancelRequest"+o];if(!r||!i){var l=0,c=0,d=[],p=1e3/60;r=function(h){if(d.length===0){var f=e(),g=Math.max(0,p-(f-l));l=g+f,setTimeout(function(){var m=d.slice(0);d.length=0;for(var y=0;y<m.length;y++)if(!m[y].cancelled)try{m[y].callback(l)}catch(x){setTimeout(function(){throw x},0)}},Math.round(g))}return d.push({handle:++c,callback:h,cancelled:!1}),c},i=function(h){for(var f=0;f<d.length;f++)d[f].handle===h&&(d[f].cancelled=!0)}}Rd.exports=function(h){return r.call(t,h)},Rd.exports.cancel=function(){i.apply(t,arguments)},Rd.exports.polyfill=function(h){h||(h=t),h.requestAnimationFrame=r,h.cancelAnimationFrame=i}})();var ta={DOM_UNAVAILABLE_ERROR:"DOM is unavailable server-side. Please use this method client-side only.",FULLSCREEN_UNSUPPORTED_ERROR:"Your browser does not support Fullscreen API.",getEventsNames(){if(typeof document>"u")return null;const e=document;return"exitFullscreen"in e?["fullscreenchange","fullscreenerror"]:"webkitExitFullscreen"in e||"webkitCancelFullScreen"in e?["webkitfullscreenchange","webkitfullscreenerror"]:"mozCancelFullScreen"in e?["mozfullscreenchange","mozfullscreenerror"]:"msExitFullscreen"in e?["MSFullscreenChange","MSFullscreenError"]:null},getEventName(e){const t=this.getEventsNames();return t?e==="change"?t[0]:t[1]:null},get fullscreenEnabled(){if(typeof document>"u")return!1;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||!1},get fullscreenElement(){if(typeof document>"u")return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,t){if(typeof document>"u")throw new Error(this.DOM_UNAVAILABLE_ERROR);const n=e??document.documentElement,o=n.requestFullscreen||n.webkitRequestFullscreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullscreen;if(!o)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return o.call(n,t)},exitFullscreen(){if(typeof document>"u")throw new Error(this.DOM_UNAVAILABLE_ERROR);const e=document,t=e.exitFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen;if(!t)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return t.call(e)},on(e,t){const n=this.getEventName(e);n&&document.addEventListener(n,t)},off(e,t){const n=this.getEventName(e);n&&document.removeEventListener(n,t)}};const SC=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:a,onShowSidebar:l,onNewWorkbook:c=CC}=e,[d,p]=u.useState(t?.getSelectedSheet()),[h,f]=u.useState(t?.getSheets().search()),g=Te(l,[l]),m=Te(c,[c]),y=u.useMemo(()=>[new Tt("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[$e.Ctrl,$e.Shift]}}),new He("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new He("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new He("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new Tt("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[$e.Ctrl]},{key:"F5",modifiers:[$e.Shift]}]}),new Tt("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[$e.Ctrl]},{key:"H",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[$e.Ctrl]}]}),new Tt("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new Tt("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new Tt("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new Tt("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new Tt("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new He("hideSheet",r,{label:"Hide Sheet",scopedLabels:{sheet:"Hide"},description:"Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs."}),new He("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new He("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[$e.Shift]},{key:"F1",modifiers:[$e.Alt,$e.Shift]}]}),new He("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new He("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl]}]}),new He("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl]}]}),new He("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new He("selectNamed",r,{label:k=>k?.getName()??"Select Named Item",scopedLabels:{namedItem:k=>k?.getName()??"Select"},description:"Select the item."}),new He("addNamedReference",r,{label:"Define Named Reference",scopedLabels:{namedItem:"Define Name…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new He("editNamedReference",r,{label:"Edit Named Reference…",scopedLabels:{namedItem:"Edit…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new He("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new Tt("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[$e.Alt]}}),new Tt("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("activeNameManager",r,{label:"Activate Name Manager",description:`Create, edit, delete, and find all the names used in the workbook.
|
|
222
|
+
|
|
223
|
+
Names can be used as a substitute for cell references.`,shortcut:{key:"F3",modifiers:[$e.Ctrl]}}),new He("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new He("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[$e.Alt]}]},function(k=!0){g?.()}),new He("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new He("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new He("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new He("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[$e.Ctrl]}}),new He("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new He("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new Tt("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[$e.Ctrl]}}),new Tt("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[$e.Ctrl]}}),new Tt("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[$e.Ctrl]}})],[]),x=u.useMemo(()=>{let k=null;return k=i?i.createChildGroup(r,"workbook",!1):new e0(r,"workbook"),k.addCommands(y,!0),k},[i,y]),v=Hi(),b=u.useRef(null),w=Te(()=>{let k,P=null;const O=x.getCommand("executeScript");if(O.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!O)return;const I=x.getCommand("executeSelectedScript");if(!I)return;const z={saveSource:async L=>{let D=null,F=null;const B=t.getScripts();try{L&&(F=await o?.showBusy?.("Saving Scripts..."),D=await B.createModule({source:L})),B.addModule("scripts",D,{replace:!0}),F?.()}catch(M){F?.(),console.warn("Unable to compile",M),o?.showError?.(M)}return D},addContainerListener:L=>(E.current=L,()=>{E.current=null}),setSelectedFunction:L=>{k=L??b.current??null,Promise.resolve(k).then(D=>{I.update({disabled:D===null})})},quickInsertFunction:L=>{const D=`=${L.toUpperCase()}(`,F={text:D+")",editMode:!0,initialSelection:{start:D.length,end:D.length+0}};v.setMode(B=>B?.key==="edit"?{...B,args:{...B.args}}:{key:"edit",args:{stateAndCoords:null,start:F}})},getSelectedFunction:()=>k,setEditor:L=>{P=L??null,x.getCommand("showScriptEditor")?.update({state:L!==null})},getEditor:()=>P,getRanges:L=>{try{return t.getRanges(L)}catch{}return null},getScripts:()=>t.getScripts(),isReadonly:()=>t.getProtection().isStructureAllowed()===!1};I.update({context:z})},[x,t,n,o]),E=u.useRef(null);sn(t,{onBeforeSave:async()=>{await E.current?.onBeforeSave()},onProtectionChange:()=>{E.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),E.current?.onScriptChange()))()}}),sn(t,{onSheetsChange:k=>{f(k.getSheets().search())},onViewChange(k){p(k?.getSelectedSheet())},onProtectionChange:k=>{const P={disabled:!k.getProtection().isStructureAllowed()};x.getCommand("hideSheet").update(P),x.getCommand("deleteSheet").update(P),x.getCommand("addSheet").update(P),x.getCommand("duplicateSheet").update(P)},onScriptsChange:k=>{w()}});const{isFullscreenAvailable:S,isFullscreenEnabled:R,toggleFullscreen:_}=function(k={}){const{target:P,onChange:O,onError:I,requestFullScreenOptions:z}=k,[L,D]=u.useState(!1),[F,B]=u.useState(null),[M,N]=u.useState(!1),V=u.useCallback(()=>ta.requestFullscreen(P?.current||null,z),[P,z]),U=u.useCallback(()=>ta.exitFullscreen(),[]),J=u.useCallback(()=>ta.fullscreenElement?U():V(),[V,U]),X=u.useCallback(ne=>{const oe=ta.fullscreenElement;B(oe),N(!!oe),O?.(ne)},[O]),H=u.useCallback(ne=>{const oe=ta.fullscreenElement;B(oe),N(!!oe),I?.(ne)},[I]);return u.useEffect(()=>{D(ta.fullscreenEnabled)},[]),u.useEffect(()=>(ta.on("change",X),ta.on("error",H),()=>{ta.off("change",X),ta.off("error",H)}),[X,H]),{isFullscreenAvailable:L,fullscreenElement:F,isFullscreenEnabled:M,enableFullscreen:V,disableFullscreen:U,toggleFullscreen:J}}({target:{current:n??document.body}}),A=bf();u.useEffect(()=>{x.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:A,darkMode:a})})},[t?.getTheme(),a]);const T=Te(async function(k,P){let O=null;const I=t.getScripts();if(k?.declaration||k?.functionName){const z=k.declaration?k.declaration.getName():k.functionName;I.searchFunction({name:z}).length>0&&(O=z)}if(O)try{await I.executeMacro(O),b.current=Promise.resolve({source:null,name:O})}catch(z){return void o?.showError?.(z)}},[t,o]);u.useEffect(()=>{x.getCommand("newCellStyle").updateCallback(k=>{o?.showInputOptions?.({initialValue:(()=>{let P=0;for(;;){P++;const O=`Style ${P}`;try{return t.getStyles().validateStyleName(O,!0),O}catch{}}})(),title:x.getCommand("newCellStyle")?.label("cellStyle"),description:"Enter a name for the new cell style.",inputLabel:"Style Name",inputProps:{style:{minWidth:"300px"}},options:["Ok","Cancel"],defaultOption:"Ok",onValidateInputOption:async(P,O)=>{let I=null;try{t.getStyles().validateStyleName(P,!1)}catch(D){I=D.message}let z=t.getStyles().getNamed(P),L=I;return!L&&z&&(L=`Update style '${z.getName()}'.`),{valid:I===null,message:L}}}).then(({input:P,option:O})=>{const I=t.getSelectedSheet().getSelectedRange();if(O!=="Ok")return;const z=t.getStyles().setNamed({name:P,style:I.getCell().getStyle()});I.updateStyle({named:z.getName()})})}),x.getCommand("deleteCellStyle").updateCallback(k=>{k.delete()}),x.getCommand("modifyCellStyle").updateCallback(({named:k})=>{const P=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:k.getName(),style:P.getCell().getStyle()})}),x.getCommand("hideSheet").updateCallback(k=>{t.getSheetAt(k).setVisibility($.ISheet.Visibility.Hidden)}),x.getCommand("deleteSheet").updateCallback(async k=>{t.getSheetAt(k??t.getSelectedSheetIndex())?.delete()}),x.getCommand("addSheet").updateCallback(k=>{t.getSheets().add({index:k,autoSelect:!0})}),x.getCommand("duplicateSheet").updateCallback(async k=>{(await t.getSheetAt(k??t.getSelectedSheetIndex())?.duplicate())?.select()}),x.getCommand("nextSheet").updateCallback(k=>{t.getNextSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("previousSheet").updateCallback(k=>{t.getPreviousSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectNextSheet").updateCallback(k=>{t.getNextSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectPreviousSheet").updateCallback(k=>{t.getPreviousSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectTheme").updateCallback(k=>{t.setTheme(k)}),x.getCommand("calculateAll").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),x.getCommand("calculate").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),x.getCommand("closeWorkbook").updateCallback(async()=>{await o?.showOptions({title:"Confirm",description:"This will close the current workbook tab. Do you want to continue?",options:["Close","Cancel"],defaultOption:"Close"})==="Close"&&window.close()}),x.getCommand("newWorkbook").updateCallback(()=>{m?.()}),x.getCommand("executeScript").updateCallback(T),x.getCommand("executeSelectedScript").updateCallback(T)},[t,o]);const j=Te(async k=>{let P=0,O=null,I="Find & Replace";k?.replace&&!k?.replaceOptions?.maxCount&&(I="Replace All");const z=await o?.showBusy?.(I);try{const L=k?.scope??"sheet";let D=null;const F={from:t.getSelectedSheet().getSelectedCell(),...k.findOptions};if(D=L==="sheet"?t.getSelectedSheet().find(k.findText,F):t.find(k.findText,F),k.replace){const B=t.replace(D,k.replaceText,k.replaceOptions);P=B.count,k.replaceOptions.maxCount&&(O=B.last)}else{let B=D.next();B.done||(P++,O=B.value)}O?.select({autoFocus:!1}),z?.(),!k.replaceOptions.maxCount&&P>1&&o?.showMessage?.(`We replaced ${P} cells.`)}catch(L){z?.(),o?.showError?.(L)}return P},[t,n]),C=Te(k=>{const P={value:k,context:{selection:()=>{const O=t.getSelectedRanges(),I=[];for(let z=0;z<O.getCount();z++){const L=O.at(z).getFixed(!0).getCoords();I.push(L)}return t.getRanges(I)},getNames:()=>t.getNames()},onUpdate:async O=>{try{await O.select()}catch(I){o?.showMessage?.(I.message,{type:ua.Error})}}};return o.showWindow?.("namedDetails",P)},[o,t,n]);return u.useEffect(()=>{const k=(P=!1)=>{const O=t.getSelectedCell(),I={onFindOrReplace:j,onKeyDown:z=>{x.findCommandByEvent(z)!==x.getCommand("find")&&x.findCommandByEvent(z)!==x.getCommand("findReplace")||z.preventDefault()},findOptions:{},findText:O.toTextUnformatted(!0)};I.replace=P,o.showWindow?.("find",I,{disableAutoDestroy:!0})};x.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{k()}),x.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{k(!0)}),x.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const P={onInputOption:async O=>{try{await t.getRanges(O).select()}catch(I){o?.showMessage?.(I.message,{type:ua.Error})}},onKeyDown:O=>{x.findCommandByEvent(O)===x.getCommand("goto")&&O.preventDefault()},title:x.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(P)}),x.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async P=>{if(P)try{await P.select()}catch(O){o?.showError?.(O)}}),x.getCommand("addNamedReference")?.updateCallback(async function(P){C(null)}),x.getCommand("editNamedReference")?.updateCallback(async function(P){C(P)}),x.getCommand("deleteNamedReference")?.updateCallback(async function(P){P?.delete?.()}),x.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),sn(t?.getView(),{onViewChange:k=>{x.getCommand("workbookViewToggleShowFormulaBar").update({state:k.isShowFormulaBar()}).updateCallback(()=>{k.setShowFormulaBar(!k.isShowFormulaBar())}),x.getCommand("workbookViewToggleShowTabs").update({state:k.isShowTabs()}).updateCallback(()=>{k.setShowTabs(!k.isShowTabs())}),x.getCommand("workbookViewToggleShowStatusBar").update({state:k.isShowStatusBar()}).updateCallback(()=>{k.setShowStatusBar(!k.isShowStatusBar())}),x.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:k.isShowHorizontalScrollbar()}).updateCallback(()=>{k.setShowHorizontalScrollbar(!k.isShowHorizontalScrollbar())}),x.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:k.isShowVerticalScrollbar()}).updateCallback(()=>{k.setShowVerticalScrollbar(!k.isShowVerticalScrollbar())})}}),u.useEffect(()=>{x.getCommand("fullScreenToggle").update({state:R,disabled:!S}).updateCallback(()=>{_()})},[R,S]),u.useEffect(()=>{const k=t.getProtection().isStructureAllowed();x.getCommand("hideSheet").update({disabled:h.length<=1||!k}),x.getCommand("deleteSheet").update({disabled:h.length<=1||!k})},[h,d]),x},CC=()=>{window.open(window.origin.toString(),"sheetxl-"+$.CommonUtils.uuidV4(),"popup=true")},kC=u.memo(u.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:a,...l}=e;sn(n,{onAnyChange(m){}});const c=u.useMemo(()=>({}),[]),d=u.useMemo(()=>({commandHook:{beforeExecute:(m,y)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:a}),[r,a]),p=u.useMemo(()=>({variant:Qt.Menuitem,...c,...d}),[c,d]),h=u.useMemo(()=>({commands:o,variant:Qt.Menuitem,parentFloat:a,...d}),[o,d,a]),f=m=>{switch(m?.key()){case"moveToFront":return ze(s.jsx(tD,{}));case"moveForward":return ze(s.jsx(nD,{}));case"moveToBack":return ze(s.jsx(eD,{}));case"moveBackward":return ze(s.jsx(oD,{}));case"toggleLockAspectRatio":return ze(s.jsx(N7,{}));case"formatDrawAlignLeft":return ze(s.jsx(V7,{}));case"formatDrawAlignCenter":return ze(s.jsx(rD,{}));case"formatDrawAlignRight":return ze(s.jsx(iD,{}));case"formatDrawAlignTop":return ze(s.jsx(aD,{}));case"formatDrawAlignMiddle":return ze(s.jsx(lD,{}));case"formatDrawAlignBottom":return ze(s.jsx(sD,{}));case"formatDrawDistributeHorz":return ze(s.jsx(cD,{}));case"formatDrawDistributeVert":return ze(s.jsx(dD,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ze(s.jsx($7,{}));default:return null}},g=s.jsxs(s.Fragment,{children:[s.jsx(B2,{command:o.getCommand("copy"),...p,variant:Qt.Menuitem}),[],s.jsx($t,{orientation:"horizontal"}),s.jsx(sa,{...h,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:f}),s.jsx(sa,{...h,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:f}),s.jsx($t,{orientation:"horizontal"}),s.jsx(We,{...p,command:o.getCommand("toggleLockAspectRatio"),icon:ze(s.jsx(N7,{}))}),s.jsx($t,{orientation:"horizontal"}),s.jsx(sa,{...h,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:m=>f(m)||ze(s.jsx(V7,{})),tooltip:"Quickly change the placement of your drawings."}),s.jsx($t,{orientation:"horizontal"}),s.jsx(sa,{...h,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:m=>f(m)||ze(s.jsx($7,{})),tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return s.jsx(Ae,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...l,children:g})}));kC.displayName="MovableContextMenu";const gN={fireOnModelChange:!1},u5={flex:"1 1 100%",display:"flex"},yN=e=>s.jsx(Of,{...e}),xN=e=>s.jsx(Uf,{...e}),bN=e=>s.jsx(kC,{...e}),vN=e=>s.jsx(qf,{...e}),wN=e=>s.jsx(Af,{...e}),SN=(e,t)=>s.jsx(Lf,{ref:t,...e}),CN=e=>s.jsx(t0,{...e}),kN=(e,t)=>s.jsx(Yw,{ref:t,...e}),Kf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:a,autoFocus:l=!1,sx:c,style:d,className:p,onFocus:h,onBlur:f,onKeyDown:g,onRepeatCommandChange:m,commands:y,showFormulaBar:x,formulaBarProps:v,renderFormulaBar:b=SN,showTabs:w,tabsProps:E,renderTabs:S=xN,showStatusBar:R,statusBarProps:_,renderStatusBar:A=yN,toolbarProps:T,renderToolbar:j=wC,contextMenuSx:C,renderContextMenu:k=vN,renderFilterMenu:P=wN,renderMovableMenu:O=bN,renderLoadingPanel:I=CN,loadingPanelProps:z,sheetProps:L,renderSheet:D=kN,showHorizontalScrollbar:F,showVerticalScrollbar:B,gridTheme:M,headersTheme:N,forceLightImages:V,...U}=e,J=qi(),X=bf(),H=u.useMemo(()=>{const Ne={theme:X.getDefaultTheme(),...o};return n??new $.Workbook(Ne)},[n]),ne=u.useRef(null),[oe,ge]=u.useState(!1),de=u.useRef(null),ye=u.useMemo(()=>s.jsx(Ae,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:de}),[]),[ve,be]=u.useState(!1),[re,ce]=u.useState(!1),we=u.useCallback(()=>{be(!0)},[]),ae=u.useRef(null),Y=ir(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>H,getSheetElement:()=>ne.current,getViewportElement:()=>de.current,getFormulaBarElement:()=>ae.current,focus(){ne&&ne.current&&ne.current.focus()}}),[H]),le=u.useRef(null);u.useLayoutEffect(()=>{ve&&Y.current&&(ce(!0),le.current!==i&&(i?.({source:Y.current}),le.current=i))},[ve,Y.current]),Y.current;const ee=u.useCallback(Ne=>(ne.current?.submitEdit(),!0),[]),Ie=u.useCallback(()=>{requestAnimationFrame(()=>{ne?.current?.focus()})},[]),[Me,ot]=u.useState(H?.getSelectedSheet()),[Ve,Ce]=u.useState(H?.getProtection());sn(H,{onSheetsChange:Ne=>{ot(Ne?.getSelectedSheet())},onViewChange(Ne){ot(Ne?.getSelectedSheet())},onProtectionChange:Ne=>{Ce(Ne?.getProtection())}}),sn(H,{onRequestSelect:async(Ne,yt)=>new Promise(qt=>{ne.current.getSheet()!==yt?ne.current.getGridElement()?.onViewChangeOnce(()=>{ne.current.getSheet()!==yt&&qt(!1),qt(!0)}):qt(!0)})},gN);const[je,Ge]=u.useReducer(Ne=>Ne+1,0),Be=H?.getView();sn(Be,{onViewChange:Ne=>{Ge()}});const ct=M??J,Ye=u.useMemo(()=>Uh(J,ct),[J,ct]),he=N??J,Ze=u.useMemo(()=>Uh(J,he),[J,he]),[Se,Re]=u.useState(null);u.useCallback(()=>{ne.current.focus()},[]);const[ue,De]=u.useState(!1),Le=u.useRef(null),W=SC({workbook:H,workbookElement:Y.current,commandTarget:()=>ne.current,notifier:a,commands:y,darkMode:Ye.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{ue?Le.current?.focus():De(!0)}}),Q=u.useRef(null),[q,se]=u.useState(!1),[te,ie]=u.useState(null),[pe,me]=u.useState(pp),[fe,_e]=u.useState($.TypesUtils.EmptyBounds),Fe=()=>{se(!1),ie(null)},qe=(Ne,yt,qt=pp)=>{_e(Ne),me(qt),ie(yt),Q.current!==null&&Q.current.update(),se(!0)},[Je,Qe]=u.useState("sheet"),rt=w??Be?.isShowTabs(),At=F??Be?.isShowHorizontalScrollbar(),zt=x??Be?.isShowFormulaBar(),_t=R??Be?.isShowStatusBar(),Vt=B??Be?.isShowVerticalScrollbar(),on=Ye?.header?.edgeStrokeFill||"rgb(171,171,171)",Yt=u.useMemo(()=>_t?A({sheet:Me,gridStyle:Ye,..._}):null,[A,_,_t,Ye,Me]),_n=u.useMemo(()=>j({commands:W,workbook:Y.current,...T}),[W,j,T,J]),[pn,{width:Mn}]=n1(),kt=Mn===0||Mn>560,rn=u.useMemo(()=>{if(!rt)return null;let Ne=S({background:Ye.body.fill,borderWidth:1,borderColor:on,gridTheme:ct,gridStyle:Ye,onBeforeUserChange:ee,onUserChange:Ie,workbook:H,commands:W,sheetTabProps:{},notifier:a,...E});return kt||(Ne=s.jsx("div",{style:{flex:"none",display:"flex"},children:Ne})),Ne},[S,E,a,J,H,ct,kt,W,rt]),fn=u.useCallback(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;let qt=null,tn=null,an=null;if(At&&(tn=s.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${on} 1px`,maxWidth:"100%"},children:s.jsx(Vu,{style:{alignItems:"center",borderTop:(yt?6:3)+"px solid transparent",borderBottom:(kt?6:3)+"px solid transparent",borderLeft:(yt?3:0)+"px solid transparent",borderRight:(yt?3:0)+"px solid transparent"},...Ne,endGap:700,sheet:Me,showCustomScrollButtons:!yt,onShowTooltip:It=>{qe({x:It.anchor.x,y:It.anchor.y,width:0,height:0},It.display,It.placement)},onCloseTooltip:()=>Fe()})})),rt&&kt&&(an=rn),rt&&kt&&!At&&(an=s.jsxs(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[an,s.jsx(Ae,{sx:{borderTop:`solid ${on} 1px`,flex:"1"}})]})),an&&At)qt=s.jsx(H5,{position:H.getView().getTabRatio()/10+"%",onPositionChange:({percent:It})=>{H.getView().setTabRatio(Math.round(10*It))},minBefore:"200px",minAfter:"180px",resizerProps:{style:{minWidth:"11px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${J.palette.text.icon??J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",borderTop:`solid ${on} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:an,elementAfter:tn});else if(At)qt=tn;else{if(!an)return s.jsx(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:_t?null:`solid ${on} 1px`}});qt=an}return s.jsx(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:qt})},[Me,ee,H,Ye,ct,W,rt,At,_t,kt]),[zn,$n]=u.useState(null),hn=u.useMemo(()=>({placement:"right-start",...zn?.popperProps}),[zn?.popperProps]),{reference:go,component:bo}=pa({label:"contextMenu",popperProps:hn,anchor:zn?.anchor??{getBoundingClientRect:()=>new DOMRect(zn?.clientX||0,zn?.clientY||0)},onClose:()=>$n(null),createPopupPanel:zn?.createPopupPanel});u.useEffect(()=>{zn?go.open(0):go.close(0)},[zn]);const Fo=Te((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),zn&&zn.anchor===Ne.currentTarget?$n(null):$n({anchor:Ne.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:qt=>{const{floatReference:tn}=qt;return P({filter:yt,commands:W,floatReference:tn,sx:{...C}})}})},[P,C,W,H,zn]),tr=Te(Ne=>{if(Ne.originalEvent?.isDefaultPrevented())return!0;Ne.originalEvent?.preventDefault(),$n({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:yt=>{const{floatReference:qt}=yt;return k({commands:W,workbook:H,floatReference:qt,sx:{...C}})}})},[k,C,W,H]),Tr=Te((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),$n({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:qt=>{const{floatReference:tn}=qt;return O({movable:yt,commands:W,floatReference:tn,sx:{...C}})}})},[O,C,W]);u.useMemo(()=>{const Ne=[new Tt("openContextMenu",()=>ne.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[$e.Shift]},{key:"ContextMenu"}]})];W.addCommands(Ne,!0)},[W]),u.useEffect(()=>{W.getCommand("openContextMenu").updateCallback(()=>{const Ne=Me.getSelection().getCoords().cell;ne.current?.getGridElement()?.scrollCellCoordsIntoView(Ne).then(yt=>{requestAnimationFrame(()=>{const qt=Me.getView().getZoomScale()/100,tn=Me.getColumnHeaders().findOffset(Ne.colIndex+1)*qt,an=Me.getRowHeaders().findOffset(Ne.rowIndex+1)*qt,It=ne.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};tr({clientX:tn-It.x-yt.left+6,clientY:an-It.y-yt.top+6})})})})},[Me]);const _r=Te(Ne=>{W?.dispatchToFocusedCommand(Ne)},[W]),ui=Te(()=>{Y.current},[H,Y.current]),Ki=u.useCallback(()=>{Qe("sheet")},[]),pi=u.useCallback(()=>{Qe("formulaBar")},[]),pr=Te(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;return s.jsx(Vu,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(yt?3:0)+"px solid transparent",borderBottom:(yt?3:0)+"px solid transparent",width:yt?"13px":void 0},...Ne,sheet:Me,endGap:700,showCustomScrollButtons:!yt,onShowTooltip:qt=>{qe(qt.anchor,qt.display,"left")},onCloseTooltip:()=>Fe()})},[Me]);u.useEffect(()=>{l&&ne&&ne.current&&ne.current.focus()},[]);const[tt,mt]=u.useState(null),gt=u.useCallback(Ne=>{W?.getCommand("openWorkbook")&&(Ne.type==="dragenter"||Ne.type==="dragover"?Ne.dataTransfer?.types.includes("Files")?Ne.dataTransfer.files[0]?.type?.startsWith("image/")||Ne.dataTransfer.items[0]?.type?.startsWith("image/")||Ne.dataTransfer.types.length===1&&mt("Drop to open"):(Ne.dataTransfer?.types.includes("text/html")||Ne.dataTransfer?.types.includes("text/plain"),Ne.dataTransfer.effectAllowed="none",Ne.dataTransfer.dropEffect="none"):Ne.type==="dragleave"&&mt(null),Ne.preventDefault())},[W]),ut=Te(Ne=>{if(W?.getCommand("openWorkbook")&&(Ne.preventDefault(),Ne.stopPropagation(),mt(null),Ne.dataTransfer.files&&Ne.dataTransfer.files.length>0)){const yt=Ne.dataTransfer.files[0];if(!yt)return;if(yt?.type?.startsWith("image/")){const qt=ne.current?.getGridElement().getViewFromClient(Ne.clientX,Ne.clientY);if(!qt)return;const tn=qt.getRelativePointFromClient(Ne.clientX,Ne.clientY),an=qt.toAbsoluteBounds({...tn,width:0,height:0}),It=qt.getCellCoordsFromClient(Ne.clientX,Ne.clientY);if(!It)return;W?.getCommand("insertImageFromFile")?.execute({file:yt,options:{bounds:{x:an.x,y:an.y}},goto:{range:{...It}}})}else W?.getCommand("openWorkbook")?.execute(yt)}},[W,tt]),vt=u.useMemo(()=>tt?s.jsx(Ae,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:Ne=>Ne.palette.divider,color:Ne=>Ne.palette.primary.dark},children:s.jsx(Tn,{variant:"h4",children:tt})}):null,[tt]),jt=u.useRef(null),Ot=u.useMemo(()=>s.jsx(Wh,{in:!re,nodeRef:jt,timeout:500,classNames:"animating",unmountOnExit:!0,children:I({ref:jt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:re?0:c?.opacity,pointerEvents:re?"none":c?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...z}})}),[re,I,z]),Rt=u.useMemo(()=>b({sx:{marginTop:Ne=>Ne.spacing(.25),marginLeft:Ne=>Ne.spacing(1),marginRight:Ne=>Ne.spacing(1)},workbook:H,sheetElement:ne.current,gridStyle:Ye,onFocus:pi,...v,NamedCollectionEditorProps:{restoreFocus:Ne=>ne.current.focus(Ne),notifier:a,...v?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:W,...v?.NamedCollectionEditorProps?.commandPopupButtonProps}}},ae),[b,v,H,Ye,W,re]),Bt=u.useCallback(Ne=>{const{movable:yt,...qt}=Ne,tn={movable:yt,onContextMenuCapture:On=>{Tr(On,yt)},...qt},an=yt.getContent().getType();let It=null;if(an==="picture")return s.jsx(Jw,{loadingPanel:s.jsx(t0,{transitionDelay:"100",style:{position:"absolute"},sx:{border:On=>`solid 1px ${On.palette.action.active}`}}),picture:yt.getContent(),description:yt.getDescription()??yt?.getName(),...tn});if(an==="chart"){const On={...tn,chart:yt.getContent()};return s.jsx(CF,{...On})}if(It=`Float of type '${an}'.`,typeof It=="string"){const On={...tn,description:It};It=s.jsx(fF,{...On})}return s.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:It},yt.getUUID())},[]),Lt=u.useMemo(()=>D({style:u5,onFocus:Ki,notifier:a,gridStyle:Ye,headersStyle:Ze,sheet:Me,commands:W,onSheetContextMenu:tr,onViewportChange:Ne=>{Re(Ne)},showScrollbars:!1,viewportComponent:ye,onRepeatCommandChange:m,onElementLoad:we,onShowColumnTooltip:Ne=>{qe(Ne.anchor,Ne.display,pp)},onShowRowTooltip:Ne=>{qe(Ne.anchor,Ne.display,V5)},onShowTooltip:Ne=>{qe({x:Ne.anchor.x,y:Ne.anchor.y,width:0,height:0},Ne.display,Ne.placement)},onCloseTooltip:()=>Fe(),renderMovable:Bt,...L,cellRenderProps:{onFilterButtonMouseDown:(Ne,yt)=>{L?.cellRenderProps?.onFilterButtonMouseDown(Ne,yt),Fo(Ne,yt)},...L?.cellRenderProps}},ne),[D,W,L,Me,Ye,a,m]),mn=u.useMemo(()=>{if(!ue)return null;const Ne=!Ve.isStructureAllowed();return s.jsx(Hf,{sx:{marginBottom:yt=>yt.spacing(.5),border:yt=>`solid ${Ne?yt.palette.action.disabled:ht(yt.palette.divider,.2)} 1px`,borderRadius:yt=>`${yt.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{De(!1),requestAnimationFrame(()=>{ne.current.focus()})},readOnly:Ne,commands:W,ref:Le,scripts:H.getScripts()})},[ue,W,H,a,Ve]),Fn=u.useMemo(()=>{const Ne=s.jsx(M3,{style:{...u5,marginRight:mn&&kt?"0px":"6px"},viewport:Se,touchElement:ne.current?.getGridElement()?.stage,onScrollViewport:It=>{ne.current?.getGridElement()?.scrollTo(It)},showHorizontalScrollbar:At||rt,showVerticalScrollbar:Vt,createHorizontalScrollbar:fn,createVerticalScrollbar:pr,children:Lt});let yt=Ne;kt||(yt=s.jsxs(s.Fragment,{children:[Ne,rn]}));let qt=null,tn=4,an=13;return kt?qt="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":(qt="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",tn=13,an=4),s.jsx(H5,{fixedPane:"after",position:"40%",minAfter:kt?"280px":"120px",splitDirection:kt?"row":"column",style:u5,ref:pn,resizerProps:{className:"styled-resizer",style:{minWidth:kt?"6px":void 0,minHeight:kt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${tn}' height='${an}' viewBox='0 0 ${tn} ${an}' version='1.1' fill='${J.palette.text.icon??J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${qt}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:kt?"left center":"top center"}},elementBefore:yt,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:mn,paneAfterProps:{style:{marginLeft:kt?"0px":"4px",marginRight:kt?"8px":"4px"}}})},[At,rt,fn,Vt,Se,mn,Lt,rn,J,kt]),wn=u.useMemo(()=>({boxSizing:"border-box",background:Ne=>Ne.palette.mode!=="dark"?Ye.header.fill:Ne.palette.background.paper,"& *":{...Z3(J),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${on} 1px`},...c}),[c,Ye]);return s.jsxs(Mi,{className:Eo("sheetxl-workbook","_sheetxl-workbook_1j3lu_5",{"Mui-focusVisible":oe},"_sheetxl-theme_4opcr_2",p),sx:wn,style:d,square:!1,...U,ref:Y,onFocus:Ne=>{ge(!0),ui(),h?.(Ne)},onBlur:Ne=>{ge(!1),f?.(Ne)},onKeyDown:Ne=>{_r(Ne),g?.(Ne)},onDragStart:Ne=>{if(Ne.target.src){const yt=new Image;yt.src=Ne.target.src,Ne.dataTransfer.setDragImage(yt,1,1)}},onDragEnter:gt,onDragLeave:gt,onDragOver:gt,onDrop:ut,children:[s.jsxs("div",{className:Eo(ZS),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:re?void 0:0,"--sxl-app-color-high-contrast":J.palette.primary.main,"--sxl-app-color-primary":J.palette.primary.main,"--sxl-app-color-primary-dark":J.palette.primary.dark,"--sxl-app-color-primary-light":J.palette.primary.light,"--sxl-app-color-info":J.palette.info.main,"--sxl-app-color-info-dark":J.palette.info.dark,"--sxl-app-color-info-light":J.palette.info.light,"--sxl-app-color-secondary":J.palette.secondary.main,"--sxl-app-color-secondary-dark":J.palette.secondary.dark,"--sxl-app-color-secondary-light":J.palette.secondary.light,"--sxl-app-color-success":J.palette.success.main,"--sxl-app-color-success-dark":J.palette.success.dark,"--sxl-app-color-success-light":J.palette.success.light,"--sxl-app-color-warning":J.palette.warning.main,"--sxl-app-color-warning-dark":J.palette.warning.dark,"--sxl-app-color-warning-light":J.palette.warning.light,"--sxl-app-color-error":J.palette.error.main,"--sxl-app-color-error-dark":J.palette.error.dark,"--sxl-app-color-error-light":J.palette.error.light,"--sxl-app-color-text":J.palette.text.primary,"--sxl-app-color-text-secondary":J.palette.text.secondary,"--sxl-app-color-text-disabled":J.palette.text.disabled,"--sxl-app-color-background":J.palette.background.paper,"--sxl-app-color-button-surface":J.palette.grey[600],"--sxl-app-color-shadow":J.palette.action.focus,"--sxl-app-color-grey":J.palette.grey[500],"--sxl-app-filter-dark-invert":Ye.body.darkMode&&!V?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Ye.body.darkMode?`linear-gradient(${ht("#fff",Hn(5))}, ${ht("#fff",Hn(5))})`:void 0},children:[_n,zt?Rt:null,s.jsx(Ae,{sx:{marginBottom:Ne=>Ne.spacing(.75)}}),Fn,Yt,s.jsx(di,{arrow:!0,disableInteractive:!0,open:q,title:s.jsx(Tn,{variant:"subtitle2",component:"div",children:te}),placement:pe,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:Q,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:q?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(fe.x,fe.y,fe.width,fe.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:s.jsx(Ae,{})}),bo,vt]}),Ot]})}));Kf.displayName="WorkbookElement";const EN=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>ht(n.palette.background.paper,.6),borderRadius:n=>`${n.shape.borderRadius}px`,border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`,"&.Mui-disabled":{border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`},"&:focus-within:not([disabled])":{backgroundColor:n=>n.palette.background.paper},"&:hover:not([disabled])":{border:n=>`solid ${e?n.palette.text?.primary:n.palette.divider} 1px`,backgroundColor:null},"&.Mui-focusVisible":{outline:n=>`solid ${n.palette.primary.main} 1px !important`,border:n=>`1px solid ${n.palette?.primary?.main} !important`}},Gf=u.memo(u.forwardRef((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:a,readOnly:l=!1,hidden:c,...d}=e,[p,h]=u.useState(!1),[f,g]=u.useState(!1),[m,y]=u.useState(r??""),[x,v]=u.useState(""),[b,{width:w}]=n1(),[E,{width:S}]=n1(),[R,_]=u.useState(!1),A=u.useRef(null),T=u.useRef(null),j=ir(t,()=>({requestWorkbookTitle:(C=null,k)=>{T.current={onAccept:C,requestReason:k?.requestReason},k?.selectAll&&A.current?.select(),A.current?.focus(k)},focus:C=>{A.current?.focus(C)}}),[]);return u.useLayoutEffect(()=>{_(r!==m),v(r),y(r)},[r]),u.useEffect(()=>{R&&w!==0&&Jt.debounce(()=>{_(!1)},300)()},[R,w]),u.useEffect(()=>{g(m&&!kl.isValidWindowsFilename(m))},[m]),c?null:s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:R?"0":"1",transition:R?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:N2([j,E,t]),...d,children:s.jsx(br,{label:T.current?.requestReason??"Workbook Name",children:s.jsxs(Ae,{className:Eo({"Mui-focusVisible":p}),sx:{visibility:w===0?"hidden":"visible",display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:"12px",paddingRight:"12px",marginLeft:"2px",marginRight:"2px",paddingTop:"2px",paddingBottom:"1px",...EN(!0,l),...n},children:[l?s.jsx(Tn,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:m!==x?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:C=>f?C.palette.error.dark:void 0},children:r??i}):s.jsx(Ul,{sx:{width:`${Math.min(w+3,Math.max(S,j.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:C=>f?C.palette.error.dark:void 0,fontStyle:m!==x?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:l,spellCheck:!1,placeholder:i,onFocus:C=>{h(!0),C.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:A},onBlur:()=>{h(!1),f?y(x):(m!==x&&(a?.(m),m&&T.current?.onAccept?.(m,"blur")),T.current=null)},onChange:C=>{if(C.target.value.length>kl.MAX_WORKBOOK_NAME_SIZE)return C.stopPropagation(),void C.preventDefault();y(C.target.value)},onKeyDown:C=>{(kl.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(C.key)||C.target?.value.length>kl.MAX_WORKBOOK_NAME_SIZE)&&C.preventDefault(),C.which===nn.Enter||C.which===nn.Tab?(f?y(x):(a?.(m),m&&(T.current?.onAccept?.(m,"keydown"),T.current=null)),C.stopPropagation(),C.preventDefault(),o?.focus()):C.which===nn.Escape&&(m===x?o?.focus():(y(x),setTimeout(()=>{C.target?.select()},0)),T.current=null,C.stopPropagation(),C.preventDefault())},value:m}),s.jsx(Ae,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:m!==x?"italic":void 0,fontFamily:C=>C.typography.fontFamily,letterSpacing:"0.00938em"},children:m||i})]})})})}));Gf.displayName="WorkbookTitle";const MN=u.lazy(()=>Promise.resolve().then(()=>require("./CvESC6HiL0-peppq.cjs")).then(e=>e.DHvIGSNOpEkZS0_).then(e=>e.E)),EC=u.memo(u.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,...a}=e;return i&&$.LicenseManager.setLicenseKey(i),s.jsx(s.Fragment,{children:s.jsx(MN,{...a,className:r,sx:n,style:o,ref:t})})}));EC.displayName="StandaloneWorkbook";const TN=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],handler:null,isDefault:!0},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:null},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:null}],_N=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",handler:null,isDefault:!0},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:null},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:null}];class MC{constructor(t=TN,n=_N){this._readFormatType=[],this._writeFormatType=[],this._readFormatType=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}getReadFormats(){return this._readFormatType}getWriteFormats(){return this._writeFormatType}getAllReadFormatTypeAsString(){const t=[],n=this._readFormatType;for(let o=0;o<n.length;o++)for(let r=0;r<n[o].exts.length;r++)t.push("."+n[o].exts[r]);return t}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");try{return(await Promise.resolve().then(()=>ny)).WorkbookIO.writeFile(t,n,o)}catch(r){throw new Error("Unable to load io library",{cause:r})}}async read(t,n){let o,r;const i=await n?.showBusy?.(`Opening${t.name?` ${t.name}`:""}...`);try{r=await Promise.resolve().then(()=>ny)}catch(a){throw a}try{return await r.WorkbookIO.read({...t,async onStart(a){await t?.onStart?.(a),o=await n?.showBusy?.(`Opening '${a}'...`)}})}catch(a){throw i?.(),o?.(),a}finally{i?.(),o?.()}}}const TC=new MC;(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const _C=Object.freeze(Object.defineProperty({__proto__:null,AppearanceCommandButton:oC,AutoColorPosition:_s,BorderCommandButton:OS,BorderPopupButton:PS,BorderStyleButton:IS,ClearCommandButton:Sf,ColorButton:F2,ColorCommandButton:Gs,ColorPanel:RS,ColorPanelType:_S,ColorPopupButton:wf,DeleteCellsCommandButton:kf,DocThemeCommandButton:nC,FillCommandButton:BS,FilterColumnMenu:Af,FilterCommandButton:VB,Filters:cC,FindCommandButton:AS,FontFamilyCommandButton:VS,FontSizeCommandButton:zS,FormulaBar:Lf,FreezeCommandButton:LS,HelpCommandButton:rC,HorizontalAlignCommandButton:$v,InsertCellsCommandButton:Cf,InsertImageCommandButton:jf,InsertScriptCommandButton:bC,LicenseManager:$.LicenseManager,MergeCommandButton:DS,NamedCollectionEditor:Df,NamedInput:Rf,NumberFormatCommandButton:FS,PasteCommandButton:Tf,PresetCellStylesCommandButton:GS,PresetTableStylesCommandButton:JS,QuickFormulaSumCommandPopupButton:qB,RangeInput:If,RunScriptCommandButton:Wf,ScriptEditorToolbar:Vf,ScriptWorkspace:Hf,SheetTab:zf,SheetTabMenu:Ff,SheetZoomScale:Pf,SheetsAllMenu:Bf,SortFilterCommandButton:Ef,StandaloneWorkbook:EC,StatusBar:Of,StyledStrokeIcon:$h,TableStyleCanvasPreview:XS,TableStyleOptionsPanel:YS,TableStylePreview:_f,TextEffectsCommandButton:HS,TextOverflowCommandButton:Hv,TextRotateCommandButton:Wv,ThemeMode:fC,ThemeSelectButton:QS,ThemeSelectPanel:eC,ThemeSelectPopupButton:tC,UnderlineCommandButton:WS,UndoRedoCommandButton:Mf,VerticalAlignCommandButton:Vv,ViewGridLinesCommandButton:NS,ViewHeadingsCommandButton:US,WalkingCopyCommandButton:B2,WorkbookContextMenu:qf,WorkbookElement:Kf,WorkbookIO:TC,WorkbookStrip:Uf,WorkbookTitle:Gf,WorkbookViewCommandButton:qS,_WorkbookIO:MC,createGridStyleFromMUITheme:Uh,defaultNewWorkbook:CC,useResolvedThemeMode:mC,useWorkbookCommands:SC},Symbol.toStringTag,{value:"Module"})),qh=new Map,jC=(e,t={})=>{const{message:n,icon:o,customElement:r,hide:i=!1,className:a,cssVars:l={}}=t;if(i)return;const c=typeof e=="string"?document.querySelector(e):e;if(!c)return void console.warn(`Element with selector "${e}" not found for panel.`);let d;if(r1(e),r)d=r;else{d=document.createElement("div"),d.className=a?`sheetxl-panel ${a}`:"sheetxl-panel";const p=Object.entries(l).map(([g,m])=>`--sheetxl-panel-${g}: ${m};`).join(" "),h=`
|
|
224
|
+
@keyframes sheetxl-spin {
|
|
225
|
+
from { transform: rotate(0deg); }
|
|
226
|
+
to { transform: rotate(360deg); }
|
|
227
|
+
}
|
|
228
|
+
.sheetxl-panel {
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0;
|
|
231
|
+
left: 0;
|
|
232
|
+
right: 0;
|
|
233
|
+
bottom: 0;
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
align-items: center;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
backdrop-filter: blur(4px);
|
|
239
|
+
border-radius: 4px;
|
|
240
|
+
z-index: 9999;
|
|
241
|
+
gap: 16px;
|
|
242
|
+
|
|
243
|
+
/* CSS variables with fallbacks */
|
|
244
|
+
color: var(--sheetxl-panel-color, #333);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.sheetxl-panel.dark {
|
|
248
|
+
color: var(--sheetxl-panel-color, #e0e0e0);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.sheetxl-icon {
|
|
252
|
+
width: 24px;
|
|
253
|
+
height: 24px;
|
|
254
|
+
color: var(--sheetxl-panel-icon-color, #1976d2);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.sheetxl-panel.loading {
|
|
258
|
+
/* Loading panel defaults */
|
|
259
|
+
color: var(--sheetxl-panel-color, #333);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.sheetxl-panel.loading.dark {
|
|
263
|
+
color: var(--sheetxl-panel-color, #e0e0e0);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sheetxl-panel.error {
|
|
267
|
+
/* Error panel defaults */
|
|
268
|
+
color: var(--sheetxl-panel-color, #d32f2f);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.sheetxl-panel.error.dark {
|
|
272
|
+
color: var(--sheetxl-panel-color, #f44336);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.sheetxl-panel.error .sheetxl-icon {
|
|
276
|
+
color: var(--sheetxl-panel-icon-color, #d32f2f);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.sheetxl-panel.error.dark .sheetxl-icon {
|
|
280
|
+
color: var(--sheetxl-panel-icon-color, #f44336);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.sheetxl-message {
|
|
284
|
+
font-size: 1.1em;
|
|
285
|
+
font-weight: 500;
|
|
286
|
+
letter-spacing: 0.1px;
|
|
287
|
+
text-align: center;
|
|
288
|
+
margin: 0;
|
|
289
|
+
}
|
|
290
|
+
`,f=document.createElement("style");if(f.textContent=h,d.appendChild(f),o){const g=document.createElement("div");g.className="sheetxl-icon",typeof o=="string"?g.innerHTML=o:o instanceof HTMLElement&&g.appendChild(o),d.appendChild(g)}if(n){const g=document.createElement("div");g.className="sheetxl-message",g.textContent=n,d.appendChild(g)}p&&(d.style.cssText+=p),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&d.classList.add("dark")}window.getComputedStyle(c).position==="static"&&(c.style.position="relative"),c.appendChild(d),qh.set(e,d)},r1=e=>{const t=qh.get(e);t&&t.parentNode&&(t.parentNode.removeChild(t),qh.delete(e))},RC=(e,t={})=>{jC(e,{message:"Loading SheetXL...",icon:`
|
|
291
|
+
<svg width="24" height="24" viewBox="0 0 24 24" style="animation: sheetxl-spin 1s linear infinite;">
|
|
292
|
+
<circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="31.416" stroke-dashoffset="31.416">
|
|
293
|
+
<animate attributeName="stroke-dasharray" dur="2s" values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/>
|
|
294
|
+
<animate attributeName="stroke-dashoffset" dur="2s" values="0;-15.708;-31.416" repeatCount="indefinite"/>
|
|
295
|
+
</circle>
|
|
296
|
+
</svg>
|
|
297
|
+
`,className:"loading",...t})},IC=(e,t={})=>{jC(e,{message:"Failed to load SheetXL",icon:`
|
|
298
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
|
|
299
|
+
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/>
|
|
300
|
+
</svg>
|
|
301
|
+
`,className:"error",...t})},Id=new Map;let Rs;const dy=async e=>Rs||(Rs=await(async(t,n)=>{try{if(n?.selector&&RC(n?.selector,n?.loading),!t){const{resolveDependencies:o}=await Promise.resolve().then(()=>require("./DKit140jXAUUSf-_.cjs"));t=await o(n?.dependencies)}n?.licenseKey&&await t.StudioMUI.LicenseManager.setLicenseKey(n.licenseKey),n?.selector&&r1(n?.selector)}catch(o){throw n?.selector&&(r1(n.selector),IC(n.selector,{message:`Failed to initialize: ${o instanceof Error?o.message:String(o)}`,...n?.error})),console.error("Failed to initialize:",o),o}return t})({React:u,ReactJSXTransform:HC,ReactDOM:am,ReactDOMClient:am,StudioMUI:_C},typeof e=="object"?e:void 0),Rs),jN={attachWorkbook:async(e,t)=>(Rs||(Rs=await dy(e)),(async(n,o,r,i)=>{if(!o)throw new Error("Either a 'selector' or a 'InitializationOptions' must be provided to attach.");const a=typeof o=="string"?o:o.selector||"#sheetxl",l=typeof a=="string"?document.querySelector(a):a;if(!l)throw new Error(`Element with selector "${a}" not found.`);if(Id.has(a)&&Id.get(a)!==null)throw new Error(`SheetXL already attached to "${a}". Detach first if you want to re-attach.`);const c=typeof o=="object"?o:null;RC(a,c?.loading);try{r1(a);const d=n.ReactDOMClient.createRoot(l),p=n.React.createRef(),h=n.StudioMUI[r];let f=null;await new Promise(x=>{d.render(n.React.createElement(h,{...i,ref:v=>{console.log("SheetXL: Component instance ready:",v),v&&(f=v,x())}}))});const m={runtime:n,root:d};Id.set(a,m);let y=!1;return new Proxy(f,{get(x,v,b){if(y)throw new Error(`SheetXL instance attached to "${a}" has been detached. Cannot access properties.`);return v==="update"?w=>{const E={...i,...w,ref:p};return d.render(n.React.createElement(h,E)),Promise.resolve()}:v==="detach"?()=>(Id.delete(a),d.unmount(),y=!0,Promise.resolve()):Reflect.get(x,v,b)}})}catch(d){throw r1(a),IC(a,{message:`Failed to initialize: ${d instanceof Error?d.message:String(d)}`,...c?.error}),console.error("Failed to initialize:",d),d}})(Rs,e,"StandaloneWorkbook",t)),async initialize(e){await dy(e)}};exports.$R=TC,exports.Ax=gv,exports.BR=fC,exports.Box=Ae,exports.CR=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 15.678266,1.1001645 h 1.784278 v 5.6910421 l 4.680073,-2.8464352 0.888483,1.617916 -4.687386,2.8500914 4.687386,2.8500922 -0.886654,1.617915 -4.681902,-2.846435 v 5.691042 h -1.784278 v -5.691042 l -4.680073,2.846435 -0.888484,-1.617915 4.687387,-2.8500922 -4.687387,-2.8500914 0.886656,-1.617916 4.681901,2.8464352 z M 1.0310983,15.725393 h 7.3126141 v 7.312614 H 1.0310983 Z"})}),exports.Ce=ze,exports.Checkbox=Na,exports.D9=K3,exports.DR=()=>{const{showModal:e}=dd();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(i=>{const a=e(EL,{defaultOption:n,cancelOption:o,...r,onOption(l){r?.onOption?.(l,l===o,l===n),i({input:"",option:l})},onInputOption(l,c){r?.onInputOption?.(l,c),i({input:l,option:c})},onDone:()=>{r?.onDone?.(),a.hide()}})})}},exports.DialogContent=mx,exports.Dn=Rn,exports.Dt=Tt,exports.E0=qi,exports.EM=wC,exports.ER=(e,t)=>{let n=Q5({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:ht(n.palette.text.secondary,.75),icon:e?ht(n.palette.text.secondary,.7):ht(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},r=o;return t&&(r=cr(o,t)),Q5(r)},exports.FR=oC,exports.FormControl=g1,exports.FormControlLabel=$a,exports.GM=Kf,exports.Gb=Ob,exports.Gf=bf,exports.H1=Hc,exports.HR=mC,exports.IR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.IconButton=Mr,exports.InputAdornment=yx,exports.InputLabel=xx,exports.Ja=Us,exports.Jn=Jn,exports.Ki=rl,exports.LC=ew,exports.LR=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),s.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),s.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),s.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.Le=He,exports.Li=Ja,exports.Lw=Jb,exports.MR=function(){const[e,t]=u.useState(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=dd({disableAutoDestroy:!0});return(a,l,c,d)=>new Promise((p,h)=>{const f={...c,onHide:()=>{const x=e.get(a);c?.onHide?.(),t(v=>(v.delete(a),v)),i(x.id)},onDone:x=>{const v=e.get(a);t(b=>(b.delete(a),b)),c?.onDone?.(x),v&&v.id&&!d?.disableAutoDestroy&&r(v.id)},onShown:x=>{t(v=>{const b=v.get(a);return v.set(a,{...b,element:x}),v}),p(x)},open:!0},g=e.get(a);if(g)return o(g.id,f),void p(g.element);if(!l)return void h("invalid function");const m=u.lazy(l),y=n(m,f,{destroyOnClose:!d?.disableAutoDestroy});t(x=>(x.set(a,{id:y.id,element:null}),x))})},exports.MenuItem=y1,exports.N0=pa,exports.NR=rC,exports.Nu=dd,exports.Paper=Mi,exports.Qt=Jt,exports.RR=()=>{const{showModal:e}=dd();return t=>new Promise(n=>{const o=e(kL,{...t,onOption(r){t?.onOption?.(r,r===t.cancelOption,r===t.defaultOption),n(r)},onDone:()=>{t?.onDone?.(),o.hide()}})})},exports.Re=$e,exports.SR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 17.055601,3.649384 c 0.231,-0.4871429 0.559428,-0.7307143 0.983714,-0.7307143 0.389714,0 0.691428,0.1854286 0.900428,0.5547143 0.210572,0.3708571 0.315858,0.8752857 0.315858,1.518 0,0.6961429 -0.122572,1.254 -0.369286,1.6767143 -0.245143,0.4211429 -0.573572,0.6317143 -0.985286,0.6317143 -0.372428,0 -0.653714,-0.1964286 -0.843857,-0.5877143 h -0.01257 V 7.1992412 H 16.112743 V 1.0140983 h 0.931858 V 3.649384 h 0.01257 z m -0.02514,1.7285714 a 1.2257143,1.2257143 0 0 0 0.168143,0.6694286 c 0.111568,0.1775714 0.256139,0.2655714 0.430568,0.2655714 0.213714,0 0.377143,-0.1131428 0.493429,-0.3394285 0.117857,-0.2278572 0.177571,-0.55 0.177571,-0.9664286 0,-0.3457143 -0.055,-0.6128572 -0.163429,-0.8077143 -0.105285,-0.1948572 -0.257714,-0.2938572 -0.455714,-0.2938572 -0.188571,0 -0.344143,0.097429 -0.466714,0.2907143 a 1.3922857,1.3922857 0 0 0 -0.183857,0.7542857 z m -3.501146,1.8118572 h 1.012 V 4.5026697 c 0,-1.276 -0.495,-1.9171428 -1.483428,-1.9171428 -0.212143,0 -0.447858,0.037714 -0.707143,0.1147143 a 2.2691429,2.2691429 0 0 0 -0.609715,0.2624285 v 1.045 c 0.372429,-0.319 0.765286,-0.4777143 1.178572,-0.4777143 0.410143,0 0.616,0.2451429 0.616,0.737 l -0.942857,0.1618572 c -0.795143,0.1351428 -1.194286,0.638 -1.194286,1.5101428 0,0.4132858 0.09586,0.7432858 0.287571,0.9915715 a 0.95857143,0.95857143 0 0 0 0.796715,0.3692857 c 0.455714,0 0.799857,-0.2514286 1.032428,-0.7542857 h 0.01414 z m 0.0063,-2.1292857 V 5.3638126 A 1.1785714,1.1785714 0 0 1 13.347029,6.0489554 0.57828571,0.57828571 0 0 1 12.855172,6.3160983 0.43371429,0.43371429 0 0 1 12.509458,6.1668126 0.59714286,0.59714286 0 0 1 12.383744,5.7770983 c 0,-0.3488571 0.172857,-0.5515714 0.521714,-0.6112857 l 0.628571,-0.1052857 z"}),s.jsx("path",{className:"styled info",d:"M 5.3013153,11.534813 1.9698867,8.192384 3.0101724,7.1520983 4.5910295,8.7235269 V 6.3506697 A 2.1842857,2.1842857 0 0 1 6.770601,4.1569554 h 3.685 v 1.4221429 h -3.685 A 0.77,0.77 0 0 0 6.0351724,6.3538126 l 0.011,2.3571428 1.4912857,-1.4834285 1.0308572,1.0308571 -3.2685715,3.276429 z"}),s.jsx("path",{d:"m 9.8270295,19.761241 h -1.012 V 19.116955 H 8.8008867 C 8.5683153,19.619812 8.2241724,19.871241 7.7684581,19.871241 A 0.95857143,0.95857143 0 0 1 6.9717438,19.501955 c -0.1917143,-0.248286 -0.2875714,-0.578286 -0.2875714,-0.99 0,-0.873714 0.3991429,-1.376571 1.1942857,-1.511714 l 0.9428572,-0.161857 c 0,-0.491857 -0.2042858,-0.738572 -0.616,-0.738572 -0.4132858,0 -0.8061429,0.160286 -1.1785715,0.479286 v -1.045 c 0.1492857,-0.099 0.352,-0.187 0.6097143,-0.262429 0.2592857,-0.077 0.495,-0.114714 0.7071429,-0.114714 0.99,0 1.4834285,0.639572 1.4834285,1.917143 z m -1.0057142,-1.826 v -0.303286 l -0.6285715,0.106857 c -0.3488571,0.05814 -0.5232857,0.260857 -0.5232857,0.609715 0,0.157142 0.042429,0.287571 0.1257143,0.389714 a 0.43371429,0.43371429 0 0 0 0.3457143,0.149286 0.57828571,0.57828571 0 0 0 0.4902857,-0.267143 c 0.1257143,-0.182286 0.1885714,-0.408572 0.1885714,-0.685143 z m 4.5602857,1.936 c 0.504428,0 0.892571,-0.09114 1.159714,-0.271857 v -1.115715 a 1.4142857,1.4142857 0 0 1 -0.867428,0.325286 0.97271429,0.97271429 0 0 1 -0.785715,-0.337857 c -0.188571,-0.227857 -0.284428,-0.542143 -0.284428,-0.939714 0,-0.408572 0.099,-0.729143 0.297,-0.961715 a 1.012,1.012 0 0 1 0.810857,-0.350428 c 0.304857,0 0.581428,0.108428 0.829714,0.325286 v -1.177 c -0.202714,-0.141429 -0.531143,-0.210572 -0.983714,-0.210572 -0.655286,0 -1.180143,0.22 -1.573,0.663143 -0.391286,0.44 -0.586143,1.040286 -0.586143,1.804 0,0.66 0.182286,1.200571 0.548429,1.618571 0.364571,0.419572 0.843857,0.628572 1.434714,0.628572 z M 1.9698867,13.585527 3.5413152,12.014098 H 17.684172 l 1.571429,1.571429 v 7.857142 l -1.571429,1.571429 H 3.5413152 L 1.9698867,21.442669 Z m 1.5714285,0 v 7.857142 H 17.684172 V 13.585527 Z M 8.255601,10.44267 9.8270295,8.8712412 H 20.827029 l 1.571429,1.5714288 v 7.857142 l -1.571429,1.571429 V 10.44267 Z"})]}),exports.Select=y2,exports.SheetXL=jN,exports.Sm=Nf,exports.Ss=o0,exports.StudioMUI=_C,exports.SvgIcon=Xe,exports.TR=function(e){var t=e.children,n=e.legacy,o=n!==void 0&&n,r=e.suspense,i=r===void 0||r,a=e.fallback,l=a===void 0?null:a,c=u.useReducer(WD,HD),d=c[0],p=c[1],h=u.useCallback(function(v,b){var w=yv(b,UD);v?p({type:Ci.UPDATE,payload:{id:v,props:w}}):console.error(Pp)},[p]),f=u.useCallback(function(v){v?p({type:Ci.HIDE,payload:{id:v}}):console.error(Pp)},[p]),g=u.useCallback(function(v){v?p({type:Ci.DESTROY,payload:{id:v}}):console.error(Pp)},[p]),m=u.useCallback(function(v){v?p({type:Ci.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[p]),y=u.useCallback(function(v,b,w){var E=bv(8);return w&&w.rootId&&(E=w.rootId+"."+E),p({type:Ci.SHOW,payload:{id:E,component:v,props:b,options:w}}),{id:E,hide:function(){return f(E)},destroy:function(){return g(E)},update:function(S){return h(E,S)}}},[p,f,g,h]),x=i?u.Suspense:u.Fragment;return u.createElement(xv.Provider,{value:{state:d,updateModal:h,hideModal:f,destroyModal:g,showModal:y,destroyModalsByRootId:m}},t,u.createElement(x,Object.assign({},i&&{fallback:l}),Object.keys(d).map(function(v){var b,w=d[v],E=w.component,S=w.props,R=w.options,_=function(){var A,T;S!=null&&S.onExited&&S.onExited.apply(S,arguments),S!=null&&(A=S.TransitionProps)!=null&&A.onExited&&(T=S.TransitionProps).onExited.apply(T,arguments),g(v)};return b=o?{onExited:_}:{TransitionProps:Er({},S?.TransitionProps,{onExited:_})},u.createElement(E,Object.assign({},S,{key:v,onClose:function(){R&&R.hideOnClose&&f(v),R&&R.destroyOnClose&&R.hideOnClose&&g(v),S&&S.onClose&&S.onClose.apply(S,arguments)}},R&&!R.destroyOnClose&&b))})))},exports.TT=jS,exports.TextField=S3,exports.Tn=kn,exports.Transition=Bi,exports.Typography=Tn,exports.Un=Hn,exports.Wt=$t,exports.XM=Gf,exports.XT=_f,exports.Xn=Mx,exports.Xo=rr,exports._R=MD,exports._c=qc,exports.alpha=ht,exports.an=nn,exports.bR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 10.48227,13.29653 h 1.7802 L 7.50778,0.81713998 H 5.7837 L 1.0312503,13.29653 h 1.7802 l 1.20102,-3.41449 H 9.20941 Z M 4.5198203,8.47224 6.38758,3.28429 C 6.46388,3.08 6.53125,2.79041 6.58962,2.41327 h 0.0404 c 0.0696,0.41306 0.13469,0.70489 0.19306,0.87102 l 1.88571,5.18795 z"}),s.jsx("path",{className:"styled info",d:"M 11.02105,18.09612 C 10.34084,17.97041 9.70105,17.68306 9.17798,17.22061 7.82207,16.02408 7.4786,14.08 8.34064,12.49286 l -1.21,-0.65776 c -1.16959,2.15286 -0.7049,4.79061 1.13592,6.41592 0.77449,0.68245 1.73755,1.09551 2.75224,1.23245 v 0.91816 l 2.40653,-1.67918 -2.40428,-1.67918 z"}),s.jsx("path",{d:"m 22.27023,17.16 c -0.50735,-0.54551 -1.18531,-0.86653 -2.03388,-0.96306 v -0.0314 c 0.68245,-0.22 1.21898,-0.5949 1.60735,-1.1202 0.38837,-0.52531 0.58367,-1.13368 0.58367,-1.82062 0,-0.86428 -0.32775,-1.5602 -0.98326,-2.08326 -0.65551,-0.52306 -1.53102,-0.78572 -2.62653,-0.78572 h -3.66592 v 12.47715 h 3.76245 c 1.20326,0 2.19102,-0.33225 2.96102,-0.99449 0.77,-0.66225 1.15612,-1.52878 1.15612,-2.60408 0,-0.83735 -0.25367,-1.52878 -0.76102,-2.07429 z m -5.50674,-5.39449 h 1.61184 c 1.56919,0 2.35265,0.58816 2.35265,1.76449 0,0.67122 -0.22224,1.19653 -0.66449,1.57592 -0.44224,0.37939 -1.0551,0.56796 -1.83183,0.56796 h -1.46592 z m 3.88817,9.07612 C 20.19145,21.23 19.54043,21.42531 18.6986,21.42531 h -1.93286 v -4.34837 h 1.66796 c 1.93959,0 2.90714,0.71612 2.90714,2.14388 0,0.69142 -0.23122,1.23245 -0.68918,1.62081 z"})]}),exports.capitalize=xt,exports.clsx=Dt,exports.composeClasses=Pn,exports.createSvgIcon=Gn,exports.d5=N2,exports.darken=Il,exports.dr=br,exports.duration=Zy,exports.ek=iw,exports.en=Qt,exports.fR=e=>s.jsx(Xe,{...e,children:s.jsx("path",{d:"m 21.230627,10.984379 c -0.103549,0.265939 -0.204749,0.531861 -0.308302,0.80018 -0.244758,0.640136 -0.491882,1.277905 -0.736619,1.918041 -0.296532,0.77195 -0.595423,1.546223 -0.891972,2.31813 -0.256524,0.666043 -0.513056,1.332042 -0.769584,2.000408 -0.122381,0.320068 -0.244757,0.640136 -0.369488,0.960183 -0.0071,0.01647 -0.01412,0.03295 -0.01883,0.04942 0.0306,-0.07531 0.06355,-0.15062 0.09414,-0.22593 -0.05884,0.138855 -0.129439,0.273001 -0.218868,0.393024 0.04942,-0.06354 0.09885,-0.127085 0.148266,-0.190629 -0.05884,0.07531 -0.122381,0.141204 -0.197691,0.200041 0.06354,-0.04942 0.127084,-0.09885 0.190629,-0.148266 -0.05648,0.04001 -0.112965,0.07531 -0.17651,0.103549 0.07531,-0.0306 0.150621,-0.06355 0.225931,-0.09414 -0.08002,0.03295 -0.160037,0.05413 -0.244758,0.06825 0.08237,-0.01177 0.167093,-0.02353 0.249466,-0.03295 -0.17651,0.02354 -0.360077,0.01177 -0.536596,0.01177 H 16.596651 12.981767 8.5974282 4.7848441 c -0.6071714,0 -1.2143859,0.0047 -1.8239241,0 -0.037655,0 -0.07531,-0.0024 -0.115319,-0.0047 0.082372,0.01177 0.1670935,0.02353 0.2494657,0.03295 -0.070602,-0.0094 -0.1388548,-0.02824 -0.204749,-0.05177 0.07531,0.03059 0.1506203,0.06354 0.2259303,0.09414 -0.063545,-0.02824 -0.1247306,-0.06119 -0.1812132,-0.1012 0.063544,0.04942 0.1270848,0.09885 0.1906293,0.148266 -0.063544,-0.04942 -0.120027,-0.105903 -0.1694477,-0.169447 0.080018,0.138854 0.1623858,0.277705 0.2424039,0.416559 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023534,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063544,-0.216514 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.22593 0.1529742,-0.338895 0.2777048,-0.689539 0.4094974,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366189,-1.915717 0.2965322,-0.771949 0.593056,-1.546223 0.8919727,-2.31813 0.2565232,-0.670733 0.5154222,-1.3391 0.7719499,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765505,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.225931 0.058836,-0.131793 0.1270845,-0.256524 0.2141645,-0.371843 -0.049421,0.06354 -0.098846,0.127085 -0.1482661,0.190629 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223576 -0.063544,0.04942 -0.1270845,0.09885 -0.190629,0.148266 0.070602,-0.05413 0.1435581,-0.09649 0.2259303,-0.134146 -0.07531,0.03059 -0.1506203,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670939,0.02353 -0.2494658,0.03295 0.1718016,-0.02118 0.3506609,-0.0094 0.5224799,-0.0094 h 1.1014247 3.6642876 4.441143 3.777253 c 0.569517,0 1.139076,-0.0024 1.708592,0 0.09414,0 0.19063,0.0024 0.284768,0.01412 -0.08237,-0.01177 -0.167094,-0.02353 -0.249466,-0.03295 0.06119,0.0094 0.122381,0.02353 0.178859,0.04472 -0.07531,-0.03059 -0.15062,-0.06354 -0.22593,-0.09414 0.0353,0.01412 0.06589,0.03295 0.09649,0.05413 -0.06354,-0.04942 -0.127084,-0.09885 -0.190629,-0.148267 0.01883,0.01647 0.0353,0.03059 0.04942,0.04942 -0.04942,-0.06354 -0.09885,-0.127085 -0.148266,-0.190629 0.01412,0.01883 0.02589,0.04001 0.03765,0.06354 -0.03059,-0.07531 -0.06354,-0.15062 -0.09414,-0.22593 0.01177,0.03295 0.02118,0.06354 0.02589,0.09885 -0.01177,-0.08237 -0.02353,-0.167094 -0.03295,-0.249466 0.0024,0.04001 0.0024,0.08002 -0.0024,0.122381 0.01177,-0.08237 0.02353,-0.167094 0.03295,-0.249466 -0.01647,0.112965 -0.05177,0.221223 -0.09414,0.32713 0.03059,-0.07531 0.06354,-0.15062 0.09414,-0.22593 -0.0047,0.01412 -0.01177,0.02589 -0.01647,0.04001 -0.06825,0.108258 -0.105904,0.223577 -0.110612,0.350661 -0.02824,0.124731 -0.02353,0.249466 0.01647,0.376551 0.06119,0.218868 0.228284,0.454227 0.433011,0.562459 0.218868,0.115319 0.482458,0.174155 0.72487,0.09414 0.216515,-0.0706 0.468343,-0.214164 0.562459,-0.433011 0.07296,-0.171802 0.162386,-0.348312 0.197691,-0.534229 0.04707,-0.254169 0.05884,-0.449493 0.0071,-0.698963 C 23.085384,10.14653 22.838276,9.83117 22.534673,9.68055 22.233432,9.527576 21.908652,9.485213 21.572124,9.482859 h -0.400086 -2.167511 -3.348932 -3.68077 -3.2453915 -1.96512 c -0.1341464,0 -0.270647,-0.0047 -0.4047895,0.0094 -0.3341874,0.03765 -0.6542509,0.115319 -0.9366854,0.310656 -0.2918244,0.200041 -0.5295376,0.449494 -0.7083882,0.757792 -0.094138,0.160036 -0.1600361,0.336541 -0.2282842,0.508321 -0.2777051,0.724871 -0.5577682,1.449741 -0.8354688,2.172245 -0.4330112,1.127284 -0.866066,2.254612 -1.3014443,3.381896 -0.2894748,0.750734 -0.5789408,1.503835 -0.8660659,2.254612 -0.014121,0.03766 -0.028241,0.07531 -0.044717,0.112965 0.030595,-0.07531 0.063544,-0.15062 0.094138,-0.22593 -0.1200271,0.263585 -0.2000409,0.47071 -0.2118109,0.762525 -0.00471,0.120027 0.014121,0.24005 0.035302,0.355369 0.040009,0.195337 0.1412041,0.353015 0.2659393,0.508322 0.2165145,0.270647 0.5765741,0.491882 0.9178362,0.557768 0.1506203,0.02824 0.3012406,0.04707 0.4542277,0.04707 h 0.5106883 2.3134399 3.3748389 3.6501724 3.139484 1.840407 c 0.256523,0 0.513055,-0.0024 0.764849,-0.07531 0.30124,-0.08708 0.578941,-0.249466 0.800181,-0.473034 0.263585,-0.263585 0.418913,-0.578941 0.557768,-0.920203 0.01883,-0.04942 0.03765,-0.09885 0.05648,-0.148266 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.430688,-1.117903 0.859008,-2.235763 1.289696,-3.353666 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.01412,-0.03766 0.02824,-0.07296 0.04236,-0.110611 0.08237,-0.214165 0.01647,-0.534228 -0.09414,-0.72487 -0.115319,-0.195338 -0.338895,-0.381259 -0.562458,-0.433012 -0.24005,-0.05413 -0.510689,-0.04236 -0.724871,0.09414 -0.209457,0.143558 -0.331833,0.32713 -0.425971,0.567192 z M 17.898048,6.835008 v 3.146542 0.437745 c 0.313006,-0.313006 0.628388,-0.628388 0.941376,-0.941376 H 17.872141 15.462219 12.379196 9.3644251 7.1686842 c -0.6048476,0 -1.2308681,-0.04472 -1.7556719,0.329479 -0.4259712,0.303595 -0.7036976,0.69664 -0.8942966,1.179055 -0.016474,0.04001 -0.030595,0.08237 -0.047071,0.124731 -0.08943,0.232992 -0.1788593,0.465976 -0.2682935,0.698963 -0.3247757,0.844894 -0.6495602,1.68742 -0.9743401,2.532313 -0.3647851,0.948434 -0.7295611,1.899235 -1.0943633,2.847668 -0.2212223,0.571884 -0.4401122,1.146134 -0.6613086,1.718017 -0.011767,0.02824 -0.021181,0.05648 -0.032948,0.08473 0.030595,-0.07531 0.063544,-0.15062 0.094137,-0.22593 -0.1176729,0.258877 -0.1835671,0.44717 -0.2094567,0.729561 -0.01412,0.157682 0.00471,0.329479 0.056483,0.480091 0.5742503,-0.242404 1.1461337,-0.482458 1.7203839,-0.72487 -0.035302,-0.04942 -0.065894,-0.1012 -0.091784,-0.157683 0.030595,0.07531 0.063545,0.150621 0.094137,0.225931 -0.028241,-0.0706 -0.049421,-0.138855 -0.06119,-0.214165 0.011767,0.08237 0.023534,0.167094 0.032948,0.249466 -0.018827,-0.160036 -0.00706,-0.32713 -0.00706,-0.489516 V 17.813782 14.311863 10.0639 6.4019361 c 0,-0.5813076 -0.00471,-1.1649394 0,-1.7462474 0,-0.037655 0.00235,-0.077664 0.00471,-0.115319 -0.011767,0.082372 -0.023535,0.1670938 -0.032948,0.2494657 0.00941,-0.072956 0.028241,-0.1435583 0.056483,-0.2118106 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.2259303 0.028241,-0.065894 0.063544,-0.1270848 0.108257,-0.1859212 -0.049421,0.063544 -0.098845,0.1270845 -0.1482661,0.190629 0.044717,-0.056483 0.094138,-0.1059032 0.1506203,-0.15062 -0.063544,0.049421 -0.1270848,0.098846 -0.1906293,0.1482661 0.058836,-0.042362 0.1200271,-0.077664 0.1859213,-0.1082571 -0.07531,0.030595 -0.1506203,0.063544 -0.2259303,0.094137 0.068248,-0.028241 0.1388545,-0.044717 0.2118106,-0.056483 -0.082372,0.011768 -0.1670935,0.023535 -0.2494658,0.032948 0.1929832,-0.018827 0.3906703,-0.00471 0.5836318,-0.00471 h 1.2473072 2.873532 0.6636754 C 7.9429095,4.60862 7.6722712,4.453292 7.401628,4.2979723 7.8887769,4.938108 8.3736017,5.578244 8.8607503,6.2183797 8.9289983,6.3101637 8.9996049,6.3995929 9.0678531,6.4913809 9.2184733,6.6890719 9.3785094,6.8726392 9.6350456,6.929126 9.7056476,6.9456 9.8186129,6.959721 9.891569,6.962074 h 0.049421 0.642503 2.704105 3.071232 c 0.548343,0 1.099053,-0.00471 1.647397,0 0.03765,0 0.07531,0.00235 0.115319,0.00471 -0.08237,-0.011767 -0.167094,-0.023534 -0.249466,-0.032948 0.07296,0.00941 0.143559,0.028241 0.211811,0.056483 -0.07531,-0.030595 -0.15062,-0.063545 -0.22593,-0.094137 0.06589,0.028241 0.127085,0.063544 0.185921,0.108257 -0.06354,-0.049421 -0.127085,-0.098845 -0.190629,-0.1482661 0.05648,0.044717 0.105903,0.094137 0.15062,0.15062 -0.04942,-0.063545 -0.09885,-0.1270845 -0.148266,-0.190629 0.04236,0.058836 0.07766,0.1200271 0.108257,0.1859213 -0.03059,-0.07531 -0.06354,-0.1506203 -0.09414,-0.2259303 0.02824,0.068248 0.04472,0.1388545 0.05648,0.2118106 -0.01177,-0.082372 -0.02354,-0.1670938 -0.03295,-0.2494658 0.0024,0.032948 0.0047,0.065894 0.0047,0.096492 0.0047,0.2447577 0.1012,0.4918825 0.275351,0.6660425 0.162386,0.1623858 0.430688,0.2871209 0.666043,0.2753509 0.501263,-0.023534 0.9508,-0.4142054 0.941376,-0.9413763 -0.01883,-0.9672827 -0.793123,-1.7415564 -1.760363,-1.7556716 -0.110611,-0.00235 -0.218868,0 -0.32948,0 h -1.795679 -2.525255 -2.311073 c -0.383613,0 -0.769583,-0.00941 -1.1531914,0 H 9.8892086 C 10.159856,5.2346612 10.430495,5.3899892 10.701138,5.5453089 10.183391,4.8651512 9.6679691,4.1850366 9.150223,3.5048786 9.117275,3.4601618 9.0819748,3.415449 9.0490234,3.3707322 9.0419632,3.3636719 9.0372561,3.354258 9.0301959,3.347198 8.8960493,3.1730422 8.7854381,3.0483116 8.5783352,2.9612316 8.4300691,2.8976871 8.4182991,2.8859213 8.2135504,2.8812136 c -0.070602,-0.00235 -0.1388545,0 -0.2094567,0 H 6.80619 3.5984533 c -0.2188681,0 -0.4353783,-0.00471 -0.6542509,0 -0.3271299,0.00471 -0.6731002,0.091784 -0.9460669,0.2800586 -0.3412493,0.2329922 -0.5671925,0.5318615 -0.715446,0.9178366 -0.072956,0.1859213 -0.094137,0.3930238 -0.094137,0.593056 -0.00235,0.4353786 0,0.8707569 0,1.3061785 v 2.6711407 3.372472 3.334817 2.635853 c 0,0.409498 -0.00235,0.818987 0,1.228502 0.00235,0.338895 0.091784,0.70133 0.2894748,0.979031 0.1388545,0.195337 0.3177138,0.37655 0.5624586,0.433011 0.2094567,0.04707 0.4142057,0.03766 0.6119054,-0.04707 0.4071434,-0.171801 0.6989637,-0.663675 0.5460196,-1.110802 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023535,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063545,-0.216514 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.22593 0.1529742,-0.338895 0.2777051,-0.689539 0.4094977,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366186,-1.915717 0.2965325,-0.771949 0.5930563,-1.546223 0.8919727,-2.31813 0.2565235,-0.670733 0.5154225,-1.3391 0.7719502,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765502,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094138,0.22593 0.058837,-0.131793 0.1270848,-0.256523 0.2141648,-0.371843 -0.049421,0.06354 -0.098845,0.127085 -0.1482661,0.19063 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223577 -0.063544,0.04942 -0.1270848,0.09885 -0.1906293,0.148267 0.070602,-0.05413 0.1435584,-0.09649 0.2259303,-0.134147 -0.07531,0.03059 -0.15062,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670936,0.02354 -0.2494658,0.03295 0.1435584,-0.01647 0.2941786,-0.0094 0.4401122,-0.0094 h 0.8731262 2.9394612 3.574862 3.120678 c 0.503631,0 1.004938,0.0071 1.508569,0 h 0.02118 c 0.508321,0 0.941376,-0.430688 0.941376,-0.941376 V 7.2703743 6.8326289 c 0,-0.4918825 -0.433011,-0.9649159 -0.941376,-0.9413759 -0.508322,0.025888 -0.941376,0.4165592 -0.941376,0.9437427 z"})}),exports.gR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),s.jsx("path",{className:"styled secondary_light",d:"M 10.363689,16.028891 10.345659,15.996611 9.4734966,14.37091 8.5619879,16.028912 H 7.3633702 L 8.8418569,13.567063 7.3668314,10.90392 H 8.63729 l 0.018027,0.03581 0.872161,1.729842 0.907731,-1.765668 h 1.198618 l -1.478485,2.616296 1.482266,2.512154 z m 4.665607,0 h -2.953777 v -5.124987 h 1.137804 l -2.54e-4,4.102093 h 1.833979 z m 3.309014,-0.330196 h -2.55e-4 c -0.364996,0.290393 -0.822367,0.439348 -1.288281,0.419821 -0.483409,-0.01051 -0.964575,-0.07059 -1.43568,-0.179494 l -0.319438,-0.06109 0.118416,-0.907988 h 0.06109 c 0.496925,0.07435 0.997838,0.118671 1.500281,0.132932 0.484409,0 0.717711,-0.193763 0.717711,-0.585048 0.0084,-0.126168 -0.05033,-0.247587 -0.154462,-0.319436 -0.217293,-0.125426 -0.451866,-0.218549 -0.696178,-0.276375 -0.450111,-0.10039 -0.871457,-0.302915 -1.230924,-0.592056 -0.250844,-0.261105 -0.380767,-0.61484 -0.358989,-0.976048 -0.03205,-0.442856 0.145944,-0.875173 0.480903,-1.16658 0.372757,-0.27187 0.827876,-0.4063 1.288473,-0.380266 0.468637,0.0088 0.935799,0.05808 1.396139,0.147202 l 0.322941,0.06109 -0.09338,0.922278 h -0.0646 c -0.685413,-0.07536 -1.17709,-0.1149 -1.456957,-0.1149 -0.739246,0 -0.739246,0.35899 -0.739246,0.46663 v -2.53e-4 c -2.54e-4,0.124163 0.06334,0.239575 0.168479,0.305162 0.293896,0.149452 0.601566,0.269614 0.918754,0.35899 0.387778,0.100895 0.747253,0.288643 1.05167,0.548998 0.22756,0.265109 0.339963,0.610077 0.312175,0.958295 0.03504,0.464132 -0.141691,0.919267 -0.480905,1.238164 z m 3.631947,0.330195 v -0.03228 l -0.879468,-1.625958 -0.911511,1.658 -1.1951,2.55e-4 1.482273,-2.461843 -1.475286,-2.663143 h 1.270463 l 0.01803,0.0358 0.872162,1.729842 0.907988,-1.765667 h 1.184331 l -1.478492,2.616295 1.482272,2.512152 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),s.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),exports.generateUtilityClass=In,exports.generateUtilityClasses=En,exports.getTransitionProps=Rc,exports.globalCss=Jy,exports.gs=t0,exports.hR=({manager:e,commands:t,disabled:n,notifier:o=mu})=>{const r=Te(a=>{try{e?.undo(a)}catch(l){o.showError?.(l)}},[e]),i=Te(a=>{try{e?.redo(a)}catch(l){o.showError?.(l)}},[e]);return u.useMemo(()=>{if(!t)return;const a={contains:c=>!0,focus(){}},l=[new He("undo",a,{label:"Undo",description:S4,shortcut:{key:"z",modifiers:[$e.Ctrl]},disabled:!0},r),new He("redo",a,{label:"Redo",description:C4,shortcut:[{key:"y",modifiers:[$e.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[$e.Alt]}],disabled:!0},i)];t?.addCommands(l,!0)},[t]),u.useEffect(()=>{if(!t)return;const a=()=>{const c=e?.getTopUndoDescription(),d={};var p;t.getCommand("undo").update({disabled:n||!e||!e.hasUndo(),description:c?(p=c,`Undo ${p}`):S4,state:d,context:{undoManager:e}});const h=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:h?iI(h):C4,state:d,context:{undoManager:e}})};if(a(),!e)return;const l=e.addListener({onStackChange(){a()}});return()=>l?.()},[e,t,n]),{undo:r,redo:i}},exports.hc=n1,exports.hs=e0,exports.iM=If,exports.internal_mutateStyles=e3,exports.internal_serializeStyles=Tc,exports.iu=$f,exports.j9=X3,exports.jn=Nn,exports.kR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"}),s.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),exports.li=Ca,exports.lighten=Pl,exports.m4=bh,exports.mR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731423 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605952 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z "}),s.jsx("path",{className:"styled secondary_light",d:"m 7.7187557,5.6810989 h 3.9153913 c 0.116687,0 0.211776,0.096094 0.211776,0.2127813 v 0.8457422 c 0,0.1166881 -0.09489,0.2117769 -0.211776,0.2117769 H 7.7187557 c -0.116688,0 -0.2117768,-0.094892 -0.2117768,-0.2117769 V 5.8938802 c 0,-0.116688 0.094893,-0.2127813 0.2117768,-0.2127813 z M 8.7772903,9.7481656 V 12.094422 H 13.203582 V 9.7481656 Z m 0,3.6164134 v 2.346263 H 13.203582 V 13.364579 Z M 14.473445,12.094422 H 17.03249 V 9.7481656 h -2.559045 z m 2.559045,1.270157 h -2.559045 v 2.346263 h 2.559045 z m 1.270159,-3.8291948 v 7.2330098 c 0,0.116688 -0.09489,0.211766 -0.211767,0.211766 H 7.7185701 c -0.116688,0 -0.2117768,-0.09489 -0.2117768,-0.211766 V 8.6898058 c 0,-0.116688 0.094893,-0.2117769 0.2117768,-0.2117769 H 18.090882 c 0.116688,0 0.211767,0.094893 0.211767,0.2117769 z"}),s.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),exports.memoTheme=vn,exports.mu=mu,exports.pR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 6.3819062,2.5159671 c -0.4338889,0 -0.7857055,0.3518167 -0.7857055,0.7857177 V 20.587402 c 0,0.433902 0.3518166,0.785718 0.7857055,0.785718 H 18.953342 c 0.433889,0 0.785705,-0.351816 0.785705,-0.785718 V 7.2302615 h -3.928564 c -0.433901,0 -0.785718,-0.3518167 -0.785718,-0.7857178 V 2.5159671 Z m -2.357141,0.7857177 c 0,-1.3018621 1.0552788,-2.35714102 2.357141,-2.35714102 h 9.4285768 c 0.208352,0 0.408296,0.0827447 0.555609,0.23010782 l 4.714283,4.7142821 c 0.147327,0.1473145 0.230107,0.3472578 0.230107,0.55561 V 20.587402 c 0,1.301863 -1.055278,2.357142 -2.35714,2.357142 H 6.3819062 c -1.3018622,0 -2.357141,-1.055279 -2.357141,-2.357142 z"}),s.jsx("path",{className:"styled info",d:"M 13.729115,7.5208126 H 11.903278 V 11.108007 H 8.3163096 v 1.825837 h 3.5869684 v 3.586969 h 1.825837 v -3.586969 h 3.587195 v -1.825837 h -3.587195 z"})]}),exports.pe=Te,exports.qC=rw,exports.rM=Rf,exports.rS=_v,exports.ru=Xu,exports.sr=xr,exports.styled=Et,exports.styled$1=n2,exports.un=sn,exports.useDefaultProps=An,exports.useForkRef=Xo,exports.useTheme=Qs,exports.useTimeout=bl,exports.vR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"m 23.055315,20.559686 -4.63158,-4.63158 -0.33082,0.33083 -1.14286,-1.14286 c 2.70677,-3.57895 2.43609,-8.6917252 -0.81203,-11.9398452 -3.54887,-3.54886972 -9.3233066,-3.54886972 -12.9022566,0 -3.54886969,3.54887 -3.54886969,9.3233052 0,12.9022552 3.24812,3.24812 8.3909766,3.54887 11.9398466,0.81203 l 1.14286,1.14286 -0.33083,0.33082 4.63158,4.63158 c 0.66166,0.66166 1.74436,0.66166 2.43609,0 0.69173,-0.69173 0.69173,-1.77443 0,-2.43609 z m -8.66165,-6.25564 c -2.58647,2.58647 -6.7669166,2.58647 -9.3533766,0 -2.58647,-2.58646 -2.58647,-6.7669152 0,-9.3533752 2.58646,-2.58647 6.7669066,-2.58647 9.3533766,0 2.58647,2.58646 2.58647,6.7669152 0,9.3533752 z"}),s.jsx("path",{className:"styled info",d:"m 13.283605,7.5586508 0.57143,-0.81203 c 0.1203,-0.15037 0.0902,-0.3609 -0.0301,-0.4812 l -0.36091,-0.3609 -0.3609,-0.3609 c -0.1203,-0.1203 -0.33083,-0.15038 -0.4812,-0.0301 l -0.81203,0.57143 c -0.33083,-0.21053 -0.69173,-0.3609 -1.05263,-0.45113 l -0.15038,-0.99248 c -0.0301,-0.18045 -0.18045,-0.30075 -0.3609,-0.30075 H 9.7647762 9.283578 c -0.1804494,0 -0.3308296,0.1203 -0.3608996,0.30075 l -0.18045,0.99248 c -0.39098,0.0902 -0.75188,0.2406 -1.08271,0.45113 l -0.81203,-0.57143 c -0.15037,-0.1203 -0.3609,-0.0902 -0.4812,0.0301 l -0.3609,0.3609 -0.36091,0.3609 c -0.1203,0.1203 -0.15037,0.33083 -0.0301,0.4812 l 0.57143,0.81203 c -0.21053,0.33083 -0.33083,0.69173 -0.45113,1.05264 l -0.96241,0.15037 c -0.18045,0.0301 -0.30075,0.1804494 -0.30075,0.3608988 v 0.4812082 0.4811982 c 0,0.18045 0.1203,0.33083 0.30075,0.3609 l 0.99248,0.18045 c 0.0902,0.36091 0.24061,0.72181 0.45113,1.05264 l -0.57143,0.81203 c -0.1203,0.15037 -0.0902,0.3609 0.0301,0.4812 l 0.3609,0.3609 0.3609,0.3609 c 0.1203,0.1203 0.33083,0.15038 0.48121,0.0301 l 0.81203,-0.57143 c 0.33082,0.21053 0.69173,0.33083 1.05263,0.45113 l 0.15037,0.9624 c 0.0301,0.18045 0.1804605,0.30076 0.3609096,0.30076 h 0.4811982 0.4811988 c 0.18045,0 0.33083,-0.12031 0.3609,-0.30076 l 0.18046,-0.99248 c 0.3609,-0.0902 0.7218,-0.2406 1.02255,-0.42105 l 0.81203,0.57143 c 0.15038,0.1203 0.3609,0.0902 0.48121,-0.0301 l 0.3609,-0.3609 0.3609,-0.3609 c 0.1203,-0.1203 0.15038,-0.33083 0.0301,-0.4812 l -0.57143,-0.81203 c 0.21052,-0.33083 0.3609,-0.69173 0.45112,-1.05264 l 0.99249,-0.15037 c 0.18045,-0.0301 0.30075,-0.18045 0.30075,-0.3609 V 9.6338375 9.1526396 c 0,-0.1804494 -0.1203,-0.3308288 -0.30075,-0.3608988 l -0.99249,-0.18045 c -0.0601,-0.36091 -0.21052,-0.72181 -0.42105,-1.05264 z m -1.38346,3.4285752 c -0.75188,1.203 -2.3157882,1.56391 -3.5187866,0.81203 -1.20301,-0.75188 -1.56391,-2.3157879 -0.81203,-3.5187952 0.75188,-1.20301 2.3157872,-1.56391 3.5187866,-0.81203 1.20301,0.75188 1.56391,2.3458561 0.81203,3.5187952 z"})]}),exports.vo=C3,exports.vx=ov,exports.wR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 13.825079,18.501033 H 11.95551 L 10.427711,14.46047 H 4.3164615 L 2.8791069,18.501033 H 0.99950668 L 6.5277646,4.0874418 H 8.2767047 Z M 9.8748861,12.942702 7.6133175,6.8013238 C 7.5396037,6.6002808 7.4658898,6.2786458 7.3921947,5.8363818 h -0.040216 c -0.067014,0.408748 -0.1440592,0.730402 -0.2311721,0.964942 l -2.24147,6.1413782 z"}),s.jsx("path",{d:"M 22.999506,18.501033 H 21.35119 v -1.608081 h -0.04023 c -0.716927,1.232869 -1.772388,1.84949 -3.166196,1.84949 -1.025331,0 -1.829278,-0.271538 -2.412346,-0.81424 -0.576274,-0.542701 -0.864411,-1.263184 -0.864411,-2.161075 0,-1.923147 1.132525,-3.042198 3.397275,-3.357133 l 3.085913,-0.432215 c 0,-1.74894 -0.707009,-2.6234182 -2.12084,-2.6234182 -1.239793,0 -2.358694,0.422166 -3.357208,1.2664762 V 8.9322138 c 1.011801,-0.643289 2.177861,-0.964942 3.497936,-0.964942 2.418952,0 3.628428,1.279877 3.628428,3.8396302 z m -1.648316,-5.206529 -2.482766,0.341752 c -0.763899,0.107212 -1.340099,0.298187 -1.728785,0.572925 -0.388687,0.268038 -0.582937,0.74715 -0.582937,1.437429 0,0.502467 0.177595,0.914546 0.532596,1.236237 0.361926,0.314954 0.841001,0.472337 1.437411,0.472337 0.817421,0 1.490932,-0.284637 2.020347,-0.854287 0.535965,-0.576199 0.804134,-1.303326 0.804134,-2.181155 z"})]}),exports.wa=fs,exports.wo=Eo,exports.xR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 10.479463,15.147182 H 9.2682944 v -1.181675 h -0.029549 c -0.5268175,0.905987 -1.3022625,1.358912 -2.3263488,1.358912 -0.7533075,0 -1.3441175,-0.199375 -1.7724712,-0.598262 -0.4234175,-0.39875 -0.6351263,-0.927988 -0.6351263,-1.587768 0,-1.413046 0.8320676,-2.235269 2.4962163,-2.466668 l 2.267279,-0.317569 c 0,-1.2850343 -0.5194338,-1.927558 -1.5583013,-1.927558 -0.9108412,0 -1.7330638,0.3101862 -2.4666675,0.930545 V 8.1164215 C 5.9867743,7.6437652 6.8434681,7.4074302 7.8133931,7.4074302 c 1.77738,0 2.6660699,0.94039 2.6660699,2.8211698 z M 9.2682944,11.321616 7.4441369,11.572718 c -0.5612888,0.07877 -0.9847063,0.219093 -1.2702663,0.420956 -0.2855737,0.196942 -0.4283538,0.548969 -0.4283538,1.056097 0,0.369256 0.1304738,0.672058 0.3914213,0.908448 0.26587,0.231275 0.6178975,0.34705 1.0560962,0.34705 0.6006688,0 1.0954763,-0.209275 1.4844363,-0.627756 0.3938825,-0.423417 0.5908238,-0.957619 0.5908238,-1.602604 z"}),s.jsx("path",{d:"m 13.926616,14.054194 h -0.02955 v 1.092988 H 12.685885 V 3.9511339 h 1.211182 v 4.9628976 h 0.02955 c 0.595732,-1.0043963 1.467262,-1.5066013 2.614425,-1.5066013 0.969924,0 1.7281,0.3397213 2.274662,1.0191638 0.551375,0.67452 0.827063,1.580453 0.827063,2.717784 0,1.26533 -0.307725,2.279571 -0.923175,3.042779 -0.61545,0.758175 -1.457363,1.137262 -2.525738,1.137262 -0.999487,0 -1.755201,-0.423362 -2.267238,-1.270225 z m -0.02955,-3.050135 v 1.056083 c 0,0.625295 0.201864,1.157021 0.605591,1.59522 0.408595,0.433207 0.925595,0.649907 1.550945,0.649907 0.733562,0 1.307212,-0.280637 1.720675,-0.841926 0.41855,-0.561275 0.627825,-1.341656 0.627825,-2.34113 0,-0.841913 -0.194563,-1.5016653 -0.583413,-1.9792441 -0.388987,-0.4775787 -0.915887,-0.716375 -1.580562,-0.716375 -0.704,0 -1.270225,0.24618 -1.698538,0.7385263 -0.428353,0.4874375 -0.642523,1.1004128 -0.642523,1.8389388 z"}),s.jsx("path",{d:"m 1.0738031,15.147182 h 1.375 v 2.75 H 21.698803 v -2.75 h 1.375 v 4.125 h -1.375 -19.2499999 -1.375 z"})]}),exports.yR=e=>s.jsxs(Xe,{...e,children:[s.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),s.jsx("path",{className:"styled secondary_light",d:"m 22.499719,10.752378 -1.867399,5.486926 h -1.267987 l -1.859714,-5.486926 h 1.175769 l 1.02976,3.266027 q 0.03074,0.08453 0.08453,0.315076 0.06148,0.222858 0.122956,0.476455 0.06148,0.245913 0.08453,0.414978 0.02305,-0.169065 0.07685,-0.414978 0.06148,-0.253597 0.122956,-0.476455 0.06148,-0.230544 0.08453,-0.315076 l 1.037444,-3.266027 z m -5.302496,3.965341 q 0,0.730053 -0.530249,1.168085 -0.522565,0.430347 -1.490846,0.430347 -0.868379,0 -1.552323,-0.330445 v -1.083552 q 0.391923,0.169065 0.8069,0.315075 0.422663,0.138326 0.83764,0.138326 0.430348,0 0.607097,-0.16138 0.184435,-0.169065 0.184435,-0.422663 0,-0.207488 -0.146011,-0.353499 -0.138326,-0.146011 -0.376554,-0.268967 -0.238228,-0.130641 -0.545618,-0.276652 -0.19212,-0.09222 -0.414978,-0.215173 -0.222858,-0.130641 -0.430347,-0.315076 -0.199804,-0.192119 -0.330445,-0.461086 -0.130641,-0.268967 -0.130641,-0.645521 0,-0.737738 0.49951,-1.14503 0.49951,-0.414978 1.360204,-0.414978 0.430347,0 0.814586,0.0999 0.391923,0.0999 0.814585,0.284337 l -0.376553,0.906802 q -0.376554,-0.153695 -0.67626,-0.238227 -0.299706,-0.08453 -0.614782,-0.08453 -0.330445,0 -0.507195,0.153695 -0.176749,0.153696 -0.176749,0.399609 0,0.292021 0.261282,0.461086 0.261282,0.169065 0.776162,0.414977 0.422662,0.199804 0.714683,0.414978 0.299706,0.215173 0.461087,0.507195 0.16138,0.292021 0.16138,0.722368 z m -5.801995,-3.073908 q -0.668575,0 -1.022074,0.49951 -0.3535,0.49951 -0.3535,1.367889 0,0.876064 0.322761,1.360205 0.330445,0.476455 1.052813,0.476455 0.33813,0 0.668575,-0.07685 0.33813,-0.07685 0.730053,-0.215174 v 0.975966 q -0.361184,0.14601 -0.714683,0.215173 -0.3535,0.06916 -0.791532,0.06916 -0.845324,0 -1.3986278,-0.345814 -0.5456187,-0.3535 -0.8069009,-0.983651 -0.2612821,-0.637836 -0.2612821,-1.483161 0,-0.829955 0.299706,-1.467791 0.299706,-0.637836 0.868379,-0.99902 0.5763578,-0.361184 1.4063128,-0.361184 0.407293,0 0.814586,0.107587 0.414977,0.0999 0.791531,0.276652 l -0.376554,0.945226 q -0.30739,-0.14601 -0.622466,-0.253597 -0.307391,-0.107587 -0.607097,-0.107587 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),s.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),exports.z0=ua,exports.zR=YS,exports.ze=We;
|