@univerjs-pro/docs-table 1.2.0 → 1.3.1

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 CHANGED
@@ -39,6 +39,8 @@ univer.registerPlugin(UniverDocsTablePlugin);
39
39
 
40
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
41
 
42
+ `DocsTableSetTableAlignCommand` sets whole-table alignment in Traditional documents. Execute it through `ICommandService` with explicit `unitId`, `tableId`, and `value` (`TableAlignmentType.START`, `CENTER`, or `END`). It updates the existing table `align` property, participates in undo/redo, and preserves the value when saved and reopened. Non-Traditional documents reject this command. The [table UI package](../docs-table-ui/README.md#usage) exposes these choices in the **Table** Ribbon tab.
43
+
42
44
  `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
45
 
44
46
  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.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
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;
1
+ const _0x29001b=_0x58d4;(function(_0x2af533,_0x4010a6){const _0x1e61ba=_0x58d4,_0x57ca5e=_0x2af533();while(!![]){try{const _0x28ba78=parseInt(_0x1e61ba(0x1ba))/0x1+-parseInt(_0x1e61ba(0x16d))/0x2*(-parseInt(_0x1e61ba(0x1c9))/0x3)+-parseInt(_0x1e61ba(0x1a1))/0x4+-parseInt(_0x1e61ba(0x1ce))/0x5*(-parseInt(_0x1e61ba(0x213))/0x6)+parseInt(_0x1e61ba(0x18c))/0x7+parseInt(_0x1e61ba(0x194))/0x8+-parseInt(_0x1e61ba(0x21e))/0x9;if(_0x28ba78===_0x4010a6)break;else _0x57ca5e['push'](_0x57ca5e['shift']());}catch(_0x1a0df5){_0x57ca5e['push'](_0x57ca5e['shift']());}}}(_0x3d34,0x2d33c),Object[_0x29001b(0x200)](exports,Symbol[_0x29001b(0x22a)],{'value':_0x29001b(0x173)}));function _0x3d34(){const _0x18222f=['compose','buildMoveTableToOffsetMutationActions','type','Inject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','JSONX','body','DocsTableDeleteRowsCommand','AT_LEAST','buildMoveFloatingTableMutationActions','margin','findTables','cellMargin','moveTableToOffset','tableCells','constructor','tableSource','DocsTableDeleteTableCommand','getHeaderRowCount','1499379WeNfTO','setColumnWidth','moveColumn','rows','moveColumns','selectCell','Left','tableColumns','448800xuNSxF','distributeRows','_createFDocumentTable','string','DocsTableSelectionService','deleteRow','backgroundColor','getColumnCount','setStructuralSelection','buildSetTableHeaderRowCountMutationActions','getCellRange','SOLID','_serializeModel','282784ogyHZx','Tools','headerText','DashStyleType','Above','All','Below','color','function','buildMergeCellsMutationActions','getCell','getSource','getRowHeight','getCellInsertOffset','getInfo','insertRowsAfter','_row','distributeColumns','insertColumnsAfter','getMetadata','buildSetTableCellMarginMutationActions','getTableRange','TableRowHeightRule','buildSetTableCellTextMutationActions','DocsTableInsertTablePosition','223243GPrqQb','toPrimitive','symbol','getTableRangeById','getId','Row','selectRange','getText','ThemeService','mergeCells','_unitId','getCellContentRange','buildSetTableDefaultCellMarginMutationActions','getTableAtSelection','DocsTableRowInsertPosition','26661pLaFTA','selectColumns','insertRowsBefore','unmergeCells','getSnapshot','710UTUawp','insertTableFromData','buildDistributeTableColumnsMutationActions','getTables','getRowsRange','setCellBackground','_injector','columnTypes','border','FDocumentTable','getMarginOverride','setRowHeight','titleText','max','ICommandService','FEnum','DocsTableSelectionKind','_mutateActions','includes','get','clearMarginOverride','getTable','moveRows','width','buildResizeTableRowActionsFromHeight','getDefaultCellMargin','_buildBorderActions','getCellMarginOverride','endOffset','_column','moveTableBy','insertTable','FDocument','segmentId','getCellText','_getBodyPath','Right','deleteRows','buildSetTableBorderMutationActions','appendColumn','insertColumnAfter','DocsTableColumnType','decorate','describe','titleRow','getColumnsRange','dataStream','extend','preset','buildInsertTableRowsMutationActions','defineProperty','setDefaultCellMargin','documentStyle','selectRows','setTableStyle','setMargin','iterator','_commandService','unmerge','DocsTableModel','DocsTableBorderPreset','insertRowBefore','_getTables','mergeTo','buildDistributeTableRowsMutationActions','_getDocumentData','DocsTableInsertPosition','buildMoveTableColumnsMutationActions','some','9606dgtzew','getMargin','Column','getDocumentDataModel','DocsTableInsertTableCommand','syncExecuteCommand','insertRowAfter','findTableByText','prototype','_segmentId','FDocumentTableCell','4585257mnOCBM','setBorder','getTableActionBodyPath','size','insertColumnsBefore','deleteColumn','getSegmentId','setColumnType','deepClone','_table','map','default','toStringTag','DEFAULT_DOCS_TABLE_CELL_MARGIN','DocsTableColumnInsertPosition','buildUnmergeCellsMutationActions','getRowCount','length','Cell','deleteTable','getContentRange','buildInsertTableTitleRowMutationActions','buildMoveTableRowsMutationActions','object','DocsTableSetColumnTypeCommand','getStableTableSelection','startOffset','_document','actions','setText','getOwnPropertyDescriptor','text','selectTable','tableRows','_rowContainsText','executeRichTextTableActions','buildInsertTableColumnsMutationActions','from','selectColumn','buildSortTableMutationActions','getCellMargin','_tableId','_getTableDocumentData','10ipabHI','deleteColumns','cells','setHeaderRowCount','setCellMargin','buildSetTableBackgroundMutationActions','Module','replace','getRange','slice','_tableContainsText','tableId'];_0x3d34=function(){return _0x18222f;};return _0x3d34();}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[_0x29001b(0x1dd)]{get[_0x29001b(0x1b9)](){const _0x18b8b4=_0x29001b;return e[_0x18b8b4(0x1b9)];}get[_0x29001b(0x1f7)](){const _0x411c93=_0x29001b;return e[_0x411c93(0x1f7)];}get[_0x29001b(0x1de)](){return e['DocsTableSelectionKind'];}get[_0x29001b(0x1c8)](){const _0x49f7d4=_0x29001b;return e[_0x49f7d4(0x1c8)];}get['DocsTableColumnInsertPosition'](){const _0x1b13d5=_0x29001b;return e[_0x1b13d5(0x22c)];}get[_0x29001b(0x20a)](){const _0x4409f6=_0x29001b;return e[_0x4409f6(0x20a)];}get['DocsTableSortDirection'](){return e['DocsTableSortDirection'];}get['DashStyleType'](){const _0x474e63=_0x29001b;return t[_0x474e63(0x1a4)];}};n[_0x29001b(0x1dd)][_0x29001b(0x1fd)](i);var a=class{constructor(_0x9ad059,_0x4524f5,_0x4a0d02){const _0x43e74c=_0x29001b;this[_0x43e74c(0x227)]=_0x9ad059,this[_0x43e74c(0x1b1)]=_0x4524f5,this[_0x43e74c(0x1eb)]=_0x4a0d02;}[_0x29001b(0x1e3)](){const _0x455e37=_0x29001b;return this[_0x455e37(0x227)];}['getRowIndex'](){const _0x3f39c9=_0x29001b;return this[_0x3f39c9(0x1b1)];}['getColumnIndex'](){const _0x1ea531=_0x29001b;return this[_0x1ea531(0x1eb)];}[_0x29001b(0x1c1)](){const _0x4ee541=_0x29001b;return this[_0x4ee541(0x227)]['getCellText'](this[_0x4ee541(0x1b1)],this[_0x4ee541(0x1eb)]);}[_0x29001b(0x232)](){const _0x20a07f=_0x29001b;return this[_0x20a07f(0x227)][_0x20a07f(0x1c5)](this['_row'],this['_column']);}['getInsertOffset'](){const _0x225fd8=_0x29001b;return this[_0x225fd8(0x227)][_0x225fd8(0x1ae)](this[_0x225fd8(0x1b1)],this[_0x225fd8(0x1eb)]);}[_0x29001b(0x214)](){const _0xfc53f1=_0x29001b;return this[_0xfc53f1(0x227)]['getCellMargin'](this[_0xfc53f1(0x1b1)],this['_column']);}[_0x29001b(0x1d8)](){const _0x1bae5f=_0x29001b;return this[_0x1bae5f(0x227)][_0x1bae5f(0x1e9)](this[_0x1bae5f(0x1b1)],this[_0x1bae5f(0x1eb)]);}[_0x29001b(0x205)](_0x4da29e){const _0x34971a=_0x29001b;return this[_0x34971a(0x227)][_0x34971a(0x171)](this[_0x34971a(0x227)][_0x34971a(0x19e)](this[_0x34971a(0x1b1)],this[_0x34971a(0x1eb)]),_0x4da29e);}[_0x29001b(0x1e2)](){const _0x3e5ab8=_0x29001b;return this['_table'][_0x3e5ab8(0x171)](this[_0x3e5ab8(0x227)]['getCellRange'](this[_0x3e5ab8(0x1b1)],this[_0x3e5ab8(0x1eb)]),null);}[_0x29001b(0x23b)](_0x7cccbc){const _0x1229c7=_0x29001b;return this[_0x1229c7(0x227)]['setCellText'](this[_0x1229c7(0x1b1)],this[_0x1229c7(0x1eb)],_0x7cccbc);}['setBackgroundColor'](_0x5e9a0c){const _0x11025c=_0x29001b;return this[_0x11025c(0x227)]['setCellBackground'](this[_0x11025c(0x227)]['getCellRange'](this['_row'],this[_0x11025c(0x1eb)]),_0x5e9a0c);}[_0x29001b(0x21f)](_0x224fa0){const _0x1a9690=_0x29001b;return this[_0x1a9690(0x227)]['setBorder'](this[_0x1a9690(0x227)][_0x1a9690(0x19e)](this[_0x1a9690(0x1b1)],this[_0x1a9690(0x1eb)]),_0x224fa0);}[_0x29001b(0x20d)](_0x16cd4a,_0x10ed2a){const _0x42d0fb=_0x29001b;return this[_0x42d0fb(0x227)]['mergeCells']({'startRow':this[_0x42d0fb(0x1b1)],'startColumn':this['_column'],'endRow':this[_0x42d0fb(0x1b1)]+_0x16cd4a-0x1,'endColumn':this[_0x42d0fb(0x1eb)]+_0x10ed2a-0x1});}[_0x29001b(0x208)](){const _0x4aeb0f=_0x29001b;return this[_0x4aeb0f(0x227)][_0x4aeb0f(0x1cc)](this[_0x4aeb0f(0x227)][_0x4aeb0f(0x19e)](this[_0x4aeb0f(0x1b1)],this[_0x4aeb0f(0x1eb)]));}};function o(_0x41dc46){'@babel/helpers - typeof';const _0x1ff24f=_0x29001b;return o=typeof Symbol=='function'&&typeof Symbol[_0x1ff24f(0x206)]==_0x1ff24f(0x1bc)?function(_0x21ac46){return typeof _0x21ac46;}:function(_0xcd8147){const _0x4526e3=_0x1ff24f;return _0xcd8147&&typeof Symbol==_0x4526e3(0x1a9)&&_0xcd8147[_0x4526e3(0x188)]===Symbol&&_0xcd8147!==Symbol[_0x4526e3(0x21b)]?'symbol':typeof _0xcd8147;},o(_0x41dc46);}function _0x58d4(_0x36ac56,_0x319c4b){_0x36ac56=_0x36ac56-0x164;const _0x3d3419=_0x3d34();let _0x58d407=_0x3d3419[_0x36ac56];return _0x58d407;}function s(_0x1f986a,_0x713c2f){const _0x281a28=_0x29001b;if(o(_0x1f986a)!=_0x281a28(0x235)||!_0x1f986a)return _0x1f986a;var _0x394e16=_0x1f986a[Symbol[_0x281a28(0x1bb)]];if(_0x394e16!==void 0x0){var _0x36f6ab=_0x394e16['call'](_0x1f986a,_0x713c2f||_0x281a28(0x229));if(o(_0x36f6ab)!=_0x281a28(0x235))return _0x36f6ab;throw TypeError(_0x281a28(0x17d));}return(_0x713c2f===_0x281a28(0x197)?String:Number)(_0x1f986a);}function c(_0x295172){const _0x4e3129=_0x29001b;var _0x37cedd=s(_0x295172,_0x4e3129(0x197));return o(_0x37cedd)==_0x4e3129(0x1bc)?_0x37cedd:_0x37cedd+'';}function l(_0x2462a9,_0x3e001a,_0x15e73f){return(_0x3e001a=c(_0x3e001a))in _0x2462a9?Object['defineProperty'](_0x2462a9,_0x3e001a,{'value':_0x15e73f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2462a9[_0x3e001a]=_0x15e73f,_0x2462a9;}function u(_0x47e732,_0x4d6550){return function(_0x453b3e,_0x30ea15){_0x4d6550(_0x453b3e,_0x30ea15,_0x47e732);};}function d(_0x12b7f7,_0x204274,_0x3c0bdd,_0x3d0a95){const _0xfe1412=_0x29001b;var _0xe9f263=arguments[_0xfe1412(0x22f)],_0x3a2689=_0xe9f263<0x3?_0x204274:_0x3d0a95===null?_0x3d0a95=Object[_0xfe1412(0x23c)](_0x204274,_0x3c0bdd):_0x3d0a95,_0x3b4aeb;if(typeof Reflect==_0xfe1412(0x235)&&typeof Reflect[_0xfe1412(0x1f8)]==_0xfe1412(0x1a9))_0x3a2689=Reflect[_0xfe1412(0x1f8)](_0x12b7f7,_0x204274,_0x3c0bdd,_0x3d0a95);else{for(var _0x5a3db7=_0x12b7f7[_0xfe1412(0x22f)]-0x1;_0x5a3db7>=0x0;_0x5a3db7--)(_0x3b4aeb=_0x12b7f7[_0x5a3db7])&&(_0x3a2689=(_0xe9f263<0x3?_0x3b4aeb(_0x3a2689):_0xe9f263>0x3?_0x3b4aeb(_0x204274,_0x3c0bdd,_0x3a2689):_0x3b4aeb(_0x204274,_0x3c0bdd))||_0x3a2689);}return _0xe9f263>0x3&&_0x3a2689&&Object[_0xfe1412(0x200)](_0x204274,_0x3c0bdd,_0x3a2689),_0x3a2689;}let f=class{constructor(_0x5d40bf,_0x156112,_0x300f56,_0x13c149,_0x213c23){const _0x14d157=_0x29001b;this['_document']=_0x5d40bf,this[_0x14d157(0x16b)]=_0x156112,this[_0x14d157(0x21c)]=_0x300f56,this[_0x14d157(0x207)]=_0x13c149,this['_injector']=_0x213c23,l(this,_0x14d157(0x1c4),void 0x0),this['_unitId']=this[_0x14d157(0x239)]['getId']();}['getId'](){const _0xa3a081=_0x29001b;return this[_0xa3a081(0x16b)];}[_0x29001b(0x224)](){const _0x25ab5c=_0x29001b;return this[_0x25ab5c(0x21c)];}[_0x29001b(0x1af)](){const _0x17aeeb=_0x29001b;return{'id':this[_0x17aeeb(0x16b)],'rowCount':this[_0x17aeeb(0x22e)](),'columnCount':this[_0x17aeeb(0x19b)](),'metadata':this['getMetadata'](),'source':this[_0x17aeeb(0x1ac)]()};}[_0x29001b(0x1f9)](){const _0x2b7539=_0x29001b;let _0x41d153=this[_0x2b7539(0x1b4)](),_0x1b8df6=this['getSource'](),_0x1ee908=this['getColumnCount']();return{'id':this['_tableId'],'rowCount':this[_0x2b7539(0x22e)](),'columnCount':_0x1ee908,'headerRowCount':(_0x41d153==null?void 0x0:_0x41d153['headerRowCount'])??0x0,'titleRow':(_0x41d153==null?void 0x0:_0x41d153[_0x2b7539(0x1fa)])??!0x1,'columns':Array[_0x2b7539(0x167)]({'length':_0x1ee908},(_0x4f7cff,_0x556800)=>{const _0x2bc76e=_0x2b7539;var _0x194246,_0x3bf431;return{'index':_0x556800,'type':_0x41d153==null||(_0x194246=_0x41d153[_0x2bc76e(0x1d5)])==null||(_0x194246=_0x194246[_0x556800])==null?void 0x0:_0x194246[_0x2bc76e(0x17b)],'width':_0x1b8df6==null||(_0x3bf431=_0x1b8df6[_0x2bc76e(0x193)][_0x556800])==null?void 0x0:_0x3bf431[_0x2bc76e(0x221)][_0x2bc76e(0x1e5)]['v']};}),'sampleRows':Array[_0x2b7539(0x167)]({'length':this[_0x2b7539(0x22e)]()},(_0x54978e,_0x1736eb)=>Array[_0x2b7539(0x167)]({'length':_0x1ee908},(_0x2c42bd,_0x3b6107)=>this['getCellText'](_0x1736eb,_0x3b6107)))['filter'](_0x1d9a86=>_0x1d9a86[_0x2b7539(0x212)](_0x317874=>_0x317874['length']>0x0))[_0x2b7539(0x176)](0x0,0x5)};}[_0x29001b(0x22e)](){const _0x12bb4b=_0x29001b;var _0x59c733;return((_0x59c733=this['getSource']())==null?void 0x0:_0x59c733[_0x12bb4b(0x23f)][_0x12bb4b(0x22f)])??0x0;}[_0x29001b(0x19b)](){const _0x1e3aaf=_0x29001b;var _0x2ad720;return((_0x2ad720=this[_0x1e3aaf(0x1ac)]())==null?void 0x0:_0x2ad720[_0x1e3aaf(0x193)][_0x1e3aaf(0x22f)])??0x0;}[_0x29001b(0x1ab)](_0xd5806,_0x327836){const _0x5ebca5=_0x29001b;var _0xf9bb3b;return(_0xf9bb3b=this['getSource']())!=null&&(_0xf9bb3b=_0xf9bb3b[_0x5ebca5(0x23f)][_0xd5806])!=null&&_0xf9bb3b[_0x5ebca5(0x187)][_0x327836]?this[_0x5ebca5(0x1d4)]['createInstance'](a,this,_0xd5806,_0x327836):null;}[_0x29001b(0x1f0)](_0x39db5e,_0x5ced05){const _0x4c8bfc=_0x29001b;var _0x21b6e0,_0x1f371b;let _0x379751=(_0x21b6e0=(0x0,e['getTableRangeById'])(this[_0x4c8bfc(0x20f)](),this['_tableId']))==null||(_0x21b6e0=_0x21b6e0['rows'][_0x39db5e])==null?void 0x0:_0x21b6e0[_0x4c8bfc(0x16f)][_0x5ced05];return _0x379751?((_0x1f371b=this[_0x4c8bfc(0x20f)]()[_0x4c8bfc(0x17f)])==null?void 0x0:_0x1f371b[_0x4c8bfc(0x1fc)][_0x4c8bfc(0x176)](_0x379751['startOffset']+0x1,_0x379751[_0x4c8bfc(0x1ea)])[_0x4c8bfc(0x174)](/\r\n$/,''))??'':'';}[_0x29001b(0x16a)](_0x4469a8,_0x4d5eba){const _0x20befe=_0x29001b;var _0x78c1ef;let _0x3b1271=this[_0x20befe(0x1ac)](),_0x157855=_0x3b1271==null||(_0x78c1ef=_0x3b1271['tableRows'][_0x4469a8])==null?void 0x0:_0x78c1ef['tableCells'][_0x4d5eba];return _0x157855?t['Tools'][_0x20befe(0x226)](_0x157855[_0x20befe(0x183)]??_0x3b1271['cellMargin']??e[_0x20befe(0x22b)]):null;}['getCellMarginOverride'](_0x7d0a50,_0x5845f7){const _0x2b5da0=_0x29001b;var _0x4596e1;let _0x1f0b59=(_0x4596e1=this[_0x2b5da0(0x1ac)]())==null||(_0x4596e1=_0x4596e1[_0x2b5da0(0x23f)][_0x7d0a50])==null?void 0x0:_0x4596e1['tableCells'][_0x5845f7];return _0x1f0b59!=null&&_0x1f0b59[_0x2b5da0(0x183)]?t[_0x2b5da0(0x1a2)]['deepClone'](_0x1f0b59['margin']):null;}[_0x29001b(0x1e7)](){const _0x4ca0fd=_0x29001b;var _0x282227;return t[_0x4ca0fd(0x1a2)]['deepClone'](((_0x282227=this[_0x4ca0fd(0x1ac)]())==null?void 0x0:_0x282227[_0x4ca0fd(0x185)])??e['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}['getDefaultCellMarginOverride'](){const _0x4a6327=_0x29001b;var _0x64817e;let _0x68cbd2=(_0x64817e=this[_0x4a6327(0x1ac)]())==null?void 0x0:_0x64817e[_0x4a6327(0x185)];return _0x68cbd2?t['Tools'][_0x4a6327(0x226)](_0x68cbd2):null;}[_0x29001b(0x1b4)](){const _0x2c6c93=_0x29001b;let _0x4e6a67=this[_0x2c6c93(0x1d4)][_0x2c6c93(0x1e1)](e[_0x2c6c93(0x209)]),_0x435087=this[_0x2c6c93(0x1ac)]();return _0x435087?_0x4e6a67['resolveTableMetadata'](this[_0x2c6c93(0x1c4)],_0x435087):void 0x0;}[_0x29001b(0x1ac)](){const _0x1f7de3=_0x29001b;var _0x1e012f;return(_0x1e012f=this[_0x1f7de3(0x20f)]()['tableSource'])==null?void 0x0:_0x1e012f[this['_tableId']];}[_0x29001b(0x175)](){const _0x244aa6=_0x29001b;return(0x0,e[_0x244aa6(0x1bd)])(this[_0x244aa6(0x20f)](),this[_0x244aa6(0x16b)]);}[_0x29001b(0x1b6)](){const _0x43a3f4=_0x29001b;return{'startRow':0x0,'endRow':Math[_0x43a3f4(0x1db)](0x0,this[_0x43a3f4(0x22e)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x43a3f4(0x19b)]()-0x1)};}[_0x29001b(0x19e)](_0x1210e0,_0x4da1e8){return{'startRow':_0x1210e0,'endRow':_0x1210e0,'startColumn':_0x4da1e8,'endColumn':_0x4da1e8};}[_0x29001b(0x1c5)](_0x39b6ea,_0x19bc9d){const _0x793066=_0x29001b;var _0x5cad4d;let _0x275afd=(_0x5cad4d=(0x0,e[_0x793066(0x1bd)])(this[_0x793066(0x20f)](),this[_0x793066(0x16b)]))==null||(_0x5cad4d=_0x5cad4d[_0x793066(0x18f)][_0x39b6ea])==null?void 0x0:_0x5cad4d['cells'][_0x19bc9d];if(!_0x275afd)return null;let _0x22f875=_0x275afd['startOffset']+0x1;return{'startOffset':_0x22f875,'endOffset':Math[_0x793066(0x1db)](_0x22f875,_0x275afd[_0x793066(0x1ea)]-0x1),'segmentId':this[_0x793066(0x21c)]};}[_0x29001b(0x1ae)](_0x431d52,_0x4341de){const _0x56067c=_0x29001b;let _0x1e6fca=this[_0x56067c(0x1c5)](_0x431d52,_0x4341de);return _0x1e6fca?Math[_0x56067c(0x1db)](_0x1e6fca[_0x56067c(0x238)],_0x1e6fca['endOffset']-0x1):null;}['getRowRange'](_0x1fc627){return this['getRowsRange'](_0x1fc627,0x1);}[_0x29001b(0x1d2)](_0x3c82d4,_0x170e79=0x1){const _0x24ef7a=_0x29001b;return{'startRow':_0x3c82d4,'endRow':_0x3c82d4+_0x170e79-0x1,'startColumn':0x0,'endColumn':Math[_0x24ef7a(0x1db)](0x0,this['getColumnCount']()-0x1)};}['getColumnRange'](_0x1c3ed4){const _0x1454f8=_0x29001b;return this[_0x1454f8(0x1fb)](_0x1c3ed4,0x1);}[_0x29001b(0x1fb)](_0x546717,_0x4b79de=0x1){const _0x5e768a=_0x29001b;return{'startRow':0x0,'endRow':Math[_0x5e768a(0x1db)](0x0,this[_0x5e768a(0x22e)]()-0x1),'startColumn':_0x546717,'endColumn':_0x546717+_0x4b79de-0x1};}[_0x29001b(0x23e)](){const _0x291efa=_0x29001b;return this[_0x291efa(0x1c0)](this['getTableRange'](),e[_0x291efa(0x1de)]['Table']);}['selectRow'](_0xec77d5){const _0x2c457b=_0x29001b;return this[_0x2c457b(0x203)](_0xec77d5,0x1);}[_0x29001b(0x203)](_0x34671a,_0x58651f=0x1){const _0x128a9c=_0x29001b;return this[_0x128a9c(0x1c0)](this[_0x128a9c(0x1d2)](_0x34671a,_0x58651f),e[_0x128a9c(0x1de)][_0x128a9c(0x1bf)]);}[_0x29001b(0x168)](_0x3d16c1){const _0x4f07c0=_0x29001b;return this[_0x4f07c0(0x1ca)](_0x3d16c1,0x1);}['selectColumns'](_0x3069d6,_0x57cdd5=0x1){const _0x543db2=_0x29001b;return this[_0x543db2(0x1c0)](this[_0x543db2(0x1fb)](_0x3069d6,_0x57cdd5),e[_0x543db2(0x1de)][_0x543db2(0x215)]);}[_0x29001b(0x191)](_0x194df2,_0x197dbc){const _0x2a0225=_0x29001b;return this[_0x2a0225(0x1c0)](this['getCellRange'](_0x194df2,_0x197dbc),e[_0x2a0225(0x1de)][_0x2a0225(0x230)]);}[_0x29001b(0x1c0)](_0x12c984,_0x5313f7=e[_0x29001b(0x1de)]['Range']){const _0x2103d5=_0x29001b;return this[_0x2103d5(0x1d4)][_0x2103d5(0x1e1)](e[_0x2103d5(0x198)])[_0x2103d5(0x19c)]({..._0x12c984,'kind':_0x5313f7,'segmentId':this[_0x2103d5(0x21c)],'tableId':this[_0x2103d5(0x16b)]}),!0x0;}[_0x29001b(0x20b)](_0x27cada){return this['insertRowsBefore'](_0x27cada,0x1);}[_0x29001b(0x219)](_0xa6d6bc){const _0x3d4a4b=_0x29001b;return this[_0x3d4a4b(0x1b0)](_0xa6d6bc,0x1);}[_0x29001b(0x1cb)](_0xe492a,_0xdcc0f8){const _0x599652=_0x29001b;let _0x1aff90=this['_getDocumentData'](),_0x15fe55=(0x0,e[_0x599652(0x1ff)])(_0x1aff90,this['_tableId'],_0xe492a,_0xdcc0f8,e[_0x599652(0x210)][_0x599652(0x1a5)],this['_getBodyPath']());return _0x15fe55?this[_0x599652(0x1df)](_0x1aff90,_0x15fe55[_0x599652(0x23a)]):!0x1;}[_0x29001b(0x1b0)](_0x108d36,_0x289837){const _0x1821bf=_0x29001b;let _0x313767=this['_getDocumentData'](),_0x1b9691=(0x0,e[_0x1821bf(0x1ff)])(_0x313767,this[_0x1821bf(0x16b)],_0x108d36,_0x289837,e[_0x1821bf(0x210)][_0x1821bf(0x1a7)],this[_0x1821bf(0x1f1)]());return _0x1b9691?this[_0x1821bf(0x1df)](_0x313767,_0x1b9691[_0x1821bf(0x23a)]):!0x1;}['appendRow'](){const _0x4ebd80=_0x29001b;return this[_0x4ebd80(0x1b0)](Math[_0x4ebd80(0x1db)](0x0,this['getRowCount']()-0x1),0x1);}['insertColumnBefore'](_0x23dee2){const _0x1514e6=_0x29001b;return this[_0x1514e6(0x222)](_0x23dee2,0x1);}[_0x29001b(0x1f6)](_0x302975){const _0x37e377=_0x29001b;return this[_0x37e377(0x1b3)](_0x302975,0x1);}[_0x29001b(0x222)](_0x1a536c,_0x409dfa){const _0xb91b7=_0x29001b;let _0xf786cd=this[_0xb91b7(0x20f)](),_0xb6f931=(0x0,e['buildInsertTableColumnsMutationActions'])(_0xf786cd,this[_0xb91b7(0x16b)],_0x1a536c,_0x409dfa,e['DocsTableInsertPosition']['Left'],{'bodyPath':this[_0xb91b7(0x1f1)]()});return _0xb6f931?this['_mutateActions'](_0xf786cd,_0xb6f931['actions']):!0x1;}[_0x29001b(0x1b3)](_0x3fc3a5,_0x583018){const _0x4ba536=_0x29001b;let _0x5e80e9=this[_0x4ba536(0x20f)](),_0x5df99a=(0x0,e[_0x4ba536(0x166)])(_0x5e80e9,this[_0x4ba536(0x16b)],_0x3fc3a5,_0x583018,e[_0x4ba536(0x210)][_0x4ba536(0x1f2)],{'bodyPath':this['_getBodyPath']()});return _0x5df99a?this['_mutateActions'](_0x5e80e9,_0x5df99a['actions']):!0x1;}[_0x29001b(0x1f5)](){const _0x3f4907=_0x29001b;return this[_0x3f4907(0x1b3)](Math[_0x3f4907(0x1db)](0x0,this['getColumnCount']()-0x1),0x1);}[_0x29001b(0x199)](_0x460fbb){return this['deleteRows'](_0x460fbb,0x1);}[_0x29001b(0x1f3)](_0x526528,_0x268cd7=0x1){const _0x453836=_0x29001b;return!!this[_0x453836(0x207)][_0x453836(0x218)](e[_0x453836(0x180)]['id'],{'endRow':_0x526528+_0x268cd7-0x1,'segmentId':this['_segmentId'],'startRow':_0x526528,'tableId':this[_0x453836(0x16b)],'unitId':this[_0x453836(0x1c4)]});}[_0x29001b(0x223)](_0x5f523c){const _0x2bb73b=_0x29001b;return this[_0x2bb73b(0x16e)](_0x5f523c,0x1);}['deleteColumns'](_0x2f0a56,_0x44215f=0x1){const _0x5852c7=_0x29001b;return!!this['_commandService'][_0x5852c7(0x218)](e['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x2f0a56+_0x44215f-0x1,'segmentId':this[_0x5852c7(0x21c)],'startColumn':_0x2f0a56,'tableId':this[_0x5852c7(0x16b)],'unitId':this[_0x5852c7(0x1c4)]});}[_0x29001b(0x231)](){const _0x358acb=_0x29001b;return!!this[_0x358acb(0x207)]['syncExecuteCommand'](e[_0x358acb(0x18a)]['id'],{'segmentId':this[_0x358acb(0x21c)],'tableId':this[_0x358acb(0x16b)],'unitId':this[_0x358acb(0x1c4)]});}[_0x29001b(0x1ec)](_0xa56820,_0x55bfd3){const _0x422aff=_0x29001b;let _0x2f4e62=this[_0x422aff(0x20f)]();return this['_mutateActions'](_0x2f4e62,(0x0,e[_0x422aff(0x182)])(_0x2f4e62,this[_0x422aff(0x16b)],_0xa56820,_0x55bfd3));}[_0x29001b(0x186)](_0x5e3822){const _0x1d7943=_0x29001b;let _0x4b2067=this['_getDocumentData']();return this[_0x1d7943(0x1df)](_0x4b2067,(0x0,e[_0x1d7943(0x17a)])(_0x4b2067,this[_0x1d7943(0x16b)],_0x5e3822,this['_getBodyPath']()));}['moveRow'](_0x2e44aa,_0x3fdfdd,_0x56b2b9=e[_0x29001b(0x210)][_0x29001b(0x1a5)]){const _0x2a22f7=_0x29001b;return this[_0x2a22f7(0x1e4)](_0x2e44aa,0x1,_0x3fdfdd,_0x56b2b9);}['moveRows'](_0x3649dd,_0xd8348b,_0xccdb5a,_0x585ba3=e[_0x29001b(0x210)]['Above']){const _0x5f1d05=_0x29001b;let _0x281f8a=this[_0x5f1d05(0x20f)](),_0x459e0d=(0x0,e[_0x5f1d05(0x234)])(_0x281f8a,this[_0x5f1d05(0x16b)],_0x3649dd,_0xccdb5a,_0xd8348b,_0x585ba3,this[_0x5f1d05(0x1f1)]());return _0x459e0d?this[_0x5f1d05(0x1df)](_0x281f8a,_0x459e0d['actions']):!0x1;}[_0x29001b(0x18e)](_0x2b0824,_0x5d9da0,_0x5f589c=e[_0x29001b(0x210)][_0x29001b(0x192)]){const _0x34d6ac=_0x29001b;return this[_0x34d6ac(0x190)](_0x2b0824,0x1,_0x5d9da0,_0x5f589c);}[_0x29001b(0x190)](_0x453e0b,_0x2b97f4,_0x4ebd9a,_0x46efa2=e[_0x29001b(0x210)][_0x29001b(0x192)]){const _0x4fe95f=_0x29001b;let _0x44b88a=this[_0x4fe95f(0x20f)](),_0x28f15e=(0x0,e[_0x4fe95f(0x211)])(_0x44b88a,this[_0x4fe95f(0x16b)],_0x453e0b,_0x4ebd9a,_0x2b97f4,_0x46efa2,this['_getBodyPath']());return _0x28f15e?this[_0x4fe95f(0x1df)](_0x44b88a,_0x28f15e[_0x4fe95f(0x23a)]):!0x1;}[_0x29001b(0x1c3)](_0x480a3e){const _0x43b4a5=_0x29001b;try{let _0x54a89a=this[_0x43b4a5(0x20f)](),_0x9daa35=(0x0,e[_0x43b4a5(0x1aa)])({'documentData':_0x54a89a,'tableId':this[_0x43b4a5(0x16b)],..._0x480a3e});return _0x9daa35?this[_0x43b4a5(0x1df)](_0x54a89a,_0x9daa35[_0x43b4a5(0x23a)],_0x480a3e):!0x1;}catch{return!0x1;}}[_0x29001b(0x1cc)](_0xb6912){const _0x3b6963=_0x29001b;try{let _0xda6417=this[_0x3b6963(0x20f)](),_0xb15620=(0x0,e[_0x3b6963(0x22d)])({'documentData':_0xda6417,'tableId':this[_0x3b6963(0x16b)],..._0xb6912});return _0xb15620?this[_0x3b6963(0x1df)](_0xda6417,_0xb15620['actions'],_0xb6912):!0x1;}catch{return!0x1;}}['setCellText'](_0xe2f180,_0x155a1b,_0x2270c4){const _0x47d21a=_0x29001b;let _0x5d3fb5=this[_0x47d21a(0x20f)](),_0x2a59ad=(0x0,e[_0x47d21a(0x220)])(this[_0x47d21a(0x239)][_0x47d21a(0x216)]()[_0x47d21a(0x1cd)](),this['_segmentId']);return this[_0x47d21a(0x1df)](_0x5d3fb5,(0x0,e[_0x47d21a(0x1b8)])({'documentData':_0x5d3fb5,'tableId':this['_tableId'],'row':_0xe2f180,'column':_0x155a1b,'text':_0x2270c4},_0x2a59ad),this[_0x47d21a(0x19e)](_0xe2f180,_0x155a1b));}[_0x29001b(0x1d3)](_0x163432,_0x2ec61b){const _0x2d9338=_0x29001b;let _0x1f470b=this['_getDocumentData']();return this['_mutateActions'](_0x1f470b,(0x0,e[_0x2d9338(0x172)])(_0x1f470b,{'tableId':this['_tableId'],..._0x163432,'value':_0x2ec61b}),_0x163432);}[_0x29001b(0x171)](_0x6ef380,_0xb1cb68){const _0xa1c2b0=_0x29001b;let _0x3a1912=this[_0xa1c2b0(0x20f)]();return this[_0xa1c2b0(0x1df)](_0x3a1912,(0x0,e[_0xa1c2b0(0x1b5)])({'documentData':_0x3a1912,'tableId':this[_0xa1c2b0(0x16b)],..._0x6ef380,'margin':_0xb1cb68}),_0x6ef380);}[_0x29001b(0x201)](_0x31b5ab){const _0x13cca9=_0x29001b;let _0x2f911e=this[_0x13cca9(0x20f)]();return this[_0x13cca9(0x1df)](_0x2f911e,(0x0,e[_0x13cca9(0x1c6)])(_0x2f911e,this[_0x13cca9(0x16b)],_0x31b5ab));}['setBorder'](_0x3fc4dc,_0x11f334){const _0x24d8dc=_0x29001b;let _0x3a2037=this[_0x24d8dc(0x20f)]();return this[_0x24d8dc(0x1df)](_0x3a2037,this[_0x24d8dc(0x1e8)](_0x3a2037,_0x3fc4dc,_0x11f334),_0x3fc4dc);}['setTableBackground'](_0x2b1b10){const _0x1164a6=_0x29001b;return this[_0x1164a6(0x1d3)](this[_0x1164a6(0x1b6)](),_0x2b1b10);}['setTableBorder'](_0x2d5e23){const _0x78898c=_0x29001b;return this[_0x78898c(0x21f)](this['getTableRange'](),_0x2d5e23);}[_0x29001b(0x204)](_0x45f64f){const _0x4cc481=_0x29001b;let _0x65bc9c=this[_0x4cc481(0x20f)](),_0x52791f=this[_0x4cc481(0x1b6)](),_0x45c0f7=_0x45f64f[_0x4cc481(0x19a)]?(0x0,e[_0x4cc481(0x172)])(_0x65bc9c,{'tableId':this[_0x4cc481(0x16b)],..._0x52791f,'value':_0x45f64f[_0x4cc481(0x19a)]}):null,_0x3aad9a=_0x45f64f[_0x4cc481(0x1d6)]?this['_buildBorderActions'](_0x65bc9c,_0x52791f,_0x45f64f['border']):null;return this[_0x4cc481(0x1df)](_0x65bc9c,t[_0x4cc481(0x17e)][_0x4cc481(0x179)](_0x45c0f7,_0x3aad9a),_0x52791f);}[_0x29001b(0x1d9)](_0x14739e,_0x5a8f86,_0x24cf49=t[_0x29001b(0x1b7)][_0x29001b(0x181)]){const _0x403aa8=_0x29001b;var _0x9dd29;let _0x444ee3=this[_0x403aa8(0x20f)]();return(_0x9dd29=_0x444ee3[_0x403aa8(0x189)])!=null&&(_0x9dd29=_0x9dd29[this[_0x403aa8(0x16b)]])!=null&&_0x9dd29[_0x403aa8(0x23f)][_0x14739e]?this[_0x403aa8(0x1df)](_0x444ee3,(0x0,e[_0x403aa8(0x1e6)])(_0x444ee3,this[_0x403aa8(0x16b)],_0x14739e,_0x5a8f86,_0x24cf49)):!0x1;}[_0x29001b(0x1ad)](_0x26dd80){const _0x28a54b=_0x29001b;var _0x28e8bc;let _0x3729d6=(_0x28e8bc=this[_0x28a54b(0x1ac)]())==null||(_0x28e8bc=_0x28e8bc['tableRows'][_0x26dd80])==null?void 0x0:_0x28e8bc['trHeight'];return _0x3729d6?t[_0x28a54b(0x1a2)][_0x28a54b(0x226)](_0x3729d6):null;}[_0x29001b(0x18d)](_0x1de02a,_0x5af1a6){const _0x338ade=_0x29001b;var _0x1e31ae;let _0x4b9fbf=this[_0x338ade(0x20f)]();return(_0x1e31ae=_0x4b9fbf['tableSource'])!=null&&(_0x1e31ae=_0x1e31ae[this['_tableId']])!=null&&_0x1e31ae[_0x338ade(0x193)][_0x1de02a]?this[_0x338ade(0x1df)](_0x4b9fbf,(0x0,e['buildResizeTableColumnActionsFromWidth'])(_0x4b9fbf,this['_tableId'],_0x1de02a,_0x5af1a6)):!0x1;}[_0x29001b(0x195)](_0x12a7d4=0x0,_0x263df2=this[_0x29001b(0x22e)]()){const _0xfe8f18=_0x29001b;let _0x495c0c=this['_getDocumentData']();return this[_0xfe8f18(0x1df)](_0x495c0c,(0x0,e[_0xfe8f18(0x20e)])(_0x495c0c,this['_tableId'],_0x12a7d4,_0x12a7d4+_0x263df2-0x1));}[_0x29001b(0x1b2)](_0x4f8e30=0x0,_0x3e66c0=this[_0x29001b(0x19b)]()){const _0x14792f=_0x29001b;let _0x49aa34=this[_0x14792f(0x20f)]();return this[_0x14792f(0x1df)](_0x49aa34,(0x0,e[_0x14792f(0x1d0)])(_0x49aa34,this[_0x14792f(0x16b)],_0x4f8e30,_0x4f8e30+_0x3e66c0-0x1));}[_0x29001b(0x18b)](){var _0x5d0b3d;return((_0x5d0b3d=this['getMetadata']())==null?void 0x0:_0x5d0b3d['headerRowCount'])??0x0;}[_0x29001b(0x170)](_0x358396){const _0x336073=_0x29001b;let _0x39d9f5=this[_0x336073(0x20f)](),_0x4e98bc=(0x0,e[_0x336073(0x19d)])(_0x39d9f5,this[_0x336073(0x16b)],_0x358396);return _0x4e98bc?this['_mutateActions'](_0x39d9f5,_0x4e98bc[_0x336073(0x23a)]):!0x1;}['pinHeaderRows'](_0x2b0773){const _0x515073=_0x29001b;return this[_0x515073(0x170)](_0x2b0773);}['hasTitleRow'](){const _0x25b6b5=_0x29001b;var _0x12888e;return((_0x12888e=this[_0x25b6b5(0x1b4)]())==null?void 0x0:_0x12888e['titleRow'])??!0x1;}['insertTitleRow'](){const _0x53c753=_0x29001b;let _0x42053c=this[_0x53c753(0x20f)](),_0x39eae0=(0x0,e[_0x53c753(0x233)])(_0x42053c,this[_0x53c753(0x16b)],this[_0x53c753(0x1f1)]());return _0x39eae0?this[_0x53c753(0x1df)](_0x42053c,_0x39eae0['actions']):!0x1;}[_0x29001b(0x225)](_0x43a391,_0x478146){const _0x569015=_0x29001b;return!!this[_0x569015(0x207)][_0x569015(0x218)](e[_0x569015(0x236)]['id'],{'unitId':this[_0x569015(0x1c4)],'tableId':this[_0x569015(0x16b)],'segmentId':this[_0x569015(0x21c)],'column':_0x43a391,'config':_0x478146});}['sortByColumn'](_0x206aca,_0x1a56d5){const _0x714534=_0x29001b;let _0x4f560a=this['_getDocumentData']();return this[_0x714534(0x1df)](_0x4f560a,(0x0,e[_0x714534(0x169)])(_0x4f560a,this['_serializeModel'](),this[_0x714534(0x16b)],_0x206aca,_0x1a56d5,this[_0x714534(0x1f1)]()));}['_buildBorderActions'](_0x55ee1e,_0xcbc4f9,_0x4ff8c5){const _0x42a77f=_0x29001b;return(0x0,e[_0x42a77f(0x1f4)])({'documentData':_0x55ee1e,'tableId':this[_0x42a77f(0x16b)],..._0xcbc4f9,'preset':_0x4ff8c5[_0x42a77f(0x1fe)]??e[_0x42a77f(0x20a)][_0x42a77f(0x1a6)],'border':_0x4ff8c5['border']??{'color':{'rgb':_0x4ff8c5[_0x42a77f(0x1a8)]??this[_0x42a77f(0x1d4)][_0x42a77f(0x1e1)](t[_0x42a77f(0x1c2)])['getColorFromTheme']('gray.900')},'width':{'v':_0x4ff8c5[_0x42a77f(0x1e5)]??0x1},'dashStyle':t['DashStyleType'][_0x42a77f(0x19f)]}});}[_0x29001b(0x20f)](){const _0x75e6cf=_0x29001b;let _0xce042f=this['_document'][_0x75e6cf(0x216)]()[_0x75e6cf(0x1cd)]();return this[_0x75e6cf(0x21c)]?{...this[_0x75e6cf(0x239)][_0x75e6cf(0x216)](this['_segmentId'])['getSnapshot'](),'documentStyle':_0xce042f[_0x75e6cf(0x202)],'tableSource':_0xce042f[_0x75e6cf(0x189)]}:_0xce042f;}[_0x29001b(0x1a0)](){const _0x4f7d51=_0x29001b;return this['_injector']['get'](e[_0x4f7d51(0x209)])['serializeDocument'](this['_unitId'],this[_0x4f7d51(0x239)][_0x4f7d51(0x216)]()[_0x4f7d51(0x1cd)]());}[_0x29001b(0x1f1)](){const _0x6ff8af=_0x29001b;return(0x0,e[_0x6ff8af(0x220)])(this[_0x6ff8af(0x239)][_0x6ff8af(0x216)]()['getSnapshot'](),this[_0x6ff8af(0x21c)]);}[_0x29001b(0x1df)](_0x159ea6,_0x2246ae,_0x1de35b){const _0x559f28=_0x29001b;return(0x0,e[_0x559f28(0x165)])(this[_0x559f28(0x207)],this[_0x559f28(0x1c4)],_0x159ea6,_0x2246ae,_0x1de35b?{'tableId':this[_0x559f28(0x16b)],'segmentId':this[_0x559f28(0x21c)],..._0x1de35b}:void 0x0);}};f=d([u(0x3,t[_0x29001b(0x1dc)]),u(0x4,(0x0,t[_0x29001b(0x17c)])(t['Injector']))],f);var p=class extends r[_0x29001b(0x1ee)]{[_0x29001b(0x1d1)](_0x1ec05f=''){const _0x129044=_0x29001b;return this[_0x129044(0x20c)](_0x1ec05f)[_0x129044(0x228)](_0x5379bf=>this[_0x129044(0x196)](_0x5379bf[_0x129044(0x178)],_0x1ec05f));}[_0x29001b(0x1e3)](_0x34ebf6,_0x3a9d3b=''){const _0x206f02=_0x29001b;return this[_0x206f02(0x20c)](_0x3a9d3b)['some'](_0x193f7d=>_0x193f7d[_0x206f02(0x178)]===_0x34ebf6)?this[_0x206f02(0x196)](_0x34ebf6,_0x3a9d3b):null;}['getTableAt'](_0x4949d7,_0x427420=''){const _0x1a966f=_0x29001b;var _0x2233cc;let _0x3d7b4d=(_0x2233cc=this[_0x1a966f(0x20c)](_0x427420)[_0x4949d7])==null?void 0x0:_0x2233cc[_0x1a966f(0x178)];return _0x3d7b4d?this[_0x1a966f(0x196)](_0x3d7b4d,_0x427420):null;}[_0x29001b(0x1c7)](){const _0x390860=_0x29001b;let _0x434eea=this[_0x390860(0x1d4)][_0x390860(0x1e1)](e['DocsTableSelectionService'])[_0x390860(0x237)]();return _0x434eea!=null&&_0x434eea[_0x390860(0x178)]?this[_0x390860(0x196)](_0x434eea[_0x390860(0x178)],_0x434eea[_0x390860(0x1ef)]):null;}[_0x29001b(0x21a)](_0x3b0605,_0x7e1ec1=''){const _0x1e583b=_0x29001b;return this[_0x1e583b(0x184)](_0x3b0605,_0x7e1ec1)[0x0]??null;}[_0x29001b(0x184)](_0xd30b11,_0x584566=''){const _0x23e753=_0x29001b;let _0x56c468=this[_0x23e753(0x16c)](_0x584566),_0x15de8a=typeof _0xd30b11=='string'?{'text':_0xd30b11}:_0xd30b11;return this[_0x23e753(0x1d1)](_0x584566)['filter'](_0x475238=>{const _0x45fcaa=_0x23e753;let _0x2b321d=_0x475238[_0x45fcaa(0x1be)]();return!(_0x15de8a['tableId']&&_0x2b321d!==_0x15de8a[_0x45fcaa(0x178)]||_0x15de8a[_0x45fcaa(0x23d)]&&!this[_0x45fcaa(0x177)](_0x56c468,_0x2b321d,_0x15de8a[_0x45fcaa(0x23d)])||_0x15de8a[_0x45fcaa(0x1a3)]&&!this[_0x45fcaa(0x164)](_0x475238,0x0,_0x15de8a[_0x45fcaa(0x1a3)])||_0x15de8a['titleText']&&!this[_0x45fcaa(0x164)](_0x475238,0x0,_0x15de8a[_0x45fcaa(0x1da)]));});}[_0x29001b(0x1ed)](_0x3d22ea,_0x2b7b02,_0x462992={}){const _0x4510c1=_0x29001b;let _0x3dd185=this[_0x4510c1(0x1d4)][_0x4510c1(0x1e1)](t[_0x4510c1(0x1dc)]),_0x16c6b8=_0x462992[_0x4510c1(0x178)]??(0x0,t['generateRandomId'])(0x6);return _0x3dd185['syncExecuteCommand'](e[_0x4510c1(0x217)]['id'],{..._0x462992,'unitId':this[_0x4510c1(0x1be)](),'rows':_0x3d22ea,'columns':_0x2b7b02,'tableId':_0x16c6b8})?this['_createFDocumentTable'](_0x16c6b8,_0x462992[_0x4510c1(0x1ef)]??''):null;}[_0x29001b(0x1cf)](_0x2daeb1,_0x1ed744={}){const _0x38bdcd=_0x29001b;let _0x30dc5c=this[_0x38bdcd(0x1d4)]['get'](t['ICommandService']),_0x54d167=_0x1ed744[_0x38bdcd(0x178)]??(0x0,t['generateRandomId'])(0x6);return _0x30dc5c['syncExecuteCommand'](e[_0x38bdcd(0x217)]['id'],{..._0x1ed744,'unitId':this[_0x38bdcd(0x1be)](),'values':_0x2daeb1,'tableId':_0x54d167})?this[_0x38bdcd(0x196)](_0x54d167,_0x1ed744['segmentId']??''):null;}['_getTables'](_0x126f90=''){let {tables:_0x5e2a0b=[]}=this['getBody'](_0x126f90);return _0x5e2a0b;}[_0x29001b(0x16c)](_0x3894ab=''){const _0x247956=_0x29001b;let _0xf00b47=this[_0x247956(0x216)]()[_0x247956(0x1cd)]();return _0x3894ab?{...this['getDocumentDataModel'](_0x3894ab)['getSnapshot'](),'documentStyle':_0xf00b47['documentStyle'],'tableSource':_0xf00b47[_0x247956(0x189)]}:_0xf00b47;}[_0x29001b(0x196)](_0x864cc6,_0x4b935b=''){const _0x1e6705=_0x29001b;return this[_0x1e6705(0x1d4)]['createInstance'](f,this,_0x864cc6,_0x4b935b);}[_0x29001b(0x177)](_0x392e00,_0x1359ff,_0x45b791){const _0x287c4f=_0x29001b;var _0x5ca83a;let _0x4da0e8=(0x0,e['getTableRangeById'])(_0x392e00,_0x1359ff);if(!_0x4da0e8)return!0x1;let _0x2cb583=(_0x5ca83a=_0x392e00[_0x287c4f(0x17f)])==null?void 0x0:_0x5ca83a[_0x287c4f(0x1fc)];return _0x2cb583?_0x2cb583[_0x287c4f(0x176)](_0x4da0e8[_0x287c4f(0x238)],_0x4da0e8[_0x287c4f(0x1ea)])['includes'](_0x45b791):!0x1;}[_0x29001b(0x164)](_0x17ca22,_0x567d3b,_0x27bc22){const _0x416266=_0x29001b;return Array[_0x416266(0x167)]({'length':_0x17ca22[_0x416266(0x19b)]()},(_0x35044d,_0x166511)=>_0x17ca22[_0x416266(0x1f0)](_0x567d3b,_0x166511))[_0x416266(0x212)](_0x312da5=>_0x312da5[_0x416266(0x1e0)](_0x27bc22));}};r[_0x29001b(0x1ee)][_0x29001b(0x1fd)](p),Object['defineProperty'](exports,_0x29001b(0x1d7),{'enumerable':!0x0,'get':function(){return f;}}),exports[_0x29001b(0x21d)]=a;