@sheetxl/react 0.7.12 → 0.7.13

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,65 +1,65 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.12
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { FormulaError as e, NumberFormat as t, ICell as o, IBorder as n, ITextFrame as l, GeomUtils as r, ScalarType as i, IFont as a, IRange as s, LicenseManager as d, IColor as c, AutoFill as g, ISheetView as u, Color as h, IFill as m, RangeClipboardItem as p, ExternalRangeClipboardItem as f, TextUtils as w, IAnchored as v, CoordUtils as q, ThemeCollection as y } from "@sheetxl/sdk";
8
8
  import { LicenseManager } from "@sheetxl/sdk";
9
- import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as T, KeyModifiers as R, CommandGroup as M, useCopyPaste as A, DynamicIcon as z, useNotifier as F, useEditMode as D, useGlobalClipboard as E, NotifierType as I, useCommands as N, ScrollbarOrientation as H, VirtualScrollbar as P, MouseButtonCodes as V, ToolTipPlacement as L, HorizontalAlignment as B, ScrollPane as O, useFullscreenPortal as $, defaultCreateScrollStartButton as W, defaultCreateScrollEndButton as U, defaultCreateScrollEdgeButton as _, ScrollUtils as G } from "@sheetxl/utils-react";
9
+ import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as T, KeyModifiers as R, CommandGroup as M, useCopyPaste as A, DynamicIcon as z, useNotifier as F, usePersistenceState as D, useEditMode as I, useGlobalClipboard as E, NotifierType as H, useCommands as N, ScrollbarOrientation as P, VirtualScrollbar as V, MouseButtonCodes as L, ToolTipPlacement as B, HorizontalAlignment as O, ScrollPane as $, useFullscreenPortal as W, defaultCreateScrollStartButton as U, defaultCreateScrollEndButton as _, defaultCreateScrollEdgeButton as G, ScrollUtils as Z } from "@sheetxl/utils-react";
10
10
  export * from "@sheetxl/utils-react";
11
- import { jsx as Z, jsxs as j, Fragment as K } from "react/jsx-runtime";
12
- import { CommonUtils as X, AnchorLocation as Y, TypesUtils as J, CoordUtils as Q, Notifier as ee } from "@sheetxl/utils";
13
- import te, { memo as oe, useMemo as ne, useState as le, forwardRef as re, useRef as ie, useEffect as ae, useLayoutEffect as se, useCallback as de, createContext as ce, useContext as ge, useReducer as ue, Suspense as he, createElement as me, useImperativeHandle as pe } from "react";
14
- import { STANDARD_KEY_CHARS as fe, useSelection as we, useHeaderSelection as ve, HeaderRenderer as qe, Grid as ye, HeaderDivider as Ce, SELECTION_CLIP_INSETS as be, defaultSelectionRenderer as Se, useKeyboardEditorOverlay as xe, Selection as ke, SVGLine as Te } from "@sheetxl/grid-react";
15
- import { mergeRefs as Re } from "react-merge-refs";
16
- import { useMeasure as Me } from "react-use";
17
- import Ae from "clsx";
18
- import { unstable_batchedUpdates as ze, createPortal as Fe } from "react-dom";
19
- import { useForkRef as De } from "rooks";
20
- import { sortableKeyboardCoordinates as Ee, arrayMove as Ie, rectSortingStrategy as Ne, SortableContext as He, useSortable as Pe, horizontalListSortingStrategy as Ve } from "@dnd-kit/sortable";
21
- import { restrictToHorizontalAxis as Le } from "@dnd-kit/modifiers";
22
- import { closestCenter as Be, defaultDropAnimation as Oe, useSensors as $e, useSensor as We, MouseSensor as Ue, TouchSensor as _e, KeyboardSensor as Ge, DndContext as Ze, DragOverlay as je } from "@dnd-kit/core";
23
- const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Ke }, Symbol.toStringTag, { value: "Module" })), Ye = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Je = (e2, t2 = true, o2 = Ye) => {
11
+ import { jsx as j, jsxs as K, Fragment as X } from "react/jsx-runtime";
12
+ import { CommonUtils as Y, AnchorLocation as J, TypesUtils as Q, CoordUtils as ee, Notifier as te } from "@sheetxl/utils";
13
+ import oe, { memo as ne, useMemo as le, useState as re, forwardRef as ie, useRef as ae, useEffect as se, useLayoutEffect as de, useCallback as ce, createContext as ge, useContext as ue, useReducer as he, Suspense as me, createElement as pe, useImperativeHandle as fe } from "react";
14
+ import { STANDARD_KEY_CHARS as we, useSelection as ve, useHeaderSelection as qe, HeaderRenderer as ye, Grid as Ce, HeaderDivider as be, SELECTION_CLIP_INSETS as Se, defaultSelectionRenderer as xe, useKeyboardEditorOverlay as ke, Selection as Te, SVGLine as Re } from "@sheetxl/grid-react";
15
+ import { mergeRefs as Me } from "react-merge-refs";
16
+ import { useMeasure as Ae } from "react-use";
17
+ import ze from "clsx";
18
+ import { unstable_batchedUpdates as Fe, createPortal as De } from "react-dom";
19
+ import { useForkRef as Ie } from "rooks";
20
+ import { sortableKeyboardCoordinates as Ee, arrayMove as He, rectSortingStrategy as Ne, SortableContext as Pe, useSortable as Ve, horizontalListSortingStrategy as Le } from "@dnd-kit/sortable";
21
+ import { restrictToHorizontalAxis as Be } from "@dnd-kit/modifiers";
22
+ import { closestCenter as Oe, defaultDropAnimation as $e, useSensors as We, useSensor as Ue, MouseSensor as _e, TouchSensor as Ge, KeyboardSensor as Ze, DndContext as je, DragOverlay as Ke } from "@dnd-kit/core";
23
+ const Xe = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Ye = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Xe }, Symbol.toStringTag, { value: "Module" })), Je = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Qe = (e2, t2 = true, o2 = Je) => {
24
24
  if (!o2 || 0 === o2.length) return e2;
25
25
  if (void 0 === e2) return o2[0];
26
26
  if (t2 && e2 >= o2[o2.length - 1]) return e2;
27
27
  if (!t2 && e2 <= o2[0]) return e2;
28
- let n2 = X.findEqualOrGreater(o2, e2);
28
+ let n2 = Y.findEqualOrGreater(o2, e2);
29
29
  return t2 ? (o2[n2] === e2 && (n2 += 1), o2[n2] || (n2 -= 1), o2[n2]) : (n2 -= 1, o2[n2]);
30
- }, Qe = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: Ye, findNextFontSize: Je }, Symbol.toStringTag, { value: "Module" })), et = oe((e2) => {
31
- const { anchorLocation: t2 = Y.TopLeft, cellWidth: o2, cellHeight: n2, size: l2 = 7, inset: r2 = 1, darkMode: i2, fill: a2, pathProps: s2, style: d2, ...c2 } = e2, g2 = l2, u2 = r2;
30
+ }, et = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: Je, findNextFontSize: Qe }, Symbol.toStringTag, { value: "Module" })), tt = ne((e2) => {
31
+ const { anchorLocation: t2 = J.TopLeft, cellWidth: o2, cellHeight: n2, size: l2 = 7, inset: r2 = 1, darkMode: i2, fill: a2, pathProps: s2, style: d2, ...c2 } = e2, g2 = l2, u2 = r2;
32
32
  let h2 = "red", m2 = [], p2 = [];
33
- return t2 === Y.TopLeft ? (h2 = i2 ? "rgb(255, 198, 246)" : "green", m2.push(u2), p2.push(u2), m2.push(u2 + g2), p2.push(u2), m2.push(u2), p2.push(u2 + g2)) : t2 === Y.TopRight ? (h2 = i2 ? "rgb(0, 255, 255)" : "red", m2.push(o2 - u2), p2.push(u2), m2.push(o2 - (u2 + g2)), p2.push(u2), m2.push(o2 - u2), p2.push(u2 + g2)) : t2 === Y.BottomRight ? (h2 = i2 ? "rgb(236, 252, 211)" : "purple", m2.push(o2 - u2), p2.push(n2 - u2), m2.push(o2 - (u2 + g2)), p2.push(n2 - u2), m2.push(o2 - u2), p2.push(n2 - (u2 + g2))) : t2 === Y.BottomLeft && (h2 = i2 ? "rgb(255, 236, 183)" : "blue", m2.push(u2), p2.push(n2 - u2), m2.push(u2 + g2), p2.push(n2 - u2), m2.push(u2), p2.push(n2 - (u2 + g2))), Z("svg", { width: `${o2}`, height: `${n2}`, viewBox: `0 0 ${o2} ${n2}`, style: { position: "absolute", width: `${o2}px`, height: `${n2}px`, pointerEvents: "none", ...d2 }, ...c2, children: Z("path", { d: `M ${m2[0]} ${p2[0]} L ${m2[1]} ${p2[1]} L ${m2[2]} ${p2[2]} L ${m2[0]} ${p2[0]} Z`, fill: a2 ?? h2, ...s2 }) });
34
- }), tt = (e2) => {
35
- const { renderBounds: t2, darkMode: o2, zoom: n2, disabled: l2, filter: r2, onFilterButtonMouseDown: i2, style: a2, ...s2 } = e2, d2 = ne(() => {
33
+ return t2 === J.TopLeft ? (h2 = i2 ? "rgb(255, 198, 246)" : "green", m2.push(u2), p2.push(u2), m2.push(u2 + g2), p2.push(u2), m2.push(u2), p2.push(u2 + g2)) : t2 === J.TopRight ? (h2 = i2 ? "rgb(0, 255, 255)" : "red", m2.push(o2 - u2), p2.push(u2), m2.push(o2 - (u2 + g2)), p2.push(u2), m2.push(o2 - u2), p2.push(u2 + g2)) : t2 === J.BottomRight ? (h2 = i2 ? "rgb(236, 252, 211)" : "purple", m2.push(o2 - u2), p2.push(n2 - u2), m2.push(o2 - (u2 + g2)), p2.push(n2 - u2), m2.push(o2 - u2), p2.push(n2 - (u2 + g2))) : t2 === J.BottomLeft && (h2 = i2 ? "rgb(255, 236, 183)" : "blue", m2.push(u2), p2.push(n2 - u2), m2.push(u2 + g2), p2.push(n2 - u2), m2.push(u2), p2.push(n2 - (u2 + g2))), j("svg", { width: `${o2}`, height: `${n2}`, viewBox: `0 0 ${o2} ${n2}`, style: { position: "absolute", width: `${o2}px`, height: `${n2}px`, pointerEvents: "none", ...d2 }, ...c2, children: j("path", { d: `M ${m2[0]} ${p2[0]} L ${m2[1]} ${p2[1]} L ${m2[2]} ${p2[2]} L ${m2[0]} ${p2[0]} Z`, fill: a2 ?? h2, ...s2 }) });
34
+ }), ot = (e2) => {
35
+ const { renderBounds: t2, darkMode: o2, zoom: n2, disabled: l2, filter: r2, onFilterButtonMouseDown: i2, style: a2, ...s2 } = e2, d2 = le(() => {
36
36
  let e3 = null;
37
37
  const t3 = r2.getSortField();
38
38
  t3 && (e3 = t3.reverse);
39
39
  const o3 = r2.getField(), n3 = o3 && o3.criteria && o3.criteria.length > 0;
40
40
  return true === e3 ? n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,9.452298 H 4.24187 V 2.0761788 H 3.170122 V 9.452298 H 1.5625 l 2.143496,2.950446 z" : "m 13.109228,9.865914 h -1.607622 v -7.37612 h -1.071748 v 7.37612 H 8.822236 l 2.143496,2.950446 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : false === e3 ? n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,5.0266248 H 4.24187 V 12.402744 H 3.170122 V 5.0266248 H 1.5625 l 2.143496,-2.950446 z" : "m 13.109228,5.44024 h -1.607622 v 7.37612 H 10.429858 V 5.44024 H 8.822236 L 10.965732,2.489794 Z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : "M 7.4530672,10.134098 2.6725085,5.2978998 3.370275,4.5911648 7.4530672,8.7264777 11.530095,4.5911648 l 0.697764,0.706735M 7.4529247,10.134098 2.9086709,5.2978998 3.5719465,4.5911648 7.4529247,8.7264777 11.328423,4.5911648 l 0.663274,0.70673";
41
- }, [r2]), [c2, g2] = le(false);
41
+ }, [r2]), [c2, g2] = re(false);
42
42
  const u2 = Math.min(Math.min(18, t2.height - 8), t2.width);
43
- return Z("div", { style: { width: `${u2}px`, height: `${u2}px`, right: "0px", boxShadow: `0px 0px 0px 0.5px var(${c2 && !l2 ? "--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: (u2 > 12 ? 1 : 0) + "px", marginRight: "2px", display: "flex", alignItems: "center", justifyContent: "center", cursor: l2 ? void 0 : "pointer", ...a2 }, onMouseEnter: () => g2(true), onMouseLeave: () => g2(false), onMouseDown: (e3) => {
43
+ return j("div", { style: { width: `${u2}px`, height: `${u2}px`, right: "0px", boxShadow: `0px 0px 0px 0.5px var(${c2 && !l2 ? "--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: (u2 > 12 ? 1 : 0) + "px", marginRight: "2px", display: "flex", alignItems: "center", justifyContent: "center", cursor: l2 ? void 0 : "pointer", ...a2 }, onMouseEnter: () => g2(true), onMouseLeave: () => g2(false), onMouseDown: (e3) => {
44
44
  i2?.(e3, r2), e3.preventDefault();
45
- }, ...s2, children: Z("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !l2 ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l2 ? 0.6 : 1 }, children: Z("path", { d: d2 }) }) });
46
- }, ot = (s2) => {
47
- const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: v2, showFormulas: q2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: T2 = tt, ...R2 } = s2, M2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), D2 = d2.getStyle(), E2 = w2?.darkMode ?? false;
48
- let I2, N2;
49
- const H2 = F2 && F2.isFormulaError, P2 = H2 && F2 instanceof e.Parse;
45
+ }, ...s2, children: j("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !l2 ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l2 ? 0.6 : 1 }, children: j("path", { d: d2 }) }) });
46
+ }, nt = (s2) => {
47
+ const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: v2, showFormulas: q2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: T2 = ot, ...R2 } = s2, M2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), D2 = d2.getStyle(), I2 = w2?.darkMode ?? false;
48
+ let E2, H2;
49
+ const N2 = F2 && F2.isFormulaError, P2 = N2 && F2 instanceof e.Parse;
50
50
  let V2, L2 = q2 || P2;
51
- if (L2) if (z2.isSpillOverflow()) N2 = "";
51
+ if (L2) if (z2.isSpillOverflow()) H2 = "";
52
52
  else {
53
53
  const e2 = z2.getFormulaText();
54
- e2 ? N2 = e2 : I2 = z2.getNumberFormat(t.Type.General);
54
+ e2 ? H2 = e2 : E2 = z2.getNumberFormat(t.Type.General);
55
55
  }
56
- else I2 = z2.getNumberFormat();
56
+ else E2 = z2.getNumberFormat();
57
57
  L2 || (V2 = z2.getTextOverflow());
58
58
  const B2 = V2 ? V2.colBounds.width + V2.leftOffset + V2.rightOffset : A2, O2 = V2 ? V2.anchorBounds.x - V2.leftOffset : 0, $2 = V2 ? V2.anchorBounds.width : A2, W2 = V2 ? V2.anchorBounds.x : 0;
59
59
  let U2, _2 = z2.getRenderHorizontalAlignment();
60
- I2 && (U2 = I2?.formattedRuns, N2 = U2?.runs[0]?.text ?? I2.displayText);
60
+ E2 && (U2 = E2?.formattedRuns, H2 = U2?.runs[0]?.text ?? E2.displayText);
61
61
  const G2 = z2.getCalcStatus() === o.CalcStatus.Pending;
62
- let K2 = null, J2 = D2.getFill().toCSS(E2, g2), Q2 = 0, ee2 = 0;
62
+ let Z2 = null, X2 = D2.getFill().toCSS(I2, g2), Q2 = 0, ee2 = 0;
63
63
  if (!D2.getBorder().isEmpty()) {
64
64
  const e2 = D2.getBorder().getRight();
65
65
  !e2.isNone() && n.BuiltInDefinitions.get(e2.getStyle()).width > 1 && (Q2 = 1);
@@ -67,33 +67,33 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
67
67
  !t2.isNone() && n.BuiltInDefinitions.get(t2.getStyle()).width > 1 && (ee2 = 1);
68
68
  }
69
69
  let te2 = null;
70
- if (A2 !== $2 || Q2 || ee2 || "number" == typeof J2?.backgroundPosition) {
71
- const { backgroundPosition: e2, ...t2 } = J2, o2 = e2 ?? 0, n2 = f2?.getScrollTopLeft(), l2 = o2 ? -(g2.x + (n2.left ?? 0)) % o2 : 0, r2 = o2 ? -(g2.y + (n2.top ?? 0)) % o2 : 0;
72
- (void 0 !== e2 || Q2 || ee2 || A2 !== $2) && (1 === Object.keys(t2).length && "none" === t2.background || (J2 = null, te2 = Z("div", { className: "fill", style: { marginLeft: `${l2}px`, marginTop: `${r2}px`, left: W2 * p2, width: C.boundPixel($2 * p2 - l2 + 1 + Q2), height: C.boundPixel(g2.height - r2 + 1 + ee2), ...t2 } }, "background")));
70
+ if (A2 !== $2 || Q2 || ee2 || "number" == typeof X2?.backgroundPosition) {
71
+ const { backgroundPosition: e2, ...t2 } = X2, o2 = e2 ?? 0, n2 = f2?.getScrollTopLeft(), l2 = o2 ? -(g2.x + (n2.left ?? 0)) % o2 : 0, r2 = o2 ? -(g2.y + (n2.top ?? 0)) % o2 : 0;
72
+ (void 0 !== e2 || Q2 || ee2 || A2 !== $2) && (1 === Object.keys(t2).length && "none" === t2.background || (X2 = null, te2 = j("div", { className: "fill", style: { marginLeft: `${l2}px`, marginTop: `${r2}px`, left: W2 * p2, width: C.boundPixel($2 * p2 - l2 + 1 + Q2), height: C.boundPixel(g2.height - r2 + 1 + ee2), ...t2 } }, "background")));
73
73
  }
74
74
  let oe2 = null;
75
75
  const ne2 = z2.getComments(), le2 = z2.getWarnings(), re2 = z2.getErrors();
76
- if (ne2 || H2 || re2.length > 0 || le2.length > 0) {
77
- const e2 = { size: 7 * p2, darkMode: E2, cellWidth: $2 * p2 + 2, cellHeight: M2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
78
- oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || H2) && oe2.push(Z(et, { anchorLocation: Y.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(Z(et, { anchorLocation: Y.TopRight, ...e2 }, `indicator-${oe2.length}`));
76
+ if (ne2 || N2 || re2.length > 0 || le2.length > 0) {
77
+ const e2 = { size: 7 * p2, darkMode: I2, cellWidth: $2 * p2 + 2, cellHeight: M2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
78
+ oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || N2) && oe2.push(j(tt, { anchorLocation: J.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(j(tt, { anchorLocation: J.TopRight, ...e2 }, `indicator-${oe2.length}`));
79
79
  }
80
80
  const ie2 = D2.getFont();
81
- let ae2 = I2?.conditionalColor;
81
+ let ae2 = E2?.conditionalColor;
82
82
  const se2 = D2.getAlignment(), de2 = se2.getHorizontal() === l.HorizontalAlignment.Fill, ce2 = se2.getHorizontal() === l.HorizontalAlignment.CenterContinuous || de2, ge2 = ce2 || L2 ? 0 : se2.getRotation(), ue2 = z2.getInsets(), he2 = ue2.top + ue2.bottom;
83
83
  let me2 = ue2.left, pe2 = ue2.right;
84
84
  const fe2 = { ...h2, left: h2.left - 1, top: h2.top - 1, width: h2.width + 1 + Q2, height: h2.height + 1 + ee2 }, we2 = z2.getColumnFilter(), ve2 = we2 && !we2?.hasHiddenButton();
85
85
  let qe2 = null;
86
- G2 && (qe2 = j("div", { className: "slider", children: [Z("div", { className: "line" }), Z("div", { className: "subline inc" })] }, "pending"));
86
+ G2 && (qe2 = K("div", { className: "slider", children: [j("div", { className: "line" }), j("div", { className: "subline inc" })] }, "pending"));
87
87
  const ye2 = !(G2 || ve2 || te2 || u2 || oe2 || U2?.runs.length > 1 || V2 || ge2 % 360 != 0);
88
- "none" === J2?.background && (J2 = null);
88
+ "none" === X2?.background && (X2 = null);
89
89
  let Ce2 = ce2 || !(!V2 || !(V2.rightIndex > 0 || V2.leftIndex > 0 || V2.colSpan > 1));
90
90
  if (!Ce2) {
91
91
  const e2 = z2.getSpans();
92
92
  (e2.width > 1 || e2.height > 1) && (Ce2 = true);
93
93
  }
94
- const be2 = { ...J2, ...fe2, pointerEvents: S2 ? "auto" : void 0 };
95
- if (!X.isEmpty(N2) || !X.isEmpty(I2?.repeatPlaceholder)) {
96
- const e2 = I2?.canWrap ?? false;
94
+ const be2 = { ...X2, ...fe2, pointerEvents: S2 ? "auto" : void 0 };
95
+ if (!Y.isEmpty(H2) || !Y.isEmpty(E2?.repeatPlaceholder)) {
96
+ const e2 = E2?.canWrap ?? false;
97
97
  let o2 = null, n2 = null, s3 = null, d3 = [], c3 = true;
98
98
  y2 || L2 || 0 !== F2 || (c3 = false);
99
99
  const g3 = z2.getTextFrame(L2);
@@ -105,7 +105,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
105
105
  const t2 = { x: 0, y: 0, width: B2 - 1, height: M2 };
106
106
  if (U2) {
107
107
  let e4 = U2.width;
108
- if (I2.repeatPlaceholder || I2.repeatChars.length > 0) {
108
+ if (E2.repeatPlaceholder || E2.repeatChars.length > 0) {
109
109
  const o3 = r.boundsToPoints(t2), n3 = r.rotatePoints(o3, -ge2);
110
110
  e4 = r.minBoundingRect(n3).width;
111
111
  }
@@ -115,9 +115,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
115
115
  }
116
116
  let u3 = null;
117
117
  e2 && (u3 = { width: c4 });
118
- let m3 = null, f3 = I2?.repeatPlaceholder;
118
+ let m3 = null, f3 = E2?.repeatPlaceholder;
119
119
  const w3 = g3.layout(u3);
120
- if (o2 = w3.bounds, L2 ? o2 = { ...o2, width: 0 } : U2 && (o2 = { ...o2, width: I2.repeatPlaceholder || I2.repeatChars.length > 0 ? c4 : U2.width }), ge2 && e2) {
120
+ if (o2 = w3.bounds, L2 ? o2 = { ...o2, width: 0 } : U2 && (o2 = { ...o2, width: E2.repeatPlaceholder || E2.repeatChars.length > 0 ? c4 : U2.width }), ge2 && e2) {
121
121
  let e3 = null;
122
122
  w3.visitLines({ visitTextLine: (t2, o3) => {
123
123
  let n3 = t2.bounds;
@@ -127,7 +127,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
127
127
  }
128
128
  if (!f3 && z2.getType() !== i.String && Math.floor(o2.width) > c4) {
129
129
  if ("General" === D2.getNumberFormat() && z2.getType() === i.Number) {
130
- const e3 = D2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = X.splitNumber(o3), l2 = Math.min(10, t2 - (Math.max(1, n3.ipLength) + 1) - (o3 < 0 ? 1 : 0));
130
+ const e3 = D2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = Y.splitNumber(o3), l2 = Math.min(10, t2 - (Math.max(1, n3.ipLength) + 1) - (o3 < 0 ? 1 : 0));
131
131
  if (l2 >= -1) {
132
132
  const e4 = `0${l2 > 0 ? "." : ""}${"#".repeat(Math.max(0, l2))}`;
133
133
  m3 = z2.getNumberFormat(e4).displayText, "0" === m3 && o3 < 0 && (m3 = "-0");
@@ -154,10 +154,10 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
154
154
  n2.width = o3.width, n2.height = o3.height;
155
155
  }
156
156
  _2 === l.HorizontalAlignment.Center || _2 === l.HorizontalAlignment.CenterContinuous ? n2.x = (B2 - n2.width) / 2 : _2 === l.HorizontalAlignment.Right ? n2.x = B2 - n2.width - 0.5 : n2.x = 0.5, se2.getVertical() === l.VerticalAlignment.Center ? n2.y = (M2 - n2.height) / 2 : se2.getVertical() === l.VerticalAlignment.Bottom ? n2.y = M2 - n2.height - he2 : n2.y = he2;
157
- const v3 = ye2 ? { ...R2 } : void 0, q3 = { style: { left: h2.left - 1, top: h2.top - 1, width: h2.width + 1, height: h2.height + 1, transform: ge2 ? `rotate(${ge2}deg)` : void 0, cursor: S2 ? "pointer" : void 0, pointerEvents: S2 ? "auto" : void 0, zIndex: Ce2 ? 1 : void 0, ...J2 }, onMouseDown: S2, onDoubleClick: S2 ? (e3) => {
157
+ const v3 = ye2 ? { ...R2 } : void 0, q3 = { style: { left: h2.left - 1, top: h2.top - 1, width: h2.width + 1, height: h2.height + 1, transform: ge2 ? `rotate(${ge2}deg)` : void 0, cursor: S2 ? "pointer" : void 0, pointerEvents: S2 ? "auto" : void 0, zIndex: Ce2 ? 1 : void 0, ...X2 }, onMouseDown: S2, onDoubleClick: S2 ? (e3) => {
158
158
  e3.stopPropagation(), e3.preventDefault();
159
159
  } : null, ...v3 };
160
- P2 && (q3.style.textDecorationStyle = "wavy", q3.style.textDecorationColor = E2 ? "rgb(0, 255, 255)" : "red", q3.style.textDecorationLine = "underline");
160
+ P2 && (q3.style.textDecorationStyle = "wavy", q3.style.textDecorationColor = I2 ? "rgb(0, 255, 255)" : "red", q3.style.textDecorationLine = "underline");
161
161
  const y3 = ie2.getSize(), C2 = (i2, s4, g4, u4, h3, m4, f4, w4 = null) => {
162
162
  let v4 = y3 * p2, q4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width: D2.measureText(i2, v4).width }];
163
163
  f4 && f4?.width !== o2.width && (o2 = { ...o2, width: f4?.width });
@@ -179,7 +179,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
179
179
  h3 === l.HorizontalAlignment.Justify ? (C4 = s5, m4 || (y4 = "justify")) : h3 === l.HorizontalAlignment.Distributed && (C4 = s5, y4 = m4 || t2.text.split(" ").length - 1 == 0 ? "center" : "justify");
180
180
  const { style: S4, className: x4, ...k4 } = w5;
181
181
  let T3 = t2.text;
182
- if (h3 === l.HorizontalAlignment.Fill && 0 === I2?.repeatChars.length) {
182
+ if (h3 === l.HorizontalAlignment.Fill && 0 === E2?.repeatChars.length) {
183
183
  const e3 = Math.max(1, Math.floor((q4?.width ?? 0) / (g5?.width ?? 1)));
184
184
  T3 = T3.repeat(e3);
185
185
  }
@@ -189,14 +189,14 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
189
189
  const e3 = ie2.getSuperSubScale();
190
190
  v4 *= e3, R3 *= e3;
191
191
  }
192
- const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(E2, p2, true), fontSize: v4 * a.getDeviceScale() };
193
- ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(E2));
192
+ const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(I2, p2, true), fontSize: v4 * a.getDeviceScale() };
193
+ ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(I2));
194
194
  const D3 = b3 + o3;
195
- let N3 = ue2.top + q4.y + 0;
196
- if (A3 && (N3 += f5 - v4), c5) {
197
- const e3 = (g5.x + D3) * p2 + 1, t3 = (g5.y + N3) * p2 + 1;
195
+ let H3 = ue2.top + q4.y + 0;
196
+ if (A3 && (H3 += f5 - v4), c5) {
197
+ const e3 = (g5.x + D3) * p2 + 1, t3 = (g5.y + H3) * p2 + 1;
198
198
  t3 < 0 ? F3.marginTop = t3 : F3.paddingTop = t3, e3 < 0 ? (F3.width = (S4?.width ?? 0) - e3, F3.left = (S4?.left ?? 0) + e3) : F3.paddingLeft = e3, F3.paddingRight = Math.max(0, (S4?.width ?? 0) - C4 * p2 - e3), F3.paddingBottom = Math.max(0, (S4?.height ?? 0) - q4.height * p2 - t3), F3.height = (S4?.height ?? 0) + (t3 < 0 ? -t3 : 0), (t3 < 0 || e3 < 0) && (F3.clipPath = `inset(${t3 < 0 ? -t3 : 0}px 0px 0px ${e3 < 0 ? 1 - e3 : 0}px)`);
199
- } else if (F3.left = (g5.x + D3) * p2 + 1, F3.top = (g5.y + N3) * p2 + 1, F3.width = g5.width * p2, F3.height = g5.height * p2, ge2 && !e2) {
199
+ } else if (F3.left = (g5.x + D3) * p2 + 1, F3.top = (g5.y + H3) * p2 + 1, F3.width = g5.width * p2, F3.height = g5.height * p2, ge2 && !e2) {
200
200
  F3.left = (g5.x + o3) * p2 + 1, F3.top = (g5.y + (q4.y + 0)) * p2 + 1;
201
201
  const e3 = r.centerPoint({ x: b3 + o3, y: 0, width: t2.width, height: q4.height }), n4 = r.centerPoint({ x: b3, y: 0, width: s5, height: q4.height }), l2 = r.rotatePoints([e3], ge2, n4), i4 = { x: l2[0].x - e3.x, y: l2[0].y - e3.y };
202
202
  F3.left = F3.left + i4.x * p2, F3.top = F3.top + i4.y * p2;
@@ -206,8 +206,8 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
206
206
  F3.left = F3.left + m5.x * p2, F3.top = F3.top + m5.y * p2;
207
207
  }
208
208
  F3.lineHeight = R3 * p2 + "px";
209
- const H3 = ye2 ? void 0 : "text-line";
210
- d3.push(Z("div", { className: x4 ? `${x4} ${H3}` : H3, style: F3, ...k4, children: T3 }, `text-${q4.y}-${i3}-${n3}`));
209
+ const N3 = ye2 ? void 0 : "text-line";
210
+ d3.push(j("div", { className: x4 ? `${x4} ${N3}` : N3, style: F3, ...k4, children: T3 }, `text-${q4.y}-${i3}-${n3}`));
211
211
  };
212
212
  if (se2.getOverflow() === l.Overflow.Shrink && c4 > 0) {
213
213
  let e3 = o2?.width ?? 0, t2 = 0;
@@ -233,41 +233,41 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
233
233
  const r2 = e3.runs[0].text.replace(/\s+$/, ""), i2 = t2 === n3 - 1;
234
234
  let a2 = _2 === l.HorizontalAlignment.Justify && (i2 || e3.runs[0].text.endsWith("\n")) ? l.HorizontalAlignment.Left : _2, s4 = 0;
235
235
  t2 > 0 && (se2.getVertical() === l.VerticalAlignment.Distributed || se2.getVertical() === l.VerticalAlignment.Justify) && (s4 = Math.max(0, (M2 - (he2 + 3) - e3.bounds.height * n3) / (n3 - 1) * t2)), se2.getVertical() === l.VerticalAlignment.Distributed && ge2 && ge2 % 90 == 0 && ge2 % 180 != 0 && (a2 = l.HorizontalAlignment.Distributed), a2 !== l.HorizontalAlignment.Justify && a2 !== l.HorizontalAlignment.Distributed && a2 !== l.HorizontalAlignment.Fill || (o2 = { ...o2, width: c4 });
236
- let d4 = de2 || I2 && (I2.repeatChars.length > 0 || I2.spacingChars.length > 0) ? o2.width : e3.bounds.width;
236
+ let d4 = de2 || E2 && (E2.repeatChars.length > 0 || E2.spacingChars.length > 0) ? o2.width : e3.bounds.width;
237
237
  const u4 = { ...e3.bounds, y: e3.bounds.y + s4 + 0, width: d4 };
238
238
  C2(r2, t2, u4, g3.lines[0].baseline, a2, i2, 1 === n3 ? U2 : null, ye2 && t2 > 0 ? { ...q3, style: { ...q3.style, background: void 0 } } : q3);
239
239
  } });
240
240
  }
241
- d3.length > 0 && (K2 = d3);
241
+ d3.length > 0 && (Z2 = d3);
242
242
  }
243
- if (ye2) return K2 && K2.length > 0 ? K2 : Z("div", { style: be2, ...R2 });
243
+ if (ye2) return Z2 && Z2.length > 0 ? Z2 : j("div", { style: be2, ...R2 });
244
244
  let Se2 = S2 ? "auto" : fe2.pointerEvents, xe2 = null;
245
245
  if (ve2) {
246
246
  const e2 = { x: W2 * p2 - 1, y: -1, width: $2 * p2 + 1, height: M2 * p2 + 1 };
247
- Se2 = "auto", xe2 = T2({ renderBounds: e2, darkMode: E2, className: "filter-button", disabled: !z2.isEditAllowed(), zoom: p2, filter: z2.getColumnFilter(), onFilterButtonMouseDown: x2, ...k2 }), xe2 && (xe2 = Z("div", { style: { ...e2, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (e3) => {
247
+ Se2 = "auto", xe2 = T2({ renderBounds: e2, darkMode: I2, className: "filter-button", disabled: !z2.isEditAllowed(), zoom: p2, filter: z2.getColumnFilter(), onFilterButtonMouseDown: x2, ...k2 }), xe2 && (xe2 = j("div", { style: { ...e2, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (e3) => {
248
248
  e3.stopPropagation(), e3.preventDefault();
249
249
  }, children: xe2 }, "filterButton"));
250
250
  }
251
- G2 && !K2 && (K2 = Z("div", { style: { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none" }, children: "..." }, "pending-ellipsis"));
252
- const ke2 = [te2, K2, u2, oe2, qe2, xe2];
253
- return Z("div", { style: { ...J2, ...fe2, pointerEvents: Se2 }, ...R2, children: ke2 });
254
- }, nt = { text: "", placeholder: "" }, lt = (e2, t2) => {
251
+ G2 && !Z2 && (Z2 = j("div", { style: { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none" }, children: "..." }, "pending-ellipsis"));
252
+ const ke2 = [te2, Z2, u2, oe2, qe2, xe2];
253
+ return j("div", { style: { ...X2, ...fe2, pointerEvents: Se2 }, ...R2, children: ke2 });
254
+ }, lt = { text: "", placeholder: "" }, rt = (e2, t2) => {
255
255
  if (-1 === e2.clean().getStyle().getNumberFormat().indexOf("%")) return false;
256
256
  const o2 = t2 ?? e2.dirty ?? "";
257
257
  return 0 === o2.length || o2.endsWith("%") && !isNaN(parseFloat(o2.substring(0, o2.length - 1)));
258
- }, rt = Object.freeze([x.Delete, x.Home, x.End]), it = oe(re((e2, t2) => {
259
- const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: v2, setNaturalSize: q2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: D2, autoFocus: E2 = false, ...I2 } = e2, { height: N2 = 0, width: H2 = 0 } = v2 ?? {}, P2 = m2?.darkMode ?? false, V2 = ie(null), [L2, B2] = le(false), [O2, $2] = le(null), [W2, U2] = le(() => o2);
260
- ae(() => {
258
+ }, it = Object.freeze([x.Delete, x.Home, x.End]), at = ne(ie((e2, t2) => {
259
+ const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: v2, setNaturalSize: q2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: D2, autoFocus: I2 = false, ...E2 } = e2, { height: H2 = 0, width: N2 = 0 } = v2 ?? {}, P2 = m2?.darkMode ?? false, V2 = ae(null), [L2, B2] = re(false), [O2, $2] = re(null), [W2, U2] = re(() => o2);
260
+ se(() => {
261
261
  te2.current = false, U2(o2);
262
262
  }, [o2]);
263
- const _2 = ne(() => {
263
+ const _2 = le(() => {
264
264
  const e3 = W2.clean();
265
265
  let t3 = e3.getStyle();
266
266
  h2 || (t3 = t3.createTemporaryStyle({ font: { size: u2?.fontSize } }));
267
267
  const o3 = e3.getFormula(), n3 = t3.getAlignment(), r3 = o3 ? l.HorizontalAlignment.Left : n3.getHorizontal(), a2 = n3.getVertical(), s2 = n3.getOverflow() === l.Overflow.Wrap || e3.getType() === i.String && (r3 === l.HorizontalAlignment.Justify || r3 === l.HorizontalAlignment.Distributed || a2 === l.VerticalAlignment.Justify || a2 === l.VerticalAlignment.Distributed), d3 = ((e4) => {
268
- if (!e4) return nt;
268
+ if (!e4) return lt;
269
269
  const t4 = e4.clean();
270
- if (!t4) return nt;
270
+ if (!t4) return lt;
271
271
  let o4 = t4.getStyle()?.getQuotePrefix();
272
272
  if (void 0 === e4.dirty || null === e4.dirty) {
273
273
  let n4 = "", l2 = t4.getFormulaText();
@@ -284,35 +284,35 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
284
284
  }
285
285
  return { text: e4.dirty ?? "", placeholder: "" };
286
286
  })(W2), c3 = d3.text, g3 = l.toCSSHorizontalTextAlign(h2 && !o3 ? W2.clean()?.getRenderHorizontalAlignment() : l.HorizontalAlignment.Left);
287
- return { style: t3, isWrapped: s2, textValue: c3, formula: o3, frameVertAlign: a2, placeholder: d3.placeholder, insets: h2 ? e3.getInsets() : J.EmptyRect, textAlign: g3 };
288
- }, [W2, u2, P2, F2, h2]), G2 = ie(null), j2 = b(t2, () => ({ startEdit: (e3) => {
287
+ return { style: t3, isWrapped: s2, textValue: c3, formula: o3, frameVertAlign: a2, placeholder: d3.placeholder, insets: h2 ? e3.getInsets() : Q.EmptyRect, textAlign: g3 };
288
+ }, [W2, u2, P2, F2, h2]), G2 = ae(null), Z2 = b(t2, () => ({ startEdit: (e3) => {
289
289
  V2.current = e3?.initialSelection;
290
290
  const t3 = { ...o2, editMode: e3?.editMode ?? false };
291
291
  void 0 !== e3?.text && (t3.dirty = e3.text), t3.editMode === o2.editMode && t3.dirty === o2.dirty || (U2(t3), Y2?.(t3));
292
292
  }, submitEdit: () => oe2(), cancelEdit() {
293
- re2();
293
+ ne2();
294
294
  }, autoFocus() {
295
295
  G2.current.focus();
296
296
  }, dispatchEvent: (e3) => G2.current.dispatchEvent(e3), focus() {
297
297
  G2.current.focus();
298
298
  }, getLineHeight: X2 }), [n2, o2]);
299
- se(() => {
299
+ de(() => {
300
300
  if (!O2 || !L2) return;
301
301
  const e3 = G2.current;
302
302
  _2.textValue, e3 && e3.setSelectionRange(O2.start, O2.end, O2.direction);
303
303
  }, [G2.current, O2, _2.textValue]);
304
- const K2 = ne(() => {
304
+ const K2 = le(() => {
305
305
  const e3 = W2?.clean(), t3 = _2.style.createTemporaryTextFrame(_2.textValue, e3?.getType() === i.String), o3 = h2 ? e3.getInsets().right + e3.getInsets().left : 0;
306
306
  let n3 = null;
307
- _2.isWrapped && (n3 = { width: H2 - o3 });
307
+ _2.isWrapped && (n3 = { width: N2 - o3 });
308
308
  return t3.layout(n3);
309
- }, [_2, H2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
310
- se(() => {
309
+ }, [_2, N2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
310
+ de(() => {
311
311
  if (!K2) return;
312
- const e3 = _2.style, t3 = e3.getInsets() ?? J.EmptyRect, o3 = h2 ? t3.left + t3.right : 0, n3 = h2 ? 0.04 * e3.getFont().getSize() : 1, l2 = Math.round(_2.isWrapped ? void 0 : K2.bounds.width + o3 + n3), r3 = Math.round(K2.bounds.height);
312
+ const e3 = _2.style, t3 = e3.getInsets() ?? Q.EmptyRect, o3 = h2 ? t3.left + t3.right : 0, n3 = h2 ? 0.04 * e3.getFont().getSize() : 1, l2 = Math.round(_2.isWrapped ? void 0 : K2.bounds.width + o3 + n3), r3 = Math.round(K2.bounds.height);
313
313
  q2?.({ width: l2, height: r3 });
314
314
  }, [K2, q2, _2, h2, W2]);
315
- const Y2 = S(r2, [r2]), Q2 = S((e3) => {
315
+ const Y2 = S(r2, [r2]), J2 = S((e3) => {
316
316
  if (W2.dirty === e3) return;
317
317
  const t3 = { ...W2 };
318
318
  t3.dirty = e3, G2.current, U2(t3), Y2?.(t3);
@@ -320,7 +320,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
320
320
  if (W2.editMode === e3) return;
321
321
  const t3 = { ...W2 };
322
322
  t3.editMode = e3, U2(t3), Y2?.(t3);
323
- }, [W2]), te2 = ie(false), oe2 = S(() => {
323
+ }, [W2]), te2 = ae(false), oe2 = S(() => {
324
324
  if (te2.current) return false;
325
325
  try {
326
326
  d2?.(W2), g2?.(), te2.current = true;
@@ -328,24 +328,24 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
328
328
  return false;
329
329
  }
330
330
  return true;
331
- }, [d2, W2]), re2 = S(() => {
331
+ }, [d2, W2]), ne2 = S(() => {
332
332
  te2.current = true, U2(o2), c2?.(), g2?.();
333
- }, [c2, o2]), ce2 = S((e3) => {
333
+ }, [c2, o2]), ie2 = S((e3) => {
334
334
  if (!G2.current) return;
335
- if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === fe.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
335
+ if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === we.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
336
336
  const t4 = { ...W2 };
337
337
  let o4 = 0;
338
- return lt(t4, t4.dirty) && !isNaN(parseFloat(e3.key)) ? (t4.dirty?.endsWith("%") ? t4.dirty = (t4.dirty.substring(0, t4.dirty.length - 1) ?? "") + e3.key + "%" : t4.dirty = (t4.dirty ?? "") + e3.key + "%", o4 = t4.dirty.length - 1) : "Backspace" === e3.nativeEvent.key ? (t4.dirty = "", o4 = t4.dirty.length) : (t4.dirty = (t4.dirty ?? "") + e3.key, o4 = t4.dirty.length), G2.current.value = t4?.dirty, V2.current = { start: o4, end: o4, direction: "forward" }, G2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), Y2?.(t4), void e3.preventDefault();
338
+ return rt(t4, t4.dirty) && !isNaN(parseFloat(e3.key)) ? (t4.dirty?.endsWith("%") ? t4.dirty = (t4.dirty.substring(0, t4.dirty.length - 1) ?? "") + e3.key + "%" : t4.dirty = (t4.dirty ?? "") + e3.key + "%", o4 = t4.dirty.length - 1) : "Backspace" === e3.nativeEvent.key ? (t4.dirty = "", o4 = t4.dirty.length) : (t4.dirty = (t4.dirty ?? "") + e3.key, o4 = t4.dirty.length), G2.current.value = t4?.dirty, V2.current = { start: o4, end: o4, direction: "forward" }, G2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), Y2?.(t4), void e3.preventDefault();
339
339
  }
340
340
  const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey, l2 = e3.nativeEvent.metaKey;
341
- if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void re2();
341
+ if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void ne2();
342
342
  if (e3.which === x.F2) return ee2(true), void e3.preventDefault();
343
343
  const r3 = e3.target;
344
344
  if ("%" === e3.key && r3.selectionStart === r3.selectionEnd && "%" === r3.value[r3.selectionStart] && W2?.clean().getStyle().numberFormat.includes("%")) return $2({ start: r3.selectionStart + 1, end: r3.selectionEnd + 1, direction: r3.selectionDirection }), void e3.preventDefault();
345
345
  if (e3.which === x.Enter) {
346
346
  if (e3.preventDefault(), l2 || n3) {
347
347
  const e4 = _2.textValue.substring(0, r3.selectionStart) + "\n" + _2.textValue.substring(r3.selectionEnd);
348
- return Q2(e4), void $2({ start: r3.selectionStart + 1, end: r3.selectionStart + 1, direction: r3.selectionDirection });
348
+ return J2(e4), void $2({ start: r3.selectionStart + 1, end: r3.selectionStart + 1, direction: r3.selectionDirection });
349
349
  }
350
350
  return void (oe2() && f2.getSelection().traverse(s.Orientation.Column, o3));
351
351
  }
@@ -367,12 +367,12 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
367
367
  if (i2) {
368
368
  if (!(t3 || o3 || n3 || l2) && !W2.editMode) return void oe2();
369
369
  }
370
- W2.editMode && (i2 || rt.includes(e3.which)) && e3.stopPropagation();
371
- }, [W2, f2, _2]), ge2 = de(() => {
370
+ W2.editMode && (i2 || it.includes(e3.which)) && e3.stopPropagation();
371
+ }, [W2, f2, _2]), ge2 = ce(() => {
372
372
  G2.current?.focus(), setTimeout(() => {
373
373
  G2.current?.select();
374
374
  }, 0);
375
- }, []), ue2 = de(() => {
375
+ }, []), ue2 = ce(() => {
376
376
  G2.current?.focus(), console.log("implement toggleRelativeReferences");
377
377
  }, []), he2 = S(() => {
378
378
  const e3 = G2.current?.value;
@@ -381,42 +381,42 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
381
381
  const e4 = f2.getRange({ rowIndex: p2.rowIndex - 1, colIndex: p2.colIndex }).getCell();
382
382
  e4 && (t3 = e4.toTextUnformatted(true));
383
383
  }
384
- Q2(e3 + t3);
384
+ J2(e3 + t3);
385
385
  }, [p2, f2]);
386
- ae(() => f2.getRange(p2).addListener(() => {
386
+ se(() => f2.getRange(p2).addListener(() => {
387
387
  const e3 = { ...W2, clean: () => f2.getRange(p2).getCell() };
388
388
  U2(e3), Y2?.(e3);
389
389
  }), [p2, f2, W2]);
390
- const me2 = de(() => {
391
- const e3 = W2.clean().createTemporaryCell({ value: Ke(), style: { numberFormat: "Medium Time" } }).toText();
392
- Q2((G2.current?.value ?? "") + e3);
393
- }, [f2]), pe2 = de(() => {
394
- const e3 = W2.clean().createTemporaryCell({ value: Ke(), style: { numberFormat: "Short Date" } }).toText();
395
- Q2((G2.current?.value ?? "") + e3);
396
- }, [f2]), we2 = ne(() => ({ element: () => G2.current, doCopy: (e3) => {
390
+ const me2 = ce(() => {
391
+ const e3 = W2.clean().createTemporaryCell({ value: Xe(), style: { numberFormat: "Medium Time" } }).toText();
392
+ J2((G2.current?.value ?? "") + e3);
393
+ }, [f2]), pe2 = ce(() => {
394
+ const e3 = W2.clean().createTemporaryCell({ value: Xe(), style: { numberFormat: "Short Date" } }).toText();
395
+ J2((G2.current?.value ?? "") + e3);
396
+ }, [f2]), fe2 = le(() => ({ element: () => G2.current, doCopy: (e3) => {
397
397
  const t3 = G2.current.value.substring(G2.current.selectionStart, G2.current.selectionEnd);
398
398
  if (e3?.isCut) {
399
399
  const e4 = G2.current.value.substring(0, G2.current.selectionStart) + G2.current.value.substring(G2.current.selectionEnd, G2.current.value.length);
400
- Q2(e4);
400
+ J2(e4);
401
401
  }
402
402
  return t3;
403
- } }), [G2.current]), ve2 = ne(() => ({ element: () => G2.current, doPaste: async (e3, t3) => {
403
+ } }), [G2.current]), ve2 = le(() => ({ element: () => G2.current, doPaste: async (e3, t3) => {
404
404
  const o3 = await e3.toText?.();
405
405
  if (!o3) return true;
406
406
  const n3 = G2.current.value.substring(0, G2.current.selectionStart) + o3 + G2.current.value.substring(G2.current.selectionEnd, G2.current.value.length);
407
- return Q2(n3), $2({ start: G2.current.selectionStart + o3.length, end: G2.current.selectionStart + o3.length, direction: "forward" }), true;
408
- } }), [G2.current]), qe2 = ne(() => ({ contains: (e3) => G2.current?.contains(e3) || false, focus() {
407
+ return J2(n3), $2({ start: G2.current.selectionStart + o3.length, end: G2.current.selectionStart + o3.length, direction: "forward" }), true;
408
+ } }), [G2.current]), qe2 = le(() => ({ contains: (e3) => G2.current?.contains(e3) || false, focus() {
409
409
  G2.current.focus();
410
- } }), []), ye2 = ne(() => [new k("selectAll", qe2, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [R.Ctrl] } }, ge2), new k("startEditValueAbove", qe2, { 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, he2), new k("startEditCurrentTime", qe2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Shift] } }, me2), new k("startEditCurrentDate", qe2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl] } }, pe2), new T("relativeReferencesToggle", qe2, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, ue2), new T("toggleEditorFocus", qe2, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [R.Ctrl] } })], []), Ce2 = ne(() => {
410
+ } }), []), ye2 = le(() => [new k("selectAll", qe2, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [R.Ctrl] } }, ge2), new k("startEditValueAbove", qe2, { 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, he2), new k("startEditCurrentTime", qe2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Shift] } }, me2), new k("startEditCurrentDate", qe2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl] } }, pe2), new T("relativeReferencesToggle", qe2, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, ue2), new T("toggleEditorFocus", qe2, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [R.Ctrl] } })], []), Ce2 = le(() => {
411
411
  let e3 = null;
412
412
  const t3 = () => ({ contains: (e4) => G2.current?.contains(e4) || false, focus() {
413
413
  G2.current.focus();
414
414
  } });
415
415
  return e3 = w2 ? w2.createChildGroup(t3, "editor", false) : new M(t3, "editor"), e3.addCommands(ye2, true), e3;
416
- }, [w2, ye2]), be2 = ne(() => ({ notifier: null, source: we2, target: ve2, commands: Ce2 }), [we2, ve2, Ce2]);
416
+ }, [w2, ye2]), be2 = le(() => ({ notifier: null, source: fe2, target: ve2, commands: Ce2 }), [fe2, ve2, Ce2]);
417
417
  A(be2);
418
- const [Se2, xe2] = le(!E2);
419
- ae(() => {
418
+ const [Se2, xe2] = re(!I2);
419
+ se(() => {
420
420
  xe2(false);
421
421
  }, []);
422
422
  const ke2 = S((e3) => {
@@ -425,31 +425,31 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
425
425
  if (false !== t3) {
426
426
  let e4, o3;
427
427
  const n3 = G2.current.value;
428
- lt(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, V2.current = false, $2({ start: e4, end: o3, direction: "forward" });
428
+ rt(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, V2.current = false, $2({ start: e4, end: o3, direction: "forward" });
429
429
  }
430
430
  y2?.(e3);
431
431
  }, [y2, W2]), Te2 = _2.insets;
432
432
  let Re2 = Te2.left + 1;
433
433
  const Me2 = Te2.left + Te2.right + 2 - 1, Ae2 = K2?.bounds.height ?? 0;
434
434
  let ze2, Fe2 = Te2.top;
435
- _2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (N2 - (Te2.top + Te2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, N2 - (Te2.top + Te2.bottom) - Ae2)), void 0 !== D2 && K2?.lines[0]?.bounds && (ze2 = K2?.lines[0]?.bounds.height * D2);
435
+ _2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (H2 - (Te2.top + Te2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, H2 - (Te2.top + Te2.bottom) - Ae2)), void 0 !== D2 && K2?.lines[0]?.bounds && (ze2 = K2?.lines[0]?.bounds.height * D2);
436
436
  const De2 = _2.style.getFont();
437
- let Ee2 = De2.getSize();
438
- De2.isSuperSub() && (Ee2 *= De2.getSuperSubScale()), Ee2 *= a.getDeviceScale() * F2;
439
- const Ie2 = h2 ? De2.toCSS(P2, F2) : null;
440
- return Z("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
437
+ let Ie2 = De2.getSize();
438
+ De2.isSuperSub() && (Ie2 *= De2.getSuperSubScale()), Ie2 *= a.getDeviceScale() * F2;
439
+ const Ee2 = h2 ? De2.toCSS(P2, F2) : null;
440
+ return j("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
441
441
  G2.current && document.activeElement !== G2.current && requestAnimationFrame(() => {
442
442
  G2.current.focus();
443
443
  });
444
- }, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: Z("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2, left: Re2 * F2, width: `calc(100% - ${Me2 * F2}px)`, maxWidth: `calc(100% - ${Me2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: Z("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: G2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize: Ee2 ? `${Ee2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
444
+ }, ref: Z2, ...E2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: j("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2, left: Re2 * F2, width: `calc(100% - ${Me2 * F2}px)`, maxWidth: `calc(100% - ${Me2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: j("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: G2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ee2, fontSize: Ie2 ? `${Ie2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
445
445
  B2(false);
446
446
  }, onSelect: (e3) => {
447
447
  }, onChange: (e3) => {
448
- G2.current && !te2.current && (V2.current = false, Q2(e3.target.value), _2.textValue, e3.target.value, e3.target.selectionStart, e3.target.selectionEnd, e3.target.selectionDirection, $2({ start: e3.target.selectionStart, end: e3.target.selectionEnd, direction: e3.target.selectionDirection }));
448
+ G2.current && !te2.current && (V2.current = false, J2(e3.target.value), _2.textValue, e3.target.value, e3.target.selectionStart, e3.target.selectionEnd, e3.target.selectionDirection, $2({ start: e3.target.selectionStart, end: e3.target.selectionEnd, direction: e3.target.selectionDirection }));
449
449
  }, onMouseDown: (e3) => {
450
450
  L2 && ee2(true);
451
- }, onKeyDown: ce2 }) }) });
452
- })), at = (e2, t2) => ({ clean: e2, dirty: t2, editMode: false }), st = (e2) => {
451
+ }, onKeyDown: ie2 }) }) });
452
+ })), st = (e2, t2) => ({ clean: e2, dirty: t2, editMode: false }), dt = (e2) => {
453
453
  const { length: t2 = 0, width: o2 = 1, dashArray: n2 = null, dashArrayAdditional: l2 = null, isDouble: r2 = false, isAngled: i2 = false, offsetX: a2 = 0, offsetY: s2 = 0, isVertical: d2 = false, ...c2 } = e2, g2 = (e3) => {
454
454
  let t3 = null;
455
455
  if (e3 && o2 > 0) {
@@ -465,17 +465,17 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
465
465
  m2 = Math.floor(o2 / 2);
466
466
  const e3 = m2 + m2 / 2 + 1;
467
467
  let t3 = null;
468
- t3 = d2 ? `M ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + e3)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + e3)}`, f2 = Z("path", { strokeWidth: m2, strokeDasharray: h2, d: t3, ...c2 });
468
+ t3 = d2 ? `M ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + e3)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + e3)}`, f2 = j("path", { strokeWidth: m2, strokeDasharray: h2, d: t3, ...c2 });
469
469
  }
470
470
  if (i2) {
471
471
  m2 = o2 / 2;
472
472
  const e3 = m2 + m2 / 2;
473
473
  let t3 = h2, n3 = null;
474
- n3 = d2 ? `M ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + e3)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + e3)}`, f2 = Z("path", { strokeWidth: m2, strokeDasharray: t3, strokeDashoffset: "1", shapeRendering: "crispEdges", d: n3, ...c2 });
474
+ n3 = d2 ? `M ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + e3)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + e3)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + e3)}`, f2 = j("path", { strokeWidth: m2, strokeDasharray: t3, strokeDashoffset: "1", shapeRendering: "crispEdges", d: n3, ...c2 });
475
475
  }
476
476
  let w2 = null;
477
- return w2 = d2 ? `M ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + m2 / 2)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + m2 / 2)}`, j(K, { children: [Z("path", { strokeWidth: m2, strokeDasharray: u2, d: w2, ...c2 }), f2] });
478
- }, dt = (e2, t2) => e2.colStart === t2.colStart ? e2.rowStart - t2.rowStart : e2.colStart - t2.colStart, ct = (e2, t2) => e2.rowStart === t2.rowStart ? e2.colStart - t2.colStart : e2.rowStart - t2.rowStart, gt = (e2) => {
477
+ return w2 = d2 ? `M ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + m2 / 2)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + m2 / 2)}`, K(X, { children: [j("path", { strokeWidth: m2, strokeDasharray: u2, d: w2, ...c2 }), f2] });
478
+ }, ct = (e2, t2) => e2.colStart === t2.colStart ? e2.rowStart - t2.rowStart : e2.colStart - t2.colStart, gt = (e2, t2) => e2.rowStart === t2.rowStart ? e2.colStart - t2.colStart : e2.rowStart - t2.rowStart, ut = (e2) => {
479
479
  const { key: t2, points: o2, range: l2, stroke: r2, darkMode: i2, forceThinBorder: a2 = false, shiftIfWide: s2 = false, isVertical: d2 = false, intersections: c2, layout: g2 } = e2, u2 = n.BuiltInDefinitions.get(a2 ? n.StrokeStyle.Thin : r2.getStyle());
480
480
  if (!u2) return null;
481
481
  const h2 = o2[0], m2 = o2[1], p2 = o2[2], f2 = o2[3];
@@ -511,10 +511,10 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
511
511
  }
512
512
  let T2 = d2 ? -Math.floor(u2.width / 2) : -v2, R2 = d2 ? -v2 : -Math.floor(u2.width / 2);
513
513
  const M2 = s2 && u2.width > 2 ? -1 : 0;
514
- return Z(st, { offsetX: h2 + T2 + M2, offsetY: m2 + R2 + M2, length: w2 + v2, isVertical: d2, stroke: q2, width: u2.width, dashArray: C2 ?? u2.pattern, dashArrayAdditional: b2, isDouble: y2, isAngled: u2.description.toLowerCase().includes("slant") }, t2);
515
- }, ut = ({ getBorderAt: e2, borderRenderer: t2 = gt, getVisibleCells: o2, darkMode: l2, forceThinBorder: r2 = false, defaultColor: i2 = "black", shiftIfWide: a2 = false }) => {
514
+ return j(dt, { offsetX: h2 + T2 + M2, offsetY: m2 + R2 + M2, length: w2 + v2, isVertical: d2, stroke: q2, width: u2.width, dashArray: C2 ?? u2.pattern, dashArrayAdditional: b2, isDouble: y2, isAngled: u2.description.toLowerCase().includes("slant") }, t2);
515
+ }, ht = ({ getBorderAt: e2, borderRenderer: t2 = ut, getVisibleCells: o2, darkMode: l2, forceThinBorder: r2 = false, defaultColor: i2 = "black", shiftIfWide: a2 = false }) => {
516
516
  const s2 = S(o2, [o2]);
517
- return { overlay: ne(() => (o3) => {
517
+ return { overlay: le(() => (o3) => {
518
518
  const d2 = o3.toClipBounds(o3.getRangeCoordsBounds(), -3);
519
519
  if (!d2) return;
520
520
  const c2 = s2(o3);
@@ -529,7 +529,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
529
529
  const o4 = c2[t3], l3 = o4.coords;
530
530
  if (!l3) continue;
531
531
  const r3 = o4?.range ?? { rowStart: l3.rowIndex, colStart: l3.colIndex, rowEnd: l3.rowIndex, colEnd: l3.colIndex };
532
- if (!Q.isRangesIntersect(r3, C2) && !Q.isRangeWithinRange(r3, C2)) continue;
532
+ if (!ee.isRangesIntersect(r3, C2) && !ee.isRangeWithinRange(r3, C2)) continue;
533
533
  const i3 = l3.colIndex, a3 = l3.rowIndex, s3 = g2[i3], d3 = u2[a3];
534
534
  if (r3.rowEnd !== r3.rowStart) {
535
535
  const e3 = u2[r3.rowStart]?.spanIndex ?? -1, t4 = u2[r3.rowEnd]?.spanIndex ?? u2[f2[f2.length - 1]].spanIndex + 1;
@@ -578,13 +578,13 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
578
578
  r3 && n2.push(r3);
579
579
  }), n2;
580
580
  };
581
- h2 = h2.sort(ct), m2 = m2.sort(dt);
581
+ h2 = h2.sort(gt), m2 = m2.sort(ct);
582
582
  const x2 = S2(w2, p2, false), k2 = S2(v2, f2, true);
583
583
  if (0 === x2.length && 0 === k2.length) return null;
584
584
  const T2 = k2.length;
585
585
  for (let e3 = 0; e3 < T2; e3++) {
586
586
  const t3 = k2[e3];
587
- let o4 = X.findEqualOrGreater(x2, t3.from, (e4) => e4.index), n2 = false;
587
+ let o4 = Y.findEqualOrGreater(x2, t3.from, (e4) => e4.index), n2 = false;
588
588
  for (; !n2; ) {
589
589
  const e4 = x2[o4++];
590
590
  e4 && e4.index >= t3.from && e4.index <= t3.to + 1 && e4.from <= t3.index && e4.to + 1 >= t3.index && (t3.intersections.push({ stroke: e4.stroke, range: { rowStart: e4.from, rowEnd: e4.to + 1, colStart: e4.index, colEnd: e4.index } }), e4.intersections.push({ stroke: t3.stroke, range: { rowStart: t3.index, rowEnd: t3.index, colStart: t3.from, colEnd: t3.to + 1 } })), n2 = !e4 || e4.index > t3.to + 1;
@@ -603,29 +603,29 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
603
603
  const s3 = `cBorder:${n2.index}:${n2.from}:${n2.to}:${n2.edge}`, d3 = { rowStart: n2.from, rowEnd: n2.to + 1, colStart: n2.index, colEnd: n2.index }, c3 = o3.getLayout(), g3 = true, u3 = c3.getColOffset(d3.colStart), h3 = [u3, c3.getRowOffset(d3.rowStart), u3, c3.getRowOffset(d3.rowEnd)];
604
604
  q2.push(t2({ key: s3, stroke: i3, points: h3, darkMode: l2, forceThinBorder: r2, shiftIfWide: a2, range: d3, intersections: n2.intersections, layout: c3, isVertical: g3 }));
605
605
  }
606
- return Z("svg", { width: `${d2.width}`, height: `${d2.height}`, viewBox: `0 0 ${d2.width} ${d2.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${d2.width}px`, height: `${d2.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children: q2 }, "borders");
606
+ return j("svg", { width: `${d2.width}`, height: `${d2.height}`, viewBox: `0 0 ${d2.width} ${d2.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${d2.width}px`, height: `${d2.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children: q2 }, "borders");
607
607
  }, [e2, l2]) };
608
- }, ht = Y.Center, mt = Object.freeze({ horizontal: false, vertical: false }), pt = J.EmptyTopLeft, ft = (e2, t2) => Q.EmptyCell, wt = (e2, t2) => new Promise((e3, t3) => {
608
+ }, mt = J.Center, pt = Object.freeze({ horizontal: false, vertical: false }), ft = Q.EmptyTopLeft, wt = (e2, t2) => ee.EmptyCell, vt = (e2, t2) => new Promise((e3, t3) => {
609
609
  t3("StaticBorderRenderer does not support scrolling");
610
- }), vt = oe((e2) => {
611
- const { getBorderAt: t2, width: o2, height: n2, style: l2, rowCount: r2 = 2, columnCount: i2 = 2, darkMode: a2, forceThinBorder: s2, children: d2, ...c2 } = e2, g2 = ie(null), [u2, { width: h2, height: m2 }] = Me(), p2 = o2 ?? h2, f2 = n2 ?? m2, w2 = ne(() => {
610
+ }), qt = ne((e2) => {
611
+ const { getBorderAt: t2, width: o2, height: n2, style: l2, rowCount: r2 = 2, columnCount: i2 = 2, darkMode: a2, forceThinBorder: s2, children: d2, ...c2 } = e2, g2 = ae(null), [u2, { width: h2, height: m2 }] = Ae(), p2 = o2 ?? h2, f2 = n2 ?? m2, w2 = le(() => {
612
612
  const e3 = [];
613
613
  for (let t3 = 0; t3 < r2; t3++) for (let o3 = 0; o3 < i2; o3++) {
614
614
  const n3 = { colIndex: o3, rowIndex: t3 };
615
615
  e3.push({ coords: n3, value: n3 });
616
616
  }
617
617
  return e3;
618
- }, []), v2 = de((e3) => w2, [w2]), { overlay: q2 } = ut({ getVisibleCells: v2, getBorderAt: t2, darkMode: a2, forceThinBorder: s2 }), y2 = Math.floor(p2 / i2), C2 = Math.floor(f2 / r2), b2 = { getColOffset: (e3) => Math.ceil(e3 * y2) + 0, getRowOffset: (e3) => Math.ceil(e3 * C2) + 0, getColIndex: (e3) => Math.floor((e3 - 0) / y2) - 1, getRowIndex: (e3) => Math.floor((e3 - 0) / C2) - 1 }, S2 = { rowStart: 0, colStart: 0, rowEnd: r2, colEnd: i2 }, x2 = { x: 0, y: 0, width: Math.max(0, p2) + 0, height: Math.max(0, f2) + 0 }, k2 = ne(() => {
618
+ }, []), v2 = ce((e3) => w2, [w2]), { overlay: q2 } = ht({ getVisibleCells: v2, getBorderAt: t2, darkMode: a2, forceThinBorder: s2 }), y2 = Math.floor(p2 / i2), C2 = Math.floor(f2 / r2), b2 = { getColOffset: (e3) => Math.ceil(e3 * y2) + 0, getRowOffset: (e3) => Math.ceil(e3 * C2) + 0, getColIndex: (e3) => Math.floor((e3 - 0) / y2) - 1, getRowIndex: (e3) => Math.floor((e3 - 0) / C2) - 1 }, S2 = { rowStart: 0, colStart: 0, rowEnd: r2, colEnd: i2 }, x2 = { x: 0, y: 0, width: Math.max(0, p2) + 0, height: Math.max(0, f2) + 0 }, k2 = le(() => {
619
619
  const e3 = {}, t3 = Math.floor(p2 / i2);
620
620
  for (let o3 = 0; o3 < i2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
621
621
  return e3;
622
- }, [p2, f2]), T2 = ne(() => {
622
+ }, [p2, f2]), T2 = le(() => {
623
623
  const e3 = {}, t3 = Math.floor(f2 / r2);
624
624
  for (let o3 = 0; o3 < r2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
625
625
  return e3;
626
626
  }, [p2, f2]);
627
627
  if (!q2) return null;
628
- const R2 = { width: p2, height: f2 }, M2 = { width: p2, height: f2 }, A2 = { getStage: () => g2.current, getTotalSize: () => R2, getViewportSize: () => M2, getLayout: () => b2, getCellCoordsAsRangeCoords: Q.cellToRange, getVisibleRangeCoords: () => S2, getVisibleRows: () => {
628
+ const R2 = { width: p2, height: f2 }, M2 = { width: p2, height: f2 }, A2 = { getStage: () => g2.current, getTotalSize: () => R2, getViewportSize: () => M2, getLayout: () => b2, getCellCoordsAsRangeCoords: ee.cellToRange, getVisibleRangeCoords: () => S2, getVisibleRows: () => {
629
629
  const e3 = [];
630
630
  for (let t3 = 0; t3 < r2; t3++) e3.push(t3);
631
631
  return e3;
@@ -633,26 +633,26 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
633
633
  const e3 = [];
634
634
  for (let t3 = 0; t3 < i2; t3++) e3.push(t3);
635
635
  return e3;
636
- }, toClipBounds: (e3, t3) => x2, toViewBounds: (e3) => e3, toAbsoluteBounds: (e3) => e3, getBounds: () => x2, getInsets: () => null, getRangeCoordsBounds: (e3, t3) => null, getVisibleColumnOffsets: () => k2, getVisibleRowOffsets: () => T2, allViews: () => ({ [ht]: A2 }), getAnchor: () => ht, getZoom: () => 1, scrollCellCoordsIntoView: wt, getCellCoordsFromClient: ft, getScrollOrientation: () => mt, getScrollTopLeft: () => pt, getFreezeTopLeft: () => pt }, z2 = q2(A2);
637
- return j("div", { style: { ...l2, position: "relative", display: "flex" }, ...c2, children: [Z("div", { ref: Re([g2, u2]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: d2 }), z2] });
638
- }), qt = "_sheetxl-sheet_1qeq6_5", yt = "_viewport-overlay_1qeq6_6", Ct = (e2) => {
636
+ }, toClipBounds: (e3, t3) => x2, toViewBounds: (e3) => e3, toAbsoluteBounds: (e3) => e3, getBounds: () => x2, getInsets: () => null, getRangeCoordsBounds: (e3, t3) => null, getVisibleColumnOffsets: () => k2, getVisibleRowOffsets: () => T2, allViews: () => ({ [mt]: A2 }), getAnchor: () => mt, getZoom: () => 1, scrollCellCoordsIntoView: vt, getCellCoordsFromClient: wt, getScrollOrientation: () => pt, getScrollTopLeft: () => ft, getFreezeTopLeft: () => ft }, z2 = q2(A2);
637
+ return K("div", { style: { ...l2, position: "relative", display: "flex" }, ...c2, children: [j("div", { ref: Me([g2, u2]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: d2 }), z2] });
638
+ }), yt = "_sheetxl-sheet_1qeq6_5", Ct = "_viewport-overlay_1qeq6_6", bt = (e2) => {
639
639
  const { style: t2, ...o2 } = e2 ?? {};
640
- return j("svg", { style: { width: "135px", height: "37px", ...t2 }, viewBox: "0 0 135 37", ...o2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] });
641
- }, bt = oe((e2) => {
642
- const { colorLicensee: t2 = "blue", colorError: o2 = "red", colorCredits: n2 = "grey", credits: l2 = "All rights reserved - Michael Ford", feature: r2, style: i2, ...a2 } = e2 ?? {}, [s2, c2] = le(null);
643
- te.useEffect(() => {
640
+ return K("svg", { style: { width: "135px", height: "37px", ...t2 }, viewBox: "0 0 135 37", ...o2, children: [j("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" }), j("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" }), j("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" }), j("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" }), j("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" })] });
641
+ }, St = ne((e2) => {
642
+ const { colorLicensee: t2 = "blue", colorError: o2 = "red", colorCredits: n2 = "grey", credits: l2 = "All rights reserved - Michael Ford", feature: r2, style: i2, ...a2 } = e2 ?? {}, [s2, c2] = re(null);
643
+ oe.useEffect(() => {
644
644
  (async () => {
645
645
  const e3 = await d.getDetails();
646
646
  c2(e3);
647
647
  })();
648
648
  }, []);
649
- const [g2, u2] = te.useState(false), h2 = { opacity: 0.65 }, m2 = te.useMemo(() => {
649
+ const [g2, u2] = oe.useState(false), h2 = { opacity: 0.65 }, m2 = oe.useMemo(() => {
650
650
  const e3 = s2?.getExceptions(), t3 = e3?.length ?? 0;
651
651
  if (0 === t3) return null;
652
652
  const n3 = [];
653
653
  for (let l3 = 0; l3 < t3; l3++) {
654
654
  const t4 = e3[l3];
655
- n3.push(Z("div", { style: { opacity: 0.8, fontSize: "16px", textAlign: "left", color: o2 }, children: t4 }, l3));
655
+ n3.push(j("div", { style: { opacity: 0.8, fontSize: "16px", textAlign: "left", color: o2 }, children: t4 }, l3));
656
656
  }
657
657
  return n3;
658
658
  }, [s2, o2]);
@@ -660,12 +660,12 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
660
660
  if (s2.isValidFor(r2)) return null;
661
661
  const p2 = s2.getType(), f2 = !m2 && p2.endsWith("ity"), w2 = s2.getLicensee(), v2 = f2 ? 1.6 : 1, q2 = 135 / v2, y2 = 37 / v2;
662
662
  let C2 = null;
663
- return !p2 && w2?.length > 0 && (C2 = Z("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), Z("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: j("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? Z(Ct, { style: h2 }) : Z("svg", { width: q2, height: y2, style: h2, children: Z("image", { style: { width: q2, height: y2 }, href: "https://www.sheetxl.com/watermark.svg", onError: () => u2(true) }) }), j("div", { children: [C2, m2, Z("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: n2 }, children: l2 })] })] }) });
664
- }), St = (e2, t2, o2) => {
665
- const n2 = ie(t2);
663
+ return !p2 && w2?.length > 0 && (C2 = j("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), j("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: K("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? j(bt, { style: h2 }) : j("svg", { width: q2, height: y2, style: h2, children: j("image", { style: { width: q2, height: y2 }, href: "https://www.sheetxl.com/watermark.svg", onError: () => u2(true) }) }), K("div", { children: [C2, m2, j("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: n2 }, children: l2 })] })] }) });
664
+ }), xt = (e2, t2, o2) => {
665
+ const n2 = ae(t2);
666
666
  n2.current = t2;
667
667
  const l2 = o2?.fireOnModelChange ?? true;
668
- ae(() => {
668
+ se(() => {
669
669
  if (!e2 || !n2.current) return;
670
670
  const t3 = Object.keys(n2.current), r2 = {}, i2 = t3.length;
671
671
  for (let e3 = 0; e3 < i2; e3++) {
@@ -682,11 +682,11 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
682
682
  a2?.();
683
683
  };
684
684
  }, [e2]);
685
- }, xt = (e2, t2, o2, n2) => {
686
- const l2 = ie(o2);
685
+ }, kt = (e2, t2, o2, n2) => {
686
+ const l2 = ae(o2);
687
687
  l2.current = o2;
688
688
  const r2 = n2?.fireOnAddressChange ?? true;
689
- ae(() => {
689
+ se(() => {
690
690
  if (!e2 || !t2 || !l2.current) {
691
691
  const e3 = { getSource: () => null, getFrom: () => null, getTo: () => null, trigger: "delete", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() };
692
692
  return void l2.current?.(e3);
@@ -703,7 +703,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
703
703
  };
704
704
  }, [e2, t2]);
705
705
  };
706
- const kt = new class {
706
+ const Tt = new class {
707
707
  constructor() {
708
708
  this._taskPanes = /* @__PURE__ */ new Map();
709
709
  }
@@ -720,7 +720,7 @@ const kt = new class {
720
720
  return e2 = e2.toLowerCase(), this._taskPanes.get(e2) ?? null;
721
721
  }
722
722
  findContributions(e2) {
723
- if (!e2) return X.EmptyArray;
723
+ if (!e2) return Y.EmptyArray;
724
724
  const t2 = [];
725
725
  e2 = (e2 = e2.toLowerCase()).replace(/\/+$/g, "");
726
726
  for (const o2 of this._taskPanes.values()) {
@@ -729,8 +729,8 @@ const kt = new class {
729
729
  }
730
730
  return t2;
731
731
  }
732
- }(), Tt = ce(void 0), Rt = ({ children: e2, createArea: t2, onUpdateArea: o2, registry: n2 = kt }) => {
733
- const l2 = te.useRef(null), r2 = te.useRef(null), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useMemo(() => ({ activateTaskPane(e3, t3) {
732
+ }(), Rt = ge(void 0), Mt = ({ children: e2, createArea: t2, onUpdateArea: o2, registry: n2 = Tt }) => {
733
+ const l2 = oe.useRef(null), r2 = oe.useRef(null), [i2, a2] = oe.useState(null), [s2, d2] = oe.useState(null), c2 = oe.useMemo(() => ({ activateTaskPane(e3, t3) {
734
734
  r2.current !== e3 && (l2.current ? l2.current.activateTaskPane(e3, t3) : (a2(e3), g2(e3)));
735
735
  } }), []), g2 = S((e3) => {
736
736
  const l3 = t2({ registry: n2, onClose: () => {
@@ -740,63 +740,65 @@ const kt = new class {
740
740
  });
741
741
  return o2?.(l3), l3;
742
742
  }, [t2, n2, i2]);
743
- return te.useEffect(() => {
744
- s2 && i2 && (s2.activateTaskPane(i2, { focus: true }), a2(null));
745
- }, [i2, s2]), te.createElement(Tt.Provider, { value: s2 ?? c2 }, e2);
746
- }, Mt = { activateTaskPane(e2, t2) {
743
+ return oe.useEffect(() => {
744
+ s2 && i2 && (s2.activateTaskPane(i2, { autoFocus: true }), a2(null));
745
+ }, [i2, s2]), oe.createElement(Rt.Provider, { value: s2 ?? c2 }, e2);
746
+ }, At = { activateTaskPane(e2, t2) {
747
747
  console.warn("No TaskPaneArea available to activate task pane", e2, t2);
748
- } }, At = () => {
749
- const e2 = ge(Tt);
750
- return e2 || Mt;
751
- }, zt = { TaskPaneArea: "_TaskPaneArea_6dmgk_5", TaskPaneTitle: "_TaskPaneTitle_6dmgk_13", TaskPaneFrame: "_TaskPaneFrame_6dmgk_36", TaskPaneStrip: "_TaskPaneStrip_6dmgk_52", TaskPaneStripItem: "_TaskPaneStripItem_6dmgk_60" }, Ft = oe(re((e2, t2) => {
752
- const { children: o2, title: n2, icon: l2, onClose: r2, readOnly: i2, focused: a2, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => Ae("taskpane-title", d2, zt.TaskPaneTitle, { focused: a2 }), [d2, a2]);
753
- return j("div", { ref: t2, className: g2, style: s2, ...c2, children: [Z("div", { className: "title", style: { flex: "1 1 100%" }, children: n2 }), Z("div", { "aria-label": "close", role: "button", style: { width: 24, height: 24, borderRadius: "50%", display: "flex", alignItems: "center", justifyContent: "center", cursor: "pointer" }, onPointerDown: (e3) => {
748
+ } }, zt = () => {
749
+ const e2 = ue(Rt);
750
+ return e2 || At;
751
+ }, Ft = { TaskPaneArea: "_TaskPaneArea_6dmgk_5", TaskPaneTitle: "_TaskPaneTitle_6dmgk_13", TaskPaneFrame: "_TaskPaneFrame_6dmgk_36", TaskPaneStrip: "_TaskPaneStrip_6dmgk_52", TaskPaneStripItem: "_TaskPaneStripItem_6dmgk_60" }, Dt = ne(ie((e2, t2) => {
752
+ const { children: o2, title: n2, icon: l2, onClose: r2, readOnly: i2, focused: a2, style: s2, className: d2, ...c2 } = e2, g2 = le(() => ze("taskpane-title", d2, Ft.TaskPaneTitle, { focused: a2 }), [d2, a2]);
753
+ return K("div", { ref: t2, className: g2, style: s2, ...c2, children: [j("div", { className: "title", style: { flex: "1 1 100%" }, children: n2 }), j("div", { "aria-label": "close", role: "button", style: { width: 24, height: 24, borderRadius: "50%", display: "flex", alignItems: "center", justifyContent: "center", cursor: "pointer" }, onPointerDown: (e3) => {
754
754
  e3.stopPropagation();
755
755
  }, onPointerUp: () => {
756
756
  r2();
757
- }, children: Z("div", { style: { fontSize: "0.7em" }, children: "✕" }) })] });
757
+ }, children: j("div", { style: { fontSize: "0.7em" }, children: "✕" }) })] });
758
758
  }));
759
- Ft.displayName = "TaskPaneTitle";
760
- const Dt = (e2, t2) => Z(Ft, { ...e2, ref: t2 }), Et = oe(re((e2, t2) => {
761
- const { children: o2, entry: n2, close: l2, listenerContainer: r2, model: i2, commands: a2, onMounted: s2, onUnmounted: d2, paneWrapper: c2, paneProps: g2, renderTaskPanelTitle: u2 = Dt, style: h2, className: m2, ...p2 } = e2, [f2, w2] = le(null), [v2, q2] = le(false), y2 = S(l2, [l2]), C2 = ie(null), b2 = ie(null);
762
- ae(() => (s2?.(n2), () => {
759
+ Dt.displayName = "TaskPaneTitle";
760
+ const It = (e2, t2) => j(Dt, { ...e2, ref: t2 }), Et = ne(ie((e2, t2) => {
761
+ const { children: o2, entry: n2, close: l2, listenerContainer: r2, model: i2, commands: a2, onMounted: s2, onUnmounted: d2, paneWrapper: c2, paneProps: g2, renderTaskPanelTitle: u2 = It, style: h2, className: m2, ...p2 } = e2, [f2, w2] = re(null), [v2, q2] = re(false), y2 = S(l2, [l2]), C2 = ae(null), b2 = ae(null);
762
+ se(() => (s2?.(n2), () => {
763
763
  d2?.(n2);
764
764
  }), [n2]);
765
- const x2 = ie([]), k2 = ne(() => ({ addListener: (e3) => {
765
+ const x2 = ae([]), k2 = le(() => ({ addListener: (e3) => {
766
766
  const t3 = r2(e3);
767
767
  return x2.current.push(t3), t3;
768
768
  }, close: () => {
769
769
  y2?.();
770
+ }, focus: (e3) => {
771
+ C2.current?.focus(e3);
770
772
  } }), [r2]);
771
- ae(() => () => {
773
+ se(() => () => {
772
774
  for (const e3 of x2.current) e3();
773
775
  x2.current = [];
774
776
  }, []);
775
- const T2 = ne(() => (n2.renderTaskPanelTitle ?? u2)({ title: n2.getTitle(), icon: null, readOnly: false, focused: v2, onClose: y2, onPointerDown: (e3) => {
776
- } }, b2), [n2, v2]), R2 = ne(() => {
777
+ const T2 = le(() => (n2.renderTaskPanelTitle ?? u2)({ title: n2.getTitle(), icon: null, readOnly: false, focused: v2, onClose: y2, onPointerDown: (e3) => {
778
+ } }, b2), [n2, v2]), R2 = le(() => {
777
779
  let e3 = n2.renderTaskPane({ entryKey: n2.key, model: i2, commands: a2, frame: k2, ...g2 }, t2);
778
780
  return c2 && (e3 = c2(e3)), e3;
779
781
  }, [n2, i2, a2, t2]);
780
- return j("div", { className: Ae("taskpane-frame", m2, zt.TaskPaneFrame), tabIndex: 0, ref: C2, style: h2, onPointerDown: async (e3) => {
782
+ return K("div", { className: ze("taskpane-frame", m2, Ft.TaskPaneFrame), tabIndex: 0, ref: C2, style: h2, onPointerDown: async (e3) => {
781
783
  e3.currentTarget.focus();
782
784
  }, onFocus: (e3) => {
783
785
  e3.relatedTarget && !f2 && w2(e3.relatedTarget), q2(true);
784
786
  }, onBlur: (e3) => {
785
787
  f2 && !C2?.current?.contains(e3.relatedTarget) && w2(null), e3.relatedTarget && q2(false);
786
- }, ...p2, children: [Z("div", { style: { flex: "0 0 auto", display: "flex", flexDirection: "column", width: "100%", alignItems: "stretch", justifyContent: "stretch" }, children: T2 }), Z("div", { className: "taskpane-frame-content", style: { flex: "1 1 auto", minHeight: 0, width: "100%", overflow: "auto", height: "100%", display: "flex" }, children: R2 })] });
787
- })), It = oe(re((e2, t2) => {
788
- const { children: o2, title: n2, taskPanes: l2, onSelect: r2, selected: i2, registry: a2 = kt, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => l2.map((t3) => {
788
+ }, ...p2, children: [j("div", { style: { flex: "0 0 auto", display: "flex", flexDirection: "column", width: "100%", alignItems: "stretch", justifyContent: "stretch" }, children: T2 }), j("div", { className: "taskpane-frame-content", style: { flex: "1 1 auto", minHeight: 0, width: "100%", overflow: "auto", height: "100%", display: "flex" }, children: R2 })] });
789
+ })), Ht = ne(ie((e2, t2) => {
790
+ const { children: o2, title: n2, taskPanes: l2, onSelect: r2, selected: i2, registry: a2 = Tt, style: s2, className: d2, ...c2 } = e2, g2 = le(() => l2.map((t3) => {
789
791
  const o3 = a2.getRegisteredTaskPane(t3);
790
792
  if (!o3) return null;
791
793
  let n3 = o3.getIcon?.();
792
- n3 && ("string" == typeof n3 && (n3 = Z(z, { iconKey: n3 })), n3 = Z("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: n3 }));
793
- return j("div", { style: { writingMode: "vertical-rl", textOrientation: "mixed", display: "flex", alignItems: "center", justifyContent: "space-between", gap: "4px", minWidth: "0px" }, className: Ae("taskpane-strip-item", zt.TaskPaneStripItem, { selected: t3 === i2 }), onClick: () => e2.onSelect(t3), children: [n3, o3.getTitle()] }, t3);
794
- }), [l2, i2, r2, a2]), u2 = b(t2, () => ({ isTaskPaneStrip: () => true }), []), h2 = ne(() => Ae("taskpane-strip", d2, zt.TaskPaneStrip), [d2]);
795
- return Z("div", { ref: u2, className: h2, style: s2, ...c2, children: g2 });
794
+ n3 && ("string" == typeof n3 && (n3 = j(z, { iconKey: n3 })), n3 = j("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: n3 }));
795
+ return K("div", { style: { writingMode: "vertical-rl", textOrientation: "mixed", display: "flex", alignItems: "center", justifyContent: "space-between", gap: "4px", minWidth: "0px" }, className: ze("taskpane-strip-item", Ft.TaskPaneStripItem, { selected: t3 === i2 }), onClick: () => e2.onSelect(t3), children: [n3, o3.getTitle()] }, t3);
796
+ }), [l2, i2, r2, a2]), u2 = b(t2, () => ({ isTaskPaneStrip: () => true }), []), h2 = le(() => ze("taskpane-strip", d2, Ft.TaskPaneStrip), [d2]);
797
+ return j("div", { ref: u2, className: h2, style: s2, ...c2, children: g2 });
796
798
  }));
797
- It.displayName = "TaskPaneStrip";
798
- const Nt = (e2, t2) => Z(It, { ref: t2, ...e2 }), Ht = oe(re((e2, t2) => {
799
- const { className: o2 = "", registry: n2 = kt, model: l2, commands: r2, onOpen: i2, onClose: a2, paneWrapper: s2, paneProps: d2, frameWrapper: c2, frameProps: g2, renderTaskPanelTitle: u2, renderTaskPaneStrip: h2 = Nt, alwaysShowStrip: m2, style: p2 } = e2, f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = le(null), y2 = ie(null), [C2, x2] = le([]), k2 = ie(/* @__PURE__ */ new Set()), T2 = S(async (e3, t3 = false) => {
799
+ Ht.displayName = "TaskPaneStrip";
800
+ const Nt = (e2, t2) => j(Ht, { ref: t2, ...e2 }), Pt = ne(ie((e2, t2) => {
801
+ const { className: o2 = "", registry: n2 = Tt, model: l2, commands: r2, onOpen: i2, onClose: a2, paneWrapper: s2, paneProps: d2, frameWrapper: c2, frameProps: g2, renderTaskPanelTitle: u2, renderTaskPaneStrip: h2 = Nt, alwaysShowStrip: m2, style: p2 } = e2, f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = re(null), y2 = ae(null), [C2, x2] = re([]), k2 = ae(/* @__PURE__ */ new Set()), T2 = S(async (e3, t3 = false) => {
800
802
  const o3 = Array.from(k2.current), n3 = o3.length;
801
803
  let l3 = true;
802
804
  for (let e4 = 0; l3 && e4 < n3; e4++) {
@@ -830,8 +832,8 @@ const Nt = (e2, t2) => Z(It, { ref: t2, ...e2 }), Ht = oe(re((e2, t2) => {
830
832
  if (v2) {
831
833
  if (!await T2(v2.key)) return;
832
834
  }
833
- const o3 = te.createRef();
834
- let i3 = Z(Et, { ref: () => {
835
+ const o3 = oe.createRef();
836
+ let i3 = j(Et, { ref: () => {
835
837
  y2.current = null;
836
838
  }, entry: t3, model: l2, commands: r2, close: async () => {
837
839
  await T2(e3) && R2(e3);
@@ -852,38 +854,38 @@ const Nt = (e2, t2) => Z(It, { ref: t2, ...e2 }), Ht = oe(re((e2, t2) => {
852
854
  return o4.push(a3), o4;
853
855
  }), q2(a3), y2.current = e3;
854
856
  }, [v2, c2, s2, u2]);
855
- ae(() => {
857
+ se(() => {
856
858
  v2 && !y2.current && M2(v2.key);
857
859
  }, [g2, l2]);
858
- const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2, l2, r2]), z2 = ne(() => C2.map((e3) => e3.key), [C2]), F2 = ne(() => {
860
+ const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2, l2, r2]), z2 = le(() => C2.map((e3) => e3.key), [C2]), F2 = le(() => {
859
861
  if (z2.length <= 1 && !m2) return null;
860
- return h2({ className: zt.TaskPaneAreaStrip, taskPanes: z2, selected: v2?.key, onSelect: (e3) => {
862
+ return h2({ className: Ft.TaskPaneAreaStrip, taskPanes: z2, selected: v2?.key, onSelect: (e3) => {
861
863
  M2(e3);
862
864
  }, registry: n2 }, null);
863
865
  }, [z2, v2, n2, m2]), D2 = v2?.elem;
864
- return j("div", { ref: A2, className: Ae("taskpane-area", o2, zt.TaskPaneArea), style: p2, children: [D2, F2] });
865
- })), Pt = new h("transparent");
866
- function Vt(e2) {
867
- const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, v2 = F(), q2 = At(), [y2, C2] = le(null), [b2, x2] = le(null), A2 = ie(null), z2 = S(f2, [f2]), H2 = S(w2, [w2]), [P2, V2] = le(), [L2, B2] = le(() => r2?.getStyles().parseColor(c.Scheme.Bg2)), [O2, $2] = le(() => r2?.getStyles().getNormal().getFont().getFill()), W2 = D();
868
- ie(W2.getMode()).current = W2.getMode();
869
- const U2 = E(), [_2, G2] = le(X.EmptyArray), K2 = de(() => {
866
+ return K("div", { ref: A2, className: ze("taskpane-area", o2, Ft.TaskPaneArea), style: p2, children: [D2, F2] });
867
+ })), Vt = new h("transparent");
868
+ function Lt(e2) {
869
+ const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, v2 = F(), q2 = zt(), [y2, C2] = re(null), [b2, x2] = re(null), A2 = ae(null), P2 = S(f2, [f2]), V2 = S(w2, [w2]), L2 = le(() => ({ serializer: { parse: (e3) => e3 ? r2?.getStyles().parseColor(e3) : null, stringify: (e3) => e3 ? e3.toString() : null } }), [r2]), [B2, O2] = D("sheet.lastBorder", null), [$2, W2] = D("sheet.lastFillColor", r2?.getStyles().parseColor(c.Scheme.Bg2), L2), [U2, _2] = D("sheet.lastFontColor", r2?.getStyles().parseColor(r2?.getStyles().getNormal().getFont().getFill()), L2), G2 = I();
870
+ ae(G2.getMode()).current = G2.getMode();
871
+ const Z2 = E(), [X2, J2] = re(Y.EmptyArray), Q2 = ce(() => {
870
872
  if (A2.current !== r2) return;
871
873
  const e3 = r2.getSelectedRanges();
872
874
  let t2 = null;
873
- _2.length > 0 && Q.isCellWithinRange(y2, _2[0].getRange().getCoords()) && (t2 = _2[0]);
875
+ X2.length > 0 && ee.isCellWithinRange(y2, X2[0].getRange().getCoords()) && (t2 = X2[0]);
874
876
  const o2 = r2?.getSelectedCell(), n2 = o2?.getCoords() ?? null;
875
- ze(() => {
876
- he2(t2), C2(n2), x2(e3);
877
+ Fe(() => {
878
+ fe2(t2), C2(n2), x2(e3);
877
879
  });
878
- }, [r2, _2, b2, y2]), Y2 = de(X.debounce(K2, 210), [K2]);
879
- ae(() => {
880
- A2.current = r2, K2();
880
+ }, [r2, X2, b2, y2]), te2 = ce(Y.debounce(Q2, 210), [Q2]);
881
+ se(() => {
882
+ A2.current = r2, Q2();
881
883
  }, [r2]);
882
- const J2 = S(() => r2.getRange(y2).getCell(), [r2, y2]), ee2 = S(async (e3, t2, o2 = null, n2 = false, l2 = true) => {
884
+ const oe2 = S(() => r2.getRange(y2).getCell(), [r2, y2]), ne2 = S(async (e3, t2, o2 = null, n2 = false, l2 = true) => {
883
885
  const a2 = e3?.label?.(), s2 = async () => {
884
886
  const e4 = await Promise.resolve(l2 && v2.showBusy(a2 ?? "Busy..."));
885
887
  try {
886
- await r2.doBatch(async () => t2(r2), a2), n2 && W2.setMode(null), e4 && e4();
888
+ await r2.doBatch(async () => t2(r2), a2), n2 && G2.setMode(null), e4 && e4();
887
889
  } catch (t3) {
888
890
  if (e4 && e4(), !t3) return;
889
891
  v2.showError(t3);
@@ -908,39 +910,38 @@ function Vt(e2) {
908
910
  i2(t3);
909
911
  }
910
912
  return g2();
911
- }, [r2, i2, v2]), te2 = S((e3, t2, o2 = false, n2) => (n2 || (n2 = { autoSelect: true, autoFit: true }), ee2(e3, (e4) => {
913
+ }, [r2, i2, v2]), ie2 = S((e3, t2, o2 = false, n2) => (n2 || (n2 = { autoSelect: true, autoFit: true }), ne2(e3, (e4) => {
912
914
  const l2 = e4.getSelectedRanges();
913
915
  o2 && l2.getStyle().update(null, n2), l2.getStyle().update(t2, n2);
914
- })), [r2]), oe2 = S((e3, t2, o2) => {
915
- ee2(e3, (e4) => {
916
- let n2 = t2;
917
- (o2 || t2?.address) && (n2 = n2 ?? {}, !o2 && t2?.address?.startsWith("#") ? o2 = t2?.address.substring(1) : o2 && (n2.displayText = o2)), e4.getSelectedRange().setHyperlink(n2);
916
+ })), [r2]), de2 = S((e3, t2) => {
917
+ ne2(e3, (e4) => {
918
+ e4.getSelectedRange().setHyperlink(t2);
918
919
  });
919
- }, [r2]), re2 = S((e3, t2) => {
920
- ee2(e3, (e4) => {
920
+ }, [r2]), ge2 = S((e3, t2) => {
921
+ ne2(e3, (e4) => {
921
922
  e4.getSelectedRange().setComments(t2);
922
923
  });
923
- }, [r2]), se2 = S((e3, t2) => {
924
- ee2(e3, (e4) => {
924
+ }, [r2]), ue2 = S((e3, t2) => {
925
+ ne2(e3, (e4) => {
925
926
  e4.getSelectedRanges().clear(t2);
926
927
  });
927
- }, [r2]), ce2 = S(async (e3, t2, o2 = false, n2 = false) => ee2(e3, async (e4) => {
928
+ }, [r2]), me2 = S(async (e3, t2, o2 = false, n2 = false) => ne2(e3, async (e4) => {
928
929
  let l2 = e4.getSelectedRanges();
929
930
  o2 && (t2 === s.Orientation.Row ? l2 = l2.getEntireRows(n2) : t2 === s.Orientation.Column && (l2 = l2.getEntireColumns(n2)));
930
931
  let r3 = null;
931
- const i3 = W2.getMode()?.key;
932
+ const i3 = G2.getMode()?.key;
932
933
  if ("copy" === i3 || "cut" === i3) {
933
- const e5 = await U2.getClipboard().readReference();
934
+ const e5 = await Z2.getClipboard().readReference();
934
935
  e5 && "range" === e5.getItemType() && (r3 = e5.getItem(), r3.getCoords() || (r3 = null));
935
936
  }
936
937
  if (r3) {
937
938
  const e5 = await l2.insertFrom(r3, { ...r3.getMarkOptions(), orientation: t2, autoSelect: true });
938
- !e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), W2.setMode(null);
939
+ !e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), G2.setMode(null);
939
940
  } else l2.insert({ orientation: t2, autoSelect: true });
940
- }, "Insert Cells", false), [W2]), [ge2, he2] = le(null), me2 = S((e3) => r2.getStyles().setDefaultTableStyle(e3), [r2]), pe2 = S((e3) => {
941
+ }, "Insert Cells", false), [G2]), [pe2, fe2] = re(null), we2 = S((e3) => r2.getStyles().setDefaultTableStyle(e3), [r2]), ve2 = S((e3) => {
941
942
  r2.getStyles().getTableStyle(e3)?.delete();
942
- }, [r2]), fe2 = S((e3, t2) => {
943
- ee2(e3, async (e4) => {
943
+ }, [r2]), qe2 = S((e3, t2) => {
944
+ ne2(e3, async (e4) => {
944
945
  const o2 = e4.getSelectedRange(), n2 = e4.getSelectedCell().getCoords();
945
946
  let l2 = null, r3 = 0;
946
947
  const i3 = n2.rowIndex > 0 ? e4.getRange({ rowIndex: n2.rowIndex, colIndex: n2.colIndex }).getExtended(s.Direction.Up) : null;
@@ -977,37 +978,29 @@ function Vt(e2) {
977
978
  r4.apply();
978
979
  } else {
979
980
  const o3 = d3 ? e4.getRange(d3).toString() : "", n3 = `=${t2}(`;
980
- z2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
981
+ P2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
981
982
  }
982
983
  }, false);
983
- }, [r2]), we2 = S((e3, t2, o2 = false, n2 = true) => {
984
- ee2(e3, async (l2) => {
985
- let r3 = null;
986
- if (ge2) return void ge2.updateStyleOptions(t2);
987
- {
988
- const e4 = l2.getSelectedRanges().getFixed(true), t3 = l2.getSelectedRange().getDefaultSortCriteria();
989
- let o3 = { ranges: e4, hasHeader: t3?.options?.hasHeader ?? false };
990
- r3 = n2 ? new Promise((e5, t4) => {
991
- const n3 = { tableOptions: o3, onCancel: () => {
992
- t4();
993
- }, onDone: (t5) => {
994
- e5(t5);
995
- }, context: { getNames: () => l2.getNames() } };
996
- v2.showWindow?.("tableNew", n3);
997
- }) : { option: "Ok", tableOptions: o3 };
998
- }
999
- const i3 = await Promise.resolve(r3);
1000
- if ("Ok" !== i3?.option) throw null;
1001
- const a2 = await Promise.resolve(v2.showBusy(e3.label()));
1002
- try {
1003
- const e4 = l2.getTables().add(i3.tableOptions.ranges.at(0), { styleName: t2?.name, clearFormatting: o2, hasHeader: i3.tableOptions.hasHeader });
1004
- await e4.getRange().select();
1005
- } catch (e4) {
1006
- a2(), v2.showError(e4);
1007
- }
1008
- a2();
984
+ }, [r2]), ye2 = S((e3, t2, o2 = false, n2 = true) => {
985
+ ne2(e3, async (l2) => {
986
+ if (pe2) return void pe2.updateStyleOptions(t2);
987
+ const r3 = l2.getSelectedRanges().getFixed(true), i3 = l2.getSelectedRange().getDefaultSortCriteria(), a2 = { getNames: () => l2.getNames(), table: () => null, styles: () => null, bodyStyle: () => null }, s2 = { ranges: r3, hasHeader: i3?.options?.hasHeader ?? false }, d3 = async (n3) => {
988
+ if (!(n3 = await Promise.resolve(n3))) return null;
989
+ const r4 = await Promise.resolve(v2.showBusy(e3.label()));
990
+ try {
991
+ const e4 = l2.getTables().add(n3.ranges.at(0), { styleName: t2?.name, clearFormatting: o2, hasHeader: n3.hasHeader });
992
+ await e4.getRange().select(), r4();
993
+ } catch (e4) {
994
+ r4(), v2.showError(e4);
995
+ }
996
+ };
997
+ if (!n2) return void await d3(s2);
998
+ const c2 = { initialValue: s2, context: () => a2, onInput: (e4) => {
999
+ d3(e4);
1000
+ } };
1001
+ v2.showWindow("tableNew", c2);
1009
1002
  }, false, true, false);
1010
- }, [ge2]), ve2 = S(() => d2, [d2]), qe2 = S((e3) => ({ styles: () => r2.getStyles(), table: () => e3, bodyStyle: ve2, getNames: () => r2.getNames() }), [r2]), ye2 = S(async (e3, t2, o2, n2 = true) => {
1003
+ }, [pe2]), Ce2 = S(() => d2, [d2]), be2 = S((e3) => ({ styles: () => r2.getStyles(), table: () => e3, bodyStyle: Ce2, getNames: () => r2.getNames() }), [r2]), Se2 = S(async (e3, t2, o2, n2 = true) => {
1011
1004
  if (!t2) {
1012
1005
  let e4 = r2.getSelectedRange();
1013
1006
  1 === e4.size && (e4 = e4.getSurrounding());
@@ -1021,14 +1014,14 @@ function Vt(e2) {
1021
1014
  }
1022
1015
  if (!n2) return;
1023
1016
  const l2 = new Promise(async (o3, n3) => {
1024
- e3.update({ context: qe2(t2) }), q2.activateTaskPane("tableDetails", {}), o3(true);
1017
+ e3.update({ context: be2(t2) }), q2.activateTaskPane("tableDetails", {}), o3(true);
1025
1018
  });
1026
1019
  try {
1027
1020
  if (!await l2) return;
1028
1021
  } catch (e4) {
1029
1022
  v2.showError(e4);
1030
1023
  }
1031
- }, [v2]), Ce2 = S(async (e3, t2, o2 = false) => {
1024
+ }, [v2]), xe2 = S(async (e3, t2, o2 = false) => {
1032
1025
  let n2 = null;
1033
1026
  if (t2) t2.isITable ? n2 = t2 : t2.getValue() && (n2 = t2.getValue());
1034
1027
  else {
@@ -1043,13 +1036,13 @@ function Vt(e2) {
1043
1036
  Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1044
1037
  }
1045
1038
  }
1046
- ee2(e3, async () => {
1039
+ ne2(e3, async () => {
1047
1040
  o2 ? n2.delete() : n2.convertToRange();
1048
1041
  }, false, true);
1049
1042
  }
1050
- }, [v2]), be2 = S((e3, t2, o2) => {
1051
- ee2(e3, async (n2) => {
1052
- let l2 = n2.getSelectedRanges();
1043
+ }, [v2]), ke2 = S((e3, t2, o2) => {
1044
+ ne2(e3, async (n2) => {
1045
+ const l2 = n2.getSelectedRanges();
1053
1046
  if (l2.getCount() > 1) throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");
1054
1047
  let r3 = l2.at(0);
1055
1048
  1 === r3.size && (r3 = r3.getSurrounding());
@@ -1059,27 +1052,29 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1059
1052
  if (o2) throw new Error("Invalid sort selection. Sort requires a single range with data.");
1060
1053
  return;
1061
1054
  }
1062
- let d3 = a2.options;
1063
- if (o2 && (d3 = new Promise((e4, t3) => {
1064
- const o3 = { range: r3, options: a2.options, cell: i3, onCancel: () => {
1065
- t3();
1066
- }, onDone: (o4) => {
1067
- o4 ? e4(o4.options) : t3();
1068
- } };
1069
- v2.showWindow?.("sort", o3);
1070
- })), d3 = await Promise.resolve(d3), !d3) return;
1071
- const c2 = await Promise.resolve(v2.showBusy(e3.label()));
1072
- try {
1073
- r3.doBatch(() => {
1074
- const e4 = { ...d3, ...t2 };
1075
- r3.sort(e4), r3.autoFit({ orientations: e4?.orientation === s.Orientation.Column ? s.Orientations.Column : s.Orientations.Row, skipCustomSize: true, minContent: true });
1076
- }, e3?.label?.());
1077
- } catch (e4) {
1078
- c2(), v2.showError(e4);
1079
- }
1080
- c2();
1055
+ const d3 = async (o3) => {
1056
+ if (!(o3 = await Promise.resolve(o3))) return;
1057
+ const n3 = await Promise.resolve(v2.showBusy(e3.label()));
1058
+ try {
1059
+ r3.doBatch(() => {
1060
+ const e4 = { ...o3, ...t2 };
1061
+ r3.sort(e4), r3.autoFit({ orientations: e4?.orientation === s.Orientation.Column ? s.Orientations.Column : s.Orientations.Row, skipCustomSize: true, minContent: true });
1062
+ }, e3?.label?.());
1063
+ } catch (e4) {
1064
+ n3(), v2.showError(e4);
1065
+ }
1066
+ n3();
1067
+ };
1068
+ let c2 = a2.options;
1069
+ if (!o2) return void await d3(c2);
1070
+ let g2 = r3;
1071
+ c2.hasHeader && (g2 = r3.getIntersect(a2.sortCoords)), g2.select();
1072
+ const u2 = { range: r3, cell: i3 }, h3 = { initialValue: c2, context: () => u2, onInput: (e4) => {
1073
+ d3(e4);
1074
+ } };
1075
+ v2.showWindow("sort", h3);
1081
1076
  }, false, false, false);
1082
- }, [v2]), Se2 = S(() => {
1077
+ }, [v2]), Te2 = S(() => {
1083
1078
  console.log("compactedSelection");
1084
1079
  const e3 = r2.getSelection().getCoords(), t2 = r2.getSelectedRanges().getFlattened().getCoords(), o2 = ((e4) => {
1085
1080
  const t3 = new Blob([e4], { type: "application/javascript" }), o3 = URL.createObjectURL(t3), n3 = new Worker(o3);
@@ -1089,13 +1084,13 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1089
1084
  o2.terminate(), console.log("Worker terminated");
1090
1085
  }, 5e3);
1091
1086
  let n2 = -1;
1092
- for (let o3 = 0; -1 === n2 && o3 < t2.length; o3++) Q.isCellWithinRange(e3.cell, t2[o3]) && (n2 = o3);
1093
- if (Q.isEqualRangesArrays(e3.ranges, t2)) return;
1087
+ for (let o3 = 0; -1 === n2 && o3 < t2.length; o3++) ee.isCellWithinRange(e3.cell, t2[o3]) && (n2 = o3);
1088
+ if (ee.isEqualRangesArrays(e3.ranges, t2)) return;
1094
1089
  const l2 = { cell: e3.cell, ranges: t2, rangeIndex: n2 };
1095
1090
  r2.getSelection().updateCoords(l2);
1096
- }, [r2]), xe2 = S(() => {
1091
+ }, [r2]), Re2 = S(() => {
1097
1092
  console.log("selectComments");
1098
- }, [r2]), ke2 = S(async (e3 = false, t2 = false) => {
1093
+ }, [r2]), Me2 = S(async (e3 = false, t2 = false) => {
1099
1094
  let o2 = null;
1100
1095
  if (t2) o2 = r2.getEntireRange();
1101
1096
  else {
@@ -1106,38 +1101,38 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1106
1101
  } else o2 = t3.getSurrounding({ contentOnly: e3 });
1107
1102
  }
1108
1103
  o2 && await o2.select();
1109
- }, [r2]), Te2 = S((e3, t2, o2) => {
1110
- ee2(e3, async (e4) => {
1104
+ }, [r2]), Ae2 = S((e3, t2, o2) => {
1105
+ ne2(e3, async (e4) => {
1111
1106
  let n2 = e4.getSelectedRanges();
1112
1107
  o2 && (t2 === s.Orientation.Row ? n2 = n2.getEntireRows() : t2 === s.Orientation.Column && (n2 = n2.getEntireColumns())), n2.delete(t2);
1113
1108
  }, "Delete Cells");
1114
1109
  }, [r2]);
1115
1110
  S(async (e3) => {
1116
1111
  let t2 = null;
1117
- const o2 = H2(), n2 = Math.min(o2.width - 8, 480), l2 = Math.min(o2.height - 8, 288);
1112
+ const o2 = V2(), n2 = Math.min(o2.width - 8, 480), l2 = Math.min(o2.height - 8, 288);
1118
1113
  try {
1119
1114
  r2.getSelectedRanges();
1120
- t2 = await r2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - l2) / 2, width: n2, height: l2 }, type: "chart", json: e3.template }), t2.select(), W2.setMode(null);
1115
+ t2 = await r2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - l2) / 2, width: n2, height: l2 }, type: "chart", json: e3.template }), t2.select(), G2.setMode(null);
1121
1116
  } catch (e4) {
1122
1117
  v2.showError(e4);
1123
1118
  }
1124
1119
  return t2;
1125
1120
  }, [r2, v2]);
1126
- const Re2 = S(async (e3, t2, o2) => {
1121
+ const ze2 = S(async (e3, t2, o2) => {
1127
1122
  const n2 = await v2.showBusy(e3.label());
1128
1123
  try {
1129
1124
  const e4 = await r2.getMovables().addImage(t2, { autoSelect: true, ...o2 });
1130
- return n2(), W2.setMode(null), e4;
1125
+ return n2(), G2.setMode(null), e4;
1131
1126
  } catch (e4) {
1132
1127
  n2();
1133
1128
  let t3 = e4;
1134
- "string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type: I.Error });
1129
+ "string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type: H.Error });
1135
1130
  }
1136
- }, [r2, v2]), Me2 = S((e3, t2) => {
1137
- ee2(e3, async (o2) => {
1131
+ }, [r2, v2]), De2 = S((e3, t2) => {
1132
+ ne2(e3, async (o2) => {
1138
1133
  const n2 = o2.getSelectedRanges();
1139
1134
  n2.doBatch(() => {
1140
- const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down, l2 = n2.getCoords().slice().sort(Q.createRangeComparator(e4 ? s.Orientation.Row : s.Orientation.Column));
1135
+ const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down, l2 = n2.getCoords().slice().sort(ee.createRangeComparator(e4 ? s.Orientation.Row : s.Orientation.Column));
1141
1136
  for (let e5 = 0; e5 < l2.length; e5++) {
1142
1137
  const n3 = l2[e5];
1143
1138
  let r3 = n3;
@@ -1151,92 +1146,92 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1151
1146
  }
1152
1147
  }, { autoSelect: true, description: e3.label() });
1153
1148
  });
1154
- }, [v2]), Ae2 = S(() => {
1149
+ }, [v2]), Ie2 = S(() => {
1155
1150
  let e3 = null;
1156
1151
  const t2 = r2.getSelectedCell().getCoords();
1157
1152
  if (t2?.rowIndex > 0) {
1158
1153
  const o2 = r2.getRange({ rowIndex: t2.rowIndex - 1, colIndex: t2.colIndex }).getCell();
1159
1154
  o2 && (e3 = o2.toTextUnformatted(true));
1160
1155
  }
1161
- z2?.({ text: e3 });
1162
- }, [r2]), [Fe2, De2] = ue((e3) => e3 + 1, 0), [Ee2, Ie2] = ue((e3) => e3 + 1, 0), Ne2 = ne(() => [new T("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new T("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new T("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new T("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new T("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new T("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new T("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new T("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [R.Ctrl, R.Shift] } }), new T("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [R.Ctrl] }, { key: "`", modifiers: [R.Ctrl, R.Shift] }] }), new T("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [R.Ctrl, R.Shift] } }, () => xe2()), new T("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [R.Ctrl] }, { key: "Space", modifiers: [R.Ctrl, R.Shift] }] }, (e3 = false) => ke2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [R.Ctrl, R.Shift] } }, () => ke2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Alt] } }, () => Se2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new T("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
1163
- be2(this, { reverse: false }, false);
1156
+ P2?.({ text: e3 });
1157
+ }, [r2]), [Ee2, He2] = he((e3) => e3 + 1, 0), [Ne2, Pe2] = he((e3) => e3 + 1, 0), Ve2 = le(() => [new T("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new T("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new T("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new T("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new T("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new T("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new T("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new T("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [R.Ctrl, R.Shift] } }), new T("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [R.Ctrl] }, { key: "`", modifiers: [R.Ctrl, R.Shift] }] }), new T("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [R.Ctrl, R.Shift] } }, () => Re2()), new T("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [R.Ctrl] }, { key: "Space", modifiers: [R.Ctrl, R.Shift] }] }, (e3 = false) => Me2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [R.Ctrl, R.Shift] } }, () => Me2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Alt] } }, () => Te2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new T("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
1158
+ ke2(this, { reverse: false }, false);
1164
1159
  }), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
1165
- be2(this, { reverse: true }, false);
1160
+ ke2(this, { reverse: true }, false);
1166
1161
  }), new k("sortCustom", p2, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts.", icon: "SortCustom" }, function() {
1167
- be2(this, {}, true);
1162
+ ke2(this, {}, true);
1168
1163
  }), new T("protectionSheetToggle", p2, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: "Prevent unwanted changes from others by limiting their ability to edit.\nFor example, you can prevent people from editing locked cells or making formatting changes.", icon: "Lock" }), new T("formatSheetTabColor", p2, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets.", icon: "stroke.colored" }), new T("formatCellStyle", p2, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet.", icon: "PresetStyles" }, function(e3) {
1169
- te2(this, { named: e3.getName() }, true);
1164
+ ie2(this, { named: e3.getName() }, true);
1170
1165
  }), new T("formatTableStyle", p2, { label: "Format as Table", scopedLabels: { table: "Apply (Keep Styles)" }, description: "Create a table or apply style to the current table.", icon: "PresetStyles" }, function(e3) {
1171
- we2(this, e3);
1166
+ ye2(this, e3);
1172
1167
  }), new T("formatTableStyleClearCellStyles", p2, { label: "Format as Table (Clear Styles)", scopedLabels: { table: "Apply (Clear Styles)" }, icon: "PresetStyles", description: "Create a table or apply style to the current table and clears all cell styles." }, function(e3) {
1173
- we2(this, e3, true);
1168
+ ye2(this, e3, true);
1174
1169
  }), new T("formatTableStyleClearTableStyle", p2, { label: "Clear Table Style", scopedLabels: { table: "Clear Style" }, icon: "ClearFormats", description: "Remove all the styling that is specific for the table." }, function() {
1175
- we2(this, { name: null }, true);
1176
- }), new T("setDefaultTableStyle", p2, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, me2), new T("deleteTableStyle", p2, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, pe2), new T("formatBorder", p2, { label: "Border", description: "Create an outline border." }, function(e3) {
1177
- te2(this, { border: e3 });
1170
+ ye2(this, { name: null }, true);
1171
+ }), new T("setDefaultTableStyle", p2, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, we2), new T("deleteTableStyle", p2, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, ve2), new T("formatBorder", p2, { label: "Border", description: "Create an outline border." }, function(e3) {
1172
+ ie2(this, { border: e3 });
1178
1173
  }), new T("formatFillColor", p2, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(e3) {
1179
- te2(this, { fill: e3 });
1174
+ ie2(this, { fill: e3 });
1180
1175
  }), new T("formatFontColor", p2, { label: "Font Color", description: "Change the color of your text." }, function(e3) {
1181
- te2(this, { font: { fill: e3 } });
1176
+ ie2(this, { font: { fill: e3 } });
1182
1177
  }), new T("formatBoldToggle", p2, { label: "Bold", description: "Toggle bold formatting of text.", icon: "TextBold", shortcut: [{ key: "B", modifiers: [R.Ctrl] }, { key: "2", modifiers: [R.Ctrl] }] }), new T("formatItalicToggle", p2, { label: "Italic", description: "Toggle italic formatting of text.", icon: "TextItalic", shortcut: [{ key: "I", modifiers: [R.Ctrl] }, { key: "3", modifiers: [R.Ctrl] }] }), new T("formatUnderlinedToggle", p2, { label: "Underline", scopedLabels: { underline: "Single" }, description: "Underline the text.", icon: "TextUnderline", shortcut: [{ key: "u", modifiers: [R.Ctrl] }, { key: "4", modifiers: [R.Ctrl] }] }), new T("formatUnderlinedDoubleToggle", p2, { label: "Double Underline", scopedLabels: { underline: "Double" }, description: "Double underline the text.", icon: "TextUnderlineDouble" }), new T("formatUnderlinedAccountingToggle", p2, { label: "Accounting Underline", scopedLabels: { underline: "Accounting" }, description: "Use accounting underline for the text.", icon: "TextUnderlineAccounting" }), new T("formatUnderlinedAccountingDoubleToggle", p2, { label: "Double Accounting Underline", scopedLabels: { underline: "Double Accounting" }, description: "Use accounting double underline the text.", icon: "TextUnderlineAccountingDouble" }), new T("formatStrikeThroughToggle", p2, { label: "Strikethrough", description: "Toggle strike-through formatting of text.", icon: "TextStrike", shortcut: { key: "5", modifiers: [R.Ctrl] } }), new T("formatSuperscriptToggle", p2, { label: "Superscript", description: "Format your text to be smaller and sit at the top of the line.", icon: "TextSuperscript" }), new T("formatSubscriptToggle", p2, { label: "Subscript", description: "Format your text to be smaller and sit at the bottom of the line.", icon: "TextSubscript" }), new T("formatAlignTopToggle", p2, { label: "Align Top", description: "Align text to the top.", icon: "TextVerticalTop" }), new T("formatTextOverflowVisibleToggle", p2, { label: "Overflow Text", description: "Overflow text to the next cells.", icon: "TextHorizontalOverflow" }), new T("formatTextOverflowWrapToggle", p2, { label: "Wrap Text", description: "Wrap text with the existing cell and increase the height as required.", icon: "TextHorizontalWrap" }), new T("formatTextOverflowClipToggle", p2, { label: "Clip Text", description: "Clip text that falls outside of the existing cell.", icon: "TextHorizontalClip" }), new T("formatTextOverflowShrinkToggle", p2, { label: "Shrink Text", description: "Shrink the text font to fit within existing cell.", icon: "TextHorizontalShrink" }), new T("formatTextOverflowEllipsisToggle", p2, { label: "Ellipsis Text", description: "Add a trailing '…' to the text to indicate text is partially hidden." }), new T("formatAlignMiddleToggle", p2, { label: "Align Middle", description: "Align text so that it is centered between the top and bottom of the cell.", icon: "TextVerticalCenter" }), new T("formatAlignBottomToggle", p2, { label: "Align Bottom", description: "Align text to the bottom.", icon: "TextVerticalBottom" }), new T("formatAlignJustifyVerticalToggle", p2, { label: "Justify Vertically", description: "Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell.", icon: "FormatAlignJustify" }), new T("formatAlignDistributedVerticalToggle", p2, { label: "Distribute Vertically", description: "Justify your content vertically.", icon: "FormatAlignJustify" }), new T("formatAlignLeftToggle", p2, { label: "Align Left", description: "Align your content to the left.", icon: "FormatAlignLeft" }), new T("formatAlignCenterToggle", p2, { label: "Align Center", description: "Center your content.", icon: "FormatAlignCenter" }), new T("formatAlignRightToggle", p2, { label: "Align Right", description: "Align your content to the right.", icon: "FormatAlignRight" }), new T("formatAlignJustifyToggle", p2, { label: "Align Justify", description: "Justify your content.", icon: "FormatAlignJustify" }), new T("formatAlignCenterContinuousToggle", p2, { label: "Center Across", description: "Center your content across multiple cells.", icon: "FormatAlignCenter" }), new T("formatAlignFillToggle", p2, { label: "Fill Across", description: "Repeat the value to fill the entire cell.", icon: "FormatAlignJustify" }), new T("formatAlignDistributedHorizontalToggle", p2, { label: "Distribute Horizontally", description: "Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell.", icon: "FormatAlignJustify" }), new k("formatFontSizeIncrease", p2, { label: "Increase Font Size", description: "Make your text a bit bigger.", icon: "TextSizeIncrease", shortcut: { key: ">", modifiers: [R.Ctrl, R.Shift] } }, function() {
1183
- te2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), true) } }));
1178
+ ie2(this, (e3) => ({ font: { size: Qe(e3.getFont().getSize(), true) } }));
1184
1179
  }), new k("formatFontSizeDecrease", p2, { label: "Decrease Font Size", description: "Make your text a bit smaller.", icon: "TextSizeDecrease", shortcut: { key: "<", modifiers: [R.Ctrl, R.Shift] } }, function() {
1185
- te2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), false) } }));
1180
+ ie2(this, (e3) => ({ font: { size: Qe(e3.getFont().getSize(), false) } }));
1186
1181
  }), new T("formatFontFamily", p2, { label: "Font", description: "Select the font your text." }, function(e3) {
1187
- te2(this, { font: { family: e3 } });
1182
+ ie2(this, { font: { family: e3 } });
1188
1183
  }), new T("formatFontSize", p2, { label: "Font Size", description: "Change the size of your text." }, function(e3) {
1189
- te2(this, { font: { size: e3 } });
1184
+ ie2(this, { font: { size: e3 } });
1190
1185
  }), new T("formatNumberDialog", p2, { label: "Custom Number Format", scopedLabels: { numberFormat: "Custom" }, description: "Create a custom number format.", shortcut: [{ key: "1", modifiers: [R.Ctrl] }, { key: "1", modifiers: [R.Ctrl, R.Alt] }] }, function(e3, t2) {
1191
- const o2 = this, n2 = { initialValue: e3 ?? t2.state(), context: t2.context(), onInputOption: (e4, t3) => {
1192
- te2(o2, { numberFormat: e4 });
1186
+ const o2 = this, n2 = { initialValue: e3 ?? t2.state(), context: () => t2.context(), onInput: (e4, t3) => {
1187
+ ie2(o2, { numberFormat: e4 });
1193
1188
  } };
1194
- v2.showWindow?.("numberFormat", n2);
1189
+ v2.showWindow("numberFormat", n2);
1195
1190
  }), new T("formatNumberFormat", p2, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(e3) {
1196
- te2(this, { numberFormat: e3 });
1191
+ ie2(this, { numberFormat: e3 });
1197
1192
  }), new T("formatNumberFormatGeneralStyle", p2, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [R.Ctrl, R.Shift] } }, function() {
1198
- te2(this, { numberFormat: t.Type.General });
1193
+ ie2(this, { numberFormat: t.Type.General });
1199
1194
  }), new T("formatNumberFormatNumberStyle", p2, { label: "Number Style", description: "Format as number with two decimals and comma.", shortcut: { key: "1", modifiers: [R.Ctrl, R.Shift] } }, function() {
1200
- te2(this, { numberFormat: "#,##0.00" });
1195
+ ie2(this, { numberFormat: "#,##0.00" });
1201
1196
  }), new T("formatNumberFormatTimeStyle", p2, { label: "Time Style", description: "Format as time with hour and minute, and AM or PM.", shortcut: { key: "2", modifiers: [R.Ctrl, R.Shift] } }, function() {
1202
- te2(this, { numberFormat: "h:mm AM/PM" });
1197
+ ie2(this, { numberFormat: "h:mm AM/PM" });
1203
1198
  }), new T("formatNumberFormatDateStyle", p2, { label: "Date Style", description: "Format as date with day, month, and year.", shortcut: { key: "3", modifiers: [R.Ctrl, R.Shift] } }, function() {
1204
- te2(this, { numberFormat: "d-mmm-yy" });
1199
+ ie2(this, { numberFormat: "d-mmm-yy" });
1205
1200
  }), new T("formatNumberFormatAccountingStyle", p2, { label: "Accounting Style", description: "Format as Dollars, Euros, or other currency.", icon: "CurrencyDollar", shortcut: { key: "4", modifiers: [R.Ctrl, R.Shift] } }, function(e3) {
1206
- te2(this, { numberFormat: e3 ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
1201
+ ie2(this, { numberFormat: e3 ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
1207
1202
  }), new T("formatNumberFormatPercentStyle", p2, { label: "Percent Style", description: "Format as a percent with no decimal places.", icon: "Percent", shortcut: { key: "5", modifiers: [R.Ctrl, R.Shift] } }, function() {
1208
- te2(this, { numberFormat: "0%" });
1203
+ ie2(this, { numberFormat: "0%" });
1209
1204
  }), new T("formatNumberFormatScientificStyle", p2, { label: "Scientific Style", description: "Format as a scientific number with two decimal places .", shortcut: { key: "6", modifiers: [R.Ctrl, R.Shift] } }, function() {
1210
- te2(this, { numberFormat: "0.00E+00" });
1205
+ ie2(this, { numberFormat: "0.00E+00" });
1211
1206
  }), new T("formatNumberFormatCommaStyle", p2, { label: "Comma Style", description: "Format with a thousands separator.", icon: "Comma", shortcut: { key: ",", modifiers: [R.Ctrl] } }, function() {
1212
- te2(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
1207
+ ie2(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
1213
1208
  }), new T("formatNumberFormatIncreaseDecimal", p2, { label: "Increase Decimal", description: "Show more decimal places for a more precise value.", icon: "IncreaseDecimal2" }, function() {
1214
- te2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), 1) }));
1209
+ ie2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), 1) }));
1215
1210
  }), new T("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places.", icon: "DecreaseDecimal2" }, function() {
1216
- te2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1211
+ ie2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1217
1212
  }), new T("displayPlaceholdersToggle", p2, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [R.Ctrl] } }), new k("noOp", p2, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [R.Ctrl] } }, function() {
1218
1213
  }), new T("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [R.Ctrl] } }), new T("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", icon: "HideRow", shortcut: { key: "9", modifiers: [R.Ctrl] } }), new T("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", icon: "ShowRow", shortcut: { key: "(", modifiers: [R.Ctrl, R.Shift] } }), new T("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", icon: "HideColumn", shortcut: [{ key: "0", modifiers: [R.Ctrl] }, { key: "0", modifiers: [R.Ctrl, R.Alt] }] }), new T("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", icon: "ShowColumn", shortcut: { key: ")", modifiers: [R.Ctrl, R.Shift] } }), new k("calculate", p2, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", icon: "CalculateSheet", shortcut: { key: "=", modifiers: [R.Ctrl] } }), new T("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", insertFunction: "More Functions..." }, description: "Work with the function in the current cell.", icon: "FunctionThin", shortcut: { key: "F3", modifiers: [R.Shift] } }, function(e3) {
1219
- e3 && fe2(this, e3.getName());
1214
+ e3 && qe2(this, e3.getName());
1220
1215
  }), new T("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", icon: "FunctionSum", shortcut: { key: "=", modifiers: [R.Alt] } }, function() {
1221
- fe2(this, "SUM");
1216
+ qe2(this, "SUM");
1222
1217
  }), new T("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
1223
- fe2(this, "AVERAGE");
1218
+ qe2(this, "AVERAGE");
1224
1219
  }), new T("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1225
- fe2(this, "COUNT");
1220
+ qe2(this, "COUNT");
1226
1221
  }), new T("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
1227
- fe2(this, "MAX");
1222
+ qe2(this, "MAX");
1228
1223
  }), new T("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
1229
- fe2(this, "MIN");
1224
+ qe2(this, "MIN");
1230
1225
  }), new T("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Shift] } }, function() {
1231
- z2?.({ text: r2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Medium Time" } }).toText() });
1226
+ P2?.({ text: r2.createTemporaryCell({ value: Xe(), style: { numberFormat: "Medium Time" } }).toText() });
1232
1227
  }), new T("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl] } }, function() {
1233
- z2?.({ text: r2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Short Date" } }).toText() });
1234
- }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadSubtract", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadAdd", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [R.Ctrl, R.Alt] } }), new T("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", icon: "HyperlinkInset", context: () => J2, shortcut: [{ key: "K", modifiers: [R.Ctrl] }, { key: "K", modifiers: [R.Ctrl, R.Alt] }] }, async function(e3, t2) {
1235
- const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
1236
- oe2(o2, e4, t3);
1228
+ P2?.({ text: r2.createTemporaryCell({ value: Xe(), style: { numberFormat: "Short Date" } }).toText() });
1229
+ }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadSubtract", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadAdd", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [R.Ctrl, R.Alt] } }), new T("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", icon: "HyperlinkInset", context: () => oe2, shortcut: [{ key: "K", modifiers: [R.Ctrl] }, { key: "K", modifiers: [R.Ctrl, R.Alt] }] }, async function(e3, t2) {
1230
+ const o2 = this, n2 = { context: t2.context(), onInput: (e4) => {
1231
+ de2(o2, e4);
1237
1232
  } };
1238
- v2.showWindow?.("hyperlink", n2);
1239
- }), new T("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [R.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => J2 }, async (e3, t2) => {
1233
+ v2.showWindow("hyperlink", n2);
1234
+ }), new T("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [R.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => oe2 }, async (e3, t2) => {
1240
1235
  const o2 = t2.context()();
1241
1236
  if (!o2) return;
1242
1237
  const n2 = o2.getHyperlink();
@@ -1245,38 +1240,38 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1245
1240
  } catch (e4) {
1246
1241
  v2.showError(e4);
1247
1242
  }
1248
- }), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, icon: "HyperlinkDelete", description: "Remove the hyperlink.", context: () => J2 }, function(e3, t2) {
1249
- oe2(this, null, null);
1243
+ }), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, icon: "HyperlinkDelete", description: "Remove the hyperlink.", context: () => oe2 }, function(e3, t2) {
1244
+ de2(this, null);
1250
1245
  }), new k("insertNote", p2, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [R.Shift] }, description: "Add a note to the cell." }, (e3, t2) => {
1251
1246
  ((e4, t3) => {
1252
- e4?.showMessage?.(j("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", Z("br", {}), Z("br", {}), "Please see the ", Z("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1247
+ e4?.showMessage?.(K("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", j("br", {}), j("br", {}), "Please see the ", j("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1253
1248
  })(v2, t2.label());
1254
- }), new T("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [R.Ctrl, R.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => J2 }, async function(e3, t2) {
1255
- const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
1256
- re2(o2, e4);
1249
+ }), new T("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [R.Ctrl, R.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => oe2 }, async function(e3, t2) {
1250
+ const o2 = this, n2 = { context: t2.context(), onInput: (e4) => {
1251
+ ge2(o2, e4);
1257
1252
  } };
1258
- v2.showWindow?.("comments", n2);
1259
- }), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", icon: "CommentDelete", context: () => J2 }, function(e3, t2) {
1260
- re2(this, null);
1253
+ v2.showWindow("comments", n2);
1254
+ }), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", icon: "CommentDelete", context: () => oe2 }, function(e3, t2) {
1255
+ ge2(this, null);
1261
1256
  }), new T("insertImageFromFile", p2, { label: "Insert Image", scopedLabels: { contextMenu: "Insert Image…", insert: "Image…", insertImage: "From Device…" }, description: "Insert a picture from your device.", icon: "InsertImage" }, async function(e3 = null) {
1262
1257
  let t2 = null, o2 = null;
1263
- "string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await X.openFileDialog(o2 ?? "image/*"), t2)) && await Re2(this, { file: t2 }, e3?.options);
1258
+ "string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await Y.openFileDialog(o2 ?? "image/*"), t2)) && await ze2(this, { file: t2 }, e3?.options);
1264
1259
  }), new T("insertImageFromURL", p2, { label: "Insert Image From Web", scopedLabels: { insert: "Image From Web", insertImage: "From the Web…" }, description: "Insert a picture from the web.", icon: "InsertImage" }, async function(e3) {
1265
1260
  if (!e3) {
1266
- const t2 = await v2.showInputOptions({ title: "Insert Image from Web", description: "Enter the web address for the image to insert.", inputLabel: "Address", initialValue: "https://picsum.photos/360", inputProps: { style: { minWidth: "440px" } }, options: ["Insert"] });
1261
+ const t2 = await v2.showInput({ title: "Insert Image from Web", description: "Enter the web address for the image to insert.", inputLabel: "Address", initialValue: "https://picsum.photos/360", inputProps: { style: { minWidth: "440px" } }, options: ["Insert"] });
1267
1262
  if ("Insert" !== t2.option) return;
1268
1263
  e3 = t2.input;
1269
1264
  }
1270
- e3 && Re2(this, { fetch: e3 });
1265
+ e3 && ze2(this, { fetch: e3 });
1271
1266
  }), new k("insertTable", p2, { label: "Insert Table", scopedLabels: { contextMenu: "Insert Table…", insert: "Table" }, description: "Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.", icon: "InsertTable", shortcut: [{ key: "L", modifiers: [R.Ctrl] }, { key: "T", modifiers: [R.Alt, R.Ctrl] }] }, function() {
1272
- we2(this);
1267
+ ye2(this);
1273
1268
  }), new T("editTable", p2, { label: "Edit Table…", scopedLabels: { table: "Edit…", namedItem: "Edit…" }, description: "Edit the table to adjust formatting, sorting, filtering, or other advanced features.", icon: "InsertTable" }, function(e3) {
1274
1269
  let t2 = null, o2 = false;
1275
- e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true), ye2(this, t2, o2);
1270
+ e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true), Se2(this, t2, o2);
1276
1271
  }), new T("deleteTable", p2, { label: "Delete Table", scopedLabels: { delete: "Table", table: "Delete", namedItem: "Delete" }, description: "Remove the table.\n\nThe table and table specific styling will be removed but the values will be preserved.", icon: "InsertTable" }, function(e3) {
1277
- Ce2(this, e3, true);
1272
+ xe2(this, e3, true);
1278
1273
  }), new T("convertTableToRange", p2, { label: "Convert To Range", description: "Convert the table into a normal range of cells.\n\nThe values and the formatting are preserved.", icon: "InsertTable" }, function(e3) {
1279
- Ce2(this, e3, false);
1274
+ xe2(this, e3, false);
1280
1275
  }), new T("tableTotalRowToggle", p2, { label: "Toggle Table Total Row", description: "Toggle Total Row on/off.", scopedLabels: { table: "Total Row" }, shortcut: { key: "T", modifiers: [R.Ctrl, R.Alt] } }, function() {
1281
1276
  const e3 = this.context().table();
1282
1277
  e3 && e3.setShowTotals(!e3.getShowTotals());
@@ -1286,341 +1281,341 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1286
1281
  }), new T("autoFilterToggle", p2, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [R.Ctrl, R.Shift] } }, function() {
1287
1282
  const e3 = this.context().table();
1288
1283
  e3 && e3.setShowFilterButton(!e3.getShowFilterButton());
1289
- }), new T("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [R.Ctrl, R.Alt] } }), new T("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new k("startEditValueAbove", p2, { 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, Ae2), new T("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
1290
- ce2(this);
1284
+ }), new T("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [R.Ctrl, R.Alt] } }), new T("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new k("startEditValueAbove", p2, { 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, Ie2), new T("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
1285
+ me2(this);
1291
1286
  }), new k("insertCellsShiftRight", p2, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right.", icon: "InsertCellsRight" }, function() {
1292
- ce2(this, s.Orientation.Column);
1287
+ me2(this, s.Orientation.Column);
1293
1288
  }), new k("insertCellsShiftDown", p2, { label: "Insert Cells (Shift Down)", scopedLabels: { insertCells: "Shift Down" }, description: "Insert cells above and shift the current cells downward.", icon: "InsertCellsDown" }, function() {
1294
- return ce2(this, s.Orientation.Row);
1289
+ return me2(this, s.Orientation.Row);
1295
1290
  }), new k("insertRows", p2, { label: "Insert Row(s)", scopedLabels: { insertCells: "Row(s)" }, description: "Insert a row above the current position.", icon: "InsertRow" }, function() {
1296
- return ce2(this, s.Orientation.Row, true);
1291
+ return me2(this, s.Orientation.Row, true);
1297
1292
  }), new k("insertColumns", p2, { label: "Insert Column(s)", scopedLabels: { insertCells: "Column(s)" }, description: "Insert a column before the current position.", icon: "InsertColumn2" }, function() {
1298
- return ce2(this, s.Orientation.Column, true);
1293
+ return me2(this, s.Orientation.Column, true);
1299
1294
  }), new k("insertRowsAfter", p2, { label: "Insert Row Below", scopedLabels: { insertCells: "Row Below" }, description: "Insert a row below the current position." }, function() {
1300
- return ce2(this, s.Orientation.Row, true, true);
1295
+ return me2(this, s.Orientation.Row, true, true);
1301
1296
  }), new k("insertColumnsAfter", p2, { label: "Insert Column After", scopedLabels: { insertCells: "Column After" }, description: "Insert a column after the current position." }, function() {
1302
- return ce2(this, s.Orientation.Column, true, true);
1297
+ return me2(this, s.Orientation.Column, true, true);
1303
1298
  }), new k("deleteCells", p2, { label: "Delete Cells", scopedLabels: { deleteCells: "At Selection" }, description: "Delete the cells.", icon: "DeleteCells", shortcut: { key: "-", modifiers: [R.Ctrl] } }, function() {
1304
- return Te2(this);
1299
+ return Ae2(this);
1305
1300
  }), new k("deleteCellsShiftUp", p2, { label: "Delete Cells (Shift Up)", scopedLabels: { deleteCells: "Shift up" }, description: "Delete cells the current current downward.", icon: "DeleteCellsUp" }, function() {
1306
- return Te2(this, s.Orientation.Row);
1301
+ return Ae2(this, s.Orientation.Row);
1307
1302
  }), new k("deleteCellsShiftLeft", p2, { label: "Delete Cells (Shift Left)", scopedLabels: { deleteCells: "Shift Left" }, description: "Delete cells the current cells to the right.", icon: "DeleteCellsLeft" }, function() {
1308
- return Te2(this, s.Orientation.Column);
1303
+ return Ae2(this, s.Orientation.Column);
1309
1304
  }), new k("deleteRows", p2, { label: "Delete Rows", scopedLabels: { deleteCells: "Rows" }, description: "Delete the rows at the current selection.", icon: "DeleteRows" }, function() {
1310
- return Te2(this, s.Orientation.Row, true);
1305
+ return Ae2(this, s.Orientation.Row, true);
1311
1306
  }), new k("deleteColumns", p2, { label: "Delete Columns", scopedLabels: { deleteCells: "Columns" }, description: "Delete the columns at the current selection.", icon: "DeleteColumns" }, function() {
1312
- return Te2(this, s.Orientation.Column, true);
1307
+ return Ae2(this, s.Orientation.Column, true);
1313
1308
  }), new k("flashFill", p2, { label: "Flash Fill", description: "Do a flash fill.", shortcut: [{ key: "e", modifiers: [R.Ctrl] }, { key: "e", modifiers: [R.Ctrl, R.Alt] }] }), new k("fillDown", p2, { label: "Fill Down", description: "Copy the top-most value from the selection to the bottom of the selection.", icon: "FillDown", shortcut: { key: "d", modifiers: [R.Ctrl] } }, function() {
1314
- return Me2(this, s.Direction.Down);
1309
+ return De2(this, s.Direction.Down);
1315
1310
  }), new k("fillRight", p2, { label: "Fill Right", description: "Copy the left-most value from the selection to the right of the selection.", icon: "FillRight", shortcut: [{ key: "r", modifiers: [R.Ctrl] }] }, function() {
1316
- return Me2(this, s.Direction.Right);
1311
+ return De2(this, s.Direction.Right);
1317
1312
  }), new k("fillUp", p2, { label: "Fill Up", description: "Copy the bottom-most value from the selection to the top of the selection.", icon: "FillUp" }, function() {
1318
- return Me2(this, s.Direction.Up);
1313
+ return De2(this, s.Direction.Up);
1319
1314
  }), new k("fillLeft", p2, { label: "Fill Left", description: "Copy the right-most value from the selection to the left of the selection.", icon: "FillLeft" }, function() {
1320
- return Me2(this, s.Direction.Left);
1315
+ return De2(this, s.Direction.Left);
1321
1316
  }), new k("formatBorderAddOutline", p2, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [R.Ctrl, R.Shift] } }, function() {
1322
- return te2(this, { border: { left: { style: n.StrokeStyle.Thin, color: null }, top: { style: n.StrokeStyle.Thin, color: null }, right: { style: n.StrokeStyle.Thin, color: null }, bottom: { style: n.StrokeStyle.Thin, color: null } } });
1317
+ return ie2(this, { border: { left: { style: n.StrokeStyle.Thin, color: null }, top: { style: n.StrokeStyle.Thin, color: null }, right: { style: n.StrokeStyle.Thin, color: null }, bottom: { style: n.StrokeStyle.Thin, color: null } } });
1323
1318
  }), new k("formatBorderClearOutline", p2, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [R.Ctrl, R.Shift] } }, function() {
1324
- return te2(this, { border: null });
1319
+ return ie2(this, { border: null });
1325
1320
  }), new k("formatIndentDecrease", p2, { label: "Decrease Indent", description: "Move your content closer to the border.", icon: "FormatIndentDecrease" }, function() {
1326
- return te2(this, (e3) => {
1321
+ return ie2(this, (e3) => {
1327
1322
  const t2 = e3.getAlignment().getIndent() - 1;
1328
1323
  return { alignment: { indent: t2 > 0 ? t2 : 0 } };
1329
1324
  });
1330
1325
  }), new k("formatIndentIncrease", p2, { label: "Increase Indent", description: "Move your content further from the border.", icon: "FormatIndentIncrease" }, function() {
1331
- return te2(this, (e3) => {
1326
+ return ie2(this, (e3) => {
1332
1327
  const t2 = { alignment: { indent: e3.getAlignment().getIndent() + 1 } };
1333
1328
  return e3.getAlignment().getHorizontal() === l.HorizontalAlignment.General && (t2.alignment.horizontal = l.HorizontalAlignment.Left), t2;
1334
1329
  });
1335
1330
  }), new T("mergeToggle", p2, { label: "Merge", description: "Combine and center the contents into a single cell.", icon: "MergeAll", shortcut: { key: "m", modifiers: [R.Ctrl] } }), new k("mergeHorizontal", p2, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows.", icon: "MergeHorizontal" }), new k("mergeVertical", p2, { label: "Merge Vertically", description: "Combine the contents into vertical columns.", icon: "MergeVertical" }), new k("unmerge", p2, { label: "Unmerge", description: "Split merged cells into multiple cells.", icon: "MergeUnMerge" }), new k("clearContents", p2, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, icon: "ClearContents", description: "Clear only the contents in the cells.\n\nThe formatting is not cleared.", shortcut: { key: "Delete" } }, function() {
1336
- se2(this, o.Content.Values);
1331
+ ue2(this, o.Content.Values);
1337
1332
  }), new k("clearFormats", p2, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, icon: "ClearFormats", description: "Clear only the formatting that is applied to the cells." }, function() {
1338
- se2(this, o.Content.Formats);
1333
+ ue2(this, o.Content.Formats);
1339
1334
  }), new k("clearHyperlinks", p2, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
1340
- se2(this, o.Content.Hyperlinks);
1335
+ ue2(this, o.Content.Hyperlinks);
1341
1336
  }), new k("clearComments", p2, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
1342
- se2(this, o.Content.Comments);
1337
+ ue2(this, o.Content.Comments);
1343
1338
  }), new k("clearAll", p2, { label: "Clear All", scopedLabels: { clear: "All" }, icon: "ClearAll", description: "Clears everything from the cells.\n\nAll contents and formatting are removed.", shortcut: { key: "Delete", modifiers: [R.Ctrl, R.Shift] } }, function() {
1344
- se2(this);
1345
- }), new T("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection).", icon: "FreezeBoth" }), new T("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet.", icon: "FreezeRows" }), new T("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet.", icon: "FreezeColumns" }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns.", icon: "MergeUnMerge" }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height.", icon: "RowsResizeAuto" }), new k("resizeRows", p2, { label: "Resize Rows", description: "Resize the rows to the specified height.", icon: "RowsResize", disabled: true }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width.", icon: "ColumnsResizeAuto" }), new k("resizeColumns", p2, { label: "Resize Columns", description: "Resize the columns to the specified width.", icon: "ColumnsResize", disabled: true })], []), He2 = ne(() => {
1339
+ ue2(this);
1340
+ }), new T("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection).", icon: "FreezeBoth" }), new T("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet.", icon: "FreezeRows" }), new T("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet.", icon: "FreezeColumns" }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns.", icon: "MergeUnMerge" }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height.", icon: "RowsResizeAuto" }), new k("resizeRows", p2, { label: "Resize Rows", description: "Resize the rows to the specified height.", icon: "RowsResize" }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width.", icon: "ColumnsResizeAuto" }), new k("resizeColumns", p2, { label: "Resize Columns", description: "Resize the columns to the specified width.", icon: "ColumnsResize" })], []), Le2 = le(() => {
1346
1341
  let e3 = null;
1347
- return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new M(p2, "sheet"), e3.addCommands(Ne2, true), e3;
1348
- }, [h2, Ne2]), [Pe2, Ve2] = le(false), [Le2, Be2] = le(false);
1349
- ae(() => {
1342
+ return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new M(p2, "sheet"), e3.addCommands(Ve2, true), e3;
1343
+ }, [h2, Ve2]), [Be2, Oe2] = re(false), [$e2, We2] = re(false);
1344
+ se(() => {
1350
1345
  if (A2.current !== r2 || !b2) return;
1351
1346
  const e3 = b2.getCoords(), t2 = r2.getTables().getItems({ address: e3[0] });
1352
- G2((e4) => X.isEqualArrays(e4, t2) ? e4 : t2), y2 && t2[0] && Q.isCellWithinRange(y2, t2[0].getRange().getCoords()) ? he2(t2[0] ?? null) : he2(null);
1347
+ J2((e4) => Y.isEqualArrays(e4, t2) ? e4 : t2), y2 && t2[0] && ee.isCellWithinRange(y2, t2[0].getRange().getCoords()) ? fe2(t2[0] ?? null) : fe2(null);
1353
1348
  const o2 = r2.getSelectedRanges(), n2 = o2.getMerges().length > 0, l2 = o2.isOverlapping();
1354
1349
  let i3 = true;
1355
- for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = Q.isSingleCell(e3[t3]);
1356
- Be2(l2), Ve2(0 === t2.length && !l2 && (n2 || !i3));
1357
- }, [Ee2, b2, r2]), N(h2, null, { onChange: () => {
1358
- const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === W2.getMode()?.key;
1359
- He2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
1360
- if (t2) return void W2.setMode(null);
1361
- return He2.getCommand("copy").execute({ editMode: { key: "formatPainter", description: "Use the mouse to apply the copied format to another selection.", cursor: `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer` } });
1350
+ for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = ee.isSingleCell(e3[t3]);
1351
+ We2(l2), Oe2(0 === t2.length && !l2 && (n2 || !i3));
1352
+ }, [Ne2, b2, r2]), N(h2, null, { onChange: () => {
1353
+ const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === G2.getMode()?.key;
1354
+ Le2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
1355
+ if (t2) return void G2.setMode(null);
1356
+ return Le2.getCommand("copy").execute({ editMode: { key: "formatPainter", description: "Use the mouse to apply the copied format to another selection.", cursor: `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer` } });
1362
1357
  });
1363
- } }, [W2, Fe2, h2]), St(r2.getView(), { onFreezeSplitChange: () => {
1364
- Ie2();
1365
- } }), St(r2.getSelection(), { onChange: () => {
1366
- Y2();
1358
+ } }, [G2, Ee2, h2]), xt(r2.getView(), { onFreezeSplitChange: () => {
1359
+ Pe2();
1360
+ } }), xt(r2.getSelection(), { onChange: () => {
1361
+ te2();
1367
1362
  } });
1368
- const Oe2 = () => {
1369
- He2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => r2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
1370
- }, darkMode: d2.darkMode, autoColor: r2.getStyles().parseColor(d2.strokeFill), schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) }), He2.getCommand("formatSheetTabColor").updateCallback((e3) => {
1363
+ const Ue2 = () => {
1364
+ Le2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => r2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
1365
+ }, darkMode: d2.darkMode, autoColor: r2.getStyles().parseColor(d2.strokeFill), schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) }), Le2.getCommand("formatSheetTabColor").updateCallback((e3) => {
1371
1366
  r2.setTabColor(e3);
1372
- }).update({ state: () => r2?.getTabColor() ?? Pt, context: () => ({ onColorSelect: (e3) => {
1373
- }, darkMode: d2.darkMode, autoColor: Pt, schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) });
1374
- }, $e2 = () => {
1375
- He2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
1376
- V2(e3);
1377
- }, darkMode: d2.darkMode, quickBorder: P2, autoColor: r2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => r2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: r2.getStyles().schemeLookup() }) });
1367
+ }).update({ state: () => r2?.getTabColor() ?? Vt, context: () => ({ onColorSelect: (e3) => {
1368
+ }, darkMode: d2.darkMode, autoColor: Vt, schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) });
1369
+ }, _e2 = () => {
1370
+ Le2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
1371
+ O2(e3);
1372
+ }, darkMode: d2.darkMode, quickBorder: B2, autoColor: r2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => r2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: r2.getStyles().schemeLookup() }) });
1378
1373
  };
1379
- ae(() => {
1380
- $e2();
1381
- }, [P2]), ae(() => {
1374
+ se(() => {
1375
+ _e2();
1376
+ }, [B2]), se(() => {
1382
1377
  const e3 = !r2.getProtection().isInsertHyperlinksAllowed();
1383
- He2.getCommand("openHyperlink").update({ disabled: !J2().getHyperlink() }), He2.getCommand("deleteHyperlink").update({ disabled: e3 || !J2().getHyperlink() });
1384
- const t2 = J2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
1385
- He2.getCommand("updateHyperlink").update({ label: () => (J2().getHyperlink(), `${t2} ${o2}`), icon: () => "Edit" === t2 ? "HyperlinkEdit" : "HyperlinkInsert", scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
1386
- }, [J2()?.getHyperlink(), Fe2]), ae(() => {
1387
- const e3 = J2().getComments(), t2 = () => e3 ? "Edit" : "Insert", o2 = () => e3 ? "Comments" : "Comment";
1388
- He2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, icon: () => e3 ? "CommentEdit" : "CommentInsert", scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
1389
- }, [J2()?.getComments(), Fe2]), St(r2, { onViewChange: () => {
1378
+ Le2.getCommand("openHyperlink").update({ disabled: !oe2().getHyperlink() }), Le2.getCommand("deleteHyperlink").update({ disabled: e3 || !oe2().getHyperlink() });
1379
+ const t2 = oe2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
1380
+ Le2.getCommand("updateHyperlink").update({ label: () => (oe2().getHyperlink(), `${t2} ${o2}`), icon: () => "Edit" === t2 ? "HyperlinkEdit" : "HyperlinkInsert", scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
1381
+ }, [oe2()?.getHyperlink(), Ee2]), se(() => {
1382
+ const e3 = oe2().getComments(), t2 = () => e3 ? "Edit" : "Insert", o2 = () => e3 ? "Comments" : "Comment";
1383
+ Le2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, icon: () => e3 ? "CommentEdit" : "CommentInsert", scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
1384
+ }, [oe2()?.getComments(), Ee2]), xt(r2, { onViewChange: () => {
1390
1385
  const e3 = r2.getView();
1391
- He2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), He2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), He2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), He2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), He2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Oe2();
1386
+ Le2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), Le2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), Le2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), Le2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), Le2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), Le2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), Le2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), Le2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), Le2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Ue2();
1392
1387
  }, onTabColorChange: () => {
1393
- Oe2();
1388
+ Ue2();
1394
1389
  }, onMergesChange: () => {
1395
- Ie2();
1390
+ Pe2();
1396
1391
  }, onMovablesChange: () => {
1397
- Ie2();
1392
+ Pe2();
1398
1393
  }, onTablesChange: () => {
1399
- Ie2();
1394
+ Pe2();
1400
1395
  }, onProtectionChange: () => {
1401
- Ie2(), De2();
1396
+ Pe2(), He2();
1402
1397
  }, onStyleChange: () => {
1403
- Oe2(), $e2(), Ie2();
1404
- } }), ae(() => {
1405
- Oe2(), $e2();
1406
- }, [d2]), ae(() => {
1407
- const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = _2.length > 0 && !ge2 || e3, o2 = qe2(ge2), n2 = { context: o2 };
1408
- He2.getCommand("editTable").update(n2), He2.getCommand("deleteTable").update(n2), He2.getCommand("convertTableToRange").update(n2);
1398
+ Ue2(), _e2(), Pe2();
1399
+ } }), se(() => {
1400
+ Ue2(), _e2();
1401
+ }, [d2]), se(() => {
1402
+ const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = X2.length > 0 && !pe2 || e3, o2 = be2(pe2), n2 = { context: o2 };
1403
+ Le2.getCommand("editTable").update(n2), Le2.getCommand("deleteTable").update(n2), Le2.getCommand("convertTableToRange").update(n2);
1409
1404
  const l2 = { context: o2, disabled: t2 };
1410
- He2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...l2 }), He2.getCommand("formatTableStyleClearCellStyles").update(l2), He2.getCommand("deleteTableStyle").update(l2), He2.getCommand("convertTableToRange").update(l2), He2.getCommand("insertTable").update({ disabled: t2 || _2.length > 0 });
1411
- const i3 = { context: o2, disabled: t2 || 0 === _2.length };
1412
- He2.getCommand("tableHeaderRowToggle").update(i3), He2.getCommand("tableTotalRowToggle").update(i3), He2.getCommand("autoFilterToggle").update(i3), He2.getCommand("formatTableStyleClearTableStyle").update({ ...i3, disabled: i3.disabled || !ge2 || null === ge2.getStyleOptions().name });
1413
- }, [ge2, _2, Fe2]), ae(() => {
1414
- He2.getCommand("sheetZoomOut").updateCallback(() => {
1415
- r2.getView().update({ zoomScale: X.findNextStep(r2.getView().getZoomScale(), false) });
1416
- }), He2.getCommand("sheetZoomIn").updateCallback(() => {
1417
- r2.getView().update({ zoomScale: X.findNextStep(r2.getView().getZoomScale()) });
1418
- }), He2.getCommand("sheetZoom100").updateCallback(() => {
1405
+ Le2.getCommand("formatTableStyle").update({ label: pe2 ? "Apply Table Style" : "Format As Table", ...l2 }), Le2.getCommand("formatTableStyleClearCellStyles").update(l2), Le2.getCommand("deleteTableStyle").update(l2), Le2.getCommand("convertTableToRange").update(l2), Le2.getCommand("insertTable").update({ disabled: t2 || X2.length > 0 });
1406
+ const i3 = { context: o2, disabled: t2 || 0 === X2.length };
1407
+ Le2.getCommand("tableHeaderRowToggle").update(i3), Le2.getCommand("tableTotalRowToggle").update(i3), Le2.getCommand("autoFilterToggle").update(i3), Le2.getCommand("formatTableStyleClearTableStyle").update({ ...i3, disabled: i3.disabled || !pe2 || null === pe2.getStyleOptions().name });
1408
+ }, [pe2, X2, Ee2]), se(() => {
1409
+ Le2.getCommand("sheetZoomOut").updateCallback(() => {
1410
+ r2.getView().update({ zoomScale: Y.findNextStep(r2.getView().getZoomScale(), false) });
1411
+ }), Le2.getCommand("sheetZoomIn").updateCallback(() => {
1412
+ r2.getView().update({ zoomScale: Y.findNextStep(r2.getView().getZoomScale()) });
1413
+ }), Le2.getCommand("sheetZoom100").updateCallback(() => {
1419
1414
  r2.getView().update({ zoomScale: 100 });
1420
- }), He2.getCommand("gridlinesToggle").updateCallback(() => {
1415
+ }), Le2.getCommand("gridlinesToggle").updateCallback(() => {
1421
1416
  const e3 = r2.getView().isShowColumnGridlines() && r2.getView().isShowRowGridlines();
1422
1417
  r2.getView().update({ showColumnGridlines: !e3, showRowGridlines: !e3 });
1423
- }), He2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
1418
+ }), Le2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
1424
1419
  r2.getView().update({ showRowGridlines: !r2.getView().isShowRowGridlines() });
1425
- }), He2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
1420
+ }), Le2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
1426
1421
  r2.getView().update({ showColumnGridlines: !r2.getView().isShowColumnGridlines() });
1427
- }), He2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
1422
+ }), Le2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
1428
1423
  r2.getView().update({ gridLineColor: e3 });
1429
- }), He2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
1424
+ }), Le2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
1430
1425
  const e3 = r2.getView().isShowColumnHeaders() && r2.getView().isShowRowHeaders();
1431
1426
  r2.getView().update({ showColumnHeaders: !e3, showRowHeaders: !e3 });
1432
- }), He2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
1427
+ }), Le2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
1433
1428
  r2.getView().update({ showColumnHeaders: !r2.getView().isShowColumnHeaders() });
1434
- }), He2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
1429
+ }), Le2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
1435
1430
  r2.getView().update({ showRowHeaders: !r2.getView().isShowRowHeaders() });
1436
- }), He2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
1431
+ }), Le2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
1437
1432
  const e3 = r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero;
1438
1433
  r2.getView().update({ columnHeaderStyle: e3 ? u.HeaderTextStyle.A1 : u.HeaderTextStyle.Zero, rowHeaderStyle: e3 ? u.HeaderTextStyle.One : u.HeaderTextStyle.Zero });
1439
- }), He2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
1434
+ }), Le2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
1440
1435
  r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
1441
- }), He2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1436
+ }), Le2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1442
1437
  r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
1443
- }), He2.getCommand("calculate").updateCallback(() => {
1438
+ }), Le2.getCommand("calculate").updateCallback(() => {
1444
1439
  r2.getEntireRange().calculate(true);
1445
- }), He2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
1440
+ }), Le2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
1446
1441
  const t2 = r2.getWorkbook();
1447
- if (!t2) return X.EmptyArray;
1442
+ if (!t2) return Y.EmptyArray;
1448
1443
  const o2 = await t2.getScripts().searchFunctions({ category: e3, includeBuiltIn: true });
1449
1444
  return o2.sort((e4, t3) => e4.getName().localeCompare(t3.getName())), o2;
1450
1445
  } }) });
1451
- }, [r2]), ae(() => {
1446
+ }, [r2]), se(() => {
1452
1447
  const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
1453
- He2.getCommand("freezeToggle").updateCallback(() => {
1448
+ Le2.getCommand("freezeToggle").updateCallback(() => {
1454
1449
  n2() ? r2.getView().setFreezePanes(null) : n2() ? o2() ? r2.getView().setFreezePanes({ coords: { rowIndex: y2.rowIndex } }) : t2() && r2.getView().setFreezePanes({ coords: { colIndex: y2.colIndex } }) : r2.getView().setFreezePanes({ coords: y2 });
1455
- }).update({ state: n2, disabled: () => !y2 || !n2() && 0 === y2.rowIndex && 0 === y2.colIndex }), He2.getCommand("freezeToggleHorizontal").updateCallback(() => {
1450
+ }).update({ state: n2, disabled: () => !y2 || !n2() && 0 === y2.rowIndex && 0 === y2.colIndex }), Le2.getCommand("freezeToggleHorizontal").updateCallback(() => {
1456
1451
  r2.getView().setFreezePanes({ coords: { rowIndex: t2() ? 0 : y2.rowIndex } });
1457
- }).update({ state: t2, disabled: () => !y2 || !t2() && 0 === y2.rowIndex }), He2.getCommand("freezeToggleVertical").updateCallback(() => {
1452
+ }).update({ state: t2, disabled: () => !y2 || !t2() && 0 === y2.rowIndex }), Le2.getCommand("freezeToggleVertical").updateCallback(() => {
1458
1453
  r2.getView().setFreezePanes({ coords: { colIndex: o2() ? 0 : y2.colIndex } });
1459
- }).update({ state: o2, disabled: () => !y2 || !o2() && 0 === y2.colIndex }), He2.getCommand("unfreeze").updateCallback(() => {
1454
+ }).update({ state: o2, disabled: () => !y2 || !o2() && 0 === y2.colIndex }), Le2.getCommand("unfreeze").updateCallback(() => {
1460
1455
  r2.getView().setFreezePanes(null);
1461
1456
  }).update({ disabled: () => !n2() });
1462
- }, [Ee2, y2, r2, d2]);
1463
- const We2 = J2().getStyle(), Ue2 = We2.getFont(), _e2 = We2.getAlignment(), Ge2 = _e2.getHorizontal(), Ze2 = _e2.getVertical(), je2 = _e2.getOverflow(), Xe2 = _e2.getRotation();
1464
- return ae(() => {
1465
- He2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => r2.getStyles(), named: () => J2().getStyle(true).getNamed(), bodyStyle: ve2, createTemporaryCell: (e4) => r2.createTemporaryCell(e4) }) }), He2.getCommand("formatFillColor").update({ state: () => {
1457
+ }, [Ne2, y2, r2, d2]);
1458
+ const Ge2 = oe2().getStyle(), Ze2 = Ge2.getFont(), je2 = Ge2.getAlignment(), Ke2 = je2.getHorizontal(), Ye2 = je2.getVertical(), Je2 = je2.getOverflow(), et2 = je2.getRotation();
1459
+ return se(() => {
1460
+ Le2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => r2.getStyles(), named: () => oe2().getStyle(true).getNamed(), bodyStyle: Ce2, createTemporaryCell: (e4) => r2.createTemporaryCell(e4) }) }), Le2.getCommand("formatFillColor").update({ state: () => {
1466
1461
  let e4 = null;
1467
- const t3 = We2.getFill();
1462
+ const t3 = Ge2.getFill();
1468
1463
  return t3?.getType() === m.Type.Solid ? e4 = t3.getColor() : t3?.getType() === m.Type.Gradient ? e4 = t3.getStops()?.[0]?.getColor() : t3?.getType() === m.Type.Pattern && (e4 = t3.getBackground()), e4;
1469
- }, context: () => {
1464
+ }, icon: () => j(z, { iconKey: "fill.colored" }), context: () => {
1470
1465
  const e4 = r2.getStyles();
1471
1466
  return { onColorSelect: (e5) => {
1472
- B2(e5 ?? Pt);
1473
- }, darkMode: d2.darkMode, quickColor: L2, autoColor: Pt, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1474
- } }), He2.getCommand("formatFontColor").update({ state: () => Ue2.toJSON()?.fill ? Ue2.getFill() : null, context: () => {
1467
+ W2(e5 ?? Vt);
1468
+ }, darkMode: d2.darkMode, quickColor: $2, autoColor: Vt, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1469
+ } }), Le2.getCommand("formatFontColor").update({ state: () => Ze2.toJSON()?.fill ? Ze2.getFill() : null, icon: () => j(z, { iconKey: "text.colored" }), context: () => {
1475
1470
  const e4 = r2.getStyles();
1476
1471
  return { onColorSelect: (e5) => {
1477
- $2(e5);
1478
- }, darkMode: d2.darkMode, quickColor: O2, autoColor: e4.getNormal().getFont().getFill(), schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1479
- } }), He2.getCommand("formatNumberFormat").update({ state: () => We2.getNumberFormat(), context: () => J2 }), He2.getCommand("formatNumberDialog").update({ state: () => We2.getNumberFormat(), context: () => J2 }), He2.getCommand("formatFontFamily").update({ state: () => Ue2.getFamily() }), He2.getCommand("formatFontSize").update({ state: () => Ue2.getSize() });
1472
+ _2(e5);
1473
+ }, darkMode: d2.darkMode, quickColor: U2, autoColor: e4.getNormal().getFont().getFill(), schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1474
+ } }), Le2.getCommand("formatNumberFormat").update({ state: () => Ge2.getNumberFormat(), context: () => oe2 }), Le2.getCommand("formatNumberDialog").update({ state: () => Ge2.getNumberFormat(), context: () => oe2() }), Le2.getCommand("formatFontFamily").update({ state: () => Ze2.getFamily() }), Le2.getCommand("formatFontSize").update({ state: () => Ze2.getSize() });
1480
1475
  const e3 = function() {
1481
- const e4 = Ue2.getWeight() || 0;
1476
+ const e4 = Ze2.getWeight() || 0;
1482
1477
  return !isNaN(e4) && e4 > 500;
1483
1478
  };
1484
- He2.getCommand("formatBoldToggle").updateCallback(function() {
1485
- te2(this, { font: { weight: e3() ? 400 : 700 } });
1479
+ Le2.getCommand("formatBoldToggle").updateCallback(function() {
1480
+ ie2(this, { font: { weight: e3() ? 400 : 700 } });
1486
1481
  }).update({ state: e3 });
1487
1482
  const t2 = function() {
1488
- return Ue2.getStyle() === a.Style.Italic;
1483
+ return Ze2.getStyle() === a.Style.Italic;
1489
1484
  };
1490
- He2.getCommand("formatItalicToggle").updateCallback(function() {
1491
- te2(this, { font: { style: t2() ? a.Style.Normal : a.Style.Italic } });
1492
- }).update({ state: t2 }), He2.getCommand("formatStrikeThroughToggle").updateCallback(function() {
1493
- te2(this, { font: { strike: !Ue2.getStrike() } });
1494
- }).update({ state: Ue2.getStrike() }), He2.getCommand("formatUnderlinedToggle").updateCallback(function() {
1495
- te2(this, { font: { underline: Ue2.getUnderline() !== a.UnderlineStyle.Single ? a.UnderlineStyle.Single : a.UnderlineStyle.None } });
1496
- }).update({ state: Ue2.getUnderline() === a.UnderlineStyle.Single }), He2.getCommand("formatUnderlinedDoubleToggle").updateCallback(function() {
1497
- te2(this, { font: { underline: Ue2.getUnderline() !== a.UnderlineStyle.Double ? a.UnderlineStyle.Double : a.UnderlineStyle.None } });
1498
- }).update({ state: Ue2.getUnderline() === a.UnderlineStyle.Double }), He2.getCommand("formatUnderlinedAccountingToggle").updateCallback(function() {
1499
- te2(this, { font: { underline: Ue2.getUnderline() !== a.UnderlineStyle.SingleAccounting ? a.UnderlineStyle.SingleAccounting : a.UnderlineStyle.None } });
1500
- }).update({ state: Ue2.getUnderline() === a.UnderlineStyle.SingleAccounting }), He2.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function() {
1501
- te2(this, { font: { underline: Ue2.getUnderline() !== a.UnderlineStyle.DoubleAccounting ? a.UnderlineStyle.DoubleAccounting : a.UnderlineStyle.None } });
1502
- }).update({ state: Ue2.getUnderline() === a.UnderlineStyle.DoubleAccounting }), He2.getCommand("formatSuperscriptToggle").updateCallback(function() {
1503
- te2(this, { font: { verticalAlign: Ue2.getVerticalAlignment() !== a.VerticalAlignment.Super ? a.VerticalAlignment.Super : a.VerticalAlignment.Baseline } });
1504
- }).update({ state: Ue2.getVerticalAlignment() === a.VerticalAlignment.Super }), He2.getCommand("formatSubscriptToggle").updateCallback(function() {
1505
- te2(this, { font: { verticalAlign: Ue2.getVerticalAlignment() !== a.VerticalAlignment.Sub ? a.VerticalAlignment.Sub : a.VerticalAlignment.Baseline } });
1506
- }).update({ state: Ue2.getVerticalAlignment() === a.VerticalAlignment.Sub });
1507
- const o2 = () => je2 === l.Overflow.Visible;
1508
- He2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
1509
- te2(this, { alignment: { overflow: (o2(), l.Overflow.Visible) } });
1485
+ Le2.getCommand("formatItalicToggle").updateCallback(function() {
1486
+ ie2(this, { font: { style: t2() ? a.Style.Normal : a.Style.Italic } });
1487
+ }).update({ state: t2 }), Le2.getCommand("formatStrikeThroughToggle").updateCallback(function() {
1488
+ ie2(this, { font: { strike: !Ze2.getStrike() } });
1489
+ }).update({ state: Ze2.getStrike() }), Le2.getCommand("formatUnderlinedToggle").updateCallback(function() {
1490
+ ie2(this, { font: { underline: Ze2.getUnderline() !== a.UnderlineStyle.Single ? a.UnderlineStyle.Single : a.UnderlineStyle.None } });
1491
+ }).update({ state: Ze2.getUnderline() === a.UnderlineStyle.Single }), Le2.getCommand("formatUnderlinedDoubleToggle").updateCallback(function() {
1492
+ ie2(this, { font: { underline: Ze2.getUnderline() !== a.UnderlineStyle.Double ? a.UnderlineStyle.Double : a.UnderlineStyle.None } });
1493
+ }).update({ state: Ze2.getUnderline() === a.UnderlineStyle.Double }), Le2.getCommand("formatUnderlinedAccountingToggle").updateCallback(function() {
1494
+ ie2(this, { font: { underline: Ze2.getUnderline() !== a.UnderlineStyle.SingleAccounting ? a.UnderlineStyle.SingleAccounting : a.UnderlineStyle.None } });
1495
+ }).update({ state: Ze2.getUnderline() === a.UnderlineStyle.SingleAccounting }), Le2.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function() {
1496
+ ie2(this, { font: { underline: Ze2.getUnderline() !== a.UnderlineStyle.DoubleAccounting ? a.UnderlineStyle.DoubleAccounting : a.UnderlineStyle.None } });
1497
+ }).update({ state: Ze2.getUnderline() === a.UnderlineStyle.DoubleAccounting }), Le2.getCommand("formatSuperscriptToggle").updateCallback(function() {
1498
+ ie2(this, { font: { verticalAlign: Ze2.getVerticalAlignment() !== a.VerticalAlignment.Super ? a.VerticalAlignment.Super : a.VerticalAlignment.Baseline } });
1499
+ }).update({ state: Ze2.getVerticalAlignment() === a.VerticalAlignment.Super }), Le2.getCommand("formatSubscriptToggle").updateCallback(function() {
1500
+ ie2(this, { font: { verticalAlign: Ze2.getVerticalAlignment() !== a.VerticalAlignment.Sub ? a.VerticalAlignment.Sub : a.VerticalAlignment.Baseline } });
1501
+ }).update({ state: Ze2.getVerticalAlignment() === a.VerticalAlignment.Sub });
1502
+ const o2 = () => Je2 === l.Overflow.Visible;
1503
+ Le2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
1504
+ ie2(this, { alignment: { overflow: (o2(), l.Overflow.Visible) } });
1510
1505
  }).update({ state: o2 });
1511
- const n2 = () => je2 === l.Overflow.Wrap;
1512
- He2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
1513
- te2(this, { alignment: { overflow: n2() ? l.Overflow.Visible : l.Overflow.Wrap } });
1506
+ const n2 = () => Je2 === l.Overflow.Wrap;
1507
+ Le2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
1508
+ ie2(this, { alignment: { overflow: n2() ? l.Overflow.Visible : l.Overflow.Wrap } });
1514
1509
  }).update({ state: n2 });
1515
1510
  const i3 = function() {
1516
- return je2 === l.Overflow.Clip;
1511
+ return Je2 === l.Overflow.Clip;
1517
1512
  };
1518
- He2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
1519
- te2(this, { alignment: { overflow: i3() ? l.Overflow.Visible : l.Overflow.Clip } });
1513
+ Le2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
1514
+ ie2(this, { alignment: { overflow: i3() ? l.Overflow.Visible : l.Overflow.Clip } });
1520
1515
  }).update({ state: i3 });
1521
1516
  const s2 = function() {
1522
- return je2 === l.Overflow.Shrink;
1517
+ return Je2 === l.Overflow.Shrink;
1523
1518
  };
1524
- He2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
1525
- te2(this, { alignment: { overflow: s2() ? l.Overflow.Visible : l.Overflow.Shrink } });
1519
+ Le2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
1520
+ ie2(this, { alignment: { overflow: s2() ? l.Overflow.Visible : l.Overflow.Shrink } });
1526
1521
  }).update({ state: s2 });
1527
1522
  const c2 = function() {
1528
- return je2 === l.Overflow.Shrink;
1523
+ return Je2 === l.Overflow.Shrink;
1529
1524
  };
1530
- He2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
1531
- te2(this, { alignment: { overflow: c2() ? l.Overflow.Visible : l.Overflow.Ellipsis } });
1525
+ Le2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
1526
+ ie2(this, { alignment: { overflow: c2() ? l.Overflow.Visible : l.Overflow.Ellipsis } });
1532
1527
  }).update({ state: c2, disabled: true });
1533
1528
  const g2 = function() {
1534
- return Ze2 === l.VerticalAlignment.Top;
1529
+ return Ye2 === l.VerticalAlignment.Top;
1535
1530
  };
1536
- He2.getCommand("formatAlignTopToggle").updateCallback(function() {
1537
- te2(this, { alignment: { vertical: g2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Top } });
1531
+ Le2.getCommand("formatAlignTopToggle").updateCallback(function() {
1532
+ ie2(this, { alignment: { vertical: g2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Top } });
1538
1533
  }).update({ state: g2 });
1539
1534
  const u2 = function() {
1540
- return Ze2 === l.VerticalAlignment.Center;
1535
+ return Ye2 === l.VerticalAlignment.Center;
1541
1536
  };
1542
- He2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
1543
- te2(this, { alignment: { vertical: u2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Center } });
1537
+ Le2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
1538
+ ie2(this, { alignment: { vertical: u2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Center } });
1544
1539
  }).update({ state: u2 });
1545
1540
  const h3 = function() {
1546
- return Ze2 === l.VerticalAlignment.Bottom;
1541
+ return Ye2 === l.VerticalAlignment.Bottom;
1547
1542
  };
1548
- He2.getCommand("formatAlignBottomToggle").updateCallback(function() {
1549
- te2(this, { alignment: { vertical: (h3(), l.VerticalAlignment.Bottom) } });
1543
+ Le2.getCommand("formatAlignBottomToggle").updateCallback(function() {
1544
+ ie2(this, { alignment: { vertical: (h3(), l.VerticalAlignment.Bottom) } });
1550
1545
  }).update({ state: h3 });
1551
1546
  const p3 = function() {
1552
- return Ze2 === l.VerticalAlignment.Justify;
1547
+ return Ye2 === l.VerticalAlignment.Justify;
1553
1548
  };
1554
- He2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
1555
- te2(this, { alignment: { vertical: p3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Justify } });
1549
+ Le2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
1550
+ ie2(this, { alignment: { vertical: p3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Justify } });
1556
1551
  }).update({ state: p3 });
1557
1552
  const f3 = function() {
1558
- return Ze2 === l.VerticalAlignment.Distributed;
1553
+ return Ye2 === l.VerticalAlignment.Distributed;
1559
1554
  };
1560
- He2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
1561
- te2(this, { alignment: { vertical: f3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Distributed } });
1555
+ Le2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
1556
+ ie2(this, { alignment: { vertical: f3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Distributed } });
1562
1557
  }).update({ state: f3 });
1563
1558
  const w3 = function() {
1564
- return Ge2 === l.HorizontalAlignment.Left;
1559
+ return Ke2 === l.HorizontalAlignment.Left;
1565
1560
  };
1566
- He2.getCommand("formatAlignLeftToggle").updateCallback(function() {
1567
- te2(this, { alignment: { horizontal: w3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Left } });
1561
+ Le2.getCommand("formatAlignLeftToggle").updateCallback(function() {
1562
+ ie2(this, { alignment: { horizontal: w3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Left } });
1568
1563
  }).update({ state: w3 });
1569
1564
  const v3 = function() {
1570
- return Ge2 === l.HorizontalAlignment.Center;
1565
+ return Ke2 === l.HorizontalAlignment.Center;
1571
1566
  };
1572
- He2.getCommand("formatAlignCenterToggle").updateCallback(function() {
1573
- te2(this, { alignment: { horizontal: v3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Center } });
1567
+ Le2.getCommand("formatAlignCenterToggle").updateCallback(function() {
1568
+ ie2(this, { alignment: { horizontal: v3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Center } });
1574
1569
  }).update({ state: v3 });
1575
1570
  const q3 = function() {
1576
- return Ge2 === l.HorizontalAlignment.CenterContinuous;
1571
+ return Ke2 === l.HorizontalAlignment.CenterContinuous;
1577
1572
  };
1578
- He2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
1573
+ Le2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
1579
1574
  const e4 = { alignment: { horizontal: q3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.CenterContinuous, rotation: null } };
1580
- te2(this, e4);
1575
+ ie2(this, e4);
1581
1576
  }).update({ state: q3 });
1582
1577
  const y3 = function() {
1583
- return Ge2 === l.HorizontalAlignment.Fill;
1578
+ return Ke2 === l.HorizontalAlignment.Fill;
1584
1579
  };
1585
- He2.getCommand("formatAlignFillToggle").updateCallback(function() {
1580
+ Le2.getCommand("formatAlignFillToggle").updateCallback(function() {
1586
1581
  const e4 = { alignment: { horizontal: y3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Fill, rotation: null } };
1587
- te2(this, e4);
1582
+ ie2(this, e4);
1588
1583
  }).update({ state: y3 });
1589
1584
  const C3 = function() {
1590
- return Ge2 === l.HorizontalAlignment.Distributed;
1585
+ return Ke2 === l.HorizontalAlignment.Distributed;
1591
1586
  };
1592
- He2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
1593
- te2(this, { alignment: { horizontal: C3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Distributed } });
1587
+ Le2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
1588
+ ie2(this, { alignment: { horizontal: C3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Distributed } });
1594
1589
  }).update({ state: C3 });
1595
1590
  const b3 = function() {
1596
- return Ge2 === l.HorizontalAlignment.Right;
1591
+ return Ke2 === l.HorizontalAlignment.Right;
1597
1592
  };
1598
- He2.getCommand("formatAlignRightToggle").updateCallback(function() {
1599
- te2(this, { alignment: { horizontal: b3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Right } });
1593
+ Le2.getCommand("formatAlignRightToggle").updateCallback(function() {
1594
+ ie2(this, { alignment: { horizontal: b3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Right } });
1600
1595
  }).update({ state: b3 });
1601
1596
  const S2 = function() {
1602
- return Ge2 === l.HorizontalAlignment.Justify;
1597
+ return Ke2 === l.HorizontalAlignment.Justify;
1603
1598
  };
1604
- He2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
1605
- te2(this, { alignment: { horizontal: S2() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Justify } });
1599
+ Le2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
1600
+ ie2(this, { alignment: { horizontal: S2() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Justify } });
1606
1601
  }).update({ state: S2 });
1607
- const x3 = !r2.getProtection().isFormatCellsAllowed(), k2 = Ge2 === l.HorizontalAlignment.CenterContinuous || Ge2 === l.HorizontalAlignment.Fill;
1608
- He2.getCommand("formatTextRotate0").updateCallback(function(e4) {
1609
- te2(this, { alignment: { rotation: 0 } });
1610
- }).update({ disabled: x3 || k2, state: 0 === Xe2 }), He2.getCommand("formatTextRotate45").updateCallback(function(e4) {
1611
- te2(this, { alignment: { rotation: e4 ?? 1 ? 45 : 0 } });
1612
- }).update({ disabled: x3 || k2, state: 45 === Xe2 }), He2.getCommand("formatTextRotate90").updateCallback(function(e4) {
1613
- te2(this, { alignment: { rotation: e4 ?? 1 ? 90 : 0 } });
1614
- }).update({ disabled: x3 || k2, state: 90 === Xe2 }), He2.getCommand("formatTextRotate270").updateCallback(function(e4) {
1615
- te2(this, { alignment: { rotation: e4 ?? 1 ? 270 : 0 } });
1616
- }).update({ disabled: x3 || k2, state: 270 === Xe2 }), He2.getCommand("formatTextRotate315").updateCallback(function(e4) {
1617
- te2(this, { alignment: { rotation: e4 ?? 1 ? 315 : 0 } });
1618
- }).update({ disabled: x3 || k2, state: 315 === Xe2 }), He2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
1619
- te2(this, { alignment: { rotation: e4 } });
1620
- }).update({ disabled: x3 || k2, state: Xe2 ?? 0 });
1621
- }, [We2, r2, d2, L2, O2]), ae(() => {
1602
+ const x3 = !r2.getProtection().isFormatCellsAllowed(), k2 = Ke2 === l.HorizontalAlignment.CenterContinuous || Ke2 === l.HorizontalAlignment.Fill;
1603
+ Le2.getCommand("formatTextRotate0").updateCallback(function(e4) {
1604
+ ie2(this, { alignment: { rotation: 0 } });
1605
+ }).update({ disabled: x3 || k2, state: 0 === et2 }), Le2.getCommand("formatTextRotate45").updateCallback(function(e4) {
1606
+ ie2(this, { alignment: { rotation: e4 ?? 1 ? 45 : 0 } });
1607
+ }).update({ disabled: x3 || k2, state: 45 === et2 }), Le2.getCommand("formatTextRotate90").updateCallback(function(e4) {
1608
+ ie2(this, { alignment: { rotation: e4 ?? 1 ? 90 : 0 } });
1609
+ }).update({ disabled: x3 || k2, state: 90 === et2 }), Le2.getCommand("formatTextRotate270").updateCallback(function(e4) {
1610
+ ie2(this, { alignment: { rotation: e4 ?? 1 ? 270 : 0 } });
1611
+ }).update({ disabled: x3 || k2, state: 270 === et2 }), Le2.getCommand("formatTextRotate315").updateCallback(function(e4) {
1612
+ ie2(this, { alignment: { rotation: e4 ?? 1 ? 315 : 0 } });
1613
+ }).update({ disabled: x3 || k2, state: 315 === et2 }), Le2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
1614
+ ie2(this, { alignment: { rotation: e4 } });
1615
+ }).update({ disabled: x3 || k2, state: et2 ?? 0 });
1616
+ }, [Ge2, r2, d2, $2, U2]), se(() => {
1622
1617
  const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = r2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
1623
- ee2(t3, async (o3) => {
1618
+ ne2(t3, async (o3) => {
1624
1619
  const n3 = async (n4 = false) => {
1625
1620
  const r4 = await Promise.resolve(v2.showBusy(t3.label()));
1626
1621
  try {
@@ -1648,7 +1643,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1648
1643
  }
1649
1644
  }, void 0, void 0, false);
1650
1645
  }, n2 = (e4) => {
1651
- ee2(e4, async (e5) => {
1646
+ ne2(e4, async (e5) => {
1652
1647
  try {
1653
1648
  const t3 = e5.getSelectedRanges();
1654
1649
  t3.unmerge();
@@ -1659,66 +1654,73 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1659
1654
  }
1660
1655
  });
1661
1656
  };
1662
- He2.getCommand("mergeToggle").updateCallback(function() {
1663
- Q.isSingleCell(r2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
1664
- }).update({ state: t2, disabled: !Pe2 || e3 }), He2.getCommand("mergeHorizontal").updateCallback(function() {
1657
+ Le2.getCommand("mergeToggle").updateCallback(function() {
1658
+ ee.isSingleCell(r2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
1659
+ }).update({ state: t2, disabled: !Be2 || e3 }), Le2.getCommand("mergeHorizontal").updateCallback(function() {
1665
1660
  o2(s.Orientations.Column, this);
1666
- }).update({ disabled: !Pe2 || e3 }), He2.getCommand("mergeVertical").updateCallback(function() {
1661
+ }).update({ disabled: !Be2 || e3 }), Le2.getCommand("mergeVertical").updateCallback(function() {
1667
1662
  o2(s.Orientations.Row, this);
1668
- }).update({ disabled: !Pe2 }), He2.getCommand("unmerge").updateCallback(function() {
1663
+ }).update({ disabled: !Be2 }), Le2.getCommand("unmerge").updateCallback(function() {
1669
1664
  n2(this);
1670
- }).update({ disabled: !t2 || !Pe2 || e3 });
1665
+ }).update({ disabled: !t2 || !Be2 || e3 });
1671
1666
  const i3 = { disabled: e3 };
1672
- He2.getCommand("hideRows").updateCallback(function() {
1673
- ee2(this, (e4) => {
1674
- e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
1667
+ Le2.getCommand("hideRows").updateCallback(function() {
1668
+ ne2(this, (e4) => {
1669
+ e4.getSelectedRanges().getRowHeaders().setHidden(true);
1675
1670
  });
1676
- }).update(i3), He2.getCommand("hideColumns").updateCallback(function() {
1677
- ee2(this, (e4) => {
1678
- e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
1671
+ }).update(i3), Le2.getCommand("hideColumns").updateCallback(function() {
1672
+ ne2(this, (e4) => {
1673
+ e4.getSelectedRanges().getColumnHeaders().setHidden(true);
1679
1674
  });
1680
- }).update(i3), He2.getCommand("unhideRows").updateCallback(function() {
1681
- ee2(this, (e4) => {
1682
- e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
1675
+ }).update(i3), Le2.getCommand("unhideRows").updateCallback(function() {
1676
+ ne2(this, (e4) => {
1677
+ e4.getSelectedRanges().getRowHeaders().setHidden(false);
1683
1678
  });
1684
- }).update(i3), He2.getCommand("unhideColumns").updateCallback(function() {
1685
- ee2(this, (e4) => {
1686
- e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
1679
+ }).update(i3), Le2.getCommand("unhideColumns").updateCallback(function() {
1680
+ ne2(this, (e4) => {
1681
+ e4.getSelectedRanges().getColumnHeaders().setHidden(false);
1687
1682
  });
1688
- }).update(i3), He2.getCommand("autoFitRows").updateCallback(function() {
1689
- ee2(this, (e4) => {
1683
+ }).update(i3), Le2.getCommand("autoFitRows").updateCallback(function() {
1684
+ ne2(this, (e4) => {
1690
1685
  e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Row });
1691
1686
  });
1692
- }).update(i3), He2.getCommand("autoFitColumns").updateCallback(function() {
1693
- ee2(this, (e4) => {
1687
+ }).update(i3), Le2.getCommand("resizeRows").updateCallback(function() {
1688
+ const e4 = { getOrientation: () => s.Orientation.Row, getUnitText: () => "Pt" }, t3 = { initialValue: { size: 20, unit: "Px" }, context: () => e4, onInput: (e5, t4) => {
1689
+ "Autofit" !== t4 ? r2.getSelectedRanges().getRowHeaders().setSize(e5.size + e5.unit) : Le2.getCommand("autoFitRows").execute();
1690
+ } };
1691
+ v2.showWindow("resizeHeader", t3);
1692
+ }).update(i3), Le2.getCommand("autoFitColumns").updateCallback(function() {
1693
+ ne2(this, (e4) => {
1694
1694
  e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Column });
1695
1695
  });
1696
+ }).update(i3), Le2.getCommand("resizeColumns").updateCallback(function() {
1697
+ const e4 = { getOrientation: () => s.Orientation.Column, getUnitText: () => "Pt" }, t3 = { initialValue: { size: 100, unit: "Px" }, context: () => e4, onInput: (e5, t4) => {
1698
+ "Autofit" !== t4 ? r2.getSelectedRanges().getColumnHeaders().setSize(e5.size + e5.unit) : Le2.getCommand("autoFitColumns").execute();
1699
+ } };
1700
+ v2.showWindow("resizeHeader", t3);
1696
1701
  }).update(i3);
1697
1702
  let a2 = false, d3 = 0, c2 = false, g2 = false, u2 = 0, h3 = false;
1698
- !b2 || e3 || Le2 || (a2 = b2.isEntireColumnsAny(), a2 && !b2.isEntireColumns() ? c2 = true : d3 = b2.getColumnCount(), g2 = b2.isEntireRowsAny(), g2 && !b2.isEntireRows() ? h3 = true : u2 = b2.getRowCount());
1703
+ b2 && !e3 && (a2 = b2.isEntireColumnsAny(), c2 = a2 && !b2.isEntireColumns(), d3 = b2.getColumnCount(), g2 = b2.isEntireRowsAny(), h3 = g2 && !b2.isEntireRows(), u2 = b2.getRowCount());
1699
1704
  const m2 = { disabled: e3 || b2 && 1 !== b2.getCount() };
1700
- He2.getCommand("sortAscending").update(m2), He2.getCommand("sortDescending").update(m2);
1701
- const p3 = { disabled: a2 || g2 || e3 || Le2 }, f3 = a2 || e3 || Le2 || h3;
1702
- f3 && (d3 = 1);
1703
- const w3 = g2 || e3 || Le2 || c2;
1704
- w3 && (u2 = 1);
1705
- let q3 = "", y3 = "", C3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "", A3 = "", z3 = "";
1706
- d3 > 1 && (R2 = y3 = C3 = d3 + " ", M2 = S2 = "s"), u2 > 1 && (A3 = x3 = k2 = u2 + " ", z3 = T2 = "s"), "copy" === W2.getMode()?.key ? (q3 = x3 = y3 = "Copied ", S2 = T2 = "s") : "cut" === W2.getMode()?.key && (q3 = x3 = y3 = "Cut ", S2 = T2 = "s");
1707
- let F2 = "", D2 = "";
1705
+ Le2.getCommand("sortAscending").update(m2), Le2.getCommand("sortDescending").update(m2);
1706
+ const p3 = { disabled: a2 || g2 || e3 || $e2 }, f3 = a2 || e3 || $e2 || h3, w3 = g2 || e3 || $e2 || c2;
1707
+ let q3 = "", y3 = "", C3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "", A3 = "", z2 = "", F2 = "", D2 = "";
1708
+ d3 > 1 && (q3 = d3 + " ", y3 = "s", $e2 || (A3 = k2 = q3, z2 = T2 = y3)), u2 > 1 && (C3 = u2 + " ", S2 = "s", $e2 || (F2 = R2 = C3, D2 = M2 = S2)), "copy" === G2.getMode()?.key ? (x3 = R2 = k2 = "Copied ", T2 = M2 = "s") : "cut" === G2.getMode()?.key && (x3 = R2 = k2 = "Cut ", T2 = M2 = "s");
1709
+ let I2 = "", E2 = "";
1708
1710
  if (b2) {
1709
1711
  const e4 = b2.getDefaultShiftOrientation() === s.Orientation.Column;
1710
- F2 = ` (${e4 ? "Shift Right" : "Shift Down"})`, D2 = ` (${e4 ? "Shift Left" : "Shift up"})`, He2.getCommand("deleteCells").update({ label: `Delete Cells${D2}` });
1712
+ I2 = ` (${e4 ? "Shift Right" : "Shift Down"})`, E2 = ` (${e4 ? "Shift Left" : "Shift up"})`, Le2.getCommand("deleteCells").update({ label: `Delete Cells${E2}` });
1711
1713
  }
1712
- He2.getCommand("insertCells").update({ label: `Insert ${q3}Cells${F2}`, scopedLabels: { insertCells: `${q3}At Selection` } }), He2.getCommand("insertCellsShiftRight").update(p3), He2.getCommand("insertCellsShiftDown").update(p3), He2.getCommand("deleteCellsShiftUp").update(p3), He2.getCommand("deleteCellsShiftLeft").update(p3), He2.getCommand("insertRows").update({ label: `Insert ${x3}Row${T2}`, scopedLabels: { insertCells: `${x3}Row${T2}` }, disabled: w3 }), He2.getCommand("insertRowsAfter").update({ label: `Insert ${x3}Row${T2} Below`, disabled: w3 }), He2.getCommand("hideRows").update({ label: `Hide ${k2}Row${T2}` }), He2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${S2}`, scopedLabels: { insertCells: `${y3}Column${S2}` }, disabled: f3 }), He2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${S2} After`, disabled: f3 }), He2.getCommand("hideColumns").update({ label: `Hide ${C3}Column${S2}` }), He2.getCommand("deleteRows").update({ label: `Delete ${A3}Row${z3}`, scopedLabels: { deleteCells: `${A3}Row${z3}` }, disabled: w3 }), He2.getCommand("deleteColumns").update({ label: `Delete ${R2}Column${M2}`, scopedLabels: { deleteCells: `${R2}Column${M2}` }, disabled: f3 });
1713
- }, [Ee2, Pe2, Le2, b2, W2, v2, Fe2]), ae(() => {
1714
+ Le2.getCommand("insertCells").update({ label: `Insert ${x3}Cells${I2}`, scopedLabels: { insertCells: `${x3}At Selection` } }), Le2.getCommand("insertCellsShiftRight").update(p3), Le2.getCommand("insertCellsShiftDown").update(p3), Le2.getCommand("deleteCellsShiftUp").update(p3), Le2.getCommand("deleteCellsShiftLeft").update(p3), Le2.getCommand("insertRows").update({ label: `Insert ${R2}Row${M2}`, scopedLabels: { insertCells: `${R2}Row${M2}` }, disabled: w3 }), Le2.getCommand("insertRowsAfter").update({ label: `Insert ${R2}Row${M2} Below`, disabled: w3 }), Le2.getCommand("hideRows").update({ label: `Hide ${C3}Row${M2}` }), Le2.getCommand("insertColumns").update({ label: `Insert ${k2}Column${T2}`, scopedLabels: { insertCells: `${k2}Column${T2}` }, disabled: f3 }), Le2.getCommand("insertColumnsAfter").update({ label: `Insert ${k2}Column${T2} After`, disabled: f3 }), Le2.getCommand("hideColumns").update({ label: `Hide ${q3}Column${T2}` }), Le2.getCommand("deleteRows").update({ label: `Delete ${F2}Row${D2}`, scopedLabels: { deleteCells: `${F2}Row${D2}` }, disabled: w3 }), Le2.getCommand("deleteColumns").update({ label: `Delete ${A3}Column${z2}`, scopedLabels: { deleteCells: `${A3}Column${z2}` }, disabled: f3 });
1715
+ }, [Ne2, Be2, $e2, b2, G2, v2, Ee2]), se(() => {
1714
1716
  const e3 = r2.getProtection(), t2 = r2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
1715
- He2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
1717
+ Le2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
1716
1718
  let l2 = null;
1717
1719
  try {
1718
1720
  if (t2) {
1719
1721
  let t3 = null;
1720
1722
  if (e3.hasPassword()) {
1721
- const e4 = await v2.showInputOptions({ title: "Password Required", description: "Enter a password to unprotected", options: ["Unprotect", "Cancel"], defaultOption: "Unprotect", inputType: "password" });
1723
+ const e4 = await v2.showInput({ title: "Password Required", description: "Enter a password to unprotected", options: ["Unprotect", "Cancel"], defaultOption: "Unprotect", inputType: "password" });
1722
1724
  if ("Unprotect" !== e4.option) return;
1723
1725
  t3 = e4.input;
1724
1726
  }
@@ -1728,108 +1730,108 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1728
1730
  } catch (e4) {
1729
1731
  l2?.(), v2.showError(e4);
1730
1732
  }
1731
- }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), He2.getCommand("deleteTable").update(n2), He2.getCommand("sortAscending").update(n2), He2.getCommand("sortDescending").update(n2), He2.getCommand("sortCustom")?.update(n2), He2.getCommand("updateComments").update(n2), He2.getCommand("deleteComments").update(n2), He2.getCommand("insertChart")?.update(n2), He2.getCommand("insertImageFromFile").update(n2), He2.getCommand("insertImageFromURL").update(n2), He2.getCommand("formatBorder").update(n2), He2.getCommand("formatFillColor").update(n2), He2.getCommand("formatFontColor").update(n2), He2.getCommand("formatBoldToggle").update(n2), He2.getCommand("formatItalicToggle").update(n2), He2.getCommand("formatUnderlinedToggle").update(n2), He2.getCommand("formatStrikeThroughToggle").update(n2), He2.getCommand("formatSuperscriptToggle").update(n2), He2.getCommand("formatSubscriptToggle").update(n2), He2.getCommand("formatAlignTopToggle").update(n2), He2.getCommand("formatTextOverflowVisibleToggle").update(n2), He2.getCommand("formatTextOverflowWrapToggle").update(n2), He2.getCommand("formatTextOverflowClipToggle").update(n2), He2.getCommand("formatTextOverflowShrinkToggle").update(n2), He2.getCommand("formatAlignMiddleToggle").update(n2), He2.getCommand("formatAlignBottomToggle").update(n2), He2.getCommand("formatAlignDistributedVerticalToggle").update(n2), He2.getCommand("formatAlignJustifyVerticalToggle").update(n2), He2.getCommand("formatAlignLeftToggle").update(n2), He2.getCommand("formatAlignCenterToggle").update(n2), He2.getCommand("formatAlignRightToggle").update(n2), He2.getCommand("formatAlignJustifyToggle").update(n2), He2.getCommand("formatAlignCenterContinuousToggle").update(n2), He2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), He2.getCommand("formatAlignFillToggle").update(n2), He2.getCommand("formatFontSizeIncrease").update(n2), He2.getCommand("formatFontSizeDecrease").update(n2), He2.getCommand("formatFontFamily").update(n2), He2.getCommand("formatFontSize").update(n2), He2.getCommand("formatNumberFormat").update(n2), He2.getCommand("formatNumberFormatGeneralStyle").update(n2), He2.getCommand("formatNumberFormatNumberStyle").update(n2), He2.getCommand("formatNumberFormatTimeStyle").update(n2), He2.getCommand("formatNumberFormatDateStyle").update(n2), He2.getCommand("formatNumberFormatAccountingStyle").update(n2), He2.getCommand("formatNumberFormatPercentStyle").update(n2), He2.getCommand("formatNumberFormatScientificStyle").update(n2), He2.getCommand("formatNumberFormatCommaStyle").update(n2), He2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), He2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), He2.getCommand("hideColumns").update(n2), He2.getCommand("unhideColumns").update(n2), He2.getCommand("hideRows").update(n2), He2.getCommand("unhideRows").update(n2), He2.getCommand("insertFunctionSum").update(n2), He2.getCommand("insertFunctionAverage").update(n2), He2.getCommand("insertFunctionCount").update(n2), He2.getCommand("insertFunctionMax").update(n2), He2.getCommand("insertFunctionMin").update(n2), He2.getCommand("insertFunction").update(n2), He2.getCommand("startEditCurrentTime").update(n2), He2.getCommand("startEditCurrentDate").update(n2), He2.getCommand("startEditValueAbove").update(n2), He2.getCommand("fillDown").update(n2), He2.getCommand("fillRight").update(n2), He2.getCommand("fillUp").update(n2), He2.getCommand("fillLeft").update(n2), He2.getCommand("formatCellStyle").update(n2), He2.getCommand("formatTableStyle").update(n2), He2.getCommand("formatPainterToggle").update(n2), He2.getCommand("formatBorderAddOutline").update(n2), He2.getCommand("formatBorderClearOutline").update(n2), He2.getCommand("formatIndentDecrease").update(n2), He2.getCommand("formatIndentIncrease").update(n2), He2.getCommand("clearContents").update(n2), He2.getCommand("clearFormats").update(n2), He2.getCommand("clearAll").update(n2), He2.getCommand("clearComments").update(n2), He2.getCommand("clearHyperlinks").update(n2), He2.getCommand("autoFilterClear").update(n2), He2.getCommand("autoFilterReapply").update(n2);
1732
- const i3 = Ge2 === l.HorizontalAlignment.CenterContinuous || Ge2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
1733
- He2.getCommand("formatTextRotate0").update(a2), He2.getCommand("formatTextRotate45").update(a2), He2.getCommand("formatTextRotate90").update(a2), He2.getCommand("formatTextRotate270").update(a2), He2.getCommand("formatTextRotate315").update(a2), He2.getCommand("formatTextRotateCustom").update(a2), He2.getCommand("formatTextRotateVertical").update(a2);
1734
- }, [Ee2]), He2;
1733
+ }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Le2.getCommand("deleteTable").update(n2), Le2.getCommand("sortAscending").update(n2), Le2.getCommand("sortDescending").update(n2), Le2.getCommand("sortCustom")?.update(n2), Le2.getCommand("updateComments").update(n2), Le2.getCommand("deleteComments").update(n2), Le2.getCommand("insertChart")?.update(n2), Le2.getCommand("insertImageFromFile").update(n2), Le2.getCommand("insertImageFromURL").update(n2), Le2.getCommand("formatBorder").update(n2), Le2.getCommand("formatFillColor").update(n2), Le2.getCommand("formatFontColor").update(n2), Le2.getCommand("formatBoldToggle").update(n2), Le2.getCommand("formatItalicToggle").update(n2), Le2.getCommand("formatUnderlinedToggle").update(n2), Le2.getCommand("formatStrikeThroughToggle").update(n2), Le2.getCommand("formatSuperscriptToggle").update(n2), Le2.getCommand("formatSubscriptToggle").update(n2), Le2.getCommand("formatAlignTopToggle").update(n2), Le2.getCommand("formatTextOverflowVisibleToggle").update(n2), Le2.getCommand("formatTextOverflowWrapToggle").update(n2), Le2.getCommand("formatTextOverflowClipToggle").update(n2), Le2.getCommand("formatTextOverflowShrinkToggle").update(n2), Le2.getCommand("formatAlignMiddleToggle").update(n2), Le2.getCommand("formatAlignBottomToggle").update(n2), Le2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Le2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Le2.getCommand("formatAlignLeftToggle").update(n2), Le2.getCommand("formatAlignCenterToggle").update(n2), Le2.getCommand("formatAlignRightToggle").update(n2), Le2.getCommand("formatAlignJustifyToggle").update(n2), Le2.getCommand("formatAlignCenterContinuousToggle").update(n2), Le2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Le2.getCommand("formatAlignFillToggle").update(n2), Le2.getCommand("formatFontSizeIncrease").update(n2), Le2.getCommand("formatFontSizeDecrease").update(n2), Le2.getCommand("formatFontFamily").update(n2), Le2.getCommand("formatFontSize").update(n2), Le2.getCommand("formatNumberFormat").update(n2), Le2.getCommand("formatNumberFormatGeneralStyle").update(n2), Le2.getCommand("formatNumberFormatNumberStyle").update(n2), Le2.getCommand("formatNumberFormatTimeStyle").update(n2), Le2.getCommand("formatNumberFormatDateStyle").update(n2), Le2.getCommand("formatNumberFormatAccountingStyle").update(n2), Le2.getCommand("formatNumberFormatPercentStyle").update(n2), Le2.getCommand("formatNumberFormatScientificStyle").update(n2), Le2.getCommand("formatNumberFormatCommaStyle").update(n2), Le2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Le2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Le2.getCommand("hideColumns").update(n2), Le2.getCommand("unhideColumns").update(n2), Le2.getCommand("hideRows").update(n2), Le2.getCommand("unhideRows").update(n2), Le2.getCommand("insertFunctionSum").update(n2), Le2.getCommand("insertFunctionAverage").update(n2), Le2.getCommand("insertFunctionCount").update(n2), Le2.getCommand("insertFunctionMax").update(n2), Le2.getCommand("insertFunctionMin").update(n2), Le2.getCommand("insertFunction").update(n2), Le2.getCommand("startEditCurrentTime").update(n2), Le2.getCommand("startEditCurrentDate").update(n2), Le2.getCommand("startEditValueAbove").update(n2), Le2.getCommand("fillDown").update(n2), Le2.getCommand("fillRight").update(n2), Le2.getCommand("fillUp").update(n2), Le2.getCommand("fillLeft").update(n2), Le2.getCommand("formatCellStyle").update(n2), Le2.getCommand("formatTableStyle").update(n2), Le2.getCommand("formatPainterToggle").update(n2), Le2.getCommand("formatBorderAddOutline").update(n2), Le2.getCommand("formatBorderClearOutline").update(n2), Le2.getCommand("formatIndentDecrease").update(n2), Le2.getCommand("formatIndentIncrease").update(n2), Le2.getCommand("clearContents").update(n2), Le2.getCommand("clearFormats").update(n2), Le2.getCommand("clearAll").update(n2), Le2.getCommand("clearComments").update(n2), Le2.getCommand("clearHyperlinks").update(n2), Le2.getCommand("autoFilterClear").update(n2), Le2.getCommand("autoFilterReapply").update(n2);
1734
+ const i3 = Ke2 === l.HorizontalAlignment.CenterContinuous || Ke2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
1735
+ Le2.getCommand("formatTextRotate0").update(a2), Le2.getCommand("formatTextRotate45").update(a2), Le2.getCommand("formatTextRotate90").update(a2), Le2.getCommand("formatTextRotate270").update(a2), Le2.getCommand("formatTextRotate315").update(a2), Le2.getCommand("formatTextRotateCustom").update(a2), Le2.getCommand("formatTextRotateVertical").update(a2);
1736
+ }, [Ne2]), Le2;
1735
1737
  }
1736
- const Lt = "_sheet-scrollbar_104cg_1", Bt = oe(re((e2, t2) => {
1738
+ const Bt = "_sheet-scrollbar_104cg_1", Ot = ne(ie((e2, t2) => {
1737
1739
  const { style: o2 = C.EmptyCssProperties, orientation: n2, sheet: l2, onShowTooltip: r2, onCloseTooltip: i2, onScrollOffset: a2, showCustomScrollButtons: s2 = true, offset: d2 = 0, totalSize: c2 = 0, viewportSize: g2 = 0, className: u2, endGap: h2, ...m2 } = e2;
1738
1740
  if (!l2) throw new Error("SheetScrollBar needs a sheet model");
1739
- const [p2] = Me(), f2 = S(r2, [r2]), w2 = S(i2, [i2]), v2 = De(p2, t2), [q2, y2] = le(() => {
1741
+ const [p2] = Ae(), f2 = S(r2, [r2]), w2 = S(i2, [i2]), v2 = Ie(p2, t2), [q2, y2] = re(() => {
1740
1742
  const e3 = l2.getView().getTopLeft();
1741
- return n2 === H.Vertical ? e3.top : e3.left;
1743
+ return n2 === P.Vertical ? e3.top : e3.left;
1742
1744
  }), b2 = () => {
1743
1745
  const e3 = l2.getView().getFreezePanes();
1744
- if (n2 === H.Vertical) {
1746
+ if (n2 === P.Vertical) {
1745
1747
  if (0 === e3.coords.rowIndex) return { shift: 0, scroll: 0 };
1746
1748
  return { shift: l2.getRowHeaders().findOffset(e3.coords.rowIndex) - e3.topLeft.top, scroll: e3.topLeft.top };
1747
1749
  }
1748
1750
  if (0 === e3.coords.colIndex) return { shift: 0, scroll: 0 };
1749
1751
  return { shift: l2.getColumnHeaders().findOffset(e3.coords.colIndex) - e3.topLeft.left, scroll: e3.topLeft.left };
1750
- }, [x2, k2] = le(b2), [T2, R2] = le(null), [M2, A2] = le(false), z2 = n2 === H.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), F2 = () => {
1751
- const e3 = l2.getUsedRange()?.getCoords() ?? Q.EmptyRange, t3 = l2.getSelection().getCoords().cell;
1752
+ }, [x2, k2] = re(b2), [T2, R2] = re(null), [M2, A2] = re(false), z2 = n2 === P.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), F2 = () => {
1753
+ const e3 = l2.getUsedRange()?.getCoords() ?? ee.EmptyRange, t3 = l2.getSelection().getCoords().cell;
1752
1754
  return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
1753
- }, [D2, E2] = le(F2), I2 = D2 ? (n2 === H.Vertical ? D2.rowIndex : D2.colIndex) + 1 : 0, N2 = () => {
1755
+ }, [D2, I2] = re(F2), E2 = D2 ? (n2 === P.Vertical ? D2.rowIndex : D2.colIndex) + 1 : 0, H2 = () => {
1754
1756
  const e3 = F2();
1755
- Q.isEqualCells(D2, e3) || E2(e3);
1757
+ ee.isEqualCells(D2, e3) || I2(e3);
1756
1758
  };
1757
- St(l2.getView(), { onFreezeSplitChange: () => {
1759
+ xt(l2.getView(), { onFreezeSplitChange: () => {
1758
1760
  k2(b2);
1759
- } }), St(l2.getSelection(), { onChange: N2 }), St(l2, { onUsedRangeChange: N2 }), ae(() => {
1760
- E2(F2());
1761
- }, [l2]), ae(() => {
1761
+ } }), xt(l2.getSelection(), { onChange: H2 }), xt(l2, { onUsedRangeChange: H2 }), se(() => {
1762
+ I2(F2());
1763
+ }, [l2]), se(() => {
1762
1764
  if (!T2) return M2 && w2?.(), void A2(false);
1763
1765
  const e3 = z2.getTextAt(z2.findIndex(q2 / (l2.getView().getZoomScale() / 100) + x2.scroll + x2.shift));
1764
- A2(true), f2?.({ ...T2, display: (n2 === H.Vertical ? "Row" : "Column") + ": " + e3 });
1766
+ A2(true), f2?.({ ...T2, display: (n2 === P.Vertical ? "Row" : "Column") + ": " + e3 });
1765
1767
  }, [d2, q2, x2, n2, T2, z2, M2, l2]);
1766
- const V2 = S((e3, t3, o3) => {
1768
+ const N2 = S((e3, t3, o3) => {
1767
1769
  y2(e3);
1768
1770
  const n3 = e3 + x2.scroll, l3 = t3 + x2.shift, r3 = o3 + x2.shift + x2.scroll;
1769
1771
  a2?.(n3, l3, r3);
1770
- }, [a2, x2]), L2 = d2 - x2.scroll, B2 = g2 - x2.shift, O2 = c2 - (x2.shift + x2.scroll), $2 = z2.findOffset(I2) * (l2.getView().getZoomScale() / 100) - (x2.scroll + x2.shift);
1771
- return ne(() => Z(P, { ref: v2, className: Ae(u2, Lt), style: o2, offset: L2, viewportSize: B2, totalSize: O2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
1772
+ }, [a2, x2]), L2 = d2 - x2.scroll, B2 = g2 - x2.shift, O2 = c2 - (x2.shift + x2.scroll), $2 = z2.findOffset(E2) * (l2.getView().getZoomScale() / 100) - (x2.scroll + x2.shift);
1773
+ return le(() => j(V, { ref: v2, className: ze(u2, Bt), style: o2, offset: L2, viewportSize: B2, totalSize: O2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
1772
1774
  R2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
1773
- }, onScrollOffset: V2, onMouseOut: () => {
1775
+ }, onScrollOffset: N2, onMouseOut: () => {
1774
1776
  R2(null);
1775
1777
  }, onMouseUp: () => {
1776
1778
  R2(null);
1777
1779
  }, minSize: $2, ...m2 }), [u2, L2, B2, O2, n2, s2, o2, $2, h2]);
1778
1780
  }));
1779
- Bt.displayName = "SheetScrollbar";
1780
- const Ot = (e2, t2, o2 = null) => {
1781
+ Ot.displayName = "SheetScrollbar";
1782
+ const $t = (e2, t2, o2 = null) => {
1781
1783
  const n2 = [];
1782
1784
  for (let l2 = 0; l2 < e2.length; l2++) if (e2[l2].value.isSelectedAll) {
1783
1785
  if (e2[l2].min === e2[l2].max && e2[l2].min === o2) continue;
1784
1786
  n2.push({ address: { min: e2[l2].min, max: e2[l2].max }, update: t2 });
1785
1787
  }
1786
1788
  return n2;
1787
- }, $t = oe(re((e2, t2) => {
1788
- const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: v2, onResizeHeadersDown: q2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: T2 } = e2, R2 = ne(() => o2.getOrientation(), [o2]), M2 = ie(null), [A2, z2] = ue((e3) => e3 + 1, 0), [F2, E2] = ue((e3) => e3 + 1, 0), I2 = o2?.getSheet(), N2 = ie(false);
1789
- se(() => {
1790
- N2.current = true;
1789
+ }, Wt = ne(ie((e2, t2) => {
1790
+ const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: v2, onResizeHeadersDown: q2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: T2 } = e2, R2 = le(() => o2.getOrientation(), [o2]), M2 = ae(null), [A2, z2] = he((e3) => e3 + 1, 0), [F2, D2] = he((e3) => e3 + 1, 0), E2 = o2?.getSheet(), H2 = ae(false);
1791
+ de(() => {
1792
+ H2.current = true;
1791
1793
  }, [o2]);
1792
- const H2 = ne(() => o2.getEntireRange().getCoords().max + 1, [o2]), P2 = ne(() => {
1794
+ const N2 = le(() => o2.getEntireRange().getCoords().max + 1, [o2]), P2 = le(() => {
1793
1795
  const e3 = R2 === s.Orientation.Column;
1794
1796
  return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
1795
- }, [x2]), [L2, B2] = le(I2?.getView().getZoomScale() / 100), [O2, $2] = le(null);
1796
- St(o2, { onSizesChange: (e3) => {
1797
- B2(I2?.getView().getZoomScale() / 100), me2(ge2());
1797
+ }, [x2]), [V2, B2] = re(E2?.getView().getZoomScale() / 100), [O2, $2] = re(null);
1798
+ xt(o2, { onSizesChange: (e3) => {
1799
+ B2(E2?.getView().getZoomScale() / 100), me2(ge2());
1798
1800
  } });
1799
- const W2 = de(() => {
1800
- M2.current?.invalidate(), E2();
1801
- }, []), U2 = de(X.debounce(() => {
1801
+ const W2 = ce(() => {
1802
+ M2.current?.invalidate(), D2();
1803
+ }, []), U2 = ce(Y.debounce(() => {
1802
1804
  W2();
1803
- }, 10), []), [_2, G2] = le(null);
1804
- St(o2.getSheet(), { onSelectionChange() {
1805
- G2(I2?.getSelection().getCoords()), U2();
1805
+ }, 10), []), [_2, G2] = re(null);
1806
+ xt(o2.getSheet(), { onSelectionChange() {
1807
+ G2(E2?.getSelection().getCoords()), U2();
1806
1808
  }, onProtectionChange() {
1807
1809
  W2();
1808
1810
  }, onViewChange() {
1809
1811
  U2();
1810
- } }), se(() => {
1812
+ } }), de(() => {
1811
1813
  me2(ge2());
1812
- }, [R2, L2, i2]), se(() => {
1814
+ }, [R2, V2, i2]), de(() => {
1813
1815
  $2(null), B2(o2?.getSheet().getView().getZoomScale() / 100), me2(ge2());
1814
1816
  }, [o2]);
1815
- const j2 = de((e3) => o2.at(e3)?.isHidden() || 0 === o2.at(e3)?.getSize(), [o2]), K2 = de((e3, t3) => o2.hiddenHeadersAt(e3, t3), [j2]), Y2 = S((e3) => o2.isSelected(e3), [o2]), J2 = S((e3) => o2.isSelectedAll(e3), [o2]), Q2 = de(() => o2.getMinSize(), [o2]), ee2 = de(() => o2.getMaxSize(), [o2]), te2 = S((e3, t3, n3) => {
1816
- t3 /= L2;
1817
- const l3 = { size: t3 = Math.max(Q2(), Math.min(X.roundAccurately(t3, Q2()), ee2())), hidden: false }, r3 = [];
1817
+ const Z2 = ce((e3) => o2.at(e3)?.isHidden() || 0 === o2.at(e3)?.getSize(), [o2]), K2 = ce((e3, t3) => o2.hiddenHeadersAt(e3, t3), [Z2]), X2 = S((e3) => o2.isSelected(e3), [o2]), J2 = S((e3) => o2.isSelectedAll(e3), [o2]), Q2 = ce(() => o2.getMinSize(), [o2]), ee2 = ce(() => o2.getMaxSize(), [o2]), te2 = S((e3, t3, n3) => {
1818
+ t3 /= V2;
1819
+ const l3 = { size: t3 = Math.max(Q2(), Math.min(Y.roundAccurately(t3, Q2()), ee2())), hidden: false }, r3 = [];
1818
1820
  if (t3 <= 0 && (l3.hidden = true, l3.size = n3), r3.push({ address: { min: e3, max: e3 }, update: l3 }), t3 < 0) {
1819
- const o3 = R2 === s.Orientation.Column, n4 = o3 ? he2.getColOffset : he2.getRowOffset, l4 = o3 ? he2.getColIndex : he2.getRowIndex, i3 = n4(e3);
1821
+ const o3 = R2 === s.Orientation.Column, n4 = o3 ? ue2.getColOffset : ue2.getRowOffset, l4 = o3 ? ue2.getColIndex : ue2.getRowIndex, i3 = n4(e3);
1820
1822
  let a3 = l4(i3 + t3);
1821
1823
  const d3 = n4(a3);
1822
1824
  d3 === i3 + t3 ? a3-- : r3.push({ address: { min: a3, max: a3 }, update: { size: i3 - d3 + t3 } }), e3 - a3 > 1 && r3.push({ address: { min: a3 + 1, max: e3 - 1 }, update: { hidden: true } });
1823
1825
  }
1824
1826
  o2.updateHeaderPairs(r3), w2?.(e3, t3, n3);
1825
- }, [A2, o2, L2, w2]), oe2 = S((e3, t3, n3) => {
1827
+ }, [A2, o2, V2, w2]), oe2 = S((e3, t3, n3) => {
1826
1828
  const l3 = R2 === s.Orientation.Column;
1827
1829
  let r3 = null, i3 = { min: e3, max: e3 };
1828
1830
  if (o2.isSelectedAll(e3)) {
1829
1831
  const a3 = o2.getSelectedRuns();
1830
1832
  a3.length > 1 ? r3 = "Resize " + (l3 ? "Columns" : "Rows") : i3 = a3[0];
1831
- const s2 = { hidden: t3 <= 0, size: (t3 <= 0 ? n3 : t3) / L2 };
1832
- o2.updateHeaderPairs(Ot(a3, s2, e3));
1833
+ const s2 = { hidden: t3 <= 0, size: (t3 <= 0 ? n3 : t3) / V2 };
1834
+ o2.updateHeaderPairs($t(a3, s2, e3));
1833
1835
  }
1834
1836
  if (i3) {
1835
1837
  const e4 = i3.max - i3.min + 1;
@@ -1837,10 +1839,10 @@ const Ot = (e2, t2, o2 = null) => {
1837
1839
  t4 = 1 === e4 ? o2.getRange(i3).at(0).getDisplayText() : o2.getRange(i3).toString(), r3 = `Resize ${l3 ? "Column" : "Row"}${e4 > 1 ? "s" : ""} '${t4}'`;
1838
1840
  }
1839
1841
  v2?.(e3, t3, r3);
1840
- }, [A2, o2, v2]), re2 = S((e3, t3) => {
1842
+ }, [A2, o2, v2]), ne2 = S((e3, t3) => {
1841
1843
  const o3 = R2 === s.Orientation.Column;
1842
1844
  f2(e3, t3, `Resize ${o3 ? "Column" : "Row"}(s)`);
1843
- }, [f2]), ce2 = S((e3) => {
1845
+ }, [f2]), ie2 = S((e3) => {
1844
1846
  let t3 = false;
1845
1847
  const n3 = R2 === s.Orientation.Column, l3 = o2.getSheet().getEntireRange().getCoords(), r3 = [], i3 = o2.getSelectedRuns(), a3 = (e4) => {
1846
1848
  let t4;
@@ -1851,40 +1853,40 @@ const Ot = (e2, t2, o2 = null) => {
1851
1853
  n4.value.isSelectedAll && (n4.min <= e3 && n4.max >= e3 && (t3 = true), a3(n4));
1852
1854
  }
1853
1855
  t3 || a3({ min: e3, max: e3 }), o2.getSheet().getRanges(r3).autoFit({ orientations: n3 ? s.Orientations.Column : s.Orientations.Row });
1854
- if (j2(e3)) {
1855
- const n4 = { hidden: null }, l4 = Ot(i3, n4);
1856
+ if (Z2(e3)) {
1857
+ const n4 = { hidden: null }, l4 = $t(i3, n4);
1856
1858
  t3 || l4.push({ address: e3, update: n4 }), o2.updateHeaderPairs(l4);
1857
1859
  }
1858
1860
  v2?.(e3, null, "Resize Column(s)");
1859
- }, [A2, o2, v2, j2]), ge2 = () => {
1861
+ }, [A2, o2, v2, Z2]), ge2 = () => {
1860
1862
  const e3 = R2 === s.Orientation.Column;
1861
- return { getColOffset: (t3) => e3 ? o2.findOffset(t3) : 0 === t3 ? 0 : i2 / L2, getColIndex: (t3) => e3 ? o2.findIndex(t3) : 0, getRowOffset: (t3) => e3 ? 0 === t3 ? 0 : i2 / L2 : o2.findOffset(t3), getRowIndex: (t3) => e3 ? 0 : o2.findIndex(t3) };
1862
- }, [he2, me2] = le(() => ge2()), pe2 = de((e3, t3) => !(e3.nativeEvent.which === V.Right) || !J2(R2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [R2, J2]), fe2 = S((e3) => {
1863
+ return { getColOffset: (t3) => e3 ? o2.findOffset(t3) : 0 === t3 ? 0 : i2 / V2, getColIndex: (t3) => e3 ? o2.findIndex(t3) : 0, getRowOffset: (t3) => e3 ? 0 === t3 ? 0 : i2 / V2 : o2.findOffset(t3), getRowIndex: (t3) => e3 ? 0 : o2.findIndex(t3) };
1864
+ }, [ue2, me2] = re(() => ge2()), pe2 = ce((e3, t3) => !(e3.nativeEvent.which === L.Right) || !J2(R2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [R2, J2]), fe2 = S((e3) => {
1863
1865
  l2.focusSheet();
1864
- }, [l2]), Se2 = S((e3) => {
1865
- I2?.getSelection().updateCoords(e3);
1866
- }, [I2]), { ...xe2 } = we({ gridRef: n2, commands: null, layout: he2, selection: _2, fillHandleBorderColor: u2.body.fill, selectionBackgroundColor: u2.selection.fill, selectionBorderColor: u2.selection.strokeFill, selectionRemoveBackgroundColor: u2.selectionRemove.fill, selectionRemoveBorderColor: u2.selectionRemove.strokeFill, disableTouchSelection: true, onSelectionChange: Se2, canSelectionSpanMergedCells: (e3) => {
1867
- const t3 = I2.getRange(e3);
1866
+ }, [l2]), we2 = S((e3) => {
1867
+ E2?.getSelection().updateCoords(e3);
1868
+ }, [E2]), { ...xe2 } = ve({ gridRef: n2, commands: null, layout: ue2, selection: _2, fillHandleBorderColor: u2.body.fill, selectionBackgroundColor: u2.selection.fill, selectionBorderColor: u2.selection.strokeFill, selectionRemoveBackgroundColor: u2.selectionRemove.fill, selectionRemoveBorderColor: u2.selectionRemove.strokeFill, disableTouchSelection: true, onSelectionChange: we2, canSelectionSpanMergedCells: (e3) => {
1869
+ const t3 = E2.getRange(e3);
1868
1870
  return t3.isEntireColumns() || t3.isEntireRows();
1869
1871
  } }), ke2 = S(() => {
1870
1872
  k2?.();
1871
- const e3 = I2?.getSelection();
1873
+ const e3 = E2?.getSelection();
1872
1874
  e3 && e3.setAdjusting(e3.getCoords());
1873
- }, [I2, k2]), Te2 = S(async () => {
1874
- I2?.getSelection().setAdjusting(null), T2?.();
1875
- }, [I2, T2]), { ...Re2 } = ve({ orientation: R2, headerCount: H2, gridRef: M2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: pe2, onPointerUp: fe2, onDragStart: ke2, onDragEnd: Te2 }), Me2 = u2.selection?.strokeFill;
1876
- ae(() => {
1875
+ }, [E2, k2]), Te2 = S(async () => {
1876
+ E2?.getSelection().setAdjusting(null), T2?.();
1877
+ }, [E2, T2]), { ...Re2 } = qe({ orientation: R2, headerCount: N2, gridRef: M2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: pe2, onPointerUp: fe2, onDragStart: ke2, onDragEnd: Te2 }), Me2 = u2.selection?.strokeFill;
1878
+ se(() => {
1877
1879
  if (!M2.current) return void $2(null);
1878
1880
  const e3 = R2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : te2, l3 = (t4, o3, n4) => {
1879
- if (n4) return Z("div", e3 ? { style: { position: "absolute", borderBottom: `${u2.headerSelection.strokeWidth}px solid ${Me2}`, pointerEvents: "none", top: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, left: `${C.boundPixel(n4.x - u2.headerSelection.strokeWidth)}px`, width: `${C.boundPixel(n4.width + u2.headerSelection.strokeWidth + 1, true)}px`, height: i2 + u2.headerSelection.strokeWidth - 0.5 + "px" } } : { style: { position: "absolute", borderRight: `${u2.headerSelection.strokeWidth}px solid ${Me2}`, pointerEvents: "none", top: `${C.boundPixel(n4.y - u2.headerSelection.strokeWidth)}px`, left: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, width: i2 + u2.headerSelection.strokeWidth - 0.5 + "px", height: `${C.boundPixel(n4.height + u2.headerSelection.strokeWidth + 1, true)}px` } }, t4);
1881
+ if (n4) return j("div", e3 ? { style: { position: "absolute", borderBottom: `${u2.headerSelection.strokeWidth}px solid ${Me2}`, pointerEvents: "none", top: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, left: `${C.boundPixel(n4.x - u2.headerSelection.strokeWidth)}px`, width: `${C.boundPixel(n4.width + u2.headerSelection.strokeWidth + 1, true)}px`, height: i2 + u2.headerSelection.strokeWidth - 0.5 + "px" } } : { style: { position: "absolute", borderRight: `${u2.headerSelection.strokeWidth}px solid ${Me2}`, pointerEvents: "none", top: `${C.boundPixel(n4.y - u2.headerSelection.strokeWidth)}px`, left: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, width: i2 + u2.headerSelection.strokeWidth - 0.5 + "px", height: `${C.boundPixel(n4.height + u2.headerSelection.strokeWidth + 1, true)}px` } }, t4);
1880
1882
  }, r3 = (t4, o3, n4) => {
1881
1883
  const l4 = { x: 0, y: 0, width: 0, height: 0 };
1882
1884
  if (e3) {
1883
- const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(H2, o3) }), be);
1885
+ const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(N2, o3) }), Se);
1884
1886
  if (!e4) return;
1885
1887
  l4.x = e4.x, l4.width = e4.width;
1886
1888
  } else {
1887
- const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(H2, o3), colStart: 0, colEnd: 0 }), be);
1889
+ const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(N2, o3), colStart: 0, colEnd: 0 }), Se);
1888
1890
  if (!e4) return;
1889
1891
  l4.y = e4.y, l4.height = e4.height;
1890
1892
  }
@@ -1899,7 +1901,7 @@ const Ot = (e2, t2, o2 = null) => {
1899
1901
  for (let e4 = 0; e4 < c3; e4++) {
1900
1902
  const o3 = i3[e4], l5 = e4 < c3 - 1 ? i3[e4 + 1] : o3 + K2(o3 + 1, false) + 1, g4 = o3 + 1 !== l5;
1901
1903
  if (!r4 || r4.max < o3) if (t3.length > 0 && t3[t3.length - 1].max >= o3) {
1902
- const e5 = X.findEqualOrGreater(t3, o3, (e6) => e6.max);
1904
+ const e5 = Y.findEqualOrGreater(t3, o3, (e6) => e6.max);
1903
1905
  r4 = t3[e5];
1904
1906
  } else r4 = null;
1905
1907
  let u3 = false, h4 = false;
@@ -1907,14 +1909,14 @@ const Ot = (e2, t2, o2 = null) => {
1907
1909
  let e5 = false, t4 = false;
1908
1910
  r4?.value && r4.min <= o3 && (e5 = true, t4 = r4.value.isSelectedAll), o3 > 0 && d3.push({ index: o3 - 1, isNextHidden: g4, isSelected: e5, isSelectedAll: t4, disabledResize: true });
1909
1911
  }
1910
- if (h4 && s2.push(d3.length), d3.push({ index: o3, isHidden: 0 === e4 && K2(o3, false) > 0, isNextHidden: g4, isSelected: u3, isSelectedAll: h4, onDividerMouseDown: q2, onDividerResizeStart: re2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 }), g4) {
1912
+ if (h4 && s2.push(d3.length), d3.push({ index: o3, isHidden: 0 === e4 && K2(o3, false) > 0, isNextHidden: g4, isSelected: u3, isSelectedAll: h4, onDividerMouseDown: q2, onDividerResizeStart: ne2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ie2 }), g4) {
1911
1913
  let e5 = false, i4 = false;
1912
1914
  if (r4 && r4.min >= o3 && r4.max <= l5 - 1 && r4.value.isSelectedAll && s2.push(d3.length), r4?.value && r4.max >= l5) ;
1913
1915
  else if (t3.length > 0 && t3[t3.length - 1].max >= l5) {
1914
- const e6 = X.findEqualOrGreater(t3, l5, (e7) => e7.max);
1916
+ const e6 = Y.findEqualOrGreater(t3, l5, (e7) => e7.max);
1915
1917
  r4 = t3[e6];
1916
1918
  } else r4 = null;
1917
- r4?.value && r4.min <= l5 && (e5 = r4.value.isSelected, i4 = r4.value.isSelectedAll), l5 > 0 && d3.push({ index: l5 - 1, isHidden: true, isSelected: e5, isSelectedAll: i4, onDividerMouseDown: q2, onDividerResizeStart: re2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 });
1919
+ r4?.value && r4.min <= l5 && (e5 = r4.value.isSelected, i4 = r4.value.isSelectedAll), l5 > 0 && d3.push({ index: l5 - 1, isHidden: true, isSelected: e5, isSelectedAll: i4, onDividerMouseDown: q2, onDividerResizeStart: ne2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ie2 });
1918
1920
  }
1919
1921
  }
1920
1922
  if (s2.length > 0) {
@@ -1931,20 +1933,20 @@ const Ot = (e2, t2, o2 = null) => {
1931
1933
  } else o3 >= 0 && (d3[s2[o3]].showTouchDivider = true);
1932
1934
  }
1933
1935
  const { header: g3, headerSelect: h3, headerSelectAll: m3, headerHover: p3 } = u2 ?? {}, f3 = d3.length, w3 = new Array(f3);
1934
- for (let e4 = 0; e4 < f3; e4++) w3[e4] = Z(Ce, { orientation: R2, view: l4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...d3[e4] }, `divider${e4}`);
1936
+ for (let e4 = 0; e4 < f3; e4++) w3[e4] = j(be, { orientation: R2, view: l4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...d3[e4] }, `divider${e4}`);
1935
1937
  return w3;
1936
1938
  }, (e4) => {
1937
1939
  const o3 = [], n4 = t3.length;
1938
1940
  for (let i3 = 0; t3 && i3 < n4; i3++) o3.push(l3(`selection:${e4.getAnchor()}:${i3}`, 0, r3(t3[i3].min, t3[i3].max, e4)));
1939
1941
  return o3;
1940
1942
  }]);
1941
- }, [F2, true, Me2, u2, he2, H2, g2, A2, L2]), ae(() => {
1943
+ }, [F2, true, Me2, u2, ue2, N2, g2, A2, V2]), se(() => {
1942
1944
  M2.current?.invalidate();
1943
1945
  }, [A2]);
1944
1946
  const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
1945
1947
  const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: l3 } = u2 ?? {}, { range: r3, key: i3, ...a3 } = e3;
1946
- return Z(qe, { orientation: R2, index: R2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * L2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
1947
- }, [A2, H2, u2, L2, o2]), Fe2 = D(), De2 = ne(() => {
1948
+ return j(ye, { orientation: R2, index: R2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: X2, isSelectedAll: J2, zoomScale: 100 * V2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
1949
+ }, [A2, N2, u2, V2, o2]), Fe2 = I(), De2 = le(() => {
1948
1950
  const e3 = "white", t3 = "black", o3 = {};
1949
1951
  if ("touch" !== C.detectIt().primaryInput) {
1950
1952
  let n3 = R2 === s.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='${t3}' fill='${e3}'/%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='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;
@@ -1956,33 +1958,33 @@ const Ot = (e2, t2, o2 = null) => {
1956
1958
  o3.cursor = n3;
1957
1959
  }
1958
1960
  return o3.backgroundColor = u2?.header?.fill || "transparent", o3;
1959
- }, [R2, A2, Fe2, u2]), Ee2 = b(t2, () => ({ scrollTo: (e3) => {
1961
+ }, [R2, A2, Fe2, u2]), Ie2 = b(t2, () => ({ scrollTo: (e3) => {
1960
1962
  M2.current?.scrollTo(e3);
1961
1963
  }, forceRender: () => {
1962
1964
  z2();
1963
- }, getGridElement: () => M2.current }), []), Ie2 = de((e3) => {
1965
+ }, getGridElement: () => M2.current }), []), Ee2 = ce((e3) => {
1964
1966
  Re2.onPointerDown(e3);
1965
- }, [Re2]), Ne2 = de((e3) => {
1967
+ }, [Re2]), He2 = ce((e3) => {
1966
1968
  const t3 = Re2.getCellCoordsFromClient(e3.clientX, e3.clientY);
1967
1969
  if (!t3) return;
1968
1970
  if (!p2) return;
1969
1971
  const o3 = R2 === s.Orientation.Column;
1970
1972
  p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
1971
- }, [Re2, p2]), He2 = ne(() => {
1973
+ }, [Re2, p2]), Ne2 = le(() => {
1972
1974
  const e3 = R2 === s.Orientation.Column;
1973
- return Z("div", { ref: Ee2, children: Z(ye, { className: "sheet-header", style: De2, ref: M2, scrollPoint: P2, columnCount: e3 ? H2 : 1, rowCount: e3 ? 1 : H2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? K2 : void 0, hiddenRowsAt: e3 ? void 0 : K2, showGridLines: false, layout: he2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: Ne2, onPointerDown: Ie2, zoom: L2, cellRenderer: ze2, overlays: O2 }) });
1974
- }, [O2, he2, a2, d2, P2, De2, F2]);
1975
- return ae(() => {
1976
- N2.current = false, M2.current?.invalidate(), E2();
1977
- }, [o2, u2]), He2;
1978
- })), Wt = oe(re((e2, t2) => {
1979
- const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ut({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
1975
+ return j("div", { ref: Ie2, children: j(Ce, { className: "sheet-header", style: De2, ref: M2, scrollPoint: P2, columnCount: e3 ? N2 : 1, rowCount: e3 ? 1 : N2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? K2 : void 0, hiddenRowsAt: e3 ? void 0 : K2, showGridLines: false, layout: ue2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: He2, onPointerDown: Ee2, zoom: V2, cellRenderer: ze2, overlays: O2 }) });
1976
+ }, [O2, ue2, a2, d2, P2, De2, F2]);
1977
+ return se(() => {
1978
+ H2.current = false, M2.current?.invalidate(), D2();
1979
+ }, [o2, u2]), Ne2;
1980
+ })), Ut = ne(ie((e2, t2) => {
1981
+ const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ht({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
1980
1982
  return s2 && o2 ? s2 : null;
1981
- })), Ut = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, _t = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Gt = { type: o.Content.Values }, Zt = { fitDestination: true, type: o.Content.Formats }, jt = { fitDestination: true, type: o.Content.Formulas }, Kt = { transpose: true }, Xt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Yt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = Se, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", ...h2 }) => {
1982
- const m2 = S(a2, [a2]), w2 = ie(null), v2 = D(), q2 = v2.getMode(), y2 = ne(() => ({ element: e2, doCopy: (e3) => {
1983
+ })), _t = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, Gt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Zt = { type: o.Content.Values }, jt = { fitDestination: true, type: o.Content.Formats }, Kt = { fitDestination: true, type: o.Content.Formulas }, Xt = { transpose: true }, Yt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Jt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = xe, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", ...h2 }) => {
1984
+ const m2 = S(a2, [a2]), w2 = ae(null), v2 = I(), q2 = v2.getMode(), y2 = le(() => ({ element: e2, doCopy: (e3) => {
1983
1985
  const o2 = t2.getSelectedRanges().getSnapshot(e3);
1984
1986
  return new p(o2);
1985
- } }), [t2, n2, e2]), C2 = ne(() => ({ element: e2, importFromExternal: async (e3, o2) => {
1987
+ } }), [t2, n2, e2]), C2 = le(() => ({ element: e2, importFromExternal: async (e3, o2) => {
1986
1988
  const n3 = new f(e3, o2, t2.getStyles(), t2.isDate1904());
1987
1989
  return await n3.parse() ? n3 : null;
1988
1990
  }, doPaste: async (e3, n3) => {
@@ -1992,7 +1994,7 @@ const Ot = (e2, t2, o2 = null) => {
1992
1994
  let i3 = t2.getSelectedRange();
1993
1995
  if ("HTML" === r3 && i3.size > 1) {
1994
1996
  const e4 = l3?.getCoords();
1995
- e4 && Q.isSingleCell(e4) && (i3 = i3.getResizeTo(1, 1));
1997
+ e4 && ee.isSingleCell(e4) && (i3 = i3.getResizeTo(1, 1));
1996
1998
  }
1997
1999
  return await i3.doBatch(async () => {
1998
2000
  const e4 = await i3.copyFrom(l3, n3);
@@ -2001,7 +2003,7 @@ const Ot = (e2, t2, o2 = null) => {
2001
2003
  } }), [t2, n2, e2]), { clipboard: b2, ...x2 } = A({ ...h2, source: y2, commands: l2, target: C2, onClipboardUpdate: (e3) => {
2002
2004
  const t3 = "range" === e3?.getItemType() ? e3 : null;
2003
2005
  if (t3) {
2004
- const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? _t : Ut, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
2006
+ const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? Gt : _t, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
2005
2007
  e4?.args?.isClipboard || b2.clear(true), t4?.onModeChange?.(e4);
2006
2008
  } };
2007
2009
  v2.setMode(o2);
@@ -2013,22 +2015,22 @@ const Ot = (e2, t2, o2 = null) => {
2013
2015
  if (!l3 && "copy" === v2.getMode()?.key) {
2014
2016
  const e3 = o2.getItem().getCoords(), n4 = t2.getSelectedRanges().getCoords();
2015
2017
  let r3 = false;
2016
- if (!r3 && e3 && n4 && o2.getItem().getSource?.() === t2) for (let t3 = 0; !r3 && t3 < n4.length; t3++) r3 = Q.isRangesIntersect(e3, n4[t3]);
2018
+ if (!r3 && e3 && n4 && o2.getItem().getSource?.() === t2) for (let t3 = 0; !r3 && t3 < n4.length; t3++) r3 = ee.isRangesIntersect(e3, n4[t3]);
2017
2019
  l3 = r3;
2018
2020
  }
2019
2021
  l3 && v2.setMode(null), e2?.()?.focus(), i2?.(o2, n3);
2020
2022
  } });
2021
- ne(() => {
2023
+ le(() => {
2022
2024
  const t3 = e2;
2023
2025
  if (!l2) return;
2024
2026
  const o2 = [new T("pasteValues", t3, { label: "Paste Values", scopedLabels: { paste: "Values" }, description: "Paste only the values of the selected cells.\n\nThe formatting is not applied.", icon: "PasteValues", shortcut: { key: "V", modifiers: [R.Ctrl, R.Shift] } }), new T("pasteFormats", t3, { label: "Paste Formatting", scopedLabels: { paste: "Formatting" }, description: "Paste only the formats of the selected cells.\n\nThe content is not applied.", icon: "PasteFormats" }), new T("pasteFormulas", t3, { label: "Paste Formulas", scopedLabels: { paste: "Formulas" }, description: "Paste only the formulas of the selected cells. The values and formatting is not applied.", icon: "PasteFormulas" }), new T("pasteTranspose", t3, { label: "Paste Transpose", scopedLabels: { paste: "Transpose" }, description: "Paste with the rows and columns flipped.", icon: "PasteTranspose" }), new T("pasteLinks", t3, { label: "Paste Links", scopedLabels: { paste: "Links" }, description: "Paste as formula references to the original cells.", icon: "PasteLinks" })];
2025
2027
  l2.addCommands(o2, true);
2026
- }, [l2, e2]), ae(() => {
2028
+ }, [l2, e2]), se(() => {
2027
2029
  if (!l2) return;
2028
2030
  const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
2029
- l2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ...Gt, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...Zt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...jt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...Kt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Xt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
2031
+ l2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ...Zt, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...jt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...Kt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...Xt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Yt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
2030
2032
  }, [t2, l2]);
2031
- const k2 = ne(() => {
2033
+ const k2 = le(() => {
2032
2034
  if (!q2 || !w2.current) return;
2033
2035
  const e3 = q2.key;
2034
2036
  if ("copy" !== e3 && "cut" !== e3 && "formatPainter" !== e3) return;
@@ -2038,24 +2040,24 @@ const Ot = (e2, t2, o2 = null) => {
2038
2040
  return a3 && 0 !== a3.length ? (e4) => {
2039
2041
  const t3 = [];
2040
2042
  for (let o3 = 0; o3 < a3.length; o3++) {
2041
- const n4 = a3[o3], i4 = e4.toClipBounds(e4.getRangeCoordsBounds(n4, { top: 0, left: 0, right: 1, bottom: 1 }), be);
2043
+ const n4 = a3[o3], i4 = e4.toClipBounds(e4.getRangeCoordsBounds(n4, { top: 0, left: 0, right: 1, bottom: 1 }), Se);
2042
2044
  i4 && (t3.push(m2({ range: n4, key: `copy-selection-background-${o3}`, x: i4.x, y: i4.y, width: Math.max(i4.width, 0), height: Math.max(i4.height, 0), stroke: l3, strokeWidth: 2 })), t3.push(m2({ range: n4, key: `copy-selection-foreground-${o3}`, x: i4.x + (i4.width <= 2 ? -1 : 0), y: i4.y, width: Math.max(i4.width, 3), height: Math.max(i4.height, 3), stroke: r3, strokeWidth: 2, isAnimatedStroke: true })));
2043
2045
  }
2044
2046
  return t3;
2045
2047
  } : null;
2046
2048
  }, [q2, t2, n2, d2, g2, c2, u2]);
2047
2049
  return { ...x2, clipboard: b2, overlays: k2 };
2048
- }, Jt = oe(re((e2, t2) => {
2049
- const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2 } = e2, a2 = r2.body ?? {}, s2 = l2.getView(), { overlays: d2 } = Yt({ element: n2, sheet: l2, sheetView: s2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
2050
- return St(l2?.getSelection(), { onChange(e3) {
2051
- } }), ae(() => {
2050
+ }, Qt = ne(ie((e2, t2) => {
2051
+ const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2 } = e2, a2 = r2.body ?? {}, s2 = l2.getView(), { overlays: d2 } = Jt({ element: n2, sheet: l2, sheetView: s2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
2052
+ return xt(l2?.getSelection(), { onChange(e3) {
2053
+ } }), se(() => {
2052
2054
  o2?.getStage();
2053
2055
  }, [o2?.getStage()]), d2 && o2 ? d2(o2) : null;
2054
- })), Qt = "_sheet-selection_12wyx_5", eo = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, to = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, oo = { key: "dragCopy", description: "Drag selection to copy cell contents." }, no = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, lo = (e2, t2) => t2.ctrlKey && t2.shiftKey ? no : t2.ctrlKey ? oo : t2.shiftKey ? to : eo, ro = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, io = oe(re((e2, t2) => {
2055
- const { view: o2, commands: n2, className: l2, onFirstRender: r2, onShowTooltip: i2, onCloseTooltip: a2, sheet: d2, gridRef: c2, gridStyle: g2, isActive: u2, editingCoords: h2, ...m2 } = e2, p2 = o2?.getBounds(), f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = le(() => d2?.getSelection().getCoords()), y2 = S((e3) => {
2056
- Q.isEqualSelectionCoords(e3, v2) || d2 && d2.getSelection().updateCoords(e3);
2057
- }, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] = le(d2?.getProtection().isLocked()), [M2, A2] = le(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, E2 = !z2 && u2, I2 = h2 ?? x2.getMode()?.args?.stateAndCoords?.coords ?? null, N2 = null !== I2 || M2, H2 = S((e3) => {
2058
- const t3 = Q.cellToRange(e3);
2056
+ })), eo = "_sheet-selection_12wyx_5", to = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, oo = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, no = { key: "dragCopy", description: "Drag selection to copy cell contents." }, lo = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, ro = (e2, t2) => t2.ctrlKey && t2.shiftKey ? lo : t2.ctrlKey ? no : t2.shiftKey ? oo : to, io = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, ao = ne(ie((e2, t2) => {
2057
+ const { view: o2, commands: n2, className: l2, onFirstRender: r2, onShowTooltip: i2, onCloseTooltip: a2, sheet: d2, gridRef: c2, gridStyle: g2, isActive: u2, editingCoords: h2, ...m2 } = e2, p2 = o2?.getBounds(), f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = re(() => d2?.getSelection().getCoords()), y2 = S((e3) => {
2058
+ ee.isEqualSelectionCoords(e3, v2) || d2 && d2.getSelection().updateCoords(e3);
2059
+ }, [d2, v2]), x2 = I(), k2 = ae(null), [T2, R2] = re(d2?.getProtection().isLocked()), [M2, A2] = re(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, D2 = !z2 && u2, E2 = h2 ?? x2.getMode()?.args?.stateAndCoords?.coords ?? null, H2 = null !== E2 || M2, N2 = S((e3) => {
2060
+ const t3 = ee.cellToRange(e3);
2059
2061
  if (d2.isClosed()) return t3;
2060
2062
  const o3 = d2.getRange(t3, { ignoreHidden: true }).getMerges();
2061
2063
  return 0 === o3.length ? t3 : o3[0];
@@ -2074,70 +2076,70 @@ const Ot = (e2, t2, o2 = null) => {
2074
2076
  }, [d2]), V2 = S(() => {
2075
2077
  const e3 = d2.getUsedRange()?.getCoords(), t3 = d2.getRowHeaders().getUsedRange()?.getCoords(), o3 = d2.getColumnHeaders().getUsedRange()?.getCoords();
2076
2078
  return { ...e3, colEnd: Math.max(e3?.colEnd ?? 0, o3?.max ?? 0), rowEnd: Math.max(e3?.rowEnd ?? 0, t3?.max ?? 0) };
2077
- }, [d2]), B2 = S((e3, t3) => d2.getRowHeaders().hiddenHeadersAt(e3, t3), [d2]), O2 = S((e3, t3) => d2.getColumnHeaders().hiddenHeadersAt(e3, t3), [d2]), $2 = S((e3) => d2.getRange(e3, { ignoreHidden: true }).getMerges(), [d2]), W2 = S((e3) => {
2079
+ }, [d2]), L2 = S((e3, t3) => d2.getRowHeaders().hiddenHeadersAt(e3, t3), [d2]), O2 = S((e3, t3) => d2.getColumnHeaders().hiddenHeadersAt(e3, t3), [d2]), $2 = S((e3) => d2.getRange(e3, { ignoreHidden: true }).getMerges(), [d2]), W2 = S((e3) => {
2078
2080
  d2?.getSelection().setAdjusting(e3);
2079
2081
  }, [d2]), U2 = S(async () => {
2080
2082
  d2?.getSelection().setAdjusting(null);
2081
2083
  const e3 = x2.getMode();
2082
2084
  "formatPainter" === e3?.key && (await n2?.getCommand("pasteFormats")?.execute({}), x2.setMode(null));
2083
- }, [x2, v2, d2, n2]), _2 = ne(() => {
2085
+ }, [x2, v2, d2, n2]), _2 = le(() => {
2084
2086
  const e3 = x2.getMode();
2085
2087
  return "cut" === e3?.key || "copy" === e3?.key;
2086
2088
  }, [x2]);
2087
- St(d2?.getView(), { onMovableSelectionChange: () => {
2089
+ xt(d2?.getView(), { onMovableSelectionChange: () => {
2088
2090
  A2(d2.getView().getMovableSelection().length > 0);
2089
- } }), St(d2?.getSelection(), { onChange(e3) {
2091
+ } }), xt(d2?.getSelection(), { onChange(e3) {
2090
2092
  const t3 = d2.getSelection().getCoords();
2091
2093
  q2(t3);
2092
- } }), St(d2, { onProtectionChange: () => {
2094
+ } }), xt(d2, { onProtectionChange: () => {
2093
2095
  R2(d2.getProtection().isLocked());
2094
2096
  } });
2095
- const { body: G2 = {} } = g2 || {}, j2 = F(), K2 = o2.getLayout(), X2 = !(E2 && v2.ranges.length <= 1 && null === I2 && !T2 && (!x2.getMode() || _2)), { cursor: Y2, overlay: J2, onPointerDown: ee2 } = we({ gridRef: c2, commands: n2, layout: K2, getCellCoordsAsRangeCoords: H2, selection: v2, fillHandleBorderColor: G2.fill, selectionBackgroundColor: u2 ? g2.selection.fill : g2.selectionInactive.fill, selectionBorderColor: u2 ? g2.selection.strokeFill : g2.selectionInactive.strokeFill, selectionRemoveBackgroundColor: u2 ? g2.selectionRemove.fill : g2.selectionInactive.fill, selectionRemoveBorderColor: u2 ? g2.selectionRemove.strokeFill : g2.selectionInactive.strokeFill, disableFillDrag: X2, disableMoveDrag: z2 || !(u2 && v2.ranges.length <= 1 && null === I2 && !T2), disableTouchSelection: N2, onSelectionChange: y2, onSelectionDragStart: W2, onSelectionDragEnd: U2, onMoveDragStart: (e3, t3, o3) => {
2096
- x2.setMode(lo(0, o3));
2097
+ const { body: G2 = {} } = g2 || {}, Z2 = F(), K2 = o2.getLayout(), X2 = !(D2 && v2.ranges.length <= 1 && null === E2 && !T2 && (!x2.getMode() || _2)), { cursor: Y2, overlay: J2, onPointerDown: Q2 } = ve({ gridRef: c2, commands: n2, layout: K2, getCellCoordsAsRangeCoords: N2, selection: v2, fillHandleBorderColor: G2.fill, selectionBackgroundColor: u2 ? g2.selection.fill : g2.selectionInactive.fill, selectionBorderColor: u2 ? g2.selection.strokeFill : g2.selectionInactive.strokeFill, selectionRemoveBackgroundColor: u2 ? g2.selectionRemove.fill : g2.selectionInactive.fill, selectionRemoveBorderColor: u2 ? g2.selectionRemove.strokeFill : g2.selectionInactive.strokeFill, disableFillDrag: X2, disableMoveDrag: z2 || !(u2 && v2.ranges.length <= 1 && null === E2 && !T2), disableTouchSelection: H2, onSelectionChange: y2, onSelectionDragStart: W2, onSelectionDragEnd: U2, onMoveDragStart: (e3, t3, o3) => {
2098
+ x2.setMode(ro(0, o3));
2097
2099
  }, onMoveDragUpdate: (e3, t3, o3) => {
2098
- x2.setMode(lo(0, o3));
2100
+ x2.setMode(ro(0, o3));
2099
2101
  }, onMoveDragEnd: (e3, t3) => {
2100
2102
  x2.setMode(null);
2101
2103
  }, onMoveDragDone: async (e3, t3, o3) => {
2102
- if (Q.isEqualRanges(e3, t3)) return;
2104
+ if (ee.isEqualRanges(e3, t3)) return;
2103
2105
  const n3 = d2.getRange(t3);
2104
- if (j2?.showOptions) {
2106
+ if (Z2?.showOptions) {
2105
2107
  const t4 = n3.getDifferences(e3);
2106
2108
  let o4 = false;
2107
2109
  const l4 = t4.getCount();
2108
2110
  for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
2109
2111
  if (o4) {
2110
- if ("Replace" !== await j2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
2112
+ if ("Replace" !== await Z2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
2111
2113
  }
2112
2114
  }
2113
- const l3 = !o3.ctrlKey, r3 = o3.shiftKey, i3 = r3 ? l3 ? "Insert Moved Cells" : "Insert Copied Cells" : l3 ? "Move Cells" : "Copy Cells", a3 = await j2?.showBusy?.(i3);
2115
+ const l3 = !o3.ctrlKey, r3 = o3.shiftKey, i3 = r3 ? l3 ? "Insert Moved Cells" : "Insert Copied Cells" : l3 ? "Move Cells" : "Copy Cells", a3 = await Z2?.showBusy?.(i3);
2114
2116
  try {
2115
2117
  const t4 = d2.getRange(e3);
2116
2118
  await n3.doBatch(async () => {
2117
2119
  r3 ? await n3.insertFrom(e3, { isCut: l3, undoRange: t4 }) : await n3.copyFrom(e3, { isCut: l3, undoRange: t4 }), t4.autoFit({ skipCustomSize: true, orientations: s.Orientations.Row, minContent: true }), n3.autoFit({ skipCustomSize: true, orientations: s.Orientations.Row, minContent: true });
2118
2120
  }, { description: i3, autoSelect: true });
2119
2121
  } catch (e4) {
2120
- j2?.showError?.(e4);
2122
+ Z2?.showError?.(e4);
2121
2123
  } finally {
2122
2124
  a3?.();
2123
2125
  }
2124
- }, contentfulCellFinder: P2, hiddenRowsAt: B2, hiddenColumnsAt: O2, mergedRanges: $2, getDataCoords: V2, canSelectionSpanMergedCells: (e3) => {
2126
+ }, contentfulCellFinder: P2, hiddenRowsAt: L2, hiddenColumnsAt: O2, mergedRanges: $2, getDataCoords: V2, canSelectionSpanMergedCells: (e3) => {
2125
2127
  const t3 = d2.getRange(e3);
2126
2128
  return t3.isEntireColumns() || t3.isEntireRows();
2127
2129
  }, onFill: async (e3, t3) => {
2128
- const o3 = "Auto Fill", n3 = await j2?.showBusy?.(o3);
2130
+ const o3 = "Auto Fill", n3 = await Z2?.showBusy?.(o3);
2129
2131
  try {
2130
2132
  await d2.doBatch(() => {
2131
2133
  d2.getRange(e3).autoFill(t3), d2.getRange(t3).autoFit({ orientations: s.Orientations.Row, skipCustomSize: true, minContent: true });
2132
2134
  }, { description: o3, autoSelect: true });
2133
2135
  } catch (e4) {
2134
- j2?.showError?.(e4);
2136
+ Z2?.showError?.(e4);
2135
2137
  } finally {
2136
2138
  k2.current = null, n3?.();
2137
2139
  }
2138
2140
  }, onFillPreview: (e3, t3, n3) => {
2139
2141
  if (c2.current && f2) {
2140
- x2.setMode(ro);
2142
+ x2.setMode(io);
2141
2143
  try {
2142
2144
  k2.current?.direction !== n3 && (k2.current = null, d2.getRange(e3).autoFill(t3, { previewOnly: (e4) => {
2143
2145
  k2.current = { callback: e4, direction: n3 };
@@ -2146,71 +2148,71 @@ const Ot = (e2, t2, o2 = null) => {
2146
2148
  if (!l3 || l3.isEmpty()) return;
2147
2149
  const r3 = l3.toText();
2148
2150
  if (!r3) return;
2149
- const i3 = Q.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
2150
- let c3 = 0, g3 = 0, u3 = L.Bottom;
2151
+ const i3 = ee.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
2152
+ let c3 = 0, g3 = 0, u3 = B.Bottom;
2151
2153
  if (n3 === s.Direction.Down) {
2152
2154
  c3 = K2.getColOffset(i3.colEnd + 1) - a3.x;
2153
2155
  const e4 = K2.getRowOffset(i3.rowEnd), t4 = K2.getRowOffset(i3.rowEnd + 1);
2154
- g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
2156
+ g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = B.Right;
2155
2157
  } else if (n3 === s.Direction.Right) {
2156
2158
  g3 = K2.getRowOffset(i3.rowEnd + 1) - a3.y;
2157
2159
  const e4 = K2.getColOffset(i3.colEnd), t4 = K2.getColOffset(i3.colEnd + 1);
2158
- c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
2160
+ c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = B.Bottom;
2159
2161
  } else if (n3 === s.Direction.Up) {
2160
2162
  c3 = K2.getColOffset(i3.colEnd + 1) - a3.x;
2161
2163
  const e4 = K2.getRowOffset(i3.rowStart), t4 = K2.getRowOffset(i3.rowStart + 1);
2162
- g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
2164
+ g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = B.Right;
2163
2165
  } else if (n3 === s.Direction.Left) {
2164
2166
  g3 = K2.getRowOffset(i3.rowEnd + 1) - a3.y;
2165
2167
  const e4 = K2.getColOffset(i3.colStart), t4 = K2.getColOffset(i3.colStart + 1);
2166
- c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
2168
+ c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = B.Bottom;
2167
2169
  }
2168
2170
  f2({ anchor: { x: c3, y: g3 }, display: r3, placement: u3 });
2169
2171
  } catch (e4) {
2170
- j2?.showError?.(e4);
2172
+ Z2?.showError?.(e4);
2171
2173
  }
2172
2174
  }
2173
2175
  }, onFillDone: () => {
2174
2176
  k2.current = null, x2.setMode(null), w2?.();
2175
2177
  } }), te2 = S((e3) => {
2176
- ee2(C.createSyntheticEvent(e3));
2177
- }, [ee2, I2]);
2178
- ae(() => {
2178
+ Q2(C.createSyntheticEvent(e3));
2179
+ }, [Q2, E2]);
2180
+ se(() => {
2179
2181
  const e3 = o2?.getStage();
2180
2182
  if (e3) return e3.addEventListener("pointerdown", te2), () => {
2181
2183
  e3.removeEventListener("pointerdown", te2);
2182
2184
  };
2183
2185
  }, [o2?.getStage()]);
2184
- const oe2 = b(t2, () => ({}), []), re2 = ie(null);
2185
- return Z("div", { className: Ae(l2, "sheet-selection", Qt), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Re([oe2, re2]), ...m2, children: J2(o2) });
2186
- })), ao = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), so = { fireOnModelChange: false }, co = oe(re((e2, t2) => {
2187
- const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, v2] = le(ao), [q2, y2] = le(null), [C2, b2] = le(false), S2 = ie(null);
2188
- se(() => {
2186
+ const oe2 = b(t2, () => ({}), []), ne2 = ae(null);
2187
+ return j("div", { className: ze(l2, "sheet-selection", eo), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Me([oe2, ne2]), ...m2, children: J2(o2) });
2188
+ })), so = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), co = { fireOnModelChange: false }, go = ne(ie((e2, t2) => {
2189
+ const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, v2] = re(so), [q2, y2] = re(null), [C2, b2] = re(false), S2 = ae(null);
2190
+ de(() => {
2189
2191
  if (l2.isClosed()) return;
2190
2192
  const e3 = l2.getBounds();
2191
2193
  if (!e3) return;
2192
2194
  const t3 = n2.toViewBounds(e3);
2193
- v2(t3 ?? ao), g2(t3 ?? ao);
2194
- }, [n2?.getBounds()]), St(l2, { onBoundsChange: (e3) => {
2195
+ v2(t3 ?? so), g2(t3 ?? so);
2196
+ }, [n2?.getBounds()]), xt(l2, { onBoundsChange: (e3) => {
2195
2197
  const t3 = e3.getBounds();
2196
2198
  if (!t3) return;
2197
2199
  const o3 = n2.toViewBounds(t3);
2198
- v2(o3 ?? ao), g2(o3);
2200
+ v2(o3 ?? so), g2(o3);
2199
2201
  }, onSelectionChange: () => {
2200
- const e3 = X.hasFocus(S2.current, true);
2202
+ const e3 = Y.hasFocus(S2.current, true);
2201
2203
  !C2 && !e3 || l2.isSelected() || d2();
2202
- } }), St(l2, { onRequestFocus: () => X.whenFocus(S2.current, true) }, so), ae(() => {
2204
+ } }), xt(l2, { onRequestFocus: () => Y.whenFocus(S2.current, true) }, co), se(() => {
2203
2205
  const e3 = S2.current;
2204
2206
  return r2(e3), () => {
2205
2207
  i2(e3);
2206
2208
  };
2207
2209
  }, []);
2208
- const x2 = ne(() => {
2210
+ const x2 = le(() => {
2209
2211
  if (!w2) return null;
2210
2212
  let { width: e3, height: t3 } = w2;
2211
2213
  return p2({ view: n2, movable: l2, disabled: m2, isDragging: c2, style: { position: "relative", left: 0, top: 0, width: e3, height: t3 }, onHide: a2, onShow: s2 });
2212
2214
  }, [n2, l2, w2.width, w2.height, m2, c2]);
2213
- return Z("div", { className: "movable", tabIndex: 0, ref: Re([S2, t2]), style: { display: "flex", alignItems: "stretch", justifyContent: "stretch", position: "absolute", maxWidth: "auto", maxHeight: "auto", minWidth: "auto", minHeight: "auto", left: w2.x, top: w2.y, width: w2.width, height: w2.height, ...h2 }, onMouseDown: async (e3) => {
2215
+ return j("div", { className: "movable", tabIndex: 0, ref: Me([S2, t2]), style: { display: "flex", alignItems: "stretch", justifyContent: "stretch", position: "absolute", maxWidth: "auto", maxHeight: "auto", minWidth: "auto", minHeight: "auto", left: w2.x, top: w2.y, width: w2.width, height: w2.height, ...h2 }, onMouseDown: async (e3) => {
2214
2216
  const t3 = e3.shiftKey || e3.ctrlKey, o3 = l2.isSelected(), n3 = e3.currentTarget;
2215
2217
  t3 && o3 ? l2.unselect() : (o3 && !t3 || await l2.select({ addToSelection: t3 }), u2(e3.nativeEvent, n3), n3.focus());
2216
2218
  }, onFocus: (e3) => {
@@ -2218,12 +2220,12 @@ const Ot = (e2, t2, o2 = null) => {
2218
2220
  }, onBlur: (e3) => {
2219
2221
  q2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
2220
2222
  }, ...f2, children: x2 });
2221
- })), go = "_movable-area_314c6_5", uo = oe(re((e2, t2) => {
2222
- const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, v2 = o2.getBounds(), q2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, T2] = le([]), [R2, M2] = le(false), [A2, z2] = le(false), F2 = ie(true), D2 = ie(/* @__PURE__ */ new Map()), E2 = ie(/* @__PURE__ */ new Map()), I2 = ie(/* @__PURE__ */ new Map()), N2 = ie(/* @__PURE__ */ new Map()), H2 = ie(/* @__PURE__ */ new Map()), P2 = ie({ onRequestFocus: (e3) => (ce2(e3), null) }), V2 = ie(null), L2 = ie(null), B2 = ie(null), [O2, $2] = ue((e3) => e3 + 1, 0);
2223
- se(() => {
2223
+ })), uo = "_movable-area_314c6_5", ho = ne(ie((e2, t2) => {
2224
+ const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, v2 = o2.getBounds(), q2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, T2] = re([]), [R2, M2] = re(false), [A2, z2] = re(false), F2 = ae(true), D2 = ae(/* @__PURE__ */ new Map()), I2 = ae(/* @__PURE__ */ new Map()), E2 = ae(/* @__PURE__ */ new Map()), H2 = ae(/* @__PURE__ */ new Map()), N2 = ae(/* @__PURE__ */ new Map()), P2 = ae({ onRequestFocus: (e3) => (ie2(e3), null) }), V2 = ae(null), L2 = ae(null), B2 = ae(null), [O2, $2] = he((e3) => e3 + 1, 0);
2225
+ de(() => {
2224
2226
  $2();
2225
- }, [o2, n2]), St(n2, { onCollectionChange: () => {
2226
- const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true }), t3 = H2.current;
2227
+ }, [o2, n2]), xt(n2, { onCollectionChange: () => {
2228
+ const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true }), t3 = N2.current;
2227
2229
  t3.forEach((e4) => {
2228
2230
  e4();
2229
2231
  }), t3.clear();
@@ -2237,42 +2239,42 @@ const Ot = (e2, t2, o2 = null) => {
2237
2239
  $2();
2238
2240
  }, onInvalidated: () => {
2239
2241
  $2();
2240
- } }), St(l2, { onMovableSelectionChange(e3) {
2242
+ } }), xt(l2, { onMovableSelectionChange(e3) {
2241
2243
  U2(), $2();
2242
2244
  } });
2243
- const W2 = de((e3, t3) => {
2244
- const o3 = I2.current.get(e3);
2245
+ const W2 = ce((e3, t3) => {
2246
+ const o3 = E2.current.get(e3);
2245
2247
  B2.current && (B2.current.getTargets().forEach((e4) => {
2246
2248
  if (e4 === o3) return e4.style.left = t3.x + "px", e4.style.top = t3.y + "px", e4.style.width = t3.width + "px", void (e4.style.height = t3.height + "px");
2247
2249
  }), B2.current.updateRect());
2248
2250
  }, []), U2 = () => {
2249
2251
  const e3 = [], t3 = l2.getMovableSelection();
2250
2252
  t3.forEach((o3) => {
2251
- const n3 = I2.current.get(o3);
2253
+ const n3 = E2.current.get(o3);
2252
2254
  if (!n3) return;
2253
2255
  -1 !== t3.indexOf(o3) && e3.push(n3);
2254
- }), T2((t4) => X.isEqualArrays(t4, e3) ? t4 : e3);
2255
- }, _2 = ie(null), G2 = ie(null), K2 = ne(() => (G2.current || (G2.current = new Promise((e3) => {
2256
+ }), T2((t4) => Y.isEqualArrays(t4, e3) ? t4 : e3);
2257
+ }, _2 = ae(null), G2 = ae(null), Z2 = le(() => (G2.current || (G2.current = new Promise((e3) => {
2256
2258
  _2.current = e3;
2257
- })), G2.current), []), Y2 = ie(null), J2 = S(async (e3, t3) => {
2258
- Y2.current = t3;
2259
- await (async () => !(!await K2.then() || !B2.current))() && Y2.current === t3 && B2.current.dragStart(e3, t3);
2260
- }, [k2]), [Q2, ee2] = le(false), oe2 = ie(null), re2 = ie(null), ce2 = S(async (e3 = null) => {
2259
+ })), G2.current), []), X2 = ae(null), J2 = S(async (e3, t3) => {
2260
+ X2.current = t3;
2261
+ await (async () => !(!await Z2.then() || !B2.current))() && X2.current === t3 && B2.current.dragStart(e3, t3);
2262
+ }, [k2]), [Q2, ee2] = re(false), te2 = ae(null), ne2 = ae(null), ie2 = S(async (e3 = null) => {
2261
2263
  if (e3 || (e3 = l2.getMovableSelection()[0]), !e3) return y2?.(), false;
2262
- const t3 = I2.current.get(e3);
2263
- t3 ? (await X.whenFocus(t3), t3.focus(), re2.current = t3, oe2.current = null) : oe2.current = e3;
2264
+ const t3 = E2.current.get(e3);
2265
+ t3 ? (await Y.whenFocus(t3), t3.focus(), ne2.current = t3, te2.current = null) : te2.current = e3;
2264
2266
  }, [l2]);
2265
- ae(() => {
2266
- Q2 && k2.length > 0 && re2.current !== k2[0] && ce2(), F2.current && (q2?.(), F2.current = false);
2267
+ se(() => {
2268
+ Q2 && k2.length > 0 && ne2.current !== k2[0] && ie2(), F2.current && (q2?.(), F2.current = false);
2267
2269
  }, [k2]);
2268
- const ge2 = ne(() => {
2270
+ const ge2 = le(() => {
2269
2271
  const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true });
2270
2272
  if (0 === e3.length && 0 === D2.current.size) return null;
2271
2273
  const t3 = (t4, n3, l3, i4 = true) => {
2272
2274
  const a4 = t4.isSelected(), s4 = { tabIndex: l3, view: o2, movable: t4, onRefLoad: (e4) => {
2273
- oe2.current === t4 && (e4.focus(), re2.current = e4, oe2.current = null), I2.current.set(t4, e4), E2.current.set(e4, t4), n3.rendered = true, U2();
2275
+ te2.current === t4 && (e4.focus(), ne2.current = e4, te2.current = null), E2.current.set(t4, e4), I2.current.set(e4, t4), n3.rendered = true, U2();
2274
2276
  }, onRefUnload: (e4) => {
2275
- I2.current.delete(t4), E2.current.delete(e4), n3.rendered = false, U2();
2277
+ E2.current.delete(t4), I2.current.delete(e4), n3.rendered = false, U2();
2276
2278
  }, onUnFocus: y2, onHide: (e4) => {
2277
2279
  n3.onHide = e4;
2278
2280
  }, onShow: (e4) => {
@@ -2280,15 +2282,15 @@ const Ot = (e2, t2, o2 = null) => {
2280
2282
  }, isDragging: a4 && (A2 || R2), disabled: d2, renderMovable: r2, updateFrameBounds: (e4) => {
2281
2283
  W2(t4, e4);
2282
2284
  }, dragStart: J2, onMouseUp: () => {
2283
- if (Y2.current = null, L2.current) {
2285
+ if (X2.current = null, L2.current) {
2284
2286
  M2(false), z2(false);
2285
2287
  let e4 = false;
2286
- N2.current?.forEach((t5) => {
2287
- X.isEqualBounds(t5.movable.getBounds(), t5.startBounds) || (e4 = true);
2288
+ H2.current?.forEach((t5) => {
2289
+ Y.isEqualBounds(t5.movable.getBounds(), t5.startBounds) || (e4 = true);
2288
2290
  }), e4 ? pe2() : fe2();
2289
2291
  }
2290
2292
  }, style: { opacity: i4 ? R2 && a4 ? 0.7 : void 0 : 0, zIndex: R2 && a4 ? t4.getZIndex() + e3.length : void 0, pointerEvents: i4 ? void 0 : "none", cursor: A2 && a4 ? "grabbing" : d2 || c2 ? "initial" : "move", boxShadow: !a4 || A2 && !R2 ? void 0 : "1px 1px 2px 2px rgba(0,0,0,.15)" } };
2291
- return Z(co, { ...s4 }, `movable-${t4.getUUID()}`);
2293
+ return j(go, { ...s4 }, `movable-${t4.getUUID()}`);
2292
2294
  }, i3 = D2.current, a3 = /* @__PURE__ */ new Map(), s3 = [];
2293
2295
  for (let o3 = 0; o3 < e3.length; o3++) {
2294
2296
  const n3 = e3[o3];
@@ -2316,31 +2318,31 @@ const Ot = (e2, t2, o2 = null) => {
2316
2318
  }), i3.forEach((e4, o3) => {
2317
2319
  e4.frame = t3(o3, e4, -1, false), g3.push(e4.frame), e4.doHide(o3, e4), i3.delete(o3), a3.set(o3, e4);
2318
2320
  }), D2.current = a3, U2(), [...g3, ...s3];
2319
- }, [O2, o2, r2, d2, c2, g2, R2, A2]), me2 = S((e3, t3) => {
2320
- const n3 = `${t3} ${1 === k2.length ? w.capitalize(E2.current?.get(k2[0]).getContent().getType()) : "Drawings"}`;
2321
- L2.current && (console.warn(`Transaction ${L2.current.getDescription()} is being replaced by ${n3}`), L2.current.rollback(), L2.current = null), L2.current = i2.beginCommit({ description: n3 }), N2.current.clear();
2321
+ }, [O2, o2, r2, d2, c2, g2, R2, A2]), ue2 = S((e3, t3) => {
2322
+ const n3 = `${t3} ${1 === k2.length ? w.capitalize(I2.current?.get(k2[0]).getContent().getType()) : "Drawings"}`;
2323
+ L2.current && (console.warn(`Transaction ${L2.current.getDescription()} is being replaced by ${n3}`), L2.current.rollback(), L2.current = null), L2.current = i2.beginCommit({ description: n3 }), H2.current.clear();
2322
2324
  for (let e4 = 0; e4 < k2.length; e4++) {
2323
- const t4 = k2[e4], n4 = E2.current?.get(t4);
2324
- n4 ? N2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
2325
+ const t4 = k2[e4], n4 = I2.current?.get(t4);
2326
+ n4 ? H2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
2325
2327
  }
2326
- }, [i2, o2, k2]), pe2 = de(() => {
2328
+ }, [i2, o2, k2]), pe2 = ce(() => {
2327
2329
  if (!L2.current) return;
2328
2330
  const e3 = [];
2329
- N2.current?.forEach((t3) => {
2331
+ H2.current?.forEach((t3) => {
2330
2332
  e3.push(t3.movable);
2331
- }), L2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }), N2.current.clear(), L2.current = null;
2332
- }, []), fe2 = de(() => {
2333
+ }), L2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }), H2.current.clear(), L2.current = null;
2334
+ }, []), fe2 = ce(() => {
2333
2335
  L2.current && (L2.current.rollback(), L2.current = null);
2334
- }, []), we2 = ie(null);
2335
- ae(() => {
2336
+ }, []), we2 = ae(null);
2337
+ se(() => {
2336
2338
  we2.current && (we2.current.onscroll = (e3) => {
2337
2339
  e3.preventDefault(), e3.srcElement.scrollTop = 0, e3.srcElement.scrollLeft = 0;
2338
2340
  });
2339
2341
  }, [we2.current]);
2340
- const ve2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ce2, focus: () => {
2341
- ce2();
2342
- } }), [l2]), [qe2, ye2] = le(null), Ce2 = ie(false), be2 = ie(false), Se2 = ie(false);
2343
- ae(() => {
2342
+ const ve2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ie2, focus: () => {
2343
+ ie2();
2344
+ } }), [l2]), [qe2, ye2] = re(null), Ce2 = ae(false), be2 = ae(false), Se2 = ae(false);
2345
+ se(() => {
2344
2346
  if (d2 || 0 === k2.length) return;
2345
2347
  if (Se2.current) return;
2346
2348
  if (Ce2.current) return;
@@ -2348,9 +2350,9 @@ const Ot = (e2, t2, o2 = null) => {
2348
2350
  B2.current && V2.current && B2.current.refTargets.length > 0 && (Se2.current = true, _2.current?.(true)), T2([...k2]);
2349
2351
  });
2350
2352
  Ce2.current = true;
2351
- const e3 = te.lazy(async () => {
2353
+ const e3 = oe.lazy(async () => {
2352
2354
  try {
2353
- const e4 = await import("./BaxwbShUvlIREQtz.mjs");
2355
+ const e4 = await import("./D96A0N9E9hY-6V5B.mjs");
2354
2356
  return Ce2.current = false, be2.current = true, T2([...k2]), e4;
2355
2357
  } catch (e4) {
2356
2358
  return console.warn(e4), _2.current?.(false), null;
@@ -2358,15 +2360,15 @@ const Ot = (e2, t2, o2 = null) => {
2358
2360
  });
2359
2361
  ye2(e3);
2360
2362
  }, [k2, d2, c2, g2]);
2361
- const xe2 = ne(() => !qe2 || d2 ? null : Z(he, { children: Z(qe2, { className: Ae({ dragging: R2 || A2, resizing: R2, moving: A2 }), container: null, ref: B2, target: B2.current ? k2 : [], draggable: !d2 && !c2, resizable: !d2 && !g2, individualGroupable: true, edgeDraggable: false, throttleDrag: 2, throttleResize: 2, origin: false, keepRatio: false, renderDirections: m2, onResizeStart: (e3) => {
2362
- me2(e3.target, "Resize");
2363
+ const xe2 = le(() => !qe2 || d2 ? null : j(me, { children: j(qe2, { className: ze({ dragging: R2 || A2, resizing: R2, moving: A2 }), container: null, ref: B2, target: B2.current ? k2 : [], draggable: !d2 && !c2, resizable: !d2 && !g2, individualGroupable: true, edgeDraggable: false, throttleDrag: 2, throttleResize: 2, origin: false, keepRatio: false, renderDirections: m2, onResizeStart: (e3) => {
2364
+ ue2(e3.target, "Resize");
2363
2365
  }, onResize: (e3) => {
2364
2366
  if (!L2.current) return e3.stopDrag(), void $2();
2365
2367
  M2(true);
2366
2368
  const t3 = 0 !== e3.direction[0] && 0 !== e3.direction[1];
2367
2369
  let n3 = 0, l3 = 0;
2368
2370
  for (let r3 = 0; r3 < k2.length; r3++) {
2369
- const i3 = k2[r3], a3 = N2.current.get(i3), s3 = E2.current.get(i3);
2371
+ const i3 = k2[r3], a3 = H2.current.get(i3), s3 = I2.current.get(i3);
2370
2372
  if (!a3 || !s3) {
2371
2373
  console.warn("invalid element");
2372
2374
  continue;
@@ -2383,18 +2385,18 @@ const Ot = (e2, t2, o2 = null) => {
2383
2385
  }, onResizeEnd: (e3) => {
2384
2386
  M2(false), pe2();
2385
2387
  }, onDragStart: (e3) => {
2386
- me2(e3.target, "Move");
2388
+ ue2(e3.target, "Move");
2387
2389
  }, onDrag: (e3) => {
2388
2390
  if (!L2.current) return e3.stopDrag(), void $2();
2389
2391
  z2(true);
2390
2392
  for (let t3 = 0; t3 < k2.length; t3++) {
2391
- const n3 = k2[t3], l3 = N2.current.get(n3);
2393
+ const n3 = k2[t3], l3 = H2.current.get(n3);
2392
2394
  l3 ? l3.movable.setBounds(o2.toAbsoluteBounds({ ...l3.startBounds, x: l3.startBounds.x + e3.translate[0], y: l3.startBounds.y + e3.translate[1] })) : console.warn("invalid element");
2393
2395
  }
2394
2396
  }, onDragEnd: (e3) => {
2395
2397
  }, onMouseUp: (e3) => {
2396
2398
  } }) }), [O2, qe2, k2, o2, d2, c2, g2, R2, A2]);
2397
- return Z("div", { className: Ae(u2, "movable-area", go), style: { width: v2.width, height: v2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: Re([ve2, we2]), ...f2, children: Z("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: v2.width, height: v2.height }, ...f2, children: j("div", { ref: V2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
2399
+ return j("div", { className: ze(u2, "movable-area", uo), style: { width: v2.width, height: v2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: Me([ve2, we2]), ...f2, children: j("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: v2.width, height: v2.height }, ...f2, children: K("div", { ref: V2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
2398
2400
  C2?.(), ee2(true);
2399
2401
  }, onBlur: (e3) => {
2400
2402
  ee2(false);
@@ -2406,7 +2408,7 @@ const Ot = (e2, t2, o2 = null) => {
2406
2408
  let o4 = [...t4];
2407
2409
  return k2.forEach((e4) => {
2408
2410
  if (0 === o4.length) return;
2409
- const t5 = E2.current.get(e4);
2411
+ const t5 = I2.current.get(e4);
2410
2412
  let n3 = o4.indexOf(t5);
2411
2413
  o4.splice(n3, 1);
2412
2414
  }), o4.length !== t4.length && l2.selectMovables(o4), 0 === o4.length && y2?.(), void e3.preventDefault();
@@ -2439,14 +2441,14 @@ const Ot = (e2, t2, o2 = null) => {
2439
2441
  l2.selectMovables(n2.getItems(), true), l2.selectMovables(t4, true), e3.preventDefault();
2440
2442
  } else "ArrowLeft" === e3.key ? (r3 ? s3(i3, false) : o3 ? a3(-10) : d3({ x: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowRight" === e3.key ? (r3 ? s3(i3, true) : o3 ? a3(10) : d3({ x: t3 ? 10 : 1 }), e3.preventDefault()) : "ArrowUp" === e3.key ? (r3 ? s3(i3, true) : d3({ y: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowDown" === e3.key && (r3 ? s3(i3, false) : d3({ y: t3 ? 10 : 1 }), e3.preventDefault());
2441
2443
  }, children: [ge2, xe2] }) }) });
2442
- })), ho = (e2) => {
2444
+ })), mo = (e2) => {
2443
2445
  let t2 = Number.MAX_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER, n2 = 0, l2 = 0;
2444
2446
  for (let r2 = 0; r2 < e2.length; r2++) {
2445
2447
  const i2 = e2[r2].getBounds();
2446
2448
  t2 = Math.min(i2.x, t2), o2 = Math.min(i2.y, o2), n2 = Math.max(i2.x + i2.width, n2), l2 = Math.max(i2.y + i2.height, l2);
2447
2449
  }
2448
2450
  return { x: t2, y: o2, width: n2 - t2, height: l2 - o2 };
2449
- }, mo = (e2, t2 = true) => {
2451
+ }, po = (e2, t2 = true) => {
2450
2452
  const o2 = [], n2 = t2 ? "x" : "y", l2 = t2 ? "y" : "x", r2 = t2 ? "width" : "height";
2451
2453
  let i2 = 0, a2 = Number.MAX_SAFE_INTEGER, s2 = 0;
2452
2454
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -2465,9 +2467,9 @@ const Ot = (e2, t2, o2 = null) => {
2465
2467
  l3[n2] = t3[n2] + t3[r2] + d2, o2[e3].bounds = l3, c2.set(o2[e3].movable, l3);
2466
2468
  }
2467
2469
  return c2.set(o2[o2.length - 1].movable, o2[o2.length - 1].bounds), c2;
2468
- }, po = (e2) => {
2469
- const { movables: t2, movablesView: o2, transactional: n2, commands: l2, target: r2, onRepeatCommandChange: i2 } = e2, a2 = F(), s2 = D();
2470
- ie(s2.getMode()).current = s2.getMode();
2470
+ }, fo = (e2) => {
2471
+ const { movables: t2, movablesView: o2, transactional: n2, commands: l2, target: r2, onRepeatCommandChange: i2 } = e2, a2 = F(), s2 = I();
2472
+ ae(s2.getMode()).current = s2.getMode();
2471
2473
  const d2 = S(async (e3, t3, o3 = null, n3 = true) => {
2472
2474
  const l3 = async () => {
2473
2475
  const d3 = await Promise.resolve(a2?.showBusy?.(e3.label()));
@@ -2484,7 +2486,7 @@ const Ot = (e2, t2, o2 = null) => {
2484
2486
  }
2485
2487
  };
2486
2488
  await l3();
2487
- }, [i2, a2]), [c2, g2] = ue((e3) => e3 + 1, 0), u2 = S((e3, t3, l3) => {
2489
+ }, [i2, a2]), [c2, g2] = he((e3) => e3 + 1, 0), u2 = S((e3, t3, l3) => {
2488
2490
  if (!o2) return;
2489
2491
  const r3 = o2.getMovableSelection();
2490
2492
  if (0 === r3.length) return;
@@ -2506,7 +2508,7 @@ const Ot = (e2, t2, o2 = null) => {
2506
2508
  }
2507
2509
  e4?.commit();
2508
2510
  });
2509
- }, [o2, n2]), [h2, m2] = le(o2.getMovableSelection()[0] ?? null), [p2, f2] = le(!h2 || h2?.isProtected()), q2 = ne(() => [new T("moveToFront", r2, { label: "Bring to Front", description: "Move to the front of all of the other drawings.", icon: "DrawToFront", shortcut: { key: "BracketRight", modifiers: [R.Ctrl, R.Shift] } }, function() {
2511
+ }, [o2, n2]), [h2, m2] = re(o2.getMovableSelection()[0] ?? null), [p2, f2] = re(!h2 || h2?.isProtected()), q2 = le(() => [new T("moveToFront", r2, { label: "Bring to Front", description: "Move to the front of all of the other drawings.", icon: "DrawToFront", shortcut: { key: "BracketRight", modifiers: [R.Ctrl, R.Shift] } }, function() {
2510
2512
  u2(this, (e3) => {
2511
2513
  e3.moveToFront();
2512
2514
  });
@@ -2541,53 +2543,53 @@ const Ot = (e2, t2, o2 = null) => {
2541
2543
  }), new T("formatDrawAlignLeft", r2, { label: "Align Left", description: "Align the selected drawings to the left.", icon: "DrawAlignLeft" }, function() {
2542
2544
  u2(this, (e3, t3) => {
2543
2545
  e3.setBounds({ x: t3.x });
2544
- }, ho);
2546
+ }, mo);
2545
2547
  }), new T("formatDrawAlignCenter", r2, { label: "Align Center", description: "Align the selected drawings vertically relative to each other.", icon: "DrawAlignCenter" }, function() {
2546
2548
  u2(this, (e3, t3) => {
2547
2549
  e3.setBounds({ x: (t3.width - e3.getBounds().width) / 2 + t3.x });
2548
- }, ho);
2550
+ }, mo);
2549
2551
  }), new T("formatDrawAlignRight", r2, { label: "Align Right", description: "Align the selected drawings to the right.", icon: "DrawAlignRight" }, function() {
2550
2552
  u2(this, (e3, t3) => {
2551
2553
  e3.setBounds({ x: t3.width - e3.getBounds().width + t3.x });
2552
- }, ho);
2554
+ }, mo);
2553
2555
  }), new T("formatDrawAlignTop", r2, { label: "Align Top", description: "Align the selected drawings to the top.", icon: "DrawAlignTop" }, function() {
2554
2556
  u2(this, (e3, t3) => {
2555
2557
  e3.setBounds({ y: t3.y });
2556
- }, ho);
2558
+ }, mo);
2557
2559
  }), new T("formatDrawAlignMiddle", r2, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other.", icon: "DrawAlignMiddle" }, function() {
2558
2560
  u2(this, (e3, t3) => {
2559
2561
  e3.setBounds({ y: (t3.height - e3.getBounds().height) / 2 + t3.y });
2560
- }, ho);
2562
+ }, mo);
2561
2563
  }), new T("formatDrawAlignBottom", r2, { label: "Align Bottom", description: "Align the selected drawings to the bottom.", icon: "DrawAlignBottom" }, function() {
2562
2564
  u2(this, (e3, t3) => {
2563
2565
  e3.setBounds({ y: t3.height - e3.getBounds().height + t3.y });
2564
- }, ho);
2566
+ }, mo);
2565
2567
  }), new T("formatDrawDistributeHorz", r2, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each.", icon: "DrawDistributeHorz" }, function() {
2566
2568
  u2(this, (e3, t3) => {
2567
2569
  e3.setBounds(t3.get(e3));
2568
- }, (e3) => mo(e3));
2570
+ }, (e3) => po(e3));
2569
2571
  }), new T("formatDrawDistributeVert", r2, { label: "Distribute Vertically", description: "Distribute the selected drawings vertically with equal spacing between each.", icon: "DrawDistributeVert" }, function() {
2570
2572
  u2(this, (e3, t3) => {
2571
2573
  e3.setBounds(t3.get(e3));
2572
- }, (e3) => mo(e3, false));
2574
+ }, (e3) => po(e3, false));
2573
2575
  }), new T("formatDrawFlipHorz", r2, { label: "Flip Horizontally", description: "Flip the selected drawings horizontally." }), new T("formatDrawFlipVert", r2, { label: "Flip Vertically", description: "Flip the selected drawings vertically." }), new T("formatDrawGroup", r2, { label: "Group", description: "Group the selected drawings into a single drawing.", icon: "DrawGroup" }), new T("formatDrawUngroup", r2, { label: "Ungroup", description: "Break the group of a drawing into individual drawings.", icon: "DrawUngroup" }), new T("formatDrawSwapShapes", r2, { label: "Swap Shapes", description: "Swap the positions of the swap." }), new T("formatDrawSwapShapesHorz", r2, { label: "Swap Shapes Horizontally", description: "Swap the positions of the swap horizontally." }), new T("formatDrawSwapShapesVert", r2, { label: "Swap Shapes Vertically", description: "Swap the positions of the swap vertically." })], [o2, h2]);
2574
- ae(() => {
2576
+ se(() => {
2575
2577
  }, [s2]);
2576
- const y2 = ne(() => {
2578
+ const y2 = le(() => {
2577
2579
  let e3 = null;
2578
2580
  return e3 = l2 ? l2.createChildGroup(r2, "movable", false) : new M(r2, "movable"), e3.addCommands(q2, true), e3;
2579
2581
  }, [l2, q2]);
2580
- return St(h2, { onAnyChange: () => {
2582
+ return xt(h2, { onAnyChange: () => {
2581
2583
  y2.getCommand("formatAnchorTypeTwoCell").update({ state: h2?.getAnchorType() === v.Type.TwoCell }), y2.getCommand("formatAnchorTypeOneCell").update({ state: h2?.getAnchorType() === v.Type.OneCell }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === v.Type.Absolute }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === v.Type.Absolute }), y2.getCommand("toggleLockAspectRatio").update({ state: h2?.isLockAspectRatio() });
2582
2584
  }, onProtectedChange: (e3) => {
2583
2585
  f2(e3.isProtected());
2584
2586
  }, onDelete: () => {
2585
- } }), St(o2, { onMovableSelectionChange: () => {
2587
+ } }), xt(o2, { onMovableSelectionChange: () => {
2586
2588
  const e3 = o2.getMovableSelection()[0] ?? null;
2587
2589
  m2(e3), f2(!e3 || e3.isProtected()), g2();
2588
- } }), St(t2, { onCollectionChange: () => {
2590
+ } }), xt(t2, { onCollectionChange: () => {
2589
2591
  g2();
2590
- } }), ae(() => {
2592
+ } }), se(() => {
2591
2593
  const e3 = { disabled: p2 };
2592
2594
  y2.getCommand("formatAnchorTypeTwoCell").update(e3), y2.getCommand("formatAnchorTypeOneCell").update(e3), y2.getCommand("formatAnchorTypeAbsolute").update(e3), y2.getCommand("toggleLockAspectRatio").update(e3);
2593
2595
  const n3 = t2.getCount(), l3 = o2.getMovableSelection(), r3 = p2 || n3 <= 1 || 0 === l3.length;
@@ -2602,29 +2604,29 @@ const Ot = (e2, t2, o2 = null) => {
2602
2604
  const d3 = { disabled: p2 || l3.length <= 2 };
2603
2605
  y2.getCommand("formatDrawDistributeHorz").update(d3), y2.getCommand("formatDrawDistributeVert").update(d3);
2604
2606
  }, [c2, p2, c2]), y2;
2605
- }, fo = oe(re((e2, t2) => {
2607
+ }, wo = ne(ie((e2, t2) => {
2606
2608
  const { children: o2, disabled: n2, description: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
2607
- ae(() => {
2609
+ se(() => {
2608
2610
  }, [l2]);
2609
- const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
2610
- return Z("div", { ...d2, ref: Re([c2, g2]), children: Z("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: r2.getZoom(), display: "flex", position: "relative", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: Z("div", { style: { textAlign: "center" }, children: l2 }) }) });
2611
- })), wo = oe(re((e2, t2) => {
2612
- const { view: o2, sheet: n2, movableProps: l2, renderMovable: r2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = po({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
2613
- ae(() => {
2611
+ const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] = Ae();
2612
+ return j("div", { ...d2, ref: Me([c2, g2]), children: j("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: r2.getZoom(), display: "flex", position: "relative", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: j("div", { style: { textAlign: "center" }, children: l2 }) }) });
2613
+ })), vo = ne(ie((e2, t2) => {
2614
+ const { view: o2, sheet: n2, movableProps: l2, renderMovable: r2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = fo({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
2615
+ se(() => {
2614
2616
  o2?.getStage();
2615
2617
  }, [o2?.getStage()]);
2616
- const c2 = ne(() => Z(uo, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: r2, ...l2, onFocus: () => {
2618
+ const c2 = le(() => j(ho, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: r2, ...l2, onFocus: () => {
2617
2619
  d2.activate(), l2?.onFocus?.();
2618
2620
  } }, "movable-area"), [n2, l2, i2, d2]);
2619
2621
  return c2 && o2 ? c2 : null;
2620
- })), vo = oe(re((e2, t2) => {
2621
- const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = D(), [g2, u2] = le(null), [h2, m2] = le(null), [p2, f2] = le(null), [v2, q2] = le(null), [y2, C2] = le(null);
2622
- se(() => {
2622
+ })), qo = ne(ie((e2, t2) => {
2623
+ const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = I(), [g2, u2] = re(null), [h2, m2] = re(null), [p2, f2] = re(null), [v2, q2] = re(null), [y2, C2] = re(null);
2624
+ de(() => {
2623
2625
  if (null === p2) return q2(null), void C2(null);
2624
2626
  const e3 = () => {
2625
2627
  const e4 = n2.getRange(p2).getCell(), t3 = e4.getStyle();
2626
2628
  let o3, r3 = t3.getFill()?.toCSS(l2.body.darkMode);
2627
- "none" !== r3.background && "transparent" !== r3.background || (r3 = n2.getStyles().getNormal().getFill().toCSS(l2.body.darkMode)), "none" !== r3.background && "transparent" !== r3.background || (r3 = { background: l2.body.fill }), q2({ style: r3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? B.Left);
2629
+ "none" !== r3.background && "transparent" !== r3.background || (r3 = n2.getStyles().getNormal().getFill().toCSS(l2.body.darkMode)), "none" !== r3.background && "transparent" !== r3.background || (r3 = { background: l2.body.fill }), q2({ style: r3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? O.Left);
2628
2630
  };
2629
2631
  return e3(), n2.getRange(p2).addListener(() => {
2630
2632
  e3();
@@ -2638,27 +2640,27 @@ const Ot = (e2, t2, o2 = null) => {
2638
2640
  const o3 = h2.sheet.getRange(h2.coords), n3 = `Typing '${t3}' into ${o3.toString()}`;
2639
2641
  return o3.setValue(e3, { description: n3, autoFit: true }), f2(null), m2(null), c2.setMode(null), a2(null), true;
2640
2642
  } catch (e4) {
2641
- throw ee.error(new Error(`Unable to enter '${t3}'.`, { cause: e4 })), e4;
2643
+ throw te.error(new Error(`Unable to enter '${t3}'.`, { cause: e4 })), e4;
2642
2644
  }
2643
2645
  }
2644
- }, [n2, h2]), x2 = S((e3) => n2.getRange(e3).getCell().getExtrusions() ?? Q.cellToRange(e3), [n2]), k2 = S((e3) => {
2646
+ }, [n2, h2]), x2 = S((e3) => n2.getRange(e3).getCell().getExtrusions() ?? ee.cellToRange(e3), [n2]), k2 = S((e3) => {
2645
2647
  let t3 = s.Orientation.Row, o3 = false;
2646
2648
  e3 !== s.Direction.Up && e3 !== s.Direction.Down || (t3 = s.Orientation.Column), e3 !== s.Direction.Left && e3 !== s.Direction.Up || (o3 = true), n2.getSelection().traverse(t3, o3);
2647
- }, [n2]), T2 = de((e3, t3) => {
2649
+ }, [n2]), T2 = ce((e3, t3) => {
2648
2650
  if (r2) return r2(e3, t3);
2649
2651
  if (!n2) return null;
2650
2652
  const { ref: o3, ...i3 } = e3;
2651
- return Z(it, { ref: o3, ...i3, sheet: n2, bodyStyle: l2?.body, activeCoords: t3, commands: d2, onChangeEdit: (e4) => {
2653
+ return j(at, { ref: o3, ...i3, sheet: n2, bodyStyle: l2?.body, activeCoords: t3, commands: d2, onChangeEdit: (e4) => {
2652
2654
  const o4 = { sheet: n2, coords: t3, editState: e4 };
2653
2655
  c2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
2654
2656
  }, editState: h2.editState });
2655
- }, [n2, v2, r2, h2, p2]), { overlay: R2, startEdit: M2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: F2, onPointerEventNative: E2 } = xe({ view: o2, activeCoords: g2, getCellEditor: T2, canEdit: () => {
2657
+ }, [n2, v2, r2, h2, p2]), { overlay: R2, startEdit: M2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: F2, onPointerEventNative: D2 } = ke({ view: o2, activeCoords: g2, getCellEditor: T2, canEdit: () => {
2656
2658
  const e3 = n2.getProtection();
2657
2659
  if (e3.isReadOnly()) return false;
2658
2660
  const t3 = e3.isLocked();
2659
2661
  return t3 && i2(), !t3;
2660
2662
  }, onBeforeStartEdit: (e3) => {
2661
- const t3 = at(() => n2.getRange(e3).getCell()), o3 = { sheet: n2, coords: e3, editState: Object.freeze(t3) };
2663
+ const t3 = st(() => n2.getRange(e3).getCell()), o3 = { sheet: n2, coords: e3, editState: Object.freeze(t3) };
2662
2664
  c2.setMode({ key: "edit", args: { stateAndCoords: o3 } }), m2(o3);
2663
2665
  }, onStartEdit: (e3) => {
2664
2666
  f2(e3), a2(e3);
@@ -2667,27 +2669,27 @@ const Ot = (e2, t2, o2 = null) => {
2667
2669
  }, onDoneEdit: (e3) => {
2668
2670
  c2.setMode(null);
2669
2671
  }, onNavigate: k2, containerProps: v2, borderStrokeFill: l2.selection?.strokeFill, borderStrokeWidth: n2?.getSelection().getCoords().ranges?.length > 1 ? 1 : 2, alignment: y2, getRangeCoords: x2 });
2670
- St(n2.getSelection(), { onChange(e3) {
2672
+ xt(n2.getSelection(), { onChange(e3) {
2671
2673
  u2(n2.getSelection().getCoords().cell);
2672
2674
  } });
2673
- const I2 = S((e3) => {
2674
- E2(e3), p2 && A2();
2675
- }, [E2, z2, p2]), N2 = de((e3) => {
2676
- E2(e3);
2677
- }, [E2]), H2 = de((e3) => {
2675
+ const E2 = S((e3) => {
2676
+ D2(e3), p2 && A2();
2677
+ }, [D2, z2, p2]), H2 = ce((e3) => {
2678
+ D2(e3);
2679
+ }, [D2]), N2 = ce((e3) => {
2678
2680
  F2(e3);
2679
2681
  }, [F2]);
2680
- return ae(() => {
2682
+ return se(() => {
2681
2683
  const e3 = o2?.getStage();
2682
- if (e3) return e3.addEventListener("pointerdown", I2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", H2), () => {
2683
- e3.removeEventListener("pointerdown", I2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", H2);
2684
+ if (e3) return e3.addEventListener("pointerdown", E2), e3.addEventListener("dblclick", H2), e3.addEventListener("keydown", N2), () => {
2685
+ e3.removeEventListener("pointerdown", E2), e3.removeEventListener("dblclick", H2), e3.removeEventListener("keydown", N2);
2684
2686
  };
2685
- }, [o2?.getStage()]), ae(() => {
2687
+ }, [o2?.getStage()]), se(() => {
2686
2688
  const e3 = c2.getMode(), t3 = e3?.key;
2687
2689
  "edit" === t3 || "enter" === t3 ? h2 ? e3.args?.cancel ? z2() : e3.args?.submit ? A2() : m2(e3.args?.stateAndCoords) : M2(e3.args?.start) : p2 && z2();
2688
2690
  }, [c2]), R2(o2, t2);
2689
- })), qo = "white", yo = "black", Co = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, bo = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, So = oe(re((e2, t2) => {
2690
- const { view: o2, sheet: n2 } = e2, [l2, r2] = te.useState(n2.getTables().getCount() > 0), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), [c2, g2] = te.useState(null), [u2, h2] = te.useState(null), m2 = S(() => {
2691
+ })), yo = "white", Co = "black", bo = `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='${Co}' fill='${yo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, So = `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='${Co}' fill='${yo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, xo = ne(ie((e2, t2) => {
2692
+ const { view: o2, sheet: n2 } = e2, [l2, r2] = oe.useState(n2.getTables().getCount() > 0), [i2, a2] = oe.useState(null), [s2, d2] = oe.useState(null), [c2, g2] = oe.useState(null), [u2, h2] = oe.useState(null), m2 = S(() => {
2691
2693
  if (n2.getTables().getCount() > 0) {
2692
2694
  r2(true);
2693
2695
  const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
@@ -2711,21 +2713,21 @@ const Ot = (e2, t2, o2 = null) => {
2711
2713
  const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
2712
2714
  a2(e3.length > 0 ? e3 : null);
2713
2715
  }, [n2, l2, o2]);
2714
- St(n2?.getSelection(), { onChange(e3) {
2716
+ xt(n2?.getSelection(), { onChange(e3) {
2715
2717
  d2(n2.getSelection().getCoords().cell);
2716
- } }), St(c2, { onAnyChange(e3) {
2718
+ } }), xt(c2, { onAnyChange(e3) {
2717
2719
  m2(), w2();
2718
- } }), St(u2, { onAnyChange(e3) {
2720
+ } }), xt(u2, { onAnyChange(e3) {
2719
2721
  w2();
2720
- } }), St(n2, { onTablesChange(e3) {
2722
+ } }), xt(n2, { onTablesChange(e3) {
2721
2723
  m2(), w2();
2722
2724
  }, onInvalidated(e3) {
2723
2725
  m2(), w2();
2724
2726
  } });
2725
- const v2 = te.useMemo(() => X.debounce(X.throttle(w2, 300), 300), []);
2726
- ae(() => {
2727
+ const v2 = oe.useMemo(() => Y.debounce(Y.throttle(w2, 300), 300), []);
2728
+ se(() => {
2727
2729
  v2();
2728
- }, [o2]), ae(() => {
2730
+ }, [o2]), se(() => {
2729
2731
  let e3 = null;
2730
2732
  if (i2) for (let t3 = 0; t3 < i2.length && !e3; t3++) {
2731
2733
  const o3 = i2[t3], n3 = o3.getRange().getCoords();
@@ -2746,7 +2748,7 @@ const Ot = (e2, t2, o2 = null) => {
2746
2748
  }
2747
2749
  h2(t3);
2748
2750
  }, [o2, i2]);
2749
- if (ae(() => {
2751
+ if (se(() => {
2750
2752
  const e3 = o2?.getStage();
2751
2753
  if (e3 && i2) return e3.addEventListener("mousemove", y2), e3.addEventListener("mouseleave", y2), () => {
2752
2754
  e3.removeEventListener("mousemove", y2), e3.removeEventListener("mouseleave", y2);
@@ -2767,23 +2769,23 @@ const Ot = (e2, t2, o2 = null) => {
2767
2769
  }
2768
2770
  d3 || (d3 = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
2769
2771
  }
2770
- C2.push(Z("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor: Co }, onMouseDown: f2 }, `table-select-row-${t3.getName()}`)), C2.push(Z("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: Math.min(16, s3.height), pointerEvents: "all", cursor: bo }, onMouseDown: p2 }, `table-select-${t3.getName()}`)), C2.push(Z(ke, { x: s3.x, y: s3.y, width: s3.width, height: s3.height, range: a3, strokeWidth: r3 ? 0.5 : 0, stroke: d3 ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: l3 ? `${d3} 0px 0px 1px 1px` : void 0 } }, `table-outline-${t3.getName()}`));
2772
+ C2.push(j("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor: bo }, onMouseDown: f2 }, `table-select-row-${t3.getName()}`)), C2.push(j("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: Math.min(16, s3.height), pointerEvents: "all", cursor: So }, onMouseDown: p2 }, `table-select-${t3.getName()}`)), C2.push(j(Te, { x: s3.x, y: s3.y, width: s3.width, height: s3.height, range: a3, strokeWidth: r3 ? 0.5 : 0, stroke: d3 ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: l3 ? `${d3} 0px 0px 1px 1px` : void 0 } }, `table-outline-${t3.getName()}`));
2771
2773
  }
2772
2774
  return C2;
2773
- })), xo = oe(re((t2, o2) => {
2774
- const { view: n2, sheet: l2, animationTime: r2 = 60 } = t2, [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useRef(null), g2 = S(() => {
2775
+ })), ko = ne(ie((t2, o2) => {
2776
+ const { view: n2, sheet: l2, animationTime: r2 = 60 } = t2, [i2, a2] = oe.useState(null), [s2, d2] = oe.useState(null), c2 = oe.useRef(null), g2 = S(() => {
2775
2777
  const e2 = l2.getSelectedCell(), t3 = e2.getSpill()?.getCoords() ?? null;
2776
- Q.isEqualRanges(t3, i2) || (d2(t3 ? { transition: i2 ? "move" : "in", bounds: n2.getRangeCoordsBounds(t3), coords: t3 } : { transition: "out", bounds: n2.getRangeCoordsBounds(i2), coords: i2 }), a2(t3));
2778
+ ee.isEqualRanges(t3, i2) || (d2(t3 ? { transition: i2 ? "move" : "in", bounds: n2.getRangeCoordsBounds(t3), coords: t3 } : { transition: "out", bounds: n2.getRangeCoordsBounds(i2), coords: i2 }), a2(t3));
2777
2779
  }, [l2, n2, i2]);
2778
- te.useEffect(() => (c2.current && (clearTimeout(c2.current), c2.current = null), s2 && (c2.current = setTimeout(() => {
2780
+ oe.useEffect(() => (c2.current && (clearTimeout(c2.current), c2.current = null), s2 && (c2.current = setTimeout(() => {
2779
2781
  d2(null), c2.current = null;
2780
2782
  }, r2)), () => {
2781
2783
  c2.current && (clearTimeout(c2.current), c2.current = null);
2782
2784
  }), [s2, r2]);
2783
- const u2 = te.useMemo(() => X.debounce(X.throttle(g2, 80), 80), []);
2784
- if (St(l2?.getSelection(), { onChange(e2) {
2785
+ const u2 = oe.useMemo(() => Y.debounce(Y.throttle(g2, 80), 80), []);
2786
+ if (xt(l2?.getSelection(), { onChange(e2) {
2785
2787
  u2();
2786
- } }), St(l2, { onSpillsChange(e2) {
2788
+ } }), xt(l2, { onSpillsChange(e2) {
2787
2789
  g2();
2788
2790
  }, onInvalidated(e2) {
2789
2791
  g2();
@@ -2791,37 +2793,37 @@ const Ot = (e2, t2, o2 = null) => {
2791
2793
  if (!i2 && !s2) return null;
2792
2794
  const h2 = l2.getRange(i2).getValue() instanceof e.Spill, m2 = [];
2793
2795
  let p2 = s2?.bounds ?? n2.getRangeCoordsBounds(i2);
2794
- if (s2 && !X.isEqualBounds(s2.bounds, n2.getRangeCoordsBounds(s2.coords)) && d2(null), p2 = n2.toClipBounds(p2, -10), !p2) return;
2796
+ if (s2 && !Y.isEqualBounds(s2.bounds, n2.getRangeCoordsBounds(s2.coords)) && d2(null), p2 = n2.toClipBounds(p2, -10), !p2) return;
2795
2797
  const f2 = "var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";
2796
- return m2.push(Z(ke, { x: p2.x, y: p2.y, width: p2.width, height: p2.height, range: i2, strokeWidth: 1, stroke: f2, style: { willChange: "transform, opacity, width, height, opacity, left, top", strokeDasharray: h2 ? "6 3" : void 0, opacity: "out" === s2?.transition ? 0 : 1, transition: s2?.transition ? "in" === s2.transition || "out" === s2.transition ? `opacity ${1.5 * r2}ms ease-in-out` : `left ${r2}ms ease-out, top ${r2}ms ease-out, width ${r2}ms ease-out, height ${r2}ms ease-out` : "none", boxShadow: `${f2} 0px 0px 4px 0px` } }, "spill-outline}")), m2;
2797
- })), ko = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, To = (e2, t2) => {
2798
- const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = X.mergeContentful(e2.body, r2);
2799
- return o2.body = X.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = X.mergeContentful({ fill: "#fff", text: { fill: "black" }, edgeStrokeFill: "black" }, o2.buttonSurface), o2.selection = { fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#217346", strokeWidth: 2, ...e2.selection }, o2.selectionInactive = { ...o2.selection, fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#dad8d6", ...e2.selectionInactive }, o2.selectionRemove = { ...o2.selection, fill: "rgba(200, 0, 0, 0.1)", strokeFill: "rgba(200, 0, 0, 1)", ...e2.selectionRemove }, o2.headerSelection = { ...o2.selection, ...e2.headerSelection }, o2.headerSelectionInactive = { ...o2.selectionInactive, ...e2.headerSelectionInactive }, o2.header = X.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = X.mergeContentful(o2.header, r2), o2.headerSelect = X.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = X.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = X.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = X.mergeContentful(o2.headerSelectAll, r2), o2;
2800
- }, Ro = { fireOnModelChange: false }, Mo = {}, Ao = oe(re((e2, t2) => {
2801
- const { sheet: o2, gridStyle: n2 = Mo, headersStyle: l2 = Mo, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: v2, onMoveCell: q2, overlays: y2, renderMovable: k2, viewportComponent: T2, onElementLoad: R2, getCellEditor: M2, onFocus: A2, onBlur: z2, style: E2 = C.EmptyCssProperties, onShowTooltip: N2, onShowColumnTooltip: H2, onShowRowTooltip: P2, onCloseTooltip: L2, gridProps: B2, cellRenderProps: $2, ...W2 } = e2;
2802
- if (te.useEffect(() => {
2798
+ return m2.push(j(Te, { x: p2.x, y: p2.y, width: p2.width, height: p2.height, range: i2, strokeWidth: 1, stroke: f2, style: { willChange: "transform, opacity, width, height, opacity, left, top", strokeDasharray: h2 ? "6 3" : void 0, opacity: "out" === s2?.transition ? 0 : 1, transition: s2?.transition ? "in" === s2.transition || "out" === s2.transition ? `opacity ${1.5 * r2}ms ease-in-out` : `left ${r2}ms ease-out, top ${r2}ms ease-out, width ${r2}ms ease-out, height ${r2}ms ease-out` : "none", boxShadow: `${f2} 0px 0px 4px 0px` } }, "spill-outline}")), m2;
2799
+ })), To = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, Ro = (e2, t2) => {
2800
+ const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = Y.mergeContentful(e2.body, r2);
2801
+ return o2.body = Y.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = Y.mergeContentful({ fill: "#fff", text: { fill: "black" }, edgeStrokeFill: "black" }, o2.buttonSurface), o2.selection = { fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#217346", strokeWidth: 2, ...e2.selection }, o2.selectionInactive = { ...o2.selection, fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#dad8d6", ...e2.selectionInactive }, o2.selectionRemove = { ...o2.selection, fill: "rgba(200, 0, 0, 0.1)", strokeFill: "rgba(200, 0, 0, 1)", ...e2.selectionRemove }, o2.headerSelection = { ...o2.selection, ...e2.headerSelection }, o2.headerSelectionInactive = { ...o2.selectionInactive, ...e2.headerSelectionInactive }, o2.header = Y.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = Y.mergeContentful(o2.header, r2), o2.headerSelect = Y.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = Y.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = Y.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = Y.mergeContentful(o2.headerSelectAll, r2), o2;
2802
+ }, Mo = { fireOnModelChange: false }, Ao = {}, zo = ne(ie((e2, t2) => {
2803
+ const { sheet: o2, gridStyle: n2 = Ao, headersStyle: l2 = Ao, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: v2, onMoveCell: q2, overlays: y2, renderMovable: k2, viewportComponent: T2, onElementLoad: R2, getCellEditor: M2, onFocus: A2, onBlur: z2, style: D2 = C.EmptyCssProperties, onShowTooltip: E2, onShowColumnTooltip: N2, onShowRowTooltip: P2, onCloseTooltip: V2, gridProps: B2, cellRenderProps: O2, ...W2 } = e2;
2804
+ if (oe.useEffect(() => {
2803
2805
  d._validate(true);
2804
2806
  }, []), !o2) throw new Error("ISheet must be provided.");
2805
- const [U2, _2] = te.useReducer((e3) => e3 + 1, 0), [G2, { width: ee2, height: oe2 }] = Me(), re2 = S(N2, [N2]), ce2 = S(H2, [H2]), ge2 = S(P2, [P2]), ue2 = S(L2, [L2]), he2 = ie(false);
2806
- se(() => {
2807
+ const [U2, _2] = oe.useReducer((e3) => e3 + 1, 0), [G2, { width: Z2, height: te2 }] = Ae(), ne2 = S(E2, [E2]), ie2 = S(N2, [N2]), ge2 = S(P2, [P2]), ue2 = S(V2, [V2]), he2 = ae(false);
2808
+ de(() => {
2807
2809
  he2.current = true;
2808
2810
  }, [o2]);
2809
- const pe2 = o2?.getStyles(), fe2 = ne(() => To(n2, pe2), [n2, pe2]), we2 = ne(() => To(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: qe2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = ie(null), [ke2, Re2] = le(() => o2?.getView()), ze2 = (ke2?.getZoomScale() ?? 100) / 100, Fe2 = ne(() => ({ vertical: ke2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: ke2.isShowRowGridlines() && ze2 >= 0.4 }), [ke2?.isShowColumnGridlines(), ke2?.isShowRowGridlines(), ze2]), De2 = ne(() => {
2811
+ const me2 = o2?.getStyles(), fe2 = le(() => Ro(n2, me2), [n2, me2]), we2 = le(() => Ro(l2, me2), [l2, me2]), { body: ve2 = {}, buttonSurface: qe2 = {} } = fe2, { header: ye2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = ae(null), [ke2, Te2] = re(() => o2?.getView()), Me2 = (ke2?.getZoomScale() ?? 100) / 100, Fe2 = le(() => ({ vertical: ke2.isShowColumnGridlines() && Me2 >= 0.4, horizontal: ke2.isShowRowGridlines() && Me2 >= 0.4 }), [ke2?.isShowColumnGridlines(), ke2?.isShowRowGridlines(), Me2]), De2 = le(() => {
2810
2812
  if (ke2?.getGridLineColor()) return { strokeDasharray: "1,1" };
2811
- }, [ke2?.getGridLineColor(), fe2]), Ee2 = s2 ?? ke2?.isShowColumnHeaders(), Ie2 = g2 ?? ke2?.isShowRowHeaders(), [Ne2, He2] = le({ width: 0, height: 0 }), Pe2 = ne(() => {
2813
+ }, [ke2?.getGridLineColor(), fe2]), Ie2 = s2 ?? ke2?.isShowColumnHeaders(), Ee2 = g2 ?? ke2?.isShowRowHeaders(), [He2, Ne2] = re({ width: 0, height: 0 }), Pe2 = le(() => {
2812
2814
  let e3 = 40, t3 = 20;
2813
2815
  const n3 = o2?.getStyles().getNormal().getFont();
2814
- if (Ne2.width > 0 && Ne2.height > 0) {
2815
- const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily, l3 = n3?.getSize() ?? fe2.header.text.fontSize, r3 = a.getSharedMeasurer()("" + Ne2.height, Math.ceil(l3 * a.getDeviceScale()), o3);
2816
+ if (He2.width > 0 && He2.height > 0) {
2817
+ const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily, l3 = n3?.getSize() ?? fe2.header.text.fontSize, r3 = a.getSharedMeasurer()("" + He2.height, Math.ceil(l3 * a.getDeviceScale()), o3);
2816
2818
  e3 = r3.width, t3 = r3.lineHeight;
2817
2819
  }
2818
2820
  return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
2819
- }, [Ne2, fe2?.header.text, o2]), Ve2 = Ie2 ? ze2 * Pe2.width : Ce2.edgeStrokeWidth, Le2 = Ee2 ? ze2 * Pe2.height : Ce2.edgeStrokeWidth, Be2 = Math.max(ee2, (o2?.getColumnHeaders().getDefaultSize() ?? Pe2.width) + Ve2 + 1), Oe2 = Math.max(oe2, (o2?.getRowHeaders().getDefaultSize() ?? Pe2.height) + Le2 + 1), $e2 = ie(/* @__PURE__ */ new Map()), We2 = ie(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = le(() => Ue2()), [Ze2, je2] = le(false), [Ke2, Xe2] = le(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = de(() => jt2.current, []), [et2, tt2] = le(), nt2 = S((e3) => {
2821
+ }, [He2, fe2?.header.text, o2]), Ve2 = Ee2 ? Me2 * Pe2.width : ye2.edgeStrokeWidth, Le2 = Ie2 ? Me2 * Pe2.height : ye2.edgeStrokeWidth, Be2 = Math.max(Z2, (o2?.getColumnHeaders().getDefaultSize() ?? Pe2.width) + Ve2 + 1), Oe2 = Math.max(te2, (o2?.getRowHeaders().getDefaultSize() ?? Pe2.height) + Le2 + 1), $e2 = ae(/* @__PURE__ */ new Map()), We2 = ae(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = re(() => Ue2()), [Ze2, je2] = re(false), [Ke2, Xe2] = re(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ce(() => jt2.current, []), [et2, tt2] = re(), ot2 = S((e3) => {
2820
2822
  tt2(e3);
2821
2823
  const t3 = o2 ? o2.getView() : null;
2822
2824
  t3 && t3.setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
2823
- }, [o2, f2]), lt2 = ie(null);
2824
- ae(() => {
2825
+ }, [o2, f2]), lt2 = ae(null);
2826
+ se(() => {
2825
2827
  if (!et2 || !o2) return;
2826
2828
  const e3 = o2.getRangeAtBounds({ x: et2.left, y: et2.top, width: et2.width, height: et2.height });
2827
2829
  lt2.current?.(), lt2.current = e3.addListener(() => {
@@ -2829,69 +2831,69 @@ const Ot = (e2, t2, o2 = null) => {
2829
2831
  xe2?.current?.invalidate(t3);
2830
2832
  });
2831
2833
  }, [et2, o2]);
2832
- const [rt2, it2] = le(() => o2?.getView().getTopLeft()), at2 = S((e3) => {
2833
- const t3 = Q.cellToRange(e3);
2834
+ const [rt2, it2] = re(() => o2?.getView().getTopLeft()), at2 = S((e3) => {
2835
+ const t3 = ee.cellToRange(e3);
2834
2836
  if (o2.isClosed()) return t3;
2835
2837
  const n3 = o2.getRange(t3, { ignoreHidden: true }).getMerges();
2836
2838
  return 0 === n3.length ? t3 : n3[0];
2837
2839
  }, [o2]), st2 = (e3) => {
2838
2840
  if (!e3 || 0 === e3.coords.colIndex && 0 === e3.coords.rowIndex) return null;
2839
2841
  const t3 = {};
2840
- return e3.coords.colIndex > 0 && (t3[Y.Left] = { index: e3.coords.colIndex, scrollOffset: e3.topLeft.left }), e3.coords.rowIndex > 0 && (t3[Y.Top] = { index: e3.coords.rowIndex, scrollOffset: e3.topLeft.top }), t3;
2841
- }, [dt2, ct2] = le(() => st2(o2.getView().getFreezePanes())), gt2 = D(), ut2 = de(() => xe2.current, []), ht2 = S((e3) => {
2842
+ return e3.coords.colIndex > 0 && (t3[J.Left] = { index: e3.coords.colIndex, scrollOffset: e3.topLeft.left }), e3.coords.rowIndex > 0 && (t3[J.Top] = { index: e3.coords.rowIndex, scrollOffset: e3.topLeft.top }), t3;
2843
+ }, [dt2, ct2] = re(() => st2(o2.getView().getFreezePanes())), gt2 = I(), ut2 = ce(() => xe2.current, []), ht2 = S((e3) => {
2842
2844
  gt2.setMode((t3) => "edit" === t3?.key ? { ...t3, args: { ...t3.args } } : { key: "edit", args: { stateAndCoords: null, start: e3 } });
2843
- }, []), mt2 = S(() => et2, [et2]), pt2 = Vt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = le(o2.getSelection().isEntire()), [vt2, Ct2] = le(ke2?.getMovableSelection().length > 0), xt2 = null !== Ke2 || vt2, kt2 = null, [Tt2, Rt2] = le(false);
2844
- ae(() => {
2845
+ }, []), mt2 = S(() => et2, [et2]), pt2 = Lt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = re(o2.getSelection().isEntire()), [vt2, qt2] = re(ke2?.getMovableSelection().length > 0), bt2 = null !== Ke2 || vt2, kt2 = null, [Tt2, Rt2] = re(false);
2846
+ se(() => {
2845
2847
  Rt2(false);
2846
2848
  }, [o2.getProtection()]);
2847
2849
  const Mt2 = F(), At2 = S(() => {
2848
- Tt2 || (Rt2(true), Mt2.showMessage?.(j("span", { children: ["This sheet is protected.", Z("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: I.Error }));
2849
- }, [Mt2, Tt2]), zt2 = ne(() => {
2850
+ Tt2 || (Rt2(true), Mt2.showMessage?.(K("span", { children: ["This sheet is protected.", j("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: H.Error }));
2851
+ }, [Mt2, Tt2]), zt2 = le(() => {
2850
2852
  const e3 = gt2.getMode();
2851
2853
  return e3?.cursor ? e3.cursor : null;
2852
- }, [kt2, gt2]), [Ft2, Dt2] = le(null), Et2 = ie(false), [It2, Nt2] = le([]), Ht2 = ie(null), [Pt2, Lt2] = le(J.EmptyTopLeft), [Ot2, Ut2] = le(J.EmptyTopLeft);
2853
- ae(() => {
2854
- Lt2({ left: rt2?.left, top: 0 });
2855
- }, [rt2?.left]), ae(() => {
2856
- Ut2({ left: 0, top: rt2?.top });
2857
- }, [rt2?.top]), St(o2?.getView(), { onFreezeSplitChange: () => {
2854
+ }, [kt2, gt2]), [Ft2, Dt2] = re(null), It2 = ae(false), [Et2, Ht2] = re([]), Nt2 = ae(null), [Pt2, Vt2] = re(Q.EmptyTopLeft), [Bt2, $t2] = re(Q.EmptyTopLeft);
2855
+ se(() => {
2856
+ Vt2({ left: rt2?.left, top: 0 });
2857
+ }, [rt2?.left]), se(() => {
2858
+ $t2({ left: 0, top: rt2?.top });
2859
+ }, [rt2?.top]), xt(o2?.getView(), { onFreezeSplitChange: () => {
2858
2860
  ct2(st2(o2.getView().getFreezePanes()));
2859
2861
  }, onTopLeftChange: () => {
2860
2862
  it2(o2.getView().getTopLeft());
2861
2863
  }, onMovableSelectionChange: () => {
2862
- Ct2(o2.getView().getMovableSelection().length > 0);
2863
- } }), St(o2?.getSelection(), { onChange: () => {
2864
+ qt2(o2.getView().getMovableSelection().length > 0);
2865
+ } }), xt(o2?.getSelection(), { onChange: () => {
2864
2866
  wt2(o2.getSelection().isEntire());
2865
- } }), St(o2, { onViewChange() {
2866
- Re2(o2.getView()), Ge2(Ue2());
2867
+ } }), xt(o2, { onViewChange() {
2868
+ Te2(o2.getView()), Ge2(Ue2());
2867
2869
  }, onLayoutChange: () => {
2868
2870
  const e3 = o2.getEntireRange();
2869
- He2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
2871
+ Ne2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
2870
2872
  }, onStyleChange: () => {
2871
2873
  Kt2();
2872
2874
  }, onMovablesChange: () => {
2873
2875
  }, onInvalidated: () => {
2874
2876
  Kt2();
2875
- } }), St(o2, { onRequestScrollIntoView: async (e3, t3) => {
2877
+ } }), xt(o2, { onRequestScrollIntoView: async (e3, t3) => {
2876
2878
  if (!t3) return;
2877
2879
  const o3 = { colIndex: t3?.coords?.colStart, rowIndex: t3?.coords?.rowStart };
2878
2880
  return await xe2.current?.scrollCellCoordsIntoView(o3, t3?.scroll), true;
2879
- }, onRequestFocus: () => X.whenFocus(jt2.current) }, Ro);
2880
- const _t2 = ie(false), Gt2 = ne(() => {
2881
- const e3 = X.debounce((e4) => {
2881
+ }, onRequestFocus: () => Y.whenFocus(jt2.current) }, Mo);
2882
+ const _t2 = ae(false), Gt2 = le(() => {
2883
+ const e3 = Y.debounce((e4) => {
2882
2884
  requestAnimationFrame(() => {
2883
- Et2.current && ce2?.(e4);
2885
+ It2.current && ie2?.(e4);
2884
2886
  });
2885
2887
  }, 32), t3 = (t4, l4) => {
2886
- Et2.current = true, Dt2([(r3) => {
2887
- if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ne2.height, colStart: t4, colEnd: t4 }))) return;
2888
+ It2.current = true, Dt2([(r3) => {
2889
+ if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: 0, rowEnd: He2.height, colStart: t4, colEnd: t4 }))) return;
2888
2890
  const i2 = r3.getLayout(), a2 = Math.max(0, i2.getColOffset(t4)), s3 = r3.getBounds(), d2 = Math.min(s3.x + s3.width, i2.getColOffset(t4 + 1)), c3 = r3.getAnchor();
2889
- if (null !== l4 && (c3 === Y.Left || c3 === Y.Center || c3 === Y.Right)) {
2890
- const t5 = X.roundAccurately(l4 * X.getDPI(), 0), n3 = X.roundAccurately(o2?.getColumnWidthAsFontUnit(l4 / ze2), 2).toFixed(2), r4 = "Width: " + (l4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 = po2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - i3.y, g4 = 0 - i3.y + Le2, u4 = i3.x - s3.x;
2891
+ if (null !== l4 && (c3 === J.Left || c3 === J.Center || c3 === J.Right)) {
2892
+ const t5 = Y.roundAccurately(l4 * Y.getDPI(), 0), n3 = Y.roundAccurately(o2?.getColumnWidthAsFontUnit(l4 / Me2), 2).toFixed(2), r4 = "Width: " + (l4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 = po2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - i3.y, g4 = 0 - i3.y + Le2, u4 = i3.x - s3.x;
2891
2893
  e3({ anchor: { x: a2 - u4, y: c4, width: d2 - a2, height: g4 - c4 }, display: r4 });
2892
2894
  }
2893
2895
  const g3 = [0, 0, 0, s3.height], u3 = { style: { boxShadow: `0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, h3 = { x: a2 - 1, y: 0, width: 1, height: s3.height }, m2 = { style: { boxShadow: `-0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, p3 = { x: d2 - 1, y: 0, width: 1, height: s3.height };
2894
- return j(te.Fragment, { children: [Z(Te, { linePoints: g3, bounds: h3, ...u3 }), Z(Te, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
2896
+ return K(oe.Fragment, { children: [j(Re, { linePoints: g3, bounds: h3, ...u3 }), j(Re, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
2895
2897
  }]);
2896
2898
  };
2897
2899
  let l3 = null;
@@ -2904,25 +2906,25 @@ const Ot = (e2, t2, o2 = null) => {
2904
2906
  _t2.current && t3(e4, o3);
2905
2907
  }, 360);
2906
2908
  }, onResizeHeadersEnd: (e4, t4, o3) => {
2907
- l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
2909
+ l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2908
2910
  }, onResizeHeadersUp: (e4) => {
2909
- _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
2911
+ _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2910
2912
  }, ...c2 };
2911
- }, [o2, c2, Le2, Ft2]), Zt2 = ne(() => {
2912
- const e3 = X.debounce((e4) => {
2913
+ }, [o2, c2, Le2, Ft2]), Zt2 = le(() => {
2914
+ const e3 = Y.debounce((e4) => {
2913
2915
  requestAnimationFrame(() => {
2914
- Et2.current && ge2?.(e4);
2916
+ It2.current && ge2?.(e4);
2915
2917
  });
2916
2918
  }, 32), t3 = (t4, l4) => {
2917
- Et2.current = true, Dt2([(r3) => {
2918
- if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: Ne2.width }))) return;
2919
+ It2.current = true, Dt2([(r3) => {
2920
+ if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: He2.width }))) return;
2919
2921
  const i2 = r3.getLayout(), a2 = Math.max(0, i2.getRowOffset(t4)), s3 = r3.getBounds(), d2 = Math.min(s3.y + s3.height, i2.getRowOffset(t4 + 1)), c3 = r3.getAnchor();
2920
- if (null !== l4 && (c3 === Y.Top || c3 === Y.Center || c3 === Y.Bottom)) {
2921
- const t5 = Math.floor(10 * X.getDPI()) / 10, n3 = X.roundAccurately(l4 * t5, 0), r4 = X.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * X.getDPI()), 2).toFixed(2), i3 = "Height: " + (l4 ? r4 + " (" + n3 + " pixels)" : "Hidden"), c4 = ho2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + Ve2, h4 = c4.y - s3.y;
2922
+ if (null !== l4 && (c3 === J.Top || c3 === J.Center || c3 === J.Bottom)) {
2923
+ const t5 = Math.floor(10 * Y.getDPI()) / 10, n3 = Y.roundAccurately(l4 * t5, 0), r4 = Y.roundAccurately(n3 / Me2 / (o2?.getRowHeaders().getScaleFactor() * Y.getDPI()), 2).toFixed(2), i3 = "Height: " + (l4 ? r4 + " (" + n3 + " pixels)" : "Hidden"), c4 = ho2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + Ve2, h4 = c4.y - s3.y;
2922
2924
  e3({ anchor: { x: g4, y: a2 - h4, width: u4 - g4, height: d2 - a2 }, display: i3 });
2923
2925
  }
2924
2926
  const g3 = [0, 0, s3.width, 0], u3 = { style: { boxShadow: `0px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, h3 = { x: 0, y: a2 - 1, width: s3.width, height: 1 }, m2 = { style: { boxShadow: `0px -0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, p3 = { x: 0, y: d2 - 1, width: s3.width, height: 1 };
2925
- return j(te.Fragment, { children: [Z(Te, { linePoints: g3, bounds: h3, ...u3 }), Z(Te, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
2927
+ return K(oe.Fragment, { children: [j(Re, { linePoints: g3, bounds: h3, ...u3 }), j(Re, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
2926
2928
  }]);
2927
2929
  };
2928
2930
  let l3 = null;
@@ -2935,9 +2937,9 @@ const Ot = (e2, t2, o2 = null) => {
2935
2937
  _t2.current && t3(e4, o3);
2936
2938
  }, 360);
2937
2939
  }, onResizeHeadersEnd: (e4, t4, o3) => {
2938
- l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
2940
+ l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2939
2941
  }, onResizeHeadersUp: (e4) => {
2940
- _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
2942
+ _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2941
2943
  }, ...u2 };
2942
2944
  }, [o2, u2, Ve2]), jt2 = b(t2, () => {
2943
2945
  const e3 = (e4) => {
@@ -2960,18 +2962,18 @@ const Ot = (e2, t2, o2 = null) => {
2960
2962
  }, isEditing: null !== Ke2, focus: (n3) => {
2961
2963
  o2?.getView().getMovableSelection().length > 0 && t3() || e3(n3);
2962
2964
  }, focusSheet: e3, focusMovable: t3, contains: (e4) => xe2?.current?.contains?.(e4), invalidate: Kt2, isSheetElement: () => true, getSheet: () => o2 };
2963
- }, [o2]), Kt2 = de((e3) => {
2965
+ }, [o2]), Kt2 = ce((e3) => {
2964
2966
  he2.current || (xe2?.current?.invalidate(e3), _2?.());
2965
2967
  }, []);
2966
- ae(() => {
2968
+ se(() => {
2967
2969
  Kt2();
2968
2970
  }, [fe2]);
2969
- const Xt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Yt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = ne(() => T2 ? Z("div", { className: Ae("sheetxl-viewport-overlay", yt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: T2 }) : Z(K, {}), [T2]);
2971
+ const Xt2 = ft2 ? Se2.edgeStrokeFill : ye2.fill, Yt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(ye2)?.fill : ye2.fill, Jt2 = le(() => T2 ? j("div", { className: ze("sheetxl-viewport-overlay", Ct), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: T2 }) : j(X, {}), [T2]);
2970
2972
  let eo2 = null;
2971
- Ee2 && Ie2 && (eo2 = j("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
2973
+ Ie2 && Ee2 && (eo2 = K("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
2972
2974
  let t3 = !e3.ctrlKey;
2973
- pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === V.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : xe2.current?.focus();
2974
- }, children: [Z("div", { style: { height: Le2 - 5 + "px", width: Le2 - 5 + "px", clipPath: `path('M${Le2 - 5} 0 L0 ${Le2 - 5} L${Le2 - 5} ${Le2 - 5} L${Le2 - 5} 0 Z')`, borderRight: `2px solid ${Xt2}`, borderBottom: `2px solid ${Xt2}`, background: `${Yt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), Z("div", { style: { position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2975
+ pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === L.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : xe2.current?.focus();
2976
+ }, children: [j("div", { style: { height: Le2 - 5 + "px", width: Le2 - 5 + "px", clipPath: `path('M${Le2 - 5} 0 L0 ${Le2 - 5} L${Le2 - 5} ${Le2 - 5} L${Le2 - 5} 0 Z')`, borderRight: `2px solid ${Xt2}`, borderBottom: `2px solid ${Xt2}`, background: `${Yt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), j("div", { style: { position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, boxSizing: "border-box", borderRight: `solid 1px ${ye2.strokeFill}`, borderBottom: `solid 1px ${ye2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2975
2977
  const to2 = S(({ _left: e3, _top: t3 }) => {
2976
2978
  }, []), oo2 = S((e3) => {
2977
2979
  if (!r2) return;
@@ -2982,12 +2984,12 @@ const Ot = (e2, t2, o2 = null) => {
2982
2984
  const { deltaY: t3 } = e3;
2983
2985
  return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
2984
2986
  }, [pt2]);
2985
- ae(() => {
2986
- Nt2(null), Ht2.current = null, Et2.current = false, Dt2(null);
2987
+ se(() => {
2988
+ Ht2(null), Nt2.current = null, It2.current = false, Dt2(null);
2987
2989
  const e3 = o2?.getView().getTopLeft();
2988
- to2(e3), xe2.current?.scrollTo(e3), it2(e3), Re2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2990
+ to2(e3), xe2.current?.scrollTo(e3), it2(e3), Te2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2989
2991
  }, [o2?.getView()]);
2990
- const lo2 = de((e3, t3) => o2.getRowHeaders().hiddenHeadersAt(e3, t3), [o2]), ro2 = de((e3, t3) => o2.getColumnHeaders().hiddenHeadersAt(e3, t3), [o2]), ao2 = S((e3) => {
2992
+ const lo2 = ce((e3, t3) => o2.getRowHeaders().hiddenHeadersAt(e3, t3), [o2]), ro2 = ce((e3, t3) => o2.getColumnHeaders().hiddenHeadersAt(e3, t3), [o2]), io2 = S((e3) => {
2991
2993
  const t3 = e3.getVisibleRangeCoords();
2992
2994
  if (!t3) return null;
2993
2995
  const n3 = [];
@@ -3004,19 +3006,19 @@ const Ot = (e2, t2, o2 = null) => {
3004
3006
  })(l3) && n3.push({ coords: o3, value: l3, range: ke2.isShowFormulas() ? null : l3.getExtrusions() });
3005
3007
  }, { ignoreHidden: true, includeMergeOverflow: true }), n3;
3006
3008
  }, [o2, ke2.isShowZeros(), ke2.isShowFormulas(), Ke2]);
3007
- ae(() => {
3009
+ se(() => {
3008
3010
  const e3 = [];
3009
- y2 && e3.push(...y2), Ft2 && e3.push(...Ft2), X.isEqualArrays(e3, Ht2.current) || (Ht2.current = e3, Nt2(e3));
3011
+ y2 && e3.push(...y2), Ft2 && e3.push(...Ft2), Y.isEqualArrays(e3, Nt2.current) || (Nt2.current = e3, Ht2(e3));
3010
3012
  }, [y2, Ft2, fe2]);
3011
- const so2 = ne(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), co2 = S((e3) => {
3013
+ const so2 = le(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), co2 = S((e3) => {
3012
3014
  e3.isDefaultPrevented() || e3.isPropagationStopped() || (We2.current = null, o2?.getView().getMovableSelection().length > 0 && o2.getView().selectMovables([]));
3013
- }, [o2]), go2 = ne(() => {
3015
+ }, [o2]), go2 = le(() => {
3014
3016
  const e3 = gt2.getMode();
3015
3017
  return "cut" === e3?.key || "copy" === e3?.key;
3016
3018
  }, [gt2]), uo2 = S(async (e3) => {
3017
3019
  const t3 = gt2.getMode();
3018
3020
  return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && go2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
3019
- }, [pt2, gt2]), ho2 = ie(null), mo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Ve2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2" }, children: Z($t, { ref: ho2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Top], oppositeSize: Ve2, containerWidth: Ve2, containerHeight: Oe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Ot2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Ve2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2", ...Zt2?.style }, ...Zt2 }) }), [Ve2, Le2, Oe2, o2, Ot2, dt2?.[Y.Top], fe2, Ye2, r2, Ce2.fill, u2]), po2 = ie(null), fo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Le2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Le2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: Z($t, { ref: po2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Left], oppositeSize: Le2, containerWidth: Be2, containerHeight: Le2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Gt2, style: { ...Gt2?.style, position: "relative", left: "0px", width: "100%", height: `${Le2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Le2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Le2, Be2, o2, Pt2, dt2?.[Y.Left], fe2, Ce2.fill, Ye2, r2, c2]), qo2 = S((e3) => {
3021
+ }, [pt2, gt2]), ho2 = ae(null), mo2 = le(() => j("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + ye2.edgeStrokeWidth}px`, minWidth: `${Ve2 + ye2.edgeStrokeWidth}px`, borderRight: `solid ${ye2.edgeStrokeWidth}px ${ye2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2" }, children: j(Wt, { ref: ho2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[J.Top], oppositeSize: Ve2, containerWidth: Ve2, containerHeight: Oe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Bt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + ye2.edgeStrokeWidth}px`, minWidth: `${Ve2 + ye2.edgeStrokeWidth}px`, borderRight: `solid ${ye2.edgeStrokeWidth}px ${ye2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2", ...Zt2?.style }, ...Zt2 }) }), [Ve2, Le2, Oe2, o2, Bt2, dt2?.[J.Top], fe2, Ye2, r2, ye2.fill, u2]), po2 = ae(null), fo2 = le(() => j("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Le2 + ye2.edgeStrokeWidth}px`, minHeight: `${Le2 + ye2.edgeStrokeWidth}px`, borderBottom: `solid ${ye2.edgeStrokeWidth}px ${ye2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: j(Wt, { ref: po2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[J.Left], oppositeSize: Le2, containerWidth: Be2, containerHeight: Le2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Gt2, style: { ...Gt2?.style, position: "relative", left: "0px", width: "100%", height: `${Le2 + ye2.edgeStrokeWidth}px`, minHeight: `${Le2 + ye2.edgeStrokeWidth}px`, borderBottom: `solid ${ye2.edgeStrokeWidth}px ${ye2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Le2, Be2, o2, Pt2, dt2?.[J.Left], fe2, ye2.fill, Ye2, r2, c2]), wo2 = S((e3) => {
3020
3022
  const { value: t3, key: n3, ...l3 } = e3;
3021
3023
  let r3 = t3, i2 = Ke2;
3022
3024
  if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
@@ -3025,7 +3027,7 @@ const Ot = (e2, t2, o2 = null) => {
3025
3027
  }
3026
3028
  let a2 = null;
3027
3029
  r3.getHyperlink() && (a2 = async (e4) => {
3028
- if ($2?.onLinkMouseDown?.(e4), 0 === e4.button && !e4.isDefaultPrevented()) {
3030
+ if (O2?.onLinkMouseDown?.(e4), 0 === e4.button && !e4.isDefaultPrevented()) {
3029
3031
  e4.stopPropagation(), e4.preventDefault();
3030
3032
  try {
3031
3033
  await r3.getHyperlink()?.open();
@@ -3035,94 +3037,94 @@ const Ot = (e2, t2, o2 = null) => {
3035
3037
  }
3036
3038
  }), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (r3 = r3.createTemporaryCell({ value: null }));
3037
3039
  const s3 = o2.getStyles();
3038
- return me(ot, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: ke2.isShowFormulas(), showZeros: ke2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
3039
- }, [o2, _e2, ve2, Ke2, ke2?.isShowFormulas(), ke2.isShowZeros()]), yo2 = de((e3, t3) => {
3040
+ return pe(nt, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: ke2.isShowFormulas(), showZeros: ke2.isShowZeros(), onLinkMouseDown: a2, ...O2, value: r3 });
3041
+ }, [o2, _e2, ve2, Ke2, ke2?.isShowFormulas(), ke2.isShowZeros()]), yo2 = ce((e3, t3) => {
3040
3042
  const { key: n3, ...l3 } = e3;
3041
- return [Z(Wt, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), Z(So, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), Z(xo, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), Z(io, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: re2, onCloseTooltip: ue2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), Z(Jt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...l3 }, `copy-paste-${n3}`), Z(wo, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
3043
+ return [j(Ut, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), j(xo, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), j(ko, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), j(ao, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: ne2, onCloseTooltip: ue2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), j(Qt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...l3 }, `copy-paste-${n3}`), j(vo, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
3042
3044
  jt2.current.focus();
3043
- } }, ...l3 }, `movable-${n3}`), Z(vo, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: M2, showProtectedError: At2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
3044
- }, [o2, xe2.current, fe2, M2, pt2, Mt2]), [Co2, bo2] = le(false), Ao2 = ne(() => {
3045
+ } }, ...l3 }, `movable-${n3}`), j(qo, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: M2, showProtectedError: At2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
3046
+ }, [o2, xe2.current, fe2, M2, pt2, Mt2]), [Co2, bo2] = re(false), So2 = le(() => {
3045
3047
  if (0 === Be2 || 0 === Oe2) return null;
3046
3048
  const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
3047
3049
  let i2 = De2, a2 = De2;
3048
3050
  const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(ve2.darkMode).toString(), ...t4 } : t4;
3049
3051
  a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
3050
3052
  let d2 = ke2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
3051
- return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), Z(ye, { className: "sheetxl-sheet-primary", style: { ...ko, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, ze2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": qe2.fill, "--sxl-app-color-button-text": qe2.text?.fill, "--sxl-app-color-button-border": qe2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: xe2, zoom: ze2, ...B2, onFirstRender: (e4) => {
3053
+ return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), j(Ce, { className: "sheetxl-sheet-primary", style: { ...To, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, Me2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": qe2.fill, "--sxl-app-color-button-text": qe2.text?.fill, "--sxl-app-color-button-border": qe2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: xe2, zoom: Me2, ...B2, onFirstRender: (e4) => {
3052
3054
  bo2(true), B2?.onFirstRender?.(e4), pt2?.activate();
3053
- }, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[Y.Left], freezeLeftProps: so2, freezeTop: dt2?.[Y.Top], freezeTopProps: so2, width: Be2, height: Oe2, columnCount: Ne2.width, rowCount: Ne2.height, cursor: zt2 ?? kt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: qo2, overlayRenderer: yo2, getCellCoordsAsRangeCoords: at2, hiddenRowsAt: lo2, hiddenColumnsAt: ro2, getVisibleCells: ao2, onWheelScroll: no2, onPointerDown: co2, onKeyDown: uo2, onViewportChange: nt2, onImmediateScroll: to2, scrollPoint: rt2, stageProps: { onFocus: () => {
3055
+ }, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[J.Left], freezeLeftProps: so2, freezeTop: dt2?.[J.Top], freezeTopProps: so2, width: Be2, height: Oe2, columnCount: He2.width, rowCount: He2.height, cursor: zt2 ?? kt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: wo2, overlayRenderer: yo2, getCellCoordsAsRangeCoords: at2, hiddenRowsAt: lo2, hiddenColumnsAt: ro2, getVisibleCells: io2, onWheelScroll: no2, onPointerDown: co2, onKeyDown: uo2, onViewportChange: ot2, onImmediateScroll: to2, scrollPoint: rt2, stageProps: { onFocus: () => {
3054
3056
  pt2?.activate();
3055
- } }, overlays: It2 });
3057
+ } }, overlays: Et2 });
3056
3058
  }, [U2]);
3057
- ae(() => {
3059
+ se(() => {
3058
3060
  he2.current || _2();
3059
- }, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, B2, Be2, Oe2, zt2, It2, Ye2, kt2]);
3061
+ }, [_e2, dt2, Me2, pt2, rt2?.left, rt2?.top, ve2, B2, Be2, Oe2, zt2, Et2, Ye2, kt2]);
3060
3062
  let zo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
3061
- h2 || (zo2 = { ...zo2, ...E2 });
3062
- const Fo2 = ne(() => {
3063
+ h2 || (zo2 = { ...zo2, ...D2 });
3064
+ const Fo2 = le(() => {
3063
3065
  const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
3064
3066
  return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(ve2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(ve2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(ve2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(ve2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(ve2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(ve2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(ve2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(ve2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(ve2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(ve2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(ve2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(ve2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
3065
3067
  }, [o2.getStyles().getTheme()]), Do2 = S((e3) => {
3066
3068
  const { style: t3, ...n3 } = e3;
3067
- return Z(Bt, { ...n3, style: { paddingLeft: "4px", paddingRight: "4px", ...t3 }, sheet: o2 });
3069
+ return j(Ot, { ...n3, style: { paddingLeft: "4px", paddingRight: "4px", ...t3 }, sheet: o2 });
3068
3070
  }, [o2]);
3069
- let Eo2 = Z("div", { style: zo2, onTouchStart: () => {
3070
- Ho2();
3071
+ let Io2 = j("div", { style: zo2, onTouchStart: () => {
3072
+ No2();
3071
3073
  }, onFocus: (e3) => {
3072
3074
  je2(true), A2?.(e3);
3073
3075
  }, onBlur: (e3) => {
3074
3076
  je2(false), z2?.(e3);
3075
- }, ref: jt2, ...W2, children: Z("div", { className: Ae("sheetxl-sheet", qt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Fo2 }, children: j("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, mo2, j("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [fo2, j("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: G2, onContextMenu: oo2, children: [Ao2, Qt2, Z(bt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
3076
- h2 && (Eo2 = Z(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Pe2.height, minWidth: 2 * Pe2.width, ...E2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: xt2, onScrollViewport: (e3) => {
3077
+ }, ref: jt2, ...W2, children: j("div", { className: ze("sheetxl-sheet", yt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Fo2 }, children: K("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, mo2, K("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [fo2, K("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${ye2.edgeStrokeWidth}px ${ye2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: G2, onContextMenu: oo2, children: [So2, Jt2, j(St, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
3078
+ h2 && (Io2 = j($, { style: { flex: "1 1 100%", overflow: "hidden", background: `${ye2.fill}`, minHeight: 2 * Pe2.height, minWidth: 2 * Pe2.width, ...D2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: bt2, onScrollViewport: (e3) => {
3077
3079
  xe2.current?.scrollTo(e3);
3078
- }, createHorizontalScrollbar: Do2, createVerticalScrollbar: Do2, ...p2, children: Eo2 })), ae(() => {
3080
+ }, createHorizontalScrollbar: Do2, createVerticalScrollbar: Do2, ...p2, children: Io2 })), se(() => {
3079
3081
  he2.current = false, _2?.(), Ze2 && jt2.current?.focus();
3080
3082
  }, [o2]);
3081
- const [Io2, No2] = le(false), Ho2 = S(() => {
3082
- Io2 || No2(true);
3083
- }, [Io2]);
3084
- return ae(() => {
3085
- if (Co2) return "function" == typeof R2 && R2(), "touch" === C.detectIt().primaryInput && Ho2(), () => {
3083
+ const [Eo2, Ho2] = re(false), No2 = S(() => {
3084
+ Eo2 || Ho2(true);
3085
+ }, [Eo2]);
3086
+ return se(() => {
3087
+ if (Co2) return "function" == typeof R2 && R2(), "touch" === C.detectIt().primaryInput && No2(), () => {
3086
3088
  };
3087
- }, [R2, Co2, Io2]), Eo2;
3089
+ }, [R2, Co2, Eo2]), Io2;
3088
3090
  }));
3089
- Ao.displayName = "SheetElement";
3090
- const zo = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), Fo = "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=", Do = oe(re((e2, t2) => {
3091
- const { children: o2, disabled: n2, style: l2, picture: r2, description: i2, isDragging: a2, view: s2, onHide: d2, onShow: c2, onKeyDownCapture: g2, onFocus: u2, onBlur: h2, loadingPanel: m2, ...p2 } = e2, [f2, w2] = le(false), [v2, q2] = le(null), [y2, C2] = le(null), [S2, x2] = le(null);
3092
- ae(() => {
3091
+ zo.displayName = "SheetElement";
3092
+ const Fo = "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=", Do = ne(ie((e2, t2) => {
3093
+ const { children: o2, disabled: n2, style: l2, picture: r2, description: i2, isDragging: a2, view: s2, onHide: d2, onShow: c2, onKeyDownCapture: g2, onFocus: u2, onBlur: h2, loadingPanel: m2, ...p2 } = e2, [f2, w2] = re(false), [v2, q2] = re(null), [y2, C2] = re(null), [S2, x2] = re(null);
3094
+ se(() => {
3093
3095
  C2(null), r2.getDetails().then((e3) => {
3094
3096
  w2(false), C2(e3.asUrl()), e3.asSVGText?.() && x2(e3.asSVGText());
3095
3097
  }).catch((e3) => {
3096
3098
  console.warn(e3), w2(true), C2(Fo), x2(null);
3097
3099
  });
3098
3100
  }, [r2]);
3099
- const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), T2 = ne(() => {
3100
- if (y2 || S2) return Z("img", { style: { flex: "1", width: "100%", height: "100%", border: f2 ? "var(--sxl-app-color-grey, grey) solid 1px" : void 0, backgroundColor: f2 ? "var(--sxl-app-color-background, white)" : void 0, boxShadow: f2 ? "0px 0px 3px var(--sxl-app-color-error, red)" : void 0, objectFit: f2 ? "contain" : void 0, opacity: v2 ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: false, src: y2, onLoad: () => {
3101
+ const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), T2 = le(() => {
3102
+ if (y2 || S2) return j("img", { style: { flex: "1", width: "100%", height: "100%", border: f2 ? "var(--sxl-app-color-grey, grey) solid 1px" : void 0, backgroundColor: f2 ? "var(--sxl-app-color-background, white)" : void 0, boxShadow: f2 ? "0px 0px 3px var(--sxl-app-color-error, red)" : void 0, objectFit: f2 ? "contain" : void 0, opacity: v2 ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: false, src: y2, onLoad: () => {
3101
3103
  q2(true);
3102
3104
  }, onError: ({ currentTarget: e3 }) => {
3103
3105
  console.log("error"), e3.onerror = null, C2(Fo), w2(true);
3104
3106
  }, alt: i2 ?? `${r2.getType()}` });
3105
3107
  }, [v2, r2, y2, S2, a2]);
3106
- if (!r2.isClosed()) return j("div", { className: "picture-editor", style: { position: "relative", display: "flex", flex: "1 1 100%", filter: a2 ? "drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))" : void 0, ...l2, width: "100%", height: "100%" }, tabIndex: 0, ...p2, onKeyDownCapture: (e3) => {
3108
+ if (!r2.isClosed()) return K("div", { className: "picture-editor", style: { position: "relative", display: "flex", flex: "1 1 100%", filter: a2 ? "drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))" : void 0, ...l2, width: "100%", height: "100%" }, tabIndex: 0, ...p2, onKeyDownCapture: (e3) => {
3107
3109
  g2?.(e3);
3108
3110
  }, ref: k2, children: [v2 || f2 ? void 0 : m2, T2] });
3109
3111
  }));
3110
3112
  Do.displayName = "PictureEditor";
3111
- const Eo = oe(re((e2, t2) => {
3113
+ const Io = ne(ie((e2, t2) => {
3112
3114
  const { children: o2, disabled: n2, chart: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
3113
- ae(() => {
3115
+ se(() => {
3114
3116
  }, [l2]);
3115
- const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
3116
- if (!l2.isClosed()) return Z("div", { ...d2, ref: Re([c2, g2]), children: Z("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: r2.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: Z("div", { style: { textAlign: "center" }, children: l2.getDescription() }) }) });
3117
- })), Io = "_editable-input_1bqx6_6", No = (e2) => Z("input", { ...e2 }), Ho = oe(re((e2, t2) => {
3118
- const { style: o2 = {}, className: n2, value: l2 = "", onSubmit: r2, onChange: i2, onCancel: a2, createInput: s2 = No, styleHover: d2 = {}, dragging: c2, maxLength: g2, disabled: u2 = false, readOnly: h2 = false, ...m2 } = e2, [p2, f2] = le(false), [w2, v2] = le(false), [q2, y2] = le(l2);
3119
- ae(() => {
3117
+ const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] = Ae();
3118
+ if (!l2.isClosed()) return j("div", { ...d2, ref: Me([c2, g2]), children: j("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: r2.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: j("div", { style: { textAlign: "center" }, children: l2.getDescription() }) }) });
3119
+ })), Eo = "_editable-input_1bqx6_6", Ho = (e2) => j("input", { ...e2 }), No = ne(ie((e2, t2) => {
3120
+ const { style: o2 = {}, className: n2, value: l2 = "", onSubmit: r2, onChange: i2, onCancel: a2, createInput: s2 = Ho, styleHover: d2 = {}, dragging: c2, maxLength: g2, disabled: u2 = false, readOnly: h2 = false, ...m2 } = e2, [p2, f2] = re(false), [w2, v2] = re(false), [q2, y2] = re(l2);
3121
+ se(() => {
3120
3122
  y2(l2);
3121
3123
  }, [l2]);
3122
- const C2 = ie(null), [x2, k2] = le(null), T2 = F(), R2 = de(function(e3) {
3124
+ const C2 = ae(null), [x2, k2] = re(null), T2 = F(), R2 = ce(function(e3) {
3123
3125
  const t3 = e3.message;
3124
- x2 !== t3 && (T2?.showMessage?.(t3, { type: I.Error }), k2(t3));
3125
- }, [T2, x2]), M2 = de((e3) => {
3126
+ x2 !== t3 && (T2?.showMessage?.(t3, { type: H.Error }), k2(t3));
3127
+ }, [T2, x2]), M2 = ce((e3) => {
3126
3128
  let t3 = false;
3127
3129
  try {
3128
3130
  t3 = r2?.(e3) ?? true;
@@ -3134,9 +3136,9 @@ const Eo = oe(re((e2, t2) => {
3134
3136
  }, 0), t3);
3135
3137
  }, [r2]), A2 = S(() => {
3136
3138
  y2(l2), C2.current = null, v2(false), a2?.();
3137
- }, [a2, l2]), z2 = ne(() => {
3139
+ }, [a2, l2]), z2 = le(() => {
3138
3140
  if (!w2) return null;
3139
- const e3 = { className: Ae(Io), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: q2, onFocus: (e4) => {
3141
+ const e3 = { className: ze(Eo), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: q2, onFocus: (e4) => {
3140
3142
  C2.current || (C2.current = e4.target, setTimeout(() => {
3141
3143
  e4.target?.select();
3142
3144
  }, 0));
@@ -3145,46 +3147,46 @@ const Eo = oe(re((e2, t2) => {
3145
3147
  }, onChange: (e4) => {
3146
3148
  w2 && y2(e4.target.value);
3147
3149
  }, onMouseDown: (e4) => e4.stopPropagation(), onKeyDown: (e4) => "Escape" === e4.code ? (e4.preventDefault(), void A2()) : "Enter" === e4.code ? (e4.preventDefault(), void M2(e4.target.value)) : void ("Tab" !== e4.code ? e4.stopPropagation() : M2(e4.target.value)) };
3148
- return Z(K, { children: s2(e3) });
3149
- }, [w2, q2, M2, A2, s2, u2]), [D2, E2] = le();
3150
- se(() => {
3150
+ return j(X, { children: s2(e3) });
3151
+ }, [w2, q2, M2, A2, s2, u2]), [D2, I2] = re();
3152
+ de(() => {
3151
3153
  let e3 = Object.assign({}, o2);
3152
- (c2 || p2) && (e3 = Object.assign(e3, d2)), E2(e3);
3153
- }, [c2, p2, d2, o2]), ae(() => {
3154
+ (c2 || p2) && (e3 = Object.assign(e3, d2)), I2(e3);
3155
+ }, [c2, p2, d2, o2]), se(() => {
3154
3156
  z2 && i2?.(q2);
3155
3157
  }, [z2, i2, q2]);
3156
- const N2 = b(t2, () => ({ startEdit() {
3158
+ const E2 = b(t2, () => ({ startEdit() {
3157
3159
  u2 || h2 || v2(true);
3158
3160
  }, cancel() {
3159
3161
  A2();
3160
3162
  } }), []);
3161
- return j("div", { ...m2, ref: N2, style: { flexDirection: "column", display: "flex", ...D2 }, className: Ae(n2), children: [j("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
3163
+ return K("div", { ...m2, ref: E2, style: { flexDirection: "column", display: "flex", ...D2 }, className: ze(n2), children: [K("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
3162
3164
  u2 || h2 || v2(true);
3163
- }, onMouseEnter: () => f2(true), onMouseLeave: () => f2(false), children: [Z("div", { className: "editable-label-container", style: { textAlign: "center", display: "flex", minHeight: "1em", marginTop: "2px", opacity: w2 ? 0 : 1 }, children: q2 }), z2] }), Z("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...d2 }, children: q2 })] });
3164
- })), Po = oe(re((e2, t2) => {
3165
+ }, onMouseEnter: () => f2(true), onMouseLeave: () => f2(false), children: [j("div", { className: "editable-label-container", style: { textAlign: "center", display: "flex", minHeight: "1em", marginTop: "2px", opacity: w2 ? 0 : 1 }, children: q2 }), z2] }), j("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...d2 }, children: q2 })] });
3166
+ })), Po = ne(ie((e2, t2) => {
3165
3167
  const { children: o2, style: n2, className: l2, index: r2, editing: i2, editable: a2, selectedIndex: s2, background: d2, activeColor: c2, borderColor: g2, borderWidth: u2, dragging: h2, ...m2 } = e2;
3166
- return j("div", { ref: t2, className: Ae(l2), style: { ...n2, display: "flex", flexDirection: "column", background: s2 === r2 ? "white" : d2, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: s2 === r2 ? "700" : "400", lineHeight: "1", letterSpacing: "0px", textTransform: "none", minWidth: "unset" }, ...m2, children: [j("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [Z("div", { style: { marginLeft: s2 === r2 ? "0px" : "-1px", marginTop: s2 === r2 ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), o2, s2 === r2 ? Z("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : Z(K, {})] }), Z("div", { style: { flex: "1 1 100%", background: s2 === r2 && c2 ? c2?.toCSS() : "none", minHeight: "2px" } })] });
3167
- })), Vo = { 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" }, Lo = te.memo(te.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn: l2, handle: r2, height: i2, index: a2, listeners: s2, onRemove: d2, renderItem: c2, sorting: g2, style: u2, transition: h2, transform: m2, value: p2, wrapperStyle: f2, ...w2 }, v2) => {
3168
- ae(() => {
3168
+ return K("div", { ref: t2, className: ze(l2), style: { ...n2, display: "flex", flexDirection: "column", background: s2 === r2 ? "white" : d2, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: s2 === r2 ? "700" : "400", lineHeight: "1", letterSpacing: "0px", textTransform: "none", minWidth: "unset" }, ...m2, children: [K("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [j("div", { style: { marginLeft: s2 === r2 ? "0px" : "-1px", marginTop: s2 === r2 ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), o2, s2 === r2 ? j("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : j(X, {})] }), j("div", { style: { flex: "1 1 100%", background: s2 === r2 && c2 ? c2?.toCSS() : "none", minHeight: "2px" } })] });
3169
+ })), Vo = { 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" }, Lo = oe.memo(oe.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn: l2, handle: r2, height: i2, index: a2, listeners: s2, onRemove: d2, renderItem: c2, sorting: g2, style: u2, transition: h2, transform: m2, value: p2, wrapperStyle: f2, ...w2 }, v2) => {
3170
+ se(() => {
3169
3171
  if (t2) return document.body.style.cursor = "grabbing", () => {
3170
3172
  document.body.style.cursor = "";
3171
3173
  };
3172
3174
  }, [t2]);
3173
- const q2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: v2, style: u2, transform: m2, transition: h2, value: p2 }) : Z(K, { children: p2 });
3174
- return Z("div", { className: Ae("tab-item", Vo.Wrapper, l2 && Vo.fadeIn, g2 && Vo.sorting, t2 && Vo.dragOverlay), style: { ...f2, transition: [h2, f2?.transition].filter(Boolean).join(", "), "--translate-x": m2 ? `${Math.round(m2.x)}px` : void 0, "--translate-y": m2 ? `${Math.round(m2.y)}px` : void 0, "--scale-x": m2?.scaleX ? `${m2.scaleX}` : void 0, "--scale-y": m2?.scaleY ? `${m2.scaleY}` : void 0, "--index": a2 }, ref: v2, children: Z("div", { className: Ae(Vo.Item, o2 && Vo.dragging, r2 && Vo.withHandle, t2 && Vo.dragOverlay, n2 && Vo.disabled, e2 && Vo.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: q2 }) });
3175
- })), Bo = { Row: "_Row_1kr10_1" }, Oo = oe(re(({ children: e2, horizontal: t2, style: o2 }, n2) => Z("div", { ref: n2, style: { ...o2 }, className: Ae(Bo.Row, t2 && Bo.horizontal), children: e2 }))), $o = { ...Oe }, Wo = oe(re((e2, t2) => {
3176
- const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = Be, coordinateGetter: a2 = Ee, dropAnimation: s2 = $o, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: v2, reorderItems: q2 = Ie, strategy: y2 = Ne, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, T2] = le(() => u2);
3177
- ae(() => {
3175
+ const q2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: v2, style: u2, transform: m2, transition: h2, value: p2 }) : j(X, { children: p2 });
3176
+ return j("div", { className: ze("tab-item", Vo.Wrapper, l2 && Vo.fadeIn, g2 && Vo.sorting, t2 && Vo.dragOverlay), style: { ...f2, transition: [h2, f2?.transition].filter(Boolean).join(", "), "--translate-x": m2 ? `${Math.round(m2.x)}px` : void 0, "--translate-y": m2 ? `${Math.round(m2.y)}px` : void 0, "--scale-x": m2?.scaleX ? `${m2.scaleX}` : void 0, "--scale-y": m2?.scaleY ? `${m2.scaleY}` : void 0, "--index": a2 }, ref: v2, children: j("div", { className: ze(Vo.Item, o2 && Vo.dragging, r2 && Vo.withHandle, t2 && Vo.dragOverlay, n2 && Vo.disabled, e2 && Vo.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: q2 }) });
3177
+ })), Bo = { Row: "_Row_1kr10_1" }, Oo = ne(ie(({ children: e2, horizontal: t2, style: o2 }, n2) => j("div", { ref: n2, style: { ...o2 }, className: ze(Bo.Row, t2 && Bo.horizontal), children: e2 }))), $o = { ...$e }, Wo = ne(ie((e2, t2) => {
3178
+ const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = Oe, coordinateGetter: a2 = Ee, dropAnimation: s2 = $o, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: v2, reorderItems: q2 = He, strategy: y2 = Ne, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, T2] = re(() => u2);
3179
+ se(() => {
3178
3180
  T2(u2);
3179
3181
  }, [u2]);
3180
- const [R2, M2] = le(null), A2 = $e(We(Ue, { activationConstraint: n2 }), We(_e, { activationConstraint: n2 }), We(Ge, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = R2 ? z2(R2) : -1, D2 = [];
3182
+ const [R2, M2] = re(null), A2 = We(Ue(_e, { activationConstraint: n2 }), Ue(Ge, { activationConstraint: n2 }), Ue(Ze, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = R2 ? z2(R2) : -1, D2 = [];
3181
3183
  k2.map((e3, t3) => {
3182
- D2.push(Z(Uo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
3184
+ D2.push(j(Uo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
3183
3185
  const o3 = v2?.({ key: "divider-" + t3 });
3184
3186
  o3 && D2.push(o3);
3185
3187
  });
3186
- const { getPortalContainer: E2 } = $();
3187
- return j(Ze, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
3188
+ const { getPortalContainer: I2 } = W();
3189
+ return K(je, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
3188
3190
  const { active: t3 } = e3;
3189
3191
  t3 && (S2?.(e3), M2(t3.id));
3190
3192
  }, autoScroll: { canScroll: (e3) => true }, onDragEnd: (e3) => {
@@ -3194,88 +3196,88 @@ const Eo = oe(re((e2, t2) => {
3194
3196
  }
3195
3197
  }, onDragCancel: () => {
3196
3198
  M2(null);
3197
- }, measuring: p2, modifiers: f2, children: [Z("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Ae(o2, Vo.Wrapper), children: Z(He, { items: k2, strategy: y2, children: Z(Oo, { ref: t2, children: D2 }) }) }), b2 ? Fe(Z(je, { adjustScale: r2, dropAnimation: s2, children: R2 ? Z(Lo, { value: k2[F2], handle: g2, renderItem: w2, wrapperStyle: x2({ index: F2, isDragging: true, id: k2[F2] }), index: F2, dragging: true, style: d2({ id: k2[F2], index: F2, isSorting: null !== R2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), E2()) : null] });
3199
+ }, measuring: p2, modifiers: f2, children: [j("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: ze(o2, Vo.Wrapper), children: j(Pe, { items: k2, strategy: y2, children: j(Oo, { ref: t2, children: D2 }) }) }), b2 ? De(j(Ke, { adjustScale: r2, dropAnimation: s2, children: R2 ? j(Lo, { value: k2[F2], handle: g2, renderItem: w2, wrapperStyle: x2({ index: F2, isDragging: true, id: k2[F2] }), index: F2, dragging: true, style: d2({ id: k2[F2], index: F2, isSorting: null !== R2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), I2()) : null] });
3198
3200
  }));
3199
3201
  function Uo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: l2, index: r2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
3200
- const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Pe({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
3201
- return Z(Lo, { ref: f2, value: l2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: r2, style: a2({ index: r2, id: l2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(l2) : void 0, transform: w2, transition: v2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
3202
+ const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Ve({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
3203
+ return j(Lo, { ref: f2, value: l2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: r2, style: a2({ index: r2, id: l2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(l2) : void 0, transform: w2, transition: v2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
3202
3204
  }
3203
- const _o = "_TabStrip_3x0dp_1", Go = new h("rgb(33, 115, 70)"), Zo = "#eee", jo = (e2) => Z(Po, { ...e2 }), Ko = oe(re((e2, t2) => {
3204
- const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = W, createScrollEndButton: g2 = U, createScrollEdgeButton: u2 = _, createTabButton: h2 = jo, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: v2 = "white", activeColor: q2 = Go, borderColor: y2 = Zo, borderWidth: C2 = 1 } = e2, [b2, S2] = le(r2), [x2, k2] = le(i2), T2 = de((e3) => {
3205
- const t3 = E2.current?.[e3]?.closest(".tab-item") ?? E2.current?.[e3];
3205
+ const _o = "_TabStrip_3x0dp_1", Go = new h("rgb(33, 115, 70)"), Zo = "#eee", jo = (e2) => j(Po, { ...e2 }), Ko = ne(ie((e2, t2) => {
3206
+ const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = U, createScrollEndButton: g2 = _, createScrollEdgeButton: u2 = G, createTabButton: h2 = jo, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: v2 = "white", activeColor: q2 = Go, borderColor: y2 = Zo, borderWidth: C2 = 1 } = e2, [b2, S2] = re(r2), [x2, k2] = re(i2), T2 = ce((e3) => {
3207
+ const t3 = I2.current?.[e3]?.closest(".tab-item") ?? I2.current?.[e3];
3206
3208
  t3 && O2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
3207
3209
  }, []);
3208
- ae(() => {
3210
+ se(() => {
3209
3211
  T2(r2);
3210
3212
  }, [r2]);
3211
- const R2 = de((e3, t3) => {
3213
+ const R2 = ce((e3, t3) => {
3212
3214
  t3 !== b2 && (S2(t3), a2?.(t3)), T2(t3);
3213
- }, [a2, b2]), M2 = de((e3, t3) => {
3215
+ }, [a2, b2]), M2 = ce((e3, t3) => {
3214
3216
  d2?.(e3, t3);
3215
- }, [d2]), A2 = ie(null), [z2, F2] = le(-1), D2 = de((e3, t3) => {
3217
+ }, [d2]), A2 = ae(null), [z2, F2] = re(-1), D2 = ce((e3, t3) => {
3216
3218
  s2?.(e3, t3);
3217
3219
  }, [s2]);
3218
- se(() => {
3220
+ de(() => {
3219
3221
  S2(r2);
3220
- }, [r2]), se(() => {
3222
+ }, [r2]), de(() => {
3221
3223
  k2(i2);
3222
3224
  }, [i2]);
3223
- const E2 = ie([]), I2 = ie(null);
3224
- pe(t2, () => Object.assign({ startEdit(e3) {
3225
- E2.current?.[e3]?.startEdit();
3225
+ const I2 = ae([]), E2 = ae(null);
3226
+ fe(t2, () => Object.assign({ startEdit(e3) {
3227
+ I2.current?.[e3]?.startEdit();
3226
3228
  }, cancel(e3) {
3227
- E2.current?.[e3]?.cancel();
3228
- } }, I2.current), [b2, z2]);
3229
- const N2 = de(({ value: e3, index: t3, dragging: o3 }) => {
3230
- const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = Z(Ho, { ref: (e4) => {
3231
- E2.current[t3] = e4;
3229
+ I2.current?.[e3]?.cancel();
3230
+ } }, E2.current), [b2, z2]);
3231
+ const H2 = ce(({ value: e3, index: t3, dragging: o3 }) => {
3232
+ const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = j(No, { ref: (e4) => {
3233
+ I2.current[t3] = e4;
3232
3234
  }, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && q2 ? q2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1), D2(t3, e4)), onCancel: () => {
3233
3235
  A2.current = false, F2(-1);
3234
3236
  }, onChange: (e4) => {
3235
3237
  A2.current = true, F2(t3);
3236
3238
  }, ...r3 });
3237
3239
  return h2({ onClick: (e4) => R2(e4, t3), value: e3, index: t3, editing: z2 === t3 && A2.current, editable: true, disabled: f2, selectedIndex: b2, background: v2, activeColor: q2, borderColor: y2, borderWidth: C2, dragging: o3, children: i3 });
3238
- }, [b2, D2, R2, p2, f2, z2, h2]), [P2, { width: V2 }] = Me(), [L2, { width: B2 }] = Me(), O2 = ie(null), [$2, X2] = le({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = le(null);
3239
- ae(() => {
3240
+ }, [b2, D2, R2, p2, f2, z2, h2]), [N2, { width: V2 }] = Ae(), [L2, { width: B2 }] = Ae(), O2 = ae(null), [$2, W2] = re({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = re(null);
3241
+ se(() => {
3240
3242
  null !== Y2 && O2.current && O2.current.scrollTo({ left: Y2, behavior: "smooth" });
3241
3243
  }, [Y2]);
3242
- const Q2 = de((e3, t3 = false) => {
3244
+ const Q2 = ce((e3, t3 = false) => {
3243
3245
  if (!O2.current) return 0;
3244
3246
  let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, l3 = 0;
3245
- return l3 = t3 ? 0 : G.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(l3), Math.max(0, l3);
3246
- }, []), ee2 = de((e3, t3 = false) => {
3247
+ return l3 = t3 ? 0 : Z.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(l3), Math.max(0, l3);
3248
+ }, []), ee2 = ce((e3, t3 = false) => {
3247
3249
  if (!O2.current) return 0;
3248
3250
  let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, l3 = 0;
3249
3251
  const r3 = Math.ceil(B2 - V2);
3250
- return l3 = t3 ? r3 : G.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
3251
- }, [B2, V2]), te2 = ie(null), oe2 = ie(null), re2 = de(() => {
3252
+ return l3 = t3 ? r3 : Z.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
3253
+ }, [B2, V2]), te2 = ae(null), oe2 = ae(null), ne2 = ce(() => {
3252
3254
  oe2.current && (clearTimeout(oe2.current), oe2.current = null, te2.current = null);
3253
- }, []), ce2 = de((e3, t3, o3 = 260) => {
3255
+ }, []), ie2 = ce((e3, t3, o3 = 260) => {
3254
3256
  te2.current = e3, oe2.current = setTimeout(() => {
3255
3257
  const o4 = t3 ? Q2(te2.current || e3) : ee2(te2.current || e3);
3256
- o4 !== te2.current ? ce2(o4, t3, 120) : re2();
3258
+ o4 !== te2.current ? ie2(o4, t3, 120) : ne2();
3257
3259
  }, o3);
3258
- }, [Q2, ee2, re2]);
3259
- ae(() => () => re2(), [re2]);
3260
- const ge2 = ne(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor($2.left) <= 0 || 0 === Math.floor(B2 - V2), orientation: H.Horizontal, onMouseUp: re2, onMouseLeave: re2, onMouseDown: () => ce2(O2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(O2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [$2, Y2, B2, V2]), ue2 = ne(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(B2 - V2) <= Math.ceil($2.left), orientation: H.Horizontal, onMouseUp: re2, onMouseLeave: re2, onMouseDown: () => ce2(O2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(O2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [$2, Y2, B2, V2]), he2 = ne(() => j(K, { children: [Z("div", { style: { minWidth: "16px" } }), o2, u2?.(ge2)] }), [ge2, ue2, c2, g2, o2, u2]);
3261
- return j("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Ae(_o, l2), ref: I2, children: [Z("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: he2 }), Z("div", { className: "Tabs", ref: P2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: Z("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: O2, onScroll: (e3) => {
3262
- X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
3263
- }, children: Z(Wo, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Ve, modifiers: [Le], ref: L2, renderItem: N2, renderDivider: m2, onMove: M2, activationConstraint: { distance: 15 } }) }) }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(ue2) })] });
3260
+ }, [Q2, ee2, ne2]);
3261
+ se(() => () => ne2(), [ne2]);
3262
+ const ge2 = le(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor($2.left) <= 0 || 0 === Math.floor(B2 - V2), orientation: P.Horizontal, onMouseUp: ne2, onMouseLeave: ne2, onMouseDown: () => ie2(O2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(O2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [$2, Y2, B2, V2]), ue2 = le(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(B2 - V2) <= Math.ceil($2.left), orientation: P.Horizontal, onMouseUp: ne2, onMouseLeave: ne2, onMouseDown: () => ie2(O2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(O2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [$2, Y2, B2, V2]), he2 = le(() => K(X, { children: [j("div", { style: { minWidth: "16px" } }), o2, u2?.(ge2)] }), [ge2, ue2, c2, g2, o2, u2]);
3263
+ return K("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: ze(_o, l2), ref: E2, children: [j("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), j("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: he2 }), j("div", { className: "Tabs", ref: N2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: j("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: O2, onScroll: (e3) => {
3264
+ W2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
3265
+ }, children: j(Wo, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Le, modifiers: [Be], ref: L2, renderItem: H2, renderDivider: m2, onMove: M2, activationConstraint: { distance: 15 } }) }) }), j("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(ue2) })] });
3264
3266
  }));
3265
3267
  Ko.displayName = "TabStrip";
3266
- const Xo = (e2) => j("svg", { ...e2, viewBox: "0 0 48 48", children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), Yo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Jo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), Z("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" })] }), Qo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), Z("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" })] }), en = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), Z("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" })] }), tn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), on = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), Z("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" })] }), nn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), ln = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), rn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), an = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), sn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), dn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), Z("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), Z("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), Z("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), Z("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), Z("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" })] }), cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), Z("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" })] }), gn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), Z("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" })] }), un = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), Z("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" }), Z("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" })] }), hn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), Z("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" }), Z("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" }), Z("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), mn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), Z("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" })] }), pn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), fn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), wn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), vn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), qn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), yn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), bn = ce(null);
3268
+ const Xo = (e2) => K("svg", { ...e2, viewBox: "0 0 48 48", children: [j("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" }), j("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" }), j("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" }), j("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" })] }), Yo = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), j("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), j("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), j("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), j("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), j("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" })] }), Jo = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), j("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" }), j("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), j("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" }), j("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), j("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" })] }), Qo = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), j("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" }), j("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), j("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" }), j("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), j("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" })] }), en = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), j("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" })] }), tn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), on = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), j("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" })] }), nn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), ln = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), rn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), an = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" }), j("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" }), j("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" })] }), sn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" }), j("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" }), j("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" })] }), dn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), j("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), j("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), j("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), j("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), j("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" })] }), cn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), j("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" }), j("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), j("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" }), j("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), j("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" })] }), gn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), j("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" }), j("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), j("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" }), j("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), j("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" })] }), un = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), j("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" }), j("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" })] }), hn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), j("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" }), j("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" }), j("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), mn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), j("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" }), j("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), j("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" })] }), pn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" }), j("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" })] }), fn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" }), j("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" })] }), wn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), vn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" }), j("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" })] }), qn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("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" }), j("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" })] }), yn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), j("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), j("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), j("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), j("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), j("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" })] }), Cn = (e2) => K("svg", { viewBox: "0,0,2048,2048", ...e2, children: [j("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" }), j("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), j("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), j("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), j("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), j("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), j("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" })] }), bn = ge(null);
3267
3269
  bn.displayName = "DocThemesContext";
3268
3270
  const Sn = (e2) => {
3269
3271
  const { themes: t2, children: o2 } = e2;
3270
- return Z(bn.Provider, { value: t2, children: o2 });
3272
+ return j(bn.Provider, { value: t2, children: o2 });
3271
3273
  }, xn = () => {
3272
- const e2 = ge(bn), [t2] = le(() => new y());
3273
- return ne(() => e2 || t2, [e2]);
3274
- }, kn = "_script-editor_iy654_5", Tn = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, Rn = te.lazy(() => import("@monaco-editor/react"));
3274
+ const e2 = ue(bn), [t2] = re(() => new y());
3275
+ return le(() => e2 || t2, [e2]);
3276
+ }, kn = "_script-editor_iy654_5", Tn = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, Rn = oe.lazy(() => import("@monaco-editor/react"));
3275
3277
  let Mn, An, zn = ["define", "require"], Fn = false;
3276
- let Dn = "@0.7.12";
3278
+ let Dn = "@0.7.13";
3277
3279
  "@local" !== Dn && "@0.0.0" !== Dn || (Dn = "");
3278
- const En = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`, In = async (e2, t2, o2) => {
3280
+ const In = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`, En = async (e2, t2, o2) => {
3279
3281
  const n2 = e2.getModel();
3280
3282
  if (!n2) return;
3281
3283
  const l2 = await t2.languages.typescript.getTypeScriptWorker(), r2 = await l2(n2.uri), i2 = await r2.getNavigationTree(n2.uri.toString()), a2 = e2.getPosition();
@@ -3303,7 +3305,7 @@ const En = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`
3303
3305
  let m2 = null;
3304
3306
  n2.pushEditOperations([], h2, (e3) => (m2 = e3[0].range, g2 && m2.startLineNumber++, u2 && m2.endLineNumber--, [new t2.Selection(m2.startLineNumber, m2.startColumn, m2.endLineNumber, m2.endColumn)])), e2.setSelection({ startLineNumber: m2.endLineNumber, startColumn: m2.endColumn, endLineNumber: m2.startLineNumber, endColumn: m2.startColumn });
3305
3307
  };
3306
- function Nn(e2, t2) {
3308
+ function Hn(e2, t2) {
3307
3309
  let o2 = null;
3308
3310
  const n2 = e2.length;
3309
3311
  for (let l2 = 0; !o2 && l2 < n2; l2++) {
@@ -3312,12 +3314,12 @@ function Nn(e2, t2) {
3312
3314
  }
3313
3315
  return o2 ? o2.getContext() : "formula";
3314
3316
  }
3315
- function Hn(e2, t2, o2, n2, l2 = []) {
3317
+ function Nn(e2, t2, o2, n2, l2 = []) {
3316
3318
  if ("function" === n2.kind && "export" === n2.kindModifiers) {
3317
3319
  const t3 = n2.spans[0].start, r2 = e2.getPositionAt(t3);
3318
- l2.push({ name: n2.text, type: Nn(o2, n2), lineNumber: r2.lineNumber });
3320
+ l2.push({ name: n2.text, type: Hn(o2, n2), lineNumber: r2.lineNumber });
3319
3321
  }
3320
- if (n2.childItems) for (const r2 of n2.childItems) Hn(e2, t2, o2, r2, l2);
3322
+ if (n2.childItems) for (const r2 of n2.childItems) Nn(e2, t2, o2, r2, l2);
3321
3323
  return l2;
3322
3324
  }
3323
3325
  function Pn(e2, t2, o2 = "function", n2) {
@@ -3337,8 +3339,8 @@ function Pn(e2, t2, o2 = "function", n2) {
3337
3339
  function Vn(e2) {
3338
3340
  return "comment" === e2.kind;
3339
3341
  }
3340
- const Ln = oe(re((e2, t2) => {
3341
- const { className: o2, style: n2, commands: l2, readOnly: r2 = false, darkMode: i2, loadingPanel: a2, autoFocus: s2 = true, frame: d2, onStatusChange: c2, ...g2 } = e2, u2 = ie(null), h2 = ie(false), m2 = ne(() => ({ contains(e3) {
3342
+ const Ln = ne(ie((e2, t2) => {
3343
+ const { className: o2, style: n2, commands: l2, readOnly: r2 = false, darkMode: i2, loadingPanel: a2, autoFocus: s2 = true, frame: d2, onStatusChange: c2, ...g2 } = e2, u2 = ae(null), h2 = ae(false), m2 = le(() => ({ contains(e3) {
3342
3344
  if (!u2.current) return;
3343
3345
  const t3 = u2.current.editor;
3344
3346
  return t3 && t3.getDomNode()?.contains(e3);
@@ -3346,20 +3348,20 @@ const Ln = oe(re((e2, t2) => {
3346
3348
  if (!u2.current) return;
3347
3349
  const e3 = u2.current.editor;
3348
3350
  return e3 && e3.getDomNode()?.focus();
3349
- } }), []), p2 = ne(() => [new T("help", m2, { label: "Script Commands", description: "Open Editor Commands", shortcut: { key: "F1" } }, () => {
3350
- })], []), f2 = ne(() => {
3351
+ } }), []), p2 = le(() => [new T("help", m2, { label: "Script Commands", description: "Open Editor Commands", shortcut: { key: "F1" } }, () => {
3352
+ })], []), f2 = le(() => {
3351
3353
  let e3 = null;
3352
3354
  const t3 = () => m2;
3353
3355
  return e3 = l2 ? l2.createChildGroup(t3, "scriptEditor", false) : new M(t3, "scriptEditor"), e3.addCommands(p2, true), e3;
3354
- }, [l2, p2]), w2 = l2.getGroup("workbook"), v2 = N(w2, ["executeSelectedScript", "saveScripts"]), q2 = v2[0], y2 = v2[1], C2 = q2?.context(), [x2, k2] = le({ message: "Loading", cursor: "", dirty: false }), [R2, A2] = le({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
3356
+ }, [l2, p2]), w2 = l2.getGroup("workbook"), v2 = N(w2, ["executeSelectedScript", "saveScripts"]), q2 = v2[0], y2 = v2[1], C2 = q2?.context(), [x2, k2] = re({ message: "Loading", cursor: "", dirty: false }), [R2, A2] = re({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
3355
3357
  k2((t3) => {
3356
3358
  const o3 = { ...t3, ...e3 };
3357
- return X.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
3359
+ return Y.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
3358
3360
  await F2();
3359
3361
  }), o3);
3360
3362
  });
3361
3363
  }, [c2, y2]);
3362
- ae(() => {
3364
+ se(() => {
3363
3365
  c2?.(x2);
3364
3366
  }, [c2, x2]);
3365
3367
  const F2 = S(async () => {
@@ -3374,18 +3376,18 @@ const Ln = oe(re((e2, t2) => {
3374
3376
  } else t3 = C2?.getScripts().getModules().getByName("scripts");
3375
3377
  return t3;
3376
3378
  }, [x2]);
3377
- ae(() => {
3379
+ se(() => {
3378
3380
  const e3 = d2?.addListener({ onBeforeHide: async () => (await F2(), true) });
3379
3381
  return () => {
3380
3382
  e3?.();
3381
3383
  };
3382
- }, [d2]), ae(() => {
3384
+ }, [d2]), se(() => {
3383
3385
  const e3 = C2?.getScripts();
3384
3386
  if (e3) return e3.addListeners({ onBeforeSearch: () => F2() });
3385
3387
  }, [C2]);
3386
3388
  const D2 = S((e3) => {
3387
3389
  q2?.execute(e3);
3388
- }, [q2]), E2 = ie(""), [I2, H2] = le(false), P2 = S(async () => {
3390
+ }, [q2]), I2 = ae(""), [E2, H2] = re(false), P2 = S(async () => {
3389
3391
  if (!u2.current) return null;
3390
3392
  const e3 = u2.current, t3 = e3.editor;
3391
3393
  if (!t3) return null;
@@ -3404,7 +3406,7 @@ const Ln = oe(re((e2, t2) => {
3404
3406
  })(t3, o3);
3405
3407
  return z2({ message: (n3 ?? "").toUpperCase() }), n3 ? { source: t3.getValue(), name: n3 } : null;
3406
3408
  }, []);
3407
- S(X.debounce(F2, 200), []);
3409
+ S(Y.debounce(F2, 200), []);
3408
3410
  const V2 = S(async (e3, t3, o3) => {
3409
3411
  A2((e4) => ({ ...e4, compiling: true }));
3410
3412
  const n3 = await C2?.getScripts().createModule({ source: o3?.getValue(), declarationsOnly: true });
@@ -3418,28 +3420,28 @@ const Ln = oe(re((e2, t2) => {
3418
3420
  t4.editor.setModelMarkers(e4, "owner", o4);
3419
3421
  })(e3, t3);
3420
3422
  !(async function(e4, t4, o4, n4) {
3421
- const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = Hn(e4, t4, n4, i3).map((e5) => {
3423
+ const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = Nn(e4, t4, n4, i3).map((e5) => {
3422
3424
  let o5 = null, n5 = null;
3423
3425
  return "formula" === e5.type ? (o5 = "formula.margin-icon", n5 = "Formula") : "macro" === e5.type ? (o5 = "macro.margin-icon", n5 = "Macro") : "autoRun" === e5.type && (o5 = "autorun.margin-icon", n5 = "Auto Run"), { range: new t4.Range(e5.lineNumber, 1, e5.lineNumber, 1), options: { isWholeLine: false, glyphMarginClassName: o5, glyphMarginHoverMessage: { value: n5 }, stickiness: t4.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges } };
3424
3426
  });
3425
3427
  U2.current && U2.current.clear(), U2.current = o4.createDecorationsCollection(a3);
3426
- })(e3, t3, o3, n3 ? n3.getFunctions().getItems() : X.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
3427
- }, [C2]), L2 = S(X.debounce(V2, 580), []), B2 = S(async (e3 = void 0) => {
3428
+ })(e3, t3, o3, n3 ? n3.getFunctions().getItems() : Y.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
3429
+ }, [C2]), L2 = S(Y.debounce(V2, 580), []), B2 = S(async (e3 = void 0) => {
3428
3430
  if (!u2.current || !C2) return;
3429
3431
  const t3 = u2.current.editor.getPosition(), o3 = { cursor: t3 ? t3.toString() : "" };
3430
3432
  void 0 !== e3 && (o3.message = e3), z2(o3);
3431
3433
  const n3 = P2();
3432
3434
  C2.setSelectedFunction(n3);
3433
3435
  }, [C2]);
3434
- ae(() => {
3436
+ se(() => {
3435
3437
  }, [R2]);
3436
- const O2 = ie(null), $2 = S(async () => {
3438
+ const O2 = ae(null), $2 = S(async () => {
3437
3439
  await F2(), d2?.close();
3438
3440
  }, [d2]);
3439
- ae(() => {
3441
+ se(() => {
3440
3442
  if (!C2) return;
3441
3443
  const e3 = { insertSnippet: (e4) => {
3442
- u2.current?.editor && In(u2.current.editor, u2.current.monaco, e4);
3444
+ u2.current?.editor && En(u2.current.editor, u2.current.monaco, e4);
3443
3445
  }, close: () => $2() };
3444
3446
  C2.setEditor(e3), C2.setSelectedFunction(P2());
3445
3447
  const t3 = C2.addContainerListener({ onBeforeSave: async () => {
@@ -3453,18 +3455,18 @@ const Ln = oe(re((e2, t2) => {
3453
3455
  return () => {
3454
3456
  C2.setEditor(null), t3();
3455
3457
  };
3456
- }, [C2]), ae(() => () => {
3458
+ }, [C2]), se(() => () => {
3457
3459
  const e3 = O2.current;
3458
3460
  if (e3) {
3459
3461
  e3.dispose();
3460
3462
  const t3 = e3.debounceTimer;
3461
3463
  void 0 !== t3 && clearTimeout(t3), O2.current = null;
3462
3464
  }
3463
- }, [I2]);
3465
+ }, [E2]);
3464
3466
  const W2 = S((e3) => {
3465
3467
  const t3 = u2.current?.editor;
3466
3468
  return !!t3 && (t3.focus(e3), true);
3467
- }, [x2]), U2 = ie(null), _2 = S((e3, t3) => {
3469
+ }, [x2]), U2 = ae(null), _2 = S((e3, t3) => {
3468
3470
  u2.current = { monaco: t3, editor: e3 }, H2(true), B2("Loading Types");
3469
3471
  const o3 = C2?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
3470
3472
  e3.setValue(o3), import("monaco-editor-auto-typings/custom-editor.js").then(async (o4) => {
@@ -3513,7 +3515,7 @@ const Ln = oe(re((e2, t2) => {
3513
3515
  F2();
3514
3516
  } }), e3.onMouseDown(async (e4) => {
3515
3517
  if (e4.target.type === t3.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
3516
- const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 = Hn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
3518
+ const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 = Nn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
3517
3519
  if (s3) {
3518
3520
  const t4 = e4.event.browserEvent.button;
3519
3521
  0 === t4 ? "macro" === s3.type || "autoRun" === s3.type ? D2({ functionName: s3.name }) : "formula" === s3.type && C2?.quickInsertFunction?.(s3.name) : 2 === t4 && (console.log("Context menu for function:", s3.name), e4.event.browserEvent.preventDefault());
@@ -3541,8 +3543,8 @@ const Ln = oe(re((e2, t2) => {
3541
3543
  }), e3.onDidChangeCursorPosition((e4) => {
3542
3544
  B2();
3543
3545
  });
3544
- }, [C2]), G2 = ne(() => I2 ? null : a2 || Z("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [I2, a2]), K2 = ne(() => {
3545
- if (!I2) {
3546
+ }, [C2]), G2 = le(() => E2 ? null : a2 || j("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [E2, a2]), Z2 = le(() => {
3547
+ if (!E2) {
3546
3548
  if (!Mn) {
3547
3549
  Mn = {};
3548
3550
  const e4 = zn.length;
@@ -3560,7 +3562,7 @@ const Ln = oe(re((e2, t2) => {
3560
3562
  }
3561
3563
  }
3562
3564
  const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
3563
- return j("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [Z(he, { children: Z(Rn, { theme: i2 ? "extended-dark" : "extended", options: { ...Tn, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
3565
+ return K("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [j(me, { children: j(Rn, { theme: i2 ? "extended-dark" : "extended", options: { ...Tn, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
3564
3566
  let t3 = false;
3565
3567
  const o3 = e4 ? e4.length : 0;
3566
3568
  for (let n3 = 0; !t3 && n3 < o3; n3++) 8 === e4[n3].severity && (t3 = true);
@@ -3570,7 +3572,7 @@ const Ln = oe(re((e2, t2) => {
3570
3572
  let t3 = false, o3 = false;
3571
3573
  try {
3572
3574
  const n3 = await (async () => {
3573
- const e5 = await fetch(En);
3575
+ const e5 = await fetch(In);
3574
3576
  return await e5.text();
3575
3577
  })(), l3 = e4.Uri.parse('inmemory://model/"sheetxl-models".d.ts');
3576
3578
  let r3 = e4.editor.getModel(l3);
@@ -3613,7 +3615,7 @@ const Ln = oe(re((e2, t2) => {
3613
3615
  const t4 = e4.languages.typescript.typescriptDefaults.getCompilerOptions();
3614
3616
  e4.languages.typescript.typescriptDefaults.setCompilerOptions({ ...t4, target: e4.languages.typescript.ScriptTarget.ES2020, lib: ["webworker", "es2020", "esnext.asynciterable"], downlevelIteration: true, moduleResolution: e4.languages.typescript.ModuleResolutionKind.NodeJs, allowSyntheticDefaultImports: true, baseUrl: "inmemory://model/", allowNonTsExtensions: true });
3615
3617
  }
3616
- if (E2.current && (await In(u2.current.editor, u2.current.monaco, E2.current), E2.current = null), h2.current && requestAnimationFrame(async () => {
3618
+ if (I2.current && (await En(u2.current.editor, u2.current.monaco, I2.current), I2.current = null), h2.current && requestAnimationFrame(async () => {
3617
3619
  h2.current && e4.editor.focus();
3618
3620
  }), !An) {
3619
3621
  An = {};
@@ -3625,17 +3627,17 @@ const Ln = oe(re((e2, t2) => {
3625
3627
  }
3626
3628
  })();
3627
3629
  }, onMount: _2 }) }), G2] });
3628
- }, [C2, f2, r2, G2, i2]), Y2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
3630
+ }, [C2, f2, r2, G2, i2]), X2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
3629
3631
  W2(e3);
3630
3632
  }, close: () => $2(), getEditor: () => C2?.getEditor() }), [C2]);
3631
- return ae(() => (s2 && requestAnimationFrame(() => {
3632
- Y2.current?.focus();
3633
+ return se(() => (s2 && requestAnimationFrame(() => {
3634
+ X2.current?.focus();
3633
3635
  }), () => {
3634
3636
  u2.current?.editor && requestAnimationFrame(() => {
3635
- Y2.current?.contains(document.activeElement) && Y2.current?.focus();
3637
+ X2.current?.contains(document.activeElement) && X2.current?.focus();
3636
3638
  });
3637
- }), []), Z("div", { className: Ae("script-editor", kn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: Y2, ...g2, children: K2 });
3638
- }));
3639
+ }), []), j("div", { className: ze("script-editor", kn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: X2, ...g2, children: Z2 });
3640
+ })), Bn = Object.freeze(Object.defineProperty({ __proto__: null, FindScopeOptions: { Workbook: "workbook", Sheet: "sheet" } }, Symbol.toStringTag, { value: "Module" }));
3639
3641
  export {
3640
3642
  un as ChartAreaIcon,
3641
3643
  hn as ChartAreaStackedIcon,
@@ -3648,7 +3650,7 @@ export {
3648
3650
  Yo as ChartColumnIcon,
3649
3651
  Jo as ChartColumnStackedIcon,
3650
3652
  Qo as ChartColumnStackedPercentIcon,
3651
- Eo as ChartEditor,
3653
+ Io as ChartEditor,
3652
3654
  en as ChartLineIcon,
3653
3655
  nn as ChartLineMarkersIcon,
3654
3656
  tn as ChartLineStackedIcon,
@@ -3662,43 +3664,43 @@ export {
3662
3664
  fn as ChartScatterLinesMarkersSmoothIcon,
3663
3665
  wn as ChartScatterLinesSmoothIcon,
3664
3666
  pn as ChartScatterMarkersIcon,
3665
- zo as CommandContext,
3666
- et as CornerTriangle,
3667
- Xe as DateUtils,
3668
- kt as DefaultTaskPaneRegistry,
3667
+ Bn as CommandContext,
3668
+ tt as CornerTriangle,
3669
+ Ye as DateUtils,
3670
+ Tt as DefaultTaskPaneRegistry,
3669
3671
  bn as DocThemesContext,
3670
3672
  Sn as DocThemesProvider,
3671
- Ho as EditableLabel,
3672
- fo as EmptyFrame,
3673
- tt as FilterButton,
3674
- Qe as FontUtils,
3673
+ No as EditableLabel,
3674
+ wo as EmptyFrame,
3675
+ ot as FilterButton,
3676
+ et as FontUtils,
3675
3677
  Lo as Item,
3676
3678
  LicenseManager,
3677
3679
  Xo as LogoNoPaddingIcon,
3678
- Ct as LogoTextNoPaddingIcon,
3679
- uo as MovableArea,
3680
+ bt as LogoTextNoPaddingIcon,
3681
+ ho as MovableArea,
3680
3682
  Do as PictureEditor,
3681
3683
  Oo as Row,
3682
3684
  Ln as ScriptEditor,
3683
- it as SheetCellEditor,
3684
- ot as SheetCellRenderer,
3685
- Ao as SheetElement,
3686
- Bt as SheetScrollbar,
3687
- vt as StaticBorderRenderer,
3688
- st as StyledStrokePath,
3685
+ at as SheetCellEditor,
3686
+ nt as SheetCellRenderer,
3687
+ zo as SheetElement,
3688
+ Ot as SheetScrollbar,
3689
+ qt as StaticBorderRenderer,
3690
+ dt as StyledStrokePath,
3689
3691
  Po as Tab,
3690
3692
  Ko as TabStrip,
3691
- Ht as TaskPaneArea,
3692
- Rt as TaskPaneProvider,
3693
- It as TaskPaneStrip,
3694
- Ft as TaskPaneTitle,
3695
- at as createCellEditStateFromCell,
3696
- ut as useBordersOverlay,
3693
+ Pt as TaskPaneArea,
3694
+ Mt as TaskPaneProvider,
3695
+ Ht as TaskPaneStrip,
3696
+ Dt as TaskPaneTitle,
3697
+ st as createCellEditStateFromCell,
3698
+ ht as useBordersOverlay,
3697
3699
  xn as useDocThemes,
3698
- St as useModelListener,
3699
- po as useMovableCommands,
3700
- xt as useRangeListener,
3701
- Vt as useSheetCommands,
3702
- Yt as useSheetCopyPaste,
3703
- At as useTaskPaneArea
3700
+ xt as useModelListener,
3701
+ fo as useMovableCommands,
3702
+ kt as useRangeListener,
3703
+ Lt as useSheetCommands,
3704
+ Jt as useSheetCopyPaste,
3705
+ zt as useTaskPaneArea
3704
3706
  };