@sheetxl/studio-vanilla 0.4.9 → 0.4.11
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/README.md +1 -1
- package/browser/cjs/B0rdyyttE2Aibsag.cjs +7 -0
- package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +107 -0
- package/browser/cjs/BAyEOOtO-9sHQQRW.cjs +7 -0
- package/browser/cjs/BPTHTRDvNOVkUJGa.cjs +7 -0
- package/browser/cjs/BlSFY6zLlebuejdV.cjs +7 -0
- package/browser/cjs/BplA5pDzOJpfTZuA.cjs +7 -0
- package/browser/cjs/BshvMtUxTJHj3JQN.cjs +7 -0
- package/browser/cjs/BuWtGFX0HiBezGjw.cjs +7 -0
- package/browser/cjs/C5FXOMLhAu_KTjVe.cjs +7 -0
- package/browser/cjs/C7EZCTczsC-gkRcq.cjs +7 -0
- package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +7 -0
- package/browser/cjs/CjZbhk41S1qO_74G.cjs +7 -0
- package/browser/cjs/CuTW2Pt-L5n-hNxV.cjs +7 -0
- package/browser/cjs/D3iOk-Q2tRdUeTcn.cjs +7 -0
- package/browser/cjs/DFspSkki779xN-Ey.cjs +7 -0
- package/browser/cjs/DFtyXc7YFh9dIp74.cjs +7 -0
- package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +7 -0
- package/browser/cjs/DgBn3aW39yjgm0X_.cjs +7 -0
- package/browser/cjs/DiBy6-IxLscyMW2y.cjs +7 -0
- package/browser/cjs/DrlS1oz9Nea8Pm3j.cjs +7 -0
- package/browser/cjs/Dx-jp_LJxWbAScyA.cjs +7 -0
- package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +7 -0
- package/browser/cjs/T4SHYo66xDT3l9JN.cjs +7 -0
- package/browser/cjs/index.cjs +4 -3
- package/browser/cjs/vfUix5Di0Ro8tEID.cjs +7 -0
- package/browser/esm/B5kkStdEkTczERyM.mjs +7 -0
- package/browser/esm/B905wKzTtod-jbsD.mjs +7 -0
- package/browser/esm/BALnKy2Fp7fyk-lc.mjs +7 -0
- package/browser/esm/BDVJ7eOPpW5FnEAP.mjs +7 -0
- package/browser/esm/BGpv6Kq7eBlJy43T.mjs +7 -0
- package/browser/esm/BUSR_OK5Qi6hRPfw.mjs +7 -0
- package/browser/esm/BXUGsC1Mo3FP8vnW.mjs +7 -0
- package/browser/esm/BlGoi1_x9rUMpWMd.mjs +7 -0
- package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +7 -0
- package/browser/esm/BuURCm92KsyGHG9e.mjs +7 -0
- package/browser/esm/CFFC0SNc24a0Dxnh.mjs +7 -0
- package/browser/esm/CGZ5MX7afzMxDkCe.mjs +7 -0
- package/browser/esm/Cc_VWd0wF5-39LsI.mjs +7 -0
- package/browser/esm/Cq8D_M0jeHLcnRjg.mjs +7 -0
- package/browser/esm/CzmNwV9tfFYUp_gS.mjs +7 -0
- package/browser/esm/De6RPxc4p_jXLlT5.mjs +7 -0
- package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +7 -0
- package/browser/esm/DqXxZP6yKF4U1YfY.mjs +7 -0
- package/browser/esm/DtmE60AvstK9u0Ta.mjs +107 -0
- package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +7 -0
- package/browser/esm/PS0cqYnlMVEGOQpI.mjs +7 -0
- package/browser/esm/QBGUD1XS5_pysBLL.mjs +7 -0
- package/browser/esm/index.mjs +2 -8
- package/browser/esm/tFhROdVSw9KLQfUN.mjs +7 -0
- package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +7 -0
- package/cdn/index.js +40 -44
- package/cdn/loader.js +1 -1
- package/package.json +5 -5
- package/types/index.d.ts +9 -9
- package/browser/cjs/3GhIDU8JK1oBJrCA.cjs +0 -6
- package/browser/cjs/5hPVyVAXmITQCRAG.cjs +0 -6
- package/browser/cjs/7PlrLPQx1lct0mdN.cjs +0 -6
- package/browser/cjs/B4K6KuggSdXj-V8g.cjs +0 -6
- package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +0 -12
- package/browser/cjs/B7eW1GQgFvphlLGY.cjs +0 -6
- package/browser/cjs/BQPFxJ77OaD_sBIX.cjs +0 -6
- package/browser/cjs/Ba3O1f0NYbzEwNAd.cjs +0 -6
- package/browser/cjs/BoojmbbjqixMVu2H.cjs +0 -6
- package/browser/cjs/CSGVl8EBCRhxcFm1.cjs +0 -15
- package/browser/cjs/CalnqtYH48_x2rcI.cjs +0 -301
- package/browser/cjs/CjDsO4sQWUHbIX1N.cjs +0 -6
- package/browser/cjs/CsCaFaiySArzEfdH.cjs +0 -7
- package/browser/cjs/D6AUUY9awlTRjjqd.cjs +0 -11
- package/browser/cjs/D8lN5Mv3J4SwSpLP.cjs +0 -161
- package/browser/cjs/D9RQ5oYv7U38wSI7.cjs +0 -11
- package/browser/cjs/DCd2rPNFkSHDaRcM.cjs +0 -7
- package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +0 -6
- package/browser/cjs/DIXyMJKaeCGuWxjZ.cjs +0 -12
- package/browser/cjs/Dmw7xaaV85s72QZe.cjs +0 -145
- package/browser/cjs/DzCXPcqV1oKbCcLO.cjs +0 -16
- package/browser/cjs/EoaX6dPoS-Mb-ITO.cjs +0 -42
- package/browser/cjs/Y6OgkWqbIB761o5q.cjs +0 -6
- package/browser/cjs/gbABnN2zW1kHo3_I.cjs +0 -19
- package/browser/cjs/kfV5Cli9oE9IsCtx.cjs +0 -6
- package/browser/cjs/nURb18uhj9rScsHa.cjs +0 -6
- package/browser/esm/2NQDbhor1Nuzndgq.mjs +0 -3756
- package/browser/esm/4aC35Q2XPOwifBRR.mjs +0 -1365
- package/browser/esm/5zFDFBAgT-aPgQQ0.mjs +0 -1665
- package/browser/esm/B3I_TrFN_pAK5Mdh.mjs +0 -2346
- package/browser/esm/BD9GKsR-k4aEK2tx.mjs +0 -421
- package/browser/esm/BQpsMTJvguy6LMIq.mjs +0 -43
- package/browser/esm/BfCWogOnq8R-c3dD.mjs +0 -21
- package/browser/esm/BkGQPKMRPIVUVTLO.mjs +0 -944
- package/browser/esm/C81J50HcankGTOIj.mjs +0 -390
- package/browser/esm/CO_s27056nua6qzN.mjs +0 -1346
- package/browser/esm/CPEjlDUTxckVS1rp.mjs +0 -50
- package/browser/esm/CY7astxzrfb7uZqy.mjs +0 -2178
- package/browser/esm/CZVzRhflTpwAAl1o.mjs +0 -22
- package/browser/esm/CaWZXQsmKl4hTNq5.mjs +0 -46
- package/browser/esm/CxcLNXXaxyFyUzyb.mjs +0 -633
- package/browser/esm/D0icxW0WVNoeVRLH.mjs +0 -58
- package/browser/esm/DFQvqk5r1uf_z0h_.mjs +0 -24994
- package/browser/esm/DRL5s4S0fIXi1aU7.mjs +0 -84
- package/browser/esm/DRmeb1VC4YCzKKWd.mjs +0 -13208
- package/browser/esm/DTwhl4v5YnZrUSgI.mjs +0 -24
- package/browser/esm/DmpPAs6w-XNWGTIN.mjs +0 -1703
- package/browser/esm/Dx-GS3XDBkRaMNG-.mjs +0 -151
- package/browser/esm/V5CA7xqGOB7-Qx4Y.mjs +0 -1467
- package/browser/esm/gsfI5CGYr7LCQxRx.mjs +0 -41
- package/browser/esm/tOBqasyBAnd7O4qE.mjs +0 -46
- package/browser/esm/tPrnEcHW_czJDZOT.mjs +0 -50
- package/cdn/assets/2NQDbhor1Nuzndgq.js +0 -3756
- package/cdn/assets/4aC35Q2XPOwifBRR.js +0 -1365
- package/cdn/assets/5zFDFBAgT-aPgQQ0.js +0 -1665
- package/cdn/assets/B0w_moB3pDJd-a6V.js +0 -24
- package/cdn/assets/BD9GKsR-k4aEK2tx.js +0 -421
- package/cdn/assets/BJVOhUH_XL03H6ZD.js +0 -22
- package/cdn/assets/BWJOkXXB6Tr-jYUS.js +0 -46
- package/cdn/assets/BapFqJyAb3cblvJM.js +0 -50
- package/cdn/assets/Bg88bG-JM9EHeyYX.js +0 -41
- package/cdn/assets/C81J50HcankGTOIj.js +0 -390
- package/cdn/assets/CO_s27056nua6qzN.js +0 -1346
- package/cdn/assets/CXa9u-7w14dyPYxk.js +0 -1703
- package/cdn/assets/CkcETdiKdTsZAzma.js +0 -1467
- package/cdn/assets/CxcLNXXaxyFyUzyb.js +0 -633
- package/cdn/assets/D0PaU6F-TNaTWj-a.js +0 -43
- package/cdn/assets/D4hoypx6_sZbvrC_.js +0 -2346
- package/cdn/assets/D5exf1RvCqvUoJ3X.js +0 -2178
- package/cdn/assets/DKLitAhDj5Ibh2cc.js +0 -24841
- package/cdn/assets/DRL5s4S0fIXi1aU7.js +0 -84
- package/cdn/assets/DRmeb1VC4YCzKKWd.js +0 -13208
- package/cdn/assets/DYkBvlMlZjOASUJs.js +0 -58
- package/cdn/assets/ON5--a75QdEU99y_.js +0 -151
- package/cdn/assets/PIZDjyqIbvmHXs1T.js +0 -46
- package/cdn/assets/TOkIJFYhNg78FdJa.js +0 -21
- package/cdn/assets/b9dlFmoFz8tJhV0Z.js +0 -50
- package/cdn/assets/d1PG-QPA1GcQ_RuH.js +0 -944
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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"),t2=require("react-dom/client"),$=require("@sheetxl/sdk"),yo=require("react-dom");function n2(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 X=n2(u),YC=n2(s),sm=n2(t2),JC=n2(yo),jc={black:"#000",white:"#fff"},QC="#e57373",ek="#ef5350",tk="#f44336",cm="#d32f2f",nk="#c62828",ok="#f3e5f5",rk="#ce93d8",ik="#ba68c8",ak="#ab47bc",lk="#9c27b0",sk="#7b1fa2",ck="#e3f2fd",dk="#90caf9",dm="#42a5f5",uk="#1976d2",pk="#1565c0",hk="#4fc3f7",fk="#29b6f6",mk="#03a9f4",um="#0288d1",gk="#01579b",yk="#81c784",xk="#66bb6a",bk="#4caf50",vk="#388e3c",wk="#2e7d32",Sk="#1b5e20",Ck="#ffb74d",kk="#ffa726",Ek="#ff9800",Mk="#f57c00",Tk="#e65100",_k={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 Ta(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 c1="$$material";function iu(){return iu=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},iu.apply(null,arguments)}var jk=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-",pm="-moz-",Gn="-webkit-",vy="comm",Yh="rule",Jh="decl",wy="@keyframes",Rk=Math.abs,o2=String.fromCharCode,Ik=Object.assign;function Sy(e){return e.trim()}function Zn(e,t,n){return e.replace(t,n)}function g5(e,t){return e.indexOf(t)}function gr(e,t){return 0|e.charCodeAt(t)}function Rc(e,t,n){return e.slice(t,n)}function ra(e){return e.length}function Qh(e){return e.length}function B1(e,t){return t.push(e),e}var r2=1,Ls=1,Cy=0,qr=0,er=0,e0="";function i2(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:r2,column:Ls,length:a,return:""}}function v0(e,t){return Ik(i2("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pk(){return er=qr>0?gr(e0,--qr):0,Ls--,er===10&&(Ls=1,r2--),er}function si(){return er=qr<Cy?gr(e0,qr++):0,Ls++,er===10&&(Ls=1,r2++),er}function da(){return gr(e0,qr)}function Dd(){return qr}function d1(e,t){return Rc(e0,e,t)}function Ic(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 ky(e){return r2=Ls=1,Cy=ra(e0=e),qr=0,[]}function Ey(e){return e0="",e}function Ad(e){return Sy(d1(qr-1,y5(e===91?e+2:e===40?e+1:e)))}function Ok(e){for(;(er=da())&&er<33;)si();return Ic(e)>2||Ic(er)>3?"":" "}function Dk(e,t){for(;--t&&si()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return d1(e,Dd()+(t<6&&da()==32&&si()==32))}function y5(e){for(;si();)switch(er){case e:return qr;case 34:case 39:e!==34&&e!==39&&y5(er);break;case 40:e===41&&y5(e);break;case 92:si()}return qr}function Ak(e,t){for(;si()&&e+er!==57&&(e+er!==84||da()!==47););return"/*"+d1(t,qr-1)+"*"+o2(e===47?e:si())}function Lk(e){for(;!Ic(da());)si();return d1(e,qr)}function zk(e){return Ey(Ld("",null,null,null,[""],e=ky(e),0,[0],e))}function Ld(e,t,n,o,r,i,a,l,c){for(var d=0,p=0,f=a,h=0,g=0,m=0,y=1,x=1,v=1,b=0,w="",M=r,k=i,j=o,_=w;x;)switch(m=b,b=si()){case 40:if(m!=108&&gr(_,f-1)==58){g5(_+=Zn(Ad(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Ad(b);break;case 9:case 10:case 13:case 32:_+=Ok(m);break;case 92:_+=Dk(Dd()-1,7);continue;case 47:switch(da()){case 42:case 47:B1(Fk(Ak(si(),Dd()),t,n),c);break;default:_+="/"}break;case 123*y:l[d++]=ra(_)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+p:v==-1&&(_=Zn(_,/\f/g,"")),g>0&&ra(_)-f&&B1(g>32?fm(_+";",o,n,f-1):fm(Zn(_," ","")+";",o,n,f-2),c);break;case 59:_+=";";default:if(B1(j=hm(_,t,n,d,p,r,l,w,M=[],k=[],f),i),b===123)if(p===0)Ld(_,t,j,j,M,i,f,l,k);else switch(h===99&&gr(_,3)===110?100:h){case 100:case 108:case 109:case 115:Ld(e,j,j,o&&B1(hm(e,j,j,0,0,r,l,w,r,M=[],f),k),r,k,f,l,o?M:k);break;default:Ld(_,j,j,j,[""],k,0,l,k)}}d=p=g=0,y=v=1,w=_="",f=a;break;case 58:f=1+ra(_),g=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&Pk()==125)continue}switch(_+=o2(b),b*y){case 38:v=p>0?1:(_+="\f",-1);break;case 44:l[d++]=(ra(_)-1)*v,v=1;break;case 64:da()===45&&(_+=Ad(si())),h=da(),p=f=ra(w=_+=Lk(Dd())),b++;break;case 45:m===45&&ra(_)==2&&(y=0)}}return i}function hm(e,t,n,o,r,i,a,l,c,d,p){for(var f=r-1,h=r===0?i:[""],g=Qh(h),m=0,y=0,x=0;m<o;++m)for(var v=0,b=Rc(e,f+1,f=Rk(y=a[m])),w=e;v<g;++v)(w=Sy(y>0?h[v]+" "+b:Zn(b,/&\f/g,h[v])))&&(c[x++]=w);return i2(e,t,n,r===0?Yh:l,c,d,p)}function Fk(e,t,n){return i2(e,t,n,vy,o2(er),Rc(e,2,-2),0)}function fm(e,t,n,o){return i2(e,t,n,Jh,Rc(e,0,o),Rc(e,o+1,-1),o)}function Es(e,t){for(var n="",o=Qh(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Bk(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Jh:return e.return=e.return||e.value;case vy:return"";case wy:return e.return=e.value+"{"+Es(e.children,o)+"}";case Yh:e.value=e.props.join(",")}return ra(n=Es(e.children,o))?e.return=e.value+"{"+n+"}":""}function My(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nk=function(e,t,n){for(var o=0,r=0;o=r,r=da(),o===38&&r===12&&(t[n]=1),!Ic(r);)si();return d1(e,qr)},$k=function(e,t){return Ey(function(n,o){var r=-1,i=44;do switch(Ic(i)){case 0:i===38&&da()===12&&(o[r]=1),n[r]+=Nk(qr-1,o,r);break;case 2:n[r]+=Ad(i);break;case 4:if(i===44){n[++r]=da()===58?"&\f":"",o[r]=n[r].length;break}default:n[r]+=o2(i)}while(i=si());return n}(ky(e),t))},mm=new WeakMap,Vk=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||mm.get(n))&&!o){mm.set(e,!0);for(var r=[],i=$k(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]}}},Hk=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ty(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 Gn+"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 Gn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gn+e+pm+e+Sr+e+e;case 6828:case 4268:return Gn+e+Sr+e+e;case 6165:return Gn+e+Sr+"flex-"+e+e;case 5187:return Gn+e+Zn(e,/(\w+).+(:[^]+)/,Gn+"box-$1$2"+Sr+"flex-$1$2")+e;case 5443:return Gn+e+Sr+"flex-item-"+Zn(e,/flex-|-self/,"")+e;case 4675:return Gn+e+Sr+"flex-line-pack"+Zn(e,/align-content|flex-|-self/,"")+e;case 5548:return Gn+e+Sr+Zn(e,"shrink","negative")+e;case 5292:return Gn+e+Sr+Zn(e,"basis","preferred-size")+e;case 6060:return Gn+"box-"+Zn(e,"-grow","")+Gn+e+Sr+Zn(e,"grow","positive")+e;case 4554:return Gn+Zn(e,/([^-])(transform)/g,"$1"+Gn+"$2")+e;case 6187:return Zn(Zn(Zn(e,/(zoom-|grab)/,Gn+"$1"),/(image-set)/,Gn+"$1"),e,"")+e;case 5495:case 3959:return Zn(e,/(image-set\([^]*)/,Gn+"$1$`$1");case 4968:return Zn(Zn(e,/(.+:)(flex-)?(.*)/,Gn+"box-pack:$3"+Sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gn+e+e;case 4095:case 3583:case 4068:case 2532:return Zn(e,/(.+)-inline(.+)/,Gn+"$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(ra(e)-1-t>6)switch(gr(e,t+1)){case 109:if(gr(e,t+4)!==45)break;case 102:return Zn(e,/(.+:)(.+)-([^]+)/,"$1"+Gn+"$2-$3$1"+pm+(gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~g5(e,"stretch")?Ty(Zn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gr(e,t+1)!==115)break;case 6444:switch(gr(e,ra(e)-3-(~g5(e,"!important")&&10))){case 107:return Zn(e,":",":"+Gn)+e;case 101:return Zn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gn+(gr(e,14)===45?"inline-":"")+"box$3$1"+Gn+"$2$3$1"+Sr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gn+e+Sr+e+e}return e}var gm,ym,xm,bm,Wk=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Jh:e.return=Ty(e.value,e.length);break;case wy:return Es([v0(e,{value:Zn(e.value,"@","@"+Gn)})],o);case Yh: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 Es([v0(e,{props:[Zn(r,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Es([v0(e,{props:[Zn(r,/:(plac\w+)/,":"+Gn+"input-$1")]}),v0(e,{props:[Zn(r,/:(plac\w+)/,":-moz-$1")]}),v0(e,{props:[Zn(r,/:(plac\w+)/,Sr+"input-$1")]})],o)}return""})}}],Uk=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||Wk,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=[Bk,(d=function(g){c.insert(g)},function(g){g.root||(g=g.return)&&d(g)})],f=function(g){var m=Qh(g);return function(y,x,v,b){for(var w="",M=0;M<m;M++)w+=g[M](y,x,v,b)||"";return w}}([Vk,Hk].concat(i,p));r=function(g,m,y,x){c=y,function(v){Es(zk(v),f)}(g?g+"{"+m.styles+"}":m.styles),x&&(h.inserted[m.name]=!0)};var h={key:t,sheet:new jk({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 h.sheet.hydrate(l),h},vm={exports:{}},Yn={};function qk(){return ym||(ym=1,vm.exports=function(){if(gm)return Yn;gm=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,f=e?Symbol.for("react.suspense"):60113,h=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(k){if(typeof k=="object"&&k!==null){var j=k.$$typeof;switch(j){case t:switch(k=k.type){case c:case d:case o:case i:case r:case f:return k;default:switch(k=k&&k.$$typeof){case l:case p:case m:case g:case a:return k;default:return j}}case n:return j}}}function M(k){return w(k)===d}return Yn.AsyncMode=c,Yn.ConcurrentMode=d,Yn.ContextConsumer=l,Yn.ContextProvider=a,Yn.Element=t,Yn.ForwardRef=p,Yn.Fragment=o,Yn.Lazy=m,Yn.Memo=g,Yn.Portal=n,Yn.Profiler=i,Yn.StrictMode=r,Yn.Suspense=f,Yn.isAsyncMode=function(k){return M(k)||w(k)===c},Yn.isConcurrentMode=M,Yn.isContextConsumer=function(k){return w(k)===l},Yn.isContextProvider=function(k){return w(k)===a},Yn.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},Yn.isForwardRef=function(k){return w(k)===p},Yn.isFragment=function(k){return w(k)===o},Yn.isLazy=function(k){return w(k)===m},Yn.isMemo=function(k){return w(k)===g},Yn.isPortal=function(k){return w(k)===n},Yn.isProfiler=function(k){return w(k)===i},Yn.isStrictMode=function(k){return w(k)===r},Yn.isSuspense=function(k){return w(k)===f},Yn.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===o||k===d||k===i||k===r||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===g||k.$$typeof===a||k.$$typeof===l||k.$$typeof===p||k.$$typeof===x||k.$$typeof===v||k.$$typeof===b||k.$$typeof===y)},Yn.typeOf=w,Yn}()),vm.exports}(function(){if(bm)return xm;bm=1;var e=qk(),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(h){return e.isMemo(h)?o:r[h.$$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,f=Object.prototype;xm=function h(g,m,y){if(typeof m!="string"){if(f){var x=p(m);x&&x!==f&&h(g,x,y)}var v=l(m);c&&(v=v.concat(c(m)));for(var b=i(g),w=i(m),M=0;M<v.length;++M){var k=v[M];if(!(n[k]||y&&y[k]||w&&w[k]||b&&b[k])){var j=d(m,k);try{a(g,k,j)}catch{}}}}return g}})();function _y(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var e3=function(e,t,n){var o=e.key+"-"+t.name;n===!1&&e.registered[o]===void 0&&(e.registered[o]=t.styles)},t3=function(e,t,n){e3(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)}},Kk={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},Gk=/[A-Z]|^ms/g,Zk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jy=function(e){return e.charCodeAt(1)===45},wm=function(e){return e!=null&&typeof e!="boolean"},X2=My(function(e){return jy(e)?e:e.replace(Gk,"-$&").toLowerCase()}),Sm=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Zk,function(n,o,r){return ia={name:o,styles:r,next:ia},o})}return Kk[e]===1||jy(e)||typeof t!="number"||t===0?t:t+"px"};function pc(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 ia={name:r.name,styles:r.styles,next:ia},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ia={name:a.name,styles:a.styles,next:ia},a=a.next;return i.styles+";"}return function(f,h,g){var m="";if(Array.isArray(g))for(var y=0;y<g.length;y++)m+=pc(f,h,g[y])+";";else for(var x in g){var v=g[x];if(typeof v!="object"){var b=v;h!=null&&h[b]!==void 0?m+=x+"{"+h[b]+"}":wm(b)&&(m+=X2(x)+":"+Sm(x,b)+";")}else if(!Array.isArray(v)||typeof v[0]!="string"||h!=null&&h[v[0]]!==void 0){var w=pc(f,h,v);switch(x){case"animation":case"animationName":m+=X2(x)+":"+w+";";break;default:m+=x+"{"+w+"}"}}else for(var M=0;M<v.length;M++)wm(v[M])&&(m+=X2(x)+":"+Sm(x,v[M])+";")}return m}(e,t,n);case"function":if(e!==void 0){var l=ia,c=n(e);return ia=l,pc(e,t,c)}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}var ia,Cm=/label:\s*([^\s;{]+)\s*(;|$)/g;function u1(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="";ia=void 0;var i=e[0];i==null||i.raw===void 0?(o=!1,r+=pc(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=pc(n,t,e[a]),o&&(r+=i[a]);Cm.lastIndex=0;for(var l,c="";(l=Cm.exec(r))!==null;)c+="-"+l[1];var d=function(p){for(var f,h=0,g=0,m=p.length;m>=4;++g,m-=4)f=1540483477*(65535&(f=255&p.charCodeAt(g)|(255&p.charCodeAt(++g))<<8|(255&p.charCodeAt(++g))<<16|(255&p.charCodeAt(++g))<<24))+(59797*(f>>>16)<<16),h=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(m){case 3:h^=(255&p.charCodeAt(g+2))<<16;case 2:h^=(255&p.charCodeAt(g+1))<<8;case 1:h=1540483477*(65535&(h^=255&p.charCodeAt(g)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}(r)+c;return{name:d,styles:r,next:ia}}var Ry=!!X.useInsertionEffect&&X.useInsertionEffect,Iy=Ry||function(e){return e()},km=Ry||X.useLayoutEffect,Py=X.createContext(typeof HTMLElement<"u"?Uk({key:"css"}):null);Py.Provider;var Y2,Em,n3=function(e){return u.forwardRef(function(t,n){var o=u.useContext(Py);return e(t,o,n)})},t0=X.createContext({}),x5={}.hasOwnProperty,b5="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xk=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return e3(t,n,o),Iy(function(){return t3(t,n,o)}),null},Yk=n3(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[b5],i=[o],a="";typeof e.className=="string"?a=_y(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=u1(i,void 0,X.useContext(t0));a+=t.key+"-"+l.name;var c={};for(var d in e)x5.call(e,d)&&d!=="css"&&d!==b5&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),X.createElement(X.Fragment,null,X.createElement(Xk,{cache:t,serialized:l,isStringTag:typeof r=="string"}),X.createElement(r,c))}),Mm=function(e,t){var n=arguments;if(t==null||!x5.call(t,"css"))return X.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Yk,r[1]=function(a,l){var c={};for(var d in l)x5.call(l,d)&&(c[d]=l[d]);return c[b5]=a,c}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return X.createElement.apply(null,r)};Y2=Mm||(Mm={}),Em||(Em=Y2.JSX||(Y2.JSX={}));var Jk=n3(function(e,t){var n=u1([e.styles],void 0,X.useContext(t0)),o=X.useRef();return km(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]),km(function(){var r=o.current,i=r[0];if(r[1])r[1]=!1;else{if(n.next!==void 0&&t3(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 o3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u1(t)}function p1(){var e=o3.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 Qk=/^((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)-.*))$/,eE=My(function(e){return Qk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tE=function(e){return e!=="theme"},Tm=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?eE:tE},_m=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},nE=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return e3(t,n,o),Iy(function(){return t3(t,n,o)}),null},v5=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=_m(t,n,i),c=l||Tm(a),d=!c("as");return function(){var p=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var g=p.length,m=1;m<g;m++)f.push(p[m],h[m])}var y=n3(function(x,v,b){var w=d&&x.as||a,M="",k=[],j=x;if(x.theme==null){for(var _ in j={},x)j[_]=x[_];j.theme=X.useContext(t0)}typeof x.className=="string"?M=_y(v.registered,k,x.className):x.className!=null&&(M=x.className+" ");var L=u1(f.concat(k),v.registered,j);M+=v.key+"-"+L.name,r!==void 0&&(M+=" "+r);var T=d&&l===void 0?Tm(w):c,D={};for(var C in x)d&&C==="as"||T(C)&&(D[C]=x[C]);return D.className=M,b&&(D.ref=b),X.createElement(X.Fragment,null,X.createElement(nE,{cache:v,serialized:L,isStringTag:typeof w=="string"}),X.createElement(w,D))});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=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+r}}),y.withComponent=function(x,v){return e(x,iu({},n,v,{shouldForwardProp:_m(y,v,!0)})).apply(void 0,f)},y}}.bind(null);function Oy(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(Jk,{styles:o})}function a2(e,t){return v5(e,t)}function r3(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){v5[e]=v5(e)});const jm=[];function Mr(e){return jm[0]=e,u1(jm)}var Rm,Im,Pm={exports:{}},no={};function oE(){if(Rm)return no;Rm=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"),f=Symbol.for("react.lazy"),h=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 h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return no.ContextConsumer=i,no.ContextProvider=a,no.Element=e,no.ForwardRef=l,no.Fragment=n,no.Lazy=f,no.Memo=p,no.Portal=t,no.Profiler=r,no.StrictMode=o,no.Suspense=c,no.SuspenseList=d,no.isContextConsumer=function(y){return m(y)===i},no.isContextProvider=function(y){return m(y)===a},no.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},no.isForwardRef=function(y){return m(y)===l},no.isFragment=function(y){return m(y)===n},no.isLazy=function(y){return m(y)===f},no.isMemo=function(y){return m(y)===p},no.isPortal=function(y){return m(y)===t},no.isProfiler=function(y){return m(y)===r},no.isStrictMode=function(y){return m(y)===o},no.isSuspense=function(y){return m(y)===c},no.isSuspenseList=function(y){return m(y)===d},no.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===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},no.typeOf=m,no}function rE(){return Im||(Im=1,Pm.exports=oE()),Pm.exports}var Dy=rE();function aa(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 Ay(e){if(X.isValidElement(e)||Dy.isValidElementType(e)||!aa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ay(e[n])}),t}function cr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return aa(e)&&aa(t)&&Object.keys(t).forEach(r=>{X.isValidElement(t[r])||Dy.isValidElementType(t[r])?o[r]=t[r]:aa(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&aa(e[r])?o[r]=cr(e[r],t[r],n):n.clone?o[r]=aa(t[r])?Ay(t[r]):t[r]:o[r]=t[r]}),o}function iE(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 f=Object.keys(p).map(h=>({key:h,val:p[h]}))||[];return f.sort((h,g)=>h.val-g.val),f.reduce((h,g)=>({...h,[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,f){const h=a.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:f)-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 f=a.indexOf(p);return f===0?l(a[1]):f===a.length-1?c(a[f]):d(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")},unit:n,...r}}function Om(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const aE={borderRadius:4};function hc(e,t){return t?cr(e,t,{clone:!1}):e}const l2={xs:0,sm:600,md:900,lg:1200,xl:1536},Dm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${l2[e]}px)`},lE={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:l2[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||Dm;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||Dm;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,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:lE,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||l2).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 Am(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function xt(e){if(typeof e!="string")throw new Error(Ta(7));return e.charAt(0).toUpperCase()+e.slice(1)}function s2(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 au(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:s2(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=s2(a.theme,o)||{};return _a(a,l,d=>{let p=au(c,r,d);return d===p&&typeof d=="string"&&(p=au(c,r,`${t}${d==="default"?"":xt(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const sE={m:"margin",p:"padding"},cE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dE=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Lm[e])return[e];e=Lm[e]}const[t,n]=e.split(""),o=sE[t],r=cE[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Ly=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function h1(e,t,n,o){const r=s2(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 i3(e){return h1(e,"spacing",8)}function f1(e,t){return typeof t=="string"||t==null?t:e(t)}function uE(e,t,n,o){if(!t.includes(n))return null;const r=function(i,a){return l=>i.reduce((c,d)=>(c[d]=f1(a,l),c),{})}(dE(n),o);return _a(e,e[n],r)}function Fy(e,t){const n=i3(e.theme);return Object.keys(e).map(o=>uE(e,t,o,n)).reduce(hc,{})}function Ro(e){return Fy(e,Ly)}function Io(e){return Fy(e,zy)}function c2(e=8,t=i3({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 d2(...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]?hc(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 Ko({prop:e,themeKey:"borders",transform:t})}Ro.propTypes={},Ro.filterProps=Ly,Io.propTypes={},Io.filterProps=zy;const pE=Ii("border",bi),hE=Ii("borderTop",bi),fE=Ii("borderRight",bi),mE=Ii("borderBottom",bi),gE=Ii("borderLeft",bi),yE=Ii("borderColor"),xE=Ii("borderTopColor"),bE=Ii("borderRightColor"),vE=Ii("borderBottomColor"),wE=Ii("borderLeftColor"),SE=Ii("outline",bi),CE=Ii("outlineColor"),zd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=h1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:f1(t,o)});return _a(e,e.borderRadius,n)}return null};zd.propTypes={},zd.filterProps=["borderRadius"],d2(pE,hE,fE,mE,gE,yE,xE,bE,vE,wE,zd,SE,CE);const lu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=h1(e.theme,"spacing",8),n=o=>({gap:f1(t,o)});return _a(e,e.gap,n)}return null};lu.propTypes={},lu.filterProps=["gap"];const su=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=h1(e.theme,"spacing",8),n=o=>({columnGap:f1(t,o)});return _a(e,e.columnGap,n)}return null};su.propTypes={},su.filterProps=["columnGap"];const cu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=h1(e.theme,"spacing",8),n=o=>({rowGap:f1(t,o)});return _a(e,e.rowGap,n)}return null};cu.propTypes={},cu.filterProps=["rowGap"];function Ms(e,t){return t==="grey"?t:e}d2(lu,su,cu,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}d2(Ko({prop:"color",themeKey:"palette",transform:Ms}),Ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ms}),Ko({prop:"backgroundColor",themeKey:"palette",transform:Ms}));const kE=Ko({prop:"width",transform:Qr}),a3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||l2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Qr(n)}};return _a(e,e.maxWidth,t)}return null};a3.filterProps=["maxWidth"];const EE=Ko({prop:"minWidth",transform:Qr}),ME=Ko({prop:"height",transform:Qr}),TE=Ko({prop:"maxHeight",transform:Qr}),_E=Ko({prop:"minHeight",transform:Qr});Ko({prop:"size",cssProperty:"width",transform:Qr}),Ko({prop:"size",cssProperty:"height",transform:Qr});d2(kE,a3,EE,ME,TE,_E,Ko({prop:"boxSizing"}));const m1={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:zd},color:{themeKey:"palette",transform:Ms},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ms},backgroundColor:{themeKey:"palette",transform:Ms},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:lu},rowGap:{style:cu},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:Qr},maxWidth:{style:a3},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"}},Pl=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 f=s2(o,c)||{};return p?p(i):_a(i,n,h=>{let g=au(f,d,h);return h===g&&typeof h=="string"&&(g=au(f,d,`${t}${h==="default"?"":xt(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??m1;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((y,x)=>(y[g.up(x)]={},y),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=function(y,x){return typeof y=="function"?y(x):y}(d[g],r);if(m!=null)if(typeof m=="object")if(a[g])h=hc(h,e(g,m,r,a));else{const y=_a({theme:r},m,x=>({[g]:x}));(function(...x){const v=x.reduce((w,M)=>w.concat(Object.keys(M)),[]),b=new Set(v);return x.every(w=>b.size===Object.keys(w).length)})(y,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=hc(h,y)}else h=hc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Om(r,Am(f,h))}:Om(r,Am(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function jE(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=cr({breakpoints:iE(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c2(r),shape:{...aE,...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 f={},h=g=>(p(f,g),f);return p(h),{...c,containerQueries:h}}(l),l.applyStyles=jE,l=t.reduce((c,d)=>cr(c,d),l),l.unstable_sxConfig={...m1,...a?.unstable_sxConfig},l.unstable_sx=function(c){return Pl({sx:c,theme:this})},l}function du(e=null){const t=X.useContext(t0);return t&&(n=t,Object.keys(n).length!==0)?t:e;var n}Pl.filterProps=["sx"];const RE=l3();function g1(e=RE){return du(e)}function zm(e){const t=Mr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function By({styles:e,themeId:t,defaultTheme:n={}}){const o=g1(n),r=t&&o[t]||o;let i=typeof e=="function"?e(r):e;return r.modularCssLayers&&(i=Array.isArray(i)?i.map(a=>zm(typeof a=="function"?a(r):a)):zm(i)),s.jsx(Oy,{styles:i})}function Ny(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=(a=>{const l={systemProps:{},otherProps:{}},c=a?.theme?.unstable_sxConfig??m1;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 aa(l)?{...o,...l}:o}:{...o,...t},{...r,sx:i}}const Fm=e=>e,$y=(()=>{let e=Fm;return{configure(t){e=t},generate:t=>e(t),reset(){e=Fm}}})();function Vy(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=Vy(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ot(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Vy(e))&&(o&&(o+=" "),o+=t);return o}const IE={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 Rn(e,t,n="Mui"){const o=IE[t];return o?`${n}-${o}`:`${$y.generate(e)}-${t}`}function Mn(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Rn(e,r,n)}),o}function Hy(e){const{variants:t,...n}=e,o={variants:t,style:Mr(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Mr(r.style))}),o}const PE=l3();function J2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function bl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OE(e){return e?(t,n)=>n[e]:null}function Fd(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>Fd(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?bl(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?bl(Mr(a),n):a}return Wy(e,o.variants,[r],n)}return o?.isProcessed?n?bl(Mr(o.style),n):o.style:n?bl(Mr(o),n):o}function Wy(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?bl(Mr(a.style(r)),o):a.style(r))):n.push(o?bl(Mr(a.style),o):a.style)}return n}function DE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Pc(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]=Pc(i[c],a[c])}}else n[r]=a;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}const Br=typeof window<"u"?X.useLayoutEffect:X.useEffect;function AE(e,t,n,o,r){const[i,a]=X.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Br(()=>{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 Uy={...X}.useSyncExternalStore;function LE(e,t,n,o,r){const i=X.useCallback(()=>t,[t]),a=X.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]=X.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 Uy(c,l,a)}function qy(e={}){const{themeId:t}=e;return function(n,o={}){let r=du();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(f){const{theme:h,name:g,props:m}=f;return h&&h.components&&h.components[g]&&h.components[g].defaultProps?Pc(h.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
|
-
`)),(Uy!==void 0?LE:AE)(p,a,l,c,d)}}function ds(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function s3(e,t=0,n=1){return ds(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(Ta(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(Ta(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}qy();const G0=(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 u2(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 Ky(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])),u2({type:l,values:c})}function w5(e){let t=(e=Qa(e)).type==="hsl"||e.type==="hsla"?Qa(Ky(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 pt(e,t){return e=Qa(e),t=s3(t),e.type!=="rgb"&&e.type!=="hsl"||(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,u2(e)}function N1(e,t,n){try{return pt(e,t)}catch{return e}}function Ol(e,t){if(e=Qa(e),t=s3(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 u2(e)}function lo(e,t,n){try{return Ol(e,t)}catch{return e}}function Dl(e,t){if(e=Qa(e),t=s3(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 u2(e)}function so(e,t,n){try{return Dl(e,t)}catch{return e}}function $1(e,t,n){try{return function(o,r=.15){return w5(o)>.5?Ol(o,r):Dl(o,r)}(e,t)}catch{return e}}function Bm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function p2(e,t=166){let n;function o(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return o.clear=()=>{clearTimeout(n)},o}function Q2(e,t){return X.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function ur(e){return e&&e.ownerDocument||document}function Hi(e){return ur(e).defaultView||window}function Nm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $m=0;const Vm={...X}.useId;function n0(e){if(Vm!==void 0){const t=Vm();return e??t}return function(t){const[n,o]=X.useState(t),r=t||n;return X.useEffect(()=>{n==null&&($m+=1,o(`mui-${$m}`))},[n]),r}(e)}function Oc({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=X.useRef(e!==void 0),[i,a]=X.useState(t);return[r?e:i,X.useCallback(l=>{r||a(l)},[])]}function zr(e){const t=X.useRef(e);return Br(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}function Xo(...e){const t=X.useRef(void 0),n=X.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 X.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Hm={};function Gy(e,t){const n=X.useRef(Hm);return n.current===Hm&&(n.current=e(t)),n}const zE=[];class h2{static create(){return new h2}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 vl(){const e=Gy(h2.create).current;var t;return t=e.disposeEffect,X.useEffect(t,zE),e}function zs(e){try{return e.matches(":focus-visible")}catch{}return!1}function Zy(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const FE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function In(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 Xy(e,t,n){return e===void 0||typeof e=="string"?t:{...t,ownerState:{...t.ownerState,...n}}}function fc(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 Wm(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 Yy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const g=Ot(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=fc({...r,...o}),l=Wm(o),c=Wm(r),d=t(a),p=Ot(d?.className,n?.className,i,r?.className,o?.className),f={...d?.style,...n?.style,...r?.style,...o?.style},h={...d,...n,...c,...l};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:d.ref}}function Jy(e,t,n){return typeof e=="function"?e(t,n):e}function Vr(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Jy(n,o),{props:l,internalRef:c}=Yy({...i,externalSlotProps:a});return Xy(t,{...l,ref:Xo(c,a?.ref,e.additionalProps?.ref)},o)}function o0(e){return parseInt(X.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Qy=X.createContext(null);function c3(){return X.useContext(Qy)}const BE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function NE(e){const{children:t,theme:n}=e,o=c3(),r=X.useMemo(()=>{const i=o===null?{...n}:function(a,l){return typeof l=="function"?l(a):{...a,...l}}(o,n);return i!=null&&(i[BE]=o!==null),i},[n,o]);return s.jsx(Qy.Provider,{value:r,children:t})}const ex=X.createContext();function $E({value:e,...t}){return s.jsx(ex.Provider,{value:e??!0,...t})}const r0=()=>X.useContext(ex)??!1,tx=X.createContext(void 0);function VE({value:e,children:t}){return s.jsx(tx.Provider,{value:e,children:t})}function HE({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?Pc(a.defaultProps,i):a.styleOverrides||a.variants?i:Pc(a,i)}({props:e,name:t,theme:{components:X.useContext(tx)}})}const Um={};function qm(e,t,n,o=!1){return X.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 nx(e){const{children:t,theme:n,themeId:o}=e,r=du(Um),i=c3()||Um,a=qm(o,r,n),l=qm(o,i,n,!0),c=(o?a[o]:a).direction==="rtl",d=function(p){const f=du(),h=n0()||"",{modularCssLayers:g}=p;let m="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return m=g&&f===null?typeof g=="string"?g.replace(/mui(?!\.)/g,m):`@layer ${m};`:"",Br(()=>{const y=document.querySelector("head");if(!y)return;const x=y.firstChild;if(m){if(x&&x.hasAttribute?.("data-mui-layer-order")&&x.getAttribute("data-mui-layer-order")===h)return;const v=document.createElement("style");v.setAttribute("data-mui-layer-order",h),v.textContent=m,y.prepend(v)}else y.querySelector(`style[data-mui-layer-order="${h}"]`)?.remove()},[m,h]),m?s.jsx(By,{styles:m}):null}(a);return s.jsx(NE,{theme:l,children:s.jsx(t0.Provider,{value:a,children:s.jsx($E,{value:c,children:s.jsxs(VE,{value:o?a[o].components:a.components,children:[d,t]})})})})}const Km={theme:void 0},S5="mode",C5="color-scheme",WE="data-color-scheme";function UE(){}const qE=({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 UE;const o=r=>{const i=r.newValue;r.key===e&&n(i)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function ep(){}function Gm(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Zm(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 KE(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:i=S5,colorSchemeStorageKey:a=C5,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=qE,noSsr:d=!1}=e,p=r.join(","),f=r.length>1,h=X.useMemo(()=>c?.({key:i,storageWindow:l}),[c,i,l]),g=X.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),m=X.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,x]=X.useState(()=>{const L=h?.get(t)||t,T=g?.get(n)||n,D=m?.get(o)||o;return{mode:L,systemMode:Gm(L),lightColorScheme:T,darkColorScheme:D}}),[v,b]=X.useState(d||!f);X.useEffect(()=>{b(!0)},[]);const w=function(L){return Zm(L,T=>T==="light"?L.lightColorScheme:T==="dark"?L.darkColorScheme:void 0)}(y),M=X.useCallback(L=>{x(T=>{if(L===T.mode)return T;const D=L??t;return h?.set(D),{...T,mode:D,systemMode:Gm(D)}})},[h,t]),k=X.useCallback(L=>{L?typeof L=="string"?L&&!p.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):x(T=>{const D={...T};return Zm(T,C=>{C==="light"&&(g?.set(L),D.lightColorScheme=L),C==="dark"&&(m?.set(L),D.darkColorScheme=L)}),D}):x(T=>{const D={...T},C=L.light===null?n:L.light,S=L.dark===null?o:L.dark;return C&&(p.includes(C)?(D.lightColorScheme=C,g?.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),S&&(p.includes(S)?(D.darkColorScheme=S,m?.set(S)):console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`)),D}):x(T=>(g?.set(n),m?.set(o),{...T,lightColorScheme:n,darkColorScheme:o}))},[p,g,m,n,o]),j=X.useCallback(L=>{y.mode==="system"&&x(T=>{const D=L?.matches?"dark":"light";return T.systemMode===D?T:{...T,systemMode:D}})},[y.mode]),_=X.useRef(j);return _.current=j,X.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const L=(...D)=>_.current(...D),T=window.matchMedia("(prefers-color-scheme: dark)");return T.addListener(L),L(T),()=>{T.removeListener(L)}},[f]),X.useEffect(()=>{if(f){const L=h?.subscribe(C=>{C&&!["light","dark","system"].includes(C)||M(C||t)})||ep,T=g?.subscribe(C=>{C&&!p.match(C)||k({light:C})})||ep,D=m?.subscribe(C=>{C&&!p.match(C)||k({dark:C})})||ep;return()=>{L(),T(),D()}}},[k,M,p,t,l,f,h,g,m]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?w:void 0,setMode:M,setColorScheme:k}}function d3(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 Xm=(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 tp(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const h=`--${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,{[h]:g}),Xm(i,d,`var(${h})`,f),Xm(a,d,`var(${h}, ${g})`,f)}},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:a}}function ox(){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:jc.white,default:jc.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 GE=ox();function rx(){return{text:{primary:jc.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:jc.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 Ym=rx();function Jm(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=Dl(e.main,r):t==="dark"&&(e.dark=Ol(e.main,i)))}function u3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:dk,light:ck,dark:dm}:{main:uk,light:dm,dark:pk}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:rk,light:ok,dark:ak}:{main:lk,light:ik,dark:sk}}(t),l=e.error||function(m="light"){return m==="dark"?{main:tk,light:QC,dark:cm}:{main:cm,light:ek,dark:nk}}(t),c=e.info||function(m="light"){return m==="dark"?{main:fk,light:hk,dark:um}:{main:um,light:mk,dark:gk}}(t),d=e.success||function(m="light"){return m==="dark"?{main:xk,light:yk,dark:vk}:{main:wk,light:bk,dark:Sk}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:kk,light:Ck,dark:Mk}:{main:"#ed6c02",light:Ek,dark:Tk}}(t);function f(m){return function(x,v){const b=w5(x),w=w5(v);return(Math.max(b,w)+.05)/(Math.min(b,w)+.05)}(m,Ym.text.primary)>=n?Ym.text.primary:GE.text.primary}const h=({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(Ta(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Ta(12,y?` (${y})`:"",JSON.stringify(m.main)));return Jm(m,"light",v,o),Jm(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=ox():t==="dark"&&(g=rx()),cr({common:{...jc},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:_k,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}function ZE(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 Qm={textTransform:"uppercase"},e6='"Roboto", "Helvetica", "Arial", sans-serif';function XE(e,t){const{fontFamily:n=e6,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,M)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===e6?{letterSpacing:(k=w/v,Math.round(1e5*k)/1e5+"em")}:{},...M,...d};var k},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,Qm),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Qm),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},f,{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 YE=["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)],JE={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)"},ix={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function t6(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 eM(e){const t={...JE,...e.easing},n={...ix,...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:t6(i)} ${a} ${typeof l=="string"?l:t6(l)}`).join(",")},...e,easing:t,duration:n}}const tM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nM(e){return aa(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ax(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];!nM(l)||a.startsWith("unstable_")?delete o[a]:aa(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 k5(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(Ta(20));const p=u3(i),f=l3(e);let h=cr(f,{mixins:(g=f.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:YE.slice(),typography:XE(p,l),transitions:eM(a),zIndex:{...tM}});var g,m;return h=cr(h,d),h=t.reduce((y,x)=>cr(y,x),h),h.unstable_sxConfig={...m1,...d?.unstable_sxConfig},h.unstable_sx=function(y){return Pl({sx:y,theme:this})},h.toRuntimeSource=ax,h}function E5(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const oM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=E5(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function n6(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function o6(e){return e==="dark"?oM:[]}function rM(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const iM=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 Z0(e){return typeof e=="string"&&e.startsWith("hsl")?Ky(e):e}function ma(e,t){`${t}Channel`in e||(e[`${t}Channel`]=G0(Z0(e[t])))}const Zi=e=>{try{return e()}catch{}};function np(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,...f}=l,h=u3(c);return{palette:h,opacity:{...n6(h.mode),...d},overlays:p||o6(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=k5({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...n6(r),...t?.opacity},overlays:t?.overlays||o6(r)},a}function aM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=rM,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...d}=e,p=Object.keys(n)[0],f=o||(n.light&&p!=="light"?"light":p),h=((D="mui")=>d3(D))(i),{[f]:g,light:m,dark:y,...x}=n,v={...x};let b=g;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ta(21,f));const w=np(v,b,d,f);m&&!v.light&&np(v,m,void 0,"light"),y&&!v.dark&&np(v,y,void 0,"dark");let M={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:v,font:{...ZE(w.typography),...w.font},spacing:(k=d.spacing,typeof k=="number"?`${k}px`:typeof k=="string"||typeof k=="function"||Array.isArray(k)?k:"8px")};var k;Object.keys(M.colorSchemes).forEach(D=>{const C=M.colorSchemes[D].palette,S=P=>{const I=P.split("-"),z=I[1],A=I[2];return h(P,C[z][A])};var R;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")),R=C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(P=>{R[P]||(R[P]={})}),C.mode==="light"){at(C.Alert,"errorColor",lo(C.error.light,.6)),at(C.Alert,"infoColor",lo(C.info.light,.6)),at(C.Alert,"successColor",lo(C.success.light,.6)),at(C.Alert,"warningColor",lo(C.warning.light,.6)),at(C.Alert,"errorFilledBg",S("palette-error-main")),at(C.Alert,"infoFilledBg",S("palette-info-main")),at(C.Alert,"successFilledBg",S("palette-success-main")),at(C.Alert,"warningFilledBg",S("palette-warning-main")),at(C.Alert,"errorFilledColor",Zi(()=>C.getContrastText(C.error.main))),at(C.Alert,"infoFilledColor",Zi(()=>C.getContrastText(C.info.main))),at(C.Alert,"successFilledColor",Zi(()=>C.getContrastText(C.success.main))),at(C.Alert,"warningFilledColor",Zi(()=>C.getContrastText(C.warning.main))),at(C.Alert,"errorStandardBg",so(C.error.light,.9)),at(C.Alert,"infoStandardBg",so(C.info.light,.9)),at(C.Alert,"successStandardBg",so(C.success.light,.9)),at(C.Alert,"warningStandardBg",so(C.warning.light,.9)),at(C.Alert,"errorIconColor",S("palette-error-main")),at(C.Alert,"infoIconColor",S("palette-info-main")),at(C.Alert,"successIconColor",S("palette-success-main")),at(C.Alert,"warningIconColor",S("palette-warning-main")),at(C.AppBar,"defaultBg",S("palette-grey-100")),at(C.Avatar,"defaultBg",S("palette-grey-400")),at(C.Button,"inheritContainedBg",S("palette-grey-300")),at(C.Button,"inheritContainedHoverBg",S("palette-grey-A100")),at(C.Chip,"defaultBorder",S("palette-grey-400")),at(C.Chip,"defaultAvatarColor",S("palette-grey-700")),at(C.Chip,"defaultIconColor",S("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",so(C.primary.main,.62)),at(C.LinearProgress,"secondaryBg",so(C.secondary.main,.62)),at(C.LinearProgress,"errorBg",so(C.error.main,.62)),at(C.LinearProgress,"infoBg",so(C.info.main,.62)),at(C.LinearProgress,"successBg",so(C.success.main,.62)),at(C.LinearProgress,"warningBg",so(C.warning.main,.62)),at(C.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.11)`),at(C.Slider,"primaryTrack",so(C.primary.main,.62)),at(C.Slider,"secondaryTrack",so(C.secondary.main,.62)),at(C.Slider,"errorTrack",so(C.error.main,.62)),at(C.Slider,"infoTrack",so(C.info.main,.62)),at(C.Slider,"successTrack",so(C.success.main,.62)),at(C.Slider,"warningTrack",so(C.warning.main,.62));const P=$1(C.background.default,.8);at(C.SnackbarContent,"bg",P),at(C.SnackbarContent,"color",Zi(()=>C.getContrastText(P))),at(C.SpeedDialAction,"fabHoverBg",$1(C.background.paper,.15)),at(C.StepConnector,"border",S("palette-grey-400")),at(C.StepContent,"border",S("palette-grey-400")),at(C.Switch,"defaultColor",S("palette-common-white")),at(C.Switch,"defaultDisabledColor",S("palette-grey-100")),at(C.Switch,"primaryDisabledColor",so(C.primary.main,.62)),at(C.Switch,"secondaryDisabledColor",so(C.secondary.main,.62)),at(C.Switch,"errorDisabledColor",so(C.error.main,.62)),at(C.Switch,"infoDisabledColor",so(C.info.main,.62)),at(C.Switch,"successDisabledColor",so(C.success.main,.62)),at(C.Switch,"warningDisabledColor",so(C.warning.main,.62)),at(C.TableCell,"border",so(N1(C.divider,1),.88)),at(C.Tooltip,"bg",N1(C.grey[700],.92))}if(C.mode==="dark"){at(C.Alert,"errorColor",so(C.error.light,.6)),at(C.Alert,"infoColor",so(C.info.light,.6)),at(C.Alert,"successColor",so(C.success.light,.6)),at(C.Alert,"warningColor",so(C.warning.light,.6)),at(C.Alert,"errorFilledBg",S("palette-error-dark")),at(C.Alert,"infoFilledBg",S("palette-info-dark")),at(C.Alert,"successFilledBg",S("palette-success-dark")),at(C.Alert,"warningFilledBg",S("palette-warning-dark")),at(C.Alert,"errorFilledColor",Zi(()=>C.getContrastText(C.error.dark))),at(C.Alert,"infoFilledColor",Zi(()=>C.getContrastText(C.info.dark))),at(C.Alert,"successFilledColor",Zi(()=>C.getContrastText(C.success.dark))),at(C.Alert,"warningFilledColor",Zi(()=>C.getContrastText(C.warning.dark))),at(C.Alert,"errorStandardBg",lo(C.error.light,.9)),at(C.Alert,"infoStandardBg",lo(C.info.light,.9)),at(C.Alert,"successStandardBg",lo(C.success.light,.9)),at(C.Alert,"warningStandardBg",lo(C.warning.light,.9)),at(C.Alert,"errorIconColor",S("palette-error-main")),at(C.Alert,"infoIconColor",S("palette-info-main")),at(C.Alert,"successIconColor",S("palette-success-main")),at(C.Alert,"warningIconColor",S("palette-warning-main")),at(C.AppBar,"defaultBg",S("palette-grey-900")),at(C.AppBar,"darkBg",S("palette-background-paper")),at(C.AppBar,"darkColor",S("palette-text-primary")),at(C.Avatar,"defaultBg",S("palette-grey-600")),at(C.Button,"inheritContainedBg",S("palette-grey-800")),at(C.Button,"inheritContainedHoverBg",S("palette-grey-700")),at(C.Chip,"defaultBorder",S("palette-grey-700")),at(C.Chip,"defaultAvatarColor",S("palette-grey-300")),at(C.Chip,"defaultIconColor",S("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",lo(C.primary.main,.5)),at(C.LinearProgress,"secondaryBg",lo(C.secondary.main,.5)),at(C.LinearProgress,"errorBg",lo(C.error.main,.5)),at(C.LinearProgress,"infoBg",lo(C.info.main,.5)),at(C.LinearProgress,"successBg",lo(C.success.main,.5)),at(C.LinearProgress,"warningBg",lo(C.warning.main,.5)),at(C.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.13)`),at(C.Slider,"primaryTrack",lo(C.primary.main,.5)),at(C.Slider,"secondaryTrack",lo(C.secondary.main,.5)),at(C.Slider,"errorTrack",lo(C.error.main,.5)),at(C.Slider,"infoTrack",lo(C.info.main,.5)),at(C.Slider,"successTrack",lo(C.success.main,.5)),at(C.Slider,"warningTrack",lo(C.warning.main,.5));const P=$1(C.background.default,.98);at(C.SnackbarContent,"bg",P),at(C.SnackbarContent,"color",Zi(()=>C.getContrastText(P))),at(C.SpeedDialAction,"fabHoverBg",$1(C.background.paper,.15)),at(C.StepConnector,"border",S("palette-grey-600")),at(C.StepContent,"border",S("palette-grey-600")),at(C.Switch,"defaultColor",S("palette-grey-300")),at(C.Switch,"defaultDisabledColor",S("palette-grey-600")),at(C.Switch,"primaryDisabledColor",lo(C.primary.main,.55)),at(C.Switch,"secondaryDisabledColor",lo(C.secondary.main,.55)),at(C.Switch,"errorDisabledColor",lo(C.error.main,.55)),at(C.Switch,"infoDisabledColor",lo(C.info.main,.55)),at(C.Switch,"successDisabledColor",lo(C.success.main,.55)),at(C.Switch,"warningDisabledColor",lo(C.warning.main,.55)),at(C.TableCell,"border",lo(N1(C.divider,1),.68)),at(C.Tooltip,"bg",N1(C.grey[700],.92))}ma(C.background,"default"),ma(C.background,"paper"),ma(C.common,"background"),ma(C.common,"onBackground"),ma(C,"divider"),Object.keys(C).forEach(P=>{const I=C[P];P!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&at(C[P],"mainChannel",G0(Z0(I.main))),I.light&&at(C[P],"lightChannel",G0(Z0(I.light))),I.dark&&at(C[P],"darkChannel",G0(Z0(I.dark))),I.contrastText&&at(C[P],"contrastTextChannel",G0(Z0(I.contrastText))),P==="text"&&(ma(C[P],"primary"),ma(C[P],"secondary")),P==="action"&&(I.active&&ma(C[P],"active"),I.selected&&ma(C[P],"selected")))})}),M=t.reduce((D,C)=>cr(D,C),M);const j={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:iM(M)},{vars:_,generateThemeVars:L,generateStyleSheets:T}=function(D,C={}){const{getSelector:S=G,disableCssColorScheme:R,colorSchemeSelector:P}=C,{colorSchemes:I={},components:z,defaultColorScheme:A="light",...O}=D,{vars:N,css:F,varsWithDefaults:E}=tp(O,C);let B=E;const H={},{[A]:U,...Z}=I;if(Object.entries(Z||{}).forEach(([V,le])=>{const{vars:re,css:ge,varsWithDefaults:Q}=tp(le,C);B=cr(B,Q),H[V]={css:ge,vars:re}}),U){const{css:V,vars:le,varsWithDefaults:re}=tp(U,C);B=cr(B,re),H[A]={css:V,vars:le}}function G(V,le){let re=P;if(P==="class"&&(re=".%s"),P==="data"&&(re="[data-%s]"),P?.startsWith("data-")&&!P.includes("%s")&&(re=`[${P}="%s"]`),V){if(re==="media")return D.defaultColorScheme===V?":root":{[`@media (prefers-color-scheme: ${I[V]?.palette?.mode||V})`]:{":root":le}};if(re)return D.defaultColorScheme===V?`:root, ${re.replace("%s",String(V))}`:re.replace("%s",String(V))}return":root"}return{vars:B,generateThemeVars:()=>{let V={...N};return Object.entries(H).forEach(([,{vars:le}])=>{V=cr(V,le)}),V},generateStyleSheets:()=>{const V=[],le=D.defaultColorScheme||"light";function re(xe,be){Object.keys(be).length&&V.push(typeof xe=="string"?{[xe]:{...be}}:xe)}re(S(void 0,{...F}),F);const{[le]:ge,...Q}=H;if(ge){const{css:xe}=ge,be=I[le]?.palette?.mode,Fe=!R&&be?{colorScheme:be,...xe}:{...xe};re(S(le,{...Fe}),Fe)}return Object.entries(Q).forEach(([xe,{css:be}])=>{const Fe=I[xe]?.palette?.mode,ee=!R&&Fe?{colorScheme:Fe,...be}:{...be};re(S(xe,{...ee}),ee)}),V}}}(M,j);return M.vars=_,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([D,C])=>{M[D]=C}),M.generateThemeVars=L,M.generateStyleSheets=T,M.generateSpacing=function(){return c2(d.spacing,i3(this))},M.getColorSchemeSelector=function(D){return function(C){return D==="media"?`@media (prefers-color-scheme: ${C})`:D?D.startsWith("data-")&&!D.includes("%s")?`[${D}="${C}"] &`:D==="class"?`.${C} &`:D==="data"?`[data-${C}] &`:`${D.replace("%s",C)} &`:"&"}}(l),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=a,M.unstable_sxConfig={...m1,...d?.unstable_sxConfig},M.unstable_sx=function(D){return Pl({sx:D,theme:this})},M.toRuntimeSource=ax,M}function r6(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:u3({...n===!0?{}:n.palette,mode:t})})}function lx(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 k5(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=k5({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},r6(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},r6(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),aM({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const p3=lx();function i0(){const e=g1(p3);return e[c1]||e}function f2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xr=e=>f2(e)&&e!=="classes",Et=function(e={}){const{themeId:t,defaultTheme:n=PE,rootShouldForwardProp:o=J2,slotShouldForwardProp:r=J2}=e;function i(a){(function(l,c,d){l.theme=function(p){for(const f in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme})(a,t,n)}return(a,l={})=>{r3(a,k=>k.filter(j=>j!==Pl));const{name:c,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:h=OE(DE(d)),...g}=l,m=c&&c.startsWith("Mui")||d?"components":"custom",y=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=f||!1;let v=J2;d==="Root"||d==="root"?v=o:d?v=r:function(k){return typeof k=="string"&&k.charCodeAt(0)>96}(a)&&(v=void 0);const b=a2(a,{shouldForwardProp:v,label:void 0,...g}),w=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return Fd(j,k,j.theme.modularCssLayers?m:void 0)};if(aa(k)){const j=Hy(k);return function(_){return j.variants?Fd(_,j,_.theme.modularCssLayers?m:void 0):_.theme.modularCssLayers?bl(j.style,m):j.style}}return k},M=(...k)=>{const j=[],_=k.map(w),L=[];if(j.push(i),c&&h&&L.push(function(C){const S=C.theme,R=S.components?.[c]?.styleOverrides;if(!R)return null;const P={};for(const I in R)P[I]=Fd(C,R[I],C.theme.modularCssLayers?"theme":void 0);return h(C,P)}),c&&!y&&L.push(function(C){const S=C.theme,R=S?.components?.[c]?.variants;return R?Wy(C,R,[],C.theme.modularCssLayers?"theme":void 0):null}),x||L.push(Pl),Array.isArray(_[0])){const C=_.shift(),S=new Array(j.length).fill(""),R=new Array(L.length).fill("");let P;P=[...S,...C,...R],P.raw=[...S,...C.raw,...R],j.unshift(P)}const T=[...j,..._,...L],D=b(...T);return a.muiName&&(D.muiName=a.muiName),D};return b.withConfig&&(M.withConfig=b.withConfig),M}}({themeId:c1,defaultTheme:p3,rootShouldForwardProp:Xr});function lM(e){return s.jsx(By,{...e,defaultTheme:p3,themeId:c1})}function sx(e){return function(t){return s.jsx(lM,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}const Sn=function(e){let t,n;return function(o){let r=t;return r!==void 0&&o.theme===n||(Km.theme=o.theme,r=Hy(e(Km)),t=r,n=o.theme),r}};function An(e){return HE(e)}function sM(e){return Rn("MuiSvgIcon",e)}Mn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cM=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)}`]]}})(Sn(({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}}]}))),Qe=X.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:f="0 0 24 24",...h}=n,g=X.isValidElement(o)&&o.type==="svg",m={...n,color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g},y={};d||(y.viewBox=f);const x=(v=>{const{color:b,fontSize:w,classes:M}=v;return In({root:["root",b!=="inherit"&&`color${xt(b)}`,`fontSize${xt(w)}`]},sM,M)})(m);return s.jsxs(cM,{as:a,className:Ot(x.root,r),focusable:"false",color:c,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t,...y,...h,...g&&o.props,ownerState:m,children:[g?o.props.children:o,p?s.jsx("title",{children:p}):null]})});function Kn(e,t){function n(o,r){return s.jsx(Qe,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=Qe.muiName,X.memo(X.forwardRef(n))}function cx(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=Ot(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=Ot(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 dx(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 M5(e,t){return M5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},M5(e,t)}function ux(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M5(e,t)}Qe.muiName="SvgIcon";const i6=!1,uu=u.createContext(null);var X0="unmounted",fl="exited",ml="entering",us="entered",T5="exiting",Ni=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=us:a=o.unmountOnExit||o.mountOnEnter?X0:fl,i.state={status:a},i.nextCallback=null,i}ux(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===X0?{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!==us&&(r=ml):i!==ml&&i!==us||(r=T5)}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:X0})},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(),f=a?p.appear:p.enter;!o&&!i||i6?this.safeSetState({status:us},function(){r.props.onEntered(c)}):(this.props.onEnter(c,d),this.safeSetState({status:ml},function(){r.props.onEntering(c,d),r.onTransitionEnd(f,function(){r.safeSetState({status:us},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&&!i6?(this.props.onExit(a),this.safeSetState({status:T5},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===X0)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=dx(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(uu.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function ts(){}function _5(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 wl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dM(e,t,n){var o=_5(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 f in i)f in a?p.length&&(d[f]=p,p=[]):p.push(f);var h={};for(var g in a){if(d[g])for(c=0;c<d[g].length;c++){var m=d[g][c];h[d[g][c]]=l(m)}h[g]=l(g)}for(c=0;c<p.length;c++)h[p[c]]=l(p[c]);return h}(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:wl(a,"exit",e),enter:wl(a,"enter",e)})):r[i]=u.cloneElement(a,{in:!1}):r[i]=u.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:wl(a,"exit",e),enter:wl(a,"enter",e)})}}),r}Ni.contextType=uu,Ni.propTypes={},Ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ts,onEntering:ts,onEntered:ts,onExit:ts,onExiting:ts,onExited:ts},Ni.UNMOUNTED=X0,Ni.EXITED=fl,Ni.ENTERING=ml,Ni.ENTERED=us,Ni.EXITING=T5;var uM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},j5=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}ux(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,_5(i.children,function(d){return u.cloneElement(d,{onExited:a.bind(null,d),in:!0,appear:wl(d,"appear",i),enter:wl(d,"enter",i),exit:wl(d,"exit",i)})})):dM(o,l,c),firstRender:!1}},n.handleExited=function(o,r){var i=_5(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(r),this.mounted&&this.setState(function(a){var l=iu({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,r=o.component,i=o.childFactory,a=dx(o,["component","childFactory"]),l=this.state.contextValue,c=uM(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,r===null?u.createElement(uu.Provider,{value:l},c):u.createElement(uu.Provider,{value:l},u.createElement(r,a,c))},t}(u.Component);j5.propTypes={},j5.defaultProps={component:"div",childFactory:function(e){return e}};const px=e=>e.scrollTop;function Dc(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 pM(e){return Rn("MuiPaper",e)}Mn("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 hM=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}`]]}})(Sn(({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)"}}]}))),Ti=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiPaper"}),o=i0(),{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},f=(h=>{const{square:g,elevation:m,variant:y,classes:x}=h;return In({root:["root",y,!g&&"rounded",y==="elevation"&&`elevation${m}`]},pM,x)})(p);return s.jsx(hM,{as:i,ownerState:p,className:Ot(f.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(${pt("#fff",E5(a))}, ${pt("#fff",E5(a))})`}},...d.style}})});function Qn(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:f={[e]:void 0},...h}=i,g=p[e]||o,m=Jy(f[e],r),{props:{component:y,...x},internalRef:v}=Yy({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m}),b=Xo(v,m?.ref,t.ref),w=e==="root"?y||d:y;return[g,Xy(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 pu{static create(){return new pu}static use(){const t=Gy(pu.create).current,[n,o]=X.useState(!1);return t.shouldMount=n,t.setShouldMount=o,X.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 yi=Mn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fM=p1`
|
|
15
|
-
0% {
|
|
16
|
-
transform: scale(0);
|
|
17
|
-
opacity: 0.1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
100% {
|
|
21
|
-
transform: scale(1);
|
|
22
|
-
opacity: 0.3;
|
|
23
|
-
}
|
|
24
|
-
`,mM=p1`
|
|
25
|
-
0% {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
100% {
|
|
30
|
-
opacity: 0;
|
|
31
|
-
}
|
|
32
|
-
`,gM=p1`
|
|
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
|
-
`,yM=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xM=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,f]=X.useState(!1),h=Ot(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-a/2+i,left:-a/2+r},m=Ot(n.child,p&&n.childLeaving,o&&n.childPulsate);return l||p||f(!0),X.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),s.jsx("span",{className:h,style:g,children:s.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
45
|
-
opacity: 0;
|
|
46
|
-
position: absolute;
|
|
47
|
-
|
|
48
|
-
&.${yi.rippleVisible} {
|
|
49
|
-
opacity: 0.3;
|
|
50
|
-
transform: scale(1);
|
|
51
|
-
animation-name: ${fM};
|
|
52
|
-
animation-duration: ${550}ms;
|
|
53
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.${yi.ripplePulsate} {
|
|
57
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
& .${yi.child} {
|
|
61
|
-
opacity: 1;
|
|
62
|
-
display: block;
|
|
63
|
-
width: 100%;
|
|
64
|
-
height: 100%;
|
|
65
|
-
border-radius: 50%;
|
|
66
|
-
background-color: currentColor;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& .${yi.childLeaving} {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
animation-name: ${mM};
|
|
72
|
-
animation-duration: ${550}ms;
|
|
73
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
& .${yi.childPulsate} {
|
|
77
|
-
position: absolute;
|
|
78
|
-
/* @noflip */
|
|
79
|
-
left: 0px;
|
|
80
|
-
top: 0;
|
|
81
|
-
animation-name: ${gM};
|
|
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
|
-
`,bM=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i,...a}=n,[l,c]=X.useState([]),d=X.useRef(0),p=X.useRef(null);X.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const f=X.useRef(!1),h=vl(),g=X.useRef(null),m=X.useRef(null),y=X.useCallback(w=>{const{pulsate:M,rippleX:k,rippleY:j,rippleSize:_,cb:L}=w;c(T=>[...T,s.jsx(xM,{classes:{ripple:Ot(r.ripple,yi.ripple),rippleVisible:Ot(r.rippleVisible,yi.rippleVisible),ripplePulsate:Ot(r.ripplePulsate,yi.ripplePulsate),child:Ot(r.child,yi.child),childLeaving:Ot(r.childLeaving,yi.childLeaving),childPulsate:Ot(r.childPulsate,yi.childPulsate)},timeout:550,pulsate:M,rippleX:k,rippleY:j,rippleSize:_},d.current)]),d.current+=1,p.current=L},[r]),x=X.useCallback((w={},M={},k=()=>{})=>{const{pulsate:j=!1,center:_=o||M.pulsate,fakeElement:L=!1}=M;if(w?.type==="mousedown"&&f.current)return void(f.current=!1);w?.type==="touchstart"&&(f.current=!0);const T=L?null:m.current,D=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,S,R;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)C=Math.round(D.width/2),S=Math.round(D.height/2);else{const{clientX:P,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;C=Math.round(P-D.left),S=Math.round(I-D.top)}if(_)R=Math.sqrt((2*D.width**2+D.height**2)/3),R%2==0&&(R+=1);else{const P=2*Math.max(Math.abs((T?T.clientWidth:0)-C),C)+2,I=2*Math.max(Math.abs((T?T.clientHeight:0)-S),S)+2;R=Math.sqrt(P**2+I**2)}w?.touches?g.current===null&&(g.current=()=>{y({pulsate:j,rippleX:C,rippleY:S,rippleSize:R,cb:k})},h.start(80,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:j,rippleX:C,rippleY:S,rippleSize:R,cb:k})},[o,y,h]),v=X.useCallback(()=>{x({},{pulsate:!0})},[x]),b=X.useCallback((w,M)=>{if(h.clear(),w?.type==="touchend"&&g.current)return g.current(),g.current=null,void h.start(0,()=>{b(w,M)});g.current=null,c(k=>k.length>0?k.slice(1):k),p.current=M},[h]);return X.useImperativeHandle(t,()=>({pulsate:v,start:x,stop:b}),[v,x,b]),s.jsx(yM,{className:Ot(yi.root,r.root,i),ref:m,...a,children:s.jsx(j5,{component:null,exit:!0,children:l})})});function vM(e){return Rn("MuiButtonBase",e)}const wM=Mn("MuiButtonBase",["root","disabled","focusVisible"]),SM=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"},[`&.${wM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),el=X.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:f=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:M,onKeyUp:k,onMouseDown:j,onMouseLeave:_,onMouseUp:L,onTouchEnd:T,onTouchMove:D,onTouchStart:C,tabIndex:S=0,TouchRippleProps:R,touchRippleRef:P,type:I,...z}=n,A=X.useRef(null),O=pu.use(),N=Xo(O.ref,P),[F,E]=X.useState(!1);c&&F&&E(!1),X.useImperativeHandle(o,()=>({focusVisible:()=>{E(!0),A.current.focus()}}),[]);const B=O.shouldMount&&!d&&!c;X.useEffect(()=>{F&&f&&!d&&O.pulsate()},[d,f,F,O]);const H=ga(O,"start",j,p),U=ga(O,"stop",x,p),Z=ga(O,"stop",v,p),G=ga(O,"stop",L,p),V=ga(O,"stop",ne=>{F&&ne.preventDefault(),_&&_(ne)},p),le=ga(O,"start",C,p),re=ga(O,"stop",T,p),ge=ga(O,"stop",D,p),Q=ga(O,"stop",ne=>{zs(ne.target)||E(!1),m&&m(ne)},!1),xe=zr(ne=>{A.current||(A.current=ne.currentTarget),zs(ne.target)&&(E(!0),w&&w(ne)),b&&b(ne)}),be=()=>{const ne=A.current;return l&&l!=="button"&&!(ne.tagName==="A"&&ne.href)},Fe=zr(ne=>{f&&!ne.repeat&&F&&ne.key===" "&&O.stop(ne,()=>{O.start(ne)}),ne.target===ne.currentTarget&&be()&&ne.key===" "&&ne.preventDefault(),M&&M(ne),ne.target===ne.currentTarget&&be()&&ne.key==="Enter"&&!c&&(ne.preventDefault(),y&&y(ne))}),ee=zr(ne=>{f&&ne.key===" "&&F&&!ne.defaultPrevented&&O.stop(ne,()=>{O.pulsate(ne)}),k&&k(ne),y&&ne.target===ne.currentTarget&&be()&&ne.key===" "&&!ne.defaultPrevented&&y(ne)});let ae=l;ae==="button"&&(z.href||z.to)&&(ae=g);const we={};ae==="button"?(we.type=I===void 0?"button":I,we.disabled=c):(z.href||z.to||(we.role="button"),c&&(we["aria-disabled"]=c));const se=Xo(t,A),J={...n,centerRipple:r,component:l,disabled:c,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:S,focusVisible:F},ce=(ne=>{const{disabled:Pe,focusVisible:Ee,focusVisibleClassName:it,classes:Ue}=ne,ke=In({root:["root",Pe&&"disabled",Ee&&"focusVisible"]},vM,Ue);return Ee&&it&&(ke.root+=` ${it}`),ke})(J);return s.jsxs(SM,{as:ae,className:Ot(ce.root,a),ownerState:J,onBlur:Q,onClick:y,onContextMenu:U,onFocus:xe,onKeyDown:Fe,onKeyUp:ee,onMouseDown:H,onMouseLeave:V,onMouseUp:G,onDragLeave:Z,onTouchEnd:re,onTouchMove:ge,onTouchStart:le,ref:se,tabIndex:c?-1:S,type:I,...we,...z,children:[i,B?s.jsx(bM,{ref:N,center:r,...R}):null]})});function ga(e,t,n,o=!1){return zr(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 CM(e){return Rn("MuiCircularProgress",e)}Mn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const V1=44,R5=p1`
|
|
88
|
-
0% {
|
|
89
|
-
transform: rotate(0deg);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
100% {
|
|
93
|
-
transform: rotate(360deg);
|
|
94
|
-
}
|
|
95
|
-
`,I5=p1`
|
|
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
|
-
`,kM=typeof R5!="string"?o3`
|
|
111
|
-
animation: ${R5} 1.4s linear infinite;
|
|
112
|
-
`:null,EM=typeof I5!="string"?o3`
|
|
113
|
-
animation: ${I5} 1.4s ease-in-out infinite;
|
|
114
|
-
`:null,MM=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xt(n.color)}`]]}})(Sn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:kM||{animation:`${R5} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),TM=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_M=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]}})(Sn(({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:EM||{animation:`${I5} 1.4s ease-in-out infinite`}}]}))),h3=X.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",...f}=n,h={...n,color:r,disableShrink:i,size:a,thickness:c,value:d,variant:p},g=(v=>{const{classes:b,variant:w,color:M,disableShrink:k}=v;return In({root:["root",w,`color${xt(M)}`],svg:["svg"],circle:["circle",`circle${xt(w)}`,k&&"circleDisableShrink"]},CM,b)})(h),m={},y={},x={};if(p==="determinate"){const v=2*Math.PI*((V1-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(MM,{className:Ot(g.root,o),style:{width:a,height:a,...y,...l},ownerState:h,ref:t,role:"progressbar",...x,...f,children:s.jsx(TM,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:s.jsx(_M,{className:g.circle,style:m,ownerState:h,cx:V1,cy:V1,r:(V1-c)/2,fill:"none",strokeWidth:c})})})});function jM(e){return Rn("MuiIconButton",e)}const a6=Mn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),RM=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)}`]]}})(Sn(({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})`:pt(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}}]})),Sn(({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})`:pt((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)}}],[`&.${a6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${a6.loading}`]:{color:"transparent"}}))),IM=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"}}]})),Tr=X.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:f=null,loadingIndicator:h,...g}=n,m=n0(p),y=h??s.jsx(h3,{"aria-labelledby":m,color:"inherit",size:16}),x={...n,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:y,size:d},v=(b=>{const{classes:w,disabled:M,color:k,edge:j,size:_,loading:L}=b;return In({root:["root",L&&"loading",M&&"disabled",k!=="default"&&`color${xt(k)}`,j&&`edge${xt(j)}`,`size${xt(_)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},jM,w)})(x);return s.jsxs(RM,{id:f?m:p,className:Ot(v.root,i),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:t,...g,ownerState:x,children:[typeof f=="boolean"&&s.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:s.jsx(IM,{className:v.loadingIndicator,ownerState:x,children:f&&y})}),r]})});function PM(e){return Rn("MuiTypography",e)}Mn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const OM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},DM=Ny,AM=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]}})(Sn(({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}}]}))),l6={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tn=X.forwardRef(function(e,t){const{color:n,...o}=An({props:e,name:"MuiTypography"}),r=DM({...o,...!OM[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:p=!1,variant:f="body1",variantMapping:h=l6,...g}=r,m={...r,align:i,color:n,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:p,variant:f,variantMapping:h},y=l||(p?"p":h[f]||l6[f])||"span",x=(v=>{const{align:b,gutterBottom:w,noWrap:M,paragraph:k,variant:j,classes:_}=v;return In({root:["root",j,v.align!=="inherit"&&`align${xt(b)}`,w&&"gutterBottom",M&&"noWrap",k&&"paragraph"]},PM,_)})(m);return s.jsx(AM,{as:y,ref:t,className:Ot(x.root,a),...g,ownerState:m,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...g.style}})});var Wr="top",_i="bottom",ji="right",Ur="left",P5="auto",y1=[Wr,_i,ji,Ur],Fs="start",Ac="end",hx="viewport",w0="popper",s6=y1.reduce(function(e,t){return e.concat([t+"-"+Fs,t+"-"+Ac])},[]),fx=[].concat(y1,[P5]).reduce(function(e,t){return e.concat([t,t+"-"+Fs,t+"-"+Ac])},[]),LM=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ua(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 Al(e){return e instanceof ci(e).Element||e instanceof Element}function Ei(e){return e instanceof ci(e).HTMLElement||e instanceof HTMLElement}function f3(e){return typeof ShadowRoot<"u"&&(e instanceof ci(e).ShadowRoot||e instanceof ShadowRoot)}const zM={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];Ei(i)&&ua(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},{});Ei(r)&&ua(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]};function la(e){return e.split("-")[0]}var Tl=Math.max,hu=Math.min,Bs=Math.round;function O5(){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 mx(){return!/^((?!chrome|android).)*safari/i.test(O5())}function Ns(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Ei(e)&&(r=e.offsetWidth>0&&Bs(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Bs(o.height)/e.offsetHeight||1);var a=(Al(e)?ci(e):window).visualViewport,l=!mx()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function m3(e){var t=Ns(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 gx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f3(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ea(e){return ci(e).getComputedStyle(e)}function FM(e){return["table","td","th"].indexOf(ua(e))>=0}function Ya(e){return((Al(e)?e.ownerDocument:e.document)||window.document).documentElement}function m2(e){return ua(e)==="html"?e:e.assignedSlot||e.parentNode||(f3(e)?e.host:null)||Ya(e)}function c6(e){return Ei(e)&&Ea(e).position!=="fixed"?e.offsetParent:null}function x1(e){for(var t=ci(e),n=c6(e);n&&FM(n)&&Ea(n).position==="static";)n=c6(n);return n&&(ua(n)==="html"||ua(n)==="body"&&Ea(n).position==="static")?t:n||function(o){var r=/firefox/i.test(O5());if(/Trident/i.test(O5())&&Ei(o)&&Ea(o).position==="fixed")return null;var i=m2(o);for(f3(i)&&(i=i.host);Ei(i)&&["html","body"].indexOf(ua(i))<0;){var a=Ea(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 g3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y0(e,t,n){return Tl(e,hu(t,n))}function yx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xx(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}const BM={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=la(n.placement),c=g3(l),d=[Ur,ji].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(L,T){return yx(typeof(L=typeof L=="function"?L(Object.assign({},T.rects,{placement:T.placement})):L)!="number"?L:xx(L,y1))}(r.padding,n),f=m3(i),h=c==="y"?Wr:Ur,g=c==="y"?_i:ji,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=x1(i),v=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,b=m/2-y/2,w=p[h],M=v-f[d]-p[g],k=v/2-f[d]/2+b,j=Y0(w,k,M),_=c;n.modifiersData[o]=((t={})[_]=j,t.centerOffset=j-k,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)))&&gx(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e){return e.split("-")[1]}var NM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d6(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,f=e.isFixed,h=a.x,g=h===void 0?0:h,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=Ur,M=Wr,k=window;if(d){var j=x1(n),_="clientHeight",L="clientWidth";j===ci(n)&&Ea(j=Ya(n)).position!=="static"&&l==="absolute"&&(_="scrollHeight",L="scrollWidth"),(r===Wr||(r===Ur||r===ji)&&i===Ac)&&(M=_i,y-=(f&&j===k&&k.visualViewport?k.visualViewport.height:j[_])-o.height,y*=c?1:-1),(r===Ur||(r===Wr||r===_i)&&i===Ac)&&(w=ji,g-=(f&&j===k&&k.visualViewport?k.visualViewport.width:j[L])-o.width,g*=c?1:-1)}var T,D=Object.assign({position:l},d&&NM),C=p===!0?function(S,R){var P=S.x,I=S.y,z=R.devicePixelRatio||1;return{x:Bs(P*z)/z||0,y:Bs(I*z)/z||0}}({x:g,y},ci(n)):{x:g,y};return g=C.x,y=C.y,c?Object.assign({},D,((T={})[M]=b?"0":"",T[w]=v?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",T)):Object.assign({},D,((t={})[M]=b?y+"px":"",t[w]=v?g+"px":"",t.transform="",t))}var H1={passive:!0},$M={left:"right",right:"left",bottom:"top",top:"bottom"};function W1(e){return e.replace(/left|right|bottom|top/g,function(t){return $M[t]})}var VM={start:"end",end:"start"};function u6(e){return e.replace(/start|end/g,function(t){return VM[t]})}function y3(e){var t=ci(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function D5(e){return Ns(Ya(e)).left+y3(e).scrollLeft}function x3(e){var t=Ea(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function bx(e){return["html","body","#document"].indexOf(ua(e))>=0?e.ownerDocument.body:Ei(e)&&x3(e)?e:bx(m2(e))}function mc(e,t){var n;t===void 0&&(t=[]);var o=bx(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=ci(o),a=r?[i].concat(i.visualViewport||[],x3(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(mc(m2(a)))}function A5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function p6(e,t,n){return t===hx?A5(function(o,r){var i=ci(o),a=Ya(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(l){c=l.width,d=l.height;var h=mx();(h||!h&&r==="fixed")&&(p=l.offsetLeft,f=l.offsetTop)}return{width:c,height:d,x:p+D5(o),y:f}}(e,n)):Al(t)?function(o,r){var i=Ns(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):A5(function(o){var r,i=Ya(o),a=y3(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=Tl(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=Tl(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+D5(o),f=-a.scrollTop;return Ea(l||i).direction==="rtl"&&(p+=Tl(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:f}}(Ya(e)))}function HM(e,t,n,o){var r=t==="clippingParents"?function(c){var d=mc(m2(c)),p=["absolute","fixed"].indexOf(Ea(c).position)>=0&&Ei(c)?x1(c):c;return Al(p)?d.filter(function(f){return Al(f)&&gx(f,p)&&ua(f)!=="body"}):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,d){var p=p6(e,d,o);return c.top=Tl(p.top,c.top),c.right=hu(p.right,c.right),c.bottom=hu(p.bottom,c.bottom),c.left=Tl(p.left,c.left),c},p6(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 vx(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?la(r):null,a=r?$s(r):null,l=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(i){case Wr:t={x:l,y:n.y-o.height};break;case _i:t={x:l,y:n.y+n.height};break;case ji:t={x:n.x+n.width,y:c};break;case Ur:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y}}var d=i?g3(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Fs:t[d]=t[d]-(n[p]/2-o[p]/2);break;case Ac:t[d]=t[d]+(n[p]/2-o[p]/2)}}return t}function Lc(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?hx:d,f=n.elementContext,h=f===void 0?w0:f,g=n.altBoundary,m=g!==void 0&&g,y=n.padding,x=y===void 0?0:y,v=yx(typeof x!="number"?x:xx(x,y1)),b=h===w0?"reference":w0,w=e.rects.popper,M=e.elements[m?b:h],k=HM(Al(M)?M:M.contextElement||Ya(e.elements.popper),c,p,a),j=Ns(e.elements.reference),_=vx({reference:j,element:w,placement:r}),L=A5(Object.assign({},w,_)),T=h===w0?L:j,D={top:k.top-T.top+v.top,bottom:T.bottom-k.bottom+v.bottom,left:k.left-T.left+v.left,right:T.right-k.right+v.right},C=e.modifiersData.offset;if(h===w0&&C){var S=C[r];Object.keys(D).forEach(function(R){var P=[ji,_i].indexOf(R)>=0?1:-1,I=[Wr,_i].indexOf(R)>=0?"y":"x";D[R]+=S[I]*P})}return D}function WM(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?fx:c,p=$s(o),f=p?l?s6:s6.filter(function(m){return $s(m)===p}):y1,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f);var g=h.reduce(function(m,y){return m[y]=Lc(e,{placement:y,boundary:r,rootBoundary:i,padding:a})[la(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}const UM={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,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0||g,y=n.allowedAutoPlacements,x=t.options.placement,v=la(x),b=c||(v===x||!m?[W1(x)]:function(E){if(la(E)===P5)return[];var B=W1(E);return[u6(E),B,u6(B)]}(x)),w=[x].concat(b).reduce(function(E,B){return E.concat(la(B)===P5?WM(t,{placement:B,boundary:p,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:y}):B)},[]),M=t.rects.reference,k=t.rects.popper,j=new Map,_=!0,L=w[0],T=0;T<w.length;T++){var D=w[T],C=la(D),S=$s(D)===Fs,R=[Wr,_i].indexOf(C)>=0,P=R?"width":"height",I=Lc(t,{placement:D,boundary:p,rootBoundary:f,altBoundary:h,padding:d}),z=R?S?ji:Ur:S?_i:Wr;M[P]>k[P]&&(z=W1(z));var A=W1(z),O=[];if(i&&O.push(I[C]<=0),l&&O.push(I[z]<=0,I[A]<=0),O.every(function(E){return E})){L=D,_=!1;break}j.set(D,O)}if(_)for(var N=function(E){var B=w.find(function(H){var U=j.get(H);if(U)return U.slice(0,E).every(function(Z){return Z})});if(B)return L=B,"break"},F=m?3:1;F>0&&N(F)!=="break";F--);t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function h6(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 f6(e){return[Wr,ji,_i,Ur].some(function(t){return e[t]>=0})}const qM={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=fx.reduce(function(p,f){return p[f]=function(h,g,m){var y=la(h),x=[Ur,Wr].indexOf(y)>=0?-1:1,v=typeof m=="function"?m(Object.assign({},g,{placement:h})):m,b=v[0],w=v[1];return b=b||0,w=(w||0)*x,[Ur,ji].indexOf(y)>=0?{x:w,y:b}:{x:b,y:w}}(f,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}},KM={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,f=n.padding,h=n.tether,g=h===void 0||h,m=n.tetherOffset,y=m===void 0?0:m,x=Lc(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:p}),v=la(t.placement),b=$s(t.placement),w=!b,M=g3(v),k=M==="x"?"y":"x",j=t.modifiersData.popperOffsets,_=t.rects.reference,L=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,D=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(j){if(i){var R,P=M==="y"?Wr:Ur,I=M==="y"?_i:ji,z=M==="y"?"height":"width",A=j[M],O=A+x[P],N=A-x[I],F=g?-L[z]/2:0,E=b===Fs?_[z]:L[z],B=b===Fs?-L[z]:-_[z],H=t.elements.arrow,U=g&&H?m3(H):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=Z[P],V=Z[I],le=Y0(0,_[z],U[z]),re=w?_[z]/2-F-le-G-D.mainAxis:E-le-G-D.mainAxis,ge=w?-_[z]/2+F+le+V+D.mainAxis:B+le+V+D.mainAxis,Q=t.elements.arrow&&x1(t.elements.arrow),xe=Q?M==="y"?Q.clientTop||0:Q.clientLeft||0:0,be=(R=C?.[M])!=null?R:0,Fe=A+ge-be,ee=Y0(g?hu(O,A+re-be-xe):O,A,g?Tl(N,Fe):N);j[M]=ee,S[M]=ee-A}if(l){var ae,we=M==="x"?Wr:Ur,se=M==="x"?_i:ji,J=j[k],ce=k==="y"?"height":"width",ne=J+x[we],Pe=J-x[se],Ee=[Wr,Ur].indexOf(v)!==-1,it=(ae=C?.[k])!=null?ae:0,Ue=Ee?ne:J-_[ce]-L[ce]-it+D.altAxis,ke=Ee?J+_[ce]+L[ce]-it-D.altAxis:Pe,_e=g&&Ee?function(Xe,Be,ct){var et=Y0(Xe,Be,ct);return et>ct?ct:et}(Ue,J,ke):Y0(g?Ue:ne,J,g?ke:Pe);j[k]=_e,S[k]=_e-J}t.modifiersData[o]=S}},requiresIfExists:["offset"]};function GM(e,t,n){n===void 0&&(n=!1);var o=Ei(t),r=Ei(t)&&function(d){var p=d.getBoundingClientRect(),f=Bs(p.width)/d.offsetWidth||1,h=Bs(p.height)/d.offsetHeight||1;return f!==1||h!==1}(t),i=Ya(t),a=Ns(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((ua(t)!=="body"||x3(i))&&(l=function(d){return d!==ci(d)&&Ei(d)?{scrollLeft:(p=d).scrollLeft,scrollTop:p.scrollTop}:y3(d);var p}(t)),Ei(t)?((c=Ns(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=D5(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ZM(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 m6={placement:"bottom",modifiers:[],strategy:"absolute"};function g6(){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 XM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?m6:r;return function(a,l,c){c===void 0&&(c=i);var d,p,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},m6,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],g=!1,m={state:f,setOptions:function(x){var v=typeof x=="function"?x(f.options):x;y(),f.options=Object.assign({},i,f.options,v),f.scrollParents={reference:Al(a)?mc(a):a.contextElement?mc(a.contextElement):[],popper:mc(l)};var b,w,M=function(k){var j=ZM(k);return LM.reduce(function(_,L){return _.concat(j.filter(function(T){return T.phase===L}))},[])}((b=[].concat(o,f.options.modifiers),w=b.reduce(function(k,j){var _=k[j.name];return k[j.name]=_?Object.assign({},_,j,{options:Object.assign({},_.options,j.options),data:Object.assign({},_.data,j.data)}):j,k},{}),Object.keys(w).map(function(k){return w[k]})));return f.orderedModifiers=M.filter(function(k){return k.enabled}),f.orderedModifiers.forEach(function(k){var j=k.name,_=k.options,L=_===void 0?{}:_,T=k.effect;if(typeof T=="function"){var D=T({state:f,name:j,instance:m,options:L}),C=function(){};h.push(D||C)}}),m.update()},forceUpdate:function(){if(!g){var x=f.elements,v=x.reference,b=x.popper;if(g6(v,b)){f.rects={reference:GM(v,x1(b),f.options.strategy==="fixed"),popper:m3(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(T){return f.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<f.orderedModifiers.length;w++)if(f.reset!==!0){var M=f.orderedModifiers[w],k=M.fn,j=M.options,_=j===void 0?{}:j,L=M.name;typeof k=="function"&&(f=k({state:f,options:_,name:L,instance:m})||f)}else f.reset=!1,w=-1}}},update:(d=function(){return new Promise(function(x){m.forceUpdate(),x(f)})},function(){return p||(p=new Promise(function(x){Promise.resolve().then(function(){p=void 0,x(d())})})),p}),destroy:function(){y(),g=!0}};if(!g6(a,l))return m;function y(){h.forEach(function(x){return x()}),h=[]}return m.setOptions(c).then(function(x){!g&&c.onFirstUpdate&&c.onFirstUpdate(x)}),m}}var YM=XM({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,H1)}),l&&c.addEventListener("resize",n.update,H1),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,H1)}),l&&c.removeEventListener("resize",n.update,H1)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vx({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:la(t.placement),variation:$s(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,d6(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,d6(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:{}},zM,qM,UM,KM,BM,{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=Lc(t,{elementContext:"reference"}),l=Lc(t,{altBoundary:!0}),c=h6(a,o),d=h6(l,r,i),p=f6(c),f=f6(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]});const wx=X.forwardRef(function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[i,a]=X.useState(null),l=Xo(X.isValidElement(n)?o0(n):null,t);if(Br(()=>{r||a(function(c){return typeof c=="function"?c():c}(o)||document.body)},[o,r]),Br(()=>{if(i&&!r)return Nm(t,i),()=>{Nm(t,null)}},[t,i,r]),r){if(X.isValidElement(n)){const c={ref:l};return X.cloneElement(n,c)}return n}return i&&JC.createPortal(n,i)});function JM(e){return Rn("MuiPopper",e)}function L5(e){return typeof e=="function"?e():e}Mn("MuiPopper",["root"]);const QM={},eT=X.forwardRef(function(e,t){const{anchorEl:n,children:o,direction:r,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:g,ownerState:m,...y}=e,x=X.useRef(null),v=Xo(x,t),b=X.useRef(null),w=Xo(b,p),M=X.useRef(w);Br(()=>{M.current=w},[w]),X.useImperativeHandle(p,()=>b.current,[]);const k=function(P,I){if(I==="ltr")return P;switch(P){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 P}}(c,r),[j,_]=X.useState(k),[L,T]=X.useState(L5(n));X.useEffect(()=>{b.current&&b.current.forceUpdate()}),X.useEffect(()=>{n&&T(L5(n))},[n]),Br(()=>{if(!L||!l)return;let P=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z.placement)}}];a!=null&&(P=P.concat(a)),d&&d.modifiers!=null&&(P=P.concat(d.modifiers));const I=YM(L,x.current,{placement:k,...d,modifiers:P});return M.current(I),()=>{I.destroy(),M.current(null)}},[L,i,a,l,d,k]);const D={placement:j};g!==null&&(D.TransitionProps=g);const C=(P=>{const{classes:I}=P;return In({root:["root"]},JM,I)})(e),S=h.root??"div",R=Vr({elementType:S,externalSlotProps:f.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:C.root});return s.jsx(S,{...R,children:typeof o=="function"?o(D):o})}),tT=X.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:f=QM,popperRef:h,style:g,transition:m=!1,slotProps:y={},slots:x={},...v}=e,[b,w]=X.useState(!0);if(!l&&!d&&(!m||b))return null;let M;if(r)M=r;else if(n){const _=L5(n);M=_&&_.nodeType!==void 0?ur(_).body:ur(null).body}const k=d||!l||m&&!b?void 0:"none",j=m?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return s.jsx(wx,{disablePortal:a,container:M,children:s.jsx(eT,{anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:p,popperOptions:f,popperRef:h,slotProps:y,slots:x,...v,style:{position:"fixed",top:0,left:0,display:k,...g},TransitionProps:j,children:o})})}),nT=Et(tT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b3=X.forwardRef(function(e,t){const n=r0(),o=An({props:e,name:"MuiPopper"}),{anchorEl:r,component:i,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:f,open:h,placement:g,popperOptions:m,popperRef:y,transition:x,slots:v,slotProps:b,...w}=o,M=v?.root??a?.Root,k={anchorEl:r,container:c,disablePortal:d,keepMounted:p,modifiers:f,open:h,placement:g,popperOptions:m,popperRef:y,transition:x,...w};return s.jsx(nT,{as:i,direction:n?"rtl":"ltr",slots:{root:M},slotProps:b??l,...k,ref:t})}),oT=Kn(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 rT(e){return Rn("MuiChip",e)}const Fn=Mn("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"]),iT=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[{[`& .${Fn.avatar}`]:t.avatar},{[`& .${Fn.avatar}`]:t[`avatar${xt(l)}`]},{[`& .${Fn.avatar}`]:t[`avatarColor${xt(o)}`]},{[`& .${Fn.icon}`]:t.icon},{[`& .${Fn.icon}`]:t[`icon${xt(l)}`]},{[`& .${Fn.icon}`]:t[`iconColor${xt(r)}`]},{[`& .${Fn.deleteIcon}`]:t.deleteIcon},{[`& .${Fn.deleteIcon}`]:t[`deleteIcon${xt(l)}`]},{[`& .${Fn.deleteIcon}`]:t[`deleteIconColor${xt(o)}`]},{[`& .${Fn.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)}`]]}})(Sn(({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",[`&.${Fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Fn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Fn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pt(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)`:pt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Fn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Fn.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,[`& .${Fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:pt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Fn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Fn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(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:{[`&.${Fn.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}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(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, &.${Fn.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]}`,[`&.${Fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Fn.avatar}`]:{marginLeft:4},[`& .${Fn.avatarSmall}`]:{marginLeft:2},[`& .${Fn.icon}`]:{marginLeft:4},[`& .${Fn.iconSmall}`]:{marginLeft:2},[`& .${Fn.deleteIcon}`]:{marginRight:5},[`& .${Fn.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)`:pt(e.palette[n].main,.7)}`,[`&.${Fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:pt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),aT=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 y6(e){return e.key==="Backspace"||e.key==="Delete"}const lT=X.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:f,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:y,size:x="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,...M}=n,k=Xo(X.useRef(null),t),j=I=>{I.stopPropagation(),g&&g(I)},_=!(i===!1||!h)||i,L=_||g?el:l||"div",T={...n,component:L,disabled:d,size:x,color:a,iconColor:X.isValidElement(p)&&p.props.color||a,onDelete:!!g,clickable:_,variant:v},D=(I=>{const{classes:z,disabled:A,size:O,color:N,iconColor:F,onDelete:E,clickable:B,variant:H}=I;return In({root:["root",H,A&&"disabled",`size${xt(O)}`,`color${xt(N)}`,B&&"clickable",B&&`clickableColor${xt(N)}`,E&&"deletable",E&&`deletableColor${xt(N)}`,`${H}${xt(N)}`],label:["label",`label${xt(O)}`],avatar:["avatar",`avatar${xt(O)}`,`avatarColor${xt(N)}`],icon:["icon",`icon${xt(O)}`,`iconColor${xt(F)}`],deleteIcon:["deleteIcon",`deleteIcon${xt(O)}`,`deleteIconColor${xt(N)}`,`deleteIcon${xt(H)}Color${xt(N)}`]},rT,z)})(T),C=L===el?{component:l||"div",focusVisibleClassName:D.focusVisible,...g&&{disableRipple:!0}}:{};let S=null;g&&(S=c&&X.isValidElement(c)?X.cloneElement(c,{className:Ot(c.props.className,D.deleteIcon),onClick:j}):s.jsx(oT,{className:Ot(D.deleteIcon),onClick:j}));let R=null;o&&X.isValidElement(o)&&(R=X.cloneElement(o,{className:Ot(D.avatar,o.props.className)}));let P=null;return p&&X.isValidElement(p)&&(P=X.cloneElement(p,{className:Ot(D.icon,p.props.className)})),s.jsxs(iT,{as:L,className:Ot(D.root,r),disabled:!(!_||!d)||void 0,onClick:h,onKeyDown:I=>{I.currentTarget===I.target&&y6(I)&&I.preventDefault(),m&&m(I)},onKeyUp:I=>{I.currentTarget===I.target&&g&&y6(I)&&g(I),y&&y(I)},ref:k,tabIndex:w&&d?-1:b,ownerState:T,...C,...M,children:[R||P,s.jsx(aT,{className:Ot(D.label),ownerState:T,children:f}),S]})});function U1(e){return parseInt(e,10)||0}const sT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function x6(e){return function(t){for(const n in t)return!1;return!0}(e)||e.outerHeightStyle===0&&!e.overflowing}const cT=X.forwardRef(function(e,t){const{onChange:n,maxRows:o,minRows:r=1,style:i,value:a,...l}=e,{current:c}=X.useRef(a!=null),d=X.useRef(null),p=Xo(t,d),f=X.useRef(null),h=X.useRef(null),g=X.useCallback(()=>{const v=d.current,b=h.current;if(!v||!b)return;const w=Hi(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 M=w.boxSizing,k=U1(w.paddingBottom)+U1(w.paddingTop),j=U1(w.borderBottomWidth)+U1(w.borderTopWidth),_=b.scrollHeight;b.value="x";const L=b.scrollHeight;let T=_;return r&&(T=Math.max(Number(r)*L,T)),o&&(T=Math.min(Number(o)*L,T)),T=Math.max(T,L),{outerHeightStyle:T+(M==="border-box"?k+j:0),overflowing:Math.abs(T-_)<=1}},[o,r,e.placeholder]),m=zr(()=>{const v=d.current,b=g();if(!v||!b||x6(b))return!1;const w=b.outerHeightStyle;return f.current!=null&&f.current!==w}),y=X.useCallback(()=>{const v=d.current,b=g();if(!v||!b||x6(b))return;const w=b.outerHeightStyle;f.current!==w&&(f.current=w,v.style.height=`${w}px`),v.style.overflow=b.overflowing?"hidden":""},[g]),x=X.useRef(-1);return Br(()=>{const v=p2(y),b=d?.current;if(!b)return;const w=Hi(b);let M;return w.addEventListener("resize",v),typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{m()&&(M.unobserve(b),cancelAnimationFrame(x.current),y(),x.current=requestAnimationFrame(()=>{M.observe(b)}))}),M.observe(b)),()=>{v.clear(),cancelAnimationFrame(x.current),w.removeEventListener("resize",v),M&&M.disconnect()}},[g,y,m]),Br(()=>{y()}),s.jsxs(X.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:h,tabIndex:-1,style:{...sT,...i,paddingTop:0,paddingBottom:0}})]})});function Sl(e){return typeof e=="string"}function ql({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 g2=X.createContext(void 0);function Ia(){return X.useContext(g2)}function b6(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function fu(e,t=!1){return e&&(b6(e.value)&&e.value!==""||t&&b6(e.defaultValue)&&e.defaultValue!=="")}function dT(e){return Rn("MuiInputBase",e)}const Vs=Mn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var v6;const y2=(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]},x2=(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]},b2=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:y2})(Sn(({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",[`&.${Vs.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%"}}]}))),v2=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:x2})(Sn(({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] + .${Vs.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},[`&.${Vs.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"}}]}})),w6=sx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),v3=X.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:f,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:y=!1,id:x,inputComponent:v="input",inputProps:b={},inputRef:w,margin:M,maxRows:k,minRows:j,multiline:_=!1,name:L,onBlur:T,onChange:D,onClick:C,onFocus:S,onKeyDown:R,onKeyUp:P,placeholder:I,readOnly:z,renderSuffix:A,rows:O,size:N,slotProps:F={},slots:E={},startAdornment:B,type:H="text",value:U,...Z}=n,G=b.value!=null?b.value:U,{current:V}=X.useRef(G!=null),le=X.useRef(),re=X.useCallback(Ue=>{},[]),ge=Xo(le,w,b.ref,re),[Q,xe]=X.useState(!1),be=Ia(),Fe=ql({props:n,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Fe.focused=be?be.focused:Q,X.useEffect(()=>{!be&&f&&Q&&(xe(!1),T&&T())},[be,f,Q,T]);const ee=be&&be.onFilled,ae=be&&be.onEmpty,we=X.useCallback(Ue=>{fu(Ue)?ee&&ee():ae&&ae()},[ee,ae]);Br(()=>{V&&we({value:G})},[G,we,V]),X.useEffect(()=>{we(le.current)},[]);let se=v,J=b;_&&se==="input"&&(J=O?{type:void 0,minRows:O,maxRows:O,...J}:{type:void 0,maxRows:k,minRows:j,...J},se=cT),X.useEffect(()=>{be&&be.setAdornedStart(!!B)},[be,B]);const ce={...n,color:Fe.color||"primary",disabled:Fe.disabled,endAdornment:g,error:Fe.error,focused:Fe.focused,formControl:be,fullWidth:y,hiddenLabel:Fe.hiddenLabel,multiline:_,size:Fe.size,startAdornment:B,type:H},ne=(Ue=>{const{classes:ke,color:_e,disabled:Xe,error:Be,endAdornment:ct,focused:et,formControl:he,fullWidth:Ye,hiddenLabel:Se,multiline:Ie,readOnly:de,size:Oe,startAdornment:Le,type:je}=Ue;return In({root:["root",`color${xt(_e)}`,Xe&&"disabled",Be&&"error",Ye&&"fullWidth",et&&"focused",he&&"formControl",Oe&&Oe!=="medium"&&`size${xt(Oe)}`,Ie&&"multiline",Le&&"adornedStart",ct&&"adornedEnd",Se&&"hiddenLabel",de&&"readOnly"],input:["input",Xe&&"disabled",je==="search"&&"inputTypeSearch",Ie&&"inputMultiline",Oe==="small"&&"inputSizeSmall",Se&&"inputHiddenLabel",Le&&"inputAdornedStart",ct&&"inputAdornedEnd",de&&"readOnly"]},dT,ke)})(ce),Pe=E.root||c.Root||b2,Ee=F.root||d.root||{},it=E.input||c.Input||v2;return J={...J,...F.input??d.input},s.jsxs(X.Fragment,{children:[!h&&typeof w6=="function"&&(v6||(v6=s.jsx(w6,{}))),s.jsxs(Pe,{...Ee,ref:t,onClick:Ue=>{le.current&&Ue.currentTarget===Ue.target&&le.current.focus(),C&&C(Ue)},...Z,...!Sl(Pe)&&{ownerState:{...ce,...Ee.ownerState}},className:Ot(ne.root,Ee.className,a,z&&"MuiInputBase-readOnly"),children:[B,s.jsx(g2.Provider,{value:null,children:s.jsx(it,{"aria-invalid":Fe.error,"aria-describedby":o,autoComplete:r,autoFocus:i,defaultValue:p,disabled:Fe.disabled,id:x,onAnimationStart:Ue=>{we(Ue.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})},name:L,placeholder:I,readOnly:z,required:Fe.required,rows:O,value:G,onKeyDown:R,onKeyUp:P,type:H,...J,...!Sl(it)&&{as:se,ownerState:{...ce,...J.ownerState}},ref:ge,className:Ot(ne.input,J.className,z&&"MuiInputBase-readOnly"),onBlur:Ue=>{T&&T(Ue),b.onBlur&&b.onBlur(Ue),be&&be.onBlur?be.onBlur(Ue):xe(!1)},onChange:(Ue,...ke)=>{if(!V){const _e=Ue.target||le.current;if(_e==null)throw new Error(Ta(1));we({value:_e.value})}b.onChange&&b.onChange(Ue,...ke),D&&D(Ue,...ke)},onFocus:Ue=>{S&&S(Ue),b.onFocus&&b.onFocus(Ue),be&&be.onFocus?be.onFocus(Ue):xe(!0)}})}),g,A?A({...Fe,startAdornment:B}):null]})]})});function uT(e){return Rn("MuiInput",e)}const S0={...Vs,...Mn("MuiInput",["root","underline","input"])};function pT(e){return Rn("MuiOutlinedInput",e)}const Xi={...Vs,...Mn("MuiOutlinedInput",["root","notchedOutline","input"])};function hT(e){return Rn("MuiFilledInput",e)}const al={...Vs,...Mn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},fT=Kn(s.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mT={entering:{opacity:1},entered:{opacity:1}},Sx=X.forwardRef(function(e,t){const n=i0(),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:f,onExit:h,onExited:g,onExiting:m,style:y,timeout:x=o,TransitionComponent:v=Ni,...b}=e,w=X.useRef(null),M=Xo(w,o0(a),t),k=S=>R=>{if(S){const P=w.current;R===void 0?S(P):S(P,R)}},j=k(f),_=k((S,R)=>{px(S);const P=Dc({style:y,timeout:x,easing:l},{mode:"enter"});S.style.webkitTransition=n.transitions.create("opacity",P),S.style.transition=n.transitions.create("opacity",P),d&&d(S,R)}),L=k(p),T=k(m),D=k(S=>{const R=Dc({style:y,timeout:x,easing:l},{mode:"exit"});S.style.webkitTransition=n.transitions.create("opacity",R),S.style.transition=n.transitions.create("opacity",R),h&&h(S)}),C=k(g);return s.jsx(v,{appear:i,in:c,nodeRef:w,onEnter:_,onEntered:L,onEntering:j,onExit:D,onExited:C,onExiting:T,addEndListener:S=>{r&&r(w.current,S)},timeout:x,...b,children:(S,{ownerState:R,...P})=>X.cloneElement(a,{style:{opacity:0,visibility:S!=="exited"||c?void 0:"hidden",...mT[S],...y,...a.props.style},ref:M,...P})})});function gT(e){return Rn("MuiBackdrop",e)}Mn("MuiBackdrop",["root","invisible"]);const yT=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"}}]}),Cx=X.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:f={},TransitionComponent:h,transitionDuration:g,...m}=n,y={...n,component:i,invisible:a},x=(j=>{const{classes:_,invisible:L}=j;return In({root:["root",L&&"invisible"]},gT,_)})(y),v={slots:{transition:h,root:c.Root,...f},slotProps:{...d,...p}},[b,w]=Qn("root",{elementType:yT,externalForwardedProps:v,className:Ot(x.root,r),ownerState:y}),[M,k]=Qn("transition",{elementType:Sx,externalForwardedProps:v,ownerState:y});return s.jsx(M,{in:l,timeout:g,...m,...k,children:s.jsx(b,{"aria-hidden":!0,...w,classes:x,ref:t,children:o})})}),xT=Mn("MuiBox",["root"]),bT=lx(),Ae=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=a2("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Pl);return X.forwardRef(function(a,l){const c=g1(n),{className:d,component:p="div",...f}=Ny(a);return s.jsx(i,{as:p,ref:l,className:Ot(d,r?r(o):o),theme:t&&c[t]||c,...f})})}({themeId:c1,defaultTheme:bT,defaultClassName:xT.root,generateClassName:$y.generate});function vT(e){return Rn("MuiButton",e)}const ll=Mn("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"]),wT=X.createContext({}),ST=X.createContext(void 0),kx=[{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}}}],CT=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]}})(Sn(({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)`:pt(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})`:pt(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})`:pt(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})`:pt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(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"}}}]}})),kT=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}},...kx]})),ET=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}},...kx]})),MT=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}}]})),S6=Et("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),zc=X.forwardRef(function(e,t){const n=X.useContext(wT),o=X.useContext(ST),r=An({props:Pc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:m=!1,id:y,loading:x=null,loadingIndicator:v,loadingPosition:b="center",size:w="medium",startIcon:M,type:k,variant:j="text",..._}=r,L=n0(y),T=v??s.jsx(h3,{"aria-labelledby":L,color:"inherit",size:16}),D={...r,color:a,component:l,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:m,loading:x,loadingIndicator:T,loadingPosition:b,size:w,type:k,variant:j},C=(z=>{const{color:A,disableElevation:O,fullWidth:N,size:F,variant:E,loading:B,loadingPosition:H,classes:U}=z,Z=In({root:["root",B&&"loading",E,`${E}${xt(A)}`,`size${xt(F)}`,`${E}Size${xt(F)}`,`color${xt(A)}`,O&&"disableElevation",N&&"fullWidth",B&&`loadingPosition${xt(H)}`],startIcon:["icon","startIcon",`iconSize${xt(F)}`],endIcon:["icon","endIcon",`iconSize${xt(F)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},vT,U);return{...U,...Z}})(D),S=(M||x&&b==="start")&&s.jsx(kT,{className:C.startIcon,ownerState:D,children:M||s.jsx(S6,{className:C.loadingIconPlaceholder,ownerState:D})}),R=(h||x&&b==="end")&&s.jsx(ET,{className:C.endIcon,ownerState:D,children:h||s.jsx(S6,{className:C.loadingIconPlaceholder,ownerState:D})}),P=o||"",I=typeof x=="boolean"?s.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:x&&s.jsx(MT,{className:C.loadingIndicator,ownerState:D,children:T})}):null;return s.jsxs(CT,{ownerState:D,className:Ot(n.className,C.root,c,P),component:l,disabled:d||x,focusRipple:!f,focusVisibleClassName:Ot(C.focusVisible,g),ref:t,type:k,id:x?L:y,..._,classes:C,children:[S,b!=="end"&&I,i,b==="end"&&I,R]})});function TT(e){return Rn("PrivateSwitchBase",e)}Mn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _T=Et(el,{name:"MuiSwitchBase"})({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}}]}),jT=Et("input",{name:"MuiSwitchBase",shouldForwardProp:Xr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RT=X.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:f,inputRef:h,name:g,onBlur:m,onChange:y,onFocus:x,readOnly:v,required:b=!1,tabIndex:w,type:M,value:k,slots:j={},slotProps:_={},...L}=e,[T,D]=Oc({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),C=Ia();let S=a;C&&S===void 0&&(S=C.disabled);const R=M==="checkbox"||M==="radio",P={...e,checked:T,disabled:S,disableFocusRipple:l,edge:c},I=(E=>{const{classes:B,checked:H,disabled:U,edge:Z}=E;return In({root:["root",H&&"checked",U&&"disabled",Z&&`edge${xt(Z)}`],input:["input"]},TT,B)})(P),z={slots:j,slotProps:{input:f,..._}},[A,O]=Qn("root",{ref:t,elementType:_T,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...L},getSlotProps:E=>({...E,onFocus:B=>{E.onFocus?.(B),(H=>{x&&x(H),C&&C.onFocus&&C.onFocus(H)})(B)},onBlur:B=>{E.onBlur?.(B),(H=>{m&&m(H),C&&C.onBlur&&C.onBlur(H)})(B)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:S,role:void 0,tabIndex:null}}),[N,F]=Qn("input",{ref:h,elementType:jT,className:I.input,externalForwardedProps:z,getSlotProps:E=>({onChange:B=>{E.onChange?.(B),(H=>{if(H.nativeEvent.defaultPrevented)return;const U=H.target.checked;D(U),y&&y(H,U)})(B)}}),ownerState:P,additionalProps:{autoFocus:n,checked:o,defaultChecked:i,disabled:S,id:R?p:void 0,name:g,readOnly:v,required:b,tabIndex:w,type:M,...M==="checkbox"&&k===void 0?{}:{value:k}}});return s.jsxs(A,{...O,children:[s.jsx(N,{...F}),T?r:d]})}),IT=Kn(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"),PT=Kn(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"),OT=Kn(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 DT(e){return Rn("MuiCheckbox",e)}const op=Mn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),AT=Et(RT,{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)}`]]}})(Sn(({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})`:pt(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})`:pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&.${op.checked}, &.${op.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${op.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),LT=s.jsx(PT,{}),zT=s.jsx(IT,{}),FT=s.jsx(OT,{}),Na=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiCheckbox"}),{checkedIcon:o=LT,color:r="primary",icon:i=zT,indeterminate:a=!1,indeterminateIcon:l=FT,inputProps:c,size:d="medium",disableRipple:p=!1,className:f,slots:h={},slotProps:g={},...m}=n,y=a?l:i,x=a?l:o,v={...n,disableRipple:p,color:r,indeterminate:a,size:d},b=(j=>{const{classes:_,indeterminate:L,color:T,size:D}=j,C=In({root:["root",L&&"indeterminate",`color${xt(T)}`,`size${xt(D)}`]},DT,_);return{..._,...C}})(v),w=g.input??c,[M,k]=Qn("root",{ref:t,elementType:AT,className:Ot(b.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:v,additionalProps:{type:"checkbox",icon:X.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:X.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:p,slots:h,slotProps:{input:cx(typeof w=="function"?w(v):w,{"data-indeterminate":a})}}});return s.jsx(M,{...k,classes:b})});function gc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C6(e){return parseInt(Hi(e).getComputedStyle(e).paddingRight,10)||0}function k6(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),f=d.tagName==="INPUT"&&d.getAttribute("type")==="hidden";return p||f}(a);l&&c&&gc(a,r)})}function rp(e,t){let n=-1;return e.some((o,r)=>!!t(o)&&(n=r,!0)),n}function BT(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(i){const a=ur(i);return a.body===i?Hi(i).innerWidth>a.documentElement.clientWidth:i.scrollHeight>i.clientHeight}(o)){const i=Zy(Hi(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${C6(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=`${C6(l)+i}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=ur(o).body;else{const i=o.parentElement,a=Hi(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 NT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $T(e){const t=[],n=[];return Array.from(e.querySelectorAll(NT)).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 VT(){return!0}function HT(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=$T,isEnabled:a=VT,open:l}=e,c=X.useRef(!1),d=X.useRef(null),p=X.useRef(null),f=X.useRef(null),h=X.useRef(null),g=X.useRef(!1),m=X.useRef(null),y=Xo(o0(t),m),x=X.useRef(null);X.useEffect(()=>{l&&m.current&&(g.current=!n)},[n,l]),X.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||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),X.useEffect(()=>{if(!l||!m.current)return;const b=ur(m.current),w=j=>{x.current=j,!o&&a()&&j.key==="Tab"&&b.activeElement===m.current&&j.shiftKey&&(c.current=!0,p.current&&p.current.focus())},M=()=>{const j=m.current;if(j===null)return;if(!b.hasFocus()||!a()||c.current)return void(c.current=!1);if(j.contains(b.activeElement)||o&&b.activeElement!==d.current&&b.activeElement!==p.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let _=[];if(b.activeElement!==d.current&&b.activeElement!==p.current||(_=i(m.current)),_.length>0){const L=!!(x.current?.shiftKey&&x.current?.key==="Tab"),T=_[0],D=_[_.length-1];typeof T!="string"&&typeof D!="string"&&(L?D.focus():T.focus())}else j.focus()};b.addEventListener("focusin",M),b.addEventListener("keydown",w,!0);const k=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(k),b.removeEventListener("focusin",M),b.removeEventListener("keydown",w,!0)}},[n,o,r,a,l,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),g.current=!0};return s.jsxs(X.Fragment,{children:[s.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),X.cloneElement(t,{ref:y,onFocus:b=>{f.current===null&&(f.current=b.relatedTarget),g.current=!0,h.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 E6=()=>{},q1=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&&gc(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);k6(t,e.mount,e.modalRef,o,!0);const r=rp(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=rp(this.containers,r=>r.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=BT(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=rp(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&&gc(e.modalRef,t),k6(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&&gc(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function WT(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,f=X.useRef({}),h=X.useRef(null),g=X.useRef(null),m=Xo(g,p),[y,x]=X.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=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),M=()=>{q1.mount(w(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=zr(()=>{const C=function(S){return typeof S=="function"?S():S}(t)||ur(h.current).body;q1.add(w(),C),g.current&&M()}),j=()=>q1.isTopModal(w()),_=zr(C=>{h.current=C,C&&(d&&j()?M():g.current&&gc(g.current,b))}),L=X.useCallback(()=>{q1.remove(w(),b)},[b]);X.useEffect(()=>()=>{L()},[L]),X.useEffect(()=>{d?k():v&&r||L()},[d,L,v,r,k]);const T=C=>S=>{C.onKeyDown?.(S),S.key==="Escape"&&S.which!==229&&j()&&(n||(S.stopPropagation(),c&&c(S,"escapeKeyDown")))},D=C=>S=>{C.onClick?.(S),S.target===S.currentTarget&&c&&c(S,"backdropClick")};return{getRootProps:(C={})=>{const S=fc(e);delete S.onTransitionEnter,delete S.onTransitionExited;const R={...S,...C};return{role:"presentation",...R,onKeyDown:T(R),ref:m}},getBackdropProps:(C={})=>{const S=C;return{"aria-hidden":!0,...S,onClick:D(S),open:d}},getTransitionProps:()=>({onEnter:Bm(()=>{x(!1),i&&i()},l?.props.onEnter??E6),onExited:Bm(()=>{x(!0),a&&a(),r&&L()},l?.props.onExited??E6)}),rootRef:m,portalRef:_,isTopModal:j,exited:y,hasTransition:v}}function UT(e){return Rn("MuiModal",e)}Mn("MuiModal",["root","hidden","backdrop"]);const qT=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Sn(({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"}}]}))),KT=Et(Cx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),GT=X.forwardRef(function(e,t){const n=An({name:"MuiModal",props:e}),{BackdropComponent:o=KT,BackdropProps:r,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:d,component:p,components:f={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:M=!1,onBackdropClick:k,onClose:j,onTransitionEnter:_,onTransitionExited:L,open:T,slotProps:D={},slots:C={},theme:S,...R}=n,P={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:v,disableScrollLock:b,hideBackdrop:w,keepMounted:M},{getRootProps:I,getBackdropProps:z,getTransitionProps:A,portalRef:O,isTopModal:N,exited:F,hasTransition:E}=WT({...P,rootRef:t}),B={...P,exited:F},H=(ge=>{const{open:Q,exited:xe,classes:be}=ge;return In({root:["root",!Q&&xe&&"hidden"],backdrop:["backdrop"]},UT,be)})(B),U={};if(c.props.tabIndex===void 0&&(U.tabIndex="-1"),E){const{onEnter:ge,onExited:Q}=A();U.onEnter=ge,U.onExited=Q}const Z={slots:{root:f.Root,backdrop:f.Backdrop,...C},slotProps:{...h,...D}},[G,V]=Qn("root",{ref:t,elementType:qT,externalForwardedProps:{...Z,...R,component:p},getSlotProps:I,ownerState:B,className:Ot(a,H?.root,!B.open&&B.exited&&H?.hidden)}),[le,re]=Qn("backdrop",{ref:r?.ref,elementType:o,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:ge=>z({...ge,onClick:Q=>{k&&k(Q),ge?.onClick&&ge.onClick(Q)}}),className:Ot(r?.className,H?.backdrop),ownerState:B});return M||T||E&&!F?s.jsx(wx,{ref:O,container:d,disablePortal:x,children:s.jsxs(G,{...V,children:[!w&&o?s.jsx(le,{...re}):null,s.jsx(HT,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:v,isEnabled:N,open:T,children:X.cloneElement(c,U)})]})}):null}),ZT=X.createContext({});function XT(e){return Rn("MuiDialogActions",e)}Mn("MuiDialogActions",["root","spacing"]);const YT=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}}}]}),JT=X.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 In({root:["root",!p&&"spacing"]},XT,d)})(a);return s.jsx(YT,{className:Ot(l.root,o),ownerState:a,ref:t,...i})});function QT(e){return Rn("MuiDialogContent",e)}function e_(e){return Rn("MuiDialogTitle",e)}Mn("MuiDialogContent",["root","dividers"]);const t_=Mn("MuiDialogTitle",["root"]),n_=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Sn(({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:{[`.${t_.root} + &`]:{paddingTop:0}}}]}))),Ex=X.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 In({root:["root",p&&"dividers"]},QT,d)})(a);return s.jsx(n_,{className:Ot(l.root,o),ownerState:a,ref:t,...i})}),o_=Et(Tn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Mx=X.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 In({root:["root"]},e_,p)})(a),{titleId:c=r}=X.useContext(ZT);return s.jsx(o_,{component:"h2",className:Ot(l.root,o),ownerState:a,ref:t,variant:"h6",id:r??c,...i})});function r_(e){return Rn("MuiDivider",e)}const M6=Mn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),i_=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]}})(Sn(({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)`:pt(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%"}}}]}))),a_=Et("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Sn(({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)`}}]}))),wa=X.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:f="center",variant:h="fullWidth",...g}=n,m={...n,absolute:o,component:l,flexItem:c,light:d,orientation:a,role:p,textAlign:f,variant:h},y=(x=>{const{absolute:v,children:b,classes:w,flexItem:M,light:k,orientation:j,textAlign:_,variant:L}=x;return In({root:["root",v&&"absolute",L,k&&"light",j==="vertical"&&"vertical",M&&"flexItem",b&&"withChildren",b&&j==="vertical"&&"withChildrenVertical",_==="right"&&j!=="vertical"&&"textAlignRight",_==="left"&&j!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",j==="vertical"&&"wrapperVertical"]},r_,w)})(m);return s.jsx(i_,{as:l,className:Ot(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(a_,{className:y.wrapper,ownerState:m,children:r}):null})});wa&&(wa.muiSkipListHighlight=!0);const l_=Et(b2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...y2(e,t),!n.disableUnderline&&t.underline]}})(Sn(({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}}]}})),s_=Et(v2,{name:"MuiFilledInput",slot:"Input",overridesResolver:x2})(Sn(({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}}]}))),w3=X.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:f={},type:h="text",...g}=n,m={...n,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:d,type:h},y=(M=>{const{classes:k,disableUnderline:j,startAdornment:_,endAdornment:L,size:T,hiddenLabel:D,multiline:C}=M,S=In({root:["root",!j&&"underline",_&&"adornedStart",L&&"adornedEnd",T==="small"&&`size${xt(T)}`,D&&"hiddenLabel",C&&"multiline"],input:["input"]},hT,k);return{...k,...S}})(n),x={root:{ownerState:m},input:{ownerState:m}},v=p??i?cr(x,p??i):x,b=f.root??r.Root??l_,w=f.input??r.Input??s_;return s.jsx(v3,{slots:{root:b,input:w},slotProps:v,fullWidth:a,inputComponent:c,multiline:d,ref:t,type:h,...g,classes:y})});function c_(e){return Rn("MuiFormControl",e)}w3.muiName="Input",Mn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const d_=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%"}}]}),b1=X.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:f=!1,margin:h="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:f,margin:h,required:g,size:m,variant:y},b=(P=>{const{classes:I,margin:z,fullWidth:A}=P;return In({root:["root",z!=="none"&&`margin${xt(z)}`,A&&"fullWidth"]},c_,I)})(v),[w,M]=X.useState(()=>{let P=!1;return o&&X.Children.forEach(o,I=>{if(!Q2(I,["Input","Select"]))return;const z=Q2(I,["Select"])?I.props.input:I;z&&z.props.startAdornment&&(P=!0)}),P}),[k,j]=X.useState(()=>{let P=!1;return o&&X.Children.forEach(o,I=>{Q2(I,["Input","Select"])&&(fu(I.props,!0)||fu(I.props.inputProps,!0))&&(P=!0)}),P}),[_,L]=X.useState(!1);l&&_&&L(!1);const T=d===void 0||l?_:d;let D;X.useRef(!1);const C=X.useCallback(()=>{j(!0)},[]),S=X.useCallback(()=>{j(!1)},[]),R=X.useMemo(()=>({adornedStart:w,setAdornedStart:M,color:i,disabled:l,error:c,filled:k,focused:T,fullWidth:p,hiddenLabel:f,size:m,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:S,onFilled:C,registerEffect:D,required:g,variant:y}),[w,i,l,c,k,T,p,f,D,S,C,g,m,y]);return s.jsx(g2.Provider,{value:R,children:s.jsx(d_,{as:a,ownerState:v,className:Ot(b.root,r),ref:t,...x,children:o})})});function u_(e){return Rn("MuiFormControlLabel",e)}const J0=Mn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),p_=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J0.label}`]:t.label},t.root,t[`labelPlacement${xt(n.labelPlacement)}`]]}})(Sn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${J0.disabled}`]:{cursor:"default"},[`& .${J0.label}`]:{[`&.${J0.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}}]}))),h_=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Sn(({theme:e})=>({[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}}))),$a=X.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:f="end",name:h,onChange:g,required:m,slots:y={},slotProps:x={},value:v,...b}=n,w=Ia(),M=l??a.props.disabled??w?.disabled,k=m??a.props.required,j={disabled:M,required:k};["checked","name","onChange","value","inputRef"].forEach(P=>{a.props[P]===void 0&&n[P]!==void 0&&(j[P]=n[P])});const _=ql({props:n,muiFormControl:w,states:["error"]}),L={...n,disabled:M,labelPlacement:f,required:k,error:_.error},T=(P=>{const{classes:I,disabled:z,labelPlacement:A,error:O,required:N}=P;return In({root:["root",z&&"disabled",`labelPlacement${xt(A)}`,O&&"error",N&&"required"],label:["label",z&&"disabled"],asterisk:["asterisk",O&&"error"]},u_,I)})(L),D={slots:y,slotProps:{...i,...x}},[C,S]=Qn("typography",{elementType:Tn,externalForwardedProps:D,ownerState:L});let R=p;return R==null||R.type===Tn||c||(R=s.jsx(C,{component:"span",...S,className:Ot(T.label,S?.className),children:R})),s.jsxs(p_,{className:Ot(T.root,r),ownerState:L,ref:t,...b,children:[X.cloneElement(a,j),k?s.jsxs("div",{children:[R,s.jsxs(h_,{ownerState:L,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):R]})});function f_(e){return Rn("MuiFormHelperText",e)}const T6=Mn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _6;const m_=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]}})(Sn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${T6.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${T6.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}}]}))),g_=X.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:f,variant:h,...g}=n,m=ql({props:n,muiFormControl:Ia(),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:M,disabled:k,error:j,filled:_,focused:L,required:T}=v;return In({root:["root",k&&"disabled",j&&"error",M&&`size${xt(M)}`,w&&"contained",L&&"focused",_&&"filled",T&&"required"]},f_,b)})(y);return s.jsx(m_,{as:i,className:Ot(x.root,r),ref:t,...g,ownerState:y,children:o===" "?_6||(_6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function y_(e){return Rn("MuiFormLabel",e)}const yc=Mn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x_=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]}})(Sn(({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:{[`&.${yc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),b_=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Sn(({theme:e})=>({[`&.${yc.error}`]:{color:(e.vars||e).palette.error.main}}))),v_=X.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:f,...h}=n,g=ql({props:n,muiFormControl:Ia(),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:M,error:k,filled:j,required:_}=x;return In({root:["root",`color${xt(b)}`,M&&"disabled",k&&"error",j&&"filled",w&&"focused",_&&"required"],asterisk:["asterisk",k&&"error"]},y_,v)})(m);return s.jsxs(x_,{as:a,ownerState:m,className:Ot(y.root,r),ref:t,...h,children:[o,g.required&&s.jsxs(b_,{ownerState:m,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function z5(e){return`scale(${e}, ${e**2})`}const w_={entering:{opacity:1,transform:z5(1)},entered:{opacity:1,transform:"none"}},ip=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Fc=X.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:f,onExiting:h,style:g,timeout:m="auto",TransitionComponent:y=Ni,...x}=e,v=vl(),b=X.useRef(),w=i0(),M=X.useRef(null),k=Xo(M,o0(r),t),j=R=>P=>{if(R){const I=M.current;P===void 0?R(I):R(I,P)}},_=j(d),L=j((R,P)=>{px(R);const{duration:I,delay:z,easing:A}=Dc({style:g,timeout:m,easing:i},{mode:"enter"});let O;m==="auto"?(O=w.transitions.getAutoHeightDuration(R.clientHeight),b.current=O):O=I,R.style.transition=[w.transitions.create("opacity",{duration:O,delay:z}),w.transitions.create("transform",{duration:ip?O:.666*O,delay:z,easing:A})].join(","),l&&l(R,P)}),T=j(c),D=j(h),C=j(R=>{const{duration:P,delay:I,easing:z}=Dc({style:g,timeout:m,easing:i},{mode:"exit"});let A;m==="auto"?(A=w.transitions.getAutoHeightDuration(R.clientHeight),b.current=A):A=P,R.style.transition=[w.transitions.create("opacity",{duration:A,delay:I}),w.transitions.create("transform",{duration:ip?A:.666*A,delay:ip?I:I||.333*A,easing:z})].join(","),R.style.opacity=0,R.style.transform=z5(.75),p&&p(R)}),S=j(f);return s.jsx(y,{appear:o,in:a,nodeRef:M,onEnter:L,onEntered:T,onEntering:_,onExit:C,onExited:S,onExiting:D,addEndListener:R=>{m==="auto"&&v.start(b.current||0,R),n&&n(M.current,R)},timeout:m==="auto"?null:m,...x,children:(R,{ownerState:P,...I})=>X.cloneElement(r,{style:{opacity:0,transform:z5(.75),visibility:R!=="exited"||a?void 0:"hidden",...w_[R],...g,...r.props.style},ref:k,...I})})});Fc&&(Fc.muiSupportAuto=!0);const S_=qy({themeId:c1}),C_=Et(b2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...y2(e,t),!n.disableUnderline&&t.underline]}})(Sn(({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"},[`&.${S0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${S0.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(.${S0.disabled}, .${S0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${S0.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}`}}}))]}})),k_=Et(v2,{name:"MuiInput",slot:"Input",overridesResolver:x2})({}),Kl=X.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:f="text",...h}=n,g=(b=>{const{classes:w,disableUnderline:M}=b,k=In({root:["root",!M&&"underline"],input:["input"]},uT,w);return{...w,...k}})(n),m={root:{ownerState:{disableUnderline:o}}},y=d??i?cr(d??i,m):m,x=p.root??r.Root??C_,v=p.input??r.Input??k_;return s.jsx(v3,{slots:{root:x,input:v},slotProps:y,fullWidth:a,inputComponent:l,multiline:c,ref:t,type:f,...h,classes:g})});function E_(e){return Rn("MuiInputAdornment",e)}Kl.muiName="Input";const j6=Mn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var R6;const M_=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]]}})(Sn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${j6.positionStart}&:not(.${j6.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Tx=X.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,f=Ia()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const g={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:h},m=(y=>{const{classes:x,disablePointerEvents:v,hiddenLabel:b,position:w,size:M,variant:k}=y;return In({root:["root",v&&"disablePointerEvents",w&&`position${xt(w)}`,k,b&&"hiddenLabel",M&&`size${xt(M)}`]},E_,x)})(g);return s.jsx(g2.Provider,{value:null,children:s.jsx(M_,{as:i,ownerState:g,className:Ot(m.root,r),ref:t,...p,children:typeof o!="string"||l?s.jsxs(X.Fragment,{children:[c==="start"?R6||(R6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]}):s.jsx(Tn,{color:"textSecondary",children:o})})})});function T_(e){return Rn("MuiInputLabel",e)}Mn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const __=Et(v_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yc.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]]}})(Sn(({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)"}}]}))),_x=X.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=Ia();let p=i;p===void 0&&d&&(p=d.filled||d.focused||d.adornedStart);const f=ql({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),h={...n,disableAnimation:o,formControl:d,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=(m=>{const{classes:y,formControl:x,size:v,shrink:b,disableAnimation:w,variant:M,required:k}=m,j=In({root:["root",x&&"formControl",!w&&"animated",b&&"shrink",v&&v!=="normal"&&`size${xt(v)}`,M],asterisk:[k&&"asterisk"]},T_,y);return{...y,...j}})(h);return s.jsx(__,{"data-shrink":p,ref:t,className:Ot(g.root,l),...c,ownerState:h,classes:g})}),mu=X.createContext({});function j_(e){return Rn("MuiList",e)}Mn("MuiList",["root","padding","dense","subheader"]);const R_=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}}]}),I_=X.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=X.useMemo(()=>({dense:a}),[a]),f={...n,component:i,dense:a,disablePadding:l},h=(g=>{const{classes:m,disablePadding:y,dense:x,subheader:v}=g;return In({root:["root",!y&&"padding",x&&"dense",v&&"subheader"]},j_,m)})(f);return s.jsx(mu.Provider,{value:p,children:s.jsxs(R_,{as:i,className:Ot(h.root,r),ref:t,ownerState:f,...d,children:[c,o]})})});function P_(e){return Rn("MuiListItemIcon",e)}const I6=Mn("MuiListItemIcon",["root","alignItemsFlexStart"]),O_=Et("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Sn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),D_=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiListItemIcon"}),{className:o,...r}=n,i=X.useContext(mu),a={...n,alignItems:i.alignItems},l=(c=>{const{alignItems:d,classes:p}=c;return In({root:["root",d==="flex-start"&&"alignItemsFlexStart"]},P_,p)})(a);return s.jsx(O_,{className:Ot(l.root,o),ownerState:a,ref:t,...r})}),P6=Mn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ap(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function O6(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jx(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 C0(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")&&jx(l,i)&&!c)return l.focus(),!0;l=r(e,l,n)}return!1}const A_=X.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",...f}=e,h=X.useRef(null),g=X.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Br(()=>{o&&h.current.focus()},[o]),X.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const w=!h.current.style.width;if(v.clientHeight<h.current.clientHeight&&w){const M=`${Zy(Hi(v))}px`;h.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=M,h.current.style.width=`calc(100% + ${M})`}return h.current}}),[]);const m=Xo(h,t);let y=-1;X.Children.forEach(i,(v,b)=>{X.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=X.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),X.cloneElement(v,w)}return v});return s.jsx(I_,{role:"menu",ref:m,className:a,onKeyDown:v=>{const b=h.current,w=v.key;if(v.ctrlKey||v.metaKey||v.altKey)return void(d&&d(v));const M=ur(b).activeElement;if(w==="ArrowDown")v.preventDefault(),C0(b,M,c,l,ap);else if(w==="ArrowUp")v.preventDefault(),C0(b,M,c,l,O6);else if(w==="Home")v.preventDefault(),C0(b,null,c,l,ap);else if(w==="End")v.preventDefault(),C0(b,null,c,l,O6);else if(w.length===1){const k=g.current,j=w.toLowerCase(),_=performance.now();k.keys.length>0&&(_-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&j!==k.keys[0]&&(k.repeating=!1)),k.lastTime=_,k.keys.push(j);const L=M&&!k.repeating&&jx(M,k);k.previousKeyMatched&&(L||C0(b,M,!1,l,ap,k))?v.preventDefault():k.previousKeyMatched=!1}d&&d(v)},tabIndex:o?0:-1,...f,children:x})});function L_(e){return Rn("MuiPopover",e)}function D6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function L6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function K1(e){return typeof e=="function"?e():e}Mn("MuiPopover",["root","paper"]);const z_=Et(GT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rx=Et(Ti,{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}),F_=X.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:f=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:y={},slotProps:x={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:M={},disableScrollLock:k=!1,...j}=n,_=X.useRef(),L={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:h,transformOrigin:v,TransitionComponent:b,transitionDuration:w,TransitionProps:M},T=(V=>{const{classes:le}=V;return In({root:["root"],paper:["paper"]},L_,le)})(L),D=X.useCallback(()=>{if(l==="anchorPosition")return a;const V=K1(r),le=(V&&V.nodeType===1?V:ur(_.current).body).getBoundingClientRect();return{top:le.top+D6(le,i.vertical),left:le.left+A6(le,i.horizontal)}},[r,i.horizontal,i.vertical,a,l]),C=X.useCallback(V=>({vertical:D6(V,v.vertical),horizontal:A6(V,v.horizontal)}),[v.horizontal,v.vertical]),S=X.useCallback(V=>{const le={width:V.offsetWidth,height:V.offsetHeight},re=C(le);if(l==="none")return{top:null,left:null,transformOrigin:L6(re)};const ge=D();let Q=ge.top-re.vertical,xe=ge.left-re.horizontal;const be=Q+le.height,Fe=xe+le.width,ee=Hi(K1(r)),ae=ee.innerHeight-h,we=ee.innerWidth-h;if(h!==null&&Q<h){const se=Q-h;Q-=se,re.vertical+=se}else if(h!==null&&be>ae){const se=be-ae;Q-=se,re.vertical+=se}if(h!==null&&xe<h){const se=xe-h;xe-=se,re.horizontal+=se}else if(Fe>we){const se=Fe-we;xe-=se,re.horizontal+=se}return{top:`${Math.round(Q)}px`,left:`${Math.round(xe)}px`,transformOrigin:L6(re)}},[r,l,D,C,h]),[R,P]=X.useState(g),I=X.useCallback(()=>{const V=_.current;if(!V)return;const le=S(V);le.top!==null&&V.style.setProperty("top",le.top),le.left!==null&&(V.style.left=le.left),V.style.transformOrigin=le.transformOrigin,P(!0)},[S]);X.useEffect(()=>(k&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[r,k,I]),X.useEffect(()=>{g&&I()}),X.useImperativeHandle(o,()=>g?{updatePosition:()=>{I()}}:null,[g,I]),X.useEffect(()=>{if(!g)return;const V=p2(()=>{I()}),le=Hi(K1(r));return le.addEventListener("resize",V),()=>{V.clear(),le.removeEventListener("resize",V)}},[r,g,I]);let z=w;const A={slots:{transition:b,...y},slotProps:{transition:M,paper:m,...x}},[O,N]=Qn("transition",{elementType:Fc,externalForwardedProps:A,ownerState:L,getSlotProps:V=>({...V,onEntering:(le,re)=>{V.onEntering?.(le,re),I()},onExited:le=>{V.onExited?.(le),P(!1)}}),additionalProps:{appear:!0,in:g}});w!=="auto"||O.muiSupportAuto||(z=void 0);const F=p||(r?ur(K1(r)).body:void 0),[E,{slots:B,slotProps:H,...U}]=Qn("root",{ref:t,elementType:z_,externalForwardedProps:{...A,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:cx(typeof x.backdrop=="function"?x.backdrop(L):x.backdrop,{invisible:!0})},container:F,open:g},ownerState:L,className:Ot(T.root,d)}),[Z,G]=Qn("paper",{ref:_,className:T.paper,elementType:Rx,externalForwardedProps:A,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:R?void 0:{opacity:0}},ownerState:L});return s.jsx(E,{...U,...!Sl(E)&&{slots:B,slotProps:H,disableScrollLock:k},children:s.jsx(O,{...N,timeout:z,children:s.jsx(Z,{...G,children:c})})})});function B_(e){return Rn("MuiMenu",e)}Mn("MuiMenu",["root","paper","list"]);const N_={vertical:"top",horizontal:"right"},$_={vertical:"top",horizontal:"left"},V_=Et(F_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),H_=Et(Rx,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W_=Et(A_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),U_=X.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:f,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:y="selectedMenu",slots:x={},slotProps:v={},...b}=n,w=r0(),M={...n,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:h,TransitionProps:m,variant:y},k=(z=>{const{classes:A}=z;return In({root:["root"],paper:["paper"],list:["list"]},B_,A)})(M),j=o&&!a&&d,_=X.useRef(null);let L=-1;X.Children.map(r,(z,A)=>{X.isValidElement(z)&&(z.props.disabled||(y==="selectedMenu"&&z.props.selected||L===-1)&&(L=A))});const T={slots:x,slotProps:{list:l,transition:m,paper:p,...v}},D=Vr({elementType:x.root,externalSlotProps:v.root,ownerState:M,className:[k.root,i]}),[C,S]=Qn("paper",{className:k.paper,elementType:H_,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:M}),[R,P]=Qn("list",{className:Ot(k.list,l.className),elementType:W_,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:z=>({...z,onKeyDown:A=>{(O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))})(A),z.onKeyDown?.(A)}}),ownerState:M}),I=typeof T.slotProps.transition=="function"?T.slotProps.transition(M):T.slotProps.transition;return s.jsx(V_,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?N_:$_,slots:{root:x.root,paper:C,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:D,paper:S,backdrop:typeof v.backdrop=="function"?v.backdrop(M):v.backdrop,transition:{...I,onEntering:(...z)=>{((A,O)=>{_.current&&_.current.adjustStyleForScrollbar(A,{direction:w?"rtl":"ltr"}),g&&g(A,O)})(...z),I?.onEntering?.(...z)}}},open:d,ref:t,transitionDuration:h,ownerState:M,...b,classes:f,children:s.jsx(R,{actions:_,autoFocus:o&&(L===-1||a),autoFocusItem:j,variant:y,...P,children:r})})});function q_(e){return Rn("MuiMenuItem",e)}const k0=Mn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),K_=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]}})(Sn(({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"}},[`&.${k0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${k0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${k0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(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})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${k0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${k0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${M6.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${M6.inset}`]:{marginLeft:52},[`& .${P6.root}`]:{marginTop:0,marginBottom:0},[`& .${P6.inset}`]:{paddingLeft:36},[`& .${I6.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,[`& .${I6.root} svg`]:{fontSize:"1.25rem"}}}]}))),v1=X.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:f,...h}=n,g=X.useContext(mu),m=X.useMemo(()=>({dense:i||g.dense||!1,disableGutters:l}),[g.dense,i,l]),y=X.useRef(null);Br(()=>{o&&y.current&&y.current.focus()},[o]);const x={...n,dense:m.dense,divider:a,disableGutters:l},v=(M=>{const{disabled:k,dense:j,divider:_,disableGutters:L,selected:T,classes:D}=M,C=In({root:["root",j&&"dense",k&&"disabled",!L&&"gutters",_&&"divider",T&&"selected"]},q_,D);return{...D,...C}})(n),b=Xo(y,t);let w;return n.disabled||(w=p!==void 0?p:-1),s.jsx(mu.Provider,{value:m,children:s.jsx(K_,{ref:b,role:d,tabIndex:w,component:r,focusVisibleClassName:Ot(v.focusVisible,c),className:Ot(v.root,f),...h,ownerState:x,classes:v})})});function G_(e){return Rn("MuiNativeSelect",e)}const S3=Mn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ix=Et("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${S3.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}}}]})),Z_=Et(Ix,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${S3.multiple}`]:t.multiple}]}})({}),Px=Et("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${S3.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}}]})),X_=Et(Px,{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]}})({}),Y_=X.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=(f=>{const{classes:h,variant:g,disabled:m,multiple:y,open:x,error:v}=f;return In({select:["select",g,m&&"disabled",y&&"multiple",v&&"error"],icon:["icon",`icon${xt(g)}`,x&&"iconOpen",m&&"disabled"]},G_,h)})(d);return s.jsxs(X.Fragment,{children:[s.jsx(Z_,{ownerState:d,className:Ot(p.select,n),disabled:o,ref:a||t,...c}),e.multiple?null:s.jsx(X_,{as:i,ownerState:d,className:p.icon})]})});var z6;const J_=Et("fieldset",{name:"MuiNotchedOutlined",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",{name:"MuiNotchedOutlined",shouldForwardProp:Xr})(Sn(({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})}}]}))),ej=Et(b2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:y2})(Sn(({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 .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Xi.focused} .${Xi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{color:n},style:{[`&.${Xi.focused} .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Xi.error} .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xi.disabled} .${Xi.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"}}]}})),tj=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(J_,{"aria-hidden":!0,className:o,ownerState:c,...a,children:s.jsx(Q_,{ownerState:c,children:l?s.jsx("span",{children:r}):z6||(z6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Sn(({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}})),nj=Et(v2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:x2})(Sn(({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}}]}))),C3=X.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:f="text",...h}=n,g=(k=>{const{classes:j}=k,_=In({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pT,j);return{...j,..._}})(n),m=Ia(),y=ql({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:f},v=d.root??o.Root??ej,b=d.input??o.Input??nj,[w,M]=Qn("notchedOutline",{elementType:tj,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&y.required?s.jsxs(X.Fragment,{children:[a," ","*"]}):a}});return s.jsx(v3,{slots:{root:v,input:b},slotProps:p,renderSuffix:k=>s.jsx(w,{...M,notched:c!==void 0?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:r,inputComponent:i,multiline:l,ref:t,type:f,...h,classes:{...g,notchedOutline:null}})});function Ox(e){return Rn("MuiSelect",e)}C3.muiName="Input";const E0=Mn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var F6;const oj=Et(Ix,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${E0.select}`]:t.select},{[`&.${E0.select}`]:t[n.variant]},{[`&.${E0.error}`]:t.error},{[`&.${E0.multiple}`]:t.multiple}]}})({[`&.${E0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),rj=Et(Px,{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]}})({}),ij=Et("input",{shouldForwardProp:e=>f2(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 B6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function aj(e){return e==null||typeof e=="string"&&!e.trim()}const lj=X.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:f,error:h=!1,IconComponent:g,inputRef:m,labelId:y,MenuProps:x={},multiple:v,name:b,onBlur:w,onChange:M,onClose:k,onFocus:j,onOpen:_,open:L,readOnly:T,renderValue:D,required:C,SelectDisplayProps:S={},tabIndex:R,type:P,value:I,variant:z="standard",...A}=e,[O,N]=Oc({controlled:I,default:d,name:"Select"}),[F,E]=Oc({controlled:L,default:c,name:"Select"}),B=X.useRef(null),H=X.useRef(null),[U,Z]=X.useState(null),{current:G}=X.useRef(L!=null),[V,le]=X.useState(),re=Xo(t,m),ge=X.useCallback(Xe=>{H.current=Xe,Xe&&Z(Xe)},[]),Q=U?.parentNode;X.useImperativeHandle(re,()=>({focus:()=>{H.current.focus()},node:B.current,value:O}),[O]),X.useEffect(()=>{c&&F&&U&&!G&&(le(i?null:Q.clientWidth),H.current.focus())},[U,i]),X.useEffect(()=>{r&&H.current.focus()},[r]),X.useEffect(()=>{if(!y)return;const Xe=ur(H.current).getElementById(y);if(Xe){const Be=()=>{getSelection().isCollapsed&&H.current.focus()};return Xe.addEventListener("click",Be),()=>{Xe.removeEventListener("click",Be)}}},[y]);const xe=(Xe,Be)=>{Xe?_&&_(Be):k&&k(Be),G||(le(i?null:Q.clientWidth),E(Xe))},be=X.Children.toArray(a),Fe=Xe=>Be=>{let ct;if(Be.currentTarget.hasAttribute("tabindex")){if(v){ct=Array.isArray(O)?O.slice():[];const et=O.indexOf(Xe.props.value);et===-1?ct.push(Xe.props.value):ct.splice(et,1)}else ct=Xe.props.value;if(Xe.props.onClick&&Xe.props.onClick(Be),O!==ct&&(N(ct),M)){const et=Be.nativeEvent||Be,he=new et.constructor(et.type,et);Object.defineProperty(he,"target",{writable:!0,value:{value:ct,name:b}}),M(he,Xe)}v||xe(!1,Be)}},ee=U!==null&&F;let ae,we;delete A["aria-invalid"];const se=[];let J=!1;(fu({value:O})||f)&&(D?ae=D(O):J=!0);const ce=be.map(Xe=>{if(!X.isValidElement(Xe))return null;let Be;if(v){if(!Array.isArray(O))throw new Error(Ta(2));Be=O.some(ct=>B6(ct,Xe.props.value)),Be&&J&&se.push(Xe.props.children)}else Be=B6(O,Xe.props.value),Be&&J&&(we=Xe.props.children);return X.cloneElement(Xe,{"aria-selected":Be?"true":"false",onClick:Fe(Xe),onKeyUp:ct=>{ct.key===" "&&ct.preventDefault(),Xe.props.onKeyUp&&Xe.props.onKeyUp(ct)},role:"option",selected:Be,value:void 0,"data-value":Xe.props.value})});J&&(ae=v?se.length===0?null:se.reduce((Xe,Be,ct)=>(Xe.push(Be),ct<se.length-1&&Xe.push(", "),Xe),[]):we);let ne,Pe=V;!i&&G&&U&&(Pe=Q.clientWidth),ne=R!==void 0?R:p?null:0;const Ee=S.id||(b?`mui-component-select-${b}`:void 0),it={...e,variant:z,value:O,open:ee,error:h},Ue=(Xe=>{const{classes:Be,variant:ct,disabled:et,multiple:he,open:Ye,error:Se}=Xe;return In({select:["select",ct,et&&"disabled",he&&"multiple",Se&&"error"],icon:["icon",`icon${xt(ct)}`,Ye&&"iconOpen",et&&"disabled"],nativeInput:["nativeInput"]},Ox,Be)})(it),ke={...x.PaperProps,...x.slotProps?.paper},_e=n0();return s.jsxs(X.Fragment,{children:[s.jsx(oj,{as:"div",ref:ge,tabIndex:ne,role:"combobox","aria-controls":ee?_e:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,Ee].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":C?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Xe=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Xe.key)&&(Xe.preventDefault(),xe(!0,Xe))},onMouseDown:p||T?null:Xe=>{Xe.button===0&&(Xe.preventDefault(),H.current.focus(),xe(!0,Xe))},onBlur:Xe=>{!ee&&w&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:O,name:b}}),w(Xe))},onFocus:j,...S,ownerState:it,className:Ot(S.className,Ue.select,l),id:Ee,children:aj(ae)?F6||(F6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ae}),s.jsx(ij,{"aria-invalid":h,value:Array.isArray(O)?O.join(","):O,name:b,ref:B,"aria-hidden":!0,onChange:Xe=>{const Be=be.find(ct=>ct.props.value===Xe.target.value);Be!==void 0&&(N(Be.props.value),M&&M(Xe,Be))},tabIndex:-1,disabled:p,className:Ue.nativeInput,autoFocus:r,required:C,...A,ownerState:it}),s.jsx(rj,{as:g,className:Ue.icon,ownerState:it}),s.jsx(U_,{id:`menu-${b||""}`,anchorEl:Q,open:ee,onClose:Xe=>{xe(!1,Xe)},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:_e,...x.MenuListProps},paper:{...ke,style:{minWidth:Pe,...ke!=null?ke.style:null}}},children:ce})]})}),k3={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xr(e)&&e!=="variant",slot:"Root"},sj=Et(Kl,k3)(""),cj=Et(C3,k3)(""),dj=Et(w3,k3)(""),w2=X.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=fT,id:p,input:f,inputProps:h,label:g,labelId:m,MenuProps:y,multiple:x=!1,native:v=!1,onClose:b,onOpen:w,open:M,renderValue:k,SelectDisplayProps:j,variant:_="outlined",...L}=n,T=v?Y_:lj,D=ql({props:n,muiFormControl:Ia(),states:["variant","error"]}),C=D.variant||_,S={...n,variant:C,classes:i},R=(O=>{const{classes:N}=O,F=In({root:["root"]},Ox,N);return{...N,...F}})(S),{root:P,...I}=R,z=f||{standard:s.jsx(sj,{ownerState:S}),outlined:s.jsx(cj,{label:g,ownerState:S}),filled:s.jsx(dj,{ownerState:S})}[C],A=Xo(t,o0(z));return s.jsx(X.Fragment,{children:X.cloneElement(z,{inputComponent:T,inputProps:{children:r,error:D.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:M,renderValue:k,SelectDisplayProps:{id:p,...j}},...h,classes:h?cr(I,h.classes):I,...f?f.props.inputProps:{}},...(x&&v||c)&&C==="outlined"?{notched:!0}:{},ref:A,className:Ot(z.props.className,a,R.root),...!f&&{variant:C},...L})})});w2.muiName="Select";function ns(e,t,n,o,r){return n===1?Math.min(e+t,r):Math.max(e-t,o)}function Dx(e,t){return e-t}function N6(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 G1(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 gu(e,t,n){return 100*(e-t)/(n-t)}function uj(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 $6({values:e,newValue:t,index:n}){const o=e.slice();return o[n]=t,o.sort(Dx)}function Z1({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 X1(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 pj={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}%`})}},hj=e=>e;let lp;function V6(){return lp===void 0&&(lp=typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("touch-action","none")),lp}function fj(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:f,orientation:h="horizontal",rootRef:g,scale:m=hj,step:y=1,shiftStep:x=10,tabIndex:v,value:b}=e,w=X.useRef(void 0),[M,k]=X.useState(-1),[j,_]=X.useState(-1),[L,T]=X.useState(!1),D=X.useRef(0),C=X.useRef(null),[S,R]=Oc({controlled:b,default:n??c,name:"Slider"}),P=p&&((se,J,ce)=>{const ne=se.nativeEvent||se,Pe=new ne.constructor(ne.type,ne);Object.defineProperty(Pe,"target",{writable:!0,value:{value:J,name:d}}),C.current=J,p(Pe,J,ce)}),I=Array.isArray(S);let z=I?S.slice().sort(Dx):[S];z=z.map(se=>se==null?c:ds(se,c,l));const A=a===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((se,J)=>({value:c+y*J})):a||[],O=A.map(se=>se.value),[N,F]=X.useState(-1),E=X.useRef(null),B=Xo(g,E),H=se=>J=>{const ce=Number(J.currentTarget.getAttribute("data-index"));zs(J.target)&&F(ce),_(ce),se?.onFocus?.(J)},U=se=>J=>{zs(J.target)||F(-1),_(-1),se?.onBlur?.(J)},Z=(se,J)=>{const ce=Number(se.currentTarget.getAttribute("data-index")),ne=z[ce],Pe=O.indexOf(ne);let Ee=J;if(A&&y==null){const it=O[O.length-1];Ee=Ee>=it?it:Ee<=O[0]?O[0]:Ee<ne?O[Pe-1]:O[Pe+1]}if(Ee=ds(Ee,c,l),I){r&&(Ee=ds(Ee,z[ce-1]||-1/0,z[ce+1]||1/0));const it=Ee;Ee=$6({values:z,newValue:Ee,index:ce});let Ue=ce;r||(Ue=Ee.indexOf(it)),Z1({sliderRef:E,activeIndex:Ue})}R(Ee),F(ce),P&&!X1(Ee,S)&&P(se,Ee,ce),f&&f(se,C.current??Ee)},G=se=>J=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(J.key)){J.preventDefault();const ce=Number(J.currentTarget.getAttribute("data-index")),ne=z[ce];let Pe=null;if(y!=null){const Ee=J.shiftKey?x:y;switch(J.key){case"ArrowUp":Pe=ns(ne,Ee,1,c,l);break;case"ArrowRight":Pe=ns(ne,Ee,i?-1:1,c,l);break;case"ArrowDown":Pe=ns(ne,Ee,-1,c,l);break;case"ArrowLeft":Pe=ns(ne,Ee,i?1:-1,c,l);break;case"PageUp":Pe=ns(ne,x,1,c,l);break;case"PageDown":Pe=ns(ne,x,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l}}else if(A){const Ee=O[O.length-1],it=O.indexOf(ne),Ue=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(J.key)?Pe=it===0?O[0]:O[it-1]:Ue.includes(J.key)&&(Pe=it===O.length-1?Ee:O[it+1])}Pe!=null&&Z(J,Pe)}se?.onKeyDown?.(J)};Br(()=>{o&&E.current.contains(document.activeElement)&&document.activeElement?.blur()},[o]),o&&M!==-1&&k(-1),o&&N!==-1&&F(-1);const V=X.useRef(void 0);let le=h;i&&h==="horizontal"&&(le+="-reverse");const re=({finger:se,move:J=!1})=>{const{current:ce}=E,{width:ne,height:Pe,bottom:Ee,left:it}=ce.getBoundingClientRect();let Ue,ke;if(Ue=le.startsWith("vertical")?(Ee-se.y)/Pe:(se.x-it)/ne,le.includes("-reverse")&&(Ue=1-Ue),ke=function(Xe,Be,ct){return(ct-Be)*Xe+Be}(Ue,c,l),y)ke=uj(ke,y,c);else{const Xe=N6(O,ke);ke=O[Xe]}ke=ds(ke,c,l);let _e=0;if(I){_e=J?V.current:N6(z,ke),r&&(ke=ds(ke,z[_e-1]||-1/0,z[_e+1]||1/0));const Xe=ke;ke=$6({values:z,newValue:ke,index:_e}),r&&J||(_e=ke.indexOf(Xe),V.current=_e)}return{newValue:ke,activeIndex:_e}},ge=zr(se=>{const J=G1(se,w);if(!J)return;if(D.current+=1,se.type==="mousemove"&&se.buttons===0)return void Q(se);const{newValue:ce,activeIndex:ne}=re({finger:J,move:!0});Z1({sliderRef:E,activeIndex:ne,setActive:k}),R(ce),!L&&D.current>2&&T(!0),P&&!X1(ce,S)&&P(se,ce,ne)}),Q=zr(se=>{const J=G1(se,w);if(T(!1),!J)return;const{newValue:ce}=re({finger:J,move:!0});k(-1),se.type==="touchend"&&_(-1),f&&f(se,C.current??ce),w.current=void 0,be()}),xe=zr(se=>{if(o)return;V6()||se.preventDefault();const J=se.changedTouches[0];J!=null&&(w.current=J.identifier);const ce=G1(se,w);if(ce!==!1){const{newValue:Pe,activeIndex:Ee}=re({finger:ce});Z1({sliderRef:E,activeIndex:Ee,setActive:k}),R(Pe),P&&!X1(Pe,S)&&P(se,Pe,Ee)}D.current=0;const ne=ur(E.current);ne.addEventListener("touchmove",ge,{passive:!0}),ne.addEventListener("touchend",Q,{passive:!0})}),be=X.useCallback(()=>{const se=ur(E.current);se.removeEventListener("mousemove",ge),se.removeEventListener("mouseup",Q),se.removeEventListener("touchmove",ge),se.removeEventListener("touchend",Q)},[Q,ge]);X.useEffect(()=>{const{current:se}=E;return se.addEventListener("touchstart",xe,{passive:V6()}),()=>{se.removeEventListener("touchstart",xe),be()}},[be,xe]),X.useEffect(()=>{o&&be()},[o,be]);const Fe=gu(I?z[0]:c,c,l),ee=gu(z[z.length-1],c,l)-Fe,ae=se=>J=>{se.onMouseLeave?.(J),_(-1)};let we;return h==="vertical"&&(we=i?"vertical-rl":"vertical-lr"),{active:M,axis:le,axisProps:pj,dragging:L,focusedThumbIndex:N,getHiddenInputProps:(se={})=>{const J=fc(se),ce={onChange:(ne=J||{},Ee=>{ne.onChange?.(Ee),Z(Ee,Ee.target.valueAsNumber)}),onFocus:H(J||{}),onBlur:U(J||{}),onKeyDown:G(J||{})};var ne;const Pe={...J,...ce};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":h,"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,...se,...Pe,style:{...FE,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:we}}},getRootProps:(se={})=>{const J=fc(se),ce={onMouseDown:(ne=J||{},Ee=>{if(ne.onMouseDown?.(Ee),o||Ee.defaultPrevented||Ee.button!==0)return;Ee.preventDefault();const it=G1(Ee,w);if(it!==!1){const{newValue:ke,activeIndex:_e}=re({finger:it});Z1({sliderRef:E,activeIndex:_e,setActive:k}),R(ke),P&&!X1(ke,S)&&P(Ee,ke,_e)}D.current=0;const Ue=ur(E.current);Ue.addEventListener("mousemove",ge,{passive:!0}),Ue.addEventListener("mouseup",Q)})};var ne;const Pe={...J,...ce};return{...se,ref:B,...Pe}},getThumbProps:(se={})=>{const J=fc(se),ce={onMouseOver:(ne=J||{},Pe=>{ne.onMouseOver?.(Pe);const Ee=Number(Pe.currentTarget.getAttribute("data-index"));_(Ee)}),onMouseLeave:ae(J||{})};var ne;return{...se,...J,...ce}},marks:A,open:j,range:I,rootRef:B,trackLeap:ee,trackOffset:Fe,values:z,getThumbStyle:se=>({pointerEvents:M!==-1&&M!==se?"none":void 0})}}function mj(e){return Rn("MuiSlider",e)}const Si=Mn("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 H6(e){return e}const gj=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]}})(Sn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Si.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Si.dragging}`]:{[`& .${Si.thumb}, & .${Si.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}}]}))),yj=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}}]}),xj=Et("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Sn(({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:Dl(e.palette[t].main,.62),borderColor:Dl(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Ol(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Ol(e.palette[t].main,.5)})}}}))]}))),bj=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)}`]]}})(Sn(({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%)"},[`&.${Si.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, &.${Si.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Si.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt(e.palette[t].main,.16)}`}}}}))]}))),vj=Et(function(e){const{children:t,className:n,value:o}=e,r=(i=>{const{open:a}=i;return{offset:Ot(a&&Si.valueLabelOpen),circle:Si.valueLabelCircle,label:Si.valueLabelLabel}})(e);return t?X.cloneElement(t,{className:Ot(t.props.className)},s.jsxs(X.Fragment,{children:[t.props.children,s.jsx("span",{className:Ot(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})(Sn(({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%"},[`&.${Si.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%"},[`&.${Si.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"}}]}))),wj=Et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>f2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Sn(({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}}]}))),Sj=Et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>f2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Sn(({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}}]}))),Cj=({children:e})=>e,kj=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiSlider"}),o=r0(),{"aria-label":r,"aria-valuetext":i,"aria-labelledby":a,component:l="span",components:c={},componentsProps:d={},color:p="primary",classes:f,className:h,disableSwap:g=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:x,marks:v=!1,max:b=100,min:w=0,name:M,onChange:k,onChangeCommitted:j,orientation:_="horizontal",shiftStep:L=10,size:T="medium",step:D=1,scale:C=H6,slotProps:S,slots:R,tabIndex:P,track:I="normal",value:z,valueLabelDisplay:A="off",valueLabelFormat:O=H6,...N}=n,F={...n,isRtl:o,max:b,min:w,classes:f,disabled:m,disableSwap:g,orientation:_,marks:v,color:p,size:T,step:D,shiftStep:L,scale:C,track:I,valueLabelDisplay:A,valueLabelFormat:O},{axisProps:E,getRootProps:B,getHiddenInputProps:H,getThumbProps:U,open:Z,active:G,axis:V,focusedThumbIndex:le,range:re,dragging:ge,marks:Q,values:xe,trackOffset:be,trackLeap:Fe,getThumbStyle:ee}=fj({...F,rootRef:t});F.marked=Q.length>0&&Q.some(te=>te.label),F.dragging=ge,F.focusedThumbIndex=le;const ae=(te=>{const{disabled:oe,dragging:ue,marked:ie,orientation:pe,track:fe,classes:ye,color:De,size:Ve}=te;return In({root:["root",oe&&"disabled",ue&&"dragging",ie&&"marked",pe==="vertical"&&"vertical",fe==="inverted"&&"trackInverted",fe===!1&&"trackFalse",De&&`color${xt(De)}`,Ve&&`size${xt(Ve)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",oe&&"disabled",Ve&&`thumbSize${xt(Ve)}`,De&&`thumbColor${xt(De)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},mj,ye)})(F),we=R?.root??c.Root??gj,se=R?.rail??c.Rail??yj,J=R?.track??c.Track??xj,ce=R?.thumb??c.Thumb??bj,ne=R?.valueLabel??c.ValueLabel??vj,Pe=R?.mark??c.Mark??wj,Ee=R?.markLabel??c.MarkLabel??Sj,it=R?.input??c.Input??"input",Ue=S?.root??d.root,ke=S?.rail??d.rail,_e=S?.track??d.track,Xe=S?.thumb??d.thumb,Be=S?.valueLabel??d.valueLabel,ct=S?.mark??d.mark,et=S?.markLabel??d.markLabel,he=S?.input??d.input,Ye=Vr({elementType:we,getSlotProps:B,externalSlotProps:Ue,externalForwardedProps:N,additionalProps:{...(Se=we,(!Se||!Sl(Se))&&{as:l})},ownerState:{...F,...Ue?.ownerState},className:[ae.root,h]});var Se;const Ie=Vr({elementType:se,externalSlotProps:ke,ownerState:F,className:ae.rail}),de=Vr({elementType:J,externalSlotProps:_e,additionalProps:{style:{...E[V].offset(be),...E[V].leap(Fe)}},ownerState:{...F,..._e?.ownerState},className:ae.track}),Oe=Vr({elementType:ce,getSlotProps:U,externalSlotProps:Xe,ownerState:{...F,...Xe?.ownerState},className:ae.thumb}),Le=Vr({elementType:ne,externalSlotProps:Be,ownerState:{...F,...Be?.ownerState},className:ae.valueLabel}),je=Vr({elementType:Pe,externalSlotProps:ct,ownerState:F,className:ae.mark}),K=Vr({elementType:Ee,externalSlotProps:et,ownerState:F,className:ae.markLabel}),W=Vr({elementType:it,getSlotProps:H,externalSlotProps:he,ownerState:F});return s.jsxs(we,{...Ye,children:[s.jsx(se,{...Ie}),s.jsx(J,{...de}),Q.filter(te=>te.value>=w&&te.value<=b).map((te,oe)=>{const ue=gu(te.value,w,b),ie=E[V].offset(ue);let pe;return pe=I===!1?xe.includes(te.value):I==="normal"&&(re?te.value>=xe[0]&&te.value<=xe[xe.length-1]:te.value<=xe[0])||I==="inverted"&&(re?te.value<=xe[0]||te.value>=xe[xe.length-1]:te.value>=xe[0]),s.jsxs(X.Fragment,{children:[s.jsx(Pe,{"data-index":oe,...je,...!Sl(Pe)&&{markActive:pe},style:{...ie,...je.style},className:Ot(je.className,pe&&ae.markActive)}),te.label!=null?s.jsx(Ee,{"aria-hidden":!0,"data-index":oe,...K,...!Sl(Ee)&&{markLabelActive:pe},style:{...ie,...K.style},className:Ot(ae.markLabel,K.className,pe&&ae.markLabelActive),children:te.label}):null]},oe)}),xe.map((te,oe)=>{const ue=gu(te,w,b),ie=E[V].offset(ue),pe=A==="off"?Cj:ne;return s.jsx(pe,{...!Sl(pe)&&{valueLabelFormat:O,valueLabelDisplay:A,value:typeof O=="function"?O(C(te),oe):O,index:oe,open:Z===oe||G===oe||A==="on",disabled:m},...Le,children:s.jsx(ce,{"data-index":oe,...Oe,className:Ot(ae.thumb,Oe.className,G===oe&&ae.active,le===oe&&ae.focusVisible),style:{...ie,...ee(oe),...Oe.style},children:s.jsx(it,{"data-index":oe,"aria-label":y?y(oe):r,"aria-valuenow":C(te),"aria-labelledby":a,"aria-valuetext":x?x(C(te),oe):i,value:xe[oe],...W})})},oe)})]})});function Ej(e){return Rn("MuiTooltip",e)}const Lo=Mn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Mj=Et(b3,{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]}})(Sn(({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"] .${Lo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Lo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Tj=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])}`]]}})(Sn(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pt(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,[`.${Lo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Lo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Lo.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:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:n})=>!n.isRtl&&n.touch,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:n})=>!!n.isRtl,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:n})=>!!n.isRtl&&n.touch,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Lo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Lo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),_j=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Sn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Y1=!1;const W6=new h2;let M0={x:0,y:0};function J1(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const jj=X.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:f=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:x=!1,id:v,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:M,onOpen:k,open:j,placement:_="bottom",PopperComponent:L,PopperProps:T={},slotProps:D={},slots:C={},title:S,TransitionComponent:R,TransitionProps:P,...I}=n,z=X.isValidElement(r)?r:s.jsx("span",{children:r}),A=i0(),O=r0(),[N,F]=X.useState(),[E,B]=X.useState(null),H=X.useRef(!1),U=f||x,Z=vl(),G=vl(),V=vl(),le=vl(),[re,ge]=Oc({controlled:j,default:!1,name:"Tooltip",state:"open"});let Q=re;const xe=n0(v),be=X.useRef(),Fe=zr(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),le.clear()});X.useEffect(()=>Fe,[Fe]);const ee=ie=>{W6.clear(),Y1=!0,ge(!0),k&&!Q&&k(ie)},ae=zr(ie=>{W6.start(800+b,()=>{Y1=!1}),ge(!1),M&&Q&&M(ie),Z.start(A.transitions.duration.shortest,()=>{H.current=!1})}),we=ie=>{H.current&&ie.type!=="touchstart"||(N&&N.removeAttribute("title"),G.clear(),V.clear(),g||Y1&&m?G.start(Y1?m:g,()=>{ee(ie)}):ee(ie))},se=ie=>{G.clear(),V.start(b,()=>{ae(ie)})},[,J]=X.useState(!1),ce=ie=>{zs(ie.target)||(J(!1),se(ie))},ne=ie=>{N||F(ie.currentTarget),zs(ie.target)&&(J(!0),we(ie))},Pe=ie=>{H.current=!0;const pe=z.props;pe.onTouchStart&&pe.onTouchStart(ie)},Ee=ie=>{Pe(ie),V.clear(),Z.clear(),Fe(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(y,()=>{document.body.style.WebkitUserSelect=be.current,we(ie)})},it=ie=>{z.props.onTouchEnd&&z.props.onTouchEnd(ie),Fe(),V.start(w,()=>{ae(ie)})};X.useEffect(()=>{if(Q)return document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)};function ie(pe){pe.key==="Escape"&&ae(pe)}},[ae,Q]);const Ue=Xo(o0(z),F,t);S||S===0||(Q=!1);const ke=X.useRef(),_e={},Xe=typeof S=="string";c?(_e.title=Q||!Xe||p?null:S,_e["aria-describedby"]=Q?xe:null):(_e["aria-label"]=Xe?S:null,_e["aria-labelledby"]=Q&&!Xe?xe:null);const Be={..._e,...I,...z.props,className:Ot(I.className,z.props.className),onTouchStart:Pe,ref:Ue,...x?{onMouseMove:ie=>{const pe=z.props;pe.onMouseMove&&pe.onMouseMove(ie),M0={x:ie.clientX,y:ie.clientY},ke.current&&ke.current.update()}}:{}},ct={};h||(Be.onTouchStart=Ee,Be.onTouchEnd=it),p||(Be.onMouseOver=J1(we,Be.onMouseOver),Be.onMouseLeave=J1(se,Be.onMouseLeave),U||(ct.onMouseOver=we,ct.onMouseLeave=se)),d||(Be.onFocus=J1(ne,Be.onFocus),Be.onBlur=J1(ce,Be.onBlur),U||(ct.onFocus=ne,ct.onBlur=ce));const et={...n,isRtl:O,arrow:o,disableInteractive:U,placement:_,PopperComponentProp:L,touch:H.current},he=typeof D.popper=="function"?D.popper(et):D.popper,Ye=X.useMemo(()=>{let ie=[{name:"arrow",enabled:!!E,options:{element:E,padding:4}}];return T.popperOptions?.modifiers&&(ie=ie.concat(T.popperOptions.modifiers)),he?.popperOptions?.modifiers&&(ie=ie.concat(he.popperOptions.modifiers)),{...T.popperOptions,...he?.popperOptions,modifiers:ie}},[E,T.popperOptions,he?.popperOptions]),Se=(ie=>{const{classes:pe,disableInteractive:fe,arrow:ye,touch:De,placement:Ve}=ie;return In({popper:["popper",!fe&&"popperInteractive",ye&&"popperArrow"],tooltip:["tooltip",ye&&"tooltipArrow",De&&"touch",`tooltipPlacement${xt(Ve.split("-")[0])}`],arrow:["arrow"]},Ej,pe)})(et),Ie=typeof D.transition=="function"?D.transition(et):D.transition,de={slots:{popper:a.Popper,transition:a.Transition??R,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:D.arrow??l.arrow,popper:{...T,...he??l.popper},tooltip:D.tooltip??l.tooltip,transition:{...P,...Ie??l.transition}}},[Oe,Le]=Qn("popper",{elementType:Mj,externalForwardedProps:de,ownerState:et,className:Ot(Se.popper,T?.className)}),[je,K]=Qn("transition",{elementType:Fc,externalForwardedProps:de,ownerState:et}),[W,te]=Qn("tooltip",{elementType:Tj,className:Se.tooltip,externalForwardedProps:de,ownerState:et}),[oe,ue]=Qn("arrow",{elementType:_j,className:Se.arrow,externalForwardedProps:de,ownerState:et,ref:B});return s.jsxs(X.Fragment,{children:[X.cloneElement(z,Be),s.jsx(Oe,{as:L??b3,placement:_,anchorEl:x?{getBoundingClientRect:()=>({top:M0.y,left:M0.x,right:M0.x,bottom:M0.y,width:0,height:0})}:N,popperRef:ke,open:!!N&&Q,id:xe,transition:!0,...ct,...Le,popperOptions:Ye,children:({TransitionProps:ie})=>s.jsx(je,{timeout:A.transitions.duration.shorter,...ie,...K,children:s.jsxs(W,{...te,children:[S,o?s.jsx(oe,{...ue}):null]})})})]})});function Rj(e){return Rn("MuiTab",e)}const fi=Mn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Ij=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,{[`& .${fi.iconWrapper}`]:t.iconWrapper},{[`& .${fi.icon}`]:t.icon}]}})(Sn(({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:{[`& > .${fi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${fi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${fi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${fi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${fi.selected}`]:{opacity:1},[`&.${fi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fi.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)}}]}))),Pj=X.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:f,onClick:h,onFocus:g,selected:m,selectionFollowsFocus:y,textColor:x="inherit",value:v,wrapped:b=!1,...w}=n,M={...n,disabled:r,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!p,fullWidth:a,textColor:x,wrapped:b},k=(_=>{const{classes:L,textColor:T,fullWidth:D,wrapped:C,icon:S,label:R,selected:P,disabled:I}=_;return In({root:["root",S&&R&&"labelIcon",`textColor${xt(T)}`,D&&"fullWidth",C&&"wrapped",P&&"selected",I&&"disabled"],icon:["iconWrapper","icon"]},Rj,L)})(M),j=l&&p&&X.isValidElement(l)?X.cloneElement(l,{className:Ot(k.icon,l.props.className)}):l;return s.jsxs(Ij,{focusRipple:!i,className:Ot(k.root,o),ref:t,role:"tab","aria-selected":m,disabled:r,onClick:_=>{!m&&f&&f(_,v),h&&h(_)},onFocus:_=>{y&&!m&&f&&f(_,v),g&&g(_)},ownerState:M,tabIndex:m?0:-1,...w,children:[c==="top"||c==="start"?s.jsxs(X.Fragment,{children:[j,p]}):s.jsxs(X.Fragment,{children:[p,j]}),d]})});function Oj(e){return Rn("MuiToolbar",e)}Mn("MuiToolbar",["root","gutters","regular","dense"]);const Dj=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Sn(({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}]}))),Aj=X.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:f,disableGutters:h,variant:g}=p;return In({root:["root",!h&&"gutters",g]},Oj,f)})(c);return s.jsx(Dj,{as:r,className:Ot(d.root,o),ref:t,ownerState:c,...l})}),Lj=Kn(s.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),zj=Kn(s.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Fj(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Bj={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Nj(e){return Rn("MuiTabScrollButton",e)}const $j=Mn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Vj=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,[`&.${$j.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Hj=X.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=r0(),f={isRtl:p,...n},h=(v=>{const{classes:b,orientation:w,disabled:M}=v;return In({root:["root",w,M&&"disabled"]},Nj,b)})(f),g=r.StartScrollButtonIcon??Lj,m=r.EndScrollButtonIcon??zj,y=Vr({elementType:g,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),x=Vr({elementType:m,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return s.jsx(Vj,{component:"div",className:Ot(h.root,o),ref:t,role:null,ownerState:f,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 Wj(e){return Rn("MuiTabs",e)}const sp=Mn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),U6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,q6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Q1=(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)}},Uj=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sp.scrollButtons}`]:t.scrollButtons},{[`& .${sp.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Sn(({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:{[`& .${sp.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),qj=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"}}]}),Kj=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"}}]}),Gj=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Sn(({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}}]}))),Zj=Et(function(e){const{onChange:t,...n}=e,o=X.useRef(),r=X.useRef(null),i=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return Br(()=>{const a=p2(()=>{const c=o.current;i(),c!==o.current&&t(o.current)}),l=Hi(r.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),X.useEffect(()=>{i(),t(o.current)},[t]),s.jsx("div",{style:Bj,...n,ref:r})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K6={},Xj=X.forwardRef(function(e,t){const n=An({props:e,name:"MuiTabs"}),o=i0(),r=r0(),{"aria-label":i,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:x,scrollButtons:v="auto",selectionFollowsFocus:b,slots:w={},slotProps:M={},TabIndicatorProps:k={},TabScrollButtonProps:j={},textColor:_="primary",value:L,variant:T="standard",visibleScrollbar:D=!1,...C}=n,S=T==="scrollable",R=y==="vertical",P=R?"scrollTop":"scrollLeft",I=R?"top":"left",z=R?"bottom":"right",A=R?"clientHeight":"clientWidth",O=R?"height":"width",N={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:g,orientation:y,vertical:R,scrollButtons:v,textColor:_,variant:T,visibleScrollbar:D,fixed:!S,hideScrollbar:S&&!D,scrollableX:S&&!R,scrollableY:S&&R,centered:c&&!S,scrollButtonsHideMobile:!h},F=(pe=>{const{vertical:fe,fixed:ye,hideScrollbar:De,scrollableX:Ve,scrollableY:Je,centered:ot,scrollButtonsHideMobile:tt,classes:Lt}=pe;return In({root:["root",fe&&"vertical"],scroller:["scroller",ye&&"fixed",De&&"hideScrollbar",Ve&&"scrollableX",Je&&"scrollableY"],list:["list","flexContainer",fe&&"flexContainerVertical",fe&&"vertical",ot&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",tt&&"scrollButtonsHideMobile"],scrollableX:[Ve&&"scrollableX"],hideScrollbar:[De&&"hideScrollbar"]},Wj,Lt)})(N),E=Vr({elementType:w.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:N}),B=Vr({elementType:w.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:N}),[H,U]=X.useState(!1),[Z,G]=X.useState(K6),[V,le]=X.useState(!1),[re,ge]=X.useState(!1),[Q,xe]=X.useState(!1),[be,Fe]=X.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,ae=X.useRef(null),we=X.useRef(null),se={slots:w,slotProps:{indicator:k,scrollButton:j,...M}},J=()=>{const pe=ae.current;let fe,ye;if(pe){const De=pe.getBoundingClientRect();fe={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollWidth:pe.scrollWidth,top:De.top,bottom:De.bottom,left:De.left,right:De.right}}if(pe&&L!==!1){const De=we.current.children;if(De.length>0){const Ve=De[ee.get(L)];ye=Ve?Ve.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:ye}},ce=zr(()=>{const{tabsMeta:pe,tabMeta:fe}=J();let ye,De=0;R?(ye="top",fe&&pe&&(De=fe.top-pe.top+pe.scrollTop)):(ye=r?"right":"left",fe&&pe&&(De=(r?-1:1)*(fe[ye]-pe[ye]+pe.scrollLeft)));const Ve={[ye]:De,[O]:fe?fe[O]:0};if(typeof Z[ye]!="number"||typeof Z[O]!="number")G(Ve);else{const Je=Math.abs(Z[ye]-Ve[ye]),ot=Math.abs(Z[O]-Ve[O]);(Je>=1||ot>=1)&&G(Ve)}}),ne=(pe,{animation:fe=!0}={})=>{fe?function(ye,De,Ve,Je={},ot=()=>{}){const{ease:tt=Fj,duration:Lt=300}=Je;let At=null;const _t=De[ye];let Yt=!1;const Jt=()=>{Yt=!0},Qt=rn=>{if(Yt)return void ot(new Error("Animation cancelled"));At===null&&(At=rn);const yn=Math.min(1,(rn-At)/Lt);De[ye]=tt(yn)*(Ve-_t)+_t,yn>=1?requestAnimationFrame(()=>{ot(null)}):requestAnimationFrame(Qt)};_t===Ve?ot(new Error("Element already at target position")):requestAnimationFrame(Qt)}(P,ae.current,pe,{duration:o.transitions.duration.standard}):ae.current[P]=pe},Pe=pe=>{let fe=ae.current[P];fe+=R?pe:pe*(r?-1:1),ne(fe)},Ee=()=>{const pe=ae.current[A];let fe=0;const ye=Array.from(we.current.children);for(let De=0;De<ye.length;De+=1){const Ve=ye[De];if(fe+Ve[A]>pe){De===0&&(fe=pe);break}fe+=Ve[A]}return fe},it=()=>{Pe(-1*Ee())},Ue=()=>{Pe(Ee())},[ke,{onChange:_e,...Xe}]=Qn("scrollbar",{className:Ot(F.scrollableX,F.hideScrollbar),elementType:Zj,shouldForwardComponentProp:!0,externalForwardedProps:se,ownerState:N}),Be=X.useCallback(pe=>{_e?.(pe),Fe({overflow:null,scrollbarWidth:pe})},[_e]),[ct,et]=Qn("scrollButtons",{className:Ot(F.scrollButtons,j.className),elementType:Hj,externalForwardedProps:se,ownerState:N,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:E,endScrollButtonIcon:B}}}),he=zr(pe=>{const{tabsMeta:fe,tabMeta:ye}=J();if(ye&&fe){if(ye[I]<fe[I]){const De=fe[P]+(ye[I]-fe[I]);ne(De,{animation:pe})}else if(ye[z]>fe[z]){const De=fe[P]+(ye[z]-fe[z]);ne(De,{animation:pe})}}}),Ye=zr(()=>{S&&v!==!1&&xe(!Q)});X.useEffect(()=>{const pe=p2(()=>{ae.current&&ce()});let fe;const ye=Je=>{Je.forEach(ot=>{ot.removedNodes.forEach(tt=>{fe?.unobserve(tt)}),ot.addedNodes.forEach(tt=>{fe?.observe(tt)})}),pe(),Ye()},De=Hi(ae.current);let Ve;return De.addEventListener("resize",pe),typeof ResizeObserver<"u"&&(fe=new ResizeObserver(pe),Array.from(we.current.children).forEach(Je=>{fe.observe(Je)})),typeof MutationObserver<"u"&&(Ve=new MutationObserver(ye),Ve.observe(we.current,{childList:!0})),()=>{pe.clear(),De.removeEventListener("resize",pe),Ve?.disconnect(),fe?.disconnect()}},[ce,Ye]),X.useEffect(()=>{const pe=Array.from(we.current.children),fe=pe.length;if(typeof IntersectionObserver<"u"&&fe>0&&S&&v!==!1){const ye=pe[0],De=pe[fe-1],Ve={root:ae.current,threshold:.99},Je=new IntersectionObserver(tt=>{le(!tt[0].isIntersecting)},Ve);Je.observe(ye);const ot=new IntersectionObserver(tt=>{ge(!tt[0].isIntersecting)},Ve);return ot.observe(De),()=>{Je.disconnect(),ot.disconnect()}}},[S,v,Q,d?.length]),X.useEffect(()=>{U(!0)},[]),X.useEffect(()=>{ce()}),X.useEffect(()=>{he(K6!==Z)},[he,Z]),X.useImperativeHandle(l,()=>({updateIndicator:ce,updateScrollButtons:Ye}),[ce,Ye]);const[Se,Ie]=Qn("indicator",{className:Ot(F.indicator,k.className),elementType:Gj,externalForwardedProps:se,ownerState:N,additionalProps:{style:Z}}),de=s.jsx(Se,{...Ie});let Oe=0;const Le=X.Children.map(d,pe=>{if(!X.isValidElement(pe))return null;const fe=pe.props.value===void 0?Oe:pe.props.value;ee.set(fe,Oe);const ye=fe===L;return Oe+=1,X.cloneElement(pe,{fullWidth:T==="fullWidth",indicator:ye&&!H&&de,selected:ye,selectionFollowsFocus:b,onChange:m,textColor:_,value:fe,...Oe!==1||L!==!1||pe.props.tabIndex?{}:{tabIndex:0}})}),je=(()=>{const pe={};pe.scrollbarSizeListener=S?s.jsx(ke,{...Xe,onChange:Be}):null;const fe=S&&(v==="auto"&&(V||re)||v===!0);return pe.scrollButtonStart=fe?s.jsx(ct,{direction:r?"right":"left",onClick:it,disabled:!V,...et}):null,pe.scrollButtonEnd=fe?s.jsx(ct,{direction:r?"left":"right",onClick:Ue,disabled:!re,...et}):null,pe})(),[K,W]=Qn("root",{ref:t,className:Ot(F.root,p),elementType:Uj,externalForwardedProps:{...se,...C,component:f},ownerState:N}),[te,oe]=Qn("scroller",{ref:ae,className:F.scroller,elementType:qj,externalForwardedProps:se,ownerState:N,additionalProps:{style:{overflow:be.overflow,[R?"margin"+(r?"Left":"Right"):"marginBottom"]:D?void 0:-be.scrollbarWidth}}}),[ue,ie]=Qn("list",{ref:we,className:Ot(F.list,F.flexContainer),elementType:Kj,externalForwardedProps:se,ownerState:N,getSlotProps:pe=>({...pe,onKeyDown:fe=>{(ye=>{if(ye.altKey||ye.shiftKey||ye.ctrlKey||ye.metaKey)return;const De=we.current,Ve=ur(De).activeElement;if(Ve.getAttribute("role")!=="tab")return;let Je=y==="horizontal"?"ArrowLeft":"ArrowUp",ot=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&r&&(Je="ArrowRight",ot="ArrowLeft"),ye.key){case Je:ye.preventDefault(),Q1(De,Ve,q6);break;case ot:ye.preventDefault(),Q1(De,Ve,U6);break;case"Home":ye.preventDefault(),Q1(De,null,U6);break;case"End":ye.preventDefault(),Q1(De,null,q6)}})(fe),pe.onKeyDown?.(fe)}})});return s.jsxs(K,{...W,children:[je.scrollButtonStart,je.scrollbarSizeListener,s.jsxs(te,{...oe,children:[s.jsx(ue,{"aria-label":i,"aria-labelledby":a,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:Le}),H&&de]}),je.scrollButtonEnd]})});function Yj(e){return Rn("MuiTextField",e)}Mn("MuiTextField",["root"]);const Jj={standard:Kl,filled:w3,outlined:C3},Qj=Et(b1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E3=X.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:f,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:y,inputProps:x,InputProps:v,inputRef:b,label:w,maxRows:M,minRows:k,multiline:j=!1,name:_,onBlur:L,onChange:T,onFocus:D,placeholder:C,required:S=!1,rows:R,select:P=!1,SelectProps:I,slots:z={},slotProps:A={},type:O,value:N,variant:F="outlined",...E}=n,B={...n,autoFocus:r,color:l,disabled:d,error:p,fullWidth:h,multiline:j,required:S,select:P,variant:F},H=(it=>{const{classes:Ue}=it;return In({root:["root"]},Yj,Ue)})(B),U=n0(m),Z=g&&U?`${U}-helper-text`:void 0,G=w&&U?`${U}-label`:void 0,V=Jj[F],le={slots:z,slotProps:{input:v,inputLabel:y,htmlInput:x,formHelperText:f,select:I,...A}},re={},ge=le.slotProps.inputLabel;F==="outlined"&&(ge&&ge.shrink!==void 0&&(re.notched=ge.shrink),re.label=w),P&&(I&&I.native||(re.id=void 0),re["aria-describedby"]=void 0);const[Q,xe]=Qn("root",{elementType:Qj,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...E},ownerState:B,className:Ot(H.root,a),ref:t,additionalProps:{disabled:d,error:p,fullWidth:h,required:S,color:l,variant:F}}),[be,Fe]=Qn("input",{elementType:V,externalForwardedProps:le,additionalProps:re,ownerState:B}),[ee,ae]=Qn("inputLabel",{elementType:_x,externalForwardedProps:le,ownerState:B}),[we,se]=Qn("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:B}),[J,ce]=Qn("formHelperText",{elementType:g_,externalForwardedProps:le,ownerState:B}),[ne,Pe]=Qn("select",{elementType:w2,externalForwardedProps:le,ownerState:B}),Ee=s.jsx(be,{"aria-describedby":Z,autoComplete:o,autoFocus:r,defaultValue:c,fullWidth:h,multiline:j,name:_,rows:R,maxRows:M,minRows:k,type:O,value:N,id:U,inputRef:b,onBlur:L,onChange:T,onFocus:D,placeholder:C,inputProps:se,slots:{input:z.htmlInput?we:void 0},...Fe});return s.jsxs(Q,{...xe,children:[w!=null&&w!==""&&s.jsx(ee,{htmlFor:U,id:G,...ae,children:w}),P?s.jsx(ne,{"aria-describedby":Z,id:U,labelId:G,value:N,input:Ee,...Pe,children:i}):Ee,g&&s.jsx(J,{id:Z,...ce,children:g})]})}),eR=Kn(s.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),tR=Kn(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"),nR=Kn(s.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),oR=Kn(s.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ax=Kn(s.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),rR=Kn(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"),M3=Kn(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"),iR=Kn(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"),aR=Kn(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"),G6=Kn(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"),lR=Kn(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"),sR=Kn(s.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Lx=Kn(s.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Z6=Kn(s.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),xc=Kn(s.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),X6=Kn(s.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),cR=Kn(s.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),dR=Kn(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"),Y6=Kn(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"),S2=Kn(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"),uR=Kn(s.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),pR=Kn(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"),hR=Kn(s.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),zx=Kn(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 Fx(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=Fx(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=Fx(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",ba="text/plain",Bd="image/png",fR=Object.freeze({left:0,top:0}),mR=Object.freeze({left:0,top:0,bottom:0,right:0}),gR=Object.freeze({x:0,y:0,width:0,height:0}),Bc=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:gR,EmptyRect:mR,EmptyTopLeft:fR},Symbol.toStringTag,{value:"Module"})),_l="column",Nc="row",yR=Object.freeze({colIndex:0,rowIndex:0}),xR=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),Bx=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Nx=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,bR=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,vR=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,J6=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,Q6=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,$x=(e=Nc,t=!1)=>t?e!==_l?bR:vR:e!==_l?Nx:Bx,e4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,F5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,B5=(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(!F5(e[n],t[n]))return!1;return!0},cp=(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},n4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];B5(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},wR=[null,null],SR=(e,t,n)=>{if(e[0].value===e[1].value)return t};function o4(e,t=2,n,o=Nc,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===_l,l=0,c=!1;do{const d=i.sort($x(a?Nc:_l));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let M={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(M.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,M=n(k,M,o)}if(M){i[f]=M,c=!0,h=M,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.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:yR,EmptyRange:xR,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:J6,columnFirstRangeComparator:Bx,createCellComparator:(e=Nc,t=!1)=>t?e!==_l?(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!==_l?Q6:J6,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 f=d!==void 0;if(f){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 h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?o4(n,3,l===!0?SR:l,t?_l:Nc,wR):n)}},createRangeComparator:$x,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:n4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!F5(n,o);)o=n,n=n4(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(B5(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:e4,isEqualRanges:F5,isEqualRangesArrays:t4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!e4(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:B5,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:o4,rowFirstCellComparator:Q6,rowFirstRangeComparator:Nx,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:cp,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=cp(o,e[r],n);return t&&(o=cp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),CR=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function kR(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===CR}(e)}function Q0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ll((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ER(e,t,n){return e.concat(t).map(function(o){return Q0(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 Ll(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ER,n.isMergeableObject=n.isMergeableObject||kR,n.cloneUnlessOtherwiseSpecified=Q0;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]=Q0(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(f,h){if(!h.customMerge)return Ll;const g=h.customMerge(f);return typeof g=="function"?g:Ll}(c,a)(r[c],i[c],a):l[c]=Q0(i[c],a))}),l}(e,t,n):Q0(t,n)}Ll.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Ll(n,o,t)},{})};const MR=Object.freeze([]),TR=Object.freeze({}),a4=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)}),Vx=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),T0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Hx=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Hx(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),_R=(e,t)=>!(e!==t&&!Vx(e,t)&&!e.isEqual?.(t)),Wx=(e,t,n=_R)=>{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];Wx(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},l4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),s4=e=>e==null,c4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),d4=!(typeof window>"u"||!window.document||!window.document.createElement),Ir={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},$c=()=>{if(Ux())return Ir.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Ir.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Ir.MacOS:/(iphone|ipad|ipod)/i.test(e)?Ir.IOS:/android/.test(e)?Ir.Android:/linux/.test(e)?Ir.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Ir.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Ir.Firefox:Ir.Unknown:Ir.Unknown};function Ux(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const u4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Gt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:MR,EmptyObject:TR,OSType:Ir,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:d4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>s4(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:Ll,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=a4){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=a4){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||!T0(a))return a;o=a}return o??null},getOS:$c,hasFocus:u4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Vx,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:Ux,isNullOrUndefined:s4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:T0,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:c4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!T0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Ll(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(!d4)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:Hx,removeEqualValues:Wx,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=l4(),o={id:requestAnimationFrame(function r(){l4()-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),!T0(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"&&!T0(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(!c4(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=>{u4(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 qx=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")},N5=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("")}),jR=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:qx,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:N5},Symbol.toStringTag,{value:"Module"})),Kx="data:image/png;base64,",Gx="Unable to resolve image.",p4=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(Gx)}),dp="image/svg+xml";var h4,f4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Kx,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(Gx)}),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 p4(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:dp})),l=await p4(a);n={mimeType:t??dp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===dp?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"})),(f4=h4||(h4={})).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 f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,f4.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};let $5=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const m4=`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.`,up=`You do not have permissions to access the clipboard.
|
|
119
|
-
All copy and paste operations will be limited to the browser tab.`,Zx={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:up,PermsWrite:$c()===Ir.Safari?m4:up,PermsRead:$c()===Ir.Safari?m4:up},pp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),hp=async(e,t,n)=>{if($c()===Ir.Safari)return await n(new Error(Zx.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)}},Xx=async e=>{try{return await e.read({unsanitized:[kr]})}catch{}return await e.read()},Yx=async(e,t)=>{if(!e)return null;const n=await Xx(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 yu=async(e,t=kr)=>new Promise(async(n,o)=>{try{const r=await Yx(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)}}),V5=async(e,t=kr)=>{const n=await yu(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},RR=Yx,IR=yu,PR=V5,Vc="clipboard-uuid",os="web text/uuid",g4=e=>`<div style="display:none" ${Vc}="${e}"/>`,OR=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,kr);o.body.firstElementChild.setAttribute(Vc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},y4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Vc}="${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 Hs=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 hp("clipboard-read",async()=>{await pp();const e=await yu(this._nativeClipboard,os);if(!this._state||e&&e===this._state.uuid)return!0;const t=await V5(this._nativeClipboard,kr);return!this._state||(y4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||$c()===Ir.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 hp("clipboard-read",async()=>{if(await pp(),this._state?.uuid){const t=await yu(this._nativeClipboard,os);if(t&&t===e._state.uuid)return!0;const n=await V5(this._nativeClipboard,kr);if(y4(e._state?.uuid,n))return!0}return e._state={items:await Xx(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 hp("clipboard-write",async()=>{await pp(),o&&r.length===0&&(r.push(new ClipboardItem({[os]:new Blob([o],{type:os})})),r.push(new ClipboardItem({[kr]:new Blob([g4(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 h=await l.getType(kr);d=await N5(h),d&&(d=OR(o,d))}if(!d&&l.types.includes(ba)){const h=await l.getType(ba);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await N5(h),g&&(d=`<div ${Vc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(Bd)){const h=await l.getType(Bd),g=qx(await h.arrayBuffer());d=`<div ${Vc}="${o}"><img src="${Kx+g}"/></div>`}!d&&o&&(d=g4(o));const p=new Blob([d??""],{type:kr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[kr]=p),o&&(f[os]=new Blob([o],{type:os})),n.push(new ClipboardItem(f))}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[ba]=new Blob([r??""],{type:ba}))}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[Bd]=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(ba)&&(o=await n[i].getType(ba));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({[ba]:new Blob([e],{type:ba})})];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 fp;(fp=Hs||(Hs={})).ErrorMessages=Zx,fp.Global=new fp,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"},on={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 Jx(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=Jx(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=Jx(e))&&(o&&(o+=" "),o+=t);return o}var DR=function(){},Qx=typeof window<"u",AR=Qx?u.useLayoutEffect:u.useEffect,x4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const zl=Qx&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(x4),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return AR(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[DR,x4]},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},eb=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"})})})})},tb=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"})})})})},LR=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"})})})},H5=(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},b4=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:H5},Symbol.toStringTag,{value:"Module"})),T3=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:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=eb,createScrollEndButton:y=tb,...x}=e,v=Te(d,[d]),b=u.useRef(null),[w,{width:M,height:k}]=zl(),[j,{width:_,height:L}]=zl(),T=l===yr.Vertical,D=T?"top":"left",C=T?"scrollTop":"scrollLeft",S=T?k:M,R=T?L:_,[P,I]=u.useState(null);u.useEffect(()=>{P!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[D]:P})},[P,T]);const z=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=le?0:H5(V,ge[D],Q,!0,Math.max(0,V-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=Math.ceil(R-S),be=le?xe:H5(V,ge[D],Q,!1,Math.max(0,V+f));return I(be),Math.min(xe,be)},[R,S]),O=u.useRef(null),N=u.useCallback(V=>{O.current=n;const le=V.target[C];c(le,r,o),v?.(V)},[c,r,o,n]);u.useEffect(()=>{const V=O.current;O.current=null,n!==V&&(b.current[C]=n)},[n,C]);const F=u.useRef(null),E=u.useRef(null),B=u.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null,E.current=null)},[]),H=u.useCallback((V,le,re,ge=h)=>{E.current=V,F.current=setTimeout(()=>{const Q=re?z(E.current||V):A(E.current||V);Q!==E.current?H(Q,!1,re,g):B()},le?0:ge)},[z,A,B]);u.useEffect(()=>()=>B(),[B]);const U=n,Z=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(U)<=0||Math.floor(R-S)===0,onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!0)};return m?.(V)},[p,l,U,P,R,S]),G=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(R-S)<=Math.ceil(U),onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!1)};return y?.(V)},[p,l,U,P,R,S]);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:[Z,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:N,ref:b,children:s.jsx("div",{ref:j,style:{position:"absolute",height:T?o-r+(k??0):1,width:T?1:o-r+(M??0)},className:"scrollbar-viewport"})})}),G]})}));T3.displayName="Scrollbar";let v4=Date.now,Wa={},zR=1;const _0=e=>{let t=Wa[e]!==null;return t&&(Wa[e]=null),t},w4=(e,t,n,o=0,r)=>{let i=v4(),a=i,l=0,c=0,d=0,p=zR++;if(p%20==0){const h={};for(let g in Wa)h[g]=!0;Wa=h}const f=function(h){let g=h!==!0,m=v4(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!Wa[p]||!y)return Wa[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(Wa[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return Wa[p]=!0,requestAnimationFrame(f),p},FR=function(e){return Math.pow(e-1,3)+1},BR=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let NR=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(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(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){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(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(_0(this.__isDecelerating),this.__isDecelerating=0);const 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);const a=e/i;let 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(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(_0(this.__isDecelerating),this.__isDecelerating=0),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(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(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);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(_0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(_0(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let 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(e,t,n=1){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)return;let 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);let i=this.__positions;if(this.__isDragging){let a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=p;if(p=p/this.__lastScale*n,p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom),f!==p){let h=o-this.__clientLeft,g=r-this.__clientTop;c=(h+c)*p/f-h,d=(g+d)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;const f=this.__maxScrollTop;(d>f||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{let a=this.options.locking?3:0,l=5,c=Math.abs(o-this.__initialTouchLeft),d=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=a,this.__enableScrollY=this.options.scrollingY&&d>=a,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=l||d>=l),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(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){let t=this.__positions,n=t.length-1,o=n;for(let r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],a=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=a/r*(1e3/60);const l=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>l||Math.abs(this.__decelerationVelocityY)>l)&&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(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(_0(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,f=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),h=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=w4(f,h,g,this.options.animationDuration,r?FR:BR)}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(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),a=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),l=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/l)*l,this.__minDecelerationScrollTop=Math.floor(a/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/l)*l,this.__maxDecelerationScrollTop=Math.ceil(a/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,a,l){this.__stepThroughDeceleration(l)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,a,l){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=w4(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const 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){let o=0,r=0,i=this.options.penetrationDeceleration,a=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*a),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*a)}}};var ni=typeof window<"u"?window:{screen:{},navigator:{}},Ws=(ni.matchMedia||function(){return{matches:!1}}).bind(ni),nb=!1,$R={get passive(){return nb=!0}},S4=function(){};ni.addEventListener&&ni.addEventListener("p",S4,$R),ni.removeEventListener&&ni.removeEventListener("p",S4,!1);var VR=nb,HR="PointerEvent"in ni,_3="ontouchstart"in ni,ob=_3||"TouchEvent"in ni&&Ws("(any-pointer: coarse)").matches,C4=(ni.navigator.maxTouchPoints||0)>0||ob,rb=ni.navigator.userAgent||"",WR=Ws("(pointer: coarse)").matches&&/iPad|Macintosh/.test(rb)&&Math.min(ni.screen.width||0,ni.screen.height||0)>=768,ib=(Ws("(pointer: coarse)").matches||!Ws("(pointer: fine)").matches&&_3)&&!/Windows.*Firefox/.test(rb),UR=Ws("(any-pointer: fine)").matches||Ws("(any-hover: hover)").matches||WR||!_3,W5=!C4||!UR&&ib?C4?"touchOnly":"mouseOnly":"hybrid",qR=W5==="mouseOnly"?"mouse":W5==="touchOnly"||ib?"touch":"mouse";const KR=Object.freeze(Object.defineProperty({__proto__:null,deviceType:W5,primaryInput:qR,supportsPassiveEvents:VR,supportsPointerEvents:HR,supportsTouchEvents:ob},Symbol.toStringTag,{value:"Module"})),GR=new Set(["INPUT","TEXTAREA","SELECT"]),ab={};function U5(){return KR}const lb=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Gt.camelToPrettyCase(e),jn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:ab,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:U5,focusableNodeNames:GR,toPrettyKeyCode:lb},Symbol.toStringTag,{value:"Module"})),ZR=[];function ir(e,t,n=ZR){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 k4=e=>s.jsx(T3,{...e}),XR=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),j3=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=XR,createHorizontalScrollbar:c=k4,createVerticalScrollbar:d=k4,style:p,touchElement:f,disableTouch:h,...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.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((S,R)=>{m?.({left:S,top:R})},[]),b=u.useCallback(S=>{x.current?.doTouchStart(S.touches,S.timeStamp)},[]),w=u.useCallback(S=>{S.preventDefault(),x.current?.doTouchMove(S.touches,S.timeStamp)},[]),M=u.useCallback(S=>{x.current?.doTouchEnd(S.timeStamp)},[]),k=u.useCallback(({containerWidth:S,containerHeight:R,totalWidth:P,totalHeight:I})=>{x.current.setDimensions(S,R,P,I)},[]);u.useEffect(()=>{const S=f??y.current;if(!h&&U5().supportsTouchEvents&&S&&o){if(!x.current){const R={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new NR(v,R)}U5().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",M),S.addEventListener("touchmove",w)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",M),S?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[j,{width:_}]=zl(),[L,{height:T}]=zl(),D=u.useMemo(()=>{const S=d({orientation:yr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:R=>{m?.({top:R})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:j,children:S})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const S=c({orientation:yr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:R=>m?.({left:R})});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:L,className:"sizer",children:S})}),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?D:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));j3.displayName="ScrollPane";const pa={Error:"error",Warning:"warning",Info:"info"},E4=new Set,xu={showMessage:(e,t)=>{if(t?.onceKey){if(E4.has(t.onceKey))return;E4.add(t.onceKey)}let n=console.log;t?.type!==pa.Warning&&t?.type!==pa.Error||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},YR=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let ed=0;const JR=100,QR=100,eI=1e6,tI=100,nI=50,sb=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=JR,endScrollIncrement:l=QR,style:c=ab,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=eI,scaleFactor:g=tI,precisionFactor:m=nI,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=Te(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),M=h!==0&&b.totalSize>h?g:1,k=M/m,j=Math.ceil(b.totalSize/M),_=Math.ceil(b.offset/M),L=Math.ceil(o/M),T=u.useCallback(z=>{},[]),[D,C]=u.useState(!1),S=u.useRef(null);u.useLayoutEffect(()=>{if(!D){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,D,i,a,l]);const R=Te((z,A,O)=>{const N=S.current;S.current=null,N&&N.propTotalSize===r&&N.propViewportSize===o&&N.propOffset===n||(Math.abs(z-_)<k&&(z=_),p?.(z*M,_,L))},[p,M,k,_,L]),P=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",P),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",P,{passive:!0})},[T,P]);return s.jsx(T3,{ref:t,style:{...c},...y,offset:_,totalSize:j,viewportSize:L,onMouseDown:I,onScrollOffset:R})}));sb.displayName="VirtualScrollbar";const mp="bottom",q5="right",gp="top";function yp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var bu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=yp(o,t),i=typeof r=="function";n.push(i?r:()=>yp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)yp(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})}));const oI=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:f}]=zl(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,M=f-w+b;return function(k,j,_=!1){if(j===0)return k;function L(P,I,z){let A=I.x-P.x,O=I.y-P.y,N=Math.sqrt(A*A+O*O);return T(P,I,Math.min(1,z/N))}function T(P,I,z){return{x:P.x+(I.x-P.x)*z,y:P.y+(I.y-P.y)*z}}function D(P,I){P.length>2&&(P[P.length-2]=I.x,P[P.length-1]=I.y)}function C(P){return{x:parseFloat(P[P.length-2]),y:parseFloat(P[P.length-1])}}let S=k.split(/[,\s]/).reduce(function(P,I){let z=I.match("([a-zA-Z])(.+)");return z?(P.push(z[1]),P.push(z[2])):P.push(I),P},[]).reduce(function(P,I){return parseFloat(I)==I&&P.length?P[P.length-1].push(I):P.push([I]),P},[]),R=[];if(S.length>1){let P=C(S[0]),I=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(I=["L",P.x,P.y],S[S.length-1]=I),R.push(S[0]);for(let z=1;z<S.length;z++){let A=R[R.length-1],O=S[z],N=O===I?S[1]:S[z+1];if(N&&A&&A.length>2&&O[0]==="L"&&N.length>2&&N[0]==="L"){let F,E,B=C(A),H=C(O),U=C(N);_?(F=T(H,A.origPoint||B,j),E=T(H,N.origPoint||U,j)):(F=L(H,B,j),E=L(H,U,j)),D(O,F),O.origPoint=H,R.push(O);let Z=T(F,H,.5),G=T(H,E,.5),V=["C",Z.x,Z.y,G.x,G.y,E.x,E.y];V.origPoint=H,R.push(V)}else R.push(O)}if(I){let z=C(R[R.length-1]);R.push(["Z"]),D(R[0],z)}}else R=S;return R.reduce(function(P,I){return P+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${M} L ${2*i} ${M} L ${p-2*i} ${M} M ${p-2*i} ${M} L ${p-i} ${M} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,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([h,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:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})})),rI={},iI=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=rI,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ms("hit-box",h),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",...f},onPointerDown:a?void 0:t,...g})},l)},td={},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,nd=(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)},K5=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:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=td,paneProps:M=td,paneBeforeProps:k=td,paneAfterProps:j=td,createResizer:_=iI}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let de=null;i&&(i==="before"?de=0:i==="after"&&(de=1));const Oe=de===null;return{fixedPaneOffset:de,isPercent:Oe,minBefore:Oa(c,Oe),maxBefore:Oa(d,Oe),minAfter:Oa(p,Oe),maxAfter:Oa(f,Oe)}},[c,d,p,f]),D=Te(l,[l]),[C,S]=u.useState(()=>Oa(a,i===null));u.useEffect(()=>{S(Oa(a,i===null))},[a,i]);const[R,{width:P,height:I}]=zl(),[z,{width:A,height:O}]=zl(),N=r==="row"?A:O,F=r==="row"?P:I,E=u.useMemo(()=>((de,Oe,Le,je)=>{const K=[null,null],W=[null,null];if(de||(de={percent:je.fixedPaneOffset===null?50:null,pixels:je.fixedPaneOffset===null?null:0}),Oe===0)return de?.pixels!=null?je.fixedPaneOffset!==1?(K[0]=de?.pixels,W[1]=100):(K[1]=de?.pixels-Le,W[0]=100):de?.percent!=null&&(je.fixedPaneOffset!==1?(W[0]=de?.percent,W[1]=100-de?.percent):(W[1]=de?.percent,W[0]=100-de?.percent)),{percents:W,pixels:K,minBefore:nd(je.minBefore,!0),maxBefore:nd(je.maxBefore,!0),minAfter:nd(je.minAfter),maxAfter:nd(je.maxAfter)};let te=sl(de,Oe,je.fixedPaneOffset!==1),oe=Oe-Le,ue=sl(je.minBefore,oe,!0)??0,ie=sl(je.maxBefore,oe,!0)??oe,pe=0,fe=0,ye=0,De=oe;pe=(sl(je.maxAfter,Oe,!1)??Le)-Le,fe=sl(je.minAfter,Oe,!1)??Oe,ye=Math.max(ue,pe),De=Math.min(ie,fe),te=Math.max(ye,Math.min(te,De)),fe=Math.min(oe-te,sl(je.maxAfter,oe-te,!0)??oe),pe=Math.min(oe-te,sl(je.minAfter,oe-te,!0)??oe),K[0]=te,K[1]=oe-K[0];const Ve=Math.max(0,Math.min(100,te/oe*100));return W[0]=Ve,W[1]=100-W[0],{percents:W,pixels:K,minBefore:`${ue}px`,minAfter:`${pe}px`,maxBefore:`${K[0]}px`,maxAfter:`${K[1]}px`}})(C,F,N,T),[T,C,F,N,r]),[B,H]=u.useState(!1),U=Te(x,[x]),Z=Te(v,[v]),G=Te(b,[b]),V=u.useRef(null),le=u.useRef(null),re=u.useRef(null),{style:ge,className:Q,...xe}=M,be={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:Fe,style:ee,...ae}=k,{className:we,style:se,...J}=j,ce={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ne,style:Pe,onPointerDown:Ee,...it}=w,Ue=Te(de=>{const Oe=Oa(de,i===null);S(Oe)},[i]),ke=Te(de=>{if(y||!B)return;const Oe=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(de.clientX??de.touches?.[0]?.clientX)-Oe.x:(de.clientY??de.touches?.[0]?.clientY)-Oe.y,Le=Math.max(0,Math.min(F,Le)),T.fixedPaneOffset===1&&(Le=F-Le),a&&C.pixels===Le||S({pixels:Le,percent:null}),Z?.(Le),de.stopPropagation(),de.preventDefault()},[T,r,y,B,C,F]),_e=Te(de=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",_e),B&&(H(!1),C)){if(G(C.pixels),!Oa(a,i===null)||C.pixels!==a){const Oe={...C};Oe.percent===null&&(Oe.percent=Oe.pixels/F*100),D(Oe)}de.stopPropagation(),de.preventDefault()}},[C,B,a,i,F]),Xe=Te(de=>{Ee?.(de),de.defaultPrevented||y||B||(H(!0),U(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",_e,{passive:!1}))},[Ee]),Be=ir(t,()=>({setPosition:Ue,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:bu([z,le]),className:ms("resizer",ne),onPointerDownCapture:Xe,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,...Pe},splitDirection:r,disabled:y,...it}):null,[L,ne,it,r,Pe,y]),et=r==="row"?"Width":"Height",he={...be,...ee,flex:T.fixedPaneOffset===0&&E?.pixels[0]!==null?`0 0 ${Math.round(E?.pixels[0])}px`:`1 1 ${Math.round(E?.percents[0]??100)}%`,[`min${et}`]:E?.minBefore,[`max${et}`]:o?E?.maxBefore:"100%"},Ye={...be,...se,flex:T.fixedPaneOffset===1&&E?.pixels[1]!==null?`0 0 ${Math.round(E?.pixels[1])}px`:`1 1 ${Math.round(E?.percents[1]??100)}%`,[`min${et}`]:E?.minAfter,[`max${et}`]:n?E?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:V,className:ms("before",Q,Fe),style:he,...xe,...ae,children:n},"before"):null,[n,M,k,T,E]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:re,className:ms("after",Q,we),style:Ye,...xe,...J,children:o},"after"):null,[o,M,j,T,E]);return s.jsxs("div",{ref:bu([R,Be]),className:ms("splitPane",r==="row"?"vertical":"horizontal",{dragging:B},g),style:ce,children:[Se,ct,Ie]})}));function M4(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]),f=u.useRef(!1),h=n?.timerInitial??230,g=n?.timerContinuous??h/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(S=>{v.current=setTimeout(()=>{window.requestAnimationFrame(()=>{f.current!==!1&&p?.(y.current,x.current,m.current)}),w(g)},S??h)},[]);u.useEffect(()=>()=>b(),[]);const M=a?"pointer":"mouse",k=u.useCallback(S=>{S.stopPropagation(),S.stopImmediatePropagation(),S.preventDefault()},[]),j=Te(S=>{document.removeEventListener(`${M}move`,T),document.removeEventListener(`${M}up`,j),document.removeEventListener("keydown",D),document.removeEventListener("keyup",C),document.removeEventListener("touchstart",k,{capture:!0}),document.removeEventListener("touchmove",k,{capture:!0}),window.removeEventListener("blur",_),b(),window.requestAnimationFrame(()=>{f.current!==!1&&(f.current=!1,d?.(S,x.current,m.current),x.current=null)})},[]),_=u.useCallback(()=>{f.current!==!1&&(f.current=!1,j(y.current))},[]),L=Te(()=>{b(),w(g),window.requestAnimationFrame(()=>{f.current!==!1&&p?.(y.current,x.current,m.current)})},[g]),T=Te(S=>{y.current=S,L()},[]),D=Te(S=>{x.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},L()},[]),C=Te(S=>{x.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},L()},[g]);return Te(S=>{S.isDefaultPrevented()||(x.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},c(S,x.current)!==!1&&(m.current=S,y.current=S.nativeEvent,document.addEventListener(`${M}up`,j,{passive:!1}),document.addEventListener(`${M}move`,T,{passive:!1}),document.addEventListener("keydown",D,{passive:!1}),document.addEventListener("keyup",C,{passive:!1}),window.addEventListener("blur",_,{passive:!0}),a&&l&&(document.addEventListener("touchstart",k,{passive:!1,capture:!0}),document.addEventListener("touchmove",k,{passive:!1,capture:!0})),f.current=!0,w(h)))},[h,a])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const aI=({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},G5=e=>{console&&console.warn&&console.warn(e)},xp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let lI=1,Z5=!1,cb=!1;const $d=[],gs=[],vu=()=>{gs.forEach(e=>e())},sI=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||Z5!==!1||(cb=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return gs[0]!==i?(e||Z5!==!0||G5("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([...$d])}return gs.push(i),vu(),()=>{r=!1,o.current?.length>0&&G5("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),gs.splice(gs.indexOf(i),1),vu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(aI,{...r,key:i}))})},db=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=lI++;return $d.push({hook:g,key:m}),gs.length===0&&cb===!1&&(Z5=!0,(y=>{if(xp.document&&xp.document.createElement){const x=xp.document.createElement("div");t2.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else G5("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(sI)),vu(),()=>{$d.splice($d.findIndex(y=>y.key===m),1),vu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};let ub=()=>{console.warn("You must call useEditMode before setting its state.")};const cI=db(null,()=>{const[e,t]=u.useState(null);return ub=t,e}),Wi=()=>{const e=cI();return u.useMemo(()=>({setMode:t=>{ub(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let We=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 We{},a0=class pb{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Gt.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 pb(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 f=c.addPropertyListener(i);a.set(c,f);const h=c.shortcut();if(!h)continue;const g=Array.isArray(h)?h:[h];for(let m=0;m<g.length;m++){const y=j0(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=j0({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=j0({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=j0({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=j0({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 dI=Gt.getOS()===Gt.OSType.MacOS||Gt.getOS()===Gt.OSType.IOS?"Cmd":"Ctrl",uI=Gt.getOS()===Gt.OSType.MacOS||Gt.getOS()===Gt.OSType.IOS?"⌘":"^",j0=(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?uI:dI)),n?.[$e.Alt]&&(o+=t?"⌥":"Alt"),n?.[$e.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+lb(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,f){n.current?.onError?.(d,p,f)}});const c=new Set;for(let d=0;d<i.length;d++)c.add(i[d]?.addPropertyListener(Gt.debounce(a,0),!0)),t&&c.add(i[d]?.addExecuteListener(l));return()=>{c.forEach(d=>{d?.()})}},[e]),o}const od=(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(od(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const h=od(e,t);a(h),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),a(od(e,t))});const p=e?.addListener(c,d),f=od(e,t);return a(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Zt={Toolbar:"toolbar",Menuitem:"menuitem"},hb=db({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Hs.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(Hs.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}}),fb=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=xu,commands:a}=e,l=Te(r,[r]),c=Te(o,[o]),{getClipboard:d,refNativeCopy:p}=hb(),f=d();u.useMemo(()=>{const b=t?.element,w=n?.element??t?.element;if(!a)return;const M=[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(M,!0)},[a]);const h=Te(async b=>{if(!t?.element)return;let w=null;try{w=t.doCopy?.(b),typeof w=="string"?await f.writeText(w):await f.writeReference(w)}catch(M){throw M}},[t,i]),g=Te(async b=>{const w=t?.element?.();if(w){p.current={sourceElement:w,args:b};try{await h(b)}catch(M){i?.showError?.(M)}}},[t?.element,i]),m=u.useCallback(()=>{g({isCut:!0})},[]),y=Te(async(b,w,M)=>{try{if(await b.doPaste(w,M)===!1)return;c?.(w,M)}catch(k){i?.showError?.(k)}},[c]),x=Te(async(b,w,M)=>{const k=n?.element?.();if(k&&await Gt.whenFocus(k),!b&&!w)return;const j=await i?.showBusy?.("Pasting...");if(w)try{return await y(n,w,M),void j?.()}catch(T){j?.(),i?.showError?.(T)}let _,L=n.importFromExternal;L||(L=(T,D)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{_=await L(b,{isCut:!1})}catch(T){j?.(),i?.showError?.(T)}if(_)try{const T=await Promise.resolve(_);await y(n,T,M),j?.()}catch(T){j?.(),i?.showError?.(T)}else j?.()},[y,n,i]),v=Te(async b=>{if(n?.element)try{const w=await f.readReference();if(w)return void await x(null,w,b);const M=[];M[0]=await IR(f,ba),M[1]=await PR(f,kr),M[2]=await RR(f,Bd);const k={text:M[0]??null,html:M[1]??null,image:M[2]??null};await x(k,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(!f)return;const b=async k=>{const j=await f.readReference();l?.(j)},w=k=>{i?.showMessage?.(Hs.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},M=k=>{i?.showMessage?.(Hs.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return f.addEventListener("clipboardchange",b),f.addEventListener("clipboarderrorread",w),f.addEventListener("clipboarderrorwrite",M),()=>{f.removeEventListener("clipboardchange",b),f.removeEventListener("clipboarderrorread",w),f.removeEventListener("clipboarderrorwrite",M)}},[f,i]),u.useEffect(()=>{},[h,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:f}};u.useId;const T4="Undo the last action.",_4="Repeat the last action or undo the redo.",pI=e=>`Redo ${e}`;function mb(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=mb(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=mb(e))&&(o&&(o+=" "),o+=t);return o}const Pr="text/html",Da="text/plain",bp="image/png",hI=Object.freeze({left:0,top:0}),fI=Object.freeze({left:0,top:0,bottom:0,right:0}),mI=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:mI,EmptyRect:fI,EmptyTopLeft:hI},Symbol.toStringTag,{value:"Module"}));const jl="column",Hc="row",gI=Object.freeze({colIndex:0,rowIndex:0}),yI=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),gb=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,yb=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,xI=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,bI=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,j4=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,R4=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,xb=(e=Hc,t=!1)=>t?e!==jl?xI:bI:e!==jl?yb:gb,I4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,X5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Y5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),P4=(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(!X5(e[n],t[n]))return!1;return!0},vp=(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},O4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];Y5(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},vI=[null,null],wI=(e,t,n)=>{if(e[0].value===e[1].value)return t};function D4(e,t=2,n,o=Hc,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===jl,l=0,c=!1;do{const d=i.sort(xb(a?Hc:jl));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let M={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(M.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,M=n(k,M,o)}if(M){i[f]=M,c=!0,h=M,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:gI,EmptyRange:yI,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:j4,columnFirstRangeComparator:gb,createCellComparator:(e=Hc,t=!1)=>t?e!==jl?(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!==jl?R4:j4,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 f=d!==void 0;if(f){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 h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?D4(n,3,l===!0?wI:l,t?jl:Hc,vI):n)}},createRangeComparator:xb,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:O4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!X5(n,o);)o=n,n=O4(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(Y5(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:I4,isEqualRanges:X5,isEqualRangesArrays:P4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!I4(e.cell,t.cell)&&P4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Y5,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:D4,rowFirstCellComparator:R4,rowFirstRangeComparator:yb,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:vp,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=vp(o,e[r],n);return t&&(o=vp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const SI=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function CI(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===SI}(e)}function ec(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Fl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function kI(e,t,n){return e.concat(t).map(function(o){return ec(o,n)})}function A4(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 L4(e,t){try{return t in e}catch{return!1}}function Fl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||kI,n.isMergeableObject=n.isMergeableObject||CI,n.cloneUnlessOtherwiseSpecified=ec;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)&&A4(r).forEach(function(c){l[c]=ec(r[c],a)}),A4(i).forEach(function(c){var d,p;L4(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(L4(r,c)&&a.isMergeableObject(i[c])?l[c]=function(f,h){if(!h.customMerge)return Fl;const g=h.customMerge(f);return typeof g=="function"?g:Fl}(c,a)(r[c],i[c],a):l[c]=ec(i[c],a))}),l}(e,t,n):ec(t,n)}Fl.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Fl(n,o,t)},{})};const EI=Object.freeze([]),MI=Object.freeze({}),z4=e=>e,Vd=()=>"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)}),bb=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),R0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,vb=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?vb(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),TI=(e,t)=>!(e!==t&&!bb(e,t)&&!e.isEqual?.(t)),wb=(e,t,n=TI)=>{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];wb(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},F4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),B4=e=>e==null,N4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),$4=!(typeof window>"u"||!window.document||!window.document.createElement),Or={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Wc=()=>{if(Sb())return Or.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Or.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Or.MacOS:/(iphone|ipad|ipod)/i.test(e)?Or.IOS:/android/.test(e)?Or.Android:/linux/.test(e)?Or.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Or.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Or.Firefox:Or.Unknown:Or.Unknown};function Sb(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const V4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),To=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:EI,EmptyObject:MI,OSType:Or,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:$4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>B4(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:Fl,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=z4){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=z4){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||!R0(a))return a;o=a}return o??null},getOS:Wc,hasFocus:V4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:bb,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:Sb,isNullOrUndefined:B4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:R0,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:N4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!R0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Fl(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(!$4)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:vb,removeEqualValues:wb,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=F4(),o={id:requestAnimationFrame(function r(){F4()-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),!R0(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"&&!R0(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(!N4(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:Vd,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=>{V4(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 Cb=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")},J5=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:Cb,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:J5},Symbol.toStringTag,{value:"Module"}));const kb="data:image/png;base64,",Eb="Unable to resolve image.",H4=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(Eb)}),wp="image/svg+xml";var W4,U4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:kb,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(Eb)}),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 H4(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:wp})),l=await H4(a);n={mimeType:t??wp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===wp?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"})),(U4=W4||(W4={})).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 f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,U4.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};const q4=`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.`,Sp=`You do not have permissions to access the clipboard.
|
|
126
|
-
All copy and paste operations will be limited to the browser tab.`,Mb={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:Sp,PermsWrite:Wc()===Or.Safari?q4:Sp,PermsRead:Wc()===Or.Safari?q4:Sp},Cp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),kp=async(e,t,n)=>{if(Wc()===Or.Safari)return await n(new Error(Mb.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)}},Tb=async e=>{try{return await e.read({unsanitized:[Pr]})}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 Q5=async(e,t=Pr)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await Tb(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)}}),K4=async(e,t=Pr)=>{const n=await Q5(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Pr)}catch{console.warn("Can't parse html from clipboard.")}return o},Uc="clipboard-uuid",rs="web text/uuid",G4=e=>`<div style="display:none" ${Uc}="${e}"/>`,_I=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Pr);o.body.firstElementChild.setAttribute(Uc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},Z4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Uc}="${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 wu=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 kp("clipboard-read",async()=>{await Cp();const e=await Q5(this._nativeClipboard,rs);if(!this._state||e&&e===this._state.uuid)return!0;const t=await K4(this._nativeClipboard,Pr);return!this._state||(Z4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Wc()===Or.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 kp("clipboard-read",async()=>{if(await Cp(),this._state?.uuid){const t=await Q5(this._nativeClipboard,rs);if(t&&t===e._state.uuid)return!0;const n=await K4(this._nativeClipboard,Pr);if(Z4(e._state?.uuid,n))return!0}return e._state={items:await Tb(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:Vd(),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 kp("clipboard-write",async()=>{await Cp(),o&&r.length===0&&(r.push(new ClipboardItem({[rs]:new Blob([o],{type:rs})})),r.push(new ClipboardItem({[Pr]:new Blob([G4(o)],{type:Pr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Pr),d=null;if(c!==-1){const h=await l.getType(Pr);d=await J5(h),d&&(d=_I(o,d))}if(!d&&l.types.includes(Da)){const h=await l.getType(Da);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await J5(h),g&&(d=`<div ${Uc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(bp)){const h=await l.getType(bp),g=Cb(await h.arrayBuffer());d=`<div ${Uc}="${o}"><img src="${kb+g}"/></div>`}!d&&o&&(d=G4(o));const p=new Blob([d??""],{type:Pr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[Pr]=p),o&&(f[rs]=new Blob([o],{type:rs})),n.push(new ClipboardItem(f))}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[Pr]=new Blob([r],{type:Pr}))}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:Vd(),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:Vd(),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 Ep;(Ep=wu||(wu={})).ErrorMessages=Mb,Ep.Global=new Ep;const Us=e=>s.jsx(Qe,{...e,children:s.jsx("path",{})}),R3=e=>s.jsx(Qe,{...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"})}),X4=e=>s.jsxs(Qe,{...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"})]}),jI=e=>s.jsxs(Qe,{...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"})]}),RI=e=>s.jsxs(Qe,{...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"})]}),II=e=>s.jsxs(Qe,{...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"})]}),PI=e=>s.jsx(Qe,{...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"})}),OI=e=>s.jsx(Qe,{...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"})}),DI=e=>s.jsxs(Qe,{...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"})]}),Y4=e=>s.jsx(Qe,{...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"})}),_b=e=>s.jsxs(Qe,{...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 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 I3="$$material";function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rb(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 J4,Q4,e7={exports:{}},oo={},Ib=(Q4||(Q4=1,e7.exports=function(){if(J4)return oo;J4=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"),f=Symbol.for("react.lazy"),h=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 h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return oo.ContextConsumer=i,oo.ContextProvider=a,oo.Element=e,oo.ForwardRef=l,oo.Fragment=n,oo.Lazy=f,oo.Memo=p,oo.Portal=t,oo.Profiler=r,oo.StrictMode=o,oo.Suspense=c,oo.SuspenseList=d,oo.isContextConsumer=function(y){return m(y)===i},oo.isContextProvider=function(y){return m(y)===a},oo.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},oo.isForwardRef=function(y){return m(y)===l},oo.isFragment=function(y){return m(y)===n},oo.isLazy=function(y){return m(y)===f},oo.isMemo=function(y){return m(y)===p},oo.isPortal=function(y){return m(y)===t},oo.isProfiler=function(y){return m(y)===r},oo.isStrictMode=function(y){return m(y)===o},oo.isSuspense=function(y){return m(y)===c},oo.isSuspenseList=function(y){return m(y)===d},oo.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===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},oo.typeOf=m,oo}()),e7.exports);function Sa(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 Pb(e){if(X.isValidElement(e)||Ib.isValidElementType(e)||!Sa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Pb(e[n])}),t}function oi(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach(r=>{X.isValidElement(t[r])||Ib.isValidElementType(t[r])?o[r]=t[r]:Sa(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Sa(e[r])?o[r]=oi(e[r],t[r],n):n.clone?o[r]=Sa(t[r])?Pb(t[r]):t[r]:o[r]=t[r]}),o}function P3(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(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 tc=(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 C2(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 Ob(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])),C2({type:l,values:c})}function eh(e){let t=(e=tl(e)).type==="hsl"||e.type==="hsla"?tl(Ob(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 rd(e,t,n){try{return function(o,r){return o=tl(o),r=P3(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,C2(o)}(e,t)}catch{return e}}function O3(e,t){if(e=tl(e),t=P3(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 C2(e)}function co(e,t,n){try{return O3(e,t)}catch{return e}}function D3(e,t){if(e=tl(e),t=P3(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 C2(e)}function uo(e,t,n){try{return D3(e,t)}catch{return e}}function id(e,t,n){try{return function(o,r=.15){return eh(o)>.5?O3(o,r):D3(o,r)}(e,t)}catch{return e}}const qc={black:"#000",white:"#fff"},AI={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"},t7="#d32f2f",n7="#42a5f5",o7="#0288d1";function Db(){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:qc.white,default:qc.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 LI=Db();function Ab(){return{text:{primary:qc.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:qc.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 r7=Ab();function i7(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=D3(e.main,r):t==="dark"&&(e.dark=O3(e.main,i)))}function A3(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:n7}:{main:"#1976d2",light:n7,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:t7}:{main:t7,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:o7}:{main:o7,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 f(m){return function(y,x){const v=eh(y),b=eh(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,r7.text.primary)>=n?r7.text.primary:LI.text.primary}const h=({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 i7(m,"light",v,o),i7(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=Db():t==="dark"&&(g=Ab()),oi({common:{...qc},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:AI,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var a7,l7,s7,c7,d7,u7={exports:{}};function th(){return d7||(d7=1,u7.exports=function(){if(c7)return s7;c7=1;var e=l7?a7:(l7=1,a7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,s7=function(){function o(a,l,c,d,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}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}}()()),u7.exports}function bc(e,t){return t?oi(e,t,{clone:!1}):e}function p7(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const k2={xs:0,sm:600,md:900,lg:1200,xl:1536},h7={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${k2[e]}px)`},zI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:k2[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||h7;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||h7;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,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:zI,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||k2).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 f7(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Lb(e){if(typeof e!="string")throw new Error(Bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function E2(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 Su(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:E2(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=E2(a.theme,o)||{};return ja(a,l,d=>{let p=Su(c,r,d);return d===p&&typeof d=="string"&&(p=Su(c,r,`${t}${d==="default"?"":Lb(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const FI={m:"margin",p:"padding"},BI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},m7={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NI=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!m7[n])return[n];n=m7[n]}const[o,r]=n.split(""),i=FI[o],a=BI[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),zb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function w1(e,t,n,o){const r=E2(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 L3(e){return w1(e,"spacing",8)}function S1(e,t){return typeof t=="string"||t==null?t:e(t)}function Bb(e,t){const n=L3(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 f=>d.reduce((h,g)=>(h[g]=S1(p,f),h),{})}(NI(a),l);return ja(r,r[a],c)}(e,t,o,n)).reduce(bc,{})}function Po(e){return Bb(e,zb)}function Oo(e){return Bb(e,Fb)}function Nb(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]=Nb(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=zb,Oo.propTypes={},Oo.filterProps=Fb;const $I={borderRadius:4};function Cu(...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 Uo({prop:e,themeKey:"borders",transform:t})}const VI=Pi("border",vi),HI=Pi("borderTop",vi),WI=Pi("borderRight",vi),UI=Pi("borderBottom",vi),qI=Pi("borderLeft",vi),KI=Pi("borderColor"),GI=Pi("borderTopColor"),ZI=Pi("borderRightColor"),XI=Pi("borderBottomColor"),YI=Pi("borderLeftColor"),JI=Pi("outline",vi),QI=Pi("outlineColor"),Hd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=w1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:S1(t,o)});return ja(e,e.borderRadius,n)}return null};Hd.propTypes={},Hd.filterProps=["borderRadius"],Cu(VI,HI,WI,UI,qI,KI,GI,ZI,XI,YI,Hd,JI,QI);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=w1(e.theme,"spacing",8),n=o=>({gap:S1(t,o)});return ja(e,e.gap,n)}return null};ku.propTypes={},ku.filterProps=["gap"];const Eu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=w1(e.theme,"spacing",8),n=o=>({columnGap:S1(t,o)});return ja(e,e.columnGap,n)}return null};Eu.propTypes={},Eu.filterProps=["columnGap"];const Wd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=w1(e.theme,"spacing",8),n=o=>({rowGap:S1(t,o)});return ja(e,e.rowGap,n)}return null};function Ts(e,t){return t==="grey"?t:e}function ei(e){return e<=1&&e!==0?100*e+"%":e}Wd.propTypes={},Wd.filterProps=["rowGap"],Cu(ku,Eu,Wd,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"})),Cu(Uo({prop:"color",themeKey:"palette",transform:Ts}),Uo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ts}),Uo({prop:"backgroundColor",themeKey:"palette",transform:Ts}));const eP=Uo({prop:"width",transform:ei}),z3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||k2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ei(n)}};return ja(e,e.maxWidth,t)}return null};z3.filterProps=["maxWidth"];const tP=Uo({prop:"minWidth",transform:ei}),nP=Uo({prop:"height",transform:ei}),oP=Uo({prop:"maxHeight",transform:ei}),rP=Uo({prop:"minHeight",transform:ei});Uo({prop:"size",cssProperty:"width",transform:ei}),Uo({prop:"size",cssProperty:"height",transform:ei}),Cu(eP,z3,tP,nP,oP,rP,Uo({prop:"boxSizing"}));const M2={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:Hd},color:{themeKey:"palette",transform:Ts},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ts},backgroundColor:{themeKey:"palette",transform:Ts},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:ku},rowGap:{style:Wd},columnGap:{style:Eu},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:z3},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"}},qs=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 f=E2(o,c)||{};return p?p(i):ja(i,n,h=>{let g=Su(f,d,h);return h===g&&typeof h=="string"&&(g=Su(f,d,`${t}${h==="default"?"":Lb(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??M2;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=typeof(y=d[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(a[g])h=bc(h,e(g,m,r,a));else{const x=ja({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((M,k)=>M.concat(Object.keys(k)),[]),w=new Set(b);return v.every(M=>w.size===Object.keys(M).length)})(x,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=bc(h,x)}else h=bc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":p7(r,f7(f,h))}:p7(r,f7(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function iP(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 F3(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:f=5,...h}=c,g=(b=>{const w=Object.keys(b).map(M=>({key:M,val:b[M]}))||[];return w.sort((M,k)=>M.val-k.val),w.reduce((M,k)=>({...M,[k.key]:k.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)-f/100}${p})`}function v(b,w){const M=m.indexOf(w);return`@media (min-width:${typeof d[b]=="number"?d[b]:b}${p}) and (max-width:${(M!==-1&&typeof d[m[M]]=="number"?d[m[M]]:w)-f/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,...h}}(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(c=8,d=L3({spacing:c})){if(c.mui)return c;const p=(...f)=>(f.length===0?[1]:f).map(h=>{const g=d(h);return typeof g=="number"?`${g}px`:g}).join(" ");return p.mui=!0,p}(r),shape:{...$I,...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 f={},h=g=>(p(f,g),f);return p(h),{...c,containerQueries:h}}(l),l.applyStyles=iP,l=t.reduce((c,d)=>oi(c,d),l),l.unstable_sxConfig={...M2,...a?.unstable_sxConfig},l.unstable_sx=function(c){return qs({sx:c,theme:this})},l}qs.filterProps=["sx"];const aP=F3(),g7=(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 Mp(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(h=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>h.includes(x))||h[h.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),g7(i,d,`var(${m})`,f),g7(a,d,`var(${m}, ${y})`,f)}var h,g},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:a}}function lP(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 y7={textTransform:"uppercase"},x7='"Roboto", "Helvetica", "Arial", sans-serif';function sP(e,t){const{fontFamily:n=x7,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,M)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===x7?{letterSpacing:(k=w/v,Math.round(1e5*k)/1e5+"em")}:{},...M,...d};var k},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,y7),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,y7),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},f,{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 cP=["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)],dP={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)"},uP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b7(e){return`${Math.round(e)}ms`}function pP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function hP(e){const t={...dP,...e.easing},n={...uP,...e.duration};return{getAutoHeightDuration:pP,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:b7(i)} ${a} ${typeof l=="string"?l:b7(l)}`).join(",")},...e,easing:t,duration:n}}const fP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function mP(e){return Sa(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $b(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];!mP(l)||a.startsWith("unstable_")?delete o[a]:Sa(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 nh(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=A3(i),f=F3(e);let h=oi(f,{mixins:(g=f.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:cP.slice(),typography:sP(p,l),transitions:hP(a),zIndex:{...fP}});var g,m;return h=oi(h,d),h=t.reduce((y,x)=>oi(y,x),h),h.unstable_sxConfig={...M2,...d?.unstable_sxConfig},h.unstable_sx=function(y){return qs({sx:y,theme:this})},h.toRuntimeSource=$b,h}function Vb(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const gP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Vb(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function v7(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function w7(e){return e==="dark"?gP:[]}function yP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const xP=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 nc(e){return typeof e=="string"&&e.startsWith("hsl")?Ob(e):e}function ya(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tc(nc(e[t])))}const Yi=e=>{try{return e()}catch{}};function Tp(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,...f}=l,h=A3(c);return{palette:h,opacity:{...v7(h.mode),...d},overlays:p||w7(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=nh({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...v7(r),...t?.opacity},overlays:t?.overlays||w7(r)},a}function S7(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:A3({...n===!0?{}:n.palette,mode:t})})}function oh(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 nh(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=nh({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},S7(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},S7(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...f){const{colorSchemes:h={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=yP,colorSchemeSelector:v=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...w}=p,M=Object.keys(h)[0],k=g||(h.light&&M!=="light"?"light":M),j=((F="mui")=>d3(F))(y),{[k]:_,light:L,dark:T,...D}=h,C={...D};let S=_;if((k==="dark"&&!("dark"in h)||k==="light"&&!("light"in h))&&(S=!0),!S)throw new Error(Bl(21,k));const R=Tp(C,S,w,k);L&&!C.light&&Tp(C,L,void 0,"light"),T&&!C.dark&&Tp(C,T,void 0,"dark");let P={defaultColorScheme:k,...R,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:j,colorSchemes:C,font:{...lP(R.typography),...R.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(P.colorSchemes).forEach(F=>{const E=P.colorSchemes[F].palette,B=U=>{const Z=U.split("-"),G=Z[1],V=Z[2];return j(U,E[G][V])};var H;if(E.mode==="light"&&(lt(E.common,"background","#fff"),lt(E.common,"onBackground","#000")),E.mode==="dark"&&(lt(E.common,"background","#000"),lt(E.common,"onBackground","#fff")),H=E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{H[U]||(H[U]={})}),E.mode==="light"){lt(E.Alert,"errorColor",co(E.error.light,.6)),lt(E.Alert,"infoColor",co(E.info.light,.6)),lt(E.Alert,"successColor",co(E.success.light,.6)),lt(E.Alert,"warningColor",co(E.warning.light,.6)),lt(E.Alert,"errorFilledBg",B("palette-error-main")),lt(E.Alert,"infoFilledBg",B("palette-info-main")),lt(E.Alert,"successFilledBg",B("palette-success-main")),lt(E.Alert,"warningFilledBg",B("palette-warning-main")),lt(E.Alert,"errorFilledColor",Yi(()=>E.getContrastText(E.error.main))),lt(E.Alert,"infoFilledColor",Yi(()=>E.getContrastText(E.info.main))),lt(E.Alert,"successFilledColor",Yi(()=>E.getContrastText(E.success.main))),lt(E.Alert,"warningFilledColor",Yi(()=>E.getContrastText(E.warning.main))),lt(E.Alert,"errorStandardBg",uo(E.error.light,.9)),lt(E.Alert,"infoStandardBg",uo(E.info.light,.9)),lt(E.Alert,"successStandardBg",uo(E.success.light,.9)),lt(E.Alert,"warningStandardBg",uo(E.warning.light,.9)),lt(E.Alert,"errorIconColor",B("palette-error-main")),lt(E.Alert,"infoIconColor",B("palette-info-main")),lt(E.Alert,"successIconColor",B("palette-success-main")),lt(E.Alert,"warningIconColor",B("palette-warning-main")),lt(E.AppBar,"defaultBg",B("palette-grey-100")),lt(E.Avatar,"defaultBg",B("palette-grey-400")),lt(E.Button,"inheritContainedBg",B("palette-grey-300")),lt(E.Button,"inheritContainedHoverBg",B("palette-grey-A100")),lt(E.Chip,"defaultBorder",B("palette-grey-400")),lt(E.Chip,"defaultAvatarColor",B("palette-grey-700")),lt(E.Chip,"defaultIconColor",B("palette-grey-700")),lt(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),lt(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),lt(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),lt(E.LinearProgress,"primaryBg",uo(E.primary.main,.62)),lt(E.LinearProgress,"secondaryBg",uo(E.secondary.main,.62)),lt(E.LinearProgress,"errorBg",uo(E.error.main,.62)),lt(E.LinearProgress,"infoBg",uo(E.info.main,.62)),lt(E.LinearProgress,"successBg",uo(E.success.main,.62)),lt(E.LinearProgress,"warningBg",uo(E.warning.main,.62)),lt(E.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),lt(E.Slider,"primaryTrack",uo(E.primary.main,.62)),lt(E.Slider,"secondaryTrack",uo(E.secondary.main,.62)),lt(E.Slider,"errorTrack",uo(E.error.main,.62)),lt(E.Slider,"infoTrack",uo(E.info.main,.62)),lt(E.Slider,"successTrack",uo(E.success.main,.62)),lt(E.Slider,"warningTrack",uo(E.warning.main,.62));const U=id(E.background.default,.8);lt(E.SnackbarContent,"bg",U),lt(E.SnackbarContent,"color",Yi(()=>E.getContrastText(U))),lt(E.SpeedDialAction,"fabHoverBg",id(E.background.paper,.15)),lt(E.StepConnector,"border",B("palette-grey-400")),lt(E.StepContent,"border",B("palette-grey-400")),lt(E.Switch,"defaultColor",B("palette-common-white")),lt(E.Switch,"defaultDisabledColor",B("palette-grey-100")),lt(E.Switch,"primaryDisabledColor",uo(E.primary.main,.62)),lt(E.Switch,"secondaryDisabledColor",uo(E.secondary.main,.62)),lt(E.Switch,"errorDisabledColor",uo(E.error.main,.62)),lt(E.Switch,"infoDisabledColor",uo(E.info.main,.62)),lt(E.Switch,"successDisabledColor",uo(E.success.main,.62)),lt(E.Switch,"warningDisabledColor",uo(E.warning.main,.62)),lt(E.TableCell,"border",uo(rd(E.divider,1),.88)),lt(E.Tooltip,"bg",rd(E.grey[700],.92))}if(E.mode==="dark"){lt(E.Alert,"errorColor",uo(E.error.light,.6)),lt(E.Alert,"infoColor",uo(E.info.light,.6)),lt(E.Alert,"successColor",uo(E.success.light,.6)),lt(E.Alert,"warningColor",uo(E.warning.light,.6)),lt(E.Alert,"errorFilledBg",B("palette-error-dark")),lt(E.Alert,"infoFilledBg",B("palette-info-dark")),lt(E.Alert,"successFilledBg",B("palette-success-dark")),lt(E.Alert,"warningFilledBg",B("palette-warning-dark")),lt(E.Alert,"errorFilledColor",Yi(()=>E.getContrastText(E.error.dark))),lt(E.Alert,"infoFilledColor",Yi(()=>E.getContrastText(E.info.dark))),lt(E.Alert,"successFilledColor",Yi(()=>E.getContrastText(E.success.dark))),lt(E.Alert,"warningFilledColor",Yi(()=>E.getContrastText(E.warning.dark))),lt(E.Alert,"errorStandardBg",co(E.error.light,.9)),lt(E.Alert,"infoStandardBg",co(E.info.light,.9)),lt(E.Alert,"successStandardBg",co(E.success.light,.9)),lt(E.Alert,"warningStandardBg",co(E.warning.light,.9)),lt(E.Alert,"errorIconColor",B("palette-error-main")),lt(E.Alert,"infoIconColor",B("palette-info-main")),lt(E.Alert,"successIconColor",B("palette-success-main")),lt(E.Alert,"warningIconColor",B("palette-warning-main")),lt(E.AppBar,"defaultBg",B("palette-grey-900")),lt(E.AppBar,"darkBg",B("palette-background-paper")),lt(E.AppBar,"darkColor",B("palette-text-primary")),lt(E.Avatar,"defaultBg",B("palette-grey-600")),lt(E.Button,"inheritContainedBg",B("palette-grey-800")),lt(E.Button,"inheritContainedHoverBg",B("palette-grey-700")),lt(E.Chip,"defaultBorder",B("palette-grey-700")),lt(E.Chip,"defaultAvatarColor",B("palette-grey-300")),lt(E.Chip,"defaultIconColor",B("palette-grey-300")),lt(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),lt(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),lt(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),lt(E.LinearProgress,"primaryBg",co(E.primary.main,.5)),lt(E.LinearProgress,"secondaryBg",co(E.secondary.main,.5)),lt(E.LinearProgress,"errorBg",co(E.error.main,.5)),lt(E.LinearProgress,"infoBg",co(E.info.main,.5)),lt(E.LinearProgress,"successBg",co(E.success.main,.5)),lt(E.LinearProgress,"warningBg",co(E.warning.main,.5)),lt(E.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),lt(E.Slider,"primaryTrack",co(E.primary.main,.5)),lt(E.Slider,"secondaryTrack",co(E.secondary.main,.5)),lt(E.Slider,"errorTrack",co(E.error.main,.5)),lt(E.Slider,"infoTrack",co(E.info.main,.5)),lt(E.Slider,"successTrack",co(E.success.main,.5)),lt(E.Slider,"warningTrack",co(E.warning.main,.5));const U=id(E.background.default,.98);lt(E.SnackbarContent,"bg",U),lt(E.SnackbarContent,"color",Yi(()=>E.getContrastText(U))),lt(E.SpeedDialAction,"fabHoverBg",id(E.background.paper,.15)),lt(E.StepConnector,"border",B("palette-grey-600")),lt(E.StepContent,"border",B("palette-grey-600")),lt(E.Switch,"defaultColor",B("palette-grey-300")),lt(E.Switch,"defaultDisabledColor",B("palette-grey-600")),lt(E.Switch,"primaryDisabledColor",co(E.primary.main,.55)),lt(E.Switch,"secondaryDisabledColor",co(E.secondary.main,.55)),lt(E.Switch,"errorDisabledColor",co(E.error.main,.55)),lt(E.Switch,"infoDisabledColor",co(E.info.main,.55)),lt(E.Switch,"successDisabledColor",co(E.success.main,.55)),lt(E.Switch,"warningDisabledColor",co(E.warning.main,.55)),lt(E.TableCell,"border",co(rd(E.divider,1),.68)),lt(E.Tooltip,"bg",rd(E.grey[700],.92))}ya(E.background,"default"),ya(E.background,"paper"),ya(E.common,"background"),ya(E.common,"onBackground"),ya(E,"divider"),Object.keys(E).forEach(U=>{const Z=E[U];U!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&<(E[U],"mainChannel",tc(nc(Z.main))),Z.light&<(E[U],"lightChannel",tc(nc(Z.light))),Z.dark&<(E[U],"darkChannel",tc(nc(Z.dark))),Z.contrastText&<(E[U],"contrastTextChannel",tc(nc(Z.contrastText))),U==="text"&&(ya(E[U],"primary"),ya(E[U],"secondary")),U==="action"&&(Z.active&&ya(E[U],"active"),Z.selected&&ya(E[U],"selected")))})}),P=f.reduce((F,E)=>oi(F,E),P);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:xP(P)},{vars:A,generateThemeVars:O,generateStyleSheets:N}=function(F,E={}){const{getSelector:B=ae,disableCssColorScheme:H,colorSchemeSelector:U}=E,{colorSchemes:Z={},components:G,defaultColorScheme:V="light",...le}=F,{vars:re,css:ge,varsWithDefaults:Q}=Mp(le,E);let xe=Q;const be={},{[V]:Fe,...ee}=Z;if(Object.entries(ee||{}).forEach(([we,se])=>{const{vars:J,css:ce,varsWithDefaults:ne}=Mp(se,E);xe=oi(xe,ne),be[we]={css:ce,vars:J}}),Fe){const{css:we,vars:se,varsWithDefaults:J}=Mp(Fe,E);xe=oi(xe,J),be[V]={css:we,vars:se}}function ae(we,se){let J=U;if(U==="class"&&(J=".%s"),U==="data"&&(J="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(J=`[${U}="%s"]`),we){if(J==="media")return F.defaultColorScheme===we?":root":{[`@media (prefers-color-scheme: ${Z[we]?.palette?.mode||we})`]:{":root":se}};if(J)return F.defaultColorScheme===we?`:root, ${J.replace("%s",String(we))}`:J.replace("%s",String(we))}return":root"}return{vars:xe,generateThemeVars:()=>{let we={...re};return Object.entries(be).forEach(([,{vars:se}])=>{we=oi(we,se)}),we},generateStyleSheets:()=>{const we=[],se=F.defaultColorScheme||"light";function J(Pe,Ee){Object.keys(Ee).length&&we.push(typeof Pe=="string"?{[Pe]:{...Ee}}:Pe)}J(B(void 0,{...ge}),ge);const{[se]:ce,...ne}=be;if(ce){const{css:Pe}=ce,Ee=Z[se]?.palette?.mode,it=!H&&Ee?{colorScheme:Ee,...Pe}:{...Pe};J(B(se,{...it}),it)}return Object.entries(ne).forEach(([Pe,{css:Ee}])=>{const it=Z[Pe]?.palette?.mode,Ue=!H&&it?{colorScheme:it,...Ee}:{...Ee};J(B(Pe,{...Ue}),Ue)}),we}}}(P,z);return P.vars=A,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([F,E])=>{P[F]=E}),P.generateThemeVars=O,P.generateStyleSheets=N,P.generateSpacing=function(){return c2(w.spacing,L3(this))},P.getColorSchemeSelector=function(F){return function(E){return F==="media"?`@media (prefers-color-scheme: ${E})`:F?F.startsWith("data-")&&!F.includes("%s")?`[${F}="${E}"] &`:F==="class"?`.${E} &`:F==="data"?`[data-${E}] &`:`${F.replace("%s",E)} &`:"&"}}(v),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=x,P.unstable_sxConfig={...M2,...w?.unstable_sxConfig},P.unstable_sx=function(F){return qs({sx:F,theme:this})},P.toRuntimeSource=$b,P}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const B3=oh();function N3(){const e=g1(B3);return e[I3]||e}function bP(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Nb(t.components[n].defaultProps,o):o}const vP=F3();function _p(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Cl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function wP(e){return e?(t,n)=>n[e]:null}function Ud(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>Ud(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?Cl(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Cl(Mr(a),n):a}return Hb(e,o.variants,[r],n)}return o?.isProcessed?n?Cl(Mr(o.style),n):o.style:n?Cl(Mr(o),n):o}function Hb(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?Cl(Mr(a.style(r)),o):a.style(r))):n.push(o?Cl(Mr(a.style),o):a.style)}return n}function SP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const CP=function(e={}){const{themeId:t,defaultTheme:n=vP,rootShouldForwardProp:o=_p,slotShouldForwardProp:r=_p}=e;function i(a){var l,c,d;c=t,d=n,(l=a).theme=function(p){for(const f in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme}return(a,l={})=>{r3(a,j=>j.filter(_=>_!==qs));const{name:c,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:h=wP(SP(d)),...g}=l,m=c&&c.startsWith("Mui")||d?"components":"custom",y=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=f||!1;let v=_p;var b;d==="Root"||d==="root"?v=o:d?v=r:typeof(b=a)=="string"&&b.charCodeAt(0)>96&&(v=void 0);const w=a2(a,{shouldForwardProp:v,label:void 0,...g}),M=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(_){return Ud(_,j,_.theme.modularCssLayers?m:void 0)};if(Sa(j)){const _=function(L){const{variants:T,...D}=L,C={variants:T,style:Mr(D),isProcessed:!0};return C.style===D||T&&T.forEach(S=>{typeof S.style!="function"&&(S.style=Mr(S.style))}),C}(j);return function(L){return _.variants?Ud(L,_,L.theme.modularCssLayers?m:void 0):L.theme.modularCssLayers?Cl(_.style,m):_.style}}return j},k=(...j)=>{const _=[],L=j.map(M),T=[];if(_.push(i),c&&h&&T.push(function(S){const R=S.theme,P=R.components?.[c]?.styleOverrides;if(!P)return null;const I={};for(const z in P)I[z]=Ud(S,P[z],S.theme.modularCssLayers?"theme":void 0);return h(S,I)}),c&&!y&&T.push(function(S){const R=S.theme,P=R?.components?.[c]?.variants;return P?Hb(S,P,[],S.theme.modularCssLayers?"theme":void 0):null}),x||T.push(qs),Array.isArray(L[0])){const S=L.shift(),R=new Array(_.length).fill(""),P=new Array(T.length).fill("");let I;I=[...R,...S,...P],I.raw=[...R,...S.raw,...P],_.unshift(I)}const D=[..._,...L,...T],C=w(...D);return a.muiName&&(C.muiName=a.muiName),C};return w.withConfig&&(k.withConfig=w.withConfig),k}}({themeId:I3,defaultTheme:B3,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),C1=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},C7=(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})`},kP=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})})),Wb=CP(kP)(({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(Wb,{children:e}),EP=e=>{const{sx:t,...n}=e;return s.jsxs(Qe,{sx:{overflow:"visible","& .activeColor":{filter:C1},...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"})]})},$3=e=>{const{sx:t,...n}=e;return s.jsxs(Qe,{sx:{overflow:"visible","& .activeColor":{filter:C1},...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"})]})},MP=e=>{const{sx:t,...n}=e;return s.jsxs(Qe,{sx:{overflow:"visible","& .activeColor":{filter:C1},...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"})]})},k7=e=>s.jsxs(Qe,{...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"})]}),TP=e=>s.jsxs(Qe,{...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"})]}),_P=e=>s.jsxs(Qe,{...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"})]}),Ub=e=>s.jsx(Qe,{...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"})}),jP=e=>s.jsx(Qe,{...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"})}),RP=e=>s.jsxs(Qe,{...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"})]}),IP=e=>s.jsxs(Qe,{...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"})]}),PP=e=>s.jsxs(Qe,{...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"})]}),rh=e=>s.jsx(Qe,{...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"})}),V3=e=>s.jsxs(Qe,{...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"})]}),qb=e=>s.jsxs(Qe,{...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"})]}),OP=e=>s.jsx(Qe,{...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"})}),DP=e=>s.jsx(Qe,{...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"})}),AP=e=>s.jsxs(Qe,{...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"})]}),LP=e=>s.jsxs(Qe,{...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"})]}),zP=e=>s.jsx(Qe,{...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"})}),FP=e=>s.jsxs(Qe,{...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 Kb(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=Kb(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ys(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Kb(e))&&(o&&(o+=" "),o+=t);return o}var BP=function(){},Gb=typeof window<"u",NP=Gb?u.useLayoutEffect:u.useEffect,E7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Nl=Gb&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(E7),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return NP(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[BP,E7]},En=(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},$P=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"})})})})},VP=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"})})})})},ih=(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:ih},Symbol.toStringTag,{value:"Module"}));const H3=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:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=$P,createScrollEndButton:y=VP,...x}=e,v=En(d,[d]),b=u.useRef(null),[w,{width:M,height:k}]=Nl(),[j,{width:_,height:L}]=Nl(),T=l===Kr.Vertical,D=T?"top":"left",C=T?"scrollTop":"scrollLeft",S=T?k:M,R=T?L:_,[P,I]=u.useState(null);u.useEffect(()=>{P!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[D]:P})},[P,T]);const z=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=le?0:ih(V,ge[D],Q,!0,Math.max(0,V-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=Math.ceil(R-S),be=le?xe:ih(V,ge[D],Q,!1,Math.max(0,V+f));return I(be),Math.min(xe,be)},[R,S]),O=u.useRef(null),N=u.useCallback(V=>{O.current=n;const le=V.target[C];c(le,r,o),v?.(V)},[c,r,o,n]);u.useEffect(()=>{const V=O.current;O.current=null,n!==V&&(b.current[C]=n)},[n,C]);const F=u.useRef(null),E=u.useRef(null),B=u.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null,E.current=null)},[]),H=u.useCallback((V,le,re,ge=h)=>{E.current=V,F.current=setTimeout(()=>{const Q=re?z(E.current||V):A(E.current||V);Q!==E.current?H(Q,!1,re,g):B()},le?0:ge)},[z,A,B]);u.useEffect(()=>()=>B(),[B]);const U=n,Z=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(U)<=0||Math.floor(R-S)===0,onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!0)};return m?.(V)},[p,l,U,P,R,S]),G=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(R-S)<=Math.ceil(U),onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!1)};return y?.(V)},[p,l,U,P,R,S]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:ys("_sheetxl-scrollbar_eblx4_6",a),...x,children:[Z,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:N,ref:b,children:s.jsx("div",{ref:j,style:{position:"absolute",height:T?o-r+(k??0):1,width:T?1:o-r+(M??0)},className:"scrollbar-viewport"})})}),G]})}));H3.displayName="Scrollbar";let M7=Date.now,Ua={},HP=1;const I0=e=>{let t=Ua[e]!==null;return t&&(Ua[e]=null),t},T7=(e,t,n,o=0,r)=>{let i=M7(),a=i,l=0,c=0,d=0,p=HP++;if(p%20==0){const h={};for(let g in Ua)h[g]=!0;Ua=h}const f=function(h){let g=h!==!0,m=M7(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!Ua[p]||!y)return Ua[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(Ua[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return Ua[p]=!0,requestAnimationFrame(f),p},WP=function(e){return Math.pow(e-1,3)+1},UP=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class qP{constructor(t,n){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=t,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...n}}setDimensions(t,n,o,r){t!==null&&(this.__clientWidth=t),n!==null&&(this.__clientHeight=n),o!==null&&(this.__contentWidth=o),r!==null&&(this.__contentHeight=r),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(t,n){this.__clientLeft=t||0,this.__clientTop=n||0}setSnapSize(t,n){this.__snapWidth=t,this.__snapHeight=n}getValues(){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(t,n){const o=this.getValues();return{left:t/o.zoom,top:n/o.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(t,n=!1,o,r,i){if(!this.options.zooming)throw new Error("Zooming is not enabled!");i&&(this.__zoomComplete=i),this.__isDecelerating&&(I0(this.__isDecelerating),this.__isDecelerating=0);const a=this.__zoomLevel;o===void 0&&(o=this.__clientWidth/2),r===void 0&&(r=this.__clientHeight/2),t=Math.max(Math.min(t,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(t);const l=t/a;let c=l*(this.__scrollLeft+o)-o,d=l*(this.__scrollTop+r)-r;c>this.__maxScrollLeft?c=this.__maxScrollLeft:c<0&&(c=0),d>this.__maxScrollTop?d=this.__maxScrollTop:d<0&&(d=0),this.__publish(c,d,t,n)}zoomBy(t,n=!1,o=0,r=0,i){this.zoomTo(this.__zoomLevel*t,n,o,r,i)}scrollTo(t,n,o=!1,r=1){if(this.__isDecelerating&&(I0(this.__isDecelerating),this.__isDecelerating=0),r!==void 0&&r!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");t*=r,n*=r,this.__computeScrollMax(r)}else r=this.__zoomLevel;this.options.scrollingX?this.options.paging?t=Math.round(t/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(t=Math.round(t/this.__snapWidth)*this.__snapWidth):t=this.__scrollLeft,this.options.scrollingY?this.options.paging?n=Math.round(n/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(n=Math.round(n/this.__snapHeight)*this.__snapHeight):n=this.__scrollTop,t=Math.max(Math.min(this.__maxScrollLeft,t),0),n=Math.max(Math.min(this.__maxScrollTop,n),0),t===this.__scrollLeft&&n===this.__scrollTop&&(o=!1),this.__publish(t,n,r,o)}scrollBy(t=0,n=0,o=!1){const r=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,i=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(r+(t||0),i+(n||0),o)}doMouseZoom(t,n,o,r){const i=t>0?.97:1.03;return this.zoomTo(this.__zoomLevel*i,!1,o-this.__clientLeft,r-this.__clientTop)}doTouchStart(t,n){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);let o,r;this.__interruptedAnimation=!0,this.__isDecelerating&&(I0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(I0(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let i=t.length===1;i?(o=t[0].pageX,r=t[0].pageY):(o=Math.abs(t[0].pageX+t[1].pageX)/2,r=Math.abs(t[0].pageY+t[1].pageY)/2),this.__initialTouchLeft=o,this.__initialTouchTop=r,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=n,this.__lastScale=1,this.__enableScrollX=!i&&this.options.scrollingX,this.__enableScrollY=!i&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!i,this.__isSingleTouch=i,this.__positions=[]}doTouchMove(t,n,o=1){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);if(!this.__isTracking)return;let r,i;t.length===2?(r=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,i=t[0].pageY);let a=this.__positions;if(this.__isDragging){let l=r-this.__lastTouchLeft,c=i-this.__lastTouchTop,d=this.__scrollLeft,p=this.__scrollTop,f=this.__zoomLevel;if(o!==void 0&&this.options.zooming){let h=f;if(f=f/this.__lastScale*o,f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom),h!==f){let g=r-this.__clientLeft,m=i-this.__clientTop;d=(g+d)*f/h-g,p=(m+p)*f/h-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){d-=l*this.options.speedMultiplier;let h=this.__maxScrollLeft;(d>h||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>h?h:0)}if(this.__enableScrollY){p-=c*this.options.speedMultiplier;const h=this.__maxScrollTop;(p>h||p<0)&&(this.options.bouncing?p+=c/2*this.options.speedMultiplier:p=p>h?h:0)}a.length>60&&a.splice(0,30),a.push(d,p,n),this.__publish(d,p,f)}else{let l=this.options.locking?3:0,c=5,d=Math.abs(r-this.__initialTouchLeft),p=Math.abs(i-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&d>=l,this.__enableScrollY=this.options.scrollingY&&p>=l,a.push(this.__scrollLeft,this.__scrollTop,n),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(d>=c||p>=c),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=r,this.__lastTouchTop=i,this.__lastTouchMove=n,this.__lastScale=o}doTouchEnd(t){if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&t-this.__lastTouchMove<=100){let n=this.__positions,o=n.length-1,r=o;for(let i=o;i>0&&n[i]>this.__lastTouchMove-100;i-=3)r=i;if(r!==o){const i=n[o]-n[r],a=this.__scrollLeft-n[r-2],l=this.__scrollTop-n[r-1];this.__decelerationVelocityX=a/i*(1e3/60),this.__decelerationVelocityY=l/i*(1e3/60);const c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(t)}else this.options.scrollingComplete?.()}else t-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(t,n,o,r=!1){const i=this.__isAnimating;if(i&&(I0(i),this.__isAnimating=0),r&&this.options.animating){this.__scheduledLeft=t,this.__scheduledTop=n,this.__scheduledZoom=o;const a=this.__scrollLeft,l=this.__scrollTop,c=this.__zoomLevel,d=t-a,p=n-l,f=o-c,h=function(y,x,v){v&&(this.__scrollLeft=a+d*y,this.__scrollTop=l+p*y,this.__zoomLevel=c+f*y,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),g=function(y){return this.__isAnimating===y}.bind(this),m=function(y,x,v){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||v)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=T7(h,g,m,this.options.animationDuration,i?WP:UP)}else this.__scheduledLeft=this.__scrollLeft=t,this.__scheduledTop=this.__scrollTop=n,this.__scheduledZoom=this.__zoomLevel=o,this.__callback&&this.__callback(t,n,o),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(t=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*t-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*t-this.__clientHeight,0)}__startDeceleration(t){if(this.options.paging){const a=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),c=this.__clientWidth,d=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(a/c)*c,this.__minDecelerationScrollTop=Math.floor(l/d)*d,this.__maxDecelerationScrollLeft=Math.ceil(a/c)*c,this.__maxDecelerationScrollTop=Math.ceil(l/d)*d}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const n=function(a,l,c){this.__stepThroughDeceleration(c)}.bind(this),o=this.options.snapping?4:.1,r=function(){const a=Math.abs(this.__decelerationVelocityX)>=o||Math.abs(this.__decelerationVelocityY)>=o;return a||(this.__didDecelerationComplete=!0),a}.bind(this),i=function(a,l,c){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=T7(n,r,i)}__stepThroughDeceleration(t){let n=this.__scrollLeft+this.__decelerationVelocityX,o=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const r=Math.max(Math.min(this.__maxDecelerationScrollLeft,n),this.__minDecelerationScrollLeft);r!==n&&(n=r,this.__decelerationVelocityX=0);const i=Math.max(Math.min(this.__maxDecelerationScrollTop,o),this.__minDecelerationScrollTop);i!==o&&(o=i,this.__decelerationVelocityY=0)}if(t?this.__publish(n,o,this.__zoomLevel):(this.__scrollLeft=n,this.__scrollTop=o),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let r=0,i=0,a=this.options.penetrationDeceleration,l=this.options.penetrationAcceleration;n<this.__minDecelerationScrollLeft?r=this.__minDecelerationScrollLeft-n:n>this.__maxDecelerationScrollLeft&&(r=this.__maxDecelerationScrollLeft-n),o<this.__minDecelerationScrollTop?i=this.__minDecelerationScrollTop-o:o>this.__maxDecelerationScrollTop&&(i=this.__maxDecelerationScrollTop-o),r!==0&&(r*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=r*a:this.__decelerationVelocityX=r*l),i!==0&&(i*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=i*a:this.__decelerationVelocityY=i*l)}}}var ri=typeof window<"u"?window:{screen:{},navigator:{}},Ks=(ri.matchMedia||function(){return{matches:!1}}).bind(ri),Zb=!1,KP={get passive(){return Zb=!0}},_7=function(){};ri.addEventListener&&ri.addEventListener("p",_7,KP),ri.removeEventListener&&ri.removeEventListener("p",_7,!1);var GP=Zb,ZP="PointerEvent"in ri,W3="ontouchstart"in ri,Xb=W3||"TouchEvent"in ri&&Ks("(any-pointer: coarse)").matches,j7=(ri.navigator.maxTouchPoints||0)>0||Xb,Yb=ri.navigator.userAgent||"",XP=Ks("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Yb)&&Math.min(ri.screen.width||0,ri.screen.height||0)>=768,Jb=(Ks("(pointer: coarse)").matches||!Ks("(pointer: fine)").matches&&W3)&&!/Windows.*Firefox/.test(Yb),YP=Ks("(any-pointer: fine)").matches||Ks("(any-hover: hover)").matches||XP||!W3,ah=!j7||!YP&&Jb?j7?"touchOnly":"mouseOnly":"hybrid",JP=ah==="mouseOnly"?"mouse":ah==="touchOnly"||Jb?"touch":"mouse";const QP=Object.freeze(Object.defineProperty({__proto__:null,deviceType:ah,primaryInput:JP,supportsPassiveEvents:GP,supportsPointerEvents:ZP,supportsTouchEvents:Xb},Symbol.toStringTag,{value:"Module"})),eO=new Set(["INPUT","TEXTAREA","SELECT"]),Qb={};function lh(){return QP}const tO=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Qb,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:lh,focusableNodeNames:eO,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":To.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),nO=[];function T2(e,t,n=nO){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 R7=e=>s.jsx(H3,{...e}),oO=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),rO=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=oO,createHorizontalScrollbar:c=R7,createVerticalScrollbar:d=R7,style:p,touchElement:f,disableTouch:h,...g}=e,m=En(r,[r]),y=T2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft===o?.left||x.current.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((S,R)=>{m?.({left:S,top:R})},[]),b=u.useCallback(S=>{x.current?.doTouchStart(S.touches,S.timeStamp)},[]),w=u.useCallback(S=>{S.preventDefault(),x.current?.doTouchMove(S.touches,S.timeStamp)},[]),M=u.useCallback(S=>{x.current?.doTouchEnd(S.timeStamp)},[]),k=u.useCallback(({containerWidth:S,containerHeight:R,totalWidth:P,totalHeight:I})=>{x.current.setDimensions(S,R,P,I)},[]);u.useEffect(()=>{const S=f??y.current;if(!h&&lh().supportsTouchEvents&&S&&o){if(!x.current){const R={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new qP(v,R)}lh().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",M),S.addEventListener("touchmove",w)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",M),S?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[j,{width:_}]=Nl(),[L,{height:T}]=Nl(),D=u.useMemo(()=>{const S=d({orientation:Kr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:R=>{m?.({top:R})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:j,children:S})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const S=c({orientation:Kr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:R=>m?.({left:R})});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:L,className:"sizer",children:S})}),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?D:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));rO.displayName="ScrollPane";const iO=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let ad=0;function U3(){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 ad++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),ad--,ad<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),ad=0)}},[]),{getPortalContainer:iO}}const aO=100,lO=100,sO=1e6,cO=100,dO=50,uO=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=aO,endScrollIncrement:l=lO,style:c=Qb,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=sO,scaleFactor:g=cO,precisionFactor:m=dO,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=En(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),M=h!==0&&b.totalSize>h?g:1,k=M/m,j=Math.ceil(b.totalSize/M),_=Math.ceil(b.offset/M),L=Math.ceil(o/M),T=u.useCallback(z=>{},[]),[D,C]=u.useState(!1),S=u.useRef(null);u.useLayoutEffect(()=>{if(!D){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,D,i,a,l]);const R=En((z,A,O)=>{const N=S.current;S.current=null,N&&N.propTotalSize===r&&N.propViewportSize===o&&N.propOffset===n||(Math.abs(z-_)<k&&(z=_),p?.(z*M,_,L))},[p,M,k,_,L]),P=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",P),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",P,{passive:!0})},[T,P]);return s.jsx(H3,{ref:t,style:{...c},...y,offset:_,totalSize:j,viewportSize:L,onMouseDown:I,onScrollOffset:R})}));function jp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}uO.displayName="VirtualScrollbar";var Mu=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)}};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:Mu([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:f}]=Nl(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,M=f-w+b;return function(k,j,_=!1){if(j===0)return k;function L(P,I,z){let A=I.x-P.x,O=I.y-P.y,N=Math.sqrt(A*A+O*O);return T(P,I,Math.min(1,z/N))}function T(P,I,z){return{x:P.x+(I.x-P.x)*z,y:P.y+(I.y-P.y)*z}}function D(P,I){P.length>2&&(P[P.length-2]=I.x,P[P.length-1]=I.y)}function C(P){return{x:parseFloat(P[P.length-2]),y:parseFloat(P[P.length-1])}}let S=k.split(/[,\s]/).reduce(function(P,I){let z=I.match("([a-zA-Z])(.+)");return z?(P.push(z[1]),P.push(z[2])):P.push(I),P},[]).reduce(function(P,I){return parseFloat(I)==I&&P.length?P[P.length-1].push(I):P.push([I]),P},[]),R=[];if(S.length>1){let P=C(S[0]),I=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(I=["L",P.x,P.y],S[S.length-1]=I),R.push(S[0]);for(let z=1;z<S.length;z++){let A=R[R.length-1],O=S[z],N=O===I?S[1]:S[z+1];if(N&&A&&A.length>2&&O[0]==="L"&&N.length>2&&N[0]==="L"){let F,E,B=C(A),H=C(O),U=C(N);_?(F=T(H,A.origPoint||B,j),E=T(H,N.origPoint||U,j)):(F=L(H,B,j),E=L(H,U,j)),D(O,F),O.origPoint=H,R.push(O);let Z=T(F,H,.5),G=T(H,E,.5),V=["C",Z.x,Z.y,G.x,G.y,E.x,E.y];V.origPoint=H,R.push(V)}else R.push(O)}if(I){let z=C(R[R.length-1]);R.push(["Z"]),D(R[0],z)}}else R=S;return R.reduce(function(P,I){return P+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${M} L ${2*i} ${M} L ${p-2*i} ${M} M ${p-2*i} ${M} L ${p-i} ${M} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,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:Mu([h,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:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const pO={},hO=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=pO,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ys("hit-box",h),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",...f},onPointerDown:a?void 0:t,...g})},l)},ld={},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,sd=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Aa=(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:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=ld,paneProps:M=ld,paneBeforeProps:k=ld,paneAfterProps:j=ld,createResizer:_=hO}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let de=null;i&&(i==="before"?de=0:i==="after"&&(de=1));const Oe=de===null;return{fixedPaneOffset:de,isPercent:Oe,minBefore:Aa(c,Oe),maxBefore:Aa(d,Oe),minAfter:Aa(p,Oe),maxAfter:Aa(f,Oe)}},[c,d,p,f]),D=En(l,[l]),[C,S]=u.useState(()=>Aa(a,i===null));u.useEffect(()=>{S(Aa(a,i===null))},[a,i]);const[R,{width:P,height:I}]=Nl(),[z,{width:A,height:O}]=Nl(),N=r==="row"?A:O,F=r==="row"?P:I,E=u.useMemo(()=>((de,Oe,Le,je)=>{const K=[null,null],W=[null,null];if(de||(de={percent:je.fixedPaneOffset===null?50:null,pixels:je.fixedPaneOffset===null?null:0}),Oe===0)return de?.pixels!=null?je.fixedPaneOffset!==1?(K[0]=de?.pixels,W[1]=100):(K[1]=de?.pixels-Le,W[0]=100):de?.percent!=null&&(je.fixedPaneOffset!==1?(W[0]=de?.percent,W[1]=100-de?.percent):(W[1]=de?.percent,W[0]=100-de?.percent)),{percents:W,pixels:K,minBefore:sd(je.minBefore,!0),maxBefore:sd(je.maxBefore,!0),minAfter:sd(je.minAfter),maxAfter:sd(je.maxAfter)};let te=cl(de,Oe,je.fixedPaneOffset!==1),oe=Oe-Le,ue=cl(je.minBefore,oe,!0)??0,ie=cl(je.maxBefore,oe,!0)??oe,pe=0,fe=0,ye=0,De=oe;pe=(cl(je.maxAfter,Oe,!1)??Le)-Le,fe=cl(je.minAfter,Oe,!1)??Oe,ye=Math.max(ue,pe),De=Math.min(ie,fe),te=Math.max(ye,Math.min(te,De)),fe=Math.min(oe-te,cl(je.maxAfter,oe-te,!0)??oe),pe=Math.min(oe-te,cl(je.minAfter,oe-te,!0)??oe),K[0]=te,K[1]=oe-K[0];const Ve=Math.max(0,Math.min(100,te/oe*100));return W[0]=Ve,W[1]=100-W[0],{percents:W,pixels:K,minBefore:`${ue}px`,minAfter:`${pe}px`,maxBefore:`${K[0]}px`,maxAfter:`${K[1]}px`}})(C,F,N,T),[T,C,F,N,r]),[B,H]=u.useState(!1),U=En(x,[x]),Z=En(v,[v]),G=En(b,[b]),V=u.useRef(null),le=u.useRef(null),re=u.useRef(null),{style:ge,className:Q,...xe}=M,be={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:Fe,style:ee,...ae}=k,{className:we,style:se,...J}=j,ce={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ne,style:Pe,onPointerDown:Ee,...it}=w,Ue=En(de=>{const Oe=Aa(de,i===null);S(Oe)},[i]),ke=En(de=>{if(y||!B)return;const Oe=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(de.clientX??de.touches?.[0]?.clientX)-Oe.x:(de.clientY??de.touches?.[0]?.clientY)-Oe.y,Le=Math.max(0,Math.min(F,Le)),T.fixedPaneOffset===1&&(Le=F-Le),a&&C.pixels===Le||S({pixels:Le,percent:null}),Z?.(Le),de.stopPropagation(),de.preventDefault()},[T,r,y,B,C,F]),_e=En(de=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",_e),B&&(H(!1),C)){if(G(C.pixels),!Aa(a,i===null)||C.pixels!==a){const Oe={...C};Oe.percent===null&&(Oe.percent=Oe.pixels/F*100),D(Oe)}de.stopPropagation(),de.preventDefault()}},[C,B,a,i,F]),Xe=En(de=>{Ee?.(de),de.defaultPrevented||y||B||(H(!0),U(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",_e,{passive:!1}))},[Ee]),Be=T2(t,()=>({setPosition:Ue,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:Mu([z,le]),className:ys("resizer",ne),onPointerDownCapture:Xe,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,...Pe},splitDirection:r,disabled:y,...it}):null,[L,ne,it,r,Pe,y]),et=r==="row"?"Width":"Height",he={...be,...ee,flex:T.fixedPaneOffset===0&&E?.pixels[0]!==null?`0 0 ${Math.round(E?.pixels[0])}px`:`1 1 ${Math.round(E?.percents[0]??100)}%`,[`min${et}`]:E?.minBefore,[`max${et}`]:o?E?.maxBefore:"100%"},Ye={...be,...se,flex:T.fixedPaneOffset===1&&E?.pixels[1]!==null?`0 0 ${Math.round(E?.pixels[1])}px`:`1 1 ${Math.round(E?.percents[1]??100)}%`,[`min${et}`]:E?.minAfter,[`max${et}`]:n?E?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:V,className:ys("before",Q,Fe),style:he,...xe,...ae,children:n},"before"):null,[n,M,k,T,E]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:re,className:ys("after",Q,we),style:Ye,...xe,...J,children:o},"after"):null,[o,M,j,T,E]);return s.jsxs("div",{ref:Mu([R,Be]),className:ys("splitPane",r==="row"?"vertical":"horizontal",{dragging:B},g),style:ce,children:[Se,ct,Ie]})}));const fO=({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},sh=e=>{console&&console.warn&&console.warn(e)},Rp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let mO=1,ch=!1,ev=!1;const qd=[],xs=[],Tu=()=>{xs.forEach(e=>e())},gO=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||ch!==!1||(ev=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return xs[0]!==i?(e||ch!==!0||sh("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([...qd])}return xs.push(i),Tu(),()=>{r=!1,o.current?.length>0&&sh("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),xs.splice(xs.indexOf(i),1),Tu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(fO,{...r,key:i}))})},tv=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=mO++;return qd.push({hook:g,key:m}),xs.length===0&&ev===!1&&(ch=!0,(y=>{if(Rp.document&&Rp.document.createElement){const x=Rp.document.createElement("div");t2.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else sh("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(gO)),Tu(),()=>{qd.splice(qd.findIndex(y=>y.key===m),1),Tu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};function q3(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,f){n.current?.onError?.(d,p,f)}});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}tv(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 cd=(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 K3(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(cd(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const h=cd(e,t);a(h),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),a(cd(e,t))});const p=e?.addListener(c,d),f=cd(e,t);return a(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Ci={Toolbar:"toolbar",Menuitem:"menuitem"};tv({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>wu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(wu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Ip=!1,yO=0;var xO=typeof document<"u"?u.useLayoutEffect:u.useEffect;const I7=()=>"sheetxl-ui-"+yO++,bO=u.useId??function(){const[e,t]=u.useState(()=>Ip?I7():void 0);return xO(()=>{e==null&&t(I7())},[]),u.useEffect(()=>{Ip||(Ip=!0)},[]),e},vO=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+bO().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(Qe,{...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}})]})})},P7=e=>s.jsx(Qe,{...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"})}),wO=e=>s.jsxs(Qe,{...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"})]}),SO=e=>s.jsxs(Qe,{...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"})]}),CO=e=>s.jsxs(Qe,{...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"})]}),kO=e=>s.jsxs(Qe,{...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"})]}),EO=e=>s.jsxs(Qe,{...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"})]}),MO=e=>s.jsxs(Qe,{...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"})]}),TO=e=>s.jsxs(Qe,{...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"})]}),_O=e=>s.jsxs(Qe,{...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"})]}),jO=e=>s.jsxs(Qe,{...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"})]}),P0=e=>s.jsxs(Qe,{...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"})]}),O7=e=>s.jsxs(Qe,{...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"})]}),D7=e=>s.jsxs(Qe,{...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"})]}),RO=e=>s.jsxs(Qe,{...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"})]}),dh=e=>s.jsxs(Qe,{...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"})]}),uh=e=>s.jsxs(Qe,{...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"})]}),dd=e=>s.jsxs(Qe,{...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"})]}),Kc=e=>s.jsx(Qe,{...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"})}),A7=e=>s.jsxs(Qe,{...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"})]}),L7=e=>s.jsxs(Qe,{...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"})]}),IO=e=>s.jsxs(Qe,{...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"})]}),PO=e=>s.jsxs(Qe,{...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"})]}),OO=e=>s.jsxs(Qe,{...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"})]}),DO=e=>s.jsxs(Qe,{...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"})]}),nv=e=>s.jsxs(Qe,{...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"})]}),ph=e=>s.jsxs(Qe,{...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"})]}),AO=e=>s.jsxs(Qe,{...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"})]}),LO=e=>s.jsxs(Qe,{...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"})]}),zO=e=>s.jsxs(Qe,{...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"})]}),z7=e=>s.jsxs(Qe,{...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"})]}),FO=e=>s.jsxs(Qe,{...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"})]}),BO=e=>s.jsxs(Qe,{...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"})]}),Pp=e=>s.jsxs(Qe,{...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"})]}),F7=e=>s.jsxs(Qe,{...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"})]}),B7=e=>s.jsxs(Qe,{...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"})]}),N7=e=>s.jsxs(Qe,{...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"})]}),NO=e=>s.jsxs(Qe,{...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"})]}),$7=e=>s.jsxs(Qe,{...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"})]}),V7=e=>s.jsxs(Qe,{...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"})]}),H7=e=>s.jsxs(Qe,{...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"})]}),ud=e=>s.jsxs(Qe,{...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"})]}),W7=e=>s.jsxs(Qe,{...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"})]}),$O=e=>s.jsxs(Qe,{...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"})]}),VO=e=>s.jsxs(Qe,{...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"})]}),U7=e=>s.jsxs(Qe,{...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"})]}),Gc=e=>s.jsxs(Qe,{...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"})]}),HO=e=>s.jsxs(Qe,{...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"})]}),WO=e=>s.jsx(Qe,{...e,children:s.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),UO=e=>s.jsx(Qe,{...e,children:s.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),ov=e=>s.jsx(Qe,{...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"})}),qO=e=>s.jsxs(Qe,{...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"})]}),KO=e=>s.jsxs(Qe,{...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"})]}),rv=e=>s.jsxs(Qe,{...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"})]}),GO=e=>s.jsx(Qe,{...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"})}),ZO=e=>s.jsxs(Qe,{...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"})]}),iv=e=>s.jsx(Qe,{...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"})}),XO=e=>s.jsx(Qe,{...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"})}),YO=e=>s.jsx(Qe,{...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"})}),q7=e=>s.jsx(Qe,{...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"})}),av=e=>s.jsxs(Qe,{...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"})]}),JO=e=>s.jsx(Qe,{...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(Qe,{...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"})}),eD=e=>s.jsx(Qe,{...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"})}),tD=e=>s.jsxs(Qe,{...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"})]}),nD=e=>s.jsxs(Qe,{...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"})]}),oD=e=>s.jsxs(Qe,{...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"})]}),rD=e=>s.jsxs(Qe,{...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"})]}),iD=e=>s.jsxs(Qe,{...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"})]}),aD=e=>s.jsxs(Qe,{...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"})]}),lD=e=>s.jsxs(Qe,{...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"})]}),sD=e=>s.jsxs(Qe,{...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"})]}),cD=e=>s.jsxs(Qe,{...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"})]}),dD=e=>s.jsxs(Qe,{...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"})]}),K7=e=>s.jsxs(Qe,{...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"})]}),G7=e=>s.jsxs(Qe,{...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"})]}),Z7=e=>s.jsxs(Qe,{...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"})]}),uD=e=>s.jsxs(Qe,{...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"})]}),pD=e=>s.jsxs(Qe,{...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"})]}),hD=e=>s.jsxs(Qe,{...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"})]}),fD=e=>s.jsxs(Qe,{...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"})]}),mD=e=>s.jsxs(Qe,{...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"})]}),gD=e=>s.jsxs(Qe,{...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"})]}),yD=e=>s.jsxs(Qe,{...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"})]}),xD=e=>s.jsxs(Qe,{...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"})]}),bD=e=>s.jsxs(Qe,{...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"})]}),vD=e=>s.jsx(Qe,{...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"})}),wD=e=>s.jsx(Qe,{...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"})}),SD=e=>s.jsxs(Qe,{...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"})]}),CD=e=>s.jsxs(Qe,{...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"})]}),kD=e=>s.jsx(Qe,{...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"})}),ED=e=>s.jsxs(Qe,{...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"})]}),MD=e=>s.jsxs(Qe,{...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"})]}),TD=e=>s.jsxs(Qe,{...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"})]}),G3=e=>s.jsx(Qe,{...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"})}),lv=e=>s.jsxs(Qe,{...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"})]}),_D=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}),sv=(e,t,n,o)=>{const{style:r,...i}=e,a=s.jsx(Tr,{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})},jD=e=>sv(e,s.jsx(oR,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Kr.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),RD=e=>sv(e,s.jsx(Ax,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Kr.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),Ft=u.memo(u.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return s.jsx(wa,{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 Op(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var _u=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Op(o,t),i=typeof r=="function";n.push(i?r:()=>Op(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Op(n,t)}},ID=function(){},cv=typeof window<"u",dv=cv?u.useLayoutEffect:u.useEffect,X7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Y7=cv&&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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return dv(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[ID,X7]};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 PD=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 OD=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"})]})}),DD=s.jsx(PD,{}),Gl=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=DD,label:p,...f}=e,h=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:[h,d]});return l===!0&&(v=s.jsx(Ti,{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=>`${pt(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:_u([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},...f,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 dv(()=>{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}));Gl.displayName="LoadingPanel";const AD=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,LD=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,J7=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},Z3=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=[],f=(h,g=0)=>{h&&(p.push({error:h,depth:g}),h.cause&&h.cause instanceof Error&&f(h.cause,g+1))};return f(d),p.reverse()})(e).reverse(),a=[];i.forEach(({error:d},p)=>{const f=(d.stack||"").split(`
|
|
142
|
-
`).filter(Boolean).map(h=>{let g=h.match(AD);if(g){const[,m="",y,x,v,b]=g;return{line:`at ${m?m+" ":""}${y}`,location:`${J7(x).split(/[\\/]/).pop()}:${v}:${b}`}}if(g=h.match(LD),g){const[,m="",y,x,v]=g,b=J7(y),w=`${b.split(/[\\/]/).pop()}:${x}:${v}`;return{line:`at ${m?m+" ":""}${w}`,location:b!==w?`${b}:${x}:${v}`:void 0}}return{line:h.trim()}});f.length&&(a.push({line:p?`Caused by: ${f[0].line}`:f[0].line,isBoundary:!0}),a.push(...f.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(Tr,{size:"small",onClick:async()=>{try{let d=0;const p=a.map(f=>{if(f.isBoundary)return d=0,f.line;d++;let h=f.location&&f.line!==f.location?`${f.line} (${f.location})`:f.line;return d>=1&&(h=` ${h}`),h}).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(aR,{sx:{fontSize:"0.875rem"}})}),s.jsx(Tr,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:s.jsx(rR,{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:f=>d.isBoundary?f.palette.text.primary:f.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"]})]})]})});Z3.displayName="StackTrace";const uv=u.memo(u.forwardRef((e,t)=>{const{sx:n,icon:o=s.jsx(lR,{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(Z3,{error:d,hideLineNumbers:!0})]});const f=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:f})})(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(Ti,{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])}));uv.displayName="ErrorPanel";const pv=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(lT,{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 hh="top",Kd="bottom",fh="right",hv="left",zD=[hh,Kd,fh,hv],fv="viewport",O0="popper";function kl(e){return e?(e.nodeName||"").toLowerCase():null}function Pa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _s(e){return e instanceof Pa(e).Element||e instanceof Element}function js(e){return e instanceof Pa(e).HTMLElement||e instanceof HTMLElement}function mh(e){return typeof ShadowRoot<"u"&&(e instanceof Pa(e).ShadowRoot||e instanceof ShadowRoot)}var vc=Math.max,Q7=Math.min,e8=Math.round;function gh(){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 mv(){return!/^((?!chrome|android).)*safari/i.test(gh())}function X3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&js(e)&&(r=e.offsetWidth>0&&e8(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&e8(o.height)/e.offsetHeight||1);var a=(_s(e)?Pa(e):window).visualViewport,l=!mv()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function Za(e){return Pa(e).getComputedStyle(e)}function FD(e){return["table","td","th"].indexOf(kl(e))>=0}function Rs(e){return((_s(e)?e.ownerDocument:e.document)||window.document).documentElement}function ju(e){return kl(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||Rs(e)}function t8(e){return js(e)&&Za(e).position!=="fixed"?e.offsetParent:null}function gv(e){var t=Pa(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function n8(e){return X3(Rs(e)).left+gv(e).scrollLeft}function yv(e){var t=Za(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function xv(e){return["html","body","#document"].indexOf(kl(e))>=0?e.ownerDocument.body:js(e)&&yv(e)?e:xv(ju(e))}function bv(e,t){var n;t===void 0&&(t=[]);var o=xv(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Pa(o),a=r?[i].concat(i.visualViewport||[],yv(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(bv(ju(a)))}function yh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o8(e,t,n){return t===fv?yh(function(o,r){var i=Pa(o),a=Rs(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(l){c=l.width,d=l.height;var h=mv();(h||!h&&r==="fixed")&&(p=l.offsetLeft,f=l.offsetTop)}return{width:c,height:d,x:p+n8(o),y:f}}(e,n)):_s(t)?function(o,r){var i=X3(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):yh(function(o){var r,i=Rs(o),a=gv(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=vc(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=vc(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+n8(o),f=-a.scrollTop;return Za(l||i).direction==="rtl"&&(p+=vc(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:f}}(Rs(e)))}const BD={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,M=v.strategy,k=M===void 0?g.strategy:M,j=v.boundary,_=j===void 0?"clippingParents":j,L=v.rootBoundary,T=L===void 0?fv:L,D=v.elementContext,C=D===void 0?O0:D,S=v.altBoundary,R=S!==void 0&&S,P=v.padding,I=P===void 0?0:P,z=(x=typeof I!="number"?I:(y=I,zD.reduce(function(le,re){return le[re]=y,le},{})),Object.assign({},{top:0,right:0,bottom:0,left:0},x)),A=C===O0?"reference":O0,O=g.rects.popper,N=g.elements[R?A:C],F=function(le,re,ge,Q){var xe=re==="clippingParents"?function(ae){var we=bv(ju(ae)),se=["absolute","fixed"].indexOf(Za(ae).position)>=0&&js(ae)?function(J){for(var ce=Pa(J),ne=t8(J);ne&&FD(ne)&&Za(ne).position==="static";)ne=t8(ne);return ne&&(kl(ne)==="html"||kl(ne)==="body"&&Za(ne).position==="static")?ce:ne||function(Pe){var Ee=/firefox/i.test(gh());if(/Trident/i.test(gh())&&js(Pe)&&Za(Pe).position==="fixed")return null;var it=ju(Pe);for(mh(it)&&(it=it.host);js(it)&&["html","body"].indexOf(kl(it))<0;){var Ue=Za(it);if(Ue.transform!=="none"||Ue.perspective!=="none"||Ue.contain==="paint"||["transform","perspective"].indexOf(Ue.willChange)!==-1||Ee&&Ue.willChange==="filter"||Ee&&Ue.filter&&Ue.filter!=="none")return it;it=it.parentNode}return null}(J)||ce}(ae):ae;return _s(se)?we.filter(function(J){return _s(J)&&function(ce,ne){var Pe=ne.getRootNode&&ne.getRootNode();if(ce.contains(ne))return!0;if(Pe&&mh(Pe)){var Ee=ne;do{if(Ee&&ce.isSameNode(Ee))return!0;Ee=Ee.parentNode||Ee.host}while(Ee)}return!1}(J,se)&&kl(J)!=="body"}):[]}(le):[].concat(re),be=[].concat(xe,[ge]),Fe=be[0],ee=be.reduce(function(ae,we){var se=o8(le,we,Q);return ae.top=vc(se.top,ae.top),ae.right=Q7(se.right,ae.right),ae.bottom=Q7(se.bottom,ae.bottom),ae.left=vc(se.left,ae.left),ae},o8(le,Fe,Q));return ee.width=ee.right-ee.left,ee.height=ee.bottom-ee.top,ee.x=ee.left,ee.y=ee.top,ee}(_s(N)?N:N.contextElement||Rs(g.elements.popper),_,T,k),E=X3(g.elements.reference),B=function(le){var re,ge=le.reference,Q=le.element,xe=le.placement,be=xe?xe.split("-")[0]:null,Fe=xe?xe.split("-")[1]:null,ee=ge.x+ge.width/2-Q.width/2,ae=ge.y+ge.height/2-Q.height/2;switch(be){case hh:re={x:ee,y:ge.y-Q.height};break;case Kd:re={x:ee,y:ge.y+ge.height};break;case fh:re={x:ge.x+ge.width,y:ae};break;case hv:re={x:ge.x-Q.width,y:ae};break;default:re={x:ge.x,y:ge.y}}var we=be?["top","bottom"].indexOf(be)>=0?"x":"y":null;if(we!=null){var se=we==="y"?"height":"width";switch(Fe){case"start":re[we]=re[we]-(ge[se]/2-Q[se]/2);break;case"end":re[we]=re[we]+(ge[se]/2-Q[se]/2)}}return re}({reference:E,element:O,placement:w}),H=yh(Object.assign({},O,B)),U=C===O0?H:E,Z={top:F.top-U.top+z.top,bottom:U.bottom-F.bottom+z.bottom,left:F.left-U.left+z.left,right:U.right-F.right+z.right},G=g.modifiersData.offset;if(C===O0&&G){var V=G[w];Object.keys(Z).forEach(function(le){var re=[fh,Kd].indexOf(le)>=0?1:-1,ge=[hh,Kd].indexOf(le)>=0?"y":"x";Z[le]+=V[ge]*re})}return Z}(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],f=p==="left"?"left":"right",h=p==="top"?"top":"bottom";t.modifiersData[n]={width:c-o[f]-i,height:d-o[h]-a}}},ND=[0,2],vv=u.memo(u.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:a=ND,anchorEl:l,anchorPosition:c,onMount:d,onOpening:p,onOpen:f,onClosing:h,onClose:g,resizeOnOverflow:m=!0,...y}=e;if(Array.isArray(r))throw new Error("children can not be an array");const x=N3(),v={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:N}){const{height:F}=N.modifiersData.maxSize;N.styles.popper.maxHeight=F-10+"px"}},b=u.useMemo(()=>{const N=[{name:"offset",options:{offset:a}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return m&&N.unshift(BD,v),N},[m,a]),[w,M]=u.useState(!1),k=u.useRef(null),j=En(()=>{d?.(R.current,k.current)},[p]),_=En(p,[p]),L=En(f,[f]),T=En(h,[h]),D=En(()=>{M(!1),g?.()},[g]),[C,S]=u.useState(!1),R=u.useRef(null),P=u.useRef(!0),I=u.useMemo(()=>({onFirstUpdate:()=>{P.current&&(S(!0),j?.(),P.current=!1)}}),[o,w]);u.useEffect(()=>{o&&C?_?.():!o&&w&&T?.(),o&&M(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:()=>k.current,element:()=>R.current}),[]);const{getPortalContainer:A}=U3(),O=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(b3,{ref:R,popperRef:k,container:A,anchorEl:z,open:w,role:void 0,popperOptions:I,transition:!0,sx:O,placement:"bottom-start",modifiers:b,...y,children:({TransitionProps:N,placement:F,...E})=>{const{in:B,onEnter:H,onExited:U,...Z}=N??{};return s.jsx(Fc,{...Z,in:o,onEnter:()=>{H?.(),L()},onExited:()=>{U?.(),D()},timeout:{enter:x.transitions.duration.shorter,exit:0},style:{transformOrigin:F==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:N,placement:F,...E}):r||{}})}})}));vv.displayName="ExhibitPopper";const Ri={Toolbar:"toolbar",Menuitem:"menuitem"},Bn=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})},r8=(e,t,n)=>s.jsx(nR,{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"}),$D=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,VD=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,xh=function(e,t=null){if(!e)return e;e=e.replace($D,function(o,r,i,a){return r+r+i+i+a+a});let n=VD.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},mi=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=xh(e),o?Ol(e,Math.max(0,Math.min(1,1*t))):Dl(e,Math.max(0,Math.min(1,1.5*t)))};function Y3(e,t){const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:pt((t=cr({track:mi(e.palette.background.paper,.05,e?.palette.mode),thumb:mi(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 wv=u.memo(u.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:a,createPopupPanel:l=Bn,popperProps:c,onMount:d,onClosing:p,onClose:f,onOpening:h,onOpen:g,children:m,sx:y,...x}=e,v=En(p,[p]),b=En(f,[f]),w=En(h,[h]),M=En(g,[g]),[k,j]=u.useState(),_=u.useRef(null),L=En((D,C)=>{j(D),d?.(_.current,C)},[d]),T=u.useMemo(()=>{const D={popupContainer:k,floatReference:a,children:m,...x},C=l(D);return s.jsx(Ti,{elevation:8,ref:_,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":S=>Y3(S)},tabIndex:0,children:C})},[l,m,k,a]);return s.jsx(vv,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:L,onOpening:w,onOpen:M,onClosing:v,onClose:b,...c,children:T})}));wv.displayName="ExhibitFloatPanel";const Va=new Map;let Dp=null;const Ha=new Map;let Ca=null;const Ap=(e=null,t,n,o)=>(Ca&&(Ca.fn.clear(),Ca=null),e===0?t:(e===null&&(e=120),Ca={fn:To.debounce(()=>t(),e),setReferences:n,isClose:o},Ca.fn)),Sv=(e,t)=>{if(t===null)return;e.add(t);const n=Va.get(t.key);if(!n)return;const o=Ha.get(n);o&&Sv(e,o)},i8=e=>{const t=new Set;return Sv(t,e),t},ha=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:a,createPopupPanel:l=Bn}=e??{},c=En(r,[r]),d=En(i,[i]),[p,f]=u.useState(null),[h,g]=u.useState(!1),[m,y]=u.useState(!1),x=u.useMemo(()=>o===null?(Dp===null&&(Dp={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:V=>null,closeChild:V=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>z(0),floatElement:()=>null,anchorElement:()=>null}),Dp):o,[]),v=u.useMemo(()=>({label:n}),[]),b=u.useRef(null),w=u.useRef(t);u.useEffect(()=>{w.current=t},[t]);const M=V=>{const le=Va.get(V);let re=null;return le&&(re=Ha.get(le)?.close(0)),re},k=()=>M(N.key),[j,_]=u.useState(),L=()=>{if(!p)return void S();const V=new Promise((le,re)=>{_(ge=>({resolve:le,reject:re}))});return k(),Va.delete(x.key),f(!1),V};u.useEffect(()=>{j&&(j.resolve(),_(null))},[h,m,j]);const T=u.useCallback(()=>{let V=x;for(;V.parent;)V=V.parent;return M(V.key)},[]),D=()=>{if(p)return void S();x&&Ha.get(x.key)?.open(0);const V=Va.get(x.key);V&&V!==v&&Ha.get(V)?.close(0),requestAnimationFrame(()=>{Va.set(x.key,N.key),f(!0)})},[C,S]=u.useReducer(V=>V+1,0),R=u.useCallback(V=>l===null?null:l({closeFloat:z,closeFloatAll:O,...V}),[l]),P=l===null,I=En((V=120)=>Ap(V,D,new Set([N]),!1)(),[D]),z=En((V=60)=>Ap(V,L,i8(N),!0)(),[L]),A=En((V=360)=>Ap(V,k,i8((le=>{const re=Va.get(le.key);return re&&Ha.get(re)||null})(N)),!0)(),[k]),O=En(T,[T]),N=u.useMemo(()=>({key:v,isRoot:!1,label:n,parent:x,onChildVisible:()=>{y(!0)},onChildHidden:()=>{y(!1)},open:I,close:z,closeChild:A,closeAll:O,floatElement:()=>b.current,anchorElement:()=>w.current}),[]);u.useEffect(()=>{Ha.set(v,N)},[N]),u.useEffect(()=>()=>{Ha.delete(v),z(0)},[]),u.useEffect(()=>{p&&!P&&(g(!0),x.onChildVisible())},[p,P]);const F=u.useCallback(V=>{V.which===xr.Escape&&(V.preventDefault(),V.stopPropagation(),z(0))},[]),E=u.useRef(null),B=u.useCallback(()=>{const V=E.current,le=b.current;V&&le&&(requestAnimationFrame(()=>{(le.contains(document.activeElement)||document.activeElement===document.body)&&V.focus()}),E.current=null),d?.()},[]),H=u.useCallback(V=>{b.current=V,V.addEventListener("focus",re=>{E.current=re.relatedTarget},{once:!0,passive:!0});const le=document.activeElement;requestAnimationFrame(()=>{le===document.activeElement&&V.focus()})},[]),[U,Z]=u.useState();u.useEffect(()=>{P&&(p?c?.():p===!1&&d?.()),Z(h?s.jsx(wv,{floatReference:N,open:p,label:n,anchorEl:t,onOpening:()=>{c?.(),x.onChildVisible()},onClosing:B,onClose:()=>{g(!1),x.onChildHidden()},onMount:H,popperProps:{onKeyDown:F,onMouseEnter:V=>{p&&Ca?.isClose&&Ca.setReferences.has(N)&&(Ca.fn.clear(),Ca=null,N.closeChild())},...a},createPopupPanel:R}):null)},[h,p,n,P,a,R,C]);const G=En(V=>{if(Va.size===0)return;let le=!1;Va.forEach(re=>{const ge=Ha.get(re);!le&&ge&&(ge.floatElement()?.contains?.(V.target)&&(le=!0),ge.anchorElement()?.contains?.(V.target)&&(le=!0))}),le||T()},[T]);return u.useEffect(()=>{if(!p||!x.isRoot)return;const V=le=>{G(le)};return document.addEventListener("mousedown",V),document.addEventListener("touchstart",V),document.addEventListener("focus",V),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("touchstart",V),document.removeEventListener("focus",V)}},[p,x]),{component:U,reference:N}},HD=u.memo(u.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...a}=e,l={disabled:r,createPopupPanel:En(c=>{if(!n||n.length===0)return null;const{popupContainer:d,floatReference:p,ref:f,...h}=c,g=[];for(let m=0;m<n.length;m++){const y=n[m];y&&g.push(s.jsx(HD,{parentFloat:p,...h,...y},m))}return s.jsxs(Ae,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",g,s.jsx(Gr,{parentFloat:p,children:"Close other children"})]})},[n]),...a};return s.jsx(o===Ri.Toolbar?qi:k1,{...l})})),WD={placement:"right-start"},Cv=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:a=WD,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]),f=En(i,[i]),[h,g]=u.useState(null),{reference:m,component:y}=ha({label:l??"contextMenu",popperProps:a,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(h?.clientX||0,h?.clientY||0)},onClose:()=>g(null),createPopupPanel:f});return u.useEffect(()=>{h?m.open(0):m.close(0)},[h]),s.jsxs(s.Fragment,{children:[u.cloneElement(n,p),y]})})),di=u.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=U3();return s.jsx(jj,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});di.displayName="SimpleTooltip";const D0=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=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>pt(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>pt(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})})}),UD=To.getOS()===To.OSType.MacOS||To.getOS()===To.OSType.IOS?"Cmd":"Ctrl",J3=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],a=e;for(let l=0;l<a.length;l++)i.push(J3(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(D0,{modifier:t?"^":s.jsx("div",{style:{paddingRight:"1px"},children:UD})},"ctrl")),r.push("+")),o?.alt&&(r.push(s.jsx(D0,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(s.jsx(D0,{modifier:t?"⇧":s.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(s.jsx(D0,{modifier:t?s.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(s.jsx(D0,{modifier:tO.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:f=!1,sx:h,...g}=e;let m=null;return r&&(m=J3(r,c)),s.jsx(di,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...h},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(pv,{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})})})),_2=s.jsx(Us,{}),qD=ze(s.jsx(R3,{})),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:f,className:h,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:_=>pt(_.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"},...f},w={"&:hover:not(.Mui-disabled, [disabled])":{color:_=>_.palette.text.primary,border:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:_=>pt(_.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 M=b;r||(M=To.mergeContentful(b,w));const k=u.useMemo(()=>{let _=typeof l=="function"?l():l;return _===null?_:_||(a===void 0?_2:qD)},[l,a]);let j=s.jsxs(Tr,{component:"div",ref:t,className:rr({"Mui-focusVisible":x,"Mui-selected":a},h),onFocus:_=>{v(!0),g?.(_)},onBlur:_=>{v(!1),m?.(_)},size:"small",TouchRippleProps:{center:!1},sx:M,edge:"end",...y,children:[k,d]});if(c)if(c.simple&&c.label&&!c.disabled){const{label:_,description:L,maxWidth:T,shortcut:D,useModifierSymbols:C,componentDisabled:S,simple:R,chips:P,ref:I,...z}=c;j=s.jsx(di,{disableInteractive:!0,title:_??"",...z,children:s.jsx(Ae,{sx:{display:"flex"},children:j})})}else j=s.jsx(br,{children:j,...c});return j})),KD=e=>e.icon,Gr=u.memo(u.forwardRef((e,t)=>{const{icon:n=_2,renderIcon:o=KD,parentFloat:r,className:i,onFocus:a,selected:l,onBlur:c,onMouseOver:d,onMouseOut:p,onMouseEnter:f,disabled:h,children:g,sx:m,tooltipProps:y,chips:x,primary:v,...b}=e,[w,M]=u.useState(!1),[k,j]=u.useState(!1),_=u.useMemo(()=>{const T=o?.({icon:n,disabled:h,selected:l});return T?s.jsx(D_,{className:rr({"Mui-focusVisible":w,"Mui-hovered":k}),sx:{"& .MuiSvgIcon-root":{color:D=>v?void 0:D.palette.text.icon??D.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:D=>D.palette.text.primary}}},children:T}):null},[o,h,n,w,k,v,l]);let L=s.jsxs(v1,{ref:t,disabled:h,onMouseOver:T=>{d?.(T),T.isDefaultPrevented()||j(!0)},onMouseOut:T=>{p?.(T),T.isDefaultPrevented()||j(!1)},onMouseEnter:T=>{f?.(T),T.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:rr({"Mui-focusVisible":w,"Mui-hovered":k},i),onFocus:T=>{a?.(T),M(!0)},onBlur:T=>{c?.(T),M(!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(pv,{chips:x}):null]});return y&&(L=s.jsx(br,{children:L,placement:"right-start",...y})),L})),Gs=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})})})),qi=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:f,quickButtonProps:h,createQuickButton:g,tooltip:m="",createTooltip:y,icon:x,disabled:v,buttonProps:b=To.EmptyObject,disableHover:w,touchRippleRef:M,primary:k,children:j,sx:_,className:L,...T}=e,D=N3(),C=u.useMemo(()=>{const ee=(ae,we,se,J=se)=>{const ce=typeof o=="boolean"?null:o[ae];return typeof ce=="function"?ce(we):ce||(o?se:J)};return{outline:{color:ae=>ee("color",ae,ae.palette.divider,"transparent"),hoverColor:ae=>ee("hoverColor",ae,ae.palette.text?.primary,ae.palette.divider),focusColor:ae=>ee("focusColor",ae,ae.palette?.primary?.main)},active:D.palette.mode==="dark"?D.palette.text.secondary:D.palette.text.primary,text:D.palette.text.icon??D.palette.action.active}},[o,D]),[S,R]=u.useState(!1),[P,I]=u.useState(!1),[z,A]=u.useState(!1),O=u.useRef(null),N=u.useRef(null),F=ha({anchor:O.current,label:r,createPopupPanel:c,parentFloat:l,popperProps:d?.popperProps,onClose:()=>{R(!1),f?.()},onOpen:()=>{R(!0),p?.()}}),E=En(ee=>{a?.(ee),F.reference.close(0)},[a,F]),B=En(()=>{S?F.reference.close(0):F.reference.open(0)},[S,F,l,r]),H=u.useMemo(()=>{const ee={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:ne=>C.outline.color(ne),"&.Mui-focusVisible":{border:ne=>`1px solid ${C.outline.focusColor(ne)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>w?"transparent":void 0,backgroundColor:()=>w?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:ne=>C.outline.hoverColor(ne)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:ne=>C.outline.hoverColor(ne)},"&.left":{borderTopLeftRadius:ne=>`${ne.shape.borderRadius}px`,borderBottomLeftRadius:ne=>`${ne.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:ne=>C.outline.color(ne)},"&.right":{borderTopRightRadius:ne=>`${ne.shape.borderRadius}px`,borderBottomRightRadius:ne=>`${ne.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:ne=>`${ne.shape.borderRadius}px !important`}},ae={"&.Mui-selected":{backgroundColor:ne=>pt(ne.palette.primary.main,ne.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ne=>pt(ne.palette.primary.main,ne.palette.action.selectedOpacity+ne.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ne=>pt(ne.palette.primary.main,ne.palette.action.selectedOpacity)}}}},we={maxHeight:"100%","&.Mui-selected":{backgroundColor:ne=>pt(ne.palette.text.icon??ne.palette.action.active,ne.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ne=>pt(ne.palette.text.icon??ne.palette.action.active,ne.palette.action.selectedOpacity+ne.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ne=>pt(ne.palette.text.icon??ne.palette.action.active,ne.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:ne=>ne.palette.text.primary},backgroundColor:()=>w?"transparent":void 0,color:ne=>ne.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},se=To.mergeContentful(we,ee),J=To.mergeContentful(se,ae),ce=To.mergeContentful(we,ee);return{quickButtonStyling:se,openQuickButtonStyling:J,compoundStyling:ce,openCompoundStyling:To.mergeContentful(ce,ae)}},[C,w]),U=En(ee=>{const{children:ae,ref:we,...se}=ee;return s.jsx(di,{ref:we,...se,disableInteractive:!0,children:ae})},[]),Z=a||g,G=Z&&(h?.tooltip||h?.createTooltip),V=ee=>{const{tooltip:ae,createTooltip:we,sx:se,...J}=ee;let ce=s.jsx(Tr,{sx:{...se},component:"div",...J});return G&&(ce=(we??U)({title:S?"":ae??m,children:s.jsx("div",{children:ce})},S)),ce},le={onKeyDown:ee=>{ee.keyCode===xr.Space?B():ee.keyCode===xr.F4||ee.keyCode===xr.Down?F.reference.open(0):ee.keyCode===xr.Up&&F.reference.close(0)}};let re=s.jsx(s.Fragment,{});const ge=u.useMemo(()=>typeof x=="function"?x():x,[x]);if(Z){let ee=S?H.openQuickButtonStyling:H.quickButtonStyling;const ae=(g||V)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{F.reference.parent.closeChild()},onMouseDown:se=>{se.button===0&&(se.preventDefault(),E(se))},touchRippleRef:M,children:ge,...h,className:rr({"Mui-focusVisible":P||S,"Mui-selected":i,"Mui-hovered":z||S,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},h?.className),sx:{...H.quickButtonStyling,height:"100%",...h?.sx}});let we=r8(!0,n,S);G&&(we=(y??U)({title:S?"":m,children:we},S)),re=s.jsxs(s.Fragment,{children:[ae,s.jsx(Tr,{ref:N,component:"div",className:rr({"Mui-selected":S,"Mui-hovered":z||S,"Mui-disabled":v,"Mui-focusVisible":P||S,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...H.quickButtonStyling,...ee},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:se=>{se.button===0&&(se.preventDefault(),B())},children:we})]})}else{let ee=S?H.openCompoundStyling:H.compoundStyling;re=s.jsx(ii,{ref:N,tabIndex:-1,disabled:v,size:"small",icon:ge,className:rr({"Mui-selected":S||i,"Mui-hovered":z,"Mui-disabled":v,"Mui-focusVisible":P||S,bordered:!0,left:!0,right:!0}),sx:{...H.quickButtonStyling,...ee},onMouseDown:ae=>{ae.button===0&&(ae.preventDefault(),B())},children:r8(!1,n,S)})}const{className:Q,sx:xe,...be}=b;let Fe=s.jsx(Ae,{onFocus:()=>I(!0),onBlur:()=>I(!1),onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),...le,"aria-label":"split button",ref:O,tabIndex:v?void 0:0,className:rr(Q,"split-button-root",{"Mui-focusVisible":P||S,"Mui-selected":S||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:ee=>`${ee.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:ee=>`solid ${ee.palette.primary.main} 1px`,zIndex:2},...xe},...be,children:re});return G||(Fe=(y??U)({title:S?"":m,children:Fe},S)),s.jsxs(Ae,{className:rr(L,"popupIconButton"),ref:t,...T,sx:{zIndex:P||S?2:void 0,display:"flex",alignItems:"center",..._},children:[Fe,F.component]})}));qi.displayName="ExhibitPopupIconButton";const GD={},k1=u.memo(u.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:a,popupProps:l=GD,onPopupOpen:c,onPopupClose:d,quickButtonProps:p,createQuickButton:f,tooltip:h="",createTooltip:g,icon:m,disabled:y,touchRippleRef:x,primary:v,children:b,sx:w,...M}=e,[k,j]=u.useState(!1),[_,L]=u.useState(!1),[T,D]=u.useState(!1),[C,S]=u.useState(!1),R=u.useRef(null),P=u.useRef(null),I=u.useMemo(()=>{if(!l)return;const{popperProps:G}=l;return{placement:"right-start",offsets:[-4,-2],...G}},[l]),z=ha({anchor:R.current,label:o,createPopupPanel:a,parentFloat:i,popperProps:I,onClose:()=>{j(!1),d?.()},onOpen:()=>{j(!0),c?.()}}),A=En(G=>{G.button===0&&(r?.(G),z.reference.close(0))},[r]),O=s.jsx(Ax,{sx:{transform:()=>{}}}),N={"&.Mui-selected":{color:G=>G.palette.text.primary,"& svg * ":{color:G=>G.palette.text.primary}}},F=u.useCallback(G=>{const{children:V,ref:le,...re}=G;return s.jsx(di,{ref:le,...re,disableInteractive:!0,children:V})},[]),E=r||f,B=G=>{const{tooltip:V,createTooltip:le,...re}=G;return s.jsx(Gr,{icon:m,className:rr({"Mui-hovered":T}),sx:{flex:"1 1 100%",...N},...re,children:o})},H={onFocus:()=>{L(!0)},onBlur:()=>L(!1),onMouseOver:()=>{D(!0)},onMouseLeave:()=>{D(!1)},onMouseEnter:()=>{z.reference.open()},onMouseDown:G=>{G.button===0&&G.preventDefault()}};let U=s.jsx(s.Fragment,{});if(E){const G=(f||B)({tabIndex:-1,disabled:y,onMouseEnter:()=>{z.reference.parent.closeChild()},onMouseDown:V=>{V.button===0&&(V.preventDefault(),A(V))},className:rr("quick-left",{},p?.className),...p});U=s.jsxs(s.Fragment,{children:[G,s.jsx(wa,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),s.jsx(v1,{ref:P,className:rr({"Mui-selected":k,"Mui-hovered":T}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:V=>v?void 0:V.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:V=>V.palette.text.primary},...N},tabIndex:-1,disabled:y,...H,children:s.jsx(Ae,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:V=>v?void 0:V.palette.text.icon??V.palette.action.active},onMouseOver:V=>{V.preventDefault(),S(!0)},onMouseLeave:()=>{S(!1)},onClick:V=>{V.preventDefault(),k?z.reference.close():z.reference.open()},children:O})})]})}else U=s.jsxs(Gr,{ref:P,tabIndex:-1,disabled:y,icon:m,className:rr({"Mui-selected":k||n,"Mui-hovered":T}),sx:{flex:"1 1 100%",paddingRight:"0px",...N},onClick:G=>{G.preventDefault(),k?z.reference.close():z.reference.open()},...H,children:[s.jsx("div",{style:{flex:"1 1 100%"},children:o}),s.jsx(Ae,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:G=>v?void 0:G.palette.text.icon??G.palette.action.active},children:O})]});let Z=s.jsx(Ae,{"aria-label":"split button",ref:R,tabIndex:y?void 0:0,className:rr({"Mui-disabled":y,"Mui-selected":k,"Mui-focusVisible":_||k,"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},...M,children:U});return E&&!C&&(p?.tooltip||p?.createTooltip)&&(Z=(p?.createTooltip??F)({title:k?"":Z??p?.tooltip,children:Z},k)),s.jsxs(Ae,{ref:t,sx:{zIndex:_||k?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[Z,z.component]})})),kv=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})})})),E1=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 pt(d.palette.text.icon??d.palette.action.active,d.palette.action.selectedOpacity)}};let c=n;return c===null&&(c=s.jsx(Us,{})),c||(c=s.jsx(R3,{})),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 Ev(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 ki,is,ZD={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},Mv=u.createContext(void 0);(is=ki||(ki={})).SHOW="SHOW",is.HIDE="HIDE",is.UPDATE="UPDATE",is.DESTROY="DESTROY",is.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",is.UNKNOWN="UNKNOWN";var XD={};function YD(e,t){switch(t.type){case ki.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 ki.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 ki.UPDATE:var p,f=t.payload,h=f.id,g=f.props;return e[h]?Er({},e,((p={})[h]=Er({},e[h],{props:Er({},e[h].props,g)}),p)):e;case ki.DESTROY:var m=t.payload.id,y=Er({},e);return delete y[m],y;case ki.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 Lp="[ERROR]: Modal ID is missing",Tv=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("")},JD=["open"],QD=["showModal","destroyModalsByRootId"],a8={disableAutoDestroy:!1};function pd(e){e===void 0&&(e=a8);var t=Er({},a8,e).disableAutoDestroy,n=u.useContext(Mv)||ZD,o=n.showModal,r=n.destroyModalsByRootId,i=Ev(n,QD),a=u.useRef(Tv(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 _v=["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])"],Ru=_v.join(","),jv=typeof Element>"u",Rl=jv?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gd=!jv&&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},Iu=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)},Rv=function(e,t,n){if(Iu(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ru));return t&&Rl.call(e,Ru)&&o.unshift(e),o.filter(n)},Iv=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var a=i.shift();if(!Iu(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{Rl.call(a,Ru)&&o.filter(a)&&(n||!t.includes(a))&&r.push(a);var d=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),p=!Iu(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(d&&p){var f=e(d===!0?a.children:d.children,!0,o);o.flatten?r.push.apply(r,f):r.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return r},Pv=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")&&!Pv(e)?0:e.tabIndex;var t,n,o},eA=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ov=function(e){return e.tagName==="INPUT"},l8=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},Pu=function(e,t){return!(t.disabled||Iu(t)||(o=t,Ov(o)&&o.type==="hidden")||function(r,i){var a=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(r).visibility==="hidden")return!0;var c=Rl.call(r,"details>summary:first-of-type")?r.parentElement:r;if(Rl.call(c,"details:not([open]) *"))return!0;if(a&&a!=="full"&&a!=="legacy-full"){if(a==="non-zero-area")return l8(r)}else{if(typeof l=="function"){for(var d=r;r;){var p=r.parentElement,f=Gd(r);if(p&&!p.shadowRoot&&l(p)===!0)return l8(r);r=r.assignedSlot?r.assignedSlot:p||f===r.ownerDocument?p:f.host}r=d}if(function(h){var g,m,y,x,v=h&&Gd(h),b=(g=v)===null||g===void 0?void 0:g.host,w=!1;if(v&&v!==h)for(w=!!((m=b)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(b)||h!=null&&(x=h.ownerDocument)!==null&&x!==void 0&&x.contains(h));!w&&b;){var M,k,j;w=!((k=b=(M=v=Gd(b))===null||M===void 0?void 0:M.host)===null||k===void 0||(j=k.ownerDocument)===null||j===void 0||!j.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!!Rl.call(i,"fieldset[disabled] *")||!l.contains(r)}return!0}i=i.parentElement}return!1}(t));var n,o},bh=function(e,t){return!(Ov(o=n=t)&&o.type==="radio"&&!function(r){if(!r.name)return!0;var i,a=r.form||Gd(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 f=0;f<d.length;f++)if(d[f].checked&&d[f].form===p)return d[f]}(i,r.form);return!c||c===r}(n)||Xa(t)<0||!Pu(e,t));var n,o},tA=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},nA=function e(t){var n=[],o=[];return t.forEach(function(r,i){var a,l,c,d=!!r.scopeParent,p=d?r.scopeParent:r,f=(l=d,(c=Xa(a=p))<0&&l&&!Pv(a)?0:c),h=d?e(r.candidates):p;f===0?d?n.push.apply(n,h):n.push(p):o.push({documentOrder:i,tabIndex:f,item:r,isScope:d,content:h})}),o.sort(eA).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},Dv=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Iv([e],t.includeContainer,{filter:bh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:tA}):Rv(e,t.includeContainer,bh.bind(null,t)),nA(n)},Av=function(e,t){return(t=t||{}).getShadowRoot?Iv([e],t.includeContainer,{filter:Pu.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Rv(e,t.includeContainer,Pu.bind(null,t))},gl=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Rl.call(e,Ru)!==!1&&bh(t,e)},oA=_v.concat("iframe").join(","),Zd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Rl.call(e,oA)!==!1&&Pu(t,e)};const rA=Object.freeze(Object.defineProperty({__proto__:null,focusable:Av,getTabIndex:Xa,isFocusable:Zd,isTabbable:gl,tabbable:Dv},Symbol.toStringTag,{value:"Module"}));function zp(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 iA(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 s8(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 c8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(n),!0).forEach(function(o){iA(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var wc=function(e){return e?.key==="Tab"||e?.keyCode===9},aA=function(e){return wc(e)&&!e.shiftKey},lA=function(e){return wc(e)&&e.shiftKey},d8=function(e){return setTimeout(e,0)},A0=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},hd=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},sA=[];const cA=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||sA,i=c8({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:aA,isKeyBackward:lA},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(T,D,C){return T&&T[D]!==void 0?T[D]:i[C||D]},c=function(T,D){var C=typeof D?.composedPath=="function"?D.composedPath():void 0;return a.containerGroups.findIndex(function(S){var R=S.container,P=S.tabbableNodes;return R.contains(T)||C?.includes(R)||P.find(function(I){return I===T})})},d=function(T){var D,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=C.hasFallback,R=S!==void 0&&S,P=C.params,I=P===void 0?[]:P,z=i[T];if(typeof z=="function"&&(z=z.apply(void 0,function(O){if(Array.isArray(O))return zp(O)}(D=I)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(D)||function(O,N){if(O){if(typeof O=="string")return zp(O,N);var F={}.toString.call(O).slice(8,-1);return F==="Object"&&O.constructor&&(F=O.constructor.name),F==="Map"||F==="Set"?Array.from(O):F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F)?zp(O,N):void 0}}(D)||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 A=z;if(typeof z=="string"){try{A=o.querySelector(z)}catch(O){throw new Error("`".concat(T,'` appears to be an invalid selector; error="').concat(O.message,'"'))}if(!A&&!R)throw new Error("`".concat(T,"` as selector refers to no known node"))}return A},p=function(){var T=d("initialFocus",{hasFallback:!0});if(T===!1)return!1;if(T===void 0||T&&!Zd(T,i.tabbableOptions))if(c(o.activeElement)>=0)T=o.activeElement;else{var D=a.tabbableGroups[0];T=D&&D.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},f=function(){if(a.containerGroups=a.containers.map(function(T){var D=Dv(T,i.tabbableOptions),C=Av(T,i.tabbableOptions),S=D.length>0?D[0]:void 0,R=D.length>0?D[D.length-1]:void 0,P=C.find(function(A){return gl(A)}),I=C.slice().reverse().find(function(A){return gl(A)}),z=!!D.find(function(A){return Xa(A)>0});return{container:T,tabbableNodes:D,focusableNodes:C,posTabIndexesFound:z,firstTabbableNode:S,lastTabbableNode:R,firstDomTabbableNode:P,lastDomTabbableNode:I,nextTabbableNode:function(A){var O=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],N=D.indexOf(A);return N<0?O?C.slice(C.indexOf(A)+1).find(function(F){return gl(F)}):C.slice(0,C.indexOf(A)).reverse().find(function(F){return gl(F)}):D[N+(O?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.")},h=function(T){var D=T.activeElement;if(D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?h(D.shadowRoot):D},g=function(T){var D;T!==!1&&T!==h(document)&&(T&&T.focus?(T.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=T,(D=T).tagName&&D.tagName.toLowerCase()==="input"&&typeof D.select=="function"&&T.select()):g(p()))},m=function(T){var D=d("setReturnFocus",{params:[T]});return D||D!==!1&&T},y=function(T){var D=T.target,C=T.event,S=T.isBackward,R=S!==void 0&&S;D=D||hd(C),f();var P=null;if(a.tabbableGroups.length>0){var I=c(D,C),z=I>=0?a.containerGroups[I]:void 0;if(I<0)P=R?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(R){var A=a.tabbableGroups.findIndex(function(H){var U=H.firstTabbableNode;return D===U});if(A<0&&(z.container===D||Zd(D,i.tabbableOptions)&&!gl(D,i.tabbableOptions)&&!z.nextTabbableNode(D,!1))&&(A=I),A>=0){var O=A===0?a.tabbableGroups.length-1:A-1,N=a.tabbableGroups[O];P=Xa(D)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else wc(C)||(P=z.nextTabbableNode(D,!1))}else{var F=a.tabbableGroups.findIndex(function(H){var U=H.lastTabbableNode;return D===U});if(F<0&&(z.container===D||Zd(D,i.tabbableOptions)&&!gl(D,i.tabbableOptions)&&!z.nextTabbableNode(D))&&(F=I),F>=0){var E=F===a.tabbableGroups.length-1?0:F+1,B=a.tabbableGroups[E];P=Xa(D)>=0?B.firstTabbableNode:B.firstDomTabbableNode}else wc(C)||(P=z.nextTabbableNode(D))}}else P=d("fallbackFocus");return P},x=function(T){var D=hd(T);c(D,T)>=0||(A0(i.clickOutsideDeactivates,T)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):A0(i.allowOutsideClick,T)||T.preventDefault())},v=function(T){var D=hd(T),C=c(D,T)>=0;if(C||D instanceof Document)C&&(a.mostRecentlyFocusedNode=D);else{var S;T.stopImmediatePropagation();var R=!0;if(a.mostRecentlyFocusedNode)if(Xa(a.mostRecentlyFocusedNode)>0){var P=c(a.mostRecentlyFocusedNode),I=a.containerGroups[P].tabbableNodes;if(I.length>0){var z=I.findIndex(function(A){return A===a.mostRecentlyFocusedNode});z>=0&&(i.isKeyForward(a.recentNavEvent)?z+1<I.length&&(S=I[z+1],R=!1):z-1>=0&&(S=I[z-1],R=!1))}}else a.containerGroups.some(function(A){return A.tabbableNodes.some(function(O){return Xa(O)>0})})||(R=!1);else R=!1;R&&(S=y({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),g(S||a.mostRecentlyFocusedNode||p())}a.recentNavEvent=void 0},b=function(T){(i.isKeyForward(T)||i.isKeyBackward(T))&&function(D){var C=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=D;var S=y({event:D,isBackward:C});S&&(wc(D)&&D.preventDefault(),g(S))}(T,i.isKeyBackward(T))},w=function(T){var D;((D=T)==null?void 0:D.key)!=="Escape"&&D?.key!=="Esc"&&D?.keyCode!==27||A0(i.escapeDeactivates,T)===!1||(T.preventDefault(),n.deactivate())},M=function(T){var D=hd(T);c(D,T)>=0||A0(i.clickOutsideDeactivates,T)||A0(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},k=function(){if(a.active)return function(T,D){if(T.length>0){var C=T[T.length-1];C!==D&&C._setPausedState(!0)}var S=T.indexOf(D);S===-1||T.splice(S,1),T.push(D)}(r,n),a.delayInitialFocusTimer=i.delayInitialFocus?d8(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",M,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",w),n},j=function(){if(a.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",x,!0),o.removeEventListener("touchstart",x,!0),o.removeEventListener("click",M,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",w),n},_=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(T){T.some(function(D){return Array.from(D.removedNodes).some(function(C){return C===a.mostRecentlyFocusedNode})})&&g(p())}):void 0,L=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 D=l(T,"onActivate"),C=l(T,"onPostActivate"),S=l(T,"checkCanFocusTrap");S||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=h(o),D?.();var R=function(){S&&f(),k(),L(),C?.()};return S?(S(a.containers.concat()).then(R,R),this):(R(),this)},deactivate:function(T){if(!a.active)return this;var D,C,S,R=c8({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,j(),a.active=!1,a.paused=!1,L(),C=n,(S=(D=r).indexOf(C))!==-1&&D.splice(S,1),D.length>0&&!D[D.length-1]._isManuallyPaused()&&D[D.length-1]._setPausedState(!1);var P=l(R,"onDeactivate"),I=l(R,"onPostDeactivate"),z=l(R,"checkCanReturnFocus"),A=l(R,"returnFocus","returnFocusOnDeactivate");P?.();var O=function(){d8(function(){A&&g(m(a.nodeFocusedBeforeActivation)),I?.()})};return A&&z?(z(m(a.nodeFocusedBeforeActivation)).then(O,O),this):(O(),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 D=[].concat(T).filter(Boolean);return a.containers=D.map(function(C){return typeof C=="string"?o.querySelector(C):C}),a.active&&f(),L(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(T,D){if(a.paused===T)return this;if(a.paused=T,T){var C=l(D,"onPause"),S=l(D,"onPostPause");C?.(),j(),L(),S?.()}else{var R=l(D,"onUnpause"),P=l(D,"onPostUnpause");R?.(),f(),k(),L(),P?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),dA=Rb(cA),uA=Rb(rA);var u8,p8,pA=function(){if(p8)return u8;function e(f){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(f)}function t(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!f})()}function n(f){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(f)}function o(f,h){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,m){return g.__proto__=m,g})(f,h)}function r(f){var h=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)}(f);return e(h)=="symbol"?h:h+""}p8=1;var i=u,a=th(),l=dA.createFocusTrap,c=uA.isFocusable,d=function(f){function h(y){var x,v,b,w;(function(j,_){if(!(j instanceof _))throw new TypeError("Cannot call a class as a function")})(this,h),function(j,_,L){(_=r(_))in j?Object.defineProperty(j,_,{value:L,enumerable:!0,configurable:!0,writable:!0}):j[_]=L}((v=this,w=[y],b=n(b=h),x=function(j,_){if(_&&(e(_)=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(j)}(v,t()?Reflect.construct(b,w||[],n(v).constructor):b.apply(v,w))),"getNodeForOption",function(j){var _,L=(_=this.internalOptions[j])!==null&&_!==void 0?_:this.originalOptions[j];if(typeof L=="function"){for(var T=arguments.length,D=new Array(T>1?T-1:0),C=1;C<T;C++)D[C-1]=arguments[C];L=L.apply(void 0,D)}if(L===!0&&(L=void 0),!L){if(L===void 0||L===!1)return L;throw new Error("`".concat(j,"` was specified but was not a node, or did not return a node"))}var S,R=L;if(typeof L=="string"&&!(R=(S=this.getDocument())===null||S===void 0?void 0:S.querySelector(L)))throw new Error("`".concat(j,"` as selector refers to no known node"));return R}),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 M=y.focusTrapOptions;for(var k in M)Object.prototype.hasOwnProperty.call(M,k)&&(k!=="returnFocusOnDeactivate"&&k!=="onDeactivate"&&k!=="onPostDeactivate"&&k!=="checkCanReturnFocus"&&k!=="clickOutsideDeactivates"?x.internalOptions[k]=M[k]:x.originalOptions[k]=M[k]);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)}(h,f),g=h,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,M=w!==void 0&&w;b&&v.focus({preventScroll:M}),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},u8=d}();const hA=jb(pA);var h8,f8,L0={exports:{}},m8={},fd={exports:{}},$o={},dl={};function Ou(){return f8||(f8=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 g8,y8,La={};function vh(){if(y8)return $o;y8=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.addClassName=a,$o.addEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(d,p,h):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 f=c;do{if(o(f,d))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},$o.offsetXYFromParent=function(c,d,p){const f=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-f.left)/p,y:(c.clientY+d.scrollTop-f.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,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(d,p,h):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=Ou(),t=function(c){if(typeof WeakMap=="function")var d=new WeakMap;return function(p){if(p&&p.__esModule)return p;var f,h,g={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return g;if(f=d){if(f.has(p))return f.get(p);f.set(p,g)}for(const m in p)m!=="default"&&{}.hasOwnProperty.call(p,m)&&((h=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,m))&&(h.get||h.set)?f(g,m,h):g[m]=p[m]);return g}(c)}(function(){if(g8)return La;g8=1,Object.defineProperty(La,"__esModule",{value:!0}),La.browserPrefixToKey=p,La.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},La.default=void 0,La.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||f in h)return"";for(let g=0;g<c.length;g++)if(p(f,c[g])in h)return c[g];return""}function p(f,h){return h?`${h}${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}(f)}`:f}return La.default=d(),La}());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:f,y:h}=c,g=`translate(${f}${p},${h}${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 x8,Ji={};function b8(){if(x8)return Ji;x8=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Ji.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Ji.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}},Ji.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}},Ji.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 f;if(f=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(f instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=f,g=p.getComputedStyle(c),m=p.getComputedStyle(h);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)(h)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(h)-(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]},Ji.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)},Ji.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=Ou(),t=vh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Ji}var v8,w8,S8,C8,z0={},Fp={};function k8(){return v8||(v8=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=function(){}),Fp}var fA=function(){if(C8)return L0.exports;C8=1;const{default:e,DraggableCore:t}=(S8||(S8=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,M,k={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return k;if(w=v){if(w.has(b))return w.get(b);w.set(b,k)}for(const j in b)j!=="default"&&{}.hasOwnProperty.call(b,j)&&((M=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,j))&&(M.get||M.set)?w(k,j,M):k[j]=b[j]);return k}(x)}(u),r=h(th()),i=h(yo),a=function(){if(h8)return fd.exports;function x(b){var w,M,k="";if(typeof b=="string"||typeof b=="number")k+=b;else if(typeof b=="object")if(Array.isArray(b)){var j=b.length;for(w=0;w<j;w++)b[w]&&(M=x(b[w]))&&(k&&(k+=" "),k+=M)}else for(M in b)b[M]&&(k&&(k+=" "),k+=M);return k}function v(){for(var b,w,M=0,k="",j=arguments.length;M<j;M++)(b=arguments[M])&&(w=x(b))&&(k&&(k+=" "),k+=w);return k}return h8=1,fd.exports=v,fd.exports.clsx=v,fd.exports}(),l=vh(),c=b8(),d=Ou(),p=h(function(){if(w8)return z0;w8=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.default=void 0;var x=function(R){if(typeof WeakMap=="function")var P=new WeakMap;return function(I){if(I&&I.__esModule)return I;var z,A,O={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return O;if(z=P){if(z.has(I))return z.get(I);z.set(I,O)}for(const N in I)N!=="default"&&{}.hasOwnProperty.call(I,N)&&((A=(z=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,N))&&(A.get||A.set)?z(O,N,A):O[N]=I[N]);return O}(R)}(u),v=_(th()),b=_(yo),w=vh(),M=b8(),k=Ou(),j=_(k8());function _(R){return R&&R.__esModule?R:{default:R}}function L(R,P,I){return(P=typeof(z=function(A){if(typeof A!="object"||!A)return A;var O=A[Symbol.toPrimitive];if(O!==void 0){var N=O.call(A,"string");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(P))=="symbol"?z:z+"")in R?Object.defineProperty(R,P,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[P]=I,R;var z}const T={start:"touchstart",move:"touchmove",stop:"touchend"},D={start:"mousedown",move:"mousemove",stop:"mouseup"};let C=D,S=class extends x.Component{constructor(){super(...arguments),L(this,"dragging",!1),L(this,"lastX",NaN),L(this,"lastY",NaN),L(this,"touchIdentifier",null),L(this,"mounted",!1),L(this,"handleDragStart",R=>{if(this.props.onMouseDown(R),!this.props.allowAnyClick&&typeof R.button=="number"&&R.button!==0)return!1;const P=this.findDOMNode();if(!P||!P.ownerDocument||!P.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:I}=P;if(this.props.disabled||!(R.target instanceof I.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(R.target,this.props.handle,P)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(R.target,this.props.cancel,P))return;R.type!=="touchstart"||this.props.allowMobileScroll||R.preventDefault();const z=(0,w.getTouchIdentifier)(R);this.touchIdentifier=z;const A=(0,M.getControlPosition)(R,z,this);if(A==null)return;const{x:O,y:N}=A,F=(0,M.createCoreData)(this,O,N);(0,j.default)("DraggableCore: handleDragStart: %j",F),(0,j.default)("calling",this.props.onStart),this.props.onStart(R,F)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(I),this.dragging=!0,this.lastX=O,this.lastY=N,(0,w.addEvent)(I,C.move,this.handleDrag),(0,w.addEvent)(I,C.stop,this.handleDragStop))}),L(this,"handleDrag",R=>{const P=(0,M.getControlPosition)(R,this.touchIdentifier,this);if(P==null)return;let{x:I,y:z}=P;if(Array.isArray(this.props.grid)){let O=I-this.lastX,N=z-this.lastY;if([O,N]=(0,M.snapToGrid)(this.props.grid,O,N),!O&&!N)return;I=this.lastX+O,z=this.lastY+N}const A=(0,M.createCoreData)(this,I,z);if((0,j.default)("DraggableCore: handleDrag: %j",A),this.props.onDrag(R,A)!==!1&&this.mounted!==!1)this.lastX=I,this.lastY=z;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const O=document.createEvent("MouseEvents");O.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(O)}}),L(this,"handleDragStop",R=>{if(!this.dragging)return;const P=(0,M.getControlPosition)(R,this.touchIdentifier,this);if(P==null)return;let{x:I,y:z}=P;if(Array.isArray(this.props.grid)){let N=I-this.lastX||0,F=z-this.lastY||0;[N,F]=(0,M.snapToGrid)(this.props.grid,N,F),I=this.lastX+N,z=this.lastY+F}const A=(0,M.createCoreData)(this,I,z);if(this.props.onStop(R,A)===!1||this.mounted===!1)return!1;const O=this.findDOMNode();O&&this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(O.ownerDocument),(0,j.default)("DraggableCore: handleDragStop: %j",A),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,O&&((0,j.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(O.ownerDocument,C.move,this.handleDrag),(0,w.removeEvent)(O.ownerDocument,C.stop,this.handleDragStop))}),L(this,"onMouseDown",R=>(C=D,this.handleDragStart(R))),L(this,"onMouseUp",R=>(C=D,this.handleDragStop(R))),L(this,"onTouchStart",R=>(C=T,this.handleDragStart(R))),L(this,"onTouchEnd",R=>(C=T,this.handleDragStop(R)))}componentDidMount(){this.mounted=!0;const R=this.findDOMNode();R&&(0,w.addEvent)(R,T.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const R=this.findDOMNode();if(R){const{ownerDocument:P}=R;(0,w.removeEvent)(P,D.move,this.handleDrag),(0,w.removeEvent)(P,T.move,this.handleDrag),(0,w.removeEvent)(P,D.stop,this.handleDragStop),(0,w.removeEvent)(P,T.stop,this.handleDragStop),(0,w.removeEvent)(R,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(P)}}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 z0.default=S,L(S,"displayName","DraggableCore"),L(S,"propTypes",{allowAnyClick:v.default.bool,allowMobileScroll:v.default.bool,children:v.default.node.isRequired,disabled:v.default.bool,enableUserSelectHack:v.default.bool,offsetParent:function(R,P){if(R[P]&&R[P].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:k.dontSetMe,style:k.dontSetMe,transform:k.dontSetMe}),L(S,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),z0}()),f=h(k8());function h(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(M){if(typeof M!="object"||!M)return M;var k=M[Symbol.toPrimitive];if(k!==void 0){var j=k.call(M,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(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:M}=b;return!w||M&&w.x===M.x&&w.y===M.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:M}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(v){super(v),m(this,"onDragStart",(b,w)=>{if((0,f.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,f.default)("Draggable: onDrag: %j",w);const M=(0,c.createDraggableData)(this,w),k={x:M.x,y:M.y,slackX:0,slackY:0};if(this.props.bounds){const{x:j,y:_}=k;k.x+=this.state.slackX,k.y+=this.state.slackY;const[L,T]=(0,c.getBoundPosition)(this,k.x,k.y);k.x=L,k.y=T,k.slackX=this.state.slackX+(j-k.x),k.slackY=this.state.slackY+(_-k.y),M.x=k.x,M.y=k.y,M.deltaX=k.x-this.state.x,M.deltaY=k.y-this.state.y}if(this.props.onDrag(b,M)===!1)return!1;this.setState(k)}),m(this,"onDragStop",(b,w)=>{if(!this.state.dragging||this.props.onStop(b,(0,c.createDraggableData)(this,w))===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",w);const M={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:k,y:j}=this.props.position;M.x=k,M.y=j}this.setState(M)}),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:M,defaultClassName:k,defaultClassNameDragging:j,defaultClassNameDragged:_,position:L,positionOffset:T,scale:D,...C}=this.props;let S={},R=null;const P=!L||this.state.dragging,I=L||M,z={x:(0,c.canDragX)(this)&&P?this.state.x:I.x,y:(0,c.canDragY)(this)&&P?this.state.y:I.y};this.state.isElementSVG?R=(0,l.createSVGTransform)(z,T):S=(0,l.createCSSTransform)(z,T);const A=(0,a.clsx)(w.props.className||"",k,{[j]: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:A,style:{...w.props.style,...S},transform:R}))}}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})}(m8)),m8);return L0.exports=e,L0.exports.default=e,L0.exports.DraggableCore=t,L0.exports}();const mA=jb(fA),E8={x:0,y:0},gA=u.memo(u.forwardRef((e,t)=>{const{defaultPosition:n=E8,PaperComponent:o=Ti,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:a=".draggable-title",titleSize:l,rootSize:c,...d}=e,p=u.useRef(null),f=u.useMemo(()=>l&&c?{left:0,top:0,right:c.width-l.width,bottom:c.height-l.height}:null,[l,c]),[h,g]=u.useState(null),[m,y]=u.useState(null),[x,v]=u.useState(null);return u.useLayoutEffect(()=>{!h&&n&&g(n??E8)},[n]),u.useEffect(()=>{f&&h&&y({x:Math.max(0,Math.min(h.x,f.right)),y:Math.max(0,Math.min(h.y,f.bottom))})},[h,f]),s.jsx(mA,{nodeRef:p,handle:a,cancel:'[class*="MuiDialogContent-root"]',position:m,bounds:f??".MuiModal-root",onStop:r,onStart:(b,w)=>{const M=b;v({x:(M.clientX??M.touches?.[0]?.clientX)-w.x,y:(M.clientY??M.touches?.[0]?.clientY)-w.y})},onDrag:(b,w)=>{const M=b,k=M.clientX??M.touches?.[0]?.clientX,j=M.clientY??M.touches?.[0]?.clientY;g({x:k-x.x,y:j-x.y})},children:s.jsx(o,{ref:_u([p,t]),...d})})})),yA={x:"50",y:"50"},Lv=u.memo(u.forwardRef((e,t)=>{const n=function({props:ce,name:ne}){return function({props:Pe,name:Ee,defaultTheme:it,themeId:Ue}){let ke=function(_e=aP){return function(Xe=null){const Be=X.useContext(t0);return Be&&(ct=Be,Object.keys(ct).length!==0)?Be:Xe;var ct}(_e)}(it);return ke=ke[Ue]||ke,bP({theme:ke,name:Ee,props:Pe})}({props:ce,name:ne,defaultTheme:B3,themeId:I3})}({props:e,name:"MuiDialog"}),o=N3(),r={enter:.66*o.transitions.duration.enteringScreen,exit:.66*o.transitions.duration.leavingScreen},{title:i="SheetXL",key:a="draggable-window",onCancel:l,onDone:c,onShow:d,onShown:p,onHide:f,open:h,autoFocusSel:g,children:m,TransitionComponent:y=Sx,TransitionProps:x,transitionDuration:v=r,BackdropComponent:b=Cx,BackdropProps:w,PaperComponent:M=Ti,PaperProps:k,onBackdropClick:j,sx:_,className:L,onMouseDown:T,initialPosition:D=yA,isModal:C=!1,...S}=n,R=u.useRef(null),[P,I]=u.useState(null),[z,A]=u.useState(!1),[O,N]=u.useState(!1),F=u.useRef(null),[E,B]=Y7(),H=u.useRef(null),[U,Z]=Y7(),G=u.useRef(null);u.useEffect(()=>{P&&A(h)},[h,P]);const V=En(()=>{l?.(),A(!1)},[l]);u.useEffect(()=>{if(B.width===0&&B.height===0||P)return;const ce=G.current?.getBoundingClientRect(),ne=B.height-ce.height,Pe=B.width-ce.width;let Ee=.5*Pe,it=.5*ne;typeof D?.x=="number"?Ee=D.x:typeof D?.x=="string"&&(Ee=Pe*(parseFloat(D.x)/100)),typeof D?.y=="number"?it=D.y:typeof D?.y=="string"&&(it=ne*(parseFloat(D.y)/100)),I({x:Ee,y:it})},[B,Z]);const[le,re]=u.useState(!1),[ge,Q]=u.useState(null),[xe,be]=u.useState(null),Fe=En(ce=>{if(ge)return ge.focus(ce),!0;if(g){const ne=H.current?.querySelectorAll?.(g);if(ne&&ne.length>0)return ne[0]?.focus?.(ce),!0}return H.current?.focus?.(ce),!1},[ge,g]),ee=T2(t,()=>({focus:ce=>{Fe(ce)}}),[]),ae={...x,onExited:ce=>{c?.(null),x?.onExited?.(ce)},onExit:ce=>{const ne=xe;ne&&requestAnimationFrame(()=>{ee.current?.contains(document.activeElement)&&ne.focus()}),f?.(),N(!1),x?.onExit?.(ce)},onEntered:(ce,ne)=>{d?.(),x?.onEntered?.(ce,ne)},onEntering:(ce,ne)=>{N(!0),p?.(ee.current)}};u.useEffect(()=>{O&&Fe()},[O]);const we=s.jsx(hA,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:R,active:O,children:s.jsx(y,{in:z,timeout:v,role:"presentation",...ae,children:s.jsx(Ae,{className:"MuiDialog-container",ref:H,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:ce=>{ce.which===xr.Escape&&(V(),F.current?.start(ce,{center:!1}),setTimeout(()=>F.current?.stop(ce),180)),ce.stopPropagation()},children:s.jsxs(gA,{ref:_u([G,t]),className:rr({"Mui-focusVisible":le},L),sx:{"& *":ce=>Y3(ce),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:ce=>`solid ${pt(ce.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:ce=>`solid ${pt(ce.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",..._},defaultPosition:P,titleSize:Z,rootSize:B,PaperComponent:M,...S,...k,children:[i?s.jsx(Mx,{className:rr({"Mui-selected":le},"draggable-title"),sx:{cursor:"move",display:"flex",color:ce=>ce.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:ce=>`${ce.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:ce=>ce.transitions.duration.shortest/2+"ms"},backgroundColor:ce=>pt(ce.palette.action.hover,.03)},ref:U,children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:ce=>ce.spacing(1),marginLeft:ce=>ce.spacing(1),marginRight:ce=>ce.spacing(1)},children:[s.jsx(Ae,{sx:{flex:"1 1 100%",paddingLeft:ce=>ce.spacing(1)},children:i}),s.jsx(br,{label:"Close",children:s.jsx(Tr,{"aria-label":"close",sx:{color:ce=>ce.palette.text.icon??ce.palette.action.active},touchRippleRef:F,onPointerDown:ce=>{F.current?.start(ce,{center:!1}),ce.stopPropagation(),ce.preventDefault()},onPointerUp:V,children:s.jsx(M3,{})})})]})}):null,m]})})})});let se=null;C&&(se=s.jsx(b,{...w,open:z,onMouseDown:ce=>{V(),w?.onMouseDown?.(ce)},onClick:ce=>{j?.(ce),w?.onClick?.(ce)},sx:{pointerEvents:"auto",...w?.sx}}));const{getPortalContainer:J}=U3();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:_u([ee,E]),onPointerDown:ce=>{le&&(ce.target===H.current||ce.target.tabIndex<0)&&H.current?.contains(document.activeElement)},onContextMenu:ce=>{ce.isPropagationStopped()||ce.preventDefault()},onFocus:ce=>{!le&&(ce.target===H.current||ce.target.tabIndex<0)&&setTimeout(()=>{Fe()},100),R.current?.focusTrap?.unpause(),re(!0),H.current?.contains(ce.target)&&ce.target!==H.current&&Q(ce.target),ce.relatedTarget&&!xe&&be(ce.relatedTarget)},onBlur:ce=>{ee?.current?.contains(ce.relatedTarget)||(be(null),R.current?.focusTrap?.pause(),re(!1))},children:[se,we]}),J(),a+"")}));var Mi=typeof window<"u"?window:{screen:{},navigator:{}},Zs=(Mi.matchMedia||function(){return{matches:!1}}).bind(Mi),xA={get passive(){return!0}},M8=function(){};Mi.addEventListener&&Mi.addEventListener("p",M8,xA),Mi.removeEventListener&&Mi.removeEventListener("p",M8,!1);var Q3="ontouchstart"in Mi,bA=Q3||"TouchEvent"in Mi&&Zs("(any-pointer: coarse)").matches,T8=(Mi.navigator.maxTouchPoints||0)>0||bA,zv=Mi.navigator.userAgent||"",vA=Zs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(zv)&&Math.min(Mi.screen.width||0,Mi.screen.height||0)>=768,Fv=(Zs("(pointer: coarse)").matches||!Zs("(pointer: fine)").matches&&Q3)&&!/Windows.*Firefox/.test(zv),wA=Zs("(any-pointer: fine)").matches||Zs("(any-hover: hover)").matches||vA||!Q3,_8=!T8||!wA&&Fv?T8?"touchOnly":"mouseOnly":"hybrid",SA=_8==="mouseOnly"?"mouse":_8==="touchOnly"||Fv?"touch":"mouse",Sc=e=>e.type==="checkbox",El=e=>e instanceof Date,Lr=e=>e==null;const Bv=e=>typeof e=="object";var Zo=e=>!Lr(e)&&!Array.isArray(e)&&Bv(e)&&!El(e),ef=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(ef&&(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 j2=e=>/^\w*$/.test(e),Jo=e=>e===void 0,wh=e=>Array.isArray(e)?e.filter(Boolean):[],tf=e=>wh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Kt=(e,t,n)=>{if(!t||!Zo(e))return n;const o=(j2(t)?[t]:tf(t)).reduce((r,i)=>Lr(r)?r:r[i],e);return Jo(o)||o===e?Jo(e[t])?n:e[t]:o},oa=e=>typeof e=="boolean",xo=(e,t,n)=>{let o=-1;const r=j2(t)?[t]:tf(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 Nv="onChange",$v="onSubmit",oc="all",j8="pattern",R8="required",Vv=u.createContext(null);Vv.displayName="HookFormContext";const CA=e=>{const{children:t,...n}=e;return u.createElement(Vv.Provider,{value:n},t)},kA=typeof window<"u"?X.useLayoutEffect:X.useEffect;var sa=e=>typeof e=="string",EA=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},rc=e=>Array.isArray(e)?e:[e],I8=()=>{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=[]}}},Sh=e=>Lr(e)||!Bv(e);function qa(e,t){if(Sh(e)||Sh(t))return e===t;if(El(e)&&El(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(El(i)&&El(a)||Zo(i)&&Zo(a)||Array.isArray(i)&&Array.isArray(a)?!qa(i,a):i!==a)return!1}}return!0}var $r=e=>Zo(e)&&!Object.keys(e).length,nf=e=>e.type==="file",$i=e=>typeof e=="function",Du=e=>{if(!ef)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hv=e=>e.type==="select-multiple",of=e=>e.type==="radio",Bp=e=>Du(e)&&e.isConnected;function nr(e,t){const n=Array.isArray(t)?t:j2(t)?[t]:tf(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)&&$r(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 Wv=e=>{for(const t in e)if($i(e[t]))return!0;return!1};function Au(e,t={}){const n=Array.isArray(e);if(Zo(e)||n)for(const o in e)Array.isArray(e[o])||Zo(e[o])&&!Wv(e[o])?(t[o]=Array.isArray(e[o])?[]:{},Au(e[o],t[o])):Lr(e[o])||(t[o]=!0);return t}function Uv(e,t,n){const o=Array.isArray(e);if(Zo(e)||o)for(const r in e)Array.isArray(e[r])||Zo(e[r])&&!Wv(e[r])?Jo(t)||Sh(n[r])?n[r]=Array.isArray(e[r])?Au(e[r],[]):{...Au(e[r])}:Uv(e[r],Lr(t)?{}:t[r],n[r]):n[r]=!qa(e[r],t[r]);return n}var F0=(e,t)=>Uv(e,t,Au(t));const P8={value:!1,isValid:!1},O8={value:!0,isValid:!0};var qv=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===""?O8:{value:e[0].value,isValid:!0}:O8:P8}return P8},Kv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Jo(e)?e:t?e===""?NaN:e&&+e:n&&sa(e)?new Date(e):o?o(e):e;const D8={isValid:!1,value:null};var Gv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,D8):D8;function A8(e){const t=e.ref;return nf(t)?t.files:of(t)?Gv(e.refs).value:Hv(t)?[...t.selectedOptions].map(({value:n})=>n):Sc(t)?qv(e.refs).value:Kv(Jo(t.value)?e.ref.value:t.value,e)}var Lu=e=>e instanceof RegExp,B0=e=>Jo(e)?e:Lu(e)?e.source:Zo(e)?Lu(e.value)?e.value.source:e.value:e,L8=e=>({isOnSubmit:!e||e===$v,isOnBlur:e==="onBlur",isOnChange:e===Nv,isOnAll:e===oc,isOnTouch:e==="onTouched"});const z8="AsyncFunction";var MA=e=>!!e&&!!e.validate&&!!($i(e.validate)&&e.validate.constructor.name===z8||Zo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===z8)),F8=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Cc=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=Kt(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(Cc(l,t))break}else if(Zo(l)&&Cc(l,t))break}}};function B8(e,t,n){const o=Kt(e,n);if(o||j2(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),a=Kt(t,i),l=Kt(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 TA=(e,t,n)=>{const o=rc(Kt(e,n));return xo(o,"root",t[n]),xo(e,n,o),e},Xd=e=>sa(e);function N8(e,t,n="validate"){if(Xd(e)||Array.isArray(e)&&e.every(Xd)||oa(e)&&!e)return{type:n,message:Xd(e)?e:"",ref:t}}var as=e=>Zo(e)&&!Lu(e)?e:{value:e,message:""},$8=async(e,t,n,o,r,i)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:p,min:f,max:h,pattern:g,validate:m,name:y,valueAsNumber:x,mount:v}=e._f,b=Kt(n,y);if(!v||t.has(y))return{};const w=l?l[0]:a,M=S=>{r&&w.reportValidity&&(w.setCustomValidity(oa(S)?"":S||""),w.reportValidity())},k={},j=of(a),_=Sc(a),L=j||_,T=(x||nf(a))&&Jo(a.value)&&Jo(b)||Du(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,D=EA.bind(null,y,o,k),C=(S,R,P,I="maxLength",z="minLength")=>{const A=S?R:P;k[y]={type:S?I:z,message:A,ref:a,...D(S?I:z,A)}};if(i?!Array.isArray(b)||!b.length:c&&(!L&&(T||Lr(b))||oa(b)&&!b||_&&!qv(l).isValid||j&&!Gv(l).isValid)){const{value:S,message:R}=Xd(c)?{value:!!c,message:c}:as(c);if(S&&(k[y]={type:R8,message:R,ref:w,...D(R8,R)},!o))return M(R),k}if(!(T||Lr(f)&&Lr(h))){let S,R;const P=as(h),I=as(f);if(Lr(b)||isNaN(b)){const z=a.valueAsDate||new Date(b),A=F=>new Date(new Date().toDateString()+" "+F),O=a.type=="time",N=a.type=="week";sa(P.value)&&b&&(S=O?A(b)>A(P.value):N?b>P.value:z>new Date(P.value)),sa(I.value)&&b&&(R=O?A(b)<A(I.value):N?b<I.value:z<new Date(I.value))}else{const z=a.valueAsNumber||b&&+b;Lr(P.value)||(S=z>P.value),Lr(I.value)||(R=z<I.value)}if((S||R)&&(C(!!S,P.message,I.message,"max","min"),!o))return M(k[y].message),k}if((d||p)&&!T&&(sa(b)||i&&Array.isArray(b))){const S=as(d),R=as(p),P=!Lr(S.value)&&b.length>+S.value,I=!Lr(R.value)&&b.length<+R.value;if((P||I)&&(C(P,S.message,R.message),!o))return M(k[y].message),k}if(g&&!T&&sa(b)){const{value:S,message:R}=as(g);if(Lu(S)&&!b.match(S)&&(k[y]={type:j8,message:R,ref:a,...D(j8,R)},!o))return M(R),k}if(m){if($i(m)){const S=N8(await m(b,n),w);if(S&&(k[y]={...S,...D("validate",S.message)},!o))return M(S.message),k}else if(Zo(m)){let S={};for(const R in m){if(!$r(S)&&!o)break;const P=N8(await m[R](b,n),w,R);P&&(S={...P,...D(R,P.message)},M(P.message),o&&(k[y]=S))}if(!$r(S)&&(k[y]={ref:w,...S},!o))return k}}return M(!0),k};const _A={mode:$v,reValidateMode:Nv,shouldFocusError:!0},jA=["Ok","Cancel"],Ch=u.memo(u.forwardRef((e,t)=>{const{description:n,icon:o,onCancel:r,onOption:i,onDone:a,onValidateOption:l,createOptionsButton:c,options:d=jA,autoFocusSel:p=".defaultOption",defaultOption:f=d[0],cancelOption:h="Cancel",children:g,...m}=e,y=function(C={}){const S=u.useRef(void 0),R=u.useRef(void 0),[P,I]=u.useState({isDirty:!1,isValidating:!1,isLoading:$i(C.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:C.errors||{},disabled:C.disabled||!1,isReady:!1,defaultValues:$i(C.defaultValues)?void 0:C.defaultValues});if(!S.current)if(C.formControl)S.current={...C.formControl,formState:P},C.defaultValues&&!$i(C.defaultValues)&&C.formControl.reset(C.defaultValues,C.resetOptions);else{const{formControl:A,...O}=function(N={}){let F={..._A,...N},E={submitCount:0,isDirty:!1,isReady:!1,isLoading:$i(F.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:F.errors||{},disabled:F.disabled||!1};const B={};let H,U=(Zo(F.defaultValues)||Zo(F.values))&&Cr(F.defaultValues||F.values)||{},Z=F.shouldUnregister?{}:Cr(U),G={action:!1,mount:!1,watch:!1},V={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},le=0;const re={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let ge={...re};const Q={array:I8(),state:I8()},xe=F.criteriaMode===oc,be=async K=>{if(!F.disabled&&(re.isValid||ge.isValid||K)){const W=F.resolver?$r((await we()).errors):await se(B,!0);W!==E.isValid&&Q.state.next({isValid:W})}},Fe=(K,W)=>{!F.disabled&&(re.isValidating||re.validatingFields||ge.isValidating||ge.validatingFields)&&((K||Array.from(V.mount)).forEach(te=>{te&&(W?xo(E.validatingFields,te,W):nr(E.validatingFields,te))}),Q.state.next({validatingFields:E.validatingFields,isValidating:!$r(E.validatingFields)}))},ee=(K,W,te,oe)=>{const ue=Kt(B,K);if(ue){const ie=Kt(Z,K,Jo(te)?Kt(U,K):te);Jo(ie)||oe&&oe.defaultChecked||W?xo(Z,K,W?ie:A8(ue._f)):ne(K,ie),G.mount&&be()}},ae=(K,W,te,oe,ue)=>{let ie=!1,pe=!1;const fe={name:K};if(!F.disabled){if(!te||oe){(re.isDirty||ge.isDirty)&&(pe=E.isDirty,E.isDirty=fe.isDirty=J(),ie=pe!==fe.isDirty);const ye=qa(Kt(U,K),W);pe=!!Kt(E.dirtyFields,K),ye?nr(E.dirtyFields,K):xo(E.dirtyFields,K,!0),fe.dirtyFields=E.dirtyFields,ie=ie||(re.dirtyFields||ge.dirtyFields)&&pe!==!ye}if(te){const ye=Kt(E.touchedFields,K);ye||(xo(E.touchedFields,K,te),fe.touchedFields=E.touchedFields,ie=ie||(re.touchedFields||ge.touchedFields)&&ye!==te)}ie&&ue&&Q.state.next(fe)}return ie?fe:{}},we=async K=>{Fe(K,!0);const W=await F.resolver(Z,F.context,((te,oe,ue,ie)=>{const pe={};for(const fe of te){const ye=Kt(oe,fe);ye&&xo(pe,fe,ye._f)}return{criteriaMode:ue,names:[...te],fields:pe,shouldUseNativeValidation:ie}})(K||V.mount,B,F.criteriaMode,F.shouldUseNativeValidation));return Fe(K),W},se=async(K,W,te={valid:!0})=>{for(const oe in K){const ue=K[oe];if(ue){const{_f:ie,...pe}=ue;if(ie){const fe=V.array.has(ie.name),ye=ue._f&&MA(ue._f);ye&&re.validatingFields&&Fe([oe],!0);const De=await $8(ue,V.disabled,Z,xe,F.shouldUseNativeValidation&&!W,fe);if(ye&&re.validatingFields&&Fe([oe]),De[ie.name]&&(te.valid=!1,W))break;!W&&(Kt(De,ie.name)?fe?TA(E.errors,De,ie.name):xo(E.errors,ie.name,De[ie.name]):nr(E.errors,ie.name))}!$r(pe)&&await se(pe,W,te)}}return te.valid},J=(K,W)=>!F.disabled&&(K&&W&&xo(Z,K,W),!qa(_e(),U)),ce=(K,W,te)=>{return oe=K,ue=V,ie={...G.mount?Z:Jo(W)?U:sa(K)?{[K]:W}:W},pe=te,fe=W,sa(oe)?(pe&&ue.watch.add(oe),Kt(ie,oe,fe)):Array.isArray(oe)?oe.map(ye=>(pe&&ue.watch.add(ye),Kt(ie,ye))):(pe&&(ue.watchAll=!0),ie);var oe,ue,ie,pe,fe},ne=(K,W,te={})=>{const oe=Kt(B,K);let ue=W;if(oe){const ie=oe._f;ie&&(!ie.disabled&&xo(Z,K,Kv(W,ie)),ue=Du(ie.ref)&&Lr(W)?"":W,Hv(ie.ref)?[...ie.ref.options].forEach(pe=>pe.selected=ue.includes(pe.value)):ie.refs?Sc(ie.ref)?ie.refs.forEach(pe=>{pe.defaultChecked&&pe.disabled||(Array.isArray(ue)?pe.checked=!!ue.find(fe=>fe===pe.value):pe.checked=ue===pe.value||!!ue)}):ie.refs.forEach(pe=>pe.checked=pe.value===ue):nf(ie.ref)?ie.ref.value="":(ie.ref.value=ue,ie.ref.type||Q.state.next({name:K,values:Cr(Z)})))}(te.shouldDirty||te.shouldTouch)&&ae(K,ue,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&ke(K)},Pe=(K,W,te)=>{for(const oe in W){if(!W.hasOwnProperty(oe))return;const ue=W[oe],ie=K+"."+oe,pe=Kt(B,ie);(V.array.has(K)||Zo(ue)||pe&&!pe._f)&&!El(ue)?Pe(ie,ue,te):ne(ie,ue,te)}},Ee=(K,W,te={})=>{const oe=Kt(B,K),ue=V.array.has(K),ie=Cr(W);xo(Z,K,ie),ue?(Q.array.next({name:K,values:Cr(Z)}),(re.isDirty||re.dirtyFields||ge.isDirty||ge.dirtyFields)&&te.shouldDirty&&Q.state.next({name:K,dirtyFields:F0(U,Z),isDirty:J(K,ie)})):!oe||oe._f||Lr(ie)?ne(K,ie,te):Pe(K,ie,te),F8(K,V)&&Q.state.next({...E}),Q.state.next({name:G.mount?K:void 0,values:Cr(Z)})},it=async K=>{G.mount=!0;const W=K.target;let te=W.name,oe=!0;const ue=Kt(B,te),ie=Ve=>{oe=Number.isNaN(Ve)||El(Ve)&&isNaN(Ve.getTime())||qa(Ve,Kt(Z,te,Ve))},pe=L8(F.mode),fe=L8(F.reValidateMode);if(ue){let Ve,Je;const ot=W.type?A8(ue._f):Zo(De=K)&&De.target?Sc(De.target)?De.target.checked:De.target.value:De,tt=K.type==="blur"||K.type==="focusout",Lt=!((ye=ue._f).mount&&(ye.required||ye.min||ye.max||ye.maxLength||ye.minLength||ye.pattern||ye.validate)||F.resolver||Kt(E.errors,te)||ue._f.deps)||((Jt,Qt,rn,yn,dn)=>!dn.isOnAll&&(!rn&&dn.isOnTouch?!(Qt||Jt):(rn?yn.isOnBlur:dn.isOnBlur)?!Jt:!(rn?yn.isOnChange:dn.isOnChange)||Jt))(tt,Kt(E.touchedFields,te),E.isSubmitted,fe,pe),At=F8(te,V,tt);xo(Z,te,ot),tt?(ue._f.onBlur&&ue._f.onBlur(K),H&&H(0)):ue._f.onChange&&ue._f.onChange(K);const _t=ae(te,ot,tt),Yt=!$r(_t)||At;if(!tt&&Q.state.next({name:te,type:K.type,values:Cr(Z)}),Lt)return(re.isValid||ge.isValid)&&(F.mode==="onBlur"?tt&&be():tt||be()),Yt&&Q.state.next({name:te,...At?{}:_t});if(!tt&&At&&Q.state.next({...E}),F.resolver){const{errors:Jt}=await we([te]);if(ie(ot),oe){const Qt=B8(E.errors,B,te),rn=B8(Jt,B,Qt.name||te);Ve=rn.error,te=rn.name,Je=$r(Jt)}}else Fe([te],!0),Ve=(await $8(ue,V.disabled,Z,xe,F.shouldUseNativeValidation))[te],Fe([te]),ie(ot),oe&&(Ve?Je=!1:(re.isValid||ge.isValid)&&(Je=await se(B,!0)));oe&&(ue._f.deps&&ke(ue._f.deps),((Jt,Qt,rn,yn)=>{const dn=Kt(E.errors,Jt),kt=(re.isValid||ge.isValid)&&oa(Qt)&&E.isValid!==Qt;var xn;if(F.delayError&&rn?(xn=()=>{return tn=Jt,_n=rn,xo(E.errors,tn,_n),void Q.state.next({errors:E.errors});var tn,_n},H=tn=>{clearTimeout(le),le=setTimeout(xn,tn)},H(F.delayError)):(clearTimeout(le),H=null,rn?xo(E.errors,Jt,rn):nr(E.errors,Jt)),(rn?!qa(dn,rn):dn)||!$r(yn)||kt){const tn={...yn,...kt&&oa(Qt)?{isValid:Qt}:{},errors:E.errors,name:Jt};E={...E,...tn},Q.state.next(tn)}})(te,Je,Ve,_t))}var ye,De},Ue=(K,W)=>{if(Kt(E.errors,W)&&K.focus)return K.focus(),1},ke=async(K,W={})=>{let te,oe;const ue=rc(K);if(F.resolver){const ie=await(async pe=>{const{errors:fe}=await we(pe);if(pe)for(const ye of pe){const De=Kt(fe,ye);De?xo(E.errors,ye,De):nr(E.errors,ye)}else E.errors=fe;return fe})(Jo(K)?K:ue);te=$r(ie),oe=K?!ue.some(pe=>Kt(ie,pe)):te}else K?(oe=(await Promise.all(ue.map(async ie=>{const pe=Kt(B,ie);return await se(pe&&pe._f?{[ie]:pe}:pe)}))).every(Boolean),(oe||E.isValid)&&be()):oe=te=await se(B);return Q.state.next({...!sa(K)||(re.isValid||ge.isValid)&&te!==E.isValid?{}:{name:K},...F.resolver||!K?{isValid:te}:{},errors:E.errors}),W.shouldFocus&&!oe&&Cc(B,Ue,K?ue:V.mount),oe},_e=K=>{const W={...G.mount?Z:U};return Jo(K)?W:sa(K)?Kt(W,K):K.map(te=>Kt(W,te))},Xe=(K,W)=>({invalid:!!Kt((W||E).errors,K),isDirty:!!Kt((W||E).dirtyFields,K),error:Kt((W||E).errors,K),isValidating:!!Kt(E.validatingFields,K),isTouched:!!Kt((W||E).touchedFields,K)}),Be=(K,W,te)=>{const oe=(Kt(B,K,{_f:{}})._f||{}).ref,ue=Kt(E.errors,K)||{},{ref:ie,message:pe,type:fe,...ye}=ue;xo(E.errors,K,{...ye,...W,ref:oe}),Q.state.next({name:K,errors:E.errors,isValid:!1}),te&&te.shouldFocus&&oe&&oe.focus&&oe.focus()},ct=K=>Q.state.subscribe({next:W=>{var te,oe,ue;te=K.name,oe=W.name,ue=K.exact,te&&oe&&te!==oe&&!rc(te).some(ie=>ie&&(ue?ie===oe:ie.startsWith(oe)||oe.startsWith(ie)))||!((ie,pe,fe,ye)=>{fe(ie);const{name:De,...Ve}=ie;return $r(Ve)||Object.keys(Ve).length>=Object.keys(pe).length||Object.keys(Ve).find(Je=>pe[Je]===(!ye||oc))})(W,K.formState||re,Le,K.reRenderRoot)||K.callback({values:{...Z},...E,...W})}}).unsubscribe,et=(K,W={})=>{for(const te of K?rc(K):V.mount)V.mount.delete(te),V.array.delete(te),W.keepValue||(nr(B,te),nr(Z,te)),!W.keepError&&nr(E.errors,te),!W.keepDirty&&nr(E.dirtyFields,te),!W.keepTouched&&nr(E.touchedFields,te),!W.keepIsValidating&&nr(E.validatingFields,te),!F.shouldUnregister&&!W.keepDefaultValue&&nr(U,te);Q.state.next({values:Cr(Z)}),Q.state.next({...E,...W.keepDirty?{isDirty:J()}:{}}),!W.keepIsValid&&be()},he=({disabled:K,name:W})=>{(oa(K)&&G.mount||K||V.disabled.has(W))&&(K?V.disabled.add(W):V.disabled.delete(W))},Ye=(K,W={})=>{let te=Kt(B,K);const oe=oa(W.disabled)||oa(F.disabled);return xo(B,K,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:K}},name:K,mount:!0,...W}}),V.mount.add(K),te?he({disabled:oa(W.disabled)?W.disabled:F.disabled,name:K}):ee(K,!0,W.value),{...oe?{disabled:W.disabled||F.disabled}:{},...F.progressive?{required:!!W.required,min:B0(W.min),max:B0(W.max),minLength:B0(W.minLength),maxLength:B0(W.maxLength),pattern:B0(W.pattern)}:{},name:K,onChange:it,onBlur:it,ref:ue=>{if(ue){Ye(K,W),te=Kt(B,K);const De=Jo(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,Ve=of(ye=De)||Sc(ye),Je=te._f.refs||[];if(Ve?Je.find(ot=>ot===De):De===te._f.ref)return;xo(B,K,{_f:{...te._f,...Ve?{refs:[...Je.filter(Bp),De,...Array.isArray(Kt(U,K))?[{}]:[]],ref:{type:De.type,name:K}}:{ref:De}}}),ee(K,!1,void 0,De)}else te=Kt(B,K,{}),te._f&&(te._f.mount=!1),(F.shouldUnregister||W.shouldUnregister)&&(ie=V.array,pe=K,!ie.has((fe=pe).substring(0,fe.search(/\.\d+(\.|$)/))||fe)||!G.action)&&V.unMount.add(K);var ie,pe,fe,ye}}},Se=()=>F.shouldFocusError&&Cc(B,Ue,V.mount),Ie=(K,W)=>async te=>{let oe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let ue=Cr(Z);if(Q.state.next({isSubmitting:!0}),F.resolver){const{errors:ie,values:pe}=await we();E.errors=ie,ue=pe}else await se(B);if(V.disabled.size)for(const ie of V.disabled)xo(ue,ie,void 0);if(nr(E.errors,"root"),$r(E.errors)){Q.state.next({errors:{}});try{await K(ue,te)}catch(ie){oe=ie}}else W&&await W({...E.errors},te),Se(),setTimeout(Se);if(Q.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(E.errors)&&!oe,submitCount:E.submitCount+1,errors:E.errors}),oe)throw oe},de=(K,W={})=>{const te=K?Cr(K):U,oe=Cr(te),ue=$r(K),ie=ue?U:oe;if(W.keepDefaultValues||(U=te),!W.keepValues){if(W.keepDirtyValues){const pe=new Set([...V.mount,...Object.keys(F0(U,Z))]);for(const fe of Array.from(pe))Kt(E.dirtyFields,fe)?xo(ie,fe,Kt(Z,fe)):Ee(fe,Kt(ie,fe))}else{if(ef&&Jo(K))for(const pe of V.mount){const fe=Kt(B,pe);if(fe&&fe._f){const ye=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(Du(ye)){const De=ye.closest("form");if(De){De.reset();break}}}}for(const pe of V.mount)Ee(pe,Kt(ie,pe))}Z=Cr(ie),Q.array.next({values:{...ie}}),Q.state.next({values:{...ie}})}V={mount:W.keepDirtyValues?V.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},G.mount=!re.isValid||!!W.keepIsValid||!!W.keepDirtyValues,G.watch=!!F.shouldUnregister,Q.state.next({submitCount:W.keepSubmitCount?E.submitCount:0,isDirty:!ue&&(W.keepDirty?E.isDirty:!(!W.keepDefaultValues||qa(K,U))),isSubmitted:!!W.keepIsSubmitted&&E.isSubmitted,dirtyFields:ue?{}:W.keepDirtyValues?W.keepDefaultValues&&Z?F0(U,Z):E.dirtyFields:W.keepDefaultValues&&K?F0(U,K):W.keepDirty?E.dirtyFields:{},touchedFields:W.keepTouched?E.touchedFields:{},errors:W.keepErrors?E.errors:{},isSubmitSuccessful:!!W.keepIsSubmitSuccessful&&E.isSubmitSuccessful,isSubmitting:!1})},Oe=(K,W)=>de($i(K)?K(Z):K,W),Le=K=>{E={...E,...K}},je={control:{register:Ye,unregister:et,getFieldState:Xe,handleSubmit:Ie,setError:Be,_subscribe:ct,_runSchema:we,_focusError:Se,_getWatch:ce,_getDirty:J,_setValid:be,_setFieldArray:(K,W=[],te,oe,ue=!0,ie=!0)=>{if(oe&&te&&!F.disabled){if(G.action=!0,ie&&Array.isArray(Kt(B,K))){const ye=te(Kt(B,K),oe.argA,oe.argB);ue&&xo(B,K,ye)}if(ie&&Array.isArray(Kt(E.errors,K))){const ye=te(Kt(E.errors,K),oe.argA,oe.argB);ue&&xo(E.errors,K,ye),pe=E.errors,!wh(Kt(pe,fe=K)).length&&nr(pe,fe)}if((re.touchedFields||ge.touchedFields)&&ie&&Array.isArray(Kt(E.touchedFields,K))){const ye=te(Kt(E.touchedFields,K),oe.argA,oe.argB);ue&&xo(E.touchedFields,K,ye)}(re.dirtyFields||ge.dirtyFields)&&(E.dirtyFields=F0(U,Z)),Q.state.next({name:K,isDirty:J(K,W),dirtyFields:E.dirtyFields,errors:E.errors,isValid:E.isValid})}else xo(Z,K,W);var pe,fe},_setDisabledField:he,_setErrors:K=>{E.errors=K,Q.state.next({errors:E.errors,isValid:!1})},_getFieldArray:K=>wh(Kt(G.mount?Z:U,K,F.shouldUnregister?Kt(U,K,[]):[])),_reset:de,_resetDefaultValues:()=>$i(F.defaultValues)&&F.defaultValues().then(K=>{Oe(K,F.resetOptions),Q.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const K of V.unMount){const W=Kt(B,K);W&&(W._f.refs?W._f.refs.every(te=>!Bp(te)):!Bp(W._f.ref))&&et(K)}V.unMount=new Set},_disableForm:K=>{oa(K)&&(Q.state.next({disabled:K}),Cc(B,(W,te)=>{const oe=Kt(B,te);oe&&(W.disabled=oe._f.disabled||K,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(ue=>{ue.disabled=oe._f.disabled||K}))},0,!1))},_subjects:Q,_proxyFormState:re,get _fields(){return B},get _formValues(){return Z},get _state(){return G},set _state(K){G=K},get _defaultValues(){return U},get _names(){return V},set _names(K){V=K},get _formState(){return E},get _options(){return F},set _options(K){F={...F,...K}}},subscribe:K=>(G.mount=!0,ge={...ge,...K.formState},ct({...K,formState:ge})),trigger:ke,register:Ye,handleSubmit:Ie,watch:(K,W)=>$i(K)?Q.state.subscribe({next:te=>K(ce(void 0,W),te)}):ce(K,W,!0),setValue:Ee,getValues:_e,reset:Oe,resetField:(K,W={})=>{Kt(B,K)&&(Jo(W.defaultValue)?Ee(K,Cr(Kt(U,K))):(Ee(K,W.defaultValue),xo(U,K,Cr(W.defaultValue))),W.keepTouched||nr(E.touchedFields,K),W.keepDirty||(nr(E.dirtyFields,K),E.isDirty=W.defaultValue?J(K,Cr(Kt(U,K))):J()),W.keepError||(nr(E.errors,K),re.isValid&&be()),Q.state.next({...E}))},clearErrors:K=>{K&&rc(K).forEach(W=>nr(E.errors,W)),Q.state.next({errors:K?E.errors:{}})},unregister:et,setError:Be,setFocus:(K,W={})=>{const te=Kt(B,K),oe=te&&te._f;if(oe){const ue=oe.refs?oe.refs[0]:oe.ref;ue.focus&&(ue.focus(),W.shouldSelect&&$i(ue.select)&&ue.select())}},getFieldState:Xe};return{...je,formControl:je}}(C);S.current={...O,formState:P}}const z=S.current.control;return z._options=C,kA(()=>{const A=z._subscribe({formState:z._proxyFormState,callback:()=>I({...z._formState}),reRenderRoot:!0});return I(O=>({...O,isReady:!0})),z._formState.isReady=!0,A},[z]),u.useEffect(()=>z._disableForm(C.disabled),[z,C.disabled]),u.useEffect(()=>{C.mode&&(z._options.mode=C.mode),C.reValidateMode&&(z._options.reValidateMode=C.reValidateMode)},[z,C.mode,C.reValidateMode]),u.useEffect(()=>{C.errors&&(z._setErrors(C.errors),z._focusError())},[z,C.errors]),u.useEffect(()=>{C.shouldUnregister&&z._subjects.state.next({values:z._getWatch()})},[z,C.shouldUnregister]),u.useEffect(()=>{if(z._proxyFormState.isDirty){const A=z._getDirty();A!==P.isDirty&&z._subjects.state.next({isDirty:A})}},[z,P.isDirty]),u.useEffect(()=>{C.values&&!qa(C.values,R.current)?(z._reset(C.values,z._options.resetOptions),R.current=C.values,I(A=>({...A}))):z._resetDefaultValues()},[z,C.values]),u.useEffect(()=>{z._state.mount||(z._setValid(),z._state.mount=!0),z._state.watch&&(z._state.watch=!1,z._subjects.state.next({...z._formState})),z._removeUnmounted()}),S.current.formState=((A,O,N,F=!0)=>{const E={defaultValues:O._defaultValues};for(const B in A)Object.defineProperty(E,B,{get:()=>{const H=B;return O._proxyFormState[H]!==oc&&(O._proxyFormState[H]=!F||oc),A[H]}});return E})(P,z),S.current}({shouldUseNativeValidation:!1}),{handleSubmit:x,formState:v}=y,b=u.useRef(null),w=u.useRef(null),M=u.useRef(null),k=En(async C=>{let S;try{if(S=await Promise.resolve(l?.(C))??!0,S!==!0)return;await Promise.resolve(i?.(C,C===h,C===f)),a?.(C)}catch{}},[i,a,l,h,f]),j=En((C,S)=>{setTimeout(()=>{k(f)},180)},[k]),_=En(()=>{i?.(h,!0,!1),r?.(),a?.(null)},[i,h,r,a]),L=v&&(Object.keys(v.errors).length>0||v.disabled||v.isSubmitted),T=En((C,S)=>{const R=C===h,P={className:S?"defaultOption":"action",type:S?"submit":"button",style:{minWidth:"75px"},onClick:()=>{R?_():S||k(C)}};if(c)return c(C,P,S);const I={className:S?"defaultOption":"action",variant:S?"contained":"outlined",size:"small",disabled:!R&&L,color:"primary",...P};if(S||R){const z=S?b:w;I.touchRippleRef=z,I.onPointerDown=A=>{z.current?.start(A,{center:!1}),A.stopPropagation(),A.preventDefault()}}return s.jsx(zc,{...I,children:s.jsx("div",{style:{paddingTop:"3px"},children:C})},`action:${C}`)},[d,f,h,c,v]),D=u.useMemo(()=>{const C=[];for(let S=0;S<d.length;S++){const R=d[S],P=f?R===f:S===0;C.push(T(R,P))}return C},[d,f,v]);return s.jsx(Lv,{onCancel:_,initialPosition:{y:SA==="touch"?"15":"35"},onDone:a,autoFocusSel:p,isModal:!0,ref:t,PaperProps:{},...m,children:s.jsx(CA,{...y,children:s.jsxs("form",{ref:M,onSubmit:x(j),children:[s.jsx(Ex,{dividers:!0,onKeyDown:C=>{if(C.isDefaultPrevented())return;C.stopPropagation();let S=null,R=null;const P=C.which===xr.Escape&&h;if(P)S=h,R=w;else{if(L)return;C.which===xr.Enter&&(S=f??d[0],R=b)}S&&(R.current?.start(C,{center:!1}),setTimeout(()=>{R.current?.stop(C),P&&k(S)},180))},children:s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:C=>C.spacing(o||n?1.5:0)},children:[s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column"},children:[o,n]}),g]})}),s.jsx(JT,{sx:{paddingTop:C=>C.spacing(1),paddingBottom:C=>C.spacing(1),paddingLeft:C=>C.spacing(1),paddingRight:C=>C.spacing(1),backgroundColor:C=>pt(C.palette.action.hover,.03)},children:D})]})})})})),RA=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Ch,default:Ch},Symbol.toStringTag,{value:"Module"})),IA=u.lazy(()=>Promise.resolve().then(()=>RA)),PA=u.lazy(()=>Promise.resolve().then(()=>require("./5hPVyVAXmITQCRAG.cjs"))),l0=u.memo(u.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...a}=e;return q3(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})})})),Ge=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:a,label:l,disabled:c=!1,variant:d=Ci.Toolbar,shortcut:p,commandState:f,tooltipProps:h,...g}=e,m=u.useRef(null),y=u.useRef(!1),x=u.useMemo(()=>{const L={onExecute(T,D){o?.onExecute?.(T,D),y.current||(m.current?.start({center:!1}),setTimeout(()=>m.current?.stop({}),180)),y.current=!1},onError(T,D,C){o?.onError(T,D,C)}};return o?.beforeExecute&&(L.beforeExecute=o.beforeExecute),L},[o]),v=q3(n,x),b=u.useCallback(L=>{L.button===0&&L.preventDefault()},[]),w=u.useCallback(L=>{L.button===0&&n?.execute(f,o)},[v,o,f]),M=u.useCallback(L=>{L.keyCode!==xr.Enter&&L.keyCode!==xr.Space||n?.execute(f,o)},[v,o,f]),k=u.useMemo(()=>a||d===Ci.Toolbar||n?.state()?typeof a=="function"?a(n):a:_2,[v,a]),j=u.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:d===Ci.Toolbar?k:s.jsx(E1,{selected:n?.state()??!1,children:k}),touchRippleRef:m,disabled:c||!n||n.disabled(),onMouseDown:b,onMouseUp:w,onKeyDown:M}),[v,o,c,k]);let _;return _=d===Ci.Menuitem?s.jsx(Gr,{...g,chips:n?.tags(),...j,children:l??n?.label(r,i)}):s.jsx(ii,{...g,...j}),(l||n?.label())&&((n.disabled()||c)&&(_=s.jsx("div",{children:_})),_=s.jsx(l0,{command:n,placement:d===Ci.Toolbar?"bottom-start":"right-start",shortcut:p,...h,children:_})),_})),OA=u.memo(u.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=_2,label:i,variant:a=Ci.Toolbar,disabled:l=!1,commandHook:c,...d}=e,p=u.useRef(null),f=u.useRef(!1),h=u.useMemo(()=>{const _={onExecute(L,T){c?.onExecute?.(L,T),f.current||(p.current?.start({center:!1}),setTimeout(()=>p.current?.stop({}),180)),f.current=!1},onError(L,T,D){c?.onError(L,T,D)}};return c?.beforeExecute&&(_.beforeExecute=c.beforeExecute),_},[c]),g=q3(n,h),m=()=>n?.state()?.toString()||"0",[y,x]=u.useState(m),v=En(()=>{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]),M=u.useMemo(()=>s.jsx(Tr,{...d,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:_=>_.stopPropagation(),onMouseDown:_=>{_.button===0&&_.stopPropagation()},onMouseUp:_=>{_.button===0&&_.stopPropagation()},children:s.jsx(Kl,{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]),k={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?.(),h))},onKeyDown:_=>{_.keyCode!==xr.Enter&&_.keyCode!==xr.Space||n?.execute(!n?.state?.(),h)}};let j;return j=a===Ci.Menuitem?s.jsxs(Gr,{...d,chips:n?.tags(),...k,children:[w,M]}):s.jsx(ii,{...d,...k}),n?.label()&&((n.disabled()||l)&&(j=s.jsx("div",{children:j})),j=s.jsx(l0,{command:n,placement:a===Ci.Toolbar?"bottom-start":"right-start",children:j})),j})),Xn=u.memo(u.forwardRef((e,t)=>{const{variant:n=Ci.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:a,commandHook:l,disabled:c,label:d,icon:p,createPopupPanel:f,tooltip:h,selected:g,scope:m,...y}=e,x=u.useRef(null),v=u.useRef(!1),b=u.useMemo(()=>{const D={onExecute(C,S){l?.onExecute?.(C,S),v.current||(x.current?.start({center:!1}),setTimeout(()=>x.current?.stop({}),180)),v.current=!1},onError(C,S,R){l?.onError(C,S,R)}};return l?.beforeExecute&&(D.beforeExecute=l.beforeExecute),D},[l]),w=K3(i,[o],null,[o]),M=w[0],{label:k,icon:j}=u.useMemo(()=>{let D=null;d&&(D=typeof d=="function"?d(M):d),D||(D=M?.label?.(m));let C=null;return p&&(C=typeof p=="function"?p(M):p),C||(C=M?.icon?.()),{label:D,icon:C}},[w,d,p]),_={disabled:c,scope:m,touchRippleRef:x,onQuickClick:r,tooltip:h,label:k,icon:j};(k||h)&&(_.createTooltip=({children:D},C)=>s.jsx(br,{label:k,description:h,disabled:C,children:D}));const L=En(D=>f?.(D,i),[f,w]),T=En(D=>M?.execute(a,b),[M]);return M?(_.quickButtonProps={},_.quickButtonProps.createTooltip=({children:D,placement:C},S)=>s.jsx(l0,{command:M,placement:C??n===Ci.Toolbar?"bottom-start":"right-start",disabled:S,children:D}),_.disabled=_.disabled??M?.disabled(),r||(_.onQuickClick=T)):o&&(_.onQuickClick=()=>{}),_.selected=g??M?.state(),_.createPopupPanel=L,n===Ci.Toolbar?s.jsx(qi,{...y,..._,ref:t}):s.jsx(k1,{...y,..._,ref:t})}));Xn.displayName="CommandPopupButton";const Xs=e=>{const{command:t,label:n,scope:o,icon:r=s.jsx(R3,{}),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})]})},M1=u.memo(u.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:a,children:l,...c}=e,d=T2(t,()=>({}),[]),[p,f]=u.useState(null),{reference:h}=ha({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:_,...L}=r||{};return{commandHook:{beforeExecute:(T,D)=>_?.beforeExecute?.(T,D)!==!1&&h.closeAll(),onExecute(T,D){_?.onExecute?.(T,D),g()},onError(T,D,C){_?.onError?.(T,D,C)}},...L}},[h,r]),x=u.useMemo(()=>({...m,...y}),[m,y]),[v,b]=u.useReducer(_=>_+1,0);K3(o,[],{onChange:()=>{b()}});const w=u.useMemo(()=>({commands:o,parentFloat:h,...y}),[v,x,h,r]);let M=0;m.dense||(M+=2),m.outlined&&M++;let k=2;m.dense||(k=4);const j=u.useMemo(()=>a({commands:o,commandButtonProps:x,commandPopupProps:{commands:o,...w,...r}}),[v,x,w,a]);return s.jsx(Aj,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${k}px`,paddingBottom:`${k}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&&f(_.relatedTarget)},onBlur:_=>{p&&!d?.current?.contains(_.relatedTarget)&&f(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:`${k}px`,columnGap:`${M}px`,alignItems:"center",maxWidth:"100%"},children:j})})}));M1.displayName="CommandToolbar";const DA=e=>{const{key:t,...n}=e;return s.jsx(Ge,{...n},t)},ca=u.memo(u.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o=DA,scope:r,commands:i,icon:a,quickCommand:l,popupScope:c=l,commandState:d,commandHook:p,disabled:f=!1,...h}=e,g=K3(i,n?[l,...n]:[l]),m=u.useCallback((y,x)=>{const v={variant:Ci.Menuitem,commandHook:p,commandState:d,icon:a,scope:c,disabled:f},b=[];for(let w=0;w<n?.length;w++){const M=n[w];if(M===null||M==="-"){b.push(s.jsx(Ft,{orientation:"horizontal"},`element-${b.length}`));continue}const k=x.getCommand(M),j={key:`${M}-${b.length}`,command:k,...v},_=o(j);_&&b.push(_)}return Bn({...y,children:b})},[f,p,d,c,n,a,o]);return n?s.jsx(Xn,{ref:t,commands:i,disabled:f,commandHook:p,commandState:d,scope:r,quickCommand:l,icon:a,createPopupPanel:m,...h}):o({ref:t,disabled:f,commandHook:p,commandState:d,scope:r,command:g[0],icon:a,...h})}));(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 Zv=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(X6,{}))),g.set("formatAlignCenterToggle",ze(s.jsx(Z6,{}))),g.set("formatAlignRightToggle",ze(s.jsx(cR,{}))),g.set("formatAlignJustifyToggle",ze(s.jsx(xc,{}))),g.set("formatAlignCenterContinuousToggle",ze(s.jsx(Z6,{}))),g.set("formatAlignFillToggle",ze(s.jsx(xc,{}))),g.set("formatAlignDistributedHorizontalToggle",ze(s.jsx(xc,{}))),g},[]),f=u.useMemo(()=>{if(!o)return null;const g={...o};return delete g.beforeExecute,g},[o]),h=u.useCallback((g,m)=>{const y={variant:Zt.Menuitem,commandHook:o,scope:r,disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...y,command:m.getCommand("formatAlignLeftToggle"),icon:p.get("formatAlignLeftToggle")}),s.jsx(Ge,{...y,command:m.getCommand("formatAlignCenterToggle"),icon:p.get("formatAlignCenterToggle")}),s.jsx(Ge,{...y,command:m.getCommand("formatAlignRightToggle"),icon:p.get("formatAlignRightToggle")}),s.jsx(Ge,{...y,command:m.getCommand("formatAlignJustifyToggle"),icon:p.get("formatAlignJustifyToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...y,command:m.getCommand("formatAlignCenterContinuousToggle"),icon:p.get("formatAlignCenterContinuousToggle")}),s.jsx(Ge,{...y,command:m.getCommand("formatAlignFillToggle"),icon:p.get("formatAlignFillToggle")}),s.jsx(Ge,{...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(Ge,{command:m.getCommand("formatIndentDecrease"),commandHook:f,scope:r,disabled:i,icon:ze(s.jsx(OO,{}))}),s.jsx(Ge,{command:m.getCommand("formatIndentIncrease"),commandHook:f,scope:r,disabled:i,icon:ze(s.jsx(PO,{}))})]}),b=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...l,children:[v,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:x})]});return Bn({...g,children:b})},[i,o]);return s.jsx(Xn,{ref:t,parentFloat:a,commands:n,commandHook:o,scope:r,createPopupPanel:h,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:d,icon:p.get(d)??s.jsx(X6,{}),...l})})),Xv=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 f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatAlignTopToggle",ze(s.jsx($O,{}))),f.set("formatAlignMiddleToggle",ze(s.jsx(VO,{}))),f.set("formatAlignBottomToggle",ze(s.jsx(U7,{}))),f.set("formatAlignJustifyVerticalToggle",ze(s.jsx(xc,{}))),f.set("formatAlignDistributedVerticalToggle",ze(s.jsx(xc,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Zt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...g,command:h.getCommand("formatAlignTopToggle"),icon:d.get("formatAlignTopToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatAlignMiddleToggle"),icon:d.get("formatAlignMiddleToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatAlignBottomToggle"),icon:d.get("formatAlignBottomToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...g,command:h.getCommand("formatAlignJustifyVerticalToggle"),icon:d.get("formatAlignJustifyVerticalToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatAlignDistributedVerticalToggle"),icon:d.get("formatAlignDistributedVerticalToggle")})]});return Bn({...f,children:m})},[i,o,d]);return s.jsx(Xn,{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(U7,{})),...a})})),Yv=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 f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatTextOverflowVisibleToggle",ze(s.jsx(X4,{}))),f.set("formatTextOverflowWrapToggle",ze(s.jsx(jI,{}))),f.set("formatTextOverflowClipToggle",ze(s.jsx(RI,{}))),f.set("formatTextOverflowShrinkToggle",ze(s.jsx(II,{}))),f},[]),p=Te((f,h)=>{const g={variant:Zt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...g,command:h.getCommand("formatTextOverflowVisibleToggle"),icon:d.get("formatTextOverflowVisibleToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatTextOverflowWrapToggle"),icon:d.get("formatTextOverflowWrapToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatTextOverflowClipToggle"),icon:d.get("formatTextOverflowClipToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...g,command:h.getCommand("formatTextOverflowShrinkToggle"),icon:d.get("formatTextOverflowShrinkToggle")})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{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(X4,{})),...a})})),Jv=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(()=>{const h=l.length;for(let g=0;g<h;g++){const m=l[g];if(m?.state())return m.key()}return l[1]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatTextRotate0",ze(s.jsx(ud,{}))),h.set("formatTextRotate315",ze(s.jsx(ud,{}))),h.set("formatTextRotate45",ze(s.jsx($7,{}))),h.set("formatTextRotate90",ze(s.jsx(V7,{}))),h.set("formatTextRotate270",ze(s.jsx(H7,{}))),h.set("formatTextRotateCustom",ze(s.jsx(W7,{}))),h},[]),p=u.useCallback((h,g)=>{const m={variant:Zt.Menuitem,commandHook:o,scope:r,disabled:i},y=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...m,command:g.getCommand("formatTextRotate0"),icon:ze(s.jsx(NO,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...m,command:g.getCommand("formatTextRotate315"),icon:ze(s.jsx(ud,{}))}),s.jsx(Ge,{...m,command:g.getCommand("formatTextRotate45"),icon:ze(s.jsx($7,{}))}),s.jsx(Ge,{...m,command:g.getCommand("formatTextRotate90"),icon:ze(s.jsx(V7,{}))}),s.jsx(Ge,{...m,command:g.getCommand("formatTextRotate270"),icon:ze(s.jsx(H7,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(OA,{...m,command:g.getCommand("formatTextRotateCustom"),icon:ze(s.jsx(W7,{})),label:"Custom"})]});return Bn({...h,children:y})},[i,o,r,n]),f=u.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[l]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,scope:r,selected:f,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:p,quickCommand:f?"formatTextRotate0":"formatTextRotate315",icon:ze(d.get(c)??s.jsx(ud,{})),...a})}));function $l(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 bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},V8,H8,W8={exports:{}},ro={},Qv=(H8||(H8=1,W8.exports=function(){if(V8)return ro;V8=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"),f=Symbol.for("react.lazy"),h=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 h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return ro.ContextConsumer=i,ro.ContextProvider=a,ro.Element=e,ro.ForwardRef=l,ro.Fragment=n,ro.Lazy=f,ro.Memo=p,ro.Portal=t,ro.Profiler=r,ro.StrictMode=o,ro.Suspense=c,ro.SuspenseList=d,ro.isContextConsumer=function(y){return m(y)===i},ro.isContextProvider=function(y){return m(y)===a},ro.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ro.isForwardRef=function(y){return m(y)===l},ro.isFragment=function(y){return m(y)===n},ro.isLazy=function(y){return m(y)===f},ro.isMemo=function(y){return m(y)===p},ro.isPortal=function(y){return m(y)===t},ro.isProfiler=function(y){return m(y)===r},ro.isStrictMode=function(y){return m(y)===o},ro.isSuspense=function(y){return m(y)===c},ro.isSuspenseList=function(y){return m(y)===d},ro.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===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},ro.typeOf=m,ro}()),W8.exports);function ka(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 ew(e){if(X.isValidElement(e)||Qv.isValidElementType(e)||!ka(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ew(e[n])}),t}function ai(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return ka(e)&&ka(t)&&Object.keys(t).forEach(r=>{X.isValidElement(t[r])||Qv.isValidElementType(t[r])?o[r]=t[r]:ka(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ka(e[r])?o[r]=ai(e[r],t[r],n):n.clone?o[r]=ka(t[r])?ew(t[r]):t[r]:o[r]=t[r]}),o}function rf(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($l(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($l(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ic=(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 R2(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 tw(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])),R2({type:l,values:c})}function kh(e){let t=(e=nl(e)).type==="hsl"||e.type==="hsla"?nl(tw(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 md(e,t,n){try{return function(o,r){return o=nl(o),r=rf(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,R2(o)}(e,t)}catch{return e}}function af(e,t){if(e=nl(e),t=rf(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 R2(e)}function po(e,t,n){try{return af(e,t)}catch{return e}}function lf(e,t){if(e=nl(e),t=rf(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 R2(e)}function ho(e,t,n){try{return lf(e,t)}catch{return e}}function gd(e,t,n){try{return function(o,r=.15){return kh(o)>.5?af(o,r):lf(o,r)}(e,t)}catch{return e}}const Zc={black:"#000",white:"#fff"},AA={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"},U8="#d32f2f",q8="#42a5f5",K8="#0288d1";function nw(){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:Zc.white,default:Zc.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 LA=nw();function ow(){return{text:{primary:Zc.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:Zc.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 G8=ow();function Z8(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=lf(e.main,r):t==="dark"&&(e.dark=af(e.main,i)))}function sf(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:q8}:{main:"#1976d2",light:q8,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:U8}:{main:U8,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:K8}:{main:K8,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 f(m){return function(y,x){const v=kh(y),b=kh(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,G8.text.primary)>=n?G8.text.primary:LA.text.primary}const h=({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($l(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error($l(12,y?` (${y})`:"",JSON.stringify(m.main)));return Z8(m,"light",v,o),Z8(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=nw():t==="dark"&&(g=ow()),ai({common:{...Zc},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:AA,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var X8,Y8,Np,J8,Q8,e9={exports:{}};function zA(){if(J8)return Np;J8=1;var e=Y8?X8:(Y8=1,X8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Np=function(){function o(a,l,c,d,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}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},Np}function Xc(){return Q8||(Q8=1,e9.exports=zA()()),e9.exports}function kc(e,t){return t?ai(e,t,{clone:!1}):e}function t9(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const I2={xs:0,sm:600,md:900,lg:1200,xl:1536},n9={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${I2[e]}px)`},FA={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:I2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ra(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||n9;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||n9;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,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:FA,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||I2).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 o9(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function rw(e){if(typeof e!="string")throw new Error($l(7));return e.charAt(0).toUpperCase()+e.slice(1)}function P2(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 zu(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:P2(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=P2(a.theme,o)||{};return Ra(a,l,d=>{let p=zu(c,r,d);return d===p&&typeof d=="string"&&(p=zu(c,r,`${t}${d==="default"?"":rw(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const BA={m:"margin",p:"padding"},NA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},r9={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$A=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!r9[n])return[n];n=r9[n]}const[o,r]=n.split(""),i=BA[o],a=NA[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),iw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function T1(e,t,n,o){const r=P2(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 cf(e){return T1(e,"spacing",8)}function _1(e,t){return typeof t=="string"||t==null?t:e(t)}function lw(e,t){const n=cf(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 f=>d.reduce((h,g)=>(h[g]=_1(p,f),h),{})}($A(a),l);return Ra(r,r[a],c)}(e,t,o,n)).reduce(kc,{})}function Do(e){return lw(e,iw)}function Ao(e){return lw(e,aw)}Do.propTypes={},Do.filterProps=iw,Ao.propTypes={},Ao.filterProps=aw;const VA={borderRadius:4};function Fu(...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]?kc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function wi(e){return typeof e!="number"?e:`${e}px solid`}function Oi(e,t){return qo({prop:e,themeKey:"borders",transform:t})}const HA=Oi("border",wi),WA=Oi("borderTop",wi),UA=Oi("borderRight",wi),qA=Oi("borderBottom",wi),KA=Oi("borderLeft",wi),GA=Oi("borderColor"),ZA=Oi("borderTopColor"),XA=Oi("borderRightColor"),YA=Oi("borderBottomColor"),JA=Oi("borderLeftColor"),QA=Oi("outline",wi),eL=Oi("outlineColor"),Yd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=T1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:_1(t,o)});return Ra(e,e.borderRadius,n)}return null};Yd.propTypes={},Yd.filterProps=["borderRadius"],Fu(HA,WA,UA,qA,KA,GA,ZA,XA,YA,JA,Yd,QA,eL);const Bu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=T1(e.theme,"spacing",8),n=o=>({gap:_1(t,o)});return Ra(e,e.gap,n)}return null};Bu.propTypes={},Bu.filterProps=["gap"];const Nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=T1(e.theme,"spacing",8),n=o=>({columnGap:_1(t,o)});return Ra(e,e.columnGap,n)}return null};Nu.propTypes={},Nu.filterProps=["columnGap"];const Jd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=T1(e.theme,"spacing",8),n=o=>({rowGap:_1(t,o)});return Ra(e,e.rowGap,n)}return null};function Is(e,t){return t==="grey"?t:e}function ti(e){return e<=1&&e!==0?100*e+"%":e}Jd.propTypes={},Jd.filterProps=["rowGap"],Fu(Bu,Nu,Jd,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"})),Fu(qo({prop:"color",themeKey:"palette",transform:Is}),qo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Is}),qo({prop:"backgroundColor",themeKey:"palette",transform:Is}));const tL=qo({prop:"width",transform:ti}),df=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||I2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ti(n)}};return Ra(e,e.maxWidth,t)}return null};df.filterProps=["maxWidth"];const nL=qo({prop:"minWidth",transform:ti}),oL=qo({prop:"height",transform:ti}),rL=qo({prop:"maxHeight",transform:ti}),iL=qo({prop:"minHeight",transform:ti});qo({prop:"size",cssProperty:"width",transform:ti}),qo({prop:"size",cssProperty:"height",transform:ti}),Fu(tL,df,nL,oL,rL,iL,qo({prop:"boxSizing"}));const O2={border:{themeKey:"borders",transform:wi},borderTop:{themeKey:"borders",transform:wi},borderRight:{themeKey:"borders",transform:wi},borderBottom:{themeKey:"borders",transform:wi},borderLeft:{themeKey:"borders",transform:wi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yd},color:{themeKey:"palette",transform:Is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Is},backgroundColor:{themeKey:"palette",transform:Is},p:{style:Ao},pt:{style:Ao},pr:{style:Ao},pb:{style:Ao},pl:{style:Ao},px:{style:Ao},py:{style:Ao},padding:{style:Ao},paddingTop:{style:Ao},paddingRight:{style:Ao},paddingBottom:{style:Ao},paddingLeft:{style:Ao},paddingX:{style:Ao},paddingY:{style:Ao},paddingInline:{style:Ao},paddingInlineStart:{style:Ao},paddingInlineEnd:{style:Ao},paddingBlock:{style:Ao},paddingBlockStart:{style:Ao},paddingBlockEnd:{style:Ao},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:Bu},rowGap:{style:Jd},columnGap:{style:Nu},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:df},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"}},s0=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 f=P2(o,c)||{};return p?p(i):Ra(i,n,h=>{let g=zu(f,d,h);return h===g&&typeof h=="string"&&(g=zu(f,d,`${t}${h==="default"?"":rw(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??O2;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=typeof(y=d[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(a[g])h=kc(h,e(g,m,r,a));else{const x=Ra({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((M,k)=>M.concat(Object.keys(k)),[]),w=new Set(b);return v.every(M=>w.size===Object.keys(M).length)})(x,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=kc(h,x)}else h=kc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":t9(r,o9(f,h))}:t9(r,o9(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function aL(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 sw(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:f="px",step:h=5,...g}=d,m=(w=>{const M=Object.keys(w).map(k=>({key:k,val:w[k]}))||[];return M.sort((k,j)=>k.val-j.val),M.reduce((k,j)=>({...k,[j.key]:j.val}),{})})(p),y=Object.keys(m);function x(w){return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${f})`}function v(w){return`@media (max-width:${(typeof p[w]=="number"?p[w]:w)-h/100}${f})`}function b(w,M){const k=y.indexOf(M);return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${f}) and (max-width:${(k!==-1&&typeof p[y[k]]=="number"?p[y[k]]:M)-h/100}${f})`}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 M=y.indexOf(w);return M===0?x(y[1]):M===y.length-1?v(y[M]):b(w,y[y.indexOf(w)+1]).replace("@media","@media not all and")},unit:f,...g}}(n);let c=ai({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(d=8,p=cf({spacing:d})){if(d.mui)return d;const f=(...h)=>(h.length===0?[1]:h).map(g=>{const m=p(g);return typeof m=="number"?`${m}px`:m}).join(" ");return f.mui=!0,f}(r),shape:{...VA,...i}},a);return c=function(d){const p=(m,y)=>m.replace("@media",y?`@container ${y}`:"@container");function f(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 h={},g=m=>(f(h,m),h);return f(g),{...d,containerQueries:g}}(c),c.applyStyles=aL,c=t.reduce((d,p)=>ai(d,p),c),c.unstable_sxConfig={...O2,...a?.unstable_sxConfig},c.unstable_sx=function(d){return s0({sx:d,theme:this})},c}s0.filterProps=["sx"];const i9=(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 $p(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(h=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>h.includes(x))||h[h.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),i9(i,d,`var(${m})`,f),i9(a,d,`var(${m}, ${y})`,f)}var h,g},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(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}const a9={textTransform:"uppercase"},l9='"Roboto", "Helvetica", "Arial", sans-serif';function cw(e,t){const{fontFamily:n=l9,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,M)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===l9?{letterSpacing:(k=w/v,Math.round(1e5*k)/1e5+"em")}:{},...M,...d};var k},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,a9),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,a9),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},f,{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 sL=["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)],cL={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)"},dL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s9(e){return`${Math.round(e)}ms`}function uL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function pL(e){const t={...cL,...e.easing},n={...dL,...e.duration};return{getAutoHeightDuration:uL,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:s9(i)} ${a} ${typeof l=="string"?l:s9(l)}`).join(",")},...e,easing:t,duration:n}}const hL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fL(e){return ka(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function dw(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];!fL(l)||a.startsWith("unstable_")?delete o[a]:ka(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 Eh(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($l(20));const p=sf(i),f=sw(e);let h=ai(f,{mixins:(g=f.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:sL.slice(),typography:cw(p,l),transitions:pL(a),zIndex:{...hL}});var g,m;return h=ai(h,d),h=t.reduce((y,x)=>ai(y,x),h),h.unstable_sxConfig={...O2,...d?.unstable_sxConfig},h.unstable_sx=function(y){return s0({sx:y,theme:this})},h.toRuntimeSource=dw,h}function Vn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const mL=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Vn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function c9(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function d9(e){return e==="dark"?mL:[]}function gL(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const yL=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 ac(e){return typeof e=="string"&&e.startsWith("hsl")?tw(e):e}function xa(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ic(ac(e[t])))}const Qi=e=>{try{return e()}catch{}};function Vp(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,...f}=l,h=sf(c);return{palette:h,opacity:{...c9(h.mode),...d},overlays:p||d9(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=Eh({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...c9(r),...t?.opacity},overlays:t?.overlays||d9(r)},a}function u9(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:sf({...n===!0?{}:n.palette,mode:t})})}function uw(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 Eh(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=Eh({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},u9(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},u9(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...f){const{colorSchemes:h={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=gL,colorSchemeSelector:v=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...w}=p,M=Object.keys(h)[0],k=g||(h.light&&M!=="light"?"light":M),j=((F="mui")=>d3(F))(y),{[k]:_,light:L,dark:T,...D}=h,C={...D};let S=_;if((k==="dark"&&!("dark"in h)||k==="light"&&!("light"in h))&&(S=!0),!S)throw new Error($l(21,k));const R=Vp(C,S,w,k);L&&!C.light&&Vp(C,L,void 0,"light"),T&&!C.dark&&Vp(C,T,void 0,"dark");let P={defaultColorScheme:k,...R,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:j,colorSchemes:C,font:{...lL(R.typography),...R.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(P.colorSchemes).forEach(F=>{const E=P.colorSchemes[F].palette,B=U=>{const Z=U.split("-"),G=Z[1],V=Z[2];return j(U,E[G][V])};var H;if(E.mode==="light"&&(st(E.common,"background","#fff"),st(E.common,"onBackground","#000")),E.mode==="dark"&&(st(E.common,"background","#000"),st(E.common,"onBackground","#fff")),H=E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{H[U]||(H[U]={})}),E.mode==="light"){st(E.Alert,"errorColor",po(E.error.light,.6)),st(E.Alert,"infoColor",po(E.info.light,.6)),st(E.Alert,"successColor",po(E.success.light,.6)),st(E.Alert,"warningColor",po(E.warning.light,.6)),st(E.Alert,"errorFilledBg",B("palette-error-main")),st(E.Alert,"infoFilledBg",B("palette-info-main")),st(E.Alert,"successFilledBg",B("palette-success-main")),st(E.Alert,"warningFilledBg",B("palette-warning-main")),st(E.Alert,"errorFilledColor",Qi(()=>E.getContrastText(E.error.main))),st(E.Alert,"infoFilledColor",Qi(()=>E.getContrastText(E.info.main))),st(E.Alert,"successFilledColor",Qi(()=>E.getContrastText(E.success.main))),st(E.Alert,"warningFilledColor",Qi(()=>E.getContrastText(E.warning.main))),st(E.Alert,"errorStandardBg",ho(E.error.light,.9)),st(E.Alert,"infoStandardBg",ho(E.info.light,.9)),st(E.Alert,"successStandardBg",ho(E.success.light,.9)),st(E.Alert,"warningStandardBg",ho(E.warning.light,.9)),st(E.Alert,"errorIconColor",B("palette-error-main")),st(E.Alert,"infoIconColor",B("palette-info-main")),st(E.Alert,"successIconColor",B("palette-success-main")),st(E.Alert,"warningIconColor",B("palette-warning-main")),st(E.AppBar,"defaultBg",B("palette-grey-100")),st(E.Avatar,"defaultBg",B("palette-grey-400")),st(E.Button,"inheritContainedBg",B("palette-grey-300")),st(E.Button,"inheritContainedHoverBg",B("palette-grey-A100")),st(E.Chip,"defaultBorder",B("palette-grey-400")),st(E.Chip,"defaultAvatarColor",B("palette-grey-700")),st(E.Chip,"defaultIconColor",B("palette-grey-700")),st(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),st(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),st(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),st(E.LinearProgress,"primaryBg",ho(E.primary.main,.62)),st(E.LinearProgress,"secondaryBg",ho(E.secondary.main,.62)),st(E.LinearProgress,"errorBg",ho(E.error.main,.62)),st(E.LinearProgress,"infoBg",ho(E.info.main,.62)),st(E.LinearProgress,"successBg",ho(E.success.main,.62)),st(E.LinearProgress,"warningBg",ho(E.warning.main,.62)),st(E.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),st(E.Slider,"primaryTrack",ho(E.primary.main,.62)),st(E.Slider,"secondaryTrack",ho(E.secondary.main,.62)),st(E.Slider,"errorTrack",ho(E.error.main,.62)),st(E.Slider,"infoTrack",ho(E.info.main,.62)),st(E.Slider,"successTrack",ho(E.success.main,.62)),st(E.Slider,"warningTrack",ho(E.warning.main,.62));const U=gd(E.background.default,.8);st(E.SnackbarContent,"bg",U),st(E.SnackbarContent,"color",Qi(()=>E.getContrastText(U))),st(E.SpeedDialAction,"fabHoverBg",gd(E.background.paper,.15)),st(E.StepConnector,"border",B("palette-grey-400")),st(E.StepContent,"border",B("palette-grey-400")),st(E.Switch,"defaultColor",B("palette-common-white")),st(E.Switch,"defaultDisabledColor",B("palette-grey-100")),st(E.Switch,"primaryDisabledColor",ho(E.primary.main,.62)),st(E.Switch,"secondaryDisabledColor",ho(E.secondary.main,.62)),st(E.Switch,"errorDisabledColor",ho(E.error.main,.62)),st(E.Switch,"infoDisabledColor",ho(E.info.main,.62)),st(E.Switch,"successDisabledColor",ho(E.success.main,.62)),st(E.Switch,"warningDisabledColor",ho(E.warning.main,.62)),st(E.TableCell,"border",ho(md(E.divider,1),.88)),st(E.Tooltip,"bg",md(E.grey[700],.92))}if(E.mode==="dark"){st(E.Alert,"errorColor",ho(E.error.light,.6)),st(E.Alert,"infoColor",ho(E.info.light,.6)),st(E.Alert,"successColor",ho(E.success.light,.6)),st(E.Alert,"warningColor",ho(E.warning.light,.6)),st(E.Alert,"errorFilledBg",B("palette-error-dark")),st(E.Alert,"infoFilledBg",B("palette-info-dark")),st(E.Alert,"successFilledBg",B("palette-success-dark")),st(E.Alert,"warningFilledBg",B("palette-warning-dark")),st(E.Alert,"errorFilledColor",Qi(()=>E.getContrastText(E.error.dark))),st(E.Alert,"infoFilledColor",Qi(()=>E.getContrastText(E.info.dark))),st(E.Alert,"successFilledColor",Qi(()=>E.getContrastText(E.success.dark))),st(E.Alert,"warningFilledColor",Qi(()=>E.getContrastText(E.warning.dark))),st(E.Alert,"errorStandardBg",po(E.error.light,.9)),st(E.Alert,"infoStandardBg",po(E.info.light,.9)),st(E.Alert,"successStandardBg",po(E.success.light,.9)),st(E.Alert,"warningStandardBg",po(E.warning.light,.9)),st(E.Alert,"errorIconColor",B("palette-error-main")),st(E.Alert,"infoIconColor",B("palette-info-main")),st(E.Alert,"successIconColor",B("palette-success-main")),st(E.Alert,"warningIconColor",B("palette-warning-main")),st(E.AppBar,"defaultBg",B("palette-grey-900")),st(E.AppBar,"darkBg",B("palette-background-paper")),st(E.AppBar,"darkColor",B("palette-text-primary")),st(E.Avatar,"defaultBg",B("palette-grey-600")),st(E.Button,"inheritContainedBg",B("palette-grey-800")),st(E.Button,"inheritContainedHoverBg",B("palette-grey-700")),st(E.Chip,"defaultBorder",B("palette-grey-700")),st(E.Chip,"defaultAvatarColor",B("palette-grey-300")),st(E.Chip,"defaultIconColor",B("palette-grey-300")),st(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),st(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),st(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),st(E.LinearProgress,"primaryBg",po(E.primary.main,.5)),st(E.LinearProgress,"secondaryBg",po(E.secondary.main,.5)),st(E.LinearProgress,"errorBg",po(E.error.main,.5)),st(E.LinearProgress,"infoBg",po(E.info.main,.5)),st(E.LinearProgress,"successBg",po(E.success.main,.5)),st(E.LinearProgress,"warningBg",po(E.warning.main,.5)),st(E.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),st(E.Slider,"primaryTrack",po(E.primary.main,.5)),st(E.Slider,"secondaryTrack",po(E.secondary.main,.5)),st(E.Slider,"errorTrack",po(E.error.main,.5)),st(E.Slider,"infoTrack",po(E.info.main,.5)),st(E.Slider,"successTrack",po(E.success.main,.5)),st(E.Slider,"warningTrack",po(E.warning.main,.5));const U=gd(E.background.default,.98);st(E.SnackbarContent,"bg",U),st(E.SnackbarContent,"color",Qi(()=>E.getContrastText(U))),st(E.SpeedDialAction,"fabHoverBg",gd(E.background.paper,.15)),st(E.StepConnector,"border",B("palette-grey-600")),st(E.StepContent,"border",B("palette-grey-600")),st(E.Switch,"defaultColor",B("palette-grey-300")),st(E.Switch,"defaultDisabledColor",B("palette-grey-600")),st(E.Switch,"primaryDisabledColor",po(E.primary.main,.55)),st(E.Switch,"secondaryDisabledColor",po(E.secondary.main,.55)),st(E.Switch,"errorDisabledColor",po(E.error.main,.55)),st(E.Switch,"infoDisabledColor",po(E.info.main,.55)),st(E.Switch,"successDisabledColor",po(E.success.main,.55)),st(E.Switch,"warningDisabledColor",po(E.warning.main,.55)),st(E.TableCell,"border",po(md(E.divider,1),.68)),st(E.Tooltip,"bg",md(E.grey[700],.92))}xa(E.background,"default"),xa(E.background,"paper"),xa(E.common,"background"),xa(E.common,"onBackground"),xa(E,"divider"),Object.keys(E).forEach(U=>{const Z=E[U];U!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&st(E[U],"mainChannel",ic(ac(Z.main))),Z.light&&st(E[U],"lightChannel",ic(ac(Z.light))),Z.dark&&st(E[U],"darkChannel",ic(ac(Z.dark))),Z.contrastText&&st(E[U],"contrastTextChannel",ic(ac(Z.contrastText))),U==="text"&&(xa(E[U],"primary"),xa(E[U],"secondary")),U==="action"&&(Z.active&&xa(E[U],"active"),Z.selected&&xa(E[U],"selected")))})}),P=f.reduce((F,E)=>ai(F,E),P);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:yL(P)},{vars:A,generateThemeVars:O,generateStyleSheets:N}=function(F,E={}){const{getSelector:B=ae,disableCssColorScheme:H,colorSchemeSelector:U}=E,{colorSchemes:Z={},components:G,defaultColorScheme:V="light",...le}=F,{vars:re,css:ge,varsWithDefaults:Q}=$p(le,E);let xe=Q;const be={},{[V]:Fe,...ee}=Z;if(Object.entries(ee||{}).forEach(([we,se])=>{const{vars:J,css:ce,varsWithDefaults:ne}=$p(se,E);xe=ai(xe,ne),be[we]={css:ce,vars:J}}),Fe){const{css:we,vars:se,varsWithDefaults:J}=$p(Fe,E);xe=ai(xe,J),be[V]={css:we,vars:se}}function ae(we,se){let J=U;if(U==="class"&&(J=".%s"),U==="data"&&(J="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(J=`[${U}="%s"]`),we){if(J==="media")return F.defaultColorScheme===we?":root":{[`@media (prefers-color-scheme: ${Z[we]?.palette?.mode||we})`]:{":root":se}};if(J)return F.defaultColorScheme===we?`:root, ${J.replace("%s",String(we))}`:J.replace("%s",String(we))}return":root"}return{vars:xe,generateThemeVars:()=>{let we={...re};return Object.entries(be).forEach(([,{vars:se}])=>{we=ai(we,se)}),we},generateStyleSheets:()=>{const we=[],se=F.defaultColorScheme||"light";function J(Pe,Ee){Object.keys(Ee).length&&we.push(typeof Pe=="string"?{[Pe]:{...Ee}}:Pe)}J(B(void 0,{...ge}),ge);const{[se]:ce,...ne}=be;if(ce){const{css:Pe}=ce,Ee=Z[se]?.palette?.mode,it=!H&&Ee?{colorScheme:Ee,...Pe}:{...Pe};J(B(se,{...it}),it)}return Object.entries(ne).forEach(([Pe,{css:Ee}])=>{const it=Z[Pe]?.palette?.mode,Ue=!H&&it?{colorScheme:it,...Ee}:{...Ee};J(B(Pe,{...Ue}),Ue)}),we}}}(P,z);return P.vars=A,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([F,E])=>{P[F]=E}),P.generateThemeVars=O,P.generateStyleSheets=N,P.generateSpacing=function(){return c2(w.spacing,cf(this))},P.getColorSchemeSelector=function(F){return function(E){return F==="media"?`@media (prefers-color-scheme: ${E})`:F?F.startsWith("data-")&&!F.includes("%s")?`[${F}="${E}"] &`:F==="class"?`.${E} &`:F==="data"?`[data-${E}] &`:`${F.replace("%s",E)} &`:"&"}}(v),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=x,P.unstable_sxConfig={...O2,...w?.unstable_sxConfig},P.unstable_sx=function(F){return s0({sx:F,theme:this})},P.toRuntimeSource=dw,P}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const pw=uw();function Ki(){const e=g1(pw);return e[Ja]||e}function xL({theme:e,...t}){const n=Ja in e?e[Ja]:void 0;return s.jsx(nx,{...t,themeId:n?Ja:void 0,theme:n||e})}const{CssVarsProvider:bL}=function(e){const{themeId:t,theme:n={},modeStorageKey:o=S5,colorSchemeStorageKey:r=C5,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=X.createContext(void 0),p={},f={},h=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:M,storageWindow:k=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:T=!1,defaultMode:D="system",noSsr:C}=m,S=X.useRef(!1),R=c3(),P=X.useContext(d),I=!!P&&!L,z=X.useMemo(()=>x||(typeof n=="function"?n():n),[x]),A=z[t],O=A||z,{colorSchemes:N=p,components:F=f,cssVarPrefix:E}=O,B=Object.keys(N).filter(ne=>!!N[ne]).join(","),H=X.useMemo(()=>B.split(","),[B]),U=typeof a=="string"?a:a.light,Z=typeof a=="string"?a:a.dark,G=N[U]&&N[Z]?D:N[O.defaultColorScheme]?.palette?.mode||O.palette?.mode,{mode:V,setMode:le,systemMode:re,lightColorScheme:ge,darkColorScheme:Q,colorScheme:xe,setColorScheme:be}=KE({supportedColorSchemes:H,defaultLightColorScheme:U,defaultDarkColorScheme:Z,modeStorageKey:v,colorSchemeStorageKey:b,defaultMode:G,storageManager:M,storageWindow:k,noSsr:C});let Fe=V,ee=xe;I&&(Fe=P.mode,ee=P.colorScheme);const ae=X.useMemo(()=>{const ne=ee||O.defaultColorScheme,Pe=O.generateThemeVars?.()||O.vars,Ee={...O,components:F,colorSchemes:N,cssVarPrefix:E,vars:Pe};if(typeof Ee.generateSpacing=="function"&&(Ee.spacing=Ee.generateSpacing()),ne){const it=N[ne];it&&typeof it=="object"&&Object.keys(it).forEach(Ue=>{it[Ue]&&typeof it[Ue]=="object"?Ee[Ue]={...Ee[Ue],...it[Ue]}:Ee[Ue]=it[Ue]})}return l?l(Ee):Ee},[O,ee,F,N,E]),we=O.colorSchemeSelector;Br(()=>{if(ee&&_&&we&&we!=="media"){const ne=we;let Pe=we;if(ne==="class"&&(Pe=".%s"),ne==="data"&&(Pe="[data-%s]"),ne?.startsWith("data-")&&!ne.includes("%s")&&(Pe=`[${ne}="%s"]`),Pe.startsWith("."))_.classList.remove(...H.map(Ee=>Pe.substring(1).replace("%s",Ee))),_.classList.add(Pe.substring(1).replace("%s",ee));else{const Ee=Pe.replace("%s",ee).match(/\[([^\]]+)\]/);if(Ee){const[it,Ue]=Ee[1].split("=");Ue||H.forEach(ke=>{_.removeAttribute(it.replace(ee,ke))}),_.setAttribute(it,Ue?Ue.replace(/"|'/g,""):"")}else _.setAttribute(Pe,ee)}}},[ee,we,_,H]),X.useEffect(()=>{let ne;if(w&&S.current&&j){const Pe=j.createElement("style");Pe.appendChild(j.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),j.head.appendChild(Pe),window.getComputedStyle(j.body),ne=setTimeout(()=>{j.head.removeChild(Pe)},1)}return()=>{clearTimeout(ne)}},[ee,w,j]),X.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const se=X.useMemo(()=>({allColorSchemes:H,colorScheme:ee,darkColorScheme:Q,lightColorScheme:ge,mode:Fe,setColorScheme:be,setMode:le,systemMode:re}),[H,ee,Q,ge,Fe,be,le,re,ae.colorSchemeSelector]);let J=!0;(T||O.cssVariables===!1||I&&R?.cssVarPrefix===E)&&(J=!1);const ce=s.jsxs(X.Fragment,{children:[s.jsx(nx,{themeId:A?t:void 0,theme:ae,children:y}),J&&s.jsx(Oy,{styles:ae.generateStyleSheets?.()||[]})]});return I?ce:s.jsx(d.Provider,{value:se,children:ce})},useColorScheme:()=>X.useContext(d)||c,getInitColorSchemeScript:m=>function(y){const{defaultMode:x="system",defaultLightColorScheme:v="light",defaultDarkColorScheme:b="dark",modeStorageKey:w=S5,colorSchemeStorageKey:M=C5,attribute:k=WE,colorSchemeNode:j="document.documentElement",nonce:_}=y||{};let L="",T=k;if(k==="class"&&(T=".%s"),k==="data"&&(T="[data-%s]"),T.startsWith(".")){const C=T.substring(1);L+=`${j}.classList.remove('${C}'.replace('%s', light), '${C}'.replace('%s', dark));
|
|
154
|
-
${j}.classList.add('${C}'.replace('%s', colorScheme));`}const D=T.match(/\[([^\]]+)\]/);if(D){const[C,S]=D[1].split("=");S||(L+=`${j}.removeAttribute('${C}'.replace('%s', light));
|
|
155
|
-
${j}.removeAttribute('${C}'.replace('%s', dark));`),L+=`
|
|
156
|
-
${j}.setAttribute('${C}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else L+=`${j}.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('${M}-dark') || '${b}';
|
|
161
|
-
const light = localStorage.getItem('${M}-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
|
-
${L}
|
|
179
|
-
}
|
|
180
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:r,defaultLightColorScheme:h,defaultDarkColorScheme:g,modeStorageKey:o,...m})}}({themeId:Ja,theme:()=>uw({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t={...e,typography:cw(e.palette,e.typography)};return t.unstable_sx=function(n){return s0({sx:n,theme:this})},t}}),vL=bL;function hw({theme:e,...t}){const n=X.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(xL,{theme:n,...t}):s.jsx(vL,{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 eo="up",to="down",Jn="left",Un="right",$u="tl",Yc="t",Jc="l",Jr="c",Dr="text/html",za="text/plain",Hp="image/png",wL=Object.freeze({left:0,top:0}),SL=Object.freeze({left:0,top:0,bottom:0,right:0}),CL=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:CL,EmptyRect:SL,EmptyTopLeft:wL},Symbol.toStringTag,{value:"Module"}));const Hr="column",Ma="row",kL=Object.freeze({colIndex:0,rowIndex:0}),EL=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),fw=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,mw=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,ML=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,TL=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,p9=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,h9=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,gw=(e=Ma,t=!1)=>t?e!==Hr?ML:TL:e!==Hr?mw:fw,f9=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Mh=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Th=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),m9=(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(!Mh(e[n],t[n]))return!1;return!0},Wp=(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},g9=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];Th(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},_L=[null,null],jL=(e,t,n)=>{if(e[0].value===e[1].value)return t};function y9(e,t=2,n,o=Ma,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Hr,l=0,c=!1;do{const d=i.sort(gw(a?Ma:Hr));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let M={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(M.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,M=n(k,M,o)}if(M){i[f]=M,c=!0,h=M,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}const $t=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:kL,EmptyRange:EL,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:p9,columnFirstRangeComparator:fw,createCellComparator:(e=Ma,t=!1)=>t?e!==Hr?(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!==Hr?h9:p9,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 f=d!==void 0;if(f){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 h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?y9(n,3,l===!0?jL:l,t?Hr:Ma,_L):n)}},createRangeComparator:gw,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:g9,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Mh(n,o);)o=n,n=g9(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(Th(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:f9,isEqualRanges:Mh,isEqualRangesArrays:m9,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!f9(e.cell,t.cell)&&m9(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Th,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:y9,rowFirstCellComparator:h9,rowFirstRangeComparator:mw,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:Wp,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=Wp(o,e[r],n);return t&&(o=Wp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),RL=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function IL(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===RL}(e)}function lc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Vl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function PL(e,t,n){return e.concat(t).map(function(o){return lc(o,n)})}function x9(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 b9(e,t){try{return t in e}catch{return!1}}function Vl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||PL,n.isMergeableObject=n.isMergeableObject||IL,n.cloneUnlessOtherwiseSpecified=lc;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)&&x9(r).forEach(function(c){l[c]=lc(r[c],a)}),x9(i).forEach(function(c){var d,p;b9(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(b9(r,c)&&a.isMergeableObject(i[c])?l[c]=function(f,h){if(!h.customMerge)return Vl;const g=h.customMerge(f);return typeof g=="function"?g:Vl}(c,a)(r[c],i[c],a):l[c]=lc(i[c],a))}),l}(e,t,n):lc(t,n)}Vl.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Vl(n,o,t)},{})};const OL=Object.freeze([]),DL=Object.freeze({}),v9=e=>e,Qd=()=>"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)}),yw=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),N0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xw=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?xw(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),AL=(e,t)=>!(e!==t&&!yw(e,t)&&!e.isEqual?.(t)),bw=(e,t,n=AL)=>{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];bw(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},w9=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),S9=e=>e==null,C9=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),k9=!(typeof window>"u"||!window.document||!window.document.createElement),Ar={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Qc=()=>{if(vw())return Ar.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Ar.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Ar.MacOS:/(iphone|ipad|ipod)/i.test(e)?Ar.IOS:/android/.test(e)?Ar.Android:/linux/.test(e)?Ar.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Ar.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Ar.Firefox:Ar.Unknown:Ar.Unknown};function vw(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const E9=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Qo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:OL,EmptyObject:DL,OSType:Ar,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:k9,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>S9(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:Vl,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=v9){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=v9){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||!N0(a))return a;o=a}return o??null},getOS:Qc,hasFocus:E9,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:yw,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:vw,isNullOrUndefined:S9,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:N0,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:C9,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!N0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Vl(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(!k9)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:xw,removeEqualValues:bw,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=w9(),o={id:requestAnimationFrame(function r(){w9()-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),!N0(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"&&!N0(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(!C9(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:Qd,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=>{E9(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 ww=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")},_h=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:ww,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:_h},Symbol.toStringTag,{value:"Module"}));const Sw="data:image/png;base64,",Cw="Unable to resolve image.",M9=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(Cw)}),Up="image/svg+xml";var T9,_9;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Sw,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(Cw)}),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 M9(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:Up})),l=await M9(a);n={mimeType:t??Up,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===Up?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"})),(_9=T9||(T9={})).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 f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,_9.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};const j9=`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.`,qp=`You do not have permissions to access the clipboard.
|
|
184
|
-
All copy and paste operations will be limited to the browser tab.`,kw={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:qp,PermsWrite:Qc()===Ar.Safari?j9:qp,PermsRead:Qc()===Ar.Safari?j9:qp},Kp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Gp=async(e,t,n)=>{if(Qc()===Ar.Safari)return await n(new Error(kw.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)}},Ew=async e=>{try{return await e.read({unsanitized:[Dr]})}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 jh=async(e,t=Dr)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await Ew(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)}}),R9=async(e,t=Dr)=>{const n=await jh(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Dr)}catch{console.warn("Can't parse html from clipboard.")}return o},e1="clipboard-uuid",ls="web text/uuid",I9=e=>`<div style="display:none" ${e1}="${e}"/>`,LL=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Dr);o.body.firstElementChild.setAttribute(e1,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},P9=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${e1}="${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 Vu=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 Gp("clipboard-read",async()=>{await Kp();const e=await jh(this._nativeClipboard,ls);if(!this._state||e&&e===this._state.uuid)return!0;const t=await R9(this._nativeClipboard,Dr);return!this._state||(P9(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Qc()===Ar.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 Gp("clipboard-read",async()=>{if(await Kp(),this._state?.uuid){const t=await jh(this._nativeClipboard,ls);if(t&&t===e._state.uuid)return!0;const n=await R9(this._nativeClipboard,Dr);if(P9(e._state?.uuid,n))return!0}return e._state={items:await Ew(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:Qd(),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 Gp("clipboard-write",async()=>{await Kp(),o&&r.length===0&&(r.push(new ClipboardItem({[ls]:new Blob([o],{type:ls})})),r.push(new ClipboardItem({[Dr]:new Blob([I9(o)],{type:Dr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Dr),d=null;if(c!==-1){const h=await l.getType(Dr);d=await _h(h),d&&(d=LL(o,d))}if(!d&&l.types.includes(za)){const h=await l.getType(za);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await _h(h),g&&(d=`<div ${e1}="${o}">${g}</div>`)}}if(!d&&l.types.includes(Hp)){const h=await l.getType(Hp),g=ww(await h.arrayBuffer());d=`<div ${e1}="${o}"><img src="${Sw+g}"/></div>`}!d&&o&&(d=I9(o));const p=new Blob([d??""],{type:Dr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[Dr]=p),o&&(f[ls]=new Blob([o],{type:ls})),n.push(new ClipboardItem(f))}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[Dr]=new Blob([r],{type:Dr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Hp]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Qd(),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:Qd(),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 Zp;(Zp=Vu||(Vu={})).ErrorMessages=kw,Zp.Global=new Zp,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 sc={Left:"left",Right:"right",Center:"center"},Vo="shift",ul="alt",mr="ctrl",ol={Horizontal:"horizontal",Vertical:"vertical"};function Mw(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=Mw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function vs(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Mw(e))&&(o&&(o+=" "),o+=t);return o}var zL=function(){},Tw=typeof window<"u",FL=Tw?u.useLayoutEffect:u.useEffect,O9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Hl=Tw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(O9),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return FL(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[zL,O9]},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},BL=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"})})})})},NL=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"})})})})},Rh=(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:Rh},Symbol.toStringTag,{value:"Module"}));const uf=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:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=BL,createScrollEndButton:y=NL,...x}=e,v=wt(d,[d]),b=u.useRef(null),[w,{width:M,height:k}]=Hl(),[j,{width:_,height:L}]=Hl(),T=l===ol.Vertical,D=T?"top":"left",C=T?"scrollTop":"scrollLeft",S=T?k:M,R=T?L:_,[P,I]=u.useState(null);u.useEffect(()=>{P!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[D]:P})},[P,T]);const z=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=le?0:Rh(V,ge[D],Q,!0,Math.max(0,V-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((V,le=!1)=>{if(!b.current)return 0;const re=b.current.querySelector(".scrollbar-viewport"),ge=re.getBoundingClientRect(),Q=re.children,xe=Math.ceil(R-S),be=le?xe:Rh(V,ge[D],Q,!1,Math.max(0,V+f));return I(be),Math.min(xe,be)},[R,S]),O=u.useRef(null),N=u.useCallback(V=>{O.current=n;const le=V.target[C];c(le,r,o),v?.(V)},[c,r,o,n]);u.useEffect(()=>{const V=O.current;O.current=null,n!==V&&(b.current[C]=n)},[n,C]);const F=u.useRef(null),E=u.useRef(null),B=u.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null,E.current=null)},[]),H=u.useCallback((V,le,re,ge=h)=>{E.current=V,F.current=setTimeout(()=>{const Q=re?z(E.current||V):A(E.current||V);Q!==E.current?H(Q,!1,re,g):B()},le?0:ge)},[z,A,B]);u.useEffect(()=>()=>B(),[B]);const U=n,Z=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(U)<=0||Math.floor(R-S)===0,onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!0)};return m?.(V)},[p,l,U,P,R,S]),G=u.useMemo(()=>{if(!p)return null;const V={orientation:l,disabled:Math.floor(R-S)<=Math.ceil(U),onMouseUp:B,onMouseLeave:B,onMouseDown:()=>H(U,!0,!1)};return y?.(V)},[p,l,U,P,R,S]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:vs("_sheetxl-scrollbar_eblx4_6",a),...x,children:[Z,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:N,ref:b,children:s.jsx("div",{ref:j,style:{position:"absolute",height:T?o-r+(k??0):1,width:T?1:o-r+(M??0)},className:"scrollbar-viewport"})})}),G]})}));uf.displayName="Scrollbar";let D9=Date.now,Ka={},$L=1;const $0=e=>{let t=Ka[e]!==null;return t&&(Ka[e]=null),t},A9=(e,t,n,o=0,r)=>{let i=D9(),a=i,l=0,c=0,d=0,p=$L++;if(p%20==0){const h={};for(let g in Ka)h[g]=!0;Ka=h}const f=function(h){let g=h!==!0,m=D9(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!Ka[p]||!y)return Ka[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(Ka[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return Ka[p]=!0,requestAnimationFrame(f),p},VL=function(e){return Math.pow(e-1,3)+1},HL=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let WL=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(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(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){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(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&($0(this.__isDecelerating),this.__isDecelerating=0);const 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);const a=e/i;let 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(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&($0(this.__isDecelerating),this.__isDecelerating=0),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(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(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);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&($0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&($0(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let 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(e,t,n=1){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)return;let 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);let i=this.__positions;if(this.__isDragging){let a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=p;if(p=p/this.__lastScale*n,p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom),f!==p){let h=o-this.__clientLeft,g=r-this.__clientTop;c=(h+c)*p/f-h,d=(g+d)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;const f=this.__maxScrollTop;(d>f||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{let a=this.options.locking?3:0,l=5,c=Math.abs(o-this.__initialTouchLeft),d=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=a,this.__enableScrollY=this.options.scrollingY&&d>=a,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=l||d>=l),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(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){let t=this.__positions,n=t.length-1,o=n;for(let r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],a=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=a/r*(1e3/60);const l=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>l||Math.abs(this.__decelerationVelocityY)>l)&&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(e,t,n,o=!1){const r=this.__isAnimating;if(r&&($0(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,f=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),h=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=A9(f,h,g,this.options.animationDuration,r?VL:HL)}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(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),a=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),l=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/l)*l,this.__minDecelerationScrollTop=Math.floor(a/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/l)*l,this.__maxDecelerationScrollTop=Math.ceil(a/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,a,l){this.__stepThroughDeceleration(l)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,a,l){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=A9(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const 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){let o=0,r=0,i=this.options.penetrationDeceleration,a=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*a),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*a)}}};var li=typeof window<"u"?window:{screen:{},navigator:{}},Ys=(li.matchMedia||function(){return{matches:!1}}).bind(li),_w=!1,UL={get passive(){return _w=!0}},L9=function(){};li.addEventListener&&li.addEventListener("p",L9,UL),li.removeEventListener&&li.removeEventListener("p",L9,!1);var qL=_w,KL="PointerEvent"in li,pf="ontouchstart"in li,jw=pf||"TouchEvent"in li&&Ys("(any-pointer: coarse)").matches,z9=(li.navigator.maxTouchPoints||0)>0||jw,Rw=li.navigator.userAgent||"",GL=Ys("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Rw)&&Math.min(li.screen.width||0,li.screen.height||0)>=768,Iw=(Ys("(pointer: coarse)").matches||!Ys("(pointer: fine)").matches&&pf)&&!/Windows.*Firefox/.test(Rw),ZL=Ys("(any-pointer: fine)").matches||Ys("(any-hover: hover)").matches||GL||!pf,Ih=!z9||!ZL&&Iw?z9?"touchOnly":"mouseOnly":"hybrid",XL=Ih==="mouseOnly"?"mouse":Ih==="touchOnly"||Iw?"touch":"mouse";const YL=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Ih,primaryInput:XL,supportsPassiveEvents:qL,supportsPointerEvents:KL,supportsTouchEvents:jw},Symbol.toStringTag,{value:"Module"})),JL=new Set(["INPUT","TEXTAREA","SELECT"]),Pw={};function Ph(){return YL}const en=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Pw,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:Ph,focusableNodeNames:JL,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Qo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),QL=[];function D2(e,t,n=QL){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 F9=e=>s.jsx(uf,{...e}),ez=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Ow=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=ez,createHorizontalScrollbar:c=F9,createVerticalScrollbar:d=F9,style:p,touchElement:f,disableTouch:h,...g}=e,m=wt(r,[r]),y=D2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft===o?.left||x.current.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((S,R)=>{m?.({left:S,top:R})},[]),b=u.useCallback(S=>{x.current?.doTouchStart(S.touches,S.timeStamp)},[]),w=u.useCallback(S=>{S.preventDefault(),x.current?.doTouchMove(S.touches,S.timeStamp)},[]),M=u.useCallback(S=>{x.current?.doTouchEnd(S.timeStamp)},[]),k=u.useCallback(({containerWidth:S,containerHeight:R,totalWidth:P,totalHeight:I})=>{x.current.setDimensions(S,R,P,I)},[]);u.useEffect(()=>{const S=f??y.current;if(!h&&Ph().supportsTouchEvents&&S&&o){if(!x.current){const R={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new WL(v,R)}Ph().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",M),S.addEventListener("touchmove",w)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",M),S?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[j,{width:_}]=Hl(),[L,{height:T}]=Hl(),D=u.useMemo(()=>{const S=d({orientation:ol.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:R=>{m?.({top:R})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:j,children:S})},[d,o?.top,o?.height,o?.totalHeight]),C=u.useMemo(()=>{const S=c({orientation:ol.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:R=>m?.({left:R})});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:L,className:"sizer",children:S})}),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?D:s.jsx(s.Fragment,{})]}),i?C:s.jsx(s.Fragment,{})]})})}));Ow.displayName="ScrollPane";const tz=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let yd=0;function Dw(){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 yd++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),yd--,yd<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),yd=0)}},[]),{getPortalContainer:tz}}const nz=100,oz=100,rz=1e6,iz=100,az=50,lz=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=nz,endScrollIncrement:l=oz,style:c=Pw,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=rz,scaleFactor:g=iz,precisionFactor:m=az,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=wt(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),M=h!==0&&b.totalSize>h?g:1,k=M/m,j=Math.ceil(b.totalSize/M),_=Math.ceil(b.offset/M),L=Math.ceil(o/M),T=u.useCallback(z=>{},[]),[D,C]=u.useState(!1),S=u.useRef(null);u.useLayoutEffect(()=>{if(!D){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,D,i,a,l]);const R=wt((z,A,O)=>{const N=S.current;S.current=null,N&&N.propTotalSize===r&&N.propViewportSize===o&&N.propOffset===n||(Math.abs(z-_)<k&&(z=_),p?.(z*M,_,L))},[p,M,k,_,L]),P=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",P),C(!1)},[]),I=u.useCallback(z=>{x?.(z),C(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",P,{passive:!0})},[T,P]);return s.jsx(uf,{ref:t,style:{...c},...y,offset:_,totalSize:j,viewportSize:L,onMouseDown:I,onScrollOffset:R})}));function Xp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}lz.displayName="VirtualScrollbar";var Hu=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)}};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:Hu([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:f}]=Hl(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,M=f-w+b;return function(k,j,_=!1){if(j===0)return k;function L(P,I,z){let A=I.x-P.x,O=I.y-P.y,N=Math.sqrt(A*A+O*O);return T(P,I,Math.min(1,z/N))}function T(P,I,z){return{x:P.x+(I.x-P.x)*z,y:P.y+(I.y-P.y)*z}}function D(P,I){P.length>2&&(P[P.length-2]=I.x,P[P.length-1]=I.y)}function C(P){return{x:parseFloat(P[P.length-2]),y:parseFloat(P[P.length-1])}}let S=k.split(/[,\s]/).reduce(function(P,I){let z=I.match("([a-zA-Z])(.+)");return z?(P.push(z[1]),P.push(z[2])):P.push(I),P},[]).reduce(function(P,I){return parseFloat(I)==I&&P.length?P[P.length-1].push(I):P.push([I]),P},[]),R=[];if(S.length>1){let P=C(S[0]),I=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(I=["L",P.x,P.y],S[S.length-1]=I),R.push(S[0]);for(let z=1;z<S.length;z++){let A=R[R.length-1],O=S[z],N=O===I?S[1]:S[z+1];if(N&&A&&A.length>2&&O[0]==="L"&&N.length>2&&N[0]==="L"){let F,E,B=C(A),H=C(O),U=C(N);_?(F=T(H,A.origPoint||B,j),E=T(H,N.origPoint||U,j)):(F=L(H,B,j),E=L(H,U,j)),D(O,F),O.origPoint=H,R.push(O);let Z=T(F,H,.5),G=T(H,E,.5),V=["C",Z.x,Z.y,G.x,G.y,E.x,E.y];V.origPoint=H,R.push(V)}else R.push(O)}if(I){let z=C(R[R.length-1]);R.push(["Z"]),D(R[0],z)}}else R=S;return R.reduce(function(P,I){return P+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} L ${i-.5} ${M} L ${2*i} ${M} L ${p-2*i} ${M} M ${p-2*i} ${M} L ${p-i} ${M} L ${p-i} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,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:Hu([h,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:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const sz={},cz=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=sz,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:vs("hit-box",h),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",...f},onPointerDown:a?void 0:t,...g})},l)},xd={},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,bd=(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 Ps(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,f=e?.timerContinuous??p/2,h=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(D=>{y.current=setTimeout(()=>{window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,h.current)}),v(f)},D??p)},[]);u.useEffect(()=>()=>x(),[]);const b=r?"pointer":"mouse",w=u.useCallback(D=>{D.stopPropagation(),D.stopImmediatePropagation(),D.preventDefault()},[]),M=wt(D=>{document.removeEventListener(`${b}move`,_),document.removeEventListener(`${b}up`,M),document.removeEventListener("keydown",L),document.removeEventListener("keyup",T),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",k),x(),window.requestAnimationFrame(()=>{d.current!==!1&&(d.current=!1,l?.(D,m.current,h.current),m.current=null)})},[]),k=u.useCallback(()=>{d.current!==!1&&(d.current=!1,M(g.current))},[]),j=wt(()=>{x(),v(f),window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,h.current)})},[f]),_=wt(D=>{g.current=D,j()},[]),L=wt(D=>{m.current={ctrlKey:D.ctrlKey,shiftKey:D.shiftKey,altKey:D.altKey,metaKey:D.metaKey},j()},[]),T=wt(D=>{m.current={ctrlKey:D.ctrlKey,shiftKey:D.shiftKey,altKey:D.altKey,metaKey:D.metaKey},j()},[f]);return wt(D=>{D.isDefaultPrevented()||(m.current={ctrlKey:D.ctrlKey,shiftKey:D.shiftKey,altKey:D.altKey,metaKey:D.metaKey},a(D,m.current)!==!1&&(h.current=D,g.current=D.nativeEvent,document.addEventListener(`${b}up`,M,{passive:!1}),document.addEventListener(`${b}move`,_,{passive:!1}),document.addEventListener("keydown",L,{passive:!1}),document.addEventListener("keyup",T,{passive:!1}),window.addEventListener("blur",k,{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:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=xd,paneProps:M=xd,paneBeforeProps:k=xd,paneAfterProps:j=xd,createResizer:_=cz}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let de=null;i&&(i==="before"?de=0:i==="after"&&(de=1));const Oe=de===null;return{fixedPaneOffset:de,isPercent:Oe,minBefore:Fa(c,Oe),maxBefore:Fa(d,Oe),minAfter:Fa(p,Oe),maxAfter:Fa(f,Oe)}},[c,d,p,f]),D=wt(l,[l]),[C,S]=u.useState(()=>Fa(a,i===null));u.useEffect(()=>{S(Fa(a,i===null))},[a,i]);const[R,{width:P,height:I}]=Hl(),[z,{width:A,height:O}]=Hl(),N=r==="row"?A:O,F=r==="row"?P:I,E=u.useMemo(()=>((de,Oe,Le,je)=>{const K=[null,null],W=[null,null];if(de||(de={percent:je.fixedPaneOffset===null?50:null,pixels:je.fixedPaneOffset===null?null:0}),Oe===0)return de?.pixels!=null?je.fixedPaneOffset!==1?(K[0]=de?.pixels,W[1]=100):(K[1]=de?.pixels-Le,W[0]=100):de?.percent!=null&&(je.fixedPaneOffset!==1?(W[0]=de?.percent,W[1]=100-de?.percent):(W[1]=de?.percent,W[0]=100-de?.percent)),{percents:W,pixels:K,minBefore:bd(je.minBefore,!0),maxBefore:bd(je.maxBefore,!0),minAfter:bd(je.minAfter),maxAfter:bd(je.maxAfter)};let te=pl(de,Oe,je.fixedPaneOffset!==1),oe=Oe-Le,ue=pl(je.minBefore,oe,!0)??0,ie=pl(je.maxBefore,oe,!0)??oe,pe=0,fe=0,ye=0,De=oe;pe=(pl(je.maxAfter,Oe,!1)??Le)-Le,fe=pl(je.minAfter,Oe,!1)??Oe,ye=Math.max(ue,pe),De=Math.min(ie,fe),te=Math.max(ye,Math.min(te,De)),fe=Math.min(oe-te,pl(je.maxAfter,oe-te,!0)??oe),pe=Math.min(oe-te,pl(je.minAfter,oe-te,!0)??oe),K[0]=te,K[1]=oe-K[0];const Ve=Math.max(0,Math.min(100,te/oe*100));return W[0]=Ve,W[1]=100-W[0],{percents:W,pixels:K,minBefore:`${ue}px`,minAfter:`${pe}px`,maxBefore:`${K[0]}px`,maxAfter:`${K[1]}px`}})(C,F,N,T),[T,C,F,N,r]),[B,H]=u.useState(!1),U=wt(x,[x]),Z=wt(v,[v]),G=wt(b,[b]),V=u.useRef(null),le=u.useRef(null),re=u.useRef(null),{style:ge,className:Q,...xe}=M,be={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ge},{className:Fe,style:ee,...ae}=k,{className:we,style:se,...J}=j,ce={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ne,style:Pe,onPointerDown:Ee,...it}=w,Ue=wt(de=>{const Oe=Fa(de,i===null);S(Oe)},[i]),ke=wt(de=>{if(y||!B)return;const Oe=Be.current?.getBoundingClientRect();let Le=0;Le=r==="row"?(de.clientX??de.touches?.[0]?.clientX)-Oe.x:(de.clientY??de.touches?.[0]?.clientY)-Oe.y,Le=Math.max(0,Math.min(F,Le)),T.fixedPaneOffset===1&&(Le=F-Le),a&&C.pixels===Le||S({pixels:Le,percent:null}),Z?.(Le),de.stopPropagation(),de.preventDefault()},[T,r,y,B,C,F]),_e=wt(de=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",_e),B&&(H(!1),C)){if(G(C.pixels),!Fa(a,i===null)||C.pixels!==a){const Oe={...C};Oe.percent===null&&(Oe.percent=Oe.pixels/F*100),D(Oe)}de.stopPropagation(),de.preventDefault()}},[C,B,a,i,F]),Xe=wt(de=>{Ee?.(de),de.defaultPrevented||y||B||(H(!0),U(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",_e,{passive:!1}))},[Ee]),Be=D2(t,()=>({setPosition:Ue,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:Hu([z,le]),className:vs("resizer",ne),onPointerDownCapture:Xe,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,...Pe},splitDirection:r,disabled:y,...it}):null,[L,ne,it,r,Pe,y]),et=r==="row"?"Width":"Height",he={...be,...ee,flex:T.fixedPaneOffset===0&&E?.pixels[0]!==null?`0 0 ${Math.round(E?.pixels[0])}px`:`1 1 ${Math.round(E?.percents[0]??100)}%`,[`min${et}`]:E?.minBefore,[`max${et}`]:o?E?.maxBefore:"100%"},Ye={...be,...se,flex:T.fixedPaneOffset===1&&E?.pixels[1]!==null?`0 0 ${Math.round(E?.pixels[1])}px`:`1 1 ${Math.round(E?.percents[1]??100)}%`,[`min${et}`]:E?.minAfter,[`max${et}`]:n?E?.maxAfter:"100%"},Se=u.useMemo(()=>n?s.jsx("div",{ref:V,className:vs("before",Q,Fe),style:he,...xe,...ae,children:n},"before"):null,[n,M,k,T,E]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:re,className:vs("after",Q,we),style:Ye,...xe,...J,children:o},"after"):null,[o,M,j,T,E]);return s.jsxs("div",{ref:Hu([R,Be]),className:vs("splitPane",r==="row"?"vertical":"horizontal",{dragging:B},g),style:ce,children:[Se,ct,Ie]})}));const dz=({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},Oh=e=>{console&&console.warn&&console.warn(e)},Yp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let uz=1,Dh=!1,Aw=!1;const eu=[],ws=[],Wu=()=>{ws.forEach(e=>e())},pz=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||Dh!==!1||(Aw=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return ws[0]!==i?(e||Dh!==!0||Oh("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([...eu])}return ws.push(i),Wu(),()=>{r=!1,o.current?.length>0&&Oh("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),ws.splice(ws.indexOf(i),1),Wu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(dz,{...r,key:i}))})},Lw=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=uz++;return eu.push({hook:g,key:m}),ws.length===0&&Aw===!1&&(Dh=!0,(y=>{if(Yp.document&&Yp.document.createElement){const x=Yp.document.createElement("div");t2.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else Oh("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(pz)),Wu(),()=>{eu.splice(eu.findIndex(y=>y.key===m),1),Wu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};Lw(null,()=>{const[e,t]=u.useState(null);return e});let hz=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 wn extends hz{}Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),Lw({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Vu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(Vu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Jp=!1,fz=0;var mz=typeof document<"u"?u.useLayoutEffect:u.useEffect;const B9=()=>"sheetxl-ui-"+fz++,gz=u.useId??function(){const[e,t]=u.useState(()=>Jp?B9():void 0);return mz(()=>{e==null&&t(B9())},[]),u.useEffect(()=>{Jp||(Jp=!0)},[]),e},Ss=({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 f=c?l.includes(p)?n(p)*r:i[p]?.size||n(p)*r:n(p)*r;i[p]={offset:d,size:f},d+=f}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},N9=({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?zw({itemType:e,itemSize:t,instanceProps:o,high:l,low:0,offset:r,scale:i}):yz({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,l),offset:r,scale:i}),c=Math.min(c,n),c},zw=({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=Ss({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},yz=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:a})=>{let l=1;for(;r<n&&Ss({itemType:e,itemSize:t,index:r,instanceProps:o,scale:a}).offset<i;)r+=l,l*=2;return zw({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:a})},hf="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",$9=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"}},xz=e=>!0,bz=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||hf.indexOf(e.key)===-1)),vz=e=>!!e&&e.type==="dblclick"&&{editMode:!0},wz=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:f=sc.Left,style:h,...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 S=C.event,R=new KeyboardEvent(S.type,{bubbles:!0,cancelable:!0,view:window,key:S.key,code:S.code,location:S.location,repeat:S.repeat,isComposing:S.isComposing,charCode:S.charCode,keyCode:S.keyCode,which:S.which,ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey});R.isSynthetic=!0,R.key,y.current?.dispatchEvent(R)}else C.eventType==="pointer"||console.warn("unsupported event type",C);await new Promise(S=>requestAnimationFrame(S))}},[]);u.useEffect(()=>{const C=y.current;return v(!0),y.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(C),t.editorRefsDispatchEditorEvent.push(w);const S=[...t.events];for(let R=0;R<S.length;R++)await w(S[R]);t.onMount(C)})(),()=>{const S=t.editorRefs.indexOf(C);S!==-1&&t.editorRefs.splice(S,1),t.onUnmount(C)}},[]);const M=u.useCallback(()=>o(t),[]),k=u.useCallback(()=>{r(t)},[]),j=n.current&&$t.isEqualCells(n.current,b),_=a&&j&&x,L=l({autoFocus:!!t.startEvent?.autoFocus,...c,onSubmitEdit:M,onCancelEdit:k,ref:y},b),T=i.x+en.boundPixel(-p/2),D=en.boundPixel(i.width+p/2,!0);return s.jsx("div",{tabIndex:0,ref:m,style:{background:void 0,...h,opacity:_?h?.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:D},...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:L})})},qn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===Un||n===to;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},vd=(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},Sz=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:a,colIndex:l}=e;switch(o){case to:{a=qn(n,Math.min(a+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a<i;)a=qn(n,Math.min(++a,i),o),c=t({rowIndex:a,colIndex:l});return a}case eo:{a=qn(n,Math.max(a-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a>i;)a=qn(n,Math.max(--a,i),o),c=t({rowIndex:a,colIndex:l});return a}case Un:{l=qn(n,Math.min(l+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l<i;)l=qn(n,Math.min(++l,i),o),c=t({rowIndex:a,colIndex:l});return l}case Jn:{l=qn(n,Math.max(l-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l>i;)l=qn(n,Math.max(--l,i),o),c=t({rowIndex:a,colIndex:l});return l}default:return i}},Cz=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:a,colIndex:l}=e;switch(o){case to:{a=qn(n,Math.min(a+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a<i;)a=qn(n,Math.min(++a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a-1}case eo:{a=qn(n,Math.max(a-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a>i;)a=qn(n,Math.max(--a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a+1}case Un:{l=qn(n,Math.min(l+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l<i;)l=qn(n,Math.min(++l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l-1}case Jn:{l=qn(n,Math.max(l-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l>i;)l=qn(n,Math.max(--l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l+1}default:return null}},kz=(e,t,n,o,r,i)=>{if(!t)return i;let a,{rowIndex:l,colIndex:c}=e;o===to?a={rowIndex:l+1,colIndex:c}:o===eo?a={rowIndex:l-1,colIndex:c}:o===Un?a={rowIndex:l,colIndex:c+1}:o===Jn&&(a={rowIndex:l,colIndex:c-1});const d=t(e);var p,f;return(f=t(a),!(p=d)&&!f||!p&&f||p&&!f?Sz:Cz)(e,t,n,o,!1,i)??i},V9=(e,t)=>`${e}:${t}`,H9=(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)))},W9=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),Ah=(e,t=Un,n,o,r,i=null)=>{if(i&&$t.isEqualSelectionCoords(i,e))return e;const a=e.ranges[e.rangeIndex];if(!$t.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 Un:l.colIndex=qn(r,l.colIndex+1,t);break;case Jn:l.colIndex=qn(r,l.colIndex-1,t);break;case to:l.rowIndex=qn(o,l.rowIndex+1,t);break;case eo:l.rowIndex=qn(o,l.rowIndex-1,t)}const d=h=>{if(h){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===Un&&l.colIndex>a.colEnd&&l.rowIndex===a.rowEnd)d(!0);else if(t===Jn&&l.colIndex<a.colStart&&l.rowIndex===a.rowStart)d(!1);else if(t===to&&l.colIndex===a.colEnd&&l.rowIndex>a.rowEnd)d(!0);else if(t===eo&&l.colIndex===a.colStart&&l.rowIndex<a.rowStart)d(!1);else{let h=l.rowIndex,g=l.colIndex;switch(t){case Un:g>a.colEnd&&(h=qn(o,h+1,t),g=a.colStart,h>a.rowEnd&&(h=a.rowStart));break;case Jn:g<a.colStart&&(h=qn(o,h-1,t),g=a.colEnd,h<a.rowStart&&(h=a.rowEnd));break;case to:h>a.rowEnd&&(g=qn(r,g+1,t),h=a.rowStart,g>a.colEnd&&(g=a.colStart));break;case eo:h<a.rowStart&&(g=qn(r,g-1,t),h=a.rowEnd,g<a.colStart&&(g=a.colEnd))}l={rowIndex:h,colIndex:g}}let p=n(l);if(!$t.isRangeWithinRange(p,a)){const h=$t.intersectRanges(p,a);h&&(p=h)}let f={rowStart:qn(o,p.rowStart,to),colStart:qn(r,p.colStart,Un),rowEnd:qn(o,p.rowEnd,eo),colEnd:qn(r,p.colEnd,Jn)};if(f.rowStart!==l.rowIndex||f.colStart!==l.colIndex){switch(t){case Un:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(l.rowIndex=f.rowEnd),l.colIndex=f.colEnd;break;case Jn:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(l.rowIndex=f.rowStart),l.rowIndex===f.rowStart?l.colIndex=f.colStart+1:l.colIndex=f.colStart;break;case to:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(l.colIndex=f.colEnd),l.rowIndex=f.rowEnd;break;case eo:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(l.colIndex=f.colStart),l.colIndex===f.colStart?l.rowIndex=f.rowStart+1:l.rowIndex=f.rowStart}return Ah({cell:l,ranges:e.ranges,rangeIndex:c},t,n,o,r,i??e)}return{ranges:e.ranges,cell:l,rangeIndex:c}},U9=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=Jn,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=Un,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=eo,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=to,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},Uu=(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},q9=(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),f=t?e.getColOffset(d+1):e.getRowOffset(d+1);a=d+1,l=f,i[d]=Object.freeze({offset:p,size:f-p,spanIndex:c})}return Object.freeze(i)},K9=(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}},Ez=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),Qp=(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":""}`,Cs=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})})},Mz=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:f,pathProps:h,style:g,...m}=e,y=n,x=t,v=o,b=r;let w=null;if(i){let M=Qp({top:0,left:0,bottom:b,right:v});f&&(M=M+" "+Qp({top:f.y-y,left:f.x-x,bottom:f.height+f.y-y,right:f.width+f.x-x})),w=[s.jsx("path",{d:M,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:Qp({top:0,left:0,right:v,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:d,stroke:a,vectorEffect:"non-scaling-stroke",strokeWidth:l,...h})]})},Fw=e=>{const{key:t,...n}=e;return s.jsx(A2,{...n},t)},A2=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:f,...h}=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=gz().replaceAll(":",""),b=`${m.name}-${v}`;let w;return u.useEffect(()=>{if(!g)return;const M=`@keyframes ${b} {
|
|
188
|
-
to {
|
|
189
|
-
stroke-dashoffset: 0px;
|
|
190
|
-
}
|
|
191
|
-
}`,k=document.createElement("style");return k.appendChild(document.createTextNode(M)),document.head.appendChild(k),k.sheet.insertRule(M,0),()=>{document.head.removeChild(k)}},[g]),g&&(w={strokeDasharray:`${m.dashLength}px ${m.dashGap}px`,strokeDashoffset:`${y}px`,animation:`${b} ${x}ms linear infinite`,willChange:"stroke-dashoffset"}),s.jsx(Mz,{x:o,y:r,width:i,height:a,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...w,...l},...h})});function Bw(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=Bw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Il(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Bw(e))&&(o&&(o+=" "),o+=t);return o}A2.displayName="Selection";const Nw=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,...f}=e;if(n===0||o===0)return null;let h=!0,g=!0,m=!0,y=!0;switch(l){case"tl":h=!1,g=!1;break;case"bl":h=!1,y=!1;break;case"br":m=!1,y=!1;break;case"tr":g=!1,m=!1}return s.jsx("div",{className:Il("fill-handle",d),style:{position:"absolute",left:n-(i+(h?r:0))/2,top:o-(i+(g?r:0))/2,width:i,height:i,borderLeft:h?`${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,...f})}));Nw.displayName="FillHandle";var Tz=function(){},$w=typeof window<"u",_z=$w?u.useLayoutEffect:u.useEffect,G9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Vw=$w&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(G9),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return _z(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[Tz,G9]};function e5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var jz=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=e5(o,t),i=typeof r=="function";n.push(i?r:()=>e5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)e5(n,t)}};const Lh=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:f,onTouchSelectStart:h,onTouchSelectEnd:g,currentTouchAnchor:m,scrollableElement:y,scrollableRoot:x=document.body,...v}=e,b=wt(h,[h]),w=wt(g,[g]),{bounds:M,coordsPivot:k,key:j}=u.useMemo(()=>{if(!n||!o)return null;let z=null,A=null;switch(r){case"tl":z={colIndex:n.colEnd,rowIndex:n.rowEnd},A={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":z={colIndex:n.colStart,rowIndex:n.rowStart},A={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 O=o.getRangeCoordsBounds(A?{rowStart:A.rowIndex,colStart:A.colIndex,rowEnd:A.rowIndex,colEnd:A.colIndex}:n);const N=o.getBounds(),F=o.getViewportSize(),E=N.x,B=N.y,H=F.width,U=F.height;switch(r){case"tl":break;case"br":O.x=O.x+O.width,O.y=O.y+O.height;break;case"t":O.x=H/2-E;break;case"b":O.x=H/2-E,O.y=O.y+O.height;break;case"l":O.y=U/2-B;break;case"r":O.x=O.x+O.width,O.y=U/2-B}const Z=o.toClipBounds(O,0);return!Z||Z.width<=0||Z.height<=0||O.x<0||O.y<0||O.x>H||O.y>U?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:O,coordsAnchor:null,coordsPivot:z,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),_=u.useRef(null),L=Ps(u.useMemo(()=>{const z=A=>r==="t"||r==="b"?{...A,colIndex:void 0}:r==="l"||r==="r"?{...A,rowIndex:void 0}:A;return{processTouch:!0,consumeTouch:!0,onPointerDown:(A,O)=>{const N=z(o.getCellCoordsFromClient(A.clientX,A.clientY));return _.current={coordsPivot:k},b?.(r),f.onSelectionPointerDown(A,O,o,N,k,!1,!0)},onPointerMoveOrWait:(A,O,N)=>{const F=z(o.getCellCoordsFromClient(A.clientX,A.clientY));return f.onSelectionPointerMoveOrWait(A,O,N,o,F,_.current?.coordsPivot,!0,!0)},onPointerUp:(A,O,N)=>(_.current=null,w?.(r),f.onPointerUp(A,O,N))}},[f,n,o,r])),[T,{y:D,x:C}]=Vw(),S=u.useRef(null),{getPortalContainer:R}=Dw(),[P,I]=u.useState(null);return u.useEffect(()=>{const z=S.current?.getBoundingClientRect();if(!z||!M)return void I(null);let A=0,O=0,N=y;for(;N;)A+=N.scrollLeft,O+=N.scrollTop,N=x&&N===x.parentElement?null:N.parentElement;I(yo.createPortal(s.jsx("div",{className:Il("touch-select-handle",p),ref:t,style:{position:"absolute",left:A+(z?.x??0)-(c+l)/2,top:O+(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:L,...v}),x??R(),j))},[D,C,M?.x,M?.y,M?.width,M?.height,p,m,a,c,l,i,y]),M?s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:jz([T,S]),style:{position:"absolute",left:M.x,top:M.y,opacity:0}}),P]}):null}));Lh.displayName="TouchSelectHandle";const Rr=-10,Rz=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),Hw=Object.freeze({colIndex:0,rowIndex:0}),zh=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??zh};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=Hw),$t.isEqualSelectionCoords(t,e)?e:t},wd=(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)},Iz=()=>!1,Ww=({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:f,onFillDone:h,onFill:g,disableFillDrag:m=!g,fillHandleBorderColor:y="white",hiddenRowsAt:x,hiddenColumnsAt:v,isContentfulCell:b,contentfulCellFinder:w=kz,getDataCoords:M,alwaysScrollToActiveCoords:k=!1,selectionBounds:j,pointerDownInterceptor:_,pointerMoveInterceptor:L,mergedRanges:T,canSelectionSpanMergedCells:D=Iz,onMoveDragStart:C,onMoveDragUpdate:S,onMoveDragEnd:R,onMoveDragDone:P,selectionRenderer:I=Fw,disableMoveDrag:z=!R,getCellCoordsAsRangeCoords:A=$t.cellToRange,moveDragHitSize:O=6,moveDragOutlineSize:N=4,selectionBackgroundColor:F="rgba(16, 124, 65, 0.1)",selectionBorderColor:E="rgb(33, 115, 70)",selectionRemoveBorderColor:B="rgb(255, 0, 0)",selectionRemoveBackgroundColor:H="rgba(250, 10, 10, 0.1)",disableTouchSelection:U=!1,touchSelectHandleProps:Z})=>{const G=u.useCallback(()=>({top:j?.top??0,left:j?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),V=wt(g,[g]),le=wt(p,[p]),re=wt(f,[f]),ge=wt(h,[h]),Q=wt(b,[b]),xe=wt(I,[I]),be=wt((q,Ce=!1)=>Uu(q,Ce,n.getRowOffset,Ce?G().bottom:G().top),[n?.getRowOffset]),Fe=wt(x??be,[x]),ee=wt((q,Ce=!1)=>Uu(q,Ce,n.getColOffset,Ce?G().right:G().left),[n?.getColOffset]),ae=wt(v??ee,[v]),[we,se]=u.useState(()=>Yr(o)),J=u.useMemo(()=>Yr(we),[we]),ce=u.useRef(J),ne=u.useRef(!0);u.useLayoutEffect(Qo.throttle(()=>{se(q=>{ne.current=!0;const Ce=Yr(o);return $t.isEqualSelectionCoords(Ce,q)?q:Ce})},0),[o]),u.useLayoutEffect(()=>{ce.current=J},[J]),u.useEffect(()=>{ne.current||!r||$t.isEqualSelectionCoords(o,J)||r(J)},[J]);const Pe=u.useCallback(q=>{se(Ce=>{ne.current=!1,Ce=Yr(Ce);let Y=typeof q=="function"?q(Ce.ranges):q??zh;if($t.isEqualRangesArrays(Y,Ce.ranges))return Ce;let me=Math.max(Y.length?0:-1,Math.min(Ce.rangeIndex,Y.length-1)),qe=Ce.cell;me===-1||$t.isCellWithinRange(qe,Y[me])||(qe={rowIndex:Y[me].rowStart,colIndex:Y[me].colStart}),Y.length===1&&$t.isSingleCell(Y[0])&&$t.isCellWithinRange(qe,Y[0])&&(Y=[],me=-1);const mt={cell:qe,ranges:Y,rangeIndex:me};return $t.isEqualSelectionCoords(mt,Ce)?Ce:mt})},[]),Ee=wt(q=>{se(Ce=>{ne.current=!1,Ce=Yr(Ce);const Y=q??Hw,me=A(Y);if(!$t.isSingleCell(me)&&Ce.ranges.length===0)return{ranges:[me],rangeIndex:0,cell:Y};if($t.isEqualCells(Y,Ce.cell))return Ce;let qe=Ce.ranges,mt=Ce.rangeIndex;Ce.ranges.length===1&&($t.isSingleCell(Ce.ranges[0])&&$t.isCellWithinRange(Y,Ce.ranges[0])||!$t.isCellWithinRange(Y,Ce.ranges[0]))&&(qe=[],mt=-1);const Ke={ranges:qe,rangeIndex:mt,cell:Y};return $t.isEqualSelectionCoords(Ke,Ce)?Ce:Ke})},[A]),[it,Ue]=u.useState(null),[ke,_e]=u.useState(null),Xe=u.useRef(null),[Be,ct]=u.useState(null),et=u.useRef(null),he=u.useRef(null),[Ye,Se]=u.useState(null),Ie=u.useRef(null),de=u.useRef(null),Oe=u.useRef(T);u.useEffect(()=>{Oe.current=T},[T]);const Le=wt((q,Ce={inline:"nearest",block:"nearest"})=>{let{rowIndex:Y,colIndex:me}=q;Y===void 0&&J?.cell&&(Y=J.cell.rowIndex),me===void 0&&J?.cell&&(me=J.cell.colIndex),Y!==void 0&&me!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:Y,colIndex:me},Ce)},[J]),je=u.useCallback(q=>{const Ce=G();return q.rowIndex<Ce.top||q.colIndex<Ce.left||q.colIndex>Ce.right||q.rowIndex>Ce.bottom},[]),K=wt((q,Ce)=>{if(!e?.current)return null;const Y={rowStart:Math.min(q.rowIndex,Ce.rowIndex),colStart:Math.min(q.colIndex,Ce.colIndex),rowEnd:Math.max(q.rowIndex,Ce.rowIndex),colEnd:Math.max(q.colIndex,Ce.colIndex)};if(D?.(Y))return Y;const me=A(q),qe=A(Ce),mt={rowStart:Math.min(me.rowStart,qe.rowStart),colStart:Math.min(me.colStart,qe.colStart),rowEnd:Math.max(me.rowEnd,qe.rowEnd),colEnd:Math.max(me.colEnd,qe.colEnd)};let Ke;return typeof Oe.current=="function"?Ke=Oe.current(mt):T&&(Ke=T),Ke?$t.extendRangeToUnionRanges(mt,Ke):mt},[D,A]),W=wt((q,Ce,Y)=>{const me=q.ranges.length>0?q.ranges[q.rangeIndex]:{rowStart:q.cell.rowIndex,colStart:q.cell.colIndex,rowEnd:q.cell.rowIndex,colEnd:q.cell.colIndex},qe={rowStart:Math.min(Ce.rowIndex??me.rowStart,Y.rowIndex??me.rowStart),colStart:Math.min(Ce.colIndex??me.colStart,Y.colIndex??me.colStart),rowEnd:Math.max(Ce.rowIndex??me.rowEnd,Y.rowIndex??me.rowEnd),colEnd:Math.max(Ce.colIndex??me.colEnd,Y.colIndex??me.colEnd)},mt={rowIndex:qe.rowStart,colIndex:qe.colStart},Ke={rowIndex:qe.rowEnd,colIndex:qe.colEnd};if(!je(mt)&&!je(Ke))return K(mt,Ke)},[K]),te=wt((q,Ce,Y)=>{if(l==="single"||!ce.current)return;const me=W(ce.current,q,Ce??ce.current.cell);if(!me)return;const qe=ce.current.rangeIndex;Pe(mt=>mt.length?mt.map((Ke,Wt)=>qe===Wt?me:Ke):[me]),Y&&me&&Ee({colIndex:me.colStart,rowIndex:me.rowStart})},[]),oe=u.useCallback((q,Ce,Y)=>{if(!ce.current)return;q={...ce.current?.cell,...q},Ce=Ce??q;const me=W(ce.current,q,Ce);if(!me)return;const qe={rowIndex:me.rowStart,colIndex:me.colStart},mt={...qe,...Y};c==="clear"?(Ie.current=mt,ie()):c==="modify"?te(qe):ue(qe),Ee(mt)},[]),ue=u.useCallback((q,Ce=q,Y)=>{l!=="multiple"||!q||je(q)||je(Ce)||se(me=>{ne.current=!1,me=Yr(me);const qe=K(q,Ce);if(!qe)return me;let mt=me.ranges.length>0?[...me.ranges]:[K(me.cell,me.cell)];mt.push(qe);const Ke={ranges:mt,cell:{rowIndex:qe.rowStart,colIndex:qe.colStart,...Y},rangeIndex:mt.length-1};return $t.isEqualSelectionCoords(Ke,me)?me:Ke})},[]),ie=()=>{Pe(zh)},pe=en.detectIt().primaryInput==="touch",fe=u.useRef(null),ye=u.useRef(null),De=u.useRef(null),Ve=u.useMemo(()=>({onPointerDown:q=>{if(!e||!e.current)return!1;const Ce=q.nativeEvent,Y=e.current.getViewFromClient(Ce.clientX,Ce.clientY);if(Ce.pointerType==="touch"||Ce.type==="touchstart")return ye.current={topLeft:Y.getScrollTopLeft(),point:{x:Ce.clientX,y:Ce.clientY}},!0;const me=Y.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!me)return!1;fe.current={anchor:Y.getAnchor(),coords:me},de.current=null;const qe=q.nativeEvent.which===3;if(qe&&$t.indexOfCoords(me,J.ranges)!==-1)return!1;const mt=q.nativeEvent.shiftKey,Ke=q.nativeEvent.ctrlKey||q.nativeEvent.metaKey,Wt=Ke,Mt=d,Bt=J.ranges.length>0,Ut=Ke&&Mt;if(_?.(q,me,J)===!1)return!1;i?.(ce.current,q.nativeEvent);const mn=!qe&&l!=="single";if(mt)return te(me),mn;const Vt=$t.isEqualCells(me,J.cell);if(Wt){if(Vt&&(!Ut||!Bt))return mn;if(Ke&&$t.indexOfCoords(me,J.ranges)!==-1&&Mt){et.current=me;const Nt=K(me,me);return he.current=Nt,ct(Nt),mn}return ue(me),mn}k&&Le(me),Vt&&J.ranges.length===0||oe(me)},onPointerMoveOrWait:Qo.throttle((q,Ce)=>{if(!e?.current||q.pointerType==="touch"||q.type==="touchmove"||!fe.current)return;const Y=fe.current.anchor;let me=e.current.getViewFromLocation(Y),qe=me.getCellCoordsFromClient(q.clientX,q.clientY);if(!$t.isEqualCells(qe,fe.current?.coords)&&(fe.current={anchor:Y,coords:qe},qe&&L?.(q,qe,ce.current)!==!1)){if(et.current){const mt={rowStart:Math.min(qe.rowIndex,et.current.rowIndex),colStart:Math.min(qe.colIndex,et.current.colIndex),rowEnd:Math.max(qe.rowIndex,et.current.rowIndex),colEnd:Math.max(qe.colIndex,et.current.colIndex)},Ke={rowIndex:mt.rowStart,colIndex:mt.colStart},Wt={rowIndex:mt.rowEnd,colIndex:mt.colEnd};if(je(Ke)||je(Wt))return;const Mt=K(Ke,Wt);he.current=Mt,ct(Mt)}else te(qe);De.current=Ce,wd(me,qe,e)}},60),onPointerUp:q=>{if(fe.current=null,q.pointerType==="touch"||q.type==="touchend"){if(ye.current){const Y=e.current.getViewFromClient(ye.current.point.x,ye.current.point.y),me=Y.getScrollTopLeft();if(me.left===ye.current.topLeft.left&&me.top===ye.current.topLeft.top){const qe=Y.getCellCoordsFromClient(ye.current.point.x,ye.current.point.y);oe(qe)}}return ye.current=null,void(fe.current=null)}try{a?.(ce.current,q)}catch(Y){console.warn(Y)}if(!et.current)return;const Ce=he.current;et.current=null,he.current=null,ct(null),se(Y=>{if(ne.current=!1,(Y=Yr(Y)).ranges.length===0)return Y;let me=[],qe=-1,mt=Y.cell;for(let Wt=0;Wt<Y.ranges.length;Wt++){const Mt=Y.ranges[Wt];if($t.isRangesIntersect(Mt,Ce)){const Bt=Qo.subtractRect({top:Mt.rowStart,left:Mt.colStart,bottom:Mt.rowEnd+1,right:Mt.colEnd+1},{top:Ce.rowStart,left:Ce.colStart,bottom:Ce.rowEnd+1,right:Ce.colEnd+1});for(let Ut=0;Ut<Bt.length;Ut++){const mn={rowStart:Bt[Ut].top,colStart:Bt[Ut].left,rowEnd:Bt[Ut].bottom-1,colEnd:Bt[Ut].right-1};me.push(mn),$t.isCellWithinRange(Y.cell,mn)&&(qe=me.length-1)}}else me.push(Mt);me.length>0&&qe===-1&&$t.isCellWithinRange(Y.cell,Mt)&&(qe=me.length-1,mt={rowIndex:me[me.length-1].rowStart,colIndex:me[me.length-1].colStart})}const Ke={cell:mt,rangeIndex:qe,ranges:me};return $t.isEqualSelectionCoords(Ke,Y)?Y:Ke})},processTouch:!0,consumeTouch:!1}),[J,l,d,k,c]),Je=wt(Ps(Ve),[]),ot=u.useMemo(()=>({onSelectionPointerDown:(q,Ce,Y,me,qe=J.cell,mt=k,Ke=q.nativeEvent.shiftKey,Wt=!1)=>{if(!e||!e.current)return!1;q.stopPropagation(),q.preventDefault(),q.nativeEvent.stopImmediatePropagation();const Mt=Y??e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),Bt=me??Mt.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!Bt)return!1;fe.current={anchor:Mt.getAnchor(),coords:Bt},de.current=null;const Ut=q.nativeEvent.which===3;if(Ut&&$t.indexOfCoords(Bt,J.ranges)!==-1)return!1;const mn=q.nativeEvent.ctrlKey||q.nativeEvent.metaKey,Vt=mn,Nt=d,io=J.ranges.length>0,Ct=mn&&Nt;if(_?.(q,Bt,J)===!1)return!1;i?.(ce.current,q.nativeEvent);const ln=!Ut&&l!=="single";if(Ke)return te(Bt,qe,Wt),ln;const go=$t.isEqualCells(Bt,qe);if(Vt){if(go&&(!Ct||!io))return ln;if(Ct&&$t.indexOfCoords(Bt,J.ranges)!==-1&&Nt){et.current=Bt;const pn=K(Bt,Bt);return he.current=pn,ct(pn),ln}return ue(Bt),ln}mt&&Le(Bt),go&&J.ranges.length===0||oe(Bt)},onSelectionPointerMoveOrWait:(q,Ce,Y,me,qe,mt=J.cell,Ke=!0,Wt=!1)=>{if(!e?.current||(q.stopPropagation(),q.preventDefault(),q.stopImmediatePropagation(),!fe.current))return;const Mt=fe.current.anchor;let Bt=me??e.current.getViewFromLocation(Mt),Ut=qe??Bt.getCellCoordsFromClient(q.clientX,q.clientY);if(!$t.isEqualCells(Ut,fe.current?.coords)&&(fe.current={anchor:Mt,coords:Ut},Ut&&L?.(q,Ut,ce.current)!==!1)){if(et.current){const mn={rowStart:Math.min(Ut.rowIndex,et.current.rowIndex),colStart:Math.min(Ut.colIndex,et.current.colIndex),rowEnd:Math.max(Ut.rowIndex,et.current.rowIndex),colEnd:Math.max(Ut.colIndex,et.current.colIndex)},Vt={rowIndex:mn.rowStart,colIndex:mn.colStart},Nt={rowIndex:mn.rowEnd,colIndex:mn.colEnd};if(je(Vt)||je(Nt))return;const io=K(Vt,Nt);he.current=io,ct(io)}else te(Ut,mt,Wt);Ke&&wd(Bt,Ut,e)}},onPointerUp:q=>{fe.current=null,q.stopPropagation(),q.preventDefault(),q.stopImmediatePropagation();try{a?.(ce.current,q)}catch(Y){console.warn(Y)}if(!et.current)return;const Ce=he.current;et.current=null,he.current=null,ct(null),se(Y=>{if(ne.current=!1,(Y=Yr(Y)).ranges.length===0)return Y;let me=[],qe=-1,mt=Y.cell;for(let Wt=0;Wt<Y.ranges.length;Wt++){const Mt=Y.ranges[Wt];if($t.isRangesIntersect(Mt,Ce)){const Bt=Qo.subtractRect({top:Mt.rowStart,left:Mt.colStart,bottom:Mt.rowEnd+1,right:Mt.colEnd+1},{top:Ce.rowStart,left:Ce.colStart,bottom:Ce.rowEnd+1,right:Ce.colEnd+1});for(let Ut=0;Ut<Bt.length;Ut++){const mn={rowStart:Bt[Ut].top,colStart:Bt[Ut].left,rowEnd:Bt[Ut].bottom-1,colEnd:Bt[Ut].right-1};me.push(mn),$t.isCellWithinRange(Y.cell,mn)&&(qe=me.length-1)}}else me.push(Mt);me.length>0&&qe===-1&&$t.isCellWithinRange(Y.cell,Mt)&&(qe=me.length-1,mt={rowIndex:me[me.length-1].rowStart,colIndex:me[me.length-1].colStart})}const Ke={cell:mt,rangeIndex:qe,ranges:me};return $t.isEqualSelectionCoords(Ke,Y)?Y:Ke})}}),[J,l,d,k,c]),tt=wt((q,Ce=!1,Y=!1,me=0)=>{if(!e.current||!J.cell)return;let qe=J.cell,mt=J.cell;if(Ce&&J.ranges.length>0){const Ct=J.ranges[J.rangeIndex],ln=J.cell;switch(q){case eo:mt={rowIndex:ln.rowIndex===Ct.rowStart?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colEnd},qe={rowIndex:ln.rowIndex===Ct.rowStart?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colStart};break;case to:mt={rowIndex:ln.rowIndex===Ct.rowEnd?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colEnd},qe={rowIndex:ln.rowIndex===Ct.rowEnd?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colStart};break;case Jn:mt={rowIndex:Ct.rowEnd,colIndex:ln.colIndex===Ct.colStart?Ct.colEnd:Ct.colStart},qe={rowIndex:Ct.rowStart,colIndex:ln.colIndex===Ct.colStart?Ct.colStart:Ct.colEnd};break;case Un:mt={rowIndex:Ct.rowEnd,colIndex:ln.colIndex===Ct.colEnd?Ct.colStart:Ct.colEnd},qe={rowIndex:Ct.rowStart,colIndex:ln.colIndex===Ct.colEnd?Ct.colEnd:Ct.colStart}}}const Ke=A(mt);let{rowStart:Wt,colStart:Mt}=Ke;const Bt=G();if(de.current)switch(q){case eo:case to:de.current.colIndex>=Ke.colStart&&de.current.colIndex<=Ke.colEnd&&(Mt=de.current.colIndex);break;case Jn:case Un:de.current.rowIndex>=Ke.rowStart&&de.current.rowIndex<=Ke.rowEnd&&(Wt=de.current.rowIndex)}if(!me){switch(q){case eo:Wt=qn(Fe,Math.max(Ke.rowStart-1,Bt.top),q);break;case to:Wt=qn(Fe,Math.min(Ke.rowEnd+1,Bt.bottom),q);break;case Jn:Mt=qn(ae,Math.max(Ke.colStart-1,Bt.left),q);break;case Un:Mt=qn(ae,Math.min(Ke.colEnd+1,Bt.right),q)}if(Y)switch(q){case eo:Wt=w({...mt,colIndex:J.cell.colIndex},Q,Fe,q,!1,Math.max(Bt.top,Fe(Bt.top,!1)));break;case to:Wt=w({...mt,colIndex:J.cell.colIndex},Q,Fe,q,!1,Math.min(Bt.bottom,Bt.bottom-Fe(Bt.bottom,!0)));break;case Jn:Mt=w({...mt,rowIndex:J.cell.rowIndex},Q,ae,q,!1,Math.max(Bt.left,ae(Bt.left,!1)));break;case Un:Mt=w({...mt,rowIndex:J.cell.rowIndex},Q,ae,q,!1,Math.min(Bt.right,Bt.right-ae(Bt.right,!0)))}}let Ut=null;if(me){let Ct=0;switch(q){case eo:Ct=n.getRowOffset(Wt+1),Wt=Math.max(Bt.top,n.getRowIndex(Ct-me)),Ut={top:n.getRowOffset(Wt+1)-(Ct-e.current.getScrollPosition().top)};break;case to:Ct=n.getRowOffset(Wt),Wt=Math.min(Bt.bottom,n.getRowIndex(Ct+me)),Ut={top:n.getRowOffset(Wt)-(Ct-e.current.getScrollPosition().top)};break;case Jn:Ct=n.getColOffset(Mt+1),Mt=Math.max(Bt.left,n.getColIndex(Ct-me)),Ut={left:n.getColOffset(Mt+1)-(Ct-e.current.getScrollPosition().left)};break;case Un:Ct=n.getColOffset(Mt),Mt=Math.min(Bt.right,n.getColIndex(Ct+me)),Ut={left:n.getColOffset(Mt)-(Ct-e.current.getScrollPosition().left)}}}const mn={rowIndex:Wt,colIndex:Mt},Vt=A(mn),Nt={rowIndex:Vt.rowStart,colIndex:Vt.colStart};Ce||(de.current=mn);const io=$t.isEqualCells(Ie.current,Nt)&&$t.isEqualCells(Ie.current,qe);if(Ce&&!io?te(Nt,qe):oe(Nt),Ut)e.current.scrollTo(Ut);else{if(Ce&&Ie.current){const Ct=G();if(q===Un&&Ie.current.colIndex===Ct.left||q===Jn&&Ie.current.colIndex===Ct.right||q===eo&&Ie.current.rowIndex===Ct.bottom||q===to&&Ie.current.rowIndex===Ct.top)return}q===Jn||q===Un?Le({colIndex:mn.colIndex}):q!==eo&&q!==to||Le({rowIndex:mn.rowIndex})}},[J,A]),Lt=wt(q=>{if(!e.current)return;if(J.ranges.length===0)return void tt(q);const Ce=A(J.cell);if($t.isEqualRangesArrays([Ce],J.ranges))return void tt(q);const Y=Ah(J,q,A,Fe,ae);se(me=>{ne.current=!1,me=Yr(me);const qe={...me,cell:Y.cell,rangeIndex:Y.rangeIndex};return $t.isEqualSelectionCoords(qe,me)?me:qe}),Y.cell&&Le(Y.cell)},[J,A]),At=u.useCallback(()=>{const q=G();te({rowIndex:q.top},{rowIndex:q.bottom})},[]),_t=u.useCallback(()=>{const q=G();te({colIndex:q.left},{colIndex:q.right})},[]),Yt=wt(()=>{J.cell&&e?.current&&Le(J.cell)},[J.cell]),Jt=u.useCallback((q=!1)=>{const Ce={rowIndex:G().top};q?te(Ce):oe(Ce),Le(Ce)},[]),Qt=u.useCallback((q=!1)=>{const Ce={rowIndex:G().bottom};q?te(Ce):oe(Ce),Le(Ce)},[]),rn=u.useCallback((q=!1)=>{const Ce={colIndex:G().left};q?te(Ce):oe(Ce),Le(Ce)},[]),yn=u.useCallback((q=!1)=>{const Ce=G(),Y={rowIndex:Ce.top,colIndex:Ce.left};q?te(Y):oe(Y),Le(Y)},[]),dn=u.useCallback((q=!1)=>{const Ce=G(),Y={colIndex:M?.()?.colEnd??Ce.right};q?te(Y):oe(Y),Le(Y)},[M]),kt=u.useCallback((q=!1)=>{const Ce=G(),Y={rowIndex:M?.()?.rowEnd??Ce.bottom,colIndex:M?.()?.colEnd??Ce.right};q?te(Y):oe(Y),Le(Y)},[M]),xn=wt(q=>{if(!e.current||J.ranges.length<=1)return;const Ce=q===Jn||q===eo;let Y=J.rangeIndex+(Ce?-1:1);Y<0?Y=J.ranges.length-1:Y>J.ranges.length-1&&(Y=0);const me=J.ranges[Y],qe=Ah({cell:{rowIndex:me.rowEnd,colIndex:me.colEnd},rangeIndex:0,ranges:[me]},Un,A,Fe,ae);se(mt=>{ne.current=!1,mt=Yr(mt);const Ke={...mt,cell:qe.cell,rangeIndex:Y};return $t.isEqualSelectionCoords(Ke,mt)?mt:Ke}),qe.cell&&Le(qe.cell)},[J,A]),tn=wt(()=>{const q=W9(J);se(Ce=>{ne.current=!1,Ce=Yr(Ce);const Y={...Ce,visibleSelection:q};return $t.isEqualSelectionCoords(Y,Ce)?Ce:Y}),q.cell&&Le(q.cell)},[J,A]),_n=wt(()=>{if(!e.current||J.ranges.length===0)return;const q=J.cell,Ce=J.ranges[J.rangeIndex],Y=W9({cell:q,rangeIndex:0,ranges:[Ce]}),me=Y.ranges[Y.rangeIndex];let qe;qe=me.rowStart===q.rowIndex&&me.colStart===q.colIndex?{rowIndex:me.rowStart,colIndex:me.colEnd}:me.rowStart===q.rowIndex&&me.colEnd===q.colIndex?{rowIndex:me.rowEnd,colIndex:me.colStart}:me.rowEnd===q.rowIndex&&me.colStart===q.colIndex?{rowIndex:me.rowEnd,colIndex:me.colEnd}:{rowIndex:me.rowStart,colIndex:me.colStart},se(mt=>{mt=Yr(mt);const Ke={...mt,cell:qe};return $t.isEqualSelectionCoords(Ke,mt)?mt:Ke}),qe&&Le(qe)},[J,A]),Nn=u.useCallback((q=!1)=>{tt(to,q,!1,e.current.getDimensions().containerHeight)},[]),fn=u.useCallback((q=!1)=>{tt(eo,q,!1,e.current.getDimensions().containerHeight)},[]),fo=u.useCallback((q=!1)=>{tt(Un,q,!1,e.current.getDimensions().containerWidth)},[]),bo=u.useCallback((q=!1)=>{tt(Jn,q,!1,e.current.getDimensions().containerWidth)},[]),Fo=u.useCallback(()=>{Lt(Jn)},[]),tr=u.useCallback(()=>{Lt(Un)},[]),_r=u.useCallback(()=>{Lt(eo)},[]),jr=u.useCallback(()=>{Lt(to)},[]),ui=u.useCallback(()=>{xn(Jn)},[]),Gi=u.useCallback(()=>{xn(Un)},[]),pi=u.useCallback(()=>{_n()},[]),pr=u.useCallback(()=>{tt(Jn,!1,!1)},[]),rt=u.useCallback(()=>{tt(Jn,!0,!1)},[]),ft=u.useCallback(()=>{tt(Jn,!1,!0)},[]),gt=u.useCallback(()=>{tt(Jn,!0,!0)},[]),ut=u.useCallback(()=>{tt(Un,!1,!1)},[]),vt=u.useCallback(()=>{tt(Un,!0,!1)},[]),jt=u.useCallback(()=>{tt(Un,!1,!0)},[]),Pt=u.useCallback(()=>{tt(Un,!0,!0)},[]),Rt=u.useCallback(()=>{tt(eo,!1,!1)},[]),zt=u.useCallback(()=>{tt(eo,!0,!1)},[]),Dt=u.useCallback(()=>{tt(eo,!1,!0)},[]),gn=u.useCallback(()=>{tt(eo,!0,!0)},[]),zn=u.useCallback(()=>{tt(to,!1,!1)},[]),Cn=u.useCallback(()=>{tt(to,!0,!1)},[]),Ne=u.useCallback(()=>{tt(to,!1,!0)},[]),yt=u.useCallback(()=>{tt(to,!0,!0)},[]),Ht=u.useCallback(()=>{Pe(q=>q.slice(0,-1))},[]),nn=u.useMemo(()=>{const q=G();return((Ce,Y,me,qe,mt)=>{for(let Ke=0;Ke<Ce.length;Ke++){const Wt=Ce[Ke];if(Wt.rowStart===Y&&Wt.colStart===me&&Wt.rowEnd===qe&&Wt.colEnd===mt)return!0}return!1})(J.ranges,q.top,q.left,q.bottom,q.right)},[j,J.ranges]),an=u.useCallback((q,Ce=!0)=>{Ie.current=q,Ee(q),Ce&&q&&e?.current&&Le(q)},[]),It=wt((q=!0)=>{const Ce=Xe.current;if(!ce.current?.cell)return;const Y=ce.current?.ranges,me=ce.current?.cell;if(!me||!Ce||!Ce)return;let qe=null;if(qe=Y.length>0?Y[Y.length-1]:A(me),qe.colEnd>=qe.colStart&&qe.rowEnd>=qe.rowStart){const mt=U9(qe,Ce);let Ke=q?V:le;try{Ke?.(qe,Ce,mt.direction)}catch(Wt){console.warn(Wt)}finally{q&&ge?.()}}},[A]),Pn=u.useRef(null),hr=Ps(u.useMemo(()=>({onPointerDown:(q,Ce)=>{if(De.current=Ce,!e||!e.current)return!1;const Y=e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),me=Y?.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);me&&(q.stopPropagation(),Ue("crosshair"),Pn.current={anchor:Y.getAnchor(),coords:me})},onPointerMoveOrWait:(q,Ce)=>{if(m||!e?.current||!ce.current||!Pn.current)return;const Y=Pn.current.anchor;let me=e.current.getViewFromLocation(Y),qe=me.getCellCoordsFromClient(q.clientX,q.clientY);if(!qe)return;Pn.current={anchor:Y,coords:qe};const mt=ce.current.ranges;let Ke=K(ce.current.cell,qe);if(!Ke)return;const Wt=mt.length>0,Mt=Wt?mt[mt.length-1]:A(ce.current.cell);if(!Ke)return;const Bt=Ke.rowStart<Mt.rowStart?eo:Ke.rowEnd>Mt.rowEnd?to:Ke.colEnd>Mt.colEnd?Un:Jn,Ut=G();Bt===Jn&&(Ke={...Mt,colStart:Math.max(Ut.left,Ke.colStart)}),Bt===eo&&(Ke={...Mt,rowStart:Math.max(Ut.top,Ke.rowStart)}),Bt===Un&&(Ke={...Mt,colEnd:Math.min(Ut.right,Ke.colEnd)}),Bt===to&&(Ke={...Mt,rowEnd:Math.min(Ut.bottom,Ke.rowEnd)});const mn=U9(Mt,Ke);if(!D?.(Mt)){let Vt;typeof Oe.current=="function"?Vt=Oe.current(Mt):T&&(Vt=T),Ke=((Nt,io,Ct,ln,go,pn)=>{const qt={...io};if(Ct.length===0)return qt;if(go===Jn){const vo=Nt.colEnd+1-Nt.colStart;qt.colStart=Nt.colStart-Math.ceil(pn/vo)*vo,qt.colStart<ln.left&&(qt.colStart=qt.colStart+Math.ceil((ln.left-qt.colStart)/vo)*vo)}else if(go===Un){const vo=Nt.colEnd+1-Nt.colStart;qt.colEnd=Nt.colEnd+Math.ceil(pn/vo)*vo,qt.colEnd>ln.right&&(qt.colEnd=qt.colEnd-Math.ceil((ln.right-qt.colEnd)/vo)*vo)}else if(go===eo){const vo=Nt.rowEnd+1-Nt.rowStart;qt.rowStart=Nt.rowStart-Math.ceil(pn/vo)*vo,qt.rowStart<ln.top&&(qt.rowStart=qt.rowStart+Math.ceil((ln.top-qt.rowStart)/vo)*vo)}else if(go===to){const vo=Nt.rowEnd+1-Nt.rowStart;qt.rowEnd=Nt.rowEnd+Math.ceil(pn/vo)*vo,qt.rowEnd>ln.bottom&&(qt.rowEnd=qt.rowEnd-Math.ceil((ln.bottom-qt.rowEnd)/vo)*vo)}return qt})(Mt,Ke,Vt,Ut,mn.direction,mn.amount)}if(Wt&&$t.isRangeWithinRange(Ke,Mt)&&(Ke=null),!$t.isEqualRanges(Ke,Xe.current)){if(_e(Ke),Xe.current=Ke,!Ke){try{re?.()}catch{}return void ge?.()}It(!1)}De.current=Ce,wd(me,qe,e)},onPointerUp:(q,Ce)=>{De.current=Ce,Promise.resolve(It(!0)).finally(()=>{ge?.(),_e(null),Xe.current=null,Pn.current=null,Ue(null),e.current?.focus()})}}),[A])),vr=u.useMemo(()=>({onPointerDown:hr}),[hr]),[un,Hn]=u.useState(null),On=u.useRef(null),Wn=Ps(u.useMemo(()=>({onPointerDown:(q,Ce)=>{if(De.current=Ce,!e||!e.current)return!1;const Y=e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),me=Y?.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!me)return;if(_?.(q,me,J)===!1)return!1;q.stopPropagation(),Ue("default");const qe=Y.getRelativePointFromClient(0,0),mt=ce.current?.ranges[ce.current?.ranges.length-1]??$t.cellToRange(ce.current?.cell),Ke=Y.toClipBounds(Y.getRangeCoordsBounds(mt)),Wt={x:0,y:0};Ke.x-qe.x>q.nativeEvent.clientX?Wt.x=q.nativeEvent.clientX-(Ke.x-qe.x):q.nativeEvent.clientX>=Ke.x-qe.x+Ke.width&&(Wt.x=Math.max(0,q.nativeEvent.clientX-(Ke.x-qe.x+Ke.width))+1),Ke.y-qe.y>q.nativeEvent.clientY?Wt.y=q.nativeEvent.clientY-(Ke.y-qe.y):q.nativeEvent.clientY>=Ke.y-qe.y+Ke.height&&(Wt.y=Math.max(0,q.nativeEvent.clientY-(Ke.y-qe.y+Ke.height))+1),C?.(mt,q.nativeEvent,Ce),On.current={range:mt,anchor:Y.getAnchor(),cell:me,isMoving:!1,extrusion:Wt}},onPointerMoveOrWait:(q,Ce,Y)=>{if(z||!e?.current||!ce.current||!On.current)return;const me=q.clientX-Y.clientX,qe=q.clientY-Y.clientY;if(On.current.isMoving=On.current.isMoving||Math.abs(me)>Math.max(1,2)||Math.abs(qe)>Math.max(1,2)||performance.now()-Y.timeStamp>500,!On.current.isMoving)return;const mt=On.current.anchor,Ke=On.current.extrusion;let Wt=e.current.getViewFromLocation(mt),Mt=Wt.getCellCoordsFromClient(q.clientX-Ke.x,q.clientY-Ke.y,!0);if(!Mt)return;const Bt=On.current.cell,Ut=On.current.range,mn=G(),Vt=Ut.colEnd-Ut.colStart+1,Nt=Math.min(Math.max(0,Bt.colIndex-Ut.colStart),Vt-1),io=Math.min(mn.right-Vt+1,Math.max(mn.left,Mt.colIndex-Nt)),Ct=Ut.rowEnd-Ut.rowStart+1,ln=Math.min(Math.max(0,Bt.rowIndex-Ut.rowStart),Ct-1),go=Math.min(mn.bottom-Ct+1,Math.max(mn.top,Mt.rowIndex-ln)),pn={colStart:io,colEnd:io+Vt-1,rowStart:go,rowEnd:go+Ct-1};var qt;$t.isEqualRanges(un,pn)&&!(!(qt=q)||!De.current||De.current.ctrlKey!==qt.ctrlKey||De.current.shiftKey!==qt.shiftKey||De.current.altKey!==qt.altKey||De.current.metaKey!==qt.metaKey)||(Hn(pn),S?.(pn,q,Ce)),De.current=Ce,wd(Wt,Mt,e)},onPointerUp:(q,Ce)=>{De.current=Ce;const Y=()=>{Hn(null),On.current=null,Ue(null),e.current?.focus()};if(!On.current)return void Y();const me=On.current.range,qe=un;R?.(me,q,Ce),Promise.resolve(me&&qe&&P?.(me,qe,q,Ce)).finally(()=>{Y()})}}),[un])),Dn=u.useMemo(()=>({onPointerDown:Wn}),[Wn]),mo=u.useRef(null),Ze=u.useMemo(()=>{const q=$t.isEqualSelectionCoords(J,mo.current)?mo.current:J;return mo.current=q,q},[J]),ve=u.useCallback(q=>{let Ce=null,Y="br";const me=[],qe={stroke:y,fill:F,strokeWidth:.5},mt=(Vt,Nt,io)=>{const Ct=q.toClipBounds(q.getRangeCoordsBounds(Vt),Rr);if(!Ct)return;Ct.x=Ct.width>0?Ct.x:Ct.x-qe.strokeWidth/2,Ct.y=Ct.height>0?Ct.y:Ct.y-qe.strokeWidth/2,Ct.width=Math.max(Ct.width,qe.strokeWidth),Ct.height=Math.max(Ct.height,qe.strokeWidth);const ln={key:`selection-fill-${Nt}`,range:Vt,...Ct,...qe};if(io){const go=q.getCellCoordsAsRangeCoords(io);ln.cell=io,ln.pathBounds=q.toClipBounds(q.getRangeCoordsBounds(go),Rr),ln.pathBounds&&(ln.pathBounds.width<=0||ln.pathBounds.height<=0)&&(delete ln.pathBounds,delete ln.cell)}return xe(ln)};let Ke=J?Yr(J):null;const Wt=Ke?.cell?q.getCellCoordsAsRangeCoords(Ke?.cell):Rz;!Ke||Ke.ranges&&Ke.ranges.length!==0||(Ke={ranges:[Wt],rangeIndex:0,cell:Ke.cell});for(let Vt=0;Ke&&Vt<Ke.ranges.length;Vt++){const Nt=Ke.ranges[Vt],io=mt(Nt,Vt,Vt===Ke.rangeIndex?Ke.cell:null);io&&me.push(io);const Ct=2,ln=.5,go=q.toClipBounds(q.getRangeCoordsBounds(Nt,{top:0,left:0,right:0,bottom:0}),Rr);if(go){const pn=(Ke.ranges.length,4);me.push(xe({range:Nt,key:`selection-inside-edge-${Vt}`,x:go.x-1,y:go.y-1,width:Math.max(go.width+1,0),height:Math.max(go.height+1,0),style:{overflow:"hidden"},stroke:y,strokeWidth:pn}))}if(Ke.ranges.length===1){const pn=q.toClipBounds(q.getRangeCoordsBounds(Nt),Rr);if(pn){z||me.push(xe({range:Nt,key:`move-selection-hit-box-${Vt}`,x:pn.width>1?pn.x:pn.x-(O/2+1),y:pn.height>1?pn.y:pn.y-(O/2+1),width:Math.max(pn.width+2,1),height:Math.max(pn.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:un?void 0:"move",pointerEvents:"stroke"},strokeWidth:O,...Dn}));const qt=Ct;me.push(xe({range:Nt,key:`selection-single-${Vt}`,x:pn.x-qt/2,y:pn.y-qt/2,width:Math.max(pn.width+qt/2,1),height:Math.max(pn.height+qt/2,1),stroke:E,strokeWidth:qt}))}}else{const pn=q.toClipBounds(q.getRangeCoordsBounds(Nt,{top:-1,left:-1,right:-2,bottom:-2}),Rr);pn&&me.push(xe({range:Nt,key:`selection-multi-${Vt}`,x:pn.width>1?pn.x:pn.x-ln/2,y:pn.height>1?pn.y:pn.y-ln/2,width:Math.max(pn.width,ln)+1,height:Math.max(pn.height,ln)+1,stroke:E,style:{overflow:"hidden"},strokeWidth:2}))}if(Ke.ranges.length>1&&Vt===Ke.rangeIndex){const pn=q.getCellCoordsAsRangeCoords(Ke.cell),qt=q.toClipBounds(q.getRangeCoordsBounds(pn,{top:1,left:1,right:-1,bottom:-1}),Rr);qt&&me.push(xe({range:Nt,key:`selection-anchor-${Vt}`,x:qt.x,y:qt.y,width:Math.max(qt.width,ln),height:Math.max(qt.height,ln),stroke:E,style:{overflow:"hidden"},strokeWidth:2}))}if(Vt===Ke.ranges.length-1){Ce=null,Y=null;const pn=Nt.rowStart===G().top&&Nt.rowEnd===G().bottom,qt=Nt.colStart===G().left&&Nt.colEnd===G().right,vo=q.getRangeCoordsBounds(Nt);let Bo=null;if(pn||qt){if(Bo=q.toClipBounds(vo,Rr),Object.keys(q.allViews()).length>1){const Zl=q.getVisibleRangeCoords(),Xl=q.allViews()[$u],U2=q.allViews()[Yc],ar=q.allViews()[Jc],wo=q.getAnchor();(qt&&(wo===Yc&&Xl||wo===Jr&&ar||!$t.isCellWithinRange({colIndex:Nt.colStart,rowIndex:Nt.rowEnd},Zl)&&!$t.isCellWithinRange({colIndex:Nt.colStart,rowIndex:Nt.rowEnd+1},Zl))||pn&&(wo===Jc&&Xl||wo===Jr&&U2||!$t.isCellWithinRange({colIndex:Nt.colEnd,rowIndex:Nt.rowStart},Zl)&&!$t.isCellWithinRange({colIndex:Nt.colEnd+1,rowIndex:Nt.rowStart},Zl)))&&(Bo=null)}}else Bo=q.toClipBounds(vo,Rr);if(!Bo||Bo.width===0||Bo.height===0)continue;Ce={x:Bo.x+Bo.width+1,y:Bo.y+Bo.height+1},Bo.width===0||Bo.height===0||Nt.rowStart===G().top&&Nt.colStart===G().left&&Nt.rowEnd===G().bottom&&Nt.colEnd===G().right||(pn?(Ce.y=Ct,Y="tr"):qt&&(Ce.x=Ct,Y="bl"))}}let Mt=null;if(Be){const Vt=q.toClipBounds(q.getRangeCoordsBounds(Be,{top:0,left:0,right:0,bottom:0}),Rr);Vt&&(Mt=xe({...qe,range:Be,key:"remove-selection",x:Vt.x,y:Vt.y,width:Vt.width,height:Vt.height,strokeWidth:2,stroke:B,fill:H}))}let Bt=null;if(ke){const Vt=q.toClipBounds(q.getRangeCoordsBounds(ke,{top:0,left:0,right:0,bottom:0}),Rr);Vt&&(Bt=xe({range:ke,key:"selection-fill-outline",x:Vt.x-1,y:Vt.y-1,width:Vt.width+1,height:Vt.height+1,strokeWidth:2,stroke:E,strokeDasharray:"3 2"}))}let Ut=null;!m&&Ce&&!un&&(Ut=u.createElement(Nw,{...Ce,corner:Y,size:7.5,borderStroke:`${y} solid`,style:{borderRadius:1},background:E,...vr,key:"fillHandle"}));const mn=[...me];if(Mt&&mn.push(Mt),Bt&&mn.push(Bt),Ut&&mn.push(Ut),!U&&pe&&Ke?.ranges.length===1&&Ke.ranges[Ke.ranges.length-1]){const Vt=Ke.ranges[Ke.ranges.length-1],Nt=Vt.rowStart===G().top&&Vt.rowEnd===G().bottom,io=Vt.colStart===G().left&&Vt.colEnd===G().right,Ct={view:q,range:Vt,borderStroke:`${E} solid`,background:y,selectionTouchPointerHandler:ot,...Z,onTouchSelectStart:ln=>Se(ln),onTouchSelectEnd:()=>Se(null),currentTouchAnchor:Ye};mn.push(s.jsx(Lh,{anchor:io?"b":Nt?"r":"br",scrollableElement:e.current,...Ct},"touch-select-handle-after")),mn.push(s.jsx(Lh,{anchor:io?"t":Nt?"l":"tl",scrollableElement:e.current,...Ct},"touch-select-handle-before"))}if(un){const Vt=q.toClipBounds(q.getRangeCoordsBounds(un,{top:1,left:1,right:1,bottom:1}),Rr);Vt&&mn.push(xe({range:un,key:"selection-move-outline",x:Vt.x-N/2,y:Vt.y-N/2,width:Math.max(Vt.width+N/2,1),height:Math.max(Vt.height+N/2,1),stroke:E,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:N}))}return s.jsx("div",{children:mn},"selection")},[Ze,Be,m,ke,z,un,G,y,E,F,B,H,U,Z,Ye]),St=u.useMemo(()=>{const q=()=>e.current;return[new wn("moveToPageDown",q,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>Nn(!1)),new wn("selectToPageDown",q,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[Vo]}]},()=>Nn(!0)),new wn("moveToPageRight",q,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[ul]}]},()=>fo(!1)),new wn("selectToPageRight",q,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[ul,Vo]}]},()=>fo(!0)),new wn("moveToPageUp",q,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>fn(!1)),new wn("selectToPageUp",q,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[Vo]}]},()=>fn(!0)),new wn("moveToPageLeft",q,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[ul]}]},()=>bo(!1)),new wn("selectToPageLeft",q,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[ul,Vo]}]},()=>bo(!0)),new wn("selectColumn",q,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[mr]}},At),new wn("selectRow",q,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[Vo]}},_t),new wn("selectToColumnStart",q,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>Jt(!0)),new wn("selectToColumnEnd",q,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Qt(!0)),new wn("moveToRowStart",q,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>rn(!1)),new wn("selectToRowStart",q,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[Vo]}]},()=>rn(!0)),new wn("moveToSheetStart",q,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr]}]},()=>yn(!1)),new wn("selectToSheetStart",q,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr,Vo]}]},()=>yn(!0)),new wn("moveToRowEnd",q,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>dn(!1)),new wn("selectToRowEnd",q,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[Vo]}]},()=>dn(!0)),new wn("moveToSheetEnd",q,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr]}]},()=>kt(!1)),new wn("selectToSheetEnd",q,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr,Vo]}]},()=>kt(!0)),new wn("scrollToActiveCoords",q,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[mr]}},Yt),new wn("scrollToActiveCoordsClearSelection",q,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[Vo]}},()=>{ie(),an(J.cell,!0)}),new wn("traverseSelectionRight",q,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},tr),new wn("traverseSelectionLeft",q,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[Vo]}},Fo),new wn("traverseSelectionDown",q,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},jr),new wn("traverseSelectionUp",q,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[Vo]},{key:"NumpadEnter",modifiers:[Vo]}]},_r),new wn("moveLeft",q,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},pr),new wn("selectLeft",q,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[Vo]}]},rt),new wn("moveContentfulLeft",q,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr]}]},ft),new wn("selectContentfulLeft",q,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr,Vo]}]},gt),new wn("moveRight",q,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},ut),new wn("selectRight",q,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[Vo]}]},vt),new wn("moveContentfulRight",q,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr]}]},jt),new wn("selectContentfulRight",q,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr,Vo]}]},Pt),new wn("moveUp",q,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},Rt),new wn("selectUp",q,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[Vo]}]},zt),new wn("moveContentfulUp",q,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr]}]},Dt),new wn("selectContentfulUp",q,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr,Vo]}]},gn),new wn("moveDown",q,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},zn),new wn("selectDown",q,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[Vo]}]},Cn),new wn("moveContentfulDown",q,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr]}]},Ne),new wn("selectContentfulDown",q,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr,Vo]}]},yt),new wn("selectVisible",q,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[ul]}},tn),new wn("traverseSelectionPreviousRange",q,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[mr,ul]}},ui),new wn("traverseSelectionNextRange",q,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[mr,ul]}},Gi),new wn("traverseSelectionCorners",q,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[mr]}},pi)]},[]);return u.useMemo(()=>{t?.addCommands(St,!0)},[t]),{selection:Ze,setSelectionCell:an,setSelectionRanges:Pe,overlay:ve,cursor:it,onPointerDown:Je,clearLastSelection:Ht,newSelection:oe,modifySelection:te,appendSelection:ue,clearSelections:ie,isEntire:nn,navigate:tt,navigateSelection:Lt}};function tu(e,t){if(!e)throw new Error("Invariant failed")}const Z9={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},Pz=Object.freeze({top:0,left:0}),Oz=Object.freeze({bottom:-4,right:-4}),Dz=Object.freeze({horizontal:!0,vertical:!0}),X9=[$u,Yc,Jc,Jr],ea=3e3,t5={},Uw=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:f,onImmediateScroll:h,showGridLines:g=!0,gridLineColor:m="rgb(224, 224, 224)",gridLineRowsProps:y,gridLineColumnsProps:x,clipCells:v=!0,cursor:b,freezeLeft:w=0,freezeTop:M=0,freezeLeftProps:k,freezeTopProps:j,cellRenderer:_,onViewportChange:L,onFirstRender:T,overlayRenderer:D,overlayProps:C,overlays:S,overlaysProps:R,allowOverlaysOverflow:P=!1,stageProps:I,stageWrapper:z=null,hiddenRowsAt:A,hiddenColumnsAt:O,hiddenCellAt:N,getVisibleCells:F,zoom:E=1,enableMouseWheel:B=!0,onWheelScroll:H,getCellCoordsAsRangeCoords:U=$t.cellToRange,scrollPoint:Z=Pz,style:G={},...V}=e;tu(_),tu(!e?.children);const le=wt(h,[h]),re=wt(L,[L]),ge=wt(f,[f]),Q=wt(H,[H]),xe=wt(T,[T]),be=u.useRef(null),Fe=u.useRef(null),ee=u.useRef(null),[ae,we]=u.useReducer(rt=>rt+1,0),[se,J]=u.useState({left:Z?.left??0,top:Z?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),ce=u.useRef(null),ne=u.useRef(se),{top:Pe,left:Ee,verticalScrollDirection:it,horizontalScrollDirection:Ue}=se,ke=u.useRef(!1),_e=(rt=>{const{rowCount:ft,columnCount:gt,defaultRowHeight:ut,getRowHeight:vt,defaultColumnWidth:jt,getColumnWidth:Pt}=rt||{},Rt=u.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),zt=wt(Pn=>N9({itemType:"row",itemCount:ft,itemSize:vt??(()=>ut??20),instanceProps:Rt.current,offset:Pn}),[ft,vt,ut]),Dt=wt(Pn=>Pn===-1?0:Ss({itemType:"row",index:Pn,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).offset,[vt,ut]),gn=wt(Pn=>Ss({itemType:"row",index:Pn,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).size,[vt,ut]),zn=wt(Pn=>N9({itemType:"column",itemCount:gt,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current,offset:Pn}),[gt,Pt,jt]),Cn=wt(Pn=>Pn===-1?0:Ss({itemType:"column",index:Pn,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current}).offset,[Pt,jt]),Ne=wt(Pn=>Ss({itemType:"column",index:Pn,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current}).size,[Pt,jt]),[yt,Ht]=u.useReducer(Pn=>Pn+1,0),nn=()=>({getRowOffset:Dt,getColOffset:Cn,getRowIndex:zt,getColIndex:zn}),[an,It]=u.useState(()=>rt?nn():null);return u.useEffect(()=>{It(rt?nn():null)},[yt,ft,gt,jt,ut,gn,Ne]),an})({rowCount:r,columnCount:i,defaultRowHeight:a,defaultColumnWidth:l,getRowHeight:c,getColumnWidth:d}),Xe=u.useRef(null),Be=u.useMemo(()=>{const rt=p||_e;return Xe.current=null,{getColOffset:ft=>rt.getColOffset(ft)*E,getColIndex:ft=>rt.getColIndex(ft/E),getRowOffset:ft=>rt.getRowOffset(ft)*E,getRowIndex:ft=>rt.getRowIndex(ft/E)}},[_e,p,E]),ct=(rt,ft,gt)=>{const ut=(ft?.left??0)+0,vt=(ft?.top??0)+0;return{getColOffset:jt=>rt.getColOffset(jt)-ut,getColIndex:jt=>rt.getColIndex(jt+ut),getRowOffset:jt=>rt.getRowOffset(jt)-vt,getRowIndex:jt=>rt.getRowIndex(jt+vt)}},et=u.useCallback((rt,ft=!1)=>Uu(rt,ft,Be.getRowOffset,ft?0:r),[r,Be?.getRowOffset]),he=wt(A??et,[A]),Ye=u.useCallback((rt,ft=!1)=>Uu(rt,ft,Be.getColOffset,ft?i:0),[i,Be?.getColOffset]),Se=wt(O??Ye,[O]),Ie=u.useMemo(()=>Math.min(n??800,Be.getColOffset(i)),[Be.getColOffset,i,n]),de=u.useMemo(()=>Math.min(o??600,Be.getRowOffset(r)),[Be.getRowOffset,r,o]),Oe=u.useCallback(rt=>{Qo.canUseDOM&&setTimeout(()=>{be.current?.focus({preventScroll:!0,...rt})},0)},[]),Le=u.useCallback(rt=>be.current?.contains(rt)||Fe.current?.contains(rt),[]);u.useEffect(()=>{ke.current&&(ce.current&&ce.current.left!==ne.current?.left&&ce.current.top!==ne.current?.top||(ce.current=null,ge?.({left:Ee,top:Pe})))},[Ee,Pe]);const je=wt(()=>({top:Pe,left:Ee}),[Pe,Ee]),K=u.useMemo(()=>{const rt=[];let ft=0,gt=0;typeof M=="number"?ft=M:(ft=M.index??0,gt=(M.scrollOffset??0)*E);const ut=gt,vt=Be.getRowOffset(ft),jt=vt-ut;if(ft>0){const zn=ct(Be,{top:gt+Be.getRowOffset(0)}),Cn=Be.getRowIndex(ut),Ne=Be.getRowIndex(vt-1);let yt;rt[1]={minIndex:Cn,maxIndex:Ne,minCoord:0,maxCoord:ft-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(vd(he,Cn,Ne)),yt),layout:zn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Pt=Math.max(0,de-jt),Rt=ct(Be,{top:Pe+jt}),zt=Rt.getRowIndex(0),Dt=Rt.getRowIndex(Pt);let gn;return rt[0]={minIndex:zt,maxIndex:Dt,minCoord:ft,maxCoord:r-1,minBounds:jt,maxBounds:Pt,visibleIndices:()=>gn||(gn=Object.freeze(vd(he,zt,Dt)),gn),layout:Rt,maxVirtualBounds:Be.getRowOffset(r),scrollOffset:Pe,freezeOffset:(ft>0?Be.getRowOffset(ft):0)-gt},rt},[Be.getRowIndex,Be.getRowOffset,he,de,r,M,Pe,E]),W=u.useMemo(()=>{const rt=[];let ft=0,gt=0;typeof w=="number"?ft=w:(ft=w.index??0,gt=(w.scrollOffset??0)*E);const ut=gt,vt=Be.getColOffset(ft),jt=vt-ut;if(ft>0){const zn=ct(Be,{left:gt+Be.getColOffset(0)}),Cn=Be.getColIndex(ut),Ne=Be.getColIndex(vt-1);let yt;rt[1]={minIndex:Cn,maxIndex:Ne,minCoord:0,maxCoord:ft-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(vd(Se,Cn,Ne)),yt),layout:zn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Pt=Math.max(0,Ie-jt),Rt=ct(Be,{left:Ee+jt}),zt=Rt.getColIndex(0),Dt=Rt.getColIndex(Pt);let gn;return rt[0]={minIndex:zt,maxIndex:Dt,minCoord:ft,maxCoord:i-1,minBounds:jt,maxBounds:Pt,visibleIndices:()=>gn||(gn=Object.freeze(vd(Se,zt,Dt)),gn),layout:Rt,maxVirtualBounds:Be.getColOffset(i),scrollOffset:Ee,freezeOffset:(ft>0?Be.getColOffset(ft):0)-gt},rt},[Be.getColIndex,Be.getColOffset,Se,Ie,i,w,Ee,E]),te=u.useRef({}),oe=u.useRef([]),ue=u.useMemo(()=>{let rt={};const ft=(ut,vt,jt,Pt,Rt)=>{const zt={vertical:Pt?.vertical||!1,horizontal:Pt?.horizontal||!1};if(ut>=W.length||vt>=K.length)return null;const Dt={rowStart:K[vt].minIndex,colStart:W[ut].minIndex,rowEnd:K[vt].maxIndex,colEnd:W[ut].maxIndex};if(Dt.rowStart>Dt.rowEnd||Dt.colStart>Dt.colEnd)return null;const gn={getColIndex:un=>W[ut].layout.getColIndex(un),getColOffset:un=>W[ut].layout.getColOffset(un),getRowIndex:un=>K[vt].layout.getRowIndex(un),getRowOffset:un=>K[vt].layout.getRowOffset(un)},zn=Object.freeze({left:Rt?.left??0,top:Rt?.top??0,right:Rt?.right??0,bottom:Rt?.bottom??0}),Cn=Object.freeze({x:W[ut].minBounds,y:K[vt].minBounds,width:W[ut].maxBounds,height:K[vt].maxBounds}),Ne=(un,Hn)=>K9(gn,un??Dt,Hn),yt={width:W[ut].maxVirtualBounds,height:K[vt].maxVirtualBounds},Ht={left:W[ut].scrollOffset,top:K[vt].scrollOffset},nn={left:W[ut].freezeOffset,top:K[vt].freezeOffset},an={width:Ie,height:de};let It=null,Pn=null;const hr=(nn.top+(Pt.vertical?Ht.top:0))/E,vr=(nn.left+(Pt.horizontal?Ht.left:0))/E;return{getStage:()=>be.current??null,getVisibleRangeCoords:()=>Dt,toClipBounds:(un,Hn)=>{let On,Wn=0;return Hn===void 0||typeof Hn=="number"?(On=Ne(Dt),Wn=Hn):On=Hn,((Dn,mo,Ze=0)=>{if(Dn.x>mo.width||Dn.y>mo.height)return null;const ve={left:Dn.x,top:Dn.y,bottom:Dn.height+Dn.y,right:Dn.width+Dn.x},St={left:mo.x+Ze,top:mo.y+Ze,bottom:mo.height-2*Ze+mo.y,right:mo.width-2*Ze+mo.x},q={left:Math.max(ve.left,St.left),top:Math.max(ve.top,St.top),bottom:Math.min(ve.bottom,St.bottom),right:Math.min(ve.right,St.right)},Ce={x:q.left,y:q.top,width:q.right-q.left,height:q.bottom-q.top};return Ce.height<0||Ce.width<0?null:Ce})(un??{x:0,y:0,width:Cn.width,height:Cn.height},On,Wn)},toViewBounds:un=>vr===0&&hr===0&&E===1?un:{x:(un.x-vr)*E,y:(un.y-hr)*E,width:un.width*E,height:un.height*E},toAbsoluteBounds:un=>vr===0&&hr===0&&E===1?un:{x:un.x/E+vr,y:un.y/E+hr,width:un.width/E,height:un.height/E},getRelativePointFromClient:(un,Hn)=>{const On=Ve(un,Hn);return{x:On.x-Cn.x,y:On.y-Cn.y}},getLayout:()=>gn,getCellCoordsAsRangeCoords:U,getVisibleColumns:()=>W[ut].visibleIndices(),getVisibleRows:()=>K[vt].visibleIndices(),getVisibleColumnOffsets:()=>(It||(It=q9(W[ut].layout,!0,W[ut].visibleIndices(),Dt.colStart,Dt.colEnd)),It),getVisibleRowOffsets:()=>(Pn||(Pn=q9(K[vt].layout,!1,K[vt].visibleIndices(),Dt.rowStart,Dt.rowEnd)),Pn),getTotalRangeCoords:()=>({colStart:W[ut].minCoord,colEnd:W[ut].maxCoord,rowStart:K[vt].minCoord,rowEnd:K[vt].maxCoord}),getRangeCoordsBounds:Ne,scrollCellCoordsIntoView:(un,Hn)=>rn(un,Hn,jt),getCellCoordsFromClient:(un,Hn,On=!1)=>{const Wn=Ve(un,Hn);if(!Wn)return null;const Dn=gn.getColIndex(Wn.x-Cn.x),mo={rowIndex:gn.getRowIndex(Wn.y-Cn.y),colIndex:Dn};if(On)return mo;const Ze=U(mo);return{rowIndex:Ze.rowStart,colIndex:Ze.colStart}},getZoom:()=>E,getAnchor:()=>jt,getBounds:()=>Cn,getInsets:()=>zn,getTotalSize:()=>yt,getViewportSize:()=>an,getScrollTopLeft:()=>Ht,getFreezeTopLeft:()=>nn,getScrollOrientation:()=>zt,allViews:()=>rt}};let gt=rt[Jr]=ft(0,0,Jr,Dz,Oz);return gt&&(rt[Jr]=gt),gt=ft(0,1,Yc,{horizontal:!0}),gt&&(rt[Yc]=gt),gt=ft(1,0,Jc,{vertical:!0}),gt&&(rt[Jc]=gt),gt=ft(1,1,$u,{}),gt&&(rt[$u]=gt),te.current=null,rt=Object.freeze(rt)},[K,W,U]),ie=Object.keys(ue),pe=W[0]?.maxVirtualBounds??0,fe=K[0]?.maxVirtualBounds??0,ye=u.useMemo(()=>({left:W[1]?W[1].layout.getColOffset(W[1].maxIndex+1):0,top:K[1]?K[1].layout.getRowOffset(K[1].maxIndex+1):0}),[ue]);u.useEffect(()=>{if(oe.current.length>0){for(let rt=0;rt<oe.current.length;rt++)oe.current[rt]();oe.current=[]}},[ue]);const De=wt(()=>({containerWidth:Ie,containerHeight:de,totalWidth:pe,totalHeight:fe}),[Ie,de,Be]);u.useEffect(()=>{!ce.current&&ke.current&&re({top:Pe,left:Ee,width:Ie,height:de,totalWidth:pe,totalHeight:fe})},[Pe,Ee,pe,fe]),u.useEffect(()=>{ke.current&&re({top:Pe,left:Ee,width:Ie,height:de,totalWidth:pe,totalHeight:fe})},[Ie,de]);const Ve=u.useCallback((rt,ft)=>{tu(typeof rt=="number"&&typeof ft=="number");const gt=be.current?.getBoundingClientRect();return gt?{x:rt-gt.x,y:ft-gt.y}:{x:rt,y:ft}},[]),Je=wt(rt=>ue[rt]||null,[ue]),ot=wt((rt,ft)=>{if(Object.keys(ue).length===1)return ue[Jr];const gt=Ve(rt,ft);if(!gt)return null;const{x:ut,y:vt}=gt;let jt=null;const Pt=X9;for(let Rt=0;!jt&&Rt<Pt.length;Rt++){const zt=ue[Pt[Rt]];zt&&Ez(ut,vt,zt.getBounds())&&(jt=zt)}return jt||(jt=ue[Jr]),jt},[ue,U]),tt=wt(()=>ue[Jr].getVisibleRangeCoords(),[ue[Jr]]),Lt=u.useRef(null),At=u.useCallback(()=>{Lt.current!==null&&Qo.cancelTimeout(Lt.current),Lt.current=Qo.requestTimeout(_t,150)},[]),_t=u.useCallback(()=>{Lt.current=null,J(rt=>{const ft={...rt,verticalScrollDirection:null,horizontalScrollDirection:null};return ne.current=ft,ft})},[]),Yt=wt(rt=>{const ft=rt?.left??rt?.[0],gt=rt?.top??rt?.[1],ut=ft!==void 0?Math.min(pe-Ie,Math.max(W?.[1]?.scrollOffset??0,ft)):ne.current.left,vt=gt!==void 0?Math.min(fe-de,Math.max(K?.[1]?.scrollOffset??0,gt)):ne.current.top;if(ne.current.left===ut&&ne.current.top===vt)return;let jt=null,Pt=null;ne.current.left>ut?jt=Jn:ne.current.left<ut&&(jt=Un),ne.current.top>vt?Pt=eo:ne.current.top<vt&&(Pt=to),Qo.throttle(()=>{J(Rt=>{const zt={...Rt,left:ut,top:vt,horizontalScrollDirection:jt,verticalScrollDirection:Pt};return ne.current=zt,zt})},17)(),ce.current?.top===vt&&ce.current?.left===ut||(ce.current={left:ut,top:vt},le({left:ut,top:vt}),re({left:ut,top:vt,width:Ie,height:de,totalWidth:pe,totalHeight:fe})),At()},[pe,fe,K,W]);u.useEffect(()=>{ce.current||Yt({left:Ee,top:Pe})},[pe,Ie,fe,de]),u.useLayoutEffect(()=>{ce.current={left:Z?.left,top:Z?.top},Yt(ce.current)},[Z?.left,Z?.top]);const Jt=wt(rt=>{const ft=rt?.left??rt?.[0],gt=rt?.top??rt?.[1],ut=rt?.behavior??"auto",vt={left:ne.current.left+(ft??0),top:ne.current.top+(gt??0)};ut&&(vt.behavior=ut),Yt(vt)},[pe,Ie,fe,de]),Qt=u.useCallback(rt=>{let ft=null;if(Object.keys(ue).length>1){const gt=X9;for(let ut=0;!ft&&ut<gt.length;ut++){const vt=ue[gt[ut]];vt&&$t.isCellWithinRange(rt,vt.getVisibleRangeCoords())&&(ft=vt)}}return ft||(ft=ue[Jr]),ft},[ue]),rn=wt((rt,ft={inline:"nearest",block:"nearest"},gt=null)=>{const ut={rowIndex:0,colIndex:0,...rt};let vt=null;if(gt!==null){if(vt=ue[gt],vt===null)return new Promise((nn,an)=>{an("Invalid view")})}else vt=Qt(ut);const jt=U(ut),Pt=vt.getLayout(),Rt=Pt.getColOffset(jt.colStart),zt=Pt.getRowOffset(jt.rowStart),Dt=Pt.getColOffset(jt.colEnd+1),gn=Pt.getRowOffset(jt.rowEnd+1),zn=vt.getBounds(),Cn=vt.getTotalSize(),Ne=vt.getScrollTopLeft(),yt={...((nn,an,It=!0)=>(It=It===!0?{block:"start",inline:"end"}:It===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...It},{left:H9(It.inline,nn.x,nn.x+nn.width,an.left,an.left+an.width,an.totalWidth),top:H9(It.block,nn.y,nn.y+nn.height,an.top,an.top+an.height,an.totalHeight)}))({x:Rt+Ne.left,y:zt+Ne.top,width:Dt-Rt,height:gn-zt},{left:Ne.left,top:Ne.top,width:zn.width,height:zn.height,totalWidth:Cn.width,totalHeight:Cn.height},ft)};yt.left>Ee?yt.left+=20:yt.left<Ee&&(yt.left-=0),yt.top>Pe?yt.top+=20:yt.top<Pe&&(yt.top-=0);const Ht=vt.getScrollOrientation();return Ht.horizontal&&rt.colIndex!==void 0||delete yt.left,Ht.vertical&&rt.rowIndex!==void 0||delete yt.top,new Promise((nn,an)=>{try{Yt(yt),nn(yt)}catch(It){an(It)}})},[pe,fe,ue,U]),yn=wt(rt=>{const ft=rt.shiftKey;rt.preventDefault();const{deltaX:gt,deltaY:ut,deltaMode:vt}=rt;if(ee.current||Q?.(rt)===!1)return;let jt=ft?ut:gt,Pt=ut;const Rt=ft||Math.abs(jt)>Math.abs(Pt);vt===1&&(Pt*=0),ee.current=window.requestAnimationFrame(()=>{ee.current=null,Jt(Rt?{left:jt}:{top:Pt})})},[pe,Ie,fe,de,Q]),dn=u.useCallback((rt=null)=>{Xe.current=null,te.current=null,we()},[]);u.useLayoutEffect(()=>{dn()},[_]);const kt=D2(t,()=>({stage:be.current,focus:Oe,contains:Le,invalidate:dn,scrollTo:Yt,scrollBy:Jt,scrollCellCoordsIntoView:rn,getScrollPosition:je,getDimensions:De,getViewport:tt,handleWheel:yn,rowCount:r,columnCount:i,getLayout:()=>Be,getRelativePointFromClient:Ve,getViewFromClient:ot,getViewFromCellCoords:Qt,getViewFromLocation:Je,onViewChangeOnce:rt=>{oe.current.push(rt)}}),[r,i,ue]);u.useEffect(()=>(B&&kt.current?.addEventListener("wheel",yn,{passive:!1}),ke.current=!0,ce.current=null,()=>{kt.current?.removeEventListener("wheel",yn)}),[B]);const xn=u.useRef([]),tn=(rt,ft)=>{!rt||!D||(xn.current=[],ft.push((gt=>{const ut=`view:${gt.getAnchor()}:overlay:${ft.length}`,vt=D?.({key:ut,view:gt},Pt=>xn.current[0]=Pt);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`)})(rt)))},_n=u.useMemo(()=>{const rt={},ft=Object.keys(ue);for(let gt=0;gt<ft.length;gt++){const ut=ft[gt],vt=[];tn(ue[ut],vt),rt[ut]={overlays:vt}}return rt},[ae,D,r,i,K,W]),Nn=(rt,ft,gt,ut,vt,jt,Pt)=>{if(!rt)return;const Rt=rt.getVisibleColumns(),zt=rt.getVisibleRows();if(Rt.length===0||zt.length===0)return;let Dt=null;if(F)Dt=F(rt);else{Dt=[];for(let Hn=0;Hn<zt.length;Hn++)for(let On=0;On<Rt.length;On++){const Wn={rowIndex:zt[Hn],colIndex:Rt[On]};if(N?.(Wn))continue;const Dn={coords:Wn,range:U(Wn)};Dt.push(Dn)}}const gn=rt.getVisibleColumnOffsets(),zn=rt.getVisibleRowOffsets(),Cn=rt.getScrollTopLeft(),Ne=rt.getFreezeTopLeft(),yt=Cn.left+Ne.left,Ht=Cn.top+Ne.top,nn=Math.trunc(yt/ea),an=Math.trunc(Ht/ea),It={},Pn=(Hn,On,Wn,Dn,mo)=>{const Ze=`view:${Hn.getAnchor()}:cell:${V9(On.rowIndex,On.colIndex)}`,ve=Dn.x,St=Dn.y,q=Math.trunc((yt+ve)/ea)-nn,Ce=Math.trunc((Ht+St)/ea)-an;It[Ce]||(It[Ce]={});let Y=It[Ce][q];Y||(Y=It[Ce][q]=[]);let me=jt?.get(Ze);if(!me){const qe=(yt+ve)%ea,mt=(Ht+St)%ea;me=_({key:Ze,coords:On,bounds:Dn,zoom:E,range:Wn,view:Hn,value:mo,style:{left:en.boundPixel(qe),top:en.boundPixel(mt),width:en.boundPixel(Dn.width,!0),height:en.boundPixel(Dn.height,!0)}})}Pt?.set(Ze,me),Y.push(me)};for(let Hn=0;Dt&&Hn<Dt.length;Hn++){const On=Dt[Hn],Wn=On?.coords??On;if(!Wn)continue;const Dn=On?.range??{rowStart:Wn.rowIndex,colStart:Wn.colIndex,rowEnd:Wn.rowIndex,colEnd:Wn.colIndex},mo=rt.getVisibleRangeCoords();if(!$t.isRangesIntersect(Dn,mo)&&!$t.isRangeWithinRange(Dn,mo))continue;const Ze=Dn&&!$t.isSingleCell(Dn);if(!Ze&&N?.(Wn))continue;const ve=Wn.rowIndex,St=Wn.colIndex,q=zn[ve],Ce=gn[St];let Y=null;q&&Ce&&(Y={x:Ce.offset,y:q.offset,width:Ce.size,height:q.size});const me=V9(Dn.rowStart,Dn.colStart);if(Ze){if(vt.has(me))continue;vt.add(me),Dn.rowEnd-Dn.rowStart>0&>.push(Dn),Dn.colEnd-Dn.colStart>0&&ut.push(Dn)}if(Ze&&(Y=K9(rt.getLayout(),Dn)),!Y){console.warn("no bounds for cell",me);continue}const qe=On?.value;Pn(rt,Wn,Dn,Y,qe)}const hr=yt%ea,vr=Ht%ea,un=Object.keys(It);for(let Hn=0;Hn<un.length;Hn++){const On=It[un[Hn]];if(!On)continue;const Wn=Object.keys(On);for(let Dn=0;Dn<Wn.length;Dn++){const mo=On[Wn[Dn]];if(!mo)continue;const Ze=parseInt(un[Hn]),ve=parseInt(Wn[Dn]),St=Ze+an,q=ve+nn,Ce=`view:${rt.getAnchor()}:segment:${q}:${St}`;ft.push(s.jsx("div",{className:"cell-container",style:{transform:`translate(${en.boundPixel(ve*ea-hr,!0)}px, ${en.boundPixel(Ze*ea-vr,!0)}px)`,willChange:"transform"},children:mo},Ce))}}},fn=u.useMemo(()=>{const rt=Xe.current,ft=new Map,gt={},ut=Object.keys(ue);for(let vt=0;vt<ut.length;vt++){const jt=ut[vt],Pt=[],Rt=[],zt=[];Nn(ue[jt],zt,Pt,Rt,new Set,rt,ft),gt[jt]={cells:zt,rangesH:Pt,rangesV:Rt}}return Xe.current=ft,gt},[ae,r,i,K,W,g,G,v,N,F,U]),fo=(rt,ft,gt,ut,vt)=>{if(rt)if(ft){const jt=`view:${rt.getAnchor()}:hl:`,Pt=rt.getVisibleRows();if(!Pt||Pt.length===0)return;const Rt=0,zt=rt.getBounds().width;let Dt=[];const gn=vt.sort($t.rowFirstRangeComparator),zn=rt.getVisibleRangeCoords();for(let Cn=0;Cn<Pt.length&&Pt[Cn]<=zn.rowEnd;Cn++){const Ne=Pt[Cn];if(Ne<zn.rowStart)continue;let yt=!1;for(;gn.length>0&&gn[0].rowStart<=Ne;){const It=gn.shift();It.rowEnd>Ne&&(Dt.push(It),yt=!0)}yt&&(Dt=Dt.sort($t.columnFirstRangeComparator));const Ht=rt.getLayout(),nn=Ht.getRowOffset(Ne+1);let an=Rt;for(let It=0;It<Dt.length+1;It++){let Pn=an,hr=zt;const vr=Dt[It];It<Dt.length&&(hr=Math.min(zt,Ht.getColOffset(vr.colStart)),an=Math.min(zt,Ht.getColOffset(vr.colEnd+1))),ut.push(u.createElement("path",{d:`M ${en.boundPixel(Pn)} ${en.boundPixel(nn,!1,gt)} L ${en.boundPixel(hr)} ${en.boundPixel(nn,!1,gt)}`,stroke:m,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y,key:jt+Ne+":"+It}))}for(let It=Dt.length-1;It>=0;It--)Dt[It].rowEnd<=Pt[Cn+1]&&Dt.splice(It,1)}}else{const jt=`view:${rt.getAnchor()}:vl:`,Pt=rt.getVisibleColumns();if(!Pt||Pt.length===0)return;const Rt=0,zt=rt.getBounds().height;let Dt=[];const gn=vt.sort($t.columnFirstRangeComparator),zn=rt.getVisibleRangeCoords();for(let Cn=0;Cn<Pt.length&&Pt[Cn]<=zn.colEnd;Cn++){const Ne=Pt[Cn];if(Ne<zn.colStart)continue;let yt=!1;for(;gn.length>0&&gn[0].colStart<=Ne;){const It=gn.shift();It.colEnd>Ne&&(Dt.push(It),yt=!0)}yt&&(Dt=Dt.sort($t.rowFirstRangeComparator));const Ht=rt.getLayout(),nn=Ht.getColOffset(Ne+1);let an=Rt;for(let It=0;It<Dt.length+1;It++){let Pn=an,hr=zt;const vr=Dt[It];It<Dt.length&&(hr=Math.min(zt,Ht.getRowOffset(vr.rowStart)),an=Math.min(zt,Ht.getRowOffset(vr.rowEnd+1)));let un=m;ut.push(s.jsx("path",{d:`M ${en.boundPixel(nn,!1,gt)} ${en.boundPixel(Pn)} L ${en.boundPixel(nn,!1,gt)} ${en.boundPixel(hr)}`,stroke:un,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x},jt+Ne+":"+It))}for(let It=Dt.length-1;It>=0;It--)Dt[It].colEnd<=Pt[Cn+1]&&Dt.splice(It,1)}}},bo=rt=>{if(!fn)return;const ft={};for(let gt=0;gt<ie.length;gt++){const ut=ie[gt],vt=ue[ut],jt=[];fo(vt,rt,0,jt,rt?fn[ut].rangesH:fn[ut].rangesV);const Pt=vt.getRangeCoordsBounds(),Rt=Math.ceil(Pt.width),zt=Math.ceil(Pt.height);ft[ut]=s.jsx("svg",{width:`${Rt}`,height:`${zt}`,viewBox:`0 0 ${Rt} ${zt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:jt})}return ft},Fo=u.useMemo(()=>g===!0||g?.horizontal===!0?bo(!0):null,[ae,g,K,M,w,m,y,r,i,Ie,pe,fn]),tr=u.useMemo(()=>g===!0||g?.vertical===!0?bo(!1):null,[ae,g,W,M,w,m,x,r,i,de,fe,fn]),_r=u.useMemo(()=>ye.left===0?null:s.jsx(Cs,{linePoints:[0,0,0,de+1],bounds:{x:ye.left,y:0,width:1,height:de+1},...k}),[ae,ye.left,de,k]),jr=u.useMemo(()=>ye.top===0?null:s.jsx(Cs,{linePoints:[0,0,Ie+1,0],bounds:{x:0,y:ye.top,width:Ie+1,height:1},...j}),[ae,ye.top,Ie,j]),ui=u.useMemo(()=>{const rt=[],ft=gt=>{if(!gt||!ue[gt])return;const ut=ue[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],fn?.[gt].cells]},`view:${gt}`)};for(let gt=0;gt<ie.length;gt++)rt.push(ft(ie[gt]));return s.jsx(s.Fragment,{children:rt})},[ue,Fo,tr,fn]),Gi=u.useMemo(()=>{if(!t)return;const rt=(Pt,Rt,zt,Dt)=>{if(!Dt||Dt.length===0)return;const gn=[];for(let zn=0;zn<Dt.length;zn++){const Cn=Dt[zn];let Ne=Pt?.get(Cn);Ne!==t5&&(Ne=Cn(zt)??t5),Rt.set(Cn,Ne),Ne&&Ne!==t5&&gn.push(Ne)}return gn},ft=(Pt,Rt,zt)=>{if(!zt)return;const Dt=zt.getBounds(),gn=zt.getInsets(),zn=zt.getAnchor();return s.jsxs("div",{className:Il("view",`view-${zn}`,Z9.view),style:{position:"absolute",pointerEvents:"none",left:Dt.x-gn.left,top:Dt.y-gn.top,width:Dt.width-(gn.left+gn.right),height:Dt.height-(gn.top+gn.bottom),clipPath:P?"inset(-2px)":"inset(0px)"},children:[rt(Pt,Rt,zt,S),_n?.[zn].overlays]},`view:${zn}`)},gt=te.current,ut={},vt=[],jt=Object.keys(ue);for(let Pt=0;Pt<jt.length;Pt++){const Rt=jt[Pt],zt=gt?.[Rt],Dt=ut[Rt]=new Map;vt.push(ft(zt,Dt,ue[Rt]))}return te.current=ut,vt},[ae,ue,P,S]),pi=u.useMemo(()=>{const{style:rt,...ft}=I??{};return s.jsx("div",{style:{width:Ie,height:de,...rt},className:"sheetxl-stage",tabIndex:0,ref:be,...ft,...V,children:z?z(ui):ui})},[Ie,de,ui,I,z]),pr=u.useRef(!1);return u.useEffect(()=>{!pr.current&&fn&&(pr.current=!0,xe?.(kt.current))},[fn]),s.jsxs("div",{className:Il("sheetxl-grid",Z9["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Ie,maxHeight:de,width:Ie,height:de,...G},ref:kt,children:[pi,s.jsxs("div",{className:Il("sheetxl-overlays"),ref:Fe,...R,children:[Gi,_r,jr]})]})}));Uw.displayName="BaseGrid";const L2=u.memo(u.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...a}=e,[l,{width:c,height:d}]=Vw();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(Uw,{ref:t,width:n??c,height:o??d,...a})})})}));L2.displayName="Grid";const Az=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:f,...h}=e,[g,m]=u.useState(null),y=u.useRef(null),x=u.useRef(null);tu(!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(Ow,{className:p,style:d,ref:y,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:a,viewport:g,onScrollViewport:v,children:s.jsx(L2,{style:{width:"100%",height:"100%"},...h,onViewportChange:b=>m(b),ref:x})})}));Az.displayName="ScrollableGrid";const Y9=()=>!1,qw=u.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=S=>`${S}`,headerStyle:a,headerStyleSelect:l=a,headerStyleSelectAll:c=l,headerStyleHover:d=c,verticalPadding:p=0,horizontalPadding:f=0,isSelected:h=Y9,isSelectedAll:g=Y9,coords:m,bounds:y,range:x,orientation:v,view:b,style:w,...M}=e,k=r/100,j=u.useRef(null),[_,L]=u.useState(!1),T=h?.(t)||!1,D=g?.(t)?c:T?l:a;let C=D;if(_){let S=d;typeof d=="function"&&(S=d(D)),C=Qo.mergeContentful(D,S)}return s.jsx("div",{ref:j,style:{background:C.fill,color:C.text?.fill,fontFamily:C.text?.fontFamily??a.text?.fontFamily,fontSize:96*(C.text?.fontSize??11)/72*k,fontStyle:C.text?.fontStyle,fontWeight:C.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${k}px`,...w,left:w.left-(v===Hr?1:0),top:w.top-(v===Ma?1:0),width:w.width+1,height:w.height+1,overflow:"hidden"},...M,onMouseMove:S=>{en.detectIt().primaryInput!=="touch"&&S.buttons===0&&L(!0)},onMouseOut:S=>{L(!1)},children:i(t)})});qw.displayName="HeaderRenderer";const Kw="ew-resize",Gw="ns-resize",Lz=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:f,isSelectedAll:h,showTouchDivider:g,headerStyle:m,headerStyleSelect:y,headerStyleSelectAll:x,headerStyleHover:v,bounds:b,onPointerDown:w,onAutoFit:M,...k}=e,j=n===Hr;let _=m;f&&y&&(_=y),h&&x&&(_=x);const L=en.detectIt().primaryInput==="touch";let T=j?14:8,D=T/2,C=0;d&&(C=-2),p&&(C=2),p&&(T=T/2+C,D=2*C);let S=_.dividerStrokeFill??_.strokeFill;return!(f||h)&&C===0&&(S=`linear-gradient(${j?180:90}deg, ${_.fill}, ${S} 55%, ${S} 100%)`),s.jsxs("div",{className:Il("header-divider",{disabled:l},i,`index-${r}`),ref:t,onPointerDown:L?void 0:w,onDoubleClick:L?void 0:()=>M?.(),style:{top:(j?0:-T/2+(C-1))+"px",left:(j?-T/2+(C-1):0)+"px",width:j?T:"calc(100% + 1px)",height:j?"calc(100% + 1px)":T,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:l||c||L?void 0:j?Kw:Gw,...a},...k,children:[s.jsx("div",{style:{position:"relative",top:`${j?0:D}px`,left:`${j?D:0}px`,width:j?1:"100%",height:j?"100%":1,background:S},onDoubleClick:()=>M?.()}),g&&L?s.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:j?"-6px":"2px",bottom:j?"2px":"-9px",height:"24px",width:j?"24px":"18px",maxHeight:j?"calc(100% - 4px)":void 0,maxWidth:j?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:j?void 0:"rotate(90deg)"}})}):null]})})),zz=(e,t)=>s.jsx(Lz,{...e,ref:t}),Fz=u.memo(u.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:a=!1,resizeThreshold:l=1,dividerRenderer:c=zz,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g,onDividerAutoFit:m,onPointerDown:y,...x}=e,v=wt(y,[y]),b=wt(m,[m]),w=n===Hr;let M=w?o.getVisibleColumns():o.getVisibleRows(),k=null;M.length>0&&(w?k=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:M[0],colEnd:M[M.length-1]}):o.getRangeCoordsBounds({rowStart:M[0],rowEnd:M[M.length-1],colStart:0,colEnd:0}),k=o.toClipBounds(k,Rr));const j=u.useRef(null),[_,L]=u.useState(null),T=(A,O)=>w?A.clientX-O.clientX:A.clientY-O.clientY,D=o.getLayout(),C=w?D.getColOffset(r+1):D.getRowOffset(r+1),S=Ps({processTouch:!0,onPointerDown:A=>{if(v?.(A),!i&&!a){const O=w?D.getColOffset(r):D.getRowOffset(r),N=C-O;j.current={isResizing:!1,startSize:N,index:r,view:o,orientation:n,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g},L(j.current),d?.(r,N)}A.stopPropagation(),A.preventDefault()},onPointerUp:(A,O,N)=>{if(!j.current)return;j.current.isResizing&&j.current.onDividerResizeEnd?.(j.current.index,Math.max(0,j.current.startSize+T(A,N)),j.current.startSize);const F=j.current;j.current=null,L(j.current),F.onDividerMouseUp?.(F.index)},onPointerMoveOrWait:(A,O,N)=>{if(!j.current)return;const F=T(A,N);j.current.isResizing?j.current.onDividerResize?.(j.current.index,Math.max(0,j.current.startSize+F),j.current.startSize):Math.abs(F)>Math.max(1,l)&&(j.current={...j.current,isResizing:!0},L(j.current),j.current.onDividerResizeStart?.(j.current.index,Math.max(0,j.current.startSize+F))),A.stopPropagation(),A.preventDefault()}}),R=wt(()=>{b?.(r)},[r]);if(!k)return;const P=c({bounds:k,orientation:n,view:o,index:r,disabled:i,disabledResize:a,onAutoFit:R,onPointerDown:S,...x},t);if(!P)return;const{getPortalContainer:I}=Dw();let z=null;return _&&_.isResizing&&_.index===r&&(z=yo.createPortal(s.jsx("div",{style:{position:"absolute",cursor:w?Kw:Gw,left:0,top:0,width:"100%",height:"100%"}}),I(),"divider:"+r)),s.jsxs(s.Fragment,{children:[z,s.jsx("div",{className:Il("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${w?k.y:C}px`,left:`${w?C:k.x}px`,width:(w?0:k.width-1)+"px",height:(w?k.height-1:0)+"px",display:"flex"},tabIndex:-1,children:P})]})}));let Bz=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 Nz=Object.freeze({clean:$z,dirty:void 0,editMode:!1});var $z;u.memo(u.forwardRef((e,t)=>{const{editState:n=Nz,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:a,onCancelEdit:l,onDoneEdit:c,containerBounds:d,setNaturalDimensions:p,onNavigate:f,textProperties:h,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 M=h?.align||"left",k=h?.vAlign||"middle",j=h?.fill||"#040404",_=h?.wrap||"wrap",L=h?.fontFamily||"Calibri",T=h?.fontSize||11,D=h?.fontWeight||400,C=h?.fontStyle||"normal",S=b.dirty??b.clean??"";let R=2;const P=96*T/72,I=1.2*P;k==="right"&&(R+=1);const z=u.useMemo(()=>new Bz().naturalDimensions(S,{maxWidth:_==="wrap"?v-R:void 0,lineHeight:`${I}px`,paintableText:{fontStyle:C,wrap:_,letterSpacing:-.25}}),[S,_,R,P,L,D,C,p,v]),A=u.useCallback(()=>z.maxLineHeight?z.maxLineHeight+"px":"1.2",[z]),[O,N]=u.useState(A);u.useLayoutEffect(()=>{N(A())},[d,z]),u.useLayoutEffect(()=>{p?.({width:_==="wrap"?void 0:z.width+R,height:z.height})},[z,p]);const F=wt(i,[i]),E=wt(re=>{if(b.dirty===re)return;const ge={...b};ge.dirty=re,x.current,w(ge),F?.(ge)},[b]),B=wt(re=>{if(b.editMode===re)return;const ge={...b};ge.editMode=re,w(ge),F?.(ge)},[b]),H=wt(()=>{try{return a?.(b),c?.(),!0}catch{return!1}},[a,b]),U=wt(()=>{w(n),l?.(),c?.()},[l,n]),Z=wt(re=>{if(!x.current)return;if(re.isDefaultPrevented(),!(re.isTrusted||re.nativeEvent.ctrlKey||re.nativeEvent.metaKey||re.nativeEvent.altKey||re.nativeEvent.isComposing)&&hf.indexOf(re.nativeEvent.key)!==-1){const Q={...b};return Q.dirty=re.nativeEvent.key==="Backspace"?"":(Q.dirty??"")+re.key,w(Q),F?.(Q),void re.preventDefault()}const ge=re.nativeEvent.shiftKey;if(re.which===27)return re.preventDefault(),void U();if(re.which===113)return B(!0),void re.preventDefault();if(re.which===13&&(re.preventDefault(),H()&&f?.(ge?eo:to)),re.which===9)return re.preventDefault(),void(H()&&f?.(ge?Jn:Un));if(!b.editMode){let Q=null;switch(re.which){case 37:Q=Jn;break;case 39:Q=Un;break;case 38:Q=eo;break;case 40:Q=to}if(Q)return void H()}},[b,f]),[G,V]=u.useState(!m);u.useEffect(()=>{V(!1)},[]);const le=D2(t,()=>({startEdit(re){let ge=re?.initialSelection;if(!ge){const xe=x.current.value.length??0;ge={start:xe,end:xe,direction:"forward"}}x.current?.setSelectionRange(ge.start,ge.end,ge.direction);const Q={...n,editMode:re?.editMode??!1};re?.text!==void 0&&(Q.dirty=re.text),Q.editMode===n.editMode&&Q.dirty===n.dirty||(w(Q),F?.(Q))},submitEdit:()=>H(),cancelEdit(){U()},autoFocus(){x.current?.focus()},getLineHeight:()=>z?.maxLineHeight??I,dispatchEvent:re=>x.current.dispatchEvent(re)}),[n,r]);return s.jsx("div",{ref:le,...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:S,autoFocus:!1,disabled:G,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${P}px`,fontFamily:`${L}`,fontWeight:`${D}`,fontStyle:`${C}`,padding:"0px",marginRight:M==="right"?"3px":"0px",marginLeft:M==="left"?"2px":"0px",lineHeight:O,height:z.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:M,background:"transparent",color:j,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:_==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:re=>{E(re.target.value)},onDoubleClick:re=>{re.isTrusted},onMouseDown:re=>{B(!0)},onKeyDown:Z})})})),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 t1=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:t1},Symbol.toStringTag,{value:"Module"}));const Zw=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),Fh=(e,t=!0,n=Zw)=>{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=Gt.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},Vz=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:Zw,findNextFontSize:Fh},Symbol.toStringTag,{value:"Module"})),J9=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,f=r,h=i;let g="red",m=[],y=[];return t===zo.TopLeft?(g=a?"rgb(255, 198, 246)":"green",m.push(h),y.push(h),m.push(h+f),y.push(h),m.push(h),y.push(h+f)):t===zo.TopRight?(g=a?"rgb(0, 255, 255)":"red",m.push(n-h),y.push(h),m.push(n-(h+f)),y.push(h),m.push(n-h),y.push(h+f)):t===zo.BottomRight?(g=a?"rgb(236, 252, 211)":"purple",m.push(n-h),y.push(o-h),m.push(n-(h+f)),y.push(o-h),m.push(n-h),y.push(o-(h+f))):t===zo.BottomLeft&&(g=a?"rgb(255, 236, 183)":"blue",m.push(h),y.push(o-h),m.push(h+f),y.push(o-h),m.push(h),y.push(o-(h+f))),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})})}),Hz=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,f]=u.useState(!1),h=Math.min(Math.min(18,t.height-8),t.width);return s.jsx("div",{style:{width:`${h}px`,height:`${h}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:(h>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:r?void 0:"pointer",...l},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!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})})})},Wz=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:a,zoom:l=1,view:c,bodyStyle:d,normalStyle:p,showFormulas:f,showZeros:h,docTheme:g,onLinkMouseDown:m,onFilterButtonMouseDown:y,filterButtonProps:x,createFilterButton:v=Hz,...b}=e,w=o.height/l,M=o.width/l,k=t,j=k.getValue(),_=t.getStyle(),L=d?.darkMode??!1;let T,D;const C=j&&j.isFormulaError,S=C&&j instanceof $.FormulaError.Parse;let R,P=f||S;if(P)if(k.isSpillOverflow())D="";else{const et=k.getFormulaText();et?D=et:T=k.getNumberFormat($.NumberFormat.Type.General)}else T=k.getNumberFormat();P||(R=k.getTextOverflow());const I=R?R.colBounds.width+R.leftOffset+R.rightOffset:M,z=R?R.anchorBounds.x-R.leftOffset:0,A=R?R.anchorBounds.width:M,O=R?R.anchorBounds.x:0;let N,F=k.getRenderHorizontalAlignment();T&&(N=T?.formattedRuns,D=N?.runs[0]?.text??T.displayText);const E=k.getCalcStatus()===$.ICell.CalcStatus.Pending;let B=null,H=_.getFill().toCSS(L,o),U=0,Z=0;if(!_.getBorder().isEmpty()){const et=_.getBorder().getRight();!et.isNone()&&$.IBorder.BuiltInDefinitions.get(et.getStyle()).width>1&&(U=1);const he=_.getBorder().getBottom();!he.isNone()&&$.IBorder.BuiltInDefinitions.get(he.getStyle()).width>1&&(Z=1)}let G=null;if(M!==A||U||Z||typeof H?.backgroundPosition=="number"){const{backgroundPosition:et,...he}=H,Ye=et??0,Se=c?.getScrollTopLeft(),Ie=Ye?-(o.x+(Se.left??0))%Ye:0,de=Ye?-(o.y+(Se.top??0))%Ye:0;(et!==void 0||U||Z||M!==A)&&(Object.keys(he).length===1&&he.background==="none"||(H=null,G=s.jsx("div",{className:"fill",style:{marginLeft:`${Ie}px`,marginTop:`${de}px`,left:O*l,width:jn.boundPixel(A*l-Ie+1+U),height:jn.boundPixel(o.height-de+1+Z),...he}},"background")))}let V=null;const le=k.getComments(),re=k.getWarnings(),ge=k.getErrors();if(le||C||ge.length>0||re.length>0){const et={size:7*l,darkMode:L,cellWidth:A*l+2,cellHeight:w*l+2,style:{top:-1,left:O*l-1}};V=V??[],(re.length>0||ge.length>0||C)&&V.push(s.jsx(J9,{anchorLocation:zo.TopLeft,...et},`indicator-${V.length}`)),le&&V.push(s.jsx(J9,{anchorLocation:zo.TopRight,...et},`indicator-${V.length}`))}const Q=_.getFont();let xe=T?.conditionalColor;const be=_.getAlignment(),Fe=be.getHorizontal()===$.ITextFrame.HorizontalAlignment.Fill,ee=be.getHorizontal()===$.ITextFrame.HorizontalAlignment.CenterContinuous||Fe,ae=ee||P?0:be.getRotation(),we=k.getInsets(),se=we.top+we.bottom;let J=we.left,ce=we.right;const ne={...i,left:i.left-1,top:i.top-1,width:i.width+1+U,height:i.height+1+Z},Pe=k.getColumnFilter(),Ee=Pe&&!Pe?.hasHiddenButton();let it=null;E&&(it=s.jsxs("div",{className:"slider",children:[s.jsx("div",{className:"line"}),s.jsx("div",{className:"subline inc"})]},"pending"));const Ue=!(E||Ee||G||r||V||N?.runs.length>1||R||ae%360!=0);H?.background==="none"&&(H=null);let ke=ee||!(!R||!(R.rightIndex>0||R.leftIndex>0||R.colSpan>1));if(!ke){const et=k.getSpans();(et.width>1||et.height>1)&&(ke=!0)}const _e={...H,...ne,pointerEvents:m?"auto":void 0};if(!Gt.isEmpty(D)||!Gt.isEmpty(T?.repeatPlaceholder)){const et=T?.canWrap??!1;let he=null,Ye=null,Se=null,Ie=[],de=!0;h||P||j!==0||(de=!1);const Oe=k.getTextFrame(P);if(de&&Oe){let Le=I-1-(J+ce);if(ae){he=Oe.layout().bounds;const fe={x:0,y:0,width:I-1,height:w};if(N){let ye=N.width;if(T.repeatPlaceholder||T.repeatChars.length>0){const De=$.GeomUtils.boundsToPoints(fe),Ve=$.GeomUtils.rotatePoints(De,-ae);ye=$.GeomUtils.minBoundingRect(Ve).width}he={...he,width:ye}}Se=$.GeomUtils.clipToOuterRect({...he,width:he.width+1+J+ce},fe,ae),Le=Se.width-1-(J+ce)+.01}let je=null;et&&(je={width:Le});let K=null,W=T?.repeatPlaceholder;const te=Oe.layout(je);if(he=te.bounds,P?he={...he,width:0}:N&&(he={...he,width:T.repeatPlaceholder||T.repeatChars.length>0?Le:N.width}),ae&&et){let fe=null;te.visitLines({visitTextLine:(ye,De)=>{let Ve=ye.bounds;const Je=$.GeomUtils.boundsToPoints(Ve),ot=$.GeomUtils.rotatePoints(Je,ae),tt=$.GeomUtils.minBoundingRect(ot);Ve={...Ve,x:(tt.width-Ve.width)/2,y:(tt.height-Ve.height)/2},fe=fe?$.GeomUtils.unionBounds(fe,Ve):Ve}}),he={...fe,width:fe.width+J+ce}}if(!W&&k.getType()!==$.ScalarType.String&&Math.floor(he.width)>Le){if(_.getNumberFormat()==="General"&&k.getType()===$.ScalarType.Number){const fe=_.measureText("0"),ye=Math.floor(Le/fe.width),De=j,Ve=Gt.splitNumber(De),Je=Math.min(10,ye-(Math.max(1,Ve.ipLength)+1)-(De<0?1:0));if(Je>=-1){const ot=`0${Je>0?".":""}${"#".repeat(Math.max(0,Je))}`;K=k.getNumberFormat(ot).displayText,K==="0"&&De<0&&(K="-0")}else if(Math.abs(De)>=Math.pow(10,5)||Math.abs(De)<=Math.pow(10,-5)){const ot=ye-5-(De<0?1:0);if(ot>=0){const tt=`0.${"0".repeat(Math.max(0,ot-1))}E+00`;K=k.getNumberFormat(tt).displayText}}}K||(W="#")}if(!W&&N?.lastRepeatIndex>=0&&N?.width>Le&&(W="#"),W&&Le>0){const fe=_.measureText(W),ye=Math.floor((Le||1)/(fe?.width||1));K=ye>0?W.repeat(ye):""}if(P&&(F=$.ITextFrame.HorizontalAlignment.Left),K){const fe=_.measureText(K).width;fe&&(he={...he,width:fe})}if(Ye={...he,width:he.width+J+ce,height:he.height},ae&&!et){const fe=$.GeomUtils.boundsToPoints(Ye),ye=$.GeomUtils.rotatePoints(fe,ae),De=$.GeomUtils.minBoundingRect(ye);Ye.width=De.width,Ye.height=De.height}F===$.ITextFrame.HorizontalAlignment.Center||F===$.ITextFrame.HorizontalAlignment.CenterContinuous?Ye.x=(I-Ye.width)/2:F===$.ITextFrame.HorizontalAlignment.Right?Ye.x=I-Ye.width-.5:Ye.x=.5,be.getVertical()===$.ITextFrame.VerticalAlignment.Center?Ye.y=(w-Ye.height)/2:be.getVertical()===$.ITextFrame.VerticalAlignment.Bottom?Ye.y=w-Ye.height-se:Ye.y=se;const oe=Ue?{...b}:void 0,ue={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:ae?`rotate(${ae}deg)`:void 0,cursor:m?"pointer":void 0,pointerEvents:m?"auto":void 0,zIndex:ke?1:void 0,...H},onMouseDown:m,onDoubleClick:m?fe=>{fe.stopPropagation(),fe.preventDefault()}:null,...oe};S&&(ue.style.textDecorationStyle="wavy",ue.style.textDecorationColor=L?"rgb(0, 255, 255)":"red",ue.style.textDecorationLine="underline");const ie=Q.getSize(),pe=(fe,ye,De,Ve,Je,ot,tt,Lt=null)=>{let At=ie*l,_t=De,Yt=tt?.runs?tt.runs:[{type:$.NumberFormat.ParseRunType.Text,text:fe,width:_.measureText(fe,At).width}];tt&&tt?.width!==he.width&&(he={...he,width:tt?.width});let Jt=J;if(tt?.lastRepeatIndex>=0&&Le>tt?.width){const dn=tt.runs[tt.lastRepeatIndex];if(dn){const kt=[...Yt],xn=Math.max(0,Le-1-tt.width);let tn=0,_n="";if(xn>0){const Nn=Math.floor(xn/dn.width);_n=Nn>0?dn.text.repeat(Nn):"",tn=xn}kt[tt.lastRepeatIndex]={type:$.NumberFormat.ParseRunType.Repeat,text:_n,width:tn},Yt=kt,he={...he,width:tt.width+tn}}}const Qt=(dn,kt,xn,tn,_n,Nn,fn,fo,bo,Fo=null)=>{let tr,_r=_t.width;Je===$.ITextFrame.HorizontalAlignment.Justify?(_r=_n,ot||(tr="justify")):Je===$.ITextFrame.HorizontalAlignment.Distributed&&(_r=_n,tr=ot||dn.text.split(" ").length-1==0?"center":"justify");const{style:jr,className:ui,...Gi}=Fo;let pi=dn.text;if(Je===$.ITextFrame.HorizontalAlignment.Fill&&T?.repeatChars.length===0){const Rt=Math.max(1,Math.floor((_t?.width??0)/(fn?.width??1)));pi=pi.repeat(Rt)}let pr=_t.height;const rt=Q.getVerticalAlignment(),ft=rt===$.IFont.VerticalAlignment.Sub,gt=rt===$.IFont.VerticalAlignment.Super;if(ft||gt){const Rt=Q.getSuperSubScale();At*=Rt,pr*=Rt}const ut={textAlign:tr,textAlignLast:tr,background:void 0,...jr,...Q.toCSS(L,l,!0),fontSize:At*$.IFont.getDeviceScale()};xe&&(ut.color=xe.toCSS(L));const vt=Jt+kt;let jt=we.top+_t.y+0;if(ft&&(jt+=bo-At),Nn){const Rt=(fn.x+vt)*l+1,zt=(fn.y+jt)*l+1;zt<0?ut.marginTop=zt:ut.paddingTop=zt,Rt<0?(ut.width=(jr?.width??0)-Rt,ut.left=(jr?.left??0)+Rt):ut.paddingLeft=Rt,ut.paddingRight=Math.max(0,(jr?.width??0)-_r*l-Rt),ut.paddingBottom=Math.max(0,(jr?.height??0)-_t.height*l-zt),ut.height=(jr?.height??0)+(zt<0?-zt:0),(zt<0||Rt<0)&&(ut.clipPath=`inset(${zt<0?-zt:0}px 0px 0px ${Rt<0?1-Rt:0}px)`)}else if(ut.left=(fn.x+vt)*l+1,ut.top=(fn.y+jt)*l+1,ut.width=fn.width*l,ut.height=fn.height*l,ae&&!et){ut.left=(fn.x+kt)*l+1,ut.top=(fn.y+(_t.y+0))*l+1;const Rt=$.GeomUtils.centerPoint({x:Jt+kt,y:0,width:dn.width,height:_t.height}),zt=$.GeomUtils.centerPoint({x:Jt,y:0,width:_n,height:_t.height}),Dt=$.GeomUtils.rotatePoints([Rt],ae,zt),gn={x:Dt[0].x-Rt.x,y:Dt[0].y-Rt.y};ut.left=ut.left+gn.x*l,ut.top=ut.top+gn.y*l;const zn={..._t,x:Jt,y:we.top,width:_t.width+(J+ce)},Cn=$.GeomUtils.boundsToPoints(zn),Ne=$.GeomUtils.rotatePoints(Cn,ae),yt=$.GeomUtils.minBoundingRect(Ne);zn.width=yt.width,zn.height=yt.height;const Ht=$.GeomUtils.centerPoint(zn),nn={x:Ht.x-zt.x,y:Ht.y-zt.y};ut.left=ut.left+nn.x*l,ut.top=ut.top+nn.y*l}ut.lineHeight=pr*l+"px";const Pt=Ue?void 0:"text-line";Ie.push(s.jsx("div",{className:ui?`${ui} ${Pt}`:Pt,style:ut,...Gi,children:pi},`text-${_t.y}-${tn}-${xn}`))};if(be.getOverflow()===$.ITextFrame.Overflow.Shrink&&Le>0){let dn=he?.width??0,kt=0;for(;dn>1&&dn>Le&&At>2&&kt<100;)At*=Le/dn,dn=_.measureText(fe,At).width,kt++;he={...he,width:dn}}let rn=_t.x;Je===$.ITextFrame.HorizontalAlignment.Right?rn+=he.width-_t.width:Je!==$.ITextFrame.HorizontalAlignment.Center&&Je!==$.ITextFrame.HorizontalAlignment.CenterContinuous||(rn+=(he.width-_t.width)/2),tt?.lastRepeatIndex>=0&&(rn=_t.x);const yn=Yt.length;for(let dn=0;dn<yn;dn++){const kt=Yt[dn];(kt.type===$.NumberFormat.ParseRunType.Text||kt.type===$.NumberFormat.ParseRunType.Repeat)&&(kt.type,$.NumberFormat.ParseRunType.Repeat,Qt(kt,rn,dn,ye,Je===$.ITextFrame.HorizontalAlignment.Justify||Je===$.ITextFrame.HorizontalAlignment.Distributed||tt?.lastRepeatIndex>=0?Le:_t.width,Ue,{x:Ye.x+z,y:Ye.y,width:kt.width,height:he.height},0,Ve,Lt)),rn+=kt.width}};K?pe(K,0,{x:0,y:0,...he},te.lines[0].baseline,F,!0,null,ue):te.visitLines({visitTextLine:(fe,ye,De)=>{const Ve=fe.runs[0].text.replace(/\s+$/,""),Je=ye===De-1;let ot=F===$.ITextFrame.HorizontalAlignment.Justify&&(Je||fe.runs[0].text.endsWith(`
|
|
193
|
-
`))?$.ITextFrame.HorizontalAlignment.Left:F,tt=0;ye>0&&(be.getVertical()===$.ITextFrame.VerticalAlignment.Distributed||be.getVertical()===$.ITextFrame.VerticalAlignment.Justify)&&(tt=Math.max(0,(w-(se+3)-fe.bounds.height*De)/(De-1)*ye)),be.getVertical()===$.ITextFrame.VerticalAlignment.Distributed&&ae&&ae%90==0&&ae%180!=0&&(ot=$.ITextFrame.HorizontalAlignment.Distributed),ot!==$.ITextFrame.HorizontalAlignment.Justify&&ot!==$.ITextFrame.HorizontalAlignment.Distributed&&ot!==$.ITextFrame.HorizontalAlignment.Fill||(he={...he,width:Le});const Lt={...fe.bounds,y:fe.bounds.y+tt+0,width:Fe||T&&(T.repeatChars.length>0||T.spacingChars.length>0)?he.width:fe.bounds.width};pe(Ve,ye,Lt,Oe.lines[0].baseline,ot,Je,De===1?N:null,Ue&&ye>0?{...ue,style:{...ue.style,background:void 0}}:ue)}})}Ie.length>0&&(B=Ie)}if(Ue)return B&&B.length>0?B:s.jsx("div",{style:_e,...b});let Xe=m?"auto":ne.pointerEvents,Be=null;if(Ee){const et={x:O*l-1,y:-1,width:A*l+1,height:w*l+1};Xe="auto",Be=v({renderBounds:et,darkMode:L,className:"filter-button",disabled:!k.isEditAllowed(),zoom:l,filter:k.getColumnFilter(),onFilterButtonMouseDown:y,...x}),Be&&(Be=s.jsx("div",{style:{...et,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:he=>{he.stopPropagation(),he.preventDefault()},children:Be},"filterButton"))}E&&!B&&(B=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=[G,B,r,V,it,Be];return s.jsx("div",{style:{...H,...ne,pointerEvents:Xe},...b,children:ct})},Q9={text:"",placeholder:""},eg=(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)))},Uz=Object.freeze([on.Delete,on.Home,on.End]),Xw=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:f,sheet:h,commands:g,containerBounds:m,setNaturalDimensions:y,onFocus:x,disabled:v,style:b,zoom:w=1,linesVisible:M,autoFocus:k=!1,...j}=e,{height:_=0,width:L=0}=m??{},T=p?.darkMode??!1,D=u.useRef(null),[C,S]=u.useState(!1),[R,P]=u.useState(null),[I,z]=u.useState(()=>n);u.useEffect(()=>{Z.current=!1,z(n)},[n]);const A=u.useMemo(()=>{const he=I.clean();let Ye=he.getStyle();d||(Ye=Ye.createTemporaryStyle({font:{size:c?.fontSize}}));const Se=he.getFormula(),Ie=Ye.getAlignment(),de=Se?$.ITextFrame.HorizontalAlignment.Left:Ie.getHorizontal(),Oe=Ie.getVertical(),Le=Ie.getOverflow()===$.ITextFrame.Overflow.Wrap||he.getType()===$.ScalarType.String&&(de===$.ITextFrame.HorizontalAlignment.Justify||de===$.ITextFrame.HorizontalAlignment.Distributed||Oe===$.ITextFrame.VerticalAlignment.Justify||Oe===$.ITextFrame.VerticalAlignment.Distributed),je=(te=>{if(!te)return Q9;const oe=te.clean();if(!oe)return Q9;let ue=oe.getStyle()?.getQuotePrefix();if(te.dirty===void 0||te.dirty===null){let ie="",pe=oe.getFormulaText();pe&&(ie=pe,ue=!1),ie||(ie=oe.toTextUnformatted(!0)??"");let fe="";if(!te.editMode&&oe.isSpillOverflow()){const ye=oe.getSpill();if(ye){const De=ye.getCell(),Ve=De.getFormulaText();De.isEqual(oe)||(fe=Ve)}}return ue&&(ie="'"+ie),{text:ie,placeholder:fe}}return{text:te.dirty??"",placeholder:""}})(I),K=je.text,W=$.ITextFrame.toCSSHorizontalTextAlign(d&&!Se?I.clean()?.getRenderHorizontalAlignment():$.ITextFrame.HorizontalAlignment.Left);return{style:Ye,isWrapped:Le,textValue:K,formula:Se,frameVertAlign:Oe,placeholder:je.placeholder,insets:d?he.getInsets():Bc.EmptyRect,textAlign:W}},[I,c,T,w,d]),O=u.useRef(null),N=ir(t,()=>({startEdit:he=>{D.current=he?.initialSelection;const Ye={...n,editMode:he?.editMode??!1};he?.text!==void 0&&(Ye.dirty=he.text),Ye.editMode===n.editMode&&Ye.dirty===n.dirty||(z(Ye),B?.(Ye))},submitEdit:()=>G(),cancelEdit(){V()},autoFocus(){O.current.focus()},dispatchEvent:he=>O.current.dispatchEvent(he),focus(){O.current.focus()},getLineHeight:E}),[o,n]);u.useLayoutEffect(()=>{if(!R||!C)return;const he=O.current;A.textValue,he&&he.setSelectionRange(R.start,R.end,R.direction)},[O.current,R,A.textValue]);const F=u.useMemo(()=>{const he=I?.clean(),Ye=A.style.createTemporaryTextFrame(A.textValue,he?.getType()===$.ScalarType.String),Se=d?he.getInsets().right+he.getInsets().left:0;let Ie=null;return A.isWrapped&&(Ie={width:L-Se}),Ye.layout(Ie)},[A,L,I,d]),E=Te(()=>Math.ceil(F?.lines[0]?.bounds.height),[F]);u.useLayoutEffect(()=>{if(!F)return;const he=A.style,Ye=he.getInsets()??Bc.EmptyRect,Se=d?Ye.left+Ye.right:0,Ie=d?.04*he.getFont().getSize():1,de=Math.round(A.isWrapped?void 0:F.bounds.width+Se+Ie),Oe=Math.round(F.bounds.height);y?.({width:de,height:Oe})},[F,y,A,d,I]);const B=Te(r,[r]),H=Te(he=>{if(I.dirty===he)return;const Ye={...I};Ye.dirty=he,O.current,z(Ye),B?.(Ye)},[I]),U=Te(he=>{if(I.editMode===he)return;const Ye={...I};Ye.editMode=he,z(Ye),B?.(Ye)},[I]),Z=u.useRef(!1),G=Te(()=>{if(Z.current)return!1;try{i?.(I),l?.(),Z.current=!0}catch{return!1}return!0},[i,I]),V=Te(()=>{Z.current=!0,z(n),a?.(),l?.()},[a,n]),le=Te(he=>{if(!O.current)return;if(he.key,he.isDefaultPrevented(),!(he.isTrusted||he.nativeEvent.ctrlKey||he.nativeEvent.metaKey||he.nativeEvent.altKey||he.nativeEvent.isComposing||hf.indexOf(he.nativeEvent.key)===-1&&he.nativeEvent.key!=="Backspace")){const je={...I};let K=0;return eg(je,je.dirty)&&!isNaN(parseFloat(he.key))?(je.dirty?.endsWith("%")?je.dirty=(je.dirty.substring(0,je.dirty.length-1)??"")+he.key+"%":je.dirty=(je.dirty??"")+he.key+"%",K=je.dirty.length-1):he.nativeEvent.key==="Backspace"?(je.dirty="",K=je.dirty.length):(je.dirty=(je.dirty??"")+he.key,K=je.dirty.length),O.current.value=je?.dirty,D.current={start:K,end:K,direction:"forward"},O.current?.setSelectionRange(K,K,"forward"),z(je),B?.(je),void he.preventDefault()}const Ye=he.nativeEvent.ctrlKey,Se=he.nativeEvent.shiftKey,Ie=he.nativeEvent.altKey,de=he.nativeEvent.metaKey;if(Ye&&he.key==="z"&&he.stopPropagation(),he.which===on.Escape)return he.preventDefault(),void V();if(he.which===on.F2)return U(!0),void he.preventDefault();const Oe=he.target;if(he.key==="%"&&Oe.selectionStart===Oe.selectionEnd&&Oe.value[Oe.selectionStart]==="%"&&I?.clean().getStyle().numberFormat.includes("%"))return P({start:Oe.selectionStart+1,end:Oe.selectionEnd+1,direction:Oe.selectionDirection}),void he.preventDefault();if(he.which===on.Enter){if(he.preventDefault(),de||Ie){const je=A.textValue.substring(0,Oe.selectionStart)+`
|
|
194
|
-
`+A.textValue.substring(Oe.selectionEnd);return H(je),void P({start:Oe.selectionStart+1,end:Oe.selectionStart+1,direction:Oe.selectionDirection})}return void(G()&&h.getSelection().traverse($.IRange.Orientation.Column,Se))}if(he.which===on.Tab)return he.preventDefault(),void(G()&&h.getSelection().traverse($.IRange.Orientation.Row,Se));let Le=null;switch(he.which){case on.Left:Le=$.IRange.Direction.Left;break;case on.Right:Le=$.IRange.Direction.Right;break;case on.Up:Le=$.IRange.Direction.Up;break;case on.Down:Le=$.IRange.Direction.Down}!Le||Ye||Se||Ie||de||I.editMode?I.editMode&&(Le||Uz.includes(he.which))&&he.stopPropagation():G()},[I,h,A]),re=u.useCallback(()=>{O.current?.focus(),setTimeout(()=>{O.current?.select()},0)},[]),ge=u.useCallback(()=>{O.current?.focus(),console.log("implement toggleRelativeReferences")},[]),Q=Te(()=>{const he=O.current?.value;let Ye="";if(f.rowIndex>0){const Se=h.getRange({rowIndex:f.rowIndex-1,colIndex:f.colIndex}).getCell();Se&&(Ye=Se.toTextUnformatted(!0))}H(he+Ye)},[f,h]);u.useEffect(()=>h.getRange(f).addListener(()=>{const he={...I,clean:()=>h.getRange(f).getCell()};z(he),B?.(he)}),[f,h]);const xe=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:t1(),style:{numberFormat:"Medium Time"}}).toText();H((O.current?.value??"")+he)},[h]),be=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:t1(),style:{numberFormat:"Short Date"}}).toText();H((O.current?.value??"")+he)},[h]),Fe=u.useMemo(()=>({element:()=>O.current,doCopy:he=>{const Ye=O.current.value.substring(O.current.selectionStart,O.current.selectionEnd);if(he?.isCut){const Se=O.current.value.substring(0,O.current.selectionStart)+O.current.value.substring(O.current.selectionEnd,O.current.value.length);H(Se)}return Ye}}),[O.current]),ee=u.useMemo(()=>({element:()=>O.current,doPaste:async(he,Ye)=>{const Se=await he.toText?.();if(!Se)return!0;const Ie=O.current.value.substring(0,O.current.selectionStart)+Se+O.current.value.substring(O.current.selectionEnd,O.current.value.length);return H(Ie),P({start:O.current.selectionStart+Se.length,end:O.current.selectionStart+Se.length,direction:"forward"}),!0}}),[O.current]),ae=u.useMemo(()=>({contains:he=>O.current?.contains(he)||!1,focus(){O.current.focus()}}),[]),we=u.useMemo(()=>[new Tt("selectAll",ae,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[$e.Ctrl]}},re),new Tt("startEditValueAbove",ae,{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]}]},Q),new Tt("startEditCurrentTime",ae,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},xe),new Tt("startEditCurrentDate",ae,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},be),new We("relativeReferencesToggle",ae,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},ge),new We("toggleEditorFocus",ae,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[$e.Ctrl]}})],[]),se=u.useMemo(()=>{let he=null;const Ye=()=>({contains:Se=>O.current?.contains(Se)||!1,focus(){O.current.focus()}});return he=g?g.createChildGroup(Ye,"editor",!1):new a0(Ye,"editor"),he.addCommands(we,!0),he},[g,we]),J=u.useMemo(()=>({notifier:null,source:Fe,target:ee,commands:se}),[Fe,ee,se]);fb(J);const[ce,ne]=u.useState(!k);u.useEffect(()=>{ne(!1)},[]);const Pe=Te(he=>{S(!0),se?.activate();const Ye=D.current;if(Ye!==!1){let Se,Ie;const de=O.current.value;eg(I,de)&&(Se=de.length-1,Ie=de.length-1),Se=Ye?.start??Se??de.length,Ie=Ye?.end??Ie??de.length,D.current=!1,P({start:Se,end:Ie,direction:"forward"})}x?.(he)},[x,I]),Ee=A.insets;let it=Ee.left+1;const Ue=Ee.left+Ee.right+2-1,ke=F?.bounds.height??0;let _e,Xe=Ee.top;A.frameVertAlign===$.ITextFrame.VerticalAlignment.Center?Xe=Math.max(0,(_-(Ee.top+Ee.bottom)-ke)/2):A.frameVertAlign===$.ITextFrame.VerticalAlignment.Bottom&&(Xe=Math.max(0,_-(Ee.top+Ee.bottom)-ke)),M!==void 0&&F?.lines[0]?.bounds&&(_e=F?.lines[0]?.bounds.height*M);const Be=A.style.getFont();let ct=Be.getSize();Be.isSuperSub()&&(ct*=Be.getSuperSubScale()),ct*=$.IFont.getDeviceScale()*w;const et=d?Be.toCSS(T,w):null;return s.jsx("div",{className:"sheet-cell-editor",onMouseDown:he=>{O.current&&document.activeElement!==O.current&&requestAnimationFrame(()=>{O.current.focus()})},ref:N,...j,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:Xe*w+1,left:it*w,width:`calc(100% - ${Ue*w}px)`,maxWidth:`calc(100% - ${Ue*w}px)`,height:(_e??ke)*w,maxHeight:(_e??ke)*w},children:s.jsx("textarea",{spellCheck:"false",placeholder:A.placeholder,ref:O,value:A.textValue,disabled:ce,readOnly:v||h.getProtection().isReadOnly(),name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...et,fontSize:ct?`${ct}px`:"inherit",textAlign:A.textAlign,lineHeight:(F?.lines[0]?.bounds.height??0)*w+"px",height:(F?.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:A.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:Pe,onBlur:()=>{S(!1)},onSelect:he=>{},onChange:he=>{O.current&&!Z.current&&(D.current=!1,H(he.target.value),A.textValue,he.target.value,he.target.selectionStart,he.target.selectionEnd,he.target.selectionDirection,P({start:he.target.selectionStart,end:he.target.selectionEnd,direction:he.target.selectionDirection}))},onMouseDown:he=>{C&&U(!0)},onKeyDown:le})})})})),Yw=(e,t)=>({clean:e,dirty:t,editMode:!1}),Jw=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,f=b=>{let w=null;if(b&&n>0){w="";for(let M=0;M<b.length;M++)w+=b[M],M<b.length-1&&(w+=",")}return w},h=f(o);let g=h;r&&(g=f(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 ${jn.boundPixel(l+b)} ${jn.boundPixel(c)} L ${jn.boundPixel(l+b)} ${jn.boundPixel(c+y)}`:`M ${jn.boundPixel(l)} ${jn.boundPixel(c+b)} L ${jn.boundPixel(l+y)} ${jn.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,M=null;M=d?`M ${jn.boundPixel(l+b)} ${jn.boundPixel(c)} L ${jn.boundPixel(l+b)} ${jn.boundPixel(c+y)}`:`M ${jn.boundPixel(l)} ${jn.boundPixel(c+b)} L ${jn.boundPixel(l+y)} ${jn.boundPixel(c+b)}`,x=s.jsx("path",{strokeWidth:m,strokeDasharray:w,strokeDashoffset:"1",shapeRendering:"crispEdges",d:M,...p})}let v=null;return v=d?`M ${jn.boundPixel(l+m/2)} ${jn.boundPixel(c)} L ${jn.boundPixel(l+m/2)} ${jn.boundPixel(c+y)}`:`M ${jn.boundPixel(l)} ${jn.boundPixel(c+m/2)} L ${jn.boundPixel(l+y)} ${jn.boundPixel(c+m/2)}`,s.jsxs(s.Fragment,{children:[s.jsx("path",{strokeWidth:m,strokeDasharray:h,d:v,...p}),x]})};function n5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var c0=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=n5(o,t),i=typeof r=="function";n.push(i?r:()=>n5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)n5(n,t)}},qz=function(){},Qw=typeof window<"u",cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kz=Qw?u.useLayoutEffect:u.useEffect,tg={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Wl=Qw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(tg),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return Kz(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[qz,tg]},Gz=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Zz=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Xz=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,f=$.IBorder.BuiltInDefinitions.get(a?$.IBorder.StrokeStyle.Thin:r.getStyle());if(!f)return null;const h=n[0],g=n[1],m=n[2],y=n[3];let x=1+(c?y-g:m-h),v=0;const b=r.getColor().toRGBA(i).toString(),w=f.description.toLowerCase().includes("double");let M,k;const j=c?"rowStart":"colStart",_=c?"rowEnd":"colEnd",L=c?g:h;if(d?.length>0){const S=d[0];if(S?.range[j]===o[j]){const R=$.IBorder.BuiltInDefinitions.get(S.stroke.getStyle());v=Math.floor(R.width/2)}if(d[d.length-1]?.range[_]===o[_]){const R=$.IBorder.BuiltInDefinitions.get(d[d.length-1].stroke.getStyle());x=Math.floor(x+(R.width===2?0:R.width/2))}if(w){const R=c?"colStart":"rowStart",P=c?"colEnd":"rowEnd",I=c?p?.getRowOffset:p?.getColOffset;let z=0,A=0;M=[],k=[];for(let O=0;O<d.length;O++){const N=d[O];if(N.stroke.getStyle()===$.IBorder.StrokeStyle.Double&&I){const F=I(N.range[j])-(L-v);N.range[R]<o[R]&&(M.push(F-z),z=F,M.push(1),z++),N.range[P]>o[P]&&(k.push(F-A),A=F,k.push(1),A++)}}M.length>0&&z<x&&M.push(x-z),k.length>0&&A<x&&k.push(x-A)}}let T=c?-Math.floor(f.width/2):-v,D=c?-v:-Math.floor(f.width/2);const C=l&&f.width>2?-1:0;return s.jsx(Jw,{offsetX:h+T+C,offsetY:g+D+C,length:x+v,isVertical:c,stroke:b,width:f.width,dashArray:M??f.pattern,dashArrayAdditional:k,isDouble:w,isAngled:f.description.toLowerCase().includes("slant")},t)},eS=({getBorderAt:e,borderRenderer:t=Xz,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 f=c.getVisibleColumnOffsets(),h=c.getVisibleRowOffsets();let g=[],m=[];const y=c.getVisibleColumns(),x=c.getVisibleRows(),v=[],b=[],w=[],M=(L,T,D,C,S,R,P)=>{const I={index:C,stroke:S,visibleIndex:D,edge:R,length:P};L[T]||(L[T]=[]),L[T].length>0&&L[T][L[T].length-1]?.index===C?L[T][L[T].length-1]=I:L[T].push(I)};for(let L=0;L<p.length;L++){const T=p[L],D=T.coords;if(!D)continue;const C=T?.range??{rowStart:D.rowIndex,colStart:D.colIndex,rowEnd:D.rowIndex,colEnd:D.colIndex},S=c.getVisibleRangeCoords();if(!Go.isRangesIntersect(C,S)&&!Go.isRangeWithinRange(C,S))continue;const R=D.colIndex,P=D.rowIndex,I=f[R],z=h[P];if(C.rowEnd!==C.rowStart){const V=h[C.rowStart]?.spanIndex??-1,le=h[C.rowEnd]?.spanIndex??h[x[x.length-1]].spanIndex+1;g.push({...C,rowStart:V,rowEnd:le})}if(C.colEnd!==C.colStart){const V=f[C.colStart]?.spanIndex??-1,le=f[C.colEnd]?.spanIndex??f[y[y.length-1]].spanIndex+1;m.push({...C,colStart:V,colEnd:le})}const A=T.value,O=e(A,L);if(!O||O.isEmpty())continue;const N=O.getLeft(),F=O.getTop(),E=O.getRight(),B=O.getBottom();let H=1,U=1;if(!I||!z)continue;const Z=I.spanIndex,G=z.spanIndex;N.isNone()||M(v,Z,G,P,N,$.IBorder.Edge.Left,H),F.isNone()||M(b,G,Z,R,F,$.IBorder.Edge.Top,U),E.isNone()||M(v,Z+U,G,P,E,$.IBorder.Edge.Right,H),B.isNone()||M(b,G+H,Z,R,B,$.IBorder.Edge.Bottom,U)}const k=(L,T,D)=>{const C=[];return L.forEach((S,R)=>{let P=null;S.sort((I,z)=>I.visibleIndex-z.visibleIndex);for(let I=0;I<S.length;I++){const z=S[I];if(!z?.stroke||T[R]===void 0&&T[R-1]===void 0)continue;let A=!1;if(D)for(let E=0;!A&&E<g.length;E++){let B=g[E];B.colStart<=z.index&&B.colEnd>=z.index&&B.rowStart<R&&B.rowEnd>=R&&(A=!0)}else for(let E=0;!A&&E<m.length;E++){let B=m[E];B.rowStart<=z.index&&B.rowEnd>=z.index&&B.colStart<R&&B.colEnd>=R&&(A=!0)}if(A)continue;const O=z.stroke?.getColor(),N=O?O.toRGBA().toString():i,F=z.stroke.getStyle()+":"+N;(F!==P?.key||P&&P.visibleIndex+1<z.visibleIndex)&&(P&&C.push(P),P={key:F,index:T[R]??T[R-1]+1,visibleIndex:z.visibleIndex,edge:z.edge,stroke:z.stroke,from:z.index,to:z.index+z.length-1,intersections:[],length:1}),P.to=z.index+z.length-1,P.visibleIndex=z.visibleIndex}P&&C.push(P)}),C};g=g.sort(Zz),m=m.sort(Gz);const j=k(v,y,!1),_=k(b,x,!0);if(j.length===0&&_.length===0)return null;for(let L=0;L<_.length;L++){const T=_[L];let D=Gt.findEqualOrGreater(j,T.from,S=>S.index),C=!1;for(;!C;){const S=j[D++];S&&S.index>=T.from&&S.index<=T.to+1&&S.from<=T.index&&S.to+1>=T.index&&(T.intersections.push({stroke:S.stroke,range:{rowStart:S.from,rowEnd:S.to+1,colStart:S.index,colEnd:S.index}}),S.intersections.push({stroke:T.stroke,range:{rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1}})),C=!S||S.index>T.to+1}}for(let L=0;L<_.length;L++){const T=_[L];let D=T.stroke;const C=`rBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,S={rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1},R=c.getLayout(),P=!1,I=R.getColOffset(S.colStart),z=R.getRowOffset(S.rowStart),A=[I,z,R.getColOffset(S.colEnd),z];w.push(t({key:C,points:A,stroke:D,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:S,intersections:T.intersections,layout:R,isVertical:P}))}for(let L=0;L<j.length;L++){const T=j[L];let D=T.stroke;const C=`cBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,S={rowStart:T.from,rowEnd:T.to+1,colStart:T.index,colEnd:T.index},R=c.getLayout(),P=!0,I=R.getColOffset(S.colStart),z=[I,R.getRowOffset(S.rowStart),I,R.getRowOffset(S.rowEnd)];w.push(t({key:C,stroke:D,points:z,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:S,intersections:T.intersections,layout:R,isVertical:P}))}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])}},ng=zo.Center,Yz=Object.freeze({horizontal:!1,vertical:!1}),og=Bc.EmptyTopLeft,Jz=(e,t)=>Go.EmptyCell,Qz=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),ff=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,f=u.useRef(null),[h,{width:g,height:m}]=Wl(),y=n??g,x=o??m,v=u.useMemo(()=>{const I=[];for(let z=0;z<i;z++)for(let A=0;A<a;A++){const O={colIndex:A,rowIndex:z};I.push({coords:O,value:O})}return I},[]),b=u.useCallback(I=>v,[v]),{overlay:w}=eS({getVisibleCells:b,getBorderAt:t,darkMode:l,forceThinBorder:c}),M=Math.floor(y/a),k=Math.floor(x/i),j={getColOffset:I=>Math.ceil(I*M)+0,getRowOffset:I=>Math.ceil(I*k)+0,getColIndex:I=>Math.floor((I-0)/M)-1,getRowIndex:I=>Math.floor((I-0)/k)-1},_={rowStart:0,colStart:0,rowEnd:i,colEnd:a},L={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 A=0;A<a;A++)I[A]={offset:A*z,size:z,spanIndex:A};return I},[y,x]),D=u.useMemo(()=>{const I={},z=Math.floor(x/i);for(let A=0;A<i;A++)I[A]={offset:A*z,size:z,spanIndex:A};return I},[y,x]);if(!w)return null;const C={width:y,height:x},S={width:y,height:x},R={getStage:()=>f.current,getTotalSize:()=>C,getViewportSize:()=>S,getLayout:()=>j,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)=>L,toViewBounds:I=>I,toAbsoluteBounds:I=>I,getBounds:()=>L,getInsets:()=>null,getRangeCoordsBounds:(I,z)=>null,getVisibleColumnOffsets:()=>T,getVisibleRowOffsets:()=>D,allViews:()=>({[ng]:R}),getAnchor:()=>ng,getZoom:()=>1,scrollCellCoordsIntoView:Qz,getCellCoordsFromClient:Jz,getScrollOrientation:()=>Yz,getScrollTopLeft:()=>og,getFreezeTopLeft:()=>og},P=w(R);return s.jsxs("div",{style:{...r,position:"relative",display:"flex"},...p,children:[s.jsx("div",{ref:c0([f,h]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:d}),P]})});function tS(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=tS(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=tS(e))&&(o&&(o+=" "),o+=t);return o}const eF=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"})]})},tF=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 k=await $.LicenseManager.getDetails();d(k)})()},[]);const[p,f]=u.useState(!1),h={opacity:.65},g=u.useMemo(()=>{if(!(c?.exceptions().length>0))return null;const k=[];for(let j=0;j<c.exceptions().length;j++){const _=c.exceptions()[j];k.push(s.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:_},j))}return k},[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 M=null;return!m&&x?.length>0&&(M=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(eF,{style:h}):s.jsx("svg",{width:b,height:w,style:h,children:s.jsx("image",{style:{width:b,height:w},href:"https://www.sheetxl.com/watermark.svg",onError:()=>f(!0)})}),s.jsxs("div",{children:[M,g,s.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),cn=(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={},l=i.length;for(let d=0;d<l;d++){const p=i[d];a[p]=(f,h)=>{o.current[p]?.(f,h)}}const c=e.addListeners(a,n);if(r)for(let d=0;d<l;d++)a[i[d]](e);return()=>{c?.()}},[e])},Sd=new $.Color("transparent");var rg,ig;(function(){if(ig)return rg;ig=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 cc=="object"&&cc&&cc.Object===Object&&cc,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,f=function(){return l.Date.now()};function h(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(h(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=h(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}rg=function(m,y,x){var v,b,w,M,k,j,_=0,L=!1,T=!1,D=!0;if(typeof m!="function")throw new TypeError("Expected a function");function C(z){var A=v,O=b;return v=b=void 0,_=z,M=m.apply(O,A)}function S(z){var A=z-j;return j===void 0||A>=y||A<0||T&&z-_>=w}function R(){var z,A,O=f();if(S(O))return P(O);k=setTimeout(R,(A=y-((z=O)-j),T?p(A,w-(z-_)):A))}function P(z){return k=void 0,D&&v?C(z):(v=b=void 0,M)}function I(){var z,A=f(),O=S(A);if(v=arguments,b=this,j=A,O){if(k===void 0)return _=z=j,k=setTimeout(R,y),L?C(z):M;if(T)return k=setTimeout(R,y),C(j)}return k===void 0&&(k=setTimeout(R,y)),M}return y=g(y)||0,h(x)&&(L=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,D="trailing"in x?!!x.trailing:D),I.cancel=function(){k!==void 0&&clearTimeout(k),_=0,v=j=b=k=void 0},I.flush=function(){return k===void 0?M:P(f())},I}})();var ag,lg,sg={};lg||(lg=1,function(){if(ag)return sg;ag=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(),f=n({inst:{value:p,getSnapshot:d}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=d,a(h)&&g({inst:h})},[c,p,d]),o(function(){return a(h)&&g({inst:h}),c(function(){a(h)&&g({inst:h})})},[c]),i(p),p};sg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var cg,dg,Cd={exports:{}},ps={exports:{}},nF=ps.exports;function ug(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(dg)return Cd.exports;dg=1;for(var e=(cg||(cg=1,function(){var f,h,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?ps.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ps.exports=function(){return(f()-y)/1e6},h=process.hrtime,m=(f=function(){var v;return 1e9*(v=h())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(ps.exports=function(){return Date.now()-g},g=Date.now()):(ps.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(nF)),ps.exports),t=typeof window>"u"?cc: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(f){if(d.length===0){var h=e(),g=Math.max(0,p-(h-l));l=g+h,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:f,cancelled:!1}),c},i=function(f){for(var h=0;h<d.length;h++)d[h].handle===f&&(d[h].cancelled=!0)}}Cd.exports=function(f){return r.call(t,f)},Cd.exports.cancel=function(){i.apply(t,arguments)},Cd.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();const qu=u.memo(u.forwardRef((e,t)=>{const{style:n=jn.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:a,onScrollOffset:l,showCustomScrollButtons:c=!1,offset:d=0,totalSize:p=0,viewportSize:f=0,...h}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[g]=Wl(),m=Te(i,[i]),y=Te(a,[a]),x=u.useMemo(()=>v===null&&b===null?null:H=>{ug(v,H),ug(b,H)},[v=g,b=t]);var v,b;const[w,M]=u.useState(()=>{const H=r.getView().getTopLeft();return o===yr.Vertical?H.top:H.left}),k=()=>{const H=r.getView().getFreezePanes();return o===yr.Vertical?H.coords.rowIndex===0?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(H.coords.rowIndex)-H.topLeft.top,scroll:H.topLeft.top}:H.coords.colIndex===0?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(H.coords.colIndex)-H.topLeft.left,scroll:H.topLeft.left}},[j,_]=u.useState(k),[L,T]=u.useState(null),[D,C]=u.useState(!1),S=o===yr.Vertical?r.getRowHeaders():r.getColumnHeaders(),R=()=>{const H=r.getUsedRange()?.getCoords()??Go.EmptyRange,U=r.getSelection().getCoords().cell;return{colIndex:Math.max(H.colEnd,U.colIndex),rowIndex:Math.max(H.rowEnd,U.rowIndex)}},[P,I]=u.useState(R),z=P?(o===yr.Vertical?P.rowIndex:P.colIndex)+1:0,A=()=>{const H=R();Go.isEqualCells(P,H)||I(H)};cn(r.getView(),{onFreezeSplitChange:()=>{_(k)}}),cn(r.getSelection(),{onChange:A}),cn(r,{onUsedRangeChange:A}),u.useEffect(()=>{I(R())},[r]),u.useEffect(()=>{if(!L)return D&&y?.(),void C(!1);const H=S.getTextAt(S.findIndex(w/(r.getView().getZoomScale()/100)+j.scroll+j.shift));C(!0),m?.({...L,display:(o===yr.Vertical?"Row":"Column")+": "+H})},[d,w,j,o,L,S,D,r]);const O=Te((H,U,Z)=>{M(H);const G=H+j.scroll,V=U+j.shift,le=Z+j.shift+j.scroll;l?.(G,V,le)},[l,j]),N=d-j.scroll,F=f-j.shift,E=p-(j.shift+j.scroll),B=S.findOffset(z)*(r.getView().getZoomScale()/100)-(j.scroll+j.shift);return s.jsx(sb,{ref:x,style:n,offset:N,viewportSize:F,totalSize:E,orientation:o,showCustomScrollButtons:c,onMouseDown:H=>{T({anchor:{x:H.clientX,y:H.clientY}}),H.preventDefault()},onScrollOffset:O,onMouseOut:()=>{T(null)},onMouseUp:()=>{T(null)},minSize:B,...h})}));qu.displayName="SheetScrollbar";const pg=(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},hg=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:f,verticalPadding:h,horizontalPadding:g,onSheetContextMenu:m,onResizeHeadersStart:y,onResizeHeaders:x,onResizeHeadersEnd:v,onResizeHeadersDown:b,onResizeHeadersUp:w,scrollPoint:M,onSelectionStart:k,onSelectionEnd:j}=e,_=u.useMemo(()=>n.getOrientation(),[n]),L=u.useRef(null),[T,D]=u.useReducer(Se=>Se+1,0),[C,S]=u.useReducer(Se=>Se+1,0),R=n?.getSheet(),P=u.useRef(!1);u.useLayoutEffect(()=>{P.current=!0},[n]);const I=u.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),z=u.useMemo(()=>{const Se=_===$.IRange.Orientation.Column;return{left:Se?M.left:0,top:Se?0:M.top}},[M]),[A,O]=u.useState(R?.getView().getZoomScale()/100),[N,F]=u.useState(null);cn(n,{onSizesChange:Se=>{O(R?.getView().getZoomScale()/100),we(ee())}});const E=u.useCallback(()=>{L.current?.invalidate(),S()},[]),B=u.useCallback(Gt.debounce(()=>{E()},10),[]),[H,U]=u.useState(null);cn(n.getSheet(),{onSelectionChange(){U(R?.getSelection().getCoords()),B()},onProtectionChange(){E()},onViewChange(){B()}}),u.useLayoutEffect(()=>{we(ee())},[_,A,a]),u.useLayoutEffect(()=>{F(null),O(n?.getSheet().getView().getZoomScale()/100),we(ee())},[n]);const Z=u.useCallback(Se=>n.at(Se)?.isHidden()||n.at(Se)?.getSize()===0,[n]),G=u.useCallback((Se,Ie)=>n.hiddenHeadersAt(Se,Ie),[Z]),V=Te(Se=>n.isSelected(Se),[n]),le=Te(Se=>n.isSelectedAll(Se),[n]),re=u.useCallback(()=>n.getMinSize(),[n]),ge=u.useCallback(()=>n.getMaxSize(),[n]),Q=Te((Se,Ie,de)=>{Ie/=A;const Oe={size:Ie=Math.max(re(),Math.min(Gt.roundAccurately(Ie,re()),ge())),hidden:!1},Le=[];if(Ie<=0&&(Oe.hidden=!0,Oe.size=de),Le.push({address:{min:Se,max:Se},update:Oe}),Ie<0){const je=_===$.IRange.Orientation.Column,K=je?ae.getColOffset:ae.getRowOffset,W=je?ae.getColIndex:ae.getRowIndex,te=K(Se);let oe=W(te+Ie);const ue=K(oe);ue===te+Ie?oe--:Le.push({address:{min:oe,max:oe},update:{size:te-ue+Ie}}),Se-oe>1&&Le.push({address:{min:oe+1,max:Se-1},update:{hidden:!0}})}n.updateHeaderPairs(Le),x?.(Se,Ie,de)},[T,n,A,x]),xe=Te((Se,Ie,de)=>{const Oe=_===$.IRange.Orientation.Column;let Le=null,je={min:Se,max:Se};if(n.isSelectedAll(Se)){const K=n.getSelectedRuns();K.length>1?Le="Resize "+(Oe?"Columns":"Rows"):je=K[0];const W={hidden:Ie<=0,size:(Ie<=0?de:Ie)/A};n.updateHeaderPairs(pg(K,W,Se))}if(je){const K=je.max-je.min+1;let W;W=K===1?n.getRange(je).at(0).getDisplayText():n.getRange(je).toString(),Le=`Resize ${Oe?"Column":"Row"}${K>1?"s":""} '${W}'`}v?.(Se,Ie,Le)},[T,n,v]),be=Te((Se,Ie)=>{const de=_===$.IRange.Orientation.Column;y(Se,Ie,`Resize ${de?"Column":"Row"}(s)`)},[y]),Fe=Te(Se=>{let Ie=!1;const de=_===$.IRange.Orientation.Column,Oe=n.getSheet().getEntireRange().getCoords(),Le=[],je=n.getSelectedRuns(),K=W=>{let te;te=de?{colStart:W.min,rowStart:Oe.rowStart,colEnd:W.max,rowEnd:Oe.rowEnd}:{colStart:Oe.colStart,rowStart:W.min,colEnd:Oe.colEnd,rowEnd:W.max},Le.push(te)};for(let W=0;W<je.length;W++){const te=je[W];te.value.isSelectedAll&&(te.min<=Se&&te.max>=Se&&(Ie=!0),K(te))}if(Ie||K({min:Se,max:Se}),n.getSheet().getRanges(Le).autoFit({orientations:de?$.IRange.Orientations.Column:$.IRange.Orientations.Row}),Z(Se)){const W={hidden:null},te=pg(je,W);Ie||te.push({address:Se,update:W}),n.updateHeaderPairs(te)}v?.(Se,null,"Resize Column(s)")},[T,n,v,Z]),ee=()=>{const Se=_===$.IRange.Orientation.Column;return{getColOffset:Ie=>Se?n.findOffset(Ie):Ie===0?0:a/A,getColIndex:Ie=>Se?n.findIndex(Ie):0,getRowOffset:Ie=>Se?Ie===0?0:a/A:n.findOffset(Ie),getRowIndex:Ie=>Se?0:n.findIndex(Ie)}},[ae,we]=u.useState(()=>ee()),se=u.useCallback((Se,Ie)=>Se.nativeEvent.which!==3||!le(_===$.IRange.Orientation.Column?Ie.colIndex:Ie.rowIndex),[_,le]),J=Te(Se=>{r.focusSheet()},[r]),ce=Te(Se=>{R?.getSelection().updateCoords(Se)},[R]),{...ne}=Ww({gridRef:o,commands:null,layout:ae,selection:H,fillHandleBorderColor:f.body.fill,selectionBackgroundColor:f.selection.fill,selectionBorderColor:f.selection.strokeFill,selectionRemoveBackgroundColor:f.selectionRemove.fill,selectionRemoveBorderColor:f.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:ce,canSelectionSpanMergedCells:Se=>{const Ie=R.getRange(Se);return Ie.isEntireColumns()||Ie.isEntireRows()}}),Pe=Te(()=>{k?.();const Se=R?.getSelection();Se&&Se.setAdjusting(Se.getCoords())},[R,k]),Ee=Te(async()=>{R?.getSelection().setAdjusting(null),j?.()},[R,j]),{...it}=(({gridRef:Se,gridMainRef:Ie,orientation:de=Ma,headerCount:Oe,selectionPolicy:Le="multiple",newSelectionMode:je="clear",alwaysScrollToActiveCoords:K=!0,onDragStart:W,onDragEnd:te,pointerDownInterceptor:oe,pointerMoveInterceptor:ue,onPointerUp:ie,newSelection:pe,modifySelection:fe,appendSelection:ye,clearSelections:De})=>{const Ve=Oe??((de===Ma?Se.current?.rowCount:Se.current?.columnCount)||0),Je=u.useRef(null),ot=u.useRef(null),tt=u.useRef(!1),Lt=u.useRef(null),At=u.useCallback(kt=>de===Hr?{rowIndex:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:0},[de]),_t=u.useCallback(kt=>de===Hr?{rowIndex:Ie.current?Ie.current.rowCount-1:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:Ie.current?Ie.current.columnCount-1:0},[de]),Yt=kt=>{ot.current=_t(kt),fe(ot.current,Je.current)},Jt=u.useCallback((kt,xn)=>{if(!Se.current)return;const tn=Se.current.getViewFromClient(kt,xn)?.getCellCoordsFromClient(kt,xn);return tn?(de===Hr?tn.rowIndex=Ie.current.getViewport().rowStart:tn.colIndex=Ie.current.getViewport().colStart,tn):void 0},[]),Qt=u.useCallback((kt,xn=!1)=>{let tn=kt;return xn||(tn={...kt},de===Ma?delete tn.colIndex:delete tn.rowIndex),Ie.current?.scrollCellCoordsIntoView(tn)},[de]),rn=wt(te,[te]),yn=wt(W,[W]),dn=u.useMemo(()=>({onPointerDown:kt=>{if(!Se||!Se.current||kt.nativeEvent.defaultPrevented)return;const xn=Jt(kt.nativeEvent.clientX,kt.nativeEvent.clientY);if(!xn)return;kt.nativeEvent.which;const tn=kt.nativeEvent.shiftKey,_n=kt.nativeEvent.ctrlKey||kt.nativeEvent.metaKey;if(oe?.(kt,xn)===!1)return;yn?.(),tt.current=!0;const Nn=Ie.current?.getViewFromClient(kt.nativeEvent.clientX,kt.nativeEvent.clientY),fn=(fo=xn,bo=Nn.getVisibleRangeCoords(),de===Hr?{...fo,rowIndex:bo.rowStart}:{...fo,colIndex:bo.colStart});var fo,bo;if(tn)Yt(xn);else{if(_n)return((Fo,tr=Fo,_r)=>{Je.current=At(Fo),ot.current=_t(tr),ye(Je.current,ot.current,_r)})(xn,xn,fn),void(K&&Qt(fn,!0));((Fo,tr=Fo,_r)=>{Je.current=At(Fo),ot.current=_t(tr),pe(Je.current,ot.current,_r)})(xn,xn,fn),Yt(xn),K&&Qt(fn,!0)}},onPointerMoveOrWait:Qo.throttle(kt=>{if(!tt.current||!Se?.current)return;const xn=Jt(kt.clientX,kt.clientY);if(xn&&ue?.(kt,xn)!==!1){if($t.isEqualCells(Lt.current,xn))return De();Yt(xn),Qt(xn)}},60),onPointerUp:kt=>{tt.current=!1,rn?.(),ie?.(kt)},processTouch:!0,consumeTouch:!0}),[Le,K,Ve,je,De,oe,ie]);return{onPointerDown:wt(Ps(dn),[]),getCellCoordsFromClient:Jt}})({orientation:_,headerCount:I,gridRef:L,gridMainRef:o,newSelection:ne?.newSelection,modifySelection:ne?.modifySelection,appendSelection:ne?.appendSelection,clearSelections:ne?.clearSelections,pointerDownInterceptor:se,onPointerUp:J,onDragStart:Pe,onDragEnd:Ee}),Ue=f.selection?.strokeFill;u.useEffect(()=>{if(!L.current)return void F(null);const Se=_===$.IRange.Orientation.Column,Ie=n.getSelectedRuns(),de=n.isProtected()?null:Q,Oe=(je,K,W)=>{if(W)return s.jsx("div",Se?{style:{position:"absolute",borderBottom:`${f.headerSelection.strokeWidth}px solid ${Ue}`,pointerEvents:"none",top:`${jn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,left:`${jn.boundPixel(W.x-f.headerSelection.strokeWidth)}px`,width:`${jn.boundPixel(W.width+f.headerSelection.strokeWidth+1,!0)}px`,height:a+f.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${f.headerSelection.strokeWidth}px solid ${Ue}`,pointerEvents:"none",top:`${jn.boundPixel(W.y-f.headerSelection.strokeWidth)}px`,left:`${jn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,width:a+f.headerSelection.strokeWidth-.5+"px",height:`${jn.boundPixel(W.height+f.headerSelection.strokeWidth+1,!0)}px`}},je)},Le=(je,K,W)=>{const te={x:0,y:0,width:0,height:0};if(Se){const oe=W.toClipBounds(W.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:je,colEnd:Math.min(I,K)}),Rr);if(!oe)return;te.x=oe.x,te.width=oe.width}else{const oe=W.toClipBounds(W.getRangeCoordsBounds({rowStart:je,rowEnd:Math.min(I,K),colStart:0,colEnd:0}),Rr);if(!oe)return;te.y=oe.y,te.height=oe.height}return{x:te.x,y:te.y,width:te.width,height:te.height}};F([je=>{const K=[];let W=null,te=Se?je.getVisibleColumns():je.getVisibleRows();const oe=Se?je.getTotalRangeCoords().colStart:je.getTotalRangeCoords().rowStart;te.length>0&&te[0]>oe&&(te=[te[0]-1,...te]);let ue=[];const ie=[];for(let Ve=0;Ve<te.length;Ve++){const Je=te[Ve],ot=Ve<te.length-1?te[Ve+1]:Je+G(Je+1,!1)+1,tt=Je+1!==ot;if(!W||W.max<Je)if(Ie.length>0&&Ie[Ie.length-1].max>=Je){const _t=Gt.findEqualOrGreater(Ie,Je,Yt=>Yt.max);W=Ie[_t]}else W=null;let Lt=!1,At=!1;if(W?.value&&(W.min<=Je||W.min<=ot&&!tt)&&(Lt=!0,At=W.value.isSelectedAll),Je===oe){let _t=!1,Yt=!1;W?.value&&W.min<=Je&&(_t=!0,Yt=W.value.isSelectedAll),Je>0&&ie.push({index:Je-1,isNextHidden:tt,isSelected:_t,isSelectedAll:Yt,disabledResize:!0})}if(At&&ue.push(ie.length),ie.push({index:Je,isHidden:Ve===0&&G(Je,!1)>0,isNextHidden:tt,isSelected:Lt,isSelectedAll:At,onDividerMouseDown:b,onDividerResizeStart:be,onDividerResize:de,onDividerMouseUp:w,onDividerResizeEnd:xe,onDividerAutoFit:Fe}),tt){let _t=!1,Yt=!1;if(W&&W.min>=Je&&W.max<=ot-1&&W.value.isSelectedAll&&ue.push(ie.length),!(W?.value&&W.max>=ot))if(Ie.length>0&&Ie[Ie.length-1].max>=ot){const Jt=Gt.findEqualOrGreater(Ie,ot,Qt=>Qt.max);W=Ie[Jt]}else W=null;W?.value&&W.min<=ot&&(_t=W.value.isSelected,Yt=W.value.isSelectedAll),ot>0&&ie.push({index:ot-1,isHidden:!0,isSelected:_t,isSelectedAll:Yt,onDividerMouseDown:b,onDividerResizeStart:be,onDividerResize:de,onDividerMouseUp:w,onDividerResizeEnd:xe,onDividerAutoFit:Fe})}}if(ue.length>0){let Ve=ue.length-1;if(ue.length>0){const tt=ie[ue[Ve]].index;let Lt=null;Se?(Lt=je.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:tt,colEnd:tt}),Lt.x+Lt.width>je.getBounds().width&&(Ve-=1,Ve===0&&(Ve=-1))):(Lt=je.getRangeCoordsBounds({rowStart:tt,rowEnd:tt,colStart:0,colEnd:0}),Lt.y+Lt.height>je.getBounds().height&&(Ve-=1,Ve===0&&(Ve=-1)))}const Je=Ie?.[Ie.length-1],ot=je.getAnchor();if(ot==="t"||ot==="l"){const tt=ie[ue[Math.max(0,ue.length-1)]];tt.showTouchDivider=Je&&Je.max<=tt.index}else Ve>=0&&(ie[ue[Ve]].showTouchDivider=!0)}const{header:pe,headerSelect:fe,headerSelectAll:ye,headerHover:De}=f??{};for(let Ve=0;Ve<ie.length;Ve++)K.push(s.jsx(Fz,{orientation:_,view:je,headerStyle:pe,headerStyleSelect:fe,headerStyleSelectAll:ye,headerStyleHover:De,disabled:n.isProtected(),...ie[Ve]},`divider${Ve}`));return K},je=>{const K=[];for(let W=0;Ie&&W<Ie.length;W++)K.push(Oe(`selection:${je.getAnchor()}:${W}`,0,Le(Ie[W].min,Ie[W].max,je)));return K}])},[C,!0,Ue,f,ae,I,p,T,A]),u.useEffect(()=>{L.current?.invalidate()},[T]);const ke=Te(Se=>d?d(Se):n.getTextAt(Se),[d,n]),_e=Te(Se=>{const{header:Ie,headerSelect:de,headerSelectAll:Oe,headerHover:Le}=f??{},{range:je,key:K,...W}=Se;return s.jsx(qw,{orientation:_,index:_===$.IRange.Orientation.Column?je.colStart:je.rowStart,isSelected:V,isSelectedAll:le,zoomScale:100*A,headerText:ke,headerStyle:Ie,headerStyleSelect:de,headerStyleSelectAll:Oe,headerStyleHover:Le,verticalPadding:h,horizontalPadding:g,...W},K)},[T,I,f,A,n]),Xe=Wi(),Be=u.useMemo(()=>{const Se="white",Ie="black",de={};if(jn.detectIt().primaryInput!=="touch"){let Oe=_===$.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='${Ie}' 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='${Ie}' fill='${Se}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;Xe.getMode()?.key==="formatPainter"&&(Oe=`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='${Ie}' fill='${Se}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),de.cursor=Oe}return de.backgroundColor=f?.header?.fill||"transparent",de},[_,T,Xe,f]),ct=ir(t,()=>({scrollTo:Se=>{L.current?.scrollTo(Se)},forceRender:()=>{D()},getGridElement:()=>L.current}),[]),et=u.useCallback(Se=>{it.onPointerDown(Se)},[it]),he=u.useCallback(Se=>{const Ie=it.getCellCoordsFromClient(Se.clientX,Se.clientY);if(!Ie||!m)return;const de=_===$.IRange.Orientation.Column;m({originalEvent:Se,clientX:Se.clientX,clientY:Se.clientY,rowIndex:de?-1:Ie.rowIndex,colIndex:de?Ie.colIndex:-1}),Se.stopPropagation(),Se.preventDefault()},[it,m]),Ye=u.useMemo(()=>{const Se=_===$.IRange.Orientation.Column;return s.jsx("div",{ref:ct,children:s.jsx(L2,{className:"sheet-header",style:Be,ref:L,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?G:void 0,hiddenRowsAt:Se?void 0:G,showGridLines:!1,layout:ae,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:he,onPointerDown:et,zoom:A,cellRenderer:_e,overlays:N})})},[N,ae,l,c,z,Be,C]);return u.useEffect(()=>{P.current=!1,L.current?.invalidate(),S()},[n,f]),Ye})),oF=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}=eS({getVisibleCells:r,getBorderAt:a,darkMode:i.body.darkMode,shiftIfWide:!0}),c=l(n);return c&&n?c:null})),rF={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},iF={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},aF={type:$.ICell.Content.Values},lF={fitDestination:!0,type:$.ICell.Content.Formats},sF={fitDestination:!0,type:$.ICell.Content.Formulas},cF={transpose:!0},dF={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},uF=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:f,sheet:h,sheetView:g,commands:m,onClipboardUpdate:y,onPaste:x,selectionRenderer:v=Fw,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:w="rgb(33, 115, 70)",copyBackgroundColor:M="white",cutBackgroundColor:k="white",notifier:j,..._})=>{const L=Te(v,[v]),T=u.useRef(null),D=Wi(),C=D.getMode(),S=u.useMemo(()=>({element:f,doCopy:A=>{const O=h.getSelectedRanges().getSnapshot(A);return new $.RangeClipboardItem(O)}}),[h,g,f]),R=u.useMemo(()=>({element:f,importFromExternal:async(A,O)=>{const N=new $.ExternalRangeClipboardItem(A,O,h.getStyles(),h.isDate1904());return await N.parse()?N:null},doPaste:async(A,O)=>{if(A?.getItemType()!=="range")return;O?.contentsOnly&&delete(O={...O,type:$.ICell.Content.Values}).contentsOnly;const N=h.getSelectedRange(),F=A.getItem(),E=F.getName();return await N.doBatch(async()=>{const B=await N.copyFrom(F,O);!B||B.isEntireRows()||B.isEntireColumns()||B.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(E?` ${E}`:""),autoSelect:!0}),!0}}),[h,g,j,f]),{clipboard:P,...I}=fb({..._,source:S,commands:m,target:R,notifier:j,onClipboardUpdate:A=>{const O=A?.getItemType()==="range"?A:null;if(O){const N=A.editMode?.(),F={...A?.isCut?.()?iF:rF,...N,args:{isClipboard:!0,...N?.args},onModeChange:E=>{E?.args?.isClipboard||P.clear(!0),N?.onModeChange?.(E)}};D.setMode(F)}T.current=O,y?.(O)},onPaste:(A,O)=>{if(A?.getItemType()!=="range")return;let N=D.getMode()?.key==="cut"||A.isCut?.();if(!N&&D.getMode()?.key==="copy"){const F=A.getItem().getCoords(),E=h.getSelectedRanges().getCoords();let B=!1;if(!B&&F&&E&&A.getItem().getSource?.()===h)for(let H=0;!B&&H<E.length;H++)B=Go.isRangesIntersect(F,E[H]);N=B}N&&D.setMode(null),f?.()?.focus(),x?.(A,O)}});u.useMemo(()=>{const A=f;if(!m)return;const O=[new We("pasteValues",A,{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 We("pasteFormats",A,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
|
|
197
|
-
|
|
198
|
-
The content is not applied.`}),new We("pasteFormulas",A,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new We("pasteTranspose",A,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new We("pasteLinks",A,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];m.addCommands(O,!0)},[m,f]),u.useEffect(()=>{if(!m)return;const A={disabled:!h.getProtection().isFormatCellsAllowed()};m.getCommand("pasteValues").updateCallback(O=>I.paste({...aF,...O})).update(A),m.getCommand("pasteFormats").updateCallback((O,N)=>I.paste({...lF,description:N.label(),...O})).update(A),m.getCommand("pasteFormulas").updateCallback((O,N)=>I.paste({...sF,description:N.label(),...O})).update(A),m.getCommand("pasteTranspose").updateCallback((O,N)=>I.paste({...cF,description:N.label(),...O})).update(A),m.getCommand("pasteLinks").updateCallback((O,N)=>I.paste({...dF,description:N.label(),...O})).update(A),m.getCommand("cut").update(A),m.getCommand("paste").update(A)},[h,m]);const z=u.useMemo(()=>{if(!C||!T.current)return;const A=C.key;if(A!=="copy"&&A!=="cut"&&A!=="formatPainter")return;const O=T.current.getItem();if(O.getSource()!==h)return;const N=T.current.isCut?.(),F=N?k:M,E=N?w:b,B=O.getCoords(),H=B?[B]:null;return H&&H.length!==0?U=>{const Z=[];for(let G=0;G<H.length;G++){const V=H[G],le=U.toClipBounds(U.getRangeCoordsBounds(V,{top:0,left:0,right:1,bottom:1}),Rr);le&&(Z.push(L({range:V,key:`copy-selection-background-${G}`,x:le.x,y:le.y,width:Math.max(le.width,0),height:Math.max(le.height,0),stroke:F,strokeWidth:2})),Z.push(L({range:V,key:`copy-selection-foreground-${G}`,x:le.x+(le.width<=2?-1:0),y:le.y,width:Math.max(le.width,3),height:Math.max(le.height,3),stroke:E,strokeWidth:2,isAnimatedStroke:!0})))}return Z}:null},[C,h,g,b,M,w,k]);return{...I,clipboard:P,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 cn(r?.getSelection(),{onChange(f){}}),u.useEffect(()=>{n?.getStage()},[n?.getStage()]),p&&n?p(n):null})),pF={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},hF={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},fF={key:"dragCopy",description:"Drag selection to copy cell contents."},mF={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},fg=(e,t)=>t.ctrlKey&&t.shiftKey?mF:t.ctrlKey?fF:t.shiftKey?hF:pF,gF={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},yF=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:f,isActive:h,editingCoords:g,...m}=e,y=n?.getBounds(),x=Te(l,[l]),v=Te(c,[c]),[b,w]=u.useState(()=>d?.getSelection().getCoords()),M=Te(Q=>{Go.isEqualSelectionCoords(Q,b)||d&&d.getSelection().updateCoords(Q)},[d,b]),k=Wi(),j=u.useRef(null),[_,L]=u.useState(d?.getProtection().isLocked()),[T,D]=u.useState(d?.getView().getMovableSelection().length>0),C=jn.detectIt().primaryInput==="touch",S=!C&&h,R=g!==null||T,P=Te(Q=>{const xe=Go.cellToRange(Q);if(d.isClosed())return xe;const be=d.getRange(xe,{excludeHidden:!0}).getMerges();return be.length===0?xe:be[0]},[d]),I=Te((Q,xe,be,Fe,ee,ae)=>{const we=d.getSelectedRange().getExtended(Fe,Q).getCoords();switch(Fe){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 Q=d.getUsedRange()?.getCoords(),xe=d.getRowHeaders().getUsedRange()?.getCoords(),be=d.getColumnHeaders().getUsedRange()?.getCoords();return{...Q,colEnd:Math.max(Q?.colEnd??0,be?.max??0),rowEnd:Math.max(Q?.rowEnd??0,xe?.max??0)}},[d]),A=Te((Q,xe)=>d.getRowHeaders().hiddenHeadersAt(Q,xe),[d]),O=Te((Q,xe)=>d.getColumnHeaders().hiddenHeadersAt(Q,xe),[d]),N=Te(Q=>d.getRange(Q,{excludeHidden:!0}).getMerges(),[d]),F=Te(Q=>{d?.getSelection().setAdjusting(Q)},[d]),E=Te(async()=>{d?.getSelection().setAdjusting(null),k.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),k.setMode(null))},[k,b,d,o]),B=u.useMemo(()=>{const Q=k.getMode();return Q?.key==="cut"||Q?.key==="copy"},[k]);cn(d?.getView(),{onMovableSelectionChange:()=>{D(d.getView().getMovableSelection().length>0)}}),cn(d?.getSelection(),{onChange(Q){const xe=d.getSelection().getCoords();w(xe)}}),cn(d,{onProtectionChange:()=>{L(d.getProtection().isLocked())}});const{body:H={}}=f||{},U=n.getLayout(),Z=!(S&&b.ranges.length<=1&&g===null&&!_&&(!k.getMode()||B)),{overlay:G,onPointerDown:V}=Ww({gridRef:p,commands:o,layout:U,getCellCoordsAsRangeCoords:P,selection:b,fillHandleBorderColor:H.fill,selectionBackgroundColor:h?f.selection.fill:f.selectionInactive.fill,selectionBorderColor:h?f.selection.strokeFill:f.selectionInactive.strokeFill,selectionRemoveBackgroundColor:h?f.selectionRemove.fill:f.selectionInactive.fill,selectionRemoveBorderColor:h?f.selectionRemove.strokeFill:f.selectionInactive.strokeFill,disableFillDrag:Z,disableMoveDrag:C||!(h&&b.ranges.length<=1&&g===null&&!_),disableTouchSelection:R,onSelectionChange:M,onSelectionDragStart:F,onSelectionDragEnd:E,onMoveDragStart:(Q,xe,be)=>{k.setMode(fg(0,be))},onMoveDragUpdate:(Q,xe,be)=>{k.setMode(fg(0,be))},onMoveDragEnd:(Q,xe)=>{k.setMode(null)},onMoveDragDone:async(Q,xe,be)=>{if(Go.isEqualRanges(Q,xe))return;const Fe=d.getRange(xe);if(a?.showOptions){const J=Fe.getDifferences(Q);let ce=!1;for(let ne=0;!ce&&ne<J.getCount();ne++)ce=J.at(ne).isContentful();if(ce&&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 ee=!be.ctrlKey,ae=be.shiftKey,we=ae?ee?"Insert Moved Cells":"Insert Copied Cells":ee?"Move Cells":"Copy Cells",se=await a?.showBusy?.(we);try{const J=d.getRange(Q);await Fe.doBatch(async()=>{ae?await Fe.insertFrom(Q,{isCut:ee,undoRange:J}):await Fe.copyFrom(Q,{isCut:ee,undoRange:J}),J.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0}),Fe.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0})},{description:we,autoSelect:!0})}catch(J){a?.showError?.(J)}finally{se?.()}},contentfulCellFinder:I,hiddenRowsAt:A,hiddenColumnsAt:O,mergedRanges:N,getDataCoords:z,canSelectionSpanMergedCells:Q=>{const xe=d.getRange(Q);return xe.isEntireColumns()||xe.isEntireRows()},onFill:async(Q,xe)=>{const be="Auto Fill",Fe=await a?.showBusy?.(be);try{await d.doBatch(()=>{d.getRange(Q).autoFill(xe),d.getRange(xe).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:be,autoSelect:!0})}catch(ee){a?.showError?.(ee)}finally{j.current=null,Fe?.()}},onFillPreview:(Q,xe,be)=>{if(p.current&&x){k.setMode(gF);try{j.current?.direction!==be&&(j.current=null,d.getRange(Q).autoFill(xe,{previewOnly:ne=>{j.current={callback:ne,direction:be}}}));const Fe=j.current?.callback?.(xe);if(!Fe||Fe.isEmpty())return;const ee=Fe.toText();if(!ee)return;const ae=Go.cellToRange(Fe.getCoords()),we=n.getRelativePointFromClient(0,0);let se=0,J=0,ce=mp;if(be===$.IRange.Direction.Down){se=U.getColOffset(ae.colEnd+1)-we.x;const ne=U.getRowOffset(ae.rowEnd),Pe=U.getRowOffset(ae.rowEnd+1);J=Pe-(Pe-ne)/2-we.y,ce=q5}else if(be===$.IRange.Direction.Right){J=U.getRowOffset(ae.rowEnd+1)-we.y;const ne=U.getColOffset(ae.colEnd),Pe=U.getColOffset(ae.colEnd+1);se=Pe-(Pe-ne)/2-we.x,ce=mp}else if(be===$.IRange.Direction.Up){se=U.getColOffset(ae.colEnd+1)-we.x;const ne=U.getRowOffset(ae.rowStart),Pe=U.getRowOffset(ae.rowStart+1);J=Pe-(Pe-ne)/2-we.y,ce=q5}else if(be===$.IRange.Direction.Left){J=U.getRowOffset(ae.rowEnd+1)-we.y;const ne=U.getColOffset(ae.colStart),Pe=U.getColOffset(ae.colStart+1);se=Pe-(Pe-ne)/2-we.x,ce=mp}x({anchor:{x:se,y:J},display:ee,placement:ce})}catch(Fe){a?.showError?.(Fe)}}},onFillDone:()=>{j.current=null,k.setMode(null),v?.()}}),le=Te(Q=>{V(jn.createSyntheticEvent(Q))},[V,g]);u.useEffect(()=>{const Q=n?.getStage();if(Q)return Q.addEventListener("pointerdown",le),()=>{Q.removeEventListener("pointerdown",le)}},[n?.getStage()]);const re=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:c0([re,ge]),...m,children:G(n)})})),kd=Object.freeze({x:0,y:0,width:0,height:0}),xF={fireOnModelChange:!1},bF=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:f,dragStart:h,style:g,disabled:m,renderMovable:y,...x}=e,[v,b]=u.useState(kd),[w,M]=u.useState(null),[k,j]=u.useState(!1),_=u.useRef(null);u.useLayoutEffect(()=>{if(r.isClosed())return;const T=r.getBounds();if(!T)return;const D=o.toViewBounds(T);b(D??kd),f(D??kd)},[o?.getBounds()]),cn(r,{onBoundsChange:T=>{const D=T.getBounds();if(!D)return;const C=o.toViewBounds(D);b(C??kd),f(C)},onSelectionChange:()=>{const T=Gt.hasFocus(_.current,!0);!k&&!T||r.isSelected()||d()}}),cn(r,{onRequestFocus:()=>Gt.whenFocus(_.current,!0)},xF),u.useEffect(()=>{const T=_.current;return i(T),()=>{a(T)}},[]);const L=u.useMemo(()=>{if(!v)return null;let{width:T,height:D}=v;return y({view:o,movable:r,disabled:m,isDragging:p,style:{position:"relative",left:0,top:0,width:T,height:D},onHide:l,onShow:c})},[o,r,v.width,v.height,m,p]);return s.jsx("div",{className:"movable",tabIndex:0,ref:c0([_,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 D=T.shiftKey||T.ctrlKey,C=r.isSelected(),S=T.currentTarget;D&&C?r.unselect():(C&&!D||await r.select({addToSelection:D}),h(T.nativeEvent,S),S.focus())},onFocus:T=>{T.relatedTarget&&!w&&M(T.relatedTarget),j(!0)},onBlur:T=>{w&&!_?.current?.contains(T.relatedTarget)&&M(null),T.relatedTarget&&j(!1)},...x,children:L})})),vF=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:f=!1,className:h,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]),M=Te(c,[c]),[k,j]=u.useState([]),[_,L]=u.useState(!1),[T,D]=u.useState(!1),C=u.useRef(!0),S=u.useRef(new Map),R=u.useRef(new Map),P=u.useRef(new Map),I=u.useRef(new Map),z=u.useRef(new Map),A=u.useRef({onRequestFocus:ke=>(be(ke),null)}),O=u.useRef(null),N=u.useRef(null),F=u.useRef(null),[E,B]=u.useReducer(ke=>ke+1,0);u.useLayoutEffect(()=>{B()},[n,o]),cn(o,{onCollectionChange:()=>{const ke=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),_e=z.current;_e.forEach(Be=>{Be()}),_e.clear();const Xe=A.current;for(let Be=0;Be<ke.length;Be++){const ct=ke[Be];if(ct.isClosed())continue;const et=ct.addListeners(Xe);_e.set(ct,et)}B()},onInvalidated:()=>{B()}}),cn(r,{onMovableSelectionChange(ke){U(),B()}});const H=u.useCallback((ke,_e)=>{const Xe=P.current.get(ke);F.current&&(F.current.getTargets().forEach(Be=>{if(Be===Xe)return Be.style.left=_e.x+"px",Be.style.top=_e.y+"px",Be.style.width=_e.width+"px",void(Be.style.height=_e.height+"px")}),F.current.updateRect())},[]),U=()=>{const ke=[],_e=r.getMovableSelection();_e.forEach(Xe=>{const Be=P.current.get(Xe);Be&&_e.indexOf(Xe)!==-1&&ke.push(Be)}),j(Xe=>Gt.isEqualArrays(Xe,ke)?Xe:ke)},Z=u.useRef(null),G=u.useMemo(()=>new Promise(ke=>{Z.current=ke}),[]),V=u.useRef(null),le=Te(async(ke,_e)=>{V.current=_e,await(async()=>!(!await G.then()||!F.current))()&&V.current===_e&&F.current.dragStart(ke,_e)},[k]),[re,ge]=u.useState(!1),Q=u.useRef(null),xe=u.useRef(null),be=Te(async(ke=null)=>{if(ke||(ke=r.getMovableSelection()[0]),!ke)return w?.(),!1;const _e=P.current.get(ke);_e?(await Gt.whenFocus(_e),_e.focus(),xe.current=_e,Q.current=null):Q.current=ke},[r]);u.useEffect(()=>{re&&k.length>0&&xe.current!==k[0]&&be(),C.current&&(b?.(),C.current=!1)},[k]);const Fe=u.useMemo(()=>{const ke=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(ke.length===0&&S.current.size===0)return null;const _e=(he,Ye,Se,Ie=!0)=>{const de=he.isSelected(),Oe={tabIndex:Se,view:n,movable:he,onRefLoad:Le=>{Q.current===he&&(Le.focus(),xe.current=Le,Q.current=null),P.current.set(he,Le),R.current.set(Le,he),Ye.rendered=!0,U()},onRefUnload:Le=>{P.current.delete(he),R.current.delete(Le),Ye.rendered=!1,U()},onUnFocus:w,onHide:Le=>{Ye.onHide=Le},onShow:Le=>{Ye.onShow=Le},isDragging:de&&(T||_),disabled:d,renderMovable:i,updateFrameBounds:Le=>{H(he,Le)},dragStart:le,onMouseUp:()=>{if(V.current=null,N.current){L(!1),D(!1);let Le=!1;I.current?.forEach(je=>{Gt.isEqualBounds(je.movable.getBounds(),je.startBounds)||(Le=!0)}),Le?ae():we()}},style:{opacity:Ie?_&&de?.7:void 0:0,zIndex:_&&de?he.getZIndex()+ke.length:void 0,pointerEvents:Ie?void 0:"none",cursor:T&&de?"grabbing":d||p?"initial":"move",boxShadow:!de||T&&!_?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(bF,{...Oe},`movable-${he.getUUID()}`)},Xe=S.current,Be=new Map,ct=[];for(let he=0;he<ke.length;he++){const Ye=ke[he];if(Ye.isClosed())continue;let Se=Xe.get(Ye);Se||(Se={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(Ie,de)=>{if(!de||de.shown===!0)return;de.shown=!0;const Oe=++de.visibilityRequestId;requestAnimationFrame(()=>{const Le=S.current.get(Ie);Le&&Oe===de.visibilityRequestId&&(de.onShow?.(Ie),Le.shown=!0)})},doHide:async(Ie,de)=>{if(!de||de?.shown===!1)return;de.shown=!1;const Oe=++de.visibilityRequestId,Le=await Promise.resolve(de.onHide?.(Ie));Oe===de.visibilityRequestId&&Le!==!1&&(de.shown=!1,S.current.delete(Ie),B())},visibilityRequestId:0}),Se.frame=_e(Ye,Se,he,!0),ct.push(Se.frame),Se.doShow(Ye,Se),Xe.delete(Ye),Be.set(Ye,Se)}const et=[];return r.getMovableSelection().forEach(he=>{const Ye=Xe.get(he);Ye&&(Ye.frame=_e(he,Ye,-1,!1),et.push(Ye.frame),Xe.delete(he),Be.set(he,Ye))}),Xe.forEach((he,Ye)=>{he.frame=_e(Ye,he,-1,!1),et.push(he.frame),he.doHide(Ye,he),Xe.delete(Ye),Be.set(Ye,he)}),S.current=Be,U(),[...et,...ct]},[E,n,i,d,p,f,_,T]),ee=Te((ke,_e)=>{const Xe=`${_e} ${k.length===1?$.TextUtils.capitalize(R.current?.get(k[0]).getContent().getType()):"Drawings"}`;N.current&&(console.warn(`Transaction ${N.current.getDescription()} is being replaced by ${Xe}`),N.current.rollback(),N.current=null),N.current=a.beginCommit({description:Xe}),I.current.clear();for(let Be=0;Be<k.length;Be++){const ct=k[Be],et=R.current?.get(ct);et?I.current.set(ct,{movable:et,startBounds:n.toViewBounds(et.getBounds())}):console.warn("invalid element",et)}},[a,n,k]),ae=u.useCallback(()=>{if(!N.current)return;const ke=[];I.current?.forEach(_e=>{ke.push(_e.movable)}),N.current.commit({viewAfter:{view:r,movableSelection:ke}}),I.current.clear(),N.current=null},[]),we=u.useCallback(()=>{N.current&&(N.current.rollback(),N.current=null)},[]),se=u.useRef(null);u.useEffect(()=>{se.current&&(se.current.onscroll=ke=>{ke.preventDefault(),ke.srcElement.scrollTop=0,ke.srcElement.scrollLeft=0})},[se.current]);const J=ir(t,()=>({isMovableArea:()=>!0,focusMovable:be,focus:()=>{be()}}),[r]),[ce,ne]=u.useState(null),Pe=u.useRef(!1),Ee=u.useRef(!1),it=u.useRef(!1);u.useEffect(()=>{if(d||k.length===0||it.current||Pe.current)return;if(Ee.current)return void requestAnimationFrame(()=>{F.current&&O.current&&F.current.refTargets.length>0&&(it.current=!0,Z.current?.(!0)),j([...k])});Pe.current=!0;const ke=u.lazy(async()=>{try{const _e=await Promise.resolve().then(()=>require("./D8lN5Mv3J4SwSpLP.cjs"));return Pe.current=!1,Ee.current=!0,j([...k]),_e}catch(_e){return console.warn(_e),Z.current?.(!1),null}});ne(ke)},[k,d,p,f]);const Ue=u.useMemo(()=>!ce||d?null:s.jsx(u.Suspense,{children:s.jsx(ce,{className:Zr({dragging:_||T,resizing:_,moving:T}),container:null,ref:F,target:F.current?k:[],draggable:!d&&!p,resizable:!d&&!f,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:m,onResizeStart:ke=>{ee(ke.target,"Resize")},onResize:ke=>{if(!N.current)return ke.stopDrag(),void B();L(!0);const _e=ke.direction[0]!==0&&ke.direction[1]!==0;let Xe=0,Be=0;for(let ct=0;ct<k.length;ct++){const et=k[ct],he=I.current.get(et),Ye=R.current.get(et);if(!he||!Ye){console.warn("invalid element");continue}let Se=ke.dist[0],Ie=ke.dist[1],de=ke.drag.dist[0],Oe=ke.drag.dist[1],Le=he.startBounds.width,je=he.startBounds.height;ct===0?(Xe=Le,Be=je):(Se*=Le/Xe,de*=Le/Xe,Ie*=je/Be,Oe*=je/Be);const K={...he.startBounds};if(K.width=Math.max(0,Le+Se),K.height=Math.max(0,je+Ie),ke.direction[0]===-1&&(K.width=Math.max(0,Math.min(he.startBounds.x+Le,Le-de))),ke.direction[1]===-1&&(K.height=Math.max(0,Math.min(he.startBounds.y+je,je-Oe))),_e&&(Ye.isLockAspectRatio()||ke.inputEvent?.shiftKey)){const W=Le/je,te=K.width/K.height;te>W?K.height=K.width/W:te<W&&(K.width=K.height*W)}ke.direction[0]===-1&&(K.x=Math.max(0,Math.min(he.startBounds.x+Le,he.startBounds.x+Le-K.width))),ke.direction[1]===-1&&(K.y=Math.min(he.startBounds.y+je,he.startBounds.y+je-K.height)),he.movable.setBounds(n.toAbsoluteBounds(K))}},onResizeEnd:ke=>{L(!1),ae()},onDragStart:ke=>{ee(ke.target,"Move")},onDrag:ke=>{if(!N.current)return ke.stopDrag(),void B();D(!0);for(let _e=0;_e<k.length;_e++){const Xe=k[_e],Be=I.current.get(Xe);Be?Be.movable.setBounds(n.toAbsoluteBounds({...Be.startBounds,x:Be.startBounds.x+ke.translate[0],y:Be.startBounds.y+ke.translate[1]})):console.warn("invalid element")}},onDragEnd:ke=>{},onMouseUp:ke=>{}})}),[E,ce,k,n,d,p,f,_,T]);return s.jsx("div",{className:Zr(h,"movable-area","_movable-area_314c6_5"),style:{width:v.width,height:v.height,...g,position:"absolute",overflow:"hidden",willChange:"transform"},ref:c0([J,se]),...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:O,style:{position:"absolute",pointerEvents:"auto"},onFocus:ke=>{M?.(),ge(!0)},onBlur:ke=>{ge(!1)},onKeyDownCapture:ke=>{if(ke.isDefaultPrevented())return;const _e=ke.nativeEvent.ctrlKey,Xe=ke.nativeEvent.altKey,Be=ke.nativeEvent.shiftKey;if(ke.which===on.Escape){const Se=r.getMovableSelection();let Ie=[...Se];return k.forEach(de=>{if(Ie.length===0)return;const Oe=R.current.get(de);let Le=Ie.indexOf(Oe);Ie.splice(Le,1)}),Ie.length!==Se.length&&r.selectMovables(Ie),Ie.length===0&&w?.(),void ke.preventDefault()}const ct=.1,et=Se=>{o.updateSelected(Ie=>{Ie.setRotation(Ie.getRotation()+Se)},"Rotate")},he=(Se,Ie=!0)=>{o.updateSelected(de=>{const Oe=de.getBounds();let Le=1+Se;Ie||(Le=1/Le);const je=Math.sqrt(Math.pow(Oe.width,2)+Math.pow(Oe.height,2)),K=Math.atan2(Oe.height,Oe.width),W=Le*je;if(W<10)return;const te=W*Math.cos(K),oe=W*Math.sin(K),ue={x:Oe.x+(Oe.width-te)/2,y:Oe.y+(Oe.height-oe)/2,width:te,height:oe};de.setBounds(ue)},"Resize")},Ye=Se=>{o.updateSelected(Ie=>{const de=Ie.getBounds(),Oe={x:de.x+(Se.x??0),y:de.y+(Se.y??0),width:de.width+(Se.width??0),height:de.height+(Se.height??0)};Ie.setBounds(Oe)},"Nudge")};if(ke.which===on.Delete)o.updateSelected(Se=>{Se.delete()},"Delete"),ke.preventDefault();else if(ke.key==="a"&&_e){const Se=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(Se,!0),ke.preventDefault()}else ke.key==="ArrowLeft"?(Be?he(ct,!1):Xe?et(-10):Ye({x:_e?-10:-1}),ke.preventDefault()):ke.key==="ArrowRight"?(Be?he(ct,!0):Xe?et(10):Ye({x:_e?10:1}),ke.preventDefault()):ke.key==="ArrowUp"?(Be?he(ct,!0):Ye({y:_e?-10:-1}),ke.preventDefault()):ke.key==="ArrowDown"&&(Be?he(ct,!1):Ye({y:_e?10:1}),ke.preventDefault())},children:[Fe,Ue]})})})})),ss=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}},mg=(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 f=0;f<e.length;f++){const h=e[f],g=h.getBounds();a+=g[i],l=Math.min(g[o],l),c=Math.max(g[o]+g[i],c),n.push({bounds:g,movable:h})}const d=(c-l-a)/(e.length-1);n.sort((f,h)=>{const g=f.bounds[o],m=h.bounds[o];return g!==m?g-m:f.bounds[r]-h.bounds[r]});const p=new Map;p.set(n[0].movable,n[0].bounds);for(let f=1;f<n.length-1;f++){const h=n[f-1].bounds,g={...n[f].bounds};g[o]=h[o]+h[i]+d,n[f].bounds=g,p.set(n[f].movable,g)}return p.set(n[n.length-1].movable,n[n.length-1].bounds),p},wF=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}),[]),[f,{height:h,width:g}]=Wl();return s.jsx("div",{...d,ref:c0([p,f]),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})})})})),SF=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(h){const{movables:g,movablesView:m,transactional:y,commands:x,target:v,onRepeatCommandChange:b,notifier:w}=h,M=Wi();u.useRef(M.getMode()).current=M.getMode();const k=Te(async(I,z,A=null,O=!0)=>{const N=async()=>{const F=await Promise.resolve(w?.showBusy?.(I.label()));try{await z();const E=A??I?.label?.();if(b){let B=null;I&&E!==!1&&(B=new Tt(I.key(),v,{label:E,description:E},N)),b(B)}F?.(),O&&M.setMode(null)}catch(E){F?.(),w?.showError?.(E)}};await N()},[b,w]),[j,_]=u.useReducer(I=>I+1,0),L=Te((I,z,A)=>{if(!m)return;const O=m.getMovableSelection();if(O.length===0)return;let N="Drawings";if(O.length===1){const E=O[0];N=$.TextUtils.capitalize(E.getContent().getType())??"Drawing"}const F=`${I.label()} ${N}`;k(I,()=>{let E=null;y&&(E=y.beginCommit(F));const B=m.getMovableSelection();if(B.length===0)return;const H=A?.(B);for(let U=0;U<B.length;U++){const Z=B[U];z(Z,H)}E?.commit()})},[m,y]),[T,D]=u.useState(m.getMovableSelection()[0]??null),[C,S]=u.useState(!T||T?.isProtected()),R=u.useMemo(()=>[new We("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(){L(this,I=>{I.moveToFront()})}),new We("moveForward",v,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[$e.Ctrl]}},function(){L(this,I=>{I.moveForward()})}),new We("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(){L(this,I=>{I.moveToBack()})}),new We("moveBackward",v,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[$e.Ctrl]}},function(){L(this,I=>{I.moveBackward()})}),new We("toggleLockAspectRatio",v,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){L(this,I=>{I.setLockAspectRatio(!I.isLockAspectRatio())})}),new We("formatAnchorTypeTwoCell",v,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.TwoCell)})}),new We("formatAnchorTypeOneCell",v,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.OneCell)})}),new We("formatAnchorTypeAbsolute",v,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.Absolute)})}),new We("formatDrawAlignLeft",v,{label:"Align Left",description:"Align the selected drawings to the left."},function(){L(this,(I,z)=>{I.setBounds({x:z.x})},ss)}),new We("formatDrawAlignCenter",v,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){L(this,(I,z)=>{I.setBounds({x:(z.width-I.getBounds().width)/2+z.x})},ss)}),new We("formatDrawAlignRight",v,{label:"Align Right",description:"Align the selected drawings to the right."},function(){L(this,(I,z)=>{I.setBounds({x:z.width-I.getBounds().width+z.x})},ss)}),new We("formatDrawAlignTop",v,{label:"Align Top",description:"Align the selected drawings to the top."},function(){L(this,(I,z)=>{I.setBounds({y:z.y})},ss)}),new We("formatDrawAlignMiddle",v,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){L(this,(I,z)=>{I.setBounds({y:(z.height-I.getBounds().height)/2+z.y})},ss)}),new We("formatDrawAlignBottom",v,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){L(this,(I,z)=>{I.setBounds({y:z.height-I.getBounds().height+z.y})},ss)}),new We("formatDrawDistributeHorz",v,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){L(this,(I,z)=>{I.setBounds(z.get(I))},I=>mg(I))}),new We("formatDrawDistributeVert",v,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){L(this,(I,z)=>{I.setBounds(z.get(I))},I=>mg(I,!1))}),new We("formatDrawFlipHorz",v,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new We("formatDrawFlipVert",v,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new We("formatDrawGroup",v,{label:"Group",description:"Group the selected drawings into a single drawing."}),new We("formatDrawUngroup",v,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new We("formatDrawSwapShapes",v,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new We("formatDrawSwapShapesHorz",v,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new We("formatDrawSwapShapesVert",v,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[m,T]);u.useEffect(()=>{},[M]);const P=u.useMemo(()=>{let I=null;return I=x?x.createChildGroup(v,"movable",!1):new a0(v,"movable"),I.addCommands(R,!0),I},[x,R]);return cn(T,{onAnyChange:()=>{P.getCommand("formatAnchorTypeTwoCell").update({state:T?.getAnchorType()===$.IAnchored.Type.TwoCell}),P.getCommand("formatAnchorTypeOneCell").update({state:T?.getAnchorType()===$.IAnchored.Type.OneCell}),P.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),P.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),P.getCommand("toggleLockAspectRatio").update({state:T?.isLockAspectRatio()})},onProtectedChange:I=>{S(I.isProtected())},onDelete:()=>{}}),cn(m,{onMovableSelectionChange:()=>{const I=m.getMovableSelection()[0]??null;D(I),S(!I||I.isProtected()),_()}}),cn(g,{onCollectionChange:()=>{_()}}),u.useEffect(()=>{const I={disabled:C};P.getCommand("formatAnchorTypeTwoCell").update(I),P.getCommand("formatAnchorTypeOneCell").update(I),P.getCommand("formatAnchorTypeAbsolute").update(I),P.getCommand("toggleLockAspectRatio").update(I);const z=g.getCount(),A=m.getMovableSelection(),O=C||z<=1||A.length===0;let N={disabled:O},F=N;if(!O&&A.length===1){const H=A[0];H.getZIndex()===0&&(N={disabled:!0}),H.getZIndex()===z-1&&(F={disabled:!0})}P.getCommand("moveToFront").update(F),P.getCommand("moveForward").update(F),P.getCommand("moveToBack").update(N),P.getCommand("moveBackward").update(N);const E={disabled:C||A.length<=1};P.getCommand("formatDrawAlignLeft").update(E),P.getCommand("formatDrawAlignCenter").update(E),P.getCommand("formatDrawAlignRight").update(E),P.getCommand("formatDrawAlignTop").update(E),P.getCommand("formatDrawAlignMiddle").update(E),P.getCommand("formatDrawAlignBottom").update(E),P.getCommand("formatDrawFlipHorz").update(E),P.getCommand("formatDrawFlipVert").update(E),P.getCommand("formatDrawGroup").update(E),P.getCommand("formatDrawUngroup").update(E),P.getCommand("formatDrawSwapShapes").update(E),P.getCommand("formatDrawSwapShapesHorz").update(E),P.getCommand("formatDrawSwapShapesVert").update(E);const B={disabled:C||A.length<=2};P.getCommand("formatDrawDistributeHorz").update(B),P.getCommand("formatDrawDistributeVert").update(B)},[j,C,j]),P}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:d,commands:a,target:l,notifier:c});u.useEffect(()=>{n?.getStage()},[n?.getStage()]);const f=u.useMemo(()=>s.jsx(vF,{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 f&&n?f:null})),CF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:a,setEditingCoords:l,commands:c,notifier:d=xu}=e,p=Wi(),[f,h]=u.useState(null),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),[w,M]=u.useState(null);u.useLayoutEffect(()=>{if(y===null)return b(null),void M(null);const A=()=>{const O=o.getRange(y).getCell(),N=O.getStyle();let F,E=N.getFill()?.toCSS(r.body.darkMode);E.background!=="none"&&E.background!=="transparent"||(E=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),E.background!=="none"&&E.background!=="transparent"||(E={background:r.body.fill}),b({style:E}),O&&!O.getFormula()&&(F=O?.getRenderHorizontalAlignment()),M(F??"left")};return A(),o.getRange(y).addListener(()=>{A()})},[o,y,r?.body]);const k=Te(()=>{let A=g.editState.dirty??"";if(g.editState.dirty!==void 0){const O=$.TextUtils.clampString(A);try{const N=g.sheet.getRange(g.coords),F=`Typing '${O}' into ${N.toString()}`;return N.setValue(A,{description:F,autoFit:!0}),x(null),m(null),p.setMode(null),l(null),!0}catch(N){throw d.showError(new Error(`Unable to enter '${O}'.`,{cause:N})),N}}},[o,g,d]),j=Te(A=>o.getRange(A).getCell().getExtrusions()??Go.cellToRange(A),[o]);Te(A=>{let O=$.IRange.Orientation.Row,N=!1;A!==$.IRange.Direction.Up&&A!==$.IRange.Direction.Down||(O=$.IRange.Orientation.Column),A!==$.IRange.Direction.Left&&A!==$.IRange.Direction.Up||(N=!0),o.getSelection().traverse(O,N)},[o]);const _=u.useCallback((A,O)=>{if(i)return i(A,O);if(!o)return null;const{ref:N,...F}=A;return s.jsx(Xw,{ref:N,...F,sheet:o,bodyStyle:r?.body,activeCoords:O,commands:c,onChangeEdit:E=>{const B={sheet:o,coords:O,editState:E};p.setMode(H=>({...H,description:B.editState.editMode?"Edit":"Enter",args:{...H?.args,stateAndCoords:B}}))},editState:g.editState})},[o,v,i,g,y]),{overlay:L,startEdit:T,submitEdit:D,cancelEdit:C,onKeyboardEventNative:S,onPointerEventNative:R}=(A=>{const{view:O,canEdit:N=xz,getCellEditor:F,onBeforeStartEdit:E,onStartEdit:B,onSubmitEdit:H,onCancelEdit:U,onDoneEdit:Z,isEditorStartKeyEvent:G=bz,isEditorStartPointerEvent:V=vz,containerProps:le,borderStrokeFill:re,borderStrokeWidth:ge=2,getRangeCoords:Q=null,activeCoords:xe,alignment:be=sc.Left}=A,[Fe,ee]=u.useState(!1),[ae,we]=u.useState(void 0),se=wt((W,te,oe,ue,ie,pe)=>{if(!te)return null;const fe=ie?.(te,W),ye=W.getRangeCoordsBounds(fe),De=W.toClipBounds(ye),Ve=ye,Je=W.getZoom();if(!De)return null;oe&&(oe*=Je),ue&&(ue*=Je);let ot=Ve,tt=!1;if(oe!==void 0){let _t={...fe},Yt=0;for(;!tt&&ot.width<=oe&&Yt<20;){Yt++,Yt>19&&console.warn("max width reached");const Jt=W.getTotalRangeCoords(),Qt=W.getLayout();pe===sc.Left?_t.colEnd+1<Jt.colEnd?_t.colEnd=Qt.getColIndex(ot.x+oe):tt=!0:pe===sc.Right?_t.colStart-1>=0?_t.colStart=Qt.getColIndex(ot.x-(oe-ot.width)):tt=!0:pe===sc.Center&&_t.colEnd+1<Jt.colEnd&&_t.colStart-1>=0?(_t.colStart=Qt.getColIndex(ot.x-(oe-ot.width)/2),_t.colEnd=Qt.getColIndex(ot.x+ot.width+(oe-ot.width)/2)):tt=!0,tt||(ot=W.getRangeCoordsBounds(_t))}}ot.height=Ve.height,ue!==void 0&&(ot.height=Math.max(ue+1,Ve.height));const{width:Lt,height:At}=W.getViewportSize();return{x:ot.x??0,y:ot.y??0,height:Math.min(At-ot.y,ot.height)+1,width:Math.min(Lt-ot.x,ot.width)+1}},[be]),J=wt(N,[N]),ce=u.useCallback(()=>{O?.getStage()?.focus()},[O]),ne=u.useRef(null),Pe=wt(W=>{E?.(W),Ye(),ee(!0),ne.current=null},[E]),Ee=wt(W=>{B?.(W.coords)},[B]),it=wt(W=>{W.isSubmitted||W.isCancelled||(_e.current.isEditorClosed=!0,ce(),W.isCancelled=!0,U?.(W.coords),Ye())},[U]),Ue=wt(W=>{if(W.isSubmitted||W.isCancelled)return!1;try{return ne.current=W.coords,W.isEditorClosing=!0,W.isSubmitted=!0,W.isEditorSubmitted||(W.isEditorSubmitted=!0,W.editorRefs[0]?.submitEdit?.()),W.coords,H?.(W.coords),W.isEditorClosed=!0,ce(),Ye(),!0}catch(te){throw W.isEditorClosing=!1,W.isSubmitted=!1,te}},[H]),ke=wt(W=>{ee(!1),Z?.(W.coords),Ye()},[Z]),_e=u.useRef(null),Xe=u.useRef(null),Be=u.useRef(null),ct=u.useRef([]),[et,he]=u.useReducer(W=>W+1,0),Ye=u.useCallback(W=>{W&&ct.current.push(W),he()},[]),Se=wt(W=>{if(W.defaultPrevented||W.isSynthetic||!O)return;const te=O?.getCellCoordsFromClient(W.clientX,W.clientY);te&&Ye({eventType:"pointer",event:W,coords:te})},[O]),Ie=wt(W=>{const te=W.nativeEvent;Se(te)},[O]),de=wt(W=>{if(W.defaultPrevented||W.isSynthetic||!O?.getStage())return;const te=Xe.current;G(W,te)&&(W.stopPropagation(),W.preventDefault()),W.key,Ye({eventType:"keyboard",event:W,coords:te})},[O]);u.useLayoutEffect(()=>{const W=(ue,ie)=>{const pe=ie?.cell??ue;if(!pe)return null;const fe=pe;if(!J(pe))return null;Pe?.(pe);const ye=Qo.uuidV4();ie=Object.freeze({autoFocus:!0,...ie}),Be.current=pe;const De={coords:fe,startEvent:ie,uuid:ye,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:Ve=>{De.isMounted||(De.isMounted=!0,Ye())},onUnmount:Ve=>{if(De.editorRefs.length===0){const Je=()=>{De.isMounted=!1,Ye()};if(document.activeElement!==document.body)Je();else{const ot=tt=>{tt.defaultPrevented||tt.target!==document.body||de(tt)};window.addEventListener("keydown",ot,!0),O.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",ot),Je()},{once:!0}),ce()}}}};return De};if(ct.current.length<=0&&!_e.current)return;const te=ct.current[0];$9(te),(ue=>{const ie=[],pe=ue?.length??0;for(let fe=0;fe<pe;fe++){const ye=ue[fe];ie.push($9(ye))}})(ct.current),_e.current,_e.current;let oe=_e.current;if(_e.current){if(_e.current.isDone)_e.current=null;else if(_e.current.isSubmitted||_e.current.isCancelled){if(_e.current.isMounted)return;_e.current.isDone||(ke(_e.current),_e.current.isDone=!0)}}if(te){if(te.eventType==="start"){const ue=te,ie=ue.startEvent?.cell??Xe.current;_e.current&&$t.isEqualCells(_e.current.coords,ie)||(_e.current=W(ie,ue.startEvent))}else if(te.eventType==="keyboard"){const ue=te.event;if(_e.current){let ie=!1;switch(ue.which){case 37:case 39:case 38:case 40:case 13:case 9:ie=!0}if(!ie){_e.current.events.push(te);for(let pe=0;pe<_e.current.editorRefsDispatchEditorEvent.length;pe++)_e.current.editorRefsDispatchEditorEvent[pe](te)}}else if(G(ue,te.coords)){const ie=W(Xe.current,void 0);ie&&ie.events.push(te),_e.current=ie}}else if(te.eventType==="pointer"){const ue=te.event;if(_e.current){_e.current.events.push(te);for(let ie=0;ie<_e.current.editorRefsDispatchEditorEvent.length;ie++)_e.current.editorRefsDispatchEditorEvent[ie](te)}else{const ie=te?.coords??Xe.current,pe=V(ue,ie);if(pe){let fe;typeof fe!="boolean"&&(fe=pe);const ye=W(ie,fe);ye&&ye.events.push(te),_e.current=ye}}}else if(te.eventType==="submit"){if(_e.current&&!_e.current.isSubmitted&&!_e.current.isCancelled){if(!_e.current.isMounted)return;Ue(_e.current)}}else if(te.eventType==="cancel"){if(_e.current&&!_e.current.isSubmitted&&!_e.current.isCancelled){if(!_e.current.isMounted)return;it(_e.current)}}else if(te.eventType==="coordsChange"){const ue=te;if(Xe.current=ue.activeCoords,_e.current,_e.current&&!_e.current.isSubmitted&&!_e.current.isCancelled){if(!_e.current.isMounted)return;try{Ue(_e.current)}catch{}}}}ct.current.length>0&&(ct.current.shift(),Ye()),ct.current.length===0&&(!_e.current||_e.current.isEditorClosing||_e.current.isEditorClosed?!_e.current&&oe&&ce():_e.current.isMounted&&!_e.current.isStarted&&(_e.current.isStarted=!0,_e.current.startEvent.autoFocus&&(typeof _e.current.startEvent.autoFocus=="string"?_e.current.editorRefs[0]?.autoFocus(_e.current.startEvent.autoFocus):_e.current.editorRefs[0]?.autoFocus()),Ee?.(_e.current),requestAnimationFrame(()=>{O&&_e.current?.coords&&O.scrollCellCoordsIntoView(_e.current.coords)})))},[et]),u.useEffect(()=>{Be.current=xe;const W=_e.current?.coords;$t.isEqualCells(W,xe)||(_e.current&&(_e.current.isEditorClosing=!0),Ye({eventType:"coordsChange",activeCoords:xe}))},[xe]);const Oe=u.useCallback(W=>{de(W.nativeEvent)},[]),{width:Le=0,height:je=0}=ae??{width:0,height:0},K=wt(F,[F]);return{overlay:wt(W=>{if(!_e.current||_e.current.isEditorClosed)return _e.current,null;_e.current.coords;let te=se(W,_e.current.coords,Le,je,Q,be),oe=!0;te&&te.width!==0&&te.height!==0||(te={x:0,y:0,width:Le,height:Le},oe=!1);const ue=W.getZoom(),ie={containerBounds:{x:0,y:0,width:te.width/ue,height:te.height/ue},setNaturalDimensions:we,zoom:ue};return s.jsx(wz,{session:_e.current,refLatestCoords:Be,handleSubmitEdit:Ue,handleCancelEdit:it,cellBounds:te,borderStrokeWidth:ge,borderStrokeFill:re,isInBounds:oe,getCellEditor:K,propsEditor:ie,alignment:be,...le},"editor:"+_e.current.uuid)},[F,Q,et,Le,je,be,ge,re]),startEdit:u.useCallback(W=>{Ye({eventType:"start",startEvent:W})},[]),submitEdit:u.useCallback(()=>{Ye({eventType:"submit"})},[]),cancelEdit:u.useCallback(()=>{Ye({eventType:"cancel"})},[]),onKeyboardEvent:Oe,onPointerEvent:Ie,onKeyboardEventNative:de,onPointerEventNative:Se,isEditing:Fe}})({view:n,activeCoords:f,getCellEditor:_,canEdit:()=>{const A=o.getProtection();if(A.isReadOnly())return!1;const O=A.isLocked();return O&&a(),!O},onBeforeStartEdit:A=>{const O=Yw(()=>o.getRange(A).getCell()),N={sheet:o,coords:A,editState:Object.freeze(O)};p.setMode({key:"edit",args:{stateAndCoords:N}}),m(N)},onStartEdit:A=>{x(A),l(A)},onSubmitEdit:k,onCancelEdit:A=>{x(null),m(null),p.setMode(null),l(null)},onDoneEdit:A=>{p.setMode(null)},containerProps:v,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:w,getRangeCoords:j});cn(o.getSelection(),{onChange(A){h(o.getSelection().getCoords().cell)}});const P=Te(A=>{R(A),y&&D()},[R,C,y]),I=u.useCallback(A=>{R(A)},[R]),z=u.useCallback(A=>{S(A)},[S]);return u.useEffect(()=>{const A=n?.getStage();if(A)return A.addEventListener("pointerdown",P),A.addEventListener("dblclick",I),A.addEventListener("keydown",z),()=>{A.removeEventListener("pointerdown",P),A.removeEventListener("dblclick",I),A.removeEventListener("keydown",z)}},[n?.getStage()]),u.useEffect(()=>{const A=p.getMode(),O=A?.key;O==="edit"||O==="enter"?g?A.args?.cancel?C():A.args?.submit?D():m(A.args?.stateAndCoords):T(A.args?.start):y&&C()},[p]),L(n,t)})),nS="white",oS="black",kF=`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='${oS}' fill='${nS}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,EF=`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='${oS}' fill='${nS}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,MF=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,f]=u.useState(null),[h,g]=u.useState(null),m=Te(()=>{if(o.getTables().getCount()>0){i(!0);const k=o.getTables().search({address:n.getVisibleRangeCoords()});l(k.length>0?k:null)}else i(!1),l(null)},[o,n]),y=Te(k=>{k.preventDefault(),k.stopPropagation();const j=n.getCellCoordsFromClient(k.clientX,k.clientY),_=o.getTables().search({address:j});_.length===1&&_[0].select()},[n,o]),x=Te(k=>{k.preventDefault(),k.stopPropagation();const j=n.getCellCoordsFromClient(k.clientX,k.clientY),_=o.getTables().search({address:j});if(_.length===1){const L=_[0].getRange().getCoords(),T={colStart:L.colStart,rowStart:j.rowIndex,colEnd:L.colEnd,rowEnd:j.rowIndex};o.getRange(T).select()}},[n,o]),v=Te(()=>{if(!r)return;const k=o.getTables().search({address:n.getVisibleRangeCoords()});l(k.length>0?k:null)},[o,r,n]);cn(o?.getSelection(),{onChange(k){d(o.getSelection().getCoords().cell)}}),cn(p,{onAnyChange(k){m(),v()}}),cn(h,{onAnyChange(k){v()}}),cn(o,{onTablesChange(k){m(),v()},onInvalidated(k){m(),v()}});const b=u.useMemo(()=>Gt.debounce(Gt.throttle(v,300),300),[]);u.useEffect(()=>{b()},[n]),u.useEffect(()=>{let k=null;if(a)for(let j=0;j<a.length&&!k;j++){const _=a[j],L=_.getRange().getCoords();$.CoordUtils.isCellWithinRange(c,L)&&(k=_)}f(k)},[c,a]);const w=Te(k=>{let j=null;if(a)for(let _=0;_<a.length;_++){const L=a[_],T=L.getRange().getCoords();let D=n.getRangeCoordsBounds(T);const C=n.getRelativePointFromClient(k.clientX,k.clientY),S=C.x,R=C.y;if(S>=D.x&&S<=D.x+D.width&&R>=D.y&&R<=D.y+D.height){const P=n.getViewportSize();S<=0||R<=0||S>=P.width||R>=P.height||(j=L)}}g(j)},[n,a]);if(u.useEffect(()=>{const k=n?.getStage();if(k&&a)return k.addEventListener("mousemove",w),k.addEventListener("mouseleave",w),()=>{k.removeEventListener("mousemove",w),k.removeEventListener("mouseleave",w)}},[a,n?.getStage()]),!n||!a||a.length===0)return null;const M=[];for(let k=0;k<a.length;k++){const j=a[k];if(j.isClosed())continue;const _=j===h,L=j===p,T=j.getRange().getCoords(),D=n.getRangeCoordsBounds(T);let C;if(_||L){const S=j.getStyle().getProperties(),R=S.headerRow?.fill?.background??S.wholeTable?.border?.top?.color?.toString();if(R&&o){const P=o.getStyles().parseColor(R);P&&(C=P.toCSS())}C||(C="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}M.push(s.jsx("div",{style:{position:"absolute",left:D.x,top:D.y,width:Math.min(16,D.width),height:D.height,pointerEvents:"all",cursor:kF},onMouseDown:x},`table-select-row-${j.getName()}`)),M.push(s.jsx("div",{style:{position:"absolute",left:D.x,top:D.y,width:Math.min(16,D.width),height:Math.min(16,D.height),pointerEvents:"all",cursor:EF},onMouseDown:y},`table-select-${j.getName()}`)),M.push(s.jsx(A2,{x:D.x,y:D.y,width:D.width,height:D.height,range:T,strokeWidth:L?.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-${j.getName()}`))}return M})),TF=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 f=u.useMemo(()=>Gt.debounce(Gt.throttle(p,80),80),[]);if(cn(o?.getSelection(),{onChange(x){f()}}),cn(o,{onSpillsChange(x){p()},onInvalidated(x){p()}}),!n||!i&&!l)return null;const h=o.getRange(i).getValue()instanceof $.FormulaError.Spill,g=[];let m=l?.bounds??n.getRangeCoordsBounds(i);if(l&&!Gt.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(A2,{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:h?"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})),_F={position:"absolute",top:0,left:0,bottom:0,right:0},gg=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},a=n.body=Gt.mergeContentful(e.body,i);return n.body=Gt.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},a),n.buttonSurface=Gt.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=Gt.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Gt.mergeContentful(n.header,i),n.headerSelect=Gt.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Gt.mergeContentful(n.headerSelect,i),n.headerSelectAll=Gt.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Gt.mergeContentful(n.headerSelectAll,i),n},jF={fireOnModelChange:!1},yg={},rS=u.memo(u.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=yg,headersStyle:r=yg,onSheetContextMenu:i,showColumnHeaders:a,columnHeaderProps:l,showRowHeaders:c,rowHeaderProps:d,showScrollbars:p=!0,scrollPaneProps:f,onViewportChange:h,commands:g,onRepeatCommandChange:m,onMoveCell:y,overlays:x,renderMovable:v,viewportComponent:b,onElementLoad:w,getCellEditor:M,onFocus:k,onBlur:j,style:_=jn.EmptyCssProperties,notifier:L,onShowTooltip:T,onShowColumnTooltip:D,onShowRowTooltip:C,onCloseTooltip:S,gridProps:R,cellRenderProps:P,...I}=e;if(u.useEffect(()=>{$.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[z,A]=u.useReducer(Ze=>Ze+1,0),[O,{width:N,height:F}]=Wl(),E=Te(T,[T]),B=Te(D,[D]),H=Te(C,[C]),U=Te(S,[S]),Z=u.useRef(!1);u.useLayoutEffect(()=>{Z.current=!0},[n]);const G=n?.getStyles(),V=u.useMemo(()=>gg(o,G),[o,G]),le=u.useMemo(()=>gg(r,G),[r,G]),{body:re={},buttonSurface:ge={}}=V,{header:Q={},headerSelect:xe={},headerSelectAll:be={}}=le,Fe=u.useRef(null),[ee,ae]=u.useState(()=>n?.getView()),we=(ee?.getZoomScale()??100)/100,se=u.useMemo(()=>({vertical:ee.isShowColumnGridlines()&&we>=.4,horizontal:ee.isShowRowGridlines()&&we>=.4}),[ee?.isShowColumnGridlines(),ee?.isShowRowGridlines(),we]),J=u.useMemo(()=>{if(ee?.getGridLineColor())return{strokeDasharray:"1,1"}},[ee?.getGridLineColor(),V]),ce=a??ee?.isShowColumnHeaders(),ne=c??ee?.isShowRowHeaders(),[Pe,Ee]=u.useState({width:0,height:0}),it=u.useMemo(()=>{let Ze=40,ve=20;const St=n?.getStyles().getNormal().getFont();if(Pe.width>0&&Pe.height>0){const q=St?.toCSS()?.fontFamily??V.header.text.fontFamily,Ce=St?.getSize()??V.header.text.fontSize,Y=$.IFont.getSharedMeasurer()(""+Pe.height,Math.ceil(Ce*$.IFont.getDeviceScale()),q);Ze=Y.width,ve=Y.lineHeight}return{width:Math.round(Ze+5),height:Math.round(ve+3)}},[Pe,V?.header.text,n]),Ue=ne?we*it.width:Q.edgeStrokeWidth,ke=ce?we*it.height:Q.edgeStrokeWidth,_e=Math.max(N,(n?.getColumnHeaders().getDefaultSize()??it.width)+Ue+1),Xe=Math.max(F,(n?.getRowHeaders().getDefaultSize()??it.height)+ke+1),Be=u.useRef(new Map),ct=u.useRef(null),et=()=>({getColOffset:Ze=>n.getColumnHeaders().findOffset(Ze),getColIndex:Ze=>n.getColumnHeaders().findIndex(Ze),getRowOffset:Ze=>n.getRowHeaders().findOffset(Ze),getRowIndex:Ze=>n.getRowHeaders().findIndex(Ze)}),[he,Ye]=u.useState(()=>et()),[Se,Ie]=u.useState(!1),[de,Oe]=u.useState(null),Le=!0,je=V.selection?.strokeFill,K=u.useCallback(()=>pr.current,[]),[W,te]=u.useState(),oe=Te(Ze=>{te(Ze),n&&n.getView()&&n.getView().setTopLeft(Ze?{left:Ze.left,top:Ze.top}:null),h?.(Ze)},[n,h]),ue=u.useRef(null);u.useEffect(()=>{if(!W||!n)return;const Ze=n.getRangeAtBounds({x:W.left,y:W.top,width:W.width,height:W.height});ue.current?.(),ue.current=Ze.addListener(()=>{const ve=Ze.getCoords();Fe?.current?.invalidate(ve)})},[W,n]);const[ie,pe]=u.useState(()=>n?.getView().getTopLeft()),fe=Te(Ze=>{const ve=Go.cellToRange(Ze);if(n.isClosed())return ve;const St=n.getRange(ve,{excludeHidden:!0}).getMerges();return St.length===0?ve:St[0]},[n]),ye=Ze=>{if(!Ze||Ze.coords.colIndex===0&&Ze.coords.rowIndex===0)return null;const ve={};return Ze.coords.colIndex>0&&(ve[zo.Left]={index:Ze.coords.colIndex,scrollOffset:Ze.topLeft.left}),Ze.coords.rowIndex>0&&(ve[zo.Top]={index:Ze.coords.rowIndex,scrollOffset:Ze.topLeft.top}),ve},[De,Ve]=u.useState(()=>ye(n.getView().getFreezePanes())),Je=Wi(),ot=u.useCallback(()=>Fe.current,[]),tt=Te(Ze=>{Je.setMode(ve=>ve?.key==="edit"?{...ve,args:{...ve.args}}:{key:"edit",args:{stateAndCoords:null,start:Ze}})},[]),Lt=Te(()=>W,[W]),At=function(Ze){const{sheet:ve,onRepeatCommandChange:St,bodyStyle:q,commands:Ce,target:Y,notifier:me,onStartEdit:qe,getViewport:mt}=Ze,[Ke,Wt]=u.useState(null),[Mt,Bt]=u.useState(null),Ut=u.useRef(null),mn=Te(qe,[qe]),Vt=Te(mt,[mt]),[Nt,io]=u.useState(),[Ct,ln]=u.useState(()=>ve?.getStyles().parseColor($.IColor.Scheme.Bg2)),[go,pn]=u.useState(()=>ve?.getStyles().getNormal().getFont().getFill()),qt=Wi();u.useRef(qt.getMode()).current=qt.getMode();const vo=hb(),[Bo,Zl]=u.useState(Gt.EmptyArray),Xl=u.useCallback(()=>{if(Ut.current!==ve)return;const Me=ve.getSelectedRanges();let nt=null;Bo.length>0&&Go.isCellWithinRange(Ke,Bo[0].getRange().getCoords())&&(nt=Bo[0]);const dt=ve?.getSelectedCell(),He=dt?.getCoords()??null;yo.unstable_batchedUpdates(()=>{q2(nt),Wt(He),Bt(Me)})},[ve,Bo,Mt,Ke]),U2=u.useCallback(Gt.debounce(Xl,210),[Xl]);u.useEffect(()=>{Ut.current=ve,Xl()},[ve]);const ar=Te(()=>ve.getRange(Ke).getCell(),[ve,Ke]),wo=Te(async(Me,nt,dt=null,He=!1,ht=!0)=>{const bt=Me?.label?.(),bn=async()=>{const hn=await Promise.resolve(ht&&me?.showBusy?.(bt??"Busy..."));try{await ve.doBatch(async()=>nt(ve),bt),He&&qt.setMode(null),hn&&hn()}catch(ao){if(hn&&hn(),!ao)return;me?.showError?.(ao)}},vn=[];let sn=!1;const kn=async()=>(vn.push(bn),(async()=>{if(!sn){for(sn=!0;vn.length>0;){const hn=vn.shift();hn&&await hn()}sn=!1}})());if(St){let hn=null;if(dt!==!1&&Me){const ao=dt??bt;hn=new Tt(Me.key(),Y,{label:ao,description:ao},kn)}St(hn)}return kn()},[ve,St,me]),Xt=Te((Me,nt,dt=!1,He)=>wo(Me,ht=>{const bt=ht.getSelectedRanges();dt&&bt.updateStyle(null,He),bt.updateStyle(nt,He),bt.autoFit({expandOnly:$.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[ve]),Yf=Te((Me,nt,dt)=>{wo(Me,He=>{let ht=nt;(dt||nt?.address)&&(ht=ht??{},!dt&&nt?.address?.startsWith("#")?dt=nt?.address.substring(1):dt&&(ht.displayText=dt)),He.getSelectedRange().setHyperlink(ht)})},[ve]),Jf=Te((Me,nt)=>{wo(Me,dt=>{dt.getSelectedRange().setComments(nt)})},[ve]),p0=Te((Me,nt)=>{wo(Me,dt=>{dt.getSelectedRanges().clear(nt)})},[ve]),il=Te(async(Me,nt,dt=!1,He=!1)=>wo(Me,async ht=>{let bt=ht.getSelectedRanges();dt&&(nt===$.IRange.Orientation.Row?bt=bt.getEntireRows(He):nt===$.IRange.Orientation.Column&&(bt=bt.getEntireColumns(He)));let bn=null;const vn=qt.getMode()?.key;if(vn==="copy"||vn==="cut"){const sn=await vo.getClipboard().readReference();sn&&sn.getItemType()==="range"&&(bn=sn.getItem(),bn.getCoords()||(bn=null))}if(bn){const sn=await bt.insertFrom(bn,{...bn.getMarkOptions(),orientation:nt,autoSelect:!0});!sn||sn.isEntireRows()||sn.isEntireColumns()||sn.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0}),qt.setMode(null)}else bt.insert(nt,{autoSelect:!0})},"Insert Cells",!1),[qt]),[fa,q2]=u.useState(null),NC=Te(Me=>ve.getStyles().setDefaultTableStyle(Me),[ve]),$C=Te(Me=>{ve.getStyles().getTableStyle(Me)?.delete()},[ve]),h0=Te((Me,nt)=>{wo(Me,async dt=>{const He=dt.getSelectedRange(),ht=dt.getSelectedCell().getCoords();let bt=null,bn=0;const vn=ht.rowIndex>0?dt.getRange({rowIndex:ht.rowIndex,colIndex:ht.colIndex}).getExtended($.IRange.Direction.Up):null;vn&&dt.getRange({colStart:ht.colIndex,rowStart:vn.getCoords().rowStart,colEnd:ht.colIndex,rowEnd:vn.getCoords().rowStart}).isContentful()&&(bt=$.IRange.Direction.Up,bn=ht.rowIndex-vn.getCoords().rowEnd);const sn=ht.colIndex>0?dt.getRange({rowIndex:ht.rowIndex,colIndex:ht.colIndex-1}).getExtended($.IRange.Direction.Left):null;if(sn&&dt.getRange({colStart:sn.getCoords().colStart,rowStart:ht.rowIndex,colEnd:sn.getCoords().colStart,rowEnd:ht.rowIndex}).isContentful()){const hn=ht.colIndex-sn.getCoords().colEnd;(hn<bn||!bt)&&(bt=$.IRange.Direction.Left,bn=hn)}let kn=null;if(bt===$.IRange.Direction.Up){if(kn={...vn.getCoords()},(kn.rowEnd===ht.rowIndex||!dt.getRange({colIndex:ht.colIndex,rowIndex:ht.rowIndex-1}).isContentful())&&kn.rowStart>0&&dt.getRange({colIndex:ht.colIndex,rowIndex:kn.rowStart-1}).isContentful()){const hn=vn.getExtended($.IRange.Direction.Up);kn={colStart:ht.colIndex,rowStart:hn.getCoords().rowStart,colEnd:ht.colIndex,rowEnd:vn.getCoords().rowEnd}}kn.rowEnd=ht.rowIndex-1}else if(bt===$.IRange.Direction.Left){if(kn={...sn.getCoords()},(kn.colEnd===ht.colIndex||!dt.getRange({colIndex:ht.colIndex-1,rowIndex:ht.rowIndex}).isContentful())&&kn.colStart>0&&dt.getRange({colIndex:kn.colStart-1,rowIndex:ht.rowIndex}).isContentful()){const hn=sn.getExtended($.IRange.Direction.Left);kn={colStart:hn.getCoords().colStart,rowStart:ht.rowIndex,colEnd:hn.getCoords().colEnd,rowEnd:ht.rowIndex}}kn.colEnd=ht.colIndex-1}if(He.size!==1&&bt){const hn=He.getCoords(),ao=He.startIncrementalUpdates({orientation:$.IRange.Orientation.Column}),jo={...kn},wr=hn.rowStart,Ai=hn.rowEnd,Li=hn.colStart,zi=hn.colEnd,Nr=bt===$.IRange.Direction.Up;for(let fr=Li;fr<=zi;fr++){jo.colStart=Nr?fr:kn.colStart+(fr-Li),jo.colEnd=Nr?fr:kn.colEnd+(fr-Li);for(let No=wr;No<=Ai;No++){jo.rowStart=Nr?kn.rowStart+(No-wr):No,jo.rowEnd=Nr?kn.rowEnd+(No-wr):No;const hi=dt.getRange(jo).toString();ao.pushAt(No,fr,`=${nt}(${hi})`)}}ao.apply()}else{const hn=kn?dt.getRange(kn).toString():"",ao=`=${nt}(`;mn?.({text:`${ao}${hn})`,editMode:!0,initialSelection:{start:ao.length,end:ao.length+hn.length}})}},!1)},[ve]),R1=Te((Me,nt,dt=!1,He=!0)=>{wo(Me,async ht=>{let bt=null;if(fa)return void fa.updateStyleOptions(nt);{const sn=ht.getSelectedRanges().getFixed(!0),kn=ht.getSelectedRange().getDefaultSortCriteria();let hn={ranges:sn,hasHeader:kn?.options?.hasHeader??!1};bt=He?new Promise((ao,jo)=>{const wr={tableOptions:hn,onCancel:()=>{jo()},onDone:Ai=>{ao(Ai)},context:{getNames:()=>ht.getNames()}};me.showWindow?.("tableNew",wr)}):{option:"Ok",tableOptions:hn}}const bn=await Promise.resolve(bt);if(bn?.option!=="Ok")throw null;const vn=await Promise.resolve(me?.showBusy?.(Me.label()));try{await ht.getTables().add(bn.tableOptions.ranges.at(0),{styleName:nt?.name,clearFormatting:dt,hasHeader:bn.tableOptions.hasHeader}).getRange().select()}catch(sn){vn(),me?.showError?.(sn)}vn()},!1,!0,!1)},[fa]),Qf=Te(()=>q,[q]),em=Te(Me=>({styles:()=>ve.getStyles(),table:()=>Me,bodyStyle:Qf,getNames:()=>ve.getNames()}),[ve]),VC=Te(async(Me,nt,dt,He=!0)=>{let ht=null;if(!nt){let bt=ve.getSelectedRange();bt.size===1&&(bt=bt.getSurrounding());let bn=ve.getTables().search({address:ve.getSelectedRange()});bn.length>0&&(nt=bn[0]),await bt.select()}if(nt){if(He){try{dt&&await nt.select()}catch{}ht=new Promise(async(bt,bn)=>{Me.update({context:em(nt)});const vn={command:Me,commands:Re,notifier:me,onDone:kn=>{bt(kn)}},sn=await me.showWindow?.("tableDetails",vn,{disableAutoDestroy:!0});setTimeout(()=>{sn.focus()},180)})}Promise.resolve(ht).then(bt=>{},bt=>{me?.showError?.(bt)})}},[me]),tm=Te(async(Me,nt,dt=!1)=>{let He=null;if(nt)nt.isITable?He=nt:nt.getValue()&&(He=nt.getValue());else{const ht=ve.getTables().search({address:ve.getSelectedRange()});ht.length>0&&(He=ht[0])}if(He){if(!dt){const ht=He.getRange().getCoords(),bt=(ht.colEnd-ht.colStart+1)*(ht.rowEnd-ht.rowStart+1);if(bt>1e4&&await me?.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}wo(Me,async()=>{dt?He.delete():He.convertToRange()},!1,!0)}},[me]),K2=Te((Me,nt,dt)=>{wo(Me,async He=>{let ht=He.getSelectedRanges();if(ht.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let bt=ht.at(0);bt.size===1&&(bt=bt.getSurrounding());const bn=He.getSelection().getCoords().cell;let vn=bt.getDefaultSortCriteria($.IRange.Orientation.Row,bn);if(!vn){if(dt)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let sn=vn.options;if(dt&&(sn=new Promise((hn,ao)=>{const jo={range:bt,options:vn.options,cell:bn,onCancel:()=>{ao()},onDone:wr=>{wr?hn(wr.options):ao()}};me.showWindow?.("sort",jo)})),sn=await Promise.resolve(sn),!sn)return;const kn=await Promise.resolve(me?.showBusy?.(Me.label()));try{bt.doBatch(()=>{const hn={...sn,...nt};bt.sort(hn),bt.autoFit({orientations:hn?.orientation===$.IRange.Orientation.Column?$.IRange.Orientations.Column:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},Me?.label?.())}catch(hn){kn(),me?.showError?.(hn)}kn()},!1,!1,!1)},[me]),HC=Te(()=>{console.log("compactedSelection");const Me=ve.getSelection().getCoords(),nt=ve.getSelectedRanges().getFlattened().getCoords(),dt=(()=>{const bt=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),bn=URL.createObjectURL(bt),vn=new Worker(bn);return URL.revokeObjectURL(bn),vn})();setTimeout(()=>{dt.terminate(),console.log("Worker terminated")},5e3);let He=-1;for(let bt=0;He===-1&&bt<nt.length;bt++)Go.isCellWithinRange(Me.cell,nt[bt])&&(He=bt);if(Go.isEqualRangesArrays(Me.ranges,nt))return;const ht={cell:Me.cell,ranges:nt,rangeIndex:He};ve.getSelection().updateCoords(ht)},[ve]),WC=Te(()=>{console.log("selectComments")},[ve]),nm=Te(async(Me=!1,nt=!1)=>{let dt=null;if(nt)dt=ve.getEntireRange();else{const He=ve.getSelectedRange();if(He.isEntireRange()){const ht=ve.getSelection().getCoords().cell,bt=ve.getRange(ht);dt=bt.getSurrounding(),dt.isEntireRange()&&(dt=bt)}else dt=He.getSurrounding({contentOnly:Me})}dt&&await dt.select()},[ve]),f0=Te((Me,nt,dt)=>{wo(Me,async He=>{let ht=He.getSelectedRanges();dt&&(nt===$.IRange.Orientation.Row?ht=ht.getEntireRows():nt===$.IRange.Orientation.Column&&(ht=ht.getEntireColumns())),ht.delete(nt)},"Delete Cells")},[ve]);Te(async Me=>{let nt=null;const dt=Vt(),He=Math.min(dt.width-8,480),ht=Math.min(dt.height-8,288);try{ve.getSelectedRanges(),nt=await ve.getMovables().add({bounds:{x:dt.left+(dt.width-He)/2,y:dt.top+(dt.height-ht)/2,width:He,height:ht},type:"chart",json:Me.template}),nt.select(),qt.setMode(null)}catch(bt){me?.showError?.(bt)}return nt},[ve,me]);const om=Te(async(Me,nt,dt)=>{const He=await me?.showBusy?.(Me.label());try{const ht=await ve.getMovables().addImage(nt,{autoSelect:!0,...dt});return He(),qt.setMode(null),ht}catch(ht){He();let bt=ht;typeof bt!="string"&&(console.warn(ht),bt="Unable to resolve image."),me?.showMessage?.(bt,{type:pa.Error})}},[ve,me]),I1=Te((Me,nt)=>{wo(Me,async dt=>{const He=dt.getSelectedRanges();He.doBatch(()=>{const ht=nt===$.IRange.Direction.Up||nt===$.IRange.Direction.Down,bt=He.getCoords().slice().sort(Go.createRangeComparator(ht?$.IRange.Orientation.Row:$.IRange.Orientation.Column));for(let bn=0;bn<bt.length;bn++){const vn=bt[bn];let sn=vn;const kn=dt.getRange(sn).getMerges();let hn=0,ao=0;if(kn.length>0){const jo=kn[0];hn=jo.rowEnd-jo.rowStart,ao=jo.colEnd-jo.colStart}nt===$.IRange.Direction.Left?sn={...vn,colStart:vn.colEnd+ao}:nt===$.IRange.Direction.Right?sn={...vn,colEnd:vn.colStart+ao}:nt===$.IRange.Direction.Up?sn={...vn,rowStart:vn.rowEnd+hn}:nt===$.IRange.Direction.Down&&(sn={...vn,rowEnd:vn.rowStart+hn}),dt.getRange(sn).autoFill(vn,{filler:$.AutoFill.Types.Copy}),dt.getRange(vn).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:Me.label()})})},[me]),UC=Te(()=>{let Me=null;const nt=ve.getSelectedCell().getCoords();if(nt?.rowIndex>0){const dt=ve.getRange({rowIndex:nt.rowIndex-1,colIndex:nt.colIndex}).getCell();dt&&(Me=dt.toTextUnformatted(!0))}mn?.({text:Me})},[ve]),[m0,qC]=u.useReducer(Me=>Me+1,0),[P1,Yl]=u.useReducer(Me=>Me+1,0),rm=u.useMemo(()=>[new We("gridlinesToggle",Y,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new We("sheetViewToggleGridlinesRows",Y,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new We("sheetViewToggleGridlinesColumns",Y,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new We("sheetViewFormatGridlinesColor",Y,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new We("sheetViewToggleShowHeadings",Y,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new We("sheetViewToggleShowHeadingRows",Y,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new We("sheetViewToggleShowHeadingColumns",Y,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new We("sheetViewToggleShowHeadingsNumeric",Y,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[$e.Ctrl,$e.Shift]}}),new We("sheetViewToggleFormulaView",Y,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[$e.Ctrl]},{key:"`",modifiers:[$e.Ctrl,$e.Shift]}]}),new We("sheetViewToggleShowZeros",Y,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new Tt("selectComments",Y,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[$e.Ctrl,$e.Shift]}},()=>WC()),new We("selectAll",Y,{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]}]},(Me=!1)=>nm(!1,Me)),new Tt("selectRegion",Y,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[$e.Ctrl,$e.Shift]}},()=>nm(!0,!1)),new Tt("breakSelection",Y,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Alt]}},()=>HC()),new Tt("formatTextRotate0",Y,{label:"No Text Rotation",description:"Remove all text rotation."}),new Tt("formatTextRotate45",Y,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new Tt("formatTextRotate90",Y,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new Tt("formatTextRotate270",Y,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new Tt("formatTextRotate315",Y,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new We("formatTextRotateCustom",Y,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new Tt("formatTextRotateVertical",Y,{label:"Vertical Text",description:"Stack text vertically."}),new Tt("sortAscending",Y,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){K2(this,{reverse:!1},!1)}),new Tt("sortDescending",Y,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){K2(this,{reverse:!0},!1)}),new Tt("sortCustom",Y,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){K2(this,{},!0)}),new We("protectionSheetToggle",Y,{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 We("formatSheetTabColor",Y,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new We("formatCellStyle",Y,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(Me){Xt(this,{named:Me.getName()},!0)}),new We("formatTableStyle",Y,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(Me){R1(this,Me)}),new We("formatTableStyleClearCellStyles",Y,{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(Me){R1(this,Me,!0)}),new We("formatTableStyleClearTableStyle",Y,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){R1(this,{name:null},!0)}),new We("setDefaultTableStyle",Y,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},NC),new We("deleteTableStyle",Y,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},$C),new We("formatBorder",Y,{label:"Border",description:"Create an outline border."},function(Me){Xt(this,{border:Me})}),new We("formatFillColor",Y,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(Me){Xt(this,{fill:Me})}),new We("formatFontColor",Y,{label:"Font Color",description:"Change the color of your text."},function(Me){Xt(this,{font:{fill:Me}})}),new We("formatBoldToggle",Y,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[$e.Ctrl]},{key:"2",modifiers:[$e.Ctrl]}]}),new We("formatItalicToggle",Y,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[$e.Ctrl]},{key:"3",modifiers:[$e.Ctrl]}]}),new We("formatUnderlinedToggle",Y,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[$e.Ctrl]},{key:"4",modifiers:[$e.Ctrl]}]}),new We("formatUnderlinedDoubleToggle",Y,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new We("formatUnderlinedAccountingToggle",Y,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new We("formatUnderlinedAccountingDoubleToggle",Y,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new We("formatStrikeThroughToggle",Y,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[$e.Ctrl]}}),new We("formatSuperscriptToggle",Y,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new We("formatSubscriptToggle",Y,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new We("formatAlignTopToggle",Y,{label:"Align Top",description:"Align text to the top."}),new We("formatTextOverflowVisibleToggle",Y,{label:"Overflow Text",description:"Overflow text to the next cells."}),new We("formatTextOverflowWrapToggle",Y,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new We("formatTextOverflowClipToggle",Y,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new We("formatTextOverflowShrinkToggle",Y,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new We("formatTextOverflowEllipsisToggle",Y,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new We("formatAlignMiddleToggle",Y,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new We("formatAlignBottomToggle",Y,{label:"Align Bottom",description:"Align text to the bottom."}),new We("formatAlignJustifyVerticalToggle",Y,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new We("formatAlignDistributedVerticalToggle",Y,{label:"Distribute Vertically",description:"Justify your content vertically."}),new We("formatAlignLeftToggle",Y,{label:"Align Left",description:"Align your content to the left."}),new We("formatAlignCenterToggle",Y,{label:"Align Center",description:"Center your content."}),new We("formatAlignRightToggle",Y,{label:"Align Right",description:"Align your content to the right."}),new We("formatAlignJustifyToggle",Y,{label:"Align Justify",description:"Justify your content."}),new We("formatAlignCenterContinuousToggle",Y,{label:"Center Across",description:"Center your content across multiple cells."}),new We("formatAlignFillToggle",Y,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new We("formatAlignDistributedHorizontalToggle",Y,{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",Y,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,Me=>({font:{size:Fh(Me.getFont().getSize(),!0)}}))}),new Tt("formatFontSizeDecrease",Y,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,Me=>({font:{size:Fh(Me.getFont().getSize(),!1)}}))}),new We("formatFontFamily",Y,{label:"Font",description:"Select the font your text."},function(Me){Xt(this,{font:{family:Me}})}),new We("formatFontSize",Y,{label:"Font Size",description:"Change the size of your text."},function(Me){Xt(this,{font:{size:Me}})}),new We("formatNumberDialog",Y,{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(Me,nt){const dt=this,He={initialValue:Me??nt.state(),context:nt.context(),onInputOption:(ht,bt)=>{Xt(dt,{numberFormat:ht})}};me.showWindow?.("numberFormat",He)}),new We("formatNumberFormat",Y,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(Me){Xt(this,{numberFormat:Me})}),new We("formatNumberFormatGeneralStyle",Y,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:$.NumberFormat.Type.General})}),new We("formatNumberFormatNumberStyle",Y,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:"#,##0.00"})}),new We("formatNumberFormatTimeStyle",Y,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:"h:mm AM/PM"})}),new We("formatNumberFormatDateStyle",Y,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:"d-mmm-yy"})}),new We("formatNumberFormatAccountingStyle",Y,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[$e.Ctrl,$e.Shift]}},function(Me){Xt(this,{numberFormat:Me??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new We("formatNumberFormatPercentStyle",Y,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:"0%"})}),new We("formatNumberFormatScientificStyle",Y,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[$e.Ctrl,$e.Shift]}},function(){Xt(this,{numberFormat:"0.00E+00"})}),new We("formatNumberFormatCommaStyle",Y,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[$e.Ctrl]}},function(){Xt(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new We("formatNumberFormatIncreaseDecimal",Y,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){Xt(this,Me=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Me.getNumberFormat(),1)}))}),new We("formatNumberFormatDecreaseDecimal",Y,{label:"Decrease Decimal",description:"Show few decimal places."},function(){Xt(this,Me=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Me.getNumberFormat(),-1)}))}),new We("displayPlaceholdersToggle",Y,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[$e.Ctrl]}}),new Tt("noOp",Y,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[$e.Ctrl]}},function(){}),new We("displayOutlineSymbolsToggle",Y,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[$e.Ctrl]}}),new We("hideRows",Y,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[$e.Ctrl]}}),new We("unhideRows",Y,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[$e.Ctrl,$e.Shift]}}),new We("hideColumns",Y,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[$e.Ctrl]},{key:"0",modifiers:[$e.Ctrl,$e.Alt]}]}),new We("unhideColumns",Y,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[$e.Ctrl,$e.Shift]}}),new We("quickFormulaSum",Y,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[$e.Alt]}},function(){h0(this,"SUM")}),new We("quickFormulaAverage",Y,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){h0(this,"AVERAGE")}),new We("quickFormulaCount",Y,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){h0(this,"COUNT")}),new We("quickFormulaMax",Y,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){h0(this,"MAX")}),new We("quickFormulaMin",Y,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){h0(this,"MIN")}),new We("startEditCurrentTime",Y,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},function(){mn?.({text:ve.createTemporaryCell({value:t1(),style:{numberFormat:"Medium Time"}}).toText()})}),new We("startEditCurrentDate",Y,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},function(){mn?.({text:ve.createTemporaryCell({value:t1(),style:{numberFormat:"Short Date"}}).toText()})}),new Tt("sheetZoomOut",Y,{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",Y,{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",Y,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[$e.Ctrl,$e.Alt]}}),new We("insertFunction",Y,{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(Me,nt){console.log("insertFunction")}),new We("updateHyperlink",Y,{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(Me,nt){const dt=this,He={context:nt.context(),onUpdateHyperlink:(ht,bt)=>{Yf(dt,ht,bt)}};me.showWindow?.("hyperlink",He)}),new We("openHyperlink",Y,{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(Me,nt)=>{const dt=nt.context()();if(!dt)return;const He=dt.getHyperlink();if(He)try{await He.open()}catch(ht){me?.showError?.(ht)}}),new We("deleteHyperlink",Y,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>ar},function(Me,nt){Yf(this,null,null)}),new Tt("insertNote",Y,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[$e.Shift]},description:"Add a note to the cell."},(Me,nt)=>{var dt,He;dt=me,He=nt.label(),dt?.showMessage?.(s.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[He," 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 We("updateComments",Y,{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(Me,nt){const dt=this,He={context:nt.context(),onUpdateComments:ht=>{Jf(dt,ht)}};me.showWindow?.("comments",He)}),new We("deleteComments",Y,{label:"Delete Comments",description:"Remove any comments.",context:()=>ar},function(Me,nt){Jf(this,null)}),new We("insertImageFromFile",Y,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(Me=null){let nt=null,dt=null;typeof Me=="string"?dt=Me:nt=Me?.file?Me.file:Me,(nt||(nt=await Gt.openFileDialog(dt??"image/*"),nt))&&await om(this,{file:nt},Me?.options)}),new We("insertImageFromURL",Y,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(Me){if(!Me){const nt=await me?.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;Me=nt.input}Me&&om(this,{fetch:Me})}),new Tt("insertTable",Y,{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(){R1(this)}),new We("editTable",Y,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(Me){let nt=null,dt=!1;Me.isITable?nt=Me:Me.getValue()&&(nt=Me.getValue(),dt=!0),VC(this,nt,dt)}),new We("deleteTable",Y,{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(Me){tm(this,Me,!0)}),new We("convertTableToRange",Y,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
|
|
203
|
-
|
|
204
|
-
The values and the formatting are preserved.`},function(Me){tm(this,Me,!1)}),new We("tableTotalRowToggle",Y,{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 Me=this.context().table();Me&&Me.setShowTotals(!Me.getShowTotals())}),new We("tableHeaderRowToggle",Y,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const Me=this.context().table();Me&&Me.setShowHeaders(!Me.getShowHeaders())}),new We("autoFilterToggle",Y,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[$e.Ctrl,$e.Shift]}},function(){const Me=this.context().table();Me&&Me.setShowFilterButton(!Me.getShowFilterButton())}),new We("autoFilterReapply",Y,{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 We("autoFilterClear",Y,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new Tt("startEditValueAbove",Y,{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]}]},UC),new We("formatPainterToggle",Y,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new Tt("insertCells",Y,{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",Y,{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",Y,{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",Y,{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",Y,{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",Y,{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",Y,{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",Y,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[$e.Ctrl]}},function(){return f0(this)}),new Tt("deleteCellsShiftUp",Y,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return f0(this,$.IRange.Orientation.Row)}),new Tt("deleteCellsShiftLeft",Y,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return f0(this,$.IRange.Orientation.Column)}),new Tt("deleteRows",Y,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return f0(this,$.IRange.Orientation.Row,!0)}),new Tt("deleteColumns",Y,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return f0(this,$.IRange.Orientation.Column,!0)}),new Tt("flashFill",Y,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[$e.Ctrl]},{key:"e",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("fillDown",Y,{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 I1(this,$.IRange.Direction.Down)}),new Tt("fillRight",Y,{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 I1(this,$.IRange.Direction.Right)}),new Tt("fillUp",Y,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return I1(this,$.IRange.Direction.Up)}),new Tt("fillLeft",Y,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return I1(this,$.IRange.Direction.Left)}),new Tt("formatBorderAddOutline",Y,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Xt(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",Y,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Xt(this,{border:null})}),new Tt("formatIndentDecrease",Y,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return Xt(this,Me=>{const nt=Me.getAlignment().getIndent()-1;return{alignment:{indent:nt>0?nt:0}}})}),new Tt("formatIndentIncrease",Y,{label:"Increase Indent",description:"Move your content further from the border."},function(){return Xt(this,Me=>{const nt={alignment:{indent:Me.getAlignment().getIndent()+1}};return Me.getAlignment().getHorizontal()===$.ITextFrame.HorizontalAlignment.General&&(nt.alignment.horizontal=$.ITextFrame.HorizontalAlignment.Left),nt})}),new We("mergeToggle",Y,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[$e.Ctrl]}}),new Tt("mergeHorizontal",Y,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new Tt("mergeVertical",Y,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new Tt("unmerge",Y,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new Tt("clearContents",Y,{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(){p0(this,$.ICell.Content.Values)}),new Tt("clearFormats",Y,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){p0(this,$.ICell.Content.Formats)}),new Tt("clearHyperlinks",Y,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){p0(this,$.ICell.Content.Hyperlinks)}),new Tt("clearComments",Y,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){p0(this,$.ICell.Content.Comments)}),new Tt("clearAll",Y,{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(){p0(this)}),new We("freezeToggle",Y,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new We("freezeToggleHorizontal",Y,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new We("freezeToggleVertical",Y,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new Tt("unfreeze",Y,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new Tt("autoFitRows",Y,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new Tt("autoFitColumns",Y,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),Re=u.useMemo(()=>{let Me=null;return Me=Ce?Ce.createChildGroup(Y,"sheet",!1):new a0(Y,"sheet"),Me.addCommands(rm,!0),Me},[Ce,rm]),[g0,KC]=u.useState(!1),[y0,GC]=u.useState(!1);u.useEffect(()=>{if(Ut.current!==ve||!Mt)return;const Me=Mt.getCoords(),nt=ve.getTables().search({address:Me[0]});Zl(bn=>Gt.isEqualArrays(bn,nt)?bn:nt),Ke&&nt[0]&&Go.isCellWithinRange(Ke,nt[0].getRange().getCoords())?q2(nt[0]??null):q2(null);const dt=ve.getSelectedRanges(),He=dt.getMerges().length>0,ht=dt.isOverlapping();let bt=!0;for(let bn=0;bt&&bn<Me.length;bn++)bt=Go.isSingleCell(Me[bn]);GC(ht),KC(nt.length===0&&!ht&&(He||!bt))},[P1,Mt,ve]),_o(Ce,null,{onChange:()=>{const Me=!ve.getProtection().isFormatCellsAllowed(),nt=qt.getMode()?.key==="formatPainter";Re.getCommand("formatPainterToggle").update({disabled:Me||!Ce?.getCommand("copy"),state:()=>nt}).updateCallback(()=>nt?void qt.setMode(null):Re.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`}}))}},[qt,m0,Ce]),cn(ve.getView(),{onFreezeSplitChange:()=>{Yl()}}),cn(ve.getSelection(),{onChange:()=>{U2()}});const O1=()=>{Re.getCommand("sheetViewFormatGridlinesColor").update({state:()=>ve.getView().getGridLineColor(),context:()=>({onColorSelect:Me=>{},darkMode:q.darkMode,autoColor:ve.getStyles().parseColor(q.strokeFill),schemeLookup:ve.getStyles().schemeLookup(),recentColors:()=>ve.getStyles().recentColors(),addRecentColor:Me=>ve.getStyles().addRecentColor(Me),clearRecentColors:()=>ve.getStyles().clearRecentColors()})}),Re.getCommand("formatSheetTabColor").updateCallback(Me=>{ve.setTabColor(Me)}).update({state:()=>ve?.getTabColor()??Sd,context:()=>({onColorSelect:Me=>{},darkMode:q.darkMode,autoColor:Sd,schemeLookup:ve.getStyles().schemeLookup(),recentColors:()=>ve.getStyles().recentColors(),addRecentColor:Me=>ve.getStyles().addRecentColor(Me),clearRecentColors:()=>ve.getStyles().clearRecentColors()})})},G2=()=>{Re.getCommand("formatBorder").update({context:()=>({onBorderSelect:Me=>{io(Me)},darkMode:q.darkMode,quickBorder:Nt,autoColor:ve.getStyles().getNormal().getFont().getFill(),autoStyle:$.IBorder.StrokeStyle.Thin,createTemporaryBorder:Me=>ve.getStyles().getNormal().createTemporaryStyle({border:Me}).getBorder(),schemeLookup:ve.getStyles().schemeLookup()})})};u.useEffect(()=>{G2()},[Nt]),u.useEffect(()=>{const Me=!ve.getProtection().isInsertHyperlinksAllowed();Re.getCommand("openHyperlink").update({disabled:!ar().getHyperlink()}),Re.getCommand("deleteHyperlink").update({disabled:Me||!ar().getHyperlink()});const nt=ar().getHyperlink()?"Edit":"Insert",dt="Link";Re.getCommand("updateHyperlink").update({label:()=>(ar().getHyperlink(),`${nt} ${dt}`),scopedLabels:{contextMenu:`${nt} ${dt}…`,insert:`${dt}…`,hyperlink:`${nt}…`},disabled:Me})},[ar()?.getHyperlink(),m0]),u.useEffect(()=>{const Me=ar().getComments(),nt=()=>Me?"Edit":"Insert",dt=()=>Me?"Comments":"Comment";Re.getCommand("updateComments").update({label:()=>`${nt()} ${dt()}`,scopedLabels:{contextMenu:`${nt()} ${dt()}…`,insert:`${dt()}…`}})},[ar()?.getComments(),m0]),cn(ve,{onViewChange:()=>{const Me=ve.getView();Re.getCommand("sheetViewToggleFormulaView").update({state:Me.isShowFormulas()}),Re.getCommand("sheetViewToggleShowZeros").update({state:Me.isShowZeros()}),Re.getCommand("gridlinesToggle").update({state:Me.isShowColumnGridlines()||Me.isShowRowGridlines()}),Re.getCommand("sheetViewToggleGridlinesColumns").update({state:Me.isShowColumnGridlines()}),Re.getCommand("sheetViewToggleGridlinesRows").update({state:Me.isShowRowGridlines()}),Re.getCommand("sheetViewToggleShowHeadings").update({state:Me.isShowColumnHeaders()||Me.isShowRowHeaders()}),Re.getCommand("sheetViewToggleShowHeadingColumns").update({state:Me.isShowColumnHeaders()}),Re.getCommand("sheetViewToggleShowHeadingRows").update({state:Me.isShowRowHeaders()}),Re.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>ve.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&ve.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero}),O1()},onTabColorChange:()=>{O1()},onMergesChange:()=>{Yl()},onMovablesChange:()=>{Yl()},onTablesChange:()=>{Yl()},onProtectionChange:()=>{Yl(),qC()},onStyleChange:()=>{O1(),G2(),Yl()}}),u.useEffect(()=>{O1(),G2()},[q]),u.useEffect(()=>{const Me=!ve.getProtection().isFormatCellsAllowed(),nt=Bo.length>0&&!fa||Me,dt=em(fa),He={context:dt};Re.getCommand("editTable").update(He),Re.getCommand("deleteTable").update(He),Re.getCommand("convertTableToRange").update(He);const ht={context:dt,disabled:nt};Re.getCommand("formatTableStyle").update({label:fa?"Apply Table Style":"Format As Table",...ht}),Re.getCommand("formatTableStyleClearCellStyles").update(ht),Re.getCommand("deleteTableStyle").update(ht),Re.getCommand("convertTableToRange").update(ht),Re.getCommand("insertTable").update({disabled:nt||Bo.length>0});const bt={context:dt,disabled:nt||Bo.length===0};Re.getCommand("tableHeaderRowToggle").update(bt),Re.getCommand("tableTotalRowToggle").update(bt),Re.getCommand("autoFilterToggle").update(bt),Re.getCommand("formatTableStyleClearTableStyle").update({...bt,disabled:bt.disabled||!fa||fa.getStyleOptions().name===null})},[fa,Bo,m0]),u.useEffect(()=>{Re.getCommand("sheetZoomOut").updateCallback(()=>{ve.getView().update({zoomScale:Gt.findNextStep(ve.getView().getZoomScale(),!1)})}),Re.getCommand("sheetZoomIn").updateCallback(()=>{ve.getView().update({zoomScale:Gt.findNextStep(ve.getView().getZoomScale())})}),Re.getCommand("sheetZoom100").updateCallback(()=>{ve.getView().update({zoomScale:100})}),Re.getCommand("gridlinesToggle").updateCallback(()=>{const Me=ve.getView().isShowColumnGridlines()&&ve.getView().isShowRowGridlines();ve.getView().update({showColumnGridlines:!Me,showRowGridlines:!Me})}),Re.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{ve.getView().update({showRowGridlines:!ve.getView().isShowRowGridlines()})}),Re.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{ve.getView().update({showColumnGridlines:!ve.getView().isShowColumnGridlines()})}),Re.getCommand("sheetViewFormatGridlinesColor").updateCallback(Me=>{ve.getView().update({gridLineColor:Me})}),Re.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const Me=ve.getView().isShowColumnHeaders()&&ve.getView().isShowRowHeaders();ve.getView().update({showColumnHeaders:!Me,showRowHeaders:!Me})}),Re.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{ve.getView().update({showColumnHeaders:!ve.getView().isShowColumnHeaders()})}),Re.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{ve.getView().update({showRowHeaders:!ve.getView().isShowRowHeaders()})}),Re.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const Me=ve.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&ve.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero;ve.getView().update({columnHeaderStyle:Me?$.ISheetView.HeaderTextStyle.A1:$.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:Me?$.ISheetView.HeaderTextStyle.One:$.ISheetView.HeaderTextStyle.Zero})}),Re.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{ve.getView().update({showFormulas:!ve.getView().isShowFormulas()})}),Re.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{ve.getView().update({showZeros:!ve.getView().isShowZeros()})})},[ve]),u.useEffect(()=>{const Me=ve.getView().getFreezePanes(),nt=()=>Me.coords.rowIndex!==0,dt=()=>Me.coords.colIndex!==0,He=()=>Me.coords.rowIndex!==0||Me.coords.colIndex!==0;Re.getCommand("freezeToggle").updateCallback(()=>{He()?ve.getView().setFreezePanes(null):He()?dt()?ve.getView().setFreezePanes({coords:{rowIndex:Ke.rowIndex}}):nt()&&ve.getView().setFreezePanes({coords:{colIndex:Ke.colIndex}}):ve.getView().setFreezePanes({coords:Ke})}).update({state:He,disabled:()=>!Ke||!He()&&Ke.rowIndex===0&&Ke.colIndex===0}),Re.getCommand("freezeToggleHorizontal").updateCallback(()=>{ve.getView().setFreezePanes({coords:{rowIndex:nt()?0:Ke.rowIndex}})}).update({state:nt,disabled:()=>!Ke||!nt()&&Ke.rowIndex===0}),Re.getCommand("freezeToggleVertical").updateCallback(()=>{ve.getView().setFreezePanes({coords:{colIndex:dt()?0:Ke.colIndex}})}).update({state:dt,disabled:()=>!Ke||!dt()&&Ke.colIndex===0}),Re.getCommand("unfreeze").updateCallback(()=>{ve.getView().setFreezePanes(null)}).update({disabled:()=>!He()})},[P1,Ke,ve,q]);const Jl=ar().getStyle(),Yo=Jl.getFont(),D1=Jl.getAlignment(),Di=D1.getHorizontal(),x0=D1.getVertical(),b0=D1.getOverflow(),Ql=D1.getRotation();return u.useEffect(()=>{Re.getCommand("formatCellStyle").update({context:()=>({styles:()=>ve.getStyles(),named:()=>ar().getStyle(!0).getNamed(),bodyStyle:Qf,createTemporaryCell:Ln=>ve.createTemporaryCell(Ln)})}),Re.getCommand("formatFillColor").update({state:()=>{let Ln=null;const lr=Jl.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=ve.getStyles();return{onColorSelect:lr=>{ln(lr??Sd)},darkMode:q.darkMode,quickColor:Ct,autoColor:Sd,schemeLookup:Ln.schemeLookup(),recentColors:Ln.recentColors(),addRecentColor:lr=>Ln.addRecentColor(lr),clearRecentColors:()=>Ln.clearRecentColors()}}}),Re.getCommand("formatFontColor").update({state:()=>Yo.toJSON()?.fill?Yo.getFill():null,context:()=>{const Ln=ve.getStyles();return{onColorSelect:lr=>{pn(lr)},darkMode:q.darkMode,quickColor:go,autoColor:Ln.getNormal().getFont().getFill(),schemeLookup:Ln.schemeLookup(),recentColors:Ln.recentColors(),addRecentColor:lr=>Ln.addRecentColor(lr),clearRecentColors:()=>Ln.clearRecentColors()}}}),Re.getCommand("formatNumberFormat").update({state:()=>Jl.getNumberFormat(),context:()=>ar}),Re.getCommand("formatNumberDialog").update({state:()=>Jl.getNumberFormat(),context:()=>ar}),Re.getCommand("formatFontFamily").update({state:()=>Yo.getFamily()}),Re.getCommand("formatFontSize").update({state:()=>Yo.getSize()});const Me=function(){const Ln=Yo.getWeight()||0;return!isNaN(Ln)&&Ln>500};Re.getCommand("formatBoldToggle").updateCallback(function(){Xt(this,{font:{weight:Me()?400:700}})}).update({state:Me});const nt=function(){return Yo.getStyle()===$.IFont.Style.Italic};Re.getCommand("formatItalicToggle").updateCallback(function(){Xt(this,{font:{style:nt()?$.IFont.Style.Normal:$.IFont.Style.Italic}})}).update({state:nt}),Re.getCommand("formatStrikeThroughToggle").updateCallback(function(){Xt(this,{font:{strike:!Yo.getStrike()}})}).update({state:Yo.getStrike()}),Re.getCommand("formatUnderlinedToggle").updateCallback(function(){Xt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Single?$.IFont.UnderlineStyle.Single:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Single}),Re.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){Xt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Double?$.IFont.UnderlineStyle.Double:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Double}),Re.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){Xt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.SingleAccounting?$.IFont.UnderlineStyle.SingleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.SingleAccounting}),Re.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){Xt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.DoubleAccounting?$.IFont.UnderlineStyle.DoubleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.DoubleAccounting}),Re.getCommand("formatSuperscriptToggle").updateCallback(function(){Xt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Super?$.IFont.VerticalAlignment.Super:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Super}),Re.getCommand("formatSubscriptToggle").updateCallback(function(){Xt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Sub?$.IFont.VerticalAlignment.Sub:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Sub});const dt=()=>b0===$.ITextFrame.Overflow.Visible;Re.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){Xt(this,{alignment:{overflow:(dt(),$.ITextFrame.Overflow.Visible)}})}).update({state:dt});const He=()=>b0===$.ITextFrame.Overflow.Wrap;Re.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){Xt(this,{alignment:{overflow:He()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Wrap}})}).update({state:He});const ht=function(){return b0===$.ITextFrame.Overflow.Clip};Re.getCommand("formatTextOverflowClipToggle").updateCallback(function(){Xt(this,{alignment:{overflow:ht()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Clip}})}).update({state:ht});const bt=function(){return b0===$.ITextFrame.Overflow.Shrink};Re.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){Xt(this,{alignment:{overflow:bt()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Shrink}})}).update({state:bt});const bn=function(){return b0===$.ITextFrame.Overflow.Shrink};Re.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){Xt(this,{alignment:{overflow:bn()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Ellipsis}})}).update({state:bn,disabled:!0});const vn=function(){return x0===$.ITextFrame.VerticalAlignment.Top};Re.getCommand("formatAlignTopToggle").updateCallback(function(){Xt(this,{alignment:{vertical:vn()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Top}})}).update({state:vn});const sn=function(){return x0===$.ITextFrame.VerticalAlignment.Center};Re.getCommand("formatAlignMiddleToggle").updateCallback(function(){Xt(this,{alignment:{vertical:sn()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Center}})}).update({state:sn});const kn=function(){return x0===$.ITextFrame.VerticalAlignment.Bottom};Re.getCommand("formatAlignBottomToggle").updateCallback(function(){Xt(this,{alignment:{vertical:(kn(),$.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:kn});const hn=function(){return x0===$.ITextFrame.VerticalAlignment.Justify};Re.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){Xt(this,{alignment:{vertical:hn()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Justify}})}).update({state:hn});const ao=function(){return x0===$.ITextFrame.VerticalAlignment.Distributed};Re.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){Xt(this,{alignment:{vertical:ao()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Distributed}})}).update({state:ao});const jo=function(){return Di===$.ITextFrame.HorizontalAlignment.Left};Re.getCommand("formatAlignLeftToggle").updateCallback(function(){Xt(this,{alignment:{horizontal:jo()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Left}})}).update({state:jo});const wr=function(){return Di===$.ITextFrame.HorizontalAlignment.Center};Re.getCommand("formatAlignCenterToggle").updateCallback(function(){Xt(this,{alignment:{horizontal:wr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Center}})}).update({state:wr});const Ai=function(){return Di===$.ITextFrame.HorizontalAlignment.CenterContinuous};Re.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const Ln={alignment:{horizontal:Ai()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};Xt(this,Ln)}).update({state:Ai});const Li=function(){return Di===$.ITextFrame.HorizontalAlignment.Fill};Re.getCommand("formatAlignFillToggle").updateCallback(function(){const Ln={alignment:{horizontal:Li()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Fill,rotation:null}};Xt(this,Ln)}).update({state:Li});const zi=function(){return Di===$.ITextFrame.HorizontalAlignment.Distributed};Re.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){Xt(this,{alignment:{horizontal:zi()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:zi});const Nr=function(){return Di===$.ITextFrame.HorizontalAlignment.Right};Re.getCommand("formatAlignRightToggle").updateCallback(function(){Xt(this,{alignment:{horizontal:Nr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Right}})}).update({state:Nr});const fr=function(){return Di===$.ITextFrame.HorizontalAlignment.Justify};Re.getCommand("formatAlignJustifyToggle").updateCallback(function(){Xt(this,{alignment:{horizontal:fr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Justify}})}).update({state:fr});const No=!ve.getProtection().isFormatCellsAllowed(),hi=Di===$.ITextFrame.HorizontalAlignment.CenterContinuous||Di===$.ITextFrame.HorizontalAlignment.Fill;Re.getCommand("formatTextRotate0").updateCallback(function(Ln){Xt(this,{alignment:{rotation:0}})}).update({disabled:No||hi,state:Ql===0}),Re.getCommand("formatTextRotate45").updateCallback(function(Ln){Xt(this,{alignment:{rotation:Ln??1?45:0}})}).update({disabled:No||hi,state:Ql===45}),Re.getCommand("formatTextRotate90").updateCallback(function(Ln){Xt(this,{alignment:{rotation:Ln??1?90:0}})}).update({disabled:No||hi,state:Ql===90}),Re.getCommand("formatTextRotate270").updateCallback(function(Ln){Xt(this,{alignment:{rotation:Ln??1?270:0}})}).update({disabled:No||hi,state:Ql===270}),Re.getCommand("formatTextRotate315").updateCallback(function(Ln){Xt(this,{alignment:{rotation:Ln??1?315:0}})}).update({disabled:No||hi,state:Ql===315}),Re.getCommand("formatTextRotateCustom").updateCallback(function(Ln){Xt(this,{alignment:{rotation:Ln}})}).update({disabled:No||hi,state:Ql??0})},[Jl,ve,q,Ct,go]),u.useEffect(()=>{const Me=!ve.getProtection().isFormatCellsAllowed(),nt=ve.getSelectedRanges().getMerges().length>0,dt=async(Mo,A1)=>{wo(A1,async es=>{const L1=async(z1=!1)=>{const ZC=await Promise.resolve(me?.showBusy?.(A1.label()));try{const F1=es.getSelectedRanges();if(F1.merge({orientations:Mo,discardMultipleValues:z1}),Mo===$.IRange.Orientations.Both){const XC={alignment:{horizontal:$.ITextFrame.HorizontalAlignment.Center}};F1.updateStyle(XC)}}catch(F1){throw F1}finally{ZC?.()}};let lm;try{await L1()}catch(z1){if(z1.type!=="discardMultipleValues")throw z1;lm=!0}if(lm&&me?.showOptions){if(await me?.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 L1(!0)}},void 0,void 0,!1)},He=Mo=>{wo(Mo,async A1=>{try{const es=A1.getSelectedRanges();es.unmerge();const L1={alignment:{horizontal:null}};es.updateStyle(L1)}catch(es){throw es}})};Re.getCommand("mergeToggle").updateCallback(function(){Go.isSingleCell(ve.getSelectedRange().getCoords())||(nt?He(this):dt($.IRange.Orientations.Both,this))}).update({state:nt,disabled:!g0||Me}),Re.getCommand("mergeHorizontal").updateCallback(function(){dt($.IRange.Orientations.Column,this)}).update({disabled:!g0||Me}),Re.getCommand("mergeVertical").updateCallback(function(){dt($.IRange.Orientations.Row,this)}).update({disabled:!g0}),Re.getCommand("unmerge").updateCallback(function(){He(this)}).update({disabled:!nt||!g0||Me});const ht={disabled:Me};Re.getCommand("hideRows").updateCallback(function(){wo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ht),Re.getCommand("hideColumns").updateCallback(function(){wo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ht),Re.getCommand("unhideRows").updateCallback(function(){wo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ht),Re.getCommand("unhideColumns").updateCallback(function(){wo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ht),Re.getCommand("autoFitRows").updateCallback(function(){wo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Row})})}).update(ht),Re.getCommand("autoFitColumns").updateCallback(function(){wo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Column})})}).update(ht);let bt=!1,bn=0,vn=!1,sn=!1,kn=0,hn=!1;!Mt||Me||y0||(bt=Mt.isEntireColumnsAny(),bt&&!Mt.isEntireColumns()?vn=!0:bn=Mt.getColumnCount(),sn=Mt.isEntireRowsAny(),sn&&!Mt.isEntireRows()?hn=!0:kn=Mt.getRowCount());const ao={disabled:Me||Mt&&Mt.getCount()!==1};Re.getCommand("sortAscending").update(ao),Re.getCommand("sortDescending").update(ao);const jo={disabled:bt||sn||Me||y0},wr=bt||Me||y0||hn;wr&&(bn=1);const Ai=sn||Me||y0||vn;Ai&&(kn=1);let Li="",zi="",Nr="",fr="",No="",hi="",Ln="",lr="",Z2="";bn>1&&(hi=zi=bn+" ",Ln=Nr="s"),kn>1&&(lr=fr=kn+" ",Z2=No="s"),qt.getMode()?.key==="copy"?(Li=fr=zi="Copied ",Nr=No="s"):qt.getMode()?.key==="cut"&&(Li=fr=zi="Cut ",Nr=No="s");let im="",am="";if(Mt){const Mo=Mt.getDefaultShiftOrientation()===$.IRange.Orientation.Column;im=` (${Mo?"Shift Right":"Shift Down"})`,am=` (${Mo?"Shift Left":"Shift up"})`,Re.getCommand("deleteCells").update({label:`Delete Cells${am}`})}Re.getCommand("insertCells").update({label:`Insert ${Li}Cells${im}`,scopedLabels:{insertCells:`${Li}At Selection`}}),Re.getCommand("insertCellsShiftRight").update(jo),Re.getCommand("insertCellsShiftDown").update(jo),Re.getCommand("deleteCellsShiftUp").update(jo),Re.getCommand("deleteCellsShiftLeft").update(jo),Re.getCommand("insertRows").update({label:`Insert ${fr}Row${No}`,scopedLabels:{insertCells:`${fr}Row${No}`},disabled:Ai}),Re.getCommand("insertRowsAfter").update({label:`Insert ${fr}Row${No} Below`,disabled:Ai}),Re.getCommand("insertColumns").update({label:`Insert ${zi}Column${Nr}`,scopedLabels:{insertCells:`${zi}Column${Nr}`},disabled:wr}),Re.getCommand("insertColumnsAfter").update({label:`Insert ${zi}Column${Nr} After`,disabled:wr}),Re.getCommand("deleteRows").update({label:`Delete ${lr}Row${Z2}`,scopedLabels:{deleteCells:`${lr}Row${Z2}`},disabled:Ai}),Re.getCommand("deleteColumns").update({label:`Delete ${hi}Column${Ln}`,scopedLabels:{deleteCells:`${hi}Column${Ln}`},disabled:wr})},[P1,g0,y0,Mt,qt,me,m0]),u.useEffect(()=>{const Me=ve.getProtection(),nt=ve.getProtection().isLocked(),dt=!Me.isFormatCellsAllowed(),He={disabled:dt};Re.getCommand("protectionSheetToggle").updateCallback(async(bn,vn)=>{let sn=null;try{if(nt){let kn=null;if(Me.hasPassword()){const hn=await me?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(hn.option!=="Unprotect")return;kn=hn.input}sn=await Promise.resolve(me?.showBusy?.(vn.label())),await Me.unlock(kn)}else sn=await Promise.resolve(me?.showBusy?.(vn.label())),await Me.lock();sn?.()}catch(kn){sn?.(),me?.showError?.(kn)}}).update({state:nt,label:()=>nt?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:nt?"Unprotect":"Protect"}}),Re.getCommand("deleteTable").update(He),Re.getCommand("sortAscending").update(He),Re.getCommand("sortDescending").update(He),Re.getCommand("sortCustom")?.update(He),Re.getCommand("updateComments").update(He),Re.getCommand("deleteComments").update(He),Re.getCommand("insertChart")?.update(He),Re.getCommand("insertImageFromFile").update(He),Re.getCommand("insertImageFromURL").update(He),Re.getCommand("formatBorder").update(He),Re.getCommand("formatFillColor").update(He),Re.getCommand("formatFontColor").update(He),Re.getCommand("formatBoldToggle").update(He),Re.getCommand("formatItalicToggle").update(He),Re.getCommand("formatUnderlinedToggle").update(He),Re.getCommand("formatStrikeThroughToggle").update(He),Re.getCommand("formatSuperscriptToggle").update(He),Re.getCommand("formatSubscriptToggle").update(He),Re.getCommand("formatAlignTopToggle").update(He),Re.getCommand("formatTextOverflowVisibleToggle").update(He),Re.getCommand("formatTextOverflowWrapToggle").update(He),Re.getCommand("formatTextOverflowClipToggle").update(He),Re.getCommand("formatTextOverflowShrinkToggle").update(He),Re.getCommand("formatAlignMiddleToggle").update(He),Re.getCommand("formatAlignBottomToggle").update(He),Re.getCommand("formatAlignDistributedVerticalToggle").update(He),Re.getCommand("formatAlignJustifyVerticalToggle").update(He),Re.getCommand("formatAlignLeftToggle").update(He),Re.getCommand("formatAlignCenterToggle").update(He),Re.getCommand("formatAlignRightToggle").update(He),Re.getCommand("formatAlignJustifyToggle").update(He),Re.getCommand("formatAlignCenterContinuousToggle").update(He),Re.getCommand("formatAlignDistributedHorizontalToggle").update(He),Re.getCommand("formatAlignFillToggle").update(He),Re.getCommand("formatFontSizeIncrease").update(He),Re.getCommand("formatFontSizeDecrease").update(He),Re.getCommand("formatFontFamily").update(He),Re.getCommand("formatFontSize").update(He),Re.getCommand("formatNumberFormat").update(He),Re.getCommand("formatNumberFormatGeneralStyle").update(He),Re.getCommand("formatNumberFormatNumberStyle").update(He),Re.getCommand("formatNumberFormatTimeStyle").update(He),Re.getCommand("formatNumberFormatDateStyle").update(He),Re.getCommand("formatNumberFormatAccountingStyle").update(He),Re.getCommand("formatNumberFormatPercentStyle").update(He),Re.getCommand("formatNumberFormatScientificStyle").update(He),Re.getCommand("formatNumberFormatCommaStyle").update(He),Re.getCommand("formatNumberFormatIncreaseDecimal").update(He),Re.getCommand("formatNumberFormatDecreaseDecimal").update(He),Re.getCommand("hideColumns").update(He),Re.getCommand("unhideColumns").update(He),Re.getCommand("hideRows").update(He),Re.getCommand("unhideRows").update(He),Re.getCommand("quickFormulaSum").update(He),Re.getCommand("quickFormulaAverage").update(He),Re.getCommand("quickFormulaCount").update(He),Re.getCommand("quickFormulaMax").update(He),Re.getCommand("quickFormulaMin").update(He),Re.getCommand("startEditCurrentTime").update(He),Re.getCommand("startEditCurrentDate").update(He),Re.getCommand("startEditValueAbove").update(He),Re.getCommand("fillDown").update(He),Re.getCommand("fillRight").update(He),Re.getCommand("fillUp").update(He),Re.getCommand("fillLeft").update(He),Re.getCommand("formatCellStyle").update(He),Re.getCommand("formatTableStyle").update(He),Re.getCommand("formatPainterToggle").update(He),Re.getCommand("formatBorderAddOutline").update(He),Re.getCommand("formatBorderClearOutline").update(He),Re.getCommand("formatIndentDecrease").update(He),Re.getCommand("formatIndentIncrease").update(He),Re.getCommand("clearContents").update(He),Re.getCommand("clearFormats").update(He),Re.getCommand("clearAll").update(He),Re.getCommand("clearComments").update(He),Re.getCommand("clearHyperlinks").update(He),Re.getCommand("autoFilterClear").update(He),Re.getCommand("autoFilterReapply").update(He);const ht=Di===$.ITextFrame.HorizontalAlignment.CenterContinuous||Di===$.ITextFrame.HorizontalAlignment.Fill,bt={disabled:dt||ht};Re.getCommand("formatTextRotate0").update(bt),Re.getCommand("formatTextRotate45").update(bt),Re.getCommand("formatTextRotate90").update(bt),Re.getCommand("formatTextRotate270").update(bt),Re.getCommand("formatTextRotate315").update(bt),Re.getCommand("formatTextRotateCustom").update(bt),Re.getCommand("formatTextRotateVertical").update(bt)},[P1]),Re}({sheet:n,commands:g,target:ot,onRepeatCommandChange:m,bodyStyle:re,notifier:L,onStartEdit:tt,getViewport:Lt}),[_t,Yt]=u.useState(n.getSelection().isEntire()),[Jt,Qt]=u.useState(ee?.getMovableSelection().length>0),rn=de!==null||Jt,yn=null,[dn,kt]=u.useState(!1);u.useEffect(()=>{kt(!1)},[n.getProtection()]);const xn=Te(()=>{dn||(kt(!0),L.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:pa.Error}))},[L,dn]),tn=u.useMemo(()=>{const Ze=Je.getMode();return Ze?.cursor?Ze.cursor:null},[yn,Je]),[_n,Nn]=u.useState(null),fn=u.useRef(!1),[fo,bo]=u.useState([]),Fo=u.useRef(null),[tr,_r]=u.useState(Bc.EmptyTopLeft),[jr,ui]=u.useState(Bc.EmptyTopLeft);u.useEffect(()=>{_r({left:ie?.left,top:0})},[ie?.left]),u.useEffect(()=>{ui({left:0,top:ie?.top})},[ie?.top]),cn(n?.getView(),{onFreezeSplitChange:()=>{Ve(ye(n.getView().getFreezePanes()))},onTopLeftChange:()=>{pe(n.getView().getTopLeft())},onMovableSelectionChange:()=>{Qt(n.getView().getMovableSelection().length>0)}}),cn(n?.getSelection(),{onChange:()=>{Yt(n.getSelection().isEntire())}}),cn(n,{onViewChange(){ae(n.getView()),Ye(et())},onLayoutChange:()=>{const Ze=n.getEntireRange();Ee({height:Ze.getRowCount(),width:Ze.getColumnCount()}),Ye(et())},onStyleChange:()=>{rt()},onMovablesChange:()=>{},onInvalidated:()=>{rt()}}),cn(n,{onRequestScrollIntoView:async(Ze,ve)=>{if(!ve)return;const St={colIndex:ve?.coords.colStart,rowIndex:ve?.coords.rowStart};return await Fe.current?.scrollCellCoordsIntoView(St,ve?.scroll),!0},onRequestFocus:()=>Gt.whenFocus(pr.current)},jF);const Gi=u.useMemo(()=>{const Ze=(St,q)=>{fn.current=!0,Nn([Ce=>{if(!Ce.toClipBounds(Ce.getRangeCoordsBounds({rowStart:0,rowEnd:Pe.height,colStart:St,colEnd:St})))return;const Y=Ce.getLayout(),me=Math.max(0,Y.getColOffset(St)),qe=Ce.getBounds(),mt=Math.min(qe.x+qe.width,Y.getColOffset(St+1)),Ke=Ce.getAnchor();if(q!==null&&(Ke===zo.Left||Ke===zo.Center||Ke===zo.Right)){const Vt=Gt.roundAccurately(q*Gt.getDPI(),0),Nt=Gt.roundAccurately(n?.getColumnWidthAsFontUnit(q/we),2).toFixed(2),io="Width: "+(q?Nt+" ("+Vt+" pixels)":"Hidden"),Ct=Ht.current.getGridElement().getRelativePointFromClient(0,0),ln=0-Ct.y,go=0-Ct.y+ke,pn={x:me-(Ct.x-qe.x),y:ln,width:mt-me,height:go-ln};requestAnimationFrame(()=>{fn.current&&B?.({anchor:pn,display:io})})}const Wt=[0,0,0,qe.height],Mt={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:je}},Bt={x:me-1,y:0,width:1,height:qe.height},Ut={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:je}},mn={x:mt-1,y:0,width:1,height:qe.height};return s.jsxs(u.Fragment,{children:[s.jsx(Cs,{linePoints:Wt,bounds:Bt,...Mt}),s.jsx(Cs,{linePoints:Wt,bounds:mn,...Ut})]},"resize-dividers")}])};let ve=null;return{onResizeHeadersStart:(St,q,Ce)=>{ve=n.beginCommit(Ce),Ze(St,q)},onResizeHeaders:(St,q,Ce)=>{Ze(St,q)},onResizeHeadersDown:(St,q)=>{Ze(St,q)},onResizeHeadersEnd:(St,q,Ce)=>{ve?.commit({description:Ce}),ve=null,requestAnimationFrame(()=>U?.()),fn.current=!1,Nn(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),fn.current=!1,Nn(null)},...l}},[n,l,ke,_n]),pi=u.useMemo(()=>{const Ze=(St,q)=>{fn.current=!0,Nn([Ce=>{if(!Ce.toClipBounds(Ce.getRangeCoordsBounds({rowStart:St,rowEnd:St,colStart:0,colEnd:Pe.width})))return;const Y=Ce.getLayout(),me=Math.max(0,Y.getRowOffset(St)),qe=Ce.getBounds(),mt=Math.min(qe.y+qe.height,Y.getRowOffset(St+1)),Ke=Ce.getAnchor();if(q!==null&&(Ke===zo.Top||Ke===zo.Center||Ke===zo.Bottom)){const Vt=Math.floor(10*Gt.getDPI())/10,Nt=Gt.roundAccurately(q*Vt,0),io=Gt.roundAccurately(Nt/we/(n?.getRowHeaders().getScaleFactor()*Gt.getDPI()),2).toFixed(2),Ct="Height: "+(q?io+" ("+Nt+" pixels)":"Hidden"),ln=Ne.current.getGridElement().getRelativePointFromClient(0,0),go=0-ln.x,pn=0-ln.x+Ue,qt={x:go,y:me-(ln.y-qe.y),width:pn-go,height:mt-me};requestAnimationFrame(()=>{fn.current&&H?.({anchor:qt,display:Ct})})}const Wt=[0,0,qe.width,0],Mt={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:je}},Bt={x:0,y:me-1,width:qe.width,height:1},Ut={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:je}},mn={x:0,y:mt-1,width:qe.width,height:1};return s.jsxs(u.Fragment,{children:[s.jsx(Cs,{linePoints:Wt,bounds:Bt,...Mt}),s.jsx(Cs,{linePoints:Wt,bounds:mn,...Ut})]},"resize-dividers")}])};let ve=null;return{onResizeHeadersStart:(St,q,Ce)=>{ve=n.beginCommit(Ce),Ze(St,q)},onResizeHeaders:(St,q,Ce)=>{Ze(St,q)},onResizeHeadersDown:(St,q)=>{Ze(St,q)},onResizeHeadersEnd:(St,q,Ce)=>{ve?.commit({description:Ce}),ve=null,requestAnimationFrame(()=>U?.()),fn.current=!1,Nn(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),fn.current=!1,Nn(null)},...d}},[n,d,Ue]),pr=ir(t,()=>{const Ze=St=>{n?.getView()&&n.getView().selectMovables([]),ct.current=null,Fe?.current?.focus(St)},ve=async(St=null)=>{if(St||(St=n?.getView().getMovableSelection()[0]),!St)return!1;const q=St.getAnchorCoords();if(!q)return!1;const Ce=Fe.current?.getViewFromCellCoords({colIndex:q.colStart,rowIndex:q.rowStart});if(!Ce)return!1;const Y=Ce.getAnchor();n?.getView().getMovableSelection().indexOf(St)===-1&&n?.getView().selectMovables([St]);let me=Be.current?.get(Y);return me?.current?(await me.current.focusMovable(St),!0):(ct.current={movable:St,anchor:Y},!0)};return{getGridElement:()=>Fe.current,getRowHeaderElement:()=>Ne.current,getColumnHeaderElement:()=>Ht.current,rowHeaderHeight:()=>ke,colHeaderWidth:()=>Ue,startEdit:tt,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:de!==null,focus:St=>{n?.getView().getMovableSelection().length>0&&ve()||Ze(St)},focusSheet:Ze,focusMovable:ve,contains:St=>Fe?.current?.contains?.(St),invalidate:rt,isSheetElement:()=>!0,getSheet:()=>n}},[n]),rt=u.useCallback(Ze=>{Z.current||(Fe?.current?.invalidate(Ze),A?.())},[]);u.useEffect(()=>{rt()},[V]);const ft=_t?be.edgeStrokeFill:Q.fill,gt=_t?xe.fill:typeof V.headerHover=="function"?V.headerHover(Q)?.fill:Q.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;ce&&ne&&(vt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${ke}px`,width:`${Ue}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Ze=>{let ve=!Ze.ctrlKey;At?.getCommand("selectAll")?.execute(!ve||Ze.button!==0),Ze.nativeEvent.which===3?i?.({originalEvent:Ze,clientX:Ze.clientX,clientY:Ze.clientY,rowIndex:-1,colIndex:-1}):Fe.current?.focus()},children:[s.jsx("div",{style:{height:ke-5+"px",width:ke-5+"px",clipPath:`path('M${ke-5} 0 L0 ${ke-5} L${ke-5} ${ke-5} L${ke-5} 0 Z')`,borderRight:`2px solid ${ft}`,borderBottom:`2px solid ${ft}`,background:`${gt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${ke}px`,width:`${Ue}px`,boxSizing:"border-box",borderRight:`solid 1px ${Q.strokeFill}`,borderBottom:`solid 1px ${Q.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const jt=Te(({_left:Ze,_top:ve})=>{},[]),Pt=Te(Ze=>{if(!i)return;const ve=Fe.current.getViewFromClient(Ze.clientX,Ze.clientY)?.getCellCoordsFromClient(Ze.clientX,Ze.clientY);ve&&(i({originalEvent:Ze,clientX:Ze.clientX,clientY:Ze.clientY,rowIndex:ve.rowIndex,colIndex:ve.colIndex}),Ze.stopPropagation(),Ze.preventDefault())},[i]),Rt=Te(Ze=>{if(Ze.shiftKey||!Ze.ctrlKey&&!Ze.metaKey)return;const{deltaY:ve}=Ze;return ve>0?At.getCommand("sheetZoomOut")?.execute():ve<0&&At.getCommand("sheetZoomIn")?.execute(),ve===0},[At]);u.useEffect(()=>{bo(null),Fo.current=null,fn.current=!1,Nn(null);const Ze=n?.getView().getTopLeft();jt(Ze),Fe.current?.scrollTo(Ze),pe(Ze),ae(n.getView()),Ve(ye(n.getView().getFreezePanes())),Ye(et()),A()},[n?.getView()]);const zt=Te(Ze=>{const ve=Ze.getVisibleRangeCoords();if(!ve)return null;const St=[];return n.getRange(ve).forEach((q,Ce)=>{const Y=Ce.getCoords(),me=Ce.getCell();(qe=>{if(qe.isEmpty())return!1;const mt=qe.getSpans();if(mt.width>1||mt.height>1||qe.getStyle().hasVisibleStyling()||ee.isShowFormulas()&&qe.getFormula()!==null)return!0;const Ke=qe.getValue();return Ke!==null&&!(!ee.isShowZeros()&&Ke===0&&qe.getType()===$.ScalarType.Number)})(me)&&St.push({coords:Y,value:me,range:ee.isShowFormulas()?null:me.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),St},[n,ee.isShowZeros(),ee.isShowFormulas(),de]);u.useEffect(()=>{const Ze=[];x&&Ze.push(...x),_n&&Ze.push(..._n),Gt.isEqualArrays(Ze,Fo.current)||(Fo.current=Ze,bo(Ze))},[x,_n,V]);const Dt=u.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[V?.header?.edgeStrokeFill]),gn=Te(Ze=>{Ze.isDefaultPrevented()||Ze.isPropagationStopped()||(ct.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),zn=u.useMemo(()=>{const Ze=Je.getMode();return Ze?.key==="cut"||Ze?.key==="copy"},[Je]),Cn=Te(async Ze=>{const ve=Je.getMode();return Ze.keyCode===on.Escape&&ve?(Ze.preventDefault(),void Je.setMode(null)):Ze.keyCode===on.Enter&&zn?(Ze.preventDefault(),await At?.getCommand("paste")?.execute(),void Je.setMode(null)):void At?.dispatchToFocusedCommand(Ze)},[At,Je]),Ne=u.useRef(null),yt=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${ke+1}px`,width:`${Ue+Q.edgeStrokeWidth}px`,minWidth:`${Ue+Q.edgeStrokeWidth}px`,borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,height:`calc(100% - ${ke}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(hg,{ref:Ne,sheetElement:pr.current,gridRef:Fe,freezeStart:De?.[zo.Top],oppositeSize:Ue,containerWidth:Ue,containerHeight:Xe,sheetHeader:n.getRowHeaders(),gridStyle:le,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jr,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${ke+1}px`,width:`${Ue+Q.edgeStrokeWidth}px`,minWidth:`${Ue+Q.edgeStrokeWidth}px`,borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,height:`calc(100% - ${ke}px)`,boxSizing:"border-box",zIndex:"2",...pi?.style},...pi})}),[Ue,ke,Xe,n,jr,De?.[zo.Top],V,Le,i,Q.fill,d]),Ht=u.useRef(null),nn=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${ke+Q.edgeStrokeWidth}px`,minHeight:`${ke+Q.edgeStrokeWidth}px`,borderBottom:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(hg,{ref:Ht,sheetElement:pr.current,gridRef:Fe,freezeStart:De?.[zo.Left],oppositeSize:ke,containerWidth:_e,containerHeight:ke,sheetHeader:n.getColumnHeaders(),gridStyle:le,scrollPoint:tr,onSheetContextMenu:i,...Gi,style:{...Gi?.style,position:"relative",left:"0px",width:"100%",height:`${ke+Q.edgeStrokeWidth}px`,minHeight:`${ke+Q.edgeStrokeWidth}px`,borderBottom:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[ke,_e,n,tr,De?.[zo.Left],V,Q.fill,Le,i,l]),an=Te(Ze=>{const{value:ve,key:St,...q}=Ze;let Ce=ve,Y=de;if(!Y||Y.colIndex===Ze.coords.colIndex&&Y.rowIndex===Ze.coords.rowIndex||(Y=null),!Ce){const mt=Ze.range;if(Ce=n.getRange({rowIndex:mt.rowStart,colIndex:mt.colStart}).getCell(),Ce.isEmpty())return null}let me=null;Ce.getHyperlink()&&(me=async mt=>{if(P?.onLinkMouseDown?.(mt),mt.button===0&&!mt.isDefaultPrevented()){mt.stopPropagation(),mt.preventDefault();try{await Ce.getHyperlink()?.open()}catch(Ke){L?.showError?.(Ke)}}}),Y&&Y.colIndex===Ze.range.colStart&&Y.rowIndex===Ze.range.rowStart&&(Ce=Ce.createTemporaryCell({value:null}));const qe=n.getStyles();return u.createElement(Wz,{...q,key:St,bodyStyle:re,docTheme:qe.getTheme(),normalStyle:qe.getNormal(),showFormulas:ee.isShowFormulas(),showZeros:ee.isShowZeros(),onLinkMouseDown:me,...P,value:Ce})},[n,he,re,de,ee?.isShowFormulas(),ee.isShowZeros()]),It=u.useCallback((Ze,ve)=>{const{key:St,...q}=Ze;return[s.jsx(oF,{ref:ve,getVisibleCells:zt,sheet:n,gridStyle:V,...q},`border-${St}`),s.jsx(MF,{ref:ve,sheet:n,commands:At,...q},`table-${St}`),s.jsx(TF,{ref:ve,sheet:n,...q},`spill-${St}`),s.jsx(yF,{ref:ve,sheet:n,commands:At,notifier:L,onShowTooltip:E,onCloseTooltip:U,gridStyle:V,gridRef:Fe,editingCoords:de,isActive:Le,...q},`selection-${St}`),s.jsx(uF,{ref:ve,sheet:n,commands:At,gridStyle:V,element:K,notifier:L,...q},`copy-paste-${St}`),s.jsx(SF,{ref:ve,sheet:n,commands:At,target:ot,notifier:L,renderMovable:v,movableProps:{onUnFocus:()=>{pr.current.focus()}},...q},`movable-${St}`),s.jsx(CF,{ref:ve,sheet:n,commands:At,notifier:L,gridStyle:V,getCellEditor:M,showProtectedError:xn,setEditingCoords:Oe,...q},`editor-${St}`)]},[n,Fe.current,V,M,At,L]),[Pn,hr]=u.useState(!1),vr=u.useMemo(()=>{if(_e===0||Xe===0)return null;const Ze=n.getStyles().getNormal(),ve=Ze.getFont(),St=Ze.getFill(),q=Ze.getBorder(),Ce=Ze.getFill().getType()===$.IFill.Type.None;let Y=J,me=J;const qe=(Ke,Wt,Mt)=>Mt?{stroke:q.getBottom().isNone()?"none":Ke.getColor().toRGBA(re.darkMode).toString(),...Wt}:Wt;me=qe(q.getBottom(),me,!q.getBottom().isNone()),me=qe(q.getTop(),me,!q.getTop().isNone()),Y=qe(q.getRight(),Y,!q.getRight().isNone()),Y=qe(q.getLeft(),Y,!q.getLeft().isNone());let mt=ee?.getGridLineColor()?.toRGBA(re.darkMode).toString()??re.strokeFill;return Ce||(me=qe(q.getBottom(),me,!0),me=qe(q.getTop(),me,!0),Y=qe(q.getRight(),Y,!0),Y=qe(q.getLeft(),Y,!0)),s.jsx(L2,{className:"sheetxl-sheet-primary",style:{..._F,...St.toCSS(re.darkMode),...ve.toCSS(re.darkMode,we),"--sxl-app-color-background":re.fill,"--sxl-app-color-shadow":V.colorShadow,"--sxl-app-color-grey":V.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":V.selection.strokeFill},ref:Fe,zoom:we,...R,onFirstRender:Ke=>{hr(!0),R?.onFirstRender?.(Ke),At?.activate()},showGridLines:se,gridLineColor:mt,gridLineColumnsProps:Y,gridLineRowsProps:me,freezeLeft:De?.[zo.Left],freezeLeftProps:Dt,freezeTop:De?.[zo.Top],freezeTopProps:Dt,width:_e,height:Xe,columnCount:Pe.width,rowCount:Pe.height,cursor:tn??yn??"cell",clipCells:!0,layout:he,cellRenderer:an,overlayRenderer:It,getCellCoordsAsRangeCoords:fe,getVisibleCells:zt,onWheelScroll:Rt,onPointerDown:gn,onKeyDown:Cn,onViewportChange:oe,onImmediateScroll:jt,scrollPoint:ie,stageProps:{onFocus:()=>{At?.activate()}},overlays:fo})},[z]);u.useEffect(()=>{Z.current||A()},[he,De,we,At,ie?.left,ie?.top,re,R,_e,Xe,tn,fo,Le,yn]);let un={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};p||(un={...un,..._});const Hn=u.useMemo(()=>{const Ze=n.getStyles().getTheme(),ve=Ze.getColorScheme(),St=Ze.getFontScheme();return{"--sxl-doc-color-dk1":ve.getDk1().toCSS(re.darkMode),"--sxl-doc-color-dk2":ve.getDk2().toCSS(re.darkMode),"--sxl-doc-color-lt1":ve.getLt1().toCSS(re.darkMode),"--sxl-doc-color-lt2":ve.getLt2().toCSS(re.darkMode),"--sxl-doc-color-accent1":ve.getAccent1().toCSS(re.darkMode),"--sxl-doc-color-accent2":ve.getAccent2().toCSS(re.darkMode),"--sxl-doc-color-accent3":ve.getAccent3().toCSS(re.darkMode),"--sxl-doc-color-accent4":ve.getAccent4().toCSS(re.darkMode),"--sxl-doc-color-accent5":ve.getAccent5().toCSS(re.darkMode),"--sxl-doc-color-accent6":ve.getAccent6().toCSS(re.darkMode),"--sxl-doc-color-hlink":ve.getHlink().toCSS(re.darkMode),"--sxl-doc-color-fol-hlink":ve.getFolHlink().toCSS(re.darkMode),"--sxl-doc-font-major":St.getMajorFont(),"--sxl-doc-font-minor":St.getMinorFont()}},[n.getStyles().getTheme()]);let On=s.jsx("div",{style:un,onTouchStart:()=>{mo()},onFocus:Ze=>{Ie(!0),k?.(Ze)},onBlur:Ze=>{Ie(!1),j?.(Ze)},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",...Hn},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:[nn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,backgroundColor:re.fill},ref:O,onContextMenu:Pt,children:[vr,ut,s.jsx(tF,{style:{position:"absolute",right:24,bottom:4},colorLicensee:V?.selection?.strokeFill,colorCredits:V?.body?.text?.fill})]})]})]})})});if(p){const Ze=ve=>s.jsx(qu,{...ve,sheet:n});On=s.jsx(j3,{style:{flex:"1 1 100%",overflow:"hidden",background:`${Q.fill}`,minHeight:2*it.height,minWidth:2*it.width,..._},viewport:W,touchElement:Fe.current?.stage,disableTouch:rn,onScrollViewport:ve=>{Fe.current?.scrollTo(ve)},createHorizontalScrollbar:Ze,createVerticalScrollbar:Ze,...f,children:On})}u.useEffect(()=>{Z.current=!1,A?.(),Se&&pr.current?.focus()},[n]);const[Wn,Dn]=u.useState(!1),mo=Te(()=>{Wn||Dn(!0)},[Wn]);return u.useEffect(()=>{if(Pn)return typeof w=="function"&&w(),jn.detectIt().primaryInput==="touch"&&mo(),()=>{}},[w,Pn,Wn]),On}));rS.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const xg="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=",iS=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:f,onFocus:h,onBlur:g,loadingPanel:m,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(null),[M,k]=u.useState(null),[j,_]=u.useState(null);u.useEffect(()=>{k(null),i.getDetails().then(D=>{v(!1),k(D.asUrl()),D.asSVGText?.()&&_(D.asSVGText())}).catch(D=>{console.warn(D),v(!0),k(xg),_(null)})},[i]);const L=ir(t,()=>({isPictureEditor:()=>!0}),[]),T=u.useMemo(()=>{if(M||j)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:M,onLoad:()=>{w(!0)},onError:({currentTarget:D})=>{console.log("error"),D.onerror=null,k(xg),v(!0)},alt:a??`${i.getType()}`})},[b,i,M,j,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:D=>{f?.(D)},ref:L,children:[b||x?void 0:m,T]})}));iS.displayName="PictureEditor";const RF=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}),[]),[f,{height:h,width:g}]=Wl();if(!r.isClosed())return s.jsx("div",{...d,ref:c0([p,f]),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()})})})})),IF=e=>s.jsx("input",{...e}),PF=u.memo(u.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:a,onCancel:l,createInput:c=IF,notifier:d,styleHover:p={},dragging:f,maxLength:h,disabled:g=!1,readOnly:m=!1,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(!1),[M,k]=u.useState(r);u.useEffect(()=>{k(r)},[r]);const j=u.useRef(null),[_,L]=u.useState(null),T=u.useCallback(function(z){const A=z.message;_!==A&&(d?.showMessage?.(A,{type:pa.Error}),L(A))},[d,_]),D=u.useCallback(z=>{let A=!1;try{A=i?.(z)??!0}catch(O){T(O)}return A?(j.current=null,w(!1),k(z),A):(setTimeout(()=>{j.current?.focus()},0),A)},[i]),C=Te(()=>{k(r),j.current=null,w(!1),l?.()},[l,r]),S=u.useMemo(()=>{if(!b)return null;const z={className:Zr("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:h,type:"text",value:M,onFocus:A=>{j.current||(j.current=A.target,setTimeout(()=>{A.target?.select()},0))},onBlur:A=>{j.current&&D(M)},onChange:A=>{b&&k(A.target.value)},onMouseDown:A=>A.stopPropagation(),onKeyDown:A=>A.code==="Escape"?(A.preventDefault(),void C()):A.code==="Enter"?(A.preventDefault(),void D(A.target.value)):void(A.code!=="Tab"?A.stopPropagation():D(A.target.value))};return s.jsx(s.Fragment,{children:c(z)})},[b,M,D,C,c,g]),[R,P]=u.useState();u.useLayoutEffect(()=>{let z=Object.assign({},n);(f||x)&&(z=Object.assign(z,p)),P(z)},[f,x,p,n]),u.useEffect(()=>{S&&a?.(M)},[S,a,M]);const I=ir(t,()=>({startEdit(){g||m||w(!0)},cancel(){C()}}),[]);return s.jsxs("div",{...y,ref:I,style:{flexDirection:"column",display:"flex",...R},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:M}),S]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...p},children:M})]})})),z2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function d0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mf(e){return"nodeType"in e}function Fr(e){var t,n;return e?d0(e)?e:mf(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function gf(e){const{Document:t}=Fr(e);return e instanceof t}function j1(e){return!d0(e)&&e instanceof Fr(e).HTMLElement}function aS(e){return e instanceof Fr(e).SVGElement}function Js(e){return e?d0(e)?e.document:mf(e)?gf(e)?e:j1(e)||aS(e)?e.ownerDocument:document:document:document}const Vi=z2?u.useLayoutEffect:u.useEffect;function F2(e){const t=u.useRef(e);return Vi(()=>{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 Ec(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Vi(()=>{n.current!==e&&(n.current=e)},t),n}function dc(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function nu(e){const t=F2(e),n=u.useRef(null),o=u.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Ku(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let o5={};function n1(e,t){return u.useMemo(()=>{if(t)return t;const n=o5[e]==null?0:o5[e]+1;return o5[e]=n,e+"-"+n},[e,t])}function lS(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 ks=lS(1),o1=lS(-1);function B2(e){if(!e)return!1;const{KeyboardEvent:t}=Fr(e.target);return t&&e instanceof t}function Gu(e){if(function(n){if(!n)return!1;const{TouchEvent:o}=Fr(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 Ul=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[Ul.Translate.toString(e),Ul.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),bg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function OF(e){return e.matches(bg)?e:e.querySelector(bg)}const DF={display:"none"};function AF(e){let{id:t,value:n}=e;return u.createElement("div",{id:t,style:DF},n)}function LF(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 sS=u.createContext(null),zF={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
|
-
`},FF={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 BF(e){let{announcements:t=FF,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=zF}=e;const{announce:i,announcement:a}=function(){const[f,h]=u.useState("");return{announce:u.useCallback(g=>{g!=null&&h(g)},[]),announcement:f}}(),l=n1("DndLiveRegion"),[c,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),function(f){const h=u.useContext(sS);u.useEffect(()=>{if(!h)throw new Error("useDndMonitor must be used within a children of <DndContext>");return h(f)},[f,h])}(u.useMemo(()=>({onDragStart(f){let{active:h}=f;i(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&i(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;i(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;i(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;i(t.onDragCancel({active:h,over:g}))}}),[i,t])),!c)return null;const p=u.createElement(u.Fragment,null,u.createElement(AF,{id:o,value:r.draggable}),u.createElement(LF,{id:l,announcement:a}));return n?yo.createPortal(p,n):p}var or;function Zu(){}function r5(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 Ui=Object.freeze({x:0,y:0});function cS(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function NF(e,t){const n=Gu(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function dS(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function $F(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function vg(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 uS(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function wg(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 VF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=wg(t,t.left,t.top),i=[];for(const a of o){const{id:l}=a,c=n.get(l);if(c){const d=cS(wg(c),r);i.push({id:l,data:{droppableContainer:a,value:d}})}}return i.sort(dS)};function HF(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 WF=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=HF(l,t);c>0&&r.push({id:a,data:{droppableContainer:i,value:c}})}}return r.sort($F)};function Sg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ui}const UF=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 pS(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 qF={ignoreTransform:!1};function u0(e,t){t===void 0&&(t=qF);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=Fr(e).getComputedStyle(e);d&&(n=function(f,h,g){const m=pS(h);if(!m)return f;const{scaleX:y,scaleY:x,x:v,y:b}=m,w=f.left-v-(1-y)*parseFloat(g),M=f.top-b-(1-x)*parseFloat(g.slice(g.indexOf(" ")+1)),k=y?f.width/y:f.width,j=x?f.height/x:f.height;return{width:k,height:j,top:M,right:w+k,bottom:M+j,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 Cg(e){return u0(e,{ignoreTransform:!0})}function N2(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(gf(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!j1(r)||aS(r)||n.includes(r))return n;const i=Fr(e).getComputedStyle(r);return r!==e&&function(c,d){d===void 0&&(d=Fr(c).getComputedStyle(c));const p=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(f=>{const h=d[f];return typeof h=="string"&&p.test(h)})}(r,i)&&n.push(r),a=r,(l=i)===void 0&&(l=Fr(a).getComputedStyle(a)),l.position==="fixed"?n:o(r.parentNode);var a,l}(e):n}function hS(e){const[t]=N2(e,1);return t??null}function i5(e){return z2&&e?d0(e)?e:mf(e)?gf(e)||e===Js(e).scrollingElement?window:j1(e)?e:null:null:null}function fS(e){return d0(e)?e.scrollX:e.scrollLeft}function mS(e){return d0(e)?e.scrollY:e.scrollTop}function Bh(e){return{x:fS(e),y:mS(e)}}var sr;function gS(e){return!(!z2||!e)&&e===document.scrollingElement}function yS(e){const t={x:0,y:0},n=gS(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 KF={x:.2,y:.2};function GF(e,t,n,o,r){let{top:i,left:a,right:l,bottom:c}=n;o===void 0&&(o=10),r===void 0&&(r=KF);const{isTop:d,isBottom:p,isLeft:f,isRight:h}=yS(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)),!h&&l>=t.right-x?(g.x=sr.Forward,m.x=o*Math.abs((t.right-x-l)/x)):!f&&a<=t.left+x&&(g.x=sr.Backward,m.x=o*Math.abs((t.left+x-a)/x)),{direction:g,speed:m}}function ZF(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 xS(e){return e.reduce((t,n)=>ks(t,Bh(n)),Ui)}function bS(e,t){if(t===void 0&&(t=u0),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);hS(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const XF=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+fS(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+mS(n),0)}]];class Nh{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=N2(n),r=xS(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of XF)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 Mc{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 a5(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 xi,$n;function kg(e){e.preventDefault()}function YF(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"})(xi||(xi={})),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"}($n||($n={}));const vS={start:[$n.Space,$n.Enter],cancel:[$n.Esc],end:[$n.Space,$n.Enter,$n.Tab]},JF=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $n.Right:return{...n,x:n.x+25};case $n.Left:return{...n,x:n.x-25};case $n.Down:return{...n,y:n.y+25};case $n.Up:return{...n,y:n.y-25}}};class yf{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 Mc(Js(n)),this.windowListeners=new Mc(Fr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xi.Resize,this.handleCancel),this.windowListeners.add(xi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&bS(o),n(Ui)}handleKeyDown(t){if(B2(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=vS,coordinateGetter:a=JF,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}:Ui;this.referenceCoordinates||(this.referenceCoordinates=p);const f=a(t,{active:n,context:o.current,currentCoordinates:p});if(f){const h=o1(f,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:M,maxScroll:k,minScroll:j}=yS(y),_=ZF(y),L={x:Math.min(x===$n.Right?_.right-_.width/2:_.right,Math.max(x===$n.Right?_.left:_.left+_.width/2,f.x)),y:Math.min(x===$n.Down?_.bottom-_.height/2:_.bottom,Math.max(x===$n.Down?_.top:_.top+_.height/2,f.y))},T=x===$n.Right&&!b||x===$n.Left&&!w,D=x===$n.Down&&!M||x===$n.Up&&!v;if(T&&L.x!==f.x){const C=y.scrollLeft+h.x,S=x===$n.Right&&C<=k.x||x===$n.Left&&C>=j.x;if(S&&!h.y)return void y.scrollTo({left:C,behavior:l});g.x=S?y.scrollLeft-C:x===$n.Right?y.scrollLeft-k.x:y.scrollLeft-j.x,g.x&&y.scrollBy({left:-g.x,behavior:l});break}if(D&&L.y!==f.y){const C=y.scrollTop+h.y,S=x===$n.Down&&C<=k.y||x===$n.Up&&C>=j.y;if(S&&!h.x)return void y.scrollTo({top:C,behavior:l});g.y=S?y.scrollTop-C:x===$n.Down?y.scrollTop-k.y:y.scrollTop-j.y,g.y&&y.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,ks(o1(f,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 Eg(e){return!(!e||!("distance"in e))}function Mg(e){return!(!e||!("delay"in e))}yf.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=vS,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 xf{constructor(t,n,o){var r;o===void 0&&(o=function(l){const{EventTarget:c}=Fr(l);return l instanceof c?l:Js(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=Js(a),this.documentListeners=new Mc(this.document),this.listeners=new Mc(o),this.windowListeners=new Mc(Fr(a)),this.initialCoordinates=(r=Gu(i))!=null?r:Ui,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(xi.Resize,this.handleCancel),this.windowListeners.add(xi.DragStart,kg),this.windowListeners.add(xi.VisibilityChange,this.handleCancel),this.windowListeners.add(xi.ContextMenu,kg),this.documentListeners.add(xi.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Mg(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Eg(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(xi.Click,YF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xi.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=Gu(t))!=null?n:Ui,d=o1(r,c);if(!o&&l){if(Eg(l)){if(l.tolerance!=null&&a5(d,l.tolerance))return this.handleCancel();if(a5(d,l.distance))return this.handleStart()}return Mg(l)&&a5(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===$n.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 wS extends xf{constructor(t){const{event:n}=t,o=Js(n.target);super(t,QF,o)}}wS.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const eB={move:{name:"mousemove"},end:{name:"mouseup"}};var $h;(function(e){e[e.RightClick=2]="RightClick"})($h||($h={}));class SS extends xf{constructor(t){super(t,eB,Js(t.event.target))}}SS.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==$h.RightClick&&(o?.({event:n}),!0)}}];const l5={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class CS extends xf{constructor(t){super(t,l5)}static setup(){return window.addEventListener(l5.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(l5.move.name,t)};function t(){}}}var Tc,Xu;CS.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"}(Tc||(Tc={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Xu||(Xu={}));const tB={x:{[sr.Backward]:!1,[sr.Forward]:!1},y:{[sr.Backward]:!1,[sr.Forward]:!1}};var r1,Vh;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(r1||(r1={})),(Vh||(Vh={})).Optimized="optimized";const Tg=new Map;function Hh(e,t){return dc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Yu(e){let{callback:t,disabled:n}=e;const o=F2(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 nB(e){return new Nh(u0(e),e)}function _g(e,t,n){t===void 0&&(t=nB);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 f=F2(d),h=u.useMemo(()=>{if(p||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:g}=window;return new g(f)},[f,p]);return u.useEffect(()=>()=>h?.disconnect(),[h]),h}({callback(c){if(e)for(const d of c){const{type:p,target:f}=d;if(p==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),l=Yu({callback:i});return Vi(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),a?.disconnect())},[e]),o}const jg=[];function Rg(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==Ui;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?o1(e,n.current):Ui}function Ig(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 Pg=[];function kS(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return j1(t)?t:e}const oB=[{sensor:wS,options:{}},{sensor:yf,options:{}}],rB={current:{}},ou={draggable:{measure:Cg},droppable:{measure:Cg,strategy:r1.WhileDragging,frequency:Vh.Optimized},dragOverlay:{measure:u0}};class _c 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 iB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _c,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Zu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ou,measureDroppableContainers:Zu,windowRect:null,measuringScheduled:!1},ES={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Zu,draggableNodes:new Map,over:null,measureDroppableContainers:Zu},i1=u.createContext(ES),MS=u.createContext(iB);function aB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _c}}}function lB(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 _c(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 _c(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 _c(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function sB(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=u.useContext(i1),i=Ku(o),a=Ku(n?.id);return u.useEffect(()=>{if(!t&&!o&&i&&a!=null){if(!B2(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 f=OF(p);if(f){f.focus();break}}})}},[o,t,r,a,i]),null}function TS(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const $2=u.createContext({...Ui,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 cB=u.memo(function(e){var t,n,o,r;let{id:i,accessibility:a,autoScroll:l=!0,children:c,sensors:d=oB,collisionDetection:p=WF,measuring:f,modifiers:h,...g}=e;const m=u.useReducer(lB,void 0,aB),[y,x]=m,[v,b]=function(){const[oe]=u.useState(()=>new Set),ue=u.useCallback(ie=>(oe.add(ie),()=>oe.delete(ie)),[oe]);return[u.useCallback(ie=>{let{type:pe,event:fe}=ie;oe.forEach(ye=>{var De;return(De=ye[pe])==null?void 0:De.call(ye,fe)})},[oe]),ue]}(),[w,M]=u.useState(Ga.Uninitialized),k=w===Ga.Initialized,{draggable:{active:j,nodes:_,translate:L},droppable:{containers:T}}=y,D=j!=null?_.get(j):null,C=u.useRef({initial:null,translated:null}),S=u.useMemo(()=>{var oe;return j!=null?{id:j,data:(oe=D?.data)!=null?oe:rB,rect:C}:null},[j,D]),R=u.useRef(null),[P,I]=u.useState(null),[z,A]=u.useState(null),O=Ec(g,Object.values(g)),N=n1("DndDescribedBy",i),F=u.useMemo(()=>T.getEnabled(),[T]),E=u.useMemo(()=>({draggable:{...ou.draggable,...B?.draggable},droppable:{...ou.droppable,...B?.droppable},dragOverlay:{...ou.dragOverlay,...B?.dragOverlay}}),[(B=f)==null?void 0:B.draggable,B?.droppable,B?.dragOverlay]);var B;const{droppableRects:H,measureDroppableContainers:U,measuringScheduled:Z}=function(oe,ue){let{dragging:ie,dependencies:pe,config:fe}=ue;const[ye,De]=u.useState(null),{frequency:Ve,measure:Je,strategy:ot}=fe,tt=u.useRef(oe),Lt=function(){switch(ot){case r1.Always:return!1;case r1.BeforeDragging:return ie;default:return!ie}}(),At=Ec(Lt),_t=u.useCallback(function(Qt){Qt===void 0&&(Qt=[]),At.current||De(rn=>rn===null?Qt:rn.concat(Qt.filter(yn=>!rn.includes(yn))))},[At]),Yt=u.useRef(null),Jt=dc(Qt=>{if(Lt&&!ie)return Tg;if(!Qt||Qt===Tg||tt.current!==oe||ye!=null){const rn=new Map;for(let yn of oe){if(!yn)continue;if(ye&&ye.length>0&&!ye.includes(yn.id)&&yn.rect.current){rn.set(yn.id,yn.rect.current);continue}const dn=yn.node.current,kt=dn?new Nh(Je(dn),dn):null;yn.rect.current=kt,kt&&rn.set(yn.id,kt)}return rn}return Qt},[oe,ye,ie,Lt,Je]);return u.useEffect(()=>{tt.current=oe},[oe]),u.useEffect(()=>{Lt||_t()},[ie,Lt]),u.useEffect(()=>{ye&&ye.length>0&&De(null)},[JSON.stringify(ye)]),u.useEffect(()=>{Lt||typeof Ve!="number"||Yt.current!==null||(Yt.current=setTimeout(()=>{_t(),Yt.current=null},Ve))},[Ve,Lt,_t,...pe]),{droppableRects:Jt,measureDroppableContainers:_t,measuringScheduled:ye!=null}}(F,{dragging:k,dependencies:[L.x,L.y],config:E.droppable}),G=function(oe,ue){const ie=ue!=null?oe.get(ue):void 0,pe=ie?ie.node.current:null;return dc(fe=>{var ye;return ue==null?null:(ye=pe??fe)!=null?ye:null},[pe,ue])}(_,j),V=u.useMemo(()=>z?Gu(z):null,[z]),le=function(){const oe=P?.autoScrollEnabled===!1,ue=typeof l=="object"?l.enabled===!1:l===!1,ie=k&&!oe&&!ue;return typeof l=="object"?{...l,enabled:ie}:{enabled:ie}}(),re=(ge=G,Q=E.draggable.measure,Hh(ge,Q));var ge,Q;(function(oe){let{activeNode:ue,measure:ie,initialRect:pe,config:fe=!0}=oe;const ye=u.useRef(!1),{x:De,y:Ve}=typeof fe=="boolean"?{x:fe,y:fe}:fe;Vi(()=>{if(!De&&!Ve||!ue)return void(ye.current=!1);if(ye.current||!pe)return;const Je=ue?.node.current;if(!Je||Je.isConnected===!1)return;const ot=Sg(ie(Je),pe);if(De||(ot.x=0),Ve||(ot.y=0),ye.current=!0,Math.abs(ot.x)>0||Math.abs(ot.y)>0){const tt=hS(Je);tt&&tt.scrollBy({top:ot.y,left:ot.x})}},[ue,De,Ve,pe,ie])})({activeNode:j!=null?_.get(j):null,config:le.layoutShiftCompensation,initialRect:re,measure:E.draggable.measure});const xe=_g(G,E.draggable.measure,re),be=_g(G?G.parentElement:null),Fe=u.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ee=T.getNodeFor((t=Fe.current.over)==null?void 0:t.id),ae=function(oe){let{measure:ue}=oe;const[ie,pe]=u.useState(null),fe=Yu({callback:u.useCallback(Je=>{for(const{target:ot}of Je)if(j1(ot)){pe(tt=>{const Lt=ue(ot);return tt?{...tt,width:Lt.width,height:Lt.height}:Lt});break}},[ue])}),ye=u.useCallback(Je=>{const ot=kS(Je);fe?.disconnect(),ot&&fe?.observe(ot),pe(ot?ue(ot):null)},[ue,fe]),[De,Ve]=nu(ye);return u.useMemo(()=>({nodeRef:De,rect:ie,setRef:Ve}),[ie,De,Ve])}({measure:E.dragOverlay.measure}),we=(n=ae.nodeRef.current)!=null?n:G,se=k?(o=ae.rect)!=null?o:xe:null,J=!(!ae.nodeRef.current||!ae.rect),ce=Sg(ne=J?null:xe,Hh(ne));var ne;const Pe=Ig(we?Fr(we):null),Ee=function(oe){const ue=u.useRef(oe),ie=dc(pe=>oe?pe&&pe!==jg&&oe&&ue.current&&oe.parentNode===ue.current.parentNode?pe:N2(oe):jg,[oe]);return u.useEffect(()=>{ue.current=oe},[oe]),ie}(k?ee??G:null),it=function(oe,ue){ue===void 0&&(ue=u0);const[ie]=oe,pe=Ig(ie?Fr(ie):null),[fe,ye]=u.useState(Pg);function De(){ye(()=>oe.length?oe.map(Je=>gS(Je)?pe:new Nh(ue(Je),Je)):Pg)}const Ve=Yu({callback:De});return Vi(()=>{Ve?.disconnect(),De(),oe.forEach(Je=>Ve?.observe(Je))},[oe]),fe}(Ee),Ue=TS(h,{transform:{x:L.x-ce.x,y:L.y-ce.y,scaleX:1,scaleY:1},activatorEvent:z,active:S,activeNodeRect:xe,containerNodeRect:be,draggingNodeRect:se,over:Fe.current.over,overlayNodeRect:ae.rect,scrollableAncestors:Ee,scrollableAncestorRects:it,windowRect:Pe}),ke=V?ks(V,L):null,_e=function(oe){const[ue,ie]=u.useState(null),pe=u.useRef(oe),fe=u.useCallback(ye=>{const De=i5(ye.target);De&&ie(Ve=>Ve?(Ve.set(De,Bh(De)),new Map(Ve)):null)},[]);return u.useEffect(()=>{const ye=pe.current;if(oe!==ye){De(ye);const Ve=oe.map(Je=>{const ot=i5(Je);return ot?(ot.addEventListener("scroll",fe,{passive:!0}),[ot,Bh(ot)]):null}).filter(Je=>Je!=null);ie(Ve.length?new Map(Ve):null),pe.current=oe}return()=>{De(oe),De(ye)};function De(Ve){Ve.forEach(Je=>{i5(Je)?.removeEventListener("scroll",fe)})}},[fe,oe]),u.useMemo(()=>oe.length?ue?Array.from(ue.values()).reduce((ye,De)=>ks(ye,De),Ui):xS(oe):Ui,[oe,ue])}(Ee),Xe=Rg(_e),Be=Rg(_e,[xe]),ct=ks(Ue,Xe),et=se?UF(se,Ue):null,he=S&&et?p({active:S,collisionRect:et,droppableRects:H,droppableContainers:F,pointerCoordinates:ke}):null,Ye=uS(he,"id"),[Se,Ie]=u.useState(null),de=function(oe,ue,ie){return{...oe,scaleX:ue&&ie?ue.width/ie.width:1,scaleY:ue&&ie?ue.height/ie.height:1}}(J?Ue:ks(Ue,Be),(r=Se?.rect)!=null?r:null,xe),Oe=u.useRef(null),Le=u.useCallback((oe,ue)=>{let{sensor:ie,options:pe}=ue;if(R.current==null)return;const fe=_.get(R.current);if(!fe)return;const ye=oe.nativeEvent,De=new ie({active:R.current,activeNode:fe,event:ye,options:pe,context:Fe,onAbort(Je){if(!_.get(Je))return;const{onDragAbort:ot}=O.current,tt={id:Je};ot?.(tt),v({type:"onDragAbort",event:tt})},onPending(Je,ot,tt,Lt){if(!_.get(Je))return;const{onDragPending:At}=O.current,_t={id:Je,constraint:ot,initialCoordinates:tt,offset:Lt};At?.(_t),v({type:"onDragPending",event:_t})},onStart(Je){const ot=R.current;if(ot==null)return;const tt=_.get(ot);if(!tt)return;const{onDragStart:Lt}=O.current,At={activatorEvent:ye,active:{id:ot,data:tt.data,rect:C}};yo.unstable_batchedUpdates(()=>{Lt?.(At),M(Ga.Initializing),x({type:or.DragStart,initialCoordinates:Je,active:ot}),v({type:"onDragStart",event:At}),I(Oe.current),A(ye)})},onMove(Je){x({type:or.DragMove,coordinates:Je})},onEnd:Ve(or.DragEnd),onCancel:Ve(or.DragCancel)});function Ve(Je){return async function(){const{active:ot,collisions:tt,over:Lt,scrollAdjustedTranslate:At}=Fe.current;let _t=null;if(ot&&At){const{cancelDrop:Yt}=O.current;_t={activatorEvent:ye,active:ot,collisions:tt,delta:At,over:Lt},Je===or.DragEnd&&typeof Yt=="function"&&await Promise.resolve(Yt(_t))&&(Je=or.DragCancel)}R.current=null,yo.unstable_batchedUpdates(()=>{x({type:Je}),M(Ga.Uninitialized),Ie(null),I(null),A(null),Oe.current=null;const Yt=Je===or.DragEnd?"onDragEnd":"onDragCancel";if(_t){const Jt=O.current[Yt];Jt?.(_t),v({type:Yt,event:_t})}})}}Oe.current=De},[_]),je=u.useCallback((oe,ue)=>(ie,pe)=>{const fe=ie.nativeEvent,ye=_.get(pe);if(R.current!==null||!ye||fe.dndKit||fe.defaultPrevented)return;const De={active:ye};oe(ie,ue.options,De)===!0&&(fe.dndKit={capturedBy:ue.sensor},R.current=pe,Le(ie,ue))},[_,Le]),K=function(oe,ue){return u.useMemo(()=>oe.reduce((ie,pe)=>{const{sensor:fe}=pe;return[...ie,...fe.activators.map(ye=>({eventName:ye.eventName,handler:ue(ye.handler,pe)}))]},[]),[oe,ue])}(d,je);(function(oe){u.useEffect(()=>{if(!z2)return;const ue=oe.map(ie=>{let{sensor:pe}=ie;return pe.setup==null?void 0:pe.setup()});return()=>{for(const ie of ue)ie?.()}},oe.map(ue=>{let{sensor:ie}=ue;return ie}))})(d),Vi(()=>{xe&&w===Ga.Initializing&&M(Ga.Initialized)},[xe,w]),u.useEffect(()=>{const{onDragMove:oe}=O.current,{active:ue,activatorEvent:ie,collisions:pe,over:fe}=Fe.current;if(!ue||!ie)return;const ye={active:ue,activatorEvent:ie,collisions:pe,delta:{x:ct.x,y:ct.y},over:fe};yo.unstable_batchedUpdates(()=>{oe?.(ye),v({type:"onDragMove",event:ye})})},[ct.x,ct.y]),u.useEffect(()=>{const{active:oe,activatorEvent:ue,collisions:ie,droppableContainers:pe,scrollAdjustedTranslate:fe}=Fe.current;if(!oe||R.current==null||!ue||!fe)return;const{onDragOver:ye}=O.current,De=pe.get(Ye),Ve=De&&De.rect.current?{id:De.id,rect:De.rect.current,data:De.data,disabled:De.disabled}:null,Je={active:oe,activatorEvent:ue,collisions:ie,delta:{x:fe.x,y:fe.y},over:Ve};yo.unstable_batchedUpdates(()=>{Ie(Ve),ye?.(Je),v({type:"onDragOver",event:Je})})},[Ye]),Vi(()=>{Fe.current={activatorEvent:z,active:S,activeNode:G,collisionRect:et,collisions:he,droppableRects:H,draggableNodes:_,draggingNode:we,draggingNodeRect:se,droppableContainers:T,over:Se,scrollableAncestors:Ee,scrollAdjustedTranslate:ct},C.current={initial:se,translated:et}},[S,G,he,et,_,we,se,H,T,Se,Ee,ct]),function(oe){let{acceleration:ue,activator:ie=Tc.Pointer,canScroll:pe,draggingRect:fe,enabled:ye,interval:De=5,order:Ve=Xu.TreeOrder,pointerCoordinates:Je,scrollableAncestors:ot,scrollableAncestorRects:tt,delta:Lt,threshold:At}=oe;const _t=function(tn){let{delta:_n,disabled:Nn}=tn;const fn=Ku(_n);return dc(fo=>{if(Nn||!fn||!fo)return tB;const bo=Math.sign(_n.x-fn.x),Fo=Math.sign(_n.y-fn.y);return{x:{[sr.Backward]:fo.x[sr.Backward]||bo===-1,[sr.Forward]:fo.x[sr.Forward]||bo===1},y:{[sr.Backward]:fo.y[sr.Backward]||Fo===-1,[sr.Forward]:fo.y[sr.Forward]||Fo===1}}},[Nn,_n,fn])}({delta:Lt,disabled:!ye}),[Yt,Jt]=function(){const tn=u.useRef(null);return[u.useCallback((_n,Nn)=>{tn.current=setInterval(_n,Nn)},[]),u.useCallback(()=>{tn.current!==null&&(clearInterval(tn.current),tn.current=null)},[])]}(),Qt=u.useRef({x:0,y:0}),rn=u.useRef({x:0,y:0}),yn=u.useMemo(()=>{switch(ie){case Tc.Pointer:return Je?{top:Je.y,bottom:Je.y,left:Je.x,right:Je.x}:null;case Tc.DraggableRect:return fe}},[ie,fe,Je]),dn=u.useRef(null),kt=u.useCallback(()=>{const tn=dn.current;if(!tn)return;const _n=Qt.current.x*rn.current.x,Nn=Qt.current.y*rn.current.y;tn.scrollBy(_n,Nn)},[]),xn=u.useMemo(()=>Ve===Xu.TreeOrder?[...ot].reverse():ot,[Ve,ot]);u.useEffect(()=>{if(ye&&ot.length&&yn){for(const tn of xn){if(pe?.(tn)===!1)continue;const _n=ot.indexOf(tn),Nn=tt[_n];if(!Nn)continue;const{direction:fn,speed:fo}=GF(tn,Nn,yn,ue,At);for(const bo of["x","y"])_t[bo][fn[bo]]||(fo[bo]=0,fn[bo]=0);if(fo.x>0||fo.y>0)return Jt(),dn.current=tn,Yt(kt,De),Qt.current=fo,void(rn.current=fn)}Qt.current={x:0,y:0},rn.current={x:0,y:0},Jt()}else Jt()},[ue,kt,pe,Jt,ye,De,JSON.stringify(yn),JSON.stringify(_t),Yt,ot,xn,tt,JSON.stringify(At)])}({...le,delta:L,draggingRect:et,pointerCoordinates:ke,scrollableAncestors:Ee,scrollableAncestorRects:it});const W=u.useMemo(()=>({active:S,activeNode:G,activeNodeRect:xe,activatorEvent:z,collisions:he,containerNodeRect:be,dragOverlay:ae,draggableNodes:_,droppableContainers:T,droppableRects:H,over:Se,measureDroppableContainers:U,scrollableAncestors:Ee,scrollableAncestorRects:it,measuringConfiguration:E,measuringScheduled:Z,windowRect:Pe}),[S,G,xe,z,he,be,ae,_,T,H,Se,U,Ee,it,E,Z,Pe]),te=u.useMemo(()=>({activatorEvent:z,activators:K,active:S,activeNodeRect:xe,ariaDescribedById:{draggable:N},dispatch:x,draggableNodes:_,over:Se,measureDroppableContainers:U}),[z,K,S,xe,x,N,_,Se,U]);return u.createElement(sS.Provider,{value:b},u.createElement(i1.Provider,{value:te},u.createElement(MS.Provider,{value:W},u.createElement($2.Provider,{value:de},c)),u.createElement(sB,{disabled:a?.restoreFocus===!1})),u.createElement(BF,{...a,hiddenTextDescribedById:N}))}),dB=u.createContext(null),Og="button";function _S(){return u.useContext(MS)}const uB={timeout:25};function pB(e){let{animation:t,children:n}=e;const[o,r]=u.useState(null),[i,a]=u.useState(null),l=Ku(n);return n||o||!l||r(l),Vi(()=>{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 hB={x:0,y:0,scaleX:1,scaleY:1};function fB(e){let{children:t}=e;return u.createElement(i1.Provider,{value:ES},u.createElement($2.Provider,{value:hB},t))}const mB={position:"fixed",touchAction:"none"},gB=e=>B2(e)?"transform 250ms ease":void 0,yB=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:a,rect:l,style:c,transform:d,transition:p=gB}=e;if(!l)return null;const f=r?d:{...d,scaleX:1,scaleY:1},h={...mB,width:l.width,height:l.height,top:l.top,left:l.left,transform:Ul.Transform.toString(f),transformOrigin:r&&o?NF(o,l):void 0,transition:typeof p=="function"?p(o):p,...c};return u.createElement(n,{className:a,style:h,ref:t},i)}),jS={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ul.Transform.toString(t)},{transform:Ul.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 Dg=0;const xB=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:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:y,dragOverlay:x,over:v,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:M,windowRect:k}=_S(),j=u.useContext($2),_=(S=f?.id,u.useMemo(()=>{if(S!=null)return Dg++,Dg},[S])),L=TS(a,{activatorEvent:p,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:x.rect,over:v,overlayNodeRect:x.rect,scrollableAncestors:w,scrollableAncestorRects:M,transform:j,windowRect:k}),T=Hh(h),D=function(R){let{config:P,draggableNodes:I,droppableContainers:z,measuringConfiguration:A}=R;return F2((O,N)=>{if(P===null)return;const F=I.get(O);if(!F)return;const E=F.node.current;if(!E)return;const B=kS(N);if(!B)return;const{transform:H}=Fr(N).getComputedStyle(N),U=pS(H);if(!U)return;const Z=typeof P=="function"?P:function(G){const{duration:V,easing:le,sideEffects:re,keyframes:ge}={...jS,...G};return Q=>{let{active:xe,dragOverlay:be,transform:Fe,...ee}=Q;if(!V)return;const ae=be.rect.left-xe.rect.left,we=be.rect.top-xe.rect.top,se={scaleX:Fe.scaleX!==1?xe.rect.width*Fe.scaleX/be.rect.width:1,scaleY:Fe.scaleY!==1?xe.rect.height*Fe.scaleY/be.rect.height:1},J={x:Fe.x-ae,y:Fe.y-we,...se},ce=ge({...ee,active:xe,dragOverlay:be,transform:{initial:Fe,final:J}}),[ne]=ce,Pe=ce[ce.length-1];if(JSON.stringify(ne)===JSON.stringify(Pe))return;const Ee=re?.({active:xe,dragOverlay:be,...ee}),it=be.node.animate(ce,{duration:V,easing:le,fill:"forwards"});return new Promise(Ue=>{it.onfinish=()=>{Ee?.(),Ue()}})}}(P);return bS(E,A.draggable.measure),Z({active:{id:O,data:F.data,node:E,rect:A.draggable.measure(E)},draggableNodes:I,dragOverlay:{node:N,rect:A.dragOverlay.measure(B)},droppableContainers:z,measuringConfiguration:A,transform:U})})}({config:o,draggableNodes:m,droppableContainers:y,measuringConfiguration:b}),C=T?x.setRef:void 0;var S;return u.createElement(fB,null,u.createElement(pB,{animation:D},f&&_?u.createElement(yB,{key:_,id:f.id,ref:C,as:l,activatorEvent:p,adjustScale:t,className:c,transition:i,rect:T,style:{zIndex:d,...r},transform:L},n):null))});function bf(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function bB(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function Ed(e){return e!==null&&e>=0}const Md={scaleX:1,scaleY:1},vB=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,f){const h=d[p],g=d[p-1],m=d[p+1];return h&&(g||m)?f<p?g?h.left-(g.left+g.width):m.left-(h.left+h.width):m?m.left-(h.left+h.width):h.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,...Md}:null}return a>r&&a<=i?{x:-l.width-c,y:0,...Md}:a<r&&a>=i?{x:l.width+c,y:0,...Md}:{x:0,y:0,...Md}},vf=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=bf(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},RS="Sortable",IS=u.createContext({activeIndex:-1,containerId:RS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:vf,disabled:{draggable:!1,droppable:!1}});function wB(e){let{children:t,id:n,items:o,strategy:r=vf,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:d,measureDroppableContainers:p}=_S(),f=n1(RS,n),h=l.rect!==null,g=u.useMemo(()=>o.map(j=>typeof j=="object"&&"id"in j?j.id:j),[o]),m=a!=null,y=a?g.indexOf(a.id):-1,x=d?g.indexOf(d.id):-1,v=u.useRef(g),b=!function(j,_){if(j===_)return!0;if(j.length!==_.length)return!1;for(let L=0;L<j.length;L++)if(j[L]!==_[L])return!1;return!0}(g,v.current),w=x!==-1&&y===-1||b,M=function(j){return typeof j=="boolean"?{draggable:j,droppable:j}:j}(i);Vi(()=>{b&&m&&p(g)},[b,g,m,p]),u.useEffect(()=>{v.current=g},[g]);const k=u.useMemo(()=>({activeIndex:y,containerId:f,disabled:M,disableTransforms:w,items:g,overIndex:x,useDragOverlay:h,sortedRects:bB(g,c),strategy:r}),[y,f,M.draggable,M.droppable,w,g,x,c,h,r]);return u.createElement(IS.Provider,{value:k},t)}const SB=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return bf(n,o,r).indexOf(t)},CB=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))},kB={duration:200,easing:"ease"},PS="transform",EB=Ul.Transition.toString({property:PS,duration:0,easing:"linear"}),MB={roleDescription:"sortable"};function Ju(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 TB=[$n.Down,$n.Right,$n.Up,$n.Left],_B=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(TB.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 $n.Down:o.top<m.top&&p.push(g);break;case $n.Up:o.top>m.top&&p.push(g);break;case $n.Left:o.left>m.left&&p.push(g);break;case $n.Right:o.left<m.left&&p.push(g)}});const f=(g=>{let{collisionRect:m,droppableRects:y,droppableContainers:x}=g;const v=vg(m),b=[];for(const w of x){const{id:M}=w,k=y.get(M);if(k){const j=vg(k),_=v.reduce((T,D,C)=>T+cS(j[C],D),0),L=Number((_/4).toFixed(4));b.push({id:M,data:{droppableContainer:w,value:L}})}}return b.sort(dS)})({collisionRect:o,droppableRects:r,droppableContainers:p});let h=uS(f,"id");if(h===a?.id&&f.length>1&&(h=f[1].id),h!=null){const g=i.get(n.id),m=i.get(h),y=m?r.get(m.id):null,x=m?.node.current;if(x&&y&&g&&m){const v=N2(x).some((j,_)=>l[_]!==j),b=Ag(g,m),w=(d=m,!!(Ju(c=g)&&Ju(d)&&Ag(c,d))&&c.data.current.sortable.index<d.data.current.sortable.index),M=v||!b?{x:0,y:0}:{x:w?o.width-y.width:0,y:w?o.height-y.height:0},k={x:y.left,y:y.top};return M.x&&M.y?k:o1(k,M)}}}var c,d};function Ag(e,t){return!(!Ju(e)||!Ju(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const jB=e=>{let{transform:t}=e;return{...t,y:0}},RB=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:f,borderWidth:h,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"}})]})})),Fi={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"},OS=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:f,style:h,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:!!f,index:l,fadeIn:!!r,listeners:c,ref:b,style:h,transform:m,transition:g,value:y}):s.jsx(s.Fragment,{children:y});return s.jsx("div",{className:Zr("tab-item",Fi.Wrapper,r&&Fi.fadeIn,f&&Fi.sorting,t&&Fi.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(Fi.Item,n&&Fi.dragging,i&&Fi.withHandle,t&&Fi.dragOverlay,o&&Fi.disabled,e&&Fi.color,"dragging"),style:h,"data-cypress":"draggable-item",...i?void 0:c,...v,tabIndex:i?void 0:-1,children:w})})})),Lg={Row:"_Row_1kr10_1"},IB=u.memo(u.forwardRef(({children:e,horizontal:t,style:n},o)=>s.jsx("div",{ref:o,style:{...n},className:Zr(Lg.Row,t&&Lg.horizontal),children:e}))),PB={...jS},OB=u.memo(u.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:a=VF,coordinateGetter:l=_B,dropAnimation:c=PB,getItemStyles:d=()=>({}),getNewIndex:p,handle:f=!1,items:h,onMove:g,isDisabled:m=()=>!1,measuring:y,modifiers:x,renderItem:v,renderDivider:b,reorderItems:w=bf,strategy:M=vf,style:k,useDragOverlay:j=!0,onDragStart:_,wrapperStyle:L=()=>({})}=e,[T,D]=u.useState(()=>h);u.useEffect(()=>{D(h)},[h]);const[C,S]=u.useState(null),R=function(){for(var O=arguments.length,N=new Array(O),F=0;F<O;F++)N[F]=arguments[F];return u.useMemo(()=>[...N].filter(E=>E!=null),[...N])}(r5(SS,{activationConstraint:o}),r5(CS,{activationConstraint:o}),r5(yf,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:l})),P=T.indexOf.bind(T),I=C?P(C):-1,z=[];T.map((O,N)=>{z.push(s.jsx(DB,{id:O,handle:f,index:N,style:d,wrapperStyle:L,disabled:m(O),renderItem:v,animateLayoutChanges:r,useDragOverlay:j,getNewIndex:p},O+"-"+N));const F=b?.({key:"divider-"+N});F&&z.push(F)});const{getPortalContainer:A}=(u.useEffect(()=>{function O(){const N=document.fullscreenElement;if(!N)return;let F=N.querySelector(".fullscreen-portal-root");F||(F=document.createElement("div"),F.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",N.appendChild(F))}return ed++,O(),document.addEventListener("fullscreenchange",O),()=>{document.removeEventListener("fullscreenchange",O),ed--,ed<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(N=>{N.parentNode&&N.parentNode.removeChild(N)}),ed=0)}},[]),{getPortalContainer:YR});return s.jsxs(cB,{sensors:R,collisionDetection:a,onDragStart:O=>{const{active:N}=O;N&&(_?.(O),S(N.id))},autoScroll:{canScroll:O=>!0},onDragEnd:O=>{if(S(null),O.over){const N=P(O.over.id);I!==N&&(D(F=>w(F,I,N)),g?.(I,N))}},onDragCancel:()=>{S(null)},measuring:y,modifiers:x,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...k},className:Zr(n,Fi.Wrapper),children:s.jsx(wB,{items:T,strategy:M,children:s.jsx(IB,{ref:t,children:z})})}),j?yo.createPortal(s.jsx(xB,{adjustScale:i,dropAnimation:c,children:C?s.jsx(OS,{value:T[I],handle:f,renderItem:v,wrapperStyle:L({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}),A()):null]})}));function DB({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:a,style:l,renderItem:c,useDragOverlay:d,wrapperStyle:p}){const{attributes:f,isDragging:h,isSorting:g,listeners:m,overIndex:y,setNodeRef:x,transform:v,transition:b}=function(w){let{animateLayoutChanges:M=CB,attributes:k,disabled:j,data:_,getNewIndex:L=SB,id:T,strategy:D,resizeObserverConfig:C,transition:S=kB}=w;const{items:R,containerId:P,activeIndex:I,disabled:z,disableTransforms:A,sortedRects:O,overIndex:N,useDragOverlay:F,strategy:E}=u.useContext(IS),B=(he=z,typeof(et=j)=="boolean"?{draggable:et,droppable:!1}:{draggable:(Ye=et?.draggable)!=null?Ye:he.draggable,droppable:(Se=et?.droppable)!=null?Se:he.droppable}),H=R.indexOf(T),U=u.useMemo(()=>({sortable:{containerId:P,index:H,items:R},..._}),[P,_,H,R]),Z=u.useMemo(()=>R.slice(R.indexOf(T)),[R,T]),{rect:G,node:V,isOver:le,setNodeRef:re}=function(Ie){let{data:de,disabled:Oe=!1,id:Le,resizeObserverConfig:je}=Ie;const K=n1("Droppable"),{active:W,dispatch:te,over:oe,measureDroppableContainers:ue}=u.useContext(i1),ie=u.useRef({disabled:Oe}),pe=u.useRef(!1),fe=u.useRef(null),ye=u.useRef(null),{disabled:De,updateMeasurementsFor:Ve,timeout:Je}={...uB,...je},ot=Ec(Ve??Le),tt=Yu({callback:u.useCallback(()=>{pe.current?(ye.current!=null&&clearTimeout(ye.current),ye.current=setTimeout(()=>{ue(Array.isArray(ot.current)?ot.current:[ot.current]),ye.current=null},Je)):pe.current=!0},[Je]),disabled:De||!W}),Lt=u.useCallback((Jt,Qt)=>{tt&&(Qt&&(tt.unobserve(Qt),pe.current=!1),Jt&&tt.observe(Jt))},[tt]),[At,_t]=nu(Lt),Yt=Ec(de);return u.useEffect(()=>{tt&&At.current&&(tt.disconnect(),pe.current=!1,tt.observe(At.current))},[At,tt]),u.useEffect(()=>(te({type:or.RegisterDroppable,element:{id:Le,key:K,disabled:Oe,node:At,rect:fe,data:Yt}}),()=>te({type:or.UnregisterDroppable,key:K,id:Le})),[Le]),u.useEffect(()=>{Oe!==ie.current.disabled&&(te({type:or.SetDroppableDisabled,id:Le,key:K,disabled:Oe}),ie.current.disabled=Oe)},[Le,K,Oe,te]),{active:W,rect:fe,isOver:oe?.id===Le,node:At,over:oe,setNodeRef:_t}}({id:T,data:U,disabled:B.droppable,resizeObserverConfig:{updateMeasurementsFor:Z,...C}}),{active:ge,activatorEvent:Q,activeNodeRect:xe,attributes:be,setNodeRef:Fe,listeners:ee,isDragging:ae,over:we,setActivatorNodeRef:se,transform:J}=function(Ie){let{id:de,data:Oe,disabled:Le=!1,attributes:je}=Ie;const K=n1("Draggable"),{activators:W,activatorEvent:te,active:oe,activeNodeRect:ue,ariaDescribedById:ie,draggableNodes:pe,over:fe}=u.useContext(i1),{role:ye=Og,roleDescription:De="draggable",tabIndex:Ve=0}=je??{},Je=oe?.id===de,ot=u.useContext(Je?$2:dB),[tt,Lt]=nu(),[At,_t]=nu(),Yt=(Qt=W,rn=de,u.useMemo(()=>Qt.reduce((yn,dn)=>{let{eventName:kt,handler:xn}=dn;return yn[kt]=tn=>{xn(tn,rn)},yn},{}),[Qt,rn])),Jt=Ec(Oe);var Qt,rn;return Vi(()=>(pe.set(de,{id:de,key:K,node:tt,activatorNode:At,data:Jt}),()=>{const yn=pe.get(de);yn&&yn.key===K&&pe.delete(de)}),[pe,de]),{active:oe,activatorEvent:te,activeNodeRect:ue,attributes:u.useMemo(()=>({role:ye,tabIndex:Ve,"aria-disabled":Le,"aria-pressed":!(!Je||ye!==Og)||void 0,"aria-roledescription":De,"aria-describedby":ie.draggable}),[Le,ye,Ve,Je,De,ie.draggable]),isDragging:Je,listeners:Le?void 0:Yt,node:tt,over:fe,setNodeRef:Lt,setActivatorNodeRef:_t,transform:ot}}({id:T,data:U,attributes:{...MB,...k},disabled:B.draggable}),ce=function(){for(var Ie=arguments.length,de=new Array(Ie),Oe=0;Oe<Ie;Oe++)de[Oe]=arguments[Oe];return u.useMemo(()=>Le=>{de.forEach(je=>je(Le))},de)}(re,Fe),ne=!!ge,Pe=ne&&!A&&Ed(I)&&Ed(N),Ee=!F&&ae,it=Pe?(Ee&&Pe?J:null)??(D??E)({rects:O,activeNodeRect:xe,activeIndex:I,overIndex:N,index:H}):null,Ue=Ed(I)&&Ed(N)?L({id:T,items:R,activeIndex:I,overIndex:N}):H,ke=ge?.id,_e=u.useRef({activeId:ke,items:R,newIndex:Ue,containerId:P}),Xe=R!==_e.current.items,Be=M({active:ge,containerId:P,isDragging:ae,isSorting:ne,id:T,index:H,items:R,newIndex:_e.current.newIndex,previousItems:_e.current.items,previousContainerId:_e.current.containerId,transition:S,wasDragging:_e.current.activeId!=null}),ct=function(Ie){let{disabled:de,index:Oe,node:Le,rect:je}=Ie;const[K,W]=u.useState(null),te=u.useRef(Oe);return Vi(()=>{if(!de&&Oe!==te.current&&Le.current){const oe=je.current;if(oe){const ue=u0(Le.current,{ignoreTransform:!0}),ie={x:oe.left-ue.left,y:oe.top-ue.top,scaleX:oe.width/ue.width,scaleY:oe.height/ue.height};(ie.x||ie.y)&&W(ie)}}Oe!==te.current&&(te.current=Oe)},[de,Oe,Le,je]),u.useEffect(()=>{K&&W(null)},[K]),K}({disabled:!Be,index:H,node:V,rect:G});var et,he,Ye,Se;return u.useEffect(()=>{ne&&_e.current.newIndex!==Ue&&(_e.current.newIndex=Ue),P!==_e.current.containerId&&(_e.current.containerId=P),R!==_e.current.items&&(_e.current.items=R)},[ne,Ue,P,R]),u.useEffect(()=>{if(ke===_e.current.activeId)return;if(ke!=null&&_e.current.activeId==null)return void(_e.current.activeId=ke);const Ie=setTimeout(()=>{_e.current.activeId=ke},50);return()=>clearTimeout(Ie)},[ke]),{active:ge,activeIndex:I,attributes:be,data:U,rect:G,index:H,newIndex:Ue,items:R,isOver:le,isSorting:ne,isDragging:ae,listeners:ee,node:V,overIndex:N,over:we,setNodeRef:ce,setActivatorNodeRef:se,setDroppableNodeRef:re,setDraggableNodeRef:Fe,transform:ct??it,transition:ct||Xe&&_e.current.newIndex===H?EB:Ee&&!B2(Q)||!S||!ne&&!Be?void 0:Ul.Transition.toString({...S,property:PS})}}({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(OS,{ref:x,value:r,disabled:e,dragging:h,sorting:g,handle:o,renderItem:c,index:i,style:l({index:i,id:r,isDragging:h,isSorting:g,overIndex:y}),onRemove:a?()=>a(r):void 0,transform:v,transition:b,wrapperStyle:p({index:i,isDragging:h,id:r}),listeners:m,"data-index":i,"data-id":r,dragOverlay:!d&&h,...f})}const AB=new $.Color("rgb(33, 115, 70)"),LB="#eee",zB=e=>s.jsx(RB,{...e}),DS=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=eb,createScrollEndButton:f=tb,createScrollEdgeButton:h=LR,createTabButton:g=zB,createTabDivider:m,editLabelProps:y,disabled:x=!1,disableDrag:v=!1,background:b="white",activeColor:w=AB,borderColor:M=LB,borderWidth:k=1}=e,[j,_]=u.useState(i),[L,T]=u.useState(a),D=u.useCallback(se=>{const J=A.current?.[se]?.closest(".tab-item")??A.current?.[se];J&&U.current?.scrollTo({top:J.offsetTop,left:J.offsetLeft,behavior:"smooth"})},[]);u.useEffect(()=>{D(i)},[i]);const C=u.useCallback((se,J)=>{J!==j&&(_(J),l?.(J)),D(J)},[l,j]),S=u.useCallback((se,J)=>{d?.(se,J)},[d]),R=u.useRef(null),[P,I]=u.useState(-1),z=u.useCallback((se,J)=>{c?.(se,J)},[c]);u.useLayoutEffect(()=>{_(i)},[i]),u.useLayoutEffect(()=>{T(a)},[a]);const A=u.useRef([]),O=u.useRef(null);u.useImperativeHandle(t,()=>Object.assign({startEdit(se){A.current?.[se]?.startEdit()},cancel(se){A.current?.[se]?.cancel()}},O.current),[j,P]);const N=u.useCallback(({value:se,index:J,dragging:ce})=>{const{style:ne,maxLength:Pe,...Ee}=y||{},it=s.jsx(PF,{ref:Ue=>{A.current[J]=Ue},value:se,disabled:x,maxLength:Pe,style:{color:j===J&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...ne},styleHover:{},onSubmit:Ue=>(R.current=!1,I(-1),z(J,Ue)),onCancel:()=>{R.current=!1,I(-1)},onChange:Ue=>{R.current=!0,I(J)},...Ee});return g({onClick:Ue=>C(Ue,J),value:se,index:J,editing:P===J&&R.current,editable:!0,disabled:x,selectedIndex:j,background:b,activeColor:w,borderColor:M,borderWidth:k,dragging:ce,children:it})},[j,z,C,y,x,P,g]),[F,{width:E}]=Wl(),[B,{width:H}]=Wl(),U=u.useRef(null),[Z,G]=u.useState({left:0,top:0,width:0,height:0}),[V,le]=u.useState(null);u.useEffect(()=>{V!==null&&U.current&&U.current.scrollTo({left:V,behavior:"smooth"})},[V]);const re=u.useCallback((se,J=!1)=>{if(!U.current)return 0;let ce=U.current.firstChild.getBoundingClientRect(),ne=U.current.firstChild.firstChild.children,Pe=0;return Pe=J?0:b4.getScrollTo(se,ce.left,ne,!0,Math.max(0,se-200)),le(Pe),Math.max(0,Pe)},[]),ge=u.useCallback((se,J=!1)=>{if(!U.current)return 0;let ce=U.current.firstChild.getBoundingClientRect(),ne=U.current.firstChild.firstChild.children,Pe=0;const Ee=Math.ceil(H-E);return Pe=J?Ee:b4.getScrollTo(se,ce.left,ne,!1,Math.max(0,se+200)),le(Pe),Math.min(Ee,Pe)},[H,E]),Q=u.useRef(null),xe=u.useRef(null),be=u.useCallback(()=>{xe.current&&(clearTimeout(xe.current),xe.current=null,Q.current=null)},[]),Fe=u.useCallback((se,J,ce=260)=>{Q.current=se,xe.current=setTimeout(()=>{const ne=J?re(Q.current||se):ge(Q.current||se);ne!==Q.current?Fe(ne,J,120):be()},ce)},[re,ge,be]);u.useEffect(()=>()=>be(),[be]);const ee=u.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(Z.left)<=0||Math.floor(H-E)===0,orientation:yr.Horizontal,onMouseUp:be,onMouseLeave:be,onMouseDown:()=>Fe(U.current.scrollLeft,!0),onClick:se=>re(Math.min(U.current.scrollLeft,V??Number.MAX_SAFE_INTEGER),se.ctrlKey)}),[Z,V,H,E]),ae=u.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(H-E)<=Math.ceil(Z.left),orientation:yr.Horizontal,onMouseUp:be,onMouseLeave:be,onMouseDown:()=>Fe(U.current.scrollLeft,!1),onClick:se=>ge(Math.max(U.current.scrollLeft,V??0),se.ctrlKey)}),[Z,V,H,E]),we=u.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,h?.(ee)]}),[ee,ae,p,f,n,h]);return s.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:Zr("_TabStrip_3x0dp_1",r),ref:O,children:[s.jsx("div",{style:{borderTop:`solid ${M} ${k}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:we}),s.jsx("div",{className:"Tabs",ref:F,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:se=>{G({left:se.target.scrollLeft,top:se.target.scrollTop,width:se.target.scrollWidth,height:se.target.scrollHeight})},children:s.jsx(OB,{isDisabled:se=>x||v,items:L,strategy:vB,modifiers:[jB],ref:B,renderItem:N,renderDivider:m,onMove:S,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:h(ae)})]})}));DS.displayName="TabStrip";const FB=u.createContext(null),wf=()=>{const e=u.useContext(FB),[t]=u.useState(()=>new $.ThemeCollection);return u.useMemo(()=>e||t,[e])},BB=u.lazy(()=>Promise.resolve().then(()=>require("./DzCXPcqV1oKbCcLO.cjs"))),NB={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"},zg=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=Sf(a,o.getOffsetAt({lineNumber:y,column:1}),"function");if(!x||VB(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,f=!1;!d&&!p.startsWith(`
|
|
213
|
-
`)&&c.lineNumber>1&&(p=`
|
|
214
|
-
`+p,f=!0);let h=!1;o.getLineCount()>1&&(p.endsWith(`
|
|
215
|
-
|
|
216
|
-
`)||(p+=`
|
|
217
|
-
|
|
218
|
-
`,h=!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,f&&m.startLineNumber++,h&&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 $B(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 Wh(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:$B(n,o),lineNumber:a.lineNumber})}if(o.childItems)for(const i of o.childItems)Wh(e,t,n,i,r);return r}function Sf(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=Sf(l,t,n,o);if(c)return c}}return null}}function VB(e){return e.kind==="comment"}const HB=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,...f}=e,h=u.useRef(null),g=Te(a,[a]),m=u.useRef(!1),y=u.useMemo(()=>({contains(O){if(!h.current)return;const N=h.current.editor;return N&&N.getDomNode()?.contains(O)},focus(){if(!h.current)return;const O=h.current.editor;return O&&O.getDomNode()?.focus()}}),[]),x=u.useMemo(()=>[new We("help",y,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),v=u.useMemo(()=>{let O=null;const N=()=>y;return O=r?r.createChildGroup(N,"scriptEditor",!1):new a0(N,"scriptEditor"),O.addCommands(x,!0),O},[r,x]),b=_o(v,["executeSelectedScript"])[0],w=b?.context(),M=Te(O=>{b?.execute(O)},[b]),k=u.useRef(""),[j,_]=u.useState(!1),L=Te(async()=>{if(!h.current)return null;const O=h.current,N=O.editor;if(!N)return null;const F=O.monaco,E=await(async(B,H,U="export")=>{const Z=B.getModel();if(!Z)return null;const G=await H.languages.typescript.getTypeScriptWorker(),V=await G(Z.uri),le=await V.getNavigationTree(Z.uri.toString());let re=null,ge=B.getSelection();const Q=ge.startLineNumber===ge.endLineNumber&&ge.startColumn===ge.endColumn?Z.getLineCount():Math.min(ge.endLineNumber,Z.getLineCount());for(let xe=ge.startLineNumber;!re&&xe<=Q;xe++){const be=Sf(le,Z.getOffsetAt({lineNumber:xe,column:1}),"function",U);be&&(re=be.text)}return re})(N,F);return p?.({message:(E??"").toUpperCase()}),E?{source:N.getValue(),name:E}:null},[p]),T=Te(async(O,N,F)=>{const E=await w.getScripts().createModule({source:F?.getValue(),declarationsOnly:!0}),B=E?E.getFunctions().search():Gt.EmptyArray;E&&(async function(H,U){const Z=[];for(let G=1;G<H.getLineCount()+1;G++){const V={startLineNumber:G,startColumn:1,endLineNumber:G,endColumn:H.getLineLength(G)+1},le=H.getValueInRange(V).indexOf("modelt");le!==-1&&Z.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:U.MarkerSeverity.Hint,startLineNumber:V.startLineNumber,startColumn:le+1,endLineNumber:V.startLineNumber,endColumn:le+5})}U.editor.setModelMarkers(H,"owner",Z)}(O,N),async function(H,U,Z,G){const V=await U.languages.typescript.getTypeScriptWorker(),le=await V(H.uri),re=await le.getNavigationTree(H.uri.toString()),ge=Wh(H,U,G,re).map(Q=>{let xe=null,be=null;return Q.type==="formula"?(xe="formula.margin-icon",be="Formula"):Q.type==="macro"?(xe="macro.margin-icon",be="Macro"):Q.type==="autoRun"&&(xe="autorun.margin-icon",be="Auto Run"),{range:new U.Range(Q.lineNumber,1,Q.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:xe,glyphMarginHoverMessage:be,stickiness:U.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});R.current&&R.current.clear(),R.current=Z.createDecorationsCollection(ge)}(O,N,F,B))},[w]),D=Te(Gt.debounce(T,580),[]),C=Te(async(O=void 0)=>{if(!h.current||!w)return;const N=h.current.editor.getPosition(),F={cursor:N?N.toString():""};O!==void 0&&(F.message=O),p?.(F);const E=L();w.setSelectedFunction(E)},[w,p]);u.useEffect(()=>{if(!w)return;const O={insertSnippet:F=>{h.current?.editor&&(j?zg(h.current.editor,h.current.monaco,F):k.current=F)}};w.setEditor(O),w.setSelectedFunction(L());const N=w.addContainerListener({onBeforeSave:async()=>{if(!h.current?.editor||!w)return;const F=h.current.editor,E=w?.getScripts().getModules().getByName("scripting"),B=E?.getSource(),H=F.getValue();if((B?.length??0)===H.length&&B===H)return;await w.saveSource(F.getValue());const U=(B?.length??0)!==H.length||B!==H;p?.({dirty:U})},onReadonlyChange(){},onScriptChange:async()=>{if(!h.current?.editor||!w)return;const F=h.current.editor,E=w.getScripts().getModules().search()[0]?.getSource()??"";F.setValue(E)}});return()=>{N(),w.setSelectedFunction(null),w.setEditor(null)}},[w,j]),u.useEffect(()=>()=>{if(!h.current?.editor)return;const O=h.current.editor;w?.saveSource(O.getValue())},[]);const S=Te(O=>{const N=h.current;if(!N)return!1;const F=N.editor;return!!F&&(F.focus(),!0)},[]),R=u.useRef(null),P=Te((O,N)=>{h.current={monaco:N,editor:O},_(!0),C("Loading Types");const F=w.getScripts().getModules().search()[0]?.getSource()??"";O.setValue(F),Promise.resolve().then(()=>require("./DCd2rPNFkSHDaRcM.cjs")).then(H=>H.c).then(H=>{C(""),H.AutoTypings.create(O,{shareCache:!0,monaco:N,onError:U=>{U==="Not implemented yet"&&(U="Compile Errors"),console.warn("Error compiling types",U)}}).then(async U=>{const Z=O.getModel();D(Z,N,O)})}),O.addCommand("executeScript",function(H,...U){U?.[0]&&M({functionName:U?.[0]})},""),O.addAction({id:"executeScript",label:"Execute",keybindings:[N.KeyCode.F8],run:async H=>{const U=L();w.setSelectedFunction(U);const Z=await U;M(Z)}}),O.addAction({id:"saveScript",label:"Save Script",keybindings:[N.KeyMod.CtrlCmd|N.KeyCode.KeyS],run:H=>{w?.saveSource(O.getValue()).then(()=>{const U=w?.getScripts().getModules().getByName("scripting"),Z=U?.getSource(),G=O.getValue(),V=(Z?.length??0)!==G.length||Z!==G;p?.({dirty:V})})}}),O.onMouseDown(async H=>{if(H.target.type===N.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const U=H.target.position.lineNumber,Z=await N.languages.typescript.getTypeScriptWorker(),G=await Z(E.uri),V=await G.getNavigationTree(E.uri.toString()),le=O?.getValue(),re=(await w?.saveSource(le)).getFunctions().search(),ge=Wh(E,N,re,V).find(Q=>Q.lineNumber===U);if(ge){const Q=H.event.browserEvent.button;Q===0?ge.type==="macro"||ge.type==="autoRun"?M({functionName:ge.name}):ge.type==="formula"&&w.quickInsertFunction?.(ge.name):Q===2&&(console.log("Context menu for function:",ge.name),H.event.browserEvent.preventDefault())}}}),O.onDidChangeModelContent(()=>{const H=O.getModel();D(H,N,O)});const E=O.getModel();var B;(B=N).languages.registerInlayHintsProvider("typescript",{provideInlayHints(H,U,Z){const G=[];for(let V=1;V<H.getLineCount()+1;V++){const le={startLineNumber:V,startColumn:1,endLineNumber:V,endColumn:H.getLineLength(V)+1},re="hint",ge=H.getValueInRange(le).indexOf("hint");ge!==-1&&G.push({kind:B.languages.InlayHintKind.Type,position:{lineNumber:le.startLineNumber,column:ge+re.length+1},label:"[hint]"})}return{hints:G,dispose:()=>{}}}}),E.onDidChangeContent(H=>{const U=w?.getScripts().getModules().getByName("scripting"),Z=U?.getSource(),G=O.getValue(),V=(Z?.length??0)!==G.length||Z!==G;p?.({dirty:V})}),O.onDidChangeCursorPosition(H=>{C()})},[w,p]),I=u.useMemo(()=>j?null:c||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[j,c]),z=u.useMemo(()=>{const O=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(BB,{theme:l?"extended-dark":"extended",options:{...NB,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:O,onValidate:N=>{let F=!1;for(let E=0;!F&&E<N?.length;E++)N[E].severity===8&&(F=!0)},beforeMount:N=>{N.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),N.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),N.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),N.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let F=!1;try{const B=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts")).text())(),H=N.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),U=N.editor.createModel(B,"typescript",H);N.editor.setModelMarkers(U,"default",[]),F=!0}catch(B){console.warn("cant load types",B)}N.languages.registerLinkProvider("*",{provideLinks:(B,H)=>{const U=[],Z={links:U},G=B.getLinesContent();for(let V=1;V<=G.length;V++){const le=G[V-1],re=N.editor.tokenize(le,"typescript");for(let ge=0;ge<re[0].length;ge++){const Q=re[0]?.[ge];if(Q&&Q.type.startsWith("string")){let xe=Q.offset,be=re[0]?.[ge+1]?.offset??le.length,Fe=new N.Range(V,xe+1,V,be+1),ee=B.getValueInRange(Fe);const ae=ee[0];ae!=="`"&&ae!=="'"&&ae!=='"'||(xe++,ee=ee.substring(1));const we=ee[ee.length-1];we!=="`"&&we!=="'"&&we!=='"'||(xe++,ee=ee.substring(0,ee.length-1));try{w.getRanges(ee)&&U.push({range:{endColumn:be,endLineNumber:V,startColumn:xe,startLineNumber:V},tooltip:`Goto range '${ee}'`,url:`/range/${ee}`})}catch(se){console.warn(se)}}}}return Z}}),N.editor.registerLinkOpener({open(B){if(B?.path?.startsWith("/range/")){try{w.getRanges(B.path.substring(7))?.select()}catch(H){console.warn("invalid range",H)}return!0}return!1}});const E=N.languages.typescript.typescriptDefaults.getCompilerOptions();N.languages.typescript.typescriptDefaults.setCompilerOptions({...E,target:N.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:N.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),k.current&&(await zg(h.current.editor,h.current.monaco,k.current),k.current=null),m.current&&requestAnimationFrame(async()=>{m.current&&N.editor.focus()}),N.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),_(!0)})()},onMount:P})}),I]})},[w,v,i,I,l]),A=ir(t,()=>({isScriptEditorElement:()=>!0,focus:O=>{S(O)},close:()=>{g?.()},getEditor:()=>w?.getEditor()}),[w]);return u.useEffect(()=>(d&&requestAnimationFrame(()=>{S()}),()=>{h.current?.editor&&requestAnimationFrame(()=>{A.current?.contains(document.activeElement)&&S()})}),[]),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:A,...f,children:z})})),AS={Preset:"preset",Custom:"custom"},Os={Start:"start",End:"end"},s5={},WB=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(s5[r])return s5[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 f=p.getContext("2d");return f?(f.fillStyle=a,f.fillRect(0,0,p.width,p.height),f.fillStyle=l,f.fillRect(0,0,c,c),f.translate(c,c),f.fillRect(0,0,c,c),p.toDataURL()):null})(e,t,n,o);return s5[r]=i,i},UB={},LS=u.memo(e=>{const{className:t,style:n=jn.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:a,boxShadow:l,renderers:c=UB,children:d,...p}=e,f=d,h=u.useMemo(()=>Object.assign({borderRadius:a,boxShadow:l,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${WB(o,r,i,c?.canvas)}) center left`},n),[o,r,i,c]);return u.isValidElement(d)?u.cloneElement(d,{...f.props}):s.jsx("div",{style:h,...p})}),qB=u.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:a,onMouseLeave:l,onFocus:c,style:d=jn.EmptyCssProperties,children:p,alphaWhite:f,alphaGrey:h,darkMode:g,alphaCheckSize:m=7,...y}=e;if(!t)throw new Error("a selectedColor is required");const x=u.useCallback(j=>{r?.(j),j.isDefaultPrevented()||(j.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),v=u.useCallback(j=>{a?.(j),j.isDefaultPrevented()||o?.(t.toRGBA())},[o,a,t]),b=u.useCallback(j=>{l?.(j),j.isDefaultPrevented()},[o,l]),w=u.useCallback(j=>{c?.(j),j.isDefaultPrevented()||o?.(t.toRGBA())},[o,c,t]),M=u.useCallback(j=>{i?.(j),j.isDefaultPrevented()||j.keyCode===on.Enter&&n?.(t.toRGBA())},[n,i,t]),k=u.useMemo(()=>t.toRGBA().alpha===1?null:s.jsx(LS,{size:m,white:f,grey:h,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[f,h,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:M,onMouseOver:v,onMouseLeave:b,onFocus:w,children:[k,s.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(g)},children:p})]})}),V2=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:f=!1,...h}=e,g=new $.Color({val:r.definition.val,adjs:r.definition.adjs},k=>t(k)),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]),M=u.useCallback(k=>{a?.(k?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"},...h,children:s.jsxs(qB,{selectedColor:g,title:null,onSelectColor:w,onPreviewColor:M,alphaCheckSize:d?9:void 0,darkMode:f,...l,children:[s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:b.toRGBA(f).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(f).toString(),borderRadius:"50%",opacity:x?"1":"0"}})]})})})}),Td=u.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:a,onPreviewColorDef:l,style:c=jn.EmptyCssProperties,compareRGB:d=!1,darkMode:p,swatchProps:f,...h}=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 M=[],k=g[w];for(let _=0;_<k.length;_++){let L=k[_];M.push(s.jsx(V2,{schemeColorLookup:n,colorDef:L,selectedColor:r,previewColor:i,onSelectColorDef:m,onPreviewColorDef:y,swatchProps:f,compareRGB:d,darkMode:p},w+" "+_))}let j=s.jsx(Ae,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:_=>_.shadows[2],borderRadius:"2px",overflow:"hidden"},children:M},""+w);b.push(j)}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"},...h,children:x})]})}),Bi=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),Ho=(e,t,n,o,r,i)=>{const a=Bi(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)},KB=u.lazy(()=>Promise.resolve().then(()=>require("./EoaX6dPoS-Mb-ITO.cjs"))),zS=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:f,onDone:h,onEyeDropStart:g,onEyeDropStop:m,onPreviewColor:y,onPreviewColorImmediate:x,onSelectColor:v,autoColor:b,autoColorLabel:w="Automatic",autoColorPosition:M=Os.Start,compareRGB:k=!1,darkMode:j=!1,..._}=e,L=o||n,T=Te(y,[y]),D=Te(x,[x]),C=Te(v,[v]),S=Te(g,[g]),R=Te(m,[m]),[P,I]=u.useState(!1),z=Ki(),A=u.useMemo(()=>i||$.Color.getDefaultSchemeLookup(),[i]),O=u.useMemo(()=>{const ee=new Map,ae=new Map,we=[];Ho("Primary Background","bg1",A,we,ee,ae),Ho("Primary Text","tx1",A,we,ee,ae),Ho("Secondary Background","bg2",A,we,ee,ae),Ho("Secondary Text","tx2",A,we,ee,ae),Ho("Accent 1","accent1",A,we,ee,ae),Ho("Accent 2","accent2",A,we,ee,ae),Ho("Accent 3","accent3",A,we,ee,ae),Ho("Accent 4","accent4",A,we,ee,ae),Ho("Accent 5","accent5",A,we,ee,ae),Ho("Accent 6","accent6",A,we,ee,ae);const se=$.ITheme.buildPalette(we,A,ee,ae),J=[];if(Ho("Dark Red","C00000",A,J,ee,ae),Ho("Red","FF0000",A,J,ee,ae),Ho("Orange","FFC000",A,J,ee,ae),Ho("Yellow","FFFF00",A,J,ee,ae),Ho("Light Green","92D050",A,J,ee,ae),Ho("Green","00B050",A,J,ee,ae),Ho("Light Blue","00B0F0",A,J,ee,ae),Ho("Blue","0070C0",A,J,ee,ae),Ho("Dark Blue","002060",A,J,ee,ae),a?Ho("Purple Is A Fruit","7030A0",A,J,ee,ae):Ho("Transparent","00000000",A,J,ee,ae),b){const Ee=b.toString();ee.set(Ee,b)}const ce=new Map,ne=typeof r=="function"?r():r,Pe=[];for(let Ee=0;ne&&Ee<ne.length;Ee++){const it=ne[Ee].toString();ce.set(it,ne[Ee]),Pe.push({description:"Recent "+(Ee+1),definition:{val:ne[Ee].toString()}})}return{primaryColors:we,modifiedPresets:se,standardColors:J,recentColorsLimited:Pe,mapAllPresets:ee,mapAllPresetsRGB:ae,mapRecent:ce}},[A,r,a,b]);u.useEffect(()=>{f?.()},[]);const[N,F]=u.useState(!1),E=u.useCallback(()=>{F(ee=>!ee)},[]);u.useEffect(()=>{if(c)F(c===AS.Custom);else if(n){let ee=n.toString(),ae=O.mapAllPresets.get(ee);ae||(ee=n.toRGBA().toString(),ae=O.mapAllPresetsRGB.get(ee));const we=O.mapRecent.get(ee);F(!ae&&!we)}},[n,c]);const B=u.useCallback($.CommonUtils.debounce(ee=>{T?.(ee)},l),[T,l]),[H,U]=u.useState();u.useEffect(()=>{U(o||n)},[o,n]);const Z=Te(ee=>{D&&(D(ee),B(ee))},[D]),G=Te(ee=>{Z(ee?new $.Color({val:ee.definition.val,adjs:ee.definition.adjs},A):null)},[A]),V=u.useCallback(ee=>{ee.ctrlKey&&F(!0)},[]),le=Te(ee=>{let ae=!1;if(ee){const we=ee.toString();ae=!O.mapAllPresets.has(we)}C?.(ee,ae)},[C,O]),re=Te(ee=>{const ae=ee?new $.Color({val:ee.definition.val,adjs:ee.definition.adjs},A):null;Promise.resolve(h?.()).then(()=>{le(ae)})},[A,h]),ge=Te(ee=>{Z(ee?new $.Color(ee,A):null)},[A]),Q=u.useMemo(()=>window.EyeDropper===void 0?s.jsx(s.Fragment,{}):s.jsx(Tr,{"aria-label":"eye dropper",size:"small",sx:{color:ee=>ee.palette.text.icon??ee.palette.action.active},onClick:async()=>{I(!0),S?.(),await new EyeDropper().open().then(ee=>{I(!1),R?.();let ae=new $.Color(ee.sRGBHex),we=ae.toString(),se=O.mapAllPresets.get(we);if(se||(we=ae.toRGBA().toString(),se=O.mapAllPresetsRGB.get(we)),!se){const J=ae.toRGBA(),ce=3;let ne=255;O.mapAllPresetsRGB.forEach((Pe,Ee)=>{const it=Pe.toRGBA(),Ue=Math.abs(it.red-J.red)+Math.abs(it.blue-J.blue)+Math.abs(it.green-J.green);Ue<ce&&Ue<ne&&(se=Pe)})}F(!se),Z(se||ae)}).catch(ee=>{I(!1),ee?.name!=="AbortError"&&console.error(ee)})},children:s.jsx(iR,{})}),[O,j]),xe=u.useMemo(()=>{if(!N)return;const ee={opacity:N?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:ee,children:s.jsx(Gl,{})}),children:s.jsx(KB,{style:ee,selectedColor:L?L.toRGBA().toString():"transparent",onColorChange:ge,disableAlpha:a})})},[N,L]),be=u.useMemo(()=>({onClick:V,alphaGrey:z.palette.text.icon??z.palette.action.active}),[V,z]),Fe=u.useMemo(()=>{if(!b)return null;const ee={description:w,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return s.jsx(s.Fragment,{children:s.jsxs(v1,{sx:{display:"flex",color:ae=>ae.palette.text.secondary},onMouseOver:()=>{G(null)},onClick:()=>{re(null)},children:[s.jsx(Ae,{sx:{flex:"none",boxShadow:ae=>ae.shadows[2],borderRadius:ae=>ae.spacing(.5),overflow:"hidden"},children:s.jsx(V2,{schemeColorLookup:A,colorDef:ee,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:d,isLarge:!0,darkMode:j,compareRGB:k,swatchProps:be})}),s.jsx(Tn,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:w})]})})},[b,w,A,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:N?"0":1},children:[Fe&&M===Os.Start?s.jsxs(s.Fragment,{children:[Fe,s.jsx(wa,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,s.jsx(Td,{title:"Theme Colors",schemeColorLookup:A,colorDefs:O.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:be,onPreviewColorDef:G,onSelectColorDef:re,compareRGB:k,darkMode:j}),s.jsx(Td,{schemeColorLookup:A,colorDefs:O.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:be,onPreviewColorDef:G,onSelectColorDef:re,compareRGB:k,darkMode:j}),s.jsx(wa,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Td,{title:"Standard Colors",schemeColorLookup:A,colorDefs:O.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:be,onPreviewColorDef:G,onSelectColorDef:re,compareRGB:k,darkMode:j}),s.jsxs("div",{style:{opacity:O.recentColorsLimited.length===0?"0":void 0,display:O.recentColorsLimited.length===0?"none":void 0},children:[s.jsx(wa,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Td,{title:"Recent Colors",schemeColorLookup:A,colorDefs:O.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:be,onPreviewColorDef:G,onSelectColorDef:re,compareRGB:k,darkMode:j})]}),Fe&&M===Os.End?s.jsxs(s.Fragment,{children:[s.jsx(wa,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),Fe,s.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),xe]}),s.jsx(wa,{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:[Q,s.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),s.jsx(zc,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{E()},children:s.jsx("div",N?{children:"Preset"}:{children:"Custom"})}),s.jsx(zc,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(h?.()).then(()=>{le(H)})},children:"Done"})]})]})})),GB=s.jsx(e=>{const{sx:t,...n}=e;return s.jsxs(Qe,{sx:{overflow:"visible","& .activeColor":{filter:C1},...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"})]})},{}),Cf=u.memo(u.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=GB,tooltip:i,label:a,onPreviewColor:l,onPreviewColorImmediate:c,onSelectColor:d,variant:p=Ri.Toolbar,panelProps:f,shouldCloseFloatAll:h=!0,compareRGB:g=!1,darkMode:m=!1,...y}=e,x=Te(l,[l]),v=Te(c,[c]),b=Te(d,[d]),[w,M]=u.useState(()=>{}),k=o||w||n||f?.autoColor,j=u.useRef(!1),_=u.useCallback(()=>{},[]),L=Te(()=>{M(n)},[n]),T=Te(O=>{j.current||(M(O),x?.(O))},[x]),D=Te(O=>{j.current||(M(O),v?.(O))},[v]),C=Te((O,N)=>{j.current||(M(void 0),b?.(O,N))},[b]),S=u.useMemo(()=>s.jsx(Ae,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${k?.toCSS(m)??"transparent"}`,"& .activeColor":{fill:`${k?.toCSS(m)??"transparent"}`},"& .style_grey":{fill:O=>O.palette.text.icon??O.palette.action.active}},children:typeof r=="function"?r():r}),[k,r,m]),R=Te(O=>{b?.(o,!1)},[b,o]),[P,I]=u.useState(!1),z=u.useCallback(O=>{const{closeFloat:N,closeFloatAll:F}=O;return s.jsx(zS,{...f,selectedColor:n,previewColor:w,onDone:h?F:N,onKeyDown:E=>{E.which===on.Enter&&(h?F():N())},onPreviewColorImmediate:D,onPreviewColor:T,onSelectColor:C,onEyeDropStart:()=>I(!0),onEyeDropStop:()=>I(!1),compareRGB:g,darkMode:m})},[n,w,h,k,f?.autoColor,m]),A={onQuickClick:o?R:void 0,createPopupPanel:z,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:L,onPopupClose:_,tooltip:i||a||"Color",label:a,icon:S,...y};return p===Ri.Toolbar?s.jsx(qi,{ref:t,...A}):s.jsx(k1,{ref:t,...A})})),ru=82,Uh=e=>{const{styleColor:t,length:n=ru,width:o=1,dashArray:r=null,sx:i,isDouble:a=!1,isAngled:l=!1,darkMode:c=!1,...d}=e;return s.jsx(Qe,{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(Jw,{length:n,width:o,dashArray:r,isDouble:a,isAngled:l,className:"activeColor"})})},FS=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:f,...h}=e,g=Te(c,[]),m=u.useCallback(b=>{const{popupContainer:w,floatReference:M,closeFloat:k,...j}=b,_=[],L=$.IBorder.BuiltInDefinitionsArray;for(let T=0;T<L.length;T++){const D=L[T];if(D.description==="None"&&!d)continue;const C=s.jsx(Uh,{styleColor:a,length:ru,width:D.width,darkMode:p,dashArray:D.pattern,isDouble:D.description.toLowerCase().includes("double"),isAngled:D.description.toLowerCase().includes("slant")});let S=null;S=o?s.jsxs(s.Fragment,{children:[s.jsx(Ae,{sx:{marginRight:"6px"},children:D.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]})]}):D.description==="None"?"None":C,_.push(s.jsx(Gr,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:C7(4)},paddingLeft:"16px",background:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},tooltipProps:{description:o?"":D.description},icon:null,disabled:r,onMouseDown:R=>R.preventDefault(),onMouseUp:()=>{k(),g(D.style)},onKeyDown:R=>{R.which===on.Enter&&k()},selected:D.style===l,parentFloat:M,children:S},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:`${ru}px`},children:"None"}):s.jsx(Uh,{styleColor:a,length:ru,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:C7()}},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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,...f},createPopupPanel:m,...h};return n===Ri.Toolbar?s.jsx(qi,{...v}):s.jsx(k1,{...v})})),BS=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:f,...h}=e,g=Te(c,[c]),m=Te(d,[d]),[y,x]=u.useState(),[v,b]=u.useState(),w=y??r,M=v??n,k=p||{bottom:{style:r,color:n?.toString()}},j=Te(S=>{const R={},P=S?Object.keys(S):[];let I=!1;for(let H=0;H<P.length;H++)S[P[H]]?.style&&(R[P[H]]={style:S[P[H]].style,color:S[P[H]].color},I||R[P[H]].style===$.IBorder.StrokeStyle.None||(I=!0));P.length<6&&(I=!0);const z=I?R.left:null,A=I?R.top:null,O=I?R.right:null,N=I?R.bottom:null,F=I?R.vertical:null,E=I?R.horizontal:null;let B="";return A||z||(B+="M 3,5 H 5 V 3 H 3 "),A||(B+="M 7,5 H 9 V 3 H 7 "),A||F||(B+="M 11,5 h 2 V 3 h -2 "),A||(B+="M 15,5 h 2 V 3 h -2 "),A||O||(B+="M 19,5 h 2 V 3 h -2 "),z||(B+="M 3,9 H 5 V 7 H 3 "),F||(B+="M 11,9 h 2 V 7 h -2 "),O||(B+="M 19,9 h 2 V 7 h -2 "),E||z||(B+="M 3,13 H 5 V 11 H 3 "),E||(B+="M 7,13 H 9 V 11 H 7 "),E||F||(B+="M 11,13 h 2 v -2 h -2 "),E||O||(B+="M 19,13 h 2 v -2 h -2 "),E||(B+="M 15,13 h 2 v -2 h -2 "),z||(B+="M 3,17 H 5 V 15 H 3 "),F||(B+="M 11,17 h 2 v -2 h -2 "),O||(B+="M 19,17 h 2 v -2 h -2 "),N||z||(B+="M 3,21 H 5 V 19 H 3 "),N||(B+="M 7,21 H 9 V 19 H 7 "),N||F||(B+="M 11,21 h 2 v -2 h -2 "),N||(B+="M 15,21 h 2 v -2 h -2 "),N||O||(B+="M 19,21 h 2 v -2 h -2 "),s.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[s.jsx(Qe,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:s.jsx("path",{d:B})}),s.jsx(Ae,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:C1}},children:s.jsx(ff,{getBorderAt:(H,U)=>{if(!f||P.length===0)return null;const Z=H.rowIndex,G=H.colIndex,V={};return Z===0?(V.top=R.top,V.bottom=R.horizontal):(V.top=R.horizontal,V.bottom=R.bottom),G===0?(V.left=R.left,V.right=R.vertical):(V.left=R.vertical,V.right=R.right),f?.(V)},width:18,height:18,darkMode:a,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[M,w,a]),_=u.useCallback((S,R,P)=>{let I=null;if(S&&S.length>0){let z=null;(R||P)&&(z={style:P,color:R?.toString()??null}),I={};for(let A=0;A<S.length;A++)I[S[A]]=z}return I},[]),L=u.useCallback(S=>{g?.(S)},[]),T=u.useCallback(S=>{m?.(S)},[]),D=u.useCallback(S=>{const{closeFloatAll:R,floatReference:P}=S,I=(O,N,F="bottom",E=!1)=>{const B=_(O,M??null,E?$.IBorder.StrokeStyle.None:w??null),H=E?_([],M??null,w??null):B;return s.jsx(ii,{icon:j(H),sx:{background:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},tooltipProps:{label:N,simple:!0,placement:F},onClick:()=>{R(),T(B),L(B)}})},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)]})]}),A=s.jsx(s.Fragment,{children:s.jsxs(Ae,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[s.jsx(Cf,{variant:Ri.Toolbar,icon:s.jsx($3,{}),selectedColor:w===$.IBorder.StrokeStyle.None?new $.Color("transparent"):M,onPreviewColor:O=>{b(O)},onSelectColor:(O,N)=>{b(O)},darkMode:a,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||w===$.IBorder.StrokeStyle.None,parentFloat:P,shouldCloseFloatAll:!1}),s.jsx(FS,{selectedStyle:w,onSelectStyle:x,styleColor:M,darkMode:a,variant:Ri.Toolbar,parentFloat:P})]})});return s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:O=>O.stopPropagation(),children:[l?A:z,s.jsx(Ft,{orientation:"horizontal"}),l?z:A]})},[w,M,n,o,a]),C=u.useMemo(()=>j(k),[k,a]);return s.jsx(qi,{ref:t,createPopupPanel:D,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:S},R)=>s.jsx(br,{label:"Borders",description:"Set the borders.",disabled:R,children:S}),onQuickClick:()=>{g?.(k)},quickButtonProps:{sx:{}},disabled:i,icon:C,...h})})),NS=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=Zt.Toolbar,disabled:a=!1,autoColor:l,autoStrokeStyle:c,schemeLookup:d,createTemporaryBorder:p,selectedBorder:f,onSelectBorder:h,darkMode:g,icon:m,label:y,...x}=e,v=_o(n,["formatBorder"]),b=o??v[0],w=b?.context()??null,M=w?.autoColor??l,k=w?.autoStyle??c,j=f??w?.quickBorder,_=g??w?.darkMode,L=p??w?.createTemporaryBorder,T=d??w?.schemeLookup,D=Te(S=>{w?.onBorderSelect&&w.onBorderSelect(S),h?.(S),b?.execute(S,r)},[b,h,r]),C=u.useCallback((S,R)=>{const{children:P,title:I,...z}=S;let A=S.children;return(b?.disabled()||a)&&(A=s.jsx("div",{children:A})),s.jsx(l0,{command:b,placement:i===Zt.Toolbar?"bottom-start":"right-start",disabled:R,...z,children:A})},[b,a]);return s.jsx(BS,{ref:t,autoColor:M,darkMode:_,autoStrokeStyle:k,createTemporaryBorder:L,schemeLookup:T,selectedBorder:j,onSelectBorder:D,createTooltip:C,disabled:a||!b||b.disabled(),...x})})),$S=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:Zt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("mergeToggle"),icon:ze(s.jsx(k7,{}))}),s.jsx(Ge,{...p,command:d.getCommand("mergeHorizontal"),icon:ze(s.jsx(TP,{}))}),s.jsx(Ge,{...p,command:d.getCommand("mergeVertical"),icon:ze(s.jsx(_P,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...p,command:d.getCommand("unmerge"),icon:ze(s.jsx(Ub,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:l,icon:ze(s.jsx(k7,{})),...a})})),VS=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:Zt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("freezeToggle"),icon:ze(s.jsx(PP,{}))}),s.jsx(Ge,{...p,command:d.getCommand("freezeToggleHorizontal"),icon:ze(s.jsx(RP,{}))}),s.jsx(Ge,{...p,command:d.getCommand("freezeToggleVertical"),icon:ze(s.jsx(IP,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...p,command:d.getCommand("unfreeze"),icon:s.jsx(Ub,{})})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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(jP,{}),...a})})),HS=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:Zt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("find"),icon:ze(s.jsx(q7,{}))}),s.jsx(Ge,{...p,command:d.getCommand("findReplace"),icon:ze(s.jsx(av,{}))}),s.jsx(Ge,{...p,command:d.getCommand("goto"),icon:ze(s.jsx(JO,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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(q7,{})),...a})})),WS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:a=Vz.DefaultFontSizes,disabled:l=!1,parentFloat:c,icon:d,label:p,sx:f,...h}=e;rl(n);const g=()=>n?.state()?.toString()||"11",[m,y]=u.useState(g),x=Te(()=>{const L=parseFloat(m);isNaN(L)?y(g()):parseFloat(g())!==L&&n.execute(L,o)},[g,n,m,o]);u.useEffect(()=>{y(g())},[n?.state()]);const v=u.useMemo(()=>{if(!o)return null;const L={...o};return delete L.beforeExecute,L},[o]),b=_o(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),w=u.useMemo(()=>b?s.jsxs(Ae,{className:Eo("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:L=>L.stopPropagation(),children:[s.jsx(Ge,{command:b[0],commandHook:v,icon:ze(s.jsx(LO,{}))}),s.jsx(Ge,{command:b[1],icon:ze(s.jsx(zO,{}))})]}):null,[b]),M=Ki(),k=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("12.3",Math.round(M.typography.fontSize),M.typography.fontFamily).width}px`,[M]),j=u.useCallback(L=>{const{onMouseDown:T,onMouseUp:D,...C}=L;return s.jsx(Tr,{component:"div",...C,disableRipple:!0,children:s.jsx(Kl,{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:S=>`1px solid ${S.palette.text.icon??S.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:S=>`1px solid ${S.palette.error.main}`},"::after":{borderBottom:S=>`1px solid ${S.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:S=>`${Math.round(S.typography.fontSize)}px`,width:k,color:S=>S.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:S=>S.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:S=>S.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:m,onFocus:S=>{S.target?.select()},onKeyDown:S=>{if(S.which===on.Enter)g()!==m&&(S.stopPropagation(),S.preventDefault(),x());else if(S.which===on.Escape)g()!==m&&(y(g()),setTimeout(()=>{S.target?.select()},0),S.stopPropagation(),S.preventDefault());else{if(S.key.match("[-]")||S.key.match("[0-9.]")&&(m+S.key).length>4)return S.stopPropagation(),void S.preventDefault();if(S.which===on.Space)return void S.preventDefault()}},onBlur:()=>{x()},onChange:S=>{if(S.target.value.length>4)return S.stopPropagation(),void S.preventDefault();y(S.target.value)}})})},[m,l,n]),_=u.useCallback(L=>{const T=R=>{n?.execute(R,o)},D=n?.state(),C=[];for(let R=0;R<a.length;R++){const P=a[R]===D;C.push(s.jsx(Gr,{selected:P,icon:P?s.jsx(E1,{}):void 0,disabled:l||!n||n.disabled(),onMouseDown:I=>{I.button===0&&I.preventDefault()},onMouseUp:I=>{I.button===0&&T(a[R])},onKeyDown:I=>{I.keyCode!==on.Enter&&I.keyCode!==on.Space||T(a[R])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:a[R]})},"fontSize-"+R))}const S=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...h,children:[w,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:C})]});return Bn({...L,children:S})},[l,n?.state(),o]);return s.jsx(qi,{ref:t,sx:{...f},tabIndex:-1,outlined:!0,disabled:l,parentFloat:c,createPopupPanel:_,createTooltip:({children:L},T)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:T||n?.disabled(),children:L}),createQuickButton:j,...h})})),Fg=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(E1,{}):void 0,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(i.numberFormat)},onKeyDown:c=>{c.keyCode!==on.Enter&&c.keyCode!==on.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=>pt(c.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),US=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,f=u.useMemo(()=>{if(!o)return null;const y={...o};return delete y.beforeExecute,y},[o]),h=u.useCallback((y,x)=>{const v=D=>{o?.beforeExecute?.(d,d?.state()),d.execute(D,o),o?.onExecute?.(d,d?.state())},b=d?.context()(),w=$.NumberFormat.Styles.lookupPrimary(),M=[];for(let D=0;D<w.length;D++){let C="";if(b&&!b.isEmpty())try{C=b.getNumberFormat(w[D].numberFormat).displayText}catch(R){console.warn(R)}C===""&&w[D].formatType===$.NumberFormat.Type.General&&(C="No specific format");const S=w[D].formatType===p;M.push(s.jsx(Fg,{selected:S,disabled:a||!d||d.disabled(),formattedValue:C,handleSetFormat:v,format:w[D]},w[D].formatType))}const k={numberFormat:"",formatType:$.NumberFormat.Type.Custom},j=p===$.NumberFormat.Type.Custom,_=s.jsx(Fg,{selected:j,disabled:a||!d||d.disabled(),formattedValue:j?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(d,d?.state()),x.getCommand("formatNumberDialog")?.execute(d?.state()),o?.onExecute?.(d,d?.state())},format:k,sx:{flex:"0",width:"100%"}},$.NumberFormat.Type.Custom),L=s.jsxs(Ae,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:D=>D.stopPropagation(),children:[s.jsx(Ge,{command:x.getCommand("formatNumberFormatAccountingStyle"),commandHook:f,scope:r,icon:s.jsx(zP,{})}),s.jsx(Ge,{command:x.getCommand("formatNumberFormatPercentStyle"),commandHook:f,scope:r,icon:s.jsx(DP,{})}),s.jsx(Ge,{command:x.getCommand("formatNumberFormatCommaStyle"),commandHook:f,scope:r,icon:s.jsx(OP,{})}),s.jsx(Ge,{command:x.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:f,scope:r,icon:ze(s.jsx(AP,{}))}),s.jsx(Ge,{command:x.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:f,scope:r,icon:ze(s.jsx(LP,{}))})]}),T=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[L,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:M}),s.jsx(Ft,{orientation:"horizontal"}),_]});return Bn({...y,children:T})},[d?.context(),d?.state(),o,r]),g=Ki(),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(Xn,{ref:t,commands:n,sx:i,outlined:!0,disabled:a,parentFloat:l,createPopupPanel:h,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})})),kf=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:Zt.Menuitem,commandHook:o,scope:"clear",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("clearAll"),icon:s.jsx(Y4,{})}),s.jsx(Ge,{...p,command:d.getCommand("clearFormats"),icon:ze(s.jsx(_b,{}))}),s.jsx(Ge,{...p,command:d.getCommand("clearContents"),icon:ze(s.jsx(DI,{}))}),s.jsx(Ge,{...p,command:d.getCommand("clearComments")}),s.jsx(Ge,{...p,command:d.getCommand("clearHyperlinks")})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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(Y4,{}),...a})})),qS=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:Zt.Menuitem,commandHook:o,scope:"fill",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("fillDown"),icon:ze(s.jsx(P0,{}))}),s.jsx(Ge,{...p,command:d.getCommand("fillRight"),icon:ze(s.jsx(P0,{sx:{transform:"rotate(270deg)"}}))}),s.jsx(Ge,{...p,command:d.getCommand("fillUp"),icon:ze(s.jsx(P0,{sx:{transform:"rotate(180deg)"}}))}),s.jsx(Ge,{...p,command:d.getCommand("fillLeft"),icon:ze(s.jsx(P0,{sx:{transform:"rotate(90deg)"}}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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(P0,{})),...a})})),Ef=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=Zt.Toolbar,...p}=e,f=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],h=_o(n,f),{singleCommand:g,allDisabled:m}=u.useMemo(()=>{let v=null,b=0;for(let w=0;w<h.length;w++)h[w]&&!h[w]?.disabled()&&(l&&d===Zt.Menuitem&&(v=b===0?h[w]:null),b++);return{singleCommand:v,allDisabled:b===0}},[h]),y=u.useMemo(()=>{const v=new Map;return v.set("insertCellsShiftDown",ze(s.jsx(O7,{}))),v.set("insertCellsShiftRight",ze(s.jsx(O7,{sx:{transform:"rotate(270deg)"}}))),v.set("insertRows",ze(s.jsx(RO,{}))),v.set("insertColumns",ze(s.jsx(D7,{}))),v},[]),x=u.useCallback((v,b)=>{let w=null;const M={variant:Zt.Menuitem,commandHook:o,scope:"insertCells",disabled:i};a||(w=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...M,command:b.getCommand("addSheet"),icon:ze(s.jsx(Us,{}))})]}));const k=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...M,command:h[0],icon:y.get(f[0])}),s.jsx(Ge,{...M,command:h[1],icon:y.get(f[1])}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...M,command:h[2],icon:y.get(f[2])}),s.jsx(Ge,{...M,command:h[3],icon:y.get(f[3])}),w]});return Bn({...v,children:k})},[i,h,o,r,y]);return g?s.jsx(Ge,{ref:t,variant:d,commandHook:o,disabled:i,command:g,icon:y.get(g.key()),...p}):s.jsx(Xn,{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(D7,{})),...p})})),Mf=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=Zt.Toolbar,...p}=e,f=_o(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:h,allDisabled:g}=u.useMemo(()=>{let x=null,v=0;for(let b=0;b<f.length;b++)f[b]&&!f[b]?.disabled()&&(l&&d===Zt.Menuitem&&(x=v===0?f[b]:null),v++);return{singleCommand:x,allDisabled:v===0}},[f]),m=u.useMemo(()=>{const x=new Map;return x.set("deleteCellsShiftUp",ze(s.jsx(A7,{sx:{transform:"rotate(0deg)"}}))),x.set("deleteCellsShiftLeft",ze(s.jsx(A7,{sx:{transform:"rotate(270deg)"}}))),x.set("deleteRows",ze(s.jsx(IO,{}))),x.set("deleteColumns",ze(s.jsx(L7,{}))),x},[]),y=u.useCallback((x,v)=>{const b={variant:Zt.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let w=null;a||(w=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...b,command:v.getCommand("deleteSheet"),icon:ze(s.jsx(Us,{}))})]}));const M=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...b,command:v.getCommand("deleteCellsShiftUp"),icon:m.get("deleteCellsShiftUp")}),s.jsx(Ge,{...b,command:v.getCommand("deleteCellsShiftLeft"),icon:m.get("deleteCellsShiftLeft")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...b,command:v.getCommand("deleteRows"),icon:m.get("deleteRows")}),s.jsx(Ge,{...b,command:v.getCommand("deleteColumns"),icon:m.get("deleteColumns")}),w]});return Bn({...x,children:M})},[i,o,r,m]);return h?s.jsx(Ge,{ref:t,variant:d,commandHook:o,disabled:i,command:h,icon:m.get(h.key()),...p}):s.jsx(Xn,{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(L7,{})),...p})})),Qs=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:a=Zt.Toolbar,quickColor:l,panelProps:c,isSplit:d=!1,darkMode:p,icon:f,...h}=e,{autoColor:g,schemeLookup:m,recentColors:y,...x}=c;if(h.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,M=m??v?.schemeLookup,k=y??v?.recentColors,j=p??v?.darkMode,_=u.useMemo(()=>({autoColor:w,schemeLookup:M,recentColors:k,darkMode:j,...x}),[w,M,k,j]),L=Te((D,C)=>{D&&C&&v?.addRecentColor&&v.addRecentColor(D),v?.onColorSelect&&v.onColorSelect(D),r?.(D,C),n?.execute(D,o)},[n,r,o,v]),T=u.useCallback((D,C)=>{const{children:S,title:R,...P}=D;let I=D.children;return(n?.disabled()||i)&&(I=s.jsx("div",{children:I})),s.jsx(l0,{command:n,placement:a===Zt.Toolbar?"bottom-start":"right-start",disabled:C,...P,children:I})},[n,i]);return s.jsx(Cf,{ref:t,panelProps:_,icon:f,quickColor:b,selectedColor:n?.state(),onSelectColor:L,variant:a===Zt.Menuitem?Ri.Menuitem:Ri.Toolbar,createTooltip:T,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:j,...h})}));Qs.displayName="ColorCommandButton";const KS=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,f)=>{const h={variant:Zt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...h,command:f.getCommand("gridlinesToggle")}),s.jsx(Qs,{...h,command:f.getCommand("sheetViewFormatGridlinesColor"),icon:s.jsx($3,{}),panelProps:{disableAlpha:!0}}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleGridlinesColumns")}),s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleGridlinesRows")})]});return Bn({...p,children:g})},[i,o]);return s.jsx(Xn,{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(Xs,{command:c[0],scope:"view"}),...l})})),Tf=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:Zt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=d.getCommand("sortCustom"),h=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:d.getCommand("sortAscending"),icon:ze(s.jsx(ph,{}))}),s.jsx(Ge,{...p,command:d.getCommand("sortDescending"),icon:ze(s.jsx(nv,{}))}),f?s.jsx(Ge,{...p,command:f,icon:ze(s.jsx(AO,{}))}):null,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(rh,{}))}),s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx(V3,{}))}),s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(qb,{}))})]});return Bn({...c,children:h})},[i,o,r]);return s.jsx(Xn,{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(ph,{})),...a})})),ZB=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:Zt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(rh,{}))}),s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx(V3,{}))}),s.jsx(Ge,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(qb,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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(rh,{})),...a})})),_f=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,...f}=e,h=[n];!r&&i&&h.push("redo");const g=_o(p,h),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),M=u.useCallback((k,j)=>{let _=b===0?"Cancel":`${m.label()} ${b} Action${b===1?"":"s"}`,L=!1;x||(L=!0),L||(L=i?!x.hasRedo()&&!x.hasUndo():!x.hasRedo());const T=I=>{m.execute(I)},D=s.jsx(Gr,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:L?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!==on.Enter&&I.keyCode!==on.Space||T(b)},children:s.jsx(Tn,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:_})});if(L)return D;const C=r?x?.getRedoDescriptions():x?.getUndoDescriptions(),S=[];for(let I=0;I<C.length;I++){const z=C[I];S.push(s.jsx(Gr,{sx:{maxWidth:"360px",display:"flex"},icon:s.jsx(Us,{}),disabled:v,selected:I<b,onMouseEnter:()=>{w(I+1)},onMouseDown:A=>{A.button===0&&A.preventDefault()},onMouseUp:A=>{A.button===0&&T(I+1)},onKeyDown:A=>{A.isDefaultPrevented()||A.keyCode!==on.Enter&&A.keyCode!==on.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(Us,{})]})},`action:${I}`))}let R=null;if(!r&&i){const I={scope:"undo",commands:j,variant:Zt.Menuitem,parentFloat:k.floatReference};R=[],R.push(s.jsx(_f,{...I,quickCommand:"redo",isRedo:!0},"nested:redo")),x.hasRedo()&&x.hasUndo()&&R.push(s.jsx(Ft,{orientation:"horizontal"},"action:redo-div"))}const P=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{k.closeFloatAll()},onMouseLeave:()=>{w(0)},children:[R,s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:S}),s.jsx(Ft,{orientation:"horizontal"}),D]});return Bn({...k,children:P})},[m?.context(),m?.state(),l,x,b,v]);return s.jsx(Xn,{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:M,icon:o??ze(s.jsx(r?wD:vD,{})),selected:!1,...f})})),Ds=$.IFontCollection.getFontList(),GS=new Map;for(let e=0;e<Ds.length;e++)GS.set(Ds[e].fontRef.getFamily(),Ds[e]);const ZS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:a,icon:l,label:c,...d}=e;rl(n);const p=n?.state(),f=Ki(),h=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("Times New Roman",Math.round(f.typography.fontSize),f.typography.fontFamily).width}px`,[f]),g=u.useCallback(m=>{const y=w=>{n?.execute(w,o)},x=[];for(let w=0;w<Ds.length;w++)x.push({key:Ds[w].fontRef.getFamily(),description:Ds[w].fontRef.getFamily()});GS.get(p)||x.unshift({key:p,description:p});const v=[];for(let w=0;w<x.length;w++){const M=x[w].key===p;v.push(s.jsx(Gr,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:M,disabled:i||!n||n.disabled(),icon:M?s.jsx(E1,{}):void 0,onMouseUp:k=>{k.button===0&&y(x[w].key)},onMouseDown:k=>{k.button===0&&k.preventDefault()},onKeyDown:k=>{k.keyCode!==on.Enter&&k.keyCode!==on.Space||y(x[w].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:()=>x[w]?.key},children:x[w].description})})},w+""+x[w].key))}const b=s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...d,children:s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:v})});return Bn({...m,children:b})},[i,n?.state()]);return s.jsx(qi,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:a,createPopupPanel:g,createTooltip:({children:m},y)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:y,children:m}),icon:s.jsx(Ae,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:m=>`${Math.round(m.typography.fontSize)}px`,fontFamily:m=>m.typography.fontFamily,color:m=>m.palette.text.secondary,width:h},children:s.jsx(Ae,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:p})}),...d})})),XS=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 f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatStrikeThroughToggle",ze(s.jsx(z7,{}))),f.set("formatSuperscriptToggle",ze(s.jsx(FO,{}))),f.set("formatSubscriptToggle",ze(s.jsx(BO,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Zt.Menuitem,commandHook:o,scope:"textEffects",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...g,command:h.getCommand("formatStrikeThroughToggle"),icon:d.get("formatStrikeThroughToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatSuperscriptToggle"),icon:d.get("formatSuperscriptToggle")}),s.jsx(Ge,{...g,command:h.getCommand("formatSubscriptToggle"),icon:d.get("formatSubscriptToggle")})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{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(z7,{})),...a})})),YS=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 f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatUnderlinedToggle",ze(s.jsx(Pp,{}))),f.set("formatUnderlinedDoubleToggle",ze(s.jsx(F7,{}))),f.set("formatUnderlinedAccountingToggle",ze(s.jsx(B7,{}))),f.set("formatUnderlinedAccountingDoubleToggle",ze(s.jsx(N7,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Zt.Menuitem,commandHook:o,scope:"underline",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...g,command:h.getCommand("formatUnderlinedToggle"),icon:ze(s.jsx(Pp,{}))}),s.jsx(Ge,{...g,command:h.getCommand("formatUnderlinedDoubleToggle"),icon:ze(s.jsx(F7,{}))}),s.jsx(Ge,{...g,command:h.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ze(s.jsx(B7,{}))}),s.jsx(Ge,{...g,command:h.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ze(s.jsx(N7,{}))})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{ref:t,quickCommand:c,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:p,icon:d.get(c)??ze(s.jsx(Pp,{})),...a})})),jf=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,f)=>{const h={variant:Zt.Menuitem,commandHook:r,scope:"paste",disabled:l},g=[];return a&&(g.push(u.createElement(Ge,{...h,command:f.getCommand("paste"),key:"paste",icon:s.jsx(P7,{})})),g.push(s.jsx(Ft,{orientation:"horizontal"},"paste-div"))),g.push(u.createElement(Ge,{...h,command:f.getCommand("pasteValues"),key:"pasteValues",icon:ze(s.jsx(wO,{}))})),g.push(u.createElement(Ge,{...h,command:f.getCommand("pasteFormats"),key:"pasteFormats",icon:ze(s.jsx(SO,{}))})),g.push(u.createElement(Ge,{...h,command:f.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ze(s.jsx(CO,{}))})),g.push(u.createElement(Ge,{...h,command:f.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ze(s.jsx(kO,{}))})),g.push(u.createElement(Ge,{...h,command:f.getCommand("pasteLinks"),key:"pasteLinks",icon:ze(s.jsx(EO,{}))})),Bn({...p,children:g})},[l,r,i,a]);return s.jsx(Xn,{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(P7,{}),...c})})),JS=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,f)=>{const h={variant:Zt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleShowHeadings")}),s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleShowHeadingsNumeric")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleShowHeadingColumns")}),s.jsx(Ge,{...h,command:f.getCommand("sheetViewToggleShowHeadingRows")})]});return Bn({...p,children:g})},[i,o,r]);return s.jsx(Xn,{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(Xs,{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:Zt.Menuitem,parentFloat:c.floatReference,commandHook:o,scope:r,disabled:i},p=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...d,command:n.getCommand("workbookViewToggleShowFormulaBar")}),s.jsx(Ge,{...d,command:n.getCommand("workbookViewToggleShowTabs")}),s.jsx(Ge,{...d,command:n.getCommand("workbookViewToggleShowStatusBar")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...d,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),s.jsx(Ge,{...d,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return Bn({...c,children:p})},[i,n,o,r]);return s.jsx(Xn,{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(Xs,{icon:null,label:"Workbook View"}),...a})})),eC=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,f=u.useMemo(()=>i({value:n,style:o}),[n,o,i]),h=u.useMemo(()=>f.getStyle(),[f,a]),g=u.useMemo(()=>h.getFill().toCSS(a?.darkMode??!1),[h]),m=h.getInsets(),y=h.getFont(),x=u.useCallback(()=>h.getBorder(),[h]);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(f.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...l},...p,children:s.jsx(ff,{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})})})})})),XB=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:f,...h}=e,g=u.useCallback(x=>{const v={variant:Zt.Menuitem,commandHook:f,context:"cellStyle"},b=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...v,sx:{fontWeight:550},command:d.getCommand("formatCellStyle"),commandState:n,disabled:p,icon:ze(s.jsx(Gc,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...v,command:d.getCommand("modifyCellStyle"),commandState:{named:n}}),s.jsx(Ge,{...v,command:d.getCommand("deleteCellStyle"),commandState:n,disabled:p||n?.getName()===$.IStyle.BuiltInName.Normal})]});return Bn({...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)},...h,children:s.jsx(eC,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:l,bodyStyle:i})},n.getName());return r&&(y=s.jsx(Cv,{label:n.getName(),parentFloat:c,createPopupPanel:g,children:y})),y}),tC=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 f=o?.context(),h=f?.styles,g=i??f?.named(),m=c??f?.bodyStyle(),y=Te(M=>{a?.(M),o?.execute(M,r)},[o,a,r]),x=u.useCallback((M,k)=>{const j={onSelectNamed:y,styles:h(),parentFloat:M.floatReference},_=h().getCustomNamed(),L=new Map,T=[];for(let A=0;A<_.length;A++)L.set(_[A].getName(),_[A]),h().getNamed(_[A].getName()).getBuiltInID()===null&&T.push(_[A].getName());const D=A=>{let O=L.get(A);return O||(O=h().getNamed(A)),!O||O.isHidden()?null:s.jsx(XB,{namedStyle:O,selectedNamed:g,bodyStyle:f.bodyStyle(),createTemporaryCell:f.createTemporaryCell,commands:n,commandHook:r,...j},A)},C=(A,O,N=!0)=>{const F=[];for(let E=0;E<O.length;E++){const B=D(O[E]);B&&F.push(B)}return F.length===0?null:s.jsxs(Ae,{children:[N?s.jsx(Ft,{orientation:"horizontal"}):null,s.jsx(Gs,{children:A},A+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:F},A+"-presets")]},A)},S=(A,O)=>{const N=[];for(let F=0;F<O.length;F++){const E=D(O[F]);E&&N.push(E)}return N.length===0?null:s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:N},A+"-presets")},R=[];R.push(C("Custom",T,!1)),R.push(C("Good, Bad and Neutral",[$.IStyle.BuiltInName.Normal,$.IStyle.BuiltInName.Bad,$.IStyle.BuiltInName.Good,$.IStyle.BuiltInName.Neutral],T.length>0)),R.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])),R.push(C("Titles and Headings",[$.IStyle.BuiltInName.Heading1,$.IStyle.BuiltInName.Heading2,$.IStyle.BuiltInName.Heading3,$.IStyle.BuiltInName.Heading4,$.IStyle.BuiltInName.Title,$.IStyle.BuiltInName.Total]));let P=[];var I,z;return P.push(S("Accent 1",[$.IStyle.BuiltInName.Accent1_20,$.IStyle.BuiltInName.Accent1_40,$.IStyle.BuiltInName.Accent1_60,$.IStyle.BuiltInName.Accent1])),P.push(S("Accent 2",[$.IStyle.BuiltInName.Accent2_20,$.IStyle.BuiltInName.Accent2_40,$.IStyle.BuiltInName.Accent2_60,$.IStyle.BuiltInName.Accent2])),P.push(S("Accent 3",[$.IStyle.BuiltInName.Accent3_20,$.IStyle.BuiltInName.Accent3_40,$.IStyle.BuiltInName.Accent3_60,$.IStyle.BuiltInName.Accent3])),P.push(S("Accent 4",[$.IStyle.BuiltInName.Accent4_20,$.IStyle.BuiltInName.Accent4_40,$.IStyle.BuiltInName.Accent4_60,$.IStyle.BuiltInName.Accent4])),P.push(S("Accent 5",[$.IStyle.BuiltInName.Accent5_20,$.IStyle.BuiltInName.Accent5_40,$.IStyle.BuiltInName.Accent5_60,$.IStyle.BuiltInName.Accent5])),P.push(S("Accent 6",[$.IStyle.BuiltInName.Accent6_20,$.IStyle.BuiltInName.Accent6_40,$.IStyle.BuiltInName.Accent6_60,$.IStyle.BuiltInName.Accent6])),R.push((I="Themed Cell Styles",z=P,s.jsxs(Ae,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Gs,{children:I},I+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:z},I+"-presets")]},I))),R.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:A=>`${A.shape.borderRadius}px`,paddingBottom:A=>`${A.shape.borderRadius}px`},children:[s.jsx(Ae,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:R}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{variant:Zt.Menuitem,commandState:g,command:k.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:l,icon:ze(s.jsx(HO,{}))})]})},[g,h?.().getTheme(),m]),v=Te(M=>{const k=18/$.IFont.getDeviceScale(),j=f?.createTemporaryCell(M);return j.getStyle().getFont().getSize()<=k?j:j.createTemporaryCell({style:{font:{size:k}}})},[f?.createTemporaryCell]),b=l||!o||o.disabled(),w=u.useMemo(()=>f&&d?s.jsx(eC,{value:g?.getName()??"Custom",cellStyle:g?{named:g.getName()}:void 0,styles:f.styles(),createTemporaryCell:v,bodyStyle:f.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:M=>`1px solid ${M.palette.action.hover}`},borderProps:{}}):ze(s.jsx(Gc,{})),[g,m,b]);return s.jsx(Xn,{ref:t,createPopupPanel:x,outlined:d,commands:n,createTooltip:({children:M},k)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:k,children:M}),selected:!1,disabled:b,label:o?.label(),icon:w,...p})})),nC="_sheetxl-reset_ods65_1",YB=10,Rf=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=YB,isLive:f=!1,...h}=e,g=Math.ceil(1.3*p),[m,y]=u.useReducer(M=>M+1,0);u.useEffect(()=>{if(f&&o)return o.addListeners({onAnyChange:()=>{y()}})},[o,f]);const x=u.useMemo(()=>{let M=o?.toJSON()??{};const k={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return M&&(M.styleOptions={...M.styleOptions,name:r.getName()}),M.ref=k,new $.Table({initialAnchor:k,json:M,styles:n})},[m,o,r,n]),v=u.useMemo(()=>{const M=[];for(let k=0;k<5;k++)for(let j=0;j<5;j++){const _=x.getStyleAt({colIndex:j,rowIndex:k});M.push(_)}return M},[x]),b=u.useMemo(()=>{const M=(j,_,L)=>{let T=L.getFill().toCSS(i?.darkMode??!1);const D=g-(_<4?1:0),C=p-(j<4?1:0),S=L.getFont().getFill().toCSS(i?.darkMode??!1);return T={...T,position:"absolute",boxSizing:"border-box",left:_*(g-1),top:j*(p-1),width:D,height:C},s.jsx("td",{className:`table-style-fill ${j}-${_}`,style:T,children:s.jsx("div",{className:`table-style-text ${j}-${_}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(D-6)/2,top:(C-1)/2,borderTop:`1px solid ${S}`}})},`${j}-${_}`)},k=[];for(let j=0;j<5;j++){const _=[];for(let L=0;L<5;L++){const T=v[5*j+L];_.push(M(j,L,T))}k.push(s.jsx("tr",{children:_},j))}return k},[x,r,i]),w=u.useCallback((M,k)=>v[k].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},...h,children:s.jsx(ff,{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",nC),style:{borderCollapse:"collapse",width:5*(g-1)+1,height:5*(p-1)+1},children:s.jsx("tbody",{children:b})})})})})),V0=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},oC=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,f=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]),h=u.useMemo(()=>{const m=[];for(let y=0;y<5;y++)for(let x=0;x<5;x++){const v=f.getStyleAt({colIndex:x,rowIndex:y});m.push(v)}return m},[f]),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 M=h[5*b+w].getFill();let k=i?.fill;M.getType()===$.IFill.Type.Solid?k=M.getColor().toCSS(v,!1):M.getType()===$.IFill.Type.Gradient?k=M.getStops[0]?.color.toCSS(v,!1):M.getType()===$.IFill.Type.Pattern&&(k=M.getForeground().toCSS(v,!1)),y.fillStyle=k;const j=w*x,_=9*b;y.fillRect(j,_,13,10)}y.lineWidth=1;for(let b=0;b<5;b++)for(let w=0;w<5;w++){const M=h[5*b+w],k=w*x,j=9*b,_=M.getBorder();if(!_.isEmpty()){const D=_.getLeft();D.isNone()||(y.strokeStyle=D.getColor().toCSS(v,!1),V0(y,k,j,k,j+9));const C=_.getTop();C.isNone()||(y.strokeStyle=C.getColor().toCSS(v,!1),V0(y,k,j,k+x,9*b));const S=_.getRight();S.isNone()||(y.strokeStyle=S.getColor().toCSS(v,!1),V0(y,k+x,j,k+x,j+9));const R=_.getBottom();R.isNone()||(y.strokeStyle=R.getColor().toCSS(v,!1),V0(y,k,j+9,k+x,j+9))}y.strokeStyle=M.getFont().getFill().toCSS(v,!1);const L=4,T=2.5;V0(y,w*x+T,9*b+L,w*x+T+7,9*b+L)}return`url(${m.toDataURL()})`},[d,f,o,i]);return s.jsx("div",{ref:t,className:Eo("table-style-preview",c),style:{backgroundImage:g,width:61,height:46,...l},...p})})),rC=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:f,...h}=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},...h,ref:t,children:[i&&s.jsx($a,{control:s.jsx(Na,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:f||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:f||a==null}),label:"Total Row",labelPlacement:"end"}),s.jsx($a,{control:s.jsx(Na,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:f||!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:f||!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:f||!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:f||!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:f||!n||c==null,onChange:()=>d(!c)}),label:"Filter Button",labelPlacement:"end"})]})})),JB=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:f,useCanvasPreview:h=!0,canvas:g,...m}=e,y=u.useCallback(w=>{const M={variant:Zt.Menuitem,commandHook:f,context:"table"},k=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...M,command:d.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:p,icon:ze(s.jsx(Gc,{}))}),s.jsx(Ge,{...M,sx:{fontWeight:550},command:d.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:p,icon:ze(s.jsx(Gc,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...M,command:d.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:p}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...M,command:d.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:p||!n||n.isBuiltIn()})]});return Bn({...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:k})})})},[d]),x=n?.getName()===o,v=u.useMemo(()=>{const w={table:t,tableStyle:n,styles:i,bodyStyle:l};return h?s.jsx(oC,{canvas:g,...w}):s.jsx(Rf,{...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(Cv,{label:t.getStyleOptions().name,parentFloat:c,createPopupPanel:y,children:b})),b}),iC=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 f=o?.context(),h=f?.styles,g=i??f?.table?.();let m="insertTable";g&&(m="editTable");const y=u.useMemo(()=>((T,D)=>{const C={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new $.Table({initialAnchor:C,styles:D,json:{name:"PreviewTable",ref:C,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:T}})})(g?.getStyleOptions(),h?.()),[h?.().getDefaultTableStyle(),g?.getStyleOptions()]),x=g??y,[v,b]=u.useState(x);u.useEffect(()=>{b(x)},[x]);const w=c??f?.bodyStyle(),M=Te(T=>{a?.(T),o?.execute({name:T},r)},[o,a,r]),k=u.useRef(null),j=u.useCallback((T,D)=>{const C={onSelectTableStyleName:M,styles:h(),parentFloat:T.floatReference};k.current||(k.current=document.createElement("canvas"));const S=E=>{const B=h().getTableStyle(E);return B?s.jsx(JB,{table:v,tableStyle:B,selectedTableStyleName:v.getStyleOptions().name,bodyStyle:f.bodyStyle(),commands:D,commandHook:r,canvas:k.current,...C},E):null},R=(E,B,H=!0)=>{const U=[];for(let Z=0;Z<B.length;Z++){const G=S(B[Z]);G&&U.push(G)}return U.length===0?null:s.jsxs(Ae,{children:[H?s.jsx(Ft,{orientation:"horizontal"}):null,s.jsx(Gs,{children:E},E+"-header"),s.jsx(Ae,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:U},E+"-presets")]},E)},P=[],I=h().getCustomTableStyles(),z=[];if(I.length>0){for(let E=0;E<I.length;E++)I[E].isShownInTableStyles()&&z.push(I[E].getName());P.push(R("Custom",z,!1))}const A=[];g&&!g.getStyleOptions().name&&A.push(null);for(let E=0;E<21;E++)A.push("TableStyleLight"+(E+1));P.push(R("Light",A,z.length>0));const O=[];for(let E=0;E<28;E++)O.push("TableStyleMedium"+(E+1));P.push(R("Medium",O));const N=[];for(let E=0;E<11;E++)N.push("TableStyleDark"+(E+1));P.push(R("Dark",N));let F=null;return g&&(F=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{variant:Zt.Menuitem,command:D.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:l,icon:ze(s.jsx(_b,{}))})]})),s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:E=>`${E.shape.borderRadius}px`,paddingBottom:E=>`${E.shape.borderRadius}px`},children:[s.jsx(Ae,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:P}),F]})},[h,h?.().getTheme(),w,v]),_=l||!o||o.disabled(),L=u.useMemo(()=>{if(!f||!d)return ze(s.jsx(Gc,{}))},[v,w,_]);return s.jsx(Xn,{ref:t,quickCommand:m,createPopupPanel:j,commands:n,label:o?.label(),commandState:g,commandHook:r,selected:g!==null,createTooltip:({children:T},D)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:D,children:T}),disabled:_,icon:L,...p})})),gi=[];gi.push(Bi("Primary Background","bg1")),gi.push(Bi("Primary Text","tx1")),gi.push(Bi("Secondary Background","bg2")),gi.push(Bi("Secondary Text","tx2")),gi.push(Bi("Accent 1","accent1")),gi.push(Bi("Accent 2","accent2")),gi.push(Bi("Accent 3","accent3")),gi.push(Bi("Accent 4","accent4")),gi.push(Bi("Accent 5","accent5")),gi.push(Bi("Accent 6","accent6"));const aC=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:a,...l}=e,c=Ki(),d=u.useMemo(()=>{let p=[];for(let f=0;f<gi.length;f++){const h=gi[f];p.push(s.jsx(V2,{schemeColorLookup:t.schemeLookup(),colorDef:h,darkMode:o,selectedColor:null},f+"-colorDef"))}return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:s.jsx(Ae,{sx:{display:"flex",boxShadow:f=>f.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()})})})]})]})})},lC=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})??[],f=[];if(p.length===0)return s.jsx(Gs,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let h=0;h<p.length;h++){const g=p[h],m=o&&g?.getName()===o.getName(),y=p[h+1];y&&y.isCustom()!==g.isCustom()&&f.push(s.jsx(Ft,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${h}`)),f.push(s.jsx(aC,{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!==on.Enter&&x.keyCode!==on.Space||r(g)}},g.getName()))}return f},[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(Gs,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),s.jsx(Ft,{}),s.jsx(Ae,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:d})]})})})),sC=u.memo(u.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:a,label:l,variant:c=Ri.Toolbar,darkMode:d,panelProps:p,...f}=e,h=i||ze(s.jsx(ov,{})),g={createPopupPanel:u.useCallback(m=>{const{closeFloatAll:y}=m;return s.jsx(lC,{...p,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:d,onKeyDown:x=>{x.which===on.Enter&&y()}})},[n,o,r,p,d]),tooltip:a||l||"Theme",label:l,icon:h,...f};return c===Ri.Toolbar?s.jsx(qi,{ref:t,...g}):s.jsx(k1,{ref:t,...g})})),cC=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:a=!1,darkMode:l,label:c,icon:d,variant:p,...f}=e;rl(n);const h=n?.context()?.themes,g=r||n?.context()?.theme,m=l??n?.context()?.darkMode,y=a||n?.disabled(),x=Te(b=>{i?.(b),n?.execute(b,o)},[i,o]),v=u.useCallback((b,w)=>{const{children:M,title:k,...j}=b;let _=b.children;return(y||w)&&(_=s.jsx("div",{children:_})),s.jsx(l0,{command:n,placement:p===Zt.Toolbar?"bottom-start":"right-start",disabled:y||w,...j,children:_})},[n,y]);return s.jsx(sC,{ref:t,themes:h,selectedTheme:g,onSelectTheme:x,variant:p===Zt.Menuitem?Ri.Menuitem:Ri.Toolbar,createTooltip:v,disabled:y,darkMode:m,icon:ze(s.jsx(ov,{})),...f})})),dC=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=S_("(prefers-color-scheme: dark)"),f=c==="dark"||c===null&&p,h=Te((g,m)=>{const y={variant:Zt.Menuitem,commandHook:o,scope:"appearance",disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...y,command:l,icon:ze(s.jsx(f?G6:Y6,{}))}),s.jsx(Ge,{...y,command:m.getCommand("defaultThemeMode"),icon:ze(s.jsx(p?qO:KO,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...y,command:m.getCommand("enableDarkGrid")}),s.jsx(Ge,{...y,command:m.getCommand("enableDarkImages")})]});return Bn({...g,children:x})},[i,l,o,r,p,c,d]);return s.jsx(Xn,{ref:t,quickCommand:"themeMode",commands:n,commandHook:o,createPopupPanel:h,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{l?.execute(f?"light":"dark",o)},selected:d,icon:ze(s.jsx(f?G6:Y6,{})),...a})})),uC=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 f={variant:Zt.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(g,m)=>o?.beforeExecute?.(g,m)!==!1&&d.floatReference.closeAll()},disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...f,command:p.getCommand("showKeyboardShortcuts"),icon:ze(s.jsx(dR,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...f,command:p.getCommand("gotoUrlGithub"),icon:ze(s.jsx(YO,{}))}),s.jsx(Ge,{...f,command:p.getCommand("gotoUrlDiscord"),icon:ze(s.jsx(XO,{}))}),s.jsx(Ge,{...f,command:p.getCommand("gotoUrlDocumentation"),icon:ze(s.jsx(iv,{}))}),s.jsx(Ge,{...f,command:p.getCommand("gotoUrlIssue"),icon:ze(s.jsx(ZO,{}))})]});return Bn({...d,children:h})},[i,o]);return s.jsx(Xn,{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(GO,{sx:{transform:"scale(0.75)"}})),...l})})),If=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:a=!0,showQuickButton:l=!0,variant:c=Zt.Toolbar,...d}=e,p=_o(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:f,allDisabled:h}=u.useMemo(()=>{let m=null,y=0;for(let x=0;x<p.length;x++)p[x]&&!p[x]?.disabled()&&(a&&c===Zt.Menuitem&&(m=y===0?p[x]:null),y++);return{singleMenuCommand:m,allDisabled:y===0}},[p]),g=u.useCallback((m,y)=>{const x={variant:Zt.Menuitem,commandHook:o,scope:"insertImage",disabled:i},v=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...x,command:y.getCommand("insertImageFromFile"),icon:ze(s.jsx(dd,{}))}),s.jsx(Ge,{...x,command:y.getCommand("insertImageFromURL"),icon:ze(s.jsx(dd,{}))})]});return Bn({...m,children:v})},[i,o,r]);return f?s.jsx(Ge,{ref:t,variant:c,commandHook:o,disabled:i,command:f,icon:ze(s.jsx(dd,{})),...d}):s.jsx(Xn,{ref:t,variant:c,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||h,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:g,icon:ze(s.jsx(dd,{})),...d})})),H2=u.memo(u.forwardRef((e,t)=>{const{command:n,...o}=e,r=Wi(),[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(Ge,{ref:t,command:n,icon:ze(s.jsx(vO,{isWalking:i,themedType:l})),...o})})),QB=u.memo(u.forwardRef((e,t)=>{const{...n}=e;return s.jsx(ca,{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(kD,{}));case"insertFunction":return ze(s.jsx(CD,{}));default:return null}}})})),pC=u.createContext(null);pC.displayName="HookFormContext";const hC=()=>u.useContext(pC),Pf=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:f,onKeyDown:h,...g}=e,m=hC(),y=c&&m?m.register(c,d):null,[x,v]=u.useState(""),[b,w]=u.useState(""),[M,k]=u.useState(l);u.useEffect(()=>{k(l),w("")},[l]);const j=Te(C=>{let S="";try{k(C),f?.(C),p?.(C)}catch(R){S=R.message??"Invalid Name"}c&&m&&(S?m.setError(c,{message:S}):m.clearErrors(c)),w(S)},[l,f,p]),_=Te(async C=>{C.keyCode===on.Escape&&x!==l&&(j(x),m?.setValue(c,x),m?.clearErrors(c),C.stopPropagation()),h?.(C)},[h,x,l,m]),L=Te(C=>{v(C.target.value??"")},[]),T=Te(C=>{v(""),y?.onBlur(C)},[]),D=u.useCallback(C=>{j(C.target.value),y?.onChange(C)},[y]);return s.jsx(b1,{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(E3,{label:"Name",placeholder:a,onFocus:L,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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`}}},value:M??"",onChange:D,onKeyDownCapture:_,onContextMenu:C=>{C.stopPropagation()}})})}));Pf.displayName="NamedInput";const _d=e=>e===null?"":e.toString(),Of=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:f,...h}=e,g=hC(),m=n&&g?g.register(n,o):null,[y,x]=u.useState(""),[v,b]=u.useState(!1),[w,M]=u.useState(()=>_d(d));u.useEffect(()=>{M(_d(d)),x(""),n&&g&&g.clearErrors(n),b(!1)},[d]);const k=Te(S=>{let R="";try{M(S);const P=_d(d),I=f(S);I.toString()!==P&&p?.(I)}catch{R="Invalid Range"}n&&g&&(R?g.setError(n,{message:R}):g.clearErrors(n)),x(R),b(!0)},[w,p,n,g]),j=Te(async S=>{if(v&&S.keyCode===on.Escape){const R=_d(d);M(R),x(""),b(!1),S.stopPropagation()}c?.(S)},[d,p,c,v]),_=Te(S=>{m?.onBlur(S)},[m]),L=u.useCallback(S=>{k(S.target.value),m?.onChange(S)},[m]),[T,D]=u.useState(!1),C=u.useMemo(()=>s.jsx(Tx,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:s.jsx(kv,{disabled:!0,selected:T,onSelectToggle:S=>{D(S)},label:"Select Range",icon:ze(s.jsx(bD,{}))})}),[T]);return s.jsx(b1,{sx:{paddingTop:S=>S.spacing(1.5),minWidth:135,width:"100%",...l},size:"small",ref:t,className:Eo("range-input",a),...h,children:s.jsx(E3,{label:"Range",placeholder:"Enter Range",onBlur:_,disabled:r,error:!!y,inputRef:m?.ref,helperText:y||" ",sx:{"& .MuiFormHelperText-root":{marginTop:S=>S.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:S=>S.spacing(1.25),paddingBottom:S=>S.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},endAdornment:C},value:w??"",onChange:L,onKeyDownCapture:j,onContextMenu:S=>{S.stopPropagation()}})})}));Of.displayName="RangeInput";const Df=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),f=u.useRef(0);cn(n,{onViewChange:()=>{p(!0),f.current===0&&c(n.getView().getZoomScale())}}),u.useEffect(()=>{f.current=0,p(!1),c(n.getView().getZoomScale())},[n]),u.useEffect(()=>{f.current!==0&&$.CommonUtils.debounce(()=>{l===f.current&&(f.current=0,n.getView().update({zoomScale:l}))},r)()},[l,r]);const h=Te(_=>{let L=_;_<100?L=Math.round(_/(10/9)+10):_>100&&(L=Math.round(3*_-200)),f.current=L,p(!0),c(L)},[n]),g=_=>{let L=_;return _<100?L=10/9*(_-10):_>100&&(L=(_+200)/3),L},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=M4(()=>{h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),M=M4(()=>h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),k=Ki(),j=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("100%",Math.round(k.typography.fontSize),k.typography.fontFamily).width}px`,[k]);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(Tr,{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(hR,{})})}),s.jsx(kj,{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 ${xh(_.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:_=>`0px 0px 0px 2px ${xh(_.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:_=>{h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),_.deltaY<0,10)))},onKeyDown:_=>{_.which===on.Down||_.which===on.Right?(h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),_.preventDefault()):_.which===on.Up||_.which===on.Left?(h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),_.preventDefault()):_.which!==on.Enter&&_.which!==on.Escape||b()},onChange:(_,L)=>{Math.abs(L-100)<3?h(100):h(L)},valueLabelFormat:(_,L)=>`Zoom: ${Math.round(l)}%`}),s.jsx(di,{disableInteractive:!0,title:"Zoom In",children:s.jsx(Tr,{sx:{padding:"0","&:hover:not([disabled])":{color:_=>_.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:_=>{_.button!==0?_.preventDefault():M(_)},children:s.jsx(eR,{})})}),s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row"},children:[s.jsx(Ae,{sx:{minWidth:"8px"}}),s.jsx(Tn,{noWrap:!0,component:"div",onClick:()=>{h(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:j},children:s.jsx("div",{children:Math.round(l)+"%"})})]})]})}));Df.displayName="SheetZoomScale";const Af=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=Wi(),p=u.useMemo(()=>{const g=d.getMode();return g?.description?g.description:"Ready"},[d]),[f,h]=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:f?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>h(!0),onMouseLeave:()=>h(!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(Ft,{style:{marginTop:"6px",marginBottom:"6px"}}),s.jsx(Df,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));Af.displayName="StatusBar";var Bg,Ng,jd={exports:{}},H0={},W0={exports:{}},$g={},Rd={exports:{}},Wo={},hl={};function Qu(){return Ng||(Ng=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 Vg,Hg,Ba={};function qh(){if(Hg)return Wo;Hg=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.addClassName=a,Wo.addEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(d,p,h):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 f=c;do{if(o(f,d))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},Wo.offsetXYFromParent=function(c,d,p){const f=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-f.left)/p,y:(c.clientY+d.scrollTop-f.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,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(d,p,h):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=Qu(),t=function(c){if(typeof WeakMap=="function")var d=new WeakMap;return function(p){if(p&&p.__esModule)return p;var f,h,g={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return g;if(f=d){if(f.has(p))return f.get(p);f.set(p,g)}for(const m in p)m!=="default"&&{}.hasOwnProperty.call(p,m)&&((h=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,m))&&(h.get||h.set)?f(g,m,h):g[m]=p[m]);return g}(c)}(function(){if(Vg)return Ba;Vg=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.browserPrefixToKey=p,Ba.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},Ba.default=void 0,Ba.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||f in h)return"";for(let g=0;g<c.length;g++)if(p(f,c[g])in h)return c[g];return""}function p(f,h){return h?`${h}${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}(f)}`:f}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:f,y:h}=c,g=`translate(${f}${p},${h}${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 Wg,ta={};function Ug(){if(Wg)return ta;Wg=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},ta.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},ta.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}},ta.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}},ta.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 f;if(f=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(f instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=f,g=p.getComputedStyle(c),m=p.getComputedStyle(h);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)(h)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(h)-(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]},ta.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)},ta.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=Qu(),t=qh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return ta}var qg,Kg,Gg,Zg,U0={},c5={};function Xg(){return qg||(qg=1,Object.defineProperty(c5,"__esModule",{value:!0}),c5.default=function(){}),c5}function eN(){return Gg||(Gg=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 M in x)M!=="default"&&{}.hasOwnProperty.call(x,M)&&((b=(v=Object.defineProperty)&&Object.getOwnPropertyDescriptor(x,M))&&(b.get||b.set)?v(w,M,b):w[M]=x[M]);return w}(m)}(u),n=p(Xc()),o=p(yo),r=function(){if(Bg)return Rd.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 M=x.length;for(v=0;v<M;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="",M=arguments.length;b<M;b++)(x=arguments[b])&&(v=m(x))&&(w&&(w+=" "),w+=v);return w}return Bg=1,Rd.exports=y,Rd.exports.clsx=y,Rd.exports}(),i=qh(),a=Ug(),l=Qu(),c=p(function(){if(Kg)return U0;Kg=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.default=void 0;var m=function(C){if(typeof WeakMap=="function")var S=new WeakMap;return function(R){if(R&&R.__esModule)return R;var P,I,z={__proto__:null,default:R};if(R===null||typeof R!="object"&&typeof R!="function")return z;if(P=S){if(P.has(R))return P.get(R);P.set(R,z)}for(const A in R)A!=="default"&&{}.hasOwnProperty.call(R,A)&&((I=(P=Object.defineProperty)&&Object.getOwnPropertyDescriptor(R,A))&&(I.get||I.set)?P(z,A,I):z[A]=R[A]);return z}(C)}(u),y=k(Xc()),x=k(yo),v=qh(),b=Ug(),w=Qu(),M=k(Xg());function k(C){return C&&C.__esModule?C:{default:C}}function j(C,S,R){return(S=typeof(P=function(I,z){if(typeof I!="object"||!I)return I;var A=I[Symbol.toPrimitive];if(A!==void 0){var O=A.call(I,z);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(S,"string"))=="symbol"?P:P+"")in C?Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}):C[S]=R,C;var P}const _={start:"touchstart",move:"touchmove",stop:"touchend"},L={start:"mousedown",move:"mousemove",stop:"mouseup"};let T=L,D=class extends m.Component{constructor(){super(...arguments),j(this,"dragging",!1),j(this,"lastX",NaN),j(this,"lastY",NaN),j(this,"touchIdentifier",null),j(this,"mounted",!1),j(this,"handleDragStart",C=>{if(this.props.onMouseDown(C),!this.props.allowAnyClick&&typeof C.button=="number"&&C.button!==0)return!1;const S=this.findDOMNode();if(!S||!S.ownerDocument||!S.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:R}=S;if(this.props.disabled||!(C.target instanceof R.defaultView.Node)||this.props.handle&&!(0,v.matchesSelectorAndParentsTo)(C.target,this.props.handle,S)||this.props.cancel&&(0,v.matchesSelectorAndParentsTo)(C.target,this.props.cancel,S))return;C.type!=="touchstart"||this.props.allowMobileScroll||C.preventDefault();const P=(0,v.getTouchIdentifier)(C);this.touchIdentifier=P;const I=(0,b.getControlPosition)(C,P,this);if(I==null)return;const{x:z,y:A}=I,O=(0,b.createCoreData)(this,z,A);(0,M.default)("DraggableCore: handleDragStart: %j",O),(0,M.default)("calling",this.props.onStart),this.props.onStart(C,O)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,v.addUserSelectStyles)(R),this.dragging=!0,this.lastX=z,this.lastY=A,(0,v.addEvent)(R,T.move,this.handleDrag),(0,v.addEvent)(R,T.stop,this.handleDragStop))}),j(this,"handleDrag",C=>{const S=(0,b.getControlPosition)(C,this.touchIdentifier,this);if(S==null)return;let{x:R,y:P}=S;if(Array.isArray(this.props.grid)){let z=R-this.lastX,A=P-this.lastY;if([z,A]=(0,b.snapToGrid)(this.props.grid,z,A),!z&&!A)return;R=this.lastX+z,P=this.lastY+A}const I=(0,b.createCoreData)(this,R,P);if((0,M.default)("DraggableCore: handleDrag: %j",I),this.props.onDrag(C,I)!==!1&&this.mounted!==!1)this.lastX=R,this.lastY=P;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)}}),j(this,"handleDragStop",C=>{if(!this.dragging)return;const S=(0,b.getControlPosition)(C,this.touchIdentifier,this);if(S==null)return;let{x:R,y:P}=S;if(Array.isArray(this.props.grid)){let A=R-this.lastX||0,O=P-this.lastY||0;[A,O]=(0,b.snapToGrid)(this.props.grid,A,O),R=this.lastX+A,P=this.lastY+O}const I=(0,b.createCoreData)(this,R,P);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,M.default)("DraggableCore: handleDragStop: %j",I),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,z&&((0,M.default)("DraggableCore: Removing handlers"),(0,v.removeEvent)(z.ownerDocument,T.move,this.handleDrag),(0,v.removeEvent)(z.ownerDocument,T.stop,this.handleDragStop))}),j(this,"onMouseDown",C=>(T=L,this.handleDragStart(C))),j(this,"onMouseUp",C=>(T=L,this.handleDragStop(C))),j(this,"onTouchStart",C=>(T=_,this.handleDragStart(C))),j(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:S}=C;(0,v.removeEvent)(S,L.move,this.handleDrag),(0,v.removeEvent)(S,_.move,this.handleDrag),(0,v.removeEvent)(S,L.stop,this.handleDragStop),(0,v.removeEvent)(S,_.stop,this.handleDragStop),(0,v.removeEvent)(C,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(S)}}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 U0.default=D,j(D,"displayName","DraggableCore"),j(D,"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,S){if(C[S]&&C[S].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}),j(D,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),U0}()),d=p(Xg());function p(m){return m&&m.__esModule?m:{default:m}}function f(){return f=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},f.apply(null,arguments)}function h(m,y,x){return(y=typeof(v=function(b,w){if(typeof b!="object"||!b)return b;var M=b[Symbol.toPrimitive];if(M!==void 0){var k=M.call(b,w);if(typeof k!="object")return k;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),h(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})}),h(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:M,y:k}=w;w.x+=this.state.slackX,w.y+=this.state.slackY;const[j,_]=(0,a.getBoundPosition)(this,w.x,w.y);w.x=j,w.y=_,w.slackX=this.state.slackX+(M-w.x),w.slackY=this.state.slackY+(k-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)}),h(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:M}=this.props.position;b.x=w,b.y=M}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:M,defaultClassNameDragged:k,position:j,positionOffset:_,scale:L,...T}=this.props;let D={},C=null;const S=!j||this.state.dragging,R=j||b,P={x:(0,a.canDragX)(this)&&S?this.state.x:R.x,y:(0,a.canDragY)(this)&&S?this.state.y:R.y};this.state.isElementSVG?C=(0,i.createSVGTransform)(P,_):D=(0,i.createCSSTransform)(P,_);const I=(0,r.clsx)(v.props.className||"",w,{[M]:this.state.dragging,[k]:this.state.dragged});return t.createElement(c.default,f({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:I,style:{...v.props.style,...D},transform:C}))}}e.default=g,h(g,"displayName","Draggable"),h(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}),h(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})}($g)),$g}function fC(){if(Zg)return W0.exports;Zg=1;const{default:e,DraggableCore:t}=eN();return W0.exports=e,W0.exports.default=e,W0.exports.DraggableCore=t,W0.exports}var Yg,Id={},Jg,Qg,q0={};function mC(){if(Jg)return q0;Jg=1,q0.__esModule=!0,q0.resizableProps=void 0;var e,t=(e=Xc())&&e.__esModule?e:{default:e};fC();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 q0.resizableProps=n,q0}function ey(){if(Qg)return H0;Qg=1,H0.__esModule=!0,H0.default=void 0;var e=function(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=i(void 0);if(g&&g.has(h))return g.get(h);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!=="default"&&Object.prototype.hasOwnProperty.call(h,x)){var v=y?Object.getOwnPropertyDescriptor(h,x):null;v&&(v.get||v.set)?Object.defineProperty(m,x,v):m[x]=h[x]}return m.default=h,g&&g.set(h,m),m}(u),t=fC(),n=function(){if(Yg)return Id;Yg=1,Id.__esModule=!0,Id.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 h,g=(h=u)&&h.__esModule?h:{default:h};function m(v,b){var w=Object.keys(v);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(v);b&&(M=M.filter(function(k){return Object.getOwnPropertyDescriptor(v,k).enumerable})),w.push.apply(w,M)}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(M){x(v,M,w[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(w)):m(Object(w)).forEach(function(M){Object.defineProperty(v,M,Object.getOwnPropertyDescriptor(w,M))})}return v}function x(v,b,w){return(b=typeof(M=function(k,j){if(typeof k!="object"||k===null)return k;var _=k[Symbol.toPrimitive];if(_!==void 0){var L=_.call(k,j);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(k)}(b,"string"))=="symbol"?M:String(M))in v?Object.defineProperty(v,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[b]=w,v;var M}return Id}(),o=mC(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(i=function(y){return y?m:g})(h)}function a(){return a=Object.assign?Object.assign.bind():function(h){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(h[y]=m[y])}return h},a.apply(this,arguments)}function l(h,g){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);g&&(y=y.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),m.push.apply(m,y)}return m}function c(h){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(h,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(m,y))})}return h}function d(h,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 h?Object.defineProperty(h,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[g]=m,h;var y}function p(h,g){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,y){return m.__proto__=y,m})(h,g)}var f=function(h){var g,m;function y(){for(var v,b=arguments.length,w=new Array(b),M=0;M<b;M++)w[M]=arguments[M];return(v=h.call.apply(h,[this].concat(w))||this).handleRefs={},v.lastHandleRect=null,v.slack=null,v}m=h,(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,M=w.minConstraints,k=w.maxConstraints,j=w.lockAspectRatio;if(!M&&!k&&!j)return[v,b];if(j){var _=this.props.width/this.props.height,L=v-this.props.width,T=b-this.props.height;Math.abs(L)>Math.abs(T*_)?b=v/_:v=b*_}var D=v,C=b,S=this.slack||[0,0],R=S[0],P=S[1];return v+=R,b+=P,M&&(v=Math.max(M[0],v),b=Math.max(M[1],b)),k&&(v=Math.min(k[0],v),b=Math.min(k[1],b)),this.slack=[R+(D-v),P+(C-b)],[v,b]},x.resizeHandler=function(v,b){var w=this;return function(M,k){var j=k.node,_=k.deltaX,L=k.deltaY;v==="onResizeStart"&&w.resetData();var T=(w.props.axis==="both"||w.props.axis==="x")&&b!=="n"&&b!=="s",D=(w.props.axis==="both"||w.props.axis==="y")&&b!=="e"&&b!=="w";if(T||D){var C=b[0],S=b[b.length-1],R=j.getBoundingClientRect();w.lastHandleRect!=null&&(S==="w"&&(_+=R.left-w.lastHandleRect.left),C==="n"&&(L+=R.top-w.lastHandleRect.top)),w.lastHandleRect=R,S==="w"&&(_=-_),C==="n"&&(L=-L);var P=w.props.width+(T?_/w.props.transformScale:0),I=w.props.height+(D?L/w.props.transformScale:0),z=w.runConstraints(P,I);P=z[0],I=z[1];var A=P!==w.props.width||I!==w.props.height,O=typeof w.props[v]=="function"?w.props[v]:null;O&&!(v==="onResize"&&!A)&&(M.persist==null||M.persist(),O(M,{node:j,size:{width:P,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 M=c({ref:b},typeof w.type=="string"?{}:{handleAxis:v});return e.cloneElement(w,M)},x.render=function(){var v=this,b=this.props,w=b.children,M=b.className,k=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 j=b.resizeHandles;b.transformScale;var _=function(L,T){if(L==null)return{};var D,C,S={},R=Object.keys(L);for(C=0;C<R.length;C++)D=R[C],T.indexOf(D)>=0||(S[D]=L[D]);return S}(b,r);return(0,n.cloneElement)(w,c(c({},_),{},{className:(M?M+" ":"")+"react-resizable",children:[].concat(w.props.children,j.map(function(L){var T,D=(T=v.handleRefs[L])!=null?T:v.handleRefs[L]=e.createRef();return e.createElement(t.DraggableCore,a({},k,{nodeRef:D,key:"resizableHandle-"+L,onStop:v.resizeHandler("onResizeStop",L),onStart:v.resizeHandler("onResizeStart",L),onDrag:v.resizeHandler("onResize",L)}),v.renderResizeHandle(L,D))}))}))},y}(e.Component);return H0.default=f,f.propTypes=o.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},H0}var ty,ny,K0={},tN=(ny||(ny=1,jd.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},jd.exports.Resizable=ey().default,jd.exports.ResizableBox=function(){if(ty)return K0;ty=1,K0.__esModule=!0,K0.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(Xc()),n=i(ey()),o=mC(),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 M=w.call(v,b);if(typeof M!="object")return M;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 f(g,m){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,x){return y.__proto__=x,y})(g,m)}var h=function(g){var m,y;function x(){for(var v,b=arguments.length,w=new Array(b),M=0;M<b;M++)w[M]=arguments[M];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(k,j){var _=j.size;v.props.onResize?(k.persist==null||k.persist(),v.setState(_,function(){return v.props.onResize&&v.props.onResize(k,j)})):v.setState(_)},v}return y=g,(m=x).prototype=Object.create(y.prototype),m.prototype.constructor=m,f(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 M=v.onResizeStart,k=v.onResizeStop,j=v.draggableOpts,_=v.minConstraints,L=v.maxConstraints,T=v.lockAspectRatio,D=v.axis;v.width,v.height;var C=v.resizeHandles,S=v.style,R=v.transformScale,P=function(I,z){if(I==null)return{};var A,O,N={},F=Object.keys(I);for(O=0;O<F.length;O++)A=F[O],z.indexOf(A)>=0||(N[A]=I[A]);return N}(v,r);return e.createElement(n.default,{axis:D,draggableOpts:j,handle:b,handleSize:w,height:this.state.height,lockAspectRatio:T,maxConstraints:L,minConstraints:_,onResizeStart:M,onResize:this.onResize,onResizeStop:k,resizeHandles:C,transformScale:R,width:this.state.width},e.createElement("div",l({},P,{style:d(d({},S),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},x}(e.Component);return K0.default=h,h.propTypes=d(d({},o.resizableProps),{},{children:t.default.element}),K0}().default),jd.exports);function d5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var W2=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=d5(o,t),i=typeof r=="function";n.push(i?r:()=>d5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)d5(n,t)}};const Lf=u.memo(u.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,readonly:a=!1,disabled:l=!1,commandPopupButtonProps:c,sx:d,notifier:p,...f}=e,[h,g]=u.useState(null),[m,y]=u.useState(()=>r.getSelectedRanges().getCoords()),[x,v]=u.useState(!1),{reference:b}=ha({parentFloat:c?.parentFloat}),[w,M]=u.useState(()=>a||!r.getProtection().isStructureAllowed()),k=()=>h?.text??"",[j,_]=u.useState(k),L=Te(()=>{if(b?.closeAll(),!j){const Z=k();return _(k()),Z}if(k()===j)return j;const B=j.trim().toLowerCase();if(B==="r"||B==="c")return j;try{const Z=r.getRanges(j);if(Z)return Z.toString()}catch{}const H=o.getByName(j);if(H&&H.getRanges())return j;let U=null;try{const Z=r.getRanges(j).getCoords().map(G=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...G}));U=r.getRanges(Z)}catch{}if(!U){const Z=r.getSelectedRanges().getCoords().map(G=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...G}));U=r.getRanges(Z)}try{let Z=o.getByName(j);w||Z||(Z=o.addReference(j,U)),Z&&g({text:Z.getName()})}catch(Z){_(k()),p.showMessage?.(Z.message,{type:pa.Error})}return null},[j,o,b,w]),T=Te(()=>{if(r.isClosed())return;const B=[];for(let Z=0;Z<m.length;Z++){const G=m[Z];B.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...G})}let H=null;try{H=o.lookupByRanges(B)}catch{}let U=null;U=H?.length>0?H[0].getName():r.getSelectedSheet().getSelectedRange().toString(),g({text:U})},[r,m]),[D,C]=u.useState(()=>o?.search()??null);cn(o,{onCollectionChange(B){C(o.search()),T()},onClose(B){C([])}}),u.useEffect(()=>{_(k())},[h,m]);const[S,R]=u.useState(r?.getSelectedSheet());cn(r,{onProtectionChange:B=>{M(a||!B.getProtection().isStructureAllowed())},onSheetsChange:B=>{R(B?.getSelectedSheet())},onViewChange(B){R(B?.getSelectedSheet())}});const[P,I]=u.useState(null),z=Te($.CommonUtils.debounce(T,P?320:0),[]);cn(S.getSelection(),{onChange:()=>{y(B=>{const H=r.getSelectedRanges().getCoords();return $.CoordUtils.isEqualRangesArrays(H,B)?B:H})},onAdjustingChange:B=>{I(B.getAdjusting())}}),u.useEffect(()=>{if(P){const B=r.getSelectedRange(),H=B.getRowCount(),U=B.getColumnCount();let Z=`${H}R x ${U}C`;if(Z.length>17&&(Z=`${H}x${U}`),H>1||U>1)return void g({text:Z,fontStyle:"italic",justifyContent:"center"})}g({text:r.getSelectedSheet().getSelectedRange().toString()}),z()},[m,r,P]);const A=u.useRef(null),O=u.useCallback(B=>{const{onMouseDown:H,onMouseUp:U,...Z}=B;return s.jsx(Tr,{...Z,sx:{...Z?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:s.jsx(Kl,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:A},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:G=>`1px solid ${G.palette.text.icon??G.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:G=>`1px solid ${G.palette.primary.main}`},"::after":{borderBottom:G=>`1px solid ${G.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*$.IFont.getDeviceScale(),fontStyle:h?.fontStyle,paddingLeft:G=>G.spacing(.75),paddingRight:G=>G.spacing(.75),boxShadow:"none",flex:"1",color:G=>G.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:G=>G.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:G=>G.palette.text.primary}}},value:j,onFocus:G=>{G.target?.select()},onKeyDown:G=>{if(G.which===on.Enter||G.which===on.Tab){let V=j;k()!==j&&(G.stopPropagation(),G.preventDefault(),V=L()),V?N(V):i?.()}else if(G.which===on.Escape)k()!==j?(_(k()),setTimeout(()=>{G.target?.select()},0),G.stopPropagation(),G.preventDefault()):i?.();else if(G.which===on.Space)return void G.stopPropagation()},onBlur:()=>{_(k())},onChange:G=>{_(G.target.value)}})})},[j,h]),N=Te(async B=>{try{b?.closeAll();const H=o.lookupByRanges(B)?.[0];H&&await H?.select(),await r.getRanges(B)?.select()}catch(H){p.showMessage?.(H.message,{type:pa.Error})}},[o,p,r]),F=u.useCallback(B=>{setTimeout(()=>{v(!0)},0);const H={variant:Zt.Menuitem,parentFloat:B.floatReference,commandHook:{...c?.commandHook,beforeExecute:(ge,Q)=>(b?.closeAll(),c?.commandHook?.beforeExecute?.(ge,Q))},scope:c?.scope,commands:c?.commands};let U=o.search({scope:r?.getSelectedSheet().getName()});U=U.sort((ge,Q)=>ge.getType()===Q.getType()?ge.getName().localeCompare(Q.getName()):ge.getType()==="range"?-1:1);const Z=w?null:["editNamedReference","deleteNamedReference"],G=w?null:["editTable",null,"convertTableToRange","deleteTable"],V=[],le=U.length;for(let ge=0;ge<le;ge++){const Q=U[ge],xe=Q.getRanges();if(!xe||Q.isHidden())continue;const be=Q.getType();be!==U[ge-1]?.getType()&&(ge>0&&V.push(s.jsx(Ft,{orientation:"horizontal"},`type-divider-${V.length}`)),V.push(s.jsx(Gs,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:Q.getType()==="reference"?"Ranges":"Tables"},`type-header-${V.length}`))),be==="reference"?V.push(u.createElement(ca,{...H,key:"named-"+V.length,popupCommandKeys:Z,popupScope:"namedItem",scope:"namedItem",commandState:Q,commands:c?.commands,label:Q.getName(),quickCommand:"selectNamed",disabled:!Q.getRanges()||l,icon:Fe=>{switch(Fe.key()){case"editNamedReference":return ze(s.jsx(oD,{}));case"deleteNamedReference":return ze(s.jsx(rD,{}));default:return ze(s.jsx(tD,{}))}}})):be==="table"&&V.push(u.createElement(ca,{...H,key:"namedItem-"+V.length,popupCommandKeys:G,popupScope:"namedItem",scope:"namedItem",commands:c?.commands,commandState:Q,label:Q.getName(),quickCommand:"selectNamed",disabled:!xe||l,icon:Fe=>(Fe.key(),ze(s.jsx(Kc,{})))}))}const re=s.jsxs(Ae,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...f,children:[w?null:s.jsx(Ge,{...H,scope:"namedItem",command:c?.commands.getCommand("addNamedReference"),icon:ze(s.jsx(nD,{}))}),V&&V.length>0?s.jsxs(s.Fragment,{children:[w?null:s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ae,{sx:{overflow:"auto",flex:"1 1 100%"},children:V})]}):null]});return Bn({...B,children:re})},[r,D,o,h,w]),E=ir(t,()=>({focus(B){A.current?.focus(B)}}),[]);return s.jsx(Ae,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...d},ref:W2([E,t]),...f,children:s.jsx(qi,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...d},buttonProps:{sx:{backgroundColor:B=>B.palette.background.paper,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`}},tabIndex:-1,outlined:{color:B=>n?B.palette.action.disabled:pt(B.palette.divider,.2)},parentFloat:b,createPopupPanel:F,onPopupOpen:()=>v(!0),onPopupClose:()=>v(!1),createTooltip:({children:B},H)=>s.jsx(br,{title:H||x?"":"Name Box",disabled:H,leaveDelay:0,sx:{opacity:H||x?0:1},children:B}),createQuickButton:O})})}));Lf.displayName="NamedCollectionEditor";const nN=(e,t)=>s.jsx(Lf,{ref:t,...e}),zf=u.memo(u.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:a=!0,NamedCollectionEditorProps:l,renderNamedCollectionEditor:c=nN,disabled:d,commands:p,...f}=e,[h,g]=u.useState(o?.getSelectedSheet());cn(o,{onSheetsChange:G=>{g(G?.getSelectedSheet())},onViewChange(G){g(G?.getSelectedSheet())}});const[m,y]=u.useState(h.getSelection().getCoords().cell),x=h.getRange(m).getCell(),v=d||!x.isEditAllowed(),b=u.useRef(null),w=u.useMemo(()=>({fontSize:11}),[]);cn(h.getSelection(),{onChange:()=>{y(h.getSelection().getCoords().cell)}}),cn(h,{onProtectionChange(){y(h.getSelection().getCoords().cell)}});const M=b.current?.getLineHeight()??20,[k,j]=u.useState(M),[_,L]=u.useState(5),[T,D]=u.useState(1),C=Te((G,{size:V})=>{G.preventDefault(),G.stopPropagation();const le=Math.floor(V.height/M);j(le*M+1),le>1&&L(le)},[M]),S=Te((G,{size:V})=>{const le=Math.floor(V.height/M);D(le)},[M]),R=Wi(),P=R.getMode();let I=null;P?.key==="edit"&&(I=P.args?.stateAndCoords);const z=u.useMemo(()=>{let G=I?.editState;return G||(G=Yw(()=>h.getRange(m).getCell())),s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:s.jsx(Xw,{ref:b,activeCoords:m,sheet:h,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:m})},defaultTextStyle:w,useRichStyling:!1,disabled:v,onChangeEdit:V=>{if(V.dirty!==void 0){const le={sheet:h,coords:m,editState:V};R.setMode(re=>({...re,args:{...re?.args,stateAndCoords:le}}))}},editState:G,commands:p,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:T})})},[h,I,m,T,r]),A=u.useRef(null),O=u.useMemo(()=>a?c({names:o.getNames(),workbook:o,...l},A):null,[c,l,a,h,o,v]),N=u.useMemo(()=>s.jsxs(Ti,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,border:G=>`solid ${v?G.palette.action.disabled:pt(G.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:G=>{G.button===0&&G.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(eD,{})),tooltipProps:{label:"Enter",simple:!0},disabled:v||I===null,onMouseDown:G=>{G.button===0&&G.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(SD,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:G=>{G.button===0&&G.preventDefault()}})]}),[v,I]),F=Ki(),[E,B]=u.useState(!1),H=u.useMemo(()=>s.jsxs(Ae,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:G=>G.spacing(.5),alignItems:"start"},children:[N,s.jsxs(Ti,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:G=>G.typography.fontFamily,fontSize:11*$.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:G=>`${G.shape.borderRadius}px`,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,border:G=>`solid ${v?G.palette.action.disabled:pt(G.palette.divider,.2)} 1px`,"& textarea":{color:G=>v?`${G.palette.text.disabled} !important`:G.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:()=>B(!0),onBlur:()=>B(!1),onMouseDown:G=>{G.target?.classList.contains("react-resizable-handle")&&G.preventDefault()},children:[s.jsx(Ae,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:G=>G.spacing(1),paddingRight:G=>G.spacing(1)},children:s.jsx(tN.ResizableBox,{height:k,draggableOpts:{grid:[M,M]},minConstraints:[M,M],maxConstraints:[15*M,15*M],onResize:S,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?sR:Lx,{})),tooltipProps:{label:(T>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:G=>{G.button===0&&G.preventDefault()},onClick:()=>{const G=T>1?1:_;j(G*M+1),D(G)}}),s.jsx(Ae,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:E?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:G=>G.palette.primary.main,borderRadius:G=>`${G.shape.borderRadius}px`}})]})]}),[N,z,E,T,M]),U=u.useMemo(()=>O||H?!O&&H?H:O&&!H?O:s.jsx(s.Fragment,{children:s.jsx(K5,{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='${F.palette.text.icon??F.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:O,elementAfter:H})}):null,[O,H]),Z=ir(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>A.current}),[]);return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",gap:G=>G.spacing(.5),...n},ref:Z,...f,children:U})}));zf.displayName="FormulaBar";const Ff=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:(h,g)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:a}),[r,a]),p=u.useMemo(()=>({...c,...d,variant:Zt.Menuitem}),[c,d]),f=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...p,command:o.getCommand("sortAscending"),icon:ze(s.jsx(ph,{}))}),s.jsx(Ge,{...p,command:o.getCommand("sortDescending"),icon:ze(s.jsx(nv,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...p,command:o.getCommand("autoFilterClear"),icon:ze(s.jsx(V3,{}))}),[]]});return s.jsx(Ae,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...l,children:f})}));Ff.displayName="FilterColumnMenu";const gC=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"})]})})}));gC.displayName="Filters";const Bf=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:f,dragging:h,borderColor:g,borderWidth:m,activeColor:y,background:x="white",tabRadius:v=4,gridTheme:b,...w}=e,[M,k]=u.useState(()=>!!o&&o.getProtection().isLocked()),[j,_]=u.useState(()=>o?o.getTabColor():null);cn(o,{onProtectionChange:()=>{k(o.getProtection().isLocked())},onTabColorChange:()=>{_(o.getTabColor())},onStyleChange:()=>{_(o.getTabColor())}});const L=Ki(),T=f===l;let D=null,C=null;if(j||h){let P=x;j?(C=j.toBlackOrWhite().toCSS(),P=j?.toCSS()):T||(P=L.palette.background.paper),D=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&&j?`linear-gradient(0deg, ${P} 0%, transparent)`:P}})}let S=null;typeof g=="string"?S=g:g?.toCSS&&(S=g.toCSS());const R=T?s.jsx(Ae,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:P=>P.palette.primary.main}}):null;return s.jsx(hw,{theme:T?b??L:L,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:h?"grabbing":void 0},...w,children:s.jsx(oI,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:v,strokeColor:T?S:"transparent",children:s.jsx(zc,{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:h?"grabbing":void 0,color:T?"primary":C||"text.secondary",backgroundColor:T?x:"transparent","&:hover:not([disabled])":{backgroundColor:T?x:"transparent"},"& input":{color:P=>`${P.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:p,disableRipple:c,component:"div",children:s.jsxs(s.Fragment,{children:[D,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,R]}),M?s.jsx(S2,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):s.jsx(Ae,{sx:{minHeight:"22px"}})]})]})},a+":"+l)})})})}));Bf.displayName="SheetTab";const Nf=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,...f}=e,[h,g]=u.useState(n?.getProtection());cn(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(Ge,{command:r.getCommand("addSheet"),commandState:o,...x,variant:Zt.Menuitem}),s.jsx(Ge,{command:r.getCommand("deleteSheet"),...x,variant:Zt.Menuitem}),s.jsxs(Gr,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(l.closeAll()).then(()=>{p?.startEdit(o)})},disabled:a||!h.isStructureAllowed(),parentFloat:l,children:["Rename",i!=="sheet"?" Sheet":""]}),s.jsx(Ge,{command:r.getCommand("duplicateSheet"),...x,variant:Zt.Menuitem}),s.jsx(Ge,{command:r?.getCommand("protectionSheetToggle"),...x,variant:Zt.Menuitem,icon:s.jsx(S2,{})}),s.jsx(Qs,{variant:Zt.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:s.jsx($3,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:Os.End},parentFloat:l}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{command:r.getCommand("hideSheet"),...x,variant:Zt.Menuitem,icon:ze(s.jsx(rv,{}))})]});return s.jsx(Ae,{ref:t,className:Eo("menu",d),sx:{...c},...f,children:v})}));Nf.displayName="SheetTabMenu";const $f=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,f]=u.useState(n?.getProtection());cn(n,{onSheetsChange:g=>{d(g.getSheets().search())},onProtectionChange:g=>{f(g?.getProtection())}});const h=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,M=v.getProtection().isLocked(),k=v.getTabColor(),j=o?.body.fill??"transparent";let _=null,L=null,T=j;k&&(T=k.toCSS(),w||(L=k.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?`${j} solid 1.5px`:`${C.palette.divider} solid 1px`,background:w&&k?`linear-gradient(0deg, ${T} 0%, ${j})`:T,borderRadius:"4px"}})}));let D=null;M&&(D=s.jsx(S2,{color:"secondary"})),b!==$.ISheet.Visibility.Visible&&(D=ze(s.jsx(rv,{style:{opacity:p.isStructureAllowed()?1:.7},color:"secondary"}))),D&&(D=s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:D})),g.push(s.jsx(Gr,{disabled:!p.isStructureAllowed()&&b===$.ISheet.Visibility.Hidden,sx:{color:C=>{let S=w?C.palette.primary.main:C.palette.text.secondary;return L&&(S=L),b===$.ISheet.Visibility.Hidden&&(S=pt(S,C.palette.action.disabledOpacity)),S},borderLeft:C=>`${w?C.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:w?"700":"400","&:hover":{fontWeight:"700"}},icon:w?s.jsx(E1,{}):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()})]}),D]})]})},""+x))}return g},[n,p,c,r,o]);return s.jsx(Ae,{ref:t,className:Eo("menu",a),...l,children:h})}));$f.displayName="SheetsAllMenu";var oN=function(){},yC=typeof window<"u",rN=yC?u.useLayoutEffect:u.useEffect,oy={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const a1=yC&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(oy),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,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return rN(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[oN,oy]};function e2(){return e2=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},e2.apply(null,arguments)}function Vf(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 Hf(e,t){return(Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n})(e,t)}function xC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}function ry(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const bC=u.createContext(null);var vC=function(e){return e.scrollTop},uc="unmounted",yl="exited",xl="entering",hs="entered",Kh="exiting",va=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=hs:a=o.unmountOnExit||o.mountOnEnter?uc:yl,i.state={status:a},i.nextCallback=null,i}xC(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===uc?{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!==hs&&(r=xl):i!==xl&&i!==hs||(r=Kh)}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&&vC(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:uc})},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(),f=a?p.appear:p.enter;o||i?(this.props.onEnter(c,d),this.safeSetState({status:xl},function(){r.props.onEntering(c,d),r.onTransitionEnd(f,function(){r.safeSetState({status:hs},function(){r.props.onEntered(c,d)})})})):this.safeSetState({status:hs},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:Kh},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===uc)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=Vf(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(bC.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function cs(){}va.contextType=bC,va.propTypes={},va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cs,onEntering:cs,onEntered:cs,onExit:cs,onExiting:cs,onExited:cs},va.UNMOUNTED=uc,va.EXITED=yl,va.ENTERING=xl,va.ENTERED=hs,va.EXITING=Kh;var u5=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=ry(o.className,r):o.setAttribute("class",ry(o.className&&o.className.baseVal||"",r)));var o,r})},Gh=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],f=d[1];o.removeClasses(p,"exit"),o.addClass(p,f?"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],f=d[1]?"appear":"enter";o.addClass(p,f,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var d=o.resolveArguments(l,c),p=d[0],f=d[1]?"appear":"enter";o.removeClasses(p,f),o.addClass(p,f,"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}xC(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&&vC(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):(f=g,h=m,(f.classList?!!h&&f.classList.contains(h):(" "+(f.className.baseVal||f.className)+" ").indexOf(" "+h+" ")!==-1)||(typeof g.className=="string"?g.className=g.className+" "+m:g.setAttribute("class",(g.className&&g.className.baseVal||"")+" "+m))));var f,h,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&&u5(o,a),l&&u5(o,l),c&&u5(o,c)},n.render=function(){var o=this.props;o.classNames;var r=Vf(o,["classNames"]);return u.createElement(va,e2({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.Component);Gh.defaultProps={classNames:""},Gh.propTypes={};const wC={Light:"light",Dark:"dark"},p5=.12,Zh=(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:mi(d,p5,c.palette?.mode),darkMode:c.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:mi(n.body.fill,p5,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:mi(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:mi(n.body.fill,.328,e.palette?.mode)},n.headerHover=c=>({...n.header,strokeFill:mi(c?.fill??n.body.fill,.22,e.palette?.mode),fill:mi(c?.fill??n.header.fill,.065,e.palette?.mode),text:{...c?.text,fontWeight:e.typography?.fontWeightBold}});const i=mi(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:pt(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:pt(i,.7)},n.headerSelectAll={...n.headerSelect,fill:pt(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:mi(r.fill,p5,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:mi(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:mi(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?pt(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?pt(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?pt(a.palette?.primary?.main,.1):void 0,strokeFill:a.palette?.primary?.main},n.selectionInactive={...n.selection,fill:a.palette?.divider?pt(a.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:pt(a.palette.warning.light,.05),strokeFill:a.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=pt(a.palette.action.active,.5),n.colorGrey=a.palette.action.active,n.filterDarkInvert=l?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function SC(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=iy();if(r)return{themeMode:r,source:"class"}}return{themeMode:ay(),source:"media"}});return u.useEffect(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const r=()=>{const c=iy();if(c)o({themeMode:c,source:"class"});else{const d=ay();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 iy(){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 ay(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const l1=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,a=ir(t,()=>({}),[]),[l,c]=a1(),d=u.useRef(null),p=u.useRef(null),[f,h]=u.useReducer(k=>k+1,0),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),{reference:w}=ha({parentFloat:r,label:"overflow"});u.useLayoutEffect(()=>{p.current={refs:[]};const k=[],j=u.Children.toArray(n);let _=0;j.forEach((L,T)=>{k.push(s.jsx(Ae,{sx:{display:"flex"},ref:D=>{_++,_===j.length&&h();const C={current:null};C.current=D,p.current.refs[T]=C},children:L},T))}),m(k)},[n,c]),u.useLayoutEffect(()=>{if(!g)return;const k=p.current.refs;if(!a.current||!k||k.length===0)return x(null),void b(null);const j=a.current?.getBoundingClientRect(),_=[],L=[];let T=0,D=!1;for(let S=0;!D&&S<k.length;S++){const R=k[S];if(!R)continue;if(!R.current){D=!0;continue}const P=R.current.getBoundingClientRect();T+=P?.width,T>j.width&&(D=!0)}if(!D)return x(null),void b([]);const C=d.current?.getBoundingClientRect();T=0;for(let S=0;S<k.length;S++){const R=k[S];let P=!1;if(R.current){const I=R.current.getBoundingClientRect();T+=I?.width,T<j.width-C.width&&(P=!0)}P?_.push(g[S]):L.push(g[S])}x(_.length>0?_:null),b(L.length>0?L:null)},[n,g,c,w,f]);const M=Te(k=>{const j=[];for(let L=0;L<v.length;L++){let T=u.Children.toArray(v[L]);const D=T[0];T=u.Children.toArray(D.props.children?.props.children??D.props.children);const C=T[0],S={...C.props};S.parentFloat&&(S.parentFloat=k.floatReference);const R=u.cloneElement(C,S);j.push(R)}const _=s.jsx(Ae,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:L=>L.spacing(.5),paddingBottom:L=>L.spacing(.5),paddingLeft:L=>L.spacing(1),paddingRight:L=>L.spacing(1),overflow:"hidden"},children:j});return Bn({...k,children:_})},[v]);return s.jsxs(Ae,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:W2([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(qi,{createPopupPanel:M,ref:d,parentFloat:w,createTooltip:({children:k},j)=>s.jsx(br,{label:"More",description:"More toolbar options…",disabled:j,children:k}),icon:s.jsx(Wb,{children:s.jsx(pR,{})})})})]})})),CC="https://unpkg.com/@sheetxl/scripting-templates/dist",iN=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DIXyMJKaeCGuWxjZ.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DGQrcBvjSGwwoZEv.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("./D9RQ5oYv7U38wSI7.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],aN=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DIXyMJKaeCGuWxjZ.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DGQrcBvjSGwwoZEv.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("./D9RQ5oYv7U38wSI7.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class kC{constructor(t=iN,n=aN){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?.typedCreateWorkbookOptions?.[n]};let l;delete a.typedCreateWorkbookOptions;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=jR.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,f=setTimeout(()=>p.abort(),d),h=typeof c=="string"?c:c.toString(),g=r||$.TextUtils.getFileNameExtension(h),m=this.getReadFormatTypeForExt(g)||this._readFormatTypes[0];try{const y=await fetch(c,{...a,signal:p.signal});if(clearTimeout(f),!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: ${h}`);return{workbook:await this._fromArrayBuffer(x,m.key,t),title:o||$.TextUtils.getBaseName(h,!0)||"fetched-file",formatType:m}}catch(y){throw clearTimeout(f),y.name==="AbortError"?new Error(`Fetch timeout after ${d}ms: ${h}`):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 f=0;for(const g of l)p.set(g,f),f+=g.length;const h=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!h)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(d,h.key,t),title:o||"stream-file",formatType:h}}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={...n,...n?.typedCreateWorkbookOptions?.[i.key]};delete l.typedCreateWorkbookOptions;const c=i.handler;if(!c)throw new Error(`Unable to resolve handler for type: ${i?.description??$.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await l.onStart?.(r);const d=await c(a,l);o=new lN(t,d,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,f)=>{let h;typeof SharedArrayBuffer<"u"&&f instanceof SharedArrayBuffer?(h=new ArrayBuffer(f.byteLength),new Uint8Array(h).set(new Uint8Array(f))):h=f,function(g,m){const y=URL.createObjectURL(g),x=document.createElement("a");x.style.display="none",x.href=y,x.download=m,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(y)}(new Blob([h],{type:"application/octet-stream"}),p)})(c,d)}catch(p){throw new Error("Unable to write file.",{cause:p})}return!0}}class lN{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 sN=new kC;var ly,sy,cN=function(){if(sy)return ly;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 f=a.lastIndexOf("/");if(f!==a.length-1){f===-1?(a="",l=0):l=(a=a.slice(0,f)).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}sy=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,f=-1,h=0;h<=p;++h){if(h===p){if(d>p){if(r.charCodeAt(c+h)===47)return r.slice(c+h+1);if(h===0)return r.slice(c+h)}else l>p&&(o.charCodeAt(i+h)===47?f=h:h===0&&(f=0));break}var g=o.charCodeAt(i+h);if(g!==r.charCodeAt(c+h))break;g===47&&(f=h)}var m="";for(h=i+f+1;h<=a;++h)h!==a&&o.charCodeAt(h)!==47||(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(c+f):(c+=f,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 f=o.charCodeAt(i);if(f===47){if(!c){a=i+1;break}}else p===-1&&(c=!1,p=i+1),d>=0&&(f===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,f=!0,h=o.length-1,g=0;h>=i;--h)if((a=o.charCodeAt(h))!==47)p===-1&&(f=!1,p=h+1),a===46?c===-1?c=h:g!==1&&(g=1):c!==-1&&(g=-1);else if(!f){d=h+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,ly=n}();const cy=/^(con|prn|aux|nul|com\d|lpt\d)$/i,dy=/[<>:"/\\|?*\u0000-\u001F]/g,Ml=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:dy,WINDOW_FILENAME_RESERVED_REGEX:cy,isValidWindowsFilename:e=>!(!e||e.length>255||dy.test(e)||cy.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 cN.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"})),uy=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:kC,IOUtils:Ml,WorkbookIO:sN},Symbol.toStringTag,{value:"Module"})),dN=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(" "))},EC=async e=>{const t=Ml.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new $5(`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 $5(`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=Ml.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:dN(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)},h5={fontSize:"0.8rem",marginRight:"4px"},uN=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(lv,{sx:h5}):n.metadata?.icon==="macro"?s.jsx(G3,{sx:h5}):s.jsx(zx,{sx:h5}),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!==on.Enter&&c.keyCode!==on.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=>pt(c.palette.text.secondary??c.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),MC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:a=CC,...l}=e,[c,d]=u.useState([]),[p,f]=u.useState(!0),h=_o(n,["executeSelectedScript"]),g=h[0]?.context?.();u.useEffect(()=>{(async()=>{try{const y=await EC(a);d(y)}catch{}finally{f(!1)}})()},[a]);const m=u.useCallback((y,x)=>{if(p)return s.jsx("div",{children:"Loading..."});const v={variant:Zt.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=k=>{g.getEditor()?.insertSnippet(k.content),y.closeFloat()},w=[];for(let k=0;k<c.length;k++){const j=c[k];j&&w.push(s.jsx(uN,{handleInsert:b,snippet:j},j.path))}const M=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(Ft,{orientation:"horizontal"})]}):null,u.createElement(Ge,{...v,key:"help",command:n.getCommand("help"),icon:ze(s.jsx(iv,{}))})]});return Bn({...y,children:M})},[i,o,r,p,g]);return s.jsx(Xn,{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(MD,{})),...l})})),Wf=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(l1,{parentFloat:o,style:{},children:s.jsx(Ge,{...c,command:n.getCommand("saveScripts"),icon:ze(s.jsx(TD,{}))})})}),s.jsx("div",{style:{flex:"1 1 100%"}}),s.jsx("div",{children:s.jsx(l1,{parentFloat:o,style:{},children:s.jsx(MC,{...c,commands:n})})})]})})},[n]);return s.jsx(M1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})}));Wf.displayName="ScriptEditorToolbar";const f5={fontSize:"1rem"},TC=u.memo(u.forwardRef((e,t)=>{const{scriptPath:n=CC,onScriptSelect:o,sx:r=jn.EmptyCssProperties,className:i,buttonMinWidth:a=210,buttonMinHeight:l=80,gap:c=12,...d}=e,[p,f]=u.useState([]),[h,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 EC(n);for(let M=0;M<w.length;M++){const k=w[M];k&&b.push(k)}}catch(w){y(w instanceof Error?w.message:"Failed to load scripts"),w instanceof $5||console.error("Error loading scripts:",w)}finally{f(b),g(!1)}})()},[n]),h)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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,...r},...d,children:s.jsx(h3,{})});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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(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(G3,{sx:f5}):w==="formula"?s.jsx(lv,{sx:f5}):w==="autostart"?s.jsx(zx,{sx:f5}):null};return s.jsxs(Ae,{ref:t,className:Eo(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(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(zc,{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]})}));TC.displayName="TemplateSelectPanel";const Uf=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,...f}=e,h=Ki(),[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 O=!1;return w(null),async function(){if(p&&(await p.start(),!O)){const N=p.getModules().search()[0]?.getSource();w({source:N||null})}}(),()=>{O=!0}},[p]);const M=u.useCallback(O=>{v(N=>({...N,...O}))},[]),k=u.useRef(null),j=u.useRef(null),[_,L]=u.useState(null),T=u.useRef(null),D=Te(O=>{if(_)return _.focus(O),!0;if(c){const N=j.current?.querySelectorAll?.(c);if(N&&N.length>0)return N[0]?.focus?.(O),!0}return j.current?.focus?.(O),!1},[_,c,d]),C=u.useMemo(()=>s.jsx(Gl,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),S=u.useMemo(()=>s.jsx(Ti,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,marginLeft:O=>O.spacing(.5),marginRight:O=>O.spacing(.5),marginTop:O=>O.spacing(1),marginBottom:O=>O.spacing(1)},children:s.jsx(Wf,{commands:i})}),[h,i]),R=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 ${h.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:O=>O.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:O=>O.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:O=>O.palette.text.secondary},variant:"caption",children:x.cursor})]})}),[x]),P=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:[S,s.jsx(Ae,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:s.jsx(HB,{ref:j,loadingPanel:C,readOnly:a,onClose:l,autoFocus:d,commands:i,onStatusChange:M,darkMode:h.palette.mode==="dark",...r})}),R]}),[h,i,S,R,g,C,a,r,d,c,l,M]),I=u.useMemo(()=>s.jsx(Mx,{className:Eo({"Mui-selected":y.current}),sx:{display:"flex",color:O=>O.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:O=>`${O.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:O=>O.transitions.duration.shortest/2+"ms"},backgroundColor:O=>pt(O.palette.action.hover,.03),borderBottom:O=>`solid ${pt(O.palette.divider,.2)} 1px`},onPointerDown:O=>{O.isDefaultPrevented()||(O.preventDefault(),D())},children:s.jsxs(Ae,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:O=>O.spacing(.25),marginBottom:O=>O.spacing(.25),marginLeft:O=>O.spacing(1),marginRight:O=>O.spacing(1)},children:[s.jsx(Ae,{sx:{flex:"1 1 100%",paddingLeft:O=>O.spacing(1)},children:"Script (Typescript)"}),s.jsx(br,{label:"Close",children:s.jsx(Tr,{"aria-label":"close",sx:{color:O=>O.palette.text.icon??O.palette.action.active},touchRippleRef:k,onPointerDown:O=>{k.current?.start(O,{center:!1}),O.stopPropagation(),O.preventDefault()},onPointerUp:()=>{j.current?.close()},children:s.jsx(M3,{})})})]})}),[h,g]),z=u.useMemo(()=>{let O;return b===null?null:(b.source===null&&(O=s.jsx(TC,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:N=>{j.current?.getEditor().insertSnippet(N.content),w({source:N.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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},onPointerDown:N=>{N.isDefaultPrevented()||j.current?.focus()},children:[I,s.jsxs(Ae,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[P,O]})]}))},[S,P,n,b]),A=ir(t,()=>({isScriptWorkspaceElement:()=>!0,focus:O=>{D(O)}}),[]);return s.jsx(Ae,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:A,...f,onFocus:O=>{m(!0),y.current=!0,A.current?.contains(O.target)&&O.target!==A.current&&L(O.target),O.relatedTarget&&!T.current&&(T.current=O.relatedTarget),f?.onFocus?.(O)},onBlur:O=>{A?.current?.contains(O.relatedTarget)||A?.current===O.relatedTarget||(T.current=null,y.current=!1,m(!1)),f?.onBlur?.(O)},children:z})}));Uf.displayName="ScriptWorkspace";const qf=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 f={variant:Zt.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},h=l?.getScripts(),g=h?.searchFunction({type:"macro"}),m=[];if(g)for(let x=0;x<g.length;x++){const v=g[x];m.push(s.jsx(Ge,{...f,command:p.getCommand("executeScript"),commandState:{declaration:v},tooltipProps:{description:`Execute ${v.getName()??"script"}`},icon:ze(s.jsx(G3,{})),label: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(Ft,{orientation:"horizontal"})]}):null,u.createElement(Ge,{...f,key:"show-editor",command:p.getCommand("showScriptEditor"),icon:ze(s.jsx(xD,{}))})]});return Bn({...d,children:y})},[i,l,o,r]);return s.jsx(Xn,{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(ED,{})),...a})})),pN=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:f}=d,h=s.jsx(Qs,{...f,command:n.getCommand("formatFontColor"),icon:s.jsx(MP,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),g=s.jsx(Qs,{...f,command:n.getCommand("formatFillColor"),icon:s.jsx(EP,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:Os.End}}),m=n.getCommand("undo")?s.jsx(s.Fragment,{children:s.jsx(_f,{...f,quickCommand:"undo"})}):null,y=n.getCommand("find")?s.jsx(s.Fragment,{children:s.jsx(HS,{...f})}):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 M=0;w&&!b&&M<w?.length;M++)b=!0;b&&(x=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{}),s.jsx(qf,{...f})]}))}return s.jsxs(l1,{parentFloat:o,children:[m,null,m?s.jsx(Ft,{}):null,s.jsx(jf,{...f,command:n.getCommand("paste")}),s.jsx(Ge,{...p,command:n.getCommand("formatPainterToggle"),icon:ze(s.jsx(DO,{}))}),s.jsx(H2,{...p,command:n.getCommand("copy")}),s.jsx(Ft,{}),s.jsx(ZS,{...f,command:n.getCommand("formatFontFamily")}),s.jsx(WS,{...f,command:n.getCommand("formatFontSize")}),s.jsx(Ge,{...p,command:n.getCommand("formatBoldToggle"),icon:s.jsx(OI,{})}),s.jsx(Ge,{...p,command:n.getCommand("formatItalicToggle"),icon:s.jsx(PI,{})}),s.jsx(YS,{...f}),s.jsx(XS,{...f}),h,s.jsx(Ft,{}),g,s.jsx(NS,{...f}),s.jsx($S,{...f}),s.jsx(Ft,{}),s.jsx(Zv,{...f}),s.jsx(Xv,{...f}),s.jsx(Yv,{...f}),s.jsx(Jv,{...f}),s.jsx(Ft,{}),s.jsx(US,{...f}),s.jsx(tC,{command:n.getCommand("formatCellStyle"),...f}),s.jsx(iC,{command:n.getCommand("formatTableStyle"),...f}),s.jsx(Ft,{}),s.jsx(Ef,{...f}),s.jsx(Mf,{...f}),s.jsx(Ft,{}),s.jsx(qS,{...f}),null,s.jsx(kf,{...f}),s.jsx(Tf,{...f}),y,x]})},[n,a]);return s.jsx(M1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:c,...i})})),hN=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(l1,{parentFloat:o,children:[null,s.jsx(Ge,{...c,command:n.getCommand("updateHyperlink"),icon:ze(s.jsx(dh,{}))}),s.jsx(Ge,{...c,command:n.getCommand("updateComments"),icon:ze(s.jsx(uh,{}))}),s.jsx(If,{...d}),s.jsx(Ge,{...c,command:n.getCommand("insertTable"),icon:ze(s.jsx(Kc,{}))})]})},[n]);return s.jsx(M1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),fN=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(l1,{parentFloat:o,children:[s.jsx(VS,{...d}),s.jsx(Ge,{...c,command:n.getCommand("protectionSheetToggle"),icon:s.jsx(S2,{color:"secondary"})}),s.jsx(Ft,{}),s.jsx(KS,{...d}),s.jsx(JS,{...d}),s.jsx(Ft,{}),s.jsx(Ge,{...c,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:s.jsx(Xs,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),s.jsx(Ge,{...c,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:s.jsx(Xs,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),s.jsx(Ft,{}),s.jsx(QS,{...d}),s.jsx(cC,{command:n.getCommand("selectTheme"),...d}),s.jsx(Ft,{}),s.jsx(qf,{...d,scope:"view"}),s.jsx(Ft,{}),s.jsx(Ge,{...c,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ze(n.getCommand("fullScreenToggle").state()?s.jsx(UO,{}):s.jsx(WO,{}))})]})},[n]);return s.jsx(M1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),_C=e=>s.jsx(xN,{...e}),mN=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=>`${pt(o.palette.primary.main,.35)} solid 2px`}},children:[s.jsx(Pj,{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"}})]})}),gN=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(mN,{label:t[c].label},t[c].label));return l},[t]);return s.jsx(Xj,{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})}),yN=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(v1,{value:d,sx:{color:f=>{if(n===d)return f.palette.primary.main}},children:p},p))}return c},[t,n]);return s.jsx(b1,{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(w2,{value:n,onChange:a,variant:"outlined",sx:{backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},...i,children:l})})}),xN=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,...f}=e,h=u.useMemo(()=>{const k=[],{ref:j,..._}=l?.Home||{};k.push({label:"Home",component:s.jsx(pN,{commands:n,..._})});const{ref:L,...T}=l?.Insert||{};k.push({label:"Insert",component:s.jsx(hN,{commands:n,...T})});const{ref:D,...C}=l?.View||{};return k.push({label:"View",component:s.jsx(fN,{commands:n,...C})}),k},[n]),g=u.useMemo(()=>{const k=[];for(let j=0;j<h.length;j++)k.push(u.cloneElement(h[j].component,{...h[j].component.props,key:h[j].key??h[j].label}));return k},[h]),[m,y]=u.useState(0),x=k=>{y(k)},v=u.useMemo(()=>s.jsx(i?yN:gN,{toolbars:h,value:m,onToolbarChange:x,sx:r}),[h,m,r,i]),{sx:b,...w}=c,M=s.jsx(Ti,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,marginLeft:k=>k.spacing(1),marginRight:k=>k.spacing(1),marginTop:k=>k.spacing(.5),marginBottom:k=>k.spacing(.5),...b},...w,children:g[m]});return s.jsxs(Ae,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:k=>k.spacing(.5),"*":{userSelect:"none"},...p},...f,children:[o?o(v):v,a?a(M):M]})})),bN=e=>s.jsx(Nf,{...e}),vN=e=>s.jsx($f,{...e}),wN=e=>s.jsx(Bf,{...e}),Kf=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=bN,sheetsAllProps:p,renderSheetsAll:f=vN,sheetTabProps:h,renderSheetTab:g,background:m="transparent",className:y,notifier:x,sx:v,borderWidth:b,borderColor:w,gridTheme:M,gridStyle:k,...j}=e,[_,L]=u.useState(n?.getSelectedSheetIndex()),[T,D]=u.useState(n?.getSheets().search()),[C,S]=u.useState(n?.getProtection());cn(n,{onViewChange(ee){L(ee?.getSelectedSheetIndex())},onSheetsChange:ee=>{D(ee.getSheets().search())},onProtectionChange:ee=>{S(ee?.getProtection())}});const R=l||!C.isStructureAllowed(),P=u.useMemo(()=>{const ee=[];for(let ae=0;ae<T.length;ae++)ee.push(T[ae].getName());return ee},[T]),I=u.useCallback(ee=>{r?.(ee)!==!1&&(n.getSheetAt(ee).select(),i?.(ee))},[n,r,i]),z=u.useCallback((ee,ae)=>{n.getSheetAt(ee).setName(ae),i?.(ee)},[n,i]),A=u.useCallback((ee,ae)=>{n.getSheetAt(ee).setPosition(ae),i?.(ae)},[n,i]),O=Te(()=>{if(r?.(_)===!1)return;const ee=_+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(ee)},[n,r,i,_]),N=u.useMemo(()=>({placement:"top-start"}),[]),F=u.useRef(null),[E,B]=u.useState(!1),H=u.useCallback(ee=>{const{closeFloatAll:ae,floatReference:we}=ee;return f({workbook:n,gridStyle:k,floatReference:we,closeFloatAll:ae,...p})},[f,p,a,n,k]),{reference:U,component:Z}=ha({label:"allSheet",popperProps:N,anchor:F.current,onOpen:()=>B(!0),onClose:()=>B(!1),createPopupPanel:H}),G=u.useRef(null),[V,le]=u.useState(null),re=u.useCallback(ee=>{const{floatReference:ae}=ee;return d?.({workbook:n,index:V?.index,tabStripRef:G.current,commands:o,disabled:a,floatReference:ae,...c})},[d,c,a,n,o,V]),{reference:ge,component:Q}=ha({label:"sheetTab",popperProps:N,anchor:{getBoundingClientRect:()=>new DOMRect(V?.left||0,V?.top||0,0,0)},onClose:()=>le(null),createPopupPanel:re});u.useEffect(()=>{V?ge.open(0):ge.close(0)},[V]);const xe=u.useCallback((ee,ae)=>{ee.preventDefault(),le({left:ee.clientX-2,top:ee.clientY-4,index:ae})},[]),be=Te(ee=>{let ae;try{ae=n?.getSheetAt(ee.index)}catch{}return ae?(g??wN)({sheet:ae,gridTheme:M,onContextMenu:we=>{I(ee.index),xe(we,ee.index)},...ee,...h}):null},[g,h,n,M]),Fe=u.useMemo(()=>R?null:s.jsx(di,{disableInteractive:!0,title:"New sheet",children:s.jsx(Tr,{disabled:a,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:ee=>ee.palette.primary.main},color:ee=>ee.palette.text.icon??ee.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:ee=>{ee.button===0&&ee.preventDefault()},onClick:()=>O(),children:s.jsx(tR,{})})}),[a,R,O]);return s.jsxs(Ae,{ref:t,className:Eo(y),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...v},...j,children:[s.jsx(DS,{ref:G,selectedTabIndex:_,tabNames:P,onSelectedTabIndexChange:I,onTabNameChange:z,onTabMove:A,background:m,borderColor:w,borderWidth:b,activeColor:null,disabled:a,disableDrag:R,createScrollStartButton:jD,createScrollEndButton:RD,createScrollEdgeButton:_D,createTabButton:be,createTabDivider:ee=>{const{key:ae,...we}=ee;return s.jsx(Ft,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:se=>pt(se.palette.divider,.25)},...we},ae)},editLabelProps:{readOnly:R,maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:ee=>{n.isValidSheetNameCharacter(ee.key)||ee.preventDefault()},onCancel:()=>{i?.(_)},notifier:x},children:s.jsx(di,{disableInteractive:!0,title:E?"":"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:ee=>ee.palette.text.icon??ee.palette.action.active},ref:F,dense:!0,outlined:!1,selected:E,color:"primary","aria-label":"menu",onMouseDown:ee=>{ee.button===0&&ee.preventDefault()},onClick:()=>{E?U.close(0):U.open(0)},icon:s.jsx(uR,{})})})}),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:Fe}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,flex:1,minWidth:"24px"}}),Q,Z]})}));Kf.displayName="WorkbookStrip";const Gf=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(S=>S+1,0),[f,h]=u.useState(n.getSelectedSheet()),[g,m]=u.useState(f.getSelectedRanges()),[y,x]=u.useState(f.getSelectedCell());cn(n,{onSheetsChange(){h(n.getSelectedSheet())}}),cn(f.getSelection(),{onChange(){m(f.getSelectedRanges()),x(f.getSelectedCell())}}),_o(o,[],{onChange:()=>{p()}});const v=u.useMemo(()=>({}),[]),b=u.useMemo(()=>({commandHook:{beforeExecute:(S,R)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:a}),[r,a]),w=u.useMemo(()=>({...v,...b,variant:Zt.Menuitem}),[v,b]),M=u.useMemo(()=>({commands:o,variant:Zt.Menuitem,parentFloat:a,...b}),[o,b,a]),k=[];let j=g.isEntireRows(),_=g.isEntireColumns();g&&(j&&(k.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+k.length)),k.push(u.createElement(Ge,{command:o.getCommand("hideColumns"),...w,icon:ze(s.jsx(TO,{})),key:"context:"+k.length})),k.push(u.createElement(Ge,{command:o.getCommand("unhideColumns"),...w,icon:ze(s.jsx(MO,{})),key:"context:"+k.length}))),_&&(k.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+k.length)),k.push(u.createElement(Ge,{command:o.getCommand("hideRows"),...w,icon:ze(s.jsx(jO,{})),key:"context:"+k.length})),k.push(u.createElement(Ge,{command:o.getCommand("unhideRows"),...w,icon:ze(s.jsx(_O,{})),key:"context:"+k.length}))),(j||_)&&k.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+k.length)),j&&k.push(u.createElement(Ge,{command:o.getCommand("autoFitColumns"),...w,icon:ze(s.jsx(iD,{})),key:"context:"+k.length})),_&&k.push(u.createElement(Ge,{command:o.getCommand("autoFitRows"),...w,icon:ze(s.jsx(aD,{})),key:"context:"+k.length})));const L=[],T=o.getCommand("formatTableStyle"),D=T?.context()?.table();if(rl(T),!j&&!_){if(L.push(s.jsx(Ft,{orientation:"horizontal"},"contextBefore:"+L.length)),y?.getHyperlink())L.push(u.createElement(ca,{...M,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+L.length,quickCommand:"openHyperlink",icon:S=>S.key()==="openHyperlink"?ze(s.jsx(dh,{})):null}));else{const S=o.getCommand("updateHyperlink");L.push(u.createElement(Ge,{command:S,...w,icon:ze(s.jsx(dh,{})),key:"contextBefore:"+L.length}))}if(y?.getComments())L.push(u.createElement(ca,{...M,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+L.length,quickCommand:"updateComments",icon:S=>S.key()==="updateComments"?ze(s.jsx(uh,{})):null}));else{const S=o.getCommand("updateComments");L.push(u.createElement(Ge,{command:S,...w,icon:ze(s.jsx(uh,{})),key:"contextBefore:"+L.length}))}D?L.push(u.createElement(ca,{...M,variant:Zt.Menuitem,key:"contextBefore:"+L.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:D,quickCommand:"editTable",icon:S=>(S.key(),ze(s.jsx(Kc,{})))})):L.push(u.createElement(Ge,{command:o.getCommand("insertTable"),...w,icon:ze(s.jsx(Kc,{})),key:"context:"+k.length})),L.push(u.createElement(If,{...M,key:"contextBefore:"+L.length}))}const C=s.jsxs(s.Fragment,{children:[s.jsx(Ge,{command:o.getCommand("cut"),...w,icon:s.jsx(FP,{})}),s.jsx(H2,{command:o.getCommand("copy"),...w}),s.jsx(jf,{command:o.getCommand("paste"),...M,includePasteAllInPopup:!1}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Tf,{...M}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ef,{commands:o,...M,disableSheet:!0}),s.jsx(Mf,{commands:o,...M,disableSheet:!0}),s.jsx(kf,{...M}),L,k]});return s.jsx(Ae,{ref:t,className:Eo("menu",l),sx:{...i},...c,children:C})}));var py,hy;Gf.displayName="WorkbookContextMenu",function(){if(hy)return py;hy=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 bs=="object"&&bs&&bs.Object===Object&&bs,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,f=function(){return l.Date.now()};function h(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(h(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=h(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}py=function(m,y,x){var v,b,w,M,k,j,_=0,L=!1,T=!1,D=!0;if(typeof m!="function")throw new TypeError("Expected a function");function C(z){var A=v,O=b;return v=b=void 0,_=z,M=m.apply(O,A)}function S(z){var A=z-j;return j===void 0||A>=y||A<0||T&&z-_>=w}function R(){var z,A,O=f();if(S(O))return P(O);k=setTimeout(R,(A=y-((z=O)-j),T?p(A,w-(z-_)):A))}function P(z){return k=void 0,D&&v?C(z):(v=b=void 0,M)}function I(){var z,A=f(),O=S(A);if(v=arguments,b=this,j=A,O){if(k===void 0)return _=z=j,k=setTimeout(R,y),L?C(z):M;if(T)return k=setTimeout(R,y),C(j)}return k===void 0&&(k=setTimeout(R,y)),M}return y=g(y)||0,h(x)&&(L=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,D="trailing"in x?!!x.trailing:D),I.cancel=function(){k!==void 0&&clearTimeout(k),_=0,v=j=b=k=void 0},I.flush=function(){return k===void 0?M:P(f())},I}}();var fy,my,gy={};my||(my=1,function(){if(fy)return gy;fy=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(),f=n({inst:{value:p,getSnapshot:d}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=d,a(h)&&g({inst:h})},[c,p,d]),o(function(){return a(h)&&g({inst:h}),c(function(){a(h)&&g({inst:h})})},[c]),i(p),p};gy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var yy,xy,Pd={exports:{}},fs={exports:{}},SN=fs.exports;(function(){if(xy)return Pd.exports;xy=1;for(var e=(yy||(yy=1,function(){var f,h,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?fs.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(fs.exports=function(){return(f()-y)/1e6},h=process.hrtime,m=(f=function(){var v;return 1e9*(v=h())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(fs.exports=function(){return Date.now()-g},g=Date.now()):(fs.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(SN)),fs.exports),t=typeof window>"u"?bs: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(f){if(d.length===0){var h=e(),g=Math.max(0,p-(h-l));l=g+h,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:f,cancelled:!1}),c},i=function(f){for(var h=0;h<d.length;h++)d[h].handle===f&&(d[h].cancelled=!0)}}Pd.exports=function(f){return r.call(t,f)},Pd.exports.cancel=function(){i.apply(t,arguments)},Pd.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();var na={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 jC=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:a,onShowSidebar:l,onNewWorkbook:c=RC}=e,[d,p]=u.useState(t?.getSelectedSheet()),[f,h]=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 We("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new We("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new We("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 We("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 We("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new We("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 We("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new We("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl]}]}),new We("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl]}]}),new We("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl,$e.Shift]}]}),new We("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl,$e.Shift]}]}),new We("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new We("selectNamed",r,{label:S=>S?.getName()??"Select Named Item",scopedLabels:{namedItem:S=>S?.getName()??"Select"},description:"Select the item."}),new We("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 We("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 We("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 We("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new We("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[$e.Alt]}]},function(S=!0){g?.()}),new We("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new We("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new We("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new We("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[$e.Ctrl]}}),new We("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new We("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 S=null;return S=i?i.createChildGroup(r,"workbook",!1):new a0(r,"workbook"),S.addCommands(y,!0),S},[i,y]),v=Wi(),b=u.useRef(null),w=Te(()=>{let S,R=null;const P=x.getCommand("executeScript");if(P.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!P)return;const I=x.getCommand("executeSelectedScript");if(!I)return;const z={saveSource:async A=>{let O=null,N=null;const F=t.getScripts();try{A&&(N=await o?.showBusy?.("Saving Scripts..."),O=await F.createModule({source:A})),F.addModule("scripts",O,{replace:!0}),N?.()}catch(E){N?.(),console.warn("Unable to compile",E),o?.showError?.(E)}return O},addContainerListener:A=>(M.current=A,()=>{M.current=null}),setSelectedFunction:A=>{S=A??b.current??null,Promise.resolve(S).then(O=>{I.update({disabled:O===null})})},quickInsertFunction:A=>{const O=`=${A.toUpperCase()}(`,N={text:O+")",editMode:!0,initialSelection:{start:O.length,end:O.length+0}};v.setMode(F=>F?.key==="edit"?{...F,args:{...F.args}}:{key:"edit",args:{stateAndCoords:null,start:N}})},getSelectedFunction:()=>S,setEditor:A=>{R=A??null,x.getCommand("showScriptEditor")?.update({state:A!==null})},getEditor:()=>R,getRanges:A=>{try{return t.getRanges(A)}catch{}return null},getScripts:()=>t.getScripts(),isReadOnly:()=>t.getProtection().isStructureAllowed()===!1};I.update({context:z})},[x,t,n,o]),M=u.useRef(null);cn(t,{onBeforeSave:async()=>{await M.current?.onBeforeSave()},onProtectionChange:()=>{M.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),M.current?.onScriptChange()))()}}),cn(t,{onSheetsChange:S=>{h(S.getSheets().search())},onViewChange(S){p(S?.getSelectedSheet())},onProtectionChange:S=>{const R={disabled:!S.getProtection().isStructureAllowed()};x.getCommand("hideSheet").update(R),x.getCommand("deleteSheet").update(R),x.getCommand("addSheet").update(R),x.getCommand("duplicateSheet").update(R),x.getCommand("selectTheme").update(R),x.getCommand("addNamedReference").update(R),x.getCommand("editNamedReference").update(R),x.getCommand("deleteNamedReference").update(R)},onScriptsChange:S=>{w()}});const{isFullscreenAvailable:k,isFullscreenEnabled:j,toggleFullscreen:_}=function(S={}){const{target:R,onChange:P,onError:I,requestFullScreenOptions:z}=S,[A,O]=u.useState(!1),[N,F]=u.useState(null),[E,B]=u.useState(!1),H=u.useCallback(()=>na.requestFullscreen(R?.current||null,z),[R,z]),U=u.useCallback(()=>na.exitFullscreen(),[]),Z=u.useCallback(()=>na.fullscreenElement?U():H(),[H,U]),G=u.useCallback(le=>{const re=na.fullscreenElement;F(re),B(!!re),P?.(le)},[P]),V=u.useCallback(le=>{const re=na.fullscreenElement;F(re),B(!!re),I?.(le)},[I]);return u.useEffect(()=>{O(na.fullscreenEnabled)},[]),u.useEffect(()=>(na.on("change",G),na.on("error",V),()=>{na.off("change",G),na.off("error",V)}),[G,V]),{isFullscreenAvailable:A,fullscreenElement:N,isFullscreenEnabled:E,enableFullscreen:H,disableFullscreen:U,toggleFullscreen:Z}}({target:{current:n??document.body}}),L=wf();u.useEffect(()=>{x.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:L,darkMode:a})})},[t?.getTheme(),a]);const T=Te(async function(S,R){let P=null;const I=t.getScripts();if(S?.declaration||S?.functionName){const z=S.declaration?S.declaration.getName():S.functionName;I.searchFunction({name:z}).length>0&&(P=z)}if(P)try{await I.executeMacro(P),b.current=Promise.resolve({source:null,name:P})}catch(z){return void o?.showError?.(z)}},[t,o]);u.useEffect(()=>{x.getCommand("newCellStyle").updateCallback(S=>{o?.showInputOptions?.({initialValue:(()=>{let R=0;for(;;){R++;const P=`Style ${R}`;try{return t.getStyles().validateStyleName(P,!0),P}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(R,P)=>{let I=null;try{t.getStyles().validateStyleName(R,!1)}catch(O){I=O.message}let z=t.getStyles().getNamed(R),A=I;return!A&&z&&(A=`Update style '${z.getName()}'.`),{valid:I===null,message:A}}}).then(({input:R,option:P})=>{const I=t.getSelectedSheet().getSelectedRange();if(P!=="Ok")return;const z=t.getStyles().setNamed({name:R,style:I.getCell().getStyle()});I.updateStyle({named:z.getName()})})}),x.getCommand("deleteCellStyle").updateCallback(S=>{S.delete()}),x.getCommand("modifyCellStyle").updateCallback(({named:S})=>{const R=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:S.getName(),style:R.getCell().getStyle()})}),x.getCommand("hideSheet").updateCallback(S=>{t.getSheetAt(S).setVisibility($.ISheet.Visibility.Hidden)}),x.getCommand("deleteSheet").updateCallback(async S=>{t.getSheetAt(S??t.getSelectedSheetIndex())?.delete()}),x.getCommand("addSheet").updateCallback(S=>{t.getSheets().add({index:S,autoSelect:!0})}),x.getCommand("duplicateSheet").updateCallback(async S=>{(await t.getSheetAt(S??t.getSelectedSheetIndex())?.duplicate())?.select()}),x.getCommand("nextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),x.getCommand("previousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),x.getCommand("selectNextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),x.getCommand("selectPreviousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),x.getCommand("selectTheme").updateCallback(S=>{t.setTheme(S)}),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 D=Te(async S=>{let R=0,P=null,I="Find & Replace";S?.replace&&!S?.replaceOptions?.maxCount&&(I="Replace All");const z=await o?.showBusy?.(I);try{const A=S?.scope??"sheet";let O=null;const N={from:t.getSelectedSheet().getSelectedCell(),...S.findOptions};if(O=A==="sheet"?t.getSelectedSheet().find(S.findText,N):t.find(S.findText,N),S.replace){const F=t.replace(O,S.replaceText,S.replaceOptions);R=F.count,S.replaceOptions.maxCount&&(P=F.last)}else{let F=O.next();F.done||(R++,P=F.value)}P?.select({autoFocus:!1}),z?.(),!S.replaceOptions.maxCount&&R>1&&o?.showMessage?.(`We replaced ${R} cells.`)}catch(A){z?.(),o?.showError?.(A)}return R},[t,n]),C=Te(S=>{const R={value:S,context:{selection:()=>{const P=t.getSelectedRanges(),I=[];for(let z=0;z<P.getCount();z++){const A=P.at(z).getFixed(!0).getCoords();I.push(A)}return t.getRanges(I)},getNames:()=>t.getNames()},onUpdate:async P=>{try{await P.select()}catch(I){o?.showMessage?.(I.message,{type:pa.Error})}}};return o.showWindow?.("namedDetails",R)},[o,t,n]);return u.useEffect(()=>{const S=(R=!1)=>{const P=t.getSelectedCell(),I={onFindOrReplace:D,onKeyDown:z=>{x.findCommandByEvent(z)!==x.getCommand("find")&&x.findCommandByEvent(z)!==x.getCommand("findReplace")||z.preventDefault()},findOptions:{},findText:P.toTextUnformatted(!0)};I.replace=R,o.showWindow?.("find",I,{disableAutoDestroy:!0})};x.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S()}),x.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S(!0)}),x.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const R={onInputOption:async P=>{try{await t.getRanges(P).select()}catch(I){o?.showMessage?.(I.message,{type:pa.Error})}},onKeyDown:P=>{x.findCommandByEvent(P)===x.getCommand("goto")&&P.preventDefault()},title:x.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(R)}),x.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async R=>{if(R)try{await R.select()}catch(P){o?.showError?.(P)}}),x.getCommand("addNamedReference")?.updateCallback(async function(R){C(null)}),x.getCommand("editNamedReference")?.updateCallback(async function(R){C(R)}),x.getCommand("deleteNamedReference")?.updateCallback(async function(R){R?.delete?.()}),x.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),cn(t?.getView(),{onViewChange:S=>{x.getCommand("workbookViewToggleShowFormulaBar").update({state:S.isShowFormulaBar()}).updateCallback(()=>{S.setShowFormulaBar(!S.isShowFormulaBar())}),x.getCommand("workbookViewToggleShowTabs").update({state:S.isShowTabs()}).updateCallback(()=>{S.setShowTabs(!S.isShowTabs())}),x.getCommand("workbookViewToggleShowStatusBar").update({state:S.isShowStatusBar()}).updateCallback(()=>{S.setShowStatusBar(!S.isShowStatusBar())}),x.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:S.isShowHorizontalScrollbar()}).updateCallback(()=>{S.setShowHorizontalScrollbar(!S.isShowHorizontalScrollbar())}),x.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:S.isShowVerticalScrollbar()}).updateCallback(()=>{S.setShowVerticalScrollbar(!S.isShowVerticalScrollbar())})}}),u.useEffect(()=>{x.getCommand("fullScreenToggle").update({state:j,disabled:!k}).updateCallback(()=>{_()})},[j,k]),u.useEffect(()=>{const S=t.getProtection().isStructureAllowed();x.getCommand("hideSheet").update({disabled:f.length<=1||!S}),x.getCommand("deleteSheet").update({disabled:f.length<=1||!S})},[f,d]),x},RC=()=>{window.open(window.origin.toString(),"sheetxl-"+$.CommonUtils.uuidV4(),"popup=true")},IC=u.memo(u.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:a,...l}=e;cn(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:Zt.Menuitem,...c,...d}),[c,d]),f=u.useMemo(()=>({commands:o,variant:Zt.Menuitem,parentFloat:a,...d}),[o,d,a]),h=m=>{switch(m?.key()){case"moveToFront":return ze(s.jsx(sD,{}));case"moveForward":return ze(s.jsx(cD,{}));case"moveToBack":return ze(s.jsx(lD,{}));case"moveBackward":return ze(s.jsx(dD,{}));case"toggleLockAspectRatio":return ze(s.jsx(K7,{}));case"formatDrawAlignLeft":return ze(s.jsx(Z7,{}));case"formatDrawAlignCenter":return ze(s.jsx(uD,{}));case"formatDrawAlignRight":return ze(s.jsx(pD,{}));case"formatDrawAlignTop":return ze(s.jsx(hD,{}));case"formatDrawAlignMiddle":return ze(s.jsx(fD,{}));case"formatDrawAlignBottom":return ze(s.jsx(mD,{}));case"formatDrawDistributeHorz":return ze(s.jsx(gD,{}));case"formatDrawDistributeVert":return ze(s.jsx(yD,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ze(s.jsx(G7,{}));default:return null}},g=s.jsxs(s.Fragment,{children:[s.jsx(H2,{command:o.getCommand("copy"),...p,variant:Zt.Menuitem}),[],s.jsx(Ft,{orientation:"horizontal"}),s.jsx(ca,{...f,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:h}),s.jsx(ca,{...f,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:h}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ge,{...p,command:o.getCommand("toggleLockAspectRatio"),icon:ze(s.jsx(K7,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(ca,{...f,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:m=>h(m)||ze(s.jsx(Z7,{})),tooltip:"Quickly change the placement of your drawings."}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(ca,{...f,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:m=>h(m)||ze(s.jsx(G7,{})),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})}));IC.displayName="MovableContextMenu";const CN={fireOnModelChange:!1},m5={flex:"1 1 100%",display:"flex"},kN=e=>s.jsx(Af,{...e}),EN=e=>s.jsx(Kf,{...e}),MN=e=>s.jsx(IC,{...e}),TN=e=>s.jsx(Gf,{...e}),_N=e=>s.jsx(Ff,{...e}),jN=(e,t)=>s.jsx(zf,{ref:t,...e}),PC=e=>s.jsx(Gl,{...e}),RN=(e,t)=>s.jsx(rS,{ref:t,...e}),Zf=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:f,onBlur:h,onKeyDown:g,onRepeatCommandChange:m,commands:y,showFormulaBar:x,formulaBarProps:v,renderFormulaBar:b=jN,showTabs:w,tabsProps:M,renderTabs:k=EN,showStatusBar:j,statusBarProps:_,renderStatusBar:L=kN,toolbarProps:T,renderToolbar:D=_C,contextMenuSx:C,renderContextMenu:S=TN,renderFilterMenu:R=_N,renderMovableMenu:P=MN,renderLoadingPanel:I=PC,loadingPanelProps:z,sheetProps:A,renderSheet:O=RN,showHorizontalScrollbar:N,showVerticalScrollbar:F,gridTheme:E,headersTheme:B,enableDarkImages:H,...U}=e,Z=Ki(),G=wf(),V=u.useMemo(()=>{const Ne={theme:G.getDefaultTheme(),...o};return n??new $.Workbook(Ne)},[n]),le=u.useRef(null),[re,ge]=u.useState(!1),Q=u.useRef(null),xe=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:Q}),[]),[be,Fe]=u.useState(!1),[ee,ae]=u.useState(!1),we=u.useCallback(()=>{Fe(!0)},[]),se=u.useRef(null),J=ir(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>V,getSheetElement:()=>le.current,getViewportElement:()=>Q.current,getFormulaBarElement:()=>se.current,focus(){le&&le.current&&le.current.focus()}}),[V]),ce=u.useRef(null);u.useLayoutEffect(()=>{be&&J.current&&(ae(!0),ce.current!==i&&(i?.({source:J.current}),ce.current=i))},[be,J.current]),J.current;const ne=u.useCallback(Ne=>(le.current?.submitEdit(),!0),[]),Pe=u.useCallback(()=>{requestAnimationFrame(()=>{le?.current?.focus()})},[]),[Ee,it]=u.useState(V?.getSelectedSheet()),[Ue,ke]=u.useState(V?.getProtection());cn(V,{onSheetsChange:Ne=>{it(Ne?.getSelectedSheet())},onViewChange(Ne){it(Ne?.getSelectedSheet())},onProtectionChange:Ne=>{ke(Ne?.getProtection())}}),cn(V,{onRequestSelect:async(Ne,yt)=>new Promise(Ht=>{le.current.getSheet()!==yt?le.current.getGridElement()?.onViewChangeOnce(()=>{le.current.getSheet()!==yt&&Ht(!1),Ht(!0)}):Ht(!0)})},CN);const[_e,Xe]=u.useReducer(Ne=>Ne+1,0),Be=V?.getView();cn(Be,{onViewChange:Ne=>{Xe()}});const ct=E??Z,et=u.useMemo(()=>Zh(Z,ct),[Z,ct]),he=B??Z,Ye=u.useMemo(()=>Zh(Z,he),[Z,he]),[Se,Ie]=u.useState(null);u.useCallback(()=>{le.current.focus()},[]);const[de,Oe]=u.useState(!1),Le=u.useRef(null),je=jC({workbook:V,workbookElement:J.current,commandTarget:()=>le.current,notifier:a,commands:y,darkMode:et.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{de?Le.current?.focus():Oe(!0)}}),K=u.useRef(null),[W,te]=u.useState(!1),[oe,ue]=u.useState(null),[ie,pe]=u.useState(gp),[fe,ye]=u.useState($.TypesUtils.EmptyBounds),De=()=>{te(!1),ue(null)},Ve=(Ne,yt,Ht=gp)=>{ye(Ne),pe(Ht),ue(yt),K.current!==null&&K.current.update(),te(!0)},[Je,ot]=u.useState("sheet"),tt=w??Be?.isShowTabs(),Lt=N??Be?.isShowHorizontalScrollbar(),At=x??Be?.isShowFormulaBar(),_t=j??Be?.isShowStatusBar(),Yt=F??Be?.isShowVerticalScrollbar(),Jt=et?.header?.edgeStrokeFill||"rgb(171,171,171)",Qt=u.useMemo(()=>_t?L({sheet:Ee,gridStyle:et,..._}):null,[L,_,_t,et,Ee]),rn=u.useMemo(()=>D({commands:je,workbook:J.current,...T}),[je,D,T,Z]),[yn,{width:dn}]=a1(),kt=dn===0||dn>560,xn=u.useMemo(()=>{if(!tt)return null;let Ne=k({background:et.body.fill,borderWidth:1,borderColor:Jt,gridTheme:ct,gridStyle:et,onBeforeUserChange:ne,onUserChange:Pe,workbook:V,commands:je,sheetTabProps:{},notifier:a,...M});return kt||(Ne=s.jsx("div",{style:{flex:"none",display:"flex"},children:Ne})),Ne},[k,M,a,Z,V,ct,kt,je,tt]),tn=u.useCallback(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;let Ht=null,nn=null,an=null;if(Lt&&(nn=s.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${Jt} 1px`,maxWidth:"100%"},children:s.jsx(qu,{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:Ee,showCustomScrollButtons:!yt,onShowTooltip:It=>{Ve({x:It.anchor.x,y:It.anchor.y,width:0,height:0},It.display,It.placement)},onCloseTooltip:()=>De()})})),tt&&kt&&(an=xn),tt&&kt&&!Lt&&(an=s.jsxs(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[an,s.jsx(Ae,{sx:{borderTop:`solid ${Jt} 1px`,flex:"1"}})]})),an&&Lt)Ht=s.jsx(K5,{position:V.getView().getTabRatio()/10+"%",onPositionChange:({percent:It})=>{V.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='${Z.palette.text.icon??Z.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 ${Jt} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:an,elementAfter:nn});else if(Lt)Ht=nn;else{if(!an)return s.jsx(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:_t?null:`solid ${Jt} 1px`}});Ht=an}return s.jsx(Ae,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:Ht})},[Ee,ne,V,et,ct,je,tt,Lt,_t,kt]),[_n,Nn]=u.useState(null),fn=u.useMemo(()=>({placement:"right-start",..._n?.popperProps}),[_n?.popperProps]),{reference:fo,component:bo}=ha({label:"contextMenu",popperProps:fn,anchor:_n?.anchor??{getBoundingClientRect:()=>new DOMRect(_n?.clientX||0,_n?.clientY||0)},onClose:()=>Nn(null),createPopupPanel:_n?.createPopupPanel});u.useEffect(()=>{_n?fo.open(0):fo.close(0)},[_n]);const Fo=Te((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),_n&&_n.anchor===Ne.currentTarget?Nn(null):Nn({anchor:Ne.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:Ht=>{const{floatReference:nn}=Ht;return R({filter:yt,commands:je,floatReference:nn,sx:{...C}})}})},[R,C,je,V,_n]),tr=Te(Ne=>{if(Ne.originalEvent?.isDefaultPrevented())return!0;Ne.originalEvent?.preventDefault(),Nn({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:yt=>{const{floatReference:Ht}=yt;return S({commands:je,workbook:V,floatReference:Ht,sx:{...C}})}})},[S,C,je,V]),_r=Te((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),Nn({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:Ht=>{const{floatReference:nn}=Ht;return P({movable:yt,commands:je,floatReference:nn,sx:{...C}})}})},[P,C,je]);u.useMemo(()=>{const Ne=[new Tt("openContextMenu",()=>le.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[$e.Shift]},{key:"ContextMenu"}]})];je.addCommands(Ne,!0)},[je]),u.useEffect(()=>{je.getCommand("openContextMenu").updateCallback(()=>{const Ne=Ee.getSelection().getCoords().cell;le.current?.getGridElement()?.scrollCellCoordsIntoView(Ne).then(yt=>{requestAnimationFrame(()=>{const Ht=Ee.getView().getZoomScale()/100,nn=Ee.getColumnHeaders().findOffset(Ne.colIndex+1)*Ht,an=Ee.getRowHeaders().findOffset(Ne.rowIndex+1)*Ht,It=le.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};tr({clientX:nn-It.x-yt.left+6,clientY:an-It.y-yt.top+6})})})})},[Ee]);const jr=Te(Ne=>{je?.dispatchToFocusedCommand(Ne)},[je]),ui=Te(()=>{J.current},[V,J.current]),Gi=u.useCallback(()=>{ot("sheet")},[]),pi=u.useCallback(()=>{ot("formulaBar")},[]),pr=Te(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;return s.jsx(qu,{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:Ee,endGap:700,showCustomScrollButtons:!yt,onShowTooltip:Ht=>{Ve(Ht.anchor,Ht.display,"left")},onCloseTooltip:()=>De()})},[Ee]);u.useEffect(()=>{l&&le&&le.current&&le.current.focus()},[]);const[rt,ft]=u.useState(null),gt=u.useCallback(Ne=>{je?.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&&ft("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"&&ft(null),Ne.preventDefault())},[je]),ut=Te(Ne=>{if(je?.getCommand("openWorkbook")&&(Ne.preventDefault(),Ne.stopPropagation(),ft(null),Ne.dataTransfer.files&&Ne.dataTransfer.files.length>0)){const yt=Ne.dataTransfer.files[0];if(!yt)return;if(yt?.type?.startsWith("image/")){const Ht=le.current?.getGridElement().getViewFromClient(Ne.clientX,Ne.clientY);if(!Ht)return;const nn=Ht.getRelativePointFromClient(Ne.clientX,Ne.clientY),an=Ht.toAbsoluteBounds({...nn,width:0,height:0}),It=Ht.getCellCoordsFromClient(Ne.clientX,Ne.clientY);if(!It)return;je?.getCommand("insertImageFromFile")?.execute({file:yt,options:{bounds:{x:an.x,y:an.y}},goto:{range:{...It}}})}else je?.getCommand("openWorkbook")?.execute(yt)}},[je,rt]),vt=u.useMemo(()=>rt?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:rt})}):null,[rt]),jt=u.useRef(null),Pt=u.useMemo(()=>s.jsx(Gh,{in:!ee,nodeRef:jt,timeout:500,classNames:"animating",unmountOnExit:!0,children:s.jsx(Ae,{style:{display:"flex",alignItems:"center",justifyContent:"center",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:ee?"none":c?.pointerEvents,position:"absolute",boxSizing:"border-box"},children:I({ref:jt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:ee?0:c?.opacity,pointerEvents:ee?"none":c?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...z}})})}),[ee,I,z]),Rt=u.useMemo(()=>b({sx:{marginTop:Ne=>Ne.spacing(.25),marginLeft:Ne=>Ne.spacing(1),marginRight:Ne=>Ne.spacing(1)},workbook:V,sheetElement:le.current,gridStyle:et,onFocus:pi,...v,NamedCollectionEditorProps:{restoreFocus:Ne=>le.current.focus(Ne),notifier:a,...v?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:je,...v?.NamedCollectionEditorProps?.commandPopupButtonProps}}},se),[b,v,V,et,je,ee]),zt=u.useCallback(Ne=>{const{movable:yt,...Ht}=Ne,nn={movable:yt,onContextMenuCapture:Pn=>{_r(Pn,yt)},...Ht},an=yt.getContent().getType();let It=null;if(an==="picture")return s.jsx(iS,{loadingPanel:s.jsx(Gl,{transitionDelay:"100",style:{position:"absolute"},sx:{border:Pn=>`solid 1px ${Pn.palette.action.active}`}}),picture:yt.getContent(),description:yt.getDescription()??yt?.getName(),...nn});if(an==="chart"){const Pn={...nn,chart:yt.getContent()};return s.jsx(RF,{...Pn})}if(It=`Float of type '${an}'.`,typeof It=="string"){const Pn={...nn,description:It};It=s.jsx(wF,{...Pn})}return s.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:It},yt.getUUID())},[]),Dt=u.useMemo(()=>O({style:m5,onFocus:Gi,notifier:a,gridStyle:et,headersStyle:Ye,sheet:Ee,commands:je,onSheetContextMenu:tr,onViewportChange:Ne=>{Ie(Ne)},showScrollbars:!1,viewportComponent:xe,onRepeatCommandChange:m,onElementLoad:we,onShowColumnTooltip:Ne=>{Ve(Ne.anchor,Ne.display,gp)},onShowRowTooltip:Ne=>{Ve(Ne.anchor,Ne.display,q5)},onShowTooltip:Ne=>{Ve({x:Ne.anchor.x,y:Ne.anchor.y,width:0,height:0},Ne.display,Ne.placement)},onCloseTooltip:()=>De(),renderMovable:zt,...A,cellRenderProps:{onFilterButtonMouseDown:(Ne,yt)=>{A?.cellRenderProps?.onFilterButtonMouseDown(Ne,yt),Fo(Ne,yt)},...A?.cellRenderProps}},le),[O,je,A,Ee,et,a,m]),gn=u.useMemo(()=>{if(!de)return null;const Ne=!Ue.isStructureAllowed();return s.jsx(Uf,{sx:{marginBottom:yt=>yt.spacing(.5),border:yt=>`solid ${Ne?yt.palette.action.disabled:pt(yt.palette.divider,.2)} 1px`,borderRadius:yt=>`${yt.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{Oe(!1),requestAnimationFrame(()=>{le.current.focus()})},readOnly:Ne,commands:je,ref:Le,scripts:V.getScripts()})},[de,je,V,a,Ue]),zn=u.useMemo(()=>{const Ne=s.jsx(j3,{style:{...m5,marginRight:gn&&kt?"0px":"6px"},viewport:Se,touchElement:le.current?.getGridElement()?.stage,onScrollViewport:It=>{le.current?.getGridElement()?.scrollTo(It)},showHorizontalScrollbar:Lt||tt,showVerticalScrollbar:Yt,createHorizontalScrollbar:tn,createVerticalScrollbar:pr,children:Dt});let yt=Ne;kt||(yt=s.jsxs(s.Fragment,{children:[Ne,xn]}));let Ht=null,nn=4,an=13;return kt?Ht="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":(Ht="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",nn=13,an=4),s.jsx(K5,{fixedPane:"after",position:"40%",minAfter:kt?"280px":"120px",splitDirection:kt?"row":"column",style:m5,ref:yn,resizerProps:{className:"styled-resizer",style:{minWidth:kt?"6px":void 0,minHeight:kt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${nn}' height='${an}' viewBox='0 0 ${nn} ${an}' version='1.1' fill='${Z.palette.text.icon??Z.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${Ht}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:kt?"left center":"top center"}},elementBefore:yt,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:gn,paneAfterProps:{style:{marginLeft:kt?"0px":"4px",marginRight:kt?"8px":"4px"}}})},[Lt,tt,tn,Yt,Se,gn,Dt,xn,Z,kt]),Cn=u.useMemo(()=>({boxSizing:"border-box",background:Ne=>Ne.palette.mode!=="dark"?et.header.fill:Ne.palette.background.paper,"& *":{...Y3(Z),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${Jt} 1px`},...c}),[c,et]);return s.jsxs(Ti,{className:Eo("sheetxl-workbook","_sheetxl-workbook_1j3lu_5",{"Mui-focusVisible":re},"_sheetxl-theme_4opcr_2",p),sx:Cn,style:d,square:!1,...U,ref:J,onFocus:Ne=>{ge(!0),ui(),f?.(Ne)},onBlur:Ne=>{ge(!1),h?.(Ne)},onKeyDown:Ne=>{jr(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(nC),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:ee?void 0:0,"--sxl-app-color-high-contrast":Z.palette.primary.main,"--sxl-app-color-primary":Z.palette.primary.main,"--sxl-app-color-primary-dark":Z.palette.primary.dark,"--sxl-app-color-primary-light":Z.palette.primary.light,"--sxl-app-color-info":Z.palette.info.main,"--sxl-app-color-info-dark":Z.palette.info.dark,"--sxl-app-color-info-light":Z.palette.info.light,"--sxl-app-color-secondary":Z.palette.secondary.main,"--sxl-app-color-secondary-dark":Z.palette.secondary.dark,"--sxl-app-color-secondary-light":Z.palette.secondary.light,"--sxl-app-color-success":Z.palette.success.main,"--sxl-app-color-success-dark":Z.palette.success.dark,"--sxl-app-color-success-light":Z.palette.success.light,"--sxl-app-color-warning":Z.palette.warning.main,"--sxl-app-color-warning-dark":Z.palette.warning.dark,"--sxl-app-color-warning-light":Z.palette.warning.light,"--sxl-app-color-error":Z.palette.error.main,"--sxl-app-color-error-dark":Z.palette.error.dark,"--sxl-app-color-error-light":Z.palette.error.light,"--sxl-app-color-text":Z.palette.text.primary,"--sxl-app-color-text-secondary":Z.palette.text.secondary,"--sxl-app-color-text-disabled":Z.palette.text.disabled,"--sxl-app-color-background":Z.palette.background.paper,"--sxl-app-color-button-surface":Z.palette.grey[600],"--sxl-app-color-shadow":Z.palette.action.focus,"--sxl-app-color-grey":Z.palette.grey[500],"--sxl-app-filter-dark-invert":et.body.darkMode&&H?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":et.body.darkMode?`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`:void 0},children:[rn,At?Rt:null,s.jsx(Ae,{sx:{marginBottom:Ne=>Ne.spacing(.75)}}),zn,Qt,s.jsx(di,{arrow:!0,disableInteractive:!0,open:W,title:s.jsx(Tn,{variant:"subtitle2",component:"div",children:oe}),placement:ie,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:K,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:W?"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]}),Pt]})}));Zf.displayName="WorkbookElement";const IN=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>pt(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`}},Xf=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,f]=u.useState(!1),[h,g]=u.useState(!1),[m,y]=u.useState(r??""),[x,v]=u.useState(""),[b,{width:w}]=a1(),[M,{width:k}]=a1(),[j,_]=u.useState(!1),L=u.useRef(null),T=u.useRef(null),D=ir(t,()=>({requestWorkbookTitle:(C=null,S)=>{T.current={onAccept:C,requestReason:S?.requestReason},S?.selectAll&&L.current?.select(),L.current?.focus(S)},focus:C=>{L.current?.focus(C)}}),[]);return u.useLayoutEffect(()=>{_(r!==m),v(r),y(r)},[r]),u.useEffect(()=>{j&&w!==0&&Gt.debounce(()=>{_(!1)},300)()},[j,w]),u.useEffect(()=>{g(m&&!Ml.isValidWindowsFilename(m))},[m]),c?null:s.jsx(Ae,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:j?"0":"1",transition:j?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:W2([D,M,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",...IN(!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=>h?C.palette.error.dark:void 0},children:r??i}):s.jsx(Kl,{sx:{width:`${Math.min(w+3,Math.max(k,D.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:C=>h?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=>{f(!0),C.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:L},onBlur:()=>{f(!1),h?y(x):(m!==x&&(a?.(m),m&&T.current?.onAccept?.(m,"blur")),T.current=null)},onChange:C=>{if(C.target.value.length>Ml.MAX_WORKBOOK_NAME_SIZE)return C.stopPropagation(),void C.preventDefault();y(C.target.value)},onKeyDown:C=>{(Ml.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(C.key)||C.target?.value.length>Ml.MAX_WORKBOOK_NAME_SIZE)&&C.preventDefault(),C.which===on.Enter||C.which===on.Tab?(h?y(x):(a?.(m),m&&(T.current?.onAccept?.(m,"keydown"),T.current=null)),C.stopPropagation(),C.preventDefault(),o?.focus()):C.which===on.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})]})})})}));Xf.displayName="WorkbookTitle";const PN=u.lazy(()=>Promise.resolve().then(()=>require("./B5Qc3gXLEhscRsFm.cjs")).then(e=>e.DffuCp_514AjqJLT).then(e=>e.E)),OC=u.memo(u.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,renderLoadingPanel:a,...l}=e;return i&&$.LicenseManager.setLicenseKey(i),u.useMemo(()=>{const c={transitionDelay:"160ms",transparentBackground:!0};return s.jsx(Ae,{sx:n,style:{display:"flex",alignItems:"center",justifyContent:"center",...o},children:a?.(c)??s.jsx(Gl,{...c})})},[n,o,a]),s.jsx(s.Fragment,{children:s.jsx(PN,{...l,className:r,sx:n,renderLoadingPanel:a,style:o,ref:t})})}));OC.displayName="Studio";const ON=[{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}],DN=[{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 DC{constructor(t=ON,n=DN){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(()=>uy)).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(()=>uy)}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 AC=new DC;(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 LC=Object.freeze(Object.defineProperty({__proto__:null,AppearanceCommandButton:dC,AutoColorPosition:Os,BorderCommandButton:NS,BorderPopupButton:BS,BorderStyleButton:FS,ClearCommandButton:kf,ColorButton:V2,ColorCommandButton:Qs,ColorPanel:zS,ColorPanelType:AS,ColorPopupButton:Cf,DeleteCellsCommandButton:Mf,DocThemeCommandButton:cC,FillCommandButton:qS,FilterColumnMenu:Ff,FilterCommandButton:ZB,Filters:gC,FindCommandButton:HS,FontFamilyCommandButton:ZS,FontSizeCommandButton:WS,FormulaBar:zf,FreezeCommandButton:VS,HelpCommandButton:uC,HorizontalAlignCommandButton:Zv,InsertCellsCommandButton:Ef,InsertImageCommandButton:If,InsertScriptCommandButton:MC,LicenseManager:$.LicenseManager,MergeCommandButton:$S,NamedCollectionEditor:Lf,NamedInput:Pf,NumberFormatCommandButton:US,PasteCommandButton:jf,PresetCellStylesCommandButton:tC,PresetTableStylesCommandButton:iC,QuickFormulaSumCommandPopupButton:QB,RangeInput:Of,RunScriptCommandButton:qf,ScriptEditorToolbar:Wf,ScriptWorkspace:Uf,SheetTab:Bf,SheetTabMenu:Nf,SheetZoomScale:Df,SheetsAllMenu:$f,SortFilterCommandButton:Tf,StatusBar:Af,Studio:OC,StyledStrokeIcon:Uh,TableStyleCanvasPreview:oC,TableStyleOptionsPanel:rC,TableStylePreview:Rf,TextEffectsCommandButton:XS,TextOverflowCommandButton:Yv,TextRotateCommandButton:Jv,ThemeMode:wC,ThemeSelectButton:aC,ThemeSelectPanel:lC,ThemeSelectPopupButton:sC,UnderlineCommandButton:YS,UndoRedoCommandButton:_f,VerticalAlignCommandButton:Xv,ViewGridLinesCommandButton:KS,ViewHeadingsCommandButton:JS,WalkingCopyCommandButton:H2,WorkbookContextMenu:Gf,WorkbookElement:Zf,WorkbookIO:AC,WorkbookStrip:Kf,WorkbookTitle:Xf,WorkbookViewCommandButton:QS,_WorkbookIO:DC,createGridStyleFromMUITheme:Zh,defaultNewWorkbook:RC,renderWorkbookLoadingPanel:PC,useResolvedThemeMode:SC,useWorkbookCommands:jC},Symbol.toStringTag,{value:"Module"})),Xh=new Map,zC=(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(s1(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(" "),f=`
|
|
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
|
-
`,h=document.createElement("style");if(h.textContent=f,d.appendChild(h),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),Xh.set(e,d)},s1=e=>{const t=Xh.get(e);t&&t.parentNode&&(t.parentNode.removeChild(t),Xh.delete(e))},FC=(e,t={})=>{zC(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})},BC=(e,t={})=>{zC(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})},Od=new Map;let As;const by=async e=>As||(As=await(async(t,n)=>{try{if(n?.selector&&FC(n?.selector,n?.loading),!t){const{resolveDependencies:o}=await Promise.resolve().then(()=>require("./nURb18uhj9rScsHa.cjs"));t=await o(n?.dependencies)}n?.licenseKey&&await t.StudioMUI.LicenseManager.setLicenseKey(n.licenseKey),n?.selector&&s1(n?.selector)}catch(o){throw n?.selector&&(s1(n.selector),BC(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:YC,ReactDOM:sm,ReactDOMClient:sm,StudioMUI:LC},typeof e=="object"?e:void 0),As),AN={attachStudio:async(e,t)=>(As||(As=await by(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(Od.has(a)&&Od.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;FC(a,c?.loading);try{s1(a);const d=n.ReactDOMClient.createRoot(l),p=n.React.createRef(),f=n.StudioMUI[r];let h=null;await new Promise(x=>{d.render(n.React.createElement(f,{...i,ref:v=>{v&&(h=v,x())}}))});const m={runtime:n,root:d};Od.set(a,m);let y=!1;return new Proxy(h,{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 M={...i,...w,ref:p};return d.render(n.React.createElement(f,M)),Promise.resolve()}:v==="detach"?()=>(Od.delete(a),d.unmount(),y=!0,Promise.resolve()):Reflect.get(x,v,b)}})}catch(d){throw s1(a),BC(a,{message:`Failed to initialize: ${d instanceof Error?d.message:String(d)}`,...c?.error}),console.error("Failed to initialize:",d),d}})(As,e,"Studio",t)),async initialize(e){await by(e)}};exports.$R=uC,exports.$n=Vn,exports.$t=Ft,exports.AR=()=>{const{showModal:e}=pd();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(i=>{const a=e(PA,{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.BR=rC,exports.Box=Ae,exports.Bu=pd,exports.CR=e=>s.jsxs(Qe,{...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.Checkbox=Na,exports.DM=_C,exports.DR=(e,t)=>{let n=oh({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:pt(n.palette.text.secondary,.75),icon:e?pt(n.palette.text.secondary,.7):pt(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)),oh(r)},exports.De=$e,exports.DialogContent=Ex,exports.ER=e=>s.jsxs(Qe,{...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.F0=pa,exports.Fi=Ja,exports.Fn=Bn,exports.FormControl=b1,exports.FormControlLabel=$a,exports.GC=pw,exports.Go=rr,exports.HR=dC,exports.IR=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(YD,XD),d=c[0],p=c[1],f=u.useCallback(function(v,b){var w=Ev(b,JD);v?p({type:ki.UPDATE,payload:{id:v,props:w}}):console.error(Lp)},[p]),h=u.useCallback(function(v){v?p({type:ki.HIDE,payload:{id:v}}):console.error(Lp)},[p]),g=u.useCallback(function(v){v?p({type:ki.DESTROY,payload:{id:v}}):console.error(Lp)},[p]),m=u.useCallback(function(v){v?p({type:ki.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[p]),y=u.useCallback(function(v,b,w){var M=Tv(8);return w&&w.rootId&&(M=w.rootId+"."+M),p({type:ki.SHOW,payload:{id:M,component:v,props:b,options:w}}),{id:M,hide:function(){return h(M)},destroy:function(){return g(M)},update:function(k){return f(M,k)}}},[p,h,g,f]),x=i?u.Suspense:u.Fragment;return u.createElement(Mv.Provider,{value:{state:d,updateModal:f,hideModal:h,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],M=w.component,k=w.props,j=w.options,_=function(){var L,T;k!=null&&k.onExited&&k.onExited.apply(k,arguments),k!=null&&(L=k.TransitionProps)!=null&&L.onExited&&(T=k.TransitionProps).onExited.apply(T,arguments),g(v)};return b=o?{onExited:_}:{TransitionProps:Er({},k?.TransitionProps,{onExited:_})},u.createElement(M,Object.assign({},k,{key:v,onClose:function(){j&&j.hideOnClose&&h(v),j&&j.destroyOnClose&&j.hideOnClose&&g(v),k&&k.onClose&&k.onClose.apply(k,arguments)}},j&&!j.destroyOnClose&&b))})))},exports.IT=LS,exports.IconButton=Tr,exports.InputAdornment=Tx,exports.InputLabel=_x,exports.JM=Zf,exports.Ji=rl,exports.Jt=Gt,exports.Kn=Xn,exports.L9=Z3,exports.LR=()=>{const{showModal:e}=pd();return t=>new Promise(n=>{const o=e(IA,{...t,onOption(r){t?.onOption?.(r,r===t.cancelOption,r===t.defaultOption),n(r)},onDone:()=>{t?.onDone?.(),o.hide()}})})},exports.Le=Ge,exports.MR=e=>s.jsxs(Qe,{...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.MenuItem=v1,exports.Mn=jn,exports.N0=ha,exports.OR=function(){const[e,t]=u.useState(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=pd({disableAutoDestroy:!0});return(a,l,c,d)=>new Promise((p,f)=>{const h={...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,h),void p(g.element);if(!l)return void f("invalid function");const m=u.lazy(l),y=n(m,h,{destroyOnClose:!d?.disableAutoDestroy});t(x=>(x.set(a,{id:y.id,element:null}),x))})},exports.Oe=We,exports.PC=sw,exports.PR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.Paper=Ti,exports.Px=kv,exports.Qt=Zt,exports.RR=OD,exports.Rc=Xc,exports.SR=e=>s.jsxs(Qe,{...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.Select=w2,exports.SheetXL=AN,exports.StudioMUI=LC,exports.SvgIcon=Qe,exports.T0=Ki,exports.TR=e=>s.jsx(Qe,{...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.TextField=E3,exports.Transition=Ni,exports.Tt=Tt,exports.Typography=Tn,exports.UR=SC,exports.VR=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.Vl=Gl,exports.W1=Kc,exports.WR=wC,exports.Xf=wf,exports.Xn=Lx,exports.Yb=Vb,exports._R=e=>s.jsxs(Qe,{...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._o=M3,exports._s=s0,exports.ai=ka,exports.alpha=pt,exports.ar=br,exports.au=e2,exports.b4=Ch,exports.bR=e=>s.jsx(Qe,{...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.bu=xu,exports.cM=Of,exports.capitalize=xt,exports.clsx=Ot,exports.cn=cn,exports.composeClasses=In,exports.createSvgIcon=Kn,exports.darken=Ol,exports.duration=ix,exports.eM=Rf,exports.eR=Xf,exports.fe=Te,exports.gR=({manager:e,commands:t,disabled:n,notifier:o=xu})=>{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 We("undo",a,{label:"Undo",description:T4,shortcut:{key:"z",modifiers:[$e.Ctrl]},disabled:!0},r),new We("redo",a,{label:"Redo",description:_4,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}`):T4,state:d,context:{undoManager:e}});const f=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:f?pI(f):_4,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.gc=a1,exports.generateUtilityClass=Rn,exports.generateUtilityClasses=Mn,exports.getTransitionProps=Dc,exports.globalCss=sx,exports.gs=a0,exports.h5=W2,exports.internal_mutateStyles=r3,exports.internal_serializeStyles=Mr,exports.ir=xr,exports.kR=e=>s.jsxs(Qe,{...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.ka=bs,exports.km=Vf,exports.kn=En,exports.lS=Lv,exports.lighten=Dl,exports.memoTheme=Sn,exports.nk=hw,exports.ns=Xs,exports.q9=J3,exports.qR=AC,exports.rn=on,exports.sM=Pf,exports.styled=Et,exports.styled$1=a2,exports.su=Hf,exports.useDefaultProps=An,exports.useForkRef=Xo,exports.useTheme=i0,exports.useTimeout=vl,exports.vR=e=>s.jsxs(Qe,{...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.ve=ze,exports.wR=e=>s.jsxs(Qe,{...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.xR=e=>s.jsxs(Qe,{...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.xx=uv,exports.yR=e=>s.jsxs(Qe,{...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.yo=Eo,exports.zv=av;
|