@univerjs-pro/sheets-outline 1.0.0-alpha.1 → 1.0.0-alpha.3
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 +7 -1
- 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/index.d.ts +6 -13
- package/lib/types/plugin.d.ts +3 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x1e45df=_0x5236;function _0x5236(_0x248fdf,_0x1c2620){_0x248fdf=_0x248fdf-0x8f;var _0x4e0d10=_0x4e0d();var _0x52363a=_0x4e0d10[_0x248fdf];return _0x52363a;}(function(_0x547ec9,_0x49a676){var _0x5b2c43=_0x5236,_0x2c0dcc=_0x547ec9();while(!![]){try{var _0x3fea1b=-parseInt(_0x5b2c43(0x92))/0x1*(-parseInt(_0x5b2c43(0x95))/0x2)+parseInt(_0x5b2c43(0x9e))/0x3*(-parseInt(_0x5b2c43(0x9a))/0x4)+parseInt(_0x5b2c43(0xab))/0x5*(-parseInt(_0x5b2c43(0xa1))/0x6)+parseInt(_0x5b2c43(0xa2))/0x7+-parseInt(_0x5b2c43(0xa8))/0x8+parseInt(_0x5b2c43(0x9b))/0x9+-parseInt(_0x5b2c43(0xa0))/0xa;if(_0x3fea1b===_0x49a676)break;else _0x2c0dcc['push'](_0x2c0dcc['shift']());}catch(_0xa2904d){_0x2c0dcc['push'](_0x2c0dcc['shift']());}}}(_0x4e0d,0x9bcac));import{AddDimensionOutlineCommand as _0x54e2d2,ClearDimensionOutlinesCommand as _0x18c268,DimensionOutlineAxis as _0xdce1d,DimensionOutlineErrorReason as _0x582d49,RemoveDimensionOutlineCommand as _0x52ca3e,SetDimensionOutlineCollapsedCommand as _0x402db4,SheetsOutlineModel as _0x1c3d33}from'@univerjs-pro/sheets-outline';import{FEnum as _0x405a0d}from'@univerjs/core/facade';import{FWorksheet as _0x1e3e41}from'@univerjs/sheets/facade';function _0x4e0d(){var _0x54eae5=['8eZQios','getDimensionOutlines','syncExecuteCommand','DimensionOutlineErrorReason','_addDimensionOutline','1021116KokOGT','8801316qyKHKG','setDimensionOutlineCollapsed','getOutlines','3cxJlpL','_injector','9022260cLxlMX','5759448PwCyBd','7484155QFQjZJ','addRowOutline','clearDimensionOutlines','removeDimensionOutline','getSheetId','filter','211136bPXHYG','ROW','extend','5AlPhhn','addColumnOutline','_commandService','COLUMN','get','getUnitId','183710sBTNma','_workbook','_worksheet'];_0x4e0d=function(){return _0x54eae5;};return _0x4e0d();}var l=class extends _0x405a0d{get['DimensionOutlineAxis'](){return _0xdce1d;}get[_0x1e45df(0x98)](){return _0x582d49;}};_0x405a0d[_0x1e45df(0xaa)](l);var u=class extends _0x1e3e41{[_0x1e45df(0xa3)](_0x366ed7,_0x3ee75b){var _0xcc7e49=_0x1e45df;return this[_0xcc7e49(0x99)](_0xdce1d[_0xcc7e49(0xa9)],_0x366ed7,_0x3ee75b);}[_0x1e45df(0xac)](_0x60c2c7,_0x8c2a8){var _0x18e813=_0x1e45df;return this[_0x18e813(0x99)](_0xdce1d[_0x18e813(0x8f)],_0x60c2c7,_0x8c2a8);}[_0x1e45df(0xa5)](_0x3a803a){var _0x4f85e6=_0x1e45df;return this[_0x4f85e6(0xad)][_0x4f85e6(0x97)](_0x52ca3e['id'],{'unitId':this[_0x4f85e6(0x93)][_0x4f85e6(0x91)](),'subUnitId':this[_0x4f85e6(0x94)][_0x4f85e6(0xa6)](),'outlineId':_0x3a803a}),this;}[_0x1e45df(0x9c)](_0x3f14b7,_0x2229f0){var _0x30c28c=_0x1e45df;return this['_commandService']['syncExecuteCommand'](_0x402db4['id'],{'unitId':this['_workbook'][_0x30c28c(0x91)](),'subUnitId':this[_0x30c28c(0x94)][_0x30c28c(0xa6)](),'outlineId':_0x3f14b7,'collapsed':_0x2229f0}),this;}[_0x1e45df(0xa4)](_0x5459b7,_0x2a98e5,_0x5171a0){var _0x2165e6=_0x1e45df;return this[_0x2165e6(0xad)][_0x2165e6(0x97)](_0x18c268['id'],{'unitId':this[_0x2165e6(0x93)][_0x2165e6(0x91)](),'subUnitId':this[_0x2165e6(0x94)][_0x2165e6(0xa6)](),'axis':_0x5459b7,'start':_0x2a98e5,'end':_0x5171a0}),this;}[_0x1e45df(0x96)](_0x5e2f3a){var _0x2db0be=_0x1e45df;let _0x3fa6a7=this[_0x2db0be(0x9f)][_0x2db0be(0x90)](_0x1c3d33)[_0x2db0be(0x9d)](this[_0x2db0be(0x93)][_0x2db0be(0x91)](),this[_0x2db0be(0x94)][_0x2db0be(0xa6)]());return _0x5e2f3a?_0x3fa6a7[_0x2db0be(0xa7)](_0x46e836=>_0x46e836['axis']===_0x5e2f3a):_0x3fa6a7;}['_addDimensionOutline'](_0x4084e3,_0x3f0024,_0x3d9def){var _0x312d4=_0x1e45df;return this[_0x312d4(0xad)][_0x312d4(0x97)](_0x54e2d2['id'],{'unitId':this[_0x312d4(0x93)][_0x312d4(0x91)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x4084e3,'start':_0x3f0024,'end':_0x3f0024+_0x3d9def-0x1}),this;}};_0x1e3e41['extend'](u);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x41a2(){const _0x110380=['message','_outlines','pushUndoRedo','asObservable','error$','_resourceManagerService','4770144Izidps','sourceStart','getUnitOutlines','valid','sheet.command.add-dimension-outline','2GYEnti','sheet.command.remove-dimension-outline','serialize','OUT_OF_BOUNDS','_injector','row','mergedOutline','length','start','call','sheet.mutation.add-dimension-outline','_config','complete','getSheetBySheetId','interceptCommand','_initCommandInterceptor','invalid-dimension-outline','end','clear','offset','string','preUndos','outline','COMMAND','_initResource','insert','packageName','getOwnPropertyDescriptor','_change$','getCurrentUnitOfType','type','getUnitId','_sheetsOutlineModel','136115Sjbsro','Crossing','maxDepth','_commandService','iterator','version','registerPluginResource','defineProperty','symbol','move','unknown','range','destinationIndex','sourceEnd','localeCompare','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','function','MAX_DEPTH','disposeWithMe','has','SHEET_OUTLINE_PLUGIN','sheet.mutation.transform-dimension-outlines','delete','min','endColumn','getUniverSheetInstance','124tZffdu','name','includes','toRange','count','next','_univerInstanceService','collapsed','INVALID_RANGE','find','Invalid\x20outline\x20range','subUnitId','undos','clear-range-not-contain-outline','_sheetsOutlineErrorService','maxIndex','params','object','reason','getColumnCount','1.0.0-alpha.1','7381059iUNrAb','dimension-outline-','axis','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','forEach','from','set','join','getOutlines','sheet.mutation.set-dimension-outline-collapsed','split','MOVE_SPLITS_OUTLINE','endRow','get','ROW','Invalid\x20dimension\x20outline\x20move\x20source\x20range','permissionPointUpdate$','change$','invalid-range','_sheetInterceptorService','dispose','default','removeUnit','sheet.command.set-dimension-outline-collapsed','crossing','permissionCheckWithoutRange','add','outlineId','max-depth','values','stringify','index','Invalid\x20dimension\x20outline\x20mutation','onStarting','UNIVER_SHEET','registerCommand','parse','72222cNvFYr','_getCommandScope','restoreOutlines','setOutlines','unitId','decorate','_error$','sort','toPrimitive','deserialize','depth','_initRegisterCommand','redos','2173224CxIJxA','some','getActiveSheet','MUTATION','_ensureUnitOutlines','result','map','move-splits-outline','startColumn','pipe','entries','fromRange','constructor','max','UNKNOWN','getSheetId','Move\x20would\x20split\x20dimension\x20outline:\x20','getMaxColumns','3281121IEqTZc','startRow','prototype','emit','column','getRowCount','push','filter','sheets-outline.config','144819AyZrrA'];_0x41a2=function(){return _0x110380;};return _0x41a2();}const _0x470647=_0x2960;(function(_0x13f8ac,_0x4d9a24){const _0x29721d=_0x2960,_0x58249d=_0x13f8ac();while(!![]){try{const _0x3c4287=parseInt(_0x29721d(0x93))/0x1*(parseInt(_0x29721d(0x9f))/0x2)+-parseInt(_0x29721d(0x114))/0x3*(-parseInt(_0x29721d(0xda))/0x4)+parseInt(_0x29721d(0xc0))/0x5+parseInt(_0x29721d(0x9a))/0x6+-parseInt(_0x29721d(0xef))/0x7+parseInt(_0x29721d(0x121))/0x8+-parseInt(_0x29721d(0x8a))/0x9;if(_0x3c4287===_0x4d9a24)break;else _0x58249d['push'](_0x58249d['shift']());}catch(_0x39cf72){_0x58249d['push'](_0x58249d['shift']());}}}(_0x41a2,0x8a2f7));import{CommandType as _0x3d3122,CustomCommandExecutionError as _0x2f895c,DependentOn as _0x49c6f9,Disposable as _0x50f73a,ICommandService as _0x3a2206,IPermissionService as _0x269e8d,IResourceManagerService as _0x3dcf5e,IUndoRedoService as _0x5dd5fa,IUniverInstanceService as _0x39f6dc,Inject as _0x1378e5,Injector as _0x2d072b,Plugin as _0xabb3e0,UniverInstanceType as _0x1fac57,generateRandomId as _0x526a6f,sequenceExecute as _0x3c1ea5}from'@univerjs/core';import{InsertColCommand as _0x24d8c4,InsertRowCommand as _0x568b88,MoveColsCommand as _0x54b479,MoveRowsCommand as _0xf13d0f,RemoveColCommand as _0x59cc03,RemoveRowCommand as _0x2f7813,SetColHiddenMutation as _0x36bde2,SetColVisibleMutation as _0x309749,SetRowHiddenMutation as _0x5271ce,SetRowVisibleMutation as _0x33c0ec,SheetInterceptorService as _0x2f2fa3,SheetPermissionCheckController as _0x18cb26,WorkbookViewPermission as _0xe38788,WorksheetViewPermission as _0x3cc6c7,getSheetCommandTarget as _0x7bcf04}from'@univerjs/sheets';import{Subject as _0xa40a72,of as _0x21afba}from'rxjs';import{debounceTime as _0x1e4436,map as _0x2c3473,startWith as _0x534ba3}from'rxjs/operators';import{UniverLicensePlugin as _0x5b20c6}from'@univerjs-pro/license';let fe=function(_0x567397){const _0x3ecb8c=_0x2960;return _0x567397[_0x3ecb8c(0xfd)]=_0x3ecb8c(0xa4),_0x567397['COLUMN']=_0x3ecb8c(0x8e),_0x567397;}({}),pe=function(_0xdeec91){const _0x21f2e4=_0x2960;return _0xdeec91[_0x21f2e4(0xe2)]=_0x21f2e4(0x101),_0xdeec91[_0x21f2e4(0xa2)]='out-of-bounds',_0xdeec91['CROSSING']=_0x21f2e4(0x107),_0xdeec91[_0x21f2e4(0xd1)]=_0x21f2e4(0x10b),_0xdeec91[_0x21f2e4(0xfa)]=_0x21f2e4(0x128),_0xdeec91['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x21f2e4(0xe7),_0xdeec91[_0x21f2e4(0x86)]=_0x21f2e4(0xca),_0xdeec91;}({});var w=class extends Error{constructor(_0x238164,_0x3d3fe7,_0x55525a){const _0x279c0d=_0x2960;super(_0x3d3fe7),this[_0x279c0d(0xec)]=_0x238164,this['outlineId']=_0x55525a,this[_0x279c0d(0xdb)]='DimensionOutlineError';}};function T(_0x443df0){const _0x8332e1=_0x2960;return _0x443df0 instanceof w?_0x443df0[_0x8332e1(0xec)]:_0x443df0 instanceof Error?_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)]('split\x20dimension\x20outline')?_0x8332e1(0x128):_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0x11e))?_0x8332e1(0x10b):_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0xc1))?'crossing':_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0xcb))?_0x8332e1(0x101):_0x8332e1(0xca):'unknown';}function me(_0x2b2a38){const _0x48024b=_0x2960;return _0x2b2a38 instanceof w?_0x2b2a38[_0x48024b(0x10a)]:void 0x0;}const E=0x2**0x35-0x1;function D(_0x5a2036,_0x3aa867){const _0x3dddd9=_0x2960;return _0x5a2036['unitId']===_0x3aa867['unitId']&&_0x5a2036[_0x3dddd9(0xe5)]===_0x3aa867[_0x3dddd9(0xe5)]&&_0x5a2036[_0x3dddd9(0xf1)]===_0x3aa867[_0x3dddd9(0xf1)];}function O(_0x3f08d1,_0x1a47d0={}){const _0x27ee3c=_0x2960;var _0x53aaab;let _0x1b33f4=(_0x53aaab=_0x1a47d0[_0x27ee3c(0xc2)])==null?0x8:_0x53aaab,_0x16dfe5=new Map();for(let _0x4334da of _0x3f08d1){let _0x3cd7ab=_0x4334da[_0x27ee3c(0x118)]+':'+_0x4334da[_0x27ee3c(0xe5)]+':'+_0x4334da[_0x27ee3c(0xf1)],_0x4933bb=_0x16dfe5[_0x27ee3c(0xfc)](_0x3cd7ab);_0x4933bb?_0x4933bb['push'](_0x4334da):_0x16dfe5[_0x27ee3c(0xf5)](_0x3cd7ab,[_0x4334da]);}let _0x10e532=[];for(let _0x458ff2 of _0x16dfe5[_0x27ee3c(0x10c)]()){let _0x109a8d=[..._0x458ff2][_0x27ee3c(0x11b)](Ee),_0x1d1acf=[];for(let _0x4f47d6 of _0x109a8d){for(De(_0x4f47d6);_0x1d1acf[_0x27ee3c(0xa6)]>0x0&&_0x4f47d6[_0x27ee3c(0xa7)]>_0x1d1acf[_0x1d1acf[_0x27ee3c(0xa6)]-0x1]['end'];)_0x1d1acf['pop']();let _0x35bfb1=_0x1d1acf[_0x1d1acf[_0x27ee3c(0xa6)]-0x1];if(_0x35bfb1&&_0x4f47d6[_0x27ee3c(0xb0)]>_0x35bfb1['end'])throw new w('crossing',_0x27ee3c(0xf2),_0x4f47d6['id']);let _0x31431f=_0x35bfb1?_0x35bfb1[_0x27ee3c(0x11e)]+0x1:0x1;if(_0x31431f>_0x1b33f4)throw new w(_0x27ee3c(0x10b),_0x27ee3c(0xcf)+_0x1b33f4,_0x4f47d6['id']);let _0x156c8b={..._0x4f47d6,'depth':_0x31431f,'parentId':_0x35bfb1==null?void 0x0:_0x35bfb1['id'],'anchor':_0x4f47d6[_0x27ee3c(0xb0)],'children':[]};_0x35bfb1?_0x35bfb1['children'][_0x27ee3c(0x90)](_0x156c8b):_0x10e532['push'](_0x156c8b),_0x1d1acf[_0x27ee3c(0x90)](_0x156c8b);}}return _0x10e532;}function k(_0x1efa05,_0x2076e6,_0x6fcb27={}){const _0x492aa3=_0x2960;if(_0x2076e6[_0x492aa3(0xa7)]<0x0||_0x2076e6[_0x492aa3(0xa7)]>_0x2076e6[_0x492aa3(0xb0)])return{'valid':!0x1,'reason':_0x492aa3(0x101)};if(_0x6fcb27[_0x492aa3(0xe9)]!=null&&_0x2076e6[_0x492aa3(0xb0)]>=_0x6fcb27[_0x492aa3(0xe9)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0xe2c5b1=_0x1efa05[_0x492aa3(0x91)](_0x4cc892=>D(_0x4cc892,_0x2076e6));for(let _0x34f8ab of _0xe2c5b1)if(Oe(_0x34f8ab,_0x2076e6))return{'valid':!0x1,'reason':_0x492aa3(0x107)};try{O([..._0x1efa05,_0x2076e6],_0x6fcb27);}catch(_0x247f29){let _0x4b9d87=T(_0x247f29);return _0x4b9d87===_0x492aa3(0x10b)?{'valid':!0x1,'reason':_0x492aa3(0x10b)}:_0x4b9d87==='invalid-range'?{'valid':!0x1,'reason':_0x492aa3(0x101)}:{'valid':!0x1,'reason':_0x492aa3(0x107)};}return{'valid':!0x0};}function he(_0x7f306e,_0x38df9c,_0x204a39={}){const _0x52e5d8=_0x2960;let _0x414f8b=k(_0x7f306e,_0x38df9c,_0x204a39);if(!_0x414f8b[_0x52e5d8(0x9d)]){var _0x5b4fe6;throw Error((_0x5b4fe6=_0x414f8b[_0x52e5d8(0xec)])==null?_0x52e5d8(0xaf):_0x5b4fe6);}return[..._0x7f306e,_0x38df9c];}function ge(_0xf9eac4,_0x3ccccf){const _0x439fce=_0x2960;let _0xcc335=_0x3ccccf[_0x439fce(0xa7)],_0x1c0f78=_0x3ccccf[_0x439fce(0xb0)],_0x1d25e1=[],_0x5ce2b1=!0x0;for(;_0x5ce2b1;){_0x5ce2b1=!0x1;for(let _0x1fcbd9 of _0xf9eac4)_0x1d25e1['includes'](_0x1fcbd9)||!D(_0x1fcbd9,_0x3ccccf)||!we(_0x1fcbd9[_0x439fce(0xa7)],_0x1fcbd9[_0x439fce(0xb0)],_0xcc335,_0x1c0f78)||(_0x1d25e1[_0x439fce(0x90)](_0x1fcbd9),_0xcc335=Math[_0x439fce(0xd7)](_0xcc335,_0x1fcbd9[_0x439fce(0xa7)]),_0x1c0f78=Math['max'](_0x1c0f78,_0x1fcbd9[_0x439fce(0xb0)]),_0x5ce2b1=!0x0);}if(_0x1d25e1['length']===0x0)return null;let [_0x15f746]=[..._0x1d25e1][_0x439fce(0x11b)](Ee);return{'mergedOutline':{..._0x15f746,'start':_0xcc335,'end':_0x1c0f78},'mergedOutlines':_0x1d25e1};}function _e(_0xd09061,_0x689127){const _0x34fd18=_0x2960;return _0xd09061[_0x34fd18(0x91)](_0x59c2b6=>D(_0x59c2b6,_0x689127)?!(_0x59c2b6[_0x34fd18(0xa7)]>=_0x689127[_0x34fd18(0xa7)]&&_0x59c2b6[_0x34fd18(0xb0)]<=_0x689127[_0x34fd18(0xb0)]):!0x0);}function ve(_0x1fa69c,_0x2dfb30,_0x20d66b,_0x3df750){const _0x1aae1e=_0x2960;return ye(_0x1fa69c['filter'](_0x2d71fa=>_0x2d71fa[_0x1aae1e(0x118)]===_0x2dfb30&&_0x2d71fa['subUnitId']===_0x20d66b&&_0x2d71fa[_0x1aae1e(0xf1)]===_0x3df750&&_0x2d71fa[_0x1aae1e(0xe1)])[_0x1aae1e(0x127)](_0xae6c74=>({'start':_0xae6c74[_0x1aae1e(0xa7)],'end':_0xae6c74['end']})));}function ye(_0x5f578e){const _0x5f2446=_0x2960;if(_0x5f578e[_0x5f2446(0xa6)]===0x0)return[];let _0x40bfcf=[..._0x5f578e][_0x5f2446(0x11b)]((_0x3824c4,_0x3a6a52)=>_0x3824c4[_0x5f2446(0xa7)]-_0x3a6a52[_0x5f2446(0xa7)]||_0x3824c4[_0x5f2446(0xb0)]-_0x3a6a52[_0x5f2446(0xb0)]),_0x3216ef=[];for(let _0x2da96b of _0x40bfcf){let _0x1f8123=_0x3216ef[_0x3216ef['length']-0x1];!_0x1f8123||_0x2da96b[_0x5f2446(0xa7)]>_0x1f8123['end']+0x1?_0x3216ef[_0x5f2446(0x90)]({..._0x2da96b}):_0x1f8123[_0x5f2446(0xb0)]=Math[_0x5f2446(0x85)](_0x1f8123['end'],_0x2da96b[_0x5f2446(0xb0)]);}return _0x3216ef;}function A(_0x3643bd,_0x2c016b){const _0x1cd44f=_0x2960;return _0x2c016b[_0x1cd44f(0xde)]<=0x0?_0x3643bd:N(_0x3643bd[_0x1cd44f(0x127)](_0x22f566=>D(_0x22f566,_0x2c016b)?_0x2c016b[_0x1cd44f(0x10e)]<=_0x22f566[_0x1cd44f(0xa7)]?{..._0x22f566,'start':_0x22f566[_0x1cd44f(0xa7)]+_0x2c016b[_0x1cd44f(0xde)],'end':_0x22f566['end']+_0x2c016b[_0x1cd44f(0xde)]}:_0x22f566[_0x1cd44f(0xa7)]<_0x2c016b[_0x1cd44f(0x10e)]&&_0x2c016b[_0x1cd44f(0x10e)]<=_0x22f566['end']?{..._0x22f566,'end':_0x22f566[_0x1cd44f(0xb0)]+_0x2c016b['count']}:_0x22f566:_0x22f566));}function j(_0x58854c,_0x497607){const _0xa986de=_0x2960;if(_0x497607[_0xa986de(0xa7)]>_0x497607[_0xa986de(0xb0)])return _0x58854c;let _0x1833a1=_0x497607[_0xa986de(0xb0)]-_0x497607['start']+0x1,_0x30973c=[];for(let _0xc5b970 of _0x58854c){if(!D(_0xc5b970,_0x497607)){_0x30973c[_0xa986de(0x90)](_0xc5b970);continue;}if(_0xc5b970[_0xa986de(0xb0)]<_0x497607[_0xa986de(0xa7)]){_0x30973c['push'](_0xc5b970);continue;}if(_0xc5b970[_0xa986de(0xa7)]>_0x497607[_0xa986de(0xb0)]){_0x30973c[_0xa986de(0x90)]({..._0xc5b970,'start':_0xc5b970[_0xa986de(0xa7)]-_0x1833a1,'end':_0xc5b970[_0xa986de(0xb0)]-_0x1833a1});continue;}let _0x52edc2=Math[_0xa986de(0x85)](_0xc5b970['start'],_0x497607['start']),_0x4256c6=Math['min'](_0xc5b970[_0xa986de(0xb0)],_0x497607[_0xa986de(0xb0)]),_0x1b486b=Math['max'](0x0,_0x4256c6-_0x52edc2+0x1),_0x5cb79a=_0xc5b970[_0xa986de(0xb0)]-_0xc5b970[_0xa986de(0xa7)]+0x1-_0x1b486b;if(_0x5cb79a<=0x0)continue;let _0x240a9c=_0xc5b970['start']<_0x497607[_0xa986de(0xa7)]?_0xc5b970['start']:_0x497607[_0xa986de(0xa7)];_0x30973c[_0xa986de(0x90)]({..._0xc5b970,'start':_0x240a9c,'end':_0x240a9c+_0x5cb79a-0x1});}return N(_0x30973c);}function M(_0x5405a1,_0x466e09){const _0x126ff2=_0x2960;if(_0x466e09[_0x126ff2(0x9b)]>_0x466e09[_0x126ff2(0xcd)])return _0x5405a1;let _0x460e6f=[];for(let _0x5941d0 of _0x5405a1){if(!D(_0x5941d0,_0x466e09)){_0x460e6f[_0x126ff2(0x90)](_0x5941d0);continue;}let _0x3a321a=be(_0x5941d0,_0x466e09);if(_0x3a321a[_0x126ff2(0xbd)]===_0x126ff2(0xf9))throw new w('move-splits-outline',_0x126ff2(0x88)+_0x5941d0['id'],_0x5941d0['id']);_0x460e6f[_0x126ff2(0x90)](_0x3a321a[_0x126ff2(0xb5)]);}return N(_0x460e6f);}function be(_0x4fcf85,_0x54a84c){const _0x4ed83d=_0x2960;let _0x424782=xe(_0x54a84c[_0x4ed83d(0x9b)],_0x54a84c[_0x4ed83d(0xcd)]+0x1,_0x54a84c[_0x4ed83d(0xcc)]),_0x103bba=[],_0x31b741={'start':_0x4fcf85[_0x4ed83d(0xa7)],'end':_0x4fcf85[_0x4ed83d(0xb0)]+0x1};for(let _0x4eb72b of _0x424782){let _0x582b6a=Se(_0x31b741,_0x4eb72b[_0x4ed83d(0xcb)]);_0x582b6a&&_0x103bba['push']({'start':_0x582b6a['start']+_0x4eb72b[_0x4ed83d(0xb2)],'end':_0x582b6a[_0x4ed83d(0xb0)]+_0x4eb72b[_0x4ed83d(0xb2)]});}let _0x132c92=Ce(_0x103bba);return _0x132c92[_0x4ed83d(0xa6)]===0x1?{'type':'ok','outline':{..._0x4fcf85,'start':_0x132c92[0x0][_0x4ed83d(0xa7)],'end':_0x132c92[0x0][_0x4ed83d(0xb0)]-0x1}}:{'type':_0x4ed83d(0xf9),'outline':_0x4fcf85,'ranges':_0x132c92};}function xe(_0x334092,_0x3ede23,_0x49f75a){const _0x4791a9=_0x2960;let _0x38ab2e=_0x3ede23-_0x334092;if(_0x38ab2e<=0x0)throw Error(_0x4791a9(0xfe));return _0x49f75a>=_0x334092&&_0x49f75a<=_0x3ede23?[{'range':{'start':0x0,'end':E},'offset':0x0}]:_0x49f75a<_0x334092?[{'range':{'start':0x0,'end':_0x49f75a},'offset':0x0},{'range':{'start':_0x49f75a,'end':_0x334092},'offset':_0x38ab2e},{'range':{'start':_0x334092,'end':_0x3ede23},'offset':_0x49f75a-_0x334092},{'range':{'start':_0x3ede23,'end':E},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x334092},'offset':0x0},{'range':{'start':_0x334092,'end':_0x3ede23},'offset':_0x49f75a-_0x3ede23},{'range':{'start':_0x3ede23,'end':_0x49f75a},'offset':-_0x38ab2e},{'range':{'start':_0x49f75a,'end':E},'offset':0x0}];}function Se(_0x21f42b,_0x1b6c8a){const _0x3dbd92=_0x2960;let _0x4ef79a=Math[_0x3dbd92(0x85)](_0x21f42b['start'],_0x1b6c8a[_0x3dbd92(0xa7)]),_0x6e7caa=Math[_0x3dbd92(0xd7)](_0x21f42b[_0x3dbd92(0xb0)],_0x1b6c8a['end']);return _0x4ef79a>=_0x6e7caa?null:{'start':_0x4ef79a,'end':_0x6e7caa};}function Ce(_0x999a38){const _0x3477d0=_0x2960;if(_0x999a38[_0x3477d0(0xa6)]===0x0)return[];let _0x35b701=[..._0x999a38][_0x3477d0(0x11b)]((_0x495bc5,_0x51d2f0)=>_0x495bc5['start']-_0x51d2f0[_0x3477d0(0xa7)]||_0x495bc5[_0x3477d0(0xb0)]-_0x51d2f0['end']),_0x129ed0=[];for(let _0x4ab196 of _0x35b701){let _0x50ec2b=_0x129ed0[_0x129ed0[_0x3477d0(0xa6)]-0x1];!_0x50ec2b||_0x4ab196['start']>_0x50ec2b['end']?_0x129ed0[_0x3477d0(0x90)]({..._0x4ab196}):_0x50ec2b[_0x3477d0(0xb0)]=Math[_0x3477d0(0x85)](_0x50ec2b[_0x3477d0(0xb0)],_0x4ab196[_0x3477d0(0xb0)]);}return _0x129ed0;}function we(_0x57fef7,_0x3a93eb,_0x140658,_0x407be3){return _0x3a93eb+0x1===_0x140658||_0x407be3+0x1===_0x57fef7;}function N(_0x5f5a28){let _0x27f327=Te(_0x5f5a28);return O(_0x27f327),_0x27f327;}function Te(_0x28b8a2){const _0x32a0ec=_0x2960;let _0x4bf133=new Map();for(let _0x5e32e8 of _0x28b8a2){let _0x8e9243=[_0x5e32e8[_0x32a0ec(0x118)],_0x5e32e8[_0x32a0ec(0xe5)],_0x5e32e8['axis'],_0x5e32e8[_0x32a0ec(0xa7)],_0x5e32e8[_0x32a0ec(0xb0)]][_0x32a0ec(0xf6)](':'),_0x2ea68e=_0x4bf133[_0x32a0ec(0xfc)](_0x8e9243);if(!_0x2ea68e){_0x4bf133[_0x32a0ec(0xf5)](_0x8e9243,_0x5e32e8);continue;}_0x4bf133[_0x32a0ec(0xf5)](_0x8e9243,{..._0x2ea68e,'collapsed':_0x2ea68e[_0x32a0ec(0xe1)]||_0x5e32e8[_0x32a0ec(0xe1)]});}return Array[_0x32a0ec(0xf4)](_0x4bf133[_0x32a0ec(0x10c)]());}function Ee(_0x37562e,_0x34db34){const _0x3c73e4=_0x2960;return _0x37562e['unitId']===_0x34db34[_0x3c73e4(0x118)]?_0x37562e['subUnitId']===_0x34db34['subUnitId']?_0x37562e[_0x3c73e4(0xf1)]===_0x34db34[_0x3c73e4(0xf1)]?_0x37562e[_0x3c73e4(0xa7)]===_0x34db34['start']?_0x34db34[_0x3c73e4(0xb0)]-_0x37562e['end']:_0x37562e[_0x3c73e4(0xa7)]-_0x34db34[_0x3c73e4(0xa7)]:_0x37562e[_0x3c73e4(0xf1)][_0x3c73e4(0xce)](_0x34db34['axis']):_0x37562e[_0x3c73e4(0xe5)]['localeCompare'](_0x34db34['subUnitId']):_0x37562e[_0x3c73e4(0x118)][_0x3c73e4(0xce)](_0x34db34[_0x3c73e4(0x118)]);}function De(_0x4e85c6){const _0xad368c=_0x2960;if(_0x4e85c6[_0xad368c(0xa7)]>_0x4e85c6[_0xad368c(0xb0)])throw new w(_0xad368c(0x101),_0xad368c(0xe4),_0x4e85c6['id']);}function Oe(_0x2f257f,_0x52851f){const _0x4ad8d2=_0x2960;let _0x330d86=_0x2f257f['start']<=_0x52851f[_0x4ad8d2(0xb0)]&&_0x52851f[_0x4ad8d2(0xa7)]<=_0x2f257f[_0x4ad8d2(0xb0)],_0x1f1ac8=_0x2f257f[_0x4ad8d2(0xa7)]<=_0x52851f[_0x4ad8d2(0xa7)]&&_0x52851f['end']<=_0x2f257f[_0x4ad8d2(0xb0)],_0x2a6e0b=_0x52851f[_0x4ad8d2(0xa7)]<=_0x2f257f[_0x4ad8d2(0xa7)]&&_0x2f257f[_0x4ad8d2(0xb0)]<=_0x52851f['end'];return _0x330d86&&!_0x1f1ac8&&!_0x2a6e0b;}function P(_0x1e3ff1){'@babel/helpers - typeof';const _0x157de2=_0x2960;return P=typeof Symbol==_0x157de2(0xd0)&&typeof Symbol[_0x157de2(0xc4)]=='symbol'?function(_0x37e618){return typeof _0x37e618;}:function(_0x5030df){const _0xeb67f4=_0x157de2;return _0x5030df&&typeof Symbol==_0xeb67f4(0xd0)&&_0x5030df[_0xeb67f4(0x84)]===Symbol&&_0x5030df!==Symbol[_0xeb67f4(0x8c)]?_0xeb67f4(0xc8):typeof _0x5030df;},P(_0x1e3ff1);}function ke(_0x474a13,_0x246fe9){const _0x10caa5=_0x2960;if(P(_0x474a13)!=_0x10caa5(0xeb)||!_0x474a13)return _0x474a13;var _0x573a5a=_0x474a13[Symbol[_0x10caa5(0x11c)]];if(_0x573a5a!==void 0x0){var _0x2d7276=_0x573a5a[_0x10caa5(0xa8)](_0x474a13,_0x246fe9||_0x10caa5(0x104));if(P(_0x2d7276)!=_0x10caa5(0xeb))return _0x2d7276;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x246fe9===_0x10caa5(0xb3)?String:Number)(_0x474a13);}function Ae(_0x19237b){const _0xbd81d9=_0x2960;var _0x3add3a=ke(_0x19237b,'string');return P(_0x3add3a)==_0xbd81d9(0xc8)?_0x3add3a:_0x3add3a+'';}function F(_0x4f9e51,_0xfeb903,_0x1a22e4){const _0x26fff6=_0x2960;return(_0xfeb903=Ae(_0xfeb903))in _0x4f9e51?Object[_0x26fff6(0xc7)](_0x4f9e51,_0xfeb903,{'value':_0x1a22e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f9e51[_0xfeb903]=_0x1a22e4,_0x4f9e51;}var I=class extends _0x50f73a{constructor(..._0xace6d9){const _0x48de69=_0x2960;super(..._0xace6d9),F(this,_0x48de69(0x95),new Map()),F(this,'_change$',new _0xa40a72()),F(this,_0x48de69(0x100),this[_0x48de69(0xbb)][_0x48de69(0x97)]());}[_0x470647(0xf7)](_0x39f4f8,_0x3e83bd){const _0x250072=_0x470647;var _0x4847cb,_0x36d977;return[...(_0x4847cb=(_0x36d977=this[_0x250072(0x95)][_0x250072(0xfc)](_0x39f4f8))==null?void 0x0:_0x36d977['get'](_0x3e83bd))==null?[]:_0x4847cb];}[_0x470647(0x9c)](_0x4a476b){const _0x2bd8c5=_0x470647;let _0x5a174f=this[_0x2bd8c5(0x95)]['get'](_0x4a476b),_0x46e32d=new Map();return _0x5a174f==null||_0x5a174f[_0x2bd8c5(0xf3)]((_0x3e7e3f,_0x4622a9)=>{_0x46e32d['set'](_0x4622a9,[..._0x3e7e3f]);}),_0x46e32d;}[_0x470647(0x117)](_0x1bc70e,_0x2a3e7a,_0x29bfaf){const _0x19adc9=_0x470647;this[_0x19adc9(0x125)](_0x1bc70e)['set'](_0x2a3e7a,[..._0x29bfaf]),this[_0x19adc9(0xbb)][_0x19adc9(0xdf)]({'unitId':_0x1bc70e,'subUnitId':_0x2a3e7a});}['removeUnit'](_0x506650){const _0x49d905=_0x470647;this['_outlines']['delete'](_0x506650),this[_0x49d905(0xbb)][_0x49d905(0xdf)]({'unitId':_0x506650});}[_0x470647(0xa1)](_0x2a0364){const _0x1a29bd=_0x470647;let _0x1d0298=this[_0x1a29bd(0x95)][_0x1a29bd(0xfc)](_0x2a0364),_0x199077={};return _0x1d0298==null||_0x1d0298[_0x1a29bd(0xf3)]((_0x4d848e,_0x3057b4)=>{_0x199077[_0x3057b4]={'outlineList':[..._0x4d848e]};}),_0x199077;}['deserialize'](_0x3e4aa3,_0x2c2843){const _0x55a4e=_0x470647;let _0x25a5aa=new Map();Object[_0x55a4e(0x82)](_0x2c2843)[_0x55a4e(0xf3)](([_0x39031f,_0xae8e2d])=>{var _0xf11ad4;_0x25a5aa['set'](_0x39031f,[...(_0xf11ad4=_0xae8e2d['outlineList'])==null?[]:_0xf11ad4]);}),this['_outlines'][_0x55a4e(0xf5)](_0x3e4aa3,_0x25a5aa),this[_0x55a4e(0xbb)][_0x55a4e(0xdf)]({'unitId':_0x3e4aa3});}[_0x470647(0x103)](){const _0x20583d=_0x470647;super[_0x20583d(0x103)](),this[_0x20583d(0x95)][_0x20583d(0xb1)](),this[_0x20583d(0xbb)][_0x20583d(0xab)]();}[_0x470647(0x125)](_0x3d7300){const _0x21cbed=_0x470647;let _0xed1d9=this[_0x21cbed(0x95)]['get'](_0x3d7300);return _0xed1d9||(_0xed1d9=new Map(),this['_outlines'][_0x21cbed(0xf5)](_0x3d7300,_0xed1d9)),_0xed1d9;}},L=class extends _0x50f73a{constructor(..._0x2f8df1){const _0x5c4e59=_0x470647;super(..._0x2f8df1),F(this,_0x5c4e59(0x11a),new _0xa40a72()),F(this,_0x5c4e59(0x98),this[_0x5c4e59(0x11a)][_0x5c4e59(0x97)]());}['emit'](_0x36a832){const _0x16ce9d=_0x470647;this[_0x16ce9d(0x11a)]['next'](_0x36a832);}[_0x470647(0x103)](){const _0x47cca9=_0x470647;super[_0x47cca9(0x103)](),this[_0x47cca9(0x11a)][_0x47cca9(0xab)]();}};const R={'id':_0x470647(0xa9),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0x1c4c9f,_0x466bf9)=>{const _0x487b62=_0x470647;let _0xf975f8=_0x1c4c9f[_0x487b62(0xfc)](I),_0x3209f8=_0xf975f8['getOutlines'](_0x466bf9['unitId'],_0x466bf9[_0x487b62(0xe5)]);return _0xf975f8[_0x487b62(0x117)](_0x466bf9[_0x487b62(0x118)],_0x466bf9[_0x487b62(0xe5)],he(_0x3209f8,_0x466bf9['outline'])),!0x0;}},z={'id':'sheet.mutation.remove-dimension-outline','type':_0x3d3122['MUTATION'],'handler':(_0x4b562d,_0x2225c9)=>{const _0x5b7051=_0x470647;let _0x21e79b=_0x4b562d[_0x5b7051(0xfc)](I),_0x1a28b5=_0x21e79b['getOutlines'](_0x2225c9['unitId'],_0x2225c9[_0x5b7051(0xe5)]);return _0x21e79b[_0x5b7051(0x117)](_0x2225c9['unitId'],_0x2225c9[_0x5b7051(0xe5)],_0x1a28b5[_0x5b7051(0x91)](_0x45b54f=>_0x45b54f['id']!==_0x2225c9[_0x5b7051(0x10a)])),!0x0;}};function B(_0x712d7e,_0x180e41,_0x2293f0){const _0xaf16c=_0x470647;let _0x1ec3de=Me(_0x712d7e);return _0x1ec3de?_0x1ec3de[_0xaf16c(0x108)]({'workbookTypes':[_0xe38788],'worksheetTypes':[_0x3cc6c7]},_0x180e41,_0x2293f0):!0x0;}function je(_0x1f36f,_0x3a1864,_0x25aca6){const _0x23e1c1=_0x470647;var _0x247135;let _0x4f9418=Ne(_0x1f36f);return((_0x247135=_0x4f9418==null?void 0x0:_0x4f9418[_0x23e1c1(0xff)])==null?_0x21afba(null):_0x247135)[_0x23e1c1(0x81)](_0x1e4436(0x64),_0x534ba3(null),_0x2c3473(()=>B(_0x1f36f,_0x3a1864,_0x25aca6)));}function Me(_0x10a630){const _0x279d0e=_0x470647;if(typeof _0x10a630[_0x279d0e(0xd3)]==_0x279d0e(0xd0)&&!_0x10a630[_0x279d0e(0xd3)](_0x18cb26))return null;try{return _0x10a630[_0x279d0e(0xfc)](_0x18cb26);}catch{return null;}}function Ne(_0x37b722){const _0x3d3376=_0x470647;if(typeof _0x37b722[_0x3d3376(0xd3)]==_0x3d3376(0xd0)&&!_0x37b722['has'](_0x269e8d))return null;try{return _0x37b722['get'](_0x269e8d);}catch{return null;}}const V={'id':_0x470647(0x9e),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x561ee9,_0x263308)=>{const _0x542948=_0x470647;var _0x29e181,_0x186f99;if(!_0x263308)return!0x1;let _0x342296=_0x7bcf04(_0x561ee9[_0x542948(0xfc)](_0x39f6dc),_0x263308);if(!_0x342296)return!0x1;let {unitId:_0x1f27b2,subUnitId:_0x19aa8c,worksheet:_0x566c92}=_0x342296;if(!B(_0x561ee9,_0x1f27b2,_0x19aa8c))return!0x1;let _0x358007=_0x561ee9['get'](I),_0x28bb57={'id':_0x542948(0xf0)+_0x526a6f(0x6),'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'axis':_0x263308[_0x542948(0xf1)],'start':_0x263308[_0x542948(0xa7)],'end':_0x263308[_0x542948(0xb0)],'collapsed':!0x1},_0x30745c=_0x263308[_0x542948(0xf1)]==='row'?_0x566c92[_0x542948(0x8f)]():_0x566c92[_0x542948(0xed)](),_0xb468f6=_0x358007[_0x542948(0xf7)](_0x1f27b2,_0x19aa8c),_0xd7793c=ge(_0xb468f6,_0x28bb57),_0x493418=(_0x29e181=_0xd7793c==null?void 0x0:_0xd7793c['mergedOutlines'])==null?[]:_0x29e181,_0x5bf990=(_0x186f99=_0xd7793c==null?void 0x0:_0xd7793c[_0x542948(0xa5)])==null?_0x28bb57:_0x186f99,_0x20bd06=k(_0xd7793c?_0xb468f6[_0x542948(0x91)](_0x58b9fc=>!_0x493418[_0x542948(0x122)](_0x3ab715=>_0x3ab715['id']===_0x58b9fc['id'])):_0xb468f6,_0x5bf990,{'maxIndex':_0x30745c});if(!_0x20bd06[_0x542948(0x9d)]){var _0x285efc;return _0x561ee9['get'](L)[_0x542948(0x8d)]({'reason':(_0x285efc=_0x20bd06[_0x542948(0xec)])==null?'unknown':_0x285efc,'commandId':V['id'],'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'axis':_0x263308[_0x542948(0xf1)],'outlineId':_0x5bf990['id']}),!0x1;}let _0x5673d0=[..._0x493418['map'](_0x102ad7=>({'id':z['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outlineId':_0x102ad7['id']}})),{'id':R['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outline':_0x5bf990}}],_0x132a06=[{'id':z['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outlineId':_0x5bf990['id']}},..._0x493418['map'](_0x4500b1=>({'id':R['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outline':_0x4500b1}}))];return _0x3c1ea5(_0x5673d0,_0x561ee9['get'](_0x3a2206))['result']?(_0x561ee9[_0x542948(0xfc)](_0x5dd5fa)[_0x542948(0x96)]({'unitID':_0x1f27b2,'undoMutations':_0x132a06,'redoMutations':_0x5673d0}),!0x0):!0x1;}},H={'id':'sheet.mutation.clear-dimension-outlines','type':_0x3d3122[_0x470647(0x124)],'handler':(_0xe2415c,_0x5cd57b)=>{const _0x250b0f=_0x470647;let _0x329149=_0xe2415c['get'](I),_0x29ef10=_0x329149[_0x250b0f(0xf7)](_0x5cd57b['unitId'],_0x5cd57b['subUnitId']);return _0x329149['setOutlines'](_0x5cd57b[_0x250b0f(0x118)],_0x5cd57b[_0x250b0f(0xe5)],_e(_0x29ef10,_0x5cd57b)),!0x0;}},U={'id':'sheet.command.clear-dimension-outlines','type':_0x3d3122['COMMAND'],'handler':(_0x686c6e,_0x362e11)=>{const _0x424318=_0x470647;if(!_0x362e11)return!0x1;let _0x22eb22=_0x7bcf04(_0x686c6e[_0x424318(0xfc)](_0x39f6dc),_0x362e11);if(!_0x22eb22)return!0x1;let {unitId:_0x25f3d3,subUnitId:_0x58639d}=_0x22eb22;if(!B(_0x686c6e,_0x25f3d3,_0x58639d))return!0x1;let _0x83458b={'unitId':_0x25f3d3,'subUnitId':_0x58639d,'axis':_0x362e11[_0x424318(0xf1)],'start':_0x362e11[_0x424318(0xa7)],'end':_0x362e11['end']},_0x99cae1=_0x686c6e['get'](I)[_0x424318(0xf7)](_0x25f3d3,_0x58639d)[_0x424318(0x91)](_0x391376=>D(_0x391376,_0x83458b)&&_0x391376[_0x424318(0xa7)]>=_0x362e11[_0x424318(0xa7)]&&_0x391376[_0x424318(0xb0)]<=_0x362e11[_0x424318(0xb0)]);if(_0x99cae1[_0x424318(0xa6)]===0x0)return _0x686c6e[_0x424318(0xfc)](L)[_0x424318(0x8d)]({'reason':_0x424318(0xe7),'commandId':U['id'],'unitId':_0x25f3d3,'subUnitId':_0x58639d,'axis':_0x362e11['axis']}),!0x1;let _0x16c14b=[{'id':H['id'],'params':{..._0x83458b,'removedOutlineIds':_0x99cae1['map'](_0x3c86a3=>_0x3c86a3['id'])}}],_0x1640de=_0x99cae1[_0x424318(0x127)](_0x22c2ac=>({'id':R['id'],'params':{'unitId':_0x25f3d3,'subUnitId':_0x58639d,'outline':_0x22c2ac}}));return _0x3c1ea5(_0x16c14b,_0x686c6e['get'](_0x3a2206))[_0x424318(0x126)]?(_0x686c6e['get'](_0x5dd5fa)[_0x424318(0x96)]({'unitID':_0x25f3d3,'undoMutations':_0x1640de,'redoMutations':_0x16c14b}),!0x0):!0x1;}},Pe={'id':_0x470647(0xa0),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x45fbec,_0x981aa6)=>{const _0xee65d2=_0x470647;if(!_0x981aa6)return!0x1;let _0x44cf72=_0x7bcf04(_0x45fbec[_0xee65d2(0xfc)](_0x39f6dc),_0x981aa6);if(!_0x44cf72)return!0x1;let {unitId:_0x2e3083,subUnitId:_0x48fee1}=_0x44cf72;if(!B(_0x45fbec,_0x2e3083,_0x48fee1))return!0x1;let _0x4bebc3=_0x45fbec['get'](I)[_0xee65d2(0xf7)](_0x2e3083,_0x48fee1)[_0xee65d2(0xe3)](_0x139c6c=>_0x139c6c['id']===_0x981aa6['outlineId']);if(!_0x4bebc3)return!0x1;let _0x55b350=[{'id':z['id'],'params':{'unitId':_0x2e3083,'subUnitId':_0x48fee1,'outlineId':_0x4bebc3['id'],'outline':_0x4bebc3}}],_0x1d6ed6=[{'id':R['id'],'params':{'unitId':_0x2e3083,'subUnitId':_0x48fee1,'outline':_0x4bebc3}}];return _0x3c1ea5(_0x55b350,_0x45fbec[_0xee65d2(0xfc)](_0x3a2206))['result']?(_0x45fbec[_0xee65d2(0xfc)](_0x5dd5fa)[_0xee65d2(0x96)]({'unitID':_0x2e3083,'undoMutations':_0x1d6ed6,'redoMutations':_0x55b350}),!0x0):!0x1;}},W={'id':_0x470647(0xf8),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0x45a4b5,_0xf71373)=>{const _0x47ae8d=_0x470647;let _0x5c40c9=_0x45a4b5['get'](I),_0x41c0db=_0x5c40c9[_0x47ae8d(0xf7)](_0xf71373[_0x47ae8d(0x118)],_0xf71373[_0x47ae8d(0xe5)]),_0x528869=_0x41c0db['find'](_0x15f6f4=>_0x15f6f4['id']===_0xf71373[_0x47ae8d(0x10a)]);return _0x528869&&_0x5c40c9['setOutlines'](_0xf71373[_0x47ae8d(0x118)],_0xf71373[_0x47ae8d(0xe5)],_0x41c0db[_0x47ae8d(0x127)](_0x1a6042=>_0x1a6042[_0x47ae8d(0x118)]!==_0x528869[_0x47ae8d(0x118)]||_0x1a6042[_0x47ae8d(0xe5)]!==_0x528869[_0x47ae8d(0xe5)]||_0x1a6042[_0x47ae8d(0xf1)]!==_0x528869[_0x47ae8d(0xf1)]||_0x1a6042[_0x47ae8d(0xa7)]!==_0x528869[_0x47ae8d(0xa7)]||_0x1a6042['end']!==_0x528869['end']?_0x1a6042:{..._0x1a6042,'collapsed':_0xf71373[_0x47ae8d(0xe1)]})),!0x0;}};function Fe(_0xfc829d,_0xbac102,_0x132c80,_0x30b37d){const _0x5121c6=_0x470647;return _0xfc829d===_0x5121c6(0xa4)?{'startRow':_0xbac102,'endRow':_0x132c80,'startColumn':0x0,'endColumn':_0x30b37d[_0x5121c6(0x89)]()-0x1}:{'startRow':0x0,'endRow':_0x30b37d['getRowCount']()-0x1,'startColumn':_0xbac102,'endColumn':_0x132c80};}function Ie(_0x3ad191){return _0x3ad191==='row'?_0x5271ce['id']:_0x36bde2['id'];}function Le(_0x4782a9){const _0xfce9a1=_0x470647;return _0x4782a9===_0xfce9a1(0xa4)?_0x33c0ec['id']:_0x309749['id'];}function Re(_0x13c698,_0xe20df3,_0x9a41d9,_0x2f5603){const _0x21afd2=_0x470647;let _0x1e0aec=_0xe20df3?[Fe(_0x13c698[_0x21afd2(0xf1)],_0x13c698[_0x21afd2(0xa7)],_0x13c698['end'],_0x9a41d9)]:ze(_0x13c698,_0x2f5603,_0x9a41d9),_0x1c1624=_0xe20df3?Ie(_0x13c698['axis']):Le(_0x13c698['axis']);return[{'id':W['id'],'params':{'unitId':_0x13c698[_0x21afd2(0x118)],'subUnitId':_0x13c698[_0x21afd2(0xe5)],'outlineId':_0x13c698['id'],'outline':_0x13c698,'collapsed':_0xe20df3}},..._0x1e0aec[_0x21afd2(0x127)](_0x4aed51=>({'id':_0x1c1624,'params':{'unitId':_0x13c698['unitId'],'subUnitId':_0x13c698[_0x21afd2(0xe5)],'ranges':[_0x4aed51],'dimensionOutlineId':_0x13c698['id']}}))];}function ze(_0x270266,_0x27f5a1,_0x3474ac){const _0x5b789b=_0x470647;let _0x8a358f=ve(_0x27f5a1[_0x5b789b(0x127)](_0x2fef40=>Be(_0x2fef40,_0x270266)?{..._0x2fef40,'collapsed':!0x1}:_0x2fef40),_0x270266[_0x5b789b(0x118)],_0x270266[_0x5b789b(0xe5)],_0x270266[_0x5b789b(0xf1)]);return Ve({'start':_0x270266[_0x5b789b(0xa7)],'end':_0x270266[_0x5b789b(0xb0)]},_0x8a358f)[_0x5b789b(0x127)](_0xef94=>Fe(_0x270266[_0x5b789b(0xf1)],_0xef94[_0x5b789b(0xa7)],_0xef94['end'],_0x3474ac));}function Be(_0x49a984,_0x35bd7b){const _0x38c6a4=_0x470647;return _0x49a984[_0x38c6a4(0x118)]===_0x35bd7b['unitId']&&_0x49a984['subUnitId']===_0x35bd7b[_0x38c6a4(0xe5)]&&_0x49a984[_0x38c6a4(0xf1)]===_0x35bd7b[_0x38c6a4(0xf1)]&&_0x49a984[_0x38c6a4(0xa7)]===_0x35bd7b[_0x38c6a4(0xa7)]&&_0x49a984[_0x38c6a4(0xb0)]===_0x35bd7b[_0x38c6a4(0xb0)];}function Ve(_0x181600,_0x59d332){const _0x3ad030=_0x470647;let _0x22c3a5=_0x181600[_0x3ad030(0xa7)],_0x1afaf0=[];for(let _0x5d8f84 of _0x59d332)if(!(_0x5d8f84['end']<_0x22c3a5||_0x5d8f84[_0x3ad030(0xa7)]>_0x181600[_0x3ad030(0xb0)])&&(_0x5d8f84[_0x3ad030(0xa7)]>_0x22c3a5&&_0x1afaf0[_0x3ad030(0x90)]({'start':_0x22c3a5,'end':Math[_0x3ad030(0xd7)](_0x5d8f84[_0x3ad030(0xa7)]-0x1,_0x181600[_0x3ad030(0xb0)])}),_0x22c3a5=Math[_0x3ad030(0x85)](_0x22c3a5,_0x5d8f84['end']+0x1),_0x22c3a5>_0x181600[_0x3ad030(0xb0)]))break;return _0x22c3a5<=_0x181600['end']&&_0x1afaf0['push']({'start':_0x22c3a5,'end':_0x181600[_0x3ad030(0xb0)]}),_0x1afaf0;}const He={'id':_0x470647(0x106),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x2b05a8,_0x1bb54a)=>{const _0x56a0ef=_0x470647;if(!_0x1bb54a)return!0x1;let _0x3a871a=_0x7bcf04(_0x2b05a8['get'](_0x39f6dc),_0x1bb54a);if(!_0x3a871a)return!0x1;let {unitId:_0x1a2120,subUnitId:_0xe8da78,worksheet:_0x3b25f2}=_0x3a871a;if(!B(_0x2b05a8,_0x1a2120,_0xe8da78))return!0x1;let _0x60a530=_0x2b05a8[_0x56a0ef(0xfc)](I)[_0x56a0ef(0xf7)](_0x1a2120,_0xe8da78),_0x4953c1=_0x60a530[_0x56a0ef(0xe3)](_0xd222df=>_0xd222df['id']===_0x1bb54a[_0x56a0ef(0x10a)]);if(!_0x4953c1||_0x4953c1[_0x56a0ef(0xe1)]===_0x1bb54a[_0x56a0ef(0xe1)])return!0x1;let _0x1e895a=Re(_0x4953c1,_0x1bb54a[_0x56a0ef(0xe1)],_0x3b25f2,_0x60a530),_0x56a0c2=Re(_0x4953c1,!_0x1bb54a['collapsed'],_0x3b25f2,_0x60a530);return _0x3c1ea5(_0x1e895a,_0x2b05a8[_0x56a0ef(0xfc)](_0x3a2206))['result']?(_0x2b05a8[_0x56a0ef(0xfc)](_0x5dd5fa)[_0x56a0ef(0x96)]({'unitID':_0x1a2120,'undoMutations':_0x56a0c2,'redoMutations':_0x1e895a}),!0x0):!0x1;}},G={'id':_0x470647(0xd5),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0xa0fabe,_0x149531)=>{const _0x20b08a=_0x470647;let _0x354818=_0xa0fabe[_0x20b08a(0xfc)](I),_0x683b40=Ue(_0x354818[_0x20b08a(0xf7)](_0x149531[_0x20b08a(0x118)],_0x149531[_0x20b08a(0xe5)]),_0x149531);return _0x354818[_0x20b08a(0x117)](_0x149531[_0x20b08a(0x118)],_0x149531[_0x20b08a(0xe5)],_0x683b40),!0x0;}};function _0x2960(_0x4ce437,_0x4c13fb){_0x4ce437=_0x4ce437-0x80;const _0x41a232=_0x41a2();let _0x29606d=_0x41a232[_0x4ce437];return _0x29606d;}function Ue(_0x578236,_0x4e5712){const _0x2c749c=_0x470647;switch(_0x4e5712['type']){case _0x2c749c(0xb8):return _0x4e5712[_0x2c749c(0x116)]?We(_0x578236,_0x4e5712):A(_0x578236,_0x4e5712);case _0x2c749c(0xd6):return j(_0x578236,_0x4e5712);case _0x2c749c(0xc9):return M(_0x578236,_0x4e5712);}}function We(_0x117ab3,_0x1ccd9e){const _0x1a58ec=_0x470647;return[..._0x117ab3[_0x1a58ec(0x91)](_0x5b86f0=>_0x5b86f0[_0x1a58ec(0x118)]!==_0x1ccd9e['unitId']||_0x5b86f0[_0x1a58ec(0xe5)]!==_0x1ccd9e[_0x1a58ec(0xe5)]||_0x5b86f0[_0x1a58ec(0xf1)]!==_0x1ccd9e['axis']),..._0x1ccd9e[_0x1a58ec(0x116)]];}const K=_0x470647(0xd4),Ge=_0x470647(0x92);var Ke='@univerjs-pro/sheets-outline',qe=_0x470647(0xee);function q(_0x4f3407,_0x23abaa){return function(_0x4f3b9f,_0x505478){_0x23abaa(_0x4f3b9f,_0x505478,_0x4f3407);};}function J(_0x266c48,_0x5bf6ba,_0x2c1c19,_0x3357f9){const _0x461fc0=_0x470647;var _0x2a0d1b=arguments['length'],_0x3ad998=_0x2a0d1b<0x3?_0x5bf6ba:_0x3357f9===null?_0x3357f9=Object[_0x461fc0(0xba)](_0x5bf6ba,_0x2c1c19):_0x3357f9,_0x465c5f;if(typeof Reflect==_0x461fc0(0xeb)&&typeof Reflect['decorate']=='function')_0x3ad998=Reflect[_0x461fc0(0x119)](_0x266c48,_0x5bf6ba,_0x2c1c19,_0x3357f9);else{for(var _0x4fbab9=_0x266c48['length']-0x1;_0x4fbab9>=0x0;_0x4fbab9--)(_0x465c5f=_0x266c48[_0x4fbab9])&&(_0x3ad998=(_0x2a0d1b<0x3?_0x465c5f(_0x3ad998):_0x2a0d1b>0x3?_0x465c5f(_0x5bf6ba,_0x2c1c19,_0x3ad998):_0x465c5f(_0x5bf6ba,_0x2c1c19))||_0x3ad998);}return _0x2a0d1b>0x3&&_0x3ad998&&Object[_0x461fc0(0xc7)](_0x5bf6ba,_0x2c1c19,_0x3ad998),_0x3ad998;}const Y={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let X=class extends _0x50f73a{constructor(_0x3265b4,_0x5e377a,_0x4c3a1d,_0x1091f0){const _0x2f1ce6=_0x470647;super(),this[_0x2f1ce6(0xe0)]=_0x3265b4,this[_0x2f1ce6(0x102)]=_0x5e377a,this[_0x2f1ce6(0xbf)]=_0x4c3a1d,this[_0x2f1ce6(0xe8)]=_0x1091f0,this[_0x2f1ce6(0xae)]();}[_0x470647(0xae)](){const _0x4b7127=_0x470647;this[_0x4b7127(0xd2)](this[_0x4b7127(0x102)][_0x4b7127(0xad)]({'getMutations':_0x143e12=>Je(_0x143e12,(_0x31bd9e,_0x5847c7)=>this[_0x4b7127(0xbf)][_0x4b7127(0xf7)](_0x31bd9e,_0x5847c7),this[_0x4b7127(0x115)](_0x143e12[_0x4b7127(0xea)]),_0x38f42c=>this[_0x4b7127(0xe8)][_0x4b7127(0x8d)](_0x38f42c))}));}[_0x470647(0x115)](_0x53f16b){const _0x32b970=_0x470647;let _0x2426b2=_0x53f16b,_0x4e57cd=_0x2426b2!=null&&_0x2426b2['unitId']?this[_0x32b970(0xe0)][_0x32b970(0xd9)](_0x2426b2[_0x32b970(0x118)]):this[_0x32b970(0xe0)][_0x32b970(0xbc)](_0x1fac57[_0x32b970(0x111)]);if(!_0x4e57cd)return;let _0x326c88=_0x2426b2!=null&&_0x2426b2[_0x32b970(0xe5)]?_0x4e57cd[_0x32b970(0xac)](_0x2426b2[_0x32b970(0xe5)]):_0x4e57cd[_0x32b970(0x123)]();if(_0x326c88)return{'unitId':_0x4e57cd[_0x32b970(0xbe)](),'subUnitId':_0x326c88[_0x32b970(0x87)]()};}};X=J([q(0x0,_0x39f6dc),q(0x1,_0x1378e5(_0x2f2fa3)),q(0x2,_0x1378e5(I)),q(0x3,_0x1378e5(L))],X);function Je(_0x30f806,_0xb2ddd6,_0x2f5ccd,_0x5c7e14){const _0x23b968=_0x470647;let _0x3a9be8=Xe(_0x30f806,_0x2f5ccd);if(!_0x3a9be8)return nt();let _0x2d3f97=_0xb2ddd6(_0x3a9be8[_0x23b968(0x118)],_0x3a9be8[_0x23b968(0xe5)]);if(!_0x2d3f97[_0x23b968(0x122)](_0x58d494=>_0x58d494[_0x23b968(0xf1)]===_0x3a9be8[_0x23b968(0xf1)]))return nt();Ye(_0x2d3f97,_0x3a9be8,_0x30f806['id'],_0x5c7e14);let _0x24bb36=et(_0x3a9be8,_0x2d3f97);return{'redos':[{'id':G['id'],'params':_0x3a9be8}],'undos':[{'id':G['id'],'params':_0x24bb36}],'preRedos':[],'preUndos':[]};}function Ye(_0x398c31,_0x9d9fb6,_0x1fcd94,_0x1838b6){const _0x105baf=_0x470647;try{switch(_0x9d9fb6[_0x105baf(0xbd)]){case _0x105baf(0xb8):A(_0x398c31,_0x9d9fb6);break;case _0x105baf(0xd6):j(_0x398c31,_0x9d9fb6);break;case'move':M(_0x398c31,_0x9d9fb6);break;}}catch(_0x214b1a){throw _0x1838b6==null||_0x1838b6({'reason':T(_0x214b1a),'commandId':_0x1fcd94,'unitId':_0x9d9fb6[_0x105baf(0x118)],'subUnitId':_0x9d9fb6[_0x105baf(0xe5)],'axis':_0x9d9fb6['axis'],'outlineId':me(_0x214b1a)}),new _0x2f895c(_0x214b1a instanceof Error?_0x214b1a['message']:_0x105baf(0x10f));}}function Xe(_0xea927c,_0x257cf8){const _0xef2649=_0x470647;switch(_0xea927c['id']){case _0x568b88['id']:return Ze(_0xea927c[_0xef2649(0xea)],_0xef2649(0xa4),_0x257cf8);case _0x24d8c4['id']:return Ze(_0xea927c['params'],_0xef2649(0x8e),_0x257cf8);case _0x2f7813['id']:return Qe(_0xea927c[_0xef2649(0xea)],'row',_0x257cf8);case _0x59cc03['id']:return Qe(_0xea927c[_0xef2649(0xea)],'column',_0x257cf8);case _0xf13d0f['id']:return $e(_0xea927c['params'],_0xef2649(0xa4),_0x257cf8);case _0x54b479['id']:return $e(_0xea927c['params'],'column',_0x257cf8);default:return null;}}function Ze(_0x36da8a,_0x2bce1e,_0x35c798){const _0x2e5ef5=_0x470647;let _0x44a7e4=Z(_0x36da8a,_0x35c798);if(!(_0x36da8a!=null&&_0x36da8a[_0x2e5ef5(0xcb)])||!_0x44a7e4)return null;let _0x4addd7=_0x2bce1e===_0x2e5ef5(0xa4)?_0x36da8a[_0x2e5ef5(0xcb)][_0x2e5ef5(0x8b)]:_0x36da8a['range'][_0x2e5ef5(0x80)],_0x4797ff=_0x2bce1e===_0x2e5ef5(0xa4)?_0x36da8a['range'][_0x2e5ef5(0xfb)]:_0x36da8a[_0x2e5ef5(0xcb)][_0x2e5ef5(0xd8)];return{..._0x44a7e4,'axis':_0x2bce1e,'type':'insert','index':_0x4addd7,'count':_0x4797ff-_0x4addd7+0x1};}function Qe(_0x405131,_0xc26f,_0x4a22d0){const _0x8baf17=_0x470647;let _0x29fad5=Z(_0x405131,_0x4a22d0);if(!(_0x405131!=null&&_0x405131[_0x8baf17(0xcb)])||!_0x29fad5)return null;let _0x37ab61=_0xc26f===_0x8baf17(0xa4)?_0x405131[_0x8baf17(0xcb)][_0x8baf17(0x8b)]:_0x405131['range']['startColumn'],_0x2ddb59=_0xc26f==='row'?_0x405131['range'][_0x8baf17(0xfb)]:_0x405131[_0x8baf17(0xcb)]['endColumn'];return{..._0x29fad5,'axis':_0xc26f,'type':_0x8baf17(0xd6),'start':_0x37ab61,'end':_0x2ddb59};}function $e(_0x599e4b,_0x275445,_0xde2c29){const _0x3347d2=_0x470647;let _0x411bc3=Z(_0x599e4b,_0xde2c29);if(!(_0x599e4b!=null&&_0x599e4b[_0x3347d2(0x83)])||!_0x599e4b['toRange']||!_0x411bc3)return null;let _0x3a3559=_0x275445==='row'?_0x599e4b[_0x3347d2(0x83)]['startRow']:_0x599e4b['fromRange'][_0x3347d2(0x80)],_0x4dd497=_0x275445===_0x3347d2(0xa4)?_0x599e4b['fromRange'][_0x3347d2(0xfb)]:_0x599e4b['fromRange']['endColumn'],_0x527970=_0x275445==='row'?_0x599e4b[_0x3347d2(0xdd)][_0x3347d2(0x8b)]:_0x599e4b[_0x3347d2(0xdd)][_0x3347d2(0x80)];return{..._0x411bc3,'axis':_0x275445,'type':_0x3347d2(0xc9),'sourceStart':_0x3a3559,'sourceEnd':_0x4dd497,'destinationIndex':_0x527970};}function et(_0x127708,_0xd98cfb){const _0x40503d=_0x470647;switch(_0x127708[_0x40503d(0xbd)]){case _0x40503d(0xb8):return{'unitId':_0x127708['unitId'],'subUnitId':_0x127708[_0x40503d(0xe5)],'axis':_0x127708[_0x40503d(0xf1)],'type':_0x40503d(0xd6),'start':_0x127708[_0x40503d(0x10e)],'end':_0x127708[_0x40503d(0x10e)]+_0x127708['count']-0x1};case _0x40503d(0xd6):return{'unitId':_0x127708[_0x40503d(0x118)],'subUnitId':_0x127708[_0x40503d(0xe5)],'axis':_0x127708['axis'],'type':'insert','index':_0x127708[_0x40503d(0xa7)],'count':_0x127708[_0x40503d(0xb0)]-_0x127708[_0x40503d(0xa7)]+0x1,'restoreOutlines':_0xd98cfb[_0x40503d(0x91)](_0x5aa40e=>_0x5aa40e[_0x40503d(0x118)]===_0x127708['unitId']&&_0x5aa40e[_0x40503d(0xe5)]===_0x127708[_0x40503d(0xe5)]&&_0x5aa40e[_0x40503d(0xf1)]===_0x127708[_0x40503d(0xf1)])};case _0x40503d(0xc9):return tt(_0x127708);}}function tt(_0x16a1b9){const _0x5ade6f=_0x470647;let _0x4c09a0=_0x16a1b9[_0x5ade6f(0xcd)]-_0x16a1b9[_0x5ade6f(0x9b)]+0x1;return _0x16a1b9[_0x5ade6f(0xcc)]>=_0x16a1b9['sourceStart']&&_0x16a1b9[_0x5ade6f(0xcc)]<=_0x16a1b9[_0x5ade6f(0xcd)]+0x1?{..._0x16a1b9}:_0x16a1b9[_0x5ade6f(0xcc)]>_0x16a1b9['sourceEnd']+0x1?{..._0x16a1b9,'sourceStart':_0x16a1b9[_0x5ade6f(0xcc)]-_0x4c09a0,'sourceEnd':_0x16a1b9[_0x5ade6f(0xcc)]-0x1,'destinationIndex':_0x16a1b9[_0x5ade6f(0x9b)]}:{..._0x16a1b9,'sourceStart':_0x16a1b9[_0x5ade6f(0xcc)],'sourceEnd':_0x16a1b9[_0x5ade6f(0xcc)]+_0x4c09a0-0x1,'destinationIndex':_0x16a1b9['sourceEnd']+0x1};}function Z(_0x3df710,_0x3147f8){const _0x5c8205=_0x470647;var _0x438eca,_0x5465cd;let _0x4dd701=(_0x438eca=_0x3df710==null?void 0x0:_0x3df710[_0x5c8205(0x118)])==null?_0x3147f8==null?void 0x0:_0x3147f8[_0x5c8205(0x118)]:_0x438eca,_0x27d61b=(_0x5465cd=_0x3df710==null?void 0x0:_0x3df710[_0x5c8205(0xe5)])==null?_0x3147f8==null?void 0x0:_0x3147f8['subUnitId']:_0x5465cd;return _0x4dd701&&_0x27d61b?{'unitId':_0x4dd701,'subUnitId':_0x27d61b}:null;}function nt(){const _0x370668=_0x470647;var _0x331537,_0x5a5710;return{'redos':[...Y[_0x370668(0x120)]],'undos':[...Y[_0x370668(0xe6)]],'preRedos':[...(_0x331537=Y['preRedos'])==null?[]:_0x331537],'preUndos':[...(_0x5a5710=Y[_0x370668(0xb4)])==null?[]:_0x5a5710]};}let Q=class extends _0x50f73a{constructor(_0x392f1c,_0x4aa52f){const _0x14078f=_0x470647;super(),this[_0x14078f(0x99)]=_0x392f1c,this[_0x14078f(0xbf)]=_0x4aa52f,this[_0x14078f(0xb7)]();}[_0x470647(0xb7)](){const _0x3d462c=_0x470647;this['disposeWithMe'](this[_0x3d462c(0x99)][_0x3d462c(0xc6)]({'pluginName':K,'businesses':[_0x1fac57['UNIVER_SHEET']],'toJson':_0x530a93=>JSON[_0x3d462c(0x10d)](this[_0x3d462c(0xbf)][_0x3d462c(0xa1)](_0x530a93)),'parseJson':_0x18d933=>JSON[_0x3d462c(0x113)](_0x18d933),'onLoad':(_0x1e1d7f,_0x2e9405)=>this[_0x3d462c(0xbf)][_0x3d462c(0x11d)](_0x1e1d7f,_0x2e9405),'onUnLoad':_0x2b2af3=>this[_0x3d462c(0xbf)][_0x3d462c(0x105)](_0x2b2af3)}));}};Q=J([q(0x0,_0x3dcf5e),q(0x1,_0x1378e5(I))],Q);let $=class extends _0xabb3e0{constructor(_0xe9068,_0x39fd0a,_0xb5f24b){const _0x1ccaf8=_0x470647;super(),this[_0x1ccaf8(0xaa)]=_0xe9068,this[_0x1ccaf8(0xa3)]=_0x39fd0a,this['_commandService']=_0xb5f24b;}[_0x470647(0x110)](){const _0x2a680d=_0x470647;this[_0x2a680d(0xa3)]['add']([I]),this['_injector'][_0x2a680d(0x109)]([L]),this[_0x2a680d(0xa3)][_0x2a680d(0x109)]([Q]),this[_0x2a680d(0xa3)][_0x2a680d(0x109)]([X]),this[_0x2a680d(0x11f)](),this[_0x2a680d(0xa3)]['get'](I),this[_0x2a680d(0xa3)][_0x2a680d(0xfc)](L),this[_0x2a680d(0xa3)][_0x2a680d(0xfc)](Q),this[_0x2a680d(0xa3)]['get'](X);}['_initRegisterCommand'](){const _0x595ee5=_0x470647;[V,Pe,He,U][_0x595ee5(0xf3)](_0x13dc59=>{const _0x5a1abd=_0x595ee5;this[_0x5a1abd(0xd2)](this['_commandService']['registerCommand'](_0x13dc59));}),[R,z,W,H,G][_0x595ee5(0xf3)](_0xec1aa2=>{const _0x18e8a1=_0x595ee5;this[_0x18e8a1(0xd2)](this[_0x18e8a1(0xc3)][_0x18e8a1(0x112)](_0xec1aa2));});}};F($,'pluginName',K),F($,_0x470647(0xb9),Ke),F($,_0x470647(0xc5),qe),F($,'type',_0x1fac57[_0x470647(0x111)]),$=J([_0x49c6f9(_0x5b20c6),q(0x1,_0x1378e5(_0x2d072b)),q(0x2,_0x3a2206)],$);export{V as AddDimensionOutlineCommand,R as AddDimensionOutlineMutation,U as ClearDimensionOutlinesCommand,H as ClearDimensionOutlinesMutation,fe as DimensionOutlineAxis,w as DimensionOutlineError,pe as DimensionOutlineErrorReason,Pe as RemoveDimensionOutlineCommand,z as RemoveDimensionOutlineMutation,Ge as SHEETS_OUTLINE_PLUGIN_CONFIG_KEY,K as SHEET_OUTLINE_PLUGIN,He as SetDimensionOutlineCollapsedCommand,W as SetDimensionOutlineCollapsedMutation,L as SheetsOutlineErrorService,I as SheetsOutlineModel,G as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,he as addDimensionOutlineToList,O as buildDimensionOutlineTree,ve as buildHiddenRanges,k as canAddDimensionOutline,_e as clearDimensionOutlinesInRange,me as getDimensionOutlineErrorOutlineId,T as getDimensionOutlineErrorReason,je as getDimensionOutlineViewPermission$,B as hasDimensionOutlineViewPermission,ye as mergeRanges,j as transformOutlinesByDelete,A as transformOutlinesByInsert,M as transformOutlinesByMove};
|
|
1
|
+
const _0xf79ad6=_0x5e2d;(function(_0xb961d6,_0x120e2d){const _0x4fad85=_0x5e2d,_0x23eeca=_0xb961d6();while(!![]){try{const _0x71ccd2=parseInt(_0x4fad85(0xb7))/0x1+-parseInt(_0x4fad85(0xb3))/0x2*(-parseInt(_0x4fad85(0xc6))/0x3)+parseInt(_0x4fad85(0xd0))/0x4+-parseInt(_0x4fad85(0xe1))/0x5*(-parseInt(_0x4fad85(0x137))/0x6)+-parseInt(_0x4fad85(0x134))/0x7+-parseInt(_0x4fad85(0xdb))/0x8+-parseInt(_0x4fad85(0x136))/0x9;if(_0x71ccd2===_0x120e2d)break;else _0x23eeca['push'](_0x23eeca['shift']());}catch(_0x576bb3){_0x23eeca['push'](_0x23eeca['shift']());}}}(_0x4de7,0x76a84));import{CommandType as _0x18dec2,CustomCommandExecutionError as _0x579787,DependentOn as _0x1a222d,Disposable as _0x2b4ce4,ICommandService as _0x3114b2,IConfigService as _0x565eac,IPermissionService as _0x16012d,IResourceManagerService as _0x25a52e,IUndoRedoService as _0x7d84fa,IUniverInstanceService as _0x180286,Inject as _0x440bb6,Injector as _0x424ff6,Plugin as _0x455c7c,UniverInstanceType as _0x530385,generateRandomId as _0x583be9,merge as _0x18d11e,sequenceExecute as _0x20280d}from'@univerjs/core';import{InsertColCommand as _0x54e6a9,InsertRowCommand as _0x253bb9,MoveColsCommand as _0x48d3f1,MoveRowsCommand as _0x2a6525,RemoveColCommand as _0x33a2b6,RemoveRowCommand as _0x288350,SetColHiddenMutation as _0x6fc268,SetColVisibleMutation as _0x2cbe28,SetRowHiddenMutation as _0x291e1d,SetRowVisibleMutation as _0x28e47c,SheetInterceptorService as _0x1155e7,SheetPermissionCheckController as _0x28e481,WorkbookViewPermission as _0x13e67d,WorksheetViewPermission as _0x1fdd6b,getSheetCommandTarget as _0x1ecbb3}from'@univerjs/sheets';import{Subject as _0x41f131,of as _0x40525e}from'rxjs';import{debounceTime as _0x3592c4,map as _0x5962fd,startWith as _0x9a0bd9}from'rxjs/operators';import{UniverLicensePlugin as _0x2ce280}from'@univerjs-pro/license';let me=function(_0x557acc){const _0x521f75=_0x5e2d;return _0x557acc[_0x521f75(0xdc)]=_0x521f75(0x157),_0x557acc['COLUMN']=_0x521f75(0x146),_0x557acc;}({}),he=function(_0x3df8a3){const _0x27758f=_0x5e2d;return _0x3df8a3[_0x27758f(0x154)]='invalid-range',_0x3df8a3[_0x27758f(0x115)]=_0x27758f(0x100),_0x3df8a3[_0x27758f(0xd1)]='crossing',_0x3df8a3['MAX_DEPTH']='max-depth',_0x3df8a3['MOVE_SPLITS_OUTLINE']=_0x27758f(0x113),_0x3df8a3[_0x27758f(0xe4)]=_0x27758f(0x12f),_0x3df8a3[_0x27758f(0xee)]=_0x27758f(0xb5),_0x3df8a3;}({});var w=class extends Error{constructor(_0x28e941,_0x2ed755,_0x2e283e){const _0x31173b=_0x5e2d;super(_0x2ed755),this['reason']=_0x28e941,this[_0x31173b(0x106)]=_0x2e283e,this[_0x31173b(0xc9)]=_0x31173b(0x117);}};function ge(_0x44548a){const _0x207252=_0x5e2d;return _0x44548a instanceof w?_0x44548a[_0x207252(0x139)]:_0x44548a instanceof Error?_0x44548a[_0x207252(0xd2)]['includes'](_0x207252(0xf1))?_0x207252(0x113):_0x44548a[_0x207252(0xd2)][_0x207252(0xf4)](_0x207252(0xbc))?_0x207252(0xea):_0x44548a[_0x207252(0xd2)][_0x207252(0xf4)](_0x207252(0x122))?_0x207252(0xda):_0x44548a[_0x207252(0xd2)][_0x207252(0xf4)](_0x207252(0x128))?_0x207252(0xe8):_0x207252(0xb5):_0x207252(0xb5);}function _e(_0x34ff3f){const _0x30ef59=_0x5e2d;return _0x34ff3f instanceof w?_0x34ff3f[_0x30ef59(0x106)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x134fad,_0x5588e1){const _0x30aae1=_0x5e2d;return _0x134fad[_0x30aae1(0xba)]===_0x5588e1['unitId']&&_0x134fad[_0x30aae1(0xfd)]===_0x5588e1[_0x30aae1(0xfd)]&&_0x134fad[_0x30aae1(0xb4)]===_0x5588e1[_0x30aae1(0xb4)];}function D(_0x5c901a,_0x2b591f={}){const _0x24d304=_0x5e2d;var _0x51b050;let _0x33e922=(_0x51b050=_0x2b591f[_0x24d304(0x13c)])==null?0x8:_0x51b050,_0x4fba03=new Map();for(let _0x3d5d4a of _0x5c901a){let _0x26f4f8=_0x3d5d4a['unitId']+':'+_0x3d5d4a[_0x24d304(0xfd)]+':'+_0x3d5d4a[_0x24d304(0xb4)],_0x3402c0=_0x4fba03[_0x24d304(0x133)](_0x26f4f8);_0x3402c0?_0x3402c0[_0x24d304(0x135)](_0x3d5d4a):_0x4fba03[_0x24d304(0x127)](_0x26f4f8,[_0x3d5d4a]);}let _0x44ed8e=[];for(let _0x45de9a of _0x4fba03[_0x24d304(0x11d)]()){let _0x167781=[..._0x45de9a][_0x24d304(0xbd)](ke),_0x36b8e4=[];for(let _0x1f0d37 of _0x167781){for(Ae(_0x1f0d37);_0x36b8e4['length']>0x0&&_0x1f0d37[_0x24d304(0xef)]>_0x36b8e4[_0x36b8e4[_0x24d304(0xe9)]-0x1][_0x24d304(0xfe)];)_0x36b8e4['pop']();let _0x44dd61=_0x36b8e4[_0x36b8e4['length']-0x1];if(_0x44dd61&&_0x1f0d37[_0x24d304(0xfe)]>_0x44dd61[_0x24d304(0xfe)])throw new w(_0x24d304(0xda),_0x24d304(0xc1),_0x1f0d37['id']);let _0x1b89d3=_0x44dd61?_0x44dd61[_0x24d304(0xbc)]+0x1:0x1;if(_0x1b89d3>_0x33e922)throw new w(_0x24d304(0xea),_0x24d304(0xf5)+_0x33e922,_0x1f0d37['id']);let _0x24d02f={..._0x1f0d37,'depth':_0x1b89d3,'parentId':_0x44dd61==null?void 0x0:_0x44dd61['id'],'anchor':_0x1f0d37[_0x24d304(0xfe)],'children':[]};_0x44dd61?_0x44dd61[_0x24d304(0xe7)][_0x24d304(0x135)](_0x24d02f):_0x44ed8e['push'](_0x24d02f),_0x36b8e4[_0x24d304(0x135)](_0x24d02f);}}return _0x44ed8e;}function O(_0x24fbcc,_0x22ea7a,_0x1b8e28={}){const _0x300130=_0x5e2d;if(_0x22ea7a['start']<0x0||_0x22ea7a[_0x300130(0xef)]>_0x22ea7a[_0x300130(0xfe)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x1b8e28['maxIndex']!=null&&_0x22ea7a[_0x300130(0xfe)]>=_0x1b8e28['maxIndex'])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x32ac7f=_0x24fbcc[_0x300130(0x14c)](_0x47274b=>E(_0x47274b,_0x22ea7a));for(let _0x55657c of _0x32ac7f)if(je(_0x55657c,_0x22ea7a))return{'valid':!0x1,'reason':_0x300130(0xda)};try{D([..._0x24fbcc,_0x22ea7a],_0x1b8e28);}catch(_0x2dc35d){let _0x53fe55=ge(_0x2dc35d);return _0x53fe55===_0x300130(0xea)?{'valid':!0x1,'reason':_0x300130(0xea)}:_0x53fe55==='invalid-range'?{'valid':!0x1,'reason':_0x300130(0xe8)}:{'valid':!0x1,'reason':_0x300130(0xda)};}return{'valid':!0x0};}function ve(_0x2b41ef,_0x5b852e,_0x1cb26d={}){const _0x23a8f5=_0x5e2d;let _0x3dd670=O(_0x2b41ef,_0x5b852e,_0x1cb26d);if(!_0x3dd670[_0x23a8f5(0xe3)]){var _0x271790;throw Error((_0x271790=_0x3dd670[_0x23a8f5(0x139)])==null?_0x23a8f5(0xcb):_0x271790);}return[..._0x2b41ef,_0x5b852e];}function ye(_0x186ed8,_0x578c4b){const _0x39a551=_0x5e2d;let _0xb4a763=_0x578c4b[_0x39a551(0xef)],_0x492440=_0x578c4b[_0x39a551(0xfe)],_0x2a033d=[],_0x1c13a6=!0x0;for(;_0x1c13a6;){_0x1c13a6=!0x1;for(let _0x1326e4 of _0x186ed8)_0x2a033d[_0x39a551(0xf4)](_0x1326e4)||!E(_0x1326e4,_0x578c4b)||!De(_0x1326e4[_0x39a551(0xef)],_0x1326e4[_0x39a551(0xfe)],_0xb4a763,_0x492440)||(_0x2a033d[_0x39a551(0x135)](_0x1326e4),_0xb4a763=Math[_0x39a551(0x141)](_0xb4a763,_0x1326e4[_0x39a551(0xef)]),_0x492440=Math['max'](_0x492440,_0x1326e4['end']),_0x1c13a6=!0x0);}if(_0x2a033d['length']===0x0)return null;let [_0x3afdd7]=[..._0x2a033d]['sort'](ke);return{'mergedOutline':{..._0x3afdd7,'start':_0xb4a763,'end':_0x492440},'mergedOutlines':_0x2a033d};}function be(_0x404220,_0x43b09b){const _0x310cb1=_0x5e2d;return _0x404220[_0x310cb1(0x14c)](_0x300cf7=>E(_0x300cf7,_0x43b09b)?!(_0x300cf7['start']>=_0x43b09b[_0x310cb1(0xef)]&&_0x300cf7[_0x310cb1(0xfe)]<=_0x43b09b['end']):!0x0);}function xe(_0x16676a,_0x432021,_0x34f588,_0x34aefe){const _0x1c48df=_0x5e2d;return Se(_0x16676a[_0x1c48df(0x14c)](_0x2b03c6=>_0x2b03c6[_0x1c48df(0xba)]===_0x432021&&_0x2b03c6[_0x1c48df(0xfd)]===_0x34f588&&_0x2b03c6[_0x1c48df(0xb4)]===_0x34aefe&&_0x2b03c6[_0x1c48df(0x158)])[_0x1c48df(0x121)](_0x35a10c=>({'start':_0x35a10c[_0x1c48df(0xef)],'end':_0x35a10c[_0x1c48df(0xfe)]})));}function Se(_0x3593c8){const _0x24f38a=_0x5e2d;if(_0x3593c8['length']===0x0)return[];let _0x5323df=[..._0x3593c8][_0x24f38a(0xbd)]((_0x5d2c73,_0x15acfa)=>_0x5d2c73[_0x24f38a(0xef)]-_0x15acfa[_0x24f38a(0xef)]||_0x5d2c73[_0x24f38a(0xfe)]-_0x15acfa[_0x24f38a(0xfe)]),_0x4f0fd2=[];for(let _0x1fae79 of _0x5323df){let _0x27d81f=_0x4f0fd2[_0x4f0fd2[_0x24f38a(0xe9)]-0x1];!_0x27d81f||_0x1fae79[_0x24f38a(0xef)]>_0x27d81f[_0x24f38a(0xfe)]+0x1?_0x4f0fd2[_0x24f38a(0x135)]({..._0x1fae79}):_0x27d81f[_0x24f38a(0xfe)]=Math[_0x24f38a(0xfb)](_0x27d81f[_0x24f38a(0xfe)],_0x1fae79['end']);}return _0x4f0fd2;}function k(_0x466288,_0x59b025){const _0x190e75=_0x5e2d;return _0x59b025[_0x190e75(0x151)]<=0x0?_0x466288:M(_0x466288['map'](_0x55577a=>E(_0x55577a,_0x59b025)?_0x59b025[_0x190e75(0x14e)]<=_0x55577a[_0x190e75(0xef)]?{..._0x55577a,'start':_0x55577a['start']+_0x59b025[_0x190e75(0x151)],'end':_0x55577a['end']+_0x59b025[_0x190e75(0x151)]}:_0x55577a['start']<_0x59b025['index']&&_0x59b025[_0x190e75(0x14e)]<=_0x55577a[_0x190e75(0xfe)]?{..._0x55577a,'end':_0x55577a['end']+_0x59b025['count']}:_0x55577a:_0x55577a));}function A(_0x3a6688,_0x4cbb12){const _0x386ba1=_0x5e2d;if(_0x4cbb12[_0x386ba1(0xef)]>_0x4cbb12[_0x386ba1(0xfe)])return _0x3a6688;let _0x4d8d87=_0x4cbb12[_0x386ba1(0xfe)]-_0x4cbb12[_0x386ba1(0xef)]+0x1,_0x315a66=[];for(let _0x263c27 of _0x3a6688){if(!E(_0x263c27,_0x4cbb12)){_0x315a66['push'](_0x263c27);continue;}if(_0x263c27[_0x386ba1(0xfe)]<_0x4cbb12[_0x386ba1(0xef)]){_0x315a66[_0x386ba1(0x135)](_0x263c27);continue;}if(_0x263c27[_0x386ba1(0xef)]>_0x4cbb12[_0x386ba1(0xfe)]){_0x315a66['push']({..._0x263c27,'start':_0x263c27['start']-_0x4d8d87,'end':_0x263c27['end']-_0x4d8d87});continue;}let _0x47572e=Math['max'](_0x263c27['start'],_0x4cbb12['start']),_0x3be70d=Math[_0x386ba1(0x141)](_0x263c27['end'],_0x4cbb12[_0x386ba1(0xfe)]),_0xd99ba0=Math[_0x386ba1(0xfb)](0x0,_0x3be70d-_0x47572e+0x1),_0x461281=_0x263c27[_0x386ba1(0xfe)]-_0x263c27['start']+0x1-_0xd99ba0;if(_0x461281<=0x0)continue;let _0xc1ebae=_0x263c27[_0x386ba1(0xef)]<_0x4cbb12[_0x386ba1(0xef)]?_0x263c27[_0x386ba1(0xef)]:_0x4cbb12['start'];_0x315a66[_0x386ba1(0x135)]({..._0x263c27,'start':_0xc1ebae,'end':_0xc1ebae+_0x461281-0x1});}return M(_0x315a66);}function j(_0x212119,_0x2ba2c2){const _0x468dd0=_0x5e2d;if(_0x2ba2c2[_0x468dd0(0x13b)]>_0x2ba2c2['sourceEnd'])return _0x212119;let _0x19e1e1=[];for(let _0x4e5c68 of _0x212119){if(!E(_0x4e5c68,_0x2ba2c2)){_0x19e1e1['push'](_0x4e5c68);continue;}let _0x5872ce=Ce(_0x4e5c68,_0x2ba2c2);if(_0x5872ce[_0x468dd0(0x109)]===_0x468dd0(0x10f))throw new w(_0x468dd0(0x113),_0x468dd0(0x12e)+_0x4e5c68['id'],_0x4e5c68['id']);_0x19e1e1['push'](_0x5872ce['outline']);}return M(_0x19e1e1);}function Ce(_0xe091e2,_0x3cf11b){const _0x21abef=_0x5e2d;let _0x47cf2d=we(_0x3cf11b[_0x21abef(0x13b)],_0x3cf11b[_0x21abef(0x104)]+0x1,_0x3cf11b['destinationIndex']),_0x406da8=[],_0xbe548c={'start':_0xe091e2[_0x21abef(0xef)],'end':_0xe091e2[_0x21abef(0xfe)]+0x1};for(let _0x57a35b of _0x47cf2d){let _0x237f40=Te(_0xbe548c,_0x57a35b[_0x21abef(0x128)]);_0x237f40&&_0x406da8[_0x21abef(0x135)]({'start':_0x237f40[_0x21abef(0xef)]+_0x57a35b[_0x21abef(0x150)],'end':_0x237f40[_0x21abef(0xfe)]+_0x57a35b[_0x21abef(0x150)]});}let _0x3697d0=Ee(_0x406da8);return _0x3697d0[_0x21abef(0xe9)]===0x1?{'type':'ok','outline':{..._0xe091e2,'start':_0x3697d0[0x0][_0x21abef(0xef)],'end':_0x3697d0[0x0][_0x21abef(0xfe)]-0x1}}:{'type':_0x21abef(0x10f),'outline':_0xe091e2,'ranges':_0x3697d0};}function we(_0x4b06f9,_0x5f1a21,_0x2a3c15){const _0x52ccbc=_0x5e2d;let _0x26c8fc=_0x5f1a21-_0x4b06f9;if(_0x26c8fc<=0x0)throw Error(_0x52ccbc(0x124));return _0x2a3c15>=_0x4b06f9&&_0x2a3c15<=_0x5f1a21?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x2a3c15<_0x4b06f9?[{'range':{'start':0x0,'end':_0x2a3c15},'offset':0x0},{'range':{'start':_0x2a3c15,'end':_0x4b06f9},'offset':_0x26c8fc},{'range':{'start':_0x4b06f9,'end':_0x5f1a21},'offset':_0x2a3c15-_0x4b06f9},{'range':{'start':_0x5f1a21,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x4b06f9},'offset':0x0},{'range':{'start':_0x4b06f9,'end':_0x5f1a21},'offset':_0x2a3c15-_0x5f1a21},{'range':{'start':_0x5f1a21,'end':_0x2a3c15},'offset':-_0x26c8fc},{'range':{'start':_0x2a3c15,'end':T},'offset':0x0}];}function Te(_0x5f3f86,_0x1128bf){const _0xfc5105=_0x5e2d;let _0xa5f7fc=Math[_0xfc5105(0xfb)](_0x5f3f86[_0xfc5105(0xef)],_0x1128bf[_0xfc5105(0xef)]),_0x405fb5=Math['min'](_0x5f3f86[_0xfc5105(0xfe)],_0x1128bf[_0xfc5105(0xfe)]);return _0xa5f7fc>=_0x405fb5?null:{'start':_0xa5f7fc,'end':_0x405fb5};}function Ee(_0x289bfd){const _0x16e594=_0x5e2d;if(_0x289bfd[_0x16e594(0xe9)]===0x0)return[];let _0x1bae6b=[..._0x289bfd][_0x16e594(0xbd)]((_0x27770a,_0x16afe0)=>_0x27770a['start']-_0x16afe0[_0x16e594(0xef)]||_0x27770a[_0x16e594(0xfe)]-_0x16afe0[_0x16e594(0xfe)]),_0x314df5=[];for(let _0x23bfc3 of _0x1bae6b){let _0x27873c=_0x314df5[_0x314df5['length']-0x1];!_0x27873c||_0x23bfc3[_0x16e594(0xef)]>_0x27873c['end']?_0x314df5['push']({..._0x23bfc3}):_0x27873c[_0x16e594(0xfe)]=Math[_0x16e594(0xfb)](_0x27873c[_0x16e594(0xfe)],_0x23bfc3['end']);}return _0x314df5;}function De(_0x1f2538,_0x1851ca,_0x550799,_0x1ebc32){return _0x1851ca+0x1===_0x550799||_0x1ebc32+0x1===_0x1f2538;}function M(_0xe7b050){let _0xf561c4=Oe(_0xe7b050);return D(_0xf561c4),_0xf561c4;}function Oe(_0x4c1bc3){const _0xae3981=_0x5e2d;let _0x4a5d21=new Map();for(let _0x21e427 of _0x4c1bc3){let _0x21ce48=[_0x21e427[_0xae3981(0xba)],_0x21e427[_0xae3981(0xfd)],_0x21e427[_0xae3981(0xb4)],_0x21e427['start'],_0x21e427[_0xae3981(0xfe)]][_0xae3981(0xd8)](':'),_0x6b5b3b=_0x4a5d21[_0xae3981(0x133)](_0x21ce48);if(!_0x6b5b3b){_0x4a5d21[_0xae3981(0x127)](_0x21ce48,_0x21e427);continue;}_0x4a5d21['set'](_0x21ce48,{..._0x6b5b3b,'collapsed':_0x6b5b3b[_0xae3981(0x158)]||_0x21e427[_0xae3981(0x158)]});}return Array[_0xae3981(0x130)](_0x4a5d21[_0xae3981(0x11d)]());}function ke(_0x1ac21c,_0x2af3ae){const _0x3f3fd5=_0x5e2d;return _0x1ac21c['unitId']===_0x2af3ae[_0x3f3fd5(0xba)]?_0x1ac21c[_0x3f3fd5(0xfd)]===_0x2af3ae[_0x3f3fd5(0xfd)]?_0x1ac21c[_0x3f3fd5(0xb4)]===_0x2af3ae[_0x3f3fd5(0xb4)]?_0x1ac21c[_0x3f3fd5(0xef)]===_0x2af3ae[_0x3f3fd5(0xef)]?_0x2af3ae[_0x3f3fd5(0xfe)]-_0x1ac21c[_0x3f3fd5(0xfe)]:_0x1ac21c[_0x3f3fd5(0xef)]-_0x2af3ae['start']:_0x1ac21c[_0x3f3fd5(0xb4)][_0x3f3fd5(0xc7)](_0x2af3ae[_0x3f3fd5(0xb4)]):_0x1ac21c[_0x3f3fd5(0xfd)][_0x3f3fd5(0xc7)](_0x2af3ae[_0x3f3fd5(0xfd)]):_0x1ac21c[_0x3f3fd5(0xba)][_0x3f3fd5(0xc7)](_0x2af3ae[_0x3f3fd5(0xba)]);}function Ae(_0x34b8d8){const _0x4d2943=_0x5e2d;if(_0x34b8d8[_0x4d2943(0xef)]>_0x34b8d8['end'])throw new w(_0x4d2943(0xe8),_0x4d2943(0xe5),_0x34b8d8['id']);}function je(_0x44010f,_0x1250f3){const _0x170049=_0x5e2d;let _0x49600d=_0x44010f[_0x170049(0xef)]<=_0x1250f3[_0x170049(0xfe)]&&_0x1250f3[_0x170049(0xef)]<=_0x44010f[_0x170049(0xfe)],_0x302fe3=_0x44010f[_0x170049(0xef)]<=_0x1250f3['start']&&_0x1250f3['end']<=_0x44010f[_0x170049(0xfe)],_0x26222a=_0x1250f3[_0x170049(0xef)]<=_0x44010f[_0x170049(0xef)]&&_0x44010f[_0x170049(0xfe)]<=_0x1250f3[_0x170049(0xfe)];return _0x49600d&&!_0x302fe3&&!_0x26222a;}function N(_0x4ba985){'@babel/helpers - typeof';const _0x336440=_0x5e2d;return N=typeof Symbol==_0x336440(0x14d)&&typeof Symbol[_0x336440(0xd7)]==_0x336440(0xf9)?function(_0x5a840e){return typeof _0x5a840e;}:function(_0x5f126c){const _0x4b91c4=_0x336440;return _0x5f126c&&typeof Symbol==_0x4b91c4(0x14d)&&_0x5f126c[_0x4b91c4(0x107)]===Symbol&&_0x5f126c!==Symbol[_0x4b91c4(0x13d)]?_0x4b91c4(0xf9):typeof _0x5f126c;},N(_0x4ba985);}function Me(_0x4cee2b,_0x3b574f){const _0x263976=_0x5e2d;if(N(_0x4cee2b)!=_0x263976(0x12d)||!_0x4cee2b)return _0x4cee2b;var _0xe48b93=_0x4cee2b[Symbol['toPrimitive']];if(_0xe48b93!==void 0x0){var _0x2e636c=_0xe48b93[_0x263976(0x126)](_0x4cee2b,_0x3b574f||_0x263976(0x15b));if(N(_0x2e636c)!='object')return _0x2e636c;throw TypeError(_0x263976(0x132));}return(_0x3b574f===_0x263976(0xf8)?String:Number)(_0x4cee2b);}function Ne(_0x439ce7){const _0x10222f=_0x5e2d;var _0x4a3822=Me(_0x439ce7,_0x10222f(0xf8));return N(_0x4a3822)==_0x10222f(0xf9)?_0x4a3822:_0x4a3822+'';}function P(_0x22f5e5,_0x4692d8,_0x31b918){const _0x1f2759=_0x5e2d;return(_0x4692d8=Ne(_0x4692d8))in _0x22f5e5?Object[_0x1f2759(0x112)](_0x22f5e5,_0x4692d8,{'value':_0x31b918,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22f5e5[_0x4692d8]=_0x31b918,_0x22f5e5;}var F=class extends _0x2b4ce4{constructor(..._0x1a2b59){const _0x9a37f7=_0x5e2d;super(..._0x1a2b59),P(this,_0x9a37f7(0x102),new Map()),P(this,_0x9a37f7(0x10e),new _0x41f131()),P(this,_0x9a37f7(0x159),this[_0x9a37f7(0x10e)][_0x9a37f7(0xff)]());}[_0xf79ad6(0x103)](_0x5e0dd2,_0x28bbf0){const _0x20368e=_0xf79ad6;var _0x387bc1,_0xcfa6b7;return[...(_0x387bc1=(_0xcfa6b7=this[_0x20368e(0x102)][_0x20368e(0x133)](_0x5e0dd2))==null?void 0x0:_0xcfa6b7[_0x20368e(0x133)](_0x28bbf0))==null?[]:_0x387bc1];}[_0xf79ad6(0xbb)](_0x372b75){const _0x15993c=_0xf79ad6;let _0x12de10=this['_outlines'][_0x15993c(0x133)](_0x372b75),_0x5d82dc=new Map();return _0x12de10==null||_0x12de10['forEach']((_0x562dc0,_0x4d5e87)=>{const _0x211f36=_0x15993c;_0x5d82dc[_0x211f36(0x127)](_0x4d5e87,[..._0x562dc0]);}),_0x5d82dc;}[_0xf79ad6(0xfa)](_0x4a74da,_0x32bca9,_0x51466f){const _0x5ee27f=_0xf79ad6;this[_0x5ee27f(0x14a)](_0x4a74da)[_0x5ee27f(0x127)](_0x32bca9,[..._0x51466f]),this[_0x5ee27f(0x10e)][_0x5ee27f(0xd9)]({'unitId':_0x4a74da,'subUnitId':_0x32bca9});}[_0xf79ad6(0x120)](_0x1e0207){const _0x45ef5d=_0xf79ad6;this[_0x45ef5d(0x102)][_0x45ef5d(0xf0)](_0x1e0207),this[_0x45ef5d(0x10e)][_0x45ef5d(0xd9)]({'unitId':_0x1e0207});}['serialize'](_0x1516da){const _0x5e60e7=_0xf79ad6;let _0x40256a=this[_0x5e60e7(0x102)][_0x5e60e7(0x133)](_0x1516da),_0x2c03e7={};return _0x40256a==null||_0x40256a[_0x5e60e7(0xce)]((_0x3281cb,_0x4af14f)=>{_0x2c03e7[_0x4af14f]={'outlineList':[..._0x3281cb]};}),_0x2c03e7;}['deserialize'](_0x2948e8,_0x4540e4){const _0x31098a=_0xf79ad6;let _0x398b37=new Map();Object[_0x31098a(0xdf)](_0x4540e4)[_0x31098a(0xce)](([_0x2fafb7,_0xb63660])=>{var _0xe39c09;_0x398b37['set'](_0x2fafb7,[...(_0xe39c09=_0xb63660['outlineList'])==null?[]:_0xe39c09]);}),this[_0x31098a(0x102)][_0x31098a(0x127)](_0x2948e8,_0x398b37),this[_0x31098a(0x10e)]['next']({'unitId':_0x2948e8});}[_0xf79ad6(0xcc)](){const _0x20275a=_0xf79ad6;super['dispose'](),this[_0x20275a(0x102)][_0x20275a(0xfc)](),this[_0x20275a(0x10e)][_0x20275a(0x114)]();}[_0xf79ad6(0x14a)](_0x130cef){const _0x2e3619=_0xf79ad6;let _0x573464=this['_outlines'][_0x2e3619(0x133)](_0x130cef);return _0x573464||(_0x573464=new Map(),this[_0x2e3619(0x102)][_0x2e3619(0x127)](_0x130cef,_0x573464)),_0x573464;}},I=class extends _0x2b4ce4{constructor(..._0x186779){const _0x37206c=_0xf79ad6;super(..._0x186779),P(this,_0x37206c(0xc2),new _0x41f131()),P(this,_0x37206c(0xeb),this[_0x37206c(0xc2)][_0x37206c(0xff)]());}[_0xf79ad6(0x101)](_0x3aa0cb){const _0x3595b8=_0xf79ad6;this[_0x3595b8(0xc2)][_0x3595b8(0xd9)](_0x3aa0cb);}[_0xf79ad6(0xcc)](){const _0x5de7f9=_0xf79ad6;super[_0x5de7f9(0xcc)](),this[_0x5de7f9(0xc2)][_0x5de7f9(0x114)]();}};const L={'id':_0xf79ad6(0xf7),'type':_0x18dec2['MUTATION'],'handler':(_0x94bc6f,_0x55f42a)=>{const _0x3be040=_0xf79ad6;let _0x34ae77=_0x94bc6f[_0x3be040(0x133)](F),_0x3c8e0c=_0x34ae77[_0x3be040(0x103)](_0x55f42a[_0x3be040(0xba)],_0x55f42a[_0x3be040(0xfd)]);return _0x34ae77[_0x3be040(0xfa)](_0x55f42a[_0x3be040(0xba)],_0x55f42a[_0x3be040(0xfd)],ve(_0x3c8e0c,_0x55f42a['outline'])),!0x0;}},R={'id':_0xf79ad6(0xdd),'type':_0x18dec2[_0xf79ad6(0xc0)],'handler':(_0x1df22e,_0x429876)=>{const _0x38d40e=_0xf79ad6;let _0x5be0fd=_0x1df22e[_0x38d40e(0x133)](F),_0x490a40=_0x5be0fd['getOutlines'](_0x429876['unitId'],_0x429876['subUnitId']);return _0x5be0fd['setOutlines'](_0x429876[_0x38d40e(0xba)],_0x429876[_0x38d40e(0xfd)],_0x490a40[_0x38d40e(0x14c)](_0x1de7b8=>_0x1de7b8['id']!==_0x429876[_0x38d40e(0x106)])),!0x0;}};function z(_0x2b8650,_0x2d1967,_0x1166ef){const _0x529973=_0xf79ad6;let _0x50cdd1=Fe(_0x2b8650);return _0x50cdd1?_0x50cdd1[_0x529973(0x143)]({'workbookTypes':[_0x13e67d],'worksheetTypes':[_0x1fdd6b]},_0x2d1967,_0x1166ef):!0x0;}function Pe(_0x74e6df,_0x593b77,_0x259c63){const _0x21f00d=_0xf79ad6;var _0x5d8885;let _0x1be32c=Ie(_0x74e6df);return((_0x5d8885=_0x1be32c==null?void 0x0:_0x1be32c[_0x21f00d(0x10c)])==null?_0x40525e(null):_0x5d8885)['pipe'](_0x3592c4(0x64),_0x9a0bd9(null),_0x5962fd(()=>z(_0x74e6df,_0x593b77,_0x259c63)));}function Fe(_0x68d2ca){const _0x594ad1=_0xf79ad6;if(typeof _0x68d2ca[_0x594ad1(0xf6)]==_0x594ad1(0x14d)&&!_0x68d2ca[_0x594ad1(0xf6)](_0x28e481))return null;try{return _0x68d2ca[_0x594ad1(0x133)](_0x28e481);}catch{return null;}}function Ie(_0x40e9a8){const _0x2cde45=_0xf79ad6;if(typeof _0x40e9a8['has']=='function'&&!_0x40e9a8[_0x2cde45(0xf6)](_0x16012d))return null;try{return _0x40e9a8[_0x2cde45(0x133)](_0x16012d);}catch{return null;}}const B={'id':_0xf79ad6(0x142),'type':_0x18dec2['COMMAND'],'handler':(_0x39d2a5,_0x550e89)=>{const _0x3f3f39=_0xf79ad6;var _0x4c52ee,_0x252533;if(!_0x550e89)return!0x1;let _0x3467fd=_0x1ecbb3(_0x39d2a5['get'](_0x180286),_0x550e89);if(!_0x3467fd)return!0x1;let {unitId:_0x532cea,subUnitId:_0x40090f,worksheet:_0x1bb555}=_0x3467fd;if(!z(_0x39d2a5,_0x532cea,_0x40090f))return!0x1;let _0xce8810=_0x39d2a5['get'](F),_0x1410d0={'id':_0x3f3f39(0x111)+_0x583be9(0x6),'unitId':_0x532cea,'subUnitId':_0x40090f,'axis':_0x550e89[_0x3f3f39(0xb4)],'start':_0x550e89['start'],'end':_0x550e89['end'],'collapsed':!0x1},_0x318b0e=_0x550e89[_0x3f3f39(0xb4)]==='row'?_0x1bb555[_0x3f3f39(0xd3)]():_0x1bb555[_0x3f3f39(0x155)](),_0xe555d6=_0xce8810[_0x3f3f39(0x103)](_0x532cea,_0x40090f),_0x472197=ye(_0xe555d6,_0x1410d0),_0x5049eb=(_0x4c52ee=_0x472197==null?void 0x0:_0x472197['mergedOutlines'])==null?[]:_0x4c52ee,_0x30de56=(_0x252533=_0x472197==null?void 0x0:_0x472197[_0x3f3f39(0x145)])==null?_0x1410d0:_0x252533,_0x4e061f=O(_0x472197?_0xe555d6['filter'](_0x1a9833=>!_0x5049eb['some'](_0x266876=>_0x266876['id']===_0x1a9833['id'])):_0xe555d6,_0x30de56,{'maxIndex':_0x318b0e});if(!_0x4e061f[_0x3f3f39(0xe3)]){var _0x2de13e;return _0x39d2a5[_0x3f3f39(0x133)](I)[_0x3f3f39(0x101)]({'reason':(_0x2de13e=_0x4e061f[_0x3f3f39(0x139)])==null?'unknown':_0x2de13e,'commandId':B['id'],'unitId':_0x532cea,'subUnitId':_0x40090f,'axis':_0x550e89[_0x3f3f39(0xb4)],'outlineId':_0x30de56['id']}),!0x1;}let _0x4fe463=[..._0x5049eb[_0x3f3f39(0x121)](_0x5efb12=>({'id':R['id'],'params':{'unitId':_0x532cea,'subUnitId':_0x40090f,'outlineId':_0x5efb12['id']}})),{'id':L['id'],'params':{'unitId':_0x532cea,'subUnitId':_0x40090f,'outline':_0x30de56}}],_0x5be752=[{'id':R['id'],'params':{'unitId':_0x532cea,'subUnitId':_0x40090f,'outlineId':_0x30de56['id']}},..._0x5049eb['map'](_0x2b5d35=>({'id':L['id'],'params':{'unitId':_0x532cea,'subUnitId':_0x40090f,'outline':_0x2b5d35}}))];return _0x20280d(_0x4fe463,_0x39d2a5[_0x3f3f39(0x133)](_0x3114b2))[_0x3f3f39(0xbe)]?(_0x39d2a5[_0x3f3f39(0x133)](_0x7d84fa)[_0x3f3f39(0xc4)]({'unitID':_0x532cea,'undoMutations':_0x5be752,'redoMutations':_0x4fe463}),!0x0):!0x1;}},V={'id':_0xf79ad6(0x110),'type':_0x18dec2['MUTATION'],'handler':(_0x20123d,_0x57a8db)=>{const _0x82c007=_0xf79ad6;let _0x3d5bb7=_0x20123d[_0x82c007(0x133)](F),_0x3d11a1=_0x3d5bb7['getOutlines'](_0x57a8db[_0x82c007(0xba)],_0x57a8db[_0x82c007(0xfd)]);return _0x3d5bb7['setOutlines'](_0x57a8db[_0x82c007(0xba)],_0x57a8db['subUnitId'],be(_0x3d11a1,_0x57a8db)),!0x0;}},H={'id':_0xf79ad6(0xc3),'type':_0x18dec2['COMMAND'],'handler':(_0x25ae66,_0x343870)=>{const _0x188838=_0xf79ad6;if(!_0x343870)return!0x1;let _0x97caca=_0x1ecbb3(_0x25ae66[_0x188838(0x133)](_0x180286),_0x343870);if(!_0x97caca)return!0x1;let {unitId:_0x2b096f,subUnitId:_0x4d471f}=_0x97caca;if(!z(_0x25ae66,_0x2b096f,_0x4d471f))return!0x1;let _0x2bc734={'unitId':_0x2b096f,'subUnitId':_0x4d471f,'axis':_0x343870[_0x188838(0xb4)],'start':_0x343870[_0x188838(0xef)],'end':_0x343870[_0x188838(0xfe)]},_0xd948df=_0x25ae66[_0x188838(0x133)](F)[_0x188838(0x103)](_0x2b096f,_0x4d471f)['filter'](_0xdab9a1=>E(_0xdab9a1,_0x2bc734)&&_0xdab9a1['start']>=_0x343870[_0x188838(0xef)]&&_0xdab9a1[_0x188838(0xfe)]<=_0x343870[_0x188838(0xfe)]);if(_0xd948df[_0x188838(0xe9)]===0x0)return _0x25ae66[_0x188838(0x133)](I)[_0x188838(0x101)]({'reason':_0x188838(0x12f),'commandId':H['id'],'unitId':_0x2b096f,'subUnitId':_0x4d471f,'axis':_0x343870[_0x188838(0xb4)]}),!0x1;let _0x53f5c2=[{'id':V['id'],'params':{..._0x2bc734,'removedOutlineIds':_0xd948df[_0x188838(0x121)](_0x3a6f0c=>_0x3a6f0c['id'])}}],_0xf5631d=_0xd948df['map'](_0x18226d=>({'id':L['id'],'params':{'unitId':_0x2b096f,'subUnitId':_0x4d471f,'outline':_0x18226d}}));return _0x20280d(_0x53f5c2,_0x25ae66[_0x188838(0x133)](_0x3114b2))[_0x188838(0xbe)]?(_0x25ae66[_0x188838(0x133)](_0x7d84fa)[_0x188838(0xc4)]({'unitID':_0x2b096f,'undoMutations':_0xf5631d,'redoMutations':_0x53f5c2}),!0x0):!0x1;}},Le={'id':'sheet.command.remove-dimension-outline','type':_0x18dec2[_0xf79ad6(0xc5)],'handler':(_0x590beb,_0x38c267)=>{const _0xfa9f08=_0xf79ad6;if(!_0x38c267)return!0x1;let _0x33b311=_0x1ecbb3(_0x590beb['get'](_0x180286),_0x38c267);if(!_0x33b311)return!0x1;let {unitId:_0xad4cda,subUnitId:_0x14287e}=_0x33b311;if(!z(_0x590beb,_0xad4cda,_0x14287e))return!0x1;let _0x2d62cf=_0x590beb[_0xfa9f08(0x133)](F)[_0xfa9f08(0x103)](_0xad4cda,_0x14287e)[_0xfa9f08(0xd5)](_0x18808a=>_0x18808a['id']===_0x38c267[_0xfa9f08(0x106)]);if(!_0x2d62cf)return!0x1;let _0x5a5583=[{'id':R['id'],'params':{'unitId':_0xad4cda,'subUnitId':_0x14287e,'outlineId':_0x2d62cf['id'],'outline':_0x2d62cf}}],_0x4c4d51=[{'id':L['id'],'params':{'unitId':_0xad4cda,'subUnitId':_0x14287e,'outline':_0x2d62cf}}];return _0x20280d(_0x5a5583,_0x590beb[_0xfa9f08(0x133)](_0x3114b2))[_0xfa9f08(0xbe)]?(_0x590beb[_0xfa9f08(0x133)](_0x7d84fa)[_0xfa9f08(0xc4)]({'unitID':_0xad4cda,'undoMutations':_0x4c4d51,'redoMutations':_0x5a5583}),!0x0):!0x1;}},U={'id':_0xf79ad6(0x116),'type':_0x18dec2[_0xf79ad6(0xc0)],'handler':(_0x31a25a,_0x287ea4)=>{const _0x4b4400=_0xf79ad6;let _0x12741b=_0x31a25a[_0x4b4400(0x133)](F),_0x3997fa=_0x12741b[_0x4b4400(0x103)](_0x287ea4['unitId'],_0x287ea4['subUnitId']),_0x4f9778=_0x3997fa[_0x4b4400(0xd5)](_0x5981c2=>_0x5981c2['id']===_0x287ea4[_0x4b4400(0x106)]);return _0x4f9778&&_0x12741b['setOutlines'](_0x287ea4[_0x4b4400(0xba)],_0x287ea4[_0x4b4400(0xfd)],_0x3997fa['map'](_0x30834e=>_0x30834e[_0x4b4400(0xba)]!==_0x4f9778[_0x4b4400(0xba)]||_0x30834e[_0x4b4400(0xfd)]!==_0x4f9778[_0x4b4400(0xfd)]||_0x30834e[_0x4b4400(0xb4)]!==_0x4f9778[_0x4b4400(0xb4)]||_0x30834e['start']!==_0x4f9778[_0x4b4400(0xef)]||_0x30834e['end']!==_0x4f9778[_0x4b4400(0xfe)]?_0x30834e:{..._0x30834e,'collapsed':_0x287ea4[_0x4b4400(0x158)]})),!0x0;}};function Re(_0x2a75a5,_0x16b4aa,_0x2e9711,_0x47dd19){const _0x158797=_0xf79ad6;return _0x2a75a5==='row'?{'startRow':_0x16b4aa,'endRow':_0x2e9711,'startColumn':0x0,'endColumn':_0x47dd19[_0x158797(0x15a)]()-0x1}:{'startRow':0x0,'endRow':_0x47dd19[_0x158797(0xd3)]()-0x1,'startColumn':_0x16b4aa,'endColumn':_0x2e9711};}function ze(_0x5f579d){const _0x44db54=_0xf79ad6;return _0x5f579d===_0x44db54(0x157)?_0x291e1d['id']:_0x6fc268['id'];}function Be(_0x4f2a56){const _0x393b08=_0xf79ad6;return _0x4f2a56===_0x393b08(0x157)?_0x28e47c['id']:_0x2cbe28['id'];}function Ve(_0x4d8df5,_0x21af2e,_0x25b1bd,_0xc4c306){const _0x377596=_0xf79ad6;let _0x4397d3=_0x21af2e?[Re(_0x4d8df5[_0x377596(0xb4)],_0x4d8df5[_0x377596(0xef)],_0x4d8df5['end'],_0x25b1bd)]:He(_0x4d8df5,_0xc4c306,_0x25b1bd),_0x1a1476=_0x21af2e?ze(_0x4d8df5['axis']):Be(_0x4d8df5[_0x377596(0xb4)]);return[{'id':U['id'],'params':{'unitId':_0x4d8df5[_0x377596(0xba)],'subUnitId':_0x4d8df5[_0x377596(0xfd)],'outlineId':_0x4d8df5['id'],'outline':_0x4d8df5,'collapsed':_0x21af2e}},..._0x4397d3['map'](_0x14da69=>({'id':_0x1a1476,'params':{'unitId':_0x4d8df5[_0x377596(0xba)],'subUnitId':_0x4d8df5[_0x377596(0xfd)],'ranges':[_0x14da69],'dimensionOutlineId':_0x4d8df5['id']}}))];}function He(_0x2c07c0,_0x56a800,_0x547852){const _0x4ce657=_0xf79ad6;let _0x4fa5dc=xe(_0x56a800['map'](_0x33f50d=>Ue(_0x33f50d,_0x2c07c0)?{..._0x33f50d,'collapsed':!0x1}:_0x33f50d),_0x2c07c0[_0x4ce657(0xba)],_0x2c07c0[_0x4ce657(0xfd)],_0x2c07c0[_0x4ce657(0xb4)]);return We({'start':_0x2c07c0[_0x4ce657(0xef)],'end':_0x2c07c0[_0x4ce657(0xfe)]},_0x4fa5dc)[_0x4ce657(0x121)](_0x4d5418=>Re(_0x2c07c0['axis'],_0x4d5418[_0x4ce657(0xef)],_0x4d5418[_0x4ce657(0xfe)],_0x547852));}function Ue(_0x1b485a,_0x1b8192){const _0x2cd64b=_0xf79ad6;return _0x1b485a[_0x2cd64b(0xba)]===_0x1b8192['unitId']&&_0x1b485a[_0x2cd64b(0xfd)]===_0x1b8192[_0x2cd64b(0xfd)]&&_0x1b485a[_0x2cd64b(0xb4)]===_0x1b8192[_0x2cd64b(0xb4)]&&_0x1b485a[_0x2cd64b(0xef)]===_0x1b8192[_0x2cd64b(0xef)]&&_0x1b485a[_0x2cd64b(0xfe)]===_0x1b8192[_0x2cd64b(0xfe)];}function We(_0xc3266e,_0x2f36bd){const _0x5c71a3=_0xf79ad6;let _0x320e12=_0xc3266e[_0x5c71a3(0xef)],_0x16b76c=[];for(let _0x5494a9 of _0x2f36bd)if(!(_0x5494a9[_0x5c71a3(0xfe)]<_0x320e12||_0x5494a9[_0x5c71a3(0xef)]>_0xc3266e[_0x5c71a3(0xfe)])&&(_0x5494a9[_0x5c71a3(0xef)]>_0x320e12&&_0x16b76c[_0x5c71a3(0x135)]({'start':_0x320e12,'end':Math[_0x5c71a3(0x141)](_0x5494a9[_0x5c71a3(0xef)]-0x1,_0xc3266e[_0x5c71a3(0xfe)])}),_0x320e12=Math[_0x5c71a3(0xfb)](_0x320e12,_0x5494a9['end']+0x1),_0x320e12>_0xc3266e[_0x5c71a3(0xfe)]))break;return _0x320e12<=_0xc3266e['end']&&_0x16b76c[_0x5c71a3(0x135)]({'start':_0x320e12,'end':_0xc3266e[_0x5c71a3(0xfe)]}),_0x16b76c;}const Ge={'id':_0xf79ad6(0xb9),'type':_0x18dec2[_0xf79ad6(0xc5)],'handler':(_0x1a19a3,_0x16ba67)=>{const _0x2e5ee5=_0xf79ad6;if(!_0x16ba67)return!0x1;let _0x1adac0=_0x1ecbb3(_0x1a19a3[_0x2e5ee5(0x133)](_0x180286),_0x16ba67);if(!_0x1adac0)return!0x1;let {unitId:_0xd9dd85,subUnitId:_0x324d5f,worksheet:_0x3aa7c2}=_0x1adac0;if(!z(_0x1a19a3,_0xd9dd85,_0x324d5f))return!0x1;let _0x2ca075=_0x1a19a3[_0x2e5ee5(0x133)](F)['getOutlines'](_0xd9dd85,_0x324d5f),_0x30f361=_0x2ca075['find'](_0x4a120b=>_0x4a120b['id']===_0x16ba67[_0x2e5ee5(0x106)]);if(!_0x30f361||_0x30f361[_0x2e5ee5(0x158)]===_0x16ba67[_0x2e5ee5(0x158)])return!0x1;let _0x575fe7=Ve(_0x30f361,_0x16ba67[_0x2e5ee5(0x158)],_0x3aa7c2,_0x2ca075),_0xa0aee4=Ve(_0x30f361,!_0x16ba67[_0x2e5ee5(0x158)],_0x3aa7c2,_0x2ca075);return _0x20280d(_0x575fe7,_0x1a19a3[_0x2e5ee5(0x133)](_0x3114b2))[_0x2e5ee5(0xbe)]?(_0x1a19a3[_0x2e5ee5(0x133)](_0x7d84fa)[_0x2e5ee5(0xc4)]({'unitID':_0xd9dd85,'undoMutations':_0xa0aee4,'redoMutations':_0x575fe7}),!0x0):!0x1;}},W={'id':_0xf79ad6(0x11a),'type':_0x18dec2[_0xf79ad6(0xc0)],'handler':(_0x53e9a0,_0x2b09ee)=>{const _0x4dee48=_0xf79ad6;let _0x3948ae=_0x53e9a0[_0x4dee48(0x133)](F),_0x48c489=Ke(_0x3948ae[_0x4dee48(0x103)](_0x2b09ee['unitId'],_0x2b09ee[_0x4dee48(0xfd)]),_0x2b09ee);return _0x3948ae[_0x4dee48(0xfa)](_0x2b09ee['unitId'],_0x2b09ee[_0x4dee48(0xfd)],_0x48c489),!0x0;}};function Ke(_0x266dd7,_0x13f5ea){const _0xaff0ff=_0xf79ad6;switch(_0x13f5ea[_0xaff0ff(0x109)]){case _0xaff0ff(0x11e):return _0x13f5ea[_0xaff0ff(0x14b)]?qe(_0x266dd7,_0x13f5ea):k(_0x266dd7,_0x13f5ea);case _0xaff0ff(0xf0):return A(_0x266dd7,_0x13f5ea);case _0xaff0ff(0xf2):return j(_0x266dd7,_0x13f5ea);}}function qe(_0x37863c,_0x481b72){const _0x262a68=_0xf79ad6;return[..._0x37863c[_0x262a68(0x14c)](_0x1cc90f=>_0x1cc90f[_0x262a68(0xba)]!==_0x481b72['unitId']||_0x1cc90f[_0x262a68(0xfd)]!==_0x481b72[_0x262a68(0xfd)]||_0x1cc90f[_0x262a68(0xb4)]!==_0x481b72['axis']),..._0x481b72['restoreOutlines']];}const G=_0xf79ad6(0xca);var Je=_0xf79ad6(0x14f),Ye='1.0.0-alpha.3';const Xe={};function K(_0xd981e5,_0x26e589){return function(_0x3e3426,_0x1cf453){_0x26e589(_0x3e3426,_0x1cf453,_0xd981e5);};}function q(_0x4a1ced,_0x3d058a,_0x465e7a,_0x269bc5){const _0x349fc9=_0xf79ad6;var _0x4940e1=arguments[_0x349fc9(0xe9)],_0x4228b9=_0x4940e1<0x3?_0x3d058a:_0x269bc5===null?_0x269bc5=Object[_0x349fc9(0x149)](_0x3d058a,_0x465e7a):_0x269bc5,_0xf2d697;if(typeof Reflect==_0x349fc9(0x12d)&&typeof Reflect[_0x349fc9(0x12a)]==_0x349fc9(0x14d))_0x4228b9=Reflect['decorate'](_0x4a1ced,_0x3d058a,_0x465e7a,_0x269bc5);else{for(var _0x512bf7=_0x4a1ced['length']-0x1;_0x512bf7>=0x0;_0x512bf7--)(_0xf2d697=_0x4a1ced[_0x512bf7])&&(_0x4228b9=(_0x4940e1<0x3?_0xf2d697(_0x4228b9):_0x4940e1>0x3?_0xf2d697(_0x3d058a,_0x465e7a,_0x4228b9):_0xf2d697(_0x3d058a,_0x465e7a))||_0x4228b9);}return _0x4940e1>0x3&&_0x4228b9&&Object[_0x349fc9(0x112)](_0x3d058a,_0x465e7a,_0x4228b9),_0x4228b9;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let Y=class extends _0x2b4ce4{constructor(_0x46823b,_0x370854,_0x3e5bb9,_0x422975){const _0xeb1af1=_0xf79ad6;super(),this[_0xeb1af1(0xb8)]=_0x46823b,this['_sheetInterceptorService']=_0x370854,this[_0xeb1af1(0x123)]=_0x3e5bb9,this[_0xeb1af1(0x10b)]=_0x422975,this['_initCommandInterceptor']();}[_0xf79ad6(0x108)](){const _0x439576=_0xf79ad6;this[_0x439576(0xb6)](this[_0x439576(0xd4)]['interceptCommand']({'getMutations':_0x3d90db=>Ze(_0x3d90db,(_0x3a1dd0,_0x14c444)=>this[_0x439576(0x123)][_0x439576(0x103)](_0x3a1dd0,_0x14c444),this['_getCommandScope'](_0x3d90db[_0x439576(0xcf)]),_0x4266af=>this[_0x439576(0x10b)][_0x439576(0x101)](_0x4266af))}));}[_0xf79ad6(0xc8)](_0x41d98e){const _0x43261c=_0xf79ad6;let _0xf744ef=_0x41d98e,_0x47a238=_0xf744ef!=null&&_0xf744ef[_0x43261c(0xba)]?this[_0x43261c(0xb8)][_0x43261c(0x105)](_0xf744ef[_0x43261c(0xba)]):this['_univerInstanceService'][_0x43261c(0x10a)](_0x530385[_0x43261c(0x13a)]);if(!_0x47a238)return;let _0x55ad87=_0xf744ef!=null&&_0xf744ef['subUnitId']?_0x47a238[_0x43261c(0x12b)](_0xf744ef[_0x43261c(0xfd)]):_0x47a238[_0x43261c(0x118)]();if(_0x55ad87)return{'unitId':_0x47a238[_0x43261c(0x129)](),'subUnitId':_0x55ad87[_0x43261c(0x152)]()};}};Y=q([K(0x0,_0x180286),K(0x1,_0x440bb6(_0x1155e7)),K(0x2,_0x440bb6(F)),K(0x3,_0x440bb6(I))],Y);function Ze(_0x400614,_0x560205,_0x20c337,_0x44fe3d){const _0x2fd9e1=_0xf79ad6;let _0x36a825=$e(_0x400614,_0x20c337);if(!_0x36a825)return it();let _0x4a57d9=_0x560205(_0x36a825['unitId'],_0x36a825[_0x2fd9e1(0xfd)]);if(!_0x4a57d9[_0x2fd9e1(0x11c)](_0x80fd6a=>_0x80fd6a['axis']===_0x36a825[_0x2fd9e1(0xb4)]))return it();Qe(_0x4a57d9,_0x36a825,_0x400614['id'],_0x44fe3d);let _0x86327d=nt(_0x36a825,_0x4a57d9);return{'redos':[{'id':W['id'],'params':_0x36a825}],'undos':[{'id':W['id'],'params':_0x86327d}],'preRedos':[],'preUndos':[]};}function Qe(_0x16384b,_0x46ab76,_0x2087de,_0x4ea776){const _0x115526=_0xf79ad6;try{switch(_0x46ab76[_0x115526(0x109)]){case _0x115526(0x11e):k(_0x16384b,_0x46ab76);break;case _0x115526(0xf0):A(_0x16384b,_0x46ab76);break;case _0x115526(0xf2):j(_0x16384b,_0x46ab76);break;}}catch(_0x2df247){throw _0x4ea776==null||_0x4ea776({'reason':ge(_0x2df247),'commandId':_0x2087de,'unitId':_0x46ab76['unitId'],'subUnitId':_0x46ab76[_0x115526(0xfd)],'axis':_0x46ab76[_0x115526(0xb4)],'outlineId':_e(_0x2df247)}),new _0x579787(_0x2df247 instanceof Error?_0x2df247[_0x115526(0xd2)]:_0x115526(0x144));}}function $e(_0x4dcfa0,_0x100190){const _0x3d28bf=_0xf79ad6;switch(_0x4dcfa0['id']){case _0x253bb9['id']:return et(_0x4dcfa0[_0x3d28bf(0xcf)],'row',_0x100190);case _0x54e6a9['id']:return et(_0x4dcfa0[_0x3d28bf(0xcf)],'column',_0x100190);case _0x288350['id']:return X(_0x4dcfa0[_0x3d28bf(0xcf)],_0x3d28bf(0x157),_0x100190);case _0x33a2b6['id']:return X(_0x4dcfa0[_0x3d28bf(0xcf)],_0x3d28bf(0x146),_0x100190);case _0x2a6525['id']:return tt(_0x4dcfa0[_0x3d28bf(0xcf)],'row',_0x100190);case _0x48d3f1['id']:return tt(_0x4dcfa0['params'],'column',_0x100190);default:return null;}}function et(_0x3cfba3,_0x5a49a7,_0x4f000b){const _0x69a9c3=_0xf79ad6;let _0x46213e=Z(_0x3cfba3,_0x4f000b);if(!(_0x3cfba3!=null&&_0x3cfba3['range'])||!_0x46213e)return null;let _0x3b7ee9=_0x5a49a7==='row'?_0x3cfba3[_0x69a9c3(0x128)]['startRow']:_0x3cfba3[_0x69a9c3(0x128)][_0x69a9c3(0xde)],_0x2aeb8c=_0x5a49a7===_0x69a9c3(0x157)?_0x3cfba3[_0x69a9c3(0x128)][_0x69a9c3(0x13e)]:_0x3cfba3['range'][_0x69a9c3(0x153)];return{..._0x46213e,'axis':_0x5a49a7,'type':_0x69a9c3(0x11e),'index':_0x3b7ee9,'count':_0x2aeb8c-_0x3b7ee9+0x1};}function _0x4de7(){const _0x68e73b=['SHEET_OUTLINE_PLUGIN','invalid-dimension-outline','dispose','fromRange','forEach','params','3874172mEEyWh','CROSSING','message','getRowCount','_sheetInterceptorService','find','deserialize','iterator','join','next','crossing','4703616iiFKfP','ROW','sheet.mutation.remove-dimension-outline','startColumn','entries','toRange','1313050vCrcdp','stringify','valid','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','Invalid\x20outline\x20range','_injector','children','invalid-range','length','max-depth','error$','registerPluginResource','_initRegisterCommand','UNKNOWN','start','delete','split\x20dimension\x20outline','move','serialize','includes','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','has','sheet.mutation.add-dimension-outline','string','symbol','setOutlines','max','clear','subUnitId','end','asObservable','out-of-bounds','emit','_outlines','getOutlines','sourceEnd','getUniverSheetInstance','outlineId','constructor','_initCommandInterceptor','type','getCurrentUnitOfType','_sheetsOutlineErrorService','permissionPointUpdate$','startRow','_change$','split','sheet.mutation.clear-dimension-outlines','dimension-outline-','defineProperty','move-splits-outline','complete','OUT_OF_BOUNDS','sheet.mutation.set-dimension-outline-collapsed','DimensionOutlineError','getActiveSheet','destinationIndex','sheet.mutation.transform-dimension-outlines','sheets-outline.config','some','values','insert','onStarting','removeUnit','map','Crossing','_sheetsOutlineModel','Invalid\x20dimension\x20outline\x20move\x20source\x20range','undos','call','set','range','getUnitId','decorate','getSheetBySheetId','parse','object','Move\x20would\x20split\x20dimension\x20outline:\x20','clear-range-not-contain-outline','from','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','get','4142810bQGBTp','push','4302684MfHuNB','6GcFRlY','_configService','reason','UNIVER_SHEET','sourceStart','maxDepth','prototype','endRow','_resourceManagerService','redos','min','sheet.command.add-dimension-outline','permissionCheckWithoutRange','Invalid\x20dimension\x20outline\x20mutation','mergedOutline','column','add','version','getOwnPropertyDescriptor','_ensureUnitOutlines','restoreOutlines','filter','function','index','@univerjs-pro/sheets-outline','offset','count','getSheetId','endColumn','INVALID_RANGE','getColumnCount','packageName','row','collapsed','change$','getMaxColumns','default','4hpXAYt','axis','unknown','disposeWithMe','256209JJOawu','_univerInstanceService','sheet.command.set-dimension-outline-collapsed','unitId','getUnitOutlines','depth','sort','result','_commandService','MUTATION','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_error$','sheet.command.clear-dimension-outlines','pushUndoRedo','COMMAND','984774VILYXm','localeCompare','_getCommandScope','name'];_0x4de7=function(){return _0x68e73b;};return _0x4de7();}function X(_0x23a7a7,_0x559e39,_0x41ca02){const _0xc04010=_0xf79ad6;let _0xe58ae5=Z(_0x23a7a7,_0x41ca02);if(!(_0x23a7a7!=null&&_0x23a7a7[_0xc04010(0x128)])||!_0xe58ae5)return null;let _0x5d35ce=_0x559e39===_0xc04010(0x157)?_0x23a7a7[_0xc04010(0x128)]['startRow']:_0x23a7a7['range'][_0xc04010(0xde)],_0x339b91=_0x559e39===_0xc04010(0x157)?_0x23a7a7[_0xc04010(0x128)][_0xc04010(0x13e)]:_0x23a7a7[_0xc04010(0x128)][_0xc04010(0x153)];return{..._0xe58ae5,'axis':_0x559e39,'type':'delete','start':_0x5d35ce,'end':_0x339b91};}function tt(_0x8f432b,_0x5d7b2b,_0x1921c7){const _0x561086=_0xf79ad6;let _0x11a5d7=Z(_0x8f432b,_0x1921c7);if(!(_0x8f432b!=null&&_0x8f432b[_0x561086(0xcd)])||!_0x8f432b[_0x561086(0xe0)]||!_0x11a5d7)return null;let _0x4e2138=_0x5d7b2b===_0x561086(0x157)?_0x8f432b[_0x561086(0xcd)]['startRow']:_0x8f432b[_0x561086(0xcd)][_0x561086(0xde)],_0x341779=_0x5d7b2b===_0x561086(0x157)?_0x8f432b[_0x561086(0xcd)][_0x561086(0x13e)]:_0x8f432b['fromRange'][_0x561086(0x153)],_0x34dd7d=_0x5d7b2b===_0x561086(0x157)?_0x8f432b[_0x561086(0xe0)][_0x561086(0x10d)]:_0x8f432b[_0x561086(0xe0)][_0x561086(0xde)];return{..._0x11a5d7,'axis':_0x5d7b2b,'type':_0x561086(0xf2),'sourceStart':_0x4e2138,'sourceEnd':_0x341779,'destinationIndex':_0x34dd7d};}function nt(_0x1334f9,_0x2022ec){const _0x38c260=_0xf79ad6;switch(_0x1334f9[_0x38c260(0x109)]){case _0x38c260(0x11e):return{'unitId':_0x1334f9[_0x38c260(0xba)],'subUnitId':_0x1334f9['subUnitId'],'axis':_0x1334f9[_0x38c260(0xb4)],'type':_0x38c260(0xf0),'start':_0x1334f9[_0x38c260(0x14e)],'end':_0x1334f9['index']+_0x1334f9[_0x38c260(0x151)]-0x1};case _0x38c260(0xf0):return{'unitId':_0x1334f9[_0x38c260(0xba)],'subUnitId':_0x1334f9[_0x38c260(0xfd)],'axis':_0x1334f9[_0x38c260(0xb4)],'type':_0x38c260(0x11e),'index':_0x1334f9['start'],'count':_0x1334f9['end']-_0x1334f9[_0x38c260(0xef)]+0x1,'restoreOutlines':_0x2022ec[_0x38c260(0x14c)](_0x52db91=>_0x52db91['unitId']===_0x1334f9[_0x38c260(0xba)]&&_0x52db91['subUnitId']===_0x1334f9['subUnitId']&&_0x52db91[_0x38c260(0xb4)]===_0x1334f9[_0x38c260(0xb4)])};case _0x38c260(0xf2):return rt(_0x1334f9);}}function rt(_0x46897c){const _0x2fe56e=_0xf79ad6;let _0x499091=_0x46897c[_0x2fe56e(0x104)]-_0x46897c[_0x2fe56e(0x13b)]+0x1;return _0x46897c['destinationIndex']>=_0x46897c[_0x2fe56e(0x13b)]&&_0x46897c[_0x2fe56e(0x119)]<=_0x46897c[_0x2fe56e(0x104)]+0x1?{..._0x46897c}:_0x46897c[_0x2fe56e(0x119)]>_0x46897c['sourceEnd']+0x1?{..._0x46897c,'sourceStart':_0x46897c[_0x2fe56e(0x119)]-_0x499091,'sourceEnd':_0x46897c[_0x2fe56e(0x119)]-0x1,'destinationIndex':_0x46897c[_0x2fe56e(0x13b)]}:{..._0x46897c,'sourceStart':_0x46897c[_0x2fe56e(0x119)],'sourceEnd':_0x46897c['destinationIndex']+_0x499091-0x1,'destinationIndex':_0x46897c[_0x2fe56e(0x104)]+0x1};}function Z(_0x363752,_0x180659){const _0xcc575a=_0xf79ad6;var _0x15bbce,_0x5ef10b;let _0x121451=(_0x15bbce=_0x363752==null?void 0x0:_0x363752[_0xcc575a(0xba)])==null?_0x180659==null?void 0x0:_0x180659[_0xcc575a(0xba)]:_0x15bbce,_0x55795a=(_0x5ef10b=_0x363752==null?void 0x0:_0x363752[_0xcc575a(0xfd)])==null?_0x180659==null?void 0x0:_0x180659[_0xcc575a(0xfd)]:_0x5ef10b;return _0x121451&&_0x55795a?{'unitId':_0x121451,'subUnitId':_0x55795a}:null;}function _0x5e2d(_0x39bafa,_0x4562b5){_0x39bafa=_0x39bafa-0xb3;const _0x4de7c6=_0x4de7();let _0x5e2d4e=_0x4de7c6[_0x39bafa];return _0x5e2d4e;}function it(){const _0x435868=_0xf79ad6;var _0x4d9e74,_0x3c937c;return{'redos':[...J[_0x435868(0x140)]],'undos':[...J[_0x435868(0x125)]],'preRedos':[...(_0x4d9e74=J['preRedos'])==null?[]:_0x4d9e74],'preUndos':[...(_0x3c937c=J['preUndos'])==null?[]:_0x3c937c]};}let Q=class extends _0x2b4ce4{constructor(_0xdea113,_0x2b3944){super(),this['_resourceManagerService']=_0xdea113,this['_sheetsOutlineModel']=_0x2b3944,this['_initResource']();}['_initResource'](){const _0x36517=_0xf79ad6;this[_0x36517(0xb6)](this[_0x36517(0x13f)][_0x36517(0xec)]({'pluginName':G,'businesses':[_0x530385['UNIVER_SHEET']],'toJson':_0x372bc3=>JSON[_0x36517(0xe2)](this[_0x36517(0x123)][_0x36517(0xf3)](_0x372bc3)),'parseJson':_0x430263=>JSON[_0x36517(0x12c)](_0x430263),'onLoad':(_0x89d86d,_0x247c9e)=>this[_0x36517(0x123)][_0x36517(0xd6)](_0x89d86d,_0x247c9e),'onUnLoad':_0x1eaef8=>this[_0x36517(0x123)][_0x36517(0x120)](_0x1eaef8)}));}};Q=q([K(0x0,_0x25a52e),K(0x1,_0x440bb6(F))],Q);let $=class extends _0x455c7c{constructor(_0x58c489=Xe,_0x3e7a4a,_0x46106c,_0x419e6d){const _0x30fffe=_0xf79ad6;super(),this['_config']=_0x58c489,this[_0x30fffe(0xe6)]=_0x3e7a4a,this['_commandService']=_0x46106c,this[_0x30fffe(0x138)]=_0x419e6d;let {..._0xbac8ee}=_0x18d11e({},Xe,this['_config']);this[_0x30fffe(0x138)][_0x30fffe(0x131)](_0x30fffe(0x11b),_0xbac8ee);}[_0xf79ad6(0x11f)](){const _0x103f3f=_0xf79ad6;this[_0x103f3f(0xe6)][_0x103f3f(0x147)]([F]),this[_0x103f3f(0xe6)]['add']([I]),this[_0x103f3f(0xe6)][_0x103f3f(0x147)]([Q]),this['_injector']['add']([Y]),this[_0x103f3f(0xed)](),this[_0x103f3f(0xe6)][_0x103f3f(0x133)](F),this[_0x103f3f(0xe6)][_0x103f3f(0x133)](I),this[_0x103f3f(0xe6)]['get'](Q),this[_0x103f3f(0xe6)][_0x103f3f(0x133)](Y);}[_0xf79ad6(0xed)](){const _0x4ede81=_0xf79ad6;[B,Le,Ge,H][_0x4ede81(0xce)](_0x2ced04=>{const _0x4b047f=_0x4ede81;this[_0x4b047f(0xb6)](this[_0x4b047f(0xbf)]['registerCommand'](_0x2ced04));}),[L,R,U,V,W][_0x4ede81(0xce)](_0xaba253=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0xaba253));});}};P($,'pluginName',G),P($,_0xf79ad6(0x156),Je),P($,_0xf79ad6(0x148),Ye),P($,_0xf79ad6(0x109),_0x530385[_0xf79ad6(0x13a)]),$=q([_0x1a222d(_0x2ce280),K(0x1,_0x440bb6(_0x424ff6)),K(0x2,_0x3114b2),K(0x3,_0x565eac)],$);export{B as AddDimensionOutlineCommand,L as AddDimensionOutlineMutation,H as ClearDimensionOutlinesCommand,V as ClearDimensionOutlinesMutation,me as DimensionOutlineAxis,he as DimensionOutlineErrorReason,Le as RemoveDimensionOutlineCommand,R as RemoveDimensionOutlineMutation,G as SHEET_OUTLINE_PLUGIN,Ge as SetDimensionOutlineCollapsedCommand,U as SetDimensionOutlineCollapsedMutation,I as SheetsOutlineErrorService,F as SheetsOutlineModel,W as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,D as buildDimensionOutlineTree,O as canAddDimensionOutline,Pe as getDimensionOutlineViewPermission$,z as hasDimensionOutlineViewPermission,A as transformOutlinesByDelete,k as transformOutlinesByInsert,j as transformOutlinesByMove};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export { AddDimensionOutlineCommand } from './commands/commands/add-dimension-outline.command';
|
|
2
|
-
export type { IAddDimensionOutlineCommandParams } from './commands/commands/add-dimension-outline.command';
|
|
3
2
|
export { ClearDimensionOutlinesCommand } from './commands/commands/clear-dimension-outlines.command';
|
|
4
|
-
export
|
|
5
|
-
export { getDimensionOutlineViewPermission$, hasDimensionOutlineViewPermission } from './commands/commands/permission';
|
|
3
|
+
export { getDimensionOutlineViewPermission$, hasDimensionOutlineViewPermission, } from './commands/commands/permission';
|
|
6
4
|
export { RemoveDimensionOutlineCommand } from './commands/commands/remove-dimension-outline.command';
|
|
7
|
-
export type { IRemoveDimensionOutlineCommandParams } from './commands/commands/remove-dimension-outline.command';
|
|
8
5
|
export { SetDimensionOutlineCollapsedCommand } from './commands/commands/set-dimension-outline-collapsed.command';
|
|
9
|
-
export type { ISetDimensionOutlineCollapsedCommandParams } from './commands/commands/set-dimension-outline-collapsed.command';
|
|
10
6
|
export { AddDimensionOutlineMutation } from './commands/mutations/add-dimension-outline.mutation';
|
|
11
7
|
export type { IAddDimensionOutlineMutationParams } from './commands/mutations/add-dimension-outline.mutation';
|
|
12
8
|
export { ClearDimensionOutlinesMutation } from './commands/mutations/clear-dimension-outlines.mutation';
|
|
@@ -14,16 +10,13 @@ export type { IClearDimensionOutlinesMutationParams } from './commands/mutations
|
|
|
14
10
|
export { RemoveDimensionOutlineMutation } from './commands/mutations/remove-dimension-outline.mutation';
|
|
15
11
|
export type { IRemoveDimensionOutlineMutationParams } from './commands/mutations/remove-dimension-outline.mutation';
|
|
16
12
|
export { SetDimensionOutlineCollapsedMutation } from './commands/mutations/set-dimension-outline-collapsed.mutation';
|
|
17
|
-
export type { ISetDimensionOutlineCollapsedMutationParams } from './commands/mutations/set-dimension-outline-collapsed.mutation';
|
|
13
|
+
export type { ISetDimensionOutlineCollapsedMutationParams, } from './commands/mutations/set-dimension-outline-collapsed.mutation';
|
|
18
14
|
export { TransformDimensionOutlinesMutation } from './commands/mutations/transform-dimension-outlines.mutation';
|
|
19
|
-
export type { ITransformDimensionOutlinesMutationParams } from './commands/mutations/transform-dimension-outlines.mutation';
|
|
20
|
-
export {
|
|
15
|
+
export type { ITransformDimensionOutlinesMutationParams, } from './commands/mutations/transform-dimension-outlines.mutation';
|
|
16
|
+
export { buildDimensionOutlineTree, canAddDimensionOutline, transformOutlinesByDelete, transformOutlinesByInsert, transformOutlinesByMove, } from './common/algorithm';
|
|
21
17
|
export { SHEET_OUTLINE_PLUGIN } from './common/const';
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export type { ICanAddDimensionOutlineResult, IDimensionOutline, IDimensionOutlineInsertRange, IDimensionOutlineMoveRange, IDimensionOutlineRange, IDimensionOutlineViewModel, IHiddenRange, IOutlineMutationError, ISheetDimensionOutlineResource, ISheetsOutlineResource, } from './common/type';
|
|
25
|
-
export { SHEETS_OUTLINE_PLUGIN_CONFIG_KEY } from './config/config';
|
|
26
|
-
export type { IUniverSheetsOutlineConfig } from './config/config';
|
|
18
|
+
export { DimensionOutlineAxis, DimensionOutlineErrorReason, } from './common/type';
|
|
19
|
+
export type { IDimensionOutline, IDimensionOutlineViewModel, IOutlineMutationError, } from './common/type';
|
|
27
20
|
export { SheetsOutlineModel } from './models/sheets-outline-model';
|
|
28
21
|
export { UniverSheetsOutlinePlugin } from './plugin';
|
|
29
22
|
export { SheetsOutlineErrorService } from './services/sheets-outline-error.service';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { IUniverSheetsOutlineConfig } from './config/config';
|
|
2
|
-
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsOutlinePlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
6
6
|
private readonly _commandService;
|
|
7
|
+
private readonly _configService;
|
|
7
8
|
static pluginName: string;
|
|
8
9
|
static packageName: string;
|
|
9
10
|
static version: string;
|
|
10
11
|
static type: UniverInstanceType;
|
|
11
|
-
constructor(_config: IUniverSheetsOutlineConfig, _injector: Injector, _commandService: ICommandService);
|
|
12
|
+
constructor(_config: Partial<IUniverSheetsOutlineConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
12
13
|
onStarting(): void;
|
|
13
14
|
private _initRegisterCommand;
|
|
14
15
|
}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x355c(_0x3014ca,_0x911f2b){_0x3014ca=_0x3014ca-0xd2;var _0x3f7ae2=_0x3f7a();var _0x355ccb=_0x3f7ae2[_0x3014ca];return _0x355ccb;}function _0x3f7a(){var _0x25bebb=['getUnitId','syncExecuteCommand','8781580JUJHiY','filter','ClearDimensionOutlinesCommand','@univerjs/core/facade','UniverCoreFacade','getDimensionOutlines','FEnum','amd','addColumnOutline','22MkLYzI','removeDimensionOutline','1385312NAVLSV','setDimensionOutlineCollapsed','@univerjs-pro/sheets-outline','_injector','object','function','_worksheet','getSheetId','extend','5362bSUsJQ','AddDimensionOutlineCommand','12249tqpkqT','RemoveDimensionOutlineCommand','373140wjrMis','713579nuFSXl','@univerjs/sheets/facade','getOutlines','_addDimensionOutline','10diteJz','2679128sMvIFm','SheetsOutlineModel','_commandService','axis','DimensionOutlineAxis','UniverSheetsFacade','102lTgTpN','690QrSwZR','get','UniverProSheetsOutline','_workbook','DimensionOutlineErrorReason'];_0x3f7a=function(){return _0x25bebb;};return _0x3f7a();}(function(_0x48640c,_0x29b009){var _0x1970fc=_0x355c,_0x1658ca=_0x48640c();while(!![]){try{var _0xe12fbf=parseInt(_0x1970fc(0xd3))/0x1+-parseInt(_0x1970fc(0xde))/0x2*(parseInt(_0x1970fc(0xfc))/0x3)+-parseInt(_0x1970fc(0xd8))/0x4*(parseInt(_0x1970fc(0xd7))/0x5)+-parseInt(_0x1970fc(0xdf))/0x6*(parseInt(_0x1970fc(0xfa))/0x7)+-parseInt(_0x1970fc(0xf1))/0x8+parseInt(_0x1970fc(0xd2))/0x9+-parseInt(_0x1970fc(0xe6))/0xa*(-parseInt(_0x1970fc(0xef))/0xb);if(_0xe12fbf===_0x29b009)break;else _0x1658ca['push'](_0x1658ca['shift']());}catch(_0x24d69b){_0x1658ca['push'](_0x1658ca['shift']());}}}(_0x3f7a,0xab760),function(_0x33ec39,_0x1ee87f){var _0x5b7ec3=_0x355c;typeof exports==_0x5b7ec3(0xf5)&&typeof module<'u'?_0x1ee87f(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x5b7ec3(0xf6)&&define[_0x5b7ec3(0xed)]?define([_0x5b7ec3(0xf3),_0x5b7ec3(0xe9),_0x5b7ec3(0xd4)],_0x1ee87f):(_0x33ec39=typeof globalThis<'u'?globalThis:_0x33ec39||self,_0x1ee87f(_0x33ec39[_0x5b7ec3(0xe1)],_0x33ec39[_0x5b7ec3(0xea)],_0x33ec39[_0x5b7ec3(0xdd)]));}(this,function(_0x5d4ac6,_0x270cc8,_0xa89cef){var _0x3f3c2e=_0x355c,_0x4f363f=class extends _0x270cc8[_0x3f3c2e(0xec)]{get['DimensionOutlineAxis'](){return _0x5d4ac6['DimensionOutlineAxis'];}get['DimensionOutlineErrorReason'](){var _0x21d4a6=_0x3f3c2e;return _0x5d4ac6[_0x21d4a6(0xe3)];}};_0x270cc8[_0x3f3c2e(0xec)][_0x3f3c2e(0xf9)](_0x4f363f);var _0x229242=class extends _0xa89cef['FWorksheet']{['addRowOutline'](_0x41af63,_0x3fa660){var _0x264ae9=_0x3f3c2e;return this[_0x264ae9(0xd6)](_0x5d4ac6[_0x264ae9(0xdc)]['ROW'],_0x41af63,_0x3fa660);}[_0x3f3c2e(0xee)](_0x5c27f1,_0x5a3d5b){var _0xd06720=_0x3f3c2e;return this[_0xd06720(0xd6)](_0x5d4ac6['DimensionOutlineAxis']['COLUMN'],_0x5c27f1,_0x5a3d5b);}[_0x3f3c2e(0xf0)](_0x20837b){var _0x5c8b35=_0x3f3c2e;return this[_0x5c8b35(0xda)]['syncExecuteCommand'](_0x5d4ac6[_0x5c8b35(0xfd)]['id'],{'unitId':this[_0x5c8b35(0xe2)][_0x5c8b35(0xe4)](),'subUnitId':this[_0x5c8b35(0xf7)][_0x5c8b35(0xf8)](),'outlineId':_0x20837b}),this;}[_0x3f3c2e(0xf2)](_0x17a8c1,_0x29049b){var _0xf87a75=_0x3f3c2e;return this[_0xf87a75(0xda)][_0xf87a75(0xe5)](_0x5d4ac6['SetDimensionOutlineCollapsedCommand']['id'],{'unitId':this['_workbook'][_0xf87a75(0xe4)](),'subUnitId':this[_0xf87a75(0xf7)][_0xf87a75(0xf8)](),'outlineId':_0x17a8c1,'collapsed':_0x29049b}),this;}['clearDimensionOutlines'](_0x3357df,_0x4f4c30,_0x2c85cf){var _0x185d3b=_0x3f3c2e;return this[_0x185d3b(0xda)][_0x185d3b(0xe5)](_0x5d4ac6[_0x185d3b(0xe8)]['id'],{'unitId':this[_0x185d3b(0xe2)][_0x185d3b(0xe4)](),'subUnitId':this[_0x185d3b(0xf7)][_0x185d3b(0xf8)](),'axis':_0x3357df,'start':_0x4f4c30,'end':_0x2c85cf}),this;}[_0x3f3c2e(0xeb)](_0x63c5e9){var _0x2e91f7=_0x3f3c2e;let _0x33563d=this[_0x2e91f7(0xf4)][_0x2e91f7(0xe0)](_0x5d4ac6[_0x2e91f7(0xd9)])[_0x2e91f7(0xd5)](this[_0x2e91f7(0xe2)][_0x2e91f7(0xe4)](),this['_worksheet'][_0x2e91f7(0xf8)]());return _0x63c5e9?_0x33563d[_0x2e91f7(0xe7)](_0x60500a=>_0x60500a[_0x2e91f7(0xdb)]===_0x63c5e9):_0x33563d;}[_0x3f3c2e(0xd6)](_0x15d0bc,_0x1be741,_0x4a7f39){var _0x2c338d=_0x3f3c2e;return this['_commandService'][_0x2c338d(0xe5)](_0x5d4ac6[_0x2c338d(0xfb)]['id'],{'unitId':this[_0x2c338d(0xe2)]['getUnitId'](),'subUnitId':this[_0x2c338d(0xf7)][_0x2c338d(0xf8)](),'axis':_0x15d0bc,'start':_0x1be741,'end':_0x1be741+_0x4a7f39-0x1}),this;}};_0xa89cef['FWorksheet']['extend'](_0x229242);}));
|