@sheetxl/react 0.7.6 → 0.7.8

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,23 +1,23 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.6
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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 r, GeomUtils as l, 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, useNotifier as z, useEditMode as F, useGlobalClipboard as D, NotifierType as I, useCommands as E, ScrollbarOrientation as N, VirtualScrollbar as P, MouseButtonCodes as V, ToolTipPlacement as H, HorizontalAlignment as L, ScrollPane as B, useFullscreenPortal as O, defaultCreateScrollStartButton as $, defaultCreateScrollEndButton as W, defaultCreateScrollEdgeButton as U, ScrollUtils as _, DynamicIcon 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, useEditMode as D, useGlobalClipboard as I, NotifierType as E, 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";
10
10
  export * from "@sheetxl/utils-react";
11
11
  import { jsx as Z, jsxs as j, Fragment as K } from "react/jsx-runtime";
12
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 re, forwardRef as le, useRef as ie, useEffect as ae, useLayoutEffect as se, useCallback as de, useReducer as ce, Suspense as ge, createElement as ue, useImperativeHandle as he, createContext as me, useContext as pe } from "react";
13
+ import te, { memo as oe, useMemo as ne, useState as re, forwardRef as le, 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
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
15
  import { mergeRefs as Re } from "react-merge-refs";
16
16
  import { useMeasure as Me } from "react-use";
17
17
  import Ae from "clsx";
18
18
  import { unstable_batchedUpdates as ze, createPortal as Fe } from "react-dom";
19
19
  import { useForkRef as De } from "rooks";
20
- import { sortableKeyboardCoordinates as Ie, arrayMove as Ee, rectSortingStrategy as Ne, SortableContext as Pe, useSortable as Ve, horizontalListSortingStrategy as He } from "@dnd-kit/sortable";
20
+ import { sortableKeyboardCoordinates as Ie, arrayMove as Ee, rectSortingStrategy as Ne, SortableContext as He, useSortable as Pe, horizontalListSortingStrategy as Ve } from "@dnd-kit/sortable";
21
21
  import { restrictToHorizontalAxis as Le } from "@dnd-kit/modifiers";
22
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
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) => {
@@ -46,16 +46,16 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
46
46
  }, ot = (s2) => {
47
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(), I2 = w2?.darkMode ?? false;
48
48
  let E2, N2;
49
- const P2 = F2 && F2.isFormulaError, V2 = P2 && F2 instanceof e.Parse;
50
- let H2, L2 = q2 || V2;
49
+ const H2 = F2 && F2.isFormulaError, P2 = H2 && F2 instanceof e.Parse;
50
+ let V2, L2 = q2 || P2;
51
51
  if (L2) if (z2.isSpillOverflow()) N2 = "";
52
52
  else {
53
53
  const e2 = z2.getFormulaText();
54
54
  e2 ? N2 = e2 : E2 = z2.getNumberFormat(t.Type.General);
55
55
  }
56
56
  else E2 = z2.getNumberFormat();
57
- L2 || (H2 = z2.getTextOverflow());
58
- const B2 = H2 ? H2.colBounds.width + H2.leftOffset + H2.rightOffset : A2, O2 = H2 ? H2.anchorBounds.x - H2.leftOffset : 0, $2 = H2 ? H2.anchorBounds.width : A2, W2 = H2 ? H2.anchorBounds.x : 0;
57
+ L2 || (V2 = z2.getTextOverflow());
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
60
  E2 && (U2 = E2?.formattedRuns, N2 = U2?.runs[0]?.text ?? E2.displayText);
61
61
  const G2 = z2.getCalcStatus() === o.CalcStatus.Pending;
@@ -73,9 +73,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
73
73
  }
74
74
  let oe2 = null;
75
75
  const ne2 = z2.getComments(), re2 = z2.getWarnings(), le2 = z2.getErrors();
76
- if (ne2 || P2 || le2.length > 0 || re2.length > 0) {
76
+ if (ne2 || H2 || le2.length > 0 || re2.length > 0) {
77
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 ?? [], (re2.length > 0 || le2.length > 0 || P2) && oe2.push(Z(et, { anchorLocation: Y.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(Z(et, { anchorLocation: Y.TopRight, ...e2 }, `indicator-${oe2.length}`));
78
+ oe2 = oe2 ?? [], (re2.length > 0 || le2.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}`));
79
79
  }
80
80
  const ie2 = D2.getFont();
81
81
  let ae2 = E2?.conditionalColor;
@@ -84,9 +84,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
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
86
  G2 && (qe2 = j("div", { className: "slider", children: [Z("div", { className: "line" }), Z("div", { className: "subline inc" })] }, "pending"));
87
- const ye2 = !(G2 || ve2 || te2 || u2 || oe2 || U2?.runs.length > 1 || H2 || ge2 % 360 != 0);
87
+ const ye2 = !(G2 || ve2 || te2 || u2 || oe2 || U2?.runs.length > 1 || V2 || ge2 % 360 != 0);
88
88
  "none" === J2?.background && (J2 = null);
89
- let Ce2 = ce2 || !(!H2 || !(H2.rightIndex > 0 || H2.leftIndex > 0 || H2.colSpan > 1));
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);
@@ -157,7 +157,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
157
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) => {
158
158
  e3.stopPropagation(), e3.preventDefault();
159
159
  } : null, ...v3 };
160
- V2 && (q3.style.textDecorationStyle = "wavy", q3.style.textDecorationColor = I2 ? "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 });
@@ -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 P3 = ye2 ? void 0 : "text-line";
210
- d3.push(Z("div", { className: x4 ? `${x4} ${P3}` : P3, style: F3, ...k4, children: T3 }, `text-${q4.y}-${i3}-${n3}`));
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}`));
211
211
  };
212
212
  if (se2.getOverflow() === r.Overflow.Shrink && c4 > 0) {
213
213
  let e3 = o2?.width ?? 0, t2 = 0;
@@ -256,7 +256,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
256
256
  const o2 = t2 ?? e2.dirty ?? "";
257
257
  return 0 === o2.length || o2.endsWith("%") && !isNaN(parseFloat(o2.substring(0, o2.length - 1)));
258
258
  }, lt = Object.freeze([x.Delete, x.Home, x.End]), it = oe(le((e2, t2) => {
259
- const { editState: o2, onStartEdit: n2, onChangeEdit: l2, 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: N2 = 0, width: P2 = 0 } = v2 ?? {}, V2 = m2?.darkMode ?? false, H2 = ie(null), [L2, B2] = re(false), [O2, $2] = re(null), [W2, U2] = re(() => o2);
259
+ const { editState: o2, onStartEdit: n2, onChangeEdit: l2, 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: N2 = 0, width: H2 = 0 } = v2 ?? {}, P2 = m2?.darkMode ?? false, V2 = ie(null), [L2, B2] = re(false), [O2, $2] = re(null), [W2, U2] = re(() => o2);
260
260
  ae(() => {
261
261
  te2.current = false, U2(o2);
262
262
  }, [o2]);
@@ -285,8 +285,8 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
285
285
  return { text: e4.dirty ?? "", placeholder: "" };
286
286
  })(W2), c3 = d3.text, g3 = r.toCSSHorizontalTextAlign(h2 && !o3 ? W2.clean()?.getRenderHorizontalAlignment() : r.HorizontalAlignment.Left);
287
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, V2, F2, h2]), G2 = ie(null), j2 = b(t2, () => ({ startEdit: (e3) => {
289
- H2.current = e3?.initialSelection;
288
+ }, [W2, u2, P2, F2, h2]), G2 = ie(null), j2 = b(t2, () => ({ startEdit: (e3) => {
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() {
@@ -304,9 +304,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
304
304
  const K2 = ne(() => {
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: P2 - o3 });
307
+ _2.isWrapped && (n3 = { width: H2 - o3 });
308
308
  return t3.layout(n3);
309
- }, [_2, P2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
309
+ }, [_2, H2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
310
310
  se(() => {
311
311
  if (!K2) return;
312
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, r2 = Math.round(_2.isWrapped ? void 0 : K2.bounds.width + o3 + n3), l3 = Math.round(K2.bounds.height);
@@ -335,7 +335,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
335
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)) {
336
336
  const t4 = { ...W2 };
337
337
  let o4 = 0;
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, H2.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, r2 = e3.nativeEvent.metaKey;
341
341
  if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void le2();
@@ -421,11 +421,11 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
421
421
  }, []);
422
422
  const ke2 = S((e3) => {
423
423
  B2(true), Ce2?.activate();
424
- const t3 = H2.current;
424
+ const t3 = V2.current;
425
425
  if (false !== t3) {
426
426
  let e4, o3;
427
427
  const n3 = G2.current.value;
428
- rt(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, H2.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;
@@ -436,16 +436,16 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
436
436
  const De2 = _2.style.getFont();
437
437
  let Ie2 = De2.getSize();
438
438
  De2.isSuperSub() && (Ie2 *= De2.getSuperSubScale()), Ie2 *= a.getDeviceScale() * F2;
439
- const Ee2 = h2 ? De2.toCSS(V2, F2) : null;
439
+ const Ee2 = h2 ? De2.toCSS(P2, F2) : null;
440
440
  return Z("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, ...E2, 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 + 1, 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", ...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: () => {
444
+ }, ref: j2, ...E2, 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", ...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 && (H2.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, 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 }));
449
449
  }, onMouseDown: (e3) => {
450
450
  L2 && ee2(true);
451
451
  }, onKeyDown: ce2 }) }) });
@@ -498,11 +498,12 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
498
498
  const e4 = d2 ? "colStart" : "rowStart", t4 = d2 ? "colEnd" : "rowEnd", o3 = d2 ? g2?.getRowOffset : g2?.getColOffset;
499
499
  let l3 = 0, i3 = 0;
500
500
  C2 = [], b2 = [];
501
- for (let a3 = 0; a3 < c2.length; a3++) {
502
- const s3 = c2[a3];
503
- if (s3.stroke.getStyle() === n.StrokeStyle.Double && o3) {
504
- const n2 = o3(s3.range[S2]) - (k2 - v2);
505
- s3.range[e4] < r2[e4] && (C2.push(n2 - l3), l3 = n2, C2.push(1), l3++), s3.range[t4] > r2[t4] && (b2.push(n2 - i3), i3 = n2, b2.push(1), i3++);
501
+ const a3 = c2.length;
502
+ for (let s3 = 0; s3 < a3; s3++) {
503
+ const a4 = c2[s3];
504
+ if (a4.stroke.getStyle() === n.StrokeStyle.Double && o3) {
505
+ const n2 = o3(a4.range[S2]) - (k2 - v2);
506
+ a4.range[e4] < r2[e4] && (C2.push(n2 - l3), l3 = n2, C2.push(1), l3++), a4.range[t4] > r2[t4] && (b2.push(n2 - i3), i3 = n2, b2.push(1), i3++);
506
507
  }
507
508
  }
508
509
  C2.length > 0 && l3 < w2 && C2.push(w2 - l3), b2.length > 0 && i3 < w2 && b2.push(w2 - i3);
@@ -551,27 +552,28 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
551
552
  return e3.forEach((e4, r3) => {
552
553
  let l3 = null;
553
554
  e4.sort((e5, t4) => e5.visibleIndex - t4.visibleIndex);
554
- for (let a3 = 0; a3 < e4.length; a3++) {
555
- const s3 = e4[a3];
556
- if (!s3?.stroke) continue;
555
+ const a3 = e4.length;
556
+ for (let s3 = 0; s3 < a3; s3++) {
557
+ const a4 = e4[s3];
558
+ if (!a4?.stroke) continue;
557
559
  if (void 0 === t3[r3] && void 0 === t3[r3 - 1]) continue;
558
560
  let d3 = false;
559
561
  if (o4) {
560
562
  const e5 = h2.length;
561
563
  for (let t4 = 0; !d3 && t4 < e5; t4++) {
562
564
  let e6 = h2[t4];
563
- e6.colStart <= s3.index && e6.colEnd >= s3.index && e6.rowStart < r3 && e6.rowEnd >= r3 && (d3 = true);
565
+ e6.colStart <= a4.index && e6.colEnd >= a4.index && e6.rowStart < r3 && e6.rowEnd >= r3 && (d3 = true);
564
566
  }
565
567
  } else {
566
568
  const e5 = m2.length;
567
569
  for (let t4 = 0; !d3 && t4 < e5; t4++) {
568
570
  let e6 = m2[t4];
569
- e6.rowStart <= s3.index && e6.rowEnd >= s3.index && e6.colStart < r3 && e6.colEnd >= r3 && (d3 = true);
571
+ e6.rowStart <= a4.index && e6.rowEnd >= a4.index && e6.colStart < r3 && e6.colEnd >= r3 && (d3 = true);
570
572
  }
571
573
  }
572
574
  if (d3) continue;
573
- const c3 = s3.stroke?.getColor(), g3 = c3 ? c3.toRGBA().toString() : i2, u3 = s3.stroke.getStyle() + ":" + g3;
574
- (u3 !== l3?.key || l3 && l3.visibleIndex + 1 < s3.visibleIndex) && (l3 && n2.push(l3), l3 = { key: u3, index: t3[r3] ?? t3[r3 - 1] + 1, visibleIndex: s3.visibleIndex, edge: s3.edge, stroke: s3.stroke, from: s3.index, to: s3.index + s3.length - 1, intersections: [], length: 1 }), l3.to = s3.index + s3.length - 1, l3.visibleIndex = s3.visibleIndex;
575
+ const c3 = a4.stroke?.getColor(), g3 = c3 ? c3.toRGBA().toString() : i2, u3 = a4.stroke.getStyle() + ":" + g3;
576
+ (u3 !== l3?.key || l3 && l3.visibleIndex + 1 < a4.visibleIndex) && (l3 && n2.push(l3), l3 = { key: u3, index: t3[r3] ?? t3[r3 - 1] + 1, visibleIndex: a4.visibleIndex, edge: a4.edge, stroke: a4.stroke, from: a4.index, to: a4.index + a4.length - 1, intersections: [], length: 1 }), l3.to = a4.index + a4.length - 1, l3.visibleIndex = a4.visibleIndex;
575
577
  }
576
578
  l3 && n2.push(l3);
577
579
  }), n2;
@@ -700,28 +702,188 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
700
702
  i2?.();
701
703
  };
702
704
  }, [e2, t2]);
703
- }, kt = new h("transparent");
704
- function Tt(e2) {
705
- const { sheet: l2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, v2 = z(), [q2, y2] = re(null), [C2, b2] = re(null), x2 = ie(null), A2 = S(f2, [f2]), N2 = S(w2, [w2]), [P2, V2] = re(), [H2, L2] = re(() => l2?.getStyles().parseColor(c.Scheme.Bg2)), [B2, O2] = re(() => l2?.getStyles().getNormal().getFont().getFill()), $2 = F();
706
- ie($2.getMode()).current = $2.getMode();
707
- const W2 = D(), [U2, _2] = re(X.EmptyArray), G2 = de(() => {
708
- if (x2.current !== l2) return;
705
+ };
706
+ const kt = new class {
707
+ constructor() {
708
+ this._taskPanes = /* @__PURE__ */ new Map();
709
+ }
710
+ registerTaskPane(e2, t2 = false) {
711
+ const o2 = e2.key.toLowerCase();
712
+ if (!t2 && this._taskPanes.has(o2)) throw new Error(`Task pane with key '${o2}' is already registered.`);
713
+ this._taskPanes.set(o2, e2);
714
+ }
715
+ unregisterTaskPane(e2) {
716
+ if (e2 = e2.toLowerCase(), !this._taskPanes.has(e2)) throw new Error(`Task pane with key '${e2}' is not registered.`);
717
+ this._taskPanes.delete(e2);
718
+ }
719
+ getRegisteredTaskPane(e2) {
720
+ return e2 = e2.toLowerCase(), this._taskPanes.get(e2) ?? null;
721
+ }
722
+ findContributions(e2) {
723
+ if (!e2) return X.EmptyArray;
724
+ const t2 = [];
725
+ e2 = (e2 = e2.toLowerCase()).replace(/\/+$/g, "");
726
+ for (const o2 of this._taskPanes.values()) {
727
+ const n2 = o2.contributionPoints;
728
+ if (n2 && 0 !== n2.length) for (let r2 of n2) r2.startsWith(e2) && t2.push(o2);
729
+ }
730
+ return t2;
731
+ }
732
+ }(), Tt = ce(void 0), Rt = ({ children: e2, createArea: t2, onUpdateArea: o2, registry: n2 = kt }) => {
733
+ const r2 = te.useRef(null), l2 = te.useRef(null), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useMemo(() => ({ activateTaskPane(e3, t3) {
734
+ l2.current !== e3 && (r2.current ? r2.current.activateTaskPane(e3, t3) : (a2(e3), g2(e3)));
735
+ } }), []), g2 = S((e3) => {
736
+ const r3 = t2({ registry: n2, onClose: () => {
737
+ d2(null), o2?.(null);
738
+ } }, (e4) => {
739
+ e4 && d2(e4);
740
+ });
741
+ return o2?.(r3), r3;
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) {
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(le((e2, t2) => {
752
+ const { children: o2, title: n2, icon: r2, onClose: l2, 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) => {
754
+ e3.stopPropagation();
755
+ }, onPointerUp: () => {
756
+ l2();
757
+ }, children: Z("div", { style: { fontSize: "0.7em" }, children: "✕" }) })] });
758
+ }));
759
+ Ft.displayName = "TaskPaneTitle";
760
+ const Dt = (e2, t2) => Z(Ft, { ...e2, ref: t2 }), It = oe(le((e2, t2) => {
761
+ const { children: o2, entry: n2, close: r2, listenerContainer: l2, model: i2, commands: a2, onMounted: s2, onUnmounted: d2, paneWrapper: c2, paneProps: g2, renderTaskPanelTitle: u2 = Dt, style: h2, className: m2, ...p2 } = e2, [f2, w2] = re(null), [v2, q2] = re(false), y2 = S(r2, [r2]), C2 = ie(null), b2 = ie(null);
762
+ ae(() => (s2?.(n2), () => {
763
+ d2?.(n2);
764
+ }), [n2]);
765
+ const x2 = ie([]), k2 = ne(() => ({ addListener: (e3) => {
766
+ const t3 = l2(e3);
767
+ return x2.current.push(t3), t3;
768
+ }, close: () => {
769
+ y2?.();
770
+ } }), [l2]);
771
+ ae(() => () => {
772
+ for (const e3 of x2.current) e3();
773
+ x2.current = [];
774
+ }, []);
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
+ let e3 = n2.renderTaskPane({ entryKey: n2.key, model: i2, commands: a2, frame: k2, ...g2 }, t2);
778
+ return c2 && (e3 = c2(e3)), e3;
779
+ }, [n2, i2, a2, t2]);
780
+ return j("div", { className: Ae("taskpane-frame", m2, zt.TaskPaneFrame), tabIndex: 0, ref: C2, style: h2, onPointerDown: async (e3) => {
781
+ e3.currentTarget.focus();
782
+ }, onFocus: (e3) => {
783
+ e3.relatedTarget && !f2 && w2(e3.relatedTarget), q2(true);
784
+ }, onBlur: (e3) => {
785
+ 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
+ })), Et = oe(le((e2, t2) => {
788
+ const { children: o2, title: n2, taskPanes: r2, onSelect: l2, selected: i2, registry: a2 = kt, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => r2.map((t3) => {
789
+ const o3 = a2.getRegisteredTaskPane(t3);
790
+ if (!o3) return null;
791
+ 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
+ }), [r2, i2, l2, 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 });
796
+ }));
797
+ Et.displayName = "TaskPaneStrip";
798
+ const Nt = (e2, t2) => Z(Et, { ref: t2, ...e2 }), Ht = oe(le((e2, t2) => {
799
+ const { className: o2 = "", registry: n2 = kt, model: r2, commands: l2, 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 = ie(null), [C2, x2] = re([]), k2 = ie(/* @__PURE__ */ new Set()), T2 = S(async (e3, t3 = false) => {
800
+ const o3 = Array.from(k2.current), n3 = o3.length;
801
+ let r3 = true;
802
+ for (let e4 = 0; r3 && e4 < n3; e4++) {
803
+ const t4 = o3[e4];
804
+ if (t4.onBeforeHide) try {
805
+ false === await Promise.resolve(t4.onBeforeHide()) && (r3 = false);
806
+ } catch (e5) {
807
+ r3 = false;
808
+ }
809
+ }
810
+ return r3;
811
+ }, []), R2 = S((e3) => {
812
+ const t3 = Array.from(k2.current), o3 = t3.length;
813
+ x2((t4) => {
814
+ const o4 = t4.findIndex((t5) => t5.key === e3);
815
+ if (-1 === o4) return t4;
816
+ const n3 = [...t4];
817
+ return n3.splice(o4, 1), 0 === n3.length ? (q2(null), w2?.(), n3) : (M2(n3[Math.max(n3.length - 1, o4 - 1)].key), n3);
818
+ });
819
+ for (let e4 = 0; e4 < o3; e4++) {
820
+ const o4 = t3[e4];
821
+ try {
822
+ o4.onHide?.();
823
+ } catch (e5) {
824
+ }
825
+ }
826
+ }, [w2]), M2 = S(async (e3) => {
827
+ const t3 = n2.getRegisteredTaskPane(e3);
828
+ if (!t3) return void console.warn(`Invalid taskpane '${e3}'`);
829
+ if (y2.current === e3) return;
830
+ if (v2) {
831
+ if (!await T2(v2.key)) return;
832
+ }
833
+ const o3 = te.createRef();
834
+ let i3 = Z(It, { ref: () => {
835
+ y2.current = null;
836
+ }, entry: t3, model: r2, commands: l2, close: async () => {
837
+ await T2(e3) && R2(e3);
838
+ }, paneWrapper: s2, paneProps: d2, renderTaskPanelTitle: u2, listenerContainer: (e4) => {
839
+ k2.current.add(e4);
840
+ return () => {
841
+ k2.current.delete(e4);
842
+ };
843
+ }, onMounted: (t4) => {
844
+ t4.key === e3 && (y2.current = null), f2?.();
845
+ }, onUnmounted: (e4) => {
846
+ }, ...g2 });
847
+ c2 && (i3 = c2(i3));
848
+ const a3 = { key: e3, elem: i3, ref: o3 };
849
+ x2((t4) => {
850
+ if (-1 !== t4.findIndex((t5) => t5.key === e3)) return t4;
851
+ const o4 = [...t4];
852
+ return o4.push(a3), o4;
853
+ }), q2(a3), y2.current = e3;
854
+ }, [v2, c2, s2, u2]);
855
+ ae(() => {
856
+ v2 && !y2.current && M2(v2.key);
857
+ }, [g2, r2]);
858
+ const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2, r2, l2]), z2 = ne(() => C2.map((e3) => e3.key), [C2]), F2 = ne(() => {
859
+ if (z2.length <= 1 && !m2) return null;
860
+ return h2({ className: zt.TaskPaneAreaStrip, taskPanes: z2, selected: v2?.key, onSelect: (e3) => {
861
+ M2(e3);
862
+ }, registry: n2 }, null);
863
+ }, [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: l2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, v2 = F(), q2 = At(), [y2, C2] = re(null), [b2, x2] = re(null), A2 = ie(null), z2 = S(f2, [f2]), H2 = S(w2, [w2]), [P2, V2] = re(), [L2, B2] = re(() => l2?.getStyles().parseColor(c.Scheme.Bg2)), [O2, $2] = re(() => l2?.getStyles().getNormal().getFont().getFill()), W2 = D();
868
+ ie(W2.getMode()).current = W2.getMode();
869
+ const U2 = I(), [_2, G2] = re(X.EmptyArray), K2 = de(() => {
870
+ if (A2.current !== l2) return;
709
871
  const e3 = l2.getSelectedRanges();
710
872
  let t2 = null;
711
- U2.length > 0 && Q.isCellWithinRange(q2, U2[0].getRange().getCoords()) && (t2 = U2[0]);
873
+ _2.length > 0 && Q.isCellWithinRange(y2, _2[0].getRange().getCoords()) && (t2 = _2[0]);
712
874
  const o2 = l2?.getSelectedCell(), n2 = o2?.getCoords() ?? null;
713
875
  ze(() => {
714
- ue2(t2), y2(n2), b2(e3);
876
+ he2(t2), C2(n2), x2(e3);
715
877
  });
716
- }, [l2, U2, C2, q2]), K2 = de(X.debounce(G2, 210), [G2]);
878
+ }, [l2, _2, b2, y2]), Y2 = de(X.debounce(K2, 210), [K2]);
717
879
  ae(() => {
718
- x2.current = l2, G2();
880
+ A2.current = l2, K2();
719
881
  }, [l2]);
720
- const Y2 = S(() => l2.getRange(q2).getCell(), [l2, q2]), J2 = S(async (e3, t2, o2 = null, n2 = false, r2 = true) => {
882
+ const J2 = S(() => l2.getRange(y2).getCell(), [l2, y2]), ee2 = S(async (e3, t2, o2 = null, n2 = false, r2 = true) => {
721
883
  const a2 = e3?.label?.(), s2 = async () => {
722
884
  const e4 = await Promise.resolve(r2 && v2.showBusy(a2 ?? "Busy..."));
723
885
  try {
724
- await l2.doBatch(async () => t2(l2), a2), n2 && $2.setMode(null), e4 && e4();
886
+ await l2.doBatch(async () => t2(l2), a2), n2 && W2.setMode(null), e4 && e4();
725
887
  } catch (t3) {
726
888
  if (e4 && e4(), !t3) return;
727
889
  v2.showError(t3);
@@ -746,39 +908,39 @@ function Tt(e2) {
746
908
  i2(t3);
747
909
  }
748
910
  return g2();
749
- }, [l2, i2, v2]), ee2 = S((e3, t2, o2 = false, n2) => J2(e3, (e4) => {
911
+ }, [l2, i2, v2]), te2 = S((e3, t2, o2 = false, n2) => (n2 || (n2 = { autoSelect: true, autoFit: true }), ee2(e3, (e4) => {
750
912
  const r2 = e4.getSelectedRanges();
751
- o2 && r2.getStyle().update(null, n2), r2.getStyle().update(t2, n2), r2.autoFit({ expandOnly: s.Orientation.Column, minContent: true, skipCustomSize: true });
752
- }), [l2]), te2 = S((e3, t2, o2) => {
753
- J2(e3, (e4) => {
913
+ o2 && r2.getStyle().update(null, n2), r2.getStyle().update(t2, n2);
914
+ })), [l2]), oe2 = S((e3, t2, o2) => {
915
+ ee2(e3, (e4) => {
754
916
  let n2 = t2;
755
917
  (o2 || t2?.address) && (n2 = n2 ?? {}, !o2 && t2?.address?.startsWith("#") ? o2 = t2?.address.substring(1) : o2 && (n2.displayText = o2)), e4.getSelectedRange().setHyperlink(n2);
756
918
  });
757
- }, [l2]), oe2 = S((e3, t2) => {
758
- J2(e3, (e4) => {
919
+ }, [l2]), le2 = S((e3, t2) => {
920
+ ee2(e3, (e4) => {
759
921
  e4.getSelectedRange().setComments(t2);
760
922
  });
761
- }, [l2]), le2 = S((e3, t2) => {
762
- J2(e3, (e4) => {
923
+ }, [l2]), se2 = S((e3, t2) => {
924
+ ee2(e3, (e4) => {
763
925
  e4.getSelectedRanges().clear(t2);
764
926
  });
765
- }, [l2]), se2 = S(async (e3, t2, o2 = false, n2 = false) => J2(e3, async (e4) => {
927
+ }, [l2]), ce2 = S(async (e3, t2, o2 = false, n2 = false) => ee2(e3, async (e4) => {
766
928
  let r2 = e4.getSelectedRanges();
767
929
  o2 && (t2 === s.Orientation.Row ? r2 = r2.getEntireRows(n2) : t2 === s.Orientation.Column && (r2 = r2.getEntireColumns(n2)));
768
930
  let l3 = null;
769
- const i3 = $2.getMode()?.key;
931
+ const i3 = W2.getMode()?.key;
770
932
  if ("copy" === i3 || "cut" === i3) {
771
- const e5 = await W2.getClipboard().readReference();
933
+ const e5 = await U2.getClipboard().readReference();
772
934
  e5 && "range" === e5.getItemType() && (l3 = e5.getItem(), l3.getCoords() || (l3 = null));
773
935
  }
774
936
  if (l3) {
775
937
  const e5 = await r2.insertFrom(l3, { ...l3.getMarkOptions(), orientation: t2, autoSelect: true });
776
- !e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), $2.setMode(null);
777
- } else r2.insert(t2, { autoSelect: true });
778
- }, "Insert Cells", false), [$2]), [ge2, ue2] = re(null), he2 = S((e3) => l2.getStyles().setDefaultTableStyle(e3), [l2]), me2 = S((e3) => {
938
+ !e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), W2.setMode(null);
939
+ } else r2.insert({ orientation: t2, autoSelect: true });
940
+ }, "Insert Cells", false), [W2]), [ge2, he2] = re(null), me2 = S((e3) => l2.getStyles().setDefaultTableStyle(e3), [l2]), pe2 = S((e3) => {
779
941
  l2.getStyles().getTableStyle(e3)?.delete();
780
- }, [l2]), pe2 = S((e3, t2) => {
781
- J2(e3, async (e4) => {
942
+ }, [l2]), fe2 = S((e3, t2) => {
943
+ ee2(e3, async (e4) => {
782
944
  const o2 = e4.getSelectedRange(), n2 = e4.getSelectedCell().getCoords();
783
945
  let r2 = null, l3 = 0;
784
946
  const i3 = n2.rowIndex > 0 ? e4.getRange({ rowIndex: n2.rowIndex, colIndex: n2.colIndex }).getExtended(s.Direction.Up) : null;
@@ -815,11 +977,11 @@ function Tt(e2) {
815
977
  l4.apply();
816
978
  } else {
817
979
  const o3 = d3 ? e4.getRange(d3).toString() : "", n3 = `=${t2}(`;
818
- A2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
980
+ z2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
819
981
  }
820
982
  }, false);
821
- }, [l2]), fe2 = S((e3, t2, o2 = false, n2 = true) => {
822
- J2(e3, async (r2) => {
983
+ }, [l2]), we2 = S((e3, t2, o2 = false, n2 = true) => {
984
+ ee2(e3, async (r2) => {
823
985
  let l3 = null;
824
986
  if (ge2) return void ge2.updateStyleOptions(t2);
825
987
  {
@@ -845,36 +1007,28 @@ function Tt(e2) {
845
1007
  }
846
1008
  a2();
847
1009
  }, false, true, false);
848
- }, [ge2]), we2 = S(() => d2, [d2]), ve2 = S((e3) => ({ styles: () => l2.getStyles(), table: () => e3, bodyStyle: we2, getNames: () => l2.getNames() }), [l2]), qe2 = S(async (e3, t2, o2, n2 = true) => {
849
- let r2 = null;
1010
+ }, [ge2]), ve2 = S(() => d2, [d2]), qe2 = S((e3) => ({ styles: () => l2.getStyles(), table: () => e3, bodyStyle: ve2, getNames: () => l2.getNames() }), [l2]), ye2 = S(async (e3, t2, o2, n2 = true) => {
850
1011
  if (!t2) {
851
1012
  let e4 = l2.getSelectedRange();
852
1013
  1 === e4.size && (e4 = e4.getSurrounding());
853
1014
  let o3 = l2.getTables().getItems({ address: l2.getSelectedRange() });
854
1015
  o3.length > 0 && (t2 = o3[0]), await e4.select();
855
1016
  }
856
- if (t2) {
857
- if (n2) {
858
- try {
859
- o2 && await t2.select();
860
- } catch (e4) {
861
- }
862
- r2 = new Promise(async (o3, n3) => {
863
- e3.update({ context: ve2(t2) });
864
- const r3 = { command: e3, commands: Ne2, notifier: v2, onDone: (e4) => {
865
- o3(e4);
866
- } }, l3 = await v2.showWindow?.("tableDetails", r3, { disableAutoDestroy: true });
867
- setTimeout(() => {
868
- l3.focus();
869
- }, 180);
870
- });
871
- }
872
- Promise.resolve(r2).then((e4) => {
873
- }, (e4) => {
874
- v2.showError(e4);
875
- });
1017
+ if (!t2) return;
1018
+ try {
1019
+ o2 && await t2.select();
1020
+ } catch (e4) {
876
1021
  }
877
- }, [v2]), ye2 = S(async (e3, t2, o2 = false) => {
1022
+ if (!n2) return;
1023
+ const r2 = new Promise(async (o3, n3) => {
1024
+ e3.update({ context: qe2(t2) }), q2.activateTaskPane("tableDetails", {}), o3(true);
1025
+ });
1026
+ try {
1027
+ if (!await r2) return;
1028
+ } catch (e4) {
1029
+ v2.showError(e4);
1030
+ }
1031
+ }, [v2]), Ce2 = S(async (e3, t2, o2 = false) => {
878
1032
  let n2 = null;
879
1033
  if (t2) t2.isITable ? n2 = t2 : t2.getValue() && (n2 = t2.getValue());
880
1034
  else {
@@ -889,12 +1043,12 @@ function Tt(e2) {
889
1043
  Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
890
1044
  }
891
1045
  }
892
- J2(e3, async () => {
1046
+ ee2(e3, async () => {
893
1047
  o2 ? n2.delete() : n2.convertToRange();
894
1048
  }, false, true);
895
1049
  }
896
- }, [v2]), Ce2 = S((e3, t2, o2) => {
897
- J2(e3, async (n2) => {
1050
+ }, [v2]), be2 = S((e3, t2, o2) => {
1051
+ ee2(e3, async (n2) => {
898
1052
  let r2 = n2.getSelectedRanges();
899
1053
  if (r2.getCount() > 1) throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");
900
1054
  let l3 = r2.at(0);
@@ -925,7 +1079,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
925
1079
  }
926
1080
  c2();
927
1081
  }, false, false, false);
928
- }, [v2]), be2 = S(() => {
1082
+ }, [v2]), Se2 = S(() => {
929
1083
  console.log("compactedSelection");
930
1084
  const e3 = l2.getSelection().getCoords(), t2 = l2.getSelectedRanges().getFlattened().getCoords(), o2 = ((e4) => {
931
1085
  const t3 = new Blob([e4], { type: "application/javascript" }), o3 = URL.createObjectURL(t3), n3 = new Worker(o3);
@@ -939,9 +1093,9 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
939
1093
  if (Q.isEqualRangesArrays(e3.ranges, t2)) return;
940
1094
  const r2 = { cell: e3.cell, ranges: t2, rangeIndex: n2 };
941
1095
  l2.getSelection().updateCoords(r2);
942
- }, [l2]), Se2 = S(() => {
1096
+ }, [l2]), xe2 = S(() => {
943
1097
  console.log("selectComments");
944
- }, [l2]), xe2 = S(async (e3 = false, t2 = false) => {
1098
+ }, [l2]), ke2 = S(async (e3 = false, t2 = false) => {
945
1099
  let o2 = null;
946
1100
  if (t2) o2 = l2.getEntireRange();
947
1101
  else {
@@ -952,35 +1106,35 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
952
1106
  } else o2 = t3.getSurrounding({ contentOnly: e3 });
953
1107
  }
954
1108
  o2 && await o2.select();
955
- }, [l2]), ke2 = S((e3, t2, o2) => {
956
- J2(e3, async (e4) => {
1109
+ }, [l2]), Te2 = S((e3, t2, o2) => {
1110
+ ee2(e3, async (e4) => {
957
1111
  let n2 = e4.getSelectedRanges();
958
1112
  o2 && (t2 === s.Orientation.Row ? n2 = n2.getEntireRows() : t2 === s.Orientation.Column && (n2 = n2.getEntireColumns())), n2.delete(t2);
959
1113
  }, "Delete Cells");
960
1114
  }, [l2]);
961
1115
  S(async (e3) => {
962
1116
  let t2 = null;
963
- const o2 = N2(), n2 = Math.min(o2.width - 8, 480), r2 = Math.min(o2.height - 8, 288);
1117
+ const o2 = H2(), n2 = Math.min(o2.width - 8, 480), r2 = Math.min(o2.height - 8, 288);
964
1118
  try {
965
1119
  l2.getSelectedRanges();
966
- t2 = await l2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - r2) / 2, width: n2, height: r2 }, type: "chart", json: e3.template }), t2.select(), $2.setMode(null);
1120
+ t2 = await l2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - r2) / 2, width: n2, height: r2 }, type: "chart", json: e3.template }), t2.select(), W2.setMode(null);
967
1121
  } catch (e4) {
968
1122
  v2.showError(e4);
969
1123
  }
970
1124
  return t2;
971
1125
  }, [l2, v2]);
972
- const Te2 = S(async (e3, t2, o2) => {
1126
+ const Re2 = S(async (e3, t2, o2) => {
973
1127
  const n2 = await v2.showBusy(e3.label());
974
1128
  try {
975
1129
  const e4 = await l2.getMovables().addImage(t2, { autoSelect: true, ...o2 });
976
- return n2(), $2.setMode(null), e4;
1130
+ return n2(), W2.setMode(null), e4;
977
1131
  } catch (e4) {
978
1132
  n2();
979
1133
  let t3 = e4;
980
- "string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type: I.Error });
1134
+ "string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type: E.Error });
981
1135
  }
982
- }, [l2, v2]), Re2 = S((e3, t2) => {
983
- J2(e3, async (o2) => {
1136
+ }, [l2, v2]), Me2 = S((e3, t2) => {
1137
+ ee2(e3, async (o2) => {
984
1138
  const n2 = o2.getSelectedRanges();
985
1139
  n2.doBatch(() => {
986
1140
  const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down, r2 = n2.getCoords().slice().sort(Q.createRangeComparator(e4 ? s.Orientation.Row : s.Orientation.Column));
@@ -997,92 +1151,92 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
997
1151
  }
998
1152
  }, { autoSelect: true, description: e3.label() });
999
1153
  });
1000
- }, [v2]), Me2 = S(() => {
1154
+ }, [v2]), Ae2 = S(() => {
1001
1155
  let e3 = null;
1002
1156
  const t2 = l2.getSelectedCell().getCoords();
1003
1157
  if (t2?.rowIndex > 0) {
1004
1158
  const o2 = l2.getRange({ rowIndex: t2.rowIndex - 1, colIndex: t2.colIndex }).getCell();
1005
1159
  o2 && (e3 = o2.toTextUnformatted(true));
1006
1160
  }
1007
- A2?.({ text: e3 });
1008
- }, [l2]), [Ae2, Fe2] = ce((e3) => e3 + 1, 0), [De2, Ie2] = ce((e3) => e3 + 1, 0), Ee2 = 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] } }, () => Se2()), 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) => xe2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [R.Ctrl, R.Shift] } }, () => xe2(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] } }, () => be2()), 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() {
1009
- Ce2(this, { reverse: false }, false);
1161
+ z2?.({ text: e3 });
1162
+ }, [l2]), [Fe2, De2] = ue((e3) => e3 + 1, 0), [Ie2, Ee2] = 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);
1010
1164
  }), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
1011
- Ce2(this, { reverse: true }, false);
1165
+ be2(this, { reverse: true }, false);
1012
1166
  }), 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() {
1013
- Ce2(this, {}, true);
1167
+ be2(this, {}, true);
1014
1168
  }), 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) {
1015
- ee2(this, { named: e3.getName() }, true);
1169
+ te2(this, { named: e3.getName() }, true);
1016
1170
  }), 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) {
1017
- fe2(this, e3);
1171
+ we2(this, e3);
1018
1172
  }), 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) {
1019
- fe2(this, e3, true);
1173
+ we2(this, e3, true);
1020
1174
  }), 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() {
1021
- fe2(this, { name: null }, true);
1022
- }), 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." }, he2), new T("deleteTableStyle", p2, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, me2), new T("formatBorder", p2, { label: "Border", description: "Create an outline border." }, function(e3) {
1023
- ee2(this, { border: e3 });
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 });
1024
1178
  }), new T("formatFillColor", p2, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(e3) {
1025
- ee2(this, { fill: e3 });
1179
+ te2(this, { fill: e3 });
1026
1180
  }), new T("formatFontColor", p2, { label: "Font Color", description: "Change the color of your text." }, function(e3) {
1027
- ee2(this, { font: { fill: e3 } });
1181
+ te2(this, { font: { fill: e3 } });
1028
1182
  }), 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() {
1029
- ee2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), true) } }));
1183
+ te2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), true) } }));
1030
1184
  }), 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() {
1031
- ee2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), false) } }));
1185
+ te2(this, (e3) => ({ font: { size: Je(e3.getFont().getSize(), false) } }));
1032
1186
  }), new T("formatFontFamily", p2, { label: "Font", description: "Select the font your text." }, function(e3) {
1033
- ee2(this, { font: { family: e3 } });
1187
+ te2(this, { font: { family: e3 } });
1034
1188
  }), new T("formatFontSize", p2, { label: "Font Size", description: "Change the size of your text." }, function(e3) {
1035
- ee2(this, { font: { size: e3 } });
1189
+ te2(this, { font: { size: e3 } });
1036
1190
  }), 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) {
1037
1191
  const o2 = this, n2 = { initialValue: e3 ?? t2.state(), context: t2.context(), onInputOption: (e4, t3) => {
1038
- ee2(o2, { numberFormat: e4 });
1192
+ te2(o2, { numberFormat: e4 });
1039
1193
  } };
1040
1194
  v2.showWindow?.("numberFormat", n2);
1041
1195
  }), new T("formatNumberFormat", p2, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(e3) {
1042
- ee2(this, { numberFormat: e3 });
1196
+ te2(this, { numberFormat: e3 });
1043
1197
  }), new T("formatNumberFormatGeneralStyle", p2, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [R.Ctrl, R.Shift] } }, function() {
1044
- ee2(this, { numberFormat: t.Type.General });
1198
+ te2(this, { numberFormat: t.Type.General });
1045
1199
  }), 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() {
1046
- ee2(this, { numberFormat: "#,##0.00" });
1200
+ te2(this, { numberFormat: "#,##0.00" });
1047
1201
  }), 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() {
1048
- ee2(this, { numberFormat: "h:mm AM/PM" });
1202
+ te2(this, { numberFormat: "h:mm AM/PM" });
1049
1203
  }), 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() {
1050
- ee2(this, { numberFormat: "d-mmm-yy" });
1204
+ te2(this, { numberFormat: "d-mmm-yy" });
1051
1205
  }), 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) {
1052
- ee2(this, { numberFormat: e3 ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
1206
+ te2(this, { numberFormat: e3 ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
1053
1207
  }), 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() {
1054
- ee2(this, { numberFormat: "0%" });
1208
+ te2(this, { numberFormat: "0%" });
1055
1209
  }), 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() {
1056
- ee2(this, { numberFormat: "0.00E+00" });
1210
+ te2(this, { numberFormat: "0.00E+00" });
1057
1211
  }), new T("formatNumberFormatCommaStyle", p2, { label: "Comma Style", description: "Format with a thousands separator.", icon: "Comma", shortcut: { key: ",", modifiers: [R.Ctrl] } }, function() {
1058
- ee2(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
1212
+ te2(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
1059
1213
  }), new T("formatNumberFormatIncreaseDecimal", p2, { label: "Increase Decimal", description: "Show more decimal places for a more precise value.", icon: "IncreaseDecimal2" }, function() {
1060
- ee2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), 1) }));
1214
+ te2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), 1) }));
1061
1215
  }), new T("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places.", icon: "DecreaseDecimal2" }, function() {
1062
- ee2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1216
+ te2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1063
1217
  }), 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() {
1064
1218
  }), 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) {
1065
- e3 && pe2(this, e3.getName());
1219
+ e3 && fe2(this, e3.getName());
1066
1220
  }), new T("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", icon: "FunctionSum", shortcut: { key: "=", modifiers: [R.Alt] } }, function() {
1067
- pe2(this, "SUM");
1221
+ fe2(this, "SUM");
1068
1222
  }), new T("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
1069
- pe2(this, "AVERAGE");
1223
+ fe2(this, "AVERAGE");
1070
1224
  }), new T("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1071
- pe2(this, "COUNT");
1225
+ fe2(this, "COUNT");
1072
1226
  }), new T("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
1073
- pe2(this, "MAX");
1227
+ fe2(this, "MAX");
1074
1228
  }), new T("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
1075
- pe2(this, "MIN");
1229
+ fe2(this, "MIN");
1076
1230
  }), new T("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Shift] } }, function() {
1077
- A2?.({ text: l2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Medium Time" } }).toText() });
1231
+ z2?.({ text: l2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Medium Time" } }).toText() });
1078
1232
  }), new T("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl] } }, function() {
1079
- A2?.({ text: l2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Short Date" } }).toText() });
1080
- }), 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: "InsertHyperlink", context: () => Y2, shortcut: [{ key: "K", modifiers: [R.Ctrl] }, { key: "K", modifiers: [R.Ctrl, R.Alt] }] }, async function(e3, t2) {
1233
+ z2?.({ text: l2.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: "InsertHyperlink", context: () => J2, shortcut: [{ key: "K", modifiers: [R.Ctrl] }, { key: "K", modifiers: [R.Ctrl, R.Alt] }] }, async function(e3, t2) {
1081
1235
  const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
1082
- te2(o2, e4, t3);
1236
+ oe2(o2, e4, t3);
1083
1237
  } };
1084
1238
  v2.showWindow?.("hyperlink", n2);
1085
- }), 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: "InsertHyperlink", context: () => Y2 }, async (e3, t2) => {
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: "InsertHyperlink", context: () => J2 }, async (e3, t2) => {
1086
1240
  const o2 = t2.context()();
1087
1241
  if (!o2) return;
1088
1242
  const n2 = o2.getHyperlink();
@@ -1091,38 +1245,38 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1091
1245
  } catch (e4) {
1092
1246
  v2.showError(e4);
1093
1247
  }
1094
- }), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => Y2 }, function(e3, t2) {
1095
- te2(this, null, null);
1248
+ }), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => J2 }, function(e3, t2) {
1249
+ oe2(this, null, null);
1096
1250
  }), 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) => {
1097
1251
  ((e4, t3) => {
1098
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" }), "."] }));
1099
1253
  })(v2, t2.label());
1100
- }), 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: "InsertComment", context: () => Y2 }, async function(e3, t2) {
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: "InsertComment", context: () => J2 }, async function(e3, t2) {
1101
1255
  const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
1102
- oe2(o2, e4);
1256
+ le2(o2, e4);
1103
1257
  } };
1104
1258
  v2.showWindow?.("comments", n2);
1105
- }), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", context: () => Y2 }, function(e3, t2) {
1106
- oe2(this, null);
1259
+ }), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", context: () => J2 }, function(e3, t2) {
1260
+ le2(this, null);
1107
1261
  }), 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) {
1108
1262
  let t2 = null, o2 = null;
1109
- "string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await X.openFileDialog(o2 ?? "image/*"), t2)) && await Te2(this, { file: t2 }, e3?.options);
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);
1110
1264
  }), 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) {
1111
1265
  if (!e3) {
1112
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"] });
1113
1267
  if ("Insert" !== t2.option) return;
1114
1268
  e3 = t2.input;
1115
1269
  }
1116
- e3 && Te2(this, { fetch: e3 });
1270
+ e3 && Re2(this, { fetch: e3 });
1117
1271
  }), 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() {
1118
- fe2(this);
1272
+ we2(this);
1119
1273
  }), 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) {
1120
1274
  let t2 = null, o2 = false;
1121
- e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true), qe2(this, t2, o2);
1275
+ e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true), ye2(this, t2, o2);
1122
1276
  }), 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) {
1123
- ye2(this, e3, true);
1277
+ Ce2(this, e3, true);
1124
1278
  }), 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) {
1125
- ye2(this, e3, false);
1279
+ Ce2(this, e3, false);
1126
1280
  }), 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() {
1127
1281
  const e3 = this.context().table();
1128
1282
  e3 && e3.setShowTotals(!e3.getShowTotals());
@@ -1132,163 +1286,163 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1132
1286
  }), 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() {
1133
1287
  const e3 = this.context().table();
1134
1288
  e3 && e3.setShowFilterButton(!e3.getShowFilterButton());
1135
- }), 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] }] }, Me2), new T("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertColumn2", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
1136
- se2(this);
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" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertColumn2", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
1290
+ ce2(this);
1137
1291
  }), 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() {
1138
- se2(this, s.Orientation.Column);
1292
+ ce2(this, s.Orientation.Column);
1139
1293
  }), 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() {
1140
- return se2(this, s.Orientation.Row);
1294
+ return ce2(this, s.Orientation.Row);
1141
1295
  }), new k("insertRows", p2, { label: "Insert Row(s)", scopedLabels: { insertCells: "Row(s)" }, description: "Insert a row above the current position.", icon: "InsertRow" }, function() {
1142
- return se2(this, s.Orientation.Row, true);
1296
+ return ce2(this, s.Orientation.Row, true);
1143
1297
  }), new k("insertColumns", p2, { label: "Insert Column(s)", scopedLabels: { insertCells: "Column(s)" }, description: "Insert a column before the current position.", icon: "InsertColumn2" }, function() {
1144
- return se2(this, s.Orientation.Column, true);
1298
+ return ce2(this, s.Orientation.Column, true);
1145
1299
  }), new k("insertRowsAfter", p2, { label: "Insert Row Below", scopedLabels: { insertCells: "Row Below" }, description: "Insert a row below the current position." }, function() {
1146
- return se2(this, s.Orientation.Row, true, true);
1300
+ return ce2(this, s.Orientation.Row, true, true);
1147
1301
  }), new k("insertColumnsAfter", p2, { label: "Insert Column After", scopedLabels: { insertCells: "Column After" }, description: "Insert a column after the current position." }, function() {
1148
- return se2(this, s.Orientation.Column, true, true);
1302
+ return ce2(this, s.Orientation.Column, true, true);
1149
1303
  }), new k("deleteCells", p2, { label: "Delete Cells", scopedLabels: { deleteCells: "At Selection" }, description: "Delete the cells.", icon: "DeleteColumns", shortcut: { key: "-", modifiers: [R.Ctrl] } }, function() {
1150
- return ke2(this);
1304
+ return Te2(this);
1151
1305
  }), new k("deleteCellsShiftUp", p2, { label: "Delete Cells (Shift Up)", scopedLabels: { deleteCells: "Shift up" }, description: "Delete cells the current current downward.", icon: "DeleteCellsUp" }, function() {
1152
- return ke2(this, s.Orientation.Row);
1306
+ return Te2(this, s.Orientation.Row);
1153
1307
  }), 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() {
1154
- return ke2(this, s.Orientation.Column);
1308
+ return Te2(this, s.Orientation.Column);
1155
1309
  }), new k("deleteRows", p2, { label: "Delete Rows", scopedLabels: { deleteCells: "Rows" }, description: "Delete the rows at the current selection.", icon: "DeleteRows" }, function() {
1156
- return ke2(this, s.Orientation.Row, true);
1310
+ return Te2(this, s.Orientation.Row, true);
1157
1311
  }), new k("deleteColumns", p2, { label: "Delete Columns", scopedLabels: { deleteCells: "Columns" }, description: "Delete the columns at the current selection.", icon: "DeleteColumns" }, function() {
1158
- return ke2(this, s.Orientation.Column, true);
1312
+ return Te2(this, s.Orientation.Column, true);
1159
1313
  }), 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() {
1160
- return Re2(this, s.Direction.Down);
1314
+ return Me2(this, s.Direction.Down);
1161
1315
  }), 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() {
1162
- return Re2(this, s.Direction.Right);
1316
+ return Me2(this, s.Direction.Right);
1163
1317
  }), 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() {
1164
- return Re2(this, s.Direction.Up);
1318
+ return Me2(this, s.Direction.Up);
1165
1319
  }), 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() {
1166
- return Re2(this, s.Direction.Left);
1320
+ return Me2(this, s.Direction.Left);
1167
1321
  }), new k("formatBorderAddOutline", p2, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [R.Ctrl, R.Shift] } }, function() {
1168
- return ee2(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 } } });
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 } } });
1169
1323
  }), new k("formatBorderClearOutline", p2, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [R.Ctrl, R.Shift] } }, function() {
1170
- return ee2(this, { border: null });
1324
+ return te2(this, { border: null });
1171
1325
  }), new k("formatIndentDecrease", p2, { label: "Decrease Indent", description: "Move your content closer to the border.", icon: "FormatIndentDecrease" }, function() {
1172
- return ee2(this, (e3) => {
1326
+ return te2(this, (e3) => {
1173
1327
  const t2 = e3.getAlignment().getIndent() - 1;
1174
1328
  return { alignment: { indent: t2 > 0 ? t2 : 0 } };
1175
1329
  });
1176
1330
  }), new k("formatIndentIncrease", p2, { label: "Increase Indent", description: "Move your content further from the border.", icon: "FormatIndentIncrease" }, function() {
1177
- return ee2(this, (e3) => {
1331
+ return te2(this, (e3) => {
1178
1332
  const t2 = { alignment: { indent: e3.getAlignment().getIndent() + 1 } };
1179
1333
  return e3.getAlignment().getHorizontal() === r.HorizontalAlignment.General && (t2.alignment.horizontal = r.HorizontalAlignment.Left), t2;
1180
1334
  });
1181
1335
  }), 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() {
1182
- le2(this, o.Content.Values);
1336
+ se2(this, o.Content.Values);
1183
1337
  }), new k("clearFormats", p2, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, icon: "ClearFormats", description: "Clear only the formatting that is applied to the cells." }, function() {
1184
- le2(this, o.Content.Formats);
1338
+ se2(this, o.Content.Formats);
1185
1339
  }), new k("clearHyperlinks", p2, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
1186
- le2(this, o.Content.Hyperlinks);
1340
+ se2(this, o.Content.Hyperlinks);
1187
1341
  }), new k("clearComments", p2, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
1188
- le2(this, o.Content.Comments);
1342
+ se2(this, o.Content.Comments);
1189
1343
  }), 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() {
1190
- le2(this);
1191
- }), 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("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width.", icon: "ColumnsResizeAuto" })], []), Ne2 = ne(() => {
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("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width.", icon: "ColumnsResizeAuto" })], []), He2 = ne(() => {
1192
1346
  let e3 = null;
1193
- return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new M(p2, "sheet"), e3.addCommands(Ee2, true), e3;
1194
- }, [h2, Ee2]), [Pe2, Ve2] = re(false), [He2, Le2] = re(false);
1347
+ return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new M(p2, "sheet"), e3.addCommands(Ne2, true), e3;
1348
+ }, [h2, Ne2]), [Pe2, Ve2] = re(false), [Le2, Be2] = re(false);
1195
1349
  ae(() => {
1196
- if (x2.current !== l2 || !C2) return;
1197
- const e3 = C2.getCoords(), t2 = l2.getTables().getItems({ address: e3[0] });
1198
- _2((e4) => X.isEqualArrays(e4, t2) ? e4 : t2), q2 && t2[0] && Q.isCellWithinRange(q2, t2[0].getRange().getCoords()) ? ue2(t2[0] ?? null) : ue2(null);
1350
+ if (A2.current !== l2 || !b2) return;
1351
+ const e3 = b2.getCoords(), t2 = l2.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);
1199
1353
  const o2 = l2.getSelectedRanges(), n2 = o2.getMerges().length > 0, r2 = o2.isOverlapping();
1200
1354
  let i3 = true;
1201
1355
  for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = Q.isSingleCell(e3[t3]);
1202
- Le2(r2), Ve2(0 === t2.length && !r2 && (n2 || !i3));
1203
- }, [De2, C2, l2]), E(h2, null, { onChange: () => {
1204
- const e3 = !l2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === $2.getMode()?.key;
1205
- Ne2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
1206
- if (t2) return void $2.setMode(null);
1207
- return Ne2.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` } });
1356
+ Be2(r2), Ve2(0 === t2.length && !r2 && (n2 || !i3));
1357
+ }, [Ie2, b2, l2]), N(h2, null, { onChange: () => {
1358
+ const e3 = !l2.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` } });
1208
1362
  });
1209
- } }, [$2, Ae2, h2]), St(l2.getView(), { onFreezeSplitChange: () => {
1210
- Ie2();
1363
+ } }, [W2, Fe2, h2]), St(l2.getView(), { onFreezeSplitChange: () => {
1364
+ Ee2();
1211
1365
  } }), St(l2.getSelection(), { onChange: () => {
1212
- K2();
1366
+ Y2();
1213
1367
  } });
1214
- const Be2 = () => {
1215
- Ne2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => l2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
1216
- }, darkMode: d2.darkMode, autoColor: l2.getStyles().parseColor(d2.strokeFill), schemeLookup: l2.getStyles().schemeLookup(), recentColors: () => l2.getStyles().recentColors(), addRecentColor: (e3) => l2.getStyles().addRecentColor(e3), clearRecentColors: () => l2.getStyles().clearRecentColors() }) }), Ne2.getCommand("formatSheetTabColor").updateCallback((e3) => {
1368
+ const Oe2 = () => {
1369
+ He2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => l2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
1370
+ }, darkMode: d2.darkMode, autoColor: l2.getStyles().parseColor(d2.strokeFill), schemeLookup: l2.getStyles().schemeLookup(), recentColors: () => l2.getStyles().recentColors(), addRecentColor: (e3) => l2.getStyles().addRecentColor(e3), clearRecentColors: () => l2.getStyles().clearRecentColors() }) }), He2.getCommand("formatSheetTabColor").updateCallback((e3) => {
1217
1371
  l2.setTabColor(e3);
1218
- }).update({ state: () => l2?.getTabColor() ?? kt, context: () => ({ onColorSelect: (e3) => {
1219
- }, darkMode: d2.darkMode, autoColor: kt, schemeLookup: l2.getStyles().schemeLookup(), recentColors: () => l2.getStyles().recentColors(), addRecentColor: (e3) => l2.getStyles().addRecentColor(e3), clearRecentColors: () => l2.getStyles().clearRecentColors() }) });
1220
- }, Oe2 = () => {
1221
- Ne2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
1372
+ }).update({ state: () => l2?.getTabColor() ?? Pt, context: () => ({ onColorSelect: (e3) => {
1373
+ }, darkMode: d2.darkMode, autoColor: Pt, schemeLookup: l2.getStyles().schemeLookup(), recentColors: () => l2.getStyles().recentColors(), addRecentColor: (e3) => l2.getStyles().addRecentColor(e3), clearRecentColors: () => l2.getStyles().clearRecentColors() }) });
1374
+ }, $e2 = () => {
1375
+ He2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
1222
1376
  V2(e3);
1223
1377
  }, darkMode: d2.darkMode, quickBorder: P2, autoColor: l2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => l2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: l2.getStyles().schemeLookup() }) });
1224
1378
  };
1225
1379
  ae(() => {
1226
- Oe2();
1380
+ $e2();
1227
1381
  }, [P2]), ae(() => {
1228
1382
  const e3 = !l2.getProtection().isInsertHyperlinksAllowed();
1229
- Ne2.getCommand("openHyperlink").update({ disabled: !Y2().getHyperlink() }), Ne2.getCommand("deleteHyperlink").update({ disabled: e3 || !Y2().getHyperlink() });
1230
- const t2 = Y2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
1231
- Ne2.getCommand("updateHyperlink").update({ label: () => (Y2().getHyperlink(), `${t2} ${o2}`), scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
1232
- }, [Y2()?.getHyperlink(), Ae2]), ae(() => {
1233
- const e3 = Y2().getComments(), t2 = () => e3 ? "Edit" : "Insert", o2 = () => e3 ? "Comments" : "Comment";
1234
- Ne2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
1235
- }, [Y2()?.getComments(), Ae2]), St(l2, { onViewChange: () => {
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}`), 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()}`, scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
1389
+ }, [J2()?.getComments(), Fe2]), St(l2, { onViewChange: () => {
1236
1390
  const e3 = l2.getView();
1237
- Ne2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), Ne2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), Ne2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), Ne2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), Ne2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), Ne2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => l2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && l2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Be2();
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: () => l2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && l2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Oe2();
1238
1392
  }, onTabColorChange: () => {
1239
- Be2();
1393
+ Oe2();
1240
1394
  }, onMergesChange: () => {
1241
- Ie2();
1395
+ Ee2();
1242
1396
  }, onMovablesChange: () => {
1243
- Ie2();
1397
+ Ee2();
1244
1398
  }, onTablesChange: () => {
1245
- Ie2();
1399
+ Ee2();
1246
1400
  }, onProtectionChange: () => {
1247
- Ie2(), Fe2();
1401
+ Ee2(), De2();
1248
1402
  }, onStyleChange: () => {
1249
- Be2(), Oe2(), Ie2();
1403
+ Oe2(), $e2(), Ee2();
1250
1404
  } }), ae(() => {
1251
- Be2(), Oe2();
1405
+ Oe2(), $e2();
1252
1406
  }, [d2]), ae(() => {
1253
- const e3 = !l2.getProtection().isFormatCellsAllowed(), t2 = U2.length > 0 && !ge2 || e3, o2 = ve2(ge2), n2 = { context: o2 };
1254
- Ne2.getCommand("editTable").update(n2), Ne2.getCommand("deleteTable").update(n2), Ne2.getCommand("convertTableToRange").update(n2);
1407
+ const e3 = !l2.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);
1255
1409
  const r2 = { context: o2, disabled: t2 };
1256
- Ne2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...r2 }), Ne2.getCommand("formatTableStyleClearCellStyles").update(r2), Ne2.getCommand("deleteTableStyle").update(r2), Ne2.getCommand("convertTableToRange").update(r2), Ne2.getCommand("insertTable").update({ disabled: t2 || U2.length > 0 });
1257
- const i3 = { context: o2, disabled: t2 || 0 === U2.length };
1258
- Ne2.getCommand("tableHeaderRowToggle").update(i3), Ne2.getCommand("tableTotalRowToggle").update(i3), Ne2.getCommand("autoFilterToggle").update(i3), Ne2.getCommand("formatTableStyleClearTableStyle").update({ ...i3, disabled: i3.disabled || !ge2 || null === ge2.getStyleOptions().name });
1259
- }, [ge2, U2, Ae2]), ae(() => {
1260
- Ne2.getCommand("sheetZoomOut").updateCallback(() => {
1410
+ He2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...r2 }), He2.getCommand("formatTableStyleClearCellStyles").update(r2), He2.getCommand("deleteTableStyle").update(r2), He2.getCommand("convertTableToRange").update(r2), 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(() => {
1261
1415
  l2.getView().update({ zoomScale: X.findNextStep(l2.getView().getZoomScale(), false) });
1262
- }), Ne2.getCommand("sheetZoomIn").updateCallback(() => {
1416
+ }), He2.getCommand("sheetZoomIn").updateCallback(() => {
1263
1417
  l2.getView().update({ zoomScale: X.findNextStep(l2.getView().getZoomScale()) });
1264
- }), Ne2.getCommand("sheetZoom100").updateCallback(() => {
1418
+ }), He2.getCommand("sheetZoom100").updateCallback(() => {
1265
1419
  l2.getView().update({ zoomScale: 100 });
1266
- }), Ne2.getCommand("gridlinesToggle").updateCallback(() => {
1420
+ }), He2.getCommand("gridlinesToggle").updateCallback(() => {
1267
1421
  const e3 = l2.getView().isShowColumnGridlines() && l2.getView().isShowRowGridlines();
1268
1422
  l2.getView().update({ showColumnGridlines: !e3, showRowGridlines: !e3 });
1269
- }), Ne2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
1423
+ }), He2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
1270
1424
  l2.getView().update({ showRowGridlines: !l2.getView().isShowRowGridlines() });
1271
- }), Ne2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
1425
+ }), He2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
1272
1426
  l2.getView().update({ showColumnGridlines: !l2.getView().isShowColumnGridlines() });
1273
- }), Ne2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
1427
+ }), He2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
1274
1428
  l2.getView().update({ gridLineColor: e3 });
1275
- }), Ne2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
1429
+ }), He2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
1276
1430
  const e3 = l2.getView().isShowColumnHeaders() && l2.getView().isShowRowHeaders();
1277
1431
  l2.getView().update({ showColumnHeaders: !e3, showRowHeaders: !e3 });
1278
- }), Ne2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
1432
+ }), He2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
1279
1433
  l2.getView().update({ showColumnHeaders: !l2.getView().isShowColumnHeaders() });
1280
- }), Ne2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
1434
+ }), He2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
1281
1435
  l2.getView().update({ showRowHeaders: !l2.getView().isShowRowHeaders() });
1282
- }), Ne2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
1436
+ }), He2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
1283
1437
  const e3 = l2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && l2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero;
1284
1438
  l2.getView().update({ columnHeaderStyle: e3 ? u.HeaderTextStyle.A1 : u.HeaderTextStyle.Zero, rowHeaderStyle: e3 ? u.HeaderTextStyle.One : u.HeaderTextStyle.Zero });
1285
- }), Ne2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
1439
+ }), He2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
1286
1440
  l2.getView().update({ showFormulas: !l2.getView().isShowFormulas() });
1287
- }), Ne2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1441
+ }), He2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1288
1442
  l2.getView().update({ showZeros: !l2.getView().isShowZeros() });
1289
- }), Ne2.getCommand("calculate").updateCallback(() => {
1443
+ }), He2.getCommand("calculate").updateCallback(() => {
1290
1444
  l2.getEntireRange().calculate(true);
1291
- }), Ne2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
1445
+ }), He2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
1292
1446
  const t2 = l2.getWorkbook();
1293
1447
  if (!t2) return X.EmptyArray;
1294
1448
  const o2 = await t2.getScripts().searchFunctions({ category: e3, includeBuiltIn: true });
@@ -1296,177 +1450,177 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1296
1450
  } }) });
1297
1451
  }, [l2]), ae(() => {
1298
1452
  const e3 = l2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
1299
- Ne2.getCommand("freezeToggle").updateCallback(() => {
1300
- n2() ? l2.getView().setFreezePanes(null) : n2() ? o2() ? l2.getView().setFreezePanes({ coords: { rowIndex: q2.rowIndex } }) : t2() && l2.getView().setFreezePanes({ coords: { colIndex: q2.colIndex } }) : l2.getView().setFreezePanes({ coords: q2 });
1301
- }).update({ state: n2, disabled: () => !q2 || !n2() && 0 === q2.rowIndex && 0 === q2.colIndex }), Ne2.getCommand("freezeToggleHorizontal").updateCallback(() => {
1302
- l2.getView().setFreezePanes({ coords: { rowIndex: t2() ? 0 : q2.rowIndex } });
1303
- }).update({ state: t2, disabled: () => !q2 || !t2() && 0 === q2.rowIndex }), Ne2.getCommand("freezeToggleVertical").updateCallback(() => {
1304
- l2.getView().setFreezePanes({ coords: { colIndex: o2() ? 0 : q2.colIndex } });
1305
- }).update({ state: o2, disabled: () => !q2 || !o2() && 0 === q2.colIndex }), Ne2.getCommand("unfreeze").updateCallback(() => {
1453
+ He2.getCommand("freezeToggle").updateCallback(() => {
1454
+ n2() ? l2.getView().setFreezePanes(null) : n2() ? o2() ? l2.getView().setFreezePanes({ coords: { rowIndex: y2.rowIndex } }) : t2() && l2.getView().setFreezePanes({ coords: { colIndex: y2.colIndex } }) : l2.getView().setFreezePanes({ coords: y2 });
1455
+ }).update({ state: n2, disabled: () => !y2 || !n2() && 0 === y2.rowIndex && 0 === y2.colIndex }), He2.getCommand("freezeToggleHorizontal").updateCallback(() => {
1456
+ l2.getView().setFreezePanes({ coords: { rowIndex: t2() ? 0 : y2.rowIndex } });
1457
+ }).update({ state: t2, disabled: () => !y2 || !t2() && 0 === y2.rowIndex }), He2.getCommand("freezeToggleVertical").updateCallback(() => {
1458
+ l2.getView().setFreezePanes({ coords: { colIndex: o2() ? 0 : y2.colIndex } });
1459
+ }).update({ state: o2, disabled: () => !y2 || !o2() && 0 === y2.colIndex }), He2.getCommand("unfreeze").updateCallback(() => {
1306
1460
  l2.getView().setFreezePanes(null);
1307
1461
  }).update({ disabled: () => !n2() });
1308
- }, [De2, q2, l2, d2]);
1309
- const $e2 = Y2().getStyle(), We2 = $e2.getFont(), Ue2 = $e2.getAlignment(), _e2 = Ue2.getHorizontal(), Ge2 = Ue2.getVertical(), Ze2 = Ue2.getOverflow(), je2 = Ue2.getRotation();
1462
+ }, [Ie2, y2, l2, d2]);
1463
+ const We2 = J2().getStyle(), Ue2 = We2.getFont(), _e2 = We2.getAlignment(), Ge2 = _e2.getHorizontal(), Ze2 = _e2.getVertical(), je2 = _e2.getOverflow(), Xe2 = _e2.getRotation();
1310
1464
  return ae(() => {
1311
- Ne2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => l2.getStyles(), named: () => Y2().getStyle(true).getNamed(), bodyStyle: we2, createTemporaryCell: (e4) => l2.createTemporaryCell(e4) }) }), Ne2.getCommand("formatFillColor").update({ state: () => {
1465
+ He2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => l2.getStyles(), named: () => J2().getStyle(true).getNamed(), bodyStyle: ve2, createTemporaryCell: (e4) => l2.createTemporaryCell(e4) }) }), He2.getCommand("formatFillColor").update({ state: () => {
1312
1466
  let e4 = null;
1313
- const t3 = $e2.getFill();
1467
+ const t3 = We2.getFill();
1314
1468
  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;
1315
1469
  }, context: () => {
1316
1470
  const e4 = l2.getStyles();
1317
1471
  return { onColorSelect: (e5) => {
1318
- L2(e5 ?? kt);
1319
- }, darkMode: d2.darkMode, quickColor: H2, autoColor: kt, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1320
- } }), Ne2.getCommand("formatFontColor").update({ state: () => We2.toJSON()?.fill ? We2.getFill() : null, context: () => {
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: () => {
1321
1475
  const e4 = l2.getStyles();
1322
1476
  return { onColorSelect: (e5) => {
1323
- O2(e5);
1324
- }, darkMode: d2.darkMode, quickColor: B2, autoColor: e4.getNormal().getFont().getFill(), schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
1325
- } }), Ne2.getCommand("formatNumberFormat").update({ state: () => $e2.getNumberFormat(), context: () => Y2 }), Ne2.getCommand("formatNumberDialog").update({ state: () => $e2.getNumberFormat(), context: () => Y2 }), Ne2.getCommand("formatFontFamily").update({ state: () => We2.getFamily() }), Ne2.getCommand("formatFontSize").update({ state: () => We2.getSize() });
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() });
1326
1480
  const e3 = function() {
1327
- const e4 = We2.getWeight() || 0;
1481
+ const e4 = Ue2.getWeight() || 0;
1328
1482
  return !isNaN(e4) && e4 > 500;
1329
1483
  };
1330
- Ne2.getCommand("formatBoldToggle").updateCallback(function() {
1331
- ee2(this, { font: { weight: e3() ? 400 : 700 } });
1484
+ He2.getCommand("formatBoldToggle").updateCallback(function() {
1485
+ te2(this, { font: { weight: e3() ? 400 : 700 } });
1332
1486
  }).update({ state: e3 });
1333
1487
  const t2 = function() {
1334
- return We2.getStyle() === a.Style.Italic;
1488
+ return Ue2.getStyle() === a.Style.Italic;
1335
1489
  };
1336
- Ne2.getCommand("formatItalicToggle").updateCallback(function() {
1337
- ee2(this, { font: { style: t2() ? a.Style.Normal : a.Style.Italic } });
1338
- }).update({ state: t2 }), Ne2.getCommand("formatStrikeThroughToggle").updateCallback(function() {
1339
- ee2(this, { font: { strike: !We2.getStrike() } });
1340
- }).update({ state: We2.getStrike() }), Ne2.getCommand("formatUnderlinedToggle").updateCallback(function() {
1341
- ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.Single ? a.UnderlineStyle.Single : a.UnderlineStyle.None } });
1342
- }).update({ state: We2.getUnderline() === a.UnderlineStyle.Single }), Ne2.getCommand("formatUnderlinedDoubleToggle").updateCallback(function() {
1343
- ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.Double ? a.UnderlineStyle.Double : a.UnderlineStyle.None } });
1344
- }).update({ state: We2.getUnderline() === a.UnderlineStyle.Double }), Ne2.getCommand("formatUnderlinedAccountingToggle").updateCallback(function() {
1345
- ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.SingleAccounting ? a.UnderlineStyle.SingleAccounting : a.UnderlineStyle.None } });
1346
- }).update({ state: We2.getUnderline() === a.UnderlineStyle.SingleAccounting }), Ne2.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function() {
1347
- ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.DoubleAccounting ? a.UnderlineStyle.DoubleAccounting : a.UnderlineStyle.None } });
1348
- }).update({ state: We2.getUnderline() === a.UnderlineStyle.DoubleAccounting }), Ne2.getCommand("formatSuperscriptToggle").updateCallback(function() {
1349
- ee2(this, { font: { verticalAlign: We2.getVerticalAlignment() !== a.VerticalAlignment.Super ? a.VerticalAlignment.Super : a.VerticalAlignment.Baseline } });
1350
- }).update({ state: We2.getVerticalAlignment() === a.VerticalAlignment.Super }), Ne2.getCommand("formatSubscriptToggle").updateCallback(function() {
1351
- ee2(this, { font: { verticalAlign: We2.getVerticalAlignment() !== a.VerticalAlignment.Sub ? a.VerticalAlignment.Sub : a.VerticalAlignment.Baseline } });
1352
- }).update({ state: We2.getVerticalAlignment() === a.VerticalAlignment.Sub });
1353
- const o2 = () => Ze2 === r.Overflow.Visible;
1354
- Ne2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
1355
- ee2(this, { alignment: { overflow: (o2(), r.Overflow.Visible) } });
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 === r.Overflow.Visible;
1508
+ He2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
1509
+ te2(this, { alignment: { overflow: (o2(), r.Overflow.Visible) } });
1356
1510
  }).update({ state: o2 });
1357
- const n2 = () => Ze2 === r.Overflow.Wrap;
1358
- Ne2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
1359
- ee2(this, { alignment: { overflow: n2() ? r.Overflow.Visible : r.Overflow.Wrap } });
1511
+ const n2 = () => je2 === r.Overflow.Wrap;
1512
+ He2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
1513
+ te2(this, { alignment: { overflow: n2() ? r.Overflow.Visible : r.Overflow.Wrap } });
1360
1514
  }).update({ state: n2 });
1361
1515
  const i3 = function() {
1362
- return Ze2 === r.Overflow.Clip;
1516
+ return je2 === r.Overflow.Clip;
1363
1517
  };
1364
- Ne2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
1365
- ee2(this, { alignment: { overflow: i3() ? r.Overflow.Visible : r.Overflow.Clip } });
1518
+ He2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
1519
+ te2(this, { alignment: { overflow: i3() ? r.Overflow.Visible : r.Overflow.Clip } });
1366
1520
  }).update({ state: i3 });
1367
1521
  const s2 = function() {
1368
- return Ze2 === r.Overflow.Shrink;
1522
+ return je2 === r.Overflow.Shrink;
1369
1523
  };
1370
- Ne2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
1371
- ee2(this, { alignment: { overflow: s2() ? r.Overflow.Visible : r.Overflow.Shrink } });
1524
+ He2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
1525
+ te2(this, { alignment: { overflow: s2() ? r.Overflow.Visible : r.Overflow.Shrink } });
1372
1526
  }).update({ state: s2 });
1373
1527
  const c2 = function() {
1374
- return Ze2 === r.Overflow.Shrink;
1528
+ return je2 === r.Overflow.Shrink;
1375
1529
  };
1376
- Ne2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
1377
- ee2(this, { alignment: { overflow: c2() ? r.Overflow.Visible : r.Overflow.Ellipsis } });
1530
+ He2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
1531
+ te2(this, { alignment: { overflow: c2() ? r.Overflow.Visible : r.Overflow.Ellipsis } });
1378
1532
  }).update({ state: c2, disabled: true });
1379
1533
  const g2 = function() {
1380
- return Ge2 === r.VerticalAlignment.Top;
1534
+ return Ze2 === r.VerticalAlignment.Top;
1381
1535
  };
1382
- Ne2.getCommand("formatAlignTopToggle").updateCallback(function() {
1383
- ee2(this, { alignment: { vertical: g2() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Top } });
1536
+ He2.getCommand("formatAlignTopToggle").updateCallback(function() {
1537
+ te2(this, { alignment: { vertical: g2() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Top } });
1384
1538
  }).update({ state: g2 });
1385
1539
  const u2 = function() {
1386
- return Ge2 === r.VerticalAlignment.Center;
1540
+ return Ze2 === r.VerticalAlignment.Center;
1387
1541
  };
1388
- Ne2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
1389
- ee2(this, { alignment: { vertical: u2() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Center } });
1542
+ He2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
1543
+ te2(this, { alignment: { vertical: u2() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Center } });
1390
1544
  }).update({ state: u2 });
1391
1545
  const h3 = function() {
1392
- return Ge2 === r.VerticalAlignment.Bottom;
1546
+ return Ze2 === r.VerticalAlignment.Bottom;
1393
1547
  };
1394
- Ne2.getCommand("formatAlignBottomToggle").updateCallback(function() {
1395
- ee2(this, { alignment: { vertical: (h3(), r.VerticalAlignment.Bottom) } });
1548
+ He2.getCommand("formatAlignBottomToggle").updateCallback(function() {
1549
+ te2(this, { alignment: { vertical: (h3(), r.VerticalAlignment.Bottom) } });
1396
1550
  }).update({ state: h3 });
1397
1551
  const p3 = function() {
1398
- return Ge2 === r.VerticalAlignment.Justify;
1552
+ return Ze2 === r.VerticalAlignment.Justify;
1399
1553
  };
1400
- Ne2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
1401
- ee2(this, { alignment: { vertical: p3() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Justify } });
1554
+ He2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
1555
+ te2(this, { alignment: { vertical: p3() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Justify } });
1402
1556
  }).update({ state: p3 });
1403
1557
  const f3 = function() {
1404
- return Ge2 === r.VerticalAlignment.Distributed;
1558
+ return Ze2 === r.VerticalAlignment.Distributed;
1405
1559
  };
1406
- Ne2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
1407
- ee2(this, { alignment: { vertical: f3() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Distributed } });
1560
+ He2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
1561
+ te2(this, { alignment: { vertical: f3() ? r.VerticalAlignment.Bottom : r.VerticalAlignment.Distributed } });
1408
1562
  }).update({ state: f3 });
1409
1563
  const w3 = function() {
1410
- return _e2 === r.HorizontalAlignment.Left;
1564
+ return Ge2 === r.HorizontalAlignment.Left;
1411
1565
  };
1412
- Ne2.getCommand("formatAlignLeftToggle").updateCallback(function() {
1413
- ee2(this, { alignment: { horizontal: w3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Left } });
1566
+ He2.getCommand("formatAlignLeftToggle").updateCallback(function() {
1567
+ te2(this, { alignment: { horizontal: w3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Left } });
1414
1568
  }).update({ state: w3 });
1415
1569
  const v3 = function() {
1416
- return _e2 === r.HorizontalAlignment.Center;
1570
+ return Ge2 === r.HorizontalAlignment.Center;
1417
1571
  };
1418
- Ne2.getCommand("formatAlignCenterToggle").updateCallback(function() {
1419
- ee2(this, { alignment: { horizontal: v3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Center } });
1572
+ He2.getCommand("formatAlignCenterToggle").updateCallback(function() {
1573
+ te2(this, { alignment: { horizontal: v3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Center } });
1420
1574
  }).update({ state: v3 });
1421
1575
  const q3 = function() {
1422
- return _e2 === r.HorizontalAlignment.CenterContinuous;
1576
+ return Ge2 === r.HorizontalAlignment.CenterContinuous;
1423
1577
  };
1424
- Ne2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
1578
+ He2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
1425
1579
  const e4 = { alignment: { horizontal: q3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.CenterContinuous, rotation: null } };
1426
- ee2(this, e4);
1580
+ te2(this, e4);
1427
1581
  }).update({ state: q3 });
1428
1582
  const y3 = function() {
1429
- return _e2 === r.HorizontalAlignment.Fill;
1583
+ return Ge2 === r.HorizontalAlignment.Fill;
1430
1584
  };
1431
- Ne2.getCommand("formatAlignFillToggle").updateCallback(function() {
1585
+ He2.getCommand("formatAlignFillToggle").updateCallback(function() {
1432
1586
  const e4 = { alignment: { horizontal: y3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Fill, rotation: null } };
1433
- ee2(this, e4);
1587
+ te2(this, e4);
1434
1588
  }).update({ state: y3 });
1435
1589
  const C3 = function() {
1436
- return _e2 === r.HorizontalAlignment.Distributed;
1590
+ return Ge2 === r.HorizontalAlignment.Distributed;
1437
1591
  };
1438
- Ne2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
1439
- ee2(this, { alignment: { horizontal: C3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Distributed } });
1592
+ He2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
1593
+ te2(this, { alignment: { horizontal: C3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Distributed } });
1440
1594
  }).update({ state: C3 });
1441
1595
  const b3 = function() {
1442
- return _e2 === r.HorizontalAlignment.Right;
1596
+ return Ge2 === r.HorizontalAlignment.Right;
1443
1597
  };
1444
- Ne2.getCommand("formatAlignRightToggle").updateCallback(function() {
1445
- ee2(this, { alignment: { horizontal: b3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Right } });
1598
+ He2.getCommand("formatAlignRightToggle").updateCallback(function() {
1599
+ te2(this, { alignment: { horizontal: b3() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Right } });
1446
1600
  }).update({ state: b3 });
1447
1601
  const S2 = function() {
1448
- return _e2 === r.HorizontalAlignment.Justify;
1602
+ return Ge2 === r.HorizontalAlignment.Justify;
1449
1603
  };
1450
- Ne2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
1451
- ee2(this, { alignment: { horizontal: S2() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Justify } });
1604
+ He2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
1605
+ te2(this, { alignment: { horizontal: S2() ? r.HorizontalAlignment.General : r.HorizontalAlignment.Justify } });
1452
1606
  }).update({ state: S2 });
1453
- const x3 = !l2.getProtection().isFormatCellsAllowed(), k2 = _e2 === r.HorizontalAlignment.CenterContinuous || _e2 === r.HorizontalAlignment.Fill;
1454
- Ne2.getCommand("formatTextRotate0").updateCallback(function(e4) {
1455
- ee2(this, { alignment: { rotation: 0 } });
1456
- }).update({ disabled: x3 || k2, state: 0 === je2 }), Ne2.getCommand("formatTextRotate45").updateCallback(function(e4) {
1457
- ee2(this, { alignment: { rotation: e4 ?? 1 ? 45 : 0 } });
1458
- }).update({ disabled: x3 || k2, state: 45 === je2 }), Ne2.getCommand("formatTextRotate90").updateCallback(function(e4) {
1459
- ee2(this, { alignment: { rotation: e4 ?? 1 ? 90 : 0 } });
1460
- }).update({ disabled: x3 || k2, state: 90 === je2 }), Ne2.getCommand("formatTextRotate270").updateCallback(function(e4) {
1461
- ee2(this, { alignment: { rotation: e4 ?? 1 ? 270 : 0 } });
1462
- }).update({ disabled: x3 || k2, state: 270 === je2 }), Ne2.getCommand("formatTextRotate315").updateCallback(function(e4) {
1463
- ee2(this, { alignment: { rotation: e4 ?? 1 ? 315 : 0 } });
1464
- }).update({ disabled: x3 || k2, state: 315 === je2 }), Ne2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
1465
- ee2(this, { alignment: { rotation: e4 } });
1466
- }).update({ disabled: x3 || k2, state: je2 ?? 0 });
1467
- }, [$e2, l2, d2, H2, B2]), ae(() => {
1607
+ const x3 = !l2.getProtection().isFormatCellsAllowed(), k2 = Ge2 === r.HorizontalAlignment.CenterContinuous || Ge2 === r.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, l2, d2, L2, O2]), ae(() => {
1468
1622
  const e3 = !l2.getProtection().isFormatCellsAllowed(), t2 = l2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
1469
- J2(t3, async (o3) => {
1623
+ ee2(t3, async (o3) => {
1470
1624
  const n3 = async (n4 = false) => {
1471
1625
  const l4 = await Promise.resolve(v2.showBusy(t3.label()));
1472
1626
  try {
@@ -1494,7 +1648,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1494
1648
  }
1495
1649
  }, void 0, void 0, false);
1496
1650
  }, n2 = (e4) => {
1497
- J2(e4, async (e5) => {
1651
+ ee2(e4, async (e5) => {
1498
1652
  try {
1499
1653
  const t3 = e5.getSelectedRanges();
1500
1654
  t3.unmerge();
@@ -1505,60 +1659,60 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1505
1659
  }
1506
1660
  });
1507
1661
  };
1508
- Ne2.getCommand("mergeToggle").updateCallback(function() {
1662
+ He2.getCommand("mergeToggle").updateCallback(function() {
1509
1663
  Q.isSingleCell(l2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
1510
- }).update({ state: t2, disabled: !Pe2 || e3 }), Ne2.getCommand("mergeHorizontal").updateCallback(function() {
1664
+ }).update({ state: t2, disabled: !Pe2 || e3 }), He2.getCommand("mergeHorizontal").updateCallback(function() {
1511
1665
  o2(s.Orientations.Column, this);
1512
- }).update({ disabled: !Pe2 || e3 }), Ne2.getCommand("mergeVertical").updateCallback(function() {
1666
+ }).update({ disabled: !Pe2 || e3 }), He2.getCommand("mergeVertical").updateCallback(function() {
1513
1667
  o2(s.Orientations.Row, this);
1514
- }).update({ disabled: !Pe2 }), Ne2.getCommand("unmerge").updateCallback(function() {
1668
+ }).update({ disabled: !Pe2 }), He2.getCommand("unmerge").updateCallback(function() {
1515
1669
  n2(this);
1516
1670
  }).update({ disabled: !t2 || !Pe2 || e3 });
1517
1671
  const i3 = { disabled: e3 };
1518
- Ne2.getCommand("hideRows").updateCallback(function() {
1519
- J2(this, (e4) => {
1672
+ He2.getCommand("hideRows").updateCallback(function() {
1673
+ ee2(this, (e4) => {
1520
1674
  e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
1521
1675
  });
1522
- }).update(i3), Ne2.getCommand("hideColumns").updateCallback(function() {
1523
- J2(this, (e4) => {
1676
+ }).update(i3), He2.getCommand("hideColumns").updateCallback(function() {
1677
+ ee2(this, (e4) => {
1524
1678
  e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
1525
1679
  });
1526
- }).update(i3), Ne2.getCommand("unhideRows").updateCallback(function() {
1527
- J2(this, (e4) => {
1680
+ }).update(i3), He2.getCommand("unhideRows").updateCallback(function() {
1681
+ ee2(this, (e4) => {
1528
1682
  e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
1529
1683
  });
1530
- }).update(i3), Ne2.getCommand("unhideColumns").updateCallback(function() {
1531
- J2(this, (e4) => {
1684
+ }).update(i3), He2.getCommand("unhideColumns").updateCallback(function() {
1685
+ ee2(this, (e4) => {
1532
1686
  e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
1533
1687
  });
1534
- }).update(i3), Ne2.getCommand("autoFitRows").updateCallback(function() {
1535
- J2(this, (e4) => {
1688
+ }).update(i3), He2.getCommand("autoFitRows").updateCallback(function() {
1689
+ ee2(this, (e4) => {
1536
1690
  e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Row });
1537
1691
  });
1538
- }).update(i3), Ne2.getCommand("autoFitColumns").updateCallback(function() {
1539
- J2(this, (e4) => {
1692
+ }).update(i3), He2.getCommand("autoFitColumns").updateCallback(function() {
1693
+ ee2(this, (e4) => {
1540
1694
  e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Column });
1541
1695
  });
1542
1696
  }).update(i3);
1543
1697
  let a2 = false, d3 = 0, c2 = false, g2 = false, u2 = 0, h3 = false;
1544
- !C2 || e3 || He2 || (a2 = C2.isEntireColumnsAny(), a2 && !C2.isEntireColumns() ? c2 = true : d3 = C2.getColumnCount(), g2 = C2.isEntireRowsAny(), g2 && !C2.isEntireRows() ? h3 = true : u2 = C2.getRowCount());
1545
- const m2 = { disabled: e3 || C2 && 1 !== C2.getCount() };
1546
- Ne2.getCommand("sortAscending").update(m2), Ne2.getCommand("sortDescending").update(m2);
1547
- const p3 = { disabled: a2 || g2 || e3 || He2 }, f3 = a2 || e3 || He2 || h3;
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());
1699
+ 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;
1548
1702
  f3 && (d3 = 1);
1549
- const w3 = g2 || e3 || He2 || c2;
1703
+ const w3 = g2 || e3 || Le2 || c2;
1550
1704
  w3 && (u2 = 1);
1551
- let q3 = "", y3 = "", b3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "";
1552
- d3 > 1 && (k2 = y3 = d3 + " ", T2 = b3 = "s"), u2 > 1 && (R2 = S2 = u2 + " ", M2 = x3 = "s"), "copy" === $2.getMode()?.key ? (q3 = S2 = y3 = "Copied ", b3 = x3 = "s") : "cut" === $2.getMode()?.key && (q3 = S2 = y3 = "Cut ", b3 = x3 = "s");
1553
- let A3 = "", z2 = "";
1554
- if (C2) {
1555
- const e4 = C2.getDefaultShiftOrientation() === s.Orientation.Column;
1556
- A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z2 = ` (${e4 ? "Shift Left" : "Shift up"})`, Ne2.getCommand("deleteCells").update({ label: `Delete Cells${z2}` });
1557
- }
1558
- Ne2.getCommand("insertCells").update({ label: `Insert ${q3}Cells${A3}`, scopedLabels: { insertCells: `${q3}At Selection` } }), Ne2.getCommand("insertCellsShiftRight").update(p3), Ne2.getCommand("insertCellsShiftDown").update(p3), Ne2.getCommand("deleteCellsShiftUp").update(p3), Ne2.getCommand("deleteCellsShiftLeft").update(p3), Ne2.getCommand("insertRows").update({ label: `Insert ${S2}Row${x3}`, scopedLabels: { insertCells: `${S2}Row${x3}` }, disabled: w3 }), Ne2.getCommand("insertRowsAfter").update({ label: `Insert ${S2}Row${x3} Below`, disabled: w3 }), Ne2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${b3}`, scopedLabels: { insertCells: `${y3}Column${b3}` }, disabled: f3 }), Ne2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${b3} After`, disabled: f3 }), Ne2.getCommand("deleteRows").update({ label: `Delete ${R2}Row${M2}`, scopedLabels: { deleteCells: `${R2}Row${M2}` }, disabled: w3 }), Ne2.getCommand("deleteColumns").update({ label: `Delete ${k2}Column${T2}`, scopedLabels: { deleteCells: `${k2}Column${T2}` }, disabled: f3 });
1559
- }, [De2, Pe2, He2, C2, $2, v2, Ae2]), ae(() => {
1705
+ let q3 = "", y3 = "", C3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "";
1706
+ d3 > 1 && (k2 = y3 = d3 + " ", T2 = C3 = "s"), u2 > 1 && (R2 = S2 = u2 + " ", M2 = x3 = "s"), "copy" === W2.getMode()?.key ? (q3 = S2 = y3 = "Copied ", C3 = x3 = "s") : "cut" === W2.getMode()?.key && (q3 = S2 = y3 = "Cut ", C3 = x3 = "s");
1707
+ let A3 = "", z3 = "";
1708
+ if (b2) {
1709
+ const e4 = b2.getDefaultShiftOrientation() === s.Orientation.Column;
1710
+ A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z3 = ` (${e4 ? "Shift Left" : "Shift up"})`, He2.getCommand("deleteCells").update({ label: `Delete Cells${z3}` });
1711
+ }
1712
+ He2.getCommand("insertCells").update({ label: `Insert ${q3}Cells${A3}`, 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 ${S2}Row${x3}`, scopedLabels: { insertCells: `${S2}Row${x3}` }, disabled: w3 }), He2.getCommand("insertRowsAfter").update({ label: `Insert ${S2}Row${x3} Below`, disabled: w3 }), He2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${C3}`, scopedLabels: { insertCells: `${y3}Column${C3}` }, disabled: f3 }), He2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${C3} After`, disabled: f3 }), He2.getCommand("deleteRows").update({ label: `Delete ${R2}Row${M2}`, scopedLabels: { deleteCells: `${R2}Row${M2}` }, disabled: w3 }), He2.getCommand("deleteColumns").update({ label: `Delete ${k2}Column${T2}`, scopedLabels: { deleteCells: `${k2}Column${T2}` }, disabled: f3 });
1713
+ }, [Ie2, Pe2, Le2, b2, W2, v2, Fe2]), ae(() => {
1560
1714
  const e3 = l2.getProtection(), t2 = l2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
1561
- Ne2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
1715
+ He2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
1562
1716
  let r2 = null;
1563
1717
  try {
1564
1718
  if (t2) {
@@ -1574,29 +1728,29 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1574
1728
  } catch (e4) {
1575
1729
  r2?.(), v2.showError(e4);
1576
1730
  }
1577
- }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ne2.getCommand("deleteTable").update(n2), Ne2.getCommand("sortAscending").update(n2), Ne2.getCommand("sortDescending").update(n2), Ne2.getCommand("sortCustom")?.update(n2), Ne2.getCommand("updateComments").update(n2), Ne2.getCommand("deleteComments").update(n2), Ne2.getCommand("insertChart")?.update(n2), Ne2.getCommand("insertImageFromFile").update(n2), Ne2.getCommand("insertImageFromURL").update(n2), Ne2.getCommand("formatBorder").update(n2), Ne2.getCommand("formatFillColor").update(n2), Ne2.getCommand("formatFontColor").update(n2), Ne2.getCommand("formatBoldToggle").update(n2), Ne2.getCommand("formatItalicToggle").update(n2), Ne2.getCommand("formatUnderlinedToggle").update(n2), Ne2.getCommand("formatStrikeThroughToggle").update(n2), Ne2.getCommand("formatSuperscriptToggle").update(n2), Ne2.getCommand("formatSubscriptToggle").update(n2), Ne2.getCommand("formatAlignTopToggle").update(n2), Ne2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ne2.getCommand("formatTextOverflowWrapToggle").update(n2), Ne2.getCommand("formatTextOverflowClipToggle").update(n2), Ne2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ne2.getCommand("formatAlignMiddleToggle").update(n2), Ne2.getCommand("formatAlignBottomToggle").update(n2), Ne2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ne2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ne2.getCommand("formatAlignLeftToggle").update(n2), Ne2.getCommand("formatAlignCenterToggle").update(n2), Ne2.getCommand("formatAlignRightToggle").update(n2), Ne2.getCommand("formatAlignJustifyToggle").update(n2), Ne2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ne2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ne2.getCommand("formatAlignFillToggle").update(n2), Ne2.getCommand("formatFontSizeIncrease").update(n2), Ne2.getCommand("formatFontSizeDecrease").update(n2), Ne2.getCommand("formatFontFamily").update(n2), Ne2.getCommand("formatFontSize").update(n2), Ne2.getCommand("formatNumberFormat").update(n2), Ne2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ne2.getCommand("formatNumberFormatNumberStyle").update(n2), Ne2.getCommand("formatNumberFormatTimeStyle").update(n2), Ne2.getCommand("formatNumberFormatDateStyle").update(n2), Ne2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ne2.getCommand("formatNumberFormatPercentStyle").update(n2), Ne2.getCommand("formatNumberFormatScientificStyle").update(n2), Ne2.getCommand("formatNumberFormatCommaStyle").update(n2), Ne2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ne2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ne2.getCommand("hideColumns").update(n2), Ne2.getCommand("unhideColumns").update(n2), Ne2.getCommand("hideRows").update(n2), Ne2.getCommand("unhideRows").update(n2), Ne2.getCommand("insertFunctionSum").update(n2), Ne2.getCommand("insertFunctionAverage").update(n2), Ne2.getCommand("insertFunctionCount").update(n2), Ne2.getCommand("insertFunctionMax").update(n2), Ne2.getCommand("insertFunctionMin").update(n2), Ne2.getCommand("insertFunction").update(n2), Ne2.getCommand("startEditCurrentTime").update(n2), Ne2.getCommand("startEditCurrentDate").update(n2), Ne2.getCommand("startEditValueAbove").update(n2), Ne2.getCommand("fillDown").update(n2), Ne2.getCommand("fillRight").update(n2), Ne2.getCommand("fillUp").update(n2), Ne2.getCommand("fillLeft").update(n2), Ne2.getCommand("formatCellStyle").update(n2), Ne2.getCommand("formatTableStyle").update(n2), Ne2.getCommand("formatPainterToggle").update(n2), Ne2.getCommand("formatBorderAddOutline").update(n2), Ne2.getCommand("formatBorderClearOutline").update(n2), Ne2.getCommand("formatIndentDecrease").update(n2), Ne2.getCommand("formatIndentIncrease").update(n2), Ne2.getCommand("clearContents").update(n2), Ne2.getCommand("clearFormats").update(n2), Ne2.getCommand("clearAll").update(n2), Ne2.getCommand("clearComments").update(n2), Ne2.getCommand("clearHyperlinks").update(n2), Ne2.getCommand("autoFilterClear").update(n2), Ne2.getCommand("autoFilterReapply").update(n2);
1578
- const i3 = _e2 === r.HorizontalAlignment.CenterContinuous || _e2 === r.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
1579
- Ne2.getCommand("formatTextRotate0").update(a2), Ne2.getCommand("formatTextRotate45").update(a2), Ne2.getCommand("formatTextRotate90").update(a2), Ne2.getCommand("formatTextRotate270").update(a2), Ne2.getCommand("formatTextRotate315").update(a2), Ne2.getCommand("formatTextRotateCustom").update(a2), Ne2.getCommand("formatTextRotateVertical").update(a2);
1580
- }, [De2]), Ne2;
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 === r.HorizontalAlignment.CenterContinuous || Ge2 === r.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
+ }, [Ie2]), He2;
1581
1735
  }
1582
- const Rt = oe(le((e2, t2) => {
1736
+ const Lt = oe(le((e2, t2) => {
1583
1737
  const { style: o2 = C.EmptyCssProperties, orientation: n2, sheet: r2, onShowTooltip: l2, onCloseTooltip: i2, onScrollOffset: a2, showCustomScrollButtons: s2 = false, offset: d2 = 0, totalSize: c2 = 0, viewportSize: g2 = 0, ...u2 } = e2;
1584
1738
  if (!r2) throw new Error("SheetScrollBar needs a sheet model");
1585
1739
  const [h2] = Me(), m2 = S(l2, [l2]), p2 = S(i2, [i2]), f2 = De(h2, t2), [w2, v2] = re(() => {
1586
1740
  const e3 = r2.getView().getTopLeft();
1587
- return n2 === N.Vertical ? e3.top : e3.left;
1741
+ return n2 === H.Vertical ? e3.top : e3.left;
1588
1742
  }), q2 = () => {
1589
1743
  const e3 = r2.getView().getFreezePanes();
1590
- if (n2 === N.Vertical) {
1744
+ if (n2 === H.Vertical) {
1591
1745
  if (0 === e3.coords.rowIndex) return { shift: 0, scroll: 0 };
1592
1746
  return { shift: r2.getRowHeaders().findOffset(e3.coords.rowIndex) - e3.topLeft.top, scroll: e3.topLeft.top };
1593
1747
  }
1594
1748
  if (0 === e3.coords.colIndex) return { shift: 0, scroll: 0 };
1595
1749
  return { shift: r2.getColumnHeaders().findOffset(e3.coords.colIndex) - e3.topLeft.left, scroll: e3.topLeft.left };
1596
- }, [y2, b2] = re(q2), [x2, k2] = re(null), [T2, R2] = re(false), M2 = n2 === N.Vertical ? r2.getRowHeaders() : r2.getColumnHeaders(), A2 = () => {
1750
+ }, [y2, b2] = re(q2), [x2, k2] = re(null), [T2, R2] = re(false), M2 = n2 === H.Vertical ? r2.getRowHeaders() : r2.getColumnHeaders(), A2 = () => {
1597
1751
  const e3 = r2.getUsedRange()?.getCoords() ?? Q.EmptyRange, t3 = r2.getSelection().getCoords().cell;
1598
1752
  return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
1599
- }, [z2, F2] = re(A2), D2 = z2 ? (n2 === N.Vertical ? z2.rowIndex : z2.colIndex) + 1 : 0, I2 = () => {
1753
+ }, [z2, F2] = re(A2), D2 = z2 ? (n2 === H.Vertical ? z2.rowIndex : z2.colIndex) + 1 : 0, I2 = () => {
1600
1754
  const e3 = A2();
1601
1755
  Q.isEqualCells(z2, e3) || F2(e3);
1602
1756
  };
@@ -1607,14 +1761,14 @@ const Rt = oe(le((e2, t2) => {
1607
1761
  }, [r2]), ae(() => {
1608
1762
  if (!x2) return T2 && p2?.(), void R2(false);
1609
1763
  const e3 = M2.getTextAt(M2.findIndex(w2 / (r2.getView().getZoomScale() / 100) + y2.scroll + y2.shift));
1610
- R2(true), m2?.({ ...x2, display: (n2 === N.Vertical ? "Row" : "Column") + ": " + e3 });
1764
+ R2(true), m2?.({ ...x2, display: (n2 === H.Vertical ? "Row" : "Column") + ": " + e3 });
1611
1765
  }, [d2, w2, y2, n2, x2, M2, T2, r2]);
1612
1766
  const E2 = S((e3, t3, o3) => {
1613
1767
  v2(e3);
1614
1768
  const n3 = e3 + y2.scroll, r3 = t3 + y2.shift, l3 = o3 + y2.shift + y2.scroll;
1615
1769
  a2?.(n3, r3, l3);
1616
- }, [a2, y2]), V2 = d2 - y2.scroll, H2 = g2 - y2.shift, L2 = c2 - (y2.shift + y2.scroll), B2 = M2.findOffset(D2) * (r2.getView().getZoomScale() / 100) - (y2.scroll + y2.shift);
1617
- return Z(P, { ref: f2, style: o2, offset: V2, viewportSize: H2, totalSize: L2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
1770
+ }, [a2, y2]), N2 = d2 - y2.scroll, V2 = g2 - y2.shift, L2 = c2 - (y2.shift + y2.scroll), B2 = M2.findOffset(D2) * (r2.getView().getZoomScale() / 100) - (y2.scroll + y2.shift);
1771
+ return Z(P, { ref: f2, style: o2, offset: N2, viewportSize: V2, totalSize: L2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
1618
1772
  k2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
1619
1773
  }, onScrollOffset: E2, onMouseOut: () => {
1620
1774
  k2(null);
@@ -1622,25 +1776,25 @@ const Rt = oe(le((e2, t2) => {
1622
1776
  k2(null);
1623
1777
  }, minSize: B2, ...u2 });
1624
1778
  }));
1625
- Rt.displayName = "SheetScrollbar";
1626
- const Mt = (e2, t2, o2 = null) => {
1779
+ Lt.displayName = "SheetScrollbar";
1780
+ const Bt = (e2, t2, o2 = null) => {
1627
1781
  const n2 = [];
1628
1782
  for (let r2 = 0; r2 < e2.length; r2++) if (e2[r2].value.isSelectedAll) {
1629
1783
  if (e2[r2].min === e2[r2].max && e2[r2].min === o2) continue;
1630
1784
  n2.push({ address: { min: e2[r2].min, max: e2[r2].max }, update: t2 });
1631
1785
  }
1632
1786
  return n2;
1633
- }, At = oe(le((e2, t2) => {
1634
- const { sheetHeader: o2, gridRef: n2, sheetElement: r2, commands: l2, 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] = ce((e3) => e3 + 1, 0), [D2, I2] = ce((e3) => e3 + 1, 0), E2 = o2?.getSheet(), N2 = ie(false);
1787
+ }, Ot = oe(le((e2, t2) => {
1788
+ const { sheetHeader: o2, gridRef: n2, sheetElement: r2, commands: l2, 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, I2] = ue((e3) => e3 + 1, 0), E2 = o2?.getSheet(), N2 = ie(false);
1635
1789
  se(() => {
1636
1790
  N2.current = true;
1637
1791
  }, [o2]);
1638
- const P2 = ne(() => o2.getEntireRange().getCoords().max + 1, [o2]), H2 = ne(() => {
1792
+ const H2 = ne(() => o2.getEntireRange().getCoords().max + 1, [o2]), P2 = ne(() => {
1639
1793
  const e3 = R2 === s.Orientation.Column;
1640
1794
  return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
1641
1795
  }, [x2]), [L2, B2] = re(E2?.getView().getZoomScale() / 100), [O2, $2] = re(null);
1642
1796
  St(o2, { onSizesChange: (e3) => {
1643
- B2(E2?.getView().getZoomScale() / 100), me2(ue2());
1797
+ B2(E2?.getView().getZoomScale() / 100), me2(ge2());
1644
1798
  } });
1645
1799
  const W2 = de(() => {
1646
1800
  M2.current?.invalidate(), I2();
@@ -1654,9 +1808,9 @@ const Mt = (e2, t2, o2 = null) => {
1654
1808
  }, onViewChange() {
1655
1809
  U2();
1656
1810
  } }), se(() => {
1657
- me2(ue2());
1811
+ me2(ge2());
1658
1812
  }, [R2, L2, i2]), se(() => {
1659
- $2(null), B2(o2?.getSheet().getView().getZoomScale() / 100), me2(ue2());
1813
+ $2(null), B2(o2?.getSheet().getView().getZoomScale() / 100), me2(ge2());
1660
1814
  }, [o2]);
1661
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) => {
1662
1816
  t3 /= L2;
@@ -1675,7 +1829,7 @@ const Mt = (e2, t2, o2 = null) => {
1675
1829
  const a3 = o2.getSelectedRuns();
1676
1830
  a3.length > 1 ? l3 = "Resize " + (r3 ? "Columns" : "Rows") : i3 = a3[0];
1677
1831
  const s2 = { hidden: t3 <= 0, size: (t3 <= 0 ? n3 : t3) / L2 };
1678
- o2.updateHeaderPairs(Mt(a3, s2, e3));
1832
+ o2.updateHeaderPairs(Bt(a3, s2, e3));
1679
1833
  }
1680
1834
  if (i3) {
1681
1835
  const e4 = i3.max - i3.min + 1;
@@ -1686,7 +1840,7 @@ const Mt = (e2, t2, o2 = null) => {
1686
1840
  }, [A2, o2, v2]), le2 = S((e3, t3) => {
1687
1841
  const o3 = R2 === s.Orientation.Column;
1688
1842
  f2(e3, t3, `Resize ${o3 ? "Column" : "Row"}(s)`);
1689
- }, [f2]), ge2 = S((e3) => {
1843
+ }, [f2]), ce2 = S((e3) => {
1690
1844
  let t3 = false;
1691
1845
  const n3 = R2 === s.Orientation.Column, r3 = o2.getSheet().getEntireRange().getCoords(), l3 = [], i3 = o2.getSelectedRuns(), a3 = (e4) => {
1692
1846
  let t4;
@@ -1698,14 +1852,14 @@ const Mt = (e2, t2, o2 = null) => {
1698
1852
  }
1699
1853
  t3 || a3({ min: e3, max: e3 }), o2.getSheet().getRanges(l3).autoFit({ orientations: n3 ? s.Orientations.Column : s.Orientations.Row });
1700
1854
  if (j2(e3)) {
1701
- const n4 = { hidden: null }, r4 = Mt(i3, n4);
1855
+ const n4 = { hidden: null }, r4 = Bt(i3, n4);
1702
1856
  t3 || r4.push({ address: e3, update: n4 }), o2.updateHeaderPairs(r4);
1703
1857
  }
1704
1858
  v2?.(e3, null, "Resize Column(s)");
1705
- }, [A2, o2, v2, j2]), ue2 = () => {
1859
+ }, [A2, o2, v2, j2]), ge2 = () => {
1706
1860
  const e3 = R2 === s.Orientation.Column;
1707
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) };
1708
- }, [he2, me2] = re(() => ue2()), pe2 = de((e3, t3) => !(e3.nativeEvent.which === V.Right) || !J2(R2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [R2, J2]), fe2 = S((e3) => {
1862
+ }, [he2, me2] = re(() => ge2()), pe2 = de((e3, t3) => !(e3.nativeEvent.which === V.Right) || !J2(R2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [R2, J2]), fe2 = S((e3) => {
1709
1863
  r2.focusSheet();
1710
1864
  }, [r2]), Se2 = S((e3) => {
1711
1865
  E2?.getSelection().updateCoords(e3);
@@ -1718,7 +1872,7 @@ const Mt = (e2, t2, o2 = null) => {
1718
1872
  e3 && e3.setAdjusting(e3.getCoords());
1719
1873
  }, [E2, k2]), Te2 = S(async () => {
1720
1874
  E2?.getSelection().setAdjusting(null), T2?.();
1721
- }, [E2, T2]), { ...Re2 } = ve({ orientation: R2, headerCount: P2, 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;
1875
+ }, [E2, 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;
1722
1876
  ae(() => {
1723
1877
  if (!M2.current) return void $2(null);
1724
1878
  const e3 = R2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : te2, r3 = (t4, o3, n4) => {
@@ -1726,72 +1880,71 @@ const Mt = (e2, t2, o2 = null) => {
1726
1880
  }, l3 = (t4, o3, n4) => {
1727
1881
  const r4 = { x: 0, y: 0, width: 0, height: 0 };
1728
1882
  if (e3) {
1729
- const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(P2, o3) }), be);
1883
+ const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(H2, o3) }), be);
1730
1884
  if (!e4) return;
1731
1885
  r4.x = e4.x, r4.width = e4.width;
1732
1886
  } else {
1733
- const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(P2, o3), colStart: 0, colEnd: 0 }), be);
1887
+ const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(H2, o3), colStart: 0, colEnd: 0 }), be);
1734
1888
  if (!e4) return;
1735
1889
  r4.y = e4.y, r4.height = e4.height;
1736
1890
  }
1737
1891
  return { x: r4.x, y: r4.y, width: r4.width, height: r4.height };
1738
1892
  };
1739
1893
  $2([(r4) => {
1740
- const l4 = [];
1741
- let i3 = null, a3 = e3 ? r4.getVisibleColumns() : r4.getVisibleRows();
1742
- const s2 = e3 ? r4.getTotalRangeCoords().colStart : r4.getTotalRangeCoords().rowStart;
1743
- a3.length > 0 && a3[0] > s2 && (a3 = [a3[0] - 1, ...a3]);
1744
- let d3 = [];
1745
- const c3 = [];
1746
- for (let e4 = 0; e4 < a3.length; e4++) {
1747
- const o3 = a3[e4], r5 = e4 < a3.length - 1 ? a3[e4 + 1] : o3 + K2(o3 + 1, false) + 1, l5 = o3 + 1 !== r5;
1748
- if (!i3 || i3.max < o3) if (t3.length > 0 && t3[t3.length - 1].max >= o3) {
1894
+ let l4 = null, i3 = e3 ? r4.getVisibleColumns() : r4.getVisibleRows();
1895
+ const a3 = e3 ? r4.getTotalRangeCoords().colStart : r4.getTotalRangeCoords().rowStart;
1896
+ i3.length > 0 && i3[0] > a3 && (i3 = [i3[0] - 1, ...i3]);
1897
+ let s2 = [];
1898
+ const d3 = [], c3 = i3.length;
1899
+ for (let e4 = 0; e4 < c3; e4++) {
1900
+ const o3 = i3[e4], r5 = e4 < c3 - 1 ? i3[e4 + 1] : o3 + K2(o3 + 1, false) + 1, g4 = o3 + 1 !== r5;
1901
+ if (!l4 || l4.max < o3) if (t3.length > 0 && t3[t3.length - 1].max >= o3) {
1749
1902
  const e5 = X.findEqualOrGreater(t3, o3, (e6) => e6.max);
1750
- i3 = t3[e5];
1751
- } else i3 = null;
1752
- let g4 = false, u3 = false;
1753
- if (i3?.value && (i3.min <= o3 || i3.min <= r5 && !l5) && (g4 = true, u3 = i3.value.isSelectedAll), o3 === s2) {
1903
+ l4 = t3[e5];
1904
+ } else l4 = null;
1905
+ let u3 = false, h4 = false;
1906
+ if (l4?.value && (l4.min <= o3 || l4.min <= r5 && !g4) && (u3 = true, h4 = l4.value.isSelectedAll), o3 === a3) {
1754
1907
  let e5 = false, t4 = false;
1755
- i3?.value && i3.min <= o3 && (e5 = true, t4 = i3.value.isSelectedAll), o3 > 0 && c3.push({ index: o3 - 1, isNextHidden: l5, isSelected: e5, isSelectedAll: t4, disabledResize: true });
1908
+ l4?.value && l4.min <= o3 && (e5 = true, t4 = l4.value.isSelectedAll), o3 > 0 && d3.push({ index: o3 - 1, isNextHidden: g4, isSelected: e5, isSelectedAll: t4, disabledResize: true });
1756
1909
  }
1757
- if (u3 && d3.push(c3.length), c3.push({ index: o3, isHidden: 0 === e4 && K2(o3, false) > 0, isNextHidden: l5, isSelected: g4, isSelectedAll: u3, onDividerMouseDown: q2, onDividerResizeStart: le2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ge2 }), l5) {
1758
- let e5 = false, l6 = false;
1759
- if (i3 && i3.min >= o3 && i3.max <= r5 - 1 && i3.value.isSelectedAll && d3.push(c3.length), i3?.value && i3.max >= r5) ;
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: le2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 }), g4) {
1911
+ let e5 = false, i4 = false;
1912
+ if (l4 && l4.min >= o3 && l4.max <= r5 - 1 && l4.value.isSelectedAll && s2.push(d3.length), l4?.value && l4.max >= r5) ;
1760
1913
  else if (t3.length > 0 && t3[t3.length - 1].max >= r5) {
1761
1914
  const e6 = X.findEqualOrGreater(t3, r5, (e7) => e7.max);
1762
- i3 = t3[e6];
1763
- } else i3 = null;
1764
- i3?.value && i3.min <= r5 && (e5 = i3.value.isSelected, l6 = i3.value.isSelectedAll), r5 > 0 && c3.push({ index: r5 - 1, isHidden: true, isSelected: e5, isSelectedAll: l6, onDividerMouseDown: q2, onDividerResizeStart: le2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ge2 });
1915
+ l4 = t3[e6];
1916
+ } else l4 = null;
1917
+ l4?.value && l4.min <= r5 && (e5 = l4.value.isSelected, i4 = l4.value.isSelectedAll), r5 > 0 && d3.push({ index: r5 - 1, isHidden: true, isSelected: e5, isSelectedAll: i4, onDividerMouseDown: q2, onDividerResizeStart: le2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 });
1765
1918
  }
1766
1919
  }
1767
- if (d3.length > 0) {
1768
- let o3 = d3.length - 1;
1769
- if (d3.length > 0) {
1770
- const t4 = c3[d3[o3]].index;
1920
+ if (s2.length > 0) {
1921
+ let o3 = s2.length - 1;
1922
+ if (s2.length > 0) {
1923
+ const t4 = d3[s2[o3]].index;
1771
1924
  let n5 = null;
1772
1925
  e3 ? (n5 = r4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: t4 }), n5.x + n5.width > r4.getBounds().width && (o3 -= 1, 0 === o3 && (o3 = -1))) : (n5 = r4.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: 0 }), n5.y + n5.height > r4.getBounds().height && (o3 -= 1, 0 === o3 && (o3 = -1)));
1773
1926
  }
1774
1927
  const n4 = t3?.[t3.length - 1], l5 = r4.getAnchor();
1775
1928
  if ("t" === l5 || "l" === l5) {
1776
- const e4 = c3[d3[Math.max(0, d3.length - 1)]];
1929
+ const e4 = d3[s2[Math.max(0, s2.length - 1)]];
1777
1930
  e4.showTouchDivider = n4 && n4.max <= e4.index;
1778
- } else o3 >= 0 && (c3[d3[o3]].showTouchDivider = true);
1931
+ } else o3 >= 0 && (d3[s2[o3]].showTouchDivider = true);
1779
1932
  }
1780
- const { header: g3, headerSelect: h3, headerSelectAll: m3, headerHover: p3 } = u2 ?? {};
1781
- for (let e4 = 0; e4 < c3.length; e4++) l4.push(Z(Ce, { orientation: R2, view: r4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...c3[e4] }, `divider${e4}`));
1782
- return l4;
1933
+ 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: r4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...d3[e4] }, `divider${e4}`);
1935
+ return w3;
1783
1936
  }, (e4) => {
1784
- const o3 = [];
1785
- for (let n4 = 0; t3 && n4 < t3.length; n4++) o3.push(r3(`selection:${e4.getAnchor()}:${n4}`, 0, l3(t3[n4].min, t3[n4].max, e4)));
1937
+ const o3 = [], n4 = t3.length;
1938
+ for (let i3 = 0; t3 && i3 < n4; i3++) o3.push(r3(`selection:${e4.getAnchor()}:${i3}`, 0, l3(t3[i3].min, t3[i3].max, e4)));
1786
1939
  return o3;
1787
1940
  }]);
1788
- }, [D2, true, Me2, u2, he2, P2, g2, A2, L2]), ae(() => {
1941
+ }, [F2, true, Me2, u2, he2, H2, g2, A2, L2]), ae(() => {
1789
1942
  M2.current?.invalidate();
1790
1943
  }, [A2]);
1791
1944
  const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
1792
1945
  const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: r3 } = u2 ?? {}, { range: l3, key: i3, ...a3 } = e3;
1793
1946
  return Z(qe, { orientation: R2, index: R2 === s.Orientation.Column ? l3.colStart : l3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * L2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: r3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
1794
- }, [A2, P2, u2, L2, o2]), Fe2 = F(), De2 = ne(() => {
1947
+ }, [A2, H2, u2, L2, o2]), Fe2 = D(), De2 = ne(() => {
1795
1948
  const e3 = "white", t3 = "black", o3 = {};
1796
1949
  if ("touch" !== C.detectIt().primaryInput) {
1797
1950
  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`;
@@ -1815,18 +1968,18 @@ const Mt = (e2, t2, o2 = null) => {
1815
1968
  if (!p2) return;
1816
1969
  const o3 = R2 === s.Orientation.Column;
1817
1970
  p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
1818
- }, [Re2, p2]), Pe2 = ne(() => {
1971
+ }, [Re2, p2]), He2 = ne(() => {
1819
1972
  const e3 = R2 === s.Orientation.Column;
1820
- return Z("div", { ref: Ie2, children: Z(ye, { className: "sheet-header", style: De2, ref: M2, scrollPoint: H2, columnCount: e3 ? P2 : 1, rowCount: e3 ? 1 : P2, 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: Ee2, zoom: L2, cellRenderer: ze2, overlays: O2 }) });
1821
- }, [O2, he2, a2, d2, H2, De2, D2]);
1973
+ return Z("div", { ref: Ie2, 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: Ee2, zoom: L2, cellRenderer: ze2, overlays: O2 }) });
1974
+ }, [O2, he2, a2, d2, P2, De2, F2]);
1822
1975
  return ae(() => {
1823
1976
  N2.current = false, M2.current?.invalidate(), I2();
1824
- }, [o2, u2]), Pe2;
1825
- })), zt = oe(le((e2, t2) => {
1977
+ }, [o2, u2]), He2;
1978
+ })), $t = oe(le((e2, t2) => {
1826
1979
  const { view: o2, sheet: n2, getVisibleCells: r2, gridStyle: l2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ut({ getVisibleCells: r2, getBorderAt: i2, darkMode: l2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
1827
1980
  return s2 && o2 ? s2 : null;
1828
- })), Ft = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, Dt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, It = { type: o.Content.Values }, Et = { fitDestination: true, type: o.Content.Formats }, Nt = { fitDestination: true, type: o.Content.Formulas }, Pt = { transpose: true }, Vt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Ht = ({ element: e2, sheet: t2, sheetView: n2, commands: r2, onClipboardUpdate: l2, onPaste: i2, selectionRenderer: a2 = Se, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", ...h2 }) => {
1829
- const m2 = S(a2, [a2]), w2 = ie(null), v2 = F(), q2 = v2.getMode(), y2 = ne(() => ({ element: e2, doCopy: (e3) => {
1981
+ })), Wt = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, Ut = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, _t = { type: o.Content.Values }, Gt = { fitDestination: true, type: o.Content.Formats }, Zt = { fitDestination: true, type: o.Content.Formulas }, jt = { transpose: true }, Kt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Xt = ({ element: e2, sheet: t2, sheetView: n2, commands: r2, onClipboardUpdate: l2, 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) => {
1830
1983
  const o2 = t2.getSelectedRanges().getSnapshot(e3);
1831
1984
  return new p(o2);
1832
1985
  } }), [t2, n2, e2]), C2 = ne(() => ({ element: e2, importFromExternal: async (e3, o2) => {
@@ -1843,7 +1996,7 @@ const Mt = (e2, t2, o2 = null) => {
1843
1996
  } }), [t2, n2, e2]), { clipboard: b2, ...x2 } = A({ ...h2, source: y2, commands: r2, target: C2, onClipboardUpdate: (e3) => {
1844
1997
  const t3 = "range" === e3?.getItemType() ? e3 : null;
1845
1998
  if (t3) {
1846
- const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? Dt : Ft, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
1999
+ const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? Ut : Wt, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
1847
2000
  e4?.args?.isClipboard || b2.clear(true), t4?.onModeChange?.(e4);
1848
2001
  } };
1849
2002
  v2.setMode(o2);
@@ -1868,7 +2021,7 @@ const Mt = (e2, t2, o2 = null) => {
1868
2021
  }, [r2, e2]), ae(() => {
1869
2022
  if (!r2) return;
1870
2023
  const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
1871
- r2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ...It, ...e4 })).update(e3), r2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...Et, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...Nt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...Pt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Vt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("cut").update(e3), r2.getCommand("paste").update(e3);
2024
+ r2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ..._t, ...e4 })).update(e3), r2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...Gt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...Zt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...jt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Kt, description: t3.label(), ...e4 })).update(e3), r2.getCommand("cut").update(e3), r2.getCommand("paste").update(e3);
1872
2025
  }, [t2, r2]);
1873
2026
  const k2 = ne(() => {
1874
2027
  if (!q2 || !w2.current) return;
@@ -1887,21 +2040,21 @@ const Mt = (e2, t2, o2 = null) => {
1887
2040
  } : null;
1888
2041
  }, [q2, t2, n2, d2, g2, c2, u2]);
1889
2042
  return { ...x2, clipboard: b2, overlays: k2 };
1890
- }, Lt = oe(le((e2, t2) => {
1891
- const { view: o2, element: n2, sheet: r2, gridStyle: l2, commands: i2 } = e2, a2 = l2.body ?? {}, s2 = r2.getView(), { overlays: d2 } = Ht({ element: n2, sheet: r2, sheetView: s2, commands: i2, copyForegroundColor: l2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: l2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
2043
+ }, Yt = oe(le((e2, t2) => {
2044
+ const { view: o2, element: n2, sheet: r2, gridStyle: l2, commands: i2 } = e2, a2 = l2.body ?? {}, s2 = r2.getView(), { overlays: d2 } = Xt({ element: n2, sheet: r2, sheetView: s2, commands: i2, copyForegroundColor: l2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: l2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
1892
2045
  return St(r2?.getSelection(), { onChange(e3) {
1893
2046
  } }), ae(() => {
1894
2047
  o2?.getStage();
1895
2048
  }, [o2?.getStage()]), d2 && o2 ? d2(o2) : null;
1896
- })), Bt = "_sheet-selection_12wyx_5", Ot = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, $t = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, Wt = { key: "dragCopy", description: "Drag selection to copy cell contents." }, Ut = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, _t = (e2, t2) => t2.ctrlKey && t2.shiftKey ? Ut : t2.ctrlKey ? Wt : t2.shiftKey ? $t : Ot, Gt = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, Zt = oe(le((e2, t2) => {
2049
+ })), Jt = "_sheet-selection_12wyx_5", Qt = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, eo = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, to = { key: "dragCopy", description: "Drag selection to copy cell contents." }, oo = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, no = (e2, t2) => t2.ctrlKey && t2.shiftKey ? oo : t2.ctrlKey ? to : t2.shiftKey ? eo : Qt, ro = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, lo = oe(le((e2, t2) => {
1897
2050
  const { view: o2, commands: n2, className: r2, onFirstRender: l2, 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) => {
1898
2051
  Q.isEqualSelectionCoords(e3, v2) || d2 && d2.getSelection().updateCoords(e3);
1899
- }, [d2, v2]), x2 = F(), k2 = ie(null), [T2, R2] = re(d2?.getProtection().isLocked()), [M2, A2] = re(d2?.getView().getMovableSelection().length > 0), D2 = "touch" === C.detectIt().primaryInput, I2 = !D2 && u2, E2 = null !== h2 || M2, N2 = S((e3) => {
2052
+ }, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] = re(d2?.getProtection().isLocked()), [M2, A2] = re(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, I2 = !z2 && u2, E2 = null !== h2 || M2, N2 = S((e3) => {
1900
2053
  const t3 = Q.cellToRange(e3);
1901
2054
  if (d2.isClosed()) return t3;
1902
2055
  const o3 = d2.getRange(t3, { ignoreHidden: true }).getMerges();
1903
2056
  return 0 === o3.length ? t3 : o3[0];
1904
- }, [d2]), P2 = S((e3, t3, o3, n3, r3, l3) => {
2057
+ }, [d2]), H2 = S((e3, t3, o3, n3, r3, l3) => {
1905
2058
  const i3 = d2.getSelectedRange().getExtended(n3, e3).getCoords();
1906
2059
  switch (n3) {
1907
2060
  case s.Direction.Up:
@@ -1913,10 +2066,10 @@ const Mt = (e2, t2, o2 = null) => {
1913
2066
  case s.Direction.Right:
1914
2067
  return i3.colEnd;
1915
2068
  }
1916
- }, [d2]), V2 = S(() => {
2069
+ }, [d2]), P2 = S(() => {
1917
2070
  const e3 = d2.getUsedRange()?.getCoords(), t3 = d2.getRowHeaders().getUsedRange()?.getCoords(), o3 = d2.getColumnHeaders().getUsedRange()?.getCoords();
1918
2071
  return { ...e3, colEnd: Math.max(e3?.colEnd ?? 0, o3?.max ?? 0), rowEnd: Math.max(e3?.rowEnd ?? 0, t3?.max ?? 0) };
1919
- }, [d2]), L2 = S((e3, t3) => d2.getRowHeaders().hiddenHeadersAt(e3, t3), [d2]), B2 = S((e3, t3) => d2.getColumnHeaders().hiddenHeadersAt(e3, t3), [d2]), O2 = S((e3) => d2.getRange(e3, { ignoreHidden: true }).getMerges(), [d2]), $2 = S((e3) => {
2072
+ }, [d2]), V2 = S((e3, t3) => d2.getRowHeaders().hiddenHeadersAt(e3, t3), [d2]), B2 = S((e3, t3) => d2.getColumnHeaders().hiddenHeadersAt(e3, t3), [d2]), O2 = S((e3) => d2.getRange(e3, { ignoreHidden: true }).getMerges(), [d2]), $2 = S((e3) => {
1920
2073
  d2?.getSelection().setAdjusting(e3);
1921
2074
  }, [d2]), W2 = S(async () => {
1922
2075
  d2?.getSelection().setAdjusting(null);
@@ -1934,10 +2087,10 @@ const Mt = (e2, t2, o2 = null) => {
1934
2087
  } }), St(d2, { onProtectionChange: () => {
1935
2088
  R2(d2.getProtection().isLocked());
1936
2089
  } });
1937
- const { body: _2 = {} } = g2 || {}, G2 = z(), j2 = o2.getLayout(), K2 = !(I2 && v2.ranges.length <= 1 && null === h2 && !T2 && (!x2.getMode() || U2)), { cursor: X2, overlay: Y2, onPointerDown: J2 } = we({ gridRef: c2, commands: n2, layout: j2, getCellCoordsAsRangeCoords: N2, selection: v2, fillHandleBorderColor: _2.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: K2, disableMoveDrag: D2 || !(u2 && v2.ranges.length <= 1 && null === h2 && !T2), disableTouchSelection: E2, onSelectionChange: y2, onSelectionDragStart: $2, onSelectionDragEnd: W2, onMoveDragStart: (e3, t3, o3) => {
1938
- x2.setMode(_t(0, o3));
2090
+ const { body: _2 = {} } = g2 || {}, G2 = F(), j2 = o2.getLayout(), K2 = !(I2 && v2.ranges.length <= 1 && null === h2 && !T2 && (!x2.getMode() || U2)), { cursor: X2, overlay: Y2, onPointerDown: J2 } = we({ gridRef: c2, commands: n2, layout: j2, getCellCoordsAsRangeCoords: N2, selection: v2, fillHandleBorderColor: _2.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: K2, disableMoveDrag: z2 || !(u2 && v2.ranges.length <= 1 && null === h2 && !T2), disableTouchSelection: E2, onSelectionChange: y2, onSelectionDragStart: $2, onSelectionDragEnd: W2, onMoveDragStart: (e3, t3, o3) => {
2091
+ x2.setMode(no(0, o3));
1939
2092
  }, onMoveDragUpdate: (e3, t3, o3) => {
1940
- x2.setMode(_t(0, o3));
2093
+ x2.setMode(no(0, o3));
1941
2094
  }, onMoveDragEnd: (e3, t3) => {
1942
2095
  x2.setMode(null);
1943
2096
  }, onMoveDragDone: async (e3, t3, o3) => {
@@ -1963,7 +2116,7 @@ const Mt = (e2, t2, o2 = null) => {
1963
2116
  } finally {
1964
2117
  a3?.();
1965
2118
  }
1966
- }, contentfulCellFinder: P2, hiddenRowsAt: L2, hiddenColumnsAt: B2, mergedRanges: O2, getDataCoords: V2, canSelectionSpanMergedCells: (e3) => {
2119
+ }, contentfulCellFinder: H2, hiddenRowsAt: V2, hiddenColumnsAt: B2, mergedRanges: O2, getDataCoords: P2, canSelectionSpanMergedCells: (e3) => {
1967
2120
  const t3 = d2.getRange(e3);
1968
2121
  return t3.isEntireColumns() || t3.isEntireRows();
1969
2122
  }, onFill: async (e3, t3) => {
@@ -1979,7 +2132,7 @@ const Mt = (e2, t2, o2 = null) => {
1979
2132
  }
1980
2133
  }, onFillPreview: (e3, t3, n3) => {
1981
2134
  if (c2.current && f2) {
1982
- x2.setMode(Gt);
2135
+ x2.setMode(ro);
1983
2136
  try {
1984
2137
  k2.current?.direction !== n3 && (k2.current = null, d2.getRange(e3).autoFill(t3, { previewOnly: (e4) => {
1985
2138
  k2.current = { callback: e4, direction: n3 };
@@ -1989,23 +2142,23 @@ const Mt = (e2, t2, o2 = null) => {
1989
2142
  const l3 = r3.toText();
1990
2143
  if (!l3) return;
1991
2144
  const i3 = Q.cellToRange(r3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
1992
- let c3 = 0, g3 = 0, u3 = H.Bottom;
2145
+ let c3 = 0, g3 = 0, u3 = L.Bottom;
1993
2146
  if (n3 === s.Direction.Down) {
1994
2147
  c3 = j2.getColOffset(i3.colEnd + 1) - a3.x;
1995
2148
  const e4 = j2.getRowOffset(i3.rowEnd), t4 = j2.getRowOffset(i3.rowEnd + 1);
1996
- g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = H.Right;
2149
+ g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
1997
2150
  } else if (n3 === s.Direction.Right) {
1998
2151
  g3 = j2.getRowOffset(i3.rowEnd + 1) - a3.y;
1999
2152
  const e4 = j2.getColOffset(i3.colEnd), t4 = j2.getColOffset(i3.colEnd + 1);
2000
- c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = H.Bottom;
2153
+ c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
2001
2154
  } else if (n3 === s.Direction.Up) {
2002
2155
  c3 = j2.getColOffset(i3.colEnd + 1) - a3.x;
2003
2156
  const e4 = j2.getRowOffset(i3.rowStart), t4 = j2.getRowOffset(i3.rowStart + 1);
2004
- g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = H.Right;
2157
+ g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
2005
2158
  } else if (n3 === s.Direction.Left) {
2006
2159
  g3 = j2.getRowOffset(i3.rowEnd + 1) - a3.y;
2007
2160
  const e4 = j2.getColOffset(i3.colStart), t4 = j2.getColOffset(i3.colStart + 1);
2008
- c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = H.Bottom;
2161
+ c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
2009
2162
  }
2010
2163
  f2({ anchor: { x: c3, y: g3 }, display: l3, placement: u3 });
2011
2164
  } catch (e4) {
@@ -2024,24 +2177,24 @@ const Mt = (e2, t2, o2 = null) => {
2024
2177
  };
2025
2178
  }, [o2?.getStage()]);
2026
2179
  const te2 = b(t2, () => ({}), []), oe2 = ie(null);
2027
- return Z("div", { className: Ae(r2, "sheet-selection", Bt), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Re([te2, oe2]), ...m2, children: Y2(o2) });
2028
- })), jt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), Kt = { fireOnModelChange: false }, Xt = oe(le((e2, t2) => {
2029
- const { children: o2, view: n2, movable: r2, onRefLoad: l2, 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(jt), [q2, y2] = re(null), [C2, b2] = re(false), S2 = ie(null);
2180
+ return Z("div", { className: Ae(r2, "sheet-selection", Jt), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Re([te2, oe2]), ...m2, children: Y2(o2) });
2181
+ })), io = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), ao = { fireOnModelChange: false }, so = oe(le((e2, t2) => {
2182
+ const { children: o2, view: n2, movable: r2, onRefLoad: l2, 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(io), [q2, y2] = re(null), [C2, b2] = re(false), S2 = ie(null);
2030
2183
  se(() => {
2031
2184
  if (r2.isClosed()) return;
2032
2185
  const e3 = r2.getBounds();
2033
2186
  if (!e3) return;
2034
2187
  const t3 = n2.toViewBounds(e3);
2035
- v2(t3 ?? jt), g2(t3 ?? jt);
2188
+ v2(t3 ?? io), g2(t3 ?? io);
2036
2189
  }, [n2?.getBounds()]), St(r2, { onBoundsChange: (e3) => {
2037
2190
  const t3 = e3.getBounds();
2038
2191
  if (!t3) return;
2039
2192
  const o3 = n2.toViewBounds(t3);
2040
- v2(o3 ?? jt), g2(o3);
2193
+ v2(o3 ?? io), g2(o3);
2041
2194
  }, onSelectionChange: () => {
2042
2195
  const e3 = X.hasFocus(S2.current, true);
2043
2196
  !C2 && !e3 || r2.isSelected() || d2();
2044
- } }), St(r2, { onRequestFocus: () => X.whenFocus(S2.current, true) }, Kt), ae(() => {
2197
+ } }), St(r2, { onRequestFocus: () => X.whenFocus(S2.current, true) }, ao), ae(() => {
2045
2198
  const e3 = S2.current;
2046
2199
  return l2(e3), () => {
2047
2200
  i2(e3);
@@ -2060,16 +2213,16 @@ const Mt = (e2, t2, o2 = null) => {
2060
2213
  }, onBlur: (e3) => {
2061
2214
  q2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
2062
2215
  }, ...f2, children: x2 });
2063
- })), Yt = "_movable-area_314c6_5", Jt = oe(le((e2, t2) => {
2064
- const { view: o2, movables: n2, movablesView: r2, renderMovable: l2, 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 = ie(true), D2 = ie(/* @__PURE__ */ new Map()), I2 = ie(/* @__PURE__ */ new Map()), E2 = ie(/* @__PURE__ */ new Map()), N2 = ie(/* @__PURE__ */ new Map()), P2 = ie(/* @__PURE__ */ new Map()), V2 = ie({ onRequestFocus: (e3) => (ue2(e3), null) }), H2 = ie(null), L2 = ie(null), B2 = ie(null), [O2, $2] = ce((e3) => e3 + 1, 0);
2216
+ })), co = "_movable-area_314c6_5", go = oe(le((e2, t2) => {
2217
+ const { view: o2, movables: n2, movablesView: r2, renderMovable: l2, 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 = ie(true), D2 = ie(/* @__PURE__ */ new Map()), I2 = ie(/* @__PURE__ */ new Map()), E2 = 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);
2065
2218
  se(() => {
2066
2219
  $2();
2067
2220
  }, [o2, n2]), St(n2, { onCollectionChange: () => {
2068
- const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true }), t3 = P2.current;
2221
+ const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true }), t3 = H2.current;
2069
2222
  t3.forEach((e4) => {
2070
2223
  e4();
2071
2224
  }), t3.clear();
2072
- const r3 = V2.current;
2225
+ const r3 = P2.current;
2073
2226
  for (let o3 = 0; o3 < e3.length; o3++) {
2074
2227
  const n3 = e3[o3];
2075
2228
  if (n3.isClosed()) continue;
@@ -2099,15 +2252,15 @@ const Mt = (e2, t2, o2 = null) => {
2099
2252
  })), G2.current), []), Y2 = ie(null), J2 = S(async (e3, t3) => {
2100
2253
  Y2.current = t3;
2101
2254
  await (async () => !(!await K2.then() || !B2.current))() && Y2.current === t3 && B2.current.dragStart(e3, t3);
2102
- }, [k2]), [Q2, ee2] = re(false), oe2 = ie(null), le2 = ie(null), ue2 = S(async (e3 = null) => {
2255
+ }, [k2]), [Q2, ee2] = re(false), oe2 = ie(null), le2 = ie(null), ce2 = S(async (e3 = null) => {
2103
2256
  if (e3 || (e3 = r2.getMovableSelection()[0]), !e3) return y2?.(), false;
2104
2257
  const t3 = E2.current.get(e3);
2105
2258
  t3 ? (await X.whenFocus(t3), t3.focus(), le2.current = t3, oe2.current = null) : oe2.current = e3;
2106
2259
  }, [r2]);
2107
2260
  ae(() => {
2108
- Q2 && k2.length > 0 && le2.current !== k2[0] && ue2(), F2.current && (q2?.(), F2.current = false);
2261
+ Q2 && k2.length > 0 && le2.current !== k2[0] && ce2(), F2.current && (q2?.(), F2.current = false);
2109
2262
  }, [k2]);
2110
- const he2 = ne(() => {
2263
+ const ge2 = ne(() => {
2111
2264
  const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true });
2112
2265
  if (0 === e3.length && 0 === D2.current.size) return null;
2113
2266
  const t3 = (t4, n3, r3, i4 = true) => {
@@ -2130,7 +2283,7 @@ const Mt = (e2, t2, o2 = null) => {
2130
2283
  }), e4 ? pe2() : fe2();
2131
2284
  }
2132
2285
  }, 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)" } };
2133
- return Z(Xt, { ...s4 }, `movable-${t4.getUUID()}`);
2286
+ return Z(so, { ...s4 }, `movable-${t4.getUUID()}`);
2134
2287
  }, i3 = D2.current, a3 = /* @__PURE__ */ new Map(), s3 = [];
2135
2288
  for (let o3 = 0; o3 < e3.length; o3++) {
2136
2289
  const n3 = e3[o3];
@@ -2179,20 +2332,20 @@ const Mt = (e2, t2, o2 = null) => {
2179
2332
  e3.preventDefault(), e3.srcElement.scrollTop = 0, e3.srcElement.scrollLeft = 0;
2180
2333
  });
2181
2334
  }, [we2.current]);
2182
- const ve2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ue2, focus: () => {
2183
- ue2();
2335
+ const ve2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ce2, focus: () => {
2336
+ ce2();
2184
2337
  } }), [r2]), [qe2, ye2] = re(null), Ce2 = ie(false), be2 = ie(false), Se2 = ie(false);
2185
2338
  ae(() => {
2186
2339
  if (d2 || 0 === k2.length) return;
2187
2340
  if (Se2.current) return;
2188
2341
  if (Ce2.current) return;
2189
2342
  if (be2.current) return void requestAnimationFrame(() => {
2190
- B2.current && H2.current && B2.current.refTargets.length > 0 && (Se2.current = true, _2.current?.(true)), T2([...k2]);
2343
+ B2.current && V2.current && B2.current.refTargets.length > 0 && (Se2.current = true, _2.current?.(true)), T2([...k2]);
2191
2344
  });
2192
2345
  Ce2.current = true;
2193
2346
  const e3 = te.lazy(async () => {
2194
2347
  try {
2195
- const e4 = await import("./DKdH16-HSCcJj0sr.mjs");
2348
+ const e4 = await import("./KkpF4b78aMAv4WI4.mjs");
2196
2349
  return Ce2.current = false, be2.current = true, T2([...k2]), e4;
2197
2350
  } catch (e4) {
2198
2351
  return console.warn(e4), _2.current?.(false), null;
@@ -2200,7 +2353,7 @@ const Mt = (e2, t2, o2 = null) => {
2200
2353
  });
2201
2354
  ye2(e3);
2202
2355
  }, [k2, d2, c2, g2]);
2203
- const xe2 = ne(() => !qe2 || d2 ? null : Z(ge, { 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) => {
2356
+ 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) => {
2204
2357
  me2(e3.target, "Resize");
2205
2358
  }, onResize: (e3) => {
2206
2359
  if (!L2.current) return e3.stopDrag(), void $2();
@@ -2236,7 +2389,7 @@ const Mt = (e2, t2, o2 = null) => {
2236
2389
  }, onDragEnd: (e3) => {
2237
2390
  }, onMouseUp: (e3) => {
2238
2391
  } }) }), [O2, qe2, k2, o2, d2, c2, g2, R2, A2]);
2239
- return Z("div", { className: Ae(u2, "movable-area", Yt), 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: H2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
2392
+ return Z("div", { className: Ae(u2, "movable-area", co), 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) => {
2240
2393
  C2?.(), ee2(true);
2241
2394
  }, onBlur: (e3) => {
2242
2395
  ee2(false);
@@ -2280,15 +2433,15 @@ const Mt = (e2, t2, o2 = null) => {
2280
2433
  const t4 = r2.getMovableSelection();
2281
2434
  r2.selectMovables(n2.getItems(), true), r2.selectMovables(t4, true), e3.preventDefault();
2282
2435
  } else "ArrowLeft" === e3.key ? (l3 ? s3(i3, false) : o3 ? a3(-10) : d3({ x: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowRight" === e3.key ? (l3 ? s3(i3, true) : o3 ? a3(10) : d3({ x: t3 ? 10 : 1 }), e3.preventDefault()) : "ArrowUp" === e3.key ? (l3 ? s3(i3, true) : d3({ y: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowDown" === e3.key && (l3 ? s3(i3, false) : d3({ y: t3 ? 10 : 1 }), e3.preventDefault());
2283
- }, children: [he2, xe2] }) }) });
2284
- })), Qt = (e2) => {
2436
+ }, children: [ge2, xe2] }) }) });
2437
+ })), uo = (e2) => {
2285
2438
  let t2 = Number.MAX_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER, n2 = 0, r2 = 0;
2286
2439
  for (let l2 = 0; l2 < e2.length; l2++) {
2287
2440
  const i2 = e2[l2].getBounds();
2288
2441
  t2 = Math.min(i2.x, t2), o2 = Math.min(i2.y, o2), n2 = Math.max(i2.x + i2.width, n2), r2 = Math.max(i2.y + i2.height, r2);
2289
2442
  }
2290
2443
  return { x: t2, y: o2, width: n2 - t2, height: r2 - o2 };
2291
- }, eo = (e2, t2 = true) => {
2444
+ }, ho = (e2, t2 = true) => {
2292
2445
  const o2 = [], n2 = t2 ? "x" : "y", r2 = t2 ? "y" : "x", l2 = t2 ? "width" : "height";
2293
2446
  let i2 = 0, a2 = Number.MAX_SAFE_INTEGER, s2 = 0;
2294
2447
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -2308,8 +2461,8 @@ const Mt = (e2, t2, o2 = null) => {
2308
2461
  }
2309
2462
  return c2.set(o2[o2.length - 1].movable, o2[o2.length - 1].bounds), c2;
2310
2463
  };
2311
- function to(e2) {
2312
- const { movables: t2, movablesView: o2, transactional: n2, commands: r2, target: l2, onRepeatCommandChange: i2 } = e2, a2 = z(), s2 = F();
2464
+ function mo(e2) {
2465
+ const { movables: t2, movablesView: o2, transactional: n2, commands: r2, target: l2, onRepeatCommandChange: i2 } = e2, a2 = F(), s2 = D();
2313
2466
  ie(s2.getMode()).current = s2.getMode();
2314
2467
  const d2 = S(async (e3, t3, o3 = null, n3 = true) => {
2315
2468
  const r3 = async () => {
@@ -2327,7 +2480,7 @@ function to(e2) {
2327
2480
  }
2328
2481
  };
2329
2482
  await r3();
2330
- }, [i2, a2]), [c2, g2] = ce((e3) => e3 + 1, 0), u2 = S((e3, t3, r3) => {
2483
+ }, [i2, a2]), [c2, g2] = ue((e3) => e3 + 1, 0), u2 = S((e3, t3, r3) => {
2331
2484
  if (!o2) return;
2332
2485
  const l3 = o2.getMovableSelection();
2333
2486
  if (0 === l3.length) return;
@@ -2384,35 +2537,35 @@ function to(e2) {
2384
2537
  }), new T("formatDrawAlignLeft", l2, { label: "Align Left", description: "Align the selected drawings to the left.", icon: "DrawAlignLeft" }, function() {
2385
2538
  u2(this, (e3, t3) => {
2386
2539
  e3.setBounds({ x: t3.x });
2387
- }, Qt);
2540
+ }, uo);
2388
2541
  }), new T("formatDrawAlignCenter", l2, { label: "Align Center", description: "Align the selected drawings vertically relative to each other.", icon: "DrawAlignCenter" }, function() {
2389
2542
  u2(this, (e3, t3) => {
2390
2543
  e3.setBounds({ x: (t3.width - e3.getBounds().width) / 2 + t3.x });
2391
- }, Qt);
2544
+ }, uo);
2392
2545
  }), new T("formatDrawAlignRight", l2, { label: "Align Right", description: "Align the selected drawings to the right.", icon: "DrawAlignRight" }, function() {
2393
2546
  u2(this, (e3, t3) => {
2394
2547
  e3.setBounds({ x: t3.width - e3.getBounds().width + t3.x });
2395
- }, Qt);
2548
+ }, uo);
2396
2549
  }), new T("formatDrawAlignTop", l2, { label: "Align Top", description: "Align the selected drawings to the top.", icon: "DrawAlignTop" }, function() {
2397
2550
  u2(this, (e3, t3) => {
2398
2551
  e3.setBounds({ y: t3.y });
2399
- }, Qt);
2552
+ }, uo);
2400
2553
  }), new T("formatDrawAlignMiddle", l2, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other.", icon: "DrawAlignMiddle" }, function() {
2401
2554
  u2(this, (e3, t3) => {
2402
2555
  e3.setBounds({ y: (t3.height - e3.getBounds().height) / 2 + t3.y });
2403
- }, Qt);
2556
+ }, uo);
2404
2557
  }), new T("formatDrawAlignBottom", l2, { label: "Align Bottom", description: "Align the selected drawings to the bottom.", icon: "DrawAlignBottom" }, function() {
2405
2558
  u2(this, (e3, t3) => {
2406
2559
  e3.setBounds({ y: t3.height - e3.getBounds().height + t3.y });
2407
- }, Qt);
2560
+ }, uo);
2408
2561
  }), new T("formatDrawDistributeHorz", l2, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each.", icon: "DrawDistributeHorz" }, function() {
2409
2562
  u2(this, (e3, t3) => {
2410
2563
  e3.setBounds(t3.get(e3));
2411
- }, (e3) => eo(e3));
2564
+ }, (e3) => ho(e3));
2412
2565
  }), new T("formatDrawDistributeVert", l2, { label: "Distribute Vertically", description: "Distribute the selected drawings vertically with equal spacing between each.", icon: "DrawDistributeVert" }, function() {
2413
2566
  u2(this, (e3, t3) => {
2414
2567
  e3.setBounds(t3.get(e3));
2415
- }, (e3) => eo(e3, false));
2568
+ }, (e3) => ho(e3, false));
2416
2569
  }), new T("formatDrawFlipHorz", l2, { label: "Flip Horizontally", description: "Flip the selected drawings horizontally." }), new T("formatDrawFlipVert", l2, { label: "Flip Vertically", description: "Flip the selected drawings vertically." }), new T("formatDrawGroup", l2, { label: "Group", description: "Group the selected drawings into a single drawing.", icon: "DrawGroup" }), new T("formatDrawUngroup", l2, { label: "Ungroup", description: "Break the group of a drawing into individual drawings.", icon: "DrawUngroup" }), new T("formatDrawSwapShapes", l2, { label: "Swap Shapes", description: "Swap the positions of the swap." }), new T("formatDrawSwapShapesHorz", l2, { label: "Swap Shapes Horizontally", description: "Swap the positions of the swap horizontally." }), new T("formatDrawSwapShapesVert", l2, { label: "Swap Shapes Vertically", description: "Swap the positions of the swap vertically." })], [o2, h2]);
2417
2570
  ae(() => {
2418
2571
  }, [s2]);
@@ -2446,29 +2599,29 @@ function to(e2) {
2446
2599
  y2.getCommand("formatDrawDistributeHorz").update(d3), y2.getCommand("formatDrawDistributeVert").update(d3);
2447
2600
  }, [c2, p2, c2]), y2;
2448
2601
  }
2449
- const oo = oe(le((e2, t2) => {
2602
+ const po = oe(le((e2, t2) => {
2450
2603
  const { children: o2, disabled: n2, description: r2, view: l2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
2451
2604
  ae(() => {
2452
2605
  }, [r2]);
2453
2606
  const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
2454
2607
  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: l2.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: r2 }) }) });
2455
- })), no = oe(le((e2, t2) => {
2456
- const { view: o2, sheet: n2, movableProps: r2, renderMovable: l2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = to({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
2608
+ })), fo = oe(le((e2, t2) => {
2609
+ const { view: o2, sheet: n2, movableProps: r2, renderMovable: l2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = mo({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
2457
2610
  ae(() => {
2458
2611
  o2?.getStage();
2459
2612
  }, [o2?.getStage()]);
2460
- const c2 = ne(() => Z(Jt, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: l2, ...r2, onFocus: () => {
2613
+ const c2 = ne(() => Z(go, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: l2, ...r2, onFocus: () => {
2461
2614
  d2.activate(), r2?.onFocus?.();
2462
2615
  } }, "movable-area"), [n2, r2, i2, d2]);
2463
2616
  return c2 && o2 ? c2 : null;
2464
- })), ro = oe(le((e2, t2) => {
2465
- const { view: o2, sheet: n2, gridStyle: r2, getCellEditor: l2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = F(), [g2, u2] = re(null), [h2, m2] = re(null), [p2, f2] = re(null), [v2, q2] = re(null), [y2, C2] = re(null);
2617
+ })), wo = oe(le((e2, t2) => {
2618
+ const { view: o2, sheet: n2, gridStyle: r2, getCellEditor: l2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = D(), [g2, u2] = re(null), [h2, m2] = re(null), [p2, f2] = re(null), [v2, q2] = re(null), [y2, C2] = re(null);
2466
2619
  se(() => {
2467
2620
  if (null === p2) return q2(null), void C2(null);
2468
2621
  const e3 = () => {
2469
2622
  const e4 = n2.getRange(p2).getCell(), t3 = e4.getStyle();
2470
2623
  let o3, l3 = t3.getFill()?.toCSS(r2.body.darkMode);
2471
- "none" !== l3.background && "transparent" !== l3.background || (l3 = n2.getStyles().getNormal().getFill().toCSS(r2.body.darkMode)), "none" !== l3.background && "transparent" !== l3.background || (l3 = { background: r2.body.fill }), q2({ style: l3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? L.Left);
2624
+ "none" !== l3.background && "transparent" !== l3.background || (l3 = n2.getStyles().getNormal().getFill().toCSS(r2.body.darkMode)), "none" !== l3.background && "transparent" !== l3.background || (l3 = { background: r2.body.fill }), q2({ style: l3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? B.Left);
2472
2625
  };
2473
2626
  return e3(), n2.getRange(p2).addListener(() => {
2474
2627
  e3();
@@ -2496,7 +2649,7 @@ const oo = oe(le((e2, t2) => {
2496
2649
  const o4 = { sheet: n2, coords: t3, editState: e4 };
2497
2650
  c2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
2498
2651
  }, editState: h2.editState });
2499
- }, [n2, v2, l2, h2, p2]), { overlay: R2, startEdit: M2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: D2, onPointerEventNative: I2 } = xe({ view: o2, activeCoords: g2, getCellEditor: T2, canEdit: () => {
2652
+ }, [n2, v2, l2, h2, p2]), { overlay: R2, startEdit: M2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: F2, onPointerEventNative: I2 } = xe({ view: o2, activeCoords: g2, getCellEditor: T2, canEdit: () => {
2500
2653
  const e3 = n2.getProtection();
2501
2654
  if (e3.isReadOnly()) return false;
2502
2655
  const t3 = e3.isLocked();
@@ -2518,19 +2671,19 @@ const oo = oe(le((e2, t2) => {
2518
2671
  I2(e3), p2 && A2();
2519
2672
  }, [I2, z2, p2]), N2 = de((e3) => {
2520
2673
  I2(e3);
2521
- }, [I2]), P2 = de((e3) => {
2522
- D2(e3);
2523
- }, [D2]);
2674
+ }, [I2]), H2 = de((e3) => {
2675
+ F2(e3);
2676
+ }, [F2]);
2524
2677
  return ae(() => {
2525
2678
  const e3 = o2?.getStage();
2526
- if (e3) return e3.addEventListener("pointerdown", E2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", P2), () => {
2527
- e3.removeEventListener("pointerdown", E2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", P2);
2679
+ if (e3) return e3.addEventListener("pointerdown", E2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", H2), () => {
2680
+ e3.removeEventListener("pointerdown", E2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", H2);
2528
2681
  };
2529
2682
  }, [o2?.getStage()]), ae(() => {
2530
2683
  const e3 = c2.getMode(), t3 = e3?.key;
2531
2684
  "edit" === t3 || "enter" === t3 ? h2 ? e3.args?.cancel ? z2() : e3.args?.submit ? A2() : m2(e3.args?.stateAndCoords) : M2(e3.args?.start) : p2 && z2();
2532
2685
  }, [c2]), R2(o2, t2);
2533
- })), lo = "white", io = "black", ao = `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='${io}' fill='${lo}'/%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='${io}' fill='${lo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, co = oe(le((e2, t2) => {
2686
+ })), vo = "white", qo = "black", yo = `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='${qo}' fill='${vo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, 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 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='${qo}' fill='${vo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, bo = oe(le((e2, t2) => {
2534
2687
  const { view: o2, sheet: n2 } = e2, [r2, l2] = 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(() => {
2535
2688
  if (n2.getTables().getCount() > 0) {
2536
2689
  l2(true);
@@ -2611,10 +2764,10 @@ const oo = oe(le((e2, t2) => {
2611
2764
  }
2612
2765
  d3 || (d3 = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
2613
2766
  }
2614
- 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: ao }, 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: so }, 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: l3 ? 0.5 : 0, stroke: d3 ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: r3 ? `${d3} 0px 0px 1px 1px` : void 0 } }, `table-outline-${t3.getName()}`));
2767
+ 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: yo }, 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: Co }, 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: l3 ? 0.5 : 0, stroke: d3 ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: r3 ? `${d3} 0px 0px 1px 1px` : void 0 } }, `table-outline-${t3.getName()}`));
2615
2768
  }
2616
2769
  return C2;
2617
- })), go = oe(le((t2, o2) => {
2770
+ })), So = oe(le((t2, o2) => {
2618
2771
  const { view: n2, sheet: r2, animationTime: l2 = 60 } = t2, [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useRef(null), g2 = S(() => {
2619
2772
  const e2 = r2.getSelectedCell(), t3 = e2.getSpill()?.getCoords() ?? null;
2620
2773
  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));
@@ -2638,21 +2791,21 @@ const oo = oe(le((e2, t2) => {
2638
2791
  if (s2 && !X.isEqualBounds(s2.bounds, n2.getRangeCoordsBounds(s2.coords)) && d2(null), p2 = n2.toClipBounds(p2, -10), !p2) return;
2639
2792
  const f2 = "var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";
2640
2793
  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 * l2}ms ease-in-out` : `left ${l2}ms ease-out, top ${l2}ms ease-out, width ${l2}ms ease-out, height ${l2}ms ease-out` : "none", boxShadow: `${f2} 0px 0px 4px 0px` } }, "spill-outline}")), m2;
2641
- })), uo = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, ho = (e2, t2) => {
2794
+ })), xo = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, ko = (e2, t2) => {
2642
2795
  const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), r2 = n2?.toCSS(), l2 = { text: { fontFamily: r2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = X.mergeContentful(e2.body, l2);
2643
2796
  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, l2), 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, l2), o2.headerSelectAll = X.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = X.mergeContentful(o2.headerSelectAll, l2), o2;
2644
- }, mo = { fireOnModelChange: false }, po = {}, fo = oe(le((e2, t2) => {
2645
- const { sheet: o2, gridStyle: n2 = po, headersStyle: r2 = po, onSheetContextMenu: l2, 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: D2, style: E2 = C.EmptyCssProperties, onShowTooltip: N2, onShowColumnTooltip: P2, onShowRowTooltip: H2, onCloseTooltip: L2, gridProps: O2, cellRenderProps: $2, ...W2 } = e2;
2797
+ }, To = { fireOnModelChange: false }, Ro = {}, Mo = oe(le((e2, t2) => {
2798
+ const { sheet: o2, gridStyle: n2 = Ro, headersStyle: r2 = Ro, onSheetContextMenu: l2, 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: I2 = C.EmptyCssProperties, onShowTooltip: N2, onShowColumnTooltip: H2, onShowRowTooltip: P2, onCloseTooltip: L2, gridProps: B2, cellRenderProps: $2, ...W2 } = e2;
2646
2799
  if (te.useEffect(() => {
2647
2800
  d._validate(true);
2648
2801
  }, []), !o2) throw new Error("ISheet must be provided.");
2649
- const [U2, _2] = te.useReducer((e3) => e3 + 1, 0), [G2, { width: ee2, height: oe2 }] = Me(), le2 = S(N2, [N2]), ce2 = S(P2, [P2]), ge2 = S(H2, [H2]), he2 = S(L2, [L2]), me2 = ie(false);
2802
+ const [U2, _2] = te.useReducer((e3) => e3 + 1, 0), [G2, { width: ee2, height: oe2 }] = Me(), le2 = S(N2, [N2]), ce2 = S(H2, [H2]), ge2 = S(P2, [P2]), ue2 = S(L2, [L2]), he2 = ie(false);
2650
2803
  se(() => {
2651
- me2.current = true;
2804
+ he2.current = true;
2652
2805
  }, [o2]);
2653
- const pe2 = o2?.getStyles(), fe2 = ne(() => ho(n2, pe2), [n2, pe2]), we2 = ne(() => ho(r2, pe2), [r2, pe2]), { body: ve2 = {}, buttonSurface: qe2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = ie(null), [ke2, Re2] = re(() => 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(() => {
2806
+ const pe2 = o2?.getStyles(), fe2 = ne(() => ko(n2, pe2), [n2, pe2]), we2 = ne(() => ko(r2, pe2), [r2, pe2]), { body: ve2 = {}, buttonSurface: qe2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = ie(null), [ke2, Re2] = re(() => 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(() => {
2654
2807
  if (ke2?.getGridLineColor()) return { strokeDasharray: "1,1" };
2655
- }, [ke2?.getGridLineColor(), fe2]), Ie2 = s2 ?? ke2?.isShowColumnHeaders(), Ee2 = g2 ?? ke2?.isShowRowHeaders(), [Ne2, Pe2] = re({ width: 0, height: 0 }), Ve2 = ne(() => {
2808
+ }, [ke2?.getGridLineColor(), fe2]), Ie2 = s2 ?? ke2?.isShowColumnHeaders(), Ee2 = g2 ?? ke2?.isShowRowHeaders(), [Ne2, He2] = re({ width: 0, height: 0 }), Pe2 = ne(() => {
2656
2809
  let e3 = 40, t3 = 20;
2657
2810
  const n3 = o2?.getStyles().getNormal().getFont();
2658
2811
  if (Ne2.width > 0 && Ne2.height > 0) {
@@ -2660,8 +2813,10 @@ const oo = oe(le((e2, t2) => {
2660
2813
  e3 = l3.width, t3 = l3.lineHeight;
2661
2814
  }
2662
2815
  return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
2663
- }, [Ne2, fe2?.header.text, o2]), He2 = Ee2 ? ze2 * Ve2.width : Ce2.edgeStrokeWidth, Le2 = Ie2 ? ze2 * Ve2.height : Ce2.edgeStrokeWidth, Be2 = Math.max(ee2, (o2?.getColumnHeaders().getDefaultSize() ?? Ve2.width) + He2 + 1), Oe2 = Math.max(oe2, (o2?.getRowHeaders().getDefaultSize() ?? Ve2.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] = re(() => Ue2()), [Ze2, je2] = re(false), [Ke2, Xe2] = re(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = de(() => Xt2.current, []), [et2, tt2] = re(), nt2 = S((e3) => {
2664
- tt2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
2816
+ }, [Ne2, fe2?.header.text, o2]), Ve2 = Ee2 ? ze2 * Pe2.width : Ce2.edgeStrokeWidth, Le2 = Ie2 ? 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] = re(() => Ue2()), [Ze2, je2] = re(false), [Ke2, Xe2] = re(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = de(() => jt2.current, []), [et2, tt2] = re(), nt2 = S((e3) => {
2817
+ tt2(e3);
2818
+ const t3 = o2 ? o2.getView() : null;
2819
+ t3 && t3.setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
2665
2820
  }, [o2, f2]), rt2 = ie(null);
2666
2821
  ae(() => {
2667
2822
  if (!et2 || !o2) return;
@@ -2680,22 +2835,22 @@ const oo = oe(le((e2, t2) => {
2680
2835
  if (!e3 || 0 === e3.coords.colIndex && 0 === e3.coords.rowIndex) return null;
2681
2836
  const t3 = {};
2682
2837
  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;
2683
- }, [dt2, ct2] = re(() => st2(o2.getView().getFreezePanes())), gt2 = F(), ut2 = de(() => xe2.current, []), ht2 = S((e3) => {
2838
+ }, [dt2, ct2] = re(() => st2(o2.getView().getFreezePanes())), gt2 = D(), ut2 = de(() => xe2.current, []), ht2 = S((e3) => {
2684
2839
  gt2.setMode((t3) => "edit" === t3?.key ? { ...t3, args: { ...t3.args } } : { key: "edit", args: { stateAndCoords: null, start: e3 } });
2685
- }, []), mt2 = S(() => et2, [et2]), pt2 = Tt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = re(o2.getSelection().isEntire()), [vt2, Ct2] = re(ke2?.getMovableSelection().length > 0), xt2 = null !== Ke2 || vt2, kt2 = null, [Mt2, Ft2] = re(false);
2840
+ }, []), mt2 = S(() => et2, [et2]), pt2 = Vt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = re(o2.getSelection().isEntire()), [vt2, Ct2] = re(ke2?.getMovableSelection().length > 0), xt2 = null !== Ke2 || vt2, kt2 = null, [Tt2, Rt2] = re(false);
2686
2841
  ae(() => {
2687
- Ft2(false);
2842
+ Rt2(false);
2688
2843
  }, [o2.getProtection()]);
2689
- const Dt2 = z(), It2 = S(() => {
2690
- Mt2 || (Ft2(true), Dt2.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 }));
2691
- }, [Dt2, Mt2]), Et2 = ne(() => {
2844
+ const Mt2 = F(), At2 = S(() => {
2845
+ 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: E.Error }));
2846
+ }, [Mt2, Tt2]), zt2 = ne(() => {
2692
2847
  const e3 = gt2.getMode();
2693
2848
  return e3?.cursor ? e3.cursor : null;
2694
- }, [kt2, gt2]), [Nt2, Pt2] = re(null), Vt2 = ie(false), [Ht2, Bt2] = re([]), Ot2 = ie(null), [$t2, Wt2] = re(J.EmptyTopLeft), [Ut2, _t2] = re(J.EmptyTopLeft);
2849
+ }, [kt2, gt2]), [Ft2, Dt2] = re(null), It2 = ie(false), [Et2, Nt2] = re([]), Ht2 = ie(null), [Pt2, Bt2] = re(J.EmptyTopLeft), [Wt2, Ut2] = re(J.EmptyTopLeft);
2695
2850
  ae(() => {
2696
- Wt2({ left: lt2?.left, top: 0 });
2851
+ Bt2({ left: lt2?.left, top: 0 });
2697
2852
  }, [lt2?.left]), ae(() => {
2698
- _t2({ left: 0, top: lt2?.top });
2853
+ Ut2({ left: 0, top: lt2?.top });
2699
2854
  }, [lt2?.top]), St(o2?.getView(), { onFreezeSplitChange: () => {
2700
2855
  ct2(st2(o2.getView().getFreezePanes()));
2701
2856
  }, onTopLeftChange: () => {
@@ -2708,28 +2863,28 @@ const oo = oe(le((e2, t2) => {
2708
2863
  Re2(o2.getView()), Ge2(Ue2());
2709
2864
  }, onLayoutChange: () => {
2710
2865
  const e3 = o2.getEntireRange();
2711
- Pe2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
2866
+ He2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
2712
2867
  }, onStyleChange: () => {
2713
- Yt2();
2868
+ Kt2();
2714
2869
  }, onMovablesChange: () => {
2715
2870
  }, onInvalidated: () => {
2716
- Yt2();
2871
+ Kt2();
2717
2872
  } }), St(o2, { onRequestScrollIntoView: async (e3, t3) => {
2718
2873
  if (!t3) return;
2719
- const o3 = { colIndex: t3?.coords.colStart, rowIndex: t3?.coords.rowStart };
2874
+ const o3 = { colIndex: t3?.coords?.colStart, rowIndex: t3?.coords?.rowStart };
2720
2875
  return await xe2.current?.scrollCellCoordsIntoView(o3, t3?.scroll), true;
2721
- }, onRequestFocus: () => X.whenFocus(Xt2.current) }, mo);
2722
- const Gt2 = ie(false), jt2 = ne(() => {
2876
+ }, onRequestFocus: () => X.whenFocus(jt2.current) }, To);
2877
+ const _t2 = ie(false), Gt2 = ne(() => {
2723
2878
  const e3 = X.debounce((e4) => {
2724
2879
  requestAnimationFrame(() => {
2725
- Vt2.current && ce2?.(e4);
2880
+ It2.current && ce2?.(e4);
2726
2881
  });
2727
2882
  }, 32), t3 = (t4, r4) => {
2728
- Vt2.current = true, Pt2([(l3) => {
2883
+ It2.current = true, Dt2([(l3) => {
2729
2884
  if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ne2.height, colStart: t4, colEnd: t4 }))) return;
2730
2885
  const i2 = l3.getLayout(), a2 = Math.max(0, i2.getColOffset(t4)), s3 = l3.getBounds(), d2 = Math.min(s3.x + s3.width, i2.getColOffset(t4 + 1)), c3 = l3.getAnchor();
2731
2886
  if (null !== r4 && (c3 === Y.Left || c3 === Y.Center || c3 === Y.Right)) {
2732
- const t5 = X.roundAccurately(r4 * X.getDPI(), 0), n3 = X.roundAccurately(o2?.getColumnWidthAsFontUnit(r4 / ze2), 2).toFixed(2), l4 = "Width: " + (r4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 = Co2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - i3.y, g4 = 0 - i3.y + Le2, u4 = i3.x - s3.x;
2887
+ const t5 = X.roundAccurately(r4 * X.getDPI(), 0), n3 = X.roundAccurately(o2?.getColumnWidthAsFontUnit(r4 / ze2), 2).toFixed(2), l4 = "Width: " + (r4 ? 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;
2733
2888
  e3({ anchor: { x: a2 - u4, y: c4, width: d2 - a2, height: g4 - c4 }, display: l4 });
2734
2889
  }
2735
2890
  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 };
@@ -2738,29 +2893,29 @@ const oo = oe(le((e2, t2) => {
2738
2893
  };
2739
2894
  let r3 = null;
2740
2895
  return { onResizeHeadersStart: (e4, n3, l3) => {
2741
- r3 = o2.beginCommit(l3), Gt2.current = false, t3(e4, n3);
2896
+ r3 = o2.beginCommit(l3), _t2.current = false, t3(e4, n3);
2742
2897
  }, onResizeHeaders: (e4, o3, n3) => {
2743
- Gt2.current = false, t3(e4, o3);
2898
+ _t2.current = false, t3(e4, o3);
2744
2899
  }, onResizeHeadersDown: (e4, o3) => {
2745
- Gt2.current = true, setTimeout(() => {
2746
- Gt2.current && t3(e4, o3);
2900
+ _t2.current = true, setTimeout(() => {
2901
+ _t2.current && t3(e4, o3);
2747
2902
  }, 360);
2748
2903
  }, onResizeHeadersEnd: (e4, t4, o3) => {
2749
- r3?.commit({ description: o3 }), r3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Pt2(null);
2904
+ r3?.commit({ description: o3 }), r3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2750
2905
  }, onResizeHeadersUp: (e4) => {
2751
- Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Pt2(null);
2906
+ _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2752
2907
  }, ...c2 };
2753
- }, [o2, c2, Le2, Nt2]), Kt2 = ne(() => {
2908
+ }, [o2, c2, Le2, Ft2]), Zt2 = ne(() => {
2754
2909
  const e3 = X.debounce((e4) => {
2755
2910
  requestAnimationFrame(() => {
2756
- Vt2.current && ge2?.(e4);
2911
+ It2.current && ge2?.(e4);
2757
2912
  });
2758
2913
  }, 32), t3 = (t4, r4) => {
2759
- Vt2.current = true, Pt2([(l3) => {
2914
+ It2.current = true, Dt2([(l3) => {
2760
2915
  if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: Ne2.width }))) return;
2761
2916
  const i2 = l3.getLayout(), a2 = Math.max(0, i2.getRowOffset(t4)), s3 = l3.getBounds(), d2 = Math.min(s3.y + s3.height, i2.getRowOffset(t4 + 1)), c3 = l3.getAnchor();
2762
2917
  if (null !== r4 && (c3 === Y.Top || c3 === Y.Center || c3 === Y.Bottom)) {
2763
- const t5 = Math.floor(10 * X.getDPI()) / 10, n3 = X.roundAccurately(r4 * t5, 0), l4 = X.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * X.getDPI()), 2).toFixed(2), i3 = "Height: " + (r4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), c4 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + He2, h4 = c4.y - s3.y;
2918
+ const t5 = Math.floor(10 * X.getDPI()) / 10, n3 = X.roundAccurately(r4 * t5, 0), l4 = X.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * X.getDPI()), 2).toFixed(2), i3 = "Height: " + (r4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), c4 = ho2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + Ve2, h4 = c4.y - s3.y;
2764
2919
  e3({ anchor: { x: g4, y: a2 - h4, width: u4 - g4, height: d2 - a2 }, display: i3 });
2765
2920
  }
2766
2921
  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 };
@@ -2769,19 +2924,19 @@ const oo = oe(le((e2, t2) => {
2769
2924
  };
2770
2925
  let r3 = null;
2771
2926
  return { onResizeHeadersStart: (e4, n3, l3) => {
2772
- r3 = o2.beginCommit(l3), Gt2.current = false, t3(e4, n3);
2927
+ r3 = o2.beginCommit(l3), _t2.current = false, t3(e4, n3);
2773
2928
  }, onResizeHeaders: (e4, o3, n3) => {
2774
- Gt2.current = false, t3(e4, o3);
2929
+ _t2.current = false, t3(e4, o3);
2775
2930
  }, onResizeHeadersDown: (e4, o3) => {
2776
- Gt2.current = true, setTimeout(() => {
2777
- Gt2.current && t3(e4, o3);
2931
+ _t2.current = true, setTimeout(() => {
2932
+ _t2.current && t3(e4, o3);
2778
2933
  }, 360);
2779
2934
  }, onResizeHeadersEnd: (e4, t4, o3) => {
2780
- r3?.commit({ description: o3 }), r3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Pt2(null);
2935
+ r3?.commit({ description: o3 }), r3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2781
2936
  }, onResizeHeadersUp: (e4) => {
2782
- Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Pt2(null);
2937
+ _t2.current = false, requestAnimationFrame(() => ue2?.()), It2.current = false, Dt2(null);
2783
2938
  }, ...u2 };
2784
- }, [o2, u2, He2]), Xt2 = b(t2, () => {
2939
+ }, [o2, u2, Ve2]), jt2 = b(t2, () => {
2785
2940
  const e3 = (e4) => {
2786
2941
  o2?.getView() && o2.getView().selectMovables([]), We2.current = null, xe2?.current?.focus(e4);
2787
2942
  }, t3 = async (e4 = null) => {
@@ -2795,41 +2950,41 @@ const oo = oe(le((e2, t2) => {
2795
2950
  let l3 = $e2.current?.get(r3);
2796
2951
  return l3?.current ? (await l3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: r3 }, true);
2797
2952
  };
2798
- return { getGridElement: () => xe2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => Co2.current, rowHeaderHeight: () => Le2, colHeaderWidth: () => He2, startEdit: ht2, submitEdit: () => {
2953
+ return { getGridElement: () => xe2.current, getRowHeaderElement: () => ho2.current, getColumnHeaderElement: () => po2.current, rowHeaderHeight: () => Le2, colHeaderWidth: () => Ve2, startEdit: ht2, submitEdit: () => {
2799
2954
  gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
2800
2955
  }, cancelEdit: () => {
2801
2956
  gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
2802
2957
  }, isEditing: null !== Ke2, focus: (n3) => {
2803
2958
  o2?.getView().getMovableSelection().length > 0 && t3() || e3(n3);
2804
- }, focusSheet: e3, focusMovable: t3, contains: (e4) => xe2?.current?.contains?.(e4), invalidate: Yt2, isSheetElement: () => true, getSheet: () => o2 };
2805
- }, [o2]), Yt2 = de((e3) => {
2806
- me2.current || (xe2?.current?.invalidate(e3), _2?.());
2959
+ }, focusSheet: e3, focusMovable: t3, contains: (e4) => xe2?.current?.contains?.(e4), invalidate: Kt2, isSheetElement: () => true, getSheet: () => o2 };
2960
+ }, [o2]), Kt2 = de((e3) => {
2961
+ he2.current || (xe2?.current?.invalidate(e3), _2?.());
2807
2962
  }, []);
2808
2963
  ae(() => {
2809
- Yt2();
2964
+ Kt2();
2810
2965
  }, [fe2]);
2811
- const Jt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Qt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, eo2 = 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]);
2812
- let to2 = null;
2813
- Ie2 && Ee2 && (to2 = j("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Le2}px`, width: `${He2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
2966
+ const Xt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Jt2 = 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]);
2967
+ let eo2 = null;
2968
+ Ie2 && Ee2 && (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) => {
2814
2969
  let t3 = !e3.ctrlKey;
2815
2970
  pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === V.Right ? l2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : xe2.current?.focus();
2816
- }, 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 ${Jt2}`, borderBottom: `2px solid ${Jt2}`, background: `${Qt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), Z("div", { style: { position: "absolute", height: `${Le2}px`, width: `${He2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2817
- const oo2 = S(({ _left: e3, _top: t3 }) => {
2818
- }, []), lo2 = S((e3) => {
2971
+ }, 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: `${Jt2}`, 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" } })] }));
2972
+ const to2 = S(({ _left: e3, _top: t3 }) => {
2973
+ }, []), oo2 = S((e3) => {
2819
2974
  if (!l2) return;
2820
2975
  const t3 = xe2.current.getViewFromClient(e3.clientX, e3.clientY)?.getCellCoordsFromClient(e3.clientX, e3.clientY);
2821
2976
  t3 && (l2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: t3.rowIndex, colIndex: t3.colIndex }), e3.stopPropagation(), e3.preventDefault());
2822
- }, [l2]), io2 = S((e3) => {
2977
+ }, [l2]), no2 = S((e3) => {
2823
2978
  if (!(!e3.shiftKey && (e3.ctrlKey || e3.metaKey))) return;
2824
2979
  const { deltaY: t3 } = e3;
2825
2980
  return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
2826
2981
  }, [pt2]);
2827
2982
  ae(() => {
2828
- Bt2(null), Ot2.current = null, Vt2.current = false, Pt2(null);
2983
+ Nt2(null), Ht2.current = null, It2.current = false, Dt2(null);
2829
2984
  const e3 = o2?.getView().getTopLeft();
2830
- oo2(e3), xe2.current?.scrollTo(e3), it2(e3), Re2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2985
+ to2(e3), xe2.current?.scrollTo(e3), it2(e3), Re2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2831
2986
  }, [o2?.getView()]);
2832
- const ao2 = S((e3) => {
2987
+ const ro2 = de((e3, t3) => o2.getRowHeaders().hiddenHeadersAt(e3, t3), [o2]), io2 = de((e3, t3) => o2.getColumnHeaders().hiddenHeadersAt(e3, t3), [o2]), ao2 = S((e3) => {
2833
2988
  const t3 = e3.getVisibleRangeCoords();
2834
2989
  if (!t3) return null;
2835
2990
  const n3 = [];
@@ -2848,17 +3003,17 @@ const oo = oe(le((e2, t2) => {
2848
3003
  }, [o2, ke2.isShowZeros(), ke2.isShowFormulas(), Ke2]);
2849
3004
  ae(() => {
2850
3005
  const e3 = [];
2851
- y2 && e3.push(...y2), Nt2 && e3.push(...Nt2), X.isEqualArrays(e3, Ot2.current) || (Ot2.current = e3, Bt2(e3));
2852
- }, [y2, Nt2, fe2]);
2853
- const so2 = ne(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), fo2 = S((e3) => {
3006
+ y2 && e3.push(...y2), Ft2 && e3.push(...Ft2), X.isEqualArrays(e3, Ht2.current) || (Ht2.current = e3, Nt2(e3));
3007
+ }, [y2, Ft2, fe2]);
3008
+ 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) => {
2854
3009
  e3.isDefaultPrevented() || e3.isPropagationStopped() || (We2.current = null, o2?.getView().getMovableSelection().length > 0 && o2.getView().selectMovables([]));
2855
- }, [o2]), wo2 = ne(() => {
3010
+ }, [o2]), go2 = ne(() => {
2856
3011
  const e3 = gt2.getMode();
2857
3012
  return "cut" === e3?.key || "copy" === e3?.key;
2858
- }, [gt2]), vo2 = S(async (e3) => {
3013
+ }, [gt2]), uo2 = S(async (e3) => {
2859
3014
  const t3 = gt2.getMode();
2860
- return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && wo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
2861
- }, [pt2, gt2]), qo2 = ie(null), yo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2" }, children: Z(At, { ref: qo2, sheetElement: Xt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Top], oppositeSize: He2, containerWidth: He2, containerHeight: Oe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Ut2, onSheetContextMenu: l2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2", ...Kt2?.style }, ...Kt2 }) }), [He2, Le2, Oe2, o2, Ut2, dt2?.[Y.Top], fe2, Ye2, l2, Ce2.fill, u2]), Co2 = ie(null), bo2 = 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(At, { ref: Co2, sheetElement: Xt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Left], oppositeSize: Le2, containerWidth: Be2, containerHeight: Le2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: $t2, onSheetContextMenu: l2, ...jt2, style: { ...jt2?.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, $t2, dt2?.[Y.Left], fe2, Ce2.fill, Ye2, l2, c2]), So2 = S((e3) => {
3015
+ 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);
3016
+ }, [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(Ot, { 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: Wt2, onSheetContextMenu: l2, 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, Wt2, dt2?.[Y.Top], fe2, Ye2, l2, Ce2.fill, u2]), po2 = ie(null), vo2 = 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(Ot, { 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: l2, ...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, l2, c2]), qo2 = S((e3) => {
2862
3017
  const { value: t3, key: n3, ...r3 } = e3;
2863
3018
  let l3 = t3, i2 = Ke2;
2864
3019
  if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !l3) {
@@ -2872,99 +3027,99 @@ const oo = oe(le((e2, t2) => {
2872
3027
  try {
2873
3028
  await l3.getHyperlink()?.open();
2874
3029
  } catch (e5) {
2875
- Dt2.showError?.(e5);
3030
+ Mt2.showError?.(e5);
2876
3031
  }
2877
3032
  }
2878
3033
  }), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (l3 = l3.createTemporaryCell({ value: null }));
2879
3034
  const s3 = o2.getStyles();
2880
- return ue(ot, { ...r3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: ke2.isShowFormulas(), showZeros: ke2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: l3 });
2881
- }, [o2, _e2, ve2, Ke2, ke2?.isShowFormulas(), ke2.isShowZeros()]), xo2 = de((e3, t3) => {
3035
+ return me(ot, { ...r3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: ke2.isShowFormulas(), showZeros: ke2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: l3 });
3036
+ }, [o2, _e2, ve2, Ke2, ke2?.isShowFormulas(), ke2.isShowZeros()]), yo2 = de((e3, t3) => {
2882
3037
  const { key: n3, ...r3 } = e3;
2883
- return [Z(zt, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...r3 }, `border-${n3}`), Z(co, { ref: t3, sheet: o2, commands: pt2, ...r3 }, `table-${n3}`), Z(go, { ref: t3, sheet: o2, ...r3 }, `spill-${n3}`), Z(Zt, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: le2, onCloseTooltip: he2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...r3 }, `selection-${n3}`), Z(Lt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...r3 }, `copy-paste-${n3}`), Z(no, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
2884
- Xt2.current.focus();
2885
- } }, ...r3 }, `movable-${n3}`), Z(ro, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: M2, showProtectedError: It2, setEditingCoords: Xe2, ...r3 }, `editor-${n3}`)];
2886
- }, [o2, xe2.current, fe2, M2, pt2, Dt2]), [ko2, To2] = re(false), Ro2 = ne(() => {
3038
+ return [Z($t, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...r3 }, `border-${n3}`), Z(bo, { ref: t3, sheet: o2, commands: pt2, ...r3 }, `table-${n3}`), Z(So, { ref: t3, sheet: o2, ...r3 }, `spill-${n3}`), Z(lo, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: le2, onCloseTooltip: ue2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...r3 }, `selection-${n3}`), Z(Yt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...r3 }, `copy-paste-${n3}`), Z(fo, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
3039
+ jt2.current.focus();
3040
+ } }, ...r3 }, `movable-${n3}`), Z(wo, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: M2, showProtectedError: At2, setEditingCoords: Xe2, ...r3 }, `editor-${n3}`)];
3041
+ }, [o2, xe2.current, fe2, M2, pt2, Mt2]), [Co2, Mo2] = re(false), Ao2 = ne(() => {
2887
3042
  if (0 === Be2 || 0 === Oe2) return null;
2888
3043
  const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), r3 = e3.getBorder(), l3 = e3.getFill().getType() === m.Type.None;
2889
3044
  let i2 = De2, a2 = De2;
2890
3045
  const s3 = (e4, t4, o3) => o3 ? { stroke: r3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(ve2.darkMode).toString(), ...t4 } : t4;
2891
3046
  a2 = s3(r3.getBottom(), a2, !r3.getBottom().isNone()), a2 = s3(r3.getTop(), a2, !r3.getTop().isNone()), i2 = s3(r3.getRight(), i2, !r3.getRight().isNone()), i2 = s3(r3.getLeft(), i2, !r3.getLeft().isNone());
2892
3047
  let d2 = ke2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
2893
- return l3 || (a2 = s3(r3.getBottom(), a2, true), a2 = s3(r3.getTop(), a2, true), i2 = s3(r3.getRight(), i2, true), i2 = s3(r3.getLeft(), i2, true)), Z(ye, { className: "sheetxl-sheet-primary", style: { ...uo, ...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, ...O2, onFirstRender: (e4) => {
2894
- To2(true), O2?.onFirstRender?.(e4), pt2?.activate();
2895
- }, 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: Et2 ?? kt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: So2, overlayRenderer: xo2, getCellCoordsAsRangeCoords: at2, getVisibleCells: ao2, onWheelScroll: io2, onPointerDown: fo2, onKeyDown: vo2, onViewportChange: nt2, onImmediateScroll: oo2, scrollPoint: lt2, stageProps: { onFocus: () => {
3048
+ return l3 || (a2 = s3(r3.getBottom(), a2, true), a2 = s3(r3.getTop(), a2, true), i2 = s3(r3.getRight(), i2, true), i2 = s3(r3.getLeft(), i2, true)), Z(ye, { className: "sheetxl-sheet-primary", style: { ...xo, ...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) => {
3049
+ Mo2(true), B2?.onFirstRender?.(e4), pt2?.activate();
3050
+ }, 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: ro2, hiddenColumnsAt: io2, getVisibleCells: ao2, onWheelScroll: no2, onPointerDown: co2, onKeyDown: uo2, onViewportChange: nt2, onImmediateScroll: to2, scrollPoint: lt2, stageProps: { onFocus: () => {
2896
3051
  pt2?.activate();
2897
- } }, overlays: Ht2 });
3052
+ } }, overlays: Et2 });
2898
3053
  }, [U2]);
2899
3054
  ae(() => {
2900
- me2.current || _2();
2901
- }, [_e2, dt2, ze2, pt2, lt2?.left, lt2?.top, ve2, O2, Be2, Oe2, Et2, Ht2, Ye2, kt2]);
2902
- let Mo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
2903
- h2 || (Mo2 = { ...Mo2, ...E2 });
2904
- const Ao2 = ne(() => {
3055
+ he2.current || _2();
3056
+ }, [_e2, dt2, ze2, pt2, lt2?.left, lt2?.top, ve2, B2, Be2, Oe2, zt2, Et2, Ye2, kt2]);
3057
+ let zo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
3058
+ h2 || (zo2 = { ...zo2, ...I2 });
3059
+ const Fo2 = ne(() => {
2905
3060
  const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
2906
3061
  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() };
2907
3062
  }, [o2.getStyles().getTheme()]);
2908
- let zo2 = Z("div", { style: Mo2, onTouchStart: () => {
2909
- Io2();
3063
+ let Do2 = Z("div", { style: zo2, onTouchStart: () => {
3064
+ No2();
2910
3065
  }, onFocus: (e3) => {
2911
3066
  je2(true), A2?.(e3);
2912
3067
  }, onBlur: (e3) => {
2913
- je2(false), D2?.(e3);
2914
- }, ref: Xt2, ...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", ...Ao2 }, children: j("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [to2, yo2, j("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [bo2, 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: lo2, children: [Ro2, eo2, Z(bt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
3068
+ je2(false), z2?.(e3);
3069
+ }, 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: [vo2, 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 })] })] })] }) }) });
2915
3070
  if (h2) {
2916
- const e3 = (e4) => Z(Rt, { ...e4, sheet: o2 });
2917
- zo2 = Z(B, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Ve2.height, minWidth: 2 * Ve2.width, ...E2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: xt2, onScrollViewport: (e4) => {
3071
+ const e3 = (e4) => Z(Lt, { ...e4, sheet: o2 });
3072
+ Do2 = Z(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Pe2.height, minWidth: 2 * Pe2.width, ...I2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: xt2, onScrollViewport: (e4) => {
2918
3073
  xe2.current?.scrollTo(e4);
2919
- }, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: zo2 });
3074
+ }, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: Do2 });
2920
3075
  }
2921
3076
  ae(() => {
2922
- me2.current = false, _2?.(), Ze2 && Xt2.current?.focus();
3077
+ he2.current = false, _2?.(), Ze2 && jt2.current?.focus();
2923
3078
  }, [o2]);
2924
- const [Fo2, Do2] = re(false), Io2 = S(() => {
2925
- Fo2 || Do2(true);
2926
- }, [Fo2]);
3079
+ const [Io2, Eo2] = re(false), No2 = S(() => {
3080
+ Io2 || Eo2(true);
3081
+ }, [Io2]);
2927
3082
  return ae(() => {
2928
- if (ko2) return "function" == typeof R2 && R2(), "touch" === C.detectIt().primaryInput && Io2(), () => {
3083
+ if (Co2) return "function" == typeof R2 && R2(), "touch" === C.detectIt().primaryInput && No2(), () => {
2929
3084
  };
2930
- }, [R2, ko2, Fo2]), zo2;
3085
+ }, [R2, Co2, Io2]), Do2;
2931
3086
  }));
2932
- fo.displayName = "SheetElement";
2933
- const wo = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), vo = "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=", qo = oe(le((e2, t2) => {
3087
+ Mo.displayName = "SheetElement";
3088
+ const Ao = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), zo = "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=", Fo = oe(le((e2, t2) => {
2934
3089
  const { children: o2, disabled: n2, style: r2, picture: l2, 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);
2935
3090
  ae(() => {
2936
3091
  C2(null), l2.getDetails().then((e3) => {
2937
3092
  w2(false), C2(e3.asUrl()), e3.asSVGText?.() && x2(e3.asSVGText());
2938
3093
  }).catch((e3) => {
2939
- console.warn(e3), w2(true), C2(vo), x2(null);
3094
+ console.warn(e3), w2(true), C2(zo), x2(null);
2940
3095
  });
2941
3096
  }, [l2]);
2942
3097
  const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), T2 = ne(() => {
2943
3098
  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: () => {
2944
3099
  q2(true);
2945
3100
  }, onError: ({ currentTarget: e3 }) => {
2946
- console.log("error"), e3.onerror = null, C2(vo), w2(true);
3101
+ console.log("error"), e3.onerror = null, C2(zo), w2(true);
2947
3102
  }, alt: i2 ?? `${l2.getType()}` });
2948
3103
  }, [v2, l2, y2, S2, a2]);
2949
3104
  if (!l2.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, ...r2, width: "100%", height: "100%" }, tabIndex: 0, ...p2, onKeyDownCapture: (e3) => {
2950
3105
  g2?.(e3);
2951
3106
  }, ref: k2, children: [v2 || f2 ? void 0 : m2, T2] });
2952
3107
  }));
2953
- qo.displayName = "PictureEditor";
2954
- const yo = oe(le((e2, t2) => {
3108
+ Fo.displayName = "PictureEditor";
3109
+ const Do = oe(le((e2, t2) => {
2955
3110
  const { children: o2, disabled: n2, chart: r2, view: l2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
2956
3111
  ae(() => {
2957
3112
  }, [r2]);
2958
3113
  const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
2959
3114
  if (!r2.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: l2.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: r2.getDescription() }) }) });
2960
- })), Co = "_editable-input_1bqx6_6", bo = (e2) => Z("input", { ...e2 }), So = oe(le((e2, t2) => {
2961
- const { style: o2 = {}, className: n2, value: r2 = "", onSubmit: l2, onChange: i2, onCancel: a2, createInput: s2 = bo, 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(r2);
3115
+ })), Io = "_editable-input_1bqx6_6", Eo = (e2) => Z("input", { ...e2 }), No = oe(le((e2, t2) => {
3116
+ const { style: o2 = {}, className: n2, value: r2 = "", onSubmit: l2, onChange: i2, onCancel: a2, createInput: s2 = Eo, 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(r2);
2962
3117
  ae(() => {
2963
3118
  y2(r2);
2964
3119
  }, [r2]);
2965
- const C2 = ie(null), [x2, k2] = re(null), T2 = z(), R2 = de(function(e3) {
3120
+ const C2 = ie(null), [x2, k2] = re(null), T2 = F(), R2 = de(function(e3) {
2966
3121
  const t3 = e3.message;
2967
- x2 !== t3 && (T2?.showMessage?.(t3, { type: I.Error }), k2(t3));
3122
+ x2 !== t3 && (T2?.showMessage?.(t3, { type: E.Error }), k2(t3));
2968
3123
  }, [T2, x2]), M2 = de((e3) => {
2969
3124
  let t3 = false;
2970
3125
  try {
@@ -2977,9 +3132,9 @@ const yo = oe(le((e2, t2) => {
2977
3132
  }, 0), t3);
2978
3133
  }, [l2]), A2 = S(() => {
2979
3134
  y2(r2), C2.current = null, v2(false), a2?.();
2980
- }, [a2, r2]), F2 = ne(() => {
3135
+ }, [a2, r2]), z2 = ne(() => {
2981
3136
  if (!w2) return null;
2982
- const e3 = { className: Ae(Co), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: q2, onFocus: (e4) => {
3137
+ const e3 = { className: Ae(Io), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: q2, onFocus: (e4) => {
2983
3138
  C2.current || (C2.current = e4.target, setTimeout(() => {
2984
3139
  e4.target?.select();
2985
3140
  }, 0));
@@ -2989,13 +3144,13 @@ const yo = oe(le((e2, t2) => {
2989
3144
  w2 && y2(e4.target.value);
2990
3145
  }, 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)) };
2991
3146
  return Z(K, { children: s2(e3) });
2992
- }, [w2, q2, M2, A2, s2, u2]), [D2, E2] = re();
3147
+ }, [w2, q2, M2, A2, s2, u2]), [D2, I2] = re();
2993
3148
  se(() => {
2994
3149
  let e3 = Object.assign({}, o2);
2995
- (c2 || p2) && (e3 = Object.assign(e3, d2)), E2(e3);
3150
+ (c2 || p2) && (e3 = Object.assign(e3, d2)), I2(e3);
2996
3151
  }, [c2, p2, d2, o2]), ae(() => {
2997
- F2 && i2?.(q2);
2998
- }, [F2, i2, q2]);
3152
+ z2 && i2?.(q2);
3153
+ }, [z2, i2, q2]);
2999
3154
  const N2 = b(t2, () => ({ startEdit() {
3000
3155
  u2 || h2 || v2(true);
3001
3156
  }, cancel() {
@@ -3003,30 +3158,30 @@ const yo = oe(le((e2, t2) => {
3003
3158
  } }), []);
3004
3159
  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: () => {
3005
3160
  u2 || h2 || v2(true);
3006
- }, 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 }), F2] }), Z("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...d2 }, children: q2 })] });
3007
- })), xo = oe(le((e2, t2) => {
3161
+ }, 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 })] });
3162
+ })), Ho = oe(le((e2, t2) => {
3008
3163
  const { children: o2, style: n2, className: r2, index: l2, editing: i2, editable: a2, selectedIndex: s2, background: d2, activeColor: c2, borderColor: g2, borderWidth: u2, dragging: h2, ...m2 } = e2;
3009
3164
  return j("div", { ref: t2, className: Ae(r2), style: { ...n2, display: "flex", flexDirection: "column", background: s2 === l2 ? "white" : d2, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: s2 === l2 ? "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 === l2 ? "0px" : "-1px", marginTop: s2 === l2 ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), o2, s2 === l2 ? Z("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : Z(K, {})] }), Z("div", { style: { flex: "1 1 100%", background: s2 === l2 && c2 ? c2?.toCSS() : "none", minHeight: "2px" } })] });
3010
- })), ko = { 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" }, To = te.memo(te.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn: r2, handle: l2, height: i2, index: a2, listeners: s2, onRemove: d2, renderItem: c2, sorting: g2, style: u2, transition: h2, transform: m2, value: p2, wrapperStyle: f2, ...w2 }, v2) => {
3165
+ })), Po = { 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" }, Vo = te.memo(te.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn: r2, handle: l2, height: i2, index: a2, listeners: s2, onRemove: d2, renderItem: c2, sorting: g2, style: u2, transition: h2, transform: m2, value: p2, wrapperStyle: f2, ...w2 }, v2) => {
3011
3166
  ae(() => {
3012
3167
  if (t2) return document.body.style.cursor = "grabbing", () => {
3013
3168
  document.body.style.cursor = "";
3014
3169
  };
3015
3170
  }, [t2]);
3016
3171
  const q2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(r2), listeners: s2, ref: v2, style: u2, transform: m2, transition: h2, value: p2 }) : Z(K, { children: p2 });
3017
- return Z("div", { className: Ae("tab-item", ko.Wrapper, r2 && ko.fadeIn, g2 && ko.sorting, t2 && ko.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(ko.Item, o2 && ko.dragging, l2 && ko.withHandle, t2 && ko.dragOverlay, n2 && ko.disabled, e2 && ko.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...l2 ? void 0 : s2, ...w2, tabIndex: l2 ? void 0 : -1, children: q2 }) });
3018
- })), Ro = { Row: "_Row_1kr10_1" }, Mo = oe(le(({ children: e2, horizontal: t2, style: o2 }, n2) => Z("div", { ref: n2, style: { ...o2 }, className: Ae(Ro.Row, t2 && Ro.horizontal), children: e2 }))), Ao = { ...Oe }, zo = oe(le((e2, t2) => {
3019
- const { className: o2, activationConstraint: n2, animateLayoutChanges: r2, adjustScale: l2 = false, collisionDetection: i2 = Be, coordinateGetter: a2 = Ie, dropAnimation: s2 = Ao, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: v2, reorderItems: q2 = Ee, strategy: y2 = Ne, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, T2] = re(() => u2);
3172
+ return Z("div", { className: Ae("tab-item", Po.Wrapper, r2 && Po.fadeIn, g2 && Po.sorting, t2 && Po.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(Po.Item, o2 && Po.dragging, l2 && Po.withHandle, t2 && Po.dragOverlay, n2 && Po.disabled, e2 && Po.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...l2 ? void 0 : s2, ...w2, tabIndex: l2 ? void 0 : -1, children: q2 }) });
3173
+ })), Lo = { Row: "_Row_1kr10_1" }, Bo = oe(le(({ children: e2, horizontal: t2, style: o2 }, n2) => Z("div", { ref: n2, style: { ...o2 }, className: Ae(Lo.Row, t2 && Lo.horizontal), children: e2 }))), Oo = { ...Oe }, $o = oe(le((e2, t2) => {
3174
+ const { className: o2, activationConstraint: n2, animateLayoutChanges: r2, adjustScale: l2 = false, collisionDetection: i2 = Be, coordinateGetter: a2 = Ie, dropAnimation: s2 = Oo, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: v2, reorderItems: q2 = Ee, strategy: y2 = Ne, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, T2] = re(() => u2);
3020
3175
  ae(() => {
3021
3176
  T2(u2);
3022
3177
  }, [u2]);
3023
3178
  const [R2, M2] = re(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 = [];
3024
3179
  k2.map((e3, t3) => {
3025
- D2.push(Z(Fo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: r2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
3180
+ D2.push(Z(Wo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: r2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
3026
3181
  const o3 = v2?.({ key: "divider-" + t3 });
3027
3182
  o3 && D2.push(o3);
3028
3183
  });
3029
- const { getPortalContainer: I2 } = O();
3184
+ const { getPortalContainer: I2 } = $();
3030
3185
  return j(Ze, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
3031
3186
  const { active: t3 } = e3;
3032
3187
  t3 && (S2?.(e3), M2(t3.id));
@@ -3037,14 +3192,14 @@ const yo = oe(le((e2, t2) => {
3037
3192
  }
3038
3193
  }, onDragCancel: () => {
3039
3194
  M2(null);
3040
- }, measuring: p2, modifiers: f2, children: [Z("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Ae(o2, ko.Wrapper), children: Z(Pe, { items: k2, strategy: y2, children: Z(Mo, { ref: t2, children: D2 }) }) }), b2 ? Fe(Z(je, { adjustScale: l2, dropAnimation: s2, children: R2 ? Z(To, { 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] });
3195
+ }, measuring: p2, modifiers: f2, children: [Z("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Ae(o2, Po.Wrapper), children: Z(He, { items: k2, strategy: y2, children: Z(Bo, { ref: t2, children: D2 }) }) }), b2 ? Fe(Z(je, { adjustScale: l2, dropAnimation: s2, children: R2 ? Z(Vo, { 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] });
3041
3196
  }));
3042
- function Fo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: r2, index: l2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
3043
- const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Ve({ id: r2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
3044
- return Z(To, { ref: f2, value: r2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: l2, style: a2({ index: l2, id: r2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(r2) : void 0, transform: w2, transition: v2, wrapperStyle: c2({ index: l2, isDragging: u2, id: r2 }), listeners: m2, "data-index": l2, "data-id": r2, dragOverlay: !d2 && u2, ...g2 });
3197
+ function Wo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: r2, index: l2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
3198
+ const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Pe({ id: r2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
3199
+ return Z(Vo, { ref: f2, value: r2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: l2, style: a2({ index: l2, id: r2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(r2) : void 0, transform: w2, transition: v2, wrapperStyle: c2({ index: l2, isDragging: u2, id: r2 }), listeners: m2, "data-index": l2, "data-id": r2, dragOverlay: !d2 && u2, ...g2 });
3045
3200
  }
3046
- const Do = "_TabStrip_3x0dp_1", Io = new h("rgb(33, 115, 70)"), Eo = "#eee", No = (e2) => Z(xo, { ...e2 }), Po = oe(le((e2, t2) => {
3047
- const { children: o2, style: n2, className: r2, selectedTabIndex: l2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 = No, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: v2 = "white", activeColor: q2 = Io, borderColor: y2 = Eo, borderWidth: C2 = 1 } = e2, [b2, S2] = re(l2), [x2, k2] = re(i2), T2 = de((e3) => {
3201
+ const Uo = "_TabStrip_3x0dp_1", _o = new h("rgb(33, 115, 70)"), Go = "#eee", Zo = (e2) => Z(Ho, { ...e2 }), jo = oe(le((e2, t2) => {
3202
+ const { children: o2, style: n2, className: r2, selectedTabIndex: l2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = W, createScrollEndButton: g2 = U, createScrollEdgeButton: u2 = _, createTabButton: h2 = Zo, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: v2 = "white", activeColor: q2 = _o, borderColor: y2 = Go, borderWidth: C2 = 1 } = e2, [b2, S2] = re(l2), [x2, k2] = re(i2), T2 = de((e3) => {
3048
3203
  const t3 = I2.current?.[e3]?.closest(".tab-item") ?? I2.current?.[e3];
3049
3204
  t3 && O2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
3050
3205
  }, []);
@@ -3064,13 +3219,13 @@ const Do = "_TabStrip_3x0dp_1", Io = new h("rgb(33, 115, 70)"), Eo = "#eee", No
3064
3219
  k2(i2);
3065
3220
  }, [i2]);
3066
3221
  const I2 = ie([]), E2 = ie(null);
3067
- he(t2, () => Object.assign({ startEdit(e3) {
3222
+ pe(t2, () => Object.assign({ startEdit(e3) {
3068
3223
  I2.current?.[e3]?.startEdit();
3069
3224
  }, cancel(e3) {
3070
3225
  I2.current?.[e3]?.cancel();
3071
3226
  } }, E2.current), [b2, z2]);
3072
- const P2 = de(({ value: e3, index: t3, dragging: o3 }) => {
3073
- const { style: n3, maxLength: r3, ...l3 } = p2 || {}, i3 = Z(So, { ref: (e4) => {
3227
+ const N2 = de(({ value: e3, index: t3, dragging: o3 }) => {
3228
+ const { style: n3, maxLength: r3, ...l3 } = p2 || {}, i3 = Z(No, { ref: (e4) => {
3074
3229
  I2.current[t3] = e4;
3075
3230
  }, value: e3, disabled: f2, maxLength: r3, 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: () => {
3076
3231
  A2.current = false, F2(-1);
@@ -3078,20 +3233,20 @@ const Do = "_TabStrip_3x0dp_1", Io = new h("rgb(33, 115, 70)"), Eo = "#eee", No
3078
3233
  A2.current = true, F2(t3);
3079
3234
  }, ...l3 });
3080
3235
  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 });
3081
- }, [b2, D2, R2, p2, f2, z2, h2]), [V2, { width: H2 }] = Me(), [L2, { width: B2 }] = Me(), O2 = ie(null), [G2, X2] = re({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = re(null);
3236
+ }, [b2, D2, R2, p2, f2, z2, h2]), [P2, { width: V2 }] = Me(), [L2, { width: B2 }] = Me(), O2 = ie(null), [$2, X2] = re({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = re(null);
3082
3237
  ae(() => {
3083
3238
  null !== Y2 && O2.current && O2.current.scrollTo({ left: Y2, behavior: "smooth" });
3084
3239
  }, [Y2]);
3085
3240
  const Q2 = de((e3, t3 = false) => {
3086
3241
  if (!O2.current) return 0;
3087
3242
  let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, r3 = 0;
3088
- return r3 = t3 ? 0 : _.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(r3), Math.max(0, r3);
3243
+ return r3 = t3 ? 0 : G.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(r3), Math.max(0, r3);
3089
3244
  }, []), ee2 = de((e3, t3 = false) => {
3090
3245
  if (!O2.current) return 0;
3091
3246
  let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, r3 = 0;
3092
- const l3 = Math.ceil(B2 - H2);
3093
- return r3 = t3 ? l3 : _.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(r3), Math.min(l3, r3);
3094
- }, [B2, H2]), te2 = ie(null), oe2 = ie(null), le2 = de(() => {
3247
+ const l3 = Math.ceil(B2 - V2);
3248
+ return r3 = t3 ? l3 : G.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(r3), Math.min(l3, r3);
3249
+ }, [B2, V2]), te2 = ie(null), oe2 = ie(null), le2 = de(() => {
3095
3250
  oe2.current && (clearTimeout(oe2.current), oe2.current = null, te2.current = null);
3096
3251
  }, []), ce2 = de((e3, t3, o3 = 260) => {
3097
3252
  te2.current = e3, oe2.current = setTimeout(() => {
@@ -3100,182 +3255,23 @@ const Do = "_TabStrip_3x0dp_1", Io = new h("rgb(33, 115, 70)"), Eo = "#eee", No
3100
3255
  }, o3);
3101
3256
  }, [Q2, ee2, le2]);
3102
3257
  ae(() => () => le2(), [le2]);
3103
- const ge2 = ne(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(G2.left) <= 0 || 0 === Math.floor(B2 - H2), orientation: N.Horizontal, onMouseUp: le2, onMouseLeave: le2, onMouseDown: () => ce2(O2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(O2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [G2, Y2, B2, H2]), ue2 = ne(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(B2 - H2) <= Math.ceil(G2.left), orientation: N.Horizontal, onMouseUp: le2, onMouseLeave: le2, onMouseDown: () => ce2(O2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(O2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [G2, Y2, B2, H2]), me2 = ne(() => j(K, { children: [Z("div", { style: { minWidth: "16px" } }), o2, u2?.(ge2)] }), [ge2, ue2, c2, g2, o2, u2]);
3104
- return j("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Ae(Do, r2), ref: E2, children: [Z("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: me2 }), Z("div", { className: "Tabs", ref: V2, 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) => {
3258
+ const ge2 = ne(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor($2.left) <= 0 || 0 === Math.floor(B2 - V2), orientation: H.Horizontal, onMouseUp: le2, onMouseLeave: le2, 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: le2, onMouseLeave: le2, 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]);
3259
+ return j("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Ae(Uo, r2), ref: E2, 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) => {
3105
3260
  X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
3106
- }, children: Z(zo, { isDisabled: (e3) => f2 || w2, items: x2, strategy: He, modifiers: [Le], ref: L2, renderItem: P2, renderDivider: m2, onMove: M2, activationConstraint: { distance: 15 } }) }) }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(ue2) })] });
3107
- }));
3108
- Po.displayName = "TabStrip";
3109
- const Vo = new class {
3110
- constructor() {
3111
- this._taskPanes = /* @__PURE__ */ new Map();
3112
- }
3113
- registerTaskPane(e2, t2 = false) {
3114
- const o2 = e2.key.toLowerCase();
3115
- if (!t2 && this._taskPanes.has(o2)) throw new Error(`Task pane with key '${o2}' is already registered.`);
3116
- this._taskPanes.set(o2, e2);
3117
- }
3118
- unregisterTaskPane(e2) {
3119
- if (e2 = e2.toLowerCase(), !this._taskPanes.has(e2)) throw new Error(`Task pane with key '${e2}' is not registered.`);
3120
- this._taskPanes.delete(e2);
3121
- }
3122
- getRegisteredTaskPane(e2) {
3123
- return e2 = e2.toLowerCase(), this._taskPanes.get(e2) ?? null;
3124
- }
3125
- findContributions(e2) {
3126
- if (!e2) return X.EmptyArray;
3127
- const t2 = [];
3128
- e2 = (e2 = e2.toLowerCase()).replace(/\/+$/g, "");
3129
- for (const o2 of this._taskPanes.values()) {
3130
- const n2 = o2.contributionPoints;
3131
- if (n2 && 0 !== n2.length) for (let r2 of n2) r2.startsWith(e2) && t2.push(o2);
3132
- }
3133
- return t2;
3134
- }
3135
- }(), Ho = me(void 0), Lo = ({ children: e2, createArea: t2, onUpdateArea: o2, registry: n2 = Vo }) => {
3136
- const r2 = te.useRef(null), l2 = te.useRef(null), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useMemo(() => ({ activateTaskPane(e3, t3) {
3137
- l2.current !== e3 && (r2.current ? r2.current.activateTaskPane(e3, t3) : (a2(e3), g2(e3)));
3138
- } }), []), g2 = S((e3) => {
3139
- const r3 = t2({ registry: n2, onClose: () => {
3140
- d2(null), o2?.(null);
3141
- } }, (e4) => {
3142
- e4 && d2(e4);
3143
- });
3144
- return o2?.(r3), r3;
3145
- }, [t2, n2, i2]);
3146
- return te.useEffect(() => {
3147
- s2 && i2 && (s2.activateTaskPane(i2, { focus: true }), a2(null));
3148
- }, [i2, s2]), te.createElement(Ho.Provider, { value: s2 ?? c2 }, e2);
3149
- }, Bo = { activateTaskPane(e2, t2) {
3150
- console.warn("No TaskPaneArea available to activate task pane", e2, t2);
3151
- } }, Oo = () => {
3152
- const e2 = pe(Ho);
3153
- return e2 || Bo;
3154
- }, $o = { TaskPaneArea: "_TaskPaneArea_1j53w_5", TaskPaneTitle: "_TaskPaneTitle_1j53w_13", TaskPaneFrame: "_TaskPaneFrame_1j53w_36", TaskPaneStrip: "_TaskPaneStrip_1j53w_51", TaskPaneStripItem: "_TaskPaneStripItem_1j53w_59" }, Wo = oe(le((e2, t2) => {
3155
- const { children: o2, title: n2, icon: r2, onClose: l2, readOnly: i2, focused: a2, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => Ae("taskpane-title", d2, $o.TaskPaneTitle, { focused: a2 }), [d2, a2]);
3156
- 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) => {
3157
- e3.stopPropagation();
3158
- }, onPointerUp: () => {
3159
- l2();
3160
- }, children: Z("div", { style: { fontSize: "0.7em" }, children: "✕" }) })] });
3261
+ }, children: Z($o, { 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) })] });
3161
3262
  }));
3162
- Wo.displayName = "TaskPaneTitle";
3163
- const Uo = (e2, t2) => Z(Wo, { ...e2, ref: t2 }), _o = oe(le((e2, t2) => {
3164
- const { children: o2, entry: n2, close: r2, listenerContainer: l2, model: i2, commands: a2, onMounted: s2, onUnmounted: d2, paneWrapper: c2, paneProps: g2, renderTaskPanelTitle: u2 = Uo, style: h2, className: m2, ...p2 } = e2, [f2, w2] = re(null), [v2, q2] = re(false), y2 = S(r2, [r2]), C2 = ie(null), b2 = ie(null);
3165
- ae(() => (s2?.(n2), () => {
3166
- d2?.(n2);
3167
- }), [n2]);
3168
- const x2 = ie([]), k2 = ne(() => ({ addListener: (e3) => {
3169
- const t3 = l2(e3);
3170
- return x2.current.push(t3), t3;
3171
- }, close: () => {
3172
- y2?.();
3173
- } }), [l2]);
3174
- ae(() => () => {
3175
- for (const e3 of x2.current) e3();
3176
- x2.current = [];
3177
- }, []);
3178
- const T2 = ne(() => (n2.renderTaskPanelTitle ?? u2)({ title: n2.getTitle(), icon: null, readOnly: false, focused: v2, onClose: y2, onPointerDown: (e3) => {
3179
- } }, b2), [n2, v2]), R2 = ne(() => {
3180
- let e3 = n2.renderTaskPane({ entryKey: n2.key, model: i2, commands: a2, frame: k2, ...g2 }, t2);
3181
- return c2 && (e3 = c2(e3)), e3;
3182
- }, [n2, i2, a2, t2]);
3183
- return j("div", { className: Ae("taskpane-frame", m2, $o.TaskPaneFrame), tabIndex: 0, ref: C2, style: h2, onPointerDown: async (e3) => {
3184
- e3.currentTarget.focus();
3185
- }, onFocus: (e3) => {
3186
- e3.relatedTarget && !f2 && w2(e3.relatedTarget), q2(true);
3187
- }, onBlur: (e3) => {
3188
- f2 && !C2?.current?.contains(e3.relatedTarget) && w2(null), e3.relatedTarget && q2(false);
3189
- }, ...p2, children: [Z("div", { style: { flex: "0 0 0%", display: "flex", flexDirection: "column", width: "100%", alignItems: "stretch", justifyContent: "stretch" }, children: T2 }), Z("div", { className: "taskpane-frame-content", style: { flex: "1 1 0", display: "flex", width: "100%", overflow: "hidden" }, children: R2 })] });
3190
- })), Go = oe(le((e2, t2) => {
3191
- const { children: o2, title: n2, taskPanes: r2, onSelect: l2, selected: i2, registry: a2 = Vo, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => r2.map((t3) => {
3192
- const o3 = a2.getRegisteredTaskPane(t3);
3193
- if (!o3) return null;
3194
- let n3 = o3.getIcon?.();
3195
- n3 && ("string" == typeof n3 && (n3 = Z(G, { iconKey: n3 })), n3 = Z("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: n3 }));
3196
- 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", $o.TaskPaneStripItem, { selected: t3 === i2 }), onClick: () => e2.onSelect(t3), children: [n3, o3.getTitle()] }, t3);
3197
- }), [r2, i2, l2, a2]), u2 = b(t2, () => ({ isTaskPaneStrip: () => true }), []), h2 = ne(() => Ae("taskpane-strip", d2, $o.TaskPaneStrip), [d2]);
3198
- return Z("div", { ref: u2, className: h2, style: s2, ...c2, children: g2 });
3199
- }));
3200
- Go.displayName = "TaskPaneStrip";
3201
- const Zo = (e2, t2) => Z(Go, { ref: t2, ...e2 }), jo = oe(le((e2, t2) => {
3202
- const { className: o2 = "", registry: n2 = Vo, model: r2, commands: l2, onOpen: i2, onClose: a2, paneWrapper: s2, paneProps: d2, frameWrapper: c2, frameProps: g2, renderTaskPanelTitle: u2, renderTaskPaneStrip: h2 = Zo, alwaysShowStrip: m2, style: p2 } = e2, f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = re(null), y2 = ie(null), [C2, x2] = re([]), k2 = ie(/* @__PURE__ */ new Set()), T2 = S(async (e3, t3 = false) => {
3203
- const o3 = Array.from(k2.current), n3 = o3.length;
3204
- let r3 = true;
3205
- for (let e4 = 0; r3 && e4 < n3; e4++) {
3206
- const t4 = o3[e4];
3207
- if (t4.onBeforeHide) try {
3208
- false === await Promise.resolve(t4.onBeforeHide()) && (r3 = false);
3209
- } catch (e5) {
3210
- r3 = false;
3211
- }
3212
- }
3213
- return r3;
3214
- }, []), R2 = S((e3) => {
3215
- const t3 = Array.from(k2.current), o3 = t3.length;
3216
- x2((t4) => {
3217
- const o4 = t4.findIndex((t5) => t5.key === e3);
3218
- if (-1 === o4) return t4;
3219
- const n3 = [...t4];
3220
- return n3.splice(o4, 1), 0 === n3.length ? (q2(null), w2?.(), n3) : (M2(n3[Math.max(n3.length - 1, o4 - 1)].key), n3);
3221
- });
3222
- for (let e4 = 0; e4 < o3; e4++) {
3223
- const o4 = t3[e4];
3224
- try {
3225
- o4.onHide?.();
3226
- } catch (e5) {
3227
- }
3228
- }
3229
- }, [w2]), M2 = S(async (e3) => {
3230
- const t3 = n2.getRegisteredTaskPane(e3);
3231
- if (!t3) return void console.warn(`Invalid taskpane '${e3}'`);
3232
- if (y2.current === e3) return;
3233
- if (v2) {
3234
- if (!await T2(v2.key)) return;
3235
- }
3236
- const o3 = te.createRef();
3237
- let i3 = Z(_o, { ref: () => {
3238
- y2.current = null;
3239
- }, entry: t3, model: r2, commands: l2, close: async () => {
3240
- await T2(e3) && R2(e3);
3241
- }, paneWrapper: s2, paneProps: d2, renderTaskPanelTitle: u2, listenerContainer: (e4) => {
3242
- k2.current.add(e4);
3243
- return () => {
3244
- k2.current.delete(e4);
3245
- };
3246
- }, onMounted: (t4) => {
3247
- t4.key === e3 && (y2.current = null), f2?.();
3248
- }, onUnmounted: (e4) => {
3249
- }, ...g2 });
3250
- c2 && (i3 = c2(i3));
3251
- const a3 = { key: e3, elem: i3, ref: o3 };
3252
- x2((t4) => {
3253
- if (-1 !== t4.findIndex((t5) => t5.key === e3)) return t4;
3254
- const o4 = [...t4];
3255
- return o4.push(a3), o4;
3256
- }), q2(a3), y2.current = e3;
3257
- }, [v2, c2, s2, u2]);
3258
- ae(() => {
3259
- v2 && !y2.current && M2(v2.key);
3260
- }, [g2, r2]);
3261
- const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2, r2, l2]), z2 = ne(() => C2.map((e3) => e3.key), [C2]), F2 = ne(() => {
3262
- if (z2.length <= 1 && !m2) return null;
3263
- return h2({ className: $o.TaskPaneAreaStrip, taskPanes: z2, selected: v2?.key, onSelect: (e3) => {
3264
- M2(e3);
3265
- }, registry: n2 }, null);
3266
- }, [z2, v2, n2, m2]), D2 = v2?.elem;
3267
- return j("div", { ref: A2, className: Ae("taskpane-area", o2, $o.TaskPaneArea), style: p2, children: [D2, F2] });
3268
- })), Ko = (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" })] }), Xo = (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" })] }), 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 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" })] }), 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 -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" })] }), 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 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" })] }), 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 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" })] }), 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 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" })] }), on = (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" })] }), nn = (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" })] }), ln = (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" })] }), 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 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" })] }), sn = (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" })] }), 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 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" })] }), 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 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" })] }), gn = (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" })] }), un = (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" })] }), hn = (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" })] }), mn = (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" })] }), pn = (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" })] }), fn = (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" })] }), wn = (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" })] }), vn = (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" })] }), qn = (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" })] }), 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 = me(null);
3263
+ jo.displayName = "TabStrip";
3264
+ const Ko = (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" })] }), Xo = (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" })] }), 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 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" })] }), 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 -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" })] }), 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 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" })] }), 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 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" })] }), 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 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" })] }), on = (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" })] }), nn = (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" })] }), ln = (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" })] }), 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 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" })] }), sn = (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" })] }), 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 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" })] }), 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 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" })] }), gn = (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" })] }), un = (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" })] }), hn = (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" })] }), mn = (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" })] }), pn = (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" })] }), fn = (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" })] }), wn = (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" })] }), vn = (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" })] }), qn = (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" })] }), 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 = ce(null);
3269
3265
  Cn.displayName = "DocThemesContext";
3270
3266
  const bn = (e2) => {
3271
3267
  const { themes: t2, children: o2 } = e2;
3272
3268
  return Z(Cn.Provider, { value: t2, children: o2 });
3273
3269
  }, Sn = () => {
3274
- const e2 = pe(Cn), [t2] = re(() => new y());
3270
+ const e2 = ge(Cn), [t2] = re(() => new y());
3275
3271
  return ne(() => e2 || t2, [e2]);
3276
3272
  }, xn = "_script-editor_iy654_5", kn = { 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" }, Tn = te.lazy(() => import("@monaco-editor/react"));
3277
3273
  let Rn, Mn, An = ["define", "require"], zn = false;
3278
- let Fn = "@0.7.6";
3274
+ let Fn = "@0.7.8";
3279
3275
  "@local" !== Fn && "@0.0.0" !== Fn || (Fn = "");
3280
3276
  const Dn = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Fn}/types/scripting.d.ts`, In = async (e2, t2, o2) => {
3281
3277
  const n2 = e2.getModel();
@@ -3286,8 +3282,8 @@ const Dn = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Fn}/types/scripting.d.ts`
3286
3282
  let d2 = false;
3287
3283
  for (let e3 = a2.lineNumber; e3 >= 1; e3--) {
3288
3284
  if ("" === n2.getLineContent(e3).trim()) {
3289
- const t3 = Pn(i2, n2.getOffsetAt({ lineNumber: e3, column: 1 }), "function");
3290
- if (!t3 || Vn(t3)) {
3285
+ const t3 = Hn(i2, n2.getOffsetAt({ lineNumber: e3, column: 1 }), "function");
3286
+ if (!t3 || Pn(t3)) {
3291
3287
  d2 = true, s2.lineNumber = e3 + 1;
3292
3288
  break;
3293
3289
  }
@@ -3322,24 +3318,24 @@ function Nn(e2, t2, o2, n2, r2 = []) {
3322
3318
  if (n2.childItems) for (const l2 of n2.childItems) Nn(e2, t2, o2, l2, r2);
3323
3319
  return r2;
3324
3320
  }
3325
- function Pn(e2, t2, o2 = "function", n2) {
3321
+ function Hn(e2, t2, o2 = "function", n2) {
3326
3322
  const r2 = e2.spans, l2 = r2.length;
3327
3323
  for (let i2 = 0; i2 < l2; i2++) {
3328
3324
  const l3 = r2[i2];
3329
3325
  if (l3.start <= t2 && t2 < l3.start + l3.length) {
3330
3326
  if (e2.kind === o2 && (!n2 || e2.kindModifiers === n2)) return e2;
3331
3327
  for (const r3 of e2.childItems || []) {
3332
- const e3 = Pn(r3, t2, o2, n2);
3328
+ const e3 = Hn(r3, t2, o2, n2);
3333
3329
  if (e3) return e3;
3334
3330
  }
3335
3331
  }
3336
3332
  return null;
3337
3333
  }
3338
3334
  }
3339
- function Vn(e2) {
3335
+ function Pn(e2) {
3340
3336
  return "comment" === e2.kind;
3341
3337
  }
3342
- const Hn = oe(le((e2, t2) => {
3338
+ const Vn = oe(le((e2, t2) => {
3343
3339
  const { className: o2, style: n2, commands: r2, readOnly: l2 = false, darkMode: i2, loadingPanel: a2, autoFocus: s2 = true, frame: d2, onStatusChange: c2, ...g2 } = e2, u2 = ie(null), h2 = ie(false), m2 = ne(() => ({ contains(e3) {
3344
3340
  if (!u2.current) return;
3345
3341
  const t3 = u2.current.editor;
@@ -3353,7 +3349,7 @@ const Hn = oe(le((e2, t2) => {
3353
3349
  let e3 = null;
3354
3350
  const t3 = () => m2;
3355
3351
  return e3 = r2 ? r2.createChildGroup(t3, "scriptEditor", false) : new M(t3, "scriptEditor"), e3.addCommands(p2, true), e3;
3356
- }, [r2, p2]), w2 = r2.getGroup("workbook"), v2 = E(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) => {
3352
+ }, [r2, p2]), w2 = r2.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) => {
3357
3353
  k2((t3) => {
3358
3354
  const o3 = { ...t3, ...e3 };
3359
3355
  return X.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
@@ -3387,7 +3383,7 @@ const Hn = oe(le((e2, t2) => {
3387
3383
  }, [C2]);
3388
3384
  const D2 = S((e3) => {
3389
3385
  q2?.execute(e3);
3390
- }, [q2]), I2 = ie(""), [N2, P2] = re(false), V2 = S(async () => {
3386
+ }, [q2]), I2 = ie(""), [E2, H2] = re(false), P2 = S(async () => {
3391
3387
  if (!u2.current) return null;
3392
3388
  const e3 = u2.current, t3 = e3.editor;
3393
3389
  if (!t3) return null;
@@ -3399,7 +3395,7 @@ const Hn = oe(le((e2, t2) => {
3399
3395
  if (!s3) return null;
3400
3396
  const d3 = s3.startLineNumber === s3.endLineNumber && s3.startColumn === s3.endColumn ? n4.getLineCount() : Math.min(s3.endLineNumber, n4.getLineCount());
3401
3397
  for (let e5 = s3.startLineNumber; !a3 && e5 <= d3; e5++) {
3402
- const t5 = Pn(i3, n4.getOffsetAt({ lineNumber: e5, column: 1 }), "function", o4);
3398
+ const t5 = Hn(i3, n4.getOffsetAt({ lineNumber: e5, column: 1 }), "function", o4);
3403
3399
  t5 && (a3 = t5.text);
3404
3400
  }
3405
3401
  return a3;
@@ -3407,7 +3403,7 @@ const Hn = oe(le((e2, t2) => {
3407
3403
  return z2({ message: (n3 ?? "").toUpperCase() }), n3 ? { source: t3.getValue(), name: n3 } : null;
3408
3404
  }, []);
3409
3405
  S(X.debounce(F2, 200), []);
3410
- const H2 = S(async (e3, t3, o3) => {
3406
+ const V2 = S(async (e3, t3, o3) => {
3411
3407
  A2((e4) => ({ ...e4, compiling: true }));
3412
3408
  const n3 = await C2?.getScripts().createModule({ source: o3?.getValue(), declarationsOnly: true });
3413
3409
  if (!n3) return;
@@ -3426,11 +3422,11 @@ const Hn = oe(le((e2, t2) => {
3426
3422
  });
3427
3423
  U2.current && U2.current.clear(), U2.current = o4.createDecorationsCollection(a3);
3428
3424
  })(e3, t3, o3, n3 ? n3.getFunctions().getItems() : X.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
3429
- }, [C2]), L2 = S(X.debounce(H2, 580), []), B2 = S(async (e3 = void 0) => {
3425
+ }, [C2]), L2 = S(X.debounce(V2, 580), []), B2 = S(async (e3 = void 0) => {
3430
3426
  if (!u2.current || !C2) return;
3431
3427
  const t3 = u2.current.editor.getPosition(), o3 = { cursor: t3 ? t3.toString() : "" };
3432
3428
  void 0 !== e3 && (o3.message = e3), z2(o3);
3433
- const n3 = V2();
3429
+ const n3 = P2();
3434
3430
  C2.setSelectedFunction(n3);
3435
3431
  }, [C2]);
3436
3432
  ae(() => {
@@ -3443,7 +3439,7 @@ const Hn = oe(le((e2, t2) => {
3443
3439
  const e3 = { insertSnippet: (e4) => {
3444
3440
  u2.current?.editor && In(u2.current.editor, u2.current.monaco, e4);
3445
3441
  }, close: () => $2() };
3446
- C2.setEditor(e3), C2.setSelectedFunction(V2());
3442
+ C2.setEditor(e3), C2.setSelectedFunction(P2());
3447
3443
  const t3 = C2.addContainerListener({ onBeforeSave: async () => {
3448
3444
  F2();
3449
3445
  }, onReadonlyChange() {
@@ -3462,12 +3458,12 @@ const Hn = oe(le((e2, t2) => {
3462
3458
  const t3 = e3.debounceTimer;
3463
3459
  void 0 !== t3 && clearTimeout(t3), O2.current = null;
3464
3460
  }
3465
- }, [N2]);
3461
+ }, [E2]);
3466
3462
  const W2 = S((e3) => {
3467
3463
  const t3 = u2.current?.editor;
3468
3464
  return !!t3 && (t3.focus(e3), true);
3469
3465
  }, [x2]), U2 = ie(null), _2 = S((e3, t3) => {
3470
- u2.current = { monaco: t3, editor: e3 }, P2(true), B2("Loading Types");
3466
+ u2.current = { monaco: t3, editor: e3 }, H2(true), B2("Loading Types");
3471
3467
  const o3 = C2?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
3472
3468
  e3.setValue(o3), import("monaco-editor-auto-typings/custom-editor.js").then(async (o4) => {
3473
3469
  B2("");
@@ -3507,7 +3503,7 @@ const Hn = oe(le((e2, t2) => {
3507
3503
  }), e3.addCommand("executeScript", function(e4, ...t4) {
3508
3504
  t4?.[0] && D2({ functionName: t4?.[0] });
3509
3505
  }, ""), e3.addAction({ id: "executeScript", label: "Execute", keybindings: [t3.KeyCode.F8], run: async (e4) => {
3510
- const t4 = V2();
3506
+ const t4 = P2();
3511
3507
  C2?.setSelectedFunction(t4);
3512
3508
  const o4 = await t4;
3513
3509
  D2(o4);
@@ -3543,8 +3539,8 @@ const Hn = oe(le((e2, t2) => {
3543
3539
  }), e3.onDidChangeCursorPosition((e4) => {
3544
3540
  B2();
3545
3541
  });
3546
- }, [C2]), G2 = ne(() => N2 ? null : a2 || Z("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [N2, a2]), K2 = ne(() => {
3547
- if (!N2) {
3542
+ }, [C2]), G2 = ne(() => E2 ? null : a2 || Z("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [E2, a2]), K2 = ne(() => {
3543
+ if (!E2) {
3548
3544
  if (!Rn) {
3549
3545
  Rn = {};
3550
3546
  const e4 = An.length;
@@ -3562,7 +3558,7 @@ const Hn = oe(le((e2, t2) => {
3562
3558
  }
3563
3559
  }
3564
3560
  const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
3565
- return j("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [Z(ge, { children: Z(Tn, { theme: i2 ? "extended-dark" : "extended", options: { ...kn, fixedOverflowWidgets: true, readOnly: l2 }, language: "typescript", value: e3, onValidate: (e4) => {
3561
+ return j("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [Z(he, { children: Z(Tn, { theme: i2 ? "extended-dark" : "extended", options: { ...kn, fixedOverflowWidgets: true, readOnly: l2 }, language: "typescript", value: e3, onValidate: (e4) => {
3566
3562
  let t3 = false;
3567
3563
  const o3 = e4 ? e4.length : 0;
3568
3564
  for (let n3 = 0; !t3 && n3 < o3; n3++) 8 === e4[n3].severity && (t3 = true);
@@ -3650,7 +3646,7 @@ export {
3650
3646
  Xo as ChartColumnIcon,
3651
3647
  Yo as ChartColumnStackedIcon,
3652
3648
  Jo as ChartColumnStackedPercentIcon,
3653
- yo as ChartEditor,
3649
+ Do as ChartEditor,
3654
3650
  Qo as ChartLineIcon,
3655
3651
  on as ChartLineMarkersIcon,
3656
3652
  en as ChartLineStackedIcon,
@@ -3664,43 +3660,43 @@ export {
3664
3660
  pn as ChartScatterLinesMarkersSmoothIcon,
3665
3661
  fn as ChartScatterLinesSmoothIcon,
3666
3662
  mn as ChartScatterMarkersIcon,
3667
- wo as CommandContext,
3663
+ Ao as CommandContext,
3668
3664
  et as CornerTriangle,
3669
3665
  Xe as DateUtils,
3670
- Vo as DefaultTaskPaneRegistry,
3666
+ kt as DefaultTaskPaneRegistry,
3671
3667
  Cn as DocThemesContext,
3672
3668
  bn as DocThemesProvider,
3673
- So as EditableLabel,
3674
- oo as EmptyFrame,
3669
+ No as EditableLabel,
3670
+ po as EmptyFrame,
3675
3671
  tt as FilterButton,
3676
3672
  Qe as FontUtils,
3677
- To as Item,
3673
+ Vo as Item,
3678
3674
  LicenseManager,
3679
3675
  Ko as LogoNoPaddingIcon,
3680
3676
  Ct as LogoTextNoPaddingIcon,
3681
- Jt as MovableArea,
3682
- qo as PictureEditor,
3683
- Mo as Row,
3684
- Hn as ScriptEditor,
3677
+ go as MovableArea,
3678
+ Fo as PictureEditor,
3679
+ Bo as Row,
3680
+ Vn as ScriptEditor,
3685
3681
  it as SheetCellEditor,
3686
3682
  ot as SheetCellRenderer,
3687
- fo as SheetElement,
3688
- Rt as SheetScrollbar,
3683
+ Mo as SheetElement,
3684
+ Lt as SheetScrollbar,
3689
3685
  vt as StaticBorderRenderer,
3690
3686
  st as StyledStrokePath,
3691
- xo as Tab,
3692
- Po as TabStrip,
3693
- jo as TaskPaneArea,
3694
- Lo as TaskPaneProvider,
3695
- Go as TaskPaneStrip,
3696
- Wo as TaskPaneTitle,
3687
+ Ho as Tab,
3688
+ jo as TabStrip,
3689
+ Ht as TaskPaneArea,
3690
+ Rt as TaskPaneProvider,
3691
+ Et as TaskPaneStrip,
3692
+ Ft as TaskPaneTitle,
3697
3693
  at as createCellEditStateFromCell,
3698
3694
  ut as useBordersOverlay,
3699
3695
  Sn as useDocThemes,
3700
3696
  St as useModelListener,
3701
- to as useMovableCommands,
3697
+ mo as useMovableCommands,
3702
3698
  xt as useRangeListener,
3703
- Tt as useSheetCommands,
3704
- Ht as useSheetCopyPaste,
3705
- Oo as useTaskPaneArea
3699
+ Vt as useSheetCommands,
3700
+ Xt as useSheetCopyPaste,
3701
+ At as useTaskPaneArea
3706
3702
  };