@sheetxl/studio-mui 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.
Files changed (127) hide show
  1. package/browser/cjs/B29yIlf_FSHx9q3M.cjs +7 -0
  2. package/browser/cjs/B783moVfFT70yQuK.cjs +7 -0
  3. package/browser/cjs/BCtVyhxIZSUPH_Z4.cjs +7 -0
  4. package/browser/cjs/BE6O6K7i1mHBC3et.cjs +7 -0
  5. package/browser/cjs/BQ-G2ABc3FYN-D50.cjs +7 -0
  6. package/browser/cjs/BabvaPi1dUIPt5AG.cjs +7 -0
  7. package/browser/cjs/BbvcxaJzfy7H6xfa.cjs +7 -0
  8. package/browser/cjs/Bhh0dqxUzzOzHWMc.cjs +7 -0
  9. package/browser/cjs/CH50hiw_7LBSC6dR.cjs +7 -0
  10. package/browser/cjs/Cfb0T6htsh82UPK-.cjs +7 -0
  11. package/browser/cjs/CisYglNTHGrj9oMH.cjs +7 -0
  12. package/browser/cjs/Clbakb5VUTDTlofM.cjs +7 -0
  13. package/browser/cjs/D7xmeRe-f7IifEKc.cjs +7 -0
  14. package/browser/cjs/DCV-6w2JGk_faE3x.cjs +7 -0
  15. package/browser/cjs/DY2PuDSgw0TrB5-_.cjs +7 -0
  16. package/browser/cjs/Df5v6knUJ4dqHmmo.cjs +7 -0
  17. package/browser/cjs/DyzVC_iq7ceqC2fj.cjs +7 -0
  18. package/browser/cjs/QB_8kWYEsfOH_HwK.cjs +7 -0
  19. package/browser/cjs/aOmlMJRAkQEF59EX.cjs +7 -0
  20. package/browser/cjs/index.cjs +10 -4
  21. package/browser/cjs/li-J7BWV6WUzY5aq.cjs +7 -0
  22. package/browser/cjs/u0WmWLGlCwhnhL9i.cjs +7 -0
  23. package/browser/cjs/uoBAuXnlUz8scSA1.cjs +7 -0
  24. package/browser/cjs/xp2ZII-PuLk9tHK3.cjs +7 -0
  25. package/browser/cjs/xq-CJbsvm7BQO8lK.cjs +7 -0
  26. package/browser/esm/12Ttun7hzbiInyVr.mjs +7 -0
  27. package/browser/esm/7jSMnphGrNRPUa_S.mjs +7 -0
  28. package/browser/esm/AnCmK-idMDJ2vI8H.mjs +7 -0
  29. package/browser/esm/B-Ut_yUCD9THCz0T.mjs +7 -0
  30. package/browser/esm/BTD5k7gtFcqDwslB.mjs +7 -0
  31. package/browser/esm/BVRUNnRvnt7aVCDD.mjs +7 -0
  32. package/browser/esm/BauTkiamxm0HDt6M.mjs +7 -0
  33. package/browser/esm/BcIp2mxLBfjUBE0q.mjs +7 -0
  34. package/browser/esm/Bi_0z0hyhFuz5Ta3.mjs +7 -0
  35. package/browser/esm/BkDEdK7zOlsoUKCZ.mjs +7 -0
  36. package/browser/esm/BpGexBYtmHbTIJz2.mjs +7 -0
  37. package/browser/esm/CJawFB555VEY-Vge.mjs +7 -0
  38. package/browser/esm/CWogLlWYHiL4W6CH.mjs +7 -0
  39. package/browser/esm/Cr46Bo9bGoz0LbWq.mjs +7 -0
  40. package/browser/esm/Csk8rXNpaXmf5g7O.mjs +7 -0
  41. package/browser/esm/Cu-5HDPN8B0qE77-.mjs +7 -0
  42. package/browser/esm/CzgR8PxJ_89IC4Mr.mjs +7 -0
  43. package/browser/esm/DMUXpRbV3ahdB1lN.mjs +7 -0
  44. package/browser/esm/DiIX5KzrWnbDWjGE.mjs +7 -0
  45. package/browser/esm/Djo2IS-ivmVSrO3v.mjs +7 -0
  46. package/browser/esm/Hy95ExHvIFgzxQb-.mjs +7 -0
  47. package/browser/esm/Z1_72ZY8rW2Mc3g_.mjs +7 -0
  48. package/browser/esm/_ZR9nT54xwy-C6ow.mjs +7 -0
  49. package/browser/esm/csxyptiqbJZO0pQA.mjs +7 -0
  50. package/browser/esm/index.mjs +8 -82
  51. package/licenses/dependencies.txt +145 -145
  52. package/node/esm/{CsbP0EYKOHobzZCu.mjs → 8THCZRGNmI2nPqMR.mjs} +2 -2
  53. package/node/esm/{CGiJgZJFY-YsXWCX.mjs → BDm0y2dv7wLZhYj1.mjs} +1 -1
  54. package/node/esm/{CijBL1IDWaxPgQ_E.mjs → BPylexVHXa-t0sqJ.mjs} +6 -6
  55. package/node/esm/{B7xzqWxB07TdXnmo.mjs → BQYQg7lfqFbWaf8x.mjs} +2 -2
  56. package/node/esm/{BUVA6vYXyFFnBCMg.mjs → BSUbQzac78SXiAJe.mjs} +1 -1
  57. package/node/esm/{qewbqty13W1sKrMC.mjs → BeNXnrWMr5S34Oxb.mjs} +1 -1
  58. package/node/esm/{BfuG4JD3t3n1uOci.mjs → C6jxZQrvMLctjLZM.mjs} +4 -4
  59. package/node/esm/{Dn38s6pH3QNvdk-x.mjs → CCZepFZNn1pIXrnd.mjs} +1 -1
  60. package/node/esm/{9iDXWtTOWeDVslQL.mjs → CXSwyUs6BuNGCic0.mjs} +13 -13
  61. package/node/esm/{Dq49h62ihEYk_8VR.mjs → CaV6SH-PMyHlXUhx.mjs} +1 -1
  62. package/node/esm/{B18g9zjzyR9YL3Mv.mjs → D481dAOp77EZbV5s.mjs} +2 -2
  63. package/node/esm/{DWKLdf_rn5dajRBA.mjs → DHj9iDuBImdwscIb.mjs} +25 -25
  64. package/node/esm/{uY021f9cZSWYX0--.mjs → DIGsHHDexzj0uG_T.mjs} +5 -5
  65. package/node/esm/{Cr5l_3AqPbv4mke9.mjs → DLiw-2C_tqGgJIQ6.mjs} +2 -2
  66. package/node/esm/{CG1T0Z1roNRSVlal.mjs → DNJVdt9TbBsUE8Jm.mjs} +1 -1
  67. package/node/esm/{DGTK2YeARR5cTnft.mjs → DaCmut490aSCGvX8.mjs} +1 -1
  68. package/node/esm/{C7t1ZHhSDgJnZ4Da.mjs → Dd2OFQJQyYp6bAeP.mjs} +1 -1
  69. package/node/esm/{DHmVr6jRLzt6lD1x.mjs → DkpAjhQeaZn_Ipxg.mjs} +2 -2
  70. package/node/esm/{DODhKM0Qeycx3Hvp.mjs → DyMCnCG9LzH5Mgw0.mjs} +2 -2
  71. package/node/esm/{v4fR5lIq2IqY_Clq.mjs → RV-AvxVzzFKWjYFM.mjs} +38 -38
  72. package/node/esm/{tur4cwLbnCn69JK-.mjs → Ui3_6RhrEZQDOXwg.mjs} +8 -8
  73. package/node/esm/index.mjs +5373 -5075
  74. package/node/esm/{CILOMzOF30-XSZqR.mjs → qI75rORek8T0-Kpf.mjs} +2 -2
  75. package/package.json +8 -8
  76. package/types/index.d.ts +24 -0
  77. package/browser/cjs/02LSJ7jnb-ovS7ex.cjs +0 -15
  78. package/browser/cjs/BDDJIe6JwgEYEtda.cjs +0 -6
  79. package/browser/cjs/BGh6tEDK_1MFKfMU.cjs +0 -145
  80. package/browser/cjs/BSRDKlVOTYHfOAF_.cjs +0 -11
  81. package/browser/cjs/Bn0BSzVk_S-rvDwk.cjs +0 -6
  82. package/browser/cjs/Bzf8jKmmZl374mof.cjs +0 -6
  83. package/browser/cjs/C20NTPRE5_ExESDZ.cjs +0 -6
  84. package/browser/cjs/C5i9hklL-WNb8J_q.cjs +0 -42
  85. package/browser/cjs/CLxYxjd0yz1LCTB-.cjs +0 -6
  86. package/browser/cjs/CUo2iW5IL6UZJNWT.cjs +0 -6
  87. package/browser/cjs/C_QWbWVBVc6YJ4Q3.cjs +0 -16
  88. package/browser/cjs/CeeZxww7wpF45vvp.cjs +0 -6
  89. package/browser/cjs/CekKZCV1J1HUFIqO.cjs +0 -6
  90. package/browser/cjs/CgD0b2zJD8zElhuz.cjs +0 -6
  91. package/browser/cjs/CqwEnIUDMxWw5DX1.cjs +0 -87
  92. package/browser/cjs/CwOKyPq_H2afJacv.cjs +0 -7
  93. package/browser/cjs/D32t9wiFoNX7WVEo.cjs +0 -161
  94. package/browser/cjs/DILF3GzsMdg-Y2wu.cjs +0 -11
  95. package/browser/cjs/Dr-PR7J1T91UjrPL.cjs +0 -12
  96. package/browser/cjs/DyR0_iZAINpjodWL.cjs +0 -12
  97. package/browser/cjs/LWuNxqu9MyiniH_g.cjs +0 -18
  98. package/browser/cjs/O8r9K4Qh6Pgd6rXU.cjs +0 -7
  99. package/browser/cjs/jbTHHxJODyD10jVH.cjs +0 -6
  100. package/browser/cjs/n-4XaX3pkXUEEQ5u.cjs +0 -6
  101. package/browser/cjs/qQGaIq5VhlZJU-xf.cjs +0 -6
  102. package/browser/esm/AmErN6xXU01K_bEs.mjs +0 -3803
  103. package/browser/esm/B08nVBuOXar7x7in.mjs +0 -1703
  104. package/browser/esm/B8xKZIF9fvamlvW5.mjs +0 -1467
  105. package/browser/esm/BGWd79IfMfoHoO6g.mjs +0 -392
  106. package/browser/esm/BT8vduOS21nsJ6EQ.mjs +0 -1366
  107. package/browser/esm/Bz6NqTbktTH8Df6_.mjs +0 -2251
  108. package/browser/esm/CDRALHzsBIsRPM5g.mjs +0 -153
  109. package/browser/esm/CIH1rBtL9lK5ku-N.mjs +0 -13391
  110. package/browser/esm/CVJee4uHPTdpZGEH.mjs +0 -46
  111. package/browser/esm/CXUv64T9mbQbJGgM.mjs +0 -48
  112. package/browser/esm/Ca5nvvpeuP6Wsv5P.mjs +0 -43
  113. package/browser/esm/CelDYTh0f7McDj4o.mjs +0 -44
  114. package/browser/esm/DHlS6l8ZPDMN2cwP.mjs +0 -1672
  115. package/browser/esm/DXKQ9TZdaT7ytR1S.mjs +0 -640
  116. package/browser/esm/D_FJwwe-bsDiDGBV.mjs +0 -2410
  117. package/browser/esm/DduyjhwDREaxXNzm.mjs +0 -59
  118. package/browser/esm/DffuCp_514AjqJLT.mjs +0 -864
  119. package/browser/esm/DgC_oaBYpwh1mBi_.mjs +0 -25
  120. package/browser/esm/Dl-SlJoaP7EFX-GR.mjs +0 -52
  121. package/browser/esm/DpTSO921EQ7L_abP.mjs +0 -52
  122. package/browser/esm/Dr5y4zmj1js9FjzE.mjs +0 -1352
  123. package/browser/esm/DuoEo0hJBssfAmB4.mjs +0 -84
  124. package/browser/esm/jIv4VNLAAFANZjhN.mjs +0 -424
  125. package/browser/esm/wysWhT4-jO-uukUH.mjs +0 -23
  126. package/browser/esm/zZaxvhjZK5N3yZkw.mjs +0 -19947
  127. package/node/esm/BBWRiJSBxt6O1CfK.mjs +0 -312
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";const e=require("@sheetxl/sdk"),t=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),r=require("@mui/icons-material"),i=require("react-dom/client"),l=require("react-dom"),a=require("@mui/system"),s=require("@mui/styled-engine"),c=require("@mui/utils");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){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 u=d(n);function p(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=p(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function h(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=p(e))&&(o&&(o+=" "),o+=t);return o}const f={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},m="text/html",g="text/plain",x="image/png",y=Object.freeze({left:0,top:0}),b=Object.freeze({left:0,top:0,bottom:0,right:0}),w=Object.freeze({x:0,y:0,width:0,height:0}),v=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:w,EmptyRect:b,EmptyTopLeft:y},Symbol.toStringTag,{value:"Module"})),S="column",C="row",k=Object.freeze({colIndex:0,rowIndex:0}),E=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),_=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,T=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,j=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,M=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,R=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,I=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,D=(e=C,t=!1)=>t?e!==S?j:M:e!==S?T:_,L=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,O=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,P=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),A=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!O(e[n],t[n]))return!1;return!0},F=(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),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},z=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];P(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},B=[null,null],N=(e,t,n)=>{if(e[0].value===e[1].value)return t};function V(e,t=2,n,o=C,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===S,a=0,s=!1;do{const e=i.sort(D(l?C:S));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&p===t.rowStart&&f===t.rowEnd&&h+1===t.colStart:d&&u===t.colStart&&h===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:p,colEnd:l?t.colEnd:h,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}const H=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:k,EmptyRange:E,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:R,columnFirstRangeComparator:_,createCellComparator:(e=C,t=!1)=>t?e!==S?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==S?I:R,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const p=t?a:s,h=t?s:a;o={colStart:p,rowStart:h,colEnd:p,rowEnd:h},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?V(n,3,!0===e?N:e,t?S:C,B):n)}},createRangeComparator:D,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:z,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!O(n,o);)o=n,n=z(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(P(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(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),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:L,isEqualRanges:O,isEqualRangesArrays:A,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!L(e.cell,t.cell)&&A(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:P,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:V,rowFirstCellComparator:I,rowFirstRangeComparator:T,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:F,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=F(o,e[t],n);return t&&(o=F(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const $="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function W(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$}(e)}(e)}function U(e,t){return!1!==t.clone&&t.isMergeableObject(e)?K((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function q(e,t,n){return e.concat(t).map(function(e){return U(e,n)})}function Z(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function G(e,t){try{return t in e}catch(e){return!1}}function K(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q,n.isMergeableObject=n.isMergeableObject||W,n.cloneUnlessOtherwiseSpecified=U;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&Z(e).forEach(function(t){o[t]=U(e[t],n)}),Z(t).forEach(function(r){(function(e,t){return G(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(G(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return K;const n=t.customMerge(e);return"function"==typeof n?n:K}(r,n)(e[r],t[r],n):o[r]=U(t[r],n))}),o}(e,t,n):U(t,n)}K.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return K(e,n,t)},{})};const X=Object.freeze([]),Y=Object.freeze({}),J=e=>e,Q=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),ee=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),te=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,ne=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?ne(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),oe=(e,t)=>!(e!==t&&!ee(e,t)&&!e.isEqual?.(t)),re=(e,t,n=oe)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===re(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},ie="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),le=e=>null==e,ae=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),se=!("undefined"==typeof window||!window.document||!window.document.createElement),ce={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},de=()=>{if(ue())return ce.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?ce.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?ce.MacOS:/(iphone|ipad|ipod)/i.test(e)?ce.IOS:/android/.test(e)?ce.Android:/linux/.test(e)?ce.Linux:/^((?!chrome|android|).)*safari/i.test(e)?ce.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?ce.Firefox:ce.Unknown:ce.Unknown};function ue(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const pe=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),he=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:X,EmptyObject:Y,OSType:ce,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=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:se,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>le(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,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){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;0!==r--;)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;0!==r--;)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;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:K,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=J){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=J){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>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"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!te(r))return r;o=r}return o??null},getOS:de,hasFocus:pe,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:ee,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:ue,isNullOrUndefined:le,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:te,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:ae,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!te(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=K(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!se)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(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:ne,removeEqualValues:re,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=ie(),o={id:requestAnimationFrame(function r(){ie()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!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 e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!te(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!te(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,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);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(!ae(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})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),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(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&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 e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:Q,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=>{pe(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 fe=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},me=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")}),ge=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:fe,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:me},Symbol.toStringTag,{value:"Module"})),xe="data:image/png;base64,",ye="Unable to resolve image.",be=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(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(ye)}),we="image/svg+xml";var ve,Se;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:xe,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 e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(ye)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await be(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:we})),i=await be(r);n={mimeType:t??we,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===we?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"})),(Se=ve||(ve={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,Se.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};let Ce=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const ke="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Ee="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",_e={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:Ee,PermsWrite:de()===ce.Safari?ke:Ee,PermsRead:de()===ce.Safari?ke:Ee},Te=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),je=async(e,t,n)=>{if(de()===ce.Safari)return await n(new Error(_e.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},Me=async e=>{try{return await e.read({unsanitized:[m]})}catch(e){}return await e.read()},Re=async(e,t)=>{if(!e)return null;const n=await Me(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const Ie=async(e,t=m)=>new Promise(async(n,o)=>{try{const o=await Re(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),De=async(e,t=m)=>{const n=await Ie(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,m)}catch(e){console.warn("Can't parse html from clipboard.")}return o},Le=async e=>{e&&await e.writeText("")},Oe=Re,Pe=Ie,Ae=De,Fe="clipboard-uuid",ze="web text/uuid",Be=e=>`<div style="display:none" ${Fe}="${e}"/>`,Ne=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,m);o.body.firstElementChild.setAttribute(Fe,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},Ve=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Fe}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let He=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await je("clipboard-read",async()=>{await Te();const e=await Ie(this._nativeClipboard,ze);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await De(this._nativeClipboard,m);return!this._state||(Ve(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||de()===ce.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 je("clipboard-read",async()=>{if(await Te(),this._state?.uuid){const t=await Ie(this._nativeClipboard,ze);if(t&&t===e._state.uuid)return!0;const n=await De(this._nativeClipboard,m);if(Ve(e._state?.uuid,n))return!0}return e._state={items:await Me(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Q(),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 je("clipboard-write",async()=>{await Te(),o&&0===r.length&&(r.push(new ClipboardItem({[ze]:new Blob([o],{type:ze})})),r.push(new ClipboardItem({[m]:new Blob([Be(o)],{type:m})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(m),l=null;if(-1!==i){const e=await t.getType(m);l=await me(e),l&&(l=Ne(o,l))}if(!l&&t.types.includes(g)){const e=await t.getType(g);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await me(e),t&&(l=`<div ${Fe}="${o}">${t}</div>`)}}if(!l&&t.types.includes(x)){const e=await t.getType(x),n=fe(await e.arrayBuffer());l=`<div ${Fe}="${o}"><img src="${xe+n}"/></div>`}!l&&o&&(l=Be(o));const a=new Blob([l??""],{type:m}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[m]=a),o&&(s[ze]=new Blob([o],{type:ze})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await Le(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[g]=new Blob([t??""],{type:g}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[m]=new Blob([t],{type:m}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[x]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:Q(),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 e=0;!o&&n&&e<n.length;e++)n[e].types.includes(g)&&(o=await n[e].getType(g));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[g]:new Blob([e],{type:g})})];return this._write({uuid:Q(),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,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};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),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var $e;($e=He||(He={})).ErrorMessages=_e,$e.Global=new $e,function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const We="left",Ue={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},qe={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},Ze=3,Ge={Horizontal:"horizontal",Vertical:"vertical"};function Ke(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ke(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Xe(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ke(e))&&(o&&(o+=" "),o+=t);return o}var Ye=function(){},Je="undefined"!=typeof window,Qe=Je?n.useLayoutEffect:n.useEffect,et={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const tt=Je&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(et),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return Qe(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[Ye,et]},nt=(e,t)=>{const o=n.useCallback((...t)=>e?.(...t),t),r=n.useRef(null);r.current=o;const i=n.useCallback((...e)=>r.current?.(...e),[]);if(r.current)return i},ot=e=>{const{style:n,orientation:o=Ge.Vertical,...r}=e,i=o===Ge.Vertical;return t.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:i?"0px":"3px",paddingTop:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button start`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},rt=e=>{const{style:n,orientation:o=Ge.Vertical,...r}=e,i=o===Ge.Vertical;return t.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:i?"0px":"3px",paddingBottom:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button end`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},it=e=>{const{style:n,orientation:o=Ge.Vertical,...r}=e,i=o===Ge.Vertical;return t.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:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:t.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"})})})},lt=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r},at=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:lt},Symbol.toStringTag,{value:"Module"})),st=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,totalSize:i=0,viewportSize:l=0,style:a,className:s,orientation:c=Ge.Vertical,onScrollOffset:d,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=ot,createScrollEndButton:x=rt,...y}=e,b=nt(u,[u]),w=n.useRef(null),[v,{width:S,height:C}]=tt(),[k,{width:E,height:_}]=tt(),T=c===Ge.Vertical,j=T?"top":"left",M=T?"scrollTop":"scrollLeft",R=T?C:S,I=T?_:E,[D,L]=n.useState(null);n.useEffect(()=>{null!==D&&w.current&&w.current.scrollTo({behavior:"smooth",[j]:D})},[D,T]);const O=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:lt(e,o[j],r,!0,Math.max(0,e-h));return L(i),Math.max(0,i)},[]),P=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(I-R),l=t?i:lt(e,o[j],r,!1,Math.max(0,e+h));return L(l),Math.min(i,l)},[I,R]),A=n.useRef(null),F=n.useCallback(e=>{A.current=r;const t=e.target[M];d(t,l,i),b?.(e)},[d,l,i,r]);n.useEffect(()=>{const e=A.current;A.current=null,r!==e&&(w.current[M]=r)},[r,M]);const z=n.useRef(null),B=n.useRef(null),N=n.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=null,B.current=null)},[]),V=n.useCallback((e,t,n,o=f)=>{B.current=e,z.current=setTimeout(()=>{const t=n?O(B.current||e):P(B.current||e);t!==B.current?V(t,!1,n,m):N()},t?0:o)},[O,P,N]);n.useEffect(()=>()=>N(),[N]);const H=r,$=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(H)<=0||0===Math.floor(I-R),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!0)};return g?.(e)},[p,c,H,D,I,R]),W=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(I-R)<=Math.ceil(H),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!1)};return x?.(e)},[p,c,H,D,I,R]);return t.jsxs("div",{ref:o,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...a},className:Xe("_sheetxl-scrollbar_eblx4_6",s),...y,children:[$,t.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:v,children:t.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:w,children:t.jsx("div",{ref:k,style:{position:"absolute",height:T?i-l+(C??0):1,width:T?1:i-l+(S??0)},className:"scrollbar-viewport"})})}),W]})}));st.displayName="Scrollbar";let ct=Date.now,dt={},ut=1;const pt=e=>{let t=null!==dt[e];return t&&(dt[e]=null),t},ht=(e,t,n,o=0,r)=>{let i=ct(),l=i,a=0,s=0,c=0,d=ut++;if(d%20==0){const e={};for(let t in dt)e[t]=!0;dt=e}const u=function(p){let h=!0!==p,f=ct(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!dt[d]||!m)return dt[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(h){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,x=!1;try{x=e(g,f,h)}catch(e){x=!1}!1!==x&&1!==a||!h?h&&(l=f,requestAnimationFrame(u)):(dt[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return dt[d]=!0,requestAnimationFrame(u),d},ft=function(e){return Math.pow(e-1,3)+1},mt=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let gt=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){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(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&&(pt(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,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&&(pt(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(pt(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(pt(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(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 e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),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()),"number"!=typeof e)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 e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&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&&(pt(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),p=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=ht(d,u,p,this.options.animationDuration,r?ft:mt)}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 e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=ht(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}};var xt="undefined"!=typeof window?window:{screen:{},navigator:{}},yt=(xt.matchMedia||function(){return{matches:!1}}).bind(xt),bt=!1,wt={get passive(){return bt=!0}},vt=function(){};xt.addEventListener&&xt.addEventListener("p",vt,wt),xt.removeEventListener&&xt.removeEventListener("p",vt,!1);var St=bt,Ct="PointerEvent"in xt,kt="ontouchstart"in xt,Et=kt||"TouchEvent"in xt&&yt("(any-pointer: coarse)").matches,_t=(xt.navigator.maxTouchPoints||0)>0||Et,Tt=xt.navigator.userAgent||"",jt=yt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Tt)&&Math.min(xt.screen.width||0,xt.screen.height||0)>=768,Mt=(yt("(pointer: coarse)").matches||!yt("(pointer: fine)").matches&&kt)&&!/Windows.*Firefox/.test(Tt),Rt=yt("(any-pointer: fine)").matches||yt("(any-hover: hover)").matches||jt||!kt,It=!_t||!Rt&&Mt?_t?"touchOnly":"mouseOnly":"hybrid",Dt="mouseOnly"===It?"mouse":"touchOnly"===It||Mt?"touch":"mouse";const Lt=Object.freeze(Object.defineProperty({__proto__:null,deviceType:It,primaryInput:Dt,supportsPassiveEvents:St,supportsPointerEvents:Ct,supportsTouchEvents:Et},Symbol.toStringTag,{value:"Module"})),Ot=new Set(["INPUT","TEXTAREA","SELECT"]),Pt={};function At(){return Lt}const Ft=e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":he.camelToPrettyCase(e),zt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Pt,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:At,focusableNodeNames:Ot,toPrettyKeyCode:Ft},Symbol.toStringTag,{value:"Module"})),Bt=[];function Nt(e,t,o=Bt){const r=n.useRef(null);return n.useImperativeHandle(e,()=>{if(!r.current)return;const e=r.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const o=Object.keys(n),i=o.length;for(let t=0;t<i;t++){const r=o[t],i=n[r];Object.defineProperty(e,r,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},o),r}const Vt=e=>t.jsx(st,{...e}),Ht=({width:e,height:n})=>t.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${n}px`,height:`${n}px`}}),$t=n.memo(n.forwardRef((e,o)=>{const{children:r,viewport:i,onScrollViewport:l,showHorizontalScrollbar:a=!0,showVerticalScrollbar:s=!0,createScrollCorner:c=Ht,createHorizontalScrollbar:d=Vt,createVerticalScrollbar:u=Vt,style:p,touchElement:h,disableTouch:f,...m}=e,g=nt(l,[l]),x=Nt(o,()=>({isScrollPane:()=>!0}),[]),y=n.useRef(null);n.useEffect(()=>{y.current&&(y.current.__scrollTop===i?.top&&y.current.__scrollLeft===i?.left||y.current.__isDecelerating||y.current?.scrollTo(i?.left,i?.top,!1))},[i?.left,i?.top,h]);const b=n.useCallback((e,t)=>{g?.({left:e,top:t})},[]),w=n.useCallback(e=>{y.current?.doTouchStart(e.touches,e.timeStamp)},[]),v=n.useCallback(e=>{e.preventDefault(),y.current?.doTouchMove(e.touches,e.timeStamp)},[]),S=n.useCallback(e=>{y.current?.doTouchEnd(e.timeStamp)},[]),C=n.useCallback(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{y.current.setDimensions(e,t,n,o)},[]);n.useEffect(()=>{const e=h??x.current;if(!f&&At().supportsTouchEvents&&e&&i){if(!y.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new gt(b,e)}At().supportsTouchEvents&&(e.addEventListener("touchstart",w),e.addEventListener("touchend",S),e.addEventListener("touchmove",v)),C({containerWidth:i?.width,containerHeight:i?.height,totalWidth:i?.totalWidth,totalHeight:i?.totalHeight})}return()=>{e?.removeEventListener("touchstart",w),e?.removeEventListener("touchend",S),e?.removeEventListener("touchmove",v)}},[i?.width,i?.height,i?.totalWidth,i?.totalHeight,f,h]);const[k,{width:E}]=tt(),[_,{height:T}]=tt(),j=n.useMemo(()=>{const e=u({orientation:Ge.Vertical,offset:i?.top,viewportSize:i?.height,totalSize:i?.totalHeight,onScrollOffset:e=>{g?.({top:e})}});return t.jsx("div",{style:{display:"flex",flex:"0"},ref:k,children:e})},[u,i?.top,i?.height,i?.totalHeight]),M=n.useMemo(()=>{const e=d({orientation:Ge.Horizontal,offset:i?.left,viewportSize:i?.width,totalSize:i?.totalWidth,onScrollOffset:e=>g?.({left:e})});return t.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${E}px)`},children:t.jsx("div",{ref:_,className:"sizer",children:e})}),s?c({width:E,height:T}):t.jsx(t.Fragment,{})]})},[d,i?.left,i?.width,i?.totalWidth,s,c,E,T]);return t.jsx("div",{style:{position:"relative",display:"flex",minWidth:s?`${E}px`:void 0,minHeight:a?`${T}px`:void 0,...p},...m,ref:x,children:t.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[t.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:r}),s?j:t.jsx(t.Fragment,{})]}),a?M:t.jsx(t.Fragment,{})]})})}));$t.displayName="ScrollPane";const Wt="error",Ut="warning",qt="info",Zt=new Set,Gt={showMessage:(e,t)=>{if(t?.onceKey){if(Zt.has(t.onceKey))return;Zt.add(t.onceKey)}let n=console.log;t?.type!==Ut&&t?.type!==Wt||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(e=>{e(()=>{})}),showError:e=>{console.error(e)}},Kt=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Xt=0;const Yt=100,Jt=100,Qt=1e6,en=100,tn=50,nn=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,viewportSize:i=0,totalSize:l=0,minSize:a=0,endGap:s=Yt,endScrollIncrement:c=Jt,style:d=Pt,onMouseDown:u,onScrollOffset:p,onScroll:h,scaleLimit:f=Qt,scaleFactor:m=en,precisionFactor:g=tn,...x}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=nt(u,[u]),b=()=>({offset:r,totalSize:0===f?l:Math.min(l??0,Math.max(a??0,(r??0)+(i??0))+(s??0))}),[w,v]=n.useState(b),S=0!==f&&w.totalSize>f?m:1,C=S/g,k=Math.ceil(w.totalSize/S),E=Math.ceil(w.offset/S),_=Math.ceil(i/S),T=n.useCallback(e=>{},[]),[j,M]=n.useState(!1),R=n.useRef(null);n.useLayoutEffect(()=>{if(!j){R.current={propTotalSize:l,propViewportSize:i,propOffset:r};const e=b();v(e)}},[l,i,r,j,a,s,c]);const I=nt((e,t,n)=>{const o=R.current;R.current=null,o&&o.propTotalSize===l&&o.propViewportSize===i&&o.propOffset===r||(Math.abs(e-E)<C&&(e=E),p?.(e*S,E,_))},[p,S,C,E,_]),D=n.useCallback(e=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",D),M(!1)},[]),L=n.useCallback(e=>{y?.(e),M(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",D,{passive:!0})},[T,D]);return t.jsx(st,{ref:o,style:{...d},...x,offset:E,totalSize:k,viewportSize:_,onMouseDown:L,onScrollOffset:I})}));nn.displayName="VirtualScrollbar";const on="bottom",rn="left",ln="right",an="top";function sn(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var cn=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=sn(o,t),r="function"==typeof e;n.push(r?e:()=>sn(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)sn(n,t)}};n.memo(n.forwardRef((e,o)=>{const{refFocusStart:r,...i}=e,l=n.useRef(null),a=n.useCallback(()=>{if(r)return void r?.current?.focus();const e=l.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==l.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[r]);return t.jsx("div",{tabIndex:0,ref:cn([l,o]),onFocus:a,...i})}));const dn=n.memo(n.forwardRef((e,o)=>{const{className:r,style:i,children:l,radius:a=4,strokeWidth:s=1,strokeColor:c="grey",...d}=e,[u,{width:p,height:h}]=tt(),f=n.useRef(null),m=(e,t=0)=>{const n=e/2,o=h-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],p=u===c?a[1]:a[e+1];if(p&&d&&d.length>2&&"L"===u[0]&&p.length>2&&"L"===p[0]){let e,a,c=l(d),h=l(u),f=l(p);n?(e=r(h,d.origPoint||c,t),a=r(h,p.origPoint||f,t)):(e=o(h,c,t),a=o(h,f,t)),i(u,e),u.origPoint=h,s.push(u);let m=r(e,h,.5),g=r(h,a,.5),x=["C",m.x,m.y,g.x,g.y,a.x,a.y];x.origPoint=h,s.push(x)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${a-.5} ${n} L ${a-.5} ${o} L ${2*a} ${o} L ${p-2*a} ${o} M ${p-2*a} ${o} L ${p-a} ${o} L ${p-a} ${n} L ${p} ${n}`,a)},g=n.useMemo(()=>m(s),[p,h,a,s]),x=n.useMemo(()=>{if(0===a)return;const e=a/2;return m(a)+`L ${p} 0 L 0 0 L 0 ${e}`},[g,a,s]),y=n.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return t.jsxs("div",{className:r,style:{display:"flex",flexDirection:"row",...i},...d,ref:cn([f,u,o]),children:[n.isValidElement(l)?n.cloneElement(l,y):t.jsx(t.Fragment,{}),t.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:t.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:s})})]})})),un={},pn=e=>{const{onPointerDown:n,style:o,splitDirection:r,paddingBefore:i=0,paddingAfter:l=0,disabled:a,key:s,hitAreaProps:c=un,...d}=e,u="row"===r,{style:p,className:h,...f}=c;return t.jsx("div",{style:{...o,position:"relative"},...d,children:t.jsx("div",{className:Xe("hit-box",h),style:{left:(u?-i:0)+"px",width:`calc(100% + ${u?i+l:0}px)`,top:(u?0:-i)+"px",height:`calc(100% + ${u?0:i+l}px)`,position:"absolute",...p},onPointerDown:a?void 0:n,...f})},s)},hn={},fn=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,mn=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,gn=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((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)},xn=n.memo(n.forwardRef((e,o)=>{const{elementBefore:r,elementAfter:i,splitDirection:l="row",fixedPane:a=null,position:s,onPositionChange:c,minBefore:d,maxBefore:u,minAfter:p,maxAfter:h,children:f,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:b,onDragFinish:w,resizerProps:v=hn,paneProps:S=hn,paneBeforeProps:C=hn,paneAfterProps:k=hn,createResizer:E=pn}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const _=n.useMemo(()=>n.isValidElement(i)&&n.isValidElement(r),[i,r]),T=n.useMemo(()=>{let e=null;a&&("before"===a?e=0:"after"===a&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:gn(d,t),maxBefore:gn(u,t),minAfter:gn(p,t),maxAfter:gn(h,t)}},[d,u,p,h]),j=nt(c,[c]),[M,R]=n.useState(()=>gn(s,null===a));n.useEffect(()=>{R(gn(s,null===a))},[s,a]);const[I,{width:D,height:L}]=tt(),[O,{width:P,height:A}]=tt(),F="row"===l?P:A,z="row"===l?D:L,B=n.useMemo(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:mn(o.minBefore,!0),maxBefore:mn(o.maxBefore,!0),minAfter:mn(o.minAfter),maxAfter:mn(o.maxAfter)};let l=fn(e,t,1!==o.fixedPaneOffset),a=t-n,s=fn(o.minBefore,a,!0)??0,c=fn(o.maxBefore,a,!0)??a,d=0,u=0,p=0,h=a;d=(fn(o.maxAfter,t,!1)??n)-n,u=fn(o.minAfter,t,!1)??t,p=Math.max(s,d),h=Math.min(c,u),l=Math.max(p,Math.min(l,h)),u=Math.min(a-l,fn(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,fn(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(M,z,F,T),[T,M,z,F,l]),[N,V]=n.useState(!1),H=nt(y,[y]),$=nt(b,[b]),W=nt(w,[w]),U=n.useRef(null),q=n.useRef(null),Z=n.useRef(null),{style:G,className:K,...X}=S,Y={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...G},{className:J,style:Q,...ee}=C,{className:te,style:ne,...oe}=k,re={flex:"1 1 100%",width:"100%",...g,flexDirection:l,display:"flex"},{className:ie,style:le,onPointerDown:ae,...se}=v,ce=nt(e=>{const t=gn(e,null===a);R(t)},[a]),de=nt(e=>{if(x||!N)return;const t=he.current?.getBoundingClientRect();let n=0;n="row"===l?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(z,n)),1===T.fixedPaneOffset&&(n=z-n),s&&M.pixels===n||R({pixels:n,percent:null}),$?.(n),e.stopPropagation(),e.preventDefault()},[T,l,x,N,M,z]),ue=nt(e=>{if(document.removeEventListener("pointermove",de),document.removeEventListener("touchmove",de),document.removeEventListener("pointerup",ue),N&&(V(!1),M)){if(W(M.pixels),!gn(s,null===a)||M.pixels!==s){const e={...M};null===e.percent&&(e.percent=e.pixels/z*100),j(e)}e.stopPropagation(),e.preventDefault()}},[M,N,s,a,z]),pe=nt(e=>{ae?.(e),e.defaultPrevented||x||N||(V(!0),H(),document.addEventListener("pointermove",de,{passive:!1}),document.addEventListener("touchmove",de,{passive:!1}),document.addEventListener("pointerup",ue,{passive:!1}))},[ae]),he=Nt(o,()=>({setPosition:ce,isSplitPane:()=>!0}),[]),fe=n.useMemo(()=>_?E?.({key:"resizer",ref:cn([O,q]),className:Xe("resizer",ie),onPointerDownCapture:pe,style:{cursor:x?void 0:"row"===l?"ew-resize":"ns-resize",minWidth:"row"===l?"2px":void 0,minHeight:"row"!==l?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...le},splitDirection:l,disabled:x,...se}):null,[_,ie,se,l,le,x]),me="row"===l?"Width":"Height",ge={...Y,...Q,flex:0===T.fixedPaneOffset&&null!==B?.pixels[0]?`0 0 ${Math.round(B?.pixels[0])}px`:`1 1 ${Math.round(B?.percents[0]??100)}%`,[`min${me}`]:B?.minBefore,[`max${me}`]:i?B?.maxBefore:"100%"},xe={...Y,...ne,flex:1===T.fixedPaneOffset&&null!==B?.pixels[1]?`0 0 ${Math.round(B?.pixels[1])}px`:`1 1 ${Math.round(B?.percents[1]??100)}%`,[`min${me}`]:B?.minAfter,[`max${me}`]:r?B?.maxAfter:"100%"},ye=n.useMemo(()=>r?t.jsx("div",{ref:U,className:Xe("before",K,J),style:ge,...X,...ee,children:r},"before"):null,[r,S,C,T,B]),be=n.useMemo(()=>i?t.jsx("div",{ref:Z,className:Xe("after",K,te),style:xe,...X,...oe,children:i},"after"):null,[i,S,k,T,B]);return t.jsxs("div",{ref:cn([I,he]),className:Xe("splitPane","row"===l?"vertical":"horizontal",{dragging:N},m),style:re,children:[ye,fe,be]})}));function yn(e,t){return function(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:o,onPointerMoveOrWait:r,processTouch:i=!1,consumeTouch:l=!0}=e,a=nt(t,[t]),s=nt(o,[o]),c=nt(r,[r]),d=n.useRef(!1),u=e?.timerInitial??230,p=e?.timerContinuous??u/2,h=n.useRef(null),f=n.useRef(null),m=n.useRef(null),g=n.useRef(null),x=n.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),y=n.useCallback(e=>{g.current=setTimeout(()=>{window.requestAnimationFrame(()=>{!1!==d.current&&c?.(f.current,m.current,h.current)}),y(p)},e??u)},[]);n.useEffect(()=>()=>x(),[]);const b=i?"pointer":"mouse",w=n.useCallback(e=>{e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault()},[]),v=nt(e=>{document.removeEventListener(`${b}move`,k),document.removeEventListener(`${b}up`,v),document.removeEventListener("keydown",E),document.removeEventListener("keyup",_),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",S),x(),window.requestAnimationFrame(()=>{!1!==d.current&&(d.current=!1,s?.(e,m.current,h.current),m.current=null)})},[]),S=n.useCallback(()=>{!1!==d.current&&(d.current=!1,v(f.current))},[]),C=nt(()=>{x(),y(p),window.requestAnimationFrame(()=>{!1!==d.current&&c?.(f.current,m.current,h.current)})},[p]),k=nt(e=>{f.current=e,C()},[]),E=nt(e=>{m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},C()},[]),_=nt(e=>{m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},C()},[p]);return nt(e=>{e.isDefaultPrevented()||(m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},!1!==a(e,m.current)&&(h.current=e,f.current=e.nativeEvent,document.addEventListener(`${b}up`,v,{passive:!1}),document.addEventListener(`${b}move`,k,{passive:!1}),document.addEventListener("keydown",E,{passive:!1}),document.addEventListener("keyup",_,{passive:!1}),window.addEventListener("blur",S,{passive:!0}),i&&l&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),d.current=!0,y(u)))},[u,i])}({onPointerDown:e,onPointerMoveOrWait:(t,n,o)=>{e?.(o)},...t})}const bn=({initValue:e,useHookBody:t,applyStateChange:o})=>{const r=n.useRef(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const i=t();return n.useLayoutEffect(()=>{r.current!==i&&(r.current=i,o(i))},[o,i]),null},wn=e=>{console&&console.warn&&console.warn(e)},vn="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let Sn=1,Cn=!1,kn=!1;const En=[],_n=[],Tn=()=>{_n.forEach(e=>e())},jn=({automaticContainerInternalUseOnly:e})=>{const[o,r]=n.useState([]),i=n.useRef([]);return i.current=o,e||!1!==Cn||(kn=!0),n.useEffect(()=>{let t=!0;function n(){if(t)return _n[0]!==n?(e||!0!==Cn||wn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void r(e=>[])):void r([...En])}return _n.push(n),Tn(),()=>{t=!1,i.current?.length>0&&wn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),_n.splice(_n.indexOf(n),1),Tn()}},[e]),t.jsx(t.Fragment,{children:o.map(({hook:e,key:t})=>n.createElement(bn,{...e,key:t}))})},Mn=(e,o,r={})=>{let a,s,c=!1,d=!1,u=[],{unmountIfNoConsumers:p=!1}=r;const h=e=>{s=e,l.unstable_batchedUpdates(()=>u.forEach(t=>t(e)))},f=()=>(d||(s="function"==typeof e?e():e,d=!0),s);return()=>{const[r,l]=n.useState(f);return n.useEffect(()=>(c||(c=!0,a=(e=>{const n=Sn++;return En.push({hook:e,key:n}),0===_n.length&&!1===kn&&(Cn=!0,(e=>{if(vn.document&&vn.document.createElement){const n=vn.document.createElement("div");i.createRoot(n).render(t.jsx(e,{automaticContainerInternalUseOnly:!0}))}else wn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(jn)),Tn(),()=>{En.splice(En.findIndex(e=>e.key===n),1),Tn()}})({initValue:e,useHookBody:o,applyStateChange:h})),u.push(l),s!==r&&l(s),()=>{u.splice(u.indexOf(l),1),0===u.length&&p&&(a(),c=!1)}),[]),r}};let Rn=()=>{console.warn("You must call useEditMode before setting its state.")};const In=Mn(null,()=>{const[e,t]=n.useState(null);return Rn=t,e}),Dn=()=>{const e=In();return n.useMemo(()=>({setMode:e=>{Rn(t=>("function"==typeof e&&(e=e(t)),e?.onModeChange?.(e??null),e))},getMode:()=>e}),[e])};let Ln=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,void 0===o&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if("function"==typeof e){const n=t??this._context;return e("function"==typeof n?n():n)}return e}target(){return"function"==typeof this._target?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if("function"==typeof n){const e=t??this._context;o=n("function"==typeof e?e():e)}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"function"==typeof this._context?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)),!1===await Promise.resolve(n))return!1;const o=this._callback.bind(this)(e,this);if(!1===await Promise.resolve(o))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}},On=class extends Ln{},Pn=class e{constructor(e,t){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=he.uuidV4(),this._target=e,this._groupKey=t??null,this._root=this,this._nodes=new Map,this._nodes.set(t,this),this._children=new Map,this._listeners=new Set,this._commandsByKey=new Map,this._commandsByShortcut=new Map;const n=this;this._unListenersByCommand=new Map,this._listenersByKey=new Map,this._commandsPropertyListener=(e,t)=>{const o=n._root._listenersByKey,r=t.key(),i=o.get(r);i&&n._notifyCommands(i,"onCommandChange",t)}}_getCommand(e){return this._commandsByKey.get(e)||(this._parent?._getCommand(e)??null)}getCommand(e,t=!1){const n=this._root._focused;let o=n,r=n===this;for(;!r&&o;)o===this&&(r=!0),o=o._parent;return(r?n:this)._getCommand(e)}createChildGroup(t,n,o){let r;if(!o){let e=this;for(;e&&!r;){let t=e._nodes.get(n);t&&(r=t),e=e._parent}}r||(r=new e(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(e,t)=>{!e.has(n)||o?e.set(n,t):void 0===o&&console.warn("commandGroup already registered",n)};i(this._root._nodes,r);let l=this._parent;for(;l;)i(this._nodes,r),l=l._parent;return this._children.set(n,r),this._notify("onGroupChange"),r}getKey(){return this._groupKey}getGroup(e){return this._nodes.get(e)}_addCommands(e,t=void 0){const n=this._commandsByKey,o=this._commandsByShortcut,r=this._root._commandsPropertyListener,i=this._root._unListenersByCommand;for(let l=0;l<e.length;l++){const a=e[l],s=a.key();if(n.has(s)&&!t){void 0===t&&console.warn("command already registered",s);continue}n.set(s,a);let c=i.get(a);c&&(c(),i.delete(a));const d=a.addPropertyListener(r);i.set(a,d);const u=a.shortcut();if(!u)continue;const p=Array.isArray(u)?u:[u];for(let e=0;e<p.length;e++){const n=zn(p[e]),r=o.get(n);r&&!t&&void 0===t&&console.warn(`Shortcut already registered: ${n}, ${s}, ${r}.`),o.set(n,s)}}}removeFromParent(){if(!this._parent)return;let e=this._parent,t=[];const n=this._groupKey;for(;e;)t.push(e._nodes),e._nodes.delete(n),e=e._parent;e=this._parent;const o=e=>{e._children.forEach(e=>{for(let n=0;n<t.length;n++)e._nodes.delete(t[n]);o(e)})};o(this),this._parent=null,this._notify("onGroupChange")}addCommands(e,t){this._addCommands(e,t),this._notify("onGroupChange")}getActive(){return this._root._focused??this._root}activate(e){let t=this;if(e&&(t=this._nodes.get(e),!t))return void console.warn("group not found",e);let n=this._root._focused??this._root;for(;n;)n=n._parent;this._root._focused!==t&&(this._root._focused=t,this._notify("onGroupChange"),this._notify("onActiveChange"))}findCommandByEvent(e){const t=[];e.altKey&&t.push(Ue.Alt),e.shiftKey&&t.push(Ue.Shift),e.ctrlKey&&t.push(Ue.Ctrl),e.metaKey&&t.push(Ue.Meta);let n=zn({key:e.code,modifiers:t});const o=this._commandsByShortcut;let r=o.get(n);r||(n=zn({key:e.key,modifiers:t}),r=o.get(n)),!r&&e.code.startsWith("Digit")&&(n=zn({key:e.code.substring(5,e.code.length),modifiers:t}),r=this._commandsByShortcut.get(n)),!r&&e.code.startsWith("Key")&&(r=zn({key:e.code.substring(3,e.code.length),modifiers:t}),r=o.get(n));let i=null;return r&&(i=this._commandsByKey.get(r),i&&i.disabled()&&(i=null),!i||i.target()&&i.target().contains(e.target)||(i=null)),i||(this._parent?.findCommandByEvent(e)??null)}dispatchToFocusedCommand(e){const t=this.getActive();if(!t)return!1;if(e.isDefaultPrevented())return!1;const n=t.findCommandByEvent?.(e);return!!n&&(n.execute(),e.preventDefault(),!0)}getRoot(){return this._parent?this._parent.getRoot():this}getParent(){return this._parent}addListener(e,t){const n=this._listeners,o=t?.keys,r=this._root._listenersByKey;if(o&&!e.onCommandChange)throw new Error("keys were provided but the listener does not contain 'onCommandChange'.");let i=null;if(o)for(let t=0;t<o.length;t++){const n=o[t];if(!n)continue;let l=r.get(n);l||(l=new Set,r.set(n,l)),i||(i=[]),i.push(l),l.add(e)}return n.add(e),()=>{if(i)for(let t=0;t<i.length;t++)i[t].delete(e);n.delete(e)}}_notifyCommands(e,t,n){const o=this;setTimeout(()=>{e.forEach(e=>{e[t]?.(o,n)})},0)}_notify(e,t){const n=this;setTimeout(()=>{n._listeners.forEach(o=>{o[e]?.(n,t)}),n._parent&&n._parent._notify(e,t)},0)}getAllCommands(){const e=[],t=this._groupKey;return this._commandsByKey.forEach(n=>{e.push({command:n,groupKey:t})}),this._children.forEach(t=>{e.push(...t.getAllCommands())}),e}};const An=he.getOS()===he.OSType.MacOS||he.getOS()===he.OSType.IOS?"Cmd":"Ctrl",Fn=he.getOS()===he.OSType.MacOS||he.getOS()===he.OSType.IOS?"⌘":"^",zn=(e,t=!1)=>{const n={};for(let t=0;e.modifiers&&t<e.modifiers.length;t++)n[e.modifiers[t]]=!0;let o="";return(n?.[Ue.Ctrl]||n?.[Ue.Meta])&&(o+=(o.length>0?"+":"")+(t?Fn:An)),n?.[Ue.Alt]&&(o+=t?"⌥":"Alt"),n?.[Ue.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Ft(e.key),o};function Bn(e,t=null){const o=n.useRef(t);o.current=t;const[r,i]=n.useReducer(e=>e+1,0),l=n.useMemo(()=>Array.isArray(e)?e:[e],[e]);return n.useEffect(()=>{if(!l||0===l.length)return;const e=(e,t)=>{o.current?.onChange?.(t),i()};let n=null;t&&(n={onExecute(e,t){o.current?.onExecute?.(e,t)},onError(e,t,n){o.current?.onError?.(e,t,n)}});const r=new Set;for(let o=0;o<l.length;o++)r.add(l[o]?.addPropertyListener(he.debounce(e,0),!0)),t&&r.add(l[o]?.addExecuteListener(n));return()=>{r.forEach(e=>{e?.()})}},[e]),r}const Nn=(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 Vn(e,t=null,o=null,r){const i=n.useRef(o);i.current=o,t&&!Array.isArray(t)&&(t=[t]);const[l,a]=n.useState(Nn(e,t)),s=r?[...r,e]:[e];return n.useEffect(()=>{const n={onGroupChange:()=>{const n=Nn(e,t);a(n),i.current?.onChange?.(this)}};let o;t&&t.length>0&&(o={keys:t},n.onCommandChange=(n,o)=>{i.current?.onChange?.(e),a(Nn(e,t))});const r=e?.addListener(n,o),l=Nn(e,t);return a(l),i.current?.onChange&&i.current?.onChange(e),()=>{r?.()}},s),l}const Hn={Toolbar:"toolbar",Menuitem:"menuitem"},$n=Mn({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>He.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=n.useState(He.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:n.useRef(null),refNativeLastKey:n.useRef(null)}}),Wn=e=>{const{source:t,target:o,onPaste:r,onClipboardUpdate:i,notifier:l=Gt,commands:a}=e,s=nt(i,[i]),c=nt(r,[r]),{getClipboard:d,refNativeCopy:u}=$n(),p=d();n.useMemo(()=>{const e=t?.element,n=o?.element??t?.element;if(!a)return;const r=[new On("cut",e,{label:"Cut",description:"Remove the selection and put it on the clipboard so you can paste it somewhere else.",shortcut:{key:"X",modifiers:[Ue.Ctrl]}}),new On("copy",e,{label:"Copy",description:"Put a copy of the selection on the clipboard so you can paste it somewhere else.",shortcut:{key:"C",modifiers:[Ue.Ctrl]}}),new On("paste",n,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[Ue.Ctrl]},{key:"F8",modifiers:[Ue.Ctrl]}]})];a?.addCommands(r,!0)},[a]);const h=nt(async e=>{if(!t?.element)return;let n=null;try{n=t.doCopy?.(e),"string"==typeof n?await p.writeText(n):await p.writeReference(n)}catch(e){throw e}},[t,l]),f=nt(async e=>{const n=t?.element?.();if(n){u.current={sourceElement:n,args:e};try{await h(e)}catch(e){l?.showError?.(e)}}},[t?.element,l]),y=n.useCallback(()=>{f({isCut:!0})},[]),b=nt(async(e,t,n)=>{try{if(!1===await e.doPaste(t,n))return;c?.(t,n)}catch(e){l?.showError?.(e)}},[c]),w=nt(async(e,t,n)=>{const r=o?.element?.();if(r&&await he.whenFocus(r),!e&&!t)return;const i=await(l?.showBusy?.("Pasting..."));if(t)try{return await b(o,t,n),void i?.()}catch(e){i?.(),l?.showError?.(e)}let a,s=o.importFromExternal;s||(s=(t,n)=>({getItemType:()=>"text",toText:()=>e.text,isClipboardItem:!0}));try{a=await s(e,{isCut:!1})}catch(e){i?.(),l?.showError?.(e)}if(a)try{const e=await Promise.resolve(a);await b(o,e,n),i?.()}catch(e){i?.(),l?.showError?.(e)}else i?.()},[b,o,l]),v=nt(async e=>{if(o?.element)try{const t=await p.readReference();if(t)return void await w(null,t,e);const n=[];n[0]=await Pe(p,g),n[1]=await Ae(p,m),n[2]=await Oe(p,x);const o={text:n[0]??null,html:n[1]??null,image:n[2]??null};await w(o,null,e)}catch(e){if("Document is not focused."===e?.message)return;l?.showError?.(e)}},[w,o?.element,l]);return nt(async e=>{},[t?.element]),nt(async e=>{},[o?.element,w,l]),n.useEffect(()=>{if(!p)return;const e=async e=>{const t=await p.readReference();s?.(t)},t=e=>{l?.showMessage?.(He.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},n=e=>{l?.showMessage?.(He.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return p.addEventListener("clipboardchange",e),p.addEventListener("clipboarderrorread",t),p.addEventListener("clipboarderrorwrite",n),()=>{p.removeEventListener("clipboardchange",e),p.removeEventListener("clipboarderrorread",t),p.removeEventListener("clipboarderrorwrite",n)}},[p,l]),n.useEffect(()=>{},[h,w,t,o]),n.useEffect(()=>{a?.getCommand("cut")?.updateCallback(y).update({disabled:!t||!o}),a?.getCommand("copy")?.updateCallback(f).update({disabled:!t}),a?.getCommand("paste")?.updateCallback(v).update({disabled:!o})},[t,o,a]),{paste:v,copy:f,clipboard:p}};n["useId".toString()];const Un="Undo the last action.",qn="Repeat the last action or undo the redo.",Zn=e=>`Redo ${e}`;function Gn(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Gn(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Kn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Gn(e))&&(o&&(o+=" "),o+=t);return o}const Xn="text/html",Yn="text/plain",Jn="image/png",Qn=Object.freeze({left:0,top:0}),eo=Object.freeze({left:0,top:0,bottom:0,right:0}),to=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:to,EmptyRect:eo,EmptyTopLeft:Qn},Symbol.toStringTag,{value:"Module"}));const no="column",oo="row",ro=Object.freeze({colIndex:0,rowIndex:0}),io=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),lo=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,ao=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,so=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,co=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,uo=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,po=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,ho=(e=oo,t=!1)=>t?e!==no?so:co:e!==no?ao:lo,fo=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,mo=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,go=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),xo=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!mo(e[n],t[n]))return!1;return!0},yo=(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),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},bo=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];go(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},wo=[null,null],vo=(e,t,n)=>{if(e[0].value===e[1].value)return t};function So(e,t=2,n,o=oo,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===no,a=0,s=!1;do{const e=i.sort(ho(l?oo:no));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&p===t.rowStart&&f===t.rowEnd&&h+1===t.colStart:d&&u===t.colStart&&h===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:p,colEnd:l?t.colEnd:h,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:ro,EmptyRange:io,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:uo,columnFirstRangeComparator:lo,createCellComparator:(e=oo,t=!1)=>t?e!==no?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==no?po:uo,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const p=t?a:s,h=t?s:a;o={colStart:p,rowStart:h,colEnd:p,rowEnd:h},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?So(n,3,!0===e?vo:e,t?no:oo,wo):n)}},createRangeComparator:ho,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:bo,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!mo(n,o);)o=n,n=bo(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(go(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(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),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:fo,isEqualRanges:mo,isEqualRangesArrays:xo,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!fo(e.cell,t.cell)&&xo(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:go,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:So,rowFirstCellComparator:po,rowFirstRangeComparator:ao,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:yo,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=yo(o,e[t],n);return t&&(o=yo(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Co="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ko(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Co}(e)}(e)}function Eo(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mo((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function _o(e,t,n){return e.concat(t).map(function(e){return Eo(e,n)})}function To(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function jo(e,t){try{return t in e}catch(e){return!1}}function Mo(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||_o,n.isMergeableObject=n.isMergeableObject||ko,n.cloneUnlessOtherwiseSpecified=Eo;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&To(e).forEach(function(t){o[t]=Eo(e[t],n)}),To(t).forEach(function(r){(function(e,t){return jo(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(jo(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Mo;const n=t.customMerge(e);return"function"==typeof n?n:Mo}(r,n)(e[r],t[r],n):o[r]=Eo(t[r],n))}),o}(e,t,n):Eo(t,n)}Mo.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Mo(e,n,t)},{})};const Ro=Object.freeze([]),Io=Object.freeze({}),Do=e=>e,Lo=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),Oo=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),Po=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,Ao=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?Ao(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),Fo=(e,t)=>!(e!==t&&!Oo(e,t)&&!e.isEqual?.(t)),zo=(e,t,n=Fo)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===zo(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},Bo="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),No=e=>null==e,Vo=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),Ho=!("undefined"==typeof window||!window.document||!window.document.createElement),$o={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Wo=()=>{if(Uo())return $o.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?$o.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?$o.MacOS:/(iphone|ipad|ipod)/i.test(e)?$o.IOS:/android/.test(e)?$o.Android:/linux/.test(e)?$o.Linux:/^((?!chrome|android|).)*safari/i.test(e)?$o.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?$o.Firefox:$o.Unknown:$o.Unknown};function Uo(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const qo=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Zo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Ro,EmptyObject:Io,OSType:$o,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=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:Ho,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>No(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,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){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;0!==r--;)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;0!==r--;)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;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:Mo,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=Do){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=Do){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>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"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!Po(r))return r;o=r}return o??null},getOS:Wo,hasFocus:qo,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:Oo,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:Uo,isNullOrUndefined:No,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:Po,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:Vo,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!Po(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Mo(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!Ho)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(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:Ao,removeEqualValues:zo,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=Bo(),o={id:requestAnimationFrame(function r(){Bo()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!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 e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!Po(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!Po(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,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);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(!Vo(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})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),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(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&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 e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:Lo,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=>{qo(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 Go=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},Ko=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Go,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:Ko},Symbol.toStringTag,{value:"Module"}));const Xo="data:image/png;base64,",Yo="Unable to resolve image.",Jo=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(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(Yo)}),Qo="image/svg+xml";var er,tr;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Xo,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 e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(Yo)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await Jo(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:Qo})),i=await Jo(r);n={mimeType:t??Qo,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===Qo?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"})),(tr=er||(er={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,tr.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};const nr="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",or="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",rr={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:or,PermsWrite:Wo()===$o.Safari?nr:or,PermsRead:Wo()===$o.Safari?nr:or},ir=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),lr=async(e,t,n)=>{if(Wo()===$o.Safari)return await n(new Error(rr.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},ar=async e=>{try{return await e.read({unsanitized:[Xn]})}catch(e){}return await e.read()};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const sr=async(e,t=Xn)=>new Promise(async(n,o)=>{try{const o=await(async(e,t)=>{if(!e)return null;const n=await ar(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null})(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),cr=async(e,t=Xn)=>{const n=await sr(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,Xn)}catch(e){console.warn("Can't parse html from clipboard.")}return o},dr="clipboard-uuid",ur="web text/uuid",pr=e=>`<div style="display:none" ${dr}="${e}"/>`,hr=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,Xn);o.body.firstElementChild.setAttribute(dr,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},fr=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${dr}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let mr=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await lr("clipboard-read",async()=>{await ir();const e=await sr(this._nativeClipboard,ur);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await cr(this._nativeClipboard,Xn);return!this._state||(fr(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||Wo()===$o.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 lr("clipboard-read",async()=>{if(await ir(),this._state?.uuid){const t=await sr(this._nativeClipboard,ur);if(t&&t===e._state.uuid)return!0;const n=await cr(this._nativeClipboard,Xn);if(fr(e._state?.uuid,n))return!0}return e._state={items:await ar(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Lo(),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 lr("clipboard-write",async()=>{await ir(),o&&0===r.length&&(r.push(new ClipboardItem({[ur]:new Blob([o],{type:ur})})),r.push(new ClipboardItem({[Xn]:new Blob([pr(o)],{type:Xn})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(Xn),l=null;if(-1!==i){const e=await t.getType(Xn);l=await Ko(e),l&&(l=hr(o,l))}if(!l&&t.types.includes(Yn)){const e=await t.getType(Yn);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await Ko(e),t&&(l=`<div ${dr}="${o}">${t}</div>`)}}if(!l&&t.types.includes(Jn)){const e=await t.getType(Jn),n=Go(await e.arrayBuffer());l=`<div ${dr}="${o}"><img src="${Xo+n}"/></div>`}!l&&o&&(l=pr(o));const a=new Blob([l??""],{type:Xn}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[Xn]=a),o&&(s[ur]=new Blob([o],{type:ur})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await(async e=>{e&&await e.writeText("")})(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[Yn]=new Blob([t??""],{type:Yn}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[Xn]=new Blob([t],{type:Xn}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[Jn]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:Lo(),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 e=0;!o&&n&&e<n.length;e++)n[e].types.includes(Yn)&&(o=await n[e].getType(Yn));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[Yn]:new Blob([e],{type:Yn})})];return this._write({uuid:Lo(),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,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};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),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var gr;(gr=mr||(mr={})).ErrorMessages=rr,gr.Global=new gr;const xr=e=>t.jsx(o.SvgIcon,{...e,children:t.jsx("path",{})}),yr=e=>t.jsx(o.SvgIcon,{...e,children:t.jsx("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),br=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),wr=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),vr=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),Sr=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Cr=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),kr=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Er=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),_r=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Tr=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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 jr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Mr="$$material";function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ir(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?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(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var Dr,Lr,Or={exports:{}},Pr={};var Ar=(Lr||(Lr=1,Or.exports=function(){if(Dr)return Pr;Dr=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"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case r:case o:case s:case c:case p:return h;default:switch(h=h&&h.$$typeof){case l:case a:case u:case d:case i:return h;default:return f}}case t:return f}}}return Pr.ContextConsumer=i,Pr.ContextProvider=l,Pr.Element=e,Pr.ForwardRef=a,Pr.Fragment=n,Pr.Lazy=u,Pr.Memo=d,Pr.Portal=t,Pr.Profiler=r,Pr.StrictMode=o,Pr.Suspense=s,Pr.SuspenseList=c,Pr.isContextConsumer=function(e){return f(e)===i},Pr.isContextProvider=function(e){return f(e)===l},Pr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Pr.isForwardRef=function(e){return f(e)===a},Pr.isFragment=function(e){return f(e)===n},Pr.isLazy=function(e){return f(e)===u},Pr.isMemo=function(e){return f(e)===d},Pr.isPortal=function(e){return f(e)===t},Pr.isProfiler=function(e){return f(e)===r},Pr.isStrictMode=function(e){return f(e)===o},Pr.isSuspense=function(e){return f(e)===s},Pr.isSuspenseList=function(e){return f(e)===c},Pr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===r||e===o||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===l||e.$$typeof===i||e.$$typeof===a||e.$$typeof===h||void 0!==e.getModuleId)},Pr.typeOf=f,Pr}()),Or.exports);function Fr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function zr(e){if(u.isValidElement(e)||Ar.isValidElementType(e)||!Fr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=zr(e[n])}),t}function Br(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Fr(e)&&Fr(t)&&Object.keys(t).forEach(r=>{u.isValidElement(t[r])||Ar.isValidElementType(t[r])?o[r]=t[r]:Fr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Fr(e[r])?o[r]=Br(e[r],t[r],n):n.clone?o[r]=Fr(t[r])?zr(t[r]):t[r]:o[r]=t[r]}),o}function Nr(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Vr(e){if(e.type)return e;if("#"===e.charAt(0))return Vr(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,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(jr(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(jr(10,o))}else r=r.split(",");return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:o}}const Hr=(e,t)=>{try{return(e=>{const t=Vr(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function $r(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Wr(e){e=Vr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),$r({type:a,values:s})}function Ur(e){let t="hsl"===(e=Vr(e)).type||"hsla"===e.type?Vr(Wr(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qr(e,t,n){try{return function(e,t){return e=Vr(e),t=Nr(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$r(e)}(e,t)}catch(t){return e}}function Zr(e,t){if(e=Vr(e),t=Nr(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 $r(e)}function Gr(e,t,n){try{return Zr(e,t)}catch(t){return e}}function Kr(e,t){if(e=Vr(e),t=Nr(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 $r(e)}function Xr(e,t,n){try{return Kr(e,t)}catch(t){return e}}function Yr(e,t,n){try{return function(e,t=.15){return Ur(e)>.5?Zr(e,t):Kr(e,t)}(e,t)}catch(t){return e}}const Jr={black:"#000",white:"#fff"},Qr={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"},ei="#d32f2f",ti="#42a5f5",ni="#0288d1";function oi(){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:Jr.white,default:Jr.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 ri=oi();function ii(){return{text:{primary:Jr.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:Jr.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 li=ii();function ai(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Kr(e.main,r):"dark"===t&&(e.dark=Zr(e.main,i)))}function si(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(e="light"){return"dark"===e?{main:"#90caf9",light:"#e3f2fd",dark:ti}:{main:"#1976d2",light:ti,dark:"#1565c0"}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),a=e.error||function(e="light"){return"dark"===e?{main:"#f44336",light:"#e57373",dark:ei}:{main:ei,light:"#ef5350",dark:"#c62828"}}(t),s=e.info||function(e="light"){return"dark"===e?{main:"#29b6f6",light:"#4fc3f7",dark:ni}:{main:ni,light:"#03a9f4",dark:"#01579b"}}(t),c=e.success||function(e="light"){return"dark"===e?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function u(e){const t=function(e,t){const n=Ur(e),o=Ur(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}(e,li.text.primary)>=n?li.text.primary:ri.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(jr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(jr(12,t?` (${t})`:"",JSON.stringify(e.main)));return ai(e,"light",r,o),ai(e,"dark",i,o),e.contrastText||(e.contrastText=u(e.main)),e};let h;return"light"===t?h=oi():"dark"===t&&(h=ii()),Br({common:{...Jr},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:Qr,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:o,...h},r)}var ci,di,ui,pi,hi,fi={exports:{}};function mi(){if(pi)return ui;pi=1;var e=di?ci:(di=1,ci="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,ui=function(){function o(t,n,o,r,i,l){if(l!==e){var a=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 a.name="Invariant Violation",a}}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}}function gi(){return hi||(hi=1,fi.exports=mi()()),fi.exports}function xi(e,t){return t?Br(e,t,{clone:!1}):e}function yi(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const o=t[n];return delete e[n],e[n]=o,e},{...t}):t}const bi={xs:0,sm:600,md:900,lg:1200,xl:1536},wi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bi[e]}px)`},vi={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:bi[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Si(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||wi;return t.reduce((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o),{})}if("object"==typeof t){const e=o.breakpoints||wi;return Object.keys(t).reduce((r,i)=>{if(l=e.keys,"@"===(a=i)||a.startsWith("@")&&(l.some(e=>a.startsWith(`@${e}`))||a.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}(o.containerQueries?o:vi,i);e&&(r[e]=n(t[i],i))}else if(Object.keys(e.values||bi).includes(i))r[e.up(i)]=n(t[i],i);else{const e=i;r[e]=t[e]}var l,a;return r},{})}return n(t)}function Ci(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ki(e){if("string"!=typeof e)throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ei(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function _i(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:Ei(e,n)||o,t&&(r=t(r,o,e)),r}function Ti(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=Ei(e.theme,o)||{};return Si(e,i,e=>{let o=_i(l,r,e);return e===o&&"string"==typeof e&&(o=_i(l,r,`${t}${"default"===e?"":ki(e)}`,e)),!1===n?o:{[n]:o}})};return i.propTypes={},i.filterProps=[t],i}const ji={m:"margin",p:"padding"},Mi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ri={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ii=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Ri[e])return[e];e=Ri[e]}const[t,n]=e.split(""),o=ji[t],r=Mi[n]||"";return Array.isArray(r)?r.map(e=>o+e):[o+r]})(t)),e[t])}(),Di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Li=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Oi(e,t,n,o){const r=Ei(e,t,!0)??n;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:"string"==typeof r?`calc(${e} * ${r})`:r*e:Array.isArray(r)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=r[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof r?r:()=>{}}function Pi(e){return Oi(e,"spacing",8)}function Ai(e,t){return"string"==typeof t||null==t?t:e(t)}function Fi(e,t){const n=Pi(e.theme);return Object.keys(e).map(o=>function(e,t,n,o){if(!t.includes(n))return null;const r=function(e,t){return n=>e.reduce((e,o)=>(e[o]=Ai(t,n),e),{})}(Ii(n),o);return Si(e,e[n],r)}(e,t,o,n)).reduce(xi,{})}function zi(e){return Fi(e,Di)}function Bi(e){return Fi(e,Li)}function Ni(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if("components"===r||"slots"===r)n[r]={...e[r],...n[r]};else if("componentsProps"===r||"slotProps"===r){const o=e[r],i=t[r];if(i)if(o){n[r]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;n[r][t]=Ni(o[t],i[t])}}else n[r]=i;else n[r]=o||{}}else void 0===n[r]&&(n[r]=e[r])}return n}zi.propTypes={},zi.filterProps=Di,Bi.propTypes={},Bi.filterProps=Li;const Vi={borderRadius:4};function Hi(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,o)=>t[o]?xi(n,t[o](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function $i(e){return"number"!=typeof e?e:`${e}px solid`}function Wi(e,t){return Ti({prop:e,themeKey:"borders",transform:t})}const Ui=Wi("border",$i),qi=Wi("borderTop",$i),Zi=Wi("borderRight",$i),Gi=Wi("borderBottom",$i),Ki=Wi("borderLeft",$i),Xi=Wi("borderColor"),Yi=Wi("borderTopColor"),Ji=Wi("borderRightColor"),Qi=Wi("borderBottomColor"),el=Wi("borderLeftColor"),tl=Wi("outline",$i),nl=Wi("outlineColor"),ol=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Oi(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ai(t,e)});return Si(e,e.borderRadius,n)}return null};ol.propTypes={},ol.filterProps=["borderRadius"],Hi(Ui,qi,Zi,Gi,Ki,Xi,Yi,Ji,Qi,el,ol,tl,nl);const rl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Oi(e.theme,"spacing",8),n=e=>({gap:Ai(t,e)});return Si(e,e.gap,n)}return null};rl.propTypes={},rl.filterProps=["gap"];const il=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Oi(e.theme,"spacing",8),n=e=>({columnGap:Ai(t,e)});return Si(e,e.columnGap,n)}return null};il.propTypes={},il.filterProps=["columnGap"];const ll=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Oi(e.theme,"spacing",8),n=e=>({rowGap:Ai(t,e)});return Si(e,e.rowGap,n)}return null};function al(e,t){return"grey"===t?t:e}function sl(e){return e<=1&&0!==e?100*e+"%":e}ll.propTypes={},ll.filterProps=["rowGap"],Hi(rl,il,ll,Ti({prop:"gridColumn"}),Ti({prop:"gridRow"}),Ti({prop:"gridAutoFlow"}),Ti({prop:"gridAutoColumns"}),Ti({prop:"gridAutoRows"}),Ti({prop:"gridTemplateColumns"}),Ti({prop:"gridTemplateRows"}),Ti({prop:"gridTemplateAreas"}),Ti({prop:"gridArea"})),Hi(Ti({prop:"color",themeKey:"palette",transform:al}),Ti({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:al}),Ti({prop:"backgroundColor",themeKey:"palette",transform:al}));const cl=Ti({prop:"width",transform:sl}),dl=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||bi[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:sl(t)}};return Si(e,e.maxWidth,t)}return null};dl.filterProps=["maxWidth"];const ul=Ti({prop:"minWidth",transform:sl}),pl=Ti({prop:"height",transform:sl}),hl=Ti({prop:"maxHeight",transform:sl}),fl=Ti({prop:"minHeight",transform:sl});Ti({prop:"size",cssProperty:"width",transform:sl}),Ti({prop:"size",cssProperty:"height",transform:sl}),Hi(cl,dl,ul,pl,hl,fl,Ti({prop:"boxSizing"}));const ml={border:{themeKey:"borders",transform:$i},borderTop:{themeKey:"borders",transform:$i},borderRight:{themeKey:"borders",transform:$i},borderBottom:{themeKey:"borders",transform:$i},borderLeft:{themeKey:"borders",transform:$i},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$i},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ol},color:{themeKey:"palette",transform:al},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:al},backgroundColor:{themeKey:"palette",transform:al},p:{style:Bi},pt:{style:Bi},pr:{style:Bi},pb:{style:Bi},pl:{style:Bi},px:{style:Bi},py:{style:Bi},padding:{style:Bi},paddingTop:{style:Bi},paddingRight:{style:Bi},paddingBottom:{style:Bi},paddingLeft:{style:Bi},paddingX:{style:Bi},paddingY:{style:Bi},paddingInline:{style:Bi},paddingInlineStart:{style:Bi},paddingInlineEnd:{style:Bi},paddingBlock:{style:Bi},paddingBlockStart:{style:Bi},paddingBlockEnd:{style:Bi},m:{style:zi},mt:{style:zi},mr:{style:zi},mb:{style:zi},ml:{style:zi},mx:{style:zi},my:{style:zi},margin:{style:zi},marginTop:{style:zi},marginRight:{style:zi},marginBottom:{style:zi},marginLeft:{style:zi},marginX:{style:zi},marginY:{style:zi},marginInline:{style:zi},marginInlineStart:{style:zi},marginInlineEnd:{style:zi},marginBlock:{style:zi},marginBlockStart:{style:zi},marginBlockEnd:{style:zi},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:rl},rowGap:{style:ll},columnGap:{style:il},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sl},maxWidth:{style:dl},minWidth:{transform:sl},height:{transform:sl},maxHeight:{transform:sl},minHeight:{transform:sl},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"}},gl=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const d=Ei(n,a)||{};return c?c(r):Si(r,t,t=>{let n=_i(d,s,t);return t===n&&"string"==typeof t&&(n=_i(d,s,`${e}${"default"===t?"":ki(t)}`,t)),!1===l?n:{[l]:n}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??ml;function a(n){let o=n;if("function"==typeof n)o=n(r);else if("object"!=typeof n)return n;if(!o)return null;const a=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(r.breakpoints),s=Object.keys(a);let c=a;return Object.keys(o).forEach(n=>{const i="function"==typeof(a=o[n])?a(r):a;var a;if(null!=i)if("object"==typeof i)if(l[n])c=xi(c,e(n,i,r,l));else{const e=Si({theme:r},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=xi(c,e):c[n]=t({sx:i,theme:r,nested:!0})}else c=xi(c,e(n,i,r,l))}),!i&&r.modularCssLayers?{"@layer sx":yi(r,Ci(s,c))}:yi(r,Ci(s,c))}return Array.isArray(o)?o.map(a):a(o)}}();function xl(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)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 yl(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function c(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return{keys:l,values:i,up:a,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...r}}(n),s=function(e=8,t=Pi({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(r);let c=Br({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...Vi,...i}},l);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,o){n.up=(...n)=>t(e.breakpoints.up(...n),o),n.down=(...n)=>t(e.breakpoints.down(...n),o),n.between=(...n)=>t(e.breakpoints.between(...n),o),n.only=(...n)=>t(e.breakpoints.only(...n),o),n.not=(...n)=>{const r=t(e.breakpoints.not(...n),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(n(o,e),o);return n(r),{...e,containerQueries:r}}(c),c.applyStyles=xl,c=t.reduce((e,t)=>Br(e,t),c),c.unstable_sxConfig={...ml,...l?.unstable_sxConfig},c.unstable_sx=function(e){return gl({sx:e,theme:this})},c}gl.filterProps=["sx"];const bl=yl(),wl=(e,t,n,o=[])=>{let r=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(r)?r[Number(e)]=n:r&&"object"==typeof r&&(r[e]=n):r&&"object"==typeof r&&(r[e]||(r[e]=o.includes(e)?[]:{}),r=r[e])})};function vl(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var a,s;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(r,{[o]:s}),wl(i,e,`var(${o})`,a),wl(l,e,`var(${o}, ${s})`,a)}},s=e=>"vars"===e[0],function e(t,n=[],o=[]){Object.entries(t).forEach(([t,r])=>{(!s||s&&!s([...n,t]))&&null!=r&&("object"==typeof r&&Object.keys(r).length>0?e(r,[...n,t],Array.isArray(r)?[...o,t]:o):a([...n,t],r,o))})}(e),{css:r,vars:i,varsWithDefaults:l}}function Sl(e){const t={};return Object.entries(e).forEach(e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}const Cl={textTransform:"uppercase"},kl='"Roboto", "Helvetica", "Arial", sans-serif';function El(e,t){const{fontFamily:n=kl,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,p=o/14,h=d||(e=>e/s*p+"rem"),f=(e,t,o,r,i)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:o,...n===kl?{letterSpacing:(l=r/t,Math.round(1e5*l)/1e5+"em")}:{},...i,...c};var l},m={h1:f(r,96,1.167,-1.5),h2:f(r,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(l,14,1.75,.4,Cl),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Cl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Br({htmlFontSize:s,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...m},u,{clone:!1})}function _l(...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 Tl=["none",_l(0,2,1,-1,0,1,1,0,0,1,3,0),_l(0,3,1,-2,0,2,2,0,0,1,5,0),_l(0,3,3,-2,0,3,4,0,0,1,8,0),_l(0,2,4,-1,0,4,5,0,0,1,10,0),_l(0,3,5,-1,0,5,8,0,0,1,14,0),_l(0,3,5,-1,0,6,10,0,0,1,18,0),_l(0,4,5,-2,0,7,10,1,0,2,16,1),_l(0,5,5,-3,0,8,10,1,0,3,14,2),_l(0,5,6,-3,0,9,12,1,0,3,16,2),_l(0,6,6,-3,0,10,14,1,0,4,18,3),_l(0,6,7,-4,0,11,15,1,0,4,20,3),_l(0,7,8,-4,0,12,17,2,0,5,22,4),_l(0,7,8,-4,0,13,19,2,0,5,24,4),_l(0,7,9,-4,0,14,21,2,0,5,26,4),_l(0,8,9,-5,0,15,22,2,0,6,28,5),_l(0,8,10,-5,0,16,24,2,0,6,30,5),_l(0,8,11,-5,0,17,26,2,0,6,32,5),_l(0,9,11,-5,0,18,28,2,0,7,34,6),_l(0,9,12,-6,0,19,29,2,0,7,36,6),_l(0,10,13,-6,0,20,31,3,0,8,38,7),_l(0,10,13,-6,0,21,33,3,0,8,40,7),_l(0,10,14,-6,0,22,35,3,0,8,42,7),_l(0,11,14,-7,0,23,36,3,0,9,44,8),_l(0,11,15,-7,0,24,38,3,0,9,46,8)],jl={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)"},Ml={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rl(e){return`${Math.round(e)}ms`}function Il(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Dl(e){const t={...jl,...e.easing},n={...Ml,...e.duration};return{getAutoHeightDuration:Il,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0,...a}=o;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof r?r:Rl(r)} ${i} ${"string"==typeof l?l:Rl(l)}`).join(",")},...e,easing:t,duration:n}}const Ll={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ol(e){return Fr(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Pl(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[r,i]=n[o];!Ol(i)||r.startsWith("unstable_")?delete t[r]:Fr(i)&&(t[r]={...i},e(t[r]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Al(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:a={},shape:s,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(jr(20));const d=si(i),u=yl(e);let p=Br(u,{mixins:(h=u.breakpoints,f=o,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...f}),palette:d,shadows:Tl.slice(),typography:El(d,a),transitions:Dl(l),zIndex:{...Ll}});var h,f;return p=Br(p,c),p=t.reduce((e,t)=>Br(e,t),p),p.unstable_sxConfig={...ml,...c?.unstable_sxConfig},p.unstable_sx=function(e){return gl({sx:e,theme:this})},p.toRuntimeSource=Pl,p}function Fl(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const zl=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Fl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Bl(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Nl(e){return"dark"===e?zl:[]}function Vl(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Hl=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if("class"===r&&(i=".%s"),"data"===r&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const r={};return(l=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${l?`${l}-`:""}overlays-${t}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(e=>{r[e]=n[e],delete n[e]}),"media"===i?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:r}}:i?{[i.replace("%s",t)]:r,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...r}}}if(i&&"media"!==i)return`${o}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function $l(e,t,n){!e[t]&&n&&(e[t]=n)}function Wl(e){return"string"==typeof e&&e.startsWith("hsl")?Wr(e):e}function Ul(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hr(Wl(e[t])))}const ql=e=>{try{return e()}catch(e){}};function Zl(e,t,n,o){if(!t)return;t=!0===t?{}:t;const r="dark"===o?"dark":"light";if(!n)return void(e[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=si(t);return{palette:i,opacity:{...Bl(i.mode),...n},overlays:o||Nl(i.mode),...r}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=Al({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Bl(r),...t?.opacity},overlays:t?.overlays||Nl(r)},l}function Gl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:si({...!0===n?{}:n.palette,mode:t})})}function Kl(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...l}=e,s=i||"light",c=r?.[s],d={...r,...n?{[s]:{..."boolean"!=typeof c&&c,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return Al(e,...t);let o=n;"palette"in e||d[s]&&(!0!==d[s]?o=d[s].palette:"dark"===s&&(o={mode:"dark"}));const r=Al({...e,palette:o},...t);return r.defaultColorScheme=s,r.colorSchemes=d,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==d.light&&d.light,palette:r.palette},Gl(r,"dark",d.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==d.dark&&d.dark,palette:r.palette},Gl(r,"light",d.light)),r}return n||"light"in d||"light"!==s||(d.light=!0),function(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=Vl,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...d}=e,u=Object.keys(n)[0],p=o||(n.light&&"light"!==u?"light":u),h=((e="mui")=>a.unstable_createGetCssVar(e))(i),{[p]:f,light:m,dark:g,...x}=n,y={...x};let b=f;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(b=!0),!b)throw new Error(jr(21,p));const w=Zl(y,b,d,p);m&&!y.light&&Zl(y,m,void 0,"light"),g&&!y.dark&&Zl(y,g,void 0,"dark");let v={defaultColorScheme:p,...w,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:c,getCssVar:h,colorSchemes:y,font:{...Sl(w.typography),...w.font},spacing:(S=d.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(v.colorSchemes).forEach(e=>{const t=v.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],r=n[2];return h(e,t[o][r])};var o;if("light"===t.mode&&($l(t.common,"background","#fff"),$l(t.common,"onBackground","#000")),"dark"===t.mode&&($l(t.common,"background","#000"),$l(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){$l(t.Alert,"errorColor",Gr(t.error.light,.6)),$l(t.Alert,"infoColor",Gr(t.info.light,.6)),$l(t.Alert,"successColor",Gr(t.success.light,.6)),$l(t.Alert,"warningColor",Gr(t.warning.light,.6)),$l(t.Alert,"errorFilledBg",n("palette-error-main")),$l(t.Alert,"infoFilledBg",n("palette-info-main")),$l(t.Alert,"successFilledBg",n("palette-success-main")),$l(t.Alert,"warningFilledBg",n("palette-warning-main")),$l(t.Alert,"errorFilledColor",ql(()=>t.getContrastText(t.error.main))),$l(t.Alert,"infoFilledColor",ql(()=>t.getContrastText(t.info.main))),$l(t.Alert,"successFilledColor",ql(()=>t.getContrastText(t.success.main))),$l(t.Alert,"warningFilledColor",ql(()=>t.getContrastText(t.warning.main))),$l(t.Alert,"errorStandardBg",Xr(t.error.light,.9)),$l(t.Alert,"infoStandardBg",Xr(t.info.light,.9)),$l(t.Alert,"successStandardBg",Xr(t.success.light,.9)),$l(t.Alert,"warningStandardBg",Xr(t.warning.light,.9)),$l(t.Alert,"errorIconColor",n("palette-error-main")),$l(t.Alert,"infoIconColor",n("palette-info-main")),$l(t.Alert,"successIconColor",n("palette-success-main")),$l(t.Alert,"warningIconColor",n("palette-warning-main")),$l(t.AppBar,"defaultBg",n("palette-grey-100")),$l(t.Avatar,"defaultBg",n("palette-grey-400")),$l(t.Button,"inheritContainedBg",n("palette-grey-300")),$l(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),$l(t.Chip,"defaultBorder",n("palette-grey-400")),$l(t.Chip,"defaultAvatarColor",n("palette-grey-700")),$l(t.Chip,"defaultIconColor",n("palette-grey-700")),$l(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$l(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$l(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$l(t.LinearProgress,"primaryBg",Xr(t.primary.main,.62)),$l(t.LinearProgress,"secondaryBg",Xr(t.secondary.main,.62)),$l(t.LinearProgress,"errorBg",Xr(t.error.main,.62)),$l(t.LinearProgress,"infoBg",Xr(t.info.main,.62)),$l(t.LinearProgress,"successBg",Xr(t.success.main,.62)),$l(t.LinearProgress,"warningBg",Xr(t.warning.main,.62)),$l(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),$l(t.Slider,"primaryTrack",Xr(t.primary.main,.62)),$l(t.Slider,"secondaryTrack",Xr(t.secondary.main,.62)),$l(t.Slider,"errorTrack",Xr(t.error.main,.62)),$l(t.Slider,"infoTrack",Xr(t.info.main,.62)),$l(t.Slider,"successTrack",Xr(t.success.main,.62)),$l(t.Slider,"warningTrack",Xr(t.warning.main,.62));const e=Yr(t.background.default,.8);$l(t.SnackbarContent,"bg",e),$l(t.SnackbarContent,"color",ql(()=>t.getContrastText(e))),$l(t.SpeedDialAction,"fabHoverBg",Yr(t.background.paper,.15)),$l(t.StepConnector,"border",n("palette-grey-400")),$l(t.StepContent,"border",n("palette-grey-400")),$l(t.Switch,"defaultColor",n("palette-common-white")),$l(t.Switch,"defaultDisabledColor",n("palette-grey-100")),$l(t.Switch,"primaryDisabledColor",Xr(t.primary.main,.62)),$l(t.Switch,"secondaryDisabledColor",Xr(t.secondary.main,.62)),$l(t.Switch,"errorDisabledColor",Xr(t.error.main,.62)),$l(t.Switch,"infoDisabledColor",Xr(t.info.main,.62)),$l(t.Switch,"successDisabledColor",Xr(t.success.main,.62)),$l(t.Switch,"warningDisabledColor",Xr(t.warning.main,.62)),$l(t.TableCell,"border",Xr(qr(t.divider,1),.88)),$l(t.Tooltip,"bg",qr(t.grey[700],.92))}if("dark"===t.mode){$l(t.Alert,"errorColor",Xr(t.error.light,.6)),$l(t.Alert,"infoColor",Xr(t.info.light,.6)),$l(t.Alert,"successColor",Xr(t.success.light,.6)),$l(t.Alert,"warningColor",Xr(t.warning.light,.6)),$l(t.Alert,"errorFilledBg",n("palette-error-dark")),$l(t.Alert,"infoFilledBg",n("palette-info-dark")),$l(t.Alert,"successFilledBg",n("palette-success-dark")),$l(t.Alert,"warningFilledBg",n("palette-warning-dark")),$l(t.Alert,"errorFilledColor",ql(()=>t.getContrastText(t.error.dark))),$l(t.Alert,"infoFilledColor",ql(()=>t.getContrastText(t.info.dark))),$l(t.Alert,"successFilledColor",ql(()=>t.getContrastText(t.success.dark))),$l(t.Alert,"warningFilledColor",ql(()=>t.getContrastText(t.warning.dark))),$l(t.Alert,"errorStandardBg",Gr(t.error.light,.9)),$l(t.Alert,"infoStandardBg",Gr(t.info.light,.9)),$l(t.Alert,"successStandardBg",Gr(t.success.light,.9)),$l(t.Alert,"warningStandardBg",Gr(t.warning.light,.9)),$l(t.Alert,"errorIconColor",n("palette-error-main")),$l(t.Alert,"infoIconColor",n("palette-info-main")),$l(t.Alert,"successIconColor",n("palette-success-main")),$l(t.Alert,"warningIconColor",n("palette-warning-main")),$l(t.AppBar,"defaultBg",n("palette-grey-900")),$l(t.AppBar,"darkBg",n("palette-background-paper")),$l(t.AppBar,"darkColor",n("palette-text-primary")),$l(t.Avatar,"defaultBg",n("palette-grey-600")),$l(t.Button,"inheritContainedBg",n("palette-grey-800")),$l(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),$l(t.Chip,"defaultBorder",n("palette-grey-700")),$l(t.Chip,"defaultAvatarColor",n("palette-grey-300")),$l(t.Chip,"defaultIconColor",n("palette-grey-300")),$l(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$l(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$l(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$l(t.LinearProgress,"primaryBg",Gr(t.primary.main,.5)),$l(t.LinearProgress,"secondaryBg",Gr(t.secondary.main,.5)),$l(t.LinearProgress,"errorBg",Gr(t.error.main,.5)),$l(t.LinearProgress,"infoBg",Gr(t.info.main,.5)),$l(t.LinearProgress,"successBg",Gr(t.success.main,.5)),$l(t.LinearProgress,"warningBg",Gr(t.warning.main,.5)),$l(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),$l(t.Slider,"primaryTrack",Gr(t.primary.main,.5)),$l(t.Slider,"secondaryTrack",Gr(t.secondary.main,.5)),$l(t.Slider,"errorTrack",Gr(t.error.main,.5)),$l(t.Slider,"infoTrack",Gr(t.info.main,.5)),$l(t.Slider,"successTrack",Gr(t.success.main,.5)),$l(t.Slider,"warningTrack",Gr(t.warning.main,.5));const e=Yr(t.background.default,.98);$l(t.SnackbarContent,"bg",e),$l(t.SnackbarContent,"color",ql(()=>t.getContrastText(e))),$l(t.SpeedDialAction,"fabHoverBg",Yr(t.background.paper,.15)),$l(t.StepConnector,"border",n("palette-grey-600")),$l(t.StepContent,"border",n("palette-grey-600")),$l(t.Switch,"defaultColor",n("palette-grey-300")),$l(t.Switch,"defaultDisabledColor",n("palette-grey-600")),$l(t.Switch,"primaryDisabledColor",Gr(t.primary.main,.55)),$l(t.Switch,"secondaryDisabledColor",Gr(t.secondary.main,.55)),$l(t.Switch,"errorDisabledColor",Gr(t.error.main,.55)),$l(t.Switch,"infoDisabledColor",Gr(t.info.main,.55)),$l(t.Switch,"successDisabledColor",Gr(t.success.main,.55)),$l(t.Switch,"warningDisabledColor",Gr(t.warning.main,.55)),$l(t.TableCell,"border",Gr(qr(t.divider,1),.68)),$l(t.Tooltip,"bg",qr(t.grey[700],.92))}Ul(t.background,"default"),Ul(t.background,"paper"),Ul(t.common,"background"),Ul(t.common,"onBackground"),Ul(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&$l(t[e],"mainChannel",Hr(Wl(n.main))),n.light&&$l(t[e],"lightChannel",Hr(Wl(n.light))),n.dark&&$l(t[e],"darkChannel",Hr(Wl(n.dark))),n.contrastText&&$l(t[e],"contrastTextChannel",Hr(Wl(n.contrastText))),"text"===e&&(Ul(t[e],"primary"),Ul(t[e],"secondary")),"action"===e&&(n.active&&Ul(t[e],"active"),n.selected&&Ul(t[e],"selected")))})}),v=t.reduce((e,t)=>Br(e,t),v);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:Hl(v)},{vars:k,generateThemeVars:E,generateStyleSheets:_}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:l,defaultColorScheme:a="light",...s}=e,{vars:c,css:d,varsWithDefaults:u}=vl(s,t);let p=u;const h={},{[a]:f,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:o,css:r,varsWithDefaults:i}=vl(n,t);p=Br(p,i),h[e]={css:r,vars:o}}),f){const{css:e,vars:n,varsWithDefaults:o}=vl(f,t);p=Br(p,o),h[a]={css:e,vars:n}}function g(t,n){let o=r;if("class"===r&&(o=".%s"),"data"===r&&(o="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Br(e,t)}),e},generateStyleSheets:()=>{const t=[],r=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[r]:a,...s}=h;if(a){const{css:e}=a,t=i[r]?.palette?.mode,s=!o&&t?{colorScheme:t,...e}:{...e};l(n(r,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{const r=i[e]?.palette?.mode,a=!o&&r?{colorScheme:r,...t}:{...t};l(n(e,{...a}),a)}),t}}}(v,C);return v.vars=k,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([e,t])=>{v[e]=t}),v.generateThemeVars=E,v.generateStyleSheets=_,v.generateSpacing=function(){return a.createSpacing(d.spacing,Pi(this))},v.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=l,v.unstable_sxConfig={...ml,...d?.unstable_sxConfig},v.unstable_sx=function(e){return gl({sx:e,theme:this})},v.toRuntimeSource=Pl,v}({...l,colorSchemes:d,defaultColorScheme:s,..."boolean"!=typeof o&&o},...t)}const Xl=Kl();function Yl(){const e=a.useTheme(Xl);return e[Mr]||e}function Jl(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ni(t.components[n].defaultProps,o):o}function Ql({props:e,name:t,defaultTheme:n,themeId:o}){let r=function(e=bl){return function(e=null){const t=u.useContext(s.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)}(n);return r=r[o]||r,Jl({theme:r,name:t,props:e})}const ea=yl();function ta(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function na(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function oa(e){return e?(t,n)=>n[e]:null}function ra(e,t,n){const o="function"==typeof t?t(e):t;if(Array.isArray(o))return o.flatMap(t=>ra(e,t,n));if(Array.isArray(o?.variants)){let t;if(o.isProcessed)t=n?na(o.style,n):o.style;else{const{variants:e,...r}=o;t=n?na(s.internal_serializeStyles(r),n):r}return ia(e,o.variants,[t],n)}return o?.isProcessed?n?na(s.internal_serializeStyles(o.style),n):o.style:n?na(s.internal_serializeStyles(o),n):o}function ia(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const l=t[i];if("function"==typeof l.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(const t in l.props)if(e[t]!==l.props[t]&&e.ownerState?.[t]!==l.props[t])continue e;"function"==typeof l.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?na(s.internal_serializeStyles(l.style(r)),o):l.style(r))):n.push(o?na(s.internal_serializeStyles(l.style),o):l.style)}return n}function la(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const aa=function(e={}){const{themeId:t,defaultTheme:n=ea,rootShouldForwardProp:o=ta,slotShouldForwardProp:r=ta}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{s.internal_mutateStyles(e,e=>e.filter(e=>e!==gl));const{name:n,slot:l,skipVariantsResolver:a,skipSx:c,overridesResolver:d=oa(la(l)),...u}=t,p=n&&n.startsWith("Mui")||l?"components":"custom",h=void 0!==a?a:l&&"Root"!==l&&"root"!==l||!1,f=c||!1;let m=ta;"Root"===l||"root"===l?m=o:l?m=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=s(e,{shouldForwardProp:m,label:void 0,...u}),x=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return ra(t,e,t.theme.modularCssLayers?p:void 0)};if(Fr(e)){const t=function(e){const{variants:t,...n}=e,o={variants:t,style:s.internal_serializeStyles(n),isProcessed:!0};return o.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=s.internal_serializeStyles(e.style))}),o}(e);return function(e){return t.variants?ra(e,t,e.theme.modularCssLayers?p:void 0):e.theme.modularCssLayers?na(t.style,p):t.style}}return e},y=(...t)=>{const o=[],r=t.map(x),l=[];if(o.push(i),n&&d&&l.push(function(e){const t=e.theme,o=t.components?.[n]?.styleOverrides;if(!o)return null;const r={};for(const t in o)r[t]=ra(e,o[t],e.theme.modularCssLayers?"theme":void 0);return d(e,r)}),n&&!h&&l.push(function(e){const t=e.theme,o=t?.components?.[n]?.variants;return o?ia(e,o,[],e.theme.modularCssLayers?"theme":void 0):null}),f||l.push(gl),Array.isArray(r[0])){const e=r.shift(),t=new Array(o.length).fill(""),n=new Array(l.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],o.unshift(i)}const a=[...o,...r,...l],s=g(...a);return e.muiName&&(s.muiName=e.muiName),s};return g.withConfig&&(y.withConfig=g.withConfig),y}}({themeId:Mr,defaultTheme:Xl,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),sa=e=>{if("dark"===e.palette.mode)return`drop-shadow(0px 0px 1px ${"dark"===e.palette.mode?e.palette.text.primary:e.palette.divider})`},ca=(e=1)=>t=>{if("dark"!==t.palette.mode)return;const n="dark"===t.palette.mode?t.palette.text.primary:t.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},da=n.memo(n.forwardRef((e,n)=>{const{sx:r,size:i="small",activeColor:l,children:a,className:s,...c}=e;let d=24,u=24;return"medium"===i?(d=32,u=32):"large"===i&&(d=42,u=42),t.jsx(o.Box,{ref:n,className:Kn("icon",s),sx:{width:d,height:u,...r},...c,children:a})})),ua=aa(da)(({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}})),pa=e=>t.jsx(ua,{children:e}),ha=e=>{const{sx:n,...r}=e;return t.jsxs(o.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:sa},...n},...r,children:[t.jsx("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),t.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"}),t.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},fa=e=>{const{sx:n,...r}=e;return t.jsxs(o.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:sa},...n},...r,children:[t.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"}),t.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},ma=e=>{const{sx:n,...r}=e;return t.jsxs(o.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:sa},...n},...r,children:[t.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"}),t.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},ga=e=>{const{sx:n,...r}=e;return t.jsxs(o.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:sa},...n},...r,children:[t.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"}),t.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"}),t.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"})]})},xa=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ya=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ba=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),wa=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),va=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Sa=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Ca=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ka=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Ea=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),_a=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Ta=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ja=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Ma=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Ra=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Ia=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Da=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),La=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const Oa={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},Pa={Horizontal:"horizontal",Vertical:"vertical"};function Aa(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Aa(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Fa(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Aa(e))&&(o&&(o+=" "),o+=t);return o}var za=function(){},Ba="undefined"!=typeof window,Na=Ba?n.useLayoutEffect:n.useEffect,Va={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Ha=Ba&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(Va),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return Na(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[za,Va]},$a=(e,t)=>{const o=n.useCallback((...t)=>e?.(...t),t),r=n.useRef(null);r.current=o;const i=n.useCallback((...e)=>r.current?.(...e),[]);if(r.current)return i},Wa=e=>{const{style:n,orientation:o=Pa.Vertical,...r}=e,i=o===Pa.Vertical;return t.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:i?"0px":"3px",paddingTop:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button start`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},Ua=e=>{const{style:n,orientation:o=Pa.Vertical,...r}=e,i=o===Pa.Vertical;return t.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:i?"0px":"3px",paddingBottom:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button end`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},qa=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:qa},Symbol.toStringTag,{value:"Module"}));const Za=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,totalSize:i=0,viewportSize:l=0,style:a,className:s,orientation:c=Pa.Vertical,onScrollOffset:d,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=Wa,createScrollEndButton:x=Ua,...y}=e,b=$a(u,[u]),w=n.useRef(null),[v,{width:S,height:C}]=Ha(),[k,{width:E,height:_}]=Ha(),T=c===Pa.Vertical,j=T?"top":"left",M=T?"scrollTop":"scrollLeft",R=T?C:S,I=T?_:E,[D,L]=n.useState(null);n.useEffect(()=>{null!==D&&w.current&&w.current.scrollTo({behavior:"smooth",[j]:D})},[D,T]);const O=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:qa(e,o[j],r,!0,Math.max(0,e-h));return L(i),Math.max(0,i)},[]),P=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(I-R),l=t?i:qa(e,o[j],r,!1,Math.max(0,e+h));return L(l),Math.min(i,l)},[I,R]),A=n.useRef(null),F=n.useCallback(e=>{A.current=r;const t=e.target[M];d(t,l,i),b?.(e)},[d,l,i,r]);n.useEffect(()=>{const e=A.current;A.current=null,r!==e&&(w.current[M]=r)},[r,M]);const z=n.useRef(null),B=n.useRef(null),N=n.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=null,B.current=null)},[]),V=n.useCallback((e,t,n,o=f)=>{B.current=e,z.current=setTimeout(()=>{const t=n?O(B.current||e):P(B.current||e);t!==B.current?V(t,!1,n,m):N()},t?0:o)},[O,P,N]);n.useEffect(()=>()=>N(),[N]);const H=r,$=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(H)<=0||0===Math.floor(I-R),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!0)};return g?.(e)},[p,c,H,D,I,R]),W=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(I-R)<=Math.ceil(H),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!1)};return x?.(e)},[p,c,H,D,I,R]);return t.jsxs("div",{ref:o,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...a},className:Fa("_sheetxl-scrollbar_eblx4_6",s),...y,children:[$,t.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:v,children:t.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:w,children:t.jsx("div",{ref:k,style:{position:"absolute",height:T?i-l+(C??0):1,width:T?1:i-l+(S??0)},className:"scrollbar-viewport"})})}),W]})}));Za.displayName="Scrollbar";let Ga=Date.now,Ka={},Xa=1;const Ya=e=>{let t=null!==Ka[e];return t&&(Ka[e]=null),t},Ja=(e,t,n,o=0,r)=>{let i=Ga(),l=i,a=0,s=0,c=0,d=Xa++;if(d%20==0){const e={};for(let t in Ka)e[t]=!0;Ka=e}const u=function(p){let h=!0!==p,f=Ga(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!Ka[d]||!m)return Ka[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(h){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,x=!1;try{x=e(g,f,h)}catch(e){x=!1}!1!==x&&1!==a||!h?h&&(l=f,requestAnimationFrame(u)):(Ka[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return Ka[d]=!0,requestAnimationFrame(u),d},Qa=function(e){return Math.pow(e-1,3)+1},es=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class ts{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){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(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&&(Ya(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,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&&(Ya(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(Ya(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(Ya(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(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 e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),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()),"number"!=typeof e)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 e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&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&&(Ya(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),p=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=Ja(d,u,p,this.options.animationDuration,r?Qa:es)}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 e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=Ja(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}}var ns="undefined"!=typeof window?window:{screen:{},navigator:{}},os=(ns.matchMedia||function(){return{matches:!1}}).bind(ns),rs=!1,is={get passive(){return rs=!0}},ls=function(){};ns.addEventListener&&ns.addEventListener("p",ls,is),ns.removeEventListener&&ns.removeEventListener("p",ls,!1);var as=rs,ss="PointerEvent"in ns,cs="ontouchstart"in ns,ds=cs||"TouchEvent"in ns&&os("(any-pointer: coarse)").matches,us=(ns.navigator.maxTouchPoints||0)>0||ds,ps=ns.navigator.userAgent||"",hs=os("(pointer: coarse)").matches&&/iPad|Macintosh/.test(ps)&&Math.min(ns.screen.width||0,ns.screen.height||0)>=768,fs=(os("(pointer: coarse)").matches||!os("(pointer: fine)").matches&&cs)&&!/Windows.*Firefox/.test(ps),ms=os("(any-pointer: fine)").matches||os("(any-hover: hover)").matches||hs||!cs,gs=!us||!ms&&fs?us?"touchOnly":"mouseOnly":"hybrid",xs="mouseOnly"===gs?"mouse":"touchOnly"===gs||fs?"touch":"mouse";const ys=Object.freeze(Object.defineProperty({__proto__:null,deviceType:gs,primaryInput:xs,supportsPassiveEvents:as,supportsPointerEvents:ss,supportsTouchEvents:ds},Symbol.toStringTag,{value:"Module"})),bs=new Set(["INPUT","TEXTAREA","SELECT"]),ws={};function vs(){return ys}const Ss=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:ws,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:vs,focusableNodeNames:bs,toPrettyKeyCode:e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":Zo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),Cs=[];function ks(e,t,o=Cs){const r=n.useRef(null);return n.useImperativeHandle(e,()=>{if(!r.current)return;const e=r.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const o=Object.keys(n),i=o.length;for(let t=0;t<i;t++){const r=o[t],i=n[r];Object.defineProperty(e,r,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},o),r}const Es=e=>t.jsx(Za,{...e}),_s=({width:e,height:n})=>t.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${n}px`,height:`${n}px`}}),Ts=n.memo(n.forwardRef((e,o)=>{const{children:r,viewport:i,onScrollViewport:l,showHorizontalScrollbar:a=!0,showVerticalScrollbar:s=!0,createScrollCorner:c=_s,createHorizontalScrollbar:d=Es,createVerticalScrollbar:u=Es,style:p,touchElement:h,disableTouch:f,...m}=e,g=$a(l,[l]),x=ks(o,()=>({isScrollPane:()=>!0}),[]),y=n.useRef(null);n.useEffect(()=>{y.current&&(y.current.__scrollTop===i?.top&&y.current.__scrollLeft===i?.left||y.current.__isDecelerating||y.current?.scrollTo(i?.left,i?.top,!1))},[i?.left,i?.top,h]);const b=n.useCallback((e,t)=>{g?.({left:e,top:t})},[]),w=n.useCallback(e=>{y.current?.doTouchStart(e.touches,e.timeStamp)},[]),v=n.useCallback(e=>{e.preventDefault(),y.current?.doTouchMove(e.touches,e.timeStamp)},[]),S=n.useCallback(e=>{y.current?.doTouchEnd(e.timeStamp)},[]),C=n.useCallback(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{y.current.setDimensions(e,t,n,o)},[]);n.useEffect(()=>{const e=h??x.current;if(!f&&vs().supportsTouchEvents&&e&&i){if(!y.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new ts(b,e)}vs().supportsTouchEvents&&(e.addEventListener("touchstart",w),e.addEventListener("touchend",S),e.addEventListener("touchmove",v)),C({containerWidth:i?.width,containerHeight:i?.height,totalWidth:i?.totalWidth,totalHeight:i?.totalHeight})}return()=>{e?.removeEventListener("touchstart",w),e?.removeEventListener("touchend",S),e?.removeEventListener("touchmove",v)}},[i?.width,i?.height,i?.totalWidth,i?.totalHeight,f,h]);const[k,{width:E}]=Ha(),[_,{height:T}]=Ha(),j=n.useMemo(()=>{const e=u({orientation:Pa.Vertical,offset:i?.top,viewportSize:i?.height,totalSize:i?.totalHeight,onScrollOffset:e=>{g?.({top:e})}});return t.jsx("div",{style:{display:"flex",flex:"0"},ref:k,children:e})},[u,i?.top,i?.height,i?.totalHeight]),M=n.useMemo(()=>{const e=d({orientation:Pa.Horizontal,offset:i?.left,viewportSize:i?.width,totalSize:i?.totalWidth,onScrollOffset:e=>g?.({left:e})});return t.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${E}px)`},children:t.jsx("div",{ref:_,className:"sizer",children:e})}),s?c({width:E,height:T}):t.jsx(t.Fragment,{})]})},[d,i?.left,i?.width,i?.totalWidth,s,c,E,T]);return t.jsx("div",{style:{position:"relative",display:"flex",minWidth:s?`${E}px`:void 0,minHeight:a?`${T}px`:void 0,...p},...m,ref:x,children:t.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[t.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:r}),s?j:t.jsx(t.Fragment,{})]}),a?M:t.jsx(t.Fragment,{})]})})}));Ts.displayName="ScrollPane";const js=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Ms=0;function Rs(){return n.useEffect(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return Ms++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),Ms--,Ms<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),Ms=0)}},[]),{getPortalContainer:js}}const Is=100,Ds=100,Ls=1e6,Os=100,Ps=50,As=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,viewportSize:i=0,totalSize:l=0,minSize:a=0,endGap:s=Is,endScrollIncrement:c=Ds,style:d=ws,onMouseDown:u,onScrollOffset:p,onScroll:h,scaleLimit:f=Ls,scaleFactor:m=Os,precisionFactor:g=Ps,...x}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=$a(u,[u]),b=()=>({offset:r,totalSize:0===f?l:Math.min(l??0,Math.max(a??0,(r??0)+(i??0))+(s??0))}),[w,v]=n.useState(b),S=0!==f&&w.totalSize>f?m:1,C=S/g,k=Math.ceil(w.totalSize/S),E=Math.ceil(w.offset/S),_=Math.ceil(i/S),T=n.useCallback(e=>{},[]),[j,M]=n.useState(!1),R=n.useRef(null);n.useLayoutEffect(()=>{if(!j){R.current={propTotalSize:l,propViewportSize:i,propOffset:r};const e=b();v(e)}},[l,i,r,j,a,s,c]);const I=$a((e,t,n)=>{const o=R.current;R.current=null,o&&o.propTotalSize===l&&o.propViewportSize===i&&o.propOffset===r||(Math.abs(e-E)<C&&(e=E),p?.(e*S,E,_))},[p,S,C,E,_]),D=n.useCallback(e=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",D),M(!1)},[]),L=n.useCallback(e=>{y?.(e),M(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",D,{passive:!0})},[T,D]);return t.jsx(Za,{ref:o,style:{...d},...x,offset:E,totalSize:k,viewportSize:_,onMouseDown:L,onScrollOffset:I})}));function Fs(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}As.displayName="VirtualScrollbar";var zs=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=Fs(o,t),r="function"==typeof e;n.push(r?e:()=>Fs(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)Fs(n,t)}};n.memo(n.forwardRef((e,o)=>{const{refFocusStart:r,...i}=e,l=n.useRef(null),a=n.useCallback(()=>{if(r)return void r?.current?.focus();const e=l.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==l.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[r]);return t.jsx("div",{tabIndex:0,ref:zs([l,o]),onFocus:a,...i})})),n.memo(n.forwardRef((e,o)=>{const{className:r,style:i,children:l,radius:a=4,strokeWidth:s=1,strokeColor:c="grey",...d}=e,[u,{width:p,height:h}]=Ha(),f=n.useRef(null),m=(e,t=0)=>{const n=e/2,o=h-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],p=u===c?a[1]:a[e+1];if(p&&d&&d.length>2&&"L"===u[0]&&p.length>2&&"L"===p[0]){let e,a,c=l(d),h=l(u),f=l(p);n?(e=r(h,d.origPoint||c,t),a=r(h,p.origPoint||f,t)):(e=o(h,c,t),a=o(h,f,t)),i(u,e),u.origPoint=h,s.push(u);let m=r(e,h,.5),g=r(h,a,.5),x=["C",m.x,m.y,g.x,g.y,a.x,a.y];x.origPoint=h,s.push(x)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${a-.5} ${n} L ${a-.5} ${o} L ${2*a} ${o} L ${p-2*a} ${o} M ${p-2*a} ${o} L ${p-a} ${o} L ${p-a} ${n} L ${p} ${n}`,a)},g=n.useMemo(()=>m(s),[p,h,a,s]),x=n.useMemo(()=>{if(0===a)return;const e=a/2;return m(a)+`L ${p} 0 L 0 0 L 0 ${e}`},[g,a,s]),y=n.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return t.jsxs("div",{className:r,style:{display:"flex",flexDirection:"row",...i},...d,ref:zs([f,u,o]),children:[n.isValidElement(l)?n.cloneElement(l,y):t.jsx(t.Fragment,{}),t.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:t.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:s})})]})}));const Bs={},Ns=e=>{const{onPointerDown:n,style:o,splitDirection:r,paddingBefore:i=0,paddingAfter:l=0,disabled:a,key:s,hitAreaProps:c=Bs,...d}=e,u="row"===r,{style:p,className:h,...f}=c;return t.jsx("div",{style:{...o,position:"relative"},...d,children:t.jsx("div",{className:Fa("hit-box",h),style:{left:(u?-i:0)+"px",width:`calc(100% + ${u?i+l:0}px)`,top:(u?0:-i)+"px",height:`calc(100% + ${u?0:i+l}px)`,position:"absolute",...p},onPointerDown:a?void 0:n,...f})},s)},Vs={},Hs=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,$s=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Ws=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((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)};n.memo(n.forwardRef((e,o)=>{const{elementBefore:r,elementAfter:i,splitDirection:l="row",fixedPane:a=null,position:s,onPositionChange:c,minBefore:d,maxBefore:u,minAfter:p,maxAfter:h,children:f,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:b,onDragFinish:w,resizerProps:v=Vs,paneProps:S=Vs,paneBeforeProps:C=Vs,paneAfterProps:k=Vs,createResizer:E=Ns}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const _=n.useMemo(()=>n.isValidElement(i)&&n.isValidElement(r),[i,r]),T=n.useMemo(()=>{let e=null;a&&("before"===a?e=0:"after"===a&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:Ws(d,t),maxBefore:Ws(u,t),minAfter:Ws(p,t),maxAfter:Ws(h,t)}},[d,u,p,h]),j=$a(c,[c]),[M,R]=n.useState(()=>Ws(s,null===a));n.useEffect(()=>{R(Ws(s,null===a))},[s,a]);const[I,{width:D,height:L}]=Ha(),[O,{width:P,height:A}]=Ha(),F="row"===l?P:A,z="row"===l?D:L,B=n.useMemo(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:$s(o.minBefore,!0),maxBefore:$s(o.maxBefore,!0),minAfter:$s(o.minAfter),maxAfter:$s(o.maxAfter)};let l=Hs(e,t,1!==o.fixedPaneOffset),a=t-n,s=Hs(o.minBefore,a,!0)??0,c=Hs(o.maxBefore,a,!0)??a,d=0,u=0,p=0,h=a;d=(Hs(o.maxAfter,t,!1)??n)-n,u=Hs(o.minAfter,t,!1)??t,p=Math.max(s,d),h=Math.min(c,u),l=Math.max(p,Math.min(l,h)),u=Math.min(a-l,Hs(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,Hs(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(M,z,F,T),[T,M,z,F,l]),[N,V]=n.useState(!1),H=$a(y,[y]),$=$a(b,[b]),W=$a(w,[w]),U=n.useRef(null),q=n.useRef(null),Z=n.useRef(null),{style:G,className:K,...X}=S,Y={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...G},{className:J,style:Q,...ee}=C,{className:te,style:ne,...oe}=k,re={flex:"1 1 100%",width:"100%",...g,flexDirection:l,display:"flex"},{className:ie,style:le,onPointerDown:ae,...se}=v,ce=$a(e=>{const t=Ws(e,null===a);R(t)},[a]),de=$a(e=>{if(x||!N)return;const t=he.current?.getBoundingClientRect();let n=0;n="row"===l?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(z,n)),1===T.fixedPaneOffset&&(n=z-n),s&&M.pixels===n||R({pixels:n,percent:null}),$?.(n),e.stopPropagation(),e.preventDefault()},[T,l,x,N,M,z]),ue=$a(e=>{if(document.removeEventListener("pointermove",de),document.removeEventListener("touchmove",de),document.removeEventListener("pointerup",ue),N&&(V(!1),M)){if(W(M.pixels),!Ws(s,null===a)||M.pixels!==s){const e={...M};null===e.percent&&(e.percent=e.pixels/z*100),j(e)}e.stopPropagation(),e.preventDefault()}},[M,N,s,a,z]),pe=$a(e=>{ae?.(e),e.defaultPrevented||x||N||(V(!0),H(),document.addEventListener("pointermove",de,{passive:!1}),document.addEventListener("touchmove",de,{passive:!1}),document.addEventListener("pointerup",ue,{passive:!1}))},[ae]),he=ks(o,()=>({setPosition:ce,isSplitPane:()=>!0}),[]),fe=n.useMemo(()=>_?E?.({key:"resizer",ref:zs([O,q]),className:Fa("resizer",ie),onPointerDownCapture:pe,style:{cursor:x?void 0:"row"===l?"ew-resize":"ns-resize",minWidth:"row"===l?"2px":void 0,minHeight:"row"!==l?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...le},splitDirection:l,disabled:x,...se}):null,[_,ie,se,l,le,x]),me="row"===l?"Width":"Height",ge={...Y,...Q,flex:0===T.fixedPaneOffset&&null!==B?.pixels[0]?`0 0 ${Math.round(B?.pixels[0])}px`:`1 1 ${Math.round(B?.percents[0]??100)}%`,[`min${me}`]:B?.minBefore,[`max${me}`]:i?B?.maxBefore:"100%"},xe={...Y,...ne,flex:1===T.fixedPaneOffset&&null!==B?.pixels[1]?`0 0 ${Math.round(B?.pixels[1])}px`:`1 1 ${Math.round(B?.percents[1]??100)}%`,[`min${me}`]:B?.minAfter,[`max${me}`]:r?B?.maxAfter:"100%"},ye=n.useMemo(()=>r?t.jsx("div",{ref:U,className:Fa("before",K,J),style:ge,...X,...ee,children:r},"before"):null,[r,S,C,T,B]),be=n.useMemo(()=>i?t.jsx("div",{ref:Z,className:Fa("after",K,te),style:xe,...X,...oe,children:i},"after"):null,[i,S,k,T,B]);return t.jsxs("div",{ref:zs([I,he]),className:Fa("splitPane","row"===l?"vertical":"horizontal",{dragging:N},m),style:re,children:[ye,fe,be]})}));const Us=({initValue:e,useHookBody:t,applyStateChange:o})=>{const r=n.useRef(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const i=t();return n.useLayoutEffect(()=>{r.current!==i&&(r.current=i,o(i))},[o,i]),null},qs=e=>{console&&console.warn&&console.warn(e)},Zs="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let Gs=1,Ks=!1,Xs=!1;const Ys=[],Js=[],Qs=()=>{Js.forEach(e=>e())},ec=({automaticContainerInternalUseOnly:e})=>{const[o,r]=n.useState([]),i=n.useRef([]);return i.current=o,e||!1!==Ks||(Xs=!0),n.useEffect(()=>{let t=!0;function n(){if(t)return Js[0]!==n?(e||!0!==Ks||qs("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void r(e=>[])):void r([...Ys])}return Js.push(n),Qs(),()=>{t=!1,i.current?.length>0&&qs("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Js.splice(Js.indexOf(n),1),Qs()}},[e]),t.jsx(t.Fragment,{children:o.map(({hook:e,key:t})=>n.createElement(Us,{...e,key:t}))})},tc=(e,o,r={})=>{let a,s,c=!1,d=!1,u=[],{unmountIfNoConsumers:p=!1}=r;const h=e=>{s=e,l.unstable_batchedUpdates(()=>u.forEach(t=>t(e)))},f=()=>(d||(s="function"==typeof e?e():e,d=!0),s);return()=>{const[r,l]=n.useState(f);return n.useEffect(()=>(c||(c=!0,a=(e=>{const n=Gs++;return Ys.push({hook:e,key:n}),0===Js.length&&!1===Xs&&(Ks=!0,(e=>{if(Zs.document&&Zs.document.createElement){const n=Zs.document.createElement("div");i.createRoot(n).render(t.jsx(e,{automaticContainerInternalUseOnly:!0}))}else qs("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(ec)),Qs(),()=>{Ys.splice(Ys.findIndex(e=>e.key===n),1),Qs()}})({initValue:e,useHookBody:o,applyStateChange:h})),u.push(l),s!==r&&l(s),()=>{u.splice(u.indexOf(l),1),0===u.length&&p&&(a(),c=!1)}),[]),r}};function nc(e,t=null){const o=n.useRef(t);o.current=t;const[r,i]=n.useReducer(e=>e+1,0),l=n.useMemo(()=>Array.isArray(e)?e:[e],[e]);return n.useEffect(()=>{if(!l||0===l.length)return;const e=(e,t)=>{o.current?.onChange?.(t),i()};let n=null;t&&(n={onExecute(e,t){o.current?.onExecute?.(e,t)},onError(e,t,n){o.current?.onError?.(e,t,n)}});const r=new Set;for(let o=0;o<l.length;o++)r.add(l[o]?.addPropertyListener(Zo.debounce(e,0),!0)),t&&r.add(l[o]?.addExecuteListener(n));return()=>{r.forEach(e=>{e?.()})}},[e]),r}tc(null,()=>{const[e,t]=n.useState(null);return e}),Zo.getOS()===Zo.OSType.MacOS||(Zo.getOS(),Zo.OSType.IOS),Zo.getOS()===Zo.OSType.MacOS||(Zo.getOS(),Zo.OSType.IOS);const oc=(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 rc(e,t=null,o=null,r){const i=n.useRef(o);i.current=o,t&&!Array.isArray(t)&&(t=[t]);const[l,a]=n.useState(oc(e,t)),s=r?[...r,e]:[e];return n.useEffect(()=>{const n={onGroupChange:()=>{const n=oc(e,t);a(n),i.current?.onChange?.(this)}};let o;t&&t.length>0&&(o={keys:t},n.onCommandChange=(n,o)=>{i.current?.onChange?.(e),a(oc(e,t))});const r=e?.addListener(n,o),l=oc(e,t);return a(l),i.current?.onChange&&i.current?.onChange(e),()=>{r?.()}},s),l}const ic={Toolbar:"toolbar",Menuitem:"menuitem"};tc({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>mr.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=n.useState(mr.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:n.useRef(null),refNativeLastKey:n.useRef(null)}});let lc=!1,ac=0;var sc="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;const cc=()=>"sheetxl-ui-"+ac++,dc=n["useId".toString()],uc=null!=dc?dc:function(){const[e,t]=n.useState(()=>lc?cc():void 0);return sc(()=>{null==e&&t(cc())},[]),n.useEffect(()=>{lc||(lc=!0)},[]),e},pc=e=>{const{isWalking:r=!1,themedType:i="info",...l}=e,a="copy-walking-offset-"+uc().replaceAll(":","");n.useEffect(()=>{if(!r)return;const e=`\n @keyframes ${a} {\n to {\n stroke-dashoffset: 0px;\n }\n }`,t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t.sheet.insertRule(e,0),()=>{document.head.removeChild(t)}},[r]);let s=n.useMemo(()=>{if(r)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${a} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[r]);return t.jsx(o.SvgIcon,{...l,children:t.jsxs("g",{children:[t.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"}),t.jsx("rect",{x:"7",y:"6",width:"13",height:"16",rx:"1.5",className:`styled ${i} stroked`,style:{fill:"none",strokeWidth:"2px",vectorEffect:"non-scaling-stroke",...s}})]})})},hc=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),fc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),mc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),gc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),xc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),yc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),bc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),wc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),vc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Sc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Cc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),kc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Ec=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),_c=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Tc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),jc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Mc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Rc=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Ic=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Dc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Lc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Oc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),Pc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),Ac=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Fc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),t.jsx("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),t.jsx("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),t.jsx("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),zc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Bc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Nc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Vc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),Hc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),$c=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Wc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Uc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),qc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Zc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),Gc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Kc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),Xc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Yc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Jc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Qc=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ed=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),td=e=>t.jsxs(o.SvgIcon,{...e,children:[t.jsx("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),t.jsx("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),nd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.jsx("path",{d:"m 4,11 v 2 h 16 v -2 z"}),t.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"})]}),od=e=>t.jsxs(o.SvgIcon,{...e,children:[t.jsx("path",{d:"m 4,19 v 2 h 16 v -2 z"}),t.jsx("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),rd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),id=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"})]}),ld=e=>t.jsx(o.SvgIcon,{...e,children:t.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),ad=e=>t.jsx(o.SvgIcon,{...e,children:t.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),sd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),cd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),dd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),ud=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"}),t.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"})]}),pd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"}),t.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"})]}),hd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"}),t.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"})]}),fd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),md=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),gd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),xd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),yd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),bd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),wd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),vd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Sd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Cd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),kd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Ed=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),_d=e=>t.jsx(o.SvgIcon,{...e,children:t.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=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),jd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),t.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"}),t.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"})]}),Md=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),t.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"}),t.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=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),t.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"}),t.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=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"}),t.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"})]}),Dd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),Od=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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 "}),t.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"}),t.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"})]}),Pd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Ad=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Fd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),zd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Bd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"}),t.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"})]}),Nd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Vd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Hd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),$d=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Wd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Ud=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),qd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Zd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Gd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),Kd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Xd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Yd=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),Jd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),Qd=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),eu=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),tu=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),nu=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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"})]}),ou=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),ru=e=>t.jsx(o.SvgIcon,{...e,children:t.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"})}),iu=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"})]}),lu=e=>(e=>{const{style:n,orientation:o=Pa.Vertical,...r}=e,i=o===Pa.Vertical;return t.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:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:t.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"})})})})({style:{cursor:"pointer"},...e}),au=(e,n,r,i)=>{const{style:l,...a}=e,s=t.jsx(o.IconButton,{component:"div",...a,style:{...l,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":r,size:"small",children:n});return t.jsx(Mp,{title:e.disabled?r:i,enterDelay:800,enterNextDelay:1600,children:e.disabled?t.jsx("div",{style:{display:"flex"},children:s}):s})},su=e=>au(e,t.jsx(r.ArrowLeft,{fontSize:"small"}),"Scroll "+(e.orientation===Pa.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Pa.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),cu=e=>au(e,t.jsx(r.ArrowRight,{fontSize:"small"}),"Scroll "+(e.orientation===Pa.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Pa.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),du=n.memo(n.forwardRef((e,n)=>{const{orientation:r="vertical",sx:i,...l}=e,a="vertical"===r;return t.jsx(o.Divider,{ref:n,sx:{marginLeft:a?"1px":void 0,marginRight:a?"1px":void 0,backgroundColor:"transparent !important",borderColor:e=>e.palette.divider,...i},orientation:r,variant:"middle",flexItem:!0,...l})}));function uu(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var pu=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=uu(o,t),r="function"==typeof e;n.push(r?e:()=>uu(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)uu(n,t)}},hu=function(){},fu="undefined"!=typeof window,mu=fu?n.useLayoutEffect:n.useEffect,gu={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const xu=fu&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(gu),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return mu(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[hu,gu]};n.memo(e=>{const{sx:n,speed:r=2,size:i=70,...l}=e;return t.jsx(o.Box,{sx:{width:`${i}px`,height:`${i}px`,zIndex:1,"& .primary":{stroke:e=>e.palette.grey[600],fill:"none"},...n},...l,children:t.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[t.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),t.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:t.jsx("animateTransform",{attributeName:"transform",dur:`${r}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),t.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:t.jsx("animateTransform",{attributeName:"transform",dur:7.5*r+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const yu=n.memo(e=>{const{sx:n,speed:r=1.5,size:i=70,...l}=e;return t.jsx(o.Box,{sx:{width:`${i}px`,height:`${i}px`,zIndex:1,"& .primary":{fill:e=>e.palette.grey[600]},"& .secondary":{stroke:e=>e.palette.grey[600],fill:"none",opacity:.5},...n},...l,children:t.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[t.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),t.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:t.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*r+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});n.memo(e=>{const{sx:n,speed:r=1,size:i=70,...l}=e;return t.jsx(o.Box,{sx:{width:`${i}px`,height:`${i}px`,zIndex:1,...n},...l,children:t.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[t.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:t.jsx("animate",{attributeName:"opacity",dur:`${r}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),t.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:t.jsx("animate",{attributeName:"opacity",dur:`${r}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),t.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:t.jsx("animate",{attributeName:"opacity",dur:`${r}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),n.memo(e=>{const{sx:n,speed:r=1,size:i=70,...l}=e;return t.jsx(o.Box,{sx:{width:`${i}px`,height:`${i}px`,zIndex:1,"& .primary":{fill:e=>e.palette.grey[600],stroke:"none"},...n},...l,children:t.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[t.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:t.jsx("animateTransform",{attributeName:"transform",dur:`${r}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),t.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:t.jsx("animateTransform",{attributeName:"transform",dur:`${r}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),t.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:t.jsx("animateTransform",{attributeName:"transform",dur:`${r}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),n.memo(e=>{const{sx:n,speed:r=2,size:i=70,...l}=e;return t.jsx(o.Box,{sx:{width:`${i}px`,height:`${i}px`,zIndex:1,"& .primary":{stroke:e=>e.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:e=>e.palette.grey[600],opacity:.8,stroke:e=>e.palette.background.paper},...n},...l,children:t.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[t.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),t.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:t.jsx("animateTransform",{attributeName:"transform",dur:`${r}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const bu=n.memo(e=>{const{sx:n,speed:r=1,size:i=13,width:l=64,height:a=17,...s}=e;return t.jsxs(o.Box,{sx:{width:`${l}px`,height:`${a}px`,"& .primary":{backgroundColor:e=>e.palette.grey[600],top:(a-i)/2+"px",width:()=>`${i}px`,height:()=>`${i}px`},...n},className:Kn("_traverse-ellipsis_14l1h_1","animated-icon"),...s,children:[t.jsx("div",{className:"primary"}),t.jsx("div",{className:"primary"}),t.jsx("div",{className:"primary"}),t.jsx("div",{className:"primary"})]})}),wu=t.jsx(yu,{}),vu=n.memo(n.forwardRef((e,r)=>{const{sx:i,style:l,onMount:s,onUnmount:c,transitionDelay:d="1200ms",panel:u=!1,transparentBackground:p=!0,icon:h=wu,label:f,...m}=e,g=n.useMemo(()=>"string"==typeof f?t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:f}):f,[f]),x=n.useRef(null),y=n.useMemo(()=>{let e=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[g,h]});return!0===u&&(e=t.jsx(o.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:e=>e.palette.info.light,color:e=>e.palette.info.contrastText,paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2),paddingTop:e=>e.spacing(2),paddingBottom:e=>e.spacing(1),rowGap:e=>e.spacing(1),borderRadius:e=>`${e.shape.borderRadius}px`,boxShadow:e=>e.shadows[2],"& .primary":{background:e=>`${a.alpha(e.palette.info.contrastText,.9)} !important`,boxShadow:e=>`0 0 0 1px ${"dark"===e.palette.mode?e.palette.text.secondary:e.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:e})),t.jsx(o.Box,{ref:pu([x,r]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:p?.001:1,transitionProperty:"opacity",transitionDelay:d,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"},...i,...l},...m,children:t.jsxs(o.Box,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[t.jsx(o.Box,{className:"backdrop",sx:{opacity:e=>p?1.5*e.palette.action.disabledOpacity:void 0,background:e=>p?void 0:e.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:e=>`${e.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),e]})})},[i,u]),b=n.useRef(!1),w=n.useRef(!1);return mu(()=>{if(x.current&&!b.current&&!w.current){if(w.current=!0,x.current.classList.contains("animatable")&&!x.current.classList.contains("animating")){let e=!1;const t=()=>{w.current&&(b.current=!0,w.current=!1,e=!0,s?.())};x.current&&x.current.addEventListener("transitionrun",t,{once:!0,capture:!0,passive:!0}),w.current&&x.current&&(window.getComputedStyle(x.current,null).opacity,x.current.classList.add("animating")),setTimeout(()=>{!e&&w.current&&x.current&&(x.current?.removeEventListener("transitionrun",t),t())},100)}else b.current=!0,w.current=!1,s?.();return()=>{}}},[x.current]),n.useEffect(()=>()=>{b.current&&(x.current?.classList.remove("animating"),b.current=!1,w.current=!1,c?.())},[]),y}));vu.displayName="LoadingPanel";const Su=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,Cu=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,ku=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},Eu=n.memo(({error:e,maxLines:i=Number.MAX_SAFE_INTEGER,hideLineNumbers:l=!1})=>{const[a,s]=n.useState(null);if(!e?.stack)return null;const c=(e=>{const t=[],n=(e,o=0)=>{e&&(t.push({error:e,depth:o}),e.cause&&e.cause instanceof Error&&n(e.cause,o+1))};return n(e),t.reverse()})(e).reverse(),d=[];c.forEach(({error:e},t)=>{const n=(e.stack||"").split("\n").filter(Boolean).map(e=>{let t=e.match(Su);if(t){const[,e="",n,o,r,i]=t;return{line:`at ${e?e+" ":""}${n}`,location:`${ku(o).split(/[\\/]/).pop()}:${r}:${i}`}}if(t=e.match(Cu),t){const[,e="",n,o,r]=t,i=ku(n),l=`${i.split(/[\\/]/).pop()}:${o}:${r}`;return{line:`at ${e?e+" ":""}${l}`,location:i!==l?`${i}:${o}:${r}`:void 0}}return{line:e.trim()}});n.length&&(d.push({line:t?`Caused by: ${n[0].line}`:n[0].line,isBoundary:!0}),d.push(...n.slice(1)))});const u=i?d.slice(0,i):d,p=i&&d.length>i;return t.jsxs(o.Box,{sx:{width:"100%",mt:1},children:[t.jsxs(o.Box,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[t.jsxs(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",c.length>1?` (${c.length} frames)`:"",")"]}),t.jsx(o.Box,{sx:{flex:1}}),a&&t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:a}),t.jsx(o.IconButton,{size:"small",onClick:async()=>{try{let e=0;const t=d.map(t=>{if(t.isBoundary)return e=0,t.line;e++;let n=t.location&&t.line!==t.location?`${t.line} (${t.location})`:t.line;return e>=1&&(n=` ${n}`),n}).join("\n");await navigator.clipboard.writeText(t),s("Copied!"),setTimeout(()=>s(null),2e3)}catch(e){s("Can't copy!"),console.warn("Failed to copy stack trace:",e)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:t.jsx(r.ContentCopy,{sx:{fontSize:"0.875rem"}})}),t.jsx(o.IconButton,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:t.jsx(r.BugReport,{sx:{fontSize:"0.875rem"}})})]}),t.jsxs(o.Box,{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:[u.map((e,n)=>e.isBoundary?t.jsx(o.Box,{sx:{py:1,mt:n>0?1:0,mb:.5,borderTop:n>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:t=>e.isBoundary?t.palette.text.primary:t.palette.text.secondary,display:"block"},children:e.line})},`error-${n}`):t.jsxs(o.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!l&&t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:n+1}),t.jsxs(o.Box,{sx:{flex:1,overflow:"hidden"},children:[t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:e.line}),e.location&&e.line!==e.location&&t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:e.location})]})]},`stack-${n}`)),p&&t.jsxs(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",d.length-i," more frames"]})]})]})});Eu.displayName="StackTrace";const _u=n.memo(n.forwardRef((e,i)=>{const{sx:l,icon:a=t.jsx(r.Error,{style:{fontSize:48}}),error:s,hideStackTrace:c=!1,stackTraceExpanded:d=!1,...u}=e,p=n.useMemo(()=>((e,r=!1)=>{if(n.isValidElement(e))return e;if(e instanceof Error)return t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:e.message}),e.cause?t.jsxs(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",e.cause instanceof Error?e.cause.message:String(e.cause)]}):null,!r&&t.jsx(Eu,{error:e,hideLineNumbers:!0})]});const i="string"===e?e:`Unknown Error: ${String(e)}`;return t.jsx(o.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:i})})(s,c,d),[s,c,d]);return n.useMemo(()=>t.jsx(o.Box,{ref:i,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...l},...u,children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[t.jsx(o.Box,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:e=>`${e.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),t.jsx(o.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:e=>e.palette.error.light,color:e=>e.palette.error.contrastText,paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2),paddingTop:e=>e.spacing(2),paddingBottom:e=>e.spacing(2),borderRadius:e=>`${e.shape.borderRadius}px`,boxShadow:e=>e.shadows[2],"& .primary":{background:e=>`${e.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:e=>e.spacing(2),width:"100%",maxWidth:"600px"},children:t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e=>e.spacing(2)},children:[a,p]})})})]})}),[l])}));_u.displayName="ErrorPanel";const Tu=n.memo(n.forwardRef((e,r)=>{const{chips:i,sx:l,...a}=e,s=n.useMemo(()=>{if(!i)return null;let e=null;e=Array.isArray(i)?i:[i];const r=[];for(let i=0;i<e.length;i++){const l=e[i];let a=null;"string"==typeof l?a=t.jsx(o.Chip,{label:l,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+i):n.cloneElement(l,{key:"chip-"+i}),r.push(a)}return r},[i]);return t.jsx(o.Box,{ref:r,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...l},...a,children:s})}));var ju="top",Mu="bottom",Ru="right",Iu="left",Du=[ju,Mu,Ru,Iu],Lu="viewport",Ou="popper";function Pu(e){return e?(e.nodeName||"").toLowerCase():null}function Au(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fu(e){return e instanceof Au(e).Element||e instanceof Element}function zu(e){return e instanceof Au(e).HTMLElement||e instanceof HTMLElement}function Bu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Au(e).ShadowRoot||e instanceof ShadowRoot)}var Nu=Math.max,Vu=Math.min,Hu=Math.round;function $u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wu(){return!/^((?!chrome|android).)*safari/i.test($u())}function Uu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&zu(e)&&(r=e.offsetWidth>0&&Hu(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Hu(o.height)/e.offsetHeight||1);var l=(Fu(e)?Au(e):window).visualViewport,a=!Wu()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,c=(o.top+(a&&l?l.offsetTop:0))/i,d=o.width/r,u=o.height/i;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function qu(e){return Au(e).getComputedStyle(e)}function Zu(e){return["table","td","th"].indexOf(Pu(e))>=0}function Gu(e){return((Fu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ku(e){return"html"===Pu(e)?e:e.assignedSlot||e.parentNode||(Bu(e)?e.host:null)||Gu(e)}function Xu(e){return zu(e)&&"fixed"!==qu(e).position?e.offsetParent:null}function Yu(e){var t=Au(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ju(e){return Uu(Gu(e)).left+Yu(e).scrollLeft}function Qu(e){var t=qu(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ep(e){return["html","body","#document"].indexOf(Pu(e))>=0?e.ownerDocument.body:zu(e)&&Qu(e)?e:ep(Ku(e))}function tp(e,t){var n;void 0===t&&(t=[]);var o=ep(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Au(o),l=r?[i].concat(i.visualViewport||[],Qu(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(tp(Ku(l)))}function np(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function op(e,t,n){return t===Lu?np(function(e,t){var n=Au(e),o=Gu(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var c=Wu();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+Ju(e),y:s}}(e,n)):Fu(t)?function(e,t){var n=Uu(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):np(function(e){var t,n=Gu(e),o=Yu(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Nu(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Nu(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Ju(e),s=-o.scrollTop;return"rtl"===qu(r||n).direction&&(a+=Nu(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(Gu(e)))}function rp(e){var t=tp(Ku(e)),n=["absolute","fixed"].indexOf(qu(e).position)>=0&&zu(e)?function(e){for(var t=Au(e),n=Xu(e);n&&Zu(n)&&"static"===qu(n).position;)n=Xu(n);return n&&("html"===Pu(n)||"body"===Pu(n)&&"static"===qu(n).position)?t:n||function(e){var t=/firefox/i.test($u());if(/Trident/i.test($u())&&zu(e)&&"fixed"===qu(e).position)return null;var n=Ku(e);for(Bu(n)&&(n=n.host);zu(n)&&["html","body"].indexOf(Pu(n))<0;){var o=qu(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}(e):e;return Fu(n)?t.filter(function(e){return Fu(e)&&function(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}(e,n)&&"body"!==Pu(e)}):[]}const ip={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,o=function(e,t){void 0===t&&(t={});var n,o=t,r=o.placement,i=void 0===r?e.placement:r,l=o.strategy,a=void 0===l?e.strategy:l,s=o.boundary,c=void 0===s?"clippingParents":s,d=o.rootBoundary,u=void 0===d?Lu:d,p=o.elementContext,h=void 0===p?Ou:p,f=o.altBoundary,m=void 0!==f&&f,g=o.padding,x=void 0===g?0:g,y=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof x?x:(n=x,Du.reduce(function(e,t){return e[t]=n,e},{}))),b=h===Ou?"reference":Ou,w=e.rects.popper,v=e.elements[m?b:h],S=function(e,t,n,o){var r="clippingParents"===t?rp(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce(function(t,n){var r=op(e,n,o);return t.top=Nu(r.top,t.top),t.right=Vu(r.right,t.right),t.bottom=Vu(r.bottom,t.bottom),t.left=Nu(r.left,t.left),t},op(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Fu(v)?v:v.contextElement||Gu(e.elements.popper),c,u,a),C=Uu(e.elements.reference),k=function(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?function(e){return e.split("-")[0]}(r):null,l=r?function(e){return e.split("-")[1]}(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case ju:t={x:a,y:n.y-o.height};break;case Mu:t={x:a,y:n.y+n.height};break;case Ru:t={x:n.x+n.width,y:s};break;case Iu:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(i):null;if(null!=c){var d="y"===c?"height":"width";switch(l){case"start":t[c]=t[c]-(n[d]/2-o[d]/2);break;case"end":t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}({reference:C,element:w,placement:i}),E=np(Object.assign({},w,k)),_=h===Ou?E:C,T={top:S.top-_.top+y.top,bottom:_.bottom-S.bottom+y.bottom,left:S.left-_.left+y.left,right:_.right-S.right+y.right},j=e.modifiersData.offset;if(h===Ou&&j){var M=j[i];Object.keys(T).forEach(function(e){var t=[Ru,Mu].indexOf(e)>=0?1:-1,n=[ju,Mu].indexOf(e)>=0?"y":"x";T[e]+=M[n]*t})}return T}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,l=r.y;let a=t.rects.popper,s=a.width,c=a.height,d=t.placement.split("-")[0],u="left"===d?"left":"right",p="top"===d?"top":"bottom";t.modifiersData[n]={width:s-o[u]-i,height:c-o[p]-l}}},lp=[0,2],ap=n.memo(n.forwardRef((e,r)=>{const{sx:i,open:l,children:a,label:s,offsets:c=lp,anchorEl:d,anchorPosition:u,onMount:p,onOpening:h,onOpen:f,onClosing:m,onClose:g,resizeOnOverflow:x=!0,...y}=e;if(Array.isArray(a))throw new Error("children can not be an array");const b=Yl(),w={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:e}){const{height:t}=e.modifiersData.maxSize;e.styles.popper.maxHeight=t-10+"px"}},v=n.useMemo(()=>{const e=[{name:"offset",options:{offset:c}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return x&&e.unshift(ip,w),e},[x,c]),[S,C]=n.useState(!1),k=n.useRef(null),E=$a(()=>{p?.(D.current,k.current)},[h]),_=$a(h,[h]),T=$a(f,[f]),j=$a(m,[m]),M=$a(()=>{C(!1),g?.()},[g]),[R,I]=n.useState(!1),D=n.useRef(null),L=n.useRef(!0),O=n.useMemo(()=>({onFirstUpdate:()=>{L.current&&(I(!0),E?.(),L.current=!1)}}),[l,S]);n.useEffect(()=>{l&&R?_?.():!l&&S&&j?.(),l&&C(l)},[l,R]);const P=n.useMemo(()=>({getBoundingClientRect:()=>u?new DOMRect(u?.left||0,u?.top||0,0,0):d.getBoundingClientRect()}),[u,d]);n.useImperativeHandle(r,()=>({instance:()=>k.current,element:()=>D.current}),[]);const{getPortalContainer:A}=Rs(),F=n.useMemo(()=>({zIndex:l?"1300":"1299",display:"flex",pointerEvents:S&&l?void 0:"none",maxWidth:"100%",maxHeight:"100%",...i}),[i,l,S]);return t.jsx(o.Popper,{ref:D,popperRef:k,container:A,anchorEl:P,open:S,role:void 0,popperOptions:O,transition:!0,sx:F,placement:"bottom-start",modifiers:v,...y,children:({TransitionProps:e,placement:n,...r})=>{const{in:i,onEnter:s,onExited:c,...d}=e??{};return t.jsx(o.Grow,{...d,in:l,onEnter:()=>{s?.(),T()},onExited:()=>{c?.(),M()},timeout:{enter:b.transitions.duration.shorter,exit:0},style:{transformOrigin:"bottom-start"===n?"left top":"center bottom"},children:"function"==typeof a?a({TransitionProps:e,placement:n,...r}):a||{}})}})}));ap.displayName="ExhibitPopper";const sp={Toolbar:"toolbar",Menuitem:"menuitem"},cp=e=>{const{closeFloat:n,closeFloatAll:r,floatReference:i,popupContainer:l,children:a,className:s,sx:c,...d}=e;return t.jsx(o.Box,{className:Kn("menu",s),sx:{display:"flex",flexDirection:"column",...c},...d,children:a})},dp=(e,n,o)=>t.jsx(r.ArrowDropDown,{sx:{marginLeft:e?void 0:n?"-5px":"-3px",marginRight:e?void 0:n?"-5px":"-6px",transform:()=>{let e;return n&&(e=(e?e+" ":"")+"scale(0.8)"),o&&(e=(e?e+" ":"")+"rotate(180deg)"),e}},color:"inherit"}),up=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,pp=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,hp=function(e,t=null){if(!e)return e;e=e.replace(up,function(e,t,n,o){return t+t+n+n+o+o});let n=pp.exec(e);return n?null===t?`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},fp=function(e,t=.2,n="light"){if(!e)return e;let o="dark"!==n;return t<0&&(o=!o,t*=-1),e=hp(e),o?a.darken(e,Math.max(0,Math.min(1,1*t))):a.lighten(e,Math.max(0,Math.min(1,1.5*t)))},mp=(e,t)=>{let n=Kl({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:a.alpha(n.palette.text.secondary,.75),icon:e?a.alpha(n.palette.text.secondary,.7):a.alpha(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=c.deepmerge(o,t)),Kl(r)};function gp(e,t){t=c.deepmerge({track:fp(e.palette.background.paper,.05,e?.palette.mode),thumb:fp(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},t||{});const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:a.alpha(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 Zo.getOS()===Zo.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const xp=n.memo(n.forwardRef((e,r)=>{const{open:i,anchorEl:l,anchorPosition:a,label:s,floatReference:c,createPopupPanel:d=cp,popperProps:u,onMount:p,onClosing:h,onClose:f,onOpening:m,onOpen:g,children:x,sx:y,...b}=e,w=$a(h,[h]),v=$a(f,[f]),S=$a(m,[m]),C=$a(g,[g]),[k,E]=n.useState(),_=n.useRef(null),T=$a((e,t)=>{E(e),p?.(_.current,t)},[p]),j=n.useMemo(()=>{const e={popupContainer:k,floatReference:c,children:x,...b},n=d(e);return t.jsx(o.Paper,{elevation:8,ref:_,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":e=>gp(e)},tabIndex:0,children:n})},[d,x,k,c]);return t.jsx(ap,{ref:r,anchorEl:l,anchorPosition:a,label:s,open:i,onMount:T,onOpening:S,onOpen:C,onClosing:w,onClose:v,...u,children:j})}));xp.displayName="ExhibitFloatPanel";const yp=new Map;let bp=null;const wp=new Map;let vp=null;const Sp=(e=null,t,n,o)=>{if(vp&&(vp.fn.clear(),vp=null),0===e)return t;null===e&&(e=120);const r=Zo.debounce(()=>t(),e);return vp={fn:r,setReferences:n,isClose:o},vp.fn},Cp=(e,t)=>{if(null===t)return;e.add(t);const n=yp.get(t.key);if(!n)return;const o=wp.get(n);o&&Cp(e,o)},kp=e=>{const t=new Set;return Cp(t,e),t},Ep=e=>{const{anchor:o,label:r=null,parentFloat:i=null,onOpen:l,onClose:a,popperProps:s,createPopupPanel:c=cp}=e??{},d=$a(l,[l]),u=$a(a,[a]),[p,h]=n.useState(null),[f,m]=n.useState(!1),[g,x]=n.useState(!1),y=n.useMemo(()=>null===i?(null===bp&&(bp={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:e=>null,closeChild:e=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>O(0),floatElement:()=>null,anchorElement:()=>null}),bp):i,[]),b=n.useMemo(()=>({label:r}),[]),w=n.useRef(null),v=n.useRef(o);n.useEffect(()=>{v.current=o},[o]);const S=e=>{const t=yp.get(e);let n=null;if(t){const e=wp.get(t);n=e?.close(0)}return n},C=()=>S(F.key),[k,E]=n.useState(),_=()=>{if(!p)return void R();const e=new Promise((e,t)=>{E(n=>({resolve:e,reject:t}))});return C(),yp.delete(y.key),h(!1),e};n.useEffect(()=>{k&&(k.resolve(),E(null))},[f,g,k]);const T=n.useCallback(()=>{let e=y;for(;e.parent;)e=e.parent;return S(e.key)},[]),j=()=>{if(p)return void R();if(y){const e=wp.get(y.key);e?.open(0)}const e=yp.get(y.key);if(e&&e!==b){const t=wp.get(e);t?.close(0)}requestAnimationFrame(()=>{yp.set(y.key,F.key),h(!0)})},[M,R]=n.useReducer(e=>e+1,0),I=n.useCallback(e=>null===c?null:c({closeFloat:O,closeFloatAll:A,...e}),[c]),D=null===c,L=$a((e=120)=>Sp(e,j,new Set([F]),!1)(),[j]),O=$a((e=60)=>Sp(e,_,kp(F),!0)(),[_]),P=$a((e=360)=>Sp(e,C,kp((e=>{const t=yp.get(e.key);return t&&wp.get(t)||null})(F)),!0)(),[C]),A=$a(T,[T]),F=n.useMemo(()=>({key:b,isRoot:!1,label:r,parent:y,onChildVisible:()=>{x(!0)},onChildHidden:()=>{x(!1)},open:L,close:O,closeChild:P,closeAll:A,floatElement:()=>w.current,anchorElement:()=>v.current}),[]);n.useEffect(()=>{wp.set(b,F)},[F]),n.useEffect(()=>()=>{wp.delete(b),O(0)},[]),n.useEffect(()=>{p&&!D&&(m(!0),y.onChildVisible())},[p,D]);const z=n.useCallback(e=>{e.which===Oa.Escape&&(e.preventDefault(),e.stopPropagation(),O(0))},[]),B=n.useRef(null),N=n.useCallback(()=>{const e=B.current,t=w.current;e&&t&&(requestAnimationFrame(()=>{(t.contains(document.activeElement)||document.activeElement===document.body)&&e.focus()}),B.current=null),u?.()},[]),V=n.useCallback(e=>{w.current=e,e.addEventListener("focus",e=>{B.current=e.relatedTarget},{once:!0,passive:!0});const t=document.activeElement;requestAnimationFrame(()=>{t===document.activeElement&&e.focus()})},[]),[H,$]=n.useState();n.useEffect(()=>{D&&(p?d?.():!1===p&&u?.()),$(f?t.jsx(xp,{floatReference:F,open:p,label:r,anchorEl:o,onOpening:()=>{d?.(),y.onChildVisible()},onClosing:N,onClose:()=>{m(!1),y.onChildHidden()},onMount:V,popperProps:{onKeyDown:z,onMouseEnter:e=>{p&&vp?.isClose&&vp.setReferences.has(F)&&(vp.fn.clear(),vp=null,F.closeChild())},...s},createPopupPanel:I}):null)},[f,p,r,D,s,I,M]);const W=$a(e=>{if(0===yp.size)return;let t=!1;yp.forEach(n=>{const o=wp.get(n);if(t)return;if(!o)return;const r=o.floatElement();r?.contains?.(e.target)&&(t=!0);const i=o.anchorElement();i?.contains?.(e.target)&&(t=!0)}),t||T()},[T]);return n.useEffect(()=>{if(!p||!y.isRoot)return;const e=e=>{W(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focus",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focus",e)}},[p,y]),{component:H,reference:F}},_p=n.memo(n.forwardRef((e,n)=>{const{nestedChildren:r,variant:i,disabled:l=!1,createPopupPanel:a,...s}=e,c=$a(e=>{if(!r||0===r.length)return null;const{popupContainer:i,floatReference:l,ref:a,...s}=e,c=[];for(let e=0;e<r.length;e++){const n=r[e];n&&c.push(t.jsx(_p,{parentFloat:l,...s,...n},e))}return t.jsxs(o.Box,{ref:n,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",c,t.jsx(zp,{parentFloat:l,children:"Close other children"})]})},[r]),d={disabled:l,createPopupPanel:c,...s};return t.jsx(i===sp.Toolbar?Np:Hp,{...d})})),Tp={placement:"right-start"},jp=n.memo(n.forwardRef((e,o)=>{const{children:r,sx:i,parentFloat:l,createPopupPanel:a,popperProps:s=Tp,label:c,...d}=e;!function(e){if(!e)throw new Error("Invariant failed")}(n.isValidElement(r));const u=r,p=n.useMemo(()=>({...u?.props,...d,onContextMenu:e=>{u?.props?.onContextMenu?.(e),e.isDefaultPrevented()||(d?.onContextMenu?.(e),e.isDefaultPrevented()||(m(e),e.preventDefault()))}}),[d,u?.props]),h=$a(a,[a]),[f,m]=n.useState(null),{reference:g,component:x}=Ep({label:c??"contextMenu",popperProps:s,parentFloat:l,anchor:{getBoundingClientRect:()=>new DOMRect(f?.clientX||0,f?.clientY||0)},onClose:()=>m(null),createPopupPanel:h});return n.useEffect(()=>{f?g.open(0):g.close(0)},[f]),t.jsxs(t.Fragment,{children:[n.cloneElement(r,p),x]})})),Mp=n.forwardRef((e,n)=>{const{slotProps:r,...i}=e,{getPortalContainer:l}=Rs();return t.jsx(o.Tooltip,{ref:n,slotProps:{...r,popper:{container:l,...r?.popper||{}}},...i})});Mp.displayName="SimpleTooltip";const Rp=n.memo(e=>{const{modifier:n,sx:r,...i}=e;return t.jsx(o.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:e=>a.alpha(e.palette.background.paper,e.palette.action.disabledOpacity),borderLeftColor:e=>a.alpha(e.palette.background.paper,e.palette.action.disabledOpacity),borderRightColor:e=>a.alpha(e.palette.background.paper,e.palette.action.disabledOpacity),borderBottomColor:e=>a.alpha(e.palette.background.paper,1-e.palette.action.disabledOpacity),backgroundColor:e=>a.alpha(e.palette.action.hover,e.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...r},...i,children:t.jsx(o.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:n})})}),Ip=Zo.getOS()===Zo.OSType.MacOS||Zo.getOS()===Zo.OSType.IOS?"Cmd":"Ctrl",Dp=(e,n=!1,r=null)=>{if(Array.isArray(e)){let i=[],l=e;for(let e=0;e<l.length;e++)i.push(Dp(l[e],n,r??""+e));return t.jsx(o.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:i},r)}if(!e?.key)return null;const i={};for(let t=0;e.modifiers&&t<e.modifiers.length;t++)i[e.modifiers[t]]=!0;const l=[];return i?.ctrl&&(l.push(t.jsx(Rp,{modifier:n?"^":t.jsx("div",{style:{paddingRight:"1px"},children:Ip})},"ctrl")),l.push("+")),i?.alt&&(l.push(t.jsx(Rp,{modifier:n?"⌥":"Alt"},"alt")),l.push("+")),i?.shift&&(l.push(t.jsx(Rp,{modifier:n?"⇧":t.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),l.push("+")),i?.meta&&(l.push(t.jsx(Rp,{modifier:n?t.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),l.push("+")),l.push(t.jsx(Rp,{modifier:Ss.toPrettyKeyCode(e.key)},"character")),t.jsx(o.Box,{sx:{display:"flex",alignItems:"center"},children:l},r)},Lp=n.memo(n.forwardRef((e,n)=>{const{disabled:r=!1,label:i,shortcut:l,chips:a,description:s,maxWidth:c=280,useModifierSymbols:d=!1,children:u,simple:p,componentDisabled:h=!1,sx:f,...m}=e;let g=null;return l&&(g=Dp(l,d)),t.jsx(Mp,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...f},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!r&&i?t.jsxs(o.Box,{sx:{maxWidth:`${c}px`},ref:n,children:[t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:s?"4px":"0px"},children:[t.jsx(o.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:i}),a?t.jsx(Tu,{chips:a}):null,g?t.jsx(o.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):t.jsx(t.Fragment,{}),g]}),s?t.jsx(o.Typography,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:s}):t.jsx(t.Fragment,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...m,children:t.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:u})})})),Op=t.jsx(xr,{}),Pp=pa(t.jsx(yr,{})),Ap=n.memo(n.forwardRef((e,r)=>{const{dense:i=!0,outlined:l=!1,disableHover:s=!1,parentFloat:c,selected:d,icon:u,tooltipProps:p,children:h,primary:f,sx:m,className:g,onFocus:x,onBlur:y,...b}=e,[w,v]=n.useState(!1),S={marginRight:"0px",padding:i?"2px":"7px",borderRadius:e=>`${e.shape.borderRadius}px`,color:e=>f?void 0:e.palette.text.icon??e.palette.action.active,border:e=>`solid ${l?e.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:e=>`${e.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:e=>a.alpha(e.palette.text.primary,e.palette.action.selectedOpacity),border:e=>`solid ${l?e.palette.text?.primary:e.palette.divider} 1px`},"&.Mui-disabled":{border:e=>`solid ${l?e.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...m},C={"&:hover:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary,border:e=>`solid ${l?e.palette.text?.primary:e.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:e=>a.alpha(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},"> .outline-hover":{outline:e=>`solid ${l?e.palette.text?.primary:e.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px`,border:e=>`1px solid ${e.palette?.primary?.main}`,zIndex:1}};let k=S;s||(k=Zo.mergeContentful(S,C));const E=n.useMemo(()=>{let e="function"==typeof u?u():u;return null===e?e:e||(void 0===d?Op:Pp)},[u,d]);let _=t.jsxs(o.IconButton,{component:"div",ref:r,className:Kn({"Mui-focusVisible":w,"Mui-selected":d},g),onFocus:e=>{v(!0),x?.(e)},onBlur:e=>{v(!1),y?.(e)},size:"small",TouchRippleProps:{center:!1},sx:k,edge:"end",...b,children:[E,h]});if(p)if(p.simple&&p.label&&!p.disabled){const{label:e,description:n,maxWidth:r,shortcut:i,useModifierSymbols:l,componentDisabled:a,simple:s,chips:c,ref:d,...u}=p;_=t.jsx(Mp,{disableInteractive:!0,title:e??"",...u,children:t.jsx(o.Box,{sx:{display:"flex"},children:_})})}else _=t.jsx(Lp,{children:_,...p});return _})),Fp=e=>e.icon,zp=n.memo(n.forwardRef((e,r)=>{const{icon:i=Op,renderIcon:l=Fp,parentFloat:a,className:s,onFocus:c,selected:d,onBlur:u,onMouseOver:p,onMouseOut:h,onMouseEnter:f,disabled:m,children:g,sx:x,tooltipProps:y,chips:b,primary:w,...v}=e,[S,C]=n.useState(!1),[k,E]=n.useState(!1),_=n.useMemo(()=>{const e=l?.({icon:i,disabled:m,selected:d});return e?t.jsx(o.ListItemIcon,{className:Kn({"Mui-focusVisible":S,"Mui-hovered":k}),sx:{"& .MuiSvgIcon-root":{color:e=>w?void 0:e.palette.text.icon??e.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:e=>e.palette.text.primary}}},children:e}):null},[l,m,i,S,k,w,d]);let T=t.jsxs(o.MenuItem,{ref:r,disabled:m,onMouseOver:e=>{p?.(e),e.isDefaultPrevented()||E(!0)},onMouseOut:e=>{h?.(e),e.isDefaultPrevented()||E(!1)},onMouseEnter:e=>{f?.(e),e.isDefaultPrevented()||a?.closeChild()},TouchRippleProps:{center:!1},className:Kn({"Mui-focusVisible":S,"Mui-hovered":k},s),onFocus:e=>{c?.(e),C(!0)},onBlur:e=>{u?.(e),C(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:e=>e.palette.text.primary},color:e=>e.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},...x},...v,children:[_,g,b?t.jsx(Tu,{chips:b}):null]});return y&&(T=t.jsx(Lp,{children:T,placement:"right-start",...y})),T})),Bp=n.memo(n.forwardRef((e,n)=>{const{children:r,sx:i,primary:l=!1,variant:a="subtitle1",...s}=e;return t.jsx(t.Fragment,{children:t.jsx(o.Typography,{ref:n,variant:a,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:"subtitle1"===a?"2px":void 0,paddingBottom:"subtitle1"===a?"2px":void 0,color:e=>l?void 0:e.palette.text.secondary,...i},...s,children:r})})})),Np=n.memo(n.forwardRef((e,r)=>{const{dense:i=!0,outlined:l=!1,label:s,selected:c=!1,onQuickClick:d,parentFloat:u,createPopupPanel:p,popupProps:h,onPopupOpen:f,onPopupClose:m,quickButtonProps:g,createQuickButton:x,tooltip:y="",createTooltip:b,icon:w,disabled:v,buttonProps:S=Zo.EmptyObject,disableHover:C,touchRippleRef:k,primary:E,children:_,sx:T,className:j,...M}=e,R=Yl(),I=n.useMemo(()=>{const e=(e,t,n,o=n)=>{const r="boolean"==typeof l?null:l[e];return"function"==typeof r?r(t):r||(l?n:o)};return{outline:{color:t=>e("color",t,t.palette.divider,"transparent"),hoverColor:t=>e("hoverColor",t,t.palette.text?.primary,t.palette.divider),focusColor:t=>e("focusColor",t,t.palette?.primary?.main)},active:"dark"===R.palette.mode?R.palette.text.secondary:R.palette.text.primary,text:R.palette.text.icon??R.palette.action.active}},[l,R]),[D,L]=n.useState(!1),[O,P]=n.useState(!1),[A,F]=n.useState(!1),z=n.useRef(null),B=n.useRef(null),N=Ep({anchor:z.current,label:s,createPopupPanel:p,parentFloat:u,popperProps:h?.popperProps,onClose:()=>{L(!1),m?.()},onOpen:()=>{L(!0),f?.()}}),V=$a(e=>{d?.(e),N.reference.close(0)},[d,N]),H=$a(()=>{D?N.reference.close(0):N.reference.open(0)},[D,N,u,s]),$=n.useMemo(()=>{const e={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:e=>I.outline.color(e),"&.Mui-focusVisible":{border:e=>`1px solid ${I.outline.focusColor(e)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>C?"transparent":void 0,backgroundColor:()=>C?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:e=>I.outline.hoverColor(e)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:e=>I.outline.hoverColor(e)},"&.left":{borderTopLeftRadius:e=>`${e.shape.borderRadius}px`,borderBottomLeftRadius:e=>`${e.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:e=>I.outline.color(e)},"&.right":{borderTopRightRadius:e=>`${e.shape.borderRadius}px`,borderBottomRightRadius:e=>`${e.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:e=>`${e.shape.borderRadius}px !important`}},t={"&.Mui-selected":{backgroundColor:e=>a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:e=>a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e=>a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},n={maxHeight:"100%","&.Mui-selected":{backgroundColor:e=>a.alpha(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:e=>a.alpha(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e=>a.alpha(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},backgroundColor:()=>C?"transparent":void 0,color:e=>e.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>i?"2px 3px":"7px",marginRight:"0"},o=Zo.mergeContentful(n,e),r=Zo.mergeContentful(o,t),l=Zo.mergeContentful(n,e);return{quickButtonStyling:o,openQuickButtonStyling:r,compoundStyling:l,openCompoundStyling:Zo.mergeContentful(l,t)}},[I,C]),W=$a(e=>{const{children:n,ref:o,...r}=e;return t.jsx(Mp,{ref:o,...r,disableInteractive:!0,children:n})},[]),U=d||x,q=U&&(g?.tooltip||g?.createTooltip),Z=e=>{const{tooltip:n,createTooltip:r,sx:i,...l}=e;let a=t.jsx(o.IconButton,{sx:{...i},component:"div",...l});return q?(a=(r??W)({title:D?"":n??y,children:t.jsx("div",{children:a})},D),a):a},G={onKeyDown:e=>{e.keyCode===Oa.Space?H():e.keyCode===Oa.F4||e.keyCode===Oa.Down?N.reference.open(0):e.keyCode===Oa.Up&&N.reference.close(0)}};let K=t.jsx(t.Fragment,{});const X=n.useMemo(()=>"function"==typeof w?w():w,[w]);if(U){let e=D?$.openQuickButtonStyling:$.quickButtonStyling;const n=(x||Z)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{N.reference.parent.closeChild()},onMouseDown:e=>{0===e.button&&(e.preventDefault(),V(e))},touchRippleRef:k,children:X,...g,className:Kn({"Mui-focusVisible":O||D,"Mui-selected":c,"Mui-hovered":A||D,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},g?.className),sx:{...$.quickButtonStyling,height:"100%",...g?.sx}});let r=dp(!0,i,D);q&&(r=(b??W)({title:D?"":y,children:r},D)),K=t.jsxs(t.Fragment,{children:[n,t.jsx(o.IconButton,{ref:B,component:"div",className:Kn({"Mui-selected":D,"Mui-hovered":A||D,"Mui-disabled":v,"Mui-focusVisible":O||D,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(i?0:2)+"px",paddingRight:(i?0:2)+"px",width:()=>"1em",...$.quickButtonStyling,...e},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:e=>{0===e.button&&(e.preventDefault(),H())},children:r})]})}else{let e=D?$.openCompoundStyling:$.compoundStyling;K=t.jsx(Ap,{ref:B,tabIndex:-1,disabled:v,size:"small",icon:X,className:Kn({"Mui-selected":D||c,"Mui-hovered":A,"Mui-disabled":v,"Mui-focusVisible":O||D,bordered:!0,left:!0,right:!0}),sx:{...$.quickButtonStyling,...e},onMouseDown:e=>{0===e.button&&(e.preventDefault(),H())},children:dp(!1,i,D)})}const{className:Y,sx:J,...Q}=S;let ee=t.jsx(o.Box,{onFocus:()=>P(!0),onBlur:()=>P(!1),onMouseOver:()=>F(!0),onMouseOut:()=>F(!1),...G,"aria-label":"split button",ref:z,tabIndex:v?void 0:0,className:Kn(Y,"split-button-root",{"Mui-focusVisible":O||D,"Mui-selected":D||c,"Mui-hovered":A,"Mui-disabled":v}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:l?"1px":"0px",marginRight:l?"1px":"0px",borderRadius:e=>`${e.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px`,zIndex:2},...J},...Q,children:K});return q||(ee=(b??W)({title:D?"":y,children:ee},D)),t.jsxs(o.Box,{className:Kn(j,"popupIconButton"),ref:r,...M,sx:{zIndex:O||D?2:void 0,display:"flex",alignItems:"center",...T},children:[ee,N.component]})}));Np.displayName="ExhibitPopupIconButton";const Vp={},Hp=n.memo(n.forwardRef((e,i)=>{const{selected:l=!1,label:a,onQuickClick:s,parentFloat:c,createPopupPanel:d,popupProps:u=Vp,onPopupOpen:p,onPopupClose:h,quickButtonProps:f,createQuickButton:m,tooltip:g="",createTooltip:x,icon:y,disabled:b,touchRippleRef:w,primary:v,children:S,sx:C,...k}=e,[E,_]=n.useState(!1),[T,j]=n.useState(!1),[M,R]=n.useState(!1),[I,D]=n.useState(!1),L=n.useRef(null),O=n.useRef(null),P=n.useMemo(()=>{if(!u)return;const{popperProps:e}=u;return{placement:"right-start",offsets:[-4,-2],...e}},[u]),A=Ep({anchor:L.current,label:a,createPopupPanel:d,parentFloat:c,popperProps:P,onClose:()=>{_(!1),h?.()},onOpen:()=>{_(!0),p?.()}}),F=$a(e=>{0===e.button&&(s?.(e),A.reference.close(0))},[s]),z=t.jsx(r.ArrowRight,{sx:{transform:()=>{}}}),B={"&.Mui-selected":{color:e=>e.palette.text.primary,"& svg * ":{color:e=>e.palette.text.primary}}},N=n.useCallback(e=>{const{children:n,ref:o,...r}=e;return t.jsx(Mp,{ref:o,...r,disableInteractive:!0,children:n})},[]),V=s||m,H=e=>{const{tooltip:n,createTooltip:o,...r}=e;return t.jsx(zp,{icon:y,className:Kn({"Mui-hovered":M}),sx:{flex:"1 1 100%",...B},...r,children:a})},$={onFocus:()=>{j(!0)},onBlur:()=>j(!1),onMouseOver:()=>{R(!0)},onMouseLeave:()=>{R(!1)},onMouseEnter:()=>{A.reference.open()},onMouseDown:e=>{0===e.button&&e.preventDefault()}};let W=t.jsx(t.Fragment,{});if(V){const e=(m||H)({tabIndex:-1,disabled:b,onMouseEnter:()=>{A.reference.parent.closeChild()},onMouseDown:e=>{0===e.button&&(e.preventDefault(),F(e))},className:Kn("quick-left",{},f?.className),...f});W=t.jsxs(t.Fragment,{children:[e,t.jsx(o.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),t.jsx(o.MenuItem,{ref:O,className:Kn({"Mui-selected":E,"Mui-hovered":M}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:e=>v?void 0:e.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},...B},tabIndex:-1,disabled:b,...$,children:t.jsx(o.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:e=>v?void 0:e.palette.text.icon??e.palette.action.active},onMouseOver:e=>{e.preventDefault(),D(!0)},onMouseLeave:()=>{D(!1)},onClick:e=>{e.preventDefault(),E?A.reference.close():A.reference.open()},children:z})})]})}else W=t.jsxs(zp,{ref:O,tabIndex:-1,disabled:b,icon:y,className:Kn({"Mui-selected":E||l,"Mui-hovered":M}),sx:{flex:"1 1 100%",paddingRight:"0px",...B},onClick:e=>{e.preventDefault(),E?A.reference.close():A.reference.open()},...$,children:[t.jsx("div",{style:{flex:"1 1 100%"},children:a}),t.jsx(o.Box,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:e=>v?void 0:e.palette.text.icon??e.palette.action.active},children:z})]});let U=t.jsx(o.Box,{"aria-label":"split button",ref:L,tabIndex:b?void 0:0,className:Kn({"Mui-disabled":b,"Mui-selected":E,"Mui-focusVisible":T||E,"Mui-hovered":M}),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"},...C},...k,children:W});return V&&!I&&(f?.tooltip||f?.createTooltip)&&(U=(f?.createTooltip??N)({title:E?"":U??f?.tooltip,children:U},E)),t.jsxs(o.Box,{ref:i,sx:{zIndex:T||E?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[U,A.component]})})),$p=n.memo(n.forwardRef((e,n)=>{const{onSelectToggle:o,selected:r=!1,label:i,shortcut:l,tabIndex:a=0,preventFocus:s=!1,...c}=e;return t.jsx(Lp,{label:i,shortcut:l,children:t.jsx(Ap,{ref:n,outlined:!1,tabIndex:a,selected:r,onMouseDown:e=>{s&&e.preventDefault()},onClick:()=>{o?.(!r)},...c})})})),Wp=n.memo(n.forwardRef((e,n)=>{const{children:r,selected:i=!0,outlined:l=!0,sx:s,...c}=e,d={display:"flex",border:e=>i?`solid ${l?e.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:e=>`${e.shape.borderRadius}px`,backgroundColor:e=>{if(i)return a.alpha(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity)}};let u=r;return null===u&&(u=t.jsx(xr,{})),u||(u=t.jsx(yr,{})),u=pa(u),t.jsx(o.Box,{ref:n,sx:{...d,...s},...c,children:u})}));function Up(){return Up=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},Up.apply(null,arguments)}function qp(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}var Zp,Gp={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},Kp=n.createContext(void 0);!function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"}(Zp||(Zp={}));var Xp={};function Yp(e,t){switch(t.type){case Zp.SHOW:var n,o=t.payload,r=o.id,i=o.component,l=o.props,a=o.options;return Up({},e,((n={})[r]={component:i,props:Up({},l,{open:!0}),options:a},n));case Zp.HIDE:var s,c=t.payload.id;return e[c]?Up({},e,((s={})[c]=Up({},e[c],{props:Up({},e[c].props,{open:!1})}),s)):e;case Zp.UPDATE:var d,u=t.payload,p=u.id,h=u.props;return e[p]?Up({},e,((d={})[p]=Up({},e[p],{props:Up({},e[p].props,h)}),d)):e;case Zp.DESTROY:var f=t.payload.id,m=Up({},e);return delete m[f],m;case Zp.DESTROY_BY_ROOT_ID:var g=t.payload.rootId;return Object.keys(e).filter(function(e){return e.split(".")[0]!==g}).reduce(function(t,n){var o;return Up({},t,((o={})[n]=e[n],o))},{});default:throw new Error("Unexpected action")}}var Jp="[ERROR]: Modal ID is missing",Qp=function(e){void 0===e&&(e=8);for(var t=[],n=0;n<e;n++)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t.join("")},eh=["open"];function th(e){var t=e.children,o=e.legacy,r=void 0!==o&&o,i=e.suspense,l=void 0===i||i,a=e.fallback,s=void 0===a?null:a,c=n.useReducer(Yp,Xp),d=c[0],u=c[1],p=n.useCallback(function(e,t){var n=qp(t,eh);e?u({type:Zp.UPDATE,payload:{id:e,props:n}}):console.error(Jp)},[u]),h=n.useCallback(function(e){e?u({type:Zp.HIDE,payload:{id:e}}):console.error(Jp)},[u]),f=n.useCallback(function(e){e?u({type:Zp.DESTROY,payload:{id:e}}):console.error(Jp)},[u]),m=n.useCallback(function(e){e?u({type:Zp.DESTROY_BY_ROOT_ID,payload:{rootId:e}}):console.error("[ERROR]: Modal root ID is missing")},[u]),g=n.useCallback(function(e,t,n){var o=Qp(8);return n&&n.rootId&&(o=n.rootId+"."+o),u({type:Zp.SHOW,payload:{id:o,component:e,props:t,options:n}}),{id:o,hide:function(){return h(o)},destroy:function(){return f(o)},update:function(e){return p(o,e)}}},[u,h,f,p]),x=l?n.Suspense:n.Fragment;return n.createElement(Kp.Provider,{value:{state:d,updateModal:p,hideModal:h,destroyModal:f,showModal:g,destroyModalsByRootId:m}},t,n.createElement(x,Object.assign({},l&&{fallback:s}),Object.keys(d).map(function(e){var t,o=d[e],i=o.component,l=o.props,a=o.options,s=function(){var t,n;null!=l&&l.onExited&&l.onExited.apply(l,arguments),null!=l&&null!=(t=l.TransitionProps)&&t.onExited&&(n=l.TransitionProps).onExited.apply(n,arguments),f(e)};return t=r?{onExited:s}:{TransitionProps:Up({},null==l?void 0:l.TransitionProps,{onExited:s})},n.createElement(i,Object.assign({},l,{key:e,onClose:function(){a&&a.hideOnClose&&h(e),a&&a.destroyOnClose&&a.hideOnClose&&f(e),l&&l.onClose&&l.onClose.apply(l,arguments)}},a&&!a.destroyOnClose&&t))})))}var nh=["showModal","destroyModalsByRootId"],oh={disableAutoDestroy:!1};function rh(e){void 0===e&&(e=oh);var t=Up({},oh,e).disableAutoDestroy,o=n.useContext(Kp)||Gp,r=o.showModal,i=o.destroyModalsByRootId,l=qp(o,nh),a=n.useRef(Qp(6));return n.useEffect(function(){return function(){!t&&i&&i(a.current)}},[t,i]),Up({showModal:n.useCallback(function(e,t,n){return r(e,t,Up({rootId:a.current,hideOnClose:!0},n))},[r]),destroyModalsByRootId:i},l)}var ih=["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])"],lh=ih.join(","),ah="undefined"==typeof Element,sh=ah?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ch=!ah&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},dh=function e(t,n){var o;void 0===n&&(n=!0);var r=null==t||null===(o=t.getAttribute)||void 0===o?void 0:o.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},uh=function(e,t,n){if(dh(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(lh));return t&&sh.call(e,lh)&&o.unshift(e),o.filter(n)},ph=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var l=i.shift();if(!dh(l,!1))if("SLOT"===l.tagName){var a=l.assignedElements(),s=e(a.length?a:l.children,!0,o);o.flatten?r.push.apply(r,s):r.push({scopeParent:l,candidates:s})}else{sh.call(l,lh)&&o.filter(l)&&(n||!t.includes(l))&&r.push(l);var c=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),d=!dh(c,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(c&&d){var u=e(!0===c?l.children:c.children,!0,o);o.flatten?r.push.apply(r,u):r.push({scopeParent:l,candidates:u})}else i.unshift.apply(i,l.children)}}return r},hh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},fh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!hh(e)?0:e.tabIndex},mh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},gh=function(e){return"INPUT"===e.tagName},xh=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},yh=function(e,t){return!(t.disabled||dh(t)||function(e){return gh(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=sh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(sh.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xh(e)}else{if("function"==typeof o){for(var i=e;e;){var l=e.parentElement,a=ch(e);if(l&&!l.shadowRoot&&!0===o(l))return xh(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,o,r,i=e&&ch(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!a&&l;){var s,c,d;a=!(null===(c=l=null===(s=i=ch(l))||void 0===s?void 0:s.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!sh.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},bh=function(e,t){return!(function(e){return function(e){return gh(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ch(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){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",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||fh(t)<0||!yh(e,t))},wh=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},vh=function e(t){var n=[],o=[];return t.forEach(function(t,r){var i=!!t.scopeParent,l=i?t.scopeParent:t,a=function(e,t){var n=fh(e);return n<0&&t&&!hh(e)?0:n}(l,i),s=i?e(t.candidates):l;0===a?i?n.push.apply(n,s):n.push(l):o.push({documentOrder:r,tabIndex:a,item:t,isScope:i,content:s})}),o.sort(mh).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Sh=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ph([e],t.includeContainer,{filter:bh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wh}):uh(e,t.includeContainer,bh.bind(null,t)),vh(n)},Ch=function(e,t){return(t=t||{}).getShadowRoot?ph([e],t.includeContainer,{filter:yh.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):uh(e,t.includeContainer,yh.bind(null,t))},kh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==sh.call(e,lh)&&bh(t,e)},Eh=ih.concat("iframe").join(","),_h=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==sh.call(e,Eh)&&yh(t,e)};const Th=Object.freeze(Object.defineProperty({__proto__:null,focusable:Ch,getTabIndex:fh,isFocusable:_h,isTabbable:kh,tabbable:Sh},Symbol.toStringTag,{value:"Module"}));function jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Mh(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach(function(t){Mh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dh=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Lh=function(e){return Dh(e)&&!e.shiftKey},Oh=function(e){return Dh(e)&&e.shiftKey},Ph=function(e){return setTimeout(e,0)},Ah=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"function"==typeof e?e.apply(void 0,n):e},Fh=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},zh=[];const Bh=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||zh,i=Ih({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Lh,isKeyBackward:Oh},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return l.containerGroups.findIndex(function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find(function(t){return t===e})})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,l=t.params,a=void 0===l?[]:l,s=i[e];if("function"==typeof s&&(s=s.apply(void 0,function(e){return function(e){if(Array.isArray(e))return jh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return jh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a))),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=s;if("string"==typeof s){try{c=o.querySelector(s)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!_h(e,i.tabbableOptions))if(s(o.activeElement)>=0)e=o.activeElement;else{var t=l.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(l.containerGroups=l.containers.map(function(e){var t=Sh(e,i.tabbableOptions),n=Ch(e,i.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,l=n.find(function(e){return kh(e)}),a=n.slice().reverse().find(function(e){return kh(e)}),s=!!t.find(function(e){return fh(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:l,lastDomTabbableNode:a,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find(function(e){return kh(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return kh(e)}):t[r+(o?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!c("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(l.containerGroups.find(function(e){return e.posTabIndexesFound})&&l.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.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(d()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||Fh(n),u();var a=null;if(l.tabbableGroups.length>0){var d=s(t,n),p=d>=0?l.containerGroups[d]:void 0;if(d<0)a=r?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(r){var h=l.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(h<0&&(p.container===t||_h(t,i.tabbableOptions)&&!kh(t,i.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=d),h>=0){var f=0===h?l.tabbableGroups.length-1:h-1,m=l.tabbableGroups[f];a=fh(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else Dh(n)||(a=p.nextTabbableNode(t,!1))}else{var g=l.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(p.container===t||_h(t,i.tabbableOptions)&&!kh(t,i.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=d),g>=0){var x=g===l.tabbableGroups.length-1?0:g+1,y=l.tabbableGroups[x];a=fh(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else Dh(n)||(a=p.nextTabbableNode(t))}}else a=c("fallbackFocus");return a},g=function(e){var t=Fh(e);s(t,e)>=0||(Ah(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):Ah(i.allowOutsideClick,e)||e.preventDefault())},x=function(e){var t=Fh(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(l.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var r=!0;if(l.mostRecentlyFocusedNode)if(fh(l.mostRecentlyFocusedNode)>0){var a=s(l.mostRecentlyFocusedNode),c=l.containerGroups[a].tabbableNodes;if(c.length>0){var u=c.findIndex(function(e){return e===l.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(l.recentNavEvent)?u+1<c.length&&(o=c[u+1],r=!1):u-1>=0&&(o=c[u-1],r=!1))}}else l.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return fh(e)>0})})||(r=!1);else r=!1;r&&(o=m({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),h(o||l.mostRecentlyFocusedNode||d())}l.recentNavEvent=void 0},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(Dh(e)&&e.preventDefault(),h(n))}(e,i.isKeyBackward(e))},b=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Ah(i.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},w=function(e){var t=Fh(e);s(t,e)>=0||Ah(i.clickOutsideDeactivates,e)||Ah(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(l.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)}(r,n),l.delayInitialFocusTimer=i.delayInitialFocus?Ph(function(){h(d())}):h(d()),o.addEventListener("focusin",x,!0),o.addEventListener("mousedown",g,{capture:!0,passive:!1}),o.addEventListener("touchstart",g,{capture:!0,passive:!1}),o.addEventListener("click",w,{capture:!0,passive:!1}),o.addEventListener("keydown",y,{capture:!0,passive:!1}),o.addEventListener("keydown",b),n},S=function(){if(l.active)return o.removeEventListener("focusin",x,!0),o.removeEventListener("mousedown",g,!0),o.removeEventListener("touchstart",g,!0),o.removeEventListener("click",w,!0),o.removeEventListener("keydown",y,!0),o.removeEventListener("keydown",b),n},C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===l.mostRecentlyFocusedNode})})&&h(d())}):void 0,k=function(){C&&(C.disconnect(),l.active&&!l.paused&&l.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(e){if(l.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),r=a(e,"checkCanFocusTrap");r||u(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=p(o),null==t||t();var i=function(){r&&u(),v(),k(),null==n||n()};return r?(r(l.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!l.active)return this;var t=Ih({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,S(),l.active=!1,l.paused=!1,k(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}(r,n);var o=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),d=a(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var u=function(){Ph(function(){d&&h(f(l.nodeFocusedBeforeActivation)),null==s||s()})};return d&&c?(c(f(l.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return l.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),l.active&&u(),k(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(e,t){if(l.paused===e)return this;if(l.paused=e,e){var n=a(t,"onPause"),o=a(t,"onPostPause");null==n||n(),S(),k(),null==o||o()}else{var r=a(t,"onUnpause"),i=a(t,"onPostUnpause");null==r||r(),u(),v(),k(),null==i||i()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),Nh=Ir(Bh),Vh=Ir(Th);var Hh,$h,Wh=function(){if($h)return Hh;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(t,n,i){return n=r(n),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,o()?Reflect.construct(n,i||[],r(t).constructor):n.apply(t,i))}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function l(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(n)?n:n+""}$h=1;var a=n,s=gi(),c=Nh.createFocusTrap,d=Vh.isFocusable,u=function(e){function n(e){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o=t(this,n,[e]),"getNodeForOption",function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l,a=n;if("string"==typeof n&&!(a=null===(l=this.getDocument())||void 0===l?void 0:l.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a}),o.handleDeactivate=o.handleDeactivate.bind(o),o.handlePostDeactivate=o.handlePostDeactivate.bind(o),o.handleClickOutsideDeactivates=o.handleClickOutsideDeactivates.bind(o),o.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:o.handleDeactivate,onPostDeactivate:o.handlePostDeactivate,clickOutsideDeactivates:o.handleClickOutsideDeactivates},o.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var r=e.focusTrapOptions;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&("returnFocusOnDeactivate"!==i&&"onDeactivate"!==i&&"onPostDeactivate"!==i&&"checkCanReturnFocus"!==i&&"clickOutsideDeactivates"!==i?o.internalOptions[i]=r[i]:o.originalOptions[i]=r[i]);return o.outsideClick=null,o.focusTrapElements=e.containerElements||[],o.updatePreviousElement(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(n,e),function(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.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(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||d(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll,r=void 0!==o&&o;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{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(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.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 e=this,t=this.props.children?a.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===a.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return a.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}])}(a.Component),p="undefined"==typeof Element?Function:Element;return u.propTypes={active:s.bool,paused:s.bool,focusTrapOptions:s.shape({document:s.object,onActivate:s.func,onPostActivate:s.func,checkCanFocusTrap:s.func,onPause:s.func,onPostPause:s.func,onUnpause:s.func,onPostUnpause:s.func,onDeactivate:s.func,onPostDeactivate:s.func,checkCanReturnFocus:s.func,initialFocus:s.oneOfType([s.instanceOf(p),s.string,s.bool,s.func]),fallbackFocus:s.oneOfType([s.instanceOf(p),s.string,s.func]),escapeDeactivates:s.oneOfType([s.bool,s.func]),clickOutsideDeactivates:s.oneOfType([s.bool,s.func]),returnFocusOnDeactivate:s.bool,setReturnFocus:s.oneOfType([s.instanceOf(p),s.string,s.bool,s.func]),allowOutsideClick:s.oneOfType([s.bool,s.func]),preventScroll:s.bool,tabbableOptions:s.shape({displayCheck:s.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:s.oneOfType([s.bool,s.func])}),trapStack:s.array,isKeyForward:s.func,isKeyBackward:s.func}),containerElements:s.arrayOf(s.instanceOf(p)),children:s.oneOfType([s.element,s.instanceOf(p)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:c},Hh=u}();const Uh=Rr(Wh);var qh,Zh,Gh={exports:{}},Kh={},Xh={exports:{}},Yh={},Jh={};function Qh(){return Zh||(Zh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.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.`)},Jh.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]},Jh.int=function(e){return parseInt(e,10)},Jh.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Jh.isNum=function(e){return"number"==typeof e&&!isNaN(e)}),Jh}var ef,tf,nf={};function of(){if(tf)return Yh;tf=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.addClassName=l,Yh.addEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,r):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Yh.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&l(e.body,"react-draggable-transparent-selection")},Yh.createCSSTransform=function(e,n){const o=r(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:o}},Yh.createSVGTransform=function(e,t){return r(e,t,"")},Yh.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,e=>n===e.identifier)||t.changedTouches&&(0,e.findInArray)(t.changedTouches,e=>n===e.identifier)},Yh.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},Yh.getTranslation=r,Yh.innerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingTop),n-=(0,e.int)(o.paddingBottom),n},Yh.innerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingLeft),n-=(0,e.int)(o.paddingRight),n},Yh.matchesSelector=o,Yh.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},Yh.offsetXYFromParent=function(e,t,n){const o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-o.left)/n,y:(e.clientY+t.scrollTop-o.top)/n}},Yh.outerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderTopWidth),n+=(0,e.int)(o.borderBottomWidth),n},Yh.outerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderLeftWidth),n+=(0,e.int)(o.borderRightWidth),n},Yh.removeClassName=a,Yh.removeEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Yh.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(e)}):i(e)};var e=Qh(),t=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(function(){if(ef)return nf;ef=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.browserPrefixToKey=n,nf.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},nf.default=void 0,nf.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(t in o)return"";for(let r=0;r<e.length;r++)if(n(t,e[r])in o)return e[r];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):"-"===e[o]?n=!0:t+=e[o];return t}(e)}`:e}return nf.default=t(),nf}());let n="";function o(t,o){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,e.isFunction)(t[n])})),!!(0,e.isFunction)(t[n])&&t[n](o)}function r(e,t,n){let{x:o,y:r}=e,i=`translate(${o}${n},${r}${n})`;return t&&(i=`translate(${"string"==typeof t.x?t.x:t.x+n}, ${"string"==typeof t.y?t.y:t.y+n})`+i),i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return Yh}var rf,lf={};function af(){if(rf)return lf;rf=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},lf.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},lf.createCoreData=function(t,o,r){const i=!(0,e.isNum)(t.lastX),l=n(t);return i?{node:l,deltaX:0,deltaY:0,lastX:o,lastY:r,x:o,y:r}:{node:l,deltaX:o-t.lastX,deltaY:r-t.lastY,lastX:t.lastX,lastY:t.lastY,x:o,y:r}},lf.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},lf.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=n(o);if("string"==typeof l){const{ownerDocument:n}=a,o=n.defaultView;let r;if(r="parent"===l?a.parentNode:a.getRootNode().querySelector(l),!(r instanceof o.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=r,s=o.getComputedStyle(a),c=o.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}return(0,e.isNum)(l.right)&&(r=Math.min(r,l.right)),(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom)),(0,e.isNum)(l.left)&&(r=Math.max(r,l.left)),(0,e.isNum)(l.top)&&(i=Math.max(i,l.top)),[r,i]},lf.getControlPosition=function(e,o,r){const i="number"==typeof o?(0,t.getTouch)(e,o):null;if("number"==typeof o&&!i)return null;const l=n(r),a=r.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,r.props.scale)},lf.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var e=Qh(),t=of();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return lf}var sf,cf,df,uf,pf={},hf={};function ff(){return sf||(sf=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=function(){}),hf}function mf(){return df||(df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(n),o=p(gi()),r=p(l),i=function(){if(qh)return Xh.exports;function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function t(){for(var t,n,o=0,r="",i=arguments.length;o<i;o++)(t=arguments[o])&&(n=e(t))&&(r&&(r+=" "),r+=n);return r}return qh=1,Xh.exports=t,Xh.exports.clsx=t,Xh.exports}(),a=of(),s=af(),c=Qh(),d=p(function(){if(cf)return pf;cf=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.default=void 0;var e=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(n),t=c(gi()),o=c(l),r=of(),i=af(),a=Qh(),s=c(ff());function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=p,f=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:a,y:c}=l,d=(0,i.createCoreData)(this,a,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.default)("calling",this.props.onStart),!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=c,(0,r.addEvent)(n,h.move,this.handleDrag),(0,r.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=o-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,o=this.lastY+t}const r=(0,i.createCoreData)(this,n,o);if((0,s.default)("DraggableCore: handleDrag: %j",r),!1!==this.props.onDrag(e,r)&&!1!==this.mounted)this.lastX=n,this.lastY=o;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(a.ownerDocument,h.move,this.handleDrag),(0,r.removeEvent)(a.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=u,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=u,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,p.move,this.handleDrag),(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,p.stop,this.handleDragStop),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:o.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return pf.default=f,d(f,"displayName","DraggableCore"),d(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel: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,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),d(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),pf}()),u=p(ff());function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=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},h.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:o}=t;return!n||o&&n.x===o.x&&n.y===o.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:o}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",(e,t)=>{if((0,u.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),f(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),o={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;const[r,i]=(0,s.getBoundPosition)(this,o.x,o.y);o.x=r,o.y=i,o.slackX=this.state.slackX+(e-o.x),o.slackY=this.state.slackY+(t-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-this.state.x,n.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(o)}),f(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.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(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:o,defaultPosition:r,defaultClassName:l,defaultClassNameDragging:c,defaultClassNameDragged:u,position:p,positionOffset:f,scale:m,...g}=this.props;let x={},y=null;const b=!Boolean(p)||this.state.dragging,w=p||r,v={x:(0,s.canDragX)(this)&&b?this.state.x:w.x,y:(0,s.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(v,f):x=(0,a.createCSSTransform)(v,f);const S=(0,i.clsx)(o.props.className||"",l,{[c]:this.state.dragging,[u]:this.state.dragged});return t.createElement(d.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:S,style:{...o.props.style,...x},transform:y}))}}e.default=m,f(m,"displayName","Draggable"),f(m,"propTypes",{...d.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(m,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Kh)),Kh}var gf=function(){if(uf)return Gh.exports;uf=1;const{default:e,DraggableCore:t}=mf();return Gh.exports=e,Gh.exports.default=e,Gh.exports.DraggableCore=t,Gh.exports}();const xf=Rr(gf),yf={x:0,y:0},bf=n.memo(n.forwardRef((e,r)=>{const{defaultPosition:i=yf,PaperComponent:l=o.Paper,onDragStop:a,rootSel:s=".MuiModal-root",handleSel:c=".draggable-title",titleSize:d,rootSize:u,...p}=e,h=n.useRef(null),f=n.useMemo(()=>d&&u?{left:0,top:0,right:u.width-d.width,bottom:u.height-d.height}:null,[d,u]),[m,g]=n.useState(null),[x,y]=n.useState(null),[b,w]=n.useState(null);return n.useLayoutEffect(()=>{!m&&i&&g(i??yf)},[i]),n.useEffect(()=>{f&&m&&y({x:Math.max(0,Math.min(m.x,f.right)),y:Math.max(0,Math.min(m.y,f.bottom))})},[m,f]),t.jsx(xf,{nodeRef:h,handle:c,cancel:'[class*="MuiDialogContent-root"]',position:x,bounds:f??".MuiModal-root",onStop:a,onStart:(e,t)=>{const n=e;w({x:(n.clientX??n.touches?.[0]?.clientX)-t.x,y:(n.clientY??n.touches?.[0]?.clientY)-t.y})},onDrag:(e,t)=>{const n=e,o=n.clientX??n.touches?.[0]?.clientX,r=n.clientY??n.touches?.[0]?.clientY;g({x:o-b.x,y:r-b.y})},children:t.jsx(l,{ref:pu([h,r]),...p})})})),wf={x:"50",y:"50"},vf=n.memo(n.forwardRef((e,i)=>{const s=function({props:e,name:t}){return Ql({props:e,name:t,defaultTheme:Xl,themeId:Mr})}({props:e,name:"MuiDialog"}),c=Yl(),d={enter:.66*c.transitions.duration.enteringScreen,exit:.66*c.transitions.duration.leavingScreen},{title:u="SheetXL",key:p="draggable-window",onCancel:h,onDone:f,onShow:m,onShown:g,onHide:x,open:y,autoFocusSel:b,children:w,TransitionComponent:v=o.Fade,TransitionProps:S,transitionDuration:C=d,BackdropComponent:k=o.Backdrop,BackdropProps:E,PaperComponent:_=o.Paper,PaperProps:T,onBackdropClick:j,sx:M,className:R,onMouseDown:I,initialPosition:D=wf,isModal:L=!1,...O}=s,P=n.useRef(null),[A,F]=n.useState(null),[z,B]=n.useState(!1),[N,V]=n.useState(!1),H=n.useRef(null),[$,W]=xu(),U=n.useRef(null),[q,Z]=xu(),G=n.useRef(null);n.useEffect(()=>{A&&B(y)},[y,A]);const K=$a(()=>{h?.(),B(!1)},[h]);n.useEffect(()=>{if(0===W.width&&0===W.height||A)return;const e=G.current?.getBoundingClientRect(),t=W.height-e.height,n=W.width-e.width;let o=.5*n,r=.5*t;"number"==typeof D?.x?o=D.x:"string"==typeof D?.x&&(o=n*(parseFloat(D.x)/100)),"number"==typeof D?.y?r=D.y:"string"==typeof D?.y&&(r=t*(parseFloat(D.y)/100)),F({x:o,y:r})},[W,Z]);const[X,Y]=n.useState(!1),[J,Q]=n.useState(null),[ee,te]=n.useState(null),ne=$a(e=>{if(J)return J.focus(e),!0;if(b){const t=U.current?.querySelectorAll?.(b);if(t&&t.length>0)return t[0]?.focus?.(e),!0}return U.current?.focus?.(e),!1},[J,b]),oe=ks(i,()=>({focus:e=>{ne(e)}}),[]),re={...S,onExited:e=>{f?.(null),S?.onExited?.(e)},onExit:e=>{const t=ee;t&&requestAnimationFrame(()=>{oe.current?.contains(document.activeElement)&&t.focus()}),x?.(),V(!1),S?.onExit?.(e)},onEntered:(e,t)=>{m?.(),S?.onEntered?.(e,t)},onEntering:(e,t)=>{V(!0),g?.(oe.current)}};n.useEffect(()=>{N&&ne()},[N]);const ie=t.jsx(Uh,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:P,active:N,children:t.jsx(v,{in:z,timeout:C,role:"presentation",...re,children:t.jsx(o.Box,{className:"MuiDialog-container",ref:U,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:e=>{e.which===Oa.Escape&&(K(),H.current?.start(e,{center:!1}),setTimeout(()=>H.current?.stop(e),180)),e.stopPropagation()},children:t.jsxs(bf,{ref:pu([G,i]),className:Kn({"Mui-focusVisible":X},R),sx:{"& *":e=>gp(e),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:e=>`solid ${a.alpha(e.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:e=>`solid ${a.alpha(e.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...M},defaultPosition:A,titleSize:Z,rootSize:W,PaperComponent:_,...O,...T,children:[u?t.jsx(o.DialogTitle,{className:Kn({"Mui-selected":X},"draggable-title"),sx:{cursor:"move",display:"flex",color:e=>e.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:e=>`${e.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:e=>e.transitions.duration.shortest/2+"ms"},backgroundColor:e=>a.alpha(e.palette.action.hover,.03)},ref:q,children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(1),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},children:[t.jsx(o.Box,{sx:{flex:"1 1 100%",paddingLeft:e=>e.spacing(1)},children:u}),t.jsx(Lp,{label:"Close",children:t.jsx(o.IconButton,{"aria-label":"close",sx:{color:e=>e.palette.text.icon??e.palette.action.active},touchRippleRef:H,onPointerDown:e=>{H.current?.start(e,{center:!1}),e.stopPropagation(),e.preventDefault()},onPointerUp:K,children:t.jsx(r.Close,{})})})]})}):null,w]})})})});let le=null;L&&(le=t.jsx(k,{...E,open:z,onMouseDown:e=>{K(),E?.onMouseDown?.(e)},onClick:e=>{j?.(e),E?.onClick?.(e)},sx:{pointerEvents:"auto",...E?.sx}}));const{getPortalContainer:ae}=Rs();return l.createPortal(t.jsxs(o.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:pu([oe,$]),onPointerDown:e=>{X&&(e.target===U.current||e.target.tabIndex<0)&&U.current?.contains(document.activeElement)},onContextMenu:e=>{e.isPropagationStopped()||e.preventDefault()},onFocus:e=>{!X&&(e.target===U.current||e.target.tabIndex<0)&&setTimeout(()=>{ne()},100),P.current?.focusTrap?.unpause(),Y(!0),U.current?.contains(e.target)&&e.target!==U.current&&Q(e.target),e.relatedTarget&&!ee&&te(e.relatedTarget)},onBlur:e=>{oe?.current?.contains(e.relatedTarget)||(te(null),P.current?.focusTrap?.pause(),Y(!1))},children:[le,ie]}),ae(),p+"")}));var Sf="undefined"!=typeof window?window:{screen:{},navigator:{}},Cf=(Sf.matchMedia||function(){return{matches:!1}}).bind(Sf),kf={get passive(){return!0}},Ef=function(){};Sf.addEventListener&&Sf.addEventListener("p",Ef,kf),Sf.removeEventListener&&Sf.removeEventListener("p",Ef,!1);var _f="ontouchstart"in Sf,Tf=_f||"TouchEvent"in Sf&&Cf("(any-pointer: coarse)").matches,jf=(Sf.navigator.maxTouchPoints||0)>0||Tf,Mf=Sf.navigator.userAgent||"",Rf=Cf("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Mf)&&Math.min(Sf.screen.width||0,Sf.screen.height||0)>=768,If=(Cf("(pointer: coarse)").matches||!Cf("(pointer: fine)").matches&&_f)&&!/Windows.*Firefox/.test(Mf),Df=Cf("(any-pointer: fine)").matches||Cf("(any-hover: hover)").matches||Rf||!_f,Lf=!jf||!Df&&If?jf?"touchOnly":"mouseOnly":"hybrid",Of="mouseOnly"===Lf?"mouse":"touchOnly"===Lf||If?"touch":"mouse",Pf=e=>"checkbox"===e.type,Af=e=>e instanceof Date,Ff=e=>null==e;const zf=e=>"object"==typeof e;var Bf=e=>!Ff(e)&&!Array.isArray(e)&&zf(e)&&!Af(e),Nf="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Vf(e){let t;const n=Array.isArray(e),o="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Nf&&(e instanceof Blob||o)||!n&&!Bf(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return Bf(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Vf(e[n]));else t=e}return t}var Hf=e=>/^\w*$/.test(e),$f=e=>void 0===e,Wf=e=>Array.isArray(e)?e.filter(Boolean):[],Uf=e=>Wf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),qf=(e,t,n)=>{if(!t||!Bf(e))return n;const o=(Hf(t)?[t]:Uf(t)).reduce((e,t)=>Ff(e)?e:e[t],e);return $f(o)||o===e?$f(e[t])?n:e[t]:o},Zf=e=>"boolean"==typeof e,Gf=(e,t,n)=>{let o=-1;const r=Hf(t)?[t]:Uf(t),i=r.length,l=i-1;for(;++o<i;){const t=r[o];let i=n;if(o!==l){const n=e[t];i=Bf(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}};const Kf="onChange",Xf="onSubmit",Yf="all",Jf="pattern",Qf="required",em=n.createContext(null);em.displayName="HookFormContext";const tm=e=>{const{children:t,...o}=e;return n.createElement(em.Provider,{value:o},t)},nm="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;var om=e=>"string"==typeof e,rm=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},im=e=>Array.isArray(e)?e:[e],lm=()=>{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(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},am=e=>Ff(e)||!zf(e);function sm(e,t){if(am(e)||am(t))return e===t;if(Af(e)&&Af(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 n=e[r];if(!o.includes(r))return!1;if("ref"!==r){const e=t[r];if(Af(n)&&Af(e)||Bf(n)&&Bf(e)||Array.isArray(n)&&Array.isArray(e)?!sm(n,e):n!==e)return!1}}return!0}var cm=e=>Bf(e)&&!Object.keys(e).length,dm=e=>"file"===e.type,um=e=>"function"==typeof e,pm=e=>{if(!Nf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},hm=e=>"select-multiple"===e.type,fm=e=>"radio"===e.type,mm=e=>pm(e)&&e.isConnected;function gm(e,t){const n=Array.isArray(t)?t:Hf(t)?[t]:Uf(t),o=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let o=0;for(;o<n;)e=$f(e)?o++:e[t[o++]];return e}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],0!==r&&(Bf(o)&&cm(o)||Array.isArray(o)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!$f(e[t]))return!1;return!0}(o))&&gm(e,n.slice(0,-1)),e}var xm=e=>{for(const t in e)if(um(e[t]))return!0;return!1};function ym(e,t={}){const n=Array.isArray(e);if(Bf(e)||n)for(const n in e)Array.isArray(e[n])||Bf(e[n])&&!xm(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ym(e[n],t[n])):Ff(e[n])||(t[n]=!0);return t}function bm(e,t,n){const o=Array.isArray(e);if(Bf(e)||o)for(const o in e)Array.isArray(e[o])||Bf(e[o])&&!xm(e[o])?$f(t)||am(n[o])?n[o]=Array.isArray(e[o])?ym(e[o],[]):{...ym(e[o])}:bm(e[o],Ff(t)?{}:t[o],n[o]):n[o]=!sm(e[o],t[o]);return n}var wm=(e,t)=>bm(e,t,ym(t));const vm={value:!1,isValid:!1},Sm={value:!0,isValid:!0};var Cm=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!$f(e[0].attributes.value)?$f(e[0].value)||""===e[0].value?Sm:{value:e[0].value,isValid:!0}:Sm:vm}return vm},km=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>$f(e)?e:t?""===e?NaN:e?+e:e:n&&om(e)?new Date(e):o?o(e):e;const Em={isValid:!1,value:null};var _m=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Em):Em;function Tm(e){const t=e.ref;return dm(t)?t.files:fm(t)?_m(e.refs).value:hm(t)?[...t.selectedOptions].map(({value:e})=>e):Pf(t)?Cm(e.refs).value:km($f(t.value)?e.ref.value:t.value,e)}var jm=e=>e instanceof RegExp,Mm=e=>$f(e)?e:jm(e)?e.source:Bf(e)?jm(e.value)?e.value.source:e.value:e,Rm=e=>({isOnSubmit:!e||e===Xf,isOnBlur:"onBlur"===e,isOnChange:e===Kf,isOnAll:e===Yf,isOnTouch:"onTouched"===e});const Im="AsyncFunction";var Dm=e=>!!e&&!!e.validate&&!!(um(e.validate)&&e.validate.constructor.name===Im||Bf(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Im)),Lm=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const Om=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const n=qf(e,r);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!o)return!0;if(e.ref&&t(e.ref,e.name)&&!o)return!0;if(Om(i,t))break}else if(Bf(i)&&Om(i,t))break}}};function Pm(e,t,n){const o=qf(e,n);if(o||Hf(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),i=qf(t,o),l=qf(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};if(l&&l.root&&l.root.type)return{name:`${o}.root`,error:l.root};r.pop()}return{name:n}}var Am=(e,t,n)=>{const o=im(qf(e,n));return Gf(o,"root",t[n]),Gf(e,n,o),e},Fm=e=>om(e);function zm(e,t,n="validate"){if(Fm(e)||Array.isArray(e)&&e.every(Fm)||Zf(e)&&!e)return{type:n,message:Fm(e)?e:"",ref:t}}var Bm=e=>Bf(e)&&!jm(e)?e:{value:e,message:""},Nm=async(e,t,n,o,r,i)=>{const{ref:l,refs:a,required:s,maxLength:c,minLength:d,min:u,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:x}=e._f,y=qf(n,m);if(!x||t.has(m))return{};const b=a?a[0]:l,w=e=>{r&&b.reportValidity&&(b.setCustomValidity(Zf(e)?"":e||""),b.reportValidity())},v={},S=fm(l),C=Pf(l),k=S||C,E=(g||dm(l))&&$f(l.value)&&$f(y)||pm(l)&&""===l.value||""===y||Array.isArray(y)&&!y.length,_=rm.bind(null,m,o,v),T=(e,t,n,o="maxLength",r="minLength")=>{const i=e?t:n;v[m]={type:e?o:r,message:i,ref:l,..._(e?o:r,i)}};if(i?!Array.isArray(y)||!y.length:s&&(!k&&(E||Ff(y))||Zf(y)&&!y||C&&!Cm(a).isValid||S&&!_m(a).isValid)){const{value:e,message:t}=Fm(s)?{value:!!s,message:s}:Bm(s);if(e&&(v[m]={type:Qf,message:t,ref:b,..._(Qf,t)},!o))return w(t),v}if(!(E||Ff(u)&&Ff(p))){let e,t;const n=Bm(p),r=Bm(u);if(Ff(y)||isNaN(y)){const o=l.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==l.type,s="week"==l.type;om(n.value)&&y&&(e=a?i(y)>i(n.value):s?y>n.value:o>new Date(n.value)),om(r.value)&&y&&(t=a?i(y)<i(r.value):s?y<r.value:o<new Date(r.value))}else{const o=l.valueAsNumber||(y?+y:y);Ff(n.value)||(e=o>n.value),Ff(r.value)||(t=o<r.value)}if((e||t)&&(T(!!e,n.message,r.message,"max","min"),!o))return w(v[m].message),v}if((c||d)&&!E&&(om(y)||i&&Array.isArray(y))){const e=Bm(c),t=Bm(d),n=!Ff(e.value)&&y.length>+e.value,r=!Ff(t.value)&&y.length<+t.value;if((n||r)&&(T(n,e.message,t.message),!o))return w(v[m].message),v}if(h&&!E&&om(y)){const{value:e,message:t}=Bm(h);if(jm(e)&&!y.match(e)&&(v[m]={type:Jf,message:t,ref:l,..._(Jf,t)},!o))return w(t),v}if(f)if(um(f)){const e=zm(await f(y,n),b);if(e&&(v[m]={...e,..._("validate",e.message)},!o))return w(e.message),v}else if(Bf(f)){let e={};for(const t in f){if(!cm(e)&&!o)break;const r=zm(await f[t](y,n),b,t);r&&(e={...r,..._(t,r.message)},w(r.message),o&&(v[m]=e))}if(!cm(e)&&(v[m]={ref:b,...e},!o))return v}return w(!0),v};const Vm={mode:Xf,reValidateMode:Kf,shouldFocusError:!0};function Hm(e={}){const t=n.useRef(void 0),o=n.useRef(void 0),[r,i]=n.useState({isDirty:!1,isValidating:!1,isLoading:um(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:um(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!um(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:n,...o}=function(e={}){let t={...Vm,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:um(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const o={};let r,i=(Bf(t.defaultValues)||Bf(t.values))&&Vf(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:Vf(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let u={...d};const p={array:lm(),state:lm()},h=t.criteriaMode===Yf,f=async e=>{if(!t.disabled&&(d.isValid||u.isValid||e)){const e=t.resolver?cm((await b()).errors):await w(o,!0);e!==n.isValid&&p.state.next({isValid:e})}},m=(e,o)=>{!t.disabled&&(d.isValidating||d.validatingFields||u.isValidating||u.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(o?Gf(n.validatingFields,e,o):gm(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!cm(n.validatingFields)}))},g=(e,t,n,r)=>{const s=qf(o,e);if(s){const o=qf(l,e,$f(n)?qf(i,e):n);$f(o)||r&&r.defaultChecked||t?Gf(l,e,t?o:Tm(s._f)):C(e,o),a.mount&&f()}},x=(e,o,r,l,a)=>{let s=!1,c=!1;const h={name:e};if(!t.disabled){if(!r||l){(d.isDirty||u.isDirty)&&(c=n.isDirty,n.isDirty=h.isDirty=v(),s=c!==h.isDirty);const t=sm(qf(i,e),o);c=!!qf(n.dirtyFields,e),t?gm(n.dirtyFields,e):Gf(n.dirtyFields,e,!0),h.dirtyFields=n.dirtyFields,s=s||(d.dirtyFields||u.dirtyFields)&&c!==!t}if(r){const t=qf(n.touchedFields,e);t||(Gf(n.touchedFields,e,r),h.touchedFields=n.touchedFields,s=s||(d.touchedFields||u.touchedFields)&&t!==r)}s&&a&&p.state.next(h)}return s?h:{}},y=(e,o,i,l)=>{const a=qf(n.errors,e),s=(d.isValid||u.isValid)&&Zf(o)&&n.isValid!==o;var h;if(t.delayError&&i?(h=()=>((e,t)=>{Gf(n.errors,e,t),p.state.next({errors:n.errors})})(e,i),r=e=>{clearTimeout(c),c=setTimeout(h,e)},r(t.delayError)):(clearTimeout(c),r=null,i?Gf(n.errors,e,i):gm(n.errors,e)),(i?!sm(a,i):a)||!cm(l)||s){const t={...l,...s&&Zf(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},b=async e=>{m(e,!0);const n=await t.resolver(l,t.context,((e,t,n,o)=>{const r={};for(const n of e){const e=qf(t,n);e&&Gf(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}})(e||s.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return m(e),n},w=async(e,o,r={valid:!0})=>{for(const i in e){const a=e[i];if(a){const{_f:e,...c}=a;if(e){const c=s.array.has(e.name),u=a._f&&Dm(a._f);u&&d.validatingFields&&m([i],!0);const p=await Nm(a,s.disabled,l,h,t.shouldUseNativeValidation&&!o,c);if(u&&d.validatingFields&&m([i]),p[e.name]&&(r.valid=!1,o))break;!o&&(qf(p,e.name)?c?Am(n.errors,p,e.name):Gf(n.errors,e.name,p[e.name]):gm(n.errors,e.name))}!cm(c)&&await w(c,o,r)}}return r.valid},v=(e,n)=>!t.disabled&&(e&&n&&Gf(l,e,n),!sm(M(),i)),S=(e,t,n)=>((e,t,n,o,r)=>om(e)?(o&&t.watch.add(e),qf(n,e,r)):Array.isArray(e)?e.map(e=>(o&&t.watch.add(e),qf(n,e))):(o&&(t.watchAll=!0),n))(e,s,{...a.mount?l:$f(t)?i:om(e)?{[e]:t}:t},n,t),C=(e,t,n={})=>{const r=qf(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&Gf(l,e,km(t,n)),i=pm(n.ref)&&Ff(t)?"":t,hm(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?Pf(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(i)?e.checked=!!i.find(t=>t===e.value):e.checked=i===e.value||!!i)}):n.refs.forEach(e=>e.checked=e.value===i):dm(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||p.state.next({name:e,values:Vf(l)})))}(n.shouldDirty||n.shouldTouch)&&x(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&j(e)},k=(e,t,n)=>{for(const r in t){if(!t.hasOwnProperty(r))return;const i=t[r],l=e+"."+r,a=qf(o,l);(s.array.has(e)||Bf(i)||a&&!a._f)&&!Af(i)?k(l,i,n):C(l,i,n)}},E=(e,t,r={})=>{const c=qf(o,e),h=s.array.has(e),f=Vf(t);Gf(l,e,f),h?(p.array.next({name:e,values:Vf(l)}),(d.isDirty||d.dirtyFields||u.isDirty||u.dirtyFields)&&r.shouldDirty&&p.state.next({name:e,dirtyFields:wm(i,l),isDirty:v(e,f)})):!c||c._f||Ff(f)?C(e,f,r):k(e,f,r),Lm(e,s)&&p.state.next({...n}),p.state.next({name:a.mount?e:void 0,values:Vf(l)})},_=async e=>{a.mount=!0;const i=e.target;let c=i.name,g=!0;const v=qf(o,c),S=e=>{g=Number.isNaN(e)||Af(e)&&isNaN(e.getTime())||sm(e,qf(l,c,e))},C=Rm(t.mode),k=Rm(t.reValidateMode);if(v){let a,E;const _=i.type?Tm(v._f):(e=>Bf(e)&&e.target?Pf(e.target)?e.target.checked:e.target.value:e)(e),T="blur"===e.type||"focusout"===e.type,M=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(v._f)&&!t.resolver&&!qf(n.errors,c)&&!v._f.deps||((e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e))(T,qf(n.touchedFields,c),n.isSubmitted,k,C),R=Lm(c,s,T);Gf(l,c,_),T?(v._f.onBlur&&v._f.onBlur(e),r&&r(0)):v._f.onChange&&v._f.onChange(e);const I=x(c,_,T),D=!cm(I)||R;if(!T&&p.state.next({name:c,type:e.type,values:Vf(l)}),M)return(d.isValid||u.isValid)&&("onBlur"===t.mode?T&&f():T||f()),D&&p.state.next({name:c,...R?{}:I});if(!T&&R&&p.state.next({...n}),t.resolver){const{errors:e}=await b([c]);if(S(_),g){const t=Pm(n.errors,o,c),r=Pm(e,o,t.name||c);a=r.error,c=r.name,E=cm(e)}}else m([c],!0),a=(await Nm(v,s.disabled,l,h,t.shouldUseNativeValidation))[c],m([c]),S(_),g&&(a?E=!1:(d.isValid||u.isValid)&&(E=await w(o,!0)));g&&(v._f.deps&&j(v._f.deps),y(c,E,a,I))}},T=(e,t)=>{if(qf(n.errors,t)&&e.focus)return e.focus(),1},j=async(e,r={})=>{let i,l;const a=im(e);if(t.resolver){const t=await(async e=>{const{errors:t}=await b(e);if(e)for(const o of e){const e=qf(t,o);e?Gf(n.errors,o,e):gm(n.errors,o)}else n.errors=t;return t})($f(e)?e:a);i=cm(t),l=e?!a.some(e=>qf(t,e)):i}else e?(l=(await Promise.all(a.map(async e=>{const t=qf(o,e);return await w(t&&t._f?{[e]:t}:t)}))).every(Boolean),(l||n.isValid)&&f()):l=i=await w(o);return p.state.next({...!om(e)||(d.isValid||u.isValid)&&i!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:i}:{},errors:n.errors}),r.shouldFocus&&!l&&Om(o,T,e?a:s.mount),l},M=e=>{const t={...a.mount?l:i};return $f(e)?t:om(e)?qf(t,e):e.map(e=>qf(t,e))},R=(e,t)=>({invalid:!!qf((t||n).errors,e),isDirty:!!qf((t||n).dirtyFields,e),error:qf((t||n).errors,e),isValidating:!!qf(n.validatingFields,e),isTouched:!!qf((t||n).touchedFields,e)}),I=(e,t,r)=>{const i=(qf(o,e,{_f:{}})._f||{}).ref,l=qf(n.errors,e)||{},{ref:a,message:s,type:c,...d}=l;Gf(n.errors,e,{...d,...t,ref:i}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},D=e=>p.state.subscribe({next:t=>{var o,r,i;o=e.name,r=t.name,i=e.exact,o&&r&&o!==r&&!im(o).some(e=>e&&(i?e===r:e.startsWith(r)||r.startsWith(e)))||!((e,t,n,o)=>{n(e);const{name:r,...i}=e;return cm(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!o||Yf))})(t,e.formState||d,N,e.reRenderRoot)||e.callback({values:{...l},...n,...t})}}).unsubscribe,L=(e,r={})=>{for(const a of e?im(e):s.mount)s.mount.delete(a),s.array.delete(a),r.keepValue||(gm(o,a),gm(l,a)),!r.keepError&&gm(n.errors,a),!r.keepDirty&&gm(n.dirtyFields,a),!r.keepTouched&&gm(n.touchedFields,a),!r.keepIsValidating&&gm(n.validatingFields,a),!t.shouldUnregister&&!r.keepDefaultValue&&gm(i,a);p.state.next({values:Vf(l)}),p.state.next({...n,...r.keepDirty?{isDirty:v()}:{}}),!r.keepIsValid&&f()},O=({disabled:e,name:t})=>{(Zf(e)&&a.mount||e||s.disabled.has(t))&&(e?s.disabled.add(t):s.disabled.delete(t))},P=(e,n={})=>{let r=qf(o,e);const l=Zf(n.disabled)||Zf(t.disabled);return Gf(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),r?O({disabled:Zf(n.disabled)?n.disabled:t.disabled,name:e}):g(e,!0,n.value),{...l?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Mm(n.min),max:Mm(n.max),minLength:Mm(n.minLength),maxLength:Mm(n.maxLength),pattern:Mm(n.pattern)}:{},name:e,onChange:_,onBlur:_,ref:l=>{if(l){P(e,n),r=qf(o,e);const t=$f(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,a=(e=>fm(e)||Pf(e))(t),s=r._f.refs||[];if(a?s.find(e=>e===t):t===r._f.ref)return;Gf(o,e,{_f:{...r._f,...a?{refs:[...s.filter(mm),t,...Array.isArray(qf(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),g(e,!1,void 0,t)}else r=qf(o,e,{}),r._f&&(r._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&(!((e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)))(s.array,e)||!a.action)&&s.unMount.add(e)}}},A=()=>t.shouldFocusError&&Om(o,T,s.mount),F=(e,r)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let c=Vf(l);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:e,values:t}=await b();n.errors=e,c=t}else await w(o);if(s.disabled.size)for(const e of s.disabled)Gf(c,e,void 0);if(gm(n.errors,"root"),cm(n.errors)){p.state.next({errors:{}});try{await e(c,i)}catch(e){a=e}}else r&&await r({...n.errors},i),A(),setTimeout(A);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cm(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},z=(e,r={})=>{const c=e?Vf(e):i,u=Vf(c),h=cm(e),f=h?i:u;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(wm(i,l))]);for(const t of Array.from(e))qf(n.dirtyFields,t)?Gf(f,t,qf(l,t)):E(t,qf(f,t))}else{if(Nf&&$f(e))for(const e of s.mount){const t=qf(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(pm(e)){const t=e.closest("form");if(t){t.reset();break}}}}for(const e of s.mount)E(e,qf(f,e))}l=Vf(f),p.array.next({values:{...f}}),p.state.next({values:{...f}})}s={mount:r.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!r.keepIsValid||!!r.keepDirtyValues,a.watch=!!t.shouldUnregister,p.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!h&&(r.keepDirty?n.isDirty:!(!r.keepDefaultValues||sm(e,i))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:r.keepDirtyValues?r.keepDefaultValues&&l?wm(i,l):n.dirtyFields:r.keepDefaultValues&&e?wm(i,e):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>z(um(e)?e(l):e,t),N=e=>{n={...n,...e}},V={control:{register:P,unregister:L,getFieldState:R,handleSubmit:F,setError:I,_subscribe:D,_runSchema:b,_focusError:A,_getWatch:S,_getDirty:v,_setValid:f,_setFieldArray:(e,r=[],s,c,h=!0,f=!0)=>{if(c&&s&&!t.disabled){if(a.action=!0,f&&Array.isArray(qf(o,e))){const t=s(qf(o,e),c.argA,c.argB);h&&Gf(o,e,t)}if(f&&Array.isArray(qf(n.errors,e))){const t=s(qf(n.errors,e),c.argA,c.argB);h&&Gf(n.errors,e,t),((e,t)=>{!Wf(qf(e,t)).length&&gm(e,t)})(n.errors,e)}if((d.touchedFields||u.touchedFields)&&f&&Array.isArray(qf(n.touchedFields,e))){const t=s(qf(n.touchedFields,e),c.argA,c.argB);h&&Gf(n.touchedFields,e,t)}(d.dirtyFields||u.dirtyFields)&&(n.dirtyFields=wm(i,l)),p.state.next({name:e,isDirty:v(e,r),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Gf(l,e,r)},_setDisabledField:O,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Wf(qf(a.mount?l:i,e,t.shouldUnregister?qf(i,e,[]):[])),_reset:z,_resetDefaultValues:()=>um(t.defaultValues)&&t.defaultValues().then(e=>{B(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of s.unMount){const t=qf(o,e);t&&(t._f.refs?t._f.refs.every(e=>!mm(e)):!mm(t._f.ref))&&L(e)}s.unMount=new Set},_disableForm:e=>{Zf(e)&&(p.state.next({disabled:e}),Om(o,(t,n)=>{const r=qf(o,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:p,_proxyFormState:d,get _fields(){return o},get _formValues(){return l},get _state(){return a},set _state(e){a=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:e=>(a.mount=!0,u={...u,...e.formState},D({...e,formState:u})),trigger:j,register:P,handleSubmit:F,watch:(e,t)=>um(e)?p.state.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:E,getValues:M,reset:B,resetField:(e,t={})=>{qf(o,e)&&($f(t.defaultValue)?E(e,Vf(qf(i,e))):(E(e,t.defaultValue),Gf(i,e,Vf(t.defaultValue))),t.keepTouched||gm(n.touchedFields,e),t.keepDirty||(gm(n.dirtyFields,e),n.isDirty=t.defaultValue?v(e,Vf(qf(i,e))):v()),t.keepError||(gm(n.errors,e),d.isValid&&f()),p.state.next({...n}))},clearErrors:e=>{e&&im(e).forEach(e=>gm(n.errors,e)),p.state.next({errors:e?n.errors:{}})},unregister:L,setError:I,setFocus:(e,t={})=>{const n=qf(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&um(e.select)&&e.select())}},getFieldState:R};return{...V,formControl:V}}(e);t.current={...o,formState:r}}const l=t.current.control;return l._options=e,nm(()=>{const e=l._subscribe({formState:l._proxyFormState,callback:()=>i({...l._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),l._formState.isReady=!0,e},[l]),n.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),n.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),n.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),n.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),n.useEffect(()=>{if(l._proxyFormState.isDirty){const e=l._getDirty();e!==r.isDirty&&l._subjects.state.next({isDirty:e})}},[l,r.isDirty]),n.useEffect(()=>{e.values&&!sm(e.values,o.current)?(l._reset(e.values,l._options.resetOptions),o.current=e.values,i(e=>({...e}))):l._resetDefaultValues()},[l,e.values]),n.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=((e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(r,n,{get:()=>{const r=n;return t._proxyFormState[r]!==Yf&&(t._proxyFormState[r]=!o||Yf),e[r]}});return r})(r,l),t.current}const $m=["Ok","Cancel"],Wm=n.memo(n.forwardRef((e,r)=>{const{description:i,icon:l,onCancel:s,onOption:c,onDone:d,onValidateOption:u,createOptionsButton:p,options:h=$m,autoFocusSel:f=".defaultOption",defaultOption:m=h[0],cancelOption:g="Cancel",children:x,...y}=e,b=Hm({shouldUseNativeValidation:!1}),{handleSubmit:w,formState:v}=b,S=n.useRef(null),C=n.useRef(null),k=n.useRef(null),E=$a(async e=>{let t;try{if(t=await Promise.resolve(u?.(e))??!0,!0!==t)return;await Promise.resolve(c?.(e,e===g,e===m)),d?.(e)}catch(e){}},[c,d,u,g,m]),_=$a((e,t)=>{setTimeout(()=>{E(m)},180)},[E]),T=$a(()=>{c?.(g,!0,!1),s?.(),d?.(null)},[c,g,s,d]),j=v&&(Object.keys(v.errors).length>0||v.disabled||v.isSubmitted),M=$a((e,n)=>{const r=e===g,i={className:n?"defaultOption":"action",type:n?"submit":"button",style:{minWidth:"75px"},onClick:()=>{r?T():n||E(e)}};if(p)return p(e,i,n);const l={className:n?"defaultOption":"action",variant:n?"contained":"outlined",size:"small",disabled:!r&&j,color:"primary",...i};if(n||r){const e=n?S:C;l.touchRippleRef=e,l.onPointerDown=t=>{e.current?.start(t,{center:!1}),t.stopPropagation(),t.preventDefault()}}return t.jsx(o.Button,{...l,children:t.jsx("div",{style:{paddingTop:"3px"},children:e})},`action:${e}`)},[h,m,g,p,v]),R=n.useMemo(()=>{const e=[];for(let t=0;t<h.length;t++){const n=h[t],o=m?n===m:0===t;e.push(M(n,o))}return e},[h,m,v]);return t.jsx(vf,{onCancel:T,initialPosition:{y:"touch"===Of?"15":"35"},onDone:d,autoFocusSel:f,isModal:!0,ref:r,PaperProps:{},...y,children:t.jsx(tm,{...b,children:t.jsxs("form",{ref:k,onSubmit:w(_),children:[t.jsx(o.DialogContent,{dividers:!0,onKeyDown:e=>{if(e.isDefaultPrevented())return;e.stopPropagation();let t=null,n=null;const o=e.which===Oa.Escape&&g;if(o)t=g,n=C;else{if(j)return;e.which===Oa.Enter&&(t=m??h[0],n=S)}t&&(n.current?.start(e,{center:!1}),setTimeout(()=>{n.current?.stop(e),o&&E(t)},180))},children:t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:e=>e.spacing(l||i?1.5:0)},children:[t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[l,i]}),x]})}),t.jsx(o.DialogActions,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(1),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1),backgroundColor:e=>a.alpha(e.palette.action.hover,.03)},children:R})]})})})})),Um=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Wm,default:Wm},Symbol.toStringTag,{value:"Module"})),qm=n.lazy(()=>Promise.resolve().then(()=>Um)),Zm=n.lazy(()=>Promise.resolve().then(()=>require("./BabvaPi1dUIPt5AG.cjs"))),Gm=n.memo(n.forwardRef((e,n)=>{const{command:o,disabled:r=!1,shortcut:i,children:l,...a}=e;return nc(o),t.jsx(Lp,{ref:n,label:void 0!==r?o?.label():"",shortcut:void 0!==i?i:Array.isArray(o?.shortcut())?o?.shortcut()[0]:o?.shortcut(),description:o?.description(),disabled:r,chips:o?.tags(),componentDisabled:o?.disabled(),...a,children:t.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:l})})})),Km=n.memo(n.forwardRef((e,o)=>{const{command:r,commandHook:i,scope:l,context:a,icon:s,label:c,disabled:d=!1,variant:u=ic.Toolbar,shortcut:p,commandState:h,tooltipProps:f,...m}=e,g=n.useRef(null),x=n.useRef(!1),y=n.useMemo(()=>{const e={onExecute(e,t){i?.onExecute?.(e,t),x.current||(g.current?.start({center:!1}),setTimeout(()=>g.current?.stop({}),180)),x.current=!1},onError(e,t,n){i?.onError(e,t,n)}};return i?.beforeExecute&&(e.beforeExecute=i.beforeExecute),e},[i]),b=nc(r,y),w=n.useCallback(e=>{0===e.button&&e.preventDefault()},[]),v=n.useCallback(e=>{0===e.button&&r?.execute(h,i)},[b,i,h]),S=n.useCallback(e=>{e.keyCode!==Oa.Enter&&e.keyCode!==Oa.Space||r?.execute(h,i)},[b,i,h]),C=n.useMemo(()=>s||u===ic.Toolbar||r?.state()?"function"==typeof s?s(r):s:Op,[b,s]),k=n.useMemo(()=>({tabIndex:0,ref:o,selected:r?.state(),icon:u===ic.Toolbar?C:t.jsx(Wp,{selected:r?.state()??!1,children:C}),touchRippleRef:g,disabled:d||!r||r.disabled(),onMouseDown:w,onMouseUp:v,onKeyDown:S}),[b,i,d,C]);let E;return E=u===ic.Menuitem?t.jsx(zp,{...m,chips:r?.tags(),...k,children:c??r?.label(l,a)}):t.jsx(Ap,{...m,...k}),c||r?.label()?((r.disabled()||d)&&(E=t.jsx("div",{children:E})),E=t.jsx(Gm,{command:r,placement:u===ic.Toolbar?"bottom-start":"right-start",shortcut:p,...f,children:E}),E):E})),Xm=n.memo(n.forwardRef((e,r)=>{const{command:i,scope:l,icon:a=Op,label:s,variant:c=ic.Toolbar,disabled:d=!1,commandHook:u,...p}=e,h=n.useRef(null),f=n.useRef(!1),m=n.useMemo(()=>{const e={onExecute(e,t){u?.onExecute?.(e,t),f.current||(h.current?.start({center:!1}),setTimeout(()=>h.current?.stop({}),180)),f.current=!1},onError(e,t,n){u?.onError(e,t,n)}};return u?.beforeExecute&&(e.beforeExecute=u.beforeExecute),e},[u]),g=nc(i,m),x=()=>i?.state()?.toString()||"0",[y,b]=n.useState(x),w=$a(()=>{const e=parseFloat(y);isNaN(e)?b(x()):parseFloat(x())!==e&&i.execute(e,u)},[x,i,y,u]);n.useEffect(()=>{b(x())},[i?.state()]);const v=n.useMemo(()=>"function"==typeof a?a(i):a,[g,a]),S=n.useMemo(()=>void 0===s?i?.label(l):"function"==typeof s?s():s,[g]),C=n.useMemo(()=>t.jsx(o.IconButton,{...p,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:e=>e.stopPropagation(),onMouseDown:e=>{0===e.button&&e.stopPropagation()},onMouseUp:e=>{0===e.button&&e.stopPropagation()},children:t.jsx(o.Input,{inputMode:"numeric",disabled:d||!i||i.disabled(),inputProps:{tabIndex:0,name:`input-${i.key()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,width:e=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:y,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===Oa.Enter)x()!==y&&(e.stopPropagation(),e.preventDefault(),w());else if(e.which===Oa.Escape)x()!==y&&(b(x()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault());else{if(e.key.match("[-]"))return e.stopPropagation(),void e.preventDefault();if(e.key.match("[0-9.]")&&(y+e.key).length>4)return e.stopPropagation(),void e.preventDefault();if(e.which===Oa.Space)return void e.preventDefault()}},onBlur:()=>{w()},onChange:e=>{if(e.target.value.length>4)return e.stopPropagation(),void e.preventDefault();b(e.target.value)}})}),[y,d,i]),k={tabIndex:0,ref:r,icon:v,touchRippleRef:h,disabled:d||!i||i.disabled(),onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0!==e.button||e.isPropagationStopped()||e.isDefaultPrevented()||e.isDefaultPrevented()||(e.preventDefault(),i?.execute(!i?.state?.(),m))},onKeyDown:e=>{e.keyCode!==Oa.Enter&&e.keyCode!==Oa.Space||i?.execute(!i?.state?.(),m)}};let E;return E=c===ic.Menuitem?t.jsxs(zp,{...p,chips:i?.tags(),...k,children:[S,C]}):t.jsx(Ap,{...p,...k}),i?.label()?((i.disabled()||d)&&(E=t.jsx("div",{children:E})),E=t.jsx(Gm,{command:i,placement:c===ic.Toolbar?"bottom-start":"right-start",children:E}),E):E})),Ym=n.memo(n.forwardRef((e,o)=>{const{variant:r=ic.Toolbar,quickCommand:i,onQuickClick:l,commands:a,commandState:s,commandHook:c,disabled:d,label:u,icon:p,createPopupPanel:h,tooltip:f,selected:m,scope:g,...x}=e,y=n.useRef(null),b=n.useRef(!1),w=n.useMemo(()=>{const e={onExecute(e,t){c?.onExecute?.(e,t),b.current||(y.current?.start({center:!1}),setTimeout(()=>y.current?.stop({}),180)),b.current=!1},onError(e,t,n){c?.onError(e,t,n)}};return c?.beforeExecute&&(e.beforeExecute=c.beforeExecute),e},[c]),v=rc(a,[i],null,[i]),S=v[0],{label:C,icon:k}=n.useMemo(()=>{let e=null;u&&(e="function"==typeof u?u(S):u),e||(e=S?.label?.(g));let t=null;return p&&(t="function"==typeof p?p(S):p),t||(t=S?.icon?.()),{label:e,icon:t}},[v,u,p]),E={disabled:d,scope:g,touchRippleRef:y,onQuickClick:l,tooltip:f,label:C,icon:k};(C||f)&&(E.createTooltip=({children:e},n)=>t.jsx(Lp,{label:C,description:f,disabled:n,children:e}));const _=$a(e=>h?.(e,a),[h,v]),T=$a(e=>S?.execute(s,w),[S]);return S?(E.quickButtonProps={},E.quickButtonProps.createTooltip=({children:e,placement:n},o)=>t.jsx(Gm,{command:S,placement:n??r===ic.Toolbar?"bottom-start":"right-start",disabled:o,children:e}),E.disabled=E.disabled??S?.disabled(),l||(E.onQuickClick=T)):i&&(E.onQuickClick=()=>{}),E.selected=m??S?.state(),E.createPopupPanel=_,r===ic.Toolbar?t.jsx(Np,{...x,...E,ref:o}):t.jsx(Hp,{...x,...E,ref:o})}));Ym.displayName="CommandPopupButton";const Jm=e=>{const{command:n,label:r,scope:i,icon:l=t.jsx(yr,{}),sx:a,...s}=e;return t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:e=>e.typography.subtitle2.fontSize,...a},...s,children:[l?pa(l):null,t.jsx(o.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:e=>e.spacing(.25),paddingRight:e=>e.spacing(.25),fontSize:"inherit"},children:n?.label(i)||r})]})},Qm=n.memo(n.forwardRef((e,r)=>{const{sx:i,commands:l,commandButtonProps:a,parentFloat:s,createToolbarPalette:c,children:d,...u}=e,p=ks(r,()=>({}),[]),[h,f]=n.useState(null),{reference:m}=Ep({label:"toolbar",anchor:p.current,parentFloat:s,createPopupPanel:null}),g=n.useCallback(()=>{const e=h;e&&requestAnimationFrame(()=>{p.current?.contains(document.activeElement)&&e.focus()})},[]),x=n.useMemo(()=>({dense:!0,outlined:!1}),[]),y=n.useMemo(()=>{const{commandHook:e,...t}=a||{};return{commandHook:{beforeExecute:(t,n)=>{const o=e?.beforeExecute?.(t,n);return!1!==o&&m.closeAll()},onExecute(t,n){e?.onExecute?.(t,n),g()},onError(t,n,o){e?.onError?.(t,n,o)}},...t}},[m,a]),b=n.useMemo(()=>({...x,...y}),[x,y]),[w,v]=n.useReducer(e=>e+1,0);rc(l,[],{onChange:()=>{v()}});const S=n.useMemo(()=>({commands:l,parentFloat:m,...y}),[w,b,m,a]);let C=0;x.dense||(C+=2),x.outlined&&C++;let k=2;x.dense||(k=4);const E=n.useMemo(()=>c({commands:l,commandButtonProps:b,commandPopupProps:{commands:l,...S,...a}}),[w,b,S,c]);return t.jsx(o.Toolbar,{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",...i},ref:p,onFocus:e=>{e.relatedTarget&&!h&&f(e.relatedTarget)},onBlur:e=>{h&&!p?.current?.contains(e.relatedTarget)&&f(null)},onKeyDown:e=>{h&&e.which===Oa.Escape&&h.focus()},...u,children:t.jsx("div",{ref:p,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${k}px`,columnGap:`${C}px`,alignItems:"center",maxWidth:"100%"},children:E})})}));Qm.displayName="CommandToolbar";const eg=e=>{const{key:n,...o}=e;return t.jsx(Km,{...o},n)},tg=n.memo(n.forwardRef((e,o)=>{const{popupCommandKeys:r,renderCommandButton:i=eg,scope:l,commands:a,icon:s,quickCommand:c,popupScope:d=c,commandState:u,commandHook:p,disabled:h=!1,...f}=e,m=rc(a,r?[c,...r]:[c]),g=n.useCallback((e,n)=>{const o={variant:ic.Menuitem,commandHook:p,commandState:u,icon:s,scope:d,disabled:h},l=[];for(let e=0;e<r?.length;e++){const a=r[e];if(null===a||"-"===a){l.push(t.jsx(du,{orientation:"horizontal"},`element-${l.length}`));continue}const s=n.getCommand(a),c={key:`${a}-${l.length}`,command:s,...o},d=i(c);d&&l.push(d)}return cp({...e,children:l})},[h,p,u,d,r,s,i]);return r?t.jsx(Ym,{ref:o,commands:a,disabled:h,commandHook:p,commandState:u,scope:l,quickCommand:c,icon:s,createPopupPanel:g,...f}):i({ref:o,disabled:h,commandHook:p,commandState:u,scope:l,command:m[0],icon:s,...f})})),ng=n.memo(n.forwardRef((e,i)=>{const{commands:l,commandHook:a,scope:s,disabled:c=!1,parentFloat:d,...u}=e,p=Vn(l,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),f=n.useMemo(()=>{for(let e=0;e<p.length;e++)if(p[e]?.state())return p[e].key();return p[0]?.key()},[p]),m=n.useMemo(()=>{const e=new Map;return e.set("formatAlignLeftToggle",pa(t.jsx(r.FormatAlignLeft,{}))),e.set("formatAlignCenterToggle",pa(t.jsx(r.FormatAlignCenter,{}))),e.set("formatAlignRightToggle",pa(t.jsx(r.FormatAlignRight,{}))),e.set("formatAlignJustifyToggle",pa(t.jsx(r.FormatAlignJustify,{}))),e.set("formatAlignCenterContinuousToggle",pa(t.jsx(r.FormatAlignCenter,{}))),e.set("formatAlignFillToggle",pa(t.jsx(r.FormatAlignJustify,{}))),e.set("formatAlignDistributedHorizontalToggle",pa(t.jsx(r.FormatAlignJustify,{}))),e},[]),g=n.useMemo(()=>{if(!a)return null;const e={...a};return delete e.beforeExecute,e},[a]),x=n.useCallback((e,n)=>{const r={variant:Hn.Menuitem,commandHook:a,scope:s,disabled:c},i=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...r,command:n.getCommand("formatAlignLeftToggle"),icon:m.get("formatAlignLeftToggle")}),t.jsx(Km,{...r,command:n.getCommand("formatAlignCenterToggle"),icon:m.get("formatAlignCenterToggle")}),t.jsx(Km,{...r,command:n.getCommand("formatAlignRightToggle"),icon:m.get("formatAlignRightToggle")}),t.jsx(Km,{...r,command:n.getCommand("formatAlignJustifyToggle"),icon:m.get("formatAlignJustifyToggle")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...r,command:n.getCommand("formatAlignCenterContinuousToggle"),icon:m.get("formatAlignCenterContinuousToggle")}),t.jsx(Km,{...r,command:n.getCommand("formatAlignFillToggle"),icon:m.get("formatAlignFillToggle")}),t.jsx(Km,{...r,command:n.getCommand("formatAlignDistributedHorizontalToggle"),icon:m.get("formatAlignDistributedHorizontalToggle")})]}),l=t.jsxs(o.Box,{sx:{className:h("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[t.jsx(Km,{command:n.getCommand("formatIndentDecrease"),commandHook:g,scope:s,disabled:c,icon:pa(t.jsx(Pc,{}))}),t.jsx(Km,{command:n.getCommand("formatIndentIncrease"),commandHook:g,scope:s,disabled:c,icon:pa(t.jsx(Oc,{}))})]}),d=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...u,children:[l,t.jsx(du,{orientation:"horizontal"}),t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})]});return cp({...e,children:d})},[c,a]);return t.jsx(Ym,{ref:i,parentFloat:d,commands:l,commandHook:a,scope:s,createPopupPanel:x,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:f,icon:m.get(f)??t.jsx(r.FormatAlignLeft,{}),...u})})),og=n.memo(n.forwardRef((e,o)=>{const{commands:i,commandHook:l,scope:a,disabled:s=!1,...c}=e,d=Vn(i,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),u=n.useMemo(()=>{for(let e=0;e<d.length;e++)if(d[e]?.state())return d[e].key();return d[0]?.key()},[d]),p=n.useMemo(()=>{const e=new Map;return e.set("formatAlignTopToggle",pa(t.jsx(td,{}))),e.set("formatAlignMiddleToggle",pa(t.jsx(nd,{}))),e.set("formatAlignBottomToggle",pa(t.jsx(od,{}))),e.set("formatAlignJustifyVerticalToggle",pa(t.jsx(r.FormatAlignJustify,{}))),e.set("formatAlignDistributedVerticalToggle",pa(t.jsx(r.FormatAlignJustify,{}))),e},[]),h=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:l,scope:a,disabled:s},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("formatAlignTopToggle"),icon:p.get("formatAlignTopToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatAlignMiddleToggle"),icon:p.get("formatAlignMiddleToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatAlignBottomToggle"),icon:p.get("formatAlignBottomToggle")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("formatAlignJustifyVerticalToggle"),icon:p.get("formatAlignJustifyVerticalToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatAlignDistributedVerticalToggle"),icon:p.get("formatAlignDistributedVerticalToggle")})]});return cp({...e,children:r})},[s,l,p]);return t.jsx(Ym,{ref:o,commands:i,commandHook:l,createPopupPanel:h,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:p.get(u)??pa(t.jsx(od,{})),...c})})),rg=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=Vn(r,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),d=n.useMemo(()=>{for(let e=0;e<c.length;e++)if(c[e]?.state())return c[e].key();return c[0]?.key()},[c]),u=n.useMemo(()=>{const e=new Map;return e.set("formatTextOverflowVisibleToggle",pa(t.jsx(br,{}))),e.set("formatTextOverflowWrapToggle",pa(t.jsx(wr,{}))),e.set("formatTextOverflowClipToggle",pa(t.jsx(vr,{}))),e.set("formatTextOverflowShrinkToggle",pa(t.jsx(Sr,{}))),e},[]),p=nt((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("formatTextOverflowVisibleToggle"),icon:u.get("formatTextOverflowVisibleToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatTextOverflowWrapToggle"),icon:u.get("formatTextOverflowWrapToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatTextOverflowClipToggle"),icon:u.get("formatTextOverflowClipToggle")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("formatTextOverflowShrinkToggle"),icon:u.get("formatTextOverflowShrinkToggle")})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,scope:l,label:"Text Overflow",tooltip:"Configure how text behaves when it doesn't fit within a cell.",createPopupPanel:p,icon:u.get(d)??pa(t.jsx(br,{})),...s})})),ig=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=Vn(r,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),d=n.useMemo(()=>{const e=c.length;for(let t=0;t<e;t++){const e=c[t];if(e?.state())return e.key()}return c[1]?.key()},[c]),u=n.useMemo(()=>{const e=new Map;return e.set("formatTextRotate0",pa(t.jsx(Qc,{}))),e.set("formatTextRotate315",pa(t.jsx(Qc,{}))),e.set("formatTextRotate45",pa(t.jsx(Xc,{}))),e.set("formatTextRotate90",pa(t.jsx(Yc,{}))),e.set("formatTextRotate270",pa(t.jsx(Jc,{}))),e.set("formatTextRotateCustom",pa(t.jsx(ed,{}))),e},[]),p=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("formatTextRotate0"),icon:pa(t.jsx(Kc,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("formatTextRotate315"),icon:pa(t.jsx(Qc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatTextRotate45"),icon:pa(t.jsx(Xc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatTextRotate90"),icon:pa(t.jsx(Yc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatTextRotate270"),icon:pa(t.jsx(Jc,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Xm,{...o,command:n.getCommand("formatTextRotateCustom"),icon:pa(t.jsx(ed,{})),label:"Custom"})]});return cp({...e,children:r})},[a,i,l,r]),h=n.useMemo(()=>0!==(r.getCommand("formatTextRotateCustom")?.state()??0),[c]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,scope:l,selected:h,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:p,quickCommand:h?"formatTextRotate0":"formatTextRotate315",icon:pa(u.get(d)??t.jsx(Qc,{})),...s})}));function lg(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const ag="$$material";function sg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function c(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return{keys:l,values:i,up:a,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...r}}var cg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var dg,ug,pg={exports:{}},hg={};function fg(){if(dg)return hg;dg=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"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case r:case o:case s:case c:case p:return h;default:switch(h=h&&h.$$typeof){case l:case a:case u:case d:case i:return h;default:return f}}case t:return f}}}return hg.ContextConsumer=i,hg.ContextProvider=l,hg.Element=e,hg.ForwardRef=a,hg.Fragment=n,hg.Lazy=u,hg.Memo=d,hg.Portal=t,hg.Profiler=r,hg.StrictMode=o,hg.Suspense=s,hg.SuspenseList=c,hg.isContextConsumer=function(e){return f(e)===i},hg.isContextProvider=function(e){return f(e)===l},hg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},hg.isForwardRef=function(e){return f(e)===a},hg.isFragment=function(e){return f(e)===n},hg.isLazy=function(e){return f(e)===u},hg.isMemo=function(e){return f(e)===d},hg.isPortal=function(e){return f(e)===t},hg.isProfiler=function(e){return f(e)===r},hg.isStrictMode=function(e){return f(e)===o},hg.isSuspense=function(e){return f(e)===s},hg.isSuspenseList=function(e){return f(e)===c},hg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===r||e===o||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===l||e.$$typeof===i||e.$$typeof===a||e.$$typeof===h||void 0!==e.getModuleId)},hg.typeOf=f,hg}function mg(){return ug||(ug=1,pg.exports=fg()),pg.exports}var gg=mg();function xg(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function yg(e){if(u.isValidElement(e)||gg.isValidElementType(e)||!xg(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yg(e[n])}),t}function bg(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return xg(e)&&xg(t)&&Object.keys(t).forEach(r=>{u.isValidElement(t[r])||gg.isValidElementType(t[r])?o[r]=t[r]:xg(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&xg(e[r])?o[r]=bg(e[r],t[r],n):n.clone?o[r]=xg(t[r])?yg(t[r]):t[r]:o[r]=t[r]}),o}function wg(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function vg(e){if(e.type)return e;if("#"===e.charAt(0))return vg(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,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(lg(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(lg(10,o))}else r=r.split(",");return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:o}}const Sg=(e,t)=>{try{return(e=>{const t=vg(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Cg(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function kg(e){e=vg(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Cg({type:a,values:s})}function Eg(e){let t="hsl"===(e=vg(e)).type||"hsla"===e.type?vg(kg(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _g(e,t,n){try{return function(e,t){return e=vg(e),t=wg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Cg(e)}(e,t)}catch(t){return e}}function Tg(e,t){if(e=vg(e),t=wg(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 Cg(e)}function jg(e,t,n){try{return Tg(e,t)}catch(t){return e}}function Mg(e,t){if(e=vg(e),t=wg(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 Cg(e)}function Rg(e,t,n){try{return Mg(e,t)}catch(t){return e}}function Ig(e,t,n){try{return function(e,t=.15){return Eg(e)>.5?Tg(e,t):Mg(e,t)}(e,t)}catch(t){return e}}const Dg={black:"#000",white:"#fff"},Lg={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"},Og="#f3e5f5",Pg="#ce93d8",Ag="#ba68c8",Fg="#ab47bc",zg="#9c27b0",Bg="#7b1fa2",Ng="#e57373",Vg="#ef5350",Hg="#f44336",$g="#d32f2f",Wg="#c62828",Ug="#ffb74d",qg="#ffa726",Zg="#ff9800",Gg="#f57c00",Kg="#e65100",Xg="#e3f2fd",Yg="#90caf9",Jg="#42a5f5",Qg="#1976d2",ex="#1565c0",tx="#4fc3f7",nx="#29b6f6",ox="#03a9f4",rx="#0288d1",ix="#01579b",lx="#81c784",ax="#66bb6a",sx="#4caf50",cx="#388e3c",dx="#2e7d32",ux="#1b5e20";function px(){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:Dg.white,default:Dg.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 hx=px();function fx(){return{text:{primary:Dg.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:Dg.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 mx=fx();function gx(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Mg(e.main,r):"dark"===t&&(e.dark=Tg(e.main,i)))}function xx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Yg,light:Xg,dark:Jg}:{main:Qg,light:Jg,dark:ex}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:Pg,light:Og,dark:Fg}:{main:zg,light:Ag,dark:Bg}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Hg,light:Ng,dark:$g}:{main:$g,light:Vg,dark:Wg}}(t),s=e.info||function(e="light"){return"dark"===e?{main:nx,light:tx,dark:rx}:{main:rx,light:ox,dark:ix}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ax,light:lx,dark:cx}:{main:dx,light:sx,dark:ux}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:qg,light:Ug,dark:Gg}:{main:"#ed6c02",light:Zg,dark:Kg}}(t);function u(e){const t=function(e,t){const n=Eg(e),o=Eg(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}(e,mx.text.primary)>=n?mx.text.primary:hx.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(lg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(lg(12,t?` (${t})`:"",JSON.stringify(e.main)));return gx(e,"light",r,o),gx(e,"dark",i,o),e.contrastText||(e.contrastText=u(e.main)),e};let h;"light"===t?h=px():"dark"===t&&(h=fx());return bg({common:{...Dg},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:Lg,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:o,...h},r)}var yx,bx,wx,vx,Sx,Cx={exports:{}};function kx(){if(bx)return yx;bx=1;return yx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ex(){if(vx)return wx;vx=1;var e=kx();function t(){}function n(){}return n.resetWarningCache=t,wx=function(){function o(t,n,o,r,i,l){if(l!==e){var a=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 a.name="Invariant Violation",a}}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},wx}function _x(){return Sx||(Sx=1,Cx.exports=Ex()()),Cx.exports}function Tx(e,t){return t?bg(e,t,{clone:!1}):e}function jx(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const o=t[n];return delete e[n],e[n]=o,e},{...t}):t}const Mx={xs:0,sm:600,md:900,lg:1200,xl:1536},Rx={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mx[e]}px)`},Ix={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Mx[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dx(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Rx;return t.reduce((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o),{})}if("object"==typeof t){const e=o.breakpoints||Rx;return Object.keys(t).reduce((r,i)=>{if(l=e.keys,"@"===(a=i)||a.startsWith("@")&&(l.some(e=>a.startsWith(`@${e}`))||a.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}(o.containerQueries?o:Ix,i);e&&(r[e]=n(t[i],i))}else if(Object.keys(e.values||Mx).includes(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}var l,a;return r},{})}return n(t)}function Lx(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Ox(e){if("string"!=typeof e)throw new Error(lg(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Px(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ax(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:Px(e,n)||o,t&&(r=t(r,o,e)),r}function Fx(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=Px(e.theme,o)||{};return Dx(e,i,e=>{let o=Ax(l,r,e);return e===o&&"string"==typeof e&&(o=Ax(l,r,`${t}${"default"===e?"":Ox(e)}`,e)),!1===n?o:{[n]:o}})};return i.propTypes={},i.filterProps=[t],i}const zx={m:"margin",p:"padding"},Bx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vx=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Nx[e])return[e];e=Nx[e]}const[t,n]=e.split(""),o=zx[t],r=Bx[n]||"";return Array.isArray(r)?r.map(e=>o+e):[o+r]}),Hx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$x=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wx(e,t,n,o){const r=Px(e,t,!0)??n;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:"string"==typeof r?`calc(${e} * ${r})`:r*e:Array.isArray(r)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=r[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof r?r:()=>{}}function Ux(e){return Wx(e,"spacing",8)}function qx(e,t){return"string"==typeof t||null==t?t:e(t)}function Zx(e,t,n,o){if(!t.includes(n))return null;const r=function(e,t){return n=>e.reduce((e,o)=>(e[o]=qx(t,n),e),{})}(Vx(n),o);return Dx(e,e[n],r)}function Gx(e,t){const n=Ux(e.theme);return Object.keys(e).map(o=>Zx(e,t,o,n)).reduce(Tx,{})}function Kx(e){return Gx(e,Hx)}function Xx(e){return Gx(e,$x)}Kx.propTypes={},Kx.filterProps=Hx,Xx.propTypes={},Xx.filterProps=$x;const Yx={borderRadius:4};function Jx(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,o)=>t[o]?Tx(n,t[o](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Qx(e){return"number"!=typeof e?e:`${e}px solid`}function ey(e,t){return Fx({prop:e,themeKey:"borders",transform:t})}const ty=ey("border",Qx),ny=ey("borderTop",Qx),oy=ey("borderRight",Qx),ry=ey("borderBottom",Qx),iy=ey("borderLeft",Qx),ly=ey("borderColor"),ay=ey("borderTopColor"),sy=ey("borderRightColor"),cy=ey("borderBottomColor"),dy=ey("borderLeftColor"),uy=ey("outline",Qx),py=ey("outlineColor"),hy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wx(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:qx(t,e)});return Dx(e,e.borderRadius,n)}return null};hy.propTypes={},hy.filterProps=["borderRadius"],Jx(ty,ny,oy,ry,iy,ly,ay,sy,cy,dy,hy,uy,py);const fy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wx(e.theme,"spacing",8),n=e=>({gap:qx(t,e)});return Dx(e,e.gap,n)}return null};fy.propTypes={},fy.filterProps=["gap"];const my=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wx(e.theme,"spacing",8),n=e=>({columnGap:qx(t,e)});return Dx(e,e.columnGap,n)}return null};my.propTypes={},my.filterProps=["columnGap"];const gy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wx(e.theme,"spacing",8),n=e=>({rowGap:qx(t,e)});return Dx(e,e.rowGap,n)}return null};gy.propTypes={},gy.filterProps=["rowGap"];function xy(e,t){return"grey"===t?t:e}Jx(fy,my,gy,Fx({prop:"gridColumn"}),Fx({prop:"gridRow"}),Fx({prop:"gridAutoFlow"}),Fx({prop:"gridAutoColumns"}),Fx({prop:"gridAutoRows"}),Fx({prop:"gridTemplateColumns"}),Fx({prop:"gridTemplateRows"}),Fx({prop:"gridTemplateAreas"}),Fx({prop:"gridArea"}));function yy(e){return e<=1&&0!==e?100*e+"%":e}Jx(Fx({prop:"color",themeKey:"palette",transform:xy}),Fx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xy}),Fx({prop:"backgroundColor",themeKey:"palette",transform:xy}));const by=Fx({prop:"width",transform:yy}),wy=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Mx[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:yy(t)}};return Dx(e,e.maxWidth,t)}return null};wy.filterProps=["maxWidth"];const vy=Fx({prop:"minWidth",transform:yy}),Sy=Fx({prop:"height",transform:yy}),Cy=Fx({prop:"maxHeight",transform:yy}),ky=Fx({prop:"minHeight",transform:yy});Fx({prop:"size",cssProperty:"width",transform:yy}),Fx({prop:"size",cssProperty:"height",transform:yy});Jx(by,wy,vy,Sy,Cy,ky,Fx({prop:"boxSizing"}));const Ey={border:{themeKey:"borders",transform:Qx},borderTop:{themeKey:"borders",transform:Qx},borderRight:{themeKey:"borders",transform:Qx},borderBottom:{themeKey:"borders",transform:Qx},borderLeft:{themeKey:"borders",transform:Qx},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qx},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hy},color:{themeKey:"palette",transform:xy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xy},backgroundColor:{themeKey:"palette",transform:xy},p:{style:Xx},pt:{style:Xx},pr:{style:Xx},pb:{style:Xx},pl:{style:Xx},px:{style:Xx},py:{style:Xx},padding:{style:Xx},paddingTop:{style:Xx},paddingRight:{style:Xx},paddingBottom:{style:Xx},paddingLeft:{style:Xx},paddingX:{style:Xx},paddingY:{style:Xx},paddingInline:{style:Xx},paddingInlineStart:{style:Xx},paddingInlineEnd:{style:Xx},paddingBlock:{style:Xx},paddingBlockStart:{style:Xx},paddingBlockEnd:{style:Xx},m:{style:Kx},mt:{style:Kx},mr:{style:Kx},mb:{style:Kx},ml:{style:Kx},mx:{style:Kx},my:{style:Kx},margin:{style:Kx},marginTop:{style:Kx},marginRight:{style:Kx},marginBottom:{style:Kx},marginLeft:{style:Kx},marginX:{style:Kx},marginY:{style:Kx},marginInline:{style:Kx},marginInlineStart:{style:Kx},marginInlineEnd:{style:Kx},marginBlock:{style:Kx},marginBlockStart:{style:Kx},marginBlockEnd:{style:Kx},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:fy},rowGap:{style:gy},columnGap:{style:my},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yy},maxWidth:{style:wy},minWidth:{transform:yy},height:{transform:yy},maxHeight:{transform:yy},minHeight:{transform:yy},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"}};const _y=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const d=Px(n,a)||{};if(c)return c(r);return Dx(r,t,t=>{let n=Ax(d,s,t);return t===n&&"string"==typeof t&&(n=Ax(d,s,`${e}${"default"===t?"":Ox(t)}`,t)),!1===l?n:{[l]:n}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??Ey;function a(n){let o=n;if("function"==typeof n)o=n(r);else if("object"!=typeof n)return n;if(!o)return null;const a=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(r.breakpoints),s=Object.keys(a);let c=a;return Object.keys(o).forEach(n=>{const i=(a=o[n],s=r,"function"==typeof a?a(s):a);var a,s;if(null!=i)if("object"==typeof i)if(l[n])c=Tx(c,e(n,i,r,l));else{const e=Dx({theme:r},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=Tx(c,e):c[n]=t({sx:i,theme:r,nested:!0})}else c=Tx(c,e(n,i,r,l))}),!i&&r.modularCssLayers?{"@layer sx":jx(r,Lx(s,c))}:jx(r,Lx(s,c))}return Array.isArray(o)?o.map(a):a(o)}}();function Ty(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)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 jy(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,a=sg(n),s=function(e=8,t=Ux({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(r);let c=bg({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...Yx,...i}},l);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,o){n.up=(...n)=>t(e.breakpoints.up(...n),o),n.down=(...n)=>t(e.breakpoints.down(...n),o),n.between=(...n)=>t(e.breakpoints.between(...n),o),n.only=(...n)=>t(e.breakpoints.only(...n),o),n.not=(...n)=>{const r=t(e.breakpoints.not(...n),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(n(o,e),o);return n(r),{...e,containerQueries:r}}(c),c.applyStyles=Ty,c=t.reduce((e,t)=>bg(e,t),c),c.unstable_sxConfig={...Ey,...l?.unstable_sxConfig},c.unstable_sx=function(e){return _y({sx:e,theme:this})},c}_y.filterProps=["sx"];const My=(e,t,n,o=[])=>{let r=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(r)?r[Number(e)]=n:r&&"object"==typeof r&&(r[e]=n):r&&"object"==typeof r&&(r[e]||(r[e]=o.includes(e)?[]:{}),r=r[e])})};function Ry(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var a,s;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(r,{[o]:s}),My(i,e,`var(${o})`,a),My(l,e,`var(${o}, ${s})`,a)}},s=e=>"vars"===e[0],function e(t,n=[],o=[]){Object.entries(t).forEach(([t,r])=>{(!s||s&&!s([...n,t]))&&null!=r&&("object"==typeof r&&Object.keys(r).length>0?e(r,[...n,t],Array.isArray(r)?[...o,t]:o):a([...n,t],r,o))})}(e),{css:r,vars:i,varsWithDefaults:l}}function Iy(e){const t={};return Object.entries(e).forEach(e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Dy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}const Ly={textTransform:"uppercase"},Oy='"Roboto", "Helvetica", "Arial", sans-serif';function Py(e,t){const{fontFamily:n=Oy,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,p=o/14,h=d||(e=>e/s*p+"rem"),f=(e,t,o,r,i)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:o,...n===Oy?{letterSpacing:(l=r/t,Math.round(1e5*l)/1e5)+"em"}:{},...i,...c};var l},m={h1:f(r,96,1.167,-1.5),h2:f(r,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(l,14,1.75,.4,Ly),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Ly),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bg({htmlFontSize:s,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...m},u,{clone:!1})}function Ay(...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 Fy=["none",Ay(0,2,1,-1,0,1,1,0,0,1,3,0),Ay(0,3,1,-2,0,2,2,0,0,1,5,0),Ay(0,3,3,-2,0,3,4,0,0,1,8,0),Ay(0,2,4,-1,0,4,5,0,0,1,10,0),Ay(0,3,5,-1,0,5,8,0,0,1,14,0),Ay(0,3,5,-1,0,6,10,0,0,1,18,0),Ay(0,4,5,-2,0,7,10,1,0,2,16,1),Ay(0,5,5,-3,0,8,10,1,0,3,14,2),Ay(0,5,6,-3,0,9,12,1,0,3,16,2),Ay(0,6,6,-3,0,10,14,1,0,4,18,3),Ay(0,6,7,-4,0,11,15,1,0,4,20,3),Ay(0,7,8,-4,0,12,17,2,0,5,22,4),Ay(0,7,8,-4,0,13,19,2,0,5,24,4),Ay(0,7,9,-4,0,14,21,2,0,5,26,4),Ay(0,8,9,-5,0,15,22,2,0,6,28,5),Ay(0,8,10,-5,0,16,24,2,0,6,30,5),Ay(0,8,11,-5,0,17,26,2,0,6,32,5),Ay(0,9,11,-5,0,18,28,2,0,7,34,6),Ay(0,9,12,-6,0,19,29,2,0,7,36,6),Ay(0,10,13,-6,0,20,31,3,0,8,38,7),Ay(0,10,13,-6,0,21,33,3,0,8,40,7),Ay(0,10,14,-6,0,22,35,3,0,8,42,7),Ay(0,11,14,-7,0,23,36,3,0,9,44,8),Ay(0,11,15,-7,0,24,38,3,0,9,46,8)],zy={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)"},By={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ny(e){return`${Math.round(e)}ms`}function Vy(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Hy(e){const t={...zy,...e.easing},n={...By,...e.duration};return{getAutoHeightDuration:Vy,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0,...a}=o;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof r?r:Ny(r)} ${i} ${"string"==typeof l?l:Ny(l)}`).join(",")},...e,easing:t,duration:n}}const $y={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Wy(e){return xg(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Uy(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[r,i]=n[o];!Wy(i)||r.startsWith("unstable_")?delete t[r]:xg(i)&&(t[r]={...i},e(t[r]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function qy(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:a={},shape:s,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(lg(20));const d=xx(i),u=jy(e);let p=bg(u,{mixins:Dy(u.breakpoints,o),palette:d,shadows:Fy.slice(),typography:Py(d,a),transitions:Hy(l),zIndex:{...$y}});return p=bg(p,c),p=t.reduce((e,t)=>bg(e,t),p),p.unstable_sxConfig={...Ey,...c?.unstable_sxConfig},p.unstable_sx=function(e){return _y({sx:e,theme:this})},p.toRuntimeSource=Uy,p}function Zy(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Gy=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Zy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ky(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Xy(e){return"dark"===e?Gy:[]}function Yy(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Jy=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if("class"===r&&(i=".%s"),"data"===r&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const r={};return(l=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${l?`${l}-`:""}overlays-${t}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(e=>{r[e]=n[e],delete n[e]}),"media"===i?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:r}}:i?{[i.replace("%s",t)]:r,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...r}}}if(i&&"media"!==i)return`${o}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function Qy(e,t,n){!e[t]&&n&&(e[t]=n)}function eb(e){return"string"==typeof e&&e.startsWith("hsl")?kg(e):e}function tb(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Sg(eb(e[t])))}const nb=e=>{try{return e()}catch(e){}};function ob(e,t,n,o){if(!t)return;t=!0===t?{}:t;const r="dark"===o?"dark":"light";if(!n)return void(e[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=xx(t);return{palette:i,opacity:{...Ky(i.mode),...n},overlays:o||Xy(i.mode),...r}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=qy({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Ky(r),...t?.opacity},overlays:t?.overlays||Xy(r)},l}function rb(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=Yy,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...d}=e,u=Object.keys(n)[0],p=o||(n.light&&"light"!==u?"light":u),h=((e="mui")=>a.unstable_createGetCssVar(e))(i),{[p]:f,light:m,dark:g,...x}=n,y={...x};let b=f;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(b=!0),!b)throw new Error(lg(21,p));const w=ob(y,b,d,p);m&&!y.light&&ob(y,m,void 0,"light"),g&&!y.dark&&ob(y,g,void 0,"dark");let v={defaultColorScheme:p,...w,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:c,getCssVar:h,colorSchemes:y,font:{...Iy(w.typography),...w.font},spacing:(S=d.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(v.colorSchemes).forEach(e=>{const t=v.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],r=n[2];return h(e,t[o][r])};var o;if("light"===t.mode&&(Qy(t.common,"background","#fff"),Qy(t.common,"onBackground","#000")),"dark"===t.mode&&(Qy(t.common,"background","#000"),Qy(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Qy(t.Alert,"errorColor",jg(t.error.light,.6)),Qy(t.Alert,"infoColor",jg(t.info.light,.6)),Qy(t.Alert,"successColor",jg(t.success.light,.6)),Qy(t.Alert,"warningColor",jg(t.warning.light,.6)),Qy(t.Alert,"errorFilledBg",n("palette-error-main")),Qy(t.Alert,"infoFilledBg",n("palette-info-main")),Qy(t.Alert,"successFilledBg",n("palette-success-main")),Qy(t.Alert,"warningFilledBg",n("palette-warning-main")),Qy(t.Alert,"errorFilledColor",nb(()=>t.getContrastText(t.error.main))),Qy(t.Alert,"infoFilledColor",nb(()=>t.getContrastText(t.info.main))),Qy(t.Alert,"successFilledColor",nb(()=>t.getContrastText(t.success.main))),Qy(t.Alert,"warningFilledColor",nb(()=>t.getContrastText(t.warning.main))),Qy(t.Alert,"errorStandardBg",Rg(t.error.light,.9)),Qy(t.Alert,"infoStandardBg",Rg(t.info.light,.9)),Qy(t.Alert,"successStandardBg",Rg(t.success.light,.9)),Qy(t.Alert,"warningStandardBg",Rg(t.warning.light,.9)),Qy(t.Alert,"errorIconColor",n("palette-error-main")),Qy(t.Alert,"infoIconColor",n("palette-info-main")),Qy(t.Alert,"successIconColor",n("palette-success-main")),Qy(t.Alert,"warningIconColor",n("palette-warning-main")),Qy(t.AppBar,"defaultBg",n("palette-grey-100")),Qy(t.Avatar,"defaultBg",n("palette-grey-400")),Qy(t.Button,"inheritContainedBg",n("palette-grey-300")),Qy(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Qy(t.Chip,"defaultBorder",n("palette-grey-400")),Qy(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Qy(t.Chip,"defaultIconColor",n("palette-grey-700")),Qy(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qy(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qy(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qy(t.LinearProgress,"primaryBg",Rg(t.primary.main,.62)),Qy(t.LinearProgress,"secondaryBg",Rg(t.secondary.main,.62)),Qy(t.LinearProgress,"errorBg",Rg(t.error.main,.62)),Qy(t.LinearProgress,"infoBg",Rg(t.info.main,.62)),Qy(t.LinearProgress,"successBg",Rg(t.success.main,.62)),Qy(t.LinearProgress,"warningBg",Rg(t.warning.main,.62)),Qy(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Qy(t.Slider,"primaryTrack",Rg(t.primary.main,.62)),Qy(t.Slider,"secondaryTrack",Rg(t.secondary.main,.62)),Qy(t.Slider,"errorTrack",Rg(t.error.main,.62)),Qy(t.Slider,"infoTrack",Rg(t.info.main,.62)),Qy(t.Slider,"successTrack",Rg(t.success.main,.62)),Qy(t.Slider,"warningTrack",Rg(t.warning.main,.62));const e=Ig(t.background.default,.8);Qy(t.SnackbarContent,"bg",e),Qy(t.SnackbarContent,"color",nb(()=>t.getContrastText(e))),Qy(t.SpeedDialAction,"fabHoverBg",Ig(t.background.paper,.15)),Qy(t.StepConnector,"border",n("palette-grey-400")),Qy(t.StepContent,"border",n("palette-grey-400")),Qy(t.Switch,"defaultColor",n("palette-common-white")),Qy(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Qy(t.Switch,"primaryDisabledColor",Rg(t.primary.main,.62)),Qy(t.Switch,"secondaryDisabledColor",Rg(t.secondary.main,.62)),Qy(t.Switch,"errorDisabledColor",Rg(t.error.main,.62)),Qy(t.Switch,"infoDisabledColor",Rg(t.info.main,.62)),Qy(t.Switch,"successDisabledColor",Rg(t.success.main,.62)),Qy(t.Switch,"warningDisabledColor",Rg(t.warning.main,.62)),Qy(t.TableCell,"border",Rg(_g(t.divider,1),.88)),Qy(t.Tooltip,"bg",_g(t.grey[700],.92))}if("dark"===t.mode){Qy(t.Alert,"errorColor",Rg(t.error.light,.6)),Qy(t.Alert,"infoColor",Rg(t.info.light,.6)),Qy(t.Alert,"successColor",Rg(t.success.light,.6)),Qy(t.Alert,"warningColor",Rg(t.warning.light,.6)),Qy(t.Alert,"errorFilledBg",n("palette-error-dark")),Qy(t.Alert,"infoFilledBg",n("palette-info-dark")),Qy(t.Alert,"successFilledBg",n("palette-success-dark")),Qy(t.Alert,"warningFilledBg",n("palette-warning-dark")),Qy(t.Alert,"errorFilledColor",nb(()=>t.getContrastText(t.error.dark))),Qy(t.Alert,"infoFilledColor",nb(()=>t.getContrastText(t.info.dark))),Qy(t.Alert,"successFilledColor",nb(()=>t.getContrastText(t.success.dark))),Qy(t.Alert,"warningFilledColor",nb(()=>t.getContrastText(t.warning.dark))),Qy(t.Alert,"errorStandardBg",jg(t.error.light,.9)),Qy(t.Alert,"infoStandardBg",jg(t.info.light,.9)),Qy(t.Alert,"successStandardBg",jg(t.success.light,.9)),Qy(t.Alert,"warningStandardBg",jg(t.warning.light,.9)),Qy(t.Alert,"errorIconColor",n("palette-error-main")),Qy(t.Alert,"infoIconColor",n("palette-info-main")),Qy(t.Alert,"successIconColor",n("palette-success-main")),Qy(t.Alert,"warningIconColor",n("palette-warning-main")),Qy(t.AppBar,"defaultBg",n("palette-grey-900")),Qy(t.AppBar,"darkBg",n("palette-background-paper")),Qy(t.AppBar,"darkColor",n("palette-text-primary")),Qy(t.Avatar,"defaultBg",n("palette-grey-600")),Qy(t.Button,"inheritContainedBg",n("palette-grey-800")),Qy(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Qy(t.Chip,"defaultBorder",n("palette-grey-700")),Qy(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Qy(t.Chip,"defaultIconColor",n("palette-grey-300")),Qy(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qy(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qy(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qy(t.LinearProgress,"primaryBg",jg(t.primary.main,.5)),Qy(t.LinearProgress,"secondaryBg",jg(t.secondary.main,.5)),Qy(t.LinearProgress,"errorBg",jg(t.error.main,.5)),Qy(t.LinearProgress,"infoBg",jg(t.info.main,.5)),Qy(t.LinearProgress,"successBg",jg(t.success.main,.5)),Qy(t.LinearProgress,"warningBg",jg(t.warning.main,.5)),Qy(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Qy(t.Slider,"primaryTrack",jg(t.primary.main,.5)),Qy(t.Slider,"secondaryTrack",jg(t.secondary.main,.5)),Qy(t.Slider,"errorTrack",jg(t.error.main,.5)),Qy(t.Slider,"infoTrack",jg(t.info.main,.5)),Qy(t.Slider,"successTrack",jg(t.success.main,.5)),Qy(t.Slider,"warningTrack",jg(t.warning.main,.5));const e=Ig(t.background.default,.98);Qy(t.SnackbarContent,"bg",e),Qy(t.SnackbarContent,"color",nb(()=>t.getContrastText(e))),Qy(t.SpeedDialAction,"fabHoverBg",Ig(t.background.paper,.15)),Qy(t.StepConnector,"border",n("palette-grey-600")),Qy(t.StepContent,"border",n("palette-grey-600")),Qy(t.Switch,"defaultColor",n("palette-grey-300")),Qy(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Qy(t.Switch,"primaryDisabledColor",jg(t.primary.main,.55)),Qy(t.Switch,"secondaryDisabledColor",jg(t.secondary.main,.55)),Qy(t.Switch,"errorDisabledColor",jg(t.error.main,.55)),Qy(t.Switch,"infoDisabledColor",jg(t.info.main,.55)),Qy(t.Switch,"successDisabledColor",jg(t.success.main,.55)),Qy(t.Switch,"warningDisabledColor",jg(t.warning.main,.55)),Qy(t.TableCell,"border",jg(_g(t.divider,1),.68)),Qy(t.Tooltip,"bg",_g(t.grey[700],.92))}tb(t.background,"default"),tb(t.background,"paper"),tb(t.common,"background"),tb(t.common,"onBackground"),tb(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Qy(t[e],"mainChannel",Sg(eb(n.main))),n.light&&Qy(t[e],"lightChannel",Sg(eb(n.light))),n.dark&&Qy(t[e],"darkChannel",Sg(eb(n.dark))),n.contrastText&&Qy(t[e],"contrastTextChannel",Sg(eb(n.contrastText))),"text"===e&&(tb(t[e],"primary"),tb(t[e],"secondary")),"action"===e&&(n.active&&tb(t[e],"active"),n.selected&&tb(t[e],"selected")))})}),v=t.reduce((e,t)=>bg(e,t),v);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:Jy(v)},{vars:k,generateThemeVars:E,generateStyleSheets:_}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:l,defaultColorScheme:a="light",...s}=e,{vars:c,css:d,varsWithDefaults:u}=Ry(s,t);let p=u;const h={},{[a]:f,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:o,css:r,varsWithDefaults:i}=Ry(n,t);p=bg(p,i),h[e]={css:r,vars:o}}),f){const{css:e,vars:n,varsWithDefaults:o}=Ry(f,t);p=bg(p,o),h[a]={css:e,vars:n}}function g(t,n){let o=r;if("class"===r&&(o=".%s"),"data"===r&&(o="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=bg(e,t)}),e},generateStyleSheets:()=>{const t=[],r=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[r]:a,...s}=h;if(a){const{css:e}=a,t=i[r]?.palette?.mode,s=!o&&t?{colorScheme:t,...e}:{...e};l(n(r,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{const r=i[e]?.palette?.mode,a=!o&&r?{colorScheme:r,...t}:{...t};l(n(e,{...a}),a)}),t}}}(v,C);return v.vars=k,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([e,t])=>{v[e]=t}),v.generateThemeVars=E,v.generateStyleSheets=_,v.generateSpacing=function(){return a.createSpacing(d.spacing,Ux(this))},v.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=l,v.unstable_sxConfig={...Ey,...d?.unstable_sxConfig},v.unstable_sx=function(e){return _y({sx:e,theme:this})},v.toRuntimeSource=Uy,v}function ib(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:xx({...!0===n?{}:n.palette,mode:t})})}function lb(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...l}=e,a=i||"light",s=r?.[a],c={...r,...n?{[a]:{..."boolean"!=typeof s&&s,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return qy(e,...t);let o=n;"palette"in e||c[a]&&(!0!==c[a]?o=c[a].palette:"dark"===a&&(o={mode:"dark"}));const r=qy({...e,palette:o},...t);return r.defaultColorScheme=a,r.colorSchemes=c,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==c.light&&c.light,palette:r.palette},ib(r,"dark",c.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:r.palette},ib(r,"light",c.light)),r}return n||"light"in c||"light"!==a||(c.light=!0),rb({...l,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof o&&o},...t)}const ab=lb();function sb(){const e=a.useTheme(ab);return e[ag]||e}function cb({theme:e,...n}){const o=ag in e?e[ag]:void 0;return t.jsx(a.ThemeProvider,{...n,themeId:o?ag:void 0,theme:o||e})}const db="mui-color-scheme",ub="light",pb="dark",hb="mui-mode",{CssVarsProvider:fb,useColorScheme:mb,getInitColorSchemeScript:gb}=a.unstable_createCssVarsProvider({themeId:ag,theme:()=>lb({cssVariables:!0}),colorSchemeStorageKey:db,modeStorageKey:hb,defaultColorScheme:{light:ub,dark:pb},resolveTheme:e=>{const t={...e,typography:Py(e.palette,e.typography)};return t.unstable_sx=function(e){return _y({sx:e,theme:this})},t}}),xb=fb;function yb({theme:e,...n}){const o=u.useMemo(()=>{if("function"==typeof e)return e;const t=ag in e?e[ag]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return o?t.jsx(cb,{theme:o,...n}):t.jsx(xb,{theme:e,...n})}!function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n\n._sheetxl-grid_h9wwa_7 {\n position: relative;\n box-sizing: border-box;\n user-select: none;\n}\n\n._sheetxl-grid_h9wwa_7 * {\n box-sizing: border-box !important;\n}\n\n._sheetxl-grid_h9wwa_7 *:focus {\n outline: none;\n}\n\n/*\n.sheetxl-grid :global(.view) > * {\n pointer-events: auto;\n}\n*/\n\n._sheetxl-grid_h9wwa_7 .cell-container {\n position: absolute;\n overflow: visible;\n white-space: pre;\n /* overflow: hidden; */\n /* This is supposed to make rendering faster but instead it is making it blurry */\n /* will-change: transform; */\n}\n\n._sheetxl-grid_h9wwa_7 .cell-container > * {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n}\n\n\n._sheetxl-grid_h9wwa_7 .sheetxl-stage {\n contain: strict;\n}\n._sheetxl-grid_h9wwa_7 .sheetxl-stage > * {\n contain: strict;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const bb="up",wb="down",vb="left",Sb="right",Cb="tl",kb="t",Eb="l",_b="c",Tb="text/html",jb="text/plain",Mb="image/png",Rb=Object.freeze({left:0,top:0}),Ib=Object.freeze({left:0,top:0,bottom:0,right:0}),Db=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Db,EmptyRect:Ib,EmptyTopLeft:Rb},Symbol.toStringTag,{value:"Module"}));const Lb="column",Ob="row",Pb=Object.freeze({colIndex:0,rowIndex:0}),Ab=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),Fb=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,zb=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Bb=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Nb=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,Vb=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,Hb=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,$b=(e=Ob,t=!1)=>t?e!==Lb?Bb:Nb:e!==Lb?zb:Fb,Wb=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Ub=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,qb=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),Zb=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ub(e[n],t[n]))return!1;return!0},Gb=(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),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},Kb=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];qb(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},Xb=[null,null],Yb=(e,t,n)=>{if(e[0].value===e[1].value)return t};function Jb(e,t=2,n,o=Ob,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===Lb,a=0,s=!1;do{const e=i.sort($b(l?Ob:Lb));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&p===t.rowStart&&f===t.rowEnd&&h+1===t.colStart:d&&u===t.colStart&&h===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:p,colEnd:l?t.colEnd:h,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,p=d.rowStart,h=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}const Qb=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:Pb,EmptyRange:Ab,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:Vb,columnFirstRangeComparator:Fb,createCellComparator:(e=Ob,t=!1)=>t?e!==Lb?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==Lb?Hb:Vb,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const p=t?a:s,h=t?s:a;o={colStart:p,rowStart:h,colEnd:p,rowEnd:h},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?Jb(n,3,!0===e?Yb:e,t?Lb:Ob,Xb):n)}},createRangeComparator:$b,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:Kb,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!Ub(n,o);)o=n,n=Kb(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(qb(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(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),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:Wb,isEqualRanges:Ub,isEqualRangesArrays:Zb,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Wb(e.cell,t.cell)&&Zb(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:qb,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:Jb,rowFirstCellComparator:Hb,rowFirstRangeComparator:zb,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:Gb,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=Gb(o,e[t],n);return t&&(o=Gb(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),ew="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tw(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===ew}(e)}(e)}function nw(e,t){return!1!==t.clone&&t.isMergeableObject(e)?lw((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ow(e,t,n){return e.concat(t).map(function(e){return nw(e,n)})}function rw(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function iw(e,t){try{return t in e}catch(e){return!1}}function lw(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ow,n.isMergeableObject=n.isMergeableObject||tw,n.cloneUnlessOtherwiseSpecified=nw;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&rw(e).forEach(function(t){o[t]=nw(e[t],n)}),rw(t).forEach(function(r){(function(e,t){return iw(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(iw(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return lw;const n=t.customMerge(e);return"function"==typeof n?n:lw}(r,n)(e[r],t[r],n):o[r]=nw(t[r],n))}),o}(e,t,n):nw(t,n)}lw.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return lw(e,n,t)},{})};const aw=Object.freeze([]),sw=Object.freeze({}),cw=e=>e,dw=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),uw=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),pw=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,hw=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?hw(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),fw=(e,t)=>!(e!==t&&!uw(e,t)&&!e.isEqual?.(t)),mw=(e,t,n=fw)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===mw(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},gw="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),xw=e=>null==e,yw=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),bw=!("undefined"==typeof window||!window.document||!window.document.createElement),ww={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},vw=()=>{if(Sw())return ww.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?ww.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?ww.MacOS:/(iphone|ipad|ipod)/i.test(e)?ww.IOS:/android/.test(e)?ww.Android:/linux/.test(e)?ww.Linux:/^((?!chrome|android|).)*safari/i.test(e)?ww.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?ww.Firefox:ww.Unknown:ww.Unknown};function Sw(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const Cw=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),kw=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:aw,EmptyObject:sw,OSType:ww,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=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:bw,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>xw(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,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){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;0!==r--;)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;0!==r--;)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;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:lw,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=cw){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=cw){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>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"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!pw(r))return r;o=r}return o??null},getOS:vw,hasFocus:Cw,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:uw,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:Sw,isNullOrUndefined:xw,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:pw,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:yw,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!pw(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=lw(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!bw)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(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:hw,removeEqualValues:mw,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=gw(),o={id:requestAnimationFrame(function r(){gw()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!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 e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!pw(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!pw(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,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);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(!yw(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})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),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(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&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 e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:dw,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=>{Cw(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 Ew=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},_w=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Ew,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:_w},Symbol.toStringTag,{value:"Module"}));const Tw="data:image/png;base64,",jw="Unable to resolve image.",Mw=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(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(jw)}),Rw="image/svg+xml";var Iw,Dw;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Tw,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 e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(jw)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await Mw(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:Rw})),i=await Mw(r);n={mimeType:t??Rw,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===Rw?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"})),(Dw=Iw||(Iw={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,Dw.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};const Lw="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Ow="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",Pw={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:Ow,PermsWrite:vw()===ww.Safari?Lw:Ow,PermsRead:vw()===ww.Safari?Lw:Ow},Aw=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Fw=async(e,t,n)=>{if(vw()===ww.Safari)return await n(new Error(Pw.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},zw=async e=>{try{return await e.read({unsanitized:[Tb]})}catch(e){}return await e.read()};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const Bw=async(e,t=Tb)=>new Promise(async(n,o)=>{try{const o=await(async(e,t)=>{if(!e)return null;const n=await zw(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null})(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),Nw=async(e,t=Tb)=>{const n=await Bw(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,Tb)}catch(e){console.warn("Can't parse html from clipboard.")}return o},Vw="clipboard-uuid",Hw="web text/uuid",$w=e=>`<div style="display:none" ${Vw}="${e}"/>`,Ww=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,Tb);o.body.firstElementChild.setAttribute(Vw,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},Uw=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Vw}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let qw=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await Fw("clipboard-read",async()=>{await Aw();const e=await Bw(this._nativeClipboard,Hw);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await Nw(this._nativeClipboard,Tb);return!this._state||(Uw(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||vw()===ww.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 Fw("clipboard-read",async()=>{if(await Aw(),this._state?.uuid){const t=await Bw(this._nativeClipboard,Hw);if(t&&t===e._state.uuid)return!0;const n=await Nw(this._nativeClipboard,Tb);if(Uw(e._state?.uuid,n))return!0}return e._state={items:await zw(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:dw(),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 Fw("clipboard-write",async()=>{await Aw(),o&&0===r.length&&(r.push(new ClipboardItem({[Hw]:new Blob([o],{type:Hw})})),r.push(new ClipboardItem({[Tb]:new Blob([$w(o)],{type:Tb})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(Tb),l=null;if(-1!==i){const e=await t.getType(Tb);l=await _w(e),l&&(l=Ww(o,l))}if(!l&&t.types.includes(jb)){const e=await t.getType(jb);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await _w(e),t&&(l=`<div ${Vw}="${o}">${t}</div>`)}}if(!l&&t.types.includes(Mb)){const e=await t.getType(Mb),n=Ew(await e.arrayBuffer());l=`<div ${Vw}="${o}"><img src="${Tw+n}"/></div>`}!l&&o&&(l=$w(o));const a=new Blob([l??""],{type:Tb}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[Tb]=a),o&&(s[Hw]=new Blob([o],{type:Hw})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await(async e=>{e&&await e.writeText("")})(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[jb]=new Blob([t??""],{type:jb}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[Tb]=new Blob([t],{type:Tb}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[Mb]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:dw(),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 e=0;!o&&n&&e<n.length;e++)n[e].types.includes(jb)&&(o=await n[e].getType(jb));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[jb]:new Blob([e],{type:jb})})];return this._write({uuid:dw(),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,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};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),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var Zw;(Zw=qw||(qw={})).ErrorMessages=Pw,Zw.Global=new Zw,function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const Gw={Left:"left",Right:"right",Center:"center"},Kw="shift",Xw="alt",Yw="ctrl",Jw={Horizontal:"horizontal",Vertical:"vertical"};function Qw(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Qw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ev(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qw(e))&&(o&&(o+=" "),o+=t);return o}var tv=function(){},nv="undefined"!=typeof window,ov=nv?n.useLayoutEffect:n.useEffect,rv={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const iv=nv&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(rv),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return ov(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[tv,rv]},lv=(e,t)=>{const o=n.useCallback((...t)=>e?.(...t),t),r=n.useRef(null);r.current=o;const i=n.useCallback((...e)=>r.current?.(...e),[]);if(r.current)return i},av=e=>{const{style:n,orientation:o=Jw.Vertical,...r}=e,i=o===Jw.Vertical;return t.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:i?"0px":"3px",paddingTop:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button start`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},sv=e=>{const{style:n,orientation:o=Jw.Vertical,...r}=e,i=o===Jw.Vertical;return t.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:i?"0px":"3px",paddingBottom:i?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...n},...r,children:t.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${i?"vertical":"horizontal"} single-button end`,children:t.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:t.jsx("path",{d:i?"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"})})})})},cv=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:cv},Symbol.toStringTag,{value:"Module"}));const dv=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,totalSize:i=0,viewportSize:l=0,style:a,className:s,orientation:c=Jw.Vertical,onScrollOffset:d,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:h=200,scrollButtonInitialRepeatDelay:f=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=av,createScrollEndButton:x=sv,...y}=e,b=lv(u,[u]),w=n.useRef(null),[v,{width:S,height:C}]=iv(),[k,{width:E,height:_}]=iv(),T=c===Jw.Vertical,j=T?"top":"left",M=T?"scrollTop":"scrollLeft",R=T?C:S,I=T?_:E,[D,L]=n.useState(null);n.useEffect(()=>{null!==D&&w.current&&w.current.scrollTo({behavior:"smooth",[j]:D})},[D,T]);const O=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:cv(e,o[j],r,!0,Math.max(0,e-h));return L(i),Math.max(0,i)},[]),P=n.useCallback((e,t=!1)=>{if(!w.current)return 0;const n=w.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(I-R),l=t?i:cv(e,o[j],r,!1,Math.max(0,e+h));return L(l),Math.min(i,l)},[I,R]),A=n.useRef(null),F=n.useCallback(e=>{A.current=r;const t=e.target[M];d(t,l,i),b?.(e)},[d,l,i,r]);n.useEffect(()=>{const e=A.current;A.current=null,r!==e&&(w.current[M]=r)},[r,M]);const z=n.useRef(null),B=n.useRef(null),N=n.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=null,B.current=null)},[]),V=n.useCallback((e,t,n,o=f)=>{B.current=e,z.current=setTimeout(()=>{const t=n?O(B.current||e):P(B.current||e);t!==B.current?V(t,!1,n,m):N()},t?0:o)},[O,P,N]);n.useEffect(()=>()=>N(),[N]);const H=r,$=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(H)<=0||0===Math.floor(I-R),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!0)};return g?.(e)},[p,c,H,D,I,R]),W=n.useMemo(()=>{if(!p)return null;const e={orientation:c,disabled:Math.floor(I-R)<=Math.ceil(H),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(H,!0,!1)};return x?.(e)},[p,c,H,D,I,R]);return t.jsxs("div",{ref:o,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...a},className:ev("_sheetxl-scrollbar_eblx4_6",s),...y,children:[$,t.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:v,children:t.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:w,children:t.jsx("div",{ref:k,style:{position:"absolute",height:T?i-l+(C??0):1,width:T?1:i-l+(S??0)},className:"scrollbar-viewport"})})}),W]})}));dv.displayName="Scrollbar";let uv=Date.now,pv={},hv=1;const fv=e=>{let t=null!==pv[e];return t&&(pv[e]=null),t},mv=(e,t,n,o=0,r)=>{let i=uv(),l=i,a=0,s=0,c=0,d=hv++;if(d%20==0){const e={};for(let t in pv)e[t]=!0;pv=e}const u=function(p){let h=!0!==p,f=uv(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!pv[d]||!m)return pv[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(h){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,x=!1;try{x=e(g,f,h)}catch(e){x=!1}!1!==x&&1!==a||!h?h&&(l=f,requestAnimationFrame(u)):(pv[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return pv[d]=!0,requestAnimationFrame(u),d},gv=function(e){return Math.pow(e-1,3)+1},xv=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let yv=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){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(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&&(fv(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,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&&(fv(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(fv(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(fv(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;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(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(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 e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),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()),"number"!=typeof e)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 e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&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&&(fv(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),p=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=mv(d,u,p,this.options.animationDuration,r?gv:xv)}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 e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=mv(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}};var bv="undefined"!=typeof window?window:{screen:{},navigator:{}},wv=(bv.matchMedia||function(){return{matches:!1}}).bind(bv),vv=!1,Sv={get passive(){return vv=!0}},Cv=function(){};bv.addEventListener&&bv.addEventListener("p",Cv,Sv),bv.removeEventListener&&bv.removeEventListener("p",Cv,!1);var kv=vv,Ev="PointerEvent"in bv,_v="ontouchstart"in bv,Tv=_v||"TouchEvent"in bv&&wv("(any-pointer: coarse)").matches,jv=(bv.navigator.maxTouchPoints||0)>0||Tv,Mv=bv.navigator.userAgent||"",Rv=wv("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Mv)&&Math.min(bv.screen.width||0,bv.screen.height||0)>=768,Iv=(wv("(pointer: coarse)").matches||!wv("(pointer: fine)").matches&&_v)&&!/Windows.*Firefox/.test(Mv),Dv=wv("(any-pointer: fine)").matches||wv("(any-hover: hover)").matches||Rv||!_v,Lv=!jv||!Dv&&Iv?jv?"touchOnly":"mouseOnly":"hybrid",Ov="mouseOnly"===Lv?"mouse":"touchOnly"===Lv||Iv?"touch":"mouse";const Pv=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Lv,primaryInput:Ov,supportsPassiveEvents:kv,supportsPointerEvents:Ev,supportsTouchEvents:Tv},Symbol.toStringTag,{value:"Module"})),Av=new Set(["INPUT","TEXTAREA","SELECT"]),Fv={};function zv(){return Pv}const Bv=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Fv,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:zv,focusableNodeNames:Av,toPrettyKeyCode:e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":kw.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),Nv=[];function Vv(e,t,o=Nv){const r=n.useRef(null);return n.useImperativeHandle(e,()=>{if(!r.current)return;const e=r.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const o=Object.keys(n),i=o.length;for(let t=0;t<i;t++){const r=o[t],i=n[r];Object.defineProperty(e,r,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},o),r}const Hv=e=>t.jsx(dv,{...e}),$v=({width:e,height:n})=>t.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${n}px`,height:`${n}px`}}),Wv=n.memo(n.forwardRef((e,o)=>{const{children:r,viewport:i,onScrollViewport:l,showHorizontalScrollbar:a=!0,showVerticalScrollbar:s=!0,createScrollCorner:c=$v,createHorizontalScrollbar:d=Hv,createVerticalScrollbar:u=Hv,style:p,touchElement:h,disableTouch:f,...m}=e,g=lv(l,[l]),x=Vv(o,()=>({isScrollPane:()=>!0}),[]),y=n.useRef(null);n.useEffect(()=>{y.current&&(y.current.__scrollTop===i?.top&&y.current.__scrollLeft===i?.left||y.current.__isDecelerating||y.current?.scrollTo(i?.left,i?.top,!1))},[i?.left,i?.top,h]);const b=n.useCallback((e,t)=>{g?.({left:e,top:t})},[]),w=n.useCallback(e=>{y.current?.doTouchStart(e.touches,e.timeStamp)},[]),v=n.useCallback(e=>{e.preventDefault(),y.current?.doTouchMove(e.touches,e.timeStamp)},[]),S=n.useCallback(e=>{y.current?.doTouchEnd(e.timeStamp)},[]),C=n.useCallback(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{y.current.setDimensions(e,t,n,o)},[]);n.useEffect(()=>{const e=h??x.current;if(!f&&zv().supportsTouchEvents&&e&&i){if(!y.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new yv(b,e)}zv().supportsTouchEvents&&(e.addEventListener("touchstart",w),e.addEventListener("touchend",S),e.addEventListener("touchmove",v)),C({containerWidth:i?.width,containerHeight:i?.height,totalWidth:i?.totalWidth,totalHeight:i?.totalHeight})}return()=>{e?.removeEventListener("touchstart",w),e?.removeEventListener("touchend",S),e?.removeEventListener("touchmove",v)}},[i?.width,i?.height,i?.totalWidth,i?.totalHeight,f,h]);const[k,{width:E}]=iv(),[_,{height:T}]=iv(),j=n.useMemo(()=>{const e=u({orientation:Jw.Vertical,offset:i?.top,viewportSize:i?.height,totalSize:i?.totalHeight,onScrollOffset:e=>{g?.({top:e})}});return t.jsx("div",{style:{display:"flex",flex:"0"},ref:k,children:e})},[u,i?.top,i?.height,i?.totalHeight]),M=n.useMemo(()=>{const e=d({orientation:Jw.Horizontal,offset:i?.left,viewportSize:i?.width,totalSize:i?.totalWidth,onScrollOffset:e=>g?.({left:e})});return t.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${E}px)`},children:t.jsx("div",{ref:_,className:"sizer",children:e})}),s?c({width:E,height:T}):t.jsx(t.Fragment,{})]})},[d,i?.left,i?.width,i?.totalWidth,s,c,E,T]);return t.jsx("div",{style:{position:"relative",display:"flex",minWidth:s?`${E}px`:void 0,minHeight:a?`${T}px`:void 0,...p},...m,ref:x,children:t.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[t.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[t.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:r}),s?j:t.jsx(t.Fragment,{})]}),a?M:t.jsx(t.Fragment,{})]})})}));Wv.displayName="ScrollPane";const Uv=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let qv=0;function Zv(){return n.useEffect(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return qv++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),qv--,qv<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),qv=0)}},[]),{getPortalContainer:Uv}}const Gv=100,Kv=100,Xv=1e6,Yv=100,Jv=50,Qv=n.memo(n.forwardRef((e,o)=>{const{offset:r=0,viewportSize:i=0,totalSize:l=0,minSize:a=0,endGap:s=Gv,endScrollIncrement:c=Kv,style:d=Fv,onMouseDown:u,onScrollOffset:p,onScroll:h,scaleLimit:f=Xv,scaleFactor:m=Yv,precisionFactor:g=Jv,...x}=e;h&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=lv(u,[u]),b=()=>({offset:r,totalSize:0===f?l:Math.min(l??0,Math.max(a??0,(r??0)+(i??0))+(s??0))}),[w,v]=n.useState(b),S=0!==f&&w.totalSize>f?m:1,C=S/g,k=Math.ceil(w.totalSize/S),E=Math.ceil(w.offset/S),_=Math.ceil(i/S),T=n.useCallback(e=>{},[]),[j,M]=n.useState(!1),R=n.useRef(null);n.useLayoutEffect(()=>{if(!j){R.current={propTotalSize:l,propViewportSize:i,propOffset:r};const e=b();v(e)}},[l,i,r,j,a,s,c]);const I=lv((e,t,n)=>{const o=R.current;R.current=null,o&&o.propTotalSize===l&&o.propViewportSize===i&&o.propOffset===r||(Math.abs(e-E)<C&&(e=E),p?.(e*S,E,_))},[p,S,C,E,_]),D=n.useCallback(e=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",D),M(!1)},[]),L=n.useCallback(e=>{y?.(e),M(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",D,{passive:!0})},[T,D]);return t.jsx(dv,{ref:o,style:{...d},...x,offset:E,totalSize:k,viewportSize:_,onMouseDown:L,onScrollOffset:I})}));function eS(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}Qv.displayName="VirtualScrollbar";var tS=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=eS(o,t),r="function"==typeof e;n.push(r?e:()=>eS(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)eS(n,t)}};n.memo(n.forwardRef((e,o)=>{const{refFocusStart:r,...i}=e,l=n.useRef(null),a=n.useCallback(()=>{if(r)return void r?.current?.focus();const e=l.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==l.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[r]);return t.jsx("div",{tabIndex:0,ref:tS([l,o]),onFocus:a,...i})})),n.memo(n.forwardRef((e,o)=>{const{className:r,style:i,children:l,radius:a=4,strokeWidth:s=1,strokeColor:c="grey",...d}=e,[u,{width:p,height:h}]=iv(),f=n.useRef(null),m=(e,t=0)=>{const n=e/2,o=h-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],p=u===c?a[1]:a[e+1];if(p&&d&&d.length>2&&"L"===u[0]&&p.length>2&&"L"===p[0]){let e,a,c=l(d),h=l(u),f=l(p);n?(e=r(h,d.origPoint||c,t),a=r(h,p.origPoint||f,t)):(e=o(h,c,t),a=o(h,f,t)),i(u,e),u.origPoint=h,s.push(u);let m=r(e,h,.5),g=r(h,a,.5),x=["C",m.x,m.y,g.x,g.y,a.x,a.y];x.origPoint=h,s.push(x)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${a-.5} ${n} L ${a-.5} ${o} L ${2*a} ${o} L ${p-2*a} ${o} M ${p-2*a} ${o} L ${p-a} ${o} L ${p-a} ${n} L ${p} ${n}`,a)},g=n.useMemo(()=>m(s),[p,h,a,s]),x=n.useMemo(()=>{if(0===a)return;const e=a/2;return m(a)+`L ${p} 0 L 0 0 L 0 ${e}`},[g,a,s]),y=n.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return t.jsxs("div",{className:r,style:{display:"flex",flexDirection:"row",...i},...d,ref:tS([f,u,o]),children:[n.isValidElement(l)?n.cloneElement(l,y):t.jsx(t.Fragment,{}),t.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:h,viewBox:`0 0 ${p} ${h}`,children:t.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:s})})]})}));const nS={},oS=e=>{const{onPointerDown:n,style:o,splitDirection:r,paddingBefore:i=0,paddingAfter:l=0,disabled:a,key:s,hitAreaProps:c=nS,...d}=e,u="row"===r,{style:p,className:h,...f}=c;return t.jsx("div",{style:{...o,position:"relative"},...d,children:t.jsx("div",{className:ev("hit-box",h),style:{left:(u?-i:0)+"px",width:`calc(100% + ${u?i+l:0}px)`,top:(u?0:-i)+"px",height:`calc(100% + ${u?0:i+l}px)`,position:"absolute",...p},onPointerDown:a?void 0:n,...f})},s)},rS={},iS=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,lS=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,aS=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((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 sS(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:o,onPointerMoveOrWait:r,processTouch:i=!1,consumeTouch:l=!0}=e,a=lv(t,[t]),s=lv(o,[o]),c=lv(r,[r]),d=n.useRef(!1),u=e?.timerInitial??230,p=e?.timerContinuous??u/2,h=n.useRef(null),f=n.useRef(null),m=n.useRef(null),g=n.useRef(null),x=n.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),y=n.useCallback(e=>{g.current=setTimeout(()=>{window.requestAnimationFrame(()=>{!1!==d.current&&c?.(f.current,m.current,h.current)}),y(p)},e??u)},[]);n.useEffect(()=>()=>x(),[]);const b=i?"pointer":"mouse",w=n.useCallback(e=>{e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault()},[]),v=lv(e=>{document.removeEventListener(`${b}move`,k),document.removeEventListener(`${b}up`,v),document.removeEventListener("keydown",E),document.removeEventListener("keyup",_),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",S),x(),window.requestAnimationFrame(()=>{!1!==d.current&&(d.current=!1,s?.(e,m.current,h.current),m.current=null)})},[]),S=n.useCallback(()=>{!1!==d.current&&(d.current=!1,v(f.current))},[]),C=lv(()=>{x(),y(p),window.requestAnimationFrame(()=>{!1!==d.current&&c?.(f.current,m.current,h.current)})},[p]),k=lv(e=>{f.current=e,C()},[]),E=lv(e=>{m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},C()},[]),_=lv(e=>{m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},C()},[p]);return lv(e=>{e.isDefaultPrevented()||(m.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},!1!==a(e,m.current)&&(h.current=e,f.current=e.nativeEvent,document.addEventListener(`${b}up`,v,{passive:!1}),document.addEventListener(`${b}move`,k,{passive:!1}),document.addEventListener("keydown",E,{passive:!1}),document.addEventListener("keyup",_,{passive:!1}),window.addEventListener("blur",S,{passive:!0}),i&&l&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),d.current=!0,y(u)))},[u,i])}n.memo(n.forwardRef((e,o)=>{const{elementBefore:r,elementAfter:i,splitDirection:l="row",fixedPane:a=null,position:s,onPositionChange:c,minBefore:d,maxBefore:u,minAfter:p,maxAfter:h,children:f,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:b,onDragFinish:w,resizerProps:v=rS,paneProps:S=rS,paneBeforeProps:C=rS,paneAfterProps:k=rS,createResizer:E=oS}=e;if(f)throw new Error("Use elementBefore and elementAfter instead of children.");const _=n.useMemo(()=>n.isValidElement(i)&&n.isValidElement(r),[i,r]),T=n.useMemo(()=>{let e=null;a&&("before"===a?e=0:"after"===a&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:aS(d,t),maxBefore:aS(u,t),minAfter:aS(p,t),maxAfter:aS(h,t)}},[d,u,p,h]),j=lv(c,[c]),[M,R]=n.useState(()=>aS(s,null===a));n.useEffect(()=>{R(aS(s,null===a))},[s,a]);const[I,{width:D,height:L}]=iv(),[O,{width:P,height:A}]=iv(),F="row"===l?P:A,z="row"===l?D:L,B=n.useMemo(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:lS(o.minBefore,!0),maxBefore:lS(o.maxBefore,!0),minAfter:lS(o.minAfter),maxAfter:lS(o.maxAfter)};let l=iS(e,t,1!==o.fixedPaneOffset),a=t-n,s=iS(o.minBefore,a,!0)??0,c=iS(o.maxBefore,a,!0)??a,d=0,u=0,p=0,h=a;d=(iS(o.maxAfter,t,!1)??n)-n,u=iS(o.minAfter,t,!1)??t,p=Math.max(s,d),h=Math.min(c,u),l=Math.max(p,Math.min(l,h)),u=Math.min(a-l,iS(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,iS(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(M,z,F,T),[T,M,z,F,l]),[N,V]=n.useState(!1),H=lv(y,[y]),$=lv(b,[b]),W=lv(w,[w]),U=n.useRef(null),q=n.useRef(null),Z=n.useRef(null),{style:G,className:K,...X}=S,Y={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...G},{className:J,style:Q,...ee}=C,{className:te,style:ne,...oe}=k,re={flex:"1 1 100%",width:"100%",...g,flexDirection:l,display:"flex"},{className:ie,style:le,onPointerDown:ae,...se}=v,ce=lv(e=>{const t=aS(e,null===a);R(t)},[a]),de=lv(e=>{if(x||!N)return;const t=he.current?.getBoundingClientRect();let n=0;n="row"===l?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(z,n)),1===T.fixedPaneOffset&&(n=z-n),s&&M.pixels===n||R({pixels:n,percent:null}),$?.(n),e.stopPropagation(),e.preventDefault()},[T,l,x,N,M,z]),ue=lv(e=>{if(document.removeEventListener("pointermove",de),document.removeEventListener("touchmove",de),document.removeEventListener("pointerup",ue),N&&(V(!1),M)){if(W(M.pixels),!aS(s,null===a)||M.pixels!==s){const e={...M};null===e.percent&&(e.percent=e.pixels/z*100),j(e)}e.stopPropagation(),e.preventDefault()}},[M,N,s,a,z]),pe=lv(e=>{ae?.(e),e.defaultPrevented||x||N||(V(!0),H(),document.addEventListener("pointermove",de,{passive:!1}),document.addEventListener("touchmove",de,{passive:!1}),document.addEventListener("pointerup",ue,{passive:!1}))},[ae]),he=Vv(o,()=>({setPosition:ce,isSplitPane:()=>!0}),[]),fe=n.useMemo(()=>_?E?.({key:"resizer",ref:tS([O,q]),className:ev("resizer",ie),onPointerDownCapture:pe,style:{cursor:x?void 0:"row"===l?"ew-resize":"ns-resize",minWidth:"row"===l?"2px":void 0,minHeight:"row"!==l?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...le},splitDirection:l,disabled:x,...se}):null,[_,ie,se,l,le,x]),me="row"===l?"Width":"Height",ge={...Y,...Q,flex:0===T.fixedPaneOffset&&null!==B?.pixels[0]?`0 0 ${Math.round(B?.pixels[0])}px`:`1 1 ${Math.round(B?.percents[0]??100)}%`,[`min${me}`]:B?.minBefore,[`max${me}`]:i?B?.maxBefore:"100%"},xe={...Y,...ne,flex:1===T.fixedPaneOffset&&null!==B?.pixels[1]?`0 0 ${Math.round(B?.pixels[1])}px`:`1 1 ${Math.round(B?.percents[1]??100)}%`,[`min${me}`]:B?.minAfter,[`max${me}`]:r?B?.maxAfter:"100%"},ye=n.useMemo(()=>r?t.jsx("div",{ref:U,className:ev("before",K,J),style:ge,...X,...ee,children:r},"before"):null,[r,S,C,T,B]),be=n.useMemo(()=>i?t.jsx("div",{ref:Z,className:ev("after",K,te),style:xe,...X,...oe,children:i},"after"):null,[i,S,k,T,B]);return t.jsxs("div",{ref:tS([I,he]),className:ev("splitPane","row"===l?"vertical":"horizontal",{dragging:N},m),style:re,children:[ye,fe,be]})}));const cS=({initValue:e,useHookBody:t,applyStateChange:o})=>{const r=n.useRef(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const i=t();return n.useLayoutEffect(()=>{r.current!==i&&(r.current=i,o(i))},[o,i]),null},dS=e=>{console&&console.warn&&console.warn(e)},uS="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let pS=1,hS=!1,fS=!1;const mS=[],gS=[],xS=()=>{gS.forEach(e=>e())},yS=({automaticContainerInternalUseOnly:e})=>{const[o,r]=n.useState([]),i=n.useRef([]);return i.current=o,e||!1!==hS||(fS=!0),n.useEffect(()=>{let t=!0;function n(){if(t)return gS[0]!==n?(e||!0!==hS||dS("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void r(e=>[])):void r([...mS])}return gS.push(n),xS(),()=>{t=!1,i.current?.length>0&&dS("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),gS.splice(gS.indexOf(n),1),xS()}},[e]),t.jsx(t.Fragment,{children:o.map(({hook:e,key:t})=>n.createElement(cS,{...e,key:t}))})},bS=(e,o,r={})=>{let a,s,c=!1,d=!1,u=[],{unmountIfNoConsumers:p=!1}=r;const h=e=>{s=e,l.unstable_batchedUpdates(()=>u.forEach(t=>t(e)))},f=()=>(d||(s="function"==typeof e?e():e,d=!0),s);return()=>{const[r,l]=n.useState(f);return n.useEffect(()=>(c||(c=!0,a=(e=>{const n=pS++;return mS.push({hook:e,key:n}),0===gS.length&&!1===fS&&(hS=!0,(e=>{if(uS.document&&uS.document.createElement){const n=uS.document.createElement("div");i.createRoot(n).render(t.jsx(e,{automaticContainerInternalUseOnly:!0}))}else dS("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(yS)),xS(),()=>{mS.splice(mS.findIndex(e=>e.key===n),1),xS()}})({initValue:e,useHookBody:o,applyStateChange:h})),u.push(l),s!==r&&l(s),()=>{u.splice(u.indexOf(l),1),0===u.length&&p&&(a(),c=!1)}),[]),r}};bS(null,()=>{const[e,t]=n.useState(null);return e});let wS=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,void 0===o&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if("function"==typeof e){const n=t??this._context;return e("function"==typeof n?n():n)}return e}target(){return"function"==typeof this._target?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if("function"==typeof n){const e=t??this._context;o=n("function"==typeof e?e():e)}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"function"==typeof this._context?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)),!1===await Promise.resolve(n))return!1;const o=this._callback.bind(this)(e,this);if(!1===await Promise.resolve(o))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}},vS=class extends wS{};kw.getOS()===kw.OSType.MacOS||(kw.getOS(),kw.OSType.IOS),kw.getOS()===kw.OSType.MacOS||(kw.getOS(),kw.OSType.IOS),bS({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>qw.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=n.useState(qw.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:n.useRef(null),refNativeLastKey:n.useRef(null)}});let SS=!1,CS=0;var kS="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;const ES=()=>"sheetxl-ui-"+CS++,_S=n["useId".toString()],TS=null!=_S?_S:function(){const[e,t]=n.useState(()=>SS?ES():void 0);return kS(()=>{null==e&&t(ES())},[]),n.useEffect(()=>{SS||(SS=!0)},[]),e},jS=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,l,a;"column"===e?(i=o.columnMetadataMap,l=o.lastMeasuredColumnIndex,a=o.recalcColumnIndices):(i=o.rowMetadataMap,l=o.lastMeasuredRowIndex,a=o.recalcRowIndices);const s=a.length>0;if(t>l){let c=0;if(l>=0){const e=i[l];c=e.offset+e.size}for(let e=l+1;e<=t;e++){let t=s?a.includes(e)?n(e)*r:i[e]?.size||n(e)*r:n(e)*r;i[e]={offset:c,size:t},c+=t}"column"===e?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},MS=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let l,a;"column"===e?(l=o.columnMetadataMap,a=o.lastMeasuredColumnIndex):(l=o.rowMetadataMap,a=o.lastMeasuredRowIndex);let s=0;return s=(a>0?l[a].offset:0)>=r?RS({itemType:e,itemSize:t,instanceProps:o,high:a,low:0,offset:r,scale:i}):IS({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,a),offset:r,scale:i}),s=Math.min(s,n),s},RS=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:l})=>{for(;r<=o;){const a=r+Math.floor((o-r)/2),s=jS({itemType:e,itemSize:t,index:a,instanceProps:n,scale:l}).offset;if(s===i)return a;s<i?r=a+1:s>i&&(o=a-1)}return r>0?r-1:0},IS=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:l})=>{let a=1;for(;r<n&&jS({itemType:e,itemSize:t,index:r,instanceProps:o,scale:l}).offset<i;)r+=a,a*=2;return RS({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:l})},DS="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",LS=e=>{if(!e)return null;if("start"===e.eventType)return{type:e.eventType};if("submit"===e.eventType)return{type:e.eventType};if("cancel"===e.eventType)return{type:e.eventType};if("keyboard"===e.eventType)return{type:e.eventType,key:e.event.key};if("pointer"===e.eventType)return{type:e.eventType};if("coordsChange"===e.eventType){const t={type:e.eventType};return e.activeCoords&&(t.activeCoords=e.activeCoords),t}return{type:e.eventType??"unknown"}},OS=e=>!0,PS=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||"F2"!==e.key&&" "!==e.key&&"Backspace"!==e.key)&&(e.shiftKey&&" "===e.key||-1===DS.indexOf(e.key))),AS=e=>!!e&&"dblclick"===e.type&&{editMode:!0},FS=e=>{const{session:o,refLatestCoords:r,handleSubmitEdit:i,handleCancelEdit:l,cellBounds:a,isInBounds:s,getCellEditor:c,propsEditor:d,borderStrokeFill:u="rgb(33, 115, 70)",borderStrokeWidth:p=2,alignment:h=Gw.Left,style:f,...m}=e,g=n.useRef(null),x=n.useRef(null),[y,b]=n.useState(!1),w=o.coords,v=n.useCallback(async e=>{const t=g.current?.getBoundingClientRect();if(t){if("keyboard"===e.eventType){const t=e.event,n=new KeyboardEvent(t.type,{bubbles:!0,cancelable:!0,view:window,key:t.key,code:t.code,location:t.location,repeat:t.repeat,isComposing:t.isComposing,charCode:t.charCode,keyCode:t.keyCode,which:t.which,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey});n.isSynthetic=!0,n.key,x.current?.dispatchEvent(n)}else"pointer"===e.eventType||console.warn("unsupported event type",e);await new Promise(e=>requestAnimationFrame(e))}},[]);n.useEffect(()=>{const e=x.current;return b(!0),x.current.startEdit?.(o.startEvent),(async()=>{o.editorRefs.push(e),o.editorRefsDispatchEditorEvent.push(v);const t=[...o.events];for(let e=0;e<t.length;e++)await v(t[e]);o.onMount(e)})(),()=>{const t=o.editorRefs.indexOf(e);-1!==t&&o.editorRefs.splice(t,1),o.onUnmount(e)}},[]);const S=n.useCallback(()=>i(o),[]),C=n.useCallback(()=>{l(o)},[]),k=r.current&&Qb.isEqualCells(r.current,w),E=s&&k&&y,_=c({autoFocus:!!o.startEvent?.autoFocus,...d,onSubmitEdit:S,onCancelEdit:C,ref:x},w),T=a.x+Bv.boundPixel(-p/2),j=Bv.boundPixel(a.width+p/2,!0);return t.jsx("div",{tabIndex:0,ref:g,style:{background:void 0,...f,opacity:E?f?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${a.y+Bv.boundPixel(-p/2)}px`,height:Bv.boundPixel(a.height+p/2,!0),left:`${T}px`,width:j},...m,children:t.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${Bv.boundPixel(1)}px`,top:`${Bv.boundPixel(1)}px`,width:Bv.boundPixel(a.width-2,!0),height:Bv.boundPixel(a.height-2,!0),outline:`${p}px ${u} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:_})})},zS=({gridRef:e,gridMainRef:t,orientation:o=Ob,headerCount:r,selectionPolicy:i="multiple",newSelectionMode:l="clear",alwaysScrollToActiveCoords:a=!0,onDragStart:s,onDragEnd:c,pointerDownInterceptor:d,pointerMoveInterceptor:u,onPointerUp:p,newSelection:h,modifySelection:f,appendSelection:m,clearSelections:g})=>{const x=r??((o===Ob?e.current?.rowCount:e.current?.columnCount)||0),y=n.useRef(null),b=n.useRef(null),w=n.useRef(!1),v=n.useRef(null),S=n.useCallback(e=>o===Lb?{rowIndex:0,colIndex:e.colIndex}:{rowIndex:e.rowIndex,colIndex:0},[o]),C=n.useCallback(e=>o===Lb?{rowIndex:t.current?t.current.rowCount-1:0,colIndex:e.colIndex}:{rowIndex:e.rowIndex,colIndex:t.current?t.current.columnCount-1:0},[o]),k=e=>{b.current=C(e),f(b.current,y.current)},E=n.useCallback((n,r)=>{if(!e.current)return;const i=e.current.getViewFromClient(n,r)?.getCellCoordsFromClient(n,r);return i?(o===Lb?i.rowIndex=t.current.getViewport().rowStart:i.colIndex=t.current.getViewport().colStart,i):void 0},[]),_=n.useCallback((e,n=!1)=>{let r=e;return n||(r={...e},o===Ob?delete r.colIndex:delete r.rowIndex),t.current?.scrollCellCoordsIntoView(r)},[o]),T=lv(c,[c]),j=lv(s,[s]),M=n.useMemo(()=>({onPointerDown:n=>{if(!e||!e.current)return;if(n.nativeEvent.defaultPrevented)return;const r=E(n.nativeEvent.clientX,n.nativeEvent.clientY);if(!r)return;n.nativeEvent.which;const i=n.nativeEvent.shiftKey,l=n.nativeEvent.ctrlKey||n.nativeEvent.metaKey;if(!1===d?.(n,r))return;j?.(),w.current=!0;const s=t.current?.getViewFromClient(n.nativeEvent.clientX,n.nativeEvent.clientY),c=((e,t)=>o===Lb?{...e,rowIndex:t.rowStart}:{...e,colIndex:t.colStart})(r,s.getVisibleRangeCoords());if(i)k(r);else{if(l)return((e,t=e,n)=>{y.current=S(e),b.current=C(t),m(y.current,b.current,n)})(r,r,c),void(a&&_(c,!0));((e,t=e,n)=>{y.current=S(e),b.current=C(t),h(y.current,b.current,n)})(r,r,c),k(r),a&&_(c,!0)}},onPointerMoveOrWait:kw.throttle(t=>{if(!w.current||!e?.current)return;const n=E(t.clientX,t.clientY);if(n&&!1!==u?.(t,n)){if(Qb.isEqualCells(v.current,n))return g();k(n),_(n)}},60),onPointerUp:e=>{w.current=!1,T?.(),p?.(e)},processTouch:!0,consumeTouch:!0}),[i,a,x,l,g,d,p]);return{onPointerDown:lv(sS(M),[]),getCellCoordsFromClient:E}},BS=(e,t,n)=>{if(!e)return t;let o=t;const r=n===Sb||n===wb;for(;;){const t=e(o,!r);if(0===t)return o;r?o+=t:o-=t}},NS=(e,t,n)=>{const o=[];let r=t;for(;r<=n;){const t=Math.max(0,e(r));0===t?(o.push(r),r++):r+=t}return o},VS=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:l,colIndex:a}=e;switch(o){case wb:{l=BS(n,Math.min(l+1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&l<i;)l=BS(n,Math.min(++l,i),o),e=t({rowIndex:l,colIndex:a});return l}case bb:{l=BS(n,Math.max(l-1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&l>i;)l=BS(n,Math.max(--l,i),o),e=t({rowIndex:l,colIndex:a});return l}case Sb:{a=BS(n,Math.min(a+1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&a<i;)a=BS(n,Math.min(++a,i),o),e=t({rowIndex:l,colIndex:a});return a}case vb:{a=BS(n,Math.max(a-1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&a>i;)a=BS(n,Math.max(--a,i),o),e=t({rowIndex:l,colIndex:a});return a}default:return i}},HS=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:l,colIndex:a}=e;switch(o){case wb:{l=BS(n,Math.min(l+1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&l<i;)l=BS(n,Math.min(++l,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?l:l-1}case bb:{l=BS(n,Math.max(l-1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&l>i;)l=BS(n,Math.max(--l,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?l:l+1}case Sb:{a=BS(n,Math.min(a+1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&a<i;)a=BS(n,Math.min(++a,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?a:a-1}case vb:{a=BS(n,Math.max(a-1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&a>i;)a=BS(n,Math.max(--a,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?a:a+1}default:return null}},$S=(e,t,n,o,r,i)=>{if(!t)return i;let l,{rowIndex:a,colIndex:s}=e;o===wb?l={rowIndex:a+1,colIndex:s}:o===bb?l={rowIndex:a-1,colIndex:s}:o===Sb?l={rowIndex:a,colIndex:s+1}:o===vb&&(l={rowIndex:a,colIndex:s-1});const c=t(e);var d,u;return(u=t(l),!(d=c)&&!u||!d&&u||d&&!u?VS:HS)(e,t,n,o,!1,i)??i},WS=(e,t)=>`${e}:${t}`,US=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let l=o;return"nearest"===e&&(o-t>0?e="start":n-r>0&&(e="end")),"start"===e?l=t:"end"===e?l=n-(r-o):"center"===e&&(l=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(l,i-(r-o)))},qS=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),ZS=(e,t=Sb,n,o,r,i=null)=>{if(i&&Qb.isEqualSelectionCoords(i,e))return e;const l=e.ranges[e.rangeIndex];if(!Qb.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},l))return e;let a={...e.cell},s=e.rangeIndex;switch(t){case Sb:a.colIndex=BS(r,a.colIndex+1,t);break;case vb:a.colIndex=BS(r,a.colIndex-1,t);break;case wb:a.rowIndex=BS(o,a.rowIndex+1,t);break;case bb:a.rowIndex=BS(o,a.rowIndex-1,t)}const c=t=>{if(t){s=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const t=e.ranges[s];a={colIndex:t.colStart,rowIndex:t.rowStart}}else{s=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const t=e.ranges[s];a={colIndex:t.colEnd,rowIndex:t.rowEnd}}};if(t===Sb&&a.colIndex>l.colEnd&&a.rowIndex===l.rowEnd)c(!0);else if(t===vb&&a.colIndex<l.colStart&&a.rowIndex===l.rowStart)c(!1);else if(t===wb&&a.colIndex===l.colEnd&&a.rowIndex>l.rowEnd)c(!0);else if(t===bb&&a.colIndex===l.colStart&&a.rowIndex<l.rowStart)c(!1);else{let e=a.rowIndex,n=a.colIndex;switch(t){case Sb:n>l.colEnd&&(e=BS(o,e+1,t),n=l.colStart,e>l.rowEnd&&(e=l.rowStart));break;case vb:n<l.colStart&&(e=BS(o,e-1,t),n=l.colEnd,e<l.rowStart&&(e=l.rowEnd));break;case wb:e>l.rowEnd&&(n=BS(r,n+1,t),e=l.rowStart,n>l.colEnd&&(n=l.colStart));break;case bb:e<l.rowStart&&(n=BS(r,n-1,t),e=l.rowEnd,n<l.colStart&&(n=l.colEnd))}a={rowIndex:e,colIndex:n}}let d=n(a);if(!Qb.isRangeWithinRange(d,l)){const e=Qb.intersectRanges(d,l);e&&(d=e)}let u={rowStart:BS(o,d.rowStart,wb),colStart:BS(r,d.colStart,Sb),rowEnd:BS(o,d.rowEnd,bb),colEnd:BS(r,d.colEnd,vb)};if(u.rowStart!==a.rowIndex||u.colStart!==a.colIndex){switch(t){case Sb:e.ranges[s].colStart===u.colStart&&e.ranges[s].colEnd===u.colEnd&&(a.rowIndex=u.rowEnd),a.colIndex=u.colEnd;break;case vb:e.ranges[s].colStart===u.colStart&&e.ranges[s].colEnd===u.colEnd&&(a.rowIndex=u.rowStart),a.rowIndex===u.rowStart?a.colIndex=u.colStart+1:a.colIndex=u.colStart;break;case wb:e.ranges[s].rowStart===u.rowStart&&e.ranges[s].rowEnd===u.rowEnd&&(a.colIndex=u.colEnd),a.rowIndex=u.rowEnd;break;case bb:e.ranges[s].rowStart===u.rowStart&&e.ranges[s].rowEnd===u.rowEnd&&(a.colIndex=u.colStart),a.colIndex===u.colStart?a.rowIndex=u.rowStart+1:a.rowIndex=u.rowStart}return ZS({cell:a,ranges:e.ranges,rangeIndex:s},t,n,o,r,i??e)}return{ranges:e.ranges,cell:a,rangeIndex:s}},GS=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=vb,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=Sb,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=bb,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=wb,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},KS=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let l=n(r?e:e+1),a=n(r?e+1:e),s=e+(r?2:-1),c=0;for(;(a-l)*i<=0;){if(r&&s-1>o+1||!r&&s+1<o)return c;l=a,a=n(s),s+=i,c++}return c},XS=(e,t,n,o,r)=>{const i={};let l=null,a=null;for(let s=0;s<=n.length&&n[s]<=r;s++){const r=n[s];if(r<o)continue;const c=l===r?a:t?e.getColOffset(r):e.getRowOffset(r),d=t?e.getColOffset(r+1):e.getRowOffset(r+1);l=r+1,a=d,i[r]=Object.freeze({offset:c,size:d-c,spanIndex:s})}return Object.freeze(i)},YS=(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}},JS=(e,t,n)=>!(!n||e<n.x||e>n.x+n.width||t<n.y||t>n.y+n.height),QS=(e,t=!0)=>`M ${Bv.boundPixel(e.left)} ${Bv.boundPixel(e.top)} L ${Bv.boundPixel(e.right,!0)} ${Bv.boundPixel(e.top)} L ${Bv.boundPixel(e.right,!0)} ${Bv.boundPixel(e.bottom,!0)} L ${Bv.boundPixel(e.left)} ${Bv.boundPixel(e.bottom,!0)} L ${Bv.boundPixel(e.left)} ${Bv.boundPixel(e.top)} ${t?"Z":""}`,eC=e=>{const{linePoints:n,bounds:o,pathProps:r,style:i,...l}=e;return t.jsx("svg",{width:`${Bv.boundPixel(o.width,!0)}`,height:`${Bv.boundPixel(o.height,!0)}`,viewBox:`0 0 ${Bv.boundPixel(o.width,!0)} ${Bv.boundPixel(o.height,!0)}`,style:{position:"absolute",left:`${Bv.boundPixel(o.x)}px`,top:`${Bv.boundPixel(o.y)}px`,width:`${Bv.boundPixel(o.width,!0)}px`,height:`${Bv.boundPixel(o.height,!0)}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",...i},...l,children:t.jsx("path",{d:`M ${Bv.boundPixel(n[0])} ${Bv.boundPixel(n[1])} L ${Bv.boundPixel(n[2])} ${Bv.boundPixel(n[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...r})})},tC=e=>{const{x:n=0,y:o=0,width:r=0,height:i=0,fill:l,stroke:a,strokeWidth:s=0,strokeDasharray:c,strokeDashoffset:d,clipPath:u,pathBounds:p,pathProps:h,style:f,...m}=e,g=o,x=n,y=r,b=i;let w=null;if(l){let e=QS({top:0,left:0,bottom:b,right:y});p&&(e=e+" "+QS({top:p.y-g,left:p.x-x,bottom:p.height+p.y-g,right:p.width+p.x-x})),w=[t.jsx("path",{d:e,fill:l,stroke:"none",fillRule:"evenodd"},"fill")]}return t.jsxs("svg",{width:`${Bv.boundPixel(r,!0)}`,height:`${Bv.boundPixel(i,!0)}`,viewBox:`0 0 ${Bv.boundPixel(r,!0)} ${Bv.boundPixel(i,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${Bv.boundPixel(n)}px`,top:`${Bv.boundPixel(o)}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",...f},...m,children:[w,t.jsx("path",{d:QS({top:0,left:0,right:y,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:d,stroke:a,vectorEffect:"non-scaling-stroke",strokeWidth:s,...h})]})},nC=e=>{const{key:n,...o}=e;return t.jsx(oC,{...o},n)},oC=n.memo(e=>{const{stroke:o,fill:r,x:i=0,y:l=0,width:a=0,height:s=0,style:c,isAnimatedStroke:d,animatedStrokeProps:u,range:p,cell:h,...f}=e,m=d||!!u,g={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...u};let x=g.dashGap+g.dashLength;const y=g.speed*x,b=TS().replaceAll(":",""),w=`${g.name}-${b}`;let v;return n.useEffect(()=>{if(!m)return;const e=`@keyframes ${w} {\n to {\n stroke-dashoffset: 0px;\n }\n }`,t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t.sheet.insertRule(e,0),()=>{document.head.removeChild(t)}},[m]),m&&(v={strokeDasharray:`${g.dashLength}px ${g.dashGap}px`,strokeDashoffset:`${x}px`,animation:`${w} ${y}ms linear infinite`,willChange:"stroke-dashoffset"}),t.jsx(tC,{x:i,y:l,width:a,height:s,stroke:o,fill:r,shapeRendering:"crispEdges",style:{...v,...c},...f})});function rC(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=rC(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function iC(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=rC(e))&&(o&&(o+=" "),o+=t);return o}oC.displayName="Selection";const lC=n.memo(n.forwardRef((e,n)=>{const{x:o=0,y:r=0,borderWidth:i=1,size:l=6,borderStroke:a,corner:s,style:c,className:d,background:u,...p}=e;if(0===o||0===r)return null;let h=!0,f=!0,m=!0,g=!0;switch(s){case"tl":h=!1,f=!1;break;case"bl":h=!1,g=!1;break;case"br":m=!1,g=!1;break;case"tr":f=!1,m=!1}return t.jsx("div",{className:iC("fill-handle",d),style:{position:"absolute",left:o-(l+(h?i:0))/2,top:r-(l+(f?i:0))/2,width:l,height:l,borderLeft:h?`${i}px ${a}`:void 0,borderTop:f?`${i}px ${a}`:void 0,borderRight:m?`${i}px ${a}`:void 0,borderBottom:g?`${i}px ${a}`:void 0,background:u,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...c},tabIndex:-1,...p})}));lC.displayName="FillHandle";var aC=function(){},sC="undefined"!=typeof window,cC=sC?n.useLayoutEffect:n.useEffect,dC={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const uC=sC&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(dC),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return cC(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[aC,dC]};function pC(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var hC=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=pC(o,t),r="function"==typeof e;n.push(r?e:()=>pC(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)pC(n,t)}};const fC=n.memo(n.forwardRef((e,o)=>{const{range:r,view:i,anchor:a,borderStroke:s="rgb(33, 115, 70)",background:c="white",borderWidth:d=1.5,size:u=22,style:p,className:h,selectionTouchPointerHandler:f,onTouchSelectStart:m,onTouchSelectEnd:g,currentTouchAnchor:x,scrollableElement:y,scrollableRoot:b=document.body,...w}=e,v=lv(m,[m]),S=lv(g,[g]),{bounds:C,coordsPivot:k,key:E}=n.useMemo(()=>{if(!r||!i)return null;let e=null,t=null;switch(a){case"tl":e={colIndex:r.colEnd,rowIndex:r.rowEnd},t={colIndex:r.colStart,rowIndex:r.rowStart};break;case"br":e={colIndex:r.colStart,rowIndex:r.rowStart},t={colIndex:r.colEnd,rowIndex:r.rowEnd};break;case"t":case"l":e={colIndex:r.colEnd,rowIndex:r.rowEnd};break;case"b":e={colIndex:r.colStart,rowIndex:r.rowStart};break;case"r":e={colIndex:r.colStart,rowIndex:r.rowEnd}}let n=i.getRangeCoordsBounds(t?{rowStart:t.rowIndex,colStart:t.colIndex,rowEnd:t.rowIndex,colEnd:t.colIndex}:r);const o=i.getBounds(),l=i.getViewportSize(),s=o.x,c=o.y,d=l.width,u=l.height;switch(a){case"tl":break;case"br":n.x=n.x+n.width,n.y=n.y+n.height;break;case"t":n.x=d/2-s;break;case"b":n.x=d/2-s,n.y=n.y+n.height;break;case"l":n.y=u/2-c;break;case"r":n.x=n.x+n.width,n.y=u/2-c}const p=i.toClipBounds(n,0);return!p||p.width<=0||p.height<=0||n.x<0||n.y<0||n.x>d||n.y>u?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:n,coordsAnchor:null,coordsPivot:e,key:"touchSelect-"+i.getAnchor()+"-"+a}},[r,i,a]),_=n.useRef(null),T=sS(n.useMemo(()=>{const e=e=>"t"===a||"b"===a?{...e,colIndex:void 0}:"l"===a||"r"===a?{...e,rowIndex:void 0}:e;return{processTouch:!0,consumeTouch:!0,onPointerDown:(t,n)=>{const o=e(i.getCellCoordsFromClient(t.clientX,t.clientY));return _.current={coordsPivot:k},v?.(a),f.onSelectionPointerDown(t,n,i,o,k,!1,!0)},onPointerMoveOrWait:(t,n,o)=>{const r=e(i.getCellCoordsFromClient(t.clientX,t.clientY));return f.onSelectionPointerMoveOrWait(t,n,o,i,r,_.current?.coordsPivot,!0,!0)},onPointerUp:(e,t,n)=>(_.current=null,S?.(a),f.onPointerUp(e,t,n))}},[f,r,i,a])),[j,{y:M,x:R}]=uC(),I=n.useRef(null),{getPortalContainer:D}=Zv(),[L,O]=n.useState(null);return n.useEffect(()=>{const e=I.current?.getBoundingClientRect();if(!e||!C)return void O(null);let n=0,r=0,i=y;for(;i;)n+=i.scrollLeft,r+=i.scrollTop,i=b&&i===b.parentElement?null:i.parentElement;O(l.createPortal(t.jsx("div",{className:iC("touch-select-handle",h),ref:o,style:{position:"absolute",left:n+(e?.x??0)-(u+d)/2,top:r+(e?.y??0)-(u+d)/2,width:u,height:u,borderWidth:`${d}px`,border:s,borderRadius:"50%",background:c,boxShadow:`0 0 0 1.5px ${c}`,cursor:"grab",pointerEvents:"all",opacity:x?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...p},tabIndex:-1,onPointerDown:T,...w}),b??D(),E))},[M,R,C?.x,C?.y,C?.width,C?.height,h,x,c,u,d,s,y]),C?t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:hC([j,I]),style:{position:"absolute",left:C.x,top:C.y,opacity:0}}),L]}):null}));fC.displayName="TouchSelectHandle";const mC=-10,gC=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),xC=Object.freeze({colIndex:0,rowIndex:0}),yC=Object.freeze([]),bC=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??yC};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=xC),Qb.isEqualSelectionCoords(t,e)?e:t},wC=(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(_b)),!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(_b)),e.scrollCellCoordsIntoView(t)},vC=()=>!1,SC=({gridRef:e,commands:o,layout:r,selection:i,onSelectionChange:l,onSelectionDragStart:a,onSelectionDragEnd:s,selectionPolicy:c="multiple",newSelectionMode:d="clear",allowDeselectSelection:u=!0,onFillPreview:p,onFillCancel:h,onFillDone:f,onFill:m,disableFillDrag:g=!m,fillHandleBorderColor:x="white",hiddenRowsAt:y,hiddenColumnsAt:b,isContentfulCell:w,contentfulCellFinder:v=$S,getDataCoords:S,alwaysScrollToActiveCoords:C=!1,selectionBounds:k,pointerDownInterceptor:E,pointerMoveInterceptor:_,mergedRanges:T,canSelectionSpanMergedCells:j=vC,onMoveDragStart:M,onMoveDragUpdate:R,onMoveDragEnd:I,onMoveDragDone:D,selectionRenderer:L=nC,disableMoveDrag:O=!I,getCellCoordsAsRangeCoords:P=Qb.cellToRange,moveDragHitSize:A=6,moveDragOutlineSize:F=4,selectionBackgroundColor:z="rgba(16, 124, 65, 0.1)",selectionBorderColor:B="rgb(33, 115, 70)",selectionRemoveBorderColor:N="rgb(255, 0, 0)",selectionRemoveBackgroundColor:V="rgba(250, 10, 10, 0.1)",disableTouchSelection:H=!1,touchSelectHandleProps:$})=>{const W=n.useCallback(()=>({top:k?.top??0,left:k?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),U=lv(m,[m]),q=lv(p,[p]),Z=lv(h,[h]),G=lv(f,[f]),K=lv(w,[w]),X=lv(L,[L]),Y=lv((e,t=!1)=>KS(e,t,r.getRowOffset,t?W().bottom:W().top),[r?.getRowOffset]),J=lv(y??Y,[y]),Q=lv((e,t=!1)=>KS(e,t,r.getColOffset,t?W().right:W().left),[r?.getColOffset]),ee=lv(b??Q,[b]),[te,ne]=n.useState(()=>bC(i)),oe=n.useMemo(()=>bC(te),[te]),re=n.useRef(oe),ie=n.useRef(!0);n.useLayoutEffect(kw.throttle(()=>{ne(e=>{ie.current=!0;const t=bC(i);return Qb.isEqualSelectionCoords(t,e)?e:t})},0),[i]),n.useLayoutEffect(()=>{re.current=oe},[oe]),n.useEffect(()=>{ie.current||!l||Qb.isEqualSelectionCoords(i,oe)||l(oe)},[oe]);const le=n.useCallback(e=>{ne(t=>{ie.current=!1,t=bC(t);let n="function"==typeof e?e(t.ranges):e??yC;if(Qb.isEqualRangesArrays(n,t.ranges))return t;let o=Math.max(n.length?0:-1,Math.min(t.rangeIndex,n.length-1)),r=t.cell;-1===o||Qb.isCellWithinRange(r,n[o])||(r={rowIndex:n[o].rowStart,colIndex:n[o].colStart}),1===n.length&&Qb.isSingleCell(n[0])&&Qb.isCellWithinRange(r,n[0])&&(n=[],o=-1);const i={cell:r,ranges:n,rangeIndex:o};return Qb.isEqualSelectionCoords(i,t)?t:i})},[]),ae=lv(e=>{ne(t=>{ie.current=!1,t=bC(t);const n=e??xC,o=P(n);if(!Qb.isSingleCell(o)&&0===t.ranges.length)return{ranges:[o],rangeIndex:0,cell:n};if(Qb.isEqualCells(n,t.cell))return t;let r=t.ranges,i=t.rangeIndex;1===t.ranges.length&&(Qb.isSingleCell(t.ranges[0])&&Qb.isCellWithinRange(n,t.ranges[0])||!Qb.isCellWithinRange(n,t.ranges[0]))&&(r=[],i=-1);const l={ranges:r,rangeIndex:i,cell:n};return Qb.isEqualSelectionCoords(l,t)?t:l})},[P]),[se,ce]=n.useState(null),[de,ue]=n.useState(null),pe=n.useRef(null),[he,fe]=n.useState(null),me=n.useRef(null),ge=n.useRef(null),[xe,ye]=n.useState(null),be=n.useRef(null),we=n.useRef(null),ve=n.useRef(T);n.useEffect(()=>{ve.current=T},[T]);const Se=lv((t,n={inline:"nearest",block:"nearest"})=>{let{rowIndex:o,colIndex:r}=t;void 0===o&&oe?.cell&&(o=oe.cell.rowIndex),void 0===r&&oe?.cell&&(r=oe.cell.colIndex),void 0!==o&&void 0!==r&&e.current?.scrollCellCoordsIntoView({rowIndex:o,colIndex:r},n)},[oe]),Ce=n.useCallback(e=>{const t=W();return e.rowIndex<t.top||e.colIndex<t.left||e.colIndex>t.right||e.rowIndex>t.bottom},[]),ke=lv((t,n)=>{if(!e?.current)return null;const o={rowStart:Math.min(t.rowIndex,n.rowIndex),colStart:Math.min(t.colIndex,n.colIndex),rowEnd:Math.max(t.rowIndex,n.rowIndex),colEnd:Math.max(t.colIndex,n.colIndex)},r=j?.(o);if(r)return o;const i=P(t),l=P(n),a={rowStart:Math.min(i.rowStart,l.rowStart),colStart:Math.min(i.colStart,l.colStart),rowEnd:Math.max(i.rowEnd,l.rowEnd),colEnd:Math.max(i.colEnd,l.colEnd)};let s;return"function"==typeof ve.current?s=ve.current(a):T&&(s=T),s?Qb.extendRangeToUnionRanges(a,s):a},[j,P]),Ee=lv((e,t,n)=>{const o=e.ranges.length>0?e.ranges[e.rangeIndex]:{rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},r={rowStart:Math.min(t.rowIndex??o.rowStart,n.rowIndex??o.rowStart),colStart:Math.min(t.colIndex??o.colStart,n.colIndex??o.colStart),rowEnd:Math.max(t.rowIndex??o.rowEnd,n.rowIndex??o.rowEnd),colEnd:Math.max(t.colIndex??o.colEnd,n.colIndex??o.colEnd)},i={rowIndex:r.rowStart,colIndex:r.colStart},l={rowIndex:r.rowEnd,colIndex:r.colEnd};if(!Ce(i)&&!Ce(l))return ke(i,l)},[ke]),_e=lv((e,t,n)=>{if("single"===c)return;if(!re.current)return;const o=Ee(re.current,e,t??re.current.cell);if(!o)return;const r=re.current.rangeIndex;le(e=>e.length?e.map((e,t)=>r===t?o:e):[o]),n&&o&&ae({colIndex:o.colStart,rowIndex:o.rowStart})},[]),Te=n.useCallback((e,t,n)=>{if(!re.current)return;e={...re.current?.cell,...e},t=t??e;const o=Ee(re.current,e,t);if(!o)return;const r={rowIndex:o.rowStart,colIndex:o.colStart},i={...r,...n};"clear"===d?(be.current=i,Me()):"modify"===d?_e(r):je(r),ae(i)},[]),je=n.useCallback((e,t=e,n)=>{"multiple"!==c||!e||Ce(e)||Ce(t)||ne(o=>{ie.current=!1,o=bC(o);const r=ke(e,t);if(!r)return o;let i=o.ranges.length>0?[...o.ranges]:[ke(o.cell,o.cell)];i.push(r);const l={ranges:i,cell:{rowIndex:r.rowStart,colIndex:r.colStart,...n},rangeIndex:i.length-1};return Qb.isEqualSelectionCoords(l,o)?o:l})},[]),Me=()=>{le(yC)},Re="touch"===Bv.detectIt().primaryInput,Ie=n.useRef(null),De=n.useRef(null),Le=n.useRef(null),Oe=n.useMemo(()=>({onPointerDown:t=>{if(!e||!e.current)return!1;const n=t.nativeEvent,o=e.current.getViewFromClient(n.clientX,n.clientY);if("touch"===n.pointerType||"touchstart"===n.type)return De.current={topLeft:o.getScrollTopLeft(),point:{x:n.clientX,y:n.clientY}},!0;const r=o.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!r)return!1;Ie.current={anchor:o.getAnchor(),coords:r},we.current=null;const i=3===t.nativeEvent.which;if(i&&-1!==Qb.indexOfCoords(r,oe.ranges))return!1;const l=t.nativeEvent.shiftKey,s=t.nativeEvent.ctrlKey||t.nativeEvent.metaKey,d=s,p=u,h=oe.ranges.length>0,f=s&&p;if(!1===E?.(t,r,oe))return!1;a?.(re.current,t.nativeEvent);const m=!i&&"single"!==c;if(l)return _e(r),m;const g=Qb.isEqualCells(r,oe.cell);if(d){if(g&&(!f||!h))return m;if(s&&-1!==Qb.indexOfCoords(r,oe.ranges)&&p){me.current=r;const e=ke(r,r);return ge.current=e,fe(e),m}return je(r),m}C&&Se(r),g&&0===oe.ranges.length||Te(r)},onPointerMoveOrWait:kw.throttle((t,n)=>{if(!e?.current)return;if("touch"===t.pointerType||"touchmove"===t.type)return;if(!Ie.current)return;const o=Ie.current.anchor;let r=e.current.getViewFromLocation(o),i=r.getCellCoordsFromClient(t.clientX,t.clientY);if(!Qb.isEqualCells(i,Ie.current?.coords)&&(Ie.current={anchor:o,coords:i},i&&!1!==_?.(t,i,re.current))){if(me.current){const e={rowStart:Math.min(i.rowIndex,me.current.rowIndex),colStart:Math.min(i.colIndex,me.current.colIndex),rowEnd:Math.max(i.rowIndex,me.current.rowIndex),colEnd:Math.max(i.colIndex,me.current.colIndex)},t={rowIndex:e.rowStart,colIndex:e.colStart},n={rowIndex:e.rowEnd,colIndex:e.colEnd};if(Ce(t)||Ce(n))return;const o=ke(t,n);ge.current=o,fe(o)}else _e(i);Le.current=n,wC(r,i,e)}},60),onPointerUp:t=>{if(Ie.current=null,"touch"===t.pointerType||"touchend"===t.type){if(De.current){const t=e.current.getViewFromClient(De.current.point.x,De.current.point.y),n=t.getScrollTopLeft();if(n.left===De.current.topLeft.left&&n.top===De.current.topLeft.top){const e=t.getCellCoordsFromClient(De.current.point.x,De.current.point.y);Te(e)}}return De.current=null,void(Ie.current=null)}try{s?.(re.current,t)}catch(t){console.warn(t)}if(!me.current)return;const n=ge.current;me.current=null,ge.current=null,fe(null),ne(e=>{if(ie.current=!1,0===(e=bC(e)).ranges.length)return e;let t=[],o=-1,r=e.cell;for(let i=0;i<e.ranges.length;i++){const l=e.ranges[i];if(Qb.isRangesIntersect(l,n)){const r=kw.subtractRect({top:l.rowStart,left:l.colStart,bottom:l.rowEnd+1,right:l.colEnd+1},{top:n.rowStart,left:n.colStart,bottom:n.rowEnd+1,right:n.colEnd+1});for(let n=0;n<r.length;n++){const i={rowStart:r[n].top,colStart:r[n].left,rowEnd:r[n].bottom-1,colEnd:r[n].right-1};t.push(i),Qb.isCellWithinRange(e.cell,i)&&(o=t.length-1)}}else t.push(l);t.length>0&&-1===o&&Qb.isCellWithinRange(e.cell,l)&&(o=t.length-1,r={rowIndex:t[t.length-1].rowStart,colIndex:t[t.length-1].colStart})}const i={cell:r,rangeIndex:o,ranges:t};return Qb.isEqualSelectionCoords(i,e)?e:i})},processTouch:!0,consumeTouch:!1}),[oe,c,u,C,d]),Pe=lv(sS(Oe),[]),Ae=n.useMemo(()=>({onSelectionPointerDown:(t,n,o,r,i=oe.cell,l=C,s=t.nativeEvent.shiftKey,d=!1)=>{if(!e||!e.current)return!1;t.stopPropagation(),t.preventDefault(),t.nativeEvent.stopImmediatePropagation();const p=o??e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),h=r??p.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!h)return!1;Ie.current={anchor:p.getAnchor(),coords:h},we.current=null;const f=3===t.nativeEvent.which;if(f&&-1!==Qb.indexOfCoords(h,oe.ranges))return!1;const m=t.nativeEvent.ctrlKey||t.nativeEvent.metaKey,g=m,x=u,y=oe.ranges.length>0,b=m&&x;if(!1===E?.(t,h,oe))return!1;a?.(re.current,t.nativeEvent);const w=!f&&"single"!==c;if(s)return _e(h,i,d),w;const v=Qb.isEqualCells(h,i);if(g){if(v&&(!b||!y))return w;if(b&&-1!==Qb.indexOfCoords(h,oe.ranges)&&x){me.current=h;const e=ke(h,h);return ge.current=e,fe(e),w}return je(h),w}l&&Se(h),v&&0===oe.ranges.length||Te(h)},onSelectionPointerMoveOrWait:(t,n,o,r,i,l=oe.cell,a=!0,s=!1)=>{if(!e?.current)return;if(t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation(),!Ie.current)return;const c=Ie.current.anchor;let d=r??e.current.getViewFromLocation(c),u=i??d.getCellCoordsFromClient(t.clientX,t.clientY);if(!Qb.isEqualCells(u,Ie.current?.coords)&&(Ie.current={anchor:c,coords:u},u&&!1!==_?.(t,u,re.current))){if(me.current){const e={rowStart:Math.min(u.rowIndex,me.current.rowIndex),colStart:Math.min(u.colIndex,me.current.colIndex),rowEnd:Math.max(u.rowIndex,me.current.rowIndex),colEnd:Math.max(u.colIndex,me.current.colIndex)},t={rowIndex:e.rowStart,colIndex:e.colStart},n={rowIndex:e.rowEnd,colIndex:e.colEnd};if(Ce(t)||Ce(n))return;const o=ke(t,n);ge.current=o,fe(o)}else _e(u,l,s);a&&wC(d,u,e)}},onPointerUp:e=>{Ie.current=null,e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation();try{s?.(re.current,e)}catch(e){console.warn(e)}if(!me.current)return;const t=ge.current;me.current=null,ge.current=null,fe(null),ne(e=>{if(ie.current=!1,0===(e=bC(e)).ranges.length)return e;let n=[],o=-1,r=e.cell;for(let i=0;i<e.ranges.length;i++){const l=e.ranges[i];if(Qb.isRangesIntersect(l,t)){const r=kw.subtractRect({top:l.rowStart,left:l.colStart,bottom:l.rowEnd+1,right:l.colEnd+1},{top:t.rowStart,left:t.colStart,bottom:t.rowEnd+1,right:t.colEnd+1});for(let t=0;t<r.length;t++){const i={rowStart:r[t].top,colStart:r[t].left,rowEnd:r[t].bottom-1,colEnd:r[t].right-1};n.push(i),Qb.isCellWithinRange(e.cell,i)&&(o=n.length-1)}}else n.push(l);n.length>0&&-1===o&&Qb.isCellWithinRange(e.cell,l)&&(o=n.length-1,r={rowIndex:n[n.length-1].rowStart,colIndex:n[n.length-1].colStart})}const i={cell:r,rangeIndex:o,ranges:n};return Qb.isEqualSelectionCoords(i,e)?e:i})}}),[oe,c,u,C,d]),Fe=lv((t,n=!1,o=!1,i=0)=>{if(!e.current||!oe.cell)return;let l=oe.cell,a=oe.cell;if(n&&oe.ranges.length>0){const e=oe.ranges[oe.rangeIndex],n=oe.cell;switch(t){case bb:a={rowIndex:n.rowIndex===e.rowStart?e.rowEnd:e.rowStart,colIndex:e.colEnd},l={rowIndex:n.rowIndex===e.rowStart?e.rowStart:e.rowEnd,colIndex:e.colStart};break;case wb:a={rowIndex:n.rowIndex===e.rowEnd?e.rowStart:e.rowEnd,colIndex:e.colEnd},l={rowIndex:n.rowIndex===e.rowEnd?e.rowEnd:e.rowStart,colIndex:e.colStart};break;case vb:a={rowIndex:e.rowEnd,colIndex:n.colIndex===e.colStart?e.colEnd:e.colStart},l={rowIndex:e.rowStart,colIndex:n.colIndex===e.colStart?e.colStart:e.colEnd};break;case Sb:a={rowIndex:e.rowEnd,colIndex:n.colIndex===e.colEnd?e.colStart:e.colEnd},l={rowIndex:e.rowStart,colIndex:n.colIndex===e.colEnd?e.colEnd:e.colStart}}}const s=P(a);let{rowStart:c,colStart:d}=s;const u=W();if(we.current)switch(t){case bb:case wb:we.current.colIndex>=s.colStart&&we.current.colIndex<=s.colEnd&&(d=we.current.colIndex);break;case vb:case Sb:we.current.rowIndex>=s.rowStart&&we.current.rowIndex<=s.rowEnd&&(c=we.current.rowIndex)}if(!i){switch(t){case bb:c=BS(J,Math.max(s.rowStart-1,u.top),t);break;case wb:c=BS(J,Math.min(s.rowEnd+1,u.bottom),t);break;case vb:d=BS(ee,Math.max(s.colStart-1,u.left),t);break;case Sb:d=BS(ee,Math.min(s.colEnd+1,u.right),t)}if(o)switch(t){case bb:c=v({...a,colIndex:oe.cell.colIndex},K,J,t,!1,Math.max(u.top,J(u.top,!1)));break;case wb:c=v({...a,colIndex:oe.cell.colIndex},K,J,t,!1,Math.min(u.bottom,u.bottom-J(u.bottom,!0)));break;case vb:d=v({...a,rowIndex:oe.cell.rowIndex},K,ee,t,!1,Math.max(u.left,ee(u.left,!1)));break;case Sb:d=v({...a,rowIndex:oe.cell.rowIndex},K,ee,t,!1,Math.min(u.right,u.right-ee(u.right,!0)))}}let p=null;if(i){let n=0;switch(t){case bb:n=r.getRowOffset(c+1),c=Math.max(u.top,r.getRowIndex(n-i)),p={top:r.getRowOffset(c+1)-(n-e.current.getScrollPosition().top)};break;case wb:n=r.getRowOffset(c),c=Math.min(u.bottom,r.getRowIndex(n+i)),p={top:r.getRowOffset(c)-(n-e.current.getScrollPosition().top)};break;case vb:n=r.getColOffset(d+1),d=Math.max(u.left,r.getColIndex(n-i)),p={left:r.getColOffset(d+1)-(n-e.current.getScrollPosition().left)};break;case Sb:n=r.getColOffset(d),d=Math.min(u.right,r.getColIndex(n+i)),p={left:r.getColOffset(d)-(n-e.current.getScrollPosition().left)}}}const h={rowIndex:c,colIndex:d},f=P(h),m={rowIndex:f.rowStart,colIndex:f.colStart};n||(we.current=h);const g=Qb.isEqualCells(be.current,m)&&Qb.isEqualCells(be.current,l);if(n&&!g?_e(m,l):Te(m),p)e.current.scrollTo(p);else{if(n&&be.current){const e=W();if(t===Sb&&be.current.colIndex===e.left||t===vb&&be.current.colIndex===e.right||t===bb&&be.current.rowIndex===e.bottom||t===wb&&be.current.rowIndex===e.top)return}t===vb||t===Sb?Se({colIndex:h.colIndex}):t!==bb&&t!==wb||Se({rowIndex:h.rowIndex})}},[oe,P]),ze=lv(t=>{if(!e.current)return;if(0===oe.ranges.length)return void Fe(t);const n=P(oe.cell);if(Qb.isEqualRangesArrays([n],oe.ranges))return void Fe(t);const o=ZS(oe,t,P,J,ee);ne(e=>{ie.current=!1,e=bC(e);const t={...e,cell:o.cell,rangeIndex:o.rangeIndex};return Qb.isEqualSelectionCoords(t,e)?e:t}),o.cell&&Se(o.cell)},[oe,P]),Be=n.useCallback(()=>{const e=W();_e({rowIndex:e.top},{rowIndex:e.bottom})},[]),Ne=n.useCallback(()=>{const e=W();_e({colIndex:e.left},{colIndex:e.right})},[]),Ve=lv(()=>{oe.cell&&e?.current&&Se(oe.cell)},[oe.cell]),He=n.useCallback((e=!1)=>{const t={rowIndex:W().top};e?_e(t):Te(t),Se(t)},[]),$e=n.useCallback((e=!1)=>{const t={rowIndex:W().bottom};e?_e(t):Te(t),Se(t)},[]),We=n.useCallback((e=!1)=>{const t={colIndex:W().left};e?_e(t):Te(t),Se(t)},[]),Ue=n.useCallback((e=!1)=>{const t=W(),n={rowIndex:t.top,colIndex:t.left};e?_e(n):Te(n),Se(n)},[]),qe=n.useCallback((e=!1)=>{const t=W(),n={colIndex:S?.()?.colEnd??t.right};e?_e(n):Te(n),Se(n)},[S]),Ze=n.useCallback((e=!1)=>{const t=W(),n={rowIndex:S?.()?.rowEnd??t.bottom,colIndex:S?.()?.colEnd??t.right};e?_e(n):Te(n),Se(n)},[S]),Ge=lv(t=>{if(!e.current)return;if(oe.ranges.length<=1)return;const n=t===vb||t===bb;let o=oe.rangeIndex+(n?-1:1);o<0?o=oe.ranges.length-1:o>oe.ranges.length-1&&(o=0);const r=oe.ranges[o],i=ZS({cell:{rowIndex:r.rowEnd,colIndex:r.colEnd},rangeIndex:0,ranges:[r]},Sb,P,J,ee);ne(e=>{ie.current=!1,e=bC(e);const t={...e,cell:i.cell,rangeIndex:o};return Qb.isEqualSelectionCoords(t,e)?e:t}),i.cell&&Se(i.cell)},[oe,P]),Ke=lv(()=>{const e=qS(oe);ne(t=>{ie.current=!1,t=bC(t);const n={...t,visibleSelection:e};return Qb.isEqualSelectionCoords(n,t)?t:n}),e.cell&&Se(e.cell)},[oe,P]),Xe=lv(()=>{if(!e.current)return;if(0===oe.ranges.length)return;const t=oe.cell,n=oe.ranges[oe.rangeIndex],o=qS({cell:t,rangeIndex:0,ranges:[n]}),r=o.ranges[o.rangeIndex];let i;i=r.rowStart===t.rowIndex&&r.colStart===t.colIndex?{rowIndex:r.rowStart,colIndex:r.colEnd}:r.rowStart===t.rowIndex&&r.colEnd===t.colIndex?{rowIndex:r.rowEnd,colIndex:r.colStart}:r.rowEnd===t.rowIndex&&r.colStart===t.colIndex?{rowIndex:r.rowEnd,colIndex:r.colEnd}:{rowIndex:r.rowStart,colIndex:r.colStart},ne(e=>{e=bC(e);const t={...e,cell:i};return Qb.isEqualSelectionCoords(t,e)?e:t}),i&&Se(i)},[oe,P]),Ye=n.useCallback((t=!1)=>{Fe(wb,t,!1,e.current.getDimensions().containerHeight)},[]),Je=n.useCallback((t=!1)=>{Fe(bb,t,!1,e.current.getDimensions().containerHeight)},[]),Qe=n.useCallback((t=!1)=>{Fe(Sb,t,!1,e.current.getDimensions().containerWidth)},[]),et=n.useCallback((t=!1)=>{Fe(vb,t,!1,e.current.getDimensions().containerWidth)},[]),tt=n.useCallback(()=>{ze(vb)},[]),nt=n.useCallback(()=>{ze(Sb)},[]),ot=n.useCallback(()=>{ze(bb)},[]),rt=n.useCallback(()=>{ze(wb)},[]),it=n.useCallback(()=>{Ge(vb)},[]),lt=n.useCallback(()=>{Ge(Sb)},[]),at=n.useCallback(()=>{Xe()},[]),st=n.useCallback(()=>{Fe(vb,!1,!1)},[]),ct=n.useCallback(()=>{Fe(vb,!0,!1)},[]),dt=n.useCallback(()=>{Fe(vb,!1,!0)},[]),ut=n.useCallback(()=>{Fe(vb,!0,!0)},[]),pt=n.useCallback(()=>{Fe(Sb,!1,!1)},[]),ht=n.useCallback(()=>{Fe(Sb,!0,!1)},[]),ft=n.useCallback(()=>{Fe(Sb,!1,!0)},[]),mt=n.useCallback(()=>{Fe(Sb,!0,!0)},[]),gt=n.useCallback(()=>{Fe(bb,!1,!1)},[]),xt=n.useCallback(()=>{Fe(bb,!0,!1)},[]),yt=n.useCallback(()=>{Fe(bb,!1,!0)},[]),bt=n.useCallback(()=>{Fe(bb,!0,!0)},[]),wt=n.useCallback(()=>{Fe(wb,!1,!1)},[]),vt=n.useCallback(()=>{Fe(wb,!0,!1)},[]),St=n.useCallback(()=>{Fe(wb,!1,!0)},[]),Ct=n.useCallback(()=>{Fe(wb,!0,!0)},[]),kt=n.useCallback(()=>{le(e=>e.slice(0,-1))},[]),Et=n.useMemo(()=>{const e=W();return((e,t,n,o,r)=>{for(let i=0;i<e.length;i++){const l=e[i];if(l.rowStart===t&&l.colStart===n&&l.rowEnd===o&&l.colEnd===r)return!0}return!1})(oe.ranges,e.top,e.left,e.bottom,e.right)},[k,oe.ranges]),_t=n.useCallback((t,n=!0)=>{be.current=t,ae(t),n&&t&&e?.current&&Se(t)},[]),Tt=lv((e=!0)=>{const t=pe.current;if(!re.current?.cell)return;const n=re.current?.ranges,o=re.current?.cell;if(!o||!t)return;if(!t)return;let r=null;if(r=n.length>0?n[n.length-1]:P(o),r.colEnd>=r.colStart&&r.rowEnd>=r.rowStart){const n=GS(r,t);let o=e?U:q;try{o?.(r,t,n.direction)}catch(e){console.warn(e)}finally{e&&G?.()}}},[P]),jt=n.useRef(null),Mt=n.useMemo(()=>({onPointerDown:(t,n)=>{if(Le.current=n,!e||!e.current)return!1;const o=e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),r=o?.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);r&&(t.stopPropagation(),ce("crosshair"),jt.current={anchor:o.getAnchor(),coords:r})},onPointerMoveOrWait:(t,n)=>{if(g||!e?.current||!re.current||!jt.current)return;const o=jt.current.anchor;let r=e.current.getViewFromLocation(o),i=r.getCellCoordsFromClient(t.clientX,t.clientY);if(!i)return;jt.current={anchor:o,coords:i};const l=re.current.ranges;let a=ke(re.current.cell,i);if(!a)return;const s=l.length>0,c=s?l[l.length-1]:P(re.current.cell);if(!a)return;const d=a.rowStart<c.rowStart?bb:a.rowEnd>c.rowEnd?wb:a.colEnd>c.colEnd?Sb:vb,u=W();d===vb&&(a={...c,colStart:Math.max(u.left,a.colStart)}),d===bb&&(a={...c,rowStart:Math.max(u.top,a.rowStart)}),d===Sb&&(a={...c,colEnd:Math.min(u.right,a.colEnd)}),d===wb&&(a={...c,rowEnd:Math.min(u.bottom,a.rowEnd)});const p=GS(c,a);if(!j?.(c)){let e;"function"==typeof ve.current?e=ve.current(c):T&&(e=T),a=((e,t,n,o,r,i)=>{const l={...t};if(0===n.length)return l;if(r===vb){const t=e.colEnd+1-e.colStart;l.colStart=e.colStart-Math.ceil(i/t)*t,l.colStart<o.left&&(l.colStart=l.colStart+Math.ceil((o.left-l.colStart)/t)*t)}else if(r===Sb){const t=e.colEnd+1-e.colStart;l.colEnd=e.colEnd+Math.ceil(i/t)*t,l.colEnd>o.right&&(l.colEnd=l.colEnd-Math.ceil((o.right-l.colEnd)/t)*t)}else if(r===bb){const t=e.rowEnd+1-e.rowStart;l.rowStart=e.rowStart-Math.ceil(i/t)*t,l.rowStart<o.top&&(l.rowStart=l.rowStart+Math.ceil((o.top-l.rowStart)/t)*t)}else if(r===wb){const t=e.rowEnd+1-e.rowStart;l.rowEnd=e.rowEnd+Math.ceil(i/t)*t,l.rowEnd>o.bottom&&(l.rowEnd=l.rowEnd-Math.ceil((o.bottom-l.rowEnd)/t)*t)}return l})(c,a,e,u,p.direction,p.amount)}if(s&&Qb.isRangeWithinRange(a,c)&&(a=null),!Qb.isEqualRanges(a,pe.current)){if(ue(a),pe.current=a,!a){try{Z?.()}catch(t){}return void G?.()}Tt(!1)}Le.current=n,wC(r,i,e)},onPointerUp:(t,n)=>{Le.current=n,Promise.resolve(Tt(!0)).finally(()=>{G?.(),ue(null),pe.current=null,jt.current=null,ce(null),e.current?.focus()})}}),[P]),Rt=sS(Mt),It=n.useMemo(()=>({onPointerDown:Rt}),[Rt]),[Dt,Lt]=n.useState(null),Ot=n.useRef(null),Pt=n.useMemo(()=>({onPointerDown:(t,n)=>{if(Le.current=n,!e||!e.current)return!1;const o=e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),r=o?.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!r)return;if(!1===E?.(t,r,oe))return!1;t.stopPropagation(),ce("default");const i=o.getRelativePointFromClient(0,0),l=re.current?.ranges[re.current?.ranges.length-1]??Qb.cellToRange(re.current?.cell),a=o.toClipBounds(o.getRangeCoordsBounds(l)),s={x:0,y:0};a.x-i.x>t.nativeEvent.clientX?s.x=t.nativeEvent.clientX-(a.x-i.x):t.nativeEvent.clientX>=a.x-i.x+a.width&&(s.x=Math.max(0,t.nativeEvent.clientX-(a.x-i.x+a.width))+1),a.y-i.y>t.nativeEvent.clientY?s.y=t.nativeEvent.clientY-(a.y-i.y):t.nativeEvent.clientY>=a.y-i.y+a.height&&(s.y=Math.max(0,t.nativeEvent.clientY-(a.y-i.y+a.height))+1),M?.(l,t.nativeEvent,n),Ot.current={range:l,anchor:o.getAnchor(),cell:r,isMoving:!1,extrusion:s}},onPointerMoveOrWait:(t,n,o)=>{if(O||!e?.current||!re.current||!Ot.current)return;const r=t.clientX-o.clientX,i=t.clientY-o.clientY;if(Ot.current.isMoving=Ot.current.isMoving||Math.abs(r)>Math.max(1,2)||Math.abs(i)>Math.max(1,2)||performance.now()-o.timeStamp>500,!Ot.current.isMoving)return;const l=Ot.current.anchor,a=Ot.current.extrusion;let s=e.current.getViewFromLocation(l),c=s.getCellCoordsFromClient(t.clientX-a.x,t.clientY-a.y,!0);if(!c)return;const d=Ot.current.cell,u=Ot.current.range,p=W(),h=u.colEnd-u.colStart+1,f=Math.min(Math.max(0,d.colIndex-u.colStart),h-1),m=Math.min(p.right-h+1,Math.max(p.left,c.colIndex-f)),g=u.rowEnd-u.rowStart+1,x=Math.min(Math.max(0,d.rowIndex-u.rowStart),g-1),y=Math.min(p.bottom-g+1,Math.max(p.top,c.rowIndex-x)),b={colStart:m,colEnd:m+h-1,rowStart:y,rowEnd:y+g-1};Qb.isEqualRanges(Dt,b)&&!(e=>!e||!Le.current||Le.current.ctrlKey!==e.ctrlKey||Le.current.shiftKey!==e.shiftKey||Le.current.altKey!==e.altKey||Le.current.metaKey!==e.metaKey)(t)||(Lt(b),R?.(b,t,n)),Le.current=n,wC(s,c,e)},onPointerUp:(t,n)=>{Le.current=n;const o=()=>{Lt(null),Ot.current=null,ce(null),e.current?.focus()};if(!Ot.current)return void o();const r=Ot.current.range,i=Dt;I?.(r,t,n),Promise.resolve(r&&i&&D?.(r,i,t,n)).finally(()=>{o()})}}),[Dt]),At=sS(Pt),Ft=n.useMemo(()=>({onPointerDown:At}),[At]),zt=n.useRef(null),Bt=n.useMemo(()=>{const e=Qb.isEqualSelectionCoords(oe,zt.current)?zt.current:oe;return zt.current=e,e},[oe]),Nt=n.useCallback(o=>{let r=null,i="br";const l=[],a={stroke:x,fill:z,strokeWidth:.5},s=(e,t,n)=>{const r=o.toClipBounds(o.getRangeCoordsBounds(e),mC);if(!r)return;r.x=r.width>0?r.x:r.x-a.strokeWidth/2,r.y=r.height>0?r.y:r.y-a.strokeWidth/2,r.width=Math.max(r.width,a.strokeWidth),r.height=Math.max(r.height,a.strokeWidth);const i={key:`selection-fill-${t}`,range:e,...r,...a};if(n){const e=o.getCellCoordsAsRangeCoords(n);i.cell=n,i.pathBounds=o.toClipBounds(o.getRangeCoordsBounds(e),mC),i.pathBounds&&(i.pathBounds.width<=0||i.pathBounds.height<=0)&&(delete i.pathBounds,delete i.cell)}return X(i)};let c=oe?bC(oe):null;const d=c?.cell?o.getCellCoordsAsRangeCoords(c?.cell):gC;!c||c.ranges&&0!==c.ranges.length||(c={ranges:[d],rangeIndex:0,cell:c.cell});for(let e=0;c&&e<c.ranges.length;e++){const t=c.ranges[e],n=s(t,e,e===c.rangeIndex?c.cell:null);n&&l.push(n);const a=2,d=.5,u=o.toClipBounds(o.getRangeCoordsBounds(t,{top:0,left:0,right:0,bottom:0}),mC);if(u){const n=(c.ranges.length,4);l.push(X({range:t,key:`selection-inside-edge-${e}`,x:u.x-1,y:u.y-1,width:Math.max(u.width+1,0),height:Math.max(u.height+1,0),style:{overflow:"hidden"},stroke:x,strokeWidth:n}))}if(1===c.ranges.length){const n=o.toClipBounds(o.getRangeCoordsBounds(t),mC);if(n){O||l.push(X({range:t,key:`move-selection-hit-box-${e}`,x:n.width>1?n.x:n.x-(A/2+1),y:n.height>1?n.y:n.y-(A/2+1),width:Math.max(n.width+2,1),height:Math.max(n.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:Dt?void 0:"move",pointerEvents:"stroke"},strokeWidth:A,...Ft}));const o=a;l.push(X({range:t,key:`selection-single-${e}`,x:n.x-o/2,y:n.y-o/2,width:Math.max(n.width+o/2,1),height:Math.max(n.height+o/2,1),stroke:B,strokeWidth:o}))}}else{const n=o.toClipBounds(o.getRangeCoordsBounds(t,{top:-1,left:-1,right:-2,bottom:-2}),mC);n&&l.push(X({range:t,key:`selection-multi-${e}`,x:n.width>1?n.x:n.x-d/2,y:n.height>1?n.y:n.y-d/2,width:Math.max(n.width,d)+1,height:Math.max(n.height,d)+1,stroke:B,style:{overflow:"hidden"},strokeWidth:2}))}if(c.ranges.length>1&&e===c.rangeIndex){const n=o.getCellCoordsAsRangeCoords(c.cell),r=o.toClipBounds(o.getRangeCoordsBounds(n,{top:1,left:1,right:-1,bottom:-1}),mC);r&&l.push(X({range:t,key:`selection-anchor-${e}`,x:r.x,y:r.y,width:Math.max(r.width,d),height:Math.max(r.height,d),stroke:B,style:{overflow:"hidden"},strokeWidth:2}))}if(e===c.ranges.length-1){r=null,i=null;const e=t.rowStart===W().top&&t.rowEnd===W().bottom,n=t.colStart===W().left&&t.colEnd===W().right,l=o.getRangeCoordsBounds(t);let s=null;if(e||n){if(s=o.toClipBounds(l,mC),Object.keys(o.allViews()).length>1){const r=o.getVisibleRangeCoords(),i=o.allViews()[Cb],l=o.allViews()[kb],a=o.allViews()[Eb],c=o.getAnchor();(n&&(c===kb&&i||c===_b&&a||!Qb.isCellWithinRange({colIndex:t.colStart,rowIndex:t.rowEnd},r)&&!Qb.isCellWithinRange({colIndex:t.colStart,rowIndex:t.rowEnd+1},r))||e&&(c===Eb&&i||c===_b&&l||!Qb.isCellWithinRange({colIndex:t.colEnd,rowIndex:t.rowStart},r)&&!Qb.isCellWithinRange({colIndex:t.colEnd+1,rowIndex:t.rowStart},r)))&&(s=null)}}else s=o.toClipBounds(l,mC);if(!s||0===s.width||0===s.height)continue;r={x:s.x+s.width+1,y:s.y+s.height+1},0===s.width||0===s.height||t.rowStart===W().top&&t.colStart===W().left&&t.rowEnd===W().bottom&&t.colEnd===W().right||(e?(r.y=a,i="tr"):n&&(r.x=a,i="bl"))}}let u=null;if(he){const e=o.toClipBounds(o.getRangeCoordsBounds(he,{top:0,left:0,right:0,bottom:0}),mC);if(e){const t=2;u=X({...a,range:he,key:"remove-selection",x:e.x,y:e.y,width:e.width,height:e.height,strokeWidth:t,stroke:N,fill:V})}}let p=null;if(de){const e=o.toClipBounds(o.getRangeCoordsBounds(de,{top:0,left:0,right:0,bottom:0}),mC);if(e){const t=2;p=X({range:de,key:"selection-fill-outline",x:e.x-t/2,y:e.y-t/2,width:e.width+t/2,height:e.height+t/2,strokeWidth:t,stroke:B,strokeDasharray:"3 2"})}}let h=null;!g&&r&&!Dt&&(h=n.createElement(lC,{...r,corner:i,size:7.5,borderStroke:`${x} solid`,style:{borderRadius:1},background:B,...It,key:"fillHandle"}));const f=[...l];if(u&&f.push(u),p&&f.push(p),h&&f.push(h),!H&&Re&&1===c?.ranges.length&&c.ranges[c.ranges.length-1]){const n=c.ranges[c.ranges.length-1],r=n.rowStart===W().top&&n.rowEnd===W().bottom,i=n.colStart===W().left&&n.colEnd===W().right,l={view:o,range:n,borderStroke:`${B} solid`,background:x,selectionTouchPointerHandler:Ae,...$,onTouchSelectStart:e=>ye(e),onTouchSelectEnd:()=>ye(null),currentTouchAnchor:xe};f.push(t.jsx(fC,{anchor:i?"b":r?"r":"br",scrollableElement:e.current,...l},"touch-select-handle-after")),f.push(t.jsx(fC,{anchor:i?"t":r?"l":"tl",scrollableElement:e.current,...l},"touch-select-handle-before"))}if(Dt){const e=o.toClipBounds(o.getRangeCoordsBounds(Dt,{top:1,left:1,right:1,bottom:1}),mC);e&&f.push(X({range:Dt,key:"selection-move-outline",x:e.x-F/2,y:e.y-F/2,width:Math.max(e.width+F/2,1),height:Math.max(e.height+F/2,1),stroke:B,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:F}))}return t.jsx("div",{children:f},"selection")},[Bt,he,g,de,O,Dt,W,x,B,z,N,V,H,$,xe]),Vt=n.useMemo(()=>{const t=()=>e.current;return[new vS("moveToPageDown",t,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>Ye(!1)),new vS("selectToPageDown",t,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[Kw]}]},()=>Ye(!0)),new vS("moveToPageRight",t,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[Xw]}]},()=>Qe(!1)),new vS("selectToPageRight",t,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[Xw,Kw]}]},()=>Qe(!0)),new vS("moveToPageUp",t,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>Je(!1)),new vS("selectToPageUp",t,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[Kw]}]},()=>Je(!0)),new vS("moveToPageLeft",t,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[Xw]}]},()=>et(!1)),new vS("selectToPageLeft",t,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[Xw,Kw]}]},()=>et(!0)),new vS("selectColumn",t,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[Yw]}},Be),new vS("selectRow",t,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[Kw]}},Ne),new vS("selectToColumnStart",t,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>He(!0)),new vS("selectToColumnEnd",t,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>$e(!0)),new vS("moveToRowStart",t,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>We(!1)),new vS("selectToRowStart",t,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[Kw]}]},()=>We(!0)),new vS("moveToSheetStart",t,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Yw]}]},()=>Ue(!1)),new vS("selectToSheetStart",t,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Yw,Kw]}]},()=>Ue(!0)),new vS("moveToRowEnd",t,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>qe(!1)),new vS("selectToRowEnd",t,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[Kw]}]},()=>qe(!0)),new vS("moveToSheetEnd",t,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[Yw]}]},()=>Ze(!1)),new vS("selectToSheetEnd",t,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[Yw,Kw]}]},()=>Ze(!0)),new vS("scrollToActiveCoords",t,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[Yw]}},Ve),new vS("scrollToActiveCoordsClearSelection",t,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[Kw]}},()=>{Me(),_t(oe.cell,!0)}),new vS("traverseSelectionRight",t,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},nt),new vS("traverseSelectionLeft",t,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[Kw]}},tt),new vS("traverseSelectionDown",t,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},rt),new vS("traverseSelectionUp",t,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[Kw]},{key:"NumpadEnter",modifiers:[Kw]}]},ot),new vS("moveLeft",t,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},st),new vS("selectLeft",t,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[Kw]}]},ct),new vS("moveContentfulLeft",t,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Yw]}]},dt),new vS("selectContentfulLeft",t,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Yw,Kw]}]},ut),new vS("moveRight",t,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},pt),new vS("selectRight",t,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[Kw]}]},ht),new vS("moveContentfulRight",t,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Yw]}]},ft),new vS("selectContentfulRight",t,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Yw,Kw]}]},mt),new vS("moveUp",t,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},gt),new vS("selectUp",t,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[Kw]}]},xt),new vS("moveContentfulUp",t,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Yw]}]},yt),new vS("selectContentfulUp",t,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Yw,Kw]}]},bt),new vS("moveDown",t,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},wt),new vS("selectDown",t,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[Kw]}]},vt),new vS("moveContentfulDown",t,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Yw]}]},St),new vS("selectContentfulDown",t,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Yw,Kw]}]},Ct),new vS("selectVisible",t,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[Xw]}},Ke),new vS("traverseSelectionPreviousRange",t,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[Yw,Xw]}},it),new vS("traverseSelectionNextRange",t,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[Yw,Xw]}},lt),new vS("traverseSelectionCorners",t,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[Yw]}},at)]},[]);return n.useMemo(()=>{o?.addCommands(Vt,!0)},[o]),{selection:Bt,setSelectionCell:_t,setSelectionRanges:le,overlay:Nt,cursor:se,onPointerDown:Pe,clearLastSelection:kt,newSelection:Te,modifySelection:_e,appendSelection:je,clearSelections:Me,isEntire:Et,navigate:Fe,navigateSelection:ze}};function CC(e,t){if(!e)throw new Error("Invariant failed")}const kC={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},EC=Object.freeze({top:0,left:0}),_C=Object.freeze({bottom:-4,right:-4}),TC=Object.freeze({horizontal:!0,vertical:!0}),jC=[Cb,kb,Eb,_b],MC=3e3,RC={},IC=n.memo(n.forwardRef((e,o)=>{const{width:r,height:i,rowCount:l=1,columnCount:a=1,defaultRowHeight:s,defaultColumnWidth:c,getRowHeight:d,getColumnWidth:u,layout:p,onViewportScroll:h,onImmediateScroll:f,showGridLines:m=!0,gridLineColor:g="rgb(224, 224, 224)",gridLineRowsProps:x,gridLineColumnsProps:y,clipCells:b=!0,cursor:w,freezeLeft:v=0,freezeTop:S=0,freezeLeftProps:C,freezeTopProps:k,cellRenderer:E,onViewportChange:_,onFirstRender:T,overlayRenderer:j,overlayProps:M,overlays:R,overlaysProps:I,allowOverlaysOverflow:D=!1,stageProps:L,stageWrapper:O=null,hiddenRowsAt:P,hiddenColumnsAt:A,hiddenCellAt:F,getVisibleCells:z,zoom:B=1,enableMouseWheel:N=!0,onWheelScroll:V,getCellCoordsAsRangeCoords:H=Qb.cellToRange,scrollPoint:$=EC,style:W={},...U}=e;CC(E),CC(!e?.children);const q=lv(f,[f]),Z=lv(_,[_]),G=lv(h,[h]),K=lv(V,[V]),X=lv(T,[T]),Y=n.useRef(null),J=n.useRef(null),Q=n.useRef(null),[ee,te]=n.useReducer(e=>e+1,0),[ne,oe]=n.useState({left:$?.left??0,top:$?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),re=n.useRef(null),ie=n.useRef(ne),{top:le,left:ae,verticalScrollDirection:se,horizontalScrollDirection:ce}=ne,de=n.useRef(!1),ue=(e=>{const{rowCount:t,columnCount:o,defaultRowHeight:r,getRowHeight:i,defaultColumnWidth:l,getColumnWidth:a}=e||{},s=n.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),c=lv(e=>MS({itemType:"row",itemCount:t,itemSize:i??(()=>r??20),instanceProps:s.current,offset:e}),[t,i,r]),d=lv(e=>-1===e?0:jS({itemType:"row",index:e,itemSize:i??(()=>r??20),instanceProps:s.current}).offset,[i,r]),u=lv(e=>jS({itemType:"row",index:e,itemSize:i??(()=>r??20),instanceProps:s.current}).size,[i,r]),p=lv(e=>MS({itemType:"column",itemCount:o,itemSize:a??(()=>l??75),instanceProps:s.current,offset:e}),[o,a,l]),h=lv(e=>-1===e?0:jS({itemType:"column",index:e,itemSize:a??(()=>l??75),instanceProps:s.current}).offset,[a,l]),f=lv(e=>jS({itemType:"column",index:e,itemSize:a??(()=>l??75),instanceProps:s.current}).size,[a,l]),[m,g]=n.useReducer(e=>e+1,0),x=()=>({getRowOffset:d,getColOffset:h,getRowIndex:c,getColIndex:p}),[y,b]=n.useState(()=>e?x():null);return n.useEffect(()=>{b(e?x():null)},[m,t,o,l,r,u,f]),y})({rowCount:l,columnCount:a,defaultRowHeight:s,defaultColumnWidth:c,getRowHeight:d,getColumnWidth:u}),pe=n.useRef(null),he=n.useMemo(()=>{const e=p||ue;return pe.current=null,{getColOffset:t=>e.getColOffset(t)*B,getColIndex:t=>e.getColIndex(t/B),getRowOffset:t=>e.getRowOffset(t)*B,getRowIndex:t=>e.getRowIndex(t/B)}},[ue,p,B]),fe=(e,t,n)=>{const o=(t?.left??0)+0,r=(t?.top??0)+0;return{getColOffset:t=>e.getColOffset(t)-o,getColIndex:t=>e.getColIndex(t+o),getRowOffset:t=>e.getRowOffset(t)-r,getRowIndex:t=>e.getRowIndex(t+r)}},me=n.useCallback((e,t=!1)=>KS(e,t,he.getRowOffset,t?0:l),[l,he?.getRowOffset]),ge=lv(P??me,[P]),xe=n.useCallback((e,t=!1)=>KS(e,t,he.getColOffset,t?a:0),[a,he?.getColOffset]),ye=lv(A??xe,[A]),be=n.useMemo(()=>Math.min(r??800,he.getColOffset(a)),[he.getColOffset,a,r]),we=n.useMemo(()=>Math.min(i??600,he.getRowOffset(l)),[he.getRowOffset,l,i]),ve=n.useCallback(e=>{kw.canUseDOM&&setTimeout(()=>{Y.current?.focus({preventScroll:!0,...e})},0)},[]),Se=n.useCallback(e=>Y.current?.contains(e)||J.current?.contains(e),[]);n.useEffect(()=>{de.current&&(re.current&&re.current.left!==ie.current?.left&&re.current.top!==ie.current?.top||(re.current=null,G?.({left:ae,top:le})))},[ae,le]);const Ce=lv(()=>({top:le,left:ae}),[le,ae]),ke=n.useMemo(()=>{const e=[];let t=0,n=0;"number"==typeof S?t=S:(t=S.index??0,n=(S.scrollOffset??0)*B);const o=n,r=he.getRowOffset(t),i=r-o;if(t>0){const l=fe(he,{top:n+he.getRowOffset(0)}),a=he.getRowIndex(o),s=he.getRowIndex(r-1);let c;e[1]={minIndex:a,maxIndex:s,minCoord:0,maxCoord:t-1,minBounds:0,maxBounds:i,visibleIndices:()=>c||(c=Object.freeze(NS(ge,a,s)),c),layout:l,maxVirtualBounds:r,scrollOffset:n,freezeOffset:n}}const a=Math.max(0,we-i),s=fe(he,{top:le+i}),c=s.getRowIndex(0),d=s.getRowIndex(a);let u;return e[0]={minIndex:c,maxIndex:d,minCoord:t,maxCoord:l-1,minBounds:i,maxBounds:a,visibleIndices:()=>u||(u=Object.freeze(NS(ge,c,d)),u),layout:s,maxVirtualBounds:he.getRowOffset(l),scrollOffset:le,freezeOffset:(t>0?he.getRowOffset(t):0)-n},e},[he.getRowIndex,he.getRowOffset,ge,we,l,S,le,B]),Ee=n.useMemo(()=>{const e=[];let t=0,n=0;"number"==typeof v?t=v:(t=v.index??0,n=(v.scrollOffset??0)*B);const o=n,r=he.getColOffset(t),i=r-o;if(t>0){const l=fe(he,{left:n+he.getColOffset(0)}),a=he.getColIndex(o),s=he.getColIndex(r-1);let c;e[1]={minIndex:a,maxIndex:s,minCoord:0,maxCoord:t-1,minBounds:0,maxBounds:i,visibleIndices:()=>c||(c=Object.freeze(NS(ye,a,s)),c),layout:l,maxVirtualBounds:r,scrollOffset:n,freezeOffset:n}}const l=Math.max(0,be-i),s=fe(he,{left:ae+i}),c=s.getColIndex(0),d=s.getColIndex(l);let u;return e[0]={minIndex:c,maxIndex:d,minCoord:t,maxCoord:a-1,minBounds:i,maxBounds:l,visibleIndices:()=>u||(u=Object.freeze(NS(ye,c,d)),u),layout:s,maxVirtualBounds:he.getColOffset(a),scrollOffset:ae,freezeOffset:(t>0?he.getColOffset(t):0)-n},e},[he.getColIndex,he.getColOffset,ye,be,a,v,ae,B]),_e=n.useRef({}),Te=n.useRef([]),je=n.useMemo(()=>{let e={};const t=(t,n,o,r,i)=>{const l={vertical:r?.vertical||!1,horizontal:r?.horizontal||!1};if(t>=Ee.length||n>=ke.length)return null;const a={rowStart:ke[n].minIndex,colStart:Ee[t].minIndex,rowEnd:ke[n].maxIndex,colEnd:Ee[t].maxIndex};if(a.rowStart>a.rowEnd||a.colStart>a.colEnd)return null;const s={getColIndex:e=>Ee[t].layout.getColIndex(e),getColOffset:e=>Ee[t].layout.getColOffset(e),getRowIndex:e=>ke[n].layout.getRowIndex(e),getRowOffset:e=>ke[n].layout.getRowOffset(e)},c=Object.freeze({left:i?.left??0,top:i?.top??0,right:i?.right??0,bottom:i?.bottom??0}),d=Object.freeze({x:Ee[t].minBounds,y:ke[n].minBounds,width:Ee[t].maxBounds,height:ke[n].maxBounds}),u=(e,t)=>YS(s,e??a,t),p={width:Ee[t].maxVirtualBounds,height:ke[n].maxVirtualBounds},h={left:Ee[t].scrollOffset,top:ke[n].scrollOffset},f={left:Ee[t].freezeOffset,top:ke[n].freezeOffset},m={width:be,height:we};let g=null,x=null;const y=(f.top+(r.vertical?h.top:0))/B,b=(f.left+(r.horizontal?h.left:0))/B;return{getStage:()=>Y.current??null,getVisibleRangeCoords:()=>a,toClipBounds:(e,t)=>{let n,o=0;return void 0===t||"number"==typeof t?(n=u(a),o=t):n=t,((e,t,n=0)=>{if(e.x>t.width||e.y>t.height)return null;const o={left:e.x,top:e.y,bottom:e.height+e.y,right:e.width+e.x},r={left:t.x+n,top:t.y+n,bottom:t.height-2*n+t.y,right:t.width-2*n+t.x},i={left:Math.max(o.left,r.left),top:Math.max(o.top,r.top),bottom:Math.min(o.bottom,r.bottom),right:Math.min(o.right,r.right)},l={x:i.left,y:i.top,width:i.right-i.left,height:i.bottom-i.top};return l.height<0||l.width<0?null:l})(e??{x:0,y:0,width:d.width,height:d.height},n,o)},toViewBounds:e=>0===b&&0===y&&1===B?e:{x:(e.x-b)*B,y:(e.y-y)*B,width:e.width*B,height:e.height*B},toAbsoluteBounds:e=>0===b&&0===y&&1===B?e:{x:e.x/B+b,y:e.y/B+y,width:e.width/B,height:e.height/B},getRelativePointFromClient:(e,t)=>{const n=Oe(e,t);return{x:n.x-d.x,y:n.y-d.y}},getLayout:()=>s,getCellCoordsAsRangeCoords:H,getVisibleColumns:()=>Ee[t].visibleIndices(),getVisibleRows:()=>ke[n].visibleIndices(),getVisibleColumnOffsets:()=>(g||(g=XS(Ee[t].layout,!0,Ee[t].visibleIndices(),a.colStart,a.colEnd)),g),getVisibleRowOffsets:()=>(x||(x=XS(ke[n].layout,!1,ke[n].visibleIndices(),a.rowStart,a.rowEnd)),x),getTotalRangeCoords:()=>({colStart:Ee[t].minCoord,colEnd:Ee[t].maxCoord,rowStart:ke[n].minCoord,rowEnd:ke[n].maxCoord}),getRangeCoordsBounds:u,scrollCellCoordsIntoView:(e,t)=>We(e,t,o),getCellCoordsFromClient:(e,t,n=!1)=>{const o=Oe(e,t);if(!o)return null;const r=s.getColIndex(o.x-d.x),i={rowIndex:s.getRowIndex(o.y-d.y),colIndex:r};if(n)return i;const l=H(i);return{rowIndex:l.rowStart,colIndex:l.colStart}},getZoom:()=>B,getAnchor:()=>o,getBounds:()=>d,getInsets:()=>c,getTotalSize:()=>p,getViewportSize:()=>m,getScrollTopLeft:()=>h,getFreezeTopLeft:()=>f,getScrollOrientation:()=>l,allViews:()=>e}};let n=e[_b]=t(0,0,_b,TC,_C);return n&&(e[_b]=n),n=t(0,1,kb,{horizontal:!0}),n&&(e[kb]=n),n=t(1,0,Eb,{vertical:!0}),n&&(e[Eb]=n),n=t(1,1,Cb,{}),n&&(e[Cb]=n),_e.current=null,e=Object.freeze(e)},[ke,Ee,H]),Me=Object.keys(je),Re=Ee[0]?.maxVirtualBounds??0,Ie=ke[0]?.maxVirtualBounds??0,De=n.useMemo(()=>({left:Ee[1]?Ee[1].layout.getColOffset(Ee[1].maxIndex+1):0,top:ke[1]?ke[1].layout.getRowOffset(ke[1].maxIndex+1):0}),[je]);n.useEffect(()=>{if(Te.current.length>0){for(let e=0;e<Te.current.length;e++)Te.current[e]();Te.current=[]}},[je]);const Le=lv(()=>({containerWidth:be,containerHeight:we,totalWidth:Re,totalHeight:Ie}),[be,we,he]);n.useEffect(()=>{!re.current&&de.current&&Z({top:le,left:ae,width:be,height:we,totalWidth:Re,totalHeight:Ie})},[le,ae,Re,Ie]),n.useEffect(()=>{de.current&&Z({top:le,left:ae,width:be,height:we,totalWidth:Re,totalHeight:Ie})},[be,we]);const Oe=n.useCallback((e,t)=>{CC("number"==typeof e&&"number"==typeof t);const n=Y.current?.getBoundingClientRect();return n?{x:e-n.x,y:t-n.y}:{x:e,y:t}},[]),Pe=lv(e=>je[e]||null,[je]),Ae=lv((e,t)=>{if(1===Object.keys(je).length)return je[_b];const n=Oe(e,t);if(!n)return null;const{x:o,y:r}=n;let i=null;const l=jC;for(let e=0;!i&&e<l.length;e++){const t=je[l[e]];t&&JS(o,r,t.getBounds())&&(i=t)}return i||(i=je[_b]),i},[je,H]),Fe=lv(()=>je[_b].getVisibleRangeCoords(),[je[_b]]),ze=n.useRef(null),Be=n.useCallback(()=>{null!==ze.current&&kw.cancelTimeout(ze.current),ze.current=kw.requestTimeout(Ne,150)},[]),Ne=n.useCallback(()=>{ze.current=null,oe(e=>{const t={...e,verticalScrollDirection:null,horizontalScrollDirection:null};return ie.current=t,t})},[]),Ve=lv(e=>{const t=e?.left??e?.[0],n=e?.top??e?.[1],o=void 0!==t?Math.min(Re-be,Math.max(Ee?.[1]?.scrollOffset??0,t)):ie.current.left,r=void 0!==n?Math.min(Ie-we,Math.max(ke?.[1]?.scrollOffset??0,n)):ie.current.top;if(ie.current.left===o&&ie.current.top===r)return;let i=null,l=null;ie.current.left>o?i=vb:ie.current.left<o&&(i=Sb),ie.current.top>r?l=bb:ie.current.top<r&&(l=wb),kw.throttle(()=>{oe(e=>{const t={...e,left:o,top:r,horizontalScrollDirection:i,verticalScrollDirection:l};return ie.current=t,t})},17)(),re.current?.top===r&&re.current?.left===o||(re.current={left:o,top:r},q({left:o,top:r}),Z({left:o,top:r,width:be,height:we,totalWidth:Re,totalHeight:Ie})),Be()},[Re,Ie,ke,Ee]);n.useEffect(()=>{re.current||Ve({left:ae,top:le})},[Re,be,Ie,we]),n.useLayoutEffect(()=>{re.current={left:$?.left,top:$?.top},Ve(re.current)},[$?.left,$?.top]);const He=lv(e=>{const t=e?.left??e?.[0],n=e?.top??e?.[1],o=e?.behavior??"auto",r={left:ie.current.left+(t??0),top:ie.current.top+(n??0)};o&&(r.behavior=o),Ve(r)},[Re,be,Ie,we]),$e=n.useCallback(e=>{let t=null;if(Object.keys(je).length>1){const n=jC;for(let o=0;!t&&o<n.length;o++){const r=je[n[o]];r&&Qb.isCellWithinRange(e,r.getVisibleRangeCoords())&&(t=r)}}return t||(t=je[_b]),t},[je]),We=lv((e,t={inline:"nearest",block:"nearest"},n=null)=>{const o={rowIndex:0,colIndex:0,...e};let r=null;if(null!==n){if(r=je[n],null===r)return new Promise((e,t)=>{t("Invalid view")})}else r=$e(o);const i=H(o),l=r.getLayout(),a=l.getColOffset(i.colStart),s=l.getRowOffset(i.rowStart),c=l.getColOffset(i.colEnd+1),d=l.getRowOffset(i.rowEnd+1),u=r.getBounds(),p=r.getTotalSize(),h=r.getScrollTopLeft(),f=((e,t,n=!0)=>(n=!0===n?{block:"start",inline:"end"}:!1===n?{block:"end",inline:"end"}:{block:"end",inline:"end",...n},{left:US(n.inline,e.x,e.x+e.width,t.left,t.left+t.width,t.totalWidth),top:US(n.block,e.y,e.y+e.height,t.top,t.top+t.height,t.totalHeight)}))({x:a+h.left,y:s+h.top,width:c-a,height:d-s},{left:h.left,top:h.top,width:u.width,height:u.height,totalWidth:p.width,totalHeight:p.height},t),m={...f};m.left>ae?m.left+=20:m.left<ae&&(m.left-=0),m.top>le?m.top+=20:m.top<le&&(m.top-=0);const g=r.getScrollOrientation();return g.horizontal&&void 0!==e.colIndex||delete m.left,g.vertical&&void 0!==e.rowIndex||delete m.top,new Promise((e,t)=>{try{Ve(m),e(m)}catch(e){t(e)}})},[Re,Ie,je,H]),Ue=lv(e=>{const t=e.shiftKey;e.preventDefault();const{deltaX:n,deltaY:o,deltaMode:r}=e;if(Q.current)return;let i=K?.(e);if(!1===i)return;let l=t?o:n,a=o;const s=t||Math.abs(l)>Math.abs(a);1===r&&(a*=0),Q.current=window.requestAnimationFrame(()=>{Q.current=null,He(s?{left:l}:{top:a})})},[Re,be,Ie,we,K]),qe=n.useCallback((e=null)=>{pe.current=null,_e.current=null,te()},[]);n.useLayoutEffect(()=>{qe()},[E]);const Ze=Vv(o,()=>({stage:Y.current,focus:ve,contains:Se,invalidate:qe,scrollTo:Ve,scrollBy:He,scrollCellCoordsIntoView:We,getScrollPosition:Ce,getDimensions:Le,getViewport:Fe,handleWheel:Ue,rowCount:l,columnCount:a,getLayout:()=>he,getRelativePointFromClient:Oe,getViewFromClient:Ae,getViewFromCellCoords:$e,getViewFromLocation:Pe,onViewChangeOnce:e=>{Te.current.push(e)}}),[l,a,je]);n.useEffect(()=>(N&&Ze.current?.addEventListener("wheel",Ue,{passive:!1}),de.current=!0,re.current=null,()=>{Ze.current?.removeEventListener("wheel",Ue)}),[N]);const Ge=n.useRef([]),Ke=(e,n)=>{e&&j&&(Ge.current=[],n.push((e=>{const o=`view:${e.getAnchor()}:overlay:${n.length}`,r=j?.({key:o,view:e},e=>Ge.current[0]=e);if(!r)return null;const i=e.getBounds();return t.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${i.width}px`,height:`${i.height}px`,overflow:"hidden"},children:r},`overlay-${e.getAnchor()}-0`)})(e)))},Xe=n.useMemo(()=>{const e={},t=Object.keys(je);for(let n=0;n<t.length;n++){const o=t[n],r=[];Ke(je[o],r),e[o]={overlays:r}}return e},[ee,j,l,a,ke,Ee]),Ye=(e,n,o,r,i,l,a)=>{if(!e)return;const s=e.getVisibleColumns(),c=e.getVisibleRows();if(0===s.length||0===c.length)return;let d=null;if(z)d=z(e);else{d=[];for(let e=0;e<c.length;e++)for(let t=0;t<s.length;t++){const n={rowIndex:c[e],colIndex:s[t]};if(F?.(n))continue;const o={coords:n,range:H(n)};d.push(o)}}const u=e.getVisibleColumnOffsets(),p=e.getVisibleRowOffsets(),h=e.getScrollTopLeft(),f=e.getFreezeTopLeft(),m=h.left+f.left,g=h.top+f.top,x=Math.trunc(m/MC),y=Math.trunc(g/MC),b={},w=(e,t,n,o,r)=>{const i=`view:${e.getAnchor()}:cell:${WS(t.rowIndex,t.colIndex)}`,s=o.x,c=o.y,d=Math.trunc((m+s)/MC)-x,u=Math.trunc((g+c)/MC)-y;b[u]||(b[u]={});let p=b[u][d];p||(p=b[u][d]=[]);let h=l?.get(i);if(!h){const l=(m+s)%MC,a=(g+c)%MC;h=E({key:i,coords:t,bounds:o,zoom:B,range:n,view:e,value:r,style:{left:Bv.boundPixel(l),top:Bv.boundPixel(a),width:Bv.boundPixel(o.width,!0),height:Bv.boundPixel(o.height,!0)}})}a?.set(i,h),p.push(h)};for(let t=0;d&&t<d.length;t++){const n=d[t],l=n?.coords??n;if(!l)continue;const a=n?.range??{rowStart:l.rowIndex,colStart:l.colIndex,rowEnd:l.rowIndex,colEnd:l.colIndex},s=e.getVisibleRangeCoords();if(!Qb.isRangesIntersect(a,s)&&!Qb.isRangeWithinRange(a,s))continue;const c=a&&!Qb.isSingleCell(a);if(!c&&F?.(l))continue;const h=l.rowIndex,f=l.colIndex,m=p[h],g=u[f];let x=null;m&&g&&(x={x:g.offset,y:m.offset,width:g.size,height:m.size});const y=WS(a.rowStart,a.colStart);if(c){if(i.has(y))continue;i.add(y),a.rowEnd-a.rowStart>0&&o.push(a),a.colEnd-a.colStart>0&&r.push(a)}if(c&&(x=YS(e.getLayout(),a)),!x){console.warn("no bounds for cell",y);continue}const b=n?.value;w(e,l,a,x,b)}const v=m%MC,S=g%MC,C=Object.keys(b);for(let o=0;o<C.length;o++){const r=b[C[o]];if(!r)continue;const i=Object.keys(r);for(let l=0;l<i.length;l++){const a=r[i[l]];if(!a)continue;const s=parseInt(C[o]),c=parseInt(i[l]),d=s+y,u=c+x,p=`view:${e.getAnchor()}:segment:${u}:${d}`;n.push(t.jsx("div",{className:"cell-container",style:{transform:`translate(${Bv.boundPixel(c*MC-v,!0)}px, ${Bv.boundPixel(s*MC-S,!0)}px)`,willChange:"transform"},children:a},p))}}},Je=n.useMemo(()=>{const e=pe.current,t=new Map,n={},o=Object.keys(je);for(let r=0;r<o.length;r++){const i=o[r],l=[],a=[],s=[];Ye(je[i],s,l,a,new Set,e,t),n[i]={cells:s,rangesH:l,rangesV:a}}return pe.current=t,n},[ee,l,a,ke,Ee,m,W,b,F,z,H]),Qe=(e,o,r,i,l)=>{if(e)if(o){const t=`view:${e.getAnchor()}:hl:`,o=e.getVisibleRows();if(!o||0===o.length)return;const a=0,s=e.getBounds().width;let c=[];const d=l.sort(Qb.rowFirstRangeComparator),u=e.getVisibleRangeCoords();for(let l=0;l<o.length&&o[l]<=u.rowEnd;l++){const p=o[l];if(p<u.rowStart)continue;let h=!1;for(;d.length>0&&d[0].rowStart<=p;){const e=d.shift();e.rowEnd>p&&(c.push(e),h=!0)}h&&(c=c.sort(Qb.columnFirstRangeComparator));const f=e.getLayout(),m=f.getRowOffset(p+1);let y=a;for(let e=0;e<c.length+1;e++){let o=y,l=s;const a=c[e];e<c.length&&(l=Math.min(s,f.getColOffset(a.colStart)),y=Math.min(s,f.getColOffset(a.colEnd+1))),i.push(n.createElement("path",{d:`M ${Bv.boundPixel(o)} ${Bv.boundPixel(m,!1,r)} L ${Bv.boundPixel(l)} ${Bv.boundPixel(m,!1,r)}`,stroke:g,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x,key:t+p+":"+e}))}for(let e=c.length-1;e>=0;e--)c[e].rowEnd<=o[l+1]&&c.splice(e,1)}}else{const n=`view:${e.getAnchor()}:vl:`,o=e.getVisibleColumns();if(!o||0===o.length)return;const a=0,s=e.getBounds().height;let c=[];const d=l.sort(Qb.columnFirstRangeComparator),u=e.getVisibleRangeCoords();for(let l=0;l<o.length&&o[l]<=u.colEnd;l++){const p=o[l];if(p<u.colStart)continue;let h=!1;for(;d.length>0&&d[0].colStart<=p;){const e=d.shift();e.colEnd>p&&(c.push(e),h=!0)}h&&(c=c.sort(Qb.rowFirstRangeComparator));const f=e.getLayout(),m=f.getColOffset(p+1);let x=a;for(let e=0;e<c.length+1;e++){let o=x,l=s;const a=c[e];e<c.length&&(l=Math.min(s,f.getRowOffset(a.rowStart)),x=Math.min(s,f.getRowOffset(a.rowEnd+1)));let d=g;i.push(t.jsx("path",{d:`M ${Bv.boundPixel(m,!1,r)} ${Bv.boundPixel(o)} L ${Bv.boundPixel(m,!1,r)} ${Bv.boundPixel(l)}`,stroke:d,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y},n+p+":"+e))}for(let e=c.length-1;e>=0;e--)c[e].colEnd<=o[l+1]&&c.splice(e,1)}}},et=e=>{if(!Je)return;const n={};for(let o=0;o<Me.length;o++){const r=Me[o],i=je[r],l=[];Qe(i,e,0,l,e?Je[r].rangesH:Je[r].rangesV);const a=i.getRangeCoordsBounds(),s=Math.ceil(a.width),c=Math.ceil(a.height);n[r]=t.jsx("svg",{width:`${s}`,height:`${c}`,viewBox:`0 0 ${s} ${c}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:l})}return n},tt=n.useMemo(()=>!0===m||!0===m?.horizontal?et(!0):null,[ee,m,ke,S,v,g,x,l,a,be,Re,Je]),nt=n.useMemo(()=>!0===m||!0===m?.vertical?et(!1):null,[ee,m,Ee,S,v,g,y,l,a,we,Ie,Je]),ot=n.useMemo(()=>0===De.left?null:t.jsx(eC,{linePoints:[0,0,0,we+1],bounds:{x:De.left,y:0,width:1,height:we+1},...C}),[ee,De.left,we,C]),rt=n.useMemo(()=>0===De.top?null:t.jsx(eC,{linePoints:[0,0,be+1,0],bounds:{x:0,y:De.top,width:be+1,height:1},...k}),[ee,De.top,be,k]),it=n.useMemo(()=>{const e=[],n=e=>{if(!e||!je[e])return;const n=je[e].getBounds();return t.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:n.x,top:n.y,width:n.width,height:n.height,clip:`rect(0, ${n.width+1}px, ${n.height+1}px, 0)`},className:`view view-${e}`,children:[tt?.[e],nt?.[e],Je?.[e].cells]},`view:${e}`)};for(let t=0;t<Me.length;t++)e.push(n(Me[t]));return t.jsx(t.Fragment,{children:e})},[je,tt,nt,Je]),lt=n.useMemo(()=>{if(!o)return;const e=(e,t,n,o)=>{if(!o||0===o.length)return;const r=[];for(let i=0;i<o.length;i++){const l=o[i];let a=e?.get(l);a!==RC&&(a=l(n)??RC),t.set(l,a),a&&a!==RC&&r.push(a)}return r},n=(n,o,r)=>{if(!r)return;const i=r.getBounds(),l=r.getInsets(),a=r.getAnchor();return t.jsxs("div",{className:iC("view",`view-${a}`,kC.view),style:{position:"absolute",pointerEvents:"none",left:i.x-l.left,top:i.y-l.top,width:i.width-(l.left+l.right),height:i.height-(l.top+l.bottom),clipPath:D?"inset(-2px)":"inset(0px)"},children:[e(n,o,r,R),Xe?.[a].overlays]},`view:${a}`)},r=_e.current,i={},l=[],a=Object.keys(je);for(let e=0;e<a.length;e++){const t=a[e],o=r?.[t],s=i[t]=new Map;l.push(n(o,s,je[t]))}return _e.current=i,l},[ee,je,D,R]),at=n.useMemo(()=>{const{style:e,...n}=L??{};return t.jsx("div",{style:{width:be,height:we,...e},className:"sheetxl-stage",tabIndex:0,ref:Y,...n,...U,children:O?O(it):it})},[be,we,it,L,O]),st=n.useRef(!1);return n.useEffect(()=>{!st.current&&Je&&(st.current=!0,X?.(Ze.current))},[Je]),t.jsxs("div",{className:iC("sheetxl-grid",kC["sheetxl-grid"]),style:{overflow:"visible",cursor:w,maxWidth:be,maxHeight:we,width:be,height:we,...W},ref:Ze,children:[at,t.jsxs("div",{className:iC("sheetxl-overlays"),ref:J,...I,children:[lt,ot,rt]})]})}));IC.displayName="BaseGrid";const DC=n.memo(n.forwardRef((e,n)=>{const{width:o,height:r,style:i={},className:l,...a}=e,[s,{width:c,height:d}]=uC();return t.jsx("div",{className:l,style:{...i},children:t.jsx("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:s,children:t.jsx(IC,{ref:n,width:o??c,height:r??d,...a})})})}));DC.displayName="Grid";const LC=n.memo(n.forwardRef((e,o)=>{const{showVerticalScrollbar:r,showHorizontalScrollbar:i,createHorizontalScrollbar:l,createVerticalScrollbar:a,createScrollCorner:s,viewport:c,onScrollViewport:d,style:u={},className:p,onScroll:h,...f}=e,[m,g]=n.useState(null),x=n.useRef(null),y=n.useRef(null);CC(!c),n.useImperativeHandle(o,()=>y.current&&x.current?Object.assign(y.current,x.current):null);const b=n.useCallback(e=>{y.current?.scrollTo(e),d?.(e)},[]);return t.jsx(Wv,{className:p,style:u,ref:x,showVerticalScrollbar:r,showHorizontalScrollbar:i,createHorizontalScrollbar:l,createVerticalScrollbar:a,createScrollCorner:s,viewport:m,onScrollViewport:b,children:t.jsx(DC,{style:{width:"100%",height:"100%"},...f,onViewportChange:e=>g(e),ref:y})})}));LC.displayName="ScrollableGrid";const OC=()=>!1,PC=n.memo(e=>{const{index:o,value:r,zoom:i,zoomScale:l=100,headerText:a=e=>`${e}`,headerStyle:s,headerStyleSelect:c=s,headerStyleSelectAll:d=c,headerStyleHover:u=d,verticalPadding:p=0,horizontalPadding:h=0,isSelected:f=OC,isSelectedAll:m=OC,coords:g,bounds:x,range:y,orientation:b,view:w,style:v,...S}=e,C=l/100,k=n.useRef(null),[E,_]=n.useState(!1),T=f?.(o)||!1,j=m?.(o)?d:T?c:s;let M=j;if(E){let e=u;"function"==typeof u&&(e=u(j)),M=kw.mergeContentful(j,e)}return t.jsx("div",{ref:k,style:{background:M.fill,color:M.text?.fill,fontFamily:M.text?.fontFamily??s.text?.fontFamily,fontSize:96*(M.text?.fontSize??11)/72*C,fontStyle:M.text?.fontStyle,fontWeight:M.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${C}px`,...v,left:v.left-(b===Lb?1:0),top:v.top-(b===Ob?1:0),width:v.width+1,height:v.height+1,overflow:"hidden"},...S,onMouseMove:e=>{"touch"!==Bv.detectIt().primaryInput&&0===e.buttons&&_(!0)},onMouseOut:e=>{_(!1)},children:a(o)})});PC.displayName="HeaderRenderer";const AC="ew-resize",FC="ns-resize",zC=n.memo(n.forwardRef((e,n)=>{const{orientation:o,view:r,index:i,className:l,style:a,disabled:s=!1,disabledResize:c=!1,isNextHidden:d,isHidden:u,isSelected:p,isSelectedAll:h,showTouchDivider:f,headerStyle:m,headerStyleSelect:g,headerStyleSelectAll:x,headerStyleHover:y,bounds:b,onPointerDown:w,onAutoFit:v,...S}=e,C=o===Lb;let k=m;p&&g&&(k=g),h&&x&&(k=x);const E="touch"===Bv.detectIt().primaryInput;let _=C?14:8,T=_/2,j=0;d&&(j=-2),u&&(j=2),u&&(_=_/2+j,T=2*j);let M=k.dividerStrokeFill??k.strokeFill;return!(p||h)&&0===j&&(M=`linear-gradient(${C?180:90}deg, ${k.fill}, ${M} 55%, ${M} 100%)`),t.jsxs("div",{className:iC("header-divider",{disabled:s},l,`index-${i}`),ref:n,onPointerDown:E?void 0:w,onDoubleClick:E?void 0:()=>v?.(),style:{top:(C?0:-_/2+(j-1))+"px",left:(C?-_/2+(j-1):0)+"px",width:C?_:"calc(100% + 1px)",height:C?"calc(100% + 1px)":_,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:s||c||E?void 0:C?AC:FC,...a},...S,children:[t.jsx("div",{style:{position:"relative",top:`${C?0:T}px`,left:`${C?T:0}px`,width:C?1:"100%",height:C?"100%":1,background:M},onDoubleClick:()=>v?.()}),f&&E?t.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:C?"-6px":"2px",bottom:C?"2px":"-9px",height:"24px",width:C?"24px":"18px",maxHeight:C?"calc(100% - 4px)":void 0,maxWidth:C?void 0:"calc(100% - 4px)",background:k.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:t.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(g.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:C?void 0:"rotate(90deg)"}})}):null]})})),BC=(e,n)=>t.jsx(zC,{...e,ref:n}),NC=n.memo(n.forwardRef((e,o)=>{const{orientation:r,view:i,index:a,disabled:s=!1,disabledResize:c=!1,resizeThreshold:d=1,dividerRenderer:u=BC,onDividerMouseDown:p,onDividerResizeStart:h,onDividerResize:f,onDividerResizeEnd:m,onDividerMouseUp:g,onDividerAutoFit:x,onPointerDown:y,...b}=e,w=lv(y,[y]),v=lv(x,[x]),S=r===Lb;let C=S?i.getVisibleColumns():i.getVisibleRows(),k=null;C.length>0&&(S?k=i.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:C[0],colEnd:C[C.length-1]}):i.getRangeCoordsBounds({rowStart:C[0],rowEnd:C[C.length-1],colStart:0,colEnd:0}),k=i.toClipBounds(k,mC));const E=n.useRef(null),[_,T]=n.useState(null),j=(e,t)=>S?e.clientX-t.clientX:e.clientY-t.clientY,M=i.getLayout(),R=S?M.getColOffset(a+1):M.getRowOffset(a+1),I=sS({processTouch:!0,onPointerDown:e=>{if(w?.(e),!s&&!c){const e=S?M.getColOffset(a):M.getRowOffset(a),t=R-e;E.current={isResizing:!1,startSize:t,index:a,view:i,orientation:r,onDividerMouseDown:p,onDividerResizeStart:h,onDividerResize:f,onDividerResizeEnd:m,onDividerMouseUp:g},T(E.current),p?.(a,t)}e.stopPropagation(),e.preventDefault()},onPointerUp:(e,t,n)=>{if(!E.current)return;E.current.isResizing&&E.current.onDividerResizeEnd?.(E.current.index,Math.max(0,E.current.startSize+j(e,n)),E.current.startSize);const o=E.current;E.current=null,T(E.current),o.onDividerMouseUp?.(o.index)},onPointerMoveOrWait:(e,t,n)=>{if(!E.current)return;const o=j(e,n);E.current.isResizing?E.current.onDividerResize?.(E.current.index,Math.max(0,E.current.startSize+o),E.current.startSize):Math.abs(o)>Math.max(1,d)&&(E.current={...E.current,isResizing:!0},T(E.current),E.current.onDividerResizeStart?.(E.current.index,Math.max(0,E.current.startSize+o))),e.stopPropagation(),e.preventDefault()}}),D=lv(()=>{v?.(a)},[a]);if(!k)return;const L=u({bounds:k,orientation:r,view:i,index:a,disabled:s,disabledResize:c,onAutoFit:D,onPointerDown:I,...b},o);if(!L)return;const{getPortalContainer:O}=Zv();let P=null;return _&&_.isResizing&&_.index===a&&(P=l.createPortal(t.jsx("div",{style:{position:"absolute",cursor:S?AC:FC,left:0,top:0,width:"100%",height:"100%"}}),O(),"divider:"+a)),t.jsxs(t.Fragment,{children:[P,t.jsx("div",{className:iC("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${S?k.y:R}px`,left:`${S?R:k.x}px`,width:(S?0:k.width-1)+"px",height:(S?k.height-1:0)+"px",display:"flex"},tabIndex:-1,children:L})]})}));let VC=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="wrap"===t.paintableText?.wrap?"break-spaces":"pre",n.appendChild(r);const i=e.split("\n");for(let e=0;e<i.length;e++){let t=document.createElement("span");r.appendChild(t),t.textContent=i[e]}0!==i.length&&0!==i[i.length-1].length||r.appendChild(document.createElement("br")),document.body.appendChild(r);let l=r.getBoundingClientRect();return r.remove(),{width:l.width,height:l.height,maxLineHeight:1.2*(t.paintableText?.fontSize||1056/72)}}};const HC=((e=void 0)=>Object.freeze({clean:e,dirty:void 0,editMode:!1}))();n.memo(n.forwardRef((e,o)=>{const{editState:r=HC,defaultTextStyle:i,onStartEdit:l,onChangeEdit:a,onSubmitEdit:s,onCancelEdit:c,onDoneEdit:d,containerBounds:u,setNaturalDimensions:p,onNavigate:h,textProperties:f,style:m,autoFocus:g,...x}=e,y=n.useRef(null),{width:b=0}=u??{},[w,v]=n.useState(()=>r);n.useEffect(()=>{v(r)},[r]);const S=f?.align||"left",C=f?.vAlign||"middle",k=f?.fill||"#040404",E=f?.wrap||"wrap",_=f?.fontFamily||"Calibri",T=f?.fontSize||11,j=f?.fontWeight||400,M=f?.fontStyle||"normal",R=w.dirty??w.clean??"";let I=2;const D=96*T/72,L=1.2*D;"right"===C&&(I+=1);const O=n.useMemo(()=>(new VC).naturalDimensions(R,{maxWidth:"wrap"===E?b-I:void 0,lineHeight:`${L}px`,paintableText:{fontStyle:M,wrap:E,letterSpacing:-.25}}),[R,E,I,D,_,j,M,p,b]),P=n.useCallback(()=>O.maxLineHeight?O.maxLineHeight+"px":"1.2",[O]),[A,F]=n.useState(P);n.useLayoutEffect(()=>{F(P())},[u,O]),n.useLayoutEffect(()=>{p?.({width:"wrap"===E?void 0:O.width+I,height:O.height})},[O,p]);const z=lv(a,[a]),B=lv(e=>{if(w.dirty===e)return;const t={...w};t.dirty=e,y.current,v(t),z?.(t)},[w]),N=lv(e=>{if(w.editMode===e)return;const t={...w};t.editMode=e,v(t),z?.(t)},[w]),V=lv(()=>{try{return s?.(w),d?.(),!0}catch(e){return!1}},[s,w]),H=lv(()=>{v(r),c?.(),d?.()},[c,r]),$=lv(e=>{if(!y.current)return;if(e.isDefaultPrevented(),!(e.isTrusted||e.nativeEvent.ctrlKey||e.nativeEvent.metaKey||e.nativeEvent.altKey||e.nativeEvent.isComposing)&&-1!==DS.indexOf(e.nativeEvent.key)){const t={...w};return t.dirty="Backspace"===e.nativeEvent.key?"":(t.dirty??"")+e.key,v(t),z?.(t),void e.preventDefault()}const t=e.nativeEvent.shiftKey;if(27===e.which)return e.preventDefault(),void H();if(113===e.which)return N(!0),void e.preventDefault();if(13===e.which&&(e.preventDefault(),V()&&h?.(t?bb:wb)),9===e.which)return e.preventDefault(),void(V()&&h?.(t?vb:Sb));if(!w.editMode){let t=null;switch(e.which){case 37:t=vb;break;case 39:t=Sb;break;case 38:t=bb;break;case 40:t=wb}if(t)return void V()}},[w,h]),[W,U]=n.useState(!g);n.useEffect(()=>{U(!1)},[]);const q=Vv(o,()=>({startEdit(e){let t=e?.initialSelection;if(!t){const e=y.current.value.length??0;t={start:e,end:e,direction:"forward"}}y.current?.setSelectionRange(t.start,t.end,t.direction);const n={...r,editMode:e?.editMode??!1};void 0!==e?.text&&(n.dirty=e.text),n.editMode===r.editMode&&n.dirty===r.dirty||(v(n),z?.(n))},submitEdit:()=>V(),cancelEdit(){H()},autoFocus(){y.current?.focus()},getLineHeight:()=>O?.maxLineHeight??L,dispatchEvent:e=>y.current.dispatchEvent(e)}),[r,l]);return t.jsx("div",{ref:q,...x,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:O.height,maxWidth:"100%",maxHeight:"100%",...m},children:t.jsx("textarea",{spellCheck:"false",ref:y,value:R,autoFocus:!1,disabled:W,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${D}px`,fontFamily:`${_}`,fontWeight:`${j}`,fontStyle:`${M}`,padding:"0px",marginRight:"right"===S?"3px":"0px",marginLeft:"left"===S?"2px":"0px",lineHeight:A,height:O.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:S,background:"transparent",color:k,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:"wrap"===E?"break-spaces":"pre",wordWrap:"break-word"},onChange:e=>{B(e.target.value)},onDoubleClick:e=>{e.isTrusted},onMouseDown:e=>{N(!0)},onKeyDown:$})})})),n.memo(e=>{const{value:n,view:o,bounds:r,range:i,zoom:l,children:a,style:s,...c}=e;return t.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:s?.fontSize||1056/72,...s},...c,children:n})}),function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 {\n pointer-events: none;\n }\n._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 * {\n pointer-events: initial;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container {\n /* inspired by - https://codepen.io/shalimano/pen/wBmNGJ */\n /* :global(.dec) {\n animation: decrease 4s 0.5s infinite;\n } */\n\n /* @keyframes decrease {\n 0% { left: -80%; width: 80%; animation-timing-function: ease; }\n 80% { left: 110%; width: 10%; animation-timing-function: steps(1, end); }\n 100% { left: 110%; width: 10%; }\n } */\n\n /* from { left: -80%; width: 80%; }\n to { left: 110%; width: 10%;} */\n\n }\n._sheetxl-sheet_1qeq6_5 .cell-container > * {\n /* position: absolute; Inherited from grid not needed*/\n overflow: hidden;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-box {\n position: absolute;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-line {\n text-rendering: optimizespeed;\n position: absolute;\n vertical-align: baseline;\n white-space: pre;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .filter-button {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n margin-bottom: 4px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds {\n position: absolute;\n background: green;\n pointer-events: none;\n /* border: solid 2px red */\n opacity: 0.2;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .fill {\n position: absolute;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .pending {\n width: 6px; /* Adjust size as needed */\n height: 6px;\n top: 5px;\n left: 4px;\n position: absolute;\n border: var(--sxl-app-color-primary-dark, grey) 0.5px;\n border-style: double;\n border-radius: 50%; /* Creates a circle */\n background-color: var(--sxl-app-color-button-surface, grey); /* A color of your choice */\n opacity: 1; /* Initial opacity */\n animation: _pulse_1qeq6_1 1.5s infinite alternate; /* Animation settings */\n }\n@keyframes _pulse_1qeq6_1 {\n 0% {\n transform: scale(1); /* Initial size */\n opacity: 1;\n }\n 50% {\n transform: scale(1.2); /* Slightly larger size */\n opacity: 0.8; /* Slightly less opaque */\n }\n 100% {\n transform: scale(1); /* Back to initial size */\n opacity: 1;\n }\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .slider {\n position: absolute;\n width: 130%;\n /* height: 100%; */\n height: 2px;\n bottom: 1px;\n opacity: 0; /* Start with opacity 0 */\n animation: _fadeIn_1qeq6_1 0.0s 0.5s forwards;\n overflow-x: hidden;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .line {\n position: absolute;\n opacity: 0.3;\n background: var(--sxl-app-color-primary-light, rgb(173, 173, 173)) 0.5px;\n width: 100%;\n /* height: 100%; */\n height: 2px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .subline {\n position: absolute;\n background: var(--sxl-app-color-primary, rgb(77, 77, 77)) 0.5px;\n opacity: 0.9;\n /* height: 100%; */\n height: 3px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .inc {\n animation-delay: 0s;\n animation: _increase_1qeq6_1 3s infinite;\n }\n@keyframes _fadeIn_1qeq6_1 {\n 0% { opacity: 0; height: 0px; }\n 100% { opacity: 1; height: 2px }\n }\n/* @keyframes increase {\n from { left: -5%; width: 5%; }\n to { left: 130%; width: 100%;}\n } */\n@keyframes _increase_1qeq6_1 {\n /* from { left: -5%; width: 5%; }\n to { left: 130%; width: 100%;} */\n 0% { left: -150%; width: 30%; animation-timing-function: ease; }\n 100% { left: 100%; width: 30%; }\n }\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._sheet-selection_12wyx_5 .fill-handle .dragging {\n opacity: 0;\n }\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._movable-area_314c6_5 .moveable-control-box .dragging {\n opacity: 0;\n }\n._movable-area_314c6_5 .moveable-control-box .moveable-control {\n width: 11px;\n height: 11px;\n margin-top: -5.5px;\n margin-left: -5.5px;\n background-color: var(--sxl-app-color-background, white);\n background-image: var(--sxl-app-image-background);\n border: 2px solid var(--sxl-app-color-primary-dark, grey);\n }\n._movable-area_314c6_5 .moveable-control-box .moveable-line {\n background: var(--sxl-app-color-grey, grey);\n }\n\n@media (pointer: coarse) {\n ._movable-area_314c6_5 .moveable-control-box .moveable-control {\n width: 22px;\n height: 22px;\n margin-top: -11px;\n margin-left: -11px;\n }\n}\n/*\n.EditableLabel {\n}\n*/\n\n._editable-input_1bqx6_6 {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 100%;\n min-height: calc(100% + 1px); /* hack for padding */\n border: none;\n padding: 0 0;\n outline: none;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n line-height: 1.2;\n letter-spacing: inherit;\n text-transform: inherit;\n background: transparent;\n}@keyframes _pop_1wyun_1 {\n 0% {\n transform: scale(1);\n /* box-shadow: var(--box-shadow); */\n }\n 100% {\n transform: scale(var(--scale));\n /* box-shadow: var(--box-shadow-picked-up); */\n }\n}\n\n@keyframes _fadeIn_1wyun_33 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n._Wrapper_1wyun_25 {\n display: flex;\n box-sizing: border-box;\n transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)\n scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));\n transform-origin: 0 0;\n touch-action: manipulation;\n}\n\n._Wrapper_1wyun_25._fadeIn_1wyun_33 {\n /* animation: fadeIn 500ms ease; */\n }\n\n._Wrapper_1wyun_25._dragOverlay_1wyun_37 {\n /* --scale: 1.05; */\n /* --box-shadow: $box-shadow;\n --box-shadow-picked-up: $box-shadow-border,\n -1px 0 15px 0 rgba(34, 33, 81, 0.01),\n 0px 15px 15px 0 rgba(34, 33, 81, 0.25); */\n z-index: 999;\n }\n\n._Item_1wyun_47 {\n position: relative;\n display: flex;\n align-items: center;\n\n /* box-shadow: $box-shadow; */\n outline: none;\n box-sizing: border-box;\n transform-origin: 50% 50%;\n\n -webkit-tap-highlight-color: transparent;\n\n transform: scale(var(--scale, 1));\n\n}\n\n._Item_1wyun_47:not(._withHandle_1wyun_61) {\n touch-action: manipulation;\n /* cursor: grab; */\n }\n\n._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37) {\n /* opacity: var(--dragging-opacity, 1); */\n z-index: 999;\n /* &:focus {\n box-shadow: $box-shadow;\n } */\n }\n\n._Item_1wyun_47._disabled_1wyun_74 {\n /* &:focus {\n box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), $box-shadow;\n } */\n /* cursor: not-allowed; */\n }\n\n._Item_1wyun_47._dragOverlay_1wyun_37 {\n cursor: inherit;\n animation: _pop_1wyun_1 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);\n transform: scale(var(--scale));\n /* box-shadow: var(--box-shadow-picked-up); */\n opacity: 1;\n }._Row_1kr10_1 {\n display: flex;\n box-sizing: border-box;\n /* padding: 0px;\n margin: 0px; */\n /* transition: background-color 350ms ease; */\n /* overflow: hidden; */\n /* &::-webkit-scrollbar {\n display: none;\n width: 0px;\n height: 0px;\n } */\n}\n/*\n To support Autoscrolling\n * dnd-kit checks for the container element to have an overflow property. So we do a few hacks.\n * the better answer is to fork dnd-kit and add to dndcontext scrollableAncestors as a property.\n\n * It seems we are one of the few/only libraries that don\'t include the scrollbar within the container; Even the virtualized examples show a scrollbar\n * see - dndkit-isScrollable\n */\n ._TabStrip_3x0dp_1::-webkit-scrollbar {\n display: none;\n height: 0px;\n }\n ._TabStrip_3x0dp_1 {\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n}\n\n\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._script-editor_iy654_5 .monaco-editor {\n position: absolute;\n }\n._script-editor_iy654_5 .monaco-editor .margin-icon {\n display: block;\n width: 16px; /* Adjust size */\n height: 16px; /* Adjust size */\n background-size: 16px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n._script-editor_iy654_5 .monaco-editor .formula {\n 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>\');\n cursor: pointer;\n }\n._script-editor_iy654_5 .monaco-editor .macro {\n 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>\');\n cursor: pointer;\n }\n._script-editor_iy654_5 .monaco-editor .autorun {\n 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>\');\n cursor: pointer;\n }\n\n/*\n:global .mtk11.jsdoc-tag {\n color: #569CD6 !important;\n font-weight: bold;\n}\n\n:global .mtk11.jsdoc-type {\n color: #4EC9B0 !important;\n}\n\n:global .mtk11.jsdoc-param {\n color: #9CDCFE !important;\n}\n*/')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const $C=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:$C},Symbol.toStringTag,{value:"Module"}));const WC=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),UC=(e,t=!0,n=WC)=>{if(!n||0===n.length)return e;if(void 0===e)return n[0];if(t&&e>=n[n.length-1])return e;if(!t&&e<=n[0])return e;let o=he.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},qC=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:WC,findNextFontSize:UC},Symbol.toStringTag,{value:"Module"})),ZC=n.memo(e=>{const{anchorLocation:n=f.TopLeft,cellWidth:o,cellHeight:r,size:i=7,inset:l=1,darkMode:a,fill:s,pathProps:c,style:d,...u}=e,p=i,h=l;let m="red",g=[],x=[];return n===f.TopLeft?(m=a?"rgb(255, 198, 246)":"green",g.push(h),x.push(h),g.push(h+p),x.push(h),g.push(h),x.push(h+p)):n===f.TopRight?(m=a?"rgb(0, 255, 255)":"red",g.push(o-h),x.push(h),g.push(o-(h+p)),x.push(h),g.push(o-h),x.push(h+p)):n===f.BottomRight?(m=a?"rgb(236, 252, 211)":"purple",g.push(o-h),x.push(r-h),g.push(o-(h+p)),x.push(r-h),g.push(o-h),x.push(r-(h+p))):n===f.BottomLeft&&(m=a?"rgb(255, 236, 183)":"blue",g.push(h),x.push(r-h),g.push(h+p),x.push(r-h),g.push(h),x.push(r-(h+p))),t.jsx("svg",{width:`${o}`,height:`${r}`,viewBox:`0 0 ${o} ${r}`,style:{position:"absolute",width:`${o}px`,height:`${r}px`,pointerEvents:"none",...d},...u,children:t.jsx("path",{d:`M ${g[0]} ${x[0]} L ${g[1]} ${x[1]} L ${g[2]} ${x[2]} L ${g[0]} ${x[0]} Z`,fill:s??m,...c})})}),GC=e=>{const{renderBounds:o,darkMode:r,zoom:i,disabled:l,filter:a,onFilterButtonMouseDown:s,style:c,...d}=e,u=n.useMemo(()=>{let e=null;const t=a.getSortField();t&&(e=t.reverse);const n=a.getField(),o=n&&n.criteria&&n.criteria.length>0;return!0===e?o?"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":!1===e?o?"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":o?"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"},[a]),[p,h]=n.useState(!1),f=Math.min(Math.min(18,o.height-8),o.width);return t.jsx("div",{style:{width:`${f}px`,height:`${f}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${p&&!l?"--sxl-app-color-primary-light, rgba(0,0,0,.55)":"--sxl-app-color-border-button, grey"})`,backgroundColor:"var(--sxl-app-color-button-fill, white)",backgroundImage:"var(--sxl-app-image-background)",borderRadius:(f>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:l?void 0:"pointer",...c},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:e=>{s?.(e,a)},...d,children:t.jsx("svg",{width:""+15*i,height:""+15*i,viewBox:"0 0 15 15",style:{fill:`var(${p&&!l?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:l?.6:1},children:t.jsx("path",{d:u})})})},KC=n=>{const{value:o,coords:r,bounds:i,children:l,style:a,range:s,zoom:c=1,view:d,bodyStyle:u,normalStyle:p,showFormulas:h,showZeros:m,docTheme:g,onLinkMouseDown:x,onFilterButtonMouseDown:y,filterButtonProps:b,createFilterButton:w=GC,...v}=n,S=i.height/c,C=i.width/c,k=o,E=k.getValue(),_=o.getStyle(),T=u?.darkMode??!1;let j,M;const R=E&&E.isFormulaError,I=R&&E instanceof e.FormulaError.Parse;let D,L=h||I;if(L)if(k.isSpillOverflow())M="";else{const t=k.getFormulaText();t?M=t:j=k.getNumberFormat(e.NumberFormat.Type.General)}else j=k.getNumberFormat();L||(D=k.getTextOverflow());const O=D?D.colBounds.width+D.leftOffset+D.rightOffset:C,P=D?D.anchorBounds.x-D.leftOffset:0,A=D?D.anchorBounds.width:C,F=D?D.anchorBounds.x:0;let z,B=k.getRenderHorizontalAlignment();j&&(z=j?.formattedRuns,M=z?.runs[0]?.text??j.displayText);const N=k.getCalcStatus()===e.ICell.CalcStatus.Pending;let V=null,H=_.getFill().toCSS(T,i),$=0,W=0;if(!_.getBorder().isEmpty()){const t=_.getBorder().getRight();!t.isNone()&&e.IBorder.BuiltInDefinitions.get(t.getStyle()).width>1&&($=1);const n=_.getBorder().getBottom();!n.isNone()&&e.IBorder.BuiltInDefinitions.get(n.getStyle()).width>1&&(W=1)}let U=null;if(C!==A||$||W||"number"==typeof H?.backgroundPosition){const{backgroundPosition:e,...n}=H,o=e??0,r=d?.getScrollTopLeft(),l=o?-(i.x+(r.left??0))%o:0,a=o?-(i.y+(r.top??0))%o:0;(void 0!==e||$||W||C!==A)&&(1===Object.keys(n).length&&"none"===n.background||(H=null,U=t.jsx("div",{className:"fill",style:{marginLeft:`${l}px`,marginTop:`${a}px`,left:F*c,width:zt.boundPixel(A*c-l+1+$),height:zt.boundPixel(i.height-a+1+W),...n}},"background")))}let q=null;const Z=k.getComments(),G=k.getWarnings(),K=k.getErrors();if(Z||R||K.length>0||G.length>0){const e={size:7*c,darkMode:T,cellWidth:A*c+2,cellHeight:S*c+2,style:{top:-1,left:F*c-1}};q=q??[],(G.length>0||K.length>0||R)&&q.push(t.jsx(ZC,{anchorLocation:f.TopLeft,...e},`indicator-${q.length}`)),Z&&q.push(t.jsx(ZC,{anchorLocation:f.TopRight,...e},`indicator-${q.length}`))}const X=_.getFont();let Y=j?.conditionalColor;const J=_.getAlignment(),Q=J.getHorizontal()===e.ITextFrame.HorizontalAlignment.Fill,ee=J.getHorizontal()===e.ITextFrame.HorizontalAlignment.CenterContinuous||Q,te=ee||L?0:J.getRotation(),ne=k.getInsets(),oe=ne.top+ne.bottom;let re=ne.left,ie=ne.right;const le={...a,left:a.left-1,top:a.top-1,width:a.width+1+$,height:a.height+1+W},ae=k.getColumnFilter(),se=ae&&!ae?.hasHiddenButton();let ce=null;N&&(ce=t.jsxs("div",{className:"slider",children:[t.jsx("div",{className:"line"}),t.jsx("div",{className:"subline inc"})]},"pending"));const de=!(N||se||U||l||q||z?.runs.length>1||D||te%360!=0);"none"===H?.background&&(H=null);let ue=ee||!(!D||!(D.rightIndex>0||D.leftIndex>0||D.colSpan>1));if(!ue){const e=k.getSpans();(e.width>1||e.height>1)&&(ue=!0)}const pe={...H,...le,pointerEvents:x?"auto":void 0};if(!he.isEmpty(M)||!he.isEmpty(j?.repeatPlaceholder)){const n=j?.canWrap??!1;let o=null,r=null,i=null,l=[],s=!0;m||L||0!==E||(s=!1);const d=k.getTextFrame(L);if(s&&d){let s=O-1-(re+ie);if(te){const t=d.layout();o=t.bounds;const n={x:0,y:0,width:O-1,height:S};if(z){let t=z.width;if(j.repeatPlaceholder||j.repeatChars.length>0){const o=e.GeomUtils.boundsToPoints(n),r=e.GeomUtils.rotatePoints(o,-te);t=e.GeomUtils.minBoundingRect(r).width}o={...o,width:t}}i=e.GeomUtils.clipToOuterRect({...o,width:o.width+1+re+ie},n,te),s=i.width-1-(re+ie)+.01}let u=null;n&&(u={width:s});let p=null,h=j?.repeatPlaceholder;const f=d.layout(u);if(o=f.bounds,L?o={...o,width:0}:z&&(o={...o,width:j.repeatPlaceholder||j.repeatChars.length>0?s:z.width}),te&&n){let t=null;f.visitLines({visitTextLine:(n,o)=>{let r=n.bounds;const i=e.GeomUtils.boundsToPoints(r),l=e.GeomUtils.rotatePoints(i,te),a=e.GeomUtils.minBoundingRect(l);r={...r,x:(a.width-r.width)/2,y:(a.height-r.height)/2},t=t?e.GeomUtils.unionBounds(t,r):r}}),o={...t,width:t.width+re+ie}}if(!h&&k.getType()!==e.ScalarType.String&&Math.floor(o.width)>s){if("General"===_.getNumberFormat()&&k.getType()===e.ScalarType.Number){const e=_.measureText("0"),t=Math.floor(s/e.width),n=E,o=he.splitNumber(n),r=Math.min(10,t-(Math.max(1,o.ipLength)+1)-(n<0?1:0));if(r>=-1){const e=`0${r>0?".":""}${"#".repeat(Math.max(0,r))}`;p=k.getNumberFormat(e).displayText,"0"===p&&n<0&&(p="-0")}else if(Math.abs(n)>=Math.pow(10,5)||Math.abs(n)<=Math.pow(10,-5)){const e=t-5-(n<0?1:0);if(e>=0){const t=`0.${"0".repeat(Math.max(0,e-1))}E+00`;p=k.getNumberFormat(t).displayText}}}p||(h="#")}if(!h&&z?.lastRepeatIndex>=0&&z?.width>s&&(h="#"),h&&s>0){const e=_.measureText(h),t=Math.floor((s||1)/(e?.width||1));p=t>0?h.repeat(t):""}if(L&&(B=e.ITextFrame.HorizontalAlignment.Left),p){const e=_.measureText(p).width;e&&(o={...o,width:e})}if(r={...o,width:o.width+re+ie,height:o.height},te&&!n){const t=e.GeomUtils.boundsToPoints(r),n=e.GeomUtils.rotatePoints(t,te),o=e.GeomUtils.minBoundingRect(n);r.width=o.width,r.height=o.height}B===e.ITextFrame.HorizontalAlignment.Center||B===e.ITextFrame.HorizontalAlignment.CenterContinuous?r.x=(O-r.width)/2:B===e.ITextFrame.HorizontalAlignment.Right?r.x=O-r.width-.5:r.x=.5,J.getVertical()===e.ITextFrame.VerticalAlignment.Center?r.y=(S-r.height)/2:J.getVertical()===e.ITextFrame.VerticalAlignment.Bottom?r.y=S-r.height-oe:r.y=oe;const m=de?{...v}:void 0,g={style:{left:a.left-1,top:a.top-1,width:a.width+1,height:a.height+1,transform:te?`rotate(${te}deg)`:void 0,cursor:x?"pointer":void 0,pointerEvents:x?"auto":void 0,zIndex:ue?1:void 0,...H},onMouseDown:x,onDoubleClick:x?e=>{e.stopPropagation(),e.preventDefault()}:null,...m};I&&(g.style.textDecorationStyle="wavy",g.style.textDecorationColor=T?"rgb(0, 255, 255)":"red",g.style.textDecorationLine="underline");const y=X.getSize(),b=(i,a,d,u,p,h,f,m=null)=>{let g=y*c,x=d,b=f?.runs?f.runs:[{type:e.NumberFormat.ParseRunType.Text,text:i,width:_.measureText(i,g).width}];f&&f?.width!==o.width&&(o={...o,width:f?.width});let w=re;if(f?.lastRepeatIndex>=0&&s>f?.width){const t=f.runs[f.lastRepeatIndex];if(t){const n=[...b],r=Math.max(0,s-1-f.width);let i=0,l="";if(r>0){const e=Math.floor(r/t.width);l=e>0?t.text.repeat(e):"",i=r}n[f.lastRepeatIndex]={type:e.NumberFormat.ParseRunType.Repeat,text:l,width:i},b=n,o={...o,width:f.width+i}}}const v=(o,r,i,a,s,d,u,f,m,y=null)=>{let b,v=x.width;p===e.ITextFrame.HorizontalAlignment.Justify?(v=s,h||(b="justify")):p===e.ITextFrame.HorizontalAlignment.Distributed&&(v=s,b=h||o.text.split(" ").length-1==0?"center":"justify");const{style:S,className:C,...k}=y;let E=o.text;if(p===e.ITextFrame.HorizontalAlignment.Fill&&0===j?.repeatChars.length){const e=Math.max(1,Math.floor((x?.width??0)/(u?.width??1)));E=E.repeat(e)}let _=x.height;const M=X.getVerticalAlignment(),R=M===e.IFont.VerticalAlignment.Sub,I=M===e.IFont.VerticalAlignment.Super;if(R||I){const e=X.getSuperSubScale();g*=e,_*=e}const D={textAlign:b,textAlignLast:b,background:void 0,...S,...X.toCSS(T,c,!0),fontSize:g*e.IFont.getDeviceScale()};Y&&(D.color=Y.toCSS(T));const L=w+r;let O=ne.top+x.y+0;if(R&&(O+=m-g),d){const e=(u.x+L)*c+1,t=(u.y+O)*c+1;t<0?D.marginTop=t:D.paddingTop=t,e<0?(D.width=(S?.width??0)-e,D.left=(S?.left??0)+e):D.paddingLeft=e,D.paddingRight=Math.max(0,(S?.width??0)-v*c-e),D.paddingBottom=Math.max(0,(S?.height??0)-x.height*c-t),D.height=(S?.height??0)+(t<0?-t:0),(t<0||e<0)&&(D.clipPath=`inset(${t<0?-t:0}px 0px 0px ${e<0?1-e:0}px)`)}else if(D.left=(u.x+L)*c+1,D.top=(u.y+O)*c+1,D.width=u.width*c,D.height=u.height*c,te&&!n){D.left=(u.x+r)*c+1,D.top=(u.y+(x.y+0))*c+1;const t=e.GeomUtils.centerPoint({x:w+r,y:0,width:o.width,height:x.height}),n=e.GeomUtils.centerPoint({x:w,y:0,width:s,height:x.height}),i=e.GeomUtils.rotatePoints([t],te,n),l={x:i[0].x-t.x,y:i[0].y-t.y};D.left=D.left+l.x*c,D.top=D.top+l.y*c;const a={...x,x:w,y:ne.top,width:x.width+(re+ie)},d=e.GeomUtils.boundsToPoints(a),p=e.GeomUtils.rotatePoints(d,te),h=e.GeomUtils.minBoundingRect(p);a.width=h.width,a.height=h.height;const f=e.GeomUtils.centerPoint(a),m={x:f.x-n.x,y:f.y-n.y};D.left=D.left+m.x*c,D.top=D.top+m.y*c}D.lineHeight=_*c+"px";const P=de?void 0:"text-line";l.push(t.jsx("div",{className:C?`${C} ${P}`:P,style:D,...k,children:E},`text-${x.y}-${a}-${i}`))};if(J.getOverflow()===e.ITextFrame.Overflow.Shrink&&s>0){let e=o?.width??0,t=0;for(;e>1&&e>s&&g>2&&t<100;)g*=s/e,e=_.measureText(i,g).width,t++;o={...o,width:e}}let S=x.x;p===e.ITextFrame.HorizontalAlignment.Right?S+=o.width-x.width:p!==e.ITextFrame.HorizontalAlignment.Center&&p!==e.ITextFrame.HorizontalAlignment.CenterContinuous||(S+=(o.width-x.width)/2),f?.lastRepeatIndex>=0&&(S=x.x);const C=b.length;for(let t=0;t<C;t++){const n=b[t];n.type!==e.NumberFormat.ParseRunType.Text&&n.type!==e.NumberFormat.ParseRunType.Repeat||(n.type,e.NumberFormat.ParseRunType.Repeat,v(n,S,t,a,p===e.ITextFrame.HorizontalAlignment.Justify||p===e.ITextFrame.HorizontalAlignment.Distributed||f?.lastRepeatIndex>=0?s:x.width,de,{x:r.x+P,y:r.y,width:n.width,height:o.height},0,u,m)),S+=n.width}};p?b(p,0,{x:0,y:0,...o},f.lines[0].baseline,B,!0,null,g):f.visitLines({visitTextLine:(t,n,r)=>{const i=t.runs[0].text.replace(/\s+$/,""),l=n===r-1;let a=B===e.ITextFrame.HorizontalAlignment.Justify&&(l||t.runs[0].text.endsWith("\n"))?e.ITextFrame.HorizontalAlignment.Left:B,c=0;n>0&&(J.getVertical()===e.ITextFrame.VerticalAlignment.Distributed||J.getVertical()===e.ITextFrame.VerticalAlignment.Justify)&&(c=Math.max(0,(S-(oe+3)-t.bounds.height*r)/(r-1)*n)),J.getVertical()===e.ITextFrame.VerticalAlignment.Distributed&&te&&te%90==0&&te%180!=0&&(a=e.ITextFrame.HorizontalAlignment.Distributed),a!==e.ITextFrame.HorizontalAlignment.Justify&&a!==e.ITextFrame.HorizontalAlignment.Distributed&&a!==e.ITextFrame.HorizontalAlignment.Fill||(o={...o,width:s});const u={...t.bounds,y:t.bounds.y+c+0,width:Q||j&&(j.repeatChars.length>0||j.spacingChars.length>0)?o.width:t.bounds.width};b(i,n,u,d.lines[0].baseline,a,l,1===r?z:null,de&&n>0?{...g,style:{...g.style,background:void 0}}:g)}})}l.length>0&&(V=l)}if(de)return V&&V.length>0?V:t.jsx("div",{style:pe,...v});let fe=x?"auto":le.pointerEvents,me=null;if(se){const e={x:F*c-1,y:-1,width:A*c+1,height:S*c+1};fe="auto",me=w({renderBounds:e,darkMode:T,className:"filter-button",disabled:!k.isEditAllowed(),zoom:c,filter:k.getColumnFilter(),onFilterButtonMouseDown:y,...b}),me&&(me=t.jsx("div",{style:{...e,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:e=>{e.stopPropagation(),e.preventDefault()},children:me},"filterButton"))}N&&!V&&(V=t.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 ge=[U,V,l,q,ce,me];return t.jsx("div",{style:{...H,...le,pointerEvents:fe},...v,children:ge})},XC={text:"",placeholder:""},YC=(e,t)=>{if(!e.clean().getStyle().getNumberFormat().endsWith("%"))return!1;const n=t??e.dirty??"";return 0===n.length||n.endsWith("%")&&!isNaN(parseFloat(n.substring(0,n.length-1)))},JC=Object.freeze([qe.Delete,qe.Home,qe.End]),QC=n.memo(n.forwardRef((o,r)=>{const{editState:i,onStartEdit:l,onChangeEdit:a,onSubmitEdit:s,onCancelEdit:c,onDoneEdit:d,defaultTextStyle:u,useRichStyling:p=!0,bodyStyle:h,activeCoords:f,sheet:m,commands:g,containerBounds:x,setNaturalDimensions:y,onFocus:b,disabled:w,style:S,zoom:C=1,linesVisible:k,autoFocus:E=!1,..._}=o,{height:T=0,width:j=0}=x??{},M=h?.darkMode??!1,R=n.useRef(null),[I,D]=n.useState(!1),[L,O]=n.useState(null),[P,A]=n.useState(()=>i);n.useEffect(()=>{U.current=!1,A(i)},[i]);const F=n.useMemo(()=>{const t=P.clean();let n=t.getStyle();p||(n=n.createTemporaryStyle({font:{size:u?.fontSize}}));const o=t.getFormula(),r=n.getAlignment(),i=o?e.ITextFrame.HorizontalAlignment.Left:r.getHorizontal(),l=r.getVertical(),a=r.getOverflow()===e.ITextFrame.Overflow.Wrap||t.getType()===e.ScalarType.String&&(i===e.ITextFrame.HorizontalAlignment.Justify||i===e.ITextFrame.HorizontalAlignment.Distributed||l===e.ITextFrame.VerticalAlignment.Justify||l===e.ITextFrame.VerticalAlignment.Distributed),s=(e=>{if(!e)return XC;const t=e.clean();if(!t)return XC;let n=t.getStyle()?.getQuotePrefix();if(void 0===e.dirty||null===e.dirty){let o="",r=t.getFormulaText();r&&(o=r,n=!1),o||(o=t.toTextUnformatted(!0)??"");let i="";if(!e.editMode&&t.isSpillOverflow()){const e=t.getSpill();if(e){const n=e.getCell(),o=n.getFormulaText();n.isEqual(t)||(i=o)}}return n&&(o="'"+o),{text:o,placeholder:i}}return{text:e.dirty??"",placeholder:""}})(P),c=s.text,d=e.ITextFrame.toCSSHorizontalTextAlign(p&&!o?P.clean()?.getRenderHorizontalAlignment():e.ITextFrame.HorizontalAlignment.Left);return{style:n,isWrapped:a,textValue:c,formula:o,frameVertAlign:l,placeholder:s.placeholder,insets:p?t.getInsets():v.EmptyRect,textAlign:d}},[P,u,M,C,p]),z=n.useRef(null),B=Nt(r,()=>({startEdit:e=>{R.current=e?.initialSelection;const t={...i,editMode:e?.editMode??!1};void 0!==e?.text&&(t.dirty=e.text),t.editMode===i.editMode&&t.dirty===i.dirty||(A(t),H?.(t))},submitEdit:()=>q(),cancelEdit(){Z()},autoFocus(){z.current.focus()},dispatchEvent:e=>z.current.dispatchEvent(e),focus(){z.current.focus()},getLineHeight:V}),[l,i]);n.useLayoutEffect(()=>{if(!L||!I)return;const e=z.current;F.textValue,e&&e.setSelectionRange(L.start,L.end,L.direction)},[z.current,L,F.textValue]);const N=n.useMemo(()=>{const t=P?.clean(),n=F.style.createTemporaryTextFrame(F.textValue,t?.getType()===e.ScalarType.String),o=p?t.getInsets().right+t.getInsets().left:0;let r=null;return F.isWrapped&&(r={width:j-o}),n.layout(r)},[F,j,P,p]),V=nt(()=>Math.ceil(N?.lines[0]?.bounds.height),[N]);n.useLayoutEffect(()=>{if(!N)return;const e=F.style,t=e.getInsets()??v.EmptyRect,n=p?t.left+t.right:0,o=p?.04*e.getFont().getSize():1,r=Math.round(F.isWrapped?void 0:N.bounds.width+n+o),i=Math.round(N.bounds.height);y?.({width:r,height:i})},[N,y,F,p,P]);const H=nt(a,[a]),$=nt(e=>{if(P.dirty===e)return;const t={...P};t.dirty=e,z.current,A(t),H?.(t)},[P]),W=nt(e=>{if(P.editMode===e)return;const t={...P};t.editMode=e,A(t),H?.(t)},[P]),U=n.useRef(!1),q=nt(()=>{if(U.current)return!1;try{s?.(P),d?.(),U.current=!0}catch(e){return!1}return!0},[s,P]),Z=nt(()=>{U.current=!0,A(i),c?.(),d?.()},[c,i]),G=nt(t=>{if(!z.current)return;if(t.key,t.isDefaultPrevented(),!(t.isTrusted||t.nativeEvent.ctrlKey||t.nativeEvent.metaKey||t.nativeEvent.altKey||t.nativeEvent.isComposing||-1===DS.indexOf(t.nativeEvent.key)&&"Backspace"!==t.nativeEvent.key)){const e={...P};let n=0;return YC(e,e.dirty)&&!isNaN(parseFloat(t.key))?(e.dirty?.endsWith("%")?e.dirty=(e.dirty.substring(0,e.dirty.length-1)??"")+t.key+"%":e.dirty=(e.dirty??"")+t.key+"%",n=e.dirty.length-1):"Backspace"===t.nativeEvent.key?(e.dirty="",n=e.dirty.length):(e.dirty=(e.dirty??"")+t.key,n=e.dirty.length),z.current.value=e?.dirty,R.current={start:n,end:n,direction:"forward"},z.current?.setSelectionRange(n,n,"forward"),A(e),H?.(e),void t.preventDefault()}const n=t.nativeEvent.ctrlKey,o=t.nativeEvent.shiftKey,r=t.nativeEvent.altKey,i=t.nativeEvent.metaKey;if(n&&"z"===t.key&&t.stopPropagation(),t.which===qe.Escape)return t.preventDefault(),void Z();if(t.which===qe.F2)return W(!0),void t.preventDefault();const l=t.target;if("%"===t.key&&l.selectionStart===l.selectionEnd&&"%"===l.value[l.selectionStart]&&P?.clean().getStyle().numberFormat.includes("%"))return O({start:l.selectionStart+1,end:l.selectionEnd+1,direction:l.selectionDirection}),void t.preventDefault();if(t.which===qe.Enter){if(t.preventDefault(),i||r){const e=F.textValue.substring(0,l.selectionStart)+"\n"+F.textValue.substring(l.selectionEnd);return $(e),void O({start:l.selectionStart+1,end:l.selectionStart+1,direction:l.selectionDirection})}return void(q()&&m.getSelection().traverse(e.IRange.Orientation.Column,o))}if(t.which===qe.Tab)return t.preventDefault(),void(q()&&m.getSelection().traverse(e.IRange.Orientation.Row,o));let a=null;switch(t.which){case qe.Left:a=e.IRange.Direction.Left;break;case qe.Right:a=e.IRange.Direction.Right;break;case qe.Up:a=e.IRange.Direction.Up;break;case qe.Down:a=e.IRange.Direction.Down}!a||n||o||r||i||P.editMode?P.editMode&&(a||JC.includes(t.which))&&t.stopPropagation():q()},[P,m,F]),K=n.useCallback(()=>{z.current?.focus(),setTimeout(()=>{z.current?.select()},0)},[]),X=n.useCallback(()=>{z.current?.focus(),console.log("implement toggleRelativeReferences")},[]),Y=nt(()=>{const e=z.current?.value;let t="";if(f.rowIndex>0){const e=m.getRange({rowIndex:f.rowIndex-1,colIndex:f.colIndex}).getCell();e&&(t=e.toTextUnformatted(!0))}$(e+t)},[f,m]);n.useEffect(()=>m.getRange(f).addListener(()=>{const e={...P,clean:()=>m.getRange(f).getCell()};A(e),H?.(e)}),[f,m]);const J=n.useCallback(()=>{const e=P.clean().createTemporaryCell({value:$C(),style:{numberFormat:"Medium Time"}}).toText();$((z.current?.value??"")+e)},[m]),Q=n.useCallback(()=>{const e=P.clean().createTemporaryCell({value:$C(),style:{numberFormat:"Short Date"}}).toText();$((z.current?.value??"")+e)},[m]),ee=n.useMemo(()=>({element:()=>z.current,doCopy:e=>{const t=z.current.value.substring(z.current.selectionStart,z.current.selectionEnd);if(e?.isCut){const e=z.current.value.substring(0,z.current.selectionStart)+z.current.value.substring(z.current.selectionEnd,z.current.value.length);$(e)}return t}}),[z.current]),te=n.useMemo(()=>({element:()=>z.current,doPaste:async(e,t)=>{const n=await(e.toText?.());if(!n)return!0;const o=z.current.value.substring(0,z.current.selectionStart)+n+z.current.value.substring(z.current.selectionEnd,z.current.value.length);return $(o),O({start:z.current.selectionStart+n.length,end:z.current.selectionStart+n.length,direction:"forward"}),!0}}),[z.current]),ne=n.useMemo(()=>({contains:e=>z.current?.contains(e)||!1,focus(){z.current.focus()}}),[]),oe=n.useMemo(()=>[new On("selectAll",ne,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[Ue.Ctrl]}},K),new On("startEditValueAbove",ne,{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:[Ue.Ctrl]},{key:'"',modifiers:[Ue.Ctrl,Ue.Shift]}]},Y),new On("startEditCurrentTime",ne,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[Ue.Ctrl,Ue.Shift]}},J),new On("startEditCurrentDate",ne,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[Ue.Ctrl]}},Q),new Ln("relativeReferencesToggle",ne,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},X),new Ln("toggleEditorFocus",ne,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[Ue.Ctrl]}})],[]),re=n.useMemo(()=>{let e=null;const t=()=>({contains:e=>z.current?.contains(e)||!1,focus(){z.current.focus()}});return e=g?g.createChildGroup(t,"editor",!1):new Pn(t,"editor"),e.addCommands(oe,!0),e},[g,oe]),ie=n.useMemo(()=>({notifier:null,source:ee,target:te,commands:re}),[ee,te,re]);Wn(ie);const[le,ae]=n.useState(!E);n.useEffect(()=>{ae(!1)},[]);const se=nt(e=>{D(!0),re?.activate();const t=R.current;if(!1!==t){let e,n;const o=z.current.value;YC(P,o)&&(e=o.length-1,n=o.length-1),e=t?.start??e??o.length,n=t?.end??n??o.length,R.current=!1,O({start:e,end:n,direction:"forward"})}b?.(e)},[b,P]),ce=F.insets;let de=ce.left+1;const ue=ce.left+ce.right+2-1,pe=N?.bounds.height??0;let he,fe=ce.top;F.frameVertAlign===e.ITextFrame.VerticalAlignment.Center?fe=Math.max(0,(T-(ce.top+ce.bottom)-pe)/2):F.frameVertAlign===e.ITextFrame.VerticalAlignment.Bottom&&(fe=Math.max(0,T-(ce.top+ce.bottom)-pe)),void 0!==k&&N?.lines[0]?.bounds&&(he=N?.lines[0]?.bounds.height*k);const me=F.style.getFont();let ge=me.getSize();me.isSuperSub()&&(ge*=me.getSuperSubScale()),ge*=e.IFont.getDeviceScale()*C;const xe=p?me.toCSS(M,C):null;return t.jsx("div",{className:"sheet-cell-editor",onMouseDown:e=>{z.current&&document.activeElement!==z.current&&requestAnimationFrame(()=>{z.current.focus()})},ref:B,..._,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...S},children:t.jsx("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:fe*C+1,left:de*C,width:`calc(100% - ${ue*C}px)`,maxWidth:`calc(100% - ${ue*C}px)`,height:(he??pe)*C,maxHeight:(he??pe)*C},children:t.jsx("textarea",{spellCheck:"false",placeholder:F.placeholder,ref:z,value:F.textValue,disabled:le,readOnly:w||m.getProtection().isReadOnly(),name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...xe,fontSize:ge?`${ge}px`:"inherit",textAlign:F.textAlign,lineHeight:(N?.lines[0]?.bounds.height??0)*C+"px",height:(N?.bounds.height??0)*C,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:F.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:se,onBlur:()=>{D(!1)},onSelect:e=>{},onChange:e=>{z.current&&!U.current&&(R.current=!1,$(e.target.value),F.textValue,e.target.value,e.target.selectionStart,e.target.selectionEnd,e.target.selectionDirection,O({start:e.target.selectionStart,end:e.target.selectionEnd,direction:e.target.selectionDirection}))},onMouseDown:e=>{I&&W(!0)},onKeyDown:G})})})})),ek=(e,t)=>({clean:e,dirty:t,editMode:!1}),tk=e=>{const{length:n=0,width:o=1,dashArray:r=null,dashArrayAdditional:i=null,isDouble:l=!1,isAngled:a=!1,offsetX:s=0,offsetY:c=0,isVertical:d=!1,...u}=e,p=e=>{let t=null;if(e&&o>0){t="";for(let n=0;n<e.length;n++)t+=e[n],n<e.length-1&&(t+=",")}return t},h=p(r);let f=h;i&&(f=p(i));let m=o,g=n,x=null;if(l){m=Math.floor(o/2);const e=m+m/2+1;let n=null;n=d?`M ${zt.boundPixel(s+e)} ${zt.boundPixel(c)} L ${zt.boundPixel(s+e)} ${zt.boundPixel(c+g)}`:`M ${zt.boundPixel(s)} ${zt.boundPixel(c+e)} L ${zt.boundPixel(s+g)} ${zt.boundPixel(c+e)}`,x=t.jsx("path",{strokeWidth:m,strokeDasharray:f,d:n,...u})}if(a){m=o/2;const e=m+m/2;let n=f,r=null;r=d?`M ${zt.boundPixel(s+e)} ${zt.boundPixel(c)} L ${zt.boundPixel(s+e)} ${zt.boundPixel(c+g)}`:`M ${zt.boundPixel(s)} ${zt.boundPixel(c+e)} L ${zt.boundPixel(s+g)} ${zt.boundPixel(c+e)}`,x=t.jsx("path",{strokeWidth:m,strokeDasharray:n,strokeDashoffset:"1",shapeRendering:"crispEdges",d:r,...u})}let y=null;return y=d?`M ${zt.boundPixel(s+m/2)} ${zt.boundPixel(c)} L ${zt.boundPixel(s+m/2)} ${zt.boundPixel(c+g)}`:`M ${zt.boundPixel(s)} ${zt.boundPixel(c+m/2)} L ${zt.boundPixel(s+g)} ${zt.boundPixel(c+m/2)}`,t.jsxs(t.Fragment,{children:[t.jsx("path",{strokeWidth:m,strokeDasharray:h,d:y,...u}),x]})};function nk(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var ok=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=nk(o,t),r="function"==typeof e;n.push(r?e:()=>nk(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)nk(n,t)}},rk=function(){},ik="undefined"!=typeof window,lk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ak=ik?n.useLayoutEffect:n.useEffect,sk={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const ck=ik&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(sk),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return ak(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[rk,sk]},dk=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,uk=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,pk=n=>{const{key:o,points:r,range:i,stroke:l,darkMode:a,forceThinBorder:s=!1,shiftIfWide:c=!1,isVertical:d=!1,intersections:u,layout:p}=n,h=e.IBorder.BuiltInDefinitions.get(s?e.IBorder.StrokeStyle.Thin:l.getStyle());if(!h)return null;const f=r[0],m=r[1],g=r[2],x=r[3];let y=1+(d?x-m:g-f),b=0;const w=l.getColor().toRGBA(a).toString(),v=h.description.toLowerCase().includes("double");let S,C;const k=d?"rowStart":"colStart",E=d?"rowEnd":"colEnd",_=d?m:f;if(u?.length>0){const t=u[0];if(t?.range[k]===i[k]){const n=e.IBorder.BuiltInDefinitions.get(t.stroke.getStyle());b=Math.floor(n.width/2)}const n=u[u.length-1];if(n?.range[E]===i[E]){const t=e.IBorder.BuiltInDefinitions.get(u[u.length-1].stroke.getStyle());y=Math.floor(y+(2===t.width?0:t.width/2))}if(v){const t=d?"colStart":"rowStart",n=d?"colEnd":"rowEnd",o=d?p?.getRowOffset:p?.getColOffset;let r=0,l=0;S=[],C=[];for(let a=0;a<u.length;a++){const s=u[a];if(s.stroke.getStyle()===e.IBorder.StrokeStyle.Double&&o){const e=o(s.range[k])-(_-b);s.range[t]<i[t]&&(S.push(e-r),r=e,S.push(1),r++),s.range[n]>i[n]&&(C.push(e-l),l=e,C.push(1),l++)}}S.length>0&&r<y&&S.push(y-r),C.length>0&&l<y&&C.push(y-l)}}let T=d?-Math.floor(h.width/2):-b,j=d?-b:-Math.floor(h.width/2);const M=c&&h.width>2?-1:0;return t.jsx(tk,{offsetX:f+T+M,offsetY:m+j+M,length:y+b,isVertical:d,stroke:w,width:h.width,dashArray:S??h.pattern,dashArrayAdditional:C,isDouble:v,isAngled:h.description.toLowerCase().includes("slant")},o)},hk=({getBorderAt:o,borderRenderer:r=pk,getVisibleCells:i,darkMode:l,forceThinBorder:a=!1,defaultColor:s="black",shiftIfWide:c=!1})=>{const d=nt(i,[i]),u=n.useMemo(()=>n=>{const i=n.toClipBounds(n.getRangeCoordsBounds(),-3);if(!i)return;const u=d(n);if(0===u.length)return;const p=n.getVisibleColumnOffsets(),h=n.getVisibleRowOffsets();let f=[],m=[];const g=n.getVisibleColumns(),x=n.getVisibleRows(),y=[],b=[],w=[],v=(e,t,n,o,r,i,l)=>{const a={index:o,stroke:r,visibleIndex:n,edge:i,length:l};e[t]||(e[t]=[]),e[t].length>0&&e[t][e[t].length-1]?.index===o?e[t][e[t].length-1]=a:e[t].push(a)};for(let t=0;t<u.length;t++){const r=u[t],i=r.coords;if(!i)continue;const l=r?.range??{rowStart:i.rowIndex,colStart:i.colIndex,rowEnd:i.rowIndex,colEnd:i.colIndex},a=n.getVisibleRangeCoords();if(!H.isRangesIntersect(l,a)&&!H.isRangeWithinRange(l,a))continue;const s=i.colIndex,c=i.rowIndex,d=p[s],w=h[c];if(l.rowEnd!==l.rowStart){const e=h[l.rowStart]?.spanIndex??-1,t=h[l.rowEnd]?.spanIndex??h[x[x.length-1]].spanIndex+1;f.push({...l,rowStart:e,rowEnd:t})}if(l.colEnd!==l.colStart){const e=p[l.colStart]?.spanIndex??-1,t=p[l.colEnd]?.spanIndex??p[g[g.length-1]].spanIndex+1;m.push({...l,colStart:e,colEnd:t})}const S=r.value,C=o(S,t);if(!C||C.isEmpty())continue;const k=C.getLeft(),E=C.getTop(),_=C.getRight(),T=C.getBottom();let j=1,M=1;if(!d||!w)continue;const R=d.spanIndex,I=w.spanIndex;k.isNone()||v(y,R,I,c,k,e.IBorder.Edge.Left,j),E.isNone()||v(b,I,R,s,E,e.IBorder.Edge.Top,M),_.isNone()||v(y,R+M,I,c,_,e.IBorder.Edge.Right,j),T.isNone()||v(b,I+j,R,s,T,e.IBorder.Edge.Bottom,M)}const S=(e,t,n)=>{const o=[];return e.forEach((e,r)=>{let i=null;e.sort((e,t)=>e.visibleIndex-t.visibleIndex);for(let l=0;l<e.length;l++){const a=e[l];if(!a?.stroke)continue;if(void 0===t[r]&&void 0===t[r-1])continue;let c=!1;if(n)for(let e=0;!c&&e<f.length;e++){let t=f[e];t.colStart<=a.index&&t.colEnd>=a.index&&t.rowStart<r&&t.rowEnd>=r&&(c=!0)}else for(let e=0;!c&&e<m.length;e++){let t=m[e];t.rowStart<=a.index&&t.rowEnd>=a.index&&t.colStart<r&&t.colEnd>=r&&(c=!0)}if(c)continue;const d=a.stroke?.getColor(),u=d?d.toRGBA().toString():s,p=a.stroke.getStyle()+":"+u;(p!==i?.key||i&&i.visibleIndex+1<a.visibleIndex)&&(i&&o.push(i),i={key:p,index:t[r]??t[r-1]+1,visibleIndex:a.visibleIndex,edge:a.edge,stroke:a.stroke,from:a.index,to:a.index+a.length-1,intersections:[],length:1}),i.to=a.index+a.length-1,i.visibleIndex=a.visibleIndex}i&&o.push(i)}),o};f=f.sort(uk),m=m.sort(dk);const C=S(y,g,!1),k=S(b,x,!0);if(0===C.length&&0===k.length)return null;for(let e=0;e<k.length;e++){const t=k[e];let n=he.findEqualOrGreater(C,t.from,e=>e.index),o=!1;for(;!o;){const e=C[n++];e&&e.index>=t.from&&e.index<=t.to+1&&e.from<=t.index&&e.to+1>=t.index&&(t.intersections.push({stroke:e.stroke,range:{rowStart:e.from,rowEnd:e.to+1,colStart:e.index,colEnd:e.index}}),e.intersections.push({stroke:t.stroke,range:{rowStart:t.index,rowEnd:t.index,colStart:t.from,colEnd:t.to+1}})),o=!e||e.index>t.to+1}}for(let e=0;e<k.length;e++){const t=k[e];let o=t.stroke;const i=`rBorder:${t.index}:${t.from}:${t.to}:${t.edge}`,s={rowStart:t.index,rowEnd:t.index,colStart:t.from,colEnd:t.to+1},d=n.getLayout(),u=!1,p=d.getColOffset(s.colStart),h=d.getRowOffset(s.rowStart),f=[p,h,d.getColOffset(s.colEnd),h];w.push(r({key:i,points:f,stroke:o,darkMode:l,forceThinBorder:a,shiftIfWide:c,range:s,intersections:t.intersections,layout:d,isVertical:u}))}for(let e=0;e<C.length;e++){const t=C[e];let o=t.stroke;const i=`cBorder:${t.index}:${t.from}:${t.to}:${t.edge}`,s={rowStart:t.from,rowEnd:t.to+1,colStart:t.index,colEnd:t.index},d=n.getLayout(),u=!0,p=d.getColOffset(s.colStart),h=[p,d.getRowOffset(s.rowStart),p,d.getRowOffset(s.rowEnd)];w.push(r({key:i,stroke:o,points:h,darkMode:l,forceThinBorder:a,shiftIfWide:c,range:s,intersections:t.intersections,layout:d,isVertical:u}))}return t.jsx("svg",{width:`${i.width}`,height:`${i.height}`,viewBox:`0 0 ${i.width} ${i.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${i.width}px`,height:`${i.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")},[o,l]);return{overlay:u}},fk=f.Center,mk=Object.freeze({horizontal:!1,vertical:!1}),gk=v.EmptyTopLeft,xk=(e,t)=>H.EmptyCell,yk=(e,t)=>new Promise((e,t)=>{t("StaticBorderRenderer does not support scrolling")}),bk=n.memo(e=>{const{getBorderAt:o,width:r,height:i,style:l,rowCount:a=2,columnCount:s=2,darkMode:c,forceThinBorder:d,children:u,...p}=e,h=n.useRef(null),[f,{width:m,height:g}]=ck(),x=r??m,y=i??g,b=n.useMemo(()=>{const e=[];for(let t=0;t<a;t++)for(let n=0;n<s;n++){const o={colIndex:n,rowIndex:t};e.push({coords:o,value:o})}return e},[]),w=n.useCallback(e=>b,[b]),{overlay:v}=hk({getVisibleCells:w,getBorderAt:o,darkMode:c,forceThinBorder:d}),S=Math.floor(x/s),C=Math.floor(y/a),k={getColOffset:e=>Math.ceil(e*S)+0,getRowOffset:e=>Math.ceil(e*C)+0,getColIndex:e=>Math.floor((e-0)/S)-1,getRowIndex:e=>Math.floor((e-0)/C)-1},E={rowStart:0,colStart:0,rowEnd:a,colEnd:s},_={x:0,y:0,width:Math.max(0,x)+0,height:Math.max(0,y)+0},T=n.useMemo(()=>{const e={},t=Math.floor(x/s);for(let n=0;n<s;n++)e[n]={offset:n*t,size:t,spanIndex:n};return e},[x,y]),j=n.useMemo(()=>{const e={},t=Math.floor(y/a);for(let n=0;n<a;n++)e[n]={offset:n*t,size:t,spanIndex:n};return e},[x,y]);if(!v)return null;const M={width:x,height:y},R={width:x,height:y},I={getStage:()=>h.current,getTotalSize:()=>M,getViewportSize:()=>R,getLayout:()=>k,getCellCoordsAsRangeCoords:H.cellToRange,getVisibleRangeCoords:()=>E,getVisibleRows:()=>{const e=[];for(let t=0;t<a;t++)e.push(t);return e},getTotalRangeCoords:()=>E,getRelativePointFromClient:(e,t)=>({x:e,y:t}),getVisibleColumns:()=>{const e=[];for(let t=0;t<s;t++)e.push(t);return e},toClipBounds:(e,t)=>_,toViewBounds:e=>e,toAbsoluteBounds:e=>e,getBounds:()=>_,getInsets:()=>null,getRangeCoordsBounds:(e,t)=>null,getVisibleColumnOffsets:()=>T,getVisibleRowOffsets:()=>j,allViews:()=>({[fk]:I}),getAnchor:()=>fk,getZoom:()=>1,scrollCellCoordsIntoView:yk,getCellCoordsFromClient:xk,getScrollOrientation:()=>mk,getScrollTopLeft:()=>gk,getFreezeTopLeft:()=>gk},D=v(I);return t.jsxs("div",{style:{...l,position:"relative",display:"flex"},...p,children:[t.jsx("div",{ref:ok([h,f]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:u}),D]})});function wk(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=wk(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function vk(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=wk(e))&&(o&&(o+=" "),o+=t);return o}const Sk=e=>{const{style:n,...o}=e??{};return t.jsxs("svg",{style:{width:"135px",height:"37px",...n},viewBox:"0 0 135 37",...o,children:[t.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"}),t.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"}),t.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"}),t.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"}),t.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"})]})},Ck=n.memo(o=>{const{colorLicensee:r="blue",colorError:i="red",colorCredits:l="grey",credits:a="All rights reserved - Michael Ford",feature:s,style:c,...d}=o??{},[u,p]=n.useState(null);n.useEffect(()=>{(async()=>{const t=await e.LicenseManager.getDetails();p(t)})()},[]);const[h,f]=n.useState(!1),m={opacity:.65},g=n.useMemo(()=>{const e=u?.exceptions(),n=e?.length??0;if(0===n)return null;const o=[];for(let r=0;r<n;r++){const n=e[r];o.push(t.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:i},children:n},r))}return o},[u,i]);if(null===u)return null;if(u.isValidFor(s))return null;const x=u.type(),y=!g&&x.endsWith("ity"),b=u.licensee(),w=y?1.6:1,v=135/w,S=37/w;let C=null;return!x&&b?.length>0&&(C=t.jsx("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:r},children:b})),t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...c},...d,children:t.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[h?t.jsx(Sk,{style:m}):t.jsx("svg",{width:v,height:S,style:m,children:t.jsx("image",{style:{width:v,height:S},href:"https://www.sheetxl.com/watermark.svg",onError:()=>f(!0)})}),t.jsxs("div",{children:[C,g,t.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:l},children:a})]})]})})}),kk=(e,t,o)=>{const r=n.useRef(t);r.current=t;const i=o?.fireOnModelChange??!0;n.useEffect(()=>{if(!e||!r.current)return;const t=Object.keys(r.current),n={},l=t.length;for(let e=0;e<l;e++){const o=t[e];n[o]=(e,t)=>{r.current[o]?.(e,t)}}const a=e.addListeners(n,o);if(i)for(let o=0;o<l;o++)n[t[o]](e);return()=>{a?.()}},[e])},Ek=new e.Color("transparent");function _k(o){const{sheet:r,onRepeatCommandChange:i,bodyStyle:a,commands:s,target:c,notifier:d,onStartEdit:u,getViewport:p}=o,[h,f]=n.useState(null),[m,g]=n.useState(null),x=n.useRef(null),y=nt(u,[u]),b=nt(p,[p]),[w,v]=n.useState(),[S,C]=n.useState(()=>r?.getStyles().parseColor(e.IColor.Scheme.Bg2)),[k,E]=n.useState(()=>r?.getStyles().getNormal().getFont().getFill()),_=Dn();n.useRef(_.getMode()).current=_.getMode();const T=$n(),[j,M]=n.useState(he.EmptyArray),R=n.useCallback(()=>{if(x.current!==r)return;const e=r.getSelectedRanges();let t=null;j.length>0&&H.isCellWithinRange(h,j[0].getRange().getCoords())&&(t=j[0]);const n=r?.getSelectedCell(),o=n?.getCoords()??null;l.unstable_batchedUpdates(()=>{N(t),f(o),g(e)})},[r,j,m,h]),I=n.useCallback(he.debounce(R,210),[R]);n.useEffect(()=>{x.current=r,R()},[r]);const D=nt(()=>r.getRange(h).getCell(),[r,h]),L=nt(async(e,t,n=null,o=!1,l=!0)=>{const a=e?.label?.(),s=async()=>{const e=await Promise.resolve(l&&d?.showBusy?.(a??"Busy..."));try{await r.doBatch(async()=>t(r),a),o&&_.setMode(null),e&&e()}catch(t){if(e&&e(),!t)return;d?.showError?.(t)}},u=[];let p=!1;const h=async()=>(u.push(s),(async()=>{if(!p){for(p=!0;u.length>0;){const e=u.shift();e&&await e()}p=!1}})());if(i){let t=null;if(!1!==n&&e){const o=n??a;t=new On(e.key(),c,{label:o,description:o},h)}i(t)}return h()},[r,i,d]),O=nt((t,n,o=!1,r)=>L(t,t=>{const i=t.getSelectedRanges();o&&i.updateStyle(null,r),i.updateStyle(n,r),i.autoFit({expandOnly:e.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[r]),P=nt((e,t,n)=>{L(e,e=>{let o=t;(n||t?.address)&&(o=o??{},!n&&t?.address?.startsWith("#")?n=t?.address.substring(1):n&&(o.displayText=n)),e.getSelectedRange().setHyperlink(o)})},[r]),A=nt((e,t)=>{L(e,e=>{e.getSelectedRange().setComments(t)})},[r]),F=nt((e,t)=>{L(e,e=>{e.getSelectedRanges().clear(t)})},[r]),z=nt(async(t,n,o=!1,r=!1)=>L(t,async t=>{let i=t.getSelectedRanges();o&&(n===e.IRange.Orientation.Row?i=i.getEntireRows(r):n===e.IRange.Orientation.Column&&(i=i.getEntireColumns(r)));let l=null;const a=_.getMode()?.key;if("copy"===a||"cut"===a){const e=await T.getClipboard().readReference();e&&"range"===e.getItemType()&&(l=e.getItem(),l.getCoords()||(l=null))}if(l){const t=await i.insertFrom(l,{...l.getMarkOptions(),orientation:n,autoSelect:!0});!t||t.isEntireRows()||t.isEntireColumns()||t.autoFit({orientations:e.IRange.Orientations.Row,minContent:!0}),_.setMode(null)}else i.insert(n,{autoSelect:!0})},"Insert Cells",!1),[_]),[B,N]=n.useState(null),V=nt(e=>r.getStyles().setDefaultTableStyle(e),[r]),$=nt(e=>{r.getStyles().getTableStyle(e)?.delete()},[r]),W=nt((t,n)=>{L(t,async t=>{const o=t.getSelectedRange(),r=t.getSelectedCell().getCoords();let i=null,l=0;const a=r.rowIndex>0?t.getRange({rowIndex:r.rowIndex,colIndex:r.colIndex}).getExtended(e.IRange.Direction.Up):null;a&&t.getRange({colStart:r.colIndex,rowStart:a.getCoords().rowStart,colEnd:r.colIndex,rowEnd:a.getCoords().rowStart}).isContentful()&&(i=e.IRange.Direction.Up,l=r.rowIndex-a.getCoords().rowEnd);const s=r.colIndex>0?t.getRange({rowIndex:r.rowIndex,colIndex:r.colIndex-1}).getExtended(e.IRange.Direction.Left):null;if(s&&t.getRange({colStart:s.getCoords().colStart,rowStart:r.rowIndex,colEnd:s.getCoords().colStart,rowEnd:r.rowIndex}).isContentful()){const t=r.colIndex-s.getCoords().colEnd;(t<l||!i)&&(i=e.IRange.Direction.Left,l=t)}let c=null;if(i===e.IRange.Direction.Up){if(c={...a.getCoords()},(c.rowEnd===r.rowIndex||!t.getRange({colIndex:r.colIndex,rowIndex:r.rowIndex-1}).isContentful())&&c.rowStart>0&&t.getRange({colIndex:r.colIndex,rowIndex:c.rowStart-1}).isContentful()){const t=a.getExtended(e.IRange.Direction.Up);c={colStart:r.colIndex,rowStart:t.getCoords().rowStart,colEnd:r.colIndex,rowEnd:a.getCoords().rowEnd}}c.rowEnd=r.rowIndex-1}else if(i===e.IRange.Direction.Left){if(c={...s.getCoords()},(c.colEnd===r.colIndex||!t.getRange({colIndex:r.colIndex-1,rowIndex:r.rowIndex}).isContentful())&&c.colStart>0&&t.getRange({colIndex:c.colStart-1,rowIndex:r.rowIndex}).isContentful()){const t=s.getExtended(e.IRange.Direction.Left);c={colStart:t.getCoords().colStart,rowStart:r.rowIndex,colEnd:t.getCoords().colEnd,rowEnd:r.rowIndex}}c.colEnd=r.colIndex-1}if(1!==o.size&&i){const r=o.getCoords(),l=o.startIncrementalUpdates({orientation:e.IRange.Orientation.Column}),a={...c},s=r.rowStart,d=r.rowEnd,u=r.colStart,p=r.colEnd,h=i===e.IRange.Direction.Up;for(let e=u;e<=p;e++){a.colStart=h?e:c.colStart+(e-u),a.colEnd=h?e:c.colEnd+(e-u);for(let o=s;o<=d;o++){a.rowStart=h?c.rowStart+(o-s):o,a.rowEnd=h?c.rowEnd+(o-s):o;const r=t.getRange(a).toString();l.pushAt(o,e,`=${n}(${r})`)}}l.apply()}else{const e=c?t.getRange(c).toString():"",o=`=${n}(`;y?.({text:`${o}${e})`,editMode:!0,initialSelection:{start:o.length,end:o.length+e.length}})}},!1)},[r]),U=nt((e,t,n=!1,o=!0)=>{L(e,async r=>{let i=null;if(B)return void B.updateStyleOptions(t);{const e=r.getSelectedRanges().getFixed(!0),t=r.getSelectedRange().getDefaultSortCriteria();let n={ranges:e,hasHeader:t?.options?.hasHeader??!1};i=o?new Promise((e,t)=>{const o={tableOptions:n,onCancel:()=>{t()},onDone:t=>{e(t)},context:{getNames:()=>r.getNames()}};d.showWindow?.("tableNew",o)}):{option:"Ok",tableOptions:n}}const l=await Promise.resolve(i);if("Ok"!==l?.option)throw null;const a=await Promise.resolve(d?.showBusy?.(e.label()));try{const e=r.getTables().add(l.tableOptions.ranges.at(0),{styleName:t?.name,clearFormatting:n,hasHeader:l.tableOptions.hasHeader});await e.getRange().select()}catch(e){a(),d?.showError?.(e)}a()},!1,!0,!1)},[B]),q=nt(()=>a,[a]),Z=nt(e=>({styles:()=>r.getStyles(),table:()=>e,bodyStyle:q,getNames:()=>r.getNames()}),[r]),G=nt(async(e,t,n,o=!0)=>{let i=null;if(!t){let e=r.getSelectedRange();1===e.size&&(e=e.getSurrounding());let n=r.getTables().search({address:r.getSelectedRange()});n.length>0&&(t=n[0]),await e.select()}if(t){if(o){try{n&&await t.select()}catch(e){}i=new Promise(async(n,o)=>{e.update({context:Z(t)});const r={command:e,commands:ce,notifier:d,onDone:e=>{n(e)}},i=await(d.showWindow?.("tableDetails",r,{disableAutoDestroy:!0}));setTimeout(()=>{i.focus()},180)})}Promise.resolve(i).then(e=>{},e=>{d?.showError?.(e)})}},[d]),K=nt(async(e,t,n=!1)=>{let o=null;if(t)t.isITable?o=t:t.getValue()&&(o=t.getValue());else{const e=r.getTables().search({address:r.getSelectedRange()});e.length>0&&(o=e[0])}if(o){if(!n){const e=o.getRange().getCoords(),t=(e.colEnd-e.colStart+1)*(e.rowEnd-e.rowStart+1);if(t>1e4&&"Convert"!==await(d?.showOptions({title:"Confirm",description:`Converting a table to range with '${t}' cells will set a large number of cell styles and may affect performance.\nContinue?`,options:["Convert","Cancel"],defaultOption:"Convert"})))return}L(e,async()=>{n?o.delete():o.convertToRange()},!1,!0)}},[d]),X=nt((t,n,o)=>{L(t,async r=>{let i=r.getSelectedRanges();if(i.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let l=i.at(0);1===l.size&&(l=l.getSurrounding());const a=r.getSelection().getCoords().cell;let s=l.getDefaultSortCriteria(e.IRange.Orientation.Row,a);if(!s){if(o)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let c=s.options;if(o&&(c=new Promise((e,t)=>{const n={range:l,options:s.options,cell:a,onCancel:()=>{t()},onDone:n=>{n?e(n.options):t()}};d.showWindow?.("sort",n)})),c=await Promise.resolve(c),!c)return;const u=await Promise.resolve(d?.showBusy?.(t.label()));try{l.doBatch(()=>{const t={...c,...n};l.sort(t),l.autoFit({orientations:t?.orientation===e.IRange.Orientation.Column?e.IRange.Orientations.Column:e.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},t?.label?.())}catch(e){u(),d?.showError?.(e)}u()},!1,!1,!1)},[d]),Y=nt(()=>{console.log("compactedSelection");const e=r.getSelection().getCoords(),t=r.getSelectedRanges().getFlattened().getCoords(),n=(()=>{const e=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);return URL.revokeObjectURL(t),n})();setTimeout(()=>{n.terminate(),console.log("Worker terminated")},5e3);let o=-1;for(let n=0;-1===o&&n<t.length;n++)H.isCellWithinRange(e.cell,t[n])&&(o=n);if(H.isEqualRangesArrays(e.ranges,t))return;const i={cell:e.cell,ranges:t,rangeIndex:o};r.getSelection().updateCoords(i)},[r]),J=nt(()=>{console.log("selectComments")},[r]),Q=nt(async(e=!1,t=!1)=>{let n=null;if(t)n=r.getEntireRange();else{const t=r.getSelectedRange();if(t.isEntireRange()){const e=r.getSelection().getCoords().cell,t=r.getRange(e);n=t.getSurrounding(),n.isEntireRange()&&(n=t)}else n=t.getSurrounding({contentOnly:e})}n&&await n.select()},[r]),ee=nt((t,n,o)=>{L(t,async t=>{let r=t.getSelectedRanges();o&&(n===e.IRange.Orientation.Row?r=r.getEntireRows():n===e.IRange.Orientation.Column&&(r=r.getEntireColumns())),r.delete(n)},"Delete Cells")},[r]);nt(async e=>{let t=null;const n=b(),o=Math.min(n.width-8,480),i=Math.min(n.height-8,288);try{r.getSelectedRanges(),t=await r.getMovables().add({bounds:{x:n.left+(n.width-o)/2,y:n.top+(n.height-i)/2,width:o,height:i},type:"chart",json:e.template}),t.select(),_.setMode(null)}catch(e){d?.showError?.(e)}return t},[r,d]);const te=nt(async(e,t,n)=>{const o=await(d?.showBusy?.(e.label()));try{const e=await r.getMovables().addImage(t,{autoSelect:!0,...n});return o(),_.setMode(null),e}catch(e){o();let t=e;"string"!=typeof t&&(console.warn(e),t="Unable to resolve image."),d?.showMessage?.(t,{type:Wt})}},[r,d]),ne=nt((t,n)=>{L(t,async o=>{const r=o.getSelectedRanges();r.doBatch(()=>{const t=n===e.IRange.Direction.Up||n===e.IRange.Direction.Down,i=r.getCoords().slice().sort(H.createRangeComparator(t?e.IRange.Orientation.Row:e.IRange.Orientation.Column));for(let t=0;t<i.length;t++){const r=i[t];let l=r;const a=o.getRange(l).getMerges();let s=0,c=0;if(a.length>0){const e=a[0];s=e.rowEnd-e.rowStart,c=e.colEnd-e.colStart}n===e.IRange.Direction.Left?l={...r,colStart:r.colEnd+c}:n===e.IRange.Direction.Right?l={...r,colEnd:r.colStart+c}:n===e.IRange.Direction.Up?l={...r,rowStart:r.rowEnd+s}:n===e.IRange.Direction.Down&&(l={...r,rowEnd:r.rowStart+s}),o.getRange(l).autoFill(r,{filler:e.AutoFill.Types.Copy}),o.getRange(r).autoFit({orientations:e.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:t.label()})})},[d]),oe=nt(()=>{let e=null;const t=r.getSelectedCell().getCoords();if(t?.rowIndex>0){const n=r.getRange({rowIndex:t.rowIndex-1,colIndex:t.colIndex}).getCell();n&&(e=n.toTextUnformatted(!0))}y?.({text:e})},[r]),[re,ie]=n.useReducer(e=>e+1,0),[le,ae]=n.useReducer(e=>e+1,0),se=n.useMemo(()=>[new Ln("gridlinesToggle",c,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new Ln("sheetViewToggleGridlinesRows",c,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new Ln("sheetViewToggleGridlinesColumns",c,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new Ln("sheetViewFormatGridlinesColor",c,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new Ln("sheetViewToggleShowHeadings",c,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new Ln("sheetViewToggleShowHeadingRows",c,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new Ln("sheetViewToggleShowHeadingColumns",c,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new Ln("sheetViewToggleShowHeadingsNumeric",c,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[Ue.Ctrl,Ue.Shift]}}),new Ln("sheetViewToggleFormulaView",c,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[Ue.Ctrl]},{key:"`",modifiers:[Ue.Ctrl,Ue.Shift]}]}),new Ln("sheetViewToggleShowZeros",c,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new On("selectComments",c,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[Ue.Ctrl,Ue.Shift]}},()=>J()),new Ln("selectAll",c,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[Ue.Ctrl]},{key:"Space",modifiers:[Ue.Ctrl,Ue.Shift]}]},(e=!1)=>Q(!1,e)),new On("selectRegion",c,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[Ue.Ctrl,Ue.Shift]}},()=>Q(!0,!1)),new On("breakSelection",c,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[Ue.Ctrl,Ue.Alt]}},()=>Y()),new On("formatTextRotate0",c,{label:"No Text Rotation",description:"Remove all text rotation."}),new On("formatTextRotate45",c,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new On("formatTextRotate90",c,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new On("formatTextRotate270",c,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new On("formatTextRotate315",c,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new Ln("formatTextRotateCustom",c,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new On("formatTextRotateVertical",c,{label:"Vertical Text",description:"Stack text vertically."}),new On("sortAscending",c,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){X(this,{reverse:!1},!1)}),new On("sortDescending",c,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){X(this,{reverse:!0},!1)}),new On("sortCustom",c,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){X(this,{},!0)}),new Ln("protectionSheetToggle",c,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:"Prevent unwanted changes from others by limiting their ability to edit.\nFor example, you can prevent people from editing locked cells or making formatting changes."}),new Ln("formatSheetTabColor",c,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new Ln("formatCellStyle",c,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(e){O(this,{named:e.getName()},!0)}),new Ln("formatTableStyle",c,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(e){U(this,e)}),new Ln("formatTableStyleClearCellStyles",c,{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(e){U(this,e,!0)}),new Ln("formatTableStyleClearTableStyle",c,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){U(this,{name:null},!0)}),new Ln("setDefaultTableStyle",c,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},V),new Ln("deleteTableStyle",c,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},$),new Ln("formatBorder",c,{label:"Border",description:"Create an outline border."},function(e){O(this,{border:e})}),new Ln("formatFillColor",c,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(e){O(this,{fill:e})}),new Ln("formatFontColor",c,{label:"Font Color",description:"Change the color of your text."},function(e){O(this,{font:{fill:e}})}),new Ln("formatBoldToggle",c,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[Ue.Ctrl]},{key:"2",modifiers:[Ue.Ctrl]}]}),new Ln("formatItalicToggle",c,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[Ue.Ctrl]},{key:"3",modifiers:[Ue.Ctrl]}]}),new Ln("formatUnderlinedToggle",c,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[Ue.Ctrl]},{key:"4",modifiers:[Ue.Ctrl]}]}),new Ln("formatUnderlinedDoubleToggle",c,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new Ln("formatUnderlinedAccountingToggle",c,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new Ln("formatUnderlinedAccountingDoubleToggle",c,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new Ln("formatStrikeThroughToggle",c,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[Ue.Ctrl]}}),new Ln("formatSuperscriptToggle",c,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new Ln("formatSubscriptToggle",c,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new Ln("formatAlignTopToggle",c,{label:"Align Top",description:"Align text to the top."}),new Ln("formatTextOverflowVisibleToggle",c,{label:"Overflow Text",description:"Overflow text to the next cells."}),new Ln("formatTextOverflowWrapToggle",c,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new Ln("formatTextOverflowClipToggle",c,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new Ln("formatTextOverflowShrinkToggle",c,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new Ln("formatTextOverflowEllipsisToggle",c,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new Ln("formatAlignMiddleToggle",c,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new Ln("formatAlignBottomToggle",c,{label:"Align Bottom",description:"Align text to the bottom."}),new Ln("formatAlignJustifyVerticalToggle",c,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new Ln("formatAlignDistributedVerticalToggle",c,{label:"Distribute Vertically",description:"Justify your content vertically."}),new Ln("formatAlignLeftToggle",c,{label:"Align Left",description:"Align your content to the left."}),new Ln("formatAlignCenterToggle",c,{label:"Align Center",description:"Center your content."}),new Ln("formatAlignRightToggle",c,{label:"Align Right",description:"Align your content to the right."}),new Ln("formatAlignJustifyToggle",c,{label:"Align Justify",description:"Justify your content."}),new Ln("formatAlignCenterContinuousToggle",c,{label:"Center Across",description:"Center your content across multiple cells."}),new Ln("formatAlignFillToggle",c,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new Ln("formatAlignDistributedHorizontalToggle",c,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new On("formatFontSizeIncrease",c,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,e=>({font:{size:UC(e.getFont().getSize(),!0)}}))}),new On("formatFontSizeDecrease",c,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,e=>({font:{size:UC(e.getFont().getSize(),!1)}}))}),new Ln("formatFontFamily",c,{label:"Font",description:"Select the font your text."},function(e){O(this,{font:{family:e}})}),new Ln("formatFontSize",c,{label:"Font Size",description:"Change the size of your text."},function(e){O(this,{font:{size:e}})}),new Ln("formatNumberDialog",c,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[Ue.Ctrl]},{key:"1",modifiers:[Ue.Ctrl,Ue.Alt]}]},function(e,t){const n=this,o={initialValue:e??t.state(),context:t.context(),onInputOption:(e,t)=>{O(n,{numberFormat:e})}};d.showWindow?.("numberFormat",o)}),new Ln("formatNumberFormat",c,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(e){O(this,{numberFormat:e})}),new Ln("formatNumberFormatGeneralStyle",c,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:e.NumberFormat.Type.General})}),new Ln("formatNumberFormatNumberStyle",c,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:"#,##0.00"})}),new Ln("formatNumberFormatTimeStyle",c,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:"h:mm AM/PM"})}),new Ln("formatNumberFormatDateStyle",c,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:"d-mmm-yy"})}),new Ln("formatNumberFormatAccountingStyle",c,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[Ue.Ctrl,Ue.Shift]}},function(e){O(this,{numberFormat:e??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new Ln("formatNumberFormatPercentStyle",c,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:"0%"})}),new Ln("formatNumberFormatScientificStyle",c,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){O(this,{numberFormat:"0.00E+00"})}),new Ln("formatNumberFormatCommaStyle",c,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[Ue.Ctrl]}},function(){O(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new Ln("formatNumberFormatIncreaseDecimal",c,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){O(this,t=>({numberFormat:e.NumberFormat.Parser.adjustDecimalPlaces(t.getNumberFormat(),1)}))}),new Ln("formatNumberFormatDecreaseDecimal",c,{label:"Decrease Decimal",description:"Show few decimal places."},function(){O(this,t=>({numberFormat:e.NumberFormat.Parser.adjustDecimalPlaces(t.getNumberFormat(),-1)}))}),new Ln("displayPlaceholdersToggle",c,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[Ue.Ctrl]}}),new On("noOp",c,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[Ue.Ctrl]}},function(){}),new Ln("displayOutlineSymbolsToggle",c,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[Ue.Ctrl]}}),new Ln("hideRows",c,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[Ue.Ctrl]}}),new Ln("unhideRows",c,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[Ue.Ctrl,Ue.Shift]}}),new Ln("hideColumns",c,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[Ue.Ctrl]},{key:"0",modifiers:[Ue.Ctrl,Ue.Alt]}]}),new Ln("unhideColumns",c,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[Ue.Ctrl,Ue.Shift]}}),new Ln("quickFormulaSum",c,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[Ue.Alt]}},function(){W(this,"SUM")}),new Ln("quickFormulaAverage",c,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){W(this,"AVERAGE")}),new Ln("quickFormulaCount",c,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){W(this,"COUNT")}),new Ln("quickFormulaMax",c,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){W(this,"MAX")}),new Ln("quickFormulaMin",c,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){W(this,"MIN")}),new Ln("startEditCurrentTime",c,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){y?.({text:r.createTemporaryCell({value:$C(),style:{numberFormat:"Medium Time"}}).toText()})}),new Ln("startEditCurrentDate",c,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[Ue.Ctrl]}},function(){y?.({text:r.createTemporaryCell({value:$C(),style:{numberFormat:"Short Date"}}).toText()})}),new On("sheetZoomOut",c,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[Ue.Ctrl,Ue.Alt]},{key:"NumpadSubtract",modifiers:[Ue.Ctrl,Ue.Alt]}]}),new On("sheetZoomIn",c,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[Ue.Ctrl,Ue.Alt]},{key:"NumpadAdd",modifiers:[Ue.Ctrl,Ue.Alt]}]}),new On("sheetZoom100",c,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[Ue.Ctrl,Ue.Alt]}}),new Ln("insertFunction",c,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[Ue.Shift]}},function(e,t){console.log("insertFunction")}),new Ln("updateHyperlink",c,{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:()=>D,shortcut:[{key:"K",modifiers:[Ue.Ctrl]},{key:"K",modifiers:[Ue.Ctrl,Ue.Alt]}]},async function(e,t){const n=this,o={context:t.context(),onUpdateHyperlink:(e,t)=>{P(n,e,t)}};d.showWindow?.("hyperlink",o)}),new Ln("openHyperlink",c,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[Ue.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>D},async(e,t)=>{const n=t.context()();if(!n)return;const o=n.getHyperlink();if(o)try{await o.open()}catch(e){d?.showError?.(e)}}),new Ln("deleteHyperlink",c,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>D},function(e,t){P(this,null,null)}),new On("insertNote",c,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[Ue.Shift]},description:"Add a note to the cell."},(e,n)=>{((e,n)=>{e?.showMessage?.(t.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[n," is not yet implemented.",t.jsx("br",{}),t.jsx("br",{}),"Please see the ",t.jsx("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))})(d,n.label())}),new Ln("updateComments",c,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[Ue.Ctrl,Ue.Alt]},description:"Add a comment to the current cell.",context:()=>D},async function(e,t){const n=this,o={context:t.context(),onUpdateComments:e=>{A(n,e)}};d.showWindow?.("comments",o)}),new Ln("deleteComments",c,{label:"Delete Comments",description:"Remove any comments.",context:()=>D},function(e,t){A(this,null)}),new Ln("insertImageFromFile",c,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(e=null){let t=null,n=null;"string"==typeof e?n=e:t=e?.file?e.file:e,(t||(t=await he.openFileDialog(n??"image/*"),t))&&await te(this,{file:t},e?.options)}),new Ln("insertImageFromURL",c,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(e){if(!e){const t=await(d?.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("Insert"!==t.option)return;e=t.input}e&&te(this,{fetch:e})}),new On("insertTable",c,{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:[Ue.Ctrl]},{key:"T",modifiers:[Ue.Alt,Ue.Ctrl]}]},function(){U(this)}),new Ln("editTable",c,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(e){let t=null,n=!1;e.isITable?t=e:e.getValue()&&(t=e.getValue(),n=!0),G(this,t,n)}),new Ln("deleteTable",c,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:"Remove the table.\n\nThe table and table specific styling will be removed but the values will be preserved."},function(e){K(this,e,!0)}),new Ln("convertTableToRange",c,{label:"Convert To Range",description:"Convert the table into a normal range of cells.\n\nThe values and the formatting are preserved."},function(e){K(this,e,!1)}),new Ln("tableTotalRowToggle",c,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[Ue.Ctrl,Ue.Alt]}},function(){const e=this.context().table();e&&e.setShowTotals(!e.getShowTotals())}),new Ln("tableHeaderRowToggle",c,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const e=this.context().table();e&&e.setShowHeaders(!e.getShowHeaders())}),new Ln("autoFilterToggle",c,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){const e=this.context().table();e&&e.setShowFilterButton(!e.getShowFilterButton())}),new Ln("autoFilterReapply",c,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[Ue.Ctrl,Ue.Alt]}}),new Ln("autoFilterClear",c,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new On("startEditValueAbove",c,{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:[Ue.Ctrl]},{key:'"',modifiers:[Ue.Ctrl,Ue.Shift]}]},oe),new Ln("formatPainterToggle",c,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new On("insertCells",c,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){z(this)}),new On("insertCellsShiftRight",c,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){z(this,e.IRange.Orientation.Column)}),new On("insertCellsShiftDown",c,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return z(this,e.IRange.Orientation.Row)}),new On("insertRows",c,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return z(this,e.IRange.Orientation.Row,!0)}),new On("insertColumns",c,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return z(this,e.IRange.Orientation.Column,!0)}),new On("insertRowsAfter",c,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return z(this,e.IRange.Orientation.Row,!0,!0)}),new On("insertColumnsAfter",c,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return z(this,e.IRange.Orientation.Column,!0,!0)}),new On("deleteCells",c,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[Ue.Ctrl]}},function(){return ee(this)}),new On("deleteCellsShiftUp",c,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return ee(this,e.IRange.Orientation.Row)}),new On("deleteCellsShiftLeft",c,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return ee(this,e.IRange.Orientation.Column)}),new On("deleteRows",c,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return ee(this,e.IRange.Orientation.Row,!0)}),new On("deleteColumns",c,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return ee(this,e.IRange.Orientation.Column,!0)}),new On("flashFill",c,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[Ue.Ctrl]},{key:"e",modifiers:[Ue.Ctrl,Ue.Alt]}]}),new On("fillDown",c,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[Ue.Ctrl]}},function(){return ne(this,e.IRange.Direction.Down)}),new On("fillRight",c,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[Ue.Ctrl]}]},function(){return ne(this,e.IRange.Direction.Right)}),new On("fillUp",c,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return ne(this,e.IRange.Direction.Up)}),new On("fillLeft",c,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return ne(this,e.IRange.Direction.Left)}),new On("formatBorderAddOutline",c,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){return O(this,{border:{left:{style:e.IBorder.StrokeStyle.Thin,color:null},top:{style:e.IBorder.StrokeStyle.Thin,color:null},right:{style:e.IBorder.StrokeStyle.Thin,color:null},bottom:{style:e.IBorder.StrokeStyle.Thin,color:null}}})}),new On("formatBorderClearOutline",c,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){return O(this,{border:null})}),new On("formatIndentDecrease",c,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return O(this,e=>{const t=e.getAlignment().getIndent()-1;return{alignment:{indent:t>0?t:0}}})}),new On("formatIndentIncrease",c,{label:"Increase Indent",description:"Move your content further from the border."},function(){return O(this,t=>{const n={alignment:{indent:t.getAlignment().getIndent()+1}};return t.getAlignment().getHorizontal()===e.ITextFrame.HorizontalAlignment.General&&(n.alignment.horizontal=e.ITextFrame.HorizontalAlignment.Left),n})}),new Ln("mergeToggle",c,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[Ue.Ctrl]}}),new On("mergeHorizontal",c,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new On("mergeVertical",c,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new On("unmerge",c,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new On("clearContents",c,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:"Clear only the contents in the cells.\n\nThe formatting is not cleared.",shortcut:{key:"Delete"}},function(){F(this,e.ICell.Content.Values)}),new On("clearFormats",c,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){F(this,e.ICell.Content.Formats)}),new On("clearHyperlinks",c,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){F(this,e.ICell.Content.Hyperlinks)}),new On("clearComments",c,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){F(this,e.ICell.Content.Comments)}),new On("clearAll",c,{label:"Clear All",scopedLabels:{clear:"All"},description:"Clears everything from the cells.\n\nAll contents and formatting are removed.",shortcut:{key:"Delete",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){F(this)}),new Ln("freezeToggle",c,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new Ln("freezeToggleHorizontal",c,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new Ln("freezeToggleVertical",c,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new On("unfreeze",c,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new On("autoFitRows",c,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new On("autoFitColumns",c,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),ce=n.useMemo(()=>{let e=null;return e=s?s.createChildGroup(c,"sheet",!1):new Pn(c,"sheet"),e.addCommands(se,!0),e},[s,se]),[de,ue]=n.useState(!1),[pe,fe]=n.useState(!1);n.useEffect(()=>{if(x.current!==r||!m)return;const e=m.getCoords(),t=r.getTables().search({address:e[0]});M(e=>he.isEqualArrays(e,t)?e:t),h&&t[0]&&H.isCellWithinRange(h,t[0].getRange().getCoords())?N(t[0]??null):N(null);const n=r.getSelectedRanges(),o=n.getMerges().length>0,i=n.isOverlapping();let l=!0;for(let t=0;l&&t<e.length;t++)l=H.isSingleCell(e[t]);fe(i),ue(0===t.length&&!i&&(o||!l))},[le,m,r]),Vn(s,null,{onChange:()=>{const e=!r.getProtection().isFormatCellsAllowed(),t="formatPainter"===_.getMode()?.key;ce.getCommand("formatPainterToggle").update({disabled:e||!s?.getCommand("copy"),state:()=>t}).updateCallback(()=>{if(!t)return ce.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"}});_.setMode(null)})}},[_,re,s]),kk(r.getView(),{onFreezeSplitChange:()=>{ae()}}),kk(r.getSelection(),{onChange:()=>{I()}});const me=()=>{ce.getCommand("sheetViewFormatGridlinesColor").update({state:()=>r.getView().getGridLineColor(),context:()=>({onColorSelect:e=>{},darkMode:a.darkMode,autoColor:r.getStyles().parseColor(a.strokeFill),schemeLookup:r.getStyles().schemeLookup(),recentColors:()=>r.getStyles().recentColors(),addRecentColor:e=>r.getStyles().addRecentColor(e),clearRecentColors:()=>r.getStyles().clearRecentColors()})}),ce.getCommand("formatSheetTabColor").updateCallback(e=>{r.setTabColor(e)}).update({state:()=>r?.getTabColor()??Ek,context:()=>({onColorSelect:e=>{},darkMode:a.darkMode,autoColor:Ek,schemeLookup:r.getStyles().schemeLookup(),recentColors:()=>r.getStyles().recentColors(),addRecentColor:e=>r.getStyles().addRecentColor(e),clearRecentColors:()=>r.getStyles().clearRecentColors()})})},ge=()=>{ce.getCommand("formatBorder").update({context:()=>({onBorderSelect:e=>{v(e)},darkMode:a.darkMode,quickBorder:w,autoColor:r.getStyles().getNormal().getFont().getFill(),autoStyle:e.IBorder.StrokeStyle.Thin,createTemporaryBorder:e=>r.getStyles().getNormal().createTemporaryStyle({border:e}).getBorder(),schemeLookup:r.getStyles().schemeLookup()})})};n.useEffect(()=>{ge()},[w]),n.useEffect(()=>{const e=!r.getProtection().isInsertHyperlinksAllowed();ce.getCommand("openHyperlink").update({disabled:!D().getHyperlink()}),ce.getCommand("deleteHyperlink").update({disabled:e||!D().getHyperlink()});const t=D().getHyperlink()?"Edit":"Insert",n="Link";ce.getCommand("updateHyperlink").update({label:()=>(D().getHyperlink(),`${t} ${n}`),scopedLabels:{contextMenu:`${t} ${n}…`,insert:`${n}…`,hyperlink:`${t}…`},disabled:e})},[D()?.getHyperlink(),re]),n.useEffect(()=>{const e=D().getComments(),t=()=>e?"Edit":"Insert",n=()=>e?"Comments":"Comment";ce.getCommand("updateComments").update({label:()=>`${t()} ${n()}`,scopedLabels:{contextMenu:`${t()} ${n()}…`,insert:`${n()}…`}})},[D()?.getComments(),re]),kk(r,{onViewChange:()=>{const t=r.getView();ce.getCommand("sheetViewToggleFormulaView").update({state:t.isShowFormulas()}),ce.getCommand("sheetViewToggleShowZeros").update({state:t.isShowZeros()}),ce.getCommand("gridlinesToggle").update({state:t.isShowColumnGridlines()||t.isShowRowGridlines()}),ce.getCommand("sheetViewToggleGridlinesColumns").update({state:t.isShowColumnGridlines()}),ce.getCommand("sheetViewToggleGridlinesRows").update({state:t.isShowRowGridlines()}),ce.getCommand("sheetViewToggleShowHeadings").update({state:t.isShowColumnHeaders()||t.isShowRowHeaders()}),ce.getCommand("sheetViewToggleShowHeadingColumns").update({state:t.isShowColumnHeaders()}),ce.getCommand("sheetViewToggleShowHeadingRows").update({state:t.isShowRowHeaders()}),ce.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>r.getView().getColumnHeaderStyle()===e.ISheetView.HeaderTextStyle.Zero&&r.getView().getRowHeaderStyle()===e.ISheetView.HeaderTextStyle.Zero}),me()},onTabColorChange:()=>{me()},onMergesChange:()=>{ae()},onMovablesChange:()=>{ae()},onTablesChange:()=>{ae()},onProtectionChange:()=>{ae(),ie()},onStyleChange:()=>{me(),ge(),ae()}}),n.useEffect(()=>{me(),ge()},[a]),n.useEffect(()=>{const e=!r.getProtection().isFormatCellsAllowed(),t=j.length>0&&!B||e,n=Z(B),o={context:n};ce.getCommand("editTable").update(o),ce.getCommand("deleteTable").update(o),ce.getCommand("convertTableToRange").update(o);const i={context:n,disabled:t};ce.getCommand("formatTableStyle").update({label:B?"Apply Table Style":"Format As Table",...i}),ce.getCommand("formatTableStyleClearCellStyles").update(i),ce.getCommand("deleteTableStyle").update(i),ce.getCommand("convertTableToRange").update(i),ce.getCommand("insertTable").update({disabled:t||j.length>0});const l={context:n,disabled:t||0===j.length};ce.getCommand("tableHeaderRowToggle").update(l),ce.getCommand("tableTotalRowToggle").update(l),ce.getCommand("autoFilterToggle").update(l),ce.getCommand("formatTableStyleClearTableStyle").update({...l,disabled:l.disabled||!B||null===B.getStyleOptions().name})},[B,j,re]),n.useEffect(()=>{ce.getCommand("sheetZoomOut").updateCallback(()=>{r.getView().update({zoomScale:he.findNextStep(r.getView().getZoomScale(),!1)})}),ce.getCommand("sheetZoomIn").updateCallback(()=>{r.getView().update({zoomScale:he.findNextStep(r.getView().getZoomScale())})}),ce.getCommand("sheetZoom100").updateCallback(()=>{r.getView().update({zoomScale:100})}),ce.getCommand("gridlinesToggle").updateCallback(()=>{const e=r.getView().isShowColumnGridlines()&&r.getView().isShowRowGridlines();r.getView().update({showColumnGridlines:!e,showRowGridlines:!e})}),ce.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{r.getView().update({showRowGridlines:!r.getView().isShowRowGridlines()})}),ce.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{r.getView().update({showColumnGridlines:!r.getView().isShowColumnGridlines()})}),ce.getCommand("sheetViewFormatGridlinesColor").updateCallback(e=>{r.getView().update({gridLineColor:e})}),ce.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const e=r.getView().isShowColumnHeaders()&&r.getView().isShowRowHeaders();r.getView().update({showColumnHeaders:!e,showRowHeaders:!e})}),ce.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{r.getView().update({showColumnHeaders:!r.getView().isShowColumnHeaders()})}),ce.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{r.getView().update({showRowHeaders:!r.getView().isShowRowHeaders()})}),ce.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const t=r.getView().getColumnHeaderStyle()===e.ISheetView.HeaderTextStyle.Zero&&r.getView().getRowHeaderStyle()===e.ISheetView.HeaderTextStyle.Zero;r.getView().update({columnHeaderStyle:t?e.ISheetView.HeaderTextStyle.A1:e.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:t?e.ISheetView.HeaderTextStyle.One:e.ISheetView.HeaderTextStyle.Zero})}),ce.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{r.getView().update({showFormulas:!r.getView().isShowFormulas()})}),ce.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{r.getView().update({showZeros:!r.getView().isShowZeros()})})},[r]),n.useEffect(()=>{const e=r.getView().getFreezePanes(),t=()=>0!==e.coords.rowIndex,n=()=>0!==e.coords.colIndex,o=()=>0!==e.coords.rowIndex||0!==e.coords.colIndex;ce.getCommand("freezeToggle").updateCallback(()=>{o()?r.getView().setFreezePanes(null):o()?n()?r.getView().setFreezePanes({coords:{rowIndex:h.rowIndex}}):t()&&r.getView().setFreezePanes({coords:{colIndex:h.colIndex}}):r.getView().setFreezePanes({coords:h})}).update({state:o,disabled:()=>!h||!o()&&0===h.rowIndex&&0===h.colIndex}),ce.getCommand("freezeToggleHorizontal").updateCallback(()=>{r.getView().setFreezePanes({coords:{rowIndex:t()?0:h.rowIndex}})}).update({state:t,disabled:()=>!h||!t()&&0===h.rowIndex}),ce.getCommand("freezeToggleVertical").updateCallback(()=>{r.getView().setFreezePanes({coords:{colIndex:n()?0:h.colIndex}})}).update({state:n,disabled:()=>!h||!n()&&0===h.colIndex}),ce.getCommand("unfreeze").updateCallback(()=>{r.getView().setFreezePanes(null)}).update({disabled:()=>!o()})},[le,h,r,a]);const xe=D().getStyle(),ye=xe.getFont(),be=xe.getAlignment(),we=be.getHorizontal(),ve=be.getVertical(),Se=be.getOverflow(),Ce=be.getRotation();return n.useEffect(()=>{ce.getCommand("formatCellStyle").update({context:()=>({styles:()=>r.getStyles(),named:()=>D().getStyle(!0).getNamed(),bodyStyle:q,createTemporaryCell:e=>r.createTemporaryCell(e)})}),ce.getCommand("formatFillColor").update({state:()=>{let t=null;const n=xe.getFill();return n?.getType()===e.IFill.Type.Solid?t=n.getColor():n?.getType()===e.IFill.Type.Gradient?t=n.getStops()?.[0]?.getColor():n?.getType()===e.IFill.Type.Pattern&&(t=n.getBackground()),t},context:()=>{const e=r.getStyles();return{onColorSelect:e=>{C(e??Ek)},darkMode:a.darkMode,quickColor:S,autoColor:Ek,schemeLookup:e.schemeLookup(),recentColors:e.recentColors(),addRecentColor:t=>e.addRecentColor(t),clearRecentColors:()=>e.clearRecentColors()}}}),ce.getCommand("formatFontColor").update({state:()=>ye.toJSON()?.fill?ye.getFill():null,context:()=>{const e=r.getStyles();return{onColorSelect:e=>{E(e)},darkMode:a.darkMode,quickColor:k,autoColor:e.getNormal().getFont().getFill(),schemeLookup:e.schemeLookup(),recentColors:e.recentColors(),addRecentColor:t=>e.addRecentColor(t),clearRecentColors:()=>e.clearRecentColors()}}}),ce.getCommand("formatNumberFormat").update({state:()=>xe.getNumberFormat(),context:()=>D}),ce.getCommand("formatNumberDialog").update({state:()=>xe.getNumberFormat(),context:()=>D}),ce.getCommand("formatFontFamily").update({state:()=>ye.getFamily()}),ce.getCommand("formatFontSize").update({state:()=>ye.getSize()});const t=function(){const e=ye.getWeight()||0;return!isNaN(e)&&e>500};ce.getCommand("formatBoldToggle").updateCallback(function(){O(this,{font:{weight:t()?400:700}})}).update({state:t});const n=function(){return ye.getStyle()===e.IFont.Style.Italic};ce.getCommand("formatItalicToggle").updateCallback(function(){O(this,{font:{style:n()?e.IFont.Style.Normal:e.IFont.Style.Italic}})}).update({state:n}),ce.getCommand("formatStrikeThroughToggle").updateCallback(function(){O(this,{font:{strike:!ye.getStrike()}})}).update({state:ye.getStrike()}),ce.getCommand("formatUnderlinedToggle").updateCallback(function(){O(this,{font:{underline:ye.getUnderline()!==e.IFont.UnderlineStyle.Single?e.IFont.UnderlineStyle.Single:e.IFont.UnderlineStyle.None}})}).update({state:ye.getUnderline()===e.IFont.UnderlineStyle.Single}),ce.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){O(this,{font:{underline:ye.getUnderline()!==e.IFont.UnderlineStyle.Double?e.IFont.UnderlineStyle.Double:e.IFont.UnderlineStyle.None}})}).update({state:ye.getUnderline()===e.IFont.UnderlineStyle.Double}),ce.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){O(this,{font:{underline:ye.getUnderline()!==e.IFont.UnderlineStyle.SingleAccounting?e.IFont.UnderlineStyle.SingleAccounting:e.IFont.UnderlineStyle.None}})}).update({state:ye.getUnderline()===e.IFont.UnderlineStyle.SingleAccounting}),ce.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){O(this,{font:{underline:ye.getUnderline()!==e.IFont.UnderlineStyle.DoubleAccounting?e.IFont.UnderlineStyle.DoubleAccounting:e.IFont.UnderlineStyle.None}})}).update({state:ye.getUnderline()===e.IFont.UnderlineStyle.DoubleAccounting}),ce.getCommand("formatSuperscriptToggle").updateCallback(function(){O(this,{font:{verticalAlign:ye.getVerticalAlignment()!==e.IFont.VerticalAlignment.Super?e.IFont.VerticalAlignment.Super:e.IFont.VerticalAlignment.Baseline}})}).update({state:ye.getVerticalAlignment()===e.IFont.VerticalAlignment.Super}),ce.getCommand("formatSubscriptToggle").updateCallback(function(){O(this,{font:{verticalAlign:ye.getVerticalAlignment()!==e.IFont.VerticalAlignment.Sub?e.IFont.VerticalAlignment.Sub:e.IFont.VerticalAlignment.Baseline}})}).update({state:ye.getVerticalAlignment()===e.IFont.VerticalAlignment.Sub});const o=()=>Se===e.ITextFrame.Overflow.Visible;ce.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){O(this,{alignment:{overflow:(o(),e.ITextFrame.Overflow.Visible)}})}).update({state:o});const i=()=>Se===e.ITextFrame.Overflow.Wrap;ce.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){O(this,{alignment:{overflow:i()?e.ITextFrame.Overflow.Visible:e.ITextFrame.Overflow.Wrap}})}).update({state:i});const l=function(){return Se===e.ITextFrame.Overflow.Clip};ce.getCommand("formatTextOverflowClipToggle").updateCallback(function(){O(this,{alignment:{overflow:l()?e.ITextFrame.Overflow.Visible:e.ITextFrame.Overflow.Clip}})}).update({state:l});const s=function(){return Se===e.ITextFrame.Overflow.Shrink};ce.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){O(this,{alignment:{overflow:s()?e.ITextFrame.Overflow.Visible:e.ITextFrame.Overflow.Shrink}})}).update({state:s});const c=function(){return Se===e.ITextFrame.Overflow.Shrink};ce.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){O(this,{alignment:{overflow:c()?e.ITextFrame.Overflow.Visible:e.ITextFrame.Overflow.Ellipsis}})}).update({state:c,disabled:!0});const d=function(){return ve===e.ITextFrame.VerticalAlignment.Top};ce.getCommand("formatAlignTopToggle").updateCallback(function(){O(this,{alignment:{vertical:d()?e.ITextFrame.VerticalAlignment.Bottom:e.ITextFrame.VerticalAlignment.Top}})}).update({state:d});const u=function(){return ve===e.ITextFrame.VerticalAlignment.Center};ce.getCommand("formatAlignMiddleToggle").updateCallback(function(){O(this,{alignment:{vertical:u()?e.ITextFrame.VerticalAlignment.Bottom:e.ITextFrame.VerticalAlignment.Center}})}).update({state:u});const p=function(){return ve===e.ITextFrame.VerticalAlignment.Bottom};ce.getCommand("formatAlignBottomToggle").updateCallback(function(){O(this,{alignment:{vertical:(p(),e.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:p});const h=function(){return ve===e.ITextFrame.VerticalAlignment.Justify};ce.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){O(this,{alignment:{vertical:h()?e.ITextFrame.VerticalAlignment.Bottom:e.ITextFrame.VerticalAlignment.Justify}})}).update({state:h});const f=function(){return ve===e.ITextFrame.VerticalAlignment.Distributed};ce.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){O(this,{alignment:{vertical:f()?e.ITextFrame.VerticalAlignment.Bottom:e.ITextFrame.VerticalAlignment.Distributed}})}).update({state:f});const m=function(){return we===e.ITextFrame.HorizontalAlignment.Left};ce.getCommand("formatAlignLeftToggle").updateCallback(function(){O(this,{alignment:{horizontal:m()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Left}})}).update({state:m});const g=function(){return we===e.ITextFrame.HorizontalAlignment.Center};ce.getCommand("formatAlignCenterToggle").updateCallback(function(){O(this,{alignment:{horizontal:g()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Center}})}).update({state:g});const x=function(){return we===e.ITextFrame.HorizontalAlignment.CenterContinuous};ce.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const t={alignment:{horizontal:x()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};O(this,t)}).update({state:x});const y=function(){return we===e.ITextFrame.HorizontalAlignment.Fill};ce.getCommand("formatAlignFillToggle").updateCallback(function(){const t={alignment:{horizontal:y()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Fill,rotation:null}};O(this,t)}).update({state:y});const b=function(){return we===e.ITextFrame.HorizontalAlignment.Distributed};ce.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){O(this,{alignment:{horizontal:b()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:b});const w=function(){return we===e.ITextFrame.HorizontalAlignment.Right};ce.getCommand("formatAlignRightToggle").updateCallback(function(){O(this,{alignment:{horizontal:w()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Right}})}).update({state:w});const v=function(){return we===e.ITextFrame.HorizontalAlignment.Justify};ce.getCommand("formatAlignJustifyToggle").updateCallback(function(){O(this,{alignment:{horizontal:v()?e.ITextFrame.HorizontalAlignment.General:e.ITextFrame.HorizontalAlignment.Justify}})}).update({state:v});const _=!r.getProtection().isFormatCellsAllowed(),T=we===e.ITextFrame.HorizontalAlignment.CenterContinuous||we===e.ITextFrame.HorizontalAlignment.Fill;ce.getCommand("formatTextRotate0").updateCallback(function(e){O(this,{alignment:{rotation:0}})}).update({disabled:_||T,state:0===Ce}),ce.getCommand("formatTextRotate45").updateCallback(function(e){O(this,{alignment:{rotation:e??1?45:0}})}).update({disabled:_||T,state:45===Ce}),ce.getCommand("formatTextRotate90").updateCallback(function(e){O(this,{alignment:{rotation:e??1?90:0}})}).update({disabled:_||T,state:90===Ce}),ce.getCommand("formatTextRotate270").updateCallback(function(e){O(this,{alignment:{rotation:e??1?270:0}})}).update({disabled:_||T,state:270===Ce}),ce.getCommand("formatTextRotate315").updateCallback(function(e){O(this,{alignment:{rotation:e??1?315:0}})}).update({disabled:_||T,state:315===Ce}),ce.getCommand("formatTextRotateCustom").updateCallback(function(e){O(this,{alignment:{rotation:e}})}).update({disabled:_||T,state:Ce??0})},[xe,r,a,S,k]),n.useEffect(()=>{const t=!r.getProtection().isFormatCellsAllowed(),n=r.getSelectedRanges().getMerges().length>0,o=async(t,n)=>{L(n,async o=>{const r=async(r=!1)=>{const i=await Promise.resolve(d?.showBusy?.(n.label()));try{const n=o.getSelectedRanges();if(n.merge({orientations:t,discardMultipleValues:r}),t===e.IRange.Orientations.Both){const t={alignment:{horizontal:e.ITextFrame.HorizontalAlignment.Center}};n.updateStyle(t)}}catch(e){throw e}finally{i?.()}};let i;try{await r()}catch(e){if("discardMultipleValues"!==e.type)throw e;i=!0}if(i&&d?.showOptions){if("Merge"!==await(d?.showOptions({title:"Confirm",description:"Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",options:["Merge","Cancel"],defaultOption:"Merge"})))return;await r(!0)}},void 0,void 0,!1)},i=e=>{L(e,async e=>{try{const t=e.getSelectedRanges();t.unmerge();const n={alignment:{horizontal:null}};t.updateStyle(n)}catch(e){throw e}})};ce.getCommand("mergeToggle").updateCallback(function(){H.isSingleCell(r.getSelectedRange().getCoords())||(n?i(this):o(e.IRange.Orientations.Both,this))}).update({state:n,disabled:!de||t}),ce.getCommand("mergeHorizontal").updateCallback(function(){o(e.IRange.Orientations.Column,this)}).update({disabled:!de||t}),ce.getCommand("mergeVertical").updateCallback(function(){o(e.IRange.Orientations.Row,this)}).update({disabled:!de}),ce.getCommand("unmerge").updateCallback(function(){i(this)}).update({disabled:!n||!de||t});const l={disabled:t};ce.getCommand("hideRows").updateCallback(function(){L(this,e=>{e.getRowHeaders().setHidden(e.getSelectedRanges().getCoords(),!0)})}).update(l),ce.getCommand("hideColumns").updateCallback(function(){L(this,e=>{e.getColumnHeaders().setHidden(e.getSelectedRanges().getCoords(),!0)})}).update(l),ce.getCommand("unhideRows").updateCallback(function(){L(this,e=>{e.getRowHeaders().setHidden(e.getSelectedRanges().getCoords(),!1)})}).update(l),ce.getCommand("unhideColumns").updateCallback(function(){L(this,e=>{e.getColumnHeaders().setHidden(e.getSelectedRanges().getCoords(),!1)})}).update(l),ce.getCommand("autoFitRows").updateCallback(function(){L(this,t=>{t.getSelectedRanges().autoFit({orientations:e.IRange.Orientations.Row})})}).update(l),ce.getCommand("autoFitColumns").updateCallback(function(){L(this,t=>{t.getSelectedRanges().autoFit({orientations:e.IRange.Orientations.Column})})}).update(l);let a=!1,s=0,c=!1,u=!1,p=0,h=!1;!m||t||pe||(a=m.isEntireColumnsAny(),a&&!m.isEntireColumns()?c=!0:s=m.getColumnCount(),u=m.isEntireRowsAny(),u&&!m.isEntireRows()?h=!0:p=m.getRowCount());const f={disabled:t||m&&1!==m.getCount()};ce.getCommand("sortAscending").update(f),ce.getCommand("sortDescending").update(f);const g={disabled:a||u||t||pe},x=a||t||pe||h;x&&(s=1);const y=u||t||pe||c;y&&(p=1);let b="",w="",v="",S="",C="",k="",E="",T="",j="";s>1&&(k=w=s+" ",E=v="s"),p>1&&(T=S=p+" ",j=C="s"),"copy"===_.getMode()?.key?(b=S=w="Copied ",v=C="s"):"cut"===_.getMode()?.key&&(b=S=w="Cut ",v=C="s");let M="",R="";if(m){const t=m.getDefaultShiftOrientation()===e.IRange.Orientation.Column;M=` (${t?"Shift Right":"Shift Down"})`,R=` (${t?"Shift Left":"Shift up"})`,ce.getCommand("deleteCells").update({label:`Delete Cells${R}`})}ce.getCommand("insertCells").update({label:`Insert ${b}Cells${M}`,scopedLabels:{insertCells:`${b}At Selection`}}),ce.getCommand("insertCellsShiftRight").update(g),ce.getCommand("insertCellsShiftDown").update(g),ce.getCommand("deleteCellsShiftUp").update(g),ce.getCommand("deleteCellsShiftLeft").update(g),ce.getCommand("insertRows").update({label:`Insert ${S}Row${C}`,scopedLabels:{insertCells:`${S}Row${C}`},disabled:y}),ce.getCommand("insertRowsAfter").update({label:`Insert ${S}Row${C} Below`,disabled:y}),ce.getCommand("insertColumns").update({label:`Insert ${w}Column${v}`,scopedLabels:{insertCells:`${w}Column${v}`},disabled:x}),ce.getCommand("insertColumnsAfter").update({label:`Insert ${w}Column${v} After`,disabled:x}),ce.getCommand("deleteRows").update({label:`Delete ${T}Row${j}`,scopedLabels:{deleteCells:`${T}Row${j}`},disabled:y}),ce.getCommand("deleteColumns").update({label:`Delete ${k}Column${E}`,scopedLabels:{deleteCells:`${k}Column${E}`},disabled:x})},[le,de,pe,m,_,d,re]),n.useEffect(()=>{const t=r.getProtection(),n=r.getProtection().isLocked(),o=!t.isFormatCellsAllowed(),i={disabled:o};ce.getCommand("protectionSheetToggle").updateCallback(async(e,o)=>{let r=null;try{if(n){let e=null;if(t.hasPassword()){const t=await(d?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"}));if("Unprotect"!==t.option)return;e=t.input}r=await Promise.resolve(d?.showBusy?.(o.label())),await t.unlock(e)}else r=await Promise.resolve(d?.showBusy?.(o.label())),await t.lock();r?.()}catch(e){r?.(),d?.showError?.(e)}}).update({state:n,label:()=>n?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:n?"Unprotect":"Protect"}}),ce.getCommand("deleteTable").update(i),ce.getCommand("sortAscending").update(i),ce.getCommand("sortDescending").update(i),ce.getCommand("sortCustom")?.update(i),ce.getCommand("updateComments").update(i),ce.getCommand("deleteComments").update(i),ce.getCommand("insertChart")?.update(i),ce.getCommand("insertImageFromFile").update(i),ce.getCommand("insertImageFromURL").update(i),ce.getCommand("formatBorder").update(i),ce.getCommand("formatFillColor").update(i),ce.getCommand("formatFontColor").update(i),ce.getCommand("formatBoldToggle").update(i),ce.getCommand("formatItalicToggle").update(i),ce.getCommand("formatUnderlinedToggle").update(i),ce.getCommand("formatStrikeThroughToggle").update(i),ce.getCommand("formatSuperscriptToggle").update(i),ce.getCommand("formatSubscriptToggle").update(i),ce.getCommand("formatAlignTopToggle").update(i),ce.getCommand("formatTextOverflowVisibleToggle").update(i),ce.getCommand("formatTextOverflowWrapToggle").update(i),ce.getCommand("formatTextOverflowClipToggle").update(i),ce.getCommand("formatTextOverflowShrinkToggle").update(i),ce.getCommand("formatAlignMiddleToggle").update(i),ce.getCommand("formatAlignBottomToggle").update(i),ce.getCommand("formatAlignDistributedVerticalToggle").update(i),ce.getCommand("formatAlignJustifyVerticalToggle").update(i),ce.getCommand("formatAlignLeftToggle").update(i),ce.getCommand("formatAlignCenterToggle").update(i),ce.getCommand("formatAlignRightToggle").update(i),ce.getCommand("formatAlignJustifyToggle").update(i),ce.getCommand("formatAlignCenterContinuousToggle").update(i),ce.getCommand("formatAlignDistributedHorizontalToggle").update(i),ce.getCommand("formatAlignFillToggle").update(i),ce.getCommand("formatFontSizeIncrease").update(i),ce.getCommand("formatFontSizeDecrease").update(i),ce.getCommand("formatFontFamily").update(i),ce.getCommand("formatFontSize").update(i),ce.getCommand("formatNumberFormat").update(i),ce.getCommand("formatNumberFormatGeneralStyle").update(i),ce.getCommand("formatNumberFormatNumberStyle").update(i),ce.getCommand("formatNumberFormatTimeStyle").update(i),ce.getCommand("formatNumberFormatDateStyle").update(i),ce.getCommand("formatNumberFormatAccountingStyle").update(i),ce.getCommand("formatNumberFormatPercentStyle").update(i),ce.getCommand("formatNumberFormatScientificStyle").update(i),ce.getCommand("formatNumberFormatCommaStyle").update(i),ce.getCommand("formatNumberFormatIncreaseDecimal").update(i),ce.getCommand("formatNumberFormatDecreaseDecimal").update(i),ce.getCommand("hideColumns").update(i),ce.getCommand("unhideColumns").update(i),ce.getCommand("hideRows").update(i),ce.getCommand("unhideRows").update(i),ce.getCommand("quickFormulaSum").update(i),ce.getCommand("quickFormulaAverage").update(i),ce.getCommand("quickFormulaCount").update(i),ce.getCommand("quickFormulaMax").update(i),ce.getCommand("quickFormulaMin").update(i),ce.getCommand("startEditCurrentTime").update(i),ce.getCommand("startEditCurrentDate").update(i),ce.getCommand("startEditValueAbove").update(i),ce.getCommand("fillDown").update(i),ce.getCommand("fillRight").update(i),ce.getCommand("fillUp").update(i),ce.getCommand("fillLeft").update(i),ce.getCommand("formatCellStyle").update(i),ce.getCommand("formatTableStyle").update(i),ce.getCommand("formatPainterToggle").update(i),ce.getCommand("formatBorderAddOutline").update(i),ce.getCommand("formatBorderClearOutline").update(i),ce.getCommand("formatIndentDecrease").update(i),ce.getCommand("formatIndentIncrease").update(i),ce.getCommand("clearContents").update(i),ce.getCommand("clearFormats").update(i),ce.getCommand("clearAll").update(i),ce.getCommand("clearComments").update(i),ce.getCommand("clearHyperlinks").update(i),ce.getCommand("autoFilterClear").update(i),ce.getCommand("autoFilterReapply").update(i);const l=we===e.ITextFrame.HorizontalAlignment.CenterContinuous||we===e.ITextFrame.HorizontalAlignment.Fill,a={disabled:o||l};ce.getCommand("formatTextRotate0").update(a),ce.getCommand("formatTextRotate45").update(a),ce.getCommand("formatTextRotate90").update(a),ce.getCommand("formatTextRotate270").update(a),ce.getCommand("formatTextRotate315").update(a),ce.getCommand("formatTextRotateCustom").update(a),ce.getCommand("formatTextRotateVertical").update(a)},[le]),ce}var Tk,jk;!function(){if(jk)return Tk;jk=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i="object"==typeof lk&&lk&&lk.Object===Object&&lk,l="object"==typeof self&&self&&self.Object===Object&&self,a=i||l||Function("return this")(),s=Object.prototype.toString,c=Math.max,d=Math.min,u=function(){return a.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(i))return NaN;if(p(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=p(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var a=n.test(i);return a||o.test(i)?r(i.slice(2),a?2:8):t.test(i)?NaN:+i}Tk=function(e,t,n){var o,r,i,l,a,s,f=0,m=!1,g=!1,x=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,i=r;return o=r=void 0,f=t,l=e.apply(i,n)}function b(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-f>=i}function w(){var e=u();if(b(e))return v(e);a=setTimeout(w,function(e){var n=t-(e-s);return g?d(n,i-(e-f)):n}(e))}function v(e){return a=void 0,x&&o?y(e):(o=r=void 0,l)}function S(){var e=u(),n=b(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(w,t),m?y(e):l}(s);if(g)return a=setTimeout(w,t),y(s)}return void 0===a&&(a=setTimeout(w,t)),l}return t=h(t)||0,p(n)&&(m=!!n.leading,i=(g="maxWait"in n)?c(h(n.maxWait)||0,t):i,x="trailing"in n?!!n.trailing:x),S.cancel=function(){void 0!==a&&clearTimeout(a),f=0,o=s=r=a=void 0},S.flush=function(){return void 0===a?l:v(u())},S}}();var Mk,Rk,Ik={};Rk||(Rk=1,function(){if(Mk)return Ik;Mk=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=e.useState,r=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=o({inst:{value:n,getSnapshot:t}}),c=s[0].inst,d=s[1];return i(function(){c.value=n,c.getSnapshot=t,a(c)&&d({inst:c})},[e,n,t]),r(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),l(n),n};Ik.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s}());var Dk,Lk,Ok={exports:{}},Pk={exports:{}},Ak=Pk.exports;function Fk(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}!function(){if(Lk)return Ok.exports;Lk=1;for(var e=(Dk||(Dk=1,function(){var e,t,n,o,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?Pk.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Pk.exports=function(){return(e()-r)/1e6},t=process.hrtime,o=(e=function(){var e;return 1e9*(e=t())[0]+e[1]})(),i=1e9*process.uptime(),r=o-i):Date.now?(Pk.exports=function(){return Date.now()-n},n=Date.now()):(Pk.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}.call(Ak)),Pk.exports),t="undefined"==typeof window?lk:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var a=0,s=0,c=[],d=1e3/60;r=function(t){if(0===c.length){var n=e(),o=Math.max(0,d-(n-a));a=o+n,setTimeout(function(){var e=c.slice(0);c.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(a)}catch(e){setTimeout(function(){throw e},0)}},Math.round(o))}return c.push({handle:++s,callback:t,cancelled:!1}),s},i=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}Ok.exports=function(e){return r.call(t,e)},Ok.exports.cancel=function(){i.apply(t,arguments)},Ok.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=r,e.cancelAnimationFrame=i}}();const zk=n.memo(n.forwardRef((e,o)=>{const{style:r=zt.EmptyCssProperties,orientation:i,sheet:l,onShowTooltip:a,onCloseTooltip:s,onScrollOffset:c,showCustomScrollButtons:d=!1,offset:u=0,totalSize:p=0,viewportSize:h=0,...f}=e;if(!l)throw new Error("SheetScrollBar needs a sheet model");const[m]=ck(),g=nt(a,[a]),x=nt(s,[s]),y=n.useMemo(()=>null===b&&null===w?null:e=>{Fk(b,e),Fk(w,e)},[b=m,w=o]);var b,w;const[v,S]=n.useState(()=>{const e=l.getView().getTopLeft();return i===Ge.Vertical?e.top:e.left}),C=()=>{const e=l.getView().getFreezePanes();return i===Ge.Vertical?0===e.coords.rowIndex?{shift:0,scroll:0}:{shift:l.getRowHeaders().findOffset(e.coords.rowIndex)-e.topLeft.top,scroll:e.topLeft.top}:0===e.coords.colIndex?{shift:0,scroll:0}:{shift:l.getColumnHeaders().findOffset(e.coords.colIndex)-e.topLeft.left,scroll:e.topLeft.left}},[k,E]=n.useState(C),[_,T]=n.useState(null),[j,M]=n.useState(!1),R=i===Ge.Vertical?l.getRowHeaders():l.getColumnHeaders(),I=()=>{const e=l.getUsedRange()?.getCoords()??H.EmptyRange,t=l.getSelection().getCoords().cell;return{colIndex:Math.max(e.colEnd,t.colIndex),rowIndex:Math.max(e.rowEnd,t.rowIndex)}},[D,L]=n.useState(I),O=D?(i===Ge.Vertical?D.rowIndex:D.colIndex)+1:0,P=()=>{const e=I();H.isEqualCells(D,e)||L(e)};kk(l.getView(),{onFreezeSplitChange:()=>{E(C)}}),kk(l.getSelection(),{onChange:P}),kk(l,{onUsedRangeChange:P}),n.useEffect(()=>{L(I())},[l]),n.useEffect(()=>{if(!_)return j&&x?.(),void M(!1);const e=R.getTextAt(R.findIndex(v/(l.getView().getZoomScale()/100)+k.scroll+k.shift));M(!0),g?.({..._,display:(i===Ge.Vertical?"Row":"Column")+": "+e})},[u,v,k,i,_,R,j,l]);const A=nt((e,t,n)=>{S(e);const o=e+k.scroll,r=t+k.shift,i=n+k.shift+k.scroll;c?.(o,r,i)},[c,k]),F=u-k.scroll,z=h-k.shift,B=p-(k.shift+k.scroll),N=R.findOffset(O)*(l.getView().getZoomScale()/100)-(k.scroll+k.shift);return t.jsx(nn,{ref:y,style:r,offset:F,viewportSize:z,totalSize:B,orientation:i,showCustomScrollButtons:d,onMouseDown:e=>{T({anchor:{x:e.clientX,y:e.clientY}}),e.preventDefault()},onScrollOffset:A,onMouseOut:()=>{T(null)},onMouseUp:()=>{T(null)},minSize:N,...f})}));zk.displayName="SheetScrollbar";const Bk=(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},Nk=n.memo(n.forwardRef((o,r)=>{const{sheetHeader:i,gridRef:l,sheetElement:a,commands:s,oppositeSize:c=30,containerWidth:d,containerHeight:u,headerText:p,freezeStart:h,gridStyle:f,verticalPadding:m,horizontalPadding:g,onSheetContextMenu:x,onResizeHeadersStart:y,onResizeHeaders:b,onResizeHeadersEnd:w,onResizeHeadersDown:v,onResizeHeadersUp:S,scrollPoint:C,onSelectionStart:k,onSelectionEnd:E}=o,_=n.useMemo(()=>i.getOrientation(),[i]),T=n.useRef(null),[j,M]=n.useReducer(e=>e+1,0),[R,I]=n.useReducer(e=>e+1,0),D=i?.getSheet(),L=n.useRef(!1);n.useLayoutEffect(()=>{L.current=!0},[i]);const O=n.useMemo(()=>i.getEntireRange().getCoords().max+1,[i]),P=n.useMemo(()=>{const t=_===e.IRange.Orientation.Column;return{left:t?C.left:0,top:t?0:C.top}},[C]),[A,F]=n.useState(D?.getView().getZoomScale()/100),[z,B]=n.useState(null);kk(i,{onSizesChange:e=>{F(D?.getView().getZoomScale()/100),ne(ee())}});const N=n.useCallback(()=>{T.current?.invalidate(),I()},[]),V=n.useCallback(he.debounce(()=>{N()},10),[]),[H,$]=n.useState(null);kk(i.getSheet(),{onSelectionChange(){$(D?.getSelection().getCoords()),V()},onProtectionChange(){N()},onViewChange(){V()}}),n.useLayoutEffect(()=>{ne(ee())},[_,A,c]),n.useLayoutEffect(()=>{B(null),F(i?.getSheet().getView().getZoomScale()/100),ne(ee())},[i]);const W=n.useCallback(e=>i.at(e)?.isHidden()||0===i.at(e)?.getSize(),[i]),U=n.useCallback((e,t)=>i.hiddenHeadersAt(e,t),[W]),q=nt(e=>i.isSelected(e),[i]),Z=nt(e=>i.isSelectedAll(e),[i]),G=n.useCallback(()=>i.getMinSize(),[i]),K=n.useCallback(()=>i.getMaxSize(),[i]),X=nt((t,n,o)=>{n/=A;const r={size:n=Math.max(G(),Math.min(he.roundAccurately(n,G()),K())),hidden:!1},l=[];if(n<=0&&(r.hidden=!0,r.size=o),l.push({address:{min:t,max:t},update:r}),n<0){const o=_===e.IRange.Orientation.Column,r=o?te.getColOffset:te.getRowOffset,i=o?te.getColIndex:te.getRowIndex,a=r(t);let s=i(a+n);const c=r(s);c===a+n?s--:l.push({address:{min:s,max:s},update:{size:a-c+n}}),t-s>1&&l.push({address:{min:s+1,max:t-1},update:{hidden:!0}})}i.updateHeaderPairs(l),b?.(t,n,o)},[j,i,A,b]),Y=nt((t,n,o)=>{const r=_===e.IRange.Orientation.Column;let l=null,a={min:t,max:t};if(i.isSelectedAll(t)){const e=i.getSelectedRuns();e.length>1?l="Resize "+(r?"Columns":"Rows"):a=e[0];const s={hidden:n<=0,size:(n<=0?o:n)/A};i.updateHeaderPairs(Bk(e,s,t))}if(a){const e=a.max-a.min+1;let t;t=1===e?i.getRange(a).at(0).getDisplayText():i.getRange(a).toString(),l=`Resize ${r?"Column":"Row"}${e>1?"s":""} '${t}'`}w?.(t,n,l)},[j,i,w]),J=nt((t,n)=>{const o=_===e.IRange.Orientation.Column;y(t,n,`Resize ${o?"Column":"Row"}(s)`)},[y]),Q=nt(t=>{let n=!1;const o=_===e.IRange.Orientation.Column,r=i.getSheet().getEntireRange().getCoords(),l=[],a=i.getSelectedRuns(),s=e=>{let t;t=o?{colStart:e.min,rowStart:r.rowStart,colEnd:e.max,rowEnd:r.rowEnd}:{colStart:r.colStart,rowStart:e.min,colEnd:r.colEnd,rowEnd:e.max},l.push(t)};for(let e=0;e<a.length;e++){const o=a[e];o.value.isSelectedAll&&(o.min<=t&&o.max>=t&&(n=!0),s(o))}if(n||s({min:t,max:t}),i.getSheet().getRanges(l).autoFit({orientations:o?e.IRange.Orientations.Column:e.IRange.Orientations.Row}),W(t)){const e={hidden:null},o=Bk(a,e);n||o.push({address:t,update:e}),i.updateHeaderPairs(o)}w?.(t,null,"Resize Column(s)")},[j,i,w,W]),ee=()=>{const t=_===e.IRange.Orientation.Column;return{getColOffset:e=>t?i.findOffset(e):0===e?0:c/A,getColIndex:e=>t?i.findIndex(e):0,getRowOffset:e=>t?0===e?0:c/A:i.findOffset(e),getRowIndex:e=>t?0:i.findIndex(e)}},[te,ne]=n.useState(()=>ee()),oe=n.useCallback((t,n)=>!(t.nativeEvent.which===Ze&&Z(_===e.IRange.Orientation.Column?n.colIndex:n.rowIndex)),[_,Z]),re=nt(e=>{a.focusSheet()},[a]),ie=nt(e=>{D?.getSelection().updateCoords(e)},[D]),{...le}=SC({gridRef:l,commands:null,layout:te,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:ie,canSelectionSpanMergedCells:e=>{const t=D.getRange(e);return t.isEntireColumns()||t.isEntireRows()}}),ae=nt(()=>{k?.();const e=D?.getSelection();e&&e.setAdjusting(e.getCoords())},[D,k]),se=nt(async()=>{D?.getSelection().setAdjusting(null),E?.()},[D,E]),{...ce}=zS({orientation:_,headerCount:O,gridRef:T,gridMainRef:l,newSelection:le?.newSelection,modifySelection:le?.modifySelection,appendSelection:le?.appendSelection,clearSelections:le?.clearSelections,pointerDownInterceptor:oe,onPointerUp:re,onDragStart:ae,onDragEnd:se}),de=f.selection?.strokeFill;n.useEffect(()=>{if(!T.current)return void B(null);const n=_===e.IRange.Orientation.Column,o=i.getSelectedRuns(),r=i.isProtected()?null:X,l=(e,o,r)=>{if(r)return t.jsx("div",n?{style:{position:"absolute",borderBottom:`${f.headerSelection.strokeWidth}px solid ${de}`,pointerEvents:"none",top:`${zt.boundPixel(-f.headerSelection.strokeWidth/2)}px`,left:`${zt.boundPixel(r.x-f.headerSelection.strokeWidth)}px`,width:`${zt.boundPixel(r.width+f.headerSelection.strokeWidth+1,!0)}px`,height:c+f.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${f.headerSelection.strokeWidth}px solid ${de}`,pointerEvents:"none",top:`${zt.boundPixel(r.y-f.headerSelection.strokeWidth)}px`,left:`${zt.boundPixel(-f.headerSelection.strokeWidth/2)}px`,width:c+f.headerSelection.strokeWidth-.5+"px",height:`${zt.boundPixel(r.height+f.headerSelection.strokeWidth+1,!0)}px`}},e)},a=(e,t,o)=>{const r={x:0,y:0,width:0,height:0};if(n){const n=o.toClipBounds(o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:e,colEnd:Math.min(O,t)}),mC);if(!n)return;r.x=n.x,r.width=n.width}else{const n=o.toClipBounds(o.getRangeCoordsBounds({rowStart:e,rowEnd:Math.min(O,t),colStart:0,colEnd:0}),mC);if(!n)return;r.y=n.y,r.height=n.height}return{x:r.x,y:r.y,width:r.width,height:r.height}};B([e=>{const l=[];let a=null,s=n?e.getVisibleColumns():e.getVisibleRows();const c=n?e.getTotalRangeCoords().colStart:e.getTotalRangeCoords().rowStart;s.length>0&&s[0]>c&&(s=[s[0]-1,...s]);let d=[];const u=[];for(let e=0;e<s.length;e++){const t=s[e],n=e<s.length-1?s[e+1]:t+U(t+1,!1)+1,i=t+1!==n;if(!a||a.max<t)if(o.length>0&&o[o.length-1].max>=t){const e=he.findEqualOrGreater(o,t,e=>e.max);a=o[e]}else a=null;let l=!1,p=!1;if(a?.value&&(a.min<=t||a.min<=n&&!i)&&(l=!0,p=a.value.isSelectedAll),t===c){let e=!1,n=!1;a?.value&&a.min<=t&&(e=!0,n=a.value.isSelectedAll),t>0&&u.push({index:t-1,isNextHidden:i,isSelected:e,isSelectedAll:n,disabledResize:!0})}if(p&&d.push(u.length),u.push({index:t,isHidden:0===e&&U(t,!1)>0,isNextHidden:i,isSelected:l,isSelectedAll:p,onDividerMouseDown:v,onDividerResizeStart:J,onDividerResize:r,onDividerMouseUp:S,onDividerResizeEnd:Y,onDividerAutoFit:Q}),i){let e=!1,i=!1;if(a&&a.min>=t&&a.max<=n-1&&a.value.isSelectedAll&&d.push(u.length),a?.value&&a.max>=n);else if(o.length>0&&o[o.length-1].max>=n){const e=he.findEqualOrGreater(o,n,e=>e.max);a=o[e]}else a=null;a?.value&&a.min<=n&&(e=a.value.isSelected,i=a.value.isSelectedAll),n>0&&u.push({index:n-1,isHidden:!0,isSelected:e,isSelectedAll:i,onDividerMouseDown:v,onDividerResizeStart:J,onDividerResize:r,onDividerMouseUp:S,onDividerResizeEnd:Y,onDividerAutoFit:Q})}}if(d.length>0){let t=d.length-1;if(d.length>0){const o=u[d[t]].index;let r=null;n?(r=e.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:o,colEnd:o}),r.x+r.width>e.getBounds().width&&(t-=1,0===t&&(t=-1))):(r=e.getRangeCoordsBounds({rowStart:o,rowEnd:o,colStart:0,colEnd:0}),r.y+r.height>e.getBounds().height&&(t-=1,0===t&&(t=-1)))}const r=o?.[o.length-1],i=e.getAnchor();if("t"===i||"l"===i){const e=u[d[Math.max(0,d.length-1)]];e.showTouchDivider=r&&r.max<=e.index}else t>=0&&(u[d[t]].showTouchDivider=!0)}const{header:p,headerSelect:h,headerSelectAll:m,headerHover:g}=f??{};for(let n=0;n<u.length;n++)l.push(t.jsx(NC,{orientation:_,view:e,headerStyle:p,headerStyleSelect:h,headerStyleSelectAll:m,headerStyleHover:g,disabled:i.isProtected(),...u[n]},`divider${n}`));return l},e=>{const t=[];for(let n=0;o&&n<o.length;n++)t.push(l(`selection:${e.getAnchor()}:${n}`,0,a(o[n].min,o[n].max,e)));return t}])},[R,!0,de,f,te,O,h,j,A]),n.useEffect(()=>{T.current?.invalidate()},[j]);const ue=nt(e=>p?p(e):i.getTextAt(e),[p,i]),pe=nt(n=>{const{header:o,headerSelect:r,headerSelectAll:i,headerHover:l}=f??{},{range:a,key:s,...c}=n;return t.jsx(PC,{orientation:_,index:_===e.IRange.Orientation.Column?a.colStart:a.rowStart,isSelected:q,isSelectedAll:Z,zoomScale:100*A,headerText:ue,headerStyle:o,headerStyleSelect:r,headerStyleSelectAll:i,headerStyleHover:l,verticalPadding:m,horizontalPadding:g,...c},s)},[j,O,f,A,i]),fe=Dn(),me=n.useMemo(()=>{const t="white",n="black",o={};if("touch"!==zt.detectIt().primaryInput){let r=_===e.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='${n}' fill='${t}'/%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='${n}' fill='${t}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;const i=fe.getMode();if("formatPainter"===i?.key){const e=30,o=22;r=`url("data:image/svg+xml,%3Csvg width='${e}' height='${o}' viewBox='0 0 ${e} ${o}' 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='${n}' fill='${t}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`}o.cursor=r}return o.backgroundColor=f?.header?.fill||"transparent",o},[_,j,fe,f]),ge=Nt(r,()=>({scrollTo:e=>{T.current?.scrollTo(e)},forceRender:()=>{M()},getGridElement:()=>T.current}),[]),xe=n.useCallback(e=>{ce.onPointerDown(e)},[ce]),ye=n.useCallback(t=>{const n=ce.getCellCoordsFromClient(t.clientX,t.clientY);if(!n)return;if(!x)return;const o=_===e.IRange.Orientation.Column;x({originalEvent:t,clientX:t.clientX,clientY:t.clientY,rowIndex:o?-1:n.rowIndex,colIndex:o?n.colIndex:-1}),t.stopPropagation(),t.preventDefault()},[ce,x]),be=n.useMemo(()=>{const n=_===e.IRange.Orientation.Column;return t.jsx("div",{ref:ge,children:t.jsx(DC,{className:"sheet-header",style:me,ref:T,scrollPoint:P,columnCount:n?O:1,rowCount:n?1:O,width:n?d:c,height:n?c:u,freezeLeft:n?h:void 0,freezeTop:n?void 0:h,hiddenColumnsAt:n?U:void 0,hiddenRowsAt:n?void 0:U,showGridLines:!1,layout:te,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:ye,onPointerDown:xe,zoom:A,cellRenderer:pe,overlays:z})})},[z,te,d,u,P,me,R]);return n.useEffect(()=>{L.current=!1,T.current?.invalidate(),I()},[i,f]),be})),Vk=n.memo(n.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,l=nt((e,t)=>e.getStyle().getBorder(),[]),{overlay:a}=hk({getVisibleCells:r,getBorderAt:l,darkMode:i.body.darkMode,shiftIfWide:!0}),s=a(n);return s&&n?s:null})),Hk={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},$k={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},Wk={type:e.ICell.Content.Values},Uk={fitDestination:!0,type:e.ICell.Content.Formats},qk={fitDestination:!0,type:e.ICell.Content.Formulas},Zk={transpose:!0},Gk={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},Kk=n.memo(n.forwardRef((t,o)=>{const{view:r,element:i,sheet:l,gridStyle:a,commands:s,notifier:c}=t,d=a.body??{},u=l.getView(),{overlays:p}=(({element:t,sheet:o,sheetView:r,commands:i,onClipboardUpdate:l,onPaste:a,selectionRenderer:s=nC,copyForegroundColor:c="rgb(33, 115, 70)",cutForegroundColor:d="rgb(33, 115, 70)",copyBackgroundColor:u="white",cutBackgroundColor:p="white",notifier:h,...f})=>{const m=nt(s,[s]),g=n.useRef(null),x=Dn(),y=x.getMode(),b=n.useMemo(()=>({element:t,doCopy:t=>{const n=o.getSelectedRanges().getSnapshot(t);return new e.RangeClipboardItem(n)}}),[o,r,t]),w=n.useMemo(()=>({element:t,importFromExternal:async(t,n)=>{const r=new e.ExternalRangeClipboardItem(t,n,o.getStyles(),o.isDate1904());return await r.parse()?r:null},doPaste:async(t,n)=>{if("range"!==t?.getItemType())return;n?.contentsOnly&&delete(n={...n,type:e.ICell.Content.Values}).contentsOnly;const r=o.getSelectedRange(),i=t.getItem(),l=i.getName();return await r.doBatch(async()=>{const t=await r.copyFrom(i,n);!t||t.isEntireRows()||t.isEntireColumns()||t.autoFit({orientations:e.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(l?` ${l}`:""),autoSelect:!0}),!0}}),[o,r,h,t]),{clipboard:v,...S}=Wn({...f,source:b,commands:i,target:w,notifier:h,onClipboardUpdate:e=>{const t="range"===e?.getItemType()?e:null;if(t){const t=e.editMode?.(),n={...e?.isCut?.()?$k:Hk,...t,args:{isClipboard:!0,...t?.args},onModeChange:e=>{e?.args?.isClipboard||v.clear(!0),t?.onModeChange?.(e)}};x.setMode(n)}g.current=t,l?.(t)},onPaste:(e,n)=>{if("range"!==e?.getItemType())return;let r="cut"===x.getMode()?.key||e.isCut?.();if(!r&&"copy"===x.getMode()?.key){const t=e.getItem().getCoords(),n=o.getSelectedRanges().getCoords();let i=!1;if(!i&&t&&n&&e.getItem().getSource?.()===o)for(let e=0;!i&&e<n.length;e++)i=H.isRangesIntersect(t,n[e]);r=i}r&&x.setMode(null),t?.()?.focus(),a?.(e,n)}});n.useMemo(()=>{const e=t;if(!i)return;const n=[new Ln("pasteValues",e,{label:"Paste Values",scopedLabels:{paste:"Values"},description:"Paste only the values of the selected cells.\n\nThe formatting is not applied.",shortcut:{key:"V",modifiers:[Ue.Ctrl,Ue.Shift]}}),new Ln("pasteFormats",e,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:"Paste only the formats of the selected cells.\n\nThe content is not applied."}),new Ln("pasteFormulas",e,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new Ln("pasteTranspose",e,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new Ln("pasteLinks",e,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];i.addCommands(n,!0)},[i,t]),n.useEffect(()=>{if(!i)return;const e={disabled:!o.getProtection().isFormatCellsAllowed()};i.getCommand("pasteValues").updateCallback(e=>S.paste({...Wk,...e})).update(e),i.getCommand("pasteFormats").updateCallback((e,t)=>S.paste({...Uk,description:t.label(),...e})).update(e),i.getCommand("pasteFormulas").updateCallback((e,t)=>S.paste({...qk,description:t.label(),...e})).update(e),i.getCommand("pasteTranspose").updateCallback((e,t)=>S.paste({...Zk,description:t.label(),...e})).update(e),i.getCommand("pasteLinks").updateCallback((e,t)=>S.paste({...Gk,description:t.label(),...e})).update(e),i.getCommand("cut").update(e),i.getCommand("paste").update(e)},[o,i]);const C=n.useMemo(()=>{if(!y||!g.current)return;const e=y.key;if("copy"!==e&&"cut"!==e&&"formatPainter"!==e)return;const t=g.current.getItem();if(t.getSource()!==o)return;const n=g.current.isCut?.(),r=n?p:u,i=n?d:c,l=t.getCoords(),a=l?[l]:null;return a&&0!==a.length?e=>{const t=[];for(let n=0;n<a.length;n++){const o=a[n],l=e.toClipBounds(e.getRangeCoordsBounds(o,{top:0,left:0,right:1,bottom:1}),mC);l&&(t.push(m({range:o,key:`copy-selection-background-${n}`,x:l.x,y:l.y,width:Math.max(l.width,0),height:Math.max(l.height,0),stroke:r,strokeWidth:2})),t.push(m({range:o,key:`copy-selection-foreground-${n}`,x:l.x+(l.width<=2?-1:0),y:l.y,width:Math.max(l.width,3),height:Math.max(l.height,3),stroke:i,strokeWidth:2,isAnimatedStroke:!0})))}return t}:null},[y,o,r,c,u,d,p]);return{...S,clipboard:v,overlays:C}})({element:i,sheet:l,sheetView:u,commands:s,copyForegroundColor:a.selection.strokeFill,copyBackgroundColor:d.fill,cutForegroundColor:a.selectionRemove.strokeFill,cutBackgroundColor:d.fill,notifier:c});return kk(l?.getSelection(),{onChange(e){}}),n.useEffect(()=>{r?.getStage()},[r?.getStage()]),p&&r?p(r):null})),Xk={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Yk={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Jk={key:"dragCopy",description:"Drag selection to copy cell contents."},Qk={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},eE=(e,t)=>t.ctrlKey&&t.shiftKey?Qk:t.ctrlKey?Jk:t.shiftKey?Yk:Xk,tE={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},nE=n.memo(n.forwardRef((o,r)=>{const{view:i,commands:l,className:a,onFirstRender:s,notifier:c,onShowTooltip:d,onCloseTooltip:u,sheet:p,gridRef:h,gridStyle:f,isActive:m,editingCoords:g,...x}=o,y=i?.getBounds(),b=nt(d,[d]),w=nt(u,[u]),[v,S]=n.useState(()=>p?.getSelection().getCoords()),C=nt(e=>{H.isEqualSelectionCoords(e,v)||p&&p.getSelection().updateCoords(e)},[p,v]),k=Dn(),E=n.useRef(null),[_,T]=n.useState(p?.getProtection().isLocked()),[j,M]=n.useState(p?.getView().getMovableSelection().length>0),R="touch"===zt.detectIt().primaryInput,I=!R&&m,D=null!==g||j,L=nt(e=>{const t=H.cellToRange(e);if(p.isClosed())return t;const n=p.getRange(t,{excludeHidden:!0}).getMerges();return 0===n.length?t:n[0]},[p]),O=nt((t,n,o,r,i,l)=>{const a=p.getSelectedRange().getExtended(r,t).getCoords();switch(r){case e.IRange.Direction.Up:return a.rowStart;case e.IRange.Direction.Down:return a.rowEnd;case e.IRange.Direction.Left:return a.colStart;case e.IRange.Direction.Right:return a.colEnd}},[p]),P=nt(()=>{const e=p.getUsedRange()?.getCoords(),t=p.getRowHeaders().getUsedRange()?.getCoords(),n=p.getColumnHeaders().getUsedRange()?.getCoords();return{...e,colEnd:Math.max(e?.colEnd??0,n?.max??0),rowEnd:Math.max(e?.rowEnd??0,t?.max??0)}},[p]),A=nt((e,t)=>p.getRowHeaders().hiddenHeadersAt(e,t),[p]),F=nt((e,t)=>p.getColumnHeaders().hiddenHeadersAt(e,t),[p]),z=nt(e=>p.getRange(e,{excludeHidden:!0}).getMerges(),[p]),B=nt(e=>{p?.getSelection().setAdjusting(e)},[p]),N=nt(async()=>{p?.getSelection().setAdjusting(null);const e=k.getMode();"formatPainter"===e?.key&&(await(l?.getCommand("pasteFormats")?.execute({})),k.setMode(null))},[k,v,p,l]),V=n.useMemo(()=>{const e=k.getMode();return"cut"===e?.key||"copy"===e?.key},[k]);kk(p?.getView(),{onMovableSelectionChange:()=>{M(p.getView().getMovableSelection().length>0)}}),kk(p?.getSelection(),{onChange(e){const t=p.getSelection().getCoords();S(t)}}),kk(p,{onProtectionChange:()=>{T(p.getProtection().isLocked())}});const{body:$={}}=f||{},W=i.getLayout(),U=!(I&&v.ranges.length<=1&&null===g&&!_&&(!k.getMode()||V)),{overlay:q,onPointerDown:Z}=SC({gridRef:h,commands:l,layout:W,getCellCoordsAsRangeCoords:L,selection:v,fillHandleBorderColor:$.fill,selectionBackgroundColor:m?f.selection.fill:f.selectionInactive.fill,selectionBorderColor:m?f.selection.strokeFill:f.selectionInactive.strokeFill,selectionRemoveBackgroundColor:m?f.selectionRemove.fill:f.selectionInactive.fill,selectionRemoveBorderColor:m?f.selectionRemove.strokeFill:f.selectionInactive.strokeFill,disableFillDrag:U,disableMoveDrag:R||!(m&&v.ranges.length<=1&&null===g&&!_),disableTouchSelection:D,onSelectionChange:C,onSelectionDragStart:B,onSelectionDragEnd:N,onMoveDragStart:(e,t,n)=>{k.setMode(eE(0,n))},onMoveDragUpdate:(e,t,n)=>{k.setMode(eE(0,n))},onMoveDragEnd:(e,t)=>{k.setMode(null)},onMoveDragDone:async(t,n,o)=>{if(H.isEqualRanges(t,n))return;const r=p.getRange(n);if(c?.showOptions){const e=r.getDifferences(t);let n=!1;for(let t=0;!n&&t<e.getCount();t++)n=e.at(t).isContentful();if(n&&"Replace"!==await(c?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})))return}const i=!o.ctrlKey,l=o.shiftKey,a=l?i?"Insert Moved Cells":"Insert Copied Cells":i?"Move Cells":"Copy Cells",s=await(c?.showBusy?.(a));try{const n=p.getRange(t);await r.doBatch(async()=>{l?await r.insertFrom(t,{isCut:i,undoRange:n}):await r.copyFrom(t,{isCut:i,undoRange:n}),n.autoFit({skipCustomSize:!0,orientations:e.IRange.Orientations.Row,minContent:!0}),r.autoFit({skipCustomSize:!0,orientations:e.IRange.Orientations.Row,minContent:!0})},{description:a,autoSelect:!0})}catch(t){c?.showError?.(t)}finally{s?.()}},contentfulCellFinder:O,hiddenRowsAt:A,hiddenColumnsAt:F,mergedRanges:z,getDataCoords:P,canSelectionSpanMergedCells:e=>{const t=p.getRange(e);return t.isEntireColumns()||t.isEntireRows()},onFill:async(t,n)=>{const o="Auto Fill",r=await(c?.showBusy?.(o));try{await p.doBatch(()=>{p.getRange(t).autoFill(n),p.getRange(n).autoFit({orientations:e.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:o,autoSelect:!0})}catch(t){c?.showError?.(t)}finally{E.current=null,r?.()}},onFillPreview:(t,n,o)=>{if(h.current&&b){k.setMode(tE);try{E.current?.direction!==o&&(E.current=null,p.getRange(t).autoFill(n,{previewOnly:e=>{E.current={callback:e,direction:o}}}));const r=E.current?.callback?.(n);if(!r||r.isEmpty())return;const l=r.toText();if(!l)return;const a=H.cellToRange(r.getCoords()),s=i.getRelativePointFromClient(0,0);let c=0,d=0,u=on;if(o===e.IRange.Direction.Down){c=W.getColOffset(a.colEnd+1)-s.x;const e=W.getRowOffset(a.rowEnd),t=W.getRowOffset(a.rowEnd+1);d=t-(t-e)/2-s.y,u=ln}else if(o===e.IRange.Direction.Right){d=W.getRowOffset(a.rowEnd+1)-s.y;const e=W.getColOffset(a.colEnd),t=W.getColOffset(a.colEnd+1);c=t-(t-e)/2-s.x,u=on}else if(o===e.IRange.Direction.Up){c=W.getColOffset(a.colEnd+1)-s.x;const e=W.getRowOffset(a.rowStart),t=W.getRowOffset(a.rowStart+1);d=t-(t-e)/2-s.y,u=ln}else if(o===e.IRange.Direction.Left){d=W.getRowOffset(a.rowEnd+1)-s.y;const e=W.getColOffset(a.colStart),t=W.getColOffset(a.colStart+1);c=t-(t-e)/2-s.x,u=on}b({anchor:{x:c,y:d},display:l,placement:u})}catch(t){c?.showError?.(t)}}},onFillDone:()=>{E.current=null,k.setMode(null),w?.()}}),G=nt(e=>{Z(zt.createSyntheticEvent(e))},[Z,g]);n.useEffect(()=>{const e=i?.getStage();if(e)return e.addEventListener("pointerdown",G),()=>{e.removeEventListener("pointerdown",G)}},[i?.getStage()]);const K=Nt(r,()=>({}),[]),X=n.useRef(null);return t.jsx("div",{className:vk(a,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:y?.width,height:y?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:ok([K,X]),...x,children:q(i)})})),oE=Object.freeze({x:0,y:0,width:0,height:0}),rE={fireOnModelChange:!1},iE=n.memo(n.forwardRef((e,o)=>{const{children:r,view:i,movable:l,onRefLoad:a,onRefUnload:s,onHide:c,onShow:d,onUnFocus:u,isDragging:p,updateFrameBounds:h,dragStart:f,style:m,disabled:g,renderMovable:x,...y}=e,[b,w]=n.useState(oE),[v,S]=n.useState(null),[C,k]=n.useState(!1),E=n.useRef(null);n.useLayoutEffect(()=>{if(l.isClosed())return;const e=l.getBounds();if(!e)return;const t=i.toViewBounds(e);w(t??oE),h(t??oE)},[i?.getBounds()]),kk(l,{onBoundsChange:e=>{const t=e.getBounds();if(!t)return;const n=i.toViewBounds(t);w(n??oE),h(n)},onSelectionChange:()=>{const e=he.hasFocus(E.current,!0);!C&&!e||l.isSelected()||u()}}),kk(l,{onRequestFocus:()=>he.whenFocus(E.current,!0)},rE),n.useEffect(()=>{const e=E.current;return a(e),()=>{s(e)}},[]);const _=n.useMemo(()=>{if(!b)return null;let{width:e,height:t}=b;return x({view:i,movable:l,disabled:g,isDragging:p,style:{position:"relative",left:0,top:0,width:e,height:t},onHide:c,onShow:d})},[i,l,b.width,b.height,g,p]);return t.jsx("div",{className:"movable",tabIndex:0,ref:ok([E,o]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:b.x,top:b.y,width:b.width,height:b.height,...m},onMouseDown:async e=>{const t=e.shiftKey||e.ctrlKey,n=l.isSelected(),o=e.currentTarget;t&&n?l.unselect():(n&&!t||await l.select({addToSelection:t}),f(e.nativeEvent,o),o.focus())},onFocus:e=>{e.relatedTarget&&!v&&S(e.relatedTarget),k(!0)},onBlur:e=>{v&&!E?.current?.contains(e.relatedTarget)&&S(null),e.relatedTarget&&k(!1)},...y,children:_})})),lE=n.memo(n.forwardRef((o,r)=>{const{view:i,movables:l,movablesView:a,renderMovable:s,transactional:c,onUnFocus:d,onFocus:u,disabled:p=!1,disableDrag:h=!1,disableResize:f=!1,className:m,style:g,renderDirections:x=["nw","n","ne","w","e","sw","s","se"],onFirstRender:y,...b}=o,w=i.getBounds(),v=nt(y,[y]),S=nt(d,[d]),C=nt(u,[u]),[k,E]=n.useState([]),[_,T]=n.useState(!1),[j,M]=n.useState(!1),R=n.useRef(!0),I=n.useRef(new Map),D=n.useRef(new Map),L=n.useRef(new Map),O=n.useRef(new Map),P=n.useRef(new Map),A=n.useRef({onRequestFocus:e=>(J(e),null)}),F=n.useRef(null),z=n.useRef(null),B=n.useRef(null),[N,V]=n.useReducer(e=>e+1,0);n.useLayoutEffect(()=>{V()},[i,l]),kk(l,{onCollectionChange:()=>{const e=l.search({address:i.getVisibleRangeCoords(),excludeHidden:!0}),t=P.current;t.forEach(e=>{e()}),t.clear();const n=A.current;for(let o=0;o<e.length;o++){const r=e[o];if(r.isClosed())continue;const i=r.addListeners(n);t.set(r,i)}V()},onInvalidated:()=>{V()}}),kk(a,{onMovableSelectionChange(e){$(),V()}});const H=n.useCallback((e,t)=>{const n=L.current.get(e);B.current&&(B.current.getTargets().forEach(e=>{if(e===n)return e.style.left=t.x+"px",e.style.top=t.y+"px",e.style.width=t.width+"px",void(e.style.height=t.height+"px")}),B.current.updateRect())},[]),$=()=>{const e=[],t=a.getMovableSelection();t.forEach(n=>{const o=L.current.get(n);o&&-1!==t.indexOf(n)&&e.push(o)}),E(t=>he.isEqualArrays(t,e)?t:e)},W=n.useRef(null),U=n.useMemo(()=>new Promise(e=>{W.current=e}),[]),q=n.useRef(null),Z=nt(async(e,t)=>{q.current=t,await(async()=>!(!await U.then()||!B.current))()&&q.current===t&&B.current.dragStart(e,t)},[k]),[G,K]=n.useState(!1),X=n.useRef(null),Y=n.useRef(null),J=nt(async(e=null)=>{if(e||(e=a.getMovableSelection()[0]),!e)return S?.(),!1;const t=L.current.get(e);t?(await he.whenFocus(t),t.focus(),Y.current=t,X.current=null):X.current=e},[a]);n.useEffect(()=>{G&&k.length>0&&Y.current!==k[0]&&J(),R.current&&(v?.(),R.current=!1)},[k]);const Q=n.useMemo(()=>{const e=l.search({address:i.getVisibleRangeCoords(),excludeHidden:!0});if(0===e.length&&0===I.current.size)return null;const n=(n,o,r,l=!0)=>{const a=n.isSelected(),c={tabIndex:r,view:i,movable:n,onRefLoad:e=>{X.current===n&&(e.focus(),Y.current=e,X.current=null),L.current.set(n,e),D.current.set(e,n),o.rendered=!0,$()},onRefUnload:e=>{L.current.delete(n),D.current.delete(e),o.rendered=!1,$()},onUnFocus:S,onHide:e=>{o.onHide=e},onShow:e=>{o.onShow=e},isDragging:a&&(j||_),disabled:p,renderMovable:s,updateFrameBounds:e=>{H(n,e)},dragStart:Z,onMouseUp:()=>{if(q.current=null,z.current){T(!1),M(!1);let e=!1;O.current?.forEach(t=>{he.isEqualBounds(t.movable.getBounds(),t.startBounds)||(e=!0)}),e?te():ne()}},style:{opacity:l?_&&a?.7:void 0:0,zIndex:_&&a?n.getZIndex()+e.length:void 0,pointerEvents:l?void 0:"none",cursor:j&&a?"grabbing":p||h?"initial":"move",boxShadow:!a||j&&!_?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return t.jsx(iE,{...c},`movable-${n.getUUID()}`)},o=I.current,r=new Map,c=[];for(let t=0;t<e.length;t++){const i=e[t];if(i.isClosed())continue;let l=o.get(i);l||(l={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(e,t)=>{if(!t||!0===t.shown)return;t.shown=!0;const n=++t.visibilityRequestId;requestAnimationFrame(()=>{const o=I.current.get(e);o&&n===t.visibilityRequestId&&(t.onShow?.(e),o.shown=!0)})},doHide:async(e,t)=>{if(!t||!1===t?.shown)return;t.shown=!1;const n=++t.visibilityRequestId,o=await Promise.resolve(t.onHide?.(e));n===t.visibilityRequestId&&!1!==o&&(t.shown=!1,I.current.delete(e),V())},visibilityRequestId:0}),l.frame=n(i,l,t,!0),c.push(l.frame),l.doShow(i,l),o.delete(i),r.set(i,l)}const d=[];return a.getMovableSelection().forEach(e=>{const t=o.get(e);t&&(t.frame=n(e,t,-1,!1),d.push(t.frame),o.delete(e),r.set(e,t))}),o.forEach((e,t)=>{e.frame=n(t,e,-1,!1),d.push(e.frame),e.doHide(t,e),o.delete(t),r.set(t,e)}),I.current=r,$(),[...d,...c]},[N,i,s,p,h,f,_,j]),ee=nt((t,n)=>{const o=`${n} ${1===k.length?e.TextUtils.capitalize(D.current?.get(k[0]).getContent().getType()):"Drawings"}`;z.current&&(console.warn(`Transaction ${z.current.getDescription()} is being replaced by ${o}`),z.current.rollback(),z.current=null),z.current=c.beginCommit({description:o}),O.current.clear();for(let e=0;e<k.length;e++){const t=k[e],n=D.current?.get(t);n?O.current.set(t,{movable:n,startBounds:i.toViewBounds(n.getBounds())}):console.warn("invalid element",n)}},[c,i,k]),te=n.useCallback(()=>{if(!z.current)return;const e=[];O.current?.forEach(t=>{e.push(t.movable)}),z.current.commit({viewAfter:{view:a,movableSelection:e}}),O.current.clear(),z.current=null},[]),ne=n.useCallback(()=>{z.current&&(z.current.rollback(),z.current=null)},[]),oe=n.useRef(null);n.useEffect(()=>{oe.current&&(oe.current.onscroll=e=>{e.preventDefault(),e.srcElement.scrollTop=0,e.srcElement.scrollLeft=0})},[oe.current]);const re=Nt(r,()=>({isMovableArea:()=>!0,focusMovable:J,focus:()=>{J()}}),[a]),[ie,le]=n.useState(null),ae=n.useRef(!1),se=n.useRef(!1),ce=n.useRef(!1);n.useEffect(()=>{if(p||0===k.length)return;if(ce.current)return;if(ae.current)return;if(se.current)return void requestAnimationFrame(()=>{B.current&&F.current&&B.current.refTargets.length>0&&(ce.current=!0,W.current?.(!0)),E([...k])});ae.current=!0;const e=n.lazy(async()=>{try{const e=await Promise.resolve().then(()=>require("./Df5v6knUJ4dqHmmo.cjs"));return ae.current=!1,se.current=!0,E([...k]),e}catch(e){return console.warn(e),W.current?.(!1),null}});le(e)},[k,p,h,f]);const de=n.useMemo(()=>!ie||p?null:t.jsx(n.Suspense,{children:t.jsx(ie,{className:vk({dragging:_||j,resizing:_,moving:j}),container:null,ref:B,target:B.current?k:[],draggable:!p&&!h,resizable:!p&&!f,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:x,onResizeStart:e=>{ee(e.target,"Resize")},onResize:e=>{if(!z.current)return e.stopDrag(),void V();T(!0);const t=0!==e.direction[0]&&0!==e.direction[1];let n=0,o=0;for(let r=0;r<k.length;r++){const l=k[r],a=O.current.get(l),s=D.current.get(l);if(!a||!s){console.warn("invalid element");continue}let c=e.dist[0],d=e.dist[1],u=e.drag.dist[0],p=e.drag.dist[1],h=a.startBounds.width,f=a.startBounds.height;0===r?(n=h,o=f):(c*=h/n,u*=h/n,d*=f/o,p*=f/o);const m={...a.startBounds};if(m.width=Math.max(0,h+c),m.height=Math.max(0,f+d),-1===e.direction[0]&&(m.width=Math.max(0,Math.min(a.startBounds.x+h,h-u))),-1===e.direction[1]&&(m.height=Math.max(0,Math.min(a.startBounds.y+f,f-p))),t&&(s.isLockAspectRatio()||e.inputEvent?.shiftKey)){const e=h/f,t=m.width/m.height;t>e?m.height=m.width/e:t<e&&(m.width=m.height*e)}-1===e.direction[0]&&(m.x=Math.max(0,Math.min(a.startBounds.x+h,a.startBounds.x+h-m.width))),-1===e.direction[1]&&(m.y=Math.min(a.startBounds.y+f,a.startBounds.y+f-m.height)),a.movable.setBounds(i.toAbsoluteBounds(m))}},onResizeEnd:e=>{T(!1),te()},onDragStart:e=>{ee(e.target,"Move")},onDrag:e=>{if(!z.current)return e.stopDrag(),void V();M(!0);for(let t=0;t<k.length;t++){const n=k[t],o=O.current.get(n);o?o.movable.setBounds(i.toAbsoluteBounds({...o.startBounds,x:o.startBounds.x+e.translate[0],y:o.startBounds.y+e.translate[1]})):console.warn("invalid element")}},onDragEnd:e=>{},onMouseUp:e=>{}})}),[N,ie,k,i,p,h,f,_,j]);return t.jsx("div",{className:vk(m,"movable-area","_movable-area_314c6_5"),style:{width:w.width,height:w.height,...g,position:"absolute",overflow:"hidden",willChange:"transform"},ref:ok([re,oe]),...b,children:t.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:w.width,height:w.height},...b,children:t.jsxs("div",{ref:F,style:{position:"absolute",pointerEvents:"auto"},onFocus:e=>{C?.(),K(!0)},onBlur:e=>{K(!1)},onKeyDownCapture:e=>{if(e.isDefaultPrevented())return;const t=e.nativeEvent.ctrlKey,n=e.nativeEvent.altKey,o=e.nativeEvent.shiftKey;if(e.which===qe.Escape){const t=a.getMovableSelection();let n=[...t];return k.forEach(e=>{if(0===n.length)return;const t=D.current.get(e);let o=n.indexOf(t);n.splice(o,1)}),n.length!==t.length&&a.selectMovables(n),0===n.length&&S?.(),void e.preventDefault()}const r=.1,i=e=>{l.updateSelected(t=>{t.setRotation(t.getRotation()+e)},"Rotate")},s=(e,t=!0)=>{l.updateSelected(n=>{const o=n.getBounds();let r=1+e;t||(r=1/r);const i=Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2)),l=Math.atan2(o.height,o.width),a=r*i;if(a<10)return;const s=a*Math.cos(l),c=a*Math.sin(l),d={x:o.x+(o.width-s)/2,y:o.y+(o.height-c)/2,width:s,height:c};n.setBounds(d)},"Resize")},c=e=>{l.updateSelected(t=>{const n=t.getBounds(),o={x:n.x+(e.x??0),y:n.y+(e.y??0),width:n.width+(e.width??0),height:n.height+(e.height??0)};t.setBounds(o)},"Nudge")};if(e.which===qe.Delete)l.updateSelected(e=>{e.delete()},"Delete"),e.preventDefault();else if("a"===e.key&&t){const t=a.getMovableSelection();a.selectMovables(l.search(),!0),a.selectMovables(t,!0),e.preventDefault()}else"ArrowLeft"===e.key?(o?s(r,!1):n?i(-10):c({x:t?-10:-1}),e.preventDefault()):"ArrowRight"===e.key?(o?s(r,!0):n?i(10):c({x:t?10:1}),e.preventDefault()):"ArrowUp"===e.key?(o?s(r,!0):c({y:t?-10:-1}),e.preventDefault()):"ArrowDown"===e.key&&(o?s(r,!1):c({y:t?10:1}),e.preventDefault())},children:[Q,de]})})})})),aE=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 l=e[i].getBounds();t=Math.min(l.x,t),n=Math.min(l.y,n),o=Math.max(l.x+l.width,o),r=Math.max(l.y+l.height,r)}return{x:t,y:n,width:o-t,height:r-n}},sE=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let l=0,a=Number.MAX_SAFE_INTEGER,s=0;for(let t=0;t<e.length;t++){const r=e[t],c=r.getBounds();l+=c[i],a=Math.min(c[o],a),s=Math.max(c[o]+c[i],s),n.push({bounds:c,movable:r})}const c=(s-a-l)/(e.length-1);n.sort((e,t)=>{const n=e.bounds[o],i=t.bounds[o];return n!==i?n-i:e.bounds[r]-t.bounds[r]});const d=new Map;d.set(n[0].movable,n[0].bounds);for(let e=1;e<n.length-1;e++){const t=n[e-1].bounds,r={...n[e].bounds};r[o]=t[o]+t[i]+c,n[e].bounds=r,d.set(n[e].movable,r)}return d.set(n[n.length-1].movable,n[n.length-1].bounds),d};const cE=n.memo(n.forwardRef((e,o)=>{const{children:r,disabled:i,description:l,view:a,isDragging:s,onHide:c,onShow:d,...u}=e;n.useEffect(()=>{},[l]);const p=Nt(o,()=>({isEmptyFrame:()=>!0}),[]),[h,{height:f,width:m}]=ck();return t.jsx("div",{...u,ref:ok([p,h]),children:t.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:a.getZoom(),display:"flex",position:"relative",filter:i?"blur(1px)":void 0,boxShadow:s?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:t.jsx("div",{style:{textAlign:"center"},children:l})})})})),dE=n.memo(n.forwardRef((o,r)=>{const{view:i,sheet:l,movableProps:a,renderMovable:s,commands:c,target:d,notifier:u,onRepeatCommandChange:p}=o,h=function(t){const{movables:o,movablesView:r,transactional:i,commands:l,target:a,onRepeatCommandChange:s,notifier:c}=t,d=Dn();n.useRef(d.getMode()).current=d.getMode();const u=nt(async(e,t,n=null,o=!0)=>{const r=async()=>{const i=await Promise.resolve(c?.showBusy?.(e.label()));try{await t();const l=n??e?.label?.();if(s){let t=null;e&&!1!==l&&(t=new On(e.key(),a,{label:l,description:l},r)),s(t)}i?.(),o&&d.setMode(null)}catch(e){i?.(),c?.showError?.(e)}};await r()},[s,c]),[p,h]=n.useReducer(e=>e+1,0),f=nt((t,n,o)=>{if(!r)return;const l=r.getMovableSelection();if(0===l.length)return;let a="Drawings";if(1===l.length){const t=l[0];a=e.TextUtils.capitalize(t.getContent().getType())??"Drawing"}const s=`${t.label()} ${a}`;u(t,()=>{let e=null;i&&(e=i.beginCommit(s));const t=r.getMovableSelection();if(0===t.length)return;const l=o?.(t);for(let e=0;e<t.length;e++){const o=t[e];n(o,l)}e?.commit()})},[r,i]),[m,g]=n.useState(r.getMovableSelection()[0]??null),[x,y]=n.useState(!m||m?.isProtected()),b=n.useMemo(()=>[new Ln("moveToFront",a,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){f(this,e=>{e.moveToFront()})}),new Ln("moveForward",a,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[Ue.Ctrl]}},function(){f(this,e=>{e.moveForward()})}),new Ln("moveToBack",a,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[Ue.Ctrl,Ue.Shift]}},function(){f(this,e=>{e.moveToBack()})}),new Ln("moveBackward",a,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[Ue.Ctrl]}},function(){f(this,e=>{e.moveBackward()})}),new Ln("toggleLockAspectRatio",a,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){f(this,e=>{e.setLockAspectRatio(!e.isLockAspectRatio())})}),new Ln("formatAnchorTypeTwoCell",a,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){f(this,t=>{t.setAnchorType(e.IAnchored.Type.TwoCell)})}),new Ln("formatAnchorTypeOneCell",a,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){f(this,t=>{t.setAnchorType(e.IAnchored.Type.OneCell)})}),new Ln("formatAnchorTypeAbsolute",a,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){f(this,t=>{t.setAnchorType(e.IAnchored.Type.Absolute)})}),new Ln("formatDrawAlignLeft",a,{label:"Align Left",description:"Align the selected drawings to the left."},function(){f(this,(e,t)=>{e.setBounds({x:t.x})},aE)}),new Ln("formatDrawAlignCenter",a,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){f(this,(e,t)=>{e.setBounds({x:(t.width-e.getBounds().width)/2+t.x})},aE)}),new Ln("formatDrawAlignRight",a,{label:"Align Right",description:"Align the selected drawings to the right."},function(){f(this,(e,t)=>{e.setBounds({x:t.width-e.getBounds().width+t.x})},aE)}),new Ln("formatDrawAlignTop",a,{label:"Align Top",description:"Align the selected drawings to the top."},function(){f(this,(e,t)=>{e.setBounds({y:t.y})},aE)}),new Ln("formatDrawAlignMiddle",a,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){f(this,(e,t)=>{e.setBounds({y:(t.height-e.getBounds().height)/2+t.y})},aE)}),new Ln("formatDrawAlignBottom",a,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){f(this,(e,t)=>{e.setBounds({y:t.height-e.getBounds().height+t.y})},aE)}),new Ln("formatDrawDistributeHorz",a,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){f(this,(e,t)=>{e.setBounds(t.get(e))},e=>sE(e))}),new Ln("formatDrawDistributeVert",a,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){f(this,(e,t)=>{e.setBounds(t.get(e))},e=>sE(e,!1))}),new Ln("formatDrawFlipHorz",a,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new Ln("formatDrawFlipVert",a,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new Ln("formatDrawGroup",a,{label:"Group",description:"Group the selected drawings into a single drawing."}),new Ln("formatDrawUngroup",a,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new Ln("formatDrawSwapShapes",a,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new Ln("formatDrawSwapShapesHorz",a,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new Ln("formatDrawSwapShapesVert",a,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[r,m]);n.useEffect(()=>{},[d]);const w=n.useMemo(()=>{let e=null;return e=l?l.createChildGroup(a,"movable",!1):new Pn(a,"movable"),e.addCommands(b,!0),e},[l,b]);return kk(m,{onAnyChange:()=>{w.getCommand("formatAnchorTypeTwoCell").update({state:m?.getAnchorType()===e.IAnchored.Type.TwoCell}),w.getCommand("formatAnchorTypeOneCell").update({state:m?.getAnchorType()===e.IAnchored.Type.OneCell}),w.getCommand("formatAnchorTypeAbsolute").update({state:m?.getAnchorType()===e.IAnchored.Type.Absolute}),w.getCommand("formatAnchorTypeAbsolute").update({state:m?.getAnchorType()===e.IAnchored.Type.Absolute}),w.getCommand("toggleLockAspectRatio").update({state:m?.isLockAspectRatio()})},onProtectedChange:e=>{y(e.isProtected())},onDelete:()=>{}}),kk(r,{onMovableSelectionChange:()=>{const e=r.getMovableSelection()[0]??null;g(e),y(!e||e.isProtected()),h()}}),kk(o,{onCollectionChange:()=>{h()}}),n.useEffect(()=>{const e={disabled:x};w.getCommand("formatAnchorTypeTwoCell").update(e),w.getCommand("formatAnchorTypeOneCell").update(e),w.getCommand("formatAnchorTypeAbsolute").update(e),w.getCommand("toggleLockAspectRatio").update(e);const t=o.getCount(),n=r.getMovableSelection(),i=x||t<=1||0===n.length;let l={disabled:i},a=l;if(!i&&1===n.length){const e=n[0];0===e.getZIndex()&&(l={disabled:!0}),e.getZIndex()===t-1&&(a={disabled:!0})}w.getCommand("moveToFront").update(a),w.getCommand("moveForward").update(a),w.getCommand("moveToBack").update(l),w.getCommand("moveBackward").update(l);const s={disabled:x||n.length<=1};w.getCommand("formatDrawAlignLeft").update(s),w.getCommand("formatDrawAlignCenter").update(s),w.getCommand("formatDrawAlignRight").update(s),w.getCommand("formatDrawAlignTop").update(s),w.getCommand("formatDrawAlignMiddle").update(s),w.getCommand("formatDrawAlignBottom").update(s),w.getCommand("formatDrawFlipHorz").update(s),w.getCommand("formatDrawFlipVert").update(s),w.getCommand("formatDrawGroup").update(s),w.getCommand("formatDrawUngroup").update(s),w.getCommand("formatDrawSwapShapes").update(s),w.getCommand("formatDrawSwapShapesHorz").update(s),w.getCommand("formatDrawSwapShapesVert").update(s);const c={disabled:x||n.length<=2};w.getCommand("formatDrawDistributeHorz").update(c),w.getCommand("formatDrawDistributeVert").update(c)},[p,x,p]),w}({movables:l.getMovables(),movablesView:l?.getView(),transactional:l,onRepeatCommandChange:p,commands:c,target:d,notifier:u});n.useEffect(()=>{i?.getStage()},[i?.getStage()]);const f=n.useMemo(()=>t.jsx(lE,{ref:r,view:i,movables:l.getMovables(),disableResize:!l.getProtection().isObjectsAllowed(),disableDrag:!l.getProtection().isObjectsAllowed(),movablesView:l.getView(),transactional:l,renderMovable:s,...a,onFocus:()=>{h.activate(),a?.onFocus?.()}},"movable-area"),[l,a,c,h]);return f&&i?f:null})),uE=n.memo(n.forwardRef((o,r)=>{const{view:i,sheet:l,gridStyle:a,getCellEditor:s,showProtectedError:c,setEditingCoords:d,commands:u,notifier:p=Gt}=o,h=Dn(),[f,m]=n.useState(null),[g,x]=n.useState(null),[y,b]=n.useState(null),[w,v]=n.useState(null),[S,C]=n.useState(null);n.useLayoutEffect(()=>{if(null===y)return v(null),void C(null);const e=()=>{const e=l.getRange(y).getCell(),t=e.getStyle();let n,o=t.getFill()?.toCSS(a.body.darkMode);"none"!==o.background&&"transparent"!==o.background||(o=l.getStyles().getNormal().getFill().toCSS(a.body.darkMode)),"none"!==o.background&&"transparent"!==o.background||(o={background:a.body.fill}),v({style:o}),e&&!e.getFormula()&&(n=e?.getRenderHorizontalAlignment()),C(n??We)};return e(),l.getRange(y).addListener(()=>{e()})},[l,y,a?.body]);const k=nt(()=>{let t=g.editState.dirty??"";if(void 0!==g.editState.dirty){const n=e.TextUtils.clampString(t);try{const e=g.sheet.getRange(g.coords),o=`Typing '${n}' into ${e.toString()}`;return e.setValue(t,{description:o,autoFit:!0}),b(null),x(null),h.setMode(null),d(null),!0}catch(t){throw p.showError(new Error(`Unable to enter '${n}'.`,{cause:t})),t}}},[l,g,p]),E=nt(e=>l.getRange(e).getCell().getExtrusions()??H.cellToRange(e),[l]);nt(t=>{let n=e.IRange.Orientation.Row,o=!1;t!==e.IRange.Direction.Up&&t!==e.IRange.Direction.Down||(n=e.IRange.Orientation.Column),t!==e.IRange.Direction.Left&&t!==e.IRange.Direction.Up||(o=!0),l.getSelection().traverse(n,o)},[l]);const _=n.useCallback((e,n)=>{if(s)return s(e,n);if(!l)return null;const{ref:o,...r}=e;return t.jsx(QC,{ref:o,...r,sheet:l,bodyStyle:a?.body,activeCoords:n,commands:u,onChangeEdit:e=>{const t={sheet:l,coords:n,editState:e};h.setMode(e=>({...e,description:t.editState.editMode?"Edit":"Enter",args:{...e?.args,stateAndCoords:t}}))},editState:g.editState})},[l,w,s,g,y]),{overlay:T,startEdit:j,submitEdit:M,cancelEdit:R,onKeyboardEventNative:I,onPointerEventNative:D}=(e=>{const{view:o,canEdit:r=OS,getCellEditor:i,onBeforeStartEdit:l,onStartEdit:a,onSubmitEdit:s,onCancelEdit:c,onDoneEdit:d,isEditorStartKeyEvent:u=PS,isEditorStartPointerEvent:p=AS,containerProps:h,borderStrokeFill:f,borderStrokeWidth:m=2,getRangeCoords:g=null,activeCoords:x,alignment:y=Gw.Left}=e,[b,w]=n.useState(!1),[v,S]=n.useState(void 0),C=lv((e,t,n,o,r,i)=>{if(!t)return null;const l=r?.(t,e),a=e.getRangeCoordsBounds(l),s=e.toClipBounds(a),c=a,d=e.getZoom();if(!s)return null;n&&(n*=d),o&&(o*=d);let u=c,p=!1;if(void 0!==n){let t={...l},o=0;for(;!p&&u.width<=n&&o<20;){o++,o>19&&console.warn("max width reached");const r=e.getTotalRangeCoords(),l=e.getLayout();i===Gw.Left?t.colEnd+1<r.colEnd?t.colEnd=l.getColIndex(u.x+n):p=!0:i===Gw.Right?t.colStart-1>=0?t.colStart=l.getColIndex(u.x-(n-u.width)):p=!0:i===Gw.Center&&t.colEnd+1<r.colEnd&&t.colStart-1>=0?(t.colStart=l.getColIndex(u.x-(n-u.width)/2),t.colEnd=l.getColIndex(u.x+u.width+(n-u.width)/2)):p=!0,p||(u=e.getRangeCoordsBounds(t))}}u.height=c.height,void 0!==o&&(u.height=Math.max(o+1,c.height));const{width:h,height:f}=e.getViewportSize();return{x:u.x??0,y:u.y??0,height:Math.min(f-u.y,u.height)+1,width:Math.min(h-u.x,u.width)+1}},[y]),k=lv(r,[r]),E=n.useCallback(()=>{o?.getStage()?.focus()},[o]),_=n.useRef(null),T=lv(e=>{l?.(e),z(),w(!0),_.current=null},[l]),j=lv(e=>{a?.(e.coords)},[a]),M=lv(e=>{e.isSubmitted||e.isCancelled||(D.current.isEditorClosed=!0,E(),e.isCancelled=!0,c?.(e.coords),z())},[c]),R=lv(e=>{if(e.isSubmitted||e.isCancelled)return!1;try{return _.current=e.coords,e.isEditorClosing=!0,e.isSubmitted=!0,e.isEditorSubmitted||(e.isEditorSubmitted=!0,e.editorRefs[0]?.submitEdit?.()),e.coords,s?.(e.coords),e.isEditorClosed=!0,E(),z(),!0}catch(t){throw e.isEditorClosing=!1,e.isSubmitted=!1,t}},[s]),I=lv(e=>{w(!1),d?.(e.coords),z()},[d]),D=n.useRef(null),L=n.useRef(null),O=n.useRef(null),P=n.useRef([]),[A,F]=n.useReducer(e=>e+1,0),z=n.useCallback(e=>{e&&P.current.push(e),F()},[]),B=lv(e=>{if(e.defaultPrevented||e.isSynthetic)return;if(!o)return;const t=o?.getCellCoordsFromClient(e.clientX,e.clientY);t&&z({eventType:"pointer",event:e,coords:t})},[o]),N=lv(e=>{const t=e.nativeEvent;B(t)},[o]),V=lv(e=>{if(e.defaultPrevented||e.isSynthetic)return;if(!o?.getStage())return;const t=L.current;u(e,t)&&(e.stopPropagation(),e.preventDefault()),e.key,z({eventType:"keyboard",event:e,coords:t})},[o]);n.useLayoutEffect(()=>{const e=(e,t)=>{const n=t?.cell??e;if(!n)return null;const r=n;if(!k(n))return null;T?.(n);const i=kw.uuidV4();t=Object.freeze({autoFocus:!0,...t}),O.current=n;const l={coords:r,startEvent:t,uuid:i,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:e=>{l.isMounted||(l.isMounted=!0,z())},onUnmount:e=>{if(0===l.editorRefs.length){const e=()=>{l.isMounted=!1,z()};if(document.activeElement!==document.body)e();else{const t=e=>{e.defaultPrevented||e.target!==document.body||V(e)};window.addEventListener("keydown",t,!0),o.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",t),e()},{once:!0}),E()}}}};return l};if(P.current.length<=0&&!D.current)return;const t=P.current[0];LS(t),(e=>{const t=[],n=e?.length??0;for(let o=0;o<n;o++){const n=e[o];t.push(LS(n))}})(P.current),D.current,D.current;let n=D.current;if(D.current)if(D.current.isDone)D.current=null;else if(D.current.isSubmitted||D.current.isCancelled){if(D.current.isMounted)return;D.current.isDone||(I(D.current),D.current.isDone=!0)}if(t)if("start"===t.eventType){const n=t,o=n.startEvent?.cell??L.current;D.current&&Qb.isEqualCells(D.current.coords,o)||(D.current=e(o,n.startEvent))}else if("keyboard"===t.eventType){const n=t.event;if(D.current){let e=!1;switch(n.which){case 37:case 39:case 38:case 40:case 13:case 9:e=!0}if(!e){D.current.events.push(t);for(let e=0;e<D.current.editorRefsDispatchEditorEvent.length;e++)D.current.editorRefsDispatchEditorEvent[e](t)}}else if(u(n,t.coords)){let n;const o=e(L.current,n);o&&o.events.push(t),D.current=o}}else if("pointer"===t.eventType){const n=t.event;if(D.current){D.current.events.push(t);for(let e=0;e<D.current.editorRefsDispatchEditorEvent.length;e++)D.current.editorRefsDispatchEditorEvent[e](t)}else{const o=t?.coords??L.current,r=p(n,o);if(r){let n;"boolean"!=typeof n&&(n=r);const i=e(o,n);i&&i.events.push(t),D.current=i}}}else if("submit"===t.eventType){if(D.current&&!D.current.isSubmitted&&!D.current.isCancelled){if(!D.current.isMounted)return;R(D.current)}}else if("cancel"===t.eventType){if(D.current&&!D.current.isSubmitted&&!D.current.isCancelled){if(!D.current.isMounted)return;M(D.current)}}else if("coordsChange"===t.eventType){const n=t;if(L.current=n.activeCoords,D.current,D.current&&!D.current.isSubmitted&&!D.current.isCancelled){if(!D.current.isMounted)return;try{R(D.current)}catch(e){}}}P.current.length>0&&(P.current.shift(),z()),0===P.current.length&&(!D.current||D.current.isEditorClosing||D.current.isEditorClosed?!D.current&&n&&E():D.current.isMounted&&!D.current.isStarted&&(D.current.isStarted=!0,D.current.startEvent.autoFocus&&("string"==typeof D.current.startEvent.autoFocus?D.current.editorRefs[0]?.autoFocus(D.current.startEvent.autoFocus):D.current.editorRefs[0]?.autoFocus()),j?.(D.current),requestAnimationFrame(()=>{o&&D.current?.coords&&o.scrollCellCoordsIntoView(D.current.coords)})))},[A]),n.useEffect(()=>{O.current=x;const e=D.current?.coords;Qb.isEqualCells(e,x)||(D.current&&(D.current.isEditorClosing=!0),z({eventType:"coordsChange",activeCoords:x}))},[x]);const H=n.useCallback(e=>{V(e.nativeEvent)},[]),{width:$=0,height:W=0}=v??{width:0,height:0},U=lv(i,[i]);return{overlay:lv(e=>{if(!D.current||D.current.isEditorClosed)return D.current,null;D.current.coords;let n=C(e,D.current.coords,$,W,g,y),o=!0;n&&0!==n.width&&0!==n.height||(n={x:0,y:0,width:$,height:$},o=!1);const r=e.getZoom(),i={containerBounds:{x:0,y:0,width:n.width/r,height:n.height/r},setNaturalDimensions:S,zoom:r};return t.jsx(FS,{session:D.current,refLatestCoords:O,handleSubmitEdit:R,handleCancelEdit:M,cellBounds:n,borderStrokeWidth:m,borderStrokeFill:f,isInBounds:o,getCellEditor:U,propsEditor:i,alignment:y,...h},"editor:"+D.current.uuid)},[i,g,A,$,W,y,m,f]),startEdit:n.useCallback(e=>{z({eventType:"start",startEvent:e})},[]),submitEdit:n.useCallback(()=>{z({eventType:"submit"})},[]),cancelEdit:n.useCallback(()=>{z({eventType:"cancel"})},[]),onKeyboardEvent:H,onPointerEvent:N,onKeyboardEventNative:V,onPointerEventNative:B,isEditing:b}})({view:i,activeCoords:f,getCellEditor:_,canEdit:()=>{const e=l.getProtection();if(e.isReadOnly())return!1;const t=e.isLocked();return t&&c(),!t},onBeforeStartEdit:e=>{const t=ek(()=>l.getRange(e).getCell()),n={sheet:l,coords:e,editState:Object.freeze(t)};h.setMode({key:"edit",args:{stateAndCoords:n}}),x(n)},onStartEdit:e=>{b(e),d(e)},onSubmitEdit:k,onCancelEdit:e=>{b(null),x(null),h.setMode(null),d(null)},onDoneEdit:e=>{h.setMode(null)},containerProps:w,borderStrokeFill:a.selection?.strokeFill,borderStrokeWidth:l?.getSelection().getCoords().ranges?.length>1?1:2,alignment:S,getRangeCoords:E});kk(l.getSelection(),{onChange(e){m(l.getSelection().getCoords().cell)}});const L=nt(e=>{D(e),y&&M()},[D,R,y]),O=n.useCallback(e=>{D(e)},[D]),P=n.useCallback(e=>{I(e)},[I]);return n.useEffect(()=>{const e=i?.getStage();if(e)return e.addEventListener("pointerdown",L),e.addEventListener("dblclick",O),e.addEventListener("keydown",P),()=>{e.removeEventListener("pointerdown",L),e.removeEventListener("dblclick",O),e.removeEventListener("keydown",P)}},[i?.getStage()]),n.useEffect(()=>{const e=h.getMode(),t=e?.key;"edit"===t||"enter"===t?g?e.args?.cancel?R():e.args?.submit?M():x(e.args?.stateAndCoords):j(e.args?.start):y&&R()},[h]),T(i,r)})),pE="white",hE="black",fE=`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='${hE}' fill='${pE}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,mE=`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='${hE}' fill='${pE}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,gE=n.memo(n.forwardRef((o,r)=>{const{view:i,sheet:l}=o,[a,s]=n.useState(l.getTables().getCount()>0),[c,d]=n.useState(null),[u,p]=n.useState(null),[h,f]=n.useState(null),[m,g]=n.useState(null),x=nt(()=>{if(l.getTables().getCount()>0){s(!0);const e=l.getTables().search({address:i.getVisibleRangeCoords()});d(e.length>0?e:null)}else s(!1),d(null)},[l,i]),y=nt(e=>{e.preventDefault(),e.stopPropagation();const t=i.getCellCoordsFromClient(e.clientX,e.clientY),n=l.getTables().search({address:t});1===n.length&&n[0].select()},[i,l]),b=nt(e=>{e.preventDefault(),e.stopPropagation();const t=i.getCellCoordsFromClient(e.clientX,e.clientY),n=l.getTables().search({address:t});if(1===n.length){const e=n[0].getRange().getCoords(),o={colStart:e.colStart,rowStart:t.rowIndex,colEnd:e.colEnd,rowEnd:t.rowIndex};l.getRange(o).select()}},[i,l]),w=nt(()=>{if(!a)return;const e=l.getTables().search({address:i.getVisibleRangeCoords()});d(e.length>0?e:null)},[l,a,i]);kk(l?.getSelection(),{onChange(e){p(l.getSelection().getCoords().cell)}}),kk(h,{onAnyChange(e){x(),w()}}),kk(m,{onAnyChange(e){w()}}),kk(l,{onTablesChange(e){x(),w()},onInvalidated(e){x(),w()}});const v=n.useMemo(()=>he.debounce(he.throttle(w,300),300),[]);n.useEffect(()=>{v()},[i]),n.useEffect(()=>{let t=null;if(c)for(let n=0;n<c.length&&!t;n++){const o=c[n],r=o.getRange().getCoords();e.CoordUtils.isCellWithinRange(u,r)&&(t=o)}f(t)},[u,c]);const S=nt(e=>{let t=null;if(c)for(let n=0;n<c.length;n++){const o=c[n],r=o.getRange().getCoords();let l=i.getRangeCoordsBounds(r);const a=i.getRelativePointFromClient(e.clientX,e.clientY),s=a.x,d=a.y;if(s>=l.x&&s<=l.x+l.width&&d>=l.y&&d<=l.y+l.height){const e=i.getViewportSize();s<=0||d<=0||s>=e.width||d>=e.height||(t=o)}}g(t)},[i,c]);if(n.useEffect(()=>{const e=i?.getStage();if(e&&c)return e.addEventListener("mousemove",S),e.addEventListener("mouseleave",S),()=>{e.removeEventListener("mousemove",S),e.removeEventListener("mouseleave",S)}},[c,i?.getStage()]),!i)return null;if(!c||0===c.length)return null;const C=[];for(let e=0;e<c.length;e++){const n=c[e];if(n.isClosed())continue;const o=n===m,r=n===h,a=n.getRange().getCoords(),s=i.getRangeCoordsBounds(a);let d;if(o||r){const e=n.getStyle().getProperties(),t=e.headerRow?.fill?.background??e.wholeTable?.border?.top?.color?.toString();if(t&&l){const e=l.getStyles().parseColor(t);e&&(d=e.toCSS())}d||(d="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}C.push(t.jsx("div",{style:{position:"absolute",left:s.x,top:s.y,width:Math.min(16,s.width),height:s.height,pointerEvents:"all",cursor:fE},onMouseDown:b},`table-select-row-${n.getName()}`)),C.push(t.jsx("div",{style:{position:"absolute",left:s.x,top:s.y,width:Math.min(16,s.width),height:Math.min(16,s.height),pointerEvents:"all",cursor:mE},onMouseDown:y},`table-select-${n.getName()}`)),C.push(t.jsx(oC,{x:s.x,y:s.y,width:s.width,height:s.height,range:a,strokeWidth:r?.5:0,stroke:d??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:o?`${d} 0px 0px 1px 1px`:void 0}},`table-outline-${n.getName()}`))}return C})),xE=n.memo(n.forwardRef((o,r)=>{const{view:i,sheet:l,animationTime:a=60}=o,[s,c]=n.useState(null),[d,u]=n.useState(null),p=n.useRef(null),h=nt(()=>{const e=l.getSelectedCell(),t=e.getSpill()?.getCoords()??null;H.isEqualRanges(t,s)||(u(t?{transition:s?"move":"in",bounds:i.getRangeCoordsBounds(t),coords:t}:{transition:"out",bounds:i.getRangeCoordsBounds(s),coords:s}),c(t))},[l,i,s]);n.useEffect(()=>(p.current&&(clearTimeout(p.current),p.current=null),d&&(p.current=setTimeout(()=>{u(null),p.current=null},a)),()=>{p.current&&(clearTimeout(p.current),p.current=null)}),[d,a]);const f=n.useMemo(()=>he.debounce(he.throttle(h,80),80),[]);if(kk(l?.getSelection(),{onChange(e){f()}}),kk(l,{onSpillsChange(e){h()},onInvalidated(e){h()}}),!i)return null;if(!s&&!d)return null;const m=l.getRange(s).getValue()instanceof e.FormulaError.Spill,g=[];let x=d?.bounds??i.getRangeCoordsBounds(s);if(d&&!he.isEqualBounds(d.bounds,i.getRangeCoordsBounds(d.coords))&&u(null),x=i.toClipBounds(x,-10),!x)return;const y="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return g.push(t.jsx(oC,{x:x.x,y:x.y,width:x.width,height:x.height,range:s,strokeWidth:1,stroke:y,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:m?"6 3":void 0,opacity:"out"===d?.transition?0:1,transition:d?.transition?"in"===d.transition||"out"===d.transition?`opacity ${1.5*a}ms ease-in-out`:`left ${a}ms ease-out, top ${a}ms ease-out, width ${a}ms ease-out, height ${a}ms ease-out`:"none",boxShadow:`${y} 0px 0px 4px 0px`}},"spill-outline}")),g})),yE={position:"absolute",top:0,left:0,bottom:0,right:0},bE=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},l=n.body=he.mergeContentful(e.body,i);return n.body=he.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},l),n.buttonSurface=he.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=he.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=he.mergeContentful(n.header,i),n.headerSelect=he.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=he.mergeContentful(n.headerSelect,i),n.headerSelectAll=he.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=he.mergeContentful(n.headerSelectAll,i),n},wE={fireOnModelChange:!1},vE={},SE=n.memo(n.forwardRef((o,r)=>{const{sheet:i,gridStyle:l=vE,headersStyle:a=vE,onSheetContextMenu:s,showColumnHeaders:c,columnHeaderProps:d,showRowHeaders:u,rowHeaderProps:p,showScrollbars:h=!0,scrollPaneProps:m,onViewportChange:g,commands:x,onRepeatCommandChange:y,onMoveCell:b,overlays:w,renderMovable:S,viewportComponent:C,onElementLoad:k,getCellEditor:E,onFocus:_,onBlur:T,style:j=zt.EmptyCssProperties,notifier:M,onShowTooltip:R,onShowColumnTooltip:I,onShowRowTooltip:D,onCloseTooltip:L,gridProps:O,cellRenderProps:P,...A}=o;if(n.useEffect(()=>{e.LicenseManager._validate(!0)},[]),!i)throw new Error("ISheet must be provided.");const[F,z]=n.useReducer(e=>e+1,0),[B,{width:N,height:V}]=ck(),$=nt(R,[R]),W=nt(I,[I]),U=nt(D,[D]),q=nt(L,[L]),Z=n.useRef(!1);n.useLayoutEffect(()=>{Z.current=!0},[i]);const G=i?.getStyles(),K=n.useMemo(()=>bE(l,G),[l,G]),X=n.useMemo(()=>bE(a,G),[a,G]),{body:Y={},buttonSurface:J={}}=K,{header:Q={},headerSelect:ee={},headerSelectAll:te={}}=X,ne=n.useRef(null),[oe,re]=n.useState(()=>i?.getView()),ie=(oe?.getZoomScale()??100)/100,le=n.useMemo(()=>({vertical:oe.isShowColumnGridlines()&&ie>=.4,horizontal:oe.isShowRowGridlines()&&ie>=.4}),[oe?.isShowColumnGridlines(),oe?.isShowRowGridlines(),ie]),ae=n.useMemo(()=>{if(oe?.getGridLineColor())return{strokeDasharray:"1,1"}},[oe?.getGridLineColor(),K]),se=c??oe?.isShowColumnHeaders(),ce=u??oe?.isShowRowHeaders(),[de,ue]=n.useState({width:0,height:0}),pe=n.useMemo(()=>{let t=40,n=20;const o=i?.getStyles().getNormal().getFont();if(de.width>0&&de.height>0){const r=o?.toCSS()?.fontFamily??K.header.text.fontFamily,i=o?.getSize()??K.header.text.fontSize,l=e.IFont.getSharedMeasurer()(""+de.height,Math.ceil(i*e.IFont.getDeviceScale()),r);t=l.width,n=l.lineHeight}return{width:Math.round(t+5),height:Math.round(n+3)}},[de,K?.header.text,i]),fe=ce?ie*pe.width:Q.edgeStrokeWidth,me=se?ie*pe.height:Q.edgeStrokeWidth,ge=Math.max(N,(i?.getColumnHeaders().getDefaultSize()??pe.width)+fe+1),xe=Math.max(V,(i?.getRowHeaders().getDefaultSize()??pe.height)+me+1),ye=n.useRef(new Map),be=n.useRef(null),we=()=>({getColOffset:e=>i.getColumnHeaders().findOffset(e),getColIndex:e=>i.getColumnHeaders().findIndex(e),getRowOffset:e=>i.getRowHeaders().findOffset(e),getRowIndex:e=>i.getRowHeaders().findIndex(e)}),[ve,Se]=n.useState(()=>we()),[Ce,ke]=n.useState(!1),[Ee,_e]=n.useState(null),Te=!0,je=K.selection?.strokeFill,Me=n.useCallback(()=>gt.current,[]),[Re,Ie]=n.useState(),De=nt(e=>{Ie(e),i&&i.getView()&&i.getView().setTopLeft(e?{left:e.left,top:e.top}:null),g?.(e)},[i,g]),Le=n.useRef(null);n.useEffect(()=>{if(!Re||!i)return;const e=i.getRangeAtBounds({x:Re.left,y:Re.top,width:Re.width,height:Re.height});Le.current?.(),Le.current=e.addListener(()=>{const t=e.getCoords();ne?.current?.invalidate(t)})},[Re,i]);const[Oe,Pe]=n.useState(()=>i?.getView().getTopLeft()),Ae=nt(e=>{const t=H.cellToRange(e);if(i.isClosed())return t;const n=i.getRange(t,{excludeHidden:!0}).getMerges();return 0===n.length?t:n[0]},[i]),Fe=e=>{if(!e||0===e.coords.colIndex&&0===e.coords.rowIndex)return null;const t={};return e.coords.colIndex>0&&(t[f.Left]={index:e.coords.colIndex,scrollOffset:e.topLeft.left}),e.coords.rowIndex>0&&(t[f.Top]={index:e.coords.rowIndex,scrollOffset:e.topLeft.top}),t},[ze,Be]=n.useState(()=>Fe(i.getView().getFreezePanes())),Ne=Dn(),Ve=n.useCallback(()=>ne.current,[]),He=nt(e=>{Ne.setMode(t=>"edit"===t?.key?{...t,args:{...t.args}}:{key:"edit",args:{stateAndCoords:null,start:e}})},[]),$e=nt(()=>Re,[Re]),We=_k({sheet:i,commands:x,target:Ve,onRepeatCommandChange:y,bodyStyle:Y,notifier:M,onStartEdit:He,getViewport:$e}),[Ue,Ge]=n.useState(i.getSelection().isEntire()),[Ke,Xe]=n.useState(oe?.getMovableSelection().length>0),Ye=null!==Ee||Ke,Je=null,[Qe,et]=n.useState(!1);n.useEffect(()=>{et(!1)},[i.getProtection()]);const tt=nt(()=>{Qe||(et(!0),M.showMessage?.(t.jsxs("span",{children:["This sheet is protected.",t.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:Wt}))},[M,Qe]),ot=n.useMemo(()=>{const e=Ne.getMode();return e?.cursor?e.cursor:null},[Je,Ne]),[rt,it]=n.useState(null),lt=n.useRef(!1),[at,st]=n.useState([]),ct=n.useRef(null),[dt,ut]=n.useState(v.EmptyTopLeft),[pt,ht]=n.useState(v.EmptyTopLeft);n.useEffect(()=>{ut({left:Oe?.left,top:0})},[Oe?.left]),n.useEffect(()=>{ht({left:0,top:Oe?.top})},[Oe?.top]),kk(i?.getView(),{onFreezeSplitChange:()=>{Be(Fe(i.getView().getFreezePanes()))},onTopLeftChange:()=>{Pe(i.getView().getTopLeft())},onMovableSelectionChange:()=>{Xe(i.getView().getMovableSelection().length>0)}}),kk(i?.getSelection(),{onChange:()=>{Ge(i.getSelection().isEntire())}}),kk(i,{onViewChange(){re(i.getView()),Se(we())},onLayoutChange:()=>{const e=i.getEntireRange();ue({height:e.getRowCount(),width:e.getColumnCount()}),Se(we())},onStyleChange:()=>{xt()},onMovablesChange:()=>{},onInvalidated:()=>{xt()}}),kk(i,{onRequestScrollIntoView:async(e,t)=>{if(!t)return;const n={colIndex:t?.coords.colStart,rowIndex:t?.coords.rowStart};return await(ne.current?.scrollCellCoordsIntoView(n,t?.scroll)),!0},onRequestFocus:()=>he.whenFocus(gt.current)},wE);const ft=n.useMemo(()=>{const e=(e,o)=>{lt.current=!0,it([r=>{if(!r.toClipBounds(r.getRangeCoordsBounds({rowStart:0,rowEnd:de.height,colStart:e,colEnd:e})))return;const a=r.getLayout(),s=Math.max(0,a.getColOffset(e)),c=r.getBounds(),d=Math.min(c.x+c.width,a.getColOffset(e+1)),u=r.getAnchor();if(null!==o&&(u===f.Left||u===f.Center||u===f.Right)){const e=he.roundAccurately(o*he.getDPI(),0),t=he.roundAccurately(i?.getColumnWidthAsFontUnit(o/ie),2).toFixed(2),n="Width: "+(o?t+" ("+e+" pixels)":"Hidden"),r=Dt.current.getGridElement().getRelativePointFromClient(0,0),l=0-r.y,a=0-r.y+me,u={x:s-(r.x-c.x),y:l,width:d-s,height:a-l};requestAnimationFrame(()=>{lt.current&&W?.({anchor:u,display:n})})}const p=[0,0,0,c.height],h={style:{boxShadow:`0.5px 0px 0px 0px ${l?.body?.fill}`},pathProps:{stroke:je}},m={x:s-1,y:0,width:1,height:c.height},g={style:{boxShadow:`-0.5px 0px 0px 0px ${l?.body?.fill}`},pathProps:{stroke:je}},x={x:d-1,y:0,width:1,height:c.height};return t.jsxs(n.Fragment,{children:[t.jsx(eC,{linePoints:p,bounds:m,...h}),t.jsx(eC,{linePoints:p,bounds:x,...g})]},"resize-dividers")}])};let o=null;return{onResizeHeadersStart:(t,n,r)=>{o=i.beginCommit(r),e(t,n)},onResizeHeaders:(t,n,o)=>{e(t,n)},onResizeHeadersDown:(t,n)=>{e(t,n)},onResizeHeadersEnd:(e,t,n)=>{o?.commit({description:n}),o=null,requestAnimationFrame(()=>q?.()),lt.current=!1,it(null)},onResizeHeadersUp:e=>{requestAnimationFrame(()=>q?.()),lt.current=!1,it(null)},...d}},[i,d,me,rt]),mt=n.useMemo(()=>{const e=(e,o)=>{lt.current=!0,it([r=>{if(!r.toClipBounds(r.getRangeCoordsBounds({rowStart:e,rowEnd:e,colStart:0,colEnd:de.width})))return;const a=r.getLayout(),s=Math.max(0,a.getRowOffset(e)),c=r.getBounds(),d=Math.min(c.y+c.height,a.getRowOffset(e+1)),u=r.getAnchor();if(null!==o&&(u===f.Top||u===f.Center||u===f.Bottom)){const e=Math.floor(10*he.getDPI())/10,t=he.roundAccurately(o*e,0),n=he.roundAccurately(t/ie/(i?.getRowHeaders().getScaleFactor()*he.getDPI()),2).toFixed(2),r="Height: "+(o?n+" ("+t+" pixels)":"Hidden"),l=Rt.current.getGridElement().getRelativePointFromClient(0,0),a=0-l.x,u=0-l.x+fe,p={x:a,y:s-(l.y-c.y),width:u-a,height:d-s};requestAnimationFrame(()=>{lt.current&&U?.({anchor:p,display:r})})}const p=[0,0,c.width,0],h={style:{boxShadow:`0px 0.5px 0px 0px ${l?.body?.fill}`},pathProps:{stroke:je}},m={x:0,y:s-1,width:c.width,height:1},g={style:{boxShadow:`0px -0.5px 0px 0px ${l?.body?.fill}`},pathProps:{stroke:je}},x={x:0,y:d-1,width:c.width,height:1};return t.jsxs(n.Fragment,{children:[t.jsx(eC,{linePoints:p,bounds:m,...h}),t.jsx(eC,{linePoints:p,bounds:x,...g})]},"resize-dividers")}])};let o=null;return{onResizeHeadersStart:(t,n,r)=>{o=i.beginCommit(r),e(t,n)},onResizeHeaders:(t,n,o)=>{e(t,n)},onResizeHeadersDown:(t,n)=>{e(t,n)},onResizeHeadersEnd:(e,t,n)=>{o?.commit({description:n}),o=null,requestAnimationFrame(()=>q?.()),lt.current=!1,it(null)},onResizeHeadersUp:e=>{requestAnimationFrame(()=>q?.()),lt.current=!1,it(null)},...p}},[i,p,fe]),gt=Nt(r,()=>{const e=e=>{i?.getView()&&i.getView().selectMovables([]),be.current=null,ne?.current?.focus(e)},t=async(e=null)=>{if(e||(e=i?.getView().getMovableSelection()[0]),!e)return!1;const t=e.getAnchorCoords();if(!t)return!1;const n=ne.current?.getViewFromCellCoords({colIndex:t.colStart,rowIndex:t.rowStart});if(!n)return!1;const o=n.getAnchor();-1===i?.getView().getMovableSelection().indexOf(e)&&i?.getView().selectMovables([e]);let r=ye.current?.get(o);return r?.current?(await r.current.focusMovable(e),!0):(be.current={movable:e,anchor:o},!0)};return{getGridElement:()=>ne.current,getRowHeaderElement:()=>Rt.current,getColumnHeaderElement:()=>Dt.current,rowHeaderHeight:()=>me,colHeaderWidth:()=>fe,startEdit:He,submitEdit:()=>{Ne.setMode(e=>"edit"!==e?.key?e:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{Ne.setMode(e=>"edit"!==e?.key?e:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:null!==Ee,focus:n=>{i?.getView().getMovableSelection().length>0&&t()||e(n)},focusSheet:e,focusMovable:t,contains:e=>ne?.current?.contains?.(e),invalidate:xt,isSheetElement:()=>!0,getSheet:()=>i}},[i]),xt=n.useCallback(e=>{Z.current||(ne?.current?.invalidate(e),z?.())},[]);n.useEffect(()=>{xt()},[K]);const yt=Ue?te.edgeStrokeFill:Q.fill,bt=Ue?ee.fill:"function"==typeof K.headerHover?K.headerHover(Q)?.fill:Q.fill,wt=n.useMemo(()=>C?t.jsx("div",{className:vk("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:C}):t.jsx(t.Fragment,{}),[C]);let vt=null;se&&ce&&(vt=t.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${me}px`,width:`${fe}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:e=>{let t=!e.ctrlKey;We?.getCommand("selectAll")?.execute(!t||0!==e.button),e.nativeEvent.which===Ze?s?.({originalEvent:e,clientX:e.clientX,clientY:e.clientY,rowIndex:-1,colIndex:-1}):ne.current?.focus()},children:[t.jsx("div",{style:{height:me-5+"px",width:me-5+"px",clipPath:`path('M${me-5} 0 L0 ${me-5} L${me-5} ${me-5} L${me-5} 0 Z')`,borderRight:`2px solid ${yt}`,borderBottom:`2px solid ${yt}`,background:`${bt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),t.jsx("div",{style:{position:"absolute",height:`${me}px`,width:`${fe}px`,boxSizing:"border-box",borderRight:`solid 1px ${Q.strokeFill}`,borderBottom:`solid 1px ${Q.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const St=nt(({_left:e,_top:t})=>{},[]),Ct=nt(e=>{if(!s)return;const t=ne.current.getViewFromClient(e.clientX,e.clientY)?.getCellCoordsFromClient(e.clientX,e.clientY);t&&(s({originalEvent:e,clientX:e.clientX,clientY:e.clientY,rowIndex:t.rowIndex,colIndex:t.colIndex}),e.stopPropagation(),e.preventDefault())},[s]),kt=nt(e=>{if(e.shiftKey||!e.ctrlKey&&!e.metaKey)return;const{deltaY:t}=e;return t>0?We.getCommand("sheetZoomOut")?.execute():t<0&&We.getCommand("sheetZoomIn")?.execute(),0===t},[We]);n.useEffect(()=>{st(null),ct.current=null,lt.current=!1,it(null);const e=i?.getView().getTopLeft();St(e),ne.current?.scrollTo(e),Pe(e),re(i.getView()),Be(Fe(i.getView().getFreezePanes())),Se(we()),z()},[i?.getView()]);const Et=nt(t=>{const n=t.getVisibleRangeCoords();if(!n)return null;const o=[];return i.getRange(n).forEach((t,n)=>{const r=n.getCoords(),i=n.getCell();(t=>{if(t.isEmpty())return!1;const n=t.getSpans();if(n.width>1||n.height>1)return!0;if(t.getStyle().hasVisibleStyling())return!0;if(oe.isShowFormulas()&&null!==t.getFormula())return!0;const o=t.getValue();return null!==o&&!(!oe.isShowZeros()&&0===o&&t.getType()===e.ScalarType.Number)})(i)&&o.push({coords:r,value:i,range:oe.isShowFormulas()?null:i.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),o},[i,oe.isShowZeros(),oe.isShowFormulas(),Ee]);n.useEffect(()=>{const e=[];w&&e.push(...w),rt&&e.push(...rt),he.isEqualArrays(e,ct.current)||(ct.current=e,st(e))},[w,rt,K]);const _t=n.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${l?.body?.fill}`},pathProps:{stroke:l?.body?.text?.fill??"black"}}),[K?.header?.edgeStrokeFill]),Tt=nt(e=>{e.isDefaultPrevented()||e.isPropagationStopped()||(be.current=null,i?.getView().getMovableSelection().length>0&&i.getView().selectMovables([]))},[i]),jt=n.useMemo(()=>{const e=Ne.getMode();return"cut"===e?.key||"copy"===e?.key},[Ne]),Mt=nt(async e=>{const t=Ne.getMode();return e.keyCode===qe.Escape&&t?(e.preventDefault(),void Ne.setMode(null)):e.keyCode===qe.Enter&&jt?(e.preventDefault(),await(We?.getCommand("paste")?.execute()),void Ne.setMode(null)):void We?.dispatchToFocusedCommand(e)},[We,Ne]),Rt=n.useRef(null),It=n.useMemo(()=>t.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${me+1}px`,width:`${fe+Q.edgeStrokeWidth}px`,minWidth:`${fe+Q.edgeStrokeWidth}px`,borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,height:`calc(100% - ${me}px)`,boxSizing:"border-box",zIndex:"2"},children:t.jsx(Nk,{ref:Rt,sheetElement:gt.current,gridRef:ne,freezeStart:ze?.[f.Top],oppositeSize:fe,containerWidth:fe,containerHeight:xe,sheetHeader:i.getRowHeaders(),gridStyle:X,verticalPadding:Math.max(0,Math.floor(i.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:pt,onSheetContextMenu:s,tabIndex:-1,style:{position:"relative",flex:"0",top:`${me+1}px`,width:`${fe+Q.edgeStrokeWidth}px`,minWidth:`${fe+Q.edgeStrokeWidth}px`,borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,height:`calc(100% - ${me}px)`,boxSizing:"border-box",zIndex:"2",...mt?.style},...mt})}),[fe,me,xe,i,pt,ze?.[f.Top],K,Te,s,Q.fill,p]),Dt=n.useRef(null),Lt=n.useMemo(()=>t.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${me+Q.edgeStrokeWidth}px`,minHeight:`${me+Q.edgeStrokeWidth}px`,borderBottom:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:t.jsx(Nk,{ref:Dt,sheetElement:gt.current,gridRef:ne,freezeStart:ze?.[f.Left],oppositeSize:me,containerWidth:ge,containerHeight:me,sheetHeader:i.getColumnHeaders(),gridStyle:X,scrollPoint:dt,onSheetContextMenu:s,...ft,style:{...ft?.style,position:"relative",left:"0px",width:"100%",height:`${me+Q.edgeStrokeWidth}px`,minHeight:`${me+Q.edgeStrokeWidth}px`,borderBottom:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[me,ge,i,dt,ze?.[f.Left],K,Q.fill,Te,s,d]),Ot=nt(e=>{const{value:t,key:o,...r}=e;let l=t,a=Ee;if(!a||a.colIndex===e.coords.colIndex&&a.rowIndex===e.coords.rowIndex||(a=null),!l){const t=e.range;if(l=i.getRange({rowIndex:t.rowStart,colIndex:t.colStart}).getCell(),l.isEmpty())return null}let s=null;l.getHyperlink()&&(s=async e=>{if(P?.onLinkMouseDown?.(e),0===e.button&&!e.isDefaultPrevented()){e.stopPropagation(),e.preventDefault();try{await(l.getHyperlink()?.open())}catch(e){M?.showError?.(e)}}}),a&&a.colIndex===e.range.colStart&&a.rowIndex===e.range.rowStart&&(l=l.createTemporaryCell({value:null}));const c=i.getStyles();return n.createElement(KC,{...r,key:o,bodyStyle:Y,docTheme:c.getTheme(),normalStyle:c.getNormal(),showFormulas:oe.isShowFormulas(),showZeros:oe.isShowZeros(),onLinkMouseDown:s,...P,value:l})},[i,ve,Y,Ee,oe?.isShowFormulas(),oe.isShowZeros()]),Pt=n.useCallback((e,n)=>{const{key:o,...r}=e;return[t.jsx(Vk,{ref:n,getVisibleCells:Et,sheet:i,gridStyle:K,...r},`border-${o}`),t.jsx(gE,{ref:n,sheet:i,commands:We,...r},`table-${o}`),t.jsx(xE,{ref:n,sheet:i,...r},`spill-${o}`),t.jsx(nE,{ref:n,sheet:i,commands:We,notifier:M,onShowTooltip:$,onCloseTooltip:q,gridStyle:K,gridRef:ne,editingCoords:Ee,isActive:Te,...r},`selection-${o}`),t.jsx(Kk,{ref:n,sheet:i,commands:We,gridStyle:K,element:Me,notifier:M,...r},`copy-paste-${o}`),t.jsx(dE,{ref:n,sheet:i,commands:We,target:Ve,notifier:M,renderMovable:S,movableProps:{onUnFocus:()=>{gt.current.focus()}},...r},`movable-${o}`),t.jsx(uE,{ref:n,sheet:i,commands:We,notifier:M,gridStyle:K,getCellEditor:E,showProtectedError:tt,setEditingCoords:_e,...r},`editor-${o}`)]},[i,ne.current,K,E,We,M]),[At,Ft]=n.useState(!1),Bt=n.useMemo(()=>{if(0===ge||0===xe)return null;const n=i.getStyles().getNormal(),o=n.getFont(),r=n.getFill(),l=n.getBorder(),a=n.getFill().getType()===e.IFill.Type.None;let s=ae,c=ae;const d=(e,t,n)=>n?{stroke:l.getBottom().isNone()?"none":e.getColor().toRGBA(Y.darkMode).toString(),...t}:t;c=d(l.getBottom(),c,!l.getBottom().isNone()),c=d(l.getTop(),c,!l.getTop().isNone()),s=d(l.getRight(),s,!l.getRight().isNone()),s=d(l.getLeft(),s,!l.getLeft().isNone());let u=oe?.getGridLineColor()?.toRGBA(Y.darkMode).toString()??Y.strokeFill;return a||(c=d(l.getBottom(),c,!0),c=d(l.getTop(),c,!0),s=d(l.getRight(),s,!0),s=d(l.getLeft(),s,!0)),t.jsx(DC,{className:"sheetxl-sheet-primary",style:{...yE,...r.toCSS(Y.darkMode),...o.toCSS(Y.darkMode,ie),"--sxl-app-color-background":Y.fill,"--sxl-app-color-shadow":K.colorShadow,"--sxl-app-color-grey":K.colorGrey,"--sxl-app-color-button-fill":J.fill,"--sxl-app-color-button-text":J.text?.fill,"--sxl-app-color-button-border":J.edgeStrokeFill,"--sxl-app-color-primary-dark":K.selection.strokeFill},ref:ne,zoom:ie,...O,onFirstRender:e=>{Ft(!0),O?.onFirstRender?.(e),We?.activate()},showGridLines:le,gridLineColor:u,gridLineColumnsProps:s,gridLineRowsProps:c,freezeLeft:ze?.[f.Left],freezeLeftProps:_t,freezeTop:ze?.[f.Top],freezeTopProps:_t,width:ge,height:xe,columnCount:de.width,rowCount:de.height,cursor:ot??Je??"cell",clipCells:!0,layout:ve,cellRenderer:Ot,overlayRenderer:Pt,getCellCoordsAsRangeCoords:Ae,getVisibleCells:Et,onWheelScroll:kt,onPointerDown:Tt,onKeyDown:Mt,onViewportChange:De,onImmediateScroll:St,scrollPoint:Oe,stageProps:{onFocus:()=>{We?.activate()}},overlays:at})},[F]);n.useEffect(()=>{Z.current||z()},[ve,ze,ie,We,Oe?.left,Oe?.top,Y,O,ge,xe,ot,at,Te,Je]);let Vt={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};h||(Vt={...Vt,...j});const Ht=n.useMemo(()=>{const e=i.getStyles().getTheme(),t=e.getColorScheme(),n=e.getFontScheme();return{"--sxl-doc-color-dk1":t.getDk1().toCSS(Y.darkMode),"--sxl-doc-color-dk2":t.getDk2().toCSS(Y.darkMode),"--sxl-doc-color-lt1":t.getLt1().toCSS(Y.darkMode),"--sxl-doc-color-lt2":t.getLt2().toCSS(Y.darkMode),"--sxl-doc-color-accent1":t.getAccent1().toCSS(Y.darkMode),"--sxl-doc-color-accent2":t.getAccent2().toCSS(Y.darkMode),"--sxl-doc-color-accent3":t.getAccent3().toCSS(Y.darkMode),"--sxl-doc-color-accent4":t.getAccent4().toCSS(Y.darkMode),"--sxl-doc-color-accent5":t.getAccent5().toCSS(Y.darkMode),"--sxl-doc-color-accent6":t.getAccent6().toCSS(Y.darkMode),"--sxl-doc-color-hlink":t.getHlink().toCSS(Y.darkMode),"--sxl-doc-color-fol-hlink":t.getFolHlink().toCSS(Y.darkMode),"--sxl-doc-font-major":n.getMajorFont(),"--sxl-doc-font-minor":n.getMinorFont()}},[i.getStyles().getTheme()]);let Ut=t.jsx("div",{style:Vt,onTouchStart:()=>{Gt()},onFocus:e=>{ke(!0),_?.(e)},onBlur:e=>{ke(!1),T?.(e)},ref:gt,...A,children:t.jsx("div",{className:vk("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",...Ht},children:t.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[vt,It,t.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[Lt,t.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${Q.edgeStrokeWidth}px ${Q.edgeStrokeFill}`,backgroundColor:Y.fill},ref:B,onContextMenu:Ct,children:[Bt,wt,t.jsx(Ck,{style:{position:"absolute",right:24,bottom:4},colorLicensee:K?.selection?.strokeFill,colorCredits:K?.body?.text?.fill})]})]})]})})});if(h){const e=e=>t.jsx(zk,{...e,sheet:i});Ut=t.jsx($t,{style:{flex:"1 1 100%",overflow:"hidden",background:`${Q.fill}`,minHeight:2*pe.height,minWidth:2*pe.width,...j},viewport:Re,touchElement:ne.current?.stage,disableTouch:Ye,onScrollViewport:e=>{ne.current?.scrollTo(e)},createHorizontalScrollbar:e,createVerticalScrollbar:e,...m,children:Ut})}n.useEffect(()=>{Z.current=!1,z?.(),Ce&&gt.current?.focus()},[i]);const[qt,Zt]=n.useState(!1),Gt=nt(()=>{qt||Zt(!0)},[qt]);return n.useEffect(()=>{if(At)return"function"==typeof k&&k(),"touch"===zt.detectIt().primaryInput&&Gt(),()=>{}},[k,At,qt]),Ut}));SE.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const CE="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=",kE=n.memo(n.forwardRef((e,o)=>{const{children:r,disabled:i,style:l,picture:a,description:s,isDragging:c,view:d,onHide:u,onShow:p,onKeyDownCapture:h,onFocus:f,onBlur:m,loadingPanel:g,...x}=e,[y,b]=n.useState(!1),[w,v]=n.useState(null),[S,C]=n.useState(null),[k,E]=n.useState(null);n.useEffect(()=>{C(null),a.getDetails().then(e=>{b(!1),C(e.asUrl()),e.asSVGText?.()&&E(e.asSVGText())}).catch(e=>{console.warn(e),b(!0),C(CE),E(null)})},[a]);const _=Nt(o,()=>({isPictureEditor:()=>!0}),[]),T=n.useMemo(()=>{if(S||k)return t.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:y?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:y?"var(--sxl-app-color-background, white)":void 0,boxShadow:y?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:y?"contain":void 0,opacity:w?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:S,onLoad:()=>{v(!0)},onError:({currentTarget:e})=>{console.log("error"),e.onerror=null,C(CE),b(!0)},alt:s??`${a.getType()}`})},[w,a,S,k,c]);if(!a.isClosed())return t.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:c?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...l,width:"100%",height:"100%"},tabIndex:0,...x,onKeyDownCapture:e=>{h?.(e)},ref:_,children:[w||y?void 0:g,T]})}));kE.displayName="PictureEditor";const EE=n.memo(n.forwardRef((e,o)=>{const{children:r,disabled:i,chart:l,view:a,isDragging:s,onHide:c,onShow:d,...u}=e;n.useEffect(()=>{},[l]);const p=Nt(o,()=>({isChartEditor:()=>!0}),[]),[h,{height:f,width:m}]=ck();if(!l.isClosed())return t.jsx("div",{...u,ref:ok([p,h]),children:t.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:a.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:i?"blur(1px)":void 0,boxShadow:s?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:t.jsx("div",{style:{textAlign:"center"},children:l.getDescription()})})})})),_E=e=>t.jsx("input",{...e}),TE=n.memo(n.forwardRef((e,o)=>{const{style:r={},className:i,value:l="",onSubmit:a,onChange:s,onCancel:c,createInput:d=_E,notifier:u,styleHover:p={},dragging:h,maxLength:f,disabled:m=!1,readOnly:g=!1,...x}=e,[y,b]=n.useState(!1),[w,v]=n.useState(!1),[S,C]=n.useState(l);n.useEffect(()=>{C(l)},[l]);const k=n.useRef(null),[E,_]=n.useState(null),T=n.useCallback(function(e){const t=e.message;E!==t&&(u?.showMessage?.(t,{type:Wt}),_(t))},[u,E]),j=n.useCallback(e=>{let t=!1;try{t=a?.(e)??!0}catch(e){T(e)}return t?(k.current=null,v(!1),C(e),t):(setTimeout(()=>{k.current?.focus()},0),t)},[a]),M=nt(()=>{C(l),k.current=null,v(!1),c?.()},[c,l]),R=n.useMemo(()=>{if(!w)return null;const e={className:vk("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:f,type:"text",value:S,onFocus:e=>{k.current||(k.current=e.target,setTimeout(()=>{e.target?.select()},0))},onBlur:e=>{k.current&&j(S)},onChange:e=>{w&&C(e.target.value)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>"Escape"===e.code?(e.preventDefault(),void M()):"Enter"===e.code?(e.preventDefault(),void j(e.target.value)):void("Tab"!==e.code?e.stopPropagation():j(e.target.value))};return t.jsx(t.Fragment,{children:d(e)})},[w,S,j,M,d,m]),[I,D]=n.useState();n.useLayoutEffect(()=>{let e=Object.assign({},r);(h||y)&&(e=Object.assign(e,p)),D(e)},[h,y,p,r]),n.useEffect(()=>{R&&s?.(S)},[R,s,S]);const L=Nt(o,()=>({startEdit(){m||g||v(!0)},cancel(){M()}}),[]);return t.jsxs("div",{...x,ref:L,style:{flexDirection:"column",display:"flex",...I},className:vk(i),children:[t.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{m||g||v(!0)},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:w?0:1},children:S}),R]}),t.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...p},children:S})]})})),jE="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ME(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function RE(e){return"nodeType"in e}function IE(e){var t,n;return e?ME(e)?e:RE(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function DE(e){const{Document:t}=IE(e);return e instanceof t}function LE(e){return!ME(e)&&e instanceof IE(e).HTMLElement}function OE(e){return e instanceof IE(e).SVGElement}function PE(e){return e?ME(e)?e.document:RE(e)?DE(e)?e:LE(e)||OE(e)?e.ownerDocument:document:document:document}const AE=jE?n.useLayoutEffect:n.useEffect;function FE(e){const t=n.useRef(e);return AE(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}function zE(e,t){void 0===t&&(t=[e]);const o=n.useRef(e);return AE(()=>{o.current!==e&&(o.current=e)},t),o}function BE(e,t){const o=n.useRef();return n.useMemo(()=>{const t=e(o.current);return o.current=t,t},[...t])}function NE(e){const t=FE(e),o=n.useRef(null),r=n.useCallback(e=>{e!==o.current&&(null==t||t(e,o.current)),o.current=e},[]);return[o,r]}function VE(e){const t=n.useRef();return n.useEffect(()=>{t.current=e},[e]),t.current}let HE={};function $E(e,t){return n.useMemo(()=>{if(t)return t;const n=null==HE[e]?0:HE[e]+1;return HE[e]=n,e+"-"+n},[e,t])}function WE(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((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t},{...t})}}const UE=WE(1),qE=WE(-1);function ZE(e){if(!e)return!1;const{KeyboardEvent:t}=IE(e.target);return t&&e instanceof t}function GE(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=IE(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const KE=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[KE.Translate.toString(e),KE.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),XE="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function YE(e){return e.matches(XE)?e:e.querySelector(XE)}const JE={display:"none"};function QE(e){let{id:t,value:o}=e;return n.createElement("div",{id:t,style:JE},o)}function e_(e){let{id:t,announcement:o,ariaLiveType:r="assertive"}=e;return n.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":r,"aria-atomic":!0},o)}const t_=n.createContext(null),n_={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},o_={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 r_(e){let{announcements:t=o_,container:o,hiddenTextDescribedById:r,screenReaderInstructions:i=n_}=e;const{announce:a,announcement:s}=function(){const[e,t]=n.useState("");return{announce:n.useCallback(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=$E("DndLiveRegion"),[d,u]=n.useState(!1);if(n.useEffect(()=>{u(!0)},[]),function(e){const t=n.useContext(t_);n.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(n.useMemo(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&a(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;a(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;a(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;a(t.onDragCancel({active:n,over:o}))}}),[a,t])),!d)return null;const p=n.createElement(n.Fragment,null,n.createElement(QE,{id:r,value:i.draggable}),n.createElement(e_,{id:c,announcement:s}));return o?l.createPortal(p,o):p}var i_;function l_(){}function a_(e,t){return n.useMemo(()=>({sensor:e,options:null!=t?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"}(i_||(i_={}));const s_=Object.freeze({x:0,y:0});function c_(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function d_(e,t){const n=GE(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function u_(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function p_(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function h_(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 f_(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}function m_(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const g_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=m_(t,t.left,t.top),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=c_(m_(o),r);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(u_)};function x_(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),l=r-o,a=i-n;if(o<r&&n<i){const n=t.width*t.height,o=e.width*e.height,r=l*a;return Number((r/(n+o-r)).toFixed(4))}return 0}const y_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,i=n.get(o);if(i){const n=x_(i,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(p_)};function b_(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:s_}const w_=function(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((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1);function v_(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 S_={ignoreTransform:!1};function C_(e,t){void 0===t&&(t=S_);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=IE(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=v_(t);if(!o)return e;const{scaleX:r,scaleY:i,x:l,y:a}=o,s=e.left-l-(1-r)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,o))}const{top:o,left:r,width:i,height:l,bottom:a,right:s}=n;return{top:o,left:r,width:i,height:l,bottom:a,right:s}}function k_(e){return C_(e,{ignoreTransform:!0})}function E_(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(DE(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!LE(r)||OE(r))return n;if(n.includes(r))return n;const i=IE(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=IE(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const o=t[e];return"string"==typeof o&&n.test(o)})}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=IE(e).getComputedStyle(e)),"fixed"===t.position}(r,i)?n:o(r.parentNode)}(e):n}function __(e){const[t]=E_(e,1);return null!=t?t:null}function T_(e){return jE&&e?ME(e)?e:RE(e)?DE(e)||e===PE(e).scrollingElement?window:LE(e)?e:null:null:null}function j_(e){return ME(e)?e.scrollX:e.scrollLeft}function M_(e){return ME(e)?e.scrollY:e.scrollTop}function R_(e){return{x:j_(e),y:M_(e)}}var I_;function D_(e){return!(!jE||!e)&&e===document.scrollingElement}function L_(e){const t={x:0,y:0},n=D_(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"}(I_||(I_={}));const O_={x:.2,y:.2};function P_(e,t,n,o,r){let{top:i,left:l,right:a,bottom:s}=n;void 0===o&&(o=10),void 0===r&&(r=O_);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=L_(e),h={x:0,y:0},f={x:0,y:0},m=t.height*r.y,g=t.width*r.x;return!c&&i<=t.top+m?(h.y=I_.Backward,f.y=o*Math.abs((t.top+m-i)/m)):!d&&s>=t.bottom-m&&(h.y=I_.Forward,f.y=o*Math.abs((t.bottom-m-s)/m)),!p&&a>=t.right-g?(h.x=I_.Forward,f.x=o*Math.abs((t.right-g-a)/g)):!u&&l<=t.left+g&&(h.x=I_.Backward,f.x=o*Math.abs((t.left+g-l)/g)),{direction:h,speed:f}}function A_(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}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 F_(e){return e.reduce((e,t)=>UE(e,R_(t)),s_)}function z_(e,t){if(void 0===t&&(t=C_),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);__(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const B_=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+j_(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+M_(t),0)}]];class N_{constructor(e,t){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 n=E_(t),o=F_(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of B_)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=r(n),l=o[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class V_{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function H_(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?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 $_,W_;function U_(e){e.preventDefault()}function q_(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"}($_||($_={})),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"}(W_||(W_={}));const Z_={start:[W_.Space,W_.Enter],cancel:[W_.Esc],end:[W_.Space,W_.Enter,W_.Tab]},G_=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case W_.Right:return{...n,x:n.x+25};case W_.Left:return{...n,x:n.x-25};case W_.Down:return{...n,y:n.y+25};case W_.Up:return{...n,y:n.y-25}}};class K_{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new V_(PE(t)),this.windowListeners=new V_(IE(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($_.Resize,this.handleCancel),this.windowListeners.add($_.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($_.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&z_(n),t(s_)}handleKeyDown(e){if(ZE(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=Z_,coordinateGetter:i=G_,scrollBehavior:l="smooth"}=o,{code:a}=e;if(r.end.includes(a))return void this.handleEnd(e);if(r.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:s_;this.referenceCoordinates||(this.referenceCoordinates=c);const d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=qE(d,c),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=L_(n),h=A_(n),f={x:Math.min(r===W_.Right?h.right-h.width/2:h.right,Math.max(r===W_.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(r===W_.Down?h.bottom-h.height/2:h.bottom,Math.max(r===W_.Down?h.top:h.top+h.height/2,d.y))},m=r===W_.Right&&!a||r===W_.Left&&!s,g=r===W_.Down&&!c||r===W_.Up&&!i;if(m&&f.x!==d.x){const e=n.scrollLeft+t.x,i=r===W_.Right&&e<=u.x||r===W_.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});o.x=i?n.scrollLeft-e:r===W_.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,o.x&&n.scrollBy({left:-o.x,behavior:l});break}if(g&&f.y!==d.y){const e=n.scrollTop+t.y,i=r===W_.Down&&e<=u.y||r===W_.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});o.y=i?n.scrollTop-e:r===W_.Down?n.scrollTop-u.y:n.scrollTop-p.y,o.y&&n.scrollBy({top:-o.y,behavior:l});break}}this.handleMove(e,UE(qE(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function X_(e){return Boolean(e&&"distance"in e)}function Y_(e){return Boolean(e&&"delay"in e)}K_.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Z_,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==r||r({event:e.nativeEvent}),0))}return!1}}];class J_{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=IE(e);return e instanceof t?e:PE(e)}(e.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=e,this.events=t;const{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=PE(i),this.documentListeners=new V_(this.document),this.listeners=new V_(n),this.windowListeners=new V_(IE(i)),this.initialCoordinates=null!=(o=GE(r))?o:s_,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:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add($_.Resize,this.handleCancel),this.windowListeners.add($_.DragStart,U_),this.windowListeners.add($_.VisibilityChange,this.handleCancel),this.windowListeners.add($_.ContextMenu,U_),this.documentListeners.add($_.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Y_(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(X_(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add($_.Click,q_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($_.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:i,options:{activationConstraint:l}}=r;if(!o)return;const a=null!=(t=GE(e))?t:s_,s=qE(o,a);if(!n&&l){if(X_(l)){if(null!=l.tolerance&&H_(s,l.tolerance))return this.handleCancel();if(H_(s,l.distance))return this.handleStart()}return Y_(l)&&H_(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===W_.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Q_={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eT extends J_{constructor(e){const{event:t}=e,n=PE(t.target);super(e,Q_,n)}}eT.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button||(null==o||o({event:n}),0))}}];const tT={move:{name:"mousemove"},end:{name:"mouseup"}};var nT;!function(e){e[e.RightClick=2]="RightClick"}(nT||(nT={}));class oT extends J_{constructor(e){super(e,tT,PE(e.event.target))}}oT.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==nT.RightClick&&(null==o||o({event:n}),!0)}}];const rT={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class iT extends J_{constructor(e){super(e,rT)}static setup(){return window.addEventListener(rT.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(rT.move.name,e)};function e(){}}}var lT,aT;iT.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1||(null==o||o({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(lT||(lT={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(aT||(aT={}));const sT={x:{[I_.Backward]:!1,[I_.Forward]:!1},y:{[I_.Backward]:!1,[I_.Forward]:!1}};var cT,dT;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(cT||(cT={})),(dT||(dT={})).Optimized="optimized";const uT=new Map;function pT(e,t){return BE(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function hT(e){let{callback:t,disabled:o}=e;const r=FE(t),i=n.useMemo(()=>{if(o||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[o]);return n.useEffect(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function fT(e){return new N_(C_(e),e)}function mT(e,t,o){void 0===t&&(t=fT);const[r,i]=n.useState(null);function l(){i(n=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=n?n:o)?r:null;const i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i})}const a=function(e){let{callback:t,disabled:o}=e;const r=FE(t),i=n.useMemo(()=>{if(o||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,o]);return n.useEffect(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){l();break}}}}),s=hT({callback:l});return AE(()=>{l(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),r}const gT=[];function xT(e,t){void 0===t&&(t=[]);const o=n.useRef(null);return n.useEffect(()=>{o.current=null},t),n.useEffect(()=>{const t=e!==s_;t&&!o.current&&(o.current=e),!t&&o.current&&(o.current=null)},[e]),o.current?qE(e,o.current):s_}function yT(e){return n.useMemo(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const bT=[];function wT(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return LE(t)?t:e}const vT=[{sensor:eT,options:{}},{sensor:K_,options:{}}],ST={current:{}},CT={draggable:{measure:k_},droppable:{measure:k_,strategy:cT.WhileDragging,frequency:dT.Optimized},dragOverlay:{measure:C_}};class kT extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const ET={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new kT,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:l_},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:CT,measureDroppableContainers:l_,windowRect:null,measuringScheduled:!1},_T={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:l_,draggableNodes:new Map,over:null,measureDroppableContainers:l_},TT=n.createContext(_T),jT=n.createContext(ET);function MT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new kT}}}function RT(e,t){switch(t.type){case i_.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i_.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i_.DragEnd:case i_.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i_.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new kT(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case i_.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const l=new kT(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case i_.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new kT(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function IT(e){let{disabled:t}=e;const{active:o,activatorEvent:r,draggableNodes:i}=n.useContext(TT),l=VE(r),a=VE(null==o?void 0:o.id);return n.useEffect(()=>{if(!t&&!r&&l&&null!=a){if(!ZE(l))return;if(document.activeElement===l.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=YE(e);if(t){t.focus();break}}})}},[r,t,i,a,l]),null}function DT(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}const LT=n.createContext({...s_,scaleX:1,scaleY:1});var OT;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(OT||(OT={}));const PT=n.memo(function(e){var t,o,r,i;let{id:a,accessibility:s,autoScroll:c=!0,children:d,sensors:u=vT,collisionDetection:p=y_,measuring:h,modifiers:f,...m}=e;const g=n.useReducer(RT,void 0,MT),[x,y]=g,[b,w]=function(){const[e]=n.useState(()=>new Set),t=n.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]);return[n.useCallback(t=>{let{type:n,event:o}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)})},[e]),t]}(),[v,S]=n.useState(OT.Uninitialized),C=v===OT.Initialized,{draggable:{active:k,nodes:E,translate:_},droppable:{containers:T}}=x,j=null!=k?E.get(k):null,M=n.useRef({initial:null,translated:null}),R=n.useMemo(()=>{var e;return null!=k?{id:k,data:null!=(e=null==j?void 0:j.data)?e:ST,rect:M}:null},[k,j]),I=n.useRef(null),[D,L]=n.useState(null),[O,P]=n.useState(null),A=zE(m,Object.values(m)),F=$E("DndDescribedBy",a),z=n.useMemo(()=>T.getEnabled(),[T]),B=n.useMemo(()=>({draggable:{...CT.draggable,...null==N?void 0:N.draggable},droppable:{...CT.droppable,...null==N?void 0:N.droppable},dragOverlay:{...CT.dragOverlay,...null==N?void 0:N.dragOverlay}}),[null==(N=h)?void 0:N.draggable,null==N?void 0:N.droppable,null==N?void 0:N.dragOverlay]);var N;const{droppableRects:V,measureDroppableContainers:H,measuringScheduled:$}=function(e,t){let{dragging:o,dependencies:r,config:i}=t;const[l,a]=n.useState(null),{frequency:s,measure:c,strategy:d}=i,u=n.useRef(e),p=function(){switch(d){case cT.Always:return!1;case cT.BeforeDragging:return o;default:return!o}}(),h=zE(p),f=n.useCallback(function(e){void 0===e&&(e=[]),h.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),m=n.useRef(null),g=BE(t=>{if(p&&!o)return uT;if(!t||t===uT||u.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new N_(c(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,l,o,p,c]);return n.useEffect(()=>{u.current=e},[e]),n.useEffect(()=>{p||f()},[o,p]),n.useEffect(()=>{l&&l.length>0&&a(null)},[JSON.stringify(l)]),n.useEffect(()=>{p||"number"!=typeof s||null!==m.current||(m.current=setTimeout(()=>{f(),m.current=null},s))},[s,p,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=l}}(z,{dragging:C,dependencies:[_.x,_.y],config:B.droppable}),W=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return BE(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(E,k),U=n.useMemo(()=>O?GE(O):null,[O]),q=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=C&&!e&&!t;return"object"==typeof c?{...c,enabled:n}:{enabled:n}}(),Z=function(e,t){return pT(e,t)}(W,B.draggable.measure);!function(e){let{activeNode:t,measure:o,initialRect:r,config:i=!0}=e;const l=n.useRef(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;AE(()=>{if(!a&&!s||!t)return void(l.current=!1);if(l.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=b_(o(e),r);if(a||(n.x=0),s||(n.y=0),l.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=__(e);t&&t.scrollBy({top:n.y,left:n.x})}},[t,a,s,r,o])}({activeNode:null!=k?E.get(k):null,config:q.layoutShiftCompensation,initialRect:Z,measure:B.draggable.measure});const G=mT(W,B.draggable.measure,Z),K=mT(W?W.parentElement:null),X=n.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Y=T.getNodeFor(null==(t=X.current.over)?void 0:t.id),J=function(e){let{measure:t}=e;const[o,r]=n.useState(null),i=hT({callback:n.useCallback(e=>{for(const{target:n}of e)if(LE(n)){r(e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o});break}},[t])}),l=n.useCallback(e=>{const n=wT(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[a,s]=NE(l);return n.useMemo(()=>({nodeRef:a,rect:o,setRef:s}),[o,a,s])}({measure:B.dragOverlay.measure}),Q=null!=(o=J.nodeRef.current)?o:W,ee=C?null!=(r=J.rect)?r:G:null,te=Boolean(J.nodeRef.current&&J.rect),ne=b_(oe=te?null:G,pT(oe));var oe;const re=yT(Q?IE(Q):null),ie=function(e){const t=n.useRef(e),o=BE(n=>e?n&&n!==gT&&e&&t.current&&e.parentNode===t.current.parentNode?n:E_(e):gT,[e]);return n.useEffect(()=>{t.current=e},[e]),o}(C?null!=Y?Y:W:null),le=function(e,t){void 0===t&&(t=C_);const[o]=e,r=yT(o?IE(o):null),[i,l]=n.useState(bT);function a(){l(()=>e.length?e.map(e=>D_(e)?r:new N_(t(e),e)):bT)}const s=hT({callback:a});return AE(()=>{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),i}(ie),ae=DT(f,{transform:{x:_.x-ne.x,y:_.y-ne.y,scaleX:1,scaleY:1},activatorEvent:O,active:R,activeNodeRect:G,containerNodeRect:K,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:J.rect,scrollableAncestors:ie,scrollableAncestorRects:le,windowRect:re}),se=U?UE(U,_):null,ce=function(e){const[t,o]=n.useState(null),r=n.useRef(e),i=n.useCallback(e=>{const t=T_(e.target);t&&o(e=>e?(e.set(t,R_(t)),new Map(e)):null)},[]);return n.useEffect(()=>{const t=r.current;if(e!==t){n(t);const l=e.map(e=>{const t=T_(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,R_(t)]):null}).filter(e=>null!=e);o(l.length?new Map(l):null),r.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{const t=T_(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),n.useMemo(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>UE(e,t),s_):F_(e):s_,[e,t])}(ie),de=xT(ce),ue=xT(ce,[G]),pe=UE(ae,de),he=ee?w_(ee,ae):null,fe=R&&he?p({active:R,collisionRect:he,droppableRects:V,droppableContainers:z,pointerCoordinates:se}):null,me=f_(fe,"id"),[ge,xe]=n.useState(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?ae:UE(ae,ue),null!=(i=null==ge?void 0:ge.rect)?i:null,G),be=n.useRef(null),we=n.useCallback((e,t)=>{let{sensor:n,options:o}=t;if(null==I.current)return;const r=E.get(I.current);if(!r)return;const i=e.nativeEvent,a=new n({active:I.current,activeNode:r,event:i,options:o,context:X,onAbort(e){if(!E.get(e))return;const{onDragAbort:t}=A.current,n={id:e};null==t||t(n),b({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!E.get(e))return;const{onDragPending:r}=A.current,i={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(i),b({type:"onDragPending",event:i})},onStart(e){const t=I.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:o}=A.current,r={activatorEvent:i,active:{id:t,data:n.data,rect:M}};l.unstable_batchedUpdates(()=>{null==o||o(r),S(OT.Initializing),y({type:i_.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:r}),L(be.current),P(i)})},onMove(e){y({type:i_.DragMove,coordinates:e})},onEnd:s(i_.DragEnd),onCancel:s(i_.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=X.current;let a=null;if(t&&r){const{cancelDrop:l}=A.current;a={activatorEvent:i,active:t,collisions:n,delta:r,over:o},e===i_.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=i_.DragCancel)}I.current=null,l.unstable_batchedUpdates(()=>{y({type:e}),S(OT.Uninitialized),xe(null),L(null),P(null),be.current=null;const t=e===i_.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=A.current[t];null==e||e(a),b({type:t,event:a})}})}}be.current=a},[E]),ve=n.useCallback((e,t)=>(n,o)=>{const r=n.nativeEvent,i=E.get(o);if(null!==I.current||!i||r.dndKit||r.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(r.dndKit={capturedBy:t.sensor},I.current=o,we(n,t))},[E,we]),Se=function(e,t){return n.useMemo(()=>e.reduce((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(u,ve);!function(e){n.useEffect(()=>{if(!jE)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(u),AE(()=>{G&&v===OT.Initializing&&S(OT.Initialized)},[G,v]),n.useEffect(()=>{const{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:o,over:r}=X.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:o,delta:{x:pe.x,y:pe.y},over:r};l.unstable_batchedUpdates(()=>{null==e||e(i),b({type:"onDragMove",event:i})})},[pe.x,pe.y]),n.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=X.current;if(!e||null==I.current||!t||!r)return;const{onDragOver:i}=A.current,a=o.get(me),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:s};l.unstable_batchedUpdates(()=>{xe(s),null==i||i(c),b({type:"onDragOver",event:c})})},[me]),AE(()=>{X.current={activatorEvent:O,active:R,activeNode:W,collisionRect:he,collisions:fe,droppableRects:V,draggableNodes:E,draggingNode:Q,draggingNodeRect:ee,droppableContainers:T,over:ge,scrollableAncestors:ie,scrollAdjustedTranslate:pe},M.current={initial:ee,translated:he}},[R,W,fe,he,E,Q,ee,V,T,ge,ie,pe]),function(e){let{acceleration:t,activator:o=lT.Pointer,canScroll:r,draggingRect:i,enabled:l,interval:a=5,order:s=aT.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:u,delta:p,threshold:h}=e;const f=function(e){let{delta:t,disabled:n}=e;const o=VE(t);return BE(e=>{if(n||!o||!e)return sT;const r=Math.sign(t.x-o.x),i=Math.sign(t.y-o.y);return{x:{[I_.Backward]:e.x[I_.Backward]||-1===r,[I_.Forward]:e.x[I_.Forward]||1===r},y:{[I_.Backward]:e.y[I_.Backward]||-1===i,[I_.Forward]:e.y[I_.Forward]||1===i}}},[n,t,o])}({delta:p,disabled:!l}),[m,g]=function(){const e=n.useRef(null);return[n.useCallback((t,n)=>{e.current=setInterval(t,n)},[]),n.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),x=n.useRef({x:0,y:0}),y=n.useRef({x:0,y:0}),b=n.useMemo(()=>{switch(o){case lT.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case lT.DraggableRect:return i}},[o,i,c]),w=n.useRef(null),v=n.useCallback(()=>{const e=w.current;if(!e)return;const t=x.current.x*y.current.x,n=x.current.y*y.current.y;e.scrollBy(t,n)},[]),S=n.useMemo(()=>s===aT.TreeOrder?[...d].reverse():d,[s,d]);n.useEffect(()=>{if(l&&d.length&&b){for(const e of S){if(!1===(null==r?void 0:r(e)))continue;const n=d.indexOf(e),o=u[n];if(!o)continue;const{direction:i,speed:l}=P_(e,o,b,t,h);for(const e of["x","y"])f[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0)return g(),w.current=e,m(v,a),x.current=l,void(y.current=i)}x.current={x:0,y:0},y.current={x:0,y:0},g()}else g()},[t,v,r,g,l,a,JSON.stringify(b),JSON.stringify(f),m,d,S,u,JSON.stringify(h)])}({...q,delta:_,draggingRect:he,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:le});const Ce=n.useMemo(()=>({active:R,activeNode:W,activeNodeRect:G,activatorEvent:O,collisions:fe,containerNodeRect:K,dragOverlay:J,draggableNodes:E,droppableContainers:T,droppableRects:V,over:ge,measureDroppableContainers:H,scrollableAncestors:ie,scrollableAncestorRects:le,measuringConfiguration:B,measuringScheduled:$,windowRect:re}),[R,W,G,O,fe,K,J,E,T,V,ge,H,ie,le,B,$,re]),ke=n.useMemo(()=>({activatorEvent:O,activators:Se,active:R,activeNodeRect:G,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:E,over:ge,measureDroppableContainers:H}),[O,Se,R,G,y,F,E,ge,H]);return n.createElement(t_.Provider,{value:w},n.createElement(TT.Provider,{value:ke},n.createElement(jT.Provider,{value:Ce},n.createElement(LT.Provider,{value:ye},d)),n.createElement(IT,{disabled:!1===(null==s?void 0:s.restoreFocus)})),n.createElement(r_,{...s,hiddenTextDescribedById:F}))}),AT=n.createContext(null),FT="button";function zT(){return n.useContext(jT)}const BT={timeout:25};function NT(e){let{animation:t,children:o}=e;const[r,i]=n.useState(null),[l,a]=n.useState(null),s=VE(o);return o||r||!s||i(s),AE(()=>{if(!l)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then(()=>{i(null)}):i(null)},[t,r,l]),n.createElement(n.Fragment,null,o,r?n.cloneElement(r,{ref:a}):null)}const VT={x:0,y:0,scaleX:1,scaleY:1};function HT(e){let{children:t}=e;return n.createElement(TT.Provider,{value:_T},n.createElement(LT.Provider,{value:VT},t))}const $T={position:"fixed",touchAction:"none"},WT=e=>ZE(e)?"transform 250ms ease":void 0,UT=n.forwardRef((e,t)=>{let{as:o,activatorEvent:r,adjustScale:i,children:l,className:a,rect:s,style:c,transform:d,transition:u=WT}=e;if(!s)return null;const p=i?d:{...d,scaleX:1,scaleY:1},h={...$T,width:s.width,height:s.height,top:s.top,left:s.left,transform:KE.Transform.toString(p),transformOrigin:i&&r?d_(r,s):void 0,transition:"function"==typeof u?u(r):u,...c};return n.createElement(o,{className:a,style:h,ref:t},l)}),qT={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:KE.Transform.toString(t)},{transform:KE.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:l}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(r[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&o.node.style.setProperty(e,t);return null!=l&&l.active&&n.node.classList.add(l.active),null!=l&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[e,t]of Object.entries(r))n.node.style.setProperty(e,t);null!=l&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};let ZT=0;const GT=n.memo(e=>{let{adjustScale:t=!1,children:o,dropAnimation:r,style:i,transition:l,modifiers:a,wrapperElement:s="div",className:c,zIndex:d=999}=e;const{activatorEvent:u,active:p,activeNodeRect:h,containerNodeRect:f,draggableNodes:m,droppableContainers:g,dragOverlay:x,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:v,windowRect:S}=zT(),C=n.useContext(LT),k=function(e){return n.useMemo(()=>{if(null!=e)return ZT++,ZT},[e])}(null==p?void 0:p.id),E=DT(a,{activatorEvent:u,active:p,activeNodeRect:h,containerNodeRect:f,draggingNodeRect:x.rect,over:y,overlayNodeRect:x.rect,scrollableAncestors:w,scrollableAncestorRects:v,transform:C,windowRect:S}),_=pT(h),T=function(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:r}=e;return FE((e,i)=>{if(null===t)return;const l=n.get(e);if(!l)return;const a=l.node.current;if(!a)return;const s=wT(i);if(!s)return;const{transform:c}=IE(i).getComputedStyle(i),d=v_(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:o,keyframes:r}={...qT,...e};return e=>{let{active:i,dragOverlay:l,transform:a,...s}=e;if(!t)return;const c=l.rect.left-i.rect.left,d=l.rect.top-i.rect.top,u={scaleX:1!==a.scaleX?i.rect.width*a.scaleX/l.rect.width:1,scaleY:1!==a.scaleY?i.rect.height*a.scaleY/l.rect.height:1},p={x:a.x-c,y:a.y-d,...u},h=r({...s,active:i,dragOverlay:l,transform:{initial:a,final:p}}),[f]=h,m=h[h.length-1];if(JSON.stringify(f)===JSON.stringify(m))return;const g=null==o?void 0:o({active:i,dragOverlay:l,...s}),x=l.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{x.onfinish=()=>{null==g||g(),e()}})}}(t);return z_(a,r.draggable.measure),u({active:{id:e,data:l.data,node:a,rect:r.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:i,rect:r.dragOverlay.measure(s)},droppableContainers:o,measuringConfiguration:r,transform:d})})}({config:r,draggableNodes:m,droppableContainers:g,measuringConfiguration:b}),j=_?x.setRef:void 0;return n.createElement(HT,null,n.createElement(NT,{animation:T},p&&k?n.createElement(UT,{key:k,id:p.id,ref:j,as:s,activatorEvent:u,adjustScale:t,className:c,transition:l,rect:_,style:{zIndex:d,...i},transform:E},o):null))});function KT(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function XT(e,t){return e.reduce((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e},Array(e.length))}function YT(e){return null!==e&&e>=0}const JT={scaleX:1,scaleY:1},QT=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:l}=e;const a=null!=(t=n[r])?t:o;if(!a)return null;const s=function(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];return o&&(r||i)?n<t?r?o.left-(r.left+r.width):i.left-(o.left+o.width):i?i.left-(o.left+o.width):o.left-(r.left+r.width):0}(n,l,r);if(l===r){const e=n[i];return e?{x:r<i?e.left+e.width-(a.left+a.width):e.left-a.left,y:0,...JT}:null}return l>r&&l<=i?{x:-a.width-s,y:0,...JT}:l<r&&l>=i?{x:a.width+s,y:0,...JT}:{x:0,y:0,...JT}},ej=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=KT(t,o,n),l=t[r],a=i[r];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},tj="Sortable",nj=n.createContext({activeIndex:-1,containerId:tj,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ej,disabled:{draggable:!1,droppable:!1}});function oj(e){let{children:t,id:o,items:r,strategy:i=ej,disabled:l=!1}=e;const{active:a,dragOverlay:s,droppableRects:c,over:d,measureDroppableContainers:u}=zT(),p=$E(tj,o),h=Boolean(null!==s.rect),f=n.useMemo(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),m=null!=a,g=a?f.indexOf(a.id):-1,x=d?f.indexOf(d.id):-1,y=n.useRef(f),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(f,y.current),w=-1!==x&&-1===g||b,v=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(l);AE(()=>{b&&m&&u(f)},[b,f,m,u]),n.useEffect(()=>{y.current=f},[f]);const S=n.useMemo(()=>({activeIndex:g,containerId:p,disabled:v,disableTransforms:w,items:f,overIndex:x,useDragOverlay:h,sortedRects:XT(f,c),strategy:i}),[g,p,v.draggable,v.droppable,w,f,x,c,h,i]);return n.createElement(nj.Provider,{value:S},t)}const rj=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return KT(n,o,r).indexOf(t)},ij=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:a,previousContainerId:s,transition:c}=e;return!(!c||!o||a!==i&&r===l||!n&&(l===r||t!==s))},lj={duration:200,easing:"ease"},aj="transform",sj=KE.Transition.toString({property:aj,duration:0,easing:"linear"}),cj={roleDescription:"sortable"};function dj(e){let{animateLayoutChanges:t=ij,attributes:o,disabled:r,data:i,getNewIndex:l=rj,id:a,strategy:s,resizeObserverConfig:c,transition:d=lj}=e;const{items:u,containerId:p,activeIndex:h,disabled:f,disableTransforms:m,sortedRects:g,overIndex:x,useDragOverlay:y,strategy:b}=n.useContext(nj),w=function(e,t){var n,o;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(r,f),v=u.indexOf(a),S=n.useMemo(()=>({sortable:{containerId:p,index:v,items:u},...i}),[p,i,v,u]),C=n.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:k,node:E,isOver:_,setNodeRef:T}=function(e){let{data:t,disabled:o=!1,id:r,resizeObserverConfig:i}=e;const l=$E("Droppable"),{active:a,dispatch:s,over:c,measureDroppableContainers:d}=n.useContext(TT),u=n.useRef({disabled:o}),p=n.useRef(!1),h=n.useRef(null),f=n.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:x}={...BT,...i},y=zE(null!=g?g:r),b=hT({callback:n.useCallback(()=>{p.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{d(Array.isArray(y.current)?y.current:[y.current]),f.current=null},x)):p.current=!0},[x]),disabled:m||!a}),w=n.useCallback((e,t)=>{b&&(t&&(b.unobserve(t),p.current=!1),e&&b.observe(e))},[b]),[v,S]=NE(w),C=zE(t);return n.useEffect(()=>{b&&v.current&&(b.disconnect(),p.current=!1,b.observe(v.current))},[v,b]),n.useEffect(()=>(s({type:i_.RegisterDroppable,element:{id:r,key:l,disabled:o,node:v,rect:h,data:C}}),()=>s({type:i_.UnregisterDroppable,key:l,id:r})),[r]),n.useEffect(()=>{o!==u.current.disabled&&(s({type:i_.SetDroppableDisabled,id:r,key:l,disabled:o}),u.current.disabled=o)},[r,l,o,s]),{active:a,rect:h,isOver:(null==c?void 0:c.id)===r,node:v,over:c,setNodeRef:S}}({id:a,data:S,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:j,activatorEvent:M,activeNodeRect:R,attributes:I,setNodeRef:D,listeners:L,isDragging:O,over:P,setActivatorNodeRef:A,transform:F}=function(e){let{id:t,data:o,disabled:r=!1,attributes:i}=e;const l=$E("Draggable"),{activators:a,activatorEvent:s,active:c,activeNodeRect:d,ariaDescribedById:u,draggableNodes:p,over:h}=n.useContext(TT),{role:f=FT,roleDescription:m="draggable",tabIndex:g=0}=null!=i?i:{},x=(null==c?void 0:c.id)===t,y=n.useContext(x?LT:AT),[b,w]=NE(),[v,S]=NE(),C=function(e,t){return n.useMemo(()=>e.reduce((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e},{}),[e,t])}(a,t),k=zE(o);return AE(()=>(p.set(t,{id:t,key:l,node:b,activatorNode:v,data:k}),()=>{const e=p.get(t);e&&e.key===l&&p.delete(t)}),[p,t]),{active:c,activatorEvent:s,activeNodeRect:d,attributes:n.useMemo(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!x||f!==FT)||void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,f,g,x,m,u.draggable]),isDragging:x,listeners:r?void 0:C,node:b,over:h,setNodeRef:w,setActivatorNodeRef:S,transform:y}}({id:a,data:S,attributes:{...cj,...o},disabled:w.draggable}),z=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(()=>e=>{t.forEach(t=>t(e))},t)}(T,D),B=Boolean(j),N=B&&!m&&YT(h)&&YT(x),V=!y&&O,H=V&&N?F:null,$=N?null!=H?H:(null!=s?s:b)({rects:g,activeNodeRect:R,activeIndex:h,overIndex:x,index:v}):null,W=YT(h)&&YT(x)?l({id:a,items:u,activeIndex:h,overIndex:x}):v,U=null==j?void 0:j.id,q=n.useRef({activeId:U,items:u,newIndex:W,containerId:p}),Z=u!==q.current.items,G=t({active:j,containerId:p,isDragging:O,isSorting:B,id:a,index:v,items:u,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:d,wasDragging:null!=q.current.activeId}),K=function(e){let{disabled:t,index:o,node:r,rect:i}=e;const[l,a]=n.useState(null),s=n.useRef(o);return AE(()=>{if(!t&&o!==s.current&&r.current){const e=i.current;if(e){const t=C_(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}o!==s.current&&(s.current=o)},[t,o,r,i]),n.useEffect(()=>{l&&a(null)},[l]),l}({disabled:!G,index:v,node:E,rect:k});return n.useEffect(()=>{B&&q.current.newIndex!==W&&(q.current.newIndex=W),p!==q.current.containerId&&(q.current.containerId=p),u!==q.current.items&&(q.current.items=u)},[B,W,p,u]),n.useEffect(()=>{if(U===q.current.activeId)return;if(null!=U&&null==q.current.activeId)return void(q.current.activeId=U);const e=setTimeout(()=>{q.current.activeId=U},50);return()=>clearTimeout(e)},[U]),{active:j,activeIndex:h,attributes:I,data:S,rect:k,index:v,newIndex:W,items:u,isOver:_,isSorting:B,isDragging:O,listeners:L,node:E,overIndex:x,over:P,setNodeRef:z,setActivatorNodeRef:A,setDroppableNodeRef:T,setDraggableNodeRef:D,transform:null!=K?K:$,transition:K||Z&&q.current.newIndex===v?sj:V&&!ZE(M)||!d?void 0:B||G?KE.Transition.toString({...d,property:aj}):void 0}}function uj(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const pj=[W_.Down,W_.Right,W_.Up,W_.Left],hj=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:a}}=t;if(pj.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=r.get(n.id);if(i)switch(e.code){case W_.Down:o.top<i.top&&t.push(n);break;case W_.Up:o.top>i.top&&t.push(n);break;case W_.Left:o.left>i.left&&t.push(n);break;case W_.Right:o.left<i.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=h_(t),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=h_(o),l=r.reduce((e,t,o)=>e+c_(n[o],t),0),a=Number((l/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(u_)})({collisionRect:o,droppableRects:r,droppableContainers:t});let c=f_(s,"id");if(c===(null==l?void 0:l.id)&&s.length>1&&(c=s[1].id),null!=c){const e=i.get(n.id),t=i.get(c),l=t?r.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&l&&e&&t){const n=E_(s).some((e,t)=>a[t]!==e),r=fj(e,t),i=function(e,t){return!(!uj(e)||!uj(t))&&(!!fj(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index)}(e,t),c=n||!r?{x:0,y:0}:{x:i?o.width-l.width:0,y:i?o.height-l.height:0},d={x:l.left,y:l.top};return c.x&&c.y?d:qE(d,c)}}}};function fj(e,t){return!(!uj(e)||!uj(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const mj=e=>{let{transform:t}=e;return{...t,y:0}},gj=n.memo(n.forwardRef((e,n)=>{const{children:o,style:r,className:i,index:l,editing:a,editable:s,selectedIndex:c,background:d,activeColor:u,borderColor:p,borderWidth:h,dragging:f,...m}=e;return t.jsxs("div",{ref:n,className:vk(i),style:{...r,display:"flex",flexDirection:"column",background:c===l?"white":d,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===l?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...m,children:[t.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[t.jsx("div",{style:{marginLeft:c===l?"0px":"-1px",marginTop:c===l?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),o,c===l?t.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):t.jsx(t.Fragment,{})]}),t.jsx("div",{style:{flex:"1 1 100%",background:c===l&&u?u?.toCSS():"none",minHeight:"2px"}})]})})),xj={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"},yj=n.memo(n.forwardRef(({color:e,dragOverlay:o,dragging:r,disabled:i,fadeIn:l,handle:a,height:s,index:c,listeners:d,onRemove:u,renderItem:p,sorting:h,style:f,transition:m,transform:g,value:x,wrapperStyle:y,...b},w)=>{n.useEffect(()=>{if(o)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[o]);const v=p?p({dragOverlay:Boolean(o),dragging:Boolean(r),sorting:Boolean(h),index:c,fadeIn:Boolean(l),listeners:d,ref:w,style:f,transform:g,transition:m,value:x}):t.jsx(t.Fragment,{children:x});return t.jsx("div",{className:vk("tab-item",xj.Wrapper,l&&xj.fadeIn,h&&xj.sorting,o&&xj.dragOverlay),style:{...y,transition:[m,y?.transition].filter(Boolean).join(", "),"--translate-x":g?`${Math.round(g.x)}px`:void 0,"--translate-y":g?`${Math.round(g.y)}px`:void 0,"--scale-x":g?.scaleX?`${g.scaleX}`:void 0,"--scale-y":g?.scaleY?`${g.scaleY}`:void 0,"--index":c},ref:w,children:t.jsx("div",{className:vk(xj.Item,r&&xj.dragging,a&&xj.withHandle,o&&xj.dragOverlay,i&&xj.disabled,e&&xj.color,"dragging"),style:f,"data-cypress":"draggable-item",...a?void 0:d,...b,tabIndex:a?void 0:-1,children:v})})})),bj={Row:"_Row_1kr10_1"},wj=n.memo(n.forwardRef(({children:e,horizontal:n,style:o},r)=>t.jsx("div",{ref:r,style:{...o},className:vk(bj.Row,n&&bj.horizontal),children:e}))),vj={...qT},Sj=n.memo(n.forwardRef((e,o)=>{const{className:r,activationConstraint:i,animateLayoutChanges:a,adjustScale:s=!1,collisionDetection:c=g_,coordinateGetter:d=hj,dropAnimation:u=vj,getItemStyles:p=()=>({}),getNewIndex:h,handle:f=!1,items:m,onMove:g,isDisabled:x=()=>!1,measuring:y,modifiers:b,renderItem:w,renderDivider:v,reorderItems:S=KT,strategy:C=ej,style:k,useDragOverlay:E=!0,onDragStart:_,wrapperStyle:T=()=>({})}=e,[j,M]=n.useState(()=>m);n.useEffect(()=>{M(m)},[m]);const[R,I]=n.useState(null),D=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(()=>[...t].filter(e=>null!=e),[...t])}(a_(oT,{activationConstraint:i}),a_(iT,{activationConstraint:i}),a_(K_,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:d})),L=j.indexOf.bind(j),O=R?L(R):-1,P=[];j.map((e,n)=>{P.push(t.jsx(Cj,{id:e,handle:f,index:n,style:p,wrapperStyle:T,disabled:x(e),renderItem:w,animateLayoutChanges:a,useDragOverlay:E,getNewIndex:h},e+"-"+n));const o=v?.({key:"divider-"+n});o&&P.push(o)});const{getPortalContainer:A}=(n.useEffect(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return Xt++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),Xt--,Xt<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),Xt=0)}},[]),{getPortalContainer:Kt});return t.jsxs(PT,{sensors:D,collisionDetection:c,onDragStart:e=>{const{active:t}=e;t&&(_?.(e),I(t.id))},autoScroll:{canScroll:e=>!0},onDragEnd:e=>{if(I(null),e.over){const t=L(e.over.id);O!==t&&(M(e=>S(e,O,t)),g?.(O,t))}},onDragCancel:()=>{I(null)},measuring:y,modifiers:b,children:[t.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...k},className:vk(r,xj.Wrapper),children:t.jsx(oj,{items:j,strategy:C,children:t.jsx(wj,{ref:o,children:P})})}),E?l.createPortal(t.jsx(GT,{adjustScale:s,dropAnimation:u,children:R?t.jsx(yj,{value:j[O],handle:f,renderItem:w,wrapperStyle:T({index:O,isDragging:!0,id:j[O]}),index:O,dragging:!0,style:p({id:j[O],index:O,isSorting:null!==R,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),A()):null]})}));function Cj({disabled:e,animateLayoutChanges:n,getNewIndex:o,handle:r,id:i,index:l,onRemove:a,style:s,renderItem:c,useDragOverlay:d,wrapperStyle:u}){const{attributes:p,isDragging:h,isSorting:f,listeners:m,overIndex:g,setNodeRef:x,transform:y,transition:b}=dj({id:i,animateLayoutChanges:n,disabled:e,getNewIndex:o});return t.jsx(yj,{ref:x,value:i,disabled:e,dragging:h,sorting:f,handle:r,renderItem:c,index:l,style:s({index:l,id:i,isDragging:h,isSorting:f,overIndex:g}),onRemove:a?()=>a(i):void 0,transform:y,transition:b,wrapperStyle:u({index:l,isDragging:h,id:i}),listeners:m,"data-index":l,"data-id":i,dragOverlay:!d&&h,...p})}const kj=new e.Color("rgb(33, 115, 70)"),Ej="#eee",_j=e=>t.jsx(gj,{...e}),Tj=n.memo(n.forwardRef((e,o)=>{const{children:r,style:i,className:l,selectedTabIndex:a=0,tabNames:s=[],onSelectedTabIndexChange:c,onTabNameChange:d,onTabMove:u,createScrollStartButton:p=ot,createScrollEndButton:h=rt,createScrollEdgeButton:f=it,createTabButton:m=_j,createTabDivider:g,editLabelProps:x,disabled:y=!1,disableDrag:b=!1,background:w="white",activeColor:v=kj,borderColor:S=Ej,borderWidth:C=1}=e,[k,E]=n.useState(a),[_,T]=n.useState(s),j=n.useCallback(e=>{const t=P.current?.[e]?.closest(".tab-item")??P.current?.[e];t&&H.current?.scrollTo({top:t.offsetTop,left:t.offsetLeft,behavior:"smooth"})},[]);n.useEffect(()=>{j(a)},[a]);const M=n.useCallback((e,t)=>{t!==k&&(E(t),c?.(t)),j(t)},[c,k]),R=n.useCallback((e,t)=>{u?.(e,t)},[u]),I=n.useRef(null),[D,L]=n.useState(-1),O=n.useCallback((e,t)=>{d?.(e,t)},[d]);n.useLayoutEffect(()=>{E(a)},[a]),n.useLayoutEffect(()=>{T(s)},[s]);const P=n.useRef([]),A=n.useRef(null);n.useImperativeHandle(o,()=>Object.assign({startEdit(e){P.current?.[e]?.startEdit()},cancel(e){P.current?.[e]?.cancel()}},A.current),[k,D]);const F=n.useCallback(({value:e,index:n,dragging:o})=>{const{style:r,maxLength:i,...l}=x||{},a=t.jsx(TE,{ref:e=>{P.current[n]=e},value:e,disabled:y,maxLength:i,style:{color:k===n&&v?v?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...r},styleHover:{},onSubmit:e=>(I.current=!1,L(-1),O(n,e)),onCancel:()=>{I.current=!1,L(-1)},onChange:e=>{I.current=!0,L(n)},...l});return m({onClick:e=>M(e,n),value:e,index:n,editing:D===n&&I.current,editable:!0,disabled:y,selectedIndex:k,background:w,activeColor:v,borderColor:S,borderWidth:C,dragging:o,children:a})},[k,O,M,x,y,D,m]),[z,{width:B}]=ck(),[N,{width:V}]=ck(),H=n.useRef(null),[$,W]=n.useState({left:0,top:0,width:0,height:0}),[U,q]=n.useState(null);n.useEffect(()=>{null!==U&&H.current&&H.current.scrollTo({left:U,behavior:"smooth"})},[U]);const Z=n.useCallback((e,t=!1)=>{if(!H.current)return 0;let n=H.current.firstChild.getBoundingClientRect(),o=H.current.firstChild.firstChild.children,r=0;return r=t?0:at.getScrollTo(e,n.left,o,!0,Math.max(0,e-200)),q(r),Math.max(0,r)},[]),G=n.useCallback((e,t=!1)=>{if(!H.current)return 0;let n=H.current.firstChild.getBoundingClientRect(),o=H.current.firstChild.firstChild.children,r=0;const i=Math.ceil(V-B);return r=t?i:at.getScrollTo(e,n.left,o,!1,Math.max(0,e+200)),q(r),Math.min(i,r)},[V,B]),K=n.useRef(null),X=n.useRef(null),Y=n.useCallback(()=>{X.current&&(clearTimeout(X.current),X.current=null,K.current=null)},[]),J=n.useCallback((e,t,n=260)=>{K.current=e,X.current=setTimeout(()=>{const n=t?Z(K.current||e):G(K.current||e);n!==K.current?J(n,t,120):Y()},n)},[Z,G,Y]);n.useEffect(()=>()=>Y(),[Y]);const Q=n.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor($.left)<=0||0===Math.floor(V-B),orientation:Ge.Horizontal,onMouseUp:Y,onMouseLeave:Y,onMouseDown:()=>J(H.current.scrollLeft,!0),onClick:e=>Z(Math.min(H.current.scrollLeft,U??Number.MAX_SAFE_INTEGER),e.ctrlKey)}),[$,U,V,B]),ee=n.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(V-B)<=Math.ceil($.left),orientation:Ge.Horizontal,onMouseUp:Y,onMouseLeave:Y,onMouseDown:()=>J(H.current.scrollLeft,!1),onClick:e=>G(Math.max(H.current.scrollLeft,U??0),e.ctrlKey)}),[$,U,V,B]),te=n.useMemo(()=>t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{minWidth:"16px"}}),r,f?.(Q)]}),[Q,ee,p,h,r,f]);return t.jsxs("div",{style:{...i,display:"flex",alignItems:"stretch"},className:vk("_TabStrip_3x0dp_1",l),ref:A,children:[t.jsx("div",{style:{borderTop:`solid ${S} ${C}px`,position:"absolute",width:"100%"}}),t.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:te}),t.jsx("div",{className:"Tabs",ref:z,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:t.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:H,onScroll:e=>{W({left:e.target.scrollLeft,top:e.target.scrollTop,width:e.target.scrollWidth,height:e.target.scrollHeight})},children:t.jsx(Sj,{isDisabled:e=>y||b,items:_,strategy:QT,modifiers:[mj],ref:N,renderItem:F,renderDivider:g,onMove:R,activationConstraint:{distance:15}})})}),t.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:f(ee)})]})}));Tj.displayName="TabStrip";const jj=e=>t.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[t.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"}),t.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"}),t.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"}),t.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"})]}),Mj=n.createContext(null),Rj=()=>{const t=n.useContext(Mj),[o]=n.useState(()=>new e.ThemeCollection);return n.useMemo(()=>t||o,[t])},Ij=n.lazy(()=>Promise.resolve().then(()=>require("./xp2ZII-PuLk9tHK3.cjs"))),Dj={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:"\t})]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},Lj=async(e,t,n)=>{const o=e.getModel();if(!o)return;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),l=await i.getNavigationTree(o.uri.toString()),a=e.getPosition();let s={...a};s.lineNumber=1,s.column=1;let c=!1;for(let e=a.lineNumber;e>=1;e--)if(""===o.getLineContent(e).trim()){const t=Aj(l,o.getOffsetAt({lineNumber:e,column:1}),"function");if(!t||Fj(t)){c=!0,s.lineNumber=e+1;break}{const n=t.spans[0].start;e=o.getPositionAt(n).lineNumber,s.lineNumber=e}}let d=n,u=!1;!c&&!d.startsWith("\n")&&s.lineNumber>1&&(d="\n"+d,u=!0);let p=!1;o.getLineCount()>1&&(d.endsWith("\n\n")||(d+="\n\n",p=!0));const h=[{range:new t.Range(s.lineNumber,s.column,s.lineNumber,s.column),text:`${d}`}];let f=null;o.pushEditOperations([],h,e=>(f=e[0].range,u&&f.startLineNumber++,p&&f.endLineNumber--,[new t.Selection(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn)])),e.setSelection({startLineNumber:f.endLineNumber,startColumn:f.endColumn,endLineNumber:f.startLineNumber,endColumn:f.startColumn})};function Oj(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 Pj(e,t,n,o,r=[]){if("function"===o.kind&&"export"===o.kindModifiers){const t=o.spans[0].start,i=e.getPositionAt(t);r.push({name:o.text,type:Oj(n,o),lineNumber:i.lineNumber})}if(o.childItems)for(const i of o.childItems)Pj(e,t,n,i,r);return r}function Aj(e,t,n="function",o){const r=e.spans;for(let i=0;i<r.length;i++){const l=r[i];if(l.start<=t&&t<l.start+l.length){if(e.kind===n&&(!o||e.kindModifiers===o))return e;for(const r of e.childItems||[]){const e=Aj(r,t,n,o);if(e)return e}}return null}}function Fj(e){return"comment"===e.kind}const zj=n.memo(n.forwardRef((e,o)=>{const{className:r,style:i,commands:l,readOnly:a=!1,onClose:s,darkMode:c,loadingPanel:d,autoFocus:u=!0,onStatusChange:p,...h}=e,f=n.useRef(null),m=nt(s,[s]),g=n.useRef(!1),x=n.useMemo(()=>({contains(e){if(!f.current)return;const t=f.current.editor;return t&&t.getDomNode()?.contains(e)},focus(){if(!f.current)return;const e=f.current.editor;return e&&e.getDomNode()?.focus()}}),[]),y=n.useMemo(()=>[new Ln("help",x,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),b=n.useMemo(()=>{let e=null;const t=()=>x;return e=l?l.createChildGroup(t,"scriptEditor",!1):new Pn(t,"scriptEditor"),e.addCommands(y,!0),e},[l,y]),w=Vn(b,["executeSelectedScript"])[0],v=w?.context(),S=nt(e=>{w?.execute(e)},[w]),C=n.useRef(""),[k,E]=n.useState(!1),_=nt(async()=>{if(!f.current)return null;const e=f.current,t=e.editor;if(!t)return null;const n=e.monaco,o=await(async(e,t,n="export")=>{const o=e.getModel();if(!o)return null;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),l=await i.getNavigationTree(o.uri.toString());let a=null,s=e.getSelection();const c=s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn?o.getLineCount():Math.min(s.endLineNumber,o.getLineCount());for(let e=s.startLineNumber;!a&&e<=c;e++){const t=Aj(l,o.getOffsetAt({lineNumber:e,column:1}),"function",n);t&&(a=t.text)}return a})(t,n);return p?.({message:(o??"").toUpperCase()}),o?{source:t.getValue(),name:o}:null},[p]),T=nt(async(e,t,n)=>{const o=await v.getScripts().createModule({source:n?.getValue(),declarationsOnly:!0}),r=o?o.getFunctions().search():he.EmptyArray;o&&(async function(e,t){const n=[];for(let o=1;o<e.getLineCount()+1;o++){const r={startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:e.getLineLength(o)+1},i=e.getValueInRange(r).indexOf("modelt");-1!==i&&n.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:t.MarkerSeverity.Hint,startLineNumber:r.startLineNumber,startColumn:i+1,endLineNumber:r.startLineNumber,endColumn:i+5})}t.editor.setModelMarkers(e,"owner",n)}(e,t),async function(e,t,n,o){const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(e.uri),l=await i.getNavigationTree(e.uri.toString()),a=Pj(e,t,o,l).map(e=>{let n=null,o=null;return"formula"===e.type?(n="formula.margin-icon",o="Formula"):"macro"===e.type?(n="macro.margin-icon",o="Macro"):"autoRun"===e.type&&(n="autorun.margin-icon",o="Auto Run"),{range:new t.Range(e.lineNumber,1,e.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:n,glyphMarginHoverMessage:o,stickiness:t.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});I.current&&I.current.clear(),I.current=n.createDecorationsCollection(a)}(e,t,n,r))},[v]),j=nt(he.debounce(T,580),[]),M=nt(async(e=void 0)=>{if(!f.current||!v)return;const t=f.current.editor.getPosition(),n={cursor:t?t.toString():""};void 0!==e&&(n.message=e),p?.(n);const o=_();v.setSelectedFunction(o)},[v,p]);n.useEffect(()=>{if(!v)return;const e={insertSnippet:e=>{f.current?.editor&&(k?Lj(f.current.editor,f.current.monaco,e):C.current=e)}};v.setEditor(e),v.setSelectedFunction(_());const t=v.addContainerListener({onBeforeSave:async()=>{if(!f.current?.editor||!v)return;const e=f.current.editor,t=v?.getScripts().getModules().getByName("scripting"),n=t?.getSource(),o=e.getValue();if((n?.length??0)===o.length&&n===o)return;await v.saveSource(e.getValue());const r=(n?.length??0)!==o.length||n!==o;p?.({dirty:r})},onReadonlyChange(){},onScriptChange:async()=>{if(!f.current?.editor||!v)return;const e=f.current.editor,t=v.getScripts().getModules().search()[0]?.getSource()??"";e.setValue(t)}});return()=>{t(),v.setSelectedFunction(null),v.setEditor(null)}},[v,k]),n.useEffect(()=>()=>{if(!f.current?.editor)return;const e=f.current.editor;v?.saveSource(e.getValue())},[]);const R=nt(e=>{const t=f.current;if(!t)return!1;const n=t.editor;return!!n&&(n.focus(),!0)},[]),I=n.useRef(null),D=nt((e,t)=>{f.current={monaco:t,editor:e},E(!0),M("Loading Types");const n=v.getScripts().getModules().search()[0]?.getSource()??"";e.setValue(n),Promise.resolve().then(()=>require("./BbvcxaJzfy7H6xfa.cjs")).then(e=>e.c).then(n=>{M(""),n.AutoTypings.create(e,{shareCache:!0,monaco:t,onError:e=>{"Not implemented yet"===e&&(e="Compile Errors"),console.warn("Error compiling types",e)}}).then(async n=>{const o=e.getModel();j(o,t,e)})}),e.addCommand("executeScript",function(e,...t){t?.[0]&&S({functionName:t?.[0]})},""),e.addAction({id:"executeScript",label:"Execute",keybindings:[t.KeyCode.F8],run:async e=>{const t=_();v.setSelectedFunction(t);const n=await t;S(n)}}),e.addAction({id:"saveScript",label:"Save Script",keybindings:[t.KeyMod.CtrlCmd|t.KeyCode.KeyS],run:t=>{v?.saveSource(e.getValue()).then(()=>{const t=v?.getScripts().getModules().getByName("scripting"),n=t?.getSource(),o=e.getValue(),r=(n?.length??0)!==o.length||n!==o;p?.({dirty:r})})}}),e.onMouseDown(async n=>{if(n.target.type===t.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const r=n.target.position.lineNumber,i=await t.languages.typescript.getTypeScriptWorker(),l=await i(o.uri),a=await l.getNavigationTree(o.uri.toString()),s=e?.getValue(),c=(await(v?.saveSource(s))).getFunctions().search(),d=Pj(o,t,c,a).find(e=>e.lineNumber===r);if(d){const e=n.event.browserEvent.button;0===e?"macro"===d.type||"autoRun"===d.type?S({functionName:d.name}):"formula"===d.type&&v.quickInsertFunction?.(d.name):2===e&&(console.log("Context menu for function:",d.name),n.event.browserEvent.preventDefault())}}}),e.onDidChangeModelContent(()=>{const n=e.getModel();j(n,t,e)});const o=e.getModel();!function(e,t){t.languages.registerInlayHintsProvider("typescript",{provideInlayHints(e,n,o){const r=[];for(let n=1;n<e.getLineCount()+1;n++){const o={startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:e.getLineLength(n)+1},i="hint",l=e.getValueInRange(o).indexOf("hint");-1!==l&&r.push({kind:t.languages.InlayHintKind.Type,position:{lineNumber:o.startLineNumber,column:l+i.length+1},label:"[hint]"})}return{hints:r,dispose:()=>{}}}})}(0,t),o.onDidChangeContent(t=>{const n=v?.getScripts().getModules().getByName("scripting"),o=n?.getSource(),r=e.getValue(),i=(o?.length??0)!==r.length||o!==r;p?.({dirty:i})}),e.onDidChangeCursorPosition(e=>{M()})},[v,p]),L=n.useMemo(()=>k?null:d||t.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[k,d]),O=n.useMemo(()=>{const e=v?.getScripts().getModules().getByName("scripting")?.getSource()??"";return t.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[t.jsx(n.Suspense,{children:t.jsx(Ij,{theme:c?"extended-dark":"extended",options:{...Dj,fixedOverflowWidgets:!0,readOnly:a},language:"typescript",value:e,onValidate:e=>{let t=!1;for(let n=0;!t&&n<e?.length;n++)8===e[n].severity&&(t=!0)},beforeMount:e=>{e.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),e.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),e.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let t=!1;try{const n=await(async()=>{const e=await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts");return await e.text()})(),o=e.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),r=e.editor.createModel(n,"typescript",o);e.editor.setModelMarkers(r,"default",[]),t=!0}catch(e){console.warn("cant load types",e)}e.languages.registerLinkProvider("*",{provideLinks:(t,n)=>{const o=[],r={links:o},i=t.getLinesContent();for(let n=1;n<=i.length;n++){const r=i[n-1],l=e.editor.tokenize(r,"typescript");for(let i=0;i<l[0].length;i++){const a=l[0]?.[i];if(a&&a.type.startsWith("string")){let s=a.offset,c=l[0]?.[i+1]?.offset??r.length,d=new e.Range(n,s+1,n,c+1),u=t.getValueInRange(d);const p=u[0];"`"!==p&&"'"!==p&&'"'!==p||(s++,u=u.substring(1));const h=u[u.length-1];"`"!==h&&"'"!==h&&'"'!==h||(s++,u=u.substring(0,u.length-1));try{v.getRanges(u)&&o.push({range:{endColumn:c,endLineNumber:n,startColumn:s,startLineNumber:n},tooltip:`Goto range '${u}'`,url:`/range/${u}`})}catch(e){console.warn(e)}}}}return r}}),e.editor.registerLinkOpener({open(e){if(e?.path?.startsWith("/range/")){try{v.getRanges(e.path.substring(7))?.select()}catch(e){console.warn("invalid range",e)}return!0}return!1}});const n=e.languages.typescript.typescriptDefaults.getCompilerOptions();e.languages.typescript.typescriptDefaults.setCompilerOptions({...n,target:e.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:e.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),C.current&&(await Lj(f.current.editor,f.current.monaco,C.current),C.current=null),g.current&&requestAnimationFrame(async()=>{g.current&&e.editor.focus()}),e.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),E(!0)})()},onMount:D})}),L]})},[v,b,a,L,c]),P=Nt(o,()=>({isScriptEditorElement:()=>!0,focus:e=>{R(e)},close:()=>{m?.()},getEditor:()=>v?.getEditor()}),[v]);return n.useEffect(()=>(u&&requestAnimationFrame(()=>{R()}),()=>{f.current?.editor&&requestAnimationFrame(()=>{P.current?.contains(document.activeElement)&&R()})}),[]),t.jsx("div",{className:vk("script-editor","_script-editor_iy654_5",r),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...i},ref:P,...h,children:O})})),Bj={Preset:"preset",Custom:"custom"},Nj={Start:"start",End:"end"},Vj={},Hj=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(Vj[r])return Vj[r];const i=((e,t,n,o)=>{if("undefined"==typeof document&&!o)return null;const r=o?new o:document.createElement("canvas");r.width=2*n,r.height=2*n;const i=r.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null})(e,t,n,o);return Vj[r]=i,i},$j={},Wj=n.memo(e=>{const{className:o,style:r=zt.EmptyCssProperties,white:i="transparent",grey:l="grey",size:a=8,borderRadius:s,boxShadow:c,renderers:d=$j,children:u,...p}=e,h=u,f=n.useMemo(()=>Object.assign({borderRadius:s,boxShadow:c,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${Hj(i,l,a,d?.canvas)}) center left`},r),[i,l,a,d]);return n.isValidElement(u)?n.cloneElement(u,{...h.props}):t.jsx("div",{style:f,...p})}),Uj=n.memo(e=>{const{selectedColor:o,onSelectColor:r,onPreviewColor:i,onClick:l,onKeyDown:a,onMouseOver:s,onMouseLeave:c,onFocus:d,style:u=zt.EmptyCssProperties,children:p,alphaWhite:h,alphaGrey:f,darkMode:m,alphaCheckSize:g=7,...x}=e;if(!o)throw new Error("a selectedColor is required");const y=n.useCallback(e=>{l?.(e),e.isDefaultPrevented()||(e.ctrlKey?i?.(o.toRGBA()):r?.(o.toRGBA()))},[r,i,l,o]),b=n.useCallback(e=>{s?.(e),e.isDefaultPrevented()||i?.(o.toRGBA())},[i,s,o]),w=n.useCallback(e=>{c?.(e),e.isDefaultPrevented()},[i,c]),v=n.useCallback(e=>{d?.(e),e.isDefaultPrevented()||i?.(o.toRGBA())},[i,d,o]),S=n.useCallback(e=>{a?.(e),e.isDefaultPrevented()||e.keyCode===qe.Enter&&r?.(o.toRGBA())},[r,a,o]),C=n.useMemo(()=>1===o.toRGBA().alpha?null:t.jsx(Wj,{size:g,white:h,grey:f,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[h,f,o]);return t.jsxs("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...u},tabIndex:0,...x,onClick:y,onKeyDown:S,onMouseOver:b,onMouseLeave:w,onFocus:v,children:[C,t.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:o.toCSS(m)},children:p})]})}),qj=n.memo(o=>{const{schemeColorLookup:r,selectedColor:i,previewColor:l,colorDef:a,onSelectColorDef:s,onPreviewColorDef:c,swatchProps:d,defaultButtonSize:u=24,isLarge:p=!1,compareRGB:h=!1,darkMode:f=!1,...m}=o,g=new e.Color({val:a.definition.val,adjs:a.definition.adjs},e=>r(e)),x=h?g.toRGBA().toString():g.toString(),y=i&&(h?i.toRGBA().toString():i.toString())===x,b=l&&(h?l.toRGBA().toString():l.toString())===x,w=[];w.push({[e.IColor.AdjustmentType.Inv]:!0}),w.push({[e.IColor.AdjustmentType.Alpha]:100});const v=g.adjust(w),S=n.useCallback(()=>{s?.(a)},[s,a]),C=n.useCallback(e=>{c?.(e?a:null)},[c,a]);return t.jsx(Mp,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:a.description,placement:"bottom-start",children:t.jsx("div",{style:{width:u*(p?1.2:1)+"px",height:u*(p?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...m,children:t.jsxs(Uj,{selectedColor:g,title:null,onSelectColor:S,onPreviewColor:C,alphaCheckSize:p?9:void 0,darkMode:f,...d,children:[t.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:v.toRGBA(f).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:y?"1":"0"}}),t.jsx("div",{style:{position:"absolute",width:.33*u*(p?1.2:1)+"px",height:.33*u*(p?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:v.toRGBA(f).toString(),borderRadius:"50%",opacity:b?"1":"0"}})]})})})}),Zj=n.memo(e=>{const{title:r,schemeColorLookup:i,colorDefs:l,selectedColor:a,previewColor:s,onSelectColorDef:c,onPreviewColorDef:d,style:u=zt.EmptyCssProperties,compareRGB:p=!1,darkMode:h,swatchProps:f,...m}=e;let g;if(Array.isArray(l[0]))g=l;else{g=[];for(let e=0;e<l.length;e++)g.push([l[e]])}const x=n.useCallback(e=>{c?.(e)},[c]),y=n.useCallback(e=>{d?.(e)},[d]),b=n.useMemo(()=>{let e=[];for(let n=0;n<g.length;n++){let r=[],l=g[n];for(let e=0;e<l.length;e++){let o=l[e];r.push(t.jsx(qj,{schemeColorLookup:i,colorDef:o,selectedColor:a,previewColor:s,onSelectColorDef:x,onPreviewColorDef:y,swatchProps:f,compareRGB:p,darkMode:h},n+" "+e))}let c=t.jsx(o.Box,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:e=>e.shadows[2],borderRadius:"2px",overflow:"hidden"},children:r},""+n);e.push(c)}return e},[g,a,s,x,y]),w=n.useMemo(()=>r?t.jsx(o.Typography,{noWrap:!0,component:"div",sx:{display:"flex",flexShrink:"0",paddingLeft:"6px",paddingBottom:"4px",paddingTop:"0px",userSelect:"none",color:e=>e.palette.text.secondary},children:r}):null,[r]);return t.jsxs(o.Box,{style:{...u},children:[w,t.jsx(o.Box,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...m,children:b})]})}),Gj=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),Kj=(t,n,o,r,i,l)=>{const a=Gj(t,n);r?.push(a);const s=new e.Color({val:a.definition.val,adjs:a.definition.adjs},o),c=s.toString();i?.set(c,s);const d=s.toRGBA().toString();l?.set(d,s)},Xj=n.lazy(()=>Promise.resolve().then(()=>require("./BE6O6K7i1mHBC3et.cjs"))),Yj=n.memo(n.forwardRef((i,l)=>{const{selectedColor:a=null,previewColor:s=i.selectedColor??null,recentColors:c,schemeLookup:d,disableAlpha:u=!1,previewDebounceTime:p=100,initialPanelType:h,defaultButtonSize:f=24,width:m,onElementLoad:g,onDone:x,onEyeDropStart:y,onEyeDropStop:b,onPreviewColor:w,onPreviewColorImmediate:v,onSelectColor:S,autoColor:C,autoColorLabel:k="Automatic",autoColorPosition:E=Nj.Start,compareRGB:_=!1,darkMode:T=!1,...j}=i,M=s||a,R=nt(w,[w]),I=nt(v,[v]),D=nt(S,[S]),L=nt(y,[y]),O=nt(b,[b]),[P,A]=n.useState(!1),F=sb(),z=n.useMemo(()=>d||e.Color.getDefaultSchemeLookup(),[d]),B=n.useMemo(()=>{const t=new Map,n=new Map,o=[];Kj("Primary Background","bg1",z,o,t,n),Kj("Primary Text","tx1",z,o,t,n),Kj("Secondary Background","bg2",z,o,t,n),Kj("Secondary Text","tx2",z,o,t,n),Kj("Accent 1","accent1",z,o,t,n),Kj("Accent 2","accent2",z,o,t,n),Kj("Accent 3","accent3",z,o,t,n),Kj("Accent 4","accent4",z,o,t,n),Kj("Accent 5","accent5",z,o,t,n),Kj("Accent 6","accent6",z,o,t,n);const r=e.ITheme.buildPalette(o,z,t,n),i=[];if(Kj("Dark Red","C00000",z,i,t,n),Kj("Red","FF0000",z,i,t,n),Kj("Orange","FFC000",z,i,t,n),Kj("Yellow","FFFF00",z,i,t,n),Kj("Light Green","92D050",z,i,t,n),Kj("Green","00B050",z,i,t,n),Kj("Light Blue","00B0F0",z,i,t,n),Kj("Blue","0070C0",z,i,t,n),Kj("Dark Blue","002060",z,i,t,n),u?Kj("Purple Is A Fruit","7030A0",z,i,t,n):Kj("Transparent","00000000",z,i,t,n),C){const e=C.toString();t.set(e,C)}const l=new Map,a="function"==typeof c?c():c,s=[];for(let e=0;a&&e<a.length;e++){const t=a[e].toString();l.set(t,a[e]),s.push({description:"Recent "+(e+1),definition:{val:a[e].toString()}})}return{primaryColors:o,modifiedPresets:r,standardColors:i,recentColorsLimited:s,mapAllPresets:t,mapAllPresetsRGB:n,mapRecent:l}},[z,c,u,C]);n.useEffect(()=>{g?.()},[]);const[N,V]=n.useState(!1),H=n.useCallback(()=>{V(e=>!e)},[]);n.useEffect(()=>{if(h)V(h===Bj.Custom);else if(a){let e=a.toString(),t=B.mapAllPresets.get(e);t||(e=a.toRGBA().toString(),t=B.mapAllPresetsRGB.get(e));const n=B.mapRecent.get(e);V(!t&&!n)}},[a,h]);const $=n.useCallback(e.CommonUtils.debounce(e=>{R?.(e)},p),[R,p]),[W,U]=n.useState();n.useEffect(()=>{U(s||a)},[s,a]);const q=nt(e=>{I&&(I(e),$(e))},[I]),Z=nt(t=>{q(t?new e.Color({val:t.definition.val,adjs:t.definition.adjs},z):null)},[z]),G=n.useCallback(e=>{e.ctrlKey&&V(!0)},[]),K=nt(e=>{let t=!1;if(e){const n=e.toString();t=!B.mapAllPresets.has(n)}D?.(e,t)},[D,B]),X=nt(t=>{const n=t?new e.Color({val:t.definition.val,adjs:t.definition.adjs},z):null;Promise.resolve(x?.()).then(()=>{K(n)})},[z,x]),Y=nt(t=>{q(t?new e.Color(t,z):null)},[z]),J=n.useMemo(()=>{if(void 0===window.EyeDropper)return t.jsx(t.Fragment,{});return t.jsx(o.IconButton,{"aria-label":"eye dropper",size:"small",sx:{color:e=>e.palette.text.icon??e.palette.action.active},onClick:async()=>{A(!0),L?.(),await(new EyeDropper).open().then(t=>{A(!1),O?.();let n=new e.Color(t.sRGBHex),o=n.toString(),r=B.mapAllPresets.get(o);if(r||(o=n.toRGBA().toString(),r=B.mapAllPresetsRGB.get(o)),!r){const e=n.toRGBA(),t=3;let o=255;B.mapAllPresetsRGB.forEach((n,i)=>{const l=n.toRGBA(),a=Math.abs(l.red-e.red)+Math.abs(l.blue-e.blue)+Math.abs(l.green-e.green);a<t&&a<o&&(r=n)})}V(!r),q(r||n)}).catch(e=>{A(!1),"AbortError"!==e?.name&&console.error(e)})},children:t.jsx(r.Colorize,{})})},[B,T]),Q=n.useMemo(()=>{if(!N)return;const e={opacity:N?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return t.jsx(n.Suspense,{fallback:t.jsx("div",{style:e,children:t.jsx(vu,{})}),children:t.jsx(Xj,{style:e,selectedColor:M?M.toRGBA().toString():"transparent",onColorChange:Y,disableAlpha:u})})},[N,M]),ee=n.useMemo(()=>({onClick:G,alphaGrey:F.palette.text.icon??F.palette.action.active}),[G,F]),te=n.useMemo(()=>{if(!C)return null;const e={description:k,definition:{val:C.getVal(),adjs:C.getAdjustments()}};return t.jsx(t.Fragment,{children:t.jsxs(o.MenuItem,{sx:{display:"flex",color:e=>e.palette.text.secondary},onMouseOver:()=>{Z(null)},onClick:()=>{X(null)},children:[t.jsx(o.Box,{sx:{flex:"none",boxShadow:e=>e.shadows[2],borderRadius:e=>e.spacing(.5),overflow:"hidden"},children:t.jsx(qj,{schemeColorLookup:z,colorDef:e,selectedColor:null===a?C:a,previewColor:null===s?C:s,defaultButtonSize:f,isLarge:!0,darkMode:T,compareRGB:_,swatchProps:ee})}),t.jsx(o.Typography,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:k})]})})},[C,k,z,a,s]);return t.jsxs(o.Box,{ref:l,sx:{width:m,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},...j,children:[t.jsxs("div",{style:{position:"relative",display:"flex"},children:[t.jsxs("div",{style:{opacity:N?"0":1},children:[te&&E===Nj.Start?t.jsxs(t.Fragment,{children:[te,t.jsx(o.Divider,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,t.jsx(Zj,{title:"Theme Colors",schemeColorLookup:z,colorDefs:B.primaryColors,selectedColor:a,previewColor:void 0===s?a:s,swatchProps:ee,onPreviewColorDef:Z,onSelectColorDef:X,compareRGB:_,darkMode:T}),t.jsx(Zj,{schemeColorLookup:z,colorDefs:B.modifiedPresets,selectedColor:a,previewColor:void 0===s?a:s,swatchProps:ee,onPreviewColorDef:Z,onSelectColorDef:X,compareRGB:_,darkMode:T}),t.jsx(o.Divider,{light:!0,style:{marginBottom:"10px"}}),t.jsx(Zj,{title:"Standard Colors",schemeColorLookup:z,colorDefs:B.standardColors,selectedColor:a,previewColor:void 0===s?a:s,swatchProps:ee,onPreviewColorDef:Z,onSelectColorDef:X,compareRGB:_,darkMode:T}),t.jsxs("div",{style:{opacity:0===B.recentColorsLimited.length?"0":void 0,display:0===B.recentColorsLimited.length?"none":void 0},children:[t.jsx(o.Divider,{light:!0,style:{marginBottom:"10px"}}),t.jsx(Zj,{title:"Recent Colors",schemeColorLookup:z,colorDefs:B.recentColorsLimited,selectedColor:a,previewColor:void 0===s?a:s,swatchProps:ee,onPreviewColorDef:Z,onSelectColorDef:X,compareRGB:_,darkMode:T})]}),te&&E===Nj.End?t.jsxs(t.Fragment,{children:[t.jsx(o.Divider,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),te,t.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),Q]}),t.jsx(o.Divider,{light:!0,style:{marginBottom:"10px"}}),t.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[J,t.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),t.jsx(o.Button,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{H()},children:N?t.jsx("div",{children:"Preset"}):t.jsx("div",{children:"Custom"})}),t.jsx(o.Button,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(x?.()).then(()=>{K(W)})},children:"Done"})]})]})})),Jj=t.jsx(ga,{}),Qj=n.memo(n.forwardRef((e,r)=>{const{selectedColor:i,quickColor:l,icon:a=Jj,tooltip:s,label:c,onPreviewColor:d,onPreviewColorImmediate:u,onSelectColor:p,variant:h=sp.Toolbar,panelProps:f,shouldCloseFloatAll:m=!0,compareRGB:g=!1,darkMode:x=!1,...y}=e,b=nt(d,[d]),w=nt(u,[u]),v=nt(p,[p]),[S,C]=n.useState(()=>{}),k=l||(S||i)||f?.autoColor,E=n.useRef(!1),_=n.useCallback(()=>{},[]),T=nt(()=>{C(i)},[i]),j=nt(e=>{E.current||(C(e),b?.(e))},[b]),M=nt(e=>{E.current||(C(e),w?.(e))},[w]),R=nt((e,t)=>{E.current||(C(void 0),v?.(e,t))},[v]),I=n.useMemo(()=>t.jsx(o.Box,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${k?.toCSS(x)??"transparent"}`,"& .activeColor":{fill:`${k?.toCSS(x)??"transparent"}`},"& .style_grey":{fill:e=>e.palette.text.icon??e.palette.action.active}},children:"function"==typeof a?a():a}),[k,a,x]),D=nt(e=>{v?.(l,!1)},[v,l]),[L,O]=n.useState(!1),P=n.useCallback(e=>{const{closeFloat:n,closeFloatAll:o}=e;return t.jsx(Yj,{...f,selectedColor:i,previewColor:S,onDone:m?o:n,onKeyDown:e=>{e.which===qe.Enter&&(m?o():n())},onPreviewColorImmediate:M,onPreviewColor:j,onSelectColor:R,onEyeDropStart:()=>O(!0),onEyeDropStop:()=>O(!1),compareRGB:g,darkMode:x})},[i,S,m,k,f?.autoColor,x]),A={onQuickClick:l?D:void 0,createPopupPanel:P,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:T,onPopupClose:_,tooltip:s||c||"Color",label:c,icon:I,...y};return h===sp.Toolbar?t.jsx(Np,{ref:r,...A}):t.jsx(Hp,{ref:r,...A})})),eM=82,tM=e=>{const{styleColor:n,length:r=eM,width:i=1,dashArray:l=null,sx:a,isDouble:s=!1,isAngled:c=!1,darkMode:d=!1,...u}=e;return t.jsx(o.SvgIcon,{sx:{width:`${r}px`,height:`${i}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:e=>`${n?n.toRGBA(d).toString():e.palette.text.icon??e.palette.action.active}`},"& .style_grey":{stroke:e=>e.palette.text.icon??e.palette.action.active},...a},height:i,width:r,viewBox:`0 0 ${r} ${i}`,...u,children:t.jsx(tk,{length:r,width:i,dashArray:l,isDouble:s,isAngled:c,className:"activeColor"})})},nM=n.memo(n.forwardRef((r,i)=>{const{variant:l,showLabels:s=!1,disabled:c=!1,createPopupPanel:d,styleColor:u,selectedStyle:p,onSelectStyle:h,showNone:f=!0,darkMode:m,sx:g,...x}=r,y=nt(h,[]),b=n.useCallback(n=>{const{popupContainer:r,floatReference:i,closeFloat:l,...d}=n,h=[],g=e.IBorder.BuiltInDefinitionsArray;for(let e=0;e<g.length;e++){const n=g[e];if("None"===n.description&&!f)continue;const r=t.jsx(tM,{styleColor:u,length:eM,width:n.width,darkMode:m,dashArray:n.pattern,isDouble:n.description.toLowerCase().includes("double"),isAngled:n.description.toLowerCase().includes("slant")});let d=null;d=s?t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{sx:{marginRight:"6px"},children:n.description}),t.jsxs(o.Box,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[t.jsx("div",{style:{flex:"1 1 100%"}}),r]})]}):"None"===n.description?"None":r,h.push(t.jsx(zp,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:ca(4)},paddingLeft:"16px",background:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},tooltipProps:{description:s?"":n.description},icon:null,disabled:c,onMouseDown:e=>e.preventDefault(),onMouseUp:()=>{l(),y(n.style)},onKeyDown:e=>{e.which===qe.Enter&&l()},selected:n.style===p,parentFloat:i,children:d},e))}return t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:h})},[c,f,u,p,m]),w=n.useMemo(()=>{const n=e.IBorder.BuiltInDefinitions.get(p);let r;return r="None"===n.description?t.jsx(o.Box,{sx:{minWidth:`${eM}px`},children:"None"}):t.jsx(tM,{styleColor:u,length:eM,width:n.width,dashArray:n.pattern,darkMode:m,isDouble:n.description.toLowerCase().includes("double"),isAngled:n.description.toLowerCase().includes("slant")}),t.jsx(o.Box,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:ca()}},children:r})},[p,u]),v=n.useMemo(()=>e.IBorder.BuiltInDefinitions.get(p),[p]),S={disabled:c,icon:w,tooltip:"Border Style: "+v.description,sx:{background:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,...g},createPopupPanel:b,...x};return l===sp.Toolbar?t.jsx(Np,{...S}):t.jsx(Hp,{...S})})),oM=n.memo(n.forwardRef((r,i)=>{const{autoColor:l=null,schemeLookup:s,autoStrokeStyle:c=e.IBorder.StrokeStyle.Thin,disabled:d=!1,darkMode:u=!1,showStylingBefore:p=!0,onSelectBorder:h,onPreviewBorder:f,selectedBorder:m,createTemporaryBorder:g,...x}=r,y=nt(h,[h]),b=nt(f,[f]),[w,v]=n.useState(),[S,C]=n.useState(),k=w??c,E=S??l,_=m||{bottom:{style:c,color:l?.toString()}},T=nt(n=>{const r={},i=n?Object.keys(n):[];let l=!1;for(let t=0;t<i.length;t++)n[i[t]]?.style&&(r[i[t]]={style:n[i[t]].style,color:n[i[t]].color},l||r[i[t]].style===e.IBorder.StrokeStyle.None||(l=!0));i.length<6&&(l=!0);const a=l?r.left:null,s=l?r.top:null,c=l?r.right:null,d=l?r.bottom:null,p=l?r.vertical:null,h=l?r.horizontal:null;let f="";return s||a||(f+="M 3,5 H 5 V 3 H 3 "),s||(f+="M 7,5 H 9 V 3 H 7 "),s||p||(f+="M 11,5 h 2 V 3 h -2 "),s||(f+="M 15,5 h 2 V 3 h -2 "),s||c||(f+="M 19,5 h 2 V 3 h -2 "),a||(f+="M 3,9 H 5 V 7 H 3 "),p||(f+="M 11,9 h 2 V 7 h -2 "),c||(f+="M 19,9 h 2 V 7 h -2 "),h||a||(f+="M 3,13 H 5 V 11 H 3 "),h||(f+="M 7,13 H 9 V 11 H 7 "),h||p||(f+="M 11,13 h 2 v -2 h -2 "),h||c||(f+="M 19,13 h 2 v -2 h -2 "),h||(f+="M 15,13 h 2 v -2 h -2 "),a||(f+="M 3,17 H 5 V 15 H 3 "),p||(f+="M 11,17 h 2 v -2 h -2 "),c||(f+="M 19,17 h 2 v -2 h -2 "),d||a||(f+="M 3,21 H 5 V 19 H 3 "),d||(f+="M 7,21 H 9 V 19 H 7 "),d||p||(f+="M 11,21 h 2 v -2 h -2 "),d||(f+="M 15,21 h 2 v -2 h -2 "),d||c||(f+="M 19,21 h 2 v -2 h -2 "),t.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[t.jsx(o.SvgIcon,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:t.jsx("path",{d:f})}),t.jsx(o.Box,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:sa}},children:t.jsx(bk,{getBorderAt:(e,t)=>{if(!g||0===i.length)return null;const n=e.rowIndex,o=e.colIndex,l={};return 0===n?(l.top=r.top,l.bottom=r.horizontal):(l.top=r.horizontal,l.bottom=r.bottom),0===o?(l.left=r.left,l.right=r.vertical):(l.left=r.vertical,l.right=r.right),g?.(l)},width:18,height:18,darkMode:u,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[E,k,u]),j=n.useCallback((e,t,n)=>{let o=null;if(e&&e.length>0){let r=null;(t||n)&&(r={style:n,color:t?.toString()??null}),o={};for(let t=0;t<e.length;t++)o[e[t]]=r}return o},[]),M=n.useCallback(e=>{y?.(e)},[]),R=n.useCallback(e=>{b?.(e)},[]),I=n.useCallback(n=>{const{closeFloatAll:r,floatReference:i}=n,c=(n,o,i="bottom",l=!1)=>{const s=j(n,E??null,l?e.IBorder.StrokeStyle.None:k??null),c=l?j([],E??null,k??null):s;return t.jsx(Ap,{icon:T(c),sx:{background:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},tooltipProps:{label:o,simple:!0,placement:i},onClick:()=>{r(),R(s),M(s)}})},h=t.jsxs(t.Fragment,{children:[t.jsxs(o.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[c([e.IBorder.Edge.Left,e.IBorder.Edge.Top,e.IBorder.Edge.Right,e.IBorder.Edge.Bottom,e.IBorder.Edge.Horizontal,e.IBorder.Edge.Vertical],"All Borders","top"),c([e.IBorder.Edge.Horizontal,e.IBorder.Edge.Vertical],"Inner Borders","top"),c([e.IBorder.Edge.Horizontal],"Inside Horizontal Borders","top"),c([e.IBorder.Edge.Vertical],"Inside Vertical Borders","top"),c([e.IBorder.Edge.Left,e.IBorder.Edge.Top,e.IBorder.Edge.Right,e.IBorder.Edge.Bottom],"Outside Borders","top")]}),t.jsxs(o.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[c([e.IBorder.Edge.Left],"Left Borders"),c([e.IBorder.Edge.Top],"Top Borders"),c([e.IBorder.Edge.Right],"Right Borders"),c([e.IBorder.Edge.Bottom],"Bottom Borders"),c([e.IBorder.Edge.Left,e.IBorder.Edge.Top,e.IBorder.Edge.Right,e.IBorder.Edge.Bottom,e.IBorder.Edge.Horizontal,e.IBorder.Edge.Vertical,e.IBorder.Edge.DiagonalUp,e.IBorder.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),f=t.jsx(t.Fragment,{children:t.jsxs(o.Box,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[t.jsx(Qj,{variant:sp.Toolbar,icon:t.jsx(fa,{}),selectedColor:k===e.IBorder.StrokeStyle.None?new e.Color("transparent"):E,onPreviewColor:e=>{C(e)},onSelectColor:(e,t)=>{C(e)},darkMode:u,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:l,schemeLookup:s},disabled:d||k===e.IBorder.StrokeStyle.None,parentFloat:i,shouldCloseFloatAll:!1}),t.jsx(nM,{selectedStyle:k,onSelectStyle:v,styleColor:E,darkMode:u,variant:sp.Toolbar,parentFloat:i})]})});return t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:e=>e.stopPropagation(),children:[p?f:h,t.jsx(du,{orientation:"horizontal"}),p?h:f]})},[k,E,l,s,u]),D=n.useMemo(()=>T(_),[_,u]);return t.jsx(Np,{ref:i,createPopupPanel:I,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:e},n)=>t.jsx(Lp,{label:"Borders",description:"Set the borders.",disabled:n,children:e}),onQuickClick:()=>{y?.(_)},quickButtonProps:{sx:{}},disabled:d,icon:D,...x})})),rM=n.memo(n.forwardRef((e,o)=>{const{commands:r,command:i,commandHook:l,variant:a=Hn.Toolbar,disabled:s=!1,autoColor:c,autoStrokeStyle:d,schemeLookup:u,createTemporaryBorder:p,selectedBorder:h,onSelectBorder:f,darkMode:m,icon:g,label:x,...y}=e,b=Vn(r,["formatBorder"]),w=i??b[0],v=w?.context()??null,S=v?.autoColor??c,C=v?.autoStyle??d,k=h??v?.quickBorder,E=m??v?.darkMode,_=p??v?.createTemporaryBorder,T=u??v?.schemeLookup,j=nt(e=>{v?.onBorderSelect&&v.onBorderSelect(e),f?.(e),w?.execute(e,l)},[w,f,l]),M=n.useCallback((e,n)=>{const{children:o,title:r,...i}=e;let l=e.children;return(w?.disabled()||s)&&(l=t.jsx("div",{children:l})),t.jsx(Gm,{command:w,placement:a===Hn.Toolbar?"bottom-start":"right-start",disabled:n,...i,children:l})},[w,s]);return t.jsx(oM,{ref:o,autoColor:S,darkMode:E,autoStrokeStyle:C,createTemporaryBorder:_,schemeLookup:T,selectedBorder:k,onSelectBorder:j,createTooltip:M,disabled:s||!w||w.disabled(),...y})})),iM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("mergeToggle"),icon:pa(t.jsx(xa,{}))}),t.jsx(Km,{...o,command:n.getCommand("mergeHorizontal"),icon:pa(t.jsx(ya,{}))}),t.jsx(Km,{...o,command:n.getCommand("mergeVertical"),icon:pa(t.jsx(ba,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("unmerge"),icon:pa(t.jsx(wa,{}))})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,quickCommand:"mergeToggle",commandHook:i,scope:l,tooltip:"Combine or split cells.",createPopupPanel:c,icon:pa(t.jsx(xa,{})),...s})})),lM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("freezeToggle"),icon:pa(t.jsx(ka,{}))}),t.jsx(Km,{...o,command:n.getCommand("freezeToggleHorizontal"),icon:pa(t.jsx(Sa,{}))}),t.jsx(Km,{...o,command:n.getCommand("freezeToggleVertical"),icon:pa(t.jsx(Ca,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("unfreeze"),icon:t.jsx(wa,{})})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,createPopupPanel:c,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:t.jsx(va,{}),...s})})),aM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("find"),icon:pa(t.jsx(Sd,{}))}),t.jsx(Km,{...o,command:n.getCommand("findReplace"),icon:pa(t.jsx(Cd,{}))}),t.jsx(Km,{...o,command:n.getCommand("goto"),icon:pa(t.jsx(kd,{}))})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,createPopupPanel:c,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:pa(t.jsx(Sd,{})),...s})})),sM=n.memo(n.forwardRef((r,i)=>{const{command:l,commandHook:a,showQuickButtons:s=!!r.commands,commands:c,fontSizes:d=qC.DefaultFontSizes,disabled:u=!1,parentFloat:p,icon:f,label:m,sx:g,...x}=r;Bn(l);const y=()=>l?.state()?.toString()||"11",[b,w]=n.useState(y),v=nt(()=>{const e=parseFloat(b);isNaN(e)?w(y()):parseFloat(y())!==e&&l.execute(e,a)},[y,l,b,a]);n.useEffect(()=>{w(y())},[l?.state()]);const S=n.useMemo(()=>{if(!a)return null;const e={...a};return delete e.beforeExecute,e},[a]),C=Vn(c,["formatFontSizeIncrease","formatFontSizeDecrease"]),k=n.useMemo(()=>C?t.jsxs(o.Box,{className:h("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[t.jsx(Km,{command:C[0],commandHook:S,icon:pa(t.jsx(Nc,{}))}),t.jsx(Km,{command:C[1],icon:pa(t.jsx(Vc,{}))})]}):null,[C]),E=sb(),_=n.useMemo(()=>`${e.IFont.getSharedMeasurer()("12.3",Math.round(E.typography.fontSize),E.typography.fontFamily).width}px`,[E]),T=n.useCallback(e=>{const{onMouseDown:n,onMouseUp:r,...i}=e;return t.jsx(o.IconButton,{component:"div",...i,disableRipple:!0,children:t.jsx(o.Input,{inputMode:"numeric",disabled:u||!l||l.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:e=>`1px solid ${e.palette.text.icon??e.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.error.main}`},"::after":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,width:_,color:e=>e.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:b,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===qe.Enter)y()!==b&&(e.stopPropagation(),e.preventDefault(),v());else if(e.which===qe.Escape)y()!==b&&(w(y()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault());else{if(e.key.match("[-]"))return e.stopPropagation(),void e.preventDefault();if(e.key.match("[0-9.]")&&(b+e.key).length>4)return e.stopPropagation(),void e.preventDefault();if(e.which===qe.Space)return void e.preventDefault()}},onBlur:()=>{v()},onChange:e=>{if(e.target.value.length>4)return e.stopPropagation(),void e.preventDefault();w(e.target.value)}})})},[b,u,l]),j=n.useCallback(e=>{const n=e=>{l?.execute(e,a)},r=l?.state(),i=[];for(let e=0;e<d.length;e++){const a=d[e]===r;i.push(t.jsx(zp,{selected:a,icon:a?t.jsx(Wp,{}):void 0,disabled:u||!l||l.disabled(),onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:t=>{0===t.button&&n(d[e])},onKeyDown:t=>{t.keyCode!==qe.Enter&&t.keyCode!==qe.Space||n(d[e])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:t.jsx(o.Box,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:d[e]})},"fontSize-"+e))}const s=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...x,children:[k,t.jsx(du,{orientation:"horizontal"}),t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})]});return cp({...e,children:s})},[u,l?.state(),a]);return t.jsx(Np,{ref:i,sx:{...g},tabIndex:-1,outlined:!0,disabled:u,parentFloat:p,createPopupPanel:j,createTooltip:({children:e},n)=>t.jsx(Lp,{label:l?.label(),description:l?.description(),disabled:n||l?.disabled(),children:e}),createQuickButton:T,...x})})),cM=n.memo(n=>{const{selected:r,disabled:i,formattedValue:l,handleSetFormat:s,format:c,sx:d,...u}=n;return t.jsx(zp,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...d},disabled:i,selected:r,icon:r?t.jsx(Wp,{}):void 0,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&s(c.numberFormat)},onKeyDown:e=>{e.keyCode!==qe.Enter&&e.keyCode!==qe.Space||s(c.numberFormat)},...u,children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[t.jsxs(o.Typography,{component:"div",children:[c.formatType,c.formatType===e.NumberFormat.Type.Custom?"…":""]}),t.jsx(o.Typography,{variant:"caption",component:"div",sx:{color:e=>a.alpha(e.palette.text.primary,.6),paddingTop:l&&l.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:l&&l.length>0?l:" "})]})})}),dM=n.memo(n.forwardRef((r,i)=>{const{commands:l,commandHook:a,scope:s,sx:c,disabled:d=!1,parentFloat:u,...p}=r,h=Vn(l,["formatNumberFormat"])[0],f=h?.state()?e.NumberFormat.Styles.lookupStyle(h?.state()).formatType:e.NumberFormat.Type.General,m=n.useMemo(()=>{if(!a)return null;const e={...a};return delete e.beforeExecute,e},[a]),g=n.useCallback((n,r)=>{const i=e=>{a?.beforeExecute?.(h,h?.state()),h.execute(e,a),a?.onExecute?.(h,h?.state())},l=h?.context()(),c=e.NumberFormat.Styles.lookupPrimary(),u=[];for(let n=0;n<c.length;n++){let o="";if(l&&!l.isEmpty())try{o=l.getNumberFormat(c[n].numberFormat).displayText}catch(e){console.warn(e)}""===o&&c[n].formatType===e.NumberFormat.Type.General&&(o="No specific format");const r=c[n].formatType===f;u.push(t.jsx(cM,{selected:r,disabled:d||!h||h.disabled(),formattedValue:o,handleSetFormat:i,format:c[n]},c[n].formatType))}const g={numberFormat:"",formatType:e.NumberFormat.Type.Custom},x=f===e.NumberFormat.Type.Custom,y=t.jsx(cM,{selected:x,disabled:d||!h||h.disabled(),formattedValue:x?l.getNumberFormat().displayText:"",handleSetFormat:()=>{a?.beforeExecute?.(h,h?.state()),r.getCommand("formatNumberDialog")?.execute(h?.state()),a?.onExecute?.(h,h?.state())},format:g,sx:{flex:"0",width:"100%"}},e.NumberFormat.Type.Custom),b=t.jsxs(o.Box,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[t.jsx(Km,{command:r.getCommand("formatNumberFormatAccountingStyle"),commandHook:m,scope:s,icon:t.jsx(Da,{})}),t.jsx(Km,{command:r.getCommand("formatNumberFormatPercentStyle"),commandHook:m,scope:s,icon:t.jsx(Ma,{})}),t.jsx(Km,{command:r.getCommand("formatNumberFormatCommaStyle"),commandHook:m,scope:s,icon:t.jsx(ja,{})}),t.jsx(Km,{command:r.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:m,scope:s,icon:pa(t.jsx(Ra,{}))}),t.jsx(Km,{command:r.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:m,scope:s,icon:pa(t.jsx(Ia,{}))})]}),w=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[b,t.jsx(du,{orientation:"horizontal"}),t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:u}),t.jsx(du,{orientation:"horizontal"}),y]});return cp({...n,children:w})},[h?.context(),h?.state(),a,s]),x=sb(),y=n.useMemo(()=>{const t=e.NumberFormat.Type.MediumTime;return`${e.IFont.getSharedMeasurer()(t,Math.round(x.typography.fontSize),x.typography.fontFamily).width}px`},[x]);return t.jsx(Ym,{ref:i,commands:l,sx:c,outlined:!0,disabled:d,parentFloat:u,createPopupPanel:g,createTooltip:({children:e},n)=>t.jsx(Lp,{label:h?.label(),description:h?.description(),disabled:n,children:e}),icon:t.jsx(o.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,color:e=>e.palette.text.secondary,fontFamily:e=>e.typography.fontFamily,width:y},children:t.jsx(o.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:f})}),...p})})),uM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"clear",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("clearAll"),icon:t.jsx(_r,{})}),t.jsx(Km,{...o,command:n.getCommand("clearFormats"),icon:pa(t.jsx(Tr,{}))}),t.jsx(Km,{...o,command:n.getCommand("clearContents"),icon:pa(t.jsx(Er,{}))}),t.jsx(Km,{...o,command:n.getCommand("clearComments")}),t.jsx(Km,{...o,command:n.getCommand("clearHyperlinks")})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,disabled:a,commandHook:i,scope:l,label:"Clear",tooltip:"Clear everything in the cell, or remove just the formatting or contents.",createPopupPanel:c,icon:t.jsx(_r,{}),...s})})),pM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"fill",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("fillDown"),icon:pa(t.jsx(Cc,{}))}),t.jsx(Km,{...o,command:n.getCommand("fillRight"),icon:pa(t.jsx(Cc,{sx:{transform:"rotate(270deg)"}}))}),t.jsx(Km,{...o,command:n.getCommand("fillUp"),icon:pa(t.jsx(Cc,{sx:{transform:"rotate(180deg)"}}))}),t.jsx(Km,{...o,command:n.getCommand("fillLeft"),icon:pa(t.jsx(Cc,{sx:{transform:"rotate(90deg)"}}))})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,disabled:a,commandHook:i,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:c,icon:pa(t.jsx(Cc,{})),...s})})),hM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,disableSheet:s=!1,preferSingleMenu:c=!0,showQuickButton:d=!0,variant:u=Hn.Toolbar,...p}=e,h=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],f=Vn(r,h),{singleCommand:m,allDisabled:g}=n.useMemo(()=>{let e=null,t=0;for(let n=0;n<f.length;n++)f[n]&&!f[n]?.disabled()&&(c&&u===Hn.Menuitem&&(e=0===t?f[n]:null),t++);return{singleCommand:e,allDisabled:0===t}},[f]),x=n.useMemo(()=>{const e=new Map;return e.set("insertCellsShiftDown",pa(t.jsx(kc,{}))),e.set("insertCellsShiftRight",pa(t.jsx(kc,{sx:{transform:"rotate(270deg)"}}))),e.set("insertRows",pa(t.jsx(_c,{}))),e.set("insertColumns",pa(t.jsx(Ec,{}))),e},[]),y=n.useCallback((e,n)=>{let o=null;const r={variant:Hn.Menuitem,commandHook:i,scope:"insertCells",disabled:a};s||(o=t.jsxs(t.Fragment,{children:[t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...r,command:n.getCommand("addSheet"),icon:pa(t.jsx(xr,{}))})]}));const l=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...r,command:f[0],icon:x.get(h[0])}),t.jsx(Km,{...r,command:f[1],icon:x.get(h[1])}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...r,command:f[2],icon:x.get(h[2])}),t.jsx(Km,{...r,command:f[3],icon:x.get(h[3])}),o]});return cp({...e,children:l})},[a,f,i,l,x]);return m?t.jsx(Km,{ref:o,variant:u,commandHook:i,disabled:a,command:m,icon:x.get(m.key()),...p}):t.jsx(Ym,{ref:o,variant:u,quickCommand:"insertCells",commands:r,commandHook:i,scope:l,disabled:a||g,tooltip:t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"Insert new cells, rows or columns to your workbook."}),t.jsx("br",{}),t.jsx("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:y,icon:pa(t.jsx(Ec,{})),...p})})),fM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,disableSheet:s=!1,preferSingleMenu:c=!0,showQuickButton:d=!0,variant:u=Hn.Toolbar,...p}=e,h=Vn(r,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:f,allDisabled:m}=n.useMemo(()=>{let e=null,t=0;for(let n=0;n<h.length;n++)h[n]&&!h[n]?.disabled()&&(c&&u===Hn.Menuitem&&(e=0===t?h[n]:null),t++);return{singleCommand:e,allDisabled:0===t}},[h]),g=n.useMemo(()=>{const e=new Map;return e.set("deleteCellsShiftUp",pa(t.jsx(Ic,{sx:{transform:"rotate(0deg)"}}))),e.set("deleteCellsShiftLeft",pa(t.jsx(Ic,{sx:{transform:"rotate(270deg)"}}))),e.set("deleteRows",pa(t.jsx(Lc,{}))),e.set("deleteColumns",pa(t.jsx(Dc,{}))),e},[]),x=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"deleteCells",disabled:a};let r=null;s||(r=t.jsxs(t.Fragment,{children:[t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("deleteSheet"),icon:pa(t.jsx(xr,{}))})]}));const l=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("deleteCellsShiftUp"),icon:g.get("deleteCellsShiftUp")}),t.jsx(Km,{...o,command:n.getCommand("deleteCellsShiftLeft"),icon:g.get("deleteCellsShiftLeft")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("deleteRows"),icon:g.get("deleteRows")}),t.jsx(Km,{...o,command:n.getCommand("deleteColumns"),icon:g.get("deleteColumns")}),r]});return cp({...e,children:l})},[a,i,l,g]);return f?t.jsx(Km,{ref:o,variant:u,commandHook:i,disabled:a,command:f,icon:g.get(f.key()),...p}):t.jsx(Ym,{ref:o,variant:u,quickCommand:"deleteCells",commands:r,commandHook:i,scope:l,disabled:a||m,tooltip:t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),t.jsx("br",{}),t.jsx("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:x,icon:pa(t.jsx(Dc,{})),...p})})),mM=n.memo(n.forwardRef((o,r)=>{const{command:i,commandHook:l,onSelectColor:a,disabled:s=!1,variant:c=Hn.Toolbar,quickColor:d,panelProps:u,isSplit:p=!1,darkMode:h,icon:f,...m}=o,{autoColor:g,schemeLookup:x,recentColors:y,...b}=u;if(m.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");Bn(i);const w=i?.context();let v=d??w?.quickColor;p&&!v&&(v=new e.Color("transparent"));const S=g??w?.autoColor,C=x??w?.schemeLookup,k=y??w?.recentColors,E=h??w?.darkMode,_=n.useMemo(()=>({autoColor:S,schemeLookup:C,recentColors:k,darkMode:E,...b}),[S,C,k,E]),T=nt((e,t)=>{e&&t&&w?.addRecentColor&&w.addRecentColor(e),w?.onColorSelect&&w.onColorSelect(e),a?.(e,t),i?.execute(e,l)},[i,a,l,w]),j=n.useCallback((e,n)=>{const{children:o,title:r,...l}=e;let a=e.children;return(i?.disabled()||s)&&(a=t.jsx("div",{children:a})),t.jsx(Gm,{command:i,placement:c===Hn.Toolbar?"bottom-start":"right-start",disabled:n,...l,children:a})},[i,s]);return t.jsx(Qj,{ref:r,panelProps:_,icon:f,quickColor:v,selectedColor:i?.state(),onSelectColor:T,variant:c===Hn.Menuitem?sp.Menuitem:sp.Toolbar,createTooltip:j,label:i?.label(),disabled:s||!i||i.disabled(),compareRGB:!0,darkMode:E,...m})}));mM.displayName="ColorCommandButton";const gM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,parentFloat:s,...c}=e,d=Vn(r,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),u=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,parentFloat:e.floatReference,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("gridlinesToggle")}),t.jsx(mM,{...o,command:n.getCommand("sheetViewFormatGridlinesColor"),icon:t.jsx(fa,{}),panelProps:{disableAlpha:!0}}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleGridlinesColumns")}),t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleGridlinesRows")})]});return cp({...e,children:r})},[a,i]);return t.jsx(Ym,{ref:o,parentFloat:s,quickCommand:d[0]?.key(),commands:r,commandHook:i,createPopupPanel:u,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:t.jsx(Jm,{command:d[0],scope:"view"}),...c})})),xM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"sort",disabled:a},r=n.getCommand("sortCustom"),l=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("sortAscending"),icon:pa(t.jsx(zc,{}))}),t.jsx(Km,{...o,command:n.getCommand("sortDescending"),icon:pa(t.jsx(Fc,{}))}),r?t.jsx(Km,{...o,command:r,icon:pa(t.jsx(Bc,{}))}):null,t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterToggle"),icon:pa(t.jsx(Ea,{}))}),t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterClear"),icon:pa(t.jsx(_a,{}))}),t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterReapply"),icon:pa(t.jsx(Ta,{}))})]});return cp({...e,children:l})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,scope:l,disabled:a,label:"Sort",tooltip:t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"Organize your data so it's easier to analyze."}),t.jsx("br",{}),t.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:c,icon:pa(t.jsx(zc,{})),...s})})),yM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"sort",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterToggle"),icon:pa(t.jsx(Ea,{}))}),t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterClear"),icon:pa(t.jsx(_a,{}))}),t.jsx(Km,{...o,scope:"filter",command:n.getCommand("autoFilterReapply"),icon:pa(t.jsx(Ta,{}))})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,commands:r,commandHook:i,scope:l,disabled:a,label:"Filter",tooltip:t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"Organize your data so it's easier to analyze."}),t.jsx("br",{}),t.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:c,icon:pa(t.jsx(Ea,{})),...s})})),bM=n.memo(n.forwardRef((e,r)=>{const{quickCommand:i,icon:l,isRedo:a=!1,nestRedo:s=!0,undoManager:c,scope:d,sx:u,disabled:p,commands:h,...f}=e,m=[i];!a&&s&&m.push("redo");const g=Vn(h,m),x=g[0],y=g[1],b=c??x?.context?.()?.undoManager;let w=p;p||(w=!x||x.disabled(),y&&!y.disabled()&&(w=!1));const[v,S]=n.useState(0),C=n.useCallback((e,n)=>{let r=0===v?"Cancel":`${x.label()} ${v} Action${1===v?"":"s"}`,i=!1;b||(i=!0),i||(i=s?!b.hasRedo()&&!b.hasUndo():!b.hasRedo());const l=e=>{x.execute(e)},c=t.jsx(zp,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:i?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{S(0)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&l(v)},onKeyDown:e=>{e.isDefaultPrevented()||e.keyCode!==qe.Enter&&e.keyCode!==qe.Space||l(v)},children:t.jsx(o.Typography,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:r})});if(i)return c;const d=a?b?.getRedoDescriptions():b?.getUndoDescriptions(),u=[];for(let e=0;e<d.length;e++){const n=d[e];u.push(t.jsx(zp,{sx:{maxWidth:"360px",display:"flex"},icon:t.jsx(xr,{}),disabled:w,selected:e<v,onMouseEnter:()=>{S(e+1)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:t=>{0===t.button&&l(e+1)},onKeyDown:t=>{t.isDefaultPrevented()||t.keyCode!==qe.Enter&&t.keyCode!==qe.Space||l(e+1)},children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[t.jsx(o.Typography,{component:"div",children:n}),t.jsx(xr,{})]})},`action:${e}`))}let p=null;if(!a&&s){const o={scope:"undo",commands:n,variant:Hn.Menuitem,parentFloat:e.floatReference};p=[],p.push(t.jsx(bM,{...o,quickCommand:"redo",isRedo:!0},"nested:redo")),b.hasRedo()&&b.hasUndo()&&p.push(t.jsx(du,{orientation:"horizontal"},"action:redo-div"))}const h=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{e.closeFloatAll()},onMouseLeave:()=>{S(0)},children:[p,t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:u}),t.jsx(du,{orientation:"horizontal"}),c]});return cp({...e,children:h})},[x?.context(),x?.state(),d,b,v,w]);return t.jsx(Ym,{ref:r,commands:h,quickCommand:i,scope:d,disabled:w,label:x?.label()??(a?"Redo":"Undo"),tooltip:t.jsx(t.Fragment,{children:t.jsx("span",{children:`${x?.label()??"No"} last actions.`})}),createPopupPanel:C,icon:l??pa(a?t.jsx(Yd,{}):t.jsx(Xd,{})),selected:!1,...f})})),wM=e.IFontCollection.getFontList(),vM=new Map;for(let e=0;e<wM.length;e++)vM.set(wM[e].fontRef.getFamily(),wM[e]);const SM=n.memo(n.forwardRef((r,i)=>{const{command:l,commandHook:a,sx:s,disabled:c=!1,parentFloat:d,icon:u,label:p,...h}=r;Bn(l);const f=l?.state(),m=sb(),g=n.useMemo(()=>`${e.IFont.getSharedMeasurer()("Times New Roman",Math.round(m.typography.fontSize),m.typography.fontFamily).width}px`,[m]),x=n.useCallback(e=>{const n=e=>{l?.execute(e,a)},r=[];for(let e=0;e<wM.length;e++)r.push({key:wM[e].fontRef.getFamily(),description:wM[e].fontRef.getFamily()});vM.get(f)||r.unshift({key:f,description:f});const i=[];for(let e=0;e<r.length;e++){const a=r[e].key===f;i.push(t.jsx(zp,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:a,disabled:c||!l||l.disabled(),icon:a?t.jsx(Wp,{}):void 0,onMouseUp:t=>{0===t.button&&n(r[e].key)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onKeyDown:t=>{t.keyCode!==qe.Enter&&t.keyCode!==qe.Space||n(r[e].key)},children:t.jsx(o.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:t.jsx(o.Typography,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>r[e]?.key},children:r[e].description})})},e+""+r[e].key))}const s=t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...h,children:t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})});return cp({...e,children:s})},[c,l?.state()]);return t.jsx(Np,{ref:i,sx:{...s},outlined:!0,disabled:c,parentFloat:d,createPopupPanel:x,createTooltip:({children:e},n)=>t.jsx(Lp,{label:l?.label(),description:l?.description(),disabled:n,children:e}),icon:t.jsx(o.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,fontFamily:e=>e.typography.fontFamily,color:e=>e.palette.text.secondary,width:g},children:t.jsx(o.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:f})}),...h})})),CM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=Vn(r,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),d=n.useMemo(()=>{for(let e=0;e<c.length;e++)if(c[e]?.state())return c[e].key();return c[0]?.key()},[c]),u=n.useMemo(()=>{const e=new Map;return e.set("formatStrikeThroughToggle",pa(t.jsx(Hc,{}))),e.set("formatSuperscriptToggle",pa(t.jsx($c,{}))),e.set("formatSubscriptToggle",pa(t.jsx(Wc,{}))),e},[]),p=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"textEffects",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("formatStrikeThroughToggle"),icon:u.get("formatStrikeThroughToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatSuperscriptToggle"),icon:u.get("formatSuperscriptToggle")}),t.jsx(Km,{...o,command:n.getCommand("formatSubscriptToggle"),icon:u.get("formatSubscriptToggle")})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,quickCommand:d,commands:r,commandHook:i,createPopupPanel:p,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:u.get(d)??pa(t.jsx(Hc,{})),...s})})),kM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,...s}=e,c=Vn(r,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),d=n.useMemo(()=>{for(let e=0;e<c.length;e++)if(c[e]?.state())return c[e].key();return c[0]?.key()},[c]),u=n.useMemo(()=>{const e=new Map;return e.set("formatUnderlinedToggle",pa(t.jsx(Uc,{}))),e.set("formatUnderlinedDoubleToggle",pa(t.jsx(qc,{}))),e.set("formatUnderlinedAccountingToggle",pa(t.jsx(Zc,{}))),e.set("formatUnderlinedAccountingDoubleToggle",pa(t.jsx(Gc,{}))),e},[]),p=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"underline",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("formatUnderlinedToggle"),icon:pa(t.jsx(Uc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatUnderlinedDoubleToggle"),icon:pa(t.jsx(qc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatUnderlinedAccountingToggle"),commandHook:i,icon:pa(t.jsx(Zc,{}))}),t.jsx(Km,{...o,command:n.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:pa(t.jsx(Gc,{}))})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,quickCommand:d,commands:r,commandHook:i,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:p,icon:u.get(d)??pa(t.jsx(Uc,{})),...s})})),EM=n.memo(n.forwardRef((e,o)=>{const{command:r,commands:i,commandHook:l,scope:a,includePasteAllInPopup:s=!0,disabled:c=!1,...d}=e,u=nt((e,o)=>{const r={variant:Hn.Menuitem,commandHook:l,scope:"paste",disabled:c},i=[];return s&&(i.push(n.createElement(Km,{...r,command:o.getCommand("paste"),key:"paste",icon:t.jsx(hc,{})})),i.push(t.jsx(du,{orientation:"horizontal"},"paste-div"))),i.push(n.createElement(Km,{...r,command:o.getCommand("pasteValues"),key:"pasteValues",icon:pa(t.jsx(fc,{}))})),i.push(n.createElement(Km,{...r,command:o.getCommand("pasteFormats"),key:"pasteFormats",icon:pa(t.jsx(mc,{}))})),i.push(n.createElement(Km,{...r,command:o.getCommand("pasteFormulas"),key:"pasteFormulas",icon:pa(t.jsx(gc,{}))})),i.push(n.createElement(Km,{...r,command:o.getCommand("pasteTranspose"),key:"pasteTranspose",icon:pa(t.jsx(xc,{}))})),i.push(n.createElement(Km,{...r,command:o.getCommand("pasteLinks"),key:"pasteLinks",icon:pa(t.jsx(yc,{}))})),cp({...e,children:i})},[c,l,a,s]);return t.jsx(Ym,{ref:o,commands:i,commandHook:l,scope:a,createPopupPanel:u,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:t.jsx(hc,{}),...d})})),_M=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,parentFloat:s,...c}=e,d=Vn(r,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),u=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,parentFloat:e.floatReference,commandHook:i,scope:l,disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleShowHeadings")}),t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleShowHeadingsNumeric")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleShowHeadingColumns")}),t.jsx(Km,{...o,command:n.getCommand("sheetViewToggleShowHeadingRows")})]});return cp({...e,children:r})},[a,i,l]);return t.jsx(Ym,{ref:o,parentFloat:s,quickCommand:d[0]?.key(),commands:r,commandHook:i,createPopupPanel:u,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:t.jsx(Jm,{command:d[0],scope:"view"}),...c})})),TM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l="view",disabled:a=!1,...s}=e,c=n.useCallback(e=>{const n={variant:Hn.Menuitem,parentFloat:e.floatReference,commandHook:i,scope:l,disabled:a},o=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...n,command:r.getCommand("workbookViewToggleShowFormulaBar")}),t.jsx(Km,{...n,command:r.getCommand("workbookViewToggleShowTabs")}),t.jsx(Km,{...n,command:r.getCommand("workbookViewToggleShowStatusBar")}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...n,command:r.getCommand("workbookViewToggleShowHorizontalScrollBar")}),t.jsx(Km,{...n,command:r.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return cp({...e,children:o})},[a,r,i,l]);return t.jsx(Ym,{ref:o,commands:r,disabled:a,commandHook:i,scope:l,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:c,icon:t.jsx(Jm,{icon:null,label:"Workbook View"}),...s})})),jM=n.memo(n.forwardRef((r,i)=>{const{value:l,cellStyle:a,styles:s,createTemporaryCell:c,bodyStyle:d,sx:u,borderProps:p,disabled:h,...f}=r,m=n.useMemo(()=>c({value:l,style:a}),[l,a,c]),g=n.useMemo(()=>m.getStyle(),[m,d]),x=n.useMemo(()=>g.getFill().toCSS(d?.darkMode??!1),[g]),y=g.getInsets(),b=g.getFont(),w=n.useCallback(()=>g.getBorder(),[g]);return t.jsx(o.Box,{ref:i,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:d?.fill,filter:h?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...x},"& .text":{flex:"1 1 100%",...b.toCSS(d?.darkMode??!1,1),boxSizing:"border-box",padding:`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`,margin:"0px",outline:"none",resize:"none",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"baseline",textDecoration:b.toCSS().textDecoration,textAlign:e.ITextFrame.toCSSHorizontalTextAlign(m.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...u},...f,children:t.jsx(bk,{getBorderAt:w,darkMode:d?.darkMode??!1,rowCount:1,columnCount:1,style:{display:"flex",flex:"1 1 100%",width:"100%",maxWidth:"100%",justifyContent:"start",alignItems:"stretch",...p?.style},...p,children:t.jsx(o.Box,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:t.jsx(o.Box,{className:"text",children:l})})})})})),MM=n.memo(r=>{const{styles:i,namedStyle:l,selectedNamed:a,hasContextMenu:s=!0,bodyStyle:c,onSelectNamed:d,createTemporaryCell:u,parentFloat:p,commands:h,disabled:f,commandHook:m,...g}=r,x=n.useCallback(n=>{const r={variant:Hn.Menuitem,commandHook:m,context:"cellStyle"},i=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...r,sx:{fontWeight:550},command:h.getCommand("formatCellStyle"),commandState:l,disabled:f,icon:pa(t.jsx(rd,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...r,command:h.getCommand("modifyCellStyle"),commandState:{named:l}}),t.jsx(Km,{...r,command:h.getCommand("deleteCellStyle"),commandState:l,disabled:f||l?.getName()===e.IStyle.BuiltInName.Normal})]}),a=t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})});return cp({...n,children:a})},[]),y=l?.getName()===a?.getName();let b=t.jsx(Ap,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${y?e.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:l.getName(),placement:"bottom-start"},disabled:f,icon:null,onClick:()=>{d?.(l)},...g,children:t.jsx(jM,{value:l.getName(),cellStyle:{named:l.getName()},styles:i,createTemporaryCell:u,bodyStyle:c})},l.getName());return s&&(b=t.jsx(jp,{label:l.getName(),parentFloat:p,createPopupPanel:x,children:b})),b}),RM=n.memo(n.forwardRef((r,i)=>{const{commands:l,command:a,commandHook:s,selectedNamed:c,onSelectNamed:d,disabled:u=!1,bodyStyle:p,usePreviewIcon:h=!0,...f}=r;Bn(a);const m=a?.context(),g=m?.styles,x=c??m?.named(),y=p??m?.bodyStyle(),b=nt(e=>{d?.(e),a?.execute(e,s)},[a,d,s]),w=n.useCallback((n,r)=>{const i={onSelectNamed:b,styles:g(),parentFloat:n.floatReference},a=g().getCustomNamed(),c=new Map,d=[];for(let e=0;e<a.length;e++)c.set(a[e].getName(),a[e]),null===g().getNamed(a[e].getName()).getBuiltInID()&&d.push(a[e].getName());const p=e=>{let n=c.get(e);return n||(n=g().getNamed(e)),!n||n.isHidden()?null:t.jsx(MM,{namedStyle:n,selectedNamed:x,bodyStyle:m.bodyStyle(),createTemporaryCell:m.createTemporaryCell,commands:l,commandHook:s,...i},e)},h=(e,n,r=!0)=>{const i=[];for(let e=0;e<n.length;e++){const t=p(n[e]);t&&i.push(t)}return 0===i.length?null:t.jsxs(o.Box,{children:[r?t.jsx(du,{orientation:"horizontal"}):null,t.jsx(Bp,{children:e},e+"-header"),t.jsx(o.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:i},e+"-presets")]},e)},f=(e,n)=>{const r=[];for(let e=0;e<n.length;e++){const t=p(n[e]);t&&r.push(t)}return 0===r.length?null:t.jsx(o.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:r},e+"-presets")},y=[];y.push(h("Custom",d,!1)),y.push(h("Good, Bad and Neutral",[e.IStyle.BuiltInName.Normal,e.IStyle.BuiltInName.Bad,e.IStyle.BuiltInName.Good,e.IStyle.BuiltInName.Neutral],d.length>0)),y.push(h("Data and Model",[e.IStyle.BuiltInName.Calculation,e.IStyle.BuiltInName.CheckCell,e.IStyle.BuiltInName.ExplanatoryText,e.IStyle.BuiltInName.FollowedHyperlink,e.IStyle.BuiltInName.Hyperlink,e.IStyle.BuiltInName.Input,e.IStyle.BuiltInName.LinkedCell,e.IStyle.BuiltInName.Note,e.IStyle.BuiltInName.Output,e.IStyle.BuiltInName.WarningText])),y.push(h("Titles and Headings",[e.IStyle.BuiltInName.Heading1,e.IStyle.BuiltInName.Heading2,e.IStyle.BuiltInName.Heading3,e.IStyle.BuiltInName.Heading4,e.IStyle.BuiltInName.Title,e.IStyle.BuiltInName.Total]));let w=[];var v,S;return w.push(f("Accent 1",[e.IStyle.BuiltInName.Accent1_20,e.IStyle.BuiltInName.Accent1_40,e.IStyle.BuiltInName.Accent1_60,e.IStyle.BuiltInName.Accent1])),w.push(f("Accent 2",[e.IStyle.BuiltInName.Accent2_20,e.IStyle.BuiltInName.Accent2_40,e.IStyle.BuiltInName.Accent2_60,e.IStyle.BuiltInName.Accent2])),w.push(f("Accent 3",[e.IStyle.BuiltInName.Accent3_20,e.IStyle.BuiltInName.Accent3_40,e.IStyle.BuiltInName.Accent3_60,e.IStyle.BuiltInName.Accent3])),w.push(f("Accent 4",[e.IStyle.BuiltInName.Accent4_20,e.IStyle.BuiltInName.Accent4_40,e.IStyle.BuiltInName.Accent4_60,e.IStyle.BuiltInName.Accent4])),w.push(f("Accent 5",[e.IStyle.BuiltInName.Accent5_20,e.IStyle.BuiltInName.Accent5_40,e.IStyle.BuiltInName.Accent5_60,e.IStyle.BuiltInName.Accent5])),w.push(f("Accent 6",[e.IStyle.BuiltInName.Accent6_20,e.IStyle.BuiltInName.Accent6_40,e.IStyle.BuiltInName.Accent6_60,e.IStyle.BuiltInName.Accent6])),y.push((v="Themed Cell Styles",S=w,t.jsxs(o.Box,{children:[t.jsx(du,{orientation:"horizontal"}),t.jsx(Bp,{children:v},v+"-header"),t.jsx(o.Box,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:S},v+"-presets")]},v))),y.push(h("Number Format",[e.IStyle.BuiltInName.Comma,e.IStyle.BuiltInName.Comma0,e.IStyle.BuiltInName.Currency,e.IStyle.BuiltInName.Currency0,e.IStyle.BuiltInName.Percent])),t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:e=>`${e.shape.borderRadius}px`,paddingBottom:e=>`${e.shape.borderRadius}px`},children:[t.jsx(o.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:y}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{variant:Hn.Menuitem,commandState:x,command:r.getCommand("newCellStyle"),context:"styles",commandHook:s,disabled:u,icon:pa(t.jsx(id,{}))})]})},[x,g?.().getTheme(),y]),v=nt(t=>{const n=18/e.IFont.getDeviceScale(),o=m?.createTemporaryCell(t);return o.getStyle().getFont().getSize()<=n?o:o.createTemporaryCell({style:{font:{size:n}}})},[m?.createTemporaryCell]),S=u||!a||a.disabled(),C=n.useMemo(()=>m&&h?t.jsx(jM,{value:x?.getName()??"Custom",cellStyle:x?{named:x.getName()}:void 0,styles:m.styles(),createTemporaryCell:v,bodyStyle:m.bodyStyle(),className:"outline-hover",disabled:S,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:e=>`1px solid ${e.palette.action.hover}`},borderProps:{}}):pa(t.jsx(rd,{})),[x,y,S]);return t.jsx(Ym,{ref:i,createPopupPanel:w,outlined:h,commands:l,createTooltip:({children:e},n)=>t.jsx(Lp,{label:a?.label(),description:a?.description(),disabled:n,children:e}),selected:!1,disabled:S,label:a?.label(),icon:C,...f})})),IM="_sheetxl-reset_ods65_1",DM=10,LM=n.memo(n.forwardRef((r,i)=>{const{styles:l,table:a,tableStyle:s=a?.getStyle()??l.getDefaultTableStyle(),bodyStyle:c,sx:d,disabled:u,className:p,forceThinBorder:f,cellHeight:m=DM,isLive:g=!1,...x}=r,y=Math.ceil(1.3*m),[b,w]=n.useReducer(e=>e+1,0);n.useEffect(()=>{if(g&&a)return a.addListeners({onAnyChange:()=>{w()}})},[a,g]);const v=n.useMemo(()=>{let t=a?.toJSON()??{};const n={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return t&&(t.styleOptions={...t.styleOptions,name:s.getName()}),t.ref=n,new e.Table({initialAnchor:n,json:t,styles:l})},[b,a,s,l]),S=n.useMemo(()=>{const e=[];for(let t=0;t<5;t++)for(let n=0;n<5;n++){const o=v.getStyleAt({colIndex:n,rowIndex:t});e.push(o)}return e},[v]),C=n.useMemo(()=>{const e=(e,n,o)=>{let r=o.getFill().toCSS(c?.darkMode??!1);const i=y-(n<4?1:0),l=m-(e<4?1:0),a=o.getFont().getFill().toCSS(c?.darkMode??!1);return r={...r,position:"absolute",boxSizing:"border-box",left:n*(y-1),top:e*(m-1),width:i,height:l},t.jsx("td",{className:`table-style-fill ${e}-${n}`,style:r,children:t.jsx("div",{className:`table-style-text ${e}-${n}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(i-6)/2,top:(l-1)/2,borderTop:`1px solid ${a}`}})},`${e}-${n}`)},n=[];for(let o=0;o<5;o++){const r=[];for(let t=0;t<5;t++){const n=S[5*o+t];r.push(e(o,t,n))}n.push(t.jsx("tr",{children:r},o))}return n},[v,s,c]),k=n.useCallback((e,t)=>S[t].getBorder()??null,[S]);return t.jsx(o.Box,{ref:i,className:"table-format-preview",sx:{background:c?.fill,filter:u?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...d},...x,children:t.jsx(bk,{getBorderAt:k,rowCount:5,columnCount:5,forceThinBorder:f,width:5*(y-1)+1,height:5*(m-1)+1,darkMode:c?.darkMode??!1,style:{pointerEvents:"none"},children:t.jsx("table",{className:h(p,"sheetxl-table-preview",IM),style:{borderCollapse:"collapse",width:5*(y-1)+1,height:5*(m-1)+1},children:t.jsx("tbody",{children:C})})})})})),OM=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},PM=n.memo(n.forwardRef((o,r)=>{const{table:i,tableStyle:l,styles:a,bodyStyle:s,disabled:c,style:d,className:u,canvas:p,...f}=o,m=n.useMemo(()=>{const t=i.toJSON(),n={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return t.styleOptions={...t.styleOptions,name:l.getName()},t.ref=n,new e.Table({initialAnchor:n,json:t,styles:a})},[i,l,a]),g=n.useMemo(()=>{const e=[];for(let t=0;t<5;t++)for(let n=0;n<5;n++){const o=m.getStyleAt({colIndex:n,rowIndex:t});e.push(o)}return e},[m]),x=n.useMemo(()=>{let t=p;if(p||(t=document.createElement("canvas")),!t)return null;61!==t.width&&(t.width=61),46!==t.height&&(t.height=46);const n=t.getContext("2d",{alpha:!1});if(!n)return null;const o=12,r=s?.darkMode??!1;for(let t=0;t<5;t++)for(let i=0;i<5;i++){const l=g[5*t+i].getFill();let a=s?.fill;l.getType()===e.IFill.Type.Solid?a=l.getColor().toCSS(r,!1):l.getType()===e.IFill.Type.Gradient?a=l.getStops[0]?.color.toCSS(r,!1):l.getType()===e.IFill.Type.Pattern&&(a=l.getForeground().toCSS(r,!1)),n.fillStyle=a;const c=i*o,d=9*t;n.fillRect(c,d,13,10)}n.lineWidth=1;for(let e=0;e<5;e++)for(let t=0;t<5;t++){const i=g[5*e+t],l=t*o,a=9*e,s=i.getBorder();if(!s.isEmpty()){const t=s.getLeft();t.isNone()||(n.strokeStyle=t.getColor().toCSS(r,!1),OM(n,l,a,l,a+9));const i=s.getTop();i.isNone()||(n.strokeStyle=i.getColor().toCSS(r,!1),OM(n,l,a,l+o,9*e));const c=s.getRight();c.isNone()||(n.strokeStyle=c.getColor().toCSS(r,!1),OM(n,l+o,a,l+o,a+9));const d=s.getBottom();d.isNone()||(n.strokeStyle=d.getColor().toCSS(r,!1),OM(n,l,a+9,l+o,a+9))}n.strokeStyle=i.getFont().getFill().toCSS(r,!1);const c=4,d=2.5;OM(n,t*o+d,9*e+c,t*o+d+7,9*e+c)}return`url(${t.toDataURL()})`},[p,m,l,s]);return t.jsx("div",{ref:r,className:h("table-style-preview",u),style:{backgroundImage:x,width:61,height:46,...d},...f})})),AM=n.memo(n.forwardRef((e,n)=>{const{styleOptions:r,onStyleOptionsChange:i,showHeaderRow:l,onShowHeaderRowChange:a,showTotalRow:s,onShowTotalRowChange:c,showFilterButton:d,onShowFilterButtonChange:u,sx:p,disabled:h,...f}=e;return t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap",userSelect:"none",pt:1,pb:1,"& .MuiFormControlLabel-root":{marginLeft:e=>`${e.spacing(2)}`,marginRight:e=>`${e.spacing(2)}`},"& .MuiCheckbox-root":{padding:e=>`${e.spacing(.5)}`},...p},...f,ref:n,children:[a&&t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:l??!1,indeterminate:null==l,onChange:()=>a(!l),disabled:h||null==l}),label:"Header Row",labelPlacement:"end"}),c&&t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:s??!1,indeterminate:null==s,onChange:()=>c(!s),disabled:h||null==s}),label:"Total Row",labelPlacement:"end"}),t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:r?.showRowStripes??!1,indeterminate:!r,disabled:h||!r,onChange:()=>{i?.({...r,showRowStripes:!r?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:r?.showFirstColumn??!1,indeterminate:!r,disabled:h||!r,onChange:()=>{i?.({...r,showFirstColumn:!r?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:r?.showLastColumn??!1,indeterminate:!r,disabled:h||!r,onChange:()=>{i?.({...r,showLastColumn:!r?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:r?.showColumnStripes??!1,indeterminate:!r,disabled:h||!r,onChange:()=>{i?.({...r,showColumnStripes:!r?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),u&&t.jsx(o.FormControlLabel,{control:t.jsx(o.Checkbox,{checked:d??!1,indeterminate:null==d,disabled:h||!r||null==d,onChange:()=>u(!d)}),label:"Filter Button",labelPlacement:"end"})]})})),FM=n.memo(e=>{const{table:r,tableStyle:i,selectedTableStyleName:l,onSelectTableStyleName:a,styles:s,hasContextMenu:c=!0,bodyStyle:d,parentFloat:u,commands:p,disabled:h,commandHook:f,useCanvasPreview:m=!0,canvas:g,...x}=e,y=n.useCallback(e=>{const n={variant:Hn.Menuitem,commandHook:f,context:"table"},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...n,command:p.getCommand("formatTableStyleClearCellStyles"),commandState:i,disabled:h,icon:pa(t.jsx(rd,{}))}),t.jsx(Km,{...n,sx:{fontWeight:550},command:p.getCommand("formatTableStyle"),commandState:{name:i.getName()},disabled:h,icon:pa(t.jsx(rd,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...n,command:p.getCommand("setDefaultTableStyle"),commandState:i.getName(),disabled:h}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...n,command:p.getCommand("deleteTableStyle"),commandState:i?.getName(),disabled:h||!i||i.isBuiltIn()})]}),l=t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:r})});return cp({...e,children:l})},[p]),b=i?.getName()===l,w=n.useMemo(()=>{const e={table:r,tableStyle:i,styles:s,bodyStyle:d};return m?t.jsx(PM,{canvas:g,...e}):t.jsx(LM,{...e})},[r,i,s,d]);let v=t.jsx(Ap,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${b?e.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:i.getName()??"None",placement:"bottom-start"},disabled:h,icon:null,onClick:()=>{a?.(i?.getName())},...x,children:w},i.getName());return c&&(v=t.jsx(jp,{label:r.getStyleOptions().name,parentFloat:u,createPopupPanel:y,children:v})),v}),zM=n.memo(n.forwardRef((r,i)=>{const{commands:l,command:a,commandHook:s,selectedTable:c,onSelectTableStyleName:d,disabled:u=!1,bodyStyle:p,usePreviewIcon:h=!1,...f}=r;Bn(a);const m=a?.context(),g=m?.styles,x=c??m?.table?.();let y="insertTable";x&&(y="editTable");const b=n.useMemo(()=>((t,n)=>{const o={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new e.Table({initialAnchor:o,styles:n,json:{name:"PreviewTable",ref:o,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:t}})})(x?.getStyleOptions(),g?.()),[g?.().getDefaultTableStyle(),x?.getStyleOptions()]),w=x??b,[v,S]=n.useState(w);n.useEffect(()=>{S(w)},[w]);const C=p??m?.bodyStyle(),k=nt(e=>{d?.(e),a?.execute({name:e},s)},[a,d,s]),E=n.useRef(null),_=n.useCallback((e,n)=>{const r={onSelectTableStyleName:k,styles:g(),parentFloat:e.floatReference};E.current||(E.current=document.createElement("canvas"));const i=e=>{const o=g().getTableStyle(e);return o?t.jsx(FM,{table:v,tableStyle:o,selectedTableStyleName:v.getStyleOptions().name,bodyStyle:m.bodyStyle(),commands:n,commandHook:s,canvas:E.current,...r},e):null},l=(e,n,r=!0)=>{const l=[];for(let e=0;e<n.length;e++){const t=i(n[e]);t&&l.push(t)}return 0===l.length?null:t.jsxs(o.Box,{children:[r?t.jsx(du,{orientation:"horizontal"}):null,t.jsx(Bp,{children:e},e+"-header"),t.jsx(o.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:l},e+"-presets")]},e)},a=[],c=g().getCustomTableStyles(),d=[];if(c.length>0){for(let e=0;e<c.length;e++)c[e].isShownInTableStyles()&&d.push(c[e].getName());a.push(l("Custom",d,!1))}const p=[];x&&!x.getStyleOptions().name&&p.push(null);for(let e=0;e<21;e++)p.push("TableStyleLight"+(e+1));a.push(l("Light",p,d.length>0));const h=[];for(let e=0;e<28;e++)h.push("TableStyleMedium"+(e+1));a.push(l("Medium",h));const f=[];for(let e=0;e<11;e++)f.push("TableStyleDark"+(e+1));a.push(l("Dark",f));let y=null;return x&&(y=t.jsxs(t.Fragment,{children:[t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{variant:Hn.Menuitem,command:n.getCommand("formatTableStyleClearTableStyle"),commandHook:s,disabled:u,icon:pa(t.jsx(Tr,{}))})]})),t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:e=>`${e.shape.borderRadius}px`,paddingBottom:e=>`${e.shape.borderRadius}px`},children:[t.jsx(o.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:a}),y]})},[g,g?.().getTheme(),C,v]),T=u||!a||a.disabled(),j=n.useMemo(()=>{if(!m||!h)return pa(t.jsx(rd,{}))},[v,C,T]);return t.jsx(Ym,{ref:i,quickCommand:y,createPopupPanel:_,commands:l,label:a?.label(),commandState:x,commandHook:s,selected:null!==x,createTooltip:({children:e},n)=>t.jsx(Lp,{label:a?.label(),description:a?.description(),disabled:n,children:e}),disabled:T,icon:j,...f})})),BM=[];BM.push(Gj("Primary Background","bg1")),BM.push(Gj("Primary Text","tx1")),BM.push(Gj("Secondary Background","bg2")),BM.push(Gj("Secondary Text","tx2")),BM.push(Gj("Accent 1","accent1")),BM.push(Gj("Accent 2","accent2")),BM.push(Gj("Accent 3","accent3")),BM.push(Gj("Accent 4","accent4")),BM.push(Gj("Accent 5","accent5")),BM.push(Gj("Accent 6","accent6"));const NM=e=>{const{docTheme:r,onSelectTheme:i,darkMode:l,isSelected:a,outlined:s,sx:c,...d}=e,u=sb(),p=n.useMemo(()=>{let e=[];for(let n=0;n<BM.length;n++){const o=BM[n];e.push(t.jsx(qj,{schemeColorLookup:r.schemeLookup(),colorDef:o,darkMode:l,selectedColor:null},n+"-colorDef"))}return t.jsx(o.Box,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:t.jsx(o.Box,{sx:{display:"flex",boxShadow:e=>e.shadows[2]},children:e})})},[r,u]);return t.jsx(Ap,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${a?e.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:e=>`solid ${e.palette.text.primary} 1px !important`}},icon:null,...d,children:t.jsxs(o.Box,{sx:{border:e=>`solid ${e.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:e=>a?e.palette.text.primary:void 0,"&:hover:not([disabled])":{color:e=>e.palette.text.primary}},children:[t.jsx(o.Box,{sx:{},children:r.getName()}),t.jsxs(o.Box,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[p,t.jsx(o.Box,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>r.getFontScheme().getMajorFont()},children:t.jsx(Mp,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:t.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.\nThe heading font is '${r.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:t.jsx("div",{children:r.getFontScheme().getMinorFont()})})})]})]})})},VM=n.memo(n.forwardRef((e,r)=>{const{themes:i,selectedTheme:l,onSelectTheme:a,sx:s,disabled:c=!1,darkMode:d,...u}=e,p=n.useMemo(()=>{const e=i?.search({selected:l})??[],n=[];if(0===e.length)return t.jsx(Bp,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let o=0;o<e.length;o++){const r=e[o],i=l&&r?.getName()===l.getName(),s=e[o+1];s&&s.isCustom()!==r.isCustom()&&n.push(t.jsx(du,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${o}`)),n.push(t.jsx(NM,{docTheme:r,onSelectTheme:()=>a(r),isSelected:i,disabled:c,darkMode:d,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&a(r)},onKeyDown:e=>{e.keyCode!==qe.Enter&&e.keyCode!==qe.Space||a(r)}},r.getName()))}return n},[l,a,d]);return t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:r,...u,children:t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[t.jsx(Bp,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),t.jsx(du,{}),t.jsx(o.Box,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:p})]})})})),HM=n.memo(n.forwardRef((e,o)=>{const{themes:r,selectedTheme:i,onSelectTheme:l,icon:a,tooltip:s,label:c,variant:d=sp.Toolbar,darkMode:u,panelProps:p,...h}=e,f=a||pa(t.jsx(sd,{})),m=n.useCallback(e=>{const{closeFloatAll:n}=e;return t.jsx(VM,{...p,themes:r,selectedTheme:i,onSelectTheme:l,darkMode:u,onKeyDown:e=>{e.which===qe.Enter&&n()}})},[r,i,l,p,u]),g={createPopupPanel:m,tooltip:s||c||"Theme",label:c,icon:f,...h};return d===sp.Toolbar?t.jsx(Np,{ref:o,...g}):t.jsx(Hp,{ref:o,...g})})),$M=n.memo(n.forwardRef((e,o)=>{const{command:r,commandHook:i,selectedTheme:l,onSelectTheme:a,disabled:s=!1,darkMode:c,label:d,icon:u,variant:p,...h}=e;Bn(r);const f=r?.context()?.themes,m=l||r?.context()?.theme,g=c??r?.context()?.darkMode,x=s||r?.disabled(),y=nt(e=>{a?.(e),r?.execute(e,i)},[a,i]),b=n.useCallback((e,n)=>{const{children:o,title:i,...l}=e;let a=e.children;return(x||n)&&(a=t.jsx("div",{children:a})),t.jsx(Gm,{command:r,placement:p===Hn.Toolbar?"bottom-start":"right-start",disabled:x||n,...l,children:a})},[r,x]);return t.jsx(HM,{ref:o,themes:f,selectedTheme:m,onSelectTheme:y,variant:p===Hn.Menuitem?sp.Menuitem:sp.Toolbar,createTooltip:b,disabled:x,darkMode:g,icon:pa(t.jsx(sd,{})),...h})})),WM=n.memo(n.forwardRef((e,n)=>{const{commands:i,commandHook:l,scope:a,disabled:s=!1,...c}=e,d=Vn(i,["themeMode"])[0],u=d?.state(),p=null!==d?.state(),h=o.useMediaQuery("(prefers-color-scheme: dark)"),f="dark"===u||null===u&&h,m=nt((e,n)=>{const o={variant:Hn.Menuitem,commandHook:l,scope:"appearance",disabled:s},i=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:d,icon:pa(f?t.jsx(r.DarkMode,{}):t.jsx(r.LightMode,{}))}),t.jsx(Km,{...o,command:n.getCommand("defaultThemeMode"),icon:pa(h?t.jsx(fd,{}):t.jsx(md,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("enableDarkGrid")}),t.jsx(Km,{...o,command:n.getCommand("enableDarkImages")})]});return cp({...e,children:i})},[s,d,l,a,h,u,p]);return t.jsx(Ym,{ref:n,quickCommand:"themeMode",commands:i,commandHook:l,createPopupPanel:m,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{d?.execute(f?"light":"dark",l)},selected:p,icon:pa(f?t.jsx(r.DarkMode,{}):t.jsx(r.LightMode,{})),...c})})),UM=n.memo(n.forwardRef((e,o)=>{const{commands:i,commandHook:l,scope:a,disabled:s=!1,sx:c,...d}=e,u=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,scope:"help",commandHook:{...l,beforeExecute:(t,n)=>{const o=l?.beforeExecute?.(t,n);return!1!==o&&e.floatReference.closeAll()}},disabled:s},i=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("showKeyboardShortcuts"),icon:pa(t.jsx(r.Keyboard,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:n.getCommand("gotoUrlGithub"),icon:pa(t.jsx(vd,{}))}),t.jsx(Km,{...o,command:n.getCommand("gotoUrlDiscord"),icon:pa(t.jsx(wd,{}))}),t.jsx(Km,{...o,command:n.getCommand("gotoUrlDocumentation"),icon:pa(t.jsx(bd,{}))}),t.jsx(Km,{...o,command:n.getCommand("gotoUrlIssue"),icon:pa(t.jsx(yd,{}))})]});return cp({...e,children:i})},[s,l]);return t.jsx(Ym,{ref:o,sx:c,commands:i,disabled:s,commandHook:l,scope:a,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:u,icon:pa(t.jsx(xd,{sx:{transform:"scale(0.75)"}})),...d})})),qM=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l,disabled:a=!1,preferSingleMenu:s=!0,showQuickButton:c=!0,variant:d=Hn.Toolbar,...u}=e,p=Vn(r,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:h,allDisabled:f}=n.useMemo(()=>{let e=null,t=0;for(let n=0;n<p.length;n++)p[n]&&!p[n]?.disabled()&&(s&&d===Hn.Menuitem&&(e=0===t?p[n]:null),t++);return{singleMenuCommand:e,allDisabled:0===t}},[p]),m=n.useCallback((e,n)=>{const o={variant:Hn.Menuitem,commandHook:i,scope:"insertImage",disabled:a},r=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:n.getCommand("insertImageFromFile"),icon:pa(t.jsx(Mc,{}))}),t.jsx(Km,{...o,command:n.getCommand("insertImageFromURL"),icon:pa(t.jsx(Mc,{}))})]});return cp({...e,children:r})},[a,i,l]);return h?t.jsx(Km,{ref:o,variant:d,commandHook:i,disabled:a,command:h,icon:pa(t.jsx(Mc,{})),...u}):t.jsx(Ym,{ref:o,variant:d,quickCommand:"insertImageFromFile",commands:r,commandHook:i,scope:l,disabled:a||f,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:m,icon:pa(t.jsx(Mc,{})),...u})})),ZM=n.memo(n.forwardRef((e,o)=>{const{command:r,...i}=e,l=Dn(),[a,s]=n.useState(!1),[c,d]=n.useState("info");return n.useEffect(()=>{const e=l.getMode();s("copy"===e?.key||"cut"===e?.key),d("cut"===e?.key?"warning":"info")},[l]),t.jsx(Km,{ref:o,command:r,icon:pa(t.jsx(pc,{isWalking:a,themedType:c})),...i})})),GM=n.memo(n.forwardRef((e,n)=>{const{...o}=e;return t.jsx(tg,{ref:n,...o,popupCommandKeys:["quickFormulaSum","quickFormulaAverage","quickFormulaCount","quickFormulaMax","quickFormulaMin",null,"insertFunction"],quickCommand:"quickFormulaSum",popupScope:"quickFormula",label:"Quick Formulas",tooltip:"More quick functions.",icon:e=>{const n=e?.key();switch(n){case"quickFormulaSum":return pa(t.jsx(eu,{}));case"insertFunction":return pa(t.jsx(Qd,{}));default:return null}}})})),KM=n.createContext(null);KM.displayName="HookFormContext";const XM=()=>n.useContext(KM),YM=n.memo(n.forwardRef((e,r)=>{const{disabled:i,style:l,className:s,sx:c,defaultInput:d,value:u,formName:p,formOptions:f,onChangeInput:m,onValidate:g,onKeyDown:x,...y}=e,b=XM(),w=p&&b?b.register(p,f):null,[v,S]=n.useState(""),[C,k]=n.useState(""),[E,_]=n.useState(u);n.useEffect(()=>{_(u),k("")},[u]);const T=nt(e=>{let t="";try{_(e),g?.(e),m?.(e)}catch(e){t=e.message??"Invalid Name"}p&&b&&(t?b.setError(p,{message:t}):b.clearErrors(p)),k(t)},[u,g,m]),j=nt(async e=>{e.keyCode===qe.Escape&&v!==u&&(T(v),b?.setValue(p,v),b?.clearErrors(p),e.stopPropagation()),x?.(e)},[x,v,u,b]),M=nt(e=>{S(e.target.value??"")},[]),R=nt(e=>{S(""),w?.onBlur(e)},[]),I=n.useCallback(e=>{T(e.target.value),w?.onChange(e)},[w]);return t.jsx(o.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%",...c},size:"small",ref:r,className:h("named-input",s),...y,children:t.jsx(o.TextField,{label:"Name",placeholder:d,onFocus:M,onBlur:R,inputRef:w?.ref,disabled:i,error:!!C,helperText:C||" ",sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:p,spellCheck:!1,autoComplete:"off",readOnly:i,sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`}}},value:E??"",onChange:I,onKeyDownCapture:j,onContextMenu:e=>{e.stopPropagation()}})})}));YM.displayName="NamedInput";const JM=e=>null===e?"":e.toString(),QM=n.memo(n.forwardRef((e,r)=>{const{formName:i,formOptions:l,disabled:s,style:c,className:d,sx:u,onKeyDown:p,value:f,onChangeInput:m,resolvedAddress:g,...x}=e,y=XM(),b=i&&y?y.register(i,l):null,[w,v]=n.useState(""),[S,C]=n.useState(!1),[k,E]=n.useState(()=>JM(f));n.useEffect(()=>{E(JM(f)),v(""),i&&y&&y.clearErrors(i),C(!1)},[f]);const _=nt(e=>{let t="";try{E(e);const t=JM(f),n=g(e);n.toString()!==t&&m?.(n)}catch(e){t="Invalid Range"}i&&y&&(t?y.setError(i,{message:t}):y.clearErrors(i)),v(t),C(!0)},[k,m,i,y]),T=nt(async e=>{if(S&&e.keyCode===qe.Escape){const t=JM(f);E(t),v(""),C(!1),e.stopPropagation()}p?.(e)},[f,m,p,S]),j=nt(e=>{b?.onBlur(e)},[b]),M=n.useCallback(e=>{_(e.target.value),b?.onChange(e)},[b]),[R,I]=n.useState(!1),D=n.useMemo(()=>t.jsx(o.InputAdornment,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:t.jsx($p,{disabled:!0,selected:R,onSelectToggle:e=>{I(e)},label:"Select Range",icon:pa(t.jsx(Kd,{}))})}),[R]);return t.jsx(o.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%",...u},size:"small",ref:r,className:h("range-input",d),...x,children:t.jsx(o.TextField,{label:"Range",placeholder:"Enter Range",onBlur:j,disabled:s,error:!!w,inputRef:b?.ref,helperText:w||" ",sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:s,name:i,sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},endAdornment:D},value:k??"",onChange:M,onKeyDownCapture:T,onContextMenu:e=>{e.stopPropagation()}})})}));QM.displayName="RangeInput";const eR=n.memo(n.forwardRef((i,l)=>{const{sheet:a,className:s,debounceDelay:c=220,sx:d,...u}=i,[p,f]=n.useState(()=>a.getView().getZoomScale()),[m,g]=n.useState(null),x=n.useRef(0);kk(a,{onViewChange:()=>{g(!0),0===x.current&&f(a.getView().getZoomScale())}}),n.useEffect(()=>{x.current=0,g(!1),f(a.getView().getZoomScale())},[a]),n.useEffect(()=>{0!==x.current&&e.CommonUtils.debounce(()=>{p===x.current&&(x.current=0,a.getView().update({zoomScale:p}))},c)()},[p,c]);const y=nt(e=>{let t=e;e<100?t=Math.round(e/(10/9)+10):e>100&&(t=Math.round(3*e-200)),x.current=t,g(!0),f(t)},[a]),b=e=>{let t=e;return e<100?t=10/9*(e-10):e>100&&(t=(e+200)/3),t},w=b(p),[v,S]=n.useState(null),C=n.useRef(null),k=n.useCallback(()=>{const e=v;e&&requestAnimationFrame(()=>{C.current?.contains(document.activeElement)&&e.focus()})},[]),E=yn(()=>{y(b(e.CommonUtils.findNextStep(a.getView().getZoomScale(),!1,10)))}),_=yn(()=>y(b(e.CommonUtils.findNextStep(a.getView().getZoomScale(),!0,10)))),T=sb(),j=n.useMemo(()=>`${e.IFont.getSharedMeasurer()("100%",Math.round(T.typography.fontSize),T.typography.fontFamily).width}px`,[T]);return t.jsxs(o.Box,{ref:l,className:h(s),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:e=>e.palette.text.secondary,...d},onFocus:e=>{e.relatedTarget&&!v&&S(e.relatedTarget)},onBlur:e=>{v&&!C?.current?.contains(e.relatedTarget)&&S(null)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&k()},...u,children:[t.jsx(Mp,{disableInteractive:!0,title:"Zoom Out",children:t.jsx(o.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:e=>{0!==e.button?e.preventDefault():E(e)},children:t.jsx(r.Remove,{})})}),t.jsx(o.Slider,{ref:C,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:e=>`0px 0px 0px 3px ${hp(e.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:e=>`0px 0px 0px 2px ${hp(e.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:m?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:w,max:200,marks:[{value:100}],onAnimationEnd:()=>g(!1),onWheel:t=>{y(b(e.CommonUtils.findNextStep(a.getView().getZoomScale(),t.deltaY<0,10)))},onKeyDown:t=>{t.which===qe.Down||t.which===qe.Right?(y(b(e.CommonUtils.findNextStep(a.getView().getZoomScale(),!0,10))),t.preventDefault()):t.which===qe.Up||t.which===qe.Left?(y(b(e.CommonUtils.findNextStep(a.getView().getZoomScale(),!1,10))),t.preventDefault()):t.which!==qe.Enter&&t.which!==qe.Escape||k()},onChange:(e,t)=>{Math.abs(t-100)<3?y(100):y(t)},valueLabelFormat:(e,t)=>`Zoom: ${Math.round(p)}%`}),t.jsx(Mp,{disableInteractive:!0,title:"Zoom In",children:t.jsx(o.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:e=>{0!==e.button?e.preventDefault():_(e)},children:t.jsx(r.Add,{})})}),t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row"},children:[t.jsx(o.Box,{sx:{minWidth:"8px"}}),t.jsx(o.Typography,{noWrap:!0,component:"div",onClick:()=>{y(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:j},children:t.jsx("div",{children:Math.round(p)+"%"})})]})]})}));eR.displayName="SheetZoomScale";const tR=n.memo(n.forwardRef((e,r)=>{const{sx:i,sheet:l,gridStyle:a,children:s,childrenEnd:c,...d}=e;n.useImperativeHandle(r,()=>({}));const u=n.useRef(null);n.useEffect(()=>{const e=e=>e.preventDefault();return u.current?.addEventListener("wheel",e,{passive:!1}),()=>{u.current?.removeEventListener("wheel",e)}},[]);const p=Dn(),h=n.useMemo(()=>{const e=p.getMode();return e?.description?e.description:"Ready"},[p]),[f,m]=n.useState(!1);return t.jsxs(o.Box,{ref:u,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 ${a.header.edgeStrokeFill}`,...i},onMouseOver:()=>m(!0),onMouseLeave:()=>m(!1),...d,children:[s,t.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:t.jsx(o.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:e=>e.palette.text.secondary},variant:"caption",children:h})}),c?t.jsx(o.Box,{sx:{display:"flex",alignItems:"center"},children:c}):null,t.jsx(du,{style:{marginTop:"6px",marginBottom:"6px"}}),t.jsx(eR,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:l})]})}));tR.displayName="StatusBar";var nR,oR={exports:{}},rR={},iR={exports:{}},lR={},aR={exports:{}};var sR,cR={},dR={};function uR(){if(sR)return dR;return sR=1,Object.defineProperty(dR,"__esModule",{value:!0}),dR.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.`)},dR.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]},dR.int=function(e){return parseInt(e,10)},dR.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},dR.isNum=function(e){return"number"==typeof e&&!isNaN(e)},dR}var pR,hR,fR={};function mR(){if(hR)return cR;hR=1,Object.defineProperty(cR,"__esModule",{value:!0}),cR.addClassName=l,cR.addEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,r):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},cR.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&l(e.body,"react-draggable-transparent-selection")},cR.createCSSTransform=function(e,n){const o=r(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:o}},cR.createSVGTransform=function(e,t){return r(e,t,"")},cR.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,e=>n===e.identifier)||t.changedTouches&&(0,e.findInArray)(t.changedTouches,e=>n===e.identifier)},cR.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},cR.getTranslation=r,cR.innerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingTop),n-=(0,e.int)(o.paddingBottom),n},cR.innerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingLeft),n-=(0,e.int)(o.paddingRight),n},cR.matchesSelector=o,cR.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},cR.offsetXYFromParent=function(e,t,n){const o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),r=(e.clientX+t.scrollLeft-o.left)/n,i=(e.clientY+t.scrollTop-o.top)/n;return{x:r,y:i}},cR.outerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderTopWidth),n+=(0,e.int)(o.borderBottomWidth),n},cR.outerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderLeftWidth),n+=(0,e.int)(o.borderRightWidth),n},cR.removeClassName=a,cR.removeEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},cR.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(e)}):i(e)};var e=uR(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(function(){if(pR)return fR;pR=1,Object.defineProperty(fR,"__esModule",{value:!0}),fR.browserPrefixToKey=n,fR.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},fR.default=void 0,fR.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(t in o)return"";for(let r=0;r<e.length;r++)if(n(t,e[r])in o)return e[r];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):"-"===e[o]?n=!0:t+=e[o];return t}(e)}`:e}return fR.default=t(),fR}());let n="";function o(t,o){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,e.isFunction)(t[n])})),!!(0,e.isFunction)(t[n])&&t[n](o)}function r(e,t,n){let{x:o,y:r}=e,i=`translate(${o}${n},${r}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return cR}var gR,xR={};function yR(){if(gR)return xR;gR=1,Object.defineProperty(xR,"__esModule",{value:!0}),xR.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},xR.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},xR.createCoreData=function(t,o,r){const i=!(0,e.isNum)(t.lastX),l=n(t);return i?{node:l,deltaX:0,deltaY:0,lastX:o,lastY:r,x:o,y:r}:{node:l,deltaX:o-t.lastX,deltaY:r-t.lastY,lastX:t.lastX,lastY:t.lastY,x:o,y:r}},xR.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},xR.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=n(o);if("string"==typeof l){const{ownerDocument:n}=a,o=n.defaultView;let r;if("parent"===l)r=a.parentNode;else{r=a.getRootNode().querySelector(l)}if(!(r instanceof o.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=r,s=o.getComputedStyle(a),c=o.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(l.right)&&(r=Math.min(r,l.right));(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom));(0,e.isNum)(l.left)&&(r=Math.max(r,l.left));(0,e.isNum)(l.top)&&(i=Math.max(i,l.top));return[r,i]},xR.getControlPosition=function(e,o,r){const i="number"==typeof o?(0,t.getTouch)(e,o):null;if("number"==typeof o&&!i)return null;const l=n(r),a=r.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,r.props.scale)},xR.snapToGrid=function(e,t,n){const o=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[o,r]};var e=uR(),t=mR();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return xR}var bR,wR,vR,SR,CR={},kR={};function ER(){if(bR)return kR;return bR=1,Object.defineProperty(kR,"__esModule",{value:!0}),kR.default=function(){},kR}function _R(){if(wR)return CR;wR=1,Object.defineProperty(CR,"__esModule",{value:!0}),CR.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(n),t=c(_x()),o=c(l),r=mR(),i=yR(),a=uR(),s=c(ER());function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=p,f=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:a,y:c}=l,d=(0,i.createCoreData)(this,a,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=c,(0,r.addEvent)(n,h.move,this.handleDrag),(0,r.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=o-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,o=this.lastY+t}const r=(0,i.createCoreData)(this,n,o);(0,s.default)("DraggableCore: handleDrag: %j",r);if(!1!==this.props.onDrag(e,r)&&!1!==this.mounted)this.lastX=n,this.lastY=o;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(a.ownerDocument,h.move,this.handleDrag),(0,r.removeEvent)(a.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=u,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=u,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,p.move,this.handleDrag),(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,p.stop,this.handleDragStop),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:o.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return CR.default=f,d(f,"displayName","DraggableCore"),d(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel: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,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),d(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),CR}function TR(){return vR||(vR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(n),o=p(_x()),r=p(l),i=function(){if(nR)return aR.exports;function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function t(){for(var t,n,o=0,r="",i=arguments.length;o<i;o++)(t=arguments[o])&&(n=e(t))&&(r&&(r+=" "),r+=n);return r}return nR=1,aR.exports=t,aR.exports.clsx=t,aR.exports}(),a=mR(),s=yR(),c=uR(),d=p(_R()),u=p(ER());function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=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},h.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:o}=t;return!n||o&&n.x===o.x&&n.y===o.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:o}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",(e,t)=>{(0,u.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),f(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),o={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;const[r,i]=(0,s.getBoundPosition)(this,o.x,o.y);o.x=r,o.y=i,o.slackX=this.state.slackX+(e-o.x),o.slackY=this.state.slackY+(t-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-this.state.x,n.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(o)}),f(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.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(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:o,defaultPosition:r,defaultClassName:l,defaultClassNameDragging:c,defaultClassNameDragged:u,position:p,positionOffset:f,scale:m,...g}=this.props;let x={},y=null;const b=!Boolean(p)||this.state.dragging,w=p||r,v={x:(0,s.canDragX)(this)&&b?this.state.x:w.x,y:(0,s.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(v,f):x=(0,a.createCSSTransform)(v,f);const S=(0,i.clsx)(o.props.className||"",l,{[c]:this.state.dragging,[u]:this.state.dragged});return t.createElement(d.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:S,style:{...o.props.style,...x},transform:y}))}}e.default=m,f(m,"displayName","Draggable"),f(m,"propTypes",{...d.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(m,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(lR)),lR}function jR(){if(SR)return iR.exports;SR=1;const{default:e,DraggableCore:t}=TR();return iR.exports=e,iR.exports.default=e,iR.exports.DraggableCore=t,iR.exports}var MR,RR={};function IR(){if(MR)return RR;MR=1,RR.__esModule=!0,RR.cloneElement=function(e,n){n.style&&e.props.style&&(n.style=r(r({},e.props.style),n.style));n.className&&e.props.className&&(n.className=e.props.className+" "+n.className);return t.default.cloneElement(e,n)};var e,t=(e=n)&&e.__esModule?e:{default:e};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return RR}var DR,LR,OR={};function PR(){if(DR)return OR;DR=1,OR.__esModule=!0,OR.resizableProps=void 0;var e,t=(e=_x())&&e.__esModule?e:{default:e};jR();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 e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var r,i=n[0];return"both"===i.axis||"y"===i.axis?(r=t.default.number).isRequired.apply(r,n):t.default.number.apply(t.default,n)},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 e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var r,i=n[0];return"both"===i.axis||"x"===i.axis?(r=t.default.number).isRequired.apply(r,n):t.default.number.apply(t.default,n)}};return OR.resizableProps=n,OR}function AR(){if(LR)return rR;LR=1,rR.__esModule=!0,rR.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(n),t=jR(),o=IR(),r=PR(),i=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var p=function(n){var r,l;function s(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return(e=n.call.apply(n,[this].concat(o))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}l=n,(r=s).prototype=Object.create(l.prototype),r.prototype.constructor=r,u(r,l);var d=s.prototype;return d.componentWillUnmount=function(){this.resetData()},d.resetData=function(){this.lastHandleRect=this.slack=null},d.runConstraints=function(e,t){var n=this.props,o=n.minConstraints,r=n.maxConstraints,i=n.lockAspectRatio;if(!o&&!r&&!i)return[e,t];if(i){var l=this.props.width/this.props.height,a=e-this.props.width,s=t-this.props.height;Math.abs(a)>Math.abs(s*l)?t=e/l:e=t*l}var c=e,d=t,u=this.slack||[0,0],p=u[0],h=u[1];return e+=p,t+=h,o&&(e=Math.max(o[0],e),t=Math.max(o[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[p+(c-e),h+(d-t)],[e,t]},d.resizeHandler=function(e,t){var n=this;return function(o,r){var i=r.node,l=r.deltaX,a=r.deltaY;"onResizeStart"===e&&n.resetData();var s=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(s||c){var d=t[0],u=t[t.length-1],p=i.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===u)l+=p.left-n.lastHandleRect.left;if("n"===d)a+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===u&&(l=-l),"n"===d&&(a=-a);var h=n.props.width+(s?l/n.props.transformScale:0),f=n.props.height+(c?a/n.props.transformScale:0),m=n.runConstraints(h,f);h=m[0],f=m[1];var g=h!==n.props.width||f!==n.props.height,x="function"==typeof n.props[e]?n.props[e]:null;x&&!("onResize"===e&&!g)&&(null==o.persist||o.persist(),x(o,{node:i,size:{width:h,height:f},handle:t})),"onResizeStop"===e&&n.resetData()}}},d.renderResizeHandle=function(t,n){var o=this.props.handle;if(!o)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if("function"==typeof o)return o(t,n);var r=c({ref:n},"string"==typeof o.type?{}:{handleAxis:t});return e.cloneElement(o,r)},d.render=function(){var n=this,r=this.props,l=r.children,s=r.className,d=r.draggableOpts;r.width,r.height,r.handle,r.handleSize,r.lockAspectRatio,r.axis,r.minConstraints,r.maxConstraints,r.onResize,r.onResizeStop,r.onResizeStart;var u=r.resizeHandles;r.transformScale;var p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(r,i);return(0,o.cloneElement)(l,c(c({},p),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(l.props.children,u.map(function(o){var r,i=null!=(r=n.handleRefs[o])?r:n.handleRefs[o]=e.createRef();return e.createElement(t.DraggableCore,a({},d,{nodeRef:i,key:"resizableHandle-"+o,onStop:n.resizeHandler("onResizeStop",o),onStart:n.resizeHandler("onResizeStart",o),onDrag:n.resizeHandler("onResize",o)}),n.renderResizeHandle(o,i))}))}))},s}(e.Component);return rR.default=p,p.propTypes=r.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},rR}var FR,zR,BR={};function NR(){if(FR)return BR;FR=1,BR.__esModule=!0,BR.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(n),t=l(_x()),o=l(AR()),r=PR(),i=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(t){var n,r;function l(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var o=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(o,function(){return e.props.onResize&&e.props.onResize(t,n)})):e.setState(o)},e}return r=t,(n=l).prototype=Object.create(r.prototype),n.prototype.constructor=n,p(n,r),l.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},l.prototype.render=function(){var t=this.props,n=t.handle,r=t.handleSize;t.onResize;var l=t.onResizeStart,a=t.onResizeStop,c=t.draggableOpts,u=t.minConstraints,p=t.maxConstraints,h=t.lockAspectRatio,f=t.axis;t.width,t.height;var m=t.resizeHandles,g=t.style,x=t.transformScale,y=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,i);return e.createElement(o.default,{axis:f,draggableOpts:c,handle:n,handleSize:r,height:this.state.height,lockAspectRatio:h,maxConstraints:p,minConstraints:u,onResizeStart:l,onResize:this.onResize,onResizeStop:a,resizeHandles:m,transformScale:x,width:this.state.width},e.createElement("div",s({},y,{style:d(d({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},l}(e.Component);return BR.default=h,h.propTypes=d(d({},r.resizableProps),{},{children:t.default.element}),BR}var VR=(zR||(zR=1,oR.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},oR.exports.Resizable=AR().default,oR.exports.ResizableBox=NR().default),oR.exports);function HR(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var $R=parseInt(n.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=HR(o,t),r="function"==typeof e;n.push(r?e:()=>HR(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)HR(n,t)}};const WR=n.memo(n.forwardRef((r,i)=>{const{disabled:l,names:s,workbook:c,restoreFocus:d,readonly:u=!1,disabled:p=!1,commandPopupButtonProps:h,sx:f,notifier:m,...g}=r,[x,y]=n.useState(null),[b,w]=n.useState(()=>c.getSelectedRanges().getCoords()),[v,S]=n.useState(!1),{reference:C}=Ep({parentFloat:h?.parentFloat}),[k,E]=n.useState(()=>u||!c.getProtection().isStructureAllowed()),_=()=>x?.text??"",[T,j]=n.useState(_),M=nt(()=>{if(C?.closeAll(),!T){const e=_();return j(_()),e}if(_()===T)return T;const e=T.trim().toLowerCase();if("r"===e||"c"===e)return T;try{const e=c.getRanges(T);if(e)return e.toString()}catch(e){}const t=s.getByName(T);if(t&&t.getRanges())return T;let n=null;try{const e=c.getRanges(T),t=e.getCoords().map(e=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...e}));n=c.getRanges(t)}catch(e){}if(!n){const e=c.getSelectedRanges().getCoords().map(e=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...e}));n=c.getRanges(e)}try{let e=s.getByName(T);k||e||(e=s.addReference(T,n)),e&&y({text:e.getName()})}catch(e){j(_()),m.showMessage?.(e.message,{type:Wt})}return null},[T,s,C,k]),R=nt(()=>{if(c.isClosed())return;const e=[];for(let t=0;t<b.length;t++){const n=b[t];e.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...n})}let t=null;try{t=s.lookupByRanges(e)}catch(e){}let n=null;n=t?.length>0?t[0].getName():c.getSelectedSheet().getSelectedRange().toString(),y({text:n})},[c,b]),[I,D]=n.useState(()=>s?.search()??null);kk(s,{onCollectionChange(e){D(s.search()),R()},onClose(e){D([])}}),n.useEffect(()=>{j(_())},[x,b]);const[L,O]=n.useState(c?.getSelectedSheet());kk(c,{onProtectionChange:e=>{E(u||!e.getProtection().isStructureAllowed())},onSheetsChange:e=>{O(e?.getSelectedSheet())},onViewChange(e){O(e?.getSelectedSheet())}});const[P,A]=n.useState(null),F=nt(e.CommonUtils.debounce(R,P?320:0),[]);kk(L.getSelection(),{onChange:()=>{w(t=>{const n=c.getSelectedRanges().getCoords();return e.CoordUtils.isEqualRangesArrays(n,t)?t:n})},onAdjustingChange:e=>{A(e.getAdjusting())}}),n.useEffect(()=>{if(P){const e=c.getSelectedRange(),t=e.getRowCount(),n=e.getColumnCount();let o=`${t}R x ${n}C`;if(o.length>17&&(o=`${t}x${n}`),t>1||n>1)return void y({text:o,fontStyle:"italic",justifyContent:"center"})}y({text:c.getSelectedSheet().getSelectedRange().toString()}),F()},[b,c,P]);const z=n.useRef(null),B=n.useCallback(n=>{const{onMouseDown:r,onMouseUp:i,...l}=n;return t.jsx(o.IconButton,{...l,sx:{...l?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:t.jsx(o.Input,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:z},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.text.icon??e.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},"::after":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*e.IFont.getDeviceScale(),fontStyle:x?.fontStyle,paddingLeft:e=>e.spacing(.75),paddingRight:e=>e.spacing(.75),boxShadow:"none",flex:"1",color:e=>e.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary}}},value:T,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===qe.Enter||e.which===qe.Tab){let t=T;_()!==T&&(e.stopPropagation(),e.preventDefault(),t=M()),t?N(t):d?.()}else if(e.which===qe.Escape)_()!==T?(j(_()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault()):d?.();else if(e.which===qe.Space)return void e.stopPropagation()},onBlur:()=>{j(_())},onChange:e=>{j(e.target.value)}})})},[T,x]),N=nt(async e=>{try{C?.closeAll();const t=s.lookupByRanges(e)?.[0];t&&await(t?.select()),await(c.getRanges(e)?.select())}catch(e){m.showMessage?.(e.message,{type:Wt})}},[s,m,c]),V=n.useCallback(e=>{setTimeout(()=>{S(!0)},0);const r={variant:Hn.Menuitem,parentFloat:e.floatReference,commandHook:{...h?.commandHook,beforeExecute:(e,t)=>(C?.closeAll(),h?.commandHook?.beforeExecute?.(e,t))},scope:h?.scope,commands:h?.commands};let i=s.search({scope:c?.getSelectedSheet().getName()});i=i.sort((e,t)=>e.getType()===t.getType()?e.getName().localeCompare(t.getName()):"range"===e.getType()?-1:1);const l=k?null:["editNamedReference","deleteNamedReference"],a=k?null:["editTable",null,"convertTableToRange","deleteTable"],d=[],u=i.length;for(let e=0;e<u;e++){const o=i[e],s=o.getRanges();if(!s||o.isHidden())continue;const c=o.getType();c!==i[e-1]?.getType()&&(e>0&&d.push(t.jsx(du,{orientation:"horizontal"},`type-divider-${d.length}`)),d.push(t.jsx(Bp,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:"reference"===o.getType()?"Ranges":"Tables"},`type-header-${d.length}`))),"reference"===c?d.push(n.createElement(tg,{...r,key:"named-"+d.length,popupCommandKeys:l,popupScope:"namedItem",scope:"namedItem",commandState:o,commands:h?.commands,label:o.getName(),quickCommand:"selectNamed",disabled:!o.getRanges()||p,icon:e=>{switch(e.key()){case"editNamedReference":return pa(t.jsx(Md,{}));case"deleteNamedReference":return pa(t.jsx(Rd,{}));default:return pa(t.jsx(Td,{}))}}})):"table"===c&&d.push(n.createElement(tg,{...r,key:"namedItem-"+d.length,popupCommandKeys:a,popupScope:"namedItem",scope:"namedItem",commands:h?.commands,commandState:o,label:o.getName(),quickCommand:"selectNamed",disabled:!s||p,icon:e=>{e.key();return pa(t.jsx(Rc,{}))}}))}const f=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...g,children:[k?null:t.jsx(Km,{...r,scope:"namedItem",command:h?.commands.getCommand("addNamedReference"),icon:pa(t.jsx(jd,{}))}),d&&d.length>0?t.jsxs(t.Fragment,{children:[k?null:t.jsx(du,{orientation:"horizontal"}),t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:d})]}):null]});return cp({...e,children:f})},[c,I,s,x,k]),H=Nt(i,()=>({focus(e){z.current?.focus(e)}}),[]);return t.jsx(o.Box,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...f},ref:$R([H,i]),...g,children:t.jsx(Np,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...f},buttonProps:{sx:{backgroundColor:e=>e.palette.background.paper,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`}},tabIndex:-1,outlined:{color:e=>l?e.palette.action.disabled:a.alpha(e.palette.divider,.2)},parentFloat:C,createPopupPanel:V,onPopupOpen:()=>S(!0),onPopupClose:()=>S(!1),createTooltip:({children:e},n)=>t.jsx(Lp,{title:n||v?"":"Name Box",disabled:n,leaveDelay:0,sx:{opacity:n||v?0:1},children:e}),createQuickButton:B})})}));WR.displayName="NamedCollectionEditor";const UR=(e,n)=>t.jsx(WR,{ref:n,...e}),qR=n.memo(n.forwardRef((i,l)=>{const{sx:s,workbook:c,sheetElement:d,gridStyle:u,showNamedCollectionEditor:p=!0,NamedCollectionEditorProps:h,renderNamedCollectionEditor:f=UR,disabled:m,commands:g,...x}=i,[y,b]=n.useState(c?.getSelectedSheet());kk(c,{onSheetsChange:e=>{b(e?.getSelectedSheet())},onViewChange(e){b(e?.getSelectedSheet())}});const[w,v]=n.useState(y.getSelection().getCoords().cell),S=y.getRange(w).getCell(),C=m||!S.isEditAllowed(),k=n.useRef(null),E=n.useMemo(()=>({fontSize:11}),[]);kk(y.getSelection(),{onChange:()=>{v(y.getSelection().getCoords().cell)}}),kk(y,{onProtectionChange(){v(y.getSelection().getCoords().cell)}});const _=k.current?.getLineHeight()??20,[T,j]=n.useState(_),[M,R]=n.useState(5),[I,D]=n.useState(1),L=nt((e,{size:t})=>{e.preventDefault(),e.stopPropagation();const n=Math.floor(t.height/_);j(n*_+1),n>1&&R(n)},[_]),O=nt((e,{size:t})=>{const n=Math.floor(t.height/_);D(n)},[_]),P=Dn(),A=P.getMode();let F=null;"edit"===A?.key&&(F=A.args?.stateAndCoords);const z=n.useMemo(()=>{let e=F?.editState;return e||(e=ek(()=>y.getRange(w).getCell())),t.jsx(o.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:t.jsx(QC,{ref:k,activeCoords:w,sheet:y,onFocus:()=>{d?.startEdit({autoFocus:!1,editMode:!0,cell:w})},defaultTextStyle:E,useRichStyling:!1,disabled:C,onChangeEdit:e=>{if(void 0!==e.dirty){const t={sheet:y,coords:w,editState:e};P.setMode(e=>({...e,args:{...e?.args,stateAndCoords:t}}))}},editState:e,commands:g,onCancelEdit:()=>{d?.cancelEdit(),d?.focus()},onSubmitEdit:()=>{d?.submitEdit(),d?.focus()},linesVisible:I})})},[y,F,w,I,d]),B=n.useRef(null),N=n.useMemo(()=>p?f({names:c.getNames(),workbook:c,...h},B):null,[f,h,p,y,c,C]),V=n.useMemo(()=>t.jsxs(o.Paper,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,border:e=>`solid ${C?e.palette.action.disabled:a.alpha(e.palette.divider,.2)} 1px`},children:[t.jsx(Ap,{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:pa(t.jsx(Ed,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:C||null===F,onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{d.cancelEdit()}}),t.jsx(Ap,{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:pa(t.jsx(_d,{})),tooltipProps:{label:"Enter",simple:!0},disabled:C||null===F,onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{d.submitEdit()}}),t.jsx(Ap,{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:pa(t.jsx(Jd,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:e=>{0===e.button&&e.preventDefault()}})]}),[C,F]),H=sb(),[$,W]=n.useState(!1),U=n.useMemo(()=>t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:e=>e.spacing(.5),alignItems:"start"},children:[V,t.jsxs(o.Paper,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:e=>e.typography.fontFamily,fontSize:11*e.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:e=>`${e.shape.borderRadius}px`,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,border:e=>`solid ${C?e.palette.action.disabled:a.alpha(e.palette.divider,.2)} 1px`,"& textarea":{color:e=>C?`${e.palette.text.disabled} !important`:e.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:()=>W(!0),onBlur:()=>W(!1),onMouseDown:e=>{e.target?.classList.contains("react-resizable-handle")&&e.preventDefault()},children:[t.jsx(o.Box,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)},children:t.jsx(VR.ResizableBox,{height:T,draggableOpts:{grid:[_,_]},minConstraints:[_,_],maxConstraints:[15*_,15*_],onResize:O,onResizeStop:L,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:z})}),t.jsx(Ap,{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:pa(I>1?t.jsx(r.ExpandLess,{}):t.jsx(r.ExpandMore,{})),tooltipProps:{label:(I>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{const e=I>1?1:M;j(e*_+1),D(e)}}),t.jsx(o.Box,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:$?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:e=>e.palette.primary.main,borderRadius:e=>`${e.shape.borderRadius}px`}})]})]}),[V,z,$,I,_]),q=n.useMemo(()=>N||U?!N&&U?U:N&&!U?N:t.jsx(t.Fragment,{children:t.jsx(xn,{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='${H.palette.text.icon??H.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:N,elementAfter:U})}):null,[N,U]),Z=Nt(l,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>B.current}),[]);return t.jsx(o.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(.5),...s},ref:Z,...x,children:q})}));qR.displayName="FormulaBar";const ZR=n.memo(n.forwardRef((e,r)=>{const{filter:i,commands:l,disabled:a,sx:s,floatReference:c,...d}=e,u=n.useMemo(()=>({}),[]),p=n.useMemo(()=>({commandHook:{beforeExecute:(e,t)=>c.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:a,parentFloat:c}),[a,c]),h=n.useMemo(()=>({...u,...p,variant:Hn.Menuitem}),[u,p]),f=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...h,command:l.getCommand("sortAscending"),icon:pa(t.jsx(zc,{}))}),t.jsx(Km,{...h,command:l.getCommand("sortDescending"),icon:pa(t.jsx(Fc,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...h,command:l.getCommand("autoFilterClear"),icon:pa(t.jsx(_a,{}))}),[]]});return t.jsx(o.Box,{ref:r,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...s},...d,children:f})}));ZR.displayName="FilterColumnMenu";const GR=n.memo(n.forwardRef((e,n)=>{const{children:o,className:r,disabled:i,style:l,filter:a,...s}=e,c=Nt(n,()=>({isFilters:()=>!0}),[]);return t.jsx("div",{ref:c,className:h("filters",r),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...l},...s,children:t.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:[t.jsx("div",{children:a.getName()}),t.jsx("div",{children:"Filter Widget"})]})})}));GR.displayName="Filters";const KR=n.memo(n.forwardRef((e,i)=>{const{children:l,sheet:a,style:s,className:c,value:d,index:u,editing:p,editable:f,disabled:m,selectedIndex:g,dragging:x,borderColor:y,borderWidth:b,activeColor:w,background:v="white",tabRadius:S=4,gridTheme:C,...k}=e,[E,_]=n.useState(()=>!!a&&a.getProtection().isLocked()),[T,j]=n.useState(()=>a?a.getTabColor():null);kk(a,{onProtectionChange:()=>{_(a.getProtection().isLocked())},onTabColorChange:()=>{j(a.getTabColor())},onStyleChange:()=>{j(a.getTabColor())}});const M=sb(),R=g===u;let I=null,D=null;if(T||x){let e=v;T?(D=T.toBlackOrWhite().toCSS(),e=T?.toCSS()):R||(e=M.palette.background.paper),I=t.jsx(o.Box,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:R?"50%":"100%",borderRadius:"4px",border:e=>R?`${v} solid 1px`:`${e.palette.divider} solid 1px`,background:R&&T?`linear-gradient(0deg, ${e} 0%, transparent)`:e}})}let L=null;"string"==typeof y?L=y:y?.toCSS&&(L=y.toCSS());const O=R?t.jsx(o.Box,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:e=>e.palette.primary.main}}):null;return t.jsx(yb,{theme:R?C??M:M,children:t.jsx(o.Box,{ref:i,className:h(c),sx:{...s,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:R?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:x?"grabbing":void 0},...k,children:t.jsx(dn,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:S,strokeColor:R?L:"transparent",children:t.jsx(o.Button,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:R?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:x?"grabbing":void 0,color:R?"primary":D||"text.secondary",backgroundColor:R?v:"transparent","&:hover:not([disabled])":{backgroundColor:R?v:"transparent"},"& input":{color:e=>`${e.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:m,disableRipple:p,component:"div",children:t.jsxs(t.Fragment,{children:[I,t.jsxs(o.Box,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:R?void 0:"1px"},children:[l,O]}),E?t.jsx(r.Lock,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):t.jsx(o.Box,{sx:{minHeight:"22px"}})]})]})},d+":"+u)})})})}));KR.displayName="SheetTab";const XR=n.memo(n.forwardRef((e,i)=>{const{workbook:l,index:a,commands:s,scope:c="sheet",disabled:d,floatReference:u,sx:p,className:f,tabStripRef:m,...g}=e,[x,y]=n.useState(l?.getProtection());kk(l,{onProtectionChange:e=>{y(e?.getProtection())}});const b=n.useMemo(()=>({}),[]),w=n.useMemo(()=>({commandHook:{beforeExecute:(e,t)=>u.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:c,commandState:a,disabled:d||void 0===a,parentFloat:u}),[d,u]),v=n.useMemo(()=>({...b,...w}),[b,w]),S=t.jsxs(t.Fragment,{children:[t.jsx(Km,{command:s.getCommand("addSheet"),commandState:a,...v,variant:Hn.Menuitem}),t.jsx(Km,{command:s.getCommand("deleteSheet"),...v,variant:Hn.Menuitem}),t.jsxs(zp,{onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:()=>{Promise.resolve(u.closeAll()).then(()=>{m?.startEdit(a)})},disabled:d||!x.isStructureAllowed(),parentFloat:u,children:["Rename","sheet"!==c?" Sheet":""]}),t.jsx(Km,{command:s.getCommand("duplicateSheet"),...v,variant:Hn.Menuitem}),t.jsx(Km,{command:s?.getCommand("protectionSheetToggle"),...v,variant:Hn.Menuitem,icon:t.jsx(r.Lock,{})}),t.jsx(mM,{variant:Hn.Menuitem,command:s.getCommand("formatSheetTabColor"),icon:t.jsx(fa,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:Nj.End},parentFloat:u}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{command:s.getCommand("hideSheet"),...v,variant:Hn.Menuitem,icon:pa(t.jsx(gd,{}))})]});return t.jsx(o.Box,{ref:i,className:h("menu",f),sx:{...p},...g,children:S})}));XR.displayName="SheetTabMenu";const YR=n.memo(n.forwardRef((i,l)=>{const{workbook:s,gridStyle:c,floatReference:d,closeFloatAll:u,className:p,...f}=i,[m,g]=n.useState(s?.getSheets().search()),[x,y]=n.useState(s?.getProtection());kk(s,{onSheetsChange:e=>{g(e.getSheets().search())},onProtectionChange:e=>{y(e?.getProtection())}});const b=n.useMemo(()=>{const n=[],i=s.getSheets().search({visibility:e.ISheet.Visibility.Hidden}),l=s.getSelectedSheet();for(let s=0;s<i.length;s++){const u=i[s],p=u.getVisibility();if(p===e.ISheet.Visibility.VeryHidden)continue;const h=l===u,f=u.getProtection().isLocked(),m=u.getTabColor(),g=c?.body.fill??"transparent";let y=null,b=null,w=g;m&&(w=m.toCSS(),h||(b=m.toBlackOrWhite().toCSS()),y=t.jsx(o.Box,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:h?w:"transparent",borderRadius:"4px",border:`solid 1px ${c.header.edgeStrokeFill}`},children:t.jsx(o.Box,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:h||p===e.ISheet.Visibility.Hidden?"50%":"100%",border:e=>h?`${g} solid 1.5px`:`${e.palette.divider} solid 1px`,background:h&&m?`linear-gradient(0deg, ${w} 0%, ${g})`:w,borderRadius:"4px"}})}));let v=null;f&&(v=t.jsx(r.Lock,{color:"secondary"})),p!==e.ISheet.Visibility.Visible&&(v=pa(t.jsx(gd,{style:{opacity:x.isStructureAllowed()?1:.7},color:"secondary"}))),v&&(v=t.jsx(o.Box,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:v})),n.push(t.jsx(zp,{disabled:!x.isStructureAllowed()&&p===e.ISheet.Visibility.Hidden,sx:{color:t=>{let n=h?t.palette.primary.main:t.palette.text.secondary;return b&&(n=b),p===e.ISheet.Visibility.Hidden&&(n=a.alpha(n,t.palette.action.disabledOpacity)),n},borderLeft:e=>`${h?e.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:h?"700":"400","&:hover":{fontWeight:"700"}},icon:h?t.jsx(Wp,{}):void 0,onMouseDown:e=>e.preventDefault(),onMouseUp:()=>{Promise.resolve(d.closeAll()).then(()=>{try{u.select()}catch(e){console.error(e)}})},children:t.jsxs(t.Fragment,{children:[y,t.jsxs(o.Box,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[t.jsxs(o.Box,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[u.getName(),t.jsx(o.Box,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:u.getName()})]}),v]})]})},""+s))}return n},[s,x,m,d,c]);return t.jsx(o.Box,{ref:l,className:h("menu",p),...f,children:b})}));YR.displayName="SheetsAllMenu";let JR=!1,QR=!1;let eI=null;const tI=async t=>{const n=await e.LicenseManager.getDetails();if(QR||n.isEval()){try{const t=top??window;t.SheetXL||(t.SheetXL=Object.freeze({getSelectedWorkbook:()=>eI?.getWorkbook(),getSelectedSheet:()=>eI?.getWorkbook().getSelectedSheet(),getSelectedRange:()=>eI?.getWorkbook().getSelectedRange(),getRange:e=>eI?.getWorkbook().getRange(e),getSelectedWorkbookElement:()=>eI,getLicenseManager:()=>e.LicenseManager,moreExamples:()=>{const e={"SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])":{Summary:"Set an array of values."},"SheetXL.getRange('a1:e5').setValue(100)":{Summary:"Set a single repeating value to a range."},"SheetXL.getRange('Sheet1!e5:f6').getValues()":{Summary:"Get the values as a 2d array (see forEach)."},"SheetXL.getSelectedRange().setValue(new Date())":{Summary:"Set current date/time using Javascript Date."},"SheetXL.getSelectedRange().setValue('10/23/95')":{Summary:"Set current date/time using string."},"SheetXL.getSelectedSheet().getUsedRange().getValues()":{Summary:"Get all of the values in a sheet."},"SheetXL.getSelectedRange().updateStyle({ fill: 'accent4' })":{Summary:"Set fill to theme color 4."},"SheetXL.getRange('E:L').updateStyle({ fill: 'accent1 lumMod 90 lumOff 40' })":{Summary:"Set some columns to a modified theme color."},"SheetXL.getRange('e5:f10').updateStyle({ style: { border: 'double blue' }})":{Summary:"Set border."},"SheetXL.getCell().getStyle().fill.toCSS()":{Summary:"Get the fill style as css for the selected cell."},"SheetXL.getRange('a1:a3').autoFill('a1:a7')":{Summary:"Autofill down."},"SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })":{Summary:"Merge cells horizontally."},"SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })":{Summary:"Sort selected cells ascending with a header."},"SheetXL.getSelectedRange().clear('all')":{Summary:"Clear the current range a different way."},"SheetXL.getSelectedSheet().getTables().add('b2:e9')":{Summary:"Create a 4x8 table at b2 for current sheet."},"SheetXL.getRange('a1:c3').copyFrom('e1:g3')":{Summary:"Copy cells."},"SheetXL.getRange('c:t').getColumnHeaders().setSize(30)":{Summary:"Set the size of columns to 30 pixels."},"SheetXL.getRange('2:3').delete()":{Summary:"Remove rows 2 and 3 and shift up."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')":{Summary:"Add an image."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })":{Summary:"Add an image of height 100."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).updateStyle({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')":{Summary:"Set value to 100 and numberformat to 0% as a single."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').updateStyle({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')":{Summary:"Set a value and style to Note style and autofit text."},"SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');":{Summary:"Add a named range."},"SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })":{Summary:"Listen for updates at a range."}};console.table(e)}}))}catch(e){e instanceof DOMException||console.error(e),JR=!0}if(eI!==t&&(eI=t,!JR))try{JR=!0;(top??window).SheetXL&&(await e.LicenseManager._validate(!0),e.LicenseManager.wasPrinted()&&(()=>{he.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()","color:#ffa726;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;"),JR=!0;const e=document.getElementById("openEditorLink");e&&e.addEventListener("click",e=>{e.preventDefault(),console.log("openScriptEditor called from console")})})())}catch(e){e instanceof DOMException||console.error(e)}}};var nI=function(){},oI="undefined"!=typeof window,rI=oI?n.useLayoutEffect:n.useEffect,iI={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const lI=oI&&void 0!==window.ResizeObserver?function(){var e=n.useState(null),t=e[0],o=e[1],r=n.useState(iI),i=r[0],l=r[1],a=n.useMemo(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,i=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;l({x:n,y:o,width:r,height:i,top:a,left:s,bottom:c,right:d})}})},[]);return rI(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[o,i]}:function(){return[nI,iI]};function aI(){return aI=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},aI.apply(null,arguments)}function sI(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function cI(e,t){return cI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cI(e,t)}function dI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cI(e,t)}function uI(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const pI=!1,hI=n.createContext(null);var fI=function(e){return e.scrollTop},mI="unmounted",gI="exited",xI="entering",yI="entered",bI="exiting",wI=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=gI,o.appearStatus=xI):r=yI:r=t.unmountOnExit||t.mountOnEnter?mI:gI,o.state={status:r},o.nextCallback=null,o}dI(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===mI?{status:gI}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xI&&n!==yI&&(t=xI):n!==xI&&n!==yI||(t=bI)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xI){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&fI(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gI&&this.setState({status:mI})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[l.findDOMNode(this),o],i=r[0],a=r[1],s=this.getTimeouts(),c=o?s.appear:s.enter;!e&&!n||pI?this.safeSetState({status:yI},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:xI},function(){t.props.onEntering(i,a),t.onTransitionEnd(c,function(){t.safeSetState({status:yI},function(){t.props.onEntered(i,a)})})}))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!pI?(this.props.onExit(o),this.safeSetState({status:bI},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:gI},function(){e.props.onExited(o)})})})):this.safeSetState({status:gI},function(){e.props.onExited(o)})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===mI)return null;var t=this.props,o=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=sI(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return n.createElement(hI.Provider,{value:null},"function"==typeof o?o(e,r):n.cloneElement(n.Children.only(o),r))},t}(n.Component);function vI(){}wI.contextType=hI,wI.propTypes={},wI.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vI,onEntering:vI,onEntered:vI,onExit:vI,onExiting:vI,onExited:vI},wI.UNMOUNTED=mI,wI.EXITED=gI,wI.ENTERING=xI,wI.ENTERED=yI,wI.EXITING=bI;var SI=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=uI(n.className,o):n.setAttribute("class",uI(n.className&&n.className.baseVal||"",o)));var n,o})},CI=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}dI(t,e);var o=t.prototype;return o.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&fI(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o})}(e,o))},o.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&SI(e,o),r&&SI(e,r),i&&SI(e,i)},o.render=function(){var e=this.props;e.classNames;var t=sI(e,["classNames"]);return n.createElement(wI,aI({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(n.Component);CI.defaultProps={classNames:""},CI.propTypes={};const kI={Light:"light",Dark:"dark"},EI=.12,_I=(e,t)=>{const n={},o=e=>{const t=e.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:e.typography?.fontFamily??"Calibri",fontSize:e.typography?.fontSize??8.25,fontWeight:e.typography?.fontWeightRegular??"400",fill:"dark"===e.palette.mode?e.palette?.text?.secondary:e.palette?.text?.primary},fill:t,strokeFill:fp(t,EI,e.palette?.mode),darkMode:"dark"===e.palette.mode}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:fp(n.body.fill,EI,e.palette?.mode),fill:t&&"dark"===e.palette.mode&&t.palette.mode!==e.palette.mode?n.body.fill:fp(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:"dark"===e.palette.mode?n.body.strokeFill:fp(n.body.fill,.328,e.palette?.mode)},n.headerHover=t=>({...n.header,strokeFill:fp(t?.fill??n.body.fill,.22,e.palette?.mode),fill:fp(t?.fill??n.header.fill,.065,e.palette?.mode),text:{...t?.text,fontWeight:e.typography?.fontWeightBold}});const i=fp("dark"!==e.palette.mode?e.palette.primary.light:e.palette.primary.main,.055,e.palette?.mode);n.headerSelect={...n.header,strokeFill:e.palette.primary.main,fill:a.alpha(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:a.alpha(i,.7)},n.headerSelectAll={...n.headerSelect,fill:a.alpha(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:fp(r.fill,EI,t.palette?.mode),fill:t&&"dark"===t.palette.mode&&t.palette.mode!==e.palette.mode?r.fill:fp(r.fill,.055,t.palette?.mode),edgeStrokeFill:"dark"===t.palette.mode?r.strokeFill:fp(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?a.alpha(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?a.alpha(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const l=t??e,s="dark"===l.palette.mode;return n.selection={fill:l.palette?.primary?.main?a.alpha(l.palette?.primary?.main,.1):void 0,strokeFill:l.palette?.primary?.main},n.selectionInactive={...n.selection,fill:l.palette?.divider?a.alpha(l.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:a.alpha(l.palette.warning.light,.05),strokeFill:l.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=a.alpha(l.palette.action.active,.5),n.colorGrey=l.palette.action.active,n.filterDarkInvert=s?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function TI(e){const{mode:t}=e||{},[o,r]=n.useState(()=>{if("light"===t||"dark"===t)return{themeMode:t,source:"prop"};if("undefined"!=typeof document){const e=jI();if(e)return{themeMode:e,source:"class"}}return{themeMode:MI(),source:"media"}});return n.useEffect(()=>{if(t&&t!==o?.themeMode)return void r({themeMode:t,source:"prop"});const e=()=>{const e=jI();if(e)r({themeMode:e,source:"class"});else{const e=MI();r({themeMode:e,source:"media"})}},n=new MutationObserver(e),i=[document.documentElement,document.body].filter(Boolean);for(const e of i)n.observe(e,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",e),e(),()=>{n.disconnect(),l.removeEventListener("change",e)}},[t]),o}function jI(){if("undefined"==typeof document)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 MI(){return"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const RI=n.memo(n.forwardRef((e,i)=>{const{children:l,sx:a,parentFloat:s,...c}=e,d=Nt(i,()=>({}),[]),[u,p]=lI(),h=n.useRef(null),f=n.useRef(null),[m,g]=n.useReducer(e=>e+1,0),[x,y]=n.useState(null),[b,w]=n.useState(null),[v,S]=n.useState(null),{reference:C}=Ep({parentFloat:s,label:"overflow"});n.useLayoutEffect(()=>{f.current={refs:[]};const e=[],r=n.Children.toArray(l);let i=0;r.forEach((n,l)=>{e.push(t.jsx(o.Box,{sx:{display:"flex"},ref:e=>{i++,i===r.length&&g();const t={current:null};t.current=e,f.current.refs[l]=t},children:n},l))}),y(e)},[l,p]),n.useLayoutEffect(()=>{if(!x)return;const e=f.current.refs;if(!d.current||!e||0===e.length)return w(null),void S(null);const t=d.current?.getBoundingClientRect(),n=[],o=[];let r=0,i=!1;for(let n=0;!i&&n<e.length;n++){const o=e[n];if(!o)continue;if(!o.current){i=!0;continue}const l=o.current.getBoundingClientRect();r+=l?.width,r>t.width&&(i=!0)}if(!i)return w(null),void S([]);const l=h.current?.getBoundingClientRect();r=0;for(let i=0;i<e.length;i++){const a=e[i];let s=!1;if(a.current){const e=a.current.getBoundingClientRect();r+=e?.width,r<t.width-l.width&&(s=!0)}s?n.push(x[i]):o.push(x[i])}w(n.length>0?n:null),S(o.length>0?o:null)},[l,x,p,C,m]);const k=nt(e=>{const r=[];for(let t=0;t<v.length;t++){let o=n.Children.toArray(v[t]);const i=o[0];o=n.Children.toArray(i.props.children?.props.children??i.props.children);const l=o[0],a={...l.props};a.parentFloat&&(a.parentFloat=e.floatReference);const s=n.cloneElement(l,a);r.push(s)}const i=t.jsx(o.Box,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:e=>e.spacing(.5),paddingBottom:e=>e.spacing(.5),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1),overflow:"hidden"},children:r});return cp({...e,children:i})},[v]);return t.jsxs(o.Box,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...a},ref:$R([d,u,i]),...c,children:[t.jsx(o.Box,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:b??x}),t.jsx(o.Box,{sx:{display:null!==v&&0===v.length?"none":"flex",flex:"1 1 0"},children:t.jsx(Np,{createPopupPanel:k,ref:h,parentFloat:C,createTooltip:({children:e},n)=>t.jsx(Lp,{label:"More",description:"More toolbar options…",disabled:n,children:e}),icon:t.jsx(ua,{children:t.jsx(r.MoreHoriz,{})})})})]})})),II="https://unpkg.com/@sheetxl/scripting-templates/dist",DI=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BCtVyhxIZSUPH_Z4.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./B783moVfFT70yQuK.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("./xq-CJbsvm7BQO8lK.cjs")).then(e=>e.i)).fromBufferXLSX(e,t)}],LI=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BCtVyhxIZSUPH_Z4.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./B783moVfFT70yQuK.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("./xq-CJbsvm7BQO8lK.cjs")).then(e=>e.i)).toBufferXLSX(e,t)}];let OI=class{constructor(e=DI,t=LI){this._readFormatTypes=[],this._writeFormatType=[],this._readFormatTypes=Object.freeze([...e]),this._writeFormatType=Object.freeze([...t])}_detectImportSourceType(e){return e&&"object"==typeof e&&"base64"in e?"base64":e&&"object"==typeof e&&"input"in e?"fetch":"string"==typeof e?e.startsWith("data:")?"base64":(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||e.startsWith("./")||e.startsWith("../"),"fetch"):"undefined"!=typeof File&&e instanceof File?"file":e instanceof ArrayBuffer||ArrayBuffer.isView(e)?"buffer":"undefined"!=typeof ReadableStream&&e instanceof ReadableStream?"stream":null}getReadFormats(){return this._readFormatTypes}getWriteFormats(){return this._writeFormatType}getReadFormatTypeForKey(e){return this._readFormatTypes.find(t=>t.key.includes(e))??null}getReadFormatTypeForExt(e){return e=e.toLowerCase(),this._readFormatTypes.find(t=>t.exts.includes(e))??null}getReadFormatTypeForMimeType(e){return this._readFormatTypes.find(t=>t.mimeType===e)??null}getWriteFormatTypeForExt(e){return e=e.toLowerCase(),this._writeFormatType.find(t=>t.ext===e)??null}getWriteFormatType(e){e=e.toLowerCase();let t=this._writeFormatType.find(t=>t.ext===e)??null;return t||(t=this._writeFormatType.find(t=>t.key.toLowerCase()===e)??null,t||(this._writeFormatType.find(t=>t.mimeType.toLowerCase()===e)??null))}getAllReadFormatTypeAsString(){const e=[];for(let t=0;t<this._readFormatTypes.length;t++)e.push(this._readFormatTypes[t].mimeType);return e}async toArrayBuffer(e,t,n){const o=this.getWriteFormatType(t);if(!o)throw new Error(`Invalid export type for '${t}'.`);try{const r=o.handler;if(!r)throw new Error(`Unable to resolve handler for type: ${o.description??t}.`);return r(e,n)}catch(e){throw new Error(`Unable to load handler for '${t}.'`,{cause:e})}}async _fromArrayBuffer(e,t,n=null){let o=this.getReadFormatTypeForKey(t)??this.getReadFormatTypeForExt(t)??this.getReadFormatTypeForMimeType(t);if(!e||!o){if(!e)throw new Error("ArrayBuffer must be specified.");if(!t)throw new Error("formatKey must be specified.")}const r=o.handler;if(!r)throw new Error(`Unable to resolve handler for type: ${o?.description??t}.`);const i={...n,...n?.typedCreateWorkbookOptions?.[t]};let l;delete i.typedCreateWorkbookOptions;try{l=await r(e,i)}catch(e){throw new Error("Unable to import",{cause:e})}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;"function"==typeof n&&(n=n()),n&&"object"==typeof n&&"function"==typeof n.then&&(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 e=n;return await this._fromFile(e,t)}case"base64":{let e;if(n&&"object"==typeof n&&"base64"in n)e=n.base64;else if("string"==typeof n&&n.startsWith("data:")){const[,t]=n.split(",");e=t}else e=n;const i=ge.base64ToArrayBuffer(e),l=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!l)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(i,l.key,t),title:o||"imported-file",formatType:l}}case"fetch":{let i,l,a=null;if("string"==typeof n)a=n;else{if(!n||"object"!=typeof n||!("input"in n))throw new Error("Invalid fetch source provided.");{const e=n;a=e.input,i=e.init,l=e.timeout}}const s=l||3e4,c=new AbortController,d=setTimeout(()=>c.abort(),s),u="string"==typeof a?a:a.toString(),p=r||e.TextUtils.getFileNameExtension(u),h=this.getReadFormatTypeForExt(p)||this._readFormatTypes[0];try{const n=await fetch(a,{...i,signal:c.signal});if(clearTimeout(d),!n.ok)throw new Error(`Failed to fetch: ${n.status} ${n.statusText}`);const r=await n.arrayBuffer();if(!h)throw new Error(`Unable to determine import type for fetched content: ${u}`);return{workbook:await this._fromArrayBuffer(r,h.key,t),title:o||e.TextUtils.getBaseName(u,!0)||"fetched-file",formatType:h}}catch(e){if(clearTimeout(d),"AbortError"===e.name)throw new Error(`Fetch timeout after ${s}ms: ${u}`);throw e}}case"buffer":{const e=n,i=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!i)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(e,i.key,t),title:o||"buffer-file",formatType:i}}case"stream":{const e=n.getReader(),i=[];let l=0;try{for(;;){const{done:t,value:n}=await e.read();if(t)break;i.push(n),l+=n.length}}finally{e.releaseLock()}const a=new ArrayBuffer(l),s=new Uint8Array(a);let c=0;for(const e of i)s.set(e,c),c+=e.length;const d=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!d)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(a,d.key,t),title:o||"stream-file",formatType:d}}default:throw new Error(`Unsupported source type: ${i}`)}}async _fromFile(t,n=null){let o=null;try{let r="";t?.name&&(r=`${e.TextUtils.getBaseName(t.name)}`);const i=this.getReadFormatTypeForExt(e.TextUtils.getFileNameExtension(t?.name));if(!i)throw new Error(`Unknown file type: ${e.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);const l=await t.arrayBuffer(),a={...n,...n?.typedCreateWorkbookOptions?.[i.key]};delete a.typedCreateWorkbookOptions;const s=i.handler;if(!s)throw new Error(`Unable to resolve handler for type: ${i?.description??e.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await(a.onStart?.(r));const c=await s(l,a);o=new PI(t,c,r,i)}catch(t){throw t}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=e.TextUtils.getFileNameExtension(t);r&&(t=t.slice(0,t.length-r.length-1));let i=null;o?.formatType&&(i=this.getWriteFormatType(o.formatType));const l=this.getWriteFormats(),a=l.length;for(let e=0;!i&&e<a;e++)(l[e].ext===r||!r&&l[e].isDefault)&&(i=l[e]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const s=t+"."+i.ext;let c=null;try{c=await this.toArrayBuffer(n,i.key)}catch(t){throw"string"==typeof t?new Error(t):t}try{await(async(e,t)=>{let n;"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer?(n=new ArrayBuffer(t.byteLength),new Uint8Array(n).set(new Uint8Array(t))):n=t,function(e,t){const n=URL.createObjectURL(e),o=document.createElement("a");o.style.display="none",o.href=n,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)}(new Blob([n],{type:"application/octet-stream"}),e)})(s,c)}catch(t){throw new Error("Unable to write file.",{cause:t})}return!0}},PI=class{constructor(e,t,n,o){this.file=e,this.workbook=t,this.title=n,this.formatType=o}get[Symbol.toStringTag](){return"[WorkbookHandle]"}toString(){return`'${this.file.name}' ${this.file.size} (${this.formatType.description})`}};const AI=new OI;var FI,zI,BI=function(){if(zI)return FI;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,o="",r=0,i=-1,l=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===l);else if(i!==a-1&&2===l){if(o.length<2||2!==r||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var s=o.lastIndexOf("/");if(s!==o.length-1){-1===s?(o="",r=0):r=(o=o.slice(0,s)).length-1-o.lastIndexOf("/"),i=a,l=0;continue}}else if(2===o.length||1===o.length){o="",r=0,i=a,l=0;continue}t&&(o.length>0?o+="/..":o="..",r=2)}else o.length>0?o+="/"+e.slice(i+1,a):o=e.slice(i+1,a),r=a-i-1;i=a,l=0}else 46===n&&-1!==l?++l:l=-1}return o}zI=1;var n={resolve:function(){for(var n,o="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var l;i>=0?l=arguments[i]:(void 0===n&&(n=process.cwd()),l=n),e(l),0!==l.length&&(o=l+"/"+o,r=47===l.charCodeAt(0))}return o=t(o,!r),r?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(n){if(e(n),0===n.length)return".";var o=47===n.charCodeAt(0),r=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!o)).length||o||(n="."),n.length>0&&r&&(n+="/"),o?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,o=0;o<arguments.length;++o){var r=arguments[o];e(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":n.normalize(t)},relative:function(t,o){if(e(t),e(o),t===o)return"";if((t=n.resolve(t))===(o=n.resolve(o)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var i=t.length,l=i-r,a=1;a<o.length&&47===o.charCodeAt(a);++a);for(var s=o.length-a,c=l<s?l:s,d=-1,u=0;u<=c;++u){if(u===c){if(s>c){if(47===o.charCodeAt(a+u))return o.slice(a+u+1);if(0===u)return o.slice(a+u)}else l>c&&(47===t.charCodeAt(r+u)?d=u:0===u&&(d=0));break}var p=t.charCodeAt(r+u);if(p!==o.charCodeAt(a+u))break;47===p&&(d=u)}var h="";for(u=r+d+1;u<=i;++u)u!==i&&47!==t.charCodeAt(u)||(0===h.length?h+="..":h+="/..");return h.length>0?h+o.slice(a+d):(a+=d,47===o.charCodeAt(a)&&++a,o.slice(a))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),o=47===n,r=-1,i=!0,l=t.length-1;l>=1;--l)if(47===(n=t.charCodeAt(l))){if(!i){r=l;break}}else i=!1;return-1===r?o?"/":".":o&&1===r?"//":t.slice(0,r)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var o,r=0,i=-1,l=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,s=-1;for(o=t.length-1;o>=0;--o){var c=t.charCodeAt(o);if(47===c){if(!l){r=o+1;break}}else-1===s&&(l=!1,s=o+1),a>=0&&(c===n.charCodeAt(a)?-1===--a&&(i=o):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=t.length),t.slice(r,i)}for(o=t.length-1;o>=0;--o)if(47===t.charCodeAt(o)){if(!l){r=o+1;break}}else-1===i&&(l=!1,i=o+1);return-1===i?"":t.slice(r,i)},extname:function(t){e(t);for(var n=-1,o=0,r=-1,i=!0,l=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===n?n=a:1!==l&&(l=1):-1!==n&&(l=-1);else if(!i){o=a+1;break}}return-1===n||-1===r||0===l||1===l&&n===r-1&&n===o+1?"":t.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+"/"+o:o}(0,e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var o,r=t.charCodeAt(0),i=47===r;i?(n.root="/",o=1):o=0;for(var l=-1,a=0,s=-1,c=!0,d=t.length-1,u=0;d>=o;--d)if(47!==(r=t.charCodeAt(d)))-1===s&&(c=!1,s=d+1),46===r?-1===l?l=d:1!==u&&(u=1):-1!==l&&(u=-1);else if(!c){a=d+1;break}return-1===l||-1===s||0===u||1===u&&l===s-1&&l===a+1?-1!==s&&(n.base=n.name=0===a&&i?t.slice(1,s):t.slice(a,s)):(0===a&&i?(n.name=t.slice(1,l),n.base=t.slice(1,s)):(n.name=t.slice(a,l),n.base=t.slice(a,s)),n.ext=t.slice(l,s)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,FI=n}();const NI=/^(con|prn|aux|nul|com\d|lpt\d)$/i,VI=/[<>:"/\\|?*\u0000-\u001F]/g,HI=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:VI,WINDOW_FILENAME_RESERVED_REGEX:NI,isValidWindowsFilename:e=>!(!e||e.length>255||VI.test(e)||NI.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("undefined"==typeof window||void 0===window.document){if("undefined"!=typeof require&&"undefined"!=typeof process)return BI.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"})),$I=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:OI,IOUtils:HI,WorkbookIO:AI},Symbol.toStringTag,{value:"Module"})),WI=e=>{if(e.metadata?.name)return e.metadata.name;let t=(e.path.split("/").pop()||"").replace(/\.[^/.]+$/,"");if("formula"===e.metadata?.icon)return t.toUpperCase();t=t.replace(/([a-z])([A-Z])/g,"$1 $2");return t.replace(/[-_]/g," ").trim().split(/\s+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},UI=async e=>{const t=HI.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new Ce(`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 Ce(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(e){throw new Error(`Failed to parse directory: ${e.message}. Ensure the file is valid JSON.`)}const i=r.map(async t=>{try{const n=HI.relativePath(e,t.path),o=await fetch(n);if(!o.ok)throw new Error(`Failed to fetch file at '${t.path}': ${o.statusText}`);const r=await o.text();let i=t.metadata;i?.title||(i={title:WI(t),...i});return{path:t.path,content:r,metadata:i}}catch(e){console.error(e.message)}return null});return(await Promise.all(i)).filter(e=>null!==e)},qI={fontSize:"0.8rem",marginRight:"4px"},ZI=n.memo(e=>{const{disabled:n,snippet:i,description:l,handleInsert:s,sx:c,...d}=e;let u;return u="formula"===i.metadata?.icon?t.jsx(iu,{sx:qI}):"macro"===i.metadata?.icon?t.jsx(ru,{sx:qI}):t.jsx(r.WebhookOutlined,{sx:qI}),t.jsx(zp,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...c},disabled:n,icon:u,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&s(i)},onKeyDown:e=>{e.keyCode!==qe.Enter&&e.keyCode!==qe.Space||s(i)},...d,children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[t.jsx(o.Typography,{component:"div",children:i.metadata?.title??i.path}),t.jsx(o.Typography,{variant:"caption",component:"div",sx:{color:e=>a.alpha(e.palette.text.secondary??e.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:i.metadata?.summary})]})})}),GI=n.memo(n.forwardRef((e,r)=>{const{commands:i,commandHook:l,scope:a,disabled:s=!1,scriptPath:c=II,...d}=e,[u,p]=n.useState([]),[h,f]=n.useState(!0),m=Vn(i,["executeSelectedScript"]),g=m[0]?.context?.();n.useEffect(()=>{(async()=>{try{const e=await UI(c);p(e)}catch(e){}finally{f(!1)}})()},[c]);const x=n.useCallback((e,r)=>{if(h)return t.jsx("div",{children:"Loading..."});const a={variant:Hn.Menuitem,commandHook:l,scope:"scripts",disabled:s},c=t=>{g.getEditor()?.insertSnippet(t.content),e.closeFloat()},d=[];for(let e=0;e<u.length;e++){const n=u[e];n&&d.push(t.jsx(ZI,{handleInsert:c,snippet:n},n.path))}const p=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[d.length>0?t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:d}),t.jsx(du,{orientation:"horizontal"})]}):null,n.createElement(Km,{...a,key:"help",command:i.getCommand("help"),icon:pa(t.jsx(bd,{}))})]});return cp({...e,children:p})},[s,l,a,h,g]);return t.jsx(Ym,{ref:r,commands:i,disabled:s,commandHook:l,scope:a,label:"Insert Script",tooltip:"Inserts a script from a set of templates.",createPopupPanel:x,icon:pa(t.jsx(nu,{})),...d})})),KI=n.memo(n.forwardRef((e,n)=>{const{commands:o,parentFloat:r,commandButtonProps:i,...l}=e,a=nt(e=>{const{commandButtonProps:n,commandPopupProps:i}=e;return t.jsx(t.Fragment,{children:t.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[t.jsx("div",{children:t.jsx(RI,{parentFloat:r,style:{},children:t.jsx(Km,{...n,command:o.getCommand("saveScripts"),icon:pa(t.jsx(ou,{}))})})}),t.jsx("div",{style:{flex:"1 1 100%"}}),t.jsx("div",{children:t.jsx(RI,{parentFloat:r,style:{},children:t.jsx(GI,{...n,commands:o})})})]})})},[o]);return t.jsx(Qm,{ref:n,commands:o,parentFloat:r,commandButtonProps:i,createToolbarPalette:a,...l})}));KI.displayName="ScriptEditorToolbar";const XI={fontSize:"1rem"},YI=n.memo(n.forwardRef((e,i)=>{const{scriptPath:l=II,onScriptSelect:s,sx:c=zt.EmptyCssProperties,className:d,buttonMinWidth:u=210,buttonMinHeight:p=80,gap:f=12,...m}=e,[g,x]=n.useState([]),[y,b]=n.useState(!0),[w,v]=n.useState(null);if(n.useEffect(()=>{(async()=>{const e=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{b(!0),v(null);const t=await UI(l);for(let n=0;n<t.length;n++){const o=t[n];o&&e.push(o)}}catch(e){v(e instanceof Error?e.message:"Failed to load scripts"),e instanceof Ce||console.error("Error loading scripts:",e)}finally{x(e),b(!1)}})()},[l]),y)return t.jsx(o.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:h(d,"script-select"),sx:{background:e=>e.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,...c},...m,children:t.jsx(o.CircularProgress,{})});let S=null;w&&(S=t.jsxs(o.Box,{display:"flex",justifyContent:"center",alignItems:"center",className:h(d,"script-select","error-results"),sx:{background:e=>e.palette.error.light,flex:"0",zIndex:1e3,flexDirection:"column",padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.error.main}`,borderBottomLeftRadius:1,borderBottomRightRadius:1,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},...m,children:[t.jsx(o.Typography,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),t.jsx(o.Typography,{color:"error",component:"div",children:w})]}));const C=e=>{const n=e.metadata?.icon;return"macro"===n?t.jsx(ru,{sx:XI}):"formula"===n?t.jsx(iu,{sx:XI}):"autostart"===n?t.jsx(r.WebhookOutlined,{sx:XI}):null};return t.jsxs(o.Box,{ref:i,className:h(d,"script-select"),sx:{background:e=>e.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,...c},...m,children:[t.jsxs(o.Box,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[t.jsx(o.Typography,{variant:"h6",gutterBottom:!0,children:"Script Template"}),t.jsx(o.Typography,{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."}),t.jsx(o.Typography,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),t.jsx(o.Box,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${u}px, 1fr))`,gap:`${f}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:g.map((e,n)=>t.jsxs(o.Button,{variant:"outlined",sx:{minWidth:u,minHeight:p,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...0===n&&{borderStyle:"dashed",marginBottom:"8px"},...1===n&&{gridColumn:"1"}},onClick:()=>s?.(e),children:[t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[t.jsx(o.Typography,{variant:"subtitle2",component:"div",children:e.metadata?.title||e.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),C(e)]}),e.metadata?.summary&&t.jsx(o.Typography,{variant:"body2",component:"div",color:"text.secondary",sx:{overflow:"hidden",display:"flex",flexDirection:"column",textOverflow:"ellipsis",alignItems:"flex-start"},children:e.metadata.summary})]},`${e.path}-${n}`))})]}),S]})}));YI.displayName="TemplateSelectPanel";const JI=n.memo(n.forwardRef((e,i)=>{const{className:l,sx:s,editorProps:c,commands:d,readOnly:u=!1,onClose:p,autoFocusSel:f,autoFocus:m=!0,scripts:g,...x}=e,y=sb(),[b,w]=n.useState(!1),v=n.useRef(!1),[S,C]=n.useState({message:"Loading",cursor:"",dirty:!1}),[k,E]=n.useState(null);n.useEffect(()=>{let e=!1;return E(null),async function(){if(g&&(await g.start(),!e)){const e=g.getModules().search()[0]?.getSource();E({source:e||null})}}(),()=>{e=!0}},[g]);const _=n.useCallback(e=>{C(t=>({...t,...e}))},[]),T=n.useRef(null),j=n.useRef(null),[M,R]=n.useState(null),I=n.useRef(null),D=nt(e=>{if(M)return M.focus(e),!0;if(f){const t=j.current?.querySelectorAll?.(f);if(t&&t.length>0)return t[0]?.focus?.(e),!0}return j.current?.focus?.(e),!1},[M,f,m]),L=n.useMemo(()=>t.jsx(vu,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),O=n.useMemo(()=>t.jsx(o.Paper,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,marginLeft:e=>e.spacing(.5),marginRight:e=>e.spacing(.5),marginTop:e=>e.spacing(1),marginBottom:e=>e.spacing(1)},children:t.jsx(KI,{commands:d})}),[y,d]),P=n.useMemo(()=>t.jsx(o.Box,{className:h("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 ${y.palette.divider}`},children:t.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[t.jsx(o.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:e=>e.palette.text.secondary},variant:"caption",children:S.message}),t.jsx(o.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:e=>e.palette.text.secondary},variant:"caption",children:S.dirty?"Unsaved":""}),t.jsx(o.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:e=>e.palette.text.secondary},variant:"caption",children:S.cursor})]})}),[S]),A=n.useMemo(()=>t.jsxs(o.Box,{className:h("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[O,t.jsx(o.Box,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:t.jsx(zj,{ref:j,loadingPanel:L,readOnly:u,onClose:p,autoFocus:m,commands:d,onStatusChange:_,darkMode:"dark"===y.palette.mode,...c})}),P]}),[y,d,O,P,b,L,u,c,m,f,p,_]),F=n.useMemo(()=>t.jsx(o.DialogTitle,{className:h({"Mui-selected":v.current}),sx:{display:"flex",color:e=>e.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:e=>`${e.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:e=>e.transitions.duration.shortest/2+"ms"},backgroundColor:e=>a.alpha(e.palette.action.hover,.03),borderBottom:e=>`solid ${a.alpha(e.palette.divider,.2)} 1px`},onPointerDown:e=>{e.isDefaultPrevented()||(e.preventDefault(),D())},children:t.jsxs(o.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(.25),marginBottom:e=>e.spacing(.25),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},children:[t.jsx(o.Box,{sx:{flex:"1 1 100%",paddingLeft:e=>e.spacing(1)},children:"Script (Typescript)"}),t.jsx(Lp,{label:"Close",children:t.jsx(o.IconButton,{"aria-label":"close",sx:{color:e=>e.palette.text.icon??e.palette.action.active},touchRippleRef:T,onPointerDown:e=>{T.current?.start(e,{center:!1}),e.stopPropagation(),e.preventDefault()},onPointerUp:()=>{j.current?.close()},children:t.jsx(r.Close,{})})})]})}),[y,b]),z=n.useMemo(()=>{let e;return null===k?null:(null===k.source&&(e=t.jsx(YI,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:e=>{j.current?.getEditor().insertSnippet(e.content),E({source:e.content??""})}})),t.jsxs(o.Box,{tabIndex:0,className:h("script-workspace",l),sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",alignItems:"stretch",userSelect:"none",flexGrow:0,outline:"none",backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},onPointerDown:e=>{e.isDefaultPrevented()||j.current?.focus()},children:[F,t.jsxs(o.Box,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[A,e]})]}))},[O,A,l,k]),B=Nt(i,()=>({isScriptWorkspaceElement:()=>!0,focus:e=>{D(e)}}),[]);return t.jsx(o.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...s},ref:B,...x,onFocus:e=>{w(!0),v.current=!0,B.current?.contains(e.target)&&e.target!==B.current&&R(e.target),e.relatedTarget&&!I.current&&(I.current=e.relatedTarget),x?.onFocus?.(e)},onBlur:e=>{B?.current?.contains(e.relatedTarget)||B?.current===e.relatedTarget||(I.current=null,v.current=!1,w(!1)),x?.onBlur?.(e)},children:z})}));JI.displayName="ScriptWorkspace";const QI=n.memo(n.forwardRef((e,r)=>{const{commands:i,commandHook:l,scope:a,disabled:s=!1,...c}=e,d=Vn(i,["executeScript"])[0].context();Vn(i,["showScriptEditor"]);const u=n.useCallback((e,r)=>{const i={variant:Hn.Menuitem,commandHook:l,scope:"scripts",disabled:s,shortcut:null},a=d?.getScripts(),c=a?.searchFunction({type:"macro"}),u=[];if(c)for(let e=0;e<c.length;e++){const n=c[e];u.push(t.jsx(Km,{...i,command:r.getCommand("executeScript"),commandState:{declaration:n},tooltipProps:{description:`Execute ${n.getName()??"script"}`},icon:pa(t.jsx(ru,{})),label:n.getName()??`Script '${n.getName()}'`},`script-${n.getName()}-${e}`))}const p=t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[u.length>0?t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:u}),t.jsx(du,{orientation:"horizontal"})]}):null,n.createElement(Km,{...i,key:"show-editor",command:r.getCommand("showScriptEditor"),icon:pa(t.jsx(Gd,{}))})]});return cp({...e,children:p})},[s,d,l,a]);return t.jsx(Ym,{ref:r,commands:i,commandHook:l,createPopupPanel:u,selected:i.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:pa(t.jsx(tu,{})),...c})})),eD=n.memo(n.forwardRef((e,o)=>{const{commands:r,parentFloat:i,commandButtonProps:l,...a}=e,s=Vn(r,["executeScript","showScriptEditor"]),c=s[0]?.context?.(),d=n.useCallback(e=>{const{commandButtonProps:n,commandPopupProps:o}=e,l=t.jsx(mM,{...o,command:r.getCommand("formatFontColor"),icon:t.jsx(ma,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),a=t.jsx(mM,{...o,command:r.getCommand("formatFillColor"),icon:t.jsx(ha,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:Nj.End}}),d=r.getCommand("undo")?t.jsx(t.Fragment,{children:t.jsx(bM,{...o,quickCommand:"undo"})}):null,u=r.getCommand("find")?t.jsx(t.Fragment,{children:t.jsx(aM,{...o})}):null;let p=null;const h=c?.getScripts();if(s[1]?.state?.()||h){let e=s[1]?.state?.();const n=h?.searchFunction({type:"macro"});for(let t=0;n&&!e&&t<n?.length;t++)e=!0;e&&(p=t.jsxs(t.Fragment,{children:[t.jsx(du,{}),t.jsx(QI,{...o})]}))}return t.jsxs(RI,{parentFloat:i,children:[d,null,d?t.jsx(du,{}):null,t.jsx(EM,{...o,command:r.getCommand("paste")}),t.jsx(Km,{...n,command:r.getCommand("formatPainterToggle"),icon:pa(t.jsx(Ac,{}))}),t.jsx(ZM,{...n,command:r.getCommand("copy")}),t.jsx(du,{}),t.jsx(SM,{...o,command:r.getCommand("formatFontFamily")}),t.jsx(sM,{...o,command:r.getCommand("formatFontSize")}),t.jsx(Km,{...n,command:r.getCommand("formatBoldToggle"),icon:t.jsx(kr,{})}),t.jsx(Km,{...n,command:r.getCommand("formatItalicToggle"),icon:t.jsx(Cr,{})}),t.jsx(kM,{...o}),t.jsx(CM,{...o}),l,t.jsx(du,{}),a,t.jsx(rM,{...o}),t.jsx(iM,{...o}),t.jsx(du,{}),t.jsx(ng,{...o}),t.jsx(og,{...o}),t.jsx(rg,{...o}),t.jsx(ig,{...o}),t.jsx(du,{}),t.jsx(dM,{...o}),t.jsx(RM,{command:r.getCommand("formatCellStyle"),...o}),t.jsx(zM,{command:r.getCommand("formatTableStyle"),...o}),t.jsx(du,{}),t.jsx(hM,{...o}),t.jsx(fM,{...o}),t.jsx(du,{}),t.jsx(pM,{...o}),null,t.jsx(uM,{...o}),t.jsx(xM,{...o}),u,p]})},[r,s]);return t.jsx(Qm,{ref:o,commands:r,parentFloat:i,commandButtonProps:l,createToolbarPalette:d,...a})})),tD=n.memo(n.forwardRef((e,n)=>{const{commands:o,parentFloat:r,commandButtonProps:i,...l}=e,a=nt(e=>{const{commandButtonProps:n,commandPopupProps:i}=e;return t.jsxs(RI,{parentFloat:r,children:[null,t.jsx(Km,{...n,command:o.getCommand("updateHyperlink"),icon:pa(t.jsx(Tc,{}))}),t.jsx(Km,{...n,command:o.getCommand("updateComments"),icon:pa(t.jsx(jc,{}))}),t.jsx(qM,{...i}),t.jsx(Km,{...n,command:o.getCommand("insertTable"),icon:pa(t.jsx(Rc,{}))})]})},[o]);return t.jsx(Qm,{ref:n,commands:o,parentFloat:r,commandButtonProps:i,createToolbarPalette:a,...l})})),nD=n.memo(n.forwardRef((e,n)=>{const{commands:o,parentFloat:i,commandButtonProps:l,...a}=e,s=nt(e=>{const{commandButtonProps:n,commandPopupProps:l}=e;return t.jsxs(RI,{parentFloat:i,children:[t.jsx(lM,{...l}),t.jsx(Km,{...n,command:o.getCommand("protectionSheetToggle"),icon:t.jsx(r.Lock,{color:"secondary"})}),t.jsx(du,{}),t.jsx(gM,{...l}),t.jsx(_M,{...l}),t.jsx(du,{}),t.jsx(Km,{...n,command:o.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:t.jsx(Jm,{command:o.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),t.jsx(Km,{...n,command:o.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:t.jsx(Jm,{command:o.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),t.jsx(du,{}),t.jsx(TM,{...l}),t.jsx($M,{command:o.getCommand("selectTheme"),...l}),t.jsx(du,{}),t.jsx(QI,{...l,scope:"view"}),t.jsx(du,{}),t.jsx(Km,{...n,command:o.getCommand("fullScreenToggle"),scope:"view",icon:()=>pa(o.getCommand("fullScreenToggle").state()?t.jsx(ad,{}):t.jsx(ld,{}))})]})},[o]);return t.jsx(Qm,{ref:n,commands:o,parentFloat:i,commandButtonProps:l,createToolbarPalette:s,...a})})),oD=e=>t.jsx(aD,{...e}),rD=n.memo(e=>{const{sx:n,...r}=e;return t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:e=>`${a.alpha(e.palette.primary.main,.35)} solid 2px`}},children:[t.jsx(o.Tab,{disableRipple:!0,onMouseDown:e=>{0===e.button&&e.preventDefault()},sx:{textTransform:"none",flex:"1 1 100%",fontWeight:e=>e.typography.fontWeightRegular,padding:"2px 6px",minHeight:"0px",minWidth:"0px",marginRight:e=>e.spacing(.5),"&.Mui-selected":{},"&.Mui-focusVisible":{},...n},...r}),t.jsx(o.Box,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),iD=n.memo(e=>{const{toolbars:r,value:i,onToolbarChange:l,sx:a,...s}=e,c=n.useMemo(()=>{const e=[];for(let n=0;n<r.length;n++)e.push(t.jsx(rD,{label:r[n].label},r[n].label));return e},[r]);return t.jsx(o.Tabs,{value:i,onChange:(e,t)=>{l?.(t)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5),paddingTop:e=>e.spacing(0),paddingBottom:e=>e.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:e=>e.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...a},TabIndicatorProps:{children:t.jsx("span",{className:"MuiTabs-indicatorSpan"})},...s,children:c})}),lD=n.memo(e=>{const{toolbars:r,value:i,onToolbarChange:l,selectProps:s,...c}=e,d=n.useCallback(e=>{l?.(e.target.value)},[l]),u=n.useMemo(()=>{const e=[];for(let n=0;n<r.length;n++){const l=r[n].label;e.push(t.jsx(o.MenuItem,{value:n,sx:{color:e=>{if(i===n)return e.palette.primary.main}},children:l},l))}return e},[r,i]);return t.jsx(o.FormControl,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:e=>e.spacing(.5),paddingBottom:e=>e.spacing(.5),paddingLeft:e=>e.spacing(2),color:e=>e.palette.primary.main},"& .MuiSelect-icon":{fill:e=>e.palette.text.icon??e.palette.action.active,"&:hover:not(.Mui-disabled)":{color:e=>e.palette.text.icon??e.palette.action.active}},...s},size:"small",children:t.jsx(o.Select,{value:i,onChange:d,variant:"outlined",sx:{backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`},...c,children:u})})}),aD=n.memo(n.forwardRef((e,r)=>{const{commands:i,selectWrapper:l,selectProps:s={},renderCompact:c=!1,paletteWrapper:d,toolbarsProps:u,paletteProps:p={},workbook:h,sx:f,...m}=e,g=n.useMemo(()=>{const e=[],{ref:n,...o}=u?.Home||{};e.push({label:"Home",component:t.jsx(eD,{commands:i,...o})});const{ref:r,...l}=u?.Insert||{};e.push({label:"Insert",component:t.jsx(tD,{commands:i,...l})});const{ref:a,...s}=u?.View||{};return e.push({label:"View",component:t.jsx(nD,{commands:i,...s})}),e},[i]),x=n.useMemo(()=>{const e=[];for(let t=0;t<g.length;t++)e.push(n.cloneElement(g[t].component,{...g[t].component.props,key:g[t].key??g[t].label}));return e},[g]),[y,b]=n.useState(0),w=e=>{b(e)},v=n.useMemo(()=>c?t.jsx(lD,{toolbars:g,value:y,onToolbarChange:w,sx:s}):t.jsx(iD,{toolbars:g,value:y,onToolbarChange:w,sx:s}),[g,y,s,c]),{sx:S,...C}=p,k=t.jsx(o.Paper,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`,marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1),marginTop:e=>e.spacing(.5),marginBottom:e=>e.spacing(.5),...S},...C,children:x[y]});return t.jsxs(o.Box,{ref:r,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:e=>e.spacing(.5),"*":{userSelect:"none"},...f},...m,children:[l?l(v):v,d?d(k):k]})})),sD=e=>t.jsx(XR,{...e}),cD=e=>t.jsx(YR,{...e}),dD=e=>t.jsx(KR,{...e}),uD=n.memo(n.forwardRef((e,i)=>{const{workbook:l,commands:s,onBeforeUserChange:c,onUserChange:d,disabled:u=!1,readOnly:p=!1,contextMenuProps:f,renderContextMenu:m=sD,sheetsAllProps:g,renderSheetsAll:x=cD,sheetTabProps:y,renderSheetTab:b,background:w="transparent",className:v,notifier:S,sx:C,borderWidth:k,borderColor:E,gridTheme:_,gridStyle:T,...j}=e,[M,R]=n.useState(l?.getSelectedSheetIndex()),[I,D]=n.useState(l?.getSheets().search()),[L,O]=n.useState(l?.getProtection());kk(l,{onViewChange(e){R(e?.getSelectedSheetIndex())},onSheetsChange:e=>{D(e.getSheets().search())},onProtectionChange:e=>{O(e?.getProtection())}});const P=p||!L.isStructureAllowed(),A=n.useMemo(()=>{const e=[];for(let t=0;t<I.length;t++)e.push(I[t].getName());return e},[I]),F=n.useCallback(e=>{!1!==c?.(e)&&(l.getSheetAt(e).select(),d?.(e))},[l,c,d]),z=n.useCallback((e,t)=>{l.getSheetAt(e).setName(t),d?.(e)},[l,d]),B=n.useCallback((e,t)=>{l.getSheetAt(e).setPosition(t),d?.(t)},[l,d]),N=nt(()=>{if(!1===c?.(M))return;const e=M+1;l.getSheets().add({name:void 0,autoSelect:!0}),d?.(e)},[l,c,d,M]),V=n.useMemo(()=>({placement:"top-start"}),[]),H=n.useRef(null),[$,W]=n.useState(!1),U=n.useCallback(e=>{const{closeFloatAll:t,floatReference:n}=e;return x({workbook:l,gridStyle:T,floatReference:n,closeFloatAll:t,...g})},[x,g,u,l,T]),{reference:q,component:Z}=Ep({label:"allSheet",popperProps:V,anchor:H.current,onOpen:()=>W(!0),onClose:()=>W(!1),createPopupPanel:U}),G=n.useRef(null),[K,X]=n.useState(null),Y=n.useCallback(e=>{const{floatReference:t}=e;return m?.({workbook:l,index:K?.index,tabStripRef:G.current,commands:s,disabled:u,floatReference:t,...f})},[m,f,u,l,s,K]),{reference:J,component:Q}=Ep({label:"sheetTab",popperProps:V,anchor:{getBoundingClientRect:()=>new DOMRect(K?.left||0,K?.top||0,0,0)},onClose:()=>X(null),createPopupPanel:Y});n.useEffect(()=>{K?J.open(0):J.close(0)},[K]);const ee=n.useCallback((e,t)=>{e.preventDefault(),X({left:e.clientX-2,top:e.clientY-4,index:t})},[]),te=nt(e=>{let t;try{t=l?.getSheetAt(e.index)}catch(e){}if(!t)return null;return(b??dD)({sheet:t,gridTheme:_,onContextMenu:t=>{F(e.index),ee(t,e.index)},...e,...y})},[b,y,l,_]),ne=n.useMemo(()=>P?null:t.jsx(Mp,{disableInteractive:!0,title:"New sheet",children:t.jsx(o.IconButton,{disabled:u,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},color:e=>e.palette.text.icon??e.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>N(),children:t.jsx(r.AddCircleOutline,{})})}),[u,P,N]);return t.jsxs(o.Box,{ref:i,className:h(v),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...C},...j,children:[t.jsx(Tj,{ref:G,selectedTabIndex:M,tabNames:A,onSelectedTabIndexChange:F,onTabNameChange:z,onTabMove:B,background:w,borderColor:E,borderWidth:k,activeColor:null,disabled:u,disableDrag:P,createScrollStartButton:su,createScrollEndButton:cu,createScrollEdgeButton:lu,createTabButton:te,createTabDivider:e=>{const{key:n,...o}=e;return t.jsx(du,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:e=>a.alpha(e.palette.divider,.25)},...o},n)},editLabelProps:{readOnly:P,maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:e=>{l.isValidSheetNameCharacter(e.key)||e.preventDefault()},onCancel:()=>{d?.(M)},notifier:S},children:t.jsx(Mp,{disableInteractive:!0,title:$?"":"List all sheets",children:t.jsx(Ap,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:e=>e.palette.text.icon??e.palette.action.active},ref:H,dense:!0,outlined:!1,selected:$,color:"primary","aria-label":"menu",onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{$?q.close(0):q.open(0)},icon:t.jsx(r.Menu,{})})})}),t.jsx("div",{style:{borderTop:`solid ${E} ${k}px`,minWidth:"4px"}}),t.jsx("div",{style:{borderTop:`solid ${E} ${k}px`,flex:"none",display:"flex",alignItems:"center"},children:ne}),t.jsx("div",{style:{borderTop:`solid ${E} ${k}px`,flex:1,minWidth:"24px"}}),Q,Z]})}));uD.displayName="WorkbookStrip";const pD=n.memo(n.forwardRef((e,r)=>{const{workbook:i,commands:l,disabled:a,sx:s,floatReference:c,className:d,...u}=e,[p,f]=n.useReducer(e=>e+1,0),[m,g]=n.useState(i.getSelectedSheet()),[x,y]=n.useState(m.getSelectedRanges()),[b,w]=n.useState(m.getSelectedCell());kk(i,{onSheetsChange(){g(i.getSelectedSheet())}}),kk(m.getSelection(),{onChange(){y(m.getSelectedRanges()),w(m.getSelectedCell())}}),Vn(l,[],{onChange:()=>{f()}});const v=n.useMemo(()=>({}),[]),S=n.useMemo(()=>({commandHook:{beforeExecute:(e,t)=>c.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:a,scope:"contextMenu",parentFloat:c}),[a,c]),C=n.useMemo(()=>({...v,...S,variant:Hn.Menuitem}),[v,S]),k=n.useMemo(()=>({commands:l,variant:Hn.Menuitem,parentFloat:c,...S}),[l,S,c]),E=[];let _=x.isEntireRows(),T=x.isEntireColumns();x&&(_&&(E.push(t.jsx(du,{orientation:"horizontal"},"context:"+E.length)),E.push(n.createElement(Km,{command:l.getCommand("hideColumns"),...C,icon:pa(t.jsx(wc,{})),key:"context:"+E.length})),E.push(n.createElement(Km,{command:l.getCommand("unhideColumns"),...C,icon:pa(t.jsx(bc,{})),key:"context:"+E.length}))),T&&(E.push(t.jsx(du,{orientation:"horizontal"},"context:"+E.length)),E.push(n.createElement(Km,{command:l.getCommand("hideRows"),...C,icon:pa(t.jsx(Sc,{})),key:"context:"+E.length})),E.push(n.createElement(Km,{command:l.getCommand("unhideRows"),...C,icon:pa(t.jsx(vc,{})),key:"context:"+E.length}))),(_||T)&&E.push(t.jsx(du,{orientation:"horizontal"},"context:"+E.length)),_&&E.push(n.createElement(Km,{command:l.getCommand("autoFitColumns"),...C,icon:pa(t.jsx(Id,{})),key:"context:"+E.length})),T&&E.push(n.createElement(Km,{command:l.getCommand("autoFitRows"),...C,icon:pa(t.jsx(Dd,{})),key:"context:"+E.length})));const j=[],M=l.getCommand("formatTableStyle"),R=M?.context()?.table();if(Bn(M),!_&&!T){if(j.push(t.jsx(du,{orientation:"horizontal"},"contextBefore:"+j.length)),b?.getHyperlink())j.push(n.createElement(tg,{...k,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+j.length,quickCommand:"openHyperlink",icon:e=>"openHyperlink"===e.key()?pa(t.jsx(Tc,{})):null}));else{const e=l.getCommand("updateHyperlink");j.push(n.createElement(Km,{command:e,...C,icon:pa(t.jsx(Tc,{})),key:"contextBefore:"+j.length}))}if(b?.getComments())j.push(n.createElement(tg,{...k,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+j.length,quickCommand:"updateComments",icon:e=>"updateComments"===e.key()?pa(t.jsx(jc,{})):null}));else{const e=l.getCommand("updateComments");j.push(n.createElement(Km,{command:e,...C,icon:pa(t.jsx(jc,{})),key:"contextBefore:"+j.length}))}R?j.push(n.createElement(tg,{...k,variant:Hn.Menuitem,key:"contextBefore:"+j.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:R,quickCommand:"editTable",icon:e=>{e.key();return pa(t.jsx(Rc,{}))}})):j.push(n.createElement(Km,{command:l.getCommand("insertTable"),...C,icon:pa(t.jsx(Rc,{})),key:"context:"+E.length})),j.push(n.createElement(qM,{...k,key:"contextBefore:"+j.length}))}const I=t.jsxs(t.Fragment,{children:[t.jsx(Km,{command:l.getCommand("cut"),...C,icon:t.jsx(La,{})}),t.jsx(ZM,{command:l.getCommand("copy"),...C}),t.jsx(EM,{command:l.getCommand("paste"),...k,includePasteAllInPopup:!1}),t.jsx(du,{orientation:"horizontal"}),t.jsx(xM,{...k}),t.jsx(du,{orientation:"horizontal"}),t.jsx(hM,{commands:l,...k,disableSheet:!0}),t.jsx(fM,{commands:l,...k,disableSheet:!0}),t.jsx(uM,{...k}),j,E]});return t.jsx(o.Box,{ref:r,className:h("menu",d),sx:{...s},...u,children:I})}));var hD,fD;pD.displayName="WorkbookContextMenu",function(){if(fD)return hD;fD=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i="object"==typeof cg&&cg&&cg.Object===Object&&cg,l="object"==typeof self&&self&&self.Object===Object&&self,a=i||l||Function("return this")(),s=Object.prototype.toString,c=Math.max,d=Math.min,u=function(){return a.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(i))return NaN;if(p(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=p(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var a=n.test(i);return a||o.test(i)?r(i.slice(2),a?2:8):t.test(i)?NaN:+i}hD=function(e,t,n){var o,r,i,l,a,s,f=0,m=!1,g=!1,x=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,i=r;return o=r=void 0,f=t,l=e.apply(i,n)}function b(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-f>=i}function w(){var e=u();if(b(e))return v(e);a=setTimeout(w,function(e){var n=t-(e-s);return g?d(n,i-(e-f)):n}(e))}function v(e){return a=void 0,x&&o?y(e):(o=r=void 0,l)}function S(){var e=u(),n=b(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(w,t),m?y(e):l}(s);if(g)return a=setTimeout(w,t),y(s)}return void 0===a&&(a=setTimeout(w,t)),l}return t=h(t)||0,p(n)&&(m=!!n.leading,i=(g="maxWait"in n)?c(h(n.maxWait)||0,t):i,x="trailing"in n?!!n.trailing:x),S.cancel=function(){void 0!==a&&clearTimeout(a),f=0,o=s=r=a=void 0},S.flush=function(){return void 0===a?l:v(u())},S}}();var mD,gD,xD={exports:{}},yD={};gD||(gD=1,xD.exports=function(){if(mD)return yD;mD=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=e.useState,r=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=o({inst:{value:n,getSnapshot:t}}),c=s[0].inst,d=s[1];return i(function(){c.value=n,c.getSnapshot=t,a(c)&&d({inst:c})},[e,n,t]),r(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),l(n),n};return yD.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,yD}()),xD.exports;var bD,wD,vD={exports:{}},SD={exports:{}},CD=SD.exports;!function(){if(wD)return vD.exports;wD=1;for(var e=(bD||(bD=1,function(){var e,t,n,o,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?SD.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(SD.exports=function(){return(e()-r)/1e6},t=process.hrtime,e=function(){var e;return 1e9*(e=t())[0]+e[1]},o=e(),i=1e9*process.uptime(),r=o-i):Date.now?(SD.exports=function(){return Date.now()-n},n=Date.now()):(SD.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}.call(CD)),SD.exports),t="undefined"==typeof window?cg:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var a=0,s=0,c=[],d=1e3/60;r=function(t){if(0===c.length){var n=e(),o=Math.max(0,d-(n-a));a=o+n,setTimeout(function(){var e=c.slice(0);c.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(a)}catch(e){setTimeout(function(){throw e},0)}},Math.round(o))}return c.push({handle:++s,callback:t,cancelled:!1}),s},i=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}vD.exports=function(e){return r.call(t,e)},vD.exports.cancel=function(){i.apply(t,arguments)},vD.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=r,e.cancelAnimationFrame=i},vD.exports}();var kD={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("undefined"==typeof document)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?"change"===e?t[0]:t[1]:null},get fullscreenEnabled(){if("undefined"==typeof document)return!1;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||!1},get fullscreenElement(){if("undefined"==typeof document)return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,t){if("undefined"==typeof document)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("undefined"==typeof document)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 ED=t=>{const{workbook:o,workbookElement:r,notifier:i,commandTarget:l,commands:a,darkMode:s,onShowSidebar:c,onNewWorkbook:d=_D}=t,[u,p]=n.useState(o?.getSelectedSheet()),[h,f]=n.useState(o?.getSheets().search()),m=nt(c,[c]),g=nt(d,[d]),x=n.useMemo(()=>[new On("workbookStatistics",l,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[Ue.Ctrl,Ue.Shift]}}),new On("showFormat",l,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[Ue.Ctrl,Ue.Shift]}}),new Ln("newCellStyle",l,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new Ln("deleteCellStyle",l,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new Ln("modifyCellStyle",l,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new On("find",l,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[Ue.Ctrl]},{key:"F5",modifiers:[Ue.Shift]}]}),new On("findReplace",l,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[Ue.Ctrl]},{key:"H",modifiers:[Ue.Ctrl,Ue.Alt]}]}),new On("goto",l,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[Ue.Ctrl]}]}),new On("workbookViewToggleExpandFormulaBar",l,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[Ue.Ctrl,Ue.Shift]}}),new On("workbookViewToggleShowFormulaBar",l,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new On("workbookViewToggleShowTabs",l,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new On("workbookViewToggleShowStatusBar",l,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new On("workbookViewToggleShowHorizontalScrollBar",l,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new On("workbookViewToggleShowVerticalScrollBar",l,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new Ln("hideSheet",l,{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 Ln("deleteSheet",l,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new Ln("addSheet",l,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[Ue.Shift]},{key:"F1",modifiers:[Ue.Alt,Ue.Shift]}]}),new Ln("duplicateSheet",l,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new Ln("nextSheet",l,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[Ue.Ctrl]}]}),new Ln("previousSheet",l,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[Ue.Ctrl]}]}),new Ln("selectNextSheet",l,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[Ue.Ctrl,Ue.Shift]}]}),new Ln("selectPreviousSheet",l,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[Ue.Ctrl,Ue.Shift]}]}),new Ln("selectTheme",l,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new Ln("selectNamed",l,{label:e=>e?.getName()??"Select Named Item",scopedLabels:{namedItem:e=>e?.getName()??"Select"},description:"Select the item."}),new Ln("addNamedReference",l,{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 Ln("editNamedReference",l,{label:"Edit Named Reference…",scopedLabels:{namedItem:"Edit…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new Ln("deleteNamedReference",l,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new On("activeNameBox",l,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[Ue.Alt]}}),new On("createNamedReferenceFromSelection",l,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[Ue.Ctrl,Ue.Shift]}}),new On("activeNameManager",l,{label:"Activate Name Manager",description:"Create, edit, delete, and find all the names used in the workbook.\n\nNames can be used as a substitute for cell references.",shortcut:{key:"F3",modifiers:[Ue.Ctrl]}}),new Ln("fullScreenToggle",l,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new Ln("showScriptEditor",l,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[Ue.Alt]}]},function(e=!0){m?.()}),new Ln("executeScript",l,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new Ln("executeSelectedScript",l,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new Ln("saveScripts",l,{label:"Save Script",description:"Save the current scripts."}),new Ln("maximumWorkbookToggle",l,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[Ue.Ctrl]}}),new Ln("spellCheck",l,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new Ln("calculateAll",l,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new On("calculate",l,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[Ue.Ctrl]}}),new On("closeWorkbook",l,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[Ue.Ctrl]}}),new On("newWorkbook",l,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[Ue.Ctrl]}})],[]),y=n.useMemo(()=>{let e=null;return e=a?a.createChildGroup(l,"workbook",!1):new Pn(l,"workbook"),e.addCommands(x,!0),e},[a,x]),b=Dn(),w=n.useRef(null),v=nt(()=>{let e,t=null;const n=y.getCommand("executeScript");if(n.update({disabled:!1,context:{getScripts:()=>o.getScripts()}}),!n)return;const r=y.getCommand("executeSelectedScript");if(!r)return;const l={saveSource:async e=>{let t=null,n=null;const r=o.getScripts();try{if(e){n=await(i?.showBusy?.("Saving Scripts..."));t=await r.createModule({source:e})}r.addModule("scripts",t,{replace:!0}),n?.()}catch(e){n?.(),console.warn("Unable to compile",e),i?.showError?.(e)}return t},addContainerListener:e=>(S.current=e,()=>{S.current=null}),setSelectedFunction:t=>{e=t??w.current??null,Promise.resolve(e).then(e=>{r.update({disabled:null===e})})},quickInsertFunction:e=>{const t=`=${e.toUpperCase()}(`,n={text:t+")",editMode:!0,initialSelection:{start:t.length,end:t.length+0}};b.setMode(e=>"edit"===e?.key?{...e,args:{...e.args}}:{key:"edit",args:{stateAndCoords:null,start:n}})},getSelectedFunction:()=>e,setEditor:e=>{t=e??null,y.getCommand("showScriptEditor")?.update({state:null!==e})},getEditor:()=>t,getRanges:e=>{try{return o.getRanges(e)}catch(e){}return null},getScripts:()=>o.getScripts(),isReadOnly:()=>!1===o.getProtection().isStructureAllowed()};r.update({context:l})},[y,o,r,i]),S=n.useRef(null);kk(o,{onBeforeSave:async()=>{await(S.current?.onBeforeSave())},onProtectionChange:()=>{S.current?.onReadonlyChange()},onLoad:()=>{(async()=>{await o.getCalculation().start(),o.getScripts().start(),S.current?.onScriptChange()})()}}),kk(o,{onSheetsChange:e=>{f(e.getSheets().search())},onViewChange(e){p(e?.getSelectedSheet())},onProtectionChange:e=>{const t={disabled:!e.getProtection().isStructureAllowed()};y.getCommand("hideSheet").update(t),y.getCommand("deleteSheet").update(t),y.getCommand("addSheet").update(t),y.getCommand("duplicateSheet").update(t),y.getCommand("selectTheme").update(t),y.getCommand("addNamedReference").update(t),y.getCommand("editNamedReference").update(t),y.getCommand("deleteNamedReference").update(t)},onScriptsChange:e=>{v()}});const{isFullscreenAvailable:C,isFullscreenEnabled:k,toggleFullscreen:E}=function(e={}){const{target:t,onChange:o,onError:r,requestFullScreenOptions:i}=e,[l,a]=n.useState(!1),[s,c]=n.useState(null),[d,u]=n.useState(!1),p=n.useCallback(()=>kD.requestFullscreen(t?.current||null,i),[t,i]),h=n.useCallback(()=>kD.exitFullscreen(),[]),f=n.useCallback(()=>kD.fullscreenElement?h():p(),[p,h]),m=n.useCallback(e=>{const t=kD.fullscreenElement;c(t),u(!!t),o?.(e)},[o]),g=n.useCallback(e=>{const t=kD.fullscreenElement;c(t),u(!!t),r?.(e)},[r]);return n.useEffect(()=>{a(kD.fullscreenEnabled)},[]),n.useEffect(()=>(kD.on("change",m),kD.on("error",g),()=>{kD.off("change",m),kD.off("error",g)}),[m,g]),{isFullscreenAvailable:l,fullscreenElement:s,isFullscreenEnabled:d,enableFullscreen:p,disableFullscreen:h,toggleFullscreen:f}}({target:{current:r??document.body}}),_=Rj();n.useEffect(()=>{y.getCommand("selectTheme").update({state:()=>o.getTheme(),context:()=>({theme:o.getTheme(),themes:_,darkMode:s})})},[o?.getTheme(),s]);const T=nt(async function(e,t){let n=null;const r=o.getScripts();if(e?.declaration||e?.functionName){const t=e.declaration?e.declaration.getName():e.functionName;r.searchFunction({name:t}).length>0&&(n=t)}if(n)try{await r.executeMacro(n);w.current=Promise.resolve({source:null,name:n})}catch(e){return void i?.showError?.(e)}},[o,i]);n.useEffect(()=>{y.getCommand("newCellStyle").updateCallback(e=>{i?.showInputOptions?.({initialValue:(()=>{let e=0;for(;;){e++;const t=`Style ${e}`;try{return o.getStyles().validateStyleName(t,!0),t}catch(e){}}})(),title:y.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(e,t)=>{let n=null;try{o.getStyles().validateStyleName(e,!1)}catch(e){n=e.message}let r=o.getStyles().getNamed(e),i=n;return!i&&r&&(i=`Update style '${r.getName()}'.`),{valid:null===n,message:i}}}).then(({input:e,option:t})=>{const n=o.getSelectedSheet().getSelectedRange();if("Ok"!==t)return;const r=o.getStyles().setNamed({name:e,style:n.getCell().getStyle()});n.updateStyle({named:r.getName()})})}),y.getCommand("deleteCellStyle").updateCallback(e=>{e.delete()}),y.getCommand("modifyCellStyle").updateCallback(({named:e})=>{const t=o.getSelectedSheet().getSelectedRange();o.getStyles().setNamed({name:e.getName(),style:t.getCell().getStyle()})}),y.getCommand("hideSheet").updateCallback(t=>{o.getSheetAt(t).setVisibility(e.ISheet.Visibility.Hidden)}),y.getCommand("deleteSheet").updateCallback(async e=>{o.getSheetAt(e??o.getSelectedSheetIndex())?.delete()}),y.getCommand("addSheet").updateCallback(e=>{o.getSheets().add({index:e,autoSelect:!0})}),y.getCommand("duplicateSheet").updateCallback(async e=>{const t=await(o.getSheetAt(e??o.getSelectedSheetIndex())?.duplicate());t?.select()}),y.getCommand("nextSheet").updateCallback(e=>{o.getNextSheet(e??o.getSelectedSheetIndex()).select()}),y.getCommand("previousSheet").updateCallback(e=>{o.getPreviousSheet(e??o.getSelectedSheetIndex()).select()}),y.getCommand("selectNextSheet").updateCallback(e=>{o.getNextSheet(e??o.getSelectedSheetIndex()).select()}),y.getCommand("selectPreviousSheet").updateCallback(e=>{o.getPreviousSheet(e??o.getSelectedSheetIndex()).select()}),y.getCommand("selectTheme").updateCallback(e=>{o.setTheme(e)}),y.getCommand("calculateAll").updateCallback(()=>{o.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("calculate").updateCallback(()=>{o.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("closeWorkbook").updateCallback(async()=>{"Close"===await(i?.showOptions({title:"Confirm",description:"This will close the current workbook tab. Do you want to continue?",options:["Close","Cancel"],defaultOption:"Close"}))&&window.close()}),y.getCommand("newWorkbook").updateCallback(()=>{g?.()}),y.getCommand("executeScript").updateCallback(T),y.getCommand("executeSelectedScript").updateCallback(T)},[o,i]);const j=nt(async e=>{let t=0,n=null,r="Find & Replace";e?.replace&&!e?.replaceOptions?.maxCount&&(r="Replace All");const l=await(i?.showBusy?.(r));try{const r=e?.scope??"sheet";let a=null;const s=o.getSelectedSheet(),c={from:s.getSelectedCell(),...e.findOptions};if(a="sheet"===r?o.getSelectedSheet().find(e.findText,c):o.find(e.findText,c),e.replace){const r=o.replace(a,e.replaceText,e.replaceOptions);t=r.count,e.replaceOptions.maxCount&&(n=r.last)}else{let e=a.next();e.done||(t++,n=e.value)}n?.select({autoFocus:!1}),l?.(),!e.replaceOptions.maxCount&&t>1&&i?.showMessage?.(`We replaced ${t} cells.`)}catch(e){l?.(),i?.showError?.(e)}return t},[o,r]),M=nt(e=>{const t={value:e,context:{selection:()=>{const e=o.getSelectedRanges(),t=[];for(let n=0;n<e.getCount();n++){const o=e.at(n).getFixed(!0).getCoords();t.push(o)}return o.getRanges(t)},getNames:()=>o.getNames()},onUpdate:async e=>{try{await e.select()}catch(e){i?.showMessage?.(e.message,{type:Wt})}}};return i.showWindow?.("namedDetails",t)},[i,o,r]);return n.useEffect(()=>{const e=(e=!1)=>{const t=o.getSelectedCell(),n={onFindOrReplace:j,onKeyDown:e=>{y.findCommandByEvent(e)!==y.getCommand("find")&&y.findCommandByEvent(e)!==y.getCommand("findReplace")||e.preventDefault()},findOptions:{},findText:t.toTextUnformatted(!0)};n.replace=e,i.showWindow?.("find",n,{disableAutoDestroy:!0})};y.getCommand("find")?.update({disabled:!i?.showWindow}).updateCallback(()=>{e()}),y.getCommand("findReplace")?.update({disabled:!i?.showWindow}).updateCallback(()=>{e(!0)}),y.getCommand("goto")?.update({disabled:!i}).updateCallback(()=>{const e={onInputOption:async e=>{try{await o.getRanges(e).select()}catch(e){i?.showMessage?.(e.message,{type:Wt})}},onKeyDown:e=>{y.findCommandByEvent(e)===y.getCommand("goto")&&e.preventDefault()},title:y.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};i?.showInputOptions?.(e)}),y.getCommand("selectNamed")?.update({disabled:!i}).updateCallback(async e=>{if(e)try{await e.select()}catch(e){i?.showError?.(e)}}),y.getCommand("addNamedReference")?.updateCallback(async function(e){M(null)}),y.getCommand("editNamedReference")?.updateCallback(async function(e){M(e)}),y.getCommand("deleteNamedReference")?.updateCallback(async function(e){e?.delete?.()}),y.getCommand("activeNameBox")?.updateCallback(async function(){r?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[r,o,i]),kk(o?.getView(),{onViewChange:e=>{y.getCommand("workbookViewToggleShowFormulaBar").update({state:e.isShowFormulaBar()}).updateCallback(()=>{e.setShowFormulaBar(!e.isShowFormulaBar())}),y.getCommand("workbookViewToggleShowTabs").update({state:e.isShowTabs()}).updateCallback(()=>{e.setShowTabs(!e.isShowTabs())}),y.getCommand("workbookViewToggleShowStatusBar").update({state:e.isShowStatusBar()}).updateCallback(()=>{e.setShowStatusBar(!e.isShowStatusBar())}),y.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:e.isShowHorizontalScrollbar()}).updateCallback(()=>{e.setShowHorizontalScrollbar(!e.isShowHorizontalScrollbar())}),y.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:e.isShowVerticalScrollbar()}).updateCallback(()=>{e.setShowVerticalScrollbar(!e.isShowVerticalScrollbar())})}}),n.useEffect(()=>{y.getCommand("fullScreenToggle").update({state:k,disabled:!C}).updateCallback(()=>{E()})},[k,C]),n.useEffect(()=>{const e=o.getProtection().isStructureAllowed();y.getCommand("hideSheet").update({disabled:h.length<=1||!e}),y.getCommand("deleteSheet").update({disabled:h.length<=1||!e})},[h,u]),y},_D=()=>{window.open(window.origin.toString(),"sheetxl-"+e.CommonUtils.uuidV4(),"popup=true")},TD=n.memo(n.forwardRef((e,r)=>{const{movable:i,commands:l,disabled:a,sx:s,floatReference:c,...d}=e;kk(i,{onAnyChange(e){}});const u=n.useMemo(()=>({}),[]),p=n.useMemo(()=>({commandHook:{beforeExecute:(e,t)=>c.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:a,parentFloat:c}),[a,c]),h=n.useMemo(()=>({variant:Hn.Menuitem,...u,...p}),[u,p]),f=n.useMemo(()=>({commands:l,variant:Hn.Menuitem,parentFloat:c,...p}),[l,p,c]),m=e=>{const n=e?.key();switch(n){case"moveToFront":return pa(t.jsx(Pd,{}));case"moveForward":return pa(t.jsx(Ad,{}));case"moveToBack":return pa(t.jsx(Od,{}));case"moveBackward":return pa(t.jsx(Fd,{}));case"toggleLockAspectRatio":return pa(t.jsx(zd,{}));case"formatDrawAlignLeft":return pa(t.jsx(Nd,{}));case"formatDrawAlignCenter":return pa(t.jsx(Vd,{}));case"formatDrawAlignRight":return pa(t.jsx(Hd,{}));case"formatDrawAlignTop":return pa(t.jsx($d,{}));case"formatDrawAlignMiddle":return pa(t.jsx(Wd,{}));case"formatDrawAlignBottom":return pa(t.jsx(Ud,{}));case"formatDrawDistributeHorz":return pa(t.jsx(qd,{}));case"formatDrawDistributeVert":return pa(t.jsx(Zd,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return pa(t.jsx(Bd,{}));default:return null}},g=t.jsxs(t.Fragment,{children:[t.jsx(ZM,{command:l.getCommand("copy"),...h,variant:Hn.Menuitem}),[],t.jsx(du,{orientation:"horizontal"}),t.jsx(tg,{...f,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:m}),t.jsx(tg,{...f,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:m}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...h,command:l.getCommand("toggleLockAspectRatio"),icon:pa(t.jsx(zd,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(tg,{...f,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:e=>{const n=m(e);return n||pa(t.jsx(Nd,{}))},tooltip:"Quickly change the placement of your drawings."}),t.jsx(du,{orientation:"horizontal"}),t.jsx(tg,{...f,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:e=>{const n=m(e);return n||pa(t.jsx(Bd,{}))},tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return t.jsx(o.Box,{ref:r,sx:{paddingTop:"4px",paddingBottom:"4px",...s},...d,children:g})}));TD.displayName="MovableContextMenu";const jD="_sheetxl-theme_4opcr_2",MD="_sheetxl-workbook_1j3lu_5",RD={fireOnModelChange:!1},ID={flex:"1 1 100%",display:"flex"},DD=e=>t.jsx(tR,{...e}),LD=e=>t.jsx(uD,{...e}),OD=e=>t.jsx(TD,{...e}),PD=e=>t.jsx(pD,{...e}),AD=e=>t.jsx(ZR,{...e}),FD=(e,n)=>t.jsx(qR,{ref:n,...e}),zD=e=>t.jsx(vu,{...e}),BD=(e,n)=>t.jsx(SE,{ref:n,...e}),ND=n.memo(n.forwardRef((r,i)=>{const{workbook:l,createWorkbookOptions:s,onNewWorkbook:c,onElementLoad:d,notifier:u,autoFocus:p=!1,sx:f,style:m,className:g,onFocus:x,onBlur:y,onKeyDown:b,onRepeatCommandChange:w,commands:v,showFormulaBar:S,formulaBarProps:C,renderFormulaBar:k=FD,showTabs:E,tabsProps:_,renderTabs:T=LD,showStatusBar:j,statusBarProps:M,renderStatusBar:R=DD,toolbarProps:I,renderToolbar:D=oD,contextMenuSx:L,renderContextMenu:O=PD,renderFilterMenu:P=AD,renderMovableMenu:A=OD,renderLoadingPanel:F=zD,loadingPanelProps:z,sheetProps:B,renderSheet:N=BD,showHorizontalScrollbar:V,showVerticalScrollbar:H,gridTheme:$,headersTheme:W,enableDarkImages:U,...q}=r,Z=sb(),G=Rj(),K=n.useMemo(()=>{const t={theme:G.getDefaultTheme(),...s};return l??new e.Workbook(t)},[l]),X=n.useRef(null),[Y,J]=n.useState(!1),Q=n.useRef(null),ee=n.useMemo(()=>t.jsx(o.Box,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:Q}),[]),[te,ne]=n.useState(!1),[oe,re]=n.useState(!1),ie=n.useCallback(()=>{ne(!0)},[]),le=n.useRef(null),ae=Nt(i,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>K,getSheetElement:()=>X.current,getViewportElement:()=>Q.current,getFormulaBarElement:()=>le.current,focus(){X&&X.current&&X.current.focus()}}),[K]),se=n.useRef(null);n.useLayoutEffect(()=>{te&&ae.current&&(re(!0),se.current!==d&&(d?.({source:ae.current}),se.current=d))},[te,ae.current]),tI(ae.current);const ce=n.useCallback(e=>(X.current?.submitEdit(),!0),[]),de=n.useCallback(()=>{requestAnimationFrame(()=>{X?.current?.focus()})},[]),[ue,pe]=n.useState(K?.getSelectedSheet()),[he,fe]=n.useState(K?.getProtection());kk(K,{onSheetsChange:e=>{pe(e?.getSelectedSheet())},onViewChange(e){pe(e?.getSelectedSheet())},onProtectionChange:e=>{fe(e?.getProtection())}}),kk(K,{onRequestSelect:async(e,t)=>new Promise(e=>{X.current.getSheet()!==t?X.current.getGridElement()?.onViewChangeOnce(()=>{X.current.getSheet()!==t&&e(!1),e(!0)}):e(!0)})},RD);const[me,ge]=n.useReducer(e=>e+1,0),xe=K?.getView();kk(xe,{onViewChange:e=>{ge()}});const ye=$??Z,be=n.useMemo(()=>_I(Z,ye),[Z,ye]),we=W??Z,ve=n.useMemo(()=>_I(Z,we),[Z,we]),[Se,Ce]=n.useState(null);n.useCallback(()=>{X.current.focus()},[]);const[ke,Ee]=n.useState(!1),_e=n.useRef(null),Te=ED({workbook:K,workbookElement:ae.current,commandTarget:()=>X.current,notifier:u,commands:v,darkMode:be.body.darkMode,onNewWorkbook:c,onShowSidebar:()=>{ke?_e.current?.focus():Ee(!0)}}),je=n.useRef(null),[Me,Re]=n.useState(!1),[Ie,De]=n.useState(null),[Le,Oe]=n.useState(an),[Pe,Ae]=n.useState(e.TypesUtils.EmptyBounds),Fe=()=>{Re(!1),De(null)},ze=(e,t,n=an)=>{Ae(e),Oe(n),De(t),null!==je.current&&je.current.update(),Re(!0)},[Be,Ne]=n.useState("sheet"),Ve=E??xe?.isShowTabs(),He=V??xe?.isShowHorizontalScrollbar(),$e=S??xe?.isShowFormulaBar(),We=j??xe?.isShowStatusBar(),qe=H??xe?.isShowVerticalScrollbar(),Ze=be?.header?.edgeStrokeFill||"rgb(171,171,171)",Ge=n.useMemo(()=>We?R({sheet:ue,gridStyle:be,...M}):null,[R,M,We,be,ue]),Ke=n.useMemo(()=>D({commands:Te,workbook:ae.current,...I}),[Te,D,I,Z]),[Xe,{width:Ye}]=lI(),Je=0===Ye||Ye>560,Qe=n.useMemo(()=>{if(!Ve)return null;let e=T({background:be.body.fill,borderWidth:1,borderColor:Ze,gridTheme:ye,gridStyle:be,onBeforeUserChange:ce,onUserChange:de,workbook:K,commands:Te,sheetTabProps:{},notifier:u,..._});return Je||(e=t.jsx("div",{style:{flex:"none",display:"flex"},children:e})),e},[T,_,u,Z,K,ye,Je,Te,Ve]),et=n.useCallback(n=>{const r=e.CommonUtils.getOS()===e.CommonUtils.OSType.Firefox;let i=null,l=null,a=null;if(He&&(l=t.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${Ze} 1px`,maxWidth:"100%"},children:t.jsx(zk,{style:{alignItems:"center",borderTop:(r?6:3)+"px solid transparent",borderBottom:(Je?6:3)+"px solid transparent",borderLeft:(r?3:0)+"px solid transparent",borderRight:(r?3:0)+"px solid transparent"},...n,endGap:700,sheet:ue,showCustomScrollButtons:!r,onShowTooltip:e=>{ze({x:e.anchor.x,y:e.anchor.y,width:0,height:0},e.display,e.placement)},onCloseTooltip:()=>Fe()})})),Ve&&Je&&(a=Qe),Ve&&Je&&!He&&(a=t.jsxs(o.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[a,t.jsx(o.Box,{sx:{borderTop:`solid ${Ze} 1px`,flex:"1"}})]})),a&&He)i=t.jsx(xn,{position:K.getView().getTabRatio()/10+"%",onPositionChange:({percent:e})=>{K.getView().setTabRatio(Math.round(10*e))},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 ${Ze} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:a,elementAfter:l});else if(He)i=l;else{if(!a)return t.jsx(o.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:We?null:`solid ${Ze} 1px`}});i=a}return t.jsx(o.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:i})},[ue,ce,K,be,ye,Te,Ve,He,We,Je]),[tt,ot]=n.useState(null),rt=n.useMemo(()=>({placement:"right-start",...tt?.popperProps}),[tt?.popperProps]),{reference:it,component:lt}=Ep({label:"contextMenu",popperProps:rt,anchor:tt?.anchor??{getBoundingClientRect:()=>new DOMRect(tt?.clientX||0,tt?.clientY||0)},onClose:()=>ot(null),createPopupPanel:tt?.createPopupPanel});n.useEffect(()=>{tt?it.open(0):it.close(0)},[tt]);const at=nt((e,t)=>{if(e?.isDefaultPrevented())return!0;e.preventDefault(),tt&&tt.anchor===e.currentTarget?ot(null):ot({anchor:e.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:e=>{const{floatReference:n}=e;return P({filter:t,commands:Te,floatReference:n,sx:{...L}})}})},[P,L,Te,K,tt]),st=nt(e=>{if(e.originalEvent?.isDefaultPrevented())return!0;e.originalEvent?.preventDefault(),ot({clientX:e.clientX,clientY:e.clientY,createPopupPanel:e=>{const{floatReference:t}=e;return O({commands:Te,workbook:K,floatReference:t,sx:{...L}})}})},[O,L,Te,K]),ct=nt((e,t)=>{if(e?.isDefaultPrevented())return!0;e.preventDefault(),ot({clientX:e.clientX,clientY:e.clientY,createPopupPanel:e=>{const{floatReference:n}=e;return A({movable:t,commands:Te,floatReference:n,sx:{...L}})}})},[A,L,Te]);n.useMemo(()=>{const e=[new On("openContextMenu",()=>X.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[Ue.Shift]},{key:"ContextMenu"}]})];Te.addCommands(e,!0)},[Te]),n.useEffect(()=>{Te.getCommand("openContextMenu").updateCallback(()=>{const e=ue.getSelection().getCoords().cell;X.current?.getGridElement()?.scrollCellCoordsIntoView(e).then(t=>{requestAnimationFrame(()=>{const n=ue.getView().getZoomScale()/100,o=ue.getColumnHeaders().findOffset(e.colIndex+1)*n,r=ue.getRowHeaders().findOffset(e.rowIndex+1)*n,i=X.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};st({clientX:o-i.x-t.left+6,clientY:r-i.y-t.top+6})})})})},[ue]);const dt=nt(e=>{Te?.dispatchToFocusedCommand(e)},[Te]),ut=nt(()=>{tI(ae.current)},[K,ae.current]),pt=n.useCallback(()=>{Ne("sheet")},[]),ht=n.useCallback(()=>{Ne("formulaBar")},[]),ft=nt(n=>{const o=e.CommonUtils.getOS()===e.CommonUtils.OSType.Firefox;return t.jsx(zk,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(o?3:0)+"px solid transparent",borderBottom:(o?3:0)+"px solid transparent",width:o?"13px":void 0},...n,sheet:ue,endGap:700,showCustomScrollButtons:!o,onShowTooltip:e=>{ze(e.anchor,e.display,rn)},onCloseTooltip:()=>Fe()})},[ue]);n.useEffect(()=>{p&&X&&X.current&&X.current.focus()},[]);const[mt,gt]=n.useState(null),xt=n.useCallback(e=>{Te?.getCommand("openWorkbook")&&("dragenter"===e.type||"dragover"===e.type?e.dataTransfer?.types.includes("Files")?e.dataTransfer.files[0]?.type?.startsWith("image/")||e.dataTransfer.items[0]?.type?.startsWith("image/")||1===e.dataTransfer.types.length&&gt("Drop to open"):(e.dataTransfer?.types.includes("text/html")||e.dataTransfer?.types.includes("text/plain"),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"):"dragleave"===e.type&&gt(null),e.preventDefault())},[Te]),yt=nt(e=>{if(Te?.getCommand("openWorkbook")&&(e.preventDefault(),e.stopPropagation(),gt(null),e.dataTransfer.files&&e.dataTransfer.files.length>0)){const t=e.dataTransfer.files[0];if(!t)return;if(t?.type?.startsWith("image/")){const n=X.current?.getGridElement().getViewFromClient(e.clientX,e.clientY);if(!n)return;const o=n.getRelativePointFromClient(e.clientX,e.clientY),r=n.toAbsoluteBounds({...o,width:0,height:0}),i=n.getCellCoordsFromClient(e.clientX,e.clientY);if(!i)return;Te?.getCommand("insertImageFromFile")?.execute({file:t,options:{bounds:{x:r.x,y:r.y}},goto:{range:{...i}}})}else Te?.getCommand("openWorkbook")?.execute(t)}},[Te,mt]),bt=n.useMemo(()=>mt?t.jsx(o.Box,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:e=>e.palette.divider,color:e=>e.palette.primary.dark},children:t.jsx(o.Typography,{variant:"h4",children:mt})}):null,[mt]),wt=n.useRef(null),vt=n.useMemo(()=>t.jsx(CI,{in:!oe,nodeRef:wt,timeout:500,classNames:"animating",unmountOnExit:!0,children:t.jsx(o.Box,{style:{display:"flex",alignItems:"center",justifyContent:"center",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:oe?"none":f?.pointerEvents,position:"absolute",boxSizing:"border-box"},children:F({ref:wt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:oe?0:f?.opacity,pointerEvents:oe?"none":f?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...z}})})}),[oe,F,z]),St=n.useMemo(()=>k({sx:{marginTop:e=>e.spacing(.25),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},workbook:K,sheetElement:X.current,gridStyle:be,onFocus:ht,...C,NamedCollectionEditorProps:{restoreFocus:e=>X.current.focus(e),notifier:u,...C?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:Te,...C?.NamedCollectionEditorProps?.commandPopupButtonProps}}},le),[k,C,K,be,Te,oe]),Ct=n.useCallback(e=>{const{movable:n,...o}=e,r={movable:n,onContextMenuCapture:e=>{ct(e,n)},...o},i=n.getContent().getType();let l=null;if("picture"===i)return t.jsx(kE,{loadingPanel:t.jsx(vu,{transitionDelay:"100",style:{position:"absolute"},sx:{border:e=>`solid 1px ${e.palette.action.active}`}}),picture:n.getContent(),description:n.getDescription()??n?.getName(),...r});if("chart"===i){const e={...r,chart:n.getContent()};return t.jsx(EE,{...e})}if(l=`Float of type '${i}'.`,"string"==typeof l){const e={...r,description:l};l=t.jsx(cE,{...e})}return t.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:l},n.getUUID())},[]),kt=n.useMemo(()=>N({style:ID,onFocus:pt,notifier:u,gridStyle:be,headersStyle:ve,sheet:ue,commands:Te,onSheetContextMenu:st,onViewportChange:e=>{Ce(e)},showScrollbars:!1,viewportComponent:ee,onRepeatCommandChange:w,onElementLoad:ie,onShowColumnTooltip:e=>{ze(e.anchor,e.display,an)},onShowRowTooltip:e=>{ze(e.anchor,e.display,ln)},onShowTooltip:e=>{ze({x:e.anchor.x,y:e.anchor.y,width:0,height:0},e.display,e.placement)},onCloseTooltip:()=>Fe(),renderMovable:Ct,...B,cellRenderProps:{onFilterButtonMouseDown:(e,t)=>{B?.cellRenderProps?.onFilterButtonMouseDown(e,t),at(e,t)},...B?.cellRenderProps}},X),[N,Te,B,ue,be,u,w]),Et=n.useMemo(()=>{if(!ke)return null;const e=!he.isStructureAllowed();return t.jsx(JI,{sx:{marginBottom:e=>e.spacing(.5),border:t=>`solid ${e?t.palette.action.disabled:a.alpha(t.palette.divider,.2)} 1px`,borderRadius:e=>`${e.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{Ee(!1),requestAnimationFrame(()=>{X.current.focus()})},readOnly:e,commands:Te,ref:_e,scripts:K.getScripts()})},[ke,Te,K,u,he]),_t=n.useMemo(()=>{const e=t.jsx($t,{style:{...ID,marginRight:Et&&Je?"0px":"6px"},viewport:Se,touchElement:X.current?.getGridElement()?.stage,onScrollViewport:e=>{X.current?.getGridElement()?.scrollTo(e)},showHorizontalScrollbar:He||Ve,showVerticalScrollbar:qe,createHorizontalScrollbar:et,createVerticalScrollbar:ft,children:kt});let n=e;Je||(n=t.jsxs(t.Fragment,{children:[e,Qe]}));let o=null,r=4,i=13;return Je?o="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":(o="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",r=13,i=4),t.jsx(xn,{fixedPane:"after",position:"40%",minAfter:Je?"280px":"120px",splitDirection:Je?"row":"column",style:ID,ref:Xe,resizerProps:{className:"styled-resizer",style:{minWidth:Je?"6px":void 0,minHeight:Je?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${r}' height='${i}' viewBox='0 0 ${r} ${i}' 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='${o}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:Je?"left center":"top center"}},elementBefore:n,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:Et,paneAfterProps:{style:{marginLeft:Je?"0px":"4px",marginRight:Je?"8px":"4px"}}})},[He,Ve,et,qe,Se,Et,kt,Qe,Z,Je]),Tt=n.useMemo(()=>({boxSizing:"border-box",background:e=>"dark"!==e.palette.mode?be.header.fill:e.palette.background.paper,"& *":{...gp(Z),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${Ze} 1px`},...f}),[f,be]);return t.jsxs(o.Paper,{className:h("sheetxl-workbook",MD,{"Mui-focusVisible":Y},jD,g),sx:Tt,style:m,square:!1,...q,ref:ae,onFocus:e=>{J(!0),ut(),x?.(e)},onBlur:e=>{J(!1),y?.(e)},onKeyDown:e=>{dt(e),b?.(e)},onDragStart:e=>{if(e.target.src){const t=new Image;t.src=e.target.src,e.dataTransfer.setDragImage(t,1,1)}},onDragEnter:xt,onDragLeave:xt,onDragOver:xt,onDrop:yt,children:[t.jsxs("div",{className:h(IM),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:oe?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":be.body.darkMode&&U?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":be.body.darkMode?`linear-gradient(${a.alpha("#fff",Zy(5))}, ${a.alpha("#fff",Zy(5))})`:void 0},children:[Ke,$e?St:null,t.jsx(o.Box,{sx:{marginBottom:e=>e.spacing(.75)}}),_t,Ge,t.jsx(Mp,{arrow:!0,disableInteractive:!0,open:Me,title:t.jsx(o.Typography,{variant:"subtitle2",component:"div",children:Ie}),placement:Le,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:je,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:Me?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(Pe.x,Pe.y,Pe.width,Pe.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:t.jsx(o.Box,{})}),lt,bt]}),vt]})}));ND.displayName="WorkbookElement";const VD=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:e=>e.palette.text.secondary},backgroundColor:e=>a.alpha(e.palette.background.paper,.6),borderRadius:e=>`${e.shape.borderRadius}px`,border:t=>`solid ${e?t.palette.divider:"transparent"} 1px`,"&.Mui-disabled":{border:t=>`solid ${e?t.palette.divider:"transparent"} 1px`},"&:focus-within:not([disabled])":{backgroundColor:e=>e.palette.background.paper},"&:hover:not([disabled])":{border:t=>`solid ${e?t.palette.text?.primary:t.palette.divider} 1px`,backgroundColor:null},"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px !important`,border:e=>`1px solid ${e.palette?.primary?.main} !important`}},HD=n.memo(n.forwardRef((e,r)=>{const{sx:i,workbook:l,title:a="",placeHolder:s="Untitled",onTitleChange:c,readOnly:d=!1,hidden:u,...p}=e,[f,m]=n.useState(!1),[g,x]=n.useState(!1),[y,b]=n.useState(a??""),[w,v]=n.useState(""),[S,{width:C}]=lI(),[k,{width:E}]=lI(),[_,T]=n.useState(!1),j=n.useRef(null),M=n.useRef(null),R=Nt(r,()=>({requestWorkbookTitle:(e=null,t)=>{M.current={onAccept:e,requestReason:t?.requestReason},t?.selectAll&&j.current?.select(),j.current?.focus(t)},focus:e=>{j.current?.focus(e)}}),[]);return n.useLayoutEffect(()=>{T(a!==y),v(a),b(a)},[a]),n.useEffect(()=>{_&&0!==C&&he.debounce(()=>{T(!1)},300)()},[_,C]),n.useEffect(()=>{x(y&&!HI.isValidWindowsFilename(y))},[y]),u?null:t.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:_?"0":"1",transition:_?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:$R([R,k,r]),...p,children:t.jsx(Lp,{label:M.current?.requestReason??"Workbook Name",children:t.jsxs(o.Box,{className:h({"Mui-focusVisible":f}),sx:{visibility:0===C?"hidden":"visible",display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:"12px",paddingRight:"12px",marginLeft:"2px",marginRight:"2px",paddingTop:"2px",paddingBottom:"1px",...VD(!0,d),...i},children:[d?t.jsx(o.Typography,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:y!==w?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:e=>g?e.palette.error.dark:void 0},children:a??s}):t.jsx(o.Input,{sx:{width:`${Math.min(C+3,Math.max(E,R.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:e=>g?e.palette.error.dark:void 0,fontStyle:y!==w?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:d,spellCheck:!1,placeholder:s,onFocus:e=>{m(!0),e.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:j},onBlur:()=>{m(!1),g?b(w):(y!==w&&(c?.(y),y&&M.current?.onAccept?.(y,"blur")),M.current=null)},onChange:e=>{if(e.target.value.length>HI.MAX_WORKBOOK_NAME_SIZE)return e.stopPropagation(),void e.preventDefault();b(e.target.value)},onKeyDown:e=>{(HI.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(e.key)||e.target?.value.length>HI.MAX_WORKBOOK_NAME_SIZE)&&e.preventDefault(),e.which===qe.Enter||e.which===qe.Tab?(g?b(w):(c?.(y),y&&(M.current?.onAccept?.(y,"keydown"),M.current=null)),e.stopPropagation(),e.preventDefault(),l?.focus()):e.which===qe.Escape&&(y===w?l?.focus():(b(w),setTimeout(()=>{e.target?.select()},0)),M.current=null,e.stopPropagation(),e.preventDefault())},value:y}),t.jsx(o.Box,{ref:S,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:y!==w?"italic":void 0,fontFamily:e=>e.typography.fontFamily,letterSpacing:"0.00938em"},children:y||s})]})})})}));HD.displayName="WorkbookTitle";const $D=n.memo(n.forwardRef((r,i)=>{const{sx:l,style:a,className:s,licenseKey:c,renderLoadingPanel:d,...u}=r;c&&e.LicenseManager.setLicenseKey(c);const p=n.useMemo(()=>{const e={transitionDelay:"160ms",transparentBackground:!0};return t.jsx(o.Box,{sx:l,style:{width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...a},children:d?.(e)??t.jsx(vu,{...e})})},[l,a,d]),h=n.useMemo(()=>n.lazy(async()=>await Promise.resolve().then(()=>NO)),[]);return t.jsx(t.Fragment,{children:t.jsx(n.Suspense,{fallback:p,children:t.jsx(h,{...u,className:s,sx:l,renderLoadingPanel:d,style:a,ref:i})})})}));$D.displayName="Studio";const WD=n.createContext(null),UD={didCatch:!1,error:null};class qD extends n.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=UD}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:r,reason:"imperative-api"}),this.setState(UD)}}componentDidCatch(e,t){var n,o;null===(n=(o=this.props).onError)||void 0===n||n.call(o,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:o}=this.props;var r,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,o)&&(null===(r=(i=this.props).onReset)||void 0===r||r.call(i,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(UD))}render(){const{children:e,fallbackRender:t,FallbackComponent:o,fallback:r}=this.props,{didCatch:i,error:l}=this.state;let a=e;if(i){const e={error:l,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(o)a=n.createElement(o,e);else{if(void 0===r)throw l;a=r}}return n.createElement(WD.Provider,{value:{didCatch:i,error:l,resetErrorBoundary:this.resetErrorBoundary}},a)}}function ZD(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ZD(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function GD(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=ZD(e))&&(o&&(o+=" "),o+=t);return o}let KD={data:""},XD=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KD,YD=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,JD=/\/\*[^]*?\*\/| +/g,QD=/\n+/g,eL=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":o+="f"==i[1]?eL(l,i):i+"{"+eL(l,"k"==i[1]?"":t)+"}":"object"==typeof l?o+=eL(l,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=eL.p?eL.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},tL={},nL=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+nL(e[n]);return t}return e},oL=(e,t,n,o,r)=>{let i=nL(e),l=tL[i]||(tL[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!tL[l]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=YD.exec(e.replace(JD,""));)t[4]?o.shift():t[3]?(n=t[3].replace(QD," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(QD," ").trim();return o[0]})(e);tL[l]=eL(r?{["@keyframes "+l]:t}:t,n?"":"."+l)}let a=n&&tL.g?tL.g:null;return n&&(tL.g=tL[l]),((e,t,n,o)=>{o?t.data=t.data.replace(o,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(tL[l],t,o,a),l};function rL(e){let t=this||{},n=e.call?e(t.p):e;return oL(n.unshift?n.raw?((e,t,n)=>e.reduce((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":eL(e,""):!1===e?"":e}return e+o+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,XD(t.target),t.g,t.o,t.k)}function iL(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}function lL(){return lL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lL.apply(this,arguments)}function aL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sL(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function cL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}rL.bind({g:1}),rL.bind({k:1});var dL=function(){return""},uL=n.createContext({enqueueSnackbar:dL,closeSnackbar:dL}),pL="@media (max-width:599.95px)",hL="@media (min-width:600px)",fL=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},mL=function(e){return""+fL(e.vertical)+fL(e.horizontal)},gL=function(e){return!!e||0===e},xL="unmounted",yL="exited",bL="entering",wL="entered",vL="exiting",SL=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=yL,n.appearStatus=bL):o=wL:o=t.unmountOnExit||t.mountOnEnter?xL:yL,n.state={status:o},n.nextCallback=null,n}aL(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xL?{status:yL}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==bL&&n!==wL&&(t=bL):n!==bL&&n!==wL||(t=vL)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===bL?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===yL&&this.setState({status:xL})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:bL},function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,function(){t.safeSetState({status:wL},function(){t.props.onEntered&&t.props.onEntered(t.node,o)})})})):this.safeSetState({status:wL},function(){t.props.onEntered&&t.props.onEntered(t.node,o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:vL},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:yL},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:yL},function(){e.props.onExited&&e.props.onExited(e.node)})},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xL)return null;var t=this.props;return(0,t.children)(e,sL(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},iL(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(n.Component);function CL(){}function kL(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function EL(e,t){return n.useMemo(function(){return null==e&&null==t?null:function(n){kL(e,n),kL(t,n)}},[e,t])}function _L(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}SL.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:CL,onEntering:CL,onEntered:CL,onExit:CL,onExiting:CL,onExited:CL};var TL="cubic-bezier(0.4, 0, 0.2, 1)",jL="cubic-bezier(0.0, 0, 0.2, 1)",ML="cubic-bezier(0.4, 0, 0.6, 1)",RL=function(e){e.scrollTop=e.scrollTop},IL=function(e){return Math.round(e)+"ms"};function DL(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,l=void 0===i?TL:i,a=n.delay,s=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map(function(e){var t="string"==typeof r?r:IL(r),n="string"==typeof s?s:IL(s);return e+" "+t+" "+l+" "+n}).join(",")}function LL(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function OL(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=LL(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),a=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+l-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-l)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var PL=n.forwardRef(function(e,t){var o=e.children,r=e.direction,i=void 0===r?"down":r,l=e.in,a=e.style,s=e.timeout,c=void 0===s?0:s,d=e.onEnter,u=e.onEntered,p=e.onExit,h=e.onExited,f=sL(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=n.useRef(null),g=EL(o.ref,m),x=EL(g,t),y=n.useCallback(function(){m.current&&OL(i,m.current)},[i]);return n.useEffect(function(){if(!l&&"down"!==i&&"right"!==i){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];clearTimeout(n),n=setTimeout(function(){e.apply(o,i)},t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}(function(){m.current&&OL(i,m.current)}),t=LL(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[i,l]),n.useEffect(function(){l||y()},[l,y]),n.createElement(SL,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){OL(i,e),RL(e),d&&d(e,t)},onEntered:u,onEntering:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||jL,n=_L({timeout:c,mode:"enter",style:lL({},a,{transitionTimingFunction:t})});e.style.webkitTransition=DL("-webkit-transform",n),e.style.transition=DL("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||ML,n=_L({timeout:c,mode:"exit",style:lL({},a,{transitionTimingFunction:t})});e.style.webkitTransition=DL("-webkit-transform",n),e.style.transition=DL("transform",n),OL(i,e),p&&p(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",h&&h(e)},in:l,timeout:c},f),function(e,t){return n.cloneElement(o,lL({ref:x,style:lL({visibility:"exited"!==e||l?void 0:"hidden"},a,{},o.props.style)},t))})});PL.displayName="Slide";var AL=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},FL=function(){return n.createElement(AL,null,n.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},zL=function(){return n.createElement(AL,null,n.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},BL=function(){return n.createElement(AL,null,n.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},NL=function(){return n.createElement(AL,null,n.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},VL={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:n.createElement(FL,null),warning:n.createElement(zL,null),error:n.createElement(BL,null),info:n.createElement(NL,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:PL,transitionDuration:{enter:225,exit:195}},HL=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?lL({},VL[n],{},t[n],{},e[n]):"autoHideDuration"===n?(r=e.autoHideDuration,i=t.autoHideDuration,(l=function(e){return"number"==typeof e||null===e})(r)?r:l(i)?i:VL.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some(function(t){return typeof e===t})};return n(e,["string","number"])?e:n(e,["object"])?lL({},VL.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?lL({},VL.transitionDuration,{},t):VL.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||VL[n];var r,i,l}};function $L(e){return Object.entries(e).reduce(function(e,t){var n,o=t[0],r=t[1];return lL({},e,((n={})[o]=rL(r),n))},{})}var WL="notistack-SnackbarContainer",UL="notistack-Snackbar",qL="notistack-CollapseWrapper",ZL="notistack-MuiContent",GL=function(e){return"notistack-MuiContent-"+e},KL=$L({root:{height:0},entered:{height:"auto"}}),XL="0px",YL=n.forwardRef(function(e,t){var o=e.children,r=e.in,i=e.onExited,l=n.useRef(null),a=n.useRef(null),s=EL(t,a),c=function(){return l.current?l.current.clientHeight:0};return n.createElement(SL,{in:r,unmountOnExit:!0,onEnter:function(e){e.style.height=XL},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=_L({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:i,onExiting:function(e){RL(e);var t=_L({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=XL,e.style.transitionTimingFunction=o||""},nodeRef:a,timeout:175},function(e,t){return n.createElement("div",Object.assign({ref:s,className:GD(KL.root,"entered"===e&&KL.entered),style:lL({pointerEvents:"all",overflow:"hidden",minHeight:XL,transition:DL("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!r&&{visibility:"hidden"})},t),n.createElement("div",{ref:l,className:qL,style:{display:"flex",width:"100%"}},o))})});YL.displayName="Collapse";var JL={right:"left",left:"right",bottom:"up",top:"down"},QL=function(e){return"anchorOrigin"+mL(e)},eO=function(){};function tO(e,t){return e.reduce(function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l=[].concat(r);t&&-1===l.indexOf(t)&&l.push(t),e.apply(this,l),n.apply(this,l)}},eO)}var nO="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function oO(e){var t=n.useRef(e);return nO(function(){t.current=e}),n.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var rO,iO=n.forwardRef(function(e,t){var o=e.children,r=e.className,i=e.autoHideDuration,l=e.disableWindowBlurListener,a=void 0!==l&&l,s=e.onClose,c=e.id,d=e.open,u=e.SnackbarProps,p=void 0===u?{}:u,h=n.useRef(),f=oO(function(){s&&s.apply(void 0,arguments)}),m=oO(function(e){s&&null!=e&&(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){f(null,"timeout",c)},e))});n.useEffect(function(){return d&&m(i),function(){h.current&&clearTimeout(h.current)}},[d,i,m]);var g=function(){h.current&&clearTimeout(h.current)},x=n.useCallback(function(){null!=i&&m(.5*i)},[i,m]);return n.useEffect(function(){if(!a&&d)return window.addEventListener("focus",x),window.addEventListener("blur",g),function(){window.removeEventListener("focus",x),window.removeEventListener("blur",g)}},[a,x,d]),n.createElement("div",Object.assign({ref:t},p,{className:GD(UL,r),onMouseEnter:function(e){p.onMouseEnter&&p.onMouseEnter(e),g()},onMouseLeave:function(e){p.onMouseLeave&&p.onMouseLeave(e),x()}}),o)});iO.displayName="Snackbar";var lO=$L({root:(rO={display:"flex",flexWrap:"wrap",flexGrow:1},rO[hL]={flexGrow:"initial",minWidth:"288px"},rO)}),aO=n.forwardRef(function(e,t){var o=e.className,r=sL(e,["className"]);return n.createElement("div",Object.assign({ref:t,className:GD(lO.root,o)},r))});aO.displayName="SnackbarContent";var sO=$L({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),cO="notistack-snackbar",dO=n.forwardRef(function(e,t){var o=e.id,r=e.message,i=e.action,l=e.iconVariant,a=e.variant,s=e.hideIconVariant,c=e.style,d=e.className,u=l[a],p=i;return"function"==typeof p&&(p=p(o)),n.createElement(aO,{ref:t,role:"alert","aria-describedby":cO,style:c,className:GD(ZL,GL(a),sO.root,sO[a],d,!s&&u&&sO.lessPadding)},n.createElement("div",{id:cO,className:sO.message},s?null:u,r),p&&n.createElement("div",{className:sO.action},p))});dO.displayName="MaterialDesignContent";var uO,pO,hO,fO,mO,gO=n.memo(dO),xO=$L({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),yO=function(e){var t=n.useRef(),o=n.useState(!0),r=o[0],i=o[1],l=tO([e.snack.onClose,e.onClose]),a=n.useCallback(function(){t.current=setTimeout(function(){i(function(e){return!e})},125)},[]);n.useEffect(function(){return function(){t.current&&clearTimeout(t.current)}},[]);var s,c=e.snack,d=e.classes,u=e.Component,p=void 0===u?gO:u,h=n.useMemo(function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,n){var o;return lL({},t,((o={})[n]=e[n],o))},{})}(d)},[d]),f=c.open,m=c.SnackbarProps,g=c.TransitionComponent,x=c.TransitionProps,y=c.transitionDuration,b=c.disableWindowBlurListener,w=c.content,v=sL(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),S=lL({direction:(s=v.anchorOrigin,"center"!==s.horizontal?JL[s.horizontal]:JL[s.vertical]),timeout:y},x),C=w;"function"==typeof C&&(C=C(v.id,v.message));var k=["onEnter","onEntered","onExit","onExited"].reduce(function(t,n){var o;return lL({},t,((o={})[n]=tO([e.snack[n],e[n]],v.id),o))},{});return n.createElement(YL,{in:r,onExited:k.onExited},n.createElement(iO,{open:f,id:v.id,disableWindowBlurListener:b,autoHideDuration:v.autoHideDuration,className:GD(xO.wrappedRoot,h.root,h[QL(v.anchorOrigin)]),SnackbarProps:m,onClose:l},n.createElement(g,Object.assign({},S,{appear:!0,in:f,onExit:k.onExit,onExited:a,onEnter:k.onEnter,onEntered:tO([k.onEntered,function(){e.snack.requestClose&&l(null,"instructed",e.snack.id)}],v.id)}),C||n.createElement(p,Object.assign({},v)))))},bO={default:20},wO={default:6,dense:2},vO="."+qL,SO=$L({root:(uO={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:DL(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},uO[vO]={padding:wO.default+"px 0px",transition:"padding 300ms ease 0ms"},uO.maxWidth="calc(100% - "+2*bO.default+"px)",uO[pL]={width:"100%",maxWidth:"calc(100% - 32px)"},uO),rootDense:(pO={},pO[vO]={padding:wO.dense+"px 0px"},pO),top:{top:bO.default-wO.default+"px",flexDirection:"column"},bottom:{bottom:bO.default-wO.default+"px",flexDirection:"column-reverse"},left:(hO={left:bO.default+"px"},hO[hL]={alignItems:"flex-start"},hO[pL]={left:"16px"},hO),right:(fO={right:bO.default+"px"},fO[hL]={alignItems:"flex-end"},fO[pL]={right:"16px"},fO),center:(mO={left:"50%",transform:"translateX(-50%)"},mO[hL]={alignItems:"center"},mO)}),CO=function(e){var t=e.classes,o=void 0===t?{}:t,r=e.anchorOrigin,i=e.dense,l=e.children,a=GD(WL,SO[r.vertical],SO[r.horizontal],SO.root,o.containerRoot,o["containerAnchorOrigin"+mL(r)],i&&SO.rootDense);return n.createElement("div",{className:a},l)},kO=n.memo(CO),EO=function(e){return!("string"==typeof e||n.isValidElement(e))},_O=function(e){function t(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=EO(e)?e:t,r=EO(e)?e.message:e,i=o.key,l=o.preventDuplicate,a=sL(o,["key","preventDuplicate"]),s=gL(i),c=s?i:(new Date).getTime()+Math.random(),d=HL(a,n.props),u=lL({id:c},a,{message:r,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:GD(n.props.className,a.className)});return u.persist&&(u.autoHideDuration=void 0),n.setState(function(e){if(void 0===l&&n.props.preventDuplicate||l){var t=function(e){return s?e.id===c:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(lL({},e,{queue:[].concat(e.queue,[u])}))}),c},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?lL({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,o=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===n.maxSnack&&(o=!0);var r=e.snacks.map(function(e){return t||e.persist&&!o?lL({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),lL({},e,{open:!1})):lL({},e,{requestClose:!0}))});return lL({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!gL(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===o?lL({},e,{entered:!0}):lL({},e)})}})},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return r||e.id===o?e.entered?lL({},e,{open:!1}):lL({},e,{requestClose:!0}):lL({},e)}),queue:n.filter(function(e){return e.id!==o})}})},n.closeSnackbar=function(e){var t=n.state.snacks.find(function(t){return t.id===e});gL(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!gL(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState(function(e){var o=n.processQueue(lL({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===o.queue.length?o:n.handleDismissOldest(o)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(cL(n)),closeSnackbar:n.closeSnackbar.bind(cL(n))}},n}return aL(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,a=o.dense,s=void 0!==a&&a,c=o.Components,d=void 0===c?{}:c,u=o.classes,p=this.state.snacks.reduce(function(e,t){var n,o=mL(t.anchorOrigin),r=e[o]||[];return lL({},e,((n={})[o]=[].concat(r,[t]),n))},{}),h=Object.keys(p).map(function(t){var o=p[t],r=o[0];return n.createElement(kO,{key:t,dense:s,anchorOrigin:r.anchorOrigin,classes:u},o.map(function(t){return n.createElement(yO,{key:t.id,snack:t,classes:u,Component:d[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:tO([e.handleExitedSnack,e.props.onExited],t.id),onEntered:tO([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return n.createElement(uL.Provider,{value:t},i,r?l.createPortal(h,r):h)},iL(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||VL.maxSnack}}]),t}(n.Component),TO=function(){return n.useContext(uL)};const jO=[{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}],MO=[{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 RO{constructor(e=jO,t=MO){this._readFormatType=[],this._writeFormatType=[],this._readFormatType=Object.freeze([...e]),this._writeFormatType=Object.freeze([...t])}getReadFormats(){return this._readFormatType}getWriteFormats(){return this._writeFormatType}getAllReadFormatTypeAsString(){const e=[],t=this._readFormatType;for(let n=0;n<t.length;n++)for(let o=0;o<t[n].exts.length;o++)e.push("."+t[n].exts[o]);return e}async writeFile(e,t,n){if(!t||!e)throw new Error("Workbook model or file name must be provided.");try{return(await Promise.resolve().then(()=>$I)).WorkbookIO.writeFile(e,t,n)}catch(e){throw new Error("Unable to load io library",{cause:e})}}async read(e,t){let n,o;const r=await(t?.showBusy?.(`Opening${e.name?` ${e.name}`:""}...`));try{o=await Promise.resolve().then(()=>$I)}catch(e){throw e}try{return await o.WorkbookIO.read({...e,async onStart(o){await(e?.onStart?.(o)),n=await(t?.showBusy?.(`Opening '${o}'...`))}})}catch(e){throw r?.(),n?.(),e}finally{r?.(),n?.()}}}const IO=new RO,DO={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},LO=n.forwardRef((e,i)=>{const{id:l,message:a,iconVariant:s,error:c,hideIconVariant:d,...u}=e,{closeSnackbar:p}=TO(),f=sb(),[m,g]=n.useState(!1),x=n.useCallback(()=>{g(e=>!e)},[]),y=n.useCallback(()=>{p(l)},[l,p]);let b=c?.message;return!b&&n.isValidElement(a)&&(b=a),b||"string"!=typeof a||(b=a),b||(b=`Unknown Error: ${a}`),t.jsx(aO,{ref:i,className:h(DO.root,"error-snackbar"),children:t.jsxs(o.Card,{className:DO.card,style:{backgroundColor:f.palette.error.dark,border:`1px solid ${f.palette.error.dark}`},children:[t.jsxs(o.CardActions,{className:DO.actionRoot,children:[d?null:s?.error,t.jsx(o.Typography,{variant:"body2",component:"div",className:DO.typography,style:{color:f.palette.text.primary},children:b}),t.jsx("div",{style:{flex:"1 1 auto"}}),t.jsxs("div",{className:DO.icons,children:[c?t.jsx(o.IconButton,{"aria-label":"Show more",size:"small",className:h(DO.expand,{[DO.expandOpen]:m}),style:{color:f.palette.action.active},onClick:x,children:t.jsx(r.ExpandMore,{})}):null,t.jsx(o.IconButton,{size:"small",className:DO.expand,style:{color:f.palette.action.active},onClick:y,children:t.jsx(r.Close,{fontSize:"small"})})]})]}),c?t.jsx(o.Collapse,{in:m,timeout:"auto",unmountOnExit:!0,children:t.jsx("div",{className:DO.stackTraceContainer,style:{backgroundColor:f.palette.error.light,borderTop:`1px solid ${f.palette.error.main}`},children:t.jsx(Eu,{error:c,hideLineNumbers:!0})})}):null]})})});LO.displayName="ToastError";const OO=n.memo(n.forwardRef((e,o)=>{const{commands:r,commandHook:i,scope:l="workbook",disabled:a=!1,...s}=e,c=nt(e=>{const o={variant:Hn.Menuitem,parentFloat:e.floatReference,commandHook:i,scope:l,disabled:a},s=t.jsxs(t.Fragment,{children:[t.jsx(Km,{...o,command:r.getCommand("newWorkbook"),icon:pa(t.jsx(cd,{}))}),t.jsx(du,{orientation:"horizontal"}),t.jsx(Km,{...o,command:r.getCommand("openWorkbook"),icon:pa(t.jsx(dd,{}))}),t.jsx(Ym,{...o,commands:r,quickCommand:"saveWorkbook",icon:pa(t.jsx(ud,{})),createPopupPanel:e=>{const i={...o,parentFloat:e.floatReference,scope:"saveWorkbook"},l=[];return IO.getWriteFormats().forEach(e=>{if(e.isDefault)return;let o=null;"CSV"===e.key?o=pa(t.jsx(hd,{})):"Excel"===e.key&&(o=pa(t.jsx(pd,{})));const a=r.getCommand(`saveWorkbookAs${e.key}`);a?l.push(n.createElement(Km,{...i,key:e.key,command:a,icon:o})):console.warn(`Unable to resolve command: 'saveWorkbookAs${e.key}'`)}),cp({...e,children:l,onClick:()=>{e.closeFloatAll()}})}})]});return cp({...e,children:s,onClick:t=>{t.isDefaultPrevented||e.closeFloatAll()}})},[a,r,i,l]),d="File";return t.jsx(Ym,{commands:r,disabled:a,commandHook:i,scope:l,label:d,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:e=>`calc(1.25rem + ${e.spacing(2)}px)`}},...s,createPopupPanel:c,icon:t.jsx(Jm,{className:"label",icon:null,label:d})})}));OO.displayName="StandaloneFileCommandButton";const PO=t.jsx(Lp,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:t.jsx(o.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:t.jsx(jj,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),AO=n.memo(n.forwardRef((e,r)=>{const{commands:i,workbook:l,logo:a=PO,mainElement:s,showFileMenu:c=!0,showAppearanceMenu:d=!0,...u}=e,{reference:p}=Ep(),[h,{width:f}]=lI(),m=f<530,g=c?t.jsx(OO,{commands:i,commandHook:{beforeExecute(){p?.closeAll()},onError(e,t,n){}}}):null,x=d?t.jsx(WM,{commands:i,commandHook:{beforeExecute(){p?.closeAll()},onError(e,t,n){}}}):null,y=n.useMemo(()=>({paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)}),[]),b=n.useRef(null);return t.jsx(o.Box,{ref:$R([b,h,r]),...u,children:oD({commands:i,renderCompact:m,workbook:l,selectWrapper:e=>t.jsxs(o.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:e=>e.spacing(1),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)},children:[t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:e=>e.spacing(.5)},children:[a,t.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:e=>e.spacing(.25)},children:[g,e]})]}),t.jsx(o.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:s}),t.jsx(o.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:m&&!x?"0 0 auto":"1 1 100%"},children:x})]}),selectProps:y,toolbarsProps:{Home:{sx:{}}}})})}));AO.displayName="StudioToolbar";const FO=e=>{const{workbook:t,setWorkbook:o,importExportDisabled:r,workbookTitle:i="export",setWorkbookTitle:l,notifier:a,requestWorkbookTitle:s,themeOptions:c,undoManager:d,commands:u,onExecute:p}=e,h=nt(c?.onModeChange,[c?.onModeChange]),f=nt(c?.onEnabledDarkGridChange,[c?.onEnabledDarkGridChange]),m=nt(c?.onEnabledDarkImagesChange,[c?.onEnabledDarkImagesChange]),g=nt(async(e=null,t=null)=>{const n=[];let o,r=null,i=null;if("string"==typeof e?i=e:r=e,o=r?e:await he.openFileDialog(i??IO.getAllReadFormatTypeAsString().join(",")),!o)return null;const l={source:o,createWorkbookOptions:t,onWarning:e=>{n.push(e)}},s=await IO.read(l,a);return n.length>0&&(a?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn("Import warnings:\n"+n.join("\n"))),s},[p,a,t]),x=nt(async(e,t,n)=>{if(!t&&s){const t=await s("Enter Workbook name to "+(n.isDefault?"Save.":`Export as ${n.description}.`));return null!==t&&IO.writeFile(t,e,{formatType:n.key})}return IO.writeFile(t,e,{formatType:n.key})},[a,t,s]),y=n.useCallback(()=>({contains:e=>!0,focus(){}}),[]),b=n.useMemo(()=>{const e=[];r||(IO.getWriteFormats().forEach(n=>{const o=n.isDefault,r={label:o?"Save Workbook":`Save Workbook as ${n.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${n.description}`},tags:n.tags,description:`Save the workbook to the desktop${o?"":` as ${n.description}`}.`};o&&(r.shortcut={key:"S",modifiers:[Ue.Ctrl]},e.push(new Ln("saveWorkbookAs",y,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[Ue.Shift,Ue.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{x(t,null,n).catch(e=>{a?.showError?.(e)})})));const l=o?"saveWorkbook":`saveWorkbookAs${n.key}`;e.push(new Ln(l,y,r,e=>{x(t,e??i,n).catch(e=>{a?.showError?.(e)})}))}),e.push(new Ln("openWorkbook",y,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[Ue.Ctrl]}},async(e=null)=>{const n={date1904:t.isDate1904(),...t.options};try{const r=await g(e,n);if(!r)return;const i=r.title,s=r.workbook,c=s.getSelectedSheet();if("text/csv"===r.formatType.mimeType){const e=t.findValidSheetName(i);await t.doBatch(async()=>{const n=c.getUsedRange();if(!n)return void a?.showMessage("The file appears to be blank.");const o=t.getSheets().add({name:e,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0});await o.copyFrom(n)},`Import CSV '${i}'`)}else t?.close(),l?.(i),o(s)}catch(e){a?.showError?.(e)}})),e.push(new Ln("openWorkbookFromUrl",y,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(e){if(!e){const t=await(a?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]}));if("Open"!==t.option)return;e=t.input}e&&console.log("openWorkbookFromUrl",e)})));let n=[];c&&(n=[new Ln("themeMode",y,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new Ln("defaultThemeMode",y,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new Ln("enableDarkGrid",y,{label:"Enable Dark Grid",description:"Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new Ln("enableDarkImages",y,{label:"Enable Dark Images",description:"Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]);return[...e,...n,new On("help",y,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new On("showKeyboardShortcuts",y,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[Ue.Ctrl]}},()=>{}),new Ln("gotoUrlGithub",y,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new Ln("gotoUrlDiscord",y,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new Ln("gotoUrlDocumentation",y,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new Ln("gotoUrlIssue",y,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[t,i,a,r,c,u,d]),w=n.useMemo(()=>{let e=null;return e=u?u.createChildGroup(y,"standaloneWorkbook",!1):new Pn(y,"standaloneWorkbook"),e.addCommands(b,!0),e},[u,b]);(({manager:e,commands:t,disabled:o,notifier:r=Gt})=>{const i=nt(t=>{try{e?.undo(t)}catch(e){r.showError?.(e)}},[e]),l=nt(t=>{try{e?.redo(t)}catch(e){r.showError?.(e)}},[e]);n.useMemo(()=>{if(!t)return;const e={contains:e=>!0,focus(){}},n=[new Ln("undo",e,{label:"Undo",description:Un,shortcut:{key:"z",modifiers:[Ue.Ctrl]},disabled:!0},i),new Ln("redo",e,{label:"Redo",description:qn,shortcut:[{key:"y",modifiers:[Ue.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[Ue.Alt]}],disabled:!0},l)];t?.addCommands(n,!0)},[t]),n.useEffect(()=>{if(!t)return;const n=()=>{const n=e?.getTopUndoDescription(),r={};var i;t.getCommand("undo").update({disabled:o||!e||!e.hasUndo(),description:n?(i=n,`Undo ${i}`):Un,state:r,context:{undoManager:e}});const l=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:o||!e||!e.hasRedo(),description:l?Zn(l):qn,state:r,context:{undoManager:e}})};if(n(),!e)return;const r=e.addListener({onStackChange(){n()}});return()=>r?.()},[e,t,o])})({manager:d,commands:w,notifier:a});const{themeMode:v}=TI();n.useEffect(()=>{if(!c||!w)return;const e="dark"===c.mode||!c.mode&&"dark"===v;w.getCommand("themeMode").update({state:c.mode??null,label:e?"Dark Mode":"Light Mode",scopedLabels:{appearance:e?"Dark Mode":"Light Mode"}}).updateCallback(()=>{h(e?kI.Light:kI.Dark)}),w.getCommand("defaultThemeMode").update({state:!c.mode}).updateCallback(()=>{h(null)}),w.getCommand("enableDarkGrid").update({state:c.enableDarkGrid}).updateCallback(()=>{f(!c.enableDarkGrid)}),w.getCommand("enableDarkImages").update({state:c.enableDarkImages}).updateCallback(()=>{m(!c.enableDarkImages)})},[v,c,b]);const{showModal:S}=rh();return n.useEffect(()=>{const e=()=>new Promise((e,t)=>{const o=n.lazy(()=>Promise.resolve().then(()=>require("./DY2PuDSgw0TrB5-_.cjs"))),r=S(o,{title:"Shortcut Keys Reference",commands:w,onDone:()=>{r.hide()},TransitionProps:{onExited:()=>{e(!0)}}})});w.getCommand("showKeyboardShortcuts").updateCallback(()=>e()),w.getCommand("help").updateCallback(()=>e())},[b,w]),w},zO=n.memo(n.forwardRef((i,l)=>{const{workbook:a,setWorkbook:s,refWorkbookTitle:c,titleWorkbook:d,setWorkbookTitle:u,titlePlaceHolder:p,children:h,undoManager:f,commands:m,importExportDisabled:g,themeOptions:x}=i,y=TO(),b=y?y.enqueueSnackbar:()=>{},w=y?y.closeSnackbar:()=>{},[v,S]=n.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),C=n.useCallback(()=>{S(e=>({...e,isMounted:!0}))},[]),k=n.useCallback(()=>{S(e=>({...e,isMounted:!1}))},[]),E=function(){const[e,t]=n.useState(()=>new Map),{showModal:o,updateModal:r,destroyModal:i,hideModal:l}=rh({disableAutoDestroy:!0});return(a,s,c,d)=>new Promise((u,p)=>{const h={...c,onHide:()=>{const n=e.get(a);c?.onHide?.(),t(e=>(e.delete(a),e)),l(n.id)},onDone:n=>{const o=e.get(a);t(e=>(e.delete(a),e)),c?.onDone?.(n),o&&o.id&&!d?.disableAutoDestroy&&i(o.id)},onShown:e=>{t(t=>{const n=t.get(a);return t.set(a,{...n,element:e}),t}),u(e)},open:!0},f=e.get(a);if(f)return r(f.id,h),void u(f.element);if(!s)return void p("invalid function");const m=n.lazy(s),g=o(m,h,{destroyOnClose:!d?.disableAutoDestroy});t(e=>(e.set(a,{id:g.id,element:null}),e))})}(),_=(()=>{const{showModal:e}=rh();return t=>new Promise(n=>{const o=e(qm,{...t,onOption(e){t?.onOption?.(e,e===t.cancelOption,e===t.defaultOption),n(e)},onDone:()=>{t?.onDone?.(),o.hide()}})})})(),T=(()=>{const{showModal:e}=rh();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(t=>{const i=e(Zm,{defaultOption:n,cancelOption:o,...r,onOption(e){r?.onOption?.(e,e===o,e===n),t({input:"",option:e})},onInputOption(e,n){r?.onInputOption?.(e,n),t({input:e,option:n})},onDone:()=>{r?.onDone?.(),i.hide()}})})}})(),j=n.useRef(new Set),M=n.useMemo(()=>{const n=(e,n)=>{if(n?.onceKey){if(j.current.has(n.onceKey))return;const e=new Set(j.current);e.add(n.onceKey),j.current=e}const i={variant:n?.type??qt,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:n?.preventDuplicate,persist:n?.persist??n?.type===Wt,action:e=>t.jsx(o.IconButton,{onClick:()=>w(e),children:t.jsx(r.CancelOutlined,{})})};n?.enqueueProps&&Object.assign(i,n.enqueueProps),e||console.log("message is 'null'",n),b(e??"Alert",i)};return{showMessage:n,showBusy:(e,t)=>{let n=null;const o=new Promise(e=>{n=e});return S(t=>{const r=new Map(t.starting);r.set(o,n);return{...t,label:e,starting:r}}),o},showWindow:(e,t,n)=>{const o={...t,onKeyDown:e=>{m?.dispatchToFocusedCommand(e),e.isDefaultPrevented()||e.isPropagationStopped()||t?.onKeyDown?.(e)}};return E(e,{sort:()=>Promise.resolve().then(()=>require("./Cfb0T6htsh82UPK-.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./QB_8kWYEsfOH_HwK.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./BQ-G2ABc3FYN-D50.cjs")),comments:()=>Promise.resolve().then(()=>require("./aOmlMJRAkQEF59EX.cjs")),find:()=>Promise.resolve().then(()=>require("./DyzVC_iq7ceqC2fj.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./CisYglNTHGrj9oMH.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./u0WmWLGlCwhnhL9i.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./CH50hiw_7LBSC6dR.cjs"))}[e],o,n)},showOptions:_,showInputOptions:T,showError:t=>{let o,r=Wt,i="Unknown Error";"string"==typeof t?i=t:t instanceof Error&&(o=t,t.message&&(i=t.message)),t instanceof e.PartialError&&(r=qt),n(i,{type:r,enqueueProps:{error:o}})}}},[]),R=n.useCallback(()=>{},[]),I=FO({workbook:a,setWorkbook:s,importExportDisabled:g,workbookTitle:d,setWorkbookTitle:u,commands:m,requestWorkbookTitle:e=>new Promise(t=>{c.current?c.current.requestWorkbookTitle((e,n)=>{t(e)},{selectAll:!0,requestReason:e}):t(p)}),themeOptions:x,undoManager:f,notifier:M,onExecute:R});n.useEffect(()=>{v.starting.size<=0||!v.isMounted||S(e=>{const t=new Map(e.running);e.starting.forEach((e,n)=>{const o=()=>{S(e=>{const t=new Map(e.running);t.delete(n);return{...e,running:t}})};t.set(n,o),e(o)});return{...e,starting:new Map,running:t}})},[v]);const[D,L]=n.useState(null);n.useEffect(()=>{0!==v.starting.size||0!==v.running.size?L(t.jsx(vu,{icon:t.jsx(bu,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:v.label,onMount:C,onUnmount:k,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):L(null)},[v.starting,v.running]);const O=n.useMemo(()=>t.jsx(UM,{commands:I,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[I]),P={notifier:M,commands:I};return a&&(P.statusBarProps={childrenEnd:O}),t.jsxs(t.Fragment,{children:[D,h?n.cloneElement(h,P):null]})}));zO.displayName="SnackbarAndCommandsWrapper";const BO=n.memo(n.forwardRef((r,i)=>{const{className:l,sx:a,style:s,onElementLoad:c,onError:d,undoManager:u,errorPanel:p=_u,onKeyDown:f,workbook:m,createWorkbookOptions:g,onWorkbookChange:x,logo:y,importExportDisabled:b=!1,themeOptions:w,autoFocus:v=!1,commands:S,title:C,onTitleChange:k,titleProps:E,renderLoadingPanel:_,...T}=r,j=n.useRef(null),M=nt(x,[x]),R=nt(k??E?.onTitleChange,[k??E?.onTitleChange]),I=E?.placeHolder??"Untitled",D=w?.mode,{themeMode:L,source:O}=TI({mode:D}),P=n.useMemo(()=>({...w,light:mp(!1,e.CommonUtils.deepMerge(w?.theme??{},w?.light??{})),dark:mp(!0,e.CommonUtils.deepMerge(w?.theme??{},w?.dark??{}))}),[w]),A=L===kI.Dark,[F,z]=n.useState(null);n.useEffect(()=>{z(u??new e.UndoManager)},[u]);const[B,N]=n.useState(null),[V,H]=n.useState(null),$=Rj();n.useLayoutEffect(()=>{if(!m||0===Object.keys(m).length&&!e.CommonUtils.isPromiseLike(m)){const t={theme:$.getDefaultTheme(),...g};H(new e.Workbook(t))}else H(m)},[m]),n.useLayoutEffect(()=>{if(!V)return;if(V instanceof e.Workbook)return N({workbook:V}),void(m!==V&&M?.(V));(async()=>{try{let e,t=await Promise.resolve(V);t&&t.source&&(t=await IO.read(t)),t.workbook?(G(t.title),e=t.workbook):e=t,M?.(e),N({workbook:e})}catch(e){M?.(null),N({error:e})}})()},[V]);const[W,U]=n.useState(null);n.useEffect(()=>{if(!F||!B)return;F.clear();const e=B?.workbook?.getTransactions();if(!e)return;return e.addListener({onCommitEnd:t=>{t.getDescription()?F.addUndoOperation({description:t.getDescription(),undo:()=>(e.revert(t.getId()),W.source?.focus(),()=>{e.restore(t.getId()),W.source?.focus()})}):console.warn("commit has no description",t)}})},[F,B,W]);const q=nt(e=>{e?F.setRepeatableOperation({description:e.label(),repeat:async()=>e.execute()}):F.setRepeatableOperation(null)},[F]),[Z,G]=n.useState(C??E?.title??"");n.useEffect(()=>{G(C??E?.title??"")},[C??E?.title]),n.useEffect(()=>{R?.(Z)},[Z]);const[K,X]=n.useState(null),Y=n.useMemo(()=>{const e=()=>({contains:e=>!0,focus(){}});return S?S.createChildGroup(e,"application",!1):new Pn(e,"application")},[S]),J=nt(e=>{X(e.source.getViewportElement()),U(e),Y.activate("sheet"),c?.(e)},[Y]);n.useEffect(()=>{W&&v&&W.source?.focus("object"==typeof v?v:void 0)},[W]);const Q=n.useRef(null),ee=n.useCallback(e=>{let n=null;return E?.hidden||(n=t.jsx(HD,{...E,style:{maxWidth:"100%",...E?.style},workbook:j.current,ref:Q,title:Z,placeHolder:I,onTitleChange:e=>{G(e)}})),t.jsx(AO,{...e,logo:y,mainElement:n,showFileMenu:!b,showAppearanceMenu:!!(P?.onEnabledDarkGridChange||P?.onEnabledDarkImagesChange||P?.onModeChange)})},[y,Z,E,P,b,Y]);n.useEffect(()=>{const e=e=>e.preventDefault();return j.current?.addEventListener("wheel",e,{passive:!1}),()=>{j.current?.removeEventListener("wheel",e)}},[]);const te=n.useMemo(()=>{const e={transparentBackground:!0};return t.jsx(o.Box,{sx:a,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",...s},children:_?.(e)??t.jsx(vu,{...e})})},[a,s,_]),ne=n.useCallback(({error:e})=>(d?.(e),t.jsx(p,{sx:a,style:s,error:e??"Unable to display empty workbook."})),[a,s,d]),oe=n.useMemo(()=>({...a,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:e=>e.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[a]),re=$R([j,i]),ie=n.useMemo(()=>{if(!B)return te;if(B.error||!B.workbook)return ne({error:B.error});let e=null,n=null,o=!1;return P&&(e=A?P.dark:P.light,n=A&&P.enableDarkGrid?P.dark:P.light,o=P.enableDarkImages),t.jsx(ND,{sx:oe,style:s,tabIndex:0,autoFocus:!0,workbook:B.workbook,ref:re,renderToolbar:ee,onElementLoad:J,onRepeatCommandChange:q,onKeyDown:e=>{f?.(e)},renderLoadingPanel:_,gridTheme:n,headersTheme:e,enableDarkImages:o,className:h(l,"sheetxl-workbook"),onContextMenu:e=>e.preventDefault(),...T},"WorkbookElement")},[B,Z,F,te,_,P,T,ee,oe]);let le=t.jsx(qD,{fallbackRender:ne,children:t.jsx(_O,{maxSnack:3,domRoot:K,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(e,t,n)=>{j.current?.focus()},Components:{error:LO},iconVariant:{success:t.jsx(o.SvgIcon,{style:{marginRight:"8px"},children:t.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:t.jsx(Ld,{style:{marginRight:"8px"}})},children:t.jsx(th,{children:t.jsx(zO,{workbook:B?.workbook,setWorkbook:H,importExportDisabled:b,titlePlaceHolder:I,titleWorkbook:Z,setWorkbookTitle:G,refWorkbookTitle:Q,commands:Y,undoManager:F,themeOptions:P,children:ie})})})});return P&&(le=t.jsxs(yb,{theme:A?P.dark:P.light,children:[P.cssBaseline?t.jsx(o.CssBaseline,{}):null,le]})),le}));BO.displayName="EagerStudio";const NO=Object.freeze(Object.defineProperty({__proto__:null,EagerStudio:BO,default:BO},Symbol.toStringTag,{value:"Module"}));exports.AppearanceCommandButton=WM,exports.Au=Dp,exports.AutoColorPosition=Nj,exports.B=nt,exports.BorderCommandButton=rM,exports.BorderPopupButton=oM,exports.BorderStyleButton=nM,exports.Checkboard=Wj,exports.ClearCommandButton=uM,exports.ColorButton=qj,exports.ColorCommandButton=mM,exports.ColorPanel=Yj,exports.ColorPanelType=Bj,exports.ColorPopupButton=Qj,exports.DeleteCellsCommandButton=fM,exports.Do=Fl,exports.DocThemeCommandButton=$M,exports.EagerStudio=BO,exports.FillCommandButton=pM,exports.FilterColumnMenu=ZR,exports.FilterCommandButton=yM,exports.Filters=GR,exports.FindCommandButton=aM,exports.FontFamilyCommandButton=SM,exports.FontSizeCommandButton=sM,exports.FormulaBar=qR,exports.FreezeCommandButton=lM,exports.Gi=$a,exports.Gs=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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.HelpCommandButton=UM,exports.HorizontalAlignCommandButton=ng,exports.Ii=Oa,exports.InsertCellsCommandButton=hM,exports.InsertImageCommandButton=qM,exports.InsertScriptCommandButton=GI,exports.Js=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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.Ks=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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.L=qe,exports.MergeCommandButton=iM,exports.NamedCollectionEditor=WR,exports.NamedInput=YM,exports.NumberFormatCommandButton=dM,exports.Op=vf,exports.PasteCommandButton=EM,exports.PresetCellStylesCommandButton=RM,exports.PresetTableStylesCommandButton=zM,exports.Qs=Cd,exports.QuickFormulaSumCommandPopupButton=GM,exports.RangeInput=QM,exports.RunScriptCommandButton=QI,exports.S=Ue,exports.ScriptEditorToolbar=KI,exports.ScriptWorkspace=JI,exports.Se=Hn,exports.SheetTab=KR,exports.SheetTabMenu=XR,exports.SheetZoomScale=eR,exports.SheetsAllMenu=YR,exports.SortFilterCommandButton=xM,exports.StatusBar=tR,exports.Studio=$D,exports.StyledStrokeIcon=tM,exports.THEME_ID=ag,exports.TableStyleCanvasPreview=PM,exports.TableStyleOptionsPanel=AM,exports.TableStylePreview=LM,exports.TextEffectsCommandButton=CM,exports.TextOverflowCommandButton=rg,exports.TextRotateCommandButton=ig,exports.ThemeMode=kI,exports.ThemeSelectButton=NM,exports.ThemeSelectPanel=VM,exports.ThemeSelectPopupButton=HM,exports.Tt=Gt,exports.UnderlineCommandButton=kM,exports.UndoRedoCommandButton=bM,exports.Uu=$p,exports.VerticalAlignCommandButton=og,exports.ViewGridLinesCommandButton=gM,exports.ViewHeadingsCommandButton=_M,exports.WalkingCopyCommandButton=ZM,exports.WorkbookContextMenu=pD,exports.WorkbookElement=ND,exports.WorkbookIO=IO,exports.WorkbookStrip=uD,exports.WorkbookTitle=HD,exports.WorkbookViewCommandButton=TM,exports.Xs=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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.Zl=Rc,exports._WorkbookIO=RO,exports._extends=aI,exports._objectWithoutPropertiesLoose=sI,exports._setPrototypeOf=cI,exports.clsx=GD,exports.clsx$1=h,exports.commonjsGlobal=cg,exports.createGridStyleFromMUITheme=_I,exports.createTheme=jy,exports.de=Kn,exports.defaultNewWorkbook=_D,exports.defaultTheme=ab,exports.ec=e=>t.jsx(o.SvgIcon,{...e,children:t.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.et=he,exports.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.getOverlayAlpha=Zy,exports.ht=kk,exports.isPlainObject=xg,exports.nd=du,exports.pm=Wm,exports.qs=e=>t.jsxs(o.SvgIcon,{...e,children:[t.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"}),t.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"}),t.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.renderWorkbookLoadingPanel=zD,exports.requirePropTypes=_x,exports.setPrintExamplesOnLoad=e=>{QR=e},exports.styleFunctionSx=_y,exports.ui=pa,exports.useMeasure=lI,exports.useResolvedThemeMode=TI,exports.useTheme=sb,exports.useWorkbookCommands=ED,exports.xe=Bn,exports.xm=Km,exports.yt=zt;