@univerjs-pro/docs-table 1.2.0 → 1.3.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.
@@ -0,0 +1,8 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import { TableAlignmentType } from '@univerjs/core';
3
+ export interface IDocsTableSetTableAlignCommandParams {
4
+ unitId: string;
5
+ tableId: string;
6
+ value: TableAlignmentType;
7
+ }
8
+ export declare const DocsTableSetTableAlignCommand: ICommand<IDocsTableSetTableAlignCommandParams>;
@@ -16,6 +16,7 @@ export { DocsTableResizeColumnCommand } from './commands/resize-column.command';
16
16
  export { DocsTableResizeRowCommand } from './commands/resize-row.command';
17
17
  export { DocsTableSetColumnTypeCommand } from './commands/set-column-type.command';
18
18
  export { DocsTableSetHeaderRowCountCommand } from './commands/set-header-row-count.command';
19
+ export { DocsTableSetTableAlignCommand } from './commands/set-table-align.command';
19
20
  export { buildSetTableBackgroundMutationActions, DocsTableSetTableBackgroundCommand } from './commands/set-table-background.command';
20
21
  export { DocsTableSetTableBorderColorCommand } from './commands/set-table-border-color.command';
21
22
  export { DocsTableSetTableBorderStyleCommand } from './commands/set-table-border-style.command';
@@ -1,5 +1,5 @@
1
- import type { IUniverDocsTableConfig } from './config/config';
2
1
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import type { IUniverDocsTableConfig } from './config/config';
3
3
  export declare class UniverDocsTablePlugin extends Plugin {
4
4
  private readonly _config;
5
5
  readonly _injector: Injector;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4ba7(){const _0x3c543c=['@univerjs/core','10uMVxtI','moveTableToOffset','insertColumnAfter','getSource','some','Inject','endOffset','selectRow','getRowIndex','_getTableDocumentData','insertTable','includes','DocsTableSelectionService','buildSetTableCellMarginMutationActions','string','getMarginOverride','titleRow','Right','DocsTableBorderPreset','AT_LEAST','getSegmentId','Row','getBody','appendRow','getMargin','setCellBackground','getRowsRange','type','backgroundColor','_rowContainsText','3AAHtEz','SOLID','DocsTableColumnInsertPosition','buildMergeCellsMutationActions','width','1015062ZOAZIi','text','moveColumns','DocsTableDeleteTableCommand','DashStyleType','getColumnRange','DocsTableDeleteRowsCommand','size','headerText','preset','DocsTableRowInsertPosition','setColumnType','FDocumentTable','_tableId','map','moveColumn','_table','distributeRows','Column','_getDocumentData','tableRows','setTableStyle','buildInsertTableColumnsMutationActions','getTableAt','buildSetTableHeaderRowCountMutationActions','getColumnIndex','_row','headerRowCount','pinHeaderRows','insertTableFromData','buildSortTableMutationActions','appendColumn','buildDistributeTableRowsMutationActions','UniverDocsFacade','buildDistributeTableColumnsMutationActions','getRowCount','cells','serializeDocument','slice','Tools','getTableActionBodyPath','_injector','getRowHeight','selectRange','toStringTag','buildMoveTableColumnsMutationActions','_unitId','setRowHeight','symbol','_tableContainsText','setStructuralSelection','extend','DocsTableInsertTableCommand','tableSource','selectTable','10iXaeFB','408812OvuNaO','gray.900','deleteColumns','insertRowBefore','call','buildResizeTableColumnActionsFromWidth','mergeCells','buildSetTableDefaultCellMarginMutationActions','compose','getDefaultCellMargin','getCellText','@univerjs-pro/docs-table','replace','setCellMargin','getCellContentRange','moveTableBy','setTableBorder','get','moveRow','_createFDocumentTable','464630vzNDQw','buildUnmergeCellsMutationActions','getTables','Above','tableCells','insertColumnsBefore','cellMargin','JSONX','getColorFromTheme','1389087zJAFIs','color','createInstance','documentStyle','tableId','274545WhSdWh','DocsTableSortDirection','border','deepClone','DocsTableModel','function','selectRows','insertRowAfter','distributeColumns','getColumnCount','_column','actions','buildMoveTableToOffsetMutationActions','_serializeModel','_document','Cell','_getBodyPath','getRowRange','ThemeService','DocsTableInsertPosition','decorate','startOffset','moveRows','findTableByText','@univerjs/core/facade','object','getTableRangeById','filter','findTables','FDocumentTableCell','resolveTableMetadata','buildInsertTableTitleRowMutationActions','tableColumns','1451373FlzvxV','DocsTableDeleteColumnsCommand','getOwnPropertyDescriptor','buildInsertTableRowsMutationActions','setCellText','DocsTableColumnType','ICommandService','buildMoveFloatingTableMutationActions','_commandService','FEnum','getCellInsertOffset','getDocumentDataModel','length','UniverProDocsTable','deleteRows','body','buildSetTableBackgroundMutationActions','insertColumnsAfter','dataStream','getCellRange','getInsertOffset','DocsTableSelectionKind','_buildBorderActions','getTableRange','max','getColumnsRange','Left','selectColumns','@univerjs/docs/facade','getTable','getTableAtSelection','from','exports','segmentId','buildSetTableBorderMutationActions','getSnapshot','sortByColumn','1734376PidzEu','DocsTableInsertTablePosition','getRange','insertRowsBefore','constructor','_mutateActions','clearMarginOverride','columnTypes','Injector','insertRowsAfter','toPrimitive','_getTables','syncExecuteCommand','setMargin','insertColumnBefore','generateRandomId','setBorder','rows','unmergeCells','_segmentId','getId','DEFAULT_DOCS_TABLE_CELL_MARGIN','getMetadata','getCellMarginOverride','setBackgroundColor','executeRichTextTableActions','setTableBackground','defineProperty','deleteRow','trHeight'];_0x4ba7=function(){return _0x3c543c;};return _0x4ba7();}function _0x5a67(_0x1d61ed,_0x29fa8c){_0x1d61ed=_0x1d61ed-0x106;const _0x4ba71f=_0x4ba7();let _0x5a6775=_0x4ba71f[_0x1d61ed];return _0x5a6775;}(function(_0x473398,_0x4eb9de){const _0x58cc7d=_0x5a67,_0x5526f2=_0x473398();while(!![]){try{const _0x4864f1=-parseInt(_0x58cc7d(0x10b))/0x1+parseInt(_0x58cc7d(0x1df))/0x2*(parseInt(_0x58cc7d(0x18e))/0x3)+-parseInt(_0x58cc7d(0x1cb))/0x4*(-parseInt(_0x58cc7d(0x170))/0x5)+-parseInt(_0x58cc7d(0x193))/0x6+parseInt(_0x58cc7d(0x12c))/0x7+-parseInt(_0x58cc7d(0x151))/0x8+parseInt(_0x58cc7d(0x106))/0x9*(parseInt(_0x58cc7d(0x1ca))/0xa);if(_0x4864f1===_0x4eb9de)break;else _0x5526f2['push'](_0x5526f2['shift']());}catch(_0x1bdbaf){_0x5526f2['push'](_0x5526f2['shift']());}}}(_0x4ba7,0x21a9c),function(_0x3591f4,_0x159244){const _0x7bc642=_0x5a67;typeof exports==_0x7bc642(0x124)&&typeof module<'u'?_0x159244(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x7bc642(0x110)&&define['amd']?define([_0x7bc642(0x14c),_0x7bc642(0x1d6),_0x7bc642(0x16f),_0x7bc642(0x123),_0x7bc642(0x148)],_0x159244):(_0x3591f4=typeof globalThis<'u'?globalThis:_0x3591f4||self,_0x159244(_0x3591f4['UniverProDocsTableFacade']={},_0x3591f4[_0x7bc642(0x139)],_0x3591f4['UniverCore'],_0x3591f4['UniverCoreFacade'],_0x3591f4[_0x7bc642(0x1b4)]));}(this,function(_0x245454,_0x530f09,_0x35d6ba,_0x3b1296,_0x1d09dc){const _0x547399=_0x5a67;Object[_0x547399(0x16c)](_0x245454,Symbol[_0x547399(0x1bf)],{'value':'Module'});var _0x22189d=class extends _0x3b1296[_0x547399(0x135)]{get[_0x547399(0x152)](){const _0x3469fc=_0x547399;return _0x530f09[_0x3469fc(0x152)];}get[_0x547399(0x131)](){const _0xddb2fa=_0x547399;return _0x530f09[_0xddb2fa(0x131)];}get['DocsTableSelectionKind'](){const _0x5dcb84=_0x547399;return _0x530f09[_0x5dcb84(0x141)];}get[_0x547399(0x19d)](){return _0x530f09['DocsTableRowInsertPosition'];}get[_0x547399(0x190)](){const _0x273926=_0x547399;return _0x530f09[_0x273926(0x190)];}get[_0x547399(0x182)](){const _0x25a218=_0x547399;return _0x530f09[_0x25a218(0x182)];}get[_0x547399(0x10c)](){const _0x3574e2=_0x547399;return _0x530f09[_0x3574e2(0x10c)];}get[_0x547399(0x197)](){const _0x3c1fde=_0x547399;return _0x35d6ba[_0x3c1fde(0x197)];}};_0x3b1296[_0x547399(0x135)][_0x547399(0x1c6)](_0x22189d);var _0x3b7848=class{constructor(_0x4e2648,_0x427dc7,_0x4d372b){const _0x411207=_0x547399;this[_0x411207(0x1a3)]=_0x4e2648,this['_row']=_0x427dc7,this[_0x411207(0x115)]=_0x4d372b;}[_0x547399(0x149)](){const _0x36aec8=_0x547399;return this[_0x36aec8(0x1a3)];}[_0x547399(0x178)](){const _0x45c667=_0x547399;return this[_0x45c667(0x1ad)];}[_0x547399(0x1ac)](){const _0x46aa7c=_0x547399;return this[_0x46aa7c(0x115)];}['getText'](){const _0x372192=_0x547399;return this[_0x372192(0x1a3)][_0x372192(0x1d5)](this[_0x372192(0x1ad)],this[_0x372192(0x115)]);}['getContentRange'](){const _0x560bd6=_0x547399;return this[_0x560bd6(0x1a3)][_0x560bd6(0x1d9)](this[_0x560bd6(0x1ad)],this['_column']);}[_0x547399(0x140)](){const _0x1ac599=_0x547399;return this[_0x1ac599(0x1a3)][_0x1ac599(0x136)](this[_0x1ac599(0x1ad)],this[_0x1ac599(0x115)]);}[_0x547399(0x188)](){const _0x57fc18=_0x547399;return this[_0x57fc18(0x1a3)]['getCellMargin'](this[_0x57fc18(0x1ad)],this['_column']);}[_0x547399(0x17f)](){const _0x545b68=_0x547399;return this[_0x545b68(0x1a3)][_0x545b68(0x168)](this[_0x545b68(0x1ad)],this[_0x545b68(0x115)]);}[_0x547399(0x15e)](_0x1f9bc9){const _0x59471a=_0x547399;return this[_0x59471a(0x1a3)]['setCellMargin'](this[_0x59471a(0x1a3)]['getCellRange'](this[_0x59471a(0x1ad)],this[_0x59471a(0x115)]),_0x1f9bc9);}[_0x547399(0x157)](){const _0x3eac18=_0x547399;return this[_0x3eac18(0x1a3)][_0x3eac18(0x1d8)](this[_0x3eac18(0x1a3)]['getCellRange'](this[_0x3eac18(0x1ad)],this[_0x3eac18(0x115)]),null);}['setText'](_0x48c939){const _0x49bf55=_0x547399;return this[_0x49bf55(0x1a3)]['setCellText'](this[_0x49bf55(0x1ad)],this[_0x49bf55(0x115)],_0x48c939);}[_0x547399(0x169)](_0x371731){const _0x3ca567=_0x547399;return this[_0x3ca567(0x1a3)][_0x3ca567(0x189)](this['_table'][_0x3ca567(0x13f)](this['_row'],this['_column']),_0x371731);}[_0x547399(0x161)](_0x37192b){const _0x3b2543=_0x547399;return this[_0x3b2543(0x1a3)][_0x3b2543(0x161)](this[_0x3b2543(0x1a3)][_0x3b2543(0x13f)](this[_0x3b2543(0x1ad)],this[_0x3b2543(0x115)]),_0x37192b);}['mergeTo'](_0x51d91b,_0x4f1e34){const _0x26d17d=_0x547399;return this[_0x26d17d(0x1a3)][_0x26d17d(0x1d1)]({'startRow':this[_0x26d17d(0x1ad)],'startColumn':this[_0x26d17d(0x115)],'endRow':this[_0x26d17d(0x1ad)]+_0x51d91b-0x1,'endColumn':this[_0x26d17d(0x115)]+_0x4f1e34-0x1});}['unmerge'](){const _0x5d592b=_0x547399;return this[_0x5d592b(0x1a3)][_0x5d592b(0x163)](this['_table'][_0x5d592b(0x13f)](this['_row'],this['_column']));}};function _0x5f27e3(_0x2cfc8a){'@babel/helpers - typeof';const _0x1ca03e=_0x547399;return _0x5f27e3=typeof Symbol==_0x1ca03e(0x110)&&typeof Symbol['iterator']==_0x1ca03e(0x1c3)?function(_0x5ccd14){return typeof _0x5ccd14;}:function(_0x579e2c){const _0x3eb934=_0x1ca03e;return _0x579e2c&&typeof Symbol=='function'&&_0x579e2c[_0x3eb934(0x155)]===Symbol&&_0x579e2c!==Symbol['prototype']?_0x3eb934(0x1c3):typeof _0x579e2c;},_0x5f27e3(_0x2cfc8a);}function _0xc52e15(_0x342d79,_0x35ebb3){const _0x21b150=_0x547399;if(_0x5f27e3(_0x342d79)!=_0x21b150(0x124)||!_0x342d79)return _0x342d79;var _0xe7b847=_0x342d79[Symbol[_0x21b150(0x15b)]];if(_0xe7b847!==void 0x0){var _0x1ba3ec=_0xe7b847[_0x21b150(0x1cf)](_0x342d79,_0x35ebb3||'default');if(_0x5f27e3(_0x1ba3ec)!=_0x21b150(0x124))return _0x1ba3ec;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x35ebb3==='string'?String:Number)(_0x342d79);}function _0x3f07a8(_0x32523f){const _0x10a5b7=_0x547399;var _0x291164=_0xc52e15(_0x32523f,_0x10a5b7(0x17e));return _0x5f27e3(_0x291164)==_0x10a5b7(0x1c3)?_0x291164:_0x291164+'';}function _0x29a9f9(_0xcf2945,_0xa0e450,_0x3381da){const _0x289bfa=_0x547399;return(_0xa0e450=_0x3f07a8(_0xa0e450))in _0xcf2945?Object[_0x289bfa(0x16c)](_0xcf2945,_0xa0e450,{'value':_0x3381da,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf2945[_0xa0e450]=_0x3381da,_0xcf2945;}function _0x473624(_0x202859,_0x44f043){return function(_0x50312b,_0x37dda1){_0x44f043(_0x50312b,_0x37dda1,_0x202859);};}function _0x4e3f4f(_0x42da5d,_0x3be51d,_0x2bab48,_0x511388){const _0x590954=_0x547399;var _0x4ba8d2=arguments[_0x590954(0x138)],_0x5020b1=_0x4ba8d2<0x3?_0x3be51d:_0x511388===null?_0x511388=Object[_0x590954(0x12e)](_0x3be51d,_0x2bab48):_0x511388,_0x4c0698;if(typeof Reflect==_0x590954(0x124)&&typeof Reflect[_0x590954(0x11f)]==_0x590954(0x110))_0x5020b1=Reflect['decorate'](_0x42da5d,_0x3be51d,_0x2bab48,_0x511388);else{for(var _0x11fab4=_0x42da5d[_0x590954(0x138)]-0x1;_0x11fab4>=0x0;_0x11fab4--)(_0x4c0698=_0x42da5d[_0x11fab4])&&(_0x5020b1=(_0x4ba8d2<0x3?_0x4c0698(_0x5020b1):_0x4ba8d2>0x3?_0x4c0698(_0x3be51d,_0x2bab48,_0x5020b1):_0x4c0698(_0x3be51d,_0x2bab48))||_0x5020b1);}return _0x4ba8d2>0x3&&_0x5020b1&&Object[_0x590954(0x16c)](_0x3be51d,_0x2bab48,_0x5020b1),_0x5020b1;}let _0xb5b7cc=class{constructor(_0x54e1eb,_0x578aa4,_0x3001a5,_0x1c7eb2,_0x355705){const _0x2147a9=_0x547399;this['_document']=_0x54e1eb,this[_0x2147a9(0x1a0)]=_0x578aa4,this[_0x2147a9(0x164)]=_0x3001a5,this[_0x2147a9(0x134)]=_0x1c7eb2,this[_0x2147a9(0x1bc)]=_0x355705,_0x29a9f9(this,'_unitId',void 0x0),this[_0x2147a9(0x1c1)]=this[_0x2147a9(0x119)]['getId']();}[_0x547399(0x165)](){const _0x475693=_0x547399;return this[_0x475693(0x1a0)];}[_0x547399(0x184)](){const _0x5be561=_0x547399;return this[_0x5be561(0x164)];}['getInfo'](){const _0x404584=_0x547399;return{'id':this[_0x404584(0x1a0)],'rowCount':this[_0x404584(0x1b6)](),'columnCount':this[_0x404584(0x114)](),'metadata':this[_0x404584(0x167)](),'source':this[_0x404584(0x173)]()};}['describe'](){const _0x110969=_0x547399;let _0x39c36b=this[_0x110969(0x167)](),_0x56f38b=this[_0x110969(0x173)](),_0x3b3c1d=this['getColumnCount']();return{'id':this[_0x110969(0x1a0)],'rowCount':this['getRowCount'](),'columnCount':_0x3b3c1d,'headerRowCount':(_0x39c36b==null?void 0x0:_0x39c36b[_0x110969(0x1ae)])??0x0,'titleRow':(_0x39c36b==null?void 0x0:_0x39c36b[_0x110969(0x180)])??!0x1,'columns':Array[_0x110969(0x14b)]({'length':_0x3b3c1d},(_0x56702b,_0x1b25a0)=>{const _0x37631d=_0x110969;var _0x3fb648,_0x492b24;return{'index':_0x1b25a0,'type':_0x39c36b==null||(_0x3fb648=_0x39c36b[_0x37631d(0x158)])==null||(_0x3fb648=_0x3fb648[_0x1b25a0])==null?void 0x0:_0x3fb648[_0x37631d(0x18b)],'width':_0x56f38b==null||(_0x492b24=_0x56f38b[_0x37631d(0x12b)][_0x1b25a0])==null?void 0x0:_0x492b24[_0x37631d(0x19a)][_0x37631d(0x192)]['v']};}),'sampleRows':Array[_0x110969(0x14b)]({'length':this[_0x110969(0x1b6)]()},(_0x310fb3,_0x730ad3)=>Array[_0x110969(0x14b)]({'length':_0x3b3c1d},(_0x331f2a,_0xca01d8)=>this[_0x110969(0x1d5)](_0x730ad3,_0xca01d8)))['filter'](_0x51c72a=>_0x51c72a[_0x110969(0x174)](_0x45c349=>_0x45c349[_0x110969(0x138)]>0x0))[_0x110969(0x1b9)](0x0,0x5)};}['getRowCount'](){const _0x5a715a=_0x547399;var _0x2a449c;return((_0x2a449c=this[_0x5a715a(0x173)]())==null?void 0x0:_0x2a449c[_0x5a715a(0x1a7)][_0x5a715a(0x138)])??0x0;}[_0x547399(0x114)](){const _0x45264c=_0x547399;var _0x42344a;return((_0x42344a=this['getSource']())==null?void 0x0:_0x42344a[_0x45264c(0x12b)][_0x45264c(0x138)])??0x0;}['getCell'](_0x58e682,_0x37c6ff){const _0xcb9fcb=_0x547399;var _0x19e8ad;return(_0x19e8ad=this[_0xcb9fcb(0x173)]())!=null&&(_0x19e8ad=_0x19e8ad[_0xcb9fcb(0x1a7)][_0x58e682])!=null&&_0x19e8ad['tableCells'][_0x37c6ff]?this[_0xcb9fcb(0x1bc)]['createInstance'](_0x3b7848,this,_0x58e682,_0x37c6ff):null;}[_0x547399(0x1d5)](_0x4379da,_0x4c5a64){const _0xa96bbd=_0x547399;var _0x472ef7,_0x2a5378;let _0xd5ef1d=(_0x472ef7=(0x0,_0x530f09[_0xa96bbd(0x125)])(this[_0xa96bbd(0x1a6)](),this[_0xa96bbd(0x1a0)]))==null||(_0x472ef7=_0x472ef7[_0xa96bbd(0x162)][_0x4379da])==null?void 0x0:_0x472ef7[_0xa96bbd(0x1b7)][_0x4c5a64];return _0xd5ef1d?((_0x2a5378=this[_0xa96bbd(0x1a6)]()[_0xa96bbd(0x13b)])==null?void 0x0:_0x2a5378[_0xa96bbd(0x13e)]['slice'](_0xd5ef1d['startOffset']+0x1,_0xd5ef1d['endOffset'])[_0xa96bbd(0x1d7)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x1b41dc,_0x386f08){const _0x13d969=_0x547399;var _0x2fc810;let _0x4d18c6=this['getSource'](),_0x556a81=_0x4d18c6==null||(_0x2fc810=_0x4d18c6[_0x13d969(0x1a7)][_0x1b41dc])==null?void 0x0:_0x2fc810[_0x13d969(0x1e3)][_0x386f08];return _0x556a81?_0x35d6ba[_0x13d969(0x1ba)][_0x13d969(0x10e)](_0x556a81['margin']??_0x4d18c6[_0x13d969(0x1e5)]??_0x530f09[_0x13d969(0x166)]):null;}['getCellMarginOverride'](_0x38ffc2,_0x4f7d){const _0x3d9bf9=_0x547399;var _0x3cf373;let _0x128c90=(_0x3cf373=this[_0x3d9bf9(0x173)]())==null||(_0x3cf373=_0x3cf373[_0x3d9bf9(0x1a7)][_0x38ffc2])==null?void 0x0:_0x3cf373[_0x3d9bf9(0x1e3)][_0x4f7d];return _0x128c90!=null&&_0x128c90['margin']?_0x35d6ba['Tools']['deepClone'](_0x128c90['margin']):null;}[_0x547399(0x1d4)](){const _0x39a3ea=_0x547399;var _0x260298;return _0x35d6ba[_0x39a3ea(0x1ba)][_0x39a3ea(0x10e)](((_0x260298=this['getSource']())==null?void 0x0:_0x260298[_0x39a3ea(0x1e5)])??_0x530f09['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}['getDefaultCellMarginOverride'](){const _0x325110=_0x547399;var _0x467f44;let _0x4d5dd8=(_0x467f44=this[_0x325110(0x173)]())==null?void 0x0:_0x467f44[_0x325110(0x1e5)];return _0x4d5dd8?_0x35d6ba[_0x325110(0x1ba)][_0x325110(0x10e)](_0x4d5dd8):null;}[_0x547399(0x167)](){const _0x216dd2=_0x547399;let _0x4327b5=this['_injector'][_0x216dd2(0x1dc)](_0x530f09['DocsTableModel']),_0xd61d4a=this[_0x216dd2(0x173)]();return _0xd61d4a?_0x4327b5[_0x216dd2(0x129)](this[_0x216dd2(0x1c1)],_0xd61d4a):void 0x0;}[_0x547399(0x173)](){const _0x2f0a49=_0x547399;var _0x10233f;return(_0x10233f=this[_0x2f0a49(0x1a6)]()['tableSource'])==null?void 0x0:_0x10233f[this[_0x2f0a49(0x1a0)]];}[_0x547399(0x153)](){const _0x15c0e1=_0x547399;return(0x0,_0x530f09[_0x15c0e1(0x125)])(this['_getDocumentData'](),this['_tableId']);}[_0x547399(0x143)](){const _0x4d6ea5=_0x547399;return{'startRow':0x0,'endRow':Math[_0x4d6ea5(0x144)](0x0,this[_0x4d6ea5(0x1b6)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x4d6ea5(0x144)](0x0,this['getColumnCount']()-0x1)};}[_0x547399(0x13f)](_0x386ff1,_0x4d3274){return{'startRow':_0x386ff1,'endRow':_0x386ff1,'startColumn':_0x4d3274,'endColumn':_0x4d3274};}[_0x547399(0x1d9)](_0x2c42a6,_0x5f5486){const _0x3d2a65=_0x547399;var _0x39c951;let _0x5f12c3=(_0x39c951=(0x0,_0x530f09['getTableRangeById'])(this[_0x3d2a65(0x1a6)](),this[_0x3d2a65(0x1a0)]))==null||(_0x39c951=_0x39c951[_0x3d2a65(0x162)][_0x2c42a6])==null?void 0x0:_0x39c951[_0x3d2a65(0x1b7)][_0x5f5486];if(!_0x5f12c3)return null;let _0x2a781d=_0x5f12c3[_0x3d2a65(0x120)]+0x1;return{'startOffset':_0x2a781d,'endOffset':Math[_0x3d2a65(0x144)](_0x2a781d,_0x5f12c3[_0x3d2a65(0x176)]-0x1),'segmentId':this[_0x3d2a65(0x164)]};}[_0x547399(0x136)](_0x2a4df9,_0x125b54){const _0x169ecf=_0x547399;let _0x37637b=this[_0x169ecf(0x1d9)](_0x2a4df9,_0x125b54);return _0x37637b?Math[_0x169ecf(0x144)](_0x37637b['startOffset'],_0x37637b[_0x169ecf(0x176)]-0x1):null;}[_0x547399(0x11c)](_0x2b8ba6){const _0x44b68f=_0x547399;return this[_0x44b68f(0x18a)](_0x2b8ba6,0x1);}[_0x547399(0x18a)](_0x21d4b9,_0x50e31d=0x1){const _0x2d1aa5=_0x547399;return{'startRow':_0x21d4b9,'endRow':_0x21d4b9+_0x50e31d-0x1,'startColumn':0x0,'endColumn':Math[_0x2d1aa5(0x144)](0x0,this[_0x2d1aa5(0x114)]()-0x1)};}[_0x547399(0x198)](_0xa9baff){const _0x5af88e=_0x547399;return this[_0x5af88e(0x145)](_0xa9baff,0x1);}[_0x547399(0x145)](_0x19f65c,_0x47c515=0x1){const _0x1a4fe4=_0x547399;return{'startRow':0x0,'endRow':Math[_0x1a4fe4(0x144)](0x0,this[_0x1a4fe4(0x1b6)]()-0x1),'startColumn':_0x19f65c,'endColumn':_0x19f65c+_0x47c515-0x1};}[_0x547399(0x1c9)](){const _0x3c3a15=_0x547399;return this[_0x3c3a15(0x1be)](this['getTableRange'](),_0x530f09['DocsTableSelectionKind']['Table']);}[_0x547399(0x177)](_0x416bb6){const _0x44e404=_0x547399;return this[_0x44e404(0x111)](_0x416bb6,0x1);}[_0x547399(0x111)](_0x44afc5,_0x282640=0x1){const _0x2bcf59=_0x547399;return this[_0x2bcf59(0x1be)](this['getRowsRange'](_0x44afc5,_0x282640),_0x530f09[_0x2bcf59(0x141)][_0x2bcf59(0x185)]);}['selectColumn'](_0x38503f){const _0x1ec3c6=_0x547399;return this[_0x1ec3c6(0x147)](_0x38503f,0x1);}[_0x547399(0x147)](_0xc0a055,_0x19d38b=0x1){const _0x147261=_0x547399;return this[_0x147261(0x1be)](this[_0x147261(0x145)](_0xc0a055,_0x19d38b),_0x530f09[_0x147261(0x141)][_0x147261(0x1a5)]);}['selectCell'](_0x4714e2,_0x6203b2){const _0x423bd4=_0x547399;return this['selectRange'](this['getCellRange'](_0x4714e2,_0x6203b2),_0x530f09[_0x423bd4(0x141)][_0x423bd4(0x11a)]);}[_0x547399(0x1be)](_0x548adc,_0x4768cf=_0x530f09[_0x547399(0x141)]['Range']){const _0xd9005=_0x547399;return this[_0xd9005(0x1bc)][_0xd9005(0x1dc)](_0x530f09[_0xd9005(0x17c)])[_0xd9005(0x1c5)]({..._0x548adc,'kind':_0x4768cf,'segmentId':this[_0xd9005(0x164)],'tableId':this[_0xd9005(0x1a0)]}),!0x0;}[_0x547399(0x1ce)](_0x278b0b){const _0x17e198=_0x547399;return this[_0x17e198(0x154)](_0x278b0b,0x1);}[_0x547399(0x112)](_0x2c5420){const _0x1d34dc=_0x547399;return this[_0x1d34dc(0x15a)](_0x2c5420,0x1);}[_0x547399(0x154)](_0xf1e397,_0x2f21f8){const _0x9ef97=_0x547399;let _0x240640=this['_getDocumentData'](),_0x11faf2=(0x0,_0x530f09[_0x9ef97(0x12f)])(_0x240640,this['_tableId'],_0xf1e397,_0x2f21f8,_0x530f09[_0x9ef97(0x11e)]['Above'],this[_0x9ef97(0x11b)]());return _0x11faf2?this[_0x9ef97(0x156)](_0x240640,_0x11faf2[_0x9ef97(0x116)]):!0x1;}[_0x547399(0x15a)](_0x435f19,_0x5454c3){const _0x5c1f98=_0x547399;let _0x50b2b4=this['_getDocumentData'](),_0x5d59c1=(0x0,_0x530f09[_0x5c1f98(0x12f)])(_0x50b2b4,this[_0x5c1f98(0x1a0)],_0x435f19,_0x5454c3,_0x530f09[_0x5c1f98(0x11e)]['Below'],this[_0x5c1f98(0x11b)]());return _0x5d59c1?this['_mutateActions'](_0x50b2b4,_0x5d59c1[_0x5c1f98(0x116)]):!0x1;}[_0x547399(0x187)](){const _0x5c6896=_0x547399;return this['insertRowsAfter'](Math[_0x5c6896(0x144)](0x0,this[_0x5c6896(0x1b6)]()-0x1),0x1);}[_0x547399(0x15f)](_0x350c70){return this['insertColumnsBefore'](_0x350c70,0x1);}[_0x547399(0x172)](_0xd4d375){return this['insertColumnsAfter'](_0xd4d375,0x1);}[_0x547399(0x1e4)](_0x17f64b,_0x1334e5){const _0x5a0772=_0x547399;let _0x1fc2bb=this[_0x5a0772(0x1a6)](),_0x3084a3=(0x0,_0x530f09[_0x5a0772(0x1a9)])(_0x1fc2bb,this[_0x5a0772(0x1a0)],_0x17f64b,_0x1334e5,_0x530f09['DocsTableInsertPosition'][_0x5a0772(0x146)],{'bodyPath':this['_getBodyPath']()});return _0x3084a3?this['_mutateActions'](_0x1fc2bb,_0x3084a3[_0x5a0772(0x116)]):!0x1;}[_0x547399(0x13d)](_0x55b409,_0x3186a9){const _0x3bb069=_0x547399;let _0x1c724f=this[_0x3bb069(0x1a6)](),_0x2c114d=(0x0,_0x530f09[_0x3bb069(0x1a9)])(_0x1c724f,this['_tableId'],_0x55b409,_0x3186a9,_0x530f09['DocsTableInsertPosition'][_0x3bb069(0x181)],{'bodyPath':this[_0x3bb069(0x11b)]()});return _0x2c114d?this[_0x3bb069(0x156)](_0x1c724f,_0x2c114d[_0x3bb069(0x116)]):!0x1;}[_0x547399(0x1b2)](){const _0x2e771c=_0x547399;return this[_0x2e771c(0x13d)](Math['max'](0x0,this['getColumnCount']()-0x1),0x1);}[_0x547399(0x16d)](_0x36cf4a){const _0x3bd312=_0x547399;return this[_0x3bd312(0x13a)](_0x36cf4a,0x1);}[_0x547399(0x13a)](_0x289d1c,_0x3f115d=0x1){const _0x27b161=_0x547399;return!!this[_0x27b161(0x134)][_0x27b161(0x15d)](_0x530f09[_0x27b161(0x199)]['id'],{'endRow':_0x289d1c+_0x3f115d-0x1,'segmentId':this[_0x27b161(0x164)],'startRow':_0x289d1c,'tableId':this[_0x27b161(0x1a0)],'unitId':this['_unitId']});}['deleteColumn'](_0x5bd066){const _0x3c057f=_0x547399;return this[_0x3c057f(0x1cd)](_0x5bd066,0x1);}[_0x547399(0x1cd)](_0x2c49a6,_0x3242c5=0x1){const _0x489790=_0x547399;return!!this[_0x489790(0x134)]['syncExecuteCommand'](_0x530f09[_0x489790(0x12d)]['id'],{'endColumn':_0x2c49a6+_0x3242c5-0x1,'segmentId':this['_segmentId'],'startColumn':_0x2c49a6,'tableId':this['_tableId'],'unitId':this['_unitId']});}['deleteTable'](){const _0x599454=_0x547399;return!!this['_commandService'][_0x599454(0x15d)](_0x530f09[_0x599454(0x196)]['id'],{'segmentId':this[_0x599454(0x164)],'tableId':this[_0x599454(0x1a0)],'unitId':this[_0x599454(0x1c1)]});}[_0x547399(0x1da)](_0x30a399,_0x531a7b){const _0x6c3497=_0x547399;let _0x29a7ea=this[_0x6c3497(0x1a6)]();return this[_0x6c3497(0x156)](_0x29a7ea,(0x0,_0x530f09[_0x6c3497(0x133)])(_0x29a7ea,this['_tableId'],_0x30a399,_0x531a7b));}[_0x547399(0x171)](_0x1c09c4){const _0x768e73=_0x547399;let _0x5ba8b2=this['_getDocumentData']();return this[_0x768e73(0x156)](_0x5ba8b2,(0x0,_0x530f09[_0x768e73(0x117)])(_0x5ba8b2,this['_tableId'],_0x1c09c4,this[_0x768e73(0x11b)]()));}[_0x547399(0x1dd)](_0x3d6df0,_0x210578,_0x2687b5=_0x530f09[_0x547399(0x11e)][_0x547399(0x1e2)]){const _0x5dc256=_0x547399;return this[_0x5dc256(0x121)](_0x3d6df0,0x1,_0x210578,_0x2687b5);}[_0x547399(0x121)](_0x218645,_0x40514c,_0x1d5673,_0x2711d9=_0x530f09[_0x547399(0x11e)][_0x547399(0x1e2)]){const _0x106286=_0x547399;let _0x4f812f=this[_0x106286(0x1a6)](),_0x4c3192=(0x0,_0x530f09['buildMoveTableRowsMutationActions'])(_0x4f812f,this[_0x106286(0x1a0)],_0x218645,_0x1d5673,_0x40514c,_0x2711d9,this[_0x106286(0x11b)]());return _0x4c3192?this[_0x106286(0x156)](_0x4f812f,_0x4c3192[_0x106286(0x116)]):!0x1;}[_0x547399(0x1a2)](_0x208350,_0x31044e,_0x418391=_0x530f09[_0x547399(0x11e)][_0x547399(0x146)]){const _0x496543=_0x547399;return this[_0x496543(0x195)](_0x208350,0x1,_0x31044e,_0x418391);}[_0x547399(0x195)](_0x5053bf,_0x4d1943,_0x4fbabd,_0x128fd4=_0x530f09[_0x547399(0x11e)][_0x547399(0x146)]){const _0x5f492f=_0x547399;let _0x2fe660=this[_0x5f492f(0x1a6)](),_0x219084=(0x0,_0x530f09[_0x5f492f(0x1c0)])(_0x2fe660,this[_0x5f492f(0x1a0)],_0x5053bf,_0x4fbabd,_0x4d1943,_0x128fd4,this[_0x5f492f(0x11b)]());return _0x219084?this[_0x5f492f(0x156)](_0x2fe660,_0x219084['actions']):!0x1;}[_0x547399(0x1d1)](_0x2991c9){const _0x4f1a6a=_0x547399;try{let _0xfa712b=this['_getDocumentData'](),_0x170bc2=(0x0,_0x530f09[_0x4f1a6a(0x191)])({'documentData':_0xfa712b,'tableId':this['_tableId'],..._0x2991c9});return _0x170bc2?this['_mutateActions'](_0xfa712b,_0x170bc2[_0x4f1a6a(0x116)],_0x2991c9):!0x1;}catch{return!0x1;}}[_0x547399(0x163)](_0x3269dd){const _0x44c592=_0x547399;try{let _0xf6db4e=this[_0x44c592(0x1a6)](),_0x227c99=(0x0,_0x530f09[_0x44c592(0x1e0)])({'documentData':_0xf6db4e,'tableId':this['_tableId'],..._0x3269dd});return _0x227c99?this['_mutateActions'](_0xf6db4e,_0x227c99[_0x44c592(0x116)],_0x3269dd):!0x1;}catch{return!0x1;}}[_0x547399(0x130)](_0x22df21,_0x3c07ee,_0x998679){const _0x3a821f=_0x547399;let _0x983911=this['_getDocumentData'](),_0x192948=(0x0,_0x530f09[_0x3a821f(0x1bb)])(this[_0x3a821f(0x119)]['getDocumentDataModel']()[_0x3a821f(0x14f)](),this[_0x3a821f(0x164)]);return this[_0x3a821f(0x156)](_0x983911,(0x0,_0x530f09['buildSetTableCellTextMutationActions'])({'documentData':_0x983911,'tableId':this[_0x3a821f(0x1a0)],'row':_0x22df21,'column':_0x3c07ee,'text':_0x998679},_0x192948),this[_0x3a821f(0x13f)](_0x22df21,_0x3c07ee));}[_0x547399(0x189)](_0x4cab0f,_0x323200){const _0x5e955c=_0x547399;let _0xff8133=this[_0x5e955c(0x1a6)]();return this[_0x5e955c(0x156)](_0xff8133,(0x0,_0x530f09[_0x5e955c(0x13c)])(_0xff8133,{'tableId':this[_0x5e955c(0x1a0)],..._0x4cab0f,'value':_0x323200}),_0x4cab0f);}[_0x547399(0x1d8)](_0x583981,_0x2feb25){const _0x2fab62=_0x547399;let _0x3338eb=this[_0x2fab62(0x1a6)]();return this['_mutateActions'](_0x3338eb,(0x0,_0x530f09[_0x2fab62(0x17d)])({'documentData':_0x3338eb,'tableId':this[_0x2fab62(0x1a0)],..._0x583981,'margin':_0x2feb25}),_0x583981);}['setDefaultCellMargin'](_0xe2f1c6){const _0x2f1df7=_0x547399;let _0x3199e3=this[_0x2f1df7(0x1a6)]();return this['_mutateActions'](_0x3199e3,(0x0,_0x530f09[_0x2f1df7(0x1d2)])(_0x3199e3,this[_0x2f1df7(0x1a0)],_0xe2f1c6));}[_0x547399(0x161)](_0x3fb942,_0x4ce29b){const _0x4e9fa5=_0x547399;let _0x1bde6e=this['_getDocumentData']();return this[_0x4e9fa5(0x156)](_0x1bde6e,this[_0x4e9fa5(0x142)](_0x1bde6e,_0x3fb942,_0x4ce29b),_0x3fb942);}[_0x547399(0x16b)](_0x316562){const _0x25260b=_0x547399;return this['setCellBackground'](this[_0x25260b(0x143)](),_0x316562);}[_0x547399(0x1db)](_0x3e6e1b){const _0x3791ad=_0x547399;return this[_0x3791ad(0x161)](this[_0x3791ad(0x143)](),_0x3e6e1b);}[_0x547399(0x1a8)](_0x4eb5c8){const _0x278524=_0x547399;let _0x158bbf=this[_0x278524(0x1a6)](),_0x475db3=this[_0x278524(0x143)](),_0x1629a2=_0x4eb5c8[_0x278524(0x18c)]?(0x0,_0x530f09[_0x278524(0x13c)])(_0x158bbf,{'tableId':this[_0x278524(0x1a0)],..._0x475db3,'value':_0x4eb5c8['backgroundColor']}):null,_0x2863cf=_0x4eb5c8['border']?this[_0x278524(0x142)](_0x158bbf,_0x475db3,_0x4eb5c8[_0x278524(0x10d)]):null;return this[_0x278524(0x156)](_0x158bbf,_0x35d6ba[_0x278524(0x1e6)][_0x278524(0x1d3)](_0x1629a2,_0x2863cf),_0x475db3);}[_0x547399(0x1c2)](_0xbfade3,_0x29aec1,_0x9904fc=_0x35d6ba['TableRowHeightRule'][_0x547399(0x183)]){const _0x41b70e=_0x547399;var _0x4b9c1d;let _0xf7c96c=this['_getDocumentData']();return(_0x4b9c1d=_0xf7c96c['tableSource'])!=null&&(_0x4b9c1d=_0x4b9c1d[this[_0x41b70e(0x1a0)]])!=null&&_0x4b9c1d['tableRows'][_0xbfade3]?this[_0x41b70e(0x156)](_0xf7c96c,(0x0,_0x530f09['buildResizeTableRowActionsFromHeight'])(_0xf7c96c,this[_0x41b70e(0x1a0)],_0xbfade3,_0x29aec1,_0x9904fc)):!0x1;}[_0x547399(0x1bd)](_0x374a34){const _0x32e8b2=_0x547399;var _0x2ad464;let _0x2ee484=(_0x2ad464=this[_0x32e8b2(0x173)]())==null||(_0x2ad464=_0x2ad464[_0x32e8b2(0x1a7)][_0x374a34])==null?void 0x0:_0x2ad464[_0x32e8b2(0x16e)];return _0x2ee484?_0x35d6ba[_0x32e8b2(0x1ba)][_0x32e8b2(0x10e)](_0x2ee484):null;}['setColumnWidth'](_0xf55315,_0x56c521){const _0x5561f9=_0x547399;var _0x574d59;let _0x42d2df=this[_0x5561f9(0x1a6)]();return(_0x574d59=_0x42d2df[_0x5561f9(0x1c8)])!=null&&(_0x574d59=_0x574d59[this[_0x5561f9(0x1a0)]])!=null&&_0x574d59['tableColumns'][_0xf55315]?this[_0x5561f9(0x156)](_0x42d2df,(0x0,_0x530f09[_0x5561f9(0x1d0)])(_0x42d2df,this[_0x5561f9(0x1a0)],_0xf55315,_0x56c521)):!0x1;}[_0x547399(0x1a4)](_0x4a0802=0x0,_0x4a39ed=this[_0x547399(0x1b6)]()){const _0x27a788=_0x547399;let _0x44fb44=this['_getDocumentData']();return this[_0x27a788(0x156)](_0x44fb44,(0x0,_0x530f09[_0x27a788(0x1b3)])(_0x44fb44,this[_0x27a788(0x1a0)],_0x4a0802,_0x4a0802+_0x4a39ed-0x1));}[_0x547399(0x113)](_0x300deb=0x0,_0x1535b6=this['getColumnCount']()){const _0x2fc1b5=_0x547399;let _0x26b39d=this['_getDocumentData']();return this[_0x2fc1b5(0x156)](_0x26b39d,(0x0,_0x530f09[_0x2fc1b5(0x1b5)])(_0x26b39d,this[_0x2fc1b5(0x1a0)],_0x300deb,_0x300deb+_0x1535b6-0x1));}['getHeaderRowCount'](){const _0x13171c=_0x547399;var _0x1c0090;return((_0x1c0090=this[_0x13171c(0x167)]())==null?void 0x0:_0x1c0090[_0x13171c(0x1ae)])??0x0;}['setHeaderRowCount'](_0x4b89c2){const _0x414483=_0x547399;let _0x1b8242=this['_getDocumentData'](),_0x25cee7=(0x0,_0x530f09[_0x414483(0x1ab)])(_0x1b8242,this[_0x414483(0x1a0)],_0x4b89c2);return _0x25cee7?this[_0x414483(0x156)](_0x1b8242,_0x25cee7['actions']):!0x1;}[_0x547399(0x1af)](_0xf2b72){return this['setHeaderRowCount'](_0xf2b72);}['hasTitleRow'](){const _0x55b6bb=_0x547399;var _0x562260;return((_0x562260=this[_0x55b6bb(0x167)]())==null?void 0x0:_0x562260[_0x55b6bb(0x180)])??!0x1;}['insertTitleRow'](){const _0x1d89c9=_0x547399;let _0x5c8948=this[_0x1d89c9(0x1a6)](),_0x5e02f4=(0x0,_0x530f09[_0x1d89c9(0x12a)])(_0x5c8948,this[_0x1d89c9(0x1a0)],this[_0x1d89c9(0x11b)]());return _0x5e02f4?this[_0x1d89c9(0x156)](_0x5c8948,_0x5e02f4[_0x1d89c9(0x116)]):!0x1;}[_0x547399(0x19e)](_0x2fa2f5,_0x39baf4){const _0x3c52c7=_0x547399;return!!this[_0x3c52c7(0x134)][_0x3c52c7(0x15d)](_0x530f09['DocsTableSetColumnTypeCommand']['id'],{'unitId':this[_0x3c52c7(0x1c1)],'tableId':this['_tableId'],'segmentId':this[_0x3c52c7(0x164)],'column':_0x2fa2f5,'config':_0x39baf4});}[_0x547399(0x150)](_0x21bac7,_0x57a517){const _0x47e676=_0x547399;let _0x51ed1c=this[_0x47e676(0x1a6)]();return this[_0x47e676(0x156)](_0x51ed1c,(0x0,_0x530f09[_0x47e676(0x1b1)])(_0x51ed1c,this[_0x47e676(0x118)](),this[_0x47e676(0x1a0)],_0x21bac7,_0x57a517,this[_0x47e676(0x11b)]()));}[_0x547399(0x142)](_0x207da5,_0x19bf49,_0x3260af){const _0x91e3e6=_0x547399;return(0x0,_0x530f09[_0x91e3e6(0x14e)])({'documentData':_0x207da5,'tableId':this[_0x91e3e6(0x1a0)],..._0x19bf49,'preset':_0x3260af[_0x91e3e6(0x19c)]??_0x530f09[_0x91e3e6(0x182)]['All'],'border':_0x3260af['border']??{'color':{'rgb':_0x3260af[_0x91e3e6(0x107)]??this[_0x91e3e6(0x1bc)]['get'](_0x35d6ba[_0x91e3e6(0x11d)])[_0x91e3e6(0x1e7)](_0x91e3e6(0x1cc))},'width':{'v':_0x3260af[_0x91e3e6(0x192)]??0x1},'dashStyle':_0x35d6ba['DashStyleType'][_0x91e3e6(0x18f)]}});}['_getDocumentData'](){const _0x7f35d5=_0x547399;let _0x3a0026=this[_0x7f35d5(0x119)][_0x7f35d5(0x137)]()['getSnapshot']();return this['_segmentId']?{...this[_0x7f35d5(0x119)][_0x7f35d5(0x137)](this[_0x7f35d5(0x164)])[_0x7f35d5(0x14f)](),'documentStyle':_0x3a0026[_0x7f35d5(0x109)],'tableSource':_0x3a0026[_0x7f35d5(0x1c8)]}:_0x3a0026;}['_serializeModel'](){const _0x56215c=_0x547399;return this[_0x56215c(0x1bc)][_0x56215c(0x1dc)](_0x530f09[_0x56215c(0x10f)])[_0x56215c(0x1b8)](this[_0x56215c(0x1c1)],this[_0x56215c(0x119)][_0x56215c(0x137)]()[_0x56215c(0x14f)]());}[_0x547399(0x11b)](){const _0x2f3cf1=_0x547399;return(0x0,_0x530f09[_0x2f3cf1(0x1bb)])(this[_0x2f3cf1(0x119)][_0x2f3cf1(0x137)]()[_0x2f3cf1(0x14f)](),this[_0x2f3cf1(0x164)]);}[_0x547399(0x156)](_0x36487c,_0x193502,_0x2821bd){const _0x2eec5b=_0x547399;return(0x0,_0x530f09[_0x2eec5b(0x16a)])(this[_0x2eec5b(0x134)],this['_unitId'],_0x36487c,_0x193502,_0x2821bd?{'tableId':this[_0x2eec5b(0x1a0)],'segmentId':this['_segmentId'],..._0x2821bd}:void 0x0);}};_0xb5b7cc=_0x4e3f4f([_0x473624(0x3,_0x35d6ba[_0x547399(0x132)]),_0x473624(0x4,(0x0,_0x35d6ba[_0x547399(0x175)])(_0x35d6ba[_0x547399(0x159)]))],_0xb5b7cc);var _0x4d38ab=class extends _0x1d09dc['FDocument']{[_0x547399(0x1e1)](_0x4dc651=''){const _0x404a59=_0x547399;return this['_getTables'](_0x4dc651)[_0x404a59(0x1a1)](_0x59aad5=>this['_createFDocumentTable'](_0x59aad5[_0x404a59(0x10a)],_0x4dc651));}[_0x547399(0x149)](_0x30af3c,_0x4ca4d0=''){const _0x558ca4=_0x547399;return this[_0x558ca4(0x15c)](_0x4ca4d0)[_0x558ca4(0x174)](_0x57e5a1=>_0x57e5a1[_0x558ca4(0x10a)]===_0x30af3c)?this[_0x558ca4(0x1de)](_0x30af3c,_0x4ca4d0):null;}[_0x547399(0x1aa)](_0x54916f,_0x9ab656=''){const _0xd79862=_0x547399;var _0x131b34;let _0x35f2af=(_0x131b34=this[_0xd79862(0x15c)](_0x9ab656)[_0x54916f])==null?void 0x0:_0x131b34[_0xd79862(0x10a)];return _0x35f2af?this[_0xd79862(0x1de)](_0x35f2af,_0x9ab656):null;}[_0x547399(0x14a)](){const _0x486567=_0x547399;let _0x15ee92=this[_0x486567(0x1bc)][_0x486567(0x1dc)](_0x530f09['DocsTableSelectionService'])['getStableTableSelection']();return _0x15ee92!=null&&_0x15ee92[_0x486567(0x10a)]?this[_0x486567(0x1de)](_0x15ee92['tableId'],_0x15ee92[_0x486567(0x14d)]):null;}[_0x547399(0x122)](_0x36ca18,_0x2d3531=''){const _0x32a8e8=_0x547399;return this[_0x32a8e8(0x127)](_0x36ca18,_0x2d3531)[0x0]??null;}[_0x547399(0x127)](_0x2ce3ba,_0x517a5b=''){const _0x53cee0=_0x547399;let _0x14c528=this['_getTableDocumentData'](_0x517a5b),_0x184bf6=typeof _0x2ce3ba==_0x53cee0(0x17e)?{'text':_0x2ce3ba}:_0x2ce3ba;return this[_0x53cee0(0x1e1)](_0x517a5b)[_0x53cee0(0x126)](_0x2c8fd9=>{const _0x56636d=_0x53cee0;let _0x274b44=_0x2c8fd9[_0x56636d(0x165)]();return!(_0x184bf6['tableId']&&_0x274b44!==_0x184bf6[_0x56636d(0x10a)]||_0x184bf6[_0x56636d(0x194)]&&!this[_0x56636d(0x1c4)](_0x14c528,_0x274b44,_0x184bf6[_0x56636d(0x194)])||_0x184bf6[_0x56636d(0x19b)]&&!this['_rowContainsText'](_0x2c8fd9,0x0,_0x184bf6[_0x56636d(0x19b)])||_0x184bf6['titleText']&&!this['_rowContainsText'](_0x2c8fd9,0x0,_0x184bf6['titleText']));});}[_0x547399(0x17a)](_0x122730,_0x15bc64,_0x74fe2a={}){const _0x428deb=_0x547399;let _0x42d0ed=this[_0x428deb(0x1bc)]['get'](_0x35d6ba[_0x428deb(0x132)]),_0x55a254=_0x74fe2a[_0x428deb(0x10a)]??(0x0,_0x35d6ba[_0x428deb(0x160)])(0x6);return _0x42d0ed[_0x428deb(0x15d)](_0x530f09[_0x428deb(0x1c7)]['id'],{..._0x74fe2a,'unitId':this['getId'](),'rows':_0x122730,'columns':_0x15bc64,'tableId':_0x55a254})?this[_0x428deb(0x1de)](_0x55a254,_0x74fe2a[_0x428deb(0x14d)]??''):null;}[_0x547399(0x1b0)](_0x238f59,_0x1b4726={}){const _0x45c561=_0x547399;let _0x579830=this[_0x45c561(0x1bc)][_0x45c561(0x1dc)](_0x35d6ba[_0x45c561(0x132)]),_0x3f4f19=_0x1b4726[_0x45c561(0x10a)]??(0x0,_0x35d6ba[_0x45c561(0x160)])(0x6);return _0x579830[_0x45c561(0x15d)](_0x530f09[_0x45c561(0x1c7)]['id'],{..._0x1b4726,'unitId':this[_0x45c561(0x165)](),'values':_0x238f59,'tableId':_0x3f4f19})?this[_0x45c561(0x1de)](_0x3f4f19,_0x1b4726[_0x45c561(0x14d)]??''):null;}[_0x547399(0x15c)](_0x12deab=''){const _0x2463b2=_0x547399;let {tables:_0x5cc3ee=[]}=this[_0x2463b2(0x186)](_0x12deab);return _0x5cc3ee;}[_0x547399(0x179)](_0x519db5=''){const _0x2b856f=_0x547399;let _0x149e48=this[_0x2b856f(0x137)]()[_0x2b856f(0x14f)]();return _0x519db5?{...this[_0x2b856f(0x137)](_0x519db5)[_0x2b856f(0x14f)](),'documentStyle':_0x149e48['documentStyle'],'tableSource':_0x149e48[_0x2b856f(0x1c8)]}:_0x149e48;}['_createFDocumentTable'](_0x11bf4f,_0x57a724=''){const _0x326d4e=_0x547399;return this[_0x326d4e(0x1bc)][_0x326d4e(0x108)](_0xb5b7cc,this,_0x11bf4f,_0x57a724);}['_tableContainsText'](_0x1ca27e,_0x4309dd,_0x4c7036){const _0x42a129=_0x547399;var _0x1ceb30;let _0x27197f=(0x0,_0x530f09[_0x42a129(0x125)])(_0x1ca27e,_0x4309dd);if(!_0x27197f)return!0x1;let _0x16e378=(_0x1ceb30=_0x1ca27e[_0x42a129(0x13b)])==null?void 0x0:_0x1ceb30['dataStream'];return _0x16e378?_0x16e378[_0x42a129(0x1b9)](_0x27197f[_0x42a129(0x120)],_0x27197f['endOffset'])[_0x42a129(0x17b)](_0x4c7036):!0x1;}[_0x547399(0x18d)](_0x466522,_0x2ec364,_0x35c987){const _0x284794=_0x547399;return Array['from']({'length':_0x466522[_0x284794(0x114)]()},(_0x4a5225,_0x200656)=>_0x466522[_0x284794(0x1d5)](_0x2ec364,_0x200656))[_0x284794(0x174)](_0x4d48fb=>_0x4d48fb[_0x284794(0x17b)](_0x35c987));}};_0x1d09dc['FDocument'][_0x547399(0x1c6)](_0x4d38ab),Object[_0x547399(0x16c)](_0x245454,_0x547399(0x19f),{'enumerable':!0x0,'get':function(){return _0xb5b7cc;}}),_0x245454[_0x547399(0x128)]=_0x3b7848;}));
1
+ (function(_0x879461,_0x365a63){const _0x40aa39=_0x38aa,_0xd1fa82=_0x879461();while(!![]){try{const _0x9e04f=-parseInt(_0x40aa39(0x202))/0x1+-parseInt(_0x40aa39(0x243))/0x2+-parseInt(_0x40aa39(0x250))/0x3*(parseInt(_0x40aa39(0x23e))/0x4)+parseInt(_0x40aa39(0x24d))/0x5+parseInt(_0x40aa39(0x226))/0x6*(-parseInt(_0x40aa39(0x1f2))/0x7)+parseInt(_0x40aa39(0x223))/0x8+parseInt(_0x40aa39(0x1b1))/0x9*(parseInt(_0x40aa39(0x24a))/0xa);if(_0x9e04f===_0x365a63)break;else _0xd1fa82['push'](_0xd1fa82['shift']());}catch(_0x162010){_0xd1fa82['push'](_0xd1fa82['shift']());}}}(_0x15f3,0x2b9eb),function(_0x5affbf,_0x598a1f){const _0x247a23=_0x38aa;typeof exports==_0x247a23(0x28a)&&typeof module<'u'?_0x598a1f(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x247a23(0x1e5)&&define[_0x247a23(0x1f8)]?define(['exports',_0x247a23(0x221),'@univerjs/core',_0x247a23(0x1bb),'@univerjs/docs/facade'],_0x598a1f):(_0x5affbf=typeof globalThis<'u'?globalThis:_0x5affbf||self,_0x598a1f(_0x5affbf[_0x247a23(0x24c)]={},_0x5affbf[_0x247a23(0x1e4)],_0x5affbf['UniverCore'],_0x5affbf['UniverCoreFacade'],_0x5affbf[_0x247a23(0x1d9)]));}(this,function(_0x31d60b,_0x23f840,_0x35ecf7,_0x1e0e66,_0x5a9859){const _0x55d57c=_0x38aa;Object[_0x55d57c(0x206)](_0x31d60b,Symbol[_0x55d57c(0x207)],{'value':_0x55d57c(0x289)});var _0x2b5fd0=class extends _0x1e0e66['FEnum']{get[_0x55d57c(0x25c)](){const _0x579bd4=_0x55d57c;return _0x23f840[_0x579bd4(0x25c)];}get['DocsTableColumnType'](){return _0x23f840['DocsTableColumnType'];}get[_0x55d57c(0x25e)](){const _0x1a1a7b=_0x55d57c;return _0x23f840[_0x1a1a7b(0x25e)];}get[_0x55d57c(0x272)](){return _0x23f840['DocsTableRowInsertPosition'];}get[_0x55d57c(0x24f)](){const _0x2d64aa=_0x55d57c;return _0x23f840[_0x2d64aa(0x24f)];}get[_0x55d57c(0x22c)](){const _0x17a4f4=_0x55d57c;return _0x23f840[_0x17a4f4(0x22c)];}get[_0x55d57c(0x22b)](){return _0x23f840['DocsTableSortDirection'];}get[_0x55d57c(0x265)](){return _0x35ecf7['DashStyleType'];}};_0x1e0e66[_0x55d57c(0x1e0)][_0x55d57c(0x1fd)](_0x2b5fd0);var _0x375d01=class{constructor(_0x2740e5,_0x2269a6,_0xa0bc6c){const _0x349359=_0x55d57c;this[_0x349359(0x1dc)]=_0x2740e5,this['_row']=_0x2269a6,this[_0x349359(0x1f0)]=_0xa0bc6c;}[_0x55d57c(0x23f)](){const _0x21f100=_0x55d57c;return this[_0x21f100(0x1dc)];}[_0x55d57c(0x209)](){const _0x4c6ee2=_0x55d57c;return this[_0x4c6ee2(0x1db)];}[_0x55d57c(0x1ac)](){const _0x235d4f=_0x55d57c;return this[_0x235d4f(0x1f0)];}['getText'](){const _0x1d676b=_0x55d57c;return this['_table'][_0x1d676b(0x271)](this[_0x1d676b(0x1db)],this[_0x1d676b(0x1f0)]);}['getContentRange'](){const _0x561f46=_0x55d57c;return this['_table'][_0x561f46(0x1c0)](this[_0x561f46(0x1db)],this[_0x561f46(0x1f0)]);}['getInsertOffset'](){const _0x42a58f=_0x55d57c;return this[_0x42a58f(0x1dc)][_0x42a58f(0x205)](this[_0x42a58f(0x1db)],this[_0x42a58f(0x1f0)]);}[_0x55d57c(0x236)](){const _0x2abb01=_0x55d57c;return this[_0x2abb01(0x1dc)][_0x2abb01(0x25a)](this[_0x2abb01(0x1db)],this['_column']);}[_0x55d57c(0x283)](){const _0x219a6=_0x55d57c;return this[_0x219a6(0x1dc)][_0x219a6(0x1ed)](this['_row'],this[_0x219a6(0x1f0)]);}[_0x55d57c(0x241)](_0x21eeea){const _0x187719=_0x55d57c;return this['_table'][_0x187719(0x246)](this[_0x187719(0x1dc)][_0x187719(0x1fb)](this[_0x187719(0x1db)],this[_0x187719(0x1f0)]),_0x21eeea);}['clearMarginOverride'](){const _0x103076=_0x55d57c;return this[_0x103076(0x1dc)][_0x103076(0x246)](this['_table'][_0x103076(0x1fb)](this[_0x103076(0x1db)],this[_0x103076(0x1f0)]),null);}[_0x55d57c(0x24b)](_0x486b20){const _0x11d76f=_0x55d57c;return this[_0x11d76f(0x1dc)][_0x11d76f(0x264)](this['_row'],this['_column'],_0x486b20);}[_0x55d57c(0x229)](_0x4cf455){const _0x53e0e4=_0x55d57c;return this[_0x53e0e4(0x1dc)]['setCellBackground'](this[_0x53e0e4(0x1dc)][_0x53e0e4(0x1fb)](this[_0x53e0e4(0x1db)],this['_column']),_0x4cf455);}[_0x55d57c(0x275)](_0x5dbcc1){const _0x528754=_0x55d57c;return this[_0x528754(0x1dc)]['setBorder'](this[_0x528754(0x1dc)][_0x528754(0x1fb)](this[_0x528754(0x1db)],this[_0x528754(0x1f0)]),_0x5dbcc1);}[_0x55d57c(0x1c1)](_0x3f21d6,_0x35c5b9){const _0x1bbd63=_0x55d57c;return this[_0x1bbd63(0x1dc)][_0x1bbd63(0x1da)]({'startRow':this[_0x1bbd63(0x1db)],'startColumn':this['_column'],'endRow':this['_row']+_0x3f21d6-0x1,'endColumn':this[_0x1bbd63(0x1f0)]+_0x35c5b9-0x1});}[_0x55d57c(0x1b9)](){const _0x559222=_0x55d57c;return this[_0x559222(0x1dc)]['unmergeCells'](this[_0x559222(0x1dc)][_0x559222(0x1fb)](this[_0x559222(0x1db)],this[_0x559222(0x1f0)]));}};function _0x5ea136(_0x96605c){'@babel/helpers - typeof';const _0x51dbfe=_0x55d57c;return _0x5ea136=typeof Symbol=='function'&&typeof Symbol[_0x51dbfe(0x23d)]==_0x51dbfe(0x237)?function(_0x3cdd3b){return typeof _0x3cdd3b;}:function(_0x81c67e){const _0x41729d=_0x51dbfe;return _0x81c67e&&typeof Symbol==_0x41729d(0x1e5)&&_0x81c67e[_0x41729d(0x1b4)]===Symbol&&_0x81c67e!==Symbol[_0x41729d(0x1e6)]?_0x41729d(0x237):typeof _0x81c67e;},_0x5ea136(_0x96605c);}function _0x5f0774(_0xe16acc,_0x2a0a6d){const _0x6e7c18=_0x55d57c;if(_0x5ea136(_0xe16acc)!=_0x6e7c18(0x28a)||!_0xe16acc)return _0xe16acc;var _0x1bfb0d=_0xe16acc[Symbol['toPrimitive']];if(_0x1bfb0d!==void 0x0){var _0x1189dd=_0x1bfb0d[_0x6e7c18(0x228)](_0xe16acc,_0x2a0a6d||_0x6e7c18(0x25d));if(_0x5ea136(_0x1189dd)!=_0x6e7c18(0x28a))return _0x1189dd;throw TypeError(_0x6e7c18(0x1ea));}return(_0x2a0a6d==='string'?String:Number)(_0xe16acc);}function _0x5db300(_0xa66c9c){const _0x5dc9b3=_0x55d57c;var _0x444030=_0x5f0774(_0xa66c9c,_0x5dc9b3(0x277));return _0x5ea136(_0x444030)==_0x5dc9b3(0x237)?_0x444030:_0x444030+'';}function _0x5a6c5e(_0x4aeca7,_0x216d1a,_0x5536d7){const _0x294135=_0x55d57c;return(_0x216d1a=_0x5db300(_0x216d1a))in _0x4aeca7?Object[_0x294135(0x206)](_0x4aeca7,_0x216d1a,{'value':_0x5536d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4aeca7[_0x216d1a]=_0x5536d7,_0x4aeca7;}function _0xb58257(_0x57dad4,_0x139b8d){return function(_0x3dc339,_0x47e703){_0x139b8d(_0x3dc339,_0x47e703,_0x57dad4);};}function _0x4e5de4(_0x56b8df,_0x54b5f3,_0x2312e3,_0x432806){const _0x256cb9=_0x55d57c;var _0x46bc92=arguments[_0x256cb9(0x1fa)],_0x126ae6=_0x46bc92<0x3?_0x54b5f3:_0x432806===null?_0x432806=Object[_0x256cb9(0x22a)](_0x54b5f3,_0x2312e3):_0x432806,_0x99a03b;if(typeof Reflect=='object'&&typeof Reflect[_0x256cb9(0x1d7)]==_0x256cb9(0x1e5))_0x126ae6=Reflect[_0x256cb9(0x1d7)](_0x56b8df,_0x54b5f3,_0x2312e3,_0x432806);else{for(var _0x46157e=_0x56b8df[_0x256cb9(0x1fa)]-0x1;_0x46157e>=0x0;_0x46157e--)(_0x99a03b=_0x56b8df[_0x46157e])&&(_0x126ae6=(_0x46bc92<0x3?_0x99a03b(_0x126ae6):_0x46bc92>0x3?_0x99a03b(_0x54b5f3,_0x2312e3,_0x126ae6):_0x99a03b(_0x54b5f3,_0x2312e3))||_0x126ae6);}return _0x46bc92>0x3&&_0x126ae6&&Object[_0x256cb9(0x206)](_0x54b5f3,_0x2312e3,_0x126ae6),_0x126ae6;}let _0x4d92f2=class{constructor(_0x1aa666,_0x3a9be7,_0x322a15,_0x1d7a9f,_0xeff840){const _0xa85aa8=_0x55d57c;this['_document']=_0x1aa666,this[_0xa85aa8(0x247)]=_0x3a9be7,this[_0xa85aa8(0x1de)]=_0x322a15,this[_0xa85aa8(0x23c)]=_0x1d7a9f,this[_0xa85aa8(0x278)]=_0xeff840,_0x5a6c5e(this,_0xa85aa8(0x284),void 0x0),this[_0xa85aa8(0x284)]=this[_0xa85aa8(0x27c)][_0xa85aa8(0x222)]();}['getId'](){const _0x92af4c=_0x55d57c;return this[_0x92af4c(0x247)];}[_0x55d57c(0x28b)](){const _0x274191=_0x55d57c;return this[_0x274191(0x1de)];}['getInfo'](){const _0x1c449c=_0x55d57c;return{'id':this[_0x1c449c(0x247)],'rowCount':this[_0x1c449c(0x1c9)](),'columnCount':this[_0x1c449c(0x220)](),'metadata':this[_0x1c449c(0x254)](),'source':this[_0x1c449c(0x1e2)]()};}[_0x55d57c(0x26d)](){const _0x472acf=_0x55d57c;let _0x17ef48=this[_0x472acf(0x254)](),_0x1a821e=this[_0x472acf(0x1e2)](),_0x3f41fa=this['getColumnCount']();return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':_0x3f41fa,'headerRowCount':(_0x17ef48==null?void 0x0:_0x17ef48[_0x472acf(0x249)])??0x0,'titleRow':(_0x17ef48==null?void 0x0:_0x17ef48[_0x472acf(0x1b6)])??!0x1,'columns':Array['from']({'length':_0x3f41fa},(_0x5a3e69,_0x36bbbd)=>{const _0x5478f4=_0x472acf;var _0x13caf9,_0x518990;return{'index':_0x36bbbd,'type':_0x17ef48==null||(_0x13caf9=_0x17ef48[_0x5478f4(0x274)])==null||(_0x13caf9=_0x13caf9[_0x36bbbd])==null?void 0x0:_0x13caf9[_0x5478f4(0x23b)],'width':_0x1a821e==null||(_0x518990=_0x1a821e['tableColumns'][_0x36bbbd])==null?void 0x0:_0x518990['size'][_0x5478f4(0x1e9)]['v']};}),'sampleRows':Array[_0x472acf(0x1ad)]({'length':this['getRowCount']()},(_0x3f2b81,_0xc1696a)=>Array[_0x472acf(0x1ad)]({'length':_0x3f41fa},(_0x5cbd28,_0x250650)=>this[_0x472acf(0x271)](_0xc1696a,_0x250650)))[_0x472acf(0x1f1)](_0x3f71d0=>_0x3f71d0[_0x472acf(0x26c)](_0x8d027f=>_0x8d027f[_0x472acf(0x1fa)]>0x0))[_0x472acf(0x231)](0x0,0x5)};}[_0x55d57c(0x1c9)](){const _0x241687=_0x55d57c;var _0x27d528;return((_0x27d528=this[_0x241687(0x1e2)]())==null?void 0x0:_0x27d528[_0x241687(0x1af)][_0x241687(0x1fa)])??0x0;}[_0x55d57c(0x220)](){const _0x5b823d=_0x55d57c;var _0xfe24d;return((_0xfe24d=this[_0x5b823d(0x1e2)]())==null?void 0x0:_0xfe24d[_0x5b823d(0x1ee)][_0x5b823d(0x1fa)])??0x0;}['getCell'](_0x23536e,_0x44df00){const _0x1079cf=_0x55d57c;var _0x12f00b;return(_0x12f00b=this[_0x1079cf(0x1e2)]())!=null&&(_0x12f00b=_0x12f00b[_0x1079cf(0x1af)][_0x23536e])!=null&&_0x12f00b[_0x1079cf(0x20b)][_0x44df00]?this[_0x1079cf(0x278)][_0x1079cf(0x25b)](_0x375d01,this,_0x23536e,_0x44df00):null;}[_0x55d57c(0x271)](_0xc24a3,_0x31b860){const _0x2a352e=_0x55d57c;var _0x2dc595,_0x80977c;let _0x15b48b=(_0x2dc595=(0x0,_0x23f840[_0x2a352e(0x276)])(this[_0x2a352e(0x27b)](),this[_0x2a352e(0x247)]))==null||(_0x2dc595=_0x2dc595[_0x2a352e(0x20a)][_0xc24a3])==null?void 0x0:_0x2dc595[_0x2a352e(0x286)][_0x31b860];return _0x15b48b?((_0x80977c=this[_0x2a352e(0x27b)]()[_0x2a352e(0x20f)])==null?void 0x0:_0x80977c[_0x2a352e(0x260)]['slice'](_0x15b48b['startOffset']+0x1,_0x15b48b[_0x2a352e(0x212)])['replace'](/\r\n$/,''))??'':'';}[_0x55d57c(0x25a)](_0x219f91,_0x535637){const _0x5f40bb=_0x55d57c;var _0x2c3839;let _0x4b65f3=this[_0x5f40bb(0x1e2)](),_0x3a8875=_0x4b65f3==null||(_0x2c3839=_0x4b65f3[_0x5f40bb(0x1af)][_0x219f91])==null?void 0x0:_0x2c3839[_0x5f40bb(0x20b)][_0x535637];return _0x3a8875?_0x35ecf7[_0x5f40bb(0x1b7)][_0x5f40bb(0x1ca)](_0x3a8875[_0x5f40bb(0x287)]??_0x4b65f3[_0x5f40bb(0x1fc)]??_0x23f840[_0x5f40bb(0x267)]):null;}[_0x55d57c(0x1ed)](_0x5133fc,_0x61116){const _0x548539=_0x55d57c;var _0xb8388f;let _0x20b9ee=(_0xb8388f=this[_0x548539(0x1e2)]())==null||(_0xb8388f=_0xb8388f[_0x548539(0x1af)][_0x5133fc])==null?void 0x0:_0xb8388f['tableCells'][_0x61116];return _0x20b9ee!=null&&_0x20b9ee[_0x548539(0x287)]?_0x35ecf7[_0x548539(0x1b7)][_0x548539(0x1ca)](_0x20b9ee[_0x548539(0x287)]):null;}[_0x55d57c(0x1bf)](){const _0x5d43c3=_0x55d57c;var _0x46d2df;return _0x35ecf7[_0x5d43c3(0x1b7)][_0x5d43c3(0x1ca)](((_0x46d2df=this['getSource']())==null?void 0x0:_0x46d2df[_0x5d43c3(0x1fc)])??_0x23f840[_0x5d43c3(0x267)]);}[_0x55d57c(0x261)](){const _0xb42f30=_0x55d57c;var _0xf1187c;let _0x34f15a=(_0xf1187c=this[_0xb42f30(0x1e2)]())==null?void 0x0:_0xf1187c[_0xb42f30(0x1fc)];return _0x34f15a?_0x35ecf7['Tools']['deepClone'](_0x34f15a):null;}[_0x55d57c(0x254)](){const _0x3408ae=_0x55d57c;let _0x7c085c=this[_0x3408ae(0x278)][_0x3408ae(0x1d6)](_0x23f840[_0x3408ae(0x1f5)]),_0x4bc7ee=this[_0x3408ae(0x1e2)]();return _0x4bc7ee?_0x7c085c[_0x3408ae(0x1c3)](this[_0x3408ae(0x284)],_0x4bc7ee):void 0x0;}[_0x55d57c(0x1e2)](){const _0x62272d=_0x55d57c;var _0x2255f0;return(_0x2255f0=this[_0x62272d(0x27b)]()[_0x62272d(0x22d)])==null?void 0x0:_0x2255f0[this[_0x62272d(0x247)]];}[_0x55d57c(0x1cd)](){const _0x31cacf=_0x55d57c;return(0x0,_0x23f840['getTableRangeById'])(this[_0x31cacf(0x27b)](),this[_0x31cacf(0x247)]);}[_0x55d57c(0x1d4)](){const _0x48c458=_0x55d57c;return{'startRow':0x0,'endRow':Math[_0x48c458(0x27d)](0x0,this[_0x48c458(0x1c9)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x48c458(0x27d)](0x0,this[_0x48c458(0x220)]()-0x1)};}[_0x55d57c(0x1fb)](_0xac6a9c,_0x3775b9){return{'startRow':_0xac6a9c,'endRow':_0xac6a9c,'startColumn':_0x3775b9,'endColumn':_0x3775b9};}[_0x55d57c(0x1c0)](_0x4a0e4a,_0x48d5e4){const _0x14ea3c=_0x55d57c;var _0x1f9463;let _0x473ef1=(_0x1f9463=(0x0,_0x23f840[_0x14ea3c(0x276)])(this[_0x14ea3c(0x27b)](),this[_0x14ea3c(0x247)]))==null||(_0x1f9463=_0x1f9463['rows'][_0x4a0e4a])==null?void 0x0:_0x1f9463[_0x14ea3c(0x286)][_0x48d5e4];if(!_0x473ef1)return null;let _0xceb7ca=_0x473ef1[_0x14ea3c(0x270)]+0x1;return{'startOffset':_0xceb7ca,'endOffset':Math[_0x14ea3c(0x27d)](_0xceb7ca,_0x473ef1[_0x14ea3c(0x212)]-0x1),'segmentId':this[_0x14ea3c(0x1de)]};}[_0x55d57c(0x205)](_0x23d739,_0x5dcb4d){const _0x5a4f61=_0x55d57c;let _0x22dc0f=this[_0x5a4f61(0x1c0)](_0x23d739,_0x5dcb4d);return _0x22dc0f?Math[_0x5a4f61(0x27d)](_0x22dc0f[_0x5a4f61(0x270)],_0x22dc0f[_0x5a4f61(0x212)]-0x1):null;}[_0x55d57c(0x1ce)](_0x2edd03){return this['getRowsRange'](_0x2edd03,0x1);}['getRowsRange'](_0x3118ad,_0x153fa9=0x1){const _0x513c35=_0x55d57c;return{'startRow':_0x3118ad,'endRow':_0x3118ad+_0x153fa9-0x1,'startColumn':0x0,'endColumn':Math[_0x513c35(0x27d)](0x0,this[_0x513c35(0x220)]()-0x1)};}['getColumnRange'](_0x5f29a5){const _0x571d97=_0x55d57c;return this[_0x571d97(0x24e)](_0x5f29a5,0x1);}[_0x55d57c(0x24e)](_0xdd3aea,_0x1296d2=0x1){const _0x797043=_0x55d57c;return{'startRow':0x0,'endRow':Math[_0x797043(0x27d)](0x0,this[_0x797043(0x1c9)]()-0x1),'startColumn':_0xdd3aea,'endColumn':_0xdd3aea+_0x1296d2-0x1};}[_0x55d57c(0x1c4)](){const _0x266ea5=_0x55d57c;return this[_0x266ea5(0x235)](this[_0x266ea5(0x1d4)](),_0x23f840['DocsTableSelectionKind'][_0x266ea5(0x225)]);}[_0x55d57c(0x252)](_0x110e66){return this['selectRows'](_0x110e66,0x1);}['selectRows'](_0x1daf4a,_0x54e27a=0x1){const _0xa96936=_0x55d57c;return this[_0xa96936(0x235)](this[_0xa96936(0x1c5)](_0x1daf4a,_0x54e27a),_0x23f840['DocsTableSelectionKind'][_0xa96936(0x234)]);}[_0x55d57c(0x244)](_0xf59cc8){const _0x4076f1=_0x55d57c;return this[_0x4076f1(0x208)](_0xf59cc8,0x1);}[_0x55d57c(0x208)](_0xdfbdf8,_0x1cb253=0x1){const _0xd7a860=_0x55d57c;return this[_0xd7a860(0x235)](this[_0xd7a860(0x24e)](_0xdfbdf8,_0x1cb253),_0x23f840[_0xd7a860(0x25e)][_0xd7a860(0x218)]);}[_0x55d57c(0x203)](_0x2a71a1,_0x58f3ae){const _0x4a3f86=_0x55d57c;return this[_0x4a3f86(0x235)](this[_0x4a3f86(0x1fb)](_0x2a71a1,_0x58f3ae),_0x23f840[_0x4a3f86(0x25e)][_0x4a3f86(0x1d8)]);}['selectRange'](_0x40da7c,_0x4e5d4a=_0x23f840['DocsTableSelectionKind'][_0x55d57c(0x204)]){const _0x50440a=_0x55d57c;return this[_0x50440a(0x278)][_0x50440a(0x1d6)](_0x23f840[_0x50440a(0x1e1)])['setStructuralSelection']({..._0x40da7c,'kind':_0x4e5d4a,'segmentId':this[_0x50440a(0x1de)],'tableId':this['_tableId']}),!0x0;}[_0x55d57c(0x20e)](_0x633d15){const _0x4c7ccc=_0x55d57c;return this[_0x4c7ccc(0x263)](_0x633d15,0x1);}[_0x55d57c(0x21e)](_0x301cd1){const _0x270e6a=_0x55d57c;return this[_0x270e6a(0x27e)](_0x301cd1,0x1);}[_0x55d57c(0x263)](_0x5d8a7a,_0x15d977){const _0x3cc906=_0x55d57c;let _0x6349eb=this[_0x3cc906(0x27b)](),_0x374904=(0x0,_0x23f840['buildInsertTableRowsMutationActions'])(_0x6349eb,this['_tableId'],_0x5d8a7a,_0x15d977,_0x23f840[_0x3cc906(0x269)][_0x3cc906(0x1f7)],this[_0x3cc906(0x1c8)]());return _0x374904?this['_mutateActions'](_0x6349eb,_0x374904[_0x3cc906(0x211)]):!0x1;}['insertRowsAfter'](_0x54a28f,_0x3cc08e){const _0x21b655=_0x55d57c;let _0x4b9367=this['_getDocumentData'](),_0x4d8fa6=(0x0,_0x23f840['buildInsertTableRowsMutationActions'])(_0x4b9367,this[_0x21b655(0x247)],_0x54a28f,_0x3cc08e,_0x23f840[_0x21b655(0x269)][_0x21b655(0x21c)],this[_0x21b655(0x1c8)]());return _0x4d8fa6?this[_0x21b655(0x1e3)](_0x4b9367,_0x4d8fa6['actions']):!0x1;}[_0x55d57c(0x240)](){const _0x6b0e97=_0x55d57c;return this[_0x6b0e97(0x27e)](Math[_0x6b0e97(0x27d)](0x0,this[_0x6b0e97(0x1c9)]()-0x1),0x1);}['insertColumnBefore'](_0x7c6d7f){const _0x21f965=_0x55d57c;return this[_0x21f965(0x20d)](_0x7c6d7f,0x1);}[_0x55d57c(0x230)](_0x22ffba){const _0x5eb673=_0x55d57c;return this[_0x5eb673(0x22f)](_0x22ffba,0x1);}[_0x55d57c(0x20d)](_0xe0fa4,_0x3862ff){const _0x521e4e=_0x55d57c;let _0x16b4f5=this[_0x521e4e(0x27b)](),_0x1e39af=(0x0,_0x23f840[_0x521e4e(0x1ba)])(_0x16b4f5,this[_0x521e4e(0x247)],_0xe0fa4,_0x3862ff,_0x23f840[_0x521e4e(0x269)]['Left'],{'bodyPath':this[_0x521e4e(0x1c8)]()});return _0x1e39af?this[_0x521e4e(0x1e3)](_0x16b4f5,_0x1e39af[_0x521e4e(0x211)]):!0x1;}[_0x55d57c(0x22f)](_0x225040,_0x31a63e){const _0x9a6ac9=_0x55d57c;let _0x5bdf69=this['_getDocumentData'](),_0x56611f=(0x0,_0x23f840['buildInsertTableColumnsMutationActions'])(_0x5bdf69,this[_0x9a6ac9(0x247)],_0x225040,_0x31a63e,_0x23f840[_0x9a6ac9(0x269)][_0x9a6ac9(0x213)],{'bodyPath':this[_0x9a6ac9(0x1c8)]()});return _0x56611f?this[_0x9a6ac9(0x1e3)](_0x5bdf69,_0x56611f[_0x9a6ac9(0x211)]):!0x1;}[_0x55d57c(0x26f)](){const _0x30292d=_0x55d57c;return this[_0x30292d(0x22f)](Math[_0x30292d(0x27d)](0x0,this[_0x30292d(0x220)]()-0x1),0x1);}[_0x55d57c(0x21b)](_0x2fa22c){const _0x15f222=_0x55d57c;return this[_0x15f222(0x1f4)](_0x2fa22c,0x1);}[_0x55d57c(0x1f4)](_0x106a46,_0x45ca2=0x1){const _0x3fca0d=_0x55d57c;return!!this[_0x3fca0d(0x23c)][_0x3fca0d(0x214)](_0x23f840[_0x3fca0d(0x227)]['id'],{'endRow':_0x106a46+_0x45ca2-0x1,'segmentId':this['_segmentId'],'startRow':_0x106a46,'tableId':this[_0x3fca0d(0x247)],'unitId':this[_0x3fca0d(0x284)]});}[_0x55d57c(0x242)](_0x18bbaa){const _0x5b39f7=_0x55d57c;return this[_0x5b39f7(0x1c7)](_0x18bbaa,0x1);}[_0x55d57c(0x1c7)](_0x51e2fa,_0x144ea8=0x1){const _0x3d2979=_0x55d57c;return!!this[_0x3d2979(0x23c)][_0x3d2979(0x214)](_0x23f840[_0x3d2979(0x1e7)]['id'],{'endColumn':_0x51e2fa+_0x144ea8-0x1,'segmentId':this['_segmentId'],'startColumn':_0x51e2fa,'tableId':this[_0x3d2979(0x247)],'unitId':this[_0x3d2979(0x284)]});}['deleteTable'](){const _0x217704=_0x55d57c;return!!this[_0x217704(0x23c)][_0x217704(0x214)](_0x23f840[_0x217704(0x1ef)]['id'],{'segmentId':this[_0x217704(0x1de)],'tableId':this[_0x217704(0x247)],'unitId':this[_0x217704(0x284)]});}['moveTableBy'](_0x1cc351,_0x5cb087){const _0x139fce=_0x55d57c;let _0x26187d=this['_getDocumentData']();return this[_0x139fce(0x1e3)](_0x26187d,(0x0,_0x23f840[_0x139fce(0x217)])(_0x26187d,this[_0x139fce(0x247)],_0x1cc351,_0x5cb087));}[_0x55d57c(0x1dd)](_0x5ecf2f){const _0x20a0ca=_0x55d57c;let _0x52a97d=this[_0x20a0ca(0x27b)]();return this[_0x20a0ca(0x1e3)](_0x52a97d,(0x0,_0x23f840[_0x20a0ca(0x201)])(_0x52a97d,this[_0x20a0ca(0x247)],_0x5ecf2f,this[_0x20a0ca(0x1c8)]()));}[_0x55d57c(0x1ff)](_0x1b368d,_0x29e5a0,_0x13a020=_0x23f840['DocsTableInsertPosition'][_0x55d57c(0x1f7)]){const _0x27368d=_0x55d57c;return this[_0x27368d(0x266)](_0x1b368d,0x1,_0x29e5a0,_0x13a020);}[_0x55d57c(0x266)](_0x4d7e1c,_0xba0c7b,_0x3b3f70,_0x2d8d00=_0x23f840[_0x55d57c(0x269)][_0x55d57c(0x1f7)]){const _0x1ae373=_0x55d57c;let _0xb08399=this[_0x1ae373(0x27b)](),_0x5c89ea=(0x0,_0x23f840['buildMoveTableRowsMutationActions'])(_0xb08399,this[_0x1ae373(0x247)],_0x4d7e1c,_0x3b3f70,_0xba0c7b,_0x2d8d00,this[_0x1ae373(0x1c8)]());return _0x5c89ea?this['_mutateActions'](_0xb08399,_0x5c89ea[_0x1ae373(0x211)]):!0x1;}['moveColumn'](_0x5ed3ed,_0x229550,_0xccaa5a=_0x23f840[_0x55d57c(0x269)]['Left']){return this['moveColumns'](_0x5ed3ed,0x1,_0x229550,_0xccaa5a);}[_0x55d57c(0x21a)](_0x473483,_0x4668ad,_0x4fcd9f,_0x4eb25d=_0x23f840[_0x55d57c(0x269)][_0x55d57c(0x285)]){const _0x136e1a=_0x55d57c;let _0x3d5a83=this[_0x136e1a(0x27b)](),_0x1994f2=(0x0,_0x23f840[_0x136e1a(0x256)])(_0x3d5a83,this[_0x136e1a(0x247)],_0x473483,_0x4fcd9f,_0x4668ad,_0x4eb25d,this[_0x136e1a(0x1c8)]());return _0x1994f2?this[_0x136e1a(0x1e3)](_0x3d5a83,_0x1994f2[_0x136e1a(0x211)]):!0x1;}[_0x55d57c(0x1da)](_0x429d73){const _0xd7f4b2=_0x55d57c;try{let _0x9f2b44=this[_0xd7f4b2(0x27b)](),_0x144a84=(0x0,_0x23f840[_0xd7f4b2(0x238)])({'documentData':_0x9f2b44,'tableId':this[_0xd7f4b2(0x247)],..._0x429d73});return _0x144a84?this[_0xd7f4b2(0x1e3)](_0x9f2b44,_0x144a84[_0xd7f4b2(0x211)],_0x429d73):!0x1;}catch{return!0x1;}}[_0x55d57c(0x1ab)](_0x403351){const _0x4e98b3=_0x55d57c;try{let _0x2fefdb=this[_0x4e98b3(0x27b)](),_0x14d7ce=(0x0,_0x23f840[_0x4e98b3(0x268)])({'documentData':_0x2fefdb,'tableId':this[_0x4e98b3(0x247)],..._0x403351});return _0x14d7ce?this[_0x4e98b3(0x1e3)](_0x2fefdb,_0x14d7ce[_0x4e98b3(0x211)],_0x403351):!0x1;}catch{return!0x1;}}[_0x55d57c(0x264)](_0x17c373,_0x509bb4,_0x59297d){const _0x136355=_0x55d57c;let _0x5556ee=this[_0x136355(0x27b)](),_0x35fc88=(0x0,_0x23f840['getTableActionBodyPath'])(this['_document']['getDocumentDataModel']()[_0x136355(0x1bc)](),this[_0x136355(0x1de)]);return this[_0x136355(0x1e3)](_0x5556ee,(0x0,_0x23f840[_0x136355(0x1c2)])({'documentData':_0x5556ee,'tableId':this[_0x136355(0x247)],'row':_0x17c373,'column':_0x509bb4,'text':_0x59297d},_0x35fc88),this[_0x136355(0x1fb)](_0x17c373,_0x509bb4));}['setCellBackground'](_0x37bd1c,_0x5275f4){const _0x3c84bb=_0x55d57c;let _0xc5c428=this['_getDocumentData']();return this[_0x3c84bb(0x1e3)](_0xc5c428,(0x0,_0x23f840[_0x3c84bb(0x288)])(_0xc5c428,{'tableId':this[_0x3c84bb(0x247)],..._0x37bd1c,'value':_0x5275f4}),_0x37bd1c);}[_0x55d57c(0x246)](_0x4df4ed,_0x2db6ad){const _0x223418=_0x55d57c;let _0x51163d=this[_0x223418(0x27b)]();return this['_mutateActions'](_0x51163d,(0x0,_0x23f840[_0x223418(0x255)])({'documentData':_0x51163d,'tableId':this['_tableId'],..._0x4df4ed,'margin':_0x2db6ad}),_0x4df4ed);}[_0x55d57c(0x216)](_0x1f2b81){const _0x29cf33=_0x55d57c;let _0xb3c9fa=this[_0x29cf33(0x27b)]();return this['_mutateActions'](_0xb3c9fa,(0x0,_0x23f840[_0x29cf33(0x251)])(_0xb3c9fa,this['_tableId'],_0x1f2b81));}[_0x55d57c(0x275)](_0x3fa136,_0x1c77c0){const _0x3b2dfb=_0x55d57c;let _0x43abbd=this[_0x3b2dfb(0x27b)]();return this[_0x3b2dfb(0x1e3)](_0x43abbd,this[_0x3b2dfb(0x1f9)](_0x43abbd,_0x3fa136,_0x1c77c0),_0x3fa136);}[_0x55d57c(0x233)](_0xd0e87){const _0x3e462d=_0x55d57c;return this[_0x3e462d(0x215)](this[_0x3e462d(0x1d4)](),_0xd0e87);}[_0x55d57c(0x28c)](_0x39e4fe){const _0x1f4091=_0x55d57c;return this[_0x1f4091(0x275)](this['getTableRange'](),_0x39e4fe);}['setTableStyle'](_0x19837a){const _0x49a02e=_0x55d57c;let _0x17b833=this['_getDocumentData'](),_0x5f48c9=this[_0x49a02e(0x1d4)](),_0x533de4=_0x19837a['backgroundColor']?(0x0,_0x23f840[_0x49a02e(0x288)])(_0x17b833,{'tableId':this['_tableId'],..._0x5f48c9,'value':_0x19837a[_0x49a02e(0x25f)]}):null,_0x5b0fb8=_0x19837a['border']?this[_0x49a02e(0x1f9)](_0x17b833,_0x5f48c9,_0x19837a[_0x49a02e(0x1c6)]):null;return this[_0x49a02e(0x1e3)](_0x17b833,_0x35ecf7[_0x49a02e(0x21f)][_0x49a02e(0x281)](_0x533de4,_0x5b0fb8),_0x5f48c9);}[_0x55d57c(0x210)](_0x3d7331,_0x124276,_0x150728=_0x35ecf7[_0x55d57c(0x1cb)][_0x55d57c(0x1fe)]){const _0x4fb865=_0x55d57c;var _0x3b0466;let _0x41b0dc=this[_0x4fb865(0x27b)]();return(_0x3b0466=_0x41b0dc['tableSource'])!=null&&(_0x3b0466=_0x3b0466[this[_0x4fb865(0x247)]])!=null&&_0x3b0466[_0x4fb865(0x1af)][_0x3d7331]?this[_0x4fb865(0x1e3)](_0x41b0dc,(0x0,_0x23f840[_0x4fb865(0x279)])(_0x41b0dc,this['_tableId'],_0x3d7331,_0x124276,_0x150728)):!0x1;}[_0x55d57c(0x273)](_0x2c390f){const _0x246d95=_0x55d57c;var _0x34fc46;let _0x5d3ea8=(_0x34fc46=this[_0x246d95(0x1e2)]())==null||(_0x34fc46=_0x34fc46[_0x246d95(0x1af)][_0x2c390f])==null?void 0x0:_0x34fc46[_0x246d95(0x1cc)];return _0x5d3ea8?_0x35ecf7[_0x246d95(0x1b7)]['deepClone'](_0x5d3ea8):null;}['setColumnWidth'](_0x29590d,_0xd7dde9){const _0x1c9b67=_0x55d57c;var _0x49c326;let _0x379015=this[_0x1c9b67(0x27b)]();return(_0x49c326=_0x379015[_0x1c9b67(0x22d)])!=null&&(_0x49c326=_0x49c326[this[_0x1c9b67(0x247)]])!=null&&_0x49c326[_0x1c9b67(0x1ee)][_0x29590d]?this[_0x1c9b67(0x1e3)](_0x379015,(0x0,_0x23f840[_0x1c9b67(0x1b5)])(_0x379015,this[_0x1c9b67(0x247)],_0x29590d,_0xd7dde9)):!0x1;}['distributeRows'](_0x13ec56=0x0,_0x10db6c=this[_0x55d57c(0x1c9)]()){const _0x5265a0=_0x55d57c;let _0x539efa=this[_0x5265a0(0x27b)]();return this[_0x5265a0(0x1e3)](_0x539efa,(0x0,_0x23f840[_0x5265a0(0x1b8)])(_0x539efa,this[_0x5265a0(0x247)],_0x13ec56,_0x13ec56+_0x10db6c-0x1));}['distributeColumns'](_0x106150=0x0,_0x2466e8=this[_0x55d57c(0x220)]()){const _0x4f57d7=_0x55d57c;let _0x4142d3=this[_0x4f57d7(0x27b)]();return this[_0x4f57d7(0x1e3)](_0x4142d3,(0x0,_0x23f840[_0x4f57d7(0x1be)])(_0x4142d3,this[_0x4f57d7(0x247)],_0x106150,_0x106150+_0x2466e8-0x1));}[_0x55d57c(0x1eb)](){var _0x6ce3f;return((_0x6ce3f=this['getMetadata']())==null?void 0x0:_0x6ce3f['headerRowCount'])??0x0;}['setHeaderRowCount'](_0x98c4f2){const _0x362e42=_0x55d57c;let _0x19e9c5=this['_getDocumentData'](),_0x451488=(0x0,_0x23f840[_0x362e42(0x1d0)])(_0x19e9c5,this[_0x362e42(0x247)],_0x98c4f2);return _0x451488?this['_mutateActions'](_0x19e9c5,_0x451488[_0x362e42(0x211)]):!0x1;}[_0x55d57c(0x224)](_0x300f0f){const _0x55d154=_0x55d57c;return this[_0x55d154(0x21d)](_0x300f0f);}[_0x55d57c(0x1ae)](){const _0x453b6d=_0x55d57c;var _0x19b7a7;return((_0x19b7a7=this[_0x453b6d(0x254)]())==null?void 0x0:_0x19b7a7[_0x453b6d(0x1b6)])??!0x1;}[_0x55d57c(0x258)](){const _0x56c358=_0x55d57c;let _0x2f5d8f=this[_0x56c358(0x27b)](),_0x119245=(0x0,_0x23f840['buildInsertTableTitleRowMutationActions'])(_0x2f5d8f,this[_0x56c358(0x247)],this[_0x56c358(0x1c8)]());return _0x119245?this[_0x56c358(0x1e3)](_0x2f5d8f,_0x119245[_0x56c358(0x211)]):!0x1;}[_0x55d57c(0x1b2)](_0x1cc8db,_0x12751a){const _0x979ba8=_0x55d57c;return!!this[_0x979ba8(0x23c)][_0x979ba8(0x214)](_0x23f840[_0x979ba8(0x27f)]['id'],{'unitId':this[_0x979ba8(0x284)],'tableId':this[_0x979ba8(0x247)],'segmentId':this['_segmentId'],'column':_0x1cc8db,'config':_0x12751a});}[_0x55d57c(0x23a)](_0x384ea8,_0x553a11){const _0x2f8b52=_0x55d57c;let _0x10d8d9=this[_0x2f8b52(0x27b)]();return this[_0x2f8b52(0x1e3)](_0x10d8d9,(0x0,_0x23f840[_0x2f8b52(0x22e)])(_0x10d8d9,this[_0x2f8b52(0x1d3)](),this['_tableId'],_0x384ea8,_0x553a11,this['_getBodyPath']()));}[_0x55d57c(0x1f9)](_0x80a343,_0x424f3e,_0x3e171d){const _0x29e109=_0x55d57c;return(0x0,_0x23f840[_0x29e109(0x262)])({'documentData':_0x80a343,'tableId':this['_tableId'],..._0x424f3e,'preset':_0x3e171d['preset']??_0x23f840['DocsTableBorderPreset'][_0x29e109(0x1d1)],'border':_0x3e171d[_0x29e109(0x1c6)]??{'color':{'rgb':_0x3e171d['color']??this[_0x29e109(0x278)][_0x29e109(0x1d6)](_0x35ecf7['ThemeService'])[_0x29e109(0x26b)]('gray.900')},'width':{'v':_0x3e171d[_0x29e109(0x1e9)]??0x1},'dashStyle':_0x35ecf7['DashStyleType']['SOLID']}});}['_getDocumentData'](){const _0x41afe1=_0x55d57c;let _0x36aa02=this['_document']['getDocumentDataModel']()[_0x41afe1(0x1bc)]();return this[_0x41afe1(0x1de)]?{...this[_0x41afe1(0x27c)][_0x41afe1(0x1d5)](this[_0x41afe1(0x1de)])[_0x41afe1(0x1bc)](),'documentStyle':_0x36aa02[_0x41afe1(0x232)],'tableSource':_0x36aa02[_0x41afe1(0x22d)]}:_0x36aa02;}[_0x55d57c(0x1d3)](){const _0x403169=_0x55d57c;return this[_0x403169(0x278)][_0x403169(0x1d6)](_0x23f840[_0x403169(0x1f5)])[_0x403169(0x1df)](this['_unitId'],this['_document'][_0x403169(0x1d5)]()['getSnapshot']());}[_0x55d57c(0x1c8)](){const _0x296de8=_0x55d57c;return(0x0,_0x23f840[_0x296de8(0x239)])(this['_document'][_0x296de8(0x1d5)]()[_0x296de8(0x1bc)](),this['_segmentId']);}['_mutateActions'](_0x3a4def,_0x57181d,_0x3331f9){const _0x4e706a=_0x55d57c;return(0x0,_0x23f840[_0x4e706a(0x282)])(this[_0x4e706a(0x23c)],this[_0x4e706a(0x284)],_0x3a4def,_0x57181d,_0x3331f9?{'tableId':this[_0x4e706a(0x247)],'segmentId':this[_0x4e706a(0x1de)],..._0x3331f9}:void 0x0);}};_0x4d92f2=_0x4e5de4([_0xb58257(0x3,_0x35ecf7['ICommandService']),_0xb58257(0x4,(0x0,_0x35ecf7[_0x55d57c(0x1bd)])(_0x35ecf7[_0x55d57c(0x1f6)]))],_0x4d92f2);var _0x21f137=class extends _0x5a9859[_0x55d57c(0x27a)]{[_0x55d57c(0x1e8)](_0x314f14=''){const _0x24c95f=_0x55d57c;return this[_0x24c95f(0x259)](_0x314f14)[_0x24c95f(0x219)](_0x133451=>this[_0x24c95f(0x280)](_0x133451[_0x24c95f(0x1b3)],_0x314f14));}[_0x55d57c(0x23f)](_0x311f9f,_0x5d72d5=''){const _0x22edde=_0x55d57c;return this[_0x22edde(0x259)](_0x5d72d5)[_0x22edde(0x26c)](_0xbfff4d=>_0xbfff4d[_0x22edde(0x1b3)]===_0x311f9f)?this[_0x22edde(0x280)](_0x311f9f,_0x5d72d5):null;}['getTableAt'](_0x4f8fbd,_0x53d0f1=''){const _0x58f074=_0x55d57c;var _0xb4a9e6;let _0x2024eb=(_0xb4a9e6=this[_0x58f074(0x259)](_0x53d0f1)[_0x4f8fbd])==null?void 0x0:_0xb4a9e6['tableId'];return _0x2024eb?this['_createFDocumentTable'](_0x2024eb,_0x53d0f1):null;}[_0x55d57c(0x253)](){const _0x5216f7=_0x55d57c;let _0xccc1e6=this[_0x5216f7(0x278)][_0x5216f7(0x1d6)](_0x23f840['DocsTableSelectionService'])['getStableTableSelection']();return _0xccc1e6!=null&&_0xccc1e6['tableId']?this[_0x5216f7(0x280)](_0xccc1e6[_0x5216f7(0x1b3)],_0xccc1e6['segmentId']):null;}[_0x55d57c(0x245)](_0x553573,_0x428792=''){return this['findTables'](_0x553573,_0x428792)[0x0]??null;}[_0x55d57c(0x26a)](_0x392e2f,_0x53d503=''){const _0xb3889=_0x55d57c;let _0x136811=this['_getTableDocumentData'](_0x53d503),_0xaefb28=typeof _0x392e2f==_0xb3889(0x277)?{'text':_0x392e2f}:_0x392e2f;return this[_0xb3889(0x1e8)](_0x53d503)[_0xb3889(0x1f1)](_0x3e36f8=>{const _0x3cb74c=_0xb3889;let _0x2f3aca=_0x3e36f8[_0x3cb74c(0x222)]();return!(_0xaefb28[_0x3cb74c(0x1b3)]&&_0x2f3aca!==_0xaefb28[_0x3cb74c(0x1b3)]||_0xaefb28[_0x3cb74c(0x1cf)]&&!this[_0x3cb74c(0x1ec)](_0x136811,_0x2f3aca,_0xaefb28[_0x3cb74c(0x1cf)])||_0xaefb28[_0x3cb74c(0x1b0)]&&!this[_0x3cb74c(0x248)](_0x3e36f8,0x0,_0xaefb28[_0x3cb74c(0x1b0)])||_0xaefb28['titleText']&&!this['_rowContainsText'](_0x3e36f8,0x0,_0xaefb28['titleText']));});}['insertTable'](_0x17849b,_0x31fb8a,_0x1c3aef={}){const _0x4bc663=_0x55d57c;let _0x57399b=this[_0x4bc663(0x278)][_0x4bc663(0x1d6)](_0x35ecf7['ICommandService']),_0x2b6818=_0x1c3aef[_0x4bc663(0x1b3)]??(0x0,_0x35ecf7[_0x4bc663(0x26e)])(0x6);return _0x57399b[_0x4bc663(0x214)](_0x23f840['DocsTableInsertTableCommand']['id'],{..._0x1c3aef,'unitId':this[_0x4bc663(0x222)](),'rows':_0x17849b,'columns':_0x31fb8a,'tableId':_0x2b6818})?this[_0x4bc663(0x280)](_0x2b6818,_0x1c3aef['segmentId']??''):null;}[_0x55d57c(0x257)](_0x44edce,_0x2e729c={}){const _0x509f66=_0x55d57c;let _0x28c56f=this[_0x509f66(0x278)]['get'](_0x35ecf7[_0x509f66(0x1d2)]),_0xdb79ff=_0x2e729c[_0x509f66(0x1b3)]??(0x0,_0x35ecf7[_0x509f66(0x26e)])(0x6);return _0x28c56f['syncExecuteCommand'](_0x23f840[_0x509f66(0x200)]['id'],{..._0x2e729c,'unitId':this[_0x509f66(0x222)](),'values':_0x44edce,'tableId':_0xdb79ff})?this[_0x509f66(0x280)](_0xdb79ff,_0x2e729c[_0x509f66(0x1f3)]??''):null;}[_0x55d57c(0x259)](_0x3ee237=''){let {tables:_0x232f6b=[]}=this['getBody'](_0x3ee237);return _0x232f6b;}['_getTableDocumentData'](_0x511331=''){const _0x182a44=_0x55d57c;let _0x171130=this[_0x182a44(0x1d5)]()[_0x182a44(0x1bc)]();return _0x511331?{...this['getDocumentDataModel'](_0x511331)[_0x182a44(0x1bc)](),'documentStyle':_0x171130['documentStyle'],'tableSource':_0x171130[_0x182a44(0x22d)]}:_0x171130;}['_createFDocumentTable'](_0x777a10,_0x521f28=''){const _0x6c014c=_0x55d57c;return this[_0x6c014c(0x278)][_0x6c014c(0x25b)](_0x4d92f2,this,_0x777a10,_0x521f28);}[_0x55d57c(0x1ec)](_0x43c148,_0x448505,_0x3596df){const _0x3a614f=_0x55d57c;var _0x3485a3;let _0x416b20=(0x0,_0x23f840['getTableRangeById'])(_0x43c148,_0x448505);if(!_0x416b20)return!0x1;let _0x4d171e=(_0x3485a3=_0x43c148['body'])==null?void 0x0:_0x3485a3[_0x3a614f(0x260)];return _0x4d171e?_0x4d171e[_0x3a614f(0x231)](_0x416b20[_0x3a614f(0x270)],_0x416b20['endOffset'])['includes'](_0x3596df):!0x1;}[_0x55d57c(0x248)](_0x105679,_0x5d12b9,_0x2be7b7){const _0x2f98a6=_0x55d57c;return Array['from']({'length':_0x105679[_0x2f98a6(0x220)]()},(_0x2c65cb,_0x1e143c)=>_0x105679[_0x2f98a6(0x271)](_0x5d12b9,_0x1e143c))[_0x2f98a6(0x26c)](_0x496b04=>_0x496b04['includes'](_0x2be7b7));}};_0x5a9859[_0x55d57c(0x27a)][_0x55d57c(0x1fd)](_0x21f137),Object[_0x55d57c(0x206)](_0x31d60b,_0x55d57c(0x20c),{'enumerable':!0x0,'get':function(){return _0x4d92f2;}}),_0x31d60b['FDocumentTableCell']=_0x375d01;}));function _0x38aa(_0x249eaf,_0x3f207b){_0x249eaf=_0x249eaf-0x1ab;const _0x15f3a2=_0x15f3();let _0x38aa1=_0x15f3a2[_0x249eaf];return _0x38aa1;}function _0x15f3(){const _0x48b43f=['insertColumnsBefore','insertRowBefore','body','setRowHeight','actions','endOffset','Right','syncExecuteCommand','setCellBackground','setDefaultCellMargin','buildMoveFloatingTableMutationActions','Column','map','moveColumns','deleteRow','Below','setHeaderRowCount','insertRowAfter','JSONX','getColumnCount','@univerjs-pro/docs-table','getId','959048aLzssF','pinHeaderRows','Table','12lTwDIY','DocsTableDeleteRowsCommand','call','setBackgroundColor','getOwnPropertyDescriptor','DocsTableSortDirection','DocsTableBorderPreset','tableSource','buildSortTableMutationActions','insertColumnsAfter','insertColumnAfter','slice','documentStyle','setTableBackground','Row','selectRange','getMargin','symbol','buildMergeCellsMutationActions','getTableActionBodyPath','sortByColumn','type','_commandService','iterator','344LINcmr','getTable','appendRow','setMargin','deleteColumn','39244KmnHOL','selectColumn','findTableByText','setCellMargin','_tableId','_rowContainsText','headerRowCount','40vXpbee','setText','UniverProDocsTableFacade','1606565SGzauu','getColumnsRange','DocsTableColumnInsertPosition','3279IaCCpB','buildSetTableDefaultCellMarginMutationActions','selectRow','getTableAtSelection','getMetadata','buildSetTableCellMarginMutationActions','buildMoveTableColumnsMutationActions','insertTableFromData','insertTitleRow','_getTables','getCellMargin','createInstance','DocsTableInsertTablePosition','default','DocsTableSelectionKind','backgroundColor','dataStream','getDefaultCellMarginOverride','buildSetTableBorderMutationActions','insertRowsBefore','setCellText','DashStyleType','moveRows','DEFAULT_DOCS_TABLE_CELL_MARGIN','buildUnmergeCellsMutationActions','DocsTableInsertPosition','findTables','getColorFromTheme','some','describe','generateRandomId','appendColumn','startOffset','getCellText','DocsTableRowInsertPosition','getRowHeight','columnTypes','setBorder','getTableRangeById','string','_injector','buildResizeTableRowActionsFromHeight','FDocument','_getDocumentData','_document','max','insertRowsAfter','DocsTableSetColumnTypeCommand','_createFDocumentTable','compose','executeRichTextTableActions','getMarginOverride','_unitId','Left','cells','margin','buildSetTableBackgroundMutationActions','Module','object','getSegmentId','setTableBorder','unmergeCells','getColumnIndex','from','hasTitleRow','tableRows','headerText','567531KuBUve','setColumnType','tableId','constructor','buildResizeTableColumnActionsFromWidth','titleRow','Tools','buildDistributeTableRowsMutationActions','unmerge','buildInsertTableColumnsMutationActions','@univerjs/core/facade','getSnapshot','Inject','buildDistributeTableColumnsMutationActions','getDefaultCellMargin','getCellContentRange','mergeTo','buildSetTableCellTextMutationActions','resolveTableMetadata','selectTable','getRowsRange','border','deleteColumns','_getBodyPath','getRowCount','deepClone','TableRowHeightRule','trHeight','getRange','getRowRange','text','buildSetTableHeaderRowCountMutationActions','All','ICommandService','_serializeModel','getTableRange','getDocumentDataModel','get','decorate','Cell','UniverDocsFacade','mergeCells','_row','_table','moveTableToOffset','_segmentId','serializeDocument','FEnum','DocsTableSelectionService','getSource','_mutateActions','UniverProDocsTable','function','prototype','DocsTableDeleteColumnsCommand','getTables','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getHeaderRowCount','_tableContainsText','getCellMarginOverride','tableColumns','DocsTableDeleteTableCommand','_column','filter','254422mTGnLZ','segmentId','deleteRows','DocsTableModel','Injector','Above','amd','_buildBorderActions','length','getCellRange','cellMargin','extend','AT_LEAST','moveRow','DocsTableInsertTableCommand','buildMoveTableToOffsetMutationActions','328451LXwumB','selectCell','Range','getCellInsertOffset','defineProperty','toStringTag','selectColumns','getRowIndex','rows','tableCells','FDocumentTable'];_0x15f3=function(){return _0x48b43f;};return _0x15f3();}