@univerjs/sheets-formula-ui 0.7.0-beta.0 → 0.7.0-nightly.202504301607

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/lib/es/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var Lr = Object.defineProperty;
2
- var Fr = (t, e, n) => e in t ? Lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var j = (t, e, n) => Fr(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { CommandType as Ie, ICommandService as ue, createIdentifier as Pr, IContextService as Gt, IUniverInstanceService as ee, Rectangle as $n, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as zt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Un, DEFAULT_EMPTY_DOCUMENT_VALUE as Vn, isRealNum as $r, CellValueType as mn, getCellValueType as Ur, LocaleService as et, Tools as Qe, Inject as B, Injector as ut, ThemeService as dt, toDisposable as Wn, DisposableCollection as Ve, RANGE_TYPE as me, UniverInstanceType as J, ColorKit as Zt, getBodySlice as vn, Direction as ce, EDITOR_ACTIVATED as St, createInternalEditorID as Vr, generateRandomId as Wr, BuildTextUtils as Hr, RichTextBuilder as Br, Disposable as tt, ObjectMatrix as Ae, Range as jr, isFormulaString as Ee, isFormulaId as We, FOCUSING_DOC as qr, FOCUSING_UNIVER_EDITOR as Kr, isICellData as Yr, ILogService as Gr, RxDisposable as zr, InterceptorEffectEnum as Zr, DependentOn as Xr, IConfigService as Qr, Plugin as Jr, merge as eo, registerDependencies as to, touchDependencies as no } from "@univerjs/core";
5
- import { SheetPasteCommand as ro, PREDEFINED_HOOK_NAME as Ze, IEditorBridgeService as Xt, SetCellEditVisibleOperation as Hn, SheetSkeletonManagerService as wt, BaseSelectionRenderService as oo, getCoordByOffset as Sn, checkInHeaderRanges as pn, getAllSelection as so, genNormalSelectionStyle as Bn, getSheetObject as io, attachSelectionWithCoord as Ht, SelectionControl as jn, MoveSelectionCommand as Cn, JumpOver as _n, ExpandSelectionCommand as Rn, EMBEDDING_FORMULA_EDITOR as co, IMarkSelectionService as ao, HoverManagerService as lo, CellAlertManagerService as uo, CellAlertType as ho, IAutoFillService as fo, APPLY_TYPE as go, DATA_TYPE as bn, ISheetClipboardService as mo, COPY_TYPE as qn, SELECTION_SHAPE_DEPTH as vo, useActiveWorkbook as So, getCurrentRangeDisable$ as Kn, PASTE_SPECIAL_MENU_ID as po, whenFormulaEditorActivated as ht, SheetsUIPart as Co, RANGE_SELECTOR_COMPONENT_KEY as _o, EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY as Ro } from "@univerjs/sheets-ui";
6
- import { sequenceNodeType as z, serializeRange as ve, LexerTreeBuilder as pe, deserializeRangeWithSheetWithCache as bo, matchRefDrawToken as Eo, isFormulaLexerToken as Io, matchToken as Je, deserializeRangeWithSheet as nt, serializeRangeToRefString as yo, serializeRangeWithSheet as at, generateStringWithSequence as xo, operatorToken as Yn, FormulaDataModel as ft, ERROR_TYPE_SET as Oo, ErrorType as ie, SetFormulaCalculationResultMutation as To, SetArrayFormulaDataMutation as Mo, SetFormulaCalculationStopMutation as No, FunctionType as wo, UniverFormulaEnginePlugin as Ao } from "@univerjs/engine-formula";
7
- import { Subject as ot, BehaviorSubject as Gn, throttleTime as ko, debounceTime as Qt, filter as Bt, map as zn, distinctUntilChanged as Do, merge as Lo, combineLatestWith as Fo, switchMap as Po, of as En, Observable as $o } from "rxjs";
8
- import { IEditorService as He, DocSelectionRenderService as Zn, ReplaceTextRunsCommand as In, MoveSelectionOperation as Uo, MoveCursorOperation as Vo, useKeyboardEvent as Wo, useResize as Ho, DocBackScrollRenderController as Bo, RichTextEditor as jo } from "@univerjs/docs-ui";
1
+ var Fr = Object.defineProperty;
2
+ var Pr = (t, e, n) => e in t ? Fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var j = (t, e, n) => Pr(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { CommandType as Ie, ICommandService as ue, createIdentifier as $r, IContextService as Gt, IUniverInstanceService as ee, Rectangle as $n, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as zt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Un, DEFAULT_EMPTY_DOCUMENT_VALUE as Vn, isRealNum as Ur, CellValueType as mn, getCellValueType as Vr, LocaleService as et, Tools as Qe, Inject as B, Injector as ut, ThemeService as dt, toDisposable as Wn, DisposableCollection as Ve, RANGE_TYPE as me, UniverInstanceType as J, ColorKit as Zt, getBodySlice as vn, Direction as ce, EDITOR_ACTIVATED as St, createInternalEditorID as Wr, generateRandomId as Hr, BuildTextUtils as Br, RichTextBuilder as jr, Disposable as tt, ObjectMatrix as Ae, Range as qr, isFormulaString as Ee, isFormulaId as We, FOCUSING_DOC as Kr, FOCUSING_UNIVER_EDITOR as Yr, isICellData as Gr, ILogService as zr, RxDisposable as Zr, InterceptorEffectEnum as Xr, DependentOn as Qr, IConfigService as Jr, Plugin as eo, merge as to, registerDependencies as no, touchDependencies as ro } from "@univerjs/core";
5
+ import { SheetPasteCommand as oo, PREDEFINED_HOOK_NAME as Ze, IEditorBridgeService as Xt, SetCellEditVisibleOperation as Hn, SheetSkeletonManagerService as wt, BaseSelectionRenderService as so, getCoordByOffset as Sn, checkInHeaderRanges as pn, getAllSelection as io, genNormalSelectionStyle as Bn, getSheetObject as co, attachSelectionWithCoord as Ht, SelectionControl as jn, MoveSelectionCommand as Cn, JumpOver as _n, ExpandSelectionCommand as Rn, EMBEDDING_FORMULA_EDITOR as ao, IMarkSelectionService as lo, HoverManagerService as uo, CellAlertManagerService as ho, CellAlertType as fo, IAutoFillService as go, APPLY_TYPE as mo, DATA_TYPE as bn, ISheetClipboardService as vo, COPY_TYPE as qn, SELECTION_SHAPE_DEPTH as So, useActiveWorkbook as po, getCurrentRangeDisable$ as Kn, PASTE_SPECIAL_MENU_ID as Co, whenFormulaEditorActivated as ht, SheetsUIPart as _o, RANGE_SELECTOR_COMPONENT_KEY as Ro, EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY as bo } from "@univerjs/sheets-ui";
6
+ import { sequenceNodeType as z, serializeRange as ve, LexerTreeBuilder as pe, deserializeRangeWithSheetWithCache as Eo, matchRefDrawToken as Io, isFormulaLexerToken as yo, matchToken as Je, deserializeRangeWithSheet as nt, serializeRangeToRefString as xo, serializeRangeWithSheet as at, generateStringWithSequence as Oo, operatorToken as Yn, FormulaDataModel as ft, ERROR_TYPE_SET as To, ErrorType as ie, SetFormulaCalculationResultMutation as Mo, SetArrayFormulaDataMutation as No, SetFormulaCalculationStopMutation as wo, FunctionType as Ao, UniverFormulaEnginePlugin as ko } from "@univerjs/engine-formula";
7
+ import { Subject as ot, BehaviorSubject as Gn, throttleTime as Do, debounceTime as Qt, filter as Bt, map as zn, distinctUntilChanged as Lo, merge as Fo, combineLatestWith as Po, switchMap as $o, of as En, Observable as Uo } from "rxjs";
8
+ import { IEditorService as He, DocSelectionRenderService as Zn, ReplaceTextRunsCommand as In, MoveSelectionOperation as Vo, MoveCursorOperation as Wo, useKeyboardEvent as Ho, useResize as Bo, DocBackScrollRenderController as jo, RichTextEditor as qo } from "@univerjs/docs-ui";
9
9
  import { DeviceInputEventType as ye, ScrollTimerType as $t, SHEET_VIEWPORT_KEY as yn, Vector2 as xn, IRenderManagerService as xe } from "@univerjs/engine-render";
10
- import { SheetsSelectionsService as Jt, getSheetCommandTarget as Xn, getCellAtRowCol as qo, SetSelectionsOperation as en, IRefSelectionsService as At, SelectionMoveType as Ut, convertSelectionDataToRange as Ko, setEndForRange as Yo, REF_SELECTIONS_ENABLED as On, SetWorksheetActiveOperation as Tn, SheetInterceptorService as tn, ReorderRangeCommand as Go, SetRangeValuesMutation as Rt, SetRangeValuesUndoMutationFactory as zo, BEFORE_CELL_EDIT as Zo, SetWorksheetRowAutoHeightMutation as Xo, INTERCEPTOR_POINT as Qo, WorksheetSetCellValuePermission as Qn, WorksheetEditPermission as Jn, RangeProtectionPermissionEditPoint as er, WorkbookEditablePermission as tr } from "@univerjs/sheets";
11
- import { InsertFunctionCommand as Jo, IDescriptionService as kt, TriggerCalculationController as es, UniverSheetsFormulaPlugin as ts } from "@univerjs/sheets-formula";
12
- import { ISidebarService as nn, useDependency as x, useEvent as Q, useObservable as Se, RectPopup as jt, IShortcutService as Dt, KeyCode as F, MetaKeys as W, IContextMenuService as ns, useUpdateEffect as rs, IZenZoneService as os, ProgressBar as ss, MenuItemType as rn, getMenuHiddenObservable as is, IClipboardInterfaceService as Mn, RibbonStartGroup as cs, IMenuManagerService as as, IUIPartsService as nr, ComponentManager as rr, connectInjector as or, BuiltInUIPart as ls } from "@univerjs/ui";
13
- import { jsx as T, jsxs as V, Fragment as us } from "react/jsx-runtime";
14
- import { clsx as ds, Tooltip as hs, Dialog as fs, Input as sr, Button as Xe, Select as gs } from "@univerjs/design";
15
- import { forwardRef as Oe, useRef as Y, createElement as Be, useEffect as P, useMemo as oe, useState as U, useCallback as bt, useLayoutEffect as Et, useImperativeHandle as ms } from "react";
16
- import { DocSelectionManagerService as ir } from "@univerjs/docs";
17
- import { debounceTime as vs } from "rxjs/operators";
10
+ import { SheetsSelectionsService as Jt, getSheetCommandTarget as Xn, getCellAtRowCol as Ko, SetSelectionsOperation as en, IRefSelectionsService as At, SelectionMoveType as Ut, convertSelectionDataToRange as Yo, setEndForRange as Go, REF_SELECTIONS_ENABLED as On, SetWorksheetActiveOperation as Tn, SheetInterceptorService as tn, ReorderRangeCommand as zo, SetRangeValuesMutation as Rt, SetRangeValuesUndoMutationFactory as Zo, BEFORE_CELL_EDIT as Xo, SetWorksheetRowAutoHeightMutation as Qo, INTERCEPTOR_POINT as Jo, WorksheetSetCellValuePermission as Qn, WorksheetEditPermission as Jn, RangeProtectionPermissionEditPoint as er, WorkbookEditablePermission as tr } from "@univerjs/sheets";
11
+ import { InsertFunctionCommand as es, IDescriptionService as kt, TriggerCalculationController as ts, UniverSheetsFormulaPlugin as ns } from "@univerjs/sheets-formula";
12
+ import { ISidebarService as nn, useDependency as x, useEvent as Q, useObservable as Se, RectPopup as jt, IShortcutService as Dt, KeyCode as F, MetaKeys as W, IContextMenuService as rs, useUpdateEffect as os, IZenZoneService as ss, ProgressBar as is, MenuItemType as rn, getMenuHiddenObservable as cs, IClipboardInterfaceService as Mn, RibbonStartGroup as as, IMenuManagerService as ls, IUIPartsService as nr, ComponentManager as rr, connectInjector as or, BuiltInUIPart as us } from "@univerjs/ui";
13
+ import { jsx as T, jsxs as V, Fragment as ds } from "react/jsx-runtime";
14
+ import { clsx as sr, Tooltip as hs, Dialog as fs, Input as ir, Button as Xe, scrollbarClassName as gs, Select as ms } from "@univerjs/design";
15
+ import { forwardRef as Oe, useRef as Y, createElement as Be, useEffect as P, useMemo as oe, useState as U, useCallback as bt, useLayoutEffect as Et, useImperativeHandle as vs } from "react";
16
+ import { DocSelectionManagerService as cr } from "@univerjs/docs";
17
+ import { debounceTime as Ss } from "rxjs/operators";
18
18
  const on = {
19
19
  id: "sheet.command.paste-formula",
20
20
  type: Ie.COMMAND,
21
- handler: async (t) => t.get(ue).executeCommand(ro.id, {
21
+ handler: async (t) => t.get(ue).executeCommand(oo.id, {
22
22
  value: Ze.SPECIAL_PASTE_FORMULA
23
23
  })
24
24
  }, rt = {
@@ -26,12 +26,12 @@ const on = {
26
26
  type: Ie.OPERATION,
27
27
  handler: (t, e) => !0
28
28
  };
29
- var Ss = Object.getOwnPropertyDescriptor, ps = (t, e, n, o) => {
30
- for (var r = o > 1 ? void 0 : o ? Ss(e, n) : e, s = t.length - 1, c; s >= 0; s--)
29
+ var ps = Object.getOwnPropertyDescriptor, Cs = (t, e, n, o) => {
30
+ for (var r = o > 1 ? void 0 : o ? ps(e, n) : e, s = t.length - 1, c; s >= 0; s--)
31
31
  (c = t[s]) && (r = c(r) || r);
32
32
  return r;
33
- }, Cs = (t, e) => (n, o) => e(n, o, t);
34
- const _s = "FORMULA_PROMPT_ACTIVATED", sn = Pr("formula-ui.prompt-service");
33
+ }, _s = (t, e) => (n, o) => e(n, o, t);
34
+ const Rs = "FORMULA_PROMPT_ACTIVATED", sn = $r("formula-ui.prompt-service");
35
35
  let qt = class {
36
36
  constructor(t) {
37
37
  j(this, "_search$", new ot());
@@ -55,7 +55,7 @@ let qt = class {
55
55
  this._search$.complete(), this._help$.complete(), this._navigate$.complete(), this._accept$.complete(), this._acceptFormulaName$.complete(), this._sequenceNodes = [];
56
56
  }
57
57
  search(t) {
58
- this._contextService.setContextValue(_s, t.visible), this._searching = t.visible, this._search$.next(t);
58
+ this._contextService.setContextValue(Rs, t.visible), this._searching = t.visible, this._search$.next(t);
59
59
  }
60
60
  isSearching() {
61
61
  return this._searching;
@@ -187,10 +187,10 @@ let qt = class {
187
187
  return this._isLockedOnSelectionInsertRefString;
188
188
  }
189
189
  };
190
- qt = ps([
191
- Cs(0, Gt)
190
+ qt = Cs([
191
+ _s(0, Gt)
192
192
  ], qt);
193
- const Rs = {
193
+ const bs = {
194
194
  id: "formula-ui.operation.help-function",
195
195
  type: Ie.OPERATION,
196
196
  handler: async (t, e) => (t.get(sn).help(e), !0)
@@ -209,7 +209,7 @@ const Rs = {
209
209
  t.get(Xt);
210
210
  const u = [], d = [];
211
211
  let a = null, S = 0, m = 0, v = "";
212
- if (r.length === 1 && (Is(r[0].range) || ys(r[0].range) && wn(f, r[0].range))) {
212
+ if (r.length === 1 && (ys(r[0].range) || xs(r[0].range) && wn(f, r[0].range))) {
213
213
  const { range: R, primary: C } = r[0], y = (p = C == null ? void 0 : C.actualRow) != null ? p : R.startRow, M = (_ = C == null ? void 0 : C.actualColumn) != null ? _ : R.startColumn;
214
214
  a = R, S = y, m = M;
215
215
  const k = Nn(f, y, M);
@@ -234,7 +234,7 @@ const Rs = {
234
234
  } else {
235
235
  const { startRow: D, startColumn: O, endRow: w, endColumn: N } = C;
236
236
  if (D === w) {
237
- const E = xs(f, D, N, c.getColumnCount() - 1), b = E === N ? N - 1 : N, I = ve({
237
+ const E = Os(f, D, N, c.getColumnCount() - 1), b = E === N ? N - 1 : N, I = ve({
238
238
  startRow: D,
239
239
  endRow: w,
240
240
  startColumn: O,
@@ -251,7 +251,7 @@ const Rs = {
251
251
  } else {
252
252
  let E = -1;
253
253
  for (let I = O; I <= N; I++) {
254
- const A = Os(f, I, w, c.getRowCount() - 1);
254
+ const A = Ts(f, I, w, c.getRowCount() - 1);
255
255
  E = Math.max(E, A);
256
256
  }
257
257
  const b = E === w ? w - 1 : w;
@@ -276,7 +276,7 @@ const Rs = {
276
276
  return !1;
277
277
  });
278
278
  if (a) {
279
- const R = qo(S, m, c), C = {
279
+ const R = Ko(S, m, c), C = {
280
280
  range: $n.clone(a),
281
281
  primary: {
282
282
  startRow: R.startRow,
@@ -303,14 +303,14 @@ const Rs = {
303
303
  const D = `=${h}(${v}`;
304
304
  M == null || M.replaceText(D), k == null || k.replaceText(D, !1);
305
305
  }
306
- return u.length === 0 && d.length === 0 ? !1 : g.executeCommand(Jo.id, {
306
+ return u.length === 0 && d.length === 0 ? !1 : g.executeCommand(es.id, {
307
307
  list: u,
308
308
  listOfRangeHasNumber: d
309
309
  });
310
310
  }
311
311
  };
312
312
  function Nn(t, e, n) {
313
- const o = bs(t, e, n);
313
+ const o = Es(t, e, n);
314
314
  if (o !== e)
315
315
  return {
316
316
  startRow: o,
@@ -318,7 +318,7 @@ function Nn(t, e, n) {
318
318
  startColumn: n,
319
319
  endColumn: n
320
320
  };
321
- const r = Es(t, e, n);
321
+ const r = Is(t, e, n);
322
322
  return r !== n ? {
323
323
  startRow: e,
324
324
  endRow: e,
@@ -326,7 +326,7 @@ function Nn(t, e, n) {
326
326
  endColumn: n - 1
327
327
  } : null;
328
328
  }
329
- function bs(t, e, n) {
329
+ function Es(t, e, n) {
330
330
  let o = !1;
331
331
  if (e === 0) return e;
332
332
  for (let r = e - 1; r >= 0; r--) {
@@ -343,7 +343,7 @@ function bs(t, e, n) {
343
343
  }
344
344
  return e;
345
345
  }
346
- function Es(t, e, n) {
346
+ function Is(t, e, n) {
347
347
  let o = !1;
348
348
  if (n === 0) return n;
349
349
  for (let r = n - 1; r >= 0; r--) {
@@ -366,14 +366,14 @@ function lt(t) {
366
366
  if (e == null)
367
367
  return !1;
368
368
  const n = e.dataStream, r = n.substring(n.length - 2, n.length) === Vn ? n.substring(0, n.length - 2) : n;
369
- return $r(r);
369
+ return Ur(r);
370
370
  }
371
- return t && (t.t === mn.NUMBER || Ur(t) === mn.NUMBER);
371
+ return t && (t.t === mn.NUMBER || Vr(t) === mn.NUMBER);
372
372
  }
373
- function Is(t) {
373
+ function ys(t) {
374
374
  return t.startRow === t.endRow && t.startColumn === t.endColumn;
375
375
  }
376
- function ys(t) {
376
+ function xs(t) {
377
377
  return t.startRow !== t.endRow && t.startColumn !== t.endColumn;
378
378
  }
379
379
  function wn(t, e) {
@@ -383,30 +383,30 @@ function wn(t, e) {
383
383
  return !1;
384
384
  return !0;
385
385
  }
386
- function xs(t, e, n, o) {
386
+ function Os(t, e, n, o) {
387
387
  for (let r = n; r <= o; r++)
388
388
  if (!t.getValue(e, r))
389
389
  return r;
390
390
  return o;
391
391
  }
392
- function Os(t, e, n, o) {
392
+ function Ts(t, e, n, o) {
393
393
  for (let r = n; r <= o; r++)
394
394
  if (!t.getValue(r, e))
395
395
  return r;
396
396
  return o;
397
397
  }
398
- const cr = "SHEET_FORMULA_UI_PLUGIN", ar = `${cr}_MORE_FUNCTIONS_COMPONENT`, an = {
398
+ const ar = "SHEET_FORMULA_UI_PLUGIN", lr = `${ar}_MORE_FUNCTIONS_COMPONENT`, an = {
399
399
  id: "formula-ui.operation.more-functions",
400
400
  type: Ie.OPERATION,
401
401
  handler: async (t) => (t.get(nn).open({
402
402
  header: { title: "formula.insert.tooltip" },
403
- children: { label: ar }
403
+ children: { label: lr }
404
404
  }), !0)
405
- }, lr = {
405
+ }, ur = {
406
406
  id: "formula-ui.operation.change-ref-to-absolute",
407
407
  type: Ie.OPERATION,
408
408
  handler: async (t) => !0
409
- }, Ts = {
409
+ }, Ms = {
410
410
  id: "formula-ui.operation.search-function",
411
411
  type: Ie.OPERATION,
412
412
  handler: async (t, e) => (t.get(sn).search(e), !0)
@@ -424,7 +424,7 @@ const cr = "SHEET_FORMULA_UI_PLUGIN", ar = `${cr}_MORE_FUNCTIONS_COMPONENT`, an
424
424
  }
425
425
  return (n ? r.currentIndex === e : e > i && e <= r.currentIndex) && (o = c, r.isFinish = !0), r;
426
426
  }, { currentIndex: 0, isFinish: !1 }), o;
427
- }, ur = (t, e) => {
427
+ }, dr = (t, e) => {
428
428
  const n = t[e];
429
429
  let o = -1;
430
430
  if (!n || typeof n == "string" || n.nodeType !== z.REFERENCE) return -1;
@@ -442,7 +442,7 @@ var le = function() {
442
442
  }
443
443
  return t;
444
444
  }, le.apply(this, arguments);
445
- }, Ms = function(t, e) {
445
+ }, Ns = function(t, e) {
446
446
  var n = {};
447
447
  for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
448
448
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -450,15 +450,15 @@ var le = function() {
450
450
  e.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[r]) && (n[o[r]] = t[o[r]]);
451
451
  return n;
452
452
  }, je = Oe(function(t, e) {
453
- var n = t.icon, o = t.id, r = t.className, s = t.extend, c = Ms(t, ["icon", "id", "className", "extend"]), i = "univerjs-icon univerjs-icon-".concat(o, " ").concat(r || "").trim(), l = Y("_".concat(As()));
454
- return dr(n, "".concat(o), { defIds: n.defIds, idSuffix: l.current }, le({ ref: e, className: i }, c), s);
453
+ var n = t.icon, o = t.id, r = t.className, s = t.extend, c = Ns(t, ["icon", "id", "className", "extend"]), i = "univerjs-icon univerjs-icon-".concat(o, " ").concat(r || "").trim(), l = Y("_".concat(ks()));
454
+ return hr(n, "".concat(o), { defIds: n.defIds, idSuffix: l.current }, le({ ref: e, className: i }, c), s);
455
455
  });
456
- function dr(t, e, n, o, r) {
457
- return Be(t.tag, le(le({ key: e }, Ns(t, n, r)), o), (ws(t, n).children || []).map(function(s, c) {
458
- return dr(s, "".concat(e, "-").concat(t.tag, "-").concat(c), n, void 0, r);
456
+ function hr(t, e, n, o, r) {
457
+ return Be(t.tag, le(le({ key: e }, ws(t, n, r)), o), (As(t, n).children || []).map(function(s, c) {
458
+ return hr(s, "".concat(e, "-").concat(t.tag, "-").concat(c), n, void 0, r);
459
459
  }));
460
460
  }
461
- function Ns(t, e, n) {
461
+ function ws(t, e, n) {
462
462
  var o = le({}, t.attrs);
463
463
  n != null && n.colorChannel1 && o.fill === "colorChannel1" && (o.fill = n.colorChannel1), t.tag === "mask" && o.id && (o.id = o.id + e.idSuffix), Object.entries(o).forEach(function(s) {
464
464
  var c = s[0], i = s[1];
@@ -470,71 +470,71 @@ function Ns(t, e, n) {
470
470
  typeof i == "string" && (o[c] = i.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
471
471
  })), o;
472
472
  }
473
- function ws(t, e) {
473
+ function As(t, e) {
474
474
  var n, o = e.defIds;
475
475
  return !o || o.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? le(le({}, t), { children: t.children.map(function(r) {
476
476
  return typeof r.attrs.id == "string" && o && o.indexOf(r.attrs.id) > -1 ? le(le({}, r), { attrs: le(le({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
477
477
  }) }) : t;
478
478
  }
479
- function As() {
479
+ function ks() {
480
480
  return Math.random().toString(36).substring(2, 8);
481
481
  }
482
482
  je.displayName = "UniverIcon";
483
- var ks = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, hr = Oe(function(t, e) {
483
+ var Ds = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, fr = Oe(function(t, e) {
484
484
  return Be(je, Object.assign({}, t, {
485
485
  id: "check-mark-single",
486
486
  ref: e,
487
- icon: ks
487
+ icon: Ds
488
488
  }));
489
489
  });
490
- hr.displayName = "CheckMarkSingle";
491
- var Ds = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, fr = Oe(function(t, e) {
490
+ fr.displayName = "CheckMarkSingle";
491
+ var Ls = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, gr = Oe(function(t, e) {
492
492
  return Be(je, Object.assign({}, t, {
493
493
  id: "close-single",
494
494
  ref: e,
495
- icon: Ds
495
+ icon: Ls
496
496
  }));
497
497
  });
498
- fr.displayName = "CloseSingle";
499
- var Ls = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gr = Oe(function(t, e) {
498
+ gr.displayName = "CloseSingle";
499
+ var Fs = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mr = Oe(function(t, e) {
500
500
  return Be(je, Object.assign({}, t, {
501
501
  id: "delete-single",
502
502
  ref: e,
503
- icon: Ls
503
+ icon: Fs
504
504
  }));
505
505
  });
506
- gr.displayName = "DeleteSingle";
507
- var Fs = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, mr = Oe(function(t, e) {
506
+ mr.displayName = "DeleteSingle";
507
+ var Ps = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, vr = Oe(function(t, e) {
508
508
  return Be(je, Object.assign({}, t, {
509
509
  id: "increase-single",
510
510
  ref: e,
511
- icon: Fs
511
+ icon: Ps
512
512
  }));
513
513
  });
514
- mr.displayName = "IncreaseSingle";
515
- var Ps = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, vr = Oe(function(t, e) {
514
+ vr.displayName = "IncreaseSingle";
515
+ var $s = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Sr = Oe(function(t, e) {
516
516
  return Be(je, Object.assign({}, t, {
517
517
  id: "more-single",
518
518
  ref: e,
519
- icon: Ps
519
+ icon: $s
520
520
  }));
521
521
  });
522
- vr.displayName = "MoreSingle";
523
- var $s = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6185 12.4423C12.5907 12.2749 12.7773 12.15 12.9343 12.2308L15.4242 13.5126C15.6102 13.6084 15.5544 13.8745 15.3439 13.8955L14.2456 14.184L13.4521 15.1286C13.3495 15.2939 13.085 15.2463 13.0534 15.0568L12.6185 12.4423Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1 3.6C1 2.16406 2.16406 1 3.6 1H12.3C13.7359 1 14.9 2.16406 14.9 3.6V5.81156C14.9003 5.81881 14.9004 5.82609 14.9004 5.8334C14.9004 5.84071 14.9003 5.84799 14.9 5.85524V10.045C14.9003 10.0522 14.9004 10.0595 14.9004 10.0668C14.9004 10.3982 14.6318 10.6668 14.3004 10.6668H11.1668C10.8907 10.6668 10.6668 10.8907 10.6668 11.1668V14.3C10.6668 14.6314 10.3982 14.9 10.0668 14.9L10.05 14.8998L3.6 14.9C2.16406 14.9 1 13.7359 1 12.3V3.6ZM13.2 5.2334C13.4761 5.2334 13.7 5.00954 13.7 4.7334V3.6C13.7 2.8268 13.0732 2.2 12.3 2.2H11.1668C10.8907 2.2 10.6668 2.42386 10.6668 2.7V4.7334C10.6668 5.00954 10.8907 5.2334 11.1668 5.2334H13.2ZM10.6668 6.9334C10.6668 6.65726 10.8907 6.4334 11.1668 6.4334H13.2C13.4761 6.4334 13.7 6.65726 13.7 6.9334V8.9668C13.7 9.24294 13.4761 9.4668 13.2 9.4668H11.1668C10.8907 9.4668 10.6668 9.24294 10.6668 8.9668V6.9334ZM8.9668 5.2334C9.24294 5.2334 9.4668 5.00954 9.4668 4.7334V2.7C9.4668 2.42386 9.24294 2.2 8.9668 2.2H6.9334C6.65726 2.2 6.4334 2.42386 6.4334 2.7V4.7334C6.4334 5.00954 6.65726 5.2334 6.9334 5.2334L8.9668 5.2334ZM6.4334 6.9334C6.4334 6.65726 6.65726 6.4334 6.9334 6.4334L8.9668 6.4334C9.24294 6.4334 9.4668 6.65726 9.4668 6.9334V8.9668C9.4668 9.24294 9.24294 9.4668 8.9668 9.4668L6.9334 9.4668C6.65726 9.4668 6.4334 9.24294 6.4334 8.9668V6.9334ZM4.7334 5.2334C5.00954 5.2334 5.2334 5.00954 5.2334 4.7334V2.7C5.2334 2.42386 5.00954 2.2 4.7334 2.2H3.6C2.8268 2.2 2.2 2.8268 2.2 3.6V4.7334C2.2 5.00954 2.42386 5.2334 2.7 5.2334H4.7334ZM2.2 6.9334C2.2 6.65726 2.42386 6.4334 2.7 6.4334H4.7334C5.00954 6.4334 5.2334 6.65725 5.2334 6.9334V8.9668C5.2334 9.24294 5.00954 9.4668 4.7334 9.4668H2.7C2.42386 9.4668 2.2 9.24294 2.2 8.9668V6.9334ZM5.2334 11.1668C5.2334 10.8907 5.00954 10.6668 4.7334 10.6668H2.7C2.42386 10.6668 2.2 10.8907 2.2 11.1668V12.3C2.2 13.0732 2.8268 13.7 3.6 13.7H4.7334C5.00954 13.7 5.2334 13.4761 5.2334 13.2V11.1668ZM9.4668 11.1668C9.4668 10.8907 9.24294 10.6668 8.9668 10.6668H6.9334C6.65726 10.6668 6.4334 10.8907 6.4334 11.1668V13.2C6.4334 13.4761 6.65726 13.7 6.9334 13.7H8.9668C9.24294 13.7 9.4668 13.4761 9.4668 13.2V11.1668Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Sr = Oe(function(t, e) {
522
+ Sr.displayName = "MoreSingle";
523
+ var Us = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6185 12.4423C12.5907 12.2749 12.7773 12.15 12.9343 12.2308L15.4242 13.5126C15.6102 13.6084 15.5544 13.8745 15.3439 13.8955L14.2456 14.184L13.4521 15.1286C13.3495 15.2939 13.085 15.2463 13.0534 15.0568L12.6185 12.4423Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1 3.6C1 2.16406 2.16406 1 3.6 1H12.3C13.7359 1 14.9 2.16406 14.9 3.6V5.81156C14.9003 5.81881 14.9004 5.82609 14.9004 5.8334C14.9004 5.84071 14.9003 5.84799 14.9 5.85524V10.045C14.9003 10.0522 14.9004 10.0595 14.9004 10.0668C14.9004 10.3982 14.6318 10.6668 14.3004 10.6668H11.1668C10.8907 10.6668 10.6668 10.8907 10.6668 11.1668V14.3C10.6668 14.6314 10.3982 14.9 10.0668 14.9L10.05 14.8998L3.6 14.9C2.16406 14.9 1 13.7359 1 12.3V3.6ZM13.2 5.2334C13.4761 5.2334 13.7 5.00954 13.7 4.7334V3.6C13.7 2.8268 13.0732 2.2 12.3 2.2H11.1668C10.8907 2.2 10.6668 2.42386 10.6668 2.7V4.7334C10.6668 5.00954 10.8907 5.2334 11.1668 5.2334H13.2ZM10.6668 6.9334C10.6668 6.65726 10.8907 6.4334 11.1668 6.4334H13.2C13.4761 6.4334 13.7 6.65726 13.7 6.9334V8.9668C13.7 9.24294 13.4761 9.4668 13.2 9.4668H11.1668C10.8907 9.4668 10.6668 9.24294 10.6668 8.9668V6.9334ZM8.9668 5.2334C9.24294 5.2334 9.4668 5.00954 9.4668 4.7334V2.7C9.4668 2.42386 9.24294 2.2 8.9668 2.2H6.9334C6.65726 2.2 6.4334 2.42386 6.4334 2.7V4.7334C6.4334 5.00954 6.65726 5.2334 6.9334 5.2334L8.9668 5.2334ZM6.4334 6.9334C6.4334 6.65726 6.65726 6.4334 6.9334 6.4334L8.9668 6.4334C9.24294 6.4334 9.4668 6.65726 9.4668 6.9334V8.9668C9.4668 9.24294 9.24294 9.4668 8.9668 9.4668L6.9334 9.4668C6.65726 9.4668 6.4334 9.24294 6.4334 8.9668V6.9334ZM4.7334 5.2334C5.00954 5.2334 5.2334 5.00954 5.2334 4.7334V2.7C5.2334 2.42386 5.00954 2.2 4.7334 2.2H3.6C2.8268 2.2 2.2 2.8268 2.2 3.6V4.7334C2.2 5.00954 2.42386 5.2334 2.7 5.2334H4.7334ZM2.2 6.9334C2.2 6.65726 2.42386 6.4334 2.7 6.4334H4.7334C5.00954 6.4334 5.2334 6.65725 5.2334 6.9334V8.9668C5.2334 9.24294 5.00954 9.4668 4.7334 9.4668H2.7C2.42386 9.4668 2.2 9.24294 2.2 8.9668V6.9334ZM5.2334 11.1668C5.2334 10.8907 5.00954 10.6668 4.7334 10.6668H2.7C2.42386 10.6668 2.2 10.8907 2.2 11.1668V12.3C2.2 13.0732 2.8268 13.7 3.6 13.7H4.7334C5.00954 13.7 5.2334 13.4761 5.2334 13.2V11.1668ZM9.4668 11.1668C9.4668 10.8907 9.24294 10.6668 8.9668 10.6668H6.9334C6.65726 10.6668 6.4334 10.8907 6.4334 11.1668V13.2C6.4334 13.4761 6.65726 13.7 6.9334 13.7H8.9668C9.24294 13.7 9.4668 13.4761 9.4668 13.2V11.1668Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pr = Oe(function(t, e) {
524
524
  return Be(je, Object.assign({}, t, {
525
525
  id: "select-range-single",
526
526
  ref: e,
527
- icon: $s
527
+ icon: Us
528
528
  }));
529
529
  });
530
- Sr.displayName = "SelectRangeSingle";
531
- function Us(t, e) {
530
+ pr.displayName = "SelectRangeSingle";
531
+ function Vs(t, e) {
532
532
  return Object.keys(t).filter((n) => isNaN(Number(n)) && n !== "DefinedName").map((n) => ({
533
533
  label: e.t(`formula.functionType.${n.toLocaleLowerCase()}`),
534
534
  value: `${t[n]}`
535
535
  }));
536
536
  }
537
- function pr(t) {
537
+ function Cr(t) {
538
538
  if (!t.require && !t.repeat)
539
539
  return `[${t.name}]`;
540
540
  if (t.require && !t.repeat)
@@ -544,7 +544,7 @@ function pr(t) {
544
544
  if (t.require && t.repeat)
545
545
  return `${t.name},...`;
546
546
  }
547
- const Vs = (t, e = 100) => {
547
+ const Ws = (t, e = 100) => {
548
548
  P(() => {
549
549
  let n = null;
550
550
  const o = () => {
@@ -557,7 +557,7 @@ const Vs = (t, e = 100) => {
557
557
  };
558
558
  }, [t, e]);
559
559
  };
560
- function Cr(t, e, n) {
560
+ function _r(t, e, n) {
561
561
  const o = x(He), r = oe(() => new Gn({ left: -999, top: -999, right: -999, bottom: -999 }), []), s = x(nn), c = x(ee), i = Q(() => {
562
562
  var _;
563
563
  const l = o.getEditor(t);
@@ -574,8 +574,8 @@ function Cr(t, e, n) {
574
574
  });
575
575
  return P(() => {
576
576
  e && i();
577
- }, [t, o, c.unitAdded$, i, e, ...n != null ? n : []]), Vs(i), P(() => {
578
- const l = s.scrollEvent$.pipe(ko(100)).subscribe(i);
577
+ }, [t, o, c.unitAdded$, i, e, ...n != null ? n : []]), Ws(i), P(() => {
578
+ const l = s.scrollEvent$.pipe(Do(100)).subscribe(i);
579
579
  return () => {
580
580
  l.unsubscribe();
581
581
  };
@@ -584,7 +584,7 @@ function Cr(t, e, n) {
584
584
  const qe = (t) => {
585
585
  const e = Y(t);
586
586
  return e.current = t, e;
587
- }, Ws = (t, e, n) => {
587
+ }, Hs = (t, e, n) => {
588
588
  const o = x(kt), r = x(pe), [s, c] = U(), [i, l] = U(-1), [f, h] = U(!0), g = qe(f), u = Y(e);
589
589
  u.current = e;
590
590
  const d = () => {
@@ -609,7 +609,7 @@ const qe = (t) => {
609
609
  Bt((m) => m.isEditing),
610
610
  Bt((m) => m.textRanges.length === 1),
611
611
  zn((m) => m.textRanges[0].startOffset),
612
- Do()
612
+ Lo()
613
613
  ).subscribe(() => {
614
614
  h(!0);
615
615
  });
@@ -624,7 +624,7 @@ const qe = (t) => {
624
624
  paramIndex: i,
625
625
  reset: d
626
626
  };
627
- }, Hs = ({ onClick: t }) => /* @__PURE__ */ T(
627
+ }, Bs = ({ onClick: t }) => /* @__PURE__ */ T(
628
628
  "div",
629
629
  {
630
630
  className: `
@@ -656,7 +656,7 @@ const qe = (t) => {
656
656
  children: n
657
657
  }
658
658
  )
659
- ] }), Bs = (t) => {
659
+ ] }), js = (t) => {
660
660
  const { prefix: e, value: n, active: o, onClick: r } = t;
661
661
  return /* @__PURE__ */ V("div", { children: [
662
662
  /* @__PURE__ */ V("span", { children: [
@@ -669,7 +669,7 @@ const qe = (t) => {
669
669
  {
670
670
  className: o === c ? "univer-text-primary-500" : "",
671
671
  onClick: () => r(c),
672
- children: pr(s)
672
+ children: Cr(s)
673
673
  }
674
674
  ),
675
675
  c === n.length - 1 ? "" : ","
@@ -678,8 +678,8 @@ const qe = (t) => {
678
678
  ] });
679
679
  }, An = () => {
680
680
  };
681
- function js(t) {
682
- const { onParamsSwitch: e = An, onClose: n = An, isFocus: o, editor: r, formulaText: s } = t, { functionInfo: c, paramIndex: i, reset: l } = Ws(o, s, r), f = oe(() => !!c && i >= 0, [c, i]), h = x(Xt), g = !Se(h.helpFunctionVisible$), [u, d] = U(!0), a = x(et), S = a.t("formula.prompt.required"), m = a.t("formula.prompt.optional"), v = r.getEditorId(), [p] = Cr(v, f, [c, i]);
681
+ function qs(t) {
682
+ const { onParamsSwitch: e = An, onClose: n = An, isFocus: o, editor: r, formulaText: s } = t, { functionInfo: c, paramIndex: i, reset: l } = Hs(o, s, r), f = oe(() => !!c && i >= 0, [c, i]), h = x(Xt), g = !Se(h.helpFunctionVisible$), [u, d] = U(!0), a = x(et), S = a.t("formula.prompt.required"), m = a.t("formula.prompt.optional"), v = r.getEditorId(), [p] = _r(v, f, [c, i]);
683
683
  function _(y) {
684
684
  e && e(y);
685
685
  }
@@ -688,7 +688,7 @@ function js(t) {
688
688
  }), C = () => {
689
689
  R(!0), n();
690
690
  };
691
- return f && c ? g ? /* @__PURE__ */ T(jt, { portal: !0, anchorRect$: p, direction: "left-center", children: /* @__PURE__ */ T(Hs, { onClick: () => R(!1) }) }, "hidden") : /* @__PURE__ */ T(jt, { portal: !0, onClickOutside: () => l(), anchorRect$: p, direction: "vertical", children: /* @__PURE__ */ V(
691
+ return f && c ? g ? /* @__PURE__ */ T(jt, { portal: !0, anchorRect$: p, direction: "left-center", children: /* @__PURE__ */ T(Bs, { onClick: () => R(!1) }) }, "hidden") : /* @__PURE__ */ T(jt, { portal: !0, onClickOutside: () => l(), anchorRect$: p, direction: "vertical", children: /* @__PURE__ */ V(
692
692
  "div",
693
693
  {
694
694
  className: `
@@ -707,7 +707,7 @@ function js(t) {
707
707
  `,
708
708
  children: [
709
709
  /* @__PURE__ */ T(
710
- Bs,
710
+ js,
711
711
  {
712
712
  prefix: c.functionName,
713
713
  value: c.functionParameter,
@@ -728,7 +728,7 @@ function js(t) {
728
728
  `,
729
729
  style: { transform: u ? "rotateZ(-90deg)" : "rotateZ(90deg)" },
730
730
  onClick: () => d(!u),
731
- children: /* @__PURE__ */ T(vr, {})
731
+ children: /* @__PURE__ */ T(Sr, {})
732
732
  }
733
733
  ),
734
734
  /* @__PURE__ */ T(
@@ -742,7 +742,7 @@ function js(t) {
742
742
  hover:univer-bg-gray-300
743
743
  `,
744
744
  onClick: C,
745
- children: /* @__PURE__ */ T(fr, {})
745
+ children: /* @__PURE__ */ T(gr, {})
746
746
  }
747
747
  )
748
748
  ] })
@@ -791,7 +791,7 @@ function js(t) {
791
791
  }
792
792
  ) }, "show") : null;
793
793
  }
794
- const qs = (t) => {
794
+ const Ks = (t) => {
795
795
  const e = x(He);
796
796
  return Q((o) => {
797
797
  var r, s;
@@ -809,12 +809,12 @@ const qs = (t) => {
809
809
  }
810
810
  });
811
811
  };
812
- var Ks = Object.getOwnPropertyDescriptor, Ys = (t, e, n, o) => {
813
- for (var r = o > 1 ? void 0 : o ? Ks(e, n) : e, s = t.length - 1, c; s >= 0; s--)
812
+ var Ys = Object.getOwnPropertyDescriptor, Gs = (t, e, n, o) => {
813
+ for (var r = o > 1 ? void 0 : o ? Ys(e, n) : e, s = t.length - 1, c; s >= 0; s--)
814
814
  (c = t[s]) && (r = c(r) || r);
815
815
  return r;
816
816
  }, ze = (t, e) => (n, o) => e(n, o, t);
817
- let ke = class extends oo {
817
+ let ke = class extends so {
818
818
  constructor(e, n, o, r, s, c, i) {
819
819
  super(
820
820
  n,
@@ -825,7 +825,7 @@ let ke = class extends oo {
825
825
  );
826
826
  j(this, "_workbookSelections");
827
827
  j(this, "_eventDisposables");
828
- this._context = e, this._contextService = c, this._refSelectionsService = i, this._workbookSelections = this._refSelectionsService.getWorkbookSelections(this._context.unitId), this._initSelectionChangeListener(), this._initSkeletonChangeListener(), this._initUserActionSyncListener(), this._setSelectionStyle(Gs(this._themeService)), this._remainLastEnabled = !0, this._highlightHeader = !1;
828
+ this._context = e, this._contextService = c, this._refSelectionsService = i, this._workbookSelections = this._refSelectionsService.getWorkbookSelections(this._context.unitId), this._initSelectionChangeListener(), this._initSkeletonChangeListener(), this._initUserActionSyncListener(), this._setSelectionStyle(zs(this._themeService)), this._remainLastEnabled = !0, this._highlightHeader = !1;
829
829
  }
830
830
  getLocation() {
831
831
  return this._skeleton.getLocation();
@@ -874,7 +874,7 @@ let ke = class extends oo {
874
874
  pn(this._workbookSelections.getCurrentSelections(), g, me.COLUMN) || (this._onPointerDown(l, (r.zIndex || 1) + 1, me.COLUMN, this._getActiveViewport(l), $t.X), l.button !== 2 && f.stopPropagation());
875
875
  })), i.add(s == null ? void 0 : s.onPointerDown$.subscribeEvent((l, f) => {
876
876
  if (this._reset(), !this.inRefSelectionMode()) return;
877
- const h = this._sheetSkeletonManagerService.getCurrent().skeleton, g = so(h);
877
+ const h = this._sheetSkeletonManagerService.getCurrent().skeleton, g = io(h);
878
878
  this._addSelectionControlByModelData(g), this._selectionMoveStart$.next(this.getSelectionDataWithStyle());
879
879
  const u = c.onPointerUp$.subscribeEvent(() => {
880
880
  u.unsubscribe(), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle());
@@ -913,7 +913,7 @@ let ke = class extends oo {
913
913
  const r = this._context.unit.getActiveSheet().getSheetId();
914
914
  e.length !== 0 && this._workbookSelections.setSelections(
915
915
  r,
916
- e.map((s) => Ko(s)),
916
+ e.map((s) => Yo(s)),
917
917
  n
918
918
  );
919
919
  }
@@ -932,7 +932,7 @@ let ke = class extends oo {
932
932
  return n == null ? void 0 : n.scene.getActiveViewportByCoord(xn.FromArray([e.offsetX, e.offsetY]));
933
933
  }
934
934
  _getSheetObject() {
935
- return io(this._context.unit, this._context);
935
+ return co(this._context.unit, this._context);
936
936
  }
937
937
  /**
938
938
  * Handle pointer down event, bind pointermove & pointerup handler.
@@ -1031,7 +1031,7 @@ let ke = class extends oo {
1031
1031
  }), i;
1032
1032
  }
1033
1033
  };
1034
- ke = Ys([
1034
+ ke = Gs([
1035
1035
  ze(1, B(ut)),
1036
1036
  ze(2, B(dt)),
1037
1037
  ze(3, Dt),
@@ -1039,19 +1039,19 @@ ke = Ys([
1039
1039
  ze(5, Gt),
1040
1040
  ze(6, At)
1041
1041
  ], ke);
1042
- function Gs(t) {
1042
+ function zs(t) {
1043
1043
  const e = Bn(t);
1044
1044
  return e.widgets = { tl: !0, tc: !0, tr: !0, ml: !0, mr: !0, bl: !0, bc: !0, br: !0 }, e;
1045
1045
  }
1046
- function zs(t) {
1046
+ function Zs(t) {
1047
1047
  var r, s;
1048
1048
  const n = t.get(ee).getCurrentUniverDocInstance();
1049
1049
  return n != null && n.getBody() ? { dataStream: (s = (r = n.getBody()) == null ? void 0 : r.dataStream) != null ? s : "", offset: 0 } : void 0;
1050
1050
  }
1051
1051
  var we = /* @__PURE__ */ ((t) => (t[t.NOT_SELECT = 0] = "NOT_SELECT", t[t.NEED_ADD = 1] = "NEED_ADD", t[t.CAN_EDIT = 2] = "CAN_EDIT", t[t.EDIT_OTHER_SHEET_REFERENCE = 3] = "EDIT_OTHER_SHEET_REFERENCE", t))(we || {});
1052
- function Zs(t) {
1052
+ function Xs(t) {
1053
1053
  var M;
1054
- const { editorId: e, isFocus: n, disableOnClick: o, unitId: r, subUnitId: s } = t, c = x(xe), i = x(ee), l = c.getRenderById(r), f = c.getRenderById(e), h = f == null ? void 0 : f.with(Zn), g = x(ir), u = x(ut), [d, a] = U(
1054
+ const { editorId: e, isFocus: n, disableOnClick: o, unitId: r, subUnitId: s } = t, c = x(xe), i = x(ee), l = c.getRenderById(r), f = c.getRenderById(e), h = f == null ? void 0 : f.with(Zn), g = x(cr), u = x(ut), [d, a] = U(
1055
1055
  0
1056
1056
  /* NOT_SELECT */
1057
1057
  ), S = x(pe), m = Y(!0), v = l == null ? void 0 : l.with(ke), p = qe(d), _ = i.getUnit(r, J.UNIVER_SHEET), R = _ == null ? void 0 : _.getSheetBySheetId(s), C = Q((k) => {
@@ -1062,15 +1062,15 @@ function Zs(t) {
1062
1062
  }), y = Q(() => {
1063
1063
  var H, se;
1064
1064
  if (!_) return;
1065
- const k = _.getActiveSheet(), D = h == null ? void 0 : h.getActiveTextRange(), O = D != null && D.collapsed ? D.startOffset : -1, w = zs(u);
1065
+ const k = _.getActiveSheet(), D = h == null ? void 0 : h.getActiveTextRange(), O = D != null && D.collapsed ? D.startOffset : -1, w = Zs(u);
1066
1066
  if (!w) return;
1067
1067
  const N = (H = w == null ? void 0 : w.dataStream) == null ? void 0 : H.slice(0, -2), E = ((se = S.sequenceNodesBuilder(N)) != null ? se : []).map((q) => typeof q == "object" ? q.nodeType === z.REFERENCE ? {
1068
1068
  ...q,
1069
- range: bo(q.token)
1069
+ range: Eo(q.token)
1070
1070
  } : {
1071
1071
  ...q,
1072
1072
  range: void 0
1073
- } : q), b = N[O - 1], I = N[O], A = E.find((q) => typeof q == "object" && q.nodeType === z.REFERENCE && O === q.endIndex + 2), L = b && Eo(b) && (!I || Io(I) && I !== Je.OPEN_BRACKET), $ = !!A;
1073
+ } : q), b = N[O - 1], I = N[O], A = E.find((q) => typeof q == "object" && q.nodeType === z.REFERENCE && O === q.endIndex + 2), L = b && Io(b) && (!I || yo(I) && I !== Je.OPEN_BRACKET), $ = !!A;
1074
1074
  if ((N == null ? void 0 : N.substring(0, 1)) === "=" && (L || $))
1075
1075
  if ($) {
1076
1076
  if (m.current)
@@ -1121,11 +1121,11 @@ function Zs(t) {
1121
1121
  return () => k == null ? void 0 : k.unsubscribe();
1122
1122
  }, [y, n, _ == null ? void 0 : _.activeSheet$]), { isSelecting: d, isSelectingRef: p };
1123
1123
  }
1124
- const Xs = () => {
1124
+ const Qs = () => {
1125
1125
  const t = x(pe);
1126
1126
  return bt((n) => t.sequenceNodesBuilder(n) || [], [t]);
1127
1127
  };
1128
- function Qs(t, e, n) {
1128
+ function Js(t, e, n) {
1129
1129
  const o = t.getCurrentTheme(), r = new Zt(e).setAlpha(0.05).toRgbString();
1130
1130
  return {
1131
1131
  id: n,
@@ -1138,7 +1138,7 @@ function Qs(t, e, n) {
1138
1138
  widgetStroke: o.colorWhite
1139
1139
  };
1140
1140
  }
1141
- function _r(t) {
1141
+ function Rr(t) {
1142
1142
  var _, R, C;
1143
1143
  const {
1144
1144
  unitId: e,
@@ -1166,11 +1166,11 @@ function _r(t) {
1166
1166
  const k = r[y], { themeColor: D, token: O, refIndex: w, endIndex: N } = k, E = nt(O), { unitId: b, sheetName: I, range: A } = E, L = m(I);
1167
1167
  if (g !== e && b !== g || b && b !== g || L && L !== S || !L && S !== n)
1168
1168
  continue;
1169
- const $ = Yo(A, d.getRowCount(), d.getColumnCount());
1169
+ const $ = Go(A, d.getRowCount(), d.getColumnCount());
1170
1170
  $.unitId = e, $.sheetId = S, a.push({
1171
1171
  range: $,
1172
1172
  primary: null,
1173
- style: Qs(f, D, w.toString())
1173
+ style: Js(f, D, w.toString())
1174
1174
  }), p.push(N);
1175
1175
  }
1176
1176
  if (s) {
@@ -1179,11 +1179,11 @@ function _r(t) {
1179
1179
  }
1180
1180
  return a;
1181
1181
  }
1182
- function Js(t, e) {
1182
+ function ei(t, e) {
1183
1183
  const n = x(ee), o = x(dt), r = x(At), c = x(xe).getRenderById(t), i = c == null ? void 0 : c.with(ke), l = c == null ? void 0 : c.with(wt), f = Q((h, g) => {
1184
1184
  const u = n.getCurrentUnitOfType(J.UNIVER_SHEET);
1185
1185
  if (!u || i != null && i.selectionMoving) return;
1186
- const d = _r({
1186
+ const d = Rr({
1187
1187
  unitId: t,
1188
1188
  subUnitId: e,
1189
1189
  currentWorkbook: u,
@@ -1202,8 +1202,8 @@ function Js(t, e) {
1202
1202
  i == null || i.resetActiveSelectionIndex();
1203
1203
  }, [i]), f;
1204
1204
  }
1205
- function Rr(t = "") {
1206
- const e = x(kt), n = ei(), o = x(ue), r = oe(() => t.length, [t]);
1205
+ function br(t = "") {
1206
+ const e = x(kt), n = ti(), o = x(ue), r = oe(() => t.length, [t]);
1207
1207
  return Q((c, i, l = !0, f) => {
1208
1208
  const h = c.getDocumentData(), g = c.getEditorId();
1209
1209
  if (!h)
@@ -1219,7 +1219,7 @@ function Rr(t = "") {
1219
1219
  body: vn(a, 0, a.dataStream.length - 2)
1220
1220
  }), [];
1221
1221
  {
1222
- const { textRuns: S, refSelections: m } = ti(e, n, i);
1222
+ const { textRuns: S, refSelections: m } = ni(e, n, i);
1223
1223
  r && S.forEach((_) => {
1224
1224
  _.ed = _.ed + r, _.st = _.st + r;
1225
1225
  }), a.textRuns = [{ st: 0, ed: 1, ts: { fs: 11 } }, ...S];
@@ -1242,7 +1242,7 @@ function Rr(t = "") {
1242
1242
  }
1243
1243
  });
1244
1244
  }
1245
- function ei() {
1245
+ function ti() {
1246
1246
  const e = x(dt).getCurrentTheme();
1247
1247
  return oe(() => {
1248
1248
  const o = [
@@ -1262,7 +1262,7 @@ function ei() {
1262
1262
  return { formulaRefColors: o, numberColor: r, stringColor: s, plainTextColor: c };
1263
1263
  }, [e]);
1264
1264
  }
1265
- function ti(t, e, n) {
1265
+ function ni(t, e, n) {
1266
1266
  const { formulaRefColors: o, numberColor: r, stringColor: s, plainTextColor: c } = e, i = [], l = [], f = /* @__PURE__ */ new Map();
1267
1267
  let h = 0;
1268
1268
  for (let g = 0, u = n.length; g < u; g++) {
@@ -1334,7 +1334,7 @@ function ti(t, e, n) {
1334
1334
  }
1335
1335
  return { textRuns: i, refSelections: l };
1336
1336
  }
1337
- const ni = (t, e, n, o) => {
1337
+ const ri = (t, e, n, o) => {
1338
1338
  const r = x(ue), s = x(Dt), c = Y(e);
1339
1339
  c.current = e;
1340
1340
  const i = Y(o);
@@ -1347,9 +1347,9 @@ const ni = (t, e, n, o) => {
1347
1347
  return;
1348
1348
  }
1349
1349
  let m = ce.LEFT;
1350
- a === F.ARROW_DOWN ? m = ce.DOWN : a === F.ARROW_UP ? m = ce.UP : a === F.ARROW_RIGHT && (m = ce.RIGHT), S === W.SHIFT ? r.executeCommand(Uo.id, {
1350
+ a === F.ARROW_DOWN ? m = ce.DOWN : a === F.ARROW_UP ? m = ce.UP : a === F.ARROW_RIGHT && (m = ce.RIGHT), S === W.SHIFT ? r.executeCommand(Vo.id, {
1351
1351
  direction: m
1352
- }) : r.executeCommand(Vo.id, {
1352
+ }) : r.executeCommand(Wo.id, {
1353
1353
  direction: m
1354
1354
  });
1355
1355
  }, u = (a, S) => {
@@ -1412,9 +1412,9 @@ const ni = (t, e, n, o) => {
1412
1412
  h.dispose();
1413
1413
  };
1414
1414
  }, [r, n, t, s]);
1415
- }, ri = (t, e, n, o = !0) => {
1415
+ }, oi = (t, e, n, o = !0) => {
1416
1416
  var u;
1417
- const r = x(xe), s = x(Gt), c = x(ns), i = x(At), l = x(ee), f = Se(oe(() => l.getCurrentTypeOfUnit$(J.UNIVER_SHEET), [l])), h = r.getRenderById((u = f == null ? void 0 : f.getUnitId()) != null ? u : ""), g = h == null ? void 0 : h.with(ke);
1417
+ const r = x(xe), s = x(Gt), c = x(rs), i = x(At), l = x(ee), f = Se(oe(() => l.getCurrentTypeOfUnit$(J.UNIVER_SHEET), [l])), h = r.getRenderById((u = f == null ? void 0 : f.getUnitId()) != null ? u : ""), g = h == null ? void 0 : h.with(ke);
1418
1418
  Et(() => {
1419
1419
  if (t)
1420
1420
  return s.setContextValue(St, !0), () => {
@@ -1435,7 +1435,7 @@ const ni = (t, e, n, o) => {
1435
1435
  }, [c, s, t, o]), P(() => {
1436
1436
  t && (g == null || g.setSkipLastEnabled(!1));
1437
1437
  }, [t, g]);
1438
- }, oi = (t, e, n) => {
1438
+ }, si = (t, e, n) => {
1439
1439
  const o = x(ee), r = x(Jt);
1440
1440
  return bt(() => {
1441
1441
  if (t) {
@@ -1443,28 +1443,28 @@ const ni = (t, e, n, o) => {
1443
1443
  (i == null ? void 0 : i.getUnitId()) !== e && o.setCurrentUnitForType(e), l && l.getSheetId() === n && r.setSelections(c);
1444
1444
  }
1445
1445
  }, [t, r, n, e, o]);
1446
- }, si = (t) => t.reduce((e, n) => typeof n == "string" ? e + n.length : e + n.token.length, 0), Kt = (t) => t.map((e) => typeof e == "string" ? e : e.token).join(""), pt = (t, e = !1, n = "", o = !1) => !e && !o ? t.map((r) => ve(r.range)) : t.map((r) => o ? yo(r) : r.sheetName !== "" && r.sheetName !== n ? at(r.sheetName, r.range) : ve(r.range)), ii = (t) => {
1446
+ }, ii = (t) => t.reduce((e, n) => typeof n == "string" ? e + n.length : e + n.token.length, 0), Kt = (t) => t.map((e) => typeof e == "string" ? e : e.token).join(""), pt = (t, e = !1, n = "", o = !1) => !e && !o ? t.map((r) => ve(r.range)) : t.map((r) => o ? xo(r) : r.sheetName !== "" && r.sheetName !== n ? at(r.sheetName, r.range) : ve(r.range)), ci = (t) => {
1447
1447
  var h, g, u;
1448
1448
  const { editor: e, lexerTreeBuilder: n } = t, o = e == null ? void 0 : e.getSelectionRanges();
1449
1449
  if ((o == null ? void 0 : o.length) !== 1)
1450
1450
  return;
1451
1451
  const s = o[0].startOffset - 1, c = ((g = (h = e == null ? void 0 : e.getDocumentData().body) == null ? void 0 : h.dataStream) != null ? g : `\r
1452
- `).slice(0, -2), i = (u = n.sequenceNodesBuilder(c.slice(1))) != null ? u : [], l = ln(i, s, !1), f = ur(i, l);
1452
+ `).slice(0, -2), i = (u = n.sequenceNodesBuilder(c.slice(1))) != null ? u : [], l = ln(i, s, !1), f = dr(i, l);
1453
1453
  return {
1454
1454
  nodeIndex: l,
1455
1455
  updatingRefIndex: f,
1456
1456
  sequenceNodes: i,
1457
1457
  offset: s
1458
1458
  };
1459
- }, ci = () => {
1460
- }, ai = (t, e, n, o, r, s, c, i, l, f = ci) => {
1459
+ }, ai = () => {
1460
+ }, li = (t, e, n, o, r, s, c, i, l, f = ai) => {
1461
1461
  var w;
1462
- const h = x(xe), g = x(ee), u = x(ue), d = x(ir), a = x(dt), S = x(pe), m = g.getUnit(o), v = Q((N) => {
1462
+ const h = x(xe), g = x(ee), u = x(ue), d = x(cr), a = x(dt), S = x(pe), m = g.getUnit(o), v = Q((N) => {
1463
1463
  var E, b;
1464
1464
  return (b = (E = m == null ? void 0 : m.getSheetBySheetId(N)) == null ? void 0 : E.getName()) != null ? b : "";
1465
1465
  }), p = oe(() => v(r), [v, r]), _ = Se(m == null ? void 0 : m.activeSheet$), R = qe({ activeSheet: _, sheetName: p }), C = Se(oe(() => g.getCurrentTypeOfUnit$(J.UNIVER_SHEET), [g])), y = h.getRenderById((w = C == null ? void 0 : C.getUnitId()) != null ? w : ""), M = y == null ? void 0 : y.with(ke), k = y == null ? void 0 : y.with(wt), D = x(At), O = Q((N, E) => {
1466
1466
  var H, se, q, Ce, Ke, ne;
1467
- const b = ii({ editor: l, lexerTreeBuilder: S });
1467
+ const b = ci({ editor: l, lexerTreeBuilder: S });
1468
1468
  if (!b) return;
1469
1469
  const { nodeIndex: I, updatingRefIndex: A, sequenceNodes: L, offset: $ } = b;
1470
1470
  if (n.current === we.NEED_ADD)
@@ -1478,7 +1478,7 @@ const ni = (t, e, n, o) => {
1478
1478
  }, fe = he !== r, ae = (C == null ? void 0 : C.getUnitId()) !== o, Ye = pt([te], c && (fe || ae), p, ae);
1479
1479
  L.push({ token: Ye[0], nodeType: z.REFERENCE });
1480
1480
  const De = [...L, ...X], de = Kt(De);
1481
- f(de, si(L), E);
1481
+ f(de, ii(L), E);
1482
1482
  } else {
1483
1483
  const Z = N[N.length - 1], X = (q = Z.sheetId) != null ? q : r, he = {
1484
1484
  range: Z,
@@ -1497,7 +1497,7 @@ const ni = (t, e, n, o) => {
1497
1497
  const he = X.token;
1498
1498
  X.token = p === (_ == null ? void 0 : _.getName()) ? ve(Z) : at(_.getName(), Z);
1499
1499
  const te = $ + (X.token.length - he.length);
1500
- f(xo(L), te, E);
1500
+ f(Oo(L), te, E);
1501
1501
  }
1502
1502
  } else {
1503
1503
  const Z = [...N];
@@ -1577,12 +1577,12 @@ const ni = (t, e, n, o) => {
1577
1577
  })
1578
1578
  );
1579
1579
  });
1580
- }, b = Lo(
1580
+ }, b = Fo(
1581
1581
  l.input$,
1582
1582
  D.selectionSet$,
1583
1583
  M.selectionMoveEnd$
1584
1584
  ).pipe(
1585
- vs(50)
1585
+ Ss(50)
1586
1586
  ).subscribe(() => {
1587
1587
  E();
1588
1588
  });
@@ -1613,7 +1613,7 @@ const ni = (t, e, n, o) => {
1613
1613
  if (!l)
1614
1614
  return;
1615
1615
  const N = d.textSelection$.subscribe((E) => {
1616
- E.unitId === l.getEditorId() && _r({
1616
+ E.unitId === l.getEditorId() && Rr({
1617
1617
  unitId: o,
1618
1618
  subUnitId: r,
1619
1619
  refSelections: s.current,
@@ -1628,7 +1628,7 @@ const ni = (t, e, n, o) => {
1628
1628
  });
1629
1629
  return () => N.unsubscribe();
1630
1630
  }, [d.textSelection$, l, s, M, D, k, r, a, o, g]);
1631
- }, li = (t, e, n, o, r, s) => {
1631
+ }, ui = (t, e, n, o, r, s) => {
1632
1632
  const c = x(ue), i = x(He), f = x(xe).getRenderById(e), h = x(ee), g = f == null ? void 0 : f.with(ke);
1633
1633
  P(() => {
1634
1634
  if (t && g)
@@ -1661,7 +1661,7 @@ const ni = (t, e, n, o) => {
1661
1661
  };
1662
1662
  }
1663
1663
  }, [t, g]);
1664
- }, ui = (t, e, n) => {
1664
+ }, di = (t, e, n) => {
1665
1665
  const o = x(pe), r = Y(!0);
1666
1666
  P(() => {
1667
1667
  if (t) {
@@ -1678,7 +1678,7 @@ const ni = (t, e, n, o) => {
1678
1678
  e(s === 0 && n.startsWith(Yn.EQUALS), `${n}`);
1679
1679
  }
1680
1680
  }, [n, e]);
1681
- }, di = (t, e = [], n) => {
1681
+ }, hi = (t, e = [], n) => {
1682
1682
  const o = x(kt), [r, s] = U([]), [c, i] = U(""), l = Y(-1), f = qe({ nodes: e }), h = () => {
1683
1683
  s([]), i(""), l.current = -1;
1684
1684
  };
@@ -1721,10 +1721,10 @@ const ni = (t, e, n, o) => {
1721
1721
  },
1722
1722
  reset: h
1723
1723
  };
1724
- }, hi = () => {
1725
- }, fi = Oe(gi);
1726
- function gi(t, e) {
1727
- const { isFocus: n, sequenceNodes: o, onSelect: r, editor: s, onClose: c = hi } = t, i = s.getEditorId(), l = x(Dt), f = x(ue), { searchList: h, searchText: g, handlerFormulaReplace: u, reset: d } = di(n, o, s), a = oe(() => !!h.length, [h]), S = Y(void 0), [m, v] = U(0), p = Y(!1), [_] = Cr(i, a, [g, h]), R = qe({ searchList: h, active: m }), C = (O) => {
1724
+ }, fi = () => {
1725
+ }, gi = Oe(mi);
1726
+ function mi(t, e) {
1727
+ const { isFocus: n, sequenceNodes: o, onSelect: r, editor: s, onClose: c = fi } = t, i = s.getEditorId(), l = x(Dt), f = x(ue), { searchList: h, searchText: g, handlerFormulaReplace: u, reset: d } = hi(n, o, s), a = oe(() => !!h.length, [h]), S = Y(void 0), [m, v] = U(0), p = Y(!1), [_] = _r(i, a, [g, h]), R = qe({ searchList: h, active: m }), C = (O) => {
1728
1728
  const w = u(O);
1729
1729
  w && (d(), r(w));
1730
1730
  };
@@ -1854,8 +1854,8 @@ function gi(t, e) {
1854
1854
  }
1855
1855
  ) });
1856
1856
  }
1857
- const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1858
- }, vi = Oe((t, e) => {
1857
+ const vi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1858
+ }, Si = Oe((t, e) => {
1859
1859
  var dn, hn;
1860
1860
  const {
1861
1861
  errorText: n,
@@ -1882,21 +1882,21 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1882
1882
  disableContextMenu: M,
1883
1883
  style: k
1884
1884
  } = t, D = x(He), O = Y(null), w = Q(h);
1885
- ms(e, () => ({
1885
+ vs(e, () => ({
1886
1886
  isClickOutSide: (K) => O.current ? !O.current.contains(K.target) : !1
1887
1887
  }));
1888
- const N = Q(S), E = Y(null), b = Y(void 0), I = b.current, [A, L] = U(c), $ = Y(null), H = oe(() => d != null ? d : Vr(`${co}-${Wr(4)}`), []), se = oe(() => n !== void 0, [n]), q = x(ee), Ce = q.getUnit(H);
1888
+ const N = Q(S), E = Y(null), b = Y(void 0), I = b.current, [A, L] = U(c), $ = Y(null), H = oe(() => d != null ? d : Wr(`${ao}-${Hr(4)}`), []), se = oe(() => n !== void 0, [n]), q = x(ee), Ce = q.getUnit(H);
1889
1889
  Se(Ce == null ? void 0 : Ce.change$);
1890
- const Ke = Xs(), ne = Hr.transform.getPlainText((hn = (dn = Ce == null ? void 0 : Ce.getBody()) == null ? void 0 : dn.dataStream) != null ? hn : ""), Z = qe(ne), X = oe(() => mi(ne), [ne]), he = oe(() => Ke(X), [X, Ke]), { isSelecting: te, isSelectingRef: fe } = Zs({ unitId: r, subUnitId: s, editorId: H, isFocus: A, disableOnClick: C }), ae = Y(""), De = x(xe).getRenderById(H), de = De == null ? void 0 : De.with(Zn), G = de == null ? void 0 : de.isFocusing, ge = oe(() => q.getCurrentTypeOfUnit$(J.UNIVER_DOC), [q]), _e = Se(ge), Te = (_e == null ? void 0 : _e.getUnitId()) === H, Le = Y([]), Re = te;
1891
- rs(() => {
1890
+ const Ke = Qs(), ne = Br.transform.getPlainText((hn = (dn = Ce == null ? void 0 : Ce.getBody()) == null ? void 0 : dn.dataStream) != null ? hn : ""), Z = qe(ne), X = oe(() => vi(ne), [ne]), he = oe(() => Ke(X), [X, Ke]), { isSelecting: te, isSelectingRef: fe } = Xs({ unitId: r, subUnitId: s, editorId: H, isFocus: A, disableOnClick: C }), ae = Y(""), De = x(xe).getRenderById(H), de = De == null ? void 0 : De.with(Zn), G = de == null ? void 0 : de.isFocusing, ge = oe(() => q.getCurrentTypeOfUnit$(J.UNIVER_DOC), [q]), _e = Se(ge), Te = (_e == null ? void 0 : _e.getUnitId()) === H, Le = Y([]), Re = te;
1891
+ os(() => {
1892
1892
  w(ne);
1893
1893
  }, [ne, w]);
1894
- const Ft = Rr("="), Pt = Js(r, s), Fe = Q((K, re = !0, Me, be) => {
1894
+ const Ft = br("="), Pt = ei(r, s), Fe = Q((K, re = !0, Me, be) => {
1895
1895
  if (!b.current) return;
1896
1896
  ae.current = K;
1897
- const gt = K[0] === "=" ? K.slice(1) : "", Ne = Ke(gt), Ar = Ne.reduce((Pe, vt) => typeof vt == "object" ? `${Pe}${vt.token}` : `${Pe}${vt}`, ""), mt = Ft(
1897
+ const gt = K[0] === "=" ? K.slice(1) : "", Ne = Ke(gt), kr = Ne.reduce((Pe, vt) => typeof vt == "object" ? `${Pe}${vt.token}` : `${Pe}${vt}`, ""), mt = Ft(
1898
1898
  b.current,
1899
- Ar === gt ? Ne : [],
1899
+ kr === gt ? Ne : [],
1900
1900
  re,
1901
1901
  be
1902
1902
  );
@@ -1904,7 +1904,7 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1904
1904
  const Pe = be != null ? be : I == null ? void 0 : I.getSelectionRanges();
1905
1905
  if ((Pe == null ? void 0 : Pe.length) !== 1)
1906
1906
  return;
1907
- const kr = Pe[0].startOffset - 1, Dr = ln(Ne, kr, !1), fn = ur(Ne, Dr);
1907
+ const Dr = Pe[0].startOffset - 1, Lr = ln(Ne, Dr, !1), fn = dr(Ne, Lr);
1908
1908
  if (fn >= 0) {
1909
1909
  const gn = mt.splice(fn, 1)[0];
1910
1910
  gn && mt.push(gn);
@@ -1919,12 +1919,12 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1919
1919
  if (ae.current === ne) return;
1920
1920
  Fe(ne, !1, !0);
1921
1921
  }
1922
- }, [ne]), ui(A, g, ne);
1923
- const Ge = qs(I), un = oi(A, r, s);
1922
+ }, [ne]), di(A, g, ne);
1923
+ const Ge = Ks(I), un = si(A, r, s);
1924
1924
  P(() => {
1925
1925
  var K;
1926
1926
  N(te, (K = de == null ? void 0 : de.isFocusing) != null ? K : !0);
1927
- }, [N, te]), Wo(A, m, I), Et(() => {
1927
+ }, [N, te]), Ho(A, m, I), Et(() => {
1928
1928
  let K;
1929
1929
  if ($.current) {
1930
1930
  K = D.register({
@@ -1952,18 +1952,18 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1952
1952
  }, []), Et(() => {
1953
1953
  c ? (L(c), Ge()) : (p && (I == null || I.blur(), un()), L(c));
1954
1954
  }, [c, I, Ge, un, p]);
1955
- const { checkScrollBar: Tr } = Ho(I, R, _);
1956
- ri(A, !!(te && Te), r, M), ni(!!(A && G && a), Re, I, v);
1957
- const Mr = Q((K, re, Me) => {
1955
+ const { checkScrollBar: Mr } = Bo(I, R, _);
1956
+ oi(A, !!(te && Te), r, M), ri(!!(A && G && a), Re, I, v);
1957
+ const Nr = Q((K, re, Me) => {
1958
1958
  if (!G)
1959
1959
  return;
1960
1960
  const be = re !== -1 ? [{ startOffset: re + 1, endOffset: re + 1, collapsed: !0 }] : void 0;
1961
1961
  Fe(`=${K}`, !0, Me, be), Me && (Ge(), re !== -1 && setTimeout(() => {
1962
- const gt = { startOffset: re + 1, endOffset: re + 1 }, Ne = I == null ? void 0 : I.render.with(Bo);
1962
+ const gt = { startOffset: re + 1, endOffset: re + 1 }, Ne = I == null ? void 0 : I.render.with(jo);
1963
1963
  Ne == null || Ne.scrollToRange({ ...gt, collapsed: !0 });
1964
- }, 50), Tr());
1964
+ }, 50), Mr());
1965
1965
  });
1966
- ai(
1966
+ li(
1967
1967
  A && !!(te && Te),
1968
1968
  A,
1969
1969
  fe,
@@ -1973,11 +1973,11 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1973
1973
  i,
1974
1974
  !!Re,
1975
1975
  I,
1976
- Mr
1977
- ), li(A && !!(te && Te), r, i, L, f, () => {
1976
+ Nr
1977
+ ), ui(A && !!(te && Te), r, i, L, f, () => {
1978
1978
  Fe(Z.current, !1, !0);
1979
1979
  });
1980
- const Nr = (K) => {
1980
+ const wr = (K) => {
1981
1981
  if (K) {
1982
1982
  const re = I == null ? void 0 : I.getSelectionRanges();
1983
1983
  if (re && re.length === 1) {
@@ -1991,14 +1991,14 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
1991
1991
  }
1992
1992
  Ge(), Fe(`=${K.text}`);
1993
1993
  }
1994
- }, wr = () => {
1994
+ }, Ar = () => {
1995
1995
  L(!0), l(), Ge();
1996
1996
  };
1997
1997
  return /* @__PURE__ */ V("div", { style: k, className: u, children: [
1998
1998
  /* @__PURE__ */ T(
1999
1999
  "div",
2000
2000
  {
2001
- className: ds(
2001
+ className: sr(
2002
2002
  `
2003
2003
  univer-relative univer-box-border univer-flex univer-h-full univer-w-full univer-items-center
2004
2004
  univer-justify-around univer-gap-2 univer-rounded-none univer-border-none univer-p-0
@@ -2014,14 +2014,14 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
2014
2014
  {
2015
2015
  className: "univer-relative univer-h-full univer-w-full",
2016
2016
  ref: $,
2017
- onMouseUp: wr
2017
+ onMouseUp: Ar
2018
2018
  }
2019
2019
  )
2020
2020
  }
2021
2021
  ),
2022
2022
  n !== void 0 ? /* @__PURE__ */ T("div", { className: "univer-my-1 univer-text-xs univer-text-red-500", children: n }) : null,
2023
2023
  I ? /* @__PURE__ */ T(
2024
- js,
2024
+ qs,
2025
2025
  {
2026
2026
  editor: I,
2027
2027
  isFocus: A,
@@ -2030,19 +2030,19 @@ const mi = (t) => t.startsWith(Yn.EQUALS) ? t.slice(1) : "", kn = () => {
2030
2030
  }
2031
2031
  ) : null,
2032
2032
  I ? /* @__PURE__ */ T(
2033
- fi,
2033
+ gi,
2034
2034
  {
2035
2035
  isFocus: A,
2036
2036
  sequenceNodes: he,
2037
- onSelect: Nr,
2037
+ onSelect: wr,
2038
2038
  ref: E,
2039
2039
  editor: I
2040
2040
  }
2041
2041
  ) : null
2042
2042
  ] });
2043
2043
  });
2044
- function Si(t, e, n, o) {
2045
- const r = x(pe), s = Rr(""), c = Se(t == null ? void 0 : t.getDocumentDataModel().change$), [i, l] = U([]), f = x(ao), h = Y(""), g = x(ee);
2044
+ function pi(t, e, n, o) {
2045
+ const r = x(pe), s = br(""), c = Se(t == null ? void 0 : t.getDocumentDataModel().change$), [i, l] = U([]), f = x(lo), h = Y(""), g = x(ee);
2046
2046
  return P(() => {
2047
2047
  if (!t) return;
2048
2048
  const u = t.getDocumentDataModel().getPlainText();
@@ -2086,7 +2086,7 @@ function Si(t, e, n, o) {
2086
2086
  };
2087
2087
  }, [t, e, s, f, i]), { sequenceNodes: i };
2088
2088
  }
2089
- function pi(t) {
2089
+ function Ci(t) {
2090
2090
  const e = x(Jt), { supportAcrossSheet: n = !1, unitId: o, subUnitId: r, onChange: s } = t, i = x(ee).getUnit(o, J.UNIVER_SHEET), l = Q(s), f = Q((h, g) => {
2091
2091
  const u = i == null ? void 0 : i.getActiveSheet();
2092
2092
  if (!u || !n && u.getSheetId() !== r || !(h != null && h.length)) return;
@@ -2117,7 +2117,7 @@ const Dn = (t) => !t.some((n) => {
2117
2117
  } else if (n.nodeType !== z.REFERENCE)
2118
2118
  return !0;
2119
2119
  return !1;
2120
- }), Ci = (t) => {
2120
+ }), _i = (t) => {
2121
2121
  if (t.endColumn < t.startColumn) {
2122
2122
  const e = t.endColumn;
2123
2123
  t.endColumn = t.startColumn, t.startColumn = e;
@@ -2128,7 +2128,7 @@ const Dn = (t) => !t.some((n) => {
2128
2128
  }
2129
2129
  return t;
2130
2130
  };
2131
- function _i(t) {
2131
+ function Ri(t) {
2132
2132
  const {
2133
2133
  visible: e,
2134
2134
  initialValue: n,
@@ -2155,7 +2155,7 @@ function _i(t) {
2155
2155
  }, _ = (R) => {
2156
2156
  u.splice(R, 1), d([...u]);
2157
2157
  };
2158
- return pi({
2158
+ return Ci({
2159
2159
  unitId: o,
2160
2160
  subUnitId: r,
2161
2161
  supportAcrossSheet: c,
@@ -2199,7 +2199,7 @@ function _i(t) {
2199
2199
  u.filter((R) => {
2200
2200
  const C = g.sequenceNodesBuilder(R);
2201
2201
  return C && C.length === 1 && typeof C[0] != "string" && C[0].nodeType === z.REFERENCE;
2202
- }).map((R) => nt(R)).map((R) => ({ ...R, range: Ci(R.range) }))
2202
+ }).map((R) => nt(R)).map((R) => ({ ...R, range: _i(R.range) }))
2203
2203
  );
2204
2204
  },
2205
2205
  children: h.t("rangeSelector.confirm")
@@ -2211,10 +2211,7 @@ function _i(t) {
2211
2211
  "div",
2212
2212
  {
2213
2213
  ref: m,
2214
- className: `
2215
- -univer-mx-6 univer-max-h-60 univer-overflow-y-auto univer-px-6 univer-scrollbar-thin
2216
- univer-scrollbar-track-transparent univer-scrollbar-thumb-[#73737366]
2217
- `,
2214
+ className: sr("-univer-mx-6 univer-max-h-60 univer-overflow-y-auto univer-px-6", gs),
2218
2215
  children: [
2219
2216
  u.map((R, C) => /* @__PURE__ */ V(
2220
2217
  "div",
@@ -2222,7 +2219,7 @@ function _i(t) {
2222
2219
  className: "univer-mb-2 univer-flex univer-items-center univer-justify-start univer-gap-4",
2223
2220
  children: [
2224
2221
  /* @__PURE__ */ T(
2225
- sr,
2222
+ ir,
2226
2223
  {
2227
2224
  className: "univer-w-full",
2228
2225
  placeholder: h.t("rangeSelector.placeHolder"),
@@ -2233,7 +2230,7 @@ function _i(t) {
2233
2230
  }
2234
2231
  ),
2235
2232
  u.length > 1 && /* @__PURE__ */ T(
2236
- gr,
2233
+ mr,
2237
2234
  {
2238
2235
  className: "univer-cursor-pointer",
2239
2236
  onClick: () => _(C)
@@ -2244,7 +2241,7 @@ function _i(t) {
2244
2241
  C
2245
2242
  )),
2246
2243
  u.length < s && /* @__PURE__ */ T("div", { children: /* @__PURE__ */ V(Xe, { variant: "link", onClick: p, children: [
2247
- /* @__PURE__ */ T(mr, {}),
2244
+ /* @__PURE__ */ T(vr, {}),
2248
2245
  /* @__PURE__ */ T("span", { children: h.t("rangeSelector.addAnotherRange") })
2249
2246
  ] }) })
2250
2247
  ]
@@ -2253,13 +2250,13 @@ function _i(t) {
2253
2250
  }
2254
2251
  );
2255
2252
  }
2256
- function Ri(t) {
2253
+ function bi(t) {
2257
2254
  return t.split(Je.COMMA).filter((e) => !!e).map((e) => nt(e));
2258
2255
  }
2259
- function bi(t) {
2256
+ function Ei(t) {
2260
2257
  return t.map((e) => e.sheetName ? at(e.sheetName, e.range) : ve(e.range)).join(Je.COMMA);
2261
2258
  }
2262
- function br(t) {
2259
+ function Er(t) {
2263
2260
  const [e, n] = U(null), {
2264
2261
  onVerify: o,
2265
2262
  selectorRef: r,
@@ -2275,11 +2272,11 @@ function br(t) {
2275
2272
  forceShowDialogWhenSelectionChanged: a,
2276
2273
  hideEditor: S,
2277
2274
  resetRange: m
2278
- } = t, [v, p] = U(f != null ? f : !1), [_, R] = U(!1), [C, y] = U([]), M = x(et), k = x(He), { sequenceNodes: D } = Si(e, v, s, c), O = qe(D), w = x(ue), N = Q(() => {
2275
+ } = t, [v, p] = U(f != null ? f : !1), [_, R] = U(!1), [C, y] = U([]), M = x(et), k = x(He), { sequenceNodes: D } = pi(e, v, s, c), O = qe(D), w = x(ue), N = Q(() => {
2279
2276
  e == null || e.setSelectionRanges([]), e == null || e.blur(), k.blur();
2280
2277
  }), E = Q(() => {
2281
2278
  var b;
2282
- N(), y(Ri((b = e == null ? void 0 : e.getDocumentDataModel().getPlainText()) != null ? b : "")), R(!0);
2279
+ N(), y(bi((b = e == null ? void 0 : e.getDocumentDataModel().getPlainText()) != null ? b : "")), R(!0);
2283
2280
  });
2284
2281
  return P(() => {
2285
2282
  r && (r.current = {
@@ -2317,9 +2314,9 @@ function br(t) {
2317
2314
  };
2318
2315
  w.executeCommand(en.id, b);
2319
2316
  };
2320
- }, [_]), /* @__PURE__ */ V(us, { children: [
2317
+ }, [_]), /* @__PURE__ */ V(ds, { children: [
2321
2318
  S ? null : /* @__PURE__ */ T(
2322
- jo,
2319
+ qo,
2323
2320
  {
2324
2321
  isSingle: !0,
2325
2322
  ...t,
@@ -2330,11 +2327,11 @@ function br(t) {
2330
2327
  onClickOutside: () => {
2331
2328
  p(!1), N(), u == null || u();
2332
2329
  },
2333
- icon: /* @__PURE__ */ T(hs, { title: M.t("rangeSelector.buttonTooltip"), placement: "bottom", children: /* @__PURE__ */ T(Sr, { className: "univer-cursor-pointer", onClick: E }) })
2330
+ icon: /* @__PURE__ */ T(hs, { title: M.t("rangeSelector.buttonTooltip"), placement: "bottom", children: /* @__PURE__ */ T(pr, { className: "univer-cursor-pointer", onClick: E }) })
2334
2331
  }
2335
2332
  ),
2336
2333
  /* @__PURE__ */ T(
2337
- _i,
2334
+ Ri,
2338
2335
  {
2339
2336
  initialValue: C,
2340
2337
  unitId: s,
@@ -2342,7 +2339,7 @@ function br(t) {
2342
2339
  visible: _,
2343
2340
  maxRangeCount: i,
2344
2341
  onConfirm: (b) => {
2345
- const I = bi(b), A = Br.newEmptyData();
2342
+ const I = Ei(b), A = jr.newEmptyData();
2346
2343
  A.body.dataStream = I, e == null || e.replaceText(I, !1), h == null || h(A, I), R(!1), y([]), requestAnimationFrame(() => {
2347
2344
  N();
2348
2345
  });
@@ -2356,7 +2353,7 @@ function br(t) {
2356
2353
  )
2357
2354
  ] });
2358
2355
  }
2359
- class Er {
2356
+ class Ir {
2360
2357
  constructor() {
2361
2358
  j(this, "_currentSelector$", new Gn(null));
2362
2359
  j(this, "currentSelector$", this._currentSelector$.asObservable());
@@ -2370,8 +2367,8 @@ class Er {
2370
2367
  return this._currentSelector$.next(e), o;
2371
2368
  }
2372
2369
  }
2373
- var Ei = Object.getOwnPropertyDescriptor, Ii = (t, e, n, o) => {
2374
- for (var r = o > 1 ? void 0 : o ? Ei(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2370
+ var Ii = Object.getOwnPropertyDescriptor, yi = (t, e, n, o) => {
2371
+ for (var r = o > 1 ? void 0 : o ? Ii(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2375
2372
  (c = t[s]) && (r = c(r) || r);
2376
2373
  return r;
2377
2374
  }, Ct = (t, e) => (n, o) => e(n, o, t);
@@ -2381,7 +2378,7 @@ let It = class extends tt {
2381
2378
  }
2382
2379
  _initialize() {
2383
2380
  this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
2384
- getMutations: (t) => t.id === Go.id ? this._reorderFormula(t.params) : {
2381
+ getMutations: (t) => t.id === zo.id ? this._reorderFormula(t.params) : {
2385
2382
  redos: [],
2386
2383
  undos: []
2387
2384
  }
@@ -2396,7 +2393,7 @@ let It = class extends tt {
2396
2393
  };
2397
2394
  const f = l.getCellMatrix(), h = new Ae(), g = new Ae();
2398
2395
  let u = !1;
2399
- return jr.foreach(s, (d, a) => {
2396
+ return qr.foreach(s, (d, a) => {
2400
2397
  let S = d;
2401
2398
  c.hasOwnProperty(d) && (S = c[d]);
2402
2399
  const m = f.getValue(S, a);
@@ -2434,25 +2431,25 @@ let It = class extends tt {
2434
2431
  };
2435
2432
  }
2436
2433
  };
2437
- It = Ii([
2434
+ It = yi([
2438
2435
  Ct(0, B(tn)),
2439
2436
  Ct(1, B(ee)),
2440
2437
  Ct(2, B(ft)),
2441
2438
  Ct(3, B(pe))
2442
2439
  ], It);
2443
- const yi = "sheets-formula-ui.base.config", Ln = {};
2444
- function xi(t) {
2445
- return t.getContextValue(qr) && t.getContextValue(Kr);
2440
+ const xi = "sheets-formula-ui.base.config", Ln = {};
2441
+ function Oi(t) {
2442
+ return t.getContextValue(Kr) && t.getContextValue(Yr);
2446
2443
  }
2447
- function Ir(t, e = !1) {
2448
- return !e && !(Ee(t == null ? void 0 : t.f) || We(t == null ? void 0 : t.si)) ? null : typeof (t == null ? void 0 : t.v) == "string" && Oo.has(t.v) ? t.v : null;
2444
+ function yr(t, e = !1) {
2445
+ return !e && !(Ee(t == null ? void 0 : t.f) || We(t == null ? void 0 : t.si)) ? null : typeof (t == null ? void 0 : t.v) == "string" && To.has(t.v) ? t.v : null;
2449
2446
  }
2450
- var Oi = Object.getOwnPropertyDescriptor, Ti = (t, e, n, o) => {
2451
- for (var r = o > 1 ? void 0 : o ? Oi(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2447
+ var Ti = Object.getOwnPropertyDescriptor, Mi = (t, e, n, o) => {
2448
+ for (var r = o > 1 ? void 0 : o ? Ti(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2452
2449
  (c = t[s]) && (r = c(r) || r);
2453
2450
  return r;
2454
2451
  }, st = (t, e) => (n, o) => e(n, o, t);
2455
- const Wt = "SHEET_FORMULA_ALERT", Mi = {
2452
+ const Wt = "SHEET_FORMULA_ALERT", Ni = {
2456
2453
  [ie.DIV_BY_ZERO]: "divByZero",
2457
2454
  [ie.NAME]: "name",
2458
2455
  [ie.VALUE]: "value",
@@ -2480,8 +2477,8 @@ let Yt = class extends tt {
2480
2477
  const i = this._context.unit.getActiveSheet();
2481
2478
  if (!i) return;
2482
2479
  const l = i.getCell(t.location.row, t.location.col), f = (r = (o = (n = (e = this._formulaDataModel.getArrayFormulaCellData()) == null ? void 0 : e[t.location.unitId]) == null ? void 0 : n[t.location.subUnitId]) == null ? void 0 : o[t.location.row]) == null ? void 0 : r[t.location.col];
2483
- if (Yr(l)) {
2484
- const h = Ir(l, !!f);
2480
+ if (Gr(l)) {
2481
+ const h = yr(l, !!f);
2485
2482
  if (!h) {
2486
2483
  this._hideAlert();
2487
2484
  return;
@@ -2490,9 +2487,9 @@ let Yt = class extends tt {
2490
2487
  if (u && u.row === t.location.row && u.col === t.location.col && u.subUnitId === t.location.subUnitId && u.unitId === t.location.unitId)
2491
2488
  return;
2492
2489
  this._cellAlertManagerService.showAlert({
2493
- type: ho.ERROR,
2490
+ type: fo.ERROR,
2494
2491
  title: this._localeService.t("formula.error.title"),
2495
- message: this._localeService.t(`formula.error.${Mi[h]}`),
2492
+ message: this._localeService.t(`formula.error.${Ni[h]}`),
2496
2493
  location: t.location,
2497
2494
  width: 200,
2498
2495
  height: 74,
@@ -2513,15 +2510,15 @@ let Yt = class extends tt {
2513
2510
  this._cellAlertManagerService.removeAlert(Wt);
2514
2511
  }
2515
2512
  };
2516
- Yt = Ti([
2517
- st(1, B(lo)),
2518
- st(2, B(uo)),
2513
+ Yt = Mi([
2514
+ st(1, B(uo)),
2515
+ st(2, B(ho)),
2519
2516
  st(3, B(et)),
2520
2517
  st(4, B(ft)),
2521
- st(5, os)
2518
+ st(5, ss)
2522
2519
  ], Yt);
2523
- var Ni = Object.getOwnPropertyDescriptor, wi = (t, e, n, o) => {
2524
- for (var r = o > 1 ? void 0 : o ? Ni(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2520
+ var wi = Object.getOwnPropertyDescriptor, Ai = (t, e, n, o) => {
2521
+ for (var r = o > 1 ? void 0 : o ? wi(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2525
2522
  (c = t[s]) && (r = c(r) || r);
2526
2523
  return r;
2527
2524
  }, Fn = (t, e) => (n, o) => e(n, o, t);
@@ -2536,7 +2533,7 @@ let yt = class extends tt {
2536
2533
  match: (e) => Ee(e == null ? void 0 : e.f) || We(e == null ? void 0 : e.si),
2537
2534
  isContinue: (e, n) => e.type === bn.FORMULA,
2538
2535
  applyFunctions: {
2539
- [go.COPY]: (e, n, o, r, s) => {
2536
+ [mo.COPY]: (e, n, o, r, s) => {
2540
2537
  const { data: c, index: i } = e;
2541
2538
  return this._fillCopyFormula(c, n, o, i, r, s);
2542
2539
  }
@@ -2546,7 +2543,7 @@ let yt = class extends tt {
2546
2543
  }
2547
2544
  _fillCopyFormula(t, e, n, o, r, s) {
2548
2545
  var f, h;
2549
- const c = ki(r), i = [], l = /* @__PURE__ */ new Map();
2546
+ const c = Di(r), i = [], l = /* @__PURE__ */ new Map();
2550
2547
  for (let g = 1; g <= e; g++) {
2551
2548
  const u = (g - 1) % t.length, d = o[u], a = Qe.deepClone(t[u]);
2552
2549
  if (a) {
@@ -2559,7 +2556,7 @@ let yt = class extends tt {
2559
2556
  a.si = _, a.f = null, a.v = null, a.p = null, a.t = null;
2560
2557
  else {
2561
2558
  _ = Qe.generateRandomId(6), l.set(u, _);
2562
- const { offsetX: R, offsetY: C } = Ai(c, e, n, s, d), y = this._lexerTreeBuilder.moveFormulaRefOffset(
2559
+ const { offsetX: R, offsetY: C } = ki(c, e, n, s, d), y = this._lexerTreeBuilder.moveFormulaRefOffset(
2563
2560
  S,
2564
2561
  R,
2565
2562
  C
@@ -2573,11 +2570,11 @@ let yt = class extends tt {
2573
2570
  return i;
2574
2571
  }
2575
2572
  };
2576
- yt = wi([
2577
- Fn(0, fo),
2573
+ yt = Ai([
2574
+ Fn(0, go),
2578
2575
  Fn(1, B(pe))
2579
2576
  ], yt);
2580
- function Ai(t, e, n, o, r) {
2577
+ function ki(t, e, n, o, r) {
2581
2578
  const { source: s, target: c } = o, { rows: i } = c, { rows: l } = s;
2582
2579
  let f = 0, h = 0;
2583
2580
  switch (n) {
@@ -2596,7 +2593,7 @@ function Ai(t, e, n, o, r) {
2596
2593
  }
2597
2594
  return { offsetX: f, offsetY: h };
2598
2595
  }
2599
- function ki(t) {
2596
+ function Di(t) {
2600
2597
  let e = 0;
2601
2598
  for (const n in t)
2602
2599
  t[n].forEach((o) => {
@@ -2604,12 +2601,12 @@ function ki(t) {
2604
2601
  });
2605
2602
  return e;
2606
2603
  }
2607
- var Di = Object.getOwnPropertyDescriptor, Li = (t, e, n, o) => {
2608
- for (var r = o > 1 ? void 0 : o ? Di(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2604
+ var Li = Object.getOwnPropertyDescriptor, Fi = (t, e, n, o) => {
2605
+ for (var r = o > 1 ? void 0 : o ? Li(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2609
2606
  (c = t[s]) && (r = c(r) || r);
2610
2607
  return r;
2611
2608
  }, it = (t, e) => (n, o) => e(n, o, t);
2612
- const Fi = "default-paste-formula";
2609
+ const Pi = "default-paste-formula";
2613
2610
  let xt = class extends tt {
2614
2611
  constructor(t, e, n, o, r) {
2615
2612
  super(), this._currentUniverSheet = t, this._lexerTreeBuilder = e, this._sheetClipboardService = n, this._injector = o, this._formulaDataModel = r, this._initialize();
@@ -2630,7 +2627,7 @@ let xt = class extends tt {
2630
2627
  }
2631
2628
  _pasteWithFormulaHook() {
2632
2629
  return {
2633
- id: Fi,
2630
+ id: Pi,
2634
2631
  priority: 10,
2635
2632
  onPasteCells: (t, e, n, o) => this._onPasteCells(t, e, n, o, !1)
2636
2633
  };
@@ -2656,7 +2653,7 @@ let xt = class extends tt {
2656
2653
  copyRange: t == null ? void 0 : t.range,
2657
2654
  pasteType: o.pasteType
2658
2655
  };
2659
- return this._injector.invoke((d) => Pi(
2656
+ return this._injector.invoke((d) => $i(
2660
2657
  i,
2661
2658
  l,
2662
2659
  f,
@@ -2670,15 +2667,15 @@ let xt = class extends tt {
2670
2667
  ));
2671
2668
  }
2672
2669
  };
2673
- xt = Li([
2670
+ xt = Fi([
2674
2671
  it(0, ee),
2675
2672
  it(1, B(pe)),
2676
- it(2, mo),
2673
+ it(2, vo),
2677
2674
  it(3, B(ut)),
2678
2675
  it(4, B(ft))
2679
2676
  ], xt);
2680
- function Pi(t, e, n, o, r, s, c, i, l = !1, f) {
2681
- const h = [], g = [], u = $i(t, e, n, o, s, c, i, f);
2677
+ function $i(t, e, n, o, r, s, c, i, l = !1, f) {
2678
+ const h = [], g = [], u = Ui(t, e, n, o, s, c, i, f);
2682
2679
  if (!u.hasValue())
2683
2680
  return {
2684
2681
  undos: [],
@@ -2693,7 +2690,7 @@ function Pi(t, e, n, o, r, s, c, i, l = !1, f) {
2693
2690
  id: Rt.id,
2694
2691
  params: d
2695
2692
  });
2696
- const a = zo(
2693
+ const a = Zo(
2697
2694
  r,
2698
2695
  d
2699
2696
  );
@@ -2705,10 +2702,10 @@ function Pi(t, e, n, o, r, s, c, i, l = !1, f) {
2705
2702
  redos: h
2706
2703
  };
2707
2704
  }
2708
- function $i(t, e, n, o, r, s, c, i) {
2709
- return i ? r.pasteType === Ze.SPECIAL_PASTE_VALUE ? Vi(t, e, n, o, c, i) : r.pasteType === Ze.SPECIAL_PASTE_FORMULA ? Wi(t, e, n, o, s, c, i) : Hi(t, e, n, o, r.copyType, s, c, i) : Ui(t, e, n, o, c);
2705
+ function Ui(t, e, n, o, r, s, c, i) {
2706
+ return i ? r.pasteType === Ze.SPECIAL_PASTE_VALUE ? Wi(t, e, n, o, c, i) : r.pasteType === Ze.SPECIAL_PASTE_FORMULA ? Hi(t, e, n, o, s, c, i) : Bi(t, e, n, o, r.copyType, s, c, i) : Vi(t, e, n, o, c);
2710
2707
  }
2711
- function Ui(t, e, n, o, r) {
2708
+ function Vi(t, e, n, o, r) {
2712
2709
  const s = new Ae(), c = r.getSheetFormulaData(t, e);
2713
2710
  return o.forValue((i, l, f) => {
2714
2711
  var d;
@@ -2716,7 +2713,7 @@ function Ui(t, e, n, o, r) {
2716
2713
  Ee(f.v) ? (u.v = null, u.f = `${f.v}`, u.si = null, u.p = null, s.setValue(h, g, u)) : (d = c == null ? void 0 : c[h]) != null && d[g] && (u.v = f.v, u.f = null, u.si = null, u.p = null, s.setValue(h, g, u));
2717
2714
  }), s;
2718
2715
  }
2719
- function Vi(t, e, n, o, r, s) {
2716
+ function Wi(t, e, n, o, r, s) {
2720
2717
  var f, h;
2721
2718
  const c = new Ae(), i = (h = (f = r.getArrayFormulaCellData()) == null ? void 0 : f[s.unitId]) == null ? void 0 : h[s.subUnitId], l = r.getSheetFormulaData(t, e);
2722
2719
  return o.forValue((g, u, d) => {
@@ -2729,14 +2726,14 @@ function Vi(t, e, n, o, r, s) {
2729
2726
  p.v = C.v, p.f = null, p.si = null, p.p = null, c.setValue(m, v, p);
2730
2727
  } else if ((R = l == null ? void 0 : l[m]) != null && R[v]) {
2731
2728
  if (p.v = d.v, p.f = null, p.si = null, p.p = null, d.p) {
2732
- const C = yr(d);
2729
+ const C = xr(d);
2733
2730
  C && (p.v = C);
2734
2731
  }
2735
2732
  c.setValue(m, v, p);
2736
2733
  }
2737
2734
  }), c;
2738
2735
  }
2739
- function Wi(t, e, n, o, r, s, c) {
2736
+ function Hi(t, e, n, o, r, s, c) {
2740
2737
  const i = new Ae(), l = /* @__PURE__ */ new Map();
2741
2738
  return o.forValue((f, h, g) => {
2742
2739
  const u = n.rows[f], d = n.cols[h], a = {};
@@ -2765,14 +2762,14 @@ function Wi(t, e, n, o, r, s, c) {
2765
2762
  a.v = null, a.p = null, i.setValue(u, d, a);
2766
2763
  } else {
2767
2764
  if (a.v = g.v, a.f = null, a.si = null, a.p = null, g.p) {
2768
- const S = yr(g);
2765
+ const S = xr(g);
2769
2766
  S && (a.v = S);
2770
2767
  }
2771
2768
  i.setValue(u, d, a);
2772
2769
  }
2773
2770
  }), i;
2774
2771
  }
2775
- function Hi(t, e, n, o, r, s, c, i) {
2772
+ function Bi(t, e, n, o, r, s, c, i) {
2776
2773
  const l = new Ae(), f = /* @__PURE__ */ new Map(), h = c.getSheetFormulaData(t, e), g = [];
2777
2774
  return r === qn.CUT ? o.forValue((u, d, a) => {
2778
2775
  const S = n.rows[u], m = n.cols[d], v = {};
@@ -2836,7 +2833,7 @@ function Hi(t, e, n, o, r, s, c, i) {
2836
2833
  }
2837
2834
  }), l;
2838
2835
  }
2839
- function yr(t) {
2836
+ function xr(t) {
2840
2837
  if (t != null && t.p) {
2841
2838
  const e = t == null ? void 0 : t.p.body;
2842
2839
  if (e == null)
@@ -2845,8 +2842,8 @@ function yr(t) {
2845
2842
  return n.substring(n.length - 2, n.length) === Vn ? n.substring(0, n.length - 2) : n;
2846
2843
  }
2847
2844
  }
2848
- var Bi = Object.getOwnPropertyDescriptor, ji = (t, e, n, o) => {
2849
- for (var r = o > 1 ? void 0 : o ? Bi(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2845
+ var ji = Object.getOwnPropertyDescriptor, qi = (t, e, n, o) => {
2846
+ for (var r = o > 1 ? void 0 : o ? ji(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2850
2847
  (c = t[s]) && (r = c(r) || r);
2851
2848
  return r;
2852
2849
  }, $e = (t, e) => (n, o) => e(n, o, t);
@@ -2881,7 +2878,7 @@ let Ot = class extends tt {
2881
2878
  _initInterceptorEditorStart() {
2882
2879
  this.disposeWithMe(
2883
2880
  Wn(
2884
- this._sheetInterceptorService.writeCellInterceptor.intercept(Zo, {
2881
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Xo, {
2885
2882
  handler: (e, n, o) => {
2886
2883
  var a, S, m, v;
2887
2884
  const { row: r, col: s, unitId: c, subUnitId: i, worksheet: l } = n, f = this._formulaDataModel.getArrayFormulaRange(), h = this._formulaDataModel.getArrayFormulaCellData();
@@ -2900,10 +2897,10 @@ let Ot = class extends tt {
2900
2897
  }
2901
2898
  _commandExecutedListener() {
2902
2899
  this.disposeWithMe(this._commandService.onCommandExecuted((e, n) => {
2903
- (e.id === To.id || e.id === Mo.id && n && n.remove) && this._removeArrayFormulaRangeShape();
2900
+ (e.id === Mo.id || e.id === No.id && n && n.remove) && this._removeArrayFormulaRangeShape();
2904
2901
  })), this.disposeWithMe(
2905
2902
  this._commandService.beforeCommandExecuted((e) => {
2906
- Xo.id === e.id && requestIdleCallback(() => {
2903
+ Qo.id === e.id && requestIdleCallback(() => {
2907
2904
  const n = e.params, { unitId: o, subUnitId: r, rowsAutoHeightInfo: s } = n;
2908
2905
  this._refreshArrayFormulaRangeShapeByRow(o, r, s);
2909
2906
  });
@@ -2945,7 +2942,7 @@ let Ot = class extends tt {
2945
2942
  fill: new Zt(c.colorWhite).setAlpha(0).toString(),
2946
2943
  widgets: {}
2947
2944
  }
2948
- }, l = Ht(i, r), { rowHeaderWidth: f, columnHeaderHeight: h } = r, g = new jn(s, vo.FORMULA_EDITOR_SHOW, this._themeService, {
2945
+ }, l = Ht(i, r), { rowHeaderWidth: f, columnHeaderHeight: h } = r, g = new jn(s, So.FORMULA_EDITOR_SHOW, this._themeService, {
2949
2946
  highlightHeader: !1,
2950
2947
  rowHeaderWidth: f,
2951
2948
  columnHeaderHeight: h
@@ -2988,40 +2985,40 @@ let Ot = class extends tt {
2988
2985
  }
2989
2986
  }
2990
2987
  };
2991
- Ot = ji([
2988
+ Ot = qi([
2992
2989
  $e(1, B(tn)),
2993
2990
  $e(2, B(ft)),
2994
2991
  $e(3, B(dt)),
2995
2992
  $e(4, xe),
2996
2993
  $e(5, B(wt)),
2997
2994
  $e(6, ue),
2998
- $e(7, Gr)
2995
+ $e(7, zr)
2999
2996
  ], Ot);
3000
- var qi = Object.getOwnPropertyDescriptor, Ki = (t, e, n, o) => {
3001
- for (var r = o > 1 ? void 0 : o ? qi(e, n) : e, s = t.length - 1, c; s >= 0; s--)
2997
+ var Ki = Object.getOwnPropertyDescriptor, Yi = (t, e, n, o) => {
2998
+ for (var r = o > 1 ? void 0 : o ? Ki(e, n) : e, s = t.length - 1, c; s >= 0; s--)
3002
2999
  (c = t[s]) && (r = c(r) || r);
3003
3000
  return r;
3004
3001
  }, Pn = (t, e) => (n, o) => e(n, o, t);
3005
- const Yi = {
3002
+ const Gi = {
3006
3003
  tl: {
3007
3004
  size: 6,
3008
3005
  color: "#409f11"
3009
3006
  }
3010
3007
  };
3011
- let Tt = class extends zr {
3008
+ let Tt = class extends Zr {
3012
3009
  constructor(t, e) {
3013
3010
  super(), this._sheetInterceptorService = t, this._formulaDataModel = e, this.disposeWithMe(this._sheetInterceptorService.intercept(
3014
- Qo.CELL_CONTENT,
3011
+ Jo.CELL_CONTENT,
3015
3012
  {
3016
- effect: Zr.Style,
3013
+ effect: Xr.Style,
3017
3014
  handler: (n, o, r) => {
3018
3015
  var i, l, f, h;
3019
3016
  const s = (h = (f = (l = (i = this._formulaDataModel.getArrayFormulaCellData()) == null ? void 0 : i[o.unitId]) == null ? void 0 : l[o.subUnitId]) == null ? void 0 : f[o.row]) == null ? void 0 : h[o.col];
3020
- return Ir(n, !!s) ? r({
3017
+ return yr(n, !!s) ? r({
3021
3018
  ...n,
3022
3019
  markers: {
3023
3020
  ...n == null ? void 0 : n.markers,
3024
- ...Yi
3021
+ ...Gi
3025
3022
  }
3026
3023
  }) : r(n);
3027
3024
  },
@@ -3030,19 +3027,19 @@ let Tt = class extends zr {
3030
3027
  ));
3031
3028
  }
3032
3029
  };
3033
- Tt = Ki([
3030
+ Tt = Yi([
3034
3031
  Pn(0, B(tn)),
3035
3032
  Pn(1, B(ft))
3036
3033
  ], Tt);
3037
- function Gi() {
3038
- const t = x(es), e = x(ue), n = Se(t.progress$), o = bt(() => {
3039
- e.executeCommand(No.id);
3034
+ function zi() {
3035
+ const t = x(ts), e = x(ue), n = Se(t.progress$), o = bt(() => {
3036
+ e.executeCommand(wo.id);
3040
3037
  }, [e]), r = bt(() => {
3041
3038
  t.clearProgress();
3042
3039
  }, [t]);
3043
- return /* @__PURE__ */ T(ss, { progress: n, onTerminate: o, onClearProgress: r });
3040
+ return /* @__PURE__ */ T(is, { progress: n, onTerminate: o, onClearProgress: r });
3044
3041
  }
3045
- function xr(t) {
3042
+ function Or(t) {
3046
3043
  const { prefix: e, value: n } = t;
3047
3044
  return /* @__PURE__ */ V("div", { children: [
3048
3045
  /* @__PURE__ */ V("span", { children: [
@@ -3050,7 +3047,7 @@ function xr(t) {
3050
3047
  "("
3051
3048
  ] }),
3052
3049
  n && n.map((o, r) => /* @__PURE__ */ V("span", { children: [
3053
- /* @__PURE__ */ T("span", { children: pr(o) }),
3050
+ /* @__PURE__ */ T("span", { children: Cr(o) }),
3054
3051
  r === n.length - 1 ? "" : ","
3055
3052
  ] }, r)),
3056
3053
  ")"
@@ -3072,7 +3069,7 @@ function ct(t) {
3072
3069
  /* @__PURE__ */ T("div", { className: "univer-font-normal univer-text-gray-900", children: n })
3073
3070
  ] });
3074
3071
  }
3075
- function zi(t) {
3072
+ function Zi(t) {
3076
3073
  const { functionInfo: e, onChange: n } = t;
3077
3074
  if (!e) return null;
3078
3075
  const [o, r] = U([]), [s, c] = U(e.functionParameter), [i, l] = U(-1);
@@ -3084,14 +3081,14 @@ function zi(t) {
3084
3081
  /* @__PURE__ */ T("div", { className: "univer-flex-1 univer-border-l univer-border-solid univer-border-gray-200 univer-p-3", children: /* @__PURE__ */ T(
3085
3082
  ct,
3086
3083
  {
3087
- title: i === -1 ? /* @__PURE__ */ T(xr, { prefix: e.functionName, value: s }) : s[i].name,
3084
+ title: i === -1 ? /* @__PURE__ */ T(Or, { prefix: e.functionName, value: s }) : s[i].name,
3088
3085
  value: i === -1 ? e.description : s[i].detail
3089
3086
  }
3090
3087
  ) })
3091
3088
  ] });
3092
3089
  }
3093
- function Zi(t) {
3094
- const { onChange: e } = t, n = "-1", [o, r] = U(""), [s, c] = U([]), [i, l] = U(0), [f, h] = U(n), [g, u] = U(0), [d, a] = U(null), S = x(kt), m = x(et), v = x(nn), p = Se(v.sidebarOptions$), _ = Us(wo, m);
3090
+ function Xi(t) {
3091
+ const { onChange: e } = t, n = "-1", [o, r] = U(""), [s, c] = U([]), [i, l] = U(0), [f, h] = U(n), [g, u] = U(0), [d, a] = U(null), S = x(kt), m = x(et), v = x(nn), p = Se(v.sidebarOptions$), _ = Vs(Ao, m);
3095
3092
  _.unshift({
3096
3093
  label: m.t("formula.moreFunctions.allFunctions"),
3097
3094
  value: n
@@ -3147,9 +3144,9 @@ function Zi(t) {
3147
3144
  };
3148
3145
  return /* @__PURE__ */ V("div", { children: [
3149
3146
  /* @__PURE__ */ V("div", { className: "univer-flex univer-items-center univer-justify-between univer-gap-[10%]", children: [
3150
- /* @__PURE__ */ T(gs, { value: f, options: _, onChange: k }),
3147
+ /* @__PURE__ */ T(ms, { value: f, options: _, onChange: k }),
3151
3148
  /* @__PURE__ */ T(
3152
- sr,
3149
+ ir,
3153
3150
  {
3154
3151
  placeholder: m.t("formula.moreFunctions.searchFunctionPlaceholder"),
3155
3152
  onKeyDown: O,
@@ -3185,7 +3182,7 @@ function Zi(t) {
3185
3182
  onClick: () => M(b),
3186
3183
  children: [
3187
3184
  g === b && /* @__PURE__ */ T(
3188
- hr,
3185
+ fr,
3189
3186
  {
3190
3187
  className: `
3191
3188
  univer-absolute univer-left-1.5 univer-top-1/2 univer-inline-flex
@@ -3206,7 +3203,7 @@ function Zi(t) {
3206
3203
  ct,
3207
3204
  {
3208
3205
  title: m.t("formula.moreFunctions.syntax"),
3209
- value: /* @__PURE__ */ T(xr, { prefix: d.functionName, value: d.functionParameter })
3206
+ value: /* @__PURE__ */ T(Or, { prefix: d.functionName, value: d.functionParameter })
3210
3207
  }
3211
3208
  ),
3212
3209
  /* @__PURE__ */ T(
@@ -3227,8 +3224,8 @@ function Zi(t) {
3227
3224
  ] })
3228
3225
  ] });
3229
3226
  }
3230
- function Xi() {
3231
- const t = So(), [e, n] = U(!0), [o, r] = U(!1), [s, c] = U(null);
3227
+ function Qi() {
3228
+ const t = po(), [e, n] = U(!0), [o, r] = U(!1), [s, c] = U(null);
3232
3229
  x(Xt);
3233
3230
  const i = x(et), l = x(He), f = x(ee), h = x(ue);
3234
3231
  function g() {
@@ -3246,8 +3243,8 @@ function Xi() {
3246
3243
  a == null || a.replaceText(m), S == null || S.replaceText(m, !1);
3247
3244
  }
3248
3245
  return /* @__PURE__ */ V("div", { className: "univer-flex univer-h-full univer-flex-col univer-justify-between univer-leading-5", children: [
3249
- e && /* @__PURE__ */ T(Zi, { onChange: c }),
3250
- o && /* @__PURE__ */ T(zi, { functionInfo: s, onChange: () => {
3246
+ e && /* @__PURE__ */ T(Xi, { onChange: c }),
3247
+ o && /* @__PURE__ */ T(Zi, { functionInfo: s, onChange: () => {
3251
3248
  } }),
3252
3249
  /* @__PURE__ */ V(
3253
3250
  "div",
@@ -3278,7 +3275,7 @@ function Xi() {
3278
3275
  )
3279
3276
  ] });
3280
3277
  }
3281
- function Qi(t) {
3278
+ function Ji(t) {
3282
3279
  return {
3283
3280
  id: cn.id,
3284
3281
  icon: "FunctionSingle",
@@ -3326,59 +3323,59 @@ function Qi(t) {
3326
3323
  icon: "MinSingle"
3327
3324
  }
3328
3325
  ],
3329
- hidden$: is(t, J.UNIVER_SHEET),
3326
+ hidden$: cs(t, J.UNIVER_SHEET),
3330
3327
  disabled$: Kn(t, { workbookTypes: [tr], worksheetTypes: [Jn, Qn], rangeTypes: [er] })
3331
3328
  };
3332
3329
  }
3333
- function Ji(t) {
3330
+ function ec(t) {
3334
3331
  return {
3335
3332
  id: an.id,
3336
3333
  title: "formula.insert.more",
3337
3334
  type: rn.BUTTON
3338
3335
  };
3339
3336
  }
3340
- function ec(t) {
3337
+ function tc(t) {
3341
3338
  return t.get(ee).getCurrentTypeOfUnit$(J.UNIVER_SHEET).pipe(
3342
- Po((o) => o ? t.get(Mn) ? new $o((s) => s.next(!t.get(Mn).supportClipboard)) : En(!0) : En(!0))
3339
+ $o((o) => o ? t.get(Mn) ? new Uo((s) => s.next(!t.get(Mn).supportClipboard)) : En(!0) : En(!0))
3343
3340
  );
3344
3341
  }
3345
- function tc(t) {
3342
+ function nc(t) {
3346
3343
  return {
3347
3344
  id: on.id,
3348
3345
  type: rn.BUTTON,
3349
3346
  title: "formula.operation.pasteFormula",
3350
- disabled$: ec(t).pipe(
3351
- Fo(Kn(t, { workbookTypes: [tr], rangeTypes: [er], worksheetTypes: [Qn, Jn] })),
3347
+ disabled$: tc(t).pipe(
3348
+ Po(Kn(t, { workbookTypes: [tr], rangeTypes: [er], worksheetTypes: [Qn, Jn] })),
3352
3349
  zn(([e, n]) => e || n)
3353
3350
  )
3354
3351
  };
3355
3352
  }
3356
- const nc = {
3357
- [cs.FORMULAS_INSERT]: {
3353
+ const rc = {
3354
+ [as.FORMULAS_INSERT]: {
3358
3355
  [cn.id]: {
3359
3356
  order: 1,
3360
- menuItemFactory: Qi,
3357
+ menuItemFactory: Ji,
3361
3358
  [an.id]: {
3362
3359
  order: 1,
3363
- menuItemFactory: Ji
3360
+ menuItemFactory: ec
3364
3361
  }
3365
3362
  }
3366
3363
  },
3367
- [po]: {
3364
+ [Co]: {
3368
3365
  [on.id]: {
3369
3366
  order: 4,
3370
- menuItemFactory: tc
3367
+ menuItemFactory: nc
3371
3368
  }
3372
3369
  }
3373
- }, rc = "meta_key_ctrl_And_Shift", Lt = [
3370
+ }, oc = "meta_key_ctrl_And_Shift", Lt = [
3374
3371
  F.ARROW_DOWN,
3375
3372
  F.ARROW_UP,
3376
3373
  F.ARROW_LEFT,
3377
3374
  F.ARROW_RIGHT
3378
- ], oc = [...Lt, F.ENTER, F.TAB, F.ESC];
3379
- function sc() {
3375
+ ], sc = [...Lt, F.ENTER, F.TAB, F.ESC];
3376
+ function ic() {
3380
3377
  const t = [];
3381
- for (const e of oc)
3378
+ for (const e of sc)
3382
3379
  t.push({
3383
3380
  id: rt.id,
3384
3381
  binding: e,
@@ -3390,7 +3387,7 @@ function sc() {
3390
3387
  });
3391
3388
  return t;
3392
3389
  }
3393
- function ic() {
3390
+ function cc() {
3394
3391
  const t = [];
3395
3392
  for (const e of Lt)
3396
3393
  t.push({
@@ -3405,7 +3402,7 @@ function ic() {
3405
3402
  });
3406
3403
  return t;
3407
3404
  }
3408
- function cc() {
3405
+ function ac() {
3409
3406
  const t = [];
3410
3407
  for (const e of Lt)
3411
3408
  t.push({
@@ -3420,7 +3417,7 @@ function cc() {
3420
3417
  });
3421
3418
  return t;
3422
3419
  }
3423
- function ac() {
3420
+ function lc() {
3424
3421
  const t = [];
3425
3422
  for (const e of Lt)
3426
3423
  t.push({
@@ -3430,23 +3427,23 @@ function ac() {
3430
3427
  staticParameters: {
3431
3428
  eventType: ye.Keyboard,
3432
3429
  keycode: e,
3433
- metaKey: rc
3430
+ metaKey: oc
3434
3431
  }
3435
3432
  });
3436
3433
  return t;
3437
3434
  }
3438
- const lc = {
3439
- id: lr.id,
3435
+ const uc = {
3436
+ id: ur.id,
3440
3437
  binding: F.F4,
3441
3438
  preconditions: (t) => ht(t)
3442
3439
  };
3443
- function uc() {
3440
+ function dc() {
3444
3441
  const t = [];
3445
3442
  for (const e of [F.ENTER, F.TAB, F.ARROW_DOWN, F.ARROW_UP])
3446
3443
  t.push({
3447
3444
  id: rt.id,
3448
3445
  binding: e,
3449
- preconditions: (n) => xi(n),
3446
+ preconditions: (n) => Oi(n),
3450
3447
  staticParameters: {
3451
3448
  eventType: ye.Keyboard,
3452
3449
  keycode: e,
@@ -3455,8 +3452,8 @@ function uc() {
3455
3452
  });
3456
3453
  return t;
3457
3454
  }
3458
- var dc = Object.getOwnPropertyDescriptor, hc = (t, e, n, o) => {
3459
- for (var r = o > 1 ? void 0 : o ? dc(e, n) : e, s = t.length - 1, c; s >= 0; s--)
3455
+ var hc = Object.getOwnPropertyDescriptor, fc = (t, e, n, o) => {
3456
+ for (var r = o > 1 ? void 0 : o ? hc(e, n) : e, s = t.length - 1, c; s >= 0; s--)
3460
3457
  (c = t[s]) && (r = c(r) || r);
3461
3458
  return r;
3462
3459
  }, Ue = (t, e) => (n, o) => e(n, o, t);
@@ -3468,50 +3465,50 @@ let Mt = class extends tt {
3468
3465
  this._registerCommands(), this._registerMenus(), this._registerShortcuts(), this._registerComponents(), this._registerRenderModules();
3469
3466
  }
3470
3467
  _registerMenus() {
3471
- this._menuManagerService.mergeMenu(nc);
3468
+ this._menuManagerService.mergeMenu(rc);
3472
3469
  }
3473
3470
  _registerCommands() {
3474
3471
  [
3475
3472
  on,
3476
3473
  cn,
3477
3474
  an,
3478
- Ts,
3479
- Rs,
3475
+ Ms,
3476
+ bs,
3480
3477
  rt,
3481
- lr
3478
+ ur
3482
3479
  ].forEach((t) => this.disposeWithMe(this._commandService.registerCommand(t)));
3483
3480
  }
3484
3481
  _registerShortcuts() {
3485
3482
  [
3486
- ...sc(),
3487
3483
  ...ic(),
3488
3484
  ...cc(),
3489
3485
  ...ac(),
3490
- ...uc(),
3491
- lc
3486
+ ...lc(),
3487
+ ...dc(),
3488
+ uc
3492
3489
  ].forEach((t) => {
3493
3490
  this.disposeWithMe(this._shortcutService.registerShortcut(t));
3494
3491
  });
3495
3492
  }
3496
3493
  _registerComponents() {
3497
- this.disposeWithMe(this._uiPartsService.registerComponent(Co.FORMULA_AUX, () => or(Gi, this._injector))), this._componentManager.register(ar, Xi);
3494
+ this.disposeWithMe(this._uiPartsService.registerComponent(_o.FORMULA_AUX, () => or(zi, this._injector))), this._componentManager.register(lr, Qi);
3498
3495
  }
3499
3496
  _registerRenderModules() {
3500
3497
  this.disposeWithMe(this._renderManagerService.registerRenderModule(J.UNIVER_SHEET, [Ot]));
3501
3498
  }
3502
3499
  };
3503
- Mt = hc([
3500
+ Mt = fc([
3504
3501
  Ue(0, B(ut)),
3505
- Ue(1, as),
3502
+ Ue(1, ls),
3506
3503
  Ue(2, ue),
3507
3504
  Ue(3, Dt),
3508
3505
  Ue(4, nr),
3509
3506
  Ue(5, xe),
3510
3507
  Ue(6, B(rr))
3511
3508
  ], Mt);
3512
- const fc = () => {
3509
+ const gc = () => {
3513
3510
  var o, r;
3514
- const t = x(Er), e = Se(t.currentSelector$), n = Y(null);
3511
+ const t = x(Ir), e = Se(t.currentSelector$), n = Y(null);
3515
3512
  return P(() => {
3516
3513
  var s, c;
3517
3514
  if (e)
@@ -3520,7 +3517,7 @@ const fc = () => {
3520
3517
  (i = n.current) == null || i.hideDialog();
3521
3518
  };
3522
3519
  }, [e]), /* @__PURE__ */ T(
3523
- br,
3520
+ Er,
3524
3521
  {
3525
3522
  unitId: (o = e == null ? void 0 : e.unitId) != null ? o : "",
3526
3523
  subUnitId: (r = e == null ? void 0 : e.subUnitId) != null ? r : "",
@@ -3533,24 +3530,24 @@ const fc = () => {
3533
3530
  }
3534
3531
  );
3535
3532
  };
3536
- var gc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, vc = (t, e, n) => e in t ? gc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Sc = (t, e, n, o) => {
3537
- for (var r = o > 1 ? void 0 : o ? mc(e, n) : e, s = t.length - 1, c; s >= 0; s--)
3533
+ var mc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, Sc = (t, e, n) => e in t ? mc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pc = (t, e, n, o) => {
3534
+ for (var r = o > 1 ? void 0 : o ? vc(e, n) : e, s = t.length - 1, c; s >= 0; s--)
3538
3535
  (c = t[s]) && (r = c(r) || r);
3539
3536
  return r;
3540
- }, _t = (t, e) => (n, o) => e(n, o, t), Or = (t, e, n) => vc(t, typeof e != "symbol" ? e + "" : e, n);
3541
- let Nt = class extends Jr {
3537
+ }, _t = (t, e) => (n, o) => e(n, o, t), Tr = (t, e, n) => Sc(t, typeof e != "symbol" ? e + "" : e, n);
3538
+ let Nt = class extends eo {
3542
3539
  constructor(t = Ln, e, n, o, r) {
3543
3540
  super(), this._config = t, this._injector = e, this._renderManagerService = n, this._configService = o, this._uiPartsService = r;
3544
- const { menu: s, ...c } = eo(
3541
+ const { menu: s, ...c } = to(
3545
3542
  Ln,
3546
3543
  this._config
3547
3544
  );
3548
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(yi, c, { merge: !0 });
3545
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(xi, c, { merge: !0 });
3549
3546
  }
3550
3547
  onStarting() {
3551
- to(this._injector, [
3548
+ no(this._injector, [
3552
3549
  [sn, { useClass: qt }],
3553
- [Er],
3550
+ [Ir],
3554
3551
  [Mt],
3555
3552
  [yt],
3556
3553
  [xt],
@@ -3571,7 +3568,7 @@ let Nt = class extends Jr {
3571
3568
  [Yt]
3572
3569
  ].forEach((t) => {
3573
3570
  this.disposeWithMe(this._renderManagerService.registerRenderModule(J.UNIVER_SHEET, t));
3574
- }), no(this._injector, [
3571
+ }), ro(this._injector, [
3575
3572
  [Mt],
3576
3573
  // FormulaProgressBar relies on TriggerCalculationController, but it is necessary to ensure that the formula calculation is done after rendered.
3577
3574
  [xt],
@@ -3583,30 +3580,30 @@ let Nt = class extends Jr {
3583
3580
  }
3584
3581
  _initUIPart() {
3585
3582
  const t = this._injector.get(rr);
3586
- this.disposeWithMe(t.register(_o, br)), this.disposeWithMe(t.register(Ro, vi)), this.disposeWithMe(this._uiPartsService.registerComponent(ls.GLOBAL, () => or(fc, this._injector)));
3583
+ this.disposeWithMe(t.register(Ro, Er)), this.disposeWithMe(t.register(bo, Si)), this.disposeWithMe(this._uiPartsService.registerComponent(us.GLOBAL, () => or(gc, this._injector)));
3587
3584
  }
3588
3585
  };
3589
- Or(Nt, "pluginName", cr);
3590
- Or(Nt, "type", J.UNIVER_SHEET);
3591
- Nt = Sc([
3592
- Xr(Ao, ts),
3586
+ Tr(Nt, "pluginName", ar);
3587
+ Tr(Nt, "type", J.UNIVER_SHEET);
3588
+ Nt = pc([
3589
+ Qr(ko, ns),
3593
3590
  _t(1, B(ut)),
3594
3591
  _t(2, xe),
3595
- _t(3, Qr),
3592
+ _t(3, Jr),
3596
3593
  _t(4, nr)
3597
3594
  ], Nt);
3598
3595
  export {
3599
- _s as FORMULA_PROMPT_ACTIVATED,
3600
- vi as FormulaEditor,
3596
+ Rs as FORMULA_PROMPT_ACTIVATED,
3597
+ Si as FormulaEditor,
3601
3598
  It as FormulaReorderController,
3602
- Er as GlobalRangeSelectorService,
3603
- Rs as HelpFunctionOperation,
3599
+ Ir as GlobalRangeSelectorService,
3600
+ bs as HelpFunctionOperation,
3604
3601
  cn as InsertFunctionOperation,
3605
3602
  an as MoreFunctionsOperation,
3606
- br as RangeSelector,
3603
+ Er as RangeSelector,
3607
3604
  ke as RefSelectionsRenderService,
3608
- lr as ReferenceAbsoluteOperation,
3609
- Ts as SearchFunctionOperation,
3605
+ ur as ReferenceAbsoluteOperation,
3606
+ Ms as SearchFunctionOperation,
3610
3607
  rt as SelectEditorFormulaOperation,
3611
3608
  on as SheetOnlyPasteFormulaCommand,
3612
3609
  Nt as UniverSheetsFormulaUIPlugin