@sheetxl/react 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
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%}}._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
- import { FormulaError as Qr, NumberFormat as Zt, ICell as Kt, IBorder as At, ITextFrame as ve, GeomUtils as Rt, ScalarType as Un, IFont as dt, IRange as qe, LicenseManager as el, IColor as Jl, AutoFill as Ql, ISheetView as Qt, Color as tl, IFill as ho, RangeClipboardItem as ei, ExternalRangeClipboardItem as ti, TextUtils as er, IAnchored as rn, CoordUtils as ni, ThemeCollection as oi } from "@sheetxl/sdk";
3
- import { LicenseManager as zd } from "@sheetxl/sdk";
4
- import { ReactUtils as it, useImperativeElement as jt, useCallbackRef as ie, KeyCodes as It, SimpleCommand as Ue, Command as J, KeyModifiers as ne, CommandGroup as Co, useCopyPaste as nl, useEditMode as cn, useGlobalClipboard as ri, NotificationType as tr, useCommands as ol, ScrollbarOrientation as ln, VirtualScrollbar as li, MouseButtonCodes as rl, ToolTipPlacement as Fn, DefaultNotifier as ii, HorizontalAlignment as ai, ScrollPane as si, useFullscreenPortal as di, defaultCreateScrollStartButton as ci, defaultCreateScrollEndButton as ui, defaultCreateScrollEdgeButton as gi, ScrollUtils as gr } from "@sheetxl/utils-react";
2
+ import { FormulaError as Qr, NumberFormat as Kt, ICell as Yt, IBorder as Et, ITextFrame as ve, GeomUtils as Rt, ScalarType as jn, IFont as dt, IRange as qe, LicenseManager as el, IColor as Ql, AutoFill as ei, ISheetView as en, Color as tl, IFill as ho, RangeClipboardItem as ti, ExternalRangeClipboardItem as ni, TextUtils as er, IAnchored as ln, CoordUtils as oi, ThemeCollection as ri } from "@sheetxl/sdk";
3
+ import { LicenseManager as Fd } from "@sheetxl/sdk";
4
+ import { ReactUtils as it, useImperativeElement as _t, useCallbackRef as ie, KeyCodes as It, SimpleCommand as Ue, Command as J, KeyModifiers as ne, CommandGroup as Co, useCopyPaste as nl, useEditMode as un, useGlobalClipboard as li, NotificationType as tr, useCommands as ol, ScrollbarOrientation as an, VirtualScrollbar as ii, MouseButtonCodes as rl, ToolTipPlacement as Ln, DefaultNotifier as ai, HorizontalAlignment as si, ScrollPane as di, useFullscreenPortal as ci, defaultCreateScrollStartButton as ui, defaultCreateScrollEndButton as gi, defaultCreateScrollEdgeButton as hi, ScrollUtils as gr } from "@sheetxl/utils-react";
5
5
  export * from "@sheetxl/utils-react";
6
- import { jsx as p, jsxs as Je, Fragment as qn } from "react/jsx-runtime";
7
- import { CommonUtils as rt, AnchorLocation as yt, TypesUtils as Gn, CoordUtils as qt } from "@sheetxl/utils";
8
- import tt, { memo as ft, useMemo as Ce, useState as ue, forwardRef as wt, useRef as Me, useEffect as Se, useLayoutEffect as Ot, useCallback as Xe, version as hi, useReducer as an, Suspense as ll, createElement as mi, createContext as Cn, useContext as Yt, cloneElement as pi, useImperativeHandle as fi } from "react";
9
- import { STANDARD_KEY_CHARS as vi, useSelection as il, useHeaderSelection as wi, HeaderRenderer as yi, Grid as al, HeaderDivider as bi, SELECTION_CLIP_INSETS as jo, defaultSelectionRenderer as qi, useKeyboardEditorOverlay as Ci, Selection as sl, SVGLine as ao } from "@sheetxl/grid-react";
10
- import { unstable_batchedUpdates as Bn, createPortal as dl } from "react-dom";
6
+ import { jsx as p, jsxs as Je, Fragment as Sn } from "react/jsx-runtime";
7
+ import { CommonUtils as rt, AnchorLocation as yt, TypesUtils as _n, CoordUtils as qt } from "@sheetxl/utils";
8
+ import tt, { memo as ft, useMemo as Ce, useState as ue, forwardRef as wt, useRef as Re, useEffect as Se, useLayoutEffect as Bt, useCallback as Xe, version as mi, useReducer as sn, Suspense as ll, createElement as pi, createContext as xn, useContext as Xt, cloneElement as fi, useImperativeHandle as vi } from "react";
9
+ import { STANDARD_KEY_CHARS as wi, useSelection as il, useHeaderSelection as yi, HeaderRenderer as bi, Grid as al, HeaderDivider as qi, SELECTION_CLIP_INSETS as jo, defaultSelectionRenderer as Ci, useKeyboardEditorOverlay as Si, Selection as sl, SVGLine as ao } from "@sheetxl/grid-react";
10
+ import { unstable_batchedUpdates as Hn, createPortal as dl } from "react-dom";
11
11
  /**
12
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.3
12
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
13
13
  *
14
14
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
15
  * License: The license can be found at https://www.sheetxl.com/license.
16
16
  */
17
- const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: jn }, Symbol.toStringTag, { value: "Module" })), cl = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), _o = (e, t = !0, n = cl) => {
17
+ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Xs = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Zn }, Symbol.toStringTag, { value: "Module" })), cl = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), _o = (e, t = !0, n = cl) => {
18
18
  if (!n || n.length === 0) return e;
19
19
  if (e === void 0) return n[0];
20
20
  if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
21
21
  let r = rt.findEqualOrGreater(n, e);
22
22
  return t ? (n[r] === e && (r += 1), n[r] || (r -= 1), n[r]) : (r -= 1, n[r]);
23
- }, Xs = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: cl, findNextFontSize: _o }, Symbol.toStringTag, { value: "Module" })), hr = ft((e) => {
23
+ }, Js = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: cl, findNextFontSize: _o }, Symbol.toStringTag, { value: "Module" })), hr = ft((e) => {
24
24
  const { anchorLocation: t = yt.TopLeft, cellWidth: n, cellHeight: r, size: l = 7, inset: o = 1, darkMode: i, fill: c, pathProps: g, style: s, ...y } = e, d = l, u = o;
25
25
  let k = "red", b = [], D = [];
26
26
  return t === yt.TopLeft ? (k = i ? "rgb(255, 198, 246)" : "green", b.push(u), D.push(u), b.push(u + d), D.push(u), b.push(u), D.push(u + d)) : t === yt.TopRight ? (k = i ? "rgb(0, 255, 255)" : "red", b.push(n - u), D.push(u), b.push(n - (u + d)), D.push(u), b.push(n - u), D.push(u + d)) : t === yt.BottomRight ? (k = i ? "rgb(236, 252, 211)" : "purple", b.push(n - u), D.push(r - u), b.push(n - (u + d)), D.push(r - u), b.push(n - u), D.push(r - (u + d))) : t === yt.BottomLeft && (k = i ? "rgb(255, 236, 183)" : "blue", b.push(u), D.push(r - u), b.push(u + d), D.push(r - u), b.push(u), D.push(r - (u + d))), p("svg", { width: `${n}`, height: `${r}`, viewBox: `0 0 ${n} ${r}`, style: { position: "absolute", width: `${n}px`, height: `${r}px`, pointerEvents: "none", ...s }, ...y, children: p("path", { d: `M ${b[0]} ${D[0]} L ${b[1]} ${D[1]} L ${b[2]} ${D[2]} L ${b[0]} ${D[0]} Z`, fill: c ?? k, ...g }) });
27
- }), Si = (e) => {
27
+ }), xi = (e) => {
28
28
  const { renderBounds: t, darkMode: n, zoom: r, disabled: l, filter: o, onFilterButtonMouseDown: i, style: c, ...g } = e, s = Ce(() => {
29
29
  let k = null;
30
30
  const b = o.getSortField();
@@ -35,28 +35,28 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
35
35
  return p("div", { style: { width: `${u}px`, height: `${u}px`, right: "0px", boxShadow: `0px 0px 0px 0.5px var(${y && !l ? "--sxl-app-color-primary-light, rgba(0,0,0,.55)" : "--sxl-app-color-border-button, grey"})`, backgroundColor: "var(--sxl-app-color-button-fill, white)", backgroundImage: "var(--sxl-app-image-background)", borderRadius: (u > 12 ? 1 : 0) + "px", marginRight: "2px", display: "flex", alignItems: "center", justifyContent: "center", cursor: l ? void 0 : "pointer", ...c }, onMouseEnter: () => d(!0), onMouseLeave: () => d(!1), onMouseDown: (k) => {
36
36
  i?.(k, o), k.preventDefault();
37
37
  }, ...g, children: p("svg", { width: "" + 15 * r, height: "" + 15 * r, viewBox: "0 0 15 15", style: { fill: `var(${y && !l ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l ? 0.6 : 1 }, children: p("path", { d: s }) }) });
38
- }, xi = (e) => {
39
- const { value: t, coords: n, bounds: r, children: l, style: o, range: i, zoom: c = 1, view: g, bodyStyle: s, normalStyle: y, showFormulas: d, showZeros: u, docTheme: k, onLinkMouseDown: b, onFilterButtonMouseDown: D, filterButtonProps: E, createFilterButton: G = Si, ...H } = e, w = r.height / c, L = r.width / c, q = t, v = q.getValue(), S = t.getStyle(), F = s?.darkMode ?? !1;
38
+ }, ki = (e) => {
39
+ const { value: t, coords: n, bounds: r, children: l, style: o, range: i, zoom: c = 1, view: g, bodyStyle: s, normalStyle: y, showFormulas: d, showZeros: u, docTheme: k, onLinkMouseDown: b, onFilterButtonMouseDown: D, filterButtonProps: E, createFilterButton: G = xi, ...H } = e, w = r.height / c, L = r.width / c, q = t, v = q.getValue(), S = t.getStyle(), F = s?.darkMode ?? !1;
40
40
  let T, M;
41
41
  const j = v && v.isFormulaError, U = j && v instanceof Qr.Parse;
42
42
  let B, O = d || U;
43
43
  if (O) if (q.isSpillOverflow()) M = "";
44
44
  else {
45
45
  const Oe = q.getFormulaText();
46
- Oe ? M = Oe : T = q.getNumberFormat(Zt.Type.General);
46
+ Oe ? M = Oe : T = q.getNumberFormat(Kt.Type.General);
47
47
  }
48
48
  else T = q.getNumberFormat();
49
49
  O || (B = q.getTextOverflow());
50
50
  const W = B ? B.colBounds.width + B.leftOffset + B.rightOffset : L, te = B ? B.anchorBounds.x - B.leftOffset : 0, z = B ? B.anchorBounds.width : L, A = B ? B.anchorBounds.x : 0;
51
51
  let P, $ = q.getRenderHorizontalAlignment();
52
52
  T && (P = T?.formattedRuns, M = P?.runs[0]?.text ?? T.displayText);
53
- const ge = q.getCalcStatus() === Kt.CalcStatus.Pending;
53
+ const ge = q.getCalcStatus() === Yt.CalcStatus.Pending;
54
54
  let ae = null, Y = S.getFill().toCSS(F, r), _ = 0, be = 0;
55
55
  if (!S.getBorder().isEmpty()) {
56
56
  const Oe = S.getBorder().getRight();
57
- !Oe.isNone() && At.BuiltInDefinitions.get(Oe.getStyle()).width > 1 && (_ = 1);
57
+ !Oe.isNone() && Et.BuiltInDefinitions.get(Oe.getStyle()).width > 1 && (_ = 1);
58
58
  const C = S.getBorder().getBottom();
59
- !C.isNone() && At.BuiltInDefinitions.get(C.getStyle()).width > 1 && (be = 1);
59
+ !C.isNone() && Et.BuiltInDefinitions.get(C.getStyle()).width > 1 && (be = 1);
60
60
  }
61
61
  let Ae = null;
62
62
  if (L !== z || _ || be || typeof Y?.backgroundPosition == "number") {
@@ -71,12 +71,12 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
71
71
  }
72
72
  const De = S.getFont();
73
73
  let ce = T?.conditionalColor;
74
- const de = S.getAlignment(), me = de.getHorizontal() === ve.HorizontalAlignment.Fill, ye = de.getHorizontal() === ve.HorizontalAlignment.CenterContinuous || me, Re = ye || O ? 0 : de.getRotation(), Ie = q.getInsets(), xe = Ie.top + Ie.bottom;
74
+ const de = S.getAlignment(), me = de.getHorizontal() === ve.HorizontalAlignment.Fill, ye = de.getHorizontal() === ve.HorizontalAlignment.CenterContinuous || me, Te = ye || O ? 0 : de.getRotation(), Ie = q.getInsets(), xe = Ie.top + Ie.bottom;
75
75
  let Ne = Ie.left, Pe = Ie.right;
76
76
  const je = { ...o, left: o.left - 1, top: o.top - 1, width: o.width + 1 + _, height: o.height + 1 + be }, m = q.getColumnFilter(), Ke = m && !m?.hasHiddenButton();
77
77
  let ut = null;
78
78
  ge && (ut = Je("div", { className: "slider", children: [p("div", { className: "line" }), p("div", { className: "subline inc" })] }, "pending"));
79
- const Qe = !(ge || Ke || Ae || l || we || P?.runs.length > 1 || B || Re % 360 != 0);
79
+ const Qe = !(ge || Ke || Ae || l || we || P?.runs.length > 1 || B || Te % 360 != 0);
80
80
  Y?.background === "none" && (Y = null);
81
81
  let X = ye || !(!B || !(B.rightIndex > 0 || B.leftIndex > 0 || B.colSpan > 1));
82
82
  if (!X) {
@@ -91,36 +91,36 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
91
91
  const x = q.getTextFrame(O);
92
92
  if (a && x) {
93
93
  let R = W - 1 - (Ne + Pe);
94
- if (Re) {
94
+ if (Te) {
95
95
  C = x.layout().bounds;
96
96
  const ke = { x: 0, y: 0, width: W - 1, height: w };
97
97
  if (P) {
98
98
  let pe = P.width;
99
99
  if (T.repeatPlaceholder || T.repeatChars.length > 0) {
100
- const fe = Rt.boundsToPoints(ke), Te = Rt.rotatePoints(fe, -Re);
101
- pe = Rt.minBoundingRect(Te).width;
100
+ const fe = Rt.boundsToPoints(ke), Me = Rt.rotatePoints(fe, -Te);
101
+ pe = Rt.minBoundingRect(Me).width;
102
102
  }
103
103
  C = { ...C, width: pe };
104
104
  }
105
- N = Rt.clipToOuterRect({ ...C, width: C.width + 1 + Ne + Pe }, ke, Re), R = N.width - 1 - (Ne + Pe) + 0.01;
105
+ N = Rt.clipToOuterRect({ ...C, width: C.width + 1 + Ne + Pe }, ke, Te), R = N.width - 1 - (Ne + Pe) + 0.01;
106
106
  }
107
107
  let f = null;
108
108
  Oe && (f = { width: R });
109
109
  let I = null, h = T?.repeatPlaceholder;
110
110
  const V = x.layout(f);
111
- if (C = V.bounds, O ? C = { ...C, width: 0 } : P && (C = { ...C, width: T.repeatPlaceholder || T.repeatChars.length > 0 ? R : P.width }), Re && Oe) {
111
+ if (C = V.bounds, O ? C = { ...C, width: 0 } : P && (C = { ...C, width: T.repeatPlaceholder || T.repeatChars.length > 0 ? R : P.width }), Te && Oe) {
112
112
  let se = null;
113
113
  V.visitLines({ visitTextLine: (ke, pe) => {
114
114
  let fe = ke.bounds;
115
- const Te = Rt.boundsToPoints(fe), We = Rt.rotatePoints(Te, Re), Be = Rt.minBoundingRect(We);
115
+ const Me = Rt.boundsToPoints(fe), We = Rt.rotatePoints(Me, Te), Be = Rt.minBoundingRect(We);
116
116
  fe = { ...fe, x: (Be.width - fe.width) / 2, y: (Be.height - fe.height) / 2 }, se = se ? Rt.unionBounds(se, fe) : fe;
117
117
  } }), C = { ...se, width: se.width + Ne + Pe };
118
118
  }
119
- if (!h && q.getType() !== Un.String && Math.floor(C.width) > R) {
120
- if (S.getNumberFormat() === "General" && q.getType() === Un.Number) {
121
- const se = S.measureText("0"), ke = Math.floor(R / se.width), pe = v, fe = rt.splitNumber(pe), Te = Math.min(10, ke - (Math.max(1, fe.ipLength) + 1) - (pe < 0 ? 1 : 0));
122
- if (Te >= -1) {
123
- const We = `0${Te > 0 ? "." : ""}${"#".repeat(Math.max(0, Te))}`;
119
+ if (!h && q.getType() !== jn.String && Math.floor(C.width) > R) {
120
+ if (S.getNumberFormat() === "General" && q.getType() === jn.Number) {
121
+ const se = S.measureText("0"), ke = Math.floor(R / se.width), pe = v, fe = rt.splitNumber(pe), Me = Math.min(10, ke - (Math.max(1, fe.ipLength) + 1) - (pe < 0 ? 1 : 0));
122
+ if (Me >= -1) {
123
+ const We = `0${Me > 0 ? "." : ""}${"#".repeat(Math.max(0, Me))}`;
124
124
  I = q.getNumberFormat(We).displayText, I === "0" && pe < 0 && (I = "-0");
125
125
  } else if (Math.abs(pe) >= Math.pow(10, 5) || Math.abs(pe) <= Math.pow(10, -5)) {
126
126
  const We = ke - 5 - (pe < 0 ? 1 : 0);
@@ -140,65 +140,65 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
140
140
  const se = S.measureText(I).width;
141
141
  se && (C = { ...C, width: se });
142
142
  }
143
- if (oe = { ...C, width: C.width + Ne + Pe, height: C.height }, Re && !Oe) {
144
- const se = Rt.boundsToPoints(oe), ke = Rt.rotatePoints(se, Re), pe = Rt.minBoundingRect(ke);
143
+ if (oe = { ...C, width: C.width + Ne + Pe, height: C.height }, Te && !Oe) {
144
+ const se = Rt.boundsToPoints(oe), ke = Rt.rotatePoints(se, Te), pe = Rt.minBoundingRect(ke);
145
145
  oe.width = pe.width, oe.height = pe.height;
146
146
  }
147
147
  $ === ve.HorizontalAlignment.Center || $ === ve.HorizontalAlignment.CenterContinuous ? oe.x = (W - oe.width) / 2 : $ === ve.HorizontalAlignment.Right ? oe.x = W - oe.width - 0.5 : oe.x = 0.5, de.getVertical() === ve.VerticalAlignment.Center ? oe.y = (w - oe.height) / 2 : de.getVertical() === ve.VerticalAlignment.Bottom ? oe.y = w - oe.height - xe : oe.y = xe;
148
- const Z = Qe ? { ...H } : void 0, ee = { style: { left: o.left - 1, top: o.top - 1, width: o.width + 1, height: o.height + 1, transform: Re ? `rotate(${Re}deg)` : void 0, cursor: b ? "pointer" : void 0, pointerEvents: b ? "auto" : void 0, zIndex: X ? 1 : void 0, ...Y }, onMouseDown: b, onDoubleClick: b ? (se) => {
148
+ const Z = Qe ? { ...H } : void 0, ee = { style: { left: o.left - 1, top: o.top - 1, width: o.width + 1, height: o.height + 1, transform: Te ? `rotate(${Te}deg)` : void 0, cursor: b ? "pointer" : void 0, pointerEvents: b ? "auto" : void 0, zIndex: X ? 1 : void 0, ...Y }, onMouseDown: b, onDoubleClick: b ? (se) => {
149
149
  se.stopPropagation(), se.preventDefault();
150
150
  } : null, ...Z };
151
151
  U && (ee.style.textDecorationStyle = "wavy", ee.style.textDecorationColor = F ? "rgb(0, 255, 255)" : "red", ee.style.textDecorationLine = "underline");
152
- const re = De.getSize(), le = (se, ke, pe, fe, Te, We, Be, et = null) => {
153
- let $e = re * c, nt = pe, He = Be?.runs ? Be.runs : [{ type: Zt.ParseRunType.Text, text: se, width: S.measureText(se, $e).width }];
152
+ const re = De.getSize(), le = (se, ke, pe, fe, Me, We, Be, et = null) => {
153
+ let $e = re * c, nt = pe, He = Be?.runs ? Be.runs : [{ type: Kt.ParseRunType.Text, text: se, width: S.measureText(se, $e).width }];
154
154
  Be && Be?.width !== C.width && (C = { ...C, width: Be?.width });
155
155
  let at = Ne;
156
156
  if (Be?.lastRepeatIndex >= 0 && R > Be?.width) {
157
157
  const ot = Be.runs[Be.lastRepeatIndex];
158
158
  if (ot) {
159
159
  const vt = [...He], Nt = Math.max(0, R - 1 - Be.width);
160
- let Vt = 0, Lt = "";
160
+ let Ht = 0, Lt = "";
161
161
  if (Nt > 0) {
162
162
  const Mt = Math.floor(Nt / ot.width);
163
- Lt = Mt > 0 ? ot.text.repeat(Mt) : "", Vt = Nt;
163
+ Lt = Mt > 0 ? ot.text.repeat(Mt) : "", Ht = Nt;
164
164
  }
165
- vt[Be.lastRepeatIndex] = { type: Zt.ParseRunType.Repeat, text: Lt, width: Vt }, He = vt, C = { ...C, width: Be.width + Vt };
165
+ vt[Be.lastRepeatIndex] = { type: Kt.ParseRunType.Repeat, text: Lt, width: Ht }, He = vt, C = { ...C, width: Be.width + Ht };
166
166
  }
167
167
  }
168
- const Ct = (ot, vt, Nt, Vt, Lt, Mt, bt, Xt, un, Rn = null) => {
169
- let nn, Tn = nt.width;
170
- Te === ve.HorizontalAlignment.Justify ? (Tn = Lt, We || (nn = "justify")) : Te === ve.HorizontalAlignment.Distributed && (Tn = Lt, nn = We || ot.text.split(" ").length - 1 == 0 ? "center" : "justify");
171
- const { style: _t, className: Qn, ...eo } = Rn;
172
- let gn = ot.text;
173
- if (Te === ve.HorizontalAlignment.Fill && T?.repeatChars.length === 0) {
168
+ const Ct = (ot, vt, Nt, Ht, Lt, Mt, bt, Jt, gn, Mn = null) => {
169
+ let on, Dn = nt.width;
170
+ Me === ve.HorizontalAlignment.Justify ? (Dn = Lt, We || (on = "justify")) : Me === ve.HorizontalAlignment.Distributed && (Dn = Lt, on = We || ot.text.split(" ").length - 1 == 0 ? "center" : "justify");
171
+ const { style: Zt, className: to, ...Ot } = Mn;
172
+ let hn = ot.text;
173
+ if (Me === ve.HorizontalAlignment.Fill && T?.repeatChars.length === 0) {
174
174
  const St = Math.max(1, Math.floor((nt?.width ?? 0) / (bt?.width ?? 1)));
175
- gn = gn.repeat(St);
175
+ hn = hn.repeat(St);
176
176
  }
177
- let Gt = nt.height;
178
- const on = De.getVerticalAlignment(), Mn = on === dt.VerticalAlignment.Sub, Mo = on === dt.VerticalAlignment.Super;
179
- if (Mn || Mo) {
177
+ let En = nt.height;
178
+ const jt = De.getVerticalAlignment(), rn = jt === dt.VerticalAlignment.Sub, no = jt === dt.VerticalAlignment.Super;
179
+ if (rn || no) {
180
180
  const St = De.getSuperSubScale();
181
- $e *= St, Gt *= St;
181
+ $e *= St, En *= St;
182
182
  }
183
- const mt = { textAlign: nn, textAlignLast: nn, background: void 0, ..._t, ...De.toCSS(F, c, !0), fontSize: $e * dt.getDeviceScale() };
184
- ce && (mt.color = ce.toCSS(F));
185
- const Dn = at + vt;
186
- let hn = Ie.top + nt.y + 0;
187
- if (Mn && (hn += un - $e), Mt) {
188
- const St = (bt.x + Dn) * c + 1, Dt = (bt.y + hn) * c + 1;
189
- Dt < 0 ? mt.marginTop = Dt : mt.paddingTop = Dt, St < 0 ? (mt.width = (_t?.width ?? 0) - St, mt.left = (_t?.left ?? 0) + St) : mt.paddingLeft = St, mt.paddingRight = Math.max(0, (_t?.width ?? 0) - Tn * c - St), mt.paddingBottom = Math.max(0, (_t?.height ?? 0) - nt.height * c - Dt), mt.height = (_t?.height ?? 0) + (Dt < 0 ? -Dt : 0), (Dt < 0 || St < 0) && (mt.clipPath = `inset(${Dt < 0 ? -Dt : 0}px 0px 0px ${St < 0 ? 1 - St : 0}px)`);
190
- } else if (mt.left = (bt.x + Dn) * c + 1, mt.top = (bt.y + hn) * c + 1, mt.width = bt.width * c, mt.height = bt.height * c, Re && !Oe) {
183
+ const mt = { textAlign: on, textAlignLast: on, ...Zt, ...De.toCSS(F, c, !0), fontSize: $e * dt.getDeviceScale() };
184
+ Qe || (mt.background = void 0), ce && (mt.color = ce.toCSS(F));
185
+ const oo = at + vt;
186
+ let mn = Ie.top + nt.y + 0;
187
+ if (rn && (mn += gn - $e), Mt) {
188
+ const St = (bt.x + oo) * c + 1, At = (bt.y + mn) * c + 1;
189
+ At < 0 ? mt.marginTop = At : mt.paddingTop = At, St < 0 ? (mt.width = (Zt?.width ?? 0) - St, mt.left = (Zt?.left ?? 0) + St) : mt.paddingLeft = St, mt.paddingRight = Math.max(0, (Zt?.width ?? 0) - Dn * c - St), mt.paddingBottom = Math.max(0, (Zt?.height ?? 0) - nt.height * c - At), mt.height = (Zt?.height ?? 0) + (At < 0 ? -At : 0), (At < 0 || St < 0) && (mt.clipPath = `inset(${At < 0 ? -At : 0}px 0px 0px ${St < 0 ? 1 - St : 0}px)`);
190
+ } else if (mt.left = (bt.x + oo) * c + 1, mt.top = (bt.y + mn) * c + 1, mt.width = bt.width * c, mt.height = bt.height * c, Te && !Oe) {
191
191
  mt.left = (bt.x + vt) * c + 1, mt.top = (bt.y + (nt.y + 0)) * c + 1;
192
- const St = Rt.centerPoint({ x: at + vt, y: 0, width: ot.width, height: nt.height }), Dt = Rt.centerPoint({ x: at, y: 0, width: Lt, height: nt.height }), En = Rt.rotatePoints([St], Re, Dt), no = { x: En[0].x - St.x, y: En[0].y - St.y };
193
- mt.left = mt.left + no.x * c, mt.top = mt.top + no.y * c;
194
- const mn = { ...nt, x: at, y: Ie.top, width: nt.width + (Ne + Pe) }, Do = Rt.boundsToPoints(mn), An = Rt.rotatePoints(Do, Re), oo = Rt.minBoundingRect(An);
195
- mn.width = oo.width, mn.height = oo.height;
196
- const pn = Rt.centerPoint(mn), ro = { x: pn.x - Dt.x, y: pn.y - Dt.y };
197
- mt.left = mt.left + ro.x * c, mt.top = mt.top + ro.y * c;
192
+ const St = Rt.centerPoint({ x: at + vt, y: 0, width: ot.width, height: nt.height }), At = Rt.centerPoint({ x: at, y: 0, width: Lt, height: nt.height }), In = Rt.rotatePoints([St], Te, At), zn = { x: In[0].x - St.x, y: In[0].y - St.y };
193
+ mt.left = mt.left + zn.x * c, mt.top = mt.top + zn.y * c;
194
+ const pn = { ...nt, x: at, y: Ie.top, width: nt.width + (Ne + Pe) }, Mo = Rt.boundsToPoints(pn), Do = Rt.rotatePoints(Mo, Te), fn = Rt.minBoundingRect(Do);
195
+ pn.width = fn.width, pn.height = fn.height;
196
+ const ro = Rt.centerPoint(pn), vn = { x: ro.x - At.x, y: ro.y - At.y };
197
+ mt.left = mt.left + vn.x * c, mt.top = mt.top + vn.y * c;
198
198
  }
199
- mt.lineHeight = Gt * c + "px";
200
- const to = Qe ? void 0 : "text-line";
201
- K.push(p("div", { className: Qn ? `${Qn} ${to}` : to, style: mt, ...eo, children: gn }, `text-${nt.y}-${Vt}-${Nt}`));
199
+ mt.lineHeight = En * c + "px";
200
+ const An = Qe ? void 0 : "text-line";
201
+ K.push(p("div", { className: to ? `${to} ${An}` : An, style: mt, ...Ot, children: hn }, `text-${nt.y}-${Ht}-${Nt}`));
202
202
  };
203
203
  if (de.getOverflow() === ve.Overflow.Shrink && R > 0) {
204
204
  let ot = C?.width ?? 0, vt = 0;
@@ -207,20 +207,21 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
207
207
  C = { ...C, width: ot };
208
208
  }
209
209
  let Ft = nt.x;
210
- Te === ve.HorizontalAlignment.Right ? Ft += C.width - nt.width : Te !== ve.HorizontalAlignment.Center && Te !== ve.HorizontalAlignment.CenterContinuous || (Ft += (C.width - nt.width) / 2), Be?.lastRepeatIndex >= 0 && (Ft = nt.x);
211
- const Ht = He.length;
212
- for (let ot = 0; ot < Ht; ot++) {
210
+ Me === ve.HorizontalAlignment.Right ? Ft += C.width - nt.width : Me !== ve.HorizontalAlignment.Center && Me !== ve.HorizontalAlignment.CenterContinuous || (Ft += (C.width - nt.width) / 2), Be?.lastRepeatIndex >= 0 && (Ft = nt.x);
211
+ const Pt = He.length;
212
+ for (let ot = 0; ot < Pt; ot++) {
213
213
  const vt = He[ot];
214
- (vt.type === Zt.ParseRunType.Text || vt.type === Zt.ParseRunType.Repeat) && (vt.type, Zt.ParseRunType.Repeat, Ct(vt, Ft, ot, ke, Te === ve.HorizontalAlignment.Justify || Te === ve.HorizontalAlignment.Distributed || Be?.lastRepeatIndex >= 0 ? R : nt.width, Qe, { x: oe.x + te, y: oe.y, width: vt.width, height: C.height }, 0, fe, et)), Ft += vt.width;
214
+ (vt.type === Kt.ParseRunType.Text || vt.type === Kt.ParseRunType.Repeat) && (vt.type, Kt.ParseRunType.Repeat, Ct(vt, Ft, ot, ke, Me === ve.HorizontalAlignment.Justify || Me === ve.HorizontalAlignment.Distributed || Be?.lastRepeatIndex >= 0 ? R : nt.width, Qe, { x: oe.x + te, y: oe.y, width: vt.width, height: C.height }, 0, fe, et)), Ft += vt.width;
215
215
  }
216
216
  };
217
217
  I ? le(I, 0, { x: 0, y: 0, ...C }, V.lines[0].baseline, $, !0, null, ee) : V.visitLines({ visitTextLine: (se, ke, pe) => {
218
- const fe = se.runs[0].text.replace(/\s+$/, ""), Te = ke === pe - 1;
219
- let We = $ === ve.HorizontalAlignment.Justify && (Te || se.runs[0].text.endsWith(`
218
+ const fe = se.runs[0].text.replace(/\s+$/, ""), Me = ke === pe - 1;
219
+ let We = $ === ve.HorizontalAlignment.Justify && (Me || se.runs[0].text.endsWith(`
220
220
  `)) ? ve.HorizontalAlignment.Left : $, Be = 0;
221
- ke > 0 && (de.getVertical() === ve.VerticalAlignment.Distributed || de.getVertical() === ve.VerticalAlignment.Justify) && (Be = Math.max(0, (w - (xe + 3) - se.bounds.height * pe) / (pe - 1) * ke)), de.getVertical() === ve.VerticalAlignment.Distributed && Re && Re % 90 == 0 && Re % 180 != 0 && (We = ve.HorizontalAlignment.Distributed), We !== ve.HorizontalAlignment.Justify && We !== ve.HorizontalAlignment.Distributed && We !== ve.HorizontalAlignment.Fill || (C = { ...C, width: R });
222
- const et = { ...se.bounds, y: se.bounds.y + Be + 0, width: me || T && (T.repeatChars.length > 0 || T.spacingChars.length > 0) ? C.width : se.bounds.width };
223
- le(fe, ke, et, x.lines[0].baseline, We, Te, pe === 1 ? P : null, Qe && ke > 0 ? { ...ee, style: { ...ee.style, background: void 0 } } : ee);
221
+ ke > 0 && (de.getVertical() === ve.VerticalAlignment.Distributed || de.getVertical() === ve.VerticalAlignment.Justify) && (Be = Math.max(0, (w - (xe + 3) - se.bounds.height * pe) / (pe - 1) * ke)), de.getVertical() === ve.VerticalAlignment.Distributed && Te && Te % 90 == 0 && Te % 180 != 0 && (We = ve.HorizontalAlignment.Distributed), We !== ve.HorizontalAlignment.Justify && We !== ve.HorizontalAlignment.Distributed && We !== ve.HorizontalAlignment.Fill || (C = { ...C, width: R });
222
+ let et = me || T && (T.repeatChars.length > 0 || T.spacingChars.length > 0) ? C.width : se.bounds.width;
223
+ const $e = { ...se.bounds, y: se.bounds.y + Be + 0, width: et };
224
+ le(fe, ke, $e, x.lines[0].baseline, We, Me, pe === 1 ? P : null, Qe && ke > 0 ? { ...ee, style: { ...ee.style, background: void 0 } } : ee);
224
225
  } });
225
226
  }
226
227
  K.length > 0 && (ae = K);
@@ -240,8 +241,8 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
240
241
  if (!e.clean().getStyle().getNumberFormat().endsWith("%")) return !1;
241
242
  const n = t ?? e.dirty ?? "";
242
243
  return n.length === 0 || n.endsWith("%") && !isNaN(parseFloat(n.substring(0, n.length - 1)));
243
- }, ki = Object.freeze([It.Delete, It.Home, It.End]), Ri = ft(wt((e, t) => {
244
- const { editState: n, onStartEdit: r, onChangeEdit: l, onSubmitEdit: o, onCancelEdit: i, onDoneEdit: c, defaultTextStyle: g, useRichStyling: s = !0, bodyStyle: y, activeCoords: d, sheet: u, commands: k, containerBounds: b, setNaturalDimensions: D, onFocus: E, disabled: G, style: H, zoom: w = 1, linesVisible: L, autoFocus: q = !1, ...v } = e, { height: S = 0, width: F = 0 } = b ?? {}, T = y?.darkMode ?? !1, M = Me(null), [j, U] = ue(!1), [B, O] = ue(null), [W, te] = ue(() => n);
244
+ }, Ri = Object.freeze([It.Delete, It.Home, It.End]), Ti = ft(wt((e, t) => {
245
+ const { editState: n, onStartEdit: r, onChangeEdit: l, onSubmitEdit: o, onCancelEdit: i, onDoneEdit: c, defaultTextStyle: g, useRichStyling: s = !0, bodyStyle: y, activeCoords: d, sheet: u, commands: k, containerBounds: b, setNaturalDimensions: D, onFocus: E, disabled: G, style: H, zoom: w = 1, linesVisible: L, autoFocus: q = !1, ...v } = e, { height: S = 0, width: F = 0 } = b ?? {}, T = y?.darkMode ?? !1, M = Re(null), [j, U] = ue(!1), [B, O] = ue(null), [W, te] = ue(() => n);
245
246
  Se(() => {
246
247
  be.current = !1, te(n);
247
248
  }, [n]);
@@ -249,7 +250,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
249
250
  const C = W.clean();
250
251
  let oe = C.getStyle();
251
252
  s || (oe = oe.createTemporaryStyle({ font: { size: g?.fontSize } }));
252
- const N = C.getFormula(), K = oe.getAlignment(), a = N ? ve.HorizontalAlignment.Left : K.getHorizontal(), x = K.getVertical(), R = K.getOverflow() === ve.Overflow.Wrap || C.getType() === Un.String && (a === ve.HorizontalAlignment.Justify || a === ve.HorizontalAlignment.Distributed || x === ve.VerticalAlignment.Justify || x === ve.VerticalAlignment.Distributed), f = ((V) => {
253
+ const N = C.getFormula(), K = oe.getAlignment(), a = N ? ve.HorizontalAlignment.Left : K.getHorizontal(), x = K.getVertical(), R = K.getOverflow() === ve.Overflow.Wrap || C.getType() === jn.String && (a === ve.HorizontalAlignment.Justify || a === ve.HorizontalAlignment.Distributed || x === ve.VerticalAlignment.Justify || x === ve.VerticalAlignment.Distributed), f = ((V) => {
253
254
  if (!V) return mr;
254
255
  const Z = V.clean();
255
256
  if (!Z) return mr;
@@ -269,8 +270,8 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
269
270
  }
270
271
  return { text: V.dirty ?? "", placeholder: "" };
271
272
  })(W), I = f.text, h = ve.toCSSHorizontalTextAlign(s && !N ? W.clean()?.getRenderHorizontalAlignment() : ve.HorizontalAlignment.Left);
272
- return { style: oe, isWrapped: R, textValue: I, formula: N, frameVertAlign: x, placeholder: f.placeholder, insets: s ? C.getInsets() : Gn.EmptyRect, textAlign: h };
273
- }, [W, g, T, w, s]), A = Me(null), P = jt(t, () => ({ startEdit: (C) => {
273
+ return { style: oe, isWrapped: R, textValue: I, formula: N, frameVertAlign: x, placeholder: f.placeholder, insets: s ? C.getInsets() : _n.EmptyRect, textAlign: h };
274
+ }, [W, g, T, w, s]), A = Re(null), P = _t(t, () => ({ startEdit: (C) => {
274
275
  M.current = C?.initialSelection;
275
276
  const oe = { ...n, editMode: C?.editMode ?? !1 };
276
277
  C?.text !== void 0 && (oe.dirty = C.text), oe.editMode === n.editMode && oe.dirty === n.dirty || (te(oe), ae?.(oe));
@@ -281,19 +282,19 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
281
282
  }, dispatchEvent: (C) => A.current.dispatchEvent(C), focus() {
282
283
  A.current.focus();
283
284
  }, getLineHeight: ge }), [r, n]);
284
- Ot(() => {
285
+ Bt(() => {
285
286
  if (!B || !j) return;
286
287
  const C = A.current;
287
288
  z.textValue, C && C.setSelectionRange(B.start, B.end, B.direction);
288
289
  }, [A.current, B, z.textValue]);
289
290
  const $ = Ce(() => {
290
- const C = W?.clean(), oe = z.style.createTemporaryTextFrame(z.textValue, C?.getType() === Un.String), N = s ? C.getInsets().right + C.getInsets().left : 0;
291
+ const C = W?.clean(), oe = z.style.createTemporaryTextFrame(z.textValue, C?.getType() === jn.String), N = s ? C.getInsets().right + C.getInsets().left : 0;
291
292
  let K = null;
292
293
  return z.isWrapped && (K = { width: F - N }), oe.layout(K);
293
294
  }, [z, F, W, s]), ge = ie(() => Math.ceil($?.lines[0]?.bounds.height), [$]);
294
- Ot(() => {
295
+ Bt(() => {
295
296
  if (!$) return;
296
- const C = z.style, oe = C.getInsets() ?? Gn.EmptyRect, N = s ? oe.left + oe.right : 0, K = s ? 0.04 * C.getFont().getSize() : 1, a = Math.round(z.isWrapped ? void 0 : $.bounds.width + N + K), x = Math.round($.bounds.height);
297
+ const C = z.style, oe = C.getInsets() ?? _n.EmptyRect, N = s ? oe.left + oe.right : 0, K = s ? 0.04 * C.getFont().getSize() : 1, a = Math.round(z.isWrapped ? void 0 : $.bounds.width + N + K), x = Math.round($.bounds.height);
297
298
  D?.({ width: a, height: x });
298
299
  }, [$, D, z, s, W]);
299
300
  const ae = ie(l, [l]), Y = ie((C) => {
@@ -304,7 +305,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
304
305
  if (W.editMode === C) return;
305
306
  const oe = { ...W };
306
307
  oe.editMode = C, te(oe), ae?.(oe);
307
- }, [W]), be = Me(!1), Ae = ie(() => {
308
+ }, [W]), be = Re(!1), Ae = ie(() => {
308
309
  if (be.current) return !1;
309
310
  try {
310
311
  o?.(W), c?.(), be.current = !0;
@@ -316,7 +317,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
316
317
  be.current = !0, te(n), i?.(), c?.();
317
318
  }, [i, n]), _e = ie((C) => {
318
319
  if (!A.current) return;
319
- if (C.key, C.isDefaultPrevented(), !(C.isTrusted || C.nativeEvent.ctrlKey || C.nativeEvent.metaKey || C.nativeEvent.altKey || C.nativeEvent.isComposing || vi.indexOf(C.nativeEvent.key) === -1 && C.nativeEvent.key !== "Backspace")) {
320
+ if (C.key, C.isDefaultPrevented(), !(C.isTrusted || C.nativeEvent.ctrlKey || C.nativeEvent.metaKey || C.nativeEvent.altKey || C.nativeEvent.isComposing || wi.indexOf(C.nativeEvent.key) === -1 && C.nativeEvent.key !== "Backspace")) {
320
321
  const f = { ...W };
321
322
  let I = 0;
322
323
  return pr(f, f.dirty) && !isNaN(parseFloat(C.key)) ? (f.dirty?.endsWith("%") ? f.dirty = (f.dirty.substring(0, f.dirty.length - 1) ?? "") + C.key + "%" : f.dirty = (f.dirty ?? "") + C.key + "%", I = f.dirty.length - 1) : C.nativeEvent.key === "Backspace" ? (f.dirty = "", I = f.dirty.length) : (f.dirty = (f.dirty ?? "") + C.key, I = f.dirty.length), A.current.value = f?.dirty, M.current = { start: I, end: I, direction: "forward" }, A.current?.setSelectionRange(I, I, "forward"), te(f), ae?.(f), void C.preventDefault();
@@ -351,7 +352,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
351
352
  }
352
353
  if (R && !(oe || N || K || a) && !W.editMode)
353
354
  return void Ae();
354
- W.editMode && (R || ki.includes(C.which)) && C.stopPropagation();
355
+ W.editMode && (R || Ri.includes(C.which)) && C.stopPropagation();
355
356
  }, [W, u, z]), he = Xe(() => {
356
357
  A.current?.focus(), setTimeout(() => {
357
358
  A.current?.select();
@@ -372,10 +373,10 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
372
373
  te(C), ae?.(C);
373
374
  }), [d, u, W]);
374
375
  const ce = Xe(() => {
375
- const C = W.clean().createTemporaryCell({ value: jn(), style: { numberFormat: "Medium Time" } }).toText();
376
+ const C = W.clean().createTemporaryCell({ value: Zn(), style: { numberFormat: "Medium Time" } }).toText();
376
377
  Y((A.current?.value ?? "") + C);
377
378
  }, [u]), de = Xe(() => {
378
- const C = W.clean().createTemporaryCell({ value: jn(), style: { numberFormat: "Short Date" } }).toText();
379
+ const C = W.clean().createTemporaryCell({ value: Zn(), style: { numberFormat: "Short Date" } }).toText();
379
380
  Y((A.current?.value ?? "") + C);
380
381
  }, [u]), me = Ce(() => ({ element: () => A.current, doCopy: (C) => {
381
382
  const oe = A.current.value.substring(A.current.selectionStart, A.current.selectionEnd);
@@ -389,9 +390,9 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
389
390
  if (!N) return !0;
390
391
  const K = A.current.value.substring(0, A.current.selectionStart) + N + A.current.value.substring(A.current.selectionEnd, A.current.value.length);
391
392
  return Y(K), O({ start: A.current.selectionStart + N.length, end: A.current.selectionStart + N.length, direction: "forward" }), !0;
392
- } }), [A.current]), Re = Ce(() => ({ contains: (C) => A.current?.contains(C) || !1, focus() {
393
+ } }), [A.current]), Te = Ce(() => ({ contains: (C) => A.current?.contains(C) || !1, focus() {
393
394
  A.current.focus();
394
- } }), []), Ie = Ce(() => [new Ue("selectAll", Re, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [ne.Ctrl] } }, he), new Ue("startEditValueAbove", Re, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, De), new Ue("startEditCurrentTime", Re, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Shift] } }, ce), new Ue("startEditCurrentDate", Re, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, de), new J("relativeReferencesToggle", Re, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, Ze), new J("toggleEditorFocus", Re, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [ne.Ctrl] } })], []), xe = Ce(() => {
395
+ } }), []), Ie = Ce(() => [new Ue("selectAll", Te, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [ne.Ctrl] } }, he), new Ue("startEditValueAbove", Te, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, De), new Ue("startEditCurrentTime", Te, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Shift] } }, ce), new Ue("startEditCurrentDate", Te, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, de), new J("relativeReferencesToggle", Te, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, Ze), new J("toggleEditorFocus", Te, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [ne.Ctrl] } })], []), xe = Ce(() => {
395
396
  let C = null;
396
397
  const oe = () => ({ contains: (N) => A.current?.contains(N) || !1, focus() {
397
398
  A.current.focus();
@@ -433,7 +434,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
433
434
  }, onMouseDown: (C) => {
434
435
  j && _(!0);
435
436
  }, onKeyDown: _e }) }) });
436
- })), Ti = (e, t) => ({ clean: e, dirty: t, editMode: !1 }), Mi = (e) => {
437
+ })), Mi = (e, t) => ({ clean: e, dirty: t, editMode: !1 }), Di = (e) => {
437
438
  const { length: t = 0, width: n = 1, dashArray: r = null, dashArrayAdditional: l = null, isDouble: o = !1, isAngled: i = !1, offsetX: c = 0, offsetY: g = 0, isVertical: s = !1, ...y } = e, d = (H) => {
438
439
  let w = null;
439
440
  if (H && n > 0) {
@@ -458,13 +459,13 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Ys = Object.fr
458
459
  L = s ? `M ${it.boundPixel(c + H)} ${it.boundPixel(g)} L ${it.boundPixel(c + H)} ${it.boundPixel(g + D)}` : `M ${it.boundPixel(c)} ${it.boundPixel(g + H)} L ${it.boundPixel(c + D)} ${it.boundPixel(g + H)}`, E = p("path", { strokeWidth: b, strokeDasharray: w, strokeDashoffset: "1", shapeRendering: "crispEdges", d: L, ...y });
459
460
  }
460
461
  let G = null;
461
- return G = s ? `M ${it.boundPixel(c + b / 2)} ${it.boundPixel(g)} L ${it.boundPixel(c + b / 2)} ${it.boundPixel(g + D)}` : `M ${it.boundPixel(c)} ${it.boundPixel(g + b / 2)} L ${it.boundPixel(c + D)} ${it.boundPixel(g + b / 2)}`, Je(qn, { children: [p("path", { strokeWidth: b, strokeDasharray: u, d: G, ...y }), E] });
462
+ return G = s ? `M ${it.boundPixel(c + b / 2)} ${it.boundPixel(g)} L ${it.boundPixel(c + b / 2)} ${it.boundPixel(g + D)}` : `M ${it.boundPixel(c)} ${it.boundPixel(g + b / 2)} L ${it.boundPixel(c + D)} ${it.boundPixel(g + b / 2)}`, Je(Sn, { children: [p("path", { strokeWidth: b, strokeDasharray: u, d: G, ...y }), E] });
462
463
  };
463
464
  function Vo(e, t) {
464
465
  if (typeof e == "function") return e(t);
465
466
  e && (e.current = t);
466
467
  }
467
- var Sn = parseInt(hi.split(".")[0], 10) >= 19 ? function(e) {
468
+ var kn = parseInt(mi.split(".")[0], 10) >= 19 ? function(e) {
468
469
  return (t) => {
469
470
  const n = [];
470
471
  for (const r of e) {
@@ -479,9 +480,9 @@ var Sn = parseInt(hi.split(".")[0], 10) >= 19 ? function(e) {
479
480
  return (t) => {
480
481
  for (const n of e) Vo(n, t);
481
482
  };
482
- }, Di = function() {
483
- }, ul = typeof window < "u", Vn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ei = ul ? Ot : Se, fr = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
484
- const sn = ul && window.ResizeObserver !== void 0 ? function() {
483
+ }, Ei = function() {
484
+ }, ul = typeof window < "u", Pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ai = ul ? Bt : Se, fr = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
485
+ const dn = ul && window.ResizeObserver !== void 0 ? function() {
485
486
  var e = ue(null), t = e[0], n = e[1], r = ue(fr), l = r[0], o = r[1], i = Ce(function() {
486
487
  return new window.ResizeObserver(function(c) {
487
488
  if (c[0]) {
@@ -490,15 +491,15 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
490
491
  }
491
492
  });
492
493
  }, []);
493
- return Ei(function() {
494
+ return Ai(function() {
494
495
  if (t) return i.observe(t), function() {
495
496
  i.disconnect();
496
497
  };
497
498
  }, [t]), [n, l];
498
499
  } : function() {
499
- return [Di, fr];
500
- }, Ai = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, Ii = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, zi = (e) => {
501
- const { key: t, points: n, range: r, stroke: l, darkMode: o, forceThinBorder: i = !1, shiftIfWide: c = !1, isVertical: g = !1, intersections: s, layout: y } = e, d = At.BuiltInDefinitions.get(i ? At.StrokeStyle.Thin : l.getStyle());
500
+ return [Ei, fr];
501
+ }, Ii = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, zi = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, Fi = (e) => {
502
+ const { key: t, points: n, range: r, stroke: l, darkMode: o, forceThinBorder: i = !1, shiftIfWide: c = !1, isVertical: g = !1, intersections: s, layout: y } = e, d = Et.BuiltInDefinitions.get(i ? Et.StrokeStyle.Thin : l.getStyle());
502
503
  if (!d) return null;
503
504
  const u = n[0], k = n[1], b = n[2], D = n[3];
504
505
  let E = 1 + (g ? D - k : b - u), G = 0;
@@ -508,11 +509,11 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
508
509
  if (s?.length > 0) {
509
510
  const U = s[0];
510
511
  if (U?.range[v] === r[v]) {
511
- const O = At.BuiltInDefinitions.get(U.stroke.getStyle());
512
+ const O = Et.BuiltInDefinitions.get(U.stroke.getStyle());
512
513
  G = Math.floor(O.width / 2);
513
514
  }
514
515
  if (s[s.length - 1]?.range[S] === r[S]) {
515
- const O = At.BuiltInDefinitions.get(s[s.length - 1].stroke.getStyle());
516
+ const O = Et.BuiltInDefinitions.get(s[s.length - 1].stroke.getStyle());
516
517
  E = Math.floor(E + (O.width === 2 ? 0 : O.width / 2));
517
518
  }
518
519
  if (w) {
@@ -521,7 +522,7 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
521
522
  L = [], q = [];
522
523
  for (let P = 0; P < s.length; P++) {
523
524
  const $ = s[P];
524
- if ($.stroke.getStyle() === At.StrokeStyle.Double && te) {
525
+ if ($.stroke.getStyle() === Et.StrokeStyle.Double && te) {
525
526
  const ge = te($.range[v]) - (F - G);
526
527
  $.range[O] < r[O] && (L.push(ge - z), z = ge, L.push(1), z++), $.range[W] > r[W] && (q.push(ge - A), A = ge, q.push(1), A++);
527
528
  }
@@ -531,8 +532,8 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
531
532
  }
532
533
  let T = g ? -Math.floor(d.width / 2) : -G, M = g ? -G : -Math.floor(d.width / 2);
533
534
  const j = c && d.width > 2 ? -1 : 0;
534
- return p(Mi, { offsetX: u + T + j, offsetY: k + M + j, length: E + G, isVertical: g, stroke: H, width: d.width, dashArray: L ?? d.pattern, dashArrayAdditional: q, isDouble: w, isAngled: d.description.toLowerCase().includes("slant") }, t);
535
- }, gl = ({ getBorderAt: e, borderRenderer: t = zi, getVisibleCells: n, darkMode: r, forceThinBorder: l = !1, defaultColor: o = "black", shiftIfWide: i = !1 }) => {
535
+ return p(Di, { offsetX: u + T + j, offsetY: k + M + j, length: E + G, isVertical: g, stroke: H, width: d.width, dashArray: L ?? d.pattern, dashArrayAdditional: q, isDouble: w, isAngled: d.description.toLowerCase().includes("slant") }, t);
536
+ }, gl = ({ getBorderAt: e, borderRenderer: t = Fi, getVisibleCells: n, darkMode: r, forceThinBorder: l = !1, defaultColor: o = "black", shiftIfWide: i = !1 }) => {
536
537
  const c = ie(n, [n]);
537
538
  return { overlay: Ce(() => (s) => {
538
539
  const y = s.toClipBounds(s.getRangeCoordsBounds(), -3);
@@ -565,7 +566,7 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
565
566
  let _ = 1, be = 1;
566
567
  if (!te || !z) continue;
567
568
  const Ae = te.spanIndex, we = z.spanIndex;
568
- $.isNone() || q(H, Ae, we, W, $, At.Edge.Left, _), ge.isNone() || q(w, we, Ae, O, ge, At.Edge.Top, be), ae.isNone() || q(H, Ae + be, we, W, ae, At.Edge.Right, _), Y.isNone() || q(w, we + _, Ae, O, Y, At.Edge.Bottom, be);
569
+ $.isNone() || q(H, Ae, we, W, $, Et.Edge.Left, _), ge.isNone() || q(w, we, Ae, O, ge, Et.Edge.Top, be), ae.isNone() || q(H, Ae + be, we, W, ae, Et.Edge.Right, _), Y.isNone() || q(w, we + _, Ae, O, Y, Et.Edge.Bottom, be);
569
570
  }
570
571
  const v = (T, M, j) => {
571
572
  const U = [];
@@ -591,7 +592,7 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
591
592
  W && U.push(W);
592
593
  }), U;
593
594
  };
594
- b = b.sort(Ii), D = D.sort(Ai);
595
+ b = b.sort(zi), D = D.sort(Ii);
595
596
  const S = v(H, E, !1), F = v(w, G, !0);
596
597
  if (S.length === 0 && F.length === 0) return null;
597
598
  for (let T = 0; T < F.length; T++) {
@@ -616,10 +617,10 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
616
617
  }
617
618
  return p("svg", { width: `${y.width}`, height: `${y.height}`, viewBox: `0 0 ${y.width} ${y.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${y.width}px`, height: `${y.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children: L }, "borders");
618
619
  }, [e, r]) };
619
- }, vr = yt.Center, Fi = Object.freeze({ horizontal: !1, vertical: !1 }), wr = Gn.EmptyTopLeft, Ni = (e, t) => qt.EmptyCell, Li = (e, t) => new Promise((n, r) => {
620
+ }, vr = yt.Center, Ni = Object.freeze({ horizontal: !1, vertical: !1 }), wr = _n.EmptyTopLeft, Li = (e, t) => qt.EmptyCell, Oi = (e, t) => new Promise((n, r) => {
620
621
  r("StaticBorderRenderer does not support scrolling");
621
- }), Js = ft((e) => {
622
- const { getBorderAt: t, width: n, height: r, style: l, rowCount: o = 2, columnCount: i = 2, darkMode: c, forceThinBorder: g, children: s, ...y } = e, d = Me(null), [u, { width: k, height: b }] = sn(), D = n ?? k, E = r ?? b, G = Ce(() => {
622
+ }), Qs = ft((e) => {
623
+ const { getBorderAt: t, width: n, height: r, style: l, rowCount: o = 2, columnCount: i = 2, darkMode: c, forceThinBorder: g, children: s, ...y } = e, d = Re(null), [u, { width: k, height: b }] = dn(), D = n ?? k, E = r ?? b, G = Ce(() => {
623
624
  const W = [];
624
625
  for (let te = 0; te < o; te++) for (let z = 0; z < i; z++) {
625
626
  const A = { colIndex: z, rowIndex: te };
@@ -644,8 +645,8 @@ const sn = ul && window.ResizeObserver !== void 0 ? function() {
644
645
  const W = [];
645
646
  for (let te = 0; te < i; te++) W.push(te);
646
647
  return W;
647
- }, toClipBounds: (W, te) => F, toViewBounds: (W) => W, toAbsoluteBounds: (W) => W, getBounds: () => F, getInsets: () => null, getRangeCoordsBounds: (W, te) => null, getVisibleColumnOffsets: () => T, getVisibleRowOffsets: () => M, allViews: () => ({ [vr]: B }), getAnchor: () => vr, getZoom: () => 1, scrollCellCoordsIntoView: Li, getCellCoordsFromClient: Ni, getScrollOrientation: () => Fi, getScrollTopLeft: () => wr, getFreezeTopLeft: () => wr }, O = w(B);
648
- return Je("div", { style: { ...l, position: "relative", display: "flex" }, ...y, children: [p("div", { ref: Sn([d, u]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: s }), O] });
648
+ }, toClipBounds: (W, te) => F, toViewBounds: (W) => W, toAbsoluteBounds: (W) => W, getBounds: () => F, getInsets: () => null, getRangeCoordsBounds: (W, te) => null, getVisibleColumnOffsets: () => T, getVisibleRowOffsets: () => M, allViews: () => ({ [vr]: B }), getAnchor: () => vr, getZoom: () => 1, scrollCellCoordsIntoView: Oi, getCellCoordsFromClient: Li, getScrollOrientation: () => Ni, getScrollTopLeft: () => wr, getFreezeTopLeft: () => wr }, O = w(B);
649
+ return Je("div", { style: { ...l, position: "relative", display: "flex" }, ...y, children: [p("div", { ref: kn([d, u]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: s }), O] });
649
650
  });
650
651
  function hl(e) {
651
652
  var t, n, r = "";
@@ -656,14 +657,14 @@ function hl(e) {
656
657
  } else for (n in e) e[n] && (r && (r += " "), r += n);
657
658
  return r;
658
659
  }
659
- function Bt() {
660
+ function Vt() {
660
661
  for (var e, t, n = 0, r = "", l = arguments.length; n < l; n++) (e = arguments[n]) && (t = hl(e)) && (r && (r += " "), r += t);
661
662
  return r;
662
663
  }
663
- const Oi = "_sheetxl-sheet_1qeq6_5", Bi = "_viewport-overlay_1qeq6_6", Vi = (e) => {
664
+ const Bi = "_sheetxl-sheet_1qeq6_5", Vi = "_viewport-overlay_1qeq6_6", Hi = (e) => {
664
665
  const { style: t, ...n } = e ?? {};
665
666
  return Je("svg", { style: { width: "135px", height: "37px", ...t }, viewBox: "0 0 135 37", ...n, children: [p("path", { d: "M 1.0984,0 C 0.4978,0 0.01,0.40548 0.01,0.90302 v 19.5766 H 0 v 15.61762 c 0,0.30574 0.185,0.57535 0.466,0.73886 v 0.1426 H 0.8565 C 0.9315,36.992 1.0086,37 1.0883,37 H 13.063 25.9706 v 0 h 8.7553 c 0.08,0 0.1563,-0.008 0.2308,-0.0213 h 0.054 v -0.0141 c 0.4621,-0.10457 0.8035,-0.45175 0.8035,-0.86739 v -15.312 c 0,-0.0328 0.01,-0.0658 0.01,-0.0995 V 0.90304 C 35.8242,0.4052 35.3363,6e-5 34.7358,6e-5 H 22.5969 V 1.7e-4 H 21.0014 V 6e-5 Z", fill: "#547dbe", fillRule: "evenodd" }), p("path", { d: "M 1.4849,2.09543 V 9.06408 H 8.1947 V 2.09543 Z m 8.6592,0 V 9.06408 H 16.854 V 2.09543 Z m 8.685,0 v 6.96865 h 6.7098 V 2.09543 Z m 8.7355,0 v 6.96865 h 6.7099 V 2.09543 Z M 1.4849,11.04391 v 6.81444 h 6.7098 v -6.81444 z m 8.6592,0 v 6.81444 h 6.7099 v -6.81444 z m 8.685,0 v 6.81444 h 6.7098 v -6.81444 z m 8.7355,0 v 6.81444 h 6.7099 V 11.04391 Z M 1.4849,19.83872 v 6.68584 h 6.7098 v -6.68584 z m 8.6592,0 v 6.68584 h 6.7351 v -6.68584 z m 8.685,0 v 6.68584 h 6.7098 v -6.68584 z m 8.7355,0 v 6.68584 h 6.7099 v -6.68584 z m -26.052,8.38811 v 6.68588 h 6.7098 v -6.68588 z m 8.6592,0 v 6.68588 h 6.7355 v -6.68588 z m 8.685,0 v 6.68588 h 6.7099 v -6.68588 z m 8.7356,0 v 6.68588 h 6.7098 v -6.68588 z", fill: "#ffffff", fillRule: "evenodd" }), p("path", { d: "m 1.4785,2.09737 v 6.96865 h 6.741 V 2.09737 Z m 0,8.94851 v 6.81449 h 6.741 v -6.81449 z m 0,8.79485 v 6.6858 h 6.741 v -6.6858 z m 0.028,8.388 v 6.68588 h 6.741 v -6.68588 z", fill: "#547dbe", fillRule: "evenodd", strokeWidth: "0.4" }), p("path", { d: "M 120.9895,32.82218 V 10.13469 h 4.7986 v 18.71559 h 9.2153 v 3.9719 z m 0.4853,0 h -5.4976 l -5.275,-8.57923 -5.2751,8.57923 h -5.1481 l 7.5314,-11.69325 -7.0545,-10.99424 h 5.3067 l 4.8936,8.16618 4.7986,-8.16618 h 5.1796 l -7.118,11.24826 z M 95.9361,29.04099 c 0.5297,0 1.0381,-0.053 1.5254,-0.15888 0.4872,-0.10591 0.9745,-0.23299 1.4617,-0.3813 v 3.52703 c -0.5084,0.21183 -1.144,0.39189 -1.9066,0.54018 -0.7415,0.16946 -1.5571,0.2542 -2.4469,0.2542 -1.038,0 -1.9701,-0.16947 -2.7964,-0.5084 -0.805,-0.33894 -1.4511,-0.92148 -1.9384,-1.74763 -0.466,-0.84734 -0.6991,-2.01241 -0.6991,-3.49526 v -8.35686 h -2.2562 v -2.00181 l 2.6058,-1.58876 1.3664,-3.65411 h 3.0189 v 3.6859 h 4.8619 v 3.55878 h -4.8619 v 8.35686 c 0,0.65668 0.1906,1.15449 0.5719,1.49342 0.3814,0.31776 0.8792,0.47664 1.4935,0.47664 z M 79.1445,14.83743 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3983,1.35581 2.0972,3.29411 2.0972,5.81491 v 2.28769 H 75.7444 c 0.042,1.33475 0.4342,2.38315 1.1758,3.14596 0.7626,0.76244 1.8113,1.14385 3.1459,1.14385 1.1227,0 2.1396,-0.10609 3.0506,-0.3179 0.9109,-0.23311 1.8536,-0.58257 2.8283,-1.0484 v 3.654 c -0.8476,0.42362 -1.7479,0.73087 -2.7012,0.92139 -0.9322,0.21181 -2.0655,0.3179 -3.4001,0.3179 -1.7373,0 -3.2731,-0.3179 -4.6078,-0.95333 -1.3346,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0169,-5.05235 0.6991,-1.35578 1.6629,-2.37258 2.8917,-3.0504 1.2286,-0.67783 2.6586,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.2879,0.88967 -0.5933,0.59322 -0.9428,1.51461 -1.0487,2.76455 h 6.6415 c -0.021,-1.05904 -0.2967,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3559,-1.04855 -2.4787,-1.04855 z m -17.011,-3.36815 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3982,1.35581 2.0973,3.29411 2.0973,5.81491 v 2.28769 H 58.7653 c 0.042,1.33475 0.4343,2.38315 1.1758,3.14596 0.7627,0.76244 1.8113,1.14385 3.1459,1.14385 1.1228,0 2.1397,-0.10609 3.0507,-0.3179 0.911,-0.23311 1.8536,-0.58257 2.8282,-1.0484 v 3.654 c -0.8475,0.42362 -1.7478,0.73087 -2.7011,0.92139 -0.9321,0.21181 -2.0655,0.3179 -3.4002,0.3179 -1.7372,0 -3.273,-0.3179 -4.6077,-0.95333 -1.3347,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0168,-5.05235 0.6991,-1.35578 1.6631,-2.37258 2.8918,-3.0504 1.2287,-0.67783 2.6587,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.288,0.88967 -0.5931,0.59322 -0.9427,1.51461 -1.0486,2.76455 h 6.6414 c -0.021,-1.05904 -0.2965,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3558,-1.04855 -2.4786,-1.04855 z M 41.7033,13.59817 c 0,0.84739 -0.032,1.66288 -0.095,2.44668 -0.042,0.78385 -0.085,1.33456 -0.1271,1.65231 h 0.2542 c 0.5508,-0.88968 1.2605,-1.53575 2.1291,-1.93827 0.8686,-0.40251 1.8325,-0.60371 2.8917,-0.60371 1.8855,0 3.3896,0.50838 4.5124,1.52518 1.144,0.99558 1.716,2.60556 1.716,4.82998 V 32.82218 H 48.2498 V 22.68575 c 0,-2.49951 -0.9322,-3.74937 -2.7964,-3.74937 -1.4194,0 -2.4045,0.49788 -2.9553,1.49362 -0.5297,0.97424 -0.7945,2.38314 -0.7945,4.22592 v 8.16626 H 36.9688 V 8.67305 h 4.7348 z", fill: "#eb594d" }), p("path", { d: "m 23.345,4.88926 c 1.4307,0 2.8282,0.229 4.1916,0.68692 1.3636,0.45803 2.6999,1.15712 4.0084,2.09748 l -1.8344,2.50966 C 28.6222,9.40175 27.5522,8.82162 26.5004,8.44306 25.4486,8.0645 24.3968,7.87524 23.345,7.87524 c -1.9935,0 -3.5435,0.40902 -4.6503,1.22728 -1.1068,0.81819 -1.6601,1.97842 -1.6601,3.48048 v 0.0183 c 0,1.05019 0.3179,1.8502 0.9538,2.39973 0.636,0.54952 1.4615,0.95869 2.4765,1.22731 1.015,0.26862 2.0975,0.51907 3.2468,0.75111 1.003,0.20755 1.9996,0.44872 2.9905,0.7235 0.9905,0.27478 1.8922,0.66562 2.7057,1.1724 0.813,0.50679 1.4615,1.1937 1.9444,2.06075 0.4832,0.86705 0.7247,1.99672 0.7247,3.38884 v 0.0367 c 0,2.45464 -0.8561,4.35355 -2.5682,5.69703 -1.7122,1.34311 -4.1216,2.01505 -7.2278,2.01505 -1.2963,0 -2.5162,-0.12207 -3.6598,-0.36658 -1.1434,-0.24413 -2.2134,-0.61071 -3.2102,-1.09898 -0.9968,-0.48864 -1.9292,-1.09897 -2.7975,-1.83175 l 1.9628,-2.47308 c 1.0763,0.92809 2.2534,1.62428 3.5314,2.08825 1.2779,0.46431 2.669,0.69627 4.1733,0.69627 2.1158,0 3.7513,-0.40613 4.9071,-1.21827 1.1558,-0.81214 1.7335,-1.95096 1.7335,-3.4164 v -0.0183 c 0,-1.06247 -0.2872,-1.87762 -0.8622,-2.44543 -0.5746,-0.56786 -1.3267,-0.99528 -2.2563,-1.28234 -0.9292,-0.28695 -1.9383,-0.52812 -3.0267,-0.72354 -1.0397,-0.18314 -2.0822,-0.39685 -3.1278,-0.64117 -1.0457,-0.24417 -2.0026,-0.60444 -2.8709,-1.08076 -0.8683,-0.47621 -1.5685,-1.15396 -2.1005,-2.0333 -0.532,-0.87933 -0.798,-2.05162 -0.798,-3.5171 v -0.0183 c 0,-2.4792 0.8255,-4.39955 2.4766,-5.7611 1.651,-1.36167 3.9807,-2.04258 6.9892,-2.04258 z", stroke: "#eb594d", strokeWidth: "2", fill: "#f9cecb" })] });
666
- }, Hi = ft((e) => {
667
+ }, Pi = ft((e) => {
667
668
  const { colorLicensee: t = "blue", colorError: n = "red", colorCredits: r = "grey", credits: l = "All rights reserved - Michael Ford", feature: o, style: i, ...c } = e ?? {}, [g, s] = ue(null);
668
669
  tt.useEffect(() => {
669
670
  (async () => {
@@ -684,9 +685,9 @@ const Oi = "_sheetxl-sheet_1qeq6_5", Bi = "_viewport-overlay_1qeq6_6", Vi = (e)
684
685
  if (g === null || g.isValidFor(o)) return null;
685
686
  const b = g.type(), D = !k && b.endsWith("ity"), E = g.licensee(), G = D ? 1.6 : 1, H = 135 / G, w = 37 / G;
686
687
  let L = null;
687
- return !b && E?.length > 0 && (L = p("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t }, children: E })), p("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i }, ...c, children: Je("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [y ? p(Vi, { style: u }) : p("svg", { width: H, height: w, style: u, children: p("image", { style: { width: H, height: w }, href: "https://www.sheetxl.com/watermark.svg", onError: () => d(!0) }) }), Je("div", { children: [L, k, p("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: r }, children: l })] })] }) });
688
+ return !b && E?.length > 0 && (L = p("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t }, children: E })), p("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i }, ...c, children: Je("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [y ? p(Hi, { style: u }) : p("svg", { width: H, height: w, style: u, children: p("image", { style: { width: H, height: w }, href: "https://www.sheetxl.com/watermark.svg", onError: () => d(!0) }) }), Je("div", { children: [L, k, p("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: r }, children: l })] })] }) });
688
689
  }), ht = (e, t, n) => {
689
- const r = Me(t);
690
+ const r = Re(t);
690
691
  r.current = t;
691
692
  const l = n?.fireOnModelChange ?? !0;
692
693
  Se(() => {
@@ -705,8 +706,8 @@ const Oi = "_sheetxl-sheet_1qeq6_5", Bi = "_viewport-overlay_1qeq6_6", Vi = (e)
705
706
  g?.();
706
707
  };
707
708
  }, [e]);
708
- }, Qs = (e, t, n, r) => {
709
- const l = Me(n);
709
+ }, ed = (e, t, n, r) => {
710
+ const l = Re(n);
710
711
  l.current = n;
711
712
  const o = r?.fireOnAddressChange ?? !0;
712
713
  Se(() => {
@@ -726,16 +727,16 @@ const Oi = "_sheetxl-sheet_1qeq6_5", Bi = "_viewport-overlay_1qeq6_6", Vi = (e)
726
727
  };
727
728
  }, [e, t]);
728
729
  }, so = new tl("transparent");
729
- function Pi(e) {
730
- const { sheet: t, onRepeatCommandChange: n, bodyStyle: r, commands: l, target: o, notifier: i, onStartEdit: c, getViewport: g } = e, [s, y] = ue(null), [d, u] = ue(null), k = Me(null), b = ie(c, [c]), D = ie(g, [g]), [E, G] = ue(), [H, w] = ue(() => t?.getStyles().parseColor(Jl.Scheme.Bg2)), [L, q] = ue(() => t?.getStyles().getNormal().getFont().getFill()), v = cn();
731
- Me(v.getMode()).current = v.getMode();
732
- const S = ri(), [F, T] = ue(rt.EmptyArray), M = Xe(() => {
730
+ function Wi(e) {
731
+ const { sheet: t, onRepeatCommandChange: n, bodyStyle: r, commands: l, target: o, notifier: i, onStartEdit: c, getViewport: g } = e, [s, y] = ue(null), [d, u] = ue(null), k = Re(null), b = ie(c, [c]), D = ie(g, [g]), [E, G] = ue(), [H, w] = ue(() => t?.getStyles().parseColor(Ql.Scheme.Bg2)), [L, q] = ue(() => t?.getStyles().getNormal().getFont().getFill()), v = un();
732
+ Re(v.getMode()).current = v.getMode();
733
+ const S = li(), [F, T] = ue(rt.EmptyArray), M = Xe(() => {
733
734
  if (k.current !== t) return;
734
735
  const a = t.getSelectedRanges();
735
736
  let x = null;
736
737
  F.length > 0 && qt.isCellWithinRange(s, F[0].getRange().getCoords()) && (x = F[0]);
737
738
  const R = t?.getSelectedCell(), f = R?.getCoords() ?? null;
738
- Bn(() => {
739
+ Hn(() => {
739
740
  $(x), y(f), u(a);
740
741
  });
741
742
  }, [t, F, d, s]), j = Xe(rt.debounce(M, 210), [M]);
@@ -828,9 +829,9 @@ function Pi(e) {
828
829
  re.colEnd = I.colIndex - 1;
829
830
  }
830
831
  if (f.size !== 1 && h) {
831
- const le = f.getCoords(), se = f.startIncrementalUpdates({ orientation: qe.Orientation.Column }), ke = { ...re }, pe = le.rowStart, fe = le.rowEnd, Te = le.colStart, We = le.colEnd, Be = h === qe.Direction.Up;
832
- for (let et = Te; et <= We; et++) {
833
- ke.colStart = Be ? et : re.colStart + (et - Te), ke.colEnd = Be ? et : re.colEnd + (et - Te);
832
+ const le = f.getCoords(), se = f.startIncrementalUpdates({ orientation: qe.Orientation.Column }), ke = { ...re }, pe = le.rowStart, fe = le.rowEnd, Me = le.colStart, We = le.colEnd, Be = h === qe.Direction.Up;
833
+ for (let et = Me; et <= We; et++) {
834
+ ke.colStart = Be ? et : re.colStart + (et - Me), ke.colEnd = Be ? et : re.colEnd + (et - Me);
834
835
  for (let $e = pe; $e <= fe; $e++) {
835
836
  ke.rowStart = Be ? re.rowStart + ($e - pe) : $e, ke.rowEnd = Be ? re.rowEnd + ($e - pe) : $e;
836
837
  const nt = R.getRange(ke).toString();
@@ -1015,11 +1016,11 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
1015
1016
  const ke = re[0];
1016
1017
  le = ke.rowEnd - ke.rowStart, se = ke.colEnd - ke.colStart;
1017
1018
  }
1018
- x === qe.Direction.Left ? ee = { ...Z, colStart: Z.colEnd + se } : x === qe.Direction.Right ? ee = { ...Z, colEnd: Z.colStart + se } : x === qe.Direction.Up ? ee = { ...Z, rowStart: Z.rowEnd + le } : x === qe.Direction.Down && (ee = { ...Z, rowEnd: Z.rowStart + le }), R.getRange(ee).autoFill(Z, { filler: Ql.Types.Copy }), R.getRange(Z).autoFit({ orientations: qe.Orientations.Row, skipCustomSize: !0, minContent: !0 });
1019
+ x === qe.Direction.Left ? ee = { ...Z, colStart: Z.colEnd + se } : x === qe.Direction.Right ? ee = { ...Z, colEnd: Z.colStart + se } : x === qe.Direction.Up ? ee = { ...Z, rowStart: Z.rowEnd + le } : x === qe.Direction.Down && (ee = { ...Z, rowEnd: Z.rowStart + le }), R.getRange(ee).autoFill(Z, { filler: ei.Types.Copy }), R.getRange(Z).autoFit({ orientations: qe.Orientations.Row, skipCustomSize: !0, minContent: !0 });
1019
1020
  }
1020
1021
  }, { autoSelect: !0, description: a.label() });
1021
1022
  });
1022
- }, [i]), Re = ie(() => {
1023
+ }, [i]), Te = ie(() => {
1023
1024
  let a = null;
1024
1025
  const x = t.getSelectedCell().getCoords();
1025
1026
  if (x?.rowIndex > 0) {
@@ -1027,7 +1028,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
1027
1028
  R && (a = R.toTextUnformatted(!0));
1028
1029
  }
1029
1030
  b?.({ text: a });
1030
- }, [t]), [Ie, xe] = an((a) => a + 1, 0), [Ne, Pe] = an((a) => a + 1, 0), je = Ce(() => [new J("gridlinesToggle", o, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new J("sheetViewToggleGridlinesRows", o, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new J("sheetViewToggleGridlinesColumns", o, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new J("sheetViewFormatGridlinesColor", o, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new J("sheetViewToggleShowHeadings", o, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new J("sheetViewToggleShowHeadingRows", o, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new J("sheetViewToggleShowHeadingColumns", o, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new J("sheetViewToggleShowHeadingsNumeric", o, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [ne.Ctrl, ne.Shift] } }), new J("sheetViewToggleFormulaView", o, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [ne.Ctrl] }, { key: "`", modifiers: [ne.Ctrl, ne.Shift] }] }), new J("sheetViewToggleShowZeros", o, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new Ue("selectComments", o, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [ne.Ctrl, ne.Shift] } }, () => De()), new J("selectAll", o, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [ne.Ctrl] }, { key: "Space", modifiers: [ne.Ctrl, ne.Shift] }] }, (a = !1) => ce(!1, a)), new Ue("selectRegion", o, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [ne.Ctrl, ne.Shift] } }, () => ce(!0, !1)), new Ue("breakSelection", o, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Alt] } }, () => Ze()), new Ue("formatTextRotate0", o, { label: "No Text Rotation", description: "Remove all text rotation." }), new Ue("formatTextRotate45", o, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new Ue("formatTextRotate90", o, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new Ue("formatTextRotate270", o, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new Ue("formatTextRotate315", o, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new J("formatTextRotateCustom", o, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new Ue("formatTextRotateVertical", o, { label: "Vertical Text", description: "Stack text vertically." }), new Ue("sortAscending", o, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
1031
+ }, [t]), [Ie, xe] = sn((a) => a + 1, 0), [Ne, Pe] = sn((a) => a + 1, 0), je = Ce(() => [new J("gridlinesToggle", o, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new J("sheetViewToggleGridlinesRows", o, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new J("sheetViewToggleGridlinesColumns", o, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new J("sheetViewFormatGridlinesColor", o, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new J("sheetViewToggleShowHeadings", o, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new J("sheetViewToggleShowHeadingRows", o, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new J("sheetViewToggleShowHeadingColumns", o, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new J("sheetViewToggleShowHeadingsNumeric", o, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [ne.Ctrl, ne.Shift] } }), new J("sheetViewToggleFormulaView", o, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [ne.Ctrl] }, { key: "`", modifiers: [ne.Ctrl, ne.Shift] }] }), new J("sheetViewToggleShowZeros", o, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new Ue("selectComments", o, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [ne.Ctrl, ne.Shift] } }, () => De()), new J("selectAll", o, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [ne.Ctrl] }, { key: "Space", modifiers: [ne.Ctrl, ne.Shift] }] }, (a = !1) => ce(!1, a)), new Ue("selectRegion", o, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [ne.Ctrl, ne.Shift] } }, () => ce(!0, !1)), new Ue("breakSelection", o, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Alt] } }, () => Ze()), new Ue("formatTextRotate0", o, { label: "No Text Rotation", description: "Remove all text rotation." }), new Ue("formatTextRotate45", o, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new Ue("formatTextRotate90", o, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new Ue("formatTextRotate270", o, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new Ue("formatTextRotate315", o, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new J("formatTextRotateCustom", o, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new Ue("formatTextRotateVertical", o, { label: "Vertical Text", description: "Stack text vertically." }), new Ue("sortAscending", o, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
1031
1032
  he(this, { reverse: !1 }, !1);
1032
1033
  }), new Ue("sortDescending", o, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
1033
1034
  he(this, { reverse: !0 }, !1);
@@ -1064,7 +1065,7 @@ For example, you can prevent people from editing locked cells or making formatti
1064
1065
  }), new J("formatNumberFormat", o, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(a) {
1065
1066
  O(this, { numberFormat: a });
1066
1067
  }), new J("formatNumberFormatGeneralStyle", o, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1067
- O(this, { numberFormat: Zt.Type.General });
1068
+ O(this, { numberFormat: Kt.Type.General });
1068
1069
  }), new J("formatNumberFormatNumberStyle", o, { label: "Number Style", description: "Format as number with two decimals and comma.", shortcut: { key: "1", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1069
1070
  O(this, { numberFormat: "#,##0.00" });
1070
1071
  }), new J("formatNumberFormatTimeStyle", o, { label: "Time Style", description: "Format as time with hour and minute, and AM or PM.", shortcut: { key: "2", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
@@ -1080,9 +1081,9 @@ For example, you can prevent people from editing locked cells or making formatti
1080
1081
  }), new J("formatNumberFormatCommaStyle", o, { label: "Comma Style", description: "Format with a thousands separator.", shortcut: { key: ",", modifiers: [ne.Ctrl] } }, function() {
1081
1082
  O(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
1082
1083
  }), new J("formatNumberFormatIncreaseDecimal", o, { label: "Increase Decimal", description: "Show more decimal places for a more precise value." }, function() {
1083
- O(this, (a) => ({ numberFormat: Zt.Parser.adjustDecimalPlaces(a.getNumberFormat(), 1) }));
1084
+ O(this, (a) => ({ numberFormat: Kt.Parser.adjustDecimalPlaces(a.getNumberFormat(), 1) }));
1084
1085
  }), new J("formatNumberFormatDecreaseDecimal", o, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
1085
- O(this, (a) => ({ numberFormat: Zt.Parser.adjustDecimalPlaces(a.getNumberFormat(), -1) }));
1086
+ O(this, (a) => ({ numberFormat: Kt.Parser.adjustDecimalPlaces(a.getNumberFormat(), -1) }));
1086
1087
  }), new J("displayPlaceholdersToggle", o, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [ne.Ctrl] } }), new Ue("noOp", o, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [ne.Ctrl] } }, function() {
1087
1088
  }), new J("displayOutlineSymbolsToggle", o, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [ne.Ctrl] } }), new J("hideRows", o, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [ne.Ctrl] } }), new J("unhideRows", o, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [ne.Ctrl, ne.Shift] } }), new J("hideColumns", o, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [ne.Ctrl] }, { key: "0", modifiers: [ne.Ctrl, ne.Alt] }] }), new J("unhideColumns", o, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [ne.Ctrl, ne.Shift] } }), new J("quickFormulaSum", o, { label: "Quick Sum", scopedLabels: { quickFormula: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [ne.Alt] } }, function() {
1088
1089
  Y(this, "SUM");
@@ -1095,9 +1096,9 @@ For example, you can prevent people from editing locked cells or making formatti
1095
1096
  }), new J("quickFormulaMin", o, { label: "Quick Min", scopedLabels: { quickFormula: "Min" }, description: "Quick minimum of the cells." }, function() {
1096
1097
  Y(this, "MIN");
1097
1098
  }), new J("startEditCurrentTime", o, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1098
- b?.({ text: t.createTemporaryCell({ value: jn(), style: { numberFormat: "Medium Time" } }).toText() });
1099
+ b?.({ text: t.createTemporaryCell({ value: Zn(), style: { numberFormat: "Medium Time" } }).toText() });
1099
1100
  }), new J("startEditCurrentDate", o, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, function() {
1100
- b?.({ text: t.createTemporaryCell({ value: jn(), style: { numberFormat: "Short Date" } }).toText() });
1101
+ b?.({ text: t.createTemporaryCell({ value: Zn(), style: { numberFormat: "Short Date" } }).toText() });
1101
1102
  }), new Ue("sheetZoomOut", o, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadSubtract", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ue("sheetZoomIn", o, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadAdd", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ue("sheetZoom100", o, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [ne.Ctrl, ne.Alt] } }), new J("insertFunction", o, { label: "Insert Function", disabled: !0, scopedLabels: { insert: "Function", quickFormula: "More Functions..." }, description: "Work with the formula in the current cell.", shortcut: { key: "F3", modifiers: [ne.Shift] } }, function(a, x) {
1102
1103
  console.log("insertFunction");
1103
1104
  }), new J("updateHyperlink", o, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => U, shortcut: [{ key: "K", modifiers: [ne.Ctrl] }, { key: "K", modifiers: [ne.Ctrl, ne.Alt] }] }, async function(a, x) {
@@ -1118,7 +1119,7 @@ For example, you can prevent people from editing locked cells or making formatti
1118
1119
  W(this, null, null);
1119
1120
  }), new Ue("insertNote", o, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [ne.Shift] }, description: "Add a note to the cell." }, (a, x) => {
1120
1121
  ((R, f) => {
1121
- R?.showMessage?.(Je("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [f, " is not yet implemented.", p("br", {}), p("br", {}), "Please see the ", p("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1122
+ R?.showMessage?.(Je("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [f, " is not yet implemented.", p("br", {}), p("br", {}), "Please see the ", p("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1122
1123
  })(i, x.label());
1123
1124
  }), new J("updateComments", o, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [ne.Ctrl, ne.Alt] }, description: "Add a comment to the current cell.", context: () => U }, async function(a, x) {
1124
1125
  const R = this, f = { context: x.context(), onUpdateComments: (I) => {
@@ -1159,7 +1160,7 @@ The values and the formatting are preserved.` }, function(a) {
1159
1160
  }), new J("autoFilterToggle", o, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1160
1161
  const a = this.context().table();
1161
1162
  a && a.setShowFilterButton(!a.getShowFilterButton());
1162
- }), new J("autoFilterReapply", o, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Alt] } }), new J("autoFilterClear", o, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new Ue("startEditValueAbove", o, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, Re), new J("formatPainterToggle", o, { label: "Format Painter", description: "Apply style to another part of your workbook." }), new Ue("insertCells", o, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", shortcut: { key: "=", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1163
+ }), new J("autoFilterReapply", o, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Alt] } }), new J("autoFilterClear", o, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new Ue("startEditValueAbove", o, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, Te), new J("formatPainterToggle", o, { label: "Format Painter", description: "Apply style to another part of your workbook." }), new Ue("insertCells", o, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", shortcut: { key: "=", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1163
1164
  A(this);
1164
1165
  }), new Ue("insertCellsShiftRight", o, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right." }, function() {
1165
1166
  A(this, qe.Orientation.Column);
@@ -1192,7 +1193,7 @@ The values and the formatting are preserved.` }, function(a) {
1192
1193
  }), new Ue("fillLeft", o, { label: "Fill Left", description: "Copy the right-most value from the selection to the left of the selection." }, function() {
1193
1194
  return ye(this, qe.Direction.Left);
1194
1195
  }), new Ue("formatBorderAddOutline", o, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1195
- return O(this, { border: { left: { style: At.StrokeStyle.Thin, color: null }, top: { style: At.StrokeStyle.Thin, color: null }, right: { style: At.StrokeStyle.Thin, color: null }, bottom: { style: At.StrokeStyle.Thin, color: null } } });
1196
+ return O(this, { border: { left: { style: Et.StrokeStyle.Thin, color: null }, top: { style: Et.StrokeStyle.Thin, color: null }, right: { style: Et.StrokeStyle.Thin, color: null }, bottom: { style: Et.StrokeStyle.Thin, color: null } } });
1196
1197
  }), new Ue("formatBorderClearOutline", o, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
1197
1198
  return O(this, { border: null });
1198
1199
  }), new Ue("formatIndentDecrease", o, { label: "Decrease Indent", description: "Move your content closer to the border." }, function() {
@@ -1208,13 +1209,13 @@ The values and the formatting are preserved.` }, function(a) {
1208
1209
  }), new J("mergeToggle", o, { label: "Merge", description: "Combine and center the contents into a single cell.", shortcut: { key: "m", modifiers: [ne.Ctrl] } }), new Ue("mergeHorizontal", o, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows." }), new Ue("mergeVertical", o, { label: "Merge Vertically", description: "Combine the contents into vertical columns." }), new Ue("unmerge", o, { label: "Unmerge", description: "Split merged cells into multiple cells." }), new Ue("clearContents", o, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, description: `Clear only the contents in the cells.
1209
1210
 
1210
1211
  The formatting is not cleared.`, shortcut: { key: "Delete" } }, function() {
1211
- z(this, Kt.Content.Values);
1212
+ z(this, Yt.Content.Values);
1212
1213
  }), new Ue("clearFormats", o, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, description: "Clear only the formatting that is applied to the cells." }, function() {
1213
- z(this, Kt.Content.Formats);
1214
+ z(this, Yt.Content.Formats);
1214
1215
  }), new Ue("clearHyperlinks", o, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
1215
- z(this, Kt.Content.Hyperlinks);
1216
+ z(this, Yt.Content.Hyperlinks);
1216
1217
  }), new Ue("clearComments", o, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
1217
- z(this, Kt.Content.Comments);
1218
+ z(this, Yt.Content.Comments);
1218
1219
  }), new Ue("clearAll", o, { label: "Clear All", scopedLabels: { clear: "All" }, description: `Clears everything from the cells.
1219
1220
 
1220
1221
  All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
@@ -1248,7 +1249,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1248
1249
  }, Ge = () => {
1249
1250
  m.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (a) => {
1250
1251
  G(a);
1251
- }, darkMode: r.darkMode, quickBorder: E, autoColor: t.getStyles().getNormal().getFont().getFill(), autoStyle: At.StrokeStyle.Thin, createTemporaryBorder: (a) => t.getStyles().getNormal().createTemporaryStyle({ border: a }).getBorder(), schemeLookup: t.getStyles().schemeLookup() }) });
1252
+ }, darkMode: r.darkMode, quickBorder: E, autoColor: t.getStyles().getNormal().getFont().getFill(), autoStyle: Et.StrokeStyle.Thin, createTemporaryBorder: (a) => t.getStyles().getNormal().createTemporaryStyle({ border: a }).getBorder(), schemeLookup: t.getStyles().schemeLookup() }) });
1252
1253
  };
1253
1254
  Se(() => {
1254
1255
  Ge();
@@ -1262,7 +1263,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1262
1263
  m.getCommand("updateComments").update({ label: () => `${x()} ${R()}`, scopedLabels: { contextMenu: `${x()} ${R()}…`, insert: `${R()}…` } });
1263
1264
  }, [U()?.getComments(), Ie]), ht(t, { onViewChange: () => {
1264
1265
  const a = t.getView();
1265
- m.getCommand("sheetViewToggleFormulaView").update({ state: a.isShowFormulas() }), m.getCommand("sheetViewToggleShowZeros").update({ state: a.isShowZeros() }), m.getCommand("gridlinesToggle").update({ state: a.isShowColumnGridlines() || a.isShowRowGridlines() }), m.getCommand("sheetViewToggleGridlinesColumns").update({ state: a.isShowColumnGridlines() }), m.getCommand("sheetViewToggleGridlinesRows").update({ state: a.isShowRowGridlines() }), m.getCommand("sheetViewToggleShowHeadings").update({ state: a.isShowColumnHeaders() || a.isShowRowHeaders() }), m.getCommand("sheetViewToggleShowHeadingColumns").update({ state: a.isShowColumnHeaders() }), m.getCommand("sheetViewToggleShowHeadingRows").update({ state: a.isShowRowHeaders() }), m.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => t.getView().getColumnHeaderStyle() === Qt.HeaderTextStyle.Zero && t.getView().getRowHeaderStyle() === Qt.HeaderTextStyle.Zero }), Le();
1266
+ m.getCommand("sheetViewToggleFormulaView").update({ state: a.isShowFormulas() }), m.getCommand("sheetViewToggleShowZeros").update({ state: a.isShowZeros() }), m.getCommand("gridlinesToggle").update({ state: a.isShowColumnGridlines() || a.isShowRowGridlines() }), m.getCommand("sheetViewToggleGridlinesColumns").update({ state: a.isShowColumnGridlines() }), m.getCommand("sheetViewToggleGridlinesRows").update({ state: a.isShowRowGridlines() }), m.getCommand("sheetViewToggleShowHeadings").update({ state: a.isShowColumnHeaders() || a.isShowRowHeaders() }), m.getCommand("sheetViewToggleShowHeadingColumns").update({ state: a.isShowColumnHeaders() }), m.getCommand("sheetViewToggleShowHeadingRows").update({ state: a.isShowRowHeaders() }), m.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => t.getView().getColumnHeaderStyle() === en.HeaderTextStyle.Zero && t.getView().getRowHeaderStyle() === en.HeaderTextStyle.Zero }), Le();
1266
1267
  }, onTabColorChange: () => {
1267
1268
  Le();
1268
1269
  }, onMergesChange: () => {
@@ -1308,8 +1309,8 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1308
1309
  }), m.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
1309
1310
  t.getView().update({ showRowHeaders: !t.getView().isShowRowHeaders() });
1310
1311
  }), m.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
1311
- const a = t.getView().getColumnHeaderStyle() === Qt.HeaderTextStyle.Zero && t.getView().getRowHeaderStyle() === Qt.HeaderTextStyle.Zero;
1312
- t.getView().update({ columnHeaderStyle: a ? Qt.HeaderTextStyle.A1 : Qt.HeaderTextStyle.Zero, rowHeaderStyle: a ? Qt.HeaderTextStyle.One : Qt.HeaderTextStyle.Zero });
1312
+ const a = t.getView().getColumnHeaderStyle() === en.HeaderTextStyle.Zero && t.getView().getRowHeaderStyle() === en.HeaderTextStyle.Zero;
1313
+ t.getView().update({ columnHeaderStyle: a ? en.HeaderTextStyle.A1 : en.HeaderTextStyle.Zero, rowHeaderStyle: a ? en.HeaderTextStyle.One : en.HeaderTextStyle.Zero });
1313
1314
  }), m.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
1314
1315
  t.getView().update({ showFormulas: !t.getView().isShowFormulas() });
1315
1316
  }), m.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
@@ -1446,13 +1447,13 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1446
1447
  const He = { alignment: { horizontal: fe() ? ve.HorizontalAlignment.General : ve.HorizontalAlignment.CenterContinuous, rotation: null } };
1447
1448
  O(this, He);
1448
1449
  }).update({ state: fe });
1449
- const Te = function() {
1450
+ const Me = function() {
1450
1451
  return C === ve.HorizontalAlignment.Fill;
1451
1452
  };
1452
1453
  m.getCommand("formatAlignFillToggle").updateCallback(function() {
1453
- const He = { alignment: { horizontal: Te() ? ve.HorizontalAlignment.General : ve.HorizontalAlignment.Fill, rotation: null } };
1454
+ const He = { alignment: { horizontal: Me() ? ve.HorizontalAlignment.General : ve.HorizontalAlignment.Fill, rotation: null } };
1454
1455
  O(this, He);
1455
- }).update({ state: Te });
1456
+ }).update({ state: Me });
1456
1457
  const We = function() {
1457
1458
  return C === ve.HorizontalAlignment.Distributed;
1458
1459
  };
@@ -1488,30 +1489,30 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1488
1489
  }, [Fe, t, r, H, L]), Se(() => {
1489
1490
  const a = !t.getProtection().isFormatCellsAllowed(), x = t.getSelectedRanges().getMerges().length > 0, R = async (ot, vt) => {
1490
1491
  B(vt, async (Nt) => {
1491
- const Vt = async (Mt = !1) => {
1492
+ const Ht = async (Mt = !1) => {
1492
1493
  const bt = await Promise.resolve(i?.showBusy?.(vt.label()));
1493
1494
  try {
1494
- const Xt = Nt.getSelectedRanges();
1495
- if (Xt.merge({ orientations: ot, discardMultipleValues: Mt }), ot === qe.Orientations.Both) {
1496
- const un = { alignment: { horizontal: ve.HorizontalAlignment.Center } };
1497
- Xt.updateStyle(un);
1495
+ const Jt = Nt.getSelectedRanges();
1496
+ if (Jt.merge({ orientations: ot, discardMultipleValues: Mt }), ot === qe.Orientations.Both) {
1497
+ const gn = { alignment: { horizontal: ve.HorizontalAlignment.Center } };
1498
+ Jt.updateStyle(gn);
1498
1499
  }
1499
- } catch (Xt) {
1500
- throw Xt;
1500
+ } catch (Jt) {
1501
+ throw Jt;
1501
1502
  } finally {
1502
1503
  bt?.();
1503
1504
  }
1504
1505
  };
1505
1506
  let Lt;
1506
1507
  try {
1507
- await Vt();
1508
+ await Ht();
1508
1509
  } catch (Mt) {
1509
1510
  if (Mt.type !== "discardMultipleValues") throw Mt;
1510
1511
  Lt = !0;
1511
1512
  }
1512
1513
  if (Lt && i?.showOptions) {
1513
1514
  if (await i?.showOptions({ title: "Confirm", description: "Merging cells will only keep the upper-left value. Some data will be discarded. Continue?", options: ["Merge", "Cancel"], defaultOption: "Merge" }) !== "Merge") return;
1514
- await Vt(!0);
1515
+ await Ht(!0);
1515
1516
  }
1516
1517
  }, void 0, void 0, !1);
1517
1518
  }, f = (ot) => {
@@ -1519,8 +1520,8 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1519
1520
  try {
1520
1521
  const Nt = vt.getSelectedRanges();
1521
1522
  Nt.unmerge();
1522
- const Vt = { alignment: { horizontal: null } };
1523
- Nt.updateStyle(Vt);
1523
+ const Ht = { alignment: { horizontal: null } };
1524
+ Nt.updateStyle(Ht);
1524
1525
  } catch (Nt) {
1525
1526
  throw Nt;
1526
1527
  }
@@ -1569,14 +1570,14 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1569
1570
  pe && (V = 1);
1570
1571
  const fe = ee || a || Qe || Z;
1571
1572
  fe && (re = 1);
1572
- let Te = "", We = "", Be = "", et = "", $e = "", nt = "", He = "", at = "", Ct = "";
1573
- V > 1 && (nt = We = V + " ", He = Be = "s"), re > 1 && (at = et = re + " ", Ct = $e = "s"), v.getMode()?.key === "copy" ? (Te = et = We = "Copied ", Be = $e = "s") : v.getMode()?.key === "cut" && (Te = et = We = "Cut ", Be = $e = "s");
1574
- let Ft = "", Ht = "";
1573
+ let Me = "", We = "", Be = "", et = "", $e = "", nt = "", He = "", at = "", Ct = "";
1574
+ V > 1 && (nt = We = V + " ", He = Be = "s"), re > 1 && (at = et = re + " ", Ct = $e = "s"), v.getMode()?.key === "copy" ? (Me = et = We = "Copied ", Be = $e = "s") : v.getMode()?.key === "cut" && (Me = et = We = "Cut ", Be = $e = "s");
1575
+ let Ft = "", Pt = "";
1575
1576
  if (d) {
1576
1577
  const ot = d.getDefaultShiftOrientation() === qe.Orientation.Column;
1577
- Ft = ` (${ot ? "Shift Right" : "Shift Down"})`, Ht = ` (${ot ? "Shift Left" : "Shift up"})`, m.getCommand("deleteCells").update({ label: `Delete Cells${Ht}` });
1578
+ Ft = ` (${ot ? "Shift Right" : "Shift Down"})`, Pt = ` (${ot ? "Shift Left" : "Shift up"})`, m.getCommand("deleteCells").update({ label: `Delete Cells${Pt}` });
1578
1579
  }
1579
- m.getCommand("insertCells").update({ label: `Insert ${Te}Cells${Ft}`, scopedLabels: { insertCells: `${Te}At Selection` } }), m.getCommand("insertCellsShiftRight").update(ke), m.getCommand("insertCellsShiftDown").update(ke), m.getCommand("deleteCellsShiftUp").update(ke), m.getCommand("deleteCellsShiftLeft").update(ke), m.getCommand("insertRows").update({ label: `Insert ${et}Row${$e}`, scopedLabels: { insertCells: `${et}Row${$e}` }, disabled: fe }), m.getCommand("insertRowsAfter").update({ label: `Insert ${et}Row${$e} Below`, disabled: fe }), m.getCommand("insertColumns").update({ label: `Insert ${We}Column${Be}`, scopedLabels: { insertCells: `${We}Column${Be}` }, disabled: pe }), m.getCommand("insertColumnsAfter").update({ label: `Insert ${We}Column${Be} After`, disabled: pe }), m.getCommand("deleteRows").update({ label: `Delete ${at}Row${Ct}`, scopedLabels: { deleteCells: `${at}Row${Ct}` }, disabled: fe }), m.getCommand("deleteColumns").update({ label: `Delete ${nt}Column${He}`, scopedLabels: { deleteCells: `${nt}Column${He}` }, disabled: pe });
1580
+ m.getCommand("insertCells").update({ label: `Insert ${Me}Cells${Ft}`, scopedLabels: { insertCells: `${Me}At Selection` } }), m.getCommand("insertCellsShiftRight").update(ke), m.getCommand("insertCellsShiftDown").update(ke), m.getCommand("deleteCellsShiftUp").update(ke), m.getCommand("deleteCellsShiftLeft").update(ke), m.getCommand("insertRows").update({ label: `Insert ${et}Row${$e}`, scopedLabels: { insertCells: `${et}Row${$e}` }, disabled: fe }), m.getCommand("insertRowsAfter").update({ label: `Insert ${et}Row${$e} Below`, disabled: fe }), m.getCommand("insertColumns").update({ label: `Insert ${We}Column${Be}`, scopedLabels: { insertCells: `${We}Column${Be}` }, disabled: pe }), m.getCommand("insertColumnsAfter").update({ label: `Insert ${We}Column${Be} After`, disabled: pe }), m.getCommand("deleteRows").update({ label: `Delete ${at}Row${Ct}`, scopedLabels: { deleteCells: `${at}Row${Ct}` }, disabled: fe }), m.getCommand("deleteColumns").update({ label: `Delete ${nt}Column${He}`, scopedLabels: { deleteCells: `${nt}Column${He}` }, disabled: pe });
1580
1581
  }, [Ne, Ke, Qe, d, v, i, Ie]), Se(() => {
1581
1582
  const a = t.getProtection(), x = t.getProtection().isLocked(), R = !a.isFormatCellsAllowed(), f = { disabled: R };
1582
1583
  m.getCommand("protectionSheetToggle").updateCallback(async (V, Z) => {
@@ -1604,7 +1605,7 @@ var yr, br;
1604
1605
  (function() {
1605
1606
  if (br) return yr;
1606
1607
  br = 1;
1607
- var e = /^\s+|\s+$/g, t = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, r = /^0o[0-7]+$/i, l = parseInt, o = typeof Vn == "object" && Vn && Vn.Object === Object && Vn, i = typeof self == "object" && self && self.Object === Object && self, c = o || i || Function("return this")(), g = Object.prototype.toString, s = Math.max, y = Math.min, d = function() {
1608
+ var e = /^\s+|\s+$/g, t = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, r = /^0o[0-7]+$/i, l = parseInt, o = typeof Pn == "object" && Pn && Pn.Object === Object && Pn, i = typeof self == "object" && self && self.Object === Object && self, c = o || i || Function("return this")(), g = Object.prototype.toString, s = Math.max, y = Math.min, d = function() {
1608
1609
  return c.Date.now();
1609
1610
  };
1610
1611
  function u(b) {
@@ -1697,28 +1698,28 @@ Cr || (Cr = 1, Sr.exports = function() {
1697
1698
  };
1698
1699
  return Ho.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, Ho;
1699
1700
  }()), Sr.exports;
1700
- var xr, kr, Nn = { exports: {} }, wn = { exports: {} }, Wi = wn.exports;
1701
+ var xr, kr, On = { exports: {} }, bn = { exports: {} }, $i = bn.exports;
1701
1702
  function Rr(e, t) {
1702
1703
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1703
1704
  }
1704
1705
  (function() {
1705
- if (kr) return Nn.exports;
1706
+ if (kr) return On.exports;
1706
1707
  kr = 1;
1707
1708
  for (var e = (xr || (xr = 1, function() {
1708
1709
  var d, u, k, b, D, E;
1709
- typeof performance < "u" && performance !== null && performance.now ? wn.exports = function() {
1710
+ typeof performance < "u" && performance !== null && performance.now ? bn.exports = function() {
1710
1711
  return performance.now();
1711
- } : typeof process < "u" && process !== null && process.hrtime ? (wn.exports = function() {
1712
+ } : typeof process < "u" && process !== null && process.hrtime ? (bn.exports = function() {
1712
1713
  return (d() - D) / 1e6;
1713
1714
  }, u = process.hrtime, b = (d = function() {
1714
1715
  var G;
1715
1716
  return 1e9 * (G = u())[0] + G[1];
1716
- })(), E = 1e9 * process.uptime(), D = b - E) : Date.now ? (wn.exports = function() {
1717
+ })(), E = 1e9 * process.uptime(), D = b - E) : Date.now ? (bn.exports = function() {
1717
1718
  return Date.now() - k;
1718
- }, k = Date.now()) : (wn.exports = function() {
1719
+ }, k = Date.now()) : (bn.exports = function() {
1719
1720
  return (/* @__PURE__ */ new Date()).getTime() - k;
1720
1721
  }, k = (/* @__PURE__ */ new Date()).getTime());
1721
- }.call(Wi)), wn.exports), t = typeof window > "u" ? Vn : window, n = ["moz", "webkit"], r = "AnimationFrame", l = t["request" + r], o = t["cancel" + r] || t["cancelRequest" + r], i = 0; !l && i < n.length; i++) l = t[n[i] + "Request" + r], o = t[n[i] + "Cancel" + r] || t[n[i] + "CancelRequest" + r];
1722
+ }.call($i)), bn.exports), t = typeof window > "u" ? Pn : window, n = ["moz", "webkit"], r = "AnimationFrame", l = t["request" + r], o = t["cancel" + r] || t["cancelRequest" + r], i = 0; !l && i < n.length; i++) l = t[n[i] + "Request" + r], o = t[n[i] + "Cancel" + r] || t[n[i] + "CancelRequest" + r];
1722
1723
  if (!l || !o) {
1723
1724
  var c = 0, g = 0, s = [], y = 1e3 / 60;
1724
1725
  l = function(d) {
@@ -1741,31 +1742,31 @@ function Rr(e, t) {
1741
1742
  for (var u = 0; u < s.length; u++) s[u].handle === d && (s[u].cancelled = !0);
1742
1743
  };
1743
1744
  }
1744
- Nn.exports = function(d) {
1745
+ On.exports = function(d) {
1745
1746
  return l.call(t, d);
1746
- }, Nn.exports.cancel = function() {
1747
+ }, On.exports.cancel = function() {
1747
1748
  o.apply(t, arguments);
1748
- }, Nn.exports.polyfill = function(d) {
1749
+ }, On.exports.polyfill = function(d) {
1749
1750
  d || (d = t), d.requestAnimationFrame = l, d.cancelAnimationFrame = o;
1750
- }, Nn.exports;
1751
+ }, On.exports;
1751
1752
  })();
1752
1753
  const ml = ft(wt((e, t) => {
1753
1754
  const { style: n = it.EmptyCssProperties, orientation: r, sheet: l, onShowTooltip: o, onCloseTooltip: i, onScrollOffset: c, showCustomScrollButtons: g = !1, offset: s = 0, totalSize: y = 0, viewportSize: d = 0, ...u } = e;
1754
1755
  if (!l) throw new Error("SheetScrollBar needs a sheet model");
1755
- const [k] = sn(), b = ie(o, [o]), D = ie(i, [i]), E = Ce(() => G === null && H === null ? null : (Y) => {
1756
+ const [k] = dn(), b = ie(o, [o]), D = ie(i, [i]), E = Ce(() => G === null && H === null ? null : (Y) => {
1756
1757
  Rr(G, Y), Rr(H, Y);
1757
1758
  }, [G = k, H = t]);
1758
1759
  var G, H;
1759
1760
  const [w, L] = ue(() => {
1760
1761
  const Y = l.getView().getTopLeft();
1761
- return r === ln.Vertical ? Y.top : Y.left;
1762
+ return r === an.Vertical ? Y.top : Y.left;
1762
1763
  }), q = () => {
1763
1764
  const Y = l.getView().getFreezePanes();
1764
- return r === ln.Vertical ? Y.coords.rowIndex === 0 ? { shift: 0, scroll: 0 } : { shift: l.getRowHeaders().findOffset(Y.coords.rowIndex) - Y.topLeft.top, scroll: Y.topLeft.top } : Y.coords.colIndex === 0 ? { shift: 0, scroll: 0 } : { shift: l.getColumnHeaders().findOffset(Y.coords.colIndex) - Y.topLeft.left, scroll: Y.topLeft.left };
1765
- }, [v, S] = ue(q), [F, T] = ue(null), [M, j] = ue(!1), U = r === ln.Vertical ? l.getRowHeaders() : l.getColumnHeaders(), B = () => {
1765
+ return r === an.Vertical ? Y.coords.rowIndex === 0 ? { shift: 0, scroll: 0 } : { shift: l.getRowHeaders().findOffset(Y.coords.rowIndex) - Y.topLeft.top, scroll: Y.topLeft.top } : Y.coords.colIndex === 0 ? { shift: 0, scroll: 0 } : { shift: l.getColumnHeaders().findOffset(Y.coords.colIndex) - Y.topLeft.left, scroll: Y.topLeft.left };
1766
+ }, [v, S] = ue(q), [F, T] = ue(null), [M, j] = ue(!1), U = r === an.Vertical ? l.getRowHeaders() : l.getColumnHeaders(), B = () => {
1766
1767
  const Y = l.getUsedRange()?.getCoords() ?? qt.EmptyRange, _ = l.getSelection().getCoords().cell;
1767
1768
  return { colIndex: Math.max(Y.colEnd, _.colIndex), rowIndex: Math.max(Y.rowEnd, _.rowIndex) };
1768
- }, [O, W] = ue(B), te = O ? (r === ln.Vertical ? O.rowIndex : O.colIndex) + 1 : 0, z = () => {
1769
+ }, [O, W] = ue(B), te = O ? (r === an.Vertical ? O.rowIndex : O.colIndex) + 1 : 0, z = () => {
1769
1770
  const Y = B();
1770
1771
  qt.isEqualCells(O, Y) || W(Y);
1771
1772
  };
@@ -1776,14 +1777,14 @@ const ml = ft(wt((e, t) => {
1776
1777
  }, [l]), Se(() => {
1777
1778
  if (!F) return M && D?.(), void j(!1);
1778
1779
  const Y = U.getTextAt(U.findIndex(w / (l.getView().getZoomScale() / 100) + v.scroll + v.shift));
1779
- j(!0), b?.({ ...F, display: (r === ln.Vertical ? "Row" : "Column") + ": " + Y });
1780
+ j(!0), b?.({ ...F, display: (r === an.Vertical ? "Row" : "Column") + ": " + Y });
1780
1781
  }, [s, w, v, r, F, U, M, l]);
1781
1782
  const A = ie((Y, _, be) => {
1782
1783
  L(Y);
1783
1784
  const Ae = Y + v.scroll, we = _ + v.shift, _e = be + v.shift + v.scroll;
1784
1785
  c?.(Ae, we, _e);
1785
1786
  }, [c, v]), P = s - v.scroll, $ = d - v.shift, ge = y - (v.shift + v.scroll), ae = U.findOffset(te) * (l.getView().getZoomScale() / 100) - (v.scroll + v.shift);
1786
- return p(li, { ref: E, style: n, offset: P, viewportSize: $, totalSize: ge, orientation: r, showCustomScrollButtons: g, onMouseDown: (Y) => {
1787
+ return p(ii, { ref: E, style: n, offset: P, viewportSize: $, totalSize: ge, orientation: r, showCustomScrollButtons: g, onMouseDown: (Y) => {
1787
1788
  T({ anchor: { x: Y.clientX, y: Y.clientY } }), Y.preventDefault();
1788
1789
  }, onScrollOffset: A, onMouseOut: () => {
1789
1790
  T(null);
@@ -1800,8 +1801,8 @@ const Tr = (e, t, n = null) => {
1800
1801
  }
1801
1802
  return r;
1802
1803
  }, Mr = ft(wt((e, t) => {
1803
- const { sheetHeader: n, gridRef: r, sheetElement: l, commands: o, oppositeSize: i = 30, containerWidth: c, containerHeight: g, headerText: s, freezeStart: y, gridStyle: d, verticalPadding: u, horizontalPadding: k, onSheetContextMenu: b, onResizeHeadersStart: D, onResizeHeaders: E, onResizeHeadersEnd: G, onResizeHeadersDown: H, onResizeHeadersUp: w, scrollPoint: L, onSelectionStart: q, onSelectionEnd: v } = e, S = Ce(() => n.getOrientation(), [n]), F = Me(null), [T, M] = an((N) => N + 1, 0), [j, U] = an((N) => N + 1, 0), B = n?.getSheet(), O = Me(!1);
1804
- Ot(() => {
1804
+ const { sheetHeader: n, gridRef: r, sheetElement: l, commands: o, oppositeSize: i = 30, containerWidth: c, containerHeight: g, headerText: s, freezeStart: y, gridStyle: d, verticalPadding: u, horizontalPadding: k, onSheetContextMenu: b, onResizeHeadersStart: D, onResizeHeaders: E, onResizeHeadersEnd: G, onResizeHeadersDown: H, onResizeHeadersUp: w, scrollPoint: L, onSelectionStart: q, onSelectionEnd: v } = e, S = Ce(() => n.getOrientation(), [n]), F = Re(null), [T, M] = sn((N) => N + 1, 0), [j, U] = sn((N) => N + 1, 0), B = n?.getSheet(), O = Re(!1);
1805
+ Bt(() => {
1805
1806
  O.current = !0;
1806
1807
  }, [n]);
1807
1808
  const W = Ce(() => n.getEntireRange().getCoords().max + 1, [n]), te = Ce(() => {
@@ -1822,16 +1823,16 @@ const Tr = (e, t, n = null) => {
1822
1823
  ge();
1823
1824
  }, onViewChange() {
1824
1825
  ae();
1825
- } }), Ot(() => {
1826
+ } }), Bt(() => {
1826
1827
  Ie(ye());
1827
- }, [S, z, i]), Ot(() => {
1828
+ }, [S, z, i]), Bt(() => {
1828
1829
  $(null), A(n?.getSheet().getView().getZoomScale() / 100), Ie(ye());
1829
1830
  }, [n]);
1830
1831
  const be = Xe((N) => n.at(N)?.isHidden() || n.at(N)?.getSize() === 0, [n]), Ae = Xe((N, K) => n.hiddenHeadersAt(N, K), [be]), we = ie((N) => n.isSelected(N), [n]), _e = ie((N) => n.isSelectedAll(N), [n]), he = Xe(() => n.getMinSize(), [n]), Ze = Xe(() => n.getMaxSize(), [n]), De = ie((N, K, a) => {
1831
1832
  K /= z;
1832
1833
  const x = { size: K = Math.max(he(), Math.min(rt.roundAccurately(K, he()), Ze())), hidden: !1 }, R = [];
1833
1834
  if (K <= 0 && (x.hidden = !0, x.size = a), R.push({ address: { min: N, max: N }, update: x }), K < 0) {
1834
- const f = S === qe.Orientation.Column, I = f ? Re.getColOffset : Re.getRowOffset, h = f ? Re.getColIndex : Re.getRowIndex, V = I(N);
1835
+ const f = S === qe.Orientation.Column, I = f ? Te.getColOffset : Te.getRowOffset, h = f ? Te.getColIndex : Te.getRowIndex, V = I(N);
1835
1836
  let Z = h(V + K);
1836
1837
  const ee = I(Z);
1837
1838
  ee === V + K ? Z-- : R.push({ address: { min: Z, max: Z }, update: { size: V - ee + K } }), N - Z > 1 && R.push({ address: { min: Z + 1, max: N - 1 }, update: { hidden: !0 } });
@@ -1873,11 +1874,11 @@ const Tr = (e, t, n = null) => {
1873
1874
  }, [T, n, G, be]), ye = () => {
1874
1875
  const N = S === qe.Orientation.Column;
1875
1876
  return { getColOffset: (K) => N ? n.findOffset(K) : K === 0 ? 0 : i / z, getColIndex: (K) => N ? n.findIndex(K) : 0, getRowOffset: (K) => N ? K === 0 ? 0 : i / z : n.findOffset(K), getRowIndex: (K) => N ? 0 : n.findIndex(K) };
1876
- }, [Re, Ie] = ue(() => ye()), xe = Xe((N, K) => N.nativeEvent.which !== rl.Right || !_e(S === qe.Orientation.Column ? K.colIndex : K.rowIndex), [S, _e]), Ne = ie((N) => {
1877
+ }, [Te, Ie] = ue(() => ye()), xe = Xe((N, K) => N.nativeEvent.which !== rl.Right || !_e(S === qe.Orientation.Column ? K.colIndex : K.rowIndex), [S, _e]), Ne = ie((N) => {
1877
1878
  l.focusSheet();
1878
1879
  }, [l]), Pe = ie((N) => {
1879
1880
  B?.getSelection().updateCoords(N);
1880
- }, [B]), { ...je } = il({ gridRef: r, commands: null, layout: Re, selection: Y, fillHandleBorderColor: d.body.fill, selectionBackgroundColor: d.selection.fill, selectionBorderColor: d.selection.strokeFill, selectionRemoveBackgroundColor: d.selectionRemove.fill, selectionRemoveBorderColor: d.selectionRemove.strokeFill, disableTouchSelection: !0, onSelectionChange: Pe, canSelectionSpanMergedCells: (N) => {
1881
+ }, [B]), { ...je } = il({ gridRef: r, commands: null, layout: Te, selection: Y, fillHandleBorderColor: d.body.fill, selectionBackgroundColor: d.selection.fill, selectionBorderColor: d.selection.strokeFill, selectionRemoveBackgroundColor: d.selectionRemove.fill, selectionRemoveBorderColor: d.selectionRemove.strokeFill, disableTouchSelection: !0, onSelectionChange: Pe, canSelectionSpanMergedCells: (N) => {
1881
1882
  const K = B.getRange(N);
1882
1883
  return K.isEntireColumns() || K.isEntireRows();
1883
1884
  } }), m = ie(() => {
@@ -1886,7 +1887,7 @@ const Tr = (e, t, n = null) => {
1886
1887
  N && N.setAdjusting(N.getCoords());
1887
1888
  }, [B, q]), Ke = ie(async () => {
1888
1889
  B?.getSelection().setAdjusting(null), v?.();
1889
- }, [B, v]), { ...ut } = wi({ orientation: S, headerCount: W, gridRef: F, gridMainRef: r, newSelection: je?.newSelection, modifySelection: je?.modifySelection, appendSelection: je?.appendSelection, clearSelections: je?.clearSelections, pointerDownInterceptor: xe, onPointerUp: Ne, onDragStart: m, onDragEnd: Ke }), Qe = d.selection?.strokeFill;
1890
+ }, [B, v]), { ...ut } = yi({ orientation: S, headerCount: W, gridRef: F, gridMainRef: r, newSelection: je?.newSelection, modifySelection: je?.modifySelection, appendSelection: je?.appendSelection, clearSelections: je?.clearSelections, pointerDownInterceptor: xe, onPointerUp: Ne, onDragStart: m, onDragEnd: Ke }), Qe = d.selection?.strokeFill;
1890
1891
  Se(() => {
1891
1892
  if (!F.current) return void $(null);
1892
1893
  const N = S === qe.Orientation.Column, K = n.getSelectedRuns(), a = n.isProtected() ? null : De, x = (f, I, h) => {
@@ -1912,19 +1913,19 @@ const Tr = (e, t, n = null) => {
1912
1913
  let ee = [];
1913
1914
  const re = [];
1914
1915
  for (let fe = 0; fe < V.length; fe++) {
1915
- const Te = V[fe], We = fe < V.length - 1 ? V[fe + 1] : Te + Ae(Te + 1, !1) + 1, Be = Te + 1 !== We;
1916
- if (!h || h.max < Te) if (K.length > 0 && K[K.length - 1].max >= Te) {
1917
- const nt = rt.findEqualOrGreater(K, Te, (He) => He.max);
1916
+ const Me = V[fe], We = fe < V.length - 1 ? V[fe + 1] : Me + Ae(Me + 1, !1) + 1, Be = Me + 1 !== We;
1917
+ if (!h || h.max < Me) if (K.length > 0 && K[K.length - 1].max >= Me) {
1918
+ const nt = rt.findEqualOrGreater(K, Me, (He) => He.max);
1918
1919
  h = K[nt];
1919
1920
  } else h = null;
1920
1921
  let et = !1, $e = !1;
1921
- if (h?.value && (h.min <= Te || h.min <= We && !Be) && (et = !0, $e = h.value.isSelectedAll), Te === Z) {
1922
+ if (h?.value && (h.min <= Me || h.min <= We && !Be) && (et = !0, $e = h.value.isSelectedAll), Me === Z) {
1922
1923
  let nt = !1, He = !1;
1923
- h?.value && h.min <= Te && (nt = !0, He = h.value.isSelectedAll), Te > 0 && re.push({ index: Te - 1, isNextHidden: Be, isSelected: nt, isSelectedAll: He, disabledResize: !0 });
1924
+ h?.value && h.min <= Me && (nt = !0, He = h.value.isSelectedAll), Me > 0 && re.push({ index: Me - 1, isNextHidden: Be, isSelected: nt, isSelectedAll: He, disabledResize: !0 });
1924
1925
  }
1925
- if ($e && ee.push(re.length), re.push({ index: Te, isHidden: fe === 0 && Ae(Te, !1) > 0, isNextHidden: Be, isSelected: et, isSelectedAll: $e, onDividerMouseDown: H, onDividerResizeStart: de, onDividerResize: a, onDividerMouseUp: w, onDividerResizeEnd: ce, onDividerAutoFit: me }), Be) {
1926
+ if ($e && ee.push(re.length), re.push({ index: Me, isHidden: fe === 0 && Ae(Me, !1) > 0, isNextHidden: Be, isSelected: et, isSelectedAll: $e, onDividerMouseDown: H, onDividerResizeStart: de, onDividerResize: a, onDividerMouseUp: w, onDividerResizeEnd: ce, onDividerAutoFit: me }), Be) {
1926
1927
  let nt = !1, He = !1;
1927
- if (h && h.min >= Te && h.max <= We - 1 && h.value.isSelectedAll && ee.push(re.length), !(h?.value && h.max >= We)) if (K.length > 0 && K[K.length - 1].max >= We) {
1928
+ if (h && h.min >= Me && h.max <= We - 1 && h.value.isSelectedAll && ee.push(re.length), !(h?.value && h.max >= We)) if (K.length > 0 && K[K.length - 1].max >= We) {
1928
1929
  const at = rt.findEqualOrGreater(K, We, (Ct) => Ct.max);
1929
1930
  h = K[at];
1930
1931
  } else h = null;
@@ -1938,34 +1939,34 @@ const Tr = (e, t, n = null) => {
1938
1939
  let et = null;
1939
1940
  N ? (et = f.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: Be, colEnd: Be }), et.x + et.width > f.getBounds().width && (fe -= 1, fe === 0 && (fe = -1))) : (et = f.getRangeCoordsBounds({ rowStart: Be, rowEnd: Be, colStart: 0, colEnd: 0 }), et.y + et.height > f.getBounds().height && (fe -= 1, fe === 0 && (fe = -1)));
1940
1941
  }
1941
- const Te = K?.[K.length - 1], We = f.getAnchor();
1942
+ const Me = K?.[K.length - 1], We = f.getAnchor();
1942
1943
  if (We === "t" || We === "l") {
1943
1944
  const Be = re[ee[Math.max(0, ee.length - 1)]];
1944
- Be.showTouchDivider = Te && Te.max <= Be.index;
1945
+ Be.showTouchDivider = Me && Me.max <= Be.index;
1945
1946
  } else fe >= 0 && (re[ee[fe]].showTouchDivider = !0);
1946
1947
  }
1947
1948
  const { header: le, headerSelect: se, headerSelectAll: ke, headerHover: pe } = d ?? {};
1948
- for (let fe = 0; fe < re.length; fe++) I.push(p(bi, { orientation: S, view: f, headerStyle: le, headerStyleSelect: se, headerStyleSelectAll: ke, headerStyleHover: pe, disabled: n.isProtected(), ...re[fe] }, `divider${fe}`));
1949
+ for (let fe = 0; fe < re.length; fe++) I.push(p(qi, { orientation: S, view: f, headerStyle: le, headerStyleSelect: se, headerStyleSelectAll: ke, headerStyleHover: pe, disabled: n.isProtected(), ...re[fe] }, `divider${fe}`));
1949
1950
  return I;
1950
1951
  }, (f) => {
1951
1952
  const I = [];
1952
1953
  for (let h = 0; K && h < K.length; h++) I.push(x(`selection:${f.getAnchor()}:${h}`, 0, R(K[h].min, K[h].max, f)));
1953
1954
  return I;
1954
1955
  }]);
1955
- }, [j, !0, Qe, d, Re, W, y, T, z]), Se(() => {
1956
+ }, [j, !0, Qe, d, Te, W, y, T, z]), Se(() => {
1956
1957
  F.current?.invalidate();
1957
1958
  }, [T]);
1958
1959
  const X = ie((N) => s ? s(N) : n.getTextAt(N), [s, n]), Le = ie((N) => {
1959
1960
  const { header: K, headerSelect: a, headerSelectAll: x, headerHover: R } = d ?? {}, { range: f, key: I, ...h } = N;
1960
- return p(yi, { orientation: S, index: S === qe.Orientation.Column ? f.colStart : f.rowStart, isSelected: we, isSelectedAll: _e, zoomScale: 100 * z, headerText: X, headerStyle: K, headerStyleSelect: a, headerStyleSelectAll: x, headerStyleHover: R, verticalPadding: u, horizontalPadding: k, ...h }, I);
1961
- }, [T, W, d, z, n]), Ge = cn(), Fe = Ce(() => {
1961
+ return p(bi, { orientation: S, index: S === qe.Orientation.Column ? f.colStart : f.rowStart, isSelected: we, isSelectedAll: _e, zoomScale: 100 * z, headerText: X, headerStyle: K, headerStyleSelect: a, headerStyleSelectAll: x, headerStyleHover: R, verticalPadding: u, horizontalPadding: k, ...h }, I);
1962
+ }, [T, W, d, z, n]), Ge = un(), Fe = Ce(() => {
1962
1963
  const N = "white", K = "black", a = {};
1963
1964
  if (it.detectIt().primaryInput !== "touch") {
1964
1965
  let x = S === qe.Orientation.Column ? `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${K}' fill='${N}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer` : `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${K}' fill='${N}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;
1965
1966
  Ge.getMode()?.key === "formatPainter" && (x = `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='${K}' fill='${N}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`), a.cursor = x;
1966
1967
  }
1967
1968
  return a.backgroundColor = d?.header?.fill || "transparent", a;
1968
- }, [S, T, Ge, d]), Ve = jt(t, () => ({ scrollTo: (N) => {
1969
+ }, [S, T, Ge, d]), Ve = _t(t, () => ({ scrollTo: (N) => {
1969
1970
  F.current?.scrollTo(N);
1970
1971
  }, forceRender: () => {
1971
1972
  M();
@@ -1978,24 +1979,24 @@ const Tr = (e, t, n = null) => {
1978
1979
  b({ originalEvent: N, clientX: N.clientX, clientY: N.clientY, rowIndex: a ? -1 : K.rowIndex, colIndex: a ? K.colIndex : -1 }), N.stopPropagation(), N.preventDefault();
1979
1980
  }, [ut, b]), oe = Ce(() => {
1980
1981
  const N = S === qe.Orientation.Column;
1981
- return p("div", { ref: Ve, children: p(al, { className: "sheet-header", style: Fe, ref: F, scrollPoint: te, columnCount: N ? W : 1, rowCount: N ? 1 : W, width: N ? c : i, height: N ? i : g, freezeLeft: N ? y : void 0, freezeTop: N ? void 0 : y, hiddenColumnsAt: N ? Ae : void 0, hiddenRowsAt: N ? void 0 : Ae, showGridLines: !1, layout: Re, clipCells: !1, allowOverlaysOverflow: !0, enableMouseWheel: !1, onContextMenu: C, onPointerDown: Oe, zoom: z, cellRenderer: Le, overlays: P }) });
1982
- }, [P, Re, c, g, te, Fe, j]);
1982
+ return p("div", { ref: Ve, children: p(al, { className: "sheet-header", style: Fe, ref: F, scrollPoint: te, columnCount: N ? W : 1, rowCount: N ? 1 : W, width: N ? c : i, height: N ? i : g, freezeLeft: N ? y : void 0, freezeTop: N ? void 0 : y, hiddenColumnsAt: N ? Ae : void 0, hiddenRowsAt: N ? void 0 : Ae, showGridLines: !1, layout: Te, clipCells: !1, allowOverlaysOverflow: !0, enableMouseWheel: !1, onContextMenu: C, onPointerDown: Oe, zoom: z, cellRenderer: Le, overlays: P }) });
1983
+ }, [P, Te, c, g, te, Fe, j]);
1983
1984
  return Se(() => {
1984
1985
  O.current = !1, F.current?.invalidate(), U();
1985
1986
  }, [n, d]), oe;
1986
- })), $i = ft(wt((e, t) => {
1987
+ })), Ui = ft(wt((e, t) => {
1987
1988
  const { view: n, sheet: r, getVisibleCells: l, gridStyle: o } = e, i = ie((s, y) => s.getStyle().getBorder(), []), { overlay: c } = gl({ getVisibleCells: l, getBorderAt: i, darkMode: o.body.darkMode, shiftIfWide: !0 }), g = c(n);
1988
1989
  return g && n ? g : null;
1989
- })), Ui = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, Gi = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, ji = { type: Kt.Content.Values }, _i = { fitDestination: !0, type: Kt.Content.Formats }, Zi = { fitDestination: !0, type: Kt.Content.Formulas }, Ki = { transpose: !0 }, Yi = { fitDestination: !0, adjustCells: (e, t, n) => ({ value: `=${t.getA1({ $colIndex: !0, $rowIndex: !0 })}` }) }, Xi = ({ element: e, sheet: t, sheetView: n, commands: r, onClipboardUpdate: l, onPaste: o, selectionRenderer: i = qi, copyForegroundColor: c = "rgb(33, 115, 70)", cutForegroundColor: g = "rgb(33, 115, 70)", copyBackgroundColor: s = "white", cutBackgroundColor: y = "white", notifier: d, ...u }) => {
1990
- const k = ie(i, [i]), b = Me(null), D = cn(), E = D.getMode(), G = Ce(() => ({ element: e, doCopy: (v) => {
1990
+ })), Gi = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, ji = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, _i = { type: Yt.Content.Values }, Zi = { fitDestination: !0, type: Yt.Content.Formats }, Ki = { fitDestination: !0, type: Yt.Content.Formulas }, Yi = { transpose: !0 }, Xi = { fitDestination: !0, adjustCells: (e, t, n) => ({ value: `=${t.getA1({ $colIndex: !0, $rowIndex: !0 })}` }) }, Ji = ({ element: e, sheet: t, sheetView: n, commands: r, onClipboardUpdate: l, onPaste: o, selectionRenderer: i = Ci, copyForegroundColor: c = "rgb(33, 115, 70)", cutForegroundColor: g = "rgb(33, 115, 70)", copyBackgroundColor: s = "white", cutBackgroundColor: y = "white", notifier: d, ...u }) => {
1991
+ const k = ie(i, [i]), b = Re(null), D = un(), E = D.getMode(), G = Ce(() => ({ element: e, doCopy: (v) => {
1991
1992
  const S = t.getSelectedRanges().getSnapshot(v);
1992
- return new ei(S);
1993
+ return new ti(S);
1993
1994
  } }), [t, n, e]), H = Ce(() => ({ element: e, importFromExternal: async (v, S) => {
1994
- const F = new ti(v, S, t.getStyles(), t.isDate1904());
1995
+ const F = new ni(v, S, t.getStyles(), t.isDate1904());
1995
1996
  return await F.parse() ? F : null;
1996
1997
  }, doPaste: async (v, S) => {
1997
1998
  if (v?.getItemType() !== "range") return;
1998
- S?.contentsOnly && delete (S = { ...S, type: Kt.Content.Values }).contentsOnly;
1999
+ S?.contentsOnly && delete (S = { ...S, type: Yt.Content.Values }).contentsOnly;
1999
2000
  const F = t.getSelectedRange(), T = v.getItem(), M = T.getName();
2000
2001
  return await F.doBatch(async () => {
2001
2002
  const j = await F.copyFrom(T, S);
@@ -2004,7 +2005,7 @@ const Tr = (e, t, n = null) => {
2004
2005
  } }), [t, n, d, e]), { clipboard: w, ...L } = nl({ ...u, source: G, commands: r, target: H, notifier: d, onClipboardUpdate: (v) => {
2005
2006
  const S = v?.getItemType() === "range" ? v : null;
2006
2007
  if (S) {
2007
- const F = v.editMode?.(), T = { ...v?.isCut?.() ? Gi : Ui, ...F, args: { isClipboard: !0, ...F?.args }, onModeChange: (M) => {
2008
+ const F = v.editMode?.(), T = { ...v?.isCut?.() ? ji : Gi, ...F, args: { isClipboard: !0, ...F?.args }, onModeChange: (M) => {
2008
2009
  M?.args?.isClipboard || w.clear(!0), F?.onModeChange?.(M);
2009
2010
  } };
2010
2011
  D.setMode(T);
@@ -2033,7 +2034,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2033
2034
  }, [r, e]), Se(() => {
2034
2035
  if (!r) return;
2035
2036
  const v = { disabled: !t.getProtection().isFormatCellsAllowed() };
2036
- r.getCommand("pasteValues").updateCallback((S) => L.paste({ ...ji, ...S })).update(v), r.getCommand("pasteFormats").updateCallback((S, F) => L.paste({ ..._i, description: F.label(), ...S })).update(v), r.getCommand("pasteFormulas").updateCallback((S, F) => L.paste({ ...Zi, description: F.label(), ...S })).update(v), r.getCommand("pasteTranspose").updateCallback((S, F) => L.paste({ ...Ki, description: F.label(), ...S })).update(v), r.getCommand("pasteLinks").updateCallback((S, F) => L.paste({ ...Yi, description: F.label(), ...S })).update(v), r.getCommand("cut").update(v), r.getCommand("paste").update(v);
2037
+ r.getCommand("pasteValues").updateCallback((S) => L.paste({ ..._i, ...S })).update(v), r.getCommand("pasteFormats").updateCallback((S, F) => L.paste({ ...Zi, description: F.label(), ...S })).update(v), r.getCommand("pasteFormulas").updateCallback((S, F) => L.paste({ ...Ki, description: F.label(), ...S })).update(v), r.getCommand("pasteTranspose").updateCallback((S, F) => L.paste({ ...Yi, description: F.label(), ...S })).update(v), r.getCommand("pasteLinks").updateCallback((S, F) => L.paste({ ...Xi, description: F.label(), ...S })).update(v), r.getCommand("cut").update(v), r.getCommand("paste").update(v);
2037
2038
  }, [t, r]);
2038
2039
  const q = Ce(() => {
2039
2040
  if (!E || !b.current) return;
@@ -2052,21 +2053,21 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2052
2053
  } : null;
2053
2054
  }, [E, t, n, c, s, g, y]);
2054
2055
  return { ...L, clipboard: w, overlays: q };
2055
- }, Ji = ft(wt((e, t) => {
2056
- const { view: n, element: r, sheet: l, gridStyle: o, commands: i, notifier: c } = e, g = o.body ?? {}, s = l.getView(), { overlays: y } = Xi({ element: r, sheet: l, sheetView: s, commands: i, copyForegroundColor: o.selection.strokeFill, copyBackgroundColor: g.fill, cutForegroundColor: o.selectionRemove.strokeFill, cutBackgroundColor: g.fill, notifier: c });
2056
+ }, Qi = ft(wt((e, t) => {
2057
+ const { view: n, element: r, sheet: l, gridStyle: o, commands: i, notifier: c } = e, g = o.body ?? {}, s = l.getView(), { overlays: y } = Ji({ element: r, sheet: l, sheetView: s, commands: i, copyForegroundColor: o.selection.strokeFill, copyBackgroundColor: g.fill, cutForegroundColor: o.selectionRemove.strokeFill, cutBackgroundColor: g.fill, notifier: c });
2057
2058
  return ht(l?.getSelection(), { onChange(d) {
2058
2059
  } }), Se(() => {
2059
2060
  n?.getStage();
2060
2061
  }, [n?.getStage()]), y && n ? y(n) : null;
2061
- })), Qi = "_sheet-selection_12wyx_5", ea = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, ta = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, na = { key: "dragCopy", description: "Drag selection to copy cell contents." }, oa = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Dr = (e, t) => t.ctrlKey && t.shiftKey ? oa : t.ctrlKey ? na : t.shiftKey ? ta : ea, ra = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, la = ft(wt((e, t) => {
2062
+ })), ea = "_sheet-selection_12wyx_5", ta = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, na = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, oa = { key: "dragCopy", description: "Drag selection to copy cell contents." }, ra = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Dr = (e, t) => t.ctrlKey && t.shiftKey ? ra : t.ctrlKey ? oa : t.shiftKey ? na : ta, la = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, ia = ft(wt((e, t) => {
2062
2063
  const { view: n, commands: r, className: l, onFirstRender: o, notifier: i, onShowTooltip: c, onCloseTooltip: g, sheet: s, gridRef: y, gridStyle: d, isActive: u, editingCoords: k, ...b } = e, D = n?.getBounds(), E = ie(c, [c]), G = ie(g, [g]), [H, w] = ue(() => s?.getSelection().getCoords()), L = ie((ce) => {
2063
2064
  qt.isEqualSelectionCoords(ce, H) || s && s.getSelection().updateCoords(ce);
2064
- }, [s, H]), q = cn(), v = Me(null), [S, F] = ue(s?.getProtection().isLocked()), [T, M] = ue(s?.getView().getMovableSelection().length > 0), j = it.detectIt().primaryInput === "touch", U = !j && u, B = k !== null || T, O = ie((ce) => {
2065
+ }, [s, H]), q = un(), v = Re(null), [S, F] = ue(s?.getProtection().isLocked()), [T, M] = ue(s?.getView().getMovableSelection().length > 0), j = it.detectIt().primaryInput === "touch", U = !j && u, B = k !== null || T, O = ie((ce) => {
2065
2066
  const de = qt.cellToRange(ce);
2066
2067
  if (s.isClosed()) return de;
2067
2068
  const me = s.getRange(de, { excludeHidden: !0 }).getMerges();
2068
2069
  return me.length === 0 ? de : me[0];
2069
- }, [s]), W = ie((ce, de, me, ye, Re, Ie) => {
2070
+ }, [s]), W = ie((ce, de, me, ye, Te, Ie) => {
2070
2071
  const xe = s.getSelectedRange().getExtended(ye, ce).getCoords();
2071
2072
  switch (ye) {
2072
2073
  case qe.Direction.Up:
@@ -2113,11 +2114,11 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2113
2114
  if (je && await i?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" }) !== "Replace")
2114
2115
  return;
2115
2116
  }
2116
- const Re = !me.ctrlKey, Ie = me.shiftKey, xe = Ie ? Re ? "Insert Moved Cells" : "Insert Copied Cells" : Re ? "Move Cells" : "Copy Cells", Ne = await i?.showBusy?.(xe);
2117
+ const Te = !me.ctrlKey, Ie = me.shiftKey, xe = Ie ? Te ? "Insert Moved Cells" : "Insert Copied Cells" : Te ? "Move Cells" : "Copy Cells", Ne = await i?.showBusy?.(xe);
2117
2118
  try {
2118
2119
  const Pe = s.getRange(ce);
2119
2120
  await ye.doBatch(async () => {
2120
- Ie ? await ye.insertFrom(ce, { isCut: Re, undoRange: Pe }) : await ye.copyFrom(ce, { isCut: Re, undoRange: Pe }), Pe.autoFit({ skipCustomSize: !0, orientations: qe.Orientations.Row, minContent: !0 }), ye.autoFit({ skipCustomSize: !0, orientations: qe.Orientations.Row, minContent: !0 });
2121
+ Ie ? await ye.insertFrom(ce, { isCut: Te, undoRange: Pe }) : await ye.copyFrom(ce, { isCut: Te, undoRange: Pe }), Pe.autoFit({ skipCustomSize: !0, orientations: qe.Orientations.Row, minContent: !0 }), ye.autoFit({ skipCustomSize: !0, orientations: qe.Orientations.Row, minContent: !0 });
2121
2122
  }, { description: xe, autoSelect: !0 });
2122
2123
  } catch (Pe) {
2123
2124
  i?.showError?.(Pe);
@@ -2133,42 +2134,42 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2133
2134
  await s.doBatch(() => {
2134
2135
  s.getRange(ce).autoFill(de), s.getRange(de).autoFit({ orientations: qe.Orientations.Row, skipCustomSize: !0, minContent: !0 });
2135
2136
  }, { description: me, autoSelect: !0 });
2136
- } catch (Re) {
2137
- i?.showError?.(Re);
2137
+ } catch (Te) {
2138
+ i?.showError?.(Te);
2138
2139
  } finally {
2139
2140
  v.current = null, ye?.();
2140
2141
  }
2141
2142
  }, onFillPreview: (ce, de, me) => {
2142
2143
  if (y.current && E) {
2143
- q.setMode(ra);
2144
+ q.setMode(la);
2144
2145
  try {
2145
2146
  v.current?.direction !== me && (v.current = null, s.getRange(ce).autoFill(de, { previewOnly: (m) => {
2146
2147
  v.current = { callback: m, direction: me };
2147
2148
  } }));
2148
2149
  const ye = v.current?.callback?.(de);
2149
2150
  if (!ye || ye.isEmpty()) return;
2150
- const Re = ye.toText();
2151
- if (!Re) return;
2151
+ const Te = ye.toText();
2152
+ if (!Te) return;
2152
2153
  const Ie = qt.cellToRange(ye.getCoords()), xe = n.getRelativePointFromClient(0, 0);
2153
- let Ne = 0, Pe = 0, je = Fn.Bottom;
2154
+ let Ne = 0, Pe = 0, je = Ln.Bottom;
2154
2155
  if (me === qe.Direction.Down) {
2155
2156
  Ne = _.getColOffset(Ie.colEnd + 1) - xe.x;
2156
2157
  const m = _.getRowOffset(Ie.rowEnd), Ke = _.getRowOffset(Ie.rowEnd + 1);
2157
- Pe = Ke - (Ke - m) / 2 - xe.y, je = Fn.Right;
2158
+ Pe = Ke - (Ke - m) / 2 - xe.y, je = Ln.Right;
2158
2159
  } else if (me === qe.Direction.Right) {
2159
2160
  Pe = _.getRowOffset(Ie.rowEnd + 1) - xe.y;
2160
2161
  const m = _.getColOffset(Ie.colEnd), Ke = _.getColOffset(Ie.colEnd + 1);
2161
- Ne = Ke - (Ke - m) / 2 - xe.x, je = Fn.Bottom;
2162
+ Ne = Ke - (Ke - m) / 2 - xe.x, je = Ln.Bottom;
2162
2163
  } else if (me === qe.Direction.Up) {
2163
2164
  Ne = _.getColOffset(Ie.colEnd + 1) - xe.x;
2164
2165
  const m = _.getRowOffset(Ie.rowStart), Ke = _.getRowOffset(Ie.rowStart + 1);
2165
- Pe = Ke - (Ke - m) / 2 - xe.y, je = Fn.Right;
2166
+ Pe = Ke - (Ke - m) / 2 - xe.y, je = Ln.Right;
2166
2167
  } else if (me === qe.Direction.Left) {
2167
2168
  Pe = _.getRowOffset(Ie.rowEnd + 1) - xe.y;
2168
2169
  const m = _.getColOffset(Ie.colStart), Ke = _.getColOffset(Ie.colStart + 1);
2169
- Ne = Ke - (Ke - m) / 2 - xe.x, je = Fn.Bottom;
2170
+ Ne = Ke - (Ke - m) / 2 - xe.x, je = Ln.Bottom;
2170
2171
  }
2171
- E({ anchor: { x: Ne, y: Pe }, display: Re, placement: je });
2172
+ E({ anchor: { x: Ne, y: Pe }, display: Te, placement: je });
2172
2173
  } catch (ye) {
2173
2174
  i?.showError?.(ye);
2174
2175
  }
@@ -2184,11 +2185,11 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2184
2185
  ce.removeEventListener("pointerdown", he);
2185
2186
  };
2186
2187
  }, [n?.getStage()]);
2187
- const Ze = jt(t, () => ({}), []), De = Me(null);
2188
- return p("div", { className: Bt(l, "sheet-selection", Qi), style: { position: "absolute", width: D?.width, height: D?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Sn([Ze, De]), ...b, children: we(n) });
2189
- })), co = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), ia = { fireOnModelChange: !1 }, aa = ft(wt((e, t) => {
2190
- const { children: n, view: r, movable: l, onRefLoad: o, onRefUnload: i, onHide: c, onShow: g, onUnFocus: s, isDragging: y, updateFrameBounds: d, dragStart: u, style: k, disabled: b, renderMovable: D, ...E } = e, [G, H] = ue(co), [w, L] = ue(null), [q, v] = ue(!1), S = Me(null);
2191
- Ot(() => {
2188
+ const Ze = _t(t, () => ({}), []), De = Re(null);
2189
+ return p("div", { className: Vt(l, "sheet-selection", ea), style: { position: "absolute", width: D?.width, height: D?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: kn([Ze, De]), ...b, children: we(n) });
2190
+ })), co = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), aa = { fireOnModelChange: !1 }, sa = ft(wt((e, t) => {
2191
+ const { children: n, view: r, movable: l, onRefLoad: o, onRefUnload: i, onHide: c, onShow: g, onUnFocus: s, isDragging: y, updateFrameBounds: d, dragStart: u, style: k, disabled: b, renderMovable: D, ...E } = e, [G, H] = ue(co), [w, L] = ue(null), [q, v] = ue(!1), S = Re(null);
2192
+ Bt(() => {
2192
2193
  if (l.isClosed()) return;
2193
2194
  const T = l.getBounds();
2194
2195
  if (!T) return;
@@ -2202,7 +2203,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2202
2203
  }, onSelectionChange: () => {
2203
2204
  const T = rt.hasFocus(S.current, !0);
2204
2205
  !q && !T || l.isSelected() || s();
2205
- } }), ht(l, { onRequestFocus: () => rt.whenFocus(S.current, !0) }, ia), Se(() => {
2206
+ } }), ht(l, { onRequestFocus: () => rt.whenFocus(S.current, !0) }, aa), Se(() => {
2206
2207
  const T = S.current;
2207
2208
  return o(T), () => {
2208
2209
  i(T);
@@ -2213,7 +2214,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2213
2214
  let { width: T, height: M } = G;
2214
2215
  return D({ view: r, movable: l, disabled: b, isDragging: y, style: { position: "relative", left: 0, top: 0, width: T, height: M }, onHide: c, onShow: g });
2215
2216
  }, [r, l, G.width, G.height, b, y]);
2216
- return p("div", { className: "movable", tabIndex: 0, ref: Sn([S, t]), style: { display: "flex", alignItems: "stretch", justifyContent: "stretch", position: "absolute", maxWidth: "auto", maxHeight: "auto", minWidth: "auto", minHeight: "auto", left: G.x, top: G.y, width: G.width, height: G.height, ...k }, onMouseDown: async (T) => {
2217
+ return p("div", { className: "movable", tabIndex: 0, ref: kn([S, t]), style: { display: "flex", alignItems: "stretch", justifyContent: "stretch", position: "absolute", maxWidth: "auto", maxHeight: "auto", minWidth: "auto", minHeight: "auto", left: G.x, top: G.y, width: G.width, height: G.height, ...k }, onMouseDown: async (T) => {
2217
2218
  const M = T.shiftKey || T.ctrlKey, j = l.isSelected(), U = T.currentTarget;
2218
2219
  M && j ? l.unselect() : (j && !M || await l.select({ addToSelection: M }), u(T.nativeEvent, U), U.focus());
2219
2220
  }, onFocus: (T) => {
@@ -2221,9 +2222,9 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2221
2222
  }, onBlur: (T) => {
2222
2223
  w && !S?.current?.contains(T.relatedTarget) && L(null), T.relatedTarget && v(!1);
2223
2224
  }, ...E, children: F });
2224
- })), sa = "_movable-area_314c6_5", da = ft(wt((e, t) => {
2225
- const { view: n, movables: r, movablesView: l, renderMovable: o, transactional: i, onUnFocus: c, onFocus: g, disabled: s = !1, disableDrag: y = !1, disableResize: d = !1, className: u, style: k, renderDirections: b = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: D, ...E } = e, G = n.getBounds(), H = ie(D, [D]), w = ie(c, [c]), L = ie(g, [g]), [q, v] = ue([]), [S, F] = ue(!1), [T, M] = ue(!1), j = Me(!0), U = Me(/* @__PURE__ */ new Map()), B = Me(/* @__PURE__ */ new Map()), O = Me(/* @__PURE__ */ new Map()), W = Me(/* @__PURE__ */ new Map()), te = Me(/* @__PURE__ */ new Map()), z = Me({ onRequestFocus: (X) => (de(X), null) }), A = Me(null), P = Me(null), $ = Me(null), [ge, ae] = an((X) => X + 1, 0);
2226
- Ot(() => {
2225
+ })), da = "_movable-area_314c6_5", ca = ft(wt((e, t) => {
2226
+ const { view: n, movables: r, movablesView: l, renderMovable: o, transactional: i, onUnFocus: c, onFocus: g, disabled: s = !1, disableDrag: y = !1, disableResize: d = !1, className: u, style: k, renderDirections: b = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: D, ...E } = e, G = n.getBounds(), H = ie(D, [D]), w = ie(c, [c]), L = ie(g, [g]), [q, v] = ue([]), [S, F] = ue(!1), [T, M] = ue(!1), j = Re(!0), U = Re(/* @__PURE__ */ new Map()), B = Re(/* @__PURE__ */ new Map()), O = Re(/* @__PURE__ */ new Map()), W = Re(/* @__PURE__ */ new Map()), te = Re(/* @__PURE__ */ new Map()), z = Re({ onRequestFocus: (X) => (de(X), null) }), A = Re(null), P = Re(null), $ = Re(null), [ge, ae] = sn((X) => X + 1, 0);
2227
+ Bt(() => {
2227
2228
  ae();
2228
2229
  }, [n, r]), ht(r, { onCollectionChange: () => {
2229
2230
  const X = r.getItems({ address: n.getVisibleRangeCoords(), excludeHidden: !0 }), Le = te.current;
@@ -2254,11 +2255,11 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2254
2255
  const Fe = O.current.get(Ge);
2255
2256
  Fe && Le.indexOf(Ge) !== -1 && X.push(Fe);
2256
2257
  }), v((Ge) => rt.isEqualArrays(Ge, X) ? Ge : X);
2257
- }, be = Me(null), Ae = Ce(() => new Promise((X) => {
2258
+ }, be = Re(null), Ae = Ce(() => new Promise((X) => {
2258
2259
  be.current = X;
2259
- }), []), we = Me(null), _e = ie(async (X, Le) => {
2260
+ }), []), we = Re(null), _e = ie(async (X, Le) => {
2260
2261
  we.current = Le, await (async () => !(!await Ae.then() || !$.current))() && we.current === Le && $.current.dragStart(X, Le);
2261
- }, [q]), [he, Ze] = ue(!1), De = Me(null), ce = Me(null), de = ie(async (X = null) => {
2262
+ }, [q]), [he, Ze] = ue(!1), De = Re(null), ce = Re(null), de = ie(async (X = null) => {
2262
2263
  if (X || (X = l.getMovableSelection()[0]), !X) return w?.(), !1;
2263
2264
  const Le = O.current.get(X);
2264
2265
  Le ? (await rt.whenFocus(Le), Le.focus(), ce.current = Le, De.current = null) : De.current = X;
@@ -2286,10 +2287,10 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2286
2287
  let R = !1;
2287
2288
  W.current?.forEach((f) => {
2288
2289
  rt.isEqualBounds(f.movable.getBounds(), f.startBounds) || (R = !0);
2289
- }), R ? Re() : Ie();
2290
+ }), R ? Te() : Ie();
2290
2291
  }
2291
2292
  }, style: { opacity: K ? S && a ? 0.7 : void 0 : 0, zIndex: S && a ? C.getZIndex() + X.length : void 0, pointerEvents: K ? void 0 : "none", cursor: T && a ? "grabbing" : s || y ? "initial" : "move", boxShadow: !a || T && !S ? void 0 : "1px 1px 2px 2px rgba(0,0,0,.15)" } };
2292
- return p(aa, { ...x }, `movable-${C.getUUID()}`);
2293
+ return p(sa, { ...x }, `movable-${C.getUUID()}`);
2293
2294
  }, Ge = U.current, Fe = /* @__PURE__ */ new Map(), Ve = [];
2294
2295
  for (let C = 0; C < X.length; C++) {
2295
2296
  const oe = X[C];
@@ -2324,7 +2325,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2324
2325
  const Ve = q[Fe], Oe = B.current?.get(Ve);
2325
2326
  Oe ? W.current.set(Ve, { movable: Oe, startBounds: n.toViewBounds(Oe.getBounds()) }) : console.warn("invalid element", Oe);
2326
2327
  }
2327
- }, [i, n, q]), Re = Xe(() => {
2328
+ }, [i, n, q]), Te = Xe(() => {
2328
2329
  if (!P.current) return;
2329
2330
  const X = [];
2330
2331
  W.current?.forEach((Le) => {
@@ -2332,15 +2333,15 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2332
2333
  }), P.current.commit({ viewAfter: { view: l, movableSelection: X } }), W.current.clear(), P.current = null;
2333
2334
  }, []), Ie = Xe(() => {
2334
2335
  P.current && (P.current.rollback(), P.current = null);
2335
- }, []), xe = Me(null);
2336
+ }, []), xe = Re(null);
2336
2337
  Se(() => {
2337
2338
  xe.current && (xe.current.onscroll = (X) => {
2338
2339
  X.preventDefault(), X.srcElement.scrollTop = 0, X.srcElement.scrollLeft = 0;
2339
2340
  });
2340
2341
  }, [xe.current]);
2341
- const Ne = jt(t, () => ({ isMovableArea: () => !0, focusMovable: de, focus: () => {
2342
+ const Ne = _t(t, () => ({ isMovableArea: () => !0, focusMovable: de, focus: () => {
2342
2343
  de();
2343
- } }), [l]), [Pe, je] = ue(null), m = Me(!1), Ke = Me(!1), ut = Me(!1);
2344
+ } }), [l]), [Pe, je] = ue(null), m = Re(!1), Ke = Re(!1), ut = Re(!1);
2344
2345
  Se(() => {
2345
2346
  if (s || q.length === 0 || ut.current || m.current) return;
2346
2347
  if (Ke.current) return void requestAnimationFrame(() => {
@@ -2349,7 +2350,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2349
2350
  m.current = !0;
2350
2351
  const X = tt.lazy(async () => {
2351
2352
  try {
2352
- const Le = await import("./qB4RFwPC3QbPg_lu.mjs");
2353
+ const Le = await import("./MFoCOovTxqHMrS-r.mjs");
2353
2354
  return m.current = !1, Ke.current = !0, v([...q]), Le;
2354
2355
  } catch (Le) {
2355
2356
  return console.warn(Le), be.current?.(!1), null;
@@ -2357,7 +2358,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2357
2358
  });
2358
2359
  je(X);
2359
2360
  }, [q, s, y, d]);
2360
- const Qe = Ce(() => !Pe || s ? null : p(ll, { children: p(Pe, { className: Bt({ dragging: S || T, resizing: S, moving: T }), container: null, ref: $, target: $.current ? q : [], draggable: !s && !y, resizable: !s && !d, individualGroupable: !0, edgeDraggable: !1, throttleDrag: 2, throttleResize: 2, origin: !1, keepRatio: !1, renderDirections: b, onResizeStart: (X) => {
2361
+ const Qe = Ce(() => !Pe || s ? null : p(ll, { children: p(Pe, { className: Vt({ dragging: S || T, resizing: S, moving: T }), container: null, ref: $, target: $.current ? q : [], draggable: !s && !y, resizable: !s && !d, individualGroupable: !0, edgeDraggable: !1, throttleDrag: 2, throttleResize: 2, origin: !1, keepRatio: !1, renderDirections: b, onResizeStart: (X) => {
2361
2362
  ye(X.target, "Resize");
2362
2363
  }, onResize: (X) => {
2363
2364
  if (!P.current) return X.stopDrag(), void ae();
@@ -2380,7 +2381,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2380
2381
  X.direction[0] === -1 && (I.x = Math.max(0, Math.min(C.startBounds.x + R, C.startBounds.x + R - I.width))), X.direction[1] === -1 && (I.y = Math.min(C.startBounds.y + f, C.startBounds.y + f - I.height)), C.movable.setBounds(n.toAbsoluteBounds(I));
2381
2382
  }
2382
2383
  }, onResizeEnd: (X) => {
2383
- F(!1), Re();
2384
+ F(!1), Te();
2384
2385
  }, onDragStart: (X) => {
2385
2386
  ye(X.target, "Move");
2386
2387
  }, onDrag: (X) => {
@@ -2393,7 +2394,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2393
2394
  }, onDragEnd: (X) => {
2394
2395
  }, onMouseUp: (X) => {
2395
2396
  } }) }), [ge, Pe, q, n, s, y, d, S, T]);
2396
- return p("div", { className: Bt(u, "movable-area", sa), style: { width: G.width, height: G.height, ...k, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: Sn([Ne, xe]), ...E, children: p("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: G.width, height: G.height }, ...E, children: Je("div", { ref: A, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (X) => {
2397
+ return p("div", { className: Vt(u, "movable-area", da), style: { width: G.width, height: G.height, ...k, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: kn([Ne, xe]), ...E, children: p("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: G.width, height: G.height }, ...E, children: Je("div", { ref: A, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (X) => {
2397
2398
  L?.(), Ze(!0);
2398
2399
  }, onBlur: (X) => {
2399
2400
  Ze(!1);
@@ -2438,7 +2439,7 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2438
2439
  l.selectMovables(r.getItems(), !0), l.selectMovables(N, !0), X.preventDefault();
2439
2440
  } else X.key === "ArrowLeft" ? (Fe ? C(Ve, !1) : Ge ? Oe(-10) : oe({ x: Le ? -10 : -1 }), X.preventDefault()) : X.key === "ArrowRight" ? (Fe ? C(Ve, !0) : Ge ? Oe(10) : oe({ x: Le ? 10 : 1 }), X.preventDefault()) : X.key === "ArrowUp" ? (Fe ? C(Ve, !0) : oe({ y: Le ? -10 : -1 }), X.preventDefault()) : X.key === "ArrowDown" && (Fe ? C(Ve, !1) : oe({ y: Le ? 10 : 1 }), X.preventDefault());
2440
2441
  }, children: [me, Qe] }) }) });
2441
- })), vn = (e) => {
2442
+ })), yn = (e) => {
2442
2443
  let t = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER, r = 0, l = 0;
2443
2444
  for (let o = 0; o < e.length; o++) {
2444
2445
  const i = e[o].getBounds();
@@ -2465,9 +2466,9 @@ The content is not applied.` }), new J("pasteFormulas", v, { label: "Paste Formu
2465
2466
  }
2466
2467
  return y.set(n[n.length - 1].movable, n[n.length - 1].bounds), y;
2467
2468
  };
2468
- function ca(e) {
2469
- const { movables: t, movablesView: n, transactional: r, commands: l, target: o, onRepeatCommandChange: i, notifier: c } = e, g = cn();
2470
- Me(g.getMode()).current = g.getMode();
2469
+ function ua(e) {
2470
+ const { movables: t, movablesView: n, transactional: r, commands: l, target: o, onRepeatCommandChange: i, notifier: c } = e, g = un();
2471
+ Re(g.getMode()).current = g.getMode();
2471
2472
  const s = ie(async (w, L, q = null, v = !0) => {
2472
2473
  const S = async () => {
2473
2474
  const F = await Promise.resolve(c?.showBusy?.(w.label()));
@@ -2484,7 +2485,7 @@ function ca(e) {
2484
2485
  }
2485
2486
  };
2486
2487
  await S();
2487
- }, [i, c]), [y, d] = an((w) => w + 1, 0), u = ie((w, L, q) => {
2488
+ }, [i, c]), [y, d] = sn((w) => w + 1, 0), u = ie((w, L, q) => {
2488
2489
  if (!n) return;
2489
2490
  const v = n.getMovableSelection();
2490
2491
  if (v.length === 0) return;
@@ -2528,40 +2529,40 @@ function ca(e) {
2528
2529
  });
2529
2530
  }), new J("formatAnchorTypeTwoCell", o, { label: "Move and size with cells", description: "Set your drawing to move and resize when underling sheet resizes." }, function() {
2530
2531
  u(this, (w) => {
2531
- w.setAnchorType(rn.Type.TwoCell);
2532
+ w.setAnchorType(ln.Type.TwoCell);
2532
2533
  });
2533
2534
  }), new J("formatAnchorTypeOneCell", o, { label: "Move but don't size with cells", description: "Set your drawing to only move when underling sheet resizes." }, function() {
2534
2535
  u(this, (w) => {
2535
- w.setAnchorType(rn.Type.OneCell);
2536
+ w.setAnchorType(ln.Type.OneCell);
2536
2537
  });
2537
2538
  }), new J("formatAnchorTypeAbsolute", o, { label: "Don't move or size with cells", description: "Set your drawing to never move or resize when underling sheet resizes." }, function() {
2538
2539
  u(this, (w) => {
2539
- w.setAnchorType(rn.Type.Absolute);
2540
+ w.setAnchorType(ln.Type.Absolute);
2540
2541
  });
2541
2542
  }), new J("formatDrawAlignLeft", o, { label: "Align Left", description: "Align the selected drawings to the left." }, function() {
2542
2543
  u(this, (w, L) => {
2543
2544
  w.setBounds({ x: L.x });
2544
- }, vn);
2545
+ }, yn);
2545
2546
  }), new J("formatDrawAlignCenter", o, { label: "Align Center", description: "Align the selected drawings vertically relative to each other." }, function() {
2546
2547
  u(this, (w, L) => {
2547
2548
  w.setBounds({ x: (L.width - w.getBounds().width) / 2 + L.x });
2548
- }, vn);
2549
+ }, yn);
2549
2550
  }), new J("formatDrawAlignRight", o, { label: "Align Right", description: "Align the selected drawings to the right." }, function() {
2550
2551
  u(this, (w, L) => {
2551
2552
  w.setBounds({ x: L.width - w.getBounds().width + L.x });
2552
- }, vn);
2553
+ }, yn);
2553
2554
  }), new J("formatDrawAlignTop", o, { label: "Align Top", description: "Align the selected drawings to the top." }, function() {
2554
2555
  u(this, (w, L) => {
2555
2556
  w.setBounds({ y: L.y });
2556
- }, vn);
2557
+ }, yn);
2557
2558
  }), new J("formatDrawAlignMiddle", o, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other." }, function() {
2558
2559
  u(this, (w, L) => {
2559
2560
  w.setBounds({ y: (L.height - w.getBounds().height) / 2 + L.y });
2560
- }, vn);
2561
+ }, yn);
2561
2562
  }), new J("formatDrawAlignBottom", o, { label: "Align Bottom", description: "Align the selected drawings to the bottom." }, function() {
2562
2563
  u(this, (w, L) => {
2563
2564
  w.setBounds({ y: L.height - w.getBounds().height + L.y });
2564
- }, vn);
2565
+ }, yn);
2565
2566
  }), new J("formatDrawDistributeHorz", o, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each." }, function() {
2566
2567
  u(this, (w, L) => {
2567
2568
  w.setBounds(L.get(w));
@@ -2578,7 +2579,7 @@ function ca(e) {
2578
2579
  return w = l ? l.createChildGroup(o, "movable", !1) : new Co(o, "movable"), w.addCommands(G, !0), w;
2579
2580
  }, [l, G]);
2580
2581
  return ht(k, { onAnyChange: () => {
2581
- H.getCommand("formatAnchorTypeTwoCell").update({ state: k?.getAnchorType() === rn.Type.TwoCell }), H.getCommand("formatAnchorTypeOneCell").update({ state: k?.getAnchorType() === rn.Type.OneCell }), H.getCommand("formatAnchorTypeAbsolute").update({ state: k?.getAnchorType() === rn.Type.Absolute }), H.getCommand("formatAnchorTypeAbsolute").update({ state: k?.getAnchorType() === rn.Type.Absolute }), H.getCommand("toggleLockAspectRatio").update({ state: k?.isLockAspectRatio() });
2582
+ H.getCommand("formatAnchorTypeTwoCell").update({ state: k?.getAnchorType() === ln.Type.TwoCell }), H.getCommand("formatAnchorTypeOneCell").update({ state: k?.getAnchorType() === ln.Type.OneCell }), H.getCommand("formatAnchorTypeAbsolute").update({ state: k?.getAnchorType() === ln.Type.Absolute }), H.getCommand("formatAnchorTypeAbsolute").update({ state: k?.getAnchorType() === ln.Type.Absolute }), H.getCommand("toggleLockAspectRatio").update({ state: k?.isLockAspectRatio() });
2582
2583
  }, onProtectedChange: (w) => {
2583
2584
  E(w.isProtected());
2584
2585
  }, onDelete: () => {
@@ -2603,29 +2604,29 @@ function ca(e) {
2603
2604
  H.getCommand("formatDrawDistributeHorz").update(M), H.getCommand("formatDrawDistributeVert").update(M);
2604
2605
  }, [y, D, y]), H;
2605
2606
  }
2606
- const ed = ft(wt((e, t) => {
2607
+ const td = ft(wt((e, t) => {
2607
2608
  const { children: n, disabled: r, description: l, view: o, isDragging: i, onHide: c, onShow: g, ...s } = e;
2608
2609
  Se(() => {
2609
2610
  }, [l]);
2610
- const y = jt(t, () => ({ isEmptyFrame: () => !0 }), []), [d, { height: u, width: k }] = sn();
2611
- return p("div", { ...s, ref: Sn([y, d]), children: p("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: o.getZoom(), display: "flex", position: "relative", filter: r ? "blur(1px)" : void 0, boxShadow: i ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: p("div", { style: { textAlign: "center" }, children: l }) }) });
2612
- })), ua = ft(wt((e, t) => {
2613
- const { view: n, sheet: r, movableProps: l, renderMovable: o, commands: i, target: c, notifier: g, onRepeatCommandChange: s } = e, y = ca({ movables: r.getMovables(), movablesView: r?.getView(), transactional: r, onRepeatCommandChange: s, commands: i, target: c, notifier: g });
2611
+ const y = _t(t, () => ({ isEmptyFrame: () => !0 }), []), [d, { height: u, width: k }] = dn();
2612
+ return p("div", { ...s, ref: kn([y, d]), children: p("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: o.getZoom(), display: "flex", position: "relative", filter: r ? "blur(1px)" : void 0, boxShadow: i ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: p("div", { style: { textAlign: "center" }, children: l }) }) });
2613
+ })), ga = ft(wt((e, t) => {
2614
+ const { view: n, sheet: r, movableProps: l, renderMovable: o, commands: i, target: c, notifier: g, onRepeatCommandChange: s } = e, y = ua({ movables: r.getMovables(), movablesView: r?.getView(), transactional: r, onRepeatCommandChange: s, commands: i, target: c, notifier: g });
2614
2615
  Se(() => {
2615
2616
  n?.getStage();
2616
2617
  }, [n?.getStage()]);
2617
- const d = Ce(() => p(da, { ref: t, view: n, movables: r.getMovables(), disableResize: !r.getProtection().isObjectsAllowed(), disableDrag: !r.getProtection().isObjectsAllowed(), movablesView: r.getView(), transactional: r, renderMovable: o, ...l, onFocus: () => {
2618
+ const d = Ce(() => p(ca, { ref: t, view: n, movables: r.getMovables(), disableResize: !r.getProtection().isObjectsAllowed(), disableDrag: !r.getProtection().isObjectsAllowed(), movablesView: r.getView(), transactional: r, renderMovable: o, ...l, onFocus: () => {
2618
2619
  y.activate(), l?.onFocus?.();
2619
2620
  } }, "movable-area"), [r, l, i, y]);
2620
2621
  return d && n ? d : null;
2621
- })), ga = ft(wt((e, t) => {
2622
- const { view: n, sheet: r, gridStyle: l, getCellEditor: o, showProtectedError: i, setEditingCoords: c, commands: g, notifier: s = ii } = e, y = cn(), [d, u] = ue(null), [k, b] = ue(null), [D, E] = ue(null), [G, H] = ue(null), [w, L] = ue(null);
2623
- Ot(() => {
2622
+ })), ha = ft(wt((e, t) => {
2623
+ const { view: n, sheet: r, gridStyle: l, getCellEditor: o, showProtectedError: i, setEditingCoords: c, commands: g, notifier: s = ai } = e, y = un(), [d, u] = ue(null), [k, b] = ue(null), [D, E] = ue(null), [G, H] = ue(null), [w, L] = ue(null);
2624
+ Bt(() => {
2624
2625
  if (D === null) return H(null), void L(null);
2625
2626
  const A = () => {
2626
2627
  const P = r.getRange(D).getCell(), $ = P.getStyle();
2627
2628
  let ge, ae = $.getFill()?.toCSS(l.body.darkMode);
2628
- ae.background !== "none" && ae.background !== "transparent" || (ae = r.getStyles().getNormal().getFill().toCSS(l.body.darkMode)), ae.background !== "none" && ae.background !== "transparent" || (ae = { background: l.body.fill }), H({ style: ae }), P && !P.getFormula() && (ge = P?.getRenderHorizontalAlignment()), L(ge ?? ai.Left);
2629
+ ae.background !== "none" && ae.background !== "transparent" || (ae = r.getStyles().getNormal().getFill().toCSS(l.body.darkMode)), ae.background !== "none" && ae.background !== "transparent" || (ae = { background: l.body.fill }), H({ style: ae }), P && !P.getFormula() && (ge = P?.getRenderHorizontalAlignment()), L(ge ?? si.Left);
2629
2630
  };
2630
2631
  return A(), r.getRange(D).addListener(() => {
2631
2632
  A();
@@ -2649,17 +2650,17 @@ const ed = ft(wt((e, t) => {
2649
2650
  if (o) return o(A, P);
2650
2651
  if (!r) return null;
2651
2652
  const { ref: $, ...ge } = A;
2652
- return p(Ri, { ref: $, ...ge, sheet: r, bodyStyle: l?.body, activeCoords: P, commands: g, onChangeEdit: (ae) => {
2653
+ return p(Ti, { ref: $, ...ge, sheet: r, bodyStyle: l?.body, activeCoords: P, commands: g, onChangeEdit: (ae) => {
2653
2654
  const Y = { sheet: r, coords: P, editState: ae };
2654
2655
  y.setMode((_) => ({ ..._, description: Y.editState.editMode ? "Edit" : "Enter", args: { ..._?.args, stateAndCoords: Y } }));
2655
2656
  }, editState: k.editState });
2656
- }, [r, G, o, k, D]), { overlay: T, startEdit: M, submitEdit: j, cancelEdit: U, onKeyboardEventNative: B, onPointerEventNative: O } = Ci({ view: n, activeCoords: d, getCellEditor: F, canEdit: () => {
2657
+ }, [r, G, o, k, D]), { overlay: T, startEdit: M, submitEdit: j, cancelEdit: U, onKeyboardEventNative: B, onPointerEventNative: O } = Si({ view: n, activeCoords: d, getCellEditor: F, canEdit: () => {
2657
2658
  const A = r.getProtection();
2658
2659
  if (A.isReadOnly()) return !1;
2659
2660
  const P = A.isLocked();
2660
2661
  return P && i(), !P;
2661
2662
  }, onBeforeStartEdit: (A) => {
2662
- const P = Ti(() => r.getRange(A).getCell()), $ = { sheet: r, coords: A, editState: Object.freeze(P) };
2663
+ const P = Mi(() => r.getRange(A).getCell()), $ = { sheet: r, coords: A, editState: Object.freeze(P) };
2663
2664
  y.setMode({ key: "edit", args: { stateAndCoords: $ } }), b($);
2664
2665
  }, onStartEdit: (A) => {
2665
2666
  E(A), c(A);
@@ -2687,7 +2688,7 @@ const ed = ft(wt((e, t) => {
2687
2688
  const A = y.getMode(), P = A?.key;
2688
2689
  P === "edit" || P === "enter" ? k ? A.args?.cancel ? U() : A.args?.submit ? j() : b(A.args?.stateAndCoords) : M(A.args?.start) : D && U();
2689
2690
  }, [y]), T(n, t);
2690
- })), pl = "white", fl = "black", ha = `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='${fl}' fill='${pl}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, ma = `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='${fl}' fill='${pl}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, pa = ft(wt((e, t) => {
2691
+ })), pl = "white", fl = "black", ma = `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='${fl}' fill='${pl}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, pa = `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='${fl}' fill='${pl}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, fa = ft(wt((e, t) => {
2691
2692
  const { view: n, sheet: r } = e, [l, o] = tt.useState(r.getTables().getCount() > 0), [i, c] = tt.useState(null), [g, s] = tt.useState(null), [y, d] = tt.useState(null), [u, k] = tt.useState(null), b = ie(() => {
2692
2693
  if (r.getTables().getCount() > 0) {
2693
2694
  o(!0);
@@ -2728,7 +2729,7 @@ const ed = ft(wt((e, t) => {
2728
2729
  let q = null;
2729
2730
  if (i) for (let v = 0; v < i.length && !q; v++) {
2730
2731
  const S = i[v], F = S.getRange().getCoords();
2731
- ni.isCellWithinRange(g, F) && (q = S);
2732
+ oi.isCellWithinRange(g, F) && (q = S);
2732
2733
  }
2733
2734
  d(q);
2734
2735
  }, [g, i]);
@@ -2765,10 +2766,10 @@ const ed = ft(wt((e, t) => {
2765
2766
  }
2766
2767
  j || (j = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
2767
2768
  }
2768
- L.push(p("div", { style: { position: "absolute", left: M.x, top: M.y, width: Math.min(16, M.width), height: M.height, pointerEvents: "all", cursor: ha }, onMouseDown: E }, `table-select-row-${v.getName()}`)), L.push(p("div", { style: { position: "absolute", left: M.x, top: M.y, width: Math.min(16, M.width), height: Math.min(16, M.height), pointerEvents: "all", cursor: ma }, onMouseDown: D }, `table-select-${v.getName()}`)), L.push(p(sl, { x: M.x, y: M.y, width: M.width, height: M.height, range: T, strokeWidth: F ? 0.5 : 0, stroke: j ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: S ? `${j} 0px 0px 1px 1px` : void 0 } }, `table-outline-${v.getName()}`));
2769
+ L.push(p("div", { style: { position: "absolute", left: M.x, top: M.y, width: Math.min(16, M.width), height: M.height, pointerEvents: "all", cursor: ma }, onMouseDown: E }, `table-select-row-${v.getName()}`)), L.push(p("div", { style: { position: "absolute", left: M.x, top: M.y, width: Math.min(16, M.width), height: Math.min(16, M.height), pointerEvents: "all", cursor: pa }, onMouseDown: D }, `table-select-${v.getName()}`)), L.push(p(sl, { x: M.x, y: M.y, width: M.width, height: M.height, range: T, strokeWidth: F ? 0.5 : 0, stroke: j ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: S ? `${j} 0px 0px 1px 1px` : void 0 } }, `table-outline-${v.getName()}`));
2769
2770
  }
2770
2771
  return L;
2771
- })), fa = ft(wt((e, t) => {
2772
+ })), va = ft(wt((e, t) => {
2772
2773
  const { view: n, sheet: r, animationTime: l = 60 } = e, [o, i] = tt.useState(null), [c, g] = tt.useState(null), s = tt.useRef(null), y = ie(() => {
2773
2774
  const E = r.getSelectedCell(), G = E.getSpill()?.getCoords() ?? null;
2774
2775
  qt.isEqualRanges(G, o) || (g(G ? { transition: o ? "move" : "in", bounds: n.getRangeCoordsBounds(G), coords: G } : { transition: "out", bounds: n.getRangeCoordsBounds(o), coords: o }), i(G));
@@ -2791,19 +2792,19 @@ const ed = ft(wt((e, t) => {
2791
2792
  if (c && !rt.isEqualBounds(c.bounds, n.getRangeCoordsBounds(c.coords)) && g(null), b = n.toClipBounds(b, -10), !b) return;
2792
2793
  const D = "var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";
2793
2794
  return k.push(p(sl, { x: b.x, y: b.y, width: b.width, height: b.height, range: o, strokeWidth: 1, stroke: D, style: { willChange: "transform, opacity, width, height, opacity, left, top", strokeDasharray: u ? "6 3" : void 0, opacity: c?.transition === "out" ? 0 : 1, transition: c?.transition ? c.transition === "in" || c.transition === "out" ? `opacity ${1.5 * l}ms ease-in-out` : `left ${l}ms ease-out, top ${l}ms ease-out, width ${l}ms ease-out, height ${l}ms ease-out` : "none", boxShadow: `${D} 0px 0px 4px 0px` } }, "spill-outline}")), k;
2794
- })), va = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, Ar = (e, t) => {
2795
+ })), wa = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, Ar = (e, t) => {
2795
2796
  const n = { ...e }, r = t?.getNormal().getFont(), l = r?.toCSS(), o = { text: { fontFamily: l?.fontFamily, fontSize: r?.getSize() } }, i = n.body = rt.mergeContentful(e.body, o);
2796
2797
  return n.body = rt.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i), n.buttonSurface = rt.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 = rt.mergeContentful(n.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e.header), n.header = rt.mergeContentful(n.header, o), n.headerSelect = rt.mergeContentful(n.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: n.headerSelection.strokeFill, fontWeight: "700" } }, e.headerSelect), n.headerSelect = rt.mergeContentful(n.headerSelect, o), n.headerSelectAll = rt.mergeContentful(n.headerSelect, {}, e.headerSelectAll), n.headerSelectAll = rt.mergeContentful(n.headerSelectAll, o), n;
2797
- }, wa = { fireOnModelChange: !1 }, Ir = {}, ya = ft(wt((e, t) => {
2798
+ }, ya = { fireOnModelChange: !1 }, Ir = {}, ba = ft(wt((e, t) => {
2798
2799
  const { sheet: n, gridStyle: r = Ir, headersStyle: l = Ir, onSheetContextMenu: o, showColumnHeaders: i, columnHeaderProps: c, showRowHeaders: g, rowHeaderProps: s, showScrollbars: y = !0, scrollPaneProps: d, onViewportChange: u, commands: k, onRepeatCommandChange: b, onMoveCell: D, overlays: E, renderMovable: G, viewportComponent: H, onElementLoad: w, getCellEditor: L, onFocus: q, onBlur: v, style: S = it.EmptyCssProperties, notifier: F, onShowTooltip: T, onShowColumnTooltip: M, onShowRowTooltip: j, onCloseTooltip: U, gridProps: B, cellRenderProps: O, ...W } = e;
2799
2800
  if (tt.useEffect(() => {
2800
2801
  el._validate(!0);
2801
2802
  }, []), !n) throw new Error("ISheet must be provided.");
2802
- const [te, z] = tt.useReducer((Q) => Q + 1, 0), [A, { width: P, height: $ }] = sn(), ge = ie(T, [T]), ae = ie(M, [M]), Y = ie(j, [j]), _ = ie(U, [U]), be = Me(!1);
2803
- Ot(() => {
2803
+ const [te, z] = tt.useReducer((Q) => Q + 1, 0), [A, { width: P, height: $ }] = dn(), ge = ie(T, [T]), ae = ie(M, [M]), Y = ie(j, [j]), _ = ie(U, [U]), be = Re(!1);
2804
+ Bt(() => {
2804
2805
  be.current = !0;
2805
2806
  }, [n]);
2806
- const Ae = n?.getStyles(), we = Ce(() => Ar(r, Ae), [r, Ae]), _e = Ce(() => Ar(l, Ae), [l, Ae]), { body: he = {}, buttonSurface: Ze = {} } = we, { header: De = {}, headerSelect: ce = {}, headerSelectAll: de = {} } = _e, me = Me(null), [ye, Re] = ue(() => n?.getView()), Ie = (ye?.getZoomScale() ?? 100) / 100, xe = Ce(() => ({ vertical: ye.isShowColumnGridlines() && Ie >= 0.4, horizontal: ye.isShowRowGridlines() && Ie >= 0.4 }), [ye?.isShowColumnGridlines(), ye?.isShowRowGridlines(), Ie]), Ne = Ce(() => {
2807
+ const Ae = n?.getStyles(), we = Ce(() => Ar(r, Ae), [r, Ae]), _e = Ce(() => Ar(l, Ae), [l, Ae]), { body: he = {}, buttonSurface: Ze = {} } = we, { header: De = {}, headerSelect: ce = {}, headerSelectAll: de = {} } = _e, me = Re(null), [ye, Te] = ue(() => n?.getView()), Ie = (ye?.getZoomScale() ?? 100) / 100, xe = Ce(() => ({ vertical: ye.isShowColumnGridlines() && Ie >= 0.4, horizontal: ye.isShowRowGridlines() && Ie >= 0.4 }), [ye?.isShowColumnGridlines(), ye?.isShowRowGridlines(), Ie]), Ne = Ce(() => {
2807
2808
  if (ye?.getGridLineColor()) return { strokeDasharray: "1,1" };
2808
2809
  }, [ye?.getGridLineColor(), we]), Pe = i ?? ye?.isShowColumnHeaders(), je = g ?? ye?.isShowRowHeaders(), [m, Ke] = ue({ width: 0, height: 0 }), ut = Ce(() => {
2809
2810
  let Q = 40, Ee = 20;
@@ -2813,9 +2814,9 @@ const ed = ft(wt((e, t) => {
2813
2814
  Q = gt.width, Ee = gt.lineHeight;
2814
2815
  }
2815
2816
  return { width: Math.round(Q + 5), height: Math.round(Ee + 3) };
2816
- }, [m, we?.header.text, n]), Qe = je ? Ie * ut.width : De.edgeStrokeWidth, X = Pe ? Ie * ut.height : De.edgeStrokeWidth, Le = Math.max(P, (n?.getColumnHeaders().getDefaultSize() ?? ut.width) + Qe + 1), Ge = Math.max($, (n?.getRowHeaders().getDefaultSize() ?? ut.height) + X + 1), Fe = Me(/* @__PURE__ */ new Map()), Ve = Me(null), Oe = () => ({ getColOffset: (Q) => n.getColumnHeaders().findOffset(Q), getColIndex: (Q) => n.getColumnHeaders().findIndex(Q), getRowOffset: (Q) => n.getRowHeaders().findOffset(Q), getRowIndex: (Q) => n.getRowHeaders().findIndex(Q) }), [C, oe] = ue(() => Oe()), [N, K] = ue(!1), [a, x] = ue(null), R = !0, f = we.selection?.strokeFill, I = Xe(() => Gt.current, []), [h, V] = ue(), Z = ie((Q) => {
2817
+ }, [m, we?.header.text, n]), Qe = je ? Ie * ut.width : De.edgeStrokeWidth, X = Pe ? Ie * ut.height : De.edgeStrokeWidth, Le = Math.max(P, (n?.getColumnHeaders().getDefaultSize() ?? ut.width) + Qe + 1), Ge = Math.max($, (n?.getRowHeaders().getDefaultSize() ?? ut.height) + X + 1), Fe = Re(/* @__PURE__ */ new Map()), Ve = Re(null), Oe = () => ({ getColOffset: (Q) => n.getColumnHeaders().findOffset(Q), getColIndex: (Q) => n.getColumnHeaders().findIndex(Q), getRowOffset: (Q) => n.getRowHeaders().findOffset(Q), getRowIndex: (Q) => n.getRowHeaders().findIndex(Q) }), [C, oe] = ue(() => Oe()), [N, K] = ue(!1), [a, x] = ue(null), R = !0, f = we.selection?.strokeFill, I = Xe(() => jt.current, []), [h, V] = ue(), Z = ie((Q) => {
2817
2818
  V(Q), n && n.getView() && n.getView().setTopLeft(Q ? { left: Q.left, top: Q.top } : null), u?.(Q);
2818
- }, [n, u]), ee = Me(null);
2819
+ }, [n, u]), ee = Re(null);
2819
2820
  Se(() => {
2820
2821
  if (!h || !n) return;
2821
2822
  const Q = n.getRangeAtBounds({ x: h.left, y: h.top, width: h.width, height: h.height });
@@ -2833,22 +2834,22 @@ const ed = ft(wt((e, t) => {
2833
2834
  if (!Q || Q.coords.colIndex === 0 && Q.coords.rowIndex === 0) return null;
2834
2835
  const Ee = {};
2835
2836
  return Q.coords.colIndex > 0 && (Ee[yt.Left] = { index: Q.coords.colIndex, scrollOffset: Q.topLeft.left }), Q.coords.rowIndex > 0 && (Ee[yt.Top] = { index: Q.coords.rowIndex, scrollOffset: Q.topLeft.top }), Ee;
2836
- }, [pe, fe] = ue(() => ke(n.getView().getFreezePanes())), Te = cn(), We = Xe(() => me.current, []), Be = ie((Q) => {
2837
- Te.setMode((Ee) => Ee?.key === "edit" ? { ...Ee, args: { ...Ee.args } } : { key: "edit", args: { stateAndCoords: null, start: Q } });
2838
- }, []), et = ie(() => h, [h]), $e = Pi({ sheet: n, commands: k, target: We, onRepeatCommandChange: b, bodyStyle: he, notifier: F, onStartEdit: Be, getViewport: et }), [nt, He] = ue(n.getSelection().isEntire()), [at, Ct] = ue(ye?.getMovableSelection().length > 0), Ft = a !== null || at, Ht = null, [ot, vt] = ue(!1);
2837
+ }, [pe, fe] = ue(() => ke(n.getView().getFreezePanes())), Me = un(), We = Xe(() => me.current, []), Be = ie((Q) => {
2838
+ Me.setMode((Ee) => Ee?.key === "edit" ? { ...Ee, args: { ...Ee.args } } : { key: "edit", args: { stateAndCoords: null, start: Q } });
2839
+ }, []), et = ie(() => h, [h]), $e = Wi({ sheet: n, commands: k, target: We, onRepeatCommandChange: b, bodyStyle: he, notifier: F, onStartEdit: Be, getViewport: et }), [nt, He] = ue(n.getSelection().isEntire()), [at, Ct] = ue(ye?.getMovableSelection().length > 0), Ft = a !== null || at, Pt = null, [ot, vt] = ue(!1);
2839
2840
  Se(() => {
2840
2841
  vt(!1);
2841
2842
  }, [n.getProtection()]);
2842
2843
  const Nt = ie(() => {
2843
2844
  ot || (vt(!0), F.showMessage?.(Je("span", { children: ["This sheet is protected.", p("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: tr.Error }));
2844
- }, [F, ot]), Vt = Ce(() => {
2845
- const Q = Te.getMode();
2845
+ }, [F, ot]), Ht = Ce(() => {
2846
+ const Q = Me.getMode();
2846
2847
  return Q?.cursor ? Q.cursor : null;
2847
- }, [Ht, Te]), [Lt, Mt] = ue(null), bt = Me(!1), [Xt, un] = ue([]), Rn = Me(null), [nn, Tn] = ue(Gn.EmptyTopLeft), [_t, Qn] = ue(Gn.EmptyTopLeft);
2848
+ }, [Pt, Me]), [Lt, Mt] = ue(null), bt = Re(!1), [Jt, gn] = ue([]), Mn = Re(null), [on, Dn] = ue(_n.EmptyTopLeft), [Zt, to] = ue(_n.EmptyTopLeft);
2848
2849
  Se(() => {
2849
- Tn({ left: re?.left, top: 0 });
2850
+ Dn({ left: re?.left, top: 0 });
2850
2851
  }, [re?.left]), Se(() => {
2851
- Qn({ left: 0, top: re?.top });
2852
+ to({ left: 0, top: re?.top });
2852
2853
  }, [re?.top]), ht(n?.getView(), { onFreezeSplitChange: () => {
2853
2854
  fe(ke(n.getView().getFreezePanes()));
2854
2855
  }, onTopLeftChange: () => {
@@ -2858,75 +2859,79 @@ const ed = ft(wt((e, t) => {
2858
2859
  } }), ht(n?.getSelection(), { onChange: () => {
2859
2860
  He(n.getSelection().isEntire());
2860
2861
  } }), ht(n, { onViewChange() {
2861
- Re(n.getView()), oe(Oe());
2862
+ Te(n.getView()), oe(Oe());
2862
2863
  }, onLayoutChange: () => {
2863
2864
  const Q = n.getEntireRange();
2864
2865
  Ke({ height: Q.getRowCount(), width: Q.getColumnCount() }), oe(Oe());
2865
2866
  }, onStyleChange: () => {
2866
- on();
2867
+ rn();
2867
2868
  }, onMovablesChange: () => {
2868
2869
  }, onInvalidated: () => {
2869
- on();
2870
+ rn();
2870
2871
  } }), ht(n, { onRequestScrollIntoView: async (Q, Ee) => {
2871
2872
  if (!Ee) return;
2872
2873
  const ze = { colIndex: Ee?.coords.colStart, rowIndex: Ee?.coords.rowStart };
2873
2874
  return await me.current?.scrollCellCoordsIntoView(ze, Ee?.scroll), !0;
2874
- }, onRequestFocus: () => rt.whenFocus(Gt.current) }, wa);
2875
- const eo = Ce(() => {
2875
+ }, onRequestFocus: () => rt.whenFocus(jt.current) }, ya);
2876
+ const Ot = Re(!1), hn = Ce(() => {
2876
2877
  const Q = (ze, Ye) => {
2877
2878
  bt.current = !0, Mt([(lt) => {
2878
2879
  if (!lt.toClipBounds(lt.getRangeCoordsBounds({ rowStart: 0, rowEnd: m.height, colStart: ze, colEnd: ze }))) return;
2879
- const gt = lt.getLayout(), pt = Math.max(0, gt.getColOffset(ze)), ct = lt.getBounds(), xt = Math.min(ct.x + ct.width, gt.getColOffset(ze + 1)), Et = lt.getAnchor();
2880
- if (Ye !== null && (Et === yt.Left || Et === yt.Center || Et === yt.Right)) {
2881
- const Lo = rt.roundAccurately(Ye * rt.getDPI(), 0), lo = rt.roundAccurately(n?.getColumnWidthAsFontUnit(Ye / Ie), 2).toFixed(2), Oo = "Width: " + (Ye ? lo + " (" + Lo + " pixels)" : "Hidden"), zn = pn.current.getGridElement().getRelativePointFromClient(0, 0), fn = 0 - zn.y, io = 0 - zn.y + X, Bo = { x: pt - (zn.x - ct.x), y: fn, width: xt - pt, height: io - fn };
2880
+ const gt = lt.getLayout(), pt = Math.max(0, gt.getColOffset(ze)), ct = lt.getBounds(), xt = Math.min(ct.x + ct.width, gt.getColOffset(ze + 1)), Dt = lt.getAnchor();
2881
+ if (Ye !== null && (Dt === yt.Left || Dt === yt.Center || Dt === yt.Right)) {
2882
+ const Lo = rt.roundAccurately(Ye * rt.getDPI(), 0), lo = rt.roundAccurately(n?.getColumnWidthAsFontUnit(Ye / Ie), 2).toFixed(2), Oo = "Width: " + (Ye ? lo + " (" + Lo + " pixels)" : "Hidden"), Nn = vn.current.getGridElement().getRelativePointFromClient(0, 0), wn = 0 - Nn.y, io = 0 - Nn.y + X, Bo = { x: pt - (Nn.x - ct.x), y: wn, width: xt - pt, height: io - wn };
2882
2883
  requestAnimationFrame(() => {
2883
2884
  bt.current && ae?.({ anchor: Bo, display: Oo });
2884
2885
  });
2885
2886
  }
2886
- const Jt = [0, 0, 0, ct.height], In = { style: { boxShadow: `0.5px 0px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, zo = { x: pt - 1, y: 0, width: 1, height: ct.height }, Fo = { style: { boxShadow: `-0.5px 0px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, No = { x: xt - 1, y: 0, width: 1, height: ct.height };
2887
- return Je(tt.Fragment, { children: [p(ao, { linePoints: Jt, bounds: zo, ...In }), p(ao, { linePoints: Jt, bounds: No, ...Fo })] }, "resize-dividers");
2887
+ const Qt = [0, 0, 0, ct.height], Fn = { style: { boxShadow: `0.5px 0px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, zo = { x: pt - 1, y: 0, width: 1, height: ct.height }, Fo = { style: { boxShadow: `-0.5px 0px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, No = { x: xt - 1, y: 0, width: 1, height: ct.height };
2888
+ return Je(tt.Fragment, { children: [p(ao, { linePoints: Qt, bounds: zo, ...Fn }), p(ao, { linePoints: Qt, bounds: No, ...Fo })] }, "resize-dividers");
2888
2889
  }]);
2889
2890
  };
2890
2891
  let Ee = null;
2891
2892
  return { onResizeHeadersStart: (ze, Ye, lt) => {
2892
- Ee = n.beginCommit(lt), Q(ze, Ye);
2893
+ Ee = n.beginCommit(lt), Ot.current = !1, Q(ze, Ye);
2893
2894
  }, onResizeHeaders: (ze, Ye, lt) => {
2894
- Q(ze, Ye);
2895
+ Ot.current = !1, Q(ze, Ye);
2895
2896
  }, onResizeHeadersDown: (ze, Ye) => {
2896
- Q(ze, Ye);
2897
+ Ot.current = !0, setTimeout(() => {
2898
+ Ot.current && Q(ze, Ye);
2899
+ }, 280);
2897
2900
  }, onResizeHeadersEnd: (ze, Ye, lt) => {
2898
- Ee?.commit({ description: lt }), Ee = null, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2901
+ Ee?.commit({ description: lt }), Ee = null, Ot.current = !1, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2899
2902
  }, onResizeHeadersUp: (ze) => {
2900
- requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2903
+ Ot.current = !1, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2901
2904
  }, ...c };
2902
- }, [n, c, X, Lt]), gn = Ce(() => {
2905
+ }, [n, c, X, Lt]), En = Ce(() => {
2903
2906
  const Q = (ze, Ye) => {
2904
2907
  bt.current = !0, Mt([(lt) => {
2905
2908
  if (!lt.toClipBounds(lt.getRangeCoordsBounds({ rowStart: ze, rowEnd: ze, colStart: 0, colEnd: m.width }))) return;
2906
- const gt = lt.getLayout(), pt = Math.max(0, gt.getRowOffset(ze)), ct = lt.getBounds(), xt = Math.min(ct.y + ct.height, gt.getRowOffset(ze + 1)), Et = lt.getAnchor();
2907
- if (Ye !== null && (Et === yt.Top || Et === yt.Center || Et === yt.Bottom)) {
2908
- const Lo = Math.floor(10 * rt.getDPI()) / 10, lo = rt.roundAccurately(Ye * Lo, 0), Oo = rt.roundAccurately(lo / Ie / (n?.getRowHeaders().getScaleFactor() * rt.getDPI()), 2).toFixed(2), zn = "Height: " + (Ye ? Oo + " (" + lo + " pixels)" : "Hidden"), fn = An.current.getGridElement().getRelativePointFromClient(0, 0), io = 0 - fn.x, Bo = 0 - fn.x + Qe, Xl = { x: io, y: pt - (fn.y - ct.y), width: Bo - io, height: xt - pt };
2909
+ const gt = lt.getLayout(), pt = Math.max(0, gt.getRowOffset(ze)), ct = lt.getBounds(), xt = Math.min(ct.y + ct.height, gt.getRowOffset(ze + 1)), Dt = lt.getAnchor();
2910
+ if (Ye !== null && (Dt === yt.Top || Dt === yt.Center || Dt === yt.Bottom)) {
2911
+ const Lo = Math.floor(10 * rt.getDPI()) / 10, lo = rt.roundAccurately(Ye * Lo, 0), Oo = rt.roundAccurately(lo / Ie / (n?.getRowHeaders().getScaleFactor() * rt.getDPI()), 2).toFixed(2), Nn = "Height: " + (Ye ? Oo + " (" + lo + " pixels)" : "Hidden"), wn = fn.current.getGridElement().getRelativePointFromClient(0, 0), io = 0 - wn.x, Bo = 0 - wn.x + Qe, Jl = { x: io, y: pt - (wn.y - ct.y), width: Bo - io, height: xt - pt };
2909
2912
  requestAnimationFrame(() => {
2910
- bt.current && Y?.({ anchor: Xl, display: zn });
2913
+ bt.current && Y?.({ anchor: Jl, display: Nn });
2911
2914
  });
2912
2915
  }
2913
- const Jt = [0, 0, ct.width, 0], In = { style: { boxShadow: `0px 0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, zo = { x: 0, y: pt - 1, width: ct.width, height: 1 }, Fo = { style: { boxShadow: `0px -0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, No = { x: 0, y: xt - 1, width: ct.width, height: 1 };
2914
- return Je(tt.Fragment, { children: [p(ao, { linePoints: Jt, bounds: zo, ...In }), p(ao, { linePoints: Jt, bounds: No, ...Fo })] }, "resize-dividers");
2916
+ const Qt = [0, 0, ct.width, 0], Fn = { style: { boxShadow: `0px 0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, zo = { x: 0, y: pt - 1, width: ct.width, height: 1 }, Fo = { style: { boxShadow: `0px -0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: f } }, No = { x: 0, y: xt - 1, width: ct.width, height: 1 };
2917
+ return Je(tt.Fragment, { children: [p(ao, { linePoints: Qt, bounds: zo, ...Fn }), p(ao, { linePoints: Qt, bounds: No, ...Fo })] }, "resize-dividers");
2915
2918
  }]);
2916
2919
  };
2917
2920
  let Ee = null;
2918
2921
  return { onResizeHeadersStart: (ze, Ye, lt) => {
2919
- Ee = n.beginCommit(lt), Q(ze, Ye);
2922
+ Ee = n.beginCommit(lt), Ot.current = !1, Q(ze, Ye);
2920
2923
  }, onResizeHeaders: (ze, Ye, lt) => {
2921
- Q(ze, Ye);
2924
+ Ot.current = !1, Q(ze, Ye);
2922
2925
  }, onResizeHeadersDown: (ze, Ye) => {
2923
- Q(ze, Ye);
2926
+ Ot.current = !0, setTimeout(() => {
2927
+ Ot.current && Q(ze, Ye);
2928
+ }, 280);
2924
2929
  }, onResizeHeadersEnd: (ze, Ye, lt) => {
2925
- Ee?.commit({ description: lt }), Ee = null, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2930
+ Ee?.commit({ description: lt }), Ee = null, Ot.current = !1, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2926
2931
  }, onResizeHeadersUp: (ze) => {
2927
- requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2932
+ Ot.current = !1, requestAnimationFrame(() => _?.()), bt.current = !1, Mt(null);
2928
2933
  }, ...s };
2929
- }, [n, s, Qe]), Gt = jt(t, () => {
2934
+ }, [n, s, Qe]), jt = _t(t, () => {
2930
2935
  const Q = (ze) => {
2931
2936
  n?.getView() && n.getView().selectMovables([]), Ve.current = null, me?.current?.focus(ze);
2932
2937
  }, Ee = async (ze = null) => {
@@ -2940,41 +2945,41 @@ const ed = ft(wt((e, t) => {
2940
2945
  let pt = Fe.current?.get(gt);
2941
2946
  return pt?.current ? (await pt.current.focusMovable(ze), !0) : (Ve.current = { movable: ze, anchor: gt }, !0);
2942
2947
  };
2943
- return { getGridElement: () => me.current, getRowHeaderElement: () => An.current, getColumnHeaderElement: () => pn.current, rowHeaderHeight: () => X, colHeaderWidth: () => Qe, startEdit: Be, submitEdit: () => {
2944
- Te.setMode((ze) => ze?.key !== "edit" ? ze : { key: "edit", args: { stateAndCoords: null, submit: !0 } });
2948
+ return { getGridElement: () => me.current, getRowHeaderElement: () => fn.current, getColumnHeaderElement: () => vn.current, rowHeaderHeight: () => X, colHeaderWidth: () => Qe, startEdit: Be, submitEdit: () => {
2949
+ Me.setMode((ze) => ze?.key !== "edit" ? ze : { key: "edit", args: { stateAndCoords: null, submit: !0 } });
2945
2950
  }, cancelEdit: () => {
2946
- Te.setMode((ze) => ze?.key !== "edit" ? ze : { key: "edit", args: { stateAndCoords: null, cancel: !0 } });
2951
+ Me.setMode((ze) => ze?.key !== "edit" ? ze : { key: "edit", args: { stateAndCoords: null, cancel: !0 } });
2947
2952
  }, isEditing: a !== null, focus: (ze) => {
2948
2953
  n?.getView().getMovableSelection().length > 0 && Ee() || Q(ze);
2949
- }, focusSheet: Q, focusMovable: Ee, contains: (ze) => me?.current?.contains?.(ze), invalidate: on, isSheetElement: () => !0, getSheet: () => n };
2950
- }, [n]), on = Xe((Q) => {
2954
+ }, focusSheet: Q, focusMovable: Ee, contains: (ze) => me?.current?.contains?.(ze), invalidate: rn, isSheetElement: () => !0, getSheet: () => n };
2955
+ }, [n]), rn = Xe((Q) => {
2951
2956
  be.current || (me?.current?.invalidate(Q), z?.());
2952
2957
  }, []);
2953
2958
  Se(() => {
2954
- on();
2959
+ rn();
2955
2960
  }, [we]);
2956
- const Mn = nt ? de.edgeStrokeFill : De.fill, Mo = nt ? ce.fill : typeof we.headerHover == "function" ? we.headerHover(De)?.fill : De.fill, mt = Ce(() => H ? p("div", { className: Bt("sheetxl-viewport-overlay", Bi), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: H }) : p(qn, {}), [H]);
2957
- let Dn = null;
2958
- Pe && je && (Dn = Je("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${X}px`, width: `${Qe}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (Q) => {
2961
+ const no = nt ? de.edgeStrokeFill : De.fill, mt = nt ? ce.fill : typeof we.headerHover == "function" ? we.headerHover(De)?.fill : De.fill, oo = Ce(() => H ? p("div", { className: Vt("sheetxl-viewport-overlay", Vi), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: H }) : p(Sn, {}), [H]);
2962
+ let mn = null;
2963
+ Pe && je && (mn = Je("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${X}px`, width: `${Qe}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (Q) => {
2959
2964
  let Ee = !Q.ctrlKey;
2960
2965
  $e?.getCommand("selectAll")?.execute(!Ee || Q.button !== 0), Q.nativeEvent.which === rl.Right ? o?.({ originalEvent: Q, clientX: Q.clientX, clientY: Q.clientY, rowIndex: -1, colIndex: -1 }) : me.current?.focus();
2961
- }, children: [p("div", { style: { height: X - 5 + "px", width: X - 5 + "px", clipPath: `path('M${X - 5} 0 L0 ${X - 5} L${X - 5} ${X - 5} L${X - 5} 0 Z')`, borderRight: `2px solid ${Mn}`, borderBottom: `2px solid ${Mn}`, background: `${Mo}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), p("div", { style: { position: "absolute", height: `${X}px`, width: `${Qe}px`, boxSizing: "border-box", borderRight: `solid 1px ${De.strokeFill}`, borderBottom: `solid 1px ${De.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2962
- const hn = ie(({ _left: Q, _top: Ee }) => {
2963
- }, []), to = ie((Q) => {
2966
+ }, children: [p("div", { style: { height: X - 5 + "px", width: X - 5 + "px", clipPath: `path('M${X - 5} 0 L0 ${X - 5} L${X - 5} ${X - 5} L${X - 5} 0 Z')`, borderRight: `2px solid ${no}`, borderBottom: `2px solid ${no}`, background: `${mt}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), p("div", { style: { position: "absolute", height: `${X}px`, width: `${Qe}px`, boxSizing: "border-box", borderRight: `solid 1px ${De.strokeFill}`, borderBottom: `solid 1px ${De.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2967
+ const An = ie(({ _left: Q, _top: Ee }) => {
2968
+ }, []), St = ie((Q) => {
2964
2969
  if (!o) return;
2965
2970
  const Ee = me.current.getViewFromClient(Q.clientX, Q.clientY)?.getCellCoordsFromClient(Q.clientX, Q.clientY);
2966
2971
  Ee && (o({ originalEvent: Q, clientX: Q.clientX, clientY: Q.clientY, rowIndex: Ee.rowIndex, colIndex: Ee.colIndex }), Q.stopPropagation(), Q.preventDefault());
2967
- }, [o]), St = ie((Q) => {
2972
+ }, [o]), At = ie((Q) => {
2968
2973
  if (!(!Q.shiftKey && (Q.ctrlKey || Q.metaKey))) return;
2969
2974
  const { deltaY: Ee } = Q;
2970
2975
  return Ee > 0 ? $e.getCommand("sheetZoomOut")?.execute() : Ee < 0 && $e.getCommand("sheetZoomIn")?.execute(), Ee === 0;
2971
2976
  }, [$e]);
2972
2977
  Se(() => {
2973
- un(null), Rn.current = null, bt.current = !1, Mt(null);
2978
+ gn(null), Mn.current = null, bt.current = !1, Mt(null);
2974
2979
  const Q = n?.getView().getTopLeft();
2975
- hn(Q), me.current?.scrollTo(Q), le(Q), Re(n.getView()), fe(ke(n.getView().getFreezePanes())), oe(Oe()), z();
2980
+ An(Q), me.current?.scrollTo(Q), le(Q), Te(n.getView()), fe(ke(n.getView().getFreezePanes())), oe(Oe()), z();
2976
2981
  }, [n?.getView()]);
2977
- const Dt = ie((Q) => {
2982
+ const In = ie((Q) => {
2978
2983
  const Ee = Q.getVisibleRangeCoords();
2979
2984
  if (!Ee) return null;
2980
2985
  const ze = [];
@@ -2984,24 +2989,24 @@ const ed = ft(wt((e, t) => {
2984
2989
  if (ct.isEmpty()) return !1;
2985
2990
  const xt = ct.getSpans();
2986
2991
  if (xt.width > 1 || xt.height > 1 || ct.getStyle().hasVisibleStyling() || ye.isShowFormulas() && ct.getFormula() !== null) return !0;
2987
- const Et = ct.getValue();
2988
- return Et !== null && !(!ye.isShowZeros() && Et === 0 && ct.getType() === Un.Number);
2992
+ const Dt = ct.getValue();
2993
+ return Dt !== null && !(!ye.isShowZeros() && Dt === 0 && ct.getType() === jn.Number);
2989
2994
  })(pt) && ze.push({ coords: gt, value: pt, range: ye.isShowFormulas() ? null : pt.getExtrusions() });
2990
2995
  }, { excludeHidden: !0, includeMergeOverflow: !0 }), ze;
2991
2996
  }, [n, ye.isShowZeros(), ye.isShowFormulas(), a]);
2992
2997
  Se(() => {
2993
2998
  const Q = [];
2994
- E && Q.push(...E), Lt && Q.push(...Lt), rt.isEqualArrays(Q, Rn.current) || (Rn.current = Q, un(Q));
2999
+ E && Q.push(...E), Lt && Q.push(...Lt), rt.isEqualArrays(Q, Mn.current) || (Mn.current = Q, gn(Q));
2995
3000
  }, [E, Lt, we]);
2996
- const En = Ce(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: r?.body?.text?.fill ?? "black" } }), [we?.header?.edgeStrokeFill]), no = ie((Q) => {
3001
+ const zn = Ce(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${r?.body?.fill}` }, pathProps: { stroke: r?.body?.text?.fill ?? "black" } }), [we?.header?.edgeStrokeFill]), pn = ie((Q) => {
2997
3002
  Q.isDefaultPrevented() || Q.isPropagationStopped() || (Ve.current = null, n?.getView().getMovableSelection().length > 0 && n.getView().selectMovables([]));
2998
- }, [n]), mn = Ce(() => {
2999
- const Q = Te.getMode();
3003
+ }, [n]), Mo = Ce(() => {
3004
+ const Q = Me.getMode();
3000
3005
  return Q?.key === "cut" || Q?.key === "copy";
3001
- }, [Te]), Do = ie(async (Q) => {
3002
- const Ee = Te.getMode();
3003
- return Q.keyCode === It.Escape && Ee ? (Q.preventDefault(), void Te.setMode(null)) : Q.keyCode === It.Enter && mn ? (Q.preventDefault(), await $e?.getCommand("paste")?.execute(), void Te.setMode(null)) : void $e?.dispatchToFocusedCommand(Q);
3004
- }, [$e, Te]), An = Me(null), oo = Ce(() => p("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${X + 1}px`, width: `${Qe + De.edgeStrokeWidth}px`, minWidth: `${Qe + De.edgeStrokeWidth}px`, borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, height: `calc(100% - ${X}px)`, boxSizing: "border-box", zIndex: "2" }, children: p(Mr, { ref: An, sheetElement: Gt.current, gridRef: me, freezeStart: pe?.[yt.Top], oppositeSize: Qe, containerWidth: Qe, containerHeight: Ge, sheetHeader: n.getRowHeaders(), gridStyle: _e, verticalPadding: Math.max(0, Math.floor(n.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: _t, onSheetContextMenu: o, tabIndex: -1, style: { position: "relative", flex: "0", top: `${X + 1}px`, width: `${Qe + De.edgeStrokeWidth}px`, minWidth: `${Qe + De.edgeStrokeWidth}px`, borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, height: `calc(100% - ${X}px)`, boxSizing: "border-box", zIndex: "2", ...gn?.style }, ...gn }) }), [Qe, X, Ge, n, _t, pe?.[yt.Top], we, R, o, De.fill, s]), pn = Me(null), ro = Ce(() => p("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${X + De.edgeStrokeWidth}px`, minHeight: `${X + De.edgeStrokeWidth}px`, borderBottom: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: p(Mr, { ref: pn, sheetElement: Gt.current, gridRef: me, freezeStart: pe?.[yt.Left], oppositeSize: X, containerWidth: Le, containerHeight: X, sheetHeader: n.getColumnHeaders(), gridStyle: _e, scrollPoint: nn, onSheetContextMenu: o, ...eo, style: { ...eo?.style, position: "relative", left: "0px", width: "100%", height: `${X + De.edgeStrokeWidth}px`, minHeight: `${X + De.edgeStrokeWidth}px`, borderBottom: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [X, Le, n, nn, pe?.[yt.Left], we, De.fill, R, o, c]), Gl = ie((Q) => {
3006
+ }, [Me]), Do = ie(async (Q) => {
3007
+ const Ee = Me.getMode();
3008
+ return Q.keyCode === It.Escape && Ee ? (Q.preventDefault(), void Me.setMode(null)) : Q.keyCode === It.Enter && Mo ? (Q.preventDefault(), await $e?.getCommand("paste")?.execute(), void Me.setMode(null)) : void $e?.dispatchToFocusedCommand(Q);
3009
+ }, [$e, Me]), fn = Re(null), ro = Ce(() => p("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${X + 1}px`, width: `${Qe + De.edgeStrokeWidth}px`, minWidth: `${Qe + De.edgeStrokeWidth}px`, borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, height: `calc(100% - ${X}px)`, boxSizing: "border-box", zIndex: "2" }, children: p(Mr, { ref: fn, sheetElement: jt.current, gridRef: me, freezeStart: pe?.[yt.Top], oppositeSize: Qe, containerWidth: Qe, containerHeight: Ge, sheetHeader: n.getRowHeaders(), gridStyle: _e, verticalPadding: Math.max(0, Math.floor(n.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Zt, onSheetContextMenu: o, tabIndex: -1, style: { position: "relative", flex: "0", top: `${X + 1}px`, width: `${Qe + De.edgeStrokeWidth}px`, minWidth: `${Qe + De.edgeStrokeWidth}px`, borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, height: `calc(100% - ${X}px)`, boxSizing: "border-box", zIndex: "2", ...En?.style }, ...En }) }), [Qe, X, Ge, n, Zt, pe?.[yt.Top], we, R, o, De.fill, s]), vn = Re(null), Gl = Ce(() => p("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${X + De.edgeStrokeWidth}px`, minHeight: `${X + De.edgeStrokeWidth}px`, borderBottom: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: p(Mr, { ref: vn, sheetElement: jt.current, gridRef: me, freezeStart: pe?.[yt.Left], oppositeSize: X, containerWidth: Le, containerHeight: X, sheetHeader: n.getColumnHeaders(), gridStyle: _e, scrollPoint: on, onSheetContextMenu: o, ...hn, style: { ...hn?.style, position: "relative", left: "0px", width: "100%", height: `${X + De.edgeStrokeWidth}px`, minHeight: `${X + De.edgeStrokeWidth}px`, borderBottom: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [X, Le, n, on, pe?.[yt.Left], we, De.fill, R, o, c]), jl = ie((Q) => {
3005
3010
  const { value: Ee, key: ze, ...Ye } = Q;
3006
3011
  let lt = Ee, gt = a;
3007
3012
  if (!gt || gt.colIndex === Q.coords.colIndex && gt.rowIndex === Q.coords.rowIndex || (gt = null), !lt) {
@@ -3014,37 +3019,37 @@ const ed = ft(wt((e, t) => {
3014
3019
  xt.stopPropagation(), xt.preventDefault();
3015
3020
  try {
3016
3021
  await lt.getHyperlink()?.open();
3017
- } catch (Et) {
3018
- F?.showError?.(Et);
3022
+ } catch (Dt) {
3023
+ F?.showError?.(Dt);
3019
3024
  }
3020
3025
  }
3021
3026
  }), gt && gt.colIndex === Q.range.colStart && gt.rowIndex === Q.range.rowStart && (lt = lt.createTemporaryCell({ value: null }));
3022
3027
  const ct = n.getStyles();
3023
- return mi(xi, { ...Ye, key: ze, bodyStyle: he, docTheme: ct.getTheme(), normalStyle: ct.getNormal(), showFormulas: ye.isShowFormulas(), showZeros: ye.isShowZeros(), onLinkMouseDown: pt, ...O, value: lt });
3024
- }, [n, C, he, a, ye?.isShowFormulas(), ye.isShowZeros()]), jl = Xe((Q, Ee) => {
3028
+ return pi(ki, { ...Ye, key: ze, bodyStyle: he, docTheme: ct.getTheme(), normalStyle: ct.getNormal(), showFormulas: ye.isShowFormulas(), showZeros: ye.isShowZeros(), onLinkMouseDown: pt, ...O, value: lt });
3029
+ }, [n, C, he, a, ye?.isShowFormulas(), ye.isShowZeros()]), _l = Xe((Q, Ee) => {
3025
3030
  const { key: ze, ...Ye } = Q;
3026
- return [p($i, { ref: Ee, getVisibleCells: Dt, sheet: n, gridStyle: we, ...Ye }, `border-${ze}`), p(pa, { ref: Ee, sheet: n, commands: $e, ...Ye }, `table-${ze}`), p(fa, { ref: Ee, sheet: n, ...Ye }, `spill-${ze}`), p(la, { ref: Ee, sheet: n, commands: $e, notifier: F, onShowTooltip: ge, onCloseTooltip: _, gridStyle: we, gridRef: me, editingCoords: a, isActive: R, ...Ye }, `selection-${ze}`), p(Ji, { ref: Ee, sheet: n, commands: $e, gridStyle: we, element: I, notifier: F, ...Ye }, `copy-paste-${ze}`), p(ua, { ref: Ee, sheet: n, commands: $e, target: We, notifier: F, renderMovable: G, movableProps: { onUnFocus: () => {
3027
- Gt.current.focus();
3028
- } }, ...Ye }, `movable-${ze}`), p(ga, { ref: Ee, sheet: n, commands: $e, notifier: F, gridStyle: we, getCellEditor: L, showProtectedError: Nt, setEditingCoords: x, ...Ye }, `editor-${ze}`)];
3029
- }, [n, me.current, we, L, $e, F]), [cr, _l] = ue(!1), Zl = Ce(() => {
3031
+ return [p(Ui, { ref: Ee, getVisibleCells: In, sheet: n, gridStyle: we, ...Ye }, `border-${ze}`), p(fa, { ref: Ee, sheet: n, commands: $e, ...Ye }, `table-${ze}`), p(va, { ref: Ee, sheet: n, ...Ye }, `spill-${ze}`), p(ia, { ref: Ee, sheet: n, commands: $e, notifier: F, onShowTooltip: ge, onCloseTooltip: _, gridStyle: we, gridRef: me, editingCoords: a, isActive: R, ...Ye }, `selection-${ze}`), p(Qi, { ref: Ee, sheet: n, commands: $e, gridStyle: we, element: I, notifier: F, ...Ye }, `copy-paste-${ze}`), p(ga, { ref: Ee, sheet: n, commands: $e, target: We, notifier: F, renderMovable: G, movableProps: { onUnFocus: () => {
3032
+ jt.current.focus();
3033
+ } }, ...Ye }, `movable-${ze}`), p(ha, { ref: Ee, sheet: n, commands: $e, notifier: F, gridStyle: we, getCellEditor: L, showProtectedError: Nt, setEditingCoords: x, ...Ye }, `editor-${ze}`)];
3034
+ }, [n, me.current, we, L, $e, F]), [cr, Zl] = ue(!1), Kl = Ce(() => {
3030
3035
  if (Le === 0 || Ge === 0) return null;
3031
3036
  const Q = n.getStyles().getNormal(), Ee = Q.getFont(), ze = Q.getFill(), Ye = Q.getBorder(), lt = Q.getFill().getType() === ho.Type.None;
3032
3037
  let gt = Ne, pt = Ne;
3033
- const ct = (Et, Jt, In) => In ? { stroke: Ye.getBottom().isNone() ? "none" : Et.getColor().toRGBA(he.darkMode).toString(), ...Jt } : Jt;
3038
+ const ct = (Dt, Qt, Fn) => Fn ? { stroke: Ye.getBottom().isNone() ? "none" : Dt.getColor().toRGBA(he.darkMode).toString(), ...Qt } : Qt;
3034
3039
  pt = ct(Ye.getBottom(), pt, !Ye.getBottom().isNone()), pt = ct(Ye.getTop(), pt, !Ye.getTop().isNone()), gt = ct(Ye.getRight(), gt, !Ye.getRight().isNone()), gt = ct(Ye.getLeft(), gt, !Ye.getLeft().isNone());
3035
3040
  let xt = ye?.getGridLineColor()?.toRGBA(he.darkMode).toString() ?? he.strokeFill;
3036
- return lt || (pt = ct(Ye.getBottom(), pt, !0), pt = ct(Ye.getTop(), pt, !0), gt = ct(Ye.getRight(), gt, !0), gt = ct(Ye.getLeft(), gt, !0)), p(al, { className: "sheetxl-sheet-primary", style: { ...va, ...ze.toCSS(he.darkMode), ...Ee.toCSS(he.darkMode, Ie), "--sxl-app-color-background": he.fill, "--sxl-app-color-shadow": we.colorShadow, "--sxl-app-color-grey": we.colorGrey, "--sxl-app-color-button-fill": Ze.fill, "--sxl-app-color-button-text": Ze.text?.fill, "--sxl-app-color-button-border": Ze.edgeStrokeFill, "--sxl-app-color-primary-dark": we.selection.strokeFill }, ref: me, zoom: Ie, ...B, onFirstRender: (Et) => {
3037
- _l(!0), B?.onFirstRender?.(Et), $e?.activate();
3038
- }, showGridLines: xe, gridLineColor: xt, gridLineColumnsProps: gt, gridLineRowsProps: pt, freezeLeft: pe?.[yt.Left], freezeLeftProps: En, freezeTop: pe?.[yt.Top], freezeTopProps: En, width: Le, height: Ge, columnCount: m.width, rowCount: m.height, cursor: Vt ?? Ht ?? "cell", clipCells: !0, layout: C, cellRenderer: Gl, overlayRenderer: jl, getCellCoordsAsRangeCoords: se, getVisibleCells: Dt, onWheelScroll: St, onPointerDown: no, onKeyDown: Do, onViewportChange: Z, onImmediateScroll: hn, scrollPoint: re, stageProps: { onFocus: () => {
3041
+ return lt || (pt = ct(Ye.getBottom(), pt, !0), pt = ct(Ye.getTop(), pt, !0), gt = ct(Ye.getRight(), gt, !0), gt = ct(Ye.getLeft(), gt, !0)), p(al, { className: "sheetxl-sheet-primary", style: { ...wa, ...ze.toCSS(he.darkMode), ...Ee.toCSS(he.darkMode, Ie), "--sxl-app-color-background": he.fill, "--sxl-app-color-shadow": we.colorShadow, "--sxl-app-color-grey": we.colorGrey, "--sxl-app-color-button-fill": Ze.fill, "--sxl-app-color-button-text": Ze.text?.fill, "--sxl-app-color-button-border": Ze.edgeStrokeFill, "--sxl-app-color-primary-dark": we.selection.strokeFill }, ref: me, zoom: Ie, ...B, onFirstRender: (Dt) => {
3042
+ Zl(!0), B?.onFirstRender?.(Dt), $e?.activate();
3043
+ }, showGridLines: xe, gridLineColor: xt, gridLineColumnsProps: gt, gridLineRowsProps: pt, freezeLeft: pe?.[yt.Left], freezeLeftProps: zn, freezeTop: pe?.[yt.Top], freezeTopProps: zn, width: Le, height: Ge, columnCount: m.width, rowCount: m.height, cursor: Ht ?? Pt ?? "cell", clipCells: !0, layout: C, cellRenderer: jl, overlayRenderer: _l, getCellCoordsAsRangeCoords: se, getVisibleCells: In, onWheelScroll: At, onPointerDown: pn, onKeyDown: Do, onViewportChange: Z, onImmediateScroll: An, scrollPoint: re, stageProps: { onFocus: () => {
3039
3044
  $e?.activate();
3040
- } }, overlays: Xt });
3045
+ } }, overlays: Jt });
3041
3046
  }, [te]);
3042
3047
  Se(() => {
3043
3048
  be.current || z();
3044
- }, [C, pe, Ie, $e, re?.left, re?.top, he, B, Le, Ge, Vt, Xt, R, Ht]);
3049
+ }, [C, pe, Ie, $e, re?.left, re?.top, he, B, Le, Ge, Ht, Jt, R, Pt]);
3045
3050
  let Eo = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
3046
3051
  y || (Eo = { ...Eo, ...S });
3047
- const Kl = Ce(() => {
3052
+ const Yl = Ce(() => {
3048
3053
  const Q = n.getStyles().getTheme(), Ee = Q.getColorScheme(), ze = Q.getFontScheme();
3049
3054
  return { "--sxl-doc-color-dk1": Ee.getDk1().toCSS(he.darkMode), "--sxl-doc-color-dk2": Ee.getDk2().toCSS(he.darkMode), "--sxl-doc-color-lt1": Ee.getLt1().toCSS(he.darkMode), "--sxl-doc-color-lt2": Ee.getLt2().toCSS(he.darkMode), "--sxl-doc-color-accent1": Ee.getAccent1().toCSS(he.darkMode), "--sxl-doc-color-accent2": Ee.getAccent2().toCSS(he.darkMode), "--sxl-doc-color-accent3": Ee.getAccent3().toCSS(he.darkMode), "--sxl-doc-color-accent4": Ee.getAccent4().toCSS(he.darkMode), "--sxl-doc-color-accent5": Ee.getAccent5().toCSS(he.darkMode), "--sxl-doc-color-accent6": Ee.getAccent6().toCSS(he.darkMode), "--sxl-doc-color-hlink": Ee.getHlink().toCSS(he.darkMode), "--sxl-doc-color-fol-hlink": Ee.getFolHlink().toCSS(he.darkMode), "--sxl-doc-font-major": ze.getMajorFont(), "--sxl-doc-font-minor": ze.getMinorFont() };
3050
3055
  }, [n.getStyles().getTheme()]);
@@ -3054,26 +3059,26 @@ const ed = ft(wt((e, t) => {
3054
3059
  K(!0), q?.(Q);
3055
3060
  }, onBlur: (Q) => {
3056
3061
  K(!1), v?.(Q);
3057
- }, ref: Gt, ...W, children: p("div", { className: Bt("sheetxl-sheet", Oi), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Kl }, children: Je("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [Dn, oo, Je("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [ro, Je("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, backgroundColor: he.fill }, ref: A, onContextMenu: to, children: [Zl, mt, p(Hi, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: we?.selection?.strokeFill, colorCredits: we?.body?.text?.fill })] })] })] }) }) });
3062
+ }, ref: jt, ...W, children: p("div", { className: Vt("sheetxl-sheet", Bi), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Yl }, children: Je("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [mn, ro, Je("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Gl, Je("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${De.edgeStrokeWidth}px ${De.edgeStrokeFill}`, backgroundColor: he.fill }, ref: A, onContextMenu: St, children: [Kl, oo, p(Pi, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: we?.selection?.strokeFill, colorCredits: we?.body?.text?.fill })] })] })] }) }) });
3058
3063
  if (y) {
3059
3064
  const Q = (Ee) => p(ml, { ...Ee, sheet: n });
3060
- Ao = p(si, { style: { flex: "1 1 100%", overflow: "hidden", background: `${De.fill}`, minHeight: 2 * ut.height, minWidth: 2 * ut.width, ...S }, viewport: h, touchElement: me.current?.stage, disableTouch: Ft, onScrollViewport: (Ee) => {
3065
+ Ao = p(di, { style: { flex: "1 1 100%", overflow: "hidden", background: `${De.fill}`, minHeight: 2 * ut.height, minWidth: 2 * ut.width, ...S }, viewport: h, touchElement: me.current?.stage, disableTouch: Ft, onScrollViewport: (Ee) => {
3061
3066
  me.current?.scrollTo(Ee);
3062
3067
  }, createHorizontalScrollbar: Q, createVerticalScrollbar: Q, ...d, children: Ao });
3063
3068
  }
3064
3069
  Se(() => {
3065
- be.current = !1, z?.(), N && Gt.current?.focus();
3070
+ be.current = !1, z?.(), N && jt.current?.focus();
3066
3071
  }, [n]);
3067
- const [Io, Yl] = ue(!1), ur = ie(() => {
3068
- Io || Yl(!0);
3072
+ const [Io, Xl] = ue(!1), ur = ie(() => {
3073
+ Io || Xl(!0);
3069
3074
  }, [Io]);
3070
3075
  return Se(() => {
3071
3076
  if (cr) return typeof w == "function" && w(), it.detectIt().primaryInput === "touch" && ur(), () => {
3072
3077
  };
3073
3078
  }, [w, cr, Io]), Ao;
3074
3079
  }));
3075
- ya.displayName = "SheetElement";
3076
- const td = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), zr = "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=", ba = ft(wt((e, t) => {
3080
+ ba.displayName = "SheetElement";
3081
+ const nd = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), zr = "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=", qa = ft(wt((e, t) => {
3077
3082
  const { children: n, disabled: r, style: l, picture: o, description: i, isDragging: c, view: g, onHide: s, onShow: y, onKeyDownCapture: d, onFocus: u, onBlur: k, loadingPanel: b, ...D } = e, [E, G] = ue(!1), [H, w] = ue(null), [L, q] = ue(null), [v, S] = ue(null);
3078
3083
  Se(() => {
3079
3084
  q(null), o.getDetails().then((M) => {
@@ -3082,7 +3087,7 @@ const td = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStr
3082
3087
  console.warn(M), G(!0), q(zr), S(null);
3083
3088
  });
3084
3089
  }, [o]);
3085
- const F = jt(t, () => ({ isPictureEditor: () => !0 }), []), T = Ce(() => {
3090
+ const F = _t(t, () => ({ isPictureEditor: () => !0 }), []), T = Ce(() => {
3086
3091
  if (L || v) return p("img", { style: { flex: "1", width: "100%", height: "100%", border: E ? "var(--sxl-app-color-grey, grey) solid 1px" : void 0, backgroundColor: E ? "var(--sxl-app-color-background, white)" : void 0, boxShadow: E ? "0px 0px 3px var(--sxl-app-color-error, red)" : void 0, objectFit: E ? "contain" : void 0, opacity: H ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: !1, src: L, onLoad: () => {
3087
3092
  w(!0);
3088
3093
  }, onError: ({ currentTarget: M }) => {
@@ -3093,19 +3098,19 @@ const td = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStr
3093
3098
  d?.(M);
3094
3099
  }, ref: F, children: [H || E ? void 0 : b, T] });
3095
3100
  }));
3096
- ba.displayName = "PictureEditor";
3097
- const nd = ft(wt((e, t) => {
3101
+ qa.displayName = "PictureEditor";
3102
+ const od = ft(wt((e, t) => {
3098
3103
  const { children: n, disabled: r, chart: l, view: o, isDragging: i, onHide: c, onShow: g, ...s } = e;
3099
3104
  Se(() => {
3100
3105
  }, [l]);
3101
- const y = jt(t, () => ({ isChartEditor: () => !0 }), []), [d, { height: u, width: k }] = sn();
3102
- if (!l.isClosed()) return p("div", { ...s, ref: Sn([y, d]), children: p("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: o.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: r ? "blur(1px)" : void 0, boxShadow: i ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: p("div", { style: { textAlign: "center" }, children: l.getDescription() }) }) });
3103
- })), qa = "_editable-input_1bqx6_6", Ca = (e) => p("input", { ...e }), Sa = ft(wt((e, t) => {
3104
- const { style: n = {}, className: r, value: l = "", onSubmit: o, onChange: i, onCancel: c, createInput: g = Ca, notifier: s, styleHover: y = {}, dragging: d, maxLength: u, disabled: k = !1, readOnly: b = !1, ...D } = e, [E, G] = ue(!1), [H, w] = ue(!1), [L, q] = ue(l);
3106
+ const y = _t(t, () => ({ isChartEditor: () => !0 }), []), [d, { height: u, width: k }] = dn();
3107
+ if (!l.isClosed()) return p("div", { ...s, ref: kn([y, d]), children: p("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: o.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: r ? "blur(1px)" : void 0, boxShadow: i ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: p("div", { style: { textAlign: "center" }, children: l.getDescription() }) }) });
3108
+ })), Ca = "_editable-input_1bqx6_6", Sa = (e) => p("input", { ...e }), xa = ft(wt((e, t) => {
3109
+ const { style: n = {}, className: r, value: l = "", onSubmit: o, onChange: i, onCancel: c, createInput: g = Sa, notifier: s, styleHover: y = {}, dragging: d, maxLength: u, disabled: k = !1, readOnly: b = !1, ...D } = e, [E, G] = ue(!1), [H, w] = ue(!1), [L, q] = ue(l);
3105
3110
  Se(() => {
3106
3111
  q(l);
3107
3112
  }, [l]);
3108
- const v = Me(null), [S, F] = ue(null), T = Xe(function(te) {
3113
+ const v = Re(null), [S, F] = ue(null), T = Xe(function(te) {
3109
3114
  const z = te.message;
3110
3115
  S !== z && (s?.showMessage?.(z, { type: tr.Error }), F(z));
3111
3116
  }, [s, S]), M = Xe((te) => {
@@ -3122,7 +3127,7 @@ const nd = ft(wt((e, t) => {
3122
3127
  q(l), v.current = null, w(!1), c?.();
3123
3128
  }, [c, l]), U = Ce(() => {
3124
3129
  if (!H) return null;
3125
- const te = { className: Bt(qa), autoFocus: !0, spellCheck: !1, name: "editable-label", autoComplete: "off", maxLength: u, type: "text", value: L, onFocus: (z) => {
3130
+ const te = { className: Vt(Ca), autoFocus: !0, spellCheck: !1, name: "editable-label", autoComplete: "off", maxLength: u, type: "text", value: L, onFocus: (z) => {
3126
3131
  v.current || (v.current = z.target, setTimeout(() => {
3127
3132
  z.target?.select();
3128
3133
  }, 0));
@@ -3131,24 +3136,24 @@ const nd = ft(wt((e, t) => {
3131
3136
  }, onChange: (z) => {
3132
3137
  H && q(z.target.value);
3133
3138
  }, onMouseDown: (z) => z.stopPropagation(), onKeyDown: (z) => z.code === "Escape" ? (z.preventDefault(), void j()) : z.code === "Enter" ? (z.preventDefault(), void M(z.target.value)) : void (z.code !== "Tab" ? z.stopPropagation() : M(z.target.value)) };
3134
- return p(qn, { children: g(te) });
3139
+ return p(Sn, { children: g(te) });
3135
3140
  }, [H, L, M, j, g, k]), [B, O] = ue();
3136
- Ot(() => {
3141
+ Bt(() => {
3137
3142
  let te = Object.assign({}, n);
3138
3143
  (d || E) && (te = Object.assign(te, y)), O(te);
3139
3144
  }, [d, E, y, n]), Se(() => {
3140
3145
  U && i?.(L);
3141
3146
  }, [U, i, L]);
3142
- const W = jt(t, () => ({ startEdit() {
3147
+ const W = _t(t, () => ({ startEdit() {
3143
3148
  k || b || w(!0);
3144
3149
  }, cancel() {
3145
3150
  j();
3146
3151
  } }), []);
3147
- return Je("div", { ...D, ref: W, style: { flexDirection: "column", display: "flex", ...B }, className: Bt(r), children: [Je("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
3152
+ return Je("div", { ...D, ref: W, style: { flexDirection: "column", display: "flex", ...B }, className: Vt(r), children: [Je("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
3148
3153
  k || b || w(!0);
3149
3154
  }, onMouseEnter: () => G(!0), onMouseLeave: () => G(!1), children: [p("div", { className: "editable-label-container", style: { textAlign: "center", display: "flex", minHeight: "1em", marginTop: "2px", opacity: H ? 0 : 1 }, children: L }), U] }), p("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...y }, children: L })] });
3150
3155
  })), So = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
3151
- function xn(e) {
3156
+ function Rn(e) {
3152
3157
  const t = Object.prototype.toString.call(e);
3153
3158
  return t === "[object Window]" || t === "[object global]";
3154
3159
  }
@@ -3157,59 +3162,59 @@ function nr(e) {
3157
3162
  }
3158
3163
  function zt(e) {
3159
3164
  var t, n;
3160
- return e ? xn(e) ? e : nr(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
3165
+ return e ? Rn(e) ? e : nr(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
3161
3166
  }
3162
3167
  function or(e) {
3163
3168
  const { Document: t } = zt(e);
3164
3169
  return e instanceof t;
3165
3170
  }
3166
- function Yn(e) {
3167
- return !xn(e) && e instanceof zt(e).HTMLElement;
3171
+ function Jn(e) {
3172
+ return !Rn(e) && e instanceof zt(e).HTMLElement;
3168
3173
  }
3169
3174
  function vl(e) {
3170
3175
  return e instanceof zt(e).SVGElement;
3171
3176
  }
3172
- function bn(e) {
3173
- return e ? xn(e) ? e.document : nr(e) ? or(e) ? e : Yn(e) || vl(e) ? e.ownerDocument : document : document : document;
3177
+ function Cn(e) {
3178
+ return e ? Rn(e) ? e.document : nr(e) ? or(e) ? e : Jn(e) || vl(e) ? e.ownerDocument : document : document : document;
3174
3179
  }
3175
- const $t = So ? Ot : Se;
3180
+ const Ut = So ? Bt : Se;
3176
3181
  function xo(e) {
3177
- const t = Me(e);
3178
- return $t(() => {
3182
+ const t = Re(e);
3183
+ return Ut(() => {
3179
3184
  t.current = e;
3180
3185
  }), Xe(function() {
3181
3186
  for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++) r[l] = arguments[l];
3182
3187
  return t.current == null ? void 0 : t.current(...r);
3183
3188
  }, []);
3184
3189
  }
3185
- function _n(e, t) {
3190
+ function Kn(e, t) {
3186
3191
  t === void 0 && (t = [e]);
3187
- const n = Me(e);
3188
- return $t(() => {
3192
+ const n = Re(e);
3193
+ return Ut(() => {
3189
3194
  n.current !== e && (n.current = e);
3190
3195
  }, t), n;
3191
3196
  }
3192
- function Hn(e, t) {
3193
- const n = Me();
3197
+ function Wn(e, t) {
3198
+ const n = Re();
3194
3199
  return Ce(() => {
3195
3200
  const r = e(n.current);
3196
3201
  return n.current = r, r;
3197
3202
  }, [...t]);
3198
3203
  }
3199
3204
  function po(e) {
3200
- const t = xo(e), n = Me(null), r = Xe((l) => {
3205
+ const t = xo(e), n = Re(null), r = Xe((l) => {
3201
3206
  l !== n.current && t?.(l, n.current), n.current = l;
3202
3207
  }, []);
3203
3208
  return [n, r];
3204
3209
  }
3205
3210
  function fo(e) {
3206
- const t = Me();
3211
+ const t = Re();
3207
3212
  return Se(() => {
3208
3213
  t.current = e;
3209
3214
  }, [e]), t.current;
3210
3215
  }
3211
3216
  let Po = {};
3212
- function Xn(e, t) {
3217
+ function Qn(e, t) {
3213
3218
  return Ce(() => {
3214
3219
  if (t) return t;
3215
3220
  const n = Po[e] == null ? 0 : Po[e] + 1;
@@ -3229,7 +3234,7 @@ function wl(e) {
3229
3234
  }, { ...t });
3230
3235
  };
3231
3236
  }
3232
- const yn = wl(1), Zn = wl(-1);
3237
+ const qn = wl(1), Yn = wl(-1);
3233
3238
  function ko(e) {
3234
3239
  if (!e) return !1;
3235
3240
  const { KeyboardEvent: t } = zt(e.target);
@@ -3254,7 +3259,7 @@ function vo(e) {
3254
3259
  return "clientX" in t && "clientY" in t;
3255
3260
  }(e) ? { x: e.clientX, y: e.clientY } : null;
3256
3261
  }
3257
- const dn = Object.freeze({ Translate: { toString(e) {
3262
+ const cn = Object.freeze({ Translate: { toString(e) {
3258
3263
  if (!e) return;
3259
3264
  const { x: t, y: n } = e;
3260
3265
  return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
@@ -3263,28 +3268,28 @@ const dn = Object.freeze({ Translate: { toString(e) {
3263
3268
  const { scaleX: t, scaleY: n } = e;
3264
3269
  return "scaleX(" + t + ") scaleY(" + n + ")";
3265
3270
  } }, Transform: { toString(e) {
3266
- if (e) return [dn.Translate.toString(e), dn.Scale.toString(e)].join(" ");
3271
+ if (e) return [cn.Translate.toString(e), cn.Scale.toString(e)].join(" ");
3267
3272
  } }, Transition: { toString(e) {
3268
3273
  let { property: t, duration: n, easing: r } = e;
3269
3274
  return t + " " + n + "ms " + r;
3270
3275
  } } }), Fr = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
3271
- function xa(e) {
3276
+ function ka(e) {
3272
3277
  return e.matches(Fr) ? e : e.querySelector(Fr);
3273
3278
  }
3274
- const ka = { display: "none" };
3275
- function Ra(e) {
3279
+ const Ra = { display: "none" };
3280
+ function Ta(e) {
3276
3281
  let { id: t, value: n } = e;
3277
- return tt.createElement("div", { id: t, style: ka }, n);
3282
+ return tt.createElement("div", { id: t, style: Ra }, n);
3278
3283
  }
3279
- function Ta(e) {
3284
+ function Ma(e) {
3280
3285
  let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
3281
3286
  return tt.createElement("div", { id: t, style: { position: "fixed", top: 0, left: 0, width: 1, height: 1, margin: -1, border: 0, padding: 0, overflow: "hidden", clip: "rect(0 0 0 0)", clipPath: "inset(100%)", whiteSpace: "nowrap" }, role: "status", "aria-live": r, "aria-atomic": !0 }, n);
3282
3287
  }
3283
- const yl = Cn(null), Ma = { draggable: `
3288
+ const yl = xn(null), Da = { draggable: `
3284
3289
  To pick up a draggable item, press the space bar.
3285
3290
  While dragging, use the arrow keys to move the item.
3286
3291
  Press space again to drop the item in its new position, or press escape to cancel.
3287
- ` }, Da = { onDragStart(e) {
3292
+ ` }, Ea = { onDragStart(e) {
3288
3293
  let { active: t } = e;
3289
3294
  return "Picked up draggable item " + t.id + ".";
3290
3295
  }, onDragOver(e) {
@@ -3297,18 +3302,18 @@ const yl = Cn(null), Ma = { draggable: `
3297
3302
  let { active: t } = e;
3298
3303
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
3299
3304
  } };
3300
- function Ea(e) {
3301
- let { announcements: t = Da, container: n, hiddenTextDescribedById: r, screenReaderInstructions: l = Ma } = e;
3305
+ function Aa(e) {
3306
+ let { announcements: t = Ea, container: n, hiddenTextDescribedById: r, screenReaderInstructions: l = Da } = e;
3302
3307
  const { announce: o, announcement: i } = function() {
3303
3308
  const [d, u] = ue("");
3304
3309
  return { announce: Xe((k) => {
3305
3310
  k != null && u(k);
3306
3311
  }, []), announcement: d };
3307
- }(), c = Xn("DndLiveRegion"), [g, s] = ue(!1);
3312
+ }(), c = Qn("DndLiveRegion"), [g, s] = ue(!1);
3308
3313
  if (Se(() => {
3309
3314
  s(!0);
3310
3315
  }, []), function(d) {
3311
- const u = Yt(yl);
3316
+ const u = Xt(yl);
3312
3317
  Se(() => {
3313
3318
  if (!u) throw new Error("useDndMonitor must be used within a children of <DndContext>");
3314
3319
  return u(d);
@@ -3329,7 +3334,7 @@ function Ea(e) {
3329
3334
  let { active: u, over: k } = d;
3330
3335
  o(t.onDragCancel({ active: u, over: k }));
3331
3336
  } }), [o, t])), !g) return null;
3332
- const y = tt.createElement(tt.Fragment, null, tt.createElement(Ra, { id: r, value: l.draggable }), tt.createElement(Ta, { id: c, announcement: i }));
3337
+ const y = tt.createElement(tt.Fragment, null, tt.createElement(Ta, { id: r, value: l.draggable }), tt.createElement(Ma, { id: c, announcement: i }));
3333
3338
  return n ? dl(y, n) : y;
3334
3339
  }
3335
3340
  var kt;
@@ -3341,11 +3346,11 @@ function Wo(e, t) {
3341
3346
  (function(e) {
3342
3347
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
3343
3348
  })(kt || (kt = {}));
3344
- const Ut = Object.freeze({ x: 0, y: 0 });
3349
+ const Gt = Object.freeze({ x: 0, y: 0 });
3345
3350
  function bl(e, t) {
3346
3351
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
3347
3352
  }
3348
- function Aa(e, t) {
3353
+ function Ia(e, t) {
3349
3354
  const n = vo(e);
3350
3355
  return n ? (n.x - t.left) / t.width * 100 + "% " + (n.y - t.top) / t.height * 100 + "%" : "0 0";
3351
3356
  }
@@ -3353,7 +3358,7 @@ function ql(e, t) {
3353
3358
  let { data: { value: n } } = e, { data: { value: r } } = t;
3354
3359
  return n - r;
3355
3360
  }
3356
- function Ia(e, t) {
3361
+ function za(e, t) {
3357
3362
  let { data: { value: n } } = e, { data: { value: r } } = t;
3358
3363
  return r - n;
3359
3364
  }
@@ -3369,7 +3374,7 @@ function Cl(e, t) {
3369
3374
  function Lr(e, t, n) {
3370
3375
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), { x: t + 0.5 * e.width, y: n + 0.5 * e.height };
3371
3376
  }
3372
- const za = (e) => {
3377
+ const Fa = (e) => {
3373
3378
  let { collisionRect: t, droppableRects: n, droppableContainers: r } = e;
3374
3379
  const l = Lr(t, t.left, t.top), o = [];
3375
3380
  for (const i of r) {
@@ -3381,7 +3386,7 @@ const za = (e) => {
3381
3386
  }
3382
3387
  return o.sort(ql);
3383
3388
  };
3384
- function Fa(e, t) {
3389
+ function Na(e, t) {
3385
3390
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), l = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), i = l - r, c = o - n;
3386
3391
  if (r < l && n < o) {
3387
3392
  const g = t.width * t.height, s = e.width * e.height, y = i * c;
@@ -3389,28 +3394,28 @@ function Fa(e, t) {
3389
3394
  }
3390
3395
  return 0;
3391
3396
  }
3392
- const Na = (e) => {
3397
+ const La = (e) => {
3393
3398
  let { collisionRect: t, droppableRects: n, droppableContainers: r } = e;
3394
3399
  const l = [];
3395
3400
  for (const o of r) {
3396
3401
  const { id: i } = o, c = n.get(i);
3397
3402
  if (c) {
3398
- const g = Fa(c, t);
3403
+ const g = Na(c, t);
3399
3404
  g > 0 && l.push({ id: i, data: { droppableContainer: o, value: g } });
3400
3405
  }
3401
3406
  }
3402
- return l.sort(Ia);
3407
+ return l.sort(za);
3403
3408
  };
3404
3409
  function Or(e, t) {
3405
- return e && t ? { x: e.left - t.left, y: e.top - t.top } : Ut;
3410
+ return e && t ? { x: e.left - t.left, y: e.top - t.top } : Gt;
3406
3411
  }
3407
- function La(e) {
3412
+ function Oa(e) {
3408
3413
  return function(t) {
3409
3414
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++) r[l - 1] = arguments[l];
3410
3415
  return r.reduce((o, i) => ({ ...o, top: o.top + e * i.y, bottom: o.bottom + e * i.y, left: o.left + e * i.x, right: o.right + e * i.x }), { ...t });
3411
3416
  };
3412
3417
  }
3413
- const Oa = La(1);
3418
+ const Ba = Oa(1);
3414
3419
  function Sl(e) {
3415
3420
  if (e.startsWith("matrix3d(")) {
3416
3421
  const t = e.slice(9, -1).split(/, /);
@@ -3422,9 +3427,9 @@ function Sl(e) {
3422
3427
  }
3423
3428
  return null;
3424
3429
  }
3425
- const Ba = { ignoreTransform: !1 };
3426
- function kn(e, t) {
3427
- t === void 0 && (t = Ba);
3430
+ const Va = { ignoreTransform: !1 };
3431
+ function Tn(e, t) {
3432
+ t === void 0 && (t = Va);
3428
3433
  let n = e.getBoundingClientRect();
3429
3434
  if (t.ignoreTransform) {
3430
3435
  const { transform: s, transformOrigin: y } = zt(e).getComputedStyle(e);
@@ -3439,14 +3444,14 @@ function kn(e, t) {
3439
3444
  return { top: r, left: l, width: o, height: i, bottom: c, right: g };
3440
3445
  }
3441
3446
  function Br(e) {
3442
- return kn(e, { ignoreTransform: !0 });
3447
+ return Tn(e, { ignoreTransform: !0 });
3443
3448
  }
3444
3449
  function Ro(e, t) {
3445
3450
  const n = [];
3446
3451
  return e ? function r(l) {
3447
3452
  if (t != null && n.length >= t || !l) return n;
3448
3453
  if (or(l) && l.scrollingElement != null && !n.includes(l.scrollingElement)) return n.push(l.scrollingElement), n;
3449
- if (!Yn(l) || vl(l) || n.includes(l)) return n;
3454
+ if (!Jn(l) || vl(l) || n.includes(l)) return n;
3450
3455
  const o = zt(e).getComputedStyle(l);
3451
3456
  return l !== e && function(i, c) {
3452
3457
  c === void 0 && (c = zt(i).getComputedStyle(i));
@@ -3465,13 +3470,13 @@ function xl(e) {
3465
3470
  return t ?? null;
3466
3471
  }
3467
3472
  function $o(e) {
3468
- return So && e ? xn(e) ? e : nr(e) ? or(e) || e === bn(e).scrollingElement ? window : Yn(e) ? e : null : null : null;
3473
+ return So && e ? Rn(e) ? e : nr(e) ? or(e) || e === Cn(e).scrollingElement ? window : Jn(e) ? e : null : null : null;
3469
3474
  }
3470
3475
  function kl(e) {
3471
- return xn(e) ? e.scrollX : e.scrollLeft;
3476
+ return Rn(e) ? e.scrollX : e.scrollLeft;
3472
3477
  }
3473
3478
  function Rl(e) {
3474
- return xn(e) ? e.scrollY : e.scrollTop;
3479
+ return Rn(e) ? e.scrollY : e.scrollTop;
3475
3480
  }
3476
3481
  function Zo(e) {
3477
3482
  return { x: kl(e), y: Rl(e) };
@@ -3487,14 +3492,14 @@ function Ml(e) {
3487
3492
  (function(e) {
3488
3493
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
3489
3494
  })(Tt || (Tt = {}));
3490
- const Va = { x: 0.2, y: 0.2 };
3491
- function Ha(e, t, n, r, l) {
3495
+ const Ha = { x: 0.2, y: 0.2 };
3496
+ function Pa(e, t, n, r, l) {
3492
3497
  let { top: o, left: i, right: c, bottom: g } = n;
3493
- r === void 0 && (r = 10), l === void 0 && (l = Va);
3498
+ r === void 0 && (r = 10), l === void 0 && (l = Ha);
3494
3499
  const { isTop: s, isBottom: y, isLeft: d, isRight: u } = Ml(e), k = { x: 0, y: 0 }, b = { x: 0, y: 0 }, D = t.height * l.y, E = t.width * l.x;
3495
3500
  return !s && o <= t.top + D ? (k.y = Tt.Backward, b.y = r * Math.abs((t.top + D - o) / D)) : !y && g >= t.bottom - D && (k.y = Tt.Forward, b.y = r * Math.abs((t.bottom - D - g) / D)), !u && c >= t.right - E ? (k.x = Tt.Forward, b.x = r * Math.abs((t.right - E - c) / E)) : !d && i <= t.left + E && (k.x = Tt.Backward, b.x = r * Math.abs((t.left + E - i) / E)), { direction: k, speed: b };
3496
3501
  }
3497
- function Pa(e) {
3502
+ function Wa(e) {
3498
3503
  if (e === document.scrollingElement) {
3499
3504
  const { innerWidth: o, innerHeight: i } = window;
3500
3505
  return { top: 0, left: 0, right: o, bottom: i, width: o, height: i };
@@ -3503,14 +3508,14 @@ function Pa(e) {
3503
3508
  return { top: t, left: n, right: r, bottom: l, width: e.clientWidth, height: e.clientHeight };
3504
3509
  }
3505
3510
  function Dl(e) {
3506
- return e.reduce((t, n) => yn(t, Zo(n)), Ut);
3511
+ return e.reduce((t, n) => qn(t, Zo(n)), Gt);
3507
3512
  }
3508
3513
  function El(e, t) {
3509
- if (t === void 0 && (t = kn), !e) return;
3514
+ if (t === void 0 && (t = Tn), !e) return;
3510
3515
  const { top: n, left: r, bottom: l, right: o } = t(e);
3511
3516
  xl(e) && (l <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({ block: "center", inline: "center" });
3512
3517
  }
3513
- const Wa = [["x", ["left", "right"], function(e) {
3518
+ const $a = [["x", ["left", "right"], function(e) {
3514
3519
  return e.reduce((t, n) => t + kl(n), 0);
3515
3520
  }], ["y", ["top", "bottom"], function(e) {
3516
3521
  return e.reduce((t, n) => t + Rl(n), 0);
@@ -3520,14 +3525,14 @@ class Ko {
3520
3525
  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;
3521
3526
  const r = Ro(n), l = Dl(r);
3522
3527
  this.rect = { ...t }, this.width = t.width, this.height = t.height;
3523
- for (const [o, i, c] of Wa) for (const g of i) Object.defineProperty(this, g, { get: () => {
3528
+ for (const [o, i, c] of $a) for (const g of i) Object.defineProperty(this, g, { get: () => {
3524
3529
  const s = c(r), y = l[o] - s;
3525
3530
  return this.rect[g] + y;
3526
3531
  }, enumerable: !0 });
3527
3532
  Object.defineProperty(this, "rect", { enumerable: !1 });
3528
3533
  }
3529
3534
  }
3530
- class Pn {
3535
+ class $n {
3531
3536
  constructor(t) {
3532
3537
  this.target = void 0, this.listeners = [], this.removeAll = () => {
3533
3538
  this.listeners.forEach((n) => {
@@ -3545,19 +3550,19 @@ function Uo(e, t) {
3545
3550
  const n = Math.abs(e.x), r = Math.abs(e.y);
3546
3551
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t && r > t.y;
3547
3552
  }
3548
- var Pt, st;
3553
+ var Wt, st;
3549
3554
  function Vr(e) {
3550
3555
  e.preventDefault();
3551
3556
  }
3552
- function $a(e) {
3557
+ function Ua(e) {
3553
3558
  e.stopPropagation();
3554
3559
  }
3555
3560
  (function(e) {
3556
3561
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
3557
- })(Pt || (Pt = {})), function(e) {
3562
+ })(Wt || (Wt = {})), function(e) {
3558
3563
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
3559
3564
  }(st || (st = {}));
3560
- const Al = { start: [st.Space, st.Enter], cancel: [st.Esc], end: [st.Space, st.Enter, st.Tab] }, Ua = (e, t) => {
3565
+ const Al = { start: [st.Space, st.Enter], cancel: [st.Esc], end: [st.Space, st.Enter, st.Tab] }, Ga = (e, t) => {
3561
3566
  let { currentCoordinates: n } = t;
3562
3567
  switch (e.code) {
3563
3568
  case st.Right:
@@ -3574,27 +3579,27 @@ class rr {
3574
3579
  constructor(t) {
3575
3580
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
3576
3581
  const { event: { target: n } } = t;
3577
- this.props = t, this.listeners = new Pn(bn(n)), this.windowListeners = new Pn(zt(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
3582
+ this.props = t, this.listeners = new $n(Cn(n)), this.windowListeners = new $n(zt(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
3578
3583
  }
3579
3584
  attach() {
3580
- this.handleStart(), this.windowListeners.add(Pt.Resize, this.handleCancel), this.windowListeners.add(Pt.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Pt.Keydown, this.handleKeyDown));
3585
+ this.handleStart(), this.windowListeners.add(Wt.Resize, this.handleCancel), this.windowListeners.add(Wt.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Wt.Keydown, this.handleKeyDown));
3581
3586
  }
3582
3587
  handleStart() {
3583
3588
  const { activeNode: t, onStart: n } = this.props, r = t.node.current;
3584
- r && El(r), n(Ut);
3589
+ r && El(r), n(Gt);
3585
3590
  }
3586
3591
  handleKeyDown(t) {
3587
3592
  if (ko(t)) {
3588
- const { active: n, context: r, options: l } = this.props, { keyboardCodes: o = Al, coordinateGetter: i = Ua, scrollBehavior: c = "smooth" } = l, { code: g } = t;
3593
+ const { active: n, context: r, options: l } = this.props, { keyboardCodes: o = Al, coordinateGetter: i = Ga, scrollBehavior: c = "smooth" } = l, { code: g } = t;
3589
3594
  if (o.end.includes(g)) return void this.handleEnd(t);
3590
3595
  if (o.cancel.includes(g)) return void this.handleCancel(t);
3591
- const { collisionRect: s } = r.current, y = s ? { x: s.left, y: s.top } : Ut;
3596
+ const { collisionRect: s } = r.current, y = s ? { x: s.left, y: s.top } : Gt;
3592
3597
  this.referenceCoordinates || (this.referenceCoordinates = y);
3593
3598
  const d = i(t, { active: n, context: r.current, currentCoordinates: y });
3594
3599
  if (d) {
3595
- const u = Zn(d, y), k = { x: 0, y: 0 }, { scrollableAncestors: b } = r.current;
3600
+ const u = Yn(d, y), k = { x: 0, y: 0 }, { scrollableAncestors: b } = r.current;
3596
3601
  for (const D of b) {
3597
- const E = t.code, { isTop: G, isRight: H, isLeft: w, isBottom: L, maxScroll: q, minScroll: v } = Ml(D), S = Pa(D), F = { x: Math.min(E === st.Right ? S.right - S.width / 2 : S.right, Math.max(E === st.Right ? S.left : S.left + S.width / 2, d.x)), y: Math.min(E === st.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(E === st.Down ? S.top : S.top + S.height / 2, d.y)) }, T = E === st.Right && !H || E === st.Left && !w, M = E === st.Down && !L || E === st.Up && !G;
3602
+ const E = t.code, { isTop: G, isRight: H, isLeft: w, isBottom: L, maxScroll: q, minScroll: v } = Ml(D), S = Wa(D), F = { x: Math.min(E === st.Right ? S.right - S.width / 2 : S.right, Math.max(E === st.Right ? S.left : S.left + S.width / 2, d.x)), y: Math.min(E === st.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(E === st.Down ? S.top : S.top + S.height / 2, d.y)) }, T = E === st.Right && !H || E === st.Left && !w, M = E === st.Down && !L || E === st.Up && !G;
3598
3603
  if (T && F.x !== d.x) {
3599
3604
  const j = D.scrollLeft + u.x, U = E === st.Right && j <= q.x || E === st.Left && j >= v.x;
3600
3605
  if (U && !u.y) return void D.scrollTo({ left: j, behavior: c });
@@ -3608,7 +3613,7 @@ class rr {
3608
3613
  break;
3609
3614
  }
3610
3615
  }
3611
- this.handleMove(t, yn(Zn(d, this.referenceCoordinates), k));
3616
+ this.handleMove(t, qn(Yn(d, this.referenceCoordinates), k));
3612
3617
  }
3613
3618
  }
3614
3619
  }
@@ -3648,14 +3653,14 @@ class lr {
3648
3653
  var l;
3649
3654
  r === void 0 && (r = function(c) {
3650
3655
  const { EventTarget: g } = zt(c);
3651
- return c instanceof g ? c : bn(c);
3656
+ return c instanceof g ? c : Cn(c);
3652
3657
  }(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;
3653
3658
  const { event: o } = t, { target: i } = o;
3654
- this.props = t, this.events = n, this.document = bn(i), this.documentListeners = new Pn(this.document), this.listeners = new Pn(r), this.windowListeners = new Pn(zt(i)), this.initialCoordinates = (l = vo(o)) != null ? l : Ut, 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();
3659
+ this.props = t, this.events = n, this.document = Cn(i), this.documentListeners = new $n(this.document), this.listeners = new $n(r), this.windowListeners = new $n(zt(i)), this.initialCoordinates = (l = vo(o)) != null ? l : Gt, 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();
3655
3660
  }
3656
3661
  attach() {
3657
3662
  const { events: t, props: { options: { activationConstraint: n, bypassActivationConstraint: r } } } = this;
3658
- 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(Pt.Resize, this.handleCancel), this.windowListeners.add(Pt.DragStart, Vr), this.windowListeners.add(Pt.VisibilityChange, this.handleCancel), this.windowListeners.add(Pt.ContextMenu, Vr), this.documentListeners.add(Pt.Keydown, this.handleKeydown), n) {
3663
+ 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(Wt.Resize, this.handleCancel), this.windowListeners.add(Wt.DragStart, Vr), this.windowListeners.add(Wt.VisibilityChange, this.handleCancel), this.windowListeners.add(Wt.ContextMenu, Vr), this.documentListeners.add(Wt.Keydown, this.handleKeydown), n) {
3659
3664
  if (r != null && r({ event: this.props.event, activeNode: this.props.activeNode, options: this.props.options })) return this.handleStart();
3660
3665
  if (Pr(n)) return this.timeoutId = setTimeout(this.handleStart, n.delay), void this.handlePending(n);
3661
3666
  if (Hr(n)) return void this.handlePending(n);
@@ -3671,13 +3676,13 @@ class lr {
3671
3676
  }
3672
3677
  handleStart() {
3673
3678
  const { initialCoordinates: t } = this, { onStart: n } = this.props;
3674
- t && (this.activated = !0, this.documentListeners.add(Pt.Click, $a, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Pt.SelectionChange, this.removeTextSelection), n(t));
3679
+ t && (this.activated = !0, this.documentListeners.add(Wt.Click, Ua, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Wt.SelectionChange, this.removeTextSelection), n(t));
3675
3680
  }
3676
3681
  handleMove(t) {
3677
3682
  var n;
3678
3683
  const { activated: r, initialCoordinates: l, props: o } = this, { onMove: i, options: { activationConstraint: c } } = o;
3679
3684
  if (!l) return;
3680
- const g = (n = vo(t)) != null ? n : Ut, s = Zn(l, g);
3685
+ const g = (n = vo(t)) != null ? n : Gt, s = Yn(l, g);
3681
3686
  if (!r && c) {
3682
3687
  if (Hr(c)) {
3683
3688
  if (c.tolerance != null && Uo(s, c.tolerance)) return this.handleCancel();
@@ -3703,25 +3708,25 @@ class lr {
3703
3708
  (t = this.document.getSelection()) == null || t.removeAllRanges();
3704
3709
  }
3705
3710
  }
3706
- const Ga = { cancel: { name: "pointercancel" }, move: { name: "pointermove" }, end: { name: "pointerup" } };
3711
+ const ja = { cancel: { name: "pointercancel" }, move: { name: "pointermove" }, end: { name: "pointerup" } };
3707
3712
  class Il extends lr {
3708
3713
  constructor(t) {
3709
- const { event: n } = t, r = bn(n.target);
3710
- super(t, Ga, r);
3714
+ const { event: n } = t, r = Cn(n.target);
3715
+ super(t, ja, r);
3711
3716
  }
3712
3717
  }
3713
3718
  Il.activators = [{ eventName: "onPointerDown", handler: (e, t) => {
3714
3719
  let { nativeEvent: n } = e, { onActivation: r } = t;
3715
3720
  return !(!n.isPrimary || n.button !== 0) && (r?.({ event: n }), !0);
3716
3721
  } }];
3717
- const ja = { move: { name: "mousemove" }, end: { name: "mouseup" } };
3722
+ const _a = { move: { name: "mousemove" }, end: { name: "mouseup" } };
3718
3723
  var Yo;
3719
3724
  (function(e) {
3720
3725
  e[e.RightClick = 2] = "RightClick";
3721
3726
  })(Yo || (Yo = {}));
3722
3727
  class zl extends lr {
3723
3728
  constructor(t) {
3724
- super(t, ja, bn(t.event.target));
3729
+ super(t, _a, Cn(t.event.target));
3725
3730
  }
3726
3731
  }
3727
3732
  zl.activators = [{ eventName: "onMouseDown", handler: (e, t) => {
@@ -3741,32 +3746,32 @@ class Fl extends lr {
3741
3746
  }
3742
3747
  }
3743
3748
  }
3744
- var Wn, yo;
3745
- function _a(e) {
3746
- let { acceleration: t, activator: n = Wn.Pointer, canScroll: r, draggingRect: l, enabled: o, interval: i = 5, order: c = yo.TreeOrder, pointerCoordinates: g, scrollableAncestors: s, scrollableAncestorRects: y, delta: d, threshold: u } = e;
3749
+ var Un, yo;
3750
+ function Za(e) {
3751
+ let { acceleration: t, activator: n = Un.Pointer, canScroll: r, draggingRect: l, enabled: o, interval: i = 5, order: c = yo.TreeOrder, pointerCoordinates: g, scrollableAncestors: s, scrollableAncestorRects: y, delta: d, threshold: u } = e;
3747
3752
  const k = function(v) {
3748
3753
  let { delta: S, disabled: F } = v;
3749
3754
  const T = fo(S);
3750
- return Hn((M) => {
3751
- if (F || !T || !M) return Za;
3755
+ return Wn((M) => {
3756
+ if (F || !T || !M) return Ka;
3752
3757
  const j = { x: Math.sign(S.x - T.x), y: Math.sign(S.y - T.y) };
3753
3758
  return { x: { [Tt.Backward]: M.x[Tt.Backward] || j.x === -1, [Tt.Forward]: M.x[Tt.Forward] || j.x === 1 }, y: { [Tt.Backward]: M.y[Tt.Backward] || j.y === -1, [Tt.Forward]: M.y[Tt.Forward] || j.y === 1 } };
3754
3759
  }, [F, S, T]);
3755
3760
  }({ delta: d, disabled: !o }), [b, D] = function() {
3756
- const v = Me(null);
3761
+ const v = Re(null);
3757
3762
  return [Xe((S, F) => {
3758
3763
  v.current = setInterval(S, F);
3759
3764
  }, []), Xe(() => {
3760
3765
  v.current !== null && (clearInterval(v.current), v.current = null);
3761
3766
  }, [])];
3762
- }(), E = Me({ x: 0, y: 0 }), G = Me({ x: 0, y: 0 }), H = Ce(() => {
3767
+ }(), E = Re({ x: 0, y: 0 }), G = Re({ x: 0, y: 0 }), H = Ce(() => {
3763
3768
  switch (n) {
3764
- case Wn.Pointer:
3769
+ case Un.Pointer:
3765
3770
  return g ? { top: g.y, bottom: g.y, left: g.x, right: g.x } : null;
3766
- case Wn.DraggableRect:
3771
+ case Un.DraggableRect:
3767
3772
  return l;
3768
3773
  }
3769
- }, [n, l, g]), w = Me(null), L = Xe(() => {
3774
+ }, [n, l, g]), w = Re(null), L = Xe(() => {
3770
3775
  const v = w.current;
3771
3776
  if (!v) return;
3772
3777
  const S = E.current.x * G.current.x, F = E.current.y * G.current.y;
@@ -3778,7 +3783,7 @@ function _a(e) {
3778
3783
  if (r?.(v) === !1) continue;
3779
3784
  const S = s.indexOf(v), F = y[S];
3780
3785
  if (!F) continue;
3781
- const { direction: T, speed: M } = Ha(v, F, H, t, u);
3786
+ const { direction: T, speed: M } = Pa(v, F, H, t, u);
3782
3787
  for (const j of ["x", "y"]) k[j][T[j]] || (M[j] = 0, T[j] = 0);
3783
3788
  if (M.x > 0 || M.y > 0) return D(), w.current = v, b(L, i), E.current = M, void (G.current = T);
3784
3789
  }
@@ -3792,19 +3797,19 @@ Fl.activators = [{ eventName: "onTouchStart", handler: (e, t) => {
3792
3797
  return !(l.length > 1) && (r?.({ event: n }), !0);
3793
3798
  } }], function(e) {
3794
3799
  e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
3795
- }(Wn || (Wn = {})), function(e) {
3800
+ }(Un || (Un = {})), function(e) {
3796
3801
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
3797
3802
  }(yo || (yo = {}));
3798
- const Za = { x: { [Tt.Backward]: !1, [Tt.Forward]: !1 }, y: { [Tt.Backward]: !1, [Tt.Forward]: !1 } };
3799
- var Kn, Xo;
3803
+ const Ka = { x: { [Tt.Backward]: !1, [Tt.Forward]: !1 }, y: { [Tt.Backward]: !1, [Tt.Forward]: !1 } };
3804
+ var Xn, Xo;
3800
3805
  (function(e) {
3801
3806
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
3802
- })(Kn || (Kn = {})), function(e) {
3807
+ })(Xn || (Xn = {})), function(e) {
3803
3808
  e.Optimized = "optimized";
3804
3809
  }(Xo || (Xo = {}));
3805
3810
  const Wr = /* @__PURE__ */ new Map();
3806
3811
  function Jo(e, t) {
3807
- return Hn((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
3812
+ return Wn((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
3808
3813
  }
3809
3814
  function bo(e) {
3810
3815
  let { callback: t, disabled: n } = e;
@@ -3815,11 +3820,11 @@ function bo(e) {
3815
3820
  }, [n]);
3816
3821
  return Se(() => () => l?.disconnect(), [l]), l;
3817
3822
  }
3818
- function Ka(e) {
3819
- return new Ko(kn(e), e);
3823
+ function Ya(e) {
3824
+ return new Ko(Tn(e), e);
3820
3825
  }
3821
3826
  function $r(e, t, n) {
3822
- t === void 0 && (t = Ka);
3827
+ t === void 0 && (t = Ya);
3823
3828
  const [r, l] = ue(null);
3824
3829
  function o() {
3825
3830
  l((g) => {
@@ -3847,20 +3852,20 @@ function $r(e, t, n) {
3847
3852
  }
3848
3853
  }
3849
3854
  } }), c = bo({ callback: o });
3850
- return $t(() => {
3855
+ return Ut(() => {
3851
3856
  o(), e ? (c?.observe(e), i?.observe(document.body, { childList: !0, subtree: !0 })) : (c?.disconnect(), i?.disconnect());
3852
3857
  }, [e]), r;
3853
3858
  }
3854
3859
  const Ur = [];
3855
3860
  function Gr(e, t) {
3856
3861
  t === void 0 && (t = []);
3857
- const n = Me(null);
3862
+ const n = Re(null);
3858
3863
  return Se(() => {
3859
3864
  n.current = null;
3860
3865
  }, t), Se(() => {
3861
- const r = e !== Ut;
3866
+ const r = e !== Gt;
3862
3867
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
3863
- }, [e]), n.current ? Zn(e, n.current) : Ut;
3868
+ }, [e]), n.current ? Yn(e, n.current) : Gt;
3864
3869
  }
3865
3870
  function jr(e) {
3866
3871
  return Ce(() => e ? function(t) {
@@ -3873,10 +3878,10 @@ function Nl(e) {
3873
3878
  if (!e) return null;
3874
3879
  if (e.children.length > 1) return e;
3875
3880
  const t = e.children[0];
3876
- return Yn(t) ? t : e;
3881
+ return Jn(t) ? t : e;
3877
3882
  }
3878
- const Ya = [{ sensor: Il, options: {} }, { sensor: rr, options: {} }], Xa = { current: {} }, mo = { draggable: { measure: Br }, droppable: { measure: Br, strategy: Kn.WhileDragging, frequency: Xo.Optimized }, dragOverlay: { measure: kn } };
3879
- class $n extends Map {
3883
+ const Xa = [{ sensor: Il, options: {} }, { sensor: rr, options: {} }], Ja = { current: {} }, mo = { draggable: { measure: Br }, droppable: { measure: Br, strategy: Xn.WhileDragging, frequency: Xo.Optimized }, dragOverlay: { measure: Tn } };
3884
+ class Gn extends Map {
3880
3885
  get(t) {
3881
3886
  var n;
3882
3887
  return t != null && (n = super.get(t)) != null ? n : void 0;
@@ -3895,11 +3900,11 @@ class $n extends Map {
3895
3900
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
3896
3901
  }
3897
3902
  }
3898
- const Ja = { activatorEvent: null, active: null, activeNode: null, activeNodeRect: null, collisions: null, containerNodeRect: null, draggableNodes: /* @__PURE__ */ new Map(), droppableRects: /* @__PURE__ */ new Map(), droppableContainers: new $n(), over: null, dragOverlay: { nodeRef: { current: null }, rect: null, setRef: wo }, scrollableAncestors: [], scrollableAncestorRects: [], measuringConfiguration: mo, measureDroppableContainers: wo, windowRect: null, measuringScheduled: !1 }, Ll = { activatorEvent: null, activators: [], active: null, activeNodeRect: null, ariaDescribedById: { draggable: "" }, dispatch: wo, draggableNodes: /* @__PURE__ */ new Map(), over: null, measureDroppableContainers: wo }, Jn = Cn(Ll), Ol = Cn(Ja);
3899
- function Qa() {
3900
- return { draggable: { active: null, initialCoordinates: { x: 0, y: 0 }, nodes: /* @__PURE__ */ new Map(), translate: { x: 0, y: 0 } }, droppable: { containers: new $n() } };
3903
+ const Qa = { activatorEvent: null, active: null, activeNode: null, activeNodeRect: null, collisions: null, containerNodeRect: null, draggableNodes: /* @__PURE__ */ new Map(), droppableRects: /* @__PURE__ */ new Map(), droppableContainers: new Gn(), over: null, dragOverlay: { nodeRef: { current: null }, rect: null, setRef: wo }, scrollableAncestors: [], scrollableAncestorRects: [], measuringConfiguration: mo, measureDroppableContainers: wo, windowRect: null, measuringScheduled: !1 }, Ll = { activatorEvent: null, activators: [], active: null, activeNodeRect: null, ariaDescribedById: { draggable: "" }, dispatch: wo, draggableNodes: /* @__PURE__ */ new Map(), over: null, measureDroppableContainers: wo }, eo = xn(Ll), Ol = xn(Qa);
3904
+ function es() {
3905
+ return { draggable: { active: null, initialCoordinates: { x: 0, y: 0 }, nodes: /* @__PURE__ */ new Map(), translate: { x: 0, y: 0 } }, droppable: { containers: new Gn() } };
3901
3906
  }
3902
- function es(e, t) {
3907
+ function ts(e, t) {
3903
3908
  switch (t.type) {
3904
3909
  case kt.DragStart:
3905
3910
  return { ...e, draggable: { ...e.draggable, initialCoordinates: t.initialCoordinates, active: t.active } };
@@ -3909,28 +3914,28 @@ function es(e, t) {
3909
3914
  case kt.DragCancel:
3910
3915
  return { ...e, draggable: { ...e.draggable, active: null, initialCoordinates: { x: 0, y: 0 }, translate: { x: 0, y: 0 } } };
3911
3916
  case kt.RegisterDroppable: {
3912
- const { element: n } = t, { id: r } = n, l = new $n(e.droppable.containers);
3917
+ const { element: n } = t, { id: r } = n, l = new Gn(e.droppable.containers);
3913
3918
  return l.set(r, n), { ...e, droppable: { ...e.droppable, containers: l } };
3914
3919
  }
3915
3920
  case kt.SetDroppableDisabled: {
3916
3921
  const { id: n, key: r, disabled: l } = t, o = e.droppable.containers.get(n);
3917
3922
  if (!o || r !== o.key) return e;
3918
- const i = new $n(e.droppable.containers);
3923
+ const i = new Gn(e.droppable.containers);
3919
3924
  return i.set(n, { ...o, disabled: l }), { ...e, droppable: { ...e.droppable, containers: i } };
3920
3925
  }
3921
3926
  case kt.UnregisterDroppable: {
3922
3927
  const { id: n, key: r } = t, l = e.droppable.containers.get(n);
3923
3928
  if (!l || r !== l.key) return e;
3924
- const o = new $n(e.droppable.containers);
3929
+ const o = new Gn(e.droppable.containers);
3925
3930
  return o.delete(n), { ...e, droppable: { ...e.droppable, containers: o } };
3926
3931
  }
3927
3932
  default:
3928
3933
  return e;
3929
3934
  }
3930
3935
  }
3931
- function ts(e) {
3936
+ function ns(e) {
3932
3937
  let { disabled: t } = e;
3933
- const { active: n, activatorEvent: r, draggableNodes: l } = Yt(Jn), o = fo(r), i = fo(n?.id);
3938
+ const { active: n, activatorEvent: r, draggableNodes: l } = Xt(eo), o = fo(r), i = fo(n?.id);
3934
3939
  return Se(() => {
3935
3940
  if (!t && !r && o && i != null) {
3936
3941
  if (!ko(o) || document.activeElement === o.target) return;
@@ -3941,7 +3946,7 @@ function ts(e) {
3941
3946
  requestAnimationFrame(() => {
3942
3947
  for (const y of [g.current, s.current]) {
3943
3948
  if (!y) continue;
3944
- const d = xa(y);
3949
+ const d = ka(y);
3945
3950
  if (d) {
3946
3951
  d.focus();
3947
3952
  break;
@@ -3955,15 +3960,15 @@ function Bl(e, t) {
3955
3960
  let { transform: n, ...r } = t;
3956
3961
  return e != null && e.length ? e.reduce((l, o) => o({ transform: l, ...r }), n) : n;
3957
3962
  }
3958
- const To = Cn({ ...Ut, scaleX: 1, scaleY: 1 });
3959
- var tn;
3963
+ const To = xn({ ...Gt, scaleX: 1, scaleY: 1 });
3964
+ var nn;
3960
3965
  (function(e) {
3961
3966
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
3962
- })(tn || (tn = {}));
3963
- const ns = ft(function(e) {
3967
+ })(nn || (nn = {}));
3968
+ const os = ft(function(e) {
3964
3969
  var t, n, r, l;
3965
- let { id: o, accessibility: i, autoScroll: c = !0, children: g, sensors: s = Ya, collisionDetection: y = Na, measuring: d, modifiers: u, ...k } = e;
3966
- const b = an(es, void 0, Qa), [D, E] = b, [G, H] = function() {
3970
+ let { id: o, accessibility: i, autoScroll: c = !0, children: g, sensors: s = Xa, collisionDetection: y = La, measuring: d, modifiers: u, ...k } = e;
3971
+ const b = sn(ts, void 0, es), [D, E] = b, [G, H] = function() {
3967
3972
  const [h] = ue(() => /* @__PURE__ */ new Set()), V = Xe((Z) => (h.add(Z), () => h.delete(Z)), [h]);
3968
3973
  return [Xe((Z) => {
3969
3974
  let { type: ee, event: re } = Z;
@@ -3972,27 +3977,27 @@ const ns = ft(function(e) {
3972
3977
  return (se = le[ee]) == null ? void 0 : se.call(le, re);
3973
3978
  });
3974
3979
  }, [h]), V];
3975
- }(), [w, L] = ue(tn.Uninitialized), q = w === tn.Initialized, { draggable: { active: v, nodes: S, translate: F }, droppable: { containers: T } } = D, M = v != null ? S.get(v) : null, j = Me({ initial: null, translated: null }), U = Ce(() => {
3980
+ }(), [w, L] = ue(nn.Uninitialized), q = w === nn.Initialized, { draggable: { active: v, nodes: S, translate: F }, droppable: { containers: T } } = D, M = v != null ? S.get(v) : null, j = Re({ initial: null, translated: null }), U = Ce(() => {
3976
3981
  var h;
3977
- return v != null ? { id: v, data: (h = M?.data) != null ? h : Xa, rect: j } : null;
3978
- }, [v, M]), B = Me(null), [O, W] = ue(null), [te, z] = ue(null), A = _n(k, Object.values(k)), P = Xn("DndDescribedBy", o), $ = Ce(() => T.getEnabled(), [T]), ge = Ce(() => ({ draggable: { ...mo.draggable, ...ae?.draggable }, droppable: { ...mo.droppable, ...ae?.droppable }, dragOverlay: { ...mo.dragOverlay, ...ae?.dragOverlay } }), [(ae = d) == null ? void 0 : ae.draggable, ae?.droppable, ae?.dragOverlay]);
3982
+ return v != null ? { id: v, data: (h = M?.data) != null ? h : Ja, rect: j } : null;
3983
+ }, [v, M]), B = Re(null), [O, W] = ue(null), [te, z] = ue(null), A = Kn(k, Object.values(k)), P = Qn("DndDescribedBy", o), $ = Ce(() => T.getEnabled(), [T]), ge = Ce(() => ({ draggable: { ...mo.draggable, ...ae?.draggable }, droppable: { ...mo.droppable, ...ae?.droppable }, dragOverlay: { ...mo.dragOverlay, ...ae?.dragOverlay } }), [(ae = d) == null ? void 0 : ae.draggable, ae?.droppable, ae?.dragOverlay]);
3979
3984
  var ae;
3980
3985
  const { droppableRects: Y, measureDroppableContainers: _, measuringScheduled: be } = function(h, V) {
3981
3986
  let { dragging: Z, dependencies: ee, config: re } = V;
3982
- const [le, se] = ue(null), { frequency: ke, measure: pe, strategy: fe } = re, Te = Me(h), We = function() {
3987
+ const [le, se] = ue(null), { frequency: ke, measure: pe, strategy: fe } = re, Me = Re(h), We = function() {
3983
3988
  switch (fe) {
3984
- case Kn.Always:
3989
+ case Xn.Always:
3985
3990
  return !1;
3986
- case Kn.BeforeDragging:
3991
+ case Xn.BeforeDragging:
3987
3992
  return Z;
3988
3993
  default:
3989
3994
  return !Z;
3990
3995
  }
3991
- }(), Be = _n(We), et = Xe(function(He) {
3996
+ }(), Be = Kn(We), et = Xe(function(He) {
3992
3997
  He === void 0 && (He = []), Be.current || se((at) => at === null ? He : at.concat(He.filter((Ct) => !at.includes(Ct))));
3993
- }, [Be]), $e = Me(null), nt = Hn((He) => {
3998
+ }, [Be]), $e = Re(null), nt = Wn((He) => {
3994
3999
  if (We && !Z) return Wr;
3995
- if (!He || He === Wr || Te.current !== h || le != null) {
4000
+ if (!He || He === Wr || Me.current !== h || le != null) {
3996
4001
  const at = /* @__PURE__ */ new Map();
3997
4002
  for (let Ct of h) {
3998
4003
  if (!Ct) continue;
@@ -4000,15 +4005,15 @@ const ns = ft(function(e) {
4000
4005
  at.set(Ct.id, Ct.rect.current);
4001
4006
  continue;
4002
4007
  }
4003
- const Ft = Ct.node.current, Ht = Ft ? new Ko(pe(Ft), Ft) : null;
4004
- Ct.rect.current = Ht, Ht && at.set(Ct.id, Ht);
4008
+ const Ft = Ct.node.current, Pt = Ft ? new Ko(pe(Ft), Ft) : null;
4009
+ Ct.rect.current = Pt, Pt && at.set(Ct.id, Pt);
4005
4010
  }
4006
4011
  return at;
4007
4012
  }
4008
4013
  return He;
4009
4014
  }, [h, le, Z, We, pe]);
4010
4015
  return Se(() => {
4011
- Te.current = h;
4016
+ Me.current = h;
4012
4017
  }, [h]), Se(() => {
4013
4018
  We || et();
4014
4019
  }, [Z, We]), Se(() => {
@@ -4020,7 +4025,7 @@ const ns = ft(function(e) {
4020
4025
  }, [ke, We, et, ...ee]), { droppableRects: nt, measureDroppableContainers: et, measuringScheduled: le != null };
4021
4026
  }($, { dragging: q, dependencies: [F.x, F.y], config: ge.droppable }), Ae = function(h, V) {
4022
4027
  const Z = V != null ? h.get(V) : void 0, ee = Z ? Z.node.current : null;
4023
- return Hn((re) => {
4028
+ return Wn((re) => {
4024
4029
  var le;
4025
4030
  return V == null ? null : (le = ee ?? re) != null ? le : null;
4026
4031
  }, [ee, V]);
@@ -4032,26 +4037,26 @@ const ns = ft(function(e) {
4032
4037
  }(Ae, ge.draggable.measure);
4033
4038
  (function(h) {
4034
4039
  let { activeNode: V, measure: Z, initialRect: ee, config: re = !0 } = h;
4035
- const le = Me(!1), { x: se, y: ke } = typeof re == "boolean" ? { x: re, y: re } : re;
4036
- $t(() => {
4040
+ const le = Re(!1), { x: se, y: ke } = typeof re == "boolean" ? { x: re, y: re } : re;
4041
+ Ut(() => {
4037
4042
  if (!se && !ke || !V) return void (le.current = !1);
4038
4043
  if (le.current || !ee) return;
4039
4044
  const pe = V?.node.current;
4040
4045
  if (!pe || pe.isConnected === !1) return;
4041
4046
  const fe = Or(Z(pe), ee);
4042
4047
  if (se || (fe.x = 0), ke || (fe.y = 0), le.current = !0, Math.abs(fe.x) > 0 || Math.abs(fe.y) > 0) {
4043
- const Te = xl(pe);
4044
- Te && Te.scrollBy({ top: fe.y, left: fe.x });
4048
+ const Me = xl(pe);
4049
+ Me && Me.scrollBy({ top: fe.y, left: fe.x });
4045
4050
  }
4046
4051
  }, [V, se, ke, ee, Z]);
4047
4052
  })({ activeNode: v != null ? S.get(v) : null, config: _e.layoutShiftCompensation, initialRect: he, measure: ge.draggable.measure });
4048
- const Ze = $r(Ae, ge.draggable.measure, he), De = $r(Ae ? Ae.parentElement : null), ce = Me({ activatorEvent: null, active: null, activeNode: Ae, collisionRect: null, collisions: null, droppableRects: Y, draggableNodes: S, draggingNode: null, draggingNodeRect: null, droppableContainers: T, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), de = T.getNodeFor((t = ce.current.over) == null ? void 0 : t.id), me = function(h) {
4053
+ const Ze = $r(Ae, ge.draggable.measure, he), De = $r(Ae ? Ae.parentElement : null), ce = Re({ activatorEvent: null, active: null, activeNode: Ae, collisionRect: null, collisions: null, droppableRects: Y, draggableNodes: S, draggingNode: null, draggingNodeRect: null, droppableContainers: T, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), de = T.getNodeFor((t = ce.current.over) == null ? void 0 : t.id), me = function(h) {
4049
4054
  let { measure: V } = h;
4050
4055
  const [Z, ee] = ue(null), re = bo({ callback: Xe((pe) => {
4051
- for (const { target: fe } of pe) if (Yn(fe)) {
4052
- ee((Te) => {
4056
+ for (const { target: fe } of pe) if (Jn(fe)) {
4057
+ ee((Me) => {
4053
4058
  const We = V(fe);
4054
- return Te ? { ...Te, width: We.width, height: We.height } : We;
4059
+ return Me ? { ...Me, width: We.width, height: We.height } : We;
4055
4060
  });
4056
4061
  break;
4057
4062
  }
@@ -4060,25 +4065,25 @@ const ns = ft(function(e) {
4060
4065
  re?.disconnect(), fe && re?.observe(fe), ee(fe ? V(fe) : null);
4061
4066
  }, [V, re]), [se, ke] = po(le);
4062
4067
  return Ce(() => ({ nodeRef: se, rect: Z, setRef: ke }), [Z, se, ke]);
4063
- }({ measure: ge.dragOverlay.measure }), ye = (n = me.nodeRef.current) != null ? n : Ae, Re = q ? (r = me.rect) != null ? r : Ze : null, Ie = !!(me.nodeRef.current && me.rect), xe = Or(Ne = Ie ? null : Ze, Jo(Ne));
4068
+ }({ measure: ge.dragOverlay.measure }), ye = (n = me.nodeRef.current) != null ? n : Ae, Te = q ? (r = me.rect) != null ? r : Ze : null, Ie = !!(me.nodeRef.current && me.rect), xe = Or(Ne = Ie ? null : Ze, Jo(Ne));
4064
4069
  var Ne;
4065
4070
  const Pe = jr(ye ? zt(ye) : null), je = function(h) {
4066
- const V = Me(h), Z = Hn((ee) => h ? ee && ee !== Ur && h && V.current && h.parentNode === V.current.parentNode ? ee : Ro(h) : Ur, [h]);
4071
+ const V = Re(h), Z = Wn((ee) => h ? ee && ee !== Ur && h && V.current && h.parentNode === V.current.parentNode ? ee : Ro(h) : Ur, [h]);
4067
4072
  return Se(() => {
4068
4073
  V.current = h;
4069
4074
  }, [h]), Z;
4070
4075
  }(q ? de ?? Ae : null), m = function(h, V) {
4071
- V === void 0 && (V = kn);
4076
+ V === void 0 && (V = Tn);
4072
4077
  const [Z] = h, ee = jr(Z ? zt(Z) : null), [re, le] = ue(_r);
4073
4078
  function se() {
4074
4079
  le(() => h.length ? h.map((pe) => Tl(pe) ? ee : new Ko(V(pe), pe)) : _r);
4075
4080
  }
4076
4081
  const ke = bo({ callback: se });
4077
- return $t(() => {
4082
+ return Ut(() => {
4078
4083
  ke?.disconnect(), se(), h.forEach((pe) => ke?.observe(pe));
4079
4084
  }, [h]), re;
4080
- }(je), Ke = Bl(u, { transform: { x: F.x - xe.x, y: F.y - xe.y, scaleX: 1, scaleY: 1 }, activatorEvent: te, active: U, activeNodeRect: Ze, containerNodeRect: De, draggingNodeRect: Re, over: ce.current.over, overlayNodeRect: me.rect, scrollableAncestors: je, scrollableAncestorRects: m, windowRect: Pe }), ut = we ? yn(we, F) : null, Qe = function(h) {
4081
- const [V, Z] = ue(null), ee = Me(h), re = Xe((le) => {
4085
+ }(je), Ke = Bl(u, { transform: { x: F.x - xe.x, y: F.y - xe.y, scaleX: 1, scaleY: 1 }, activatorEvent: te, active: U, activeNodeRect: Ze, containerNodeRect: De, draggingNodeRect: Te, over: ce.current.over, overlayNodeRect: me.rect, scrollableAncestors: je, scrollableAncestorRects: m, windowRect: Pe }), ut = we ? qn(we, F) : null, Qe = function(h) {
4086
+ const [V, Z] = ue(null), ee = Re(h), re = Xe((le) => {
4082
4087
  const se = $o(le.target);
4083
4088
  se && Z((ke) => ke ? (ke.set(se, Zo(se)), new Map(ke)) : null);
4084
4089
  }, []);
@@ -4101,44 +4106,44 @@ const ns = ft(function(e) {
4101
4106
  fe?.removeEventListener("scroll", re);
4102
4107
  });
4103
4108
  }
4104
- }, [re, h]), Ce(() => h.length ? V ? Array.from(V.values()).reduce((le, se) => yn(le, se), Ut) : Dl(h) : Ut, [h, V]);
4105
- }(je), X = Gr(Qe), Le = Gr(Qe, [Ze]), Ge = yn(Ke, X), Fe = Re ? Oa(Re, Ke) : null, Ve = U && Fe ? y({ active: U, collisionRect: Fe, droppableRects: Y, droppableContainers: $, pointerCoordinates: ut }) : null, Oe = Cl(Ve, "id"), [C, oe] = ue(null), N = function(h, V, Z) {
4109
+ }, [re, h]), Ce(() => h.length ? V ? Array.from(V.values()).reduce((le, se) => qn(le, se), Gt) : Dl(h) : Gt, [h, V]);
4110
+ }(je), X = Gr(Qe), Le = Gr(Qe, [Ze]), Ge = qn(Ke, X), Fe = Te ? Ba(Te, Ke) : null, Ve = U && Fe ? y({ active: U, collisionRect: Fe, droppableRects: Y, droppableContainers: $, pointerCoordinates: ut }) : null, Oe = Cl(Ve, "id"), [C, oe] = ue(null), N = function(h, V, Z) {
4106
4111
  return { ...h, scaleX: V && Z ? V.width / Z.width : 1, scaleY: V && Z ? V.height / Z.height : 1 };
4107
- }(Ie ? Ke : yn(Ke, Le), (l = C?.rect) != null ? l : null, Ze), K = Me(null), a = Xe((h, V) => {
4112
+ }(Ie ? Ke : qn(Ke, Le), (l = C?.rect) != null ? l : null, Ze), K = Re(null), a = Xe((h, V) => {
4108
4113
  let { sensor: Z, options: ee } = V;
4109
4114
  if (B.current == null) return;
4110
4115
  const re = S.get(B.current);
4111
4116
  if (!re) return;
4112
4117
  const le = h.nativeEvent, se = new Z({ active: B.current, activeNode: re, event: le, options: ee, context: ce, onAbort(pe) {
4113
4118
  if (!S.get(pe)) return;
4114
- const { onDragAbort: fe } = A.current, Te = { id: pe };
4115
- fe?.(Te), G({ type: "onDragAbort", event: Te });
4116
- }, onPending(pe, fe, Te, We) {
4119
+ const { onDragAbort: fe } = A.current, Me = { id: pe };
4120
+ fe?.(Me), G({ type: "onDragAbort", event: Me });
4121
+ }, onPending(pe, fe, Me, We) {
4117
4122
  if (!S.get(pe)) return;
4118
- const { onDragPending: Be } = A.current, et = { id: pe, constraint: fe, initialCoordinates: Te, offset: We };
4123
+ const { onDragPending: Be } = A.current, et = { id: pe, constraint: fe, initialCoordinates: Me, offset: We };
4119
4124
  Be?.(et), G({ type: "onDragPending", event: et });
4120
4125
  }, onStart(pe) {
4121
4126
  const fe = B.current;
4122
4127
  if (fe == null) return;
4123
- const Te = S.get(fe);
4124
- if (!Te) return;
4125
- const { onDragStart: We } = A.current, Be = { activatorEvent: le, active: { id: fe, data: Te.data, rect: j } };
4126
- Bn(() => {
4127
- We?.(Be), L(tn.Initializing), E({ type: kt.DragStart, initialCoordinates: pe, active: fe }), G({ type: "onDragStart", event: Be }), W(K.current), z(le);
4128
+ const Me = S.get(fe);
4129
+ if (!Me) return;
4130
+ const { onDragStart: We } = A.current, Be = { activatorEvent: le, active: { id: fe, data: Me.data, rect: j } };
4131
+ Hn(() => {
4132
+ We?.(Be), L(nn.Initializing), E({ type: kt.DragStart, initialCoordinates: pe, active: fe }), G({ type: "onDragStart", event: Be }), W(K.current), z(le);
4128
4133
  });
4129
4134
  }, onMove(pe) {
4130
4135
  E({ type: kt.DragMove, coordinates: pe });
4131
4136
  }, onEnd: ke(kt.DragEnd), onCancel: ke(kt.DragCancel) });
4132
4137
  function ke(pe) {
4133
4138
  return async function() {
4134
- const { active: fe, collisions: Te, over: We, scrollAdjustedTranslate: Be } = ce.current;
4139
+ const { active: fe, collisions: Me, over: We, scrollAdjustedTranslate: Be } = ce.current;
4135
4140
  let et = null;
4136
4141
  if (fe && Be) {
4137
4142
  const { cancelDrop: $e } = A.current;
4138
- et = { activatorEvent: le, active: fe, collisions: Te, delta: Be, over: We }, pe === kt.DragEnd && typeof $e == "function" && await Promise.resolve($e(et)) && (pe = kt.DragCancel);
4143
+ et = { activatorEvent: le, active: fe, collisions: Me, delta: Be, over: We }, pe === kt.DragEnd && typeof $e == "function" && await Promise.resolve($e(et)) && (pe = kt.DragCancel);
4139
4144
  }
4140
- B.current = null, Bn(() => {
4141
- E({ type: pe }), L(tn.Uninitialized), oe(null), W(null), z(null), K.current = null;
4145
+ B.current = null, Hn(() => {
4146
+ E({ type: pe }), L(nn.Uninitialized), oe(null), W(null), z(null), K.current = null;
4142
4147
  const $e = pe === kt.DragEnd ? "onDragEnd" : "onDragCancel";
4143
4148
  if (et) {
4144
4149
  const nt = A.current[$e];
@@ -4173,69 +4178,69 @@ const ns = ft(function(e) {
4173
4178
  let { sensor: Z } = V;
4174
4179
  return Z;
4175
4180
  }));
4176
- })(s), $t(() => {
4177
- Ze && w === tn.Initializing && L(tn.Initialized);
4181
+ })(s), Ut(() => {
4182
+ Ze && w === nn.Initializing && L(nn.Initialized);
4178
4183
  }, [Ze, w]), Se(() => {
4179
4184
  const { onDragMove: h } = A.current, { active: V, activatorEvent: Z, collisions: ee, over: re } = ce.current;
4180
4185
  if (!V || !Z) return;
4181
4186
  const le = { active: V, activatorEvent: Z, collisions: ee, delta: { x: Ge.x, y: Ge.y }, over: re };
4182
- Bn(() => {
4187
+ Hn(() => {
4183
4188
  h?.(le), G({ type: "onDragMove", event: le });
4184
4189
  });
4185
4190
  }, [Ge.x, Ge.y]), Se(() => {
4186
4191
  const { active: h, activatorEvent: V, collisions: Z, droppableContainers: ee, scrollAdjustedTranslate: re } = ce.current;
4187
4192
  if (!h || B.current == null || !V || !re) return;
4188
4193
  const { onDragOver: le } = A.current, se = ee.get(Oe), ke = se && se.rect.current ? { id: se.id, rect: se.rect.current, data: se.data, disabled: se.disabled } : null, pe = { active: h, activatorEvent: V, collisions: Z, delta: { x: re.x, y: re.y }, over: ke };
4189
- Bn(() => {
4194
+ Hn(() => {
4190
4195
  oe(ke), le?.(pe), G({ type: "onDragOver", event: pe });
4191
4196
  });
4192
- }, [Oe]), $t(() => {
4193
- ce.current = { activatorEvent: te, active: U, activeNode: Ae, collisionRect: Fe, collisions: Ve, droppableRects: Y, draggableNodes: S, draggingNode: ye, draggingNodeRect: Re, droppableContainers: T, over: C, scrollableAncestors: je, scrollAdjustedTranslate: Ge }, j.current = { initial: Re, translated: Fe };
4194
- }, [U, Ae, Ve, Fe, S, ye, Re, Y, T, C, je, Ge]), _a({ ..._e, delta: F, draggingRect: Fe, pointerCoordinates: ut, scrollableAncestors: je, scrollableAncestorRects: m });
4197
+ }, [Oe]), Ut(() => {
4198
+ ce.current = { activatorEvent: te, active: U, activeNode: Ae, collisionRect: Fe, collisions: Ve, droppableRects: Y, draggableNodes: S, draggingNode: ye, draggingNodeRect: Te, droppableContainers: T, over: C, scrollableAncestors: je, scrollAdjustedTranslate: Ge }, j.current = { initial: Te, translated: Fe };
4199
+ }, [U, Ae, Ve, Fe, S, ye, Te, Y, T, C, je, Ge]), Za({ ..._e, delta: F, draggingRect: Fe, pointerCoordinates: ut, scrollableAncestors: je, scrollableAncestorRects: m });
4195
4200
  const f = Ce(() => ({ active: U, activeNode: Ae, activeNodeRect: Ze, activatorEvent: te, collisions: Ve, containerNodeRect: De, dragOverlay: me, draggableNodes: S, droppableContainers: T, droppableRects: Y, over: C, measureDroppableContainers: _, scrollableAncestors: je, scrollableAncestorRects: m, measuringConfiguration: ge, measuringScheduled: be, windowRect: Pe }), [U, Ae, Ze, te, Ve, De, me, S, T, Y, C, _, je, m, ge, be, Pe]), I = Ce(() => ({ activatorEvent: te, activators: R, active: U, activeNodeRect: Ze, ariaDescribedById: { draggable: P }, dispatch: E, draggableNodes: S, over: C, measureDroppableContainers: _ }), [te, R, U, Ze, E, P, S, C, _]);
4196
- return tt.createElement(yl.Provider, { value: H }, tt.createElement(Jn.Provider, { value: I }, tt.createElement(Ol.Provider, { value: f }, tt.createElement(To.Provider, { value: N }, g)), tt.createElement(ts, { disabled: i?.restoreFocus === !1 })), tt.createElement(Ea, { ...i, hiddenTextDescribedById: P }));
4197
- }), os = Cn(null), Zr = "button";
4198
- function rs(e) {
4201
+ return tt.createElement(yl.Provider, { value: H }, tt.createElement(eo.Provider, { value: I }, tt.createElement(Ol.Provider, { value: f }, tt.createElement(To.Provider, { value: N }, g)), tt.createElement(ns, { disabled: i?.restoreFocus === !1 })), tt.createElement(Aa, { ...i, hiddenTextDescribedById: P }));
4202
+ }), rs = xn(null), Zr = "button";
4203
+ function ls(e) {
4199
4204
  let { id: t, data: n, disabled: r = !1, attributes: l } = e;
4200
- const o = Xn("Draggable"), { activators: i, activatorEvent: c, active: g, activeNodeRect: s, ariaDescribedById: y, draggableNodes: d, over: u } = Yt(Jn), { role: k = Zr, roleDescription: b = "draggable", tabIndex: D = 0 } = l ?? {}, E = g?.id === t, G = Yt(E ? To : os), [H, w] = po(), [L, q] = po(), v = function(F, T) {
4205
+ const o = Qn("Draggable"), { activators: i, activatorEvent: c, active: g, activeNodeRect: s, ariaDescribedById: y, draggableNodes: d, over: u } = Xt(eo), { role: k = Zr, roleDescription: b = "draggable", tabIndex: D = 0 } = l ?? {}, E = g?.id === t, G = Xt(E ? To : rs), [H, w] = po(), [L, q] = po(), v = function(F, T) {
4201
4206
  return Ce(() => F.reduce((M, j) => {
4202
4207
  let { eventName: U, handler: B } = j;
4203
4208
  return M[U] = (O) => {
4204
4209
  B(O, T);
4205
4210
  }, M;
4206
4211
  }, {}), [F, T]);
4207
- }(i, t), S = _n(n);
4208
- return $t(() => (d.set(t, { id: t, key: o, node: H, activatorNode: L, data: S }), () => {
4212
+ }(i, t), S = Kn(n);
4213
+ return Ut(() => (d.set(t, { id: t, key: o, node: H, activatorNode: L, data: S }), () => {
4209
4214
  const F = d.get(t);
4210
4215
  F && F.key === o && d.delete(t);
4211
4216
  }), [d, t]), { active: g, activatorEvent: c, activeNodeRect: s, attributes: Ce(() => ({ role: k, tabIndex: D, "aria-disabled": r, "aria-pressed": !(!E || k !== Zr) || void 0, "aria-roledescription": b, "aria-describedby": y.draggable }), [r, k, D, E, b, y.draggable]), isDragging: E, listeners: r ? void 0 : v, node: H, over: u, setNodeRef: w, setActivatorNodeRef: q, transform: G };
4212
4217
  }
4213
4218
  function Vl() {
4214
- return Yt(Ol);
4219
+ return Xt(Ol);
4215
4220
  }
4216
- const ls = { timeout: 25 };
4217
- function is(e) {
4221
+ const is = { timeout: 25 };
4222
+ function as(e) {
4218
4223
  let { animation: t, children: n } = e;
4219
4224
  const [r, l] = ue(null), [o, i] = ue(null), c = fo(n);
4220
- return n || r || !c || l(c), $t(() => {
4225
+ return n || r || !c || l(c), Ut(() => {
4221
4226
  if (!o) return;
4222
4227
  const g = r?.key, s = r?.props.id;
4223
4228
  g != null && s != null ? Promise.resolve(t(s, o)).then(() => {
4224
4229
  l(null);
4225
4230
  }) : l(null);
4226
- }, [t, r, o]), tt.createElement(tt.Fragment, null, n, r ? pi(r, { ref: i }) : null);
4231
+ }, [t, r, o]), tt.createElement(tt.Fragment, null, n, r ? fi(r, { ref: i }) : null);
4227
4232
  }
4228
- const as = { x: 0, y: 0, scaleX: 1, scaleY: 1 };
4229
- function ss(e) {
4233
+ const ss = { x: 0, y: 0, scaleX: 1, scaleY: 1 };
4234
+ function ds(e) {
4230
4235
  let { children: t } = e;
4231
- return tt.createElement(Jn.Provider, { value: Ll }, tt.createElement(To.Provider, { value: as }, t));
4236
+ return tt.createElement(eo.Provider, { value: Ll }, tt.createElement(To.Provider, { value: ss }, t));
4232
4237
  }
4233
- const ds = { position: "fixed", touchAction: "none" }, cs = (e) => ko(e) ? "transform 250ms ease" : void 0, us = wt((e, t) => {
4234
- let { as: n, activatorEvent: r, adjustScale: l, children: o, className: i, rect: c, style: g, transform: s, transition: y = cs } = e;
4238
+ const cs = { position: "fixed", touchAction: "none" }, us = (e) => ko(e) ? "transform 250ms ease" : void 0, gs = wt((e, t) => {
4239
+ let { as: n, activatorEvent: r, adjustScale: l, children: o, className: i, rect: c, style: g, transform: s, transition: y = us } = e;
4235
4240
  if (!c) return null;
4236
- const d = l ? s : { ...s, scaleX: 1, scaleY: 1 }, u = { ...ds, width: c.width, height: c.height, top: c.top, left: c.left, transform: dn.Transform.toString(d), transformOrigin: l && r ? Aa(r, c) : void 0, transition: typeof y == "function" ? y(r) : y, ...g };
4241
+ const d = l ? s : { ...s, scaleX: 1, scaleY: 1 }, u = { ...cs, width: c.width, height: c.height, top: c.top, left: c.left, transform: cn.Transform.toString(d), transformOrigin: l && r ? Ia(r, c) : void 0, transition: typeof y == "function" ? y(r) : y, ...g };
4237
4242
  return tt.createElement(n, { className: i, style: u, ref: t }, o);
4238
- }), gs = (e) => (t) => {
4243
+ }), hs = (e) => (t) => {
4239
4244
  let { active: n, dragOverlay: r } = t;
4240
4245
  const l = {}, { styles: o, className: i } = e;
4241
4246
  if (o != null && o.active) for (const [c, g] of Object.entries(o.active)) g !== void 0 && (l[c] = n.node.style.getPropertyValue(c), n.node.style.setProperty(c, g));
@@ -4246,9 +4251,9 @@ const ds = { position: "fixed", touchAction: "none" }, cs = (e) => ko(e) ? "tran
4246
4251
  };
4247
4252
  }, Hl = { duration: 250, easing: "ease", keyframes: (e) => {
4248
4253
  let { transform: { initial: t, final: n } } = e;
4249
- return [{ transform: dn.Transform.toString(t) }, { transform: dn.Transform.toString(n) }];
4250
- }, sideEffects: gs({ styles: { active: { opacity: "0" } } }) };
4251
- function hs(e) {
4254
+ return [{ transform: cn.Transform.toString(t) }, { transform: cn.Transform.toString(n) }];
4255
+ }, sideEffects: hs({ styles: { active: { opacity: "0" } } }) };
4256
+ function ms(e) {
4252
4257
  let { config: t, draggableNodes: n, droppableContainers: r, measuringConfiguration: l } = e;
4253
4258
  return xo((o, i) => {
4254
4259
  if (t === null) return;
@@ -4279,21 +4284,21 @@ function hs(e) {
4279
4284
  });
4280
4285
  }
4281
4286
  let Kr = 0;
4282
- function ms(e) {
4287
+ function ps(e) {
4283
4288
  return Ce(() => {
4284
4289
  if (e != null) return Kr++, Kr;
4285
4290
  }, [e]);
4286
4291
  }
4287
- const ps = tt.memo((e) => {
4292
+ const fs = tt.memo((e) => {
4288
4293
  let { adjustScale: t = !1, children: n, dropAnimation: r, style: l, transition: o, modifiers: i, wrapperElement: c = "div", className: g, zIndex: s = 999 } = e;
4289
- const { activatorEvent: y, active: d, activeNodeRect: u, containerNodeRect: k, draggableNodes: b, droppableContainers: D, dragOverlay: E, over: G, measuringConfiguration: H, scrollableAncestors: w, scrollableAncestorRects: L, windowRect: q } = Vl(), v = Yt(To), S = ms(d?.id), F = Bl(i, { activatorEvent: y, active: d, activeNodeRect: u, containerNodeRect: k, draggingNodeRect: E.rect, over: G, overlayNodeRect: E.rect, scrollableAncestors: w, scrollableAncestorRects: L, transform: v, windowRect: q }), T = Jo(u), M = hs({ config: r, draggableNodes: b, droppableContainers: D, measuringConfiguration: H }), j = T ? E.setRef : void 0;
4290
- return tt.createElement(ss, null, tt.createElement(is, { animation: M }, d && S ? tt.createElement(us, { key: S, id: d.id, ref: j, as: c, activatorEvent: y, adjustScale: t, className: g, transition: o, rect: T, style: { zIndex: s, ...l }, transform: F }, n) : null));
4294
+ const { activatorEvent: y, active: d, activeNodeRect: u, containerNodeRect: k, draggableNodes: b, droppableContainers: D, dragOverlay: E, over: G, measuringConfiguration: H, scrollableAncestors: w, scrollableAncestorRects: L, windowRect: q } = Vl(), v = Xt(To), S = ps(d?.id), F = Bl(i, { activatorEvent: y, active: d, activeNodeRect: u, containerNodeRect: k, draggingNodeRect: E.rect, over: G, overlayNodeRect: E.rect, scrollableAncestors: w, scrollableAncestorRects: L, transform: v, windowRect: q }), T = Jo(u), M = ms({ config: r, draggableNodes: b, droppableContainers: D, measuringConfiguration: H }), j = T ? E.setRef : void 0;
4295
+ return tt.createElement(ds, null, tt.createElement(as, { animation: M }, d && S ? tt.createElement(gs, { key: S, id: d.id, ref: j, as: c, activatorEvent: y, adjustScale: t, className: g, transition: o, rect: T, style: { zIndex: s, ...l }, transform: F }, n) : null));
4291
4296
  });
4292
4297
  function ir(e, t, n) {
4293
4298
  const r = e.slice();
4294
4299
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
4295
4300
  }
4296
- function fs(e, t) {
4301
+ function vs(e, t) {
4297
4302
  return e.reduce((n, r, l) => {
4298
4303
  const o = t.get(r);
4299
4304
  return o && (n[l] = o), n;
@@ -4302,7 +4307,7 @@ function fs(e, t) {
4302
4307
  function uo(e) {
4303
4308
  return e !== null && e >= 0;
4304
4309
  }
4305
- const go = { scaleX: 1, scaleY: 1 }, vs = (e) => {
4310
+ const go = { scaleX: 1, scaleY: 1 }, ws = (e) => {
4306
4311
  var t;
4307
4312
  let { rects: n, activeNodeRect: r, activeIndex: l, overIndex: o, index: i } = e;
4308
4313
  const c = (t = n[l]) != null ? t : r;
@@ -4321,9 +4326,9 @@ const go = { scaleX: 1, scaleY: 1 }, vs = (e) => {
4321
4326
  const o = ir(t, r, n), i = t[l], c = o[l];
4322
4327
  return c && i ? { x: c.left - i.left, y: c.top - i.top, scaleX: c.width / i.width, scaleY: c.height / i.height } : null;
4323
4328
  }, Pl = "Sortable", Wl = tt.createContext({ activeIndex: -1, containerId: Pl, disableTransforms: !1, items: [], overIndex: -1, useDragOverlay: !1, sortedRects: [], strategy: ar, disabled: { draggable: !1, droppable: !1 } });
4324
- function ws(e) {
4329
+ function ys(e) {
4325
4330
  let { children: t, id: n, items: r, strategy: l = ar, disabled: o = !1 } = e;
4326
- const { active: i, dragOverlay: c, droppableRects: g, over: s, measureDroppableContainers: y } = Vl(), d = Xn(Pl, n), u = c.rect !== null, k = Ce(() => r.map((v) => typeof v == "object" && "id" in v ? v.id : v), [r]), b = i != null, D = i ? k.indexOf(i.id) : -1, E = s ? k.indexOf(s.id) : -1, G = Me(k), H = !function(v, S) {
4331
+ const { active: i, dragOverlay: c, droppableRects: g, over: s, measureDroppableContainers: y } = Vl(), d = Qn(Pl, n), u = c.rect !== null, k = Ce(() => r.map((v) => typeof v == "object" && "id" in v ? v.id : v), [r]), b = i != null, D = i ? k.indexOf(i.id) : -1, E = s ? k.indexOf(s.id) : -1, G = Re(k), H = !function(v, S) {
4327
4332
  if (v === S) return !0;
4328
4333
  if (v.length !== S.length) return !1;
4329
4334
  for (let F = 0; F < v.length; F++) if (v[F] !== S[F]) return !1;
@@ -4331,58 +4336,58 @@ function ws(e) {
4331
4336
  }(k, G.current), w = E !== -1 && D === -1 || H, L = /* @__PURE__ */ function(v) {
4332
4337
  return typeof v == "boolean" ? { draggable: v, droppable: v } : v;
4333
4338
  }(o);
4334
- $t(() => {
4339
+ Ut(() => {
4335
4340
  H && b && y(k);
4336
4341
  }, [H, k, b, y]), Se(() => {
4337
4342
  G.current = k;
4338
4343
  }, [k]);
4339
- const q = Ce(() => ({ activeIndex: D, containerId: d, disabled: L, disableTransforms: w, items: k, overIndex: E, useDragOverlay: u, sortedRects: fs(k, g), strategy: l }), [D, d, L.draggable, L.droppable, w, k, E, g, u, l]);
4344
+ const q = Ce(() => ({ activeIndex: D, containerId: d, disabled: L, disableTransforms: w, items: k, overIndex: E, useDragOverlay: u, sortedRects: vs(k, g), strategy: l }), [D, d, L.draggable, L.droppable, w, k, E, g, u, l]);
4340
4345
  return tt.createElement(Wl.Provider, { value: q }, t);
4341
4346
  }
4342
- const ys = (e) => {
4347
+ const bs = (e) => {
4343
4348
  let { id: t, items: n, activeIndex: r, overIndex: l } = e;
4344
4349
  return ir(n, r, l).indexOf(t);
4345
- }, bs = (e) => {
4350
+ }, qs = (e) => {
4346
4351
  let { containerId: t, isSorting: n, wasDragging: r, index: l, items: o, newIndex: i, previousItems: c, previousContainerId: g, transition: s } = e;
4347
4352
  return !(!s || !r) && (c === o || l !== i) && (!!n || i !== l && t === g);
4348
- }, qs = { duration: 200, easing: "ease" }, $l = "transform", Cs = dn.Transition.toString({ property: $l, duration: 0, easing: "linear" }), Ss = { roleDescription: "sortable" };
4349
- function xs(e) {
4350
- let { animateLayoutChanges: t = bs, attributes: n, disabled: r, data: l, getNewIndex: o = ys, id: i, strategy: c, resizeObserverConfig: g, transition: s = qs } = e;
4351
- const { items: y, containerId: d, activeIndex: u, disabled: k, disableTransforms: b, sortedRects: D, overIndex: E, useDragOverlay: G, strategy: H } = Yt(Wl), w = function(de, me) {
4352
- var ye, Re;
4353
- return typeof de == "boolean" ? { draggable: de, droppable: !1 } : { draggable: (ye = de?.draggable) != null ? ye : me.draggable, droppable: (Re = de?.droppable) != null ? Re : me.droppable };
4353
+ }, Cs = { duration: 200, easing: "ease" }, $l = "transform", Ss = cn.Transition.toString({ property: $l, duration: 0, easing: "linear" }), xs = { roleDescription: "sortable" };
4354
+ function ks(e) {
4355
+ let { animateLayoutChanges: t = qs, attributes: n, disabled: r, data: l, getNewIndex: o = bs, id: i, strategy: c, resizeObserverConfig: g, transition: s = Cs } = e;
4356
+ const { items: y, containerId: d, activeIndex: u, disabled: k, disableTransforms: b, sortedRects: D, overIndex: E, useDragOverlay: G, strategy: H } = Xt(Wl), w = function(de, me) {
4357
+ var ye, Te;
4358
+ return typeof de == "boolean" ? { draggable: de, droppable: !1 } : { draggable: (ye = de?.draggable) != null ? ye : me.draggable, droppable: (Te = de?.droppable) != null ? Te : me.droppable };
4354
4359
  }(r, k), L = y.indexOf(i), q = Ce(() => ({ sortable: { containerId: d, index: L, items: y }, ...l }), [d, l, L, y]), v = Ce(() => y.slice(y.indexOf(i)), [y, i]), { rect: S, node: F, isOver: T, setNodeRef: M } = function(de) {
4355
- let { data: me, disabled: ye = !1, id: Re, resizeObserverConfig: Ie } = de;
4356
- const xe = Xn("Droppable"), { active: Ne, dispatch: Pe, over: je, measureDroppableContainers: m } = Yt(Jn), Ke = Me({ disabled: ye }), ut = Me(!1), Qe = Me(null), X = Me(null), { disabled: Le, updateMeasurementsFor: Ge, timeout: Fe } = { ...ls, ...Ie }, Ve = _n(Ge ?? Re), Oe = bo({ callback: Xe(() => {
4360
+ let { data: me, disabled: ye = !1, id: Te, resizeObserverConfig: Ie } = de;
4361
+ const xe = Qn("Droppable"), { active: Ne, dispatch: Pe, over: je, measureDroppableContainers: m } = Xt(eo), Ke = Re({ disabled: ye }), ut = Re(!1), Qe = Re(null), X = Re(null), { disabled: Le, updateMeasurementsFor: Ge, timeout: Fe } = { ...is, ...Ie }, Ve = Kn(Ge ?? Te), Oe = bo({ callback: Xe(() => {
4357
4362
  ut.current ? (X.current != null && clearTimeout(X.current), X.current = setTimeout(() => {
4358
4363
  m(Array.isArray(Ve.current) ? Ve.current : [Ve.current]), X.current = null;
4359
4364
  }, Fe)) : ut.current = !0;
4360
4365
  }, [Fe]), disabled: Le || !Ne }), C = Xe((a, x) => {
4361
4366
  Oe && (x && (Oe.unobserve(x), ut.current = !1), a && Oe.observe(a));
4362
- }, [Oe]), [oe, N] = po(C), K = _n(me);
4367
+ }, [Oe]), [oe, N] = po(C), K = Kn(me);
4363
4368
  return Se(() => {
4364
4369
  Oe && oe.current && (Oe.disconnect(), ut.current = !1, Oe.observe(oe.current));
4365
- }, [oe, Oe]), Se(() => (Pe({ type: kt.RegisterDroppable, element: { id: Re, key: xe, disabled: ye, node: oe, rect: Qe, data: K } }), () => Pe({ type: kt.UnregisterDroppable, key: xe, id: Re })), [Re]), Se(() => {
4366
- ye !== Ke.current.disabled && (Pe({ type: kt.SetDroppableDisabled, id: Re, key: xe, disabled: ye }), Ke.current.disabled = ye);
4367
- }, [Re, xe, ye, Pe]), { active: Ne, rect: Qe, isOver: je?.id === Re, node: oe, over: je, setNodeRef: N };
4368
- }({ id: i, data: q, disabled: w.droppable, resizeObserverConfig: { updateMeasurementsFor: v, ...g } }), { active: j, activatorEvent: U, activeNodeRect: B, attributes: O, setNodeRef: W, listeners: te, isDragging: z, over: A, setActivatorNodeRef: P, transform: $ } = rs({ id: i, data: q, attributes: { ...Ss, ...n }, disabled: w.draggable }), ge = function() {
4370
+ }, [oe, Oe]), Se(() => (Pe({ type: kt.RegisterDroppable, element: { id: Te, key: xe, disabled: ye, node: oe, rect: Qe, data: K } }), () => Pe({ type: kt.UnregisterDroppable, key: xe, id: Te })), [Te]), Se(() => {
4371
+ ye !== Ke.current.disabled && (Pe({ type: kt.SetDroppableDisabled, id: Te, key: xe, disabled: ye }), Ke.current.disabled = ye);
4372
+ }, [Te, xe, ye, Pe]), { active: Ne, rect: Qe, isOver: je?.id === Te, node: oe, over: je, setNodeRef: N };
4373
+ }({ id: i, data: q, disabled: w.droppable, resizeObserverConfig: { updateMeasurementsFor: v, ...g } }), { active: j, activatorEvent: U, activeNodeRect: B, attributes: O, setNodeRef: W, listeners: te, isDragging: z, over: A, setActivatorNodeRef: P, transform: $ } = ls({ id: i, data: q, attributes: { ...xs, ...n }, disabled: w.draggable }), ge = function() {
4369
4374
  for (var de = arguments.length, me = new Array(de), ye = 0; ye < de; ye++) me[ye] = arguments[ye];
4370
- return Ce(() => (Re) => {
4371
- me.forEach((Ie) => Ie(Re));
4375
+ return Ce(() => (Te) => {
4376
+ me.forEach((Ie) => Ie(Te));
4372
4377
  }, me);
4373
- }(M, W), ae = !!j, Y = ae && !b && uo(u) && uo(E), _ = !G && z, be = _ && Y ? $ : null, Ae = Y ? be ?? (c ?? H)({ rects: D, activeNodeRect: B, activeIndex: u, overIndex: E, index: L }) : null, we = uo(u) && uo(E) ? o({ id: i, items: y, activeIndex: u, overIndex: E }) : L, _e = j?.id, he = Me({ activeId: _e, items: y, newIndex: we, containerId: d }), Ze = y !== he.current.items, De = t({ active: j, containerId: d, isDragging: z, isSorting: ae, id: i, index: L, items: y, newIndex: he.current.newIndex, previousItems: he.current.items, previousContainerId: he.current.containerId, transition: s, wasDragging: he.current.activeId != null }), ce = function(de) {
4374
- let { disabled: me, index: ye, node: Re, rect: Ie } = de;
4375
- const [xe, Ne] = ue(null), Pe = Me(ye);
4376
- return $t(() => {
4377
- if (!me && ye !== Pe.current && Re.current) {
4378
+ }(M, W), ae = !!j, Y = ae && !b && uo(u) && uo(E), _ = !G && z, be = _ && Y ? $ : null, Ae = Y ? be ?? (c ?? H)({ rects: D, activeNodeRect: B, activeIndex: u, overIndex: E, index: L }) : null, we = uo(u) && uo(E) ? o({ id: i, items: y, activeIndex: u, overIndex: E }) : L, _e = j?.id, he = Re({ activeId: _e, items: y, newIndex: we, containerId: d }), Ze = y !== he.current.items, De = t({ active: j, containerId: d, isDragging: z, isSorting: ae, id: i, index: L, items: y, newIndex: he.current.newIndex, previousItems: he.current.items, previousContainerId: he.current.containerId, transition: s, wasDragging: he.current.activeId != null }), ce = function(de) {
4379
+ let { disabled: me, index: ye, node: Te, rect: Ie } = de;
4380
+ const [xe, Ne] = ue(null), Pe = Re(ye);
4381
+ return Ut(() => {
4382
+ if (!me && ye !== Pe.current && Te.current) {
4378
4383
  const je = Ie.current;
4379
4384
  if (je) {
4380
- const m = kn(Re.current, { ignoreTransform: !0 }), Ke = { x: je.left - m.left, y: je.top - m.top, scaleX: je.width / m.width, scaleY: je.height / m.height };
4385
+ const m = Tn(Te.current, { ignoreTransform: !0 }), Ke = { x: je.left - m.left, y: je.top - m.top, scaleX: je.width / m.width, scaleY: je.height / m.height };
4381
4386
  (Ke.x || Ke.y) && Ne(Ke);
4382
4387
  }
4383
4388
  }
4384
4389
  ye !== Pe.current && (Pe.current = ye);
4385
- }, [me, ye, Re, Ie]), Se(() => {
4390
+ }, [me, ye, Te, Ie]), Se(() => {
4386
4391
  xe && Ne(null);
4387
4392
  }, [xe]), xe;
4388
4393
  }({ disabled: !De, index: L, node: F, rect: S });
@@ -4396,9 +4401,9 @@ function xs(e) {
4396
4401
  }, 50);
4397
4402
  return () => clearTimeout(de);
4398
4403
  }, [_e]), { active: j, activeIndex: u, attributes: O, data: q, rect: S, index: L, newIndex: we, items: y, isOver: T, isSorting: ae, isDragging: z, listeners: te, node: F, overIndex: E, over: A, setNodeRef: ge, setActivatorNodeRef: P, setDroppableNodeRef: M, setDraggableNodeRef: W, transform: ce ?? Ae, transition: function() {
4399
- if (ce || Ze && he.current.newIndex === L) return Cs;
4404
+ if (ce || Ze && he.current.newIndex === L) return Ss;
4400
4405
  if (!(_ && !ko(U) || !s) && (ae || De))
4401
- return dn.Transition.toString({ ...s, property: $l });
4406
+ return cn.Transition.toString({ ...s, property: $l });
4402
4407
  }() };
4403
4408
  }
4404
4409
  function qo(e) {
@@ -4406,9 +4411,9 @@ function qo(e) {
4406
4411
  const t = e.data.current;
4407
4412
  return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
4408
4413
  }
4409
- const ks = [st.Down, st.Right, st.Up, st.Left], Rs = (e, t) => {
4414
+ const Rs = [st.Down, st.Right, st.Up, st.Left], Ts = (e, t) => {
4410
4415
  let { context: { active: n, collisionRect: r, droppableRects: l, droppableContainers: o, over: i, scrollableAncestors: c } } = t;
4411
- if (ks.includes(e.code)) {
4416
+ if (Rs.includes(e.code)) {
4412
4417
  if (e.preventDefault(), !n || !r) return;
4413
4418
  const g = [];
4414
4419
  o.getEnabled().forEach((d) => {
@@ -4447,7 +4452,7 @@ const ks = [st.Down, st.Right, st.Up, st.Left], Rs = (e, t) => {
4447
4452
  const D = Ro(b).some((L, q) => c[q] !== L), E = Yr(d, u), G = function(L, q) {
4448
4453
  return !qo(L) || !qo(q) || !Yr(L, q) ? !1 : L.data.current.sortable.index < q.data.current.sortable.index;
4449
4454
  }(d, u), H = D || !E ? { x: 0, y: 0 } : { x: G ? r.width - k.width : 0, y: G ? r.height - k.height : 0 }, w = { x: k.left, y: k.top };
4450
- return H.x && H.y ? w : Zn(w, H);
4455
+ return H.x && H.y ? w : Yn(w, H);
4451
4456
  }
4452
4457
  }
4453
4458
  }
@@ -4455,22 +4460,22 @@ const ks = [st.Down, st.Right, st.Up, st.Left], Rs = (e, t) => {
4455
4460
  function Yr(e, t) {
4456
4461
  return !(!qo(e) || !qo(t)) && e.data.current.sortable.containerId === t.data.current.sortable.containerId;
4457
4462
  }
4458
- const Ts = (e) => {
4463
+ const Ms = (e) => {
4459
4464
  let { transform: t } = e;
4460
4465
  return { ...t, y: 0 };
4461
- }, Ms = ft(wt((e, t) => {
4466
+ }, Ds = ft(wt((e, t) => {
4462
4467
  const { children: n, style: r, className: l, index: o, editing: i, editable: c, selectedIndex: g, background: s, activeColor: y, borderColor: d, borderWidth: u, dragging: k, ...b } = e;
4463
- return Je("div", { ref: t, className: Bt(l), style: { ...r, display: "flex", flexDirection: "column", background: g === o ? "white" : s, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: g === o ? "700" : "400", lineHeight: "1", letterSpacing: "0px", textTransform: "none", minWidth: "unset" }, ...b, children: [Je("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [p("div", { style: { marginLeft: g === o ? "0px" : "-1px", marginTop: g === o ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), n, g === o ? p("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : p(qn, {})] }), p("div", { style: { flex: "1 1 100%", background: g === o && y ? y?.toCSS() : "none", minHeight: "2px" } })] });
4464
- })), Wt = { 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" }, Ul = tt.memo(tt.forwardRef(({ color: e, dragOverlay: t, dragging: n, disabled: r, fadeIn: l, handle: o, height: i, index: c, listeners: g, onRemove: s, renderItem: y, sorting: d, style: u, transition: k, transform: b, value: D, wrapperStyle: E, ...G }, H) => {
4468
+ return Je("div", { ref: t, className: Vt(l), style: { ...r, display: "flex", flexDirection: "column", background: g === o ? "white" : s, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: g === o ? "700" : "400", lineHeight: "1", letterSpacing: "0px", textTransform: "none", minWidth: "unset" }, ...b, children: [Je("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [p("div", { style: { marginLeft: g === o ? "0px" : "-1px", marginTop: g === o ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), n, g === o ? p("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : p(Sn, {})] }), p("div", { style: { flex: "1 1 100%", background: g === o && y ? y?.toCSS() : "none", minHeight: "2px" } })] });
4469
+ })), $t = { 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" }, Ul = tt.memo(tt.forwardRef(({ color: e, dragOverlay: t, dragging: n, disabled: r, fadeIn: l, handle: o, height: i, index: c, listeners: g, onRemove: s, renderItem: y, sorting: d, style: u, transition: k, transform: b, value: D, wrapperStyle: E, ...G }, H) => {
4465
4470
  Se(() => {
4466
4471
  if (t) return document.body.style.cursor = "grabbing", () => {
4467
4472
  document.body.style.cursor = "";
4468
4473
  };
4469
4474
  }, [t]);
4470
- const w = y ? y({ dragOverlay: !!t, dragging: !!n, sorting: !!d, index: c, fadeIn: !!l, listeners: g, ref: H, style: u, transform: b, transition: k, value: D }) : p(qn, { children: D });
4471
- return p("div", { className: Bt("tab-item", Wt.Wrapper, l && Wt.fadeIn, d && Wt.sorting, t && Wt.dragOverlay), style: { ...E, transition: [k, E?.transition].filter(Boolean).join(", "), "--translate-x": b ? `${Math.round(b.x)}px` : void 0, "--translate-y": b ? `${Math.round(b.y)}px` : void 0, "--scale-x": b?.scaleX ? `${b.scaleX}` : void 0, "--scale-y": b?.scaleY ? `${b.scaleY}` : void 0, "--index": c }, ref: H, children: p("div", { className: Bt(Wt.Item, n && Wt.dragging, o && Wt.withHandle, t && Wt.dragOverlay, r && Wt.disabled, e && Wt.color, "dragging"), style: u, "data-cypress": "draggable-item", ...o ? void 0 : g, ...G, tabIndex: o ? void 0 : -1, children: w }) });
4472
- })), Xr = { Row: "_Row_1kr10_1" }, Ds = ft(wt(({ children: e, horizontal: t, style: n }, r) => p("div", { ref: r, style: { ...n }, className: Bt(Xr.Row, t && Xr.horizontal), children: e }))), Es = { ...Hl }, As = ft(wt((e, t) => {
4473
- const { className: n, activationConstraint: r, animateLayoutChanges: l, adjustScale: o = !1, collisionDetection: i = za, coordinateGetter: c = Rs, dropAnimation: g = Es, getItemStyles: s = () => ({}), getNewIndex: y, handle: d = !1, items: u, onMove: k, isDisabled: b = () => !1, measuring: D, modifiers: E, renderItem: G, renderDivider: H, reorderItems: w = ir, strategy: L = ar, style: q, useDragOverlay: v = !0, onDragStart: S, wrapperStyle: F = () => ({}) } = e, [T, M] = ue(() => u);
4475
+ const w = y ? y({ dragOverlay: !!t, dragging: !!n, sorting: !!d, index: c, fadeIn: !!l, listeners: g, ref: H, style: u, transform: b, transition: k, value: D }) : p(Sn, { children: D });
4476
+ return p("div", { className: Vt("tab-item", $t.Wrapper, l && $t.fadeIn, d && $t.sorting, t && $t.dragOverlay), style: { ...E, transition: [k, E?.transition].filter(Boolean).join(", "), "--translate-x": b ? `${Math.round(b.x)}px` : void 0, "--translate-y": b ? `${Math.round(b.y)}px` : void 0, "--scale-x": b?.scaleX ? `${b.scaleX}` : void 0, "--scale-y": b?.scaleY ? `${b.scaleY}` : void 0, "--index": c }, ref: H, children: p("div", { className: Vt($t.Item, n && $t.dragging, o && $t.withHandle, t && $t.dragOverlay, r && $t.disabled, e && $t.color, "dragging"), style: u, "data-cypress": "draggable-item", ...o ? void 0 : g, ...G, tabIndex: o ? void 0 : -1, children: w }) });
4477
+ })), Xr = { Row: "_Row_1kr10_1" }, Es = ft(wt(({ children: e, horizontal: t, style: n }, r) => p("div", { ref: r, style: { ...n }, className: Vt(Xr.Row, t && Xr.horizontal), children: e }))), As = { ...Hl }, Is = ft(wt((e, t) => {
4478
+ const { className: n, activationConstraint: r, animateLayoutChanges: l, adjustScale: o = !1, collisionDetection: i = Fa, coordinateGetter: c = Ts, dropAnimation: g = As, getItemStyles: s = () => ({}), getNewIndex: y, handle: d = !1, items: u, onMove: k, isDisabled: b = () => !1, measuring: D, modifiers: E, renderItem: G, renderDivider: H, reorderItems: w = ir, strategy: L = ar, style: q, useDragOverlay: v = !0, onDragStart: S, wrapperStyle: F = () => ({}) } = e, [T, M] = ue(() => u);
4474
4479
  Se(() => {
4475
4480
  M(u);
4476
4481
  }, [u]);
@@ -4479,12 +4484,12 @@ const Ts = (e) => {
4479
4484
  return Ce(() => [...P].filter((ge) => ge != null), [...P]);
4480
4485
  }(Wo(zl, { activationConstraint: r }), Wo(Fl, { activationConstraint: r }), Wo(rr, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: c })), O = T.indexOf.bind(T), W = j ? O(j) : -1, te = [];
4481
4486
  T.map((A, P) => {
4482
- te.push(p(Is, { id: A, handle: d, index: P, style: s, wrapperStyle: F, disabled: b(A), renderItem: G, animateLayoutChanges: l, useDragOverlay: v, getNewIndex: y }, A + "-" + P));
4487
+ te.push(p(zs, { id: A, handle: d, index: P, style: s, wrapperStyle: F, disabled: b(A), renderItem: G, animateLayoutChanges: l, useDragOverlay: v, getNewIndex: y }, A + "-" + P));
4483
4488
  const $ = H?.({ key: "divider-" + P });
4484
4489
  $ && te.push($);
4485
4490
  });
4486
- const { getPortalContainer: z } = di();
4487
- return Je(ns, { sensors: B, collisionDetection: i, onDragStart: (A) => {
4491
+ const { getPortalContainer: z } = ci();
4492
+ return Je(os, { sensors: B, collisionDetection: i, onDragStart: (A) => {
4488
4493
  const { active: P } = A;
4489
4494
  P && (S?.(A), U(P.id));
4490
4495
  }, autoScroll: { canScroll: (A) => !0 }, onDragEnd: (A) => {
@@ -4494,14 +4499,14 @@ const Ts = (e) => {
4494
4499
  }
4495
4500
  }, onDragCancel: () => {
4496
4501
  U(null);
4497
- }, measuring: D, modifiers: E, children: [p("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...q }, className: Bt(n, Wt.Wrapper), children: p(ws, { items: T, strategy: L, children: p(Ds, { ref: t, children: te }) }) }), v ? dl(p(ps, { adjustScale: o, dropAnimation: g, children: j ? p(Ul, { value: T[W], handle: d, renderItem: G, wrapperStyle: F({ index: W, isDragging: !0, id: T[W] }), index: W, dragging: !0, style: s({ id: T[W], index: W, isSorting: j !== null, isDragging: !0, overIndex: -1, isDragOverlay: !0 }), dragOverlay: !0 }) : null }), z()) : null] });
4502
+ }, measuring: D, modifiers: E, children: [p("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...q }, className: Vt(n, $t.Wrapper), children: p(ys, { items: T, strategy: L, children: p(Es, { ref: t, children: te }) }) }), v ? dl(p(fs, { adjustScale: o, dropAnimation: g, children: j ? p(Ul, { value: T[W], handle: d, renderItem: G, wrapperStyle: F({ index: W, isDragging: !0, id: T[W] }), index: W, dragging: !0, style: s({ id: T[W], index: W, isSorting: j !== null, isDragging: !0, overIndex: -1, isDragOverlay: !0 }), dragOverlay: !0 }) : null }), z()) : null] });
4498
4503
  }));
4499
- function Is({ disabled: e, animateLayoutChanges: t, getNewIndex: n, handle: r, id: l, index: o, onRemove: i, style: c, renderItem: g, useDragOverlay: s, wrapperStyle: y }) {
4500
- const { attributes: d, isDragging: u, isSorting: k, listeners: b, overIndex: D, setNodeRef: E, transform: G, transition: H } = xs({ id: l, animateLayoutChanges: t, disabled: e, getNewIndex: n });
4504
+ function zs({ disabled: e, animateLayoutChanges: t, getNewIndex: n, handle: r, id: l, index: o, onRemove: i, style: c, renderItem: g, useDragOverlay: s, wrapperStyle: y }) {
4505
+ const { attributes: d, isDragging: u, isSorting: k, listeners: b, overIndex: D, setNodeRef: E, transform: G, transition: H } = ks({ id: l, animateLayoutChanges: t, disabled: e, getNewIndex: n });
4501
4506
  return p(Ul, { ref: E, value: l, disabled: e, dragging: u, sorting: k, handle: r, renderItem: g, index: o, style: c({ index: o, id: l, isDragging: u, isSorting: k, overIndex: D }), onRemove: i ? () => i(l) : void 0, transform: G, transition: H, wrapperStyle: y({ index: o, isDragging: u, id: l }), listeners: b, "data-index": o, "data-id": l, dragOverlay: !s && u, ...d });
4502
4507
  }
4503
- const zs = "_TabStrip_3x0dp_1", Fs = new tl("rgb(33, 115, 70)"), Ns = "#eee", Ls = (e) => p(Ms, { ...e }), Os = ft(wt((e, t) => {
4504
- const { children: n, style: r, className: l, selectedTabIndex: o = 0, tabNames: i = [], onSelectedTabIndexChange: c, onTabNameChange: g, onTabMove: s, createScrollStartButton: y = ci, createScrollEndButton: d = ui, createScrollEdgeButton: u = gi, createTabButton: k = Ls, createTabDivider: b, editLabelProps: D, disabled: E = !1, disableDrag: G = !1, background: H = "white", activeColor: w = Fs, borderColor: L = Ns, borderWidth: q = 1 } = e, [v, S] = ue(o), [F, T] = ue(i), M = Xe((xe) => {
4508
+ const Fs = "_TabStrip_3x0dp_1", Ns = new tl("rgb(33, 115, 70)"), Ls = "#eee", Os = (e) => p(Ds, { ...e }), Bs = ft(wt((e, t) => {
4509
+ const { children: n, style: r, className: l, selectedTabIndex: o = 0, tabNames: i = [], onSelectedTabIndexChange: c, onTabNameChange: g, onTabMove: s, createScrollStartButton: y = ui, createScrollEndButton: d = gi, createScrollEdgeButton: u = hi, createTabButton: k = Os, createTabDivider: b, editLabelProps: D, disabled: E = !1, disableDrag: G = !1, background: H = "white", activeColor: w = Ns, borderColor: L = Ls, borderWidth: q = 1 } = e, [v, S] = ue(o), [F, T] = ue(i), M = Xe((xe) => {
4505
4510
  const Ne = z.current?.[xe]?.closest(".tab-item") ?? z.current?.[xe];
4506
4511
  Ne && _.current?.scrollTo({ top: Ne.offsetTop, left: Ne.offsetLeft, behavior: "smooth" });
4507
4512
  }, []);
@@ -4512,22 +4517,22 @@ const zs = "_TabStrip_3x0dp_1", Fs = new tl("rgb(33, 115, 70)"), Ns = "#eee", Ls
4512
4517
  Ne !== v && (S(Ne), c?.(Ne)), M(Ne);
4513
4518
  }, [c, v]), U = Xe((xe, Ne) => {
4514
4519
  s?.(xe, Ne);
4515
- }, [s]), B = Me(null), [O, W] = ue(-1), te = Xe((xe, Ne) => {
4520
+ }, [s]), B = Re(null), [O, W] = ue(-1), te = Xe((xe, Ne) => {
4516
4521
  g?.(xe, Ne);
4517
4522
  }, [g]);
4518
- Ot(() => {
4523
+ Bt(() => {
4519
4524
  S(o);
4520
- }, [o]), Ot(() => {
4525
+ }, [o]), Bt(() => {
4521
4526
  T(i);
4522
4527
  }, [i]);
4523
- const z = Me([]), A = Me(null);
4524
- fi(t, () => Object.assign({ startEdit(xe) {
4528
+ const z = Re([]), A = Re(null);
4529
+ vi(t, () => Object.assign({ startEdit(xe) {
4525
4530
  z.current?.[xe]?.startEdit();
4526
4531
  }, cancel(xe) {
4527
4532
  z.current?.[xe]?.cancel();
4528
4533
  } }, A.current), [v, O]);
4529
4534
  const P = Xe(({ value: xe, index: Ne, dragging: Pe }) => {
4530
- const { style: je, maxLength: m, ...Ke } = D || {}, ut = p(Sa, { ref: (Qe) => {
4535
+ const { style: je, maxLength: m, ...Ke } = D || {}, ut = p(xa, { ref: (Qe) => {
4531
4536
  z.current[Ne] = Qe;
4532
4537
  }, value: xe, disabled: E, maxLength: m, style: { color: v === Ne && w ? w?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...je }, styleHover: {}, onSubmit: (Qe) => (B.current = !1, W(-1), te(Ne, Qe)), onCancel: () => {
4533
4538
  B.current = !1, W(-1);
@@ -4535,7 +4540,7 @@ const zs = "_TabStrip_3x0dp_1", Fs = new tl("rgb(33, 115, 70)"), Ns = "#eee", Ls
4535
4540
  B.current = !0, W(Ne);
4536
4541
  }, ...Ke });
4537
4542
  return k({ onClick: (Qe) => j(Qe, Ne), value: xe, index: Ne, editing: O === Ne && B.current, editable: !0, disabled: E, selectedIndex: v, background: H, activeColor: w, borderColor: L, borderWidth: q, dragging: Pe, children: ut });
4538
- }, [v, te, j, D, E, O, k]), [$, { width: ge }] = sn(), [ae, { width: Y }] = sn(), _ = Me(null), [be, Ae] = ue({ left: 0, top: 0, width: 0, height: 0 }), [we, _e] = ue(null);
4543
+ }, [v, te, j, D, E, O, k]), [$, { width: ge }] = dn(), [ae, { width: Y }] = dn(), _ = Re(null), [be, Ae] = ue({ left: 0, top: 0, width: 0, height: 0 }), [we, _e] = ue(null);
4539
4544
  Se(() => {
4540
4545
  we !== null && _.current && _.current.scrollTo({ left: we, behavior: "smooth" });
4541
4546
  }, [we]);
@@ -4548,7 +4553,7 @@ const zs = "_TabStrip_3x0dp_1", Fs = new tl("rgb(33, 115, 70)"), Ns = "#eee", Ls
4548
4553
  let Pe = _.current.firstChild.getBoundingClientRect(), je = _.current.firstChild.firstChild.children, m = 0;
4549
4554
  const Ke = Math.ceil(Y - ge);
4550
4555
  return m = Ne ? Ke : gr.getScrollTo(xe, Pe.left, je, !1, Math.max(0, xe + 200)), _e(m), Math.min(Ke, m);
4551
- }, [Y, ge]), De = Me(null), ce = Me(null), de = Xe(() => {
4556
+ }, [Y, ge]), De = Re(null), ce = Re(null), de = Xe(() => {
4552
4557
  ce.current && (clearTimeout(ce.current), ce.current = null, De.current = null);
4553
4558
  }, []), me = Xe((xe, Ne, Pe = 260) => {
4554
4559
  De.current = xe, ce.current = setTimeout(() => {
@@ -4557,22 +4562,22 @@ const zs = "_TabStrip_3x0dp_1", Fs = new tl("rgb(33, 115, 70)"), Ns = "#eee", Ls
4557
4562
  }, Pe);
4558
4563
  }, [he, Ze, de]);
4559
4564
  Se(() => () => de(), [de]);
4560
- const ye = Ce(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(be.left) <= 0 || Math.floor(Y - ge) === 0, orientation: ln.Horizontal, onMouseUp: de, onMouseLeave: de, onMouseDown: () => me(_.current.scrollLeft, !0), onClick: (xe) => he(Math.min(_.current.scrollLeft, we ?? Number.MAX_SAFE_INTEGER), xe.ctrlKey) }), [be, we, Y, ge]), Re = Ce(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(Y - ge) <= Math.ceil(be.left), orientation: ln.Horizontal, onMouseUp: de, onMouseLeave: de, onMouseDown: () => me(_.current.scrollLeft, !1), onClick: (xe) => Ze(Math.max(_.current.scrollLeft, we ?? 0), xe.ctrlKey) }), [be, we, Y, ge]), Ie = Ce(() => Je(qn, { children: [p("div", { style: { minWidth: "16px" } }), n, u?.(ye)] }), [ye, Re, y, d, n, u]);
4561
- return Je("div", { style: { ...r, display: "flex", alignItems: "stretch" }, className: Bt(zs, l), ref: A, children: [p("div", { style: { borderTop: `solid ${L} ${q}px`, position: "absolute", width: "100%" } }), p("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: Ie }), p("div", { className: "Tabs", ref: $, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: p("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: _, onScroll: (xe) => {
4565
+ const ye = Ce(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(be.left) <= 0 || Math.floor(Y - ge) === 0, orientation: an.Horizontal, onMouseUp: de, onMouseLeave: de, onMouseDown: () => me(_.current.scrollLeft, !0), onClick: (xe) => he(Math.min(_.current.scrollLeft, we ?? Number.MAX_SAFE_INTEGER), xe.ctrlKey) }), [be, we, Y, ge]), Te = Ce(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(Y - ge) <= Math.ceil(be.left), orientation: an.Horizontal, onMouseUp: de, onMouseLeave: de, onMouseDown: () => me(_.current.scrollLeft, !1), onClick: (xe) => Ze(Math.max(_.current.scrollLeft, we ?? 0), xe.ctrlKey) }), [be, we, Y, ge]), Ie = Ce(() => Je(Sn, { children: [p("div", { style: { minWidth: "16px" } }), n, u?.(ye)] }), [ye, Te, y, d, n, u]);
4566
+ return Je("div", { style: { ...r, display: "flex", alignItems: "stretch" }, className: Vt(Fs, l), ref: A, children: [p("div", { style: { borderTop: `solid ${L} ${q}px`, position: "absolute", width: "100%" } }), p("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: Ie }), p("div", { className: "Tabs", ref: $, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: p("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: _, onScroll: (xe) => {
4562
4567
  Ae({ left: xe.target.scrollLeft, top: xe.target.scrollTop, width: xe.target.scrollWidth, height: xe.target.scrollHeight });
4563
- }, children: p(As, { isDisabled: (xe) => E || G, items: F, strategy: vs, modifiers: [Ts], ref: ae, renderItem: P, renderDivider: b, onMove: U, activationConstraint: { distance: 15 } }) }) }), p("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u(Re) })] });
4568
+ }, children: p(Is, { isDisabled: (xe) => E || G, items: F, strategy: ws, modifiers: [Ms], ref: ae, renderItem: P, renderDivider: b, onMove: U, activationConstraint: { distance: 15 } }) }) }), p("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u(Te) })] });
4564
4569
  }));
4565
- Os.displayName = "TabStrip";
4566
- const od = (e) => Je("svg", { ...e, viewBox: "0 0 48 48", children: [p("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" }), p("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" }), p("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" }), p("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" })] }), rd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), ld = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), p("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" })] }), id = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), p("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" })] }), ad = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), p("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" })] }), sd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), dd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), p("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" })] }), cd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), ud = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), gd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), hd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" }), p("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" })] }), md = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" }), p("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" })] }), pd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), p("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), p("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), p("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), p("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), p("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" })] }), fd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), p("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" })] }), vd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), p("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" })] }), wd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), p("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" }), p("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" })] }), yd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), p("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" }), p("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" }), p("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), bd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), p("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" })] }), qd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), Cd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), Sd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), xd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), kd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), Rd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), Td = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), sr = Cn(null);
4570
+ Bs.displayName = "TabStrip";
4571
+ const rd = (e) => Je("svg", { ...e, viewBox: "0 0 48 48", children: [p("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" }), p("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" }), p("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" }), p("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" })] }), ld = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), id = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), p("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" })] }), ad = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), p("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" })] }), sd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), p("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" })] }), dd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), cd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), p("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" })] }), ud = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), gd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), hd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), md = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" }), p("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" })] }), pd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" }), p("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" })] }), fd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), p("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), p("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), p("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), p("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), p("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" })] }), vd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), p("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" })] }), wd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), p("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" }), p("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), p("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" })] }), yd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), p("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" }), p("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" })] }), bd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), p("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" }), p("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" }), p("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), qd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), p("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" }), p("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), p("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" })] }), Cd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), Sd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), xd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), kd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" }), p("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" })] }), Rd = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("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" }), p("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" })] }), Td = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), Md = (e) => Je("svg", { viewBox: "0,0,2048,2048", ...e, children: [p("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" }), p("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), p("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), p("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), p("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), p("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), p("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" })] }), sr = xn(null);
4567
4572
  sr.displayName = "DocThemesContext";
4568
- const Md = (e) => {
4573
+ const Dd = (e) => {
4569
4574
  const { themes: t, children: n } = e;
4570
4575
  return p(sr.Provider, { value: t, children: n });
4571
- }, Dd = () => {
4572
- const e = Yt(sr), [t] = ue(() => new oi());
4576
+ }, Ed = () => {
4577
+ const e = Xt(sr), [t] = ue(() => new ri());
4573
4578
  return Ce(() => e || t, [e]);
4574
- }, Bs = "_script-editor_iy654_5", Vs = tt.lazy(() => import("./BjkKvf1gjemfnoHr.mjs")), Hs = { 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" };
4575
- let Ln, On, en = ["define", "require"];
4579
+ }, Vs = "_script-editor_iy654_5", Hs = tt.lazy(() => import("./tWtXdQeWDT3tp47E.mjs")), Ps = { 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" };
4580
+ let Bn, Vn, tn = ["define", "require"];
4576
4581
  const Jr = async (e, t, n) => {
4577
4582
  const r = e.getModel();
4578
4583
  if (!r) return;
@@ -4583,7 +4588,7 @@ const Jr = async (e, t, n) => {
4583
4588
  for (let D = c.lineNumber; D >= 1; D--)
4584
4589
  if (r.getLineContent(D).trim() === "") {
4585
4590
  const E = dr(i, r.getOffsetAt({ lineNumber: D, column: 1 }), "function");
4586
- if (!E || Ws(E)) {
4591
+ if (!E || $s(E)) {
4587
4592
  s = !0, g.lineNumber = D + 1;
4588
4593
  break;
4589
4594
  }
@@ -4606,7 +4611,7 @@ const Jr = async (e, t, n) => {
4606
4611
  let b = null;
4607
4612
  r.pushEditOperations([], k, (D) => (b = D[0].range, d && b.startLineNumber++, u && b.endLineNumber--, [new t.Selection(b.startLineNumber, b.startColumn, b.endLineNumber, b.endColumn)])), e.setSelection({ startLineNumber: b.endLineNumber, startColumn: b.endColumn, endLineNumber: b.startLineNumber, endColumn: b.startColumn });
4608
4613
  };
4609
- function Ps(e, t) {
4614
+ function Ws(e, t) {
4610
4615
  let n = null;
4611
4616
  for (let r = 0; !n && r < e.length; r++) {
4612
4617
  const l = e[r];
@@ -4617,7 +4622,7 @@ function Ps(e, t) {
4617
4622
  function Qo(e, t, n, r, l = []) {
4618
4623
  if (r.kind === "function" && r.kindModifiers === "export") {
4619
4624
  const o = r.spans[0].start, i = e.getPositionAt(o);
4620
- l.push({ name: r.text, type: Ps(n, r), lineNumber: i.lineNumber });
4625
+ l.push({ name: r.text, type: Ws(n, r), lineNumber: i.lineNumber });
4621
4626
  }
4622
4627
  if (r.childItems) for (const o of r.childItems) Qo(e, t, n, o, l);
4623
4628
  return l;
@@ -4636,11 +4641,11 @@ function dr(e, t, n = "function", r) {
4636
4641
  return null;
4637
4642
  }
4638
4643
  }
4639
- function Ws(e) {
4644
+ function $s(e) {
4640
4645
  return e.kind === "comment";
4641
4646
  }
4642
- const Ed = ft(wt((e, t) => {
4643
- const { className: n, style: r, commands: l, readOnly: o = !1, onClose: i, darkMode: c, loadingPanel: g, autoFocus: s = !0, onStatusChange: y, ...d } = e, u = Me(null), k = ie(i, [i]), b = Me(!1), D = Ce(() => ({ contains(P) {
4647
+ const Ad = ft(wt((e, t) => {
4648
+ const { className: n, style: r, commands: l, readOnly: o = !1, onClose: i, darkMode: c, loadingPanel: g, autoFocus: s = !0, onStatusChange: y, ...d } = e, u = Re(null), k = ie(i, [i]), b = Re(!1), D = Ce(() => ({ contains(P) {
4644
4649
  if (!u.current) return;
4645
4650
  const $ = u.current.editor;
4646
4651
  return $ && $.getDomNode()?.contains(P);
@@ -4655,7 +4660,7 @@ const Ed = ft(wt((e, t) => {
4655
4660
  return P = l ? l.createChildGroup($, "scriptEditor", !1) : new Co($, "scriptEditor"), P.addCommands(E, !0), P;
4656
4661
  }, [l, E]), H = ol(G, ["executeSelectedScript"])[0], w = H?.context(), L = ie((P) => {
4657
4662
  H?.execute(P);
4658
- }, [H]), q = Me(""), [v, S] = ue(!1), F = ie(async () => {
4663
+ }, [H]), q = Re(""), [v, S] = ue(!1), F = ie(async () => {
4659
4664
  if (!u.current) return null;
4660
4665
  const P = u.current, $ = P.editor;
4661
4666
  if (!$) return null;
@@ -4694,7 +4699,7 @@ const Ed = ft(wt((e, t) => {
4694
4699
  P !== void 0 && (ge.message = P), y?.(ge);
4695
4700
  const ae = F();
4696
4701
  w.setSelectedFunction(ae);
4697
- }, [w, y]), U = Me(null);
4702
+ }, [w, y]), U = Re(null);
4698
4703
  Se(() => {
4699
4704
  if (!w) return;
4700
4705
  const P = { insertSnippet: (ge) => {
@@ -4733,10 +4738,10 @@ const Ed = ft(wt((e, t) => {
4733
4738
  if (!$) return !1;
4734
4739
  const ge = $.editor;
4735
4740
  return !!ge && (ge.focus(), !0);
4736
- }, []), O = Me(null), W = ie((P, $) => {
4741
+ }, []), O = Re(null), W = ie((P, $) => {
4737
4742
  u.current = { monaco: $, editor: P }, S(!0), j("Loading Types");
4738
4743
  const ge = w.getScripts().getModules().getItems()[0]?.getSource() ?? "";
4739
- P.setValue(ge), import("./BicU25h_rgZ803fI.mjs").then((Y) => Y.c).then(async (Y) => {
4744
+ P.setValue(ge), import("./Vb46TnWVv7cNzPMf.mjs").then((Y) => Y.c).then(async (Y) => {
4740
4745
  j(""), Y.AutoTypings.create(P, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: $, onUpdate: (_, be) => {
4741
4746
  if (_.type === "LookedUpPackage" && _.success !== void 0) {
4742
4747
  const Ae = $.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
@@ -4793,20 +4798,20 @@ const Ed = ft(wt((e, t) => {
4793
4798
  });
4794
4799
  }, [w, y]), te = Ce(() => v ? null : g || p("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [v, g]), z = Ce(() => {
4795
4800
  if (!v) {
4796
- if (!Ln) {
4797
- Ln = {};
4798
- for (let $ = 0; $ < en.length; $++) {
4799
- const ge = en[$];
4800
- Ln[ge] = globalThis[ge];
4801
+ if (!Bn) {
4802
+ Bn = {};
4803
+ for (let $ = 0; $ < tn.length; $++) {
4804
+ const ge = tn[$];
4805
+ Bn[ge] = globalThis[ge];
4801
4806
  }
4802
4807
  }
4803
- if (On) for (let $ = 0; $ < en.length; $++) {
4804
- const ge = en[$];
4805
- globalThis[ge] = On[ge];
4808
+ if (Vn) for (let $ = 0; $ < tn.length; $++) {
4809
+ const ge = tn[$];
4810
+ globalThis[ge] = Vn[ge];
4806
4811
  }
4807
4812
  }
4808
4813
  const P = w?.getScripts().getModules().getByName("scripting")?.getSource() ?? "";
4809
- return Je("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [p(ll, { children: p(Vs, { theme: c ? "extended-dark" : "extended", options: { ...Hs, fixedOverflowWidgets: !0, readOnly: o }, language: "typescript", value: P, onValidate: ($) => {
4814
+ return Je("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [p(ll, { children: p(Hs, { theme: c ? "extended-dark" : "extended", options: { ...Ps, fixedOverflowWidgets: !0, readOnly: o }, language: "typescript", value: P, onValidate: ($) => {
4810
4815
  let ge = !1;
4811
4816
  for (let ae = 0; !ge && ae < $?.length; ae++) $[ae].severity === 8 && (ge = !0);
4812
4817
  }, beforeMount: ($) => {
@@ -4827,7 +4832,7 @@ const Ed = ft(wt((e, t) => {
4827
4832
  for (let ce = 0; ce < De[0].length; ce++) {
4828
4833
  const de = De[0]?.[ce];
4829
4834
  if (de && de.type.startsWith("string")) {
4830
- let me = de.offset, ye = De[0]?.[ce + 1]?.offset ?? Ze.length, Re = new $.Range(he, me + 1, he, ye + 1), Ie = _.getValueInRange(Re);
4835
+ let me = de.offset, ye = De[0]?.[ce + 1]?.offset ?? Ze.length, Te = new $.Range(he, me + 1, he, ye + 1), Ie = _.getValueInRange(Te);
4831
4836
  const xe = Ie[0];
4832
4837
  xe !== "`" && xe !== "'" && xe !== '"' || (me++, Ie = Ie.substring(1));
4833
4838
  const Ne = Ie[Ie.length - 1];
@@ -4857,11 +4862,11 @@ const Ed = ft(wt((e, t) => {
4857
4862
  }
4858
4863
  if (q.current && (await Jr(u.current.editor, u.current.monaco, q.current), q.current = null), b.current && requestAnimationFrame(async () => {
4859
4864
  b.current && $.editor.focus();
4860
- }), !On) {
4861
- On = {};
4862
- for (let Y = 0; Y < en.length; Y++) {
4863
- const _ = en[Y];
4864
- On[_] = globalThis[_];
4865
+ }), !Vn) {
4866
+ Vn = {};
4867
+ for (let Y = 0; Y < tn.length; Y++) {
4868
+ const _ = tn[Y];
4869
+ Vn[_] = globalThis[_];
4865
4870
  }
4866
4871
  }
4867
4872
  (() => {
@@ -4879,15 +4884,15 @@ const Ed = ft(wt((e, t) => {
4879
4884
  } catch {
4880
4885
  }
4881
4886
  };
4882
- for (let _ = 0; _ < en.length; _++) {
4883
- const be = en[_];
4884
- Y(be, Ln[be]);
4887
+ for (let _ = 0; _ < tn.length; _++) {
4888
+ const be = tn[_];
4889
+ Y(be, Bn[be]);
4885
4890
  }
4886
- Ln = void 0;
4891
+ Bn = void 0;
4887
4892
  })(), S(!0);
4888
4893
  })();
4889
4894
  }, onMount: W }) }), te] });
4890
- }, [w, G, o, te, c]), A = jt(t, () => ({ isScriptEditorElement: () => !0, focus: (P) => {
4895
+ }, [w, G, o, te, c]), A = _t(t, () => ({ isScriptEditorElement: () => !0, focus: (P) => {
4891
4896
  B(P);
4892
4897
  }, close: () => {
4893
4898
  k?.();
@@ -4898,65 +4903,65 @@ const Ed = ft(wt((e, t) => {
4898
4903
  u.current?.editor && requestAnimationFrame(() => {
4899
4904
  A.current?.contains(document.activeElement) && B();
4900
4905
  });
4901
- }), []), p("div", { className: Bt("script-editor", Bs, n), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...r }, ref: A, ...d, children: z });
4906
+ }), []), p("div", { className: Vt("script-editor", Vs, n), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...r }, ref: A, ...d, children: z });
4902
4907
  }));
4903
4908
  export {
4904
- wd as ChartAreaIcon,
4905
- yd as ChartAreaStackedIcon,
4906
- bd as ChartAreaStackedPercentIcon,
4907
- pd as ChartBarIcon,
4908
- fd as ChartBarStackedIcon,
4909
- vd as ChartBarStackedPercentIcon,
4910
- Td as ChartBubble3DIcon,
4911
- Rd as ChartBubbleIcon,
4912
- rd as ChartColumnIcon,
4913
- ld as ChartColumnStackedIcon,
4914
- id as ChartColumnStackedPercentIcon,
4915
- nd as ChartEditor,
4916
- ad as ChartLineIcon,
4917
- cd as ChartLineMarkersIcon,
4918
- sd as ChartLineStackedIcon,
4919
- ud as ChartLineStackedMarkersIcon,
4920
- dd as ChartLineStackedPercentIcon,
4921
- gd as ChartLineStackedPercentMarkersIcon,
4922
- md as ChartPieDoughnutIcon,
4923
- hd as ChartPieIcon,
4924
- kd as ChartScatterLinesIcon,
4925
- xd as ChartScatterLinesMarkersIcon,
4926
- Cd as ChartScatterLinesMarkersSmoothIcon,
4927
- Sd as ChartScatterLinesSmoothIcon,
4928
- qd as ChartScatterMarkersIcon,
4929
- td as CommandContext,
4909
+ yd as ChartAreaIcon,
4910
+ bd as ChartAreaStackedIcon,
4911
+ qd as ChartAreaStackedPercentIcon,
4912
+ fd as ChartBarIcon,
4913
+ vd as ChartBarStackedIcon,
4914
+ wd as ChartBarStackedPercentIcon,
4915
+ Md as ChartBubble3DIcon,
4916
+ Td as ChartBubbleIcon,
4917
+ ld as ChartColumnIcon,
4918
+ id as ChartColumnStackedIcon,
4919
+ ad as ChartColumnStackedPercentIcon,
4920
+ od as ChartEditor,
4921
+ sd as ChartLineIcon,
4922
+ ud as ChartLineMarkersIcon,
4923
+ dd as ChartLineStackedIcon,
4924
+ gd as ChartLineStackedMarkersIcon,
4925
+ cd as ChartLineStackedPercentIcon,
4926
+ hd as ChartLineStackedPercentMarkersIcon,
4927
+ pd as ChartPieDoughnutIcon,
4928
+ md as ChartPieIcon,
4929
+ Rd as ChartScatterLinesIcon,
4930
+ kd as ChartScatterLinesMarkersIcon,
4931
+ Sd as ChartScatterLinesMarkersSmoothIcon,
4932
+ xd as ChartScatterLinesSmoothIcon,
4933
+ Cd as ChartScatterMarkersIcon,
4934
+ nd as CommandContext,
4930
4935
  hr as CornerTriangle,
4931
- Ys as DateUtils,
4936
+ Xs as DateUtils,
4932
4937
  sr as DocThemesContext,
4933
- Md as DocThemesProvider,
4934
- Sa as EditableLabel,
4935
- ed as EmptyFrame,
4936
- Si as FilterButton,
4937
- Xs as FontUtils,
4938
+ Dd as DocThemesProvider,
4939
+ xa as EditableLabel,
4940
+ td as EmptyFrame,
4941
+ xi as FilterButton,
4942
+ Js as FontUtils,
4938
4943
  Ul as Item,
4939
- zd as LicenseManager,
4940
- od as LogoNoPaddingIcon,
4941
- Vi as LogoTextNoPaddingIcon,
4942
- da as MovableArea,
4943
- ba as PictureEditor,
4944
- Ds as Row,
4945
- Ed as ScriptEditor,
4946
- Ri as SheetCellEditor,
4947
- xi as SheetCellRenderer,
4948
- ya as SheetElement,
4944
+ Fd as LicenseManager,
4945
+ rd as LogoNoPaddingIcon,
4946
+ Hi as LogoTextNoPaddingIcon,
4947
+ ca as MovableArea,
4948
+ qa as PictureEditor,
4949
+ Es as Row,
4950
+ Ad as ScriptEditor,
4951
+ Ti as SheetCellEditor,
4952
+ ki as SheetCellRenderer,
4953
+ ba as SheetElement,
4949
4954
  ml as SheetScrollbar,
4950
- Js as StaticBorderRenderer,
4951
- Mi as StyledStrokePath,
4952
- Ms as Tab,
4953
- Os as TabStrip,
4954
- Ti as createCellEditStateFromCell,
4955
+ Qs as StaticBorderRenderer,
4956
+ Di as StyledStrokePath,
4957
+ Ds as Tab,
4958
+ Bs as TabStrip,
4959
+ Mi as createCellEditStateFromCell,
4955
4960
  gl as useBordersOverlay,
4956
- Dd as useDocThemes,
4961
+ Ed as useDocThemes,
4957
4962
  ht as useModelListener,
4958
- ca as useMovableCommands,
4959
- Qs as useRangeListener,
4960
- Pi as useSheetCommands,
4961
- Xi as useSheetCopyPaste
4963
+ ua as useMovableCommands,
4964
+ ed as useRangeListener,
4965
+ Wi as useSheetCommands,
4966
+ Ji as useSheetCopyPaste
4962
4967
  };