@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.
- package/README.md +8 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/apply-table-actions.command.d.ts +3 -0
- package/lib/types/commands/set-column-type.command.d.ts +1 -0
- package/lib/types/common/cell-text.d.ts +1 -0
- package/lib/types/common/metadata.d.ts +18 -1
- package/lib/types/controllers/docs-table-resource.controller.d.ts +3 -2
- package/lib/types/facade/f-document-table.d.ts +1 -0
- package/lib/types/models/docs-table-model.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -35,6 +35,14 @@ univer.registerPlugin(UniverDocsTablePlugin);
|
|
|
35
35
|
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
36
36
|
- Use the facade entry when integrating through Univer Facade APIs.
|
|
37
37
|
|
|
38
|
+
## Editing and history
|
|
39
|
+
|
|
40
|
+
Import `@univerjs-pro/docs-table/facade` before using table Facades. Table setters and structural edits use registered commands and participate in document undo/redo and collaboration. `setTableStyle()` creates one history entry for the combined background and border change. Unchanged setters do not clear redo. A cell edit rejected by a locked content control returns `false` and leaves pending undo/redo entries intact.
|
|
41
|
+
|
|
42
|
+
`setCellText()` replaces a complete cell value. Concurrent setters for the same cell use the existing atomic-value OT priority, rather than concatenating replacements; ordinary character edits continue to use text OT. Cell identity follows the retained terminal paragraph through row/column movement. Legacy cells without paragraph IDs retain an identity in their shared cell data.
|
|
43
|
+
|
|
44
|
+
Column types follow column objects, and title/header metadata follows rows in `tableSource`. Saving projects this shared state into the existing `DOC_TABLE_PLUGIN` resource. Resource-only legacy snapshots remain readable; their first table edit synchronizes a storage upgrade before the user edit. The upgrade preserves semantics and stays outside user undo so one author cannot undo defaults another author still needs. Reopening an upgraded snapshot must retain its table-source metadata as well as the resource. Use matching package versions on all collaboration participants.
|
|
45
|
+
|
|
38
46
|
## Resources
|
|
39
47
|
|
|
40
48
|
- [Documentation](https://docs.univer.ai/guides/pro)
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x285656=_0x2244;(function(_0x1faee7,_0x3f9a01){const _0x54c0b1=_0x2244,_0x4fb083=_0x1faee7();while(!![]){try{const _0x5a4982=parseInt(_0x54c0b1(0x7a))/0x1*(-parseInt(_0x54c0b1(0xe0))/0x2)+-parseInt(_0x54c0b1(0xb9))/0x3+parseInt(_0x54c0b1(0xe1))/0x4+parseInt(_0x54c0b1(0x12a))/0x5*(parseInt(_0x54c0b1(0x6c))/0x6)+parseInt(_0x54c0b1(0x11c))/0x7+parseInt(_0x54c0b1(0x7c))/0x8*(-parseInt(_0x54c0b1(0x82))/0x9)+parseInt(_0x54c0b1(0xc0))/0xa*(parseInt(_0x54c0b1(0x119))/0xb);if(_0x5a4982===_0x3f9a01)break;else _0x4fb083['push'](_0x4fb083['shift']());}catch(_0x3bd1e2){_0x4fb083['push'](_0x4fb083['shift']());}}}(_0x2eec,0x85817),Object[_0x285656(0xec)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');var i=class extends n['FEnum']{get[_0x285656(0xca)](){const _0x403b99=_0x285656;return e[_0x403b99(0xca)];}get[_0x285656(0x100)](){const _0x2ac19a=_0x285656;return e[_0x2ac19a(0x100)];}get[_0x285656(0xce)](){return e['DocsTableSelectionKind'];}get[_0x285656(0x101)](){const _0x31dcb5=_0x285656;return e[_0x31dcb5(0x101)];}get[_0x285656(0xa9)](){const _0x366163=_0x285656;return e[_0x366163(0xa9)];}get[_0x285656(0x9d)](){return e['DocsTableBorderPreset'];}get['DocsTableSortDirection'](){const _0x41a3bd=_0x285656;return e[_0x41a3bd(0xef)];}get[_0x285656(0x8a)](){const _0x33f132=_0x285656;return t[_0x33f132(0x8a)];}};n[_0x285656(0x131)][_0x285656(0x87)](i);var a=class{constructor(_0x253934,_0x1d8bd2,_0x32d5df){const _0x180ed9=_0x285656;this[_0x180ed9(0x113)]=_0x253934,this[_0x180ed9(0xb3)]=_0x1d8bd2,this[_0x180ed9(0xf7)]=_0x32d5df;}[_0x285656(0x96)](){const _0x18d647=_0x285656;return this[_0x18d647(0x113)];}['getRowIndex'](){const _0x3ab760=_0x285656;return this[_0x3ab760(0xb3)];}['getColumnIndex'](){const _0xf34bf=_0x285656;return this[_0xf34bf(0xf7)];}[_0x285656(0x111)](){const _0x24a3b4=_0x285656;return this[_0x24a3b4(0x113)][_0x24a3b4(0x88)](this[_0x24a3b4(0xb3)],this[_0x24a3b4(0xf7)]);}[_0x285656(0x6b)](){const _0x3d67f9=_0x285656;return this['_table'][_0x3d67f9(0x121)](this[_0x3d67f9(0xb3)],this['_column']);}[_0x285656(0x11a)](){const _0x3403f3=_0x285656;return this[_0x3403f3(0x113)][_0x3403f3(0x109)](this[_0x3403f3(0xb3)],this['_column']);}[_0x285656(0x112)](){const _0x251718=_0x285656;return this[_0x251718(0x113)][_0x251718(0xdf)](this['_row'],this[_0x251718(0xf7)]);}[_0x285656(0x80)](){const _0x281b8f=_0x285656;return this[_0x281b8f(0x113)]['getCellMarginOverride'](this[_0x281b8f(0xb3)],this['_column']);}[_0x285656(0x10b)](_0x18725d){const _0x59f8e0=_0x285656;return this[_0x59f8e0(0x113)][_0x59f8e0(0x8e)](this[_0x59f8e0(0x113)]['getCellRange'](this[_0x59f8e0(0xb3)],this[_0x59f8e0(0xf7)]),_0x18725d);}[_0x285656(0xdd)](){const _0x9d59d0=_0x285656;return this[_0x9d59d0(0x113)][_0x9d59d0(0x8e)](this[_0x9d59d0(0x113)][_0x9d59d0(0x79)](this[_0x9d59d0(0xb3)],this[_0x9d59d0(0xf7)]),null);}[_0x285656(0xcf)](_0x3903bf){const _0x3b8559=_0x285656;return this[_0x3b8559(0x113)][_0x3b8559(0x122)](this[_0x3b8559(0xb3)],this['_column'],_0x3903bf);}[_0x285656(0xd4)](_0x1ce1c9){const _0x3aad40=_0x285656;return this[_0x3aad40(0x113)]['setCellBackground'](this[_0x3aad40(0x113)][_0x3aad40(0x79)](this[_0x3aad40(0xb3)],this[_0x3aad40(0xf7)]),_0x1ce1c9);}[_0x285656(0xae)](_0x4b3a4b){return this['_table']['setBorder'](this['_table']['getCellRange'](this['_row'],this['_column']),_0x4b3a4b);}[_0x285656(0x10e)](_0xd3f4f,_0x21cf68){const _0x2daaf5=_0x285656;return this[_0x2daaf5(0x113)][_0x2daaf5(0xb2)]({'startRow':this[_0x2daaf5(0xb3)],'startColumn':this['_column'],'endRow':this[_0x2daaf5(0xb3)]+_0xd3f4f-0x1,'endColumn':this[_0x2daaf5(0xf7)]+_0x21cf68-0x1});}['unmerge'](){const _0x23f6eb=_0x285656;return this[_0x23f6eb(0x113)][_0x23f6eb(0xd2)](this[_0x23f6eb(0x113)][_0x23f6eb(0x79)](this['_row'],this[_0x23f6eb(0xf7)]));}};function o(_0x23251e){'@babel/helpers - typeof';const _0x3c2f7f=_0x285656;return o=typeof Symbol==_0x3c2f7f(0x140)&&typeof Symbol['iterator']==_0x3c2f7f(0x10f)?function(_0x424e96){return typeof _0x424e96;}:function(_0x5f56c5){const _0x12277f=_0x3c2f7f;return _0x5f56c5&&typeof Symbol==_0x12277f(0x140)&&_0x5f56c5['constructor']===Symbol&&_0x5f56c5!==Symbol[_0x12277f(0xeb)]?_0x12277f(0x10f):typeof _0x5f56c5;},o(_0x23251e);}function s(_0x453b07,_0x4f1edf){const _0x4025c9=_0x285656;if(o(_0x453b07)!=_0x4025c9(0xb1)||!_0x453b07)return _0x453b07;var _0x25ac0e=_0x453b07[Symbol['toPrimitive']];if(_0x25ac0e!==void 0x0){var _0x335924=_0x25ac0e[_0x4025c9(0xee)](_0x453b07,_0x4f1edf||_0x4025c9(0xa0));if(o(_0x335924)!=_0x4025c9(0xb1))return _0x335924;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4f1edf===_0x4025c9(0xb8)?String:Number)(_0x453b07);}function _0x2244(_0x5f3b3f,_0x11ce90){_0x5f3b3f=_0x5f3b3f-0x6a;const _0x2eec3a=_0x2eec();let _0x224496=_0x2eec3a[_0x5f3b3f];return _0x224496;}function _0x2eec(){const _0x11146f=['selectColumns','DocsTableBorderPreset','headerText','_segmentId','default','startOffset','syncExecuteCommand','appendRow','some','Right','DocsTableInsertPosition','getInfo','includes','DocsTableColumnInsertPosition','tableColumns','buildMoveTableColumnsMutationActions','moveTableToOffset','getId','setBorder','selectRange','insertTable','object','mergeCells','_row','tableRows','hasTitleRow','moveColumns','ICommandService','string','2228283wTqLub','buildSetTableBackgroundMutationActions','FDocument','setColumnWidth','deleteColumns','Injector','buildInsertTableTitleRowMutationActions','10haSbNZ','_document','setDefaultCellMargin','tableCells','getDefaultCellMargin','body','insertRowsAfter','buildSetTableDefaultCellMarginMutationActions','insertColumnsBefore','_getDocumentData','DocsTableInsertTablePosition','deleteRow','Above','_createFDocumentTable','DocsTableSelectionKind','setText','getRowsRange','titleText','unmergeCells','backgroundColor','setBackgroundColor','Table','getStableTableSelection','border','length','documentStyle','size','Range','getTableAtSelection','clearMarginOverride','buildMoveFloatingTableMutationActions','getCellMargin','10mVoiXt','2864092LUsHca','selectColumn','color','getTableAt','getRowHeight','_tableContainsText','dataStream','insertColumnBefore','buildDistributeTableColumnsMutationActions','_getBodyPath','prototype','defineProperty','appendColumn','call','DocsTableSortDirection','Below','insertRowsBefore','insertTitleRow','insertColumnsAfter','setTableBackground','deepClone','buildUnmergeCellsMutationActions','_column','getSegmentId','slice','buildResizeTableRowActionsFromHeight','titleRow','getCell','_commandService','Row','buildDistributeTableRowsMutationActions','DocsTableColumnType','DocsTableRowInsertPosition','getColumnRange','selectTable','generateRandomId','setRowHeight','insertRowBefore','buildMoveTableToOffsetMutationActions','map','getCellInsertOffset','getTableRange','setMargin','headerRowCount','getColumnCount','mergeTo','symbol','deleteRows','getText','getMargin','_table','cellMargin','SOLID','_rowContainsText','_serializeModel','cells','5598395UsXZsN','getInsertOffset','moveColumn','6675214XcLIqZ','buildSetTableHeaderRowCountMutationActions','getOwnPropertyDescriptor','from','Cell','getCellContentRange','setCellText','DocsTableModel','setCellBackground','setHeaderRowCount','filter','columnTypes','pinHeaderRows','buildInsertTableRowsMutationActions','2458210srGPec','DocsTableDeleteTableCommand','selectRows','getTables','trHeight','margin','getSnapshot','FEnum','getHeaderRowCount','buildInsertTableColumnsMutationActions','rows','DocsTableSelectionService','findTableByText','getTableActionBodyPath','All','insertTableFromData','decorate','_getTableDocumentData','getSource','distributeRows','getTableRangeById','getDocumentDataModel','function','tableId','getContentRange','6wvOKNh','setTableStyle','Inject','setStructuralSelection','getMetadata','max','moveTableBy','_injector','segmentId','actions','Left','buildMoveTableRowsMutationActions','AT_LEAST','getCellRange','210652VcBDfa','_mutateActions','45152gvMgGZ','findTables','buildMergeCellsMutationActions','insertColumnAfter','getMarginOverride','moveRows','522jzPOKo','replace','_getTables','selectRow','getTableMetadata','extend','getCellText','createInstance','DashStyleType','getDefaultCellMarginOverride','tableSource','preset','setCellMargin','DocsTableDeleteColumnsCommand','get','Tools','getRowCount','_unitId','getColumnsRange','width','getTable','DEFAULT_DOCS_TABLE_CELL_MARGIN','buildSortTableMutationActions','endOffset','_tableId','setTableBorder'];_0x2eec=function(){return _0x11146f;};return _0x2eec();}function c(_0x38f632){const _0x4cfc38=_0x285656;var _0x5df887=s(_0x38f632,_0x4cfc38(0xb8));return o(_0x5df887)==_0x4cfc38(0x10f)?_0x5df887:_0x5df887+'';}function l(_0x204376,_0x2849b6,_0x3dacfd){return(_0x2849b6=c(_0x2849b6))in _0x204376?Object['defineProperty'](_0x204376,_0x2849b6,{'value':_0x3dacfd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x204376[_0x2849b6]=_0x3dacfd,_0x204376;}function u(_0x33e7a0,_0x4e171b){return function(_0x5e5e2f,_0x1cfbbd){_0x4e171b(_0x5e5e2f,_0x1cfbbd,_0x33e7a0);};}function d(_0x1e60be,_0x3d6863,_0x2116bc,_0x1c6dcb){const _0x38ca85=_0x285656;var _0x2f4366=arguments[_0x38ca85(0xd8)],_0x20cf86=_0x2f4366<0x3?_0x3d6863:_0x1c6dcb===null?_0x1c6dcb=Object[_0x38ca85(0x11e)](_0x3d6863,_0x2116bc):_0x1c6dcb,_0x3e9d27;if(typeof Reflect==_0x38ca85(0xb1)&&typeof Reflect[_0x38ca85(0x13a)]=='function')_0x20cf86=Reflect[_0x38ca85(0x13a)](_0x1e60be,_0x3d6863,_0x2116bc,_0x1c6dcb);else{for(var _0x19d961=_0x1e60be[_0x38ca85(0xd8)]-0x1;_0x19d961>=0x0;_0x19d961--)(_0x3e9d27=_0x1e60be[_0x19d961])&&(_0x20cf86=(_0x2f4366<0x3?_0x3e9d27(_0x20cf86):_0x2f4366>0x3?_0x3e9d27(_0x3d6863,_0x2116bc,_0x20cf86):_0x3e9d27(_0x3d6863,_0x2116bc))||_0x20cf86);}return _0x2f4366>0x3&&_0x20cf86&&Object[_0x38ca85(0xec)](_0x3d6863,_0x2116bc,_0x20cf86),_0x20cf86;}let f=class{constructor(_0x2c03b7,_0x33d5b7,_0x5122e2,_0x4bed76,_0x32b0f2){const _0x3f2887=_0x285656;this[_0x3f2887(0xc1)]=_0x2c03b7,this[_0x3f2887(0x9a)]=_0x33d5b7,this[_0x3f2887(0x9f)]=_0x5122e2,this[_0x3f2887(0xfd)]=_0x4bed76,this[_0x3f2887(0x73)]=_0x32b0f2,l(this,'_unitId',void 0x0),this[_0x3f2887(0x93)]=this['_document']['getId']();}[_0x285656(0xad)](){const _0x3abd0f=_0x285656;return this[_0x3abd0f(0x9a)];}[_0x285656(0xf8)](){const _0x597dfa=_0x285656;return this[_0x597dfa(0x9f)];}[_0x285656(0xa7)](){const _0x1f0a1f=_0x285656;return{'id':this['_tableId'],'rowCount':this[_0x1f0a1f(0x92)](),'columnCount':this[_0x1f0a1f(0x10d)](),'metadata':this[_0x1f0a1f(0x70)](),'source':this[_0x1f0a1f(0x13c)]()};}['describe'](){const _0x5753cc=_0x285656;let _0x1dd817=this['getMetadata'](),_0x2ec604=this['getSource'](),_0x668765=this[_0x5753cc(0x10d)]();return{'id':this[_0x5753cc(0x9a)],'rowCount':this[_0x5753cc(0x92)](),'columnCount':_0x668765,'headerRowCount':(_0x1dd817==null?void 0x0:_0x1dd817['headerRowCount'])??0x0,'titleRow':(_0x1dd817==null?void 0x0:_0x1dd817['titleRow'])??!0x1,'columns':Array['from']({'length':_0x668765},(_0x4036ff,_0x345490)=>{const _0x4fc20a=_0x5753cc;var _0x508e50,_0x3c617f;return{'index':_0x345490,'type':_0x1dd817==null||(_0x508e50=_0x1dd817[_0x4fc20a(0x127)])==null||(_0x508e50=_0x508e50[_0x345490])==null?void 0x0:_0x508e50['type'],'width':_0x2ec604==null||(_0x3c617f=_0x2ec604['tableColumns'][_0x345490])==null?void 0x0:_0x3c617f[_0x4fc20a(0xda)][_0x4fc20a(0x95)]['v']};}),'sampleRows':Array['from']({'length':this[_0x5753cc(0x92)]()},(_0x56a135,_0x468816)=>Array[_0x5753cc(0x11f)]({'length':_0x668765},(_0x473be1,_0x2c6cfe)=>this['getCellText'](_0x468816,_0x2c6cfe)))['filter'](_0x14cbee=>_0x14cbee[_0x5753cc(0xa4)](_0x280c89=>_0x280c89[_0x5753cc(0xd8)]>0x0))['slice'](0x0,0x5)};}[_0x285656(0x92)](){const _0x2bef5f=_0x285656;var _0x102e84;return((_0x102e84=this[_0x2bef5f(0x13c)]())==null?void 0x0:_0x102e84[_0x2bef5f(0xb4)][_0x2bef5f(0xd8)])??0x0;}['getColumnCount'](){const _0x32205a=_0x285656;var _0x31b69c;return((_0x31b69c=this[_0x32205a(0x13c)]())==null?void 0x0:_0x31b69c[_0x32205a(0xaa)][_0x32205a(0xd8)])??0x0;}[_0x285656(0xfc)](_0x175861,_0xe72ff8){const _0x3fa16c=_0x285656;var _0xc65480;return(_0xc65480=this[_0x3fa16c(0x13c)]())!=null&&(_0xc65480=_0xc65480[_0x3fa16c(0xb4)][_0x175861])!=null&&_0xc65480[_0x3fa16c(0xc3)][_0xe72ff8]?this[_0x3fa16c(0x73)][_0x3fa16c(0x89)](a,this,_0x175861,_0xe72ff8):null;}[_0x285656(0x88)](_0x485e50,_0xfb56a6){const _0x5c647a=_0x285656;var _0x49d377,_0x186801;let _0x19c8c4=(_0x49d377=(0x0,e[_0x5c647a(0x13e)])(this['_getDocumentData'](),this[_0x5c647a(0x9a)]))==null||(_0x49d377=_0x49d377[_0x5c647a(0x134)][_0x485e50])==null?void 0x0:_0x49d377[_0x5c647a(0x118)][_0xfb56a6];return _0x19c8c4?((_0x186801=this[_0x5c647a(0xc9)]()[_0x5c647a(0xc5)])==null?void 0x0:_0x186801[_0x5c647a(0xe7)][_0x5c647a(0xf9)](_0x19c8c4['startOffset']+0x1,_0x19c8c4['endOffset'])[_0x5c647a(0x83)](/\r\n$/,''))??'':'';}[_0x285656(0xdf)](_0x5ad943,_0x2b568f){const _0x423645=_0x285656;var _0x53b68e;let _0x2f93c1=this['getSource'](),_0x378800=_0x2f93c1==null||(_0x53b68e=_0x2f93c1[_0x423645(0xb4)][_0x5ad943])==null?void 0x0:_0x53b68e[_0x423645(0xc3)][_0x2b568f];return _0x378800?t['Tools'][_0x423645(0xf5)](_0x378800[_0x423645(0x12f)]??_0x2f93c1[_0x423645(0x114)]??e[_0x423645(0x97)]):null;}['getCellMarginOverride'](_0x515ea7,_0x333935){const _0x1a4ad2=_0x285656;var _0xb63f21;let _0x28bba8=(_0xb63f21=this[_0x1a4ad2(0x13c)]())==null||(_0xb63f21=_0xb63f21[_0x1a4ad2(0xb4)][_0x515ea7])==null?void 0x0:_0xb63f21['tableCells'][_0x333935];return _0x28bba8!=null&&_0x28bba8[_0x1a4ad2(0x12f)]?t[_0x1a4ad2(0x91)][_0x1a4ad2(0xf5)](_0x28bba8[_0x1a4ad2(0x12f)]):null;}[_0x285656(0xc4)](){const _0x1a1b0e=_0x285656;var _0x22cec4;return t[_0x1a1b0e(0x91)]['deepClone'](((_0x22cec4=this[_0x1a1b0e(0x13c)]())==null?void 0x0:_0x22cec4['cellMargin'])??e['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}[_0x285656(0x8b)](){const _0x39ca71=_0x285656;var _0x316312;let _0x5d9498=(_0x316312=this['getSource']())==null?void 0x0:_0x316312['cellMargin'];return _0x5d9498?t[_0x39ca71(0x91)][_0x39ca71(0xf5)](_0x5d9498):null;}[_0x285656(0x70)](){const _0x52bf13=_0x285656;return this[_0x52bf13(0x73)][_0x52bf13(0x90)](e[_0x52bf13(0x123)])[_0x52bf13(0x86)](this[_0x52bf13(0x93)],this['_tableId']);}[_0x285656(0x13c)](){const _0x25d3ca=_0x285656;var _0x530bb8;return(_0x530bb8=this[_0x25d3ca(0xc9)]()[_0x25d3ca(0x8c)])==null?void 0x0:_0x530bb8[this[_0x25d3ca(0x9a)]];}['getRange'](){const _0x10b1fb=_0x285656;return(0x0,e[_0x10b1fb(0x13e)])(this['_getDocumentData'](),this[_0x10b1fb(0x9a)]);}['getTableRange'](){const _0x52dac5=_0x285656;return{'startRow':0x0,'endRow':Math[_0x52dac5(0x71)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x52dac5(0x71)](0x0,this[_0x52dac5(0x10d)]()-0x1)};}[_0x285656(0x79)](_0x5c8165,_0x99e1db){return{'startRow':_0x5c8165,'endRow':_0x5c8165,'startColumn':_0x99e1db,'endColumn':_0x99e1db};}[_0x285656(0x121)](_0x29d313,_0x57dd62){const _0x59fb16=_0x285656;var _0x557fef;let _0x23a75d=(_0x557fef=(0x0,e[_0x59fb16(0x13e)])(this[_0x59fb16(0xc9)](),this[_0x59fb16(0x9a)]))==null||(_0x557fef=_0x557fef[_0x59fb16(0x134)][_0x29d313])==null?void 0x0:_0x557fef[_0x59fb16(0x118)][_0x57dd62];if(!_0x23a75d)return null;let _0x1edcf3=_0x23a75d[_0x59fb16(0xa1)]+0x1;return{'startOffset':_0x1edcf3,'endOffset':Math['max'](_0x1edcf3,_0x23a75d[_0x59fb16(0x99)]-0x1),'segmentId':this[_0x59fb16(0x9f)]};}[_0x285656(0x109)](_0x532f50,_0x38de12){const _0x171877=_0x285656;let _0x45baef=this['getCellContentRange'](_0x532f50,_0x38de12);return _0x45baef?Math[_0x171877(0x71)](_0x45baef[_0x171877(0xa1)],_0x45baef['endOffset']-0x1):null;}['getRowRange'](_0x29f3b5){const _0x5d4d4a=_0x285656;return this[_0x5d4d4a(0xd0)](_0x29f3b5,0x1);}[_0x285656(0xd0)](_0x305cbb,_0x556454=0x1){const _0x1cc7ae=_0x285656;return{'startRow':_0x305cbb,'endRow':_0x305cbb+_0x556454-0x1,'startColumn':0x0,'endColumn':Math[_0x1cc7ae(0x71)](0x0,this['getColumnCount']()-0x1)};}[_0x285656(0x102)](_0x5c1f33){const _0x4ec35c=_0x285656;return this[_0x4ec35c(0x94)](_0x5c1f33,0x1);}[_0x285656(0x94)](_0x295dea,_0x3330da=0x1){const _0x46c262=_0x285656;return{'startRow':0x0,'endRow':Math[_0x46c262(0x71)](0x0,this[_0x46c262(0x92)]()-0x1),'startColumn':_0x295dea,'endColumn':_0x295dea+_0x3330da-0x1};}[_0x285656(0x103)](){const _0x54f604=_0x285656;return this['selectRange'](this[_0x54f604(0x10a)](),e[_0x54f604(0xce)][_0x54f604(0xd5)]);}[_0x285656(0x85)](_0x381663){const _0x2569c7=_0x285656;return this[_0x2569c7(0x12c)](_0x381663,0x1);}['selectRows'](_0x49f884,_0x454740=0x1){const _0x1ce3cc=_0x285656;return this[_0x1ce3cc(0xaf)](this['getRowsRange'](_0x49f884,_0x454740),e[_0x1ce3cc(0xce)][_0x1ce3cc(0xfe)]);}[_0x285656(0xe2)](_0x468215){const _0x2b6cf7=_0x285656;return this[_0x2b6cf7(0x9c)](_0x468215,0x1);}[_0x285656(0x9c)](_0x179a9d,_0x2955a9=0x1){const _0x4e49a2=_0x285656;return this[_0x4e49a2(0xaf)](this['getColumnsRange'](_0x179a9d,_0x2955a9),e['DocsTableSelectionKind']['Column']);}['selectCell'](_0x2f6f16,_0x514821){const _0x1b8427=_0x285656;return this[_0x1b8427(0xaf)](this[_0x1b8427(0x79)](_0x2f6f16,_0x514821),e[_0x1b8427(0xce)][_0x1b8427(0x120)]);}[_0x285656(0xaf)](_0x2d1d2b,_0x46bf3b=e[_0x285656(0xce)][_0x285656(0xdb)]){const _0x5da1a3=_0x285656;return this[_0x5da1a3(0x73)]['get'](e[_0x5da1a3(0x135)])[_0x5da1a3(0x6f)]({..._0x2d1d2b,'kind':_0x46bf3b,'segmentId':this[_0x5da1a3(0x9f)],'tableId':this[_0x5da1a3(0x9a)]}),!0x0;}[_0x285656(0x106)](_0x126647){const _0x4ccd4e=_0x285656;return this[_0x4ccd4e(0xf1)](_0x126647,0x1);}['insertRowAfter'](_0x4331a4){const _0x2bcc04=_0x285656;return this[_0x2bcc04(0xc6)](_0x4331a4,0x1);}[_0x285656(0xf1)](_0x394de6,_0x117b42){const _0x58e4b7=_0x285656;let _0x2cc9f1=this['_getDocumentData'](),_0x3eed1b=(0x0,e[_0x58e4b7(0x129)])(_0x2cc9f1,this[_0x58e4b7(0x9a)],_0x394de6,_0x117b42,e[_0x58e4b7(0xa6)][_0x58e4b7(0xcc)],this[_0x58e4b7(0xea)]());return _0x3eed1b?this[_0x58e4b7(0x7b)](_0x2cc9f1,_0x3eed1b[_0x58e4b7(0x75)]):!0x1;}['insertRowsAfter'](_0x360646,_0x1fdc1e){const _0x182725=_0x285656;let _0x1d8c0c=this[_0x182725(0xc9)](),_0x57a48d=(0x0,e['buildInsertTableRowsMutationActions'])(_0x1d8c0c,this['_tableId'],_0x360646,_0x1fdc1e,e[_0x182725(0xa6)][_0x182725(0xf0)],this['_getBodyPath']());return _0x57a48d?this[_0x182725(0x7b)](_0x1d8c0c,_0x57a48d[_0x182725(0x75)]):!0x1;}[_0x285656(0xa3)](){const _0x2a93b8=_0x285656;return this[_0x2a93b8(0xc6)](Math[_0x2a93b8(0x71)](0x0,this[_0x2a93b8(0x92)]()-0x1),0x1);}[_0x285656(0xe8)](_0x24b696){const _0x497020=_0x285656;return this[_0x497020(0xc8)](_0x24b696,0x1);}[_0x285656(0x7f)](_0x5912b8){const _0x41c17d=_0x285656;return this[_0x41c17d(0xf3)](_0x5912b8,0x1);}[_0x285656(0xc8)](_0x5d0900,_0x2be802){const _0x4fa56b=_0x285656;let _0x15811f=this['_getDocumentData'](),_0x3d6c22=(0x0,e[_0x4fa56b(0x133)])(_0x15811f,this['_tableId'],_0x5d0900,_0x2be802,e[_0x4fa56b(0xa6)][_0x4fa56b(0x76)],{'bodyPath':this[_0x4fa56b(0xea)]()});return _0x3d6c22?this[_0x4fa56b(0x7b)](_0x15811f,_0x3d6c22[_0x4fa56b(0x75)]):!0x1;}['insertColumnsAfter'](_0x4c0583,_0x490801){const _0x959be8=_0x285656;let _0x43d110=this[_0x959be8(0xc9)](),_0x31d0a0=(0x0,e[_0x959be8(0x133)])(_0x43d110,this[_0x959be8(0x9a)],_0x4c0583,_0x490801,e['DocsTableInsertPosition'][_0x959be8(0xa5)],{'bodyPath':this['_getBodyPath']()});return _0x31d0a0?this[_0x959be8(0x7b)](_0x43d110,_0x31d0a0[_0x959be8(0x75)]):!0x1;}[_0x285656(0xed)](){const _0x5297cb=_0x285656;return this[_0x5297cb(0xf3)](Math['max'](0x0,this[_0x5297cb(0x10d)]()-0x1),0x1);}[_0x285656(0xcb)](_0x44985d){const _0x286e30=_0x285656;return this[_0x286e30(0x110)](_0x44985d,0x1);}[_0x285656(0x110)](_0x18680f,_0x5d94eb=0x1){const _0x283d05=_0x285656;return!!this[_0x283d05(0xfd)][_0x283d05(0xa2)](e['DocsTableDeleteRowsCommand']['id'],{'endRow':_0x18680f+_0x5d94eb-0x1,'segmentId':this[_0x283d05(0x9f)],'startRow':_0x18680f,'tableId':this[_0x283d05(0x9a)],'unitId':this[_0x283d05(0x93)]});}['deleteColumn'](_0x5cd34b){const _0x1b0228=_0x285656;return this[_0x1b0228(0xbd)](_0x5cd34b,0x1);}[_0x285656(0xbd)](_0x1dbf37,_0x1cb4f5=0x1){const _0xe0bc18=_0x285656;return!!this[_0xe0bc18(0xfd)][_0xe0bc18(0xa2)](e[_0xe0bc18(0x8f)]['id'],{'endColumn':_0x1dbf37+_0x1cb4f5-0x1,'segmentId':this[_0xe0bc18(0x9f)],'startColumn':_0x1dbf37,'tableId':this[_0xe0bc18(0x9a)],'unitId':this[_0xe0bc18(0x93)]});}['deleteTable'](){const _0x1d00c0=_0x285656;return!!this[_0x1d00c0(0xfd)]['syncExecuteCommand'](e[_0x1d00c0(0x12b)]['id'],{'segmentId':this[_0x1d00c0(0x9f)],'tableId':this[_0x1d00c0(0x9a)],'unitId':this[_0x1d00c0(0x93)]});}[_0x285656(0x72)](_0x105ae0,_0x581d67){const _0x9841a=_0x285656;let _0x470767=this[_0x9841a(0xc9)]();return this[_0x9841a(0x7b)](_0x470767,(0x0,e[_0x9841a(0xde)])(_0x470767,this['_tableId'],_0x105ae0,_0x581d67));}[_0x285656(0xac)](_0x545b9a){const _0xc92101=_0x285656;let _0x5a05ae=this[_0xc92101(0xc9)]();return this[_0xc92101(0x7b)](_0x5a05ae,(0x0,e[_0xc92101(0x107)])(_0x5a05ae,this[_0xc92101(0x9a)],_0x545b9a,this[_0xc92101(0xea)]()));}['moveRow'](_0x14aa2c,_0x66b999,_0x101d57=e[_0x285656(0xa6)][_0x285656(0xcc)]){const _0x526518=_0x285656;return this[_0x526518(0x81)](_0x14aa2c,0x1,_0x66b999,_0x101d57);}['moveRows'](_0x4a525a,_0x1bf9c2,_0x4dd493,_0x2d28df=e[_0x285656(0xa6)][_0x285656(0xcc)]){const _0x13a22d=_0x285656;let _0x3d099e=this[_0x13a22d(0xc9)](),_0x21f6c3=(0x0,e[_0x13a22d(0x77)])(_0x3d099e,this[_0x13a22d(0x9a)],_0x4a525a,_0x4dd493,_0x1bf9c2,_0x2d28df,this[_0x13a22d(0xea)]());return _0x21f6c3?this[_0x13a22d(0x7b)](_0x3d099e,_0x21f6c3['actions']):!0x1;}[_0x285656(0x11b)](_0x2e4e0c,_0x426ef6,_0x391613=e[_0x285656(0xa6)][_0x285656(0x76)]){return this['moveColumns'](_0x2e4e0c,0x1,_0x426ef6,_0x391613);}[_0x285656(0xb6)](_0x584b61,_0x13b194,_0x141d5e,_0x54b898=e[_0x285656(0xa6)]['Left']){const _0xe35db1=_0x285656;let _0x405a94=this[_0xe35db1(0xc9)](),_0x57bde4=(0x0,e[_0xe35db1(0xab)])(_0x405a94,this[_0xe35db1(0x9a)],_0x584b61,_0x141d5e,_0x13b194,_0x54b898,this[_0xe35db1(0xea)]());return _0x57bde4?this[_0xe35db1(0x7b)](_0x405a94,_0x57bde4['actions']):!0x1;}[_0x285656(0xb2)](_0x57d76e){const _0x4d293d=_0x285656;try{let _0x589278=this['_getDocumentData'](),_0x2c3438=(0x0,e[_0x4d293d(0x7e)])({'documentData':_0x589278,'tableId':this['_tableId'],..._0x57d76e});return _0x2c3438?this[_0x4d293d(0x7b)](_0x589278,_0x2c3438[_0x4d293d(0x75)],_0x57d76e):!0x1;}catch{return!0x1;}}[_0x285656(0xd2)](_0x37a789){const _0x41a2a8=_0x285656;try{let _0x119459=this[_0x41a2a8(0xc9)](),_0x13de1b=(0x0,e[_0x41a2a8(0xf6)])({'documentData':_0x119459,'tableId':this[_0x41a2a8(0x9a)],..._0x37a789});return _0x13de1b?this[_0x41a2a8(0x7b)](_0x119459,_0x13de1b[_0x41a2a8(0x75)],_0x37a789):!0x1;}catch{return!0x1;}}[_0x285656(0x122)](_0xb3a063,_0x572d00,_0x54a87b){const _0x326de6=_0x285656;let _0x144326=this['_getDocumentData'](),_0x4ac35d=(0x0,e[_0x326de6(0x137)])(this[_0x326de6(0xc1)]['getDocumentDataModel']()['getSnapshot'](),this[_0x326de6(0x9f)]);return this[_0x326de6(0x7b)](_0x144326,(0x0,e['buildSetTableCellTextMutationActions'])({'documentData':_0x144326,'tableId':this['_tableId'],'row':_0xb3a063,'column':_0x572d00,'text':_0x54a87b},_0x4ac35d),this[_0x326de6(0x79)](_0xb3a063,_0x572d00));}[_0x285656(0x124)](_0x4bcf69,_0x2089bd){const _0x2d1cb9=_0x285656;let _0x1f041a=this[_0x2d1cb9(0xc9)]();return this[_0x2d1cb9(0x7b)](_0x1f041a,(0x0,e[_0x2d1cb9(0xba)])(_0x1f041a,{'tableId':this[_0x2d1cb9(0x9a)],..._0x4bcf69,'value':_0x2089bd}),_0x4bcf69);}[_0x285656(0x8e)](_0x1fef6f,_0x48fb68){const _0x579695=_0x285656;let _0x101f3e=this[_0x579695(0xc9)]();return this[_0x579695(0x7b)](_0x101f3e,(0x0,e['buildSetTableCellMarginMutationActions'])({'documentData':_0x101f3e,'tableId':this[_0x579695(0x9a)],..._0x1fef6f,'margin':_0x48fb68}),_0x1fef6f);}[_0x285656(0xc2)](_0x1af64f){const _0x50d548=_0x285656;let _0x20b452=this['_getDocumentData']();return this[_0x50d548(0x7b)](_0x20b452,(0x0,e[_0x50d548(0xc7)])(_0x20b452,this[_0x50d548(0x9a)],_0x1af64f));}[_0x285656(0xae)](_0xee6112,_0x40db9e){const _0x52a63b=_0x285656;let _0x1b6084=this[_0x52a63b(0xc9)]();return this[_0x52a63b(0x7b)](_0x1b6084,(0x0,e['buildSetTableBorderMutationActions'])({'documentData':_0x1b6084,'tableId':this[_0x52a63b(0x9a)],..._0xee6112,'preset':_0x40db9e[_0x52a63b(0x8d)]??e[_0x52a63b(0x9d)][_0x52a63b(0x138)],'border':_0x40db9e[_0x52a63b(0xd7)]??{'color':{'rgb':_0x40db9e[_0x52a63b(0xe3)]??'#1f1f1f'},'width':{'v':_0x40db9e[_0x52a63b(0x95)]??0x1},'dashStyle':t[_0x52a63b(0x8a)][_0x52a63b(0x115)]}}),_0xee6112);}['setTableBackground'](_0x57aedb){const _0x379137=_0x285656;return this[_0x379137(0x124)](this['getTableRange'](),_0x57aedb);}[_0x285656(0x9b)](_0x37839a){const _0x3555e9=_0x285656;return this[_0x3555e9(0xae)](this[_0x3555e9(0x10a)](),_0x37839a);}[_0x285656(0x6d)](_0x50999d){const _0x5124bc=_0x285656;let _0x4d8a21=!_0x50999d[_0x5124bc(0xd3)]||this[_0x5124bc(0xf4)](_0x50999d['backgroundColor']),_0x3c9d27=!_0x50999d['border']||this[_0x5124bc(0x9b)](_0x50999d[_0x5124bc(0xd7)]);return _0x4d8a21&&_0x3c9d27;}[_0x285656(0x105)](_0x451b99,_0x3b3462,_0x5d6d75=t['TableRowHeightRule'][_0x285656(0x78)]){const _0x5f0159=_0x285656;var _0x5bbe7b;let _0x47af76=this[_0x5f0159(0xc9)]();return(_0x5bbe7b=_0x47af76[_0x5f0159(0x8c)])!=null&&(_0x5bbe7b=_0x5bbe7b[this[_0x5f0159(0x9a)]])!=null&&_0x5bbe7b[_0x5f0159(0xb4)][_0x451b99]?this[_0x5f0159(0x7b)](_0x47af76,(0x0,e[_0x5f0159(0xfa)])(_0x47af76,this[_0x5f0159(0x9a)],_0x451b99,_0x3b3462,_0x5d6d75)):!0x1;}[_0x285656(0xe5)](_0x53c086){const _0x20bbba=_0x285656;var _0x55e1ac;let _0x2d8a8a=(_0x55e1ac=this[_0x20bbba(0x13c)]())==null||(_0x55e1ac=_0x55e1ac[_0x20bbba(0xb4)][_0x53c086])==null?void 0x0:_0x55e1ac[_0x20bbba(0x12e)];return _0x2d8a8a?t[_0x20bbba(0x91)][_0x20bbba(0xf5)](_0x2d8a8a):null;}[_0x285656(0xbc)](_0x477581,_0x132bf4){const _0x5d2319=_0x285656;var _0x544f27;let _0x110296=this[_0x5d2319(0xc9)]();return(_0x544f27=_0x110296[_0x5d2319(0x8c)])!=null&&(_0x544f27=_0x544f27[this[_0x5d2319(0x9a)]])!=null&&_0x544f27[_0x5d2319(0xaa)][_0x477581]?this['_mutateActions'](_0x110296,(0x0,e['buildResizeTableColumnActionsFromWidth'])(_0x110296,this[_0x5d2319(0x9a)],_0x477581,_0x132bf4)):!0x1;}[_0x285656(0x13d)](_0x325bb5=0x0,_0x19e0a2=this['getRowCount']()){const _0x294c18=_0x285656;let _0x4685b7=this['_getDocumentData']();return this[_0x294c18(0x7b)](_0x4685b7,(0x0,e[_0x294c18(0xff)])(_0x4685b7,this[_0x294c18(0x9a)],_0x325bb5,_0x325bb5+_0x19e0a2-0x1));}['distributeColumns'](_0x2b7a5c=0x0,_0x39679c=this[_0x285656(0x10d)]()){const _0x5e552f=_0x285656;let _0x567119=this[_0x5e552f(0xc9)]();return this[_0x5e552f(0x7b)](_0x567119,(0x0,e[_0x5e552f(0xe9)])(_0x567119,this[_0x5e552f(0x9a)],_0x2b7a5c,_0x2b7a5c+_0x39679c-0x1));}[_0x285656(0x132)](){const _0x19796e=_0x285656;var _0xe6d347;return((_0xe6d347=this[_0x19796e(0x70)]())==null?void 0x0:_0xe6d347[_0x19796e(0x10c)])??0x0;}[_0x285656(0x125)](_0x4cde4e){const _0x5c2972=_0x285656;let _0xbad594=this[_0x5c2972(0x73)][_0x5c2972(0x90)](e['DocsTableModel']),_0xc7164c=this[_0x5c2972(0xc9)](),_0x2a064b=(0x0,e[_0x5c2972(0x11d)])(_0xc7164c,this[_0x5c2972(0x9a)],_0x4cde4e);if(!_0x2a064b)return!0x1;let _0xcde947=this[_0x5c2972(0x7b)](_0xc7164c,_0x2a064b[_0x5c2972(0x75)]);return _0xcde947&&_0xbad594[_0x5c2972(0x125)](this[_0x5c2972(0x93)],this[_0x5c2972(0x9a)],_0x2a064b[_0x5c2972(0x10c)]),_0xcde947;}[_0x285656(0x128)](_0x450f94){const _0x44db29=_0x285656;return this[_0x44db29(0x125)](_0x450f94);}[_0x285656(0xb5)](){const _0x18bec1=_0x285656;var _0x1ceca4;return((_0x1ceca4=this[_0x18bec1(0x70)]())==null?void 0x0:_0x1ceca4[_0x18bec1(0xfb)])??!0x1;}[_0x285656(0xf2)](){const _0x494cd1=_0x285656;let _0x16fbe0=this[_0x494cd1(0x73)][_0x494cd1(0x90)](e[_0x494cd1(0x123)]),_0xa5d190=this[_0x494cd1(0xc9)](),_0x459c1e=(0x0,e[_0x494cd1(0xbf)])(_0xa5d190,this['_tableId'],this[_0x494cd1(0xea)]());if(!_0x459c1e)return!0x1;let _0x2d1a25=this['_mutateActions'](_0xa5d190,_0x459c1e[_0x494cd1(0x75)]);return _0x2d1a25&&_0x16fbe0['setTitleRow'](this[_0x494cd1(0x93)],this[_0x494cd1(0x9a)],!0x0),_0x2d1a25;}['setColumnType'](_0x226bf6,_0x23bae2){const _0x14b24d=_0x285656;return this[_0x14b24d(0x73)][_0x14b24d(0x90)](e[_0x14b24d(0x123)])['setColumnType'](this[_0x14b24d(0x93)],this[_0x14b24d(0x9a)],_0x226bf6,_0x23bae2),!0x0;}['sortByColumn'](_0xe2ac3a,_0x22ca80){const _0x1d72df=_0x285656;let _0x12bef4=this[_0x1d72df(0xc9)]();return this[_0x1d72df(0x7b)](_0x12bef4,(0x0,e[_0x1d72df(0x98)])(_0x12bef4,this[_0x1d72df(0x117)](),this[_0x1d72df(0x9a)],_0xe2ac3a,_0x22ca80,this[_0x1d72df(0xea)]()));}['_getDocumentData'](){const _0x2df13b=_0x285656;let _0x67ba09=this[_0x2df13b(0xc1)]['getDocumentDataModel']()[_0x2df13b(0x130)]();return this[_0x2df13b(0x9f)]?{...this[_0x2df13b(0xc1)][_0x2df13b(0x13f)](this[_0x2df13b(0x9f)])['getSnapshot'](),'documentStyle':_0x67ba09[_0x2df13b(0xd9)],'tableSource':_0x67ba09['tableSource']}:_0x67ba09;}[_0x285656(0x117)](){const _0x3ef688=_0x285656;return this[_0x3ef688(0x73)][_0x3ef688(0x90)](e['DocsTableModel'])['serialize'](this[_0x3ef688(0x93)]);}[_0x285656(0xea)](){const _0x5a8eb2=_0x285656;return(0x0,e[_0x5a8eb2(0x137)])(this[_0x5a8eb2(0xc1)]['getDocumentDataModel']()[_0x5a8eb2(0x130)](),this[_0x5a8eb2(0x9f)]);}[_0x285656(0x7b)](_0x24eb08,_0x34a3a3,_0x1bb0e3){const _0x5602c6=_0x285656;return(0x0,e['executeRichTextTableActions'])(this['_commandService'],this['_unitId'],_0x24eb08,_0x34a3a3,_0x1bb0e3?{'tableId':this[_0x5602c6(0x9a)],'segmentId':this['_segmentId'],..._0x1bb0e3}:void 0x0);}};f=d([u(0x3,t[_0x285656(0xb7)]),u(0x4,(0x0,t[_0x285656(0x6e)])(t[_0x285656(0xbe)]))],f);var p=class extends r[_0x285656(0xbb)]{[_0x285656(0x12d)](_0x2a6f4d=''){const _0x49ccaa=_0x285656;return this['_getTables'](_0x2a6f4d)[_0x49ccaa(0x108)](_0x1e760f=>this[_0x49ccaa(0xcd)](_0x1e760f['tableId'],_0x2a6f4d));}[_0x285656(0x96)](_0x9dd400,_0x488efe=''){const _0x8c58f=_0x285656;return this[_0x8c58f(0x84)](_0x488efe)[_0x8c58f(0xa4)](_0x15fe36=>_0x15fe36[_0x8c58f(0x6a)]===_0x9dd400)?this[_0x8c58f(0xcd)](_0x9dd400,_0x488efe):null;}[_0x285656(0xe4)](_0x432a74,_0x4c9455=''){const _0x5ce775=_0x285656;var _0xebb1bc;let _0x33192b=(_0xebb1bc=this['_getTables'](_0x4c9455)[_0x432a74])==null?void 0x0:_0xebb1bc['tableId'];return _0x33192b?this[_0x5ce775(0xcd)](_0x33192b,_0x4c9455):null;}[_0x285656(0xdc)](){const _0x3939fa=_0x285656;let _0x1d73bf=this['_injector']['get'](e[_0x3939fa(0x135)])[_0x3939fa(0xd6)]();return _0x1d73bf!=null&&_0x1d73bf[_0x3939fa(0x6a)]?this[_0x3939fa(0xcd)](_0x1d73bf[_0x3939fa(0x6a)],_0x1d73bf[_0x3939fa(0x74)]):null;}[_0x285656(0x136)](_0x4854fa,_0x189c0d=''){const _0x1355ca=_0x285656;return this[_0x1355ca(0x7d)](_0x4854fa,_0x189c0d)[0x0]??null;}[_0x285656(0x7d)](_0x5f1adb,_0x1dc006=''){const _0x4c0faf=_0x285656;let _0x441960=this[_0x4c0faf(0x13b)](_0x1dc006),_0x35709a=typeof _0x5f1adb==_0x4c0faf(0xb8)?{'text':_0x5f1adb}:_0x5f1adb;return this['getTables'](_0x1dc006)[_0x4c0faf(0x126)](_0x2472af=>{const _0x1dcb94=_0x4c0faf;let _0x529d34=_0x2472af[_0x1dcb94(0xad)]();return!(_0x35709a[_0x1dcb94(0x6a)]&&_0x529d34!==_0x35709a['tableId']||_0x35709a['text']&&!this['_tableContainsText'](_0x441960,_0x529d34,_0x35709a['text'])||_0x35709a[_0x1dcb94(0x9e)]&&!this[_0x1dcb94(0x116)](_0x2472af,0x0,_0x35709a[_0x1dcb94(0x9e)])||_0x35709a[_0x1dcb94(0xd1)]&&!this[_0x1dcb94(0x116)](_0x2472af,0x0,_0x35709a[_0x1dcb94(0xd1)]));});}[_0x285656(0xb0)](_0x4dfe34,_0x4aa6d9,_0x5bf9d6={}){const _0x2d5508=_0x285656;let _0x54120a=this[_0x2d5508(0x73)]['get'](t[_0x2d5508(0xb7)]),_0xd83732=_0x5bf9d6[_0x2d5508(0x6a)]??(0x0,t['generateRandomId'])(0x6);return _0x54120a['syncExecuteCommand'](e['DocsTableInsertTableCommand']['id'],{..._0x5bf9d6,'unitId':this['getId'](),'rows':_0x4dfe34,'columns':_0x4aa6d9,'tableId':_0xd83732})?this[_0x2d5508(0xcd)](_0xd83732,_0x5bf9d6['segmentId']??''):null;}[_0x285656(0x139)](_0x303532,_0x23277a={}){const _0x50c8bc=_0x285656;let _0x14345e=this['_injector']['get'](t[_0x50c8bc(0xb7)]),_0x37c502=_0x23277a['tableId']??(0x0,t[_0x50c8bc(0x104)])(0x6);return _0x14345e[_0x50c8bc(0xa2)](e['DocsTableInsertTableCommand']['id'],{..._0x23277a,'unitId':this[_0x50c8bc(0xad)](),'values':_0x303532,'tableId':_0x37c502})?this[_0x50c8bc(0xcd)](_0x37c502,_0x23277a[_0x50c8bc(0x74)]??''):null;}[_0x285656(0x84)](_0x5196f8=''){let {tables:_0x58111a=[]}=this['getBody'](_0x5196f8);return _0x58111a;}[_0x285656(0x13b)](_0x453a0e=''){const _0xc57987=_0x285656;let _0xf10396=this[_0xc57987(0x13f)]()[_0xc57987(0x130)]();return _0x453a0e?{...this[_0xc57987(0x13f)](_0x453a0e)['getSnapshot'](),'documentStyle':_0xf10396[_0xc57987(0xd9)],'tableSource':_0xf10396[_0xc57987(0x8c)]}:_0xf10396;}[_0x285656(0xcd)](_0x3d96b9,_0x3face8=''){const _0x162f3b=_0x285656;return this[_0x162f3b(0x73)][_0x162f3b(0x89)](f,this,_0x3d96b9,_0x3face8);}[_0x285656(0xe6)](_0x5e1301,_0x57172a,_0x503714){const _0x59490f=_0x285656;var _0x27f2a5;let _0x118f36=(0x0,e[_0x59490f(0x13e)])(_0x5e1301,_0x57172a);if(!_0x118f36)return!0x1;let _0x2bd00f=(_0x27f2a5=_0x5e1301[_0x59490f(0xc5)])==null?void 0x0:_0x27f2a5['dataStream'];return _0x2bd00f?_0x2bd00f[_0x59490f(0xf9)](_0x118f36[_0x59490f(0xa1)],_0x118f36['endOffset'])[_0x59490f(0xa8)](_0x503714):!0x1;}[_0x285656(0x116)](_0x3da879,_0x1d4a00,_0x264fbd){const _0x3aa9d9=_0x285656;return Array[_0x3aa9d9(0x11f)]({'length':_0x3da879[_0x3aa9d9(0x10d)]()},(_0x12e2ae,_0x852190)=>_0x3da879['getCellText'](_0x1d4a00,_0x852190))['some'](_0x466bff=>_0x466bff[_0x3aa9d9(0xa8)](_0x264fbd));}};r[_0x285656(0xbb)][_0x285656(0x87)](p),Object[_0x285656(0xec)](exports,'FDocumentTable',{'enumerable':!0x0,'get':function(){return f;}}),exports['FDocumentTableCell']=a;
|
|
1
|
+
function _0x506d(_0x23c1b5,_0x285432){_0x23c1b5=_0x23c1b5-0x125;const _0x26dd55=_0x26dd();let _0x506d71=_0x26dd55[_0x23c1b5];return _0x506d71;}const _0x4c47a3=_0x506d;function _0x26dd(){const _0x28bbbf=['DocsTableColumnType','body','setRowHeight','DocsTableModel','_row','tableId','getRowHeight','trHeight','buildDistributeTableColumnsMutationActions','DocsTableSelectionService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmentId','call','463179aLjaUR','buildSortTableMutationActions','setHeaderRowCount','getColumnIndex','buildResizeTableRowActionsFromHeight','DEFAULT_DOCS_TABLE_CELL_MARGIN','buildSetTableCellTextMutationActions','Above','distributeRows','getColorFromTheme','insertRowsBefore','border','_commandService','Column','tableCells','_injector','tableSource','buildSetTableHeaderRowCountMutationActions','setCellText','getRowCount','buildMoveFloatingTableMutationActions','includes','setColumnType','getTables','_table','_unitId','FEnum','string','executeRichTextTableActions','moveRows','decorate','getHeaderRowCount','getOwnPropertyDescriptor','setTableBackground','Right','95210eCOHvL','deleteColumn','All','setTableBorder','insertColumnsAfter','startOffset','1226892FYOrSp','columnTypes','preset','documentStyle','selectCell','getRowsRange','48629bfQUNQ','getSource','Row','map','symbol','tableRows','deleteRows','insertColumnAfter','getCellMarginOverride','FDocumentTable','buildMoveTableColumnsMutationActions','moveColumns','deleteRow','22oKBMDl','getMargin','buildUnmergeCellsMutationActions','resolveTableMetadata','_rowContainsText','setBackgroundColor','ICommandService','buildInsertTableTitleRowMutationActions','getColumnRange','toPrimitive','insertTitleRow','rows','getInsertOffset','distributeColumns','ThemeService','get','moveRow','Inject','getTableRangeById','getContentRange','dataStream','getDefaultCellMarginOverride','getDocumentDataModel','hasTitleRow','backgroundColor','DocsTableRowInsertPosition','unmerge','cellMargin','Table','length','insertRowBefore','setColumnWidth','getInfo','Range','size','Tools','1503OctpqE','_column','getId','deepClone','syncExecuteCommand','createInstance','findTables','selectColumn','buildMergeCellsMutationActions','DocsTableInsertTableCommand','DocsTableDeleteColumnsCommand','function','headerRowCount','buildSetTableDefaultCellMarginMutationActions','mergeCells','setDefaultCellMargin','DocsTableDeleteRowsCommand','generateRandomId','getTableAtSelection','actions','selectColumns','insertColumnsBefore','11VvGHDX','DocsTableBorderPreset','Below','defineProperty','constructor','getTableRange','setStructuralSelection','getSnapshot','setText','DocsTableInsertPosition','Left','1696VqhQTG','extend','slice','headerText','JSONX','_serializeModel','_getTableDocumentData','tableColumns','prototype','buildMoveTableRowsMutationActions','getCellMargin','getRowRange','_document','getMarginOverride','_buildBorderActions','sortByColumn','getTable','buildSetTableBackgroundMutationActions','DocsTableColumnInsertPosition','getCellInsertOffset','getMetadata','_mutateActions','serializeDocument','878164jmmCif','appendRow','titleText','appendColumn','filter','buildInsertTableRowsMutationActions','_getTables','type','mergeTo','setTableStyle','buildResizeTableColumnActionsFromWidth','getTableAt','replace','from','insertTable','buildSetTableCellMarginMutationActions','DocsTableSortDirection','margin','buildDistributeTableRowsMutationActions','getStableTableSelection','selectRows','some','_tableId','setMargin','_getBodyPath','setBorder','Cell','insertRowsAfter','_getDocumentData','_createFDocumentTable','2525IRGftO','color','getRange','width','moveTableBy','21337KoRTcQ','getCellText','toStringTag','getCellContentRange','deleteTable','getText','_tableContainsText','setCellMargin','deleteColumns','insertColumnBefore','unmergeCells','buildInsertTableColumnsMutationActions','getTableActionBodyPath','DocsTableInsertTablePosition','moveTableToOffset','clearMarginOverride','DocsTableSetColumnTypeCommand','DocsTableSelectionKind','getCellRange','setCellBackground','max','getSegmentId','2070KDkXnA','getColumnCount','cells','_segmentId','getColumnsRange','SOLID','DashStyleType','selectRange','text','object','endOffset'];_0x26dd=function(){return _0x28bbbf;};return _0x26dd();}(function(_0x298867,_0x5ef307){const _0x3b6aed=_0x506d,_0x17a271=_0x298867();while(!![]){try{const _0x4a2718=parseInt(_0x3b6aed(0x16b))/0x1*(parseInt(_0x3b6aed(0x1d5))/0x2)+parseInt(_0x3b6aed(0x199))/0x3+parseInt(_0x3b6aed(0x148))/0x4+-parseInt(_0x3b6aed(0x166))/0x5*(-parseInt(_0x3b6aed(0x181))/0x6)+-parseInt(_0x3b6aed(0x1c8))/0x7*(parseInt(_0x3b6aed(0x131))/0x8)+-parseInt(_0x3b6aed(0x1f9))/0x9*(-parseInt(_0x3b6aed(0x1bc))/0xa)+-parseInt(_0x3b6aed(0x126))/0xb*(parseInt(_0x3b6aed(0x1c2))/0xc);if(_0x4a2718===_0x5ef307)break;else _0x17a271['push'](_0x17a271['shift']());}catch(_0x240d97){_0x17a271['push'](_0x17a271['shift']());}}}(_0x26dd,0xc2cac),Object['defineProperty'](exports,Symbol[_0x4c47a3(0x16d)],{'value':'Module'}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');var i=class extends n[_0x4c47a3(0x1b3)]{get[_0x4c47a3(0x178)](){const _0xbba19f=_0x4c47a3;return e[_0xbba19f(0x178)];}get[_0x4c47a3(0x18c)](){const _0x4d8c35=_0x4c47a3;return e[_0x4d8c35(0x18c)];}get[_0x4c47a3(0x17c)](){const _0x4bf745=_0x4c47a3;return e[_0x4bf745(0x17c)];}get[_0x4c47a3(0x1ee)](){const _0x2bead7=_0x4c47a3;return e[_0x2bead7(0x1ee)];}get[_0x4c47a3(0x143)](){return e['DocsTableColumnInsertPosition'];}get[_0x4c47a3(0x127)](){return e['DocsTableBorderPreset'];}get[_0x4c47a3(0x158)](){const _0x5056f4=_0x4c47a3;return e[_0x5056f4(0x158)];}get['DashStyleType'](){const _0x5025e7=_0x4c47a3;return t[_0x5025e7(0x187)];}};n[_0x4c47a3(0x1b3)]['extend'](i);var a=class{constructor(_0x47be18,_0x3a376d,_0x1f3bb5){const _0x1bde90=_0x4c47a3;this['_table']=_0x47be18,this['_row']=_0x3a376d,this[_0x1bde90(0x1fa)]=_0x1f3bb5;}[_0x4c47a3(0x141)](){return this['_table'];}['getRowIndex'](){const _0x7233c6=_0x4c47a3;return this[_0x7233c6(0x190)];}[_0x4c47a3(0x19c)](){const _0x2bd172=_0x4c47a3;return this[_0x2bd172(0x1fa)];}[_0x4c47a3(0x170)](){const _0x51d170=_0x4c47a3;return this[_0x51d170(0x1b1)][_0x51d170(0x16c)](this[_0x51d170(0x190)],this[_0x51d170(0x1fa)]);}[_0x4c47a3(0x1e8)](){const _0x1d83bd=_0x4c47a3;return this[_0x1d83bd(0x1b1)][_0x1d83bd(0x16e)](this[_0x1d83bd(0x190)],this[_0x1d83bd(0x1fa)]);}[_0x4c47a3(0x1e1)](){const _0x313bed=_0x4c47a3;return this['_table'][_0x313bed(0x144)](this['_row'],this[_0x313bed(0x1fa)]);}[_0x4c47a3(0x1d6)](){const _0x38459e=_0x4c47a3;return this[_0x38459e(0x1b1)][_0x38459e(0x13b)](this[_0x38459e(0x190)],this[_0x38459e(0x1fa)]);}[_0x4c47a3(0x13e)](){const _0x462895=_0x4c47a3;return this[_0x462895(0x1b1)][_0x462895(0x1d0)](this[_0x462895(0x190)],this[_0x462895(0x1fa)]);}[_0x4c47a3(0x15f)](_0x3eccd8){const _0x2f13bb=_0x4c47a3;return this['_table']['setCellMargin'](this[_0x2f13bb(0x1b1)][_0x2f13bb(0x17d)](this[_0x2f13bb(0x190)],this[_0x2f13bb(0x1fa)]),_0x3eccd8);}[_0x4c47a3(0x17a)](){const _0x42af12=_0x4c47a3;return this[_0x42af12(0x1b1)][_0x42af12(0x172)](this[_0x42af12(0x1b1)][_0x42af12(0x17d)](this[_0x42af12(0x190)],this['_column']),null);}[_0x4c47a3(0x12e)](_0x5c4005){const _0x524e43=_0x4c47a3;return this[_0x524e43(0x1b1)][_0x524e43(0x1ab)](this[_0x524e43(0x190)],this['_column'],_0x5c4005);}[_0x4c47a3(0x1da)](_0x4572c4){const _0x2b564f=_0x4c47a3;return this[_0x2b564f(0x1b1)][_0x2b564f(0x17e)](this[_0x2b564f(0x1b1)][_0x2b564f(0x17d)](this['_row'],this[_0x2b564f(0x1fa)]),_0x4572c4);}[_0x4c47a3(0x161)](_0x171de8){const _0x561c1f=_0x4c47a3;return this[_0x561c1f(0x1b1)][_0x561c1f(0x161)](this['_table'][_0x561c1f(0x17d)](this['_row'],this[_0x561c1f(0x1fa)]),_0x171de8);}[_0x4c47a3(0x150)](_0x2768cd,_0x4aa310){const _0x77fe8e=_0x4c47a3;return this[_0x77fe8e(0x1b1)][_0x77fe8e(0x207)]({'startRow':this['_row'],'startColumn':this[_0x77fe8e(0x1fa)],'endRow':this['_row']+_0x2768cd-0x1,'endColumn':this['_column']+_0x4aa310-0x1});}[_0x4c47a3(0x1ef)](){const _0x205f8b=_0x4c47a3;return this['_table'][_0x205f8b(0x175)](this['_table'][_0x205f8b(0x17d)](this[_0x205f8b(0x190)],this[_0x205f8b(0x1fa)]));}};function o(_0x3096f7){'@babel/helpers - typeof';const _0x1f9611=_0x4c47a3;return o=typeof Symbol==_0x1f9611(0x204)&&typeof Symbol['iterator']==_0x1f9611(0x1cc)?function(_0x385d79){return typeof _0x385d79;}:function(_0x1be1f0){const _0x3297e2=_0x1f9611;return _0x1be1f0&&typeof Symbol==_0x3297e2(0x204)&&_0x1be1f0[_0x3297e2(0x12a)]===Symbol&&_0x1be1f0!==Symbol[_0x3297e2(0x139)]?'symbol':typeof _0x1be1f0;},o(_0x3096f7);}function s(_0x3ca6c2,_0x17c621){const _0x435344=_0x4c47a3;if(o(_0x3ca6c2)!='object'||!_0x3ca6c2)return _0x3ca6c2;var _0x20f39a=_0x3ca6c2[Symbol[_0x435344(0x1de)]];if(_0x20f39a!==void 0x0){var _0x46900a=_0x20f39a[_0x435344(0x198)](_0x3ca6c2,_0x17c621||'default');if(o(_0x46900a)!=_0x435344(0x18a))return _0x46900a;throw TypeError(_0x435344(0x196));}return(_0x17c621===_0x435344(0x1b4)?String:Number)(_0x3ca6c2);}function c(_0x873a23){const _0x5a2845=_0x4c47a3;var _0x16d307=s(_0x873a23,_0x5a2845(0x1b4));return o(_0x16d307)=='symbol'?_0x16d307:_0x16d307+'';}function l(_0x5784bd,_0x14c0ff,_0x5908c7){const _0x3221d7=_0x4c47a3;return(_0x14c0ff=c(_0x14c0ff))in _0x5784bd?Object[_0x3221d7(0x129)](_0x5784bd,_0x14c0ff,{'value':_0x5908c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5784bd[_0x14c0ff]=_0x5908c7,_0x5784bd;}function u(_0x3f10e5,_0x5979fc){return function(_0x1974f9,_0x3f4ced){_0x5979fc(_0x1974f9,_0x3f4ced,_0x3f10e5);};}function d(_0x47334a,_0x1d70da,_0x3b5ef7,_0x364da5){const _0x2f7e8f=_0x4c47a3;var _0x326870=arguments[_0x2f7e8f(0x1f2)],_0x5342ee=_0x326870<0x3?_0x1d70da:_0x364da5===null?_0x364da5=Object[_0x2f7e8f(0x1b9)](_0x1d70da,_0x3b5ef7):_0x364da5,_0x29826f;if(typeof Reflect==_0x2f7e8f(0x18a)&&typeof Reflect[_0x2f7e8f(0x1b7)]==_0x2f7e8f(0x204))_0x5342ee=Reflect[_0x2f7e8f(0x1b7)](_0x47334a,_0x1d70da,_0x3b5ef7,_0x364da5);else{for(var _0x2eda0b=_0x47334a[_0x2f7e8f(0x1f2)]-0x1;_0x2eda0b>=0x0;_0x2eda0b--)(_0x29826f=_0x47334a[_0x2eda0b])&&(_0x5342ee=(_0x326870<0x3?_0x29826f(_0x5342ee):_0x326870>0x3?_0x29826f(_0x1d70da,_0x3b5ef7,_0x5342ee):_0x29826f(_0x1d70da,_0x3b5ef7))||_0x5342ee);}return _0x326870>0x3&&_0x5342ee&&Object[_0x2f7e8f(0x129)](_0x1d70da,_0x3b5ef7,_0x5342ee),_0x5342ee;}let f=class{constructor(_0x266207,_0x34ca08,_0x4cbca1,_0x25e2f9,_0x53a7ae){const _0x33ab65=_0x4c47a3;this[_0x33ab65(0x13d)]=_0x266207,this[_0x33ab65(0x15e)]=_0x34ca08,this['_segmentId']=_0x4cbca1,this[_0x33ab65(0x1a5)]=_0x25e2f9,this[_0x33ab65(0x1a8)]=_0x53a7ae,l(this,_0x33ab65(0x1b2),void 0x0),this['_unitId']=this['_document'][_0x33ab65(0x1fb)]();}[_0x4c47a3(0x1fb)](){const _0x299274=_0x4c47a3;return this[_0x299274(0x15e)];}[_0x4c47a3(0x180)](){const _0x43d672=_0x4c47a3;return this[_0x43d672(0x184)];}[_0x4c47a3(0x1f5)](){const _0x4dad25=_0x4c47a3;return{'id':this[_0x4dad25(0x15e)],'rowCount':this[_0x4dad25(0x1ac)](),'columnCount':this['getColumnCount'](),'metadata':this[_0x4dad25(0x145)](),'source':this['getSource']()};}['describe'](){const _0x3971cb=_0x4c47a3;let _0x3349f4=this[_0x3971cb(0x145)](),_0xb9ebb8=this['getSource'](),_0x46395f=this[_0x3971cb(0x182)]();return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':_0x46395f,'headerRowCount':(_0x3349f4==null?void 0x0:_0x3349f4[_0x3971cb(0x205)])??0x0,'titleRow':(_0x3349f4==null?void 0x0:_0x3349f4['titleRow'])??!0x1,'columns':Array[_0x3971cb(0x155)]({'length':_0x46395f},(_0x43f547,_0x33f73f)=>{const _0x3bb57c=_0x3971cb;var _0xbcbeb9,_0x3f60a9;return{'index':_0x33f73f,'type':_0x3349f4==null||(_0xbcbeb9=_0x3349f4[_0x3bb57c(0x1c3)])==null||(_0xbcbeb9=_0xbcbeb9[_0x33f73f])==null?void 0x0:_0xbcbeb9[_0x3bb57c(0x14f)],'width':_0xb9ebb8==null||(_0x3f60a9=_0xb9ebb8[_0x3bb57c(0x138)][_0x33f73f])==null?void 0x0:_0x3f60a9[_0x3bb57c(0x1f7)][_0x3bb57c(0x169)]['v']};}),'sampleRows':Array[_0x3971cb(0x155)]({'length':this[_0x3971cb(0x1ac)]()},(_0x26201b,_0x4d6af3)=>Array[_0x3971cb(0x155)]({'length':_0x46395f},(_0x234a94,_0x1e8e0a)=>this[_0x3971cb(0x16c)](_0x4d6af3,_0x1e8e0a)))[_0x3971cb(0x14c)](_0xaa66d6=>_0xaa66d6[_0x3971cb(0x15d)](_0x1a3b58=>_0x1a3b58[_0x3971cb(0x1f2)]>0x0))[_0x3971cb(0x133)](0x0,0x5)};}[_0x4c47a3(0x1ac)](){const _0xabd36d=_0x4c47a3;var _0x39985e;return((_0x39985e=this['getSource']())==null?void 0x0:_0x39985e[_0xabd36d(0x1cd)][_0xabd36d(0x1f2)])??0x0;}[_0x4c47a3(0x182)](){const _0x600b6e=_0x4c47a3;var _0x50e201;return((_0x50e201=this[_0x600b6e(0x1c9)]())==null?void 0x0:_0x50e201[_0x600b6e(0x138)]['length'])??0x0;}['getCell'](_0x123af9,_0x13a0be){const _0x711d4=_0x4c47a3;var _0x31587e;return(_0x31587e=this[_0x711d4(0x1c9)]())!=null&&(_0x31587e=_0x31587e[_0x711d4(0x1cd)][_0x123af9])!=null&&_0x31587e[_0x711d4(0x1a7)][_0x13a0be]?this[_0x711d4(0x1a8)]['createInstance'](a,this,_0x123af9,_0x13a0be):null;}[_0x4c47a3(0x16c)](_0x19a359,_0x318db0){const _0x4040e6=_0x4c47a3;var _0x6b1a17,_0x2ab371;let _0x2bbeab=(_0x6b1a17=(0x0,e['getTableRangeById'])(this[_0x4040e6(0x164)](),this[_0x4040e6(0x15e)]))==null||(_0x6b1a17=_0x6b1a17[_0x4040e6(0x1e0)][_0x19a359])==null?void 0x0:_0x6b1a17[_0x4040e6(0x183)][_0x318db0];return _0x2bbeab?((_0x2ab371=this[_0x4040e6(0x164)]()[_0x4040e6(0x18d)])==null?void 0x0:_0x2ab371[_0x4040e6(0x1e9)][_0x4040e6(0x133)](_0x2bbeab[_0x4040e6(0x1c1)]+0x1,_0x2bbeab[_0x4040e6(0x18b)])[_0x4040e6(0x154)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x1a4f0e,_0x1f7959){const _0x3e36de=_0x4c47a3;var _0x293d44;let _0x38bb26=this[_0x3e36de(0x1c9)](),_0x492d74=_0x38bb26==null||(_0x293d44=_0x38bb26[_0x3e36de(0x1cd)][_0x1a4f0e])==null?void 0x0:_0x293d44[_0x3e36de(0x1a7)][_0x1f7959];return _0x492d74?t['Tools'][_0x3e36de(0x1fc)](_0x492d74[_0x3e36de(0x159)]??_0x38bb26[_0x3e36de(0x1f0)]??e[_0x3e36de(0x19e)]):null;}[_0x4c47a3(0x1d0)](_0x44aacf,_0xa57b8){const _0x10cf14=_0x4c47a3;var _0x122401;let _0x255c5e=(_0x122401=this[_0x10cf14(0x1c9)]())==null||(_0x122401=_0x122401[_0x10cf14(0x1cd)][_0x44aacf])==null?void 0x0:_0x122401[_0x10cf14(0x1a7)][_0xa57b8];return _0x255c5e!=null&&_0x255c5e['margin']?t[_0x10cf14(0x1f8)][_0x10cf14(0x1fc)](_0x255c5e[_0x10cf14(0x159)]):null;}['getDefaultCellMargin'](){const _0x557ac3=_0x4c47a3;var _0x190a08;return t[_0x557ac3(0x1f8)][_0x557ac3(0x1fc)](((_0x190a08=this[_0x557ac3(0x1c9)]())==null?void 0x0:_0x190a08['cellMargin'])??e[_0x557ac3(0x19e)]);}[_0x4c47a3(0x1ea)](){const _0x3a1a38=_0x4c47a3;var _0x2887f5;let _0x2cfb9d=(_0x2887f5=this[_0x3a1a38(0x1c9)]())==null?void 0x0:_0x2887f5[_0x3a1a38(0x1f0)];return _0x2cfb9d?t['Tools'][_0x3a1a38(0x1fc)](_0x2cfb9d):null;}[_0x4c47a3(0x145)](){const _0x53f2a3=_0x4c47a3;let _0x325740=this['_injector']['get'](e[_0x53f2a3(0x18f)]),_0x5cf289=this[_0x53f2a3(0x1c9)]();return _0x5cf289?_0x325740[_0x53f2a3(0x1d8)](this['_unitId'],_0x5cf289):void 0x0;}[_0x4c47a3(0x1c9)](){const _0x278129=_0x4c47a3;var _0x254dd7;return(_0x254dd7=this['_getDocumentData']()[_0x278129(0x1a9)])==null?void 0x0:_0x254dd7[this[_0x278129(0x15e)]];}[_0x4c47a3(0x168)](){const _0x469032=_0x4c47a3;return(0x0,e[_0x469032(0x1e7)])(this['_getDocumentData'](),this['_tableId']);}[_0x4c47a3(0x12b)](){const _0x5a4d35=_0x4c47a3;return{'startRow':0x0,'endRow':Math[_0x5a4d35(0x17f)](0x0,this[_0x5a4d35(0x1ac)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x5a4d35(0x182)]()-0x1)};}[_0x4c47a3(0x17d)](_0x5dc0e4,_0x46e818){return{'startRow':_0x5dc0e4,'endRow':_0x5dc0e4,'startColumn':_0x46e818,'endColumn':_0x46e818};}['getCellContentRange'](_0x13158d,_0x43a5c8){const _0x5a5994=_0x4c47a3;var _0x476ed9;let _0x1c9b6e=(_0x476ed9=(0x0,e['getTableRangeById'])(this[_0x5a5994(0x164)](),this[_0x5a5994(0x15e)]))==null||(_0x476ed9=_0x476ed9[_0x5a5994(0x1e0)][_0x13158d])==null?void 0x0:_0x476ed9[_0x5a5994(0x183)][_0x43a5c8];if(!_0x1c9b6e)return null;let _0x1adecf=_0x1c9b6e[_0x5a5994(0x1c1)]+0x1;return{'startOffset':_0x1adecf,'endOffset':Math[_0x5a5994(0x17f)](_0x1adecf,_0x1c9b6e[_0x5a5994(0x18b)]-0x1),'segmentId':this[_0x5a5994(0x184)]};}['getCellInsertOffset'](_0x80100d,_0x1b1d9e){const _0x183184=_0x4c47a3;let _0x1aa2e2=this[_0x183184(0x16e)](_0x80100d,_0x1b1d9e);return _0x1aa2e2?Math[_0x183184(0x17f)](_0x1aa2e2[_0x183184(0x1c1)],_0x1aa2e2[_0x183184(0x18b)]-0x1):null;}[_0x4c47a3(0x13c)](_0x234617){const _0x16ba2b=_0x4c47a3;return this[_0x16ba2b(0x1c7)](_0x234617,0x1);}['getRowsRange'](_0xb41836,_0x415897=0x1){const _0x427e96=_0x4c47a3;return{'startRow':_0xb41836,'endRow':_0xb41836+_0x415897-0x1,'startColumn':0x0,'endColumn':Math[_0x427e96(0x17f)](0x0,this[_0x427e96(0x182)]()-0x1)};}[_0x4c47a3(0x1dd)](_0xda144d){const _0x20229b=_0x4c47a3;return this[_0x20229b(0x185)](_0xda144d,0x1);}[_0x4c47a3(0x185)](_0x506135,_0x305012=0x1){const _0x179d1f=_0x4c47a3;return{'startRow':0x0,'endRow':Math[_0x179d1f(0x17f)](0x0,this['getRowCount']()-0x1),'startColumn':_0x506135,'endColumn':_0x506135+_0x305012-0x1};}['selectTable'](){const _0x24df83=_0x4c47a3;return this['selectRange'](this['getTableRange'](),e[_0x24df83(0x17c)][_0x24df83(0x1f1)]);}['selectRow'](_0x1b60f2){return this['selectRows'](_0x1b60f2,0x1);}[_0x4c47a3(0x15c)](_0x24cbf3,_0x432356=0x1){const _0x2332d0=_0x4c47a3;return this[_0x2332d0(0x188)](this[_0x2332d0(0x1c7)](_0x24cbf3,_0x432356),e['DocsTableSelectionKind'][_0x2332d0(0x1ca)]);}[_0x4c47a3(0x200)](_0x36df06){const _0x144730=_0x4c47a3;return this[_0x144730(0x20d)](_0x36df06,0x1);}[_0x4c47a3(0x20d)](_0x23346c,_0xb8cfb=0x1){const _0x271abb=_0x4c47a3;return this[_0x271abb(0x188)](this['getColumnsRange'](_0x23346c,_0xb8cfb),e['DocsTableSelectionKind'][_0x271abb(0x1a6)]);}[_0x4c47a3(0x1c6)](_0x40d4ed,_0x20e408){const _0x58b649=_0x4c47a3;return this[_0x58b649(0x188)](this[_0x58b649(0x17d)](_0x40d4ed,_0x20e408),e['DocsTableSelectionKind'][_0x58b649(0x162)]);}[_0x4c47a3(0x188)](_0x1d2d5a,_0x27b71b=e['DocsTableSelectionKind'][_0x4c47a3(0x1f6)]){const _0x2d40a8=_0x4c47a3;return this[_0x2d40a8(0x1a8)][_0x2d40a8(0x1e4)](e[_0x2d40a8(0x195)])[_0x2d40a8(0x12c)]({..._0x1d2d5a,'kind':_0x27b71b,'segmentId':this['_segmentId'],'tableId':this[_0x2d40a8(0x15e)]}),!0x0;}[_0x4c47a3(0x1f3)](_0x1b9e82){const _0x11f32c=_0x4c47a3;return this[_0x11f32c(0x1a3)](_0x1b9e82,0x1);}['insertRowAfter'](_0x3b7a1a){const _0x56ae38=_0x4c47a3;return this[_0x56ae38(0x163)](_0x3b7a1a,0x1);}[_0x4c47a3(0x1a3)](_0x54d67d,_0x181b2d){const _0x3d0c50=_0x4c47a3;let _0x12649e=this[_0x3d0c50(0x164)](),_0x1d74c0=(0x0,e[_0x3d0c50(0x14d)])(_0x12649e,this[_0x3d0c50(0x15e)],_0x54d67d,_0x181b2d,e[_0x3d0c50(0x12f)][_0x3d0c50(0x1a0)],this[_0x3d0c50(0x160)]());return _0x1d74c0?this['_mutateActions'](_0x12649e,_0x1d74c0['actions']):!0x1;}[_0x4c47a3(0x163)](_0x5cd924,_0x1898fe){const _0x441e57=_0x4c47a3;let _0x367530=this['_getDocumentData'](),_0x40118e=(0x0,e['buildInsertTableRowsMutationActions'])(_0x367530,this[_0x441e57(0x15e)],_0x5cd924,_0x1898fe,e['DocsTableInsertPosition'][_0x441e57(0x128)],this[_0x441e57(0x160)]());return _0x40118e?this['_mutateActions'](_0x367530,_0x40118e['actions']):!0x1;}[_0x4c47a3(0x149)](){const _0x2f2fe7=_0x4c47a3;return this[_0x2f2fe7(0x163)](Math[_0x2f2fe7(0x17f)](0x0,this[_0x2f2fe7(0x1ac)]()-0x1),0x1);}[_0x4c47a3(0x174)](_0xa85dff){const _0x91792c=_0x4c47a3;return this[_0x91792c(0x125)](_0xa85dff,0x1);}[_0x4c47a3(0x1cf)](_0x575673){const _0x1d63f1=_0x4c47a3;return this[_0x1d63f1(0x1c0)](_0x575673,0x1);}['insertColumnsBefore'](_0x1c0e24,_0x33d852){const _0x209ed7=_0x4c47a3;let _0x5c2490=this['_getDocumentData'](),_0x1a3558=(0x0,e[_0x209ed7(0x176)])(_0x5c2490,this[_0x209ed7(0x15e)],_0x1c0e24,_0x33d852,e[_0x209ed7(0x12f)][_0x209ed7(0x130)],{'bodyPath':this[_0x209ed7(0x160)]()});return _0x1a3558?this[_0x209ed7(0x146)](_0x5c2490,_0x1a3558[_0x209ed7(0x20c)]):!0x1;}[_0x4c47a3(0x1c0)](_0x949c8a,_0x1a7061){const _0x41ee99=_0x4c47a3;let _0x466aa1=this[_0x41ee99(0x164)](),_0x1cc536=(0x0,e[_0x41ee99(0x176)])(_0x466aa1,this[_0x41ee99(0x15e)],_0x949c8a,_0x1a7061,e['DocsTableInsertPosition'][_0x41ee99(0x1bb)],{'bodyPath':this[_0x41ee99(0x160)]()});return _0x1cc536?this[_0x41ee99(0x146)](_0x466aa1,_0x1cc536['actions']):!0x1;}[_0x4c47a3(0x14b)](){const _0x4d26a2=_0x4c47a3;return this[_0x4d26a2(0x1c0)](Math[_0x4d26a2(0x17f)](0x0,this[_0x4d26a2(0x182)]()-0x1),0x1);}[_0x4c47a3(0x1d4)](_0x1f4e49){const _0x59c449=_0x4c47a3;return this[_0x59c449(0x1ce)](_0x1f4e49,0x1);}['deleteRows'](_0x42dbc6,_0x3b4a0d=0x1){const _0x64fb1a=_0x4c47a3;return!!this['_commandService'][_0x64fb1a(0x1fd)](e[_0x64fb1a(0x209)]['id'],{'endRow':_0x42dbc6+_0x3b4a0d-0x1,'segmentId':this[_0x64fb1a(0x184)],'startRow':_0x42dbc6,'tableId':this[_0x64fb1a(0x15e)],'unitId':this[_0x64fb1a(0x1b2)]});}[_0x4c47a3(0x1bd)](_0xa095ae){const _0x52edc8=_0x4c47a3;return this[_0x52edc8(0x173)](_0xa095ae,0x1);}['deleteColumns'](_0x14e840,_0x57a6e4=0x1){const _0x2ea8ad=_0x4c47a3;return!!this[_0x2ea8ad(0x1a5)][_0x2ea8ad(0x1fd)](e[_0x2ea8ad(0x203)]['id'],{'endColumn':_0x14e840+_0x57a6e4-0x1,'segmentId':this[_0x2ea8ad(0x184)],'startColumn':_0x14e840,'tableId':this['_tableId'],'unitId':this[_0x2ea8ad(0x1b2)]});}[_0x4c47a3(0x16f)](){const _0xfcb667=_0x4c47a3;return!!this[_0xfcb667(0x1a5)][_0xfcb667(0x1fd)](e['DocsTableDeleteTableCommand']['id'],{'segmentId':this[_0xfcb667(0x184)],'tableId':this[_0xfcb667(0x15e)],'unitId':this['_unitId']});}[_0x4c47a3(0x16a)](_0x4e959f,_0x3582f7){const _0x3d2640=_0x4c47a3;let _0x1d27ff=this[_0x3d2640(0x164)]();return this[_0x3d2640(0x146)](_0x1d27ff,(0x0,e[_0x3d2640(0x1ad)])(_0x1d27ff,this[_0x3d2640(0x15e)],_0x4e959f,_0x3582f7));}[_0x4c47a3(0x179)](_0x148ac7){const _0x91af28=_0x4c47a3;let _0x339cad=this['_getDocumentData']();return this[_0x91af28(0x146)](_0x339cad,(0x0,e['buildMoveTableToOffsetMutationActions'])(_0x339cad,this[_0x91af28(0x15e)],_0x148ac7,this[_0x91af28(0x160)]()));}[_0x4c47a3(0x1e5)](_0x3d1c2e,_0x2a4c9a,_0x2670c0=e[_0x4c47a3(0x12f)][_0x4c47a3(0x1a0)]){const _0x350263=_0x4c47a3;return this[_0x350263(0x1b6)](_0x3d1c2e,0x1,_0x2a4c9a,_0x2670c0);}[_0x4c47a3(0x1b6)](_0x5e030b,_0x2cfb1f,_0x1e9758,_0x4478a6=e[_0x4c47a3(0x12f)][_0x4c47a3(0x1a0)]){const _0x5afc66=_0x4c47a3;let _0x5aa5da=this[_0x5afc66(0x164)](),_0x11ead3=(0x0,e[_0x5afc66(0x13a)])(_0x5aa5da,this[_0x5afc66(0x15e)],_0x5e030b,_0x1e9758,_0x2cfb1f,_0x4478a6,this[_0x5afc66(0x160)]());return _0x11ead3?this[_0x5afc66(0x146)](_0x5aa5da,_0x11ead3[_0x5afc66(0x20c)]):!0x1;}['moveColumn'](_0x4cf93a,_0x1b397f,_0x586290=e[_0x4c47a3(0x12f)][_0x4c47a3(0x130)]){return this['moveColumns'](_0x4cf93a,0x1,_0x1b397f,_0x586290);}[_0x4c47a3(0x1d3)](_0x3dcce9,_0x227ac0,_0x34493a,_0x1d7b68=e['DocsTableInsertPosition'][_0x4c47a3(0x130)]){const _0x3ca663=_0x4c47a3;let _0x5f4dd2=this[_0x3ca663(0x164)](),_0xf9ae8a=(0x0,e[_0x3ca663(0x1d2)])(_0x5f4dd2,this[_0x3ca663(0x15e)],_0x3dcce9,_0x34493a,_0x227ac0,_0x1d7b68,this[_0x3ca663(0x160)]());return _0xf9ae8a?this['_mutateActions'](_0x5f4dd2,_0xf9ae8a[_0x3ca663(0x20c)]):!0x1;}['mergeCells'](_0x8b0168){const _0x533aed=_0x4c47a3;try{let _0x1746b0=this['_getDocumentData'](),_0x2c8b5e=(0x0,e[_0x533aed(0x201)])({'documentData':_0x1746b0,'tableId':this['_tableId'],..._0x8b0168});return _0x2c8b5e?this[_0x533aed(0x146)](_0x1746b0,_0x2c8b5e[_0x533aed(0x20c)],_0x8b0168):!0x1;}catch{return!0x1;}}['unmergeCells'](_0x46fdb0){const _0xb6c353=_0x4c47a3;try{let _0x1157cf=this[_0xb6c353(0x164)](),_0xccde92=(0x0,e[_0xb6c353(0x1d7)])({'documentData':_0x1157cf,'tableId':this[_0xb6c353(0x15e)],..._0x46fdb0});return _0xccde92?this[_0xb6c353(0x146)](_0x1157cf,_0xccde92[_0xb6c353(0x20c)],_0x46fdb0):!0x1;}catch{return!0x1;}}[_0x4c47a3(0x1ab)](_0x32a52a,_0x38465d,_0x189c81){const _0x4f9e81=_0x4c47a3;let _0x1579a1=this[_0x4f9e81(0x164)](),_0x11b3c0=(0x0,e['getTableActionBodyPath'])(this[_0x4f9e81(0x13d)]['getDocumentDataModel']()[_0x4f9e81(0x12d)](),this[_0x4f9e81(0x184)]);return this[_0x4f9e81(0x146)](_0x1579a1,(0x0,e[_0x4f9e81(0x19f)])({'documentData':_0x1579a1,'tableId':this['_tableId'],'row':_0x32a52a,'column':_0x38465d,'text':_0x189c81},_0x11b3c0),this[_0x4f9e81(0x17d)](_0x32a52a,_0x38465d));}[_0x4c47a3(0x17e)](_0x596382,_0x58f3ce){const _0x5e76f1=_0x4c47a3;let _0x2ee374=this[_0x5e76f1(0x164)]();return this[_0x5e76f1(0x146)](_0x2ee374,(0x0,e[_0x5e76f1(0x142)])(_0x2ee374,{'tableId':this[_0x5e76f1(0x15e)],..._0x596382,'value':_0x58f3ce}),_0x596382);}['setCellMargin'](_0x43a5c4,_0xb319a2){const _0x585135=_0x4c47a3;let _0x4a573b=this['_getDocumentData']();return this[_0x585135(0x146)](_0x4a573b,(0x0,e[_0x585135(0x157)])({'documentData':_0x4a573b,'tableId':this[_0x585135(0x15e)],..._0x43a5c4,'margin':_0xb319a2}),_0x43a5c4);}[_0x4c47a3(0x208)](_0x350757){const _0x6c5a7=_0x4c47a3;let _0x1c6471=this[_0x6c5a7(0x164)]();return this[_0x6c5a7(0x146)](_0x1c6471,(0x0,e[_0x6c5a7(0x206)])(_0x1c6471,this[_0x6c5a7(0x15e)],_0x350757));}['setBorder'](_0x14b3a9,_0x2d917f){const _0x1c0168=_0x4c47a3;let _0xad2e0=this[_0x1c0168(0x164)]();return this['_mutateActions'](_0xad2e0,this['_buildBorderActions'](_0xad2e0,_0x14b3a9,_0x2d917f),_0x14b3a9);}[_0x4c47a3(0x1ba)](_0x37eca0){const _0x28b389=_0x4c47a3;return this[_0x28b389(0x17e)](this['getTableRange'](),_0x37eca0);}[_0x4c47a3(0x1bf)](_0x5749fc){const _0x1d66ce=_0x4c47a3;return this[_0x1d66ce(0x161)](this[_0x1d66ce(0x12b)](),_0x5749fc);}[_0x4c47a3(0x151)](_0x543b92){const _0x8158d7=_0x4c47a3;let _0x17a779=this[_0x8158d7(0x164)](),_0x56d70a=this['getTableRange'](),_0x5db792=_0x543b92[_0x8158d7(0x1ed)]?(0x0,e['buildSetTableBackgroundMutationActions'])(_0x17a779,{'tableId':this[_0x8158d7(0x15e)],..._0x56d70a,'value':_0x543b92['backgroundColor']}):null,_0x134c7d=_0x543b92['border']?this[_0x8158d7(0x13f)](_0x17a779,_0x56d70a,_0x543b92[_0x8158d7(0x1a4)]):null;return this[_0x8158d7(0x146)](_0x17a779,t[_0x8158d7(0x135)]['compose'](_0x5db792,_0x134c7d),_0x56d70a);}[_0x4c47a3(0x18e)](_0x12d11e,_0x29dce7,_0x2ab94f=t['TableRowHeightRule']['AT_LEAST']){const _0x3c4ca3=_0x4c47a3;var _0x377eeb;let _0x54a7a8=this[_0x3c4ca3(0x164)]();return(_0x377eeb=_0x54a7a8['tableSource'])!=null&&(_0x377eeb=_0x377eeb[this[_0x3c4ca3(0x15e)]])!=null&&_0x377eeb[_0x3c4ca3(0x1cd)][_0x12d11e]?this[_0x3c4ca3(0x146)](_0x54a7a8,(0x0,e[_0x3c4ca3(0x19d)])(_0x54a7a8,this[_0x3c4ca3(0x15e)],_0x12d11e,_0x29dce7,_0x2ab94f)):!0x1;}[_0x4c47a3(0x192)](_0x3b04b2){const _0x2a0339=_0x4c47a3;var _0x1bbc83;let _0x1b7afd=(_0x1bbc83=this[_0x2a0339(0x1c9)]())==null||(_0x1bbc83=_0x1bbc83[_0x2a0339(0x1cd)][_0x3b04b2])==null?void 0x0:_0x1bbc83[_0x2a0339(0x193)];return _0x1b7afd?t[_0x2a0339(0x1f8)][_0x2a0339(0x1fc)](_0x1b7afd):null;}[_0x4c47a3(0x1f4)](_0xb96578,_0x39536a){const _0x3446d7=_0x4c47a3;var _0x25f5ed;let _0x301fb2=this[_0x3446d7(0x164)]();return(_0x25f5ed=_0x301fb2[_0x3446d7(0x1a9)])!=null&&(_0x25f5ed=_0x25f5ed[this[_0x3446d7(0x15e)]])!=null&&_0x25f5ed[_0x3446d7(0x138)][_0xb96578]?this['_mutateActions'](_0x301fb2,(0x0,e[_0x3446d7(0x152)])(_0x301fb2,this[_0x3446d7(0x15e)],_0xb96578,_0x39536a)):!0x1;}[_0x4c47a3(0x1a1)](_0x3ac128=0x0,_0x35b6da=this[_0x4c47a3(0x1ac)]()){const _0x96cda2=_0x4c47a3;let _0x33bf71=this[_0x96cda2(0x164)]();return this[_0x96cda2(0x146)](_0x33bf71,(0x0,e[_0x96cda2(0x15a)])(_0x33bf71,this[_0x96cda2(0x15e)],_0x3ac128,_0x3ac128+_0x35b6da-0x1));}[_0x4c47a3(0x1e2)](_0x15bfb9=0x0,_0x4ff12b=this['getColumnCount']()){const _0x20c0a3=_0x4c47a3;let _0x90045d=this[_0x20c0a3(0x164)]();return this[_0x20c0a3(0x146)](_0x90045d,(0x0,e[_0x20c0a3(0x194)])(_0x90045d,this[_0x20c0a3(0x15e)],_0x15bfb9,_0x15bfb9+_0x4ff12b-0x1));}[_0x4c47a3(0x1b8)](){const _0x3a4650=_0x4c47a3;var _0x331ee7;return((_0x331ee7=this[_0x3a4650(0x145)]())==null?void 0x0:_0x331ee7[_0x3a4650(0x205)])??0x0;}['setHeaderRowCount'](_0x343d61){const _0x471f0f=_0x4c47a3;let _0x1ab614=this[_0x471f0f(0x164)](),_0x499240=(0x0,e[_0x471f0f(0x1aa)])(_0x1ab614,this[_0x471f0f(0x15e)],_0x343d61);return _0x499240?this['_mutateActions'](_0x1ab614,_0x499240[_0x471f0f(0x20c)]):!0x1;}['pinHeaderRows'](_0x140fa9){const _0x1b9cc2=_0x4c47a3;return this[_0x1b9cc2(0x19b)](_0x140fa9);}[_0x4c47a3(0x1ec)](){const _0x42a673=_0x4c47a3;var _0x4a5358;return((_0x4a5358=this[_0x42a673(0x145)]())==null?void 0x0:_0x4a5358['titleRow'])??!0x1;}[_0x4c47a3(0x1df)](){const _0x9c2e05=_0x4c47a3;let _0x5ce4cc=this[_0x9c2e05(0x164)](),_0x57c42a=(0x0,e[_0x9c2e05(0x1dc)])(_0x5ce4cc,this['_tableId'],this[_0x9c2e05(0x160)]());return _0x57c42a?this[_0x9c2e05(0x146)](_0x5ce4cc,_0x57c42a[_0x9c2e05(0x20c)]):!0x1;}[_0x4c47a3(0x1af)](_0x25c344,_0x4efce5){const _0x255e47=_0x4c47a3;return!!this[_0x255e47(0x1a5)][_0x255e47(0x1fd)](e[_0x255e47(0x17b)]['id'],{'unitId':this[_0x255e47(0x1b2)],'tableId':this[_0x255e47(0x15e)],'segmentId':this['_segmentId'],'column':_0x25c344,'config':_0x4efce5});}[_0x4c47a3(0x140)](_0x2c42f8,_0x173a03){const _0x47981f=_0x4c47a3;let _0x343ce0=this[_0x47981f(0x164)]();return this[_0x47981f(0x146)](_0x343ce0,(0x0,e[_0x47981f(0x19a)])(_0x343ce0,this[_0x47981f(0x136)](),this[_0x47981f(0x15e)],_0x2c42f8,_0x173a03,this[_0x47981f(0x160)]()));}[_0x4c47a3(0x13f)](_0x1090c0,_0x520dca,_0x3f657c){const _0x1d32c4=_0x4c47a3;return(0x0,e['buildSetTableBorderMutationActions'])({'documentData':_0x1090c0,'tableId':this[_0x1d32c4(0x15e)],..._0x520dca,'preset':_0x3f657c[_0x1d32c4(0x1c4)]??e[_0x1d32c4(0x127)][_0x1d32c4(0x1be)],'border':_0x3f657c[_0x1d32c4(0x1a4)]??{'color':{'rgb':_0x3f657c[_0x1d32c4(0x167)]??this['_injector'][_0x1d32c4(0x1e4)](t[_0x1d32c4(0x1e3)])[_0x1d32c4(0x1a2)]('gray.900')},'width':{'v':_0x3f657c[_0x1d32c4(0x169)]??0x1},'dashStyle':t[_0x1d32c4(0x187)][_0x1d32c4(0x186)]}});}['_getDocumentData'](){const _0x10c0c7=_0x4c47a3;let _0x1004e1=this[_0x10c0c7(0x13d)][_0x10c0c7(0x1eb)]()[_0x10c0c7(0x12d)]();return this[_0x10c0c7(0x184)]?{...this['_document'][_0x10c0c7(0x1eb)](this[_0x10c0c7(0x184)])[_0x10c0c7(0x12d)](),'documentStyle':_0x1004e1[_0x10c0c7(0x1c5)],'tableSource':_0x1004e1[_0x10c0c7(0x1a9)]}:_0x1004e1;}[_0x4c47a3(0x136)](){const _0x38ad65=_0x4c47a3;return this['_injector'][_0x38ad65(0x1e4)](e[_0x38ad65(0x18f)])[_0x38ad65(0x147)](this[_0x38ad65(0x1b2)],this['_document']['getDocumentDataModel']()[_0x38ad65(0x12d)]());}['_getBodyPath'](){const _0x596f0c=_0x4c47a3;return(0x0,e[_0x596f0c(0x177)])(this[_0x596f0c(0x13d)][_0x596f0c(0x1eb)]()[_0x596f0c(0x12d)](),this[_0x596f0c(0x184)]);}[_0x4c47a3(0x146)](_0x162a93,_0x2055f3,_0x52a2bb){const _0x4fd998=_0x4c47a3;return(0x0,e[_0x4fd998(0x1b5)])(this[_0x4fd998(0x1a5)],this[_0x4fd998(0x1b2)],_0x162a93,_0x2055f3,_0x52a2bb?{'tableId':this[_0x4fd998(0x15e)],'segmentId':this['_segmentId'],..._0x52a2bb}:void 0x0);}};f=d([u(0x3,t[_0x4c47a3(0x1db)]),u(0x4,(0x0,t[_0x4c47a3(0x1e6)])(t['Injector']))],f);var p=class extends r['FDocument']{[_0x4c47a3(0x1b0)](_0x2ea88f=''){const _0x29f75f=_0x4c47a3;return this[_0x29f75f(0x14e)](_0x2ea88f)[_0x29f75f(0x1cb)](_0x4d01dc=>this[_0x29f75f(0x165)](_0x4d01dc['tableId'],_0x2ea88f));}[_0x4c47a3(0x141)](_0x40d74a,_0x3c2976=''){const _0x57fa8e=_0x4c47a3;return this[_0x57fa8e(0x14e)](_0x3c2976)[_0x57fa8e(0x15d)](_0xd1290c=>_0xd1290c[_0x57fa8e(0x191)]===_0x40d74a)?this[_0x57fa8e(0x165)](_0x40d74a,_0x3c2976):null;}[_0x4c47a3(0x153)](_0x1bf26c,_0x4ebedc=''){const _0xa38260=_0x4c47a3;var _0x1de3c8;let _0x37b34e=(_0x1de3c8=this['_getTables'](_0x4ebedc)[_0x1bf26c])==null?void 0x0:_0x1de3c8[_0xa38260(0x191)];return _0x37b34e?this[_0xa38260(0x165)](_0x37b34e,_0x4ebedc):null;}[_0x4c47a3(0x20b)](){const _0x68c727=_0x4c47a3;let _0x55c89f=this[_0x68c727(0x1a8)][_0x68c727(0x1e4)](e[_0x68c727(0x195)])[_0x68c727(0x15b)]();return _0x55c89f!=null&&_0x55c89f[_0x68c727(0x191)]?this['_createFDocumentTable'](_0x55c89f['tableId'],_0x55c89f['segmentId']):null;}['findTableByText'](_0xbc4043,_0x432cab=''){const _0x5cbed8=_0x4c47a3;return this[_0x5cbed8(0x1ff)](_0xbc4043,_0x432cab)[0x0]??null;}[_0x4c47a3(0x1ff)](_0x15bbb8,_0x149431=''){const _0x5e3124=_0x4c47a3;let _0x3c7c8f=this[_0x5e3124(0x137)](_0x149431),_0x1bb5b9=typeof _0x15bbb8==_0x5e3124(0x1b4)?{'text':_0x15bbb8}:_0x15bbb8;return this[_0x5e3124(0x1b0)](_0x149431)[_0x5e3124(0x14c)](_0x3a5553=>{const _0x2fdc42=_0x5e3124;let _0x3b677c=_0x3a5553[_0x2fdc42(0x1fb)]();return!(_0x1bb5b9[_0x2fdc42(0x191)]&&_0x3b677c!==_0x1bb5b9[_0x2fdc42(0x191)]||_0x1bb5b9[_0x2fdc42(0x189)]&&!this[_0x2fdc42(0x171)](_0x3c7c8f,_0x3b677c,_0x1bb5b9[_0x2fdc42(0x189)])||_0x1bb5b9['headerText']&&!this['_rowContainsText'](_0x3a5553,0x0,_0x1bb5b9[_0x2fdc42(0x134)])||_0x1bb5b9['titleText']&&!this[_0x2fdc42(0x1d9)](_0x3a5553,0x0,_0x1bb5b9[_0x2fdc42(0x14a)]));});}[_0x4c47a3(0x156)](_0xe37348,_0x4f9a32,_0x4b95aa={}){const _0x57d763=_0x4c47a3;let _0x4472b2=this[_0x57d763(0x1a8)][_0x57d763(0x1e4)](t[_0x57d763(0x1db)]),_0x1a208a=_0x4b95aa['tableId']??(0x0,t[_0x57d763(0x20a)])(0x6);return _0x4472b2['syncExecuteCommand'](e[_0x57d763(0x202)]['id'],{..._0x4b95aa,'unitId':this[_0x57d763(0x1fb)](),'rows':_0xe37348,'columns':_0x4f9a32,'tableId':_0x1a208a})?this[_0x57d763(0x165)](_0x1a208a,_0x4b95aa[_0x57d763(0x197)]??''):null;}['insertTableFromData'](_0x5c6c9f,_0xa66b87={}){const _0x50eaf5=_0x4c47a3;let _0x1913bb=this[_0x50eaf5(0x1a8)]['get'](t[_0x50eaf5(0x1db)]),_0x14c345=_0xa66b87[_0x50eaf5(0x191)]??(0x0,t[_0x50eaf5(0x20a)])(0x6);return _0x1913bb['syncExecuteCommand'](e['DocsTableInsertTableCommand']['id'],{..._0xa66b87,'unitId':this['getId'](),'values':_0x5c6c9f,'tableId':_0x14c345})?this['_createFDocumentTable'](_0x14c345,_0xa66b87['segmentId']??''):null;}[_0x4c47a3(0x14e)](_0x4e2ac5=''){let {tables:_0xf2d04f=[]}=this['getBody'](_0x4e2ac5);return _0xf2d04f;}[_0x4c47a3(0x137)](_0x2283b7=''){const _0x5370c7=_0x4c47a3;let _0x39f5a1=this['getDocumentDataModel']()[_0x5370c7(0x12d)]();return _0x2283b7?{...this['getDocumentDataModel'](_0x2283b7)['getSnapshot'](),'documentStyle':_0x39f5a1[_0x5370c7(0x1c5)],'tableSource':_0x39f5a1['tableSource']}:_0x39f5a1;}[_0x4c47a3(0x165)](_0x115063,_0x273799=''){const _0x3718a5=_0x4c47a3;return this['_injector'][_0x3718a5(0x1fe)](f,this,_0x115063,_0x273799);}['_tableContainsText'](_0x325802,_0x5d6521,_0x170f07){const _0x3043f8=_0x4c47a3;var _0x3c6b98;let _0x1d7bea=(0x0,e[_0x3043f8(0x1e7)])(_0x325802,_0x5d6521);if(!_0x1d7bea)return!0x1;let _0x173018=(_0x3c6b98=_0x325802[_0x3043f8(0x18d)])==null?void 0x0:_0x3c6b98[_0x3043f8(0x1e9)];return _0x173018?_0x173018[_0x3043f8(0x133)](_0x1d7bea[_0x3043f8(0x1c1)],_0x1d7bea[_0x3043f8(0x18b)])[_0x3043f8(0x1ae)](_0x170f07):!0x1;}['_rowContainsText'](_0x1c6971,_0x233f9a,_0x2c1731){const _0x4e8693=_0x4c47a3;return Array['from']({'length':_0x1c6971[_0x4e8693(0x182)]()},(_0x19e8bf,_0x1c7d98)=>_0x1c6971[_0x4e8693(0x16c)](_0x233f9a,_0x1c7d98))[_0x4e8693(0x15d)](_0x12e7ef=>_0x12e7ef[_0x4e8693(0x1ae)](_0x2c1731));}};r['FDocument'][_0x4c47a3(0x132)](p),Object['defineProperty'](exports,_0x4c47a3(0x1d1),{'enumerable':!0x0,'get':function(){return f;}}),exports['FDocumentTableCell']=a;
|