@univerjs-pro/docs-table 1.1.0 → 1.2.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,3 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import type { IRichTextEditingMutationParams } from '@univerjs/docs';
3
+ export declare const DocsTableApplyActionsCommand: ICommand<IRichTextEditingMutationParams>;
@@ -1,6 +1,7 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableColumnTypeConfig, IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableSetColumnTypeCommandParams extends IDocsTableSegmentOptions {
4
+ unitId?: string;
4
5
  tableId?: string;
5
6
  column?: number;
6
7
  config: IDocsTableColumnTypeConfig;
@@ -10,6 +10,7 @@ export interface ISetTableCellTextActionResult {
10
10
  nextDocumentData: IDocumentData;
11
11
  }
12
12
  export interface ITableTextReplacement {
13
+ valueRangeId?: string;
13
14
  endOffset: number;
14
15
  startOffset: number;
15
16
  text: string;
@@ -1,5 +1,22 @@
1
- import type { IDocsTableColumnTypeConfig, IDocsTableMetadataResource } from './type';
1
+ import type { IDocumentData, ITable, ITableCell, ITableRow, JSONXActions } from '@univerjs/core';
2
+ import type { IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableMetadataResource } from './type';
3
+ import { BooleanNumber } from '@univerjs/core';
2
4
  export declare function normalizeDocsTableMetadataResource(resource?: Partial<IDocsTableMetadataResource> | null): IDocsTableMetadataResource;
3
5
  export declare function setHeaderRowCountInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, headerRowCount: number): IDocsTableMetadataResource;
4
6
  export declare function setTitleRowInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, titleRow: boolean): IDocsTableMetadataResource;
5
7
  export declare function setColumnTypeInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, column: number, config: IDocsTableColumnTypeConfig): IDocsTableMetadataResource;
8
+ export interface IDocsTableSource extends ITable {
9
+ docsTableMetadataVersion?: 1;
10
+ }
11
+ export interface IDocsTableMetadataCell extends ITableCell {
12
+ docsTableCellId?: string;
13
+ }
14
+ export interface IDocsTableMetadataRow extends ITableRow {
15
+ docsTableTitleRow?: boolean;
16
+ docsTableLegacyTitleRow?: boolean;
17
+ docsTableLegacyHeaderRow?: BooleanNumber;
18
+ }
19
+ export declare function resolveDocsTableMetadata(table: ITable, legacy?: IDocsTableMetadata): IDocsTableMetadata;
20
+ export declare function resolveDocsTableMetadataResource(documentData: IDocumentData, legacy: IDocsTableMetadataResource): IDocsTableMetadataResource;
21
+ export declare function buildTableMetadataMigrationActions(table: ITable, legacy?: IDocsTableMetadata): JSONXActions | null;
22
+ export declare function buildSetTableColumnTypeActions(table: ITable, column: number, config: IDocsTableColumnTypeConfig, legacy?: IDocsTableMetadata): JSONXActions | null;
@@ -1,8 +1,9 @@
1
- import { Disposable, IResourceManagerService } from '@univerjs/core';
1
+ import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { DocsTableModel } from '../models/docs-table-model';
3
3
  export declare class DocsTableResourceController extends Disposable {
4
4
  private readonly _resourceManagerService;
5
5
  private readonly _docsTableModel;
6
- constructor(_resourceManagerService: IResourceManagerService, _docsTableModel: DocsTableModel);
6
+ private readonly _univerInstanceService;
7
+ constructor(_resourceManagerService: IResourceManagerService, _docsTableModel: DocsTableModel, _univerInstanceService: IUniverInstanceService);
7
8
  private _initResource;
8
9
  }
@@ -979,6 +979,7 @@ export declare class FDocumentTable {
979
979
  * ```
980
980
  */
981
981
  sortByColumn(column: number, direction: DocsTableSortDirection): boolean;
982
+ private _buildBorderActions;
982
983
  private _getDocumentData;
983
984
  private _serializeModel;
984
985
  private _getBodyPath;
@@ -1,3 +1,4 @@
1
+ import type { IDocumentData, ITable } from '@univerjs/core';
1
2
  import type { IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableMetadataResource } from '../common/type';
2
3
  import { Disposable } from '@univerjs/core';
3
4
  export declare class DocsTableModel extends Disposable {
@@ -8,6 +9,8 @@ export declare class DocsTableModel extends Disposable {
8
9
  tableId?: string;
9
10
  }>;
10
11
  getTableMetadata(unitId: string, tableId: string): IDocsTableMetadata | undefined;
12
+ resolveTableMetadata(unitId: string, table: ITable): IDocsTableMetadata;
13
+ serializeDocument(unitId: string, documentData: IDocumentData): IDocsTableMetadataResource;
11
14
  setHeaderRowCount(unitId: string, tableId: string, headerRowCount: number): void;
12
15
  setTitleRow(unitId: string, tableId: string, titleRow: boolean): void;
13
16
  setColumnType(unitId: string, tableId: string, column: number, config: IDocsTableColumnTypeConfig): void;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3be5ec,_0x33afdb){const _0x5e81a5=_0x4034,_0x1baf22=_0x3be5ec();while(!![]){try{const _0x13724b=-parseInt(_0x5e81a5(0x19d))/0x1*(parseInt(_0x5e81a5(0x138))/0x2)+parseInt(_0x5e81a5(0x154))/0x3*(parseInt(_0x5e81a5(0x1b0))/0x4)+-parseInt(_0x5e81a5(0x131))/0x5+parseInt(_0x5e81a5(0x120))/0x6*(parseInt(_0x5e81a5(0x19c))/0x7)+-parseInt(_0x5e81a5(0x17c))/0x8+parseInt(_0x5e81a5(0x13f))/0x9+-parseInt(_0x5e81a5(0x13a))/0xa*(parseInt(_0x5e81a5(0xf5))/0xb);if(_0x13724b===_0x33afdb)break;else _0x1baf22['push'](_0x1baf22['shift']());}catch(_0xe23716){_0x1baf22['push'](_0x1baf22['shift']());}}}(_0x36e0,0x35def),function(_0x448dcf,_0x326d97){const _0x4d0364=_0x4034;typeof exports==_0x4d0364(0x195)&&typeof module<'u'?_0x326d97(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x4d0364(0x178)&&define['amd']?define([_0x4d0364(0x133),'@univerjs-pro/docs-table',_0x4d0364(0x152),_0x4d0364(0x16a),_0x4d0364(0x1c6)],_0x326d97):(_0x448dcf=typeof globalThis<'u'?globalThis:_0x448dcf||self,_0x326d97(_0x448dcf[_0x4d0364(0x12c)]={},_0x448dcf[_0x4d0364(0x137)],_0x448dcf['UniverCore'],_0x448dcf['UniverCoreFacade'],_0x448dcf[_0x4d0364(0x1bf)]));}(this,function(_0x510155,_0x4dd93b,_0x1999b9,_0x487c0e,_0x5a829b){const _0x32e825=_0x4034;Object[_0x32e825(0x188)](_0x510155,Symbol[_0x32e825(0xe3)],{'value':_0x32e825(0x14c)});var _0x1692e1=class extends _0x487c0e['FEnum']{get[_0x32e825(0x123)](){const _0xd6cd39=_0x32e825;return _0x4dd93b[_0xd6cd39(0x123)];}get[_0x32e825(0x15f)](){const _0x4cc9b0=_0x32e825;return _0x4dd93b[_0x4cc9b0(0x15f)];}get[_0x32e825(0x1c4)](){return _0x4dd93b['DocsTableSelectionKind'];}get[_0x32e825(0x115)](){return _0x4dd93b['DocsTableRowInsertPosition'];}get['DocsTableColumnInsertPosition'](){const _0xe1ce75=_0x32e825;return _0x4dd93b[_0xe1ce75(0x14e)];}get[_0x32e825(0x147)](){const _0x52b441=_0x32e825;return _0x4dd93b[_0x52b441(0x147)];}get['DocsTableSortDirection'](){const _0x5238b1=_0x32e825;return _0x4dd93b[_0x5238b1(0x136)];}get[_0x32e825(0x130)](){const _0x3092c4=_0x32e825;return _0x1999b9[_0x3092c4(0x130)];}};_0x487c0e[_0x32e825(0x164)][_0x32e825(0x1b5)](_0x1692e1);var _0x47a610=class{constructor(_0x51bd48,_0x53c6b3,_0x1cf9b7){const _0x53dbc9=_0x32e825;this[_0x53dbc9(0x194)]=_0x51bd48,this[_0x53dbc9(0x13b)]=_0x53c6b3,this[_0x53dbc9(0xef)]=_0x1cf9b7;}[_0x32e825(0x15d)](){const _0x388152=_0x32e825;return this[_0x388152(0x194)];}['getRowIndex'](){return this['_row'];}[_0x32e825(0x18f)](){const _0x5d158d=_0x32e825;return this[_0x5d158d(0xef)];}['getText'](){const _0x569028=_0x32e825;return this[_0x569028(0x194)][_0x569028(0x1a0)](this[_0x569028(0x13b)],this[_0x569028(0xef)]);}[_0x32e825(0x1b4)](){const _0x9e070f=_0x32e825;return this[_0x9e070f(0x194)][_0x9e070f(0x1bc)](this[_0x9e070f(0x13b)],this[_0x9e070f(0xef)]);}[_0x32e825(0x199)](){const _0x1c7aeb=_0x32e825;return this['_table'][_0x1c7aeb(0x106)](this['_row'],this[_0x1c7aeb(0xef)]);}[_0x32e825(0x180)](){const _0x391b87=_0x32e825;return this[_0x391b87(0x194)][_0x391b87(0x102)](this[_0x391b87(0x13b)],this[_0x391b87(0xef)]);}[_0x32e825(0x196)](){const _0xe94355=_0x32e825;return this[_0xe94355(0x194)][_0xe94355(0x1a4)](this[_0xe94355(0x13b)],this[_0xe94355(0xef)]);}[_0x32e825(0x1c5)](_0x2fa238){const _0x26c2cd=_0x32e825;return this[_0x26c2cd(0x194)]['setCellMargin'](this[_0x26c2cd(0x194)][_0x26c2cd(0x1c1)](this[_0x26c2cd(0x13b)],this[_0x26c2cd(0xef)]),_0x2fa238);}['clearMarginOverride'](){const _0x21a382=_0x32e825;return this[_0x21a382(0x194)][_0x21a382(0x167)](this[_0x21a382(0x194)][_0x21a382(0x1c1)](this[_0x21a382(0x13b)],this[_0x21a382(0xef)]),null);}[_0x32e825(0x13c)](_0x42e83f){const _0x49b371=_0x32e825;return this[_0x49b371(0x194)][_0x49b371(0x18a)](this[_0x49b371(0x13b)],this[_0x49b371(0xef)],_0x42e83f);}[_0x32e825(0x144)](_0x12169d){const _0x494d0b=_0x32e825;return this['_table'][_0x494d0b(0xe8)](this[_0x494d0b(0x194)][_0x494d0b(0x1c1)](this[_0x494d0b(0x13b)],this['_column']),_0x12169d);}['setBorder'](_0x18ebba){const _0x267910=_0x32e825;return this[_0x267910(0x194)]['setBorder'](this[_0x267910(0x194)]['getCellRange'](this[_0x267910(0x13b)],this[_0x267910(0xef)]),_0x18ebba);}[_0x32e825(0xfb)](_0x5c42be,_0x4af02f){const _0x425f0c=_0x32e825;return this['_table'][_0x425f0c(0x1ab)]({'startRow':this[_0x425f0c(0x13b)],'startColumn':this[_0x425f0c(0xef)],'endRow':this[_0x425f0c(0x13b)]+_0x5c42be-0x1,'endColumn':this[_0x425f0c(0xef)]+_0x4af02f-0x1});}[_0x32e825(0x103)](){const _0x383562=_0x32e825;return this[_0x383562(0x194)][_0x383562(0x135)](this[_0x383562(0x194)]['getCellRange'](this[_0x383562(0x13b)],this[_0x383562(0xef)]));}};function _0x25391f(_0x1a52b9){'@babel/helpers - typeof';const _0x4eb6e5=_0x32e825;return _0x25391f=typeof Symbol==_0x4eb6e5(0x178)&&typeof Symbol[_0x4eb6e5(0x109)]==_0x4eb6e5(0x19b)?function(_0x2218bd){return typeof _0x2218bd;}:function(_0x13fef5){const _0x498d7b=_0x4eb6e5;return _0x13fef5&&typeof Symbol==_0x498d7b(0x178)&&_0x13fef5[_0x498d7b(0x192)]===Symbol&&_0x13fef5!==Symbol[_0x498d7b(0x126)]?_0x498d7b(0x19b):typeof _0x13fef5;},_0x25391f(_0x1a52b9);}function _0x1cc609(_0x48ed84,_0x150135){const _0x296620=_0x32e825;if(_0x25391f(_0x48ed84)!=_0x296620(0x195)||!_0x48ed84)return _0x48ed84;var _0x1088f9=_0x48ed84[Symbol[_0x296620(0xec)]];if(_0x1088f9!==void 0x0){var _0x5021a7=_0x1088f9[_0x296620(0x101)](_0x48ed84,_0x150135||'default');if(_0x25391f(_0x5021a7)!=_0x296620(0x195))return _0x5021a7;throw TypeError(_0x296620(0x1bb));}return(_0x150135===_0x296620(0xfe)?String:Number)(_0x48ed84);}function _0x2b7648(_0x98c6cd){const _0x4ed628=_0x32e825;var _0x39f00c=_0x1cc609(_0x98c6cd,_0x4ed628(0xfe));return _0x25391f(_0x39f00c)=='symbol'?_0x39f00c:_0x39f00c+'';}function _0x3dd63e(_0x5b9d17,_0x2bce51,_0x21e4c7){const _0x53050a=_0x32e825;return(_0x2bce51=_0x2b7648(_0x2bce51))in _0x5b9d17?Object[_0x53050a(0x188)](_0x5b9d17,_0x2bce51,{'value':_0x21e4c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b9d17[_0x2bce51]=_0x21e4c7,_0x5b9d17;}function _0x3c73a1(_0x37aa40,_0x3d1789){return function(_0x19103f,_0x195241){_0x3d1789(_0x19103f,_0x195241,_0x37aa40);};}function _0x3e3bd3(_0x40eab4,_0x49c82a,_0x1c7b64,_0x3eea08){const _0x21097c=_0x32e825;var _0x1226f8=arguments[_0x21097c(0x193)],_0x4127d6=_0x1226f8<0x3?_0x49c82a:_0x3eea08===null?_0x3eea08=Object[_0x21097c(0xe1)](_0x49c82a,_0x1c7b64):_0x3eea08,_0x199c8f;if(typeof Reflect==_0x21097c(0x195)&&typeof Reflect[_0x21097c(0x169)]=='function')_0x4127d6=Reflect[_0x21097c(0x169)](_0x40eab4,_0x49c82a,_0x1c7b64,_0x3eea08);else{for(var _0x50d880=_0x40eab4[_0x21097c(0x193)]-0x1;_0x50d880>=0x0;_0x50d880--)(_0x199c8f=_0x40eab4[_0x50d880])&&(_0x4127d6=(_0x1226f8<0x3?_0x199c8f(_0x4127d6):_0x1226f8>0x3?_0x199c8f(_0x49c82a,_0x1c7b64,_0x4127d6):_0x199c8f(_0x49c82a,_0x1c7b64))||_0x4127d6);}return _0x1226f8>0x3&&_0x4127d6&&Object[_0x21097c(0x188)](_0x49c82a,_0x1c7b64,_0x4127d6),_0x4127d6;}let _0x57145d=class{constructor(_0x652a10,_0x5d355c,_0x2ea9b4,_0x5a15eb,_0x38e2c2){const _0x3cf676=_0x32e825;this[_0x3cf676(0xfa)]=_0x652a10,this[_0x3cf676(0xe2)]=_0x5d355c,this[_0x3cf676(0xf1)]=_0x2ea9b4,this['_commandService']=_0x5a15eb,this[_0x3cf676(0x171)]=_0x38e2c2,_0x3dd63e(this,'_unitId',void 0x0),this[_0x3cf676(0x1a6)]=this[_0x3cf676(0xfa)][_0x3cf676(0x149)]();}[_0x32e825(0x149)](){const _0x43661d=_0x32e825;return this[_0x43661d(0xe2)];}[_0x32e825(0x100)](){const _0x209aae=_0x32e825;return this[_0x209aae(0xf1)];}[_0x32e825(0x179)](){const _0x58096c=_0x32e825;return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':this[_0x58096c(0x1ae)](),'metadata':this[_0x58096c(0x148)](),'source':this[_0x58096c(0x142)]()};}['describe'](){const _0x55747c=_0x32e825;let _0x108582=this[_0x55747c(0x148)](),_0x24c067=this[_0x55747c(0x142)](),_0xf2e1b=this[_0x55747c(0x1ae)]();return{'id':this[_0x55747c(0xe2)],'rowCount':this[_0x55747c(0x176)](),'columnCount':_0xf2e1b,'headerRowCount':(_0x108582==null?void 0x0:_0x108582[_0x55747c(0xe9)])??0x0,'titleRow':(_0x108582==null?void 0x0:_0x108582[_0x55747c(0x11e)])??!0x1,'columns':Array['from']({'length':_0xf2e1b},(_0x55defc,_0x420d4a)=>{const _0x3d2c64=_0x55747c;var _0x3f43af,_0x297788;return{'index':_0x420d4a,'type':_0x108582==null||(_0x3f43af=_0x108582['columnTypes'])==null||(_0x3f43af=_0x3f43af[_0x420d4a])==null?void 0x0:_0x3f43af[_0x3d2c64(0x18b)],'width':_0x24c067==null||(_0x297788=_0x24c067[_0x3d2c64(0x1b8)][_0x420d4a])==null?void 0x0:_0x297788[_0x3d2c64(0x119)][_0x3d2c64(0x12b)]['v']};}),'sampleRows':Array[_0x55747c(0x17f)]({'length':this[_0x55747c(0x176)]()},(_0x4d72ba,_0x1396da)=>Array[_0x55747c(0x17f)]({'length':_0xf2e1b},(_0x441de4,_0x1d2964)=>this['getCellText'](_0x1396da,_0x1d2964)))[_0x55747c(0x139)](_0x5033fe=>_0x5033fe['some'](_0x48878a=>_0x48878a['length']>0x0))['slice'](0x0,0x5)};}[_0x32e825(0x176)](){const _0x5caa0a=_0x32e825;var _0x8c01d7;return((_0x8c01d7=this[_0x5caa0a(0x142)]())==null?void 0x0:_0x8c01d7['tableRows'][_0x5caa0a(0x193)])??0x0;}[_0x32e825(0x1ae)](){const _0x412aed=_0x32e825;var _0xac8379;return((_0xac8379=this[_0x412aed(0x142)]())==null?void 0x0:_0xac8379['tableColumns']['length'])??0x0;}[_0x32e825(0x10f)](_0x2065cc,_0x297dd2){const _0x505dbb=_0x32e825;var _0x353eaa;return(_0x353eaa=this[_0x505dbb(0x142)]())!=null&&(_0x353eaa=_0x353eaa[_0x505dbb(0x1be)][_0x2065cc])!=null&&_0x353eaa[_0x505dbb(0x189)][_0x297dd2]?this[_0x505dbb(0x171)][_0x505dbb(0x1a2)](_0x47a610,this,_0x2065cc,_0x297dd2):null;}[_0x32e825(0x1a0)](_0x199cb4,_0x3b32e7){const _0xe710=_0x32e825;var _0x3ee614,_0x56a159;let _0x28ad1f=(_0x3ee614=(0x0,_0x4dd93b[_0xe710(0x1af)])(this[_0xe710(0x14f)](),this[_0xe710(0xe2)]))==null||(_0x3ee614=_0x3ee614[_0xe710(0x1a8)][_0x199cb4])==null?void 0x0:_0x3ee614['cells'][_0x3b32e7];return _0x28ad1f?((_0x56a159=this[_0xe710(0x14f)]()[_0xe710(0x155)])==null?void 0x0:_0x56a159['dataStream'][_0xe710(0xe4)](_0x28ad1f[_0xe710(0x1ac)]+0x1,_0x28ad1f[_0xe710(0x1ba)])[_0xe710(0x1aa)](/\r\n$/,''))??'':'';}[_0x32e825(0x102)](_0x3324a2,_0x54d285){const _0x31928c=_0x32e825;var _0x207ec4;let _0x325352=this['getSource'](),_0x1a8dce=_0x325352==null||(_0x207ec4=_0x325352[_0x31928c(0x1be)][_0x3324a2])==null?void 0x0:_0x207ec4['tableCells'][_0x54d285];return _0x1a8dce?_0x1999b9[_0x31928c(0x19e)][_0x31928c(0x113)](_0x1a8dce[_0x31928c(0x151)]??_0x325352[_0x31928c(0x1a1)]??_0x4dd93b[_0x31928c(0xf9)]):null;}[_0x32e825(0x1a4)](_0x2a6494,_0x11d55f){const _0x39fa6d=_0x32e825;var _0x113b6b;let _0x36c260=(_0x113b6b=this['getSource']())==null||(_0x113b6b=_0x113b6b['tableRows'][_0x2a6494])==null?void 0x0:_0x113b6b[_0x39fa6d(0x189)][_0x11d55f];return _0x36c260!=null&&_0x36c260[_0x39fa6d(0x151)]?_0x1999b9[_0x39fa6d(0x19e)][_0x39fa6d(0x113)](_0x36c260[_0x39fa6d(0x151)]):null;}[_0x32e825(0xe7)](){const _0x403928=_0x32e825;var _0x39ce3e;return _0x1999b9[_0x403928(0x19e)][_0x403928(0x113)](((_0x39ce3e=this[_0x403928(0x142)]())==null?void 0x0:_0x39ce3e[_0x403928(0x1a1)])??_0x4dd93b[_0x403928(0xf9)]);}[_0x32e825(0xe5)](){const _0xdbea79=_0x32e825;var _0x571d19;let _0x1f95f4=(_0x571d19=this[_0xdbea79(0x142)]())==null?void 0x0:_0x571d19[_0xdbea79(0x1a1)];return _0x1f95f4?_0x1999b9[_0xdbea79(0x19e)][_0xdbea79(0x113)](_0x1f95f4):null;}[_0x32e825(0x148)](){const _0x1d25d2=_0x32e825;return this[_0x1d25d2(0x171)][_0x1d25d2(0x1b6)](_0x4dd93b[_0x1d25d2(0x18e)])[_0x1d25d2(0x118)](this['_unitId'],this[_0x1d25d2(0xe2)]);}['getSource'](){const _0x173efc=_0x32e825;var _0x28f12e;return(_0x28f12e=this[_0x173efc(0x14f)]()[_0x173efc(0x181)])==null?void 0x0:_0x28f12e[this[_0x173efc(0xe2)]];}['getRange'](){const _0x4c4103=_0x32e825;return(0x0,_0x4dd93b[_0x4c4103(0x1af)])(this[_0x4c4103(0x14f)](),this['_tableId']);}[_0x32e825(0x10e)](){const _0x22526b=_0x32e825;return{'startRow':0x0,'endRow':Math[_0x22526b(0x1b2)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x22526b(0x1b2)](0x0,this[_0x22526b(0x1ae)]()-0x1)};}['getCellRange'](_0x3f13a3,_0x1098ce){return{'startRow':_0x3f13a3,'endRow':_0x3f13a3,'startColumn':_0x1098ce,'endColumn':_0x1098ce};}[_0x32e825(0x1bc)](_0x46ccef,_0xcaab5){const _0xc394dd=_0x32e825;var _0x51511c;let _0x425b1c=(_0x51511c=(0x0,_0x4dd93b[_0xc394dd(0x1af)])(this[_0xc394dd(0x14f)](),this['_tableId']))==null||(_0x51511c=_0x51511c[_0xc394dd(0x1a8)][_0x46ccef])==null?void 0x0:_0x51511c[_0xc394dd(0x165)][_0xcaab5];if(!_0x425b1c)return null;let _0x11bf1f=_0x425b1c[_0xc394dd(0x1ac)]+0x1;return{'startOffset':_0x11bf1f,'endOffset':Math['max'](_0x11bf1f,_0x425b1c['endOffset']-0x1),'segmentId':this[_0xc394dd(0xf1)]};}['getCellInsertOffset'](_0x29cf2d,_0x2df425){const _0x339cc0=_0x32e825;let _0x1251bb=this[_0x339cc0(0x1bc)](_0x29cf2d,_0x2df425);return _0x1251bb?Math[_0x339cc0(0x1b2)](_0x1251bb[_0x339cc0(0x1ac)],_0x1251bb[_0x339cc0(0x1ba)]-0x1):null;}['getRowRange'](_0x3c6dcb){return this['getRowsRange'](_0x3c6dcb,0x1);}[_0x32e825(0x140)](_0x521814,_0x5e47ce=0x1){const _0x1bf070=_0x32e825;return{'startRow':_0x521814,'endRow':_0x521814+_0x5e47ce-0x1,'startColumn':0x0,'endColumn':Math[_0x1bf070(0x1b2)](0x0,this[_0x1bf070(0x1ae)]()-0x1)};}[_0x32e825(0x156)](_0x32bd04){const _0x5c60d6=_0x32e825;return this[_0x5c60d6(0x17d)](_0x32bd04,0x1);}['getColumnsRange'](_0x3ae2e5,_0x366e9b=0x1){const _0x382e61=_0x32e825;return{'startRow':0x0,'endRow':Math[_0x382e61(0x1b2)](0x0,this['getRowCount']()-0x1),'startColumn':_0x3ae2e5,'endColumn':_0x3ae2e5+_0x366e9b-0x1};}[_0x32e825(0x10c)](){const _0x5e9a4d=_0x32e825;return this[_0x5e9a4d(0x173)](this[_0x5e9a4d(0x10e)](),_0x4dd93b['DocsTableSelectionKind'][_0x5e9a4d(0x19f)]);}[_0x32e825(0xed)](_0x753fd5){const _0x188d1b=_0x32e825;return this[_0x188d1b(0x182)](_0x753fd5,0x1);}[_0x32e825(0x182)](_0x9c5dfc,_0x3a4bd8=0x1){const _0x122a9f=_0x32e825;return this['selectRange'](this[_0x122a9f(0x140)](_0x9c5dfc,_0x3a4bd8),_0x4dd93b[_0x122a9f(0x1c4)][_0x122a9f(0x159)]);}[_0x32e825(0x17b)](_0x4c62f3){const _0x2814ec=_0x32e825;return this[_0x2814ec(0x1b9)](_0x4c62f3,0x1);}[_0x32e825(0x1b9)](_0x15b9d5,_0x51a738=0x1){const _0x1b9c0a=_0x32e825;return this[_0x1b9c0a(0x173)](this[_0x1b9c0a(0x17d)](_0x15b9d5,_0x51a738),_0x4dd93b['DocsTableSelectionKind'][_0x1b9c0a(0x111)]);}[_0x32e825(0x17e)](_0xa188a2,_0x103230){const _0x59c23e=_0x32e825;return this[_0x59c23e(0x173)](this[_0x59c23e(0x1c1)](_0xa188a2,_0x103230),_0x4dd93b[_0x59c23e(0x1c4)][_0x59c23e(0xfd)]);}[_0x32e825(0x173)](_0x2cae25,_0x5d697d=_0x4dd93b[_0x32e825(0x1c4)][_0x32e825(0x1c2)]){const _0x1d3968=_0x32e825;return this[_0x1d3968(0x171)][_0x1d3968(0x1b6)](_0x4dd93b[_0x1d3968(0x15c)])[_0x1d3968(0x110)]({..._0x2cae25,'kind':_0x5d697d,'segmentId':this[_0x1d3968(0xf1)],'tableId':this[_0x1d3968(0xe2)]}),!0x0;}[_0x32e825(0x190)](_0x368a13){return this['insertRowsBefore'](_0x368a13,0x1);}[_0x32e825(0x143)](_0x534eb2){return this['insertRowsAfter'](_0x534eb2,0x1);}['insertRowsBefore'](_0x1d0065,_0x9ade64){const _0x1581df=_0x32e825;let _0x18d6d1=this[_0x1581df(0x14f)](),_0x2a657c=(0x0,_0x4dd93b[_0x1581df(0x125)])(_0x18d6d1,this[_0x1581df(0xe2)],_0x1d0065,_0x9ade64,_0x4dd93b['DocsTableInsertPosition'][_0x1581df(0x184)],this['_getBodyPath']());return _0x2a657c?this[_0x1581df(0x1a5)](_0x18d6d1,_0x2a657c[_0x1581df(0x170)]):!0x1;}[_0x32e825(0xf2)](_0x6775e7,_0x3f49ac){const _0x250f9f=_0x32e825;let _0x417bfe=this[_0x250f9f(0x14f)](),_0x1c672a=(0x0,_0x4dd93b['buildInsertTableRowsMutationActions'])(_0x417bfe,this[_0x250f9f(0xe2)],_0x6775e7,_0x3f49ac,_0x4dd93b[_0x250f9f(0x185)]['Below'],this[_0x250f9f(0xf4)]());return _0x1c672a?this[_0x250f9f(0x1a5)](_0x417bfe,_0x1c672a[_0x250f9f(0x170)]):!0x1;}[_0x32e825(0xeb)](){const _0x41f237=_0x32e825;return this[_0x41f237(0xf2)](Math['max'](0x0,this[_0x41f237(0x176)]()-0x1),0x1);}[_0x32e825(0xff)](_0x24cd33){const _0x4245f5=_0x32e825;return this[_0x4245f5(0x1c0)](_0x24cd33,0x1);}['insertColumnAfter'](_0x5c21f9){return this['insertColumnsAfter'](_0x5c21f9,0x1);}[_0x32e825(0x1c0)](_0x18abf3,_0x258644){const _0x2a7bb7=_0x32e825;let _0x3ea2b8=this[_0x2a7bb7(0x14f)](),_0x45e971=(0x0,_0x4dd93b[_0x2a7bb7(0xee)])(_0x3ea2b8,this['_tableId'],_0x18abf3,_0x258644,_0x4dd93b[_0x2a7bb7(0x185)][_0x2a7bb7(0x186)],{'bodyPath':this[_0x2a7bb7(0xf4)]()});return _0x45e971?this[_0x2a7bb7(0x1a5)](_0x3ea2b8,_0x45e971[_0x2a7bb7(0x170)]):!0x1;}[_0x32e825(0x172)](_0x50bfe9,_0xb741e4){const _0x123eaa=_0x32e825;let _0x4d83ea=this[_0x123eaa(0x14f)](),_0x5be21d=(0x0,_0x4dd93b[_0x123eaa(0xee)])(_0x4d83ea,this['_tableId'],_0x50bfe9,_0xb741e4,_0x4dd93b['DocsTableInsertPosition'][_0x123eaa(0x16b)],{'bodyPath':this[_0x123eaa(0xf4)]()});return _0x5be21d?this['_mutateActions'](_0x4d83ea,_0x5be21d[_0x123eaa(0x170)]):!0x1;}['appendColumn'](){const _0x308d8d=_0x32e825;return this['insertColumnsAfter'](Math['max'](0x0,this[_0x308d8d(0x1ae)]()-0x1),0x1);}[_0x32e825(0x14a)](_0x33915b){const _0x299cd1=_0x32e825;return this[_0x299cd1(0x105)](_0x33915b,0x1);}[_0x32e825(0x105)](_0x22d85b,_0x7c05f8=0x1){const _0x5f4558=_0x32e825;return!!this[_0x5f4558(0x12d)][_0x5f4558(0x174)](_0x4dd93b[_0x5f4558(0x18c)]['id'],{'endRow':_0x22d85b+_0x7c05f8-0x1,'segmentId':this[_0x5f4558(0xf1)],'startRow':_0x22d85b,'tableId':this[_0x5f4558(0xe2)],'unitId':this['_unitId']});}['deleteColumn'](_0x437ab4){const _0x50bf41=_0x32e825;return this[_0x50bf41(0x114)](_0x437ab4,0x1);}[_0x32e825(0x114)](_0x5b34d1,_0x59b0ce=0x1){const _0x10f9bb=_0x32e825;return!!this['_commandService']['syncExecuteCommand'](_0x4dd93b['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x5b34d1+_0x59b0ce-0x1,'segmentId':this['_segmentId'],'startColumn':_0x5b34d1,'tableId':this['_tableId'],'unitId':this[_0x10f9bb(0x1a6)]});}[_0x32e825(0x150)](){const _0x6142a5=_0x32e825;return!!this[_0x6142a5(0x12d)][_0x6142a5(0x174)](_0x4dd93b['DocsTableDeleteTableCommand']['id'],{'segmentId':this['_segmentId'],'tableId':this['_tableId'],'unitId':this[_0x6142a5(0x1a6)]});}[_0x32e825(0x15e)](_0x34af5f,_0x15e38e){const _0x330692=_0x32e825;let _0x1a53c7=this['_getDocumentData']();return this[_0x330692(0x1a5)](_0x1a53c7,(0x0,_0x4dd93b[_0x330692(0x1ad)])(_0x1a53c7,this[_0x330692(0xe2)],_0x34af5f,_0x15e38e));}[_0x32e825(0x12f)](_0x159141){const _0x2ceaa2=_0x32e825;let _0xcd2972=this[_0x2ceaa2(0x14f)]();return this['_mutateActions'](_0xcd2972,(0x0,_0x4dd93b[_0x2ceaa2(0x124)])(_0xcd2972,this['_tableId'],_0x159141,this[_0x2ceaa2(0xf4)]()));}['moveRow'](_0x5e33ac,_0x4d5150,_0x7e80ef=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x184)]){const _0x5664bc=_0x32e825;return this[_0x5664bc(0x168)](_0x5e33ac,0x1,_0x4d5150,_0x7e80ef);}[_0x32e825(0x168)](_0x1ec6d9,_0x2ab9e9,_0x57eaea,_0x59d323=_0x4dd93b['DocsTableInsertPosition'][_0x32e825(0x184)]){const _0x25c6cc=_0x32e825;let _0x2def04=this['_getDocumentData'](),_0x4c3da8=(0x0,_0x4dd93b[_0x25c6cc(0x16e)])(_0x2def04,this[_0x25c6cc(0xe2)],_0x1ec6d9,_0x57eaea,_0x2ab9e9,_0x59d323,this[_0x25c6cc(0xf4)]());return _0x4c3da8?this[_0x25c6cc(0x1a5)](_0x2def04,_0x4c3da8[_0x25c6cc(0x170)]):!0x1;}[_0x32e825(0x13e)](_0x3f71a6,_0xe04848,_0x15cc2d=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x186)]){const _0xa60ce8=_0x32e825;return this[_0xa60ce8(0x1c3)](_0x3f71a6,0x1,_0xe04848,_0x15cc2d);}[_0x32e825(0x1c3)](_0x6bfe98,_0x42e7d1,_0x1a4019,_0x2eadea=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x186)]){const _0x383c92=_0x32e825;let _0x2899b3=this[_0x383c92(0x14f)](),_0x8c95e1=(0x0,_0x4dd93b[_0x383c92(0x1a3)])(_0x2899b3,this['_tableId'],_0x6bfe98,_0x1a4019,_0x42e7d1,_0x2eadea,this[_0x383c92(0xf4)]());return _0x8c95e1?this[_0x383c92(0x1a5)](_0x2899b3,_0x8c95e1[_0x383c92(0x170)]):!0x1;}[_0x32e825(0x1ab)](_0x5c721a){const _0x1b25ff=_0x32e825;try{let _0x3925b8=this[_0x1b25ff(0x14f)](),_0x281ee8=(0x0,_0x4dd93b[_0x1b25ff(0x10a)])({'documentData':_0x3925b8,'tableId':this[_0x1b25ff(0xe2)],..._0x5c721a});return _0x281ee8?this[_0x1b25ff(0x1a5)](_0x3925b8,_0x281ee8[_0x1b25ff(0x170)],_0x5c721a):!0x1;}catch{return!0x1;}}[_0x32e825(0x135)](_0xe6d2fd){const _0x5060c7=_0x32e825;try{let _0x2e5162=this[_0x5060c7(0x14f)](),_0x34152e=(0x0,_0x4dd93b[_0x5060c7(0x141)])({'documentData':_0x2e5162,'tableId':this[_0x5060c7(0xe2)],..._0xe6d2fd});return _0x34152e?this[_0x5060c7(0x1a5)](_0x2e5162,_0x34152e[_0x5060c7(0x170)],_0xe6d2fd):!0x1;}catch{return!0x1;}}[_0x32e825(0x18a)](_0x4a7dc7,_0x3af6a2,_0x51a55e){const _0x141857=_0x32e825;let _0x53f68b=this[_0x141857(0x14f)](),_0x564613=(0x0,_0x4dd93b['getTableActionBodyPath'])(this[_0x141857(0xfa)][_0x141857(0x1b3)]()[_0x141857(0x12e)](),this[_0x141857(0xf1)]);return this[_0x141857(0x1a5)](_0x53f68b,(0x0,_0x4dd93b[_0x141857(0x183)])({'documentData':_0x53f68b,'tableId':this[_0x141857(0xe2)],'row':_0x4a7dc7,'column':_0x3af6a2,'text':_0x51a55e},_0x564613),this['getCellRange'](_0x4a7dc7,_0x3af6a2));}[_0x32e825(0xe8)](_0x371e2d,_0x553ed6){const _0x2e386a=_0x32e825;let _0x344748=this[_0x2e386a(0x14f)]();return this[_0x2e386a(0x1a5)](_0x344748,(0x0,_0x4dd93b[_0x2e386a(0x187)])(_0x344748,{'tableId':this[_0x2e386a(0xe2)],..._0x371e2d,'value':_0x553ed6}),_0x371e2d);}[_0x32e825(0x167)](_0x52f316,_0x3d33fa){const _0x3e55a5=_0x32e825;let _0x1df72f=this[_0x3e55a5(0x14f)]();return this['_mutateActions'](_0x1df72f,(0x0,_0x4dd93b[_0x3e55a5(0x1a7)])({'documentData':_0x1df72f,'tableId':this[_0x3e55a5(0xe2)],..._0x52f316,'margin':_0x3d33fa}),_0x52f316);}[_0x32e825(0xea)](_0xc7b070){const _0x52fafa=_0x32e825;let _0x4f55f4=this['_getDocumentData']();return this[_0x52fafa(0x1a5)](_0x4f55f4,(0x0,_0x4dd93b['buildSetTableDefaultCellMarginMutationActions'])(_0x4f55f4,this[_0x52fafa(0xe2)],_0xc7b070));}[_0x32e825(0x161)](_0x1d85ac,_0x34dd6b){const _0x15fc92=_0x32e825;let _0xb2190f=this['_getDocumentData']();return this['_mutateActions'](_0xb2190f,(0x0,_0x4dd93b['buildSetTableBorderMutationActions'])({'documentData':_0xb2190f,'tableId':this['_tableId'],..._0x1d85ac,'preset':_0x34dd6b[_0x15fc92(0x14d)]??_0x4dd93b[_0x15fc92(0x147)]['All'],'border':_0x34dd6b[_0x15fc92(0x108)]??{'color':{'rgb':_0x34dd6b[_0x15fc92(0x10b)]??_0x15fc92(0xf7)},'width':{'v':_0x34dd6b[_0x15fc92(0x12b)]??0x1},'dashStyle':_0x1999b9[_0x15fc92(0x130)]['SOLID']}}),_0x1d85ac);}[_0x32e825(0xf8)](_0x3c4346){const _0x4350da=_0x32e825;return this[_0x4350da(0xe8)](this[_0x4350da(0x10e)](),_0x3c4346);}[_0x32e825(0x121)](_0x4cfb1a){const _0x2f84ce=_0x32e825;return this[_0x2f84ce(0x161)](this['getTableRange'](),_0x4cfb1a);}[_0x32e825(0x16f)](_0x32b1cb){const _0x5089c7=_0x32e825;let _0x65b242=!_0x32b1cb[_0x5089c7(0x11f)]||this[_0x5089c7(0xf8)](_0x32b1cb[_0x5089c7(0x11f)]),_0x3c1158=!_0x32b1cb[_0x5089c7(0x108)]||this[_0x5089c7(0x121)](_0x32b1cb[_0x5089c7(0x108)]);return _0x65b242&&_0x3c1158;}[_0x32e825(0x1bd)](_0x184ab3,_0x4f4e1c,_0x37d5fa=_0x1999b9[_0x32e825(0x13d)][_0x32e825(0xf0)]){const _0x264af6=_0x32e825;var _0x2694bf;let _0xdca0dc=this['_getDocumentData']();return(_0x2694bf=_0xdca0dc[_0x264af6(0x181)])!=null&&(_0x2694bf=_0x2694bf[this[_0x264af6(0xe2)]])!=null&&_0x2694bf[_0x264af6(0x1be)][_0x184ab3]?this[_0x264af6(0x1a5)](_0xdca0dc,(0x0,_0x4dd93b[_0x264af6(0x162)])(_0xdca0dc,this[_0x264af6(0xe2)],_0x184ab3,_0x4f4e1c,_0x37d5fa)):!0x1;}[_0x32e825(0x10d)](_0x1c62a7){const _0x4af1b4=_0x32e825;var _0x1f7b38;let _0x43ab42=(_0x1f7b38=this[_0x4af1b4(0x142)]())==null||(_0x1f7b38=_0x1f7b38['tableRows'][_0x1c62a7])==null?void 0x0:_0x1f7b38[_0x4af1b4(0x157)];return _0x43ab42?_0x1999b9[_0x4af1b4(0x19e)][_0x4af1b4(0x113)](_0x43ab42):null;}['setColumnWidth'](_0x47eba9,_0x14f9f5){const _0x3f2d6b=_0x32e825;var _0x56ac64;let _0x39b09f=this[_0x3f2d6b(0x14f)]();return(_0x56ac64=_0x39b09f['tableSource'])!=null&&(_0x56ac64=_0x56ac64[this[_0x3f2d6b(0xe2)]])!=null&&_0x56ac64['tableColumns'][_0x47eba9]?this['_mutateActions'](_0x39b09f,(0x0,_0x4dd93b['buildResizeTableColumnActionsFromWidth'])(_0x39b09f,this[_0x3f2d6b(0xe2)],_0x47eba9,_0x14f9f5)):!0x1;}['distributeRows'](_0x232684=0x0,_0x570b49=this[_0x32e825(0x176)]()){const _0x1686ec=_0x32e825;let _0x5a9f5a=this[_0x1686ec(0x14f)]();return this[_0x1686ec(0x1a5)](_0x5a9f5a,(0x0,_0x4dd93b[_0x1686ec(0x122)])(_0x5a9f5a,this[_0x1686ec(0xe2)],_0x232684,_0x232684+_0x570b49-0x1));}[_0x32e825(0x175)](_0x134284=0x0,_0x5dce10=this[_0x32e825(0x1ae)]()){const _0x21556e=_0x32e825;let _0x3c4b39=this[_0x21556e(0x14f)]();return this[_0x21556e(0x1a5)](_0x3c4b39,(0x0,_0x4dd93b[_0x21556e(0x145)])(_0x3c4b39,this[_0x21556e(0xe2)],_0x134284,_0x134284+_0x5dce10-0x1));}['getHeaderRowCount'](){const _0x40512c=_0x32e825;var _0x570a6a;return((_0x570a6a=this[_0x40512c(0x148)]())==null?void 0x0:_0x570a6a[_0x40512c(0xe9)])??0x0;}['setHeaderRowCount'](_0x3a2833){const _0x48b693=_0x32e825;let _0x1fc180=this[_0x48b693(0x171)][_0x48b693(0x1b6)](_0x4dd93b[_0x48b693(0x18e)]),_0xddf6e7=this[_0x48b693(0x14f)](),_0x45bb78=(0x0,_0x4dd93b['buildSetTableHeaderRowCountMutationActions'])(_0xddf6e7,this[_0x48b693(0xe2)],_0x3a2833);if(!_0x45bb78)return!0x1;let _0x5a28f3=this[_0x48b693(0x1a5)](_0xddf6e7,_0x45bb78[_0x48b693(0x170)]);return _0x5a28f3&&_0x1fc180[_0x48b693(0x153)](this[_0x48b693(0x1a6)],this[_0x48b693(0xe2)],_0x45bb78[_0x48b693(0xe9)]),_0x5a28f3;}[_0x32e825(0x19a)](_0x1bb7c5){const _0x32e045=_0x32e825;return this[_0x32e045(0x153)](_0x1bb7c5);}[_0x32e825(0x116)](){const _0x1c008e=_0x32e825;var _0x36ec78;return((_0x36ec78=this[_0x1c008e(0x148)]())==null?void 0x0:_0x36ec78['titleRow'])??!0x1;}[_0x32e825(0x134)](){const _0x197f33=_0x32e825;let _0x26975c=this[_0x197f33(0x171)]['get'](_0x4dd93b['DocsTableModel']),_0x4c27ee=this['_getDocumentData'](),_0x3c711f=(0x0,_0x4dd93b[_0x197f33(0x146)])(_0x4c27ee,this[_0x197f33(0xe2)],this['_getBodyPath']());if(!_0x3c711f)return!0x1;let _0x3b59d8=this[_0x197f33(0x1a5)](_0x4c27ee,_0x3c711f[_0x197f33(0x170)]);return _0x3b59d8&&_0x26975c['setTitleRow'](this[_0x197f33(0x1a6)],this[_0x197f33(0xe2)],!0x0),_0x3b59d8;}[_0x32e825(0x198)](_0xde166b,_0x43d84b){const _0x1a8ce4=_0x32e825;return this['_injector'][_0x1a8ce4(0x1b6)](_0x4dd93b[_0x1a8ce4(0x18e)])[_0x1a8ce4(0x198)](this[_0x1a8ce4(0x1a6)],this[_0x1a8ce4(0xe2)],_0xde166b,_0x43d84b),!0x0;}['sortByColumn'](_0x34e7d1,_0x2880c9){const _0x5dfd08=_0x32e825;let _0x3e7351=this[_0x5dfd08(0x14f)]();return this[_0x5dfd08(0x1a5)](_0x3e7351,(0x0,_0x4dd93b[_0x5dfd08(0x197)])(_0x3e7351,this[_0x5dfd08(0xf3)](),this['_tableId'],_0x34e7d1,_0x2880c9,this[_0x5dfd08(0xf4)]()));}[_0x32e825(0x14f)](){const _0x2363d1=_0x32e825;let _0x2bd978=this[_0x2363d1(0xfa)]['getDocumentDataModel']()[_0x2363d1(0x12e)]();return this[_0x2363d1(0xf1)]?{...this[_0x2363d1(0xfa)][_0x2363d1(0x1b3)](this[_0x2363d1(0xf1)])[_0x2363d1(0x12e)](),'documentStyle':_0x2bd978['documentStyle'],'tableSource':_0x2bd978['tableSource']}:_0x2bd978;}[_0x32e825(0xf3)](){const _0x59bd4c=_0x32e825;return this['_injector'][_0x59bd4c(0x1b6)](_0x4dd93b[_0x59bd4c(0x18e)])[_0x59bd4c(0x1b7)](this['_unitId']);}[_0x32e825(0xf4)](){const _0x584f9b=_0x32e825;return(0x0,_0x4dd93b[_0x584f9b(0x18d)])(this['_document'][_0x584f9b(0x1b3)]()['getSnapshot'](),this[_0x584f9b(0xf1)]);}['_mutateActions'](_0x165848,_0x268c70,_0x5e662d){const _0x46c18e=_0x32e825;return(0x0,_0x4dd93b[_0x46c18e(0x128)])(this[_0x46c18e(0x12d)],this[_0x46c18e(0x1a6)],_0x165848,_0x268c70,_0x5e662d?{'tableId':this['_tableId'],'segmentId':this[_0x46c18e(0xf1)],..._0x5e662d}:void 0x0);}};_0x57145d=_0x3e3bd3([_0x3c73a1(0x3,_0x1999b9[_0x32e825(0x14b)]),_0x3c73a1(0x4,(0x0,_0x1999b9[_0x32e825(0x160)])(_0x1999b9[_0x32e825(0x15a)]))],_0x57145d);var _0x5368c0=class extends _0x5a829b[_0x32e825(0xfc)]{[_0x32e825(0x16d)](_0x1444d4=''){const _0x42f408=_0x32e825;return this['_getTables'](_0x1444d4)[_0x42f408(0x127)](_0x5acd40=>this['_createFDocumentTable'](_0x5acd40[_0x42f408(0x11a)],_0x1444d4));}[_0x32e825(0x15d)](_0x787f55,_0x543bc0=''){const _0x46a1c8=_0x32e825;return this[_0x46a1c8(0x166)](_0x543bc0)[_0x46a1c8(0xf6)](_0x11d99b=>_0x11d99b[_0x46a1c8(0x11a)]===_0x787f55)?this[_0x46a1c8(0x107)](_0x787f55,_0x543bc0):null;}[_0x32e825(0x1b1)](_0x121088,_0x2cff34=''){const _0x477972=_0x32e825;var _0x2e8eb3;let _0x39cb0d=(_0x2e8eb3=this['_getTables'](_0x2cff34)[_0x121088])==null?void 0x0:_0x2e8eb3[_0x477972(0x11a)];return _0x39cb0d?this[_0x477972(0x107)](_0x39cb0d,_0x2cff34):null;}['getTableAtSelection'](){const _0x5c1c49=_0x32e825;let _0x5cca13=this['_injector']['get'](_0x4dd93b['DocsTableSelectionService'])[_0x5c1c49(0x1a9)]();return _0x5cca13!=null&&_0x5cca13['tableId']?this[_0x5c1c49(0x107)](_0x5cca13['tableId'],_0x5cca13[_0x5c1c49(0x158)]):null;}['findTableByText'](_0x5a96d0,_0x24cef4=''){const _0xdd64c1=_0x32e825;return this[_0xdd64c1(0x191)](_0x5a96d0,_0x24cef4)[0x0]??null;}[_0x32e825(0x191)](_0xa6c07,_0x563c95=''){const _0x1715e=_0x32e825;let _0x5137f5=this['_getTableDocumentData'](_0x563c95),_0x2b1536=typeof _0xa6c07==_0x1715e(0xfe)?{'text':_0xa6c07}:_0xa6c07;return this[_0x1715e(0x16d)](_0x563c95)[_0x1715e(0x139)](_0x3836a6=>{const _0x5df888=_0x1715e;let _0x486bf7=_0x3836a6[_0x5df888(0x149)]();return!(_0x2b1536[_0x5df888(0x11a)]&&_0x486bf7!==_0x2b1536[_0x5df888(0x11a)]||_0x2b1536[_0x5df888(0x117)]&&!this[_0x5df888(0x11c)](_0x5137f5,_0x486bf7,_0x2b1536['text'])||_0x2b1536[_0x5df888(0x11b)]&&!this[_0x5df888(0x132)](_0x3836a6,0x0,_0x2b1536[_0x5df888(0x11b)])||_0x2b1536['titleText']&&!this[_0x5df888(0x132)](_0x3836a6,0x0,_0x2b1536[_0x5df888(0x16c)]));});}[_0x32e825(0x11d)](_0x28ad30,_0x4ae311,_0x4dddcb={}){const _0x1fccfb=_0x32e825;let _0x3d9b10=this[_0x1fccfb(0x171)][_0x1fccfb(0x1b6)](_0x1999b9['ICommandService']),_0x20c0b9=_0x4dddcb[_0x1fccfb(0x11a)]??(0x0,_0x1999b9[_0x1fccfb(0x12a)])(0x6);return _0x3d9b10['syncExecuteCommand'](_0x4dd93b[_0x1fccfb(0x112)]['id'],{..._0x4dddcb,'unitId':this[_0x1fccfb(0x149)](),'rows':_0x28ad30,'columns':_0x4ae311,'tableId':_0x20c0b9})?this[_0x1fccfb(0x107)](_0x20c0b9,_0x4dddcb[_0x1fccfb(0x158)]??''):null;}['insertTableFromData'](_0x4884a1,_0x24059e={}){const _0x29636a=_0x32e825;let _0x3df6e2=this['_injector'][_0x29636a(0x1b6)](_0x1999b9[_0x29636a(0x14b)]),_0x225ac2=_0x24059e[_0x29636a(0x11a)]??(0x0,_0x1999b9[_0x29636a(0x12a)])(0x6);return _0x3df6e2['syncExecuteCommand'](_0x4dd93b['DocsTableInsertTableCommand']['id'],{..._0x24059e,'unitId':this[_0x29636a(0x149)](),'values':_0x4884a1,'tableId':_0x225ac2})?this[_0x29636a(0x107)](_0x225ac2,_0x24059e['segmentId']??''):null;}[_0x32e825(0x166)](_0x4b282f=''){const _0x704708=_0x32e825;let {tables:_0x59dc9a=[]}=this[_0x704708(0x129)](_0x4b282f);return _0x59dc9a;}[_0x32e825(0x104)](_0x341f36=''){const _0x31c90b=_0x32e825;let _0x102886=this[_0x31c90b(0x1b3)]()[_0x31c90b(0x12e)]();return _0x341f36?{...this[_0x31c90b(0x1b3)](_0x341f36)[_0x31c90b(0x12e)](),'documentStyle':_0x102886[_0x31c90b(0x163)],'tableSource':_0x102886['tableSource']}:_0x102886;}[_0x32e825(0x107)](_0x5378bd,_0x592007=''){const _0x55ff02=_0x32e825;return this[_0x55ff02(0x171)][_0x55ff02(0x1a2)](_0x57145d,this,_0x5378bd,_0x592007);}['_tableContainsText'](_0x400265,_0x282137,_0xa7715){const _0xbf99b9=_0x32e825;var _0x11b652;let _0x580793=(0x0,_0x4dd93b['getTableRangeById'])(_0x400265,_0x282137);if(!_0x580793)return!0x1;let _0x11835a=(_0x11b652=_0x400265[_0xbf99b9(0x155)])==null?void 0x0:_0x11b652[_0xbf99b9(0xe6)];return _0x11835a?_0x11835a[_0xbf99b9(0xe4)](_0x580793['startOffset'],_0x580793[_0xbf99b9(0x1ba)])[_0xbf99b9(0x177)](_0xa7715):!0x1;}[_0x32e825(0x132)](_0x2f689a,_0x562e95,_0x1ecd42){const _0xcf5879=_0x32e825;return Array[_0xcf5879(0x17f)]({'length':_0x2f689a[_0xcf5879(0x1ae)]()},(_0xef1e1,_0x353ac5)=>_0x2f689a[_0xcf5879(0x1a0)](_0x562e95,_0x353ac5))[_0xcf5879(0xf6)](_0x1efe37=>_0x1efe37[_0xcf5879(0x177)](_0x1ecd42));}};_0x5a829b[_0x32e825(0xfc)][_0x32e825(0x1b5)](_0x5368c0),Object['defineProperty'](_0x510155,_0x32e825(0x15b),{'enumerable':!0x0,'get':function(){return _0x57145d;}}),_0x510155[_0x32e825(0x17a)]=_0x47a610;}));function _0x4034(_0x234f82,_0x37a220){_0x234f82=_0x234f82-0xe1;const _0x36e082=_0x36e0();let _0x4034f6=_0x36e082[_0x234f82];return _0x4034f6;}function _0x36e0(){const _0x92cd71=['3157344LjvVcU','getRowsRange','buildUnmergeCellsMutationActions','getSource','insertRowAfter','setBackgroundColor','buildDistributeTableColumnsMutationActions','buildInsertTableTitleRowMutationActions','DocsTableBorderPreset','getMetadata','getId','deleteRow','ICommandService','Module','preset','DocsTableColumnInsertPosition','_getDocumentData','deleteTable','margin','@univerjs/core','setHeaderRowCount','3HvBfCu','body','getColumnRange','trHeight','segmentId','Row','Injector','FDocumentTable','DocsTableSelectionService','getTable','moveTableBy','DocsTableColumnType','Inject','setBorder','buildResizeTableRowActionsFromHeight','documentStyle','FEnum','cells','_getTables','setCellMargin','moveRows','decorate','@univerjs/core/facade','Right','titleText','getTables','buildMoveTableRowsMutationActions','setTableStyle','actions','_injector','insertColumnsAfter','selectRange','syncExecuteCommand','distributeColumns','getRowCount','includes','function','getInfo','FDocumentTableCell','selectColumn','214400bxwKvk','getColumnsRange','selectCell','from','getMargin','tableSource','selectRows','buildSetTableCellTextMutationActions','Above','DocsTableInsertPosition','Left','buildSetTableBackgroundMutationActions','defineProperty','tableCells','setCellText','type','DocsTableDeleteRowsCommand','getTableActionBodyPath','DocsTableModel','getColumnIndex','insertRowBefore','findTables','constructor','length','_table','object','getMarginOverride','buildSortTableMutationActions','setColumnType','getInsertOffset','pinHeaderRows','symbol','182EudRNN','2dGDMMw','Tools','Table','getCellText','cellMargin','createInstance','buildMoveTableColumnsMutationActions','getCellMarginOverride','_mutateActions','_unitId','buildSetTableCellMarginMutationActions','rows','getStableTableSelection','replace','mergeCells','startOffset','buildMoveFloatingTableMutationActions','getColumnCount','getTableRangeById','888356EzwbwD','getTableAt','max','getDocumentDataModel','getContentRange','extend','get','serialize','tableColumns','selectColumns','endOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCellContentRange','setRowHeight','tableRows','UniverDocsFacade','insertColumnsBefore','getCellRange','Range','moveColumns','DocsTableSelectionKind','setMargin','@univerjs/docs/facade','getOwnPropertyDescriptor','_tableId','toStringTag','slice','getDefaultCellMarginOverride','dataStream','getDefaultCellMargin','setCellBackground','headerRowCount','setDefaultCellMargin','appendRow','toPrimitive','selectRow','buildInsertTableColumnsMutationActions','_column','AT_LEAST','_segmentId','insertRowsAfter','_serializeModel','_getBodyPath','77LqTiDX','some','#1f1f1f','setTableBackground','DEFAULT_DOCS_TABLE_CELL_MARGIN','_document','mergeTo','FDocument','Cell','string','insertColumnBefore','getSegmentId','call','getCellMargin','unmerge','_getTableDocumentData','deleteRows','getCellInsertOffset','_createFDocumentTable','border','iterator','buildMergeCellsMutationActions','color','selectTable','getRowHeight','getTableRange','getCell','setStructuralSelection','Column','DocsTableInsertTableCommand','deepClone','deleteColumns','DocsTableRowInsertPosition','hasTitleRow','text','getTableMetadata','size','tableId','headerText','_tableContainsText','insertTable','titleRow','backgroundColor','77778uTlmaE','setTableBorder','buildDistributeTableRowsMutationActions','DocsTableInsertTablePosition','buildMoveTableToOffsetMutationActions','buildInsertTableRowsMutationActions','prototype','map','executeRichTextTableActions','getBody','generateRandomId','width','UniverProDocsTableFacade','_commandService','getSnapshot','moveTableToOffset','DashStyleType','364035NCdsCH','_rowContainsText','exports','insertTitleRow','unmergeCells','DocsTableSortDirection','UniverProDocsTable','179054EbdXxR','filter','586610RuNcXP','_row','setText','TableRowHeightRule','moveColumn'];_0x36e0=function(){return _0x92cd71;};return _0x36e0();}
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;}));