@univerjs-pro/docs-table 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteColumnsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startColumn?: number;
6
- endColumn?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startColumn: number;
7
+ endColumn: number;
7
8
  }
8
9
  export declare const DocsTableDeleteColumnsCommand: ICommand<IDocsTableDeleteColumnsCommandParams>;
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteRowsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startRow?: number;
6
- endRow?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startRow: number;
7
+ endRow: number;
7
8
  }
8
9
  export declare const DocsTableDeleteRowsCommand: ICommand<IDocsTableDeleteRowsCommandParams>;
@@ -1,6 +1,7 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteTableCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
4
+ unitId: string;
5
+ tableId: string;
5
6
  }
6
7
  export declare const DocsTableDeleteTableCommand: ICommand<IDocsTableDeleteTableCommandParams>;
@@ -51,6 +51,6 @@ export declare function buildInsertTableRowsMutationActions(documentData: IDocum
51
51
  export declare function buildInsertTableTitleRowMutationActions(documentData: IDocumentData, tableId: string, bodyPath?: string[]): IDocsTableRowsMutationActionResult | null;
52
52
  export declare function buildDeleteTableRowsMutationActions(documentData: IDocumentData, tableId: string, startRow: number, endRow: number, bodyPath?: string[]): IDocsTableRowsMutationActionResult | null;
53
53
  export declare function buildDeleteTableMutationActions(documentData: IDocumentData, tableId: string, bodyPath: string[]): IDocsTableRowsMutationActionResult | null;
54
- export declare function executeRichTextTableActions(commandService: ICommandService, unitId: string, documentData: IDocumentData, actions: JSONXActions | null, selection?: IDocsTableMutationSelection, cursorOffset?: number, trigger?: string): boolean;
54
+ export declare function executeRichTextTableActions(commandService: ICommandService, unitId: string, documentData: IDocumentData, actions: JSONXActions | null, selection?: IDocsTableMutationSelection, cursorOffset?: number, trigger?: string, historyAction?: string): boolean;
55
55
  export declare function getTableActionBodyPath(documentData: IDocumentData, segmentId?: string): string[];
56
56
  export declare function buildTableRectMutationRanges(documentData: IDocumentData, selection: IDocsTableMutationSelection): IRectRangeWithStyle[];
@@ -17,6 +17,7 @@ export interface IPasteHtmlTableResult {
17
17
  nextDocumentData: IDocumentData;
18
18
  }
19
19
  export interface IParsedHtmlTableCell {
20
+ html: string;
20
21
  text: string;
21
22
  rowSpan: number;
22
23
  colSpan: number;
@@ -33,6 +34,7 @@ export interface IParsedHtmlTableClipboard {
33
34
  columnWidths: Array<number | undefined>;
34
35
  }
35
36
  export declare function parseHtmlTablesClipboard(html: string): IParsedHtmlTableClipboard[];
37
+ export declare function convertPlainTextTableToHtml(text: string): string | null;
36
38
  export declare function serializeTableSelectionAsPlainText(params: ITableClipboardParams): string;
37
39
  export declare function serializeTableSelectionAsHtml(params: ITableClipboardParams): string;
38
40
  export declare function buildPastePlainTextTableActions(params: IPastePlainTextTableParams): IPastePlainTextTableResult;
@@ -1,9 +1,9 @@
1
1
  import type { DocsTableColumnInsertPosition, DocsTableRowInsertPosition, DocsTableSortDirection, IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableOffsetRange } from '@univerjs-pro/docs-table';
2
- import type { Injector, ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
2
+ import type { ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
3
3
  import type { FDocument } from '@univerjs/docs/facade';
4
4
  import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableDescription, IDocsTableInfo, IDocsTableStyle } from './types';
5
5
  import { DocsTableSelectionKind } from '@univerjs-pro/docs-table';
6
- import { TableRowHeightRule } from '@univerjs/core';
6
+ import { ICommandService, Injector, TableRowHeightRule } from '@univerjs/core';
7
7
  import { FDocumentTableCell } from './f-document-table-cell';
8
8
  /**
9
9
  * Facade object for a single enhanced docs table.
@@ -25,9 +25,10 @@ export declare class FDocumentTable {
25
25
  private readonly _document;
26
26
  private readonly _tableId;
27
27
  private readonly _segmentId;
28
+ private readonly _commandService;
28
29
  private readonly _injector;
29
30
  private readonly _unitId;
30
- constructor(_document: FDocument, _tableId: string, _segmentId: string | undefined, _injector: Injector);
31
+ constructor(_document: FDocument, _tableId: string, _segmentId: string, _commandService: ICommandService, _injector: Injector);
31
32
  /**
32
33
  * Returns the table id.
33
34
  * @returns {string} The table id stored in the document snapshot.
@@ -28,7 +28,8 @@ export { buildDeleteTableColumnsMutationActions, buildDeleteTableMutationActions
28
28
  export { buildDeleteColumnsActions, buildDeleteRowsActions, buildDeleteTableActions, buildInsertColumnsActions, buildInsertRowsActions, buildMoveColumnsActions, buildMoveRowsActions, DocsTableColumnInsertPosition, DocsTableInsertPosition, DocsTableRowInsertPosition, } from './common/actions';
29
29
  export { buildSetTableBorderActions, buildSetTableBorderMutationActions, buildSetTableCellBackgroundActions, DocsTableBorderPreset, } from './common/border';
30
30
  export { buildSetTableCellTextActions, buildSetTableCellTextMutationActions } from './common/cell-text';
31
- export { buildPastePlainTextTableMutationActions } from './common/clipboard';
31
+ export type { IParsedHtmlTableCell, IParsedHtmlTableClipboard, IParsedHtmlTableRow, } from './common/clipboard';
32
+ export { buildPastePlainTextTableMutationActions, convertPlainTextTableToHtml, parseHtmlTableClipboard, parseHtmlTablesClipboard, } from './common/clipboard';
32
33
  export { DOCS_TABLE_PLUGIN } from './common/const';
33
34
  export { DocsTableInsertTablePosition } from './common/insert-table';
34
35
  export type { IDocsTableInsertOptions } from './common/insert-table';
@@ -17,6 +17,7 @@ export declare class DocsTableSelectionService extends Disposable {
17
17
  private readonly _docSelectionManagerService;
18
18
  private readonly _selectionChange$;
19
19
  private _structuralSelection;
20
+ private _structuralSelectionTableShape;
20
21
  private _nativeSelectionSuppressed;
21
22
  private _preserveStructuralSelectionOnNextTextSelection;
22
23
  readonly selectionChange$: import("rxjs").Observable<Nullable<IDocsTableSelection>>;
@@ -36,5 +37,7 @@ export declare class DocsTableSelectionService extends Disposable {
36
37
  private _getSelectionFromActiveTextRange;
37
38
  private _getSelectionFromRectRanges;
38
39
  private _canCombineRectRanges;
40
+ private _getValidStructuralSelection;
41
+ private _clearStructuralSelectionState;
39
42
  }
40
43
  export {};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2a78c5,_0x21d1d2){const _0x176c15=_0x41c0,_0x28d7d2=_0x2a78c5();while(!![]){try{const _0x20cdac=parseInt(_0x176c15(0x1b6))/0x1+-parseInt(_0x176c15(0x24a))/0x2*(-parseInt(_0x176c15(0x1ea))/0x3)+-parseInt(_0x176c15(0x1a9))/0x4+parseInt(_0x176c15(0x176))/0x5*(parseInt(_0x176c15(0x1b9))/0x6)+-parseInt(_0x176c15(0x24b))/0x7*(-parseInt(_0x176c15(0x1a7))/0x8)+-parseInt(_0x176c15(0x217))/0x9+-parseInt(_0x176c15(0x1ef))/0xa*(-parseInt(_0x176c15(0x1c6))/0xb);if(_0x20cdac===_0x21d1d2)break;else _0x28d7d2['push'](_0x28d7d2['shift']());}catch(_0x260774){_0x28d7d2['push'](_0x28d7d2['shift']());}}}(_0x4833,0x98234),function(_0x2dc22e,_0x25f327){const _0x56cddb=_0x41c0;typeof exports==_0x56cddb(0x249)&&typeof module<'u'?_0x25f327(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x56cddb(0x1cd)&&define[_0x56cddb(0x243)]?define([_0x56cddb(0x171),'@univerjs-pro/docs-table',_0x56cddb(0x184),_0x56cddb(0x19e),_0x56cddb(0x1d6)],_0x25f327):(_0x2dc22e=typeof globalThis<'u'?globalThis:_0x2dc22e||self,_0x25f327(_0x2dc22e['UniverProDocsTableFacade']={},_0x2dc22e['UniverProDocsTable'],_0x2dc22e[_0x56cddb(0x193)],_0x2dc22e[_0x56cddb(0x22a)],_0x2dc22e[_0x56cddb(0x205)]));}(this,function(_0x21d417,_0x1da090,_0x2007ee,_0x57b452,_0x5cdde9){const _0x494d9c=_0x41c0;Object[_0x494d9c(0x1ff)](_0x21d417,Symbol[_0x494d9c(0x1cb)],{'value':'Module'});var _0x86fda1=class extends _0x57b452['FEnum']{get[_0x494d9c(0x22c)](){return _0x1da090['DocsTableInsertTablePosition'];}get[_0x494d9c(0x19b)](){const _0x4df16d=_0x494d9c;return _0x1da090[_0x4df16d(0x19b)];}get[_0x494d9c(0x1b4)](){const _0x37b13e=_0x494d9c;return _0x1da090[_0x37b13e(0x1b4)];}get[_0x494d9c(0x18f)](){const _0x48f651=_0x494d9c;return _0x1da090[_0x48f651(0x18f)];}get[_0x494d9c(0x1a5)](){const _0x31b15f=_0x494d9c;return _0x1da090[_0x31b15f(0x1a5)];}get[_0x494d9c(0x221)](){const _0x893db6=_0x494d9c;return _0x1da090[_0x893db6(0x221)];}get[_0x494d9c(0x18a)](){const _0xd25bc0=_0x494d9c;return _0x1da090[_0xd25bc0(0x18a)];}get[_0x494d9c(0x18e)](){const _0x11ca72=_0x494d9c;return _0x2007ee[_0x11ca72(0x18e)];}};_0x57b452[_0x494d9c(0x1d8)][_0x494d9c(0x1cc)](_0x86fda1);var _0x294a88=class{constructor(_0x725cee,_0x53ee84,_0x26eecd){const _0x5e6f7e=_0x494d9c;this[_0x5e6f7e(0x18b)]=_0x725cee,this[_0x5e6f7e(0x211)]=_0x53ee84,this[_0x5e6f7e(0x1de)]=_0x26eecd;}[_0x494d9c(0x1bf)](){const _0x5df11e=_0x494d9c;return this[_0x5df11e(0x18b)];}[_0x494d9c(0x24d)](){const _0x4bad27=_0x494d9c;return this[_0x4bad27(0x211)];}[_0x494d9c(0x170)](){const _0xb50c02=_0x494d9c;return this[_0xb50c02(0x1de)];}[_0x494d9c(0x218)](){const _0x4e04a2=_0x494d9c;return this[_0x4e04a2(0x18b)]['getCellText'](this[_0x4e04a2(0x211)],this[_0x4e04a2(0x1de)]);}['getContentRange'](){const _0x2012e7=_0x494d9c;return this[_0x2012e7(0x18b)][_0x2012e7(0x1ed)](this[_0x2012e7(0x211)],this[_0x2012e7(0x1de)]);}[_0x494d9c(0x182)](){const _0x5ee39e=_0x494d9c;return this[_0x5ee39e(0x18b)]['getCellInsertOffset'](this[_0x5ee39e(0x211)],this['_column']);}[_0x494d9c(0x1c3)](){const _0x23fc99=_0x494d9c;return this[_0x23fc99(0x18b)][_0x23fc99(0x21b)](this[_0x23fc99(0x211)],this[_0x23fc99(0x1de)]);}[_0x494d9c(0x19a)](){const _0x395734=_0x494d9c;return this[_0x395734(0x18b)][_0x395734(0x219)](this[_0x395734(0x211)],this['_column']);}['setMargin'](_0x4498bd){const _0x1e15af=_0x494d9c;return this['_table'][_0x1e15af(0x1d4)](this['_table']['getCellRange'](this[_0x1e15af(0x211)],this[_0x1e15af(0x1de)]),_0x4498bd);}[_0x494d9c(0x235)](){const _0x12d821=_0x494d9c;return this[_0x12d821(0x18b)][_0x12d821(0x1d4)](this[_0x12d821(0x18b)][_0x12d821(0x232)](this[_0x12d821(0x211)],this[_0x12d821(0x1de)]),null);}[_0x494d9c(0x203)](_0x18a0fc){const _0x51a579=_0x494d9c;return this['_table'][_0x51a579(0x20d)](this[_0x51a579(0x211)],this[_0x51a579(0x1de)],_0x18a0fc);}[_0x494d9c(0x222)](_0x5f0142){const _0xb63d64=_0x494d9c;return this[_0xb63d64(0x18b)]['setCellBackground'](this[_0xb63d64(0x18b)][_0xb63d64(0x232)](this[_0xb63d64(0x211)],this['_column']),_0x5f0142);}['setBorder'](_0xd757b){const _0x5441b9=_0x494d9c;return this['_table'][_0x5441b9(0x1d5)](this[_0x5441b9(0x18b)][_0x5441b9(0x232)](this[_0x5441b9(0x211)],this[_0x5441b9(0x1de)]),_0xd757b);}[_0x494d9c(0x201)](_0x442a50,_0x3ae625){const _0x13a97a=_0x494d9c;return this[_0x13a97a(0x18b)]['mergeCells']({'startRow':this[_0x13a97a(0x211)],'startColumn':this[_0x13a97a(0x1de)],'endRow':this[_0x13a97a(0x211)]+_0x442a50-0x1,'endColumn':this['_column']+_0x3ae625-0x1});}['unmerge'](){const _0x10de83=_0x494d9c;return this[_0x10de83(0x18b)]['unmergeCells'](this['_table'][_0x10de83(0x232)](this['_row'],this[_0x10de83(0x1de)]));}};function _0x366559(_0x13f7b6){'@babel/helpers - typeof';const _0x555f46=_0x494d9c;return _0x366559=typeof Symbol==_0x555f46(0x1cd)&&typeof Symbol[_0x555f46(0x200)]=='symbol'?function(_0x4cf273){return typeof _0x4cf273;}:function(_0x5e8edd){const _0x3d35c0=_0x555f46;return _0x5e8edd&&typeof Symbol==_0x3d35c0(0x1cd)&&_0x5e8edd[_0x3d35c0(0x241)]===Symbol&&_0x5e8edd!==Symbol[_0x3d35c0(0x1ca)]?_0x3d35c0(0x1f2):typeof _0x5e8edd;},_0x366559(_0x13f7b6);}function _0x37f4fc(_0x288430,_0x1b7a56){const _0x19dc60=_0x494d9c;if(_0x366559(_0x288430)!=_0x19dc60(0x249)||!_0x288430)return _0x288430;var _0x2dee1f=_0x288430[Symbol[_0x19dc60(0x23b)]];if(_0x2dee1f!==void 0x0){var _0x29c744=_0x2dee1f[_0x19dc60(0x1a8)](_0x288430,_0x1b7a56||'default');if(_0x366559(_0x29c744)!=_0x19dc60(0x249))return _0x29c744;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b7a56===_0x19dc60(0x1d9)?String:Number)(_0x288430);}function _0x4750fc(_0x21c46c){const _0x368557=_0x494d9c;var _0xc4a0cd=_0x37f4fc(_0x21c46c,'string');return _0x366559(_0xc4a0cd)==_0x368557(0x1f2)?_0xc4a0cd:_0xc4a0cd+'';}function _0x5d59f3(_0xadb04f,_0x264f95,_0x48f196){const _0x4ef038=_0x494d9c;return(_0x264f95=_0x4750fc(_0x264f95))in _0xadb04f?Object[_0x4ef038(0x1ff)](_0xadb04f,_0x264f95,{'value':_0x48f196,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xadb04f[_0x264f95]=_0x48f196,_0xadb04f;}var _0x32fc3a=class{constructor(_0x5e5d26,_0xd78fc0,_0x50e92f='',_0x5dbbdd){const _0x5d465d=_0x494d9c;this[_0x5d465d(0x17c)]=_0x5e5d26,this['_tableId']=_0xd78fc0,this[_0x5d465d(0x244)]=_0x50e92f,this[_0x5d465d(0x233)]=_0x5dbbdd,_0x5d59f3(this,_0x5d465d(0x21e),void 0x0),this[_0x5d465d(0x21e)]=this[_0x5d465d(0x17c)][_0x5d465d(0x17b)]();}[_0x494d9c(0x17b)](){const _0x2406fa=_0x494d9c;return this[_0x2406fa(0x223)];}[_0x494d9c(0x1c0)](){const _0x4d94a4=_0x494d9c;return this[_0x4d94a4(0x244)];}[_0x494d9c(0x1d7)](){const _0x137c1d=_0x494d9c;return{'id':this[_0x137c1d(0x223)],'rowCount':this[_0x137c1d(0x1c2)](),'columnCount':this[_0x137c1d(0x1f4)](),'metadata':this[_0x137c1d(0x17e)](),'source':this[_0x137c1d(0x216)]()};}[_0x494d9c(0x1b5)](){const _0x1d6eae=_0x494d9c;let _0x106310=this['getMetadata'](),_0x25778f=this['getSource'](),_0x3026d4=this[_0x1d6eae(0x1f4)]();return{'id':this[_0x1d6eae(0x223)],'rowCount':this[_0x1d6eae(0x1c2)](),'columnCount':_0x3026d4,'headerRowCount':(_0x106310==null?void 0x0:_0x106310[_0x1d6eae(0x1c4)])??0x0,'titleRow':(_0x106310==null?void 0x0:_0x106310[_0x1d6eae(0x19c)])??!0x1,'columns':Array[_0x1d6eae(0x22f)]({'length':_0x3026d4},(_0x465b24,_0x56c474)=>{const _0x2a40bf=_0x1d6eae;var _0x4ffbf7,_0x4d929d;return{'index':_0x56c474,'type':_0x106310==null||(_0x4ffbf7=_0x106310[_0x2a40bf(0x21d)])==null||(_0x4ffbf7=_0x4ffbf7[_0x56c474])==null?void 0x0:_0x4ffbf7[_0x2a40bf(0x1bb)],'width':_0x25778f==null||(_0x4d929d=_0x25778f[_0x2a40bf(0x213)][_0x56c474])==null?void 0x0:_0x4d929d[_0x2a40bf(0x1fe)][_0x2a40bf(0x173)]['v']};}),'sampleRows':Array[_0x1d6eae(0x22f)]({'length':this[_0x1d6eae(0x1c2)]()},(_0x14effa,_0x30eb7d)=>Array[_0x1d6eae(0x22f)]({'length':_0x3026d4},(_0xe5a81,_0x251c7c)=>this[_0x1d6eae(0x1e5)](_0x30eb7d,_0x251c7c)))[_0x1d6eae(0x1ba)](_0x13a769=>_0x13a769[_0x1d6eae(0x1bc)](_0x4ef6d0=>_0x4ef6d0[_0x1d6eae(0x1eb)]>0x0))[_0x1d6eae(0x202)](0x0,0x5)};}['getRowCount'](){const _0x26a60f=_0x494d9c;var _0x1340f8;return((_0x1340f8=this[_0x26a60f(0x216)]())==null?void 0x0:_0x1340f8[_0x26a60f(0x1ee)][_0x26a60f(0x1eb)])??0x0;}['getColumnCount'](){const _0x581870=_0x494d9c;var _0x4e94ae;return((_0x4e94ae=this[_0x581870(0x216)]())==null?void 0x0:_0x4e94ae['tableColumns']['length'])??0x0;}[_0x494d9c(0x238)](_0x5bb11f,_0x3c953d){const _0x21085a=_0x494d9c;var _0x416899;return(_0x416899=this['getSource']())!=null&&(_0x416899=_0x416899['tableRows'][_0x5bb11f])!=null&&_0x416899[_0x21085a(0x1a3)][_0x3c953d]?this[_0x21085a(0x233)][_0x21085a(0x21a)](_0x294a88,this,_0x5bb11f,_0x3c953d):null;}['getCellText'](_0x5d2364,_0x3cbbbd){const _0x27d766=_0x494d9c;var _0x4c5162,_0x55910b;let _0xba7392=(_0x4c5162=(0x0,_0x1da090[_0x27d766(0x1cf)])(this[_0x27d766(0x215)](),this[_0x27d766(0x223)]))==null||(_0x4c5162=_0x4c5162[_0x27d766(0x18c)][_0x5d2364])==null?void 0x0:_0x4c5162['cells'][_0x3cbbbd];return _0xba7392?((_0x55910b=this[_0x27d766(0x215)]()[_0x27d766(0x1d1)])==null?void 0x0:_0x55910b[_0x27d766(0x1a1)][_0x27d766(0x202)](_0xba7392[_0x27d766(0x1f1)]+0x1,_0xba7392[_0x27d766(0x210)])[_0x27d766(0x1fc)](/\r\n$/,''))??'':'';}[_0x494d9c(0x21b)](_0x197b86,_0x1f520e){const _0x1a15f3=_0x494d9c;var _0x1912dd;let _0x51db88=this[_0x1a15f3(0x216)](),_0x393f62=_0x51db88==null||(_0x1912dd=_0x51db88[_0x1a15f3(0x1ee)][_0x197b86])==null?void 0x0:_0x1912dd['tableCells'][_0x1f520e];return _0x393f62?_0x2007ee[_0x1a15f3(0x1bd)][_0x1a15f3(0x1e8)](_0x393f62[_0x1a15f3(0x1b8)]??_0x51db88[_0x1a15f3(0x236)]??_0x1da090[_0x1a15f3(0x22e)]):null;}['getCellMarginOverride'](_0xfb90d,_0x2e7854){const _0x54ac20=_0x494d9c;var _0x6c7de1;let _0x4c3ef4=(_0x6c7de1=this[_0x54ac20(0x216)]())==null||(_0x6c7de1=_0x6c7de1[_0x54ac20(0x1ee)][_0xfb90d])==null?void 0x0:_0x6c7de1[_0x54ac20(0x1a3)][_0x2e7854];return _0x4c3ef4!=null&&_0x4c3ef4[_0x54ac20(0x1b8)]?_0x2007ee[_0x54ac20(0x1bd)][_0x54ac20(0x1e8)](_0x4c3ef4[_0x54ac20(0x1b8)]):null;}[_0x494d9c(0x198)](){const _0x182540=_0x494d9c;var _0x2d4173;return _0x2007ee[_0x182540(0x1bd)]['deepClone'](((_0x2d4173=this[_0x182540(0x216)]())==null?void 0x0:_0x2d4173[_0x182540(0x236)])??_0x1da090['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}[_0x494d9c(0x208)](){const _0x19e66b=_0x494d9c;var _0x2d8fce;let _0x44bf18=(_0x2d8fce=this[_0x19e66b(0x216)]())==null?void 0x0:_0x2d8fce[_0x19e66b(0x236)];return _0x44bf18?_0x2007ee[_0x19e66b(0x1bd)]['deepClone'](_0x44bf18):null;}['getMetadata'](){const _0x18706d=_0x494d9c;return this[_0x18706d(0x233)][_0x18706d(0x1ae)](_0x1da090['DocsTableModel'])[_0x18706d(0x212)](this[_0x18706d(0x21e)],this[_0x18706d(0x223)]);}['getSource'](){const _0x1cae3b=_0x494d9c;var _0x4b173c;return(_0x4b173c=this[_0x1cae3b(0x215)]()['tableSource'])==null?void 0x0:_0x4b173c[this['_tableId']];}[_0x494d9c(0x19d)](){const _0x148a6a=_0x494d9c;return(0x0,_0x1da090[_0x148a6a(0x1cf)])(this[_0x148a6a(0x215)](),this[_0x148a6a(0x223)]);}['getTableRange'](){const _0x291dd2=_0x494d9c;return{'startRow':0x0,'endRow':Math[_0x291dd2(0x1d2)](0x0,this[_0x291dd2(0x1c2)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x291dd2(0x1d2)](0x0,this['getColumnCount']()-0x1)};}['getCellRange'](_0x5d330d,_0x4c8f7c){return{'startRow':_0x5d330d,'endRow':_0x5d330d,'startColumn':_0x4c8f7c,'endColumn':_0x4c8f7c};}[_0x494d9c(0x1ed)](_0x149a70,_0x20376d){const _0x146dea=_0x494d9c;var _0x4e29b3;let _0x19e592=(_0x4e29b3=(0x0,_0x1da090['getTableRangeById'])(this[_0x146dea(0x215)](),this['_tableId']))==null||(_0x4e29b3=_0x4e29b3['rows'][_0x149a70])==null?void 0x0:_0x4e29b3[_0x146dea(0x20a)][_0x20376d];if(!_0x19e592)return null;let _0x19d42f=_0x19e592[_0x146dea(0x1f1)]+0x1;return{'startOffset':_0x19d42f,'endOffset':Math['max'](_0x19d42f,_0x19e592[_0x146dea(0x210)]-0x1),'segmentId':this['_segmentId']};}[_0x494d9c(0x1f5)](_0x52c1e2,_0x2ce952){const _0x3d97ad=_0x494d9c;let _0x5143c8=this[_0x3d97ad(0x1ed)](_0x52c1e2,_0x2ce952);return _0x5143c8?Math[_0x3d97ad(0x1d2)](_0x5143c8[_0x3d97ad(0x1f1)],_0x5143c8[_0x3d97ad(0x210)]-0x1):null;}[_0x494d9c(0x1f7)](_0x4bc575){const _0x4d53db=_0x494d9c;return this[_0x4d53db(0x207)](_0x4bc575,0x1);}['getRowsRange'](_0x357e0c,_0x1b327e=0x1){const _0x1c879d=_0x494d9c;return{'startRow':_0x357e0c,'endRow':_0x357e0c+_0x1b327e-0x1,'startColumn':0x0,'endColumn':Math[_0x1c879d(0x1d2)](0x0,this[_0x1c879d(0x1f4)]()-0x1)};}[_0x494d9c(0x1ec)](_0x218c34){return this['getColumnsRange'](_0x218c34,0x1);}[_0x494d9c(0x1b3)](_0x5448b1,_0x5b2484=0x1){const _0x3cd9d4=_0x494d9c;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x3cd9d4(0x1c2)]()-0x1),'startColumn':_0x5448b1,'endColumn':_0x5448b1+_0x5b2484-0x1};}[_0x494d9c(0x197)](){const _0x13d5f2=_0x494d9c;return this[_0x13d5f2(0x225)](this[_0x13d5f2(0x242)](),_0x1da090[_0x13d5f2(0x1b4)]['Table']);}[_0x494d9c(0x20e)](_0x4d1f5b){const _0x435dcd=_0x494d9c;return this[_0x435dcd(0x20f)](_0x4d1f5b,0x1);}[_0x494d9c(0x20f)](_0x4d0636,_0x433c65=0x1){const _0x2fc9e9=_0x494d9c;return this['selectRange'](this[_0x2fc9e9(0x207)](_0x4d0636,_0x433c65),_0x1da090[_0x2fc9e9(0x1b4)]['Row']);}[_0x494d9c(0x195)](_0x321e96){const _0x41e9d2=_0x494d9c;return this[_0x41e9d2(0x189)](_0x321e96,0x1);}[_0x494d9c(0x189)](_0x508eae,_0x4463df=0x1){const _0x3540ff=_0x494d9c;return this[_0x3540ff(0x225)](this[_0x3540ff(0x1b3)](_0x508eae,_0x4463df),_0x1da090[_0x3540ff(0x1b4)][_0x3540ff(0x1d3)]);}['selectCell'](_0x56b764,_0xa322e4){const _0x347110=_0x494d9c;return this[_0x347110(0x225)](this[_0x347110(0x232)](_0x56b764,_0xa322e4),_0x1da090[_0x347110(0x1b4)][_0x347110(0x22d)]);}[_0x494d9c(0x225)](_0x109e3d,_0xc4ad09=_0x1da090[_0x494d9c(0x1b4)][_0x494d9c(0x22b)]){const _0x534bdb=_0x494d9c;return this[_0x534bdb(0x233)][_0x534bdb(0x1ae)](_0x1da090[_0x534bdb(0x179)])[_0x534bdb(0x1e3)]({..._0x109e3d,'kind':_0xc4ad09,'segmentId':this[_0x534bdb(0x244)],'tableId':this[_0x534bdb(0x223)]}),!0x0;}['insertRowBefore'](_0x30efed){const _0x31a82a=_0x494d9c;return this[_0x31a82a(0x20b)](_0x30efed,0x1);}['insertRowAfter'](_0x28d9b0){const _0x2be8b9=_0x494d9c;return this[_0x2be8b9(0x1db)](_0x28d9b0,0x1);}[_0x494d9c(0x20b)](_0x4461f8,_0x2de513){const _0x42cfb5=_0x494d9c;let _0x3efcd1=this['_getDocumentData'](),_0x5a4471=(0x0,_0x1da090[_0x42cfb5(0x1e4)])(_0x3efcd1,this[_0x42cfb5(0x223)],_0x4461f8,_0x2de513,_0x1da090[_0x42cfb5(0x1b1)][_0x42cfb5(0x224)],this['_getBodyPath']());return _0x5a4471?this[_0x42cfb5(0x21f)](_0x3efcd1,_0x5a4471['actions']):!0x1;}[_0x494d9c(0x1db)](_0x3e1d48,_0x18a65b){const _0x42f08d=_0x494d9c;let _0x1efc0a=this['_getDocumentData'](),_0x118c71=(0x0,_0x1da090[_0x42f08d(0x1e4)])(_0x1efc0a,this['_tableId'],_0x3e1d48,_0x18a65b,_0x1da090[_0x42f08d(0x1b1)][_0x42f08d(0x1f8)],this[_0x42f08d(0x178)]());return _0x118c71?this[_0x42f08d(0x21f)](_0x1efc0a,_0x118c71[_0x42f08d(0x1dd)]):!0x1;}[_0x494d9c(0x18d)](){const _0x16357e=_0x494d9c;return this[_0x16357e(0x1db)](Math[_0x16357e(0x1d2)](0x0,this[_0x16357e(0x1c2)]()-0x1),0x1);}[_0x494d9c(0x1b2)](_0x348725){const _0x550a67=_0x494d9c;return this[_0x550a67(0x204)](_0x348725,0x1);}[_0x494d9c(0x23d)](_0x1a4076){return this['insertColumnsAfter'](_0x1a4076,0x1);}[_0x494d9c(0x204)](_0x41ab53,_0x4559b4){const _0x14c911=_0x494d9c;let _0x1f72ac=this[_0x14c911(0x215)](),_0x4ebc06=(0x0,_0x1da090[_0x14c911(0x196)])(_0x1f72ac,this[_0x14c911(0x223)],_0x41ab53,_0x4559b4,_0x1da090[_0x14c911(0x1b1)][_0x14c911(0x20c)],{'bodyPath':this[_0x14c911(0x178)]()});return _0x4ebc06?this[_0x14c911(0x21f)](_0x1f72ac,_0x4ebc06[_0x14c911(0x1dd)]):!0x1;}[_0x494d9c(0x190)](_0x152a72,_0x2183b4){const _0x280ac9=_0x494d9c;let _0x5b3827=this[_0x280ac9(0x215)](),_0x1ced7f=(0x0,_0x1da090[_0x280ac9(0x196)])(_0x5b3827,this[_0x280ac9(0x223)],_0x152a72,_0x2183b4,_0x1da090[_0x280ac9(0x1b1)]['Right'],{'bodyPath':this[_0x280ac9(0x178)]()});return _0x1ced7f?this[_0x280ac9(0x21f)](_0x5b3827,_0x1ced7f[_0x280ac9(0x1dd)]):!0x1;}['appendColumn'](){const _0x1bb90b=_0x494d9c;return this[_0x1bb90b(0x190)](Math[_0x1bb90b(0x1d2)](0x0,this[_0x1bb90b(0x1f4)]()-0x1),0x1);}[_0x494d9c(0x245)](_0x5db82f){const _0x52c58b=_0x494d9c;return this[_0x52c58b(0x246)](_0x5db82f,0x1);}[_0x494d9c(0x246)](_0x26ab7a,_0x52112e=0x1){const _0xf3457e=_0x494d9c;let _0x5bccc3=this[_0xf3457e(0x215)](),_0x106681=(0x0,_0x1da090['buildDeleteTableRowsMutationActions'])(_0x5bccc3,this[_0xf3457e(0x223)],_0x26ab7a,_0x26ab7a+_0x52112e-0x1,this[_0xf3457e(0x178)]());return _0x106681?this[_0xf3457e(0x21f)](_0x5bccc3,_0x106681[_0xf3457e(0x1dd)]):!0x1;}[_0x494d9c(0x188)](_0x459eeb){const _0x1083a3=_0x494d9c;return this[_0x1083a3(0x239)](_0x459eeb,0x1);}['deleteColumns'](_0x2b5384,_0x295989=0x1){const _0x5f404b=_0x494d9c;let _0x55cf06=this[_0x5f404b(0x215)](),_0x5d15a5=(0x0,_0x1da090['buildDeleteTableColumnsMutationActions'])(_0x55cf06,this[_0x5f404b(0x223)],_0x2b5384,_0x2b5384+_0x295989-0x1,this[_0x5f404b(0x178)]());return _0x5d15a5?this[_0x5f404b(0x21f)](_0x55cf06,_0x5d15a5[_0x5f404b(0x1dd)]):!0x1;}[_0x494d9c(0x23a)](){const _0x160bdf=_0x494d9c;let _0x124043=this[_0x160bdf(0x215)](),_0x3e3657=(0x0,_0x1da090[_0x160bdf(0x1c7)])(_0x124043,this[_0x160bdf(0x223)],this[_0x160bdf(0x178)]());return _0x3e3657?this['_mutateActions'](_0x124043,_0x3e3657[_0x160bdf(0x1dd)]):!0x1;}[_0x494d9c(0x174)](_0x427269,_0x39f6f4){const _0x1e0ce5=_0x494d9c;let _0x1bb5d4=this[_0x1e0ce5(0x215)]();return this[_0x1e0ce5(0x21f)](_0x1bb5d4,(0x0,_0x1da090[_0x1e0ce5(0x1aa)])(_0x1bb5d4,this[_0x1e0ce5(0x223)],_0x427269,_0x39f6f4));}[_0x494d9c(0x247)](_0x4f1341){const _0x5c3a85=_0x494d9c;let _0x4cee2d=this['_getDocumentData']();return this['_mutateActions'](_0x4cee2d,(0x0,_0x1da090[_0x5c3a85(0x186)])(_0x4cee2d,this[_0x5c3a85(0x223)],_0x4f1341,this[_0x5c3a85(0x178)]()));}[_0x494d9c(0x1da)](_0x225de3,_0x3a878e,_0x19fd96=_0x1da090['DocsTableInsertPosition'][_0x494d9c(0x224)]){return this['moveRows'](_0x225de3,0x1,_0x3a878e,_0x19fd96);}['moveRows'](_0x4bf099,_0x5b437b,_0x315f44,_0x174272=_0x1da090[_0x494d9c(0x1b1)][_0x494d9c(0x224)]){const _0x1d1f92=_0x494d9c;let _0x54a63d=this[_0x1d1f92(0x215)](),_0x3db69b=(0x0,_0x1da090['buildMoveTableRowsMutationActions'])(_0x54a63d,this['_tableId'],_0x4bf099,_0x315f44,_0x5b437b,_0x174272,this[_0x1d1f92(0x178)]());return _0x3db69b?this['_mutateActions'](_0x54a63d,_0x3db69b['actions']):!0x1;}[_0x494d9c(0x234)](_0x3b7e41,_0x426275,_0x2d8b1a=_0x1da090[_0x494d9c(0x1b1)]['Left']){const _0x19b29e=_0x494d9c;return this[_0x19b29e(0x1be)](_0x3b7e41,0x1,_0x426275,_0x2d8b1a);}[_0x494d9c(0x1be)](_0x47fd3c,_0x58878a,_0x5ba9f8,_0x2a34ce=_0x1da090[_0x494d9c(0x1b1)][_0x494d9c(0x20c)]){const _0x5dca59=_0x494d9c;let _0x17e733=this[_0x5dca59(0x215)](),_0x45d095=(0x0,_0x1da090[_0x5dca59(0x1f9)])(_0x17e733,this[_0x5dca59(0x223)],_0x47fd3c,_0x5ba9f8,_0x58878a,_0x2a34ce,this[_0x5dca59(0x178)]());return _0x45d095?this[_0x5dca59(0x21f)](_0x17e733,_0x45d095[_0x5dca59(0x1dd)]):!0x1;}[_0x494d9c(0x240)](_0x26550c){const _0x44e36c=_0x494d9c;try{let _0x4f0a60=this['_getDocumentData'](),_0x1a9fb6=(0x0,_0x1da090[_0x44e36c(0x1a0)])({'documentData':_0x4f0a60,'tableId':this['_tableId'],..._0x26550c});return _0x1a9fb6?this[_0x44e36c(0x21f)](_0x4f0a60,_0x1a9fb6[_0x44e36c(0x1dd)],_0x26550c):!0x1;}catch{return!0x1;}}[_0x494d9c(0x1e9)](_0x440fc1){const _0x3cd125=_0x494d9c;try{let _0x3eda5b=this[_0x3cd125(0x215)](),_0x59d3b3=(0x0,_0x1da090[_0x3cd125(0x187)])({'documentData':_0x3eda5b,'tableId':this['_tableId'],..._0x440fc1});return _0x59d3b3?this[_0x3cd125(0x21f)](_0x3eda5b,_0x59d3b3[_0x3cd125(0x1dd)],_0x440fc1):!0x1;}catch{return!0x1;}}[_0x494d9c(0x20d)](_0x39e681,_0x3b40c9,_0x4203c0){const _0x1226ef=_0x494d9c;let _0x6b351e=this['_getDocumentData'](),_0x18704c=(0x0,_0x1da090[_0x1226ef(0x1fa)])(this[_0x1226ef(0x17c)][_0x1226ef(0x1af)]()[_0x1226ef(0x172)](),this[_0x1226ef(0x244)]);return this[_0x1226ef(0x21f)](_0x6b351e,(0x0,_0x1da090[_0x1226ef(0x1df)])({'documentData':_0x6b351e,'tableId':this[_0x1226ef(0x223)],'row':_0x39e681,'column':_0x3b40c9,'text':_0x4203c0},_0x18704c),this[_0x1226ef(0x232)](_0x39e681,_0x3b40c9));}[_0x494d9c(0x1a4)](_0x7c0f13,_0x255f17){const _0x87adb7=_0x494d9c;let _0x42135=this[_0x87adb7(0x215)]();return this[_0x87adb7(0x21f)](_0x42135,(0x0,_0x1da090[_0x87adb7(0x19f)])(_0x42135,{'tableId':this['_tableId'],..._0x7c0f13,'value':_0x255f17}),_0x7c0f13);}[_0x494d9c(0x1d4)](_0x22902b,_0x465161){const _0x494bd6=_0x494d9c;let _0x37d831=this[_0x494bd6(0x215)]();return this[_0x494bd6(0x21f)](_0x37d831,(0x0,_0x1da090[_0x494bd6(0x237)])({'documentData':_0x37d831,'tableId':this[_0x494bd6(0x223)],..._0x22902b,'margin':_0x465161}),_0x22902b);}[_0x494d9c(0x206)](_0x42474d){const _0x4d3088=_0x494d9c;let _0x3649c9=this[_0x4d3088(0x215)]();return this[_0x4d3088(0x21f)](_0x3649c9,(0x0,_0x1da090['buildSetTableDefaultCellMarginMutationActions'])(_0x3649c9,this[_0x4d3088(0x223)],_0x42474d));}[_0x494d9c(0x1d5)](_0xfbc4eb,_0x243735){const _0x55cd4e=_0x494d9c;let _0x59d779=this['_getDocumentData']();return this[_0x55cd4e(0x21f)](_0x59d779,(0x0,_0x1da090['buildSetTableBorderMutationActions'])({'documentData':_0x59d779,'tableId':this[_0x55cd4e(0x223)],..._0xfbc4eb,'preset':_0x243735[_0x55cd4e(0x1e6)]??_0x1da090[_0x55cd4e(0x221)][_0x55cd4e(0x16e)],'border':_0x243735[_0x55cd4e(0x1ab)]??{'color':{'rgb':_0x243735[_0x55cd4e(0x1fd)]??_0x55cd4e(0x214)},'width':{'v':_0x243735['width']??0x1},'dashStyle':_0x2007ee[_0x55cd4e(0x18e)][_0x55cd4e(0x226)]}}),_0xfbc4eb);}['setTableBackground'](_0x2579b4){const _0x4c332c=_0x494d9c;return this['setCellBackground'](this[_0x4c332c(0x242)](),_0x2579b4);}[_0x494d9c(0x209)](_0x54d7b5){const _0x2d1dee=_0x494d9c;return this['setBorder'](this[_0x2d1dee(0x242)](),_0x54d7b5);}[_0x494d9c(0x248)](_0x557b78){const _0x54fa07=_0x494d9c;let _0x188623=!_0x557b78[_0x54fa07(0x1c5)]||this[_0x54fa07(0x23c)](_0x557b78[_0x54fa07(0x1c5)]),_0x4bbc36=!_0x557b78[_0x54fa07(0x1ab)]||this[_0x54fa07(0x209)](_0x557b78[_0x54fa07(0x1ab)]);return _0x188623&&_0x4bbc36;}[_0x494d9c(0x231)](_0x55b913,_0x21f889,_0x299903=_0x2007ee[_0x494d9c(0x220)][_0x494d9c(0x1a2)]){const _0x403a98=_0x494d9c;var _0x9dca71;let _0x187ed3=this['_getDocumentData']();return(_0x9dca71=_0x187ed3[_0x403a98(0x1f3)])!=null&&(_0x9dca71=_0x9dca71[this[_0x403a98(0x223)]])!=null&&_0x9dca71[_0x403a98(0x1ee)][_0x55b913]?this[_0x403a98(0x21f)](_0x187ed3,(0x0,_0x1da090[_0x403a98(0x16f)])(_0x187ed3,this[_0x403a98(0x223)],_0x55b913,_0x21f889,_0x299903)):!0x1;}[_0x494d9c(0x24f)](_0x2ce0d7){const _0x38d6af=_0x494d9c;var _0x28a4fc;let _0x2bc939=(_0x28a4fc=this[_0x38d6af(0x216)]())==null||(_0x28a4fc=_0x28a4fc[_0x38d6af(0x1ee)][_0x2ce0d7])==null?void 0x0:_0x28a4fc['trHeight'];return _0x2bc939?_0x2007ee[_0x38d6af(0x1bd)][_0x38d6af(0x1e8)](_0x2bc939):null;}['setColumnWidth'](_0x3bd67a,_0x20c5ca){const _0x4b3a98=_0x494d9c;var _0x277788;let _0x440bce=this[_0x4b3a98(0x215)]();return(_0x277788=_0x440bce[_0x4b3a98(0x1f3)])!=null&&(_0x277788=_0x277788[this[_0x4b3a98(0x223)]])!=null&&_0x277788[_0x4b3a98(0x213)][_0x3bd67a]?this[_0x4b3a98(0x21f)](_0x440bce,(0x0,_0x1da090[_0x4b3a98(0x1b7)])(_0x440bce,this[_0x4b3a98(0x223)],_0x3bd67a,_0x20c5ca)):!0x1;}[_0x494d9c(0x1e0)](_0x321220=0x0,_0x8e28a=this[_0x494d9c(0x1c2)]()){const _0x48c26f=_0x494d9c;let _0x39ed96=this['_getDocumentData']();return this[_0x48c26f(0x21f)](_0x39ed96,(0x0,_0x1da090[_0x48c26f(0x24c)])(_0x39ed96,this[_0x48c26f(0x223)],_0x321220,_0x321220+_0x8e28a-0x1));}['distributeColumns'](_0x387355=0x0,_0x32071b=this[_0x494d9c(0x1f4)]()){const _0x252f80=_0x494d9c;let _0x5396ca=this['_getDocumentData']();return this['_mutateActions'](_0x5396ca,(0x0,_0x1da090[_0x252f80(0x185)])(_0x5396ca,this[_0x252f80(0x223)],_0x387355,_0x387355+_0x32071b-0x1));}[_0x494d9c(0x17f)](){const _0x1e0f12=_0x494d9c;var _0x5b410c;return((_0x5b410c=this[_0x1e0f12(0x17e)]())==null?void 0x0:_0x5b410c[_0x1e0f12(0x1c4)])??0x0;}[_0x494d9c(0x183)](_0x5a2d9a){const _0x421c91=_0x494d9c;let _0x51383d=this['_injector'][_0x421c91(0x1ae)](_0x1da090[_0x421c91(0x228)]),_0x4c2a47=this['_getDocumentData'](),_0x198c2a=(0x0,_0x1da090['buildSetTableHeaderRowCountMutationActions'])(_0x4c2a47,this['_tableId'],_0x5a2d9a);if(!_0x198c2a)return!0x1;let _0x5dcdb2=this[_0x421c91(0x21f)](_0x4c2a47,_0x198c2a[_0x421c91(0x1dd)]);return _0x5dcdb2&&_0x51383d[_0x421c91(0x183)](this[_0x421c91(0x21e)],this[_0x421c91(0x223)],_0x198c2a[_0x421c91(0x1c4)]),_0x5dcdb2;}['pinHeaderRows'](_0x16848b){return this['setHeaderRowCount'](_0x16848b);}[_0x494d9c(0x181)](){const _0x70b24f=_0x494d9c;var _0x5b4f44;return((_0x5b4f44=this[_0x70b24f(0x17e)]())==null?void 0x0:_0x5b4f44['titleRow'])??!0x1;}[_0x494d9c(0x192)](){const _0x340528=_0x494d9c;let _0x462f7e=this['_injector'][_0x340528(0x1ae)](_0x1da090[_0x340528(0x228)]),_0x379ac2=this[_0x340528(0x215)](),_0x4e6e22=(0x0,_0x1da090[_0x340528(0x1e1)])(_0x379ac2,this[_0x340528(0x223)],this[_0x340528(0x178)]());if(!_0x4e6e22)return!0x1;let _0x513780=this[_0x340528(0x21f)](_0x379ac2,_0x4e6e22[_0x340528(0x1dd)]);return _0x513780&&_0x462f7e[_0x340528(0x1ad)](this[_0x340528(0x21e)],this[_0x340528(0x223)],!0x0),_0x513780;}['setColumnType'](_0x10acac,_0xc60823){const _0x29944f=_0x494d9c;return this['_injector']['get'](_0x1da090[_0x29944f(0x228)])['setColumnType'](this[_0x29944f(0x21e)],this[_0x29944f(0x223)],_0x10acac,_0xc60823),!0x0;}[_0x494d9c(0x1d0)](_0x296286,_0x29b5e8){const _0x18a31b=_0x494d9c;let _0x4b8221=this[_0x18a31b(0x215)]();return this[_0x18a31b(0x21f)](_0x4b8221,(0x0,_0x1da090[_0x18a31b(0x1ac)])(_0x4b8221,this[_0x18a31b(0x1dc)](),this['_tableId'],_0x296286,_0x29b5e8,this['_getBodyPath']()));}[_0x494d9c(0x215)](){const _0x470d92=_0x494d9c;let _0x21d43b=this['_document'][_0x470d92(0x1af)]()['getSnapshot']();return this[_0x470d92(0x244)]?{...this[_0x470d92(0x17c)][_0x470d92(0x1af)](this[_0x470d92(0x244)])[_0x470d92(0x172)](),'documentStyle':_0x21d43b['documentStyle'],'tableSource':_0x21d43b['tableSource']}:_0x21d43b;}['_serializeModel'](){const _0x15672d=_0x494d9c;return this[_0x15672d(0x233)][_0x15672d(0x1ae)](_0x1da090[_0x15672d(0x228)])[_0x15672d(0x21c)](this[_0x15672d(0x21e)]);}[_0x494d9c(0x178)](){const _0x40a435=_0x494d9c;return(0x0,_0x1da090['getTableActionBodyPath'])(this['_document'][_0x40a435(0x1af)]()[_0x40a435(0x172)](),this['_segmentId']);}[_0x494d9c(0x21f)](_0x3606d7,_0x2eadc7,_0x22caa0){const _0x4d2f1a=_0x494d9c;return(0x0,_0x1da090['executeRichTextTableActions'])(this[_0x4d2f1a(0x233)]['get'](_0x2007ee[_0x4d2f1a(0x230)]),this[_0x4d2f1a(0x21e)],_0x3606d7,_0x2eadc7,_0x22caa0?{'tableId':this[_0x4d2f1a(0x223)],'segmentId':this[_0x4d2f1a(0x244)],..._0x22caa0}:void 0x0);}},_0x14dc15=class extends _0x5cdde9[_0x494d9c(0x17d)]{[_0x494d9c(0x1a6)](_0x1021e4=''){const _0xdd6c34=_0x494d9c;return this['_getTables'](_0x1021e4)[_0xdd6c34(0x194)](_0xf78d0c=>this[_0xdd6c34(0x1ce)](_0xf78d0c[_0xdd6c34(0x199)],_0x1021e4));}[_0x494d9c(0x1bf)](_0x3a3446,_0x54f64a=''){const _0x522495=_0x494d9c;return this[_0x522495(0x1c8)](_0x54f64a)[_0x522495(0x1bc)](_0x32f010=>_0x32f010[_0x522495(0x199)]===_0x3a3446)?this[_0x522495(0x1ce)](_0x3a3446,_0x54f64a):null;}[_0x494d9c(0x23e)](_0x410a03,_0x19143d=''){const _0x2e2055=_0x494d9c;var _0x557f60;let _0x5682c2=(_0x557f60=this['_getTables'](_0x19143d)[_0x410a03])==null?void 0x0:_0x557f60['tableId'];return _0x5682c2?this[_0x2e2055(0x1ce)](_0x5682c2,_0x19143d):null;}[_0x494d9c(0x180)](){const _0x1c43d8=_0x494d9c;let _0x1f9bbc=this[_0x1c43d8(0x233)][_0x1c43d8(0x1ae)](_0x1da090[_0x1c43d8(0x179)])[_0x1c43d8(0x1e2)]();return _0x1f9bbc!=null&&_0x1f9bbc['tableId']?this['_createFDocumentTable'](_0x1f9bbc[_0x1c43d8(0x199)],_0x1f9bbc['segmentId']):null;}['findTableByText'](_0x276337,_0x465069=''){const _0x48af3b=_0x494d9c;return this[_0x48af3b(0x229)](_0x276337,_0x465069)[0x0]??null;}[_0x494d9c(0x229)](_0x2cfc82,_0x42b29a=''){const _0x25f30a=_0x494d9c;let _0x58a9a2=this[_0x25f30a(0x17a)](_0x42b29a),_0x33f068=typeof _0x2cfc82==_0x25f30a(0x1d9)?{'text':_0x2cfc82}:_0x2cfc82;return this['getTables'](_0x42b29a)[_0x25f30a(0x1ba)](_0xd5b850=>{const _0x18c8a4=_0x25f30a;let _0x33f27a=_0xd5b850[_0x18c8a4(0x17b)]();return!(_0x33f068[_0x18c8a4(0x199)]&&_0x33f27a!==_0x33f068[_0x18c8a4(0x199)]||_0x33f068[_0x18c8a4(0x23f)]&&!this[_0x18c8a4(0x227)](_0x58a9a2,_0x33f27a,_0x33f068['text'])||_0x33f068['headerText']&&!this['_rowContainsText'](_0xd5b850,0x0,_0x33f068['headerText'])||_0x33f068['titleText']&&!this[_0x18c8a4(0x1f6)](_0xd5b850,0x0,_0x33f068[_0x18c8a4(0x1b0)]));});}[_0x494d9c(0x177)](_0x5c3956,_0x32be04,_0x5ced48={}){const _0x2c2396=_0x494d9c;let _0x201f72=this[_0x2c2396(0x233)][_0x2c2396(0x1ae)](_0x2007ee[_0x2c2396(0x230)]),_0x78f33a=_0x5ced48['tableId']??(0x0,_0x2007ee[_0x2c2396(0x191)])(0x6);return _0x201f72['syncExecuteCommand'](_0x1da090[_0x2c2396(0x175)]['id'],{..._0x5ced48,'unitId':this['getId'](),'rows':_0x5c3956,'columns':_0x32be04,'tableId':_0x78f33a})?this[_0x2c2396(0x1ce)](_0x78f33a,_0x5ced48[_0x2c2396(0x24e)]??''):null;}['insertTableFromData'](_0x3968ee,_0x497a2d={}){const _0x32ce89=_0x494d9c;let _0x841765=this[_0x32ce89(0x233)]['get'](_0x2007ee['ICommandService']),_0x4ff1a2=_0x497a2d[_0x32ce89(0x199)]??(0x0,_0x2007ee['generateRandomId'])(0x6);return _0x841765[_0x32ce89(0x1e7)](_0x1da090[_0x32ce89(0x175)]['id'],{..._0x497a2d,'unitId':this['getId'](),'values':_0x3968ee,'tableId':_0x4ff1a2})?this[_0x32ce89(0x1ce)](_0x4ff1a2,_0x497a2d[_0x32ce89(0x24e)]??''):null;}['_getTables'](_0x1afb76=''){const _0x498487=_0x494d9c;let {tables:_0x4a8e9f=[]}=this[_0x498487(0x1c1)](_0x1afb76);return _0x4a8e9f;}['_getTableDocumentData'](_0x27bfe3=''){const _0x4bfa7b=_0x494d9c;let _0x4485f9=this[_0x4bfa7b(0x1af)]()[_0x4bfa7b(0x172)]();return _0x27bfe3?{...this[_0x4bfa7b(0x1af)](_0x27bfe3)['getSnapshot'](),'documentStyle':_0x4485f9[_0x4bfa7b(0x1fb)],'tableSource':_0x4485f9['tableSource']}:_0x4485f9;}[_0x494d9c(0x1ce)](_0xd7c899,_0x4e4623=''){const _0x5df093=_0x494d9c;return this[_0x5df093(0x233)]['createInstance'](_0x32fc3a,this,_0xd7c899,_0x4e4623,this['_injector']);}[_0x494d9c(0x227)](_0x23b2c5,_0x47d827,_0x2b2d87){const _0xb41741=_0x494d9c;var _0x4285bc;let _0x88ff58=(0x0,_0x1da090[_0xb41741(0x1cf)])(_0x23b2c5,_0x47d827);if(!_0x88ff58)return!0x1;let _0x3d66ba=(_0x4285bc=_0x23b2c5[_0xb41741(0x1d1)])==null?void 0x0:_0x4285bc[_0xb41741(0x1a1)];return _0x3d66ba?_0x3d66ba['slice'](_0x88ff58[_0xb41741(0x1f1)],_0x88ff58[_0xb41741(0x210)])[_0xb41741(0x1f0)](_0x2b2d87):!0x1;}[_0x494d9c(0x1f6)](_0x2b79ba,_0x4d775b,_0x4eb729){const _0x5d2ef0=_0x494d9c;return Array['from']({'length':_0x2b79ba['getColumnCount']()},(_0x15407f,_0x4e8cb0)=>_0x2b79ba[_0x5d2ef0(0x1e5)](_0x4d775b,_0x4e8cb0))['some'](_0x20726f=>_0x20726f[_0x5d2ef0(0x1f0)](_0x4eb729));}};_0x5cdde9[_0x494d9c(0x17d)]['extend'](_0x14dc15),_0x21d417[_0x494d9c(0x1c9)]=_0x32fc3a,_0x21d417['FDocumentTableCell']=_0x294a88;}));function _0x41c0(_0x104ff2,_0x4bf693){_0x104ff2=_0x104ff2-0x16e;const _0x4833ab=_0x4833();let _0x41c03d=_0x4833ab[_0x104ff2];return _0x41c03d;}function _0x4833(){const _0x6d043a=['selectColumns','DocsTableSortDirection','_table','rows','appendRow','DashStyleType','DocsTableRowInsertPosition','insertColumnsAfter','generateRandomId','insertTitleRow','UniverCore','map','selectColumn','buildInsertTableColumnsMutationActions','selectTable','getDefaultCellMargin','tableId','getMarginOverride','DocsTableColumnType','titleRow','getRange','@univerjs/core/facade','buildSetTableBackgroundMutationActions','buildMergeCellsMutationActions','dataStream','AT_LEAST','tableCells','setCellBackground','DocsTableColumnInsertPosition','getTables','776poGNab','call','4898240NVMqet','buildMoveFloatingTableMutationActions','border','buildSortTableMutationActions','setTitleRow','get','getDocumentDataModel','titleText','DocsTableInsertPosition','insertColumnBefore','getColumnsRange','DocsTableSelectionKind','describe','1008445cHYMHN','buildResizeTableColumnActionsFromWidth','margin','102JGEYFF','filter','type','some','Tools','moveColumns','getTable','getSegmentId','getBody','getRowCount','getMargin','headerRowCount','backgroundColor','55BZHLqM','buildDeleteTableMutationActions','_getTables','FDocumentTable','prototype','toStringTag','extend','function','_createFDocumentTable','getTableRangeById','sortByColumn','body','max','Column','setCellMargin','setBorder','@univerjs/docs/facade','getInfo','FEnum','string','moveRow','insertRowsAfter','_serializeModel','actions','_column','buildSetTableCellTextMutationActions','distributeRows','buildInsertTableTitleRowMutationActions','getStableTableSelection','setStructuralSelection','buildInsertTableRowsMutationActions','getCellText','preset','syncExecuteCommand','deepClone','unmergeCells','498xBxIVg','length','getColumnRange','getCellContentRange','tableRows','497050EmnIFZ','includes','startOffset','symbol','tableSource','getColumnCount','getCellInsertOffset','_rowContainsText','getRowRange','Below','buildMoveTableColumnsMutationActions','getTableActionBodyPath','documentStyle','replace','color','size','defineProperty','iterator','mergeTo','slice','setText','insertColumnsBefore','UniverDocsFacade','setDefaultCellMargin','getRowsRange','getDefaultCellMarginOverride','setTableBorder','cells','insertRowsBefore','Left','setCellText','selectRow','selectRows','endOffset','_row','getTableMetadata','tableColumns','#1f1f1f','_getDocumentData','getSource','9765108gmCCzs','getText','getCellMarginOverride','createInstance','getCellMargin','serialize','columnTypes','_unitId','_mutateActions','TableRowHeightRule','DocsTableBorderPreset','setBackgroundColor','_tableId','Above','selectRange','SOLID','_tableContainsText','DocsTableModel','findTables','UniverCoreFacade','Range','DocsTableInsertTablePosition','Cell','DEFAULT_DOCS_TABLE_CELL_MARGIN','from','ICommandService','setRowHeight','getCellRange','_injector','moveColumn','clearMarginOverride','cellMargin','buildSetTableCellMarginMutationActions','getCell','deleteColumns','deleteTable','toPrimitive','setTableBackground','insertColumnAfter','getTableAt','text','mergeCells','constructor','getTableRange','amd','_segmentId','deleteRow','deleteRows','moveTableToOffset','setTableStyle','object','10016yfWwsF','3871ELLWOF','buildDistributeTableRowsMutationActions','getRowIndex','segmentId','getRowHeight','All','buildResizeTableRowActionsFromHeight','getColumnIndex','exports','getSnapshot','width','moveTableBy','DocsTableInsertTableCommand','232585hEQRPP','insertTable','_getBodyPath','DocsTableSelectionService','_getTableDocumentData','getId','_document','FDocument','getMetadata','getHeaderRowCount','getTableAtSelection','hasTitleRow','getInsertOffset','setHeaderRowCount','@univerjs/core','buildDistributeTableColumnsMutationActions','buildMoveTableToOffsetMutationActions','buildUnmergeCellsMutationActions','deleteColumn'];_0x4833=function(){return _0x6d043a;};return _0x4833();}
1
+ function _0x4b18(){const _0x180f79=['getTableRange','@univerjs/docs/facade','buildMoveFloatingTableMutationActions','setBorder','max','Above','@univerjs-pro/docs-table','setHeaderRowCount','extend','margin','DocsTableInsertTablePosition','SOLID','setTableBorder','getRange','_getBodyPath','slice','getColumnRange','getRowCount','preset','insertRowBefore','decorate','DocsTableSortDirection','TableRowHeightRule','FEnum','DashStyleType','FDocumentTableCell','pinHeaderRows','buildSetTableBackgroundMutationActions','Table','Module','map','getSnapshot','some','getRowsRange','getCellContentRange','buildResizeTableColumnActionsFromWidth','_injector','body','DocsTableDeleteColumnsCommand','tableSource','_rowContainsText','setCellText','getDefaultCellMargin','setTableBackground','length','getColumnIndex','Below','FDocument','setText','DocsTableRowInsertPosition','DocsTableDeleteTableCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRowRange','color','buildMoveTableColumnsMutationActions','deleteRow','moveRows','deepClone','setRowHeight','clearMarginOverride','getTableAt','text','syncExecuteCommand','_getDocumentData','deleteTable','startOffset','_column','moveTableBy','describe','setMargin','5026248MzVDGn','getMargin','selectRange','setBackgroundColor','string','deleteColumn','trHeight','getTables','_createFDocumentTable','getTableRangeById','buildInsertTableTitleRowMutationActions','tableId','setTitleRow','DocsTableSelectionKind','UniverProDocsTable','setColumnType','13OEQOfL','DocsTableDeleteRowsCommand','_tableId','UniverDocsFacade','_segmentId','amd','AT_LEAST','insertRowAfter','getSegmentId','toPrimitive','1789445AVvScp','buildSetTableHeaderRowCountMutationActions','width','tableRows','titleText','get','DocsTableModel','buildSortTableMutationActions','insertTableFromData','setCellBackground','insertRowsBefore','@univerjs/core/facade','defineProperty','_mutateActions','getMarginOverride','selectRows','getCellMarginOverride','iterator','getColumnsRange','moveColumns','getTable','appendColumn','getRowIndex','headerText','cellMargin','setTableStyle','getMetadata','_unitId','headerRowCount','type','rows','prototype','mergeTo','buildDistributeTableRowsMutationActions','getTableActionBodyPath','setCellMargin','getCell','insertColumnAfter','dataStream','mergeCells','function','from','deleteRows','_commandService','_row','exports','tableCells','buildInsertTableColumnsMutationActions','includes','_tableContainsText','getCellMargin','symbol','getColumnCount','distributeColumns','getInsertOffset','3166938ufZFEx','titleRow','Left','filter','getInfo','Tools','_table','UniverProDocsTableFacade','getDefaultCellMarginOverride','border','DocsTableInsertTableCommand','executeRichTextTableActions','3330628TWcmUf','unmergeCells','getCellInsertOffset','endOffset','FDocumentTable','segmentId','selectCell','getCellRange','object','DocsTableSelectionService','actions','cells','_serializeModel','DocsTableBorderPreset','distributeRows','buildUnmergeCellsMutationActions','ICommandService','Row','getRowHeight','UniverCore','DocsTableColumnType','insertColumnsBefore','38074cynHQU','selectColumns','getTableAtSelection','documentStyle','insertRowsAfter','getBody','setStructuralSelection','getId','_document','selectRow','DocsTableInsertPosition','replace','deleteColumns','Inject','generateRandomId','@univerjs/core','getHeaderRowCount','3828992efZTKd','getDocumentDataModel','buildMoveTableToOffsetMutationActions','buildDistributeTableColumnsMutationActions','findTables','All','insertColumnsAfter','size','createInstance','_getTables','tableColumns','insertTitleRow','5580421xmQAPs','setColumnWidth','findTableByText','getSource','DocsTableColumnInsertPosition','getCellText','toStringTag','appendRow','Range','buildSetTableDefaultCellMarginMutationActions'];_0x4b18=function(){return _0x180f79;};return _0x4b18();}function _0x58f9(_0x2107e3,_0x56e695){_0x2107e3=_0x2107e3-0x10c;const _0x4b184b=_0x4b18();let _0x58f918=_0x4b184b[_0x2107e3];return _0x58f918;}(function(_0xef057b,_0x2d1ffb){const _0x275b6b=_0x58f9,_0x5b1736=_0xef057b();while(!![]){try{const _0x3a2cec=-parseInt(_0x275b6b(0x1b0))/0x1*(-parseInt(_0x275b6b(0x133))/0x2)+parseInt(_0x275b6b(0x111))/0x3+-parseInt(_0x275b6b(0x11d))/0x4+-parseInt(_0x275b6b(0x1ba))/0x5+-parseInt(_0x275b6b(0x1a0))/0x6+parseInt(_0x275b6b(0x150))/0x7+parseInt(_0x275b6b(0x144))/0x8;if(_0x3a2cec===_0x2d1ffb)break;else _0x5b1736['push'](_0x5b1736['shift']());}catch(_0x499a34){_0x5b1736['push'](_0x5b1736['shift']());}}}(_0x4b18,0x8672c),function(_0x52fcdc,_0x5c0d37){const _0x58031b=_0x58f9;typeof exports=='object'&&typeof module<'u'?_0x5c0d37(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x58031b(0x1e2)&&define[_0x58031b(0x1b5)]?define([_0x58031b(0x1e7),_0x58031b(0x160),_0x58031b(0x142),_0x58031b(0x1c5),_0x58031b(0x15b)],_0x5c0d37):(_0x52fcdc=typeof globalThis<'u'?globalThis:_0x52fcdc||self,_0x5c0d37(_0x52fcdc[_0x58031b(0x118)]={},_0x52fcdc[_0x58031b(0x1ae)],_0x52fcdc[_0x58031b(0x130)],_0x52fcdc['UniverCoreFacade'],_0x52fcdc[_0x58031b(0x1b3)]));}(this,function(_0x4554b2,_0x58310d,_0x3f9f18,_0x2a9dac,_0xb0c2cf){const _0xd165de=_0x58f9;Object[_0xd165de(0x1c6)](_0x4554b2,Symbol[_0xd165de(0x156)],{'value':_0xd165de(0x177)});var _0x13408b=class extends _0x2a9dac['FEnum']{get[_0xd165de(0x164)](){return _0x58310d['DocsTableInsertTablePosition'];}get[_0xd165de(0x131)](){const _0x5ac0a1=_0xd165de;return _0x58310d[_0x5ac0a1(0x131)];}get[_0xd165de(0x1ad)](){const _0x7ab61c=_0xd165de;return _0x58310d[_0x7ab61c(0x1ad)];}get[_0xd165de(0x18b)](){const _0x303b01=_0xd165de;return _0x58310d[_0x303b01(0x18b)];}get[_0xd165de(0x154)](){return _0x58310d['DocsTableColumnInsertPosition'];}get['DocsTableBorderPreset'](){const _0x46a6e4=_0xd165de;return _0x58310d[_0x46a6e4(0x12a)];}get['DocsTableSortDirection'](){const _0xa1a388=_0xd165de;return _0x58310d[_0xa1a388(0x16f)];}get['DashStyleType'](){const _0x33cc88=_0xd165de;return _0x3f9f18[_0x33cc88(0x172)];}};_0x2a9dac[_0xd165de(0x171)][_0xd165de(0x162)](_0x13408b);var _0x527b77=class{constructor(_0x384e06,_0x34d0f3,_0x27a111){const _0xb8bcb7=_0xd165de;this[_0xb8bcb7(0x117)]=_0x384e06,this[_0xb8bcb7(0x1e6)]=_0x34d0f3,this[_0xb8bcb7(0x19c)]=_0x27a111;}[_0xd165de(0x1ce)](){const _0x58d4a1=_0xd165de;return this[_0x58d4a1(0x117)];}[_0xd165de(0x1d0)](){const _0x594242=_0xd165de;return this[_0x594242(0x1e6)];}[_0xd165de(0x187)](){return this['_column'];}['getText'](){const _0xaf4d19=_0xd165de;return this[_0xaf4d19(0x117)]['getCellText'](this['_row'],this[_0xaf4d19(0x19c)]);}['getContentRange'](){const _0x35d75c=_0xd165de;return this[_0x35d75c(0x117)][_0x35d75c(0x17c)](this[_0x35d75c(0x1e6)],this['_column']);}[_0xd165de(0x110)](){const _0x2403b4=_0xd165de;return this['_table']['getCellInsertOffset'](this[_0x2403b4(0x1e6)],this[_0x2403b4(0x19c)]);}[_0xd165de(0x1a1)](){const _0x43e22a=_0xd165de;return this[_0x43e22a(0x117)]['getCellMargin'](this['_row'],this[_0x43e22a(0x19c)]);}[_0xd165de(0x1c8)](){const _0x36dc77=_0xd165de;return this['_table'][_0x36dc77(0x1ca)](this['_row'],this[_0x36dc77(0x19c)]);}[_0xd165de(0x19f)](_0x71ff54){const _0x43be61=_0xd165de;return this[_0x43be61(0x117)][_0x43be61(0x1dd)](this[_0x43be61(0x117)][_0x43be61(0x124)](this['_row'],this[_0x43be61(0x19c)]),_0x71ff54);}[_0xd165de(0x195)](){const _0x262c70=_0xd165de;return this[_0x262c70(0x117)][_0x262c70(0x1dd)](this[_0x262c70(0x117)][_0x262c70(0x124)](this['_row'],this['_column']),null);}[_0xd165de(0x18a)](_0x46a738){const _0x56193f=_0xd165de;return this[_0x56193f(0x117)][_0x56193f(0x183)](this[_0x56193f(0x1e6)],this[_0x56193f(0x19c)],_0x46a738);}[_0xd165de(0x1a3)](_0xa7e067){const _0x44bc3b=_0xd165de;return this['_table'][_0x44bc3b(0x1c3)](this[_0x44bc3b(0x117)][_0x44bc3b(0x124)](this[_0x44bc3b(0x1e6)],this[_0x44bc3b(0x19c)]),_0xa7e067);}[_0xd165de(0x15d)](_0x18f117){const _0x55b36e=_0xd165de;return this['_table'][_0x55b36e(0x15d)](this[_0x55b36e(0x117)][_0x55b36e(0x124)](this[_0x55b36e(0x1e6)],this[_0x55b36e(0x19c)]),_0x18f117);}[_0xd165de(0x1da)](_0x5dcef7,_0x1f7e38){const _0x2e3999=_0xd165de;return this[_0x2e3999(0x117)][_0x2e3999(0x1e1)]({'startRow':this[_0x2e3999(0x1e6)],'startColumn':this['_column'],'endRow':this[_0x2e3999(0x1e6)]+_0x5dcef7-0x1,'endColumn':this[_0x2e3999(0x19c)]+_0x1f7e38-0x1});}['unmerge'](){const _0x676f10=_0xd165de;return this[_0x676f10(0x117)][_0x676f10(0x11e)](this['_table']['getCellRange'](this[_0x676f10(0x1e6)],this[_0x676f10(0x19c)]));}};function _0x23008a(_0x13b09e){'@babel/helpers - typeof';const _0x5954c1=_0xd165de;return _0x23008a=typeof Symbol=='function'&&typeof Symbol[_0x5954c1(0x1cb)]==_0x5954c1(0x10d)?function(_0x2643e2){return typeof _0x2643e2;}:function(_0xde84ae){const _0x13717a=_0x5954c1;return _0xde84ae&&typeof Symbol==_0x13717a(0x1e2)&&_0xde84ae['constructor']===Symbol&&_0xde84ae!==Symbol[_0x13717a(0x1d9)]?_0x13717a(0x10d):typeof _0xde84ae;},_0x23008a(_0x13b09e);}function _0xc48f7e(_0x173e6d,_0x8b1e7c){const _0x45ff7f=_0xd165de;if(_0x23008a(_0x173e6d)!=_0x45ff7f(0x125)||!_0x173e6d)return _0x173e6d;var _0x39e49f=_0x173e6d[Symbol[_0x45ff7f(0x1b9)]];if(_0x39e49f!==void 0x0){var _0x18b9d5=_0x39e49f['call'](_0x173e6d,_0x8b1e7c||'default');if(_0x23008a(_0x18b9d5)!=_0x45ff7f(0x125))return _0x18b9d5;throw TypeError(_0x45ff7f(0x18d));}return(_0x8b1e7c==='string'?String:Number)(_0x173e6d);}function _0x3fed4e(_0x110eca){const _0x40b823=_0xd165de;var _0x36bfaa=_0xc48f7e(_0x110eca,_0x40b823(0x1a4));return _0x23008a(_0x36bfaa)==_0x40b823(0x10d)?_0x36bfaa:_0x36bfaa+'';}function _0xd78760(_0x11ea08,_0x171620,_0x522b94){const _0x3f67b1=_0xd165de;return(_0x171620=_0x3fed4e(_0x171620))in _0x11ea08?Object[_0x3f67b1(0x1c6)](_0x11ea08,_0x171620,{'value':_0x522b94,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11ea08[_0x171620]=_0x522b94,_0x11ea08;}function _0x675219(_0x12e168,_0x3485fd){return function(_0x3c0481,_0x4bd0bd){_0x3485fd(_0x3c0481,_0x4bd0bd,_0x12e168);};}function _0xee9c16(_0x5345c3,_0xab51fb,_0x5dee43,_0x39d88f){const _0xf3a3cf=_0xd165de;var _0xaef25d=arguments[_0xf3a3cf(0x186)],_0xef3e77=_0xaef25d<0x3?_0xab51fb:_0x39d88f===null?_0x39d88f=Object['getOwnPropertyDescriptor'](_0xab51fb,_0x5dee43):_0x39d88f,_0x56b2aa;if(typeof Reflect==_0xf3a3cf(0x125)&&typeof Reflect[_0xf3a3cf(0x16e)]==_0xf3a3cf(0x1e2))_0xef3e77=Reflect['decorate'](_0x5345c3,_0xab51fb,_0x5dee43,_0x39d88f);else{for(var _0x403926=_0x5345c3['length']-0x1;_0x403926>=0x0;_0x403926--)(_0x56b2aa=_0x5345c3[_0x403926])&&(_0xef3e77=(_0xaef25d<0x3?_0x56b2aa(_0xef3e77):_0xaef25d>0x3?_0x56b2aa(_0xab51fb,_0x5dee43,_0xef3e77):_0x56b2aa(_0xab51fb,_0x5dee43))||_0xef3e77);}return _0xaef25d>0x3&&_0xef3e77&&Object[_0xf3a3cf(0x1c6)](_0xab51fb,_0x5dee43,_0xef3e77),_0xef3e77;}let _0x3f11ea=class{constructor(_0x1f8a2d,_0x451177,_0x198ed7,_0x22ad37,_0x4c04b3){const _0x1082af=_0xd165de;this[_0x1082af(0x13b)]=_0x1f8a2d,this[_0x1082af(0x1b2)]=_0x451177,this[_0x1082af(0x1b4)]=_0x198ed7,this[_0x1082af(0x1e5)]=_0x22ad37,this['_injector']=_0x4c04b3,_0xd78760(this,_0x1082af(0x1d5),void 0x0),this[_0x1082af(0x1d5)]=this[_0x1082af(0x13b)][_0x1082af(0x13a)]();}[_0xd165de(0x13a)](){const _0x2c5ba2=_0xd165de;return this[_0x2c5ba2(0x1b2)];}[_0xd165de(0x1b8)](){const _0x387ec6=_0xd165de;return this[_0x387ec6(0x1b4)];}[_0xd165de(0x115)](){const _0x3bf9b0=_0xd165de;return{'id':this[_0x3bf9b0(0x1b2)],'rowCount':this[_0x3bf9b0(0x16b)](),'columnCount':this[_0x3bf9b0(0x10e)](),'metadata':this[_0x3bf9b0(0x1d4)](),'source':this[_0x3bf9b0(0x153)]()};}[_0xd165de(0x19e)](){const _0x31061b=_0xd165de;let _0x35d1c0=this[_0x31061b(0x1d4)](),_0x2369d7=this[_0x31061b(0x153)](),_0x40cba0=this[_0x31061b(0x10e)]();return{'id':this[_0x31061b(0x1b2)],'rowCount':this[_0x31061b(0x16b)](),'columnCount':_0x40cba0,'headerRowCount':(_0x35d1c0==null?void 0x0:_0x35d1c0[_0x31061b(0x1d6)])??0x0,'titleRow':(_0x35d1c0==null?void 0x0:_0x35d1c0['titleRow'])??!0x1,'columns':Array[_0x31061b(0x1e3)]({'length':_0x40cba0},(_0x5427d7,_0x479bb5)=>{const _0xee023b=_0x31061b;var _0x1157ce,_0x579efc;return{'index':_0x479bb5,'type':_0x35d1c0==null||(_0x1157ce=_0x35d1c0['columnTypes'])==null||(_0x1157ce=_0x1157ce[_0x479bb5])==null?void 0x0:_0x1157ce[_0xee023b(0x1d7)],'width':_0x2369d7==null||(_0x579efc=_0x2369d7[_0xee023b(0x14e)][_0x479bb5])==null?void 0x0:_0x579efc[_0xee023b(0x14b)][_0xee023b(0x1bc)]['v']};}),'sampleRows':Array[_0x31061b(0x1e3)]({'length':this[_0x31061b(0x16b)]()},(_0x5646a5,_0x8cfb19)=>Array[_0x31061b(0x1e3)]({'length':_0x40cba0},(_0x3ba918,_0x2b04c2)=>this[_0x31061b(0x155)](_0x8cfb19,_0x2b04c2)))[_0x31061b(0x114)](_0x456c6d=>_0x456c6d[_0x31061b(0x17a)](_0x5f4d77=>_0x5f4d77[_0x31061b(0x186)]>0x0))['slice'](0x0,0x5)};}[_0xd165de(0x16b)](){const _0x4a321e=_0xd165de;var _0x3aeae0;return((_0x3aeae0=this[_0x4a321e(0x153)]())==null?void 0x0:_0x3aeae0['tableRows'][_0x4a321e(0x186)])??0x0;}[_0xd165de(0x10e)](){const _0x44a18f=_0xd165de;var _0x3f4bbb;return((_0x3f4bbb=this[_0x44a18f(0x153)]())==null?void 0x0:_0x3f4bbb[_0x44a18f(0x14e)][_0x44a18f(0x186)])??0x0;}[_0xd165de(0x1de)](_0x1d5da2,_0x5ba951){const _0xc5ca5b=_0xd165de;var _0xda745d;return(_0xda745d=this[_0xc5ca5b(0x153)]())!=null&&(_0xda745d=_0xda745d[_0xc5ca5b(0x1bd)][_0x1d5da2])!=null&&_0xda745d[_0xc5ca5b(0x1e8)][_0x5ba951]?this[_0xc5ca5b(0x17e)][_0xc5ca5b(0x14c)](_0x527b77,this,_0x1d5da2,_0x5ba951):null;}[_0xd165de(0x155)](_0x465427,_0xf58f47){const _0x5e5c6d=_0xd165de;var _0xe123b3,_0x3fe4d6;let _0x5a8a88=(_0xe123b3=(0x0,_0x58310d[_0x5e5c6d(0x1a9)])(this[_0x5e5c6d(0x199)](),this[_0x5e5c6d(0x1b2)]))==null||(_0xe123b3=_0xe123b3[_0x5e5c6d(0x1d8)][_0x465427])==null?void 0x0:_0xe123b3[_0x5e5c6d(0x128)][_0xf58f47];return _0x5a8a88?((_0x3fe4d6=this[_0x5e5c6d(0x199)]()['body'])==null?void 0x0:_0x3fe4d6[_0x5e5c6d(0x1e0)][_0x5e5c6d(0x169)](_0x5a8a88[_0x5e5c6d(0x19b)]+0x1,_0x5a8a88[_0x5e5c6d(0x120)])[_0x5e5c6d(0x13e)](/\r\n$/,''))??'':'';}[_0xd165de(0x10c)](_0x148221,_0x2eca91){const _0x304919=_0xd165de;var _0x3930fb;let _0x4bbc79=this['getSource'](),_0x38398c=_0x4bbc79==null||(_0x3930fb=_0x4bbc79[_0x304919(0x1bd)][_0x148221])==null?void 0x0:_0x3930fb[_0x304919(0x1e8)][_0x2eca91];return _0x38398c?_0x3f9f18['Tools'][_0x304919(0x193)](_0x38398c['margin']??_0x4bbc79[_0x304919(0x1d2)]??_0x58310d['DEFAULT_DOCS_TABLE_CELL_MARGIN']):null;}[_0xd165de(0x1ca)](_0x168d90,_0xfc33ae){const _0x5ee6cc=_0xd165de;var _0x442631;let _0x4ffde1=(_0x442631=this[_0x5ee6cc(0x153)]())==null||(_0x442631=_0x442631[_0x5ee6cc(0x1bd)][_0x168d90])==null?void 0x0:_0x442631[_0x5ee6cc(0x1e8)][_0xfc33ae];return _0x4ffde1!=null&&_0x4ffde1['margin']?_0x3f9f18[_0x5ee6cc(0x116)][_0x5ee6cc(0x193)](_0x4ffde1[_0x5ee6cc(0x163)]):null;}[_0xd165de(0x184)](){const _0x10ea56=_0xd165de;var _0x2f8586;return _0x3f9f18[_0x10ea56(0x116)]['deepClone'](((_0x2f8586=this[_0x10ea56(0x153)]())==null?void 0x0:_0x2f8586['cellMargin'])??_0x58310d['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}[_0xd165de(0x119)](){const _0x7236da=_0xd165de;var _0x2b5c59;let _0x9e1242=(_0x2b5c59=this[_0x7236da(0x153)]())==null?void 0x0:_0x2b5c59[_0x7236da(0x1d2)];return _0x9e1242?_0x3f9f18[_0x7236da(0x116)][_0x7236da(0x193)](_0x9e1242):null;}[_0xd165de(0x1d4)](){const _0x4b46f7=_0xd165de;return this[_0x4b46f7(0x17e)][_0x4b46f7(0x1bf)](_0x58310d[_0x4b46f7(0x1c0)])['getTableMetadata'](this['_unitId'],this[_0x4b46f7(0x1b2)]);}['getSource'](){const _0x1a02ca=_0xd165de;var _0x5f0627;return(_0x5f0627=this[_0x1a02ca(0x199)]()[_0x1a02ca(0x181)])==null?void 0x0:_0x5f0627[this[_0x1a02ca(0x1b2)]];}[_0xd165de(0x167)](){const _0x1e94d5=_0xd165de;return(0x0,_0x58310d[_0x1e94d5(0x1a9)])(this[_0x1e94d5(0x199)](),this['_tableId']);}['getTableRange'](){const _0x481472=_0xd165de;return{'startRow':0x0,'endRow':Math['max'](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x481472(0x15e)](0x0,this[_0x481472(0x10e)]()-0x1)};}[_0xd165de(0x124)](_0x3cc354,_0x4678d3){return{'startRow':_0x3cc354,'endRow':_0x3cc354,'startColumn':_0x4678d3,'endColumn':_0x4678d3};}[_0xd165de(0x17c)](_0x1c67b5,_0x4a31aa){const _0x9b5959=_0xd165de;var _0x14e0d4;let _0x365c70=(_0x14e0d4=(0x0,_0x58310d[_0x9b5959(0x1a9)])(this[_0x9b5959(0x199)](),this[_0x9b5959(0x1b2)]))==null||(_0x14e0d4=_0x14e0d4[_0x9b5959(0x1d8)][_0x1c67b5])==null?void 0x0:_0x14e0d4[_0x9b5959(0x128)][_0x4a31aa];if(!_0x365c70)return null;let _0x1556ef=_0x365c70['startOffset']+0x1;return{'startOffset':_0x1556ef,'endOffset':Math[_0x9b5959(0x15e)](_0x1556ef,_0x365c70[_0x9b5959(0x120)]-0x1),'segmentId':this['_segmentId']};}[_0xd165de(0x11f)](_0x295909,_0x373a35){const _0x37933f=_0xd165de;let _0x4820af=this[_0x37933f(0x17c)](_0x295909,_0x373a35);return _0x4820af?Math[_0x37933f(0x15e)](_0x4820af[_0x37933f(0x19b)],_0x4820af[_0x37933f(0x120)]-0x1):null;}[_0xd165de(0x18e)](_0x13e61f){const _0x5a107e=_0xd165de;return this[_0x5a107e(0x17b)](_0x13e61f,0x1);}['getRowsRange'](_0x3ea168,_0x400b5f=0x1){const _0x9f1ef3=_0xd165de;return{'startRow':_0x3ea168,'endRow':_0x3ea168+_0x400b5f-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x9f1ef3(0x10e)]()-0x1)};}[_0xd165de(0x16a)](_0x507855){return this['getColumnsRange'](_0x507855,0x1);}[_0xd165de(0x1cc)](_0x5ea779,_0x20abd0=0x1){const _0x23e385=_0xd165de;return{'startRow':0x0,'endRow':Math[_0x23e385(0x15e)](0x0,this[_0x23e385(0x16b)]()-0x1),'startColumn':_0x5ea779,'endColumn':_0x5ea779+_0x20abd0-0x1};}['selectTable'](){const _0x58c59f=_0xd165de;return this[_0x58c59f(0x1a2)](this[_0x58c59f(0x15a)](),_0x58310d[_0x58c59f(0x1ad)][_0x58c59f(0x176)]);}[_0xd165de(0x13c)](_0x4e2d4e){const _0x4c1ad1=_0xd165de;return this[_0x4c1ad1(0x1c9)](_0x4e2d4e,0x1);}[_0xd165de(0x1c9)](_0x2caed3,_0x4b5f8=0x1){const _0x2bcdd3=_0xd165de;return this[_0x2bcdd3(0x1a2)](this['getRowsRange'](_0x2caed3,_0x4b5f8),_0x58310d['DocsTableSelectionKind'][_0x2bcdd3(0x12e)]);}['selectColumn'](_0x420b71){const _0x33f095=_0xd165de;return this[_0x33f095(0x134)](_0x420b71,0x1);}[_0xd165de(0x134)](_0x357d36,_0x132c3e=0x1){const _0xeaf3c6=_0xd165de;return this[_0xeaf3c6(0x1a2)](this[_0xeaf3c6(0x1cc)](_0x357d36,_0x132c3e),_0x58310d[_0xeaf3c6(0x1ad)]['Column']);}[_0xd165de(0x123)](_0x58bf8d,_0x812d55){const _0x32d01f=_0xd165de;return this[_0x32d01f(0x1a2)](this[_0x32d01f(0x124)](_0x58bf8d,_0x812d55),_0x58310d[_0x32d01f(0x1ad)]['Cell']);}[_0xd165de(0x1a2)](_0x1643cc,_0x5e1038=_0x58310d[_0xd165de(0x1ad)][_0xd165de(0x158)]){const _0x3f9cbb=_0xd165de;return this[_0x3f9cbb(0x17e)][_0x3f9cbb(0x1bf)](_0x58310d['DocsTableSelectionService'])[_0x3f9cbb(0x139)]({..._0x1643cc,'kind':_0x5e1038,'segmentId':this[_0x3f9cbb(0x1b4)],'tableId':this[_0x3f9cbb(0x1b2)]}),!0x0;}[_0xd165de(0x16d)](_0x4d0788){const _0x551597=_0xd165de;return this[_0x551597(0x1c4)](_0x4d0788,0x1);}[_0xd165de(0x1b7)](_0x172ce5){const _0x205fda=_0xd165de;return this[_0x205fda(0x137)](_0x172ce5,0x1);}['insertRowsBefore'](_0x264a91,_0x14f0a8){const _0x2b1869=_0xd165de;let _0xa3e762=this[_0x2b1869(0x199)](),_0x3b16e7=(0x0,_0x58310d['buildInsertTableRowsMutationActions'])(_0xa3e762,this['_tableId'],_0x264a91,_0x14f0a8,_0x58310d[_0x2b1869(0x13d)][_0x2b1869(0x15f)],this[_0x2b1869(0x168)]());return _0x3b16e7?this[_0x2b1869(0x1c7)](_0xa3e762,_0x3b16e7[_0x2b1869(0x127)]):!0x1;}[_0xd165de(0x137)](_0x167eb8,_0x42afbd){const _0x488901=_0xd165de;let _0x20c680=this['_getDocumentData'](),_0x2655b3=(0x0,_0x58310d['buildInsertTableRowsMutationActions'])(_0x20c680,this[_0x488901(0x1b2)],_0x167eb8,_0x42afbd,_0x58310d[_0x488901(0x13d)][_0x488901(0x188)],this[_0x488901(0x168)]());return _0x2655b3?this['_mutateActions'](_0x20c680,_0x2655b3[_0x488901(0x127)]):!0x1;}[_0xd165de(0x157)](){const _0x23c4be=_0xd165de;return this[_0x23c4be(0x137)](Math['max'](0x0,this[_0x23c4be(0x16b)]()-0x1),0x1);}['insertColumnBefore'](_0x5612d8){const _0x1004d5=_0xd165de;return this[_0x1004d5(0x132)](_0x5612d8,0x1);}[_0xd165de(0x1df)](_0x2aa274){const _0x488bc9=_0xd165de;return this[_0x488bc9(0x14a)](_0x2aa274,0x1);}[_0xd165de(0x132)](_0x5e6511,_0x2dc18e){const _0x58fc95=_0xd165de;let _0x1f1779=this[_0x58fc95(0x199)](),_0x118097=(0x0,_0x58310d[_0x58fc95(0x1e9)])(_0x1f1779,this[_0x58fc95(0x1b2)],_0x5e6511,_0x2dc18e,_0x58310d[_0x58fc95(0x13d)]['Left'],{'bodyPath':this['_getBodyPath']()});return _0x118097?this[_0x58fc95(0x1c7)](_0x1f1779,_0x118097[_0x58fc95(0x127)]):!0x1;}[_0xd165de(0x14a)](_0x348677,_0x3c5915){const _0x54dd83=_0xd165de;let _0xaed82c=this['_getDocumentData'](),_0x374307=(0x0,_0x58310d[_0x54dd83(0x1e9)])(_0xaed82c,this[_0x54dd83(0x1b2)],_0x348677,_0x3c5915,_0x58310d[_0x54dd83(0x13d)]['Right'],{'bodyPath':this[_0x54dd83(0x168)]()});return _0x374307?this['_mutateActions'](_0xaed82c,_0x374307[_0x54dd83(0x127)]):!0x1;}[_0xd165de(0x1cf)](){const _0x30320a=_0xd165de;return this[_0x30320a(0x14a)](Math[_0x30320a(0x15e)](0x0,this['getColumnCount']()-0x1),0x1);}[_0xd165de(0x191)](_0x17dba5){const _0x6e4b51=_0xd165de;return this[_0x6e4b51(0x1e4)](_0x17dba5,0x1);}['deleteRows'](_0x59e20c,_0x800f01=0x1){const _0x3c3b2d=_0xd165de;return!!this['_commandService'][_0x3c3b2d(0x198)](_0x58310d[_0x3c3b2d(0x1b1)]['id'],{'endRow':_0x59e20c+_0x800f01-0x1,'segmentId':this[_0x3c3b2d(0x1b4)],'startRow':_0x59e20c,'tableId':this['_tableId'],'unitId':this['_unitId']});}[_0xd165de(0x1a5)](_0x758354){const _0x36228b=_0xd165de;return this[_0x36228b(0x13f)](_0x758354,0x1);}['deleteColumns'](_0x13bbc6,_0x169c64=0x1){const _0x3762c7=_0xd165de;return!!this[_0x3762c7(0x1e5)][_0x3762c7(0x198)](_0x58310d[_0x3762c7(0x180)]['id'],{'endColumn':_0x13bbc6+_0x169c64-0x1,'segmentId':this[_0x3762c7(0x1b4)],'startColumn':_0x13bbc6,'tableId':this['_tableId'],'unitId':this[_0x3762c7(0x1d5)]});}[_0xd165de(0x19a)](){const _0x31743f=_0xd165de;return!!this[_0x31743f(0x1e5)][_0x31743f(0x198)](_0x58310d[_0x31743f(0x18c)]['id'],{'segmentId':this[_0x31743f(0x1b4)],'tableId':this[_0x31743f(0x1b2)],'unitId':this[_0x31743f(0x1d5)]});}[_0xd165de(0x19d)](_0x338ea3,_0x4e049f){const _0x25190e=_0xd165de;let _0x3176fe=this['_getDocumentData']();return this['_mutateActions'](_0x3176fe,(0x0,_0x58310d[_0x25190e(0x15c)])(_0x3176fe,this[_0x25190e(0x1b2)],_0x338ea3,_0x4e049f));}['moveTableToOffset'](_0xaaa299){const _0x4113c9=_0xd165de;let _0x45d0d7=this[_0x4113c9(0x199)]();return this[_0x4113c9(0x1c7)](_0x45d0d7,(0x0,_0x58310d[_0x4113c9(0x146)])(_0x45d0d7,this[_0x4113c9(0x1b2)],_0xaaa299,this[_0x4113c9(0x168)]()));}['moveRow'](_0x523d88,_0x3df9f5,_0x19343a=_0x58310d['DocsTableInsertPosition'][_0xd165de(0x15f)]){const _0x5664ee=_0xd165de;return this[_0x5664ee(0x192)](_0x523d88,0x1,_0x3df9f5,_0x19343a);}[_0xd165de(0x192)](_0xebcf37,_0x56522d,_0x2c10af,_0xbcb9e2=_0x58310d['DocsTableInsertPosition'][_0xd165de(0x15f)]){const _0x3c2336=_0xd165de;let _0x371897=this[_0x3c2336(0x199)](),_0x47f12a=(0x0,_0x58310d['buildMoveTableRowsMutationActions'])(_0x371897,this[_0x3c2336(0x1b2)],_0xebcf37,_0x2c10af,_0x56522d,_0xbcb9e2,this[_0x3c2336(0x168)]());return _0x47f12a?this[_0x3c2336(0x1c7)](_0x371897,_0x47f12a[_0x3c2336(0x127)]):!0x1;}['moveColumn'](_0x4ec449,_0x5b14c5,_0x297e70=_0x58310d[_0xd165de(0x13d)][_0xd165de(0x113)]){const _0x53cd11=_0xd165de;return this[_0x53cd11(0x1cd)](_0x4ec449,0x1,_0x5b14c5,_0x297e70);}['moveColumns'](_0x180e1a,_0x224f3d,_0x44336e,_0x5c80ec=_0x58310d[_0xd165de(0x13d)][_0xd165de(0x113)]){const _0x2446a6=_0xd165de;let _0x55c7b8=this[_0x2446a6(0x199)](),_0x194df7=(0x0,_0x58310d[_0x2446a6(0x190)])(_0x55c7b8,this['_tableId'],_0x180e1a,_0x44336e,_0x224f3d,_0x5c80ec,this['_getBodyPath']());return _0x194df7?this[_0x2446a6(0x1c7)](_0x55c7b8,_0x194df7['actions']):!0x1;}[_0xd165de(0x1e1)](_0x510854){const _0x4f5239=_0xd165de;try{let _0x39a291=this[_0x4f5239(0x199)](),_0x202e95=(0x0,_0x58310d['buildMergeCellsMutationActions'])({'documentData':_0x39a291,'tableId':this['_tableId'],..._0x510854});return _0x202e95?this['_mutateActions'](_0x39a291,_0x202e95[_0x4f5239(0x127)],_0x510854):!0x1;}catch{return!0x1;}}[_0xd165de(0x11e)](_0x2fd619){const _0x10e262=_0xd165de;try{let _0x3c5902=this['_getDocumentData'](),_0x1fa209=(0x0,_0x58310d[_0x10e262(0x12c)])({'documentData':_0x3c5902,'tableId':this[_0x10e262(0x1b2)],..._0x2fd619});return _0x1fa209?this['_mutateActions'](_0x3c5902,_0x1fa209['actions'],_0x2fd619):!0x1;}catch{return!0x1;}}[_0xd165de(0x183)](_0x2d4d10,_0xda90fe,_0x46e9c8){const _0x5e2cbb=_0xd165de;let _0x6980f4=this[_0x5e2cbb(0x199)](),_0x3813e2=(0x0,_0x58310d[_0x5e2cbb(0x1dc)])(this[_0x5e2cbb(0x13b)][_0x5e2cbb(0x145)]()[_0x5e2cbb(0x179)](),this[_0x5e2cbb(0x1b4)]);return this['_mutateActions'](_0x6980f4,(0x0,_0x58310d['buildSetTableCellTextMutationActions'])({'documentData':_0x6980f4,'tableId':this[_0x5e2cbb(0x1b2)],'row':_0x2d4d10,'column':_0xda90fe,'text':_0x46e9c8},_0x3813e2),this['getCellRange'](_0x2d4d10,_0xda90fe));}[_0xd165de(0x1c3)](_0x5cab37,_0x330264){const _0x57d845=_0xd165de;let _0x37e0e9=this[_0x57d845(0x199)]();return this['_mutateActions'](_0x37e0e9,(0x0,_0x58310d[_0x57d845(0x175)])(_0x37e0e9,{'tableId':this['_tableId'],..._0x5cab37,'value':_0x330264}),_0x5cab37);}[_0xd165de(0x1dd)](_0x5df692,_0x403c54){const _0x14ec4c=_0xd165de;let _0x49407d=this[_0x14ec4c(0x199)]();return this[_0x14ec4c(0x1c7)](_0x49407d,(0x0,_0x58310d['buildSetTableCellMarginMutationActions'])({'documentData':_0x49407d,'tableId':this[_0x14ec4c(0x1b2)],..._0x5df692,'margin':_0x403c54}),_0x5df692);}['setDefaultCellMargin'](_0xce3476){const _0x5bb631=_0xd165de;let _0x2512f7=this[_0x5bb631(0x199)]();return this['_mutateActions'](_0x2512f7,(0x0,_0x58310d[_0x5bb631(0x159)])(_0x2512f7,this['_tableId'],_0xce3476));}['setBorder'](_0x30beb3,_0x225c98){const _0x5465db=_0xd165de;let _0x2c3498=this['_getDocumentData']();return this['_mutateActions'](_0x2c3498,(0x0,_0x58310d['buildSetTableBorderMutationActions'])({'documentData':_0x2c3498,'tableId':this[_0x5465db(0x1b2)],..._0x30beb3,'preset':_0x225c98[_0x5465db(0x16c)]??_0x58310d[_0x5465db(0x12a)][_0x5465db(0x149)],'border':_0x225c98[_0x5465db(0x11a)]??{'color':{'rgb':_0x225c98[_0x5465db(0x18f)]??'#1f1f1f'},'width':{'v':_0x225c98[_0x5465db(0x1bc)]??0x1},'dashStyle':_0x3f9f18['DashStyleType'][_0x5465db(0x165)]}}),_0x30beb3);}['setTableBackground'](_0x1ff088){const _0x19cfad=_0xd165de;return this[_0x19cfad(0x1c3)](this[_0x19cfad(0x15a)](),_0x1ff088);}[_0xd165de(0x166)](_0x124848){const _0x1ec2fe=_0xd165de;return this[_0x1ec2fe(0x15d)](this[_0x1ec2fe(0x15a)](),_0x124848);}[_0xd165de(0x1d3)](_0x1ea1c9){const _0x14af3e=_0xd165de;let _0x5e8bec=!_0x1ea1c9['backgroundColor']||this[_0x14af3e(0x185)](_0x1ea1c9['backgroundColor']),_0xe068ad=!_0x1ea1c9['border']||this[_0x14af3e(0x166)](_0x1ea1c9[_0x14af3e(0x11a)]);return _0x5e8bec&&_0xe068ad;}[_0xd165de(0x194)](_0xe06b65,_0x55c0be,_0x472aa8=_0x3f9f18[_0xd165de(0x170)][_0xd165de(0x1b6)]){const _0x481587=_0xd165de;var _0x5bcb3e;let _0x51fa93=this[_0x481587(0x199)]();return(_0x5bcb3e=_0x51fa93[_0x481587(0x181)])!=null&&(_0x5bcb3e=_0x5bcb3e[this['_tableId']])!=null&&_0x5bcb3e[_0x481587(0x1bd)][_0xe06b65]?this[_0x481587(0x1c7)](_0x51fa93,(0x0,_0x58310d['buildResizeTableRowActionsFromHeight'])(_0x51fa93,this[_0x481587(0x1b2)],_0xe06b65,_0x55c0be,_0x472aa8)):!0x1;}[_0xd165de(0x12f)](_0x37aa86){const _0xba9b27=_0xd165de;var _0x30be02;let _0x1a8981=(_0x30be02=this[_0xba9b27(0x153)]())==null||(_0x30be02=_0x30be02['tableRows'][_0x37aa86])==null?void 0x0:_0x30be02[_0xba9b27(0x1a6)];return _0x1a8981?_0x3f9f18[_0xba9b27(0x116)][_0xba9b27(0x193)](_0x1a8981):null;}[_0xd165de(0x151)](_0x3fac88,_0x38860e){const _0x8f24fe=_0xd165de;var _0x5735a1;let _0x467b16=this[_0x8f24fe(0x199)]();return(_0x5735a1=_0x467b16['tableSource'])!=null&&(_0x5735a1=_0x5735a1[this[_0x8f24fe(0x1b2)]])!=null&&_0x5735a1[_0x8f24fe(0x14e)][_0x3fac88]?this[_0x8f24fe(0x1c7)](_0x467b16,(0x0,_0x58310d[_0x8f24fe(0x17d)])(_0x467b16,this[_0x8f24fe(0x1b2)],_0x3fac88,_0x38860e)):!0x1;}[_0xd165de(0x12b)](_0x1049b6=0x0,_0x47d20b=this['getRowCount']()){const _0x89d383=_0xd165de;let _0x385715=this['_getDocumentData']();return this[_0x89d383(0x1c7)](_0x385715,(0x0,_0x58310d[_0x89d383(0x1db)])(_0x385715,this[_0x89d383(0x1b2)],_0x1049b6,_0x1049b6+_0x47d20b-0x1));}[_0xd165de(0x10f)](_0x2f1d24=0x0,_0x2f81bb=this['getColumnCount']()){const _0xb4483e=_0xd165de;let _0x429171=this[_0xb4483e(0x199)]();return this['_mutateActions'](_0x429171,(0x0,_0x58310d[_0xb4483e(0x147)])(_0x429171,this['_tableId'],_0x2f1d24,_0x2f1d24+_0x2f81bb-0x1));}[_0xd165de(0x143)](){const _0x147758=_0xd165de;var _0x16cc71;return((_0x16cc71=this[_0x147758(0x1d4)]())==null?void 0x0:_0x16cc71[_0x147758(0x1d6)])??0x0;}[_0xd165de(0x161)](_0xbdb0fb){const _0x5ddfbf=_0xd165de;let _0x4f78fa=this[_0x5ddfbf(0x17e)]['get'](_0x58310d[_0x5ddfbf(0x1c0)]),_0x52c910=this[_0x5ddfbf(0x199)](),_0x133dbc=(0x0,_0x58310d[_0x5ddfbf(0x1bb)])(_0x52c910,this[_0x5ddfbf(0x1b2)],_0xbdb0fb);if(!_0x133dbc)return!0x1;let _0xb43f46=this[_0x5ddfbf(0x1c7)](_0x52c910,_0x133dbc[_0x5ddfbf(0x127)]);return _0xb43f46&&_0x4f78fa[_0x5ddfbf(0x161)](this[_0x5ddfbf(0x1d5)],this[_0x5ddfbf(0x1b2)],_0x133dbc['headerRowCount']),_0xb43f46;}[_0xd165de(0x174)](_0x3bb991){const _0x3efae8=_0xd165de;return this[_0x3efae8(0x161)](_0x3bb991);}['hasTitleRow'](){const _0x90934c=_0xd165de;var _0x3fae3a;return((_0x3fae3a=this['getMetadata']())==null?void 0x0:_0x3fae3a[_0x90934c(0x112)])??!0x1;}[_0xd165de(0x14f)](){const _0x89ad59=_0xd165de;let _0x38e100=this[_0x89ad59(0x17e)]['get'](_0x58310d[_0x89ad59(0x1c0)]),_0x2cdaea=this[_0x89ad59(0x199)](),_0xf6e6d4=(0x0,_0x58310d[_0x89ad59(0x1aa)])(_0x2cdaea,this[_0x89ad59(0x1b2)],this['_getBodyPath']());if(!_0xf6e6d4)return!0x1;let _0x41fe39=this[_0x89ad59(0x1c7)](_0x2cdaea,_0xf6e6d4[_0x89ad59(0x127)]);return _0x41fe39&&_0x38e100[_0x89ad59(0x1ac)](this[_0x89ad59(0x1d5)],this[_0x89ad59(0x1b2)],!0x0),_0x41fe39;}[_0xd165de(0x1af)](_0x455dd3,_0x411cf2){const _0x5571e6=_0xd165de;return this[_0x5571e6(0x17e)]['get'](_0x58310d[_0x5571e6(0x1c0)])['setColumnType'](this[_0x5571e6(0x1d5)],this[_0x5571e6(0x1b2)],_0x455dd3,_0x411cf2),!0x0;}['sortByColumn'](_0x4f4af9,_0xea9cf3){const _0x571f8c=_0xd165de;let _0x2b74e5=this[_0x571f8c(0x199)]();return this[_0x571f8c(0x1c7)](_0x2b74e5,(0x0,_0x58310d[_0x571f8c(0x1c1)])(_0x2b74e5,this[_0x571f8c(0x129)](),this[_0x571f8c(0x1b2)],_0x4f4af9,_0xea9cf3,this[_0x571f8c(0x168)]()));}['_getDocumentData'](){const _0x5c2229=_0xd165de;let _0x1230a4=this[_0x5c2229(0x13b)][_0x5c2229(0x145)]()[_0x5c2229(0x179)]();return this['_segmentId']?{...this['_document'][_0x5c2229(0x145)](this[_0x5c2229(0x1b4)])[_0x5c2229(0x179)](),'documentStyle':_0x1230a4[_0x5c2229(0x136)],'tableSource':_0x1230a4['tableSource']}:_0x1230a4;}[_0xd165de(0x129)](){const _0x4eb81d=_0xd165de;return this[_0x4eb81d(0x17e)]['get'](_0x58310d[_0x4eb81d(0x1c0)])['serialize'](this[_0x4eb81d(0x1d5)]);}[_0xd165de(0x168)](){const _0x3d13a4=_0xd165de;return(0x0,_0x58310d[_0x3d13a4(0x1dc)])(this[_0x3d13a4(0x13b)][_0x3d13a4(0x145)]()[_0x3d13a4(0x179)](),this[_0x3d13a4(0x1b4)]);}[_0xd165de(0x1c7)](_0x3d2edd,_0xc18043,_0x555b33){const _0x2af025=_0xd165de;return(0x0,_0x58310d[_0x2af025(0x11c)])(this[_0x2af025(0x1e5)],this[_0x2af025(0x1d5)],_0x3d2edd,_0xc18043,_0x555b33?{'tableId':this[_0x2af025(0x1b2)],'segmentId':this[_0x2af025(0x1b4)],..._0x555b33}:void 0x0);}};_0x3f11ea=_0xee9c16([_0x675219(0x3,_0x3f9f18['ICommandService']),_0x675219(0x4,(0x0,_0x3f9f18[_0xd165de(0x140)])(_0x3f9f18['Injector']))],_0x3f11ea);var _0x1c1e88=class extends _0xb0c2cf[_0xd165de(0x189)]{[_0xd165de(0x1a7)](_0x5228e9=''){const _0x3d7b2a=_0xd165de;return this[_0x3d7b2a(0x14d)](_0x5228e9)[_0x3d7b2a(0x178)](_0x54d915=>this[_0x3d7b2a(0x1a8)](_0x54d915['tableId'],_0x5228e9));}['getTable'](_0x425bc4,_0x134595=''){const _0x129d43=_0xd165de;return this['_getTables'](_0x134595)[_0x129d43(0x17a)](_0x26af25=>_0x26af25[_0x129d43(0x1ab)]===_0x425bc4)?this[_0x129d43(0x1a8)](_0x425bc4,_0x134595):null;}[_0xd165de(0x196)](_0x4c5aca,_0x8a843b=''){const _0x479a49=_0xd165de;var _0x3aa3f2;let _0x5c33fc=(_0x3aa3f2=this[_0x479a49(0x14d)](_0x8a843b)[_0x4c5aca])==null?void 0x0:_0x3aa3f2[_0x479a49(0x1ab)];return _0x5c33fc?this[_0x479a49(0x1a8)](_0x5c33fc,_0x8a843b):null;}[_0xd165de(0x135)](){const _0x47ecd6=_0xd165de;let _0x55956c=this[_0x47ecd6(0x17e)]['get'](_0x58310d[_0x47ecd6(0x126)])['getStableTableSelection']();return _0x55956c!=null&&_0x55956c[_0x47ecd6(0x1ab)]?this[_0x47ecd6(0x1a8)](_0x55956c['tableId'],_0x55956c[_0x47ecd6(0x122)]):null;}[_0xd165de(0x152)](_0xade655,_0x5d0efc=''){const _0xa16acd=_0xd165de;return this[_0xa16acd(0x148)](_0xade655,_0x5d0efc)[0x0]??null;}['findTables'](_0x4b4104,_0x41d5d9=''){const _0x310aff=_0xd165de;let _0x26ef69=this['_getTableDocumentData'](_0x41d5d9),_0x2d809e=typeof _0x4b4104=='string'?{'text':_0x4b4104}:_0x4b4104;return this[_0x310aff(0x1a7)](_0x41d5d9)[_0x310aff(0x114)](_0x5509da=>{const _0x52e4eb=_0x310aff;let _0x1342f7=_0x5509da[_0x52e4eb(0x13a)]();return!(_0x2d809e[_0x52e4eb(0x1ab)]&&_0x1342f7!==_0x2d809e[_0x52e4eb(0x1ab)]||_0x2d809e[_0x52e4eb(0x197)]&&!this[_0x52e4eb(0x1eb)](_0x26ef69,_0x1342f7,_0x2d809e[_0x52e4eb(0x197)])||_0x2d809e[_0x52e4eb(0x1d1)]&&!this[_0x52e4eb(0x182)](_0x5509da,0x0,_0x2d809e[_0x52e4eb(0x1d1)])||_0x2d809e[_0x52e4eb(0x1be)]&&!this['_rowContainsText'](_0x5509da,0x0,_0x2d809e[_0x52e4eb(0x1be)]));});}['insertTable'](_0x43090c,_0x2e0b16,_0x1d9812={}){const _0x1d27bf=_0xd165de;let _0x292705=this[_0x1d27bf(0x17e)][_0x1d27bf(0x1bf)](_0x3f9f18[_0x1d27bf(0x12d)]),_0x48a338=_0x1d9812[_0x1d27bf(0x1ab)]??(0x0,_0x3f9f18[_0x1d27bf(0x141)])(0x6);return _0x292705[_0x1d27bf(0x198)](_0x58310d['DocsTableInsertTableCommand']['id'],{..._0x1d9812,'unitId':this['getId'](),'rows':_0x43090c,'columns':_0x2e0b16,'tableId':_0x48a338})?this[_0x1d27bf(0x1a8)](_0x48a338,_0x1d9812[_0x1d27bf(0x122)]??''):null;}[_0xd165de(0x1c2)](_0x43e235,_0x514420={}){const _0x4dc857=_0xd165de;let _0x37610b=this[_0x4dc857(0x17e)][_0x4dc857(0x1bf)](_0x3f9f18[_0x4dc857(0x12d)]),_0x2ca6b7=_0x514420[_0x4dc857(0x1ab)]??(0x0,_0x3f9f18[_0x4dc857(0x141)])(0x6);return _0x37610b[_0x4dc857(0x198)](_0x58310d[_0x4dc857(0x11b)]['id'],{..._0x514420,'unitId':this[_0x4dc857(0x13a)](),'values':_0x43e235,'tableId':_0x2ca6b7})?this[_0x4dc857(0x1a8)](_0x2ca6b7,_0x514420['segmentId']??''):null;}[_0xd165de(0x14d)](_0x4db28=''){const _0x45302a=_0xd165de;let {tables:_0x4a8ed3=[]}=this[_0x45302a(0x138)](_0x4db28);return _0x4a8ed3;}['_getTableDocumentData'](_0x3355d4=''){const _0x42a175=_0xd165de;let _0x1490ec=this[_0x42a175(0x145)]()['getSnapshot']();return _0x3355d4?{...this[_0x42a175(0x145)](_0x3355d4)[_0x42a175(0x179)](),'documentStyle':_0x1490ec[_0x42a175(0x136)],'tableSource':_0x1490ec[_0x42a175(0x181)]}:_0x1490ec;}['_createFDocumentTable'](_0x523d7b,_0x1ddf88=''){const _0x115640=_0xd165de;return this['_injector'][_0x115640(0x14c)](_0x3f11ea,this,_0x523d7b,_0x1ddf88);}['_tableContainsText'](_0x1aa86e,_0x4f3ef9,_0x40538d){const _0x3b88e2=_0xd165de;var _0x121743;let _0x34aa7d=(0x0,_0x58310d[_0x3b88e2(0x1a9)])(_0x1aa86e,_0x4f3ef9);if(!_0x34aa7d)return!0x1;let _0x265bb2=(_0x121743=_0x1aa86e[_0x3b88e2(0x17f)])==null?void 0x0:_0x121743['dataStream'];return _0x265bb2?_0x265bb2[_0x3b88e2(0x169)](_0x34aa7d[_0x3b88e2(0x19b)],_0x34aa7d['endOffset'])[_0x3b88e2(0x1ea)](_0x40538d):!0x1;}[_0xd165de(0x182)](_0xd15312,_0x3f7bfc,_0x65b0df){const _0xec6c50=_0xd165de;return Array[_0xec6c50(0x1e3)]({'length':_0xd15312[_0xec6c50(0x10e)]()},(_0x588918,_0x45cb59)=>_0xd15312[_0xec6c50(0x155)](_0x3f7bfc,_0x45cb59))[_0xec6c50(0x17a)](_0x191526=>_0x191526['includes'](_0x65b0df));}};_0xb0c2cf[_0xd165de(0x189)]['extend'](_0x1c1e88),Object[_0xd165de(0x1c6)](_0x4554b2,_0xd165de(0x121),{'enumerable':!0x0,'get':function(){return _0x3f11ea;}}),_0x4554b2[_0xd165de(0x173)]=_0x527b77;}));