@univerjs/sheets-ui 0.8.0 → 0.8.1-nightly.202506121607

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
@@ -2,12 +2,12 @@ var Mp = Object.defineProperty;
2
2
  var Ep = (r, e, t) => e in r ? Mp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var b = (r, e, t) => Ep(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { DOCS_VIEW_KEY as Tp, IEditorService as vi, getCanvasOffsetByEngine as ou, VIEWPORT_KEY as _s, DOCS_COMPONENT_MAIN_LAYER_INDEX as Pp, DocSelectionRenderService as gr, BreakLineCommand as xp, DeleteLeftCommand as Hh, DeleteRightCommand as Op, ReplaceSnapshotCommand as Vh, MoveSelectionOperation as Ap, MoveCursorOperation as Hp, SetInlineFormatBoldCommand as Vp, SetInlineFormatItalicCommand as kp, SetInlineFormatUnderlineCommand as Np, SetInlineFormatStrikethroughCommand as Dp, SetInlineFormatSubscriptCommand as Lp, SetInlineFormatSuperscriptCommand as Wp, SetInlineFormatFontSizeCommand as Bp, SetInlineFormatFontFamilyCommand as Fp, SetInlineFormatTextColorCommand as kh, SetInlineFormatCommand as Po, convertBodyToHtml as Up, NodePositionConvertToCursor as Nh, getLineBounding as Dh, DOC_VERTICAL_PADDING as Xp, IMEInputCommand as zp, InsertCommand as jp, CoverContentCommand as Yp } from "@univerjs/docs-ui";
5
- import { CommandType as Q, createInterceptorKey as kn, ColorKit as xn, RANGE_TYPE as X, convertCellToRange as bs, UniverInstanceType as x, IUniverInstanceService as N, Quantity as uc, Disposable as oe, toDisposable as We, Tools as le, createIdentifier as jt, InterceptorManager as Si, ThemeService as At, Inject as k, Injector as bt, IConfigService as pn, generateRandomId as xo, ObjectMatrix as Ge, Direction as F, isFormulaString as ed, isFormulaId as Zp, CellValueType as Mt, numfmt as mn, ICommandService as L, IUndoRedoService as Yt, Rectangle as ae, sequenceExecute as Oo, IContextService as ke, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Le, EDITOR_ACTIVATED as Je, FOCUSING_EDITOR_STANDALONE as yl, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as De, Workbook as Gp, Optional as td, FOCUSING_SHEET as Ht, RxDisposable as Nn, DisposableCollection as gt, IPermissionService as rt, fromEventSubject as Rs, sortRules as qp, LocaleService as Pe, getReverseDirection as Lh, FOCUSING_FX_BAR_EDITOR as Ot, BooleanNumber as Qe, nameCharacterCheck as Kp, throttle as Qp, debounce as hc, VerticalAlign as an, HorizontalAlign as Rt, WrapStrategy as mr, FOCUSING_UNIVER_EDITOR as yr, FOCUSING_COMMON_DRAWINGS as Ml, FOCUSING_EDITOR_INPUT_FORMULA as Is, LocaleType as su, FOCUSING_EDITOR_BUT_HIDDEN as gc, DEFAULT_EMPTY_DOCUMENT_VALUE as Wh, LRUMap as Jp, BaselineOffset as lu, DataStreamTreeTokenType as $p, skipParseTagNames as ev, CustomRangeType as nd, DEFAULT_WORKSHEET_ROW_HEIGHT as mc, ILogService as El, ErrorService as tv, CellModeEnum as Bh, isNotNullOrUndefined as nv, extractPureTextFromCell as Fh, UserManagerService as Nt, DEFAULT_STYLES as rd, FontWeight as $o, FontItalic as es, composeStyles as rv, get as wa, Dimension as Uh, BorderStyleTypes as Ae, AbsoluteRefType as au, NilCommand as id, UndoCommandId as iv, willLoseNumericPrecision as ov, Range as gs, cellToRange as sv, handleStyleToString as cu, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as du, DEFAULT_WORKSHEET_COLUMN_WIDTH as uu, PresetListType as lv, isRealNum as Xh, InterceptorEffectEnum as av, splitIntoGrid as cv, IAuthzIoService as Tl, isValidRange as dv, dayjs as hu, BuildTextUtils as uv, DependentOn as zh, Plugin as jh, DocumentFlavor as hv, set as gv, merge as mv, registerDependencies as gu, mergeOverrideWithDependencies as fv, touchDependencies as _a } from "@univerjs/core";
5
+ import { CommandType as Q, createInterceptorKey as kn, ColorKit as xn, RANGE_TYPE as X, convertCellToRange as bs, UniverInstanceType as x, IUniverInstanceService as N, Quantity as uc, Disposable as oe, toDisposable as We, Tools as le, createIdentifier as jt, InterceptorManager as Si, ThemeService as At, Inject as k, Injector as bt, IConfigService as pn, generateRandomId as xo, ObjectMatrix as Ge, Direction as F, isFormulaString as ed, isFormulaId as Zp, CellValueType as Mt, numfmt as $t, ICommandService as L, IUndoRedoService as Yt, Rectangle as ae, sequenceExecute as Oo, IContextService as ke, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Le, EDITOR_ACTIVATED as Je, FOCUSING_EDITOR_STANDALONE as yl, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as De, Workbook as Gp, Optional as td, FOCUSING_SHEET as Ht, RxDisposable as Nn, DisposableCollection as gt, IPermissionService as rt, fromEventSubject as Rs, sortRules as qp, LocaleService as Pe, getReverseDirection as Lh, FOCUSING_FX_BAR_EDITOR as Ot, BooleanNumber as Qe, nameCharacterCheck as Kp, throttle as Qp, debounce as hc, VerticalAlign as cn, HorizontalAlign as Rt, WrapStrategy as mr, FOCUSING_UNIVER_EDITOR as yr, FOCUSING_COMMON_DRAWINGS as Ml, FOCUSING_EDITOR_INPUT_FORMULA as Is, LocaleType as su, FOCUSING_EDITOR_BUT_HIDDEN as gc, DEFAULT_EMPTY_DOCUMENT_VALUE as Wh, LRUMap as Jp, BaselineOffset as lu, DataStreamTreeTokenType as $p, skipParseTagNames as ev, CustomRangeType as nd, DEFAULT_WORKSHEET_ROW_HEIGHT as mc, ILogService as El, ErrorService as tv, CellModeEnum as Bh, isNotNullOrUndefined as nv, extractPureTextFromCell as Fh, UserManagerService as Nt, DEFAULT_STYLES as rd, FontWeight as $o, FontItalic as es, composeStyles as rv, get as wa, Dimension as Uh, BorderStyleTypes as Ae, AbsoluteRefType as au, NilCommand as id, UndoCommandId as iv, willLoseNumericPrecision as ov, Range as gs, cellToRange as sv, handleStyleToString as cu, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY as du, DEFAULT_WORKSHEET_COLUMN_WIDTH as uu, PresetListType as lv, isRealNum as Xh, InterceptorEffectEnum as av, splitIntoGrid as cv, IAuthzIoService as Tl, isValidRange as dv, dayjs as hu, BuildTextUtils as uv, DependentOn as zh, Plugin as jh, DocumentFlavor as hv, set as gv, merge as mv, registerDependencies as gu, mergeOverrideWithDependencies as fv, touchDependencies as _a } from "@univerjs/core";
6
6
  import { IRenderManagerService as Ce, withCurrentTypeOfRenderer as od, SHEET_VIEWPORT_KEY as U, CURSOR_TYPE as ye, Vector2 as Ve, Rect as we, ScrollTimer as Zr, ScrollTimerType as yt, DashedRect as pv, Group as ba, TRANSFORM_CHANGE_OBSERVABLE_TYPE as fc, cancelRequestFrame as vv, requestNewFrame as Sv, FIX_ONE_PIXEL_BLUR_OFFSET as Cv, Layer as wv, SpreadsheetSkeleton as _v, DeviceInputEventType as ze, convertTransformToOffsetX as Fr, convertTransformToOffsetY as Ur, convertTextRotation as sd, RENDER_RAW_FORMULA_KEY as bv, Spreadsheet as Yh, getCurrentTypeOfRenderer as Pl, RENDER_CLASS_TYPE as Rv, ScrollBar as ld, fixLineWidthByScale as mu, ptToPixel as fu, Shape as ad, SHEET_EXTENSION_PREFIX as pu, SpreadsheetRowHeader as Iv, SpreadsheetColumnHeader as yv, Viewport as Cn, hasCJKText as Mv, DEFAULT_PADDING_DATA as Ev, SheetExtension as Zh, RegularPolygon as Ui, precisionTo as Zn } from "@univerjs/engine-render";
7
- import { useDependency as D, useObservable as ht, KeyCode as Y, ComponentManager as Zt, DISABLE_AUTO_FOCUS_KEY as vu, useEvent as Su, useSidebarClick as Gh, MetaKeys as Se, ISidebarService as Ci, useComponentsOfPart as qh, ComponentContainer as Kh, IConfirmService as tn, useConfigValue as xl, UI_PLUGIN_CONFIG_KEY as Qh, UIMenu as Tv, ContextMenuPosition as Ct, Slider as Pv, IMessageService as Jh, IClipboardInterfaceService as Ol, IMenuManagerService as cd, ToolbarItem as xv, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as Ov, DEFAULT_BACKGROUND_COLOR_RGBA as Av, handleStringToStyle as Hv, textTrim as Cu, INotificationService as Vv, IPlatformService as kv, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as wu, HTML_CLIPBOARD_MIME_TYPE as _u, imageMimeTypeSet as Nv, FILE__BMP_CLIPBOARD_MIME_TYPE as Dv, FILE__WEBP_CLIPBOARD_MIME_TYPE as Lv, FILE__JPEG_CLIPBOARD_MIME_TYPE as Wv, FILE_PNG_CLIPBOARD_MIME_TYPE as Bv, CopyCommand as Fv, CutCommand as Uv, PasteCommand as Xv, SheetPasteShortKeyCommandName as zv, IContextMenuService as Hl, getMenuHiddenObservable as ue, MenuItemType as J, COLOR_PICKER_COMPONENT as dd, FONT_SIZE_LIST as jv, FONT_SIZE_COMPONENT as Yv, FONT_FAMILY_LIST as Zv, FONT_FAMILY_COMPONENT as Gv, FONT_FAMILY_ITEM_COMPONENT as qv, IDialogService as Ao, ICanvasPopupService as Kv, ContextMenuGroup as Ke, RibbonPosition as Qv, RibbonStartGroup as ts, IShortcutService as Vl, IUIPartsService as kl, BuiltInUIPart as Zi, connectInjector as Gr, IZenZoneService as $h, RectPopup as Jv, UniverMobileUIPlugin as $v } from "@univerjs/ui";
7
+ import { useDependency as D, useObservable as ht, KeyCode as Y, ComponentManager as Zt, DISABLE_AUTO_FOCUS_KEY as vu, useEvent as Su, useSidebarClick as Gh, MetaKeys as Se, ISidebarService as Ci, useComponentsOfPart as qh, ComponentContainer as Kh, IConfirmService as nn, useConfigValue as xl, UI_PLUGIN_CONFIG_KEY as Qh, UIMenu as Tv, ContextMenuPosition as Ct, Slider as Pv, IMessageService as Jh, IClipboardInterfaceService as Ol, IMenuManagerService as cd, ToolbarItem as xv, ILayoutService as Al, DEFAULT_BACKGROUND_COLOR_RGB as Ov, DEFAULT_BACKGROUND_COLOR_RGBA as Av, handleStringToStyle as Hv, textTrim as Cu, INotificationService as Vv, IPlatformService as kv, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as wu, HTML_CLIPBOARD_MIME_TYPE as _u, imageMimeTypeSet as Nv, FILE__BMP_CLIPBOARD_MIME_TYPE as Dv, FILE__WEBP_CLIPBOARD_MIME_TYPE as Lv, FILE__JPEG_CLIPBOARD_MIME_TYPE as Wv, FILE_PNG_CLIPBOARD_MIME_TYPE as Bv, CopyCommand as Fv, CutCommand as Uv, PasteCommand as Xv, SheetPasteShortKeyCommandName as zv, IContextMenuService as Hl, getMenuHiddenObservable as ue, MenuItemType as J, COLOR_PICKER_COMPONENT as dd, FONT_SIZE_LIST as jv, FONT_SIZE_COMPONENT as Yv, FONT_FAMILY_LIST as Zv, FONT_FAMILY_COMPONENT as Gv, FONT_FAMILY_ITEM_COMPONENT as qv, IDialogService as Ao, ICanvasPopupService as Kv, ContextMenuGroup as Ke, RibbonPosition as Qv, RibbonStartGroup as ts, IShortcutService as Vl, IUIPartsService as kl, BuiltInUIPart as Zi, connectInjector as Gr, IZenZoneService as $h, RectPopup as Jv, UniverMobileUIPlugin as $v } from "@univerjs/ui";
8
8
  import { forwardRef as dt, useRef as Tn, createElement as st, useState as re, useMemo as wt, useEffect as Me, useCallback as On, useLayoutEffect as eS } from "react";
9
- import { BehaviorSubject as Ee, Subject as xe, of as Ie, merge as St, map as Be, startWith as xt, switchMap as at, takeUntil as ni, distinctUntilChanged as cn, throttleTime as ys, EMPTY as bu, filter as Ho, combineLatest as ct, combineLatestWith as rr, Observable as je, Subscription as qn, withLatestFrom as tS, shareReplay as Ru } from "rxjs";
10
- import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Ms, SELECTION_CONTROL_BORDER_BUFFER_COLOR as ns, SELECTIONS_ENABLED as Xr, REF_SELECTIONS_ENABLED as to, SheetSkeletonService as nS, SheetsSelectionsService as $, SheetInterceptorService as vn, MarkDirtyRowAutoHeightMutation as eg, CancelMarkDirtyRowAutoHeightMutation as tg, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as ng, SetWorksheetRowAutoHeightMutation as Jn, rangeToDiscreteRange as Gi, SetSelectionsOperation as Te, SetRangeValuesMutation as be, generateNullCellValue as rS, SetRangeValuesUndoMutationFactory as $t, BEFORE_CELL_EDIT as iS, SetRangeValuesCommand as Nl, SetWorksheetActiveOperation as nt, MoveRangeMutation as $n, RemoveRowMutation as Vo, RemoveColMutation as ko, InsertRowMutation as No, InsertColMutation as Do, MoveRowsMutation as Dl, MoveColsMutation as Ll, SetWorksheetColWidthMutation as sn, SetWorksheetRowHeightMutation as no, RemoveSheetMutation as An, RemoveMergeUndoMutationFactory as Wl, RemoveWorksheetMergeMutation as Kt, AddWorksheetMergeMutation as Qt, getAddMergeMutationRangeByType as Bl, AddMergeUndoMutationFactory as Fl, WorkbookEditablePermission as K, WorksheetEditPermission as te, UnitAction as ro, alignToMergedCellsBorders as En, getSelectionsService as Lo, SelectionMoveType as Ft, getCellAtRowCol as ms, expandToContinuousRange as oS, ScrollToCellOperation as ud, SetWorksheetShowCommand as hd, WorksheetProtectionRuleModel as ft, RangeProtectionRuleModel as $e, RangeProtectionCache as Wo, WorksheetViewPermission as rg, SetWorksheetOrderMutation as gd, InsertSheetMutation as Mr, SetWorksheetNameMutation as md, SetWorksheetHideMutation as er, SetWorksheetActivateCommand as fd, WorkbookManageCollaboratorPermission as ig, WorkbookRenameSheetPermission as og, SetWorksheetOrderCommand as sS, SetWorksheetNameCommand as lS, SetTabColorMutation as aS, WorkbookCreateSheetPermission as sg, InsertSheetCommand as cS, ClearSelectionFormatCommand as qi, COMMAND_LISTENER_SKELETON_CHANGE as Es, adjustRangeOnMutation as dS, getPrimaryForRange as lg, SetRowHiddenCommand as ag, SetColHiddenCommand as cg, SetBoldCommand as pd, SetItalicCommand as vd, SetUnderlineCommand as Sd, SetStrikeThroughCommand as Cd, SetFontSizeCommand as wd, SetFontFamilyCommand as _d, SetTextColorCommand as dg, SetFrozenMutationFactory as ug, SetFrozenMutation as fr, RangeProtectionPermissionEditPoint as ie, IExclusiveRangeService as uS, CancelFrozenCommand as fs, SetWorksheetRowIsAutoHeightCommand as bd, WorksheetSetRowStylePermission as Er, SetRowHeightCommand as hg, SetRowHiddenMutation as gg, SetRowVisibleMutation as mg, SetSelectedRowsVisibleCommand as fg, WorksheetSetCellStylePermission as Ze, WorksheetSetCellValuePermission as qt, WorksheetSetColumnStylePermission as Tr, SetColWidthCommand as pg, SetColHiddenMutation as vg, SetColVisibleMutation as Sg, SetSelectedColsVisibleCommand as Cg, SetTextRotationCommand as pc, SetTextWrapCommand as vc, SetVerticalTextAlignCommand as Sc, SetHorizontalTextAlignCommand as Cc, ResetBackgroundColorCommand as wg, SetBackgroundColorCommand as Ts, WorksheetCopyPermission as Ps, RangeProtectionPermissionViewPoint as wc, WorkbookCopyPermission as Xi, SetWorksheetRowIsAutoHeightMutation as hS, SetFrozenCommand as gS, InsertRangeMoveDownCommand as _c, InsertRangeMoveRightCommand as bc, InsertRowCommand as mS, InsertColCommand as fS, MoveColsCommand as _g, MoveRowsCommand as bg, RemoveColCommand as Rg, RemoveRowCommand as Ig, MergeCellController as pS, MERGE_CELL_INTERCEPTOR_CHECK as vS, DeltaRowHeightCommand as SS, DeltaColumnWidthCommand as CS, COMMAND_LISTENER_VALUE_CHANGE as wS, AddMergeRedoSelectionsOperationFactory as _S, AddMergeUndoSelectionsOperationFactory as bS, DeleteRangeMoveLeftCommand as Iu, DeleteRangeMoveUpCommand as yu, EditStateEnum as ln, ViewStateEnum as ri, UnitObject as Vt, DeleteWorksheetProtectionCommand as xs, DeleteRangeProtectionMutation as Mu, AddRangeProtectionMutation as RS, RemoveSheetCommand as IS, AddWorksheetProtectionCommand as yg, BorderStyleManagerService as Rc, RefRangeService as yS, IRefSelectionsService as Rd, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Ic, InsertDefinedNameCommand as MS, SetDefinedNameCommand as ES, RemoveDefinedNameCommand as TS, SetBorderBasicCommand as yc, ClearSelectionAllCommand as zi, ClearSelectionContentCommand as pr, WorksheetDeleteRowPermission as PS, WorksheetDeleteColumnPermission as xS, ToggleGridlinesCommand as Mg, ToggleGridlinesMutation as OS, InsertMultiRowsAfterCommand as Eg, WorksheetInsertRowPermission as Bo, InsertMultiRowsAboveCommand as Tg, InsertMultiColsRightCommand as Pg, InsertMultiColsLeftCommand as xg, InsertColBeforeCommand as Og, WorksheetInsertColumnPermission as Ag, InsertRowBeforeCommand as Hg, RemoveWorksheetMergeCommand as Vg, WorkbookCreateProtectPermission as Ul, WorksheetDeleteProtectionPermission as kg, WorksheetManageCollaboratorPermission as AS, SetWorksheetHideCommand as Ng, SetTabColorCommand as Dg, CopySheetCommand as Lg, WorkbookDeleteSheetPermission as HS, WorkbookHideSheetPermission as Wg, AddWorksheetMergeCommand as VS, AddWorksheetMergeHorizontalCommand as kS, AddWorksheetMergeVerticalCommand as NS, AddWorksheetMergeAllCommand as DS, ResetTextColorCommand as LS, MoveRangeCommand as Bg, MAX_CELL_PER_SHEET_KEY as WS, INTERCEPTOR_POINT as BS, SheetPermissionCheckController as Id, INumfmtService as FS, SetProtectionCommand as US, AddRangeProtectionCommand as XS, setEndForRange as zS, baseProtectionActions as jS, DeleteRangeProtectionCommand as YS, WorksheetProtectionPointModel as ZS, SetWorksheetPermissionPointsCommand as GS, getAllWorksheetPermissionPoint as qS, convertSelectionDataToRange as Fg, UniverSheetsPlugin as Ug, RefSelectionsService as Xg, ToggleCellCheckboxCommand as KS, SheetPermissionInitController as QS, SetSpecificRowsVisibleCommand as JS, SetSpecificColsVisibleCommand as $S } from "@univerjs/sheets";
9
+ import { BehaviorSubject as Ee, Subject as xe, of as Ie, merge as St, map as Be, startWith as xt, switchMap as at, takeUntil as ni, distinctUntilChanged as dn, throttleTime as ys, EMPTY as bu, filter as Ho, combineLatest as ct, combineLatestWith as rr, Observable as je, Subscription as qn, withLatestFrom as tS, shareReplay as Ru } from "rxjs";
10
+ import { SELECTION_CONTROL_BORDER_BUFFER_WIDTH as Ms, SELECTION_CONTROL_BORDER_BUFFER_COLOR as ns, SELECTIONS_ENABLED as Xr, REF_SELECTIONS_ENABLED as to, SheetSkeletonService as nS, SheetsSelectionsService as $, SheetInterceptorService as vn, MarkDirtyRowAutoHeightMutation as eg, CancelMarkDirtyRowAutoHeightMutation as tg, getSheetCommandTarget as Ue, SetWorksheetRowAutoHeightMutationFactory as ng, SetWorksheetRowAutoHeightMutation as Jn, rangeToDiscreteRange as Gi, SetSelectionsOperation as Te, SetRangeValuesMutation as be, generateNullCellValue as rS, SetRangeValuesUndoMutationFactory as en, BEFORE_CELL_EDIT as iS, SetRangeValuesCommand as Nl, SetWorksheetActiveOperation as nt, MoveRangeMutation as $n, RemoveRowMutation as Vo, RemoveColMutation as ko, InsertRowMutation as No, InsertColMutation as Do, MoveRowsMutation as Dl, MoveColsMutation as Ll, SetWorksheetColWidthMutation as ln, SetWorksheetRowHeightMutation as no, RemoveSheetMutation as An, RemoveMergeUndoMutationFactory as Wl, RemoveWorksheetMergeMutation as Kt, AddWorksheetMergeMutation as Qt, getAddMergeMutationRangeByType as Bl, AddMergeUndoMutationFactory as Fl, WorkbookEditablePermission as K, WorksheetEditPermission as te, UnitAction as ro, alignToMergedCellsBorders as En, getSelectionsService as Lo, SelectionMoveType as Ft, getCellAtRowCol as ms, expandToContinuousRange as oS, ScrollToCellOperation as ud, SetWorksheetShowCommand as hd, WorksheetProtectionRuleModel as ft, RangeProtectionRuleModel as $e, RangeProtectionCache as Wo, WorksheetViewPermission as rg, SetWorksheetOrderMutation as gd, InsertSheetMutation as Mr, SetWorksheetNameMutation as md, SetWorksheetHideMutation as er, SetWorksheetActivateCommand as fd, WorkbookManageCollaboratorPermission as ig, WorkbookRenameSheetPermission as og, SetWorksheetOrderCommand as sS, SetWorksheetNameCommand as lS, SetTabColorMutation as aS, WorkbookCreateSheetPermission as sg, InsertSheetCommand as cS, ClearSelectionFormatCommand as qi, COMMAND_LISTENER_SKELETON_CHANGE as Es, adjustRangeOnMutation as dS, getPrimaryForRange as lg, SetRowHiddenCommand as ag, SetColHiddenCommand as cg, SetBoldCommand as pd, SetItalicCommand as vd, SetUnderlineCommand as Sd, SetStrikeThroughCommand as Cd, SetFontSizeCommand as wd, SetFontFamilyCommand as _d, SetTextColorCommand as dg, SetFrozenMutationFactory as ug, SetFrozenMutation as fr, RangeProtectionPermissionEditPoint as ie, IExclusiveRangeService as uS, CancelFrozenCommand as fs, SetWorksheetRowIsAutoHeightCommand as bd, WorksheetSetRowStylePermission as Er, SetRowHeightCommand as hg, SetRowHiddenMutation as gg, SetRowVisibleMutation as mg, SetSelectedRowsVisibleCommand as fg, WorksheetSetCellStylePermission as Ze, WorksheetSetCellValuePermission as qt, WorksheetSetColumnStylePermission as Tr, SetColWidthCommand as pg, SetColHiddenMutation as vg, SetColVisibleMutation as Sg, SetSelectedColsVisibleCommand as Cg, SetTextRotationCommand as pc, SetTextWrapCommand as vc, SetVerticalTextAlignCommand as Sc, SetHorizontalTextAlignCommand as Cc, ResetBackgroundColorCommand as wg, SetBackgroundColorCommand as Ts, WorksheetCopyPermission as Ps, RangeProtectionPermissionViewPoint as wc, WorkbookCopyPermission as Xi, SetWorksheetRowIsAutoHeightMutation as hS, SetFrozenCommand as gS, InsertRangeMoveDownCommand as _c, InsertRangeMoveRightCommand as bc, InsertRowCommand as mS, InsertColCommand as fS, MoveColsCommand as _g, MoveRowsCommand as bg, RemoveColCommand as Rg, RemoveRowCommand as Ig, MergeCellController as pS, MERGE_CELL_INTERCEPTOR_CHECK as vS, DeltaRowHeightCommand as SS, DeltaColumnWidthCommand as CS, COMMAND_LISTENER_VALUE_CHANGE as wS, AddMergeRedoSelectionsOperationFactory as _S, AddMergeUndoSelectionsOperationFactory as bS, DeleteRangeMoveLeftCommand as Iu, DeleteRangeMoveUpCommand as yu, EditStateEnum as an, ViewStateEnum as ri, UnitObject as Vt, DeleteWorksheetProtectionCommand as xs, DeleteRangeProtectionMutation as Mu, AddRangeProtectionMutation as RS, RemoveSheetCommand as IS, AddWorksheetProtectionCommand as yg, BorderStyleManagerService as Rc, RefRangeService as yS, IRefSelectionsService as Rd, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Ic, InsertDefinedNameCommand as MS, SetDefinedNameCommand as ES, RemoveDefinedNameCommand as TS, SetBorderBasicCommand as yc, ClearSelectionAllCommand as zi, ClearSelectionContentCommand as pr, WorksheetDeleteRowPermission as PS, WorksheetDeleteColumnPermission as xS, ToggleGridlinesCommand as Mg, ToggleGridlinesMutation as OS, InsertMultiRowsAfterCommand as Eg, WorksheetInsertRowPermission as Bo, InsertMultiRowsAboveCommand as Tg, InsertMultiColsRightCommand as Pg, InsertMultiColsLeftCommand as xg, InsertColBeforeCommand as Og, WorksheetInsertColumnPermission as Ag, InsertRowBeforeCommand as Hg, RemoveWorksheetMergeCommand as Vg, WorkbookCreateProtectPermission as Ul, WorksheetDeleteProtectionPermission as kg, WorksheetManageCollaboratorPermission as AS, SetWorksheetHideCommand as Ng, SetTabColorCommand as Dg, CopySheetCommand as Lg, WorkbookDeleteSheetPermission as HS, WorkbookHideSheetPermission as Wg, AddWorksheetMergeCommand as VS, AddWorksheetMergeHorizontalCommand as kS, AddWorksheetMergeVerticalCommand as NS, AddWorksheetMergeAllCommand as DS, ResetTextColorCommand as LS, MoveRangeCommand as Bg, MAX_CELL_PER_SHEET_KEY as WS, INTERCEPTOR_POINT as BS, SheetPermissionCheckController as Id, INumfmtService as FS, SetProtectionCommand as US, AddRangeProtectionCommand as XS, setEndForRange as zS, baseProtectionActions as jS, DeleteRangeProtectionCommand as YS, WorksheetProtectionPointModel as ZS, SetWorksheetPermissionPointsCommand as GS, getAllWorksheetPermissionPoint as qS, convertSelectionDataToRange as Fg, UniverSheetsPlugin as Ug, RefSelectionsService as Xg, ToggleCellCheckboxCommand as KS, SheetPermissionInitController as QS, SetSpecificRowsVisibleCommand as JS, SetSpecificColsVisibleCommand as $S } from "@univerjs/sheets";
11
11
  import { DocSkeletonManagerService as Kn, DocSelectionManagerService as yd, RichTextEditingMutation as io, SetTextSelectionsOperation as Fo } from "@univerjs/docs";
12
12
  import { IDefinedNamesService as Uo, FUNCTION_NAMES_STATISTICAL as Xe, FUNCTION_NAMES_MATH as Xl, FUNCTION_NAMES_TEXT as eC, sequenceNodeType as Ra, matchToken as zg, LexerTreeBuilder as jg, IFunctionService as Yg, SetFormulaCalculationNotificationMutation as tC, operatorToken as Br, isReferenceStrings as Zg, isReferenceStringWithEffectiveColumn as nC, serializeRangeWithSheet as Gg, NullValueObject as Eu, serializeRange as qg, deserializeRangeWithSheet as Kg } from "@univerjs/engine-formula";
13
13
  import { isTextFormat as zl } from "@univerjs/engine-numfmt";
@@ -2678,8 +2678,8 @@ const DC = {
2678
2678
  if (typeof r.s == "string") {
2679
2679
  const i = e.get(N).getFocusedUnit().getStyles().get(r.s), o = (t = i == null ? void 0 : i.n) == null ? void 0 : t.pattern;
2680
2680
  if (o)
2681
- return mn.getFormatInfo(o).isDate;
2682
- } else if (r.s.n && mn.getFormatInfo(r.s.n.pattern).isDate)
2681
+ return $t.getFormatInfo(o).isDate;
2682
+ } else if (r.s.n && $t.getFormatInfo(r.s.n.pattern).isDate)
2683
2683
  return !0;
2684
2684
  }
2685
2685
  return !1;
@@ -3151,7 +3151,7 @@ const xr = jt("univer.auto-fill-service"), hr = {
3151
3151
  subUnitId: a,
3152
3152
  unitId: l,
3153
3153
  cellValue: rS([c])
3154
- }, h = $t(
3154
+ }, h = en(
3155
3155
  r,
3156
3156
  u
3157
3157
  ), { startColumn: g, startRow: m } = d, f = {
@@ -3480,7 +3480,7 @@ const qe = jt("univer.sheet-editor-bridge.service"), tt = {
3480
3480
  function GC(r) {
3481
3481
  return typeof r.isMainScene > "u";
3482
3482
  }
3483
- function en(r, e) {
3483
+ function tn(r, e) {
3484
3484
  const t = r instanceof Gp ? r : r.getCurrentUnitForType(x.UNIVER_SHEET);
3485
3485
  if (!t) return null;
3486
3486
  const n = t.getUnitId();
@@ -3544,7 +3544,7 @@ let ao = class extends oe {
3544
3544
  return n ? (n.getConfig().zoomRatio = t, n === this._context.unit.getActiveSheet() && this._updateViewZoom(t), !0) : !1;
3545
3545
  }
3546
3546
  _initZoomEventListener() {
3547
- const e = en(this._context.unit, this._context).scene;
3547
+ const e = tn(this._context.unit, this._context).scene;
3548
3548
  this.disposeWithMe(
3549
3549
  // hold ctrl & mousewheel ---> zoom
3550
3550
  e.onMouseWheel$.subscribeEvent((t) => {
@@ -3586,7 +3586,7 @@ let ao = class extends oe {
3586
3586
  */
3587
3587
  _updateViewZoom(e) {
3588
3588
  this._zoom = e;
3589
- const t = en(this._context.unit, this._context);
3589
+ const t = tn(this._context.unit, this._context);
3590
3590
  t == null || t.scene.scale(e, e), t == null || t.spreadsheet.makeForceDirty();
3591
3591
  }
3592
3592
  };
@@ -3658,7 +3658,7 @@ let Rr = class extends Nn {
3658
3658
  this._renderManagerService.removeRender(t);
3659
3659
  }
3660
3660
  _initContextListener() {
3661
- this.disposeWithMe(this._contextService.subscribeContextValue$(bv).pipe(cn()).subscribe(() => {
3661
+ this.disposeWithMe(this._contextService.subscribeContextValue$(bv).pipe(dn()).subscribe(() => {
3662
3662
  this._renderManagerService.getRenderAll().forEach((e) => {
3663
3663
  e.mainComponent instanceof Yh && e.mainComponent.makeForceDirty(!0);
3664
3664
  });
@@ -3714,7 +3714,7 @@ let Ws = class extends oe {
3714
3714
  Do.id,
3715
3715
  Dl.id,
3716
3716
  Ll.id,
3717
- sn.id,
3717
+ ln.id,
3718
3718
  no.id,
3719
3719
  be.id
3720
3720
  ];
@@ -4039,7 +4039,7 @@ let Ws = class extends oe {
4039
4039
  unitId: c,
4040
4040
  cellValue: RC([a])
4041
4041
  }, y = this._injector.invoke(
4042
- $t,
4042
+ en,
4043
4043
  R
4044
4044
  );
4045
4045
  o.push({ id: be.id, params: R }), i.unshift({ id: be.id, params: y });
@@ -4054,7 +4054,7 @@ let Ws = class extends oe {
4054
4054
  unitId: c,
4055
4055
  cellValue: E
4056
4056
  }, P = this._injector.invoke(
4057
- $t,
4057
+ en,
4058
4058
  T
4059
4059
  );
4060
4060
  if (this._autoFillService.getActiveHooks().forEach((O) => {
@@ -4997,7 +4997,7 @@ let Et = class {
4997
4997
  Et = h1([
4998
4998
  g1(1, k(he))
4999
4999
  ], Et);
5000
- const dn = {
5000
+ const un = {
5001
5001
  id: "sheet.operation.set-scroll",
5002
5002
  type: Q.OPERATION,
5003
5003
  handler: (r, e) => {
@@ -5027,7 +5027,7 @@ const dn = {
5027
5027
  offsetX: m = 0,
5028
5028
  offsetY: f = 0
5029
5029
  } = c || {};
5030
- return t.executeCommand(dn.id, {
5030
+ return t.executeCommand(un.id, {
5031
5031
  unitId: s,
5032
5032
  sheetId: l,
5033
5033
  // why + ySplit? receiver - ySplit in scroll.operation.ts
@@ -5040,7 +5040,7 @@ const dn = {
5040
5040
  offsetY: f + u
5041
5041
  });
5042
5042
  }
5043
- }, un = {
5043
+ }, hn = {
5044
5044
  id: "sheet.command.scroll-view",
5045
5045
  type: Q.COMMAND,
5046
5046
  handler: (r, e) => {
@@ -5057,7 +5057,7 @@ const dn = {
5057
5057
  offsetX: v,
5058
5058
  offsetY: p
5059
5059
  } = c || {}, { xSplit: C, ySplit: _ } = i.worksheet.getConfig().freeze;
5060
- return r.get(L).syncExecuteCommand(dn.id, {
5060
+ return r.get(L).syncExecuteCommand(un.id, {
5061
5061
  unitId: o.getUnitId(),
5062
5062
  sheetId: s.getSheetId(),
5063
5063
  // why + ySplit? receiver - ySplit in scroll.operation.ts
@@ -5083,7 +5083,7 @@ const dn = {
5083
5083
  const e = r.get(N), t = Ue(e);
5084
5084
  if (!t) return !1;
5085
5085
  const { subUnitId: n, unitId: i } = t;
5086
- return r.get(L).executeCommand(dn.id, {
5086
+ return r.get(L).executeCommand(un.id, {
5087
5087
  unitId: i,
5088
5088
  sheetId: n,
5089
5089
  sheetViewStartRow: 0,
@@ -5190,7 +5190,7 @@ let ho = class extends oe {
5190
5190
  o,
5191
5191
  s
5192
5192
  );
5193
- this._commandService.executeCommand(un.id, {
5193
+ this._commandService.executeCommand(hn.id, {
5194
5194
  sheetViewStartRow: l,
5195
5195
  sheetViewStartColumn: a,
5196
5196
  offsetX: d,
@@ -5240,7 +5240,7 @@ let ho = class extends oe {
5240
5240
  ySplit: n,
5241
5241
  xSplit: i
5242
5242
  } = t.getFreeze();
5243
- return this._commandService.syncExecuteCommand(un.id, {
5243
+ return this._commandService.syncExecuteCommand(hn.id, {
5244
5244
  sheetViewStartRow: r - n,
5245
5245
  sheetViewStartColumn: e - i,
5246
5246
  offsetX: 0,
@@ -5307,7 +5307,7 @@ let ho = class extends oe {
5307
5307
  }));
5308
5308
  }
5309
5309
  _getSheetObject() {
5310
- return en(this._context.unit, this._context);
5310
+ return tn(this._context.unit, this._context);
5311
5311
  }
5312
5312
  _scrollToSelectionByDirection(r) {
5313
5313
  const e = this._getViewportBounding();
@@ -5398,7 +5398,7 @@ let ho = class extends oe {
5398
5398
  const A = a.getHiddenRowsInRange({ startRow: _ - h, endRow: _ });
5399
5399
  _ = _ - A.length;
5400
5400
  }
5401
- return this._commandService.syncExecuteCommand(un.id, {
5401
+ return this._commandService.syncExecuteCommand(hn.id, {
5402
5402
  // sheetViewStartRow & offsetX should never be undefined, it's rendering, there should always be a value!
5403
5403
  // sheetViewStartRow: forceTop ? Math.max(0, row - freezeYSplit) : ((startSheetViewRow ?? 0) - freezeYSplit),
5404
5404
  // sheetViewStartColumn: forceLeft ? Math.max(0, column - freezeXSplit) : ((startSheetViewColumn ?? 0) - freezeXSplit),
@@ -5704,7 +5704,7 @@ function z1() {
5704
5704
  m(!1);
5705
5705
  }, S = X1();
5706
5706
  if (Me(() => r.onCommandExecuted((ce, ge) => {
5707
- ce.id === dn.id && S();
5707
+ ce.id === un.id && S();
5708
5708
  }).dispose, [S, r]), Me(() => {
5709
5709
  const Z = v && We(
5710
5710
  v.currentSkeleton$.subscribe((ce) => {
@@ -5738,7 +5738,7 @@ function z1() {
5738
5738
  };
5739
5739
  }, [l]), c.col < 0 || c.row < 0)
5740
5740
  return null;
5741
- const I = en(e, t);
5741
+ const I = tn(e, t);
5742
5742
  if (!I || !p) return null;
5743
5743
  const { scene: R } = I, y = v == null ? void 0 : v.getCurrentSkeleton(), M = p.getViewPort(), E = R == null ? void 0 : R.scaleX, T = R == null ? void 0 : R.scaleY, P = R == null ? void 0 : R.getViewportScrollXY(M);
5744
5744
  if (!E || !R || !E || !T || !P) return null;
@@ -5771,7 +5771,7 @@ function z1() {
5771
5771
  children: /* @__PURE__ */ q(
5772
5772
  "div",
5773
5773
  {
5774
- className: He("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 dark:hover:!univer-bg-gray-800 hover:univer-bg-gray-100", wi, {
5774
+ className: He("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-800", wi, {
5775
5775
  "univer-bg-gray-100 dark:!univer-bg-gray-800": l,
5776
5776
  "univer-bg-white dark:!univer-bg-gray-900": !l
5777
5777
  }),
@@ -6015,7 +6015,7 @@ function Z1() {
6015
6015
  children: a.map((h, g) => /* @__PURE__ */ w(
6016
6016
  "li",
6017
6017
  {
6018
- className: "univer-cursor-pointer univer-px-2 univer-transition-colors univer-duration-200 dark:hover:!univer-bg-gray-600 hover:univer-bg-gray-100",
6018
+ className: "univer-cursor-pointer univer-px-2 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600",
6019
6019
  onClick: () => {
6020
6020
  u(h);
6021
6021
  },
@@ -6051,7 +6051,7 @@ function Z1() {
6051
6051
  /* @__PURE__ */ q(
6052
6052
  "div",
6053
6053
  {
6054
- className: "univer-cursor-pointer univer-p-2 univer-transition-colors univer-duration-200 dark:hover:!univer-bg-gray-600 hover:univer-bg-gray-100",
6054
+ className: "univer-cursor-pointer univer-p-2 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600",
6055
6055
  onClick: d,
6056
6056
  children: [
6057
6057
  /* @__PURE__ */ w(
@@ -6088,7 +6088,7 @@ function G1({ disable: r }) {
6088
6088
  /* @__PURE__ */ w(
6089
6089
  "input",
6090
6090
  {
6091
- className: He("univer-box-border univer-h-full univer-w-full univer-appearance-none univer-px-1.5 univer-text-gray-900 dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white focus:univer-outline-none", Td, {
6091
+ className: He("univer-box-border univer-h-full univer-w-full univer-appearance-none univer-px-1.5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", Td, {
6092
6092
  "univer-cursor-not-allowed": r
6093
6093
  }),
6094
6094
  type: "text",
@@ -6104,8 +6104,8 @@ function G1({ disable: r }) {
6104
6104
  children: /* @__PURE__ */ w(
6105
6105
  "a",
6106
6106
  {
6107
- className: He("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 dark:!univer-text-white dark:hover:!univer-bg-gray-800 hover:univer-bg-gray-100", {
6108
- "univer-cursor-not-allowed univer-text-gray-300 dark:!univer-text-gray-700 hover:univer-bg-transparent": r
6107
+ className: He("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-800", {
6108
+ "univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent dark:!univer-text-gray-700": r
6109
6109
  }),
6110
6110
  children: /* @__PURE__ */ w(li, {})
6111
6111
  }
@@ -6264,7 +6264,7 @@ function q1(r) {
6264
6264
  "span",
6265
6265
  {
6266
6266
  className: He("univer-flex univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-base dark:!univer-text-white", {
6267
- "univer-cursor-pointer univer-text-green-600 dark:!univer-text-green-400 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100": n
6267
+ "univer-cursor-pointer univer-text-green-600 hover:univer-bg-gray-100 dark:!univer-text-green-400 dark:hover:!univer-bg-gray-700": n
6268
6268
  }),
6269
6269
  onClick: W,
6270
6270
  children: /* @__PURE__ */ w(fm, {})
@@ -6274,7 +6274,7 @@ function q1(r) {
6274
6274
  "span",
6275
6275
  {
6276
6276
  className: He("univer-flex univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-base dark:!univer-text-white", {
6277
- "univer-cursor-pointer univer-text-red-600 dark:!univer-text-red-400 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100": n
6277
+ "univer-cursor-pointer univer-text-red-600 hover:univer-bg-gray-100 dark:!univer-text-red-400 dark:hover:!univer-bg-gray-700": n
6278
6278
  }),
6279
6279
  onClick: j,
6280
6280
  children: /* @__PURE__ */ w(_i, {})
@@ -6283,7 +6283,7 @@ function q1(r) {
6283
6283
  /* @__PURE__ */ w(
6284
6284
  "span",
6285
6285
  {
6286
- className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-base dark:!univer-text-white dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
6286
+ className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-base hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-700",
6287
6287
  onClick: B,
6288
6288
  children: /* @__PURE__ */ w(Cm, {})
6289
6289
  }
@@ -6518,8 +6518,8 @@ function Q1(r) {
6518
6518
  dark:!univer-bg-gray-900
6519
6519
  ` : `
6520
6520
  univer-font-medium univer-text-gray-900
6521
- dark:hover:!univer-bg-gray-700
6522
6521
  hover:univer-bg-gray-100
6522
+ dark:hover:!univer-bg-gray-700
6523
6523
  `),
6524
6524
  style: {
6525
6525
  backgroundColor: !s && n ? n : "",
@@ -7097,7 +7097,7 @@ b(Yr, "DoubleClickDelay", 300);
7097
7097
  let qr = Yr;
7098
7098
  function nw() {
7099
7099
  var _e;
7100
- const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Tn({ slideTabBar: null }), u = Tn(null), h = D(L), g = D(Or), m = D(Pe), f = D(tn), v = D(qe, uc.OPTIONAL), p = D(ft), C = D($e), _ = ht(p.resetOrder$), S = Pr(), I = D(rt), R = On(() => {
7100
+ const [r, e] = re([]), [t, n] = re(""), [i, o] = re(""), [s, l] = re(!1), [a, c] = re([0, 0]), d = Tn({ slideTabBar: null }), u = Tn(null), h = D(L), g = D(Or), m = D(Pe), f = D(nn), v = D(qe, uc.OPTIONAL), p = D(ft), C = D($e), _ = ht(p.resetOrder$), S = Pr(), I = D(rt), R = On(() => {
7101
7101
  var Fe;
7102
7102
  const G = ((Fe = S.getActiveSheet()) == null ? void 0 : Fe.getSheetId()) || "";
7103
7103
  n(G);
@@ -7536,7 +7536,7 @@ const ea = jt("univer.sheet-status-bar.service"), aw = [
7536
7536
  };
7537
7537
  function dw(r) {
7538
7538
  const { pattern: e, value: t } = r;
7539
- return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && aw.includes(r.name) ? mn.format(e, t, { throws: !1 }) : t.toLocaleString();
7539
+ return typeof t != "number" ? 0 : t >= 1e8 ? t.toExponential(2) : e && aw.includes(r.name) ? $t.format(e, t, { throws: !1 }) : t.toLocaleString();
7540
7540
  }
7541
7541
  const zu = 800, uw = 3, hw = () => {
7542
7542
  var u, h;
@@ -7731,7 +7731,7 @@ let Us = class extends oe {
7731
7731
  let S = c - l, I = d - a;
7732
7732
  S < m && (S = Math.ceil(m)), I < f && (I = Math.ceil(f));
7733
7733
  let R = 0;
7734
- v === an.MIDDLE ? R = (I - f) / 2 / s : v === an.TOP ? R = C.t || 0 : R = (I - f) / s;
7734
+ v === cn.MIDDLE ? R = (I - f) / 2 / s : v === cn.TOP ? R = C.t || 0 : R = (I - f) / s;
7735
7735
  let y = 0;
7736
7736
  p === Rt.CENTER ? y = (S - m) / 2 / o : p === Rt.RIGHT ? y = (S - m) / o : y = C.l || 0, R = R < (C.t || 0) ? C.t || 0 : R, y = y < (C.l || 0) ? C.l || 0 : y, u.updateDocumentDataMargin({
7737
7737
  t: R,
@@ -8040,7 +8040,7 @@ let Xs = class extends Nn {
8040
8040
  });
8041
8041
  }
8042
8042
  _getSheetObject() {
8043
- return en(this._context.unit, this._context);
8043
+ return tn(this._context.unit, this._context);
8044
8044
  }
8045
8045
  _isCurrentSheetFocused() {
8046
8046
  var e;
@@ -8307,7 +8307,7 @@ function Pw(r, e, t, n) {
8307
8307
  if (i.startsWith("="))
8308
8308
  return Ow(r, i, e, n);
8309
8309
  const o = i.toLowerCase();
8310
- return Nc[o] ? Nc[o] : mn.parseValue(i) == null ? r : i;
8310
+ return Nc[o] ? Nc[o] : $t.parseValue(i) == null ? r : i;
8311
8311
  }
8312
8312
  function xw(r) {
8313
8313
  const e = /['"].*?['"]/g, t = [], n = r.split(e);
@@ -8340,11 +8340,11 @@ function Ow(r, e, t, n) {
8340
8340
  const d = l.startIndex + s + 2, u = l.endIndex + s + 1;
8341
8341
  o = Dr(r.slice(d, u), o, d, u);
8342
8342
  } else if (l.nodeType !== Ra.ARRAY) {
8343
- const d = mn.parseValue(c);
8343
+ const d = $t.parseValue(c);
8344
8344
  if (d == null) {
8345
8345
  const u = l.startIndex + s + 1, h = l.endIndex + s + 2;
8346
8346
  o = Dr(r.slice(u, h), o, u, h);
8347
- } else if (typeof d.v == "number" && (d.z === void 0 || !mn.getFormatInfo(d.z).isDate)) {
8347
+ } else if (typeof d.v == "number" && (d.z === void 0 || !$t.getFormatInfo(d.z).isDate)) {
8348
8348
  const u = `${d.v}`, h = l.startIndex + s + 1, g = l.endIndex + s + 2, { processedString: m, offset: f } = kw(c, u);
8349
8349
  o = Dr(m, o, h, g), s += f;
8350
8350
  }
@@ -8418,7 +8418,7 @@ let zs = class extends oe {
8418
8418
  n && n.refreshEditorPosition();
8419
8419
  }
8420
8420
  })), this.disposeWithMe(
8421
- this._editorBridgeService.visible$.pipe(cn((e, t) => e.visible === t.visible)).subscribe(async (e) => {
8421
+ this._editorBridgeService.visible$.pipe(dn((e, t) => e.visible === t.visible)).subscribe(async (e) => {
8422
8422
  e.visible ? (this._editingUnit = e.unitId, this._handleEditorVisible(e)) : this._editingUnit && (await this._handleEditorInvisible(e), this._editingUnit = "");
8423
8423
  })
8424
8424
  );
@@ -9878,7 +9878,7 @@ const et = {
9878
9878
  ci.use(r0);
9879
9879
  ci.use(t0);
9880
9880
  ci.use(n0);
9881
- const nn = jt("sheet.clipboard-service");
9881
+ const rn = jt("sheet.clipboard-service");
9882
9882
  let Zs = class extends oe {
9883
9883
  constructor(e, t, n, i, o, s, l, a, c, d, u, h, g, m) {
9884
9884
  super();
@@ -10578,14 +10578,14 @@ function Hi() {
10578
10578
  t: null
10579
10579
  };
10580
10580
  }
10581
- const qd = 998, hn = {
10581
+ const qd = 998, gn = {
10582
10582
  id: Fv.id,
10583
10583
  name: "sheet.command.copy",
10584
10584
  type: Q.COMMAND,
10585
10585
  multi: !0,
10586
10586
  priority: qd,
10587
10587
  preconditions: jd,
10588
- handler: async (r) => r.get(nn).copy()
10588
+ handler: async (r) => r.get(rn).copy()
10589
10589
  }, Kd = {
10590
10590
  id: Uv.id,
10591
10591
  name: "sheet.command.cut",
@@ -10593,8 +10593,8 @@ const qd = 998, hn = {
10593
10593
  multi: !0,
10594
10594
  priority: qd,
10595
10595
  preconditions: jd,
10596
- handler: async (r) => r.get(nn).cut()
10597
- }, gn = {
10596
+ handler: async (r) => r.get(rn).cut()
10597
+ }, mn = {
10598
10598
  id: Xv.id,
10599
10599
  type: Q.COMMAND,
10600
10600
  multi: !0,
@@ -10602,42 +10602,42 @@ const qd = 998, hn = {
10602
10602
  priority: qd,
10603
10603
  preconditions: jd,
10604
10604
  handler: async (r, e) => {
10605
- const n = await r.get(Ol).read(), i = r.get(nn);
10605
+ const n = await r.get(Ol).read(), i = r.get(rn);
10606
10606
  return n.length !== 0 ? i.paste(n[0], e == null ? void 0 : e.value) : !1;
10607
10607
  }
10608
10608
  }, Lc = {
10609
10609
  id: zv,
10610
10610
  type: Q.COMMAND,
10611
10611
  handler: async (r, e) => {
10612
- const t = r.get(nn), { htmlContent: n, textContent: i, files: o } = e;
10612
+ const t = r.get(rn), { htmlContent: n, textContent: i, files: o } = e;
10613
10613
  return t.legacyPaste(n, i, o), !0;
10614
10614
  }
10615
10615
  }, Qi = {
10616
10616
  id: "sheet.command.paste-value",
10617
10617
  type: Q.COMMAND,
10618
- handler: async (r) => r.get(L).executeCommand(gn.id, { value: et.SPECIAL_PASTE_VALUE })
10618
+ handler: async (r) => r.get(L).executeCommand(mn.id, { value: et.SPECIAL_PASTE_VALUE })
10619
10619
  }, Ji = {
10620
10620
  id: "sheet.command.paste-format",
10621
10621
  type: Q.COMMAND,
10622
- handler: async (r) => r.get(L).executeCommand(gn.id, {
10622
+ handler: async (r) => r.get(L).executeCommand(mn.id, {
10623
10623
  value: et.SPECIAL_PASTE_FORMAT
10624
10624
  })
10625
10625
  }, Kr = {
10626
10626
  id: "sheet.command.paste-col-width",
10627
10627
  type: Q.COMMAND,
10628
- handler: async (r) => r.get(L).executeCommand(gn.id, {
10628
+ handler: async (r) => r.get(L).executeCommand(mn.id, {
10629
10629
  value: et.SPECIAL_PASTE_COL_WIDTH
10630
10630
  })
10631
10631
  }, $i = {
10632
10632
  id: "sheet.command.paste-besides-border",
10633
10633
  type: Q.COMMAND,
10634
- handler: async (r) => r.get(L).executeCommand(gn.id, {
10634
+ handler: async (r) => r.get(L).executeCommand(mn.id, {
10635
10635
  value: et.SPECIAL_PASTE_BESIDES_BORDER
10636
10636
  })
10637
10637
  }, jm = {
10638
10638
  id: "sheet.command.optional-paste",
10639
10639
  type: Q.COMMAND,
10640
- handler: async (r, { type: e }) => r.get(nn).rePasteWithPasteType(e)
10640
+ handler: async (r, { type: e }) => r.get(rn).rePasteWithPasteType(e)
10641
10641
  }, na = {
10642
10642
  id: "sheet.command.hide-row-confirm",
10643
10643
  type: Q.COMMAND,
@@ -10649,7 +10649,7 @@ const qd = 998, hn = {
10649
10649
  if (!o) return !1;
10650
10650
  const { worksheet: s } = o, l = s.getVisibleRows();
10651
10651
  if (cm(l, t)) {
10652
- const c = r.get(tn), d = r.get(Pe);
10652
+ const c = r.get(nn), d = r.get(Pe);
10653
10653
  return await c.confirm({
10654
10654
  id: "sheet.confirm.hide-row",
10655
10655
  title: {
@@ -10674,7 +10674,7 @@ const qd = 998, hn = {
10674
10674
  if (!o) return !1;
10675
10675
  const { worksheet: s } = o, l = s.getVisibleCols();
10676
10676
  if (dm(l, t)) {
10677
- const c = r.get(tn), d = r.get(Pe);
10677
+ const c = r.get(nn), d = r.get(Pe);
10678
10678
  return await c.confirm({
10679
10679
  id: "sheet.confirm.hide-col",
10680
10680
  title: {
@@ -10968,13 +10968,13 @@ let fo = class extends oe {
10968
10968
  return {
10969
10969
  undos: [
10970
10970
  {
10971
- id: sn.id,
10971
+ id: ln.id,
10972
10972
  params: h
10973
10973
  }
10974
10974
  ],
10975
10975
  redos: [
10976
10976
  {
10977
- id: sn.id,
10977
+ id: ln.id,
10978
10978
  params: u
10979
10979
  }
10980
10980
  ]
@@ -11643,21 +11643,21 @@ const lh = [
11643
11643
  {
11644
11644
  label: "align.top",
11645
11645
  icon: "AlignTopIcon",
11646
- value: an.TOP
11646
+ value: cn.TOP
11647
11647
  },
11648
11648
  {
11649
11649
  label: "align.middle",
11650
11650
  icon: "VerticalCenterIcon",
11651
- value: an.MIDDLE
11651
+ value: cn.MIDDLE
11652
11652
  },
11653
11653
  {
11654
11654
  label: "align.bottom",
11655
11655
  icon: "AlignBottomIcon",
11656
- value: an.BOTTOM
11656
+ value: cn.BOTTOM
11657
11657
  }
11658
11658
  ];
11659
11659
  function B0(r) {
11660
- const e = r.get(N), t = r.get($), n = an.BOTTOM;
11660
+ const e = r.get(N), t = r.get($), n = cn.BOTTOM;
11661
11661
  return {
11662
11662
  id: Sc.id,
11663
11663
  icon: lh[2].icon,
@@ -11824,8 +11824,8 @@ function Zo(r) {
11824
11824
  }
11825
11825
  function Qr(r) {
11826
11826
  return {
11827
- id: hn.name,
11828
- commandId: hn.id,
11827
+ id: gn.name,
11828
+ commandId: gn.id,
11829
11829
  type: J.BUTTON,
11830
11830
  title: "rightClick.copy",
11831
11831
  icon: "CopyDoubleIcon",
@@ -11839,8 +11839,8 @@ function Qr(r) {
11839
11839
  }
11840
11840
  function Oa(r) {
11841
11841
  return {
11842
- id: gn.name,
11843
- commandId: gn.id,
11842
+ id: mn.name,
11843
+ commandId: mn.id,
11844
11844
  type: J.BUTTON,
11845
11845
  title: "rightClick.paste",
11846
11846
  icon: "PasteSpecialDoubleIcon",
@@ -12166,7 +12166,7 @@ function $0(r) {
12166
12166
  }
12167
12167
  const a = e.onCommandExecuted((c) => {
12168
12168
  const d = c.id;
12169
- if (d === be.id || d === Te.id || d === sn.id)
12169
+ if (d === be.id || d === Te.id || d === ln.id)
12170
12170
  return l();
12171
12171
  });
12172
12172
  return l(), a.dispose;
@@ -12581,7 +12581,7 @@ let po = class extends oe {
12581
12581
  endY: R.startY,
12582
12582
  startX: 0,
12583
12583
  endX: 0
12584
- }), o & 2 && this._commandService.executeCommand(un.id, {
12584
+ }), o & 2 && this._commandService.executeCommand(hn.id, {
12585
12585
  sheetViewStartRow: 0,
12586
12586
  offsetY: 0
12587
12587
  }), g.resizeWhenFreezeChange({
@@ -12618,7 +12618,7 @@ let po = class extends oe {
12618
12618
  endX: R.startX,
12619
12619
  startY: 0,
12620
12620
  endY: 0
12621
- }), o & 1 && this._commandService.executeCommand(un.id, {
12621
+ }), o & 1 && this._commandService.executeCommand(hn.id, {
12622
12622
  sheetViewStartColumn: 0,
12623
12623
  offsetX: 0
12624
12624
  }), h.resizeWhenFreezeChange({
@@ -12656,7 +12656,7 @@ let po = class extends oe {
12656
12656
  endY: R.startY,
12657
12657
  startX: I.startX,
12658
12658
  endX: R.startX
12659
- }), o && this._commandService.executeCommand(un.id, {
12659
+ }), o && this._commandService.executeCommand(hn.id, {
12660
12660
  ...o & 1 ? {
12661
12661
  sheetViewStartColumn: 0,
12662
12662
  offsetX: 0
@@ -12932,7 +12932,7 @@ let po = class extends oe {
12932
12932
  e.params && n && this._refreshCurrent();
12933
12933
  }
12934
12934
  break;
12935
- case sn.id:
12935
+ case ln.id:
12936
12936
  {
12937
12937
  const t = this._getFreeze();
12938
12938
  e.params && t && e.params.ranges.some(
@@ -13016,7 +13016,7 @@ let po = class extends oe {
13016
13016
  return e.freeze;
13017
13017
  }
13018
13018
  _getSheetObject() {
13019
- return en(this._context.unit, this._context);
13019
+ return tn(this._context.unit, this._context);
13020
13020
  }
13021
13021
  /**
13022
13022
  * Core function of _refreshCurrent
@@ -13914,7 +13914,7 @@ function rf(r, e, t, n) {
13914
13914
  unitId: e,
13915
13915
  subUnitId: s,
13916
13916
  cellValue: a.getData()
13917
- }, d = $t(
13917
+ }, d = en(
13918
13918
  r,
13919
13919
  c
13920
13920
  );
@@ -14051,10 +14051,13 @@ const ir = {
14051
14051
  type: Q.COMMAND,
14052
14052
  id: "sheet.command.add-worksheet-merge",
14053
14053
  handler: async (r, e) => {
14054
- const t = r.get(L), n = r.get(Yt), i = r.get(N), o = r.get(tn), s = r.get(Pe), l = e.unitId, a = e.subUnitId, c = e.selections, d = Bl(c, e.value), u = i.getUniverSheetInstance(l).getSheetBySheetId(a), h = [], g = [], m = nf(u, d);
14054
+ const t = r.get(L), n = r.get(Yt), i = r.get(N), o = r.get(nn), s = r.get(Pe), l = e.unitId, a = e.subUnitId, c = e.selections, d = Bl(c, e.value), u = i.getUniverSheetInstance(l).getSheetBySheetId(a), h = [], g = [], m = nf(u, d);
14055
14055
  if (m && !e.defaultMerge && !await o.confirm({
14056
14056
  id: "merge.confirm.add-worksheet-merge",
14057
14057
  title: {
14058
+ title: "merge.confirm.warning"
14059
+ },
14060
+ children: {
14058
14061
  title: "merge.confirm.title"
14059
14062
  },
14060
14063
  cancelText: s.t("merge.confirm.cancel"),
@@ -14151,7 +14154,7 @@ const ir = {
14151
14154
  type: Q.COMMAND,
14152
14155
  id: "sheet.command.delete-range-move-left-confirm",
14153
14156
  handler: async (r) => {
14154
- const e = r.get(tn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14157
+ const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14155
14158
  if (!s)
14156
14159
  return !1;
14157
14160
  const l = Ue(o);
@@ -14167,8 +14170,8 @@ const ir = {
14167
14170
  return m ? d(g) > d(m) : !1;
14168
14171
  }) ? await e.confirm({
14169
14172
  id: qo.id,
14170
- title: { title: n.t("merge.confirm.waring") },
14171
- children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
14173
+ title: { title: n.t("merge.confirm.warning") },
14174
+ children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
14172
14175
  cancelText: n.t("button.cancel"),
14173
14176
  confirmText: n.t("button.confirm")
14174
14177
  }) ? t.executeCommand(Iu.id) : !0 : t.executeCommand(Iu.id);
@@ -14177,7 +14180,7 @@ const ir = {
14177
14180
  type: Q.COMMAND,
14178
14181
  id: "sheet.command.delete-range-move-up-confirm",
14179
14182
  handler: async (r) => {
14180
- const e = r.get(tn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14183
+ const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14181
14184
  if (!s) return !1;
14182
14185
  const l = Ue(o);
14183
14186
  if (!l) return !1;
@@ -14199,8 +14202,8 @@ const ir = {
14199
14202
  return m ? d(g) > d(m) : !1;
14200
14203
  }) ? await e.confirm({
14201
14204
  id: di.id,
14202
- title: { title: n.t("merge.confirm.waring") },
14203
- children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
14205
+ title: { title: n.t("merge.confirm.warning") },
14206
+ children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
14204
14207
  cancelText: n.t("button.cancel"),
14205
14208
  confirmText: n.t("button.confirm")
14206
14209
  }) ? t.executeCommand(yu.id) : !0 : t.executeCommand(yu.id);
@@ -14209,7 +14212,7 @@ const ir = {
14209
14212
  type: Q.COMMAND,
14210
14213
  id: "sheet.command.insert-range-move-down-confirm",
14211
14214
  handler: async (r) => {
14212
- const e = r.get(tn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14215
+ const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14213
14216
  if (!s)
14214
14217
  return !1;
14215
14218
  const l = Ue(o);
@@ -14233,8 +14236,8 @@ const ir = {
14233
14236
  return m ? d(g) > d(m) : !1;
14234
14237
  }) ? await e.confirm({
14235
14238
  id: ui.id,
14236
- title: { title: n.t("merge.confirm.waring") },
14237
- children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
14239
+ title: { title: n.t("merge.confirm.warning") },
14240
+ children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
14238
14241
  cancelText: n.t("button.cancel"),
14239
14242
  confirmText: n.t("button.confirm")
14240
14243
  }) ? t.executeCommand(_c.id) : !0 : t.executeCommand(_c.id);
@@ -14243,7 +14246,7 @@ const ir = {
14243
14246
  type: Q.COMMAND,
14244
14247
  id: "sheet.command.insert-range-move-right-confirm",
14245
14248
  handler: async (r) => {
14246
- const e = r.get(tn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14249
+ const e = r.get(nn), t = r.get(L), n = r.get(Pe), i = r.get($), o = r.get(N), s = i.getCurrentSelections();
14247
14250
  if (!s)
14248
14251
  return !1;
14249
14252
  const l = Ue(o);
@@ -14259,14 +14262,14 @@ const ir = {
14259
14262
  return m ? d(g) > d(m) : !1;
14260
14263
  }) ? await e.confirm({
14261
14264
  id: Ko.id,
14262
- title: { title: n.t("merge.confirm.waring") },
14263
- children: { title: n.t("merge.confirm.dismantleMergeCellWaring") },
14265
+ title: { title: n.t("merge.confirm.warning") },
14266
+ children: { title: n.t("merge.confirm.dismantleMergeCellWarning") },
14264
14267
  cancelText: n.t("button.cancel"),
14265
14268
  confirmText: n.t("button.confirm")
14266
14269
  }) ? t.executeCommand(bc.id) : !0 : t.executeCommand(bc.id);
14267
14270
  }
14268
14271
  };
14269
- var sf = /* @__PURE__ */ ((r) => (r[r.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", r[r.UNIVER_DOC = 1] = "UNIVER_DOC", r[r.UNIVER_SHEET = 2] = "UNIVER_SHEET", r[r.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", r[r.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(sf || {}), me = /* @__PURE__ */ ((r) => (r[r.View = 0] = "View", r[r.Edit = 1] = "Edit", r[r.ManageCollaborator = 2] = "ManageCollaborator", r[r.Print = 3] = "Print", r[r.Duplicate = 4] = "Duplicate", r[r.Comment = 5] = "Comment", r[r.Copy = 6] = "Copy", r[r.Share = 7] = "Share", r[r.Export = 8] = "Export", r[r.MoveWorksheet = 9] = "MoveWorksheet", r[r.DeleteWorksheet = 10] = "DeleteWorksheet", r[r.HideWorksheet = 11] = "HideWorksheet", r[r.RenameWorksheet = 12] = "RenameWorksheet", r[r.CreateWorksheet = 13] = "CreateWorksheet", r[r.SetWorksheetStyle = 14] = "SetWorksheetStyle", r[r.EditWorksheetCell = 15] = "EditWorksheetCell", r[r.InsertHyperlink = 16] = "InsertHyperlink", r[r.Sort = 17] = "Sort", r[r.Filter = 18] = "Filter", r[r.PivotTable = 19] = "PivotTable", r[r.FloatImg = 20] = "FloatImg", r[r.History = 21] = "History", r[r.RwHgtClWdt = 22] = "RwHgtClWdt", r[r.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", r[r.ViewFilter = 24] = "ViewFilter", r[r.MoveSheet = 25] = "MoveSheet", r[r.DeleteSheet = 26] = "DeleteSheet", r[r.HideSheet = 27] = "HideSheet", r[r.CopySheet = 28] = "CopySheet", r[r.RenameSheet = 29] = "RenameSheet", r[r.CreateSheet = 30] = "CreateSheet", r[r.SelectProtectedCells = 31] = "SelectProtectedCells", r[r.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", r[r.SetCellStyle = 33] = "SetCellStyle", r[r.SetCellValue = 34] = "SetCellValue", r[r.SetRowStyle = 35] = "SetRowStyle", r[r.SetColumnStyle = 36] = "SetColumnStyle", r[r.InsertRow = 37] = "InsertRow", r[r.InsertColumn = 38] = "InsertColumn", r[r.DeleteRow = 39] = "DeleteRow", r[r.DeleteColumn = 40] = "DeleteColumn", r[r.EditExtraObject = 41] = "EditExtraObject", r[r.Delete = 42] = "Delete", r[r.RecoverHistory = 43] = "RecoverHistory", r[r.ViewHistory = 44] = "ViewHistory", r[r.CreatePermissionObject = 45] = "CreatePermissionObject", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(me || {}), kt = /* @__PURE__ */ ((r) => (r[r.Reader = 0] = "Reader", r[r.Editor = 1] = "Editor", r[r.Owner = 2] = "Owner", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(kt || {}), yn = /* @__PURE__ */ ((r) => (r[r.Unkonwn = 0] = "Unkonwn", r[r.Workbook = 1] = "Workbook", r[r.Worksheet = 2] = "Worksheet", r[r.SelectRange = 3] = "SelectRange", r[r.Document = 4] = "Document", r[r.Slide = 5] = "Slide", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(yn || {}), on = /* @__PURE__ */ ((r) => (r[r.SomeCollaborator = 0] = "SomeCollaborator", r[r.AllCollaborator = 1] = "AllCollaborator", r[r.OneSelf = 2] = "OneSelf", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(on || {});
14272
+ var sf = /* @__PURE__ */ ((r) => (r[r.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", r[r.UNIVER_DOC = 1] = "UNIVER_DOC", r[r.UNIVER_SHEET = 2] = "UNIVER_SHEET", r[r.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", r[r.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(sf || {}), me = /* @__PURE__ */ ((r) => (r[r.View = 0] = "View", r[r.Edit = 1] = "Edit", r[r.ManageCollaborator = 2] = "ManageCollaborator", r[r.Print = 3] = "Print", r[r.Duplicate = 4] = "Duplicate", r[r.Comment = 5] = "Comment", r[r.Copy = 6] = "Copy", r[r.Share = 7] = "Share", r[r.Export = 8] = "Export", r[r.MoveWorksheet = 9] = "MoveWorksheet", r[r.DeleteWorksheet = 10] = "DeleteWorksheet", r[r.HideWorksheet = 11] = "HideWorksheet", r[r.RenameWorksheet = 12] = "RenameWorksheet", r[r.CreateWorksheet = 13] = "CreateWorksheet", r[r.SetWorksheetStyle = 14] = "SetWorksheetStyle", r[r.EditWorksheetCell = 15] = "EditWorksheetCell", r[r.InsertHyperlink = 16] = "InsertHyperlink", r[r.Sort = 17] = "Sort", r[r.Filter = 18] = "Filter", r[r.PivotTable = 19] = "PivotTable", r[r.FloatImg = 20] = "FloatImg", r[r.History = 21] = "History", r[r.RwHgtClWdt = 22] = "RwHgtClWdt", r[r.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", r[r.ViewFilter = 24] = "ViewFilter", r[r.MoveSheet = 25] = "MoveSheet", r[r.DeleteSheet = 26] = "DeleteSheet", r[r.HideSheet = 27] = "HideSheet", r[r.CopySheet = 28] = "CopySheet", r[r.RenameSheet = 29] = "RenameSheet", r[r.CreateSheet = 30] = "CreateSheet", r[r.SelectProtectedCells = 31] = "SelectProtectedCells", r[r.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", r[r.SetCellStyle = 33] = "SetCellStyle", r[r.SetCellValue = 34] = "SetCellValue", r[r.SetRowStyle = 35] = "SetRowStyle", r[r.SetColumnStyle = 36] = "SetColumnStyle", r[r.InsertRow = 37] = "InsertRow", r[r.InsertColumn = 38] = "InsertColumn", r[r.DeleteRow = 39] = "DeleteRow", r[r.DeleteColumn = 40] = "DeleteColumn", r[r.EditExtraObject = 41] = "EditExtraObject", r[r.Delete = 42] = "Delete", r[r.RecoverHistory = 43] = "RecoverHistory", r[r.ViewHistory = 44] = "ViewHistory", r[r.CreatePermissionObject = 45] = "CreatePermissionObject", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(me || {}), kt = /* @__PURE__ */ ((r) => (r[r.Reader = 0] = "Reader", r[r.Editor = 1] = "Editor", r[r.Owner = 2] = "Owner", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(kt || {}), yn = /* @__PURE__ */ ((r) => (r[r.Unkonwn = 0] = "Unkonwn", r[r.Workbook = 1] = "Workbook", r[r.Worksheet = 2] = "Worksheet", r[r.SelectRange = 3] = "SelectRange", r[r.Document = 4] = "Document", r[r.Slide = 5] = "Slide", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(yn || {}), sn = /* @__PURE__ */ ((r) => (r[r.SomeCollaborator = 0] = "SomeCollaborator", r[r.AllCollaborator = 1] = "AllCollaborator", r[r.OneSelf = 2] = "OneSelf", r[r.UNRECOGNIZED = -1] = "UNRECOGNIZED", r))(sn || {});
14270
14273
  const So = "UNIVER_SHEET_PERMISSION_PANEL", Co = "UNIVER_SHEET_PERMISSION_USER_PART", tu = "UNIVER_SHEET_PERMISSION_BACKGROUND", lf = "UNIVER_SHEET_PERMISSION_USER_DIALOG", af = "UNIVER_SHEET_PERMISSION_DIALOG", Js = "UNIVER_SHEET_PERMISSION_USER_DIALOG_ID", $s = "UNIVER_SHEET_PERMISSION_DIALOG_ID", ss = {
14271
14274
  [me.Copy]: "Copy",
14272
14275
  [me.SetCellStyle]: "SetCellStyle",
@@ -14306,7 +14309,7 @@ const So = "UNIVER_SHEET_PERMISSION_PANEL", Co = "UNIVER_SHEET_PERMISSION_USER_P
14306
14309
  id: "",
14307
14310
  ranges: [],
14308
14311
  viewState: ri.OthersCanView,
14309
- editState: ln.OnlyMe
14312
+ editState: an.OnlyMe
14310
14313
  };
14311
14314
  class hi {
14312
14315
  constructor() {
@@ -14481,7 +14484,7 @@ const Vn = {
14481
14484
  if (!s) return !1;
14482
14485
  const { worksheet: l } = s, a = l.getVisibleRows();
14483
14486
  if (cm(a, [n])) {
14484
- const d = r.get(tn), u = r.get(Pe);
14487
+ const d = r.get(nn), u = r.get(Pe);
14485
14488
  return await d.confirm({
14486
14489
  id: "sheet.confirm.remove-row",
14487
14490
  title: {
@@ -14507,7 +14510,7 @@ const Vn = {
14507
14510
  if (!s) return !1;
14508
14511
  const { worksheet: l } = s, a = l.getVisibleCols();
14509
14512
  if (dm(a, [n])) {
14510
- const d = r.get(tn), u = r.get(Pe);
14513
+ const d = r.get(nn), u = r.get(Pe);
14511
14514
  return await d.confirm({
14512
14515
  id: "sheet.confirm.remove-col",
14513
14516
  title: {
@@ -14524,7 +14527,7 @@ const Vn = {
14524
14527
  id: "sheet.command.remove-sheet-confirm",
14525
14528
  type: Q.COMMAND,
14526
14529
  handler: async (r, e) => {
14527
- const { subUnitId: t } = e, n = r.get(tn), i = r.get(L), o = r.get(Pe);
14530
+ const { subUnitId: t } = e, n = r.get(nn), i = r.get(L), o = r.get(Pe);
14528
14531
  return await n.confirm({
14529
14532
  id: "sheet.confirm.remove-sheet",
14530
14533
  title: {
@@ -14972,7 +14975,7 @@ function gf(r) {
14972
14975
  children: hf.map((a) => /* @__PURE__ */ w(
14973
14976
  "a",
14974
14977
  {
14975
- className: He("univer-flex univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-justify-self-center univer-rounded dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100", {
14978
+ className: He("univer-flex univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-justify-self-center univer-rounded hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", {
14976
14979
  "univer-bg-gray-200 dark:!univer-bg-gray-600": t.getBorderInfo().type === a.value
14977
14980
  }),
14978
14981
  onClick: (c) => {
@@ -14993,7 +14996,7 @@ function gf(r) {
14993
14996
  children: /* @__PURE__ */ q(
14994
14997
  "button",
14995
14998
  {
14996
- className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded univer-border-none univer-bg-transparent univer-p-1 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
14999
+ className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded univer-border-none univer-bg-transparent univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
14997
15000
  type: "button",
14998
15001
  children: [
14999
15002
  /* @__PURE__ */ w(
@@ -15015,7 +15018,7 @@ function gf(r) {
15015
15018
  overlay: /* @__PURE__ */ w("section", { className: "univer-rounded-lg univer-p-1.5", children: /* @__PURE__ */ w("ul", { className: "univer-m-0 univer-grid univer-list-none univer-gap-1 univer-p-0", children: Y_.map((a) => /* @__PURE__ */ w(
15016
15019
  "li",
15017
15020
  {
15018
- className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-px-1 univer-py-2 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
15021
+ className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-px-1 univer-py-2 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
15019
15022
  onClick: () => o(a.value, "style"),
15020
15023
  children: /* @__PURE__ */ w(
15021
15024
  ph,
@@ -15030,7 +15033,7 @@ function gf(r) {
15030
15033
  children: /* @__PURE__ */ q(
15031
15034
  "button",
15032
15035
  {
15033
- className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded univer-border-none univer-bg-transparent univer-p-1 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
15036
+ className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded univer-border-none univer-bg-transparent univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
15034
15037
  type: "button",
15035
15038
  children: [
15036
15039
  /* @__PURE__ */ w(
@@ -15147,7 +15150,7 @@ let gi = class extends oe {
15147
15150
  };
15148
15151
  }, s = o(), l = new Ee(s), a = new gt();
15149
15152
  return a.add(this._commandService.onCommandExecuted((c) => {
15150
- (c.id === dn.id || c.id === Jt.id) && l.next(o());
15153
+ (c.id === un.id || c.id === Jt.id) && l.next(o());
15151
15154
  })), {
15152
15155
  position: s,
15153
15156
  position$: l,
@@ -15391,7 +15394,7 @@ let gi = class extends oe {
15391
15394
  d();
15392
15395
  return;
15393
15396
  }
15394
- (Es.indexOf(g.id) > -1 || g.id === dn.id || g.id === Jt.id) && d();
15397
+ (Es.indexOf(g.id) > -1 || g.id === un.id || g.id === Jt.id) && d();
15395
15398
  })), {
15396
15399
  position$: c,
15397
15400
  disposable: u,
@@ -15442,7 +15445,7 @@ let gi = class extends oe {
15442
15445
  u();
15443
15446
  return;
15444
15447
  }
15445
- (Es.indexOf(v.id) > -1 || v.id === dn.id || v.id === Jt.id) && u();
15448
+ (Es.indexOf(v.id) > -1 || v.id === un.id || v.id === Jt.id) && u();
15446
15449
  }));
15447
15450
  const g = (v, p) => {
15448
15451
  o = v, s = p, u();
@@ -15692,7 +15695,7 @@ const J_ = (r) => {
15692
15695
  S,
15693
15696
  {
15694
15697
  ref: ne,
15695
- className: He("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent dark:!univer-bg-gray-700 dark:!univer-text-white hover:univer-border-primary-600", wi),
15698
+ className: He("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", wi),
15696
15699
  initValue: E,
15697
15700
  unitId: I,
15698
15701
  subUnitId: R,
@@ -15872,7 +15875,7 @@ const J_ = (r) => {
15872
15875
  /* @__PURE__ */ q(
15873
15876
  "div",
15874
15877
  {
15875
- className: He("univer-group univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center univer-justify-between univer-rounded-md univer-p-2 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-50", {
15878
+ className: He("univer-group univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center univer-justify-between univer-rounded-md univer-p-2 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-700", {
15876
15879
  "univer-hidden": P.id === h
15877
15880
  }),
15878
15881
  onClick: () => {
@@ -15901,7 +15904,7 @@ const J_ = (r) => {
15901
15904
  /* @__PURE__ */ w(Yn, { title: n.t("definedName.updateButton"), placement: "top", children: /* @__PURE__ */ w(
15902
15905
  "a",
15903
15906
  {
15904
- className: "univer-absolute univer-right-[60px] univer-top-1/2 univer-hidden -univer-translate-y-1/2 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-xs univer-text-primary-600 dark:hover:!univer-bg-gray-600 group-hover:univer-flex hover:univer-bg-gray-100",
15907
+ className: "univer-absolute univer-right-[60px] univer-top-1/2 univer-hidden -univer-translate-y-1/2 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-xs univer-text-primary-600 hover:univer-bg-gray-100 group-hover:univer-flex dark:hover:!univer-bg-gray-600",
15905
15908
  onClick: (H) => {
15906
15909
  H.stopPropagation(), E(P.id);
15907
15910
  },
@@ -15911,7 +15914,7 @@ const J_ = (r) => {
15911
15914
  /* @__PURE__ */ w(Yn, { title: n.t("definedName.deleteButton"), placement: "top", children: /* @__PURE__ */ w(
15912
15915
  "a",
15913
15916
  {
15914
- className: "univer-absolute univer-text-xs univer-text-error univer-right-5 univer-top-1/2 univer-hidden -univer-translate-y-1/2 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-red-600 dark:hover:!univer-bg-gray-600 group-hover:univer-flex hover:univer-bg-gray-100",
15917
+ className: "univer-text-error univer-absolute univer-right-5 univer-top-1/2 univer-hidden -univer-translate-y-1/2 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-p-1 univer-text-xs univer-text-red-600 hover:univer-bg-gray-100 group-hover:univer-flex dark:hover:!univer-bg-gray-600",
15915
15918
  onClick: (H) => {
15916
15919
  H.stopPropagation(), p(P.id);
15917
15920
  },
@@ -16936,7 +16939,7 @@ const Nb = {
16936
16939
  },
16937
16940
  [Ct.MAIN_AREA]: {
16938
16941
  [Ke.FORMAT]: {
16939
- [hn.name]: {
16942
+ [gn.name]: {
16940
16943
  order: 0,
16941
16944
  menuItemFactory: Qr
16942
16945
  },
@@ -16944,7 +16947,7 @@ const Nb = {
16944
16947
  // order: 1,
16945
16948
  // menuItemFactory: CutMenuItemFactory,
16946
16949
  // },
16947
- [gn.name]: {
16950
+ [mn.name]: {
16948
16951
  order: 2,
16949
16952
  menuItemFactory: Oa
16950
16953
  },
@@ -17077,7 +17080,7 @@ const Nb = {
17077
17080
  },
17078
17081
  [Ct.COL_HEADER]: {
17079
17082
  [Ke.FORMAT]: {
17080
- [hn.name]: {
17083
+ [gn.name]: {
17081
17084
  order: 0,
17082
17085
  menuItemFactory: Qr
17083
17086
  },
@@ -17085,7 +17088,7 @@ const Nb = {
17085
17088
  // order: 1,
17086
17089
  // menuItemFactory: CutMenuItemFactory,
17087
17090
  // },
17088
- [gn.name]: {
17091
+ [mn.name]: {
17089
17092
  order: 2,
17090
17093
  menuItemFactory: Oa
17091
17094
  },
@@ -17198,7 +17201,7 @@ const Nb = {
17198
17201
  },
17199
17202
  [Ct.ROW_HEADER]: {
17200
17203
  [Ke.FORMAT]: {
17201
- [hn.name]: {
17204
+ [gn.name]: {
17202
17205
  order: 0,
17203
17206
  menuItemFactory: Qr
17204
17207
  },
@@ -17206,7 +17209,7 @@ const Nb = {
17206
17209
  // order: 1,
17207
17210
  // menuItemFactory: CutMenuItemFactory,
17208
17211
  // },
17209
- [gn.name]: {
17212
+ [mn.name]: {
17210
17213
  order: 2,
17211
17214
  menuItemFactory: Oa
17212
17215
  },
@@ -17711,7 +17714,7 @@ let tl = class extends oe {
17711
17714
  _o,
17712
17715
  na,
17713
17716
  ra,
17714
- un,
17717
+ hn,
17715
17718
  um,
17716
17719
  Kl,
17717
17720
  zd,
@@ -17737,7 +17740,7 @@ let tl = class extends oe {
17737
17740
  Qd,
17738
17741
  Yo,
17739
17742
  la,
17740
- dn,
17743
+ un,
17741
17744
  uo,
17742
17745
  Qn,
17743
17746
  aa,
@@ -18113,7 +18116,7 @@ const Rh = 2, Qb = [
18113
18116
  };
18114
18117
  if (i.endRow < 0 || i.endCol < 0)
18115
18118
  return null;
18116
- const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(lt), a = en(e, t);
18119
+ const o = t.getRenderById(n.getUnitId()), s = o == null ? void 0 : o.with(he), l = o == null ? void 0 : o.with(lt), a = tn(e, t);
18117
18120
  if (!a || !l) return null;
18118
18121
  const { scene: c } = a, d = s == null ? void 0 : s.getCurrentSkeleton(), u = l.getViewPort(), h = c == null ? void 0 : c.scaleX, g = c == null ? void 0 : c.scaleY, m = c == null ? void 0 : c.getViewportScrollXY(u), f = (P = c.getEngine()) == null ? void 0 : P.getCanvas();
18119
18122
  if (!h || !c || !h || !g || !m) return null;
@@ -18126,7 +18129,7 @@ const Rh = 2, Qb = [
18126
18129
  positionY: T
18127
18130
  };
18128
18131
  }, $b = () => {
18129
- const r = D(nn), e = ht(r.showMenu$, !1), t = ht(r.pasteOptionsCache$, null), n = D(Pe), i = D(L), [o, s] = re(!1), [l, a] = re(!1), c = t == null ? void 0 : t.target.pastedRange, d = Jb(c);
18132
+ const r = D(rn), e = ht(r.showMenu$, !1), t = ht(r.pasteOptionsCache$, null), n = D(Pe), i = D(L), [o, s] = re(!1), [l, a] = re(!1), c = t == null ? void 0 : t.target.pastedRange, d = Jb(c);
18130
18133
  if (!d || !e || d.positionX < 50 || d.positionY < 30) return null;
18131
18134
  const u = o || l, h = (g) => {
18132
18135
  a(!1), i.executeCommand(jm.id, { type: g });
@@ -18157,7 +18160,7 @@ const Rh = 2, Qb = [
18157
18160
  children: /* @__PURE__ */ q(
18158
18161
  "div",
18159
18162
  {
18160
- className: He("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 dark:hover:!univer-bg-gray-800 hover:univer-bg-gray-100", wi, {
18163
+ className: He("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-800", wi, {
18161
18164
  "univer-bg-gray-100 dark:!univer-bg-gray-800": l,
18162
18165
  "univer-bg-white dark:!univer-bg-gray-900": !l
18163
18166
  }),
@@ -18187,7 +18190,7 @@ const Rh = 2, Qb = [
18187
18190
  Do.id,
18188
18191
  Dl.id,
18189
18192
  Ll.id,
18190
- sn.id,
18193
+ ln.id,
18191
18194
  no.id,
18192
18195
  Te.id,
18193
18196
  iv
@@ -18363,7 +18366,7 @@ function tp(r, e, t, n) {
18363
18366
  if (zl((I = y == null ? void 0 : y.n) == null ? void 0 : I.pattern))
18364
18367
  S.t = Mt.STRING;
18365
18368
  else {
18366
- const M = String(p.v), E = mn.parseValue(M);
18369
+ const M = String(p.v), E = $t.parseValue(M);
18367
18370
  (E == null ? void 0 : E.v) !== void 0 && typeof E.v == "number" && (!E.z && ov(M) ? S.t = Mt.FORCE_STRING : S.v = E.v);
18368
18371
  }
18369
18372
  }
@@ -18382,7 +18385,7 @@ function tp(r, e, t, n) {
18382
18385
  id: be.id,
18383
18386
  params: h
18384
18387
  });
18385
- const g = $t(
18388
+ const g = en(
18386
18389
  n,
18387
18390
  h
18388
18391
  );
@@ -18417,7 +18420,7 @@ function np(r, e, t, n, i = !1) {
18417
18420
  if (C.v && !e && zl((M = y == null ? void 0 : y.n) == null ? void 0 : M.pattern))
18418
18421
  _.s || (_.s = {}), _.s.n = y == null ? void 0 : y.n;
18419
18422
  else {
18420
- const T = String(C.v), P = mn.parseValue(T);
18423
+ const T = String(C.v), P = $t.parseValue(T);
18421
18424
  P != null && P.z && (_.s || (_.s = {}), typeof _.s == "object" && ((E = _.s) != null && E.n ? _.s.n.pattern = P.z : _.s.n = { pattern: P.z }));
18422
18425
  }
18423
18426
  u.setValue(I, R, _);
@@ -18431,7 +18434,7 @@ function np(r, e, t, n, i = !1) {
18431
18434
  id: be.id,
18432
18435
  params: g
18433
18436
  });
18434
- const m = $t(
18437
+ const m = en(
18435
18438
  n,
18436
18439
  g
18437
18440
  );
@@ -18460,7 +18463,7 @@ function rp(r, e, t) {
18460
18463
  id: be.id,
18461
18464
  params: d
18462
18465
  });
18463
- const u = $t(
18466
+ const u = en(
18464
18467
  t,
18465
18468
  d
18466
18469
  );
@@ -18486,7 +18489,7 @@ function rR(r, e, t) {
18486
18489
  id: be.id,
18487
18490
  params: d
18488
18491
  });
18489
- const u = $t(
18492
+ const u = en(
18490
18493
  t,
18491
18494
  d
18492
18495
  );
@@ -18596,7 +18599,7 @@ var oR = Object.getOwnPropertyDescriptor, sR = (r, e, t, n) => {
18596
18599
  for (var i = n > 1 ? void 0 : n ? oR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
18597
18600
  (s = r[o]) && (i = s(i) || i);
18598
18601
  return i;
18599
- }, rn = (r, e) => (t, n) => e(t, n, r);
18602
+ }, on = (r, e) => (t, n) => e(t, n, r);
18600
18603
  const lR = [
18601
18604
  Do.id,
18602
18605
  No.id,
@@ -18641,7 +18644,7 @@ let fi = class extends Nn {
18641
18644
  return t.length > 0 ? t : void 0;
18642
18645
  }
18643
18646
  _init() {
18644
- [hn, Kd, gn].forEach(
18647
+ [gn, Kd, mn].forEach(
18645
18648
  (t) => this.disposeWithMe(this._commandService.registerMultipleCommand(t))
18646
18649
  ), [
18647
18650
  Qi,
@@ -18855,10 +18858,10 @@ let fi = class extends Nn {
18855
18858
  }, {})
18856
18859
  };
18857
18860
  c.push({
18858
- id: sn.id,
18861
+ id: ln.id,
18859
18862
  params: S
18860
18863
  }), d.push({
18861
- id: sn.id,
18864
+ id: ln.id,
18862
18865
  params: I
18863
18866
  });
18864
18867
  }
@@ -18899,24 +18902,45 @@ let fi = class extends Nn {
18899
18902
  l = {
18900
18903
  [i.rows[0]]: {
18901
18904
  [i.cols[0]]: {
18902
- p: d
18905
+ p: d,
18906
+ v: null,
18907
+ f: null
18903
18908
  }
18904
18909
  }
18905
18910
  };
18906
- } else
18907
- ed(t) ? l = {
18911
+ } else if (ed(t))
18912
+ l = {
18913
+ [i.rows[0]]: {
18914
+ [i.cols[0]]: {
18915
+ f: t,
18916
+ v: null,
18917
+ p: null
18918
+ }
18919
+ }
18920
+ };
18921
+ else {
18922
+ const c = $t.parseNumber(t);
18923
+ c != null && c.z ? l = {
18908
18924
  [i.rows[0]]: {
18909
18925
  [i.cols[0]]: {
18910
- f: t
18926
+ v: c.v,
18927
+ s: {
18928
+ n: {
18929
+ pattern: c.z
18930
+ }
18931
+ },
18932
+ f: null
18911
18933
  }
18912
18934
  }
18913
18935
  } : l = {
18914
18936
  [i.rows[0]]: {
18915
18937
  [i.cols[0]]: {
18916
- v: t
18938
+ v: t,
18939
+ f: null
18917
18940
  }
18918
18941
  }
18919
18942
  };
18943
+ }
18920
18944
  const a = {
18921
18945
  unitId: o,
18922
18946
  subUnitId: s,
@@ -18932,7 +18956,7 @@ let fi = class extends Nn {
18932
18956
  undos: [
18933
18957
  {
18934
18958
  id: be.id,
18935
- params: $t(this._injector, a)
18959
+ params: en(this._injector, a)
18936
18960
  }
18937
18961
  ]
18938
18962
  };
@@ -19017,10 +19041,10 @@ let fi = class extends Nn {
19017
19041
  }, {})
19018
19042
  };
19019
19043
  return h.push({
19020
- id: sn.id,
19044
+ id: ln.id,
19021
19045
  params: R
19022
19046
  }), g.push({
19023
- id: sn.id,
19047
+ id: ln.id,
19024
19048
  params: y
19025
19049
  }), {
19026
19050
  redos: h,
@@ -19055,7 +19079,7 @@ let fi = class extends Nn {
19055
19079
  params: v
19056
19080
  });
19057
19081
  const p = this._injector.invoke(
19058
- $t,
19082
+ en,
19059
19083
  v
19060
19084
  );
19061
19085
  u.push({
@@ -19094,7 +19118,7 @@ let fi = class extends Nn {
19094
19118
  })
19095
19119
  ), this.disposeWithMe(
19096
19120
  this._commandService.onCommandExecuted((n) => {
19097
- if (n.id === dn.id) {
19121
+ if (n.id === un.id) {
19098
19122
  if (!this._sheetClipboardService.getPasteMenuVisible())
19099
19123
  return;
19100
19124
  const o = n.params.unitId, s = this._sheetClipboardService.getPasteOptionsCache(), l = s == null ? void 0 : s.target.unitId;
@@ -19112,16 +19136,16 @@ let fi = class extends Nn {
19112
19136
  }
19113
19137
  };
19114
19138
  fi = sR([
19115
- rn(0, k(bt)),
19116
- rn(1, N),
19117
- rn(2, Ce),
19118
- rn(3, L),
19119
- rn(4, ke),
19120
- rn(5, pn),
19121
- rn(6, nn),
19122
- rn(7, Jh),
19123
- rn(8, k(Pe)),
19124
- rn(9, kl)
19139
+ on(0, k(bt)),
19140
+ on(1, N),
19141
+ on(2, Ce),
19142
+ on(3, L),
19143
+ on(4, ke),
19144
+ on(5, pn),
19145
+ on(6, rn),
19146
+ on(7, Jh),
19147
+ on(8, k(Pe)),
19148
+ on(9, kl)
19125
19149
  ], fi);
19126
19150
  var aR = Object.getOwnPropertyDescriptor, cR = (r, e, t, n) => {
19127
19151
  for (var i = n > 1 ? void 0 : n ? aR(e, t) : e, o = r.length - 1, s; o >= 0; o--)
@@ -19132,7 +19156,7 @@ let Io = class extends oe {
19132
19156
  constructor(e, t) {
19133
19157
  super();
19134
19158
  b(this, "_currentCell$", new xe());
19135
- b(this, "currentCell$", this._currentCell$.asObservable().pipe(cn(
19159
+ b(this, "currentCell$", this._currentCell$.asObservable().pipe(dn(
19136
19160
  (e, t) => {
19137
19161
  var n, i, o, s, l, a, c, d;
19138
19162
  return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
@@ -19322,11 +19346,11 @@ function ip(r, e, t) {
19322
19346
  const n = (u = (d = (c = e.documentSkeleton) == null ? void 0 : c.getSkeletonData()) == null ? void 0 : d.pages[0].height) != null ? u : 0, i = (m = (g = (h = e.documentSkeleton) == null ? void 0 : h.getSkeletonData()) == null ? void 0 : g.pages[0].width) != null ? m : 0, o = e.verticalAlign, s = e.horizontalAlign;
19323
19347
  let l = 0;
19324
19348
  switch (o) {
19325
- case an.UNSPECIFIED:
19326
- case an.BOTTOM:
19349
+ case cn.UNSPECIFIED:
19350
+ case cn.BOTTOM:
19327
19351
  l = r.mergeInfo.endY - r.mergeInfo.startY - n;
19328
19352
  break;
19329
- case an.MIDDLE:
19353
+ case cn.MIDDLE:
19330
19354
  l = (r.mergeInfo.endY - r.mergeInfo.startY - n) / 2;
19331
19355
  break;
19332
19356
  }
@@ -19440,7 +19464,7 @@ let Ir = class extends oe {
19440
19464
  b(this, "_currentColHeaderPointerUp$", new xe());
19441
19465
  // Notify when hovering over different cells
19442
19466
  b(this, "currentCell$", this._currentCell$.asObservable().pipe(
19443
- cn(
19467
+ dn(
19444
19468
  (e, t) => {
19445
19469
  var n, i, o, s, l, a, c, d;
19446
19470
  return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
@@ -19461,7 +19485,7 @@ let Ir = class extends oe {
19461
19485
  ));
19462
19486
  // Notify when hovering over different cells and different custom range or bullet
19463
19487
  b(this, "currentRichText$", this._currentRichText$.pipe(
19464
- cn(
19488
+ dn(
19465
19489
  // eslint-disable-next-line complexity
19466
19490
  (e, t) => {
19467
19491
  var n, i, o, s, l, a, c, d, u, h, g, m, f, v, p, C, _, S;
@@ -19483,7 +19507,7 @@ let Ir = class extends oe {
19483
19507
  * Nearly same as currentRichText$, but with event
19484
19508
  */
19485
19509
  b(this, "currentCellPosWithEvent$", this._currentCellWithEvent$.pipe(
19486
- cn(
19510
+ dn(
19487
19511
  (e, t) => {
19488
19512
  var n, i, o, s, l, a, c, d;
19489
19513
  return ((n = e == null ? void 0 : e.location) == null ? void 0 : n.unitId) === ((i = t == null ? void 0 : t.location) == null ? void 0 : i.unitId) && ((o = e == null ? void 0 : e.location) == null ? void 0 : o.subUnitId) === ((s = t == null ? void 0 : t.location) == null ? void 0 : s.subUnitId) && ((l = e == null ? void 0 : e.location) == null ? void 0 : l.row) === ((a = t == null ? void 0 : t.location) == null ? void 0 : a.row) && ((c = e == null ? void 0 : e.location) == null ? void 0 : c.col) === ((d = t == null ? void 0 : t.location) == null ? void 0 : d.col);
@@ -19991,7 +20015,7 @@ function ER(r) {
19991
20015
  const TR = {
19992
20016
  [Ct.MAIN_AREA]: {
19993
20017
  [Ke.FORMAT]: {
19994
- [hn.name]: {
20018
+ [gn.name]: {
19995
20019
  order: 0,
19996
20020
  menuItemFactory: Qr
19997
20021
  }
@@ -20005,7 +20029,7 @@ const TR = {
20005
20029
  },
20006
20030
  [Ct.COL_HEADER]: {
20007
20031
  [Ke.FORMAT]: {
20008
- [hn.name]: {
20032
+ [gn.name]: {
20009
20033
  order: 0,
20010
20034
  menuItemFactory: Qr
20011
20035
  }
@@ -20022,7 +20046,7 @@ const TR = {
20022
20046
  },
20023
20047
  [Ct.ROW_HEADER]: {
20024
20048
  [Ke.FORMAT]: {
20025
- [hn.name]: {
20049
+ [gn.name]: {
20026
20050
  order: 0,
20027
20051
  menuItemFactory: Qr
20028
20052
  }
@@ -20070,7 +20094,7 @@ let al = class extends oe {
20070
20094
  _o,
20071
20095
  na,
20072
20096
  ra,
20073
- un,
20097
+ hn,
20074
20098
  um,
20075
20099
  Kl,
20076
20100
  zd,
@@ -20095,7 +20119,7 @@ let al = class extends oe {
20095
20119
  Qd,
20096
20120
  Yo,
20097
20121
  la,
20098
- dn,
20122
+ un,
20099
20123
  uo,
20100
20124
  Qn,
20101
20125
  aa,
@@ -20295,7 +20319,7 @@ let yo = class extends oe {
20295
20319
  worksheetTypes: [Ze, te]
20296
20320
  }), i = this._localeService.t("permission.dialog.setStyleErr");
20297
20321
  break;
20298
- case hn.id:
20322
+ case gn.id:
20299
20323
  n = this._sheetPermissionCheckController.permissionCheckWithRanges({
20300
20324
  workbookTypes: [Xi],
20301
20325
  rangeTypes: [wc],
@@ -20561,7 +20585,7 @@ Mo = NR([
20561
20585
  Di(0, N),
20562
20586
  Di(1, k($)),
20563
20587
  Di(2, k(Pe)),
20564
- Di(3, k(nn)),
20588
+ Di(3, k(rn)),
20565
20589
  Di(4, k(Id))
20566
20590
  ], Mo);
20567
20591
  var LR = Object.getOwnPropertyDescriptor, WR = (r, e, t, n) => {
@@ -20590,7 +20614,7 @@ class FR {
20590
20614
  if (!((g = a == null ? void 0 : a.n) != null && g.pattern))
20591
20615
  return;
20592
20616
  const { pattern: u } = a.n;
20593
- d[u] || (d[u] = mn.getFormatInfo(u)), d[u].isDate && s(c);
20617
+ d[u] || (d[u] = $t.getFormatInfo(u)), d[u].isDate && s(c);
20594
20618
  };
20595
20619
  if (typeof o == "string" && i === Mt.NUMBER) {
20596
20620
  const a = Number(o);
@@ -20876,7 +20900,7 @@ const sp = (r, e, t, n, i) => {
20876
20900
  description: "",
20877
20901
  id: "",
20878
20902
  ranges: l,
20879
- editState: ln.OnlyMe,
20903
+ editState: an.OnlyMe,
20880
20904
  viewState: ri.OthersCanView
20881
20905
  };
20882
20906
  }, ZR = (r, e) => {
@@ -20896,7 +20920,7 @@ const sp = (r, e, t, n, i) => {
20896
20920
  if (!v || !p)
20897
20921
  return null;
20898
20922
  const C = v.getUnitId(), _ = p.getSheetId();
20899
- return /* @__PURE__ */ q("div", { className: "univer-mt-auto univer-flex univer-flex-row-reverse univer-py-5 univer-gap-2", children: [
20923
+ return /* @__PURE__ */ q("div", { className: "univer-mt-auto univer-flex univer-flex-row-reverse univer-gap-2 univer-py-5", children: [
20900
20924
  /* @__PURE__ */ w(
20901
20925
  Xt,
20902
20926
  {
@@ -20916,12 +20940,12 @@ const sp = (r, e, t, n, i) => {
20916
20940
  };
20917
20941
  jR(i, p) && (S.unitType = Vt.Worksheet, S.ranges = []);
20918
20942
  let R = m.selectUserList;
20919
- S.editState === ln.OnlyMe && (R = [], m.setSelectUserList([]));
20943
+ S.editState === an.OnlyMe && (R = [], m.setSelectUserList([]));
20920
20944
  const y = {
20921
- read: S.viewState === ri.OthersCanView ? on.AllCollaborator : on.SomeCollaborator,
20922
- edit: S.editState === ln.DesignedUserCanEdit ? on.SomeCollaborator : on.OneSelf
20945
+ read: S.viewState === ri.OthersCanView ? sn.AllCollaborator : sn.SomeCollaborator,
20946
+ edit: S.editState === an.DesignedUserCanEdit ? sn.SomeCollaborator : sn.OneSelf
20923
20947
  };
20924
- if (S.editState === ln.DesignedUserCanEdit && R.length === 0 && (R = [], y.edit = on.OneSelf), S.permissionId) {
20948
+ if (S.editState === an.DesignedUserCanEdit && R.length === 0 && (R = [], y.edit = sn.OneSelf), S.permissionId) {
20925
20949
  const E = y_(R.filter((O) => O.role === kt.Editor), m.oldCollaboratorList.filter((O) => O.role === kt.Editor)), T = (l == null ? void 0 : l.viewState) === S.viewState, P = (l == null ? void 0 : l.editState) === S.editState, A = S.unitType === (l == null ? void 0 : l.unitType) && S.description === l.description && S.ranges === l.ranges, H = !E || !T || !P;
20926
20950
  if (A && H)
20927
20951
  await u.update({
@@ -21062,7 +21086,7 @@ const sp = (r, e, t, n, i) => {
21062
21086
  ] });
21063
21087
  }, KR = (r) => {
21064
21088
  var p, C;
21065
- const { fromSheetBar: e, rule: t, oldRule: n } = r, i = D(bt), o = t ? ZR(i, t) : YR(i, e), [s, l] = re(o.ranges), [a, c] = re(() => sp(i, o.ranges, o.permissionId, o.unitId, o.subUnitId)), [d, u] = re(o.description), [h, g] = re((p = o.editState) != null ? p : ln.OnlyMe), [m, f] = re((C = o.viewState) != null ? C : ri.OthersCanView), v = qh(Co);
21089
+ const { fromSheetBar: e, rule: t, oldRule: n } = r, i = D(bt), o = t ? ZR(i, t) : YR(i, e), [s, l] = re(o.ranges), [a, c] = re(() => sp(i, o.ranges, o.permissionId, o.unitId, o.subUnitId)), [d, u] = re(o.description), [h, g] = re((p = o.editState) != null ? p : an.OnlyMe), [m, f] = re((C = o.viewState) != null ? C : ri.OthersCanView), v = qh(Co);
21066
21090
  return Me(() => {
21067
21091
  const _ = i.get(N), S = i.get(Ci), I = _.getCurrentUnitForType(x.UNIVER_SHEET);
21068
21092
  if (!I) return;
@@ -21161,7 +21185,7 @@ function JR() {
21161
21185
  };
21162
21186
  }, [r]), Me(() => {
21163
21187
  const O = _.activeSheet$.pipe(
21164
- cn((V, W) => (V == null ? void 0 : V.getSheetId()) === (W == null ? void 0 : W.getSheetId()))
21188
+ dn((V, W) => (V == null ? void 0 : V.getSheetId()) === (W == null ? void 0 : W.getSheetId()))
21165
21189
  ).subscribe(async () => {
21166
21190
  const V = await I(r);
21167
21191
  y(V);
@@ -21329,7 +21353,7 @@ function JR() {
21329
21353
  V.description && /* @__PURE__ */ w(Yn, { title: V.description, children: /* @__PURE__ */ w(
21330
21354
  "div",
21331
21355
  {
21332
- className: "univer-text-3 univer-max-w-64 univer-overflow-hidden univer-text-ellipsis univer-whitespace-nowrap univer-text-gray-400 univer-mt-2]",
21356
+ className: "univer-text-3 univer-mt-2] univer-max-w-64 univer-overflow-hidden univer-text-ellipsis univer-whitespace-nowrap univer-text-gray-400",
21333
21357
  children: V.description
21334
21358
  }
21335
21359
  ) })
@@ -21454,8 +21478,8 @@ const $R = ({ showDetail: r, fromSheetBar: e, rule: t, oldRule: n }) => {
21454
21478
  share: void 0,
21455
21479
  name: "",
21456
21480
  scope: {
21457
- read: on.AllCollaborator,
21458
- edit: on.AllCollaborator
21481
+ read: sn.AllCollaborator,
21482
+ edit: sn.AllCollaborator
21459
21483
  },
21460
21484
  collaborators: void 0
21461
21485
  }).then(() => {
@@ -21471,8 +21495,8 @@ const $R = ({ showDetail: r, fromSheetBar: e, rule: t, oldRule: n }) => {
21471
21495
  name: "",
21472
21496
  strategies: I,
21473
21497
  scope: {
21474
- read: on.AllCollaborator,
21475
- edit: on.AllCollaborator
21498
+ read: sn.AllCollaborator,
21499
+ edit: sn.AllCollaborator
21476
21500
  }
21477
21501
  }
21478
21502
  }), d.executeCommand(GS.id, {
@@ -21728,7 +21752,7 @@ const dI = (r) => {
21728
21752
  objectID: o,
21729
21753
  unitID: f
21730
21754
  })).filter((S) => S.role === kt.Editor);
21731
- _.length > 0 && t(ln.DesignedUserCanEdit), c.setSelectUserList(_), c.setOldCollaboratorList(_);
21755
+ _.length > 0 && t(an.DesignedUserCanEdit), c.setSelectUserList(_), c.setOldCollaboratorList(_);
21732
21756
  })() : (c.setSelectUserList([]), c.setOldCollaboratorList([]));
21733
21757
  }, []), /* @__PURE__ */ q(tr, { children: [
21734
21758
  /* @__PURE__ */ w(As, { className: "univer-font-medium", label: s.t("permission.panel.editPermission"), children: /* @__PURE__ */ q(
@@ -21738,12 +21762,12 @@ const dI = (r) => {
21738
21762
  onChange: (p) => t(p),
21739
21763
  className: "univer-flex univer-flex-col",
21740
21764
  children: [
21741
- /* @__PURE__ */ w(zr, { value: ln.OnlyMe, children: /* @__PURE__ */ w("span", { children: s.t("permission.panel.onlyICanEdit") }) }),
21742
- /* @__PURE__ */ w(zr, { value: ln.DesignedUserCanEdit, children: /* @__PURE__ */ w("span", { children: s.t("permission.panel.designedUserCanEdit") }) })
21765
+ /* @__PURE__ */ w(zr, { value: an.OnlyMe, children: /* @__PURE__ */ w("span", { children: s.t("permission.panel.onlyICanEdit") }) }),
21766
+ /* @__PURE__ */ w(zr, { value: an.DesignedUserCanEdit, children: /* @__PURE__ */ w("span", { children: s.t("permission.panel.designedUserCanEdit") }) })
21743
21767
  ]
21744
21768
  }
21745
21769
  ) }),
21746
- e === ln.DesignedUserCanEdit && /* @__PURE__ */ q(
21770
+ e === an.DesignedUserCanEdit && /* @__PURE__ */ q(
21747
21771
  "div",
21748
21772
  {
21749
21773
  className: He("univer-mb-2 univer-flex univer-h-[270px] univer-flex-col univer-rounded-lg univer-p-3", wi),
@@ -22158,7 +22182,7 @@ let zc = class extends oe {
22158
22182
  o,
22159
22183
  s
22160
22184
  );
22161
- this._commandService.executeCommand(un.id, {
22185
+ this._commandService.executeCommand(hn.id, {
22162
22186
  sheetViewStartRow: a + ((l == null ? void 0 : l.ySplit) || 0),
22163
22187
  sheetViewStartColumn: c + ((l == null ? void 0 : l.xSplit) || 0),
22164
22188
  offsetX: u,
@@ -22236,7 +22260,7 @@ let zc = class extends oe {
22236
22260
  });
22237
22261
  }
22238
22262
  _getSheetObject() {
22239
- return en(this._context.unit, this._context);
22263
+ return tn(this._context.unit, this._context);
22240
22264
  }
22241
22265
  _scrollToSelectionByDirection(r) {
22242
22266
  const e = this._getViewportBounding();
@@ -22314,7 +22338,7 @@ let zc = class extends oe {
22314
22338
  }
22315
22339
  if (p === void 0 && C === void 0) return !1;
22316
22340
  const { offsetX: _, offsetY: S } = this._scrollManagerService.getCurrentScrollState() || {};
22317
- return this._commandService.syncExecuteCommand(un.id, {
22341
+ return this._commandService.syncExecuteCommand(hn.id, {
22318
22342
  sheetViewStartRow: p,
22319
22343
  sheetViewStartColumn: C,
22320
22344
  offsetX: C === void 0 ? _ : 0,
@@ -22505,7 +22529,7 @@ function fp(r) {
22505
22529
  onPanelChange: (m) => {
22506
22530
  c(m);
22507
22531
  },
22508
- disabledDate: (m) => !mn.parseDate(m.format("YYYY-MM-DD"))
22532
+ disabledDate: (m) => !$t.parseDate(m.format("YYYY-MM-DD"))
22509
22533
  }
22510
22534
  ),
22511
22535
  /* @__PURE__ */ w(
@@ -22567,7 +22591,7 @@ const yI = (r) => {
22567
22591
  return /* @__PURE__ */ q(
22568
22592
  "div",
22569
22593
  {
22570
- className: "univer-mt-1 univer-flex univer-cursor-pointer univer-flex-row univer-items-center univer-justify-between univer-rounded-md univer-px-1.5 univer-py-1 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-50",
22594
+ className: "univer-mt-1 univer-flex univer-cursor-pointer univer-flex-row univer-items-center univer-justify-between univer-rounded-md univer-px-1.5 univer-py-1 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-700",
22571
22595
  onClick: y,
22572
22596
  children: [
22573
22597
  /* @__PURE__ */ w(
@@ -22611,7 +22635,7 @@ const yI = (r) => {
22611
22635
  children: /* @__PURE__ */ w(
22612
22636
  "a",
22613
22637
  {
22614
- className: "univer-block univer-cursor-pointer univer-rounded univer-px-1.5 univer-py-1 univer-text-xs dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-200",
22638
+ className: "univer-block univer-cursor-pointer univer-rounded univer-px-1.5 univer-py-1 univer-text-xs hover:univer-bg-gray-200 dark:hover:!univer-bg-gray-700",
22615
22639
  onClick: s,
22616
22640
  children: u.t("dataValidation.list.edit")
22617
22641
  }
@@ -22985,7 +23009,7 @@ let pl = class extends rm {
22985
23009
  this.disposeWithMe(We(a)), this.disposeWithMe(We(c));
22986
23010
  }
22987
23011
  _initUserActionSyncListener() {
22988
- this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Ft.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Ft.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(to).pipe(xt(!1), cn()).subscribe((e) => {
23012
+ this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Ft.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Ft.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(to).pipe(xt(!1), dn()).subscribe((e) => {
22989
23013
  var t;
22990
23014
  e ? ((t = this._renderDisposable) == null || t.dispose(), this._renderDisposable = null, this._reset()) : this._renderDisposable = We(
22991
23015
  this.selectionMoveEnd$.subscribe((n) => this._updateSelections(n, Ft.MOVE_END))
@@ -23116,7 +23140,7 @@ let pl = class extends rm {
23116
23140
  }
23117
23141
  // same as PC
23118
23142
  _getSheetObject() {
23119
- return en(this._context.unit, this._context);
23143
+ return tn(this._context.unit, this._context);
23120
23144
  }
23121
23145
  // same as PC
23122
23146
  _normalSelectionDisabled() {
@@ -23253,7 +23277,7 @@ let vl = class extends jh {
23253
23277
  onStarting() {
23254
23278
  [
23255
23279
  [si],
23256
- [nn, { useClass: Zs }],
23280
+ [rn, { useClass: Zs }],
23257
23281
  [Or, { useClass: Tm }],
23258
23282
  [Wn, { useClass: Gs }],
23259
23283
  [xr, { useClass: Ds }],
@@ -23613,7 +23637,7 @@ const YI = {
23613
23637
  paragraphLineGapDefault: 0,
23614
23638
  renderConfig: {
23615
23639
  horizontalAlign: Rt.UNSPECIFIED,
23616
- verticalAlign: an.TOP,
23640
+ verticalAlign: cn.TOP,
23617
23641
  centerAngle: 0,
23618
23642
  vertexAngle: 0,
23619
23643
  wrapStrategy: mr.WRAP,
@@ -23845,7 +23869,7 @@ let _l = class extends oe {
23845
23869
  unitId: r,
23846
23870
  cellValue: _.getMatrix()
23847
23871
  }, R = this._injector.invoke(
23848
- $t,
23872
+ en,
23849
23873
  S
23850
23874
  ), { undos: y, redos: M } = i.onCommandExecute({
23851
23875
  id: Nl.id,
@@ -23988,7 +24012,7 @@ let Yc = class extends oe {
23988
24012
  };
23989
24013
  Yc = ty([
23990
24014
  cc(1, k(he)),
23991
- cc(2, nn),
24015
+ cc(2, rn),
23992
24016
  cc(3, k(fi))
23993
24017
  ], Yc);
23994
24018
  var ny = Object.getOwnPropertyDescriptor, ry = (r, e, t, n) => {
@@ -24420,7 +24444,7 @@ let Qc = class extends Nn {
24420
24444
  this._shapes.cols.forEach((e) => e.dispose()), this._shapes.rows.forEach((e) => e.dispose()), this._shapes = { cols: [], rows: [] };
24421
24445
  }
24422
24446
  _getSheetObject() {
24423
- return en(this._workbook, this._context);
24447
+ return tn(this._workbook, this._context);
24424
24448
  }
24425
24449
  };
24426
24450
  Qc = gy([
@@ -24551,9 +24575,9 @@ let $c = class extends rm {
24551
24575
  * Handle events in spreadsheet. (e.g. drag and move to make a selection)
24552
24576
  */
24553
24577
  _initUserActionSyncListener() {
24554
- this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Ft.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Ft.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(to).pipe(xt(!1), cn()).subscribe((e) => {
24578
+ this.disposeWithMe(this.selectionMoveStart$.subscribe((e) => this._updateSelections(e, Ft.MOVE_START))), this.disposeWithMe(this.selectionMoving$.subscribe((e) => this._updateSelections(e, Ft.MOVING))), this.disposeWithMe(this._contextService.subscribeContextValue$(to).pipe(xt(!1), dn()).subscribe((e) => {
24555
24579
  e && this._reset();
24556
- })), this.disposeWithMe(this._contextService.subscribeContextValue$(Xr).pipe(xt(!0), cn()).subscribe((e) => {
24580
+ })), this.disposeWithMe(this._contextService.subscribeContextValue$(Xr).pipe(xt(!0), dn()).subscribe((e) => {
24557
24581
  var t;
24558
24582
  e ? this._renderDisposable = We(
24559
24583
  this.selectionMoveEnd$.subscribe((n) => {
@@ -24610,7 +24634,7 @@ let $c = class extends rm {
24610
24634
  return t == null ? void 0 : t.scene.getActiveViewportByCoord(Ve.FromArray([e.offsetX, e.offsetY]));
24611
24635
  }
24612
24636
  _getSheetObject() {
24613
- return en(this._context.unit, this._context);
24637
+ return tn(this._context.unit, this._context);
24614
24638
  }
24615
24639
  /**
24616
24640
  * Handle pointer down event, bind pointermove & pointerup handler.
@@ -24715,7 +24739,7 @@ let Rl = class extends jh {
24715
24739
  gu(this._injector, fv([
24716
24740
  [si],
24717
24741
  [qe, { useClass: Ls }],
24718
- [nn, { useClass: Zs }],
24742
+ [rn, { useClass: Zs }],
24719
24743
  [Or, { useClass: Tm }],
24720
24744
  [Wn, { useClass: Gs }],
24721
24745
  [Ql, { useClass: v1 }],
@@ -24966,7 +24990,7 @@ export {
24966
24990
  $l as IFormulaEditorManagerService,
24967
24991
  bi as IMarkSelectionService,
24968
24992
  vp as ISheetCellDropdownManagerService,
24969
- nn as ISheetClipboardService,
24993
+ rn as ISheetClipboardService,
24970
24994
  lt as ISheetSelectionRenderService,
24971
24995
  ea as IStatusBarService,
24972
24996
  ui as InsertRangeMoveDownConfirmCommand,
@@ -24993,7 +25017,7 @@ export {
24993
25017
  nm as SELECTION_SHAPE_DEPTH,
24994
25018
  By as SHEET_UI_PLUGIN_NAME,
24995
25019
  Ye as SHEET_VIEW_KEY,
24996
- un as ScrollCommand,
25020
+ hn as ScrollCommand,
24997
25021
  um as ScrollToCellCommand,
24998
25022
  hm as ScrollToRangeOperation,
24999
25023
  Kl as SelectAllCommand,
@@ -25021,7 +25045,7 @@ export {
25021
25045
  yi as SetRangeUnderlineCommand,
25022
25046
  aa as SetRowFrozenCommand,
25023
25047
  Ad as SetRowHeaderWidthCommand,
25024
- dn as SetScrollOperation,
25048
+ un as SetScrollOperation,
25025
25049
  uo as SetScrollRelativeCommand,
25026
25050
  Qn as SetSelectionFrozenCommand,
25027
25051
  da as SetWorksheetColAutoWidthCommand,
@@ -25032,12 +25056,12 @@ export {
25032
25056
  fl as SheetCellDropdownManagerService,
25033
25057
  Us as SheetCellEditorResizeService,
25034
25058
  Zs as SheetClipboardService,
25035
- hn as SheetCopyCommand,
25059
+ gn as SheetCopyCommand,
25036
25060
  Kd as SheetCutCommand,
25037
25061
  E0 as SheetMenuPosition,
25038
25062
  $i as SheetPasteBesidesBorderCommand,
25039
25063
  Kr as SheetPasteColWidthCommand,
25040
- gn as SheetPasteCommand,
25064
+ mn as SheetPasteCommand,
25041
25065
  Ji as SheetPasteFormatCommand,
25042
25066
  Lc as SheetPasteShortKeyCommand,
25043
25067
  Qi as SheetPasteValueCommand,
@@ -25090,7 +25114,7 @@ export {
25090
25114
  f0 as getMatrixPlainText,
25091
25115
  Ei as getObservableWithExclusiveRange$,
25092
25116
  zy as getRepeatRange,
25093
- en as getSheetObject,
25117
+ tn as getSheetObject,
25094
25118
  kd as getTopLeftSelectionOfCurrSheet,
25095
25119
  ps as getTransformCoord,
25096
25120
  Zy as isEmbeddingFormulaEditor,