@sheetxl/react 0.6.6 → 0.6.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.
- package/browser/cjs/BBHaBfOQH1gu1xQj.cjs +16 -0
- package/browser/cjs/DGdx885qdoMTEwzK.cjs +7 -0
- package/browser/cjs/index.cjs +16 -16
- package/browser/cjs/nIvlmfiweV3ElY9M.cjs +161 -0
- package/browser/esm/{Cyt8i0yMUhcyUi_X.mjs → CHktzsnwL5GgtnMD.mjs} +197 -197
- package/browser/esm/{BC91Htcrvw2he2mK.mjs → DTDMM4wzkVNUuWJx.mjs} +35 -35
- package/browser/esm/{DkcoDi-4aZ6TgzgC.mjs → Dp06ixPZGad-PQKf.mjs} +13 -13
- package/browser/esm/index.mjs +3341 -3310
- package/licenses/dependencies.txt +2 -2
- package/node/esm/{BNOLvMnsg0e12DKh.mjs → 4GvsEqYx_7ldThJ8.mjs} +1 -1
- package/node/esm/index.mjs +412 -380
- package/package.json +6 -6
- package/types/index.d.ts +8 -5
- package/browser/cjs/B9LGS8BmnoMbzu30.cjs +0 -16
- package/browser/cjs/B_FP53qR3PJ1H8Na.cjs +0 -7
- package/browser/cjs/D3e2wXiI5aQO332L.cjs +0 -161
package/node/esm/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.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 l, GeomUtils as r, ScalarType as i, IFont as a, IRange as s, LicenseManager as d, IColor as c, AutoFill as g, ISheetView as u, Color as h, IFill as m, RangeClipboardItem as p, ExternalRangeClipboardItem as f, TextUtils as w, IAnchored as q, CoordUtils as v, 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 R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A, useEditMode as z, useGlobalClipboard as F, NotificationType as
|
|
9
|
+
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A, useEditMode as z, useGlobalClipboard as F, NotificationType as E, useCommands as D, ScrollbarOrientation as I, VirtualScrollbar as N, MouseButtonCodes as V, ToolTipPlacement as L, DefaultNotifier as H, HorizontalAlignment as B, ScrollPane as O, useFullscreenPortal as P, defaultCreateScrollStartButton as $, defaultCreateScrollEndButton as W, defaultCreateScrollEdgeButton as U, ScrollUtils as _ } from "@sheetxl/utils-react";
|
|
10
10
|
export * from "@sheetxl/utils-react";
|
|
11
11
|
import { jsx as G, jsxs as Z, Fragment as j } from "react/jsx-runtime";
|
|
12
12
|
import { CommonUtils as K, AnchorLocation as X, TypesUtils as Y, CoordUtils as J } from "@sheetxl/utils";
|
|
@@ -17,9 +17,9 @@ import { useMeasure as Re } from "react-use";
|
|
|
17
17
|
import Me from "clsx";
|
|
18
18
|
import { unstable_batchedUpdates as Te, createPortal as Ae } from "react-dom";
|
|
19
19
|
import { useForkRef as ze } from "rooks";
|
|
20
|
-
import { sortableKeyboardCoordinates as Fe, arrayMove as
|
|
21
|
-
import { restrictToHorizontalAxis as
|
|
22
|
-
import { closestCenter as
|
|
20
|
+
import { sortableKeyboardCoordinates as Fe, arrayMove as Ee, rectSortingStrategy as De, SortableContext as Ie, useSortable as Ne, horizontalListSortingStrategy as Ve } from "@dnd-kit/sortable";
|
|
21
|
+
import { restrictToHorizontalAxis as Le } from "@dnd-kit/modifiers";
|
|
22
|
+
import { closestCenter as He, defaultDropAnimation as Be, useSensors as Oe, useSensor as Pe, MouseSensor as $e, TouchSensor as We, KeyboardSensor as Ue, DndContext as _e, DragOverlay as Ge } from "@dnd-kit/core";
|
|
23
23
|
const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Ze }, Symbol.toStringTag, { value: "Module" })), Ke = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Xe = (e2, t2 = true, o2 = Ke) => {
|
|
24
24
|
if (!o2 || 0 === o2.length) return e2;
|
|
25
25
|
if (void 0 === e2) return o2[0];
|
|
@@ -44,26 +44,26 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
44
44
|
i2?.(e3, r2), e3.preventDefault();
|
|
45
45
|
}, ...s2, children: G("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !l2 ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l2 ? 0.6 : 1 }, children: G("path", { d: d2 }) }) });
|
|
46
46
|
}, et = (s2) => {
|
|
47
|
-
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 = Qe, ...M2 } = s2, T2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(),
|
|
48
|
-
let I2,
|
|
49
|
-
const
|
|
50
|
-
let
|
|
51
|
-
if (B2) if (z2.isSpillOverflow())
|
|
47
|
+
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 = Qe, ...M2 } = s2, T2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), E2 = d2.getStyle(), D2 = w2?.darkMode ?? false;
|
|
48
|
+
let I2, N2;
|
|
49
|
+
const V2 = F2 && F2.isFormulaError, L2 = V2 && F2 instanceof e.Parse;
|
|
50
|
+
let H2, B2 = v2 || L2;
|
|
51
|
+
if (B2) if (z2.isSpillOverflow()) N2 = "";
|
|
52
52
|
else {
|
|
53
53
|
const e2 = z2.getFormulaText();
|
|
54
|
-
e2 ?
|
|
54
|
+
e2 ? N2 = e2 : I2 = z2.getNumberFormat(t.Type.General);
|
|
55
55
|
}
|
|
56
56
|
else I2 = z2.getNumberFormat();
|
|
57
|
-
B2 || (
|
|
58
|
-
const O2 =
|
|
57
|
+
B2 || (H2 = z2.getTextOverflow());
|
|
58
|
+
const O2 = H2 ? H2.colBounds.width + H2.leftOffset + H2.rightOffset : A2, P2 = H2 ? H2.anchorBounds.x - H2.leftOffset : 0, $2 = H2 ? H2.anchorBounds.width : A2, W2 = H2 ? H2.anchorBounds.x : 0;
|
|
59
59
|
let U2, _2 = z2.getRenderHorizontalAlignment();
|
|
60
|
-
I2 && (U2 = I2?.formattedRuns,
|
|
60
|
+
I2 && (U2 = I2?.formattedRuns, N2 = U2?.runs[0]?.text ?? I2.displayText);
|
|
61
61
|
const j2 = z2.getCalcStatus() === o.CalcStatus.Pending;
|
|
62
|
-
let Y2 = null, J2 =
|
|
63
|
-
if (!
|
|
64
|
-
const e2 =
|
|
62
|
+
let Y2 = null, J2 = E2.getFill().toCSS(D2, g2), Q2 = 0, ee2 = 0;
|
|
63
|
+
if (!E2.getBorder().isEmpty()) {
|
|
64
|
+
const e2 = E2.getBorder().getRight();
|
|
65
65
|
!e2.isNone() && n.BuiltInDefinitions.get(e2.getStyle()).width > 1 && (Q2 = 1);
|
|
66
|
-
const t2 =
|
|
66
|
+
const t2 = E2.getBorder().getBottom();
|
|
67
67
|
!t2.isNone() && n.BuiltInDefinitions.get(t2.getStyle()).width > 1 && (ee2 = 1);
|
|
68
68
|
}
|
|
69
69
|
let te2 = null;
|
|
@@ -73,26 +73,26 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
73
73
|
}
|
|
74
74
|
let oe2 = null;
|
|
75
75
|
const ne2 = z2.getComments(), le2 = z2.getWarnings(), re2 = z2.getErrors();
|
|
76
|
-
if (ne2 ||
|
|
77
|
-
const e2 = { size: 7 * p2, darkMode:
|
|
78
|
-
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 ||
|
|
76
|
+
if (ne2 || V2 || re2.length > 0 || le2.length > 0) {
|
|
77
|
+
const e2 = { size: 7 * p2, darkMode: D2, cellWidth: $2 * p2 + 2, cellHeight: T2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
|
|
78
|
+
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || V2) && oe2.push(G(Je, { anchorLocation: X.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(G(Je, { anchorLocation: X.TopRight, ...e2 }, `indicator-${oe2.length}`));
|
|
79
79
|
}
|
|
80
|
-
const ie2 =
|
|
80
|
+
const ie2 = E2.getFont();
|
|
81
81
|
let ae2 = I2?.conditionalColor;
|
|
82
|
-
const se2 =
|
|
82
|
+
const se2 = E2.getAlignment(), de2 = se2.getHorizontal() === l.HorizontalAlignment.Fill, ce2 = se2.getHorizontal() === l.HorizontalAlignment.CenterContinuous || de2, ge2 = ce2 || B2 ? 0 : se2.getRotation(), ue2 = z2.getInsets(), he2 = ue2.top + ue2.bottom;
|
|
83
83
|
let me2 = ue2.left, pe2 = ue2.right;
|
|
84
84
|
const fe2 = { ...h2, left: h2.left - 1, top: h2.top - 1, width: h2.width + 1 + Q2, height: h2.height + 1 + ee2 }, we2 = z2.getColumnFilter(), qe2 = we2 && !we2?.hasHiddenButton();
|
|
85
85
|
let ve2 = null;
|
|
86
86
|
j2 && (ve2 = Z("div", { className: "slider", children: [G("div", { className: "line" }), G("div", { className: "subline inc" })] }, "pending"));
|
|
87
|
-
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 ||
|
|
87
|
+
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 || H2 || ge2 % 360 != 0);
|
|
88
88
|
"none" === J2?.background && (J2 = null);
|
|
89
|
-
let Ce2 = ce2 || !(!
|
|
89
|
+
let Ce2 = ce2 || !(!H2 || !(H2.rightIndex > 0 || H2.leftIndex > 0 || H2.colSpan > 1));
|
|
90
90
|
if (!Ce2) {
|
|
91
91
|
const e2 = z2.getSpans();
|
|
92
92
|
(e2.width > 1 || e2.height > 1) && (Ce2 = true);
|
|
93
93
|
}
|
|
94
94
|
const be2 = { ...J2, ...fe2, pointerEvents: S2 ? "auto" : void 0 };
|
|
95
|
-
if (!K.isEmpty(
|
|
95
|
+
if (!K.isEmpty(N2) || !K.isEmpty(I2?.repeatPlaceholder)) {
|
|
96
96
|
const e2 = I2?.canWrap ?? false;
|
|
97
97
|
let o2 = null, n2 = null, s3 = null, d3 = [], c3 = true;
|
|
98
98
|
y2 || B2 || 0 !== F2 || (c3 = false);
|
|
@@ -126,8 +126,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
126
126
|
} }), o2 = { ...e3, width: e3.width + me2 + pe2 };
|
|
127
127
|
}
|
|
128
128
|
if (!f3 && z2.getType() !== i.String && Math.floor(o2.width) > c4) {
|
|
129
|
-
if ("General" ===
|
|
130
|
-
const e3 =
|
|
129
|
+
if ("General" === E2.getNumberFormat() && z2.getType() === i.Number) {
|
|
130
|
+
const e3 = E2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = K.splitNumber(o3), l2 = Math.min(10, t2 - (Math.max(1, n3.ipLength) + 1) - (o3 < 0 ? 1 : 0));
|
|
131
131
|
if (l2 >= -1) {
|
|
132
132
|
const e4 = `0${l2 > 0 ? "." : ""}${"#".repeat(Math.max(0, l2))}`;
|
|
133
133
|
m3 = z2.getNumberFormat(e4).displayText, "0" === m3 && o3 < 0 && (m3 = "-0");
|
|
@@ -142,11 +142,11 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
142
142
|
m3 || (f3 = "#");
|
|
143
143
|
}
|
|
144
144
|
if (!f3 && U2?.lastRepeatIndex >= 0 && U2?.width > c4 && (f3 = "#"), f3 && c4 > 0) {
|
|
145
|
-
const e3 =
|
|
145
|
+
const e3 = E2.measureText(f3), t2 = Math.floor((c4 || 1) / (e3?.width || 1));
|
|
146
146
|
m3 = t2 > 0 ? f3.repeat(t2) : "";
|
|
147
147
|
}
|
|
148
148
|
if (B2 && (_2 = l.HorizontalAlignment.Left), m3) {
|
|
149
|
-
const e3 =
|
|
149
|
+
const e3 = E2.measureText(m3).width;
|
|
150
150
|
e3 && (o2 = { ...o2, width: e3 });
|
|
151
151
|
}
|
|
152
152
|
if (n2 = { ...o2, width: o2.width + me2 + pe2, height: o2.height }, ge2 && !e2) {
|
|
@@ -157,9 +157,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
157
157
|
const q3 = ye2 ? { ...M2 } : void 0, v3 = { 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, ...q3 };
|
|
160
|
-
|
|
160
|
+
L2 && (v3.style.textDecorationStyle = "wavy", v3.style.textDecorationColor = D2 ? "rgb(0, 255, 255)" : "red", v3.style.textDecorationLine = "underline");
|
|
161
161
|
const y3 = ie2.getSize(), C2 = (i2, s4, g4, u4, h3, m4, f4, w4 = null) => {
|
|
162
|
-
let q4 = y3 * p2, v4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width:
|
|
162
|
+
let q4 = y3 * p2, v4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width: E2.measureText(i2, q4).width }];
|
|
163
163
|
f4 && f4?.width !== o2.width && (o2 = { ...o2, width: f4?.width });
|
|
164
164
|
let b3 = me2;
|
|
165
165
|
if (f4?.lastRepeatIndex >= 0 && c4 > f4?.width) {
|
|
@@ -189,14 +189,14 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
189
189
|
const e3 = ie2.getSuperSubScale();
|
|
190
190
|
q4 *= e3, M3 *= e3;
|
|
191
191
|
}
|
|
192
|
-
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(
|
|
193
|
-
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(
|
|
194
|
-
const
|
|
195
|
-
let
|
|
196
|
-
if (A3 && (
|
|
197
|
-
const e3 = (g5.x +
|
|
192
|
+
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(D2, p2, true), fontSize: q4 * a.getDeviceScale() };
|
|
193
|
+
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(D2));
|
|
194
|
+
const E3 = b3 + o3;
|
|
195
|
+
let N3 = ue2.top + v4.y + 0;
|
|
196
|
+
if (A3 && (N3 += f5 - q4), c5) {
|
|
197
|
+
const e3 = (g5.x + E3) * p2 + 1, t3 = (g5.y + N3) * p2 + 1;
|
|
198
198
|
t3 < 0 ? F3.marginTop = t3 : F3.paddingTop = t3, e3 < 0 ? (F3.width = (S4?.width ?? 0) - e3, F3.left = (S4?.left ?? 0) + e3) : F3.paddingLeft = e3, F3.paddingRight = Math.max(0, (S4?.width ?? 0) - C4 * p2 - e3), F3.paddingBottom = Math.max(0, (S4?.height ?? 0) - v4.height * p2 - t3), F3.height = (S4?.height ?? 0) + (t3 < 0 ? -t3 : 0), (t3 < 0 || e3 < 0) && (F3.clipPath = `inset(${t3 < 0 ? -t3 : 0}px 0px 0px ${e3 < 0 ? 1 - e3 : 0}px)`);
|
|
199
|
-
} else if (F3.left = (g5.x +
|
|
199
|
+
} else if (F3.left = (g5.x + E3) * p2 + 1, F3.top = (g5.y + N3) * p2 + 1, F3.width = g5.width * p2, F3.height = g5.height * p2, ge2 && !e2) {
|
|
200
200
|
F3.left = (g5.x + o3) * p2 + 1, F3.top = (g5.y + (v4.y + 0)) * p2 + 1;
|
|
201
201
|
const e3 = r.centerPoint({ x: b3 + o3, y: 0, width: t2.width, height: v4.height }), n4 = r.centerPoint({ x: b3, y: 0, width: s5, height: v4.height }), l2 = r.rotatePoints([e3], ge2, n4), i4 = { x: l2[0].x - e3.x, y: l2[0].y - e3.y };
|
|
202
202
|
F3.left = F3.left + i4.x * p2, F3.top = F3.top + i4.y * p2;
|
|
@@ -206,14 +206,14 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
206
206
|
F3.left = F3.left + m5.x * p2, F3.top = F3.top + m5.y * p2;
|
|
207
207
|
}
|
|
208
208
|
F3.lineHeight = M3 * p2 + "px";
|
|
209
|
-
const
|
|
210
|
-
d3.push(G("div", { className: x4 ? `${x4} ${
|
|
209
|
+
const V3 = ye2 ? void 0 : "text-line";
|
|
210
|
+
d3.push(G("div", { className: x4 ? `${x4} ${V3}` : V3, style: F3, ...k4, children: R3 }, `text-${v4.y}-${i3}-${n3}`));
|
|
211
211
|
};
|
|
212
212
|
if (se2.getOverflow() === l.Overflow.Shrink && c4 > 0) {
|
|
213
213
|
let e3 = o2?.width ?? 0, t2 = 0;
|
|
214
214
|
for (; e3 > 1 && e3 > c4 && q4 > 2 && t2 < 100; ) {
|
|
215
215
|
q4 *= c4 / e3;
|
|
216
|
-
e3 =
|
|
216
|
+
e3 = E2.measureText(i2, q4).width, t2++;
|
|
217
217
|
}
|
|
218
218
|
o2 = { ...o2, width: e3 };
|
|
219
219
|
}
|
|
@@ -244,7 +244,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
244
244
|
let Se2 = S2 ? "auto" : fe2.pointerEvents, xe2 = null;
|
|
245
245
|
if (qe2) {
|
|
246
246
|
const e2 = { x: W2 * p2 - 1, y: -1, width: $2 * p2 + 1, height: T2 * p2 + 1 };
|
|
247
|
-
Se2 = "auto", xe2 = R2({ renderBounds: e2, darkMode:
|
|
247
|
+
Se2 = "auto", xe2 = R2({ renderBounds: e2, darkMode: D2, className: "filter-button", disabled: !z2.isEditAllowed(), zoom: p2, filter: z2.getColumnFilter(), onFilterButtonMouseDown: x2, ...k2 }), xe2 && (xe2 = G("div", { style: { ...e2, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (e3) => {
|
|
248
248
|
e3.stopPropagation(), e3.preventDefault();
|
|
249
249
|
}, children: xe2 }, "filterButton"));
|
|
250
250
|
}
|
|
@@ -256,7 +256,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = 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
|
}, nt = Object.freeze([x.Delete, x.Home, x.End]), lt = ee(ne((e2, t2) => {
|
|
259
|
-
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible:
|
|
259
|
+
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: E2, autoFocus: D2 = false, ...I2 } = e2, { height: N2 = 0, width: V2 = 0 } = q2 ?? {}, L2 = m2?.darkMode ?? false, H2 = le(null), [B2, O2] = oe(false), [P2, $2] = oe(null), [W2, U2] = oe(() => o2);
|
|
260
260
|
re(() => {
|
|
261
261
|
ne2.current = false, U2(o2);
|
|
262
262
|
}, [o2]);
|
|
@@ -285,8 +285,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
285
285
|
return { text: e4.dirty ?? "", placeholder: "" };
|
|
286
286
|
})(W2), c3 = d3.text, g3 = l.toCSSHorizontalTextAlign(h2 && !o3 ? W2.clean()?.getRenderHorizontalAlignment() : l.HorizontalAlignment.Left);
|
|
287
287
|
return { style: t3, isWrapped: s2, textValue: c3, formula: o3, frameVertAlign: a2, placeholder: d3.placeholder, insets: h2 ? e3.getInsets() : Y.EmptyRect, textAlign: g3 };
|
|
288
|
-
}, [W2, u2,
|
|
289
|
-
|
|
288
|
+
}, [W2, u2, L2, F2, h2]), Z2 = le(null), j2 = b(t2, () => ({ startEdit: (e3) => {
|
|
289
|
+
H2.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), J2?.(t3));
|
|
292
292
|
}, submitEdit: () => se2(), cancelEdit() {
|
|
@@ -304,9 +304,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
304
304
|
const K2 = te(() => {
|
|
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:
|
|
307
|
+
_2.isWrapped && (n3 = { width: V2 - o3 });
|
|
308
308
|
return t3.layout(n3);
|
|
309
|
-
}, [_2,
|
|
309
|
+
}, [_2, V2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
|
|
310
310
|
ie(() => {
|
|
311
311
|
if (!K2) return;
|
|
312
312
|
const e3 = _2.style, t3 = e3.getInsets() ?? Y.EmptyRect, o3 = h2 ? t3.left + t3.right : 0, n3 = h2 ? 0.04 * e3.getFont().getSize() : 1, l2 = Math.round(_2.isWrapped ? void 0 : K2.bounds.width + o3 + n3), r3 = Math.round(K2.bounds.height);
|
|
@@ -335,7 +335,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
335
335
|
if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === me.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
|
|
336
336
|
const t4 = { ...W2 };
|
|
337
337
|
let o4 = 0;
|
|
338
|
-
return ot(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), Z2.current.value = t4?.dirty,
|
|
338
|
+
return ot(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), Z2.current.value = t4?.dirty, H2.current = { start: o4, end: o4, direction: "forward" }, Z2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), J2?.(t4), void e3.preventDefault();
|
|
339
339
|
}
|
|
340
340
|
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey, l2 = e3.nativeEvent.metaKey;
|
|
341
341
|
if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void de2();
|
|
@@ -415,37 +415,37 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
415
415
|
return e3 = w2 ? w2.createChildGroup(t3, "editor", false) : new T(t3, "editor"), e3.addCommands(ye2, true), e3;
|
|
416
416
|
}, [w2, ye2]), be2 = te(() => ({ notifier: null, source: we2, target: qe2, commands: Ce2 }), [we2, qe2, Ce2]);
|
|
417
417
|
A(be2);
|
|
418
|
-
const [Se2, xe2] = oe(!
|
|
418
|
+
const [Se2, xe2] = oe(!D2);
|
|
419
419
|
re(() => {
|
|
420
420
|
xe2(false);
|
|
421
421
|
}, []);
|
|
422
422
|
const ke2 = S((e3) => {
|
|
423
423
|
O2(true), Ce2?.activate();
|
|
424
|
-
const t3 =
|
|
424
|
+
const t3 = H2.current;
|
|
425
425
|
if (false !== t3) {
|
|
426
426
|
let e4, o3;
|
|
427
427
|
const n3 = Z2.current.value;
|
|
428
|
-
ot(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length,
|
|
428
|
+
ot(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" });
|
|
429
429
|
}
|
|
430
430
|
y2?.(e3);
|
|
431
431
|
}, [y2, W2]), Re2 = _2.insets;
|
|
432
432
|
let Me2 = Re2.left + 1;
|
|
433
433
|
const Te2 = Re2.left + Re2.right + 2 - 1, Ae2 = K2?.bounds.height ?? 0;
|
|
434
434
|
let ze2, Fe2 = Re2.top;
|
|
435
|
-
_2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (
|
|
436
|
-
const
|
|
437
|
-
let
|
|
438
|
-
|
|
439
|
-
const Ie2 = h2 ?
|
|
435
|
+
_2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (N2 - (Re2.top + Re2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, N2 - (Re2.top + Re2.bottom) - Ae2)), void 0 !== E2 && K2?.lines[0]?.bounds && (ze2 = K2?.lines[0]?.bounds.height * E2);
|
|
436
|
+
const Ee2 = _2.style.getFont();
|
|
437
|
+
let De2 = Ee2.getSize();
|
|
438
|
+
Ee2.isSuperSub() && (De2 *= Ee2.getSuperSubScale()), De2 *= a.getDeviceScale() * F2;
|
|
439
|
+
const Ie2 = h2 ? Ee2.toCSS(L2, F2) : null;
|
|
440
440
|
return G("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
|
|
441
441
|
Z2.current && document.activeElement !== Z2.current && requestAnimationFrame(() => {
|
|
442
442
|
Z2.current.focus();
|
|
443
443
|
});
|
|
444
|
-
}, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: G("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2 + 1, left: Me2 * F2, width: `calc(100% - ${Te2 * F2}px)`, maxWidth: `calc(100% - ${Te2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: G("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: Z2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize:
|
|
444
|
+
}, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: G("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2 + 1, left: Me2 * F2, width: `calc(100% - ${Te2 * F2}px)`, maxWidth: `calc(100% - ${Te2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: G("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: Z2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize: De2 ? `${De2}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
|
O2(false);
|
|
446
446
|
}, onSelect: (e3) => {
|
|
447
447
|
}, onChange: (e3) => {
|
|
448
|
-
Z2.current && !ne2.current && (
|
|
448
|
+
Z2.current && !ne2.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 }));
|
|
449
449
|
}, onMouseDown: (e3) => {
|
|
450
450
|
B2 && ee2(true);
|
|
451
451
|
}, onKeyDown: ce2 }) }) });
|
|
@@ -695,7 +695,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
695
695
|
}, [e2, t2]);
|
|
696
696
|
}, St = new h("transparent");
|
|
697
697
|
function xt(e2) {
|
|
698
|
-
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, notifier: f2, onStartEdit: w2, getViewport: q2 } = e2, [v2, y2] = oe(null), [C2, b2] = oe(null), x2 = le(null), A2 = S(w2, [w2]), I2 = S(q2, [q2]), [
|
|
698
|
+
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, notifier: f2, onStartEdit: w2, getViewport: q2 } = e2, [v2, y2] = oe(null), [C2, b2] = oe(null), x2 = le(null), A2 = S(w2, [w2]), I2 = S(q2, [q2]), [N2, V2] = oe(), [L2, H2] = oe(() => r2?.getStyles().parseColor(c.Scheme.Bg2)), [B2, O2] = oe(() => r2?.getStyles().getNormal().getFont().getFill()), P2 = z();
|
|
699
699
|
le(P2.getMode()).current = P2.getMode();
|
|
700
700
|
const $2 = F(), [W2, U2] = oe(K.EmptyArray), _2 = ae(() => {
|
|
701
701
|
if (x2.current !== r2) return;
|
|
@@ -970,7 +970,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
970
970
|
} catch (e4) {
|
|
971
971
|
n2();
|
|
972
972
|
let t3 = e4;
|
|
973
|
-
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), f2?.showMessage?.(t3, { type:
|
|
973
|
+
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), f2?.showMessage?.(t3, { type: E.Error });
|
|
974
974
|
}
|
|
975
975
|
}, [r2, f2]), Re2 = S((e3, t2) => {
|
|
976
976
|
Y2(e3, async (o2) => {
|
|
@@ -998,7 +998,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
998
998
|
o2 && (e3 = o2.toTextUnformatted(true));
|
|
999
999
|
}
|
|
1000
1000
|
A2?.({ text: e3 });
|
|
1001
|
-
}, [r2]), [Ae2, ze2] = se((e3) => e3 + 1, 0), [Fe2,
|
|
1001
|
+
}, [r2]), [Ae2, ze2] = se((e3) => e3 + 1, 0), [Fe2, Ee2] = se((e3) => e3 + 1, 0), De2 = te(() => [new R("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new R("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new R("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new R("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new R("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new R("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new R("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new R("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [M.Ctrl, M.Shift] } }), new R("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [M.Ctrl] }, { key: "`", modifiers: [M.Ctrl, M.Shift] }] }), new R("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [M.Ctrl, M.Shift] } }, () => be2()), new R("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [M.Ctrl] }, { key: "Space", modifiers: [M.Ctrl, M.Shift] }] }, (e3 = false) => Se2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [M.Ctrl, M.Shift] } }, () => Se2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Alt] } }, () => Ce2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation." }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new R("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically." }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
|
|
1002
1002
|
ye2(this, { reverse: false }, false);
|
|
1003
1003
|
}), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
|
|
1004
1004
|
ye2(this, { reverse: true }, false);
|
|
@@ -1183,8 +1183,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1183
1183
|
ie2(this);
|
|
1184
1184
|
}), new R("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new R("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new R("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []), Ie2 = te(() => {
|
|
1185
1185
|
let e3 = null;
|
|
1186
|
-
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(
|
|
1187
|
-
}, [h2,
|
|
1186
|
+
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(De2, true), e3;
|
|
1187
|
+
}, [h2, De2]), [Ne2, Ve2] = oe(false), [Le2, He2] = oe(false);
|
|
1188
1188
|
re(() => {
|
|
1189
1189
|
if (x2.current !== r2 || !C2) return;
|
|
1190
1190
|
const e3 = C2.getCoords(), t2 = r2.getTables().getItems({ address: e3[0] });
|
|
@@ -1192,15 +1192,15 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1192
1192
|
const o2 = r2.getSelectedRanges(), n2 = o2.getMerges().length > 0, l2 = o2.isOverlapping();
|
|
1193
1193
|
let i3 = true;
|
|
1194
1194
|
for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = J.isSingleCell(e3[t3]);
|
|
1195
|
-
|
|
1196
|
-
}, [Fe2, C2, r2]),
|
|
1195
|
+
He2(l2), Ve2(0 === t2.length && !l2 && (n2 || !i3));
|
|
1196
|
+
}, [Fe2, C2, r2]), D(h2, null, { onChange: () => {
|
|
1197
1197
|
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === P2.getMode()?.key;
|
|
1198
1198
|
Ie2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
|
|
1199
1199
|
if (t2) return void P2.setMode(null);
|
|
1200
1200
|
return Ie2.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` } });
|
|
1201
1201
|
});
|
|
1202
1202
|
} }, [P2, Ae2, h2]), Ct(r2.getView(), { onFreezeSplitChange: () => {
|
|
1203
|
-
|
|
1203
|
+
Ee2();
|
|
1204
1204
|
} }), Ct(r2.getSelection(), { onChange: () => {
|
|
1205
1205
|
j2();
|
|
1206
1206
|
} });
|
|
@@ -1212,12 +1212,12 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1212
1212
|
}, darkMode: d2.darkMode, autoColor: St, schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) });
|
|
1213
1213
|
}, Oe2 = () => {
|
|
1214
1214
|
Ie2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
|
|
1215
|
-
|
|
1216
|
-
}, darkMode: d2.darkMode, quickBorder:
|
|
1215
|
+
V2(e3);
|
|
1216
|
+
}, darkMode: d2.darkMode, quickBorder: N2, autoColor: r2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => r2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: r2.getStyles().schemeLookup() }) });
|
|
1217
1217
|
};
|
|
1218
1218
|
re(() => {
|
|
1219
1219
|
Oe2();
|
|
1220
|
-
}, [
|
|
1220
|
+
}, [N2]), re(() => {
|
|
1221
1221
|
const e3 = !r2.getProtection().isInsertHyperlinksAllowed();
|
|
1222
1222
|
Ie2.getCommand("openHyperlink").update({ disabled: !X2().getHyperlink() }), Ie2.getCommand("deleteHyperlink").update({ disabled: e3 || !X2().getHyperlink() });
|
|
1223
1223
|
const t2 = X2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
|
|
@@ -1231,15 +1231,15 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1231
1231
|
}, onTabColorChange: () => {
|
|
1232
1232
|
Be2();
|
|
1233
1233
|
}, onMergesChange: () => {
|
|
1234
|
-
|
|
1234
|
+
Ee2();
|
|
1235
1235
|
}, onMovablesChange: () => {
|
|
1236
|
-
|
|
1236
|
+
Ee2();
|
|
1237
1237
|
}, onTablesChange: () => {
|
|
1238
|
-
|
|
1238
|
+
Ee2();
|
|
1239
1239
|
}, onProtectionChange: () => {
|
|
1240
|
-
|
|
1240
|
+
Ee2(), ze2();
|
|
1241
1241
|
}, onStyleChange: () => {
|
|
1242
|
-
Be2(), Oe2(),
|
|
1242
|
+
Be2(), Oe2(), Ee2();
|
|
1243
1243
|
} }), re(() => {
|
|
1244
1244
|
Be2(), Oe2();
|
|
1245
1245
|
}, [d2]), re(() => {
|
|
@@ -1281,7 +1281,12 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1281
1281
|
r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
|
|
1282
1282
|
}), Ie2.getCommand("calculate").updateCallback(() => {
|
|
1283
1283
|
r2.getEntireRange().calculate(true);
|
|
1284
|
-
}), Ie2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: (e3) =>
|
|
1284
|
+
}), Ie2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
|
|
1285
|
+
const t2 = r2.getWorkbook();
|
|
1286
|
+
if (!t2) return K.EmptyArray;
|
|
1287
|
+
const o2 = await t2.getScripts().searchFunctions({ category: e3, includeBuiltIn: true });
|
|
1288
|
+
return o2.sort((e4, t3) => e4.getName().localeCompare(t3.getName())), o2;
|
|
1289
|
+
} }) });
|
|
1285
1290
|
}, [r2]), re(() => {
|
|
1286
1291
|
const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
|
|
1287
1292
|
Ie2.getCommand("freezeToggle").updateCallback(() => {
|
|
@@ -1303,8 +1308,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1303
1308
|
}, context: () => {
|
|
1304
1309
|
const e4 = r2.getStyles();
|
|
1305
1310
|
return { onColorSelect: (e5) => {
|
|
1306
|
-
|
|
1307
|
-
}, darkMode: d2.darkMode, quickColor:
|
|
1311
|
+
H2(e5 ?? St);
|
|
1312
|
+
}, darkMode: d2.darkMode, quickColor: L2, autoColor: St, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
1308
1313
|
} }), Ie2.getCommand("formatFontColor").update({ state: () => $e2.toJSON()?.fill ? $e2.getFill() : null, context: () => {
|
|
1309
1314
|
const e4 = r2.getStyles();
|
|
1310
1315
|
return { onColorSelect: (e5) => {
|
|
@@ -1452,7 +1457,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1452
1457
|
}).update({ disabled: x3 || k2, state: 315 === je2 }), Ie2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
|
|
1453
1458
|
Q2(this, { alignment: { rotation: e4 } });
|
|
1454
1459
|
}).update({ disabled: x3 || k2, state: je2 ?? 0 });
|
|
1455
|
-
}, [Pe2, r2, d2,
|
|
1460
|
+
}, [Pe2, r2, d2, L2, B2]), re(() => {
|
|
1456
1461
|
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = r2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
|
|
1457
1462
|
Y2(t3, async (o3) => {
|
|
1458
1463
|
const n3 = async (n4 = false) => {
|
|
@@ -1495,13 +1500,13 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1495
1500
|
};
|
|
1496
1501
|
Ie2.getCommand("mergeToggle").updateCallback(function() {
|
|
1497
1502
|
J.isSingleCell(r2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
|
|
1498
|
-
}).update({ state: t2, disabled: !
|
|
1503
|
+
}).update({ state: t2, disabled: !Ne2 || e3 }), Ie2.getCommand("mergeHorizontal").updateCallback(function() {
|
|
1499
1504
|
o2(s.Orientations.Column, this);
|
|
1500
|
-
}).update({ disabled: !
|
|
1505
|
+
}).update({ disabled: !Ne2 || e3 }), Ie2.getCommand("mergeVertical").updateCallback(function() {
|
|
1501
1506
|
o2(s.Orientations.Row, this);
|
|
1502
|
-
}).update({ disabled: !
|
|
1507
|
+
}).update({ disabled: !Ne2 }), Ie2.getCommand("unmerge").updateCallback(function() {
|
|
1503
1508
|
n2(this);
|
|
1504
|
-
}).update({ disabled: !t2 || !
|
|
1509
|
+
}).update({ disabled: !t2 || !Ne2 || e3 });
|
|
1505
1510
|
const i3 = { disabled: e3 };
|
|
1506
1511
|
Ie2.getCommand("hideRows").updateCallback(function() {
|
|
1507
1512
|
Y2(this, (e4) => {
|
|
@@ -1529,12 +1534,12 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1529
1534
|
});
|
|
1530
1535
|
}).update(i3);
|
|
1531
1536
|
let a2 = false, d3 = 0, c2 = false, g2 = false, u2 = 0, h3 = false;
|
|
1532
|
-
!C2 || e3 ||
|
|
1537
|
+
!C2 || e3 || Le2 || (a2 = C2.isEntireColumnsAny(), a2 && !C2.isEntireColumns() ? c2 = true : d3 = C2.getColumnCount(), g2 = C2.isEntireRowsAny(), g2 && !C2.isEntireRows() ? h3 = true : u2 = C2.getRowCount());
|
|
1533
1538
|
const m2 = { disabled: e3 || C2 && 1 !== C2.getCount() };
|
|
1534
1539
|
Ie2.getCommand("sortAscending").update(m2), Ie2.getCommand("sortDescending").update(m2);
|
|
1535
|
-
const p3 = { disabled: a2 || g2 || e3 ||
|
|
1540
|
+
const p3 = { disabled: a2 || g2 || e3 || Le2 }, w3 = a2 || e3 || Le2 || h3;
|
|
1536
1541
|
w3 && (d3 = 1);
|
|
1537
|
-
const q3 = g2 || e3 ||
|
|
1542
|
+
const q3 = g2 || e3 || Le2 || c2;
|
|
1538
1543
|
q3 && (u2 = 1);
|
|
1539
1544
|
let v3 = "", y3 = "", b3 = "", S2 = "", x3 = "", k2 = "", R2 = "", M2 = "", T2 = "";
|
|
1540
1545
|
d3 > 1 && (k2 = y3 = d3 + " ", R2 = b3 = "s"), u2 > 1 && (M2 = S2 = u2 + " ", T2 = x3 = "s"), "copy" === P2.getMode()?.key ? (v3 = S2 = y3 = "Copied ", b3 = x3 = "s") : "cut" === P2.getMode()?.key && (v3 = S2 = y3 = "Cut ", b3 = x3 = "s");
|
|
@@ -1544,7 +1549,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1544
1549
|
A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z2 = ` (${e4 ? "Shift Left" : "Shift up"})`, Ie2.getCommand("deleteCells").update({ label: `Delete Cells${z2}` });
|
|
1545
1550
|
}
|
|
1546
1551
|
Ie2.getCommand("insertCells").update({ label: `Insert ${v3}Cells${A3}`, scopedLabels: { insertCells: `${v3}At Selection` } }), Ie2.getCommand("insertCellsShiftRight").update(p3), Ie2.getCommand("insertCellsShiftDown").update(p3), Ie2.getCommand("deleteCellsShiftUp").update(p3), Ie2.getCommand("deleteCellsShiftLeft").update(p3), Ie2.getCommand("insertRows").update({ label: `Insert ${S2}Row${x3}`, scopedLabels: { insertCells: `${S2}Row${x3}` }, disabled: q3 }), Ie2.getCommand("insertRowsAfter").update({ label: `Insert ${S2}Row${x3} Below`, disabled: q3 }), Ie2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${b3}`, scopedLabels: { insertCells: `${y3}Column${b3}` }, disabled: w3 }), Ie2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${b3} After`, disabled: w3 }), Ie2.getCommand("deleteRows").update({ label: `Delete ${M2}Row${T2}`, scopedLabels: { deleteCells: `${M2}Row${T2}` }, disabled: q3 }), Ie2.getCommand("deleteColumns").update({ label: `Delete ${k2}Column${R2}`, scopedLabels: { deleteCells: `${k2}Column${R2}` }, disabled: w3 });
|
|
1547
|
-
}, [Fe2,
|
|
1552
|
+
}, [Fe2, Ne2, Le2, C2, P2, f2, Ae2]), re(() => {
|
|
1548
1553
|
const e3 = r2.getProtection(), t2 = r2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
|
|
1549
1554
|
Ie2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
|
|
1550
1555
|
let l2 = null;
|
|
@@ -1584,27 +1589,27 @@ const kt = ee(ne((e2, t2) => {
|
|
|
1584
1589
|
}, [y2, b2] = oe(v2), [x2, k2] = oe(null), [R2, M2] = oe(false), T2 = n2 === I.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), A2 = () => {
|
|
1585
1590
|
const e3 = l2.getUsedRange()?.getCoords() ?? J.EmptyRange, t3 = l2.getSelection().getCoords().cell;
|
|
1586
1591
|
return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
|
|
1587
|
-
}, [z2, F2] = oe(A2),
|
|
1592
|
+
}, [z2, F2] = oe(A2), E2 = z2 ? (n2 === I.Vertical ? z2.rowIndex : z2.colIndex) + 1 : 0, D2 = () => {
|
|
1588
1593
|
const e3 = A2();
|
|
1589
1594
|
J.isEqualCells(z2, e3) || F2(e3);
|
|
1590
1595
|
};
|
|
1591
1596
|
Ct(l2.getView(), { onFreezeSplitChange: () => {
|
|
1592
1597
|
b2(v2);
|
|
1593
|
-
} }), Ct(l2.getSelection(), { onChange:
|
|
1598
|
+
} }), Ct(l2.getSelection(), { onChange: D2 }), Ct(l2, { onUsedRangeChange: D2 }), re(() => {
|
|
1594
1599
|
F2(A2());
|
|
1595
1600
|
}, [l2]), re(() => {
|
|
1596
1601
|
if (!x2) return R2 && p2?.(), void M2(false);
|
|
1597
1602
|
const e3 = T2.getTextAt(T2.findIndex(w2 / (l2.getView().getZoomScale() / 100) + y2.scroll + y2.shift));
|
|
1598
1603
|
M2(true), m2?.({ ...x2, display: (n2 === I.Vertical ? "Row" : "Column") + ": " + e3 });
|
|
1599
1604
|
}, [d2, w2, y2, n2, x2, T2, R2, l2]);
|
|
1600
|
-
const
|
|
1605
|
+
const V2 = S((e3, t3, o3) => {
|
|
1601
1606
|
q2(e3);
|
|
1602
1607
|
const n3 = e3 + y2.scroll, l3 = t3 + y2.shift, r3 = o3 + y2.shift + y2.scroll;
|
|
1603
1608
|
a2?.(n3, l3, r3);
|
|
1604
|
-
}, [a2, y2]),
|
|
1605
|
-
return G(
|
|
1609
|
+
}, [a2, y2]), L2 = d2 - y2.scroll, H2 = g2 - y2.shift, B2 = c2 - (y2.shift + y2.scroll), O2 = T2.findOffset(E2) * (l2.getView().getZoomScale() / 100) - (y2.scroll + y2.shift);
|
|
1610
|
+
return G(N, { ref: f2, style: o2, offset: L2, viewportSize: H2, totalSize: B2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
|
|
1606
1611
|
k2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
|
|
1607
|
-
}, onScrollOffset:
|
|
1612
|
+
}, onScrollOffset: V2, onMouseOut: () => {
|
|
1608
1613
|
k2(null);
|
|
1609
1614
|
}, onMouseUp: () => {
|
|
1610
1615
|
k2(null);
|
|
@@ -1619,11 +1624,11 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1619
1624
|
}
|
|
1620
1625
|
return n2;
|
|
1621
1626
|
}, Mt = ee(ne((e2, t2) => {
|
|
1622
|
-
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 = te(() => o2.getOrientation(), [o2]), T2 = le(null), [A2, F2] = se((e3) => e3 + 1, 0), [
|
|
1627
|
+
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 = te(() => o2.getOrientation(), [o2]), T2 = le(null), [A2, F2] = se((e3) => e3 + 1, 0), [E2, D2] = se((e3) => e3 + 1, 0), I2 = o2?.getSheet(), N2 = le(false);
|
|
1623
1628
|
ie(() => {
|
|
1624
|
-
|
|
1629
|
+
N2.current = true;
|
|
1625
1630
|
}, [o2]);
|
|
1626
|
-
const
|
|
1631
|
+
const L2 = te(() => o2.getEntireRange().getCoords().max + 1, [o2]), H2 = te(() => {
|
|
1627
1632
|
const e3 = M2 === s.Orientation.Column;
|
|
1628
1633
|
return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
|
|
1629
1634
|
}, [x2]), [B2, O2] = oe(I2?.getView().getZoomScale() / 100), [P2, $2] = oe(null);
|
|
@@ -1631,7 +1636,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1631
1636
|
O2(I2?.getView().getZoomScale() / 100), me2(ue2());
|
|
1632
1637
|
} });
|
|
1633
1638
|
const W2 = ae(() => {
|
|
1634
|
-
T2.current?.invalidate(),
|
|
1639
|
+
T2.current?.invalidate(), D2();
|
|
1635
1640
|
}, []), U2 = ae(K.debounce(() => {
|
|
1636
1641
|
W2();
|
|
1637
1642
|
}, 10), []), [_2, Z2] = oe(null);
|
|
@@ -1693,7 +1698,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1693
1698
|
}, [A2, o2, q2, j2]), ue2 = () => {
|
|
1694
1699
|
const e3 = M2 === s.Orientation.Column;
|
|
1695
1700
|
return { getColOffset: (t3) => e3 ? o2.findOffset(t3) : 0 === t3 ? 0 : i2 / B2, getColIndex: (t3) => e3 ? o2.findIndex(t3) : 0, getRowOffset: (t3) => e3 ? 0 === t3 ? 0 : i2 / B2 : o2.findOffset(t3), getRowIndex: (t3) => e3 ? 0 : o2.findIndex(t3) };
|
|
1696
|
-
}, [he2, me2] = oe(() => ue2()), Ce2 = ae((e3, t3) => !(e3.nativeEvent.which ===
|
|
1701
|
+
}, [he2, me2] = oe(() => ue2()), Ce2 = ae((e3, t3) => !(e3.nativeEvent.which === V.Right) || !J2(M2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [M2, J2]), be2 = S((e3) => {
|
|
1697
1702
|
l2.focusSheet();
|
|
1698
1703
|
}, [l2]), Se2 = S((e3) => {
|
|
1699
1704
|
I2?.getSelection().updateCoords(e3);
|
|
@@ -1706,7 +1711,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1706
1711
|
e3 && e3.setAdjusting(e3.getCoords());
|
|
1707
1712
|
}, [I2, k2]), Re2 = S(async () => {
|
|
1708
1713
|
I2?.getSelection().setAdjusting(null), R2?.();
|
|
1709
|
-
}, [I2, R2]), { ...Me2 } = fe({ orientation: M2, headerCount:
|
|
1714
|
+
}, [I2, R2]), { ...Me2 } = fe({ orientation: M2, headerCount: L2, gridRef: T2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: Ce2, onPointerUp: be2, onDragStart: ke2, onDragEnd: Re2 }), Te2 = u2.selection?.strokeFill;
|
|
1710
1715
|
re(() => {
|
|
1711
1716
|
if (!T2.current) return void $2(null);
|
|
1712
1717
|
const e3 = M2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : ne2, l3 = (t4, o3, n4) => {
|
|
@@ -1714,11 +1719,11 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1714
1719
|
}, r3 = (t4, o3, n4) => {
|
|
1715
1720
|
const l4 = { x: 0, y: 0, width: 0, height: 0 };
|
|
1716
1721
|
if (e3) {
|
|
1717
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(
|
|
1722
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(L2, o3) }), ye);
|
|
1718
1723
|
if (!e4) return;
|
|
1719
1724
|
l4.x = e4.x, l4.width = e4.width;
|
|
1720
1725
|
} else {
|
|
1721
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(
|
|
1726
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(L2, o3), colStart: 0, colEnd: 0 }), ye);
|
|
1722
1727
|
if (!e4) return;
|
|
1723
1728
|
l4.y = e4.y, l4.height = e4.height;
|
|
1724
1729
|
}
|
|
@@ -1773,13 +1778,13 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1773
1778
|
for (let n4 = 0; t3 && n4 < t3.length; n4++) o3.push(l3(`selection:${e4.getAnchor()}:${n4}`, 0, r3(t3[n4].min, t3[n4].max, e4)));
|
|
1774
1779
|
return o3;
|
|
1775
1780
|
}]);
|
|
1776
|
-
}, [
|
|
1781
|
+
}, [E2, true, Te2, u2, he2, L2, g2, A2, B2]), re(() => {
|
|
1777
1782
|
T2.current?.invalidate();
|
|
1778
1783
|
}, [A2]);
|
|
1779
1784
|
const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
|
|
1780
1785
|
const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: l3 } = u2 ?? {}, { range: r3, key: i3, ...a3 } = e3;
|
|
1781
1786
|
return G(we, { orientation: M2, index: M2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * B2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
|
|
1782
|
-
}, [A2,
|
|
1787
|
+
}, [A2, L2, u2, B2, o2]), Fe2 = z(), Ee2 = te(() => {
|
|
1783
1788
|
const e3 = "white", t3 = "black", o3 = {};
|
|
1784
1789
|
if ("touch" !== C.detectIt().primaryInput) {
|
|
1785
1790
|
let n3 = M2 === 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`;
|
|
@@ -1791,29 +1796,29 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1791
1796
|
o3.cursor = n3;
|
|
1792
1797
|
}
|
|
1793
1798
|
return o3.backgroundColor = u2?.header?.fill || "transparent", o3;
|
|
1794
|
-
}, [M2, A2, Fe2, u2]),
|
|
1799
|
+
}, [M2, A2, Fe2, u2]), De2 = b(t2, () => ({ scrollTo: (e3) => {
|
|
1795
1800
|
T2.current?.scrollTo(e3);
|
|
1796
1801
|
}, forceRender: () => {
|
|
1797
1802
|
F2();
|
|
1798
1803
|
}, getGridElement: () => T2.current }), []), Ie2 = ae((e3) => {
|
|
1799
1804
|
Me2.onPointerDown(e3);
|
|
1800
|
-
}, [Me2]),
|
|
1805
|
+
}, [Me2]), Ne2 = ae((e3) => {
|
|
1801
1806
|
const t3 = Me2.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
1802
1807
|
if (!t3) return;
|
|
1803
1808
|
if (!p2) return;
|
|
1804
1809
|
const o3 = M2 === s.Orientation.Column;
|
|
1805
1810
|
p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
|
|
1806
|
-
}, [Me2, p2]),
|
|
1811
|
+
}, [Me2, p2]), Ve2 = te(() => {
|
|
1807
1812
|
const e3 = M2 === s.Orientation.Column;
|
|
1808
|
-
return G("div", { ref:
|
|
1809
|
-
}, [P2, he2, a2, d2,
|
|
1813
|
+
return G("div", { ref: De2, children: G(qe, { className: "sheet-header", style: Ee2, ref: T2, scrollPoint: H2, columnCount: e3 ? L2 : 1, rowCount: e3 ? 1 : L2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? X2 : void 0, hiddenRowsAt: e3 ? void 0 : X2, showGridLines: false, layout: he2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: Ne2, onPointerDown: Ie2, zoom: B2, cellRenderer: ze2, overlays: P2 }) });
|
|
1814
|
+
}, [P2, he2, a2, d2, H2, Ee2, E2]);
|
|
1810
1815
|
return re(() => {
|
|
1811
|
-
|
|
1812
|
-
}, [o2, u2]),
|
|
1816
|
+
N2.current = false, T2.current?.invalidate(), D2();
|
|
1817
|
+
}, [o2, u2]), Ve2;
|
|
1813
1818
|
})), Tt = ee(ne((e2, t2) => {
|
|
1814
1819
|
const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ct({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
|
|
1815
1820
|
return s2 && o2 ? s2 : null;
|
|
1816
|
-
})), At = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, zt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Ft = { type: o.Content.Values },
|
|
1821
|
+
})), At = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, zt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Ft = { type: o.Content.Values }, Et = { fitDestination: true, type: o.Content.Formats }, Dt = { fitDestination: true, type: o.Content.Formulas }, It = { transpose: true }, Nt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Vt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = Ce, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", notifier: h2, ...m2 }) => {
|
|
1817
1822
|
const w2 = S(a2, [a2]), q2 = le(null), v2 = z(), y2 = v2.getMode(), C2 = te(() => ({ element: e2, doCopy: (e3) => {
|
|
1818
1823
|
const o2 = t2.getSelectedRanges().getSnapshot(e3);
|
|
1819
1824
|
return new p(o2);
|
|
@@ -1856,7 +1861,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1856
1861
|
}, [l2, e2]), re(() => {
|
|
1857
1862
|
if (!l2) return;
|
|
1858
1863
|
const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
|
|
1859
|
-
l2.getCommand("pasteValues").updateCallback((e4) => k2.paste({ ...Ft, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => k2.paste({ ...
|
|
1864
|
+
l2.getCommand("pasteValues").updateCallback((e4) => k2.paste({ ...Ft, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => k2.paste({ ...Et, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => k2.paste({ ...Dt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => k2.paste({ ...It, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => k2.paste({ ...Nt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
|
|
1860
1865
|
}, [t2, l2]);
|
|
1861
1866
|
const T2 = te(() => {
|
|
1862
1867
|
if (!y2 || !q2.current) return;
|
|
@@ -1875,21 +1880,21 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1875
1880
|
} : null;
|
|
1876
1881
|
}, [y2, t2, n2, d2, g2, c2, u2]);
|
|
1877
1882
|
return { ...k2, clipboard: x2, overlays: T2 };
|
|
1878
|
-
},
|
|
1879
|
-
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2, notifier: a2 } = e2, s2 = r2.body ?? {}, d2 = l2.getView(), { overlays: c2 } =
|
|
1883
|
+
}, Lt = ee(ne((e2, t2) => {
|
|
1884
|
+
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2, notifier: a2 } = e2, s2 = r2.body ?? {}, d2 = l2.getView(), { overlays: c2 } = Vt({ element: n2, sheet: l2, sheetView: d2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: s2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: s2.fill, notifier: a2 });
|
|
1880
1885
|
return Ct(l2?.getSelection(), { onChange(e3) {
|
|
1881
1886
|
} }), re(() => {
|
|
1882
1887
|
o2?.getStage();
|
|
1883
1888
|
}, [o2?.getStage()]), c2 && o2 ? c2(o2) : null;
|
|
1884
|
-
})),
|
|
1889
|
+
})), Ht = "_sheet-selection_12wyx_5", Bt = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, Ot = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, Pt = { key: "dragCopy", description: "Drag selection to copy cell contents." }, $t = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Wt = (e2, t2) => t2.ctrlKey && t2.shiftKey ? $t : t2.ctrlKey ? Pt : t2.shiftKey ? Ot : Bt, Ut = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, _t = ee(ne((e2, t2) => {
|
|
1885
1890
|
const { view: o2, commands: n2, className: l2, onFirstRender: r2, notifier: i2, onShowTooltip: a2, onCloseTooltip: d2, sheet: c2, gridRef: g2, gridStyle: u2, isActive: h2, editingCoords: m2, ...p2 } = e2, f2 = o2?.getBounds(), w2 = S(a2, [a2]), q2 = S(d2, [d2]), [v2, y2] = oe(() => c2?.getSelection().getCoords()), x2 = S((e3) => {
|
|
1886
1891
|
J.isEqualSelectionCoords(e3, v2) || c2 && c2.getSelection().updateCoords(e3);
|
|
1887
|
-
}, [c2, v2]), k2 = z(), R2 = le(null), [M2, T2] = oe(c2?.getProtection().isLocked()), [A2, F2] = oe(c2?.getView().getMovableSelection().length > 0),
|
|
1892
|
+
}, [c2, v2]), k2 = z(), R2 = le(null), [M2, T2] = oe(c2?.getProtection().isLocked()), [A2, F2] = oe(c2?.getView().getMovableSelection().length > 0), E2 = "touch" === C.detectIt().primaryInput, D2 = !E2 && h2, I2 = null !== m2 || A2, N2 = S((e3) => {
|
|
1888
1893
|
const t3 = J.cellToRange(e3);
|
|
1889
1894
|
if (c2.isClosed()) return t3;
|
|
1890
1895
|
const o3 = c2.getRange(t3, { excludeHidden: true }).getMerges();
|
|
1891
1896
|
return 0 === o3.length ? t3 : o3[0];
|
|
1892
|
-
}, [c2]),
|
|
1897
|
+
}, [c2]), V2 = S((e3, t3, o3, n3, l3, r3) => {
|
|
1893
1898
|
const i3 = c2.getSelectedRange().getExtended(n3, e3).getCoords();
|
|
1894
1899
|
switch (n3) {
|
|
1895
1900
|
case s.Direction.Up:
|
|
@@ -1901,7 +1906,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1901
1906
|
case s.Direction.Right:
|
|
1902
1907
|
return i3.colEnd;
|
|
1903
1908
|
}
|
|
1904
|
-
}, [c2]),
|
|
1909
|
+
}, [c2]), H2 = S(() => {
|
|
1905
1910
|
const e3 = c2.getUsedRange()?.getCoords(), t3 = c2.getRowHeaders().getUsedRange()?.getCoords(), o3 = c2.getColumnHeaders().getUsedRange()?.getCoords();
|
|
1906
1911
|
return { ...e3, colEnd: Math.max(e3?.colEnd ?? 0, o3?.max ?? 0), rowEnd: Math.max(e3?.rowEnd ?? 0, t3?.max ?? 0) };
|
|
1907
1912
|
}, [c2]), B2 = S((e3, t3) => c2.getRowHeaders().hiddenHeadersAt(e3, t3), [c2]), O2 = S((e3, t3) => c2.getColumnHeaders().hiddenHeadersAt(e3, t3), [c2]), P2 = S((e3) => c2.getRange(e3, { excludeHidden: true }).getMerges(), [c2]), $2 = S((e3) => {
|
|
@@ -1922,7 +1927,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1922
1927
|
} }), Ct(c2, { onProtectionChange: () => {
|
|
1923
1928
|
T2(c2.getProtection().isLocked());
|
|
1924
1929
|
} });
|
|
1925
|
-
const { body: _2 = {} } = u2 || {}, Z2 = o2.getLayout(), j2 = !(
|
|
1930
|
+
const { body: _2 = {} } = u2 || {}, Z2 = o2.getLayout(), j2 = !(D2 && v2.ranges.length <= 1 && null === m2 && !M2 && (!k2.getMode() || U2)), { cursor: K2, overlay: X2, onPointerDown: Y2 } = pe({ gridRef: g2, commands: n2, layout: Z2, getCellCoordsAsRangeCoords: N2, selection: v2, fillHandleBorderColor: _2.fill, selectionBackgroundColor: h2 ? u2.selection.fill : u2.selectionInactive.fill, selectionBorderColor: h2 ? u2.selection.strokeFill : u2.selectionInactive.strokeFill, selectionRemoveBackgroundColor: h2 ? u2.selectionRemove.fill : u2.selectionInactive.fill, selectionRemoveBorderColor: h2 ? u2.selectionRemove.strokeFill : u2.selectionInactive.strokeFill, disableFillDrag: j2, disableMoveDrag: E2 || !(h2 && v2.ranges.length <= 1 && null === m2 && !M2), disableTouchSelection: I2, onSelectionChange: x2, onSelectionDragStart: $2, onSelectionDragEnd: W2, onMoveDragStart: (e3, t3, o3) => {
|
|
1926
1931
|
k2.setMode(Wt(0, o3));
|
|
1927
1932
|
}, onMoveDragUpdate: (e3, t3, o3) => {
|
|
1928
1933
|
k2.setMode(Wt(0, o3));
|
|
@@ -1951,7 +1956,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1951
1956
|
} finally {
|
|
1952
1957
|
d3?.();
|
|
1953
1958
|
}
|
|
1954
|
-
}, contentfulCellFinder:
|
|
1959
|
+
}, contentfulCellFinder: V2, hiddenRowsAt: B2, hiddenColumnsAt: O2, mergedRanges: P2, getDataCoords: H2, canSelectionSpanMergedCells: (e3) => {
|
|
1955
1960
|
const t3 = c2.getRange(e3);
|
|
1956
1961
|
return t3.isEntireColumns() || t3.isEntireRows();
|
|
1957
1962
|
}, onFill: async (e3, t3) => {
|
|
@@ -1977,23 +1982,23 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1977
1982
|
const r3 = l3.toText();
|
|
1978
1983
|
if (!r3) return;
|
|
1979
1984
|
const i3 = J.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
|
|
1980
|
-
let d3 = 0, g3 = 0, u3 =
|
|
1985
|
+
let d3 = 0, g3 = 0, u3 = L.Bottom;
|
|
1981
1986
|
if (n3 === s.Direction.Down) {
|
|
1982
1987
|
d3 = Z2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1983
1988
|
const e4 = Z2.getRowOffset(i3.rowEnd), t4 = Z2.getRowOffset(i3.rowEnd + 1);
|
|
1984
|
-
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 =
|
|
1989
|
+
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
|
|
1985
1990
|
} else if (n3 === s.Direction.Right) {
|
|
1986
1991
|
g3 = Z2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
1987
1992
|
const e4 = Z2.getColOffset(i3.colEnd), t4 = Z2.getColOffset(i3.colEnd + 1);
|
|
1988
|
-
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 =
|
|
1993
|
+
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
|
|
1989
1994
|
} else if (n3 === s.Direction.Up) {
|
|
1990
1995
|
d3 = Z2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1991
1996
|
const e4 = Z2.getRowOffset(i3.rowStart), t4 = Z2.getRowOffset(i3.rowStart + 1);
|
|
1992
|
-
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 =
|
|
1997
|
+
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
|
|
1993
1998
|
} else if (n3 === s.Direction.Left) {
|
|
1994
1999
|
g3 = Z2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
1995
2000
|
const e4 = Z2.getColOffset(i3.colStart), t4 = Z2.getColOffset(i3.colStart + 1);
|
|
1996
|
-
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 =
|
|
2001
|
+
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
|
|
1997
2002
|
}
|
|
1998
2003
|
w2({ anchor: { x: d3, y: g3 }, display: r3, placement: u3 });
|
|
1999
2004
|
} catch (e4) {
|
|
@@ -2012,7 +2017,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2012
2017
|
};
|
|
2013
2018
|
}, [o2?.getStage()]);
|
|
2014
2019
|
const ee2 = b(t2, () => ({}), []), ne2 = le(null);
|
|
2015
|
-
return G("div", { className: Me(l2, "sheet-selection",
|
|
2020
|
+
return G("div", { className: Me(l2, "sheet-selection", Ht), style: { position: "absolute", width: f2?.width, height: f2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: ke([ee2, ne2]), ...p2, children: X2(o2) });
|
|
2016
2021
|
})), Gt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), Zt = { fireOnModelChange: false }, jt = ee(ne((e2, t2) => {
|
|
2017
2022
|
const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, q2] = oe(Gt), [v2, y2] = oe(null), [C2, b2] = oe(false), S2 = le(null);
|
|
2018
2023
|
ie(() => {
|
|
@@ -2049,15 +2054,15 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2049
2054
|
v2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
|
|
2050
2055
|
}, ...f2, children: x2 });
|
|
2051
2056
|
})), Kt = "_movable-area_314c6_5", Xt = ee(ne((e2, t2) => {
|
|
2052
|
-
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] = oe([]), [M2, T2] = oe(false), [A2, z2] = oe(false), F2 = le(true),
|
|
2057
|
+
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] = oe([]), [M2, T2] = oe(false), [A2, z2] = oe(false), F2 = le(true), E2 = le(/* @__PURE__ */ new Map()), D2 = le(/* @__PURE__ */ new Map()), I2 = le(/* @__PURE__ */ new Map()), N2 = le(/* @__PURE__ */ new Map()), V2 = le(/* @__PURE__ */ new Map()), L2 = le({ onRequestFocus: (e3) => (ge2(e3), null) }), H2 = le(null), B2 = le(null), O2 = le(null), [P2, $2] = se((e3) => e3 + 1, 0);
|
|
2053
2058
|
ie(() => {
|
|
2054
2059
|
$2();
|
|
2055
2060
|
}, [o2, n2]), Ct(n2, { onCollectionChange: () => {
|
|
2056
|
-
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true }), t3 =
|
|
2061
|
+
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true }), t3 = V2.current;
|
|
2057
2062
|
t3.forEach((e4) => {
|
|
2058
2063
|
e4();
|
|
2059
2064
|
}), t3.clear();
|
|
2060
|
-
const l3 =
|
|
2065
|
+
const l3 = L2.current;
|
|
2061
2066
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2062
2067
|
const n3 = e3[o3];
|
|
2063
2068
|
if (n3.isClosed()) continue;
|
|
@@ -2097,12 +2102,12 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2097
2102
|
}, [k2]);
|
|
2098
2103
|
const ue2 = te(() => {
|
|
2099
2104
|
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true });
|
|
2100
|
-
if (0 === e3.length && 0 ===
|
|
2105
|
+
if (0 === e3.length && 0 === E2.current.size) return null;
|
|
2101
2106
|
const t3 = (t4, n3, l3, i4 = true) => {
|
|
2102
2107
|
const a4 = t4.isSelected(), s4 = { tabIndex: l3, view: o2, movable: t4, onRefLoad: (e4) => {
|
|
2103
|
-
ne2.current === t4 && (e4.focus(), ce2.current = e4, ne2.current = null), I2.current.set(t4, e4),
|
|
2108
|
+
ne2.current === t4 && (e4.focus(), ce2.current = e4, ne2.current = null), I2.current.set(t4, e4), D2.current.set(e4, t4), n3.rendered = true, U2();
|
|
2104
2109
|
}, onRefUnload: (e4) => {
|
|
2105
|
-
I2.current.delete(t4),
|
|
2110
|
+
I2.current.delete(t4), D2.current.delete(e4), n3.rendered = false, U2();
|
|
2106
2111
|
}, onUnFocus: y2, onHide: (e4) => {
|
|
2107
2112
|
n3.onHide = e4;
|
|
2108
2113
|
}, onShow: (e4) => {
|
|
@@ -2113,13 +2118,13 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2113
2118
|
if (X2.current = null, B2.current) {
|
|
2114
2119
|
T2(false), z2(false);
|
|
2115
2120
|
let e4 = false;
|
|
2116
|
-
|
|
2121
|
+
N2.current?.forEach((t5) => {
|
|
2117
2122
|
K.isEqualBounds(t5.movable.getBounds(), t5.startBounds) || (e4 = true);
|
|
2118
2123
|
}), e4 ? me2() : pe2();
|
|
2119
2124
|
}
|
|
2120
2125
|
}, style: { opacity: i4 ? M2 && a4 ? 0.7 : void 0 : 0, zIndex: M2 && a4 ? t4.getZIndex() + e3.length : void 0, pointerEvents: i4 ? void 0 : "none", cursor: A2 && a4 ? "grabbing" : d2 || c2 ? "initial" : "move", boxShadow: !a4 || A2 && !M2 ? void 0 : "1px 1px 2px 2px rgba(0,0,0,.15)" } };
|
|
2121
2126
|
return G(jt, { ...s4 }, `movable-${t4.getUUID()}`);
|
|
2122
|
-
}, i3 =
|
|
2127
|
+
}, i3 = E2.current, a3 = /* @__PURE__ */ new Map(), s3 = [];
|
|
2123
2128
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2124
2129
|
const n3 = e3[o3];
|
|
2125
2130
|
if (n3.isClosed()) continue;
|
|
@@ -2129,14 +2134,14 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2129
2134
|
t4.shown = true;
|
|
2130
2135
|
const o4 = ++t4.visibilityRequestId;
|
|
2131
2136
|
requestAnimationFrame(() => {
|
|
2132
|
-
const n4 =
|
|
2137
|
+
const n4 = E2.current.get(e4);
|
|
2133
2138
|
n4 && o4 === t4.visibilityRequestId && (t4.onShow?.(e4), n4.shown = true);
|
|
2134
2139
|
});
|
|
2135
2140
|
}, doHide: async (e4, t4) => {
|
|
2136
2141
|
if (!t4 || false === t4?.shown) return;
|
|
2137
2142
|
t4.shown = false;
|
|
2138
2143
|
const o4 = ++t4.visibilityRequestId, n4 = await Promise.resolve(t4.onHide?.(e4));
|
|
2139
|
-
o4 === t4.visibilityRequestId && false !== n4 && (t4.shown = false,
|
|
2144
|
+
o4 === t4.visibilityRequestId && false !== n4 && (t4.shown = false, E2.current.delete(e4), $2());
|
|
2140
2145
|
}, visibilityRequestId: 0 }), l3.frame = t3(n3, l3, o3, true), s3.push(l3.frame), l3.doShow(n3, l3), i3.delete(n3), a3.set(n3, l3);
|
|
2141
2146
|
}
|
|
2142
2147
|
const g3 = [];
|
|
@@ -2145,20 +2150,20 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2145
2150
|
o3 && (o3.frame = t3(e4, o3, -1, false), g3.push(o3.frame), i3.delete(e4), a3.set(e4, o3));
|
|
2146
2151
|
}), i3.forEach((e4, o3) => {
|
|
2147
2152
|
e4.frame = t3(o3, e4, -1, false), g3.push(e4.frame), e4.doHide(o3, e4), i3.delete(o3), a3.set(o3, e4);
|
|
2148
|
-
}),
|
|
2153
|
+
}), E2.current = a3, U2(), [...g3, ...s3];
|
|
2149
2154
|
}, [P2, o2, r2, d2, c2, g2, M2, A2]), he2 = S((e3, t3) => {
|
|
2150
|
-
const n3 = `${t3} ${1 === k2.length ? w.capitalize(
|
|
2151
|
-
B2.current && (console.warn(`Transaction ${B2.current.getDescription()} is being replaced by ${n3}`), B2.current.rollback(), B2.current = null), B2.current = i2.beginCommit({ description: n3 }),
|
|
2155
|
+
const n3 = `${t3} ${1 === k2.length ? w.capitalize(D2.current?.get(k2[0]).getContent().getType()) : "Drawings"}`;
|
|
2156
|
+
B2.current && (console.warn(`Transaction ${B2.current.getDescription()} is being replaced by ${n3}`), B2.current.rollback(), B2.current = null), B2.current = i2.beginCommit({ description: n3 }), N2.current.clear();
|
|
2152
2157
|
for (let e4 = 0; e4 < k2.length; e4++) {
|
|
2153
|
-
const t4 = k2[e4], n4 =
|
|
2154
|
-
n4 ?
|
|
2158
|
+
const t4 = k2[e4], n4 = D2.current?.get(t4);
|
|
2159
|
+
n4 ? N2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
|
|
2155
2160
|
}
|
|
2156
2161
|
}, [i2, o2, k2]), me2 = ae(() => {
|
|
2157
2162
|
if (!B2.current) return;
|
|
2158
2163
|
const e3 = [];
|
|
2159
|
-
|
|
2164
|
+
N2.current?.forEach((t3) => {
|
|
2160
2165
|
e3.push(t3.movable);
|
|
2161
|
-
}), B2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }),
|
|
2166
|
+
}), B2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }), N2.current.clear(), B2.current = null;
|
|
2162
2167
|
}, []), pe2 = ae(() => {
|
|
2163
2168
|
B2.current && (B2.current.rollback(), B2.current = null);
|
|
2164
2169
|
}, []), fe2 = le(null);
|
|
@@ -2175,12 +2180,12 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2175
2180
|
if (be2.current) return;
|
|
2176
2181
|
if (ye2.current) return;
|
|
2177
2182
|
if (Ce2.current) return void requestAnimationFrame(() => {
|
|
2178
|
-
O2.current &&
|
|
2183
|
+
O2.current && H2.current && O2.current.refTargets.length > 0 && (be2.current = true, _2.current?.(true)), R2([...k2]);
|
|
2179
2184
|
});
|
|
2180
2185
|
ye2.current = true;
|
|
2181
2186
|
const e3 = Q.lazy(async () => {
|
|
2182
2187
|
try {
|
|
2183
|
-
const e4 = await import("./
|
|
2188
|
+
const e4 = await import("./4GvsEqYx_7ldThJ8.mjs");
|
|
2184
2189
|
return ye2.current = false, Ce2.current = true, R2([...k2]), e4;
|
|
2185
2190
|
} catch (e4) {
|
|
2186
2191
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -2196,7 +2201,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2196
2201
|
const t3 = 0 !== e3.direction[0] && 0 !== e3.direction[1];
|
|
2197
2202
|
let n3 = 0, l3 = 0;
|
|
2198
2203
|
for (let r3 = 0; r3 < k2.length; r3++) {
|
|
2199
|
-
const i3 = k2[r3], a3 =
|
|
2204
|
+
const i3 = k2[r3], a3 = N2.current.get(i3), s3 = D2.current.get(i3);
|
|
2200
2205
|
if (!a3 || !s3) {
|
|
2201
2206
|
console.warn("invalid element");
|
|
2202
2207
|
continue;
|
|
@@ -2218,13 +2223,13 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2218
2223
|
if (!B2.current) return e3.stopDrag(), void $2();
|
|
2219
2224
|
z2(true);
|
|
2220
2225
|
for (let t3 = 0; t3 < k2.length; t3++) {
|
|
2221
|
-
const n3 = k2[t3], l3 =
|
|
2226
|
+
const n3 = k2[t3], l3 = N2.current.get(n3);
|
|
2222
2227
|
l3 ? l3.movable.setBounds(o2.toAbsoluteBounds({ ...l3.startBounds, x: l3.startBounds.x + e3.translate[0], y: l3.startBounds.y + e3.translate[1] })) : console.warn("invalid element");
|
|
2223
2228
|
}
|
|
2224
2229
|
}, onDragEnd: (e3) => {
|
|
2225
2230
|
}, onMouseUp: (e3) => {
|
|
2226
2231
|
} }) }), [P2, qe2, k2, o2, d2, c2, g2, M2, A2]);
|
|
2227
|
-
return G("div", { className: Me(u2, "movable-area", Kt), style: { width: q2.width, height: q2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: ke([we2, fe2]), ...f2, children: G("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: q2.width, height: q2.height }, ...f2, children: Z("div", { ref:
|
|
2232
|
+
return G("div", { className: Me(u2, "movable-area", Kt), style: { width: q2.width, height: q2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: ke([we2, fe2]), ...f2, children: G("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: q2.width, height: q2.height }, ...f2, children: Z("div", { ref: H2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
|
|
2228
2233
|
C2?.(), ee2(true);
|
|
2229
2234
|
}, onBlur: (e3) => {
|
|
2230
2235
|
ee2(false);
|
|
@@ -2236,7 +2241,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2236
2241
|
let o4 = [...t4];
|
|
2237
2242
|
return k2.forEach((e4) => {
|
|
2238
2243
|
if (0 === o4.length) return;
|
|
2239
|
-
const t5 =
|
|
2244
|
+
const t5 = D2.current.get(e4);
|
|
2240
2245
|
let n3 = o4.indexOf(t5);
|
|
2241
2246
|
o4.splice(n3, 1);
|
|
2242
2247
|
}), o4.length !== t4.length && l2.selectMovables(o4), 0 === o4.length && y2?.(), void e3.preventDefault();
|
|
@@ -2450,7 +2455,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2450
2455
|
} }, "movable-area"), [n2, l2, i2, c2]);
|
|
2451
2456
|
return g2 && o2 ? g2 : null;
|
|
2452
2457
|
})), oo = ee(ne((e2, t2) => {
|
|
2453
|
-
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2, notifier: c2 =
|
|
2458
|
+
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2, notifier: c2 = H } = e2, g2 = z(), [u2, h2] = oe(null), [m2, p2] = oe(null), [f2, q2] = oe(null), [v2, y2] = oe(null), [C2, b2] = oe(null);
|
|
2454
2459
|
ie(() => {
|
|
2455
2460
|
if (null === f2) return y2(null), void b2(null);
|
|
2456
2461
|
const e3 = () => {
|
|
@@ -2484,7 +2489,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2484
2489
|
const o4 = { sheet: n2, coords: t3, editState: e4 };
|
|
2485
2490
|
g2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
|
|
2486
2491
|
}, editState: m2.editState });
|
|
2487
|
-
}, [n2, v2, r2, m2, f2]), { overlay: T2, startEdit: A2, submitEdit: F2, cancelEdit:
|
|
2492
|
+
}, [n2, v2, r2, m2, f2]), { overlay: T2, startEdit: A2, submitEdit: F2, cancelEdit: E2, onKeyboardEventNative: D2, onPointerEventNative: I2 } = be({ view: o2, activeCoords: u2, getCellEditor: M2, canEdit: () => {
|
|
2488
2493
|
const e3 = n2.getProtection();
|
|
2489
2494
|
if (e3.isReadOnly()) return false;
|
|
2490
2495
|
const t3 = e3.isLocked();
|
|
@@ -2502,21 +2507,21 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2502
2507
|
Ct(n2.getSelection(), { onChange(e3) {
|
|
2503
2508
|
h2(n2.getSelection().getCoords().cell);
|
|
2504
2509
|
} });
|
|
2505
|
-
const
|
|
2510
|
+
const N2 = S((e3) => {
|
|
2506
2511
|
I2(e3), f2 && F2();
|
|
2507
|
-
}, [I2,
|
|
2512
|
+
}, [I2, E2, f2]), V2 = ae((e3) => {
|
|
2508
2513
|
I2(e3);
|
|
2509
|
-
}, [I2]),
|
|
2510
|
-
|
|
2511
|
-
}, [
|
|
2514
|
+
}, [I2]), L2 = ae((e3) => {
|
|
2515
|
+
D2(e3);
|
|
2516
|
+
}, [D2]);
|
|
2512
2517
|
return re(() => {
|
|
2513
2518
|
const e3 = o2?.getStage();
|
|
2514
|
-
if (e3) return e3.addEventListener("pointerdown",
|
|
2515
|
-
e3.removeEventListener("pointerdown",
|
|
2519
|
+
if (e3) return e3.addEventListener("pointerdown", N2), e3.addEventListener("dblclick", V2), e3.addEventListener("keydown", L2), () => {
|
|
2520
|
+
e3.removeEventListener("pointerdown", N2), e3.removeEventListener("dblclick", V2), e3.removeEventListener("keydown", L2);
|
|
2516
2521
|
};
|
|
2517
2522
|
}, [o2?.getStage()]), re(() => {
|
|
2518
2523
|
const e3 = g2.getMode(), t3 = e3?.key;
|
|
2519
|
-
"edit" === t3 || "enter" === t3 ? m2 ? e3.args?.cancel ?
|
|
2524
|
+
"edit" === t3 || "enter" === t3 ? m2 ? e3.args?.cancel ? E2() : e3.args?.submit ? F2() : p2(e3.args?.stateAndCoords) : A2(e3.args?.start) : f2 && E2();
|
|
2520
2525
|
}, [g2]), T2(o2, t2);
|
|
2521
2526
|
})), no = "white", lo = "black", ro = `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='${lo}' fill='${no}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, io = `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='${lo}' fill='${no}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, ao = ee(ne((e2, t2) => {
|
|
2522
2527
|
const { view: o2, sheet: n2 } = e2, [l2, r2] = Q.useState(n2.getTables().getCount() > 0), [i2, a2] = Q.useState(null), [s2, d2] = Q.useState(null), [c2, g2] = Q.useState(null), [u2, h2] = Q.useState(null), m2 = S(() => {
|
|
@@ -2630,25 +2635,25 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2630
2635
|
const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = K.mergeContentful(e2.body, r2);
|
|
2631
2636
|
return o2.body = K.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = K.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 = K.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = K.mergeContentful(o2.header, r2), o2.headerSelect = K.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = K.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = K.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = K.mergeContentful(o2.headerSelectAll, r2), o2;
|
|
2632
2637
|
}, uo = { fireOnModelChange: false }, ho = {}, mo = ee(ne((e2, t2) => {
|
|
2633
|
-
const { sheet: o2, gridStyle: n2 = ho, headersStyle: l2 = ho, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: q2, onMoveCell: v2, overlays: y2, renderMovable: k2, viewportComponent: R2, onElementLoad: M2, getCellEditor: T2, onFocus: A2, onBlur: F2, style:
|
|
2638
|
+
const { sheet: o2, gridStyle: n2 = ho, headersStyle: l2 = ho, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: q2, onMoveCell: v2, overlays: y2, renderMovable: k2, viewportComponent: R2, onElementLoad: M2, getCellEditor: T2, onFocus: A2, onBlur: F2, style: D2 = C.EmptyCssProperties, notifier: I2, onShowTooltip: N2, onShowColumnTooltip: L2, onShowRowTooltip: H2, onCloseTooltip: B2, gridProps: P2, cellRenderProps: $2, ...W2 } = e2;
|
|
2634
2639
|
if (Q.useEffect(() => {
|
|
2635
2640
|
d._validate(true);
|
|
2636
2641
|
}, []), !o2) throw new Error("ISheet must be provided.");
|
|
2637
|
-
const [U2, _2] = Q.useReducer((e3) => e3 + 1, 0), [ee2, { width: ne2, height: se2 }] = Re(), de2 = S(
|
|
2642
|
+
const [U2, _2] = Q.useReducer((e3) => e3 + 1, 0), [ee2, { width: ne2, height: se2 }] = Re(), de2 = S(N2, [N2]), ge2 = S(L2, [L2]), ue2 = S(H2, [H2]), he2 = S(B2, [B2]), me2 = le(false);
|
|
2638
2643
|
ie(() => {
|
|
2639
2644
|
me2.current = true;
|
|
2640
2645
|
}, [o2]);
|
|
2641
|
-
const pe2 = o2?.getStyles(), fe2 = te(() => go(n2, pe2), [n2, pe2]), we2 = te(() => go(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: ye2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, ke2 = le(null), [Te2, Ae2] = oe(() => o2?.getView()), ze2 = (Te2?.getZoomScale() ?? 100) / 100, Fe2 = te(() => ({ vertical: Te2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: Te2.isShowRowGridlines() && ze2 >= 0.4 }), [Te2?.isShowColumnGridlines(), Te2?.isShowRowGridlines(), ze2]),
|
|
2646
|
+
const pe2 = o2?.getStyles(), fe2 = te(() => go(n2, pe2), [n2, pe2]), we2 = te(() => go(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: ye2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, ke2 = le(null), [Te2, Ae2] = oe(() => o2?.getView()), ze2 = (Te2?.getZoomScale() ?? 100) / 100, Fe2 = te(() => ({ vertical: Te2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: Te2.isShowRowGridlines() && ze2 >= 0.4 }), [Te2?.isShowColumnGridlines(), Te2?.isShowRowGridlines(), ze2]), Ee2 = te(() => {
|
|
2642
2647
|
if (Te2?.getGridLineColor()) return { strokeDasharray: "1,1" };
|
|
2643
|
-
}, [Te2?.getGridLineColor(), fe2]),
|
|
2648
|
+
}, [Te2?.getGridLineColor(), fe2]), De2 = s2 ?? Te2?.isShowColumnHeaders(), Ie2 = g2 ?? Te2?.isShowRowHeaders(), [Ne2, Ve2] = oe({ width: 0, height: 0 }), Le2 = te(() => {
|
|
2644
2649
|
let e3 = 40, t3 = 20;
|
|
2645
2650
|
const n3 = o2?.getStyles().getNormal().getFont();
|
|
2646
|
-
if (
|
|
2647
|
-
const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily, l3 = n3?.getSize() ?? fe2.header.text.fontSize, r3 = a.getSharedMeasurer()("" +
|
|
2651
|
+
if (Ne2.width > 0 && Ne2.height > 0) {
|
|
2652
|
+
const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily, l3 = n3?.getSize() ?? fe2.header.text.fontSize, r3 = a.getSharedMeasurer()("" + Ne2.height, Math.ceil(l3 * a.getDeviceScale()), o3);
|
|
2648
2653
|
e3 = r3.width, t3 = r3.lineHeight;
|
|
2649
2654
|
}
|
|
2650
2655
|
return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
|
|
2651
|
-
}, [
|
|
2656
|
+
}, [Ne2, fe2?.header.text, o2]), He2 = Ie2 ? ze2 * Le2.width : Ce2.edgeStrokeWidth, Be2 = De2 ? ze2 * Le2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? Le2.width) + He2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? Le2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(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] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() => Kt2.current, []), [tt2, ot2] = oe(), nt2 = S((e3) => {
|
|
2652
2657
|
ot2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
|
|
2653
2658
|
}, [o2, f2]), lt2 = le(null);
|
|
2654
2659
|
re(() => {
|
|
@@ -2674,12 +2679,12 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2674
2679
|
re(() => {
|
|
2675
2680
|
Ft2(false);
|
|
2676
2681
|
}, [o2.getProtection()]);
|
|
2677
|
-
const
|
|
2678
|
-
zt2 || (Ft2(true), I2.showMessage?.(Z("span", { children: ["This sheet is protected.", G("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type:
|
|
2679
|
-
}, [I2, zt2]),
|
|
2682
|
+
const Et2 = S(() => {
|
|
2683
|
+
zt2 || (Ft2(true), I2.showMessage?.(Z("span", { children: ["This sheet is protected.", G("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: E.Error }));
|
|
2684
|
+
}, [I2, zt2]), Dt2 = te(() => {
|
|
2680
2685
|
const e3 = gt2.getMode();
|
|
2681
2686
|
return e3?.cursor ? e3.cursor : null;
|
|
2682
|
-
}, [At2, gt2]), [It2,
|
|
2687
|
+
}, [At2, gt2]), [It2, Nt2] = oe(null), Vt2 = le(false), [Ht2, Bt2] = oe([]), Ot2 = le(null), [Pt2, $t2] = oe(Y.EmptyTopLeft), [Wt2, Ut2] = oe(Y.EmptyTopLeft);
|
|
2683
2688
|
re(() => {
|
|
2684
2689
|
$t2({ left: rt2?.left, top: 0 });
|
|
2685
2690
|
}, [rt2?.left]), re(() => {
|
|
@@ -2696,7 +2701,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2696
2701
|
Ae2(o2.getView()), Ge2(Ue2());
|
|
2697
2702
|
}, onLayoutChange: () => {
|
|
2698
2703
|
const e3 = o2.getEntireRange();
|
|
2699
|
-
|
|
2704
|
+
Ve2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
|
|
2700
2705
|
}, onStyleChange: () => {
|
|
2701
2706
|
Xt2();
|
|
2702
2707
|
}, onMovablesChange: () => {
|
|
@@ -2709,13 +2714,13 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2709
2714
|
}, onRequestFocus: () => K.whenFocus(Kt2.current) }, uo);
|
|
2710
2715
|
const Gt2 = le(false), Zt2 = te(() => {
|
|
2711
2716
|
const e3 = (e4, t4) => {
|
|
2712
|
-
|
|
2713
|
-
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: 0, rowEnd:
|
|
2717
|
+
Vt2.current = true, Nt2([(l3) => {
|
|
2718
|
+
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ne2.height, colStart: e4, colEnd: e4 }))) return;
|
|
2714
2719
|
const r3 = l3.getLayout(), i2 = Math.max(0, r3.getColOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.x + a2.width, r3.getColOffset(e4 + 1)), d2 = l3.getAnchor();
|
|
2715
2720
|
if (null !== t4 && (d2 === X.Left || d2 === X.Center || d2 === X.Right)) {
|
|
2716
2721
|
const e5 = K.roundAccurately(t4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(t4 / ze2), 2).toFixed(2), l4 = "Width: " + (t4 ? n3 + " (" + e5 + " pixels)" : "Hidden"), r4 = yo2.current.getGridElement().getRelativePointFromClient(0, 0), d3 = 0 - r4.y, c4 = 0 - r4.y + Be2, g4 = { x: i2 - (r4.x - a2.x), y: d3, width: s3 - i2, height: c4 - d3 };
|
|
2717
2722
|
requestAnimationFrame(() => {
|
|
2718
|
-
|
|
2723
|
+
Vt2.current && ge2?.({ anchor: g4, display: l4 });
|
|
2719
2724
|
});
|
|
2720
2725
|
}
|
|
2721
2726
|
const c3 = [0, 0, 0, a2.height], g3 = { style: { boxShadow: `0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, u3 = { x: i2 - 1, y: 0, width: 1, height: a2.height }, h3 = { style: { boxShadow: `-0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, m2 = { x: s3 - 1, y: 0, width: 1, height: a2.height };
|
|
@@ -2730,21 +2735,21 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2730
2735
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2731
2736
|
Gt2.current = true, setTimeout(() => {
|
|
2732
2737
|
Gt2.current && e3(t4, o3);
|
|
2733
|
-
},
|
|
2738
|
+
}, 360);
|
|
2734
2739
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2735
|
-
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()),
|
|
2740
|
+
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Nt2(null);
|
|
2736
2741
|
}, onResizeHeadersUp: (e4) => {
|
|
2737
|
-
Gt2.current = false, requestAnimationFrame(() => he2?.()),
|
|
2742
|
+
Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Nt2(null);
|
|
2738
2743
|
}, ...c2 };
|
|
2739
2744
|
}, [o2, c2, Be2, It2]), jt2 = te(() => {
|
|
2740
2745
|
const e3 = (e4, t4) => {
|
|
2741
|
-
|
|
2742
|
-
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: e4, rowEnd: e4, colStart: 0, colEnd:
|
|
2746
|
+
Vt2.current = true, Nt2([(l3) => {
|
|
2747
|
+
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: e4, rowEnd: e4, colStart: 0, colEnd: Ne2.width }))) return;
|
|
2743
2748
|
const r3 = l3.getLayout(), i2 = Math.max(0, r3.getRowOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.y + a2.height, r3.getRowOffset(e4 + 1)), d2 = l3.getAnchor();
|
|
2744
2749
|
if (null !== t4 && (d2 === X.Top || d2 === X.Center || d2 === X.Bottom)) {
|
|
2745
|
-
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x +
|
|
2750
|
+
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x + He2, u4 = { x: c4, y: i2 - (d3.y - a2.y), width: g4 - c4, height: s3 - i2 };
|
|
2746
2751
|
requestAnimationFrame(() => {
|
|
2747
|
-
|
|
2752
|
+
Vt2.current && ue2?.({ anchor: u4, display: r4 });
|
|
2748
2753
|
});
|
|
2749
2754
|
}
|
|
2750
2755
|
const c3 = [0, 0, a2.width, 0], g3 = { style: { boxShadow: `0px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, u3 = { x: 0, y: i2 - 1, width: a2.width, height: 1 }, h3 = { style: { boxShadow: `0px -0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, m2 = { x: 0, y: s3 - 1, width: a2.width, height: 1 };
|
|
@@ -2759,13 +2764,13 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2759
2764
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2760
2765
|
Gt2.current = true, setTimeout(() => {
|
|
2761
2766
|
Gt2.current && e3(t4, o3);
|
|
2762
|
-
},
|
|
2767
|
+
}, 360);
|
|
2763
2768
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2764
|
-
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()),
|
|
2769
|
+
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Nt2(null);
|
|
2765
2770
|
}, onResizeHeadersUp: (e4) => {
|
|
2766
|
-
Gt2.current = false, requestAnimationFrame(() => he2?.()),
|
|
2771
|
+
Gt2.current = false, requestAnimationFrame(() => he2?.()), Vt2.current = false, Nt2(null);
|
|
2767
2772
|
}, ...u2 };
|
|
2768
|
-
}, [o2, u2,
|
|
2773
|
+
}, [o2, u2, He2]), Kt2 = b(t2, () => {
|
|
2769
2774
|
const e3 = (e4) => {
|
|
2770
2775
|
o2?.getView() && o2.getView().selectMovables([]), We2.current = null, ke2?.current?.focus(e4);
|
|
2771
2776
|
}, t3 = async (e4 = null) => {
|
|
@@ -2779,7 +2784,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2779
2784
|
let r3 = $e2.current?.get(l3);
|
|
2780
2785
|
return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
|
|
2781
2786
|
};
|
|
2782
|
-
return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () =>
|
|
2787
|
+
return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => He2, startEdit: ht2, submitEdit: () => {
|
|
2783
2788
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
|
|
2784
2789
|
}, cancelEdit: () => {
|
|
2785
2790
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
|
|
@@ -2794,10 +2799,10 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2794
2799
|
}, [fe2]);
|
|
2795
2800
|
const Yt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Jt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = te(() => R2 ? G("div", { className: Me("sheetxl-viewport-overlay", qt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
|
|
2796
2801
|
let eo2 = null;
|
|
2797
|
-
|
|
2802
|
+
De2 && Ie2 && (eo2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${He2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
|
|
2798
2803
|
let t3 = !e3.ctrlKey;
|
|
2799
|
-
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which ===
|
|
2800
|
-
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${
|
|
2804
|
+
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === V.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : ke2.current?.focus();
|
|
2805
|
+
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${He2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2801
2806
|
const no2 = S(({ _left: e3, _top: t3 }) => {
|
|
2802
2807
|
}, []), lo2 = S((e3) => {
|
|
2803
2808
|
if (!r2) return;
|
|
@@ -2809,7 +2814,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2809
2814
|
return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
|
|
2810
2815
|
}, [pt2]);
|
|
2811
2816
|
re(() => {
|
|
2812
|
-
Bt2(null), Ot2.current = null,
|
|
2817
|
+
Bt2(null), Ot2.current = null, Vt2.current = false, Nt2(null);
|
|
2813
2818
|
const e3 = o2?.getView().getTopLeft();
|
|
2814
2819
|
no2(e3), ke2.current?.scrollTo(e3), it2(e3), Ae2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
|
|
2815
2820
|
}, [o2?.getView()]);
|
|
@@ -2842,7 +2847,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2842
2847
|
}, [gt2]), wo2 = S(async (e3) => {
|
|
2843
2848
|
const t3 = gt2.getMode();
|
|
2844
2849
|
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && fo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
|
|
2845
|
-
}, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${
|
|
2850
|
+
}, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Mt, { ref: qo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Top], oppositeSize: He2, containerWidth: He2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Wt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...jt2?.style }, ...jt2 }) }), [He2, Be2, Pe2, o2, Wt2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), yo2 = le(null), Co2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Mt, { ref: yo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Zt2, style: { ...Zt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, Pt2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), bo2 = S((e3) => {
|
|
2846
2851
|
const { value: t3, key: n3, ...l3 } = e3;
|
|
2847
2852
|
let r3 = t3, i2 = Ke2;
|
|
2848
2853
|
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
|
|
@@ -2864,33 +2869,33 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2864
2869
|
return ce(et, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: Te2.isShowFormulas(), showZeros: Te2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
|
|
2865
2870
|
}, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]), So2 = ae((e3, t3) => {
|
|
2866
2871
|
const { key: n3, ...l3 } = e3;
|
|
2867
|
-
return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(
|
|
2872
|
+
return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Lt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, notifier: I2, ...l3 }, `copy-paste-${n3}`), G(to, { ref: t3, sheet: o2, commands: pt2, target: ut2, notifier: I2, renderMovable: k2, movableProps: { onUnFocus: () => {
|
|
2868
2873
|
Kt2.current.focus();
|
|
2869
|
-
} }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError:
|
|
2874
|
+
} }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError: Et2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
|
|
2870
2875
|
}, [o2, ke2.current, fe2, T2, pt2, I2]), [xo2, ko2] = oe(false), Ro2 = te(() => {
|
|
2871
2876
|
if (0 === Oe2 || 0 === Pe2) return null;
|
|
2872
2877
|
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
|
|
2873
|
-
let i2 =
|
|
2878
|
+
let i2 = Ee2, a2 = Ee2;
|
|
2874
2879
|
const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(ve2.darkMode).toString(), ...t4 } : t4;
|
|
2875
2880
|
a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
|
|
2876
2881
|
let d2 = Te2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
|
|
2877
2882
|
return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(qe, { className: "sheetxl-sheet-primary", style: { ...co, ...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": ye2.fill, "--sxl-app-color-button-text": ye2.text?.fill, "--sxl-app-color-button-border": ye2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: ke2, zoom: ze2, ...P2, onFirstRender: (e4) => {
|
|
2878
2883
|
ko2(true), P2?.onFirstRender?.(e4), pt2?.activate();
|
|
2879
|
-
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount:
|
|
2884
|
+
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount: Ne2.width, rowCount: Ne2.height, cursor: Dt2 ?? At2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: bo2, overlayRenderer: So2, getCellCoordsAsRangeCoords: at2, getVisibleCells: io2, onWheelScroll: ro2, onPointerDown: po2, onKeyDown: wo2, onViewportChange: nt2, onImmediateScroll: no2, scrollPoint: rt2, stageProps: { onFocus: () => {
|
|
2880
2885
|
pt2?.activate();
|
|
2881
|
-
} }, overlays:
|
|
2886
|
+
} }, overlays: Ht2 });
|
|
2882
2887
|
}, [U2]);
|
|
2883
2888
|
re(() => {
|
|
2884
2889
|
me2.current || _2();
|
|
2885
|
-
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2,
|
|
2890
|
+
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2, Dt2, Ht2, Ye2, At2]);
|
|
2886
2891
|
let Mo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
2887
|
-
h2 || (Mo2 = { ...Mo2, ...
|
|
2892
|
+
h2 || (Mo2 = { ...Mo2, ...D2 });
|
|
2888
2893
|
const To2 = te(() => {
|
|
2889
2894
|
const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
|
|
2890
2895
|
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() };
|
|
2891
2896
|
}, [o2.getStyles().getTheme()]);
|
|
2892
2897
|
let Ao2 = G("div", { style: Mo2, onTouchStart: () => {
|
|
2893
|
-
|
|
2898
|
+
Eo2();
|
|
2894
2899
|
}, onFocus: (e3) => {
|
|
2895
2900
|
je2(true), A2?.(e3);
|
|
2896
2901
|
}, onBlur: (e3) => {
|
|
@@ -2898,18 +2903,18 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2898
2903
|
}, ref: Kt2, ...W2, children: G("div", { className: Me("sheetxl-sheet", wt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...To2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, vo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Co2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: ee2, onContextMenu: lo2, children: [Ro2, Qt2, G(yt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
|
|
2899
2904
|
if (h2) {
|
|
2900
2905
|
const e3 = (e4) => G(kt, { ...e4, sheet: o2 });
|
|
2901
|
-
Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 *
|
|
2906
|
+
Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Le2.height, minWidth: 2 * Le2.width, ...D2 }, viewport: tt2, touchElement: ke2.current?.stage, disableTouch: Rt2, onScrollViewport: (e4) => {
|
|
2902
2907
|
ke2.current?.scrollTo(e4);
|
|
2903
2908
|
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: Ao2 });
|
|
2904
2909
|
}
|
|
2905
2910
|
re(() => {
|
|
2906
2911
|
me2.current = false, _2?.(), Ze2 && Kt2.current?.focus();
|
|
2907
2912
|
}, [o2]);
|
|
2908
|
-
const [zo2, Fo2] = oe(false),
|
|
2913
|
+
const [zo2, Fo2] = oe(false), Eo2 = S(() => {
|
|
2909
2914
|
zo2 || Fo2(true);
|
|
2910
2915
|
}, [zo2]);
|
|
2911
2916
|
return re(() => {
|
|
2912
|
-
if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput &&
|
|
2917
|
+
if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Eo2(), () => {
|
|
2913
2918
|
};
|
|
2914
2919
|
}, [M2, xo2, zo2]), Ao2;
|
|
2915
2920
|
}));
|
|
@@ -2948,7 +2953,7 @@ const qo = ee(ne((e2, t2) => {
|
|
|
2948
2953
|
}, [l2]);
|
|
2949
2954
|
const x2 = le(null), [k2, R2] = oe(null), M2 = ae(function(e3) {
|
|
2950
2955
|
const t3 = e3.message;
|
|
2951
|
-
k2 !== t3 && (d2?.showMessage?.(t3, { type:
|
|
2956
|
+
k2 !== t3 && (d2?.showMessage?.(t3, { type: E.Error }), R2(t3));
|
|
2952
2957
|
}, [d2, k2]), T2 = ae((e3) => {
|
|
2953
2958
|
let t3 = false;
|
|
2954
2959
|
try {
|
|
@@ -2973,10 +2978,10 @@ const qo = ee(ne((e2, t2) => {
|
|
|
2973
2978
|
q2 && C2(e4.target.value);
|
|
2974
2979
|
}, onMouseDown: (e4) => e4.stopPropagation(), onKeyDown: (e4) => "Escape" === e4.code ? (e4.preventDefault(), void A2()) : "Enter" === e4.code ? (e4.preventDefault(), void T2(e4.target.value)) : void ("Tab" !== e4.code ? e4.stopPropagation() : T2(e4.target.value)) };
|
|
2975
2980
|
return G(j, { children: s2(e3) });
|
|
2976
|
-
}, [q2, y2, T2, A2, s2, h2]), [F2,
|
|
2981
|
+
}, [q2, y2, T2, A2, s2, h2]), [F2, D2] = oe();
|
|
2977
2982
|
ie(() => {
|
|
2978
2983
|
let e3 = Object.assign({}, o2);
|
|
2979
|
-
(g2 || f2) && (e3 = Object.assign(e3, c2)),
|
|
2984
|
+
(g2 || f2) && (e3 = Object.assign(e3, c2)), D2(e3);
|
|
2980
2985
|
}, [g2, f2, c2, o2]), re(() => {
|
|
2981
2986
|
z2 && i2?.(y2);
|
|
2982
2987
|
}, [z2, i2, y2]);
|
|
@@ -3000,17 +3005,17 @@ const qo = ee(ne((e2, t2) => {
|
|
|
3000
3005
|
const v2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: q2, style: u2, transform: m2, transition: h2, value: p2 }) : G(j, { children: p2 });
|
|
3001
3006
|
return G("div", { className: Me("tab-item", So.Wrapper, l2 && So.fadeIn, g2 && So.sorting, t2 && So.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: q2, children: G("div", { className: Me(So.Item, o2 && So.dragging, r2 && So.withHandle, t2 && So.dragOverlay, n2 && So.disabled, e2 && So.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: v2 }) });
|
|
3002
3007
|
})), ko = { Row: "_Row_1kr10_1" }, Ro = ee(ne(({ children: e2, horizontal: t2, style: o2 }, n2) => G("div", { ref: n2, style: { ...o2 }, className: Me(ko.Row, t2 && ko.horizontal), children: e2 }))), Mo = { ...Be }, To = ee(ne((e2, t2) => {
|
|
3003
|
-
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 =
|
|
3008
|
+
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = He, coordinateGetter: a2 = Fe, dropAnimation: s2 = Mo, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: q2, reorderItems: v2 = Ee, strategy: y2 = De, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, R2] = oe(() => u2);
|
|
3004
3009
|
re(() => {
|
|
3005
3010
|
R2(u2);
|
|
3006
3011
|
}, [u2]);
|
|
3007
|
-
const [M2, T2] = oe(null), A2 = Oe(Pe($e, { activationConstraint: n2 }), Pe(We, { activationConstraint: n2 }), Pe(Ue, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = M2 ? z2(M2) : -1,
|
|
3012
|
+
const [M2, T2] = oe(null), A2 = Oe(Pe($e, { activationConstraint: n2 }), Pe(We, { activationConstraint: n2 }), Pe(Ue, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = M2 ? z2(M2) : -1, E2 = [];
|
|
3008
3013
|
k2.map((e3, t3) => {
|
|
3009
|
-
|
|
3014
|
+
E2.push(G(Ao, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
|
|
3010
3015
|
const o3 = q2?.({ key: "divider-" + t3 });
|
|
3011
|
-
o3 &&
|
|
3016
|
+
o3 && E2.push(o3);
|
|
3012
3017
|
});
|
|
3013
|
-
const { getPortalContainer:
|
|
3018
|
+
const { getPortalContainer: D2 } = P();
|
|
3014
3019
|
return Z(_e, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
|
|
3015
3020
|
const { active: t3 } = e3;
|
|
3016
3021
|
t3 && (S2?.(e3), T2(t3.id));
|
|
@@ -3021,15 +3026,15 @@ const qo = ee(ne((e2, t2) => {
|
|
|
3021
3026
|
}
|
|
3022
3027
|
}, onDragCancel: () => {
|
|
3023
3028
|
T2(null);
|
|
3024
|
-
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Me(o2, So.Wrapper), children: G(Ie, { items: k2, strategy: y2, children: G(Ro, { ref: t2, children:
|
|
3029
|
+
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Me(o2, So.Wrapper), children: G(Ie, { items: k2, strategy: y2, children: G(Ro, { ref: t2, children: E2 }) }) }), b2 ? Ae(G(Ge, { adjustScale: r2, dropAnimation: s2, children: M2 ? G(xo, { 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 !== M2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), D2()) : null] });
|
|
3025
3030
|
}));
|
|
3026
3031
|
function Ao({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: l2, index: r2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
|
|
3027
|
-
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: q2 } =
|
|
3032
|
+
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: q2 } = Ne({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
|
|
3028
3033
|
return G(xo, { ref: f2, value: l2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: r2, style: a2({ index: r2, id: l2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(l2) : void 0, transform: w2, transition: q2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
|
|
3029
3034
|
}
|
|
3030
|
-
const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"),
|
|
3031
|
-
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 =
|
|
3032
|
-
const t3 =
|
|
3035
|
+
const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Eo = "#eee", Do = (e2) => G(bo, { ...e2 }), Io = ee(ne((e2, t2) => {
|
|
3036
|
+
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 = Do, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: q2 = "white", activeColor: v2 = Fo, borderColor: y2 = Eo, borderWidth: C2 = 1 } = e2, [b2, S2] = oe(r2), [x2, k2] = oe(i2), R2 = ae((e3) => {
|
|
3037
|
+
const t3 = D2.current?.[e3]?.closest(".tab-item") ?? D2.current?.[e3];
|
|
3033
3038
|
t3 && P2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
|
|
3034
3039
|
}, []);
|
|
3035
3040
|
re(() => {
|
|
@@ -3039,7 +3044,7 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3039
3044
|
t3 !== b2 && (S2(t3), a2?.(t3)), R2(t3);
|
|
3040
3045
|
}, [a2, b2]), T2 = ae((e3, t3) => {
|
|
3041
3046
|
d2?.(e3, t3);
|
|
3042
|
-
}, [d2]), A2 = le(null), [z2, F2] = oe(-1),
|
|
3047
|
+
}, [d2]), A2 = le(null), [z2, F2] = oe(-1), E2 = ae((e3, t3) => {
|
|
3043
3048
|
s2?.(e3, t3);
|
|
3044
3049
|
}, [s2]);
|
|
3045
3050
|
ie(() => {
|
|
@@ -3047,22 +3052,22 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3047
3052
|
}, [r2]), ie(() => {
|
|
3048
3053
|
k2(i2);
|
|
3049
3054
|
}, [i2]);
|
|
3050
|
-
const
|
|
3055
|
+
const D2 = le([]), N2 = le(null);
|
|
3051
3056
|
ge(t2, () => Object.assign({ startEdit(e3) {
|
|
3052
|
-
|
|
3057
|
+
D2.current?.[e3]?.startEdit();
|
|
3053
3058
|
}, cancel(e3) {
|
|
3054
|
-
|
|
3055
|
-
} },
|
|
3056
|
-
const
|
|
3059
|
+
D2.current?.[e3]?.cancel();
|
|
3060
|
+
} }, N2.current), [b2, z2]);
|
|
3061
|
+
const V2 = ae(({ value: e3, index: t3, dragging: o3 }) => {
|
|
3057
3062
|
const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = G(Co, { ref: (e4) => {
|
|
3058
|
-
|
|
3059
|
-
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && v2 ? v2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1),
|
|
3063
|
+
D2.current[t3] = e4;
|
|
3064
|
+
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && v2 ? v2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1), E2(t3, e4)), onCancel: () => {
|
|
3060
3065
|
A2.current = false, F2(-1);
|
|
3061
3066
|
}, onChange: (e4) => {
|
|
3062
3067
|
A2.current = true, F2(t3);
|
|
3063
3068
|
}, ...r3 });
|
|
3064
3069
|
return h2({ onClick: (e4) => M2(e4, t3), value: e3, index: t3, editing: z2 === t3 && A2.current, editable: true, disabled: f2, selectedIndex: b2, background: q2, activeColor: v2, borderColor: y2, borderWidth: C2, dragging: o3, children: i3 });
|
|
3065
|
-
}, [b2,
|
|
3070
|
+
}, [b2, E2, M2, p2, f2, z2, h2]), [L2, { width: H2 }] = Re(), [B2, { width: O2 }] = Re(), P2 = le(null), [K2, X2] = oe({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = oe(null);
|
|
3066
3071
|
re(() => {
|
|
3067
3072
|
null !== Y2 && P2.current && P2.current.scrollTo({ left: Y2, behavior: "smooth" });
|
|
3068
3073
|
}, [Y2]);
|
|
@@ -3073,9 +3078,9 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3073
3078
|
}, []), ee2 = ae((e3, t3 = false) => {
|
|
3074
3079
|
if (!P2.current) return 0;
|
|
3075
3080
|
let o3 = P2.current.firstChild.getBoundingClientRect(), n3 = P2.current.firstChild.firstChild.children, l3 = 0;
|
|
3076
|
-
const r3 = Math.ceil(O2 -
|
|
3081
|
+
const r3 = Math.ceil(O2 - H2);
|
|
3077
3082
|
return l3 = t3 ? r3 : _.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
|
|
3078
|
-
}, [O2,
|
|
3083
|
+
}, [O2, H2]), ne2 = le(null), se2 = le(null), de2 = ae(() => {
|
|
3079
3084
|
se2.current && (clearTimeout(se2.current), se2.current = null, ne2.current = null);
|
|
3080
3085
|
}, []), ce2 = ae((e3, t3, o3 = 260) => {
|
|
3081
3086
|
ne2.current = e3, se2.current = setTimeout(() => {
|
|
@@ -3084,13 +3089,13 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3084
3089
|
}, o3);
|
|
3085
3090
|
}, [Q2, ee2, de2]);
|
|
3086
3091
|
re(() => () => de2(), [de2]);
|
|
3087
|
-
const ue2 = te(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(K2.left) <= 0 || 0 === Math.floor(O2 -
|
|
3088
|
-
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Me(zo, l2), ref:
|
|
3092
|
+
const ue2 = te(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(K2.left) <= 0 || 0 === Math.floor(O2 - H2), orientation: I.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(P2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [K2, Y2, O2, H2]), he2 = te(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(O2 - H2) <= Math.ceil(K2.left), orientation: I.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(P2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [K2, Y2, O2, H2]), me2 = te(() => Z(j, { children: [G("div", { style: { minWidth: "16px" } }), o2, u2?.(ue2)] }), [ue2, he2, c2, g2, o2, u2]);
|
|
3093
|
+
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Me(zo, l2), ref: N2, children: [G("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: me2 }), G("div", { className: "Tabs", ref: L2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: G("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: P2, onScroll: (e3) => {
|
|
3089
3094
|
X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
|
|
3090
|
-
}, children: G(To, { isDisabled: (e3) => f2 || w2, items: x2, strategy:
|
|
3095
|
+
}, children: G(To, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Ve, modifiers: [Le], ref: B2, renderItem: V2, renderDivider: m2, onMove: T2, activationConstraint: { distance: 15 } }) }) }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(he2) })] });
|
|
3091
3096
|
}));
|
|
3092
3097
|
Io.displayName = "TabStrip";
|
|
3093
|
-
const Vo = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("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" }), G("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" }), G("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" }), G("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" })] }), No = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("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" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("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" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("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" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("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" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" }), G("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" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" }), G("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" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("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" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("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" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("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" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("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" }), G("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" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("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" }), G("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" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("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" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), an = ue(null);
|
|
3098
|
+
const No = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("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" }), G("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" }), G("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" }), G("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" })] }), Vo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("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" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("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" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("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" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("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" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" }), G("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" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" }), G("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" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("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" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("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" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("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" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("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" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("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" }), G("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" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("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" }), G("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" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("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" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("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" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" }), G("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" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("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" }), G("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" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("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" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("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" })] }), an = ue(null);
|
|
3094
3099
|
an.displayName = "DocThemesContext";
|
|
3095
3100
|
const sn = (e2) => {
|
|
3096
3101
|
const { themes: t2, children: o2 } = e2;
|
|
@@ -3130,9 +3135,10 @@ const fn = async (e2, t2, o2) => {
|
|
|
3130
3135
|
};
|
|
3131
3136
|
function wn(e2, t2) {
|
|
3132
3137
|
let o2 = null;
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3138
|
+
const n2 = e2.length;
|
|
3139
|
+
for (let l2 = 0; !o2 && l2 < n2; l2++) {
|
|
3140
|
+
const n3 = e2[l2];
|
|
3141
|
+
n3.getName() === t2.text && (o2 = n3);
|
|
3136
3142
|
}
|
|
3137
3143
|
return o2 ? o2.getContext() : "formula";
|
|
3138
3144
|
}
|
|
@@ -3145,10 +3151,10 @@ function qn(e2, t2, o2, n2, l2 = []) {
|
|
|
3145
3151
|
return l2;
|
|
3146
3152
|
}
|
|
3147
3153
|
function vn(e2, t2, o2 = "function", n2) {
|
|
3148
|
-
const l2 = e2.spans;
|
|
3149
|
-
for (let
|
|
3150
|
-
const
|
|
3151
|
-
if (
|
|
3154
|
+
const l2 = e2.spans, r2 = l2.length;
|
|
3155
|
+
for (let i2 = 0; i2 < r2; i2++) {
|
|
3156
|
+
const r3 = l2[i2];
|
|
3157
|
+
if (r3.start <= t2 && t2 < r3.start + r3.length) {
|
|
3152
3158
|
if (e2.kind === o2 && (!n2 || e2.kindModifiers === n2)) return e2;
|
|
3153
3159
|
for (const l3 of e2.childItems || []) {
|
|
3154
3160
|
const e3 = vn(l3, t2, o2, n2);
|
|
@@ -3175,9 +3181,36 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3175
3181
|
let e3 = null;
|
|
3176
3182
|
const t3 = () => p2;
|
|
3177
3183
|
return e3 = l2 ? l2.createChildGroup(t3, "scriptEditor", false) : new T(t3, "scriptEditor"), e3.addCommands(f2, true), e3;
|
|
3178
|
-
}, [l2, f2]), q2 =
|
|
3179
|
-
|
|
3180
|
-
|
|
3184
|
+
}, [l2, f2]), q2 = D(w2, ["executeSelectedScript", "saveScripts"]), v2 = q2[0], y2 = q2[1], C2 = v2?.context(), [x2, k2] = oe({ message: "Loading", cursor: "", dirty: false }), [M2, A2] = oe({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
|
|
3185
|
+
k2((t3) => {
|
|
3186
|
+
const o3 = { ...t3, ...e3 };
|
|
3187
|
+
return K.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
|
|
3188
|
+
await F2();
|
|
3189
|
+
}), o3);
|
|
3190
|
+
});
|
|
3191
|
+
}, [c2, y2]);
|
|
3192
|
+
re(() => {
|
|
3193
|
+
c2?.(x2);
|
|
3194
|
+
}, [c2, x2]);
|
|
3195
|
+
const F2 = S(async () => {
|
|
3196
|
+
if (!u2.current) return;
|
|
3197
|
+
const e3 = u2.current.editor;
|
|
3198
|
+
let t3;
|
|
3199
|
+
if (x2.dirty) {
|
|
3200
|
+
const o3 = e3.getValue();
|
|
3201
|
+
await C2?.saveSource(o3), t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3202
|
+
const n3 = t3?.getSource(), l3 = e3.getValue(), r3 = (n3?.length ?? 0) !== o3.length || n3 !== l3;
|
|
3203
|
+
z2({ dirty: r3 });
|
|
3204
|
+
} else t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3205
|
+
return t3;
|
|
3206
|
+
}, [x2]);
|
|
3207
|
+
re(() => {
|
|
3208
|
+
const e3 = C2?.getScripts();
|
|
3209
|
+
if (e3) return e3.addListeners({ onBeforeSearch: () => F2() });
|
|
3210
|
+
}, [C2]);
|
|
3211
|
+
const E2 = S((e3) => {
|
|
3212
|
+
v2?.execute(e3);
|
|
3213
|
+
}, [v2]), I2 = le(""), [N2, V2] = oe(false), L2 = S(async () => {
|
|
3181
3214
|
if (!u2.current) return null;
|
|
3182
3215
|
const e3 = u2.current, t3 = e3.editor;
|
|
3183
3216
|
if (!t3) return null;
|
|
@@ -3193,74 +3226,73 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3193
3226
|
}
|
|
3194
3227
|
return a3;
|
|
3195
3228
|
})(t3, o3);
|
|
3196
|
-
return
|
|
3197
|
-
}, [
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3229
|
+
return z2({ message: (n3 ?? "").toUpperCase() }), n3 ? { source: t3.getValue(), name: n3 } : null;
|
|
3230
|
+
}, []);
|
|
3231
|
+
S(K.debounce(F2, 200), []);
|
|
3232
|
+
const H2 = S(async (e3, t3, o3) => {
|
|
3233
|
+
A2((e4) => ({ ...e4, compiling: true }));
|
|
3234
|
+
const n3 = await C2?.getScripts().createModule({ source: o3?.getValue(), declarationsOnly: true });
|
|
3235
|
+
if (!n3) return;
|
|
3236
|
+
!(async function(e4, t4) {
|
|
3201
3237
|
const o4 = [];
|
|
3202
3238
|
for (let n4 = 1; n4 < e4.getLineCount() + 1; n4++) {
|
|
3203
|
-
const
|
|
3204
|
-
-1 !== r3 && o4.push({ message: "found 'modelt'", resource: "https://www.sheetxl.com", severity: t4.MarkerSeverity.Hint, startLineNumber:
|
|
3239
|
+
const l3 = { startLineNumber: n4, startColumn: 1, endLineNumber: n4, endColumn: e4.getLineLength(n4) + 1 }, r3 = e4.getValueInRange(l3).indexOf("modelt");
|
|
3240
|
+
-1 !== r3 && o4.push({ message: "found 'modelt'", resource: "https://www.sheetxl.com", severity: t4.MarkerSeverity.Hint, startLineNumber: l3.startLineNumber, startColumn: r3 + 1, endLineNumber: l3.startLineNumber, endColumn: r3 + 5 });
|
|
3205
3241
|
}
|
|
3206
3242
|
t4.editor.setModelMarkers(e4, "owner", o4);
|
|
3207
|
-
}(e3, t3)
|
|
3208
|
-
|
|
3243
|
+
})(e3, t3);
|
|
3244
|
+
!(async function(e4, t4, o4, n4) {
|
|
3245
|
+
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = qn(e4, t4, n4, i3).map((e5) => {
|
|
3209
3246
|
let o5 = null, n5 = null;
|
|
3210
3247
|
return "formula" === e5.type ? (o5 = "formula.margin-icon", n5 = "Formula") : "macro" === e5.type ? (o5 = "macro.margin-icon", n5 = "Macro") : "autoRun" === e5.type && (o5 = "autorun.margin-icon", n5 = "Auto Run"), { range: new t4.Range(e5.lineNumber, 1, e5.lineNumber, 1), options: { isWholeLine: false, glyphMarginClassName: o5, glyphMarginHoverMessage: { value: n5 }, stickiness: t4.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges } };
|
|
3211
3248
|
});
|
|
3212
|
-
|
|
3213
|
-
}(e3, t3, o3,
|
|
3214
|
-
}, [
|
|
3215
|
-
if (!u2.current || !
|
|
3249
|
+
U2.current && U2.current.clear(), U2.current = o4.createDecorationsCollection(a3);
|
|
3250
|
+
})(e3, t3, o3, n3 ? n3.getFunctions().getItems() : K.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
|
|
3251
|
+
}, [C2]), B2 = S(K.debounce(H2, 580), []), O2 = S(async (e3 = void 0) => {
|
|
3252
|
+
if (!u2.current || !C2) return;
|
|
3216
3253
|
const t3 = u2.current.editor.getPosition(), o3 = { cursor: t3 ? t3.toString() : "" };
|
|
3217
|
-
void 0 !== e3 && (o3.message = e3),
|
|
3218
|
-
const n3 =
|
|
3219
|
-
|
|
3220
|
-
}, [
|
|
3254
|
+
void 0 !== e3 && (o3.message = e3), z2(o3);
|
|
3255
|
+
const n3 = L2();
|
|
3256
|
+
C2.setSelectedFunction(n3);
|
|
3257
|
+
}, [C2]);
|
|
3258
|
+
re(() => {
|
|
3259
|
+
}, [M2]);
|
|
3260
|
+
const P2 = le(null), $2 = S(async () => {
|
|
3261
|
+
await F2(), h2?.();
|
|
3262
|
+
}, [h2]);
|
|
3221
3263
|
re(() => {
|
|
3222
|
-
if (!
|
|
3264
|
+
if (!C2) return;
|
|
3223
3265
|
const e3 = { insertSnippet: (e4) => {
|
|
3224
|
-
u2.current?.editor &&
|
|
3225
|
-
} };
|
|
3226
|
-
|
|
3227
|
-
const t3 =
|
|
3228
|
-
|
|
3229
|
-
const e4 = u2.current.editor, t4 = v2?.getScripts().getModules().getByName("scripting"), o3 = t4?.getSource(), n3 = e4.getValue();
|
|
3230
|
-
if (!((o3?.length ?? 0) !== n3.length || o3 !== n3)) return;
|
|
3231
|
-
await v2.saveSource(e4.getValue());
|
|
3232
|
-
const l3 = (o3?.length ?? 0) !== n3.length || o3 !== n3;
|
|
3233
|
-
c2?.({ dirty: l3 });
|
|
3266
|
+
u2.current?.editor && fn(u2.current.editor, u2.current.monaco, e4);
|
|
3267
|
+
}, close: () => $2() };
|
|
3268
|
+
C2.setEditor(e3), C2.setSelectedFunction(L2());
|
|
3269
|
+
const t3 = C2.addContainerListener({ onBeforeSave: async () => {
|
|
3270
|
+
F2();
|
|
3234
3271
|
}, onReadonlyChange() {
|
|
3235
3272
|
}, onScriptChange: async () => {
|
|
3236
|
-
if (!u2.current?.editor || !
|
|
3237
|
-
const e4 = u2.current.editor, t4 =
|
|
3273
|
+
if (!u2.current?.editor || !C2) return;
|
|
3274
|
+
const e4 = u2.current.editor, t4 = C2.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
3238
3275
|
e4.setValue(t4);
|
|
3239
3276
|
} });
|
|
3240
3277
|
return () => {
|
|
3241
|
-
|
|
3242
|
-
const e4 = D2.current;
|
|
3243
|
-
if (e4) {
|
|
3244
|
-
e4.dispose();
|
|
3245
|
-
const t4 = e4.debounceTimer;
|
|
3246
|
-
void 0 !== t4 && clearTimeout(t4), D2.current = null;
|
|
3247
|
-
}
|
|
3278
|
+
C2.setEditor(null), t3();
|
|
3248
3279
|
};
|
|
3249
|
-
}, [
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3280
|
+
}, [C2]), re(() => () => {
|
|
3281
|
+
const e3 = P2.current;
|
|
3282
|
+
if (e3) {
|
|
3283
|
+
e3.dispose();
|
|
3284
|
+
const t3 = e3.debounceTimer;
|
|
3285
|
+
void 0 !== t3 && clearTimeout(t3), P2.current = null;
|
|
3286
|
+
}
|
|
3287
|
+
}, [N2]);
|
|
3288
|
+
const W2 = S((e3) => {
|
|
3289
|
+
const t3 = u2.current?.editor;
|
|
3290
|
+
return !!t3 && (t3.focus(e3), true);
|
|
3291
|
+
}, [x2]), U2 = le(null), _2 = S((e3, t3) => {
|
|
3292
|
+
u2.current = { monaco: t3, editor: e3 }, V2(true), O2("Loading Types");
|
|
3293
|
+
const o3 = C2.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
3262
3294
|
e3.setValue(o3), import("monaco-editor-auto-typings/custom-editor.js").then(async (o4) => {
|
|
3263
|
-
|
|
3295
|
+
O2("");
|
|
3264
3296
|
o4.AutoTypings.create(e3, { shareCache: true, dontAdaptEditorOptions: true, monaco: t3, onUpdate: (e4, o5) => {
|
|
3265
3297
|
if ("LookedUpPackage" === e4.type && void 0 !== e4.success) {
|
|
3266
3298
|
const e5 = t3.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
|
|
@@ -3269,37 +3301,34 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3269
3301
|
}, onError: (e4) => {
|
|
3270
3302
|
"Not implemented yet" === e4 && (e4 = "Compile Errors"), console.warn("Error compiling types", e4);
|
|
3271
3303
|
} }).then((o5) => {
|
|
3272
|
-
|
|
3304
|
+
P2.current = o5;
|
|
3273
3305
|
const n4 = e3.getModel();
|
|
3274
|
-
|
|
3306
|
+
B2(n4, t3, e3);
|
|
3275
3307
|
});
|
|
3276
3308
|
}), e3.addCommand("executeScript", function(e4, ...t4) {
|
|
3277
|
-
t4?.[0] &&
|
|
3309
|
+
t4?.[0] && E2({ functionName: t4?.[0] });
|
|
3278
3310
|
}, ""), e3.addAction({ id: "executeScript", label: "Execute", keybindings: [t3.KeyCode.F8], run: async (e4) => {
|
|
3279
|
-
const t4 =
|
|
3280
|
-
|
|
3311
|
+
const t4 = L2();
|
|
3312
|
+
C2.setSelectedFunction(t4);
|
|
3281
3313
|
const o4 = await t4;
|
|
3282
|
-
|
|
3283
|
-
} }), e3.addAction({ id: "saveScript", label: "Save Script", keybindings: [t3.KeyMod.CtrlCmd | t3.KeyCode.KeyS], run: (
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
if (c3) {
|
|
3292
|
-
const e4 = o4.event.browserEvent.button;
|
|
3293
|
-
0 === e4 ? "macro" === c3.type || "autoRun" === c3.type ? y2({ functionName: c3.name }) : "formula" === c3.type && v2.quickInsertFunction?.(c3.name) : 2 === e4 && (console.log("Context menu for function:", c3.name), o4.event.browserEvent.preventDefault());
|
|
3314
|
+
E2(o4);
|
|
3315
|
+
} }), e3.addAction({ id: "saveScript", label: "Save Script", keybindings: [t3.KeyMod.CtrlCmd | t3.KeyCode.KeyS], run: (e4) => {
|
|
3316
|
+
F2();
|
|
3317
|
+
} }), e3.onMouseDown(async (e4) => {
|
|
3318
|
+
if (e4.target.type === t3.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
|
|
3319
|
+
const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 = qn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
|
|
3320
|
+
if (s3) {
|
|
3321
|
+
const t4 = e4.event.browserEvent.button;
|
|
3322
|
+
0 === t4 ? "macro" === s3.type || "autoRun" === s3.type ? E2({ functionName: s3.name }) : "formula" === s3.type && C2.quickInsertFunction?.(s3.name) : 2 === t4 && (console.log("Context menu for function:", s3.name), e4.event.browserEvent.preventDefault());
|
|
3294
3323
|
}
|
|
3295
3324
|
}
|
|
3296
3325
|
}), e3.onDidChangeModelContent(() => {
|
|
3297
|
-
z2(n3, t3, e3);
|
|
3326
|
+
z2({ dirty: true }), B2(n3, t3, e3);
|
|
3298
3327
|
}), t3.editor.onDidChangeMarkers((e4) => {
|
|
3299
3328
|
e4.some((e5) => e5.toString() === n3.uri.toString());
|
|
3300
3329
|
});
|
|
3301
3330
|
const n3 = e3.getModel();
|
|
3302
|
-
!function(e4, t4) {
|
|
3331
|
+
!(function(e4, t4) {
|
|
3303
3332
|
t4.languages.registerInlayHintsProvider("typescript", { provideInlayHints(e5, o4, n4) {
|
|
3304
3333
|
const l3 = [];
|
|
3305
3334
|
for (let o5 = 1; o5 < e5.getLineCount() + 1; o5++) {
|
|
@@ -3309,30 +3338,35 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3309
3338
|
return { hints: l3, dispose: () => {
|
|
3310
3339
|
} };
|
|
3311
3340
|
} });
|
|
3312
|
-
}(0, t3), n3.onDidChangeContent((t4) => {
|
|
3313
|
-
const o4 =
|
|
3314
|
-
|
|
3341
|
+
})(0, t3), n3.onDidChangeContent((t4) => {
|
|
3342
|
+
const o4 = C2?.getScripts().getModules().getByName("scripts"), n4 = o4?.getSource(), l3 = e3.getValue(), r3 = (n4?.length ?? 0) !== l3.length || n4 !== l3;
|
|
3343
|
+
z2({ dirty: r3 });
|
|
3315
3344
|
}), e3.onDidChangeCursorPosition((e4) => {
|
|
3316
|
-
|
|
3345
|
+
O2();
|
|
3317
3346
|
});
|
|
3318
|
-
}, [
|
|
3319
|
-
if (!
|
|
3347
|
+
}, [C2]), j2 = te(() => N2 ? null : s2 || G("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [N2, s2]), X2 = te(() => {
|
|
3348
|
+
if (!N2) {
|
|
3320
3349
|
if (!hn) {
|
|
3321
3350
|
hn = {};
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3351
|
+
const e4 = pn.length;
|
|
3352
|
+
for (let t3 = 0; t3 < e4; t3++) {
|
|
3353
|
+
const e5 = pn[t3];
|
|
3354
|
+
hn[e5] = globalThis[e5];
|
|
3325
3355
|
}
|
|
3326
3356
|
}
|
|
3327
|
-
if (mn)
|
|
3328
|
-
const
|
|
3329
|
-
|
|
3357
|
+
if (mn) {
|
|
3358
|
+
const e4 = pn.length;
|
|
3359
|
+
for (let t3 = 0; t3 < e4; t3++) {
|
|
3360
|
+
const e5 = pn[t3];
|
|
3361
|
+
globalThis[e5] = mn[e5];
|
|
3362
|
+
}
|
|
3330
3363
|
}
|
|
3331
3364
|
}
|
|
3332
|
-
const e3 =
|
|
3365
|
+
const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
|
|
3333
3366
|
return Z("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [G(de, { children: G(gn, { theme: a2 ? "extended-dark" : "extended", options: { ...un, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
|
|
3334
3367
|
let t3 = false;
|
|
3335
|
-
|
|
3368
|
+
const o3 = e4 ? e4.length : 0;
|
|
3369
|
+
for (let n3 = 0; !t3 && n3 < o3; n3++) 8 === e4[n3].severity && (t3 = true);
|
|
3336
3370
|
}, beforeMount: (e4) => {
|
|
3337
3371
|
e4.languages.typescript.typescriptDefaults.setDiagnosticsOptions({ noSemanticValidation: false, noSyntaxValidation: false, diagnosticCodesToIgnore: [2307] }), e4.languages.json.jsonDefaults.setDiagnosticsOptions({ validate: true }), e4.editor.defineTheme("extended", { base: "vs", inherit: true, rules: [], colors: {} }), e4.editor.defineTheme("extended-dark", { base: "vs-dark", inherit: true, rules: [], colors: {} });
|
|
3338
3372
|
(async () => {
|
|
@@ -3347,86 +3381,84 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3347
3381
|
} catch (e5) {
|
|
3348
3382
|
console.warn("cant load types", e5);
|
|
3349
3383
|
}
|
|
3350
|
-
if (
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
console.warn(e5);
|
|
3367
|
-
}
|
|
3384
|
+
if (e4.languages.registerLinkProvider("*", { provideLinks: (t4, o4) => {
|
|
3385
|
+
const n3 = [], l3 = { links: n3 }, r3 = t4.getLinesContent(), i3 = r3.length;
|
|
3386
|
+
for (let o5 = 1; o5 <= i3; o5++) {
|
|
3387
|
+
const l4 = r3[o5 - 1], i4 = e4.editor.tokenize(l4, "typescript"), a3 = i4[0].length;
|
|
3388
|
+
for (let r4 = 0; r4 < a3; r4++) {
|
|
3389
|
+
const a4 = i4[0]?.[r4];
|
|
3390
|
+
if (a4 && a4.type.startsWith("string")) {
|
|
3391
|
+
let s3 = a4.offset, d3 = i4[0]?.[r4 + 1]?.offset ?? l4.length, c3 = new e4.Range(o5, s3 + 1, o5, d3 + 1), g3 = t4.getValueInRange(c3);
|
|
3392
|
+
const u3 = g3[0];
|
|
3393
|
+
"`" !== u3 && "'" !== u3 && '"' !== u3 || (s3++, g3 = g3.substring(1));
|
|
3394
|
+
const h3 = g3[g3.length - 1];
|
|
3395
|
+
"`" !== h3 && "'" !== h3 && '"' !== h3 || (s3++, g3 = g3.substring(0, g3.length - 1));
|
|
3396
|
+
try {
|
|
3397
|
+
C2.getRanges(g3) && n3.push({ range: { endColumn: d3, endLineNumber: o5, startColumn: s3, startLineNumber: o5 }, tooltip: `Goto range '${g3}'`, url: `/range/${g3}` });
|
|
3398
|
+
} catch (e5) {
|
|
3399
|
+
console.warn(e5);
|
|
3368
3400
|
}
|
|
3369
3401
|
}
|
|
3370
3402
|
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
return true;
|
|
3403
|
+
}
|
|
3404
|
+
return l3;
|
|
3405
|
+
} }), e4.editor.registerLinkOpener({ open(e5) {
|
|
3406
|
+
if (e5?.path?.startsWith("/range/")) {
|
|
3407
|
+
try {
|
|
3408
|
+
C2.getRanges(e5.path.substring(7))?.select();
|
|
3409
|
+
} catch (e6) {
|
|
3410
|
+
console.warn("invalid range", e6);
|
|
3380
3411
|
}
|
|
3381
|
-
return
|
|
3382
|
-
}
|
|
3412
|
+
return true;
|
|
3413
|
+
}
|
|
3414
|
+
return false;
|
|
3415
|
+
} }), !o3) {
|
|
3383
3416
|
const t4 = e4.languages.typescript.typescriptDefaults.getCompilerOptions();
|
|
3384
3417
|
e4.languages.typescript.typescriptDefaults.setCompilerOptions({ ...t4, target: e4.languages.typescript.ScriptTarget.ES2020, lib: ["webworker", "es2020", "esnext.asynciterable"], downlevelIteration: true, moduleResolution: e4.languages.typescript.ModuleResolutionKind.NodeJs, allowSyntheticDefaultImports: true, baseUrl: "inmemory://model/", allowNonTsExtensions: true });
|
|
3385
3418
|
}
|
|
3386
|
-
if (
|
|
3419
|
+
if (I2.current && (await fn(u2.current.editor, u2.current.monaco, I2.current), I2.current = null), m2.current && requestAnimationFrame(async () => {
|
|
3387
3420
|
m2.current && e4.editor.focus();
|
|
3388
3421
|
}), !mn) {
|
|
3389
3422
|
mn = {};
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3423
|
+
const e5 = pn.length;
|
|
3424
|
+
for (let t4 = 0; t4 < e5; t4++) {
|
|
3425
|
+
const e6 = pn[t4];
|
|
3426
|
+
mn[e6] = globalThis[e6];
|
|
3393
3427
|
}
|
|
3394
3428
|
}
|
|
3395
3429
|
(() => {
|
|
3396
|
-
const e5 = (e6,
|
|
3430
|
+
const e5 = (e6, t5) => {
|
|
3397
3431
|
try {
|
|
3398
|
-
if (void 0 ===
|
|
3432
|
+
if (void 0 === t5) try {
|
|
3399
3433
|
delete globalThis[e6];
|
|
3400
|
-
} catch (
|
|
3434
|
+
} catch (t6) {
|
|
3401
3435
|
try {
|
|
3402
3436
|
globalThis[e6] = void 0;
|
|
3403
3437
|
} catch (e7) {
|
|
3404
3438
|
}
|
|
3405
3439
|
}
|
|
3406
|
-
else globalThis[e6] =
|
|
3440
|
+
else globalThis[e6] = t5;
|
|
3407
3441
|
} catch (e7) {
|
|
3408
3442
|
}
|
|
3409
|
-
};
|
|
3410
|
-
for (let
|
|
3411
|
-
const
|
|
3412
|
-
e5(
|
|
3443
|
+
}, t4 = pn.length;
|
|
3444
|
+
for (let o4 = 0; o4 < t4; o4++) {
|
|
3445
|
+
const t5 = pn[o4];
|
|
3446
|
+
e5(t5, hn[t5]);
|
|
3413
3447
|
}
|
|
3414
3448
|
hn = void 0;
|
|
3415
|
-
})(),
|
|
3449
|
+
})(), V2(true);
|
|
3416
3450
|
})();
|
|
3417
|
-
}, onMount:
|
|
3418
|
-
}, [
|
|
3419
|
-
|
|
3420
|
-
}, close: () =>
|
|
3421
|
-
h2?.();
|
|
3422
|
-
}, getEditor: () => v2?.getEditor() }), [v2]);
|
|
3451
|
+
}, onMount: _2 }) }), j2] });
|
|
3452
|
+
}, [C2, w2, r2, j2, a2]), Y2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
|
|
3453
|
+
W2(e3);
|
|
3454
|
+
}, close: () => $2(), getEditor: () => C2?.getEditor() }), [C2]);
|
|
3423
3455
|
return re(() => (d2 && requestAnimationFrame(() => {
|
|
3424
|
-
|
|
3456
|
+
Y2.current?.focus();
|
|
3425
3457
|
}), () => {
|
|
3426
3458
|
u2.current?.editor && requestAnimationFrame(() => {
|
|
3427
|
-
|
|
3459
|
+
Y2.current?.contains(document.activeElement) && Y2.current?.focus();
|
|
3428
3460
|
});
|
|
3429
|
-
}), []), G("div", { className: Me("script-editor", cn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref:
|
|
3461
|
+
}), []), G("div", { className: Me("script-editor", cn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: Y2, ...g2, children: X2 });
|
|
3430
3462
|
}));
|
|
3431
3463
|
export {
|
|
3432
3464
|
Xo as ChartAreaIcon,
|
|
@@ -3437,9 +3469,9 @@ export {
|
|
|
3437
3469
|
Ko as ChartBarStackedPercentIcon,
|
|
3438
3470
|
rn as ChartBubble3DIcon,
|
|
3439
3471
|
ln as ChartBubbleIcon,
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3472
|
+
Vo as ChartColumnIcon,
|
|
3473
|
+
Lo as ChartColumnStackedIcon,
|
|
3474
|
+
Ho as ChartColumnStackedPercentIcon,
|
|
3443
3475
|
qo as ChartEditor,
|
|
3444
3476
|
Bo as ChartLineIcon,
|
|
3445
3477
|
$o as ChartLineMarkersIcon,
|
|
@@ -3465,7 +3497,7 @@ export {
|
|
|
3465
3497
|
Ye as FontUtils,
|
|
3466
3498
|
xo as Item,
|
|
3467
3499
|
LicenseManager,
|
|
3468
|
-
|
|
3500
|
+
No as LogoNoPaddingIcon,
|
|
3469
3501
|
vt as LogoTextNoPaddingIcon,
|
|
3470
3502
|
Xt as MovableArea,
|
|
3471
3503
|
wo as PictureEditor,
|
|
@@ -3486,5 +3518,5 @@ export {
|
|
|
3486
3518
|
Qt as useMovableCommands,
|
|
3487
3519
|
bt as useRangeListener,
|
|
3488
3520
|
xt as useSheetCommands,
|
|
3489
|
-
|
|
3521
|
+
Vt as useSheetCopyPaste
|
|
3490
3522
|
};
|