@univerjs-pro/sheets-outline 0.23.0-insiders.20260522-e8f2a3b

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.
Files changed (35) hide show
  1. package/README.md +35 -0
  2. package/lib/cjs/facade.js +1 -0
  3. package/lib/cjs/index.js +1 -0
  4. package/lib/es/facade.js +1 -0
  5. package/lib/es/index.js +1 -0
  6. package/lib/facade.js +1 -0
  7. package/lib/index.js +1 -0
  8. package/lib/types/commands/commands/add-dimension-outline.command.d.ts +12 -0
  9. package/lib/types/commands/commands/clear-dimension-outlines.command.d.ts +12 -0
  10. package/lib/types/commands/commands/permission.d.ts +4 -0
  11. package/lib/types/commands/commands/remove-dimension-outline.command.d.ts +7 -0
  12. package/lib/types/commands/commands/set-dimension-outline-collapsed.command.d.ts +8 -0
  13. package/lib/types/commands/commands/util.d.ts +8 -0
  14. package/lib/types/commands/mutations/add-dimension-outline.mutation.d.ts +8 -0
  15. package/lib/types/commands/mutations/clear-dimension-outlines.mutation.d.ts +11 -0
  16. package/lib/types/commands/mutations/remove-dimension-outline.mutation.d.ts +9 -0
  17. package/lib/types/commands/mutations/set-dimension-outline-collapsed.mutation.d.ts +10 -0
  18. package/lib/types/commands/mutations/transform-dimension-outlines.mutation.d.ts +27 -0
  19. package/lib/types/common/algorithm.d.ts +21 -0
  20. package/lib/types/common/const.d.ts +1 -0
  21. package/lib/types/common/error.d.ts +8 -0
  22. package/lib/types/common/type.d.ts +80 -0
  23. package/lib/types/controllers/config.schema.d.ts +5 -0
  24. package/lib/types/controllers/dimension-outline-command-interceptor.controller.d.ts +23 -0
  25. package/lib/types/controllers/sheets-outline-resource.controller.d.ts +8 -0
  26. package/lib/types/facade/f-enum.d.ts +23 -0
  27. package/lib/types/facade/f-worksheet.d.ts +179 -0
  28. package/lib/types/facade/index.d.ts +4 -0
  29. package/lib/types/index.d.ts +29 -0
  30. package/lib/types/models/sheets-outline-model.d.ts +18 -0
  31. package/lib/types/plugin.d.ts +14 -0
  32. package/lib/types/services/sheets-outline-error.service.d.ts +8 -0
  33. package/lib/umd/facade.js +1 -0
  34. package/lib/umd/index.js +1 -0
  35. package/package.json +84 -0
@@ -0,0 +1,8 @@
1
+ import { DimensionOutlineErrorReason } from './type';
2
+ export declare class DimensionOutlineError extends Error {
3
+ readonly reason: DimensionOutlineErrorReason;
4
+ readonly outlineId?: string | undefined;
5
+ constructor(reason: DimensionOutlineErrorReason, message: string, outlineId?: string | undefined);
6
+ }
7
+ export declare function getDimensionOutlineErrorReason(error: unknown): DimensionOutlineErrorReason;
8
+ export declare function getDimensionOutlineErrorOutlineId(error: unknown): string | undefined;
@@ -0,0 +1,80 @@
1
+ export declare enum DimensionOutlineAxis {
2
+ ROW = "row",
3
+ COLUMN = "column"
4
+ }
5
+ export interface IDimensionOutline {
6
+ id: string;
7
+ unitId: string;
8
+ subUnitId: string;
9
+ axis: DimensionOutlineAxis;
10
+ /** Zero-based inclusive start index of the grouped rows or columns. */
11
+ start: number;
12
+ /** Zero-based inclusive end index of the grouped rows or columns. */
13
+ end: number;
14
+ collapsed: boolean;
15
+ }
16
+ export interface IDimensionOutlineViewModel extends IDimensionOutline {
17
+ depth: number;
18
+ parentId?: string;
19
+ anchor: number;
20
+ children: IDimensionOutlineViewModel[];
21
+ }
22
+ export declare enum DimensionOutlineErrorReason {
23
+ INVALID_RANGE = "invalid-range",
24
+ OUT_OF_BOUNDS = "out-of-bounds",
25
+ CROSSING = "crossing",
26
+ MAX_DEPTH = "max-depth",
27
+ MOVE_SPLITS_OUTLINE = "move-splits-outline",
28
+ CLEAR_RANGE_NOT_CONTAIN_OUTLINE = "clear-range-not-contain-outline",
29
+ UNKNOWN = "unknown"
30
+ }
31
+ export interface IOutlineMutationError {
32
+ reason: DimensionOutlineErrorReason;
33
+ commandId?: string;
34
+ unitId?: string;
35
+ subUnitId?: string;
36
+ axis?: DimensionOutlineAxis;
37
+ outlineId?: string;
38
+ }
39
+ export interface IHiddenRange {
40
+ /** Zero-based inclusive start index of the hidden rows or columns. */
41
+ start: number;
42
+ /** Zero-based inclusive end index of the hidden rows or columns. */
43
+ end: number;
44
+ }
45
+ export interface ISheetDimensionOutlineResource {
46
+ outlineList: IDimensionOutline[];
47
+ }
48
+ export interface ISheetsOutlineResource {
49
+ [subUnitId: string]: ISheetDimensionOutlineResource;
50
+ }
51
+ export interface IDimensionOutlineRange {
52
+ unitId: string;
53
+ subUnitId: string;
54
+ axis: DimensionOutlineAxis;
55
+ /** Zero-based inclusive start index of the rows or columns in the range. */
56
+ start: number;
57
+ /** Zero-based inclusive end index of the rows or columns in the range. */
58
+ end: number;
59
+ }
60
+ export interface IDimensionOutlineInsertRange {
61
+ unitId: string;
62
+ subUnitId: string;
63
+ axis: DimensionOutlineAxis;
64
+ index: number;
65
+ count: number;
66
+ }
67
+ export interface IDimensionOutlineMoveRange {
68
+ unitId: string;
69
+ subUnitId: string;
70
+ axis: DimensionOutlineAxis;
71
+ /** Zero-based inclusive start index of the moved rows or columns. */
72
+ sourceStart: number;
73
+ /** Zero-based inclusive end index of the moved rows or columns. */
74
+ sourceEnd: number;
75
+ destinationIndex: number;
76
+ }
77
+ export interface ICanAddDimensionOutlineResult {
78
+ valid: boolean;
79
+ reason?: DimensionOutlineErrorReason.INVALID_RANGE | DimensionOutlineErrorReason.OUT_OF_BOUNDS | DimensionOutlineErrorReason.CROSSING | DimensionOutlineErrorReason.MAX_DEPTH;
80
+ }
@@ -0,0 +1,5 @@
1
+ export declare const SHEETS_OUTLINE_PLUGIN_CONFIG_KEY = "sheets-outline.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverSheetsOutlineConfig {
4
+ }
5
+ export declare const defaultPluginConfig: IUniverSheetsOutlineConfig;
@@ -0,0 +1,23 @@
1
+ import type { ICommandInfo, IUndoRedoCommandInfosByInterceptor } from '@univerjs/core';
2
+ import type { IDimensionOutline, IOutlineMutationError } from '../common/type';
3
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
+ import { SheetInterceptorService } from '@univerjs/sheets';
5
+ import { SheetsOutlineModel } from '../models/sheets-outline-model';
6
+ import { SheetsOutlineErrorService } from '../services/sheets-outline-error.service';
7
+ interface ICommandScope {
8
+ unitId: string;
9
+ subUnitId: string;
10
+ }
11
+ type GetOutlines = (unitId: string, subUnitId: string) => IDimensionOutline[];
12
+ type OnInvalidOutlineMutation = (error: IOutlineMutationError) => void;
13
+ export declare class DimensionOutlineCommandInterceptorController extends Disposable {
14
+ private readonly _univerInstanceService;
15
+ private readonly _sheetInterceptorService;
16
+ private readonly _sheetsOutlineModel;
17
+ private readonly _sheetsOutlineErrorService;
18
+ constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _sheetsOutlineModel: SheetsOutlineModel, _sheetsOutlineErrorService: SheetsOutlineErrorService);
19
+ private _initCommandInterceptor;
20
+ private _getCommandScope;
21
+ }
22
+ export declare function getDimensionOutlineCommandMutations(command: ICommandInfo, getOutlines: GetOutlines, fallbackScope?: ICommandScope, onInvalid?: OnInvalidOutlineMutation): IUndoRedoCommandInfosByInterceptor;
23
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Disposable, IResourceManagerService } from '@univerjs/core';
2
+ import { SheetsOutlineModel } from '../models/sheets-outline-model';
3
+ export declare class SheetsOutlineResourceController extends Disposable {
4
+ private readonly _resourceManagerService;
5
+ private readonly _sheetsOutlineModel;
6
+ constructor(_resourceManagerService: IResourceManagerService, _sheetsOutlineModel: SheetsOutlineModel);
7
+ private _initResource;
8
+ }
@@ -0,0 +1,23 @@
1
+ import { DimensionOutlineAxis, DimensionOutlineErrorReason } from '@univerjs-pro/sheets-outline';
2
+ import { FEnum } from '@univerjs/core/facade';
3
+ /**
4
+ * @ignore
5
+ */
6
+ export interface IFSheetsOutlineEnumMixin {
7
+ /**
8
+ * Row or column axis for dimension outline facade APIs.
9
+ */
10
+ DimensionOutlineAxis: typeof DimensionOutlineAxis;
11
+ /**
12
+ * Error reason values emitted by dimension outline commands.
13
+ */
14
+ DimensionOutlineErrorReason: typeof DimensionOutlineErrorReason;
15
+ }
16
+ export declare class FSheetsOutlineEnumMixin extends FEnum implements IFSheetsOutlineEnumMixin {
17
+ get DimensionOutlineAxis(): typeof DimensionOutlineAxis;
18
+ get DimensionOutlineErrorReason(): typeof DimensionOutlineErrorReason;
19
+ }
20
+ declare module '@univerjs/core/facade' {
21
+ interface FEnum extends IFSheetsOutlineEnumMixin {
22
+ }
23
+ }
@@ -0,0 +1,179 @@
1
+ import type { IDimensionOutline } from '@univerjs-pro/sheets-outline';
2
+ import { DimensionOutlineAxis } from '@univerjs-pro/sheets-outline';
3
+ import { FWorksheet } from '@univerjs/sheets/facade';
4
+ /**
5
+ * @ignore
6
+ */
7
+ export interface IFWorksheetOutlineMixin {
8
+ /**
9
+ * @description Add a row outline group to the current worksheet.
10
+ *
11
+ * The row index is zero-based. The group covers `numRows` rows starting at
12
+ * `startRow`, so `addRowOutline(1, 3)` groups rows 2 to 4.
13
+ * Invalid groups are ignored and will not be added, including negative ranges,
14
+ * zero or negative row counts, ranges outside the worksheet, crossing groups,
15
+ * and groups that exceed the maximum outline depth.
16
+ *
17
+ * @param {number} startRow The zero-based start row index of the outline group.
18
+ * @param {number} numRows The number of rows included in the outline group.
19
+ * @returns {FWorksheet} The current worksheet instance, allowing chained facade calls.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const fWorkbook = univerAPI.getActiveWorkbook();
24
+ * const fWorksheet = fWorkbook.getActiveSheet();
25
+ *
26
+ * // Group rows 2 to 6.
27
+ * fWorksheet.addRowOutline(1, 5);
28
+ * ```
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const fWorkbook = univerAPI.getActiveWorkbook();
33
+ * const fWorksheet = fWorkbook.getActiveSheet();
34
+ *
35
+ * // Facade methods return the worksheet, so calls can be chained.
36
+ * fWorksheet
37
+ * .addRowOutline(1, 5)
38
+ * .addRowOutline(2, 2);
39
+ * ```
40
+ */
41
+ addRowOutline(startRow: number, numRows: number): FWorksheet;
42
+ /**
43
+ * @description Add a column outline group to the current worksheet.
44
+ *
45
+ * The column index is zero-based. The group covers `numColumns` columns starting at
46
+ * `startColumn`, so `addColumnOutline(0, 3)` groups columns A to C.
47
+ * Invalid groups are ignored and will not be added, including negative ranges,
48
+ * zero or negative column counts, ranges outside the worksheet, crossing groups,
49
+ * and groups that exceed the maximum outline depth.
50
+ *
51
+ * @param {number} startColumn The zero-based start column index of the outline group.
52
+ * @param {number} numColumns The number of columns included in the outline group.
53
+ * @returns {FWorksheet} The current worksheet instance, allowing chained facade calls.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const fWorkbook = univerAPI.getActiveWorkbook();
58
+ * const fWorksheet = fWorkbook.getActiveSheet();
59
+ *
60
+ * // Group columns B to E.
61
+ * fWorksheet.addColumnOutline(1, 4);
62
+ * ```
63
+ */
64
+ addColumnOutline(startColumn: number, numColumns: number): FWorksheet;
65
+ /**
66
+ * @description Remove a row or column outline group from the current worksheet.
67
+ *
68
+ * Use `getDimensionOutlines()` to read the current outline ids. Removing a parent outline
69
+ * does not remove unrelated sibling outlines.
70
+ *
71
+ * @param {string} outlineId The id of the outline group to remove.
72
+ * @returns {FWorksheet} The current worksheet instance, allowing chained facade calls.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const fWorkbook = univerAPI.getActiveWorkbook();
77
+ * const fWorksheet = fWorkbook.getActiveSheet();
78
+ *
79
+ * const [firstRowOutline] = fWorksheet.getDimensionOutlines(univerAPI.Enum.DimensionOutlineAxis.ROW);
80
+ * if (firstRowOutline) {
81
+ * fWorksheet.removeDimensionOutline(firstRowOutline.id);
82
+ * }
83
+ * ```
84
+ */
85
+ removeDimensionOutline(outlineId: string): FWorksheet;
86
+ /**
87
+ * @description Collapse or expand an existing row or column outline group.
88
+ *
89
+ * Pass `true` to collapse the group and hide its grouped rows or columns. Pass `false`
90
+ * to expand it and show the grouped rows or columns again, subject to other nested
91
+ * collapsed groups.
92
+ *
93
+ * @param {string} outlineId The id of the outline group to update.
94
+ * @param {boolean} collapsed Whether the outline group should be collapsed.
95
+ * @returns {FWorksheet} The current worksheet instance, allowing chained facade calls.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const fWorkbook = univerAPI.getActiveWorkbook();
100
+ * const fWorksheet = fWorkbook.getActiveSheet();
101
+ *
102
+ * const [firstColumnOutline] = fWorksheet.getDimensionOutlines(univerAPI.Enum.DimensionOutlineAxis.COLUMN);
103
+ * if (firstColumnOutline) {
104
+ * // Collapse the group.
105
+ * fWorksheet.setDimensionOutlineCollapsed(firstColumnOutline.id, true);
106
+ *
107
+ * // Expand it later.
108
+ * fWorksheet.setDimensionOutlineCollapsed(firstColumnOutline.id, false);
109
+ * }
110
+ * ```
111
+ */
112
+ setDimensionOutlineCollapsed(outlineId: string, collapsed: boolean): FWorksheet;
113
+ /**
114
+ * @description Clear outline groups in a row or column range.
115
+ *
116
+ * The range uses zero-based indexes and is inclusive: `[start, end]`. Only outline
117
+ * groups on the specified axis whose ranges are fully contained in this range are removed.
118
+ *
119
+ * @param {DimensionOutlineAxis} axis The outline axis to clear.
120
+ * @param {number} start The zero-based inclusive start index of the clear range.
121
+ * @param {number} end The zero-based inclusive end index of the clear range.
122
+ * @returns {FWorksheet} The current worksheet instance, allowing chained facade calls.
123
+ *
124
+ * @example
125
+ * ```ts
126
+ * const fWorkbook = univerAPI.getActiveWorkbook();
127
+ * const fWorksheet = fWorkbook.getActiveSheet();
128
+ *
129
+ * // Remove row outline groups fully contained in rows 2 to 10.
130
+ * fWorksheet.clearDimensionOutlines(univerAPI.Enum.DimensionOutlineAxis.ROW, 1, 9);
131
+ * ```
132
+ */
133
+ clearDimensionOutlines(axis: DimensionOutlineAxis, start: number, end: number): FWorksheet;
134
+ /**
135
+ * @description Get outline groups on the current worksheet.
136
+ *
137
+ * When `axis` is omitted, both row and column outline groups are returned. The returned
138
+ * array is a snapshot of the current outline data; use command or facade methods to make
139
+ * changes instead of mutating the returned objects directly.
140
+ *
141
+ * @param {DimensionOutlineAxis} [axis] Optional outline axis filter.
142
+ * @returns {IDimensionOutline[]} The outline groups on the current worksheet.
143
+ *
144
+ * @example
145
+ * ```ts
146
+ * const fWorkbook = univerAPI.getActiveWorkbook();
147
+ * const fWorksheet = fWorkbook.getActiveSheet();
148
+ *
149
+ * const rowOutlines = fWorksheet.getDimensionOutlines(univerAPI.Enum.DimensionOutlineAxis.ROW);
150
+ * rowOutlines.forEach((outline) => {
151
+ * console.log(outline.id, outline.start, outline.end, outline.collapsed);
152
+ * });
153
+ * ```
154
+ *
155
+ * @example
156
+ * ```ts
157
+ * const fWorkbook = univerAPI.getActiveWorkbook();
158
+ * const fWorksheet = fWorkbook.getActiveSheet();
159
+ *
160
+ * const allOutlines = fWorksheet.getDimensionOutlines();
161
+ * const collapsedOutlines = allOutlines.filter((outline) => outline.collapsed);
162
+ * console.log('Collapsed outlines:', collapsedOutlines);
163
+ * ```
164
+ */
165
+ getDimensionOutlines(axis?: DimensionOutlineAxis): IDimensionOutline[];
166
+ }
167
+ export declare class FWorksheetOutlineMixin extends FWorksheet implements IFWorksheetOutlineMixin {
168
+ addRowOutline(startRow: number, numRows: number): FWorksheet;
169
+ addColumnOutline(startColumn: number, numColumns: number): FWorksheet;
170
+ removeDimensionOutline(outlineId: string): FWorksheet;
171
+ setDimensionOutlineCollapsed(outlineId: string, collapsed: boolean): FWorksheet;
172
+ clearDimensionOutlines(axis: DimensionOutlineAxis, start: number, end: number): FWorksheet;
173
+ getDimensionOutlines(axis?: DimensionOutlineAxis): IDimensionOutline[];
174
+ private _addDimensionOutline;
175
+ }
176
+ declare module '@univerjs/sheets/facade' {
177
+ interface FWorksheet extends IFWorksheetOutlineMixin {
178
+ }
179
+ }
@@ -0,0 +1,4 @@
1
+ import './f-enum';
2
+ import './f-worksheet';
3
+ export type * from './f-enum';
4
+ export type * from './f-worksheet';
@@ -0,0 +1,29 @@
1
+ export { AddDimensionOutlineCommand } from './commands/commands/add-dimension-outline.command';
2
+ export type { IAddDimensionOutlineCommandParams } from './commands/commands/add-dimension-outline.command';
3
+ export { ClearDimensionOutlinesCommand } from './commands/commands/clear-dimension-outlines.command';
4
+ export type { IClearDimensionOutlinesCommandParams } from './commands/commands/clear-dimension-outlines.command';
5
+ export { getDimensionOutlineViewPermission$, hasDimensionOutlineViewPermission } from './commands/commands/permission';
6
+ export { RemoveDimensionOutlineCommand } from './commands/commands/remove-dimension-outline.command';
7
+ export type { IRemoveDimensionOutlineCommandParams } from './commands/commands/remove-dimension-outline.command';
8
+ export { SetDimensionOutlineCollapsedCommand } from './commands/commands/set-dimension-outline-collapsed.command';
9
+ export type { ISetDimensionOutlineCollapsedCommandParams } from './commands/commands/set-dimension-outline-collapsed.command';
10
+ export { AddDimensionOutlineMutation } from './commands/mutations/add-dimension-outline.mutation';
11
+ export type { IAddDimensionOutlineMutationParams } from './commands/mutations/add-dimension-outline.mutation';
12
+ export { ClearDimensionOutlinesMutation } from './commands/mutations/clear-dimension-outlines.mutation';
13
+ export type { IClearDimensionOutlinesMutationParams } from './commands/mutations/clear-dimension-outlines.mutation';
14
+ export { RemoveDimensionOutlineMutation } from './commands/mutations/remove-dimension-outline.mutation';
15
+ export type { IRemoveDimensionOutlineMutationParams } from './commands/mutations/remove-dimension-outline.mutation';
16
+ export { SetDimensionOutlineCollapsedMutation } from './commands/mutations/set-dimension-outline-collapsed.mutation';
17
+ export type { ISetDimensionOutlineCollapsedMutationParams } from './commands/mutations/set-dimension-outline-collapsed.mutation';
18
+ export { TransformDimensionOutlinesMutation } from './commands/mutations/transform-dimension-outlines.mutation';
19
+ export type { ITransformDimensionOutlinesMutationParams } from './commands/mutations/transform-dimension-outlines.mutation';
20
+ export { addDimensionOutlineToList, buildDimensionOutlineTree, buildHiddenRanges, canAddDimensionOutline, clearDimensionOutlinesInRange, mergeRanges, transformOutlinesByDelete, transformOutlinesByInsert, transformOutlinesByMove, } from './common/algorithm';
21
+ export { SHEET_OUTLINE_PLUGIN } from './common/const';
22
+ export { DimensionOutlineError, getDimensionOutlineErrorOutlineId, getDimensionOutlineErrorReason } from './common/error';
23
+ export { DimensionOutlineAxis, DimensionOutlineErrorReason } from './common/type';
24
+ export type { ICanAddDimensionOutlineResult, IDimensionOutline, IDimensionOutlineInsertRange, IDimensionOutlineMoveRange, IDimensionOutlineRange, IDimensionOutlineViewModel, IHiddenRange, IOutlineMutationError, ISheetDimensionOutlineResource, ISheetsOutlineResource, } from './common/type';
25
+ export { SHEETS_OUTLINE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
26
+ export type { IUniverSheetsOutlineConfig } from './controllers/config.schema';
27
+ export { SheetsOutlineModel } from './models/sheets-outline-model';
28
+ export { UniverSheetsOutlinePlugin } from './plugin';
29
+ export { SheetsOutlineErrorService } from './services/sheets-outline-error.service';
@@ -0,0 +1,18 @@
1
+ import type { IDimensionOutline, ISheetsOutlineResource } from '../common/type';
2
+ import { Disposable } from '@univerjs/core';
3
+ export declare class SheetsOutlineModel extends Disposable {
4
+ private readonly _outlines;
5
+ private readonly _change$;
6
+ readonly change$: import("rxjs").Observable<{
7
+ unitId: string;
8
+ subUnitId?: string;
9
+ }>;
10
+ getOutlines(unitId: string, subUnitId: string): IDimensionOutline[];
11
+ getUnitOutlines(unitId: string): Map<string, IDimensionOutline[]>;
12
+ setOutlines(unitId: string, subUnitId: string, outlines: IDimensionOutline[]): void;
13
+ removeUnit(unitId: string): void;
14
+ serialize(unitId: string): ISheetsOutlineResource;
15
+ deserialize(unitId: string, resource: ISheetsOutlineResource): void;
16
+ dispose(): void;
17
+ private _ensureUnitOutlines;
18
+ }
@@ -0,0 +1,14 @@
1
+ import type { IUniverSheetsOutlineConfig } from './controllers/config.schema';
2
+ import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare class UniverSheetsOutlinePlugin extends Plugin {
4
+ private readonly _config;
5
+ readonly _injector: Injector;
6
+ private readonly _commandService;
7
+ static pluginName: string;
8
+ static packageName: string;
9
+ static version: string;
10
+ static type: UniverInstanceType;
11
+ constructor(_config: IUniverSheetsOutlineConfig, _injector: Injector, _commandService: ICommandService);
12
+ onStarting(): void;
13
+ private _initRegisterCommand;
14
+ }
@@ -0,0 +1,8 @@
1
+ import type { IOutlineMutationError } from '../common/type';
2
+ import { Disposable } from '@univerjs/core';
3
+ export declare class SheetsOutlineErrorService extends Disposable {
4
+ private readonly _error$;
5
+ readonly error$: import("rxjs").Observable<IOutlineMutationError>;
6
+ emit(error: IOutlineMutationError): void;
7
+ dispose(): void;
8
+ }
@@ -0,0 +1 @@
1
+ function _0x5087(){var _0xc1a148=['1019331KafqAq','7368336awsqOr','COLUMN','amd','851481XsukEb','UniverCoreFacade','ClearDimensionOutlinesCommand','function','26060RRQxrC','UniverSheetsFacade','@univerjs/sheets/facade','SheetsOutlineModel','setDimensionOutlineCollapsed','DimensionOutlineAxis','FWorksheet','768334LVJkrP','_addDimensionOutline','UniverProSheetsOutline','filter','extend','8EWYuFK','object','addColumnOutline','_workbook','_injector','13043niVvIl','getDimensionOutlines','104olgWJa','24GKqufU','_commandService','syncExecuteCommand','removeDimensionOutline','_worksheet','DimensionOutlineErrorReason','RemoveDimensionOutlineCommand','56UCpaet','@univerjs-pro/sheets-outline','5643bAUrMd','getSheetId','2116985bcdgMi','get','getUnitId'];_0x5087=function(){return _0xc1a148;};return _0x5087();}function _0x2da7(_0x407332,_0x5d8af0){_0x407332=_0x407332-0x1ca;var _0x50874d=_0x5087();var _0x2da753=_0x50874d[_0x407332];return _0x2da753;}(function(_0xd55267,_0x4322a0){var _0x290654=_0x2da7,_0x5a7d6b=_0xd55267();while(!![]){try{var _0x259ab3=parseInt(_0x290654(0x1cf))/0x1*(-parseInt(_0x290654(0x1d9))/0x2)+parseInt(_0x290654(0x1e0))/0x3+parseInt(_0x290654(0x1ca))/0x4*(parseInt(_0x290654(0x1dd))/0x5)+parseInt(_0x290654(0x1d2))/0x6*(parseInt(_0x290654(0x1ef))/0x7)+parseInt(_0x290654(0x1d1))/0x8*(-parseInt(_0x290654(0x1e4))/0x9)+parseInt(_0x290654(0x1e8))/0xa*(parseInt(_0x290654(0x1db))/0xb)+-parseInt(_0x290654(0x1e1))/0xc;if(_0x259ab3===_0x4322a0)break;else _0x5a7d6b['push'](_0x5a7d6b['shift']());}catch(_0x2acd1a){_0x5a7d6b['push'](_0x5a7d6b['shift']());}}}(_0x5087,0xb7ec4),function(_0x1f5766,_0x3472fe){var _0x227fdb=_0x2da7;typeof exports==_0x227fdb(0x1cb)&&typeof module<'u'?_0x3472fe(require(`@univerjs-pro/sheets-outline`),require(`@univerjs/core/facade`),require(`@univerjs/sheets/facade`)):typeof define==_0x227fdb(0x1e7)&&define[_0x227fdb(0x1e3)]?define([_0x227fdb(0x1da),'@univerjs/core/facade',_0x227fdb(0x1ea)],_0x3472fe):(_0x1f5766=typeof globalThis<'u'?globalThis:_0x1f5766||self,_0x3472fe(_0x1f5766[_0x227fdb(0x1f1)],_0x1f5766[_0x227fdb(0x1e5)],_0x1f5766[_0x227fdb(0x1e9)]));}(this,function(_0x398e51,_0x45e784,_0xd82204){var _0x36b625=_0x2da7,_0x3e1b46=class extends _0x45e784['FEnum']{get[_0x36b625(0x1ed)](){var _0x575ff5=_0x36b625;return _0x398e51[_0x575ff5(0x1ed)];}get[_0x36b625(0x1d7)](){var _0x4f254e=_0x36b625;return _0x398e51[_0x4f254e(0x1d7)];}};_0x45e784['FEnum'][_0x36b625(0x1f3)](_0x3e1b46);var _0x89106=class extends _0xd82204[_0x36b625(0x1ee)]{['addRowOutline'](_0xd94d29,_0x269e3b){return this['_addDimensionOutline'](_0x398e51['DimensionOutlineAxis']['ROW'],_0xd94d29,_0x269e3b);}[_0x36b625(0x1cc)](_0x44c1e6,_0x378cc1){var _0x3640d0=_0x36b625;return this[_0x3640d0(0x1f0)](_0x398e51['DimensionOutlineAxis'][_0x3640d0(0x1e2)],_0x44c1e6,_0x378cc1);}[_0x36b625(0x1d5)](_0x34ec95){var _0x3697e7=_0x36b625;return this[_0x3697e7(0x1d3)][_0x3697e7(0x1d4)](_0x398e51[_0x3697e7(0x1d8)]['id'],{'unitId':this['_workbook'][_0x3697e7(0x1df)](),'subUnitId':this[_0x3697e7(0x1d6)]['getSheetId'](),'outlineId':_0x34ec95}),this;}[_0x36b625(0x1ec)](_0x1e3507,_0x3793eb){var _0x359b74=_0x36b625;return this[_0x359b74(0x1d3)][_0x359b74(0x1d4)](_0x398e51['SetDimensionOutlineCollapsedCommand']['id'],{'unitId':this[_0x359b74(0x1cd)][_0x359b74(0x1df)](),'subUnitId':this['_worksheet']['getSheetId'](),'outlineId':_0x1e3507,'collapsed':_0x3793eb}),this;}['clearDimensionOutlines'](_0x106991,_0x4c8669,_0x4b97ce){var _0x440f00=_0x36b625;return this['_commandService'][_0x440f00(0x1d4)](_0x398e51[_0x440f00(0x1e6)]['id'],{'unitId':this[_0x440f00(0x1cd)][_0x440f00(0x1df)](),'subUnitId':this[_0x440f00(0x1d6)][_0x440f00(0x1dc)](),'axis':_0x106991,'start':_0x4c8669,'end':_0x4b97ce}),this;}[_0x36b625(0x1d0)](_0x49bd2a){var _0x3bd1f7=_0x36b625;let _0x6ed442=this[_0x3bd1f7(0x1ce)][_0x3bd1f7(0x1de)](_0x398e51[_0x3bd1f7(0x1eb)])['getOutlines'](this[_0x3bd1f7(0x1cd)][_0x3bd1f7(0x1df)](),this[_0x3bd1f7(0x1d6)][_0x3bd1f7(0x1dc)]());return _0x49bd2a?_0x6ed442[_0x3bd1f7(0x1f2)](_0x3ecbb0=>_0x3ecbb0['axis']===_0x49bd2a):_0x6ed442;}['_addDimensionOutline'](_0x30b3f9,_0x3ad2ed,_0x22f310){var _0x33043b=_0x36b625;return this[_0x33043b(0x1d3)][_0x33043b(0x1d4)](_0x398e51['AddDimensionOutlineCommand']['id'],{'unitId':this[_0x33043b(0x1cd)][_0x33043b(0x1df)](),'subUnitId':this[_0x33043b(0x1d6)][_0x33043b(0x1dc)](),'axis':_0x30b3f9,'start':_0x3ad2ed,'end':_0x3ad2ed+_0x22f310-0x1}),this;}};_0xd82204['FWorksheet'][_0x36b625(0x1f3)](_0x89106);}));
@@ -0,0 +1 @@
1
+ function _0x52ef(){const _0x11f6a=['endColumn','collapsed','next','transformOutlinesByDelete','_error$','MUTATION','redos','COMMAND','DependentOn','getDimensionOutlineViewPermission$','getSheetBySheetId','range','move','map','outlineId','asObservable','610621zDsWxI','addDimensionOutlineToList','localeCompare','MoveColsCommand','axis','sort','version','_resourceManagerService','getDimensionOutlineErrorReason','string','ROW','transformOutlinesByMove','SetColHiddenMutation','out-of-bounds','_initRegisterCommand','preRedos','Inject','exports','min','some','0.23.0-insiders.20260522-e8f2a3b','entries','permissionPointUpdate$','end','_commandService','_initResource','decorate','onStarting','RemoveDimensionOutlineCommand','toRange','sheet.mutation.clear-dimension-outlines','buildHiddenRanges','SheetsOutlineModel','pluginName','index','IUndoRedoService','depth','AddDimensionOutlineMutation','name','fromRange','OUT_OF_BOUNDS','hasDimensionOutlineViewPermission','IResourceManagerService','serialize','set','_config','UniverProLicense','@univerjs/core','_initCommandInterceptor','17547JDcLxq','pushUndoRedo','result','@univerjs/sheets','_sheetsOutlineModel','delete','UNIVER_SHEET','getRowCount','startWith','packageName','join','Plugin','ClearDimensionOutlinesCommand','sheet.command.set-dimension-outline-collapsed','message','find','Module','canAddDimensionOutline','interceptCommand','SHEET_OUTLINE_PLUGIN','sheet.mutation.remove-dimension-outline','toPrimitive','symbol','_change$','transformOutlinesByInsert','clear-range-not-contain-outline','5075UotHmB','DimensionOutlineError','INVALID_RANGE','setOutlines','toStringTag','Injector','valid','invalid-dimension-outline','maxIndex','_injector','ClearDimensionOutlinesMutation','change$','emit','UniverInstanceType','error$','getOwnPropertyDescriptor','row','SetRowHiddenMutation','object','@univerjs-pro/license','sheet.mutation.set-dimension-outline-collapsed','dispose','mergedOutline','sheet.command.add-dimension-outline','mergedOutlines','TransformDimensionOutlinesMutation','getCurrentUnitForType','Disposable','pipe','UniverCore','move-splits-outline','insert','sheets-outline.config','SheetInterceptorService','InsertRowCommand','Invalid\x20dimension\x20outline\x20mutation','maxDepth','registerCommand','call','_outlines','UniverSheets','CROSSING','getSheetId','RemoveRowCommand','COLUMN','IPermissionService','MAX_DEPTH','debounceTime','endRow','getActiveSheet','UniverSheetsOutlinePlugin','IUniverInstanceService','_sheetInterceptorService','sourceStart','SetDimensionOutlineCollapsedCommand','generateRandomId','SHEETS_OUTLINE_PLUGIN_CONFIG_KEY','CommandType','invalid-range','column','SetRowVisibleMutation','split','from','_ensureUnitOutlines','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','get','startRow','removeUnit','buildDimensionOutlineTree','default','complete','disposeWithMe','forEach','includes','params','getSheetCommandTarget','Invalid\x20dimension\x20outline\x20move\x20source\x20range','deserialize','permissionCheckWithoutRange','pop','has','5972481yVucnx','push','getUnitOutlines','_getCommandScope','sequenceExecute','ICommandService','subUnitId','values','unitId','getColumnCount','sourceEnd','reason','3106232gfDufT','length','function','defineProperty','getDimensionOutlineErrorOutlineId','start','Crossing','iterator','SheetPermissionCheckController','WorksheetViewPermission','restoreOutlines','getOutlines','filter','InsertColCommand','count','sheet.mutation.add-dimension-outline','3766567AjfkGi','clear','add','stringify','max','86YxWwMX','crossing','type','2092AYThdg','_univerInstanceService','SheetsOutlineErrorService','RemoveColCommand','clearDimensionOutlinesInRange','2129778cwFpQi','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','max-depth','UNKNOWN','offset','Subject','_sheetsOutlineErrorService','destinationIndex','rxjs','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'];_0x52ef=function(){return _0x11f6a;};return _0x52ef();}function _0x247d(_0x92374d,_0x246ccf){_0x92374d=_0x92374d-0xf4;const _0x52ef48=_0x52ef();let _0x247dbb=_0x52ef48[_0x92374d];return _0x247dbb;}(function(_0x29728b,_0x12a4c2){const _0x4ce6c5=_0x247d,_0x577fa5=_0x29728b();while(!![]){try{const _0x5da93c=parseInt(_0x4ce6c5(0x1c3))/0x1+parseInt(_0x4ce6c5(0x1a1))/0x2*(parseInt(_0x4ce6c5(0x115))/0x3)+parseInt(_0x4ce6c5(0x1a4))/0x4*(-parseInt(_0x4ce6c5(0x12f))/0x5)+parseInt(_0x4ce6c5(0x1a9))/0x6+parseInt(_0x4ce6c5(0x19c))/0x7+parseInt(_0x4ce6c5(0x18c))/0x8+-parseInt(_0x4ce6c5(0x180))/0x9;if(_0x5da93c===_0x12a4c2)break;else _0x577fa5['push'](_0x577fa5['shift']());}catch(_0x16ef94){_0x577fa5['push'](_0x577fa5['shift']());}}}(_0x52ef,0xe7b05),function(_0x592214,_0x198ab8){const _0x5dea12=_0x247d;typeof exports==_0x5dea12(0x141)&&typeof module<'u'?_0x198ab8(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`@univerjs-pro/license`)):typeof define==_0x5dea12(0x18e)&&define['amd']?define([_0x5dea12(0xf5),_0x5dea12(0x113),_0x5dea12(0x118),_0x5dea12(0x1b1),'rxjs/operators',_0x5dea12(0x142)],_0x198ab8):(_0x592214=typeof globalThis<'u'?globalThis:_0x592214||self,_0x198ab8(_0x592214['UniverProSheetsOutline']={},_0x592214[_0x5dea12(0x14c)],_0x592214[_0x5dea12(0x157)],_0x592214[_0x5dea12(0x1b1)],_0x592214[_0x5dea12(0x1b1)]['operators'],_0x592214[_0x5dea12(0x112)]));}(this,function(_0x5c4ddd,_0x315a19,_0x323626,_0xfb2134,_0x149fdc,_0x13f857){const _0x166db7=_0x247d;Object[_0x166db7(0x18f)](_0x5c4ddd,Symbol[_0x166db7(0x133)],{'value':_0x166db7(0x125)});let _0x4bde41=function(_0x4ba445){const _0x16d683=_0x166db7;return _0x4ba445[_0x16d683(0x1cd)]=_0x16d683(0x13f),_0x4ba445[_0x16d683(0x15b)]=_0x16d683(0x16a),_0x4ba445;}({}),_0x1089c4=function(_0x259329){const _0x3f495e=_0x166db7;return _0x259329[_0x3f495e(0x131)]=_0x3f495e(0x169),_0x259329[_0x3f495e(0x10c)]='out-of-bounds',_0x259329[_0x3f495e(0x158)]='crossing',_0x259329[_0x3f495e(0x15d)]=_0x3f495e(0x1ab),_0x259329['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x259329[_0x3f495e(0x16f)]=_0x3f495e(0x12e),_0x259329[_0x3f495e(0x1ac)]='unknown',_0x259329;}({});var _0x1de727=class extends Error{constructor(_0x178395,_0x595b55,_0x3266ad){const _0x4959c8=_0x166db7;super(_0x595b55),this[_0x4959c8(0x18b)]=_0x178395,this[_0x4959c8(0x1c1)]=_0x3266ad,this[_0x4959c8(0x10a)]=_0x4959c8(0x130);}};function _0x2d715c(_0x5bc09c){const _0x50d515=_0x166db7;return _0x5bc09c instanceof _0x1de727?_0x5bc09c[_0x50d515(0x18b)]:_0x5bc09c instanceof Error?_0x5bc09c[_0x50d515(0x123)]['includes']('split\x20dimension\x20outline')?_0x50d515(0x14d):_0x5bc09c[_0x50d515(0x123)]['includes'](_0x50d515(0x108))?_0x50d515(0x1ab):_0x5bc09c[_0x50d515(0x123)][_0x50d515(0x178)](_0x50d515(0x192))?_0x50d515(0x1a2):_0x5bc09c[_0x50d515(0x123)][_0x50d515(0x178)](_0x50d515(0x1be))?'invalid-range':'unknown':'unknown';}function _0x4b5ea5(_0x40dcbf){return _0x40dcbf instanceof _0x1de727?_0x40dcbf['outlineId']:void 0x0;}let _0x1612aa=0x2**0x35-0x1;function _0x124695(_0x40eb56,_0x22247a){const _0x34bd1c=_0x166db7;return _0x40eb56[_0x34bd1c(0x188)]===_0x22247a[_0x34bd1c(0x188)]&&_0x40eb56[_0x34bd1c(0x186)]===_0x22247a[_0x34bd1c(0x186)]&&_0x40eb56[_0x34bd1c(0x1c7)]===_0x22247a[_0x34bd1c(0x1c7)];}function _0xef7543(_0x11dd26,_0x1c036a={}){const _0x1c33e0=_0x166db7;var _0x21c51b;let _0x57a2e3=(_0x21c51b=_0x1c036a[_0x1c33e0(0x153)])==null?0x8:_0x21c51b,_0x608cf=new Map();for(let _0x1da589 of _0x11dd26){let _0xb21967=_0x1da589['unitId']+':'+_0x1da589[_0x1c33e0(0x186)]+':'+_0x1da589['axis'],_0x12b739=_0x608cf['get'](_0xb21967);_0x12b739?_0x12b739['push'](_0x1da589):_0x608cf[_0x1c33e0(0x110)](_0xb21967,[_0x1da589]);}let _0x8cf02b=[];for(let _0x2d2871 of _0x608cf['values']()){let _0xb9751f=[..._0x2d2871]['sort'](_0x1a6da3),_0x3711d0=[];for(let _0x422a17 of _0xb9751f){for(_0x418028(_0x422a17);_0x3711d0['length']>0x0&&_0x422a17['start']>_0x3711d0[_0x3711d0[_0x1c33e0(0x18d)]-0x1][_0x1c33e0(0xfb)];)_0x3711d0[_0x1c33e0(0x17e)]();let _0x110022=_0x3711d0[_0x3711d0[_0x1c33e0(0x18d)]-0x1];if(_0x110022&&_0x422a17['end']>_0x110022[_0x1c33e0(0xfb)])throw new _0x1de727(_0x1c33e0(0x1a2),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x422a17['id']);let _0x4c1dd8=_0x110022?_0x110022[_0x1c33e0(0x108)]+0x1:0x1;if(_0x4c1dd8>_0x57a2e3)throw new _0x1de727(_0x1c33e0(0x1ab),_0x1c33e0(0x1b2)+_0x57a2e3,_0x422a17['id']);let _0x4f8969={..._0x422a17,'depth':_0x4c1dd8,'parentId':_0x110022==null?void 0x0:_0x110022['id'],'anchor':_0x422a17[_0x1c33e0(0xfb)],'children':[]};_0x110022?_0x110022['children'][_0x1c33e0(0x181)](_0x4f8969):_0x8cf02b[_0x1c33e0(0x181)](_0x4f8969),_0x3711d0['push'](_0x4f8969);}}return _0x8cf02b;}function _0x26b792(_0x14089c,_0x4085a6,_0x21f7e7={}){const _0x3a934e=_0x166db7;if(_0x4085a6['start']<0x0||_0x4085a6[_0x3a934e(0x191)]>_0x4085a6[_0x3a934e(0xfb)])return{'valid':!0x1,'reason':_0x3a934e(0x169)};if(_0x21f7e7[_0x3a934e(0x137)]!=null&&_0x4085a6[_0x3a934e(0xfb)]>=_0x21f7e7[_0x3a934e(0x137)])return{'valid':!0x1,'reason':_0x3a934e(0x1d0)};let _0x455265=_0x14089c[_0x3a934e(0x198)](_0x5061a1=>_0x124695(_0x5061a1,_0x4085a6));for(let _0x1f4e4e of _0x455265)if(_0x5c0391(_0x1f4e4e,_0x4085a6))return{'valid':!0x1,'reason':'crossing'};try{_0xef7543([..._0x14089c,_0x4085a6],_0x21f7e7);}catch(_0x498d1a){let _0xa71f=_0x2d715c(_0x498d1a);return _0xa71f===_0x3a934e(0x1ab)?{'valid':!0x1,'reason':'max-depth'}:_0xa71f==='invalid-range'?{'valid':!0x1,'reason':_0x3a934e(0x169)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function _0x10b1cc(_0x4ccdf5,_0x2aeab6,_0x132d67={}){const _0xd16f31=_0x166db7;let _0x463401=_0x26b792(_0x4ccdf5,_0x2aeab6,_0x132d67);if(!_0x463401[_0xd16f31(0x135)]){var _0x11da66;throw Error((_0x11da66=_0x463401[_0xd16f31(0x18b)])==null?_0xd16f31(0x136):_0x11da66);}return[..._0x4ccdf5,_0x2aeab6];}function _0x34b248(_0x24f5c1,_0x3e75e7){const _0x4327af=_0x166db7;let _0x1a86af=_0x3e75e7[_0x4327af(0x191)],_0x336d25=_0x3e75e7[_0x4327af(0xfb)],_0x5e3886=[],_0x204c53=!0x0;for(;_0x204c53;){_0x204c53=!0x1;for(let _0x4ac2db of _0x24f5c1)_0x5e3886[_0x4327af(0x178)](_0x4ac2db)||!_0x124695(_0x4ac2db,_0x3e75e7)||!_0x20ce0d(_0x4ac2db[_0x4327af(0x191)],_0x4ac2db[_0x4327af(0xfb)],_0x1a86af,_0x336d25)||(_0x5e3886[_0x4327af(0x181)](_0x4ac2db),_0x1a86af=Math[_0x4327af(0xf6)](_0x1a86af,_0x4ac2db[_0x4327af(0x191)]),_0x336d25=Math['max'](_0x336d25,_0x4ac2db['end']),_0x204c53=!0x0);}if(_0x5e3886['length']===0x0)return null;let [_0x50a9ea]=[..._0x5e3886]['sort'](_0x1a6da3);return{'mergedOutline':{..._0x50a9ea,'start':_0x1a86af,'end':_0x336d25},'mergedOutlines':_0x5e3886};}function _0x3b2b6d(_0x5866d5,_0x13b18e){const _0x454a59=_0x166db7;return _0x5866d5['filter'](_0x339c96=>_0x124695(_0x339c96,_0x13b18e)?!(_0x339c96['start']>=_0x13b18e['start']&&_0x339c96['end']<=_0x13b18e[_0x454a59(0xfb)]):!0x0);}function _0x247acd(_0x3da846,_0x39c53d,_0x3769a9,_0x4eacbb){const _0x5da497=_0x166db7;return _0x1dc877(_0x3da846[_0x5da497(0x198)](_0x382c91=>_0x382c91[_0x5da497(0x188)]===_0x39c53d&&_0x382c91['subUnitId']===_0x3769a9&&_0x382c91[_0x5da497(0x1c7)]===_0x4eacbb&&_0x382c91[_0x5da497(0x1b4)])[_0x5da497(0x1c0)](_0x1ef89e=>({'start':_0x1ef89e[_0x5da497(0x191)],'end':_0x1ef89e[_0x5da497(0xfb)]})));}function _0x1dc877(_0x2c1b4d){const _0x2456f1=_0x166db7;if(_0x2c1b4d[_0x2456f1(0x18d)]===0x0)return[];let _0x529529=[..._0x2c1b4d]['sort']((_0x5b5fa0,_0xabfcf5)=>_0x5b5fa0[_0x2456f1(0x191)]-_0xabfcf5[_0x2456f1(0x191)]||_0x5b5fa0[_0x2456f1(0xfb)]-_0xabfcf5[_0x2456f1(0xfb)]),_0x1d99be=[];for(let _0x5c38af of _0x529529){let _0x333bca=_0x1d99be[_0x1d99be[_0x2456f1(0x18d)]-0x1];!_0x333bca||_0x5c38af[_0x2456f1(0x191)]>_0x333bca[_0x2456f1(0xfb)]+0x1?_0x1d99be['push']({..._0x5c38af}):_0x333bca[_0x2456f1(0xfb)]=Math[_0x2456f1(0x1a0)](_0x333bca['end'],_0x5c38af[_0x2456f1(0xfb)]);}return _0x1d99be;}function _0x51d85b(_0x5c999f,_0x581f8c){const _0x27959c=_0x166db7;return _0x581f8c[_0x27959c(0x19a)]<=0x0?_0x5c999f:_0x2b3dfa(_0x5c999f['map'](_0x3d0c9d=>_0x124695(_0x3d0c9d,_0x581f8c)?_0x581f8c[_0x27959c(0x106)]<=_0x3d0c9d[_0x27959c(0x191)]?{..._0x3d0c9d,'start':_0x3d0c9d[_0x27959c(0x191)]+_0x581f8c[_0x27959c(0x19a)],'end':_0x3d0c9d[_0x27959c(0xfb)]+_0x581f8c[_0x27959c(0x19a)]}:_0x3d0c9d[_0x27959c(0x191)]<_0x581f8c[_0x27959c(0x106)]&&_0x581f8c['index']<=_0x3d0c9d['end']?{..._0x3d0c9d,'end':_0x3d0c9d[_0x27959c(0xfb)]+_0x581f8c[_0x27959c(0x19a)]}:_0x3d0c9d:_0x3d0c9d));}function _0x4419f2(_0x1e6535,_0x527d54){const _0x19ea6b=_0x166db7;if(_0x527d54[_0x19ea6b(0x191)]>_0x527d54[_0x19ea6b(0xfb)])return _0x1e6535;let _0x80d218=_0x527d54[_0x19ea6b(0xfb)]-_0x527d54[_0x19ea6b(0x191)]+0x1,_0x21521e=[];for(let _0xa5cb66 of _0x1e6535){if(!_0x124695(_0xa5cb66,_0x527d54)){_0x21521e[_0x19ea6b(0x181)](_0xa5cb66);continue;}if(_0xa5cb66[_0x19ea6b(0xfb)]<_0x527d54['start']){_0x21521e['push'](_0xa5cb66);continue;}if(_0xa5cb66[_0x19ea6b(0x191)]>_0x527d54['end']){_0x21521e[_0x19ea6b(0x181)]({..._0xa5cb66,'start':_0xa5cb66[_0x19ea6b(0x191)]-_0x80d218,'end':_0xa5cb66[_0x19ea6b(0xfb)]-_0x80d218});continue;}let _0xd0ea14=Math[_0x19ea6b(0x1a0)](_0xa5cb66[_0x19ea6b(0x191)],_0x527d54[_0x19ea6b(0x191)]),_0x24a2e9=Math[_0x19ea6b(0xf6)](_0xa5cb66[_0x19ea6b(0xfb)],_0x527d54['end']),_0x1e68bb=Math[_0x19ea6b(0x1a0)](0x0,_0x24a2e9-_0xd0ea14+0x1),_0x509c1f=_0xa5cb66[_0x19ea6b(0xfb)]-_0xa5cb66[_0x19ea6b(0x191)]+0x1-_0x1e68bb;if(_0x509c1f<=0x0)continue;let _0x1a3b78=_0xa5cb66[_0x19ea6b(0x191)]<_0x527d54[_0x19ea6b(0x191)]?_0xa5cb66['start']:_0x527d54['start'];_0x21521e[_0x19ea6b(0x181)]({..._0xa5cb66,'start':_0x1a3b78,'end':_0x1a3b78+_0x509c1f-0x1});}return _0x2b3dfa(_0x21521e);}function _0x3d86c3(_0x45de85,_0x50b477){const _0x5594e2=_0x166db7;if(_0x50b477[_0x5594e2(0x164)]>_0x50b477[_0x5594e2(0x18a)])return _0x45de85;let _0xe9bc5=[];for(let _0x4f4323 of _0x45de85){if(!_0x124695(_0x4f4323,_0x50b477)){_0xe9bc5['push'](_0x4f4323);continue;}let _0x2fdd4c=_0x421063(_0x4f4323,_0x50b477);if(_0x2fdd4c[_0x5594e2(0x1a3)]===_0x5594e2(0x16c))throw new _0x1de727(_0x5594e2(0x14d),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x4f4323['id'],_0x4f4323['id']);_0xe9bc5[_0x5594e2(0x181)](_0x2fdd4c['outline']);}return _0x2b3dfa(_0xe9bc5);}function _0x421063(_0x180a70,_0x27c326){const _0x38792b=_0x166db7;let _0x293e85=_0x362729(_0x27c326[_0x38792b(0x164)],_0x27c326[_0x38792b(0x18a)]+0x1,_0x27c326[_0x38792b(0x1b0)]),_0x586a69=[],_0x2863eb={'start':_0x180a70[_0x38792b(0x191)],'end':_0x180a70[_0x38792b(0xfb)]+0x1};for(let _0x148799 of _0x293e85){let _0x2f2772=_0x19ce75(_0x2863eb,_0x148799[_0x38792b(0x1be)]);_0x2f2772&&_0x586a69[_0x38792b(0x181)]({'start':_0x2f2772[_0x38792b(0x191)]+_0x148799[_0x38792b(0x1ad)],'end':_0x2f2772[_0x38792b(0xfb)]+_0x148799[_0x38792b(0x1ad)]});}let _0x1d093f=_0x3ca364(_0x586a69);return _0x1d093f[_0x38792b(0x18d)]===0x1?{'type':'ok','outline':{..._0x180a70,'start':_0x1d093f[0x0]['start'],'end':_0x1d093f[0x0][_0x38792b(0xfb)]-0x1}}:{'type':_0x38792b(0x16c),'outline':_0x180a70,'ranges':_0x1d093f};}function _0x362729(_0x567ed3,_0x13df31,_0x5bc555){const _0x4cfb74=_0x166db7;let _0x2711dc=_0x13df31-_0x567ed3;if(_0x2711dc<=0x0)throw Error(_0x4cfb74(0x17b));return _0x5bc555>=_0x567ed3&&_0x5bc555<=_0x13df31?[{'range':{'start':0x0,'end':_0x1612aa},'offset':0x0}]:_0x5bc555<_0x567ed3?[{'range':{'start':0x0,'end':_0x5bc555},'offset':0x0},{'range':{'start':_0x5bc555,'end':_0x567ed3},'offset':_0x2711dc},{'range':{'start':_0x567ed3,'end':_0x13df31},'offset':_0x5bc555-_0x567ed3},{'range':{'start':_0x13df31,'end':_0x1612aa},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x567ed3},'offset':0x0},{'range':{'start':_0x567ed3,'end':_0x13df31},'offset':_0x5bc555-_0x13df31},{'range':{'start':_0x13df31,'end':_0x5bc555},'offset':-_0x2711dc},{'range':{'start':_0x5bc555,'end':_0x1612aa},'offset':0x0}];}function _0x19ce75(_0x5bc5d9,_0x42b9e5){const _0xb2734a=_0x166db7;let _0x56bdc0=Math['max'](_0x5bc5d9['start'],_0x42b9e5[_0xb2734a(0x191)]),_0x277466=Math[_0xb2734a(0xf6)](_0x5bc5d9[_0xb2734a(0xfb)],_0x42b9e5[_0xb2734a(0xfb)]);return _0x56bdc0>=_0x277466?null:{'start':_0x56bdc0,'end':_0x277466};}function _0x3ca364(_0xc11eee){const _0x5831b5=_0x166db7;if(_0xc11eee['length']===0x0)return[];let _0x412890=[..._0xc11eee][_0x5831b5(0x1c8)]((_0x475e53,_0x1b35fe)=>_0x475e53['start']-_0x1b35fe['start']||_0x475e53[_0x5831b5(0xfb)]-_0x1b35fe[_0x5831b5(0xfb)]),_0x2558d7=[];for(let _0x12a4f2 of _0x412890){let _0xb02293=_0x2558d7[_0x2558d7[_0x5831b5(0x18d)]-0x1];!_0xb02293||_0x12a4f2['start']>_0xb02293[_0x5831b5(0xfb)]?_0x2558d7[_0x5831b5(0x181)]({..._0x12a4f2}):_0xb02293[_0x5831b5(0xfb)]=Math[_0x5831b5(0x1a0)](_0xb02293['end'],_0x12a4f2[_0x5831b5(0xfb)]);}return _0x2558d7;}function _0x20ce0d(_0x6b8813,_0xf98ae5,_0x362f6f,_0x1d1ada){return _0xf98ae5+0x1===_0x362f6f||_0x1d1ada+0x1===_0x6b8813;}function _0x2b3dfa(_0xe05546){let _0x3730ad=_0x23214f(_0xe05546);return _0xef7543(_0x3730ad),_0x3730ad;}function _0x23214f(_0x56b906){const _0x578131=_0x166db7;let _0x5c5999=new Map();for(let _0x28f1b7 of _0x56b906){let _0x541d4e=[_0x28f1b7[_0x578131(0x188)],_0x28f1b7[_0x578131(0x186)],_0x28f1b7['axis'],_0x28f1b7[_0x578131(0x191)],_0x28f1b7[_0x578131(0xfb)]][_0x578131(0x11f)](':'),_0x2ce1e1=_0x5c5999['get'](_0x541d4e);if(!_0x2ce1e1){_0x5c5999[_0x578131(0x110)](_0x541d4e,_0x28f1b7);continue;}_0x5c5999[_0x578131(0x110)](_0x541d4e,{..._0x2ce1e1,'collapsed':_0x2ce1e1[_0x578131(0x1b4)]||_0x28f1b7[_0x578131(0x1b4)]});}return Array[_0x578131(0x16d)](_0x5c5999[_0x578131(0x187)]());}function _0x1a6da3(_0x332068,_0x55f242){const _0xae8f1=_0x166db7;return _0x332068[_0xae8f1(0x188)]===_0x55f242[_0xae8f1(0x188)]?_0x332068['subUnitId']===_0x55f242[_0xae8f1(0x186)]?_0x332068[_0xae8f1(0x1c7)]===_0x55f242['axis']?_0x332068['start']===_0x55f242[_0xae8f1(0x191)]?_0x55f242[_0xae8f1(0xfb)]-_0x332068['end']:_0x332068[_0xae8f1(0x191)]-_0x55f242['start']:_0x332068[_0xae8f1(0x1c7)][_0xae8f1(0x1c5)](_0x55f242[_0xae8f1(0x1c7)]):_0x332068[_0xae8f1(0x186)][_0xae8f1(0x1c5)](_0x55f242[_0xae8f1(0x186)]):_0x332068[_0xae8f1(0x188)][_0xae8f1(0x1c5)](_0x55f242[_0xae8f1(0x188)]);}function _0x418028(_0x492bb8){const _0x118240=_0x166db7;if(_0x492bb8['start']>_0x492bb8[_0x118240(0xfb)])throw new _0x1de727(_0x118240(0x169),'Invalid\x20outline\x20range',_0x492bb8['id']);}function _0x5c0391(_0x315791,_0x35bc51){const _0x558dec=_0x166db7;let _0xec6a97=_0x315791[_0x558dec(0x191)]<=_0x35bc51[_0x558dec(0xfb)]&&_0x35bc51[_0x558dec(0x191)]<=_0x315791[_0x558dec(0xfb)],_0x550f84=_0x315791['start']<=_0x35bc51[_0x558dec(0x191)]&&_0x35bc51[_0x558dec(0xfb)]<=_0x315791['end'],_0x3b811d=_0x35bc51[_0x558dec(0x191)]<=_0x315791['start']&&_0x315791[_0x558dec(0xfb)]<=_0x35bc51['end'];return _0xec6a97&&!_0x550f84&&!_0x3b811d;}function _0x3e3ca9(_0x2a9041){'@babel/helpers - typeof';const _0x283172=_0x166db7;return _0x3e3ca9=typeof Symbol==_0x283172(0x18e)&&typeof Symbol[_0x283172(0x193)]==_0x283172(0x12b)?function(_0x2ce810){return typeof _0x2ce810;}:function(_0x272494){const _0x29a196=_0x283172;return _0x272494&&typeof Symbol=='function'&&_0x272494['constructor']===Symbol&&_0x272494!==Symbol['prototype']?_0x29a196(0x12b):typeof _0x272494;},_0x3e3ca9(_0x2a9041);}function _0x3a77fa(_0x3a79e7,_0x5a4033){const _0x39894a=_0x166db7;if(_0x3e3ca9(_0x3a79e7)!=_0x39894a(0x141)||!_0x3a79e7)return _0x3a79e7;var _0x2f049c=_0x3a79e7[Symbol[_0x39894a(0x12a)]];if(_0x2f049c!==void 0x0){var _0x2c988c=_0x2f049c[_0x39894a(0x155)](_0x3a79e7,_0x5a4033||_0x39894a(0x174));if(_0x3e3ca9(_0x2c988c)!=_0x39894a(0x141))return _0x2c988c;throw TypeError(_0x39894a(0x1aa));}return(_0x5a4033===_0x39894a(0x1cc)?String:Number)(_0x3a79e7);}function _0x254349(_0x3fa7ae){const _0x2416f1=_0x166db7;var _0x34ce28=_0x3a77fa(_0x3fa7ae,_0x2416f1(0x1cc));return _0x3e3ca9(_0x34ce28)=='symbol'?_0x34ce28:_0x34ce28+'';}function _0x54f1b0(_0x21d713,_0x84bf15,_0x3c5e57){return(_0x84bf15=_0x254349(_0x84bf15))in _0x21d713?Object['defineProperty'](_0x21d713,_0x84bf15,{'value':_0x3c5e57,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21d713[_0x84bf15]=_0x3c5e57,_0x21d713;}var _0x1d0069=class extends _0x315a19[_0x166db7(0x14a)]{constructor(..._0x34b17b){const _0x3f0714=_0x166db7;super(..._0x34b17b),_0x54f1b0(this,_0x3f0714(0x156),new Map()),_0x54f1b0(this,'_change$',new _0xfb2134[(_0x3f0714(0x1ae))]()),_0x54f1b0(this,_0x3f0714(0x13a),this[_0x3f0714(0x12c)]['asObservable']());}[_0x166db7(0x197)](_0x50050f,_0x416dab){const _0x155db5=_0x166db7;var _0x4609d5,_0x1df94e;return[...(_0x4609d5=(_0x1df94e=this[_0x155db5(0x156)][_0x155db5(0x170)](_0x50050f))==null?void 0x0:_0x1df94e[_0x155db5(0x170)](_0x416dab))==null?[]:_0x4609d5];}[_0x166db7(0x182)](_0x250dea){const _0x1df728=_0x166db7;let _0x312c01=this[_0x1df728(0x156)]['get'](_0x250dea),_0x1e8773=new Map();return _0x312c01==null||_0x312c01[_0x1df728(0x177)]((_0x2528fe,_0x5c923c)=>{_0x1e8773['set'](_0x5c923c,[..._0x2528fe]);}),_0x1e8773;}[_0x166db7(0x132)](_0x15a974,_0x5577cd,_0x2cb7de){const _0x3d82a4=_0x166db7;this[_0x3d82a4(0x16e)](_0x15a974)[_0x3d82a4(0x110)](_0x5577cd,[..._0x2cb7de]),this['_change$'][_0x3d82a4(0x1b5)]({'unitId':_0x15a974,'subUnitId':_0x5577cd});}[_0x166db7(0x172)](_0x1837af){const _0x45be1c=_0x166db7;this['_outlines'][_0x45be1c(0x11a)](_0x1837af),this['_change$']['next']({'unitId':_0x1837af});}['serialize'](_0x58c80c){const _0xc7fcc3=_0x166db7;let _0x3608cf=this[_0xc7fcc3(0x156)][_0xc7fcc3(0x170)](_0x58c80c),_0x5e6597={};return _0x3608cf==null||_0x3608cf['forEach']((_0x485832,_0x2d93e0)=>{_0x5e6597[_0x2d93e0]={'outlineList':[..._0x485832]};}),_0x5e6597;}['deserialize'](_0x430033,_0x3b0a7e){const _0x3fb064=_0x166db7;let _0x51d577=new Map();Object[_0x3fb064(0xf9)](_0x3b0a7e)[_0x3fb064(0x177)](([_0x15dfe7,_0x125450])=>{const _0x2f2c96=_0x3fb064;var _0x2495d6;_0x51d577[_0x2f2c96(0x110)](_0x15dfe7,[...(_0x2495d6=_0x125450['outlineList'])==null?[]:_0x2495d6]);}),this[_0x3fb064(0x156)][_0x3fb064(0x110)](_0x430033,_0x51d577),this[_0x3fb064(0x12c)][_0x3fb064(0x1b5)]({'unitId':_0x430033});}[_0x166db7(0x144)](){const _0x577a8c=_0x166db7;super[_0x577a8c(0x144)](),this[_0x577a8c(0x156)][_0x577a8c(0x19d)](),this['_change$'][_0x577a8c(0x175)]();}[_0x166db7(0x16e)](_0x859135){const _0x32c90f=_0x166db7;let _0x46bb0f=this[_0x32c90f(0x156)]['get'](_0x859135);return _0x46bb0f||(_0x46bb0f=new Map(),this[_0x32c90f(0x156)][_0x32c90f(0x110)](_0x859135,_0x46bb0f)),_0x46bb0f;}},_0x530e45=class extends _0x315a19[_0x166db7(0x14a)]{constructor(..._0x41eb4f){const _0x58a7a1=_0x166db7;super(..._0x41eb4f),_0x54f1b0(this,'_error$',new _0xfb2134[(_0x58a7a1(0x1ae))]()),_0x54f1b0(this,_0x58a7a1(0x13d),this[_0x58a7a1(0x1b7)][_0x58a7a1(0x1c2)]());}[_0x166db7(0x13b)](_0x2931b4){const _0x1cbedb=_0x166db7;this[_0x1cbedb(0x1b7)]['next'](_0x2931b4);}['dispose'](){const _0x1980c9=_0x166db7;super['dispose'](),this[_0x1980c9(0x1b7)][_0x1980c9(0x175)]();}};let _0x176acd={'id':_0x166db7(0x19b),'type':_0x315a19[_0x166db7(0x168)][_0x166db7(0x1b8)],'handler':(_0x8b1fb6,_0x3b059c)=>{const _0x167f8b=_0x166db7;let _0x571d83=_0x8b1fb6[_0x167f8b(0x170)](_0x1d0069),_0x17e6d6=_0x571d83[_0x167f8b(0x197)](_0x3b059c[_0x167f8b(0x188)],_0x3b059c['subUnitId']);return _0x571d83[_0x167f8b(0x132)](_0x3b059c['unitId'],_0x3b059c[_0x167f8b(0x186)],_0x10b1cc(_0x17e6d6,_0x3b059c['outline'])),!0x0;}},_0x5740fd={'id':_0x166db7(0x129),'type':_0x315a19[_0x166db7(0x168)][_0x166db7(0x1b8)],'handler':(_0x72b5b6,_0x48196f)=>{const _0x3a3b2f=_0x166db7;let _0x20efd6=_0x72b5b6[_0x3a3b2f(0x170)](_0x1d0069),_0x1af416=_0x20efd6[_0x3a3b2f(0x197)](_0x48196f[_0x3a3b2f(0x188)],_0x48196f['subUnitId']);return _0x20efd6[_0x3a3b2f(0x132)](_0x48196f[_0x3a3b2f(0x188)],_0x48196f['subUnitId'],_0x1af416[_0x3a3b2f(0x198)](_0x7db374=>_0x7db374['id']!==_0x48196f['outlineId'])),!0x0;}};function _0x52b0c6(_0x2d9871,_0x419d50,_0x198bf4){const _0x43328a=_0x166db7;let _0x4f0fda=_0x1132f7(_0x2d9871);return _0x4f0fda?_0x4f0fda[_0x43328a(0x17d)]({'workbookTypes':[_0x323626['WorkbookViewPermission']],'worksheetTypes':[_0x323626[_0x43328a(0x195)]]},_0x419d50,_0x198bf4):!0x0;}function _0x98b2b9(_0x10e29d,_0x2398eb,_0x5f283a){const _0x41874d=_0x166db7;var _0x3ffc1d;let _0x311f0e=_0x4fc7f5(_0x10e29d);return((_0x3ffc1d=_0x311f0e==null?void 0x0:_0x311f0e[_0x41874d(0xfa)])==null?(0x0,_0xfb2134['of'])(null):_0x3ffc1d)[_0x41874d(0x14b)]((0x0,_0x149fdc[_0x41874d(0x15e)])(0x64),(0x0,_0x149fdc[_0x41874d(0x11d)])(null),(0x0,_0x149fdc[_0x41874d(0x1c0)])(()=>_0x52b0c6(_0x10e29d,_0x2398eb,_0x5f283a)));}function _0x1132f7(_0x12774f){const _0x2378e4=_0x166db7;if(typeof _0x12774f[_0x2378e4(0x17f)]==_0x2378e4(0x18e)&&!_0x12774f[_0x2378e4(0x17f)](_0x323626[_0x2378e4(0x194)]))return null;try{return _0x12774f[_0x2378e4(0x170)](_0x323626['SheetPermissionCheckController']);}catch{return null;}}function _0x4fc7f5(_0x38cb00){const _0x2a1920=_0x166db7;if(typeof _0x38cb00[_0x2a1920(0x17f)]==_0x2a1920(0x18e)&&!_0x38cb00[_0x2a1920(0x17f)](_0x315a19[_0x2a1920(0x15c)]))return null;try{return _0x38cb00[_0x2a1920(0x170)](_0x315a19[_0x2a1920(0x15c)]);}catch{return null;}}let _0x3b8254={'id':_0x166db7(0x146),'type':_0x315a19['CommandType'][_0x166db7(0x1ba)],'handler':(_0x17510a,_0x44a049)=>{const _0x2476b3=_0x166db7;var _0x56922d,_0x20acb5;if(!_0x44a049)return!0x1;let _0x1d2ff1=(0x0,_0x323626[_0x2476b3(0x17a)])(_0x17510a[_0x2476b3(0x170)](_0x315a19[_0x2476b3(0x162)]),_0x44a049);if(!_0x1d2ff1)return!0x1;let {unitId:_0x5713a0,subUnitId:_0x204065,worksheet:_0x122dbf}=_0x1d2ff1;if(!_0x52b0c6(_0x17510a,_0x5713a0,_0x204065))return!0x1;let _0xcb1ed9=_0x17510a[_0x2476b3(0x170)](_0x1d0069),_0x47b90b={'id':'dimension-outline-'+(0x0,_0x315a19[_0x2476b3(0x166)])(0x6),'unitId':_0x5713a0,'subUnitId':_0x204065,'axis':_0x44a049[_0x2476b3(0x1c7)],'start':_0x44a049[_0x2476b3(0x191)],'end':_0x44a049[_0x2476b3(0xfb)],'collapsed':!0x1},_0x68fb80=_0x44a049[_0x2476b3(0x1c7)]===_0x2476b3(0x13f)?_0x122dbf[_0x2476b3(0x11c)]():_0x122dbf[_0x2476b3(0x189)](),_0x35d146=_0xcb1ed9['getOutlines'](_0x5713a0,_0x204065),_0x326af1=_0x34b248(_0x35d146,_0x47b90b),_0x4a9d2d=(_0x56922d=_0x326af1==null?void 0x0:_0x326af1[_0x2476b3(0x147)])==null?[]:_0x56922d,_0x3d1a89=(_0x20acb5=_0x326af1==null?void 0x0:_0x326af1[_0x2476b3(0x145)])==null?_0x47b90b:_0x20acb5,_0x43d9a1=_0x26b792(_0x326af1?_0x35d146[_0x2476b3(0x198)](_0x2120f3=>!_0x4a9d2d[_0x2476b3(0xf7)](_0x53b98d=>_0x53b98d['id']===_0x2120f3['id'])):_0x35d146,_0x3d1a89,{'maxIndex':_0x68fb80});if(!_0x43d9a1['valid']){var _0x47b61d;return _0x17510a['get'](_0x530e45)[_0x2476b3(0x13b)]({'reason':(_0x47b61d=_0x43d9a1['reason'])==null?'unknown':_0x47b61d,'commandId':_0x3b8254['id'],'unitId':_0x5713a0,'subUnitId':_0x204065,'axis':_0x44a049[_0x2476b3(0x1c7)],'outlineId':_0x3d1a89['id']}),!0x1;}let _0x46a4d9=[..._0x4a9d2d[_0x2476b3(0x1c0)](_0x10aa9e=>({'id':_0x5740fd['id'],'params':{'unitId':_0x5713a0,'subUnitId':_0x204065,'outlineId':_0x10aa9e['id']}})),{'id':_0x176acd['id'],'params':{'unitId':_0x5713a0,'subUnitId':_0x204065,'outline':_0x3d1a89}}],_0x175a0b=[{'id':_0x5740fd['id'],'params':{'unitId':_0x5713a0,'subUnitId':_0x204065,'outlineId':_0x3d1a89['id']}},..._0x4a9d2d[_0x2476b3(0x1c0)](_0x135c1b=>({'id':_0x176acd['id'],'params':{'unitId':_0x5713a0,'subUnitId':_0x204065,'outline':_0x135c1b}}))];return(0x0,_0x315a19['sequenceExecute'])(_0x46a4d9,_0x17510a[_0x2476b3(0x170)](_0x315a19[_0x2476b3(0x185)]))[_0x2476b3(0x117)]?(_0x17510a[_0x2476b3(0x170)](_0x315a19[_0x2476b3(0x107)])[_0x2476b3(0x116)]({'unitID':_0x5713a0,'undoMutations':_0x175a0b,'redoMutations':_0x46a4d9}),!0x0):!0x1;}},_0x24a98d={'id':_0x166db7(0x102),'type':_0x315a19['CommandType']['MUTATION'],'handler':(_0x2cf5a9,_0x32635f)=>{const _0x1658e3=_0x166db7;let _0x2fc917=_0x2cf5a9[_0x1658e3(0x170)](_0x1d0069),_0x2a4186=_0x2fc917[_0x1658e3(0x197)](_0x32635f[_0x1658e3(0x188)],_0x32635f[_0x1658e3(0x186)]);return _0x2fc917[_0x1658e3(0x132)](_0x32635f[_0x1658e3(0x188)],_0x32635f[_0x1658e3(0x186)],_0x3b2b6d(_0x2a4186,_0x32635f)),!0x0;}},_0xc0c9de={'id':'sheet.command.clear-dimension-outlines','type':_0x315a19[_0x166db7(0x168)][_0x166db7(0x1ba)],'handler':(_0x5b5108,_0x3f0a2d)=>{const _0x552c6f=_0x166db7;if(!_0x3f0a2d)return!0x1;let _0x65a601=(0x0,_0x323626[_0x552c6f(0x17a)])(_0x5b5108[_0x552c6f(0x170)](_0x315a19[_0x552c6f(0x162)]),_0x3f0a2d);if(!_0x65a601)return!0x1;let {unitId:_0x104883,subUnitId:_0x3112ee}=_0x65a601;if(!_0x52b0c6(_0x5b5108,_0x104883,_0x3112ee))return!0x1;let _0x4713c3={'unitId':_0x104883,'subUnitId':_0x3112ee,'axis':_0x3f0a2d[_0x552c6f(0x1c7)],'start':_0x3f0a2d[_0x552c6f(0x191)],'end':_0x3f0a2d[_0x552c6f(0xfb)]},_0x4b5a95=_0x5b5108['get'](_0x1d0069)[_0x552c6f(0x197)](_0x104883,_0x3112ee)[_0x552c6f(0x198)](_0x5cd03b=>_0x124695(_0x5cd03b,_0x4713c3)&&_0x5cd03b[_0x552c6f(0x191)]>=_0x3f0a2d[_0x552c6f(0x191)]&&_0x5cd03b[_0x552c6f(0xfb)]<=_0x3f0a2d['end']);if(_0x4b5a95[_0x552c6f(0x18d)]===0x0)return _0x5b5108[_0x552c6f(0x170)](_0x530e45)[_0x552c6f(0x13b)]({'reason':_0x552c6f(0x12e),'commandId':_0xc0c9de['id'],'unitId':_0x104883,'subUnitId':_0x3112ee,'axis':_0x3f0a2d['axis']}),!0x1;let _0x65e01=[{'id':_0x24a98d['id'],'params':{..._0x4713c3,'removedOutlineIds':_0x4b5a95['map'](_0x575051=>_0x575051['id'])}}],_0x403ea6=_0x4b5a95['map'](_0x4943ef=>({'id':_0x176acd['id'],'params':{'unitId':_0x104883,'subUnitId':_0x3112ee,'outline':_0x4943ef}}));return(0x0,_0x315a19[_0x552c6f(0x184)])(_0x65e01,_0x5b5108['get'](_0x315a19['ICommandService']))[_0x552c6f(0x117)]?(_0x5b5108[_0x552c6f(0x170)](_0x315a19[_0x552c6f(0x107)])[_0x552c6f(0x116)]({'unitID':_0x104883,'undoMutations':_0x403ea6,'redoMutations':_0x65e01}),!0x0):!0x1;}},_0x35b5e7={'id':'sheet.command.remove-dimension-outline','type':_0x315a19[_0x166db7(0x168)][_0x166db7(0x1ba)],'handler':(_0x158689,_0x548789)=>{const _0x210de8=_0x166db7;if(!_0x548789)return!0x1;let _0x2e21ea=(0x0,_0x323626[_0x210de8(0x17a)])(_0x158689[_0x210de8(0x170)](_0x315a19[_0x210de8(0x162)]),_0x548789);if(!_0x2e21ea)return!0x1;let {unitId:_0x30700f,subUnitId:_0x177879}=_0x2e21ea;if(!_0x52b0c6(_0x158689,_0x30700f,_0x177879))return!0x1;let _0x51a4f4=_0x158689[_0x210de8(0x170)](_0x1d0069)[_0x210de8(0x197)](_0x30700f,_0x177879)[_0x210de8(0x124)](_0x15eebe=>_0x15eebe['id']===_0x548789['outlineId']);if(!_0x51a4f4)return!0x1;let _0x320bb4=[{'id':_0x5740fd['id'],'params':{'unitId':_0x30700f,'subUnitId':_0x177879,'outlineId':_0x51a4f4['id'],'outline':_0x51a4f4}}],_0x459b4c=[{'id':_0x176acd['id'],'params':{'unitId':_0x30700f,'subUnitId':_0x177879,'outline':_0x51a4f4}}];return(0x0,_0x315a19['sequenceExecute'])(_0x320bb4,_0x158689[_0x210de8(0x170)](_0x315a19[_0x210de8(0x185)]))[_0x210de8(0x117)]?(_0x158689[_0x210de8(0x170)](_0x315a19[_0x210de8(0x107)])[_0x210de8(0x116)]({'unitID':_0x30700f,'undoMutations':_0x459b4c,'redoMutations':_0x320bb4}),!0x0):!0x1;}},_0x55a39={'id':_0x166db7(0x143),'type':_0x315a19[_0x166db7(0x168)]['MUTATION'],'handler':(_0x3bc76a,_0x391f4c)=>{const _0x15e564=_0x166db7;let _0x4c6814=_0x3bc76a['get'](_0x1d0069),_0x314a95=_0x4c6814[_0x15e564(0x197)](_0x391f4c[_0x15e564(0x188)],_0x391f4c['subUnitId']),_0x1cee7c=_0x314a95['find'](_0x431b8b=>_0x431b8b['id']===_0x391f4c[_0x15e564(0x1c1)]);return _0x1cee7c&&_0x4c6814['setOutlines'](_0x391f4c[_0x15e564(0x188)],_0x391f4c['subUnitId'],_0x314a95[_0x15e564(0x1c0)](_0x5eba2c=>_0x5eba2c['unitId']!==_0x1cee7c[_0x15e564(0x188)]||_0x5eba2c['subUnitId']!==_0x1cee7c[_0x15e564(0x186)]||_0x5eba2c[_0x15e564(0x1c7)]!==_0x1cee7c[_0x15e564(0x1c7)]||_0x5eba2c[_0x15e564(0x191)]!==_0x1cee7c[_0x15e564(0x191)]||_0x5eba2c[_0x15e564(0xfb)]!==_0x1cee7c['end']?_0x5eba2c:{..._0x5eba2c,'collapsed':_0x391f4c[_0x15e564(0x1b4)]})),!0x0;}};function _0x286997(_0x2ebcda,_0x82c8e,_0x34cbd9,_0x425378){return _0x2ebcda==='row'?{'startRow':_0x82c8e,'endRow':_0x34cbd9,'startColumn':0x0,'endColumn':_0x425378['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x425378['getRowCount']()-0x1,'startColumn':_0x82c8e,'endColumn':_0x34cbd9};}function _0x1f14f0(_0x513b04){const _0x2664cb=_0x166db7;return _0x513b04===_0x2664cb(0x13f)?_0x323626[_0x2664cb(0x140)]['id']:_0x323626[_0x2664cb(0x1cf)]['id'];}function _0x5674e5(_0x47f566){const _0x2085ca=_0x166db7;return _0x47f566==='row'?_0x323626[_0x2085ca(0x16b)]['id']:_0x323626['SetColVisibleMutation']['id'];}function _0x2aa890(_0x316b31,_0x55a6e1,_0x448847,_0x4c512c){const _0x27b835=_0x166db7;let _0x3f3b1b=_0x55a6e1?[_0x286997(_0x316b31[_0x27b835(0x1c7)],_0x316b31[_0x27b835(0x191)],_0x316b31[_0x27b835(0xfb)],_0x448847)]:_0x517df8(_0x316b31,_0x4c512c,_0x448847),_0x3da19a=_0x55a6e1?_0x1f14f0(_0x316b31['axis']):_0x5674e5(_0x316b31[_0x27b835(0x1c7)]);return[{'id':_0x55a39['id'],'params':{'unitId':_0x316b31['unitId'],'subUnitId':_0x316b31[_0x27b835(0x186)],'outlineId':_0x316b31['id'],'outline':_0x316b31,'collapsed':_0x55a6e1}},..._0x3f3b1b[_0x27b835(0x1c0)](_0xeaadfb=>({'id':_0x3da19a,'params':{'unitId':_0x316b31[_0x27b835(0x188)],'subUnitId':_0x316b31[_0x27b835(0x186)],'ranges':[_0xeaadfb],'dimensionOutlineId':_0x316b31['id']}}))];}function _0x517df8(_0xe4750b,_0x4fd2ab,_0xd99d98){const _0x2e04bf=_0x166db7;let _0x168ab9=_0x247acd(_0x4fd2ab[_0x2e04bf(0x1c0)](_0x179b15=>_0x57d6b2(_0x179b15,_0xe4750b)?{..._0x179b15,'collapsed':!0x1}:_0x179b15),_0xe4750b['unitId'],_0xe4750b[_0x2e04bf(0x186)],_0xe4750b[_0x2e04bf(0x1c7)]);return _0x1f4850({'start':_0xe4750b[_0x2e04bf(0x191)],'end':_0xe4750b['end']},_0x168ab9)[_0x2e04bf(0x1c0)](_0x5f1043=>_0x286997(_0xe4750b[_0x2e04bf(0x1c7)],_0x5f1043['start'],_0x5f1043[_0x2e04bf(0xfb)],_0xd99d98));}function _0x57d6b2(_0x20c490,_0x2315aa){const _0x332c33=_0x166db7;return _0x20c490[_0x332c33(0x188)]===_0x2315aa['unitId']&&_0x20c490[_0x332c33(0x186)]===_0x2315aa['subUnitId']&&_0x20c490[_0x332c33(0x1c7)]===_0x2315aa[_0x332c33(0x1c7)]&&_0x20c490[_0x332c33(0x191)]===_0x2315aa[_0x332c33(0x191)]&&_0x20c490[_0x332c33(0xfb)]===_0x2315aa['end'];}function _0x1f4850(_0x35d6a8,_0xdfeff8){const _0x3a8b14=_0x166db7;let _0x4de58f=_0x35d6a8[_0x3a8b14(0x191)],_0x479bd1=[];for(let _0x500d9b of _0xdfeff8)if(!(_0x500d9b['end']<_0x4de58f||_0x500d9b[_0x3a8b14(0x191)]>_0x35d6a8[_0x3a8b14(0xfb)])&&(_0x500d9b[_0x3a8b14(0x191)]>_0x4de58f&&_0x479bd1[_0x3a8b14(0x181)]({'start':_0x4de58f,'end':Math[_0x3a8b14(0xf6)](_0x500d9b['start']-0x1,_0x35d6a8[_0x3a8b14(0xfb)])}),_0x4de58f=Math['max'](_0x4de58f,_0x500d9b['end']+0x1),_0x4de58f>_0x35d6a8[_0x3a8b14(0xfb)]))break;return _0x4de58f<=_0x35d6a8['end']&&_0x479bd1['push']({'start':_0x4de58f,'end':_0x35d6a8[_0x3a8b14(0xfb)]}),_0x479bd1;}let _0x267830={'id':_0x166db7(0x122),'type':_0x315a19[_0x166db7(0x168)][_0x166db7(0x1ba)],'handler':(_0x44645c,_0xae1814)=>{const _0x18f6c6=_0x166db7;if(!_0xae1814)return!0x1;let _0x150cec=(0x0,_0x323626[_0x18f6c6(0x17a)])(_0x44645c[_0x18f6c6(0x170)](_0x315a19['IUniverInstanceService']),_0xae1814);if(!_0x150cec)return!0x1;let {unitId:_0x4b390c,subUnitId:_0x37746b,worksheet:_0x366da5}=_0x150cec;if(!_0x52b0c6(_0x44645c,_0x4b390c,_0x37746b))return!0x1;let _0x17f13d=_0x44645c[_0x18f6c6(0x170)](_0x1d0069)[_0x18f6c6(0x197)](_0x4b390c,_0x37746b),_0x39baa1=_0x17f13d[_0x18f6c6(0x124)](_0x57890a=>_0x57890a['id']===_0xae1814[_0x18f6c6(0x1c1)]);if(!_0x39baa1||_0x39baa1['collapsed']===_0xae1814[_0x18f6c6(0x1b4)])return!0x1;let _0x4570d8=_0x2aa890(_0x39baa1,_0xae1814[_0x18f6c6(0x1b4)],_0x366da5,_0x17f13d),_0x3e50dc=_0x2aa890(_0x39baa1,!_0xae1814[_0x18f6c6(0x1b4)],_0x366da5,_0x17f13d);return(0x0,_0x315a19['sequenceExecute'])(_0x4570d8,_0x44645c['get'](_0x315a19[_0x18f6c6(0x185)]))['result']?(_0x44645c[_0x18f6c6(0x170)](_0x315a19[_0x18f6c6(0x107)])[_0x18f6c6(0x116)]({'unitID':_0x4b390c,'undoMutations':_0x3e50dc,'redoMutations':_0x4570d8}),!0x0):!0x1;}},_0x2ef04b={'id':'sheet.mutation.transform-dimension-outlines','type':_0x315a19['CommandType']['MUTATION'],'handler':(_0x5984f5,_0x3f09a7)=>{const _0x880965=_0x166db7;let _0x50abd9=_0x5984f5['get'](_0x1d0069),_0x6a296a=_0x592507(_0x50abd9[_0x880965(0x197)](_0x3f09a7[_0x880965(0x188)],_0x3f09a7['subUnitId']),_0x3f09a7);return _0x50abd9[_0x880965(0x132)](_0x3f09a7[_0x880965(0x188)],_0x3f09a7[_0x880965(0x186)],_0x6a296a),!0x0;}};function _0x592507(_0x22789e,_0x1121f4){const _0x57b42e=_0x166db7;switch(_0x1121f4[_0x57b42e(0x1a3)]){case _0x57b42e(0x14e):return _0x1121f4[_0x57b42e(0x196)]?_0x158f09(_0x22789e,_0x1121f4):_0x51d85b(_0x22789e,_0x1121f4);case _0x57b42e(0x11a):return _0x4419f2(_0x22789e,_0x1121f4);case _0x57b42e(0x1bf):return _0x3d86c3(_0x22789e,_0x1121f4);}}function _0x158f09(_0x285155,_0x21e30b){const _0x3b76c9=_0x166db7;return[..._0x285155[_0x3b76c9(0x198)](_0x2303ec=>_0x2303ec['unitId']!==_0x21e30b[_0x3b76c9(0x188)]||_0x2303ec[_0x3b76c9(0x186)]!==_0x21e30b[_0x3b76c9(0x186)]||_0x2303ec[_0x3b76c9(0x1c7)]!==_0x21e30b[_0x3b76c9(0x1c7)]),..._0x21e30b['restoreOutlines']];}let _0x191ca4=_0x166db7(0x128),_0x42fab2=_0x166db7(0x14f);Symbol(_0x42fab2);var _0x11cdd0='@univerjs-pro/sheets-outline',_0x5a970e=_0x166db7(0xf8);function _0x28ce6f(_0x446ecc,_0x1a5efc){return function(_0x2fdffd,_0x4a8778){_0x1a5efc(_0x2fdffd,_0x4a8778,_0x446ecc);};}function _0x2e1c03(_0x5f5176,_0x3f52b3,_0x12460e,_0x49bbe2){const _0x7fe33b=_0x166db7;var _0xaf1da6=arguments[_0x7fe33b(0x18d)],_0x535fc7=_0xaf1da6<0x3?_0x3f52b3:_0x49bbe2===null?_0x49bbe2=Object[_0x7fe33b(0x13e)](_0x3f52b3,_0x12460e):_0x49bbe2,_0x1fc764;if(typeof Reflect==_0x7fe33b(0x141)&&typeof Reflect[_0x7fe33b(0xfe)]==_0x7fe33b(0x18e))_0x535fc7=Reflect[_0x7fe33b(0xfe)](_0x5f5176,_0x3f52b3,_0x12460e,_0x49bbe2);else{for(var _0x5946f9=_0x5f5176[_0x7fe33b(0x18d)]-0x1;_0x5946f9>=0x0;_0x5946f9--)(_0x1fc764=_0x5f5176[_0x5946f9])&&(_0x535fc7=(_0xaf1da6<0x3?_0x1fc764(_0x535fc7):_0xaf1da6>0x3?_0x1fc764(_0x3f52b3,_0x12460e,_0x535fc7):_0x1fc764(_0x3f52b3,_0x12460e))||_0x535fc7);}return _0xaf1da6>0x3&&_0x535fc7&&Object[_0x7fe33b(0x18f)](_0x3f52b3,_0x12460e,_0x535fc7),_0x535fc7;}let _0x47e8b2={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x20bfe3=class extends _0x315a19[_0x166db7(0x14a)]{constructor(_0x275b95,_0x180d24,_0x1898e1,_0x187222){const _0x254c8d=_0x166db7;super(),this[_0x254c8d(0x1a5)]=_0x275b95,this[_0x254c8d(0x163)]=_0x180d24,this['_sheetsOutlineModel']=_0x1898e1,this[_0x254c8d(0x1af)]=_0x187222,this[_0x254c8d(0x114)]();}['_initCommandInterceptor'](){const _0x55c3ed=_0x166db7;this[_0x55c3ed(0x176)](this['_sheetInterceptorService'][_0x55c3ed(0x127)]({'getMutations':_0x4c7089=>_0x4775f9(_0x4c7089,(_0x5d40cb,_0x5a53e9)=>this[_0x55c3ed(0x119)][_0x55c3ed(0x197)](_0x5d40cb,_0x5a53e9),this[_0x55c3ed(0x183)](_0x4c7089[_0x55c3ed(0x179)]),_0xff0fa8=>this[_0x55c3ed(0x1af)][_0x55c3ed(0x13b)](_0xff0fa8))}));}[_0x166db7(0x183)](_0x57ef22){const _0xc38c6d=_0x166db7;let _0x2875bf=_0x57ef22,_0x5611f1=_0x2875bf!=null&&_0x2875bf['unitId']?this[_0xc38c6d(0x1a5)]['getUniverSheetInstance'](_0x2875bf[_0xc38c6d(0x188)]):this[_0xc38c6d(0x1a5)][_0xc38c6d(0x149)](_0x315a19[_0xc38c6d(0x13c)][_0xc38c6d(0x11b)]);if(!_0x5611f1)return;let _0x1154e3=_0x2875bf!=null&&_0x2875bf[_0xc38c6d(0x186)]?_0x5611f1[_0xc38c6d(0x1bd)](_0x2875bf[_0xc38c6d(0x186)]):_0x5611f1[_0xc38c6d(0x160)]();if(_0x1154e3)return{'unitId':_0x5611f1['getUnitId'](),'subUnitId':_0x1154e3[_0xc38c6d(0x159)]()};}};_0x20bfe3=_0x2e1c03([_0x28ce6f(0x0,_0x315a19[_0x166db7(0x162)]),_0x28ce6f(0x1,(0x0,_0x315a19[_0x166db7(0xf4)])(_0x323626[_0x166db7(0x150)])),_0x28ce6f(0x2,(0x0,_0x315a19[_0x166db7(0xf4)])(_0x1d0069)),_0x28ce6f(0x3,(0x0,_0x315a19[_0x166db7(0xf4)])(_0x530e45))],_0x20bfe3);function _0x4775f9(_0x5802ce,_0x2dc178,_0x46fb7d,_0x3498d2){const _0x485367=_0x166db7;let _0x118ea7=_0x32afe6(_0x5802ce,_0x46fb7d);if(!_0x118ea7)return _0x1dd3d5();let _0xa3e27f=_0x2dc178(_0x118ea7[_0x485367(0x188)],_0x118ea7[_0x485367(0x186)]);if(!_0xa3e27f[_0x485367(0xf7)](_0x2e5736=>_0x2e5736[_0x485367(0x1c7)]===_0x118ea7['axis']))return _0x1dd3d5();_0x43a4cc(_0xa3e27f,_0x118ea7,_0x5802ce['id'],_0x3498d2);let _0x1e16cf=_0x37c78b(_0x118ea7,_0xa3e27f);return{'redos':[{'id':_0x2ef04b['id'],'params':_0x118ea7}],'undos':[{'id':_0x2ef04b['id'],'params':_0x1e16cf}],'preRedos':[],'preUndos':[]};}function _0x43a4cc(_0xce8521,_0x193cc1,_0x5ef203,_0x1aba7f){const _0x42620b=_0x166db7;try{switch(_0x193cc1[_0x42620b(0x1a3)]){case _0x42620b(0x14e):_0x51d85b(_0xce8521,_0x193cc1);break;case'delete':_0x4419f2(_0xce8521,_0x193cc1);break;case _0x42620b(0x1bf):_0x3d86c3(_0xce8521,_0x193cc1);break;}}catch(_0x5f4b7e){throw _0x1aba7f==null||_0x1aba7f({'reason':_0x2d715c(_0x5f4b7e),'commandId':_0x5ef203,'unitId':_0x193cc1[_0x42620b(0x188)],'subUnitId':_0x193cc1[_0x42620b(0x186)],'axis':_0x193cc1['axis'],'outlineId':_0x4b5ea5(_0x5f4b7e)}),new _0x315a19['CustomCommandExecutionError'](_0x5f4b7e instanceof Error?_0x5f4b7e[_0x42620b(0x123)]:_0x42620b(0x152));}}function _0x32afe6(_0x2f5a8a,_0x4d3a19){const _0x26f558=_0x166db7;switch(_0x2f5a8a['id']){case _0x323626[_0x26f558(0x151)]['id']:return _0x201ae7(_0x2f5a8a[_0x26f558(0x179)],_0x26f558(0x13f),_0x4d3a19);case _0x323626[_0x26f558(0x199)]['id']:return _0x201ae7(_0x2f5a8a['params'],_0x26f558(0x16a),_0x4d3a19);case _0x323626[_0x26f558(0x15a)]['id']:return _0x477dcd(_0x2f5a8a[_0x26f558(0x179)],_0x26f558(0x13f),_0x4d3a19);case _0x323626[_0x26f558(0x1a7)]['id']:return _0x477dcd(_0x2f5a8a['params'],'column',_0x4d3a19);case _0x323626['MoveRowsCommand']['id']:return _0x2c5c1f(_0x2f5a8a[_0x26f558(0x179)],'row',_0x4d3a19);case _0x323626[_0x26f558(0x1c6)]['id']:return _0x2c5c1f(_0x2f5a8a['params'],'column',_0x4d3a19);default:return null;}}function _0x201ae7(_0x554136,_0x5c581d,_0x3d8e03){const _0x2e6fe1=_0x166db7;let _0x2752a5=_0x3f62f6(_0x554136,_0x3d8e03);if(!(_0x554136!=null&&_0x554136[_0x2e6fe1(0x1be)])||!_0x2752a5)return null;let _0x2f04b9=_0x5c581d===_0x2e6fe1(0x13f)?_0x554136['range'][_0x2e6fe1(0x171)]:_0x554136['range']['startColumn'],_0x43143e=_0x5c581d===_0x2e6fe1(0x13f)?_0x554136[_0x2e6fe1(0x1be)]['endRow']:_0x554136[_0x2e6fe1(0x1be)][_0x2e6fe1(0x1b3)];return{..._0x2752a5,'axis':_0x5c581d,'type':_0x2e6fe1(0x14e),'index':_0x2f04b9,'count':_0x43143e-_0x2f04b9+0x1};}function _0x477dcd(_0xaab91,_0x53f4fe,_0x4e7f2c){const _0x4fa007=_0x166db7;let _0x4d972f=_0x3f62f6(_0xaab91,_0x4e7f2c);if(!(_0xaab91!=null&&_0xaab91[_0x4fa007(0x1be)])||!_0x4d972f)return null;let _0x58cdf2=_0x53f4fe==='row'?_0xaab91['range']['startRow']:_0xaab91[_0x4fa007(0x1be)]['startColumn'],_0x4441a6=_0x53f4fe===_0x4fa007(0x13f)?_0xaab91[_0x4fa007(0x1be)]['endRow']:_0xaab91['range'][_0x4fa007(0x1b3)];return{..._0x4d972f,'axis':_0x53f4fe,'type':_0x4fa007(0x11a),'start':_0x58cdf2,'end':_0x4441a6};}function _0x2c5c1f(_0x14f7bb,_0x12d576,_0x29cbb9){const _0x3e596b=_0x166db7;let _0x222ea7=_0x3f62f6(_0x14f7bb,_0x29cbb9);if(!(_0x14f7bb!=null&&_0x14f7bb[_0x3e596b(0x10b)])||!_0x14f7bb[_0x3e596b(0x101)]||!_0x222ea7)return null;let _0x2d0243=_0x12d576===_0x3e596b(0x13f)?_0x14f7bb[_0x3e596b(0x10b)][_0x3e596b(0x171)]:_0x14f7bb['fromRange']['startColumn'],_0x3a2cc4=_0x12d576===_0x3e596b(0x13f)?_0x14f7bb[_0x3e596b(0x10b)][_0x3e596b(0x15f)]:_0x14f7bb[_0x3e596b(0x10b)]['endColumn'],_0xcd3f46=_0x12d576===_0x3e596b(0x13f)?_0x14f7bb[_0x3e596b(0x101)][_0x3e596b(0x171)]:_0x14f7bb[_0x3e596b(0x101)]['startColumn'];return{..._0x222ea7,'axis':_0x12d576,'type':_0x3e596b(0x1bf),'sourceStart':_0x2d0243,'sourceEnd':_0x3a2cc4,'destinationIndex':_0xcd3f46};}function _0x37c78b(_0x1b3646,_0x37dd8a){const _0x102a52=_0x166db7;switch(_0x1b3646[_0x102a52(0x1a3)]){case _0x102a52(0x14e):return{'unitId':_0x1b3646['unitId'],'subUnitId':_0x1b3646[_0x102a52(0x186)],'axis':_0x1b3646[_0x102a52(0x1c7)],'type':_0x102a52(0x11a),'start':_0x1b3646[_0x102a52(0x106)],'end':_0x1b3646[_0x102a52(0x106)]+_0x1b3646[_0x102a52(0x19a)]-0x1};case _0x102a52(0x11a):return{'unitId':_0x1b3646['unitId'],'subUnitId':_0x1b3646[_0x102a52(0x186)],'axis':_0x1b3646[_0x102a52(0x1c7)],'type':_0x102a52(0x14e),'index':_0x1b3646['start'],'count':_0x1b3646[_0x102a52(0xfb)]-_0x1b3646[_0x102a52(0x191)]+0x1,'restoreOutlines':_0x37dd8a[_0x102a52(0x198)](_0xe193d5=>_0xe193d5[_0x102a52(0x188)]===_0x1b3646[_0x102a52(0x188)]&&_0xe193d5[_0x102a52(0x186)]===_0x1b3646[_0x102a52(0x186)]&&_0xe193d5['axis']===_0x1b3646[_0x102a52(0x1c7)])};case _0x102a52(0x1bf):return _0x118439(_0x1b3646);}}function _0x118439(_0x448d5e){const _0x44045c=_0x166db7;let _0x2071a8=_0x448d5e[_0x44045c(0x18a)]-_0x448d5e[_0x44045c(0x164)]+0x1;return _0x448d5e['destinationIndex']>=_0x448d5e[_0x44045c(0x164)]&&_0x448d5e['destinationIndex']<=_0x448d5e[_0x44045c(0x18a)]+0x1?{..._0x448d5e}:_0x448d5e[_0x44045c(0x1b0)]>_0x448d5e[_0x44045c(0x18a)]+0x1?{..._0x448d5e,'sourceStart':_0x448d5e['destinationIndex']-_0x2071a8,'sourceEnd':_0x448d5e['destinationIndex']-0x1,'destinationIndex':_0x448d5e[_0x44045c(0x164)]}:{..._0x448d5e,'sourceStart':_0x448d5e['destinationIndex'],'sourceEnd':_0x448d5e[_0x44045c(0x1b0)]+_0x2071a8-0x1,'destinationIndex':_0x448d5e[_0x44045c(0x18a)]+0x1};}function _0x3f62f6(_0x599a0b,_0x542686){const _0x3a4d3f=_0x166db7;var _0x4c4b3c,_0x2052b7;let _0x5214a6=(_0x4c4b3c=_0x599a0b==null?void 0x0:_0x599a0b[_0x3a4d3f(0x188)])==null?_0x542686==null?void 0x0:_0x542686[_0x3a4d3f(0x188)]:_0x4c4b3c,_0x5868f8=(_0x2052b7=_0x599a0b==null?void 0x0:_0x599a0b[_0x3a4d3f(0x186)])==null?_0x542686==null?void 0x0:_0x542686['subUnitId']:_0x2052b7;return _0x5214a6&&_0x5868f8?{'unitId':_0x5214a6,'subUnitId':_0x5868f8}:null;}function _0x1dd3d5(){const _0x3bb7ca=_0x166db7;var _0x12ee91,_0x497505;return{'redos':[..._0x47e8b2[_0x3bb7ca(0x1b9)]],'undos':[..._0x47e8b2['undos']],'preRedos':[...(_0x12ee91=_0x47e8b2[_0x3bb7ca(0x1d2)])==null?[]:_0x12ee91],'preUndos':[...(_0x497505=_0x47e8b2['preUndos'])==null?[]:_0x497505]};}let _0x382037=class extends _0x315a19['Disposable']{constructor(_0x513832,_0x5c4670){const _0x42b1e1=_0x166db7;super(),this[_0x42b1e1(0x1ca)]=_0x513832,this[_0x42b1e1(0x119)]=_0x5c4670,this[_0x42b1e1(0xfd)]();}[_0x166db7(0xfd)](){const _0x9c919a=_0x166db7;this[_0x9c919a(0x176)](this[_0x9c919a(0x1ca)]['registerPluginResource']({'pluginName':_0x191ca4,'businesses':[_0x315a19['UniverInstanceType']['UNIVER_SHEET']],'toJson':_0x14b562=>JSON[_0x9c919a(0x19f)](this[_0x9c919a(0x119)][_0x9c919a(0x10f)](_0x14b562)),'parseJson':_0x54f200=>JSON['parse'](_0x54f200),'onLoad':(_0x5cc0c9,_0x7599bf)=>this[_0x9c919a(0x119)][_0x9c919a(0x17c)](_0x5cc0c9,_0x7599bf),'onUnLoad':_0x227285=>this[_0x9c919a(0x119)][_0x9c919a(0x172)](_0x227285)}));}};_0x382037=_0x2e1c03([_0x28ce6f(0x0,_0x315a19[_0x166db7(0x10e)]),_0x28ce6f(0x1,(0x0,_0x315a19['Inject'])(_0x1d0069))],_0x382037);let _0x114d51=class extends _0x315a19[_0x166db7(0x120)]{constructor(_0x422f09,_0x2aed69,_0x52f9a6){const _0x35f8c1=_0x166db7;super(),this[_0x35f8c1(0x111)]=_0x422f09,this[_0x35f8c1(0x138)]=_0x2aed69,this[_0x35f8c1(0xfc)]=_0x52f9a6;}[_0x166db7(0xff)](){const _0xb05b8f=_0x166db7;this[_0xb05b8f(0x138)][_0xb05b8f(0x19e)]([_0x1d0069]),this[_0xb05b8f(0x138)][_0xb05b8f(0x19e)]([_0x530e45]),this[_0xb05b8f(0x138)]['add']([_0x382037]),this[_0xb05b8f(0x138)][_0xb05b8f(0x19e)]([_0x20bfe3]),this[_0xb05b8f(0x1d1)](),this[_0xb05b8f(0x138)][_0xb05b8f(0x170)](_0x1d0069),this['_injector'][_0xb05b8f(0x170)](_0x530e45),this[_0xb05b8f(0x138)][_0xb05b8f(0x170)](_0x382037),this[_0xb05b8f(0x138)]['get'](_0x20bfe3);}['_initRegisterCommand'](){const _0x57a346=_0x166db7;[_0x3b8254,_0x35b5e7,_0x267830,_0xc0c9de][_0x57a346(0x177)](_0x409675=>{const _0x4f75c3=_0x57a346;this[_0x4f75c3(0x176)](this[_0x4f75c3(0xfc)][_0x4f75c3(0x154)](_0x409675));}),[_0x176acd,_0x5740fd,_0x55a39,_0x24a98d,_0x2ef04b][_0x57a346(0x177)](_0x1193ac=>{const _0x2a0e1a=_0x57a346;this[_0x2a0e1a(0x176)](this[_0x2a0e1a(0xfc)][_0x2a0e1a(0x154)](_0x1193ac));});}};_0x54f1b0(_0x114d51,_0x166db7(0x105),_0x191ca4),_0x54f1b0(_0x114d51,_0x166db7(0x11e),_0x11cdd0),_0x54f1b0(_0x114d51,_0x166db7(0x1c9),_0x5a970e),_0x54f1b0(_0x114d51,_0x166db7(0x1a3),_0x315a19[_0x166db7(0x13c)][_0x166db7(0x11b)]),_0x114d51=_0x2e1c03([(0x0,_0x315a19[_0x166db7(0x1bb)])(_0x13f857['UniverLicensePlugin']),_0x28ce6f(0x1,(0x0,_0x315a19[_0x166db7(0xf4)])(_0x315a19[_0x166db7(0x134)])),_0x28ce6f(0x2,_0x315a19[_0x166db7(0x185)])],_0x114d51),_0x5c4ddd['AddDimensionOutlineCommand']=_0x3b8254,_0x5c4ddd[_0x166db7(0x109)]=_0x176acd,_0x5c4ddd[_0x166db7(0x121)]=_0xc0c9de,_0x5c4ddd[_0x166db7(0x139)]=_0x24a98d,_0x5c4ddd['DimensionOutlineAxis']=_0x4bde41,_0x5c4ddd[_0x166db7(0x130)]=_0x1de727,_0x5c4ddd['DimensionOutlineErrorReason']=_0x1089c4,_0x5c4ddd[_0x166db7(0x100)]=_0x35b5e7,_0x5c4ddd['RemoveDimensionOutlineMutation']=_0x5740fd,_0x5c4ddd[_0x166db7(0x167)]=_0x42fab2,_0x5c4ddd[_0x166db7(0x128)]=_0x191ca4,_0x5c4ddd[_0x166db7(0x165)]=_0x267830,_0x5c4ddd['SetDimensionOutlineCollapsedMutation']=_0x55a39,_0x5c4ddd[_0x166db7(0x1a6)]=_0x530e45,_0x5c4ddd[_0x166db7(0x104)]=_0x1d0069,_0x5c4ddd[_0x166db7(0x148)]=_0x2ef04b,Object['defineProperty'](_0x5c4ddd,_0x166db7(0x161),{'enumerable':!0x0,'get':function(){return _0x114d51;}}),_0x5c4ddd[_0x166db7(0x1c4)]=_0x10b1cc,_0x5c4ddd[_0x166db7(0x173)]=_0xef7543,_0x5c4ddd[_0x166db7(0x103)]=_0x247acd,_0x5c4ddd[_0x166db7(0x126)]=_0x26b792,_0x5c4ddd[_0x166db7(0x1a8)]=_0x3b2b6d,_0x5c4ddd[_0x166db7(0x190)]=_0x4b5ea5,_0x5c4ddd[_0x166db7(0x1cb)]=_0x2d715c,_0x5c4ddd[_0x166db7(0x1bc)]=_0x98b2b9,_0x5c4ddd[_0x166db7(0x10d)]=_0x52b0c6,_0x5c4ddd['mergeRanges']=_0x1dc877,_0x5c4ddd[_0x166db7(0x1b6)]=_0x4419f2,_0x5c4ddd[_0x166db7(0x12d)]=_0x51d85b,_0x5c4ddd[_0x166db7(0x1ce)]=_0x3d86c3;}));