@sheetxl/react 0.7.26 → 0.7.27

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.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._TaskPaneArea_6dmgk_5{position:absolute;height:100%;width:100%;display:flex;flex-direction:row}._TaskPaneTitle_6dmgk_13{display:flex;box-sizing:border-box;flex:1 1 0;flex-direction:row;align-items:center;font-size:1.25rem;height:100%;width:100%;padding:8px 16px;border-bottom:solid rgba(0,0,0,.2) 1px}._TaskPaneTitle_6dmgk_13 .title{opacity:.87}._TaskPaneTitle_6dmgk_13.focused .title{opacity:1}._TaskPaneFrame_6dmgk_36{display:flex;position:relative;flex-direction:column;width:100%;box-sizing:border-box;flex:1 1 0;min-height:0;align-items:stretch;justify-content:stretch;margin-bottom:4px;border-radius:4px;overflow:hidden}._TaskPaneStrip_6dmgk_52{display:flex;flex-direction:column;gap:4px;margin-top:4px;margin-left:2px}._TaskPaneStripItem_6dmgk_60{display:flex;flex-direction:row;align-items:center;padding:4px;border-radius:4px;border:grey solid 1px}._TaskPaneStripItem_6dmgk_60.selected{font-weight:700}._sheet-scrollbar_104cg_1{margin-left:2px;margin-bottom:1px;align-items:center}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  "use strict";/**
3
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.26
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.27
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -20,14 +20,14 @@ All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[r.Ke
20
20
 
21
21
  The formatting is not applied.`,icon:"PasteValues",shortcut:{key:"V",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}}),new r.Command("pasteFormats",v,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
22
22
 
23
- The content is not applied.`,icon:"PasteFormats"}),new r.Command("pasteFormulas",v,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied.",icon:"PasteFormulas"}),new r.Command("pasteTranspose",v,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped.",icon:"PasteTranspose"}),new r.Command("pasteLinks",v,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells.",icon:"PasteLinks"})];i.addCommands(E,!0)},[i,e]),o.useEffect(()=>{if(!i)return;const v={disabled:!t.getProtection().isFormatCellsAllowed()};i.getCommand("pasteValues").updateCallback(E=>w.paste({...Ll,...E})).update(v),i.getCommand("pasteFormats").updateCallback((E,q)=>w.paste({...Nl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteFormulas").updateCallback((E,q)=>w.paste({...Pl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteTranspose").updateCallback((E,q)=>w.paste({...jl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteLinks").updateCallback((E,q)=>w.paste({...Bl,description:q.getLabel(),...E})).update(v),i.getCommand("cut").update(v),i.getCommand("paste").update(v)},[t,i]);const N=o.useMemo(()=>{if(!z||!T.current)return;const v=z.key;if(v!=="copy"&&v!=="cut"&&v!=="formatPainter")return;const E=T.current.getItem();if(E.getSource()!==t)return;const q=T.current.isCut?.(),Z=q?M:C,F=q?c:h,P=E.getCoords(),W=P?[P]:null;return W&&W.length!==0?pe=>{const de=[];for(let le=0;le<W.length;le++){const R=W[le],te=pe.toClipBounds(pe.getRangeCoordsBounds(R,{top:0,left:0,right:1,bottom:1}),gt.SELECTION_CLIP_INSETS);te&&(de.push(p({range:R,key:`copy-selection-background-${le}`,x:te.x,y:te.y,width:Math.max(te.width,0),height:Math.max(te.height,0),stroke:Z,strokeWidth:2})),de.push(p({range:R,key:`copy-selection-foreground-${le}`,x:te.x+(te.width<=2?-1:0),y:te.y,width:Math.max(te.width,3),height:Math.max(te.height,3),stroke:F,strokeWidth:2,isAnimatedStroke:!0})))}return de}:null},[z,t,n,h,C,c,M]);return{...w,clipboard:$,overlays:N}},Ol=o.memo(o.forwardRef((e,t)=>{const{view:n,element:i,sheet:a,gridStyle:l,commands:f}=e,h=l.body??{},c=a.getView(),{overlays:C}=br({element:i,sheet:a,sheetView:c,commands:f,copyForegroundColor:l.selection.strokeFill,copyBackgroundColor:h.fill,cutForegroundColor:l.selectionRemove.strokeFill,cutBackgroundColor:h.fill});return Qe(a?.getSelection(),{onChange(M){}}),o.useEffect(()=>{n?.getStage()},[n?.getStage()]),C&&n?C(n):null})),Hl="_sheet-selection_12wyx_5",Vl={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Ul={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Kl={key:"dragCopy",description:"Drag selection to copy cell contents."},$l={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},Bo=(e,t)=>t.ctrlKey&&t.shiftKey?$l:t.ctrlKey?Kl:t.shiftKey?Ul:Vl,Wl={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},Gl=o.memo(o.forwardRef((e,t)=>{const{view:n,commands:i,className:a,onFirstRender:l,onShowTooltip:f,onCloseTooltip:h,sheet:c,gridRef:C,gridStyle:M,isActive:y,...p}=e,T=n?.getBounds(),I=r.useCallbackRef(f,[f]),z=r.useCallbackRef(h,[h]),[D,_]=o.useState(()=>c?.getSelection().getCoords()),$=r.useCallbackRef(H=>{ge.CoordUtils.isEqualSelectionCoords(H,D)||c&&c.getSelection().updateCoords(H)},[c,D]),w=r.useEditMode(),N=o.useRef(null),[v,E]=o.useState(c?.getProtection().isLocked()),[q,Z]=o.useState(c?.getView().getMovableSelection().length>0),F=r.ReactUtils.detectIt().primaryInput==="touch",P=!F&&y,W=w.getMode()?.args?.stateAndCoords?.coords??null,pe=W!==null||q,de=r.useCallbackRef(H=>{const U=ge.CoordUtils.cellToRange(H);if(c.isClosed())return U;const he=c.getRange(U,{ignoreHidden:!0}).getMerges();return he.length===0?U:he[0]},[c]),le=r.useCallbackRef((H,U,he,ce,me,Te)=>{const ie=c.getSelectedRange().getExtended(ce,H).getCoords();switch(ce){case d.IRange.Direction.Up:return ie.rowStart;case d.IRange.Direction.Down:return ie.rowEnd;case d.IRange.Direction.Left:return ie.colStart;case d.IRange.Direction.Right:return ie.colEnd}},[c]),R=r.useCallbackRef(()=>{const H=c.getUsedRange()?.getCoords(),U=c.getRowHeaders().getUsedRange()?.getCoords(),he=c.getColumnHeaders().getUsedRange()?.getCoords();return{...H,colEnd:Math.max(H?.colEnd??0,he?.max??0),rowEnd:Math.max(H?.rowEnd??0,U?.max??0)}},[c]),te=r.useCallbackRef((H,U)=>c.getRowHeaders().hiddenHeadersAt(H,U),[c]),k=r.useCallbackRef((H,U)=>c.getColumnHeaders().hiddenHeadersAt(H,U),[c]),b=r.useCallbackRef(H=>c.getRange(H,{ignoreHidden:!0}).getMerges(),[c]),ee=r.useCallbackRef(H=>{c?.getSelection().setAdjusting(H)},[c]),ne=r.useCallbackRef(async()=>{c?.getSelection().setAdjusting(null),w.getMode()?.key==="formatPainter"&&(await i?.getCommand("pasteFormats")?.execute({}),w.setMode(null))},[w,D,c,i]),Re=o.useMemo(()=>{const H=w.getMode();return H?.key==="cut"||H?.key==="copy"},[w]);Qe(c?.getView(),{onMovableSelectionChange:()=>{Z(c.getView().getMovableSelection().length>0)}}),Qe(c?.getSelection(),{onChange(H){const U=c.getSelection().getCoords();_(U)}}),Qe(c,{onProtectionChange:()=>{E(c.getProtection().isLocked())}});const{body:Ce={}}=M||{},ye=r.useNotifier(),Pe=n.getLayout(),ze=!(P&&D.ranges.length<=1&&W===null&&!v&&(!w.getMode()||Re)),{cursor:Ae,renderOverlay:Ie,onPointerDown:ue}=gt.useSelection({gridRef:C,commands:i,layout:Pe,getCellCoordsAsRangeCoords:de,selection:D,fillHandleBorderColor:Ce.fill,selectionBackgroundColor:y?M.selection.fill:M.selectionInactive.fill,selectionBorderColor:y?M.selection.strokeFill:M.selectionInactive.strokeFill,selectionRemoveBackgroundColor:y?M.selectionRemove.fill:M.selectionInactive.fill,selectionRemoveBorderColor:y?M.selectionRemove.strokeFill:M.selectionInactive.strokeFill,disableFillDrag:ze,disableMoveDrag:F||!(y&&D.ranges.length<=1&&W===null&&!v),disableTouchSelection:pe,onSelectionChange:$,onSelectionDragStart:ee,onSelectionDragEnd:ne,onMoveDragStart:(H,U,he)=>{w.setMode(Bo(0,he))},onMoveDragUpdate:(H,U,he)=>{w.setMode(Bo(0,he))},onMoveDragEnd:(H,U)=>{w.setMode(null)},onMoveDragDone:async(H,U,he)=>{if(ge.CoordUtils.isEqualRanges(H,U))return;const ce=c.getRange(U);if(ye?.showOptions){const g=ce.getDifferences(H);let je=!1;const Be=g.getCount();for(let Ee=0;!je&&Ee<Be;Ee++)je=g.at(Ee).isContentful();if(je&&await ye?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const me=!he.ctrlKey,Te=he.shiftKey,ie=Te?me?"Insert Moved Cells":"Insert Copied Cells":me?"Move Cells":"Copy Cells",qe=await ye?.showBusy?.(ie);try{const g=c.getRange(H);await ce.doBatch(async()=>{Te?await ce.insertFrom(H,{isCut:me,undoRange:g}):await ce.copyFrom(H,{isCut:me,undoRange:g}),g.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0}),ce.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0})},{description:ie,autoSelect:!0})}catch(g){ye?.showError?.(g)}finally{qe?.()}},contentfulCellFinder:le,hiddenRowsAt:te,hiddenColumnsAt:k,mergedRanges:b,getDataCoords:R,canSelectionSpanMergedCells:H=>{const U=c.getRange(H);return U.isEntireColumns()||U.isEntireRows()},onFill:async(H,U)=>{const he="Auto Fill",ce=await ye?.showBusy?.(he);try{await c.doBatch(()=>{c.getRange(H).autoFill(U),c.getRange(U).autoFit({orientations:d.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:he,autoSelect:!0})}catch(me){ye?.showError?.(me)}finally{N.current=null,ce?.()}},onFillPreview:(H,U,he)=>{if(C.current&&I){w.setMode(Wl);try{N.current?.direction!==he&&(N.current=null,c.getRange(H).autoFill(U,{previewOnly:Be=>{N.current={callback:Be,direction:he}}}));const ce=N.current?.callback?.(U);if(!ce||ce.isEmpty())return;const me=ce.toText();if(!me)return;const Te=ge.CoordUtils.cellToRange(ce.getCoords()),ie=n.getRelativePointFromClient(0,0);let qe=0,g=0,je=r.ToolTipPlacement.Bottom;if(he===d.IRange.Direction.Down){qe=Pe.getColOffset(Te.colEnd+1)-ie.x;const Be=Pe.getRowOffset(Te.rowEnd),Ee=Pe.getRowOffset(Te.rowEnd+1);g=Ee-(Ee-Be)/2-ie.y,je=r.ToolTipPlacement.Right}else if(he===d.IRange.Direction.Right){g=Pe.getRowOffset(Te.rowEnd+1)-ie.y;const Be=Pe.getColOffset(Te.colEnd),Ee=Pe.getColOffset(Te.colEnd+1);qe=Ee-(Ee-Be)/2-ie.x,je=r.ToolTipPlacement.Bottom}else if(he===d.IRange.Direction.Up){qe=Pe.getColOffset(Te.colEnd+1)-ie.x;const Be=Pe.getRowOffset(Te.rowStart),Ee=Pe.getRowOffset(Te.rowStart+1);g=Ee-(Ee-Be)/2-ie.y,je=r.ToolTipPlacement.Right}else if(he===d.IRange.Direction.Left){g=Pe.getRowOffset(Te.rowEnd+1)-ie.y;const Be=Pe.getColOffset(Te.colStart),Ee=Pe.getColOffset(Te.colStart+1);qe=Ee-(Ee-Be)/2-ie.x,je=r.ToolTipPlacement.Bottom}I({anchor:{x:qe,y:g},display:me,placement:je})}catch(ce){ye?.showError?.(ce)}}},onFillDone:()=>{N.current=null,w.setMode(null),z?.()}}),O=r.useCallbackRef(H=>{ue(r.ReactUtils.createSyntheticEvent(H))},[ue,W]);o.useEffect(()=>{const H=n?.getStage();if(H)return H.addEventListener("pointerdown",O),()=>{H.removeEventListener("pointerdown",O)}},[n?.getStage()]);const xe=r.useImperativeElement(t,()=>({}),[]),Le=o.useRef(null);return s.jsx("div",{className:ct(a,"sheet-selection",Hl),style:{position:"absolute",width:T?.width,height:T?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:Nt([xe,Le]),...p,children:Ie(n)})})),Sn=Object.freeze({x:0,y:0,width:0,height:0}),_l={fireOnModelChange:!1},Zl=o.memo(o.forwardRef((e,t)=>{const{children:n,view:i,movable:a,onRefLoad:l,onRefUnload:f,onHide:h,onShow:c,onUnFocus:C,isDragging:M,updateFrameBounds:y,dragStart:p,style:T,disabled:I,renderMovable:z,...D}=e,[_,$]=o.useState(Sn),[w,N]=o.useState(null),[v,E]=o.useState(!1),q=o.useRef(null);o.useLayoutEffect(()=>{if(a.isClosed())return;const F=a.getBounds();if(!F)return;const P=i.toViewBounds(F);$(P??Sn),y(P??Sn)},[i?.getBounds()]),Qe(a,{onBoundsChange:F=>{const P=F.getBounds();if(!P)return;const W=i.toViewBounds(P);$(W??Sn),y(W)},onSelectionChange:()=>{const F=ge.CommonUtils.hasFocus(q.current,!0);!v&&!F||a.isSelected()||C()}}),Qe(a,{onRequestFocus:()=>ge.CommonUtils.whenFocus(q.current,!0)},_l),o.useEffect(()=>{const F=q.current;return l(F),()=>{f(F)}},[]);const Z=o.useMemo(()=>{if(!_)return null;let{width:F,height:P}=_;return z({view:i,movable:a,disabled:I,isDragging:M,style:{position:"relative",left:0,top:0,width:F,height:P},onHide:h,onShow:c})},[i,a,_.width,_.height,I,M]);return s.jsx("div",{className:"movable",tabIndex:0,ref:Nt([q,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:_.x,top:_.y,width:_.width,height:_.height,...T},onMouseDown:async F=>{const P=F.shiftKey||F.ctrlKey,W=a.isSelected(),pe=F.currentTarget;P&&W?a.unselect():(W&&!P||await a.select({addToSelection:P}),p(F.nativeEvent,pe),pe.focus())},onFocus:F=>{F.relatedTarget&&!w&&N(F.relatedTarget),E(!0)},onBlur:F=>{w&&!q?.current?.contains(F.relatedTarget)&&N(null),F.relatedTarget&&E(!1)},...D,children:Z})})),Xl="_movable-area_314c6_5",xr=o.memo(o.forwardRef((e,t)=>{const{view:n,movables:i,movablesView:a,renderMovable:l,transactional:f,onUnFocus:h,onFocus:c,disabled:C=!1,disableDrag:M=!1,disableResize:y=!1,className:p,style:T,renderDirections:I=["nw","n","ne","w","e","sw","s","se"],onFirstRender:z,...D}=e,_=n.getBounds(),$=r.useCallbackRef(z,[z]),w=r.useCallbackRef(h,[h]),N=r.useCallbackRef(c,[c]),[v,E]=o.useState([]),[q,Z]=o.useState(!1),[F,P]=o.useState(!1),W=o.useRef(!0),pe=o.useRef(new Map),de=o.useRef(new Map),le=o.useRef(new Map),R=o.useRef(new Map),te=o.useRef(new Map),k=o.useRef({onRequestFocus:m=>(he(m),null)}),b=o.useRef(null),ee=o.useRef(null),ne=o.useRef(null),[Re,Ce]=o.useReducer(m=>m+1,0);o.useLayoutEffect(()=>{Ce()},[n,i]),Qe(i,{onCollectionChange:()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0}),A=te.current;A.forEach(J=>{J()}),A.clear();const G=k.current;for(let J=0;J<m.length;J++){const re=m[J];if(re.isClosed())continue;const x=re.addListeners(G);A.set(re,x)}Ce()},onInvalidated:()=>{Ce()}}),Qe(a,{onMovableSelectionChange(m){Pe(),Ce()}});const ye=o.useCallback((m,A)=>{const G=le.current.get(m);ne.current&&(ne.current.getTargets().forEach(J=>{if(J===G)return J.style.left=A.x+"px",J.style.top=A.y+"px",J.style.width=A.width+"px",void(J.style.height=A.height+"px")}),ne.current.updateRect())},[]),Pe=()=>{const m=[],A=a.getMovableSelection();A.forEach(G=>{const J=le.current.get(G);J&&A.indexOf(G)!==-1&&m.push(J)}),E(G=>ge.CommonUtils.isEqualArrays(G,m)?G:m)},ze=o.useRef(null),Ae=o.useRef(null),Ie=o.useMemo(()=>(Ae.current||(Ae.current=new Promise(m=>{ze.current=m})),Ae.current),[]),ue=o.useRef(null),O=r.useCallbackRef(async(m,A)=>{ue.current=A,await(async()=>!(!await Ie.then()||!ne.current))()&&ue.current===A&&ne.current.dragStart(m,A)},[v]),[xe,Le]=o.useState(!1),H=o.useRef(null),U=o.useRef(null),he=r.useCallbackRef(async(m=null)=>{if(m||(m=a.getMovableSelection()[0]),!m)return w?.(),!1;const A=le.current.get(m);A?(await ge.CommonUtils.whenFocus(A),A.focus(),U.current=A,H.current=null):H.current=m},[a]);o.useEffect(()=>{xe&&v.length>0&&U.current!==v[0]&&he(),W.current&&($?.(),W.current=!1)},[v]);const ce=o.useMemo(()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0});if(m.length===0&&pe.current.size===0)return null;const A=(B,S,j,se=!0)=>{const ae=B.isSelected(),we={tabIndex:j,view:n,movable:B,onRefLoad:Y=>{H.current===B&&(Y.focus(),U.current=Y,H.current=null),le.current.set(B,Y),de.current.set(Y,B),S.rendered=!0,Pe()},onRefUnload:Y=>{le.current.delete(B),de.current.delete(Y),S.rendered=!1,Pe()},onUnFocus:w,onHide:Y=>{S.onHide=Y},onShow:Y=>{S.onShow=Y},isDragging:ae&&(F||q),disabled:C,renderMovable:l,updateFrameBounds:Y=>{ye(B,Y)},dragStart:O,onMouseUp:()=>{if(ue.current=null,ee.current){Z(!1),P(!1);let Y=!1;R.current?.forEach(fe=>{ge.CommonUtils.isEqualBounds(fe.movable.getBounds(),fe.startBounds)||(Y=!0)}),Y?Te():ie()}},style:{opacity:se?q&&ae?.7:void 0:0,zIndex:q&&ae?B.getZIndex()+m.length:void 0,pointerEvents:se?void 0:"none",cursor:F&&ae?"grabbing":C||M?"initial":"move",boxShadow:!ae||F&&!q?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(Zl,{...we},`movable-${B.getUUID()}`)},G=pe.current,J=new Map,re=[];for(let B=0;B<m.length;B++){const S=m[B];if(S.isClosed())continue;let j=G.get(S);j||(j={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(se,ae)=>{if(!ae||ae.shown===!0)return;ae.shown=!0;const we=++ae.visibilityRequestId;requestAnimationFrame(()=>{const Y=pe.current.get(se);Y&&we===ae.visibilityRequestId&&(ae.onShow?.(se),Y.shown=!0)})},doHide:async(se,ae)=>{if(!ae||ae?.shown===!1)return;ae.shown=!1;const we=++ae.visibilityRequestId,Y=await Promise.resolve(ae.onHide?.(se));we===ae.visibilityRequestId&&Y!==!1&&(ae.shown=!1,pe.current.delete(se),Ce())},visibilityRequestId:0}),j.frame=A(S,j,B,!0),re.push(j.frame),j.doShow(S,j),G.delete(S),J.set(S,j)}const x=[];return a.getMovableSelection().forEach(B=>{const S=G.get(B);S&&(S.frame=A(B,S,-1,!1),x.push(S.frame),G.delete(B),J.set(B,S))}),G.forEach((B,S)=>{B.frame=A(S,B,-1,!1),x.push(B.frame),B.doHide(S,B),G.delete(S),J.set(S,B)}),pe.current=J,Pe(),[...x,...re]},[Re,n,l,C,M,y,q,F]),me=r.useCallbackRef((m,A)=>{const G=`${A} ${v.length===1?d.TextUtils.capitalize(de.current?.get(v[0]).getContent().getType()):"Drawings"}`;ee.current&&(console.warn(`Transaction ${ee.current.getDescription()} is being replaced by ${G}`),ee.current.rollback(),ee.current=null),ee.current=f.beginCommit({description:G}),R.current.clear();for(let J=0;J<v.length;J++){const re=v[J],x=de.current?.get(re);x?R.current.set(re,{movable:x,startBounds:n.toViewBounds(x.getBounds())}):console.warn("invalid element",x)}},[f,n,v]),Te=o.useCallback(()=>{if(!ee.current)return;const m=[];R.current?.forEach(A=>{m.push(A.movable)}),ee.current.commit({viewAfter:{view:a,movableSelection:m}}),R.current.clear(),ee.current=null},[]),ie=o.useCallback(()=>{ee.current&&(ee.current.rollback(),ee.current=null)},[]),qe=o.useRef(null);o.useEffect(()=>{qe.current&&(qe.current.onscroll=m=>{m.preventDefault(),m.srcElement.scrollTop=0,m.srcElement.scrollLeft=0})},[qe.current]);const g=r.useImperativeElement(t,()=>({isMovableArea:()=>!0,focusMovable:he,focus:()=>{he()}}),[a]),[je,Be]=o.useState(null),Ee=o.useRef(!1),u=o.useRef(!1),L=o.useRef(!1);o.useEffect(()=>{if(C||v.length===0||L.current||Ee.current)return;if(u.current)return void requestAnimationFrame(()=>{ne.current&&b.current&&ne.current.refTargets.length>0&&(L.current=!0,ze.current?.(!0)),E([...v])});Ee.current=!0;const m=o.lazy(async()=>{try{const A=await Promise.resolve().then(()=>require("./riAg15J7Fxjibjpd.cjs"));return Ee.current=!1,u.current=!0,E([...v]),A}catch(A){return console.warn(A),ze.current?.(!1),null}});Be(m)},[v,C,M,y]);const K=o.useMemo(()=>!je||C?null:s.jsx(o.Suspense,{children:s.jsx(je,{className:ct({dragging:q||F,resizing:q,moving:F}),container:null,ref:ne,target:ne.current?v:[],draggable:!C&&!M,resizable:!C&&!y,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:I,onResizeStart:m=>{me(m.target,"Resize")},onResize:m=>{if(!ee.current)return m.stopDrag(),void Ce();Z(!0);const A=m.direction[0]!==0&&m.direction[1]!==0;let G=0,J=0;for(let re=0;re<v.length;re++){const x=v[re],B=R.current.get(x),S=de.current.get(x);if(!B||!S){console.warn("invalid element");continue}let j=m.dist[0],se=m.dist[1],ae=m.drag.dist[0],we=m.drag.dist[1],Y=B.startBounds.width,fe=B.startBounds.height;re===0?(G=Y,J=fe):(j*=Y/G,ae*=Y/G,se*=fe/J,we*=fe/J);const V={...B.startBounds};if(V.width=Math.max(0,Y+j),V.height=Math.max(0,fe+se),m.direction[0]===-1&&(V.width=Math.max(0,Math.min(B.startBounds.x+Y,Y-ae))),m.direction[1]===-1&&(V.height=Math.max(0,Math.min(B.startBounds.y+fe,fe-we))),A&&(S.isLockAspectRatio()||m.inputEvent?.shiftKey)){const X=Y/fe,oe=V.width/V.height;oe>X?V.height=V.width/X:oe<X&&(V.width=V.height*X)}m.direction[0]===-1&&(V.x=Math.max(0,Math.min(B.startBounds.x+Y,B.startBounds.x+Y-V.width))),m.direction[1]===-1&&(V.y=Math.min(B.startBounds.y+fe,B.startBounds.y+fe-V.height)),B.movable.setBounds(n.toAbsoluteBounds(V))}},onResizeEnd:m=>{Z(!1),Te()},onDragStart:m=>{me(m.target,"Move")},onDrag:m=>{if(!ee.current)return m.stopDrag(),void Ce();P(!0);for(let A=0;A<v.length;A++){const G=v[A],J=R.current.get(G);J?J.movable.setBounds(n.toAbsoluteBounds({...J.startBounds,x:J.startBounds.x+m.translate[0],y:J.startBounds.y+m.translate[1]})):console.warn("invalid element")}},onDragEnd:m=>{},onMouseUp:m=>{}})}),[Re,je,v,n,C,M,y,q,F]);return s.jsx("div",{className:ct(p,"movable-area",Xl),style:{width:_.width,height:_.height,...T,position:"absolute",overflow:"hidden",willChange:"transform"},ref:Nt([g,qe]),...D,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:_.width,height:_.height},...D,children:s.jsxs("div",{ref:b,style:{position:"absolute",pointerEvents:"auto"},onFocus:m=>{N?.(),Le(!0)},onBlur:m=>{Le(!1)},onKeyDownCapture:m=>{if(m.isDefaultPrevented())return;const A=m.nativeEvent.ctrlKey,G=m.nativeEvent.altKey,J=m.nativeEvent.shiftKey;if(m.which===r.KeyCodes.Escape){const j=a.getMovableSelection();let se=[...j];return v.forEach(ae=>{if(se.length===0)return;const we=de.current.get(ae);let Y=se.indexOf(we);se.splice(Y,1)}),se.length!==j.length&&a.selectMovables(se),se.length===0&&w?.(),void m.preventDefault()}const re=.1,x=j=>{i.updateSelected(se=>{se.setRotation(se.getRotation()+j)},"Rotate")},B=(j,se=!0)=>{i.updateSelected(ae=>{const we=ae.getBounds();let Y=1+j;se||(Y=1/Y);const fe=Math.sqrt(Math.pow(we.width,2)+Math.pow(we.height,2)),V=Math.atan2(we.height,we.width),X=Y*fe;if(X<10)return;const oe=X*Math.cos(V),Fe=X*Math.sin(V),Ue={x:we.x+(we.width-oe)/2,y:we.y+(we.height-Fe)/2,width:oe,height:Fe};ae.setBounds(Ue)},"Resize")},S=j=>{i.updateSelected(se=>{const ae=se.getBounds(),we={x:ae.x+(j.x??0),y:ae.y+(j.y??0),width:ae.width+(j.width??0),height:ae.height+(j.height??0)};se.setBounds(we)},"Nudge")};if(m.which===r.KeyCodes.Delete)i.updateSelected(j=>{j.delete()},"Delete"),m.preventDefault();else if(m.key==="a"&&A){const j=a.getMovableSelection();a.selectMovables(i.getItems(),!0),a.selectMovables(j,!0),m.preventDefault()}else m.key==="ArrowLeft"?(J?B(re,!1):G?x(-10):S({x:A?-10:-1}),m.preventDefault()):m.key==="ArrowRight"?(J?B(re,!0):G?x(10):S({x:A?10:1}),m.preventDefault()):m.key==="ArrowUp"?(J?B(re,!0):S({y:A?-10:-1}),m.preventDefault()):m.key==="ArrowDown"&&(J?B(re,!1):S({y:A?10:1}),m.preventDefault())},children:[ce,K]})})})})),Ut=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,i=0,a=0;for(let l=0;l<e.length;l++){const f=e[l].getBounds();t=Math.min(f.x,t),n=Math.min(f.y,n),i=Math.max(f.x+f.width,i),a=Math.max(f.y+f.height,a)}return{x:t,y:n,width:i-t,height:a-n}},Oo=(e,t=!0)=>{const n=[],i=t?"x":"y",a=t?"y":"x",l=t?"width":"height";let f=0,h=Number.MAX_SAFE_INTEGER,c=0;for(let y=0;y<e.length;y++){const p=e[y],T=p.getBounds();f+=T[l],h=Math.min(T[i],h),c=Math.max(T[i]+T[l],c),n.push({bounds:T,movable:p})}const C=(c-h-f)/(e.length-1);n.sort((y,p)=>{const T=y.bounds[i],I=p.bounds[i];return T!==I?T-I:y.bounds[a]-p.bounds[a]});const M=new Map;M.set(n[0].movable,n[0].bounds);for(let y=1;y<n.length-1;y++){const p=n[y-1].bounds,T={...n[y].bounds};T[i]=p[i]+p[l]+C,n[y].bounds=T,M.set(n[y].movable,T)}return M.set(n[n.length-1].movable,n[n.length-1].bounds),M},qr=e=>{const{movables:t,movablesView:n,transactional:i,commands:a,target:l,onRepeatCommandChange:f}=e,h=r.useNotifier(),c=r.useEditMode();o.useRef(c.getMode()).current=c.getMode();const C=r.useCallbackRef(async(w,N,v=null,E=!0)=>{const q=async()=>{const Z=await Promise.resolve(h?.showBusy?.(w.getLabel()));try{await N();const F=v??w?.getLabel?.();if(f){let P=null;w&&F!==!1&&(P=new r.SimpleCommand(w.getKey(),l,{label:F,description:F},q)),f(P)}Z?.(),E&&c.setMode(null)}catch(F){Z?.(),h?.showError?.(F)}};await q()},[f,h]),[M,y]=o.useReducer(w=>w+1,0),p=r.useCallbackRef((w,N,v)=>{if(!n)return;const E=n.getMovableSelection();if(E.length===0)return;let q="Drawings";if(E.length===1){const F=E[0];q=d.TextUtils.capitalize(F.getContent().getType())??"Drawing"}const Z=`${w.getLabel()} ${q}`;C(w,()=>{let F=null;i&&(F=i.beginCommit(Z));const P=n.getMovableSelection();if(P.length===0)return;const W=v?.(P);for(let pe=0;pe<P.length;pe++){const de=P[pe];N(de,W)}F?.commit()})},[n,i]),[T,I]=o.useState(n.getMovableSelection()[0]??null),[z,D]=o.useState(!T||T?.isProtected()),_=o.useMemo(()=>[new r.Command("moveToFront",l,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",icon:"DrawToFront",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToFront()})}),new r.Command("moveForward",l,{label:"Bring Forward",description:"Move forward one layer in the z order.",icon:"DrawMoveForward",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveForward()})}),new r.Command("moveToBack",l,{label:"Send to Back",description:"Move to the back of all of the other drawings.",icon:"DrawToBack",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToBack()})}),new r.Command("moveBackward",l,{label:"Send Backward",description:"Move backwards one layer in the z order.",icon:"DrawMoveBackward",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveBackward()})}),new r.Command("toggleLockAspectRatio",l,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners.",icon:"DrawAspect"},function(){p(this,w=>{w.setLockAspectRatio(!w.isLockAspectRatio())})}),new r.Command("formatAnchorTypeTwoCell",l,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.TwoCell)})}),new r.Command("formatAnchorTypeOneCell",l,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.OneCell)})}),new r.Command("formatAnchorTypeAbsolute",l,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.Absolute)})}),new r.Command("formatDrawAlignLeft",l,{label:"Align Left",description:"Align the selected drawings to the left.",icon:"DrawAlignLeft"},function(){p(this,(w,N)=>{w.setBounds({x:N.x})},Ut)}),new r.Command("formatDrawAlignCenter",l,{label:"Align Center",description:"Align the selected drawings vertically relative to each other.",icon:"DrawAlignCenter"},function(){p(this,(w,N)=>{w.setBounds({x:(N.width-w.getBounds().width)/2+N.x})},Ut)}),new r.Command("formatDrawAlignRight",l,{label:"Align Right",description:"Align the selected drawings to the right.",icon:"DrawAlignRight"},function(){p(this,(w,N)=>{w.setBounds({x:N.width-w.getBounds().width+N.x})},Ut)}),new r.Command("formatDrawAlignTop",l,{label:"Align Top",description:"Align the selected drawings to the top.",icon:"DrawAlignTop"},function(){p(this,(w,N)=>{w.setBounds({y:N.y})},Ut)}),new r.Command("formatDrawAlignMiddle",l,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other.",icon:"DrawAlignMiddle"},function(){p(this,(w,N)=>{w.setBounds({y:(N.height-w.getBounds().height)/2+N.y})},Ut)}),new r.Command("formatDrawAlignBottom",l,{label:"Align Bottom",description:"Align the selected drawings to the bottom.",icon:"DrawAlignBottom"},function(){p(this,(w,N)=>{w.setBounds({y:N.height-w.getBounds().height+N.y})},Ut)}),new r.Command("formatDrawDistributeHorz",l,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each.",icon:"DrawDistributeHorz"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w))}),new r.Command("formatDrawDistributeVert",l,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each.",icon:"DrawDistributeVert"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w,!1))}),new r.Command("formatDrawFlipHorz",l,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new r.Command("formatDrawFlipVert",l,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new r.Command("formatDrawGroup",l,{label:"Group",description:"Group the selected drawings into a single drawing.",icon:"DrawGroup"}),new r.Command("formatDrawUngroup",l,{label:"Ungroup",description:"Break the group of a drawing into individual drawings.",icon:"DrawUngroup"}),new r.Command("formatDrawSwapShapes",l,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new r.Command("formatDrawSwapShapesHorz",l,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new r.Command("formatDrawSwapShapesVert",l,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[n,T]);o.useEffect(()=>{},[c]);const $=o.useMemo(()=>{let w=null;return w=a?a.createChildGroup(l,"movable",!1):new r.CommandGroup(l,"movable"),w.addCommands(_,!0),w},[a,_]);return Qe(T,{onAnyChange:()=>{$.getCommand("formatAnchorTypeTwoCell").update({state:T?.getAnchorType()===d.IAnchored.Type.TwoCell}),$.getCommand("formatAnchorTypeOneCell").update({state:T?.getAnchorType()===d.IAnchored.Type.OneCell}),$.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===d.IAnchored.Type.Absolute}),$.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===d.IAnchored.Type.Absolute}),$.getCommand("toggleLockAspectRatio").update({state:T?.isLockAspectRatio()})},onProtectedChange:w=>{D(w.isProtected())},onDelete:()=>{}}),Qe(n,{onMovableSelectionChange:()=>{const w=n.getMovableSelection()[0]??null;I(w),D(!w||w.isProtected()),y()}}),Qe(t,{onCollectionChange:()=>{y()}}),o.useEffect(()=>{const w={disabled:z};$.getCommand("formatAnchorTypeTwoCell").update(w),$.getCommand("formatAnchorTypeOneCell").update(w),$.getCommand("formatAnchorTypeAbsolute").update(w),$.getCommand("toggleLockAspectRatio").update(w);const N=t.getCount(),v=n.getMovableSelection(),E=z||N<=1||v.length===0;let q={disabled:E},Z=q;if(!E&&v.length===1){const W=v[0];W.getZIndex()===0&&(q={disabled:!0}),W.getZIndex()===N-1&&(Z={disabled:!0})}$.getCommand("moveToFront").update(Z),$.getCommand("moveForward").update(Z),$.getCommand("moveToBack").update(q),$.getCommand("moveBackward").update(q);const F={disabled:z||v.length<=1};$.getCommand("formatDrawAlignLeft").update(F),$.getCommand("formatDrawAlignCenter").update(F),$.getCommand("formatDrawAlignRight").update(F),$.getCommand("formatDrawAlignTop").update(F),$.getCommand("formatDrawAlignMiddle").update(F),$.getCommand("formatDrawAlignBottom").update(F),$.getCommand("formatDrawFlipHorz").update(F),$.getCommand("formatDrawFlipVert").update(F),$.getCommand("formatDrawGroup").update(F),$.getCommand("formatDrawUngroup").update(F),$.getCommand("formatDrawSwapShapes").update(F),$.getCommand("formatDrawSwapShapesHorz").update(F),$.getCommand("formatDrawSwapShapesVert").update(F);const P={disabled:z||v.length<=2};$.getCommand("formatDrawDistributeHorz").update(P),$.getCommand("formatDrawDistributeVert").update(P)},[M,z,M]),$},Yl=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,description:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const M=r.useImperativeElement(t,()=>({isEmptyFrame:()=>!0}),[]),[y,{height:p,width:T}]=Wt();return s.jsx("div",{...C,ref:Nt([M,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a})})})})),Jl=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,propsMovable:a,renderMovable:l,commands:f,target:h,onRepeatCommandChange:c}=e,C=qr({movables:i.getMovables(),movablesView:i?.getView(),transactional:i,onRepeatCommandChange:c,commands:f,target:h});o.useEffect(()=>{n?.getStage()},[n?.getStage()]);const M=o.useMemo(()=>s.jsx(xr,{ref:t,view:n,movables:i.getMovables(),disableResize:!i.getProtection().isObjectsAllowed(),disableDrag:!i.getProtection().isObjectsAllowed(),movablesView:i.getView(),transactional:i,renderMovable:l,...a,onFocus:()=>{C.activate(),a?.onFocus?.()}},"movable-area"),[i,a,f,C]);return M&&n?M:null})),Ql=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,gridStyle:a,getCellEditor:l,showProtectedError:f,setEditingCoords:h,commands:c}=e,C=r.useEditMode(),[M,y]=o.useState(null),[p,T]=o.useState(null),[I,z]=o.useState(null),[D,_]=o.useState(null),[$,w]=o.useState(null);o.useLayoutEffect(()=>{if(I===null)return _(null),void w(null);const k=()=>{const b=i.getRange(I).getCell(),ee=b.getStyle();let ne,Re=ee.getFill()?.toCSS(a.body.darkMode);Re.background!=="none"&&Re.background!=="transparent"||(Re=i.getStyles().getNormal().getFill().toCSS(a.body.darkMode)),Re.background!=="none"&&Re.background!=="transparent"||(Re={background:a.body.fill}),_({style:Re}),b&&!b.getFormula()&&(ne=b?.getRenderHorizontalAlignment()),w(ne??r.HorizontalAlignment.Left)};return k(),i.getRange(I).addListener(()=>{k()})},[i,I,a?.body]);const N=r.useCallbackRef(()=>{let k=p.editState.dirty??"";if(p.editState.dirty!==void 0){const b=d.TextUtils.clampString(k);try{const ee=p.sheet.getRange(p.coords),ne=`Typing '${b}' into ${ee.toString()}`;return ee.setValue(k,{description:ne,autoFit:!0}),z(null),T(null),C.setMode(null),h(null),!0}catch(ee){throw ge.Notifier.error(new Error(`Unable to enter '${b}'.`,{cause:ee})),ee}}},[i,p]),v=r.useCallbackRef(k=>i.getRange(k).getCell().getExtrusions()??ge.CoordUtils.cellToRange(k),[i]),E=r.useCallbackRef(k=>{let b=d.IRange.Orientation.Row,ee=!1;k!==d.IRange.Direction.Up&&k!==d.IRange.Direction.Down||(b=d.IRange.Orientation.Column),k!==d.IRange.Direction.Left&&k!==d.IRange.Direction.Up||(ee=!0),i.getSelection().traverse(b,ee)},[i]),q=o.useCallback((k,b)=>{if(l)return l(k,b);if(!i)return null;const{ref:ee,...ne}=k;return s.jsx(gr,{ref:ee,...ne,sheet:i,bodyStyle:a?.body,activeCoords:b,commands:c,onChangeEdit:Re=>{const Ce={sheet:i,coords:b,editState:Re};C.setMode(ye=>({...ye,description:Ce.editState.editMode?"Edit":"Enter",args:{...ye?.args,stateAndCoords:Ce}}))},editState:p.editState})},[i,D,l,p,I]),{renderOverlay:Z,startEdit:F,submitEdit:P,cancelEdit:W,onKeyboardEventNative:pe,onPointerEventNative:de}=gt.useKeyboardEditorOverlay({view:n,activeCoords:M,getCellEditor:q,canEdit:()=>{const k=i.getProtection();if(k.isReadOnly())return!1;const b=k.isLocked();return b&&f(),!b},onBeforeStartEdit:k=>{const b=hr(()=>i.getRange(k).getCell()),ee={sheet:i,coords:k,editState:Object.freeze(b)};C.setMode({key:"edit",args:{stateAndCoords:ee}}),T(ee)},onStartEdit:k=>{z(k),h(k)},onSubmitEdit:N,onCancelEdit:k=>{z(null),T(null),C.setMode(null),h(null)},onDoneEdit:k=>{C.setMode(null)},onNavigate:E,propsContainer:D,borderStrokeFill:a.selection?.strokeFill,borderStrokeWidth:i?.getSelection().getCoords().ranges?.length>1?1:2,alignment:$,getRangeCoords:v});Qe(i.getSelection(),{onChange(k){y(i.getSelection().getCoords().cell)}});const le=r.useCallbackRef(k=>{de(k),I&&P()},[de,W,I]),R=o.useCallback(k=>{de(k)},[de]),te=o.useCallback(k=>{pe(k)},[pe]);return o.useEffect(()=>{const k=n?.getStage();if(k)return k.addEventListener("pointerdown",le),k.addEventListener("dblclick",R),k.addEventListener("keydown",te),()=>{k.removeEventListener("pointerdown",le),k.removeEventListener("dblclick",R),k.removeEventListener("keydown",te)}},[n?.getStage()]),o.useEffect(()=>{const k=C.getMode(),b=k?.key;b==="edit"||b==="enter"?p?k.args?.cancel?W():k.args?.submit?P():T(k.args?.stateAndCoords):F(k.args?.start):I&&W()},[C]),Z(n,t)})),Sr="white",Rr="black",ei=`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='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,ti=`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='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,ni=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i}=e,[a,l]=o.useState(i.getTables().getCount()>0),[f,h]=o.useState(null),[c,C]=o.useState(null),[M,y]=o.useState(null),[p,T]=o.useState(null),I=r.useCallbackRef(()=>{if(i.getTables().getCount()>0){l(!0);const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)}else l(!1),h(null)},[i,n]),z=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const E=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:E});q.length===1&&q[0].select()},[n,i]),D=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const E=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:E});if(q.length===1){const Z=q[0].getRange().getCoords(),F={colStart:Z.colStart,rowStart:E.rowIndex,colEnd:Z.colEnd,rowEnd:E.rowIndex};i.getRange(F).select()}},[n,i]),_=r.useCallbackRef(()=>{if(!a)return;const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)},[i,a,n]);Qe(i?.getSelection(),{onChange(v){C(i.getSelection().getCoords().cell)}}),Qe(M,{onAnyChange(v){I(),_()}}),Qe(p,{onAnyChange(v){_()}}),Qe(i,{onTablesChange(v){I(),_()},onInvalidated(v){I(),_()}});const $=o.useMemo(()=>ge.CommonUtils.debounce(ge.CommonUtils.throttle(_,300),300),[]);o.useEffect(()=>{$()},[n]),o.useEffect(()=>{let v=null;if(f)for(let E=0;E<f.length&&!v;E++){const q=f[E],Z=q.getRange().getCoords();d.CoordUtils.isCellWithinRange(c,Z)&&(v=q)}y(v)},[c,f]);const w=r.useCallbackRef(v=>{let E=null;if(f)for(let q=0;q<f.length;q++){const Z=f[q],F=Z.getRange().getCoords();let P=n.getRangeCoordsBounds(F);const W=n.getRelativePointFromClient(v.clientX,v.clientY),pe=W.x,de=W.y;if(pe>=P.x&&pe<=P.x+P.width&&de>=P.y&&de<=P.y+P.height){const le=n.getViewportSize();pe<=0||de<=0||pe>=le.width||de>=le.height||(E=Z)}}T(E)},[n,f]);if(o.useEffect(()=>{const v=n?.getStage();if(v&&f)return v.addEventListener("mousemove",w),v.addEventListener("mouseleave",w),()=>{v.removeEventListener("mousemove",w),v.removeEventListener("mouseleave",w)}},[f,n?.getStage()]),!n||!f||f.length===0)return null;const N=[];for(let v=0;v<f.length;v++){const E=f[v];if(E.isClosed())continue;const q=E===p,Z=E===M,F=E.getRange().getCoords(),P=n.getRangeCoordsBounds(F);let W;if(q||Z){const pe=E.getStyle().getProperties(),de=pe.headerRow?.fill?.background??pe.wholeTable?.border?.top?.color?.toString();if(de&&i){const le=i.getStyles().parseColor(de);le&&(W=le.toCSS())}W||(W="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}N.push(s.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:P.height,pointerEvents:"all",cursor:ei},onMouseDown:D},`table-select-row-${E.getName()}`)),N.push(s.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:Math.min(16,P.height),pointerEvents:"all",cursor:ti},onMouseDown:z},`table-select-${E.getName()}`)),N.push(s.jsx(gt.Selection,{x:P.x,y:P.y,width:P.width,height:P.height,range:F,strokeWidth:Z?.5:0,stroke:W??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:q?`${W} 0px 0px 1px 1px`:void 0}},`table-outline-${E.getName()}`))}return N})),oi=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,animationTime:a=60}=e,[l,f]=o.useState(null),[h,c]=o.useState(null),C=o.useRef(null),M=r.useCallbackRef(()=>{const D=i.getSelectedCell(),_=D.getSpill()?.getCoords()??null;ge.CoordUtils.isEqualRanges(_,l)||(c(_?{transition:l?"move":"in",bounds:n.getRangeCoordsBounds(_),coords:_}:{transition:"out",bounds:n.getRangeCoordsBounds(l),coords:l}),f(_))},[i,n,l]);o.useEffect(()=>(C.current&&(clearTimeout(C.current),C.current=null),h&&(C.current=setTimeout(()=>{c(null),C.current=null},a)),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[h,a]);const y=o.useMemo(()=>ge.CommonUtils.debounce(ge.CommonUtils.throttle(M,80),80),[]);if(Qe(i?.getSelection(),{onChange(D){y()}}),Qe(i,{onSpillsChange(D){M()},onInvalidated(D){M()}}),!n||!l&&!h)return null;const p=i.getRange(l).getValue()instanceof d.FormulaError.Spill,T=[];let I=h?.bounds??n.getRangeCoordsBounds(l);if(h&&!ge.CommonUtils.isEqualBounds(h.bounds,n.getRangeCoordsBounds(h.coords))&&c(null),I=n.toClipBounds(I,-10),!I)return;const z="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return T.push(s.jsx(gt.Selection,{x:I.x,y:I.y,width:I.width,height:I.height,range:l,strokeWidth:1,stroke:z,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:p?"6 3":void 0,opacity:h?.transition==="out"?0:1,transition:h?.transition?h.transition==="in"||h.transition==="out"?`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:`${z} 0px 0px 4px 0px`}},"spill-outline}")),T})),ri={position:"absolute",top:0,left:0,bottom:0,right:0},Ho=(e,t)=>{const n={...e},i=t?.getNormal().getFont(),a=i?.toCSS(),l={text:{fontFamily:a?.fontFamily,fontSize:i?.getSize()}},f=n.body=ge.CommonUtils.mergeContentful(e.body,l);return n.body=ge.CommonUtils.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},f),n.buttonSurface=ge.CommonUtils.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=ge.CommonUtils.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=ge.CommonUtils.mergeContentful(n.header,l),n.headerSelect=ge.CommonUtils.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=ge.CommonUtils.mergeContentful(n.headerSelect,l),n.headerSelectAll=ge.CommonUtils.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=ge.CommonUtils.mergeContentful(n.headerSelectAll,l),n},li={fireOnModelChange:!1},Vo={},kr=o.memo(o.forwardRef((e,t)=>{const{sheet:n,gridStyle:i=Vo,headersStyle:a=Vo,onSheetContextMenu:l,showColumnHeaders:f,propsColumnHeader:h,showRowHeaders:c,propsRowHeader:C,showScrollbars:M=!0,propsScrollPane:y,onViewportChange:p,commands:T,onRepeatCommandChange:I,overlays:z,renderMovable:D,viewportComponent:_,onElementLoad:$,getCellEditor:w,onFocus:N,onBlur:v,style:E=r.ReactUtils.EmptyCssProperties,onShowTooltip:q,onShowColumnTooltip:Z,onShowRowTooltip:F,onCloseTooltip:P,propsGrid:W,propsCellRender:pe,...de}=e;if(o.useEffect(()=>{d.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[le,R]=o.useReducer(Q=>Q+1,0),[te,{width:k,height:b}]=Wt(),ee=r.useCallbackRef(q,[q]),ne=r.useCallbackRef(Z,[Z]),Re=r.useCallbackRef(F,[F]),Ce=r.useCallbackRef(P,[P]),ye=o.useRef(!1);o.useLayoutEffect(()=>{ye.current=!0},[n]);const Pe=n?.getStyles(),ze=o.useMemo(()=>Ho(i,Pe),[i,Pe]),Ae=o.useMemo(()=>Ho(a,Pe),[a,Pe]),{body:Ie={},buttonSurface:ue={}}=ze,{header:O={},headerSelect:xe={},headerSelectAll:Le={}}=Ae,H=o.useRef(null),[U,he]=o.useState(()=>n?.getView()),ce=(U?.getZoomScale()??100)/100,me=o.useMemo(()=>({vertical:U.isShowColumnGridlines()&&ce>=.4,horizontal:U.isShowRowGridlines()&&ce>=.4}),[U?.isShowColumnGridlines(),U?.isShowRowGridlines(),ce]),Te=o.useMemo(()=>{if(U?.getGridLineColor())return{strokeDasharray:"1,1"}},[U?.getGridLineColor(),ze]),ie=f??U?.isShowColumnHeaders(),qe=c??U?.isShowRowHeaders(),[g,je]=o.useState({width:0,height:0}),Be=o.useMemo(()=>{let Q=40,Me=20;const Ke=n?.getStyles().getNormal().getFont();if(g.width>0&&g.height>0){const Ve=Ke?.toCSS()?.fontFamily??ze.header.text.fontFamily,Ge=Ke?.getSize()??ze.header.text.fontSize,We=d.IFont.getSharedMeasurer()(""+g.height,Math.ceil(Ge*d.IFont.getDeviceScale()),Ve);Q=We.width,Me=We.lineHeight}return{width:Math.round(Q+5),height:Math.round(Me+3)}},[g,ze?.header.text,n]),Ee=qe?ce*Be.width:O.edgeStrokeWidth,u=ie?ce*Be.height:O.edgeStrokeWidth,L=Math.max(k,(n?.getColumnHeaders().getDefaultSize()??Be.width)+Ee+1),K=Math.max(b,(n?.getRowHeaders().getDefaultSize()??Be.height)+u+1),m=o.useRef(new Map),A=o.useRef(null),G=()=>({getColOffset:Q=>n.getColumnHeaders().findOffset(Q),getColIndex:Q=>n.getColumnHeaders().findIndex(Q),getRowOffset:Q=>n.getRowHeaders().findOffset(Q),getRowIndex:Q=>n.getRowHeaders().findIndex(Q)}),[J,re]=o.useState(()=>G()),[x,B]=o.useState(!1),[S,j]=o.useState(null),se=!0,ae=ze.selection?.strokeFill,we=o.useCallback(()=>Mt.current,[]),[Y,fe]=o.useState(),V=r.useCallbackRef(Q=>{fe(Q);const Me=n?n.getView():null;Me&&Me.setTopLeft(Q?{left:Q.left,top:Q.top}:null),p?.(Q)},[n,p]),X=o.useRef(null);o.useEffect(()=>{if(!Y||!n)return;const Q=n.getRangeAtBounds({x:Y.left,y:Y.top,width:Y.width,height:Y.height});X.current?.(),X.current=Q.addListener(()=>{const Me=Q.getCoords();H?.current?.invalidate(Me)})},[Y,n]);const[oe,Fe]=o.useState(()=>n?.getView().getTopLeft()),Ue=r.useCallbackRef(Q=>{const Me=ge.CoordUtils.cellToRange(Q);if(n.isClosed())return Me;const Ke=n.getRange(Me,{ignoreHidden:!0}).getMerges();return Ke.length===0?Me:Ke[0]},[n]),Oe=Q=>{if(!Q||Q.coords.colIndex===0&&Q.coords.rowIndex===0)return null;const Me={};return Q.coords.colIndex>0&&(Me[ge.AnchorLocation.Left]={index:Q.coords.colIndex,scrollOffset:Q.topLeft.left}),Q.coords.rowIndex>0&&(Me[ge.AnchorLocation.Top]={index:Q.coords.rowIndex,scrollOffset:Q.topLeft.top}),Me},[Se,He]=o.useState(()=>Oe(n.getView().getFreezePanes())),ve=r.useEditMode(),De=o.useCallback(()=>H.current,[]),be=r.useCallbackRef(Q=>{ve.setMode(Me=>Me?.key==="edit"?{...Me,args:{...Me.args}}:{key:"edit",args:{stateAndCoords:null,start:Q}})},[]),ke=r.useCallbackRef(()=>Y,[Y]),Ne=wr({sheet:n,commands:T,target:De,onRepeatCommandChange:I,bodyStyle:Ie,onStartEdit:be,getViewport:ke}),[Ze,_e]=o.useState(n.getSelection().isEntire()),[Xe,at]=o.useState(U?.getMovableSelection().length>0),ot=S!==null||Xe,$e=null,[lt,it]=o.useState(!1);o.useEffect(()=>{it(!1)},[n.getProtection()]);const Je=r.useNotifier(),st=r.useCallbackRef(()=>{lt||(it(!0),Je.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:r.NotifierType.Error}))},[Je,lt]),wt=o.useMemo(()=>{const Q=ve.getMode();return Q?.cursor?Q.cursor:null},[$e,ve]),[bt,dt]=o.useState(null),ft=o.useRef(!1),[xt,Un]=o.useState([]),Yt=o.useRef(null),[fn,Pt]=o.useState(ge.TypesUtils.EmptyTopLeft),[jt,It]=o.useState(ge.TypesUtils.EmptyTopLeft);o.useEffect(()=>{Pt({left:oe?.left,top:0})},[oe?.left]),o.useEffect(()=>{It({left:0,top:oe?.top})},[oe?.top]),Qe(n?.getView(),{onFreezeSplitChange:()=>{He(Oe(n.getView().getFreezePanes()))},onTopLeftChange:()=>{Fe(n.getView().getTopLeft())},onMovableSelectionChange:()=>{at(n.getView().getMovableSelection().length>0)}}),Qe(n?.getSelection(),{onChange:()=>{_e(n.getSelection().isEntire())}}),Qe(n,{onViewChange(){he(n.getView()),re(G())},onLayoutChange:()=>{const Q=n.getEntireRange();je({height:Q.getRowCount(),width:Q.getColumnCount()}),re(G())},onStyleChange:()=>{At()},onMovablesChange:()=>{},onInvalidated:()=>{At()}}),Qe(n,{onRequestScrollIntoView:async(Q,Me)=>{if(!Me)return;const Ke={colIndex:Me?.coords?.colStart,rowIndex:Me?.coords?.rowStart};return await H.current?.scrollCellCoordsIntoView(Ke,Me?.scroll),!0},onRequestFocus:()=>ge.CommonUtils.whenFocus(Mt.current)},li);const pt=o.useRef(!1),pn=o.useMemo(()=>{const Q=ge.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&ne?.(Ve)})},32),Me=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:0,rowEnd:g.height,colStart:Ve,colEnd:Ve})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getColOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.x+tt.width,rt.getColOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===ge.AnchorLocation.Left||Tt===ge.AnchorLocation.Center||Tt===ge.AnchorLocation.Right)){const to=ge.CommonUtils.roundAccurately(Ge*ge.CommonUtils.getDPI(),0),bn=ge.CommonUtils.roundAccurately(n?.getColumnWidthAsFontUnit(Ge/ce),2).toFixed(2),no="Width: "+(Ge?bn+" ("+to+" pixels)":"Hidden"),tn=Gn.current.getGridElement().getRelativePointFromClient(0,0),Vt=0-tn.y,xn=0-tn.y+u,oo=tn.x-tt.x;Q({anchor:{x:nt-oo,y:Vt,width:yt-nt,height:xn-Vt},display:no})}const zt=[0,0,0,tt.height],Yn={style:{boxShadow:`0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},Jn={x:nt-1,y:0,width:1,height:tt.height},Qn={style:{boxShadow:`-0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},eo={x:yt-1,y:0,width:1,height:tt.height};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Me(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Me(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Me(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},...h}},[n,h,u,bt]),Bt=o.useMemo(()=>{const Q=ge.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&Re?.(Ve)})},32),Me=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:Ve,rowEnd:Ve,colStart:0,colEnd:g.width})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getRowOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.y+tt.height,rt.getRowOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===ge.AnchorLocation.Top||Tt===ge.AnchorLocation.Center||Tt===ge.AnchorLocation.Bottom)){const to=Math.floor(10*ge.CommonUtils.getDPI())/10,bn=ge.CommonUtils.roundAccurately(Ge*to,0),no=ge.CommonUtils.roundAccurately(bn/ce/(n?.getRowHeaders().getScaleFactor()*ge.CommonUtils.getDPI()),2).toFixed(2),tn="Height: "+(Ge?no+" ("+bn+" pixels)":"Hidden"),Vt=Ht.current.getGridElement().getRelativePointFromClient(0,0),xn=0-Vt.x,oo=0-Vt.x+Ee,gl=Vt.y-tt.y;Q({anchor:{x:xn,y:nt-gl,width:oo-xn,height:yt-nt},display:tn})}const zt=[0,0,tt.width,0],Yn={style:{boxShadow:`0px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},Jn={x:0,y:nt-1,width:tt.width,height:1},Qn={style:{boxShadow:`0px -0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},eo={x:0,y:yt-1,width:tt.width,height:1};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Me(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Me(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Me(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},...C}},[n,C,Ee]),Mt=r.useImperativeElement(t,()=>{const Q=Ke=>{n?.getView()&&n.getView().selectMovables([]),A.current=null,H?.current?.focus(Ke)},Me=async(Ke=null)=>{if(Ke||(Ke=n?.getView().getMovableSelection()[0]),!Ke)return!1;const Ve=Ke.getAnchorCoords();if(!Ve)return!1;const Ge=H.current?.getViewFromCellCoords({colIndex:Ve.colStart,rowIndex:Ve.rowStart});if(!Ge)return!1;const We=Ge.getAnchor();n?.getView().getMovableSelection().indexOf(Ke)===-1&&n?.getView().selectMovables([Ke]);let rt=m.current?.get(We);return rt?.current?(await rt.current.focusMovable(Ke),!0):(A.current={movable:Ke,anchor:We},!0)};return{getGridElement:()=>H.current,getRowHeaderElement:()=>Ht.current,getColumnHeaderElement:()=>Gn.current,rowHeaderHeight:()=>u,colHeaderWidth:()=>Ee,startEdit:be,submitEdit:()=>{ve.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{ve.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:S!==null,focus:Ke=>{n?.getView().getMovableSelection().length>0&&Me()||Q(Ke)},focusSheet:Q,focusMovable:Me,contains:Ke=>H?.current?.contains?.(Ke),invalidate:At,isSheetElement:()=>!0,getSheet:()=>n}},[n]),At=o.useCallback(Q=>{ye.current||(H?.current?.invalidate(Q),R?.())},[]);o.useEffect(()=>{At()},[ze]);const Jt=Ze?Le.edgeStrokeFill:O.fill,Kn=Ze?xe.fill:typeof ze.headerHover=="function"?ze.headerHover(O)?.fill:O.fill,et=o.useMemo(()=>_?s.jsx("div",{className:ct("sheetxl-viewport-overlay",Sl),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:_}):s.jsx(s.Fragment,{}),[_]);let Qt=null;ie&&qe&&(Qt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${u}px`,width:`${Ee}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Q=>{let Me=!Q.ctrlKey;Ne?.getCommand("selectAll")?.execute(!Me||Q.button!==0),Q.nativeEvent.which===r.MouseButtonCodes.Right?l?.({originalEvent:Q,clientX:Q.clientX,clientY:Q.clientY,rowIndex:-1,colIndex:-1}):H.current?.focus()},children:[s.jsx("div",{style:{height:u-5+"px",width:u-5+"px",clipPath:`path('M${u-5} 0 L0 ${u-5} L${u-5} ${u-5} L${u-5} 0 Z')`,borderRight:`2px solid ${Jt}`,borderBottom:`2px solid ${Jt}`,background:`${Kn}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${u}px`,width:`${Ee}px`,boxSizing:"border-box",borderRight:`solid 1px ${O.strokeFill}`,borderBottom:`solid 1px ${O.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const Ot=r.useCallbackRef(({_left:Q,_top:Me})=>{},[]),vn=r.useCallbackRef(Q=>{if(!l)return;const Me=H.current.getViewFromClient(Q.clientX,Q.clientY)?.getCellCoordsFromClient(Q.clientX,Q.clientY);Me&&(l({originalEvent:Q,clientX:Q.clientX,clientY:Q.clientY,rowIndex:Me.rowIndex,colIndex:Me.colIndex}),Q.stopPropagation(),Q.preventDefault())},[l]),ut=r.useCallbackRef(Q=>{if(!(!Q.shiftKey&&(Q.ctrlKey||Q.metaKey)))return;const{deltaY:Me}=Q;return Me>0?Ne.getCommand("sheetZoomOut")?.execute():Me<0&&Ne.getCommand("sheetZoomIn")?.execute(),Me===0},[Ne]);o.useEffect(()=>{Un(null),Yt.current=null,ft.current=!1,dt(null);const Q=n?.getView().getTopLeft();Ot(Q),H.current?.scrollTo(Q),Fe(Q),he(n.getView()),He(Oe(n.getView().getFreezePanes())),re(G()),R()},[n?.getView()]);const vt=o.useCallback((Q,Me)=>n.getRowHeaders().hiddenHeadersAt(Q,Me),[n]),Cn=o.useCallback((Q,Me)=>n.getColumnHeaders().hiddenHeadersAt(Q,Me),[n]),en=r.useCallbackRef(Q=>{const Me=Q.getVisibleRangeCoords();if(!Me)return null;const Ke=[];return n.getRange(Me).forEach((Ve,Ge)=>{const We=Ge.getCoords(),rt=Ge.getCell();(nt=>{if(nt.isEmpty())return!1;const tt=nt.getSpans();if(tt.width>1||tt.height>1||nt.getStyle().hasVisibleStyling()||U.isShowFormulas()&&nt.getFormula()!==null)return!0;const yt=nt.getValue();return yt!==null&&!(!U.isShowZeros()&&yt===0&&nt.getType()===d.ScalarType.Number)})(rt)&&Ke.push({coords:We,value:rt,range:U.isShowFormulas()?null:rt.getExtrusions()})},{ignoreHidden:!0,includeMergeOverflow:!0}),Ke},[n,U.isShowZeros(),U.isShowFormulas(),S]);o.useEffect(()=>{const Q=[];z&&Q.push(...z),bt&&Q.push(...bt),ge.CommonUtils.isEqualArrays(Q,Yt.current)||(Yt.current=Q,Un(Q))},[z,bt,ze]);const Dt=o.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:i?.body?.text?.fill??"black"}}),[ze?.header?.edgeStrokeFill]),$n=r.useCallbackRef(Q=>{Q.isDefaultPrevented()||Q.isPropagationStopped()||(A.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Wn=o.useMemo(()=>{const Q=ve.getMode();return Q?.key==="cut"||Q?.key==="copy"},[ve]),yn=r.useCallbackRef(async Q=>{const Me=ve.getMode();return Q.keyCode===r.KeyCodes.Escape&&Me?(Q.preventDefault(),void ve.setMode(null)):Q.keyCode===r.KeyCodes.Enter&&Wn?(Q.preventDefault(),await Ne?.getCommand("paste")?.execute(),void ve.setMode(null)):void Ne?.dispatchToFocusedCommand(Q)},[Ne,ve]),Ht=o.useRef(null),wn=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Ee+O.edgeStrokeWidth}px`,minWidth:`${Ee+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(jo,{ref:Ht,sheetElement:Mt.current,gridRef:H,freezeStart:Se?.[ge.AnchorLocation.Top],oppositeSize:Ee,containerWidth:Ee,containerHeight:K,sheetHeader:n.getRowHeaders(),gridStyle:Ae,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jt,onSheetContextMenu:l,tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Ee+O.edgeStrokeWidth}px`,minWidth:`${Ee+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2",...Bt?.style},...Bt})}),[Ee,u,K,n,jt,Se?.[ge.AnchorLocation.Top],ze,se,l,O.fill,C]),Gn=o.useRef(null),ll=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(jo,{ref:Gn,sheetElement:Mt.current,gridRef:H,freezeStart:Se?.[ge.AnchorLocation.Left],oppositeSize:u,containerWidth:L,containerHeight:u,sheetHeader:n.getColumnHeaders(),gridStyle:Ae,scrollPoint:fn,onSheetContextMenu:l,...pn,style:{...pn?.style,position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[u,L,n,fn,Se?.[ge.AnchorLocation.Left],ze,O.fill,se,l,h]),il=r.useCallbackRef(Q=>{const{value:Me,key:Ke,...Ve}=Q;let Ge=Me,We=S;if(!We||We.colIndex===Q.coords.colIndex&&We.rowIndex===Q.coords.rowIndex||(We=null),!Ge){const tt=Q.range;if(Ge=n.getRange({rowIndex:tt.rowStart,colIndex:tt.colStart}).getCell(),Ge.isEmpty())return null}let rt=null;Ge.getHyperlink()&&(rt=async tt=>{if(pe?.onLinkMouseDown?.(tt),tt.button===0&&!tt.isDefaultPrevented()){tt.stopPropagation(),tt.preventDefault();try{await Ge.getHyperlink()?.open()}catch(yt){Je.showError?.(yt)}}}),We&&We.colIndex===Q.range.colStart&&We.rowIndex===Q.range.rowStart&&(Ge=Ge.createTemporaryCell({value:null}));const nt=n.getStyles();return o.createElement(ur,{...Ve,key:Ke,bodyStyle:Ie,docTheme:nt.getTheme(),normalStyle:nt.getNormal(),showFormulas:U.isShowFormulas(),showZeros:U.isShowZeros(),onLinkMouseDown:rt,...pe,value:Ge})},[n,J,Ie,S,U?.isShowFormulas(),U.isShowZeros()]),al=o.useCallback(Q=>{const{key:Me,ref:Ke,...Ve}=Q;return[s.jsx(Al,{ref:Ke,getVisibleCells:en,sheet:n,gridStyle:ze,...Ve},`border-${Me}`),s.jsx(ni,{ref:Ke,sheet:n,commands:Ne,...Ve},`table-${Me}`),s.jsx(oi,{ref:Ke,sheet:n,...Ve},`spill-${Me}`),s.jsx(Gl,{ref:Ke,sheet:n,commands:Ne,onShowTooltip:ee,onCloseTooltip:Ce,gridStyle:ze,gridRef:H,isActive:se,...Ve},`selection-${Me}`),s.jsx(Ol,{ref:Ke,sheet:n,commands:Ne,gridStyle:ze,element:we,...Ve},`copy-paste-${Me}`),s.jsx(Jl,{ref:Ke,sheet:n,commands:Ne,target:De,renderMovable:D,propsMovable:{onUnFocus:()=>{Mt.current.focus()}},...Ve},`movable-${Me}`),s.jsx(Ql,{ref:Ke,sheet:n,commands:Ne,gridStyle:ze,getCellEditor:w,showProtectedError:st,setEditingCoords:j,...Ve},`editor-${Me}`)]},[n,H.current,ze,w,Ne,Je]),[Io,sl]=o.useState(!1),cl=o.useMemo(()=>{if(L===0||K===0)return null;const Q=n.getStyles().getNormal(),Me=Q.getFont(),Ke=Q.getFill(),Ve=Q.getBorder(),Ge=Q.getFill().getType()===d.IFill.Type.None;let We=Te,rt=Te;const nt=(yt,Tt,zt)=>zt?{stroke:Ve.getBottom().isNone()?"none":yt.getColor().toRGBA(Ie.darkMode).toString(),...Tt}:Tt;rt=nt(Ve.getBottom(),rt,!Ve.getBottom().isNone()),rt=nt(Ve.getTop(),rt,!Ve.getTop().isNone()),We=nt(Ve.getRight(),We,!Ve.getRight().isNone()),We=nt(Ve.getLeft(),We,!Ve.getLeft().isNone());let tt=U?.getGridLineColor()?.toRGBA(Ie.darkMode).toString()??Ie.strokeFill;return Ge||(rt=nt(Ve.getBottom(),rt,!0),rt=nt(Ve.getTop(),rt,!0),We=nt(Ve.getRight(),We,!0),We=nt(Ve.getLeft(),We,!0)),s.jsx(gt.Grid,{className:"sheetxl-sheet-primary",style:{...ri,...Ke.toCSS(Ie.darkMode),...Me.toCSS(Ie.darkMode,ce),"--sxl-app-color-background":Ie.fill,"--sxl-app-color-shadow":ze.colorShadow,"--sxl-app-color-grey":ze.colorGrey,"--sxl-app-color-button-fill":ue.fill,"--sxl-app-color-button-text":ue.text?.fill,"--sxl-app-color-button-border":ue.edgeStrokeFill,"--sxl-app-color-primary-dark":ze.selection.strokeFill},ref:H,zoom:ce,...W,onFirstRender:yt=>{sl(!0),W?.onFirstRender?.(yt),Ne?.activate()},showGridLines:me,gridLineColor:tt,propsGridLineColumns:We,propsGridLineRows:rt,freezeLeft:Se?.[ge.AnchorLocation.Left],propsFreezeLeft:Dt,freezeTop:Se?.[ge.AnchorLocation.Top],propsFreezeTop:Dt,width:L,height:K,columnCount:g.width,rowCount:g.height,cursor:wt??$e??"cell",clipCells:!0,layout:J,renderCell:il,renderOverlay:al,getCellCoordsAsRangeCoords:Ue,hiddenRowsAt:vt,hiddenColumnsAt:Cn,getVisibleCells:en,onWheelScroll:ut,onPointerDown:$n,onKeyDown:yn,onViewportChange:V,onImmediateScroll:Ot,scrollPoint:oe,propsStage:{onFocus:()=>{Ne?.activate()}},renderOverlays:xt})},[le]);o.useEffect(()=>{ye.current||R()},[J,Se,ce,Ne,oe?.left,oe?.top,Ie,W,L,K,wt,xt,se,$e]);let _n={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};M||(_n={..._n,...E});const dl=o.useMemo(()=>{const Q=n.getStyles().getTheme(),Me=Q.getColorScheme(),Ke=Q.getFontScheme();return{"--sxl-doc-color-dk1":Me.getDk1().toCSS(Ie.darkMode),"--sxl-doc-color-dk2":Me.getDk2().toCSS(Ie.darkMode),"--sxl-doc-color-lt1":Me.getLt1().toCSS(Ie.darkMode),"--sxl-doc-color-lt2":Me.getLt2().toCSS(Ie.darkMode),"--sxl-doc-color-accent1":Me.getAccent1().toCSS(Ie.darkMode),"--sxl-doc-color-accent2":Me.getAccent2().toCSS(Ie.darkMode),"--sxl-doc-color-accent3":Me.getAccent3().toCSS(Ie.darkMode),"--sxl-doc-color-accent4":Me.getAccent4().toCSS(Ie.darkMode),"--sxl-doc-color-accent5":Me.getAccent5().toCSS(Ie.darkMode),"--sxl-doc-color-accent6":Me.getAccent6().toCSS(Ie.darkMode),"--sxl-doc-color-hlink":Me.getHlink().toCSS(Ie.darkMode),"--sxl-doc-color-fol-hlink":Me.getFolHlink().toCSS(Ie.darkMode),"--sxl-doc-font-major":Ke.getMajorFont(),"--sxl-doc-font-minor":Ke.getMinorFont()}},[n.getStyles().getTheme()]),Eo=r.useCallbackRef(Q=>{const{style:Me,...Ke}=Q;return s.jsx(bo,{...Ke,style:{paddingLeft:"4px",paddingRight:"4px",...Me},sheet:n})},[n]);let Zn=s.jsx("div",{style:_n,onTouchStart:()=>{Fo()},onFocus:Q=>{B(!0),N?.(Q)},onBlur:Q=>{B(!1),v?.(Q)},ref:Mt,...de,children:s.jsx("div",{className:ct("sheetxl-sheet",ql),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...dl},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Qt,wn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[ll,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,backgroundColor:Ie.fill},ref:te,onContextMenu:vn,children:[cl,et,s.jsx(Rl,{style:{position:"absolute",right:24,bottom:4},colorLicensee:ze?.selection?.strokeFill,colorCredits:ze?.body?.text?.fill})]})]})]})})});M&&(Zn=s.jsx(r.ScrollPane,{style:{flex:"1 1 100%",overflow:"hidden",background:`${O.fill}`,minHeight:2*Be.height,minWidth:2*Be.width,...E},viewport:Y,touchElement:H.current?.stage,disableTouch:ot,onScrollViewport:Q=>{H.current?.scrollTo(Q)},renderScrollbarHorizontal:Eo,renderScrollbarVertical:Eo,...y,children:Zn})),o.useEffect(()=>{ye.current=!1,R?.(),x&&Mt.current?.focus()},[n]);const[Xn,ul]=o.useState(!1),Fo=r.useCallbackRef(()=>{Xn||ul(!0)},[Xn]);return o.useEffect(()=>{if(Io)return typeof $=="function"&&$(),r.ReactUtils.detectIt().primaryInput==="touch"&&Fo(),()=>{}},[$,Io,Xn]),Zn}));kr.displayName="SheetElement";const Uo="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=",Mr=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,style:a,picture:l,description:f,isDragging:h,view:c,onHide:C,onShow:M,onKeyDownCapture:y,onFocus:p,onBlur:T,loadingPanel:I,...z}=e,[D,_]=o.useState(!1),[$,w]=o.useState(null),[N,v]=o.useState(null),[E,q]=o.useState(null);o.useEffect(()=>{v(null),l.getDetails().then(P=>{_(!1),v(P.asUrl()),P.asSVGText?.()&&q(P.asSVGText())}).catch(P=>{console.warn(P),_(!0),v(Uo),q(null)})},[l]);const Z=r.useImperativeElement(t,()=>({isPictureEditor:()=>!0}),[]),F=o.useMemo(()=>{if(N||E)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:D?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:D?"var(--sxl-app-color-background, white)":void 0,boxShadow:D?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:D?"contain":void 0,opacity:$?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:N,onLoad:()=>{w(!0)},onError:({currentTarget:P})=>{console.log("error"),P.onerror=null,v(Uo),_(!0)},alt:f??`${l.getType()}`})},[$,l,N,E,h]);if(!l.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:h?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...a,width:"100%",height:"100%"},tabIndex:0,...z,onKeyDownCapture:P=>{y?.(P)},ref:Z,children:[$||D?void 0:I,F]})}));Mr.displayName="PictureEditor";const ii=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,chart:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const M=r.useImperativeElement(t,()=>({isChartEditor:()=>!0}),[]),[y,{height:p,width:T}]=Wt();if(!a.isClosed())return s.jsx("div",{...C,ref:Nt([M,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a.getDescription()})})})})),ai="_editable-input_1bqx6_6",si=e=>s.jsx("input",{...e}),Tr=o.memo(o.forwardRef((e,t)=>{const{style:n={},className:i,value:a="",onSubmit:l,onChange:f,onCancel:h,renderInput:c=si,styleHover:C={},dragging:M,maxLength:y,disabled:p=!1,readOnly:T=!1,...I}=e,[z,D]=o.useState(!1),[_,$]=o.useState(!1),[w,N]=o.useState(a);o.useEffect(()=>{N(a)},[a]);const v=o.useRef(null),[E,q]=o.useState(null),Z=r.useNotifier(),F=o.useCallback(function(te){const k=te.message;E!==k&&(Z?.showMessage?.(k,{type:r.NotifierType.Error}),q(k))},[Z,E]),P=o.useCallback(te=>{let k=!1;try{k=l?.(te)??!0}catch(b){F(b)}return k?(v.current=null,$(!1),N(te),k):(setTimeout(()=>{v.current?.focus()},0),k)},[l]),W=r.useCallbackRef(()=>{N(a),v.current=null,$(!1),h?.()},[h,a]),pe=o.useMemo(()=>{if(!_)return null;const te={className:ct(ai),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:y,type:"text",value:w,onFocus:k=>{v.current||(v.current=k.target,setTimeout(()=>{k.target?.select()},0))},onBlur:k=>{v.current&&P(w)},onChange:k=>{_&&N(k.target.value)},onMouseDown:k=>k.stopPropagation(),onKeyDown:k=>k.code==="Escape"?(k.preventDefault(),void W()):k.code==="Enter"?(k.preventDefault(),void P(k.target.value)):void(k.code!=="Tab"?k.stopPropagation():P(k.target.value))};return s.jsx(s.Fragment,{children:c(te)})},[_,w,P,W,c,p]),[de,le]=o.useState();o.useLayoutEffect(()=>{let te=Object.assign({},n);(M||z)&&(te=Object.assign(te,C)),le(te)},[M,z,C,n]),o.useEffect(()=>{pe&&f?.(w)},[pe,f,w]);const R=r.useImperativeElement(t,()=>({startEdit(){p||T||$(!0)},cancel(){W()}}),[]);return s.jsxs("div",{...I,ref:R,style:{flexDirection:"column",display:"flex",...de},className:ct(i),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{p||T||$(!0)},onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",opacity:_?0:1},children:w}),pe]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...C},children:w})]})})),jn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Zt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function xo(e){return"nodeType"in e}function Ct(e){var t,n;return e?Zt(e)?e:xo(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qo(e){const{Document:t}=Ct(e);return e instanceof t}function gn(e){return!Zt(e)&&e instanceof Ct(e).HTMLElement}function Ir(e){return e instanceof Ct(e).SVGElement}function _t(e){return e?Zt(e)?e.document:xo(e)?qo(e)?e:gn(e)||Ir(e)?e.ownerDocument:document:document:document}const Rt=jn?o.useLayoutEffect:o.useEffect;function Bn(e){const t=o.useRef(e);return Rt(()=>{t.current=e}),o.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function cn(e,t){t===void 0&&(t=[e]);const n=o.useRef(e);return Rt(()=>{n.current!==e&&(n.current=e)},t),n}function rn(e,t){const n=o.useRef();return o.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Fn(e){const t=Bn(e),n=o.useRef(null),i=o.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,i]}function An(e){const t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current}let lo={};function hn(e,t){return o.useMemo(()=>{if(t)return t;const n=lo[e]==null?0:lo[e]+1;return lo[e]=n,e+"-"+n},[e,t])}function Er(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>{const h=Object.entries(f);for(const[c,C]of h){const M=l[c];M!=null&&(l[c]=M+e*C)}return l},{...t})}}const $t=Er(1),dn=Er(-1);function On(e){if(!e)return!1;const{KeyboardEvent:t}=Ct(e.target);return t&&e instanceof t}function Dn(e){if((function(t){if(!t)return!1;const{TouchEvent:n}=Ct(t.target);return n&&t instanceof n})(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(t){return"clientX"in t&&"clientY"in t})(e)?{x:e.clientX,y:e.clientY}:null}const Lt=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[Lt.Translate.toString(e),Lt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Ko="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ci(e){return e.matches(Ko)?e:e.querySelector(Ko)}const di={display:"none"};function ui(e){let{id:t,value:n}=e;return o.createElement("div",{id:t,style:di},n)}function gi(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return o.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":i,"aria-atomic":!0},n)}const Fr=o.createContext(null),hi={draggable:`
23
+ The content is not applied.`,icon:"PasteFormats"}),new r.Command("pasteFormulas",v,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied.",icon:"PasteFormulas"}),new r.Command("pasteTranspose",v,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped.",icon:"PasteTranspose"}),new r.Command("pasteLinks",v,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells.",icon:"PasteLinks"})];i.addCommands(E,!0)},[i,e]),o.useEffect(()=>{if(!i)return;const v={disabled:!t.getProtection().isFormatCellsAllowed()};i.getCommand("pasteValues").updateCallback(E=>w.paste({...Ll,...E})).update(v),i.getCommand("pasteFormats").updateCallback((E,q)=>w.paste({...Nl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteFormulas").updateCallback((E,q)=>w.paste({...Pl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteTranspose").updateCallback((E,q)=>w.paste({...jl,description:q.getLabel(),...E})).update(v),i.getCommand("pasteLinks").updateCallback((E,q)=>w.paste({...Bl,description:q.getLabel(),...E})).update(v),i.getCommand("cut").update(v),i.getCommand("paste").update(v)},[t,i]);const N=o.useMemo(()=>{if(!z||!T.current)return;const v=z.key;if(v!=="copy"&&v!=="cut"&&v!=="formatPainter")return;const E=T.current.getItem();if(E.getSource()!==t)return;const q=T.current.isCut?.(),Z=q?M:C,F=q?c:h,P=E.getCoords(),W=P?[P]:null;return W&&W.length!==0?pe=>{const de=[];for(let le=0;le<W.length;le++){const R=W[le],te=pe.toClipBounds(pe.getRangeCoordsBounds(R,{top:0,left:0,right:1,bottom:1}),gt.SELECTION_CLIP_INSETS);te&&(de.push(p({range:R,key:`copy-selection-background-${le}`,x:te.x,y:te.y,width:Math.max(te.width,0),height:Math.max(te.height,0),stroke:Z,strokeWidth:2})),de.push(p({range:R,key:`copy-selection-foreground-${le}`,x:te.x+(te.width<=2?-1:0),y:te.y,width:Math.max(te.width,3),height:Math.max(te.height,3),stroke:F,strokeWidth:2,isAnimatedStroke:!0})))}return de}:null},[z,t,n,h,C,c,M]);return{...w,clipboard:$,overlays:N}},Ol=o.memo(o.forwardRef((e,t)=>{const{view:n,element:i,sheet:a,gridStyle:l,commands:f}=e,h=l.body??{},c=a.getView(),{overlays:C}=br({element:i,sheet:a,sheetView:c,commands:f,copyForegroundColor:l.selection.strokeFill,copyBackgroundColor:h.fill,cutForegroundColor:l.selectionRemove.strokeFill,cutBackgroundColor:h.fill});return Qe(a?.getSelection(),{onChange(M){}}),o.useEffect(()=>{n?.getStage()},[n?.getStage()]),C&&n?C(n):null})),Hl="_sheet-selection_12wyx_5",Vl={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Ul={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Kl={key:"dragCopy",description:"Drag selection to copy cell contents."},$l={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},Bo=(e,t)=>t.ctrlKey&&t.shiftKey?$l:t.ctrlKey?Kl:t.shiftKey?Ul:Vl,Wl={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},Gl=o.memo(o.forwardRef((e,t)=>{const{view:n,commands:i,className:a,onFirstRender:l,onShowTooltip:f,onCloseTooltip:h,sheet:c,gridRef:C,gridStyle:M,isActive:y,...p}=e,T=n?.getBounds(),I=r.useCallbackRef(f,[f]),z=r.useCallbackRef(h,[h]),[D,_]=o.useState(()=>c?.getSelection().getCoords()),$=r.useCallbackRef(H=>{ge.CoordUtils.isEqualSelectionCoords(H,D)||c&&c.getSelection().updateCoords(H)},[c,D]),w=r.useEditMode(),N=o.useRef(null),[v,E]=o.useState(c?.getProtection().isLocked()),[q,Z]=o.useState(c?.getView().getMovableSelection().length>0),F=r.ReactUtils.detectIt().primaryInput==="touch",P=!F&&y,W=w.getMode()?.args?.stateAndCoords?.coords??null,pe=W!==null||q,de=r.useCallbackRef(H=>{const U=ge.CoordUtils.cellToRange(H);if(c.isClosed())return U;const he=c.getRange(U,{ignoreHidden:!0}).getMerges();return he.length===0?U:he[0]},[c]),le=r.useCallbackRef((H,U,he,ce,me,Te)=>{const ie=c.getSelectedRange().getExtended(ce,H).getCoords();switch(ce){case d.IRange.Direction.Up:return ie.rowStart;case d.IRange.Direction.Down:return ie.rowEnd;case d.IRange.Direction.Left:return ie.colStart;case d.IRange.Direction.Right:return ie.colEnd}},[c]),R=r.useCallbackRef(()=>{const H=c.getUsedRange()?.getCoords(),U=c.getRowHeaders().getUsedRange()?.getCoords(),he=c.getColumnHeaders().getUsedRange()?.getCoords();return{...H,colEnd:Math.max(H?.colEnd??0,he?.max??0),rowEnd:Math.max(H?.rowEnd??0,U?.max??0)}},[c]),te=r.useCallbackRef((H,U)=>c.getRowHeaders().hiddenHeadersAt(H,U),[c]),k=r.useCallbackRef((H,U)=>c.getColumnHeaders().hiddenHeadersAt(H,U),[c]),b=r.useCallbackRef(H=>c.getRange(H,{ignoreHidden:!0}).getMerges(),[c]),ee=r.useCallbackRef(H=>{c?.getSelection().setAdjusting(H)},[c]),ne=r.useCallbackRef(async()=>{c?.getSelection().setAdjusting(null),w.getMode()?.key==="formatPainter"&&(await i?.getCommand("pasteFormats")?.execute({}),w.setMode(null))},[w,D,c,i]),Re=o.useMemo(()=>{const H=w.getMode();return H?.key==="cut"||H?.key==="copy"},[w]);Qe(c?.getView(),{onMovableSelectionChange:()=>{Z(c.getView().getMovableSelection().length>0)}}),Qe(c?.getSelection(),{onChange(H){const U=c.getSelection().getCoords();_(U)}}),Qe(c,{onProtectionChange:()=>{E(c.getProtection().isLocked())}});const{body:Ce={}}=M||{},ye=r.useNotifier(),Pe=n.getLayout(),ze=!(P&&D.ranges.length<=1&&W===null&&!v&&(!w.getMode()||Re)),{cursor:Ae,renderOverlay:Ie,onPointerDown:ue}=gt.useSelection({gridRef:C,commands:i,layout:Pe,getCellCoordsAsRangeCoords:de,selection:D,fillHandleBorderColor:Ce.fill,selectionBackgroundColor:y?M.selection.fill:M.selectionInactive.fill,selectionBorderColor:y?M.selection.strokeFill:M.selectionInactive.strokeFill,selectionRemoveBackgroundColor:y?M.selectionRemove.fill:M.selectionInactive.fill,selectionRemoveBorderColor:y?M.selectionRemove.strokeFill:M.selectionInactive.strokeFill,disableFillDrag:ze,disableMoveDrag:F||!(y&&D.ranges.length<=1&&W===null&&!v),disableTouchSelection:pe,onSelectionChange:$,onSelectionDragStart:ee,onSelectionDragEnd:ne,onMoveDragStart:(H,U,he)=>{w.setMode(Bo(0,he))},onMoveDragUpdate:(H,U,he)=>{w.setMode(Bo(0,he))},onMoveDragEnd:(H,U)=>{w.setMode(null)},onMoveDragDone:async(H,U,he)=>{if(ge.CoordUtils.isEqualRanges(H,U))return;const ce=c.getRange(U);if(ye?.showOptions){const g=ce.getDifferences(H);let je=!1;const Be=g.getCount();for(let Ee=0;!je&&Ee<Be;Ee++)je=g.at(Ee).isContentful();if(je&&await ye?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const me=!he.ctrlKey,Te=he.shiftKey,ie=Te?me?"Insert Moved Cells":"Insert Copied Cells":me?"Move Cells":"Copy Cells",qe=await ye?.showBusy?.(ie);try{const g=c.getRange(H);await ce.doBatch(async()=>{Te?await ce.insertFrom(H,{isCut:me,undoRange:g}):await ce.copyFrom(H,{isCut:me,undoRange:g}),g.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0}),ce.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0})},{description:ie,autoSelect:!0})}catch(g){ye?.showError?.(g)}finally{qe?.()}},contentfulCellFinder:le,hiddenRowsAt:te,hiddenColumnsAt:k,mergedRanges:b,getDataCoords:R,canSelectionSpanMergedCells:H=>{const U=c.getRange(H);return U.isEntireColumns()||U.isEntireRows()},onFill:async(H,U)=>{const he="Auto Fill",ce=await ye?.showBusy?.(he);try{await c.doBatch(()=>{c.getRange(H).autoFill(U),c.getRange(U).autoFit({orientations:d.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:he,autoSelect:!0})}catch(me){ye?.showError?.(me)}finally{N.current=null,ce?.()}},onFillPreview:(H,U,he)=>{if(C.current&&I){w.setMode(Wl);try{N.current?.direction!==he&&(N.current=null,c.getRange(H).autoFill(U,{previewOnly:Be=>{N.current={callback:Be,direction:he}}}));const ce=N.current?.callback?.(U);if(!ce||ce.isEmpty())return;const me=ce.toText();if(!me)return;const Te=ge.CoordUtils.cellToRange(ce.getCoords()),ie=n.getRelativePointFromClient(0,0);let qe=0,g=0,je=r.ToolTipPlacement.Bottom;if(he===d.IRange.Direction.Down){qe=Pe.getColOffset(Te.colEnd+1)-ie.x;const Be=Pe.getRowOffset(Te.rowEnd),Ee=Pe.getRowOffset(Te.rowEnd+1);g=Ee-(Ee-Be)/2-ie.y,je=r.ToolTipPlacement.Right}else if(he===d.IRange.Direction.Right){g=Pe.getRowOffset(Te.rowEnd+1)-ie.y;const Be=Pe.getColOffset(Te.colEnd),Ee=Pe.getColOffset(Te.colEnd+1);qe=Ee-(Ee-Be)/2-ie.x,je=r.ToolTipPlacement.Bottom}else if(he===d.IRange.Direction.Up){qe=Pe.getColOffset(Te.colEnd+1)-ie.x;const Be=Pe.getRowOffset(Te.rowStart),Ee=Pe.getRowOffset(Te.rowStart+1);g=Ee-(Ee-Be)/2-ie.y,je=r.ToolTipPlacement.Right}else if(he===d.IRange.Direction.Left){g=Pe.getRowOffset(Te.rowEnd+1)-ie.y;const Be=Pe.getColOffset(Te.colStart),Ee=Pe.getColOffset(Te.colStart+1);qe=Ee-(Ee-Be)/2-ie.x,je=r.ToolTipPlacement.Bottom}I({anchor:{x:qe,y:g},display:me,placement:je})}catch(ce){ye?.showError?.(ce)}}},onFillDone:()=>{N.current=null,w.setMode(null),z?.()}}),O=r.useCallbackRef(H=>{ue(r.ReactUtils.createSyntheticEvent(H))},[ue,W]);o.useEffect(()=>{const H=n?.getStage();if(H)return H.addEventListener("pointerdown",O),()=>{H.removeEventListener("pointerdown",O)}},[n?.getStage()]);const xe=r.useImperativeElement(t,()=>({}),[]),Le=o.useRef(null);return s.jsx("div",{className:ct(a,"sheet-selection",Hl),style:{position:"absolute",width:T?.width,height:T?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:Nt([xe,Le]),...p,children:Ie(n)})})),Sn=Object.freeze({x:0,y:0,width:0,height:0}),_l={fireOnModelChange:!1},Zl=o.memo(o.forwardRef((e,t)=>{const{children:n,view:i,movable:a,onRefLoad:l,onRefUnload:f,onHide:h,onShow:c,onUnFocus:C,isDragging:M,updateFrameBounds:y,dragStart:p,style:T,disabled:I,renderMovable:z,...D}=e,[_,$]=o.useState(Sn),[w,N]=o.useState(null),[v,E]=o.useState(!1),q=o.useRef(null);o.useLayoutEffect(()=>{if(a.isClosed())return;const F=a.getBounds();if(!F)return;const P=i.toViewBounds(F);$(P??Sn),y(P??Sn)},[i?.getBounds()]),Qe(a,{onBoundsChange:F=>{const P=F.getBounds();if(!P)return;const W=i.toViewBounds(P);$(W??Sn),y(W)},onSelectionChange:()=>{const F=ge.CommonUtils.hasFocus(q.current,!0);!v&&!F||a.isSelected()||C()}}),Qe(a,{onRequestFocus:()=>ge.CommonUtils.whenFocus(q.current,!0)},_l),o.useEffect(()=>{const F=q.current;return l(F),()=>{f(F)}},[]);const Z=o.useMemo(()=>{if(!_)return null;let{width:F,height:P}=_;return z({view:i,movable:a,disabled:I,isDragging:M,style:{position:"relative",left:0,top:0,width:F,height:P},onHide:h,onShow:c})},[i,a,_.width,_.height,I,M]);return s.jsx("div",{className:"movable",tabIndex:0,ref:Nt([q,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:_.x,top:_.y,width:_.width,height:_.height,...T},onMouseDown:async F=>{const P=F.shiftKey||F.ctrlKey,W=a.isSelected(),pe=F.currentTarget;P&&W?a.unselect():(W&&!P||await a.select({addToSelection:P}),p(F.nativeEvent,pe),pe.focus())},onFocus:F=>{F.relatedTarget&&!w&&N(F.relatedTarget),E(!0)},onBlur:F=>{w&&!q?.current?.contains(F.relatedTarget)&&N(null),F.relatedTarget&&E(!1)},...D,children:Z})})),Xl="_movable-area_314c6_5",xr=o.memo(o.forwardRef((e,t)=>{const{view:n,movables:i,movablesView:a,renderMovable:l,transactional:f,onUnFocus:h,onFocus:c,disabled:C=!1,disableDrag:M=!1,disableResize:y=!1,className:p,style:T,renderDirections:I=["nw","n","ne","w","e","sw","s","se"],onFirstRender:z,...D}=e,_=n.getBounds(),$=r.useCallbackRef(z,[z]),w=r.useCallbackRef(h,[h]),N=r.useCallbackRef(c,[c]),[v,E]=o.useState([]),[q,Z]=o.useState(!1),[F,P]=o.useState(!1),W=o.useRef(!0),pe=o.useRef(new Map),de=o.useRef(new Map),le=o.useRef(new Map),R=o.useRef(new Map),te=o.useRef(new Map),k=o.useRef({onRequestFocus:m=>(he(m),null)}),b=o.useRef(null),ee=o.useRef(null),ne=o.useRef(null),[Re,Ce]=o.useReducer(m=>m+1,0);o.useLayoutEffect(()=>{Ce()},[n,i]),Qe(i,{onCollectionChange:()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0}),A=te.current;A.forEach(J=>{J()}),A.clear();const G=k.current;for(let J=0;J<m.length;J++){const re=m[J];if(re.isClosed())continue;const x=re.addListeners(G);A.set(re,x)}Ce()},onInvalidated:()=>{Ce()}}),Qe(a,{onMovableSelectionChange(m){Pe(),Ce()}});const ye=o.useCallback((m,A)=>{const G=le.current.get(m);ne.current&&(ne.current.getTargets().forEach(J=>{if(J===G)return J.style.left=A.x+"px",J.style.top=A.y+"px",J.style.width=A.width+"px",void(J.style.height=A.height+"px")}),ne.current.updateRect())},[]),Pe=()=>{const m=[],A=a.getMovableSelection();A.forEach(G=>{const J=le.current.get(G);J&&A.indexOf(G)!==-1&&m.push(J)}),E(G=>ge.CommonUtils.isEqualArrays(G,m)?G:m)},ze=o.useRef(null),Ae=o.useRef(null),Ie=o.useMemo(()=>(Ae.current||(Ae.current=new Promise(m=>{ze.current=m})),Ae.current),[]),ue=o.useRef(null),O=r.useCallbackRef(async(m,A)=>{ue.current=A,await(async()=>!(!await Ie.then()||!ne.current))()&&ue.current===A&&ne.current.dragStart(m,A)},[v]),[xe,Le]=o.useState(!1),H=o.useRef(null),U=o.useRef(null),he=r.useCallbackRef(async(m=null)=>{if(m||(m=a.getMovableSelection()[0]),!m)return w?.(),!1;const A=le.current.get(m);A?(await ge.CommonUtils.whenFocus(A),A.focus(),U.current=A,H.current=null):H.current=m},[a]);o.useEffect(()=>{xe&&v.length>0&&U.current!==v[0]&&he(),W.current&&($?.(),W.current=!1)},[v]);const ce=o.useMemo(()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0});if(m.length===0&&pe.current.size===0)return null;const A=(B,S,j,se=!0)=>{const ae=B.isSelected(),we={tabIndex:j,view:n,movable:B,onRefLoad:Y=>{H.current===B&&(Y.focus(),U.current=Y,H.current=null),le.current.set(B,Y),de.current.set(Y,B),S.rendered=!0,Pe()},onRefUnload:Y=>{le.current.delete(B),de.current.delete(Y),S.rendered=!1,Pe()},onUnFocus:w,onHide:Y=>{S.onHide=Y},onShow:Y=>{S.onShow=Y},isDragging:ae&&(F||q),disabled:C,renderMovable:l,updateFrameBounds:Y=>{ye(B,Y)},dragStart:O,onMouseUp:()=>{if(ue.current=null,ee.current){Z(!1),P(!1);let Y=!1;R.current?.forEach(fe=>{ge.CommonUtils.isEqualBounds(fe.movable.getBounds(),fe.startBounds)||(Y=!0)}),Y?Te():ie()}},style:{opacity:se?q&&ae?.7:void 0:0,zIndex:q&&ae?B.getZIndex()+m.length:void 0,pointerEvents:se?void 0:"none",cursor:F&&ae?"grabbing":C||M?"initial":"move",boxShadow:!ae||F&&!q?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(Zl,{...we},`movable-${B.getUUID()}`)},G=pe.current,J=new Map,re=[];for(let B=0;B<m.length;B++){const S=m[B];if(S.isClosed())continue;let j=G.get(S);j||(j={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(se,ae)=>{if(!ae||ae.shown===!0)return;ae.shown=!0;const we=++ae.visibilityRequestId;requestAnimationFrame(()=>{const Y=pe.current.get(se);Y&&we===ae.visibilityRequestId&&(ae.onShow?.(se),Y.shown=!0)})},doHide:async(se,ae)=>{if(!ae||ae?.shown===!1)return;ae.shown=!1;const we=++ae.visibilityRequestId,Y=await Promise.resolve(ae.onHide?.(se));we===ae.visibilityRequestId&&Y!==!1&&(ae.shown=!1,pe.current.delete(se),Ce())},visibilityRequestId:0}),j.frame=A(S,j,B,!0),re.push(j.frame),j.doShow(S,j),G.delete(S),J.set(S,j)}const x=[];return a.getMovableSelection().forEach(B=>{const S=G.get(B);S&&(S.frame=A(B,S,-1,!1),x.push(S.frame),G.delete(B),J.set(B,S))}),G.forEach((B,S)=>{B.frame=A(S,B,-1,!1),x.push(B.frame),B.doHide(S,B),G.delete(S),J.set(S,B)}),pe.current=J,Pe(),[...x,...re]},[Re,n,l,C,M,y,q,F]),me=r.useCallbackRef((m,A)=>{const G=`${A} ${v.length===1?d.TextUtils.capitalize(de.current?.get(v[0]).getContent().getType()):"Drawings"}`;ee.current&&(console.warn(`Transaction ${ee.current.getDescription()} is being replaced by ${G}`),ee.current.rollback(),ee.current=null),ee.current=f.beginCommit({description:G}),R.current.clear();for(let J=0;J<v.length;J++){const re=v[J],x=de.current?.get(re);x?R.current.set(re,{movable:x,startBounds:n.toViewBounds(x.getBounds())}):console.warn("invalid element",x)}},[f,n,v]),Te=o.useCallback(()=>{if(!ee.current)return;const m=[];R.current?.forEach(A=>{m.push(A.movable)}),ee.current.commit({viewAfter:{view:a,movableSelection:m}}),R.current.clear(),ee.current=null},[]),ie=o.useCallback(()=>{ee.current&&(ee.current.rollback(),ee.current=null)},[]),qe=o.useRef(null);o.useEffect(()=>{qe.current&&(qe.current.onscroll=m=>{m.preventDefault(),m.srcElement.scrollTop=0,m.srcElement.scrollLeft=0})},[qe.current]);const g=r.useImperativeElement(t,()=>({isMovableArea:()=>!0,focusMovable:he,focus:()=>{he()}}),[a]),[je,Be]=o.useState(null),Ee=o.useRef(!1),u=o.useRef(!1),L=o.useRef(!1);o.useEffect(()=>{if(C||v.length===0||L.current||Ee.current)return;if(u.current)return void requestAnimationFrame(()=>{ne.current&&b.current&&ne.current.refTargets.length>0&&(L.current=!0,ze.current?.(!0)),E([...v])});Ee.current=!0;const m=o.lazy(async()=>{try{const A=await Promise.resolve().then(()=>require("./F8ZECny0CwW2OV5X.cjs"));return Ee.current=!1,u.current=!0,E([...v]),A}catch(A){return console.warn(A),ze.current?.(!1),null}});Be(m)},[v,C,M,y]);const K=o.useMemo(()=>!je||C?null:s.jsx(o.Suspense,{children:s.jsx(je,{className:ct({dragging:q||F,resizing:q,moving:F}),container:null,ref:ne,target:ne.current?v:[],draggable:!C&&!M,resizable:!C&&!y,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:I,onResizeStart:m=>{me(m.target,"Resize")},onResize:m=>{if(!ee.current)return m.stopDrag(),void Ce();Z(!0);const A=m.direction[0]!==0&&m.direction[1]!==0;let G=0,J=0;for(let re=0;re<v.length;re++){const x=v[re],B=R.current.get(x),S=de.current.get(x);if(!B||!S){console.warn("invalid element");continue}let j=m.dist[0],se=m.dist[1],ae=m.drag.dist[0],we=m.drag.dist[1],Y=B.startBounds.width,fe=B.startBounds.height;re===0?(G=Y,J=fe):(j*=Y/G,ae*=Y/G,se*=fe/J,we*=fe/J);const V={...B.startBounds};if(V.width=Math.max(0,Y+j),V.height=Math.max(0,fe+se),m.direction[0]===-1&&(V.width=Math.max(0,Math.min(B.startBounds.x+Y,Y-ae))),m.direction[1]===-1&&(V.height=Math.max(0,Math.min(B.startBounds.y+fe,fe-we))),A&&(S.isLockAspectRatio()||m.inputEvent?.shiftKey)){const X=Y/fe,oe=V.width/V.height;oe>X?V.height=V.width/X:oe<X&&(V.width=V.height*X)}m.direction[0]===-1&&(V.x=Math.max(0,Math.min(B.startBounds.x+Y,B.startBounds.x+Y-V.width))),m.direction[1]===-1&&(V.y=Math.min(B.startBounds.y+fe,B.startBounds.y+fe-V.height)),B.movable.setBounds(n.toAbsoluteBounds(V))}},onResizeEnd:m=>{Z(!1),Te()},onDragStart:m=>{me(m.target,"Move")},onDrag:m=>{if(!ee.current)return m.stopDrag(),void Ce();P(!0);for(let A=0;A<v.length;A++){const G=v[A],J=R.current.get(G);J?J.movable.setBounds(n.toAbsoluteBounds({...J.startBounds,x:J.startBounds.x+m.translate[0],y:J.startBounds.y+m.translate[1]})):console.warn("invalid element")}},onDragEnd:m=>{},onMouseUp:m=>{}})}),[Re,je,v,n,C,M,y,q,F]);return s.jsx("div",{className:ct(p,"movable-area",Xl),style:{width:_.width,height:_.height,...T,position:"absolute",overflow:"hidden",willChange:"transform"},ref:Nt([g,qe]),...D,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:_.width,height:_.height},...D,children:s.jsxs("div",{ref:b,style:{position:"absolute",pointerEvents:"auto"},onFocus:m=>{N?.(),Le(!0)},onBlur:m=>{Le(!1)},onKeyDownCapture:m=>{if(m.isDefaultPrevented())return;const A=m.nativeEvent.ctrlKey,G=m.nativeEvent.altKey,J=m.nativeEvent.shiftKey;if(m.which===r.KeyCodes.Escape){const j=a.getMovableSelection();let se=[...j];return v.forEach(ae=>{if(se.length===0)return;const we=de.current.get(ae);let Y=se.indexOf(we);se.splice(Y,1)}),se.length!==j.length&&a.selectMovables(se),se.length===0&&w?.(),void m.preventDefault()}const re=.1,x=j=>{i.updateSelected(se=>{se.setRotation(se.getRotation()+j)},"Rotate")},B=(j,se=!0)=>{i.updateSelected(ae=>{const we=ae.getBounds();let Y=1+j;se||(Y=1/Y);const fe=Math.sqrt(Math.pow(we.width,2)+Math.pow(we.height,2)),V=Math.atan2(we.height,we.width),X=Y*fe;if(X<10)return;const oe=X*Math.cos(V),Fe=X*Math.sin(V),Ue={x:we.x+(we.width-oe)/2,y:we.y+(we.height-Fe)/2,width:oe,height:Fe};ae.setBounds(Ue)},"Resize")},S=j=>{i.updateSelected(se=>{const ae=se.getBounds(),we={x:ae.x+(j.x??0),y:ae.y+(j.y??0),width:ae.width+(j.width??0),height:ae.height+(j.height??0)};se.setBounds(we)},"Nudge")};if(m.which===r.KeyCodes.Delete)i.updateSelected(j=>{j.delete()},"Delete"),m.preventDefault();else if(m.key==="a"&&A){const j=a.getMovableSelection();a.selectMovables(i.getItems(),!0),a.selectMovables(j,!0),m.preventDefault()}else m.key==="ArrowLeft"?(J?B(re,!1):G?x(-10):S({x:A?-10:-1}),m.preventDefault()):m.key==="ArrowRight"?(J?B(re,!0):G?x(10):S({x:A?10:1}),m.preventDefault()):m.key==="ArrowUp"?(J?B(re,!0):S({y:A?-10:-1}),m.preventDefault()):m.key==="ArrowDown"&&(J?B(re,!1):S({y:A?10:1}),m.preventDefault())},children:[ce,K]})})})})),Ut=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,i=0,a=0;for(let l=0;l<e.length;l++){const f=e[l].getBounds();t=Math.min(f.x,t),n=Math.min(f.y,n),i=Math.max(f.x+f.width,i),a=Math.max(f.y+f.height,a)}return{x:t,y:n,width:i-t,height:a-n}},Oo=(e,t=!0)=>{const n=[],i=t?"x":"y",a=t?"y":"x",l=t?"width":"height";let f=0,h=Number.MAX_SAFE_INTEGER,c=0;for(let y=0;y<e.length;y++){const p=e[y],T=p.getBounds();f+=T[l],h=Math.min(T[i],h),c=Math.max(T[i]+T[l],c),n.push({bounds:T,movable:p})}const C=(c-h-f)/(e.length-1);n.sort((y,p)=>{const T=y.bounds[i],I=p.bounds[i];return T!==I?T-I:y.bounds[a]-p.bounds[a]});const M=new Map;M.set(n[0].movable,n[0].bounds);for(let y=1;y<n.length-1;y++){const p=n[y-1].bounds,T={...n[y].bounds};T[i]=p[i]+p[l]+C,n[y].bounds=T,M.set(n[y].movable,T)}return M.set(n[n.length-1].movable,n[n.length-1].bounds),M},qr=e=>{const{movables:t,movablesView:n,transactional:i,commands:a,target:l,onRepeatCommandChange:f}=e,h=r.useNotifier(),c=r.useEditMode();o.useRef(c.getMode()).current=c.getMode();const C=r.useCallbackRef(async(w,N,v=null,E=!0)=>{const q=async()=>{const Z=await Promise.resolve(h?.showBusy?.(w.getLabel()));try{await N();const F=v??w?.getLabel?.();if(f){let P=null;w&&F!==!1&&(P=new r.SimpleCommand(w.getKey(),l,{label:F,description:F},q)),f(P)}Z?.(),E&&c.setMode(null)}catch(F){Z?.(),h?.showError?.(F)}};await q()},[f,h]),[M,y]=o.useReducer(w=>w+1,0),p=r.useCallbackRef((w,N,v)=>{if(!n)return;const E=n.getMovableSelection();if(E.length===0)return;let q="Drawings";if(E.length===1){const F=E[0];q=d.TextUtils.capitalize(F.getContent().getType())??"Drawing"}const Z=`${w.getLabel()} ${q}`;C(w,()=>{let F=null;i&&(F=i.beginCommit(Z));const P=n.getMovableSelection();if(P.length===0)return;const W=v?.(P);for(let pe=0;pe<P.length;pe++){const de=P[pe];N(de,W)}F?.commit()})},[n,i]),[T,I]=o.useState(n.getMovableSelection()[0]??null),[z,D]=o.useState(!T||T?.isProtected()),_=o.useMemo(()=>[new r.Command("moveToFront",l,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",icon:"DrawToFront",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToFront()})}),new r.Command("moveForward",l,{label:"Bring Forward",description:"Move forward one layer in the z order.",icon:"DrawMoveForward",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveForward()})}),new r.Command("moveToBack",l,{label:"Send to Back",description:"Move to the back of all of the other drawings.",icon:"DrawToBack",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToBack()})}),new r.Command("moveBackward",l,{label:"Send Backward",description:"Move backwards one layer in the z order.",icon:"DrawMoveBackward",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveBackward()})}),new r.Command("toggleLockAspectRatio",l,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners.",icon:"DrawAspect"},function(){p(this,w=>{w.setLockAspectRatio(!w.isLockAspectRatio())})}),new r.Command("formatAnchorTypeTwoCell",l,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.TwoCell)})}),new r.Command("formatAnchorTypeOneCell",l,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.OneCell)})}),new r.Command("formatAnchorTypeAbsolute",l,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.Absolute)})}),new r.Command("formatDrawAlignLeft",l,{label:"Align Left",description:"Align the selected drawings to the left.",icon:"DrawAlignLeft"},function(){p(this,(w,N)=>{w.setBounds({x:N.x})},Ut)}),new r.Command("formatDrawAlignCenter",l,{label:"Align Center",description:"Align the selected drawings vertically relative to each other.",icon:"DrawAlignCenter"},function(){p(this,(w,N)=>{w.setBounds({x:(N.width-w.getBounds().width)/2+N.x})},Ut)}),new r.Command("formatDrawAlignRight",l,{label:"Align Right",description:"Align the selected drawings to the right.",icon:"DrawAlignRight"},function(){p(this,(w,N)=>{w.setBounds({x:N.width-w.getBounds().width+N.x})},Ut)}),new r.Command("formatDrawAlignTop",l,{label:"Align Top",description:"Align the selected drawings to the top.",icon:"DrawAlignTop"},function(){p(this,(w,N)=>{w.setBounds({y:N.y})},Ut)}),new r.Command("formatDrawAlignMiddle",l,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other.",icon:"DrawAlignMiddle"},function(){p(this,(w,N)=>{w.setBounds({y:(N.height-w.getBounds().height)/2+N.y})},Ut)}),new r.Command("formatDrawAlignBottom",l,{label:"Align Bottom",description:"Align the selected drawings to the bottom.",icon:"DrawAlignBottom"},function(){p(this,(w,N)=>{w.setBounds({y:N.height-w.getBounds().height+N.y})},Ut)}),new r.Command("formatDrawDistributeHorz",l,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each.",icon:"DrawDistributeHorz"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w))}),new r.Command("formatDrawDistributeVert",l,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each.",icon:"DrawDistributeVert"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w,!1))}),new r.Command("formatDrawFlipHorz",l,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new r.Command("formatDrawFlipVert",l,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new r.Command("formatDrawGroup",l,{label:"Group",description:"Group the selected drawings into a single drawing.",icon:"DrawGroup"}),new r.Command("formatDrawUngroup",l,{label:"Ungroup",description:"Break the group of a drawing into individual drawings.",icon:"DrawUngroup"}),new r.Command("formatDrawSwapShapes",l,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new r.Command("formatDrawSwapShapesHorz",l,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new r.Command("formatDrawSwapShapesVert",l,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[n,T]);o.useEffect(()=>{},[c]);const $=o.useMemo(()=>{let w=null;return w=a?a.createChildGroup(l,"movable",!1):new r.CommandGroup(l,"movable"),w.addCommands(_,!0),w},[a,_]);return Qe(T,{onAnyChange:()=>{$.getCommand("formatAnchorTypeTwoCell").update({state:T?.getAnchorType()===d.IAnchored.Type.TwoCell}),$.getCommand("formatAnchorTypeOneCell").update({state:T?.getAnchorType()===d.IAnchored.Type.OneCell}),$.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===d.IAnchored.Type.Absolute}),$.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===d.IAnchored.Type.Absolute}),$.getCommand("toggleLockAspectRatio").update({state:T?.isLockAspectRatio()})},onProtectedChange:w=>{D(w.isProtected())},onDelete:()=>{}}),Qe(n,{onMovableSelectionChange:()=>{const w=n.getMovableSelection()[0]??null;I(w),D(!w||w.isProtected()),y()}}),Qe(t,{onCollectionChange:()=>{y()}}),o.useEffect(()=>{const w={disabled:z};$.getCommand("formatAnchorTypeTwoCell").update(w),$.getCommand("formatAnchorTypeOneCell").update(w),$.getCommand("formatAnchorTypeAbsolute").update(w),$.getCommand("toggleLockAspectRatio").update(w);const N=t.getCount(),v=n.getMovableSelection(),E=z||N<=1||v.length===0;let q={disabled:E},Z=q;if(!E&&v.length===1){const W=v[0];W.getZIndex()===0&&(q={disabled:!0}),W.getZIndex()===N-1&&(Z={disabled:!0})}$.getCommand("moveToFront").update(Z),$.getCommand("moveForward").update(Z),$.getCommand("moveToBack").update(q),$.getCommand("moveBackward").update(q);const F={disabled:z||v.length<=1};$.getCommand("formatDrawAlignLeft").update(F),$.getCommand("formatDrawAlignCenter").update(F),$.getCommand("formatDrawAlignRight").update(F),$.getCommand("formatDrawAlignTop").update(F),$.getCommand("formatDrawAlignMiddle").update(F),$.getCommand("formatDrawAlignBottom").update(F),$.getCommand("formatDrawFlipHorz").update(F),$.getCommand("formatDrawFlipVert").update(F),$.getCommand("formatDrawGroup").update(F),$.getCommand("formatDrawUngroup").update(F),$.getCommand("formatDrawSwapShapes").update(F),$.getCommand("formatDrawSwapShapesHorz").update(F),$.getCommand("formatDrawSwapShapesVert").update(F);const P={disabled:z||v.length<=2};$.getCommand("formatDrawDistributeHorz").update(P),$.getCommand("formatDrawDistributeVert").update(P)},[M,z,M]),$},Yl=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,description:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const M=r.useImperativeElement(t,()=>({isEmptyFrame:()=>!0}),[]),[y,{height:p,width:T}]=Wt();return s.jsx("div",{...C,ref:Nt([M,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a})})})})),Jl=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,propsMovable:a,renderMovable:l,commands:f,target:h,onRepeatCommandChange:c}=e,C=qr({movables:i.getMovables(),movablesView:i?.getView(),transactional:i,onRepeatCommandChange:c,commands:f,target:h});o.useEffect(()=>{n?.getStage()},[n?.getStage()]);const M=o.useMemo(()=>s.jsx(xr,{ref:t,view:n,movables:i.getMovables(),disableResize:!i.getProtection().isObjectsAllowed(),disableDrag:!i.getProtection().isObjectsAllowed(),movablesView:i.getView(),transactional:i,renderMovable:l,...a,onFocus:()=>{C.activate(),a?.onFocus?.()}},"movable-area"),[i,a,f,C]);return M&&n?M:null})),Ql=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,gridStyle:a,getCellEditor:l,showProtectedError:f,setEditingCoords:h,commands:c}=e,C=r.useEditMode(),[M,y]=o.useState(null),[p,T]=o.useState(null),[I,z]=o.useState(null),[D,_]=o.useState(null),[$,w]=o.useState(null);o.useLayoutEffect(()=>{if(I===null)return _(null),void w(null);const k=()=>{const b=i.getRange(I).getCell(),ee=b.getStyle();let ne,Re=ee.getFill()?.toCSS(a.body.darkMode);Re.background!=="none"&&Re.background!=="transparent"||(Re=i.getStyles().getNormal().getFill().toCSS(a.body.darkMode)),Re.background!=="none"&&Re.background!=="transparent"||(Re={background:a.body.fill}),_({style:Re}),b&&!b.getFormula()&&(ne=b?.getRenderHorizontalAlignment()),w(ne??r.HorizontalAlignment.Left)};return k(),i.getRange(I).addListener(()=>{k()})},[i,I,a?.body]);const N=r.useCallbackRef(()=>{let k=p.editState.dirty??"";if(p.editState.dirty!==void 0){const b=d.TextUtils.clampString(k);try{const ee=p.sheet.getRange(p.coords),ne=`Typing '${b}' into ${ee.toString()}`;return ee.setValue(k,{description:ne,autoFit:!0}),z(null),T(null),C.setMode(null),h(null),!0}catch(ee){throw ge.Notifier.error(new Error(`Unable to enter '${b}'.`,{cause:ee})),ee}}},[i,p]),v=r.useCallbackRef(k=>i.getRange(k).getCell().getExtrusions()??ge.CoordUtils.cellToRange(k),[i]),E=r.useCallbackRef(k=>{let b=d.IRange.Orientation.Row,ee=!1;k!==d.IRange.Direction.Up&&k!==d.IRange.Direction.Down||(b=d.IRange.Orientation.Column),k!==d.IRange.Direction.Left&&k!==d.IRange.Direction.Up||(ee=!0),i.getSelection().traverse(b,ee)},[i]),q=o.useCallback((k,b)=>{if(l)return l(k,b);if(!i)return null;const{ref:ee,...ne}=k;return s.jsx(gr,{ref:ee,...ne,sheet:i,bodyStyle:a?.body,activeCoords:b,commands:c,onChangeEdit:Re=>{const Ce={sheet:i,coords:b,editState:Re};C.setMode(ye=>({...ye,description:Ce.editState.editMode?"Edit":"Enter",args:{...ye?.args,stateAndCoords:Ce}}))},editState:p.editState})},[i,D,l,p,I]),{renderOverlay:Z,startEdit:F,submitEdit:P,cancelEdit:W,onKeyboardEventNative:pe,onPointerEventNative:de}=gt.useKeyboardEditorOverlay({view:n,activeCoords:M,getCellEditor:q,canEdit:()=>{const k=i.getProtection();if(k.isReadOnly())return!1;const b=k.isLocked();return b&&f(),!b},onBeforeStartEdit:k=>{const b=hr(()=>i.getRange(k).getCell()),ee={sheet:i,coords:k,editState:Object.freeze(b)};C.setMode({key:"edit",args:{stateAndCoords:ee}}),T(ee)},onStartEdit:k=>{z(k),h(k)},onSubmitEdit:N,onCancelEdit:k=>{z(null),T(null),C.setMode(null),h(null)},onDoneEdit:k=>{C.setMode(null)},onNavigate:E,propsContainer:D,borderStrokeFill:a.selection?.strokeFill,borderStrokeWidth:i?.getSelection().getCoords().ranges?.length>1?1:2,alignment:$,getRangeCoords:v});Qe(i.getSelection(),{onChange(k){y(i.getSelection().getCoords().cell)}});const le=r.useCallbackRef(k=>{de(k),I&&P()},[de,W,I]),R=o.useCallback(k=>{de(k)},[de]),te=o.useCallback(k=>{pe(k)},[pe]);return o.useEffect(()=>{const k=n?.getStage();if(k)return k.addEventListener("pointerdown",le),k.addEventListener("dblclick",R),k.addEventListener("keydown",te),()=>{k.removeEventListener("pointerdown",le),k.removeEventListener("dblclick",R),k.removeEventListener("keydown",te)}},[n?.getStage()]),o.useEffect(()=>{const k=C.getMode(),b=k?.key;b==="edit"||b==="enter"?p?k.args?.cancel?W():k.args?.submit?P():T(k.args?.stateAndCoords):F(k.args?.start):I&&W()},[C]),Z(n,t)})),Sr="white",Rr="black",ei=`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='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,ti=`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='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,ni=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i}=e,[a,l]=o.useState(i.getTables().getCount()>0),[f,h]=o.useState(null),[c,C]=o.useState(null),[M,y]=o.useState(null),[p,T]=o.useState(null),I=r.useCallbackRef(()=>{if(i.getTables().getCount()>0){l(!0);const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)}else l(!1),h(null)},[i,n]),z=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const E=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:E});q.length===1&&q[0].select()},[n,i]),D=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const E=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:E});if(q.length===1){const Z=q[0].getRange().getCoords(),F={colStart:Z.colStart,rowStart:E.rowIndex,colEnd:Z.colEnd,rowEnd:E.rowIndex};i.getRange(F).select()}},[n,i]),_=r.useCallbackRef(()=>{if(!a)return;const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)},[i,a,n]);Qe(i?.getSelection(),{onChange(v){C(i.getSelection().getCoords().cell)}}),Qe(M,{onAnyChange(v){I(),_()}}),Qe(p,{onAnyChange(v){_()}}),Qe(i,{onTablesChange(v){I(),_()},onInvalidated(v){I(),_()}});const $=o.useMemo(()=>ge.CommonUtils.debounce(ge.CommonUtils.throttle(_,300),300),[]);o.useEffect(()=>{$()},[n]),o.useEffect(()=>{let v=null;if(f)for(let E=0;E<f.length&&!v;E++){const q=f[E],Z=q.getRange().getCoords();d.CoordUtils.isCellWithinRange(c,Z)&&(v=q)}y(v)},[c,f]);const w=r.useCallbackRef(v=>{let E=null;if(f)for(let q=0;q<f.length;q++){const Z=f[q],F=Z.getRange().getCoords();let P=n.getRangeCoordsBounds(F);const W=n.getRelativePointFromClient(v.clientX,v.clientY),pe=W.x,de=W.y;if(pe>=P.x&&pe<=P.x+P.width&&de>=P.y&&de<=P.y+P.height){const le=n.getViewportSize();pe<=0||de<=0||pe>=le.width||de>=le.height||(E=Z)}}T(E)},[n,f]);if(o.useEffect(()=>{const v=n?.getStage();if(v&&f)return v.addEventListener("mousemove",w),v.addEventListener("mouseleave",w),()=>{v.removeEventListener("mousemove",w),v.removeEventListener("mouseleave",w)}},[f,n?.getStage()]),!n||!f||f.length===0)return null;const N=[];for(let v=0;v<f.length;v++){const E=f[v];if(E.isClosed())continue;const q=E===p,Z=E===M,F=E.getRange().getCoords(),P=n.getRangeCoordsBounds(F);let W;if(q||Z){const pe=E.getStyle().getProperties(),de=pe.headerRow?.fill?.background??pe.wholeTable?.border?.top?.color?.toString();if(de&&i){const le=i.getStyles().parseColor(de);le&&(W=le.toCSS())}W||(W="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}N.push(s.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:P.height,pointerEvents:"all",cursor:ei},onMouseDown:D},`table-select-row-${E.getName()}`)),N.push(s.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:Math.min(16,P.height),pointerEvents:"all",cursor:ti},onMouseDown:z},`table-select-${E.getName()}`)),N.push(s.jsx(gt.Selection,{x:P.x,y:P.y,width:P.width,height:P.height,range:F,strokeWidth:Z?.5:0,stroke:W??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:q?`${W} 0px 0px 1px 1px`:void 0}},`table-outline-${E.getName()}`))}return N})),oi=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,animationTime:a=60}=e,[l,f]=o.useState(null),[h,c]=o.useState(null),C=o.useRef(null),M=r.useCallbackRef(()=>{const D=i.getSelectedCell(),_=D.getSpill()?.getCoords()??null;ge.CoordUtils.isEqualRanges(_,l)||(c(_?{transition:l?"move":"in",bounds:n.getRangeCoordsBounds(_),coords:_}:{transition:"out",bounds:n.getRangeCoordsBounds(l),coords:l}),f(_))},[i,n,l]);o.useEffect(()=>(C.current&&(clearTimeout(C.current),C.current=null),h&&(C.current=setTimeout(()=>{c(null),C.current=null},a)),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[h,a]);const y=o.useMemo(()=>ge.CommonUtils.debounce(ge.CommonUtils.throttle(M,80),80),[]);if(Qe(i?.getSelection(),{onChange(D){y()}}),Qe(i,{onSpillsChange(D){M()},onInvalidated(D){M()}}),!n||!l&&!h)return null;const p=i.getRange(l).getValue()instanceof d.FormulaError.Spill,T=[];let I=h?.bounds??n.getRangeCoordsBounds(l);if(h&&!ge.CommonUtils.isEqualBounds(h.bounds,n.getRangeCoordsBounds(h.coords))&&c(null),I=n.toClipBounds(I,-10),!I)return;const z="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return T.push(s.jsx(gt.Selection,{x:I.x,y:I.y,width:I.width,height:I.height,range:l,strokeWidth:1,stroke:z,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:p?"6 3":void 0,opacity:h?.transition==="out"?0:1,transition:h?.transition?h.transition==="in"||h.transition==="out"?`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:`${z} 0px 0px 4px 0px`}},"spill-outline}")),T})),ri={position:"absolute",top:0,left:0,bottom:0,right:0},Ho=(e,t)=>{const n={...e},i=t?.getNormal().getFont(),a=i?.toCSS(),l={text:{fontFamily:a?.fontFamily,fontSize:i?.getSize()}},f=n.body=ge.CommonUtils.mergeContentful(e.body,l);return n.body=ge.CommonUtils.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},f),n.buttonSurface=ge.CommonUtils.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=ge.CommonUtils.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=ge.CommonUtils.mergeContentful(n.header,l),n.headerSelect=ge.CommonUtils.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=ge.CommonUtils.mergeContentful(n.headerSelect,l),n.headerSelectAll=ge.CommonUtils.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=ge.CommonUtils.mergeContentful(n.headerSelectAll,l),n},li={fireOnModelChange:!1},Vo={},kr=o.memo(o.forwardRef((e,t)=>{const{sheet:n,gridStyle:i=Vo,headersStyle:a=Vo,onSheetContextMenu:l,showColumnHeaders:f,propsColumnHeader:h,showRowHeaders:c,propsRowHeader:C,showScrollbars:M=!0,propsScrollPane:y,onViewportChange:p,commands:T,onRepeatCommandChange:I,overlays:z,renderMovable:D,viewportComponent:_,onElementLoad:$,getCellEditor:w,onFocus:N,onBlur:v,style:E=r.ReactUtils.EmptyCssProperties,onShowTooltip:q,onShowColumnTooltip:Z,onShowRowTooltip:F,onCloseTooltip:P,propsGrid:W,propsCellRender:pe,...de}=e;if(o.useEffect(()=>{d.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[le,R]=o.useReducer(Q=>Q+1,0),[te,{width:k,height:b}]=Wt(),ee=r.useCallbackRef(q,[q]),ne=r.useCallbackRef(Z,[Z]),Re=r.useCallbackRef(F,[F]),Ce=r.useCallbackRef(P,[P]),ye=o.useRef(!1);o.useLayoutEffect(()=>{ye.current=!0},[n]);const Pe=n?.getStyles(),ze=o.useMemo(()=>Ho(i,Pe),[i,Pe]),Ae=o.useMemo(()=>Ho(a,Pe),[a,Pe]),{body:Ie={},buttonSurface:ue={}}=ze,{header:O={},headerSelect:xe={},headerSelectAll:Le={}}=Ae,H=o.useRef(null),[U,he]=o.useState(()=>n?.getView()),ce=(U?.getZoomScale()??100)/100,me=o.useMemo(()=>({vertical:U.isShowColumnGridlines()&&ce>=.4,horizontal:U.isShowRowGridlines()&&ce>=.4}),[U?.isShowColumnGridlines(),U?.isShowRowGridlines(),ce]),Te=o.useMemo(()=>{if(U?.getGridLineColor())return{strokeDasharray:"1,1"}},[U?.getGridLineColor(),ze]),ie=f??U?.isShowColumnHeaders(),qe=c??U?.isShowRowHeaders(),[g,je]=o.useState({width:0,height:0}),Be=o.useMemo(()=>{let Q=40,Me=20;const Ke=n?.getStyles().getNormal().getFont();if(g.width>0&&g.height>0){const Ve=Ke?.toCSS()?.fontFamily??ze.header.text.fontFamily,Ge=Ke?.getSize()??ze.header.text.fontSize,We=d.IFont.getSharedMeasurer()(""+g.height,Math.ceil(Ge*d.IFont.getDeviceScale()),Ve);Q=We.width,Me=We.lineHeight}return{width:Math.round(Q+5),height:Math.round(Me+3)}},[g,ze?.header.text,n]),Ee=qe?ce*Be.width:O.edgeStrokeWidth,u=ie?ce*Be.height:O.edgeStrokeWidth,L=Math.max(k,(n?.getColumnHeaders().getDefaultSize()??Be.width)+Ee+1),K=Math.max(b,(n?.getRowHeaders().getDefaultSize()??Be.height)+u+1),m=o.useRef(new Map),A=o.useRef(null),G=()=>({getColOffset:Q=>n.getColumnHeaders().findOffset(Q),getColIndex:Q=>n.getColumnHeaders().findIndex(Q),getRowOffset:Q=>n.getRowHeaders().findOffset(Q),getRowIndex:Q=>n.getRowHeaders().findIndex(Q)}),[J,re]=o.useState(()=>G()),[x,B]=o.useState(!1),[S,j]=o.useState(null),se=!0,ae=ze.selection?.strokeFill,we=o.useCallback(()=>Mt.current,[]),[Y,fe]=o.useState(),V=r.useCallbackRef(Q=>{fe(Q);const Me=n?n.getView():null;Me&&Me.setTopLeft(Q?{left:Q.left,top:Q.top}:null),p?.(Q)},[n,p]),X=o.useRef(null);o.useEffect(()=>{if(!Y||!n)return;const Q=n.getRangeAtBounds({x:Y.left,y:Y.top,width:Y.width,height:Y.height});X.current?.(),X.current=Q.addListener(()=>{const Me=Q.getCoords();H?.current?.invalidate(Me)})},[Y,n]);const[oe,Fe]=o.useState(()=>n?.getView().getTopLeft()),Ue=r.useCallbackRef(Q=>{const Me=ge.CoordUtils.cellToRange(Q);if(n.isClosed())return Me;const Ke=n.getRange(Me,{ignoreHidden:!0}).getMerges();return Ke.length===0?Me:Ke[0]},[n]),Oe=Q=>{if(!Q||Q.coords.colIndex===0&&Q.coords.rowIndex===0)return null;const Me={};return Q.coords.colIndex>0&&(Me[ge.AnchorLocation.Left]={index:Q.coords.colIndex,scrollOffset:Q.topLeft.left}),Q.coords.rowIndex>0&&(Me[ge.AnchorLocation.Top]={index:Q.coords.rowIndex,scrollOffset:Q.topLeft.top}),Me},[Se,He]=o.useState(()=>Oe(n.getView().getFreezePanes())),ve=r.useEditMode(),De=o.useCallback(()=>H.current,[]),be=r.useCallbackRef(Q=>{ve.setMode(Me=>Me?.key==="edit"?{...Me,args:{...Me.args}}:{key:"edit",args:{stateAndCoords:null,start:Q}})},[]),ke=r.useCallbackRef(()=>Y,[Y]),Ne=wr({sheet:n,commands:T,target:De,onRepeatCommandChange:I,bodyStyle:Ie,onStartEdit:be,getViewport:ke}),[Ze,_e]=o.useState(n.getSelection().isEntire()),[Xe,at]=o.useState(U?.getMovableSelection().length>0),ot=S!==null||Xe,$e=null,[lt,it]=o.useState(!1);o.useEffect(()=>{it(!1)},[n.getProtection()]);const Je=r.useNotifier(),st=r.useCallbackRef(()=>{lt||(it(!0),Je.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:r.NotifierType.Error}))},[Je,lt]),wt=o.useMemo(()=>{const Q=ve.getMode();return Q?.cursor?Q.cursor:null},[$e,ve]),[bt,dt]=o.useState(null),ft=o.useRef(!1),[xt,Un]=o.useState([]),Yt=o.useRef(null),[fn,Pt]=o.useState(ge.TypesUtils.EmptyTopLeft),[jt,It]=o.useState(ge.TypesUtils.EmptyTopLeft);o.useEffect(()=>{Pt({left:oe?.left,top:0})},[oe?.left]),o.useEffect(()=>{It({left:0,top:oe?.top})},[oe?.top]),Qe(n?.getView(),{onFreezeSplitChange:()=>{He(Oe(n.getView().getFreezePanes()))},onTopLeftChange:()=>{Fe(n.getView().getTopLeft())},onMovableSelectionChange:()=>{at(n.getView().getMovableSelection().length>0)}}),Qe(n?.getSelection(),{onChange:()=>{_e(n.getSelection().isEntire())}}),Qe(n,{onViewChange(){he(n.getView()),re(G())},onLayoutChange:()=>{const Q=n.getEntireRange();je({height:Q.getRowCount(),width:Q.getColumnCount()}),re(G())},onStyleChange:()=>{At()},onMovablesChange:()=>{},onInvalidated:()=>{At()}}),Qe(n,{onRequestScrollIntoView:async(Q,Me)=>{if(!Me)return;const Ke={colIndex:Me?.coords?.colStart,rowIndex:Me?.coords?.rowStart};return await H.current?.scrollCellCoordsIntoView(Ke,Me?.scroll),!0},onRequestFocus:()=>ge.CommonUtils.whenFocus(Mt.current)},li);const pt=o.useRef(!1),pn=o.useMemo(()=>{const Q=ge.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&ne?.(Ve)})},32),Me=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:0,rowEnd:g.height,colStart:Ve,colEnd:Ve})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getColOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.x+tt.width,rt.getColOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===ge.AnchorLocation.Left||Tt===ge.AnchorLocation.Center||Tt===ge.AnchorLocation.Right)){const to=ge.CommonUtils.roundAccurately(Ge*ge.CommonUtils.getDPI(),0),bn=ge.CommonUtils.roundAccurately(n?.getColumnWidthAsFontUnit(Ge/ce),2).toFixed(2),no="Width: "+(Ge?bn+" ("+to+" pixels)":"Hidden"),tn=Gn.current.getGridElement().getRelativePointFromClient(0,0),Vt=0-tn.y,xn=0-tn.y+u,oo=tn.x-tt.x;Q({anchor:{x:nt-oo,y:Vt,width:yt-nt,height:xn-Vt},display:no})}const zt=[0,0,0,tt.height],Yn={style:{boxShadow:`0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},Jn={x:nt-1,y:0,width:1,height:tt.height},Qn={style:{boxShadow:`-0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},eo={x:yt-1,y:0,width:1,height:tt.height};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Me(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Me(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Me(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},...h}},[n,h,u,bt]),Bt=o.useMemo(()=>{const Q=ge.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&Re?.(Ve)})},32),Me=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:Ve,rowEnd:Ve,colStart:0,colEnd:g.width})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getRowOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.y+tt.height,rt.getRowOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===ge.AnchorLocation.Top||Tt===ge.AnchorLocation.Center||Tt===ge.AnchorLocation.Bottom)){const to=Math.floor(10*ge.CommonUtils.getDPI())/10,bn=ge.CommonUtils.roundAccurately(Ge*to,0),no=ge.CommonUtils.roundAccurately(bn/ce/(n?.getRowHeaders().getScaleFactor()*ge.CommonUtils.getDPI()),2).toFixed(2),tn="Height: "+(Ge?no+" ("+bn+" pixels)":"Hidden"),Vt=Ht.current.getGridElement().getRelativePointFromClient(0,0),xn=0-Vt.x,oo=0-Vt.x+Ee,gl=Vt.y-tt.y;Q({anchor:{x:xn,y:nt-gl,width:oo-xn,height:yt-nt},display:tn})}const zt=[0,0,tt.width,0],Yn={style:{boxShadow:`0px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},Jn={x:0,y:nt-1,width:tt.width,height:1},Qn={style:{boxShadow:`0px -0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:ae}},eo={x:0,y:yt-1,width:tt.width,height:1};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Me(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Me(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Me(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>Ce?.()),ft.current=!1,dt(null)},...C}},[n,C,Ee]),Mt=r.useImperativeElement(t,()=>{const Q=Ke=>{n?.getView()&&n.getView().selectMovables([]),A.current=null,H?.current?.focus(Ke)},Me=async(Ke=null)=>{if(Ke||(Ke=n?.getView().getMovableSelection()[0]),!Ke)return!1;const Ve=Ke.getAnchorCoords();if(!Ve)return!1;const Ge=H.current?.getViewFromCellCoords({colIndex:Ve.colStart,rowIndex:Ve.rowStart});if(!Ge)return!1;const We=Ge.getAnchor();n?.getView().getMovableSelection().indexOf(Ke)===-1&&n?.getView().selectMovables([Ke]);let rt=m.current?.get(We);return rt?.current?(await rt.current.focusMovable(Ke),!0):(A.current={movable:Ke,anchor:We},!0)};return{getGridElement:()=>H.current,getRowHeaderElement:()=>Ht.current,getColumnHeaderElement:()=>Gn.current,rowHeaderHeight:()=>u,colHeaderWidth:()=>Ee,startEdit:be,submitEdit:()=>{ve.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{ve.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:S!==null,focus:Ke=>{n?.getView().getMovableSelection().length>0&&Me()||Q(Ke)},focusSheet:Q,focusMovable:Me,contains:Ke=>H?.current?.contains?.(Ke),invalidate:At,isSheetElement:()=>!0,getSheet:()=>n}},[n]),At=o.useCallback(Q=>{ye.current||(H?.current?.invalidate(Q),R?.())},[]);o.useEffect(()=>{At()},[ze]);const Jt=Ze?Le.edgeStrokeFill:O.fill,Kn=Ze?xe.fill:typeof ze.headerHover=="function"?ze.headerHover(O)?.fill:O.fill,et=o.useMemo(()=>_?s.jsx("div",{className:ct("sheetxl-viewport-overlay",Sl),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:_}):s.jsx(s.Fragment,{}),[_]);let Qt=null;ie&&qe&&(Qt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${u}px`,width:`${Ee}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Q=>{let Me=!Q.ctrlKey;Ne?.getCommand("selectAll")?.execute(!Me||Q.button!==0),Q.nativeEvent.which===r.MouseButtonCodes.Right?l?.({originalEvent:Q,clientX:Q.clientX,clientY:Q.clientY,rowIndex:-1,colIndex:-1}):H.current?.focus()},children:[s.jsx("div",{style:{height:u-5+"px",width:u-5+"px",clipPath:`path('M${u-5} 0 L0 ${u-5} L${u-5} ${u-5} L${u-5} 0 Z')`,borderRight:`2px solid ${Jt}`,borderBottom:`2px solid ${Jt}`,background:`${Kn}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${u}px`,width:`${Ee}px`,boxSizing:"border-box",borderRight:`solid 1px ${O.strokeFill}`,borderBottom:`solid 1px ${O.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const Ot=r.useCallbackRef(({_left:Q,_top:Me})=>{},[]),vn=r.useCallbackRef(Q=>{if(!l)return;const Me=H.current.getViewFromClient(Q.clientX,Q.clientY)?.getCellCoordsFromClient(Q.clientX,Q.clientY);Me&&(l({originalEvent:Q,clientX:Q.clientX,clientY:Q.clientY,rowIndex:Me.rowIndex,colIndex:Me.colIndex}),Q.stopPropagation(),Q.preventDefault())},[l]),ut=r.useCallbackRef(Q=>{if(!(!Q.shiftKey&&(Q.ctrlKey||Q.metaKey)))return;const{deltaY:Me}=Q;return Me>0?Ne.getCommand("sheetZoomOut")?.execute():Me<0&&Ne.getCommand("sheetZoomIn")?.execute(),Me===0},[Ne]);o.useEffect(()=>{Un(null),Yt.current=null,ft.current=!1,dt(null);const Q=n?.getView().getTopLeft();Ot(Q),H.current?.scrollTo(Q),Fe(Q),he(n.getView()),He(Oe(n.getView().getFreezePanes())),re(G()),R()},[n?.getView()]);const vt=o.useCallback((Q,Me)=>n.getRowHeaders().hiddenHeadersAt(Q,Me),[n]),Cn=o.useCallback((Q,Me)=>n.getColumnHeaders().hiddenHeadersAt(Q,Me),[n]),en=r.useCallbackRef(Q=>{const Me=Q.getVisibleRangeCoords();if(!Me)return null;const Ke=[];return n.getRange(Me).forEach((Ve,Ge)=>{const We=Ge.getCoords(),rt=Ge.getCell();(nt=>{if(nt.isEmpty())return!1;const tt=nt.getSpans();if(tt.width>1||tt.height>1||nt.getStyle().hasVisibleStyling()||U.isShowFormulas()&&nt.getFormula()!==null)return!0;const yt=nt.getValue();return yt!==null&&!(!U.isShowZeros()&&yt===0&&nt.getType()===d.ScalarType.Number)})(rt)&&Ke.push({coords:We,value:rt,range:U.isShowFormulas()?null:rt.getExtrusions()})},{ignoreHidden:!0,includeMergeOverflow:!0}),Ke},[n,U.isShowZeros(),U.isShowFormulas(),S]);o.useEffect(()=>{const Q=[];z&&Q.push(...z),bt&&Q.push(...bt),ge.CommonUtils.isEqualArrays(Q,Yt.current)||(Yt.current=Q,Un(Q))},[z,bt,ze]);const Dt=o.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:i?.body?.text?.fill??"black"}}),[ze?.header?.edgeStrokeFill]),$n=r.useCallbackRef(Q=>{Q.isDefaultPrevented()||Q.isPropagationStopped()||(A.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Wn=o.useMemo(()=>{const Q=ve.getMode();return Q?.key==="cut"||Q?.key==="copy"},[ve]),yn=r.useCallbackRef(async Q=>{const Me=ve.getMode();return Q.keyCode===r.KeyCodes.Escape&&Me?(Q.preventDefault(),void ve.setMode(null)):Q.keyCode===r.KeyCodes.Enter&&Wn?(Q.preventDefault(),await Ne?.getCommand("paste")?.execute(),void ve.setMode(null)):void Ne?.dispatchToFocusedCommand(Q)},[Ne,ve]),Ht=o.useRef(null),wn=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Ee+O.edgeStrokeWidth}px`,minWidth:`${Ee+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(jo,{ref:Ht,sheetElement:Mt.current,gridRef:H,freezeStart:Se?.[ge.AnchorLocation.Top],oppositeSize:Ee,containerWidth:Ee,containerHeight:K,sheetHeader:n.getRowHeaders(),gridStyle:Ae,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jt,onSheetContextMenu:l,tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Ee+O.edgeStrokeWidth}px`,minWidth:`${Ee+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2",...Bt?.style},...Bt})}),[Ee,u,K,n,jt,Se?.[ge.AnchorLocation.Top],ze,se,l,O.fill,C]),Gn=o.useRef(null),ll=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(jo,{ref:Gn,sheetElement:Mt.current,gridRef:H,freezeStart:Se?.[ge.AnchorLocation.Left],oppositeSize:u,containerWidth:L,containerHeight:u,sheetHeader:n.getColumnHeaders(),gridStyle:Ae,scrollPoint:fn,onSheetContextMenu:l,...pn,style:{...pn?.style,position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[u,L,n,fn,Se?.[ge.AnchorLocation.Left],ze,O.fill,se,l,h]),il=r.useCallbackRef(Q=>{const{value:Me,key:Ke,...Ve}=Q;let Ge=Me,We=S;if(!We||We.colIndex===Q.coords.colIndex&&We.rowIndex===Q.coords.rowIndex||(We=null),!Ge){const tt=Q.range;if(Ge=n.getRange({rowIndex:tt.rowStart,colIndex:tt.colStart}).getCell(),Ge.isEmpty())return null}let rt=null;Ge.getHyperlink()&&(rt=async tt=>{if(pe?.onLinkMouseDown?.(tt),tt.button===0&&!tt.isDefaultPrevented()){tt.stopPropagation(),tt.preventDefault();try{await Ge.getHyperlink()?.open()}catch(yt){Je.showError?.(yt)}}}),We&&We.colIndex===Q.range.colStart&&We.rowIndex===Q.range.rowStart&&(Ge=Ge.createTemporaryCell({value:null}));const nt=n.getStyles();return o.createElement(ur,{...Ve,key:Ke,bodyStyle:Ie,docTheme:nt.getTheme(),normalStyle:nt.getNormal(),showFormulas:U.isShowFormulas(),showZeros:U.isShowZeros(),onLinkMouseDown:rt,...pe,value:Ge})},[n,J,Ie,S,U?.isShowFormulas(),U.isShowZeros()]),al=o.useCallback(Q=>{const{key:Me,ref:Ke,...Ve}=Q;return[s.jsx(Al,{ref:Ke,getVisibleCells:en,sheet:n,gridStyle:ze,...Ve},`border-${Me}`),s.jsx(ni,{ref:Ke,sheet:n,commands:Ne,...Ve},`table-${Me}`),s.jsx(oi,{ref:Ke,sheet:n,...Ve},`spill-${Me}`),s.jsx(Gl,{ref:Ke,sheet:n,commands:Ne,onShowTooltip:ee,onCloseTooltip:Ce,gridStyle:ze,gridRef:H,isActive:se,...Ve},`selection-${Me}`),s.jsx(Ol,{ref:Ke,sheet:n,commands:Ne,gridStyle:ze,element:we,...Ve},`copy-paste-${Me}`),s.jsx(Jl,{ref:Ke,sheet:n,commands:Ne,target:De,renderMovable:D,propsMovable:{onUnFocus:()=>{Mt.current.focus()}},...Ve},`movable-${Me}`),s.jsx(Ql,{ref:Ke,sheet:n,commands:Ne,gridStyle:ze,getCellEditor:w,showProtectedError:st,setEditingCoords:j,...Ve},`editor-${Me}`)]},[n,H.current,ze,w,Ne,Je]),[Io,sl]=o.useState(!1),cl=o.useMemo(()=>{if(L===0||K===0)return null;const Q=n.getStyles().getNormal(),Me=Q.getFont(),Ke=Q.getFill(),Ve=Q.getBorder(),Ge=Q.getFill().getType()===d.IFill.Type.None;let We=Te,rt=Te;const nt=(yt,Tt,zt)=>zt?{stroke:Ve.getBottom().isNone()?"none":yt.getColor().toRGBA(Ie.darkMode).toString(),...Tt}:Tt;rt=nt(Ve.getBottom(),rt,!Ve.getBottom().isNone()),rt=nt(Ve.getTop(),rt,!Ve.getTop().isNone()),We=nt(Ve.getRight(),We,!Ve.getRight().isNone()),We=nt(Ve.getLeft(),We,!Ve.getLeft().isNone());let tt=U?.getGridLineColor()?.toRGBA(Ie.darkMode).toString()??Ie.strokeFill;return Ge||(rt=nt(Ve.getBottom(),rt,!0),rt=nt(Ve.getTop(),rt,!0),We=nt(Ve.getRight(),We,!0),We=nt(Ve.getLeft(),We,!0)),s.jsx(gt.Grid,{className:"sheetxl-sheet-primary",style:{...ri,...Ke.toCSS(Ie.darkMode),...Me.toCSS(Ie.darkMode,ce),"--sxl-app-color-background":Ie.fill,"--sxl-app-color-shadow":ze.colorShadow,"--sxl-app-color-grey":ze.colorGrey,"--sxl-app-color-button-fill":ue.fill,"--sxl-app-color-button-text":ue.text?.fill,"--sxl-app-color-button-border":ue.edgeStrokeFill,"--sxl-app-color-primary-dark":ze.selection.strokeFill},ref:H,zoom:ce,...W,onFirstRender:yt=>{sl(!0),W?.onFirstRender?.(yt),Ne?.activate()},showGridLines:me,gridLineColor:tt,propsGridLineColumns:We,propsGridLineRows:rt,freezeLeft:Se?.[ge.AnchorLocation.Left],propsFreezeLeft:Dt,freezeTop:Se?.[ge.AnchorLocation.Top],propsFreezeTop:Dt,width:L,height:K,columnCount:g.width,rowCount:g.height,cursor:wt??$e??"cell",clipCells:!0,layout:J,renderCell:il,renderOverlay:al,getCellCoordsAsRangeCoords:Ue,hiddenRowsAt:vt,hiddenColumnsAt:Cn,getVisibleCells:en,onWheelScroll:ut,onPointerDown:$n,onKeyDown:yn,onViewportChange:V,onImmediateScroll:Ot,scrollPoint:oe,propsStage:{onFocus:()=>{Ne?.activate()}},renderOverlays:xt})},[le]);o.useEffect(()=>{ye.current||R()},[J,Se,ce,Ne,oe?.left,oe?.top,Ie,W,L,K,wt,xt,se,$e]);let _n={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};M||(_n={..._n,...E});const dl=o.useMemo(()=>{const Q=n.getStyles().getTheme(),Me=Q.getColorScheme(),Ke=Q.getFontScheme();return{"--sxl-doc-color-dk1":Me.getDk1().toCSS(Ie.darkMode),"--sxl-doc-color-dk2":Me.getDk2().toCSS(Ie.darkMode),"--sxl-doc-color-lt1":Me.getLt1().toCSS(Ie.darkMode),"--sxl-doc-color-lt2":Me.getLt2().toCSS(Ie.darkMode),"--sxl-doc-color-accent1":Me.getAccent1().toCSS(Ie.darkMode),"--sxl-doc-color-accent2":Me.getAccent2().toCSS(Ie.darkMode),"--sxl-doc-color-accent3":Me.getAccent3().toCSS(Ie.darkMode),"--sxl-doc-color-accent4":Me.getAccent4().toCSS(Ie.darkMode),"--sxl-doc-color-accent5":Me.getAccent5().toCSS(Ie.darkMode),"--sxl-doc-color-accent6":Me.getAccent6().toCSS(Ie.darkMode),"--sxl-doc-color-hlink":Me.getHlink().toCSS(Ie.darkMode),"--sxl-doc-color-fol-hlink":Me.getFolHlink().toCSS(Ie.darkMode),"--sxl-doc-font-major":Ke.getMajorFont(),"--sxl-doc-font-minor":Ke.getMinorFont()}},[n.getStyles().getTheme()]),Eo=r.useCallbackRef(Q=>{const{style:Me,...Ke}=Q;return s.jsx(bo,{...Ke,style:{paddingLeft:"4px",paddingRight:"4px",...Me},sheet:n})},[n]);let Zn=s.jsx("div",{style:_n,onTouchStart:()=>{Fo()},onFocus:Q=>{B(!0),N?.(Q)},onBlur:Q=>{B(!1),v?.(Q)},ref:Mt,...de,children:s.jsx("div",{className:ct("sheetxl-sheet",ql),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...dl},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Qt,wn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[ll,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,backgroundColor:Ie.fill},ref:te,onContextMenu:vn,children:[cl,et,s.jsx(Rl,{style:{position:"absolute",right:24,bottom:4},colorLicensee:ze?.selection?.strokeFill,colorCredits:ze?.body?.text?.fill})]})]})]})})});M&&(Zn=s.jsx(r.ScrollPane,{style:{flex:"1 1 100%",overflow:"hidden",background:`${O.fill}`,minHeight:2*Be.height,minWidth:2*Be.width,...E},viewport:Y,touchElement:H.current?.stage,disableTouch:ot,onScrollViewport:Q=>{H.current?.scrollTo(Q)},renderScrollbarHorizontal:Eo,renderScrollbarVertical:Eo,...y,children:Zn})),o.useEffect(()=>{ye.current=!1,R?.(),x&&Mt.current?.focus()},[n]);const[Xn,ul]=o.useState(!1),Fo=r.useCallbackRef(()=>{Xn||ul(!0)},[Xn]);return o.useEffect(()=>{if(Io)return typeof $=="function"&&$(),r.ReactUtils.detectIt().primaryInput==="touch"&&Fo(),()=>{}},[$,Io,Xn]),Zn}));kr.displayName="SheetElement";const Uo="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=",Mr=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,style:a,picture:l,description:f,isDragging:h,view:c,onHide:C,onShow:M,onKeyDownCapture:y,onFocus:p,onBlur:T,loadingPanel:I,...z}=e,[D,_]=o.useState(!1),[$,w]=o.useState(null),[N,v]=o.useState(null),[E,q]=o.useState(null);o.useEffect(()=>{v(null),l.getDetails().then(P=>{_(!1),v(P.asUrl()),P.asSVGText?.()&&q(P.asSVGText())}).catch(P=>{console.warn(P),_(!0),v(Uo),q(null)})},[l]);const Z=r.useImperativeElement(t,()=>({isPictureEditor:()=>!0}),[]),F=o.useMemo(()=>{if(N||E)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:D?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:D?"var(--sxl-app-color-background, white)":void 0,boxShadow:D?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:D?"contain":void 0,opacity:$?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:N,onLoad:()=>{w(!0)},onError:({currentTarget:P})=>{console.log("error"),P.onerror=null,v(Uo),_(!0)},alt:f??`${l.getType()}`})},[$,l,N,E,h]);if(!l.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:h?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...a,width:"100%",height:"100%"},tabIndex:0,...z,onKeyDownCapture:P=>{y?.(P)},ref:Z,children:[$||D?void 0:I,F]})}));Mr.displayName="PictureEditor";const ii=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,chart:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const M=r.useImperativeElement(t,()=>({isChartEditor:()=>!0}),[]),[y,{height:p,width:T}]=Wt();if(!a.isClosed())return s.jsx("div",{...C,ref:Nt([M,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a.getDescription()})})})})),ai="_editable-input_1bqx6_6",si=e=>s.jsx("input",{...e}),Tr=o.memo(o.forwardRef((e,t)=>{const{style:n={},className:i,value:a="",onSubmit:l,onChange:f,onCancel:h,renderInput:c=si,styleHover:C={},dragging:M,maxLength:y,disabled:p=!1,readOnly:T=!1,...I}=e,[z,D]=o.useState(!1),[_,$]=o.useState(!1),[w,N]=o.useState(a);o.useEffect(()=>{N(a)},[a]);const v=o.useRef(null),[E,q]=o.useState(null),Z=r.useNotifier(),F=o.useCallback(function(te){const k=te.message;E!==k&&(Z?.showMessage?.(k,{type:r.NotifierType.Error}),q(k))},[Z,E]),P=o.useCallback(te=>{let k=!1;try{k=l?.(te)??!0}catch(b){F(b)}return k?(v.current=null,$(!1),N(te),k):(setTimeout(()=>{v.current?.focus()},0),k)},[l]),W=r.useCallbackRef(()=>{N(a),v.current=null,$(!1),h?.()},[h,a]),pe=o.useMemo(()=>{if(!_)return null;const te={className:ct(ai),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:y,type:"text",value:w,onFocus:k=>{v.current||(v.current=k.target,setTimeout(()=>{k.target?.select()},0))},onBlur:k=>{v.current&&P(w)},onChange:k=>{_&&N(k.target.value)},onMouseDown:k=>k.stopPropagation(),onKeyDown:k=>k.code==="Escape"?(k.preventDefault(),void W()):k.code==="Enter"?(k.preventDefault(),void P(k.target.value)):void(k.code!=="Tab"?k.stopPropagation():P(k.target.value))};return s.jsx(s.Fragment,{children:c(te)})},[_,w,P,W,c,p]),[de,le]=o.useState();o.useLayoutEffect(()=>{let te=Object.assign({},n);(M||z)&&(te=Object.assign(te,C)),le(te)},[M,z,C,n]),o.useEffect(()=>{pe&&f?.(w)},[pe,f,w]);const R=r.useImperativeElement(t,()=>({startEdit(){p||T||$(!0)},cancel(){W()}}),[]);return s.jsxs("div",{...I,ref:R,style:{flexDirection:"column",display:"flex",...de},className:ct(i),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{p||T||$(!0)},onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",opacity:_?0:1},children:w}),pe]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...C},children:w})]})})),jn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Zt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function xo(e){return"nodeType"in e}function Ct(e){var t,n;return e?Zt(e)?e:xo(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qo(e){const{Document:t}=Ct(e);return e instanceof t}function gn(e){return!Zt(e)&&e instanceof Ct(e).HTMLElement}function Ir(e){return e instanceof Ct(e).SVGElement}function _t(e){return e?Zt(e)?e.document:xo(e)?qo(e)?e:gn(e)||Ir(e)?e.ownerDocument:document:document:document}const Rt=jn?o.useLayoutEffect:o.useEffect;function Bn(e){const t=o.useRef(e);return Rt(()=>{t.current=e}),o.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function cn(e,t){t===void 0&&(t=[e]);const n=o.useRef(e);return Rt(()=>{n.current!==e&&(n.current=e)},t),n}function rn(e,t){const n=o.useRef();return o.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Fn(e){const t=Bn(e),n=o.useRef(null),i=o.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,i]}function An(e){const t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current}let lo={};function hn(e,t){return o.useMemo(()=>{if(t)return t;const n=lo[e]==null?0:lo[e]+1;return lo[e]=n,e+"-"+n},[e,t])}function Er(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>{const h=Object.entries(f);for(const[c,C]of h){const M=l[c];M!=null&&(l[c]=M+e*C)}return l},{...t})}}const $t=Er(1),dn=Er(-1);function On(e){if(!e)return!1;const{KeyboardEvent:t}=Ct(e.target);return t&&e instanceof t}function Dn(e){if((function(t){if(!t)return!1;const{TouchEvent:n}=Ct(t.target);return n&&t instanceof n})(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(t){return"clientX"in t&&"clientY"in t})(e)?{x:e.clientX,y:e.clientY}:null}const Lt=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[Lt.Translate.toString(e),Lt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Ko="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ci(e){return e.matches(Ko)?e:e.querySelector(Ko)}const di={display:"none"};function ui(e){let{id:t,value:n}=e;return o.createElement("div",{id:t,style:di},n)}function gi(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return o.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":i,"aria-atomic":!0},n)}const Fr=o.createContext(null),hi={draggable:`
24
24
  To pick up a draggable item, press the space bar.
25
25
  While dragging, use the arrow keys to move the item.
26
26
  Press space again to drop the item in its new position, or press escape to cancel.
27
- `},mi={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 fi(e){let{announcements:t=mi,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=hi}=e;const{announce:l,announcement:f}=(function(){const[y,p]=o.useState("");return{announce:o.useCallback(T=>{T!=null&&p(T)},[]),announcement:y}})(),h=hn("DndLiveRegion"),[c,C]=o.useState(!1);if(o.useEffect(()=>{C(!0)},[]),(function(y){const p=o.useContext(Fr);o.useEffect(()=>{if(!p)throw new Error("useDndMonitor must be used within a children of <DndContext>");return p(y)},[y,p])})(o.useMemo(()=>({onDragStart(y){let{active:p}=y;l(t.onDragStart({active:p}))},onDragMove(y){let{active:p,over:T}=y;t.onDragMove&&l(t.onDragMove({active:p,over:T}))},onDragOver(y){let{active:p,over:T}=y;l(t.onDragOver({active:p,over:T}))},onDragEnd(y){let{active:p,over:T}=y;l(t.onDragEnd({active:p,over:T}))},onDragCancel(y){let{active:p,over:T}=y;l(t.onDragCancel({active:p,over:T}))}}),[l,t])),!c)return null;const M=o.createElement(o.Fragment,null,o.createElement(ui,{id:i,value:a.draggable}),o.createElement(gi,{id:h,announcement:f}));return n?Kt.createPortal(M,n):M}var ht;function zn(){}function io(e,t){return o.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ht||(ht={}));const kt=Object.freeze({x:0,y:0});function Ar(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function pi(e,t){const n=Dn(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Dr(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function vi(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function $o(e){let{left:t,top:n,height:i,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+i},{x:t+a,y:n+i}]}function zr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Wo(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Ci=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Wo(t,t.left,t.top),l=[];for(const f of i){const{id:h}=f,c=n.get(h);if(c){const C=Ar(Wo(c),a);l.push({id:h,data:{droppableContainer:f,value:C}})}}return l.sort(Dr)};function yi(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),f=a-i,h=l-n;if(i<a&&n<l){const c=t.width*t.height,C=e.width*e.height,M=f*h;return Number((M/(c+C-M)).toFixed(4))}return 0}const wi=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const l of i){const{id:f}=l,h=n.get(f);if(h){const c=yi(h,t);c>0&&a.push({id:f,data:{droppableContainer:l,value:c}})}}return a.sort(vi)};function Go(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:kt}function bi(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>({...l,top:l.top+e*f.y,bottom:l.bottom+e*f.y,left:l.left+e*f.x,right:l.right+e*f.x}),{...t})}}const xi=bi(1);function Lr(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 qi={ignoreTransform:!1};function Xt(e,t){t===void 0&&(t=qi);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:C,transformOrigin:M}=Ct(e).getComputedStyle(e);C&&(n=(function(y,p,T){const I=Lr(p);if(!I)return y;const{scaleX:z,scaleY:D,x:_,y:$}=I,w=y.left-_-(1-z)*parseFloat(T),N=y.top-$-(1-D)*parseFloat(T.slice(T.indexOf(" ")+1)),v=z?y.width/z:y.width,E=D?y.height/D:y.height;return{width:v,height:E,top:N,right:w+v,bottom:N+E,left:w}})(n,C,M))}const{top:i,left:a,width:l,height:f,bottom:h,right:c}=n;return{top:i,left:a,width:l,height:f,bottom:h,right:c}}function _o(e){return Xt(e,{ignoreTransform:!0})}function Hn(e,t){const n=[];return e?(function i(a){if(t!=null&&n.length>=t||!a)return n;if(qo(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!gn(a)||Ir(a)||n.includes(a))return n;const l=Ct(e).getComputedStyle(a);return a!==e&&(function(f,h){h===void 0&&(h=Ct(f).getComputedStyle(f));const c=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(C=>{const M=h[C];return typeof M=="string"&&c.test(M)})})(a,l)&&n.push(a),(function(f,h){return h===void 0&&(h=Ct(f).getComputedStyle(f)),h.position==="fixed"})(a,l)?n:i(a.parentNode)})(e):n}function Nr(e){const[t]=Hn(e,1);return t??null}function ao(e){return jn&&e?Zt(e)?e:xo(e)?qo(e)||e===_t(e).scrollingElement?window:gn(e)?e:null:null:null}function Pr(e){return Zt(e)?e.scrollX:e.scrollLeft}function jr(e){return Zt(e)?e.scrollY:e.scrollTop}function go(e){return{x:Pr(e),y:jr(e)}}var mt;function Br(e){return!(!jn||!e)&&e===document.scrollingElement}function Or(e){const t={x:0,y:0},n=Br(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mt||(mt={}));const Si={x:.2,y:.2};function Ri(e,t,n,i,a){let{top:l,left:f,right:h,bottom:c}=n;i===void 0&&(i=10),a===void 0&&(a=Si);const{isTop:C,isBottom:M,isLeft:y,isRight:p}=Or(e),T={x:0,y:0},I={x:0,y:0},z=t.height*a.y,D=t.width*a.x;return!C&&l<=t.top+z?(T.y=mt.Backward,I.y=i*Math.abs((t.top+z-l)/z)):!M&&c>=t.bottom-z&&(T.y=mt.Forward,I.y=i*Math.abs((t.bottom-z-c)/z)),!p&&h>=t.right-D?(T.x=mt.Forward,I.x=i*Math.abs((t.right-D-h)/D)):!y&&f<=t.left+D&&(T.x=mt.Backward,I.x=i*Math.abs((t.left+D-f)/D)),{direction:T,speed:I}}function ki(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:f}=window;return{top:0,left:0,right:l,bottom:f,width:l,height:f}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Hr(e){return e.reduce((t,n)=>$t(t,go(n)),kt)}function Vr(e,t){if(t===void 0&&(t=Xt),!e)return;const{top:n,left:i,bottom:a,right:l}=t(e);Nr(e)&&(a<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mi=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+Pr(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+jr(n),0)}]];class ho{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Hn(n),a=Hr(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,f,h]of Mi)for(const c of f)Object.defineProperty(this,c,{get:()=>{const C=h(i),M=a[l]-C;return this.rect[c]+M},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ln{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function so(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var qt,Ye;function Zo(e){e.preventDefault()}function Ti(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"})(qt||(qt={})),(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"})(Ye||(Ye={}));const Ur={start:[Ye.Space,Ye.Enter],cancel:[Ye.Esc],end:[Ye.Space,Ye.Enter,Ye.Tab]},Ii=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ye.Right:return{...n,x:n.x+25};case Ye.Left:return{...n,x:n.x-25};case Ye.Down:return{...n,y:n.y+25};case Ye.Up:return{...n,y:n.y-25}}};class So{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ln(_t(n)),this.windowListeners=new ln(Ct(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vr(i),n(kt)}handleKeyDown(t){if(On(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:l=Ur,coordinateGetter:f=Ii,scrollBehavior:h="smooth"}=a,{code:c}=t;if(l.end.includes(c))return void this.handleEnd(t);if(l.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:C}=i.current,M=C?{x:C.left,y:C.top}:kt;this.referenceCoordinates||(this.referenceCoordinates=M);const y=f(t,{active:n,context:i.current,currentCoordinates:M});if(y){const p=dn(y,M),T={x:0,y:0},{scrollableAncestors:I}=i.current;for(const z of I){const D=t.code,{isTop:_,isRight:$,isLeft:w,isBottom:N,maxScroll:v,minScroll:E}=Or(z),q=ki(z),Z={x:Math.min(D===Ye.Right?q.right-q.width/2:q.right,Math.max(D===Ye.Right?q.left:q.left+q.width/2,y.x)),y:Math.min(D===Ye.Down?q.bottom-q.height/2:q.bottom,Math.max(D===Ye.Down?q.top:q.top+q.height/2,y.y))},F=D===Ye.Right&&!$||D===Ye.Left&&!w,P=D===Ye.Down&&!N||D===Ye.Up&&!_;if(F&&Z.x!==y.x){const W=z.scrollLeft+p.x,pe=D===Ye.Right&&W<=v.x||D===Ye.Left&&W>=E.x;if(pe&&!p.y)return void z.scrollTo({left:W,behavior:h});T.x=pe?z.scrollLeft-W:D===Ye.Right?z.scrollLeft-v.x:z.scrollLeft-E.x,T.x&&z.scrollBy({left:-T.x,behavior:h});break}if(P&&Z.y!==y.y){const W=z.scrollTop+p.y,pe=D===Ye.Down&&W<=v.y||D===Ye.Up&&W>=E.y;if(pe&&!p.x)return void z.scrollTo({top:W,behavior:h});T.y=pe?z.scrollTop-W:D===Ye.Down?z.scrollTop-v.y:z.scrollTop-E.y,T.y&&z.scrollBy({top:-T.y,behavior:h});break}}this.handleMove(t,$t(dn(y,this.referenceCoordinates),T))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Xo(e){return!!(e&&"distance"in e)}function Yo(e){return!!(e&&"delay"in e)}So.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Ur,onActivation:a}=t,{active:l}=n;const{code:f}=e.nativeEvent;if(i.start.includes(f)){const h=l.activatorNode.current;return(!h||e.target===h)&&(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];class Ro{constructor(t,n,i){var a;i===void 0&&(i=(function(h){const{EventTarget:c}=Ct(h);return h instanceof c?h:_t(h)})(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:f}=l;this.props=t,this.events=n,this.document=_t(f),this.documentListeners=new ln(this.document),this.listeners=new ln(i),this.windowListeners=new ln(Ct(f)),this.initialCoordinates=(a=Dn(l))!=null?a:kt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.DragStart,Zo),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),this.windowListeners.add(qt.ContextMenu,Zo),this.documentListeners.add(qt.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yo(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Xo(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qt.Click,Ti,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:l}=this,{onMove:f,options:{activationConstraint:h}}=l;if(!a)return;const c=(n=Dn(t))!=null?n:kt,C=dn(a,c);if(!i&&h){if(Xo(h)){if(h.tolerance!=null&&so(C,h.tolerance))return this.handleCancel();if(so(C,h.distance))return this.handleStart()}return Yo(h)&&so(C,h.tolerance)?this.handleCancel():void this.handlePending(h,C)}t.cancelable&&t.preventDefault(),f(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ye.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Ei={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Kr extends Ro{constructor(t){const{event:n}=t,i=_t(n.target);super(t,Ei,i)}}Kr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||n.button!==0)&&(i?.({event:n}),!0)}}];const Fi={move:{name:"mousemove"},end:{name:"mouseup"}};var mo;(function(e){e[e.RightClick=2]="RightClick"})(mo||(mo={}));class $r extends Ro{constructor(t){super(t,Fi,_t(t.event.target))}}$r.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==mo.RightClick&&(i?.({event:n}),!0)}}];const co={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Wr extends Ro{constructor(t){super(t,co)}static setup(){return window.addEventListener(co.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(co.move.name,t)};function t(){}}}var an,Ln;function Ai(e){let{acceleration:t,activator:n=an.Pointer,canScroll:i,draggingRect:a,enabled:l,interval:f=5,order:h=Ln.TreeOrder,pointerCoordinates:c,scrollableAncestors:C,scrollableAncestorRects:M,delta:y,threshold:p}=e;const T=(function(E){let{delta:q,disabled:Z}=E;const F=An(q);return rn(P=>{if(Z||!F||!P)return Di;const W={x:Math.sign(q.x-F.x),y:Math.sign(q.y-F.y)};return{x:{[mt.Backward]:P.x[mt.Backward]||W.x===-1,[mt.Forward]:P.x[mt.Forward]||W.x===1},y:{[mt.Backward]:P.y[mt.Backward]||W.y===-1,[mt.Forward]:P.y[mt.Forward]||W.y===1}}},[Z,q,F])})({delta:y,disabled:!l}),[I,z]=(function(){const E=o.useRef(null);return[o.useCallback((q,Z)=>{E.current=setInterval(q,Z)},[]),o.useCallback(()=>{E.current!==null&&(clearInterval(E.current),E.current=null)},[])]})(),D=o.useRef({x:0,y:0}),_=o.useRef({x:0,y:0}),$=o.useMemo(()=>{switch(n){case an.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case an.DraggableRect:return a}},[n,a,c]),w=o.useRef(null),N=o.useCallback(()=>{const E=w.current;if(!E)return;const q=D.current.x*_.current.x,Z=D.current.y*_.current.y;E.scrollBy(q,Z)},[]),v=o.useMemo(()=>h===Ln.TreeOrder?[...C].reverse():C,[h,C]);o.useEffect(()=>{if(l&&C.length&&$){for(const E of v){if(i?.(E)===!1)continue;const q=C.indexOf(E),Z=M[q];if(!Z)continue;const{direction:F,speed:P}=Ri(E,Z,$,t,p);for(const W of["x","y"])T[W][F[W]]||(P[W]=0,F[W]=0);if(P.x>0||P.y>0)return z(),w.current=E,I(N,f),D.current=P,void(_.current=F)}D.current={x:0,y:0},_.current={x:0,y:0},z()}else z()},[t,N,i,z,l,f,JSON.stringify($),JSON.stringify(T),I,C,v,M,JSON.stringify(p)])}Wr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return!(a.length>1)&&(i?.({event:n}),!0)}}],(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(an||(an={})),(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ln||(Ln={}));const Di={x:{[mt.Backward]:!1,[mt.Forward]:!1},y:{[mt.Backward]:!1,[mt.Forward]:!1}};var un,fo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(un||(un={})),(function(e){e.Optimized="optimized"})(fo||(fo={}));const Jo=new Map;function po(e,t){return rn(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nn(e){let{callback:t,disabled:n}=e;const i=Bn(t),a=o.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:l}=window;return new l(i)},[n]);return o.useEffect(()=>()=>a?.disconnect(),[a]),a}function zi(e){return new ho(Xt(e),e)}function Qo(e,t,n){t===void 0&&(t=zi);const[i,a]=o.useState(null);function l(){a(c=>{if(!e)return null;var C;if(e.isConnected===!1)return(C=c??n)!=null?C:null;const M=t(e);return JSON.stringify(c)===JSON.stringify(M)?c:M})}const f=(function(c){let{callback:C,disabled:M}=c;const y=Bn(C),p=o.useMemo(()=>{if(M||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:T}=window;return new T(y)},[y,M]);return o.useEffect(()=>()=>p?.disconnect(),[p]),p})({callback(c){if(e)for(const C of c){const{type:M,target:y}=C;if(M==="childList"&&y instanceof HTMLElement&&y.contains(e)){l();break}}}}),h=Nn({callback:l});return Rt(()=>{l(),e?(h?.observe(e),f?.observe(document.body,{childList:!0,subtree:!0})):(h?.disconnect(),f?.disconnect())},[e]),i}const er=[];function tr(e,t){t===void 0&&(t=[]);const n=o.useRef(null);return o.useEffect(()=>{n.current=null},t),o.useEffect(()=>{const i=e!==kt;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?dn(e,n.current):kt}function nr(e){return o.useMemo(()=>e?(function(t){const n=t.innerWidth,i=t.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}})(e):null,[e])}const or=[];function Gr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gn(t)?t:e}const Li=[{sensor:Kr,options:{}},{sensor:So,options:{}}],Ni={current:{}},Mn={draggable:{measure:_o},droppable:{measure:_o,strategy:un.WhileDragging,frequency:fo.Optimized},dragOverlay:{measure:Xt}};class sn extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Pi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new sn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mn,measureDroppableContainers:zn,windowRect:null,measuringScheduled:!1},_r={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zn,draggableNodes:new Map,over:null,measureDroppableContainers:zn},mn=o.createContext(_r),Zr=o.createContext(Pi);function ji(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new sn}}}function Bi(e,t){switch(t.type){case ht.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ht.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ht.DragEnd:case ht.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ht.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new sn(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case ht.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const f=new sn(e.droppable.containers);return f.set(n,{...l,disabled:a}),{...e,droppable:{...e.droppable,containers:f}}}case ht.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const l=new sn(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function Oi(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=o.useContext(mn),l=An(i),f=An(n?.id);return o.useEffect(()=>{if(!t&&!i&&l&&f!=null){if(!On(l)||document.activeElement===l.target)return;const h=a.get(f);if(!h)return;const{activatorNode:c,node:C}=h;if(!c.current&&!C.current)return;requestAnimationFrame(()=>{for(const M of[c.current,C.current]){if(!M)continue;const y=ci(M);if(y){y.focus();break}}})}},[i,t,a,f,l]),null}function Xr(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,l)=>l({transform:a,...i}),n):n}const Vn=o.createContext({...kt,scaleX:1,scaleY:1});var Ft;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ft||(Ft={}));const Hi=o.memo(function(e){var t,n,i,a;let{id:l,accessibility:f,autoScroll:h=!0,children:c,sensors:C=Li,collisionDetection:M=wi,measuring:y,modifiers:p,...T}=e;const I=o.useReducer(Bi,void 0,ji),[z,D]=I,[_,$]=(function(){const[V]=o.useState(()=>new Set),X=o.useCallback(oe=>(V.add(oe),()=>V.delete(oe)),[V]);return[o.useCallback(oe=>{let{type:Fe,event:Ue}=oe;V.forEach(Oe=>{var Se;return(Se=Oe[Fe])==null?void 0:Se.call(Oe,Ue)})},[V]),X]})(),[w,N]=o.useState(Ft.Uninitialized),v=w===Ft.Initialized,{draggable:{active:E,nodes:q,translate:Z},droppable:{containers:F}}=z,P=E!=null?q.get(E):null,W=o.useRef({initial:null,translated:null}),pe=o.useMemo(()=>{var V;return E!=null?{id:E,data:(V=P?.data)!=null?V:Ni,rect:W}:null},[E,P]),de=o.useRef(null),[le,R]=o.useState(null),[te,k]=o.useState(null),b=cn(T,Object.values(T)),ee=hn("DndDescribedBy",l),ne=o.useMemo(()=>F.getEnabled(),[F]),Re=(Ce=y,o.useMemo(()=>({draggable:{...Mn.draggable,...Ce?.draggable},droppable:{...Mn.droppable,...Ce?.droppable},dragOverlay:{...Mn.dragOverlay,...Ce?.dragOverlay}}),[Ce?.draggable,Ce?.droppable,Ce?.dragOverlay]));var Ce;const{droppableRects:ye,measureDroppableContainers:Pe,measuringScheduled:ze}=(function(V,X){let{dragging:oe,dependencies:Fe,config:Ue}=X;const[Oe,Se]=o.useState(null),{frequency:He,measure:ve,strategy:De}=Ue,be=o.useRef(V),ke=(function(){switch(De){case un.Always:return!1;case un.BeforeDragging:return oe;default:return!oe}})(),Ne=cn(ke),Ze=o.useCallback(function(at){at===void 0&&(at=[]),Ne.current||Se(ot=>ot===null?at:ot.concat(at.filter($e=>!ot.includes($e))))},[Ne]),_e=o.useRef(null),Xe=rn(at=>{if(ke&&!oe)return Jo;if(!at||at===Jo||be.current!==V||Oe!=null){const ot=new Map;for(let $e of V){if(!$e)continue;if(Oe&&Oe.length>0&&!Oe.includes($e.id)&&$e.rect.current){ot.set($e.id,$e.rect.current);continue}const lt=$e.node.current,it=lt?new ho(ve(lt),lt):null;$e.rect.current=it,it&&ot.set($e.id,it)}return ot}return at},[V,Oe,oe,ke,ve]);return o.useEffect(()=>{be.current=V},[V]),o.useEffect(()=>{ke||Ze()},[oe,ke]),o.useEffect(()=>{Oe&&Oe.length>0&&Se(null)},[JSON.stringify(Oe)]),o.useEffect(()=>{ke||typeof He!="number"||_e.current!==null||(_e.current=setTimeout(()=>{Ze(),_e.current=null},He))},[He,ke,Ze,...Fe]),{droppableRects:Xe,measureDroppableContainers:Ze,measuringScheduled:Oe!=null}})(ne,{dragging:v,dependencies:[Z.x,Z.y],config:Re.droppable}),Ae=(function(V,X){const oe=X!=null?V.get(X):void 0,Fe=oe?oe.node.current:null;return rn(Ue=>{var Oe;return X==null?null:(Oe=Fe??Ue)!=null?Oe:null},[Fe,X])})(q,E),Ie=o.useMemo(()=>te?Dn(te):null,[te]),ue=(function(){const V=le?.autoScrollEnabled===!1,X=typeof h=="object"?h.enabled===!1:h===!1,oe=v&&!V&&!X;return typeof h=="object"?{...h,enabled:oe}:{enabled:oe}})(),O=(function(V,X){return po(V,X)})(Ae,Re.draggable.measure);(function(V){let{activeNode:X,measure:oe,initialRect:Fe,config:Ue=!0}=V;const Oe=o.useRef(!1),{x:Se,y:He}=typeof Ue=="boolean"?{x:Ue,y:Ue}:Ue;Rt(()=>{if(!Se&&!He||!X)return void(Oe.current=!1);if(Oe.current||!Fe)return;const ve=X?.node.current;if(!ve||ve.isConnected===!1)return;const De=Go(oe(ve),Fe);if(Se||(De.x=0),He||(De.y=0),Oe.current=!0,Math.abs(De.x)>0||Math.abs(De.y)>0){const be=Nr(ve);be&&be.scrollBy({top:De.y,left:De.x})}},[X,Se,He,Fe,oe])})({activeNode:E!=null?q.get(E):null,config:ue.layoutShiftCompensation,initialRect:O,measure:Re.draggable.measure});const xe=Qo(Ae,Re.draggable.measure,O),Le=Qo(Ae?Ae.parentElement:null),H=o.useRef({activatorEvent:null,active:null,activeNode:Ae,collisionRect:null,collisions:null,droppableRects:ye,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),U=F.getNodeFor((t=H.current.over)==null?void 0:t.id),he=(function(V){let{measure:X}=V;const[oe,Fe]=o.useState(null),Ue=Nn({callback:o.useCallback(ve=>{for(const{target:De}of ve)if(gn(De)){Fe(be=>{const ke=X(De);return be?{...be,width:ke.width,height:ke.height}:ke});break}},[X])}),Oe=o.useCallback(ve=>{const De=Gr(ve);Ue?.disconnect(),De&&Ue?.observe(De),Fe(De?X(De):null)},[X,Ue]),[Se,He]=Fn(Oe);return o.useMemo(()=>({nodeRef:Se,rect:oe,setRef:He}),[oe,Se,He])})({measure:Re.dragOverlay.measure}),ce=(n=he.nodeRef.current)!=null?n:Ae,me=v?(i=he.rect)!=null?i:xe:null,Te=!!(he.nodeRef.current&&he.rect),ie=Go(qe=Te?null:xe,po(qe));var qe;const g=nr(ce?Ct(ce):null),je=(function(V){const X=o.useRef(V),oe=rn(Fe=>V?Fe&&Fe!==er&&V&&X.current&&V.parentNode===X.current.parentNode?Fe:Hn(V):er,[V]);return o.useEffect(()=>{X.current=V},[V]),oe})(v?U??Ae:null),Be=(function(V,X){X===void 0&&(X=Xt);const[oe]=V,Fe=nr(oe?Ct(oe):null),[Ue,Oe]=o.useState(or);function Se(){Oe(()=>V.length?V.map(ve=>Br(ve)?Fe:new ho(X(ve),ve)):or)}const He=Nn({callback:Se});return Rt(()=>{He?.disconnect(),Se(),V.forEach(ve=>He?.observe(ve))},[V]),Ue})(je),Ee=Xr(p,{transform:{x:Z.x-ie.x,y:Z.y-ie.y,scaleX:1,scaleY:1},activatorEvent:te,active:pe,activeNodeRect:xe,containerNodeRect:Le,draggingNodeRect:me,over:H.current.over,overlayNodeRect:he.rect,scrollableAncestors:je,scrollableAncestorRects:Be,windowRect:g}),u=Ie?$t(Ie,Z):null,L=(function(V){const[X,oe]=o.useState(null),Fe=o.useRef(V),Ue=o.useCallback(Oe=>{const Se=ao(Oe.target);Se&&oe(He=>He?(He.set(Se,go(Se)),new Map(He)):null)},[]);return o.useEffect(()=>{const Oe=Fe.current;if(V!==Oe){Se(Oe);const He=V.map(ve=>{const De=ao(ve);return De?(De.addEventListener("scroll",Ue,{passive:!0}),[De,go(De)]):null}).filter(ve=>ve!=null);oe(He.length?new Map(He):null),Fe.current=V}return()=>{Se(V),Se(Oe)};function Se(He){He.forEach(ve=>{const De=ao(ve);De?.removeEventListener("scroll",Ue)})}},[Ue,V]),o.useMemo(()=>V.length?X?Array.from(X.values()).reduce((Oe,Se)=>$t(Oe,Se),kt):Hr(V):kt,[V,X])})(je),K=tr(L),m=tr(L,[xe]),A=$t(Ee,K),G=me?xi(me,Ee):null,J=pe&&G?M({active:pe,collisionRect:G,droppableRects:ye,droppableContainers:ne,pointerCoordinates:u}):null,re=zr(J,"id"),[x,B]=o.useState(null),S=(function(V,X,oe){return{...V,scaleX:X&&oe?X.width/oe.width:1,scaleY:X&&oe?X.height/oe.height:1}})(Te?Ee:$t(Ee,m),(a=x?.rect)!=null?a:null,xe),j=o.useRef(null),se=o.useCallback((V,X)=>{let{sensor:oe,options:Fe}=X;if(de.current==null)return;const Ue=q.get(de.current);if(!Ue)return;const Oe=V.nativeEvent,Se=new oe({active:de.current,activeNode:Ue,event:Oe,options:Fe,context:H,onAbort(ve){if(!q.get(ve))return;const{onDragAbort:De}=b.current,be={id:ve};De?.(be),_({type:"onDragAbort",event:be})},onPending(ve,De,be,ke){if(!q.get(ve))return;const{onDragPending:Ne}=b.current,Ze={id:ve,constraint:De,initialCoordinates:be,offset:ke};Ne?.(Ze),_({type:"onDragPending",event:Ze})},onStart(ve){const De=de.current;if(De==null)return;const be=q.get(De);if(!be)return;const{onDragStart:ke}=b.current,Ne={activatorEvent:Oe,active:{id:De,data:be.data,rect:W}};Kt.unstable_batchedUpdates(()=>{ke?.(Ne),N(Ft.Initializing),D({type:ht.DragStart,initialCoordinates:ve,active:De}),_({type:"onDragStart",event:Ne}),R(j.current),k(Oe)})},onMove(ve){D({type:ht.DragMove,coordinates:ve})},onEnd:He(ht.DragEnd),onCancel:He(ht.DragCancel)});function He(ve){return async function(){const{active:De,collisions:be,over:ke,scrollAdjustedTranslate:Ne}=H.current;let Ze=null;if(De&&Ne){const{cancelDrop:_e}=b.current;Ze={activatorEvent:Oe,active:De,collisions:be,delta:Ne,over:ke},ve===ht.DragEnd&&typeof _e=="function"&&await Promise.resolve(_e(Ze))&&(ve=ht.DragCancel)}de.current=null,Kt.unstable_batchedUpdates(()=>{D({type:ve}),N(Ft.Uninitialized),B(null),R(null),k(null),j.current=null;const _e=ve===ht.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const Xe=b.current[_e];Xe?.(Ze),_({type:_e,event:Ze})}})}}j.current=Se},[q]),ae=o.useCallback((V,X)=>(oe,Fe)=>{const Ue=oe.nativeEvent,Oe=q.get(Fe);if(de.current!==null||!Oe||Ue.dndKit||Ue.defaultPrevented)return;const Se={active:Oe};V(oe,X.options,Se)===!0&&(Ue.dndKit={capturedBy:X.sensor},de.current=Fe,se(oe,X))},[q,se]),we=(function(V,X){return o.useMemo(()=>V.reduce((oe,Fe)=>{const{sensor:Ue}=Fe;return[...oe,...Ue.activators.map(Oe=>({eventName:Oe.eventName,handler:X(Oe.handler,Fe)}))]},[]),[V,X])})(C,ae);(function(V){o.useEffect(()=>{if(!jn)return;const X=V.map(oe=>{let{sensor:Fe}=oe;return Fe.setup==null?void 0:Fe.setup()});return()=>{for(const oe of X)oe?.()}},V.map(X=>{let{sensor:oe}=X;return oe}))})(C),Rt(()=>{xe&&w===Ft.Initializing&&N(Ft.Initialized)},[xe,w]),o.useEffect(()=>{const{onDragMove:V}=b.current,{active:X,activatorEvent:oe,collisions:Fe,over:Ue}=H.current;if(!X||!oe)return;const Oe={active:X,activatorEvent:oe,collisions:Fe,delta:{x:A.x,y:A.y},over:Ue};Kt.unstable_batchedUpdates(()=>{V?.(Oe),_({type:"onDragMove",event:Oe})})},[A.x,A.y]),o.useEffect(()=>{const{active:V,activatorEvent:X,collisions:oe,droppableContainers:Fe,scrollAdjustedTranslate:Ue}=H.current;if(!V||de.current==null||!X||!Ue)return;const{onDragOver:Oe}=b.current,Se=Fe.get(re),He=Se&&Se.rect.current?{id:Se.id,rect:Se.rect.current,data:Se.data,disabled:Se.disabled}:null,ve={active:V,activatorEvent:X,collisions:oe,delta:{x:Ue.x,y:Ue.y},over:He};Kt.unstable_batchedUpdates(()=>{B(He),Oe?.(ve),_({type:"onDragOver",event:ve})})},[re]),Rt(()=>{H.current={activatorEvent:te,active:pe,activeNode:Ae,collisionRect:G,collisions:J,droppableRects:ye,draggableNodes:q,draggingNode:ce,draggingNodeRect:me,droppableContainers:F,over:x,scrollableAncestors:je,scrollAdjustedTranslate:A},W.current={initial:me,translated:G}},[pe,Ae,J,G,q,ce,me,ye,F,x,je,A]),Ai({...ue,delta:Z,draggingRect:G,pointerCoordinates:u,scrollableAncestors:je,scrollableAncestorRects:Be});const Y=o.useMemo(()=>({active:pe,activeNode:Ae,activeNodeRect:xe,activatorEvent:te,collisions:J,containerNodeRect:Le,dragOverlay:he,draggableNodes:q,droppableContainers:F,droppableRects:ye,over:x,measureDroppableContainers:Pe,scrollableAncestors:je,scrollableAncestorRects:Be,measuringConfiguration:Re,measuringScheduled:ze,windowRect:g}),[pe,Ae,xe,te,J,Le,he,q,F,ye,x,Pe,je,Be,Re,ze,g]),fe=o.useMemo(()=>({activatorEvent:te,activators:we,active:pe,activeNodeRect:xe,ariaDescribedById:{draggable:ee},dispatch:D,draggableNodes:q,over:x,measureDroppableContainers:Pe}),[te,we,pe,xe,D,ee,q,x,Pe]);return o.createElement(Fr.Provider,{value:$},o.createElement(mn.Provider,{value:fe},o.createElement(Zr.Provider,{value:Y},o.createElement(Vn.Provider,{value:S},c)),o.createElement(Oi,{disabled:f?.restoreFocus===!1})),o.createElement(fi,{...f,hiddenTextDescribedById:ee}))}),Vi=o.createContext(null),rr="button";function Ui(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const l=hn("Draggable"),{activators:f,activatorEvent:h,active:c,activeNodeRect:C,ariaDescribedById:M,draggableNodes:y,over:p}=o.useContext(mn),{role:T=rr,roleDescription:I="draggable",tabIndex:z=0}=a??{},D=c?.id===t,_=o.useContext(D?Vn:Vi),[$,w]=Fn(),[N,v]=Fn(),E=(function(Z,F){return o.useMemo(()=>Z.reduce((P,W)=>{let{eventName:pe,handler:de}=W;return P[pe]=le=>{de(le,F)},P},{}),[Z,F])})(f,t),q=cn(n);return Rt(()=>(y.set(t,{id:t,key:l,node:$,activatorNode:N,data:q}),()=>{const Z=y.get(t);Z&&Z.key===l&&y.delete(t)}),[y,t]),{active:c,activatorEvent:h,activeNodeRect:C,attributes:o.useMemo(()=>({role:T,tabIndex:z,"aria-disabled":i,"aria-pressed":!(!D||T!==rr)||void 0,"aria-roledescription":I,"aria-describedby":M.draggable}),[i,T,z,D,I,M.draggable]),isDragging:D,listeners:i?void 0:E,node:$,over:p,setNodeRef:w,setActivatorNodeRef:v,transform:_}}function Yr(){return o.useContext(Zr)}const Ki={timeout:25};function $i(e){let{animation:t,children:n}=e;const[i,a]=o.useState(null),[l,f]=o.useState(null),h=An(n);return n||i||!h||a(h),Rt(()=>{if(!l)return;const c=i?.key,C=i?.props.id;c!=null&&C!=null?Promise.resolve(t(C,l)).then(()=>{a(null)}):a(null)},[t,i,l]),o.createElement(o.Fragment,null,n,i?o.cloneElement(i,{ref:f}):null)}const Wi={x:0,y:0,scaleX:1,scaleY:1};function Gi(e){let{children:t}=e;return o.createElement(mn.Provider,{value:_r},o.createElement(Vn.Provider,{value:Wi},t))}const _i={position:"fixed",touchAction:"none"},Zi=e=>On(e)?"transform 250ms ease":void 0,Xi=o.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:l,className:f,rect:h,style:c,transform:C,transition:M=Zi}=e;if(!h)return null;const y=a?C:{...C,scaleX:1,scaleY:1},p={..._i,width:h.width,height:h.height,top:h.top,left:h.left,transform:Lt.Transform.toString(y),transformOrigin:a&&i?pi(i,h):void 0,transition:typeof M=="function"?M(i):M,...c};return o.createElement(n,{className:f,style:p,ref:t},l)}),Yi=e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:l,className:f}=e;if(l!=null&&l.active)for(const[h,c]of Object.entries(l.active))c!==void 0&&(a[h]=n.node.style.getPropertyValue(h),n.node.style.setProperty(h,c));if(l!=null&&l.dragOverlay)for(const[h,c]of Object.entries(l.dragOverlay))c!==void 0&&i.node.style.setProperty(h,c);return f!=null&&f.active&&n.node.classList.add(f.active),f!=null&&f.dragOverlay&&i.node.classList.add(f.dragOverlay),function(){for(const[h,c]of Object.entries(a))n.node.style.setProperty(h,c);f!=null&&f.active&&n.node.classList.remove(f.active)}},Jr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lt.Transform.toString(t)},{transform:Lt.Transform.toString(n)}]},sideEffects:Yi({styles:{active:{opacity:"0"}}})};function Ji(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return Bn((l,f)=>{if(t===null)return;const h=n.get(l);if(!h)return;const c=h.node.current;if(!c)return;const C=Gr(f);if(!C)return;const{transform:M}=Ct(f).getComputedStyle(f),y=Lr(M);if(!y)return;const p=typeof t=="function"?t:(function(T){const{duration:I,easing:z,sideEffects:D,keyframes:_}={...Jr,...T};return $=>{let{active:w,dragOverlay:N,transform:v,...E}=$;if(!I)return;const q={x:N.rect.left-w.rect.left,y:N.rect.top-w.rect.top},Z={scaleX:v.scaleX!==1?w.rect.width*v.scaleX/N.rect.width:1,scaleY:v.scaleY!==1?w.rect.height*v.scaleY/N.rect.height:1},F={x:v.x-q.x,y:v.y-q.y,...Z},P=_({...E,active:w,dragOverlay:N,transform:{initial:v,final:F}}),[W]=P,pe=P[P.length-1];if(JSON.stringify(W)===JSON.stringify(pe))return;const de=D?.({active:w,dragOverlay:N,...E}),le=N.node.animate(P,{duration:I,easing:z,fill:"forwards"});return new Promise(R=>{le.onfinish=()=>{de?.(),R()}})}})(t);return Vr(c,a.draggable.measure),p({active:{id:l,data:h.data,node:c,rect:a.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:f,rect:a.dragOverlay.measure(C)},droppableContainers:i,measuringConfiguration:a,transform:y})})}let lr=0;function Qi(e){return o.useMemo(()=>{if(e!=null)return lr++,lr},[e])}const ea=o.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:l,modifiers:f,wrapperElement:h="div",className:c,zIndex:C=999}=e;const{activatorEvent:M,active:y,activeNodeRect:p,containerNodeRect:T,draggableNodes:I,droppableContainers:z,dragOverlay:D,over:_,measuringConfiguration:$,scrollableAncestors:w,scrollableAncestorRects:N,windowRect:v}=Yr(),E=o.useContext(Vn),q=Qi(y?.id),Z=Xr(f,{activatorEvent:M,active:y,activeNodeRect:p,containerNodeRect:T,draggingNodeRect:D.rect,over:_,overlayNodeRect:D.rect,scrollableAncestors:w,scrollableAncestorRects:N,transform:E,windowRect:v}),F=po(p),P=Ji({config:i,draggableNodes:I,droppableContainers:z,measuringConfiguration:$}),W=F?D.setRef:void 0;return o.createElement(Gi,null,o.createElement($i,{animation:P},y&&q?o.createElement(Xi,{key:q,id:y.id,ref:W,as:h,activatorEvent:M,adjustScale:t,className:c,transition:l,rect:F,style:{zIndex:C,...a},transform:Z},n):null))});function ko(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function ta(e,t){return e.reduce((n,i,a)=>{const l=t.get(i);return l&&(n[a]=l),n},Array(e.length))}function Rn(e){return e!==null&&e>=0}const kn={scaleX:1,scaleY:1},na=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:a,overIndex:l,index:f}=e;const h=(t=n[a])!=null?t:i;if(!h)return null;const c=(function(C,M,y){const p=C[M],T=C[M-1],I=C[M+1];return!p||!T&&!I?0:y<M?T?p.left-(T.left+T.width):I.left-(p.left+p.width):I?I.left-(p.left+p.width):p.left-(T.left+T.width)})(n,f,a);if(f===a){const C=n[l];return C?{x:a<l?C.left+C.width-(h.left+h.width):C.left-h.left,y:0,...kn}:null}return f>a&&f<=l?{x:-h.width-c,y:0,...kn}:f<a&&f>=l?{x:h.width+c,y:0,...kn}:{x:0,y:0,...kn}},Mo=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const l=ko(t,i,n),f=t[a],h=l[a];return h&&f?{x:h.left-f.left,y:h.top-f.top,scaleX:h.width/f.width,scaleY:h.height/f.height}:null},Qr="Sortable",el=o.createContext({activeIndex:-1,containerId:Qr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mo,disabled:{draggable:!1,droppable:!1}});function oa(e){let{children:t,id:n,items:i,strategy:a=Mo,disabled:l=!1}=e;const{active:f,dragOverlay:h,droppableRects:c,over:C,measureDroppableContainers:M}=Yr(),y=hn(Qr,n),p=h.rect!==null,T=o.useMemo(()=>i.map(E=>typeof E=="object"&&"id"in E?E.id:E),[i]),I=f!=null,z=f?T.indexOf(f.id):-1,D=C?T.indexOf(C.id):-1,_=o.useRef(T),$=!(function(E,q){if(E===q)return!0;if(E.length!==q.length)return!1;for(let Z=0;Z<E.length;Z++)if(E[Z]!==q[Z])return!1;return!0})(T,_.current),w=D!==-1&&z===-1||$,N=(function(E){return typeof E=="boolean"?{draggable:E,droppable:E}:E})(l);Rt(()=>{$&&I&&M(T)},[$,T,I,M]),o.useEffect(()=>{_.current=T},[T]);const v=o.useMemo(()=>({activeIndex:z,containerId:y,disabled:N,disableTransforms:w,items:T,overIndex:D,useDragOverlay:p,sortedRects:ta(T,c),strategy:a}),[z,y,N.draggable,N.droppable,w,T,D,c,p,a]);return o.createElement(el.Provider,{value:v},t)}const ra=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return ko(n,i,a).indexOf(t)},la=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:l,newIndex:f,previousItems:h,previousContainerId:c,transition:C}=e;return!(!C||!i)&&(h===l||a!==f)&&(!!n||f!==a&&t===c)},ia={duration:200,easing:"ease"},tl="transform",aa=Lt.Transition.toString({property:tl,duration:0,easing:"linear"}),sa={roleDescription:"sortable"};function ca(e){let{animateLayoutChanges:t=la,attributes:n,disabled:i,data:a,getNewIndex:l=ra,id:f,strategy:h,resizeObserverConfig:c,transition:C=ia}=e;const{items:M,containerId:y,activeIndex:p,disabled:T,disableTransforms:I,sortedRects:z,overIndex:D,useDragOverlay:_,strategy:$}=o.useContext(el),w=(function(U,he){var ce,me;return typeof U=="boolean"?{draggable:U,droppable:!1}:{draggable:(ce=U?.draggable)!=null?ce:he.draggable,droppable:(me=U?.droppable)!=null?me:he.droppable}})(i,T),N=M.indexOf(f),v=o.useMemo(()=>({sortable:{containerId:y,index:N,items:M},...a}),[y,a,N,M]),E=o.useMemo(()=>M.slice(M.indexOf(f)),[M,f]),{rect:q,node:Z,isOver:F,setNodeRef:P}=(function(U){let{data:he,disabled:ce=!1,id:me,resizeObserverConfig:Te}=U;const ie=hn("Droppable"),{active:qe,dispatch:g,over:je,measureDroppableContainers:Be}=o.useContext(mn),Ee=o.useRef({disabled:ce}),u=o.useRef(!1),L=o.useRef(null),K=o.useRef(null),{disabled:m,updateMeasurementsFor:A,timeout:G}={...Ki,...Te},J=cn(A??me),re=Nn({callback:o.useCallback(()=>{u.current?(K.current!=null&&clearTimeout(K.current),K.current=setTimeout(()=>{Be(Array.isArray(J.current)?J.current:[J.current]),K.current=null},G)):u.current=!0},[G]),disabled:m||!qe}),x=o.useCallback((se,ae)=>{re&&(ae&&(re.unobserve(ae),u.current=!1),se&&re.observe(se))},[re]),[B,S]=Fn(x),j=cn(he);return o.useEffect(()=>{re&&B.current&&(re.disconnect(),u.current=!1,re.observe(B.current))},[B,re]),o.useEffect(()=>(g({type:ht.RegisterDroppable,element:{id:me,key:ie,disabled:ce,node:B,rect:L,data:j}}),()=>g({type:ht.UnregisterDroppable,key:ie,id:me})),[me]),o.useEffect(()=>{ce!==Ee.current.disabled&&(g({type:ht.SetDroppableDisabled,id:me,key:ie,disabled:ce}),Ee.current.disabled=ce)},[me,ie,ce,g]),{active:qe,rect:L,isOver:je?.id===me,node:B,over:je,setNodeRef:S}})({id:f,data:v,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:W,activatorEvent:pe,activeNodeRect:de,attributes:le,setNodeRef:R,listeners:te,isDragging:k,over:b,setActivatorNodeRef:ee,transform:ne}=Ui({id:f,data:v,attributes:{...sa,...n},disabled:w.draggable}),Re=(function(){for(var U=arguments.length,he=new Array(U),ce=0;ce<U;ce++)he[ce]=arguments[ce];return o.useMemo(()=>me=>{he.forEach(Te=>Te(me))},he)})(P,R),Ce=!!W,ye=Ce&&!I&&Rn(p)&&Rn(D),Pe=!_&&k,ze=Pe&&ye?ne:null,Ae=ye?ze??(h??$)({rects:z,activeNodeRect:de,activeIndex:p,overIndex:D,index:N}):null,Ie=Rn(p)&&Rn(D)?l({id:f,items:M,activeIndex:p,overIndex:D}):N,ue=W?.id,O=o.useRef({activeId:ue,items:M,newIndex:Ie,containerId:y}),xe=M!==O.current.items,Le=t({active:W,containerId:y,isDragging:k,isSorting:Ce,id:f,index:N,items:M,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:C,wasDragging:O.current.activeId!=null}),H=(function(U){let{disabled:he,index:ce,node:me,rect:Te}=U;const[ie,qe]=o.useState(null),g=o.useRef(ce);return Rt(()=>{if(!he&&ce!==g.current&&me.current){const je=Te.current;if(je){const Be=Xt(me.current,{ignoreTransform:!0}),Ee={x:je.left-Be.left,y:je.top-Be.top,scaleX:je.width/Be.width,scaleY:je.height/Be.height};(Ee.x||Ee.y)&&qe(Ee)}}ce!==g.current&&(g.current=ce)},[he,ce,me,Te]),o.useEffect(()=>{ie&&qe(null)},[ie]),ie})({disabled:!Le,index:N,node:Z,rect:q});return o.useEffect(()=>{Ce&&O.current.newIndex!==Ie&&(O.current.newIndex=Ie),y!==O.current.containerId&&(O.current.containerId=y),M!==O.current.items&&(O.current.items=M)},[Ce,Ie,y,M]),o.useEffect(()=>{if(ue===O.current.activeId)return;if(ue!=null&&O.current.activeId==null)return void(O.current.activeId=ue);const U=setTimeout(()=>{O.current.activeId=ue},50);return()=>clearTimeout(U)},[ue]),{active:W,activeIndex:p,attributes:le,data:v,rect:q,index:N,newIndex:Ie,items:M,isOver:F,isSorting:Ce,isDragging:k,listeners:te,node:Z,overIndex:D,over:b,setNodeRef:Re,setActivatorNodeRef:ee,setDroppableNodeRef:P,setDraggableNodeRef:R,transform:H??Ae,transition:(function(){if(H||xe&&O.current.newIndex===N)return aa;if(!(Pe&&!On(pe)||!C)&&(Ce||Le))return Lt.Transition.toString({...C,property:tl})})()}}function Pn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const da=[Ye.Down,Ye.Right,Ye.Up,Ye.Left],ua=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:a,droppableContainers:l,over:f,scrollableAncestors:h}}=t;if(da.includes(e.code)){if(e.preventDefault(),!n||!i)return;const c=[];l.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const p=a.get(y.id);if(p)switch(e.code){case Ye.Down:i.top<p.top&&c.push(y);break;case Ye.Up:i.top>p.top&&c.push(y);break;case Ye.Left:i.left>p.left&&c.push(y);break;case Ye.Right:i.left<p.left&&c.push(y)}});const C=(y=>{let{collisionRect:p,droppableRects:T,droppableContainers:I}=y;const z=$o(p),D=[];for(const _ of I){const{id:$}=_,w=T.get($);if(w){const N=$o(w),v=z.reduce((q,Z,F)=>q+Ar(N[F],Z),0),E=Number((v/4).toFixed(4));D.push({id:$,data:{droppableContainer:_,value:E}})}}return D.sort(Dr)})({collisionRect:i,droppableRects:a,droppableContainers:c});let M=zr(C,"id");if(M===f?.id&&C.length>1&&(M=C[1].id),M!=null){const y=l.get(n.id),p=l.get(M),T=p?a.get(p.id):null,I=p?.node.current;if(I&&T&&y&&p){const z=Hn(I).some((N,v)=>h[v]!==N),D=ir(y,p),_=(function(N,v){return!Pn(N)||!Pn(v)||!ir(N,v)?!1:N.data.current.sortable.index<v.data.current.sortable.index})(y,p),$=z||!D?{x:0,y:0}:{x:_?i.width-T.width:0,y:_?i.height-T.height:0},w={x:T.left,y:T.top};return $.x&&$.y?w:dn(w,$)}}}};function ir(e,t){return!(!Pn(e)||!Pn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const ga=e=>{let{transform:t}=e;return{...t,y:0}},nl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,index:l,editing:f,editable:h,selectedIndex:c,background:C,activeColor:M,borderColor:y,borderWidth:p,dragging:T,...I}=e;return s.jsxs("div",{ref:t,className:ct(a),style:{...i,display:"flex",flexDirection:"column",background:c===l?"white":C,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===l?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...I,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===l?"0px":"-1px",marginTop:c===l?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===l?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===l&&M?M?.toCSS():"none",minHeight:"2px"}})]})})),St={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"},ol=o.memo(o.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:i,fadeIn:a,handle:l,height:f,index:h,listeners:c,onRemove:C,renderItem:M,sorting:y,style:p,transition:T,transform:I,value:z,wrapperStyle:D,..._},$)=>{o.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=M?M({dragOverlay:!!t,dragging:!!n,sorting:!!y,index:h,fadeIn:!!a,listeners:c,ref:$,style:p,transform:I,transition:T,value:z}):s.jsx(s.Fragment,{children:z});return s.jsx("div",{className:ct("tab-item",St.Wrapper,a&&St.fadeIn,y&&St.sorting,t&&St.dragOverlay),style:{...D,transition:[T,D?.transition].filter(Boolean).join(", "),"--translate-x":I?`${Math.round(I.x)}px`:void 0,"--translate-y":I?`${Math.round(I.y)}px`:void 0,"--scale-x":I?.scaleX?`${I.scaleX}`:void 0,"--scale-y":I?.scaleY?`${I.scaleY}`:void 0,"--index":h},ref:$,children:s.jsx("div",{className:ct(St.Item,n&&St.dragging,l&&St.withHandle,t&&St.dragOverlay,i&&St.disabled,e&&St.color,"dragging"),style:p,"data-cypress":"draggable-item",...l?void 0:c,..._,tabIndex:l?void 0:-1,children:w})})})),ar={Row:"_Row_1kr10_1"},ha=o.memo(o.forwardRef(({children:e,horizontal:t,style:n},i)=>s.jsx("div",{ref:i,style:{...n},className:ct(ar.Row,t&&ar.horizontal),children:e}))),ma={...Jr},fa=o.memo(o.forwardRef((e,t)=>{const{className:n,activationConstraint:i,animateLayoutChanges:a,adjustScale:l=!1,collisionDetection:f=Ci,coordinateGetter:h=ua,dropAnimation:c=ma,getItemStyles:C=()=>({}),getNewIndex:M,handle:y=!1,items:p,onMove:T,isDisabled:I=()=>!1,measuring:z,modifiers:D,renderItem:_,renderDivider:$,reorderItems:w=ko,strategy:N=Mo,style:v,useDragOverlay:E=!0,onDragStart:q,wrapperStyle:Z=()=>({})}=e,[F,P]=o.useState(()=>p);o.useEffect(()=>{P(p)},[p]);const[W,pe]=o.useState(null),de=(function(){for(var b=arguments.length,ee=new Array(b),ne=0;ne<b;ne++)ee[ne]=arguments[ne];return o.useMemo(()=>[...ee].filter(Re=>Re!=null),[...ee])})(io($r,{activationConstraint:i}),io(Wr,{activationConstraint:i}),io(So,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:h})),le=F.indexOf.bind(F),R=W?le(W):-1,te=[];F.map((b,ee)=>{te.push(s.jsx(pa,{id:b,handle:y,index:ee,style:C,wrapperStyle:Z,disabled:I(b),renderItem:_,animateLayoutChanges:a,useDragOverlay:E,getNewIndex:M},b+"-"+ee));const ne=$?.({key:"divider-"+ee});ne&&te.push(ne)});const{getPortalContainer:k}=r.useFullscreenPortal();return s.jsxs(Hi,{sensors:de,collisionDetection:f,onDragStart:b=>{const{active:ee}=b;ee&&(q?.(b),pe(ee.id))},autoScroll:{canScroll:b=>!0},onDragEnd:b=>{if(pe(null),b.over){const ee=le(b.over.id);R!==ee&&(P(ne=>w(ne,R,ee)),T?.(R,ee))}},onDragCancel:()=>{pe(null)},measuring:z,modifiers:D,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...v},className:ct(n,St.Wrapper),children:s.jsx(oa,{items:F,strategy:N,children:s.jsx(ha,{ref:t,children:te})})}),E?Kt.createPortal(s.jsx(ea,{adjustScale:l,dropAnimation:c,children:W?s.jsx(ol,{value:F[R],handle:y,renderItem:_,wrapperStyle:Z({index:R,isDragging:!0,id:F[R]}),index:R,dragging:!0,style:C({id:F[R],index:R,isSorting:W!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),k()):null]})}));function pa({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:i,id:a,index:l,onRemove:f,style:h,renderItem:c,useDragOverlay:C,wrapperStyle:M}){const{attributes:y,isDragging:p,isSorting:T,listeners:I,overIndex:z,setNodeRef:D,transform:_,transition:$}=ca({id:a,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(ol,{ref:D,value:a,disabled:e,dragging:p,sorting:T,handle:i,renderItem:c,index:l,style:h({index:l,id:a,isDragging:p,isSorting:T,overIndex:z}),onRemove:f?()=>f(a):void 0,transform:_,transition:$,wrapperStyle:M({index:l,isDragging:p,id:a}),listeners:I,"data-index":l,"data-id":a,dragOverlay:!C&&p,...y})}const va="_TabStrip_3x0dp_1",Ca=new d.Color("rgb(33, 115, 70)"),ya="#eee",wa=e=>s.jsx(nl,{...e}),rl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,selectedTabIndex:l=0,tabNames:f=[],onSelectedTabIndexChange:h,onTabNameChange:c,onTabMove:C,renderScrollButtonStart:M=r.defaultCreateScrollStartButton,renderScrollButtonEnd:y=r.defaultCreateScrollEndButton,renderScrollButtonEdge:p=r.defaultCreateScrollEdgeButton,renderTabButton:T=wa,renderTabDivider:I,propsEditLabel:z,disabled:D=!1,disableDrag:_=!1,background:$="white",activeColor:w=Ca,borderColor:N=ya,borderWidth:v=1}=e,[E,q]=o.useState(l),[Z,F]=o.useState(f),P=o.useCallback(ie=>{const qe=k.current?.[ie]?.closest(".tab-item")??k.current?.[ie];qe&&Pe.current?.scrollTo({top:qe.offsetTop,left:qe.offsetLeft,behavior:"smooth"})},[]);o.useEffect(()=>{P(l)},[l]);const W=o.useCallback((ie,qe)=>{qe!==E&&(q(qe),h?.(qe)),P(qe)},[h,E]),pe=o.useCallback((ie,qe)=>{C?.(ie,qe)},[C]),de=o.useRef(null),[le,R]=o.useState(-1),te=o.useCallback((ie,qe)=>{c?.(ie,qe)},[c]);o.useLayoutEffect(()=>{q(l)},[l]),o.useLayoutEffect(()=>{F(f)},[f]);const k=o.useRef([]),b=o.useRef(null);o.useImperativeHandle(t,()=>Object.assign({startEdit(ie){k.current?.[ie]?.startEdit()},cancel(ie){k.current?.[ie]?.cancel()}},b.current),[E,le]);const ee=o.useCallback(({value:ie,index:qe,dragging:g})=>{const{style:je,maxLength:Be,...Ee}=z||{},u=s.jsx(Tr,{ref:L=>{k.current[qe]=L},value:ie,disabled:D,maxLength:Be,style:{color:E===qe&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...je},styleHover:{},onSubmit:L=>(de.current=!1,R(-1),te(qe,L)),onCancel:()=>{de.current=!1,R(-1)},onChange:L=>{de.current=!0,R(qe)},...Ee});return T({onClick:L=>W(L,qe),value:ie,index:qe,editing:le===qe&&de.current,editable:!0,disabled:D,selectedIndex:E,background:$,activeColor:w,borderColor:N,borderWidth:v,dragging:g,children:u})},[E,te,W,z,D,le,T]),[ne,{width:Re}]=Wt(),[Ce,{width:ye}]=Wt(),Pe=o.useRef(null),[ze,Ae]=o.useState({left:0,top:0,width:0,height:0}),[Ie,ue]=o.useState(null);o.useEffect(()=>{Ie!==null&&Pe.current&&Pe.current.scrollTo({left:Ie,behavior:"smooth"})},[Ie]);const O=o.useCallback((ie,qe=!1)=>{if(!Pe.current)return 0;let g=Pe.current.firstChild.getBoundingClientRect(),je=Pe.current.firstChild.firstChild.children,Be=0;return Be=qe?0:r.ScrollUtils.getScrollTo(ie,g.left,je,!0,Math.max(0,ie-200)),ue(Be),Math.max(0,Be)},[]),xe=o.useCallback((ie,qe=!1)=>{if(!Pe.current)return 0;let g=Pe.current.firstChild.getBoundingClientRect(),je=Pe.current.firstChild.firstChild.children,Be=0;const Ee=Math.ceil(ye-Re);return Be=qe?Ee:r.ScrollUtils.getScrollTo(ie,g.left,je,!1,Math.max(0,ie+200)),ue(Be),Math.min(Ee,Be)},[ye,Re]),Le=o.useRef(null),H=o.useRef(null),U=o.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=null,Le.current=null)},[]),he=o.useCallback((ie,qe,g=260)=>{Le.current=ie,H.current=setTimeout(()=>{const je=qe?O(Le.current||ie):xe(Le.current||ie);je!==Le.current?he(je,qe,120):U()},g)},[O,xe,U]);o.useEffect(()=>()=>U(),[U]);const ce=o.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(ze.left)<=0||Math.floor(ye-Re)===0,orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>he(Pe.current.scrollLeft,!0),onClick:ie=>O(Math.min(Pe.current.scrollLeft,Ie??Number.MAX_SAFE_INTEGER),ie.ctrlKey)}),[ze,Ie,ye,Re]),me=o.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(ye-Re)<=Math.ceil(ze.left),orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>he(Pe.current.scrollLeft,!1),onClick:ie=>xe(Math.max(Pe.current.scrollLeft,Ie??0),ie.ctrlKey)}),[ze,Ie,ye,Re]),Te=o.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,p?.(ce)]}),[ce,me,M,y,n,p]);return s.jsxs("div",{style:{...i,display:"flex",alignItems:"stretch"},className:ct(va,a),ref:b,children:[s.jsx("div",{style:{borderTop:`solid ${N} ${v}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Te}),s.jsx("div",{className:"Tabs",ref:ne,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:Pe,onScroll:ie=>{Ae({left:ie.target.scrollLeft,top:ie.target.scrollTop,width:ie.target.scrollWidth,height:ie.target.scrollHeight})},children:s.jsx(fa,{isDisabled:ie=>D||_,items:Z,strategy:na,modifiers:[ga],ref:Ce,renderItem:ee,renderDivider:I,onMove:pe,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:p(me)})]})}));rl.displayName="TabStrip";const Tn=o.createContext(null);Tn.displayName="DocThemesContext";const ba="_script-editor_iy654_5",xa={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},qa=o.lazy(()=>Promise.resolve().then(()=>require("./BmyiATwwabIijIcx.cjs")));let nn,on,Et=["define","require"],sr=!1,In="@0.7.26";In!=="@local"&&In!=="@0.0.0"||(In="");const Sa=`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${In}/types/scripting.d.ts`,cr=async(e,t,n)=>{const i=e.getModel();if(!i)return;const a=await t.languages.typescript.getTypeScriptWorker(),l=await a(i.uri),f=await l.getNavigationTree(i.uri.toString()),h=e.getPosition();let c={...h};c.lineNumber=1,c.column=1;let C=!1;for(let z=h.lineNumber;z>=1;z--)if(i.getLineContent(z).trim()===""){const D=To(f,i.getOffsetAt({lineNumber:z,column:1}),"function");if(!D||ka(D)){C=!0,c.lineNumber=z+1;break}{const _=D.spans[0].start;z=i.getPositionAt(_).lineNumber,c.lineNumber=z}}let M=n,y=!1;!C&&!M.startsWith(`
27
+ `},mi={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 fi(e){let{announcements:t=mi,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=hi}=e;const{announce:l,announcement:f}=(function(){const[y,p]=o.useState("");return{announce:o.useCallback(T=>{T!=null&&p(T)},[]),announcement:y}})(),h=hn("DndLiveRegion"),[c,C]=o.useState(!1);if(o.useEffect(()=>{C(!0)},[]),(function(y){const p=o.useContext(Fr);o.useEffect(()=>{if(!p)throw new Error("useDndMonitor must be used within a children of <DndContext>");return p(y)},[y,p])})(o.useMemo(()=>({onDragStart(y){let{active:p}=y;l(t.onDragStart({active:p}))},onDragMove(y){let{active:p,over:T}=y;t.onDragMove&&l(t.onDragMove({active:p,over:T}))},onDragOver(y){let{active:p,over:T}=y;l(t.onDragOver({active:p,over:T}))},onDragEnd(y){let{active:p,over:T}=y;l(t.onDragEnd({active:p,over:T}))},onDragCancel(y){let{active:p,over:T}=y;l(t.onDragCancel({active:p,over:T}))}}),[l,t])),!c)return null;const M=o.createElement(o.Fragment,null,o.createElement(ui,{id:i,value:a.draggable}),o.createElement(gi,{id:h,announcement:f}));return n?Kt.createPortal(M,n):M}var ht;function zn(){}function io(e,t){return o.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ht||(ht={}));const kt=Object.freeze({x:0,y:0});function Ar(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function pi(e,t){const n=Dn(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Dr(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function vi(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function $o(e){let{left:t,top:n,height:i,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+i},{x:t+a,y:n+i}]}function zr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Wo(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Ci=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Wo(t,t.left,t.top),l=[];for(const f of i){const{id:h}=f,c=n.get(h);if(c){const C=Ar(Wo(c),a);l.push({id:h,data:{droppableContainer:f,value:C}})}}return l.sort(Dr)};function yi(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),f=a-i,h=l-n;if(i<a&&n<l){const c=t.width*t.height,C=e.width*e.height,M=f*h;return Number((M/(c+C-M)).toFixed(4))}return 0}const wi=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const l of i){const{id:f}=l,h=n.get(f);if(h){const c=yi(h,t);c>0&&a.push({id:f,data:{droppableContainer:l,value:c}})}}return a.sort(vi)};function Go(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:kt}function bi(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>({...l,top:l.top+e*f.y,bottom:l.bottom+e*f.y,left:l.left+e*f.x,right:l.right+e*f.x}),{...t})}}const xi=bi(1);function Lr(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 qi={ignoreTransform:!1};function Xt(e,t){t===void 0&&(t=qi);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:C,transformOrigin:M}=Ct(e).getComputedStyle(e);C&&(n=(function(y,p,T){const I=Lr(p);if(!I)return y;const{scaleX:z,scaleY:D,x:_,y:$}=I,w=y.left-_-(1-z)*parseFloat(T),N=y.top-$-(1-D)*parseFloat(T.slice(T.indexOf(" ")+1)),v=z?y.width/z:y.width,E=D?y.height/D:y.height;return{width:v,height:E,top:N,right:w+v,bottom:N+E,left:w}})(n,C,M))}const{top:i,left:a,width:l,height:f,bottom:h,right:c}=n;return{top:i,left:a,width:l,height:f,bottom:h,right:c}}function _o(e){return Xt(e,{ignoreTransform:!0})}function Hn(e,t){const n=[];return e?(function i(a){if(t!=null&&n.length>=t||!a)return n;if(qo(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!gn(a)||Ir(a)||n.includes(a))return n;const l=Ct(e).getComputedStyle(a);return a!==e&&(function(f,h){h===void 0&&(h=Ct(f).getComputedStyle(f));const c=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(C=>{const M=h[C];return typeof M=="string"&&c.test(M)})})(a,l)&&n.push(a),(function(f,h){return h===void 0&&(h=Ct(f).getComputedStyle(f)),h.position==="fixed"})(a,l)?n:i(a.parentNode)})(e):n}function Nr(e){const[t]=Hn(e,1);return t??null}function ao(e){return jn&&e?Zt(e)?e:xo(e)?qo(e)||e===_t(e).scrollingElement?window:gn(e)?e:null:null:null}function Pr(e){return Zt(e)?e.scrollX:e.scrollLeft}function jr(e){return Zt(e)?e.scrollY:e.scrollTop}function go(e){return{x:Pr(e),y:jr(e)}}var mt;function Br(e){return!(!jn||!e)&&e===document.scrollingElement}function Or(e){const t={x:0,y:0},n=Br(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mt||(mt={}));const Si={x:.2,y:.2};function Ri(e,t,n,i,a){let{top:l,left:f,right:h,bottom:c}=n;i===void 0&&(i=10),a===void 0&&(a=Si);const{isTop:C,isBottom:M,isLeft:y,isRight:p}=Or(e),T={x:0,y:0},I={x:0,y:0},z=t.height*a.y,D=t.width*a.x;return!C&&l<=t.top+z?(T.y=mt.Backward,I.y=i*Math.abs((t.top+z-l)/z)):!M&&c>=t.bottom-z&&(T.y=mt.Forward,I.y=i*Math.abs((t.bottom-z-c)/z)),!p&&h>=t.right-D?(T.x=mt.Forward,I.x=i*Math.abs((t.right-D-h)/D)):!y&&f<=t.left+D&&(T.x=mt.Backward,I.x=i*Math.abs((t.left+D-f)/D)),{direction:T,speed:I}}function ki(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:f}=window;return{top:0,left:0,right:l,bottom:f,width:l,height:f}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Hr(e){return e.reduce((t,n)=>$t(t,go(n)),kt)}function Vr(e,t){if(t===void 0&&(t=Xt),!e)return;const{top:n,left:i,bottom:a,right:l}=t(e);Nr(e)&&(a<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mi=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+Pr(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+jr(n),0)}]];class ho{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Hn(n),a=Hr(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,f,h]of Mi)for(const c of f)Object.defineProperty(this,c,{get:()=>{const C=h(i),M=a[l]-C;return this.rect[c]+M},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ln{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function so(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var qt,Ye;function Zo(e){e.preventDefault()}function Ti(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"})(qt||(qt={})),(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"})(Ye||(Ye={}));const Ur={start:[Ye.Space,Ye.Enter],cancel:[Ye.Esc],end:[Ye.Space,Ye.Enter,Ye.Tab]},Ii=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ye.Right:return{...n,x:n.x+25};case Ye.Left:return{...n,x:n.x-25};case Ye.Down:return{...n,y:n.y+25};case Ye.Up:return{...n,y:n.y-25}}};class So{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ln(_t(n)),this.windowListeners=new ln(Ct(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vr(i),n(kt)}handleKeyDown(t){if(On(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:l=Ur,coordinateGetter:f=Ii,scrollBehavior:h="smooth"}=a,{code:c}=t;if(l.end.includes(c))return void this.handleEnd(t);if(l.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:C}=i.current,M=C?{x:C.left,y:C.top}:kt;this.referenceCoordinates||(this.referenceCoordinates=M);const y=f(t,{active:n,context:i.current,currentCoordinates:M});if(y){const p=dn(y,M),T={x:0,y:0},{scrollableAncestors:I}=i.current;for(const z of I){const D=t.code,{isTop:_,isRight:$,isLeft:w,isBottom:N,maxScroll:v,minScroll:E}=Or(z),q=ki(z),Z={x:Math.min(D===Ye.Right?q.right-q.width/2:q.right,Math.max(D===Ye.Right?q.left:q.left+q.width/2,y.x)),y:Math.min(D===Ye.Down?q.bottom-q.height/2:q.bottom,Math.max(D===Ye.Down?q.top:q.top+q.height/2,y.y))},F=D===Ye.Right&&!$||D===Ye.Left&&!w,P=D===Ye.Down&&!N||D===Ye.Up&&!_;if(F&&Z.x!==y.x){const W=z.scrollLeft+p.x,pe=D===Ye.Right&&W<=v.x||D===Ye.Left&&W>=E.x;if(pe&&!p.y)return void z.scrollTo({left:W,behavior:h});T.x=pe?z.scrollLeft-W:D===Ye.Right?z.scrollLeft-v.x:z.scrollLeft-E.x,T.x&&z.scrollBy({left:-T.x,behavior:h});break}if(P&&Z.y!==y.y){const W=z.scrollTop+p.y,pe=D===Ye.Down&&W<=v.y||D===Ye.Up&&W>=E.y;if(pe&&!p.x)return void z.scrollTo({top:W,behavior:h});T.y=pe?z.scrollTop-W:D===Ye.Down?z.scrollTop-v.y:z.scrollTop-E.y,T.y&&z.scrollBy({top:-T.y,behavior:h});break}}this.handleMove(t,$t(dn(y,this.referenceCoordinates),T))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Xo(e){return!!(e&&"distance"in e)}function Yo(e){return!!(e&&"delay"in e)}So.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Ur,onActivation:a}=t,{active:l}=n;const{code:f}=e.nativeEvent;if(i.start.includes(f)){const h=l.activatorNode.current;return(!h||e.target===h)&&(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];class Ro{constructor(t,n,i){var a;i===void 0&&(i=(function(h){const{EventTarget:c}=Ct(h);return h instanceof c?h:_t(h)})(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:f}=l;this.props=t,this.events=n,this.document=_t(f),this.documentListeners=new ln(this.document),this.listeners=new ln(i),this.windowListeners=new ln(Ct(f)),this.initialCoordinates=(a=Dn(l))!=null?a:kt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.DragStart,Zo),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),this.windowListeners.add(qt.ContextMenu,Zo),this.documentListeners.add(qt.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yo(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Xo(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qt.Click,Ti,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:l}=this,{onMove:f,options:{activationConstraint:h}}=l;if(!a)return;const c=(n=Dn(t))!=null?n:kt,C=dn(a,c);if(!i&&h){if(Xo(h)){if(h.tolerance!=null&&so(C,h.tolerance))return this.handleCancel();if(so(C,h.distance))return this.handleStart()}return Yo(h)&&so(C,h.tolerance)?this.handleCancel():void this.handlePending(h,C)}t.cancelable&&t.preventDefault(),f(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ye.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Ei={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Kr extends Ro{constructor(t){const{event:n}=t,i=_t(n.target);super(t,Ei,i)}}Kr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||n.button!==0)&&(i?.({event:n}),!0)}}];const Fi={move:{name:"mousemove"},end:{name:"mouseup"}};var mo;(function(e){e[e.RightClick=2]="RightClick"})(mo||(mo={}));class $r extends Ro{constructor(t){super(t,Fi,_t(t.event.target))}}$r.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==mo.RightClick&&(i?.({event:n}),!0)}}];const co={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Wr extends Ro{constructor(t){super(t,co)}static setup(){return window.addEventListener(co.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(co.move.name,t)};function t(){}}}var an,Ln;function Ai(e){let{acceleration:t,activator:n=an.Pointer,canScroll:i,draggingRect:a,enabled:l,interval:f=5,order:h=Ln.TreeOrder,pointerCoordinates:c,scrollableAncestors:C,scrollableAncestorRects:M,delta:y,threshold:p}=e;const T=(function(E){let{delta:q,disabled:Z}=E;const F=An(q);return rn(P=>{if(Z||!F||!P)return Di;const W={x:Math.sign(q.x-F.x),y:Math.sign(q.y-F.y)};return{x:{[mt.Backward]:P.x[mt.Backward]||W.x===-1,[mt.Forward]:P.x[mt.Forward]||W.x===1},y:{[mt.Backward]:P.y[mt.Backward]||W.y===-1,[mt.Forward]:P.y[mt.Forward]||W.y===1}}},[Z,q,F])})({delta:y,disabled:!l}),[I,z]=(function(){const E=o.useRef(null);return[o.useCallback((q,Z)=>{E.current=setInterval(q,Z)},[]),o.useCallback(()=>{E.current!==null&&(clearInterval(E.current),E.current=null)},[])]})(),D=o.useRef({x:0,y:0}),_=o.useRef({x:0,y:0}),$=o.useMemo(()=>{switch(n){case an.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case an.DraggableRect:return a}},[n,a,c]),w=o.useRef(null),N=o.useCallback(()=>{const E=w.current;if(!E)return;const q=D.current.x*_.current.x,Z=D.current.y*_.current.y;E.scrollBy(q,Z)},[]),v=o.useMemo(()=>h===Ln.TreeOrder?[...C].reverse():C,[h,C]);o.useEffect(()=>{if(l&&C.length&&$){for(const E of v){if(i?.(E)===!1)continue;const q=C.indexOf(E),Z=M[q];if(!Z)continue;const{direction:F,speed:P}=Ri(E,Z,$,t,p);for(const W of["x","y"])T[W][F[W]]||(P[W]=0,F[W]=0);if(P.x>0||P.y>0)return z(),w.current=E,I(N,f),D.current=P,void(_.current=F)}D.current={x:0,y:0},_.current={x:0,y:0},z()}else z()},[t,N,i,z,l,f,JSON.stringify($),JSON.stringify(T),I,C,v,M,JSON.stringify(p)])}Wr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return!(a.length>1)&&(i?.({event:n}),!0)}}],(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(an||(an={})),(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ln||(Ln={}));const Di={x:{[mt.Backward]:!1,[mt.Forward]:!1},y:{[mt.Backward]:!1,[mt.Forward]:!1}};var un,fo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(un||(un={})),(function(e){e.Optimized="optimized"})(fo||(fo={}));const Jo=new Map;function po(e,t){return rn(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nn(e){let{callback:t,disabled:n}=e;const i=Bn(t),a=o.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:l}=window;return new l(i)},[n]);return o.useEffect(()=>()=>a?.disconnect(),[a]),a}function zi(e){return new ho(Xt(e),e)}function Qo(e,t,n){t===void 0&&(t=zi);const[i,a]=o.useState(null);function l(){a(c=>{if(!e)return null;var C;if(e.isConnected===!1)return(C=c??n)!=null?C:null;const M=t(e);return JSON.stringify(c)===JSON.stringify(M)?c:M})}const f=(function(c){let{callback:C,disabled:M}=c;const y=Bn(C),p=o.useMemo(()=>{if(M||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:T}=window;return new T(y)},[y,M]);return o.useEffect(()=>()=>p?.disconnect(),[p]),p})({callback(c){if(e)for(const C of c){const{type:M,target:y}=C;if(M==="childList"&&y instanceof HTMLElement&&y.contains(e)){l();break}}}}),h=Nn({callback:l});return Rt(()=>{l(),e?(h?.observe(e),f?.observe(document.body,{childList:!0,subtree:!0})):(h?.disconnect(),f?.disconnect())},[e]),i}const er=[];function tr(e,t){t===void 0&&(t=[]);const n=o.useRef(null);return o.useEffect(()=>{n.current=null},t),o.useEffect(()=>{const i=e!==kt;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?dn(e,n.current):kt}function nr(e){return o.useMemo(()=>e?(function(t){const n=t.innerWidth,i=t.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}})(e):null,[e])}const or=[];function Gr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gn(t)?t:e}const Li=[{sensor:Kr,options:{}},{sensor:So,options:{}}],Ni={current:{}},Mn={draggable:{measure:_o},droppable:{measure:_o,strategy:un.WhileDragging,frequency:fo.Optimized},dragOverlay:{measure:Xt}};class sn extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Pi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new sn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mn,measureDroppableContainers:zn,windowRect:null,measuringScheduled:!1},_r={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zn,draggableNodes:new Map,over:null,measureDroppableContainers:zn},mn=o.createContext(_r),Zr=o.createContext(Pi);function ji(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new sn}}}function Bi(e,t){switch(t.type){case ht.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ht.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ht.DragEnd:case ht.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ht.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new sn(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case ht.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const f=new sn(e.droppable.containers);return f.set(n,{...l,disabled:a}),{...e,droppable:{...e.droppable,containers:f}}}case ht.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const l=new sn(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function Oi(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=o.useContext(mn),l=An(i),f=An(n?.id);return o.useEffect(()=>{if(!t&&!i&&l&&f!=null){if(!On(l)||document.activeElement===l.target)return;const h=a.get(f);if(!h)return;const{activatorNode:c,node:C}=h;if(!c.current&&!C.current)return;requestAnimationFrame(()=>{for(const M of[c.current,C.current]){if(!M)continue;const y=ci(M);if(y){y.focus();break}}})}},[i,t,a,f,l]),null}function Xr(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,l)=>l({transform:a,...i}),n):n}const Vn=o.createContext({...kt,scaleX:1,scaleY:1});var Ft;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ft||(Ft={}));const Hi=o.memo(function(e){var t,n,i,a;let{id:l,accessibility:f,autoScroll:h=!0,children:c,sensors:C=Li,collisionDetection:M=wi,measuring:y,modifiers:p,...T}=e;const I=o.useReducer(Bi,void 0,ji),[z,D]=I,[_,$]=(function(){const[V]=o.useState(()=>new Set),X=o.useCallback(oe=>(V.add(oe),()=>V.delete(oe)),[V]);return[o.useCallback(oe=>{let{type:Fe,event:Ue}=oe;V.forEach(Oe=>{var Se;return(Se=Oe[Fe])==null?void 0:Se.call(Oe,Ue)})},[V]),X]})(),[w,N]=o.useState(Ft.Uninitialized),v=w===Ft.Initialized,{draggable:{active:E,nodes:q,translate:Z},droppable:{containers:F}}=z,P=E!=null?q.get(E):null,W=o.useRef({initial:null,translated:null}),pe=o.useMemo(()=>{var V;return E!=null?{id:E,data:(V=P?.data)!=null?V:Ni,rect:W}:null},[E,P]),de=o.useRef(null),[le,R]=o.useState(null),[te,k]=o.useState(null),b=cn(T,Object.values(T)),ee=hn("DndDescribedBy",l),ne=o.useMemo(()=>F.getEnabled(),[F]),Re=(Ce=y,o.useMemo(()=>({draggable:{...Mn.draggable,...Ce?.draggable},droppable:{...Mn.droppable,...Ce?.droppable},dragOverlay:{...Mn.dragOverlay,...Ce?.dragOverlay}}),[Ce?.draggable,Ce?.droppable,Ce?.dragOverlay]));var Ce;const{droppableRects:ye,measureDroppableContainers:Pe,measuringScheduled:ze}=(function(V,X){let{dragging:oe,dependencies:Fe,config:Ue}=X;const[Oe,Se]=o.useState(null),{frequency:He,measure:ve,strategy:De}=Ue,be=o.useRef(V),ke=(function(){switch(De){case un.Always:return!1;case un.BeforeDragging:return oe;default:return!oe}})(),Ne=cn(ke),Ze=o.useCallback(function(at){at===void 0&&(at=[]),Ne.current||Se(ot=>ot===null?at:ot.concat(at.filter($e=>!ot.includes($e))))},[Ne]),_e=o.useRef(null),Xe=rn(at=>{if(ke&&!oe)return Jo;if(!at||at===Jo||be.current!==V||Oe!=null){const ot=new Map;for(let $e of V){if(!$e)continue;if(Oe&&Oe.length>0&&!Oe.includes($e.id)&&$e.rect.current){ot.set($e.id,$e.rect.current);continue}const lt=$e.node.current,it=lt?new ho(ve(lt),lt):null;$e.rect.current=it,it&&ot.set($e.id,it)}return ot}return at},[V,Oe,oe,ke,ve]);return o.useEffect(()=>{be.current=V},[V]),o.useEffect(()=>{ke||Ze()},[oe,ke]),o.useEffect(()=>{Oe&&Oe.length>0&&Se(null)},[JSON.stringify(Oe)]),o.useEffect(()=>{ke||typeof He!="number"||_e.current!==null||(_e.current=setTimeout(()=>{Ze(),_e.current=null},He))},[He,ke,Ze,...Fe]),{droppableRects:Xe,measureDroppableContainers:Ze,measuringScheduled:Oe!=null}})(ne,{dragging:v,dependencies:[Z.x,Z.y],config:Re.droppable}),Ae=(function(V,X){const oe=X!=null?V.get(X):void 0,Fe=oe?oe.node.current:null;return rn(Ue=>{var Oe;return X==null?null:(Oe=Fe??Ue)!=null?Oe:null},[Fe,X])})(q,E),Ie=o.useMemo(()=>te?Dn(te):null,[te]),ue=(function(){const V=le?.autoScrollEnabled===!1,X=typeof h=="object"?h.enabled===!1:h===!1,oe=v&&!V&&!X;return typeof h=="object"?{...h,enabled:oe}:{enabled:oe}})(),O=(function(V,X){return po(V,X)})(Ae,Re.draggable.measure);(function(V){let{activeNode:X,measure:oe,initialRect:Fe,config:Ue=!0}=V;const Oe=o.useRef(!1),{x:Se,y:He}=typeof Ue=="boolean"?{x:Ue,y:Ue}:Ue;Rt(()=>{if(!Se&&!He||!X)return void(Oe.current=!1);if(Oe.current||!Fe)return;const ve=X?.node.current;if(!ve||ve.isConnected===!1)return;const De=Go(oe(ve),Fe);if(Se||(De.x=0),He||(De.y=0),Oe.current=!0,Math.abs(De.x)>0||Math.abs(De.y)>0){const be=Nr(ve);be&&be.scrollBy({top:De.y,left:De.x})}},[X,Se,He,Fe,oe])})({activeNode:E!=null?q.get(E):null,config:ue.layoutShiftCompensation,initialRect:O,measure:Re.draggable.measure});const xe=Qo(Ae,Re.draggable.measure,O),Le=Qo(Ae?Ae.parentElement:null),H=o.useRef({activatorEvent:null,active:null,activeNode:Ae,collisionRect:null,collisions:null,droppableRects:ye,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),U=F.getNodeFor((t=H.current.over)==null?void 0:t.id),he=(function(V){let{measure:X}=V;const[oe,Fe]=o.useState(null),Ue=Nn({callback:o.useCallback(ve=>{for(const{target:De}of ve)if(gn(De)){Fe(be=>{const ke=X(De);return be?{...be,width:ke.width,height:ke.height}:ke});break}},[X])}),Oe=o.useCallback(ve=>{const De=Gr(ve);Ue?.disconnect(),De&&Ue?.observe(De),Fe(De?X(De):null)},[X,Ue]),[Se,He]=Fn(Oe);return o.useMemo(()=>({nodeRef:Se,rect:oe,setRef:He}),[oe,Se,He])})({measure:Re.dragOverlay.measure}),ce=(n=he.nodeRef.current)!=null?n:Ae,me=v?(i=he.rect)!=null?i:xe:null,Te=!!(he.nodeRef.current&&he.rect),ie=Go(qe=Te?null:xe,po(qe));var qe;const g=nr(ce?Ct(ce):null),je=(function(V){const X=o.useRef(V),oe=rn(Fe=>V?Fe&&Fe!==er&&V&&X.current&&V.parentNode===X.current.parentNode?Fe:Hn(V):er,[V]);return o.useEffect(()=>{X.current=V},[V]),oe})(v?U??Ae:null),Be=(function(V,X){X===void 0&&(X=Xt);const[oe]=V,Fe=nr(oe?Ct(oe):null),[Ue,Oe]=o.useState(or);function Se(){Oe(()=>V.length?V.map(ve=>Br(ve)?Fe:new ho(X(ve),ve)):or)}const He=Nn({callback:Se});return Rt(()=>{He?.disconnect(),Se(),V.forEach(ve=>He?.observe(ve))},[V]),Ue})(je),Ee=Xr(p,{transform:{x:Z.x-ie.x,y:Z.y-ie.y,scaleX:1,scaleY:1},activatorEvent:te,active:pe,activeNodeRect:xe,containerNodeRect:Le,draggingNodeRect:me,over:H.current.over,overlayNodeRect:he.rect,scrollableAncestors:je,scrollableAncestorRects:Be,windowRect:g}),u=Ie?$t(Ie,Z):null,L=(function(V){const[X,oe]=o.useState(null),Fe=o.useRef(V),Ue=o.useCallback(Oe=>{const Se=ao(Oe.target);Se&&oe(He=>He?(He.set(Se,go(Se)),new Map(He)):null)},[]);return o.useEffect(()=>{const Oe=Fe.current;if(V!==Oe){Se(Oe);const He=V.map(ve=>{const De=ao(ve);return De?(De.addEventListener("scroll",Ue,{passive:!0}),[De,go(De)]):null}).filter(ve=>ve!=null);oe(He.length?new Map(He):null),Fe.current=V}return()=>{Se(V),Se(Oe)};function Se(He){He.forEach(ve=>{const De=ao(ve);De?.removeEventListener("scroll",Ue)})}},[Ue,V]),o.useMemo(()=>V.length?X?Array.from(X.values()).reduce((Oe,Se)=>$t(Oe,Se),kt):Hr(V):kt,[V,X])})(je),K=tr(L),m=tr(L,[xe]),A=$t(Ee,K),G=me?xi(me,Ee):null,J=pe&&G?M({active:pe,collisionRect:G,droppableRects:ye,droppableContainers:ne,pointerCoordinates:u}):null,re=zr(J,"id"),[x,B]=o.useState(null),S=(function(V,X,oe){return{...V,scaleX:X&&oe?X.width/oe.width:1,scaleY:X&&oe?X.height/oe.height:1}})(Te?Ee:$t(Ee,m),(a=x?.rect)!=null?a:null,xe),j=o.useRef(null),se=o.useCallback((V,X)=>{let{sensor:oe,options:Fe}=X;if(de.current==null)return;const Ue=q.get(de.current);if(!Ue)return;const Oe=V.nativeEvent,Se=new oe({active:de.current,activeNode:Ue,event:Oe,options:Fe,context:H,onAbort(ve){if(!q.get(ve))return;const{onDragAbort:De}=b.current,be={id:ve};De?.(be),_({type:"onDragAbort",event:be})},onPending(ve,De,be,ke){if(!q.get(ve))return;const{onDragPending:Ne}=b.current,Ze={id:ve,constraint:De,initialCoordinates:be,offset:ke};Ne?.(Ze),_({type:"onDragPending",event:Ze})},onStart(ve){const De=de.current;if(De==null)return;const be=q.get(De);if(!be)return;const{onDragStart:ke}=b.current,Ne={activatorEvent:Oe,active:{id:De,data:be.data,rect:W}};Kt.unstable_batchedUpdates(()=>{ke?.(Ne),N(Ft.Initializing),D({type:ht.DragStart,initialCoordinates:ve,active:De}),_({type:"onDragStart",event:Ne}),R(j.current),k(Oe)})},onMove(ve){D({type:ht.DragMove,coordinates:ve})},onEnd:He(ht.DragEnd),onCancel:He(ht.DragCancel)});function He(ve){return async function(){const{active:De,collisions:be,over:ke,scrollAdjustedTranslate:Ne}=H.current;let Ze=null;if(De&&Ne){const{cancelDrop:_e}=b.current;Ze={activatorEvent:Oe,active:De,collisions:be,delta:Ne,over:ke},ve===ht.DragEnd&&typeof _e=="function"&&await Promise.resolve(_e(Ze))&&(ve=ht.DragCancel)}de.current=null,Kt.unstable_batchedUpdates(()=>{D({type:ve}),N(Ft.Uninitialized),B(null),R(null),k(null),j.current=null;const _e=ve===ht.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const Xe=b.current[_e];Xe?.(Ze),_({type:_e,event:Ze})}})}}j.current=Se},[q]),ae=o.useCallback((V,X)=>(oe,Fe)=>{const Ue=oe.nativeEvent,Oe=q.get(Fe);if(de.current!==null||!Oe||Ue.dndKit||Ue.defaultPrevented)return;const Se={active:Oe};V(oe,X.options,Se)===!0&&(Ue.dndKit={capturedBy:X.sensor},de.current=Fe,se(oe,X))},[q,se]),we=(function(V,X){return o.useMemo(()=>V.reduce((oe,Fe)=>{const{sensor:Ue}=Fe;return[...oe,...Ue.activators.map(Oe=>({eventName:Oe.eventName,handler:X(Oe.handler,Fe)}))]},[]),[V,X])})(C,ae);(function(V){o.useEffect(()=>{if(!jn)return;const X=V.map(oe=>{let{sensor:Fe}=oe;return Fe.setup==null?void 0:Fe.setup()});return()=>{for(const oe of X)oe?.()}},V.map(X=>{let{sensor:oe}=X;return oe}))})(C),Rt(()=>{xe&&w===Ft.Initializing&&N(Ft.Initialized)},[xe,w]),o.useEffect(()=>{const{onDragMove:V}=b.current,{active:X,activatorEvent:oe,collisions:Fe,over:Ue}=H.current;if(!X||!oe)return;const Oe={active:X,activatorEvent:oe,collisions:Fe,delta:{x:A.x,y:A.y},over:Ue};Kt.unstable_batchedUpdates(()=>{V?.(Oe),_({type:"onDragMove",event:Oe})})},[A.x,A.y]),o.useEffect(()=>{const{active:V,activatorEvent:X,collisions:oe,droppableContainers:Fe,scrollAdjustedTranslate:Ue}=H.current;if(!V||de.current==null||!X||!Ue)return;const{onDragOver:Oe}=b.current,Se=Fe.get(re),He=Se&&Se.rect.current?{id:Se.id,rect:Se.rect.current,data:Se.data,disabled:Se.disabled}:null,ve={active:V,activatorEvent:X,collisions:oe,delta:{x:Ue.x,y:Ue.y},over:He};Kt.unstable_batchedUpdates(()=>{B(He),Oe?.(ve),_({type:"onDragOver",event:ve})})},[re]),Rt(()=>{H.current={activatorEvent:te,active:pe,activeNode:Ae,collisionRect:G,collisions:J,droppableRects:ye,draggableNodes:q,draggingNode:ce,draggingNodeRect:me,droppableContainers:F,over:x,scrollableAncestors:je,scrollAdjustedTranslate:A},W.current={initial:me,translated:G}},[pe,Ae,J,G,q,ce,me,ye,F,x,je,A]),Ai({...ue,delta:Z,draggingRect:G,pointerCoordinates:u,scrollableAncestors:je,scrollableAncestorRects:Be});const Y=o.useMemo(()=>({active:pe,activeNode:Ae,activeNodeRect:xe,activatorEvent:te,collisions:J,containerNodeRect:Le,dragOverlay:he,draggableNodes:q,droppableContainers:F,droppableRects:ye,over:x,measureDroppableContainers:Pe,scrollableAncestors:je,scrollableAncestorRects:Be,measuringConfiguration:Re,measuringScheduled:ze,windowRect:g}),[pe,Ae,xe,te,J,Le,he,q,F,ye,x,Pe,je,Be,Re,ze,g]),fe=o.useMemo(()=>({activatorEvent:te,activators:we,active:pe,activeNodeRect:xe,ariaDescribedById:{draggable:ee},dispatch:D,draggableNodes:q,over:x,measureDroppableContainers:Pe}),[te,we,pe,xe,D,ee,q,x,Pe]);return o.createElement(Fr.Provider,{value:$},o.createElement(mn.Provider,{value:fe},o.createElement(Zr.Provider,{value:Y},o.createElement(Vn.Provider,{value:S},c)),o.createElement(Oi,{disabled:f?.restoreFocus===!1})),o.createElement(fi,{...f,hiddenTextDescribedById:ee}))}),Vi=o.createContext(null),rr="button";function Ui(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const l=hn("Draggable"),{activators:f,activatorEvent:h,active:c,activeNodeRect:C,ariaDescribedById:M,draggableNodes:y,over:p}=o.useContext(mn),{role:T=rr,roleDescription:I="draggable",tabIndex:z=0}=a??{},D=c?.id===t,_=o.useContext(D?Vn:Vi),[$,w]=Fn(),[N,v]=Fn(),E=(function(Z,F){return o.useMemo(()=>Z.reduce((P,W)=>{let{eventName:pe,handler:de}=W;return P[pe]=le=>{de(le,F)},P},{}),[Z,F])})(f,t),q=cn(n);return Rt(()=>(y.set(t,{id:t,key:l,node:$,activatorNode:N,data:q}),()=>{const Z=y.get(t);Z&&Z.key===l&&y.delete(t)}),[y,t]),{active:c,activatorEvent:h,activeNodeRect:C,attributes:o.useMemo(()=>({role:T,tabIndex:z,"aria-disabled":i,"aria-pressed":!(!D||T!==rr)||void 0,"aria-roledescription":I,"aria-describedby":M.draggable}),[i,T,z,D,I,M.draggable]),isDragging:D,listeners:i?void 0:E,node:$,over:p,setNodeRef:w,setActivatorNodeRef:v,transform:_}}function Yr(){return o.useContext(Zr)}const Ki={timeout:25};function $i(e){let{animation:t,children:n}=e;const[i,a]=o.useState(null),[l,f]=o.useState(null),h=An(n);return n||i||!h||a(h),Rt(()=>{if(!l)return;const c=i?.key,C=i?.props.id;c!=null&&C!=null?Promise.resolve(t(C,l)).then(()=>{a(null)}):a(null)},[t,i,l]),o.createElement(o.Fragment,null,n,i?o.cloneElement(i,{ref:f}):null)}const Wi={x:0,y:0,scaleX:1,scaleY:1};function Gi(e){let{children:t}=e;return o.createElement(mn.Provider,{value:_r},o.createElement(Vn.Provider,{value:Wi},t))}const _i={position:"fixed",touchAction:"none"},Zi=e=>On(e)?"transform 250ms ease":void 0,Xi=o.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:l,className:f,rect:h,style:c,transform:C,transition:M=Zi}=e;if(!h)return null;const y=a?C:{...C,scaleX:1,scaleY:1},p={..._i,width:h.width,height:h.height,top:h.top,left:h.left,transform:Lt.Transform.toString(y),transformOrigin:a&&i?pi(i,h):void 0,transition:typeof M=="function"?M(i):M,...c};return o.createElement(n,{className:f,style:p,ref:t},l)}),Yi=e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:l,className:f}=e;if(l!=null&&l.active)for(const[h,c]of Object.entries(l.active))c!==void 0&&(a[h]=n.node.style.getPropertyValue(h),n.node.style.setProperty(h,c));if(l!=null&&l.dragOverlay)for(const[h,c]of Object.entries(l.dragOverlay))c!==void 0&&i.node.style.setProperty(h,c);return f!=null&&f.active&&n.node.classList.add(f.active),f!=null&&f.dragOverlay&&i.node.classList.add(f.dragOverlay),function(){for(const[h,c]of Object.entries(a))n.node.style.setProperty(h,c);f!=null&&f.active&&n.node.classList.remove(f.active)}},Jr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lt.Transform.toString(t)},{transform:Lt.Transform.toString(n)}]},sideEffects:Yi({styles:{active:{opacity:"0"}}})};function Ji(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return Bn((l,f)=>{if(t===null)return;const h=n.get(l);if(!h)return;const c=h.node.current;if(!c)return;const C=Gr(f);if(!C)return;const{transform:M}=Ct(f).getComputedStyle(f),y=Lr(M);if(!y)return;const p=typeof t=="function"?t:(function(T){const{duration:I,easing:z,sideEffects:D,keyframes:_}={...Jr,...T};return $=>{let{active:w,dragOverlay:N,transform:v,...E}=$;if(!I)return;const q={x:N.rect.left-w.rect.left,y:N.rect.top-w.rect.top},Z={scaleX:v.scaleX!==1?w.rect.width*v.scaleX/N.rect.width:1,scaleY:v.scaleY!==1?w.rect.height*v.scaleY/N.rect.height:1},F={x:v.x-q.x,y:v.y-q.y,...Z},P=_({...E,active:w,dragOverlay:N,transform:{initial:v,final:F}}),[W]=P,pe=P[P.length-1];if(JSON.stringify(W)===JSON.stringify(pe))return;const de=D?.({active:w,dragOverlay:N,...E}),le=N.node.animate(P,{duration:I,easing:z,fill:"forwards"});return new Promise(R=>{le.onfinish=()=>{de?.(),R()}})}})(t);return Vr(c,a.draggable.measure),p({active:{id:l,data:h.data,node:c,rect:a.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:f,rect:a.dragOverlay.measure(C)},droppableContainers:i,measuringConfiguration:a,transform:y})})}let lr=0;function Qi(e){return o.useMemo(()=>{if(e!=null)return lr++,lr},[e])}const ea=o.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:l,modifiers:f,wrapperElement:h="div",className:c,zIndex:C=999}=e;const{activatorEvent:M,active:y,activeNodeRect:p,containerNodeRect:T,draggableNodes:I,droppableContainers:z,dragOverlay:D,over:_,measuringConfiguration:$,scrollableAncestors:w,scrollableAncestorRects:N,windowRect:v}=Yr(),E=o.useContext(Vn),q=Qi(y?.id),Z=Xr(f,{activatorEvent:M,active:y,activeNodeRect:p,containerNodeRect:T,draggingNodeRect:D.rect,over:_,overlayNodeRect:D.rect,scrollableAncestors:w,scrollableAncestorRects:N,transform:E,windowRect:v}),F=po(p),P=Ji({config:i,draggableNodes:I,droppableContainers:z,measuringConfiguration:$}),W=F?D.setRef:void 0;return o.createElement(Gi,null,o.createElement($i,{animation:P},y&&q?o.createElement(Xi,{key:q,id:y.id,ref:W,as:h,activatorEvent:M,adjustScale:t,className:c,transition:l,rect:F,style:{zIndex:C,...a},transform:Z},n):null))});function ko(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function ta(e,t){return e.reduce((n,i,a)=>{const l=t.get(i);return l&&(n[a]=l),n},Array(e.length))}function Rn(e){return e!==null&&e>=0}const kn={scaleX:1,scaleY:1},na=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:a,overIndex:l,index:f}=e;const h=(t=n[a])!=null?t:i;if(!h)return null;const c=(function(C,M,y){const p=C[M],T=C[M-1],I=C[M+1];return!p||!T&&!I?0:y<M?T?p.left-(T.left+T.width):I.left-(p.left+p.width):I?I.left-(p.left+p.width):p.left-(T.left+T.width)})(n,f,a);if(f===a){const C=n[l];return C?{x:a<l?C.left+C.width-(h.left+h.width):C.left-h.left,y:0,...kn}:null}return f>a&&f<=l?{x:-h.width-c,y:0,...kn}:f<a&&f>=l?{x:h.width+c,y:0,...kn}:{x:0,y:0,...kn}},Mo=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const l=ko(t,i,n),f=t[a],h=l[a];return h&&f?{x:h.left-f.left,y:h.top-f.top,scaleX:h.width/f.width,scaleY:h.height/f.height}:null},Qr="Sortable",el=o.createContext({activeIndex:-1,containerId:Qr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mo,disabled:{draggable:!1,droppable:!1}});function oa(e){let{children:t,id:n,items:i,strategy:a=Mo,disabled:l=!1}=e;const{active:f,dragOverlay:h,droppableRects:c,over:C,measureDroppableContainers:M}=Yr(),y=hn(Qr,n),p=h.rect!==null,T=o.useMemo(()=>i.map(E=>typeof E=="object"&&"id"in E?E.id:E),[i]),I=f!=null,z=f?T.indexOf(f.id):-1,D=C?T.indexOf(C.id):-1,_=o.useRef(T),$=!(function(E,q){if(E===q)return!0;if(E.length!==q.length)return!1;for(let Z=0;Z<E.length;Z++)if(E[Z]!==q[Z])return!1;return!0})(T,_.current),w=D!==-1&&z===-1||$,N=(function(E){return typeof E=="boolean"?{draggable:E,droppable:E}:E})(l);Rt(()=>{$&&I&&M(T)},[$,T,I,M]),o.useEffect(()=>{_.current=T},[T]);const v=o.useMemo(()=>({activeIndex:z,containerId:y,disabled:N,disableTransforms:w,items:T,overIndex:D,useDragOverlay:p,sortedRects:ta(T,c),strategy:a}),[z,y,N.draggable,N.droppable,w,T,D,c,p,a]);return o.createElement(el.Provider,{value:v},t)}const ra=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return ko(n,i,a).indexOf(t)},la=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:l,newIndex:f,previousItems:h,previousContainerId:c,transition:C}=e;return!(!C||!i)&&(h===l||a!==f)&&(!!n||f!==a&&t===c)},ia={duration:200,easing:"ease"},tl="transform",aa=Lt.Transition.toString({property:tl,duration:0,easing:"linear"}),sa={roleDescription:"sortable"};function ca(e){let{animateLayoutChanges:t=la,attributes:n,disabled:i,data:a,getNewIndex:l=ra,id:f,strategy:h,resizeObserverConfig:c,transition:C=ia}=e;const{items:M,containerId:y,activeIndex:p,disabled:T,disableTransforms:I,sortedRects:z,overIndex:D,useDragOverlay:_,strategy:$}=o.useContext(el),w=(function(U,he){var ce,me;return typeof U=="boolean"?{draggable:U,droppable:!1}:{draggable:(ce=U?.draggable)!=null?ce:he.draggable,droppable:(me=U?.droppable)!=null?me:he.droppable}})(i,T),N=M.indexOf(f),v=o.useMemo(()=>({sortable:{containerId:y,index:N,items:M},...a}),[y,a,N,M]),E=o.useMemo(()=>M.slice(M.indexOf(f)),[M,f]),{rect:q,node:Z,isOver:F,setNodeRef:P}=(function(U){let{data:he,disabled:ce=!1,id:me,resizeObserverConfig:Te}=U;const ie=hn("Droppable"),{active:qe,dispatch:g,over:je,measureDroppableContainers:Be}=o.useContext(mn),Ee=o.useRef({disabled:ce}),u=o.useRef(!1),L=o.useRef(null),K=o.useRef(null),{disabled:m,updateMeasurementsFor:A,timeout:G}={...Ki,...Te},J=cn(A??me),re=Nn({callback:o.useCallback(()=>{u.current?(K.current!=null&&clearTimeout(K.current),K.current=setTimeout(()=>{Be(Array.isArray(J.current)?J.current:[J.current]),K.current=null},G)):u.current=!0},[G]),disabled:m||!qe}),x=o.useCallback((se,ae)=>{re&&(ae&&(re.unobserve(ae),u.current=!1),se&&re.observe(se))},[re]),[B,S]=Fn(x),j=cn(he);return o.useEffect(()=>{re&&B.current&&(re.disconnect(),u.current=!1,re.observe(B.current))},[B,re]),o.useEffect(()=>(g({type:ht.RegisterDroppable,element:{id:me,key:ie,disabled:ce,node:B,rect:L,data:j}}),()=>g({type:ht.UnregisterDroppable,key:ie,id:me})),[me]),o.useEffect(()=>{ce!==Ee.current.disabled&&(g({type:ht.SetDroppableDisabled,id:me,key:ie,disabled:ce}),Ee.current.disabled=ce)},[me,ie,ce,g]),{active:qe,rect:L,isOver:je?.id===me,node:B,over:je,setNodeRef:S}})({id:f,data:v,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:W,activatorEvent:pe,activeNodeRect:de,attributes:le,setNodeRef:R,listeners:te,isDragging:k,over:b,setActivatorNodeRef:ee,transform:ne}=Ui({id:f,data:v,attributes:{...sa,...n},disabled:w.draggable}),Re=(function(){for(var U=arguments.length,he=new Array(U),ce=0;ce<U;ce++)he[ce]=arguments[ce];return o.useMemo(()=>me=>{he.forEach(Te=>Te(me))},he)})(P,R),Ce=!!W,ye=Ce&&!I&&Rn(p)&&Rn(D),Pe=!_&&k,ze=Pe&&ye?ne:null,Ae=ye?ze??(h??$)({rects:z,activeNodeRect:de,activeIndex:p,overIndex:D,index:N}):null,Ie=Rn(p)&&Rn(D)?l({id:f,items:M,activeIndex:p,overIndex:D}):N,ue=W?.id,O=o.useRef({activeId:ue,items:M,newIndex:Ie,containerId:y}),xe=M!==O.current.items,Le=t({active:W,containerId:y,isDragging:k,isSorting:Ce,id:f,index:N,items:M,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:C,wasDragging:O.current.activeId!=null}),H=(function(U){let{disabled:he,index:ce,node:me,rect:Te}=U;const[ie,qe]=o.useState(null),g=o.useRef(ce);return Rt(()=>{if(!he&&ce!==g.current&&me.current){const je=Te.current;if(je){const Be=Xt(me.current,{ignoreTransform:!0}),Ee={x:je.left-Be.left,y:je.top-Be.top,scaleX:je.width/Be.width,scaleY:je.height/Be.height};(Ee.x||Ee.y)&&qe(Ee)}}ce!==g.current&&(g.current=ce)},[he,ce,me,Te]),o.useEffect(()=>{ie&&qe(null)},[ie]),ie})({disabled:!Le,index:N,node:Z,rect:q});return o.useEffect(()=>{Ce&&O.current.newIndex!==Ie&&(O.current.newIndex=Ie),y!==O.current.containerId&&(O.current.containerId=y),M!==O.current.items&&(O.current.items=M)},[Ce,Ie,y,M]),o.useEffect(()=>{if(ue===O.current.activeId)return;if(ue!=null&&O.current.activeId==null)return void(O.current.activeId=ue);const U=setTimeout(()=>{O.current.activeId=ue},50);return()=>clearTimeout(U)},[ue]),{active:W,activeIndex:p,attributes:le,data:v,rect:q,index:N,newIndex:Ie,items:M,isOver:F,isSorting:Ce,isDragging:k,listeners:te,node:Z,overIndex:D,over:b,setNodeRef:Re,setActivatorNodeRef:ee,setDroppableNodeRef:P,setDraggableNodeRef:R,transform:H??Ae,transition:(function(){if(H||xe&&O.current.newIndex===N)return aa;if(!(Pe&&!On(pe)||!C)&&(Ce||Le))return Lt.Transition.toString({...C,property:tl})})()}}function Pn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const da=[Ye.Down,Ye.Right,Ye.Up,Ye.Left],ua=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:a,droppableContainers:l,over:f,scrollableAncestors:h}}=t;if(da.includes(e.code)){if(e.preventDefault(),!n||!i)return;const c=[];l.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const p=a.get(y.id);if(p)switch(e.code){case Ye.Down:i.top<p.top&&c.push(y);break;case Ye.Up:i.top>p.top&&c.push(y);break;case Ye.Left:i.left>p.left&&c.push(y);break;case Ye.Right:i.left<p.left&&c.push(y)}});const C=(y=>{let{collisionRect:p,droppableRects:T,droppableContainers:I}=y;const z=$o(p),D=[];for(const _ of I){const{id:$}=_,w=T.get($);if(w){const N=$o(w),v=z.reduce((q,Z,F)=>q+Ar(N[F],Z),0),E=Number((v/4).toFixed(4));D.push({id:$,data:{droppableContainer:_,value:E}})}}return D.sort(Dr)})({collisionRect:i,droppableRects:a,droppableContainers:c});let M=zr(C,"id");if(M===f?.id&&C.length>1&&(M=C[1].id),M!=null){const y=l.get(n.id),p=l.get(M),T=p?a.get(p.id):null,I=p?.node.current;if(I&&T&&y&&p){const z=Hn(I).some((N,v)=>h[v]!==N),D=ir(y,p),_=(function(N,v){return!Pn(N)||!Pn(v)||!ir(N,v)?!1:N.data.current.sortable.index<v.data.current.sortable.index})(y,p),$=z||!D?{x:0,y:0}:{x:_?i.width-T.width:0,y:_?i.height-T.height:0},w={x:T.left,y:T.top};return $.x&&$.y?w:dn(w,$)}}}};function ir(e,t){return!(!Pn(e)||!Pn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const ga=e=>{let{transform:t}=e;return{...t,y:0}},nl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,index:l,editing:f,editable:h,selectedIndex:c,background:C,activeColor:M,borderColor:y,borderWidth:p,dragging:T,...I}=e;return s.jsxs("div",{ref:t,className:ct(a),style:{...i,display:"flex",flexDirection:"column",background:c===l?"white":C,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===l?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...I,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===l?"0px":"-1px",marginTop:c===l?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===l?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===l&&M?M?.toCSS():"none",minHeight:"2px"}})]})})),St={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"},ol=o.memo(o.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:i,fadeIn:a,handle:l,height:f,index:h,listeners:c,onRemove:C,renderItem:M,sorting:y,style:p,transition:T,transform:I,value:z,wrapperStyle:D,..._},$)=>{o.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=M?M({dragOverlay:!!t,dragging:!!n,sorting:!!y,index:h,fadeIn:!!a,listeners:c,ref:$,style:p,transform:I,transition:T,value:z}):s.jsx(s.Fragment,{children:z});return s.jsx("div",{className:ct("tab-item",St.Wrapper,a&&St.fadeIn,y&&St.sorting,t&&St.dragOverlay),style:{...D,transition:[T,D?.transition].filter(Boolean).join(", "),"--translate-x":I?`${Math.round(I.x)}px`:void 0,"--translate-y":I?`${Math.round(I.y)}px`:void 0,"--scale-x":I?.scaleX?`${I.scaleX}`:void 0,"--scale-y":I?.scaleY?`${I.scaleY}`:void 0,"--index":h},ref:$,children:s.jsx("div",{className:ct(St.Item,n&&St.dragging,l&&St.withHandle,t&&St.dragOverlay,i&&St.disabled,e&&St.color,"dragging"),style:p,"data-cypress":"draggable-item",...l?void 0:c,..._,tabIndex:l?void 0:-1,children:w})})})),ar={Row:"_Row_1kr10_1"},ha=o.memo(o.forwardRef(({children:e,horizontal:t,style:n},i)=>s.jsx("div",{ref:i,style:{...n},className:ct(ar.Row,t&&ar.horizontal),children:e}))),ma={...Jr},fa=o.memo(o.forwardRef((e,t)=>{const{className:n,activationConstraint:i,animateLayoutChanges:a,adjustScale:l=!1,collisionDetection:f=Ci,coordinateGetter:h=ua,dropAnimation:c=ma,getItemStyles:C=()=>({}),getNewIndex:M,handle:y=!1,items:p,onMove:T,isDisabled:I=()=>!1,measuring:z,modifiers:D,renderItem:_,renderDivider:$,reorderItems:w=ko,strategy:N=Mo,style:v,useDragOverlay:E=!0,onDragStart:q,wrapperStyle:Z=()=>({})}=e,[F,P]=o.useState(()=>p);o.useEffect(()=>{P(p)},[p]);const[W,pe]=o.useState(null),de=(function(){for(var b=arguments.length,ee=new Array(b),ne=0;ne<b;ne++)ee[ne]=arguments[ne];return o.useMemo(()=>[...ee].filter(Re=>Re!=null),[...ee])})(io($r,{activationConstraint:i}),io(Wr,{activationConstraint:i}),io(So,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:h})),le=F.indexOf.bind(F),R=W?le(W):-1,te=[];F.map((b,ee)=>{te.push(s.jsx(pa,{id:b,handle:y,index:ee,style:C,wrapperStyle:Z,disabled:I(b),renderItem:_,animateLayoutChanges:a,useDragOverlay:E,getNewIndex:M},b+"-"+ee));const ne=$?.({key:"divider-"+ee});ne&&te.push(ne)});const{getPortalContainer:k}=r.useFullscreenPortal();return s.jsxs(Hi,{sensors:de,collisionDetection:f,onDragStart:b=>{const{active:ee}=b;ee&&(q?.(b),pe(ee.id))},autoScroll:{canScroll:b=>!0},onDragEnd:b=>{if(pe(null),b.over){const ee=le(b.over.id);R!==ee&&(P(ne=>w(ne,R,ee)),T?.(R,ee))}},onDragCancel:()=>{pe(null)},measuring:z,modifiers:D,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...v},className:ct(n,St.Wrapper),children:s.jsx(oa,{items:F,strategy:N,children:s.jsx(ha,{ref:t,children:te})})}),E?Kt.createPortal(s.jsx(ea,{adjustScale:l,dropAnimation:c,children:W?s.jsx(ol,{value:F[R],handle:y,renderItem:_,wrapperStyle:Z({index:R,isDragging:!0,id:F[R]}),index:R,dragging:!0,style:C({id:F[R],index:R,isSorting:W!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),k()):null]})}));function pa({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:i,id:a,index:l,onRemove:f,style:h,renderItem:c,useDragOverlay:C,wrapperStyle:M}){const{attributes:y,isDragging:p,isSorting:T,listeners:I,overIndex:z,setNodeRef:D,transform:_,transition:$}=ca({id:a,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(ol,{ref:D,value:a,disabled:e,dragging:p,sorting:T,handle:i,renderItem:c,index:l,style:h({index:l,id:a,isDragging:p,isSorting:T,overIndex:z}),onRemove:f?()=>f(a):void 0,transform:_,transition:$,wrapperStyle:M({index:l,isDragging:p,id:a}),listeners:I,"data-index":l,"data-id":a,dragOverlay:!C&&p,...y})}const va="_TabStrip_3x0dp_1",Ca=new d.Color("rgb(33, 115, 70)"),ya="#eee",wa=e=>s.jsx(nl,{...e}),rl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,selectedTabIndex:l=0,tabNames:f=[],onSelectedTabIndexChange:h,onTabNameChange:c,onTabMove:C,renderScrollButtonStart:M=r.defaultCreateScrollStartButton,renderScrollButtonEnd:y=r.defaultCreateScrollEndButton,renderScrollButtonEdge:p=r.defaultCreateScrollEdgeButton,renderTabButton:T=wa,renderTabDivider:I,propsEditLabel:z,disabled:D=!1,disableDrag:_=!1,background:$="white",activeColor:w=Ca,borderColor:N=ya,borderWidth:v=1}=e,[E,q]=o.useState(l),[Z,F]=o.useState(f),P=o.useCallback(ie=>{const qe=k.current?.[ie]?.closest(".tab-item")??k.current?.[ie];qe&&Pe.current?.scrollTo({top:qe.offsetTop,left:qe.offsetLeft,behavior:"smooth"})},[]);o.useEffect(()=>{P(l)},[l]);const W=o.useCallback((ie,qe)=>{qe!==E&&(q(qe),h?.(qe)),P(qe)},[h,E]),pe=o.useCallback((ie,qe)=>{C?.(ie,qe)},[C]),de=o.useRef(null),[le,R]=o.useState(-1),te=o.useCallback((ie,qe)=>{c?.(ie,qe)},[c]);o.useLayoutEffect(()=>{q(l)},[l]),o.useLayoutEffect(()=>{F(f)},[f]);const k=o.useRef([]),b=o.useRef(null);o.useImperativeHandle(t,()=>Object.assign({startEdit(ie){k.current?.[ie]?.startEdit()},cancel(ie){k.current?.[ie]?.cancel()}},b.current),[E,le]);const ee=o.useCallback(({value:ie,index:qe,dragging:g})=>{const{style:je,maxLength:Be,...Ee}=z||{},u=s.jsx(Tr,{ref:L=>{k.current[qe]=L},value:ie,disabled:D,maxLength:Be,style:{color:E===qe&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...je},styleHover:{},onSubmit:L=>(de.current=!1,R(-1),te(qe,L)),onCancel:()=>{de.current=!1,R(-1)},onChange:L=>{de.current=!0,R(qe)},...Ee});return T({onClick:L=>W(L,qe),value:ie,index:qe,editing:le===qe&&de.current,editable:!0,disabled:D,selectedIndex:E,background:$,activeColor:w,borderColor:N,borderWidth:v,dragging:g,children:u})},[E,te,W,z,D,le,T]),[ne,{width:Re}]=Wt(),[Ce,{width:ye}]=Wt(),Pe=o.useRef(null),[ze,Ae]=o.useState({left:0,top:0,width:0,height:0}),[Ie,ue]=o.useState(null);o.useEffect(()=>{Ie!==null&&Pe.current&&Pe.current.scrollTo({left:Ie,behavior:"smooth"})},[Ie]);const O=o.useCallback((ie,qe=!1)=>{if(!Pe.current)return 0;let g=Pe.current.firstChild.getBoundingClientRect(),je=Pe.current.firstChild.firstChild.children,Be=0;return Be=qe?0:r.ScrollUtils.getScrollTo(ie,g.left,je,!0,Math.max(0,ie-200)),ue(Be),Math.max(0,Be)},[]),xe=o.useCallback((ie,qe=!1)=>{if(!Pe.current)return 0;let g=Pe.current.firstChild.getBoundingClientRect(),je=Pe.current.firstChild.firstChild.children,Be=0;const Ee=Math.ceil(ye-Re);return Be=qe?Ee:r.ScrollUtils.getScrollTo(ie,g.left,je,!1,Math.max(0,ie+200)),ue(Be),Math.min(Ee,Be)},[ye,Re]),Le=o.useRef(null),H=o.useRef(null),U=o.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=null,Le.current=null)},[]),he=o.useCallback((ie,qe,g=260)=>{Le.current=ie,H.current=setTimeout(()=>{const je=qe?O(Le.current||ie):xe(Le.current||ie);je!==Le.current?he(je,qe,120):U()},g)},[O,xe,U]);o.useEffect(()=>()=>U(),[U]);const ce=o.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(ze.left)<=0||Math.floor(ye-Re)===0,orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>he(Pe.current.scrollLeft,!0),onClick:ie=>O(Math.min(Pe.current.scrollLeft,Ie??Number.MAX_SAFE_INTEGER),ie.ctrlKey)}),[ze,Ie,ye,Re]),me=o.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(ye-Re)<=Math.ceil(ze.left),orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>he(Pe.current.scrollLeft,!1),onClick:ie=>xe(Math.max(Pe.current.scrollLeft,Ie??0),ie.ctrlKey)}),[ze,Ie,ye,Re]),Te=o.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,p?.(ce)]}),[ce,me,M,y,n,p]);return s.jsxs("div",{style:{...i,display:"flex",alignItems:"stretch"},className:ct(va,a),ref:b,children:[s.jsx("div",{style:{borderTop:`solid ${N} ${v}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Te}),s.jsx("div",{className:"Tabs",ref:ne,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:Pe,onScroll:ie=>{Ae({left:ie.target.scrollLeft,top:ie.target.scrollTop,width:ie.target.scrollWidth,height:ie.target.scrollHeight})},children:s.jsx(fa,{isDisabled:ie=>D||_,items:Z,strategy:na,modifiers:[ga],ref:Ce,renderItem:ee,renderDivider:I,onMove:pe,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:p(me)})]})}));rl.displayName="TabStrip";const Tn=o.createContext(null);Tn.displayName="DocThemesContext";const ba="_script-editor_iy654_5",xa={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},qa=o.lazy(()=>Promise.resolve().then(()=>require("./Da611GSWMp5ncOGO.cjs")));let nn,on,Et=["define","require"],sr=!1,In="@0.7.27";In!=="@local"&&In!=="@0.0.0"||(In="");const Sa=`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${In}/types/scripting.d.ts`,cr=async(e,t,n)=>{const i=e.getModel();if(!i)return;const a=await t.languages.typescript.getTypeScriptWorker(),l=await a(i.uri),f=await l.getNavigationTree(i.uri.toString()),h=e.getPosition();let c={...h};c.lineNumber=1,c.column=1;let C=!1;for(let z=h.lineNumber;z>=1;z--)if(i.getLineContent(z).trim()===""){const D=To(f,i.getOffsetAt({lineNumber:z,column:1}),"function");if(!D||ka(D)){C=!0,c.lineNumber=z+1;break}{const _=D.spans[0].start;z=i.getPositionAt(_).lineNumber,c.lineNumber=z}}let M=n,y=!1;!C&&!M.startsWith(`
28
28
  `)&&c.lineNumber>1&&(M=`
29
29
  `+M,y=!0);let p=!1;i.getLineCount()>1&&(M.endsWith(`
30
30
 
31
31
  `)||(M+=`
32
32
 
33
- `,p=!0));const T=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${M}`}];let I=null;i.pushEditOperations([],T,z=>(I=z[0].range,y&&I.startLineNumber++,p&&I.endLineNumber--,[new t.Selection(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn)])),e.setSelection({startLineNumber:I.endLineNumber,startColumn:I.endColumn,endLineNumber:I.startLineNumber,endColumn:I.startColumn})};function Ra(e,t){let n=null;const i=e.length;for(let a=0;!n&&a<i;a++){const l=e[a];l.getName()===t.text&&(n=l)}return n?n.getContext():"formula"}function vo(e,t,n,i,a=[]){if(i.kind==="function"&&i.kindModifiers==="export"){const l=i.spans[0].start,f=e.getPositionAt(l);a.push({name:i.text,type:Ra(n,i),lineNumber:f.lineNumber})}if(i.childItems)for(const l of i.childItems)vo(e,t,n,l,a);return a}function To(e,t,n="function",i){const a=e.spans,l=a.length;for(let f=0;f<l;f++){const h=a[f];if(h.start<=t&&t<h.start+h.length){if(e.kind===n&&(!i||e.kindModifiers===i))return e;for(const c of e.childItems||[]){const C=To(c,t,n,i);if(C)return C}}return null}}function ka(e){return e.kind==="comment"}const Ma=o.memo(o.forwardRef((e,t)=>{const{className:n,style:i,commands:a,readOnly:l=!1,darkMode:f,loadingPanel:h,autoFocus:c=!0,frame:C,onStatusChange:M,...y}=e,p=o.useRef(null),T=o.useRef(!1),I=o.useMemo(()=>({contains(ue){if(!p.current)return;const O=p.current.editor;return O&&O.getDomNode()?.contains(ue)},focus(){if(!p.current)return;const ue=p.current.editor;return ue&&ue.getDomNode()?.focus()}}),[]),z=o.useMemo(()=>[new r.Command("help",I,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),D=o.useMemo(()=>{let ue=null;const O=()=>I;return ue=a?a.createChildGroup(O,"scriptEditor",!1):new r.CommandGroup(O,"scriptEditor"),ue.addCommands(z,!0),ue},[a,z]),_=a.getGroup("workbook"),$=r.useCommands(_,["executeSelectedScript","saveScripts"]),w=$[0],N=$[1],v=w?.getContext(),[E,q]=o.useState({message:"Loading",cursor:"",dirty:!1}),[Z,F]=o.useState({loading:!1,compiling:!1,errors:[],warnings:[]}),P=r.useCallbackRef(ue=>{q(O=>{const xe={...O,...ue};return ge.CommonUtils.deepEqual(xe,O)?O:(N.update({disabled:!xe.dirty}).updateCallback(async()=>{await W()}),xe)})},[M,N]);o.useEffect(()=>{M?.(E)},[M,E]);const W=r.useCallbackRef(async()=>{if(!p.current)return;const ue=p.current.editor;let O;if(E.dirty){const xe=ue.getValue();await v?.saveSource(xe),O=v?.getScripts().getModules().getByName("scripts");const Le=O?.getSource(),H=ue.getValue(),U=(Le?.length??0)!==xe.length||Le!==H;P({dirty:U})}else O=v?.getScripts().getModules().getByName("scripts");return O},[E]);o.useEffect(()=>{const ue=C?.addListener({onBeforeHide:async()=>(await W(),!0)});return()=>{ue?.()}},[C]),o.useEffect(()=>{const ue=v?.getScripts();if(ue)return ue.addListeners({onBeforeSearch:()=>W()})},[v]);const pe=r.useCallbackRef(ue=>{w?.execute(ue)},[w]),de=o.useRef(""),[le,R]=o.useState(!1),te=r.useCallbackRef(async()=>{if(!p.current)return null;const ue=p.current,O=ue.editor;if(!O)return null;const xe=ue.monaco,Le=await(async(H,U,he="export")=>{const ce=H.getModel();if(!ce)return null;const me=await U.languages.typescript.getTypeScriptWorker(),Te=await me(ce.uri),ie=await Te.getNavigationTree(ce.uri.toString());let qe=null,g=H.getSelection();if(!g)return null;const je=g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn?ce.getLineCount():Math.min(g.endLineNumber,ce.getLineCount());for(let Be=g.startLineNumber;!qe&&Be<=je;Be++){const Ee=To(ie,ce.getOffsetAt({lineNumber:Be,column:1}),"function",he);Ee&&(qe=Ee.text)}return qe})(O,xe);return P({message:(Le??"").toUpperCase()}),Le?{source:O.getValue(),name:Le}:null},[]);r.useCallbackRef(ge.CommonUtils.debounce(W,200),[]);const k=r.useCallbackRef(async(ue,O,xe)=>{F(H=>({...H,compiling:!0}));const Le=await v?.getScripts().createModule({source:xe?.getValue(),declarationsOnly:!0});Le&&((async function(H,U){const he=[];for(let ce=1;ce<H.getLineCount()+1;ce++){const me={startLineNumber:ce,startColumn:1,endLineNumber:ce,endColumn:H.getLineLength(ce)+1},Te=H.getValueInRange(me).indexOf("modelt");Te!==-1&&he.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:U.MarkerSeverity.Hint,startLineNumber:me.startLineNumber,startColumn:Te+1,endLineNumber:me.startLineNumber,endColumn:Te+5})}U.editor.setModelMarkers(H,"owner",he)})(ue,O),(async function(H,U,he,ce){const me=await U.languages.typescript.getTypeScriptWorker(),Te=await me(H.uri),ie=await Te.getNavigationTree(H.uri.toString()),qe=vo(H,U,ce,ie).map(g=>{let je=null,Be=null;return g.type==="formula"?(je="formula.margin-icon",Be="Formula"):g.type==="macro"?(je="macro.margin-icon",Be="Macro"):g.type==="autoRun"&&(je="autorun.margin-icon",Be="Auto Run"),{range:new U.Range(g.lineNumber,1,g.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:je,glyphMarginHoverMessage:{value:Be},stickiness:U.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});ye.current&&ye.current.clear(),ye.current=he.createDecorationsCollection(qe)})(ue,O,xe,Le?Le.getFunctions().getItems():ge.CommonUtils.EmptyArray),F(H=>({...H,compiling:!1})))},[v]),b=r.useCallbackRef(ge.CommonUtils.debounce(k,580),[]),ee=r.useCallbackRef(async(ue=void 0)=>{if(!p.current||!v)return;const O=p.current.editor.getPosition(),xe={cursor:O?O.toString():""};ue!==void 0&&(xe.message=ue),P(xe);const Le=te();v.setSelectedFunction(Le)},[v]);o.useEffect(()=>{},[Z]);const ne=o.useRef(null),Re=r.useCallbackRef(async()=>{await W(),C?.close()},[C]);o.useEffect(()=>{if(!v)return;const ue={insertSnippet:xe=>{p.current?.editor&&cr(p.current.editor,p.current.monaco,xe)},close:()=>Re()};v.setEditor(ue),v.setSelectedFunction(te());const O=v.addContainerListener({onBeforeSave:async()=>{W()},onReadonlyChange(){},onScriptChange:async()=>{if(!p.current?.editor||!v)return;const xe=p.current.editor,Le=v.getScripts().getModules().getItems()[0]?.getSource()??"";xe.setValue(Le)}});return()=>{v.setEditor(null),O()}},[v]),o.useEffect(()=>()=>{const ue=ne.current;if(ue){ue.dispose();const O=ue.debounceTimer;O!==void 0&&clearTimeout(O),ne.current=null}},[le]);const Ce=r.useCallbackRef(ue=>{const O=p.current?.editor;return!!O&&(O.focus(ue),!0)},[E]),ye=o.useRef(null),Pe=r.useCallbackRef((ue,O)=>{p.current={monaco:O,editor:ue},R(!0),ee("Loading Types");const xe=v?.getScripts().getModules().getItems()[0]?.getSource()??"";ue.setValue(xe),Promise.resolve().then(()=>require("./gi7H7UxDWl1xhmpB.cjs")).then(H=>H.customEditor).then(async H=>{ee(""),H.AutoTypings.create(ue,{shareCache:!0,dontAdaptEditorOptions:!0,monaco:O,onUpdate:(U,he)=>{if(U.type==="LookedUpPackage"&&U.success!==void 0){const ce=O.languages.typescript.typescriptDefaults.getDiagnosticsOptions();O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({...ce,diagnosticCodesToIgnore:[]})}},onError:U=>{U==="Not implemented yet"&&(U="Compile Errors"),console.warn("Error compiling types",U)}}).then(U=>{ne.current=U;const he=ue.getModel();b(he,O,ue),(()=>{if(sr)return;const ce=(Te,ie)=>{try{if(ie===void 0)try{delete globalThis[Te]}catch{try{globalThis[Te]=void 0}catch{}}else globalThis[Te]=ie}catch{}},me=Et.length;for(let Te=0;Te<me;Te++){const ie=Et[Te];ce(ie,nn[ie])}nn=void 0,sr=!0})()})}),ue.addCommand("executeScript",function(H,...U){U?.[0]&&pe({functionName:U?.[0]})},""),ue.addAction({id:"executeScript",label:"Execute",keybindings:[O.KeyCode.F8],run:async H=>{const U=te();v?.setSelectedFunction(U);const he=await U;pe(he)}}),ue.addAction({id:"saveScript",label:"Save Script",keybindings:[O.KeyMod.CtrlCmd|O.KeyCode.KeyS],run:H=>{W()}}),ue.onMouseDown(async H=>{if(H.target.type===O.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const U=H.target.position.lineNumber,he=await O.languages.typescript.getTypeScriptWorker(),ce=await he(Le.uri),me=await ce.getNavigationTree(Le.uri.toString()),Te=(await W()).getFunctions().getItems(),ie=vo(Le,O,Te,me).find(qe=>qe.lineNumber===U);if(ie){const qe=H.event.browserEvent.button;qe===0?ie.type==="macro"||ie.type==="autoRun"?pe({functionName:ie.name}):ie.type==="formula"&&v?.quickInsertFunction?.(ie.name):qe===2&&(console.log("Context menu for function:",ie.name),H.event.browserEvent.preventDefault())}}}),ue.onDidChangeModelContent(()=>{P({dirty:!0}),b(Le,O,ue)}),O.editor.onDidChangeMarkers(H=>{H.some(U=>U.toString()===Le.uri.toString())});const Le=ue.getModel();(function(H,U){U.languages.registerInlayHintsProvider("typescript",{provideInlayHints(he,ce,me){const Te=[];for(let ie=1;ie<he.getLineCount()+1;ie++){const qe={startLineNumber:ie,startColumn:1,endLineNumber:ie,endColumn:he.getLineLength(ie)+1},g="hint",je=he.getValueInRange(qe).indexOf("hint");je!==-1&&Te.push({kind:U.languages.InlayHintKind.Type,position:{lineNumber:qe.startLineNumber,column:je+g.length+1},label:"[hint]"})}return{hints:Te,dispose:()=>{}}}})})(0,O),Le.onDidChangeContent(H=>{const U=v?.getScripts().getModules().getByName("scripts"),he=U?.getSource(),ce=ue.getValue(),me=(he?.length??0)!==ce.length||he!==ce;P({dirty:me})}),ue.onDidChangeCursorPosition(H=>{ee()})},[v]),ze=o.useMemo(()=>le?null:h||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[le,h]),Ae=o.useMemo(()=>{if(!le){if(!nn){nn={};const O=Et.length;for(let xe=0;xe<O;xe++){const Le=Et[xe];nn[Le]=globalThis[Le]}}if(on){const O=Et.length;for(let xe=0;xe<O;xe++){const Le=Et[xe];globalThis[Le]=on[Le]}}}const ue=v?.getScripts().getModules()?.getByName("scripts")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(o.Suspense,{children:s.jsx(qa,{theme:f?"extended-dark":"extended",options:{...xa,fixedOverflowWidgets:!0,readOnly:l},language:"typescript",value:ue,onValidate:O=>{let xe=!1;const Le=O?O.length:0;for(let H=0;!xe&&H<Le;H++)O[H].severity===8&&(xe=!0)},beforeMount:O=>{O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,diagnosticCodesToIgnore:[2307]}),O.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),O.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),O.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let xe=!1,Le=!1;try{const H=await(async()=>await(await fetch(Sa)).text())(),U=O.Uri.parse('inmemory://model/"sheetxl-models".d.ts');let he=O.editor.getModel(U);he?Le=!0:he=O.editor.createModel(H,"typescript",U),O.editor.setModelMarkers(he,"default",[]),xe=!0}catch(H){console.warn("cant load types",H)}if(O.languages.registerLinkProvider("*",{provideLinks:(H,U)=>{const he=[],ce={links:he},me=H.getLinesContent(),Te=me.length;for(let ie=1;ie<=Te;ie++){const qe=me[ie-1],g=O.editor.tokenize(qe,"typescript"),je=g[0].length;for(let Be=0;Be<je;Be++){const Ee=g[0]?.[Be];if(Ee&&Ee.type.startsWith("string")){let u=Ee.offset,L=g[0]?.[Be+1]?.offset??qe.length,K=new O.Range(ie,u+1,ie,L+1),m=H.getValueInRange(K);const A=m[0];A!=="`"&&A!=="'"&&A!=='"'||(u++,m=m.substring(1));const G=m[m.length-1];G!=="`"&&G!=="'"&&G!=='"'||(u++,m=m.substring(0,m.length-1));try{v.getRanges(m)&&he.push({range:{endColumn:L,endLineNumber:ie,startColumn:u,startLineNumber:ie},tooltip:`Goto range '${m}'`,url:`/range/${m}`})}catch(J){console.warn(J)}}}}return ce}}),O.editor.registerLinkOpener({open(H){if(H?.path?.startsWith("/range/")){try{v.getRanges(H.path.substring(7))?.select()}catch(U){console.warn("invalid range",U)}return!0}return!1}}),!Le){const H=O.languages.typescript.typescriptDefaults.getCompilerOptions();O.languages.typescript.typescriptDefaults.setCompilerOptions({...H,target:O.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,baseUrl:"inmemory://model/",allowNonTsExtensions:!0})}if(de.current&&(await cr(p.current.editor,p.current.monaco,de.current),de.current=null),T.current&&requestAnimationFrame(async()=>{T.current&&O.editor.focus()}),!on){on={};const H=Et.length;for(let U=0;U<H;U++){const he=Et[U];on[he]=globalThis[he]}}})()},onMount:Pe})}),ze]})},[v,D,l,ze,f]),Ie=r.useImperativeElement(t,()=>({isScriptEditorElement:()=>!0,focus:ue=>{Ce(ue)},close:()=>Re(),getEditor:()=>v?.getEditor()}),[v]);return o.useEffect(()=>(c&&requestAnimationFrame(()=>{Ie.current?.focus()}),()=>{p.current?.editor&&requestAnimationFrame(()=>{Ie.current?.contains(document.activeElement)&&Ie.current?.focus()})}),[]),s.jsx("div",{className:ct("script-editor",ba,n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...i},ref:Ie,...y,children:Ae})})),Ta=Object.freeze(Object.defineProperty({__proto__:null,FindScopeOptions:{Workbook:"workbook",Sheet:"sheet"}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>d.LicenseManager}),exports.ChartAreaIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z"}),s.jsx("path",{className:"styled info_light",d:"M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z"}),s.jsx("path",{className:"styled info_dark",d:"M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z"})]}),exports.ChartAreaStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z"}),s.jsx("path",{className:"styled background",d:"M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z"}),s.jsx("path",{className:"styled info_light",d:"M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartAreaStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1941 h -1834 v -1834 h 1834 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z"}),s.jsx("path",{className:"styled info_light",d:"M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z"})]}),exports.ChartBarIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z"}),s.jsx("path",{className:"styled background",d:"M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z"}),s.jsx("path",{className:"styled info_light",d:"M 1813 277 v 299 h -1706 v -299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1088 v 299 h -810 v -299 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 896 1109 h -795 v -42 h 838 v 322 h -43 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z"})]}),exports.ChartBarStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 704 832 v -469 h 640 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1600 v -469 h 811 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z"})]}),exports.ChartBarStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 533 832 v -469 h 1195 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1173 1600 v -469 h 555 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z"})]}),exports.ChartBubble3DIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartBubbleIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1387 h -469 v -640 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 1131 h -469 v -811 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z"})]}),exports.ChartColumnStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1515 h -469 v -1195 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 875 h -469 v -555 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z"})]}),exports.ChartEditor=ii,exports.ChartLineIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z"}),s.jsx("path",{className:"styled info",d:"M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z"})]}),exports.ChartLineMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z"}),s.jsx("path",{className:"styled info",d:"M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z"})]}),exports.ChartLineStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z"})]}),exports.ChartLineStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 1877 299 h -1770 v -43 h 1770 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedPercentMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z"})]}),exports.ChartPieDoughnutIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z"}),s.jsx("path",{className:"styled background",d:"M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z"}),s.jsx("path",{className:"styled current_color",d:"M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z"}),s.jsx("path",{className:"styled info_light",d:"M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z"})]}),exports.ChartPieIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z"}),s.jsx("path",{className:"styled current_color",d:"M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z"}),s.jsx("path",{className:"styled info_light",d:"M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z"})]}),exports.ChartScatterLinesIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z"}),s.jsx("path",{className:"styled info",d:"M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z"}),s.jsx("path",{className:"styled current_color",d:"M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartScatterLinesMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z"}),s.jsx("path",{className:"styled background",d:"M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z"}),s.jsx("path",{className:"styled info",d:"M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z"})]}),exports.ChartScatterLinesMarkersSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z"}),s.jsx("path",{className:"styled background",d:"M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z"}),s.jsx("path",{className:"styled info",d:"M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z"})]}),exports.ChartScatterLinesSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z"}),s.jsx("path",{className:"styled info",d:"M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z"})]}),exports.ChartScatterMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"}),s.jsx("path",{className:"styled background",d:"M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z"}),s.jsx("path",{className:"styled info",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"})]}),exports.CommandContext=Ta,exports.CornerTriangle=uo,exports.DefaultTaskPaneRegistry=En,exports.DocThemesContext=Tn,exports.DocThemesProvider=e=>{const{themes:t,children:n}=e;return s.jsx(Tn.Provider,{value:t,children:n})},exports.EditableLabel=Tr,exports.EmptyFrame=Yl,exports.FilterButton=dr,exports.LogoNoPaddingIcon=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),s.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),s.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),s.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.LogoTextNoPaddingIcon=vr,exports.MovableArea=xr,exports.PictureEditor=Mr,exports.ScriptEditor=Ma,exports.SheetCellEditor=gr,exports.SheetCellRenderer=ur,exports.SheetElement=kr,exports.SheetScrollbar=bo,exports.StaticBorderRenderer=xl,exports.StyledStrokePath=mr,exports.Tab=nl,exports.TabStrip=rl,exports.TaskPaneArea=El,exports.TaskPaneProvider=({children:e,renderArea:t,onUpdateArea:n,registry:i=En})=>{const a=o.useRef(null),l=o.useRef(null),[f,h]=o.useState(null),[c,C]=o.useState(null),M=r.useCallbackRef(p=>{const T=t({registry:i,onClose:()=>{C(null),n?.(null)},ref:I=>{I&&C(I)}});return n?.(T),T},[t,i,f]),y=o.useMemo(()=>({activateTaskPane(p,T){l.current!==p&&(a.current?a.current.activateTaskPane(p,T):(h(p),M(p)))}}),[]);return o.useEffect(()=>{c&&f&&(c.activateTaskPane(f,{autoFocus:!0}),h(null))},[f,c]),o.createElement(Cr.Provider,{value:c??y},e)},exports.TaskPaneStrip=wo,exports.TaskPaneTitle=yo,exports.createCellEditStateFromCell=hr,exports.useBordersOverlay=Co,exports.useDocThemes=()=>{const e=o.useContext(Tn),[t]=o.useState(()=>new d.ThemeCollection);return o.useMemo(()=>e||t,[e])},exports.useModelListener=Qe,exports.useMovableCommands=qr,exports.useRangeListener=(e,t,n,i)=>{const a=o.useRef(n);a.current=n;const l=i?.fireOnAddressChange??!0;o.useEffect(()=>{if(!e||!t||!a.current){const c={getSource:()=>null,getFrom:()=>null,getTo:()=>null,trigger:"delete",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()};return void a.current?.(c)}const f=c=>{a.current?.(c)},h=e.getRange(t).addListener(f,i);if(l){const c=e.getRange(t);f({getSource:()=>c,getFrom:()=>null,getTo:()=>null,trigger:"modelChange",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()})}return()=>{h?.()}},[e,t])},exports.useSheetCommands=wr,exports.useSheetCopyPaste=br,exports.useTaskPaneArea=yr;
33
+ `,p=!0));const T=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${M}`}];let I=null;i.pushEditOperations([],T,z=>(I=z[0].range,y&&I.startLineNumber++,p&&I.endLineNumber--,[new t.Selection(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn)])),e.setSelection({startLineNumber:I.endLineNumber,startColumn:I.endColumn,endLineNumber:I.startLineNumber,endColumn:I.startColumn})};function Ra(e,t){let n=null;const i=e.length;for(let a=0;!n&&a<i;a++){const l=e[a];l.getName()===t.text&&(n=l)}return n?n.getContext():"formula"}function vo(e,t,n,i,a=[]){if(i.kind==="function"&&i.kindModifiers==="export"){const l=i.spans[0].start,f=e.getPositionAt(l);a.push({name:i.text,type:Ra(n,i),lineNumber:f.lineNumber})}if(i.childItems)for(const l of i.childItems)vo(e,t,n,l,a);return a}function To(e,t,n="function",i){const a=e.spans,l=a.length;for(let f=0;f<l;f++){const h=a[f];if(h.start<=t&&t<h.start+h.length){if(e.kind===n&&(!i||e.kindModifiers===i))return e;for(const c of e.childItems||[]){const C=To(c,t,n,i);if(C)return C}}return null}}function ka(e){return e.kind==="comment"}const Ma=o.memo(o.forwardRef((e,t)=>{const{className:n,style:i,commands:a,readOnly:l=!1,darkMode:f,loadingPanel:h,autoFocus:c=!0,frame:C,onStatusChange:M,...y}=e,p=o.useRef(null),T=o.useRef(!1),I=o.useMemo(()=>({contains(ue){if(!p.current)return;const O=p.current.editor;return O&&O.getDomNode()?.contains(ue)},focus(){if(!p.current)return;const ue=p.current.editor;return ue&&ue.getDomNode()?.focus()}}),[]),z=o.useMemo(()=>[new r.Command("help",I,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),D=o.useMemo(()=>{let ue=null;const O=()=>I;return ue=a?a.createChildGroup(O,"scriptEditor",!1):new r.CommandGroup(O,"scriptEditor"),ue.addCommands(z,!0),ue},[a,z]),_=a.getGroup("workbook"),$=r.useCommands(_,["executeSelectedScript","saveScripts"]),w=$[0],N=$[1],v=w?.getContext(),[E,q]=o.useState({message:"Loading",cursor:"",dirty:!1}),[Z,F]=o.useState({loading:!1,compiling:!1,errors:[],warnings:[]}),P=r.useCallbackRef(ue=>{q(O=>{const xe={...O,...ue};return ge.CommonUtils.deepEqual(xe,O)?O:(N.update({disabled:!xe.dirty}).updateCallback(async()=>{await W()}),xe)})},[M,N]);o.useEffect(()=>{M?.(E)},[M,E]);const W=r.useCallbackRef(async()=>{if(!p.current)return;const ue=p.current.editor;let O;if(E.dirty){const xe=ue.getValue();await v?.saveSource(xe),O=v?.getScripts().getModules().getByName("scripts");const Le=O?.getSource(),H=ue.getValue(),U=(Le?.length??0)!==xe.length||Le!==H;P({dirty:U})}else O=v?.getScripts().getModules().getByName("scripts");return O},[E]);o.useEffect(()=>{const ue=C?.addListener({onBeforeHide:async()=>(await W(),!0)});return()=>{ue?.()}},[C]),o.useEffect(()=>{const ue=v?.getScripts();if(ue)return ue.addListeners({onBeforeSearch:()=>W()})},[v]);const pe=r.useCallbackRef(ue=>{w?.execute(ue)},[w]),de=o.useRef(""),[le,R]=o.useState(!1),te=r.useCallbackRef(async()=>{if(!p.current)return null;const ue=p.current,O=ue.editor;if(!O)return null;const xe=ue.monaco,Le=await(async(H,U,he="export")=>{const ce=H.getModel();if(!ce)return null;const me=await U.languages.typescript.getTypeScriptWorker(),Te=await me(ce.uri),ie=await Te.getNavigationTree(ce.uri.toString());let qe=null,g=H.getSelection();if(!g)return null;const je=g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn?ce.getLineCount():Math.min(g.endLineNumber,ce.getLineCount());for(let Be=g.startLineNumber;!qe&&Be<=je;Be++){const Ee=To(ie,ce.getOffsetAt({lineNumber:Be,column:1}),"function",he);Ee&&(qe=Ee.text)}return qe})(O,xe);return P({message:(Le??"").toUpperCase()}),Le?{source:O.getValue(),name:Le}:null},[]);r.useCallbackRef(ge.CommonUtils.debounce(W,200),[]);const k=r.useCallbackRef(async(ue,O,xe)=>{F(H=>({...H,compiling:!0}));const Le=await v?.getScripts().createModule({source:xe?.getValue(),declarationsOnly:!0});Le&&((async function(H,U){const he=[];for(let ce=1;ce<H.getLineCount()+1;ce++){const me={startLineNumber:ce,startColumn:1,endLineNumber:ce,endColumn:H.getLineLength(ce)+1},Te=H.getValueInRange(me).indexOf("modelt");Te!==-1&&he.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:U.MarkerSeverity.Hint,startLineNumber:me.startLineNumber,startColumn:Te+1,endLineNumber:me.startLineNumber,endColumn:Te+5})}U.editor.setModelMarkers(H,"owner",he)})(ue,O),(async function(H,U,he,ce){const me=await U.languages.typescript.getTypeScriptWorker(),Te=await me(H.uri),ie=await Te.getNavigationTree(H.uri.toString()),qe=vo(H,U,ce,ie).map(g=>{let je=null,Be=null;return g.type==="formula"?(je="formula.margin-icon",Be="Formula"):g.type==="macro"?(je="macro.margin-icon",Be="Macro"):g.type==="autoRun"&&(je="autorun.margin-icon",Be="Auto Run"),{range:new U.Range(g.lineNumber,1,g.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:je,glyphMarginHoverMessage:{value:Be},stickiness:U.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});ye.current&&ye.current.clear(),ye.current=he.createDecorationsCollection(qe)})(ue,O,xe,Le?Le.getFunctions().getItems():ge.CommonUtils.EmptyArray),F(H=>({...H,compiling:!1})))},[v]),b=r.useCallbackRef(ge.CommonUtils.debounce(k,580),[]),ee=r.useCallbackRef(async(ue=void 0)=>{if(!p.current||!v)return;const O=p.current.editor.getPosition(),xe={cursor:O?O.toString():""};ue!==void 0&&(xe.message=ue),P(xe);const Le=te();v.setSelectedFunction(Le)},[v]);o.useEffect(()=>{},[Z]);const ne=o.useRef(null),Re=r.useCallbackRef(async()=>{await W(),C?.close()},[C]);o.useEffect(()=>{if(!v)return;const ue={insertSnippet:xe=>{p.current?.editor&&cr(p.current.editor,p.current.monaco,xe)},close:()=>Re()};v.setEditor(ue),v.setSelectedFunction(te());const O=v.addContainerListener({onBeforeSave:async()=>{W()},onReadonlyChange(){},onScriptChange:async()=>{if(!p.current?.editor||!v)return;const xe=p.current.editor,Le=v.getScripts().getModules().getItems()[0]?.getSource()??"";xe.setValue(Le)}});return()=>{v.setEditor(null),O()}},[v]),o.useEffect(()=>()=>{const ue=ne.current;if(ue){ue.dispose();const O=ue.debounceTimer;O!==void 0&&clearTimeout(O),ne.current=null}},[le]);const Ce=r.useCallbackRef(ue=>{const O=p.current?.editor;return!!O&&(O.focus(ue),!0)},[E]),ye=o.useRef(null),Pe=r.useCallbackRef((ue,O)=>{p.current={monaco:O,editor:ue},R(!0),ee("Loading Types");const xe=v?.getScripts().getModules().getItems()[0]?.getSource()??"";ue.setValue(xe),Promise.resolve().then(()=>require("./DNki9dGbSn_gUfd3.cjs")).then(H=>H.customEditor).then(async H=>{ee(""),H.AutoTypings.create(ue,{shareCache:!0,dontAdaptEditorOptions:!0,monaco:O,onUpdate:(U,he)=>{if(U.type==="LookedUpPackage"&&U.success!==void 0){const ce=O.languages.typescript.typescriptDefaults.getDiagnosticsOptions();O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({...ce,diagnosticCodesToIgnore:[]})}},onError:U=>{U==="Not implemented yet"&&(U="Compile Errors"),console.warn("Error compiling types",U)}}).then(U=>{ne.current=U;const he=ue.getModel();b(he,O,ue),(()=>{if(sr)return;const ce=(Te,ie)=>{try{if(ie===void 0)try{delete globalThis[Te]}catch{try{globalThis[Te]=void 0}catch{}}else globalThis[Te]=ie}catch{}},me=Et.length;for(let Te=0;Te<me;Te++){const ie=Et[Te];ce(ie,nn[ie])}nn=void 0,sr=!0})()})}),ue.addCommand("executeScript",function(H,...U){U?.[0]&&pe({functionName:U?.[0]})},""),ue.addAction({id:"executeScript",label:"Execute",keybindings:[O.KeyCode.F8],run:async H=>{const U=te();v?.setSelectedFunction(U);const he=await U;pe(he)}}),ue.addAction({id:"saveScript",label:"Save Script",keybindings:[O.KeyMod.CtrlCmd|O.KeyCode.KeyS],run:H=>{W()}}),ue.onMouseDown(async H=>{if(H.target.type===O.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const U=H.target.position.lineNumber,he=await O.languages.typescript.getTypeScriptWorker(),ce=await he(Le.uri),me=await ce.getNavigationTree(Le.uri.toString()),Te=(await W()).getFunctions().getItems(),ie=vo(Le,O,Te,me).find(qe=>qe.lineNumber===U);if(ie){const qe=H.event.browserEvent.button;qe===0?ie.type==="macro"||ie.type==="autoRun"?pe({functionName:ie.name}):ie.type==="formula"&&v?.quickInsertFunction?.(ie.name):qe===2&&(console.log("Context menu for function:",ie.name),H.event.browserEvent.preventDefault())}}}),ue.onDidChangeModelContent(()=>{P({dirty:!0}),b(Le,O,ue)}),O.editor.onDidChangeMarkers(H=>{H.some(U=>U.toString()===Le.uri.toString())});const Le=ue.getModel();(function(H,U){U.languages.registerInlayHintsProvider("typescript",{provideInlayHints(he,ce,me){const Te=[];for(let ie=1;ie<he.getLineCount()+1;ie++){const qe={startLineNumber:ie,startColumn:1,endLineNumber:ie,endColumn:he.getLineLength(ie)+1},g="hint",je=he.getValueInRange(qe).indexOf("hint");je!==-1&&Te.push({kind:U.languages.InlayHintKind.Type,position:{lineNumber:qe.startLineNumber,column:je+g.length+1},label:"[hint]"})}return{hints:Te,dispose:()=>{}}}})})(0,O),Le.onDidChangeContent(H=>{const U=v?.getScripts().getModules().getByName("scripts"),he=U?.getSource(),ce=ue.getValue(),me=(he?.length??0)!==ce.length||he!==ce;P({dirty:me})}),ue.onDidChangeCursorPosition(H=>{ee()})},[v]),ze=o.useMemo(()=>le?null:h||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[le,h]),Ae=o.useMemo(()=>{if(!le){if(!nn){nn={};const O=Et.length;for(let xe=0;xe<O;xe++){const Le=Et[xe];nn[Le]=globalThis[Le]}}if(on){const O=Et.length;for(let xe=0;xe<O;xe++){const Le=Et[xe];globalThis[Le]=on[Le]}}}const ue=v?.getScripts().getModules()?.getByName("scripts")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(o.Suspense,{children:s.jsx(qa,{theme:f?"extended-dark":"extended",options:{...xa,fixedOverflowWidgets:!0,readOnly:l},language:"typescript",value:ue,onValidate:O=>{let xe=!1;const Le=O?O.length:0;for(let H=0;!xe&&H<Le;H++)O[H].severity===8&&(xe=!0)},beforeMount:O=>{O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,diagnosticCodesToIgnore:[2307]}),O.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),O.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),O.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let xe=!1,Le=!1;try{const H=await(async()=>await(await fetch(Sa)).text())(),U=O.Uri.parse('inmemory://model/"sheetxl-models".d.ts');let he=O.editor.getModel(U);he?Le=!0:he=O.editor.createModel(H,"typescript",U),O.editor.setModelMarkers(he,"default",[]),xe=!0}catch(H){console.warn("cant load types",H)}if(O.languages.registerLinkProvider("*",{provideLinks:(H,U)=>{const he=[],ce={links:he},me=H.getLinesContent(),Te=me.length;for(let ie=1;ie<=Te;ie++){const qe=me[ie-1],g=O.editor.tokenize(qe,"typescript"),je=g[0].length;for(let Be=0;Be<je;Be++){const Ee=g[0]?.[Be];if(Ee&&Ee.type.startsWith("string")){let u=Ee.offset,L=g[0]?.[Be+1]?.offset??qe.length,K=new O.Range(ie,u+1,ie,L+1),m=H.getValueInRange(K);const A=m[0];A!=="`"&&A!=="'"&&A!=='"'||(u++,m=m.substring(1));const G=m[m.length-1];G!=="`"&&G!=="'"&&G!=='"'||(u++,m=m.substring(0,m.length-1));try{v.getRanges(m)&&he.push({range:{endColumn:L,endLineNumber:ie,startColumn:u,startLineNumber:ie},tooltip:`Goto range '${m}'`,url:`/range/${m}`})}catch(J){console.warn(J)}}}}return ce}}),O.editor.registerLinkOpener({open(H){if(H?.path?.startsWith("/range/")){try{v.getRanges(H.path.substring(7))?.select()}catch(U){console.warn("invalid range",U)}return!0}return!1}}),!Le){const H=O.languages.typescript.typescriptDefaults.getCompilerOptions();O.languages.typescript.typescriptDefaults.setCompilerOptions({...H,target:O.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,baseUrl:"inmemory://model/",allowNonTsExtensions:!0})}if(de.current&&(await cr(p.current.editor,p.current.monaco,de.current),de.current=null),T.current&&requestAnimationFrame(async()=>{T.current&&O.editor.focus()}),!on){on={};const H=Et.length;for(let U=0;U<H;U++){const he=Et[U];on[he]=globalThis[he]}}})()},onMount:Pe})}),ze]})},[v,D,l,ze,f]),Ie=r.useImperativeElement(t,()=>({isScriptEditorElement:()=>!0,focus:ue=>{Ce(ue)},close:()=>Re(),getEditor:()=>v?.getEditor()}),[v]);return o.useEffect(()=>(c&&requestAnimationFrame(()=>{Ie.current?.focus()}),()=>{p.current?.editor&&requestAnimationFrame(()=>{Ie.current?.contains(document.activeElement)&&Ie.current?.focus()})}),[]),s.jsx("div",{className:ct("script-editor",ba,n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...i},ref:Ie,...y,children:Ae})})),Ta=Object.freeze(Object.defineProperty({__proto__:null,FindScopeOptions:{Workbook:"workbook",Sheet:"sheet"}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>d.LicenseManager}),exports.ChartAreaIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z"}),s.jsx("path",{className:"styled info_light",d:"M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z"}),s.jsx("path",{className:"styled info_dark",d:"M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z"})]}),exports.ChartAreaStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z"}),s.jsx("path",{className:"styled background",d:"M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z"}),s.jsx("path",{className:"styled info_light",d:"M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartAreaStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1941 h -1834 v -1834 h 1834 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z"}),s.jsx("path",{className:"styled info_light",d:"M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z"})]}),exports.ChartBarIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z"}),s.jsx("path",{className:"styled background",d:"M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z"}),s.jsx("path",{className:"styled info_light",d:"M 1813 277 v 299 h -1706 v -299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1088 v 299 h -810 v -299 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 896 1109 h -795 v -42 h 838 v 322 h -43 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z"})]}),exports.ChartBarStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 704 832 v -469 h 640 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1600 v -469 h 811 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z"})]}),exports.ChartBarStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 533 832 v -469 h 1195 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1173 1600 v -469 h 555 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z"})]}),exports.ChartBubble3DIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartBubbleIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1387 h -469 v -640 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 1131 h -469 v -811 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z"})]}),exports.ChartColumnStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1515 h -469 v -1195 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 875 h -469 v -555 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z"})]}),exports.ChartEditor=ii,exports.ChartLineIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z"}),s.jsx("path",{className:"styled info",d:"M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z"})]}),exports.ChartLineMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z"}),s.jsx("path",{className:"styled info",d:"M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z"})]}),exports.ChartLineStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z"})]}),exports.ChartLineStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 1877 299 h -1770 v -43 h 1770 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedPercentMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z"})]}),exports.ChartPieDoughnutIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z"}),s.jsx("path",{className:"styled background",d:"M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z"}),s.jsx("path",{className:"styled current_color",d:"M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z"}),s.jsx("path",{className:"styled info_light",d:"M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z"})]}),exports.ChartPieIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z"}),s.jsx("path",{className:"styled current_color",d:"M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z"}),s.jsx("path",{className:"styled info_light",d:"M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z"})]}),exports.ChartScatterLinesIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z"}),s.jsx("path",{className:"styled info",d:"M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z"}),s.jsx("path",{className:"styled current_color",d:"M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartScatterLinesMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z"}),s.jsx("path",{className:"styled background",d:"M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z"}),s.jsx("path",{className:"styled info",d:"M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z"})]}),exports.ChartScatterLinesMarkersSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z"}),s.jsx("path",{className:"styled background",d:"M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z"}),s.jsx("path",{className:"styled info",d:"M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z"})]}),exports.ChartScatterLinesSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z"}),s.jsx("path",{className:"styled info",d:"M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z"})]}),exports.ChartScatterMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"}),s.jsx("path",{className:"styled background",d:"M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z"}),s.jsx("path",{className:"styled info",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"})]}),exports.CommandContext=Ta,exports.CornerTriangle=uo,exports.DefaultTaskPaneRegistry=En,exports.DocThemesContext=Tn,exports.DocThemesProvider=e=>{const{themes:t,children:n}=e;return s.jsx(Tn.Provider,{value:t,children:n})},exports.EditableLabel=Tr,exports.EmptyFrame=Yl,exports.FilterButton=dr,exports.LogoNoPaddingIcon=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),s.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),s.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),s.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.LogoTextNoPaddingIcon=vr,exports.MovableArea=xr,exports.PictureEditor=Mr,exports.ScriptEditor=Ma,exports.SheetCellEditor=gr,exports.SheetCellRenderer=ur,exports.SheetElement=kr,exports.SheetScrollbar=bo,exports.StaticBorderRenderer=xl,exports.StyledStrokePath=mr,exports.Tab=nl,exports.TabStrip=rl,exports.TaskPaneArea=El,exports.TaskPaneProvider=({children:e,renderArea:t,onUpdateArea:n,registry:i=En})=>{const a=o.useRef(null),l=o.useRef(null),[f,h]=o.useState(null),[c,C]=o.useState(null),M=r.useCallbackRef(p=>{const T=t({registry:i,onClose:()=>{C(null),n?.(null)},ref:I=>{I&&C(I)}});return n?.(T),T},[t,i,f]),y=o.useMemo(()=>({activateTaskPane(p,T){l.current!==p&&(a.current?a.current.activateTaskPane(p,T):(h(p),M(p)))}}),[]);return o.useEffect(()=>{c&&f&&(c.activateTaskPane(f,{autoFocus:!0}),h(null))},[f,c]),o.createElement(Cr.Provider,{value:c??y},e)},exports.TaskPaneStrip=wo,exports.TaskPaneTitle=yo,exports.createCellEditStateFromCell=hr,exports.useBordersOverlay=Co,exports.useDocThemes=()=>{const e=o.useContext(Tn),[t]=o.useState(()=>new d.ThemeCollection);return o.useMemo(()=>e||t,[e])},exports.useModelListener=Qe,exports.useMovableCommands=qr,exports.useRangeListener=(e,t,n,i)=>{const a=o.useRef(n);a.current=n;const l=i?.fireOnAddressChange??!0;o.useEffect(()=>{if(!e||!t||!a.current){const c={getSource:()=>null,getFrom:()=>null,getTo:()=>null,trigger:"delete",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()};return void a.current?.(c)}const f=c=>{a.current?.(c)},h=e.getRange(t).addListener(f,i);if(l){const c=e.getRange(t);f({getSource:()=>c,getFrom:()=>null,getTo:()=>null,trigger:"modelChange",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()})}return()=>{h?.()}},[e,t])},exports.useSheetCommands=wr,exports.useSheetCopyPaste=br,exports.useTaskPaneArea=yr;