@univerjs-pro/sheets-outline 1.0.0-alpha.5 → 1.0.0-alpha.6

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/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x91a109=_0x3f05;(function(_0x2f16e8,_0x517b36){var _0x198af8=_0x3f05,_0x17ec0b=_0x2f16e8();while(!![]){try{var _0x37ed69=-parseInt(_0x198af8(0x85))/0x1*(-parseInt(_0x198af8(0x8e))/0x2)+-parseInt(_0x198af8(0x88))/0x3*(parseInt(_0x198af8(0x91))/0x4)+-parseInt(_0x198af8(0x93))/0x5+parseInt(_0x198af8(0x8d))/0x6+-parseInt(_0x198af8(0xa3))/0x7*(parseInt(_0x198af8(0x9c))/0x8)+-parseInt(_0x198af8(0x99))/0x9*(-parseInt(_0x198af8(0x97))/0xa)+parseInt(_0x198af8(0x86))/0xb;if(_0x37ed69===_0x517b36)break;else _0x17ec0b['push'](_0x17ec0b['shift']());}catch(_0x5b47df){_0x17ec0b['push'](_0x17ec0b['shift']());}}}(_0x44ca,0x5c890));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');function _0x3f05(_0x414bd3,_0x5b3f7b){_0x414bd3=_0x414bd3-0x82;var _0x44ca78=_0x44ca();var _0x3f0544=_0x44ca78[_0x414bd3];return _0x3f0544;}function _0x44ca(){var _0x594eba=['1125894euSsbF','_injector','extend','4252cGjmyb','_worksheet','653070BOWZoG','AddDimensionOutlineCommand','syncExecuteCommand','SetDimensionOutlineCollapsedCommand','10CrUAeJ','DimensionOutlineAxis','4056606zumBsa','FEnum','ROW','464EPnhkw','removeDimensionOutline','SheetsOutlineModel','setDimensionOutlineCollapsed','getSheetId','getOutlines','DimensionOutlineErrorReason','25977JwKeTT','addColumnOutline','COLUMN','RemoveDimensionOutlineCommand','filter','get','FWorksheet','clearDimensionOutlines','getUnitId','1XgAdpS','3149707eJzycL','getDimensionOutlines','1713NKNqgV','addRowOutline','_workbook','_addDimensionOutline','_commandService','190986ufpnvC'];_0x44ca=function(){return _0x594eba;};return _0x44ca();}var r=class extends t[_0x91a109(0x9a)]{get[_0x91a109(0x98)](){var _0x20ef05=_0x91a109;return e[_0x20ef05(0x98)];}get[_0x91a109(0xa2)](){var _0x5a1926=_0x91a109;return e[_0x5a1926(0xa2)];}};t[_0x91a109(0x9a)][_0x91a109(0x90)](r);var i=class extends n[_0x91a109(0x82)]{[_0x91a109(0x89)](_0x4357ab,_0x40d082){var _0xb8d953=_0x91a109;return this['_addDimensionOutline'](e[_0xb8d953(0x98)][_0xb8d953(0x9b)],_0x4357ab,_0x40d082);}[_0x91a109(0xa4)](_0x5fcf38,_0x4ed005){var _0x5362f3=_0x91a109;return this['_addDimensionOutline'](e['DimensionOutlineAxis'][_0x5362f3(0xa5)],_0x5fcf38,_0x4ed005);}[_0x91a109(0x9d)](_0x4cda05){var _0x5af1e1=_0x91a109;return this[_0x5af1e1(0x8c)]['syncExecuteCommand'](e[_0x5af1e1(0xa6)]['id'],{'unitId':this[_0x5af1e1(0x8a)][_0x5af1e1(0x84)](),'subUnitId':this[_0x5af1e1(0x92)][_0x5af1e1(0xa0)](),'outlineId':_0x4cda05}),this;}[_0x91a109(0x9f)](_0x3c1ad0,_0x1a0684){var _0x3bac2c=_0x91a109;return this[_0x3bac2c(0x8c)]['syncExecuteCommand'](e[_0x3bac2c(0x96)]['id'],{'unitId':this[_0x3bac2c(0x8a)]['getUnitId'](),'subUnitId':this[_0x3bac2c(0x92)][_0x3bac2c(0xa0)](),'outlineId':_0x3c1ad0,'collapsed':_0x1a0684}),this;}[_0x91a109(0x83)](_0x1f2f94,_0x23e831,_0x580d0b){var _0xfd4e3c=_0x91a109;return this[_0xfd4e3c(0x8c)][_0xfd4e3c(0x95)](e['ClearDimensionOutlinesCommand']['id'],{'unitId':this[_0xfd4e3c(0x8a)]['getUnitId'](),'subUnitId':this['_worksheet'][_0xfd4e3c(0xa0)](),'axis':_0x1f2f94,'start':_0x23e831,'end':_0x580d0b}),this;}[_0x91a109(0x87)](_0x2e2cc5){var _0x334080=_0x91a109;let _0x5c0440=this[_0x334080(0x8f)][_0x334080(0xa8)](e[_0x334080(0x9e)])[_0x334080(0xa1)](this[_0x334080(0x8a)][_0x334080(0x84)](),this[_0x334080(0x92)][_0x334080(0xa0)]());return _0x2e2cc5?_0x5c0440[_0x334080(0xa7)](_0x318b4c=>_0x318b4c['axis']===_0x2e2cc5):_0x5c0440;}[_0x91a109(0x8b)](_0x2d0e69,_0x440c3d,_0x1243e7){var _0x57e4a7=_0x91a109;return this['_commandService'][_0x57e4a7(0x95)](e[_0x57e4a7(0x94)]['id'],{'unitId':this['_workbook'][_0x57e4a7(0x84)](),'subUnitId':this[_0x57e4a7(0x92)][_0x57e4a7(0xa0)](),'axis':_0x2d0e69,'start':_0x440c3d,'end':_0x440c3d+_0x1243e7-0x1}),this;}};n[_0x91a109(0x82)][_0x91a109(0x90)](i);
1
+ var _0x141db1=_0x2f13;function _0x4603(){var _0x2f2336=['removeDimensionOutline','getDimensionOutlines','extend','COLUMN','15985PRNjWo','get','getOutlines','addRowOutline','611691lXcSXh','840581CdcSwl','FWorksheet','axis','55svLdQG','ROW','FEnum','addColumnOutline','28zuMGtj','3098295YQuHxO','setDimensionOutlineCollapsed','_addDimensionOutline','_commandService','SetDimensionOutlineCollapsedCommand','syncExecuteCommand','filter','2LkXjaS','AddDimensionOutlineCommand','_injector','_workbook','24fVJJaC','getSheetId','DimensionOutlineErrorReason','_worksheet','4137590zwNkEp','1044519hTGYOS','RemoveDimensionOutlineCommand','12730608viKxta','ClearDimensionOutlinesCommand','getUnitId','DimensionOutlineAxis'];_0x4603=function(){return _0x2f2336;};return _0x4603();}(function(_0x971925,_0x28d2b4){var _0x5de49b=_0x2f13,_0x4273be=_0x971925();while(!![]){try{var _0x5aebef=parseInt(_0x5de49b(0x1b4))/0x1+parseInt(_0x5de49b(0x1c3))/0x2*(-parseInt(_0x5de49b(0x1da))/0x3)+parseInt(_0x5de49b(0x1bb))/0x4*(-parseInt(_0x5de49b(0x1d6))/0x5)+-parseInt(_0x5de49b(0x1c7))/0x6*(parseInt(_0x5de49b(0x1cc))/0x7)+-parseInt(_0x5de49b(0x1ce))/0x8+parseInt(_0x5de49b(0x1bc))/0x9+parseInt(_0x5de49b(0x1cb))/0xa*(parseInt(_0x5de49b(0x1b7))/0xb);if(_0x5aebef===_0x28d2b4)break;else _0x4273be['push'](_0x4273be['shift']());}catch(_0x328f2a){_0x4273be['push'](_0x4273be['shift']());}}}(_0x4603,0xccdf9));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x141db1(0x1b9)]{get[_0x141db1(0x1d1)](){return e['DimensionOutlineAxis'];}get[_0x141db1(0x1c9)](){var _0x11f238=_0x141db1;return e[_0x11f238(0x1c9)];}};t[_0x141db1(0x1b9)][_0x141db1(0x1d4)](r);var i=class extends n[_0x141db1(0x1b5)]{[_0x141db1(0x1d9)](_0x46f4b5,_0x2d911e){var _0x3e858e=_0x141db1;return this[_0x3e858e(0x1be)](e[_0x3e858e(0x1d1)][_0x3e858e(0x1b8)],_0x46f4b5,_0x2d911e);}[_0x141db1(0x1ba)](_0x54730f,_0x3b3882){var _0x6167a3=_0x141db1;return this[_0x6167a3(0x1be)](e[_0x6167a3(0x1d1)][_0x6167a3(0x1d5)],_0x54730f,_0x3b3882);}[_0x141db1(0x1d2)](_0x5b1e1f){var _0x4896de=_0x141db1;return this[_0x4896de(0x1bf)][_0x4896de(0x1c1)](e[_0x4896de(0x1cd)]['id'],{'unitId':this[_0x4896de(0x1c6)][_0x4896de(0x1d0)](),'subUnitId':this['_worksheet'][_0x4896de(0x1c8)](),'outlineId':_0x5b1e1f}),this;}[_0x141db1(0x1bd)](_0x2e21c9,_0x18ac30){var _0x1460fc=_0x141db1;return this[_0x1460fc(0x1bf)][_0x1460fc(0x1c1)](e[_0x1460fc(0x1c0)]['id'],{'unitId':this[_0x1460fc(0x1c6)]['getUnitId'](),'subUnitId':this['_worksheet'][_0x1460fc(0x1c8)](),'outlineId':_0x2e21c9,'collapsed':_0x18ac30}),this;}['clearDimensionOutlines'](_0x5c68b9,_0x12c07a,_0x4f2510){var _0x4a8533=_0x141db1;return this[_0x4a8533(0x1bf)][_0x4a8533(0x1c1)](e[_0x4a8533(0x1cf)]['id'],{'unitId':this[_0x4a8533(0x1c6)]['getUnitId'](),'subUnitId':this[_0x4a8533(0x1ca)][_0x4a8533(0x1c8)](),'axis':_0x5c68b9,'start':_0x12c07a,'end':_0x4f2510}),this;}[_0x141db1(0x1d3)](_0x2bb598){var _0x5012cc=_0x141db1;let _0x1af6a3=this[_0x5012cc(0x1c5)][_0x5012cc(0x1d7)](e['SheetsOutlineModel'])[_0x5012cc(0x1d8)](this[_0x5012cc(0x1c6)]['getUnitId'](),this[_0x5012cc(0x1ca)][_0x5012cc(0x1c8)]());return _0x2bb598?_0x1af6a3[_0x5012cc(0x1c2)](_0x4519b6=>_0x4519b6[_0x5012cc(0x1b6)]===_0x2bb598):_0x1af6a3;}[_0x141db1(0x1be)](_0x2ccc2e,_0x11b4a5,_0x3f3970){var _0x17840f=_0x141db1;return this[_0x17840f(0x1bf)][_0x17840f(0x1c1)](e[_0x17840f(0x1c4)]['id'],{'unitId':this[_0x17840f(0x1c6)][_0x17840f(0x1d0)](),'subUnitId':this[_0x17840f(0x1ca)][_0x17840f(0x1c8)](),'axis':_0x2ccc2e,'start':_0x11b4a5,'end':_0x11b4a5+_0x3f3970-0x1}),this;}};function _0x2f13(_0x246237,_0x594ac0){_0x246237=_0x246237-0x1b4;var _0x460305=_0x4603();var _0x2f13cd=_0x460305[_0x246237];return _0x2f13cd;}n[_0x141db1(0x1b5)][_0x141db1(0x1d4)](i);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a5373=_0x33df;(function(_0x4f6611,_0x12fd47){const _0x1aa60a=_0x33df,_0xb5becc=_0x4f6611();while(!![]){try{const _0x283bc4=-parseInt(_0x1aa60a(0x2a6))/0x1+-parseInt(_0x1aa60a(0x23b))/0x2+parseInt(_0x1aa60a(0x24b))/0x3+parseInt(_0x1aa60a(0x268))/0x4+parseInt(_0x1aa60a(0x1ef))/0x5+-parseInt(_0x1aa60a(0x2ae))/0x6+-parseInt(_0x1aa60a(0x1fc))/0x7*(-parseInt(_0x1aa60a(0x298))/0x8);if(_0x283bc4===_0x12fd47)break;else _0xb5becc['push'](_0xb5becc['shift']());}catch(_0x5e355a){_0xb5becc['push'](_0xb5becc['shift']());}}}(_0x3e0c,0xcfc64),Object[_0x1a5373(0x26a)](exports,Symbol[_0x1a5373(0x2a8)],{'value':_0x1a5373(0x220)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x5702a6){const _0x4023ba=_0x1a5373;return _0x5702a6[_0x4023ba(0x299)]='row',_0x5702a6['COLUMN']=_0x4023ba(0x21f),_0x5702a6;}({}),o=function(_0xbf84a6){const _0x37069a=_0x1a5373;return _0xbf84a6[_0x37069a(0x2a5)]=_0x37069a(0x29c),_0xbf84a6[_0x37069a(0x202)]='out-of-bounds',_0xbf84a6['CROSSING']=_0x37069a(0x270),_0xbf84a6['MAX_DEPTH']=_0x37069a(0x26e),_0xbf84a6[_0x37069a(0x28f)]=_0x37069a(0x2a1),_0xbf84a6[_0x37069a(0x233)]=_0x37069a(0x1f8),_0xbf84a6[_0x37069a(0x29a)]=_0x37069a(0x2a2),_0xbf84a6;}({});var s=class extends Error{constructor(_0x3d149a,_0x3b6604,_0x52ca7b){const _0x1a988c=_0x1a5373;super(_0x3b6604),this[_0x1a988c(0x1f6)]=_0x3d149a,this['outlineId']=_0x52ca7b,this[_0x1a988c(0x23a)]=_0x1a988c(0x209);}};function c(_0x1cd53d){const _0x14ede3=_0x1a5373;return _0x1cd53d instanceof s?_0x1cd53d[_0x14ede3(0x1f6)]:_0x1cd53d instanceof Error?_0x1cd53d[_0x14ede3(0x239)][_0x14ede3(0x250)](_0x14ede3(0x27c))?_0x14ede3(0x2a1):_0x1cd53d[_0x14ede3(0x239)]['includes'](_0x14ede3(0x249))?_0x14ede3(0x26e):_0x1cd53d[_0x14ede3(0x239)][_0x14ede3(0x250)](_0x14ede3(0x243))?_0x14ede3(0x270):_0x1cd53d[_0x14ede3(0x239)][_0x14ede3(0x250)]('range')?_0x14ede3(0x29c):'unknown':_0x14ede3(0x2a2);}function l(_0x1d3ffa){return _0x1d3ffa instanceof s?_0x1d3ffa['outlineId']:void 0x0;}const u=0x2**0x35-0x1;function d(_0x464a6d,_0x140f6c){const _0x30238d=_0x1a5373;return _0x464a6d['unitId']===_0x140f6c[_0x30238d(0x286)]&&_0x464a6d[_0x30238d(0x211)]===_0x140f6c[_0x30238d(0x211)]&&_0x464a6d['axis']===_0x140f6c[_0x30238d(0x215)];}function f(_0x20c457,_0x1d3262={}){const _0x1b974f=_0x1a5373;var _0x573103;let _0x232dfe=(_0x573103=_0x1d3262[_0x1b974f(0x264)])==null?0x8:_0x573103,_0x20e709=new Map();for(let _0x24d1a1 of _0x20c457){let _0x15d5e8=_0x24d1a1['unitId']+':'+_0x24d1a1[_0x1b974f(0x211)]+':'+_0x24d1a1[_0x1b974f(0x215)],_0x2d7875=_0x20e709[_0x1b974f(0x278)](_0x15d5e8);_0x2d7875?_0x2d7875[_0x1b974f(0x284)](_0x24d1a1):_0x20e709[_0x1b974f(0x218)](_0x15d5e8,[_0x24d1a1]);}let _0x41af53=[];for(let _0x910703 of _0x20e709[_0x1b974f(0x242)]()){let _0x32cc1b=[..._0x910703][_0x1b974f(0x26b)](C),_0x3d66a6=[];for(let _0x1dceee of _0x32cc1b){for(oe(_0x1dceee);_0x3d66a6['length']>0x0&&_0x1dceee[_0x1b974f(0x295)]>_0x3d66a6[_0x3d66a6[_0x1b974f(0x2a3)]-0x1]['end'];)_0x3d66a6[_0x1b974f(0x217)]();let _0x544f01=_0x3d66a6[_0x3d66a6[_0x1b974f(0x2a3)]-0x1];if(_0x544f01&&_0x1dceee[_0x1b974f(0x21b)]>_0x544f01[_0x1b974f(0x21b)])throw new s(_0x1b974f(0x270),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x1dceee['id']);let _0x5f4210=_0x544f01?_0x544f01[_0x1b974f(0x249)]+0x1:0x1;if(_0x5f4210>_0x232dfe)throw new s(_0x1b974f(0x26e),_0x1b974f(0x241)+_0x232dfe,_0x1dceee['id']);let _0x152bcf={..._0x1dceee,'depth':_0x5f4210,'parentId':_0x544f01==null?void 0x0:_0x544f01['id'],'anchor':_0x1dceee[_0x1b974f(0x21b)],'children':[]};_0x544f01?_0x544f01[_0x1b974f(0x2aa)][_0x1b974f(0x284)](_0x152bcf):_0x41af53[_0x1b974f(0x284)](_0x152bcf),_0x3d66a6[_0x1b974f(0x284)](_0x152bcf);}}return _0x41af53;}function p(_0x345d84,_0x3d8cc4,_0x24fc9d={}){const _0x516373=_0x1a5373;if(_0x3d8cc4[_0x516373(0x295)]<0x0||_0x3d8cc4[_0x516373(0x295)]>_0x3d8cc4[_0x516373(0x21b)])return{'valid':!0x1,'reason':_0x516373(0x29c)};if(_0x24fc9d['maxIndex']!=null&&_0x3d8cc4[_0x516373(0x21b)]>=_0x24fc9d['maxIndex'])return{'valid':!0x1,'reason':_0x516373(0x282)};let _0x476396=_0x345d84[_0x516373(0x23e)](_0x48a806=>d(_0x48a806,_0x3d8cc4));for(let _0x4b984f of _0x476396)if(se(_0x4b984f,_0x3d8cc4))return{'valid':!0x1,'reason':_0x516373(0x270)};try{f([..._0x345d84,_0x3d8cc4],_0x24fc9d);}catch(_0x4c8a47){let _0x145ad5=c(_0x4c8a47);return _0x145ad5==='max-depth'?{'valid':!0x1,'reason':_0x516373(0x26e)}:_0x145ad5==='invalid-range'?{'valid':!0x1,'reason':_0x516373(0x29c)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function m(_0x3d7907,_0x2316fe,_0x4a7034={}){const _0x428f12=_0x1a5373;let _0x5bd5ce=p(_0x3d7907,_0x2316fe,_0x4a7034);if(!_0x5bd5ce['valid']){var _0x149b55;throw Error((_0x149b55=_0x5bd5ce[_0x428f12(0x1f6)])==null?_0x428f12(0x1ff):_0x149b55);}return[..._0x3d7907,_0x2316fe];}function ee(_0x3d1c05,_0x2901d6){const _0x3a76c1=_0x1a5373;let _0x5f0131=_0x2901d6[_0x3a76c1(0x295)],_0x259af2=_0x2901d6[_0x3a76c1(0x21b)],_0x2ffa82=[],_0x522093=!0x0;for(;_0x522093;){_0x522093=!0x1;for(let _0x12d516 of _0x3d1c05)_0x2ffa82[_0x3a76c1(0x250)](_0x12d516)||!d(_0x12d516,_0x2901d6)||!ie(_0x12d516['start'],_0x12d516[_0x3a76c1(0x21b)],_0x5f0131,_0x259af2)||(_0x2ffa82[_0x3a76c1(0x284)](_0x12d516),_0x5f0131=Math[_0x3a76c1(0x27b)](_0x5f0131,_0x12d516[_0x3a76c1(0x295)]),_0x259af2=Math[_0x3a76c1(0x27e)](_0x259af2,_0x12d516[_0x3a76c1(0x21b)]),_0x522093=!0x0);}if(_0x2ffa82['length']===0x0)return null;let [_0x5255c1]=[..._0x2ffa82][_0x3a76c1(0x26b)](C);return{'mergedOutline':{..._0x5255c1,'start':_0x5f0131,'end':_0x259af2},'mergedOutlines':_0x2ffa82};}function h(_0x3e203d,_0x5d1620){const _0x42e4cb=_0x1a5373;return _0x3e203d['filter'](_0x575541=>d(_0x575541,_0x5d1620)?!(_0x575541[_0x42e4cb(0x295)]>=_0x5d1620[_0x42e4cb(0x295)]&&_0x575541[_0x42e4cb(0x21b)]<=_0x5d1620['end']):!0x0);}function g(_0x44a5b8,_0x59cb47,_0x3d78a0,_0x5e6c6b){const _0x16c639=_0x1a5373;return _(_0x44a5b8[_0x16c639(0x23e)](_0x90aac0=>_0x90aac0[_0x16c639(0x286)]===_0x59cb47&&_0x90aac0[_0x16c639(0x211)]===_0x3d78a0&&_0x90aac0['axis']===_0x5e6c6b&&_0x90aac0[_0x16c639(0x206)])['map'](_0x181ad6=>({'start':_0x181ad6[_0x16c639(0x295)],'end':_0x181ad6['end']})));}function _(_0xf052a7){const _0x39740e=_0x1a5373;if(_0xf052a7[_0x39740e(0x2a3)]===0x0)return[];let _0x19d428=[..._0xf052a7][_0x39740e(0x26b)]((_0x26a013,_0x44e057)=>_0x26a013[_0x39740e(0x295)]-_0x44e057[_0x39740e(0x295)]||_0x26a013['end']-_0x44e057[_0x39740e(0x21b)]),_0x54bd5e=[];for(let _0x4abfa4 of _0x19d428){let _0x46d3c4=_0x54bd5e[_0x54bd5e['length']-0x1];!_0x46d3c4||_0x4abfa4[_0x39740e(0x295)]>_0x46d3c4[_0x39740e(0x21b)]+0x1?_0x54bd5e[_0x39740e(0x284)]({..._0x4abfa4}):_0x46d3c4[_0x39740e(0x21b)]=Math['max'](_0x46d3c4[_0x39740e(0x21b)],_0x4abfa4['end']);}return _0x54bd5e;}function v(_0xb4c53e,_0x1a4bd6){const _0x55d62e=_0x1a5373;return _0x1a4bd6[_0x55d62e(0x236)]<=0x0?_0xb4c53e:S(_0xb4c53e[_0x55d62e(0x24e)](_0x3296f5=>d(_0x3296f5,_0x1a4bd6)?_0x1a4bd6[_0x55d62e(0x22c)]<=_0x3296f5['start']?{..._0x3296f5,'start':_0x3296f5[_0x55d62e(0x295)]+_0x1a4bd6['count'],'end':_0x3296f5[_0x55d62e(0x21b)]+_0x1a4bd6[_0x55d62e(0x236)]}:_0x3296f5['start']<_0x1a4bd6['index']&&_0x1a4bd6['index']<=_0x3296f5[_0x55d62e(0x21b)]?{..._0x3296f5,'end':_0x3296f5[_0x55d62e(0x21b)]+_0x1a4bd6[_0x55d62e(0x236)]}:_0x3296f5:_0x3296f5));}function y(_0x14030f,_0x4c54d1){const _0x58bc16=_0x1a5373;if(_0x4c54d1[_0x58bc16(0x295)]>_0x4c54d1[_0x58bc16(0x21b)])return _0x14030f;let _0x33ca8f=_0x4c54d1['end']-_0x4c54d1[_0x58bc16(0x295)]+0x1,_0x5edab4=[];for(let _0x28bdb5 of _0x14030f){if(!d(_0x28bdb5,_0x4c54d1)){_0x5edab4['push'](_0x28bdb5);continue;}if(_0x28bdb5[_0x58bc16(0x21b)]<_0x4c54d1[_0x58bc16(0x295)]){_0x5edab4['push'](_0x28bdb5);continue;}if(_0x28bdb5['start']>_0x4c54d1[_0x58bc16(0x21b)]){_0x5edab4['push']({..._0x28bdb5,'start':_0x28bdb5[_0x58bc16(0x295)]-_0x33ca8f,'end':_0x28bdb5[_0x58bc16(0x21b)]-_0x33ca8f});continue;}let _0x5d539c=Math[_0x58bc16(0x27e)](_0x28bdb5[_0x58bc16(0x295)],_0x4c54d1['start']),_0x56939d=Math[_0x58bc16(0x27b)](_0x28bdb5[_0x58bc16(0x21b)],_0x4c54d1['end']),_0x52cd66=Math['max'](0x0,_0x56939d-_0x5d539c+0x1),_0x141429=_0x28bdb5[_0x58bc16(0x21b)]-_0x28bdb5['start']+0x1-_0x52cd66;if(_0x141429<=0x0)continue;let _0x6df1ff=_0x28bdb5[_0x58bc16(0x295)]<_0x4c54d1['start']?_0x28bdb5[_0x58bc16(0x295)]:_0x4c54d1[_0x58bc16(0x295)];_0x5edab4[_0x58bc16(0x284)]({..._0x28bdb5,'start':_0x6df1ff,'end':_0x6df1ff+_0x141429-0x1});}return S(_0x5edab4);}function b(_0x22d3ec,_0x17e919){const _0x37b326=_0x1a5373;if(_0x17e919[_0x37b326(0x227)]>_0x17e919[_0x37b326(0x1fe)])return _0x22d3ec;let _0x3ec276=[];for(let _0x55526e of _0x22d3ec){if(!d(_0x55526e,_0x17e919)){_0x3ec276['push'](_0x55526e);continue;}let _0x337e35=x(_0x55526e,_0x17e919);if(_0x337e35[_0x37b326(0x21a)]==='split')throw new s('move-splits-outline',_0x37b326(0x2ad)+_0x55526e['id'],_0x55526e['id']);_0x3ec276[_0x37b326(0x284)](_0x337e35[_0x37b326(0x1f1)]);}return S(_0x3ec276);}function x(_0x4490ab,_0x291c1e){const _0x29871d=_0x1a5373;let _0xac5cef=te(_0x291c1e['sourceStart'],_0x291c1e[_0x29871d(0x1fe)]+0x1,_0x291c1e[_0x29871d(0x256)]),_0x229998=[],_0x2f9a0f={'start':_0x4490ab[_0x29871d(0x295)],'end':_0x4490ab[_0x29871d(0x21b)]+0x1};for(let _0x33433c of _0xac5cef){let _0x2aeed4=ne(_0x2f9a0f,_0x33433c[_0x29871d(0x201)]);_0x2aeed4&&_0x229998[_0x29871d(0x284)]({'start':_0x2aeed4['start']+_0x33433c[_0x29871d(0x2b1)],'end':_0x2aeed4[_0x29871d(0x21b)]+_0x33433c[_0x29871d(0x2b1)]});}let _0x58cc9e=re(_0x229998);return _0x58cc9e[_0x29871d(0x2a3)]===0x1?{'type':'ok','outline':{..._0x4490ab,'start':_0x58cc9e[0x0]['start'],'end':_0x58cc9e[0x0][_0x29871d(0x21b)]-0x1}}:{'type':_0x29871d(0x28a),'outline':_0x4490ab,'ranges':_0x58cc9e};}function te(_0x4f426d,_0x3e83f5,_0x4336d3){const _0x553c39=_0x1a5373;let _0x19cc6f=_0x3e83f5-_0x4f426d;if(_0x19cc6f<=0x0)throw Error(_0x553c39(0x23f));return _0x4336d3>=_0x4f426d&&_0x4336d3<=_0x3e83f5?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x4336d3<_0x4f426d?[{'range':{'start':0x0,'end':_0x4336d3},'offset':0x0},{'range':{'start':_0x4336d3,'end':_0x4f426d},'offset':_0x19cc6f},{'range':{'start':_0x4f426d,'end':_0x3e83f5},'offset':_0x4336d3-_0x4f426d},{'range':{'start':_0x3e83f5,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x4f426d},'offset':0x0},{'range':{'start':_0x4f426d,'end':_0x3e83f5},'offset':_0x4336d3-_0x3e83f5},{'range':{'start':_0x3e83f5,'end':_0x4336d3},'offset':-_0x19cc6f},{'range':{'start':_0x4336d3,'end':u},'offset':0x0}];}function ne(_0x4777ec,_0x1c597e){const _0x544e0a=_0x1a5373;let _0x348da6=Math[_0x544e0a(0x27e)](_0x4777ec[_0x544e0a(0x295)],_0x1c597e[_0x544e0a(0x295)]),_0x1b935a=Math[_0x544e0a(0x27b)](_0x4777ec[_0x544e0a(0x21b)],_0x1c597e[_0x544e0a(0x21b)]);return _0x348da6>=_0x1b935a?null:{'start':_0x348da6,'end':_0x1b935a};}function re(_0xb986a9){const _0x372ad2=_0x1a5373;if(_0xb986a9['length']===0x0)return[];let _0x5ea7f1=[..._0xb986a9][_0x372ad2(0x26b)]((_0x12cb3c,_0x57db0c)=>_0x12cb3c[_0x372ad2(0x295)]-_0x57db0c[_0x372ad2(0x295)]||_0x12cb3c['end']-_0x57db0c[_0x372ad2(0x21b)]),_0x2e6c50=[];for(let _0x394078 of _0x5ea7f1){let _0x2213a3=_0x2e6c50[_0x2e6c50[_0x372ad2(0x2a3)]-0x1];!_0x2213a3||_0x394078[_0x372ad2(0x295)]>_0x2213a3[_0x372ad2(0x21b)]?_0x2e6c50[_0x372ad2(0x284)]({..._0x394078}):_0x2213a3['end']=Math[_0x372ad2(0x27e)](_0x2213a3[_0x372ad2(0x21b)],_0x394078[_0x372ad2(0x21b)]);}return _0x2e6c50;}function ie(_0x1aef68,_0x38cbff,_0x2aecaf,_0x13520e){return _0x38cbff+0x1===_0x2aecaf||_0x13520e+0x1===_0x1aef68;}function S(_0x1fa2a1){let _0x1fa7c3=ae(_0x1fa2a1);return f(_0x1fa7c3),_0x1fa7c3;}function ae(_0x3ac8db){const _0x1734be=_0x1a5373;let _0x490fbe=new Map();for(let _0x3bef5b of _0x3ac8db){let _0x100476=[_0x3bef5b[_0x1734be(0x286)],_0x3bef5b[_0x1734be(0x211)],_0x3bef5b[_0x1734be(0x215)],_0x3bef5b[_0x1734be(0x295)],_0x3bef5b[_0x1734be(0x21b)]][_0x1734be(0x225)](':'),_0x9fb8ff=_0x490fbe['get'](_0x100476);if(!_0x9fb8ff){_0x490fbe[_0x1734be(0x218)](_0x100476,_0x3bef5b);continue;}_0x490fbe['set'](_0x100476,{..._0x9fb8ff,'collapsed':_0x9fb8ff['collapsed']||_0x3bef5b[_0x1734be(0x206)]});}return Array[_0x1734be(0x277)](_0x490fbe[_0x1734be(0x242)]());}function C(_0x5baa1c,_0x4f2815){const _0x158892=_0x1a5373;return _0x5baa1c[_0x158892(0x286)]===_0x4f2815[_0x158892(0x286)]?_0x5baa1c[_0x158892(0x211)]===_0x4f2815['subUnitId']?_0x5baa1c[_0x158892(0x215)]===_0x4f2815[_0x158892(0x215)]?_0x5baa1c['start']===_0x4f2815[_0x158892(0x295)]?_0x4f2815[_0x158892(0x21b)]-_0x5baa1c[_0x158892(0x21b)]:_0x5baa1c['start']-_0x4f2815['start']:_0x5baa1c[_0x158892(0x215)][_0x158892(0x275)](_0x4f2815[_0x158892(0x215)]):_0x5baa1c[_0x158892(0x211)]['localeCompare'](_0x4f2815['subUnitId']):_0x5baa1c['unitId'][_0x158892(0x275)](_0x4f2815['unitId']);}function oe(_0x3c9b5c){const _0x1f73c2=_0x1a5373;if(_0x3c9b5c[_0x1f73c2(0x295)]>_0x3c9b5c['end'])throw new s(_0x1f73c2(0x29c),'Invalid\x20outline\x20range',_0x3c9b5c['id']);}function se(_0x1d8249,_0x779839){const _0x5e5d59=_0x1a5373;let _0x47e4b6=_0x1d8249[_0x5e5d59(0x295)]<=_0x779839[_0x5e5d59(0x21b)]&&_0x779839[_0x5e5d59(0x295)]<=_0x1d8249['end'],_0x1bb62b=_0x1d8249[_0x5e5d59(0x295)]<=_0x779839[_0x5e5d59(0x295)]&&_0x779839['end']<=_0x1d8249['end'],_0x520feb=_0x779839[_0x5e5d59(0x295)]<=_0x1d8249['start']&&_0x1d8249[_0x5e5d59(0x21b)]<=_0x779839['end'];return _0x47e4b6&&!_0x1bb62b&&!_0x520feb;}function w(_0x3dcc21){'@babel/helpers - typeof';const _0x256301=_0x1a5373;return w=typeof Symbol=='function'&&typeof Symbol[_0x256301(0x2a9)]==_0x256301(0x27f)?function(_0x2e63c2){return typeof _0x2e63c2;}:function(_0x370aab){const _0x3c80e8=_0x256301;return _0x370aab&&typeof Symbol==_0x3c80e8(0x1ea)&&_0x370aab['constructor']===Symbol&&_0x370aab!==Symbol[_0x3c80e8(0x214)]?'symbol':typeof _0x370aab;},w(_0x3dcc21);}function ce(_0x2891cf,_0x436513){const _0x20971f=_0x1a5373;if(w(_0x2891cf)!=_0x20971f(0x248)||!_0x2891cf)return _0x2891cf;var _0x3737bf=_0x2891cf[Symbol[_0x20971f(0x28b)]];if(_0x3737bf!==void 0x0){var _0x55d945=_0x3737bf[_0x20971f(0x200)](_0x2891cf,_0x436513||_0x20971f(0x29e));if(w(_0x55d945)!=_0x20971f(0x248))return _0x55d945;throw TypeError(_0x20971f(0x24c));}return(_0x436513==='string'?String:Number)(_0x2891cf);}function le(_0x5b5a30){const _0x5eec54=_0x1a5373;var _0x1058aa=ce(_0x5b5a30,_0x5eec54(0x26c));return w(_0x1058aa)==_0x5eec54(0x27f)?_0x1058aa:_0x1058aa+'';}function T(_0x2763a2,_0x1f4b50,_0x3d218d){const _0x8e98de=_0x1a5373;return(_0x1f4b50=le(_0x1f4b50))in _0x2763a2?Object[_0x8e98de(0x26a)](_0x2763a2,_0x1f4b50,{'value':_0x3d218d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2763a2[_0x1f4b50]=_0x3d218d,_0x2763a2;}var E=class extends e['Disposable']{constructor(..._0x36f7fe){const _0x3fe19d=_0x1a5373;super(..._0x36f7fe),T(this,_0x3fe19d(0x226),new Map()),T(this,_0x3fe19d(0x1ed),new n[(_0x3fe19d(0x297))]()),T(this,_0x3fe19d(0x1f9),this['_change$'][_0x3fe19d(0x25e)]());}[_0x1a5373(0x1e8)](_0x5e4c65,_0x204b8a){const _0x999f24=_0x1a5373;var _0x3a2543,_0x4ad321;return[...(_0x3a2543=(_0x4ad321=this[_0x999f24(0x226)][_0x999f24(0x278)](_0x5e4c65))==null?void 0x0:_0x4ad321[_0x999f24(0x278)](_0x204b8a))==null?[]:_0x3a2543];}[_0x1a5373(0x271)](_0x558af8){const _0x1f8b5f=_0x1a5373;let _0x3e8ce5=this['_outlines'][_0x1f8b5f(0x278)](_0x558af8),_0x13123d=new Map();return _0x3e8ce5==null||_0x3e8ce5[_0x1f8b5f(0x2b5)]((_0x351df6,_0xd3aa14)=>{_0x13123d['set'](_0xd3aa14,[..._0x351df6]);}),_0x13123d;}[_0x1a5373(0x294)](_0x262bdf,_0x2f5043,_0x40dcf6){const _0xff2bae=_0x1a5373;this[_0xff2bae(0x29f)](_0x262bdf)['set'](_0x2f5043,[..._0x40dcf6]),this[_0xff2bae(0x1ed)][_0xff2bae(0x258)]({'unitId':_0x262bdf,'subUnitId':_0x2f5043});}[_0x1a5373(0x22b)](_0x17dcf1){const _0x5cd735=_0x1a5373;this[_0x5cd735(0x226)][_0x5cd735(0x26d)](_0x17dcf1),this['_change$'][_0x5cd735(0x258)]({'unitId':_0x17dcf1});}[_0x1a5373(0x1f3)](_0x2164eb){const _0x30d978=_0x1a5373;let _0x355d1c=this[_0x30d978(0x226)][_0x30d978(0x278)](_0x2164eb),_0x115ae4={};return _0x355d1c==null||_0x355d1c[_0x30d978(0x2b5)]((_0x73d64d,_0x1c27d9)=>{_0x115ae4[_0x1c27d9]={'outlineList':[..._0x73d64d]};}),_0x115ae4;}['deserialize'](_0x16755a,_0x4d7352){const _0x863407=_0x1a5373;let _0x226c1d=new Map();Object[_0x863407(0x291)](_0x4d7352)['forEach'](([_0xab6f1f,_0x1042f0])=>{const _0x45d951=_0x863407;var _0x4e10d0;_0x226c1d[_0x45d951(0x218)](_0xab6f1f,[...(_0x4e10d0=_0x1042f0[_0x45d951(0x2a0)])==null?[]:_0x4e10d0]);}),this['_outlines'][_0x863407(0x218)](_0x16755a,_0x226c1d),this['_change$']['next']({'unitId':_0x16755a});}['dispose'](){const _0x7484fc=_0x1a5373;super[_0x7484fc(0x1ec)](),this[_0x7484fc(0x226)][_0x7484fc(0x263)](),this[_0x7484fc(0x1ed)][_0x7484fc(0x21c)]();}['_ensureUnitOutlines'](_0x49436f){const _0x2c64ed=_0x1a5373;let _0x36f5ca=this[_0x2c64ed(0x226)][_0x2c64ed(0x278)](_0x49436f);return _0x36f5ca||(_0x36f5ca=new Map(),this[_0x2c64ed(0x226)]['set'](_0x49436f,_0x36f5ca)),_0x36f5ca;}},D=class extends e[_0x1a5373(0x247)]{constructor(..._0x8ba923){const _0x524067=_0x1a5373;super(..._0x8ba923),T(this,_0x524067(0x204),new n[(_0x524067(0x297))]()),T(this,'error$',this['_error$'][_0x524067(0x25e)]());}[_0x1a5373(0x230)](_0x44d65a){const _0x43ad19=_0x1a5373;this[_0x43ad19(0x204)][_0x43ad19(0x258)](_0x44d65a);}['dispose'](){const _0x26a260=_0x1a5373;super[_0x26a260(0x1ec)](),this[_0x26a260(0x204)][_0x26a260(0x21c)]();}};const O={'id':_0x1a5373(0x281),'type':e[_0x1a5373(0x1f7)][_0x1a5373(0x213)],'handler':(_0x1ccd40,_0x371311)=>{const _0x1a3b1a=_0x1a5373;let _0x3bf786=_0x1ccd40[_0x1a3b1a(0x278)](E),_0x2bb800=_0x3bf786[_0x1a3b1a(0x1e8)](_0x371311[_0x1a3b1a(0x286)],_0x371311[_0x1a3b1a(0x211)]);return _0x3bf786[_0x1a3b1a(0x294)](_0x371311[_0x1a3b1a(0x286)],_0x371311[_0x1a3b1a(0x211)],m(_0x2bb800,_0x371311['outline'])),!0x0;}},k={'id':_0x1a5373(0x20e),'type':e[_0x1a5373(0x1f7)]['MUTATION'],'handler':(_0x45fdcb,_0xd04d96)=>{const _0x485269=_0x1a5373;let _0x1393a8=_0x45fdcb['get'](E),_0x5b8872=_0x1393a8[_0x485269(0x1e8)](_0xd04d96[_0x485269(0x286)],_0xd04d96[_0x485269(0x211)]);return _0x1393a8[_0x485269(0x294)](_0xd04d96[_0x485269(0x286)],_0xd04d96[_0x485269(0x211)],_0x5b8872[_0x485269(0x23e)](_0x4f0f5a=>_0x4f0f5a['id']!==_0xd04d96[_0x485269(0x288)])),!0x0;}};function A(_0x38d28c,_0x34ec46,_0x4e90f1){let _0xb60be2=de(_0x38d28c);return _0xb60be2?_0xb60be2['permissionCheckWithoutRange']({'workbookTypes':[t['WorkbookViewPermission']],'worksheetTypes':[t['WorksheetViewPermission']]},_0x34ec46,_0x4e90f1):!0x0;}function ue(_0x4c9585,_0x2b9473,_0x2a56e1){const _0x3ac250=_0x1a5373;var _0xef8d2a;let _0x24ec8f=fe(_0x4c9585);return((_0xef8d2a=_0x24ec8f==null?void 0x0:_0x24ec8f[_0x3ac250(0x219)])==null?(0x0,n['of'])(null):_0xef8d2a)[_0x3ac250(0x22f)]((0x0,r['debounceTime'])(0x64),(0x0,r[_0x3ac250(0x2b2)])(null),(0x0,r[_0x3ac250(0x24e)])(()=>A(_0x4c9585,_0x2b9473,_0x2a56e1)));}function de(_0x5c00d7){const _0x123388=_0x1a5373;if(typeof _0x5c00d7[_0x123388(0x287)]==_0x123388(0x1ea)&&!_0x5c00d7[_0x123388(0x287)](t[_0x123388(0x1f4)]))return null;try{return _0x5c00d7[_0x123388(0x278)](t['SheetPermissionCheckController']);}catch{return null;}}function fe(_0x216323){const _0x36b36e=_0x1a5373;if(typeof _0x216323[_0x36b36e(0x287)]=='function'&&!_0x216323['has'](e[_0x36b36e(0x207)]))return null;try{return _0x216323[_0x36b36e(0x278)](e[_0x36b36e(0x207)]);}catch{return null;}}const j={'id':_0x1a5373(0x22e),'type':e[_0x1a5373(0x1f7)]['COMMAND'],'handler':(_0x4403e3,_0x271766)=>{const _0x16d399=_0x1a5373;var _0x5f4564,_0x3717cc;if(!_0x271766)return!0x1;let _0x4fccbe=(0x0,t['getSheetCommandTarget'])(_0x4403e3[_0x16d399(0x278)](e[_0x16d399(0x276)]),_0x271766);if(!_0x4fccbe)return!0x1;let {unitId:_0x26af07,subUnitId:_0x20bd2b,worksheet:_0x35ad}=_0x4fccbe;if(!A(_0x4403e3,_0x26af07,_0x20bd2b))return!0x1;let _0x281c5d=_0x4403e3[_0x16d399(0x278)](E),_0x51e526={'id':_0x16d399(0x1eb)+(0x0,e[_0x16d399(0x238)])(0x6),'unitId':_0x26af07,'subUnitId':_0x20bd2b,'axis':_0x271766['axis'],'start':_0x271766[_0x16d399(0x295)],'end':_0x271766[_0x16d399(0x21b)],'collapsed':!0x1},_0xcd6df7=_0x271766[_0x16d399(0x215)]===_0x16d399(0x1f0)?_0x35ad['getRowCount']():_0x35ad[_0x16d399(0x208)](),_0x2f03c9=_0x281c5d[_0x16d399(0x1e8)](_0x26af07,_0x20bd2b),_0x43deff=ee(_0x2f03c9,_0x51e526),_0x32b52e=(_0x5f4564=_0x43deff==null?void 0x0:_0x43deff[_0x16d399(0x29b)])==null?[]:_0x5f4564,_0x412e9d=(_0x3717cc=_0x43deff==null?void 0x0:_0x43deff['mergedOutline'])==null?_0x51e526:_0x3717cc,_0x1d8454=p(_0x43deff?_0x2f03c9[_0x16d399(0x23e)](_0x3ae6d1=>!_0x32b52e[_0x16d399(0x251)](_0x336a6d=>_0x336a6d['id']===_0x3ae6d1['id'])):_0x2f03c9,_0x412e9d,{'maxIndex':_0xcd6df7});if(!_0x1d8454[_0x16d399(0x222)]){var _0x9e9e56;return _0x4403e3[_0x16d399(0x278)](D)[_0x16d399(0x230)]({'reason':(_0x9e9e56=_0x1d8454[_0x16d399(0x1f6)])==null?_0x16d399(0x2a2):_0x9e9e56,'commandId':j['id'],'unitId':_0x26af07,'subUnitId':_0x20bd2b,'axis':_0x271766[_0x16d399(0x215)],'outlineId':_0x412e9d['id']}),!0x1;}let _0x1934a6=[..._0x32b52e[_0x16d399(0x24e)](_0x538f36=>({'id':k['id'],'params':{'unitId':_0x26af07,'subUnitId':_0x20bd2b,'outlineId':_0x538f36['id']}})),{'id':O['id'],'params':{'unitId':_0x26af07,'subUnitId':_0x20bd2b,'outline':_0x412e9d}}],_0x13435b=[{'id':k['id'],'params':{'unitId':_0x26af07,'subUnitId':_0x20bd2b,'outlineId':_0x412e9d['id']}},..._0x32b52e[_0x16d399(0x24e)](_0x581ad2=>({'id':O['id'],'params':{'unitId':_0x26af07,'subUnitId':_0x20bd2b,'outline':_0x581ad2}}))];return(0x0,e['sequenceExecute'])(_0x1934a6,_0x4403e3['get'](e['ICommandService']))[_0x16d399(0x25c)]?(_0x4403e3[_0x16d399(0x278)](e['IUndoRedoService'])[_0x16d399(0x20d)]({'unitID':_0x26af07,'undoMutations':_0x13435b,'redoMutations':_0x1934a6}),!0x0):!0x1;}},M={'id':_0x1a5373(0x280),'type':e[_0x1a5373(0x1f7)][_0x1a5373(0x213)],'handler':(_0x561f33,_0x597258)=>{const _0x42c3c9=_0x1a5373;let _0x557a54=_0x561f33[_0x42c3c9(0x278)](E),_0xbbc849=_0x557a54[_0x42c3c9(0x1e8)](_0x597258[_0x42c3c9(0x286)],_0x597258[_0x42c3c9(0x211)]);return _0x557a54['setOutlines'](_0x597258[_0x42c3c9(0x286)],_0x597258[_0x42c3c9(0x211)],h(_0xbbc849,_0x597258)),!0x0;}},N={'id':'sheet.command.clear-dimension-outlines','type':e['CommandType'][_0x1a5373(0x224)],'handler':(_0xf52eff,_0x5a563a)=>{const _0x29d7d9=_0x1a5373;if(!_0x5a563a)return!0x1;let _0x4a2111=(0x0,t[_0x29d7d9(0x20a)])(_0xf52eff['get'](e[_0x29d7d9(0x276)]),_0x5a563a);if(!_0x4a2111)return!0x1;let {unitId:_0x4cb964,subUnitId:_0x3b77c2}=_0x4a2111;if(!A(_0xf52eff,_0x4cb964,_0x3b77c2))return!0x1;let _0x56efca={'unitId':_0x4cb964,'subUnitId':_0x3b77c2,'axis':_0x5a563a[_0x29d7d9(0x215)],'start':_0x5a563a[_0x29d7d9(0x295)],'end':_0x5a563a['end']},_0x485864=_0xf52eff[_0x29d7d9(0x278)](E)[_0x29d7d9(0x1e8)](_0x4cb964,_0x3b77c2)[_0x29d7d9(0x23e)](_0x132582=>d(_0x132582,_0x56efca)&&_0x132582[_0x29d7d9(0x295)]>=_0x5a563a[_0x29d7d9(0x295)]&&_0x132582[_0x29d7d9(0x21b)]<=_0x5a563a[_0x29d7d9(0x21b)]);if(_0x485864[_0x29d7d9(0x2a3)]===0x0)return _0xf52eff[_0x29d7d9(0x278)](D)[_0x29d7d9(0x230)]({'reason':_0x29d7d9(0x1f8),'commandId':N['id'],'unitId':_0x4cb964,'subUnitId':_0x3b77c2,'axis':_0x5a563a['axis']}),!0x1;let _0x4b05d8=[{'id':M['id'],'params':{..._0x56efca,'removedOutlineIds':_0x485864['map'](_0x22ac05=>_0x22ac05['id'])}}],_0x2ef171=_0x485864['map'](_0x14c532=>({'id':O['id'],'params':{'unitId':_0x4cb964,'subUnitId':_0x3b77c2,'outline':_0x14c532}}));return(0x0,e['sequenceExecute'])(_0x4b05d8,_0xf52eff[_0x29d7d9(0x278)](e['ICommandService']))[_0x29d7d9(0x25c)]?(_0xf52eff[_0x29d7d9(0x278)](e[_0x29d7d9(0x2b0)])['pushUndoRedo']({'unitID':_0x4cb964,'undoMutations':_0x2ef171,'redoMutations':_0x4b05d8}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e['CommandType'][_0x1a5373(0x224)],'handler':(_0x277834,_0x446500)=>{const _0x65d928=_0x1a5373;if(!_0x446500)return!0x1;let _0x18fed=(0x0,t[_0x65d928(0x20a)])(_0x277834[_0x65d928(0x278)](e[_0x65d928(0x276)]),_0x446500);if(!_0x18fed)return!0x1;let {unitId:_0x1972be,subUnitId:_0xe8584e}=_0x18fed;if(!A(_0x277834,_0x1972be,_0xe8584e))return!0x1;let _0x53cadf=_0x277834[_0x65d928(0x278)](E)[_0x65d928(0x1e8)](_0x1972be,_0xe8584e)[_0x65d928(0x1f5)](_0x4fbbcd=>_0x4fbbcd['id']===_0x446500[_0x65d928(0x288)]);if(!_0x53cadf)return!0x1;let _0x2f32a9=[{'id':k['id'],'params':{'unitId':_0x1972be,'subUnitId':_0xe8584e,'outlineId':_0x53cadf['id'],'outline':_0x53cadf}}],_0x4e742f=[{'id':O['id'],'params':{'unitId':_0x1972be,'subUnitId':_0xe8584e,'outline':_0x53cadf}}];return(0x0,e['sequenceExecute'])(_0x2f32a9,_0x277834[_0x65d928(0x278)](e['ICommandService']))['result']?(_0x277834[_0x65d928(0x278)](e[_0x65d928(0x2b0)])[_0x65d928(0x20d)]({'unitID':_0x1972be,'undoMutations':_0x4e742f,'redoMutations':_0x2f32a9}),!0x0):!0x1;}},F={'id':_0x1a5373(0x234),'type':e[_0x1a5373(0x1f7)][_0x1a5373(0x213)],'handler':(_0x53b152,_0x4b6bbd)=>{const _0x34617f=_0x1a5373;let _0x5c0c85=_0x53b152['get'](E),_0x58fde8=_0x5c0c85[_0x34617f(0x1e8)](_0x4b6bbd['unitId'],_0x4b6bbd[_0x34617f(0x211)]),_0x24aca3=_0x58fde8[_0x34617f(0x1f5)](_0xbf519=>_0xbf519['id']===_0x4b6bbd[_0x34617f(0x288)]);return _0x24aca3&&_0x5c0c85[_0x34617f(0x294)](_0x4b6bbd[_0x34617f(0x286)],_0x4b6bbd[_0x34617f(0x211)],_0x58fde8[_0x34617f(0x24e)](_0x1c14a5=>_0x1c14a5[_0x34617f(0x286)]!==_0x24aca3[_0x34617f(0x286)]||_0x1c14a5[_0x34617f(0x211)]!==_0x24aca3[_0x34617f(0x211)]||_0x1c14a5[_0x34617f(0x215)]!==_0x24aca3[_0x34617f(0x215)]||_0x1c14a5[_0x34617f(0x295)]!==_0x24aca3['start']||_0x1c14a5[_0x34617f(0x21b)]!==_0x24aca3[_0x34617f(0x21b)]?_0x1c14a5:{..._0x1c14a5,'collapsed':_0x4b6bbd[_0x34617f(0x206)]})),!0x0;}};function I(_0x4c1b49,_0x442d85,_0x53bd88,_0x5877de){const _0x345407=_0x1a5373;return _0x4c1b49===_0x345407(0x1f0)?{'startRow':_0x442d85,'endRow':_0x53bd88,'startColumn':0x0,'endColumn':_0x5877de[_0x345407(0x2b8)]()-0x1}:{'startRow':0x0,'endRow':_0x5877de[_0x345407(0x2a7)]()-0x1,'startColumn':_0x442d85,'endColumn':_0x53bd88};}function pe(_0x1fe0ac){const _0x297f02=_0x1a5373;return _0x1fe0ac===_0x297f02(0x1f0)?t[_0x297f02(0x269)]['id']:t[_0x297f02(0x259)]['id'];}function me(_0x12ca96){const _0x518667=_0x1a5373;return _0x12ca96===_0x518667(0x1f0)?t['SetRowVisibleMutation']['id']:t[_0x518667(0x210)]['id'];}function L(_0x2d2148,_0xfb0dba,_0x25c195,_0x415b9a){const _0x47e296=_0x1a5373;let _0x3b14d5=_0xfb0dba?[I(_0x2d2148[_0x47e296(0x215)],_0x2d2148['start'],_0x2d2148[_0x47e296(0x21b)],_0x25c195)]:he(_0x2d2148,_0x415b9a,_0x25c195),_0x37bc76=_0xfb0dba?pe(_0x2d2148['axis']):me(_0x2d2148[_0x47e296(0x215)]);return[{'id':F['id'],'params':{'unitId':_0x2d2148[_0x47e296(0x286)],'subUnitId':_0x2d2148[_0x47e296(0x211)],'outlineId':_0x2d2148['id'],'outline':_0x2d2148,'collapsed':_0xfb0dba}},..._0x3b14d5[_0x47e296(0x24e)](_0x4b0df7=>({'id':_0x37bc76,'params':{'unitId':_0x2d2148[_0x47e296(0x286)],'subUnitId':_0x2d2148[_0x47e296(0x211)],'ranges':[_0x4b0df7],'dimensionOutlineId':_0x2d2148['id']}}))];}function _0x33df(_0x24ddfb,_0x5aa0c7){_0x24ddfb=_0x24ddfb-0x1e8;const _0x3e0cb1=_0x3e0c();let _0x33df97=_0x3e0cb1[_0x24ddfb];return _0x33df97;}function he(_0xb32856,_0x515c19,_0x933b05){const _0x4d2fac=_0x1a5373;let _0x5ba3c0=g(_0x515c19[_0x4d2fac(0x24e)](_0x44377f=>R(_0x44377f,_0xb32856)?{..._0x44377f,'collapsed':!0x1}:_0x44377f),_0xb32856[_0x4d2fac(0x286)],_0xb32856[_0x4d2fac(0x211)],_0xb32856['axis']);return ge({'start':_0xb32856[_0x4d2fac(0x295)],'end':_0xb32856[_0x4d2fac(0x21b)]},_0x5ba3c0)[_0x4d2fac(0x24e)](_0x503899=>I(_0xb32856[_0x4d2fac(0x215)],_0x503899[_0x4d2fac(0x295)],_0x503899[_0x4d2fac(0x21b)],_0x933b05));}function R(_0x119d72,_0x353dfa){const _0x9d5150=_0x1a5373;return _0x119d72['unitId']===_0x353dfa[_0x9d5150(0x286)]&&_0x119d72[_0x9d5150(0x211)]===_0x353dfa[_0x9d5150(0x211)]&&_0x119d72[_0x9d5150(0x215)]===_0x353dfa[_0x9d5150(0x215)]&&_0x119d72['start']===_0x353dfa[_0x9d5150(0x295)]&&_0x119d72[_0x9d5150(0x21b)]===_0x353dfa[_0x9d5150(0x21b)];}function ge(_0x243cde,_0x218299){const _0x22d4c1=_0x1a5373;let _0xff490a=_0x243cde[_0x22d4c1(0x295)],_0x3adf37=[];for(let _0x3c4efc of _0x218299)if(!(_0x3c4efc[_0x22d4c1(0x21b)]<_0xff490a||_0x3c4efc[_0x22d4c1(0x295)]>_0x243cde['end'])&&(_0x3c4efc['start']>_0xff490a&&_0x3adf37[_0x22d4c1(0x284)]({'start':_0xff490a,'end':Math[_0x22d4c1(0x27b)](_0x3c4efc[_0x22d4c1(0x295)]-0x1,_0x243cde[_0x22d4c1(0x21b)])}),_0xff490a=Math[_0x22d4c1(0x27e)](_0xff490a,_0x3c4efc[_0x22d4c1(0x21b)]+0x1),_0xff490a>_0x243cde[_0x22d4c1(0x21b)]))break;return _0xff490a<=_0x243cde['end']&&_0x3adf37[_0x22d4c1(0x284)]({'start':_0xff490a,'end':_0x243cde['end']}),_0x3adf37;}function _0x3e0c(){const _0x45d5c5=['transformOutlinesByMove','forEach','RemoveDimensionOutlineCommand','undos','getMaxColumns','RemoveRowCommand','deserialize','getOutlines','disposeWithMe','function','dimension-outline-','dispose','_change$','_sheetsOutlineErrorService','2728420eroVSx','row','outline','sheet.command.set-dimension-outline-collapsed','serialize','SheetPermissionCheckController','find','reason','CommandType','clear-range-not-contain-outline','change$','SheetInterceptorService','registerCommand','127043CZUOKW','transformOutlinesByInsert','sourceEnd','invalid-dimension-outline','call','range','OUT_OF_BOUNDS','params','_error$','DependentOn','collapsed','IPermissionService','getColumnCount','DimensionOutlineError','getSheetCommandTarget','getSheetId','ClearDimensionOutlinesCommand','pushUndoRedo','sheet.mutation.remove-dimension-outline','_injector','SetColVisibleMutation','subUnitId','UniverSheetsOutlinePlugin','MUTATION','prototype','axis','1.0.0-alpha.5','pop','set','permissionPointUpdate$','type','end','complete','buildDimensionOutlineTree','_getCommandScope','column','Module','SetDimensionOutlineCollapsedCommand','valid','sheet.mutation.transform-dimension-outlines','COMMAND','join','_outlines','sourceStart','SHEET_OUTLINE_PLUGIN','sheets-outline.config','SheetsOutlineModel','removeUnit','index','version','sheet.command.add-dimension-outline','pipe','emit','RemoveDimensionOutlineMutation','UniverInstanceType','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','sheet.mutation.set-dimension-outline-collapsed','canAddDimensionOutline','count','getDimensionOutlineViewPermission$','generateRandomId','message','name','3249632VnBGVx','setConfig','MoveRowsCommand','filter','Invalid\x20dimension\x20outline\x20move\x20source\x20range','preRedos','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','values','Crossing','_sheetsOutlineModel','getUnitId','Plugin','Disposable','object','depth','AddDimensionOutlineMutation','3262866VpKEiT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endColumn','map','_resourceManagerService','includes','some','fromRange','TransformDimensionOutlinesMutation','_sheetInterceptorService','DimensionOutlineAxis','destinationIndex','getOwnPropertyDescriptor','next','SetColHiddenMutation','@univerjs-pro/sheets-outline','_univerInstanceService','result','move','asObservable','IConfigService','transformOutlinesByDelete','getCurrentUnitOfType','endRow','clear','maxDepth','pluginName','insert','SetDimensionOutlineCollapsedMutation','2706212jsxJBf','SetRowHiddenMutation','defineProperty','sort','string','delete','max-depth','ClearDimensionOutlinesMutation','crossing','getUnitOutlines','_config','UNIVER_SHEET','startRow','localeCompare','IUniverInstanceService','from','get','_commandService','stringify','min','split\x20dimension\x20outline','preUndos','max','symbol','sheet.mutation.clear-dimension-outlines','sheet.mutation.add-dimension-outline','out-of-bounds','startColumn','push','Inject','unitId','has','outlineId','InsertColCommand','split','toPrimitive','packageName','DimensionOutlineErrorReason','SheetsOutlineErrorService','MOVE_SPLITS_OUTLINE','onStarting','entries','AddDimensionOutlineCommand','ICommandService','setOutlines','start','redos','Subject','728yoOeby','ROW','UNKNOWN','mergedOutlines','invalid-range','toRange','default','_ensureUnitOutlines','outlineList','move-splits-outline','unknown','length','_initCommandInterceptor','INVALID_RANGE','291447jwHwwg','getRowCount','toStringTag','iterator','children','add','_initRegisterCommand','Move\x20would\x20split\x20dimension\x20outline:\x20','7164666SCNrxc','Injector','IUndoRedoService','offset','startWith','_initResource'];_0x3e0c=function(){return _0x45d5c5;};return _0x3e0c();}const z={'id':_0x1a5373(0x1f2),'type':e['CommandType'][_0x1a5373(0x224)],'handler':(_0x5b05ea,_0x48b397)=>{const _0x1e96b9=_0x1a5373;if(!_0x48b397)return!0x1;let _0x352beb=(0x0,t[_0x1e96b9(0x20a)])(_0x5b05ea['get'](e[_0x1e96b9(0x276)]),_0x48b397);if(!_0x352beb)return!0x1;let {unitId:_0x2652b3,subUnitId:_0x5df203,worksheet:_0x52b4fd}=_0x352beb;if(!A(_0x5b05ea,_0x2652b3,_0x5df203))return!0x1;let _0x31590e=_0x5b05ea[_0x1e96b9(0x278)](E)[_0x1e96b9(0x1e8)](_0x2652b3,_0x5df203),_0x3a7f00=_0x31590e[_0x1e96b9(0x1f5)](_0x4860ac=>_0x4860ac['id']===_0x48b397['outlineId']);if(!_0x3a7f00||_0x3a7f00[_0x1e96b9(0x206)]===_0x48b397[_0x1e96b9(0x206)])return!0x1;let _0x15eaa9=L(_0x3a7f00,_0x48b397[_0x1e96b9(0x206)],_0x52b4fd,_0x31590e),_0x3aff1a=L(_0x3a7f00,!_0x48b397['collapsed'],_0x52b4fd,_0x31590e);return(0x0,e['sequenceExecute'])(_0x15eaa9,_0x5b05ea[_0x1e96b9(0x278)](e[_0x1e96b9(0x293)]))[_0x1e96b9(0x25c)]?(_0x5b05ea[_0x1e96b9(0x278)](e['IUndoRedoService'])[_0x1e96b9(0x20d)]({'unitID':_0x2652b3,'undoMutations':_0x3aff1a,'redoMutations':_0x15eaa9}),!0x0):!0x1;}},B={'id':_0x1a5373(0x223),'type':e[_0x1a5373(0x1f7)][_0x1a5373(0x213)],'handler':(_0x239fac,_0xd7932b)=>{const _0x552472=_0x1a5373;let _0x17eca3=_0x239fac['get'](E),_0x34987a=_e(_0x17eca3['getOutlines'](_0xd7932b[_0x552472(0x286)],_0xd7932b[_0x552472(0x211)]),_0xd7932b);return _0x17eca3[_0x552472(0x294)](_0xd7932b[_0x552472(0x286)],_0xd7932b[_0x552472(0x211)],_0x34987a),!0x0;}};function _e(_0x1a1113,_0x590901){const _0x128e09=_0x1a5373;switch(_0x590901[_0x128e09(0x21a)]){case'insert':return _0x590901['restoreOutlines']?ve(_0x1a1113,_0x590901):v(_0x1a1113,_0x590901);case _0x128e09(0x26d):return y(_0x1a1113,_0x590901);case _0x128e09(0x25d):return b(_0x1a1113,_0x590901);}}function ve(_0x35c59a,_0x21e464){const _0x420886=_0x1a5373;return[..._0x35c59a[_0x420886(0x23e)](_0x5ef2b9=>_0x5ef2b9['unitId']!==_0x21e464[_0x420886(0x286)]||_0x5ef2b9[_0x420886(0x211)]!==_0x21e464[_0x420886(0x211)]||_0x5ef2b9[_0x420886(0x215)]!==_0x21e464[_0x420886(0x215)]),..._0x21e464['restoreOutlines']];}const V=_0x1a5373(0x228);var ye=_0x1a5373(0x25a),be=_0x1a5373(0x216);const H={};function U(_0x407c7d,_0x532891){return function(_0x36dc3d,_0x1ae980){_0x532891(_0x36dc3d,_0x1ae980,_0x407c7d);};}function W(_0x1a16c7,_0x2b3c08,_0x5f0b68,_0x2b8f5d){const _0x50b0e2=_0x1a5373;var _0x14e632=arguments['length'],_0x4b1479=_0x14e632<0x3?_0x2b3c08:_0x2b8f5d===null?_0x2b8f5d=Object[_0x50b0e2(0x257)](_0x2b3c08,_0x5f0b68):_0x2b8f5d,_0x3068de;if(typeof Reflect==_0x50b0e2(0x248)&&typeof Reflect['decorate']==_0x50b0e2(0x1ea))_0x4b1479=Reflect['decorate'](_0x1a16c7,_0x2b3c08,_0x5f0b68,_0x2b8f5d);else{for(var _0x133759=_0x1a16c7[_0x50b0e2(0x2a3)]-0x1;_0x133759>=0x0;_0x133759--)(_0x3068de=_0x1a16c7[_0x133759])&&(_0x4b1479=(_0x14e632<0x3?_0x3068de(_0x4b1479):_0x14e632>0x3?_0x3068de(_0x2b3c08,_0x5f0b68,_0x4b1479):_0x3068de(_0x2b3c08,_0x5f0b68))||_0x4b1479);}return _0x14e632>0x3&&_0x4b1479&&Object[_0x50b0e2(0x26a)](_0x2b3c08,_0x5f0b68,_0x4b1479),_0x4b1479;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e[_0x1a5373(0x247)]{constructor(_0x3a0149,_0x46119c,_0x561f40,_0x51e4ff){const _0x36fca0=_0x1a5373;super(),this['_univerInstanceService']=_0x3a0149,this['_sheetInterceptorService']=_0x46119c,this['_sheetsOutlineModel']=_0x561f40,this[_0x36fca0(0x1ee)]=_0x51e4ff,this['_initCommandInterceptor']();}[_0x1a5373(0x2a4)](){const _0x38d13d=_0x1a5373;this['disposeWithMe'](this[_0x38d13d(0x254)]['interceptCommand']({'getMutations':_0x3e8cb9=>xe(_0x3e8cb9,(_0xbe6dd5,_0x14c303)=>this[_0x38d13d(0x244)][_0x38d13d(0x1e8)](_0xbe6dd5,_0x14c303),this[_0x38d13d(0x21e)](_0x3e8cb9['params']),_0x3277f0=>this[_0x38d13d(0x1ee)][_0x38d13d(0x230)](_0x3277f0))}));}[_0x1a5373(0x21e)](_0x5c8ee2){const _0x572dea=_0x1a5373;let _0x3bd7bf=_0x5c8ee2,_0x2a8ef4=_0x3bd7bf!=null&&_0x3bd7bf[_0x572dea(0x286)]?this[_0x572dea(0x25b)]['getUniverSheetInstance'](_0x3bd7bf['unitId']):this[_0x572dea(0x25b)][_0x572dea(0x261)](e[_0x572dea(0x232)]['UNIVER_SHEET']);if(!_0x2a8ef4)return;let _0xd80538=_0x3bd7bf!=null&&_0x3bd7bf[_0x572dea(0x211)]?_0x2a8ef4['getSheetBySheetId'](_0x3bd7bf['subUnitId']):_0x2a8ef4['getActiveSheet']();if(_0xd80538)return{'unitId':_0x2a8ef4[_0x572dea(0x245)](),'subUnitId':_0xd80538[_0x572dea(0x20b)]()};}};K=W([U(0x0,e['IUniverInstanceService']),U(0x1,(0x0,e[_0x1a5373(0x285)])(t[_0x1a5373(0x1fa)])),U(0x2,(0x0,e[_0x1a5373(0x285)])(E)),U(0x3,(0x0,e[_0x1a5373(0x285)])(D))],K);function xe(_0x2969d1,_0x3f10db,_0x5941b0,_0x178999){const _0x16b8ee=_0x1a5373;let _0x395db9=Ce(_0x2969d1,_0x5941b0);if(!_0x395db9)return Z();let _0xe44e9c=_0x3f10db(_0x395db9[_0x16b8ee(0x286)],_0x395db9[_0x16b8ee(0x211)]);if(!_0xe44e9c[_0x16b8ee(0x251)](_0x3d9434=>_0x3d9434['axis']===_0x395db9[_0x16b8ee(0x215)]))return Z();Se(_0xe44e9c,_0x395db9,_0x2969d1['id'],_0x178999);let _0x50fc71=we(_0x395db9,_0xe44e9c);return{'redos':[{'id':B['id'],'params':_0x395db9}],'undos':[{'id':B['id'],'params':_0x50fc71}],'preRedos':[],'preUndos':[]};}function Se(_0x113dc2,_0x23b97a,_0x292558,_0x3cdcc7){const _0x51a9c7=_0x1a5373;try{switch(_0x23b97a['type']){case _0x51a9c7(0x266):v(_0x113dc2,_0x23b97a);break;case'delete':y(_0x113dc2,_0x23b97a);break;case _0x51a9c7(0x25d):b(_0x113dc2,_0x23b97a);break;}}catch(_0x1f7ffb){throw _0x3cdcc7==null||_0x3cdcc7({'reason':c(_0x1f7ffb),'commandId':_0x292558,'unitId':_0x23b97a[_0x51a9c7(0x286)],'subUnitId':_0x23b97a[_0x51a9c7(0x211)],'axis':_0x23b97a['axis'],'outlineId':l(_0x1f7ffb)}),new e['CustomCommandExecutionError'](_0x1f7ffb instanceof Error?_0x1f7ffb[_0x51a9c7(0x239)]:'Invalid\x20dimension\x20outline\x20mutation');}}function Ce(_0x50fb0a,_0x757c02){const _0x109c53=_0x1a5373;switch(_0x50fb0a['id']){case t['InsertRowCommand']['id']:return q(_0x50fb0a[_0x109c53(0x203)],'row',_0x757c02);case t[_0x109c53(0x289)]['id']:return q(_0x50fb0a[_0x109c53(0x203)],_0x109c53(0x21f),_0x757c02);case t[_0x109c53(0x2b9)]['id']:return J(_0x50fb0a[_0x109c53(0x203)],_0x109c53(0x1f0),_0x757c02);case t['RemoveColCommand']['id']:return J(_0x50fb0a['params'],_0x109c53(0x21f),_0x757c02);case t[_0x109c53(0x23d)]['id']:return Y(_0x50fb0a[_0x109c53(0x203)],'row',_0x757c02);case t['MoveColsCommand']['id']:return Y(_0x50fb0a[_0x109c53(0x203)],_0x109c53(0x21f),_0x757c02);default:return null;}}function q(_0x3912a2,_0x1e2da0,_0xfbbef3){const _0x2fd583=_0x1a5373;let _0x19d0bf=X(_0x3912a2,_0xfbbef3);if(!(_0x3912a2!=null&&_0x3912a2[_0x2fd583(0x201)])||!_0x19d0bf)return null;let _0x3555f5=_0x1e2da0===_0x2fd583(0x1f0)?_0x3912a2[_0x2fd583(0x201)][_0x2fd583(0x274)]:_0x3912a2[_0x2fd583(0x201)][_0x2fd583(0x283)],_0x5856cc=_0x1e2da0===_0x2fd583(0x1f0)?_0x3912a2[_0x2fd583(0x201)][_0x2fd583(0x262)]:_0x3912a2['range'][_0x2fd583(0x24d)];return{..._0x19d0bf,'axis':_0x1e2da0,'type':_0x2fd583(0x266),'index':_0x3555f5,'count':_0x5856cc-_0x3555f5+0x1};}function J(_0x3b477d,_0x5c2864,_0x1eda5b){const _0x3bf05e=_0x1a5373;let _0xfa8a01=X(_0x3b477d,_0x1eda5b);if(!(_0x3b477d!=null&&_0x3b477d[_0x3bf05e(0x201)])||!_0xfa8a01)return null;let _0x5299d4=_0x5c2864===_0x3bf05e(0x1f0)?_0x3b477d[_0x3bf05e(0x201)]['startRow']:_0x3b477d[_0x3bf05e(0x201)][_0x3bf05e(0x283)],_0x54af61=_0x5c2864==='row'?_0x3b477d['range'][_0x3bf05e(0x262)]:_0x3b477d[_0x3bf05e(0x201)][_0x3bf05e(0x24d)];return{..._0xfa8a01,'axis':_0x5c2864,'type':'delete','start':_0x5299d4,'end':_0x54af61};}function Y(_0x5c692d,_0x22bc58,_0x3e8ec1){const _0x53d94c=_0x1a5373;let _0x2d46e7=X(_0x5c692d,_0x3e8ec1);if(!(_0x5c692d!=null&&_0x5c692d[_0x53d94c(0x252)])||!_0x5c692d[_0x53d94c(0x29d)]||!_0x2d46e7)return null;let _0x364efe=_0x22bc58===_0x53d94c(0x1f0)?_0x5c692d[_0x53d94c(0x252)][_0x53d94c(0x274)]:_0x5c692d[_0x53d94c(0x252)]['startColumn'],_0xfe4d44=_0x22bc58===_0x53d94c(0x1f0)?_0x5c692d[_0x53d94c(0x252)][_0x53d94c(0x262)]:_0x5c692d[_0x53d94c(0x252)][_0x53d94c(0x24d)],_0x1367ed=_0x22bc58===_0x53d94c(0x1f0)?_0x5c692d[_0x53d94c(0x29d)][_0x53d94c(0x274)]:_0x5c692d[_0x53d94c(0x29d)][_0x53d94c(0x283)];return{..._0x2d46e7,'axis':_0x22bc58,'type':_0x53d94c(0x25d),'sourceStart':_0x364efe,'sourceEnd':_0xfe4d44,'destinationIndex':_0x1367ed};}function we(_0x2841e6,_0x2c2b4c){const _0x4c55c6=_0x1a5373;switch(_0x2841e6[_0x4c55c6(0x21a)]){case _0x4c55c6(0x266):return{'unitId':_0x2841e6[_0x4c55c6(0x286)],'subUnitId':_0x2841e6[_0x4c55c6(0x211)],'axis':_0x2841e6['axis'],'type':_0x4c55c6(0x26d),'start':_0x2841e6[_0x4c55c6(0x22c)],'end':_0x2841e6[_0x4c55c6(0x22c)]+_0x2841e6[_0x4c55c6(0x236)]-0x1};case'delete':return{'unitId':_0x2841e6[_0x4c55c6(0x286)],'subUnitId':_0x2841e6[_0x4c55c6(0x211)],'axis':_0x2841e6[_0x4c55c6(0x215)],'type':'insert','index':_0x2841e6[_0x4c55c6(0x295)],'count':_0x2841e6['end']-_0x2841e6[_0x4c55c6(0x295)]+0x1,'restoreOutlines':_0x2c2b4c[_0x4c55c6(0x23e)](_0x370c77=>_0x370c77[_0x4c55c6(0x286)]===_0x2841e6[_0x4c55c6(0x286)]&&_0x370c77[_0x4c55c6(0x211)]===_0x2841e6['subUnitId']&&_0x370c77['axis']===_0x2841e6[_0x4c55c6(0x215)])};case _0x4c55c6(0x25d):return Te(_0x2841e6);}}function Te(_0xbf2a3c){const _0x1d70b6=_0x1a5373;let _0x237ae6=_0xbf2a3c[_0x1d70b6(0x1fe)]-_0xbf2a3c[_0x1d70b6(0x227)]+0x1;return _0xbf2a3c[_0x1d70b6(0x256)]>=_0xbf2a3c[_0x1d70b6(0x227)]&&_0xbf2a3c[_0x1d70b6(0x256)]<=_0xbf2a3c[_0x1d70b6(0x1fe)]+0x1?{..._0xbf2a3c}:_0xbf2a3c['destinationIndex']>_0xbf2a3c[_0x1d70b6(0x1fe)]+0x1?{..._0xbf2a3c,'sourceStart':_0xbf2a3c[_0x1d70b6(0x256)]-_0x237ae6,'sourceEnd':_0xbf2a3c[_0x1d70b6(0x256)]-0x1,'destinationIndex':_0xbf2a3c[_0x1d70b6(0x227)]}:{..._0xbf2a3c,'sourceStart':_0xbf2a3c['destinationIndex'],'sourceEnd':_0xbf2a3c[_0x1d70b6(0x256)]+_0x237ae6-0x1,'destinationIndex':_0xbf2a3c[_0x1d70b6(0x1fe)]+0x1};}function X(_0x2e572f,_0xfcb03a){const _0x17ab76=_0x1a5373;var _0xcf2d2a,_0x1c2f7c;let _0x2b26bd=(_0xcf2d2a=_0x2e572f==null?void 0x0:_0x2e572f[_0x17ab76(0x286)])==null?_0xfcb03a==null?void 0x0:_0xfcb03a[_0x17ab76(0x286)]:_0xcf2d2a,_0x43de74=(_0x1c2f7c=_0x2e572f==null?void 0x0:_0x2e572f['subUnitId'])==null?_0xfcb03a==null?void 0x0:_0xfcb03a[_0x17ab76(0x211)]:_0x1c2f7c;return _0x2b26bd&&_0x43de74?{'unitId':_0x2b26bd,'subUnitId':_0x43de74}:null;}function Z(){const _0x54bc12=_0x1a5373;var _0x5ed845,_0x478705;return{'redos':[...G[_0x54bc12(0x296)]],'undos':[...G[_0x54bc12(0x2b7)]],'preRedos':[...(_0x5ed845=G[_0x54bc12(0x240)])==null?[]:_0x5ed845],'preUndos':[...(_0x478705=G[_0x54bc12(0x27d)])==null?[]:_0x478705]};}let Q=class extends e[_0x1a5373(0x247)]{constructor(_0x53332e,_0x46932b){const _0x4d4c87=_0x1a5373;super(),this[_0x4d4c87(0x24f)]=_0x53332e,this['_sheetsOutlineModel']=_0x46932b,this[_0x4d4c87(0x2b3)]();}['_initResource'](){const _0x20968a=_0x1a5373;this[_0x20968a(0x1e9)](this[_0x20968a(0x24f)]['registerPluginResource']({'pluginName':V,'businesses':[e[_0x20968a(0x232)][_0x20968a(0x273)]],'toJson':_0x392c25=>JSON[_0x20968a(0x27a)](this[_0x20968a(0x244)][_0x20968a(0x1f3)](_0x392c25)),'parseJson':_0x47e925=>JSON['parse'](_0x47e925),'onLoad':(_0x28b342,_0x5510e1)=>this[_0x20968a(0x244)][_0x20968a(0x2ba)](_0x28b342,_0x5510e1),'onUnLoad':_0xbfd438=>this['_sheetsOutlineModel'][_0x20968a(0x22b)](_0xbfd438)}));}};Q=W([U(0x0,e['IResourceManagerService']),U(0x1,(0x0,e[_0x1a5373(0x285)])(E))],Q);let $=class extends e[_0x1a5373(0x246)]{constructor(_0x198e43=H,_0x1fb30c,_0x11c50c,_0x322e05){const _0x1e86e0=_0x1a5373;super(),this[_0x1e86e0(0x272)]=_0x198e43,this[_0x1e86e0(0x20f)]=_0x1fb30c,this[_0x1e86e0(0x279)]=_0x11c50c,this['_configService']=_0x322e05;let {..._0x5595ef}=(0x0,e['merge'])({},H,this[_0x1e86e0(0x272)]);this['_configService'][_0x1e86e0(0x23c)](_0x1e86e0(0x229),_0x5595ef);}[_0x1a5373(0x290)](){const _0x5797bf=_0x1a5373;this[_0x5797bf(0x20f)][_0x5797bf(0x2ab)]([E]),this[_0x5797bf(0x20f)][_0x5797bf(0x2ab)]([D]),this[_0x5797bf(0x20f)][_0x5797bf(0x2ab)]([Q]),this[_0x5797bf(0x20f)][_0x5797bf(0x2ab)]([K]),this[_0x5797bf(0x2ac)](),this[_0x5797bf(0x20f)][_0x5797bf(0x278)](E),this[_0x5797bf(0x20f)]['get'](D),this[_0x5797bf(0x20f)]['get'](Q),this[_0x5797bf(0x20f)][_0x5797bf(0x278)](K);}[_0x1a5373(0x2ac)](){const _0x288b06=_0x1a5373;[j,P,z,N][_0x288b06(0x2b5)](_0x12c38e=>{const _0x1b9d05=_0x288b06;this[_0x1b9d05(0x1e9)](this[_0x1b9d05(0x279)]['registerCommand'](_0x12c38e));}),[O,k,F,M,B][_0x288b06(0x2b5)](_0x50de79=>{const _0x37e52f=_0x288b06;this[_0x37e52f(0x1e9)](this[_0x37e52f(0x279)][_0x37e52f(0x1fb)](_0x50de79));});}};T($,_0x1a5373(0x265),V),T($,_0x1a5373(0x28c),ye),T($,_0x1a5373(0x22d),be),T($,_0x1a5373(0x21a),e[_0x1a5373(0x232)][_0x1a5373(0x273)]),$=W([(0x0,e[_0x1a5373(0x205)])(i['UniverLicensePlugin']),U(0x1,(0x0,e[_0x1a5373(0x285)])(e[_0x1a5373(0x2af)])),U(0x2,e['ICommandService']),U(0x3,e[_0x1a5373(0x25f)])],$),exports[_0x1a5373(0x292)]=j,exports[_0x1a5373(0x24a)]=O,exports[_0x1a5373(0x20c)]=N,exports[_0x1a5373(0x26f)]=M,exports[_0x1a5373(0x255)]=a,exports[_0x1a5373(0x28d)]=o,exports[_0x1a5373(0x2b6)]=P,exports[_0x1a5373(0x231)]=k,exports['SHEET_OUTLINE_PLUGIN']=V,exports[_0x1a5373(0x221)]=z,exports[_0x1a5373(0x267)]=F,exports[_0x1a5373(0x28e)]=D,exports[_0x1a5373(0x22a)]=E,exports[_0x1a5373(0x253)]=B,Object[_0x1a5373(0x26a)](exports,_0x1a5373(0x212),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1a5373(0x21d)]=f,exports[_0x1a5373(0x235)]=p,exports[_0x1a5373(0x237)]=ue,exports['hasDimensionOutlineViewPermission']=A,exports[_0x1a5373(0x260)]=y,exports[_0x1a5373(0x1fd)]=v,exports[_0x1a5373(0x2b4)]=b;
1
+ const _0x567105=_0x334a;(function(_0x2848fd,_0x4c7231){const _0x1e00d8=_0x334a,_0x4e1f96=_0x2848fd();while(!![]){try{const _0x2d6cc1=-parseInt(_0x1e00d8(0x1db))/0x1*(parseInt(_0x1e00d8(0x17b))/0x2)+-parseInt(_0x1e00d8(0x238))/0x3+-parseInt(_0x1e00d8(0x20c))/0x4+-parseInt(_0x1e00d8(0x1d7))/0x5+-parseInt(_0x1e00d8(0x237))/0x6*(parseInt(_0x1e00d8(0x1de))/0x7)+-parseInt(_0x1e00d8(0x234))/0x8*(parseInt(_0x1e00d8(0x19b))/0x9)+parseInt(_0x1e00d8(0x173))/0xa;if(_0x2d6cc1===_0x4c7231)break;else _0x4e1f96['push'](_0x4e1f96['shift']());}catch(_0x282c2a){_0x4e1f96['push'](_0x4e1f96['shift']());}}}(_0x5a17,0x468a7),Object['defineProperty'](exports,Symbol[_0x567105(0x239)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x307768){const _0x3dc115=_0x567105;return _0x307768[_0x3dc115(0x227)]=_0x3dc115(0x241),_0x307768[_0x3dc115(0x22d)]=_0x3dc115(0x195),_0x307768;}({}),o=function(_0x18e5fb){const _0x49771c=_0x567105;return _0x18e5fb[_0x49771c(0x215)]='invalid-range',_0x18e5fb['OUT_OF_BOUNDS']=_0x49771c(0x192),_0x18e5fb[_0x49771c(0x229)]=_0x49771c(0x1ff),_0x18e5fb[_0x49771c(0x1b0)]=_0x49771c(0x1eb),_0x18e5fb['MOVE_SPLITS_OUTLINE']=_0x49771c(0x1e5),_0x18e5fb['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x49771c(0x203),_0x18e5fb[_0x49771c(0x176)]='unknown',_0x18e5fb;}({});var s=class extends Error{constructor(_0x3879ca,_0x51d1ff,_0x2d5576){const _0x3272b9=_0x567105;super(_0x51d1ff),this[_0x3272b9(0x1bb)]=_0x3879ca,this[_0x3272b9(0x1f8)]=_0x2d5576,this['name']='DimensionOutlineError';}};function c(_0x529530){const _0x5b2569=_0x567105;return _0x529530 instanceof s?_0x529530[_0x5b2569(0x1bb)]:_0x529530 instanceof Error?_0x529530[_0x5b2569(0x1a9)][_0x5b2569(0x1f9)](_0x5b2569(0x1b2))?_0x5b2569(0x1e5):_0x529530['message'][_0x5b2569(0x1f9)]('depth')?_0x5b2569(0x1eb):_0x529530[_0x5b2569(0x1a9)][_0x5b2569(0x1f9)](_0x5b2569(0x1f3))?_0x5b2569(0x1ff):_0x529530['message'][_0x5b2569(0x1f9)](_0x5b2569(0x1ca))?_0x5b2569(0x17a):_0x5b2569(0x23e):_0x5b2569(0x23e);}function l(_0x518ad8){const _0x492acb=_0x567105;return _0x518ad8 instanceof s?_0x518ad8[_0x492acb(0x1f8)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x1c0c93,_0x2a29fe){const _0x42edbc=_0x567105;return _0x1c0c93[_0x42edbc(0x209)]===_0x2a29fe['unitId']&&_0x1c0c93['subUnitId']===_0x2a29fe['subUnitId']&&_0x1c0c93[_0x42edbc(0x20f)]===_0x2a29fe[_0x42edbc(0x20f)];}function f(_0x420deb,_0xd2edb3={}){const _0x67b5a2=_0x567105;var _0x1c0abf;let _0x38dabd=(_0x1c0abf=_0xd2edb3[_0x67b5a2(0x1df)])==null?0x8:_0x1c0abf,_0x4b64fe=new Map();for(let _0x39129c of _0x420deb){let _0x54b917=_0x39129c['unitId']+':'+_0x39129c[_0x67b5a2(0x1ce)]+':'+_0x39129c[_0x67b5a2(0x20f)],_0x2a9b46=_0x4b64fe['get'](_0x54b917);_0x2a9b46?_0x2a9b46[_0x67b5a2(0x1f0)](_0x39129c):_0x4b64fe['set'](_0x54b917,[_0x39129c]);}let _0x870a6d=[];for(let _0x70afa9 of _0x4b64fe[_0x67b5a2(0x1ba)]()){let _0x3de7fe=[..._0x70afa9]['sort'](C),_0x5b2084=[];for(let _0x50f684 of _0x3de7fe){for(oe(_0x50f684);_0x5b2084[_0x67b5a2(0x1c4)]>0x0&&_0x50f684[_0x67b5a2(0x231)]>_0x5b2084[_0x5b2084[_0x67b5a2(0x1c4)]-0x1][_0x67b5a2(0x226)];)_0x5b2084[_0x67b5a2(0x19e)]();let _0x590d2b=_0x5b2084[_0x5b2084[_0x67b5a2(0x1c4)]-0x1];if(_0x590d2b&&_0x50f684['end']>_0x590d2b[_0x67b5a2(0x226)])throw new s(_0x67b5a2(0x1ff),_0x67b5a2(0x204),_0x50f684['id']);let _0x163e62=_0x590d2b?_0x590d2b['depth']+0x1:0x1;if(_0x163e62>_0x38dabd)throw new s(_0x67b5a2(0x1eb),_0x67b5a2(0x181)+_0x38dabd,_0x50f684['id']);let _0x2a3992={..._0x50f684,'depth':_0x163e62,'parentId':_0x590d2b==null?void 0x0:_0x590d2b['id'],'anchor':_0x50f684[_0x67b5a2(0x226)],'children':[]};_0x590d2b?_0x590d2b[_0x67b5a2(0x213)][_0x67b5a2(0x1f0)](_0x2a3992):_0x870a6d['push'](_0x2a3992),_0x5b2084[_0x67b5a2(0x1f0)](_0x2a3992);}}return _0x870a6d;}function p(_0x100c47,_0x5b3a13,_0x323928={}){const _0x1a0346=_0x567105;if(_0x5b3a13[_0x1a0346(0x231)]<0x0||_0x5b3a13['start']>_0x5b3a13[_0x1a0346(0x226)])return{'valid':!0x1,'reason':_0x1a0346(0x17a)};if(_0x323928[_0x1a0346(0x1ad)]!=null&&_0x5b3a13[_0x1a0346(0x226)]>=_0x323928[_0x1a0346(0x1ad)])return{'valid':!0x1,'reason':_0x1a0346(0x192)};let _0x683b46=_0x100c47['filter'](_0x4ebf15=>d(_0x4ebf15,_0x5b3a13));for(let _0x3b2062 of _0x683b46)if(se(_0x3b2062,_0x5b3a13))return{'valid':!0x1,'reason':_0x1a0346(0x1ff)};try{f([..._0x100c47,_0x5b3a13],_0x323928);}catch(_0x2ef0ed){let _0x5c77e1=c(_0x2ef0ed);return _0x5c77e1===_0x1a0346(0x1eb)?{'valid':!0x1,'reason':'max-depth'}:_0x5c77e1===_0x1a0346(0x17a)?{'valid':!0x1,'reason':_0x1a0346(0x17a)}:{'valid':!0x1,'reason':_0x1a0346(0x1ff)};}return{'valid':!0x0};}function m(_0x588055,_0x1e594d,_0x5f39b6={}){const _0x47d1a5=_0x567105;let _0x5ad106=p(_0x588055,_0x1e594d,_0x5f39b6);if(!_0x5ad106[_0x47d1a5(0x18d)]){var _0x8e14d6;throw Error((_0x8e14d6=_0x5ad106[_0x47d1a5(0x1bb)])==null?_0x47d1a5(0x1b8):_0x8e14d6);}return[..._0x588055,_0x1e594d];}function ee(_0x46024a,_0x2f08b6){const _0x1bb828=_0x567105;let _0x541bae=_0x2f08b6[_0x1bb828(0x231)],_0x27d350=_0x2f08b6[_0x1bb828(0x226)],_0x1b3f46=[],_0x73c780=!0x0;for(;_0x73c780;){_0x73c780=!0x1;for(let _0xe1626f of _0x46024a)_0x1b3f46[_0x1bb828(0x1f9)](_0xe1626f)||!d(_0xe1626f,_0x2f08b6)||!ie(_0xe1626f['start'],_0xe1626f[_0x1bb828(0x226)],_0x541bae,_0x27d350)||(_0x1b3f46['push'](_0xe1626f),_0x541bae=Math[_0x1bb828(0x1d6)](_0x541bae,_0xe1626f['start']),_0x27d350=Math[_0x1bb828(0x20b)](_0x27d350,_0xe1626f[_0x1bb828(0x226)]),_0x73c780=!0x0);}if(_0x1b3f46[_0x1bb828(0x1c4)]===0x0)return null;let [_0x597b4c]=[..._0x1b3f46][_0x1bb828(0x17e)](C);return{'mergedOutline':{..._0x597b4c,'start':_0x541bae,'end':_0x27d350},'mergedOutlines':_0x1b3f46};}function h(_0x3a79b4,_0x533944){const _0x2496eb=_0x567105;return _0x3a79b4['filter'](_0x490f32=>d(_0x490f32,_0x533944)?!(_0x490f32[_0x2496eb(0x231)]>=_0x533944[_0x2496eb(0x231)]&&_0x490f32[_0x2496eb(0x226)]<=_0x533944[_0x2496eb(0x226)]):!0x0);}function _0x5a17(){const _0x5b2bb9=['error$','IUniverInstanceService','restoreOutlines','IPermissionService','ClearDimensionOutlinesCommand','_initResource','sheet.mutation.remove-dimension-outline','IResourceManagerService','setOutlines','_sheetsOutlineErrorService','string','Injector','count','getSheetCommandTarget','default','dispose','end','ROW','preRedos','CROSSING','startWith','packageName','emit','COLUMN','UNIVER_SHEET','generateRandomId','outline','start','collapsed','forEach','88Bgdeqp','getUnitOutlines','IUndoRedoService','6psIqSa','303624VFNjXN','toStringTag','COMMAND','getActiveSheet','onStarting','interceptCommand','unknown','toPrimitive','constructor','row','getDimensionOutlineViewPermission$','_resourceManagerService','transformOutlinesByInsert','find','version','SetRowVisibleMutation','sourceStart','14382590ZIPTuK','Move\x20would\x20split\x20dimension\x20outline:\x20','Invalid\x20dimension\x20outline\x20mutation','UNKNOWN','registerCommand','buildDimensionOutlineTree','defineProperty','invalid-range','10wiczGw','setConfig','SetDimensionOutlineCollapsedMutation','sort','fromRange','getOutlines','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','canAddDimensionOutline','RemoveRowCommand','SheetPermissionCheckController','WorksheetViewPermission','RemoveColCommand','complete','delete','SetColHiddenMutation','Subject','undos','sheet.mutation.set-dimension-outline-collapsed','valid','SHEET_OUTLINE_PLUGIN','_configService','UniverSheetsOutlinePlugin','filter','out-of-bounds','DependentOn','CommandType','column','_commandService','MoveRowsCommand','get','sheet.command.add-dimension-outline','deserialize','34488uGtIyw','sheet.mutation.clear-dimension-outlines','getUniverSheetInstance','pop','has','join','UniverLicensePlugin','sheet.command.set-dimension-outline-collapsed','DimensionOutlineErrorReason','Disposable','endColumn','hasDimensionOutlineViewPermission','InsertColCommand','getUnitId','message','dimension-outline-','_error$','Plugin','maxIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheet.command.remove-dimension-outline','MAX_DEPTH','sequenceExecute','split\x20dimension\x20outline','object','getRowCount','asObservable','UniverInstanceType','stringify','invalid-dimension-outline','function','values','reason','_outlines','_ensureUnitOutlines','serialize','permissionCheckWithoutRange','offset','startRow','clear','permissionPointUpdate$','length','_univerInstanceService','merge','MUTATION','some','localeCompare','range','split','change$','startColumn','subUnitId','SheetsOutlineErrorService','add','next','pushUndoRedo','Invalid\x20dimension\x20outline\x20move\x20source\x20range','getCurrentUnitOfType','preUndos','min','1728650UYudtR','_change$','move','destinationIndex','24811BvaBVy','decorate','index','1581454TLdSVw','maxDepth','sheet.mutation.add-dimension-outline','sourceEnd','sheet.mutation.transform-dimension-outlines','registerPluginResource','type','move-splits-outline','params','pipe','transformOutlinesByDelete','getColumnCount','pluginName','max-depth','ICommandService','_config','Invalid\x20outline\x20range','_getCommandScope','push','CustomCommandExecutionError','IConfigService','Crossing','WorkbookViewPermission','result','AddDimensionOutlineCommand','removeUnit','outlineId','includes','_injector','1.0.0-alpha.6','_initCommandInterceptor','RemoveDimensionOutlineMutation','MoveColsCommand','crossing','Inject','redos','_sheetsOutlineModel','clear-range-not-contain-outline','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_sheetInterceptorService','set','AddDimensionOutlineMutation','getMaxColumns','unitId','insert','max','1241028fABImI','disposeWithMe','endRow','axis','map','TransformDimensionOutlinesMutation','toRange','children','symbol','INVALID_RANGE'];_0x5a17=function(){return _0x5b2bb9;};return _0x5a17();}function g(_0xb91551,_0x443076,_0x289d46,_0x1fcb0a){const _0x501b72=_0x567105;return _(_0xb91551[_0x501b72(0x191)](_0x53784f=>_0x53784f[_0x501b72(0x209)]===_0x443076&&_0x53784f[_0x501b72(0x1ce)]===_0x289d46&&_0x53784f['axis']===_0x1fcb0a&&_0x53784f[_0x501b72(0x232)])['map'](_0x19c634=>({'start':_0x19c634[_0x501b72(0x231)],'end':_0x19c634[_0x501b72(0x226)]})));}function _(_0x34aece){const _0x1ea8a1=_0x567105;if(_0x34aece[_0x1ea8a1(0x1c4)]===0x0)return[];let _0x7afb23=[..._0x34aece][_0x1ea8a1(0x17e)]((_0x1ca3f3,_0x102068)=>_0x1ca3f3[_0x1ea8a1(0x231)]-_0x102068['start']||_0x1ca3f3[_0x1ea8a1(0x226)]-_0x102068['end']),_0x5b374f=[];for(let _0x1f24ef of _0x7afb23){let _0x294d1d=_0x5b374f[_0x5b374f['length']-0x1];!_0x294d1d||_0x1f24ef['start']>_0x294d1d[_0x1ea8a1(0x226)]+0x1?_0x5b374f['push']({..._0x1f24ef}):_0x294d1d[_0x1ea8a1(0x226)]=Math[_0x1ea8a1(0x20b)](_0x294d1d[_0x1ea8a1(0x226)],_0x1f24ef[_0x1ea8a1(0x226)]);}return _0x5b374f;}function v(_0xa4fb02,_0x3b8c14){const _0x41fa93=_0x567105;return _0x3b8c14[_0x41fa93(0x222)]<=0x0?_0xa4fb02:S(_0xa4fb02['map'](_0x1c2564=>d(_0x1c2564,_0x3b8c14)?_0x3b8c14['index']<=_0x1c2564[_0x41fa93(0x231)]?{..._0x1c2564,'start':_0x1c2564['start']+_0x3b8c14[_0x41fa93(0x222)],'end':_0x1c2564['end']+_0x3b8c14[_0x41fa93(0x222)]}:_0x1c2564[_0x41fa93(0x231)]<_0x3b8c14[_0x41fa93(0x1dd)]&&_0x3b8c14[_0x41fa93(0x1dd)]<=_0x1c2564[_0x41fa93(0x226)]?{..._0x1c2564,'end':_0x1c2564[_0x41fa93(0x226)]+_0x3b8c14[_0x41fa93(0x222)]}:_0x1c2564:_0x1c2564));}function y(_0x56d155,_0x149b2c){const _0x51434=_0x567105;if(_0x149b2c[_0x51434(0x231)]>_0x149b2c['end'])return _0x56d155;let _0x2ff629=_0x149b2c['end']-_0x149b2c['start']+0x1,_0x16c537=[];for(let _0x5f0b53 of _0x56d155){if(!d(_0x5f0b53,_0x149b2c)){_0x16c537[_0x51434(0x1f0)](_0x5f0b53);continue;}if(_0x5f0b53['end']<_0x149b2c[_0x51434(0x231)]){_0x16c537[_0x51434(0x1f0)](_0x5f0b53);continue;}if(_0x5f0b53[_0x51434(0x231)]>_0x149b2c[_0x51434(0x226)]){_0x16c537[_0x51434(0x1f0)]({..._0x5f0b53,'start':_0x5f0b53['start']-_0x2ff629,'end':_0x5f0b53[_0x51434(0x226)]-_0x2ff629});continue;}let _0x58545a=Math[_0x51434(0x20b)](_0x5f0b53[_0x51434(0x231)],_0x149b2c[_0x51434(0x231)]),_0x116437=Math[_0x51434(0x1d6)](_0x5f0b53[_0x51434(0x226)],_0x149b2c['end']),_0xde9952=Math['max'](0x0,_0x116437-_0x58545a+0x1),_0x3b33a9=_0x5f0b53['end']-_0x5f0b53[_0x51434(0x231)]+0x1-_0xde9952;if(_0x3b33a9<=0x0)continue;let _0x1eefe7=_0x5f0b53[_0x51434(0x231)]<_0x149b2c[_0x51434(0x231)]?_0x5f0b53['start']:_0x149b2c[_0x51434(0x231)];_0x16c537[_0x51434(0x1f0)]({..._0x5f0b53,'start':_0x1eefe7,'end':_0x1eefe7+_0x3b33a9-0x1});}return S(_0x16c537);}function b(_0x4178a6,_0x2a6c7c){const _0x2fde73=_0x567105;if(_0x2a6c7c['sourceStart']>_0x2a6c7c[_0x2fde73(0x1e1)])return _0x4178a6;let _0xb42523=[];for(let _0x9787bf of _0x4178a6){if(!d(_0x9787bf,_0x2a6c7c)){_0xb42523[_0x2fde73(0x1f0)](_0x9787bf);continue;}let _0x4dacfd=x(_0x9787bf,_0x2a6c7c);if(_0x4dacfd[_0x2fde73(0x1e4)]==='split')throw new s(_0x2fde73(0x1e5),_0x2fde73(0x174)+_0x9787bf['id'],_0x9787bf['id']);_0xb42523['push'](_0x4dacfd[_0x2fde73(0x230)]);}return S(_0xb42523);}function x(_0x148849,_0x3ce530){const _0x27bc7c=_0x567105;let _0x19774a=te(_0x3ce530[_0x27bc7c(0x172)],_0x3ce530[_0x27bc7c(0x1e1)]+0x1,_0x3ce530[_0x27bc7c(0x1da)]),_0x296bb9=[],_0x43b8dc={'start':_0x148849[_0x27bc7c(0x231)],'end':_0x148849[_0x27bc7c(0x226)]+0x1};for(let _0x5e84a0 of _0x19774a){let _0x40335c=ne(_0x43b8dc,_0x5e84a0['range']);_0x40335c&&_0x296bb9[_0x27bc7c(0x1f0)]({'start':_0x40335c[_0x27bc7c(0x231)]+_0x5e84a0[_0x27bc7c(0x1c0)],'end':_0x40335c[_0x27bc7c(0x226)]+_0x5e84a0[_0x27bc7c(0x1c0)]});}let _0xf97ff4=re(_0x296bb9);return _0xf97ff4['length']===0x1?{'type':'ok','outline':{..._0x148849,'start':_0xf97ff4[0x0][_0x27bc7c(0x231)],'end':_0xf97ff4[0x0][_0x27bc7c(0x226)]-0x1}}:{'type':_0x27bc7c(0x1cb),'outline':_0x148849,'ranges':_0xf97ff4};}function te(_0x146e64,_0x4fb961,_0x32da07){const _0x3d2d78=_0x567105;let _0x6897=_0x4fb961-_0x146e64;if(_0x6897<=0x0)throw Error(_0x3d2d78(0x1d3));return _0x32da07>=_0x146e64&&_0x32da07<=_0x4fb961?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x32da07<_0x146e64?[{'range':{'start':0x0,'end':_0x32da07},'offset':0x0},{'range':{'start':_0x32da07,'end':_0x146e64},'offset':_0x6897},{'range':{'start':_0x146e64,'end':_0x4fb961},'offset':_0x32da07-_0x146e64},{'range':{'start':_0x4fb961,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x146e64},'offset':0x0},{'range':{'start':_0x146e64,'end':_0x4fb961},'offset':_0x32da07-_0x4fb961},{'range':{'start':_0x4fb961,'end':_0x32da07},'offset':-_0x6897},{'range':{'start':_0x32da07,'end':u},'offset':0x0}];}function _0x334a(_0x40f20c,_0x5e20dc){_0x40f20c=_0x40f20c-0x16c;const _0x5a170f=_0x5a17();let _0x334a21=_0x5a170f[_0x40f20c];return _0x334a21;}function ne(_0x51aaab,_0x404753){const _0x1278ad=_0x567105;let _0x511792=Math[_0x1278ad(0x20b)](_0x51aaab[_0x1278ad(0x231)],_0x404753[_0x1278ad(0x231)]),_0x5ba23c=Math['min'](_0x51aaab[_0x1278ad(0x226)],_0x404753['end']);return _0x511792>=_0x5ba23c?null:{'start':_0x511792,'end':_0x5ba23c};}function re(_0x151a05){const _0x43220c=_0x567105;if(_0x151a05[_0x43220c(0x1c4)]===0x0)return[];let _0x490b1b=[..._0x151a05][_0x43220c(0x17e)]((_0x1b4720,_0x170997)=>_0x1b4720['start']-_0x170997[_0x43220c(0x231)]||_0x1b4720[_0x43220c(0x226)]-_0x170997[_0x43220c(0x226)]),_0x1b4604=[];for(let _0x46e010 of _0x490b1b){let _0x439015=_0x1b4604[_0x1b4604[_0x43220c(0x1c4)]-0x1];!_0x439015||_0x46e010[_0x43220c(0x231)]>_0x439015[_0x43220c(0x226)]?_0x1b4604[_0x43220c(0x1f0)]({..._0x46e010}):_0x439015[_0x43220c(0x226)]=Math['max'](_0x439015['end'],_0x46e010[_0x43220c(0x226)]);}return _0x1b4604;}function ie(_0x2ad43a,_0x586221,_0x5e7fa6,_0x3317ba){return _0x586221+0x1===_0x5e7fa6||_0x3317ba+0x1===_0x2ad43a;}function S(_0x29afff){let _0x487b52=ae(_0x29afff);return f(_0x487b52),_0x487b52;}function ae(_0x17cd76){const _0x4ba0d7=_0x567105;let _0x239609=new Map();for(let _0x4d7953 of _0x17cd76){let _0x3c6ffc=[_0x4d7953[_0x4ba0d7(0x209)],_0x4d7953['subUnitId'],_0x4d7953['axis'],_0x4d7953[_0x4ba0d7(0x231)],_0x4d7953[_0x4ba0d7(0x226)]][_0x4ba0d7(0x1a0)](':'),_0x2378c3=_0x239609[_0x4ba0d7(0x198)](_0x3c6ffc);if(!_0x2378c3){_0x239609[_0x4ba0d7(0x206)](_0x3c6ffc,_0x4d7953);continue;}_0x239609[_0x4ba0d7(0x206)](_0x3c6ffc,{..._0x2378c3,'collapsed':_0x2378c3[_0x4ba0d7(0x232)]||_0x4d7953['collapsed']});}return Array['from'](_0x239609[_0x4ba0d7(0x1ba)]());}function C(_0x12d401,_0x512925){const _0x22f808=_0x567105;return _0x12d401[_0x22f808(0x209)]===_0x512925[_0x22f808(0x209)]?_0x12d401['subUnitId']===_0x512925[_0x22f808(0x1ce)]?_0x12d401[_0x22f808(0x20f)]===_0x512925[_0x22f808(0x20f)]?_0x12d401[_0x22f808(0x231)]===_0x512925[_0x22f808(0x231)]?_0x512925[_0x22f808(0x226)]-_0x12d401['end']:_0x12d401[_0x22f808(0x231)]-_0x512925[_0x22f808(0x231)]:_0x12d401['axis'][_0x22f808(0x1c9)](_0x512925['axis']):_0x12d401['subUnitId'][_0x22f808(0x1c9)](_0x512925['subUnitId']):_0x12d401[_0x22f808(0x209)][_0x22f808(0x1c9)](_0x512925[_0x22f808(0x209)]);}function oe(_0x4fa46b){const _0x5bb1bb=_0x567105;if(_0x4fa46b[_0x5bb1bb(0x231)]>_0x4fa46b[_0x5bb1bb(0x226)])throw new s('invalid-range',_0x5bb1bb(0x1ee),_0x4fa46b['id']);}function se(_0x3fd40d,_0x4b8fbf){const _0x5e86fb=_0x567105;let _0x34502c=_0x3fd40d['start']<=_0x4b8fbf[_0x5e86fb(0x226)]&&_0x4b8fbf[_0x5e86fb(0x231)]<=_0x3fd40d[_0x5e86fb(0x226)],_0x596d7b=_0x3fd40d[_0x5e86fb(0x231)]<=_0x4b8fbf['start']&&_0x4b8fbf['end']<=_0x3fd40d['end'],_0xd19f39=_0x4b8fbf[_0x5e86fb(0x231)]<=_0x3fd40d['start']&&_0x3fd40d['end']<=_0x4b8fbf[_0x5e86fb(0x226)];return _0x34502c&&!_0x596d7b&&!_0xd19f39;}function w(_0x1d4a8f){'@babel/helpers - typeof';const _0x3e29af=_0x567105;return w=typeof Symbol==_0x3e29af(0x1b9)&&typeof Symbol['iterator']==_0x3e29af(0x214)?function(_0x57695c){return typeof _0x57695c;}:function(_0x5eae66){const _0x2b1d7e=_0x3e29af;return _0x5eae66&&typeof Symbol==_0x2b1d7e(0x1b9)&&_0x5eae66[_0x2b1d7e(0x240)]===Symbol&&_0x5eae66!==Symbol['prototype']?'symbol':typeof _0x5eae66;},w(_0x1d4a8f);}function ce(_0x5b20b8,_0x5d2380){const _0x13193b=_0x567105;if(w(_0x5b20b8)!=_0x13193b(0x1b3)||!_0x5b20b8)return _0x5b20b8;var _0x216eab=_0x5b20b8[Symbol[_0x13193b(0x23f)]];if(_0x216eab!==void 0x0){var _0x5ec455=_0x216eab['call'](_0x5b20b8,_0x5d2380||_0x13193b(0x224));if(w(_0x5ec455)!=_0x13193b(0x1b3))return _0x5ec455;throw TypeError(_0x13193b(0x1ae));}return(_0x5d2380===_0x13193b(0x220)?String:Number)(_0x5b20b8);}function le(_0xc102f){const _0x565d56=_0x567105;var _0x310bf1=ce(_0xc102f,_0x565d56(0x220));return w(_0x310bf1)=='symbol'?_0x310bf1:_0x310bf1+'';}function T(_0x26578a,_0x25cd48,_0x22e3be){const _0x226c36=_0x567105;return(_0x25cd48=le(_0x25cd48))in _0x26578a?Object[_0x226c36(0x179)](_0x26578a,_0x25cd48,{'value':_0x22e3be,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x26578a[_0x25cd48]=_0x22e3be,_0x26578a;}var E=class extends e[_0x567105(0x1a4)]{constructor(..._0x1992a0){const _0x41b01c=_0x567105;super(..._0x1992a0),T(this,_0x41b01c(0x1bc),new Map()),T(this,_0x41b01c(0x1d8),new n[(_0x41b01c(0x18a))]()),T(this,_0x41b01c(0x1cc),this['_change$']['asObservable']());}[_0x567105(0x180)](_0x457f75,_0x4834ee){const _0x592b76=_0x567105;var _0x54634e,_0x182ca0;return[...(_0x54634e=(_0x182ca0=this['_outlines'][_0x592b76(0x198)](_0x457f75))==null?void 0x0:_0x182ca0[_0x592b76(0x198)](_0x4834ee))==null?[]:_0x54634e];}[_0x567105(0x235)](_0x556d70){const _0x5b7f05=_0x567105;let _0xdc1303=this[_0x5b7f05(0x1bc)]['get'](_0x556d70),_0x2f0b20=new Map();return _0xdc1303==null||_0xdc1303[_0x5b7f05(0x233)]((_0x33c06c,_0x4e11bb)=>{const _0x23ffd2=_0x5b7f05;_0x2f0b20[_0x23ffd2(0x206)](_0x4e11bb,[..._0x33c06c]);}),_0x2f0b20;}[_0x567105(0x21e)](_0x532493,_0x8d49cd,_0x42b652){const _0x35a5a9=_0x567105;this[_0x35a5a9(0x1bd)](_0x532493)[_0x35a5a9(0x206)](_0x8d49cd,[..._0x42b652]),this[_0x35a5a9(0x1d8)][_0x35a5a9(0x1d1)]({'unitId':_0x532493,'subUnitId':_0x8d49cd});}[_0x567105(0x1f7)](_0xc61c19){const _0x183a11=_0x567105;this[_0x183a11(0x1bc)][_0x183a11(0x188)](_0xc61c19),this[_0x183a11(0x1d8)][_0x183a11(0x1d1)]({'unitId':_0xc61c19});}[_0x567105(0x1be)](_0x848bc){const _0x532abc=_0x567105;let _0x1ddcdd=this['_outlines'][_0x532abc(0x198)](_0x848bc),_0x290220={};return _0x1ddcdd==null||_0x1ddcdd[_0x532abc(0x233)]((_0x11671f,_0x5c2cab)=>{_0x290220[_0x5c2cab]={'outlineList':[..._0x11671f]};}),_0x290220;}[_0x567105(0x19a)](_0x1f4c90,_0x584050){const _0x1b9c94=_0x567105;let _0x3e0707=new Map();Object['entries'](_0x584050)[_0x1b9c94(0x233)](([_0x19ac5b,_0x1dc4d0])=>{const _0x49522f=_0x1b9c94;var _0x3cc60f;_0x3e0707[_0x49522f(0x206)](_0x19ac5b,[...(_0x3cc60f=_0x1dc4d0['outlineList'])==null?[]:_0x3cc60f]);}),this[_0x1b9c94(0x1bc)][_0x1b9c94(0x206)](_0x1f4c90,_0x3e0707),this['_change$'][_0x1b9c94(0x1d1)]({'unitId':_0x1f4c90});}['dispose'](){const _0x245967=_0x567105;super[_0x245967(0x225)](),this[_0x245967(0x1bc)][_0x245967(0x1c2)](),this[_0x245967(0x1d8)][_0x245967(0x187)]();}[_0x567105(0x1bd)](_0x3e8800){const _0x1d1dce=_0x567105;let _0xe3331a=this[_0x1d1dce(0x1bc)][_0x1d1dce(0x198)](_0x3e8800);return _0xe3331a||(_0xe3331a=new Map(),this[_0x1d1dce(0x1bc)][_0x1d1dce(0x206)](_0x3e8800,_0xe3331a)),_0xe3331a;}},D=class extends e[_0x567105(0x1a4)]{constructor(..._0x1d32ab){const _0x476224=_0x567105;super(..._0x1d32ab),T(this,'_error$',new n[(_0x476224(0x18a))]()),T(this,_0x476224(0x216),this[_0x476224(0x1ab)][_0x476224(0x1b5)]());}['emit'](_0x3c46b2){const _0x1d519a=_0x567105;this[_0x1d519a(0x1ab)][_0x1d519a(0x1d1)](_0x3c46b2);}[_0x567105(0x225)](){const _0xee32=_0x567105;super[_0xee32(0x225)](),this[_0xee32(0x1ab)][_0xee32(0x187)]();}};const O={'id':_0x567105(0x1e0),'type':e[_0x567105(0x194)][_0x567105(0x1c7)],'handler':(_0x1a78f7,_0x5cdc78)=>{const _0x38b3b9=_0x567105;let _0x559d7f=_0x1a78f7[_0x38b3b9(0x198)](E),_0x1c8cd0=_0x559d7f['getOutlines'](_0x5cdc78[_0x38b3b9(0x209)],_0x5cdc78['subUnitId']);return _0x559d7f[_0x38b3b9(0x21e)](_0x5cdc78[_0x38b3b9(0x209)],_0x5cdc78[_0x38b3b9(0x1ce)],m(_0x1c8cd0,_0x5cdc78[_0x38b3b9(0x230)])),!0x0;}},k={'id':_0x567105(0x21c),'type':e[_0x567105(0x194)]['MUTATION'],'handler':(_0x52992b,_0x9423ff)=>{const _0x1080e7=_0x567105;let _0x5e99e3=_0x52992b[_0x1080e7(0x198)](E),_0x5866af=_0x5e99e3[_0x1080e7(0x180)](_0x9423ff[_0x1080e7(0x209)],_0x9423ff[_0x1080e7(0x1ce)]);return _0x5e99e3['setOutlines'](_0x9423ff[_0x1080e7(0x209)],_0x9423ff[_0x1080e7(0x1ce)],_0x5866af[_0x1080e7(0x191)](_0x5d4df8=>_0x5d4df8['id']!==_0x9423ff[_0x1080e7(0x1f8)])),!0x0;}};function A(_0x43ca18,_0x5223db,_0x5a263e){const _0x24b531=_0x567105;let _0x1fa3ab=de(_0x43ca18);return _0x1fa3ab?_0x1fa3ab[_0x24b531(0x1bf)]({'workbookTypes':[t[_0x24b531(0x1f4)]],'worksheetTypes':[t[_0x24b531(0x185)]]},_0x5223db,_0x5a263e):!0x0;}function ue(_0x203824,_0x39c325,_0x21a4d4){const _0x22eb66=_0x567105;var _0x1fbfbf;let _0xbf2040=fe(_0x203824);return((_0x1fbfbf=_0xbf2040==null?void 0x0:_0xbf2040[_0x22eb66(0x1c3)])==null?(0x0,n['of'])(null):_0x1fbfbf)[_0x22eb66(0x1e7)]((0x0,r['debounceTime'])(0x64),(0x0,r[_0x22eb66(0x22a)])(null),(0x0,r[_0x22eb66(0x210)])(()=>A(_0x203824,_0x39c325,_0x21a4d4)));}function de(_0x159390){const _0x545611=_0x567105;if(typeof _0x159390[_0x545611(0x19f)]==_0x545611(0x1b9)&&!_0x159390['has'](t[_0x545611(0x184)]))return null;try{return _0x159390['get'](t['SheetPermissionCheckController']);}catch{return null;}}function fe(_0x47dd71){const _0x29f3d3=_0x567105;if(typeof _0x47dd71[_0x29f3d3(0x19f)]==_0x29f3d3(0x1b9)&&!_0x47dd71[_0x29f3d3(0x19f)](e['IPermissionService']))return null;try{return _0x47dd71[_0x29f3d3(0x198)](e[_0x29f3d3(0x219)]);}catch{return null;}}const j={'id':_0x567105(0x199),'type':e[_0x567105(0x194)][_0x567105(0x23a)],'handler':(_0x55e411,_0xb7cd24)=>{const _0x85ea77=_0x567105;var _0x55480f,_0x253765;if(!_0xb7cd24)return!0x1;let _0x1c107b=(0x0,t[_0x85ea77(0x223)])(_0x55e411[_0x85ea77(0x198)](e['IUniverInstanceService']),_0xb7cd24);if(!_0x1c107b)return!0x1;let {unitId:_0x462b17,subUnitId:_0x44eb1f,worksheet:_0x1300b4}=_0x1c107b;if(!A(_0x55e411,_0x462b17,_0x44eb1f))return!0x1;let _0x2b428c=_0x55e411['get'](E),_0x38b911={'id':_0x85ea77(0x1aa)+(0x0,e[_0x85ea77(0x22f)])(0x6),'unitId':_0x462b17,'subUnitId':_0x44eb1f,'axis':_0xb7cd24[_0x85ea77(0x20f)],'start':_0xb7cd24[_0x85ea77(0x231)],'end':_0xb7cd24['end'],'collapsed':!0x1},_0x3a874b=_0xb7cd24[_0x85ea77(0x20f)]===_0x85ea77(0x241)?_0x1300b4[_0x85ea77(0x1b4)]():_0x1300b4[_0x85ea77(0x1e9)](),_0x53c8c7=_0x2b428c['getOutlines'](_0x462b17,_0x44eb1f),_0x2c5e81=ee(_0x53c8c7,_0x38b911),_0x10d732=(_0x55480f=_0x2c5e81==null?void 0x0:_0x2c5e81['mergedOutlines'])==null?[]:_0x55480f,_0x5a1c22=(_0x253765=_0x2c5e81==null?void 0x0:_0x2c5e81['mergedOutline'])==null?_0x38b911:_0x253765,_0x480ca8=p(_0x2c5e81?_0x53c8c7[_0x85ea77(0x191)](_0x9becd5=>!_0x10d732['some'](_0x4cadbf=>_0x4cadbf['id']===_0x9becd5['id'])):_0x53c8c7,_0x5a1c22,{'maxIndex':_0x3a874b});if(!_0x480ca8[_0x85ea77(0x18d)]){var _0x43f390;return _0x55e411['get'](D)['emit']({'reason':(_0x43f390=_0x480ca8[_0x85ea77(0x1bb)])==null?'unknown':_0x43f390,'commandId':j['id'],'unitId':_0x462b17,'subUnitId':_0x44eb1f,'axis':_0xb7cd24[_0x85ea77(0x20f)],'outlineId':_0x5a1c22['id']}),!0x1;}let _0x35d90f=[..._0x10d732[_0x85ea77(0x210)](_0x16fd16=>({'id':k['id'],'params':{'unitId':_0x462b17,'subUnitId':_0x44eb1f,'outlineId':_0x16fd16['id']}})),{'id':O['id'],'params':{'unitId':_0x462b17,'subUnitId':_0x44eb1f,'outline':_0x5a1c22}}],_0x2e1664=[{'id':k['id'],'params':{'unitId':_0x462b17,'subUnitId':_0x44eb1f,'outlineId':_0x5a1c22['id']}},..._0x10d732['map'](_0x3c9d90=>({'id':O['id'],'params':{'unitId':_0x462b17,'subUnitId':_0x44eb1f,'outline':_0x3c9d90}}))];return(0x0,e[_0x85ea77(0x1b1)])(_0x35d90f,_0x55e411[_0x85ea77(0x198)](e[_0x85ea77(0x1ec)]))['result']?(_0x55e411[_0x85ea77(0x198)](e['IUndoRedoService'])[_0x85ea77(0x1d2)]({'unitID':_0x462b17,'undoMutations':_0x2e1664,'redoMutations':_0x35d90f}),!0x0):!0x1;}},M={'id':_0x567105(0x19c),'type':e[_0x567105(0x194)][_0x567105(0x1c7)],'handler':(_0x2c69d6,_0x19d4d4)=>{const _0x59b9c7=_0x567105;let _0x108d13=_0x2c69d6[_0x59b9c7(0x198)](E),_0x182fa4=_0x108d13[_0x59b9c7(0x180)](_0x19d4d4[_0x59b9c7(0x209)],_0x19d4d4[_0x59b9c7(0x1ce)]);return _0x108d13[_0x59b9c7(0x21e)](_0x19d4d4[_0x59b9c7(0x209)],_0x19d4d4['subUnitId'],h(_0x182fa4,_0x19d4d4)),!0x0;}},N={'id':'sheet.command.clear-dimension-outlines','type':e[_0x567105(0x194)][_0x567105(0x23a)],'handler':(_0x387f33,_0xcaf5c9)=>{const _0x31e1dd=_0x567105;if(!_0xcaf5c9)return!0x1;let _0x25e114=(0x0,t[_0x31e1dd(0x223)])(_0x387f33[_0x31e1dd(0x198)](e[_0x31e1dd(0x217)]),_0xcaf5c9);if(!_0x25e114)return!0x1;let {unitId:_0x42f475,subUnitId:_0x4a644b}=_0x25e114;if(!A(_0x387f33,_0x42f475,_0x4a644b))return!0x1;let _0x3a2830={'unitId':_0x42f475,'subUnitId':_0x4a644b,'axis':_0xcaf5c9[_0x31e1dd(0x20f)],'start':_0xcaf5c9['start'],'end':_0xcaf5c9[_0x31e1dd(0x226)]},_0x36a1ce=_0x387f33[_0x31e1dd(0x198)](E)[_0x31e1dd(0x180)](_0x42f475,_0x4a644b)[_0x31e1dd(0x191)](_0x131aee=>d(_0x131aee,_0x3a2830)&&_0x131aee['start']>=_0xcaf5c9[_0x31e1dd(0x231)]&&_0x131aee[_0x31e1dd(0x226)]<=_0xcaf5c9['end']);if(_0x36a1ce[_0x31e1dd(0x1c4)]===0x0)return _0x387f33[_0x31e1dd(0x198)](D)[_0x31e1dd(0x22c)]({'reason':'clear-range-not-contain-outline','commandId':N['id'],'unitId':_0x42f475,'subUnitId':_0x4a644b,'axis':_0xcaf5c9[_0x31e1dd(0x20f)]}),!0x1;let _0x3d4966=[{'id':M['id'],'params':{..._0x3a2830,'removedOutlineIds':_0x36a1ce[_0x31e1dd(0x210)](_0x52d394=>_0x52d394['id'])}}],_0x3f05bf=_0x36a1ce['map'](_0x5cdf54=>({'id':O['id'],'params':{'unitId':_0x42f475,'subUnitId':_0x4a644b,'outline':_0x5cdf54}}));return(0x0,e[_0x31e1dd(0x1b1)])(_0x3d4966,_0x387f33[_0x31e1dd(0x198)](e[_0x31e1dd(0x1ec)]))[_0x31e1dd(0x1f5)]?(_0x387f33[_0x31e1dd(0x198)](e[_0x31e1dd(0x236)])[_0x31e1dd(0x1d2)]({'unitID':_0x42f475,'undoMutations':_0x3f05bf,'redoMutations':_0x3d4966}),!0x0):!0x1;}},P={'id':_0x567105(0x1af),'type':e[_0x567105(0x194)][_0x567105(0x23a)],'handler':(_0x5ae72e,_0x3da659)=>{const _0x4f0a58=_0x567105;if(!_0x3da659)return!0x1;let _0x1f825f=(0x0,t[_0x4f0a58(0x223)])(_0x5ae72e[_0x4f0a58(0x198)](e[_0x4f0a58(0x217)]),_0x3da659);if(!_0x1f825f)return!0x1;let {unitId:_0x51399b,subUnitId:_0x5484c2}=_0x1f825f;if(!A(_0x5ae72e,_0x51399b,_0x5484c2))return!0x1;let _0x18b3f3=_0x5ae72e[_0x4f0a58(0x198)](E)['getOutlines'](_0x51399b,_0x5484c2)[_0x4f0a58(0x16f)](_0x100ac7=>_0x100ac7['id']===_0x3da659[_0x4f0a58(0x1f8)]);if(!_0x18b3f3)return!0x1;let _0x37c9f4=[{'id':k['id'],'params':{'unitId':_0x51399b,'subUnitId':_0x5484c2,'outlineId':_0x18b3f3['id'],'outline':_0x18b3f3}}],_0x35751f=[{'id':O['id'],'params':{'unitId':_0x51399b,'subUnitId':_0x5484c2,'outline':_0x18b3f3}}];return(0x0,e[_0x4f0a58(0x1b1)])(_0x37c9f4,_0x5ae72e[_0x4f0a58(0x198)](e['ICommandService']))[_0x4f0a58(0x1f5)]?(_0x5ae72e[_0x4f0a58(0x198)](e[_0x4f0a58(0x236)])['pushUndoRedo']({'unitID':_0x51399b,'undoMutations':_0x35751f,'redoMutations':_0x37c9f4}),!0x0):!0x1;}},F={'id':_0x567105(0x18c),'type':e[_0x567105(0x194)][_0x567105(0x1c7)],'handler':(_0x163a21,_0x3ae443)=>{const _0x3c0b2c=_0x567105;let _0xeb930e=_0x163a21[_0x3c0b2c(0x198)](E),_0x1a6b4a=_0xeb930e[_0x3c0b2c(0x180)](_0x3ae443['unitId'],_0x3ae443['subUnitId']),_0x5dab81=_0x1a6b4a['find'](_0x255283=>_0x255283['id']===_0x3ae443['outlineId']);return _0x5dab81&&_0xeb930e[_0x3c0b2c(0x21e)](_0x3ae443[_0x3c0b2c(0x209)],_0x3ae443['subUnitId'],_0x1a6b4a[_0x3c0b2c(0x210)](_0x56d359=>_0x56d359['unitId']!==_0x5dab81[_0x3c0b2c(0x209)]||_0x56d359[_0x3c0b2c(0x1ce)]!==_0x5dab81[_0x3c0b2c(0x1ce)]||_0x56d359[_0x3c0b2c(0x20f)]!==_0x5dab81[_0x3c0b2c(0x20f)]||_0x56d359['start']!==_0x5dab81['start']||_0x56d359['end']!==_0x5dab81['end']?_0x56d359:{..._0x56d359,'collapsed':_0x3ae443[_0x3c0b2c(0x232)]})),!0x0;}};function I(_0x369102,_0x1cd603,_0x73a073,_0x4e1678){const _0x2002c3=_0x567105;return _0x369102==='row'?{'startRow':_0x1cd603,'endRow':_0x73a073,'startColumn':0x0,'endColumn':_0x4e1678[_0x2002c3(0x208)]()-0x1}:{'startRow':0x0,'endRow':_0x4e1678[_0x2002c3(0x1b4)]()-0x1,'startColumn':_0x1cd603,'endColumn':_0x73a073};}function pe(_0x415e96){const _0x2b936a=_0x567105;return _0x415e96===_0x2b936a(0x241)?t['SetRowHiddenMutation']['id']:t[_0x2b936a(0x189)]['id'];}function me(_0xc91388){const _0x4e11be=_0x567105;return _0xc91388==='row'?t[_0x4e11be(0x171)]['id']:t['SetColVisibleMutation']['id'];}function L(_0x3593ce,_0x14826b,_0x3931d3,_0x3eae6d){const _0x397781=_0x567105;let _0x27108b=_0x14826b?[I(_0x3593ce['axis'],_0x3593ce['start'],_0x3593ce[_0x397781(0x226)],_0x3931d3)]:he(_0x3593ce,_0x3eae6d,_0x3931d3),_0x52211d=_0x14826b?pe(_0x3593ce[_0x397781(0x20f)]):me(_0x3593ce['axis']);return[{'id':F['id'],'params':{'unitId':_0x3593ce[_0x397781(0x209)],'subUnitId':_0x3593ce['subUnitId'],'outlineId':_0x3593ce['id'],'outline':_0x3593ce,'collapsed':_0x14826b}},..._0x27108b[_0x397781(0x210)](_0x48589c=>({'id':_0x52211d,'params':{'unitId':_0x3593ce[_0x397781(0x209)],'subUnitId':_0x3593ce[_0x397781(0x1ce)],'ranges':[_0x48589c],'dimensionOutlineId':_0x3593ce['id']}}))];}function he(_0x5ed3b2,_0x591b0b,_0x3d6f69){const _0x140796=_0x567105;let _0x3f4cd0=g(_0x591b0b['map'](_0x5579a8=>R(_0x5579a8,_0x5ed3b2)?{..._0x5579a8,'collapsed':!0x1}:_0x5579a8),_0x5ed3b2['unitId'],_0x5ed3b2[_0x140796(0x1ce)],_0x5ed3b2['axis']);return ge({'start':_0x5ed3b2[_0x140796(0x231)],'end':_0x5ed3b2['end']},_0x3f4cd0)['map'](_0x174e8c=>I(_0x5ed3b2['axis'],_0x174e8c['start'],_0x174e8c['end'],_0x3d6f69));}function R(_0x42212e,_0x5c8fa8){const _0x52d1be=_0x567105;return _0x42212e['unitId']===_0x5c8fa8[_0x52d1be(0x209)]&&_0x42212e[_0x52d1be(0x1ce)]===_0x5c8fa8['subUnitId']&&_0x42212e[_0x52d1be(0x20f)]===_0x5c8fa8[_0x52d1be(0x20f)]&&_0x42212e['start']===_0x5c8fa8['start']&&_0x42212e[_0x52d1be(0x226)]===_0x5c8fa8[_0x52d1be(0x226)];}function ge(_0x4e1d61,_0x2248b0){const _0x192256=_0x567105;let _0x2ce993=_0x4e1d61['start'],_0x12fb0e=[];for(let _0x13e285 of _0x2248b0)if(!(_0x13e285[_0x192256(0x226)]<_0x2ce993||_0x13e285[_0x192256(0x231)]>_0x4e1d61[_0x192256(0x226)])&&(_0x13e285['start']>_0x2ce993&&_0x12fb0e[_0x192256(0x1f0)]({'start':_0x2ce993,'end':Math[_0x192256(0x1d6)](_0x13e285[_0x192256(0x231)]-0x1,_0x4e1d61[_0x192256(0x226)])}),_0x2ce993=Math['max'](_0x2ce993,_0x13e285[_0x192256(0x226)]+0x1),_0x2ce993>_0x4e1d61['end']))break;return _0x2ce993<=_0x4e1d61['end']&&_0x12fb0e[_0x192256(0x1f0)]({'start':_0x2ce993,'end':_0x4e1d61[_0x192256(0x226)]}),_0x12fb0e;}const z={'id':_0x567105(0x1a2),'type':e['CommandType']['COMMAND'],'handler':(_0x58e2b3,_0x30dce9)=>{const _0x119c27=_0x567105;if(!_0x30dce9)return!0x1;let _0xd1ff3d=(0x0,t[_0x119c27(0x223)])(_0x58e2b3[_0x119c27(0x198)](e[_0x119c27(0x217)]),_0x30dce9);if(!_0xd1ff3d)return!0x1;let {unitId:_0x44f6f3,subUnitId:_0x8e887c,worksheet:_0x4e006b}=_0xd1ff3d;if(!A(_0x58e2b3,_0x44f6f3,_0x8e887c))return!0x1;let _0xf83d72=_0x58e2b3[_0x119c27(0x198)](E)[_0x119c27(0x180)](_0x44f6f3,_0x8e887c),_0x2b48e4=_0xf83d72[_0x119c27(0x16f)](_0x394ad1=>_0x394ad1['id']===_0x30dce9[_0x119c27(0x1f8)]);if(!_0x2b48e4||_0x2b48e4[_0x119c27(0x232)]===_0x30dce9[_0x119c27(0x232)])return!0x1;let _0x4b6769=L(_0x2b48e4,_0x30dce9[_0x119c27(0x232)],_0x4e006b,_0xf83d72),_0x410bd3=L(_0x2b48e4,!_0x30dce9[_0x119c27(0x232)],_0x4e006b,_0xf83d72);return(0x0,e[_0x119c27(0x1b1)])(_0x4b6769,_0x58e2b3[_0x119c27(0x198)](e[_0x119c27(0x1ec)]))['result']?(_0x58e2b3['get'](e[_0x119c27(0x236)])['pushUndoRedo']({'unitID':_0x44f6f3,'undoMutations':_0x410bd3,'redoMutations':_0x4b6769}),!0x0):!0x1;}},B={'id':_0x567105(0x1e2),'type':e[_0x567105(0x194)][_0x567105(0x1c7)],'handler':(_0x543560,_0x589482)=>{const _0x2fb7d7=_0x567105;let _0x3a9621=_0x543560[_0x2fb7d7(0x198)](E),_0x2c46d1=_e(_0x3a9621[_0x2fb7d7(0x180)](_0x589482[_0x2fb7d7(0x209)],_0x589482[_0x2fb7d7(0x1ce)]),_0x589482);return _0x3a9621[_0x2fb7d7(0x21e)](_0x589482[_0x2fb7d7(0x209)],_0x589482['subUnitId'],_0x2c46d1),!0x0;}};function _e(_0x5ec789,_0xdb7568){const _0x53c43b=_0x567105;switch(_0xdb7568[_0x53c43b(0x1e4)]){case _0x53c43b(0x20a):return _0xdb7568['restoreOutlines']?ve(_0x5ec789,_0xdb7568):v(_0x5ec789,_0xdb7568);case _0x53c43b(0x188):return y(_0x5ec789,_0xdb7568);case'move':return b(_0x5ec789,_0xdb7568);}}function ve(_0x492825,_0x13a4c0){const _0x4f2f7a=_0x567105;return[..._0x492825['filter'](_0x23e87e=>_0x23e87e[_0x4f2f7a(0x209)]!==_0x13a4c0[_0x4f2f7a(0x209)]||_0x23e87e[_0x4f2f7a(0x1ce)]!==_0x13a4c0[_0x4f2f7a(0x1ce)]||_0x23e87e[_0x4f2f7a(0x20f)]!==_0x13a4c0[_0x4f2f7a(0x20f)]),..._0x13a4c0[_0x4f2f7a(0x218)]];}const V='SHEET_OUTLINE_PLUGIN';var ye='@univerjs-pro/sheets-outline',be=_0x567105(0x1fb);const H={};function U(_0x8bb270,_0x1cb5f1){return function(_0xcd8311,_0x53fc30){_0x1cb5f1(_0xcd8311,_0x53fc30,_0x8bb270);};}function W(_0x1630ce,_0x1a8ec0,_0x4d8224,_0x7a8437){const _0x749208=_0x567105;var _0x89d4de=arguments[_0x749208(0x1c4)],_0x2c4642=_0x89d4de<0x3?_0x1a8ec0:_0x7a8437===null?_0x7a8437=Object['getOwnPropertyDescriptor'](_0x1a8ec0,_0x4d8224):_0x7a8437,_0x5aae6c;if(typeof Reflect==_0x749208(0x1b3)&&typeof Reflect[_0x749208(0x1dc)]==_0x749208(0x1b9))_0x2c4642=Reflect[_0x749208(0x1dc)](_0x1630ce,_0x1a8ec0,_0x4d8224,_0x7a8437);else{for(var _0x3f5ec6=_0x1630ce['length']-0x1;_0x3f5ec6>=0x0;_0x3f5ec6--)(_0x5aae6c=_0x1630ce[_0x3f5ec6])&&(_0x2c4642=(_0x89d4de<0x3?_0x5aae6c(_0x2c4642):_0x89d4de>0x3?_0x5aae6c(_0x1a8ec0,_0x4d8224,_0x2c4642):_0x5aae6c(_0x1a8ec0,_0x4d8224))||_0x2c4642);}return _0x89d4de>0x3&&_0x2c4642&&Object['defineProperty'](_0x1a8ec0,_0x4d8224,_0x2c4642),_0x2c4642;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e[_0x567105(0x1a4)]{constructor(_0x5185cb,_0x5272c5,_0x5c6522,_0x550d74){const _0x2a0e74=_0x567105;super(),this['_univerInstanceService']=_0x5185cb,this[_0x2a0e74(0x205)]=_0x5272c5,this[_0x2a0e74(0x202)]=_0x5c6522,this[_0x2a0e74(0x21f)]=_0x550d74,this[_0x2a0e74(0x1fc)]();}[_0x567105(0x1fc)](){const _0x3d90be=_0x567105;this[_0x3d90be(0x20d)](this['_sheetInterceptorService'][_0x3d90be(0x23d)]({'getMutations':_0x2086e5=>xe(_0x2086e5,(_0x4e34a2,_0x2f7983)=>this['_sheetsOutlineModel']['getOutlines'](_0x4e34a2,_0x2f7983),this[_0x3d90be(0x1ef)](_0x2086e5[_0x3d90be(0x1e6)]),_0x2eb200=>this[_0x3d90be(0x21f)][_0x3d90be(0x22c)](_0x2eb200))}));}[_0x567105(0x1ef)](_0x18fcbb){const _0xa3849a=_0x567105;let _0x1aafef=_0x18fcbb,_0x877a2f=_0x1aafef!=null&&_0x1aafef['unitId']?this[_0xa3849a(0x1c5)][_0xa3849a(0x19d)](_0x1aafef[_0xa3849a(0x209)]):this['_univerInstanceService'][_0xa3849a(0x1d4)](e[_0xa3849a(0x1b6)]['UNIVER_SHEET']);if(!_0x877a2f)return;let _0x2a91ee=_0x1aafef!=null&&_0x1aafef[_0xa3849a(0x1ce)]?_0x877a2f['getSheetBySheetId'](_0x1aafef[_0xa3849a(0x1ce)]):_0x877a2f[_0xa3849a(0x23b)]();if(_0x2a91ee)return{'unitId':_0x877a2f[_0xa3849a(0x1a8)](),'subUnitId':_0x2a91ee['getSheetId']()};}};K=W([U(0x0,e[_0x567105(0x217)]),U(0x1,(0x0,e[_0x567105(0x200)])(t['SheetInterceptorService'])),U(0x2,(0x0,e[_0x567105(0x200)])(E)),U(0x3,(0x0,e['Inject'])(D))],K);function xe(_0x27e80a,_0xdba58e,_0xb6783d,_0x4d1f2e){const _0xbbc453=_0x567105;let _0x562ca6=Ce(_0x27e80a,_0xb6783d);if(!_0x562ca6)return Z();let _0x590745=_0xdba58e(_0x562ca6['unitId'],_0x562ca6[_0xbbc453(0x1ce)]);if(!_0x590745[_0xbbc453(0x1c8)](_0x3c70db=>_0x3c70db[_0xbbc453(0x20f)]===_0x562ca6[_0xbbc453(0x20f)]))return Z();Se(_0x590745,_0x562ca6,_0x27e80a['id'],_0x4d1f2e);let _0x2fe797=we(_0x562ca6,_0x590745);return{'redos':[{'id':B['id'],'params':_0x562ca6}],'undos':[{'id':B['id'],'params':_0x2fe797}],'preRedos':[],'preUndos':[]};}function Se(_0x579c84,_0x268c3a,_0x29538c,_0x1986e4){const _0x2bbbc7=_0x567105;try{switch(_0x268c3a[_0x2bbbc7(0x1e4)]){case _0x2bbbc7(0x20a):v(_0x579c84,_0x268c3a);break;case _0x2bbbc7(0x188):y(_0x579c84,_0x268c3a);break;case _0x2bbbc7(0x1d9):b(_0x579c84,_0x268c3a);break;}}catch(_0x3d3b65){throw _0x1986e4==null||_0x1986e4({'reason':c(_0x3d3b65),'commandId':_0x29538c,'unitId':_0x268c3a[_0x2bbbc7(0x209)],'subUnitId':_0x268c3a[_0x2bbbc7(0x1ce)],'axis':_0x268c3a[_0x2bbbc7(0x20f)],'outlineId':l(_0x3d3b65)}),new e[(_0x2bbbc7(0x1f1))](_0x3d3b65 instanceof Error?_0x3d3b65[_0x2bbbc7(0x1a9)]:_0x2bbbc7(0x175));}}function Ce(_0x467402,_0x267178){const _0x3f46cd=_0x567105;switch(_0x467402['id']){case t['InsertRowCommand']['id']:return q(_0x467402[_0x3f46cd(0x1e6)],_0x3f46cd(0x241),_0x267178);case t[_0x3f46cd(0x1a7)]['id']:return q(_0x467402[_0x3f46cd(0x1e6)],_0x3f46cd(0x195),_0x267178);case t[_0x3f46cd(0x183)]['id']:return J(_0x467402[_0x3f46cd(0x1e6)],_0x3f46cd(0x241),_0x267178);case t[_0x3f46cd(0x186)]['id']:return J(_0x467402['params'],'column',_0x267178);case t[_0x3f46cd(0x197)]['id']:return Y(_0x467402[_0x3f46cd(0x1e6)],_0x3f46cd(0x241),_0x267178);case t[_0x3f46cd(0x1fe)]['id']:return Y(_0x467402[_0x3f46cd(0x1e6)],'column',_0x267178);default:return null;}}function q(_0x16624d,_0x4d8ff3,_0x430e7a){const _0x2fd440=_0x567105;let _0x47d68a=X(_0x16624d,_0x430e7a);if(!(_0x16624d!=null&&_0x16624d[_0x2fd440(0x1ca)])||!_0x47d68a)return null;let _0x37da57=_0x4d8ff3===_0x2fd440(0x241)?_0x16624d[_0x2fd440(0x1ca)][_0x2fd440(0x1c1)]:_0x16624d[_0x2fd440(0x1ca)][_0x2fd440(0x1cd)],_0x13077e=_0x4d8ff3===_0x2fd440(0x241)?_0x16624d[_0x2fd440(0x1ca)][_0x2fd440(0x20e)]:_0x16624d[_0x2fd440(0x1ca)][_0x2fd440(0x1a5)];return{..._0x47d68a,'axis':_0x4d8ff3,'type':_0x2fd440(0x20a),'index':_0x37da57,'count':_0x13077e-_0x37da57+0x1};}function J(_0x27d74c,_0x158c99,_0x4a0df6){const _0x5bc040=_0x567105;let _0x361b98=X(_0x27d74c,_0x4a0df6);if(!(_0x27d74c!=null&&_0x27d74c[_0x5bc040(0x1ca)])||!_0x361b98)return null;let _0x44d210=_0x158c99===_0x5bc040(0x241)?_0x27d74c['range'][_0x5bc040(0x1c1)]:_0x27d74c[_0x5bc040(0x1ca)][_0x5bc040(0x1cd)],_0x53247e=_0x158c99===_0x5bc040(0x241)?_0x27d74c[_0x5bc040(0x1ca)][_0x5bc040(0x20e)]:_0x27d74c['range'][_0x5bc040(0x1a5)];return{..._0x361b98,'axis':_0x158c99,'type':_0x5bc040(0x188),'start':_0x44d210,'end':_0x53247e};}function Y(_0x57a142,_0x3f8c73,_0x3ce7a7){const _0x32918d=_0x567105;let _0x4156d8=X(_0x57a142,_0x3ce7a7);if(!(_0x57a142!=null&&_0x57a142['fromRange'])||!_0x57a142[_0x32918d(0x212)]||!_0x4156d8)return null;let _0x5cfe79=_0x3f8c73===_0x32918d(0x241)?_0x57a142[_0x32918d(0x17f)][_0x32918d(0x1c1)]:_0x57a142['fromRange']['startColumn'],_0x1c7c53=_0x3f8c73==='row'?_0x57a142[_0x32918d(0x17f)][_0x32918d(0x20e)]:_0x57a142['fromRange'][_0x32918d(0x1a5)],_0xec4b80=_0x3f8c73===_0x32918d(0x241)?_0x57a142[_0x32918d(0x212)][_0x32918d(0x1c1)]:_0x57a142[_0x32918d(0x212)][_0x32918d(0x1cd)];return{..._0x4156d8,'axis':_0x3f8c73,'type':_0x32918d(0x1d9),'sourceStart':_0x5cfe79,'sourceEnd':_0x1c7c53,'destinationIndex':_0xec4b80};}function we(_0x3f4820,_0x5a68c9){const _0xa70a9d=_0x567105;switch(_0x3f4820['type']){case _0xa70a9d(0x20a):return{'unitId':_0x3f4820['unitId'],'subUnitId':_0x3f4820['subUnitId'],'axis':_0x3f4820[_0xa70a9d(0x20f)],'type':_0xa70a9d(0x188),'start':_0x3f4820[_0xa70a9d(0x1dd)],'end':_0x3f4820[_0xa70a9d(0x1dd)]+_0x3f4820[_0xa70a9d(0x222)]-0x1};case'delete':return{'unitId':_0x3f4820[_0xa70a9d(0x209)],'subUnitId':_0x3f4820[_0xa70a9d(0x1ce)],'axis':_0x3f4820[_0xa70a9d(0x20f)],'type':_0xa70a9d(0x20a),'index':_0x3f4820[_0xa70a9d(0x231)],'count':_0x3f4820[_0xa70a9d(0x226)]-_0x3f4820[_0xa70a9d(0x231)]+0x1,'restoreOutlines':_0x5a68c9[_0xa70a9d(0x191)](_0x34ffb0=>_0x34ffb0[_0xa70a9d(0x209)]===_0x3f4820[_0xa70a9d(0x209)]&&_0x34ffb0[_0xa70a9d(0x1ce)]===_0x3f4820[_0xa70a9d(0x1ce)]&&_0x34ffb0[_0xa70a9d(0x20f)]===_0x3f4820[_0xa70a9d(0x20f)])};case _0xa70a9d(0x1d9):return Te(_0x3f4820);}}function Te(_0x53e4da){const _0x1fd796=_0x567105;let _0x329270=_0x53e4da[_0x1fd796(0x1e1)]-_0x53e4da[_0x1fd796(0x172)]+0x1;return _0x53e4da[_0x1fd796(0x1da)]>=_0x53e4da[_0x1fd796(0x172)]&&_0x53e4da[_0x1fd796(0x1da)]<=_0x53e4da['sourceEnd']+0x1?{..._0x53e4da}:_0x53e4da['destinationIndex']>_0x53e4da[_0x1fd796(0x1e1)]+0x1?{..._0x53e4da,'sourceStart':_0x53e4da[_0x1fd796(0x1da)]-_0x329270,'sourceEnd':_0x53e4da[_0x1fd796(0x1da)]-0x1,'destinationIndex':_0x53e4da[_0x1fd796(0x172)]}:{..._0x53e4da,'sourceStart':_0x53e4da['destinationIndex'],'sourceEnd':_0x53e4da[_0x1fd796(0x1da)]+_0x329270-0x1,'destinationIndex':_0x53e4da[_0x1fd796(0x1e1)]+0x1};}function X(_0xf805fc,_0x3df52b){const _0x163435=_0x567105;var _0x18b518,_0x417a48;let _0x476f40=(_0x18b518=_0xf805fc==null?void 0x0:_0xf805fc[_0x163435(0x209)])==null?_0x3df52b==null?void 0x0:_0x3df52b['unitId']:_0x18b518,_0x383375=(_0x417a48=_0xf805fc==null?void 0x0:_0xf805fc[_0x163435(0x1ce)])==null?_0x3df52b==null?void 0x0:_0x3df52b['subUnitId']:_0x417a48;return _0x476f40&&_0x383375?{'unitId':_0x476f40,'subUnitId':_0x383375}:null;}function Z(){const _0x1af330=_0x567105;var _0x56173c,_0x39773f;return{'redos':[...G[_0x1af330(0x201)]],'undos':[...G[_0x1af330(0x18b)]],'preRedos':[...(_0x56173c=G[_0x1af330(0x228)])==null?[]:_0x56173c],'preUndos':[...(_0x39773f=G[_0x1af330(0x1d5)])==null?[]:_0x39773f]};}let Q=class extends e[_0x567105(0x1a4)]{constructor(_0x3f1713,_0x8b86b){const _0x346c52=_0x567105;super(),this[_0x346c52(0x16d)]=_0x3f1713,this[_0x346c52(0x202)]=_0x8b86b,this[_0x346c52(0x21b)]();}[_0x567105(0x21b)](){const _0x4ba09a=_0x567105;this[_0x4ba09a(0x20d)](this[_0x4ba09a(0x16d)][_0x4ba09a(0x1e3)]({'pluginName':V,'businesses':[e[_0x4ba09a(0x1b6)][_0x4ba09a(0x22e)]],'toJson':_0x3b548c=>JSON[_0x4ba09a(0x1b7)](this[_0x4ba09a(0x202)][_0x4ba09a(0x1be)](_0x3b548c)),'parseJson':_0x44247c=>JSON['parse'](_0x44247c),'onLoad':(_0x51f5f7,_0x22c62b)=>this[_0x4ba09a(0x202)][_0x4ba09a(0x19a)](_0x51f5f7,_0x22c62b),'onUnLoad':_0x48b67b=>this['_sheetsOutlineModel']['removeUnit'](_0x48b67b)}));}};Q=W([U(0x0,e[_0x567105(0x21d)]),U(0x1,(0x0,e[_0x567105(0x200)])(E))],Q);let $=class extends e[_0x567105(0x1ac)]{constructor(_0x1fa43d=H,_0x446ee1,_0x4ee979,_0xe541d8){const _0x2166ac=_0x567105;super(),this[_0x2166ac(0x1ed)]=_0x1fa43d,this[_0x2166ac(0x1fa)]=_0x446ee1,this[_0x2166ac(0x196)]=_0x4ee979,this[_0x2166ac(0x18f)]=_0xe541d8;let {..._0x49730e}=(0x0,e[_0x2166ac(0x1c6)])({},H,this[_0x2166ac(0x1ed)]);this[_0x2166ac(0x18f)][_0x2166ac(0x17c)]('sheets-outline.config',_0x49730e);}[_0x567105(0x23c)](){const _0x3e0a65=_0x567105;this[_0x3e0a65(0x1fa)][_0x3e0a65(0x1d0)]([E]),this[_0x3e0a65(0x1fa)][_0x3e0a65(0x1d0)]([D]),this['_injector'][_0x3e0a65(0x1d0)]([Q]),this[_0x3e0a65(0x1fa)][_0x3e0a65(0x1d0)]([K]),this['_initRegisterCommand'](),this['_injector']['get'](E),this[_0x3e0a65(0x1fa)][_0x3e0a65(0x198)](D),this['_injector'][_0x3e0a65(0x198)](Q),this[_0x3e0a65(0x1fa)]['get'](K);}['_initRegisterCommand'](){const _0x5ae459=_0x567105;[j,P,z,N][_0x5ae459(0x233)](_0x2da31e=>{const _0x455d87=_0x5ae459;this[_0x455d87(0x20d)](this['_commandService'][_0x455d87(0x177)](_0x2da31e));}),[O,k,F,M,B][_0x5ae459(0x233)](_0x593b4d=>{const _0x2df0f5=_0x5ae459;this[_0x2df0f5(0x20d)](this[_0x2df0f5(0x196)][_0x2df0f5(0x177)](_0x593b4d));});}};T($,_0x567105(0x1ea),V),T($,_0x567105(0x22b),ye),T($,_0x567105(0x170),be),T($,'type',e[_0x567105(0x1b6)][_0x567105(0x22e)]),$=W([(0x0,e[_0x567105(0x193)])(i[_0x567105(0x1a1)]),U(0x1,(0x0,e[_0x567105(0x200)])(e[_0x567105(0x221)])),U(0x2,e[_0x567105(0x1ec)]),U(0x3,e[_0x567105(0x1f2)])],$),exports[_0x567105(0x1f6)]=j,exports[_0x567105(0x207)]=O,exports[_0x567105(0x21a)]=N,exports['ClearDimensionOutlinesMutation']=M,exports['DimensionOutlineAxis']=a,exports[_0x567105(0x1a3)]=o,exports['RemoveDimensionOutlineCommand']=P,exports[_0x567105(0x1fd)]=k,exports[_0x567105(0x18e)]=V,exports['SetDimensionOutlineCollapsedCommand']=z,exports[_0x567105(0x17d)]=F,exports[_0x567105(0x1cf)]=D,exports['SheetsOutlineModel']=E,exports[_0x567105(0x211)]=B,Object[_0x567105(0x179)](exports,_0x567105(0x190),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x567105(0x178)]=f,exports[_0x567105(0x182)]=p,exports[_0x567105(0x16c)]=ue,exports[_0x567105(0x1a6)]=A,exports[_0x567105(0x1e8)]=y,exports[_0x567105(0x16e)]=v,exports['transformOutlinesByMove']=b;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x689196=_0xb19c;(function(_0x2b3d71,_0x2c3165){var _0x2d8d5e=_0xb19c,_0x3bdd38=_0x2b3d71();while(!![]){try{var _0x2480ea=parseInt(_0x2d8d5e(0xbc))/0x1*(parseInt(_0x2d8d5e(0xc7))/0x2)+parseInt(_0x2d8d5e(0xb5))/0x3+parseInt(_0x2d8d5e(0xd1))/0x4*(parseInt(_0x2d8d5e(0xc2))/0x5)+parseInt(_0x2d8d5e(0xbe))/0x6*(parseInt(_0x2d8d5e(0xbb))/0x7)+-parseInt(_0x2d8d5e(0xc8))/0x8*(-parseInt(_0x2d8d5e(0xcb))/0x9)+-parseInt(_0x2d8d5e(0xd0))/0xa*(parseInt(_0x2d8d5e(0xc0))/0xb)+parseInt(_0x2d8d5e(0xb8))/0xc*(-parseInt(_0x2d8d5e(0xc9))/0xd);if(_0x2480ea===_0x2c3165)break;else _0x3bdd38['push'](_0x3bdd38['shift']());}catch(_0x2785a4){_0x3bdd38['push'](_0x3bdd38['shift']());}}}(_0x5575,0x4bc35));import{AddDimensionOutlineCommand as _0x214b4e,ClearDimensionOutlinesCommand as _0x17bc0c,DimensionOutlineAxis as _0x4f8e1a,DimensionOutlineErrorReason as _0x43e285,RemoveDimensionOutlineCommand as _0x322faa,SetDimensionOutlineCollapsedCommand as _0x40c5c9,SheetsOutlineModel as _0x1b9f8b}from'@univerjs-pro/sheets-outline';import{FEnum as _0x1564f7}from'@univerjs/core/facade';import{FWorksheet as _0x2e7726}from'@univerjs/sheets/facade';var l=class extends _0x1564f7{get['DimensionOutlineAxis'](){return _0x4f8e1a;}get['DimensionOutlineErrorReason'](){return _0x43e285;}};_0x1564f7[_0x689196(0xc1)](l);function _0x5575(){var _0x4a4622=['35688JvqrGD','13AymDfz','getDimensionOutlines','567gXEJvB','getUnitId','_injector','clearDimensionOutlines','axis','10GhlcNa','2205908lxKIwm','get','_commandService','getOutlines','769593hJaJZm','addRowOutline','filter','15442572tKHklm','_worksheet','syncExecuteCommand','252gCOvqi','134716noXMJc','_workbook','88818RxjdzQ','setDimensionOutlineCollapsed','1754159neBdxS','extend','5EBNVDH','addColumnOutline','removeDimensionOutline','_addDimensionOutline','getSheetId','2szjSun'];_0x5575=function(){return _0x4a4622;};return _0x5575();}var u=class extends _0x2e7726{[_0x689196(0xb6)](_0x517350,_0xeef610){var _0x13d7e8=_0x689196;return this[_0x13d7e8(0xc5)](_0x4f8e1a['ROW'],_0x517350,_0xeef610);}[_0x689196(0xc3)](_0x5e88ba,_0x1566aa){var _0x3dd8da=_0x689196;return this[_0x3dd8da(0xc5)](_0x4f8e1a['COLUMN'],_0x5e88ba,_0x1566aa);}[_0x689196(0xc4)](_0x1850c2){var _0x4bd0bd=_0x689196;return this['_commandService'][_0x4bd0bd(0xba)](_0x322faa['id'],{'unitId':this[_0x4bd0bd(0xbd)]['getUnitId'](),'subUnitId':this[_0x4bd0bd(0xb9)]['getSheetId'](),'outlineId':_0x1850c2}),this;}[_0x689196(0xbf)](_0x4b6b53,_0x5c6d6b){var _0x42b3c6=_0x689196;return this['_commandService'][_0x42b3c6(0xba)](_0x40c5c9['id'],{'unitId':this[_0x42b3c6(0xbd)]['getUnitId'](),'subUnitId':this[_0x42b3c6(0xb9)]['getSheetId'](),'outlineId':_0x4b6b53,'collapsed':_0x5c6d6b}),this;}[_0x689196(0xce)](_0xe3a971,_0x1ea76c,_0x1ab31b){var _0x2cf390=_0x689196;return this[_0x2cf390(0xb3)][_0x2cf390(0xba)](_0x17bc0c['id'],{'unitId':this[_0x2cf390(0xbd)][_0x2cf390(0xcc)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0xe3a971,'start':_0x1ea76c,'end':_0x1ab31b}),this;}[_0x689196(0xca)](_0x148f66){var _0x417470=_0x689196;let _0x33e2da=this[_0x417470(0xcd)][_0x417470(0xb2)](_0x1b9f8b)[_0x417470(0xb4)](this[_0x417470(0xbd)][_0x417470(0xcc)](),this[_0x417470(0xb9)]['getSheetId']());return _0x148f66?_0x33e2da[_0x417470(0xb7)](_0x5d492c=>_0x5d492c[_0x417470(0xcf)]===_0x148f66):_0x33e2da;}[_0x689196(0xc5)](_0x13c026,_0x340820,_0x28b5a8){var _0x2f8813=_0x689196;return this[_0x2f8813(0xb3)][_0x2f8813(0xba)](_0x214b4e['id'],{'unitId':this[_0x2f8813(0xbd)][_0x2f8813(0xcc)](),'subUnitId':this['_worksheet'][_0x2f8813(0xc6)](),'axis':_0x13c026,'start':_0x340820,'end':_0x340820+_0x28b5a8-0x1}),this;}};_0x2e7726[_0x689196(0xc1)](u);function _0xb19c(_0xb2095e,_0x4351c2){_0xb2095e=_0xb2095e-0xb2;var _0x5575d9=_0x5575();var _0xb19ca6=_0x5575d9[_0xb2095e];return _0xb19ca6;}export{};
1
+ var _0x2f93b4=_0x1e7a;(function(_0x46d99a,_0x139806){var _0x5447ba=_0x1e7a,_0x469635=_0x46d99a();while(!![]){try{var _0x805eab=parseInt(_0x5447ba(0x102))/0x1+-parseInt(_0x5447ba(0x10e))/0x2+parseInt(_0x5447ba(0x116))/0x3+parseInt(_0x5447ba(0x106))/0x4+parseInt(_0x5447ba(0x10a))/0x5+-parseInt(_0x5447ba(0x110))/0x6+-parseInt(_0x5447ba(0x103))/0x7;if(_0x805eab===_0x139806)break;else _0x469635['push'](_0x469635['shift']());}catch(_0x2a6b5b){_0x469635['push'](_0x469635['shift']());}}}(_0x1685,0xc5e36));import{AddDimensionOutlineCommand as _0x168f7b,ClearDimensionOutlinesCommand as _0x412c92,DimensionOutlineAxis as _0x50d79f,DimensionOutlineErrorReason as _0x404709,RemoveDimensionOutlineCommand as _0x10fe30,SetDimensionOutlineCollapsedCommand as _0x125916,SheetsOutlineModel as _0x1aed7d}from'@univerjs-pro/sheets-outline';import{FEnum as _0x1157d3}from'@univerjs/core/facade';function _0x1685(){var _0x191a24=['COLUMN','setDimensionOutlineCollapsed','5997400iBCKBn','DimensionOutlineAxis','addRowOutline','_workbook','1293846xHkYwY','axis','2924370oAtTto','get','clearDimensionOutlines','DimensionOutlineErrorReason','_worksheet','ROW','787815LPBCFS','_addDimensionOutline','_commandService','getSheetId','_injector','filter','getUnitId','syncExecuteCommand','1560776hHnXTy','16177735ryNuEA','extend','removeDimensionOutline','4932448cUSgAA','getOutlines'];_0x1685=function(){return _0x191a24;};return _0x1685();}import{FWorksheet as _0x2bcf12}from'@univerjs/sheets/facade';function _0x1e7a(_0x2a8fb2,_0x11a26a){_0x2a8fb2=_0x2a8fb2-0xff;var _0x1685d4=_0x1685();var _0x1e7a55=_0x1685d4[_0x2a8fb2];return _0x1e7a55;}var l=class extends _0x1157d3{get[_0x2f93b4(0x10b)](){return _0x50d79f;}get[_0x2f93b4(0x113)](){return _0x404709;}};_0x1157d3['extend'](l);var u=class extends _0x2bcf12{[_0x2f93b4(0x10c)](_0x251118,_0x250dc7){var _0x589459=_0x2f93b4;return this['_addDimensionOutline'](_0x50d79f[_0x589459(0x115)],_0x251118,_0x250dc7);}['addColumnOutline'](_0x164367,_0x53e9ba){var _0x2e7fab=_0x2f93b4;return this[_0x2e7fab(0x117)](_0x50d79f[_0x2e7fab(0x108)],_0x164367,_0x53e9ba);}[_0x2f93b4(0x105)](_0x28cbeb){var _0x190bbe=_0x2f93b4;return this[_0x190bbe(0x118)][_0x190bbe(0x101)](_0x10fe30['id'],{'unitId':this[_0x190bbe(0x10d)][_0x190bbe(0x100)](),'subUnitId':this['_worksheet']['getSheetId'](),'outlineId':_0x28cbeb}),this;}[_0x2f93b4(0x109)](_0x2ee415,_0x53606e){var _0x2066d0=_0x2f93b4;return this[_0x2066d0(0x118)][_0x2066d0(0x101)](_0x125916['id'],{'unitId':this[_0x2066d0(0x10d)][_0x2066d0(0x100)](),'subUnitId':this[_0x2066d0(0x114)]['getSheetId'](),'outlineId':_0x2ee415,'collapsed':_0x53606e}),this;}[_0x2f93b4(0x112)](_0x16ae0f,_0x2bbdbb,_0x33bcfe){var _0xc6cadb=_0x2f93b4;return this[_0xc6cadb(0x118)][_0xc6cadb(0x101)](_0x412c92['id'],{'unitId':this[_0xc6cadb(0x10d)][_0xc6cadb(0x100)](),'subUnitId':this[_0xc6cadb(0x114)]['getSheetId'](),'axis':_0x16ae0f,'start':_0x2bbdbb,'end':_0x33bcfe}),this;}['getDimensionOutlines'](_0x300626){var _0x29a82e=_0x2f93b4;let _0x5add44=this[_0x29a82e(0x11a)][_0x29a82e(0x111)](_0x1aed7d)[_0x29a82e(0x107)](this['_workbook'][_0x29a82e(0x100)](),this[_0x29a82e(0x114)][_0x29a82e(0x119)]());return _0x300626?_0x5add44[_0x29a82e(0xff)](_0x625b82=>_0x625b82[_0x29a82e(0x10f)]===_0x300626):_0x5add44;}['_addDimensionOutline'](_0x2120df,_0xff4421,_0xf62800){var _0x35231a=_0x2f93b4;return this[_0x35231a(0x118)][_0x35231a(0x101)](_0x168f7b['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x35231a(0x114)][_0x35231a(0x119)](),'axis':_0x2120df,'start':_0xff4421,'end':_0xff4421+_0xf62800-0x1}),this;}};_0x2bcf12[_0x2f93b4(0x104)](u);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x565511=_0xdbfb;(function(_0x53aa63,_0x1e58e9){const _0x3e2c2e=_0xdbfb,_0x120ec7=_0x53aa63();while(!![]){try{const _0x18adcc=-parseInt(_0x3e2c2e(0xbf))/0x1*(parseInt(_0x3e2c2e(0x103))/0x2)+parseInt(_0x3e2c2e(0x11d))/0x3*(parseInt(_0x3e2c2e(0xb0))/0x4)+parseInt(_0x3e2c2e(0x10b))/0x5*(parseInt(_0x3e2c2e(0x12e))/0x6)+-parseInt(_0x3e2c2e(0x130))/0x7*(-parseInt(_0x3e2c2e(0xcb))/0x8)+parseInt(_0x3e2c2e(0x114))/0x9*(-parseInt(_0x3e2c2e(0x112))/0xa)+parseInt(_0x3e2c2e(0xf1))/0xb*(parseInt(_0x3e2c2e(0xe8))/0xc)+parseInt(_0x3e2c2e(0xe0))/0xd*(parseInt(_0x3e2c2e(0xc0))/0xe);if(_0x18adcc===_0x1e58e9)break;else _0x120ec7['push'](_0x120ec7['shift']());}catch(_0x5d614b){_0x120ec7['push'](_0x120ec7['shift']());}}}(_0xa77e,0xbba2a));import{CommandType as _0x4ec594,CustomCommandExecutionError as _0x21ca2b,DependentOn as _0x17a12a,Disposable as _0x564e2b,ICommandService as _0x43bee3,IConfigService as _0x366292,IPermissionService as _0x54bef8,IResourceManagerService as _0x1b2d4c,IUndoRedoService as _0x443f20,IUniverInstanceService as _0x4665c9,Inject as _0x69251c,Injector as _0x1291f3,Plugin as _0x35d18e,UniverInstanceType as _0x2ab9bd,generateRandomId as _0x39a559,merge as _0x34c955,sequenceExecute as _0x28033e}from'@univerjs/core';import{InsertColCommand as _0x57b19f,InsertRowCommand as _0x4ca3ad,MoveColsCommand as _0xa17699,MoveRowsCommand as _0x5aa133,RemoveColCommand as _0x33ea80,RemoveRowCommand as _0x3c1f56,SetColHiddenMutation as _0x1a6e2d,SetColVisibleMutation as _0x46b269,SetRowHiddenMutation as _0x24c04e,SetRowVisibleMutation as _0x4c050a,SheetInterceptorService as _0x5d26ad,SheetPermissionCheckController as _0x55ef15,WorkbookViewPermission as _0x54368d,WorksheetViewPermission as _0x214033,getSheetCommandTarget as _0x98a6a2}from'@univerjs/sheets';import{Subject as _0x4956bb,of as _0x2aec80}from'rxjs';import{debounceTime as _0xb56627,map as _0x36729b,startWith as _0x3595db}from'rxjs/operators';import{UniverLicensePlugin as _0x579cb4}from'@univerjs-pro/license';let me=function(_0x3c807f){const _0x1cd3a1=_0xdbfb;return _0x3c807f[_0x1cd3a1(0xa9)]=_0x1cd3a1(0xf4),_0x3c807f[_0x1cd3a1(0xe6)]='column',_0x3c807f;}({}),he=function(_0x26c95a){const _0x2b2610=_0xdbfb;return _0x26c95a['INVALID_RANGE']='invalid-range',_0x26c95a['OUT_OF_BOUNDS']=_0x2b2610(0xd6),_0x26c95a[_0x2b2610(0x13e)]=_0x2b2610(0x132),_0x26c95a[_0x2b2610(0xce)]='max-depth',_0x26c95a[_0x2b2610(0x102)]=_0x2b2610(0x10e),_0x26c95a[_0x2b2610(0x107)]='clear-range-not-contain-outline',_0x26c95a[_0x2b2610(0x13f)]=_0x2b2610(0x9b),_0x26c95a;}({});var w=class extends Error{constructor(_0x3f4ecb,_0xc93aa9,_0x2949d5){const _0x4e2ff0=_0xdbfb;super(_0xc93aa9),this[_0x4e2ff0(0xc8)]=_0x3f4ecb,this[_0x4e2ff0(0x11a)]=_0x2949d5,this[_0x4e2ff0(0xfd)]='DimensionOutlineError';}};function ge(_0x5aa9a3){const _0x97e46d=_0xdbfb;return _0x5aa9a3 instanceof w?_0x5aa9a3[_0x97e46d(0xc8)]:_0x5aa9a3 instanceof Error?_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)]('split\x20dimension\x20outline')?_0x97e46d(0x10e):_0x5aa9a3['message']['includes'](_0x97e46d(0x118))?_0x97e46d(0x129):_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)](_0x97e46d(0x11f))?_0x97e46d(0x132):_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)](_0x97e46d(0xa0))?_0x97e46d(0x109):_0x97e46d(0x9b):_0x97e46d(0x9b);}function _e(_0x3fbc90){const _0x36cb86=_0xdbfb;return _0x3fbc90 instanceof w?_0x3fbc90[_0x36cb86(0x11a)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x538867,_0x155458){const _0x314542=_0xdbfb;return _0x538867[_0x314542(0xf3)]===_0x155458[_0x314542(0xf3)]&&_0x538867[_0x314542(0xb1)]===_0x155458[_0x314542(0xb1)]&&_0x538867['axis']===_0x155458[_0x314542(0xd2)];}function D(_0x3c4581,_0x2e1575={}){const _0x4ec867=_0xdbfb;var _0x74c263;let _0x59ef01=(_0x74c263=_0x2e1575['maxDepth'])==null?0x8:_0x74c263,_0x340555=new Map();for(let _0x1fc6ba of _0x3c4581){let _0x5ede28=_0x1fc6ba[_0x4ec867(0xf3)]+':'+_0x1fc6ba[_0x4ec867(0xb1)]+':'+_0x1fc6ba[_0x4ec867(0xd2)],_0xeefd6a=_0x340555[_0x4ec867(0xc6)](_0x5ede28);_0xeefd6a?_0xeefd6a[_0x4ec867(0x141)](_0x1fc6ba):_0x340555['set'](_0x5ede28,[_0x1fc6ba]);}let _0x1c0fba=[];for(let _0x53083d of _0x340555['values']()){let _0x3cf956=[..._0x53083d]['sort'](ke),_0x520b85=[];for(let _0x5cebca of _0x3cf956){for(Ae(_0x5cebca);_0x520b85[_0x4ec867(0xe5)]>0x0&&_0x5cebca[_0x4ec867(0xd1)]>_0x520b85[_0x520b85['length']-0x1][_0x4ec867(0xc1)];)_0x520b85[_0x4ec867(0x9d)]();let _0x4733a4=_0x520b85[_0x520b85[_0x4ec867(0xe5)]-0x1];if(_0x4733a4&&_0x5cebca['end']>_0x4733a4[_0x4ec867(0xc1)])throw new w(_0x4ec867(0x132),_0x4ec867(0xf7),_0x5cebca['id']);let _0x2f2f87=_0x4733a4?_0x4733a4[_0x4ec867(0x118)]+0x1:0x1;if(_0x2f2f87>_0x59ef01)throw new w('max-depth',_0x4ec867(0xb6)+_0x59ef01,_0x5cebca['id']);let _0x56578d={..._0x5cebca,'depth':_0x2f2f87,'parentId':_0x4733a4==null?void 0x0:_0x4733a4['id'],'anchor':_0x5cebca[_0x4ec867(0xc1)],'children':[]};_0x4733a4?_0x4733a4[_0x4ec867(0x12f)][_0x4ec867(0x141)](_0x56578d):_0x1c0fba['push'](_0x56578d),_0x520b85[_0x4ec867(0x141)](_0x56578d);}}return _0x1c0fba;}function O(_0x4f80c2,_0x4fd539,_0x5a7250={}){const _0x3de7a4=_0xdbfb;if(_0x4fd539[_0x3de7a4(0xd1)]<0x0||_0x4fd539['start']>_0x4fd539[_0x3de7a4(0xc1)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x5a7250['maxIndex']!=null&&_0x4fd539[_0x3de7a4(0xc1)]>=_0x5a7250[_0x3de7a4(0x108)])return{'valid':!0x1,'reason':_0x3de7a4(0xd6)};let _0x2c50d8=_0x4f80c2[_0x3de7a4(0x12d)](_0x1510fc=>E(_0x1510fc,_0x4fd539));for(let _0xdc2a54 of _0x2c50d8)if(je(_0xdc2a54,_0x4fd539))return{'valid':!0x1,'reason':_0x3de7a4(0x132)};try{D([..._0x4f80c2,_0x4fd539],_0x5a7250);}catch(_0x501d1c){let _0x3002ca=ge(_0x501d1c);return _0x3002ca===_0x3de7a4(0x129)?{'valid':!0x1,'reason':'max-depth'}:_0x3002ca==='invalid-range'?{'valid':!0x1,'reason':_0x3de7a4(0x109)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function ve(_0x39eae1,_0x4279a9,_0x3fc9e7={}){const _0xb5b2f3=_0xdbfb;let _0x5b7ab4=O(_0x39eae1,_0x4279a9,_0x3fc9e7);if(!_0x5b7ab4[_0xb5b2f3(0x11c)]){var _0x5d33e1;throw Error((_0x5d33e1=_0x5b7ab4['reason'])==null?_0xb5b2f3(0x13b):_0x5d33e1);}return[..._0x39eae1,_0x4279a9];}function ye(_0x3b6428,_0x57c64d){const _0x51c56c=_0xdbfb;let _0x3c17ae=_0x57c64d[_0x51c56c(0xd1)],_0x1a161=_0x57c64d['end'],_0x30c7f9=[],_0x3052ef=!0x0;for(;_0x3052ef;){_0x3052ef=!0x1;for(let _0x228ead of _0x3b6428)_0x30c7f9[_0x51c56c(0xbb)](_0x228ead)||!E(_0x228ead,_0x57c64d)||!De(_0x228ead[_0x51c56c(0xd1)],_0x228ead[_0x51c56c(0xc1)],_0x3c17ae,_0x1a161)||(_0x30c7f9[_0x51c56c(0x141)](_0x228ead),_0x3c17ae=Math[_0x51c56c(0xa6)](_0x3c17ae,_0x228ead[_0x51c56c(0xd1)]),_0x1a161=Math[_0x51c56c(0x12b)](_0x1a161,_0x228ead[_0x51c56c(0xc1)]),_0x3052ef=!0x0);}if(_0x30c7f9[_0x51c56c(0xe5)]===0x0)return null;let [_0x546660]=[..._0x30c7f9][_0x51c56c(0x11e)](ke);return{'mergedOutline':{..._0x546660,'start':_0x3c17ae,'end':_0x1a161},'mergedOutlines':_0x30c7f9};}function be(_0x3b6c42,_0x41230f){const _0x387298=_0xdbfb;return _0x3b6c42[_0x387298(0x12d)](_0x36254d=>E(_0x36254d,_0x41230f)?!(_0x36254d[_0x387298(0xd1)]>=_0x41230f['start']&&_0x36254d[_0x387298(0xc1)]<=_0x41230f['end']):!0x0);}function xe(_0x67a461,_0x88192e,_0x5df1a4,_0x150292){const _0xc87eba=_0xdbfb;return Se(_0x67a461['filter'](_0x2f2900=>_0x2f2900[_0xc87eba(0xf3)]===_0x88192e&&_0x2f2900[_0xc87eba(0xb1)]===_0x5df1a4&&_0x2f2900[_0xc87eba(0xd2)]===_0x150292&&_0x2f2900[_0xc87eba(0x9e)])['map'](_0x47887b=>({'start':_0x47887b['start'],'end':_0x47887b[_0xc87eba(0xc1)]})));}function Se(_0x339efa){const _0x128927=_0xdbfb;if(_0x339efa[_0x128927(0xe5)]===0x0)return[];let _0x42e43a=[..._0x339efa][_0x128927(0x11e)]((_0x506e91,_0x5975f6)=>_0x506e91[_0x128927(0xd1)]-_0x5975f6['start']||_0x506e91[_0x128927(0xc1)]-_0x5975f6['end']),_0x37d6c7=[];for(let _0x52fe14 of _0x42e43a){let _0x292ca3=_0x37d6c7[_0x37d6c7[_0x128927(0xe5)]-0x1];!_0x292ca3||_0x52fe14[_0x128927(0xd1)]>_0x292ca3[_0x128927(0xc1)]+0x1?_0x37d6c7[_0x128927(0x141)]({..._0x52fe14}):_0x292ca3[_0x128927(0xc1)]=Math[_0x128927(0x12b)](_0x292ca3[_0x128927(0xc1)],_0x52fe14[_0x128927(0xc1)]);}return _0x37d6c7;}function k(_0x4f801d,_0x446486){const _0x5a4114=_0xdbfb;return _0x446486[_0x5a4114(0x9c)]<=0x0?_0x4f801d:M(_0x4f801d[_0x5a4114(0x117)](_0x45f530=>E(_0x45f530,_0x446486)?_0x446486[_0x5a4114(0xb8)]<=_0x45f530[_0x5a4114(0xd1)]?{..._0x45f530,'start':_0x45f530[_0x5a4114(0xd1)]+_0x446486['count'],'end':_0x45f530[_0x5a4114(0xc1)]+_0x446486[_0x5a4114(0x9c)]}:_0x45f530[_0x5a4114(0xd1)]<_0x446486[_0x5a4114(0xb8)]&&_0x446486[_0x5a4114(0xb8)]<=_0x45f530[_0x5a4114(0xc1)]?{..._0x45f530,'end':_0x45f530[_0x5a4114(0xc1)]+_0x446486[_0x5a4114(0x9c)]}:_0x45f530:_0x45f530));}function A(_0x375708,_0x5c3e6b){const _0x5dbc5a=_0xdbfb;if(_0x5c3e6b[_0x5dbc5a(0xd1)]>_0x5c3e6b['end'])return _0x375708;let _0x30b86f=_0x5c3e6b[_0x5dbc5a(0xc1)]-_0x5c3e6b[_0x5dbc5a(0xd1)]+0x1,_0x4b7b01=[];for(let _0x2e0104 of _0x375708){if(!E(_0x2e0104,_0x5c3e6b)){_0x4b7b01[_0x5dbc5a(0x141)](_0x2e0104);continue;}if(_0x2e0104[_0x5dbc5a(0xc1)]<_0x5c3e6b['start']){_0x4b7b01[_0x5dbc5a(0x141)](_0x2e0104);continue;}if(_0x2e0104[_0x5dbc5a(0xd1)]>_0x5c3e6b[_0x5dbc5a(0xc1)]){_0x4b7b01[_0x5dbc5a(0x141)]({..._0x2e0104,'start':_0x2e0104[_0x5dbc5a(0xd1)]-_0x30b86f,'end':_0x2e0104[_0x5dbc5a(0xc1)]-_0x30b86f});continue;}let _0x22243e=Math[_0x5dbc5a(0x12b)](_0x2e0104[_0x5dbc5a(0xd1)],_0x5c3e6b[_0x5dbc5a(0xd1)]),_0x17ac1e=Math[_0x5dbc5a(0xa6)](_0x2e0104[_0x5dbc5a(0xc1)],_0x5c3e6b[_0x5dbc5a(0xc1)]),_0x539827=Math[_0x5dbc5a(0x12b)](0x0,_0x17ac1e-_0x22243e+0x1),_0x5e954e=_0x2e0104[_0x5dbc5a(0xc1)]-_0x2e0104[_0x5dbc5a(0xd1)]+0x1-_0x539827;if(_0x5e954e<=0x0)continue;let _0x3b173e=_0x2e0104[_0x5dbc5a(0xd1)]<_0x5c3e6b[_0x5dbc5a(0xd1)]?_0x2e0104['start']:_0x5c3e6b[_0x5dbc5a(0xd1)];_0x4b7b01[_0x5dbc5a(0x141)]({..._0x2e0104,'start':_0x3b173e,'end':_0x3b173e+_0x5e954e-0x1});}return M(_0x4b7b01);}function j(_0x138517,_0x25bbae){const _0x1a3acd=_0xdbfb;if(_0x25bbae[_0x1a3acd(0xb7)]>_0x25bbae[_0x1a3acd(0x106)])return _0x138517;let _0xfe5d99=[];for(let _0x3bfe7b of _0x138517){if(!E(_0x3bfe7b,_0x25bbae)){_0xfe5d99[_0x1a3acd(0x141)](_0x3bfe7b);continue;}let _0x290396=Ce(_0x3bfe7b,_0x25bbae);if(_0x290396[_0x1a3acd(0xe7)]===_0x1a3acd(0x137))throw new w(_0x1a3acd(0x10e),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x3bfe7b['id'],_0x3bfe7b['id']);_0xfe5d99['push'](_0x290396['outline']);}return M(_0xfe5d99);}function Ce(_0x20d46c,_0x3f3408){const _0x497ff6=_0xdbfb;let _0x242fdd=we(_0x3f3408[_0x497ff6(0xb7)],_0x3f3408[_0x497ff6(0x106)]+0x1,_0x3f3408[_0x497ff6(0x13c)]),_0x34af4f=[],_0x5149c5={'start':_0x20d46c[_0x497ff6(0xd1)],'end':_0x20d46c[_0x497ff6(0xc1)]+0x1};for(let _0x2564fa of _0x242fdd){let _0x20f031=Te(_0x5149c5,_0x2564fa['range']);_0x20f031&&_0x34af4f[_0x497ff6(0x141)]({'start':_0x20f031[_0x497ff6(0xd1)]+_0x2564fa[_0x497ff6(0x10a)],'end':_0x20f031[_0x497ff6(0xc1)]+_0x2564fa[_0x497ff6(0x10a)]});}let _0x20e109=Ee(_0x34af4f);return _0x20e109[_0x497ff6(0xe5)]===0x1?{'type':'ok','outline':{..._0x20d46c,'start':_0x20e109[0x0][_0x497ff6(0xd1)],'end':_0x20e109[0x0][_0x497ff6(0xc1)]-0x1}}:{'type':_0x497ff6(0x137),'outline':_0x20d46c,'ranges':_0x20e109};}function we(_0x1670c2,_0x4506ad,_0x59c06f){const _0x4c543b=_0xdbfb;let _0x3dbe05=_0x4506ad-_0x1670c2;if(_0x3dbe05<=0x0)throw Error(_0x4c543b(0xc7));return _0x59c06f>=_0x1670c2&&_0x59c06f<=_0x4506ad?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x59c06f<_0x1670c2?[{'range':{'start':0x0,'end':_0x59c06f},'offset':0x0},{'range':{'start':_0x59c06f,'end':_0x1670c2},'offset':_0x3dbe05},{'range':{'start':_0x1670c2,'end':_0x4506ad},'offset':_0x59c06f-_0x1670c2},{'range':{'start':_0x4506ad,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1670c2},'offset':0x0},{'range':{'start':_0x1670c2,'end':_0x4506ad},'offset':_0x59c06f-_0x4506ad},{'range':{'start':_0x4506ad,'end':_0x59c06f},'offset':-_0x3dbe05},{'range':{'start':_0x59c06f,'end':T},'offset':0x0}];}function Te(_0x1d3437,_0xf9d68d){const _0x59d738=_0xdbfb;let _0x43c4bb=Math[_0x59d738(0x12b)](_0x1d3437[_0x59d738(0xd1)],_0xf9d68d['start']),_0xf47dcf=Math[_0x59d738(0xa6)](_0x1d3437[_0x59d738(0xc1)],_0xf9d68d[_0x59d738(0xc1)]);return _0x43c4bb>=_0xf47dcf?null:{'start':_0x43c4bb,'end':_0xf47dcf};}function Ee(_0x492104){const _0x540f6f=_0xdbfb;if(_0x492104[_0x540f6f(0xe5)]===0x0)return[];let _0x17ace1=[..._0x492104]['sort']((_0x5c1b28,_0x10a8ea)=>_0x5c1b28['start']-_0x10a8ea[_0x540f6f(0xd1)]||_0x5c1b28[_0x540f6f(0xc1)]-_0x10a8ea[_0x540f6f(0xc1)]),_0x116ec5=[];for(let _0x792b58 of _0x17ace1){let _0x34a1ad=_0x116ec5[_0x116ec5[_0x540f6f(0xe5)]-0x1];!_0x34a1ad||_0x792b58[_0x540f6f(0xd1)]>_0x34a1ad[_0x540f6f(0xc1)]?_0x116ec5['push']({..._0x792b58}):_0x34a1ad[_0x540f6f(0xc1)]=Math[_0x540f6f(0x12b)](_0x34a1ad[_0x540f6f(0xc1)],_0x792b58[_0x540f6f(0xc1)]);}return _0x116ec5;}function De(_0x5c681a,_0x1d72ae,_0x445396,_0x51ec01){return _0x1d72ae+0x1===_0x445396||_0x51ec01+0x1===_0x5c681a;}function M(_0x290195){let _0x46491f=Oe(_0x290195);return D(_0x46491f),_0x46491f;}function Oe(_0x43929d){const _0x26fe16=_0xdbfb;let _0x526e65=new Map();for(let _0x3a7e6d of _0x43929d){let _0x599e24=[_0x3a7e6d[_0x26fe16(0xf3)],_0x3a7e6d['subUnitId'],_0x3a7e6d['axis'],_0x3a7e6d[_0x26fe16(0xd1)],_0x3a7e6d[_0x26fe16(0xc1)]]['join'](':'),_0xe8d2db=_0x526e65[_0x26fe16(0xc6)](_0x599e24);if(!_0xe8d2db){_0x526e65[_0x26fe16(0xbc)](_0x599e24,_0x3a7e6d);continue;}_0x526e65[_0x26fe16(0xbc)](_0x599e24,{..._0xe8d2db,'collapsed':_0xe8d2db[_0x26fe16(0x9e)]||_0x3a7e6d['collapsed']});}return Array[_0x26fe16(0xd9)](_0x526e65[_0x26fe16(0xa2)]());}function ke(_0x1a92e8,_0x1304fb){const _0x3f6bd1=_0xdbfb;return _0x1a92e8[_0x3f6bd1(0xf3)]===_0x1304fb[_0x3f6bd1(0xf3)]?_0x1a92e8[_0x3f6bd1(0xb1)]===_0x1304fb['subUnitId']?_0x1a92e8[_0x3f6bd1(0xd2)]===_0x1304fb[_0x3f6bd1(0xd2)]?_0x1a92e8[_0x3f6bd1(0xd1)]===_0x1304fb[_0x3f6bd1(0xd1)]?_0x1304fb[_0x3f6bd1(0xc1)]-_0x1a92e8[_0x3f6bd1(0xc1)]:_0x1a92e8[_0x3f6bd1(0xd1)]-_0x1304fb[_0x3f6bd1(0xd1)]:_0x1a92e8['axis']['localeCompare'](_0x1304fb[_0x3f6bd1(0xd2)]):_0x1a92e8['subUnitId'][_0x3f6bd1(0xa7)](_0x1304fb['subUnitId']):_0x1a92e8['unitId'][_0x3f6bd1(0xa7)](_0x1304fb[_0x3f6bd1(0xf3)]);}function Ae(_0x350ae2){const _0x4673ee=_0xdbfb;if(_0x350ae2['start']>_0x350ae2[_0x4673ee(0xc1)])throw new w('invalid-range',_0x4673ee(0xeb),_0x350ae2['id']);}function je(_0x21d753,_0x50e25a){const _0x5e030a=_0xdbfb;let _0x55a3f3=_0x21d753[_0x5e030a(0xd1)]<=_0x50e25a[_0x5e030a(0xc1)]&&_0x50e25a['start']<=_0x21d753[_0x5e030a(0xc1)],_0x4f24a3=_0x21d753[_0x5e030a(0xd1)]<=_0x50e25a[_0x5e030a(0xd1)]&&_0x50e25a[_0x5e030a(0xc1)]<=_0x21d753['end'],_0x3b9911=_0x50e25a[_0x5e030a(0xd1)]<=_0x21d753['start']&&_0x21d753['end']<=_0x50e25a['end'];return _0x55a3f3&&!_0x4f24a3&&!_0x3b9911;}function N(_0x29b2f4){'@babel/helpers - typeof';const _0x13d369=_0xdbfb;return N=typeof Symbol==_0x13d369(0xf2)&&typeof Symbol[_0x13d369(0xfc)]==_0x13d369(0x127)?function(_0x4ed61f){return typeof _0x4ed61f;}:function(_0x3d032e){const _0xabf3bd=_0x13d369;return _0x3d032e&&typeof Symbol==_0xabf3bd(0xf2)&&_0x3d032e[_0xabf3bd(0x9a)]===Symbol&&_0x3d032e!==Symbol[_0xabf3bd(0x131)]?'symbol':typeof _0x3d032e;},N(_0x29b2f4);}function Me(_0x290fc7,_0x1a8d09){const _0x3aa1ee=_0xdbfb;if(N(_0x290fc7)!=_0x3aa1ee(0xd7)||!_0x290fc7)return _0x290fc7;var _0xfedfb4=_0x290fc7[Symbol[_0x3aa1ee(0x123)]];if(_0xfedfb4!==void 0x0){var _0x3ac7d6=_0xfedfb4[_0x3aa1ee(0xb2)](_0x290fc7,_0x1a8d09||'default');if(N(_0x3ac7d6)!=_0x3aa1ee(0xd7))return _0x3ac7d6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a8d09==='string'?String:Number)(_0x290fc7);}function Ne(_0x323950){const _0x41119d=_0xdbfb;var _0x341705=Me(_0x323950,_0x41119d(0xb4));return N(_0x341705)=='symbol'?_0x341705:_0x341705+'';}function P(_0x3921b0,_0x432d25,_0x57b5b7){const _0x433d85=_0xdbfb;return(_0x432d25=Ne(_0x432d25))in _0x3921b0?Object[_0x433d85(0xa4)](_0x3921b0,_0x432d25,{'value':_0x57b5b7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3921b0[_0x432d25]=_0x57b5b7,_0x3921b0;}var F=class extends _0x564e2b{constructor(..._0x524a88){const _0xd1e8c8=_0xdbfb;super(..._0x524a88),P(this,'_outlines',new Map()),P(this,_0xd1e8c8(0xde),new _0x4956bb()),P(this,_0xd1e8c8(0xa8),this['_change$'][_0xd1e8c8(0x113)]());}[_0x565511(0x10c)](_0x3fd13c,_0xdcaac2){const _0x5afb7e=_0x565511;var _0xc05eca,_0x2ad5e0;return[...(_0xc05eca=(_0x2ad5e0=this['_outlines'][_0x5afb7e(0xc6)](_0x3fd13c))==null?void 0x0:_0x2ad5e0[_0x5afb7e(0xc6)](_0xdcaac2))==null?[]:_0xc05eca];}['getUnitOutlines'](_0x4263de){const _0x4a546d=_0x565511;let _0x59466d=this[_0x4a546d(0xac)][_0x4a546d(0xc6)](_0x4263de),_0x261e67=new Map();return _0x59466d==null||_0x59466d[_0x4a546d(0x10f)]((_0x128d6b,_0x4a8cbf)=>{const _0x2f1922=_0x4a546d;_0x261e67[_0x2f1922(0xbc)](_0x4a8cbf,[..._0x128d6b]);}),_0x261e67;}[_0x565511(0x9f)](_0x54ac45,_0x2a9f58,_0x307ceb){const _0x4e56de=_0x565511;this['_ensureUnitOutlines'](_0x54ac45)[_0x4e56de(0xbc)](_0x2a9f58,[..._0x307ceb]),this[_0x4e56de(0xde)]['next']({'unitId':_0x54ac45,'subUnitId':_0x2a9f58});}[_0x565511(0x121)](_0x501864){const _0x4303c1=_0x565511;this[_0x4303c1(0xac)]['delete'](_0x501864),this[_0x4303c1(0xde)]['next']({'unitId':_0x501864});}[_0x565511(0xd5)](_0x387f91){const _0x4dbee8=_0x565511;let _0x20ffd0=this[_0x4dbee8(0xac)]['get'](_0x387f91),_0xb05e13={};return _0x20ffd0==null||_0x20ffd0[_0x4dbee8(0x10f)]((_0x57d342,_0x3a290c)=>{_0xb05e13[_0x3a290c]={'outlineList':[..._0x57d342]};}),_0xb05e13;}[_0x565511(0xfa)](_0x1e2f57,_0xc902b){const _0x1f9c17=_0x565511;let _0x44f2cc=new Map();Object[_0x1f9c17(0xec)](_0xc902b)['forEach'](([_0x3e9fb8,_0x3f4d58])=>{const _0x422710=_0x1f9c17;var _0x479f1f;_0x44f2cc[_0x422710(0xbc)](_0x3e9fb8,[...(_0x479f1f=_0x3f4d58[_0x422710(0x115)])==null?[]:_0x479f1f]);}),this[_0x1f9c17(0xac)][_0x1f9c17(0xbc)](_0x1e2f57,_0x44f2cc),this['_change$'][_0x1f9c17(0x12c)]({'unitId':_0x1e2f57});}[_0x565511(0xf9)](){const _0x576469=_0x565511;super[_0x576469(0xf9)](),this[_0x576469(0xac)][_0x576469(0xf8)](),this['_change$']['complete']();}['_ensureUnitOutlines'](_0x598825){const _0x1913f6=_0x565511;let _0x2000b9=this[_0x1913f6(0xac)][_0x1913f6(0xc6)](_0x598825);return _0x2000b9||(_0x2000b9=new Map(),this[_0x1913f6(0xac)][_0x1913f6(0xbc)](_0x598825,_0x2000b9)),_0x2000b9;}},I=class extends _0x564e2b{constructor(..._0x57ac66){const _0x388307=_0x565511;super(..._0x57ac66),P(this,_0x388307(0x136),new _0x4956bb()),P(this,_0x388307(0xcc),this['_error$'][_0x388307(0x113)]());}['emit'](_0x3d832f){const _0xa0eb34=_0x565511;this[_0xa0eb34(0x136)][_0xa0eb34(0x12c)](_0x3d832f);}[_0x565511(0xf9)](){const _0x10ab79=_0x565511;super[_0x10ab79(0xf9)](),this[_0x10ab79(0x136)][_0x10ab79(0xad)]();}};const L={'id':_0x565511(0xc2),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2e9b78,_0x4733c1)=>{const _0x4f8f48=_0x565511;let _0x202939=_0x2e9b78[_0x4f8f48(0xc6)](F),_0x7131c=_0x202939['getOutlines'](_0x4733c1[_0x4f8f48(0xf3)],_0x4733c1[_0x4f8f48(0xb1)]);return _0x202939[_0x4f8f48(0x9f)](_0x4733c1['unitId'],_0x4733c1[_0x4f8f48(0xb1)],ve(_0x7131c,_0x4733c1['outline'])),!0x0;}},R={'id':_0x565511(0x133),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x454ca1,_0xe0e702)=>{const _0x409a8c=_0x565511;let _0x929fa3=_0x454ca1['get'](F),_0x19c826=_0x929fa3['getOutlines'](_0xe0e702[_0x409a8c(0xf3)],_0xe0e702[_0x409a8c(0xb1)]);return _0x929fa3['setOutlines'](_0xe0e702[_0x409a8c(0xf3)],_0xe0e702[_0x409a8c(0xb1)],_0x19c826[_0x409a8c(0x12d)](_0x1f3661=>_0x1f3661['id']!==_0xe0e702[_0x409a8c(0x11a)])),!0x0;}};function z(_0x5efcbb,_0x460c27,_0x4c2395){const _0x4e3951=_0x565511;let _0x3be4ba=Fe(_0x5efcbb);return _0x3be4ba?_0x3be4ba[_0x4e3951(0xdb)]({'workbookTypes':[_0x54368d],'worksheetTypes':[_0x214033]},_0x460c27,_0x4c2395):!0x0;}function Pe(_0x11ae3a,_0x1696c9,_0x5428d4){const _0xe94162=_0x565511;var _0x41704d;let _0x3ba507=Ie(_0x11ae3a);return((_0x41704d=_0x3ba507==null?void 0x0:_0x3ba507[_0xe94162(0xee)])==null?_0x2aec80(null):_0x41704d)[_0xe94162(0xb3)](_0xb56627(0x64),_0x3595db(null),_0x36729b(()=>z(_0x11ae3a,_0x1696c9,_0x5428d4)));}function Fe(_0x2d9996){const _0x293acc=_0x565511;if(typeof _0x2d9996[_0x293acc(0xfb)]==_0x293acc(0xf2)&&!_0x2d9996['has'](_0x55ef15))return null;try{return _0x2d9996[_0x293acc(0xc6)](_0x55ef15);}catch{return null;}}function Ie(_0x3d4748){const _0x59cb44=_0x565511;if(typeof _0x3d4748['has']=='function'&&!_0x3d4748[_0x59cb44(0xfb)](_0x54bef8))return null;try{return _0x3d4748['get'](_0x54bef8);}catch{return null;}}const B={'id':_0x565511(0xda),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x1f2f28,_0x45cda0)=>{const _0x5a82c6=_0x565511;var _0x2031e0,_0x1851b4;if(!_0x45cda0)return!0x1;let _0x5005d1=_0x98a6a2(_0x1f2f28['get'](_0x4665c9),_0x45cda0);if(!_0x5005d1)return!0x1;let {unitId:_0x395db4,subUnitId:_0x548265,worksheet:_0x1d77f3}=_0x5005d1;if(!z(_0x1f2f28,_0x395db4,_0x548265))return!0x1;let _0x7ba048=_0x1f2f28[_0x5a82c6(0xc6)](F),_0x52e26c={'id':_0x5a82c6(0xca)+_0x39a559(0x6),'unitId':_0x395db4,'subUnitId':_0x548265,'axis':_0x45cda0['axis'],'start':_0x45cda0['start'],'end':_0x45cda0[_0x5a82c6(0xc1)],'collapsed':!0x1},_0x4c5f52=_0x45cda0['axis']==='row'?_0x1d77f3[_0x5a82c6(0xed)]():_0x1d77f3['getColumnCount'](),_0x4b685c=_0x7ba048[_0x5a82c6(0x10c)](_0x395db4,_0x548265),_0x476497=ye(_0x4b685c,_0x52e26c),_0x18aa27=(_0x2031e0=_0x476497==null?void 0x0:_0x476497[_0x5a82c6(0x119)])==null?[]:_0x2031e0,_0x202467=(_0x1851b4=_0x476497==null?void 0x0:_0x476497[_0x5a82c6(0x134)])==null?_0x52e26c:_0x1851b4,_0x370ca7=O(_0x476497?_0x4b685c['filter'](_0xe7a414=>!_0x18aa27[_0x5a82c6(0xdf)](_0x83d15d=>_0x83d15d['id']===_0xe7a414['id'])):_0x4b685c,_0x202467,{'maxIndex':_0x4c5f52});if(!_0x370ca7[_0x5a82c6(0x11c)]){var _0x129171;return _0x1f2f28['get'](I)[_0x5a82c6(0xc3)]({'reason':(_0x129171=_0x370ca7[_0x5a82c6(0xc8)])==null?_0x5a82c6(0x9b):_0x129171,'commandId':B['id'],'unitId':_0x395db4,'subUnitId':_0x548265,'axis':_0x45cda0[_0x5a82c6(0xd2)],'outlineId':_0x202467['id']}),!0x1;}let _0x17fd76=[..._0x18aa27[_0x5a82c6(0x117)](_0x50b76b=>({'id':R['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outlineId':_0x50b76b['id']}})),{'id':L['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outline':_0x202467}}],_0x17350d=[{'id':R['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outlineId':_0x202467['id']}},..._0x18aa27[_0x5a82c6(0x117)](_0x2d013c=>({'id':L['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outline':_0x2d013c}}))];return _0x28033e(_0x17fd76,_0x1f2f28[_0x5a82c6(0xc6)](_0x43bee3))[_0x5a82c6(0xcf)]?(_0x1f2f28[_0x5a82c6(0xc6)](_0x443f20)['pushUndoRedo']({'unitID':_0x395db4,'undoMutations':_0x17350d,'redoMutations':_0x17fd76}),!0x0):!0x1;}},V={'id':'sheet.mutation.clear-dimension-outlines','type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2f7e0d,_0x153d38)=>{const _0x43cc8c=_0x565511;let _0x8c11b=_0x2f7e0d['get'](F),_0x34cc6b=_0x8c11b[_0x43cc8c(0x10c)](_0x153d38['unitId'],_0x153d38[_0x43cc8c(0xb1)]);return _0x8c11b[_0x43cc8c(0x9f)](_0x153d38['unitId'],_0x153d38[_0x43cc8c(0xb1)],be(_0x34cc6b,_0x153d38)),!0x0;}},H={'id':_0x565511(0xb5),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x16741c,_0x5c1317)=>{const _0x833754=_0x565511;if(!_0x5c1317)return!0x1;let _0x1e49cd=_0x98a6a2(_0x16741c['get'](_0x4665c9),_0x5c1317);if(!_0x1e49cd)return!0x1;let {unitId:_0x51ba14,subUnitId:_0x11492a}=_0x1e49cd;if(!z(_0x16741c,_0x51ba14,_0x11492a))return!0x1;let _0x660e51={'unitId':_0x51ba14,'subUnitId':_0x11492a,'axis':_0x5c1317['axis'],'start':_0x5c1317[_0x833754(0xd1)],'end':_0x5c1317[_0x833754(0xc1)]},_0x4aa782=_0x16741c[_0x833754(0xc6)](F)[_0x833754(0x10c)](_0x51ba14,_0x11492a)[_0x833754(0x12d)](_0x39faef=>E(_0x39faef,_0x660e51)&&_0x39faef[_0x833754(0xd1)]>=_0x5c1317[_0x833754(0xd1)]&&_0x39faef[_0x833754(0xc1)]<=_0x5c1317[_0x833754(0xc1)]);if(_0x4aa782[_0x833754(0xe5)]===0x0)return _0x16741c[_0x833754(0xc6)](I)[_0x833754(0xc3)]({'reason':_0x833754(0xe3),'commandId':H['id'],'unitId':_0x51ba14,'subUnitId':_0x11492a,'axis':_0x5c1317[_0x833754(0xd2)]}),!0x1;let _0x35f974=[{'id':V['id'],'params':{..._0x660e51,'removedOutlineIds':_0x4aa782[_0x833754(0x117)](_0x117530=>_0x117530['id'])}}],_0x52fc10=_0x4aa782[_0x833754(0x117)](_0x1101fa=>({'id':L['id'],'params':{'unitId':_0x51ba14,'subUnitId':_0x11492a,'outline':_0x1101fa}}));return _0x28033e(_0x35f974,_0x16741c[_0x833754(0xc6)](_0x43bee3))[_0x833754(0xcf)]?(_0x16741c[_0x833754(0xc6)](_0x443f20)[_0x833754(0xd3)]({'unitID':_0x51ba14,'undoMutations':_0x52fc10,'redoMutations':_0x35f974}),!0x0):!0x1;}},Le={'id':_0x565511(0x104),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x4a6579,_0x32d1f2)=>{const _0x2dac92=_0x565511;if(!_0x32d1f2)return!0x1;let _0x1fb06f=_0x98a6a2(_0x4a6579[_0x2dac92(0xc6)](_0x4665c9),_0x32d1f2);if(!_0x1fb06f)return!0x1;let {unitId:_0x1234aa,subUnitId:_0x2c1e30}=_0x1fb06f;if(!z(_0x4a6579,_0x1234aa,_0x2c1e30))return!0x1;let _0x620474=_0x4a6579[_0x2dac92(0xc6)](F)[_0x2dac92(0x10c)](_0x1234aa,_0x2c1e30)['find'](_0x146472=>_0x146472['id']===_0x32d1f2[_0x2dac92(0x11a)]);if(!_0x620474)return!0x1;let _0x26b96f=[{'id':R['id'],'params':{'unitId':_0x1234aa,'subUnitId':_0x2c1e30,'outlineId':_0x620474['id'],'outline':_0x620474}}],_0x35f3b7=[{'id':L['id'],'params':{'unitId':_0x1234aa,'subUnitId':_0x2c1e30,'outline':_0x620474}}];return _0x28033e(_0x26b96f,_0x4a6579[_0x2dac92(0xc6)](_0x43bee3))[_0x2dac92(0xcf)]?(_0x4a6579[_0x2dac92(0xc6)](_0x443f20)['pushUndoRedo']({'unitID':_0x1234aa,'undoMutations':_0x35f3b7,'redoMutations':_0x26b96f}),!0x0):!0x1;}},U={'id':_0x565511(0xd4),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2c27ac,_0x2fafc9)=>{const _0x198c01=_0x565511;let _0x2ae94d=_0x2c27ac['get'](F),_0x86e48c=_0x2ae94d[_0x198c01(0x10c)](_0x2fafc9['unitId'],_0x2fafc9['subUnitId']),_0xb96d1c=_0x86e48c['find'](_0x512eef=>_0x512eef['id']===_0x2fafc9[_0x198c01(0x11a)]);return _0xb96d1c&&_0x2ae94d[_0x198c01(0x9f)](_0x2fafc9[_0x198c01(0xf3)],_0x2fafc9[_0x198c01(0xb1)],_0x86e48c[_0x198c01(0x117)](_0x4ba560=>_0x4ba560[_0x198c01(0xf3)]!==_0xb96d1c[_0x198c01(0xf3)]||_0x4ba560[_0x198c01(0xb1)]!==_0xb96d1c['subUnitId']||_0x4ba560[_0x198c01(0xd2)]!==_0xb96d1c['axis']||_0x4ba560['start']!==_0xb96d1c[_0x198c01(0xd1)]||_0x4ba560['end']!==_0xb96d1c[_0x198c01(0xc1)]?_0x4ba560:{..._0x4ba560,'collapsed':_0x2fafc9['collapsed']})),!0x0;}};function Re(_0x3afd82,_0x198a3f,_0x849ea9,_0x23a55c){const _0xf58abb=_0x565511;return _0x3afd82==='row'?{'startRow':_0x198a3f,'endRow':_0x849ea9,'startColumn':0x0,'endColumn':_0x23a55c['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x23a55c[_0xf58abb(0xed)]()-0x1,'startColumn':_0x198a3f,'endColumn':_0x849ea9};}function ze(_0xe2ded7){return _0xe2ded7==='row'?_0x24c04e['id']:_0x1a6e2d['id'];}function Be(_0x528724){const _0x37d119=_0x565511;return _0x528724===_0x37d119(0xf4)?_0x4c050a['id']:_0x46b269['id'];}function Ve(_0x1d6285,_0x314e4e,_0x2a4120,_0x5b54bf){const _0x2187b2=_0x565511;let _0x10a4b1=_0x314e4e?[Re(_0x1d6285[_0x2187b2(0xd2)],_0x1d6285['start'],_0x1d6285[_0x2187b2(0xc1)],_0x2a4120)]:He(_0x1d6285,_0x5b54bf,_0x2a4120),_0x21a4fb=_0x314e4e?ze(_0x1d6285[_0x2187b2(0xd2)]):Be(_0x1d6285[_0x2187b2(0xd2)]);return[{'id':U['id'],'params':{'unitId':_0x1d6285[_0x2187b2(0xf3)],'subUnitId':_0x1d6285[_0x2187b2(0xb1)],'outlineId':_0x1d6285['id'],'outline':_0x1d6285,'collapsed':_0x314e4e}},..._0x10a4b1[_0x2187b2(0x117)](_0xb8c88b=>({'id':_0x21a4fb,'params':{'unitId':_0x1d6285[_0x2187b2(0xf3)],'subUnitId':_0x1d6285[_0x2187b2(0xb1)],'ranges':[_0xb8c88b],'dimensionOutlineId':_0x1d6285['id']}}))];}function He(_0xa4571,_0xedf639,_0x3b5e03){const _0x1f1ff4=_0x565511;let _0x51e5bb=xe(_0xedf639[_0x1f1ff4(0x117)](_0x46a8b0=>Ue(_0x46a8b0,_0xa4571)?{..._0x46a8b0,'collapsed':!0x1}:_0x46a8b0),_0xa4571['unitId'],_0xa4571[_0x1f1ff4(0xb1)],_0xa4571[_0x1f1ff4(0xd2)]);return We({'start':_0xa4571['start'],'end':_0xa4571[_0x1f1ff4(0xc1)]},_0x51e5bb)[_0x1f1ff4(0x117)](_0x194a35=>Re(_0xa4571[_0x1f1ff4(0xd2)],_0x194a35['start'],_0x194a35[_0x1f1ff4(0xc1)],_0x3b5e03));}function Ue(_0x54581d,_0x1b03bf){const _0x19533f=_0x565511;return _0x54581d[_0x19533f(0xf3)]===_0x1b03bf[_0x19533f(0xf3)]&&_0x54581d[_0x19533f(0xb1)]===_0x1b03bf['subUnitId']&&_0x54581d['axis']===_0x1b03bf[_0x19533f(0xd2)]&&_0x54581d[_0x19533f(0xd1)]===_0x1b03bf['start']&&_0x54581d[_0x19533f(0xc1)]===_0x1b03bf[_0x19533f(0xc1)];}function We(_0x5dd0e0,_0x57a6bd){const _0xfaa150=_0x565511;let _0x3a8001=_0x5dd0e0[_0xfaa150(0xd1)],_0x1554c3=[];for(let _0x4783e2 of _0x57a6bd)if(!(_0x4783e2['end']<_0x3a8001||_0x4783e2[_0xfaa150(0xd1)]>_0x5dd0e0[_0xfaa150(0xc1)])&&(_0x4783e2[_0xfaa150(0xd1)]>_0x3a8001&&_0x1554c3[_0xfaa150(0x141)]({'start':_0x3a8001,'end':Math['min'](_0x4783e2['start']-0x1,_0x5dd0e0[_0xfaa150(0xc1)])}),_0x3a8001=Math[_0xfaa150(0x12b)](_0x3a8001,_0x4783e2[_0xfaa150(0xc1)]+0x1),_0x3a8001>_0x5dd0e0[_0xfaa150(0xc1)]))break;return _0x3a8001<=_0x5dd0e0['end']&&_0x1554c3[_0xfaa150(0x141)]({'start':_0x3a8001,'end':_0x5dd0e0[_0xfaa150(0xc1)]}),_0x1554c3;}const Ge={'id':_0x565511(0xe2),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x228b37,_0x5172e8)=>{const _0x579125=_0x565511;if(!_0x5172e8)return!0x1;let _0x3e12c3=_0x98a6a2(_0x228b37[_0x579125(0xc6)](_0x4665c9),_0x5172e8);if(!_0x3e12c3)return!0x1;let {unitId:_0x371a08,subUnitId:_0x594d90,worksheet:_0x4133a0}=_0x3e12c3;if(!z(_0x228b37,_0x371a08,_0x594d90))return!0x1;let _0x13e608=_0x228b37[_0x579125(0xc6)](F)['getOutlines'](_0x371a08,_0x594d90),_0x1ebf96=_0x13e608['find'](_0x5abe5d=>_0x5abe5d['id']===_0x5172e8[_0x579125(0x11a)]);if(!_0x1ebf96||_0x1ebf96[_0x579125(0x9e)]===_0x5172e8[_0x579125(0x9e)])return!0x1;let _0x5f2caf=Ve(_0x1ebf96,_0x5172e8['collapsed'],_0x4133a0,_0x13e608),_0x31a5f8=Ve(_0x1ebf96,!_0x5172e8[_0x579125(0x9e)],_0x4133a0,_0x13e608);return _0x28033e(_0x5f2caf,_0x228b37[_0x579125(0xc6)](_0x43bee3))[_0x579125(0xcf)]?(_0x228b37[_0x579125(0xc6)](_0x443f20)[_0x579125(0xd3)]({'unitID':_0x371a08,'undoMutations':_0x31a5f8,'redoMutations':_0x5f2caf}),!0x0):!0x1;}},W={'id':_0x565511(0x100),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x5eb33d,_0x45156b)=>{const _0x29480f=_0x565511;let _0x408ba6=_0x5eb33d['get'](F),_0x1752da=Ke(_0x408ba6[_0x29480f(0x10c)](_0x45156b[_0x29480f(0xf3)],_0x45156b[_0x29480f(0xb1)]),_0x45156b);return _0x408ba6['setOutlines'](_0x45156b[_0x29480f(0xf3)],_0x45156b[_0x29480f(0xb1)],_0x1752da),!0x0;}};function Ke(_0x587269,_0x30d098){const _0x33c515=_0x565511;switch(_0x30d098[_0x33c515(0xe7)]){case _0x33c515(0xc5):return _0x30d098['restoreOutlines']?qe(_0x587269,_0x30d098):k(_0x587269,_0x30d098);case'delete':return A(_0x587269,_0x30d098);case _0x33c515(0xbe):return j(_0x587269,_0x30d098);}}function qe(_0x3d25dd,_0x3293af){const _0x237046=_0x565511;return[..._0x3d25dd[_0x237046(0x12d)](_0x3e4aee=>_0x3e4aee['unitId']!==_0x3293af['unitId']||_0x3e4aee[_0x237046(0xb1)]!==_0x3293af[_0x237046(0xb1)]||_0x3e4aee[_0x237046(0xd2)]!==_0x3293af[_0x237046(0xd2)]),..._0x3293af[_0x237046(0xf6)]];}const G=_0x565511(0x126);var Je=_0x565511(0x135),Ye=_0x565511(0xdc);const Xe={};function K(_0x38a4b7,_0x5cea5b){return function(_0x592c00,_0xe41e30){_0x5cea5b(_0x592c00,_0xe41e30,_0x38a4b7);};}function q(_0x5e7b28,_0x191a81,_0x33a55b,_0x4a8796){const _0x42f4b6=_0x565511;var _0xcf4fee=arguments['length'],_0x2627d7=_0xcf4fee<0x3?_0x191a81:_0x4a8796===null?_0x4a8796=Object[_0x42f4b6(0xe1)](_0x191a81,_0x33a55b):_0x4a8796,_0xd539ec;if(typeof Reflect==_0x42f4b6(0xd7)&&typeof Reflect['decorate']=='function')_0x2627d7=Reflect[_0x42f4b6(0xea)](_0x5e7b28,_0x191a81,_0x33a55b,_0x4a8796);else{for(var _0x2b3569=_0x5e7b28[_0x42f4b6(0xe5)]-0x1;_0x2b3569>=0x0;_0x2b3569--)(_0xd539ec=_0x5e7b28[_0x2b3569])&&(_0x2627d7=(_0xcf4fee<0x3?_0xd539ec(_0x2627d7):_0xcf4fee>0x3?_0xd539ec(_0x191a81,_0x33a55b,_0x2627d7):_0xd539ec(_0x191a81,_0x33a55b))||_0x2627d7);}return _0xcf4fee>0x3&&_0x2627d7&&Object[_0x42f4b6(0xa4)](_0x191a81,_0x33a55b,_0x2627d7),_0x2627d7;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let Y=class extends _0x564e2b{constructor(_0x463f77,_0x4a1ae9,_0x31d2da,_0x158f39){const _0x317ed3=_0x565511;super(),this['_univerInstanceService']=_0x463f77,this['_sheetInterceptorService']=_0x4a1ae9,this[_0x317ed3(0x120)]=_0x31d2da,this[_0x317ed3(0x13a)]=_0x158f39,this[_0x317ed3(0xf5)]();}[_0x565511(0xf5)](){const _0x2c0a3e=_0x565511;this[_0x2c0a3e(0xfe)](this[_0x2c0a3e(0x138)][_0x2c0a3e(0x105)]({'getMutations':_0x4878ca=>Ze(_0x4878ca,(_0x2167f7,_0x351809)=>this[_0x2c0a3e(0x120)][_0x2c0a3e(0x10c)](_0x2167f7,_0x351809),this[_0x2c0a3e(0x124)](_0x4878ca[_0x2c0a3e(0xcd)]),_0xf4740b=>this[_0x2c0a3e(0x13a)][_0x2c0a3e(0xc3)](_0xf4740b))}));}[_0x565511(0x124)](_0x491e86){const _0x5ef9f3=_0x565511;let _0x1100ab=_0x491e86,_0x470651=_0x1100ab!=null&&_0x1100ab[_0x5ef9f3(0xf3)]?this[_0x5ef9f3(0xef)]['getUniverSheetInstance'](_0x1100ab[_0x5ef9f3(0xf3)]):this[_0x5ef9f3(0xef)][_0x5ef9f3(0x101)](_0x2ab9bd[_0x5ef9f3(0xc9)]);if(!_0x470651)return;let _0x590f79=_0x1100ab!=null&&_0x1100ab[_0x5ef9f3(0xb1)]?_0x470651[_0x5ef9f3(0x125)](_0x1100ab[_0x5ef9f3(0xb1)]):_0x470651['getActiveSheet']();if(_0x590f79)return{'unitId':_0x470651[_0x5ef9f3(0x139)](),'subUnitId':_0x590f79[_0x5ef9f3(0x122)]()};}};Y=q([K(0x0,_0x4665c9),K(0x1,_0x69251c(_0x5d26ad)),K(0x2,_0x69251c(F)),K(0x3,_0x69251c(I))],Y);function Ze(_0xf8eeb2,_0xfd4703,_0x200f73,_0x589789){const _0xb4b58a=_0x565511;let _0x3055a9=$e(_0xf8eeb2,_0x200f73);if(!_0x3055a9)return it();let _0x4eee5d=_0xfd4703(_0x3055a9[_0xb4b58a(0xf3)],_0x3055a9['subUnitId']);if(!_0x4eee5d[_0xb4b58a(0xdf)](_0x2b7112=>_0x2b7112['axis']===_0x3055a9[_0xb4b58a(0xd2)]))return it();Qe(_0x4eee5d,_0x3055a9,_0xf8eeb2['id'],_0x589789);let _0x150435=nt(_0x3055a9,_0x4eee5d);return{'redos':[{'id':W['id'],'params':_0x3055a9}],'undos':[{'id':W['id'],'params':_0x150435}],'preRedos':[],'preUndos':[]};}function Qe(_0x4e980d,_0xd5ecfa,_0x2fbb1b,_0x4e7986){const _0x22ea8a=_0x565511;try{switch(_0xd5ecfa[_0x22ea8a(0xe7)]){case _0x22ea8a(0xc5):k(_0x4e980d,_0xd5ecfa);break;case _0x22ea8a(0xdd):A(_0x4e980d,_0xd5ecfa);break;case _0x22ea8a(0xbe):j(_0x4e980d,_0xd5ecfa);break;}}catch(_0x578342){throw _0x4e7986==null||_0x4e7986({'reason':ge(_0x578342),'commandId':_0x2fbb1b,'unitId':_0xd5ecfa['unitId'],'subUnitId':_0xd5ecfa['subUnitId'],'axis':_0xd5ecfa[_0x22ea8a(0xd2)],'outlineId':_e(_0x578342)}),new _0x21ca2b(_0x578342 instanceof Error?_0x578342[_0x22ea8a(0xf0)]:_0x22ea8a(0x13d));}}function _0xa77e(){const _0x48c56d=['startColumn','decorate','Invalid\x20outline\x20range','entries','getRowCount','permissionPointUpdate$','_univerInstanceService','message','1021141DZowud','function','unitId','row','_initCommandInterceptor','restoreOutlines','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','clear','dispose','deserialize','has','iterator','name','disposeWithMe','_initRegisterCommand','sheet.mutation.transform-dimension-outlines','getCurrentUnitOfType','MOVE_SPLITS_OUTLINE','4jzkoBs','sheet.command.remove-dimension-outline','interceptCommand','sourceEnd','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','maxIndex','invalid-range','offset','172775XuZuWg','getOutlines','onStarting','move-splits-outline','forEach','MUTATION','_resourceManagerService','3278160jjkfVK','asObservable','18sxTARk','outlineList','pluginName','map','depth','mergedOutlines','outlineId','startRow','valid','326019qgJPib','sort','Crossing','_sheetsOutlineModel','removeUnit','getSheetId','toPrimitive','_getCommandScope','getSheetBySheetId','SHEET_OUTLINE_PLUGIN','symbol','fromRange','max-depth','registerCommand','max','next','filter','78luCvgR','children','398258Xwqflc','prototype','crossing','sheet.mutation.remove-dimension-outline','mergedOutline','@univerjs-pro/sheets-outline','_error$','split','_sheetInterceptorService','getUnitId','_sheetsOutlineErrorService','invalid-dimension-outline','destinationIndex','Invalid\x20dimension\x20outline\x20mutation','CROSSING','UNKNOWN','version','push','endColumn','constructor','unknown','count','pop','collapsed','setOutlines','range','_injector','values','endRow','defineProperty','_configService','min','localeCompare','change$','ROW','column','preUndos','_outlines','complete','packageName','toRange','20YDGtia','subUnitId','call','pipe','string','sheet.command.clear-dimension-outlines','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','sourceStart','index','undos','sheets-outline.config','includes','set','COMMAND','move','59453hUCaHu','718564rYQhkL','end','sheet.mutation.add-dimension-outline','emit','add','insert','get','Invalid\x20dimension\x20outline\x20move\x20source\x20range','reason','UNIVER_SHEET','dimension-outline-','8Jsiuxh','error$','params','MAX_DEPTH','result','_config','start','axis','pushUndoRedo','sheet.mutation.set-dimension-outline-collapsed','serialize','out-of-bounds','object','_initResource','from','sheet.command.add-dimension-outline','permissionCheckWithoutRange','1.0.0-alpha.5','delete','_change$','some','78qbMcVc','getOwnPropertyDescriptor','sheet.command.set-dimension-outline-collapsed','clear-range-not-contain-outline','redos','length','COLUMN','type','24lXLMix'];_0xa77e=function(){return _0x48c56d;};return _0xa77e();}function $e(_0x42af84,_0x3687a5){const _0x5cc8fe=_0x565511;switch(_0x42af84['id']){case _0x4ca3ad['id']:return et(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xf4),_0x3687a5);case _0x57b19f['id']:return et(_0x42af84['params'],'column',_0x3687a5);case _0x3c1f56['id']:return X(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xf4),_0x3687a5);case _0x33ea80['id']:return X(_0x42af84['params'],_0x5cc8fe(0xaa),_0x3687a5);case _0x5aa133['id']:return tt(_0x42af84['params'],_0x5cc8fe(0xf4),_0x3687a5);case _0xa17699['id']:return tt(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xaa),_0x3687a5);default:return null;}}function et(_0x2a6d39,_0x3529d3,_0x439637){const _0x15293e=_0x565511;let _0x13096c=Z(_0x2a6d39,_0x439637);if(!(_0x2a6d39!=null&&_0x2a6d39['range'])||!_0x13096c)return null;let _0x2bbf91=_0x3529d3===_0x15293e(0xf4)?_0x2a6d39[_0x15293e(0xa0)][_0x15293e(0x11b)]:_0x2a6d39['range'][_0x15293e(0xe9)],_0x227519=_0x3529d3===_0x15293e(0xf4)?_0x2a6d39['range']['endRow']:_0x2a6d39[_0x15293e(0xa0)][_0x15293e(0x142)];return{..._0x13096c,'axis':_0x3529d3,'type':'insert','index':_0x2bbf91,'count':_0x227519-_0x2bbf91+0x1};}function X(_0x65cf86,_0x172af3,_0x90dca7){const _0x169cd3=_0x565511;let _0x1e8ae7=Z(_0x65cf86,_0x90dca7);if(!(_0x65cf86!=null&&_0x65cf86[_0x169cd3(0xa0)])||!_0x1e8ae7)return null;let _0x2258fb=_0x172af3==='row'?_0x65cf86[_0x169cd3(0xa0)][_0x169cd3(0x11b)]:_0x65cf86['range'][_0x169cd3(0xe9)],_0x324ef9=_0x172af3==='row'?_0x65cf86[_0x169cd3(0xa0)]['endRow']:_0x65cf86[_0x169cd3(0xa0)][_0x169cd3(0x142)];return{..._0x1e8ae7,'axis':_0x172af3,'type':_0x169cd3(0xdd),'start':_0x2258fb,'end':_0x324ef9};}function tt(_0x4d4d3c,_0x489ada,_0x11073d){const _0x11fb27=_0x565511;let _0x2aae60=Z(_0x4d4d3c,_0x11073d);if(!(_0x4d4d3c!=null&&_0x4d4d3c[_0x11fb27(0x128)])||!_0x4d4d3c[_0x11fb27(0xaf)]||!_0x2aae60)return null;let _0x4734cb=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0x11b)]:_0x4d4d3c[_0x11fb27(0x128)]['startColumn'],_0x386ef7=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0xa3)]:_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0x142)],_0x4db1db=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0xaf)]['startRow']:_0x4d4d3c[_0x11fb27(0xaf)]['startColumn'];return{..._0x2aae60,'axis':_0x489ada,'type':_0x11fb27(0xbe),'sourceStart':_0x4734cb,'sourceEnd':_0x386ef7,'destinationIndex':_0x4db1db};}function nt(_0x4b1d70,_0x343224){const _0x59a2da=_0x565511;switch(_0x4b1d70['type']){case'insert':return{'unitId':_0x4b1d70[_0x59a2da(0xf3)],'subUnitId':_0x4b1d70['subUnitId'],'axis':_0x4b1d70[_0x59a2da(0xd2)],'type':_0x59a2da(0xdd),'start':_0x4b1d70[_0x59a2da(0xb8)],'end':_0x4b1d70[_0x59a2da(0xb8)]+_0x4b1d70[_0x59a2da(0x9c)]-0x1};case _0x59a2da(0xdd):return{'unitId':_0x4b1d70[_0x59a2da(0xf3)],'subUnitId':_0x4b1d70[_0x59a2da(0xb1)],'axis':_0x4b1d70[_0x59a2da(0xd2)],'type':_0x59a2da(0xc5),'index':_0x4b1d70[_0x59a2da(0xd1)],'count':_0x4b1d70[_0x59a2da(0xc1)]-_0x4b1d70[_0x59a2da(0xd1)]+0x1,'restoreOutlines':_0x343224['filter'](_0x588a9f=>_0x588a9f[_0x59a2da(0xf3)]===_0x4b1d70['unitId']&&_0x588a9f[_0x59a2da(0xb1)]===_0x4b1d70[_0x59a2da(0xb1)]&&_0x588a9f[_0x59a2da(0xd2)]===_0x4b1d70['axis'])};case _0x59a2da(0xbe):return rt(_0x4b1d70);}}function rt(_0x443185){const _0x34dd82=_0x565511;let _0x35bb2f=_0x443185[_0x34dd82(0x106)]-_0x443185[_0x34dd82(0xb7)]+0x1;return _0x443185['destinationIndex']>=_0x443185['sourceStart']&&_0x443185[_0x34dd82(0x13c)]<=_0x443185['sourceEnd']+0x1?{..._0x443185}:_0x443185[_0x34dd82(0x13c)]>_0x443185[_0x34dd82(0x106)]+0x1?{..._0x443185,'sourceStart':_0x443185[_0x34dd82(0x13c)]-_0x35bb2f,'sourceEnd':_0x443185[_0x34dd82(0x13c)]-0x1,'destinationIndex':_0x443185[_0x34dd82(0xb7)]}:{..._0x443185,'sourceStart':_0x443185[_0x34dd82(0x13c)],'sourceEnd':_0x443185[_0x34dd82(0x13c)]+_0x35bb2f-0x1,'destinationIndex':_0x443185['sourceEnd']+0x1};}function Z(_0x25642c,_0x91eab7){const _0x468e1b=_0x565511;var _0x2e6c6a,_0x1dd3d8;let _0x1445d9=(_0x2e6c6a=_0x25642c==null?void 0x0:_0x25642c[_0x468e1b(0xf3)])==null?_0x91eab7==null?void 0x0:_0x91eab7[_0x468e1b(0xf3)]:_0x2e6c6a,_0x47ca7d=(_0x1dd3d8=_0x25642c==null?void 0x0:_0x25642c[_0x468e1b(0xb1)])==null?_0x91eab7==null?void 0x0:_0x91eab7[_0x468e1b(0xb1)]:_0x1dd3d8;return _0x1445d9&&_0x47ca7d?{'unitId':_0x1445d9,'subUnitId':_0x47ca7d}:null;}function it(){const _0x52b3c7=_0x565511;var _0x3b46da,_0x379d23;return{'redos':[...J[_0x52b3c7(0xe4)]],'undos':[...J[_0x52b3c7(0xb9)]],'preRedos':[...(_0x3b46da=J['preRedos'])==null?[]:_0x3b46da],'preUndos':[...(_0x379d23=J[_0x52b3c7(0xab)])==null?[]:_0x379d23]};}let Q=class extends _0x564e2b{constructor(_0x421ee3,_0x493ade){const _0x2481c8=_0x565511;super(),this[_0x2481c8(0x111)]=_0x421ee3,this[_0x2481c8(0x120)]=_0x493ade,this[_0x2481c8(0xd8)]();}[_0x565511(0xd8)](){const _0x39113a=_0x565511;this[_0x39113a(0xfe)](this['_resourceManagerService']['registerPluginResource']({'pluginName':G,'businesses':[_0x2ab9bd['UNIVER_SHEET']],'toJson':_0x21bfd2=>JSON['stringify'](this[_0x39113a(0x120)][_0x39113a(0xd5)](_0x21bfd2)),'parseJson':_0x455757=>JSON['parse'](_0x455757),'onLoad':(_0x3d045b,_0x518665)=>this[_0x39113a(0x120)]['deserialize'](_0x3d045b,_0x518665),'onUnLoad':_0x3cf693=>this[_0x39113a(0x120)][_0x39113a(0x121)](_0x3cf693)}));}};Q=q([K(0x0,_0x1b2d4c),K(0x1,_0x69251c(F))],Q);function _0xdbfb(_0x2a1d06,_0x2562f4){_0x2a1d06=_0x2a1d06-0x9a;const _0xa77e03=_0xa77e();let _0xdbfb03=_0xa77e03[_0x2a1d06];return _0xdbfb03;}let $=class extends _0x35d18e{constructor(_0x7abf78=Xe,_0x4f86f9,_0x41bea6,_0x2e946a){const _0x3ae69a=_0x565511;super(),this[_0x3ae69a(0xd0)]=_0x7abf78,this[_0x3ae69a(0xa1)]=_0x4f86f9,this['_commandService']=_0x41bea6,this[_0x3ae69a(0xa5)]=_0x2e946a;let {..._0x40805b}=_0x34c955({},Xe,this[_0x3ae69a(0xd0)]);this[_0x3ae69a(0xa5)]['setConfig'](_0x3ae69a(0xba),_0x40805b);}[_0x565511(0x10d)](){const _0x5e81a9=_0x565511;this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([F]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([I]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([Q]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([Y]),this[_0x5e81a9(0xff)](),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](F),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](I),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](Q),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](Y);}[_0x565511(0xff)](){[B,Le,Ge,H]['forEach'](_0x337d45=>{const _0x5074d1=_0xdbfb;this[_0x5074d1(0xfe)](this['_commandService'][_0x5074d1(0x12a)](_0x337d45));}),[L,R,U,V,W]['forEach'](_0x3184fc=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x3184fc));});}};P($,_0x565511(0x116),G),P($,_0x565511(0xae),Je),P($,_0x565511(0x140),Ye),P($,_0x565511(0xe7),_0x2ab9bd[_0x565511(0xc9)]),$=q([_0x17a12a(_0x579cb4),K(0x1,_0x69251c(_0x1291f3)),K(0x2,_0x43bee3),K(0x3,_0x366292)],$);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};
1
+ const _0x43d830=_0x1f7d;(function(_0x21530a,_0x2723d1){const _0x245331=_0x1f7d,_0x39ff8b=_0x21530a();while(!![]){try{const _0x4f8604=parseInt(_0x245331(0xa6))/0x1*(parseInt(_0x245331(0xb4))/0x2)+-parseInt(_0x245331(0xc0))/0x3+parseInt(_0x245331(0x85))/0x4*(parseInt(_0x245331(0xb7))/0x5)+parseInt(_0x245331(0x92))/0x6*(parseInt(_0x245331(0xef))/0x7)+-parseInt(_0x245331(0xd2))/0x8*(parseInt(_0x245331(0xec))/0x9)+parseInt(_0x245331(0xbc))/0xa*(parseInt(_0x245331(0xd9))/0xb)+-parseInt(_0x245331(0xeb))/0xc*(-parseInt(_0x245331(0xe7))/0xd);if(_0x4f8604===_0x2723d1)break;else _0x39ff8b['push'](_0x39ff8b['shift']());}catch(_0x3a75e0){_0x39ff8b['push'](_0x39ff8b['shift']());}}}(_0x2cc0,0x43e7a));import{CommandType as _0x4917cb,CustomCommandExecutionError as _0x26197c,DependentOn as _0x3376b6,Disposable as _0x363275,ICommandService as _0x5197b6,IConfigService as _0x272c5c,IPermissionService as _0x4334b6,IResourceManagerService as _0x2a06e7,IUndoRedoService as _0x1a91cd,IUniverInstanceService as _0x46af38,Inject as _0x4c32b4,Injector as _0x3e9c64,Plugin as _0x29453c,UniverInstanceType as _0x1895a4,generateRandomId as _0xdaaa5f,merge as _0x4e0cea,sequenceExecute as _0x589c0f}from'@univerjs/core';import{InsertColCommand as _0x17a83e,InsertRowCommand as _0x4787aa,MoveColsCommand as _0x18f6fb,MoveRowsCommand as _0x16d467,RemoveColCommand as _0x43f874,RemoveRowCommand as _0x422ebf,SetColHiddenMutation as _0x345420,SetColVisibleMutation as _0x412fd1,SetRowHiddenMutation as _0x26c97f,SetRowVisibleMutation as _0x322b08,SheetInterceptorService as _0x5e080d,SheetPermissionCheckController as _0x70974,WorkbookViewPermission as _0x15be24,WorksheetViewPermission as _0x329b61,getSheetCommandTarget as _0x4243ec}from'@univerjs/sheets';import{Subject as _0x2338a9,of as _0x1bf83b}from'rxjs';import{debounceTime as _0x3e40a9,map as _0x527b9e,startWith as _0x55f231}from'rxjs/operators';import{UniverLicensePlugin as _0x3fe587}from'@univerjs-pro/license';let me=function(_0x5f08a8){const _0xcd5ab9=_0x1f7d;return _0x5f08a8['ROW']='row',_0x5f08a8[_0xcd5ab9(0xae)]='column',_0x5f08a8;}({}),he=function(_0x2224f6){const _0x4b6ea7=_0x1f7d;return _0x2224f6[_0x4b6ea7(0xa5)]=_0x4b6ea7(0xdf),_0x2224f6[_0x4b6ea7(0xdd)]=_0x4b6ea7(0xd3),_0x2224f6['CROSSING']=_0x4b6ea7(0x107),_0x2224f6[_0x4b6ea7(0x113)]=_0x4b6ea7(0xc5),_0x2224f6[_0x4b6ea7(0xc3)]='move-splits-outline',_0x2224f6[_0x4b6ea7(0xba)]=_0x4b6ea7(0xf5),_0x2224f6[_0x4b6ea7(0x77)]=_0x4b6ea7(0xe3),_0x2224f6;}({});var w=class extends Error{constructor(_0xedd70,_0x4e1693,_0x366c12){const _0x180dd6=_0x1f7d;super(_0x4e1693),this[_0x180dd6(0xd8)]=_0xedd70,this[_0x180dd6(0x9c)]=_0x366c12,this['name']='DimensionOutlineError';}};function ge(_0x12875f){const _0x404961=_0x1f7d;return _0x12875f instanceof w?_0x12875f[_0x404961(0xd8)]:_0x12875f instanceof Error?_0x12875f['message'][_0x404961(0xbf)](_0x404961(0xdb))?_0x404961(0xf0):_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)](_0x404961(0xf8))?'max-depth':_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)]('Crossing')?'crossing':_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)](_0x404961(0x99))?_0x404961(0xdf):_0x404961(0xe3):_0x404961(0xe3);}function _e(_0x431375){const _0x1419a4=_0x1f7d;return _0x431375 instanceof w?_0x431375[_0x1419a4(0x9c)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x2e9b91,_0x92d9dc){const _0x1a1072=_0x1f7d;return _0x2e9b91[_0x1a1072(0x11d)]===_0x92d9dc['unitId']&&_0x2e9b91[_0x1a1072(0x10d)]===_0x92d9dc['subUnitId']&&_0x2e9b91[_0x1a1072(0xea)]===_0x92d9dc[_0x1a1072(0xea)];}function D(_0x59ff47,_0x2dcce6={}){const _0x5aa004=_0x1f7d;var _0x1ed19f;let _0x946c37=(_0x1ed19f=_0x2dcce6[_0x5aa004(0xfa)])==null?0x8:_0x1ed19f,_0x187e41=new Map();for(let _0x252cb5 of _0x59ff47){let _0x4a9fe3=_0x252cb5[_0x5aa004(0x11d)]+':'+_0x252cb5['subUnitId']+':'+_0x252cb5[_0x5aa004(0xea)],_0x5325dc=_0x187e41[_0x5aa004(0x10f)](_0x4a9fe3);_0x5325dc?_0x5325dc[_0x5aa004(0x7e)](_0x252cb5):_0x187e41[_0x5aa004(0xee)](_0x4a9fe3,[_0x252cb5]);}let _0xca4197=[];for(let _0x5d66dc of _0x187e41[_0x5aa004(0x8e)]()){let _0x64321d=[..._0x5d66dc][_0x5aa004(0xcc)](ke),_0x59ccda=[];for(let _0x494308 of _0x64321d){for(Ae(_0x494308);_0x59ccda[_0x5aa004(0x7c)]>0x0&&_0x494308[_0x5aa004(0x108)]>_0x59ccda[_0x59ccda['length']-0x1][_0x5aa004(0x110)];)_0x59ccda[_0x5aa004(0x91)]();let _0x3b13d9=_0x59ccda[_0x59ccda[_0x5aa004(0x7c)]-0x1];if(_0x3b13d9&&_0x494308[_0x5aa004(0x110)]>_0x3b13d9[_0x5aa004(0x110)])throw new w(_0x5aa004(0x107),_0x5aa004(0xd4),_0x494308['id']);let _0x2e48af=_0x3b13d9?_0x3b13d9['depth']+0x1:0x1;if(_0x2e48af>_0x946c37)throw new w(_0x5aa004(0xc5),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x946c37,_0x494308['id']);let _0x59d111={..._0x494308,'depth':_0x2e48af,'parentId':_0x3b13d9==null?void 0x0:_0x3b13d9['id'],'anchor':_0x494308[_0x5aa004(0x110)],'children':[]};_0x3b13d9?_0x3b13d9[_0x5aa004(0x11f)][_0x5aa004(0x7e)](_0x59d111):_0xca4197[_0x5aa004(0x7e)](_0x59d111),_0x59ccda[_0x5aa004(0x7e)](_0x59d111);}}return _0xca4197;}function O(_0x4ea5c3,_0xa63587,_0x4a06c2={}){const _0x156c90=_0x1f7d;if(_0xa63587[_0x156c90(0x108)]<0x0||_0xa63587[_0x156c90(0x108)]>_0xa63587['end'])return{'valid':!0x1,'reason':_0x156c90(0xdf)};if(_0x4a06c2[_0x156c90(0xa1)]!=null&&_0xa63587[_0x156c90(0x110)]>=_0x4a06c2[_0x156c90(0xa1)])return{'valid':!0x1,'reason':_0x156c90(0xd3)};let _0x8b6d50=_0x4ea5c3[_0x156c90(0x93)](_0x179c5a=>E(_0x179c5a,_0xa63587));for(let _0x316e4a of _0x8b6d50)if(je(_0x316e4a,_0xa63587))return{'valid':!0x1,'reason':_0x156c90(0x107)};try{D([..._0x4ea5c3,_0xa63587],_0x4a06c2);}catch(_0x5f408e){let _0x4441bf=ge(_0x5f408e);return _0x4441bf===_0x156c90(0xc5)?{'valid':!0x1,'reason':_0x156c90(0xc5)}:_0x4441bf===_0x156c90(0xdf)?{'valid':!0x1,'reason':_0x156c90(0xdf)}:{'valid':!0x1,'reason':_0x156c90(0x107)};}return{'valid':!0x0};}function ve(_0x3ac19a,_0x238036,_0x48adab={}){const _0x28c6a0=_0x1f7d;let _0x5b32f7=O(_0x3ac19a,_0x238036,_0x48adab);if(!_0x5b32f7['valid']){var _0x5efe57;throw Error((_0x5efe57=_0x5b32f7[_0x28c6a0(0xd8)])==null?_0x28c6a0(0xd5):_0x5efe57);}return[..._0x3ac19a,_0x238036];}function ye(_0x47a249,_0x140408){const _0x37a9e4=_0x1f7d;let _0x14302f=_0x140408[_0x37a9e4(0x108)],_0x3730f5=_0x140408['end'],_0x2df345=[],_0x401c7f=!0x0;for(;_0x401c7f;){_0x401c7f=!0x1;for(let _0x4e2a3f of _0x47a249)_0x2df345[_0x37a9e4(0xbf)](_0x4e2a3f)||!E(_0x4e2a3f,_0x140408)||!De(_0x4e2a3f[_0x37a9e4(0x108)],_0x4e2a3f[_0x37a9e4(0x110)],_0x14302f,_0x3730f5)||(_0x2df345[_0x37a9e4(0x7e)](_0x4e2a3f),_0x14302f=Math[_0x37a9e4(0xe8)](_0x14302f,_0x4e2a3f['start']),_0x3730f5=Math[_0x37a9e4(0xb3)](_0x3730f5,_0x4e2a3f[_0x37a9e4(0x110)]),_0x401c7f=!0x0);}if(_0x2df345[_0x37a9e4(0x7c)]===0x0)return null;let [_0x38d729]=[..._0x2df345][_0x37a9e4(0xcc)](ke);return{'mergedOutline':{..._0x38d729,'start':_0x14302f,'end':_0x3730f5},'mergedOutlines':_0x2df345};}function be(_0xad685d,_0x3507f1){const _0x2e76e0=_0x1f7d;return _0xad685d[_0x2e76e0(0x93)](_0xf5487a=>E(_0xf5487a,_0x3507f1)?!(_0xf5487a[_0x2e76e0(0x108)]>=_0x3507f1['start']&&_0xf5487a[_0x2e76e0(0x110)]<=_0x3507f1['end']):!0x0);}function xe(_0x33bab9,_0x41010d,_0x5a076b,_0x44ff11){const _0x51ed67=_0x1f7d;return Se(_0x33bab9[_0x51ed67(0x93)](_0x30d7f5=>_0x30d7f5['unitId']===_0x41010d&&_0x30d7f5['subUnitId']===_0x5a076b&&_0x30d7f5['axis']===_0x44ff11&&_0x30d7f5['collapsed'])[_0x51ed67(0xc2)](_0x7d2b3c=>({'start':_0x7d2b3c[_0x51ed67(0x108)],'end':_0x7d2b3c[_0x51ed67(0x110)]})));}function Se(_0x389d8d){const _0x4a4444=_0x1f7d;if(_0x389d8d[_0x4a4444(0x7c)]===0x0)return[];let _0x3b298d=[..._0x389d8d][_0x4a4444(0xcc)]((_0x5ad559,_0xd3e3dc)=>_0x5ad559[_0x4a4444(0x108)]-_0xd3e3dc['start']||_0x5ad559[_0x4a4444(0x110)]-_0xd3e3dc['end']),_0x25ee93=[];for(let _0x5b2109 of _0x3b298d){let _0x39980a=_0x25ee93[_0x25ee93[_0x4a4444(0x7c)]-0x1];!_0x39980a||_0x5b2109[_0x4a4444(0x108)]>_0x39980a[_0x4a4444(0x110)]+0x1?_0x25ee93['push']({..._0x5b2109}):_0x39980a[_0x4a4444(0x110)]=Math[_0x4a4444(0xb3)](_0x39980a['end'],_0x5b2109['end']);}return _0x25ee93;}function k(_0x2cc203,_0x462b49){const _0x5c545d=_0x1f7d;return _0x462b49[_0x5c545d(0x119)]<=0x0?_0x2cc203:M(_0x2cc203[_0x5c545d(0xc2)](_0x35b448=>E(_0x35b448,_0x462b49)?_0x462b49[_0x5c545d(0xbb)]<=_0x35b448[_0x5c545d(0x108)]?{..._0x35b448,'start':_0x35b448[_0x5c545d(0x108)]+_0x462b49[_0x5c545d(0x119)],'end':_0x35b448[_0x5c545d(0x110)]+_0x462b49[_0x5c545d(0x119)]}:_0x35b448[_0x5c545d(0x108)]<_0x462b49[_0x5c545d(0xbb)]&&_0x462b49[_0x5c545d(0xbb)]<=_0x35b448['end']?{..._0x35b448,'end':_0x35b448['end']+_0x462b49[_0x5c545d(0x119)]}:_0x35b448:_0x35b448));}function A(_0x234a6d,_0x53f027){const _0xa16276=_0x1f7d;if(_0x53f027[_0xa16276(0x108)]>_0x53f027[_0xa16276(0x110)])return _0x234a6d;let _0x47e88b=_0x53f027[_0xa16276(0x110)]-_0x53f027[_0xa16276(0x108)]+0x1,_0x5157b6=[];for(let _0x36b7fa of _0x234a6d){if(!E(_0x36b7fa,_0x53f027)){_0x5157b6[_0xa16276(0x7e)](_0x36b7fa);continue;}if(_0x36b7fa[_0xa16276(0x110)]<_0x53f027[_0xa16276(0x108)]){_0x5157b6['push'](_0x36b7fa);continue;}if(_0x36b7fa[_0xa16276(0x108)]>_0x53f027[_0xa16276(0x110)]){_0x5157b6[_0xa16276(0x7e)]({..._0x36b7fa,'start':_0x36b7fa[_0xa16276(0x108)]-_0x47e88b,'end':_0x36b7fa[_0xa16276(0x110)]-_0x47e88b});continue;}let _0x19b6de=Math[_0xa16276(0xb3)](_0x36b7fa['start'],_0x53f027[_0xa16276(0x108)]),_0x3b66a8=Math[_0xa16276(0xe8)](_0x36b7fa[_0xa16276(0x110)],_0x53f027[_0xa16276(0x110)]),_0x37f6f4=Math[_0xa16276(0xb3)](0x0,_0x3b66a8-_0x19b6de+0x1),_0x3200d8=_0x36b7fa[_0xa16276(0x110)]-_0x36b7fa[_0xa16276(0x108)]+0x1-_0x37f6f4;if(_0x3200d8<=0x0)continue;let _0x56ee2d=_0x36b7fa['start']<_0x53f027[_0xa16276(0x108)]?_0x36b7fa[_0xa16276(0x108)]:_0x53f027['start'];_0x5157b6[_0xa16276(0x7e)]({..._0x36b7fa,'start':_0x56ee2d,'end':_0x56ee2d+_0x3200d8-0x1});}return M(_0x5157b6);}function j(_0x701205,_0x28ccb1){const _0x2dff4c=_0x1f7d;if(_0x28ccb1[_0x2dff4c(0x7d)]>_0x28ccb1[_0x2dff4c(0x117)])return _0x701205;let _0x4285d3=[];for(let _0x98090b of _0x701205){if(!E(_0x98090b,_0x28ccb1)){_0x4285d3['push'](_0x98090b);continue;}let _0x3de582=Ce(_0x98090b,_0x28ccb1);if(_0x3de582[_0x2dff4c(0x120)]==='split')throw new w('move-splits-outline',_0x2dff4c(0x102)+_0x98090b['id'],_0x98090b['id']);_0x4285d3[_0x2dff4c(0x7e)](_0x3de582[_0x2dff4c(0x114)]);}return M(_0x4285d3);}function Ce(_0x2f1a22,_0x5e693e){const _0x331715=_0x1f7d;let _0x39ea0e=we(_0x5e693e[_0x331715(0x7d)],_0x5e693e[_0x331715(0x117)]+0x1,_0x5e693e['destinationIndex']),_0x32113e=[],_0xc5fc3f={'start':_0x2f1a22[_0x331715(0x108)],'end':_0x2f1a22[_0x331715(0x110)]+0x1};for(let _0x5d02cc of _0x39ea0e){let _0x2c69f2=Te(_0xc5fc3f,_0x5d02cc[_0x331715(0x99)]);_0x2c69f2&&_0x32113e['push']({'start':_0x2c69f2[_0x331715(0x108)]+_0x5d02cc[_0x331715(0x122)],'end':_0x2c69f2[_0x331715(0x110)]+_0x5d02cc['offset']});}let _0x16313c=Ee(_0x32113e);return _0x16313c[_0x331715(0x7c)]===0x1?{'type':'ok','outline':{..._0x2f1a22,'start':_0x16313c[0x0][_0x331715(0x108)],'end':_0x16313c[0x0][_0x331715(0x110)]-0x1}}:{'type':'split','outline':_0x2f1a22,'ranges':_0x16313c};}function we(_0x54aa18,_0x9fc482,_0x15bc77){const _0xf643a3=_0x1f7d;let _0x1d6fd4=_0x9fc482-_0x54aa18;if(_0x1d6fd4<=0x0)throw Error(_0xf643a3(0xc8));return _0x15bc77>=_0x54aa18&&_0x15bc77<=_0x9fc482?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x15bc77<_0x54aa18?[{'range':{'start':0x0,'end':_0x15bc77},'offset':0x0},{'range':{'start':_0x15bc77,'end':_0x54aa18},'offset':_0x1d6fd4},{'range':{'start':_0x54aa18,'end':_0x9fc482},'offset':_0x15bc77-_0x54aa18},{'range':{'start':_0x9fc482,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x54aa18},'offset':0x0},{'range':{'start':_0x54aa18,'end':_0x9fc482},'offset':_0x15bc77-_0x9fc482},{'range':{'start':_0x9fc482,'end':_0x15bc77},'offset':-_0x1d6fd4},{'range':{'start':_0x15bc77,'end':T},'offset':0x0}];}function Te(_0x170385,_0x1cc566){const _0x2aa1af=_0x1f7d;let _0x4de995=Math[_0x2aa1af(0xb3)](_0x170385[_0x2aa1af(0x108)],_0x1cc566[_0x2aa1af(0x108)]),_0x2c9c88=Math[_0x2aa1af(0xe8)](_0x170385['end'],_0x1cc566[_0x2aa1af(0x110)]);return _0x4de995>=_0x2c9c88?null:{'start':_0x4de995,'end':_0x2c9c88};}function Ee(_0x5d515a){const _0x59b6bc=_0x1f7d;if(_0x5d515a[_0x59b6bc(0x7c)]===0x0)return[];let _0x1a3bdb=[..._0x5d515a][_0x59b6bc(0xcc)]((_0x359b69,_0x522978)=>_0x359b69[_0x59b6bc(0x108)]-_0x522978[_0x59b6bc(0x108)]||_0x359b69[_0x59b6bc(0x110)]-_0x522978['end']),_0x4b0e27=[];for(let _0x20506a of _0x1a3bdb){let _0x7b066a=_0x4b0e27[_0x4b0e27[_0x59b6bc(0x7c)]-0x1];!_0x7b066a||_0x20506a[_0x59b6bc(0x108)]>_0x7b066a[_0x59b6bc(0x110)]?_0x4b0e27[_0x59b6bc(0x7e)]({..._0x20506a}):_0x7b066a[_0x59b6bc(0x110)]=Math[_0x59b6bc(0xb3)](_0x7b066a['end'],_0x20506a['end']);}return _0x4b0e27;}function De(_0x4c70c6,_0xd75bfd,_0x28fa1e,_0x24c884){return _0xd75bfd+0x1===_0x28fa1e||_0x24c884+0x1===_0x4c70c6;}function M(_0x1081ab){let _0x49a755=Oe(_0x1081ab);return D(_0x49a755),_0x49a755;}function Oe(_0x28c438){const _0xd7142f=_0x1f7d;let _0x2db285=new Map();for(let _0x325692 of _0x28c438){let _0x1d1794=[_0x325692[_0xd7142f(0x11d)],_0x325692[_0xd7142f(0x10d)],_0x325692[_0xd7142f(0xea)],_0x325692[_0xd7142f(0x108)],_0x325692[_0xd7142f(0x110)]][_0xd7142f(0xc9)](':'),_0x31fb67=_0x2db285[_0xd7142f(0x10f)](_0x1d1794);if(!_0x31fb67){_0x2db285[_0xd7142f(0xee)](_0x1d1794,_0x325692);continue;}_0x2db285[_0xd7142f(0xee)](_0x1d1794,{..._0x31fb67,'collapsed':_0x31fb67[_0xd7142f(0x11b)]||_0x325692['collapsed']});}return Array[_0xd7142f(0xaf)](_0x2db285[_0xd7142f(0x8e)]());}function ke(_0x27b002,_0x2eb022){const _0x10ddc3=_0x1f7d;return _0x27b002[_0x10ddc3(0x11d)]===_0x2eb022[_0x10ddc3(0x11d)]?_0x27b002[_0x10ddc3(0x10d)]===_0x2eb022[_0x10ddc3(0x10d)]?_0x27b002[_0x10ddc3(0xea)]===_0x2eb022[_0x10ddc3(0xea)]?_0x27b002['start']===_0x2eb022['start']?_0x2eb022['end']-_0x27b002[_0x10ddc3(0x110)]:_0x27b002[_0x10ddc3(0x108)]-_0x2eb022[_0x10ddc3(0x108)]:_0x27b002[_0x10ddc3(0xea)]['localeCompare'](_0x2eb022[_0x10ddc3(0xea)]):_0x27b002['subUnitId']['localeCompare'](_0x2eb022[_0x10ddc3(0x10d)]):_0x27b002[_0x10ddc3(0x11d)][_0x10ddc3(0x90)](_0x2eb022[_0x10ddc3(0x11d)]);}function Ae(_0x305323){const _0x44a445=_0x1f7d;if(_0x305323[_0x44a445(0x108)]>_0x305323['end'])throw new w(_0x44a445(0xdf),_0x44a445(0xac),_0x305323['id']);}function je(_0x3debc4,_0x117526){const _0x15b2fb=_0x1f7d;let _0x480e62=_0x3debc4[_0x15b2fb(0x108)]<=_0x117526[_0x15b2fb(0x110)]&&_0x117526['start']<=_0x3debc4['end'],_0x1c9d69=_0x3debc4[_0x15b2fb(0x108)]<=_0x117526['start']&&_0x117526[_0x15b2fb(0x110)]<=_0x3debc4[_0x15b2fb(0x110)],_0x1850d6=_0x117526['start']<=_0x3debc4['start']&&_0x3debc4['end']<=_0x117526[_0x15b2fb(0x110)];return _0x480e62&&!_0x1c9d69&&!_0x1850d6;}function N(_0xeae969){'@babel/helpers - typeof';const _0x416788=_0x1f7d;return N=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x416788(0xde)?function(_0x501044){return typeof _0x501044;}:function(_0x532df0){const _0x286f85=_0x416788;return _0x532df0&&typeof Symbol==_0x286f85(0x10c)&&_0x532df0[_0x286f85(0xc6)]===Symbol&&_0x532df0!==Symbol['prototype']?_0x286f85(0xde):typeof _0x532df0;},N(_0xeae969);}function Me(_0x1a12a1,_0x31b6ce){const _0x37a1de=_0x1f7d;if(N(_0x1a12a1)!=_0x37a1de(0xab)||!_0x1a12a1)return _0x1a12a1;var _0x1e1585=_0x1a12a1[Symbol[_0x37a1de(0xe0)]];if(_0x1e1585!==void 0x0){var _0xe89597=_0x1e1585['call'](_0x1a12a1,_0x31b6ce||_0x37a1de(0x123));if(N(_0xe89597)!=_0x37a1de(0xab))return _0xe89597;throw TypeError(_0x37a1de(0x7f));}return(_0x31b6ce==='string'?String:Number)(_0x1a12a1);}function Ne(_0x260e7a){const _0x309f36=_0x1f7d;var _0x196bd9=Me(_0x260e7a,_0x309f36(0xf3));return N(_0x196bd9)==_0x309f36(0xde)?_0x196bd9:_0x196bd9+'';}function P(_0x2c56e8,_0x462e72,_0x7cd476){const _0x491365=_0x1f7d;return(_0x462e72=Ne(_0x462e72))in _0x2c56e8?Object[_0x491365(0xf9)](_0x2c56e8,_0x462e72,{'value':_0x7cd476,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c56e8[_0x462e72]=_0x7cd476,_0x2c56e8;}var F=class extends _0x363275{constructor(..._0x5864e3){const _0x5bede4=_0x1f7d;super(..._0x5864e3),P(this,_0x5bede4(0xc1),new Map()),P(this,_0x5bede4(0x121),new _0x2338a9()),P(this,_0x5bede4(0xe2),this[_0x5bede4(0x121)][_0x5bede4(0x9f)]());}['getOutlines'](_0x36d512,_0x5bbcfe){const _0x10af7e=_0x1f7d;var _0x538ad3,_0x2ccf75;return[...(_0x538ad3=(_0x2ccf75=this[_0x10af7e(0xc1)][_0x10af7e(0x10f)](_0x36d512))==null?void 0x0:_0x2ccf75[_0x10af7e(0x10f)](_0x5bbcfe))==null?[]:_0x538ad3];}[_0x43d830(0xf7)](_0x256ea3){const _0x2b6917=_0x43d830;let _0x1abe72=this[_0x2b6917(0xc1)]['get'](_0x256ea3),_0x1c6a55=new Map();return _0x1abe72==null||_0x1abe72[_0x2b6917(0x97)]((_0x1e35bf,_0x3517f1)=>{const _0x2dc1b2=_0x2b6917;_0x1c6a55[_0x2dc1b2(0xee)](_0x3517f1,[..._0x1e35bf]);}),_0x1c6a55;}['setOutlines'](_0xc49a2c,_0x5c31d0,_0x45643d){const _0x46d500=_0x43d830;this[_0x46d500(0x101)](_0xc49a2c)[_0x46d500(0xee)](_0x5c31d0,[..._0x45643d]),this[_0x46d500(0x121)][_0x46d500(0x88)]({'unitId':_0xc49a2c,'subUnitId':_0x5c31d0});}['removeUnit'](_0x457b9b){const _0x18eb99=_0x43d830;this[_0x18eb99(0xc1)][_0x18eb99(0x7a)](_0x457b9b),this['_change$'][_0x18eb99(0x88)]({'unitId':_0x457b9b});}[_0x43d830(0x105)](_0x43b515){const _0x517dc2=_0x43d830;let _0xa03a14=this[_0x517dc2(0xc1)]['get'](_0x43b515),_0x2fbf8c={};return _0xa03a14==null||_0xa03a14['forEach']((_0x532367,_0x58dc52)=>{_0x2fbf8c[_0x58dc52]={'outlineList':[..._0x532367]};}),_0x2fbf8c;}[_0x43d830(0xf2)](_0x1a1ce6,_0x428a21){const _0x4f60cc=_0x43d830;let _0x3c01be=new Map();Object[_0x4f60cc(0x9a)](_0x428a21)[_0x4f60cc(0x97)](([_0x48f936,_0x595a30])=>{const _0xd2f83b=_0x4f60cc;var _0x2d833f;_0x3c01be[_0xd2f83b(0xee)](_0x48f936,[...(_0x2d833f=_0x595a30[_0xd2f83b(0x111)])==null?[]:_0x2d833f]);}),this[_0x4f60cc(0xc1)]['set'](_0x1a1ce6,_0x3c01be),this[_0x4f60cc(0x121)][_0x4f60cc(0x88)]({'unitId':_0x1a1ce6});}[_0x43d830(0x10b)](){const _0x1c932b=_0x43d830;super[_0x1c932b(0x10b)](),this[_0x1c932b(0xc1)][_0x1c932b(0x80)](),this[_0x1c932b(0x121)][_0x1c932b(0xc4)]();}['_ensureUnitOutlines'](_0x1c4bc1){const _0x5ad82f=_0x43d830;let _0x51100d=this['_outlines'][_0x5ad82f(0x10f)](_0x1c4bc1);return _0x51100d||(_0x51100d=new Map(),this['_outlines'][_0x5ad82f(0xee)](_0x1c4bc1,_0x51100d)),_0x51100d;}},I=class extends _0x363275{constructor(..._0x27d885){const _0x5bc863=_0x43d830;super(..._0x27d885),P(this,_0x5bc863(0x89),new _0x2338a9()),P(this,_0x5bc863(0x11e),this[_0x5bc863(0x89)][_0x5bc863(0x9f)]());}[_0x43d830(0xf1)](_0x32f418){const _0x10748b=_0x43d830;this['_error$'][_0x10748b(0x88)](_0x32f418);}[_0x43d830(0x10b)](){super['dispose'](),this['_error$']['complete']();}};const L={'id':_0x43d830(0xb1),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x228fca,_0x4e554a)=>{const _0x422cb0=_0x43d830;let _0x2444c6=_0x228fca['get'](F),_0x437b0c=_0x2444c6[_0x422cb0(0xce)](_0x4e554a[_0x422cb0(0x11d)],_0x4e554a[_0x422cb0(0x10d)]);return _0x2444c6['setOutlines'](_0x4e554a[_0x422cb0(0x11d)],_0x4e554a[_0x422cb0(0x10d)],ve(_0x437b0c,_0x4e554a['outline'])),!0x0;}},R={'id':_0x43d830(0xf6),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0xbe1e96,_0x5acf1a)=>{const _0x3da6fb=_0x43d830;let _0x36222a=_0xbe1e96[_0x3da6fb(0x10f)](F),_0xa62755=_0x36222a[_0x3da6fb(0xce)](_0x5acf1a[_0x3da6fb(0x11d)],_0x5acf1a[_0x3da6fb(0x10d)]);return _0x36222a[_0x3da6fb(0x8f)](_0x5acf1a[_0x3da6fb(0x11d)],_0x5acf1a[_0x3da6fb(0x10d)],_0xa62755[_0x3da6fb(0x93)](_0x197a45=>_0x197a45['id']!==_0x5acf1a[_0x3da6fb(0x9c)])),!0x0;}};function z(_0x18d926,_0x1acae0,_0x18bba5){const _0x5169cb=_0x43d830;let _0x29d1bc=Fe(_0x18d926);return _0x29d1bc?_0x29d1bc[_0x5169cb(0xe9)]({'workbookTypes':[_0x15be24],'worksheetTypes':[_0x329b61]},_0x1acae0,_0x18bba5):!0x0;}function Pe(_0x54c190,_0x1381b5,_0x43c83a){const _0x1f1224=_0x43d830;var _0x2149ea;let _0x35297e=Ie(_0x54c190);return((_0x2149ea=_0x35297e==null?void 0x0:_0x35297e[_0x1f1224(0x83)])==null?_0x1bf83b(null):_0x2149ea)['pipe'](_0x3e40a9(0x64),_0x55f231(null),_0x527b9e(()=>z(_0x54c190,_0x1381b5,_0x43c83a)));}function Fe(_0x9b01a6){const _0x141b79=_0x43d830;if(typeof _0x9b01a6[_0x141b79(0x86)]==_0x141b79(0x10c)&&!_0x9b01a6[_0x141b79(0x86)](_0x70974))return null;try{return _0x9b01a6[_0x141b79(0x10f)](_0x70974);}catch{return null;}}function Ie(_0x1a0bcb){const _0x53de7c=_0x43d830;if(typeof _0x1a0bcb[_0x53de7c(0x86)]=='function'&&!_0x1a0bcb[_0x53de7c(0x86)](_0x4334b6))return null;try{return _0x1a0bcb['get'](_0x4334b6);}catch{return null;}}const B={'id':_0x43d830(0x78),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x5654f9,_0x367334)=>{const _0x47c9bb=_0x43d830;var _0x45dbdd,_0x5507b8;if(!_0x367334)return!0x1;let _0x4a4db7=_0x4243ec(_0x5654f9[_0x47c9bb(0x10f)](_0x46af38),_0x367334);if(!_0x4a4db7)return!0x1;let {unitId:_0x437d2f,subUnitId:_0x29bf73,worksheet:_0x2b716f}=_0x4a4db7;if(!z(_0x5654f9,_0x437d2f,_0x29bf73))return!0x1;let _0x5aad82=_0x5654f9[_0x47c9bb(0x10f)](F),_0x29661a={'id':_0x47c9bb(0xda)+_0xdaaa5f(0x6),'unitId':_0x437d2f,'subUnitId':_0x29bf73,'axis':_0x367334['axis'],'start':_0x367334[_0x47c9bb(0x108)],'end':_0x367334[_0x47c9bb(0x110)],'collapsed':!0x1},_0x151cae=_0x367334[_0x47c9bb(0xea)]===_0x47c9bb(0x98)?_0x2b716f[_0x47c9bb(0xa8)]():_0x2b716f[_0x47c9bb(0xbe)](),_0x48f673=_0x5aad82[_0x47c9bb(0xce)](_0x437d2f,_0x29bf73),_0x23b133=ye(_0x48f673,_0x29661a),_0x3a6cdc=(_0x45dbdd=_0x23b133==null?void 0x0:_0x23b133[_0x47c9bb(0xe4)])==null?[]:_0x45dbdd,_0xe37125=(_0x5507b8=_0x23b133==null?void 0x0:_0x23b133[_0x47c9bb(0xca)])==null?_0x29661a:_0x5507b8,_0x3a6ec0=O(_0x23b133?_0x48f673[_0x47c9bb(0x93)](_0x1fdbfd=>!_0x3a6cdc[_0x47c9bb(0x11a)](_0x28d5d7=>_0x28d5d7['id']===_0x1fdbfd['id'])):_0x48f673,_0xe37125,{'maxIndex':_0x151cae});if(!_0x3a6ec0[_0x47c9bb(0xed)]){var _0x5aa810;return _0x5654f9[_0x47c9bb(0x10f)](I)[_0x47c9bb(0xf1)]({'reason':(_0x5aa810=_0x3a6ec0[_0x47c9bb(0xd8)])==null?_0x47c9bb(0xe3):_0x5aa810,'commandId':B['id'],'unitId':_0x437d2f,'subUnitId':_0x29bf73,'axis':_0x367334[_0x47c9bb(0xea)],'outlineId':_0xe37125['id']}),!0x1;}let _0x4f8443=[..._0x3a6cdc[_0x47c9bb(0xc2)](_0x3de1d6=>({'id':R['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outlineId':_0x3de1d6['id']}})),{'id':L['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outline':_0xe37125}}],_0x40186e=[{'id':R['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outlineId':_0xe37125['id']}},..._0x3a6cdc[_0x47c9bb(0xc2)](_0x4f8546=>({'id':L['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outline':_0x4f8546}}))];return _0x589c0f(_0x4f8443,_0x5654f9[_0x47c9bb(0x10f)](_0x5197b6))[_0x47c9bb(0xb9)]?(_0x5654f9['get'](_0x1a91cd)['pushUndoRedo']({'unitID':_0x437d2f,'undoMutations':_0x40186e,'redoMutations':_0x4f8443}),!0x0):!0x1;}},V={'id':'sheet.mutation.clear-dimension-outlines','type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x556b82,_0x1e6890)=>{const _0x5344e0=_0x43d830;let _0x5ac94e=_0x556b82[_0x5344e0(0x10f)](F),_0x57219f=_0x5ac94e[_0x5344e0(0xce)](_0x1e6890['unitId'],_0x1e6890[_0x5344e0(0x10d)]);return _0x5ac94e[_0x5344e0(0x8f)](_0x1e6890[_0x5344e0(0x11d)],_0x1e6890[_0x5344e0(0x10d)],be(_0x57219f,_0x1e6890)),!0x0;}},H={'id':_0x43d830(0xa3),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x3be085,_0x2df22a)=>{const _0x53dc66=_0x43d830;if(!_0x2df22a)return!0x1;let _0x31cd4a=_0x4243ec(_0x3be085[_0x53dc66(0x10f)](_0x46af38),_0x2df22a);if(!_0x31cd4a)return!0x1;let {unitId:_0x4ccee6,subUnitId:_0x5819fe}=_0x31cd4a;if(!z(_0x3be085,_0x4ccee6,_0x5819fe))return!0x1;let _0x29b44c={'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'axis':_0x2df22a['axis'],'start':_0x2df22a[_0x53dc66(0x108)],'end':_0x2df22a['end']},_0x2461a9=_0x3be085[_0x53dc66(0x10f)](F)['getOutlines'](_0x4ccee6,_0x5819fe)[_0x53dc66(0x93)](_0x5b06e6=>E(_0x5b06e6,_0x29b44c)&&_0x5b06e6[_0x53dc66(0x108)]>=_0x2df22a[_0x53dc66(0x108)]&&_0x5b06e6[_0x53dc66(0x110)]<=_0x2df22a['end']);if(_0x2461a9[_0x53dc66(0x7c)]===0x0)return _0x3be085['get'](I)['emit']({'reason':'clear-range-not-contain-outline','commandId':H['id'],'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'axis':_0x2df22a[_0x53dc66(0xea)]}),!0x1;let _0x476238=[{'id':V['id'],'params':{..._0x29b44c,'removedOutlineIds':_0x2461a9[_0x53dc66(0xc2)](_0x2a20cd=>_0x2a20cd['id'])}}],_0x394651=_0x2461a9['map'](_0x54c0e1=>({'id':L['id'],'params':{'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'outline':_0x54c0e1}}));return _0x589c0f(_0x476238,_0x3be085[_0x53dc66(0x10f)](_0x5197b6))[_0x53dc66(0xb9)]?(_0x3be085[_0x53dc66(0x10f)](_0x1a91cd)[_0x53dc66(0x95)]({'unitID':_0x4ccee6,'undoMutations':_0x394651,'redoMutations':_0x476238}),!0x0):!0x1;}},Le={'id':_0x43d830(0xd1),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x3d2b47,_0xded217)=>{const _0xfd0444=_0x43d830;if(!_0xded217)return!0x1;let _0x3394c0=_0x4243ec(_0x3d2b47[_0xfd0444(0x10f)](_0x46af38),_0xded217);if(!_0x3394c0)return!0x1;let {unitId:_0x356b14,subUnitId:_0x15c15d}=_0x3394c0;if(!z(_0x3d2b47,_0x356b14,_0x15c15d))return!0x1;let _0x153261=_0x3d2b47['get'](F)['getOutlines'](_0x356b14,_0x15c15d)[_0xfd0444(0x87)](_0x453d41=>_0x453d41['id']===_0xded217['outlineId']);if(!_0x153261)return!0x1;let _0xf90524=[{'id':R['id'],'params':{'unitId':_0x356b14,'subUnitId':_0x15c15d,'outlineId':_0x153261['id'],'outline':_0x153261}}],_0x46b32d=[{'id':L['id'],'params':{'unitId':_0x356b14,'subUnitId':_0x15c15d,'outline':_0x153261}}];return _0x589c0f(_0xf90524,_0x3d2b47[_0xfd0444(0x10f)](_0x5197b6))[_0xfd0444(0xb9)]?(_0x3d2b47[_0xfd0444(0x10f)](_0x1a91cd)[_0xfd0444(0x95)]({'unitID':_0x356b14,'undoMutations':_0x46b32d,'redoMutations':_0xf90524}),!0x0):!0x1;}},U={'id':_0x43d830(0x8c),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x5958dd,_0x2f35ce)=>{const _0x4c3115=_0x43d830;let _0x11d05c=_0x5958dd[_0x4c3115(0x10f)](F),_0x50d13e=_0x11d05c[_0x4c3115(0xce)](_0x2f35ce[_0x4c3115(0x11d)],_0x2f35ce[_0x4c3115(0x10d)]),_0x5e991b=_0x50d13e[_0x4c3115(0x87)](_0x4f2a42=>_0x4f2a42['id']===_0x2f35ce['outlineId']);return _0x5e991b&&_0x11d05c[_0x4c3115(0x8f)](_0x2f35ce['unitId'],_0x2f35ce[_0x4c3115(0x10d)],_0x50d13e[_0x4c3115(0xc2)](_0x20a27e=>_0x20a27e[_0x4c3115(0x11d)]!==_0x5e991b['unitId']||_0x20a27e['subUnitId']!==_0x5e991b[_0x4c3115(0x10d)]||_0x20a27e[_0x4c3115(0xea)]!==_0x5e991b[_0x4c3115(0xea)]||_0x20a27e[_0x4c3115(0x108)]!==_0x5e991b[_0x4c3115(0x108)]||_0x20a27e[_0x4c3115(0x110)]!==_0x5e991b[_0x4c3115(0x110)]?_0x20a27e:{..._0x20a27e,'collapsed':_0x2f35ce[_0x4c3115(0x11b)]})),!0x0;}};function _0x2cc0(){const _0x349ea9=['interceptCommand','getUnitId','asObservable','onStarting','maxIndex','restoreOutlines','sheet.command.clear-dimension-outlines','_sheetsOutlineModel','INVALID_RANGE','2hgtsqU','registerPluginResource','getRowCount','_config','getSheetBySheetId','object','Invalid\x20outline\x20range','_initCommandInterceptor','COLUMN','from','_injector','sheet.mutation.add-dimension-outline','destinationIndex','max','12746vIpkry','_getCommandScope','_resourceManagerService','5xMbmSb','params','result','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','index','100hyDZCG','sheet.mutation.transform-dimension-outlines','getColumnCount','includes','1152348cRsFrl','_outlines','map','MOVE_SPLITS_OUTLINE','complete','max-depth','constructor','getOwnPropertyDescriptor','Invalid\x20dimension\x20outline\x20move\x20source\x20range','join','mergedOutline','_sheetInterceptorService','sort','version','getOutlines','_initRegisterCommand','endColumn','sheet.command.remove-dimension-outline','16QGlOBW','out-of-bounds','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','invalid-dimension-outline','removeUnit','startRow','reason','54703NNTsmf','dimension-outline-','split\x20dimension\x20outline','UNIVER_SHEET','OUT_OF_BOUNDS','symbol','invalid-range','toPrimitive','registerCommand','change$','unknown','mergedOutlines','Invalid\x20dimension\x20outline\x20mutation','sheets-outline.config','4266782MLOQRg','min','permissionCheckWithoutRange','axis','12mQVzIq','730314mnRiuJ','valid','set','35rvwGmf','move-splits-outline','emit','deserialize','string','_commandService','clear-range-not-contain-outline','sheet.mutation.remove-dimension-outline','getUnitOutlines','depth','defineProperty','maxDepth','SHEET_OUTLINE_PLUGIN','add','getMaxColumns','parse','column','_univerInstanceService','_ensureUnitOutlines','Move\x20would\x20split\x20dimension\x20outline:\x20','sheet.command.set-dimension-outline-collapsed','_configService','serialize','getActiveSheet','crossing','start','getCurrentUnitOfType','insert','dispose','function','subUnitId','COMMAND','get','end','outlineList','1.0.0-alpha.6','MAX_DEPTH','outline','undos','move','sourceEnd','MUTATION','count','some','collapsed','toRange','unitId','error$','children','type','_change$','offset','default','UNKNOWN','sheet.command.add-dimension-outline','fromRange','delete','_sheetsOutlineErrorService','length','sourceStart','push','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','decorate','setConfig','permissionPointUpdate$','endRow','469244rdMBYg','has','find','next','_error$','_initResource','disposeWithMe','sheet.mutation.set-dimension-outline-collapsed','message','values','setOutlines','localeCompare','pop','379854fEKohh','filter','preUndos','pushUndoRedo','startColumn','forEach','row','range','entries','pluginName','outlineId'];_0x2cc0=function(){return _0x349ea9;};return _0x2cc0();}function Re(_0x51db48,_0x2bf04c,_0x592b91,_0x14e89b){const _0x3c80c3=_0x43d830;return _0x51db48==='row'?{'startRow':_0x2bf04c,'endRow':_0x592b91,'startColumn':0x0,'endColumn':_0x14e89b[_0x3c80c3(0xfd)]()-0x1}:{'startRow':0x0,'endRow':_0x14e89b['getRowCount']()-0x1,'startColumn':_0x2bf04c,'endColumn':_0x592b91};}function ze(_0x44abda){const _0x38d340=_0x43d830;return _0x44abda===_0x38d340(0x98)?_0x26c97f['id']:_0x345420['id'];}function Be(_0x182d56){return _0x182d56==='row'?_0x322b08['id']:_0x412fd1['id'];}function Ve(_0x24a5bb,_0x4a2e35,_0x5e02ae,_0x1bbe9c){const _0x179fbe=_0x43d830;let _0x2117dd=_0x4a2e35?[Re(_0x24a5bb[_0x179fbe(0xea)],_0x24a5bb[_0x179fbe(0x108)],_0x24a5bb[_0x179fbe(0x110)],_0x5e02ae)]:He(_0x24a5bb,_0x1bbe9c,_0x5e02ae),_0x5dd4c4=_0x4a2e35?ze(_0x24a5bb[_0x179fbe(0xea)]):Be(_0x24a5bb[_0x179fbe(0xea)]);return[{'id':U['id'],'params':{'unitId':_0x24a5bb[_0x179fbe(0x11d)],'subUnitId':_0x24a5bb[_0x179fbe(0x10d)],'outlineId':_0x24a5bb['id'],'outline':_0x24a5bb,'collapsed':_0x4a2e35}},..._0x2117dd['map'](_0x56566a=>({'id':_0x5dd4c4,'params':{'unitId':_0x24a5bb[_0x179fbe(0x11d)],'subUnitId':_0x24a5bb[_0x179fbe(0x10d)],'ranges':[_0x56566a],'dimensionOutlineId':_0x24a5bb['id']}}))];}function He(_0x2a7ab2,_0x135ea6,_0x48d40b){const _0x5bbedc=_0x43d830;let _0xca2501=xe(_0x135ea6[_0x5bbedc(0xc2)](_0x3ef638=>Ue(_0x3ef638,_0x2a7ab2)?{..._0x3ef638,'collapsed':!0x1}:_0x3ef638),_0x2a7ab2[_0x5bbedc(0x11d)],_0x2a7ab2[_0x5bbedc(0x10d)],_0x2a7ab2[_0x5bbedc(0xea)]);return We({'start':_0x2a7ab2[_0x5bbedc(0x108)],'end':_0x2a7ab2[_0x5bbedc(0x110)]},_0xca2501)[_0x5bbedc(0xc2)](_0x5cfb92=>Re(_0x2a7ab2[_0x5bbedc(0xea)],_0x5cfb92[_0x5bbedc(0x108)],_0x5cfb92['end'],_0x48d40b));}function Ue(_0x58c6df,_0x11e1c8){const _0x331df1=_0x43d830;return _0x58c6df[_0x331df1(0x11d)]===_0x11e1c8[_0x331df1(0x11d)]&&_0x58c6df[_0x331df1(0x10d)]===_0x11e1c8[_0x331df1(0x10d)]&&_0x58c6df['axis']===_0x11e1c8['axis']&&_0x58c6df['start']===_0x11e1c8[_0x331df1(0x108)]&&_0x58c6df[_0x331df1(0x110)]===_0x11e1c8[_0x331df1(0x110)];}function We(_0x2bdbed,_0x3d3e81){const _0x4f5d22=_0x43d830;let _0x117038=_0x2bdbed[_0x4f5d22(0x108)],_0x5eb8b7=[];for(let _0x499e1c of _0x3d3e81)if(!(_0x499e1c[_0x4f5d22(0x110)]<_0x117038||_0x499e1c[_0x4f5d22(0x108)]>_0x2bdbed['end'])&&(_0x499e1c['start']>_0x117038&&_0x5eb8b7[_0x4f5d22(0x7e)]({'start':_0x117038,'end':Math[_0x4f5d22(0xe8)](_0x499e1c[_0x4f5d22(0x108)]-0x1,_0x2bdbed[_0x4f5d22(0x110)])}),_0x117038=Math[_0x4f5d22(0xb3)](_0x117038,_0x499e1c['end']+0x1),_0x117038>_0x2bdbed[_0x4f5d22(0x110)]))break;return _0x117038<=_0x2bdbed[_0x4f5d22(0x110)]&&_0x5eb8b7[_0x4f5d22(0x7e)]({'start':_0x117038,'end':_0x2bdbed[_0x4f5d22(0x110)]}),_0x5eb8b7;}const Ge={'id':_0x43d830(0x103),'type':_0x4917cb['COMMAND'],'handler':(_0x4592b5,_0x52d0af)=>{const _0x302048=_0x43d830;if(!_0x52d0af)return!0x1;let _0x568d06=_0x4243ec(_0x4592b5[_0x302048(0x10f)](_0x46af38),_0x52d0af);if(!_0x568d06)return!0x1;let {unitId:_0x11e1c5,subUnitId:_0x547f2a,worksheet:_0x7a518c}=_0x568d06;if(!z(_0x4592b5,_0x11e1c5,_0x547f2a))return!0x1;let _0x11f8c9=_0x4592b5[_0x302048(0x10f)](F)['getOutlines'](_0x11e1c5,_0x547f2a),_0x423340=_0x11f8c9[_0x302048(0x87)](_0xefdb61=>_0xefdb61['id']===_0x52d0af[_0x302048(0x9c)]);if(!_0x423340||_0x423340[_0x302048(0x11b)]===_0x52d0af[_0x302048(0x11b)])return!0x1;let _0x1afd5f=Ve(_0x423340,_0x52d0af[_0x302048(0x11b)],_0x7a518c,_0x11f8c9),_0x5ee4cd=Ve(_0x423340,!_0x52d0af[_0x302048(0x11b)],_0x7a518c,_0x11f8c9);return _0x589c0f(_0x1afd5f,_0x4592b5[_0x302048(0x10f)](_0x5197b6))['result']?(_0x4592b5['get'](_0x1a91cd)[_0x302048(0x95)]({'unitID':_0x11e1c5,'undoMutations':_0x5ee4cd,'redoMutations':_0x1afd5f}),!0x0):!0x1;}},W={'id':_0x43d830(0xbd),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x47aa9f,_0x2a8e30)=>{const _0x292ed9=_0x43d830;let _0x279431=_0x47aa9f[_0x292ed9(0x10f)](F),_0xd3c588=Ke(_0x279431[_0x292ed9(0xce)](_0x2a8e30[_0x292ed9(0x11d)],_0x2a8e30['subUnitId']),_0x2a8e30);return _0x279431[_0x292ed9(0x8f)](_0x2a8e30['unitId'],_0x2a8e30[_0x292ed9(0x10d)],_0xd3c588),!0x0;}};function Ke(_0x586796,_0x1f3980){const _0x551b98=_0x43d830;switch(_0x1f3980[_0x551b98(0x120)]){case _0x551b98(0x10a):return _0x1f3980[_0x551b98(0xa2)]?qe(_0x586796,_0x1f3980):k(_0x586796,_0x1f3980);case _0x551b98(0x7a):return A(_0x586796,_0x1f3980);case _0x551b98(0x116):return j(_0x586796,_0x1f3980);}}function qe(_0x14c852,_0x11c01e){const _0x10ea97=_0x43d830;return[..._0x14c852[_0x10ea97(0x93)](_0x23ba41=>_0x23ba41[_0x10ea97(0x11d)]!==_0x11c01e[_0x10ea97(0x11d)]||_0x23ba41[_0x10ea97(0x10d)]!==_0x11c01e[_0x10ea97(0x10d)]||_0x23ba41[_0x10ea97(0xea)]!==_0x11c01e[_0x10ea97(0xea)]),..._0x11c01e[_0x10ea97(0xa2)]];}const G=_0x43d830(0xfb);var Je='@univerjs-pro/sheets-outline',Ye=_0x43d830(0x112);function _0x1f7d(_0x14d6b0,_0x35e48d){_0x14d6b0=_0x14d6b0-0x77;const _0x2cc042=_0x2cc0();let _0x1f7d8a=_0x2cc042[_0x14d6b0];return _0x1f7d8a;}const Xe={};function K(_0x2d801b,_0x29fafc){return function(_0x1a0816,_0x553311){_0x29fafc(_0x1a0816,_0x553311,_0x2d801b);};}function q(_0x11d109,_0x1f2b7d,_0x3c9f8e,_0x764071){const _0x3dd39d=_0x43d830;var _0x1cfdd3=arguments[_0x3dd39d(0x7c)],_0x59b3ad=_0x1cfdd3<0x3?_0x1f2b7d:_0x764071===null?_0x764071=Object[_0x3dd39d(0xc7)](_0x1f2b7d,_0x3c9f8e):_0x764071,_0xc30f10;if(typeof Reflect==_0x3dd39d(0xab)&&typeof Reflect[_0x3dd39d(0x81)]==_0x3dd39d(0x10c))_0x59b3ad=Reflect[_0x3dd39d(0x81)](_0x11d109,_0x1f2b7d,_0x3c9f8e,_0x764071);else{for(var _0x4c0046=_0x11d109[_0x3dd39d(0x7c)]-0x1;_0x4c0046>=0x0;_0x4c0046--)(_0xc30f10=_0x11d109[_0x4c0046])&&(_0x59b3ad=(_0x1cfdd3<0x3?_0xc30f10(_0x59b3ad):_0x1cfdd3>0x3?_0xc30f10(_0x1f2b7d,_0x3c9f8e,_0x59b3ad):_0xc30f10(_0x1f2b7d,_0x3c9f8e))||_0x59b3ad);}return _0x1cfdd3>0x3&&_0x59b3ad&&Object[_0x3dd39d(0xf9)](_0x1f2b7d,_0x3c9f8e,_0x59b3ad),_0x59b3ad;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let Y=class extends _0x363275{constructor(_0x79a1b0,_0x25a25d,_0x3feb5e,_0x17beba){const _0x5088b7=_0x43d830;super(),this[_0x5088b7(0x100)]=_0x79a1b0,this[_0x5088b7(0xcb)]=_0x25a25d,this[_0x5088b7(0xa4)]=_0x3feb5e,this[_0x5088b7(0x7b)]=_0x17beba,this[_0x5088b7(0xad)]();}[_0x43d830(0xad)](){const _0xe3a6d9=_0x43d830;this[_0xe3a6d9(0x8b)](this['_sheetInterceptorService'][_0xe3a6d9(0x9d)]({'getMutations':_0x364bc6=>Ze(_0x364bc6,(_0x17ef28,_0x71c796)=>this[_0xe3a6d9(0xa4)][_0xe3a6d9(0xce)](_0x17ef28,_0x71c796),this[_0xe3a6d9(0xb5)](_0x364bc6[_0xe3a6d9(0xb8)]),_0x485d65=>this['_sheetsOutlineErrorService']['emit'](_0x485d65))}));}['_getCommandScope'](_0xe5958d){const _0x164166=_0x43d830;let _0x592427=_0xe5958d,_0x39cc92=_0x592427!=null&&_0x592427['unitId']?this[_0x164166(0x100)]['getUniverSheetInstance'](_0x592427[_0x164166(0x11d)]):this[_0x164166(0x100)][_0x164166(0x109)](_0x1895a4[_0x164166(0xdc)]);if(!_0x39cc92)return;let _0xfaaec0=_0x592427!=null&&_0x592427[_0x164166(0x10d)]?_0x39cc92[_0x164166(0xaa)](_0x592427['subUnitId']):_0x39cc92[_0x164166(0x106)]();if(_0xfaaec0)return{'unitId':_0x39cc92[_0x164166(0x9e)](),'subUnitId':_0xfaaec0['getSheetId']()};}};Y=q([K(0x0,_0x46af38),K(0x1,_0x4c32b4(_0x5e080d)),K(0x2,_0x4c32b4(F)),K(0x3,_0x4c32b4(I))],Y);function Ze(_0x3fcd00,_0x3c0a19,_0x183013,_0x9c4952){const _0x430eeb=_0x43d830;let _0x19f700=$e(_0x3fcd00,_0x183013);if(!_0x19f700)return it();let _0x2f4885=_0x3c0a19(_0x19f700[_0x430eeb(0x11d)],_0x19f700[_0x430eeb(0x10d)]);if(!_0x2f4885[_0x430eeb(0x11a)](_0x3bed95=>_0x3bed95['axis']===_0x19f700['axis']))return it();Qe(_0x2f4885,_0x19f700,_0x3fcd00['id'],_0x9c4952);let _0x5157b7=nt(_0x19f700,_0x2f4885);return{'redos':[{'id':W['id'],'params':_0x19f700}],'undos':[{'id':W['id'],'params':_0x5157b7}],'preRedos':[],'preUndos':[]};}function Qe(_0x343537,_0x3c7067,_0x1e4ec8,_0x548dcd){const _0x583b53=_0x43d830;try{switch(_0x3c7067[_0x583b53(0x120)]){case _0x583b53(0x10a):k(_0x343537,_0x3c7067);break;case'delete':A(_0x343537,_0x3c7067);break;case _0x583b53(0x116):j(_0x343537,_0x3c7067);break;}}catch(_0x1a1a6e){throw _0x548dcd==null||_0x548dcd({'reason':ge(_0x1a1a6e),'commandId':_0x1e4ec8,'unitId':_0x3c7067[_0x583b53(0x11d)],'subUnitId':_0x3c7067[_0x583b53(0x10d)],'axis':_0x3c7067[_0x583b53(0xea)],'outlineId':_e(_0x1a1a6e)}),new _0x26197c(_0x1a1a6e instanceof Error?_0x1a1a6e[_0x583b53(0x8d)]:_0x583b53(0xe5));}}function $e(_0x4a61ad,_0x334cf8){const _0x1c83cb=_0x43d830;switch(_0x4a61ad['id']){case _0x4787aa['id']:return et(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0x98),_0x334cf8);case _0x17a83e['id']:return et(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);case _0x422ebf['id']:return X(_0x4a61ad[_0x1c83cb(0xb8)],'row',_0x334cf8);case _0x43f874['id']:return X(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);case _0x16d467['id']:return tt(_0x4a61ad['params'],_0x1c83cb(0x98),_0x334cf8);case _0x18f6fb['id']:return tt(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);default:return null;}}function et(_0x3daecf,_0x47aedc,_0x2248cf){const _0x279261=_0x43d830;let _0x178d9f=Z(_0x3daecf,_0x2248cf);if(!(_0x3daecf!=null&&_0x3daecf[_0x279261(0x99)])||!_0x178d9f)return null;let _0x3d36b0=_0x47aedc===_0x279261(0x98)?_0x3daecf[_0x279261(0x99)]['startRow']:_0x3daecf['range'][_0x279261(0x96)],_0x47e36d=_0x47aedc===_0x279261(0x98)?_0x3daecf[_0x279261(0x99)][_0x279261(0x84)]:_0x3daecf[_0x279261(0x99)][_0x279261(0xd0)];return{..._0x178d9f,'axis':_0x47aedc,'type':_0x279261(0x10a),'index':_0x3d36b0,'count':_0x47e36d-_0x3d36b0+0x1};}function X(_0x513610,_0x28dca0,_0x4a01d4){const _0x1d8605=_0x43d830;let _0x4436a8=Z(_0x513610,_0x4a01d4);if(!(_0x513610!=null&&_0x513610[_0x1d8605(0x99)])||!_0x4436a8)return null;let _0xc97550=_0x28dca0===_0x1d8605(0x98)?_0x513610[_0x1d8605(0x99)][_0x1d8605(0xd7)]:_0x513610[_0x1d8605(0x99)][_0x1d8605(0x96)],_0x217c61=_0x28dca0===_0x1d8605(0x98)?_0x513610[_0x1d8605(0x99)]['endRow']:_0x513610[_0x1d8605(0x99)][_0x1d8605(0xd0)];return{..._0x4436a8,'axis':_0x28dca0,'type':_0x1d8605(0x7a),'start':_0xc97550,'end':_0x217c61};}function tt(_0x4f5d8e,_0x672501,_0x35f498){const _0x3d9562=_0x43d830;let _0x589da6=Z(_0x4f5d8e,_0x35f498);if(!(_0x4f5d8e!=null&&_0x4f5d8e['fromRange'])||!_0x4f5d8e[_0x3d9562(0x11c)]||!_0x589da6)return null;let _0x537da0=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0xd7)]:_0x4f5d8e[_0x3d9562(0x79)]['startColumn'],_0x1c5eaf=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0x84)]:_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0xd0)],_0x1639aa=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x11c)][_0x3d9562(0xd7)]:_0x4f5d8e[_0x3d9562(0x11c)][_0x3d9562(0x96)];return{..._0x589da6,'axis':_0x672501,'type':_0x3d9562(0x116),'sourceStart':_0x537da0,'sourceEnd':_0x1c5eaf,'destinationIndex':_0x1639aa};}function nt(_0x74d2b6,_0x574221){const _0x165dd7=_0x43d830;switch(_0x74d2b6[_0x165dd7(0x120)]){case _0x165dd7(0x10a):return{'unitId':_0x74d2b6[_0x165dd7(0x11d)],'subUnitId':_0x74d2b6[_0x165dd7(0x10d)],'axis':_0x74d2b6[_0x165dd7(0xea)],'type':_0x165dd7(0x7a),'start':_0x74d2b6[_0x165dd7(0xbb)],'end':_0x74d2b6['index']+_0x74d2b6[_0x165dd7(0x119)]-0x1};case _0x165dd7(0x7a):return{'unitId':_0x74d2b6['unitId'],'subUnitId':_0x74d2b6['subUnitId'],'axis':_0x74d2b6[_0x165dd7(0xea)],'type':_0x165dd7(0x10a),'index':_0x74d2b6[_0x165dd7(0x108)],'count':_0x74d2b6[_0x165dd7(0x110)]-_0x74d2b6[_0x165dd7(0x108)]+0x1,'restoreOutlines':_0x574221[_0x165dd7(0x93)](_0x657a72=>_0x657a72[_0x165dd7(0x11d)]===_0x74d2b6[_0x165dd7(0x11d)]&&_0x657a72['subUnitId']===_0x74d2b6[_0x165dd7(0x10d)]&&_0x657a72[_0x165dd7(0xea)]===_0x74d2b6['axis'])};case _0x165dd7(0x116):return rt(_0x74d2b6);}}function rt(_0x2096c1){const _0x10f71f=_0x43d830;let _0x39fe9b=_0x2096c1[_0x10f71f(0x117)]-_0x2096c1['sourceStart']+0x1;return _0x2096c1[_0x10f71f(0xb2)]>=_0x2096c1[_0x10f71f(0x7d)]&&_0x2096c1['destinationIndex']<=_0x2096c1['sourceEnd']+0x1?{..._0x2096c1}:_0x2096c1['destinationIndex']>_0x2096c1[_0x10f71f(0x117)]+0x1?{..._0x2096c1,'sourceStart':_0x2096c1['destinationIndex']-_0x39fe9b,'sourceEnd':_0x2096c1[_0x10f71f(0xb2)]-0x1,'destinationIndex':_0x2096c1[_0x10f71f(0x7d)]}:{..._0x2096c1,'sourceStart':_0x2096c1[_0x10f71f(0xb2)],'sourceEnd':_0x2096c1[_0x10f71f(0xb2)]+_0x39fe9b-0x1,'destinationIndex':_0x2096c1[_0x10f71f(0x117)]+0x1};}function Z(_0x44902e,_0x14127c){const _0x8e5677=_0x43d830;var _0x1facc7,_0x5e7f1b;let _0x1013c3=(_0x1facc7=_0x44902e==null?void 0x0:_0x44902e[_0x8e5677(0x11d)])==null?_0x14127c==null?void 0x0:_0x14127c[_0x8e5677(0x11d)]:_0x1facc7,_0x3b496b=(_0x5e7f1b=_0x44902e==null?void 0x0:_0x44902e['subUnitId'])==null?_0x14127c==null?void 0x0:_0x14127c[_0x8e5677(0x10d)]:_0x5e7f1b;return _0x1013c3&&_0x3b496b?{'unitId':_0x1013c3,'subUnitId':_0x3b496b}:null;}function it(){const _0x12de3d=_0x43d830;var _0x2adcd4,_0x26b0cc;return{'redos':[...J['redos']],'undos':[...J[_0x12de3d(0x115)]],'preRedos':[...(_0x2adcd4=J['preRedos'])==null?[]:_0x2adcd4],'preUndos':[...(_0x26b0cc=J[_0x12de3d(0x94)])==null?[]:_0x26b0cc]};}let Q=class extends _0x363275{constructor(_0x6f1e4f,_0x12698e){const _0xb71455=_0x43d830;super(),this[_0xb71455(0xb6)]=_0x6f1e4f,this[_0xb71455(0xa4)]=_0x12698e,this[_0xb71455(0x8a)]();}[_0x43d830(0x8a)](){const _0x538b07=_0x43d830;this[_0x538b07(0x8b)](this[_0x538b07(0xb6)][_0x538b07(0xa7)]({'pluginName':G,'businesses':[_0x1895a4[_0x538b07(0xdc)]],'toJson':_0x15a084=>JSON['stringify'](this[_0x538b07(0xa4)][_0x538b07(0x105)](_0x15a084)),'parseJson':_0x5a1361=>JSON[_0x538b07(0xfe)](_0x5a1361),'onLoad':(_0x5f0653,_0x1d2a75)=>this[_0x538b07(0xa4)][_0x538b07(0xf2)](_0x5f0653,_0x1d2a75),'onUnLoad':_0x7afbef=>this[_0x538b07(0xa4)][_0x538b07(0xd6)](_0x7afbef)}));}};Q=q([K(0x0,_0x2a06e7),K(0x1,_0x4c32b4(F))],Q);let $=class extends _0x29453c{constructor(_0x14b740=Xe,_0x199a85,_0x211bf6,_0x68010d){const _0x3935a4=_0x43d830;super(),this[_0x3935a4(0xa9)]=_0x14b740,this[_0x3935a4(0xb0)]=_0x199a85,this[_0x3935a4(0xf4)]=_0x211bf6,this['_configService']=_0x68010d;let {..._0x671b49}=_0x4e0cea({},Xe,this[_0x3935a4(0xa9)]);this[_0x3935a4(0x104)][_0x3935a4(0x82)](_0x3935a4(0xe6),_0x671b49);}[_0x43d830(0xa0)](){const _0x47a6d0=_0x43d830;this[_0x47a6d0(0xb0)][_0x47a6d0(0xfc)]([F]),this[_0x47a6d0(0xb0)][_0x47a6d0(0xfc)]([I]),this[_0x47a6d0(0xb0)]['add']([Q]),this['_injector']['add']([Y]),this[_0x47a6d0(0xcf)](),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](F),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](I),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](Q),this['_injector'][_0x47a6d0(0x10f)](Y);}[_0x43d830(0xcf)](){const _0x58fa7e=_0x43d830;[B,Le,Ge,H][_0x58fa7e(0x97)](_0x82d903=>{const _0x417b69=_0x58fa7e;this['disposeWithMe'](this[_0x417b69(0xf4)]['registerCommand'](_0x82d903));}),[L,R,U,V,W]['forEach'](_0x4c1d83=>{const _0x3fd43d=_0x58fa7e;this['disposeWithMe'](this[_0x3fd43d(0xf4)][_0x3fd43d(0xe1)](_0x4c1d83));});}};P($,_0x43d830(0x9b),G),P($,'packageName',Je),P($,_0x43d830(0xcd),Ye),P($,'type',_0x1895a4[_0x43d830(0xdc)]),$=q([_0x3376b6(_0x3fe587),K(0x1,_0x4c32b4(_0x3e9c64)),K(0x2,_0x5197b6),K(0x3,_0x272c5c)],$);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/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x689196=_0xb19c;(function(_0x2b3d71,_0x2c3165){var _0x2d8d5e=_0xb19c,_0x3bdd38=_0x2b3d71();while(!![]){try{var _0x2480ea=parseInt(_0x2d8d5e(0xbc))/0x1*(parseInt(_0x2d8d5e(0xc7))/0x2)+parseInt(_0x2d8d5e(0xb5))/0x3+parseInt(_0x2d8d5e(0xd1))/0x4*(parseInt(_0x2d8d5e(0xc2))/0x5)+parseInt(_0x2d8d5e(0xbe))/0x6*(parseInt(_0x2d8d5e(0xbb))/0x7)+-parseInt(_0x2d8d5e(0xc8))/0x8*(-parseInt(_0x2d8d5e(0xcb))/0x9)+-parseInt(_0x2d8d5e(0xd0))/0xa*(parseInt(_0x2d8d5e(0xc0))/0xb)+parseInt(_0x2d8d5e(0xb8))/0xc*(-parseInt(_0x2d8d5e(0xc9))/0xd);if(_0x2480ea===_0x2c3165)break;else _0x3bdd38['push'](_0x3bdd38['shift']());}catch(_0x2785a4){_0x3bdd38['push'](_0x3bdd38['shift']());}}}(_0x5575,0x4bc35));import{AddDimensionOutlineCommand as _0x214b4e,ClearDimensionOutlinesCommand as _0x17bc0c,DimensionOutlineAxis as _0x4f8e1a,DimensionOutlineErrorReason as _0x43e285,RemoveDimensionOutlineCommand as _0x322faa,SetDimensionOutlineCollapsedCommand as _0x40c5c9,SheetsOutlineModel as _0x1b9f8b}from'@univerjs-pro/sheets-outline';import{FEnum as _0x1564f7}from'@univerjs/core/facade';import{FWorksheet as _0x2e7726}from'@univerjs/sheets/facade';var l=class extends _0x1564f7{get['DimensionOutlineAxis'](){return _0x4f8e1a;}get['DimensionOutlineErrorReason'](){return _0x43e285;}};_0x1564f7[_0x689196(0xc1)](l);function _0x5575(){var _0x4a4622=['35688JvqrGD','13AymDfz','getDimensionOutlines','567gXEJvB','getUnitId','_injector','clearDimensionOutlines','axis','10GhlcNa','2205908lxKIwm','get','_commandService','getOutlines','769593hJaJZm','addRowOutline','filter','15442572tKHklm','_worksheet','syncExecuteCommand','252gCOvqi','134716noXMJc','_workbook','88818RxjdzQ','setDimensionOutlineCollapsed','1754159neBdxS','extend','5EBNVDH','addColumnOutline','removeDimensionOutline','_addDimensionOutline','getSheetId','2szjSun'];_0x5575=function(){return _0x4a4622;};return _0x5575();}var u=class extends _0x2e7726{[_0x689196(0xb6)](_0x517350,_0xeef610){var _0x13d7e8=_0x689196;return this[_0x13d7e8(0xc5)](_0x4f8e1a['ROW'],_0x517350,_0xeef610);}[_0x689196(0xc3)](_0x5e88ba,_0x1566aa){var _0x3dd8da=_0x689196;return this[_0x3dd8da(0xc5)](_0x4f8e1a['COLUMN'],_0x5e88ba,_0x1566aa);}[_0x689196(0xc4)](_0x1850c2){var _0x4bd0bd=_0x689196;return this['_commandService'][_0x4bd0bd(0xba)](_0x322faa['id'],{'unitId':this[_0x4bd0bd(0xbd)]['getUnitId'](),'subUnitId':this[_0x4bd0bd(0xb9)]['getSheetId'](),'outlineId':_0x1850c2}),this;}[_0x689196(0xbf)](_0x4b6b53,_0x5c6d6b){var _0x42b3c6=_0x689196;return this['_commandService'][_0x42b3c6(0xba)](_0x40c5c9['id'],{'unitId':this[_0x42b3c6(0xbd)]['getUnitId'](),'subUnitId':this[_0x42b3c6(0xb9)]['getSheetId'](),'outlineId':_0x4b6b53,'collapsed':_0x5c6d6b}),this;}[_0x689196(0xce)](_0xe3a971,_0x1ea76c,_0x1ab31b){var _0x2cf390=_0x689196;return this[_0x2cf390(0xb3)][_0x2cf390(0xba)](_0x17bc0c['id'],{'unitId':this[_0x2cf390(0xbd)][_0x2cf390(0xcc)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0xe3a971,'start':_0x1ea76c,'end':_0x1ab31b}),this;}[_0x689196(0xca)](_0x148f66){var _0x417470=_0x689196;let _0x33e2da=this[_0x417470(0xcd)][_0x417470(0xb2)](_0x1b9f8b)[_0x417470(0xb4)](this[_0x417470(0xbd)][_0x417470(0xcc)](),this[_0x417470(0xb9)]['getSheetId']());return _0x148f66?_0x33e2da[_0x417470(0xb7)](_0x5d492c=>_0x5d492c[_0x417470(0xcf)]===_0x148f66):_0x33e2da;}[_0x689196(0xc5)](_0x13c026,_0x340820,_0x28b5a8){var _0x2f8813=_0x689196;return this[_0x2f8813(0xb3)][_0x2f8813(0xba)](_0x214b4e['id'],{'unitId':this[_0x2f8813(0xbd)][_0x2f8813(0xcc)](),'subUnitId':this['_worksheet'][_0x2f8813(0xc6)](),'axis':_0x13c026,'start':_0x340820,'end':_0x340820+_0x28b5a8-0x1}),this;}};_0x2e7726[_0x689196(0xc1)](u);function _0xb19c(_0xb2095e,_0x4351c2){_0xb2095e=_0xb2095e-0xb2;var _0x5575d9=_0x5575();var _0xb19ca6=_0x5575d9[_0xb2095e];return _0xb19ca6;}export{};
1
+ var _0x2f93b4=_0x1e7a;(function(_0x46d99a,_0x139806){var _0x5447ba=_0x1e7a,_0x469635=_0x46d99a();while(!![]){try{var _0x805eab=parseInt(_0x5447ba(0x102))/0x1+-parseInt(_0x5447ba(0x10e))/0x2+parseInt(_0x5447ba(0x116))/0x3+parseInt(_0x5447ba(0x106))/0x4+parseInt(_0x5447ba(0x10a))/0x5+-parseInt(_0x5447ba(0x110))/0x6+-parseInt(_0x5447ba(0x103))/0x7;if(_0x805eab===_0x139806)break;else _0x469635['push'](_0x469635['shift']());}catch(_0x2a6b5b){_0x469635['push'](_0x469635['shift']());}}}(_0x1685,0xc5e36));import{AddDimensionOutlineCommand as _0x168f7b,ClearDimensionOutlinesCommand as _0x412c92,DimensionOutlineAxis as _0x50d79f,DimensionOutlineErrorReason as _0x404709,RemoveDimensionOutlineCommand as _0x10fe30,SetDimensionOutlineCollapsedCommand as _0x125916,SheetsOutlineModel as _0x1aed7d}from'@univerjs-pro/sheets-outline';import{FEnum as _0x1157d3}from'@univerjs/core/facade';function _0x1685(){var _0x191a24=['COLUMN','setDimensionOutlineCollapsed','5997400iBCKBn','DimensionOutlineAxis','addRowOutline','_workbook','1293846xHkYwY','axis','2924370oAtTto','get','clearDimensionOutlines','DimensionOutlineErrorReason','_worksheet','ROW','787815LPBCFS','_addDimensionOutline','_commandService','getSheetId','_injector','filter','getUnitId','syncExecuteCommand','1560776hHnXTy','16177735ryNuEA','extend','removeDimensionOutline','4932448cUSgAA','getOutlines'];_0x1685=function(){return _0x191a24;};return _0x1685();}import{FWorksheet as _0x2bcf12}from'@univerjs/sheets/facade';function _0x1e7a(_0x2a8fb2,_0x11a26a){_0x2a8fb2=_0x2a8fb2-0xff;var _0x1685d4=_0x1685();var _0x1e7a55=_0x1685d4[_0x2a8fb2];return _0x1e7a55;}var l=class extends _0x1157d3{get[_0x2f93b4(0x10b)](){return _0x50d79f;}get[_0x2f93b4(0x113)](){return _0x404709;}};_0x1157d3['extend'](l);var u=class extends _0x2bcf12{[_0x2f93b4(0x10c)](_0x251118,_0x250dc7){var _0x589459=_0x2f93b4;return this['_addDimensionOutline'](_0x50d79f[_0x589459(0x115)],_0x251118,_0x250dc7);}['addColumnOutline'](_0x164367,_0x53e9ba){var _0x2e7fab=_0x2f93b4;return this[_0x2e7fab(0x117)](_0x50d79f[_0x2e7fab(0x108)],_0x164367,_0x53e9ba);}[_0x2f93b4(0x105)](_0x28cbeb){var _0x190bbe=_0x2f93b4;return this[_0x190bbe(0x118)][_0x190bbe(0x101)](_0x10fe30['id'],{'unitId':this[_0x190bbe(0x10d)][_0x190bbe(0x100)](),'subUnitId':this['_worksheet']['getSheetId'](),'outlineId':_0x28cbeb}),this;}[_0x2f93b4(0x109)](_0x2ee415,_0x53606e){var _0x2066d0=_0x2f93b4;return this[_0x2066d0(0x118)][_0x2066d0(0x101)](_0x125916['id'],{'unitId':this[_0x2066d0(0x10d)][_0x2066d0(0x100)](),'subUnitId':this[_0x2066d0(0x114)]['getSheetId'](),'outlineId':_0x2ee415,'collapsed':_0x53606e}),this;}[_0x2f93b4(0x112)](_0x16ae0f,_0x2bbdbb,_0x33bcfe){var _0xc6cadb=_0x2f93b4;return this[_0xc6cadb(0x118)][_0xc6cadb(0x101)](_0x412c92['id'],{'unitId':this[_0xc6cadb(0x10d)][_0xc6cadb(0x100)](),'subUnitId':this[_0xc6cadb(0x114)]['getSheetId'](),'axis':_0x16ae0f,'start':_0x2bbdbb,'end':_0x33bcfe}),this;}['getDimensionOutlines'](_0x300626){var _0x29a82e=_0x2f93b4;let _0x5add44=this[_0x29a82e(0x11a)][_0x29a82e(0x111)](_0x1aed7d)[_0x29a82e(0x107)](this['_workbook'][_0x29a82e(0x100)](),this[_0x29a82e(0x114)][_0x29a82e(0x119)]());return _0x300626?_0x5add44[_0x29a82e(0xff)](_0x625b82=>_0x625b82[_0x29a82e(0x10f)]===_0x300626):_0x5add44;}['_addDimensionOutline'](_0x2120df,_0xff4421,_0xf62800){var _0x35231a=_0x2f93b4;return this[_0x35231a(0x118)][_0x35231a(0x101)](_0x168f7b['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x35231a(0x114)][_0x35231a(0x119)](),'axis':_0x2120df,'start':_0xff4421,'end':_0xff4421+_0xf62800-0x1}),this;}};_0x2bcf12[_0x2f93b4(0x104)](u);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x565511=_0xdbfb;(function(_0x53aa63,_0x1e58e9){const _0x3e2c2e=_0xdbfb,_0x120ec7=_0x53aa63();while(!![]){try{const _0x18adcc=-parseInt(_0x3e2c2e(0xbf))/0x1*(parseInt(_0x3e2c2e(0x103))/0x2)+parseInt(_0x3e2c2e(0x11d))/0x3*(parseInt(_0x3e2c2e(0xb0))/0x4)+parseInt(_0x3e2c2e(0x10b))/0x5*(parseInt(_0x3e2c2e(0x12e))/0x6)+-parseInt(_0x3e2c2e(0x130))/0x7*(-parseInt(_0x3e2c2e(0xcb))/0x8)+parseInt(_0x3e2c2e(0x114))/0x9*(-parseInt(_0x3e2c2e(0x112))/0xa)+parseInt(_0x3e2c2e(0xf1))/0xb*(parseInt(_0x3e2c2e(0xe8))/0xc)+parseInt(_0x3e2c2e(0xe0))/0xd*(parseInt(_0x3e2c2e(0xc0))/0xe);if(_0x18adcc===_0x1e58e9)break;else _0x120ec7['push'](_0x120ec7['shift']());}catch(_0x5d614b){_0x120ec7['push'](_0x120ec7['shift']());}}}(_0xa77e,0xbba2a));import{CommandType as _0x4ec594,CustomCommandExecutionError as _0x21ca2b,DependentOn as _0x17a12a,Disposable as _0x564e2b,ICommandService as _0x43bee3,IConfigService as _0x366292,IPermissionService as _0x54bef8,IResourceManagerService as _0x1b2d4c,IUndoRedoService as _0x443f20,IUniverInstanceService as _0x4665c9,Inject as _0x69251c,Injector as _0x1291f3,Plugin as _0x35d18e,UniverInstanceType as _0x2ab9bd,generateRandomId as _0x39a559,merge as _0x34c955,sequenceExecute as _0x28033e}from'@univerjs/core';import{InsertColCommand as _0x57b19f,InsertRowCommand as _0x4ca3ad,MoveColsCommand as _0xa17699,MoveRowsCommand as _0x5aa133,RemoveColCommand as _0x33ea80,RemoveRowCommand as _0x3c1f56,SetColHiddenMutation as _0x1a6e2d,SetColVisibleMutation as _0x46b269,SetRowHiddenMutation as _0x24c04e,SetRowVisibleMutation as _0x4c050a,SheetInterceptorService as _0x5d26ad,SheetPermissionCheckController as _0x55ef15,WorkbookViewPermission as _0x54368d,WorksheetViewPermission as _0x214033,getSheetCommandTarget as _0x98a6a2}from'@univerjs/sheets';import{Subject as _0x4956bb,of as _0x2aec80}from'rxjs';import{debounceTime as _0xb56627,map as _0x36729b,startWith as _0x3595db}from'rxjs/operators';import{UniverLicensePlugin as _0x579cb4}from'@univerjs-pro/license';let me=function(_0x3c807f){const _0x1cd3a1=_0xdbfb;return _0x3c807f[_0x1cd3a1(0xa9)]=_0x1cd3a1(0xf4),_0x3c807f[_0x1cd3a1(0xe6)]='column',_0x3c807f;}({}),he=function(_0x26c95a){const _0x2b2610=_0xdbfb;return _0x26c95a['INVALID_RANGE']='invalid-range',_0x26c95a['OUT_OF_BOUNDS']=_0x2b2610(0xd6),_0x26c95a[_0x2b2610(0x13e)]=_0x2b2610(0x132),_0x26c95a[_0x2b2610(0xce)]='max-depth',_0x26c95a[_0x2b2610(0x102)]=_0x2b2610(0x10e),_0x26c95a[_0x2b2610(0x107)]='clear-range-not-contain-outline',_0x26c95a[_0x2b2610(0x13f)]=_0x2b2610(0x9b),_0x26c95a;}({});var w=class extends Error{constructor(_0x3f4ecb,_0xc93aa9,_0x2949d5){const _0x4e2ff0=_0xdbfb;super(_0xc93aa9),this[_0x4e2ff0(0xc8)]=_0x3f4ecb,this[_0x4e2ff0(0x11a)]=_0x2949d5,this[_0x4e2ff0(0xfd)]='DimensionOutlineError';}};function ge(_0x5aa9a3){const _0x97e46d=_0xdbfb;return _0x5aa9a3 instanceof w?_0x5aa9a3[_0x97e46d(0xc8)]:_0x5aa9a3 instanceof Error?_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)]('split\x20dimension\x20outline')?_0x97e46d(0x10e):_0x5aa9a3['message']['includes'](_0x97e46d(0x118))?_0x97e46d(0x129):_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)](_0x97e46d(0x11f))?_0x97e46d(0x132):_0x5aa9a3[_0x97e46d(0xf0)][_0x97e46d(0xbb)](_0x97e46d(0xa0))?_0x97e46d(0x109):_0x97e46d(0x9b):_0x97e46d(0x9b);}function _e(_0x3fbc90){const _0x36cb86=_0xdbfb;return _0x3fbc90 instanceof w?_0x3fbc90[_0x36cb86(0x11a)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x538867,_0x155458){const _0x314542=_0xdbfb;return _0x538867[_0x314542(0xf3)]===_0x155458[_0x314542(0xf3)]&&_0x538867[_0x314542(0xb1)]===_0x155458[_0x314542(0xb1)]&&_0x538867['axis']===_0x155458[_0x314542(0xd2)];}function D(_0x3c4581,_0x2e1575={}){const _0x4ec867=_0xdbfb;var _0x74c263;let _0x59ef01=(_0x74c263=_0x2e1575['maxDepth'])==null?0x8:_0x74c263,_0x340555=new Map();for(let _0x1fc6ba of _0x3c4581){let _0x5ede28=_0x1fc6ba[_0x4ec867(0xf3)]+':'+_0x1fc6ba[_0x4ec867(0xb1)]+':'+_0x1fc6ba[_0x4ec867(0xd2)],_0xeefd6a=_0x340555[_0x4ec867(0xc6)](_0x5ede28);_0xeefd6a?_0xeefd6a[_0x4ec867(0x141)](_0x1fc6ba):_0x340555['set'](_0x5ede28,[_0x1fc6ba]);}let _0x1c0fba=[];for(let _0x53083d of _0x340555['values']()){let _0x3cf956=[..._0x53083d]['sort'](ke),_0x520b85=[];for(let _0x5cebca of _0x3cf956){for(Ae(_0x5cebca);_0x520b85[_0x4ec867(0xe5)]>0x0&&_0x5cebca[_0x4ec867(0xd1)]>_0x520b85[_0x520b85['length']-0x1][_0x4ec867(0xc1)];)_0x520b85[_0x4ec867(0x9d)]();let _0x4733a4=_0x520b85[_0x520b85[_0x4ec867(0xe5)]-0x1];if(_0x4733a4&&_0x5cebca['end']>_0x4733a4[_0x4ec867(0xc1)])throw new w(_0x4ec867(0x132),_0x4ec867(0xf7),_0x5cebca['id']);let _0x2f2f87=_0x4733a4?_0x4733a4[_0x4ec867(0x118)]+0x1:0x1;if(_0x2f2f87>_0x59ef01)throw new w('max-depth',_0x4ec867(0xb6)+_0x59ef01,_0x5cebca['id']);let _0x56578d={..._0x5cebca,'depth':_0x2f2f87,'parentId':_0x4733a4==null?void 0x0:_0x4733a4['id'],'anchor':_0x5cebca[_0x4ec867(0xc1)],'children':[]};_0x4733a4?_0x4733a4[_0x4ec867(0x12f)][_0x4ec867(0x141)](_0x56578d):_0x1c0fba['push'](_0x56578d),_0x520b85[_0x4ec867(0x141)](_0x56578d);}}return _0x1c0fba;}function O(_0x4f80c2,_0x4fd539,_0x5a7250={}){const _0x3de7a4=_0xdbfb;if(_0x4fd539[_0x3de7a4(0xd1)]<0x0||_0x4fd539['start']>_0x4fd539[_0x3de7a4(0xc1)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x5a7250['maxIndex']!=null&&_0x4fd539[_0x3de7a4(0xc1)]>=_0x5a7250[_0x3de7a4(0x108)])return{'valid':!0x1,'reason':_0x3de7a4(0xd6)};let _0x2c50d8=_0x4f80c2[_0x3de7a4(0x12d)](_0x1510fc=>E(_0x1510fc,_0x4fd539));for(let _0xdc2a54 of _0x2c50d8)if(je(_0xdc2a54,_0x4fd539))return{'valid':!0x1,'reason':_0x3de7a4(0x132)};try{D([..._0x4f80c2,_0x4fd539],_0x5a7250);}catch(_0x501d1c){let _0x3002ca=ge(_0x501d1c);return _0x3002ca===_0x3de7a4(0x129)?{'valid':!0x1,'reason':'max-depth'}:_0x3002ca==='invalid-range'?{'valid':!0x1,'reason':_0x3de7a4(0x109)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function ve(_0x39eae1,_0x4279a9,_0x3fc9e7={}){const _0xb5b2f3=_0xdbfb;let _0x5b7ab4=O(_0x39eae1,_0x4279a9,_0x3fc9e7);if(!_0x5b7ab4[_0xb5b2f3(0x11c)]){var _0x5d33e1;throw Error((_0x5d33e1=_0x5b7ab4['reason'])==null?_0xb5b2f3(0x13b):_0x5d33e1);}return[..._0x39eae1,_0x4279a9];}function ye(_0x3b6428,_0x57c64d){const _0x51c56c=_0xdbfb;let _0x3c17ae=_0x57c64d[_0x51c56c(0xd1)],_0x1a161=_0x57c64d['end'],_0x30c7f9=[],_0x3052ef=!0x0;for(;_0x3052ef;){_0x3052ef=!0x1;for(let _0x228ead of _0x3b6428)_0x30c7f9[_0x51c56c(0xbb)](_0x228ead)||!E(_0x228ead,_0x57c64d)||!De(_0x228ead[_0x51c56c(0xd1)],_0x228ead[_0x51c56c(0xc1)],_0x3c17ae,_0x1a161)||(_0x30c7f9[_0x51c56c(0x141)](_0x228ead),_0x3c17ae=Math[_0x51c56c(0xa6)](_0x3c17ae,_0x228ead[_0x51c56c(0xd1)]),_0x1a161=Math[_0x51c56c(0x12b)](_0x1a161,_0x228ead[_0x51c56c(0xc1)]),_0x3052ef=!0x0);}if(_0x30c7f9[_0x51c56c(0xe5)]===0x0)return null;let [_0x546660]=[..._0x30c7f9][_0x51c56c(0x11e)](ke);return{'mergedOutline':{..._0x546660,'start':_0x3c17ae,'end':_0x1a161},'mergedOutlines':_0x30c7f9};}function be(_0x3b6c42,_0x41230f){const _0x387298=_0xdbfb;return _0x3b6c42[_0x387298(0x12d)](_0x36254d=>E(_0x36254d,_0x41230f)?!(_0x36254d[_0x387298(0xd1)]>=_0x41230f['start']&&_0x36254d[_0x387298(0xc1)]<=_0x41230f['end']):!0x0);}function xe(_0x67a461,_0x88192e,_0x5df1a4,_0x150292){const _0xc87eba=_0xdbfb;return Se(_0x67a461['filter'](_0x2f2900=>_0x2f2900[_0xc87eba(0xf3)]===_0x88192e&&_0x2f2900[_0xc87eba(0xb1)]===_0x5df1a4&&_0x2f2900[_0xc87eba(0xd2)]===_0x150292&&_0x2f2900[_0xc87eba(0x9e)])['map'](_0x47887b=>({'start':_0x47887b['start'],'end':_0x47887b[_0xc87eba(0xc1)]})));}function Se(_0x339efa){const _0x128927=_0xdbfb;if(_0x339efa[_0x128927(0xe5)]===0x0)return[];let _0x42e43a=[..._0x339efa][_0x128927(0x11e)]((_0x506e91,_0x5975f6)=>_0x506e91[_0x128927(0xd1)]-_0x5975f6['start']||_0x506e91[_0x128927(0xc1)]-_0x5975f6['end']),_0x37d6c7=[];for(let _0x52fe14 of _0x42e43a){let _0x292ca3=_0x37d6c7[_0x37d6c7[_0x128927(0xe5)]-0x1];!_0x292ca3||_0x52fe14[_0x128927(0xd1)]>_0x292ca3[_0x128927(0xc1)]+0x1?_0x37d6c7[_0x128927(0x141)]({..._0x52fe14}):_0x292ca3[_0x128927(0xc1)]=Math[_0x128927(0x12b)](_0x292ca3[_0x128927(0xc1)],_0x52fe14[_0x128927(0xc1)]);}return _0x37d6c7;}function k(_0x4f801d,_0x446486){const _0x5a4114=_0xdbfb;return _0x446486[_0x5a4114(0x9c)]<=0x0?_0x4f801d:M(_0x4f801d[_0x5a4114(0x117)](_0x45f530=>E(_0x45f530,_0x446486)?_0x446486[_0x5a4114(0xb8)]<=_0x45f530[_0x5a4114(0xd1)]?{..._0x45f530,'start':_0x45f530[_0x5a4114(0xd1)]+_0x446486['count'],'end':_0x45f530[_0x5a4114(0xc1)]+_0x446486[_0x5a4114(0x9c)]}:_0x45f530[_0x5a4114(0xd1)]<_0x446486[_0x5a4114(0xb8)]&&_0x446486[_0x5a4114(0xb8)]<=_0x45f530[_0x5a4114(0xc1)]?{..._0x45f530,'end':_0x45f530[_0x5a4114(0xc1)]+_0x446486[_0x5a4114(0x9c)]}:_0x45f530:_0x45f530));}function A(_0x375708,_0x5c3e6b){const _0x5dbc5a=_0xdbfb;if(_0x5c3e6b[_0x5dbc5a(0xd1)]>_0x5c3e6b['end'])return _0x375708;let _0x30b86f=_0x5c3e6b[_0x5dbc5a(0xc1)]-_0x5c3e6b[_0x5dbc5a(0xd1)]+0x1,_0x4b7b01=[];for(let _0x2e0104 of _0x375708){if(!E(_0x2e0104,_0x5c3e6b)){_0x4b7b01[_0x5dbc5a(0x141)](_0x2e0104);continue;}if(_0x2e0104[_0x5dbc5a(0xc1)]<_0x5c3e6b['start']){_0x4b7b01[_0x5dbc5a(0x141)](_0x2e0104);continue;}if(_0x2e0104[_0x5dbc5a(0xd1)]>_0x5c3e6b[_0x5dbc5a(0xc1)]){_0x4b7b01[_0x5dbc5a(0x141)]({..._0x2e0104,'start':_0x2e0104[_0x5dbc5a(0xd1)]-_0x30b86f,'end':_0x2e0104[_0x5dbc5a(0xc1)]-_0x30b86f});continue;}let _0x22243e=Math[_0x5dbc5a(0x12b)](_0x2e0104[_0x5dbc5a(0xd1)],_0x5c3e6b[_0x5dbc5a(0xd1)]),_0x17ac1e=Math[_0x5dbc5a(0xa6)](_0x2e0104[_0x5dbc5a(0xc1)],_0x5c3e6b[_0x5dbc5a(0xc1)]),_0x539827=Math[_0x5dbc5a(0x12b)](0x0,_0x17ac1e-_0x22243e+0x1),_0x5e954e=_0x2e0104[_0x5dbc5a(0xc1)]-_0x2e0104[_0x5dbc5a(0xd1)]+0x1-_0x539827;if(_0x5e954e<=0x0)continue;let _0x3b173e=_0x2e0104[_0x5dbc5a(0xd1)]<_0x5c3e6b[_0x5dbc5a(0xd1)]?_0x2e0104['start']:_0x5c3e6b[_0x5dbc5a(0xd1)];_0x4b7b01[_0x5dbc5a(0x141)]({..._0x2e0104,'start':_0x3b173e,'end':_0x3b173e+_0x5e954e-0x1});}return M(_0x4b7b01);}function j(_0x138517,_0x25bbae){const _0x1a3acd=_0xdbfb;if(_0x25bbae[_0x1a3acd(0xb7)]>_0x25bbae[_0x1a3acd(0x106)])return _0x138517;let _0xfe5d99=[];for(let _0x3bfe7b of _0x138517){if(!E(_0x3bfe7b,_0x25bbae)){_0xfe5d99[_0x1a3acd(0x141)](_0x3bfe7b);continue;}let _0x290396=Ce(_0x3bfe7b,_0x25bbae);if(_0x290396[_0x1a3acd(0xe7)]===_0x1a3acd(0x137))throw new w(_0x1a3acd(0x10e),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x3bfe7b['id'],_0x3bfe7b['id']);_0xfe5d99['push'](_0x290396['outline']);}return M(_0xfe5d99);}function Ce(_0x20d46c,_0x3f3408){const _0x497ff6=_0xdbfb;let _0x242fdd=we(_0x3f3408[_0x497ff6(0xb7)],_0x3f3408[_0x497ff6(0x106)]+0x1,_0x3f3408[_0x497ff6(0x13c)]),_0x34af4f=[],_0x5149c5={'start':_0x20d46c[_0x497ff6(0xd1)],'end':_0x20d46c[_0x497ff6(0xc1)]+0x1};for(let _0x2564fa of _0x242fdd){let _0x20f031=Te(_0x5149c5,_0x2564fa['range']);_0x20f031&&_0x34af4f[_0x497ff6(0x141)]({'start':_0x20f031[_0x497ff6(0xd1)]+_0x2564fa[_0x497ff6(0x10a)],'end':_0x20f031[_0x497ff6(0xc1)]+_0x2564fa[_0x497ff6(0x10a)]});}let _0x20e109=Ee(_0x34af4f);return _0x20e109[_0x497ff6(0xe5)]===0x1?{'type':'ok','outline':{..._0x20d46c,'start':_0x20e109[0x0][_0x497ff6(0xd1)],'end':_0x20e109[0x0][_0x497ff6(0xc1)]-0x1}}:{'type':_0x497ff6(0x137),'outline':_0x20d46c,'ranges':_0x20e109};}function we(_0x1670c2,_0x4506ad,_0x59c06f){const _0x4c543b=_0xdbfb;let _0x3dbe05=_0x4506ad-_0x1670c2;if(_0x3dbe05<=0x0)throw Error(_0x4c543b(0xc7));return _0x59c06f>=_0x1670c2&&_0x59c06f<=_0x4506ad?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x59c06f<_0x1670c2?[{'range':{'start':0x0,'end':_0x59c06f},'offset':0x0},{'range':{'start':_0x59c06f,'end':_0x1670c2},'offset':_0x3dbe05},{'range':{'start':_0x1670c2,'end':_0x4506ad},'offset':_0x59c06f-_0x1670c2},{'range':{'start':_0x4506ad,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1670c2},'offset':0x0},{'range':{'start':_0x1670c2,'end':_0x4506ad},'offset':_0x59c06f-_0x4506ad},{'range':{'start':_0x4506ad,'end':_0x59c06f},'offset':-_0x3dbe05},{'range':{'start':_0x59c06f,'end':T},'offset':0x0}];}function Te(_0x1d3437,_0xf9d68d){const _0x59d738=_0xdbfb;let _0x43c4bb=Math[_0x59d738(0x12b)](_0x1d3437[_0x59d738(0xd1)],_0xf9d68d['start']),_0xf47dcf=Math[_0x59d738(0xa6)](_0x1d3437[_0x59d738(0xc1)],_0xf9d68d[_0x59d738(0xc1)]);return _0x43c4bb>=_0xf47dcf?null:{'start':_0x43c4bb,'end':_0xf47dcf};}function Ee(_0x492104){const _0x540f6f=_0xdbfb;if(_0x492104[_0x540f6f(0xe5)]===0x0)return[];let _0x17ace1=[..._0x492104]['sort']((_0x5c1b28,_0x10a8ea)=>_0x5c1b28['start']-_0x10a8ea[_0x540f6f(0xd1)]||_0x5c1b28[_0x540f6f(0xc1)]-_0x10a8ea[_0x540f6f(0xc1)]),_0x116ec5=[];for(let _0x792b58 of _0x17ace1){let _0x34a1ad=_0x116ec5[_0x116ec5[_0x540f6f(0xe5)]-0x1];!_0x34a1ad||_0x792b58[_0x540f6f(0xd1)]>_0x34a1ad[_0x540f6f(0xc1)]?_0x116ec5['push']({..._0x792b58}):_0x34a1ad[_0x540f6f(0xc1)]=Math[_0x540f6f(0x12b)](_0x34a1ad[_0x540f6f(0xc1)],_0x792b58[_0x540f6f(0xc1)]);}return _0x116ec5;}function De(_0x5c681a,_0x1d72ae,_0x445396,_0x51ec01){return _0x1d72ae+0x1===_0x445396||_0x51ec01+0x1===_0x5c681a;}function M(_0x290195){let _0x46491f=Oe(_0x290195);return D(_0x46491f),_0x46491f;}function Oe(_0x43929d){const _0x26fe16=_0xdbfb;let _0x526e65=new Map();for(let _0x3a7e6d of _0x43929d){let _0x599e24=[_0x3a7e6d[_0x26fe16(0xf3)],_0x3a7e6d['subUnitId'],_0x3a7e6d['axis'],_0x3a7e6d[_0x26fe16(0xd1)],_0x3a7e6d[_0x26fe16(0xc1)]]['join'](':'),_0xe8d2db=_0x526e65[_0x26fe16(0xc6)](_0x599e24);if(!_0xe8d2db){_0x526e65[_0x26fe16(0xbc)](_0x599e24,_0x3a7e6d);continue;}_0x526e65[_0x26fe16(0xbc)](_0x599e24,{..._0xe8d2db,'collapsed':_0xe8d2db[_0x26fe16(0x9e)]||_0x3a7e6d['collapsed']});}return Array[_0x26fe16(0xd9)](_0x526e65[_0x26fe16(0xa2)]());}function ke(_0x1a92e8,_0x1304fb){const _0x3f6bd1=_0xdbfb;return _0x1a92e8[_0x3f6bd1(0xf3)]===_0x1304fb[_0x3f6bd1(0xf3)]?_0x1a92e8[_0x3f6bd1(0xb1)]===_0x1304fb['subUnitId']?_0x1a92e8[_0x3f6bd1(0xd2)]===_0x1304fb[_0x3f6bd1(0xd2)]?_0x1a92e8[_0x3f6bd1(0xd1)]===_0x1304fb[_0x3f6bd1(0xd1)]?_0x1304fb[_0x3f6bd1(0xc1)]-_0x1a92e8[_0x3f6bd1(0xc1)]:_0x1a92e8[_0x3f6bd1(0xd1)]-_0x1304fb[_0x3f6bd1(0xd1)]:_0x1a92e8['axis']['localeCompare'](_0x1304fb[_0x3f6bd1(0xd2)]):_0x1a92e8['subUnitId'][_0x3f6bd1(0xa7)](_0x1304fb['subUnitId']):_0x1a92e8['unitId'][_0x3f6bd1(0xa7)](_0x1304fb[_0x3f6bd1(0xf3)]);}function Ae(_0x350ae2){const _0x4673ee=_0xdbfb;if(_0x350ae2['start']>_0x350ae2[_0x4673ee(0xc1)])throw new w('invalid-range',_0x4673ee(0xeb),_0x350ae2['id']);}function je(_0x21d753,_0x50e25a){const _0x5e030a=_0xdbfb;let _0x55a3f3=_0x21d753[_0x5e030a(0xd1)]<=_0x50e25a[_0x5e030a(0xc1)]&&_0x50e25a['start']<=_0x21d753[_0x5e030a(0xc1)],_0x4f24a3=_0x21d753[_0x5e030a(0xd1)]<=_0x50e25a[_0x5e030a(0xd1)]&&_0x50e25a[_0x5e030a(0xc1)]<=_0x21d753['end'],_0x3b9911=_0x50e25a[_0x5e030a(0xd1)]<=_0x21d753['start']&&_0x21d753['end']<=_0x50e25a['end'];return _0x55a3f3&&!_0x4f24a3&&!_0x3b9911;}function N(_0x29b2f4){'@babel/helpers - typeof';const _0x13d369=_0xdbfb;return N=typeof Symbol==_0x13d369(0xf2)&&typeof Symbol[_0x13d369(0xfc)]==_0x13d369(0x127)?function(_0x4ed61f){return typeof _0x4ed61f;}:function(_0x3d032e){const _0xabf3bd=_0x13d369;return _0x3d032e&&typeof Symbol==_0xabf3bd(0xf2)&&_0x3d032e[_0xabf3bd(0x9a)]===Symbol&&_0x3d032e!==Symbol[_0xabf3bd(0x131)]?'symbol':typeof _0x3d032e;},N(_0x29b2f4);}function Me(_0x290fc7,_0x1a8d09){const _0x3aa1ee=_0xdbfb;if(N(_0x290fc7)!=_0x3aa1ee(0xd7)||!_0x290fc7)return _0x290fc7;var _0xfedfb4=_0x290fc7[Symbol[_0x3aa1ee(0x123)]];if(_0xfedfb4!==void 0x0){var _0x3ac7d6=_0xfedfb4[_0x3aa1ee(0xb2)](_0x290fc7,_0x1a8d09||'default');if(N(_0x3ac7d6)!=_0x3aa1ee(0xd7))return _0x3ac7d6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a8d09==='string'?String:Number)(_0x290fc7);}function Ne(_0x323950){const _0x41119d=_0xdbfb;var _0x341705=Me(_0x323950,_0x41119d(0xb4));return N(_0x341705)=='symbol'?_0x341705:_0x341705+'';}function P(_0x3921b0,_0x432d25,_0x57b5b7){const _0x433d85=_0xdbfb;return(_0x432d25=Ne(_0x432d25))in _0x3921b0?Object[_0x433d85(0xa4)](_0x3921b0,_0x432d25,{'value':_0x57b5b7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3921b0[_0x432d25]=_0x57b5b7,_0x3921b0;}var F=class extends _0x564e2b{constructor(..._0x524a88){const _0xd1e8c8=_0xdbfb;super(..._0x524a88),P(this,'_outlines',new Map()),P(this,_0xd1e8c8(0xde),new _0x4956bb()),P(this,_0xd1e8c8(0xa8),this['_change$'][_0xd1e8c8(0x113)]());}[_0x565511(0x10c)](_0x3fd13c,_0xdcaac2){const _0x5afb7e=_0x565511;var _0xc05eca,_0x2ad5e0;return[...(_0xc05eca=(_0x2ad5e0=this['_outlines'][_0x5afb7e(0xc6)](_0x3fd13c))==null?void 0x0:_0x2ad5e0[_0x5afb7e(0xc6)](_0xdcaac2))==null?[]:_0xc05eca];}['getUnitOutlines'](_0x4263de){const _0x4a546d=_0x565511;let _0x59466d=this[_0x4a546d(0xac)][_0x4a546d(0xc6)](_0x4263de),_0x261e67=new Map();return _0x59466d==null||_0x59466d[_0x4a546d(0x10f)]((_0x128d6b,_0x4a8cbf)=>{const _0x2f1922=_0x4a546d;_0x261e67[_0x2f1922(0xbc)](_0x4a8cbf,[..._0x128d6b]);}),_0x261e67;}[_0x565511(0x9f)](_0x54ac45,_0x2a9f58,_0x307ceb){const _0x4e56de=_0x565511;this['_ensureUnitOutlines'](_0x54ac45)[_0x4e56de(0xbc)](_0x2a9f58,[..._0x307ceb]),this[_0x4e56de(0xde)]['next']({'unitId':_0x54ac45,'subUnitId':_0x2a9f58});}[_0x565511(0x121)](_0x501864){const _0x4303c1=_0x565511;this[_0x4303c1(0xac)]['delete'](_0x501864),this[_0x4303c1(0xde)]['next']({'unitId':_0x501864});}[_0x565511(0xd5)](_0x387f91){const _0x4dbee8=_0x565511;let _0x20ffd0=this[_0x4dbee8(0xac)]['get'](_0x387f91),_0xb05e13={};return _0x20ffd0==null||_0x20ffd0[_0x4dbee8(0x10f)]((_0x57d342,_0x3a290c)=>{_0xb05e13[_0x3a290c]={'outlineList':[..._0x57d342]};}),_0xb05e13;}[_0x565511(0xfa)](_0x1e2f57,_0xc902b){const _0x1f9c17=_0x565511;let _0x44f2cc=new Map();Object[_0x1f9c17(0xec)](_0xc902b)['forEach'](([_0x3e9fb8,_0x3f4d58])=>{const _0x422710=_0x1f9c17;var _0x479f1f;_0x44f2cc[_0x422710(0xbc)](_0x3e9fb8,[...(_0x479f1f=_0x3f4d58[_0x422710(0x115)])==null?[]:_0x479f1f]);}),this[_0x1f9c17(0xac)][_0x1f9c17(0xbc)](_0x1e2f57,_0x44f2cc),this['_change$'][_0x1f9c17(0x12c)]({'unitId':_0x1e2f57});}[_0x565511(0xf9)](){const _0x576469=_0x565511;super[_0x576469(0xf9)](),this[_0x576469(0xac)][_0x576469(0xf8)](),this['_change$']['complete']();}['_ensureUnitOutlines'](_0x598825){const _0x1913f6=_0x565511;let _0x2000b9=this[_0x1913f6(0xac)][_0x1913f6(0xc6)](_0x598825);return _0x2000b9||(_0x2000b9=new Map(),this[_0x1913f6(0xac)][_0x1913f6(0xbc)](_0x598825,_0x2000b9)),_0x2000b9;}},I=class extends _0x564e2b{constructor(..._0x57ac66){const _0x388307=_0x565511;super(..._0x57ac66),P(this,_0x388307(0x136),new _0x4956bb()),P(this,_0x388307(0xcc),this['_error$'][_0x388307(0x113)]());}['emit'](_0x3d832f){const _0xa0eb34=_0x565511;this[_0xa0eb34(0x136)][_0xa0eb34(0x12c)](_0x3d832f);}[_0x565511(0xf9)](){const _0x10ab79=_0x565511;super[_0x10ab79(0xf9)](),this[_0x10ab79(0x136)][_0x10ab79(0xad)]();}};const L={'id':_0x565511(0xc2),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2e9b78,_0x4733c1)=>{const _0x4f8f48=_0x565511;let _0x202939=_0x2e9b78[_0x4f8f48(0xc6)](F),_0x7131c=_0x202939['getOutlines'](_0x4733c1[_0x4f8f48(0xf3)],_0x4733c1[_0x4f8f48(0xb1)]);return _0x202939[_0x4f8f48(0x9f)](_0x4733c1['unitId'],_0x4733c1[_0x4f8f48(0xb1)],ve(_0x7131c,_0x4733c1['outline'])),!0x0;}},R={'id':_0x565511(0x133),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x454ca1,_0xe0e702)=>{const _0x409a8c=_0x565511;let _0x929fa3=_0x454ca1['get'](F),_0x19c826=_0x929fa3['getOutlines'](_0xe0e702[_0x409a8c(0xf3)],_0xe0e702[_0x409a8c(0xb1)]);return _0x929fa3['setOutlines'](_0xe0e702[_0x409a8c(0xf3)],_0xe0e702[_0x409a8c(0xb1)],_0x19c826[_0x409a8c(0x12d)](_0x1f3661=>_0x1f3661['id']!==_0xe0e702[_0x409a8c(0x11a)])),!0x0;}};function z(_0x5efcbb,_0x460c27,_0x4c2395){const _0x4e3951=_0x565511;let _0x3be4ba=Fe(_0x5efcbb);return _0x3be4ba?_0x3be4ba[_0x4e3951(0xdb)]({'workbookTypes':[_0x54368d],'worksheetTypes':[_0x214033]},_0x460c27,_0x4c2395):!0x0;}function Pe(_0x11ae3a,_0x1696c9,_0x5428d4){const _0xe94162=_0x565511;var _0x41704d;let _0x3ba507=Ie(_0x11ae3a);return((_0x41704d=_0x3ba507==null?void 0x0:_0x3ba507[_0xe94162(0xee)])==null?_0x2aec80(null):_0x41704d)[_0xe94162(0xb3)](_0xb56627(0x64),_0x3595db(null),_0x36729b(()=>z(_0x11ae3a,_0x1696c9,_0x5428d4)));}function Fe(_0x2d9996){const _0x293acc=_0x565511;if(typeof _0x2d9996[_0x293acc(0xfb)]==_0x293acc(0xf2)&&!_0x2d9996['has'](_0x55ef15))return null;try{return _0x2d9996[_0x293acc(0xc6)](_0x55ef15);}catch{return null;}}function Ie(_0x3d4748){const _0x59cb44=_0x565511;if(typeof _0x3d4748['has']=='function'&&!_0x3d4748[_0x59cb44(0xfb)](_0x54bef8))return null;try{return _0x3d4748['get'](_0x54bef8);}catch{return null;}}const B={'id':_0x565511(0xda),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x1f2f28,_0x45cda0)=>{const _0x5a82c6=_0x565511;var _0x2031e0,_0x1851b4;if(!_0x45cda0)return!0x1;let _0x5005d1=_0x98a6a2(_0x1f2f28['get'](_0x4665c9),_0x45cda0);if(!_0x5005d1)return!0x1;let {unitId:_0x395db4,subUnitId:_0x548265,worksheet:_0x1d77f3}=_0x5005d1;if(!z(_0x1f2f28,_0x395db4,_0x548265))return!0x1;let _0x7ba048=_0x1f2f28[_0x5a82c6(0xc6)](F),_0x52e26c={'id':_0x5a82c6(0xca)+_0x39a559(0x6),'unitId':_0x395db4,'subUnitId':_0x548265,'axis':_0x45cda0['axis'],'start':_0x45cda0['start'],'end':_0x45cda0[_0x5a82c6(0xc1)],'collapsed':!0x1},_0x4c5f52=_0x45cda0['axis']==='row'?_0x1d77f3[_0x5a82c6(0xed)]():_0x1d77f3['getColumnCount'](),_0x4b685c=_0x7ba048[_0x5a82c6(0x10c)](_0x395db4,_0x548265),_0x476497=ye(_0x4b685c,_0x52e26c),_0x18aa27=(_0x2031e0=_0x476497==null?void 0x0:_0x476497[_0x5a82c6(0x119)])==null?[]:_0x2031e0,_0x202467=(_0x1851b4=_0x476497==null?void 0x0:_0x476497[_0x5a82c6(0x134)])==null?_0x52e26c:_0x1851b4,_0x370ca7=O(_0x476497?_0x4b685c['filter'](_0xe7a414=>!_0x18aa27[_0x5a82c6(0xdf)](_0x83d15d=>_0x83d15d['id']===_0xe7a414['id'])):_0x4b685c,_0x202467,{'maxIndex':_0x4c5f52});if(!_0x370ca7[_0x5a82c6(0x11c)]){var _0x129171;return _0x1f2f28['get'](I)[_0x5a82c6(0xc3)]({'reason':(_0x129171=_0x370ca7[_0x5a82c6(0xc8)])==null?_0x5a82c6(0x9b):_0x129171,'commandId':B['id'],'unitId':_0x395db4,'subUnitId':_0x548265,'axis':_0x45cda0[_0x5a82c6(0xd2)],'outlineId':_0x202467['id']}),!0x1;}let _0x17fd76=[..._0x18aa27[_0x5a82c6(0x117)](_0x50b76b=>({'id':R['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outlineId':_0x50b76b['id']}})),{'id':L['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outline':_0x202467}}],_0x17350d=[{'id':R['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outlineId':_0x202467['id']}},..._0x18aa27[_0x5a82c6(0x117)](_0x2d013c=>({'id':L['id'],'params':{'unitId':_0x395db4,'subUnitId':_0x548265,'outline':_0x2d013c}}))];return _0x28033e(_0x17fd76,_0x1f2f28[_0x5a82c6(0xc6)](_0x43bee3))[_0x5a82c6(0xcf)]?(_0x1f2f28[_0x5a82c6(0xc6)](_0x443f20)['pushUndoRedo']({'unitID':_0x395db4,'undoMutations':_0x17350d,'redoMutations':_0x17fd76}),!0x0):!0x1;}},V={'id':'sheet.mutation.clear-dimension-outlines','type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2f7e0d,_0x153d38)=>{const _0x43cc8c=_0x565511;let _0x8c11b=_0x2f7e0d['get'](F),_0x34cc6b=_0x8c11b[_0x43cc8c(0x10c)](_0x153d38['unitId'],_0x153d38[_0x43cc8c(0xb1)]);return _0x8c11b[_0x43cc8c(0x9f)](_0x153d38['unitId'],_0x153d38[_0x43cc8c(0xb1)],be(_0x34cc6b,_0x153d38)),!0x0;}},H={'id':_0x565511(0xb5),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x16741c,_0x5c1317)=>{const _0x833754=_0x565511;if(!_0x5c1317)return!0x1;let _0x1e49cd=_0x98a6a2(_0x16741c['get'](_0x4665c9),_0x5c1317);if(!_0x1e49cd)return!0x1;let {unitId:_0x51ba14,subUnitId:_0x11492a}=_0x1e49cd;if(!z(_0x16741c,_0x51ba14,_0x11492a))return!0x1;let _0x660e51={'unitId':_0x51ba14,'subUnitId':_0x11492a,'axis':_0x5c1317['axis'],'start':_0x5c1317[_0x833754(0xd1)],'end':_0x5c1317[_0x833754(0xc1)]},_0x4aa782=_0x16741c[_0x833754(0xc6)](F)[_0x833754(0x10c)](_0x51ba14,_0x11492a)[_0x833754(0x12d)](_0x39faef=>E(_0x39faef,_0x660e51)&&_0x39faef[_0x833754(0xd1)]>=_0x5c1317[_0x833754(0xd1)]&&_0x39faef[_0x833754(0xc1)]<=_0x5c1317[_0x833754(0xc1)]);if(_0x4aa782[_0x833754(0xe5)]===0x0)return _0x16741c[_0x833754(0xc6)](I)[_0x833754(0xc3)]({'reason':_0x833754(0xe3),'commandId':H['id'],'unitId':_0x51ba14,'subUnitId':_0x11492a,'axis':_0x5c1317[_0x833754(0xd2)]}),!0x1;let _0x35f974=[{'id':V['id'],'params':{..._0x660e51,'removedOutlineIds':_0x4aa782[_0x833754(0x117)](_0x117530=>_0x117530['id'])}}],_0x52fc10=_0x4aa782[_0x833754(0x117)](_0x1101fa=>({'id':L['id'],'params':{'unitId':_0x51ba14,'subUnitId':_0x11492a,'outline':_0x1101fa}}));return _0x28033e(_0x35f974,_0x16741c[_0x833754(0xc6)](_0x43bee3))[_0x833754(0xcf)]?(_0x16741c[_0x833754(0xc6)](_0x443f20)[_0x833754(0xd3)]({'unitID':_0x51ba14,'undoMutations':_0x52fc10,'redoMutations':_0x35f974}),!0x0):!0x1;}},Le={'id':_0x565511(0x104),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x4a6579,_0x32d1f2)=>{const _0x2dac92=_0x565511;if(!_0x32d1f2)return!0x1;let _0x1fb06f=_0x98a6a2(_0x4a6579[_0x2dac92(0xc6)](_0x4665c9),_0x32d1f2);if(!_0x1fb06f)return!0x1;let {unitId:_0x1234aa,subUnitId:_0x2c1e30}=_0x1fb06f;if(!z(_0x4a6579,_0x1234aa,_0x2c1e30))return!0x1;let _0x620474=_0x4a6579[_0x2dac92(0xc6)](F)[_0x2dac92(0x10c)](_0x1234aa,_0x2c1e30)['find'](_0x146472=>_0x146472['id']===_0x32d1f2[_0x2dac92(0x11a)]);if(!_0x620474)return!0x1;let _0x26b96f=[{'id':R['id'],'params':{'unitId':_0x1234aa,'subUnitId':_0x2c1e30,'outlineId':_0x620474['id'],'outline':_0x620474}}],_0x35f3b7=[{'id':L['id'],'params':{'unitId':_0x1234aa,'subUnitId':_0x2c1e30,'outline':_0x620474}}];return _0x28033e(_0x26b96f,_0x4a6579[_0x2dac92(0xc6)](_0x43bee3))[_0x2dac92(0xcf)]?(_0x4a6579[_0x2dac92(0xc6)](_0x443f20)['pushUndoRedo']({'unitID':_0x1234aa,'undoMutations':_0x35f3b7,'redoMutations':_0x26b96f}),!0x0):!0x1;}},U={'id':_0x565511(0xd4),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x2c27ac,_0x2fafc9)=>{const _0x198c01=_0x565511;let _0x2ae94d=_0x2c27ac['get'](F),_0x86e48c=_0x2ae94d[_0x198c01(0x10c)](_0x2fafc9['unitId'],_0x2fafc9['subUnitId']),_0xb96d1c=_0x86e48c['find'](_0x512eef=>_0x512eef['id']===_0x2fafc9[_0x198c01(0x11a)]);return _0xb96d1c&&_0x2ae94d[_0x198c01(0x9f)](_0x2fafc9[_0x198c01(0xf3)],_0x2fafc9[_0x198c01(0xb1)],_0x86e48c[_0x198c01(0x117)](_0x4ba560=>_0x4ba560[_0x198c01(0xf3)]!==_0xb96d1c[_0x198c01(0xf3)]||_0x4ba560[_0x198c01(0xb1)]!==_0xb96d1c['subUnitId']||_0x4ba560[_0x198c01(0xd2)]!==_0xb96d1c['axis']||_0x4ba560['start']!==_0xb96d1c[_0x198c01(0xd1)]||_0x4ba560['end']!==_0xb96d1c[_0x198c01(0xc1)]?_0x4ba560:{..._0x4ba560,'collapsed':_0x2fafc9['collapsed']})),!0x0;}};function Re(_0x3afd82,_0x198a3f,_0x849ea9,_0x23a55c){const _0xf58abb=_0x565511;return _0x3afd82==='row'?{'startRow':_0x198a3f,'endRow':_0x849ea9,'startColumn':0x0,'endColumn':_0x23a55c['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x23a55c[_0xf58abb(0xed)]()-0x1,'startColumn':_0x198a3f,'endColumn':_0x849ea9};}function ze(_0xe2ded7){return _0xe2ded7==='row'?_0x24c04e['id']:_0x1a6e2d['id'];}function Be(_0x528724){const _0x37d119=_0x565511;return _0x528724===_0x37d119(0xf4)?_0x4c050a['id']:_0x46b269['id'];}function Ve(_0x1d6285,_0x314e4e,_0x2a4120,_0x5b54bf){const _0x2187b2=_0x565511;let _0x10a4b1=_0x314e4e?[Re(_0x1d6285[_0x2187b2(0xd2)],_0x1d6285['start'],_0x1d6285[_0x2187b2(0xc1)],_0x2a4120)]:He(_0x1d6285,_0x5b54bf,_0x2a4120),_0x21a4fb=_0x314e4e?ze(_0x1d6285[_0x2187b2(0xd2)]):Be(_0x1d6285[_0x2187b2(0xd2)]);return[{'id':U['id'],'params':{'unitId':_0x1d6285[_0x2187b2(0xf3)],'subUnitId':_0x1d6285[_0x2187b2(0xb1)],'outlineId':_0x1d6285['id'],'outline':_0x1d6285,'collapsed':_0x314e4e}},..._0x10a4b1[_0x2187b2(0x117)](_0xb8c88b=>({'id':_0x21a4fb,'params':{'unitId':_0x1d6285[_0x2187b2(0xf3)],'subUnitId':_0x1d6285[_0x2187b2(0xb1)],'ranges':[_0xb8c88b],'dimensionOutlineId':_0x1d6285['id']}}))];}function He(_0xa4571,_0xedf639,_0x3b5e03){const _0x1f1ff4=_0x565511;let _0x51e5bb=xe(_0xedf639[_0x1f1ff4(0x117)](_0x46a8b0=>Ue(_0x46a8b0,_0xa4571)?{..._0x46a8b0,'collapsed':!0x1}:_0x46a8b0),_0xa4571['unitId'],_0xa4571[_0x1f1ff4(0xb1)],_0xa4571[_0x1f1ff4(0xd2)]);return We({'start':_0xa4571['start'],'end':_0xa4571[_0x1f1ff4(0xc1)]},_0x51e5bb)[_0x1f1ff4(0x117)](_0x194a35=>Re(_0xa4571[_0x1f1ff4(0xd2)],_0x194a35['start'],_0x194a35[_0x1f1ff4(0xc1)],_0x3b5e03));}function Ue(_0x54581d,_0x1b03bf){const _0x19533f=_0x565511;return _0x54581d[_0x19533f(0xf3)]===_0x1b03bf[_0x19533f(0xf3)]&&_0x54581d[_0x19533f(0xb1)]===_0x1b03bf['subUnitId']&&_0x54581d['axis']===_0x1b03bf[_0x19533f(0xd2)]&&_0x54581d[_0x19533f(0xd1)]===_0x1b03bf['start']&&_0x54581d[_0x19533f(0xc1)]===_0x1b03bf[_0x19533f(0xc1)];}function We(_0x5dd0e0,_0x57a6bd){const _0xfaa150=_0x565511;let _0x3a8001=_0x5dd0e0[_0xfaa150(0xd1)],_0x1554c3=[];for(let _0x4783e2 of _0x57a6bd)if(!(_0x4783e2['end']<_0x3a8001||_0x4783e2[_0xfaa150(0xd1)]>_0x5dd0e0[_0xfaa150(0xc1)])&&(_0x4783e2[_0xfaa150(0xd1)]>_0x3a8001&&_0x1554c3[_0xfaa150(0x141)]({'start':_0x3a8001,'end':Math['min'](_0x4783e2['start']-0x1,_0x5dd0e0[_0xfaa150(0xc1)])}),_0x3a8001=Math[_0xfaa150(0x12b)](_0x3a8001,_0x4783e2[_0xfaa150(0xc1)]+0x1),_0x3a8001>_0x5dd0e0[_0xfaa150(0xc1)]))break;return _0x3a8001<=_0x5dd0e0['end']&&_0x1554c3[_0xfaa150(0x141)]({'start':_0x3a8001,'end':_0x5dd0e0[_0xfaa150(0xc1)]}),_0x1554c3;}const Ge={'id':_0x565511(0xe2),'type':_0x4ec594[_0x565511(0xbd)],'handler':(_0x228b37,_0x5172e8)=>{const _0x579125=_0x565511;if(!_0x5172e8)return!0x1;let _0x3e12c3=_0x98a6a2(_0x228b37[_0x579125(0xc6)](_0x4665c9),_0x5172e8);if(!_0x3e12c3)return!0x1;let {unitId:_0x371a08,subUnitId:_0x594d90,worksheet:_0x4133a0}=_0x3e12c3;if(!z(_0x228b37,_0x371a08,_0x594d90))return!0x1;let _0x13e608=_0x228b37[_0x579125(0xc6)](F)['getOutlines'](_0x371a08,_0x594d90),_0x1ebf96=_0x13e608['find'](_0x5abe5d=>_0x5abe5d['id']===_0x5172e8[_0x579125(0x11a)]);if(!_0x1ebf96||_0x1ebf96[_0x579125(0x9e)]===_0x5172e8[_0x579125(0x9e)])return!0x1;let _0x5f2caf=Ve(_0x1ebf96,_0x5172e8['collapsed'],_0x4133a0,_0x13e608),_0x31a5f8=Ve(_0x1ebf96,!_0x5172e8[_0x579125(0x9e)],_0x4133a0,_0x13e608);return _0x28033e(_0x5f2caf,_0x228b37[_0x579125(0xc6)](_0x43bee3))[_0x579125(0xcf)]?(_0x228b37[_0x579125(0xc6)](_0x443f20)[_0x579125(0xd3)]({'unitID':_0x371a08,'undoMutations':_0x31a5f8,'redoMutations':_0x5f2caf}),!0x0):!0x1;}},W={'id':_0x565511(0x100),'type':_0x4ec594[_0x565511(0x110)],'handler':(_0x5eb33d,_0x45156b)=>{const _0x29480f=_0x565511;let _0x408ba6=_0x5eb33d['get'](F),_0x1752da=Ke(_0x408ba6[_0x29480f(0x10c)](_0x45156b[_0x29480f(0xf3)],_0x45156b[_0x29480f(0xb1)]),_0x45156b);return _0x408ba6['setOutlines'](_0x45156b[_0x29480f(0xf3)],_0x45156b[_0x29480f(0xb1)],_0x1752da),!0x0;}};function Ke(_0x587269,_0x30d098){const _0x33c515=_0x565511;switch(_0x30d098[_0x33c515(0xe7)]){case _0x33c515(0xc5):return _0x30d098['restoreOutlines']?qe(_0x587269,_0x30d098):k(_0x587269,_0x30d098);case'delete':return A(_0x587269,_0x30d098);case _0x33c515(0xbe):return j(_0x587269,_0x30d098);}}function qe(_0x3d25dd,_0x3293af){const _0x237046=_0x565511;return[..._0x3d25dd[_0x237046(0x12d)](_0x3e4aee=>_0x3e4aee['unitId']!==_0x3293af['unitId']||_0x3e4aee[_0x237046(0xb1)]!==_0x3293af[_0x237046(0xb1)]||_0x3e4aee[_0x237046(0xd2)]!==_0x3293af[_0x237046(0xd2)]),..._0x3293af[_0x237046(0xf6)]];}const G=_0x565511(0x126);var Je=_0x565511(0x135),Ye=_0x565511(0xdc);const Xe={};function K(_0x38a4b7,_0x5cea5b){return function(_0x592c00,_0xe41e30){_0x5cea5b(_0x592c00,_0xe41e30,_0x38a4b7);};}function q(_0x5e7b28,_0x191a81,_0x33a55b,_0x4a8796){const _0x42f4b6=_0x565511;var _0xcf4fee=arguments['length'],_0x2627d7=_0xcf4fee<0x3?_0x191a81:_0x4a8796===null?_0x4a8796=Object[_0x42f4b6(0xe1)](_0x191a81,_0x33a55b):_0x4a8796,_0xd539ec;if(typeof Reflect==_0x42f4b6(0xd7)&&typeof Reflect['decorate']=='function')_0x2627d7=Reflect[_0x42f4b6(0xea)](_0x5e7b28,_0x191a81,_0x33a55b,_0x4a8796);else{for(var _0x2b3569=_0x5e7b28[_0x42f4b6(0xe5)]-0x1;_0x2b3569>=0x0;_0x2b3569--)(_0xd539ec=_0x5e7b28[_0x2b3569])&&(_0x2627d7=(_0xcf4fee<0x3?_0xd539ec(_0x2627d7):_0xcf4fee>0x3?_0xd539ec(_0x191a81,_0x33a55b,_0x2627d7):_0xd539ec(_0x191a81,_0x33a55b))||_0x2627d7);}return _0xcf4fee>0x3&&_0x2627d7&&Object[_0x42f4b6(0xa4)](_0x191a81,_0x33a55b,_0x2627d7),_0x2627d7;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let Y=class extends _0x564e2b{constructor(_0x463f77,_0x4a1ae9,_0x31d2da,_0x158f39){const _0x317ed3=_0x565511;super(),this['_univerInstanceService']=_0x463f77,this['_sheetInterceptorService']=_0x4a1ae9,this[_0x317ed3(0x120)]=_0x31d2da,this[_0x317ed3(0x13a)]=_0x158f39,this[_0x317ed3(0xf5)]();}[_0x565511(0xf5)](){const _0x2c0a3e=_0x565511;this[_0x2c0a3e(0xfe)](this[_0x2c0a3e(0x138)][_0x2c0a3e(0x105)]({'getMutations':_0x4878ca=>Ze(_0x4878ca,(_0x2167f7,_0x351809)=>this[_0x2c0a3e(0x120)][_0x2c0a3e(0x10c)](_0x2167f7,_0x351809),this[_0x2c0a3e(0x124)](_0x4878ca[_0x2c0a3e(0xcd)]),_0xf4740b=>this[_0x2c0a3e(0x13a)][_0x2c0a3e(0xc3)](_0xf4740b))}));}[_0x565511(0x124)](_0x491e86){const _0x5ef9f3=_0x565511;let _0x1100ab=_0x491e86,_0x470651=_0x1100ab!=null&&_0x1100ab[_0x5ef9f3(0xf3)]?this[_0x5ef9f3(0xef)]['getUniverSheetInstance'](_0x1100ab[_0x5ef9f3(0xf3)]):this[_0x5ef9f3(0xef)][_0x5ef9f3(0x101)](_0x2ab9bd[_0x5ef9f3(0xc9)]);if(!_0x470651)return;let _0x590f79=_0x1100ab!=null&&_0x1100ab[_0x5ef9f3(0xb1)]?_0x470651[_0x5ef9f3(0x125)](_0x1100ab[_0x5ef9f3(0xb1)]):_0x470651['getActiveSheet']();if(_0x590f79)return{'unitId':_0x470651[_0x5ef9f3(0x139)](),'subUnitId':_0x590f79[_0x5ef9f3(0x122)]()};}};Y=q([K(0x0,_0x4665c9),K(0x1,_0x69251c(_0x5d26ad)),K(0x2,_0x69251c(F)),K(0x3,_0x69251c(I))],Y);function Ze(_0xf8eeb2,_0xfd4703,_0x200f73,_0x589789){const _0xb4b58a=_0x565511;let _0x3055a9=$e(_0xf8eeb2,_0x200f73);if(!_0x3055a9)return it();let _0x4eee5d=_0xfd4703(_0x3055a9[_0xb4b58a(0xf3)],_0x3055a9['subUnitId']);if(!_0x4eee5d[_0xb4b58a(0xdf)](_0x2b7112=>_0x2b7112['axis']===_0x3055a9[_0xb4b58a(0xd2)]))return it();Qe(_0x4eee5d,_0x3055a9,_0xf8eeb2['id'],_0x589789);let _0x150435=nt(_0x3055a9,_0x4eee5d);return{'redos':[{'id':W['id'],'params':_0x3055a9}],'undos':[{'id':W['id'],'params':_0x150435}],'preRedos':[],'preUndos':[]};}function Qe(_0x4e980d,_0xd5ecfa,_0x2fbb1b,_0x4e7986){const _0x22ea8a=_0x565511;try{switch(_0xd5ecfa[_0x22ea8a(0xe7)]){case _0x22ea8a(0xc5):k(_0x4e980d,_0xd5ecfa);break;case _0x22ea8a(0xdd):A(_0x4e980d,_0xd5ecfa);break;case _0x22ea8a(0xbe):j(_0x4e980d,_0xd5ecfa);break;}}catch(_0x578342){throw _0x4e7986==null||_0x4e7986({'reason':ge(_0x578342),'commandId':_0x2fbb1b,'unitId':_0xd5ecfa['unitId'],'subUnitId':_0xd5ecfa['subUnitId'],'axis':_0xd5ecfa[_0x22ea8a(0xd2)],'outlineId':_e(_0x578342)}),new _0x21ca2b(_0x578342 instanceof Error?_0x578342[_0x22ea8a(0xf0)]:_0x22ea8a(0x13d));}}function _0xa77e(){const _0x48c56d=['startColumn','decorate','Invalid\x20outline\x20range','entries','getRowCount','permissionPointUpdate$','_univerInstanceService','message','1021141DZowud','function','unitId','row','_initCommandInterceptor','restoreOutlines','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','clear','dispose','deserialize','has','iterator','name','disposeWithMe','_initRegisterCommand','sheet.mutation.transform-dimension-outlines','getCurrentUnitOfType','MOVE_SPLITS_OUTLINE','4jzkoBs','sheet.command.remove-dimension-outline','interceptCommand','sourceEnd','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','maxIndex','invalid-range','offset','172775XuZuWg','getOutlines','onStarting','move-splits-outline','forEach','MUTATION','_resourceManagerService','3278160jjkfVK','asObservable','18sxTARk','outlineList','pluginName','map','depth','mergedOutlines','outlineId','startRow','valid','326019qgJPib','sort','Crossing','_sheetsOutlineModel','removeUnit','getSheetId','toPrimitive','_getCommandScope','getSheetBySheetId','SHEET_OUTLINE_PLUGIN','symbol','fromRange','max-depth','registerCommand','max','next','filter','78luCvgR','children','398258Xwqflc','prototype','crossing','sheet.mutation.remove-dimension-outline','mergedOutline','@univerjs-pro/sheets-outline','_error$','split','_sheetInterceptorService','getUnitId','_sheetsOutlineErrorService','invalid-dimension-outline','destinationIndex','Invalid\x20dimension\x20outline\x20mutation','CROSSING','UNKNOWN','version','push','endColumn','constructor','unknown','count','pop','collapsed','setOutlines','range','_injector','values','endRow','defineProperty','_configService','min','localeCompare','change$','ROW','column','preUndos','_outlines','complete','packageName','toRange','20YDGtia','subUnitId','call','pipe','string','sheet.command.clear-dimension-outlines','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','sourceStart','index','undos','sheets-outline.config','includes','set','COMMAND','move','59453hUCaHu','718564rYQhkL','end','sheet.mutation.add-dimension-outline','emit','add','insert','get','Invalid\x20dimension\x20outline\x20move\x20source\x20range','reason','UNIVER_SHEET','dimension-outline-','8Jsiuxh','error$','params','MAX_DEPTH','result','_config','start','axis','pushUndoRedo','sheet.mutation.set-dimension-outline-collapsed','serialize','out-of-bounds','object','_initResource','from','sheet.command.add-dimension-outline','permissionCheckWithoutRange','1.0.0-alpha.5','delete','_change$','some','78qbMcVc','getOwnPropertyDescriptor','sheet.command.set-dimension-outline-collapsed','clear-range-not-contain-outline','redos','length','COLUMN','type','24lXLMix'];_0xa77e=function(){return _0x48c56d;};return _0xa77e();}function $e(_0x42af84,_0x3687a5){const _0x5cc8fe=_0x565511;switch(_0x42af84['id']){case _0x4ca3ad['id']:return et(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xf4),_0x3687a5);case _0x57b19f['id']:return et(_0x42af84['params'],'column',_0x3687a5);case _0x3c1f56['id']:return X(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xf4),_0x3687a5);case _0x33ea80['id']:return X(_0x42af84['params'],_0x5cc8fe(0xaa),_0x3687a5);case _0x5aa133['id']:return tt(_0x42af84['params'],_0x5cc8fe(0xf4),_0x3687a5);case _0xa17699['id']:return tt(_0x42af84[_0x5cc8fe(0xcd)],_0x5cc8fe(0xaa),_0x3687a5);default:return null;}}function et(_0x2a6d39,_0x3529d3,_0x439637){const _0x15293e=_0x565511;let _0x13096c=Z(_0x2a6d39,_0x439637);if(!(_0x2a6d39!=null&&_0x2a6d39['range'])||!_0x13096c)return null;let _0x2bbf91=_0x3529d3===_0x15293e(0xf4)?_0x2a6d39[_0x15293e(0xa0)][_0x15293e(0x11b)]:_0x2a6d39['range'][_0x15293e(0xe9)],_0x227519=_0x3529d3===_0x15293e(0xf4)?_0x2a6d39['range']['endRow']:_0x2a6d39[_0x15293e(0xa0)][_0x15293e(0x142)];return{..._0x13096c,'axis':_0x3529d3,'type':'insert','index':_0x2bbf91,'count':_0x227519-_0x2bbf91+0x1};}function X(_0x65cf86,_0x172af3,_0x90dca7){const _0x169cd3=_0x565511;let _0x1e8ae7=Z(_0x65cf86,_0x90dca7);if(!(_0x65cf86!=null&&_0x65cf86[_0x169cd3(0xa0)])||!_0x1e8ae7)return null;let _0x2258fb=_0x172af3==='row'?_0x65cf86[_0x169cd3(0xa0)][_0x169cd3(0x11b)]:_0x65cf86['range'][_0x169cd3(0xe9)],_0x324ef9=_0x172af3==='row'?_0x65cf86[_0x169cd3(0xa0)]['endRow']:_0x65cf86[_0x169cd3(0xa0)][_0x169cd3(0x142)];return{..._0x1e8ae7,'axis':_0x172af3,'type':_0x169cd3(0xdd),'start':_0x2258fb,'end':_0x324ef9};}function tt(_0x4d4d3c,_0x489ada,_0x11073d){const _0x11fb27=_0x565511;let _0x2aae60=Z(_0x4d4d3c,_0x11073d);if(!(_0x4d4d3c!=null&&_0x4d4d3c[_0x11fb27(0x128)])||!_0x4d4d3c[_0x11fb27(0xaf)]||!_0x2aae60)return null;let _0x4734cb=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0x11b)]:_0x4d4d3c[_0x11fb27(0x128)]['startColumn'],_0x386ef7=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0xa3)]:_0x4d4d3c[_0x11fb27(0x128)][_0x11fb27(0x142)],_0x4db1db=_0x489ada===_0x11fb27(0xf4)?_0x4d4d3c[_0x11fb27(0xaf)]['startRow']:_0x4d4d3c[_0x11fb27(0xaf)]['startColumn'];return{..._0x2aae60,'axis':_0x489ada,'type':_0x11fb27(0xbe),'sourceStart':_0x4734cb,'sourceEnd':_0x386ef7,'destinationIndex':_0x4db1db};}function nt(_0x4b1d70,_0x343224){const _0x59a2da=_0x565511;switch(_0x4b1d70['type']){case'insert':return{'unitId':_0x4b1d70[_0x59a2da(0xf3)],'subUnitId':_0x4b1d70['subUnitId'],'axis':_0x4b1d70[_0x59a2da(0xd2)],'type':_0x59a2da(0xdd),'start':_0x4b1d70[_0x59a2da(0xb8)],'end':_0x4b1d70[_0x59a2da(0xb8)]+_0x4b1d70[_0x59a2da(0x9c)]-0x1};case _0x59a2da(0xdd):return{'unitId':_0x4b1d70[_0x59a2da(0xf3)],'subUnitId':_0x4b1d70[_0x59a2da(0xb1)],'axis':_0x4b1d70[_0x59a2da(0xd2)],'type':_0x59a2da(0xc5),'index':_0x4b1d70[_0x59a2da(0xd1)],'count':_0x4b1d70[_0x59a2da(0xc1)]-_0x4b1d70[_0x59a2da(0xd1)]+0x1,'restoreOutlines':_0x343224['filter'](_0x588a9f=>_0x588a9f[_0x59a2da(0xf3)]===_0x4b1d70['unitId']&&_0x588a9f[_0x59a2da(0xb1)]===_0x4b1d70[_0x59a2da(0xb1)]&&_0x588a9f[_0x59a2da(0xd2)]===_0x4b1d70['axis'])};case _0x59a2da(0xbe):return rt(_0x4b1d70);}}function rt(_0x443185){const _0x34dd82=_0x565511;let _0x35bb2f=_0x443185[_0x34dd82(0x106)]-_0x443185[_0x34dd82(0xb7)]+0x1;return _0x443185['destinationIndex']>=_0x443185['sourceStart']&&_0x443185[_0x34dd82(0x13c)]<=_0x443185['sourceEnd']+0x1?{..._0x443185}:_0x443185[_0x34dd82(0x13c)]>_0x443185[_0x34dd82(0x106)]+0x1?{..._0x443185,'sourceStart':_0x443185[_0x34dd82(0x13c)]-_0x35bb2f,'sourceEnd':_0x443185[_0x34dd82(0x13c)]-0x1,'destinationIndex':_0x443185[_0x34dd82(0xb7)]}:{..._0x443185,'sourceStart':_0x443185[_0x34dd82(0x13c)],'sourceEnd':_0x443185[_0x34dd82(0x13c)]+_0x35bb2f-0x1,'destinationIndex':_0x443185['sourceEnd']+0x1};}function Z(_0x25642c,_0x91eab7){const _0x468e1b=_0x565511;var _0x2e6c6a,_0x1dd3d8;let _0x1445d9=(_0x2e6c6a=_0x25642c==null?void 0x0:_0x25642c[_0x468e1b(0xf3)])==null?_0x91eab7==null?void 0x0:_0x91eab7[_0x468e1b(0xf3)]:_0x2e6c6a,_0x47ca7d=(_0x1dd3d8=_0x25642c==null?void 0x0:_0x25642c[_0x468e1b(0xb1)])==null?_0x91eab7==null?void 0x0:_0x91eab7[_0x468e1b(0xb1)]:_0x1dd3d8;return _0x1445d9&&_0x47ca7d?{'unitId':_0x1445d9,'subUnitId':_0x47ca7d}:null;}function it(){const _0x52b3c7=_0x565511;var _0x3b46da,_0x379d23;return{'redos':[...J[_0x52b3c7(0xe4)]],'undos':[...J[_0x52b3c7(0xb9)]],'preRedos':[...(_0x3b46da=J['preRedos'])==null?[]:_0x3b46da],'preUndos':[...(_0x379d23=J[_0x52b3c7(0xab)])==null?[]:_0x379d23]};}let Q=class extends _0x564e2b{constructor(_0x421ee3,_0x493ade){const _0x2481c8=_0x565511;super(),this[_0x2481c8(0x111)]=_0x421ee3,this[_0x2481c8(0x120)]=_0x493ade,this[_0x2481c8(0xd8)]();}[_0x565511(0xd8)](){const _0x39113a=_0x565511;this[_0x39113a(0xfe)](this['_resourceManagerService']['registerPluginResource']({'pluginName':G,'businesses':[_0x2ab9bd['UNIVER_SHEET']],'toJson':_0x21bfd2=>JSON['stringify'](this[_0x39113a(0x120)][_0x39113a(0xd5)](_0x21bfd2)),'parseJson':_0x455757=>JSON['parse'](_0x455757),'onLoad':(_0x3d045b,_0x518665)=>this[_0x39113a(0x120)]['deserialize'](_0x3d045b,_0x518665),'onUnLoad':_0x3cf693=>this[_0x39113a(0x120)][_0x39113a(0x121)](_0x3cf693)}));}};Q=q([K(0x0,_0x1b2d4c),K(0x1,_0x69251c(F))],Q);function _0xdbfb(_0x2a1d06,_0x2562f4){_0x2a1d06=_0x2a1d06-0x9a;const _0xa77e03=_0xa77e();let _0xdbfb03=_0xa77e03[_0x2a1d06];return _0xdbfb03;}let $=class extends _0x35d18e{constructor(_0x7abf78=Xe,_0x4f86f9,_0x41bea6,_0x2e946a){const _0x3ae69a=_0x565511;super(),this[_0x3ae69a(0xd0)]=_0x7abf78,this[_0x3ae69a(0xa1)]=_0x4f86f9,this['_commandService']=_0x41bea6,this[_0x3ae69a(0xa5)]=_0x2e946a;let {..._0x40805b}=_0x34c955({},Xe,this[_0x3ae69a(0xd0)]);this[_0x3ae69a(0xa5)]['setConfig'](_0x3ae69a(0xba),_0x40805b);}[_0x565511(0x10d)](){const _0x5e81a9=_0x565511;this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([F]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([I]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([Q]),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc4)]([Y]),this[_0x5e81a9(0xff)](),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](F),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](I),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](Q),this[_0x5e81a9(0xa1)][_0x5e81a9(0xc6)](Y);}[_0x565511(0xff)](){[B,Le,Ge,H]['forEach'](_0x337d45=>{const _0x5074d1=_0xdbfb;this[_0x5074d1(0xfe)](this['_commandService'][_0x5074d1(0x12a)](_0x337d45));}),[L,R,U,V,W]['forEach'](_0x3184fc=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x3184fc));});}};P($,_0x565511(0x116),G),P($,_0x565511(0xae),Je),P($,_0x565511(0x140),Ye),P($,_0x565511(0xe7),_0x2ab9bd[_0x565511(0xc9)]),$=q([_0x17a12a(_0x579cb4),K(0x1,_0x69251c(_0x1291f3)),K(0x2,_0x43bee3),K(0x3,_0x366292)],$);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};
1
+ const _0x43d830=_0x1f7d;(function(_0x21530a,_0x2723d1){const _0x245331=_0x1f7d,_0x39ff8b=_0x21530a();while(!![]){try{const _0x4f8604=parseInt(_0x245331(0xa6))/0x1*(parseInt(_0x245331(0xb4))/0x2)+-parseInt(_0x245331(0xc0))/0x3+parseInt(_0x245331(0x85))/0x4*(parseInt(_0x245331(0xb7))/0x5)+parseInt(_0x245331(0x92))/0x6*(parseInt(_0x245331(0xef))/0x7)+-parseInt(_0x245331(0xd2))/0x8*(parseInt(_0x245331(0xec))/0x9)+parseInt(_0x245331(0xbc))/0xa*(parseInt(_0x245331(0xd9))/0xb)+-parseInt(_0x245331(0xeb))/0xc*(-parseInt(_0x245331(0xe7))/0xd);if(_0x4f8604===_0x2723d1)break;else _0x39ff8b['push'](_0x39ff8b['shift']());}catch(_0x3a75e0){_0x39ff8b['push'](_0x39ff8b['shift']());}}}(_0x2cc0,0x43e7a));import{CommandType as _0x4917cb,CustomCommandExecutionError as _0x26197c,DependentOn as _0x3376b6,Disposable as _0x363275,ICommandService as _0x5197b6,IConfigService as _0x272c5c,IPermissionService as _0x4334b6,IResourceManagerService as _0x2a06e7,IUndoRedoService as _0x1a91cd,IUniverInstanceService as _0x46af38,Inject as _0x4c32b4,Injector as _0x3e9c64,Plugin as _0x29453c,UniverInstanceType as _0x1895a4,generateRandomId as _0xdaaa5f,merge as _0x4e0cea,sequenceExecute as _0x589c0f}from'@univerjs/core';import{InsertColCommand as _0x17a83e,InsertRowCommand as _0x4787aa,MoveColsCommand as _0x18f6fb,MoveRowsCommand as _0x16d467,RemoveColCommand as _0x43f874,RemoveRowCommand as _0x422ebf,SetColHiddenMutation as _0x345420,SetColVisibleMutation as _0x412fd1,SetRowHiddenMutation as _0x26c97f,SetRowVisibleMutation as _0x322b08,SheetInterceptorService as _0x5e080d,SheetPermissionCheckController as _0x70974,WorkbookViewPermission as _0x15be24,WorksheetViewPermission as _0x329b61,getSheetCommandTarget as _0x4243ec}from'@univerjs/sheets';import{Subject as _0x2338a9,of as _0x1bf83b}from'rxjs';import{debounceTime as _0x3e40a9,map as _0x527b9e,startWith as _0x55f231}from'rxjs/operators';import{UniverLicensePlugin as _0x3fe587}from'@univerjs-pro/license';let me=function(_0x5f08a8){const _0xcd5ab9=_0x1f7d;return _0x5f08a8['ROW']='row',_0x5f08a8[_0xcd5ab9(0xae)]='column',_0x5f08a8;}({}),he=function(_0x2224f6){const _0x4b6ea7=_0x1f7d;return _0x2224f6[_0x4b6ea7(0xa5)]=_0x4b6ea7(0xdf),_0x2224f6[_0x4b6ea7(0xdd)]=_0x4b6ea7(0xd3),_0x2224f6['CROSSING']=_0x4b6ea7(0x107),_0x2224f6[_0x4b6ea7(0x113)]=_0x4b6ea7(0xc5),_0x2224f6[_0x4b6ea7(0xc3)]='move-splits-outline',_0x2224f6[_0x4b6ea7(0xba)]=_0x4b6ea7(0xf5),_0x2224f6[_0x4b6ea7(0x77)]=_0x4b6ea7(0xe3),_0x2224f6;}({});var w=class extends Error{constructor(_0xedd70,_0x4e1693,_0x366c12){const _0x180dd6=_0x1f7d;super(_0x4e1693),this[_0x180dd6(0xd8)]=_0xedd70,this[_0x180dd6(0x9c)]=_0x366c12,this['name']='DimensionOutlineError';}};function ge(_0x12875f){const _0x404961=_0x1f7d;return _0x12875f instanceof w?_0x12875f[_0x404961(0xd8)]:_0x12875f instanceof Error?_0x12875f['message'][_0x404961(0xbf)](_0x404961(0xdb))?_0x404961(0xf0):_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)](_0x404961(0xf8))?'max-depth':_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)]('Crossing')?'crossing':_0x12875f[_0x404961(0x8d)][_0x404961(0xbf)](_0x404961(0x99))?_0x404961(0xdf):_0x404961(0xe3):_0x404961(0xe3);}function _e(_0x431375){const _0x1419a4=_0x1f7d;return _0x431375 instanceof w?_0x431375[_0x1419a4(0x9c)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x2e9b91,_0x92d9dc){const _0x1a1072=_0x1f7d;return _0x2e9b91[_0x1a1072(0x11d)]===_0x92d9dc['unitId']&&_0x2e9b91[_0x1a1072(0x10d)]===_0x92d9dc['subUnitId']&&_0x2e9b91[_0x1a1072(0xea)]===_0x92d9dc[_0x1a1072(0xea)];}function D(_0x59ff47,_0x2dcce6={}){const _0x5aa004=_0x1f7d;var _0x1ed19f;let _0x946c37=(_0x1ed19f=_0x2dcce6[_0x5aa004(0xfa)])==null?0x8:_0x1ed19f,_0x187e41=new Map();for(let _0x252cb5 of _0x59ff47){let _0x4a9fe3=_0x252cb5[_0x5aa004(0x11d)]+':'+_0x252cb5['subUnitId']+':'+_0x252cb5[_0x5aa004(0xea)],_0x5325dc=_0x187e41[_0x5aa004(0x10f)](_0x4a9fe3);_0x5325dc?_0x5325dc[_0x5aa004(0x7e)](_0x252cb5):_0x187e41[_0x5aa004(0xee)](_0x4a9fe3,[_0x252cb5]);}let _0xca4197=[];for(let _0x5d66dc of _0x187e41[_0x5aa004(0x8e)]()){let _0x64321d=[..._0x5d66dc][_0x5aa004(0xcc)](ke),_0x59ccda=[];for(let _0x494308 of _0x64321d){for(Ae(_0x494308);_0x59ccda[_0x5aa004(0x7c)]>0x0&&_0x494308[_0x5aa004(0x108)]>_0x59ccda[_0x59ccda['length']-0x1][_0x5aa004(0x110)];)_0x59ccda[_0x5aa004(0x91)]();let _0x3b13d9=_0x59ccda[_0x59ccda[_0x5aa004(0x7c)]-0x1];if(_0x3b13d9&&_0x494308[_0x5aa004(0x110)]>_0x3b13d9[_0x5aa004(0x110)])throw new w(_0x5aa004(0x107),_0x5aa004(0xd4),_0x494308['id']);let _0x2e48af=_0x3b13d9?_0x3b13d9['depth']+0x1:0x1;if(_0x2e48af>_0x946c37)throw new w(_0x5aa004(0xc5),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x946c37,_0x494308['id']);let _0x59d111={..._0x494308,'depth':_0x2e48af,'parentId':_0x3b13d9==null?void 0x0:_0x3b13d9['id'],'anchor':_0x494308[_0x5aa004(0x110)],'children':[]};_0x3b13d9?_0x3b13d9[_0x5aa004(0x11f)][_0x5aa004(0x7e)](_0x59d111):_0xca4197[_0x5aa004(0x7e)](_0x59d111),_0x59ccda[_0x5aa004(0x7e)](_0x59d111);}}return _0xca4197;}function O(_0x4ea5c3,_0xa63587,_0x4a06c2={}){const _0x156c90=_0x1f7d;if(_0xa63587[_0x156c90(0x108)]<0x0||_0xa63587[_0x156c90(0x108)]>_0xa63587['end'])return{'valid':!0x1,'reason':_0x156c90(0xdf)};if(_0x4a06c2[_0x156c90(0xa1)]!=null&&_0xa63587[_0x156c90(0x110)]>=_0x4a06c2[_0x156c90(0xa1)])return{'valid':!0x1,'reason':_0x156c90(0xd3)};let _0x8b6d50=_0x4ea5c3[_0x156c90(0x93)](_0x179c5a=>E(_0x179c5a,_0xa63587));for(let _0x316e4a of _0x8b6d50)if(je(_0x316e4a,_0xa63587))return{'valid':!0x1,'reason':_0x156c90(0x107)};try{D([..._0x4ea5c3,_0xa63587],_0x4a06c2);}catch(_0x5f408e){let _0x4441bf=ge(_0x5f408e);return _0x4441bf===_0x156c90(0xc5)?{'valid':!0x1,'reason':_0x156c90(0xc5)}:_0x4441bf===_0x156c90(0xdf)?{'valid':!0x1,'reason':_0x156c90(0xdf)}:{'valid':!0x1,'reason':_0x156c90(0x107)};}return{'valid':!0x0};}function ve(_0x3ac19a,_0x238036,_0x48adab={}){const _0x28c6a0=_0x1f7d;let _0x5b32f7=O(_0x3ac19a,_0x238036,_0x48adab);if(!_0x5b32f7['valid']){var _0x5efe57;throw Error((_0x5efe57=_0x5b32f7[_0x28c6a0(0xd8)])==null?_0x28c6a0(0xd5):_0x5efe57);}return[..._0x3ac19a,_0x238036];}function ye(_0x47a249,_0x140408){const _0x37a9e4=_0x1f7d;let _0x14302f=_0x140408[_0x37a9e4(0x108)],_0x3730f5=_0x140408['end'],_0x2df345=[],_0x401c7f=!0x0;for(;_0x401c7f;){_0x401c7f=!0x1;for(let _0x4e2a3f of _0x47a249)_0x2df345[_0x37a9e4(0xbf)](_0x4e2a3f)||!E(_0x4e2a3f,_0x140408)||!De(_0x4e2a3f[_0x37a9e4(0x108)],_0x4e2a3f[_0x37a9e4(0x110)],_0x14302f,_0x3730f5)||(_0x2df345[_0x37a9e4(0x7e)](_0x4e2a3f),_0x14302f=Math[_0x37a9e4(0xe8)](_0x14302f,_0x4e2a3f['start']),_0x3730f5=Math[_0x37a9e4(0xb3)](_0x3730f5,_0x4e2a3f[_0x37a9e4(0x110)]),_0x401c7f=!0x0);}if(_0x2df345[_0x37a9e4(0x7c)]===0x0)return null;let [_0x38d729]=[..._0x2df345][_0x37a9e4(0xcc)](ke);return{'mergedOutline':{..._0x38d729,'start':_0x14302f,'end':_0x3730f5},'mergedOutlines':_0x2df345};}function be(_0xad685d,_0x3507f1){const _0x2e76e0=_0x1f7d;return _0xad685d[_0x2e76e0(0x93)](_0xf5487a=>E(_0xf5487a,_0x3507f1)?!(_0xf5487a[_0x2e76e0(0x108)]>=_0x3507f1['start']&&_0xf5487a[_0x2e76e0(0x110)]<=_0x3507f1['end']):!0x0);}function xe(_0x33bab9,_0x41010d,_0x5a076b,_0x44ff11){const _0x51ed67=_0x1f7d;return Se(_0x33bab9[_0x51ed67(0x93)](_0x30d7f5=>_0x30d7f5['unitId']===_0x41010d&&_0x30d7f5['subUnitId']===_0x5a076b&&_0x30d7f5['axis']===_0x44ff11&&_0x30d7f5['collapsed'])[_0x51ed67(0xc2)](_0x7d2b3c=>({'start':_0x7d2b3c[_0x51ed67(0x108)],'end':_0x7d2b3c[_0x51ed67(0x110)]})));}function Se(_0x389d8d){const _0x4a4444=_0x1f7d;if(_0x389d8d[_0x4a4444(0x7c)]===0x0)return[];let _0x3b298d=[..._0x389d8d][_0x4a4444(0xcc)]((_0x5ad559,_0xd3e3dc)=>_0x5ad559[_0x4a4444(0x108)]-_0xd3e3dc['start']||_0x5ad559[_0x4a4444(0x110)]-_0xd3e3dc['end']),_0x25ee93=[];for(let _0x5b2109 of _0x3b298d){let _0x39980a=_0x25ee93[_0x25ee93[_0x4a4444(0x7c)]-0x1];!_0x39980a||_0x5b2109[_0x4a4444(0x108)]>_0x39980a[_0x4a4444(0x110)]+0x1?_0x25ee93['push']({..._0x5b2109}):_0x39980a[_0x4a4444(0x110)]=Math[_0x4a4444(0xb3)](_0x39980a['end'],_0x5b2109['end']);}return _0x25ee93;}function k(_0x2cc203,_0x462b49){const _0x5c545d=_0x1f7d;return _0x462b49[_0x5c545d(0x119)]<=0x0?_0x2cc203:M(_0x2cc203[_0x5c545d(0xc2)](_0x35b448=>E(_0x35b448,_0x462b49)?_0x462b49[_0x5c545d(0xbb)]<=_0x35b448[_0x5c545d(0x108)]?{..._0x35b448,'start':_0x35b448[_0x5c545d(0x108)]+_0x462b49[_0x5c545d(0x119)],'end':_0x35b448[_0x5c545d(0x110)]+_0x462b49[_0x5c545d(0x119)]}:_0x35b448[_0x5c545d(0x108)]<_0x462b49[_0x5c545d(0xbb)]&&_0x462b49[_0x5c545d(0xbb)]<=_0x35b448['end']?{..._0x35b448,'end':_0x35b448['end']+_0x462b49[_0x5c545d(0x119)]}:_0x35b448:_0x35b448));}function A(_0x234a6d,_0x53f027){const _0xa16276=_0x1f7d;if(_0x53f027[_0xa16276(0x108)]>_0x53f027[_0xa16276(0x110)])return _0x234a6d;let _0x47e88b=_0x53f027[_0xa16276(0x110)]-_0x53f027[_0xa16276(0x108)]+0x1,_0x5157b6=[];for(let _0x36b7fa of _0x234a6d){if(!E(_0x36b7fa,_0x53f027)){_0x5157b6[_0xa16276(0x7e)](_0x36b7fa);continue;}if(_0x36b7fa[_0xa16276(0x110)]<_0x53f027[_0xa16276(0x108)]){_0x5157b6['push'](_0x36b7fa);continue;}if(_0x36b7fa[_0xa16276(0x108)]>_0x53f027[_0xa16276(0x110)]){_0x5157b6[_0xa16276(0x7e)]({..._0x36b7fa,'start':_0x36b7fa[_0xa16276(0x108)]-_0x47e88b,'end':_0x36b7fa[_0xa16276(0x110)]-_0x47e88b});continue;}let _0x19b6de=Math[_0xa16276(0xb3)](_0x36b7fa['start'],_0x53f027[_0xa16276(0x108)]),_0x3b66a8=Math[_0xa16276(0xe8)](_0x36b7fa[_0xa16276(0x110)],_0x53f027[_0xa16276(0x110)]),_0x37f6f4=Math[_0xa16276(0xb3)](0x0,_0x3b66a8-_0x19b6de+0x1),_0x3200d8=_0x36b7fa[_0xa16276(0x110)]-_0x36b7fa[_0xa16276(0x108)]+0x1-_0x37f6f4;if(_0x3200d8<=0x0)continue;let _0x56ee2d=_0x36b7fa['start']<_0x53f027[_0xa16276(0x108)]?_0x36b7fa[_0xa16276(0x108)]:_0x53f027['start'];_0x5157b6[_0xa16276(0x7e)]({..._0x36b7fa,'start':_0x56ee2d,'end':_0x56ee2d+_0x3200d8-0x1});}return M(_0x5157b6);}function j(_0x701205,_0x28ccb1){const _0x2dff4c=_0x1f7d;if(_0x28ccb1[_0x2dff4c(0x7d)]>_0x28ccb1[_0x2dff4c(0x117)])return _0x701205;let _0x4285d3=[];for(let _0x98090b of _0x701205){if(!E(_0x98090b,_0x28ccb1)){_0x4285d3['push'](_0x98090b);continue;}let _0x3de582=Ce(_0x98090b,_0x28ccb1);if(_0x3de582[_0x2dff4c(0x120)]==='split')throw new w('move-splits-outline',_0x2dff4c(0x102)+_0x98090b['id'],_0x98090b['id']);_0x4285d3[_0x2dff4c(0x7e)](_0x3de582[_0x2dff4c(0x114)]);}return M(_0x4285d3);}function Ce(_0x2f1a22,_0x5e693e){const _0x331715=_0x1f7d;let _0x39ea0e=we(_0x5e693e[_0x331715(0x7d)],_0x5e693e[_0x331715(0x117)]+0x1,_0x5e693e['destinationIndex']),_0x32113e=[],_0xc5fc3f={'start':_0x2f1a22[_0x331715(0x108)],'end':_0x2f1a22[_0x331715(0x110)]+0x1};for(let _0x5d02cc of _0x39ea0e){let _0x2c69f2=Te(_0xc5fc3f,_0x5d02cc[_0x331715(0x99)]);_0x2c69f2&&_0x32113e['push']({'start':_0x2c69f2[_0x331715(0x108)]+_0x5d02cc[_0x331715(0x122)],'end':_0x2c69f2[_0x331715(0x110)]+_0x5d02cc['offset']});}let _0x16313c=Ee(_0x32113e);return _0x16313c[_0x331715(0x7c)]===0x1?{'type':'ok','outline':{..._0x2f1a22,'start':_0x16313c[0x0][_0x331715(0x108)],'end':_0x16313c[0x0][_0x331715(0x110)]-0x1}}:{'type':'split','outline':_0x2f1a22,'ranges':_0x16313c};}function we(_0x54aa18,_0x9fc482,_0x15bc77){const _0xf643a3=_0x1f7d;let _0x1d6fd4=_0x9fc482-_0x54aa18;if(_0x1d6fd4<=0x0)throw Error(_0xf643a3(0xc8));return _0x15bc77>=_0x54aa18&&_0x15bc77<=_0x9fc482?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x15bc77<_0x54aa18?[{'range':{'start':0x0,'end':_0x15bc77},'offset':0x0},{'range':{'start':_0x15bc77,'end':_0x54aa18},'offset':_0x1d6fd4},{'range':{'start':_0x54aa18,'end':_0x9fc482},'offset':_0x15bc77-_0x54aa18},{'range':{'start':_0x9fc482,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x54aa18},'offset':0x0},{'range':{'start':_0x54aa18,'end':_0x9fc482},'offset':_0x15bc77-_0x9fc482},{'range':{'start':_0x9fc482,'end':_0x15bc77},'offset':-_0x1d6fd4},{'range':{'start':_0x15bc77,'end':T},'offset':0x0}];}function Te(_0x170385,_0x1cc566){const _0x2aa1af=_0x1f7d;let _0x4de995=Math[_0x2aa1af(0xb3)](_0x170385[_0x2aa1af(0x108)],_0x1cc566[_0x2aa1af(0x108)]),_0x2c9c88=Math[_0x2aa1af(0xe8)](_0x170385['end'],_0x1cc566[_0x2aa1af(0x110)]);return _0x4de995>=_0x2c9c88?null:{'start':_0x4de995,'end':_0x2c9c88};}function Ee(_0x5d515a){const _0x59b6bc=_0x1f7d;if(_0x5d515a[_0x59b6bc(0x7c)]===0x0)return[];let _0x1a3bdb=[..._0x5d515a][_0x59b6bc(0xcc)]((_0x359b69,_0x522978)=>_0x359b69[_0x59b6bc(0x108)]-_0x522978[_0x59b6bc(0x108)]||_0x359b69[_0x59b6bc(0x110)]-_0x522978['end']),_0x4b0e27=[];for(let _0x20506a of _0x1a3bdb){let _0x7b066a=_0x4b0e27[_0x4b0e27[_0x59b6bc(0x7c)]-0x1];!_0x7b066a||_0x20506a[_0x59b6bc(0x108)]>_0x7b066a[_0x59b6bc(0x110)]?_0x4b0e27[_0x59b6bc(0x7e)]({..._0x20506a}):_0x7b066a[_0x59b6bc(0x110)]=Math[_0x59b6bc(0xb3)](_0x7b066a['end'],_0x20506a['end']);}return _0x4b0e27;}function De(_0x4c70c6,_0xd75bfd,_0x28fa1e,_0x24c884){return _0xd75bfd+0x1===_0x28fa1e||_0x24c884+0x1===_0x4c70c6;}function M(_0x1081ab){let _0x49a755=Oe(_0x1081ab);return D(_0x49a755),_0x49a755;}function Oe(_0x28c438){const _0xd7142f=_0x1f7d;let _0x2db285=new Map();for(let _0x325692 of _0x28c438){let _0x1d1794=[_0x325692[_0xd7142f(0x11d)],_0x325692[_0xd7142f(0x10d)],_0x325692[_0xd7142f(0xea)],_0x325692[_0xd7142f(0x108)],_0x325692[_0xd7142f(0x110)]][_0xd7142f(0xc9)](':'),_0x31fb67=_0x2db285[_0xd7142f(0x10f)](_0x1d1794);if(!_0x31fb67){_0x2db285[_0xd7142f(0xee)](_0x1d1794,_0x325692);continue;}_0x2db285[_0xd7142f(0xee)](_0x1d1794,{..._0x31fb67,'collapsed':_0x31fb67[_0xd7142f(0x11b)]||_0x325692['collapsed']});}return Array[_0xd7142f(0xaf)](_0x2db285[_0xd7142f(0x8e)]());}function ke(_0x27b002,_0x2eb022){const _0x10ddc3=_0x1f7d;return _0x27b002[_0x10ddc3(0x11d)]===_0x2eb022[_0x10ddc3(0x11d)]?_0x27b002[_0x10ddc3(0x10d)]===_0x2eb022[_0x10ddc3(0x10d)]?_0x27b002[_0x10ddc3(0xea)]===_0x2eb022[_0x10ddc3(0xea)]?_0x27b002['start']===_0x2eb022['start']?_0x2eb022['end']-_0x27b002[_0x10ddc3(0x110)]:_0x27b002[_0x10ddc3(0x108)]-_0x2eb022[_0x10ddc3(0x108)]:_0x27b002[_0x10ddc3(0xea)]['localeCompare'](_0x2eb022[_0x10ddc3(0xea)]):_0x27b002['subUnitId']['localeCompare'](_0x2eb022[_0x10ddc3(0x10d)]):_0x27b002[_0x10ddc3(0x11d)][_0x10ddc3(0x90)](_0x2eb022[_0x10ddc3(0x11d)]);}function Ae(_0x305323){const _0x44a445=_0x1f7d;if(_0x305323[_0x44a445(0x108)]>_0x305323['end'])throw new w(_0x44a445(0xdf),_0x44a445(0xac),_0x305323['id']);}function je(_0x3debc4,_0x117526){const _0x15b2fb=_0x1f7d;let _0x480e62=_0x3debc4[_0x15b2fb(0x108)]<=_0x117526[_0x15b2fb(0x110)]&&_0x117526['start']<=_0x3debc4['end'],_0x1c9d69=_0x3debc4[_0x15b2fb(0x108)]<=_0x117526['start']&&_0x117526[_0x15b2fb(0x110)]<=_0x3debc4[_0x15b2fb(0x110)],_0x1850d6=_0x117526['start']<=_0x3debc4['start']&&_0x3debc4['end']<=_0x117526[_0x15b2fb(0x110)];return _0x480e62&&!_0x1c9d69&&!_0x1850d6;}function N(_0xeae969){'@babel/helpers - typeof';const _0x416788=_0x1f7d;return N=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x416788(0xde)?function(_0x501044){return typeof _0x501044;}:function(_0x532df0){const _0x286f85=_0x416788;return _0x532df0&&typeof Symbol==_0x286f85(0x10c)&&_0x532df0[_0x286f85(0xc6)]===Symbol&&_0x532df0!==Symbol['prototype']?_0x286f85(0xde):typeof _0x532df0;},N(_0xeae969);}function Me(_0x1a12a1,_0x31b6ce){const _0x37a1de=_0x1f7d;if(N(_0x1a12a1)!=_0x37a1de(0xab)||!_0x1a12a1)return _0x1a12a1;var _0x1e1585=_0x1a12a1[Symbol[_0x37a1de(0xe0)]];if(_0x1e1585!==void 0x0){var _0xe89597=_0x1e1585['call'](_0x1a12a1,_0x31b6ce||_0x37a1de(0x123));if(N(_0xe89597)!=_0x37a1de(0xab))return _0xe89597;throw TypeError(_0x37a1de(0x7f));}return(_0x31b6ce==='string'?String:Number)(_0x1a12a1);}function Ne(_0x260e7a){const _0x309f36=_0x1f7d;var _0x196bd9=Me(_0x260e7a,_0x309f36(0xf3));return N(_0x196bd9)==_0x309f36(0xde)?_0x196bd9:_0x196bd9+'';}function P(_0x2c56e8,_0x462e72,_0x7cd476){const _0x491365=_0x1f7d;return(_0x462e72=Ne(_0x462e72))in _0x2c56e8?Object[_0x491365(0xf9)](_0x2c56e8,_0x462e72,{'value':_0x7cd476,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c56e8[_0x462e72]=_0x7cd476,_0x2c56e8;}var F=class extends _0x363275{constructor(..._0x5864e3){const _0x5bede4=_0x1f7d;super(..._0x5864e3),P(this,_0x5bede4(0xc1),new Map()),P(this,_0x5bede4(0x121),new _0x2338a9()),P(this,_0x5bede4(0xe2),this[_0x5bede4(0x121)][_0x5bede4(0x9f)]());}['getOutlines'](_0x36d512,_0x5bbcfe){const _0x10af7e=_0x1f7d;var _0x538ad3,_0x2ccf75;return[...(_0x538ad3=(_0x2ccf75=this[_0x10af7e(0xc1)][_0x10af7e(0x10f)](_0x36d512))==null?void 0x0:_0x2ccf75[_0x10af7e(0x10f)](_0x5bbcfe))==null?[]:_0x538ad3];}[_0x43d830(0xf7)](_0x256ea3){const _0x2b6917=_0x43d830;let _0x1abe72=this[_0x2b6917(0xc1)]['get'](_0x256ea3),_0x1c6a55=new Map();return _0x1abe72==null||_0x1abe72[_0x2b6917(0x97)]((_0x1e35bf,_0x3517f1)=>{const _0x2dc1b2=_0x2b6917;_0x1c6a55[_0x2dc1b2(0xee)](_0x3517f1,[..._0x1e35bf]);}),_0x1c6a55;}['setOutlines'](_0xc49a2c,_0x5c31d0,_0x45643d){const _0x46d500=_0x43d830;this[_0x46d500(0x101)](_0xc49a2c)[_0x46d500(0xee)](_0x5c31d0,[..._0x45643d]),this[_0x46d500(0x121)][_0x46d500(0x88)]({'unitId':_0xc49a2c,'subUnitId':_0x5c31d0});}['removeUnit'](_0x457b9b){const _0x18eb99=_0x43d830;this[_0x18eb99(0xc1)][_0x18eb99(0x7a)](_0x457b9b),this['_change$'][_0x18eb99(0x88)]({'unitId':_0x457b9b});}[_0x43d830(0x105)](_0x43b515){const _0x517dc2=_0x43d830;let _0xa03a14=this[_0x517dc2(0xc1)]['get'](_0x43b515),_0x2fbf8c={};return _0xa03a14==null||_0xa03a14['forEach']((_0x532367,_0x58dc52)=>{_0x2fbf8c[_0x58dc52]={'outlineList':[..._0x532367]};}),_0x2fbf8c;}[_0x43d830(0xf2)](_0x1a1ce6,_0x428a21){const _0x4f60cc=_0x43d830;let _0x3c01be=new Map();Object[_0x4f60cc(0x9a)](_0x428a21)[_0x4f60cc(0x97)](([_0x48f936,_0x595a30])=>{const _0xd2f83b=_0x4f60cc;var _0x2d833f;_0x3c01be[_0xd2f83b(0xee)](_0x48f936,[...(_0x2d833f=_0x595a30[_0xd2f83b(0x111)])==null?[]:_0x2d833f]);}),this[_0x4f60cc(0xc1)]['set'](_0x1a1ce6,_0x3c01be),this[_0x4f60cc(0x121)][_0x4f60cc(0x88)]({'unitId':_0x1a1ce6});}[_0x43d830(0x10b)](){const _0x1c932b=_0x43d830;super[_0x1c932b(0x10b)](),this[_0x1c932b(0xc1)][_0x1c932b(0x80)](),this[_0x1c932b(0x121)][_0x1c932b(0xc4)]();}['_ensureUnitOutlines'](_0x1c4bc1){const _0x5ad82f=_0x43d830;let _0x51100d=this['_outlines'][_0x5ad82f(0x10f)](_0x1c4bc1);return _0x51100d||(_0x51100d=new Map(),this['_outlines'][_0x5ad82f(0xee)](_0x1c4bc1,_0x51100d)),_0x51100d;}},I=class extends _0x363275{constructor(..._0x27d885){const _0x5bc863=_0x43d830;super(..._0x27d885),P(this,_0x5bc863(0x89),new _0x2338a9()),P(this,_0x5bc863(0x11e),this[_0x5bc863(0x89)][_0x5bc863(0x9f)]());}[_0x43d830(0xf1)](_0x32f418){const _0x10748b=_0x43d830;this['_error$'][_0x10748b(0x88)](_0x32f418);}[_0x43d830(0x10b)](){super['dispose'](),this['_error$']['complete']();}};const L={'id':_0x43d830(0xb1),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x228fca,_0x4e554a)=>{const _0x422cb0=_0x43d830;let _0x2444c6=_0x228fca['get'](F),_0x437b0c=_0x2444c6[_0x422cb0(0xce)](_0x4e554a[_0x422cb0(0x11d)],_0x4e554a[_0x422cb0(0x10d)]);return _0x2444c6['setOutlines'](_0x4e554a[_0x422cb0(0x11d)],_0x4e554a[_0x422cb0(0x10d)],ve(_0x437b0c,_0x4e554a['outline'])),!0x0;}},R={'id':_0x43d830(0xf6),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0xbe1e96,_0x5acf1a)=>{const _0x3da6fb=_0x43d830;let _0x36222a=_0xbe1e96[_0x3da6fb(0x10f)](F),_0xa62755=_0x36222a[_0x3da6fb(0xce)](_0x5acf1a[_0x3da6fb(0x11d)],_0x5acf1a[_0x3da6fb(0x10d)]);return _0x36222a[_0x3da6fb(0x8f)](_0x5acf1a[_0x3da6fb(0x11d)],_0x5acf1a[_0x3da6fb(0x10d)],_0xa62755[_0x3da6fb(0x93)](_0x197a45=>_0x197a45['id']!==_0x5acf1a[_0x3da6fb(0x9c)])),!0x0;}};function z(_0x18d926,_0x1acae0,_0x18bba5){const _0x5169cb=_0x43d830;let _0x29d1bc=Fe(_0x18d926);return _0x29d1bc?_0x29d1bc[_0x5169cb(0xe9)]({'workbookTypes':[_0x15be24],'worksheetTypes':[_0x329b61]},_0x1acae0,_0x18bba5):!0x0;}function Pe(_0x54c190,_0x1381b5,_0x43c83a){const _0x1f1224=_0x43d830;var _0x2149ea;let _0x35297e=Ie(_0x54c190);return((_0x2149ea=_0x35297e==null?void 0x0:_0x35297e[_0x1f1224(0x83)])==null?_0x1bf83b(null):_0x2149ea)['pipe'](_0x3e40a9(0x64),_0x55f231(null),_0x527b9e(()=>z(_0x54c190,_0x1381b5,_0x43c83a)));}function Fe(_0x9b01a6){const _0x141b79=_0x43d830;if(typeof _0x9b01a6[_0x141b79(0x86)]==_0x141b79(0x10c)&&!_0x9b01a6[_0x141b79(0x86)](_0x70974))return null;try{return _0x9b01a6[_0x141b79(0x10f)](_0x70974);}catch{return null;}}function Ie(_0x1a0bcb){const _0x53de7c=_0x43d830;if(typeof _0x1a0bcb[_0x53de7c(0x86)]=='function'&&!_0x1a0bcb[_0x53de7c(0x86)](_0x4334b6))return null;try{return _0x1a0bcb['get'](_0x4334b6);}catch{return null;}}const B={'id':_0x43d830(0x78),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x5654f9,_0x367334)=>{const _0x47c9bb=_0x43d830;var _0x45dbdd,_0x5507b8;if(!_0x367334)return!0x1;let _0x4a4db7=_0x4243ec(_0x5654f9[_0x47c9bb(0x10f)](_0x46af38),_0x367334);if(!_0x4a4db7)return!0x1;let {unitId:_0x437d2f,subUnitId:_0x29bf73,worksheet:_0x2b716f}=_0x4a4db7;if(!z(_0x5654f9,_0x437d2f,_0x29bf73))return!0x1;let _0x5aad82=_0x5654f9[_0x47c9bb(0x10f)](F),_0x29661a={'id':_0x47c9bb(0xda)+_0xdaaa5f(0x6),'unitId':_0x437d2f,'subUnitId':_0x29bf73,'axis':_0x367334['axis'],'start':_0x367334[_0x47c9bb(0x108)],'end':_0x367334[_0x47c9bb(0x110)],'collapsed':!0x1},_0x151cae=_0x367334[_0x47c9bb(0xea)]===_0x47c9bb(0x98)?_0x2b716f[_0x47c9bb(0xa8)]():_0x2b716f[_0x47c9bb(0xbe)](),_0x48f673=_0x5aad82[_0x47c9bb(0xce)](_0x437d2f,_0x29bf73),_0x23b133=ye(_0x48f673,_0x29661a),_0x3a6cdc=(_0x45dbdd=_0x23b133==null?void 0x0:_0x23b133[_0x47c9bb(0xe4)])==null?[]:_0x45dbdd,_0xe37125=(_0x5507b8=_0x23b133==null?void 0x0:_0x23b133[_0x47c9bb(0xca)])==null?_0x29661a:_0x5507b8,_0x3a6ec0=O(_0x23b133?_0x48f673[_0x47c9bb(0x93)](_0x1fdbfd=>!_0x3a6cdc[_0x47c9bb(0x11a)](_0x28d5d7=>_0x28d5d7['id']===_0x1fdbfd['id'])):_0x48f673,_0xe37125,{'maxIndex':_0x151cae});if(!_0x3a6ec0[_0x47c9bb(0xed)]){var _0x5aa810;return _0x5654f9[_0x47c9bb(0x10f)](I)[_0x47c9bb(0xf1)]({'reason':(_0x5aa810=_0x3a6ec0[_0x47c9bb(0xd8)])==null?_0x47c9bb(0xe3):_0x5aa810,'commandId':B['id'],'unitId':_0x437d2f,'subUnitId':_0x29bf73,'axis':_0x367334[_0x47c9bb(0xea)],'outlineId':_0xe37125['id']}),!0x1;}let _0x4f8443=[..._0x3a6cdc[_0x47c9bb(0xc2)](_0x3de1d6=>({'id':R['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outlineId':_0x3de1d6['id']}})),{'id':L['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outline':_0xe37125}}],_0x40186e=[{'id':R['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outlineId':_0xe37125['id']}},..._0x3a6cdc[_0x47c9bb(0xc2)](_0x4f8546=>({'id':L['id'],'params':{'unitId':_0x437d2f,'subUnitId':_0x29bf73,'outline':_0x4f8546}}))];return _0x589c0f(_0x4f8443,_0x5654f9[_0x47c9bb(0x10f)](_0x5197b6))[_0x47c9bb(0xb9)]?(_0x5654f9['get'](_0x1a91cd)['pushUndoRedo']({'unitID':_0x437d2f,'undoMutations':_0x40186e,'redoMutations':_0x4f8443}),!0x0):!0x1;}},V={'id':'sheet.mutation.clear-dimension-outlines','type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x556b82,_0x1e6890)=>{const _0x5344e0=_0x43d830;let _0x5ac94e=_0x556b82[_0x5344e0(0x10f)](F),_0x57219f=_0x5ac94e[_0x5344e0(0xce)](_0x1e6890['unitId'],_0x1e6890[_0x5344e0(0x10d)]);return _0x5ac94e[_0x5344e0(0x8f)](_0x1e6890[_0x5344e0(0x11d)],_0x1e6890[_0x5344e0(0x10d)],be(_0x57219f,_0x1e6890)),!0x0;}},H={'id':_0x43d830(0xa3),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x3be085,_0x2df22a)=>{const _0x53dc66=_0x43d830;if(!_0x2df22a)return!0x1;let _0x31cd4a=_0x4243ec(_0x3be085[_0x53dc66(0x10f)](_0x46af38),_0x2df22a);if(!_0x31cd4a)return!0x1;let {unitId:_0x4ccee6,subUnitId:_0x5819fe}=_0x31cd4a;if(!z(_0x3be085,_0x4ccee6,_0x5819fe))return!0x1;let _0x29b44c={'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'axis':_0x2df22a['axis'],'start':_0x2df22a[_0x53dc66(0x108)],'end':_0x2df22a['end']},_0x2461a9=_0x3be085[_0x53dc66(0x10f)](F)['getOutlines'](_0x4ccee6,_0x5819fe)[_0x53dc66(0x93)](_0x5b06e6=>E(_0x5b06e6,_0x29b44c)&&_0x5b06e6[_0x53dc66(0x108)]>=_0x2df22a[_0x53dc66(0x108)]&&_0x5b06e6[_0x53dc66(0x110)]<=_0x2df22a['end']);if(_0x2461a9[_0x53dc66(0x7c)]===0x0)return _0x3be085['get'](I)['emit']({'reason':'clear-range-not-contain-outline','commandId':H['id'],'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'axis':_0x2df22a[_0x53dc66(0xea)]}),!0x1;let _0x476238=[{'id':V['id'],'params':{..._0x29b44c,'removedOutlineIds':_0x2461a9[_0x53dc66(0xc2)](_0x2a20cd=>_0x2a20cd['id'])}}],_0x394651=_0x2461a9['map'](_0x54c0e1=>({'id':L['id'],'params':{'unitId':_0x4ccee6,'subUnitId':_0x5819fe,'outline':_0x54c0e1}}));return _0x589c0f(_0x476238,_0x3be085[_0x53dc66(0x10f)](_0x5197b6))[_0x53dc66(0xb9)]?(_0x3be085[_0x53dc66(0x10f)](_0x1a91cd)[_0x53dc66(0x95)]({'unitID':_0x4ccee6,'undoMutations':_0x394651,'redoMutations':_0x476238}),!0x0):!0x1;}},Le={'id':_0x43d830(0xd1),'type':_0x4917cb[_0x43d830(0x10e)],'handler':(_0x3d2b47,_0xded217)=>{const _0xfd0444=_0x43d830;if(!_0xded217)return!0x1;let _0x3394c0=_0x4243ec(_0x3d2b47[_0xfd0444(0x10f)](_0x46af38),_0xded217);if(!_0x3394c0)return!0x1;let {unitId:_0x356b14,subUnitId:_0x15c15d}=_0x3394c0;if(!z(_0x3d2b47,_0x356b14,_0x15c15d))return!0x1;let _0x153261=_0x3d2b47['get'](F)['getOutlines'](_0x356b14,_0x15c15d)[_0xfd0444(0x87)](_0x453d41=>_0x453d41['id']===_0xded217['outlineId']);if(!_0x153261)return!0x1;let _0xf90524=[{'id':R['id'],'params':{'unitId':_0x356b14,'subUnitId':_0x15c15d,'outlineId':_0x153261['id'],'outline':_0x153261}}],_0x46b32d=[{'id':L['id'],'params':{'unitId':_0x356b14,'subUnitId':_0x15c15d,'outline':_0x153261}}];return _0x589c0f(_0xf90524,_0x3d2b47[_0xfd0444(0x10f)](_0x5197b6))[_0xfd0444(0xb9)]?(_0x3d2b47[_0xfd0444(0x10f)](_0x1a91cd)[_0xfd0444(0x95)]({'unitID':_0x356b14,'undoMutations':_0x46b32d,'redoMutations':_0xf90524}),!0x0):!0x1;}},U={'id':_0x43d830(0x8c),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x5958dd,_0x2f35ce)=>{const _0x4c3115=_0x43d830;let _0x11d05c=_0x5958dd[_0x4c3115(0x10f)](F),_0x50d13e=_0x11d05c[_0x4c3115(0xce)](_0x2f35ce[_0x4c3115(0x11d)],_0x2f35ce[_0x4c3115(0x10d)]),_0x5e991b=_0x50d13e[_0x4c3115(0x87)](_0x4f2a42=>_0x4f2a42['id']===_0x2f35ce['outlineId']);return _0x5e991b&&_0x11d05c[_0x4c3115(0x8f)](_0x2f35ce['unitId'],_0x2f35ce[_0x4c3115(0x10d)],_0x50d13e[_0x4c3115(0xc2)](_0x20a27e=>_0x20a27e[_0x4c3115(0x11d)]!==_0x5e991b['unitId']||_0x20a27e['subUnitId']!==_0x5e991b[_0x4c3115(0x10d)]||_0x20a27e[_0x4c3115(0xea)]!==_0x5e991b[_0x4c3115(0xea)]||_0x20a27e[_0x4c3115(0x108)]!==_0x5e991b[_0x4c3115(0x108)]||_0x20a27e[_0x4c3115(0x110)]!==_0x5e991b[_0x4c3115(0x110)]?_0x20a27e:{..._0x20a27e,'collapsed':_0x2f35ce[_0x4c3115(0x11b)]})),!0x0;}};function _0x2cc0(){const _0x349ea9=['interceptCommand','getUnitId','asObservable','onStarting','maxIndex','restoreOutlines','sheet.command.clear-dimension-outlines','_sheetsOutlineModel','INVALID_RANGE','2hgtsqU','registerPluginResource','getRowCount','_config','getSheetBySheetId','object','Invalid\x20outline\x20range','_initCommandInterceptor','COLUMN','from','_injector','sheet.mutation.add-dimension-outline','destinationIndex','max','12746vIpkry','_getCommandScope','_resourceManagerService','5xMbmSb','params','result','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','index','100hyDZCG','sheet.mutation.transform-dimension-outlines','getColumnCount','includes','1152348cRsFrl','_outlines','map','MOVE_SPLITS_OUTLINE','complete','max-depth','constructor','getOwnPropertyDescriptor','Invalid\x20dimension\x20outline\x20move\x20source\x20range','join','mergedOutline','_sheetInterceptorService','sort','version','getOutlines','_initRegisterCommand','endColumn','sheet.command.remove-dimension-outline','16QGlOBW','out-of-bounds','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','invalid-dimension-outline','removeUnit','startRow','reason','54703NNTsmf','dimension-outline-','split\x20dimension\x20outline','UNIVER_SHEET','OUT_OF_BOUNDS','symbol','invalid-range','toPrimitive','registerCommand','change$','unknown','mergedOutlines','Invalid\x20dimension\x20outline\x20mutation','sheets-outline.config','4266782MLOQRg','min','permissionCheckWithoutRange','axis','12mQVzIq','730314mnRiuJ','valid','set','35rvwGmf','move-splits-outline','emit','deserialize','string','_commandService','clear-range-not-contain-outline','sheet.mutation.remove-dimension-outline','getUnitOutlines','depth','defineProperty','maxDepth','SHEET_OUTLINE_PLUGIN','add','getMaxColumns','parse','column','_univerInstanceService','_ensureUnitOutlines','Move\x20would\x20split\x20dimension\x20outline:\x20','sheet.command.set-dimension-outline-collapsed','_configService','serialize','getActiveSheet','crossing','start','getCurrentUnitOfType','insert','dispose','function','subUnitId','COMMAND','get','end','outlineList','1.0.0-alpha.6','MAX_DEPTH','outline','undos','move','sourceEnd','MUTATION','count','some','collapsed','toRange','unitId','error$','children','type','_change$','offset','default','UNKNOWN','sheet.command.add-dimension-outline','fromRange','delete','_sheetsOutlineErrorService','length','sourceStart','push','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','decorate','setConfig','permissionPointUpdate$','endRow','469244rdMBYg','has','find','next','_error$','_initResource','disposeWithMe','sheet.mutation.set-dimension-outline-collapsed','message','values','setOutlines','localeCompare','pop','379854fEKohh','filter','preUndos','pushUndoRedo','startColumn','forEach','row','range','entries','pluginName','outlineId'];_0x2cc0=function(){return _0x349ea9;};return _0x2cc0();}function Re(_0x51db48,_0x2bf04c,_0x592b91,_0x14e89b){const _0x3c80c3=_0x43d830;return _0x51db48==='row'?{'startRow':_0x2bf04c,'endRow':_0x592b91,'startColumn':0x0,'endColumn':_0x14e89b[_0x3c80c3(0xfd)]()-0x1}:{'startRow':0x0,'endRow':_0x14e89b['getRowCount']()-0x1,'startColumn':_0x2bf04c,'endColumn':_0x592b91};}function ze(_0x44abda){const _0x38d340=_0x43d830;return _0x44abda===_0x38d340(0x98)?_0x26c97f['id']:_0x345420['id'];}function Be(_0x182d56){return _0x182d56==='row'?_0x322b08['id']:_0x412fd1['id'];}function Ve(_0x24a5bb,_0x4a2e35,_0x5e02ae,_0x1bbe9c){const _0x179fbe=_0x43d830;let _0x2117dd=_0x4a2e35?[Re(_0x24a5bb[_0x179fbe(0xea)],_0x24a5bb[_0x179fbe(0x108)],_0x24a5bb[_0x179fbe(0x110)],_0x5e02ae)]:He(_0x24a5bb,_0x1bbe9c,_0x5e02ae),_0x5dd4c4=_0x4a2e35?ze(_0x24a5bb[_0x179fbe(0xea)]):Be(_0x24a5bb[_0x179fbe(0xea)]);return[{'id':U['id'],'params':{'unitId':_0x24a5bb[_0x179fbe(0x11d)],'subUnitId':_0x24a5bb[_0x179fbe(0x10d)],'outlineId':_0x24a5bb['id'],'outline':_0x24a5bb,'collapsed':_0x4a2e35}},..._0x2117dd['map'](_0x56566a=>({'id':_0x5dd4c4,'params':{'unitId':_0x24a5bb[_0x179fbe(0x11d)],'subUnitId':_0x24a5bb[_0x179fbe(0x10d)],'ranges':[_0x56566a],'dimensionOutlineId':_0x24a5bb['id']}}))];}function He(_0x2a7ab2,_0x135ea6,_0x48d40b){const _0x5bbedc=_0x43d830;let _0xca2501=xe(_0x135ea6[_0x5bbedc(0xc2)](_0x3ef638=>Ue(_0x3ef638,_0x2a7ab2)?{..._0x3ef638,'collapsed':!0x1}:_0x3ef638),_0x2a7ab2[_0x5bbedc(0x11d)],_0x2a7ab2[_0x5bbedc(0x10d)],_0x2a7ab2[_0x5bbedc(0xea)]);return We({'start':_0x2a7ab2[_0x5bbedc(0x108)],'end':_0x2a7ab2[_0x5bbedc(0x110)]},_0xca2501)[_0x5bbedc(0xc2)](_0x5cfb92=>Re(_0x2a7ab2[_0x5bbedc(0xea)],_0x5cfb92[_0x5bbedc(0x108)],_0x5cfb92['end'],_0x48d40b));}function Ue(_0x58c6df,_0x11e1c8){const _0x331df1=_0x43d830;return _0x58c6df[_0x331df1(0x11d)]===_0x11e1c8[_0x331df1(0x11d)]&&_0x58c6df[_0x331df1(0x10d)]===_0x11e1c8[_0x331df1(0x10d)]&&_0x58c6df['axis']===_0x11e1c8['axis']&&_0x58c6df['start']===_0x11e1c8[_0x331df1(0x108)]&&_0x58c6df[_0x331df1(0x110)]===_0x11e1c8[_0x331df1(0x110)];}function We(_0x2bdbed,_0x3d3e81){const _0x4f5d22=_0x43d830;let _0x117038=_0x2bdbed[_0x4f5d22(0x108)],_0x5eb8b7=[];for(let _0x499e1c of _0x3d3e81)if(!(_0x499e1c[_0x4f5d22(0x110)]<_0x117038||_0x499e1c[_0x4f5d22(0x108)]>_0x2bdbed['end'])&&(_0x499e1c['start']>_0x117038&&_0x5eb8b7[_0x4f5d22(0x7e)]({'start':_0x117038,'end':Math[_0x4f5d22(0xe8)](_0x499e1c[_0x4f5d22(0x108)]-0x1,_0x2bdbed[_0x4f5d22(0x110)])}),_0x117038=Math[_0x4f5d22(0xb3)](_0x117038,_0x499e1c['end']+0x1),_0x117038>_0x2bdbed[_0x4f5d22(0x110)]))break;return _0x117038<=_0x2bdbed[_0x4f5d22(0x110)]&&_0x5eb8b7[_0x4f5d22(0x7e)]({'start':_0x117038,'end':_0x2bdbed[_0x4f5d22(0x110)]}),_0x5eb8b7;}const Ge={'id':_0x43d830(0x103),'type':_0x4917cb['COMMAND'],'handler':(_0x4592b5,_0x52d0af)=>{const _0x302048=_0x43d830;if(!_0x52d0af)return!0x1;let _0x568d06=_0x4243ec(_0x4592b5[_0x302048(0x10f)](_0x46af38),_0x52d0af);if(!_0x568d06)return!0x1;let {unitId:_0x11e1c5,subUnitId:_0x547f2a,worksheet:_0x7a518c}=_0x568d06;if(!z(_0x4592b5,_0x11e1c5,_0x547f2a))return!0x1;let _0x11f8c9=_0x4592b5[_0x302048(0x10f)](F)['getOutlines'](_0x11e1c5,_0x547f2a),_0x423340=_0x11f8c9[_0x302048(0x87)](_0xefdb61=>_0xefdb61['id']===_0x52d0af[_0x302048(0x9c)]);if(!_0x423340||_0x423340[_0x302048(0x11b)]===_0x52d0af[_0x302048(0x11b)])return!0x1;let _0x1afd5f=Ve(_0x423340,_0x52d0af[_0x302048(0x11b)],_0x7a518c,_0x11f8c9),_0x5ee4cd=Ve(_0x423340,!_0x52d0af[_0x302048(0x11b)],_0x7a518c,_0x11f8c9);return _0x589c0f(_0x1afd5f,_0x4592b5[_0x302048(0x10f)](_0x5197b6))['result']?(_0x4592b5['get'](_0x1a91cd)[_0x302048(0x95)]({'unitID':_0x11e1c5,'undoMutations':_0x5ee4cd,'redoMutations':_0x1afd5f}),!0x0):!0x1;}},W={'id':_0x43d830(0xbd),'type':_0x4917cb[_0x43d830(0x118)],'handler':(_0x47aa9f,_0x2a8e30)=>{const _0x292ed9=_0x43d830;let _0x279431=_0x47aa9f[_0x292ed9(0x10f)](F),_0xd3c588=Ke(_0x279431[_0x292ed9(0xce)](_0x2a8e30[_0x292ed9(0x11d)],_0x2a8e30['subUnitId']),_0x2a8e30);return _0x279431[_0x292ed9(0x8f)](_0x2a8e30['unitId'],_0x2a8e30[_0x292ed9(0x10d)],_0xd3c588),!0x0;}};function Ke(_0x586796,_0x1f3980){const _0x551b98=_0x43d830;switch(_0x1f3980[_0x551b98(0x120)]){case _0x551b98(0x10a):return _0x1f3980[_0x551b98(0xa2)]?qe(_0x586796,_0x1f3980):k(_0x586796,_0x1f3980);case _0x551b98(0x7a):return A(_0x586796,_0x1f3980);case _0x551b98(0x116):return j(_0x586796,_0x1f3980);}}function qe(_0x14c852,_0x11c01e){const _0x10ea97=_0x43d830;return[..._0x14c852[_0x10ea97(0x93)](_0x23ba41=>_0x23ba41[_0x10ea97(0x11d)]!==_0x11c01e[_0x10ea97(0x11d)]||_0x23ba41[_0x10ea97(0x10d)]!==_0x11c01e[_0x10ea97(0x10d)]||_0x23ba41[_0x10ea97(0xea)]!==_0x11c01e[_0x10ea97(0xea)]),..._0x11c01e[_0x10ea97(0xa2)]];}const G=_0x43d830(0xfb);var Je='@univerjs-pro/sheets-outline',Ye=_0x43d830(0x112);function _0x1f7d(_0x14d6b0,_0x35e48d){_0x14d6b0=_0x14d6b0-0x77;const _0x2cc042=_0x2cc0();let _0x1f7d8a=_0x2cc042[_0x14d6b0];return _0x1f7d8a;}const Xe={};function K(_0x2d801b,_0x29fafc){return function(_0x1a0816,_0x553311){_0x29fafc(_0x1a0816,_0x553311,_0x2d801b);};}function q(_0x11d109,_0x1f2b7d,_0x3c9f8e,_0x764071){const _0x3dd39d=_0x43d830;var _0x1cfdd3=arguments[_0x3dd39d(0x7c)],_0x59b3ad=_0x1cfdd3<0x3?_0x1f2b7d:_0x764071===null?_0x764071=Object[_0x3dd39d(0xc7)](_0x1f2b7d,_0x3c9f8e):_0x764071,_0xc30f10;if(typeof Reflect==_0x3dd39d(0xab)&&typeof Reflect[_0x3dd39d(0x81)]==_0x3dd39d(0x10c))_0x59b3ad=Reflect[_0x3dd39d(0x81)](_0x11d109,_0x1f2b7d,_0x3c9f8e,_0x764071);else{for(var _0x4c0046=_0x11d109[_0x3dd39d(0x7c)]-0x1;_0x4c0046>=0x0;_0x4c0046--)(_0xc30f10=_0x11d109[_0x4c0046])&&(_0x59b3ad=(_0x1cfdd3<0x3?_0xc30f10(_0x59b3ad):_0x1cfdd3>0x3?_0xc30f10(_0x1f2b7d,_0x3c9f8e,_0x59b3ad):_0xc30f10(_0x1f2b7d,_0x3c9f8e))||_0x59b3ad);}return _0x1cfdd3>0x3&&_0x59b3ad&&Object[_0x3dd39d(0xf9)](_0x1f2b7d,_0x3c9f8e,_0x59b3ad),_0x59b3ad;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let Y=class extends _0x363275{constructor(_0x79a1b0,_0x25a25d,_0x3feb5e,_0x17beba){const _0x5088b7=_0x43d830;super(),this[_0x5088b7(0x100)]=_0x79a1b0,this[_0x5088b7(0xcb)]=_0x25a25d,this[_0x5088b7(0xa4)]=_0x3feb5e,this[_0x5088b7(0x7b)]=_0x17beba,this[_0x5088b7(0xad)]();}[_0x43d830(0xad)](){const _0xe3a6d9=_0x43d830;this[_0xe3a6d9(0x8b)](this['_sheetInterceptorService'][_0xe3a6d9(0x9d)]({'getMutations':_0x364bc6=>Ze(_0x364bc6,(_0x17ef28,_0x71c796)=>this[_0xe3a6d9(0xa4)][_0xe3a6d9(0xce)](_0x17ef28,_0x71c796),this[_0xe3a6d9(0xb5)](_0x364bc6[_0xe3a6d9(0xb8)]),_0x485d65=>this['_sheetsOutlineErrorService']['emit'](_0x485d65))}));}['_getCommandScope'](_0xe5958d){const _0x164166=_0x43d830;let _0x592427=_0xe5958d,_0x39cc92=_0x592427!=null&&_0x592427['unitId']?this[_0x164166(0x100)]['getUniverSheetInstance'](_0x592427[_0x164166(0x11d)]):this[_0x164166(0x100)][_0x164166(0x109)](_0x1895a4[_0x164166(0xdc)]);if(!_0x39cc92)return;let _0xfaaec0=_0x592427!=null&&_0x592427[_0x164166(0x10d)]?_0x39cc92[_0x164166(0xaa)](_0x592427['subUnitId']):_0x39cc92[_0x164166(0x106)]();if(_0xfaaec0)return{'unitId':_0x39cc92[_0x164166(0x9e)](),'subUnitId':_0xfaaec0['getSheetId']()};}};Y=q([K(0x0,_0x46af38),K(0x1,_0x4c32b4(_0x5e080d)),K(0x2,_0x4c32b4(F)),K(0x3,_0x4c32b4(I))],Y);function Ze(_0x3fcd00,_0x3c0a19,_0x183013,_0x9c4952){const _0x430eeb=_0x43d830;let _0x19f700=$e(_0x3fcd00,_0x183013);if(!_0x19f700)return it();let _0x2f4885=_0x3c0a19(_0x19f700[_0x430eeb(0x11d)],_0x19f700[_0x430eeb(0x10d)]);if(!_0x2f4885[_0x430eeb(0x11a)](_0x3bed95=>_0x3bed95['axis']===_0x19f700['axis']))return it();Qe(_0x2f4885,_0x19f700,_0x3fcd00['id'],_0x9c4952);let _0x5157b7=nt(_0x19f700,_0x2f4885);return{'redos':[{'id':W['id'],'params':_0x19f700}],'undos':[{'id':W['id'],'params':_0x5157b7}],'preRedos':[],'preUndos':[]};}function Qe(_0x343537,_0x3c7067,_0x1e4ec8,_0x548dcd){const _0x583b53=_0x43d830;try{switch(_0x3c7067[_0x583b53(0x120)]){case _0x583b53(0x10a):k(_0x343537,_0x3c7067);break;case'delete':A(_0x343537,_0x3c7067);break;case _0x583b53(0x116):j(_0x343537,_0x3c7067);break;}}catch(_0x1a1a6e){throw _0x548dcd==null||_0x548dcd({'reason':ge(_0x1a1a6e),'commandId':_0x1e4ec8,'unitId':_0x3c7067[_0x583b53(0x11d)],'subUnitId':_0x3c7067[_0x583b53(0x10d)],'axis':_0x3c7067[_0x583b53(0xea)],'outlineId':_e(_0x1a1a6e)}),new _0x26197c(_0x1a1a6e instanceof Error?_0x1a1a6e[_0x583b53(0x8d)]:_0x583b53(0xe5));}}function $e(_0x4a61ad,_0x334cf8){const _0x1c83cb=_0x43d830;switch(_0x4a61ad['id']){case _0x4787aa['id']:return et(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0x98),_0x334cf8);case _0x17a83e['id']:return et(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);case _0x422ebf['id']:return X(_0x4a61ad[_0x1c83cb(0xb8)],'row',_0x334cf8);case _0x43f874['id']:return X(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);case _0x16d467['id']:return tt(_0x4a61ad['params'],_0x1c83cb(0x98),_0x334cf8);case _0x18f6fb['id']:return tt(_0x4a61ad[_0x1c83cb(0xb8)],_0x1c83cb(0xff),_0x334cf8);default:return null;}}function et(_0x3daecf,_0x47aedc,_0x2248cf){const _0x279261=_0x43d830;let _0x178d9f=Z(_0x3daecf,_0x2248cf);if(!(_0x3daecf!=null&&_0x3daecf[_0x279261(0x99)])||!_0x178d9f)return null;let _0x3d36b0=_0x47aedc===_0x279261(0x98)?_0x3daecf[_0x279261(0x99)]['startRow']:_0x3daecf['range'][_0x279261(0x96)],_0x47e36d=_0x47aedc===_0x279261(0x98)?_0x3daecf[_0x279261(0x99)][_0x279261(0x84)]:_0x3daecf[_0x279261(0x99)][_0x279261(0xd0)];return{..._0x178d9f,'axis':_0x47aedc,'type':_0x279261(0x10a),'index':_0x3d36b0,'count':_0x47e36d-_0x3d36b0+0x1};}function X(_0x513610,_0x28dca0,_0x4a01d4){const _0x1d8605=_0x43d830;let _0x4436a8=Z(_0x513610,_0x4a01d4);if(!(_0x513610!=null&&_0x513610[_0x1d8605(0x99)])||!_0x4436a8)return null;let _0xc97550=_0x28dca0===_0x1d8605(0x98)?_0x513610[_0x1d8605(0x99)][_0x1d8605(0xd7)]:_0x513610[_0x1d8605(0x99)][_0x1d8605(0x96)],_0x217c61=_0x28dca0===_0x1d8605(0x98)?_0x513610[_0x1d8605(0x99)]['endRow']:_0x513610[_0x1d8605(0x99)][_0x1d8605(0xd0)];return{..._0x4436a8,'axis':_0x28dca0,'type':_0x1d8605(0x7a),'start':_0xc97550,'end':_0x217c61};}function tt(_0x4f5d8e,_0x672501,_0x35f498){const _0x3d9562=_0x43d830;let _0x589da6=Z(_0x4f5d8e,_0x35f498);if(!(_0x4f5d8e!=null&&_0x4f5d8e['fromRange'])||!_0x4f5d8e[_0x3d9562(0x11c)]||!_0x589da6)return null;let _0x537da0=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0xd7)]:_0x4f5d8e[_0x3d9562(0x79)]['startColumn'],_0x1c5eaf=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0x84)]:_0x4f5d8e[_0x3d9562(0x79)][_0x3d9562(0xd0)],_0x1639aa=_0x672501===_0x3d9562(0x98)?_0x4f5d8e[_0x3d9562(0x11c)][_0x3d9562(0xd7)]:_0x4f5d8e[_0x3d9562(0x11c)][_0x3d9562(0x96)];return{..._0x589da6,'axis':_0x672501,'type':_0x3d9562(0x116),'sourceStart':_0x537da0,'sourceEnd':_0x1c5eaf,'destinationIndex':_0x1639aa};}function nt(_0x74d2b6,_0x574221){const _0x165dd7=_0x43d830;switch(_0x74d2b6[_0x165dd7(0x120)]){case _0x165dd7(0x10a):return{'unitId':_0x74d2b6[_0x165dd7(0x11d)],'subUnitId':_0x74d2b6[_0x165dd7(0x10d)],'axis':_0x74d2b6[_0x165dd7(0xea)],'type':_0x165dd7(0x7a),'start':_0x74d2b6[_0x165dd7(0xbb)],'end':_0x74d2b6['index']+_0x74d2b6[_0x165dd7(0x119)]-0x1};case _0x165dd7(0x7a):return{'unitId':_0x74d2b6['unitId'],'subUnitId':_0x74d2b6['subUnitId'],'axis':_0x74d2b6[_0x165dd7(0xea)],'type':_0x165dd7(0x10a),'index':_0x74d2b6[_0x165dd7(0x108)],'count':_0x74d2b6[_0x165dd7(0x110)]-_0x74d2b6[_0x165dd7(0x108)]+0x1,'restoreOutlines':_0x574221[_0x165dd7(0x93)](_0x657a72=>_0x657a72[_0x165dd7(0x11d)]===_0x74d2b6[_0x165dd7(0x11d)]&&_0x657a72['subUnitId']===_0x74d2b6[_0x165dd7(0x10d)]&&_0x657a72[_0x165dd7(0xea)]===_0x74d2b6['axis'])};case _0x165dd7(0x116):return rt(_0x74d2b6);}}function rt(_0x2096c1){const _0x10f71f=_0x43d830;let _0x39fe9b=_0x2096c1[_0x10f71f(0x117)]-_0x2096c1['sourceStart']+0x1;return _0x2096c1[_0x10f71f(0xb2)]>=_0x2096c1[_0x10f71f(0x7d)]&&_0x2096c1['destinationIndex']<=_0x2096c1['sourceEnd']+0x1?{..._0x2096c1}:_0x2096c1['destinationIndex']>_0x2096c1[_0x10f71f(0x117)]+0x1?{..._0x2096c1,'sourceStart':_0x2096c1['destinationIndex']-_0x39fe9b,'sourceEnd':_0x2096c1[_0x10f71f(0xb2)]-0x1,'destinationIndex':_0x2096c1[_0x10f71f(0x7d)]}:{..._0x2096c1,'sourceStart':_0x2096c1[_0x10f71f(0xb2)],'sourceEnd':_0x2096c1[_0x10f71f(0xb2)]+_0x39fe9b-0x1,'destinationIndex':_0x2096c1[_0x10f71f(0x117)]+0x1};}function Z(_0x44902e,_0x14127c){const _0x8e5677=_0x43d830;var _0x1facc7,_0x5e7f1b;let _0x1013c3=(_0x1facc7=_0x44902e==null?void 0x0:_0x44902e[_0x8e5677(0x11d)])==null?_0x14127c==null?void 0x0:_0x14127c[_0x8e5677(0x11d)]:_0x1facc7,_0x3b496b=(_0x5e7f1b=_0x44902e==null?void 0x0:_0x44902e['subUnitId'])==null?_0x14127c==null?void 0x0:_0x14127c[_0x8e5677(0x10d)]:_0x5e7f1b;return _0x1013c3&&_0x3b496b?{'unitId':_0x1013c3,'subUnitId':_0x3b496b}:null;}function it(){const _0x12de3d=_0x43d830;var _0x2adcd4,_0x26b0cc;return{'redos':[...J['redos']],'undos':[...J[_0x12de3d(0x115)]],'preRedos':[...(_0x2adcd4=J['preRedos'])==null?[]:_0x2adcd4],'preUndos':[...(_0x26b0cc=J[_0x12de3d(0x94)])==null?[]:_0x26b0cc]};}let Q=class extends _0x363275{constructor(_0x6f1e4f,_0x12698e){const _0xb71455=_0x43d830;super(),this[_0xb71455(0xb6)]=_0x6f1e4f,this[_0xb71455(0xa4)]=_0x12698e,this[_0xb71455(0x8a)]();}[_0x43d830(0x8a)](){const _0x538b07=_0x43d830;this[_0x538b07(0x8b)](this[_0x538b07(0xb6)][_0x538b07(0xa7)]({'pluginName':G,'businesses':[_0x1895a4[_0x538b07(0xdc)]],'toJson':_0x15a084=>JSON['stringify'](this[_0x538b07(0xa4)][_0x538b07(0x105)](_0x15a084)),'parseJson':_0x5a1361=>JSON[_0x538b07(0xfe)](_0x5a1361),'onLoad':(_0x5f0653,_0x1d2a75)=>this[_0x538b07(0xa4)][_0x538b07(0xf2)](_0x5f0653,_0x1d2a75),'onUnLoad':_0x7afbef=>this[_0x538b07(0xa4)][_0x538b07(0xd6)](_0x7afbef)}));}};Q=q([K(0x0,_0x2a06e7),K(0x1,_0x4c32b4(F))],Q);let $=class extends _0x29453c{constructor(_0x14b740=Xe,_0x199a85,_0x211bf6,_0x68010d){const _0x3935a4=_0x43d830;super(),this[_0x3935a4(0xa9)]=_0x14b740,this[_0x3935a4(0xb0)]=_0x199a85,this[_0x3935a4(0xf4)]=_0x211bf6,this['_configService']=_0x68010d;let {..._0x671b49}=_0x4e0cea({},Xe,this[_0x3935a4(0xa9)]);this[_0x3935a4(0x104)][_0x3935a4(0x82)](_0x3935a4(0xe6),_0x671b49);}[_0x43d830(0xa0)](){const _0x47a6d0=_0x43d830;this[_0x47a6d0(0xb0)][_0x47a6d0(0xfc)]([F]),this[_0x47a6d0(0xb0)][_0x47a6d0(0xfc)]([I]),this[_0x47a6d0(0xb0)]['add']([Q]),this['_injector']['add']([Y]),this[_0x47a6d0(0xcf)](),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](F),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](I),this[_0x47a6d0(0xb0)][_0x47a6d0(0x10f)](Q),this['_injector'][_0x47a6d0(0x10f)](Y);}[_0x43d830(0xcf)](){const _0x58fa7e=_0x43d830;[B,Le,Ge,H][_0x58fa7e(0x97)](_0x82d903=>{const _0x417b69=_0x58fa7e;this['disposeWithMe'](this[_0x417b69(0xf4)]['registerCommand'](_0x82d903));}),[L,R,U,V,W]['forEach'](_0x4c1d83=>{const _0x3fd43d=_0x58fa7e;this['disposeWithMe'](this[_0x3fd43d(0xf4)][_0x3fd43d(0xe1)](_0x4c1d83));});}};P($,_0x43d830(0x9b),G),P($,'packageName',Je),P($,_0x43d830(0xcd),Ye),P($,'type',_0x1895a4[_0x43d830(0xdc)]),$=q([_0x3376b6(_0x3fe587),K(0x1,_0x4c32b4(_0x3e9c64)),K(0x2,_0x5197b6),K(0x3,_0x272c5c)],$);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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1c5b(_0x815bf0,_0x10bfb3){_0x815bf0=_0x815bf0-0x86;var _0xdd4692=_0xdd46();var _0x1c5b3f=_0xdd4692[_0x815bf0];return _0x1c5b3f;}function _0xdd46(){var _0x135236=['_addDimensionOutline','removeDimensionOutline','DimensionOutlineAxis','filter','185WqOWqf','clearDimensionOutlines','12536OuFSxw','setDimensionOutlineCollapsed','1279212HafEUT','DimensionOutlineErrorReason','AddDimensionOutlineCommand','function','SetDimensionOutlineCollapsedCommand','ClearDimensionOutlinesCommand','addRowOutline','9KYAqBQ','SheetsOutlineModel','FEnum','getSheetId','COLUMN','_commandService','_worksheet','92611YEQKVx','FWorksheet','UniverSheetsFacade','253350UAhWVQ','syncExecuteCommand','ROW','846qscfBa','_injector','axis','amd','19184JGVrWC','@univerjs/core/facade','146986WcOszW','getUnitId','object','@univerjs-pro/sheets-outline','_workbook','@univerjs/sheets/facade','get','UniverCoreFacade','extend','1901025PXaGKY'];_0xdd46=function(){return _0x135236;};return _0xdd46();}(function(_0x5faba1,_0x5398e2){var _0x81962a=_0x1c5b,_0x5a0118=_0x5faba1();while(!![]){try{var _0x307035=parseInt(_0x81962a(0xa0))/0x1+-parseInt(_0x81962a(0xac))/0x2*(-parseInt(_0x81962a(0x99))/0x3)+-parseInt(_0x81962a(0x90))/0x4*(-parseInt(_0x81962a(0x8e))/0x5)+-parseInt(_0x81962a(0x92))/0x6+-parseInt(_0x81962a(0x89))/0x7+-parseInt(_0x81962a(0xaa))/0x8*(-parseInt(_0x81962a(0xa6))/0x9)+-parseInt(_0x81962a(0xa3))/0xa;if(_0x307035===_0x5398e2)break;else _0x5a0118['push'](_0x5a0118['shift']());}catch(_0x242a07){_0x5a0118['push'](_0x5a0118['shift']());}}}(_0xdd46,0x233dc),function(_0x1294ee,_0x46aefb){var _0x15477a=_0x1c5b;typeof exports==_0x15477a(0xae)&&typeof module<'u'?_0x46aefb(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x15477a(0x95)&&define[_0x15477a(0xa9)]?define([_0x15477a(0xaf),_0x15477a(0xab),_0x15477a(0xb1)],_0x46aefb):(_0x1294ee=typeof globalThis<'u'?globalThis:_0x1294ee||self,_0x46aefb(_0x1294ee['UniverProSheetsOutline'],_0x1294ee[_0x15477a(0x87)],_0x1294ee[_0x15477a(0xa2)]));}(this,function(_0x30411c,_0x3d090e,_0x130eb4){var _0x399ed1=_0x1c5b,_0x157fd2=class extends _0x3d090e[_0x399ed1(0x9b)]{get[_0x399ed1(0x8c)](){var _0x2130d1=_0x399ed1;return _0x30411c[_0x2130d1(0x8c)];}get[_0x399ed1(0x93)](){return _0x30411c['DimensionOutlineErrorReason'];}};_0x3d090e[_0x399ed1(0x9b)]['extend'](_0x157fd2);var _0xc2fb22=class extends _0x130eb4[_0x399ed1(0xa1)]{[_0x399ed1(0x98)](_0x4880b1,_0x1d399f){var _0x401973=_0x399ed1;return this[_0x401973(0x8a)](_0x30411c[_0x401973(0x8c)][_0x401973(0xa5)],_0x4880b1,_0x1d399f);}['addColumnOutline'](_0x40f212,_0x1d646c){var _0x3a14ac=_0x399ed1;return this['_addDimensionOutline'](_0x30411c[_0x3a14ac(0x8c)][_0x3a14ac(0x9d)],_0x40f212,_0x1d646c);}[_0x399ed1(0x8b)](_0x720dca){var _0x4556fe=_0x399ed1;return this[_0x4556fe(0x9e)][_0x4556fe(0xa4)](_0x30411c['RemoveDimensionOutlineCommand']['id'],{'unitId':this['_workbook'][_0x4556fe(0xad)](),'subUnitId':this[_0x4556fe(0x9f)][_0x4556fe(0x9c)](),'outlineId':_0x720dca}),this;}[_0x399ed1(0x91)](_0x415386,_0x3d9637){var _0x352378=_0x399ed1;return this[_0x352378(0x9e)][_0x352378(0xa4)](_0x30411c[_0x352378(0x96)]['id'],{'unitId':this[_0x352378(0xb0)][_0x352378(0xad)](),'subUnitId':this[_0x352378(0x9f)][_0x352378(0x9c)](),'outlineId':_0x415386,'collapsed':_0x3d9637}),this;}[_0x399ed1(0x8f)](_0x3c244e,_0x3d2348,_0xaa9636){var _0xc3f48d=_0x399ed1;return this['_commandService'][_0xc3f48d(0xa4)](_0x30411c[_0xc3f48d(0x97)]['id'],{'unitId':this['_workbook'][_0xc3f48d(0xad)](),'subUnitId':this[_0xc3f48d(0x9f)]['getSheetId'](),'axis':_0x3c244e,'start':_0x3d2348,'end':_0xaa9636}),this;}['getDimensionOutlines'](_0xd23654){var _0x398eac=_0x399ed1;let _0x5211b8=this[_0x398eac(0xa7)][_0x398eac(0x86)](_0x30411c[_0x398eac(0x9a)])['getOutlines'](this[_0x398eac(0xb0)][_0x398eac(0xad)](),this[_0x398eac(0x9f)]['getSheetId']());return _0xd23654?_0x5211b8[_0x398eac(0x8d)](_0x313f1c=>_0x313f1c[_0x398eac(0xa8)]===_0xd23654):_0x5211b8;}[_0x399ed1(0x8a)](_0x50bb6b,_0x502f81,_0x3f9918){var _0x1e5bfc=_0x399ed1;return this[_0x1e5bfc(0x9e)][_0x1e5bfc(0xa4)](_0x30411c[_0x1e5bfc(0x94)]['id'],{'unitId':this['_workbook'][_0x1e5bfc(0xad)](),'subUnitId':this[_0x1e5bfc(0x9f)][_0x1e5bfc(0x9c)](),'axis':_0x50bb6b,'start':_0x502f81,'end':_0x502f81+_0x3f9918-0x1}),this;}};_0x130eb4[_0x399ed1(0xa1)][_0x399ed1(0x88)](_0xc2fb22);}));
1
+ function _0x40a5(_0x8f1c6d,_0x4ecc68){_0x8f1c6d=_0x8f1c6d-0xf3;var _0x374799=_0x3747();var _0x40a591=_0x374799[_0x8f1c6d];return _0x40a591;}(function(_0x12edb0,_0x5bd180){var _0x4ba880=_0x40a5,_0x5f0640=_0x12edb0();while(!![]){try{var _0x296505=-parseInt(_0x4ba880(0xfc))/0x1+parseInt(_0x4ba880(0xfd))/0x2*(-parseInt(_0x4ba880(0x102))/0x3)+parseInt(_0x4ba880(0xf3))/0x4+parseInt(_0x4ba880(0x10c))/0x5*(parseInt(_0x4ba880(0x11b))/0x6)+parseInt(_0x4ba880(0x101))/0x7+-parseInt(_0x4ba880(0xf5))/0x8+parseInt(_0x4ba880(0x117))/0x9*(-parseInt(_0x4ba880(0x100))/0xa);if(_0x296505===_0x5bd180)break;else _0x5f0640['push'](_0x5f0640['shift']());}catch(_0x5a2bc5){_0x5f0640['push'](_0x5f0640['shift']());}}}(_0x3747,0x74ed6),function(_0x320b0e,_0x5c4951){var _0x341555=_0x40a5;typeof exports==_0x341555(0xfe)&&typeof module<'u'?_0x5c4951(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define=='function'&&define[_0x341555(0x113)]?define([_0x341555(0x108),'@univerjs/core/facade',_0x341555(0xff)],_0x5c4951):(_0x320b0e=typeof globalThis<'u'?globalThis:_0x320b0e||self,_0x5c4951(_0x320b0e[_0x341555(0x111)],_0x320b0e[_0x341555(0x116)],_0x320b0e['UniverSheetsFacade']));}(this,function(_0x526479,_0x25d754,_0x3d24e4){var _0x3b6e5e=_0x40a5,_0x1054da=class extends _0x25d754['FEnum']{get[_0x3b6e5e(0x109)](){var _0x44fa51=_0x3b6e5e;return _0x526479[_0x44fa51(0x109)];}get['DimensionOutlineErrorReason'](){var _0x3fc49b=_0x3b6e5e;return _0x526479[_0x3fc49b(0x104)];}};_0x25d754[_0x3b6e5e(0x11a)]['extend'](_0x1054da);var _0x5927c5=class extends _0x3d24e4[_0x3b6e5e(0xfb)]{[_0x3b6e5e(0xf9)](_0x2efb71,_0x12ffc5){var _0x170b2a=_0x3b6e5e;return this[_0x170b2a(0x105)](_0x526479[_0x170b2a(0x109)][_0x170b2a(0x118)],_0x2efb71,_0x12ffc5);}['addColumnOutline'](_0x3a9e5b,_0x46ac3f){var _0x1ec569=_0x3b6e5e;return this[_0x1ec569(0x105)](_0x526479[_0x1ec569(0x109)][_0x1ec569(0x107)],_0x3a9e5b,_0x46ac3f);}[_0x3b6e5e(0x119)](_0xa349c2){var _0x46c394=_0x3b6e5e;return this[_0x46c394(0xf8)][_0x46c394(0xfa)](_0x526479['RemoveDimensionOutlineCommand']['id'],{'unitId':this[_0x46c394(0xf7)][_0x46c394(0xf4)](),'subUnitId':this[_0x46c394(0x10e)][_0x46c394(0x10a)](),'outlineId':_0xa349c2}),this;}[_0x3b6e5e(0x110)](_0x2c567e,_0x5c42f3){var _0x4569ab=_0x3b6e5e;return this[_0x4569ab(0xf8)][_0x4569ab(0xfa)](_0x526479[_0x4569ab(0x114)]['id'],{'unitId':this['_workbook'][_0x4569ab(0xf4)](),'subUnitId':this[_0x4569ab(0x10e)][_0x4569ab(0x10a)](),'outlineId':_0x2c567e,'collapsed':_0x5c42f3}),this;}[_0x3b6e5e(0x10f)](_0x3dbd0e,_0x14a13d,_0x50e230){var _0x4b7569=_0x3b6e5e;return this['_commandService'][_0x4b7569(0xfa)](_0x526479[_0x4b7569(0xf6)]['id'],{'unitId':this[_0x4b7569(0xf7)][_0x4b7569(0xf4)](),'subUnitId':this[_0x4b7569(0x10e)]['getSheetId'](),'axis':_0x3dbd0e,'start':_0x14a13d,'end':_0x50e230}),this;}['getDimensionOutlines'](_0x13e427){var _0x546161=_0x3b6e5e;let _0x1531cc=this[_0x546161(0x10d)]['get'](_0x526479['SheetsOutlineModel'])[_0x546161(0x112)](this[_0x546161(0xf7)]['getUnitId'](),this[_0x546161(0x10e)][_0x546161(0x10a)]());return _0x13e427?_0x1531cc[_0x546161(0x106)](_0x2fd48a=>_0x2fd48a[_0x546161(0x103)]===_0x13e427):_0x1531cc;}[_0x3b6e5e(0x105)](_0x4a02bc,_0x3843a8,_0x1d2369){var _0x45e5c1=_0x3b6e5e;return this['_commandService'][_0x45e5c1(0xfa)](_0x526479[_0x45e5c1(0x10b)]['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x45e5c1(0x10e)][_0x45e5c1(0x10a)](),'axis':_0x4a02bc,'start':_0x3843a8,'end':_0x3843a8+_0x1d2369-0x1}),this;}};_0x3d24e4['FWorksheet'][_0x3b6e5e(0x115)](_0x5927c5);}));function _0x3747(){var _0x4098d2=['ClearDimensionOutlinesCommand','_workbook','_commandService','addRowOutline','syncExecuteCommand','FWorksheet','779386fZeOWC','150830bWeDTa','object','@univerjs/sheets/facade','9062300ooeYBv','4925494CCtgMD','6vHXqqX','axis','DimensionOutlineErrorReason','_addDimensionOutline','filter','COLUMN','@univerjs-pro/sheets-outline','DimensionOutlineAxis','getSheetId','AddDimensionOutlineCommand','585twfyUq','_injector','_worksheet','clearDimensionOutlines','setDimensionOutlineCollapsed','UniverProSheetsOutline','getOutlines','amd','SetDimensionOutlineCollapsedCommand','extend','UniverCoreFacade','9aLWRet','ROW','removeDimensionOutline','FEnum','43086GXqHmE','3754832moSAmy','getUnitId','1337176GNhuyG'];_0x3747=function(){return _0x4098d2;};return _0x3747();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2027(_0x13413f,_0x2e0b7c){_0x13413f=_0x13413f-0xf3;const _0x1ec91b=_0x1ec9();let _0x2027c1=_0x1ec91b[_0x13413f];return _0x2027c1;}(function(_0x1441f1,_0x520515){const _0x145ce2=_0x2027,_0x50718e=_0x1441f1();while(!![]){try{const _0x49b50c=parseInt(_0x145ce2(0x114))/0x1*(-parseInt(_0x145ce2(0x193))/0x2)+-parseInt(_0x145ce2(0x124))/0x3+parseInt(_0x145ce2(0x139))/0x4+parseInt(_0x145ce2(0x148))/0x5*(-parseInt(_0x145ce2(0x112))/0x6)+parseInt(_0x145ce2(0x19e))/0x7+parseInt(_0x145ce2(0x107))/0x8+parseInt(_0x145ce2(0x160))/0x9*(parseInt(_0x145ce2(0x191))/0xa);if(_0x49b50c===_0x520515)break;else _0x50718e['push'](_0x50718e['shift']());}catch(_0x11d237){_0x50718e['push'](_0x50718e['shift']());}}}(_0x1ec9,0xb4f69),function(_0x35b1bf,_0x1a5561){const _0x496120=_0x2027;typeof exports==_0x496120(0x119)&&typeof module<'u'?_0x1a5561(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x496120(0x152)]?define(['exports','@univerjs/core',_0x496120(0x190),_0x496120(0x1af),_0x496120(0x15d),_0x496120(0x140)],_0x1a5561):(_0x35b1bf=typeof globalThis<'u'?globalThis:_0x35b1bf||self,_0x1a5561(_0x35b1bf[_0x496120(0x116)]={},_0x35b1bf['UniverCore'],_0x35b1bf['UniverSheets'],_0x35b1bf['rxjs'],_0x35b1bf['rxjs'][_0x496120(0xf3)],_0x35b1bf[_0x496120(0x196)]));}(this,function(_0x3703d4,_0x542f94,_0x3eb54c,_0x1978f4,_0x15266b,_0x49b491){const _0x491cb7=_0x2027;Object['defineProperty'](_0x3703d4,Symbol['toStringTag'],{'value':_0x491cb7(0x143)});let _0x351027=function(_0x53471e){const _0x3a4c93=_0x491cb7;return _0x53471e['ROW']=_0x3a4c93(0x125),_0x53471e[_0x3a4c93(0x14f)]=_0x3a4c93(0x158),_0x53471e;}({}),_0x46df21=function(_0x35534c){const _0x3b5d1d=_0x491cb7;return _0x35534c['INVALID_RANGE']='invalid-range',_0x35534c['OUT_OF_BOUNDS']=_0x3b5d1d(0x199),_0x35534c[_0x3b5d1d(0x172)]=_0x3b5d1d(0x1c1),_0x35534c[_0x3b5d1d(0x12e)]=_0x3b5d1d(0x153),_0x35534c['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x35534c[_0x3b5d1d(0x18c)]=_0x3b5d1d(0x117),_0x35534c['UNKNOWN']=_0x3b5d1d(0x12a),_0x35534c;}({});var _0x3461f9=class extends Error{constructor(_0xf72768,_0xae03ea,_0x29cf4d){const _0x3f4ccb=_0x491cb7;super(_0xae03ea),this['reason']=_0xf72768,this[_0x3f4ccb(0x1b7)]=_0x29cf4d,this[_0x3f4ccb(0x129)]='DimensionOutlineError';}};function _0x53fee5(_0x249234){const _0x2fa049=_0x491cb7;return _0x249234 instanceof _0x3461f9?_0x249234[_0x2fa049(0x1a9)]:_0x249234 instanceof Error?_0x249234['message'][_0x2fa049(0x110)](_0x2fa049(0x167))?_0x2fa049(0x105):_0x249234[_0x2fa049(0x1bc)][_0x2fa049(0x110)]('depth')?_0x2fa049(0x153):_0x249234['message']['includes'](_0x2fa049(0x1a1))?_0x2fa049(0x1c1):_0x249234[_0x2fa049(0x1bc)][_0x2fa049(0x110)](_0x2fa049(0x1ab))?_0x2fa049(0x10b):_0x2fa049(0x12a):'unknown';}function _0xd748d5(_0x583d0e){const _0x5ee31a=_0x491cb7;return _0x583d0e instanceof _0x3461f9?_0x583d0e[_0x5ee31a(0x1b7)]:void 0x0;}let _0x1f7666=0x2**0x35-0x1;function _0x2b017c(_0x499d28,_0x340988){const _0x3f7669=_0x491cb7;return _0x499d28[_0x3f7669(0xf8)]===_0x340988[_0x3f7669(0xf8)]&&_0x499d28[_0x3f7669(0x1b2)]===_0x340988['subUnitId']&&_0x499d28['axis']===_0x340988[_0x3f7669(0x16b)];}function _0x300939(_0x194262,_0x1ab872={}){const _0x318044=_0x491cb7;var _0x20ad89;let _0x4dcab2=(_0x20ad89=_0x1ab872[_0x318044(0x165)])==null?0x8:_0x20ad89,_0x4949f0=new Map();for(let _0x261bf2 of _0x194262){let _0x2b1805=_0x261bf2['unitId']+':'+_0x261bf2[_0x318044(0x1b2)]+':'+_0x261bf2[_0x318044(0x16b)],_0x5106bf=_0x4949f0[_0x318044(0x1be)](_0x2b1805);_0x5106bf?_0x5106bf[_0x318044(0x10d)](_0x261bf2):_0x4949f0[_0x318044(0x16a)](_0x2b1805,[_0x261bf2]);}let _0xa9d4cd=[];for(let _0x4f930f of _0x4949f0[_0x318044(0x16c)]()){let _0xf7f16f=[..._0x4f930f][_0x318044(0x1a5)](_0x1a51b0),_0x15647f=[];for(let _0x3995c7 of _0xf7f16f){for(_0x4069bb(_0x3995c7);_0x15647f[_0x318044(0x1ad)]>0x0&&_0x3995c7[_0x318044(0x12f)]>_0x15647f[_0x15647f[_0x318044(0x1ad)]-0x1][_0x318044(0x10a)];)_0x15647f[_0x318044(0x180)]();let _0x30f28e=_0x15647f[_0x15647f[_0x318044(0x1ad)]-0x1];if(_0x30f28e&&_0x3995c7[_0x318044(0x10a)]>_0x30f28e[_0x318044(0x10a)])throw new _0x3461f9('crossing',_0x318044(0x173),_0x3995c7['id']);let _0x412059=_0x30f28e?_0x30f28e[_0x318044(0x14c)]+0x1:0x1;if(_0x412059>_0x4dcab2)throw new _0x3461f9(_0x318044(0x153),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x4dcab2,_0x3995c7['id']);let _0x51f938={..._0x3995c7,'depth':_0x412059,'parentId':_0x30f28e==null?void 0x0:_0x30f28e['id'],'anchor':_0x3995c7[_0x318044(0x10a)],'children':[]};_0x30f28e?_0x30f28e[_0x318044(0x111)]['push'](_0x51f938):_0xa9d4cd[_0x318044(0x10d)](_0x51f938),_0x15647f[_0x318044(0x10d)](_0x51f938);}}return _0xa9d4cd;}function _0x41fb92(_0x53c6ae,_0x3b3248,_0x319fc9={}){const _0x3e94d9=_0x491cb7;if(_0x3b3248[_0x3e94d9(0x12f)]<0x0||_0x3b3248[_0x3e94d9(0x12f)]>_0x3b3248[_0x3e94d9(0x10a)])return{'valid':!0x1,'reason':_0x3e94d9(0x10b)};if(_0x319fc9[_0x3e94d9(0x1a4)]!=null&&_0x3b3248['end']>=_0x319fc9[_0x3e94d9(0x1a4)])return{'valid':!0x1,'reason':_0x3e94d9(0x199)};let _0x43120e=_0x53c6ae[_0x3e94d9(0x150)](_0x2382a3=>_0x2b017c(_0x2382a3,_0x3b3248));for(let _0x1366c3 of _0x43120e)if(_0x3999a7(_0x1366c3,_0x3b3248))return{'valid':!0x1,'reason':'crossing'};try{_0x300939([..._0x53c6ae,_0x3b3248],_0x319fc9);}catch(_0x2d7472){let _0x44df27=_0x53fee5(_0x2d7472);return _0x44df27==='max-depth'?{'valid':!0x1,'reason':'max-depth'}:_0x44df27==='invalid-range'?{'valid':!0x1,'reason':_0x3e94d9(0x10b)}:{'valid':!0x1,'reason':_0x3e94d9(0x1c1)};}return{'valid':!0x0};}function _0x1e7b87(_0x6ebd3c,_0x447f2f,_0x3ac4f4={}){const _0x45ad53=_0x491cb7;let _0x3b98d1=_0x41fb92(_0x6ebd3c,_0x447f2f,_0x3ac4f4);if(!_0x3b98d1[_0x45ad53(0x17c)]){var _0x4164c1;throw Error((_0x4164c1=_0x3b98d1[_0x45ad53(0x1a9)])==null?_0x45ad53(0x197):_0x4164c1);}return[..._0x6ebd3c,_0x447f2f];}function _0x85183e(_0x26ed9e,_0x314013){const _0x1c8822=_0x491cb7;let _0xb1e7af=_0x314013[_0x1c8822(0x12f)],_0x4c985c=_0x314013[_0x1c8822(0x10a)],_0x134aaa=[],_0x52886e=!0x0;for(;_0x52886e;){_0x52886e=!0x1;for(let _0x56c36a of _0x26ed9e)_0x134aaa[_0x1c8822(0x110)](_0x56c36a)||!_0x2b017c(_0x56c36a,_0x314013)||!_0xdef9a0(_0x56c36a[_0x1c8822(0x12f)],_0x56c36a['end'],_0xb1e7af,_0x4c985c)||(_0x134aaa[_0x1c8822(0x10d)](_0x56c36a),_0xb1e7af=Math[_0x1c8822(0x113)](_0xb1e7af,_0x56c36a['start']),_0x4c985c=Math[_0x1c8822(0x14b)](_0x4c985c,_0x56c36a[_0x1c8822(0x10a)]),_0x52886e=!0x0);}if(_0x134aaa[_0x1c8822(0x1ad)]===0x0)return null;let [_0x3c877]=[..._0x134aaa][_0x1c8822(0x1a5)](_0x1a51b0);return{'mergedOutline':{..._0x3c877,'start':_0xb1e7af,'end':_0x4c985c},'mergedOutlines':_0x134aaa};}function _0x3230a7(_0x252227,_0x47c02f){const _0x22c0ff=_0x491cb7;return _0x252227[_0x22c0ff(0x150)](_0x4e02ca=>_0x2b017c(_0x4e02ca,_0x47c02f)?!(_0x4e02ca[_0x22c0ff(0x12f)]>=_0x47c02f['start']&&_0x4e02ca['end']<=_0x47c02f[_0x22c0ff(0x10a)]):!0x0);}function _0x283b62(_0x48ff6e,_0x113481,_0x4890f0,_0x424bdf){const _0x4b30e7=_0x491cb7;return _0x4926d8(_0x48ff6e['filter'](_0x18ec6c=>_0x18ec6c[_0x4b30e7(0xf8)]===_0x113481&&_0x18ec6c[_0x4b30e7(0x1b2)]===_0x4890f0&&_0x18ec6c[_0x4b30e7(0x16b)]===_0x424bdf&&_0x18ec6c[_0x4b30e7(0x1a2)])[_0x4b30e7(0x175)](_0x582f83=>({'start':_0x582f83['start'],'end':_0x582f83[_0x4b30e7(0x10a)]})));}function _0x4926d8(_0x233ecb){const _0x5e0e80=_0x491cb7;if(_0x233ecb[_0x5e0e80(0x1ad)]===0x0)return[];let _0x52ab06=[..._0x233ecb][_0x5e0e80(0x1a5)]((_0x594efc,_0x385515)=>_0x594efc[_0x5e0e80(0x12f)]-_0x385515[_0x5e0e80(0x12f)]||_0x594efc[_0x5e0e80(0x10a)]-_0x385515[_0x5e0e80(0x10a)]),_0x2c2e02=[];for(let _0x2a2d21 of _0x52ab06){let _0xb856ac=_0x2c2e02[_0x2c2e02['length']-0x1];!_0xb856ac||_0x2a2d21[_0x5e0e80(0x12f)]>_0xb856ac['end']+0x1?_0x2c2e02['push']({..._0x2a2d21}):_0xb856ac['end']=Math[_0x5e0e80(0x14b)](_0xb856ac[_0x5e0e80(0x10a)],_0x2a2d21['end']);}return _0x2c2e02;}function _0x128165(_0x1451ec,_0xa4fb50){const _0x4d81fa=_0x491cb7;return _0xa4fb50['count']<=0x0?_0x1451ec:_0x108927(_0x1451ec[_0x4d81fa(0x175)](_0x154a44=>_0x2b017c(_0x154a44,_0xa4fb50)?_0xa4fb50['index']<=_0x154a44[_0x4d81fa(0x12f)]?{..._0x154a44,'start':_0x154a44[_0x4d81fa(0x12f)]+_0xa4fb50[_0x4d81fa(0x127)],'end':_0x154a44[_0x4d81fa(0x10a)]+_0xa4fb50[_0x4d81fa(0x127)]}:_0x154a44['start']<_0xa4fb50[_0x4d81fa(0x11b)]&&_0xa4fb50[_0x4d81fa(0x11b)]<=_0x154a44[_0x4d81fa(0x10a)]?{..._0x154a44,'end':_0x154a44[_0x4d81fa(0x10a)]+_0xa4fb50[_0x4d81fa(0x127)]}:_0x154a44:_0x154a44));}function _0x45f76b(_0x251f2e,_0x5b3abf){const _0x3fccb6=_0x491cb7;if(_0x5b3abf[_0x3fccb6(0x12f)]>_0x5b3abf[_0x3fccb6(0x10a)])return _0x251f2e;let _0x2aa59b=_0x5b3abf[_0x3fccb6(0x10a)]-_0x5b3abf[_0x3fccb6(0x12f)]+0x1,_0x409ad2=[];for(let _0x1a560c of _0x251f2e){if(!_0x2b017c(_0x1a560c,_0x5b3abf)){_0x409ad2['push'](_0x1a560c);continue;}if(_0x1a560c[_0x3fccb6(0x10a)]<_0x5b3abf[_0x3fccb6(0x12f)]){_0x409ad2[_0x3fccb6(0x10d)](_0x1a560c);continue;}if(_0x1a560c[_0x3fccb6(0x12f)]>_0x5b3abf[_0x3fccb6(0x10a)]){_0x409ad2[_0x3fccb6(0x10d)]({..._0x1a560c,'start':_0x1a560c[_0x3fccb6(0x12f)]-_0x2aa59b,'end':_0x1a560c[_0x3fccb6(0x10a)]-_0x2aa59b});continue;}let _0x19ce3f=Math[_0x3fccb6(0x14b)](_0x1a560c[_0x3fccb6(0x12f)],_0x5b3abf[_0x3fccb6(0x12f)]),_0xb1825e=Math[_0x3fccb6(0x113)](_0x1a560c[_0x3fccb6(0x10a)],_0x5b3abf['end']),_0x4c285f=Math['max'](0x0,_0xb1825e-_0x19ce3f+0x1),_0x25ac94=_0x1a560c[_0x3fccb6(0x10a)]-_0x1a560c[_0x3fccb6(0x12f)]+0x1-_0x4c285f;if(_0x25ac94<=0x0)continue;let _0x23b045=_0x1a560c[_0x3fccb6(0x12f)]<_0x5b3abf[_0x3fccb6(0x12f)]?_0x1a560c[_0x3fccb6(0x12f)]:_0x5b3abf[_0x3fccb6(0x12f)];_0x409ad2['push']({..._0x1a560c,'start':_0x23b045,'end':_0x23b045+_0x25ac94-0x1});}return _0x108927(_0x409ad2);}function _0x219a55(_0x1bf4ca,_0x420df3){const _0x206d88=_0x491cb7;if(_0x420df3[_0x206d88(0xf5)]>_0x420df3[_0x206d88(0x15f)])return _0x1bf4ca;let _0x3af656=[];for(let _0x62836f of _0x1bf4ca){if(!_0x2b017c(_0x62836f,_0x420df3)){_0x3af656[_0x206d88(0x10d)](_0x62836f);continue;}let _0x533f4f=_0x5e61cd(_0x62836f,_0x420df3);if(_0x533f4f[_0x206d88(0x10c)]==='split')throw new _0x3461f9(_0x206d88(0x105),_0x206d88(0x156)+_0x62836f['id'],_0x62836f['id']);_0x3af656[_0x206d88(0x10d)](_0x533f4f[_0x206d88(0x1ba)]);}return _0x108927(_0x3af656);}function _0x5e61cd(_0x17b4c9,_0x42175f){const _0xc95e5=_0x491cb7;let _0x324e7b=_0x2b4be8(_0x42175f[_0xc95e5(0xf5)],_0x42175f[_0xc95e5(0x15f)]+0x1,_0x42175f[_0xc95e5(0x13c)]),_0x8049f1=[],_0x53d4a2={'start':_0x17b4c9['start'],'end':_0x17b4c9[_0xc95e5(0x10a)]+0x1};for(let _0x5f1399 of _0x324e7b){let _0x342d0f=_0x4489e0(_0x53d4a2,_0x5f1399[_0xc95e5(0x1ab)]);_0x342d0f&&_0x8049f1[_0xc95e5(0x10d)]({'start':_0x342d0f[_0xc95e5(0x12f)]+_0x5f1399['offset'],'end':_0x342d0f[_0xc95e5(0x10a)]+_0x5f1399[_0xc95e5(0x155)]});}let _0x405eab=_0x1f08fa(_0x8049f1);return _0x405eab[_0xc95e5(0x1ad)]===0x1?{'type':'ok','outline':{..._0x17b4c9,'start':_0x405eab[0x0]['start'],'end':_0x405eab[0x0][_0xc95e5(0x10a)]-0x1}}:{'type':_0xc95e5(0x18e),'outline':_0x17b4c9,'ranges':_0x405eab};}function _0x2b4be8(_0x165e17,_0x564b26,_0x5df027){const _0x5412e6=_0x491cb7;let _0xb473ee=_0x564b26-_0x165e17;if(_0xb473ee<=0x0)throw Error(_0x5412e6(0xfd));return _0x5df027>=_0x165e17&&_0x5df027<=_0x564b26?[{'range':{'start':0x0,'end':_0x1f7666},'offset':0x0}]:_0x5df027<_0x165e17?[{'range':{'start':0x0,'end':_0x5df027},'offset':0x0},{'range':{'start':_0x5df027,'end':_0x165e17},'offset':_0xb473ee},{'range':{'start':_0x165e17,'end':_0x564b26},'offset':_0x5df027-_0x165e17},{'range':{'start':_0x564b26,'end':_0x1f7666},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x165e17},'offset':0x0},{'range':{'start':_0x165e17,'end':_0x564b26},'offset':_0x5df027-_0x564b26},{'range':{'start':_0x564b26,'end':_0x5df027},'offset':-_0xb473ee},{'range':{'start':_0x5df027,'end':_0x1f7666},'offset':0x0}];}function _0x4489e0(_0x22e6a4,_0x162240){const _0x1e078d=_0x491cb7;let _0xb5b191=Math[_0x1e078d(0x14b)](_0x22e6a4[_0x1e078d(0x12f)],_0x162240['start']),_0x553fa7=Math['min'](_0x22e6a4[_0x1e078d(0x10a)],_0x162240[_0x1e078d(0x10a)]);return _0xb5b191>=_0x553fa7?null:{'start':_0xb5b191,'end':_0x553fa7};}function _0x1f08fa(_0x24603c){const _0xb82614=_0x491cb7;if(_0x24603c[_0xb82614(0x1ad)]===0x0)return[];let _0x411486=[..._0x24603c]['sort']((_0x1e0cfb,_0x1d6e89)=>_0x1e0cfb['start']-_0x1d6e89[_0xb82614(0x12f)]||_0x1e0cfb[_0xb82614(0x10a)]-_0x1d6e89[_0xb82614(0x10a)]),_0x56c402=[];for(let _0x222c80 of _0x411486){let _0x368aea=_0x56c402[_0x56c402[_0xb82614(0x1ad)]-0x1];!_0x368aea||_0x222c80['start']>_0x368aea['end']?_0x56c402['push']({..._0x222c80}):_0x368aea['end']=Math[_0xb82614(0x14b)](_0x368aea[_0xb82614(0x10a)],_0x222c80[_0xb82614(0x10a)]);}return _0x56c402;}function _0xdef9a0(_0x4de456,_0x2186b2,_0x83e435,_0x2f4ff0){return _0x2186b2+0x1===_0x83e435||_0x2f4ff0+0x1===_0x4de456;}function _0x108927(_0x31d2d3){let _0x49cc7e=_0x4399c5(_0x31d2d3);return _0x300939(_0x49cc7e),_0x49cc7e;}function _0x4399c5(_0xc9eba1){const _0x53e70d=_0x491cb7;let _0x48ba6e=new Map();for(let _0x5c25a2 of _0xc9eba1){let _0x3eaecf=[_0x5c25a2['unitId'],_0x5c25a2['subUnitId'],_0x5c25a2[_0x53e70d(0x16b)],_0x5c25a2[_0x53e70d(0x12f)],_0x5c25a2[_0x53e70d(0x10a)]][_0x53e70d(0x168)](':'),_0x1d3e0b=_0x48ba6e[_0x53e70d(0x1be)](_0x3eaecf);if(!_0x1d3e0b){_0x48ba6e['set'](_0x3eaecf,_0x5c25a2);continue;}_0x48ba6e[_0x53e70d(0x16a)](_0x3eaecf,{..._0x1d3e0b,'collapsed':_0x1d3e0b[_0x53e70d(0x1a2)]||_0x5c25a2[_0x53e70d(0x1a2)]});}return Array[_0x53e70d(0x17f)](_0x48ba6e[_0x53e70d(0x16c)]());}function _0x1a51b0(_0x2f09c2,_0x52e5a1){const _0x2677e4=_0x491cb7;return _0x2f09c2[_0x2677e4(0xf8)]===_0x52e5a1[_0x2677e4(0xf8)]?_0x2f09c2['subUnitId']===_0x52e5a1[_0x2677e4(0x1b2)]?_0x2f09c2[_0x2677e4(0x16b)]===_0x52e5a1[_0x2677e4(0x16b)]?_0x2f09c2[_0x2677e4(0x12f)]===_0x52e5a1['start']?_0x52e5a1['end']-_0x2f09c2['end']:_0x2f09c2[_0x2677e4(0x12f)]-_0x52e5a1[_0x2677e4(0x12f)]:_0x2f09c2['axis'][_0x2677e4(0x177)](_0x52e5a1['axis']):_0x2f09c2[_0x2677e4(0x1b2)][_0x2677e4(0x177)](_0x52e5a1[_0x2677e4(0x1b2)]):_0x2f09c2['unitId'][_0x2677e4(0x177)](_0x52e5a1['unitId']);}function _0x4069bb(_0x31a24d){const _0x567cc1=_0x491cb7;if(_0x31a24d[_0x567cc1(0x12f)]>_0x31a24d[_0x567cc1(0x10a)])throw new _0x3461f9(_0x567cc1(0x10b),_0x567cc1(0x1bf),_0x31a24d['id']);}function _0x3999a7(_0x46402b,_0xe1b027){const _0x723180=_0x491cb7;let _0x4701d5=_0x46402b[_0x723180(0x12f)]<=_0xe1b027['end']&&_0xe1b027[_0x723180(0x12f)]<=_0x46402b[_0x723180(0x10a)],_0x575eca=_0x46402b[_0x723180(0x12f)]<=_0xe1b027['start']&&_0xe1b027['end']<=_0x46402b[_0x723180(0x10a)],_0x57639e=_0xe1b027[_0x723180(0x12f)]<=_0x46402b[_0x723180(0x12f)]&&_0x46402b[_0x723180(0x10a)]<=_0xe1b027['end'];return _0x4701d5&&!_0x575eca&&!_0x57639e;}function _0x1d9ff9(_0x4fd963){'@babel/helpers - typeof';const _0x6bb3c2=_0x491cb7;return _0x1d9ff9=typeof Symbol==_0x6bb3c2(0x12b)&&typeof Symbol['iterator']=='symbol'?function(_0x50bfa0){return typeof _0x50bfa0;}:function(_0x4910c1){const _0x53d3db=_0x6bb3c2;return _0x4910c1&&typeof Symbol==_0x53d3db(0x12b)&&_0x4910c1[_0x53d3db(0x166)]===Symbol&&_0x4910c1!==Symbol[_0x53d3db(0x179)]?_0x53d3db(0x149):typeof _0x4910c1;},_0x1d9ff9(_0x4fd963);}function _0x573e04(_0x172a2d,_0x59fe3c){const _0x49ba00=_0x491cb7;if(_0x1d9ff9(_0x172a2d)!=_0x49ba00(0x119)||!_0x172a2d)return _0x172a2d;var _0x5ced0d=_0x172a2d[Symbol['toPrimitive']];if(_0x5ced0d!==void 0x0){var _0x90cb7e=_0x5ced0d[_0x49ba00(0x13d)](_0x172a2d,_0x59fe3c||_0x49ba00(0x100));if(_0x1d9ff9(_0x90cb7e)!=_0x49ba00(0x119))return _0x90cb7e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x59fe3c==='string'?String:Number)(_0x172a2d);}function _0x217cf4(_0x148a5a){const _0x70f178=_0x491cb7;var _0x32e25e=_0x573e04(_0x148a5a,_0x70f178(0x144));return _0x1d9ff9(_0x32e25e)==_0x70f178(0x149)?_0x32e25e:_0x32e25e+'';}function _0x40ff5e(_0x2045ae,_0x1e956e,_0x4d7328){const _0x58f10c=_0x491cb7;return(_0x1e956e=_0x217cf4(_0x1e956e))in _0x2045ae?Object[_0x58f10c(0x174)](_0x2045ae,_0x1e956e,{'value':_0x4d7328,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2045ae[_0x1e956e]=_0x4d7328,_0x2045ae;}var _0x1ecc1c=class extends _0x542f94['Disposable']{constructor(..._0x577c67){const _0x3387fc=_0x491cb7;super(..._0x577c67),_0x40ff5e(this,'_outlines',new Map()),_0x40ff5e(this,_0x3387fc(0x108),new _0x1978f4[(_0x3387fc(0x11d))]()),_0x40ff5e(this,'change$',this['_change$'][_0x3387fc(0xfb)]());}[_0x491cb7(0xff)](_0x574985,_0xb827d1){const _0x89d9f5=_0x491cb7;var _0x39391c,_0x1a4dfe;return[...(_0x39391c=(_0x1a4dfe=this[_0x89d9f5(0x118)][_0x89d9f5(0x1be)](_0x574985))==null?void 0x0:_0x1a4dfe['get'](_0xb827d1))==null?[]:_0x39391c];}[_0x491cb7(0x1aa)](_0x569fe4){const _0x425ffc=_0x491cb7;let _0x2b7e91=this['_outlines'][_0x425ffc(0x1be)](_0x569fe4),_0x243587=new Map();return _0x2b7e91==null||_0x2b7e91[_0x425ffc(0x164)]((_0x434677,_0xb292f2)=>{const _0x2e10b6=_0x425ffc;_0x243587[_0x2e10b6(0x16a)](_0xb292f2,[..._0x434677]);}),_0x243587;}['setOutlines'](_0x21f3bc,_0x48de1a,_0x24f805){const _0x2e8059=_0x491cb7;this[_0x2e8059(0x138)](_0x21f3bc)[_0x2e8059(0x16a)](_0x48de1a,[..._0x24f805]),this[_0x2e8059(0x108)][_0x2e8059(0x178)]({'unitId':_0x21f3bc,'subUnitId':_0x48de1a});}[_0x491cb7(0x12d)](_0x2f5c5a){const _0x119d65=_0x491cb7;this[_0x119d65(0x118)][_0x119d65(0x189)](_0x2f5c5a),this['_change$'][_0x119d65(0x178)]({'unitId':_0x2f5c5a});}[_0x491cb7(0x131)](_0xd13cdf){const _0x4e2905=_0x491cb7;let _0x959a44=this[_0x4e2905(0x118)][_0x4e2905(0x1be)](_0xd13cdf),_0x4bfbea={};return _0x959a44==null||_0x959a44[_0x4e2905(0x164)]((_0x5b7de0,_0x7b67c8)=>{_0x4bfbea[_0x7b67c8]={'outlineList':[..._0x5b7de0]};}),_0x4bfbea;}[_0x491cb7(0x15a)](_0x587ea4,_0x80ba4c){const _0x391394=_0x491cb7;let _0x7a0a0e=new Map();Object[_0x391394(0x17b)](_0x80ba4c)['forEach'](([_0x1a00c2,_0x3bd854])=>{const _0x4ea403=_0x391394;var _0x445b3b;_0x7a0a0e['set'](_0x1a00c2,[...(_0x445b3b=_0x3bd854[_0x4ea403(0x13a)])==null?[]:_0x445b3b]);}),this[_0x391394(0x118)]['set'](_0x587ea4,_0x7a0a0e),this[_0x391394(0x108)]['next']({'unitId':_0x587ea4});}[_0x491cb7(0x134)](){const _0x28564a=_0x491cb7;super[_0x28564a(0x134)](),this['_outlines'][_0x28564a(0x1b4)](),this[_0x28564a(0x108)][_0x28564a(0x147)]();}[_0x491cb7(0x138)](_0x5303e5){const _0x3ccbf9=_0x491cb7;let _0x57a829=this['_outlines'][_0x3ccbf9(0x1be)](_0x5303e5);return _0x57a829||(_0x57a829=new Map(),this['_outlines']['set'](_0x5303e5,_0x57a829)),_0x57a829;}},_0x5deb47=class extends _0x542f94[_0x491cb7(0x162)]{constructor(..._0x594cee){const _0x27e333=_0x491cb7;super(..._0x594cee),_0x40ff5e(this,_0x27e333(0x136),new _0x1978f4['Subject']()),_0x40ff5e(this,'error$',this['_error$']['asObservable']());}[_0x491cb7(0x14e)](_0x459a30){const _0xed960b=_0x491cb7;this['_error$'][_0xed960b(0x178)](_0x459a30);}[_0x491cb7(0x134)](){const _0x41d482=_0x491cb7;super['dispose'](),this[_0x41d482(0x136)]['complete']();}};let _0x2845da={'id':'sheet.mutation.add-dimension-outline','type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x18a)],'handler':(_0xdb8790,_0x582d67)=>{const _0x29cc3b=_0x491cb7;let _0xcca07c=_0xdb8790[_0x29cc3b(0x1be)](_0x1ecc1c),_0x36d159=_0xcca07c['getOutlines'](_0x582d67[_0x29cc3b(0xf8)],_0x582d67['subUnitId']);return _0xcca07c[_0x29cc3b(0x128)](_0x582d67[_0x29cc3b(0xf8)],_0x582d67[_0x29cc3b(0x1b2)],_0x1e7b87(_0x36d159,_0x582d67['outline'])),!0x0;}},_0x16b84c={'id':_0x491cb7(0x11e),'type':_0x542f94['CommandType'][_0x491cb7(0x18a)],'handler':(_0x5ca6c0,_0x23a9a0)=>{const _0x74341c=_0x491cb7;let _0x46ea82=_0x5ca6c0['get'](_0x1ecc1c),_0x2501cf=_0x46ea82['getOutlines'](_0x23a9a0['unitId'],_0x23a9a0[_0x74341c(0x1b2)]);return _0x46ea82[_0x74341c(0x128)](_0x23a9a0[_0x74341c(0xf8)],_0x23a9a0[_0x74341c(0x1b2)],_0x2501cf[_0x74341c(0x150)](_0x1e5711=>_0x1e5711['id']!==_0x23a9a0[_0x74341c(0x1b7)])),!0x0;}};function _0x127cd9(_0x570975,_0x5eedad,_0x2329e9){const _0x32f628=_0x491cb7;let _0x170606=_0x3974cd(_0x570975);return _0x170606?_0x170606[_0x32f628(0x102)]({'workbookTypes':[_0x3eb54c[_0x32f628(0x1c3)]],'worksheetTypes':[_0x3eb54c[_0x32f628(0x16d)]]},_0x5eedad,_0x2329e9):!0x0;}function _0x50e4af(_0x2e9605,_0x34b0f9,_0x538d5e){const _0x36df15=_0x491cb7;var _0x23bc18;let _0x18553f=_0x707832(_0x2e9605);return((_0x23bc18=_0x18553f==null?void 0x0:_0x18553f[_0x36df15(0xf4)])==null?(0x0,_0x1978f4['of'])(null):_0x23bc18)[_0x36df15(0x182)]((0x0,_0x15266b['debounceTime'])(0x64),(0x0,_0x15266b[_0x36df15(0x13b)])(null),(0x0,_0x15266b[_0x36df15(0x175)])(()=>_0x127cd9(_0x2e9605,_0x34b0f9,_0x538d5e)));}function _0x3974cd(_0x49dddb){const _0x417000=_0x491cb7;if(typeof _0x49dddb[_0x417000(0x187)]==_0x417000(0x12b)&&!_0x49dddb['has'](_0x3eb54c['SheetPermissionCheckController']))return null;try{return _0x49dddb[_0x417000(0x1be)](_0x3eb54c[_0x417000(0x15b)]);}catch{return null;}}function _0x707832(_0x2faee2){const _0x507ff4=_0x491cb7;if(typeof _0x2faee2['has']=='function'&&!_0x2faee2[_0x507ff4(0x187)](_0x542f94[_0x507ff4(0x106)]))return null;try{return _0x2faee2[_0x507ff4(0x1be)](_0x542f94[_0x507ff4(0x106)]);}catch{return null;}}let _0x38320b={'id':_0x491cb7(0x1b6),'type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x19c)],'handler':(_0x181eff,_0x32cd26)=>{const _0x27beac=_0x491cb7;var _0x594944,_0x146ed3;if(!_0x32cd26)return!0x1;let _0x33d95f=(0x0,_0x3eb54c[_0x27beac(0x169)])(_0x181eff[_0x27beac(0x1be)](_0x542f94[_0x27beac(0x18d)]),_0x32cd26);if(!_0x33d95f)return!0x1;let {unitId:_0x412631,subUnitId:_0x2ed4be,worksheet:_0x122889}=_0x33d95f;if(!_0x127cd9(_0x181eff,_0x412631,_0x2ed4be))return!0x1;let _0x346b03=_0x181eff[_0x27beac(0x1be)](_0x1ecc1c),_0x376c64={'id':'dimension-outline-'+(0x0,_0x542f94['generateRandomId'])(0x6),'unitId':_0x412631,'subUnitId':_0x2ed4be,'axis':_0x32cd26[_0x27beac(0x16b)],'start':_0x32cd26[_0x27beac(0x12f)],'end':_0x32cd26['end'],'collapsed':!0x1},_0x437bf3=_0x32cd26[_0x27beac(0x16b)]===_0x27beac(0x125)?_0x122889[_0x27beac(0x183)]():_0x122889[_0x27beac(0x19d)](),_0x1b4833=_0x346b03[_0x27beac(0xff)](_0x412631,_0x2ed4be),_0x11003e=_0x85183e(_0x1b4833,_0x376c64),_0x1b1665=(_0x594944=_0x11003e==null?void 0x0:_0x11003e[_0x27beac(0x15e)])==null?[]:_0x594944,_0x4c86fb=(_0x146ed3=_0x11003e==null?void 0x0:_0x11003e['mergedOutline'])==null?_0x376c64:_0x146ed3,_0x1588ff=_0x41fb92(_0x11003e?_0x1b4833[_0x27beac(0x150)](_0x2378e4=>!_0x1b1665[_0x27beac(0x146)](_0x57a602=>_0x57a602['id']===_0x2378e4['id'])):_0x1b4833,_0x4c86fb,{'maxIndex':_0x437bf3});if(!_0x1588ff['valid']){var _0x57c6f0;return _0x181eff[_0x27beac(0x1be)](_0x5deb47)[_0x27beac(0x14e)]({'reason':(_0x57c6f0=_0x1588ff['reason'])==null?_0x27beac(0x12a):_0x57c6f0,'commandId':_0x38320b['id'],'unitId':_0x412631,'subUnitId':_0x2ed4be,'axis':_0x32cd26[_0x27beac(0x16b)],'outlineId':_0x4c86fb['id']}),!0x1;}let _0x29a33d=[..._0x1b1665[_0x27beac(0x175)](_0x1bd957=>({'id':_0x16b84c['id'],'params':{'unitId':_0x412631,'subUnitId':_0x2ed4be,'outlineId':_0x1bd957['id']}})),{'id':_0x2845da['id'],'params':{'unitId':_0x412631,'subUnitId':_0x2ed4be,'outline':_0x4c86fb}}],_0xe79748=[{'id':_0x16b84c['id'],'params':{'unitId':_0x412631,'subUnitId':_0x2ed4be,'outlineId':_0x4c86fb['id']}},..._0x1b1665['map'](_0x54e195=>({'id':_0x2845da['id'],'params':{'unitId':_0x412631,'subUnitId':_0x2ed4be,'outline':_0x54e195}}))];return(0x0,_0x542f94[_0x27beac(0xf9)])(_0x29a33d,_0x181eff['get'](_0x542f94[_0x27beac(0x13f)]))['result']?(_0x181eff[_0x27beac(0x1be)](_0x542f94[_0x27beac(0x1c0)])[_0x27beac(0x192)]({'unitID':_0x412631,'undoMutations':_0xe79748,'redoMutations':_0x29a33d}),!0x0):!0x1;}},_0xcbee5d={'id':'sheet.mutation.clear-dimension-outlines','type':_0x542f94[_0x491cb7(0x10f)]['MUTATION'],'handler':(_0x3bc53f,_0x447242)=>{const _0x3ac30e=_0x491cb7;let _0x2902d1=_0x3bc53f[_0x3ac30e(0x1be)](_0x1ecc1c),_0xba42a6=_0x2902d1[_0x3ac30e(0xff)](_0x447242['unitId'],_0x447242[_0x3ac30e(0x1b2)]);return _0x2902d1[_0x3ac30e(0x128)](_0x447242['unitId'],_0x447242[_0x3ac30e(0x1b2)],_0x3230a7(_0xba42a6,_0x447242)),!0x0;}},_0x29a2c8={'id':_0x491cb7(0x1c5),'type':_0x542f94[_0x491cb7(0x10f)]['COMMAND'],'handler':(_0x482083,_0x5f7e2e)=>{const _0x429553=_0x491cb7;if(!_0x5f7e2e)return!0x1;let _0x2ae01f=(0x0,_0x3eb54c['getSheetCommandTarget'])(_0x482083['get'](_0x542f94[_0x429553(0x18d)]),_0x5f7e2e);if(!_0x2ae01f)return!0x1;let {unitId:_0x4f06ec,subUnitId:_0x27c38f}=_0x2ae01f;if(!_0x127cd9(_0x482083,_0x4f06ec,_0x27c38f))return!0x1;let _0x5ab20d={'unitId':_0x4f06ec,'subUnitId':_0x27c38f,'axis':_0x5f7e2e['axis'],'start':_0x5f7e2e[_0x429553(0x12f)],'end':_0x5f7e2e[_0x429553(0x10a)]},_0x2a007a=_0x482083[_0x429553(0x1be)](_0x1ecc1c)[_0x429553(0xff)](_0x4f06ec,_0x27c38f)[_0x429553(0x150)](_0x17fbe8=>_0x2b017c(_0x17fbe8,_0x5ab20d)&&_0x17fbe8['start']>=_0x5f7e2e['start']&&_0x17fbe8['end']<=_0x5f7e2e[_0x429553(0x10a)]);if(_0x2a007a[_0x429553(0x1ad)]===0x0)return _0x482083[_0x429553(0x1be)](_0x5deb47)[_0x429553(0x14e)]({'reason':_0x429553(0x117),'commandId':_0x29a2c8['id'],'unitId':_0x4f06ec,'subUnitId':_0x27c38f,'axis':_0x5f7e2e[_0x429553(0x16b)]}),!0x1;let _0x20d2c0=[{'id':_0xcbee5d['id'],'params':{..._0x5ab20d,'removedOutlineIds':_0x2a007a[_0x429553(0x175)](_0x4cf531=>_0x4cf531['id'])}}],_0x207f98=_0x2a007a[_0x429553(0x175)](_0x1cd3e1=>({'id':_0x2845da['id'],'params':{'unitId':_0x4f06ec,'subUnitId':_0x27c38f,'outline':_0x1cd3e1}}));return(0x0,_0x542f94[_0x429553(0xf9)])(_0x20d2c0,_0x482083['get'](_0x542f94[_0x429553(0x13f)]))[_0x429553(0x103)]?(_0x482083[_0x429553(0x1be)](_0x542f94[_0x429553(0x1c0)])[_0x429553(0x192)]({'unitID':_0x4f06ec,'undoMutations':_0x207f98,'redoMutations':_0x20d2c0}),!0x0):!0x1;}},_0x5412e3={'id':_0x491cb7(0x1c6),'type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x19c)],'handler':(_0x3c566d,_0x420fef)=>{const _0x8323d0=_0x491cb7;if(!_0x420fef)return!0x1;let _0x1bf35c=(0x0,_0x3eb54c[_0x8323d0(0x169)])(_0x3c566d[_0x8323d0(0x1be)](_0x542f94[_0x8323d0(0x18d)]),_0x420fef);if(!_0x1bf35c)return!0x1;let {unitId:_0x398bcf,subUnitId:_0x2a8800}=_0x1bf35c;if(!_0x127cd9(_0x3c566d,_0x398bcf,_0x2a8800))return!0x1;let _0x9315fd=_0x3c566d['get'](_0x1ecc1c)[_0x8323d0(0xff)](_0x398bcf,_0x2a8800)[_0x8323d0(0x1ae)](_0x5581b0=>_0x5581b0['id']===_0x420fef[_0x8323d0(0x1b7)]);if(!_0x9315fd)return!0x1;let _0x42e215=[{'id':_0x16b84c['id'],'params':{'unitId':_0x398bcf,'subUnitId':_0x2a8800,'outlineId':_0x9315fd['id'],'outline':_0x9315fd}}],_0x1d4519=[{'id':_0x2845da['id'],'params':{'unitId':_0x398bcf,'subUnitId':_0x2a8800,'outline':_0x9315fd}}];return(0x0,_0x542f94[_0x8323d0(0xf9)])(_0x42e215,_0x3c566d[_0x8323d0(0x1be)](_0x542f94[_0x8323d0(0x13f)]))[_0x8323d0(0x103)]?(_0x3c566d[_0x8323d0(0x1be)](_0x542f94[_0x8323d0(0x1c0)])[_0x8323d0(0x192)]({'unitID':_0x398bcf,'undoMutations':_0x1d4519,'redoMutations':_0x42e215}),!0x0):!0x1;}},_0x2d4ae8={'id':_0x491cb7(0x19a),'type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x18a)],'handler':(_0x2f1c71,_0x417e74)=>{const _0x33cfc0=_0x491cb7;let _0xca6c20=_0x2f1c71[_0x33cfc0(0x1be)](_0x1ecc1c),_0x20ca78=_0xca6c20[_0x33cfc0(0xff)](_0x417e74[_0x33cfc0(0xf8)],_0x417e74['subUnitId']),_0x47eea1=_0x20ca78[_0x33cfc0(0x1ae)](_0xe18abe=>_0xe18abe['id']===_0x417e74['outlineId']);return _0x47eea1&&_0xca6c20[_0x33cfc0(0x128)](_0x417e74['unitId'],_0x417e74[_0x33cfc0(0x1b2)],_0x20ca78[_0x33cfc0(0x175)](_0x5e916b=>_0x5e916b[_0x33cfc0(0xf8)]!==_0x47eea1[_0x33cfc0(0xf8)]||_0x5e916b[_0x33cfc0(0x1b2)]!==_0x47eea1[_0x33cfc0(0x1b2)]||_0x5e916b['axis']!==_0x47eea1[_0x33cfc0(0x16b)]||_0x5e916b['start']!==_0x47eea1[_0x33cfc0(0x12f)]||_0x5e916b[_0x33cfc0(0x10a)]!==_0x47eea1[_0x33cfc0(0x10a)]?_0x5e916b:{..._0x5e916b,'collapsed':_0x417e74[_0x33cfc0(0x1a2)]})),!0x0;}};function _0x54b1b2(_0x320860,_0x33274d,_0x3630d1,_0x1596fb){const _0x5c01e7=_0x491cb7;return _0x320860===_0x5c01e7(0x125)?{'startRow':_0x33274d,'endRow':_0x3630d1,'startColumn':0x0,'endColumn':_0x1596fb[_0x5c01e7(0x132)]()-0x1}:{'startRow':0x0,'endRow':_0x1596fb['getRowCount']()-0x1,'startColumn':_0x33274d,'endColumn':_0x3630d1};}function _0x605177(_0x59afa1){const _0x426c41=_0x491cb7;return _0x59afa1===_0x426c41(0x125)?_0x3eb54c['SetRowHiddenMutation']['id']:_0x3eb54c[_0x426c41(0x161)]['id'];}function _0x2fd560(_0x12cc76){const _0x2d07e1=_0x491cb7;return _0x12cc76===_0x2d07e1(0x125)?_0x3eb54c[_0x2d07e1(0x101)]['id']:_0x3eb54c['SetColVisibleMutation']['id'];}function _0x253fd1(_0x2977da,_0x2ad450,_0x19cae0,_0x514581){const _0x1b7d49=_0x491cb7;let _0x444cc2=_0x2ad450?[_0x54b1b2(_0x2977da[_0x1b7d49(0x16b)],_0x2977da['start'],_0x2977da['end'],_0x19cae0)]:_0x19e7b1(_0x2977da,_0x514581,_0x19cae0),_0x16c739=_0x2ad450?_0x605177(_0x2977da[_0x1b7d49(0x16b)]):_0x2fd560(_0x2977da[_0x1b7d49(0x16b)]);return[{'id':_0x2d4ae8['id'],'params':{'unitId':_0x2977da[_0x1b7d49(0xf8)],'subUnitId':_0x2977da[_0x1b7d49(0x1b2)],'outlineId':_0x2977da['id'],'outline':_0x2977da,'collapsed':_0x2ad450}},..._0x444cc2[_0x1b7d49(0x175)](_0x26c103=>({'id':_0x16c739,'params':{'unitId':_0x2977da['unitId'],'subUnitId':_0x2977da[_0x1b7d49(0x1b2)],'ranges':[_0x26c103],'dimensionOutlineId':_0x2977da['id']}}))];}function _0x19e7b1(_0x8ec8c1,_0x26778c,_0x2f1a57){const _0x2f6c15=_0x491cb7;let _0x3e9571=_0x283b62(_0x26778c[_0x2f6c15(0x175)](_0x13f890=>_0x27d383(_0x13f890,_0x8ec8c1)?{..._0x13f890,'collapsed':!0x1}:_0x13f890),_0x8ec8c1[_0x2f6c15(0xf8)],_0x8ec8c1[_0x2f6c15(0x1b2)],_0x8ec8c1[_0x2f6c15(0x16b)]);return _0x3fe940({'start':_0x8ec8c1[_0x2f6c15(0x12f)],'end':_0x8ec8c1[_0x2f6c15(0x10a)]},_0x3e9571)[_0x2f6c15(0x175)](_0x23fdcb=>_0x54b1b2(_0x8ec8c1['axis'],_0x23fdcb[_0x2f6c15(0x12f)],_0x23fdcb['end'],_0x2f1a57));}function _0x27d383(_0x18a95b,_0x27d61a){const _0x472b9f=_0x491cb7;return _0x18a95b['unitId']===_0x27d61a['unitId']&&_0x18a95b[_0x472b9f(0x1b2)]===_0x27d61a[_0x472b9f(0x1b2)]&&_0x18a95b['axis']===_0x27d61a[_0x472b9f(0x16b)]&&_0x18a95b[_0x472b9f(0x12f)]===_0x27d61a[_0x472b9f(0x12f)]&&_0x18a95b['end']===_0x27d61a['end'];}function _0x3fe940(_0x3e723e,_0x55088e){const _0x284534=_0x491cb7;let _0x579376=_0x3e723e[_0x284534(0x12f)],_0x3c8d7e=[];for(let _0x272b9b of _0x55088e)if(!(_0x272b9b[_0x284534(0x10a)]<_0x579376||_0x272b9b['start']>_0x3e723e[_0x284534(0x10a)])&&(_0x272b9b[_0x284534(0x12f)]>_0x579376&&_0x3c8d7e[_0x284534(0x10d)]({'start':_0x579376,'end':Math[_0x284534(0x113)](_0x272b9b['start']-0x1,_0x3e723e[_0x284534(0x10a)])}),_0x579376=Math[_0x284534(0x14b)](_0x579376,_0x272b9b[_0x284534(0x10a)]+0x1),_0x579376>_0x3e723e[_0x284534(0x10a)]))break;return _0x579376<=_0x3e723e[_0x284534(0x10a)]&&_0x3c8d7e[_0x284534(0x10d)]({'start':_0x579376,'end':_0x3e723e[_0x284534(0x10a)]}),_0x3c8d7e;}let _0x2baec9={'id':_0x491cb7(0x126),'type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x19c)],'handler':(_0x2a183d,_0x5a1987)=>{const _0x79bf5e=_0x491cb7;if(!_0x5a1987)return!0x1;let _0x447cd6=(0x0,_0x3eb54c[_0x79bf5e(0x169)])(_0x2a183d[_0x79bf5e(0x1be)](_0x542f94[_0x79bf5e(0x18d)]),_0x5a1987);if(!_0x447cd6)return!0x1;let {unitId:_0x162421,subUnitId:_0x12bb29,worksheet:_0xfa42fe}=_0x447cd6;if(!_0x127cd9(_0x2a183d,_0x162421,_0x12bb29))return!0x1;let _0x3ddc63=_0x2a183d[_0x79bf5e(0x1be)](_0x1ecc1c)['getOutlines'](_0x162421,_0x12bb29),_0xfda390=_0x3ddc63[_0x79bf5e(0x1ae)](_0x27d724=>_0x27d724['id']===_0x5a1987[_0x79bf5e(0x1b7)]);if(!_0xfda390||_0xfda390[_0x79bf5e(0x1a2)]===_0x5a1987[_0x79bf5e(0x1a2)])return!0x1;let _0x485aa1=_0x253fd1(_0xfda390,_0x5a1987[_0x79bf5e(0x1a2)],_0xfa42fe,_0x3ddc63),_0x118fbb=_0x253fd1(_0xfda390,!_0x5a1987['collapsed'],_0xfa42fe,_0x3ddc63);return(0x0,_0x542f94['sequenceExecute'])(_0x485aa1,_0x2a183d[_0x79bf5e(0x1be)](_0x542f94[_0x79bf5e(0x13f)]))[_0x79bf5e(0x103)]?(_0x2a183d[_0x79bf5e(0x1be)](_0x542f94['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x162421,'undoMutations':_0x118fbb,'redoMutations':_0x485aa1}),!0x0):!0x1;}},_0x211f11={'id':'sheet.mutation.transform-dimension-outlines','type':_0x542f94[_0x491cb7(0x10f)][_0x491cb7(0x18a)],'handler':(_0x5b5a70,_0x2d2840)=>{const _0x4686d6=_0x491cb7;let _0x45e589=_0x5b5a70['get'](_0x1ecc1c),_0x9e94a0=_0x7831c1(_0x45e589['getOutlines'](_0x2d2840[_0x4686d6(0xf8)],_0x2d2840[_0x4686d6(0x1b2)]),_0x2d2840);return _0x45e589[_0x4686d6(0x128)](_0x2d2840[_0x4686d6(0xf8)],_0x2d2840[_0x4686d6(0x1b2)],_0x9e94a0),!0x0;}};function _0x7831c1(_0x2fb88c,_0x72d8b5){const _0x4e10a9=_0x491cb7;switch(_0x72d8b5['type']){case _0x4e10a9(0x1a3):return _0x72d8b5[_0x4e10a9(0x184)]?_0x4d8440(_0x2fb88c,_0x72d8b5):_0x128165(_0x2fb88c,_0x72d8b5);case _0x4e10a9(0x189):return _0x45f76b(_0x2fb88c,_0x72d8b5);case _0x4e10a9(0x1b9):return _0x219a55(_0x2fb88c,_0x72d8b5);}}function _0x4d8440(_0x284c18,_0x22851a){const _0x3f843f=_0x491cb7;return[..._0x284c18[_0x3f843f(0x150)](_0x2c4ee4=>_0x2c4ee4[_0x3f843f(0xf8)]!==_0x22851a['unitId']||_0x2c4ee4[_0x3f843f(0x1b2)]!==_0x22851a[_0x3f843f(0x1b2)]||_0x2c4ee4['axis']!==_0x22851a[_0x3f843f(0x16b)]),..._0x22851a[_0x3f843f(0x184)]];}let _0xb392a7=_0x491cb7(0x19f);var _0x29e61f=_0x491cb7(0x16e),_0x350d8b='1.0.0-alpha.5';let _0x590019={};function _0x4f144e(_0x454969,_0xcb806f){return function(_0x2b16c9,_0x4c3d8c){_0xcb806f(_0x2b16c9,_0x4c3d8c,_0x454969);};}function _0xef4b3e(_0x3f482c,_0x405ff0,_0x50be2e,_0x399e3b){const _0x49945c=_0x491cb7;var _0x5c63ba=arguments[_0x49945c(0x1ad)],_0x5133a4=_0x5c63ba<0x3?_0x405ff0:_0x399e3b===null?_0x399e3b=Object[_0x49945c(0x137)](_0x405ff0,_0x50be2e):_0x399e3b,_0x2bb372;if(typeof Reflect==_0x49945c(0x119)&&typeof Reflect[_0x49945c(0x195)]==_0x49945c(0x12b))_0x5133a4=Reflect[_0x49945c(0x195)](_0x3f482c,_0x405ff0,_0x50be2e,_0x399e3b);else{for(var _0x1debdc=_0x3f482c['length']-0x1;_0x1debdc>=0x0;_0x1debdc--)(_0x2bb372=_0x3f482c[_0x1debdc])&&(_0x5133a4=(_0x5c63ba<0x3?_0x2bb372(_0x5133a4):_0x5c63ba>0x3?_0x2bb372(_0x405ff0,_0x50be2e,_0x5133a4):_0x2bb372(_0x405ff0,_0x50be2e))||_0x5133a4);}return _0x5c63ba>0x3&&_0x5133a4&&Object[_0x49945c(0x174)](_0x405ff0,_0x50be2e,_0x5133a4),_0x5133a4;}let _0x16439d={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x375641=class extends _0x542f94[_0x491cb7(0x162)]{constructor(_0x3fb4ef,_0x10fba1,_0x3be3ac,_0x432b40){const _0x123c6d=_0x491cb7;super(),this[_0x123c6d(0x141)]=_0x3fb4ef,this[_0x123c6d(0x17a)]=_0x10fba1,this['_sheetsOutlineModel']=_0x3be3ac,this[_0x123c6d(0x186)]=_0x432b40,this[_0x123c6d(0x11a)]();}['_initCommandInterceptor'](){const _0x281b0e=_0x491cb7;this['disposeWithMe'](this['_sheetInterceptorService'][_0x281b0e(0x121)]({'getMutations':_0xe6b06d=>_0x373bbd(_0xe6b06d,(_0x238e2e,_0x21edc2)=>this['_sheetsOutlineModel'][_0x281b0e(0xff)](_0x238e2e,_0x21edc2),this[_0x281b0e(0x19b)](_0xe6b06d[_0x281b0e(0xfa)]),_0x550b48=>this[_0x281b0e(0x186)][_0x281b0e(0x14e)](_0x550b48))}));}[_0x491cb7(0x19b)](_0x33571a){const _0x2e2810=_0x491cb7;let _0x249862=_0x33571a,_0x4759ae=_0x249862!=null&&_0x249862[_0x2e2810(0xf8)]?this[_0x2e2810(0x141)][_0x2e2810(0x1ac)](_0x249862[_0x2e2810(0xf8)]):this['_univerInstanceService'][_0x2e2810(0x142)](_0x542f94[_0x2e2810(0x1b8)]['UNIVER_SHEET']);if(!_0x4759ae)return;let _0x41b183=_0x249862!=null&&_0x249862['subUnitId']?_0x4759ae[_0x2e2810(0x17d)](_0x249862['subUnitId']):_0x4759ae[_0x2e2810(0x194)]();if(_0x41b183)return{'unitId':_0x4759ae[_0x2e2810(0x109)](),'subUnitId':_0x41b183[_0x2e2810(0x10e)]()};}};_0x375641=_0xef4b3e([_0x4f144e(0x0,_0x542f94[_0x491cb7(0x18d)]),_0x4f144e(0x1,(0x0,_0x542f94['Inject'])(_0x3eb54c['SheetInterceptorService'])),_0x4f144e(0x2,(0x0,_0x542f94['Inject'])(_0x1ecc1c)),_0x4f144e(0x3,(0x0,_0x542f94[_0x491cb7(0x11c)])(_0x5deb47))],_0x375641);function _0x373bbd(_0x3d2e5b,_0x1b91d2,_0x357a00,_0x3b91d6){const _0x2cf3e3=_0x491cb7;let _0x937944=_0x55598b(_0x3d2e5b,_0x357a00);if(!_0x937944)return _0x395f17();let _0xd26660=_0x1b91d2(_0x937944[_0x2cf3e3(0xf8)],_0x937944[_0x2cf3e3(0x1b2)]);if(!_0xd26660[_0x2cf3e3(0x146)](_0xbe1091=>_0xbe1091[_0x2cf3e3(0x16b)]===_0x937944[_0x2cf3e3(0x16b)]))return _0x395f17();_0x1b142d(_0xd26660,_0x937944,_0x3d2e5b['id'],_0x3b91d6);let _0x28bda5=_0x415113(_0x937944,_0xd26660);return{'redos':[{'id':_0x211f11['id'],'params':_0x937944}],'undos':[{'id':_0x211f11['id'],'params':_0x28bda5}],'preRedos':[],'preUndos':[]};}function _0x1b142d(_0x510289,_0x41f6a2,_0x237e8f,_0x32612b){const _0x2cfae0=_0x491cb7;try{switch(_0x41f6a2[_0x2cfae0(0x10c)]){case'insert':_0x128165(_0x510289,_0x41f6a2);break;case _0x2cfae0(0x189):_0x45f76b(_0x510289,_0x41f6a2);break;case _0x2cfae0(0x1b9):_0x219a55(_0x510289,_0x41f6a2);break;}}catch(_0x4b671d){throw _0x32612b==null||_0x32612b({'reason':_0x53fee5(_0x4b671d),'commandId':_0x237e8f,'unitId':_0x41f6a2[_0x2cfae0(0xf8)],'subUnitId':_0x41f6a2[_0x2cfae0(0x1b2)],'axis':_0x41f6a2[_0x2cfae0(0x16b)],'outlineId':_0xd748d5(_0x4b671d)}),new _0x542f94[(_0x2cfae0(0x135))](_0x4b671d instanceof Error?_0x4b671d[_0x2cfae0(0x1bc)]:'Invalid\x20dimension\x20outline\x20mutation');}}function _0x55598b(_0x4cd421,_0x519ad2){const _0x776920=_0x491cb7;switch(_0x4cd421['id']){case _0x3eb54c['InsertRowCommand']['id']:return _0x5596c4(_0x4cd421['params'],_0x776920(0x125),_0x519ad2);case _0x3eb54c[_0x776920(0x18b)]['id']:return _0x5596c4(_0x4cd421[_0x776920(0xfa)],_0x776920(0x158),_0x519ad2);case _0x3eb54c['RemoveRowCommand']['id']:return _0x138de8(_0x4cd421['params'],_0x776920(0x125),_0x519ad2);case _0x3eb54c['RemoveColCommand']['id']:return _0x138de8(_0x4cd421[_0x776920(0xfa)],_0x776920(0x158),_0x519ad2);case _0x3eb54c[_0x776920(0x181)]['id']:return _0x375ed8(_0x4cd421[_0x776920(0xfa)],'row',_0x519ad2);case _0x3eb54c[_0x776920(0x188)]['id']:return _0x375ed8(_0x4cd421[_0x776920(0xfa)],_0x776920(0x158),_0x519ad2);default:return null;}}function _0x5596c4(_0x3a1836,_0xda23dc,_0x33a85b){const _0x27ef54=_0x491cb7;let _0x34fda7=_0x46f6b9(_0x3a1836,_0x33a85b);if(!(_0x3a1836!=null&&_0x3a1836[_0x27ef54(0x1ab)])||!_0x34fda7)return null;let _0x442016=_0xda23dc===_0x27ef54(0x125)?_0x3a1836[_0x27ef54(0x1ab)][_0x27ef54(0x11f)]:_0x3a1836[_0x27ef54(0x1ab)][_0x27ef54(0x185)],_0x51dfb5=_0xda23dc===_0x27ef54(0x125)?_0x3a1836['range']['endRow']:_0x3a1836['range'][_0x27ef54(0x14a)];return{..._0x34fda7,'axis':_0xda23dc,'type':'insert','index':_0x442016,'count':_0x51dfb5-_0x442016+0x1};}function _0x138de8(_0x59361f,_0x3d9779,_0x12a06c){const _0x3e4b1e=_0x491cb7;let _0x4bc806=_0x46f6b9(_0x59361f,_0x12a06c);if(!(_0x59361f!=null&&_0x59361f[_0x3e4b1e(0x1ab)])||!_0x4bc806)return null;let _0xba75de=_0x3d9779==='row'?_0x59361f[_0x3e4b1e(0x1ab)][_0x3e4b1e(0x11f)]:_0x59361f[_0x3e4b1e(0x1ab)][_0x3e4b1e(0x185)],_0x8f1c2d=_0x3d9779===_0x3e4b1e(0x125)?_0x59361f[_0x3e4b1e(0x1ab)][_0x3e4b1e(0x154)]:_0x59361f[_0x3e4b1e(0x1ab)][_0x3e4b1e(0x14a)];return{..._0x4bc806,'axis':_0x3d9779,'type':'delete','start':_0xba75de,'end':_0x8f1c2d};}function _0x375ed8(_0x5a911d,_0x1f0ec5,_0x4d6202){const _0x527ace=_0x491cb7;let _0x1af8b8=_0x46f6b9(_0x5a911d,_0x4d6202);if(!(_0x5a911d!=null&&_0x5a911d[_0x527ace(0x15c)])||!_0x5a911d[_0x527ace(0xfc)]||!_0x1af8b8)return null;let _0x2f0d49=_0x1f0ec5===_0x527ace(0x125)?_0x5a911d[_0x527ace(0x15c)][_0x527ace(0x11f)]:_0x5a911d['fromRange'][_0x527ace(0x185)],_0x39ea63=_0x1f0ec5===_0x527ace(0x125)?_0x5a911d[_0x527ace(0x15c)][_0x527ace(0x154)]:_0x5a911d[_0x527ace(0x15c)]['endColumn'],_0x22da58=_0x1f0ec5===_0x527ace(0x125)?_0x5a911d[_0x527ace(0xfc)][_0x527ace(0x11f)]:_0x5a911d[_0x527ace(0xfc)]['startColumn'];return{..._0x1af8b8,'axis':_0x1f0ec5,'type':_0x527ace(0x1b9),'sourceStart':_0x2f0d49,'sourceEnd':_0x39ea63,'destinationIndex':_0x22da58};}function _0x415113(_0x1e9938,_0x270469){const _0x2ba9ec=_0x491cb7;switch(_0x1e9938[_0x2ba9ec(0x10c)]){case'insert':return{'unitId':_0x1e9938['unitId'],'subUnitId':_0x1e9938[_0x2ba9ec(0x1b2)],'axis':_0x1e9938[_0x2ba9ec(0x16b)],'type':_0x2ba9ec(0x189),'start':_0x1e9938[_0x2ba9ec(0x11b)],'end':_0x1e9938[_0x2ba9ec(0x11b)]+_0x1e9938[_0x2ba9ec(0x127)]-0x1};case'delete':return{'unitId':_0x1e9938[_0x2ba9ec(0xf8)],'subUnitId':_0x1e9938[_0x2ba9ec(0x1b2)],'axis':_0x1e9938[_0x2ba9ec(0x16b)],'type':_0x2ba9ec(0x1a3),'index':_0x1e9938[_0x2ba9ec(0x12f)],'count':_0x1e9938['end']-_0x1e9938[_0x2ba9ec(0x12f)]+0x1,'restoreOutlines':_0x270469[_0x2ba9ec(0x150)](_0x11fe46=>_0x11fe46[_0x2ba9ec(0xf8)]===_0x1e9938[_0x2ba9ec(0xf8)]&&_0x11fe46[_0x2ba9ec(0x1b2)]===_0x1e9938[_0x2ba9ec(0x1b2)]&&_0x11fe46[_0x2ba9ec(0x16b)]===_0x1e9938[_0x2ba9ec(0x16b)])};case _0x2ba9ec(0x1b9):return _0x11b337(_0x1e9938);}}function _0x11b337(_0x16f152){const _0x27a691=_0x491cb7;let _0x3f1ef6=_0x16f152[_0x27a691(0x15f)]-_0x16f152[_0x27a691(0xf5)]+0x1;return _0x16f152['destinationIndex']>=_0x16f152['sourceStart']&&_0x16f152[_0x27a691(0x13c)]<=_0x16f152['sourceEnd']+0x1?{..._0x16f152}:_0x16f152[_0x27a691(0x13c)]>_0x16f152[_0x27a691(0x15f)]+0x1?{..._0x16f152,'sourceStart':_0x16f152[_0x27a691(0x13c)]-_0x3f1ef6,'sourceEnd':_0x16f152[_0x27a691(0x13c)]-0x1,'destinationIndex':_0x16f152['sourceStart']}:{..._0x16f152,'sourceStart':_0x16f152[_0x27a691(0x13c)],'sourceEnd':_0x16f152[_0x27a691(0x13c)]+_0x3f1ef6-0x1,'destinationIndex':_0x16f152[_0x27a691(0x15f)]+0x1};}function _0x46f6b9(_0x1229e1,_0x52c4c7){const _0x233655=_0x491cb7;var _0x13653f,_0x44cc63;let _0x36cc22=(_0x13653f=_0x1229e1==null?void 0x0:_0x1229e1[_0x233655(0xf8)])==null?_0x52c4c7==null?void 0x0:_0x52c4c7['unitId']:_0x13653f,_0x1ad350=(_0x44cc63=_0x1229e1==null?void 0x0:_0x1229e1[_0x233655(0x1b2)])==null?_0x52c4c7==null?void 0x0:_0x52c4c7[_0x233655(0x1b2)]:_0x44cc63;return _0x36cc22&&_0x1ad350?{'unitId':_0x36cc22,'subUnitId':_0x1ad350}:null;}function _0x395f17(){const _0x5b0fef=_0x491cb7;var _0x3a3d04,_0x2d0039;return{'redos':[..._0x16439d[_0x5b0fef(0x1b3)]],'undos':[..._0x16439d['undos']],'preRedos':[...(_0x3a3d04=_0x16439d['preRedos'])==null?[]:_0x3a3d04],'preUndos':[...(_0x2d0039=_0x16439d[_0x5b0fef(0x1a0)])==null?[]:_0x2d0039]};}let _0x520bcf=class extends _0x542f94['Disposable']{constructor(_0x11aeda,_0x2666e7){const _0x9dc308=_0x491cb7;super(),this[_0x9dc308(0x145)]=_0x11aeda,this['_sheetsOutlineModel']=_0x2666e7,this['_initResource']();}[_0x491cb7(0x122)](){const _0x1e3b0f=_0x491cb7;this['disposeWithMe'](this[_0x1e3b0f(0x145)][_0x1e3b0f(0x120)]({'pluginName':_0xb392a7,'businesses':[_0x542f94[_0x1e3b0f(0x1b8)][_0x1e3b0f(0x1c2)]],'toJson':_0x39459f=>JSON[_0x1e3b0f(0x12c)](this[_0x1e3b0f(0x1c4)]['serialize'](_0x39459f)),'parseJson':_0x46456d=>JSON[_0x1e3b0f(0x1b5)](_0x46456d),'onLoad':(_0x1650f5,_0x26ecde)=>this['_sheetsOutlineModel'][_0x1e3b0f(0x15a)](_0x1650f5,_0x26ecde),'onUnLoad':_0x4f98f6=>this[_0x1e3b0f(0x1c4)]['removeUnit'](_0x4f98f6)}));}};_0x520bcf=_0xef4b3e([_0x4f144e(0x0,_0x542f94['IResourceManagerService']),_0x4f144e(0x1,(0x0,_0x542f94[_0x491cb7(0x11c)])(_0x1ecc1c))],_0x520bcf);let _0x4e497e=class extends _0x542f94[_0x491cb7(0x1a7)]{constructor(_0x119f43=_0x590019,_0x3dd585,_0x390be4,_0x214275){const _0x2fa050=_0x491cb7;super(),this[_0x2fa050(0x18f)]=_0x119f43,this[_0x2fa050(0x163)]=_0x3dd585,this[_0x2fa050(0x1a6)]=_0x390be4,this['_configService']=_0x214275;let {..._0x52e80a}=(0x0,_0x542f94['merge'])({},_0x590019,this[_0x2fa050(0x18f)]);this[_0x2fa050(0x14d)]['setConfig'](_0x2fa050(0x170),_0x52e80a);}['onStarting'](){const _0x947ccc=_0x491cb7;this[_0x947ccc(0x163)]['add']([_0x1ecc1c]),this[_0x947ccc(0x163)][_0x947ccc(0x198)]([_0x5deb47]),this[_0x947ccc(0x163)][_0x947ccc(0x198)]([_0x520bcf]),this[_0x947ccc(0x163)][_0x947ccc(0x198)]([_0x375641]),this[_0x947ccc(0xf7)](),this[_0x947ccc(0x163)]['get'](_0x1ecc1c),this[_0x947ccc(0x163)][_0x947ccc(0x1be)](_0x5deb47),this[_0x947ccc(0x163)]['get'](_0x520bcf),this[_0x947ccc(0x163)]['get'](_0x375641);}['_initRegisterCommand'](){const _0x5ce282=_0x491cb7;[_0x38320b,_0x5412e3,_0x2baec9,_0x29a2c8]['forEach'](_0x2469ca=>{const _0x46f6c9=_0x2027;this[_0x46f6c9(0xfe)](this[_0x46f6c9(0x1a6)]['registerCommand'](_0x2469ca));}),[_0x2845da,_0x16b84c,_0x2d4ae8,_0xcbee5d,_0x211f11][_0x5ce282(0x164)](_0x41bd67=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x41bd67));});}};_0x40ff5e(_0x4e497e,_0x491cb7(0x16f),_0xb392a7),_0x40ff5e(_0x4e497e,_0x491cb7(0x1bb),_0x29e61f),_0x40ff5e(_0x4e497e,'version',_0x350d8b),_0x40ff5e(_0x4e497e,'type',_0x542f94[_0x491cb7(0x1b8)][_0x491cb7(0x1c2)]),_0x4e497e=_0xef4b3e([(0x0,_0x542f94[_0x491cb7(0x171)])(_0x49b491['UniverLicensePlugin']),_0x4f144e(0x1,(0x0,_0x542f94['Inject'])(_0x542f94['Injector'])),_0x4f144e(0x2,_0x542f94['ICommandService']),_0x4f144e(0x3,_0x542f94[_0x491cb7(0x133)])],_0x4e497e),_0x3703d4['AddDimensionOutlineCommand']=_0x38320b,_0x3703d4[_0x491cb7(0x1bd)]=_0x2845da,_0x3703d4['ClearDimensionOutlinesCommand']=_0x29a2c8,_0x3703d4[_0x491cb7(0x1b0)]=_0xcbee5d,_0x3703d4[_0x491cb7(0xf6)]=_0x351027,_0x3703d4['DimensionOutlineErrorReason']=_0x46df21,_0x3703d4[_0x491cb7(0x159)]=_0x5412e3,_0x3703d4[_0x491cb7(0x151)]=_0x16b84c,_0x3703d4['SHEET_OUTLINE_PLUGIN']=_0xb392a7,_0x3703d4[_0x491cb7(0x1b1)]=_0x2baec9,_0x3703d4[_0x491cb7(0x115)]=_0x2d4ae8,_0x3703d4[_0x491cb7(0x1a8)]=_0x5deb47,_0x3703d4['SheetsOutlineModel']=_0x1ecc1c,_0x3703d4['TransformDimensionOutlinesMutation']=_0x211f11,Object['defineProperty'](_0x3703d4,_0x491cb7(0x13e),{'enumerable':!0x0,'get':function(){return _0x4e497e;}}),_0x3703d4['buildDimensionOutlineTree']=_0x300939,_0x3703d4[_0x491cb7(0x123)]=_0x41fb92,_0x3703d4[_0x491cb7(0x176)]=_0x50e4af,_0x3703d4[_0x491cb7(0x157)]=_0x127cd9,_0x3703d4[_0x491cb7(0x130)]=_0x45f76b,_0x3703d4[_0x491cb7(0x17e)]=_0x128165,_0x3703d4[_0x491cb7(0x104)]=_0x219a55;}));function _0x1ec9(){const _0x337812=['complete','84355zjVIIN','symbol','endColumn','max','depth','_configService','emit','COLUMN','filter','RemoveDimensionOutlineMutation','amd','max-depth','endRow','offset','Move\x20would\x20split\x20dimension\x20outline:\x20','hasDimensionOutlineViewPermission','column','RemoveDimensionOutlineCommand','deserialize','SheetPermissionCheckController','fromRange','rxjs/operators','mergedOutlines','sourceEnd','63531lqHJel','SetColHiddenMutation','Disposable','_injector','forEach','maxDepth','constructor','split\x20dimension\x20outline','join','getSheetCommandTarget','set','axis','values','WorksheetViewPermission','@univerjs-pro/sheets-outline','pluginName','sheets-outline.config','DependentOn','CROSSING','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','defineProperty','map','getDimensionOutlineViewPermission$','localeCompare','next','prototype','_sheetInterceptorService','entries','valid','getSheetBySheetId','transformOutlinesByInsert','from','pop','MoveRowsCommand','pipe','getRowCount','restoreOutlines','startColumn','_sheetsOutlineErrorService','has','MoveColsCommand','delete','MUTATION','InsertColCommand','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','IUniverInstanceService','split','_config','@univerjs/sheets','630JbsKbl','pushUndoRedo','2532BEuJbj','getActiveSheet','decorate','UniverProLicense','invalid-dimension-outline','add','out-of-bounds','sheet.mutation.set-dimension-outline-collapsed','_getCommandScope','COMMAND','getColumnCount','7007777xIPNgL','SHEET_OUTLINE_PLUGIN','preUndos','Crossing','collapsed','insert','maxIndex','sort','_commandService','Plugin','SheetsOutlineErrorService','reason','getUnitOutlines','range','getUniverSheetInstance','length','find','rxjs','ClearDimensionOutlinesMutation','SetDimensionOutlineCollapsedCommand','subUnitId','redos','clear','parse','sheet.command.add-dimension-outline','outlineId','UniverInstanceType','move','outline','packageName','message','AddDimensionOutlineMutation','get','Invalid\x20outline\x20range','IUndoRedoService','crossing','UNIVER_SHEET','WorkbookViewPermission','_sheetsOutlineModel','sheet.command.clear-dimension-outlines','sheet.command.remove-dimension-outline','operators','permissionPointUpdate$','sourceStart','DimensionOutlineAxis','_initRegisterCommand','unitId','sequenceExecute','params','asObservable','toRange','Invalid\x20dimension\x20outline\x20move\x20source\x20range','disposeWithMe','getOutlines','default','SetRowVisibleMutation','permissionCheckWithoutRange','result','transformOutlinesByMove','move-splits-outline','IPermissionService','5562400ebGXNJ','_change$','getUnitId','end','invalid-range','type','push','getSheetId','CommandType','includes','children','6QWkbWE','min','627RNoiWh','SetDimensionOutlineCollapsedMutation','UniverProSheetsOutline','clear-range-not-contain-outline','_outlines','object','_initCommandInterceptor','index','Inject','Subject','sheet.mutation.remove-dimension-outline','startRow','registerPluginResource','interceptCommand','_initResource','canAddDimensionOutline','3560115yWuXLh','row','sheet.command.set-dimension-outline-collapsed','count','setOutlines','name','unknown','function','stringify','removeUnit','MAX_DEPTH','start','transformOutlinesByDelete','serialize','getMaxColumns','IConfigService','dispose','CustomCommandExecutionError','_error$','getOwnPropertyDescriptor','_ensureUnitOutlines','2389820PQMEzb','outlineList','startWith','destinationIndex','call','UniverSheetsOutlinePlugin','ICommandService','@univerjs-pro/license','_univerInstanceService','getCurrentUnitOfType','Module','string','_resourceManagerService','some'];_0x1ec9=function(){return _0x337812;};return _0x1ec9();}
1
+ function _0x171f(_0x29889c,_0x43b929){_0x29889c=_0x29889c-0x132;const _0x30dd4c=_0x30dd();let _0x171f7d=_0x30dd4c[_0x29889c];return _0x171f7d;}function _0x30dd(){const _0x4e98b3=['interceptCommand','max','77065bpNKFq','sourceStart','message','ROW','iterator','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','toRange','restoreOutlines','permissionCheckWithoutRange','asObservable','has','getRowCount','getUnitId','getMaxColumns','params','_ensureUnitOutlines','_initCommandInterceptor','default','getColumnCount','Move\x20would\x20split\x20dimension\x20outline:\x20','setConfig','debounceTime','_outlines','MoveColsCommand','preUndos','UniverLicensePlugin','CommandType','children','COMMAND','symbol','entries','569968IQkFTv','version','sheet.command.add-dimension-outline','mergedOutlines','destinationIndex','start','_sheetInterceptorService','183pUcSlq','IUniverInstanceService','sequenceExecute','5152tYWlsf','WorksheetViewPermission','split','RemoveDimensionOutlineCommand','defineProperty','outlineList','forEach','collapsed','outlineId','subUnitId','@univerjs-pro/license','getSheetId','DimensionOutlineErrorReason','toPrimitive','type','getSheetBySheetId','offset','_commandService','redos','decorate','SheetsOutlineErrorService','insert','MUTATION','_error$','registerPluginResource','DimensionOutlineAxis','AddDimensionOutlineCommand','RemoveColCommand','TransformDimensionOutlinesMutation','some','maxIndex','add','ClearDimensionOutlinesCommand','_configService','outline','result','invalid-range','complete','RemoveDimensionOutlineMutation','sheets-outline.config','filter','split\x20dimension\x20outline','startColumn','SetRowHiddenMutation','sheet.mutation.clear-dimension-outlines','InsertColCommand','@univerjs/core','UniverProLicense','depth','axis','end','max-depth','getSheetCommandTarget','dimension-outline-','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','exports','range','IConfigService','AddDimensionOutlineMutation','next','getUniverSheetInstance','SetDimensionOutlineCollapsedCommand','pushUndoRedo','function','IUndoRedoService','_initResource','24mZlUKk','IPermissionService','removeUnit','emit','canAddDimensionOutline','_initRegisterCommand','index','sheet.command.set-dimension-outline-collapsed','mergedOutline','RemoveRowCommand','values','error$','transformOutlinesByInsert','sort','call','localeCompare','min','object','Module','get','Injector','dispose','SHEET_OUTLINE_PLUGIN','getCurrentUnitOfType','preRedos','prototype','MoveRowsCommand','join','buildDimensionOutlineTree','push','setOutlines','Invalid\x20outline\x20range','SheetsOutlineModel','stringify','_sheetsOutlineModel','onStarting','ClearDimensionOutlinesMutation','UniverProSheetsOutline','fromRange','SetDimensionOutlineCollapsedMutation','maxDepth','getDimensionOutlineViewPermission$','_change$','unknown','MOVE_SPLITS_OUTLINE','count','change$','parse','endRow','disposeWithMe','@univerjs-pro/sheets-outline','_resourceManagerService','transformOutlinesByMove','out-of-bounds','sheet.command.clear-dimension-outlines','reason','hasDimensionOutlineViewPermission','sourceEnd','amd','getOwnPropertyDescriptor','_injector','Subject','invalid-dimension-outline','length','_univerInstanceService','operators','includes','crossing','string','Invalid\x20dimension\x20outline\x20mutation','Inject','column','map','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','sheet.mutation.set-dimension-outline-collapsed','deserialize','valid','@univerjs/sheets','delete','36664EmjuaW','sheet.mutation.remove-dimension-outline','move','set','UniverSheets','COLUMN','OUT_OF_BOUNDS','row','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ICommandService','UniverInstanceType','packageName','2652786yXkzTN','registerCommand','469385JoRUkE','UNKNOWN','CROSSING','getOutlines','_sheetsOutlineErrorService','clear','startRow','clear-range-not-contain-outline','_getCommandScope','_config','UNIVER_SHEET','unitId','serialize','36995CDZLKr','DimensionOutlineError','SetRowVisibleMutation','find','1.0.0-alpha.6','rxjs','Disposable','WorkbookViewPermission','move-splits-outline','getUnitOutlines'];_0x30dd=function(){return _0x4e98b3;};return _0x30dd();}(function(_0x9a0485,_0x3acc4b){const _0x59e596=_0x171f,_0x587f72=_0x9a0485();while(!![]){try{const _0x201ae2=-parseInt(_0x59e596(0x1fe))/0x1+-parseInt(_0x59e596(0x152))/0x2*(-parseInt(_0x59e596(0x14f))/0x3)+parseInt(_0x59e596(0x148))/0x4+parseInt(_0x59e596(0x20a))/0x5*(parseInt(_0x59e596(0x194))/0x6)+parseInt(_0x59e596(0x1f1))/0x7+parseInt(_0x59e596(0x1e3))/0x8+-parseInt(_0x59e596(0x1ef))/0x9;if(_0x201ae2===_0x3acc4b)break;else _0x587f72['push'](_0x587f72['shift']());}catch(_0x38cf69){_0x587f72['push'](_0x587f72['shift']());}}}(_0x30dd,0x18b31),function(_0xe9aa83,_0x480753){const _0x477692=_0x171f;typeof exports=='object'&&typeof module<'u'?_0x480753(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x477692(0x1ce)]?define([_0x477692(0x189),_0x477692(0x180),_0x477692(0x1e1),_0x477692(0x203),'rxjs/operators',_0x477692(0x15c)],_0x480753):(_0xe9aa83=typeof globalThis<'u'?globalThis:_0xe9aa83||self,_0x480753(_0xe9aa83[_0x477692(0x1b9)]={},_0xe9aa83['UniverCore'],_0xe9aa83[_0x477692(0x1e7)],_0xe9aa83[_0x477692(0x203)],_0xe9aa83['rxjs'][_0x477692(0x1d5)],_0xe9aa83[_0x477692(0x181)]));}(this,function(_0x17a4bd,_0x38c2f1,_0x31c888,_0x529961,_0x2d2257,_0x4c4f2f){const _0x896dd0=_0x171f;Object[_0x896dd0(0x156)](_0x17a4bd,Symbol['toStringTag'],{'value':_0x896dd0(0x1a6)});let _0x551cb2=function(_0x2ae0af){const _0x355064=_0x896dd0;return _0x2ae0af[_0x355064(0x20d)]=_0x355064(0x1ea),_0x2ae0af[_0x355064(0x1e8)]='column',_0x2ae0af;}({}),_0x120eb6=function(_0x226ee1){const _0x16223f=_0x896dd0;return _0x226ee1['INVALID_RANGE']=_0x16223f(0x176),_0x226ee1[_0x16223f(0x1e9)]='out-of-bounds',_0x226ee1[_0x16223f(0x1f3)]='crossing',_0x226ee1['MAX_DEPTH']='max-depth',_0x226ee1[_0x16223f(0x1c0)]=_0x16223f(0x206),_0x226ee1[_0x16223f(0x20f)]=_0x16223f(0x1f8),_0x226ee1[_0x16223f(0x1f2)]=_0x16223f(0x1bf),_0x226ee1;}({});var _0x2bff48=class extends Error{constructor(_0x2e5ce0,_0x328aa6,_0x916f2){const _0x19b3df=_0x896dd0;super(_0x328aa6),this['reason']=_0x2e5ce0,this['outlineId']=_0x916f2,this['name']=_0x19b3df(0x1ff);}};function _0x43fc87(_0x2a0a93){const _0x53c2d8=_0x896dd0;return _0x2a0a93 instanceof _0x2bff48?_0x2a0a93['reason']:_0x2a0a93 instanceof Error?_0x2a0a93[_0x53c2d8(0x20c)]['includes'](_0x53c2d8(0x17b))?'move-splits-outline':_0x2a0a93[_0x53c2d8(0x20c)]['includes'](_0x53c2d8(0x182))?_0x53c2d8(0x185):_0x2a0a93[_0x53c2d8(0x20c)][_0x53c2d8(0x1d6)]('Crossing')?_0x53c2d8(0x1d7):_0x2a0a93[_0x53c2d8(0x20c)]['includes']('range')?_0x53c2d8(0x176):_0x53c2d8(0x1bf):_0x53c2d8(0x1bf);}function _0x119448(_0x28d589){const _0x4eda13=_0x896dd0;return _0x28d589 instanceof _0x2bff48?_0x28d589[_0x4eda13(0x15a)]:void 0x0;}let _0x81d79d=0x2**0x35-0x1;function _0x361a84(_0x579d1f,_0x59f2c5){const _0xdf5604=_0x896dd0;return _0x579d1f[_0xdf5604(0x1fc)]===_0x59f2c5['unitId']&&_0x579d1f[_0xdf5604(0x15b)]===_0x59f2c5['subUnitId']&&_0x579d1f[_0xdf5604(0x183)]===_0x59f2c5[_0xdf5604(0x183)];}function _0x2723d3(_0x193653,_0x4b9f3b={}){const _0x4d8e88=_0x896dd0;var _0x11576d;let _0x5c3067=(_0x11576d=_0x4b9f3b[_0x4d8e88(0x1bc)])==null?0x8:_0x11576d,_0x31abc5=new Map();for(let _0xe5dfe2 of _0x193653){let _0x404057=_0xe5dfe2[_0x4d8e88(0x1fc)]+':'+_0xe5dfe2[_0x4d8e88(0x15b)]+':'+_0xe5dfe2[_0x4d8e88(0x183)],_0x409164=_0x31abc5['get'](_0x404057);_0x409164?_0x409164[_0x4d8e88(0x1b1)](_0xe5dfe2):_0x31abc5[_0x4d8e88(0x1e6)](_0x404057,[_0xe5dfe2]);}let _0x108bcd=[];for(let _0x36b7f7 of _0x31abc5[_0x4d8e88(0x19e)]()){let _0x4ed71c=[..._0x36b7f7][_0x4d8e88(0x1a1)](_0x4badbc),_0x1928db=[];for(let _0x2fc7f1 of _0x4ed71c){for(_0x175d8a(_0x2fc7f1);_0x1928db['length']>0x0&&_0x2fc7f1[_0x4d8e88(0x14d)]>_0x1928db[_0x1928db[_0x4d8e88(0x1d3)]-0x1][_0x4d8e88(0x184)];)_0x1928db['pop']();let _0x2e0f46=_0x1928db[_0x1928db[_0x4d8e88(0x1d3)]-0x1];if(_0x2e0f46&&_0x2fc7f1['end']>_0x2e0f46['end'])throw new _0x2bff48('crossing',_0x4d8e88(0x1dd),_0x2fc7f1['id']);let _0x56dd4c=_0x2e0f46?_0x2e0f46[_0x4d8e88(0x182)]+0x1:0x1;if(_0x56dd4c>_0x5c3067)throw new _0x2bff48('max-depth',_0x4d8e88(0x188)+_0x5c3067,_0x2fc7f1['id']);let _0x1d2b80={..._0x2fc7f1,'depth':_0x56dd4c,'parentId':_0x2e0f46==null?void 0x0:_0x2e0f46['id'],'anchor':_0x2fc7f1[_0x4d8e88(0x184)],'children':[]};_0x2e0f46?_0x2e0f46[_0x4d8e88(0x144)][_0x4d8e88(0x1b1)](_0x1d2b80):_0x108bcd['push'](_0x1d2b80),_0x1928db['push'](_0x1d2b80);}}return _0x108bcd;}function _0x38c8e3(_0x41f77b,_0x311bcd,_0x1d92a2={}){const _0x591d25=_0x896dd0;if(_0x311bcd[_0x591d25(0x14d)]<0x0||_0x311bcd[_0x591d25(0x14d)]>_0x311bcd[_0x591d25(0x184)])return{'valid':!0x1,'reason':_0x591d25(0x176)};if(_0x1d92a2['maxIndex']!=null&&_0x311bcd[_0x591d25(0x184)]>=_0x1d92a2[_0x591d25(0x170)])return{'valid':!0x1,'reason':_0x591d25(0x1c9)};let _0x2e67bf=_0x41f77b['filter'](_0x27810d=>_0x361a84(_0x27810d,_0x311bcd));for(let _0x3b579d of _0x2e67bf)if(_0x3566e2(_0x3b579d,_0x311bcd))return{'valid':!0x1,'reason':'crossing'};try{_0x2723d3([..._0x41f77b,_0x311bcd],_0x1d92a2);}catch(_0x39e217){let _0x28065c=_0x43fc87(_0x39e217);return _0x28065c==='max-depth'?{'valid':!0x1,'reason':_0x591d25(0x185)}:_0x28065c===_0x591d25(0x176)?{'valid':!0x1,'reason':_0x591d25(0x176)}:{'valid':!0x1,'reason':_0x591d25(0x1d7)};}return{'valid':!0x0};}function _0x121b9f(_0x5ce69f,_0x9ad7d4,_0x36d60e={}){const _0x5adf32=_0x896dd0;let _0x2dc170=_0x38c8e3(_0x5ce69f,_0x9ad7d4,_0x36d60e);if(!_0x2dc170[_0x5adf32(0x1e0)]){var _0x43ed3b;throw Error((_0x43ed3b=_0x2dc170[_0x5adf32(0x1cb)])==null?_0x5adf32(0x1d2):_0x43ed3b);}return[..._0x5ce69f,_0x9ad7d4];}function _0x1b1a64(_0x41454b,_0x34a761){const _0x2d0516=_0x896dd0;let _0x52c6f6=_0x34a761[_0x2d0516(0x14d)],_0x12ceb4=_0x34a761[_0x2d0516(0x184)],_0x55d593=[],_0x4c8530=!0x0;for(;_0x4c8530;){_0x4c8530=!0x1;for(let _0x1ec77e of _0x41454b)_0x55d593['includes'](_0x1ec77e)||!_0x361a84(_0x1ec77e,_0x34a761)||!_0x467c9b(_0x1ec77e['start'],_0x1ec77e[_0x2d0516(0x184)],_0x52c6f6,_0x12ceb4)||(_0x55d593[_0x2d0516(0x1b1)](_0x1ec77e),_0x52c6f6=Math['min'](_0x52c6f6,_0x1ec77e[_0x2d0516(0x14d)]),_0x12ceb4=Math[_0x2d0516(0x209)](_0x12ceb4,_0x1ec77e[_0x2d0516(0x184)]),_0x4c8530=!0x0);}if(_0x55d593[_0x2d0516(0x1d3)]===0x0)return null;let [_0x5e8ff5]=[..._0x55d593][_0x2d0516(0x1a1)](_0x4badbc);return{'mergedOutline':{..._0x5e8ff5,'start':_0x52c6f6,'end':_0x12ceb4},'mergedOutlines':_0x55d593};}function _0x3fc6c3(_0x30e710,_0x139250){const _0x4329e5=_0x896dd0;return _0x30e710['filter'](_0x252281=>_0x361a84(_0x252281,_0x139250)?!(_0x252281[_0x4329e5(0x14d)]>=_0x139250[_0x4329e5(0x14d)]&&_0x252281[_0x4329e5(0x184)]<=_0x139250[_0x4329e5(0x184)]):!0x0);}function _0x3be709(_0x1d2d57,_0x2f8807,_0x3e088b,_0x4baf14){const _0x19330e=_0x896dd0;return _0x3f4a4b(_0x1d2d57[_0x19330e(0x17a)](_0x2f37e5=>_0x2f37e5[_0x19330e(0x1fc)]===_0x2f8807&&_0x2f37e5[_0x19330e(0x15b)]===_0x3e088b&&_0x2f37e5[_0x19330e(0x183)]===_0x4baf14&&_0x2f37e5[_0x19330e(0x159)])[_0x19330e(0x1dc)](_0x1fc596=>({'start':_0x1fc596['start'],'end':_0x1fc596[_0x19330e(0x184)]})));}function _0x3f4a4b(_0x52806f){const _0x9d556c=_0x896dd0;if(_0x52806f[_0x9d556c(0x1d3)]===0x0)return[];let _0x22aad1=[..._0x52806f]['sort']((_0x192738,_0x298b65)=>_0x192738[_0x9d556c(0x14d)]-_0x298b65['start']||_0x192738['end']-_0x298b65[_0x9d556c(0x184)]),_0x151e41=[];for(let _0xb11c05 of _0x22aad1){let _0x137685=_0x151e41[_0x151e41['length']-0x1];!_0x137685||_0xb11c05[_0x9d556c(0x14d)]>_0x137685['end']+0x1?_0x151e41[_0x9d556c(0x1b1)]({..._0xb11c05}):_0x137685['end']=Math[_0x9d556c(0x209)](_0x137685['end'],_0xb11c05[_0x9d556c(0x184)]);}return _0x151e41;}function _0x1a3656(_0x59f41d,_0x3c5032){const _0x5511a0=_0x896dd0;return _0x3c5032[_0x5511a0(0x1c1)]<=0x0?_0x59f41d:_0x1b78f6(_0x59f41d[_0x5511a0(0x1dc)](_0x3b46ca=>_0x361a84(_0x3b46ca,_0x3c5032)?_0x3c5032['index']<=_0x3b46ca['start']?{..._0x3b46ca,'start':_0x3b46ca['start']+_0x3c5032[_0x5511a0(0x1c1)],'end':_0x3b46ca[_0x5511a0(0x184)]+_0x3c5032['count']}:_0x3b46ca['start']<_0x3c5032['index']&&_0x3c5032[_0x5511a0(0x19a)]<=_0x3b46ca[_0x5511a0(0x184)]?{..._0x3b46ca,'end':_0x3b46ca['end']+_0x3c5032[_0x5511a0(0x1c1)]}:_0x3b46ca:_0x3b46ca));}function _0x2aa3a0(_0x1e8cce,_0x31cd4f){const _0x5c105e=_0x896dd0;if(_0x31cd4f['start']>_0x31cd4f['end'])return _0x1e8cce;let _0x24083c=_0x31cd4f[_0x5c105e(0x184)]-_0x31cd4f[_0x5c105e(0x14d)]+0x1,_0x157968=[];for(let _0x47338a of _0x1e8cce){if(!_0x361a84(_0x47338a,_0x31cd4f)){_0x157968[_0x5c105e(0x1b1)](_0x47338a);continue;}if(_0x47338a[_0x5c105e(0x184)]<_0x31cd4f[_0x5c105e(0x14d)]){_0x157968['push'](_0x47338a);continue;}if(_0x47338a[_0x5c105e(0x14d)]>_0x31cd4f[_0x5c105e(0x184)]){_0x157968['push']({..._0x47338a,'start':_0x47338a[_0x5c105e(0x14d)]-_0x24083c,'end':_0x47338a[_0x5c105e(0x184)]-_0x24083c});continue;}let _0x3269e1=Math['max'](_0x47338a[_0x5c105e(0x14d)],_0x31cd4f[_0x5c105e(0x14d)]),_0x907a56=Math[_0x5c105e(0x1a4)](_0x47338a['end'],_0x31cd4f[_0x5c105e(0x184)]),_0x4f92fe=Math['max'](0x0,_0x907a56-_0x3269e1+0x1),_0x58a301=_0x47338a['end']-_0x47338a[_0x5c105e(0x14d)]+0x1-_0x4f92fe;if(_0x58a301<=0x0)continue;let _0x111af3=_0x47338a[_0x5c105e(0x14d)]<_0x31cd4f['start']?_0x47338a['start']:_0x31cd4f[_0x5c105e(0x14d)];_0x157968[_0x5c105e(0x1b1)]({..._0x47338a,'start':_0x111af3,'end':_0x111af3+_0x58a301-0x1});}return _0x1b78f6(_0x157968);}function _0x523aa3(_0x9d0b09,_0x4e75cd){const _0x413ff1=_0x896dd0;if(_0x4e75cd[_0x413ff1(0x20b)]>_0x4e75cd[_0x413ff1(0x1cd)])return _0x9d0b09;let _0x44a6b6=[];for(let _0x14d06c of _0x9d0b09){if(!_0x361a84(_0x14d06c,_0x4e75cd)){_0x44a6b6[_0x413ff1(0x1b1)](_0x14d06c);continue;}let _0x9fae6f=_0x1dc2ac(_0x14d06c,_0x4e75cd);if(_0x9fae6f[_0x413ff1(0x160)]==='split')throw new _0x2bff48('move-splits-outline',_0x413ff1(0x13c)+_0x14d06c['id'],_0x14d06c['id']);_0x44a6b6['push'](_0x9fae6f[_0x413ff1(0x174)]);}return _0x1b78f6(_0x44a6b6);}function _0x1dc2ac(_0x5e3a59,_0x4c7f36){const _0x49ea87=_0x896dd0;let _0xe40a2b=_0x2a05e1(_0x4c7f36[_0x49ea87(0x20b)],_0x4c7f36[_0x49ea87(0x1cd)]+0x1,_0x4c7f36[_0x49ea87(0x14c)]),_0x283520=[],_0x40def0={'start':_0x5e3a59[_0x49ea87(0x14d)],'end':_0x5e3a59[_0x49ea87(0x184)]+0x1};for(let _0x18fda8 of _0xe40a2b){let _0x54dd31=_0x5acfc(_0x40def0,_0x18fda8[_0x49ea87(0x18a)]);_0x54dd31&&_0x283520[_0x49ea87(0x1b1)]({'start':_0x54dd31[_0x49ea87(0x14d)]+_0x18fda8[_0x49ea87(0x162)],'end':_0x54dd31[_0x49ea87(0x184)]+_0x18fda8['offset']});}let _0x2f1b90=_0x277ba8(_0x283520);return _0x2f1b90[_0x49ea87(0x1d3)]===0x1?{'type':'ok','outline':{..._0x5e3a59,'start':_0x2f1b90[0x0][_0x49ea87(0x14d)],'end':_0x2f1b90[0x0][_0x49ea87(0x184)]-0x1}}:{'type':_0x49ea87(0x154),'outline':_0x5e3a59,'ranges':_0x2f1b90};}function _0x2a05e1(_0x885077,_0x4d9435,_0x109b04){let _0xb7e2c6=_0x4d9435-_0x885077;if(_0xb7e2c6<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x109b04>=_0x885077&&_0x109b04<=_0x4d9435?[{'range':{'start':0x0,'end':_0x81d79d},'offset':0x0}]:_0x109b04<_0x885077?[{'range':{'start':0x0,'end':_0x109b04},'offset':0x0},{'range':{'start':_0x109b04,'end':_0x885077},'offset':_0xb7e2c6},{'range':{'start':_0x885077,'end':_0x4d9435},'offset':_0x109b04-_0x885077},{'range':{'start':_0x4d9435,'end':_0x81d79d},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x885077},'offset':0x0},{'range':{'start':_0x885077,'end':_0x4d9435},'offset':_0x109b04-_0x4d9435},{'range':{'start':_0x4d9435,'end':_0x109b04},'offset':-_0xb7e2c6},{'range':{'start':_0x109b04,'end':_0x81d79d},'offset':0x0}];}function _0x5acfc(_0x520960,_0x2795b1){const _0x4ae1df=_0x896dd0;let _0x257fc6=Math[_0x4ae1df(0x209)](_0x520960[_0x4ae1df(0x14d)],_0x2795b1[_0x4ae1df(0x14d)]),_0x4a27fd=Math[_0x4ae1df(0x1a4)](_0x520960[_0x4ae1df(0x184)],_0x2795b1['end']);return _0x257fc6>=_0x4a27fd?null:{'start':_0x257fc6,'end':_0x4a27fd};}function _0x277ba8(_0x183da9){const _0x2545f5=_0x896dd0;if(_0x183da9[_0x2545f5(0x1d3)]===0x0)return[];let _0x192b75=[..._0x183da9]['sort']((_0x152285,_0x1a19ea)=>_0x152285[_0x2545f5(0x14d)]-_0x1a19ea[_0x2545f5(0x14d)]||_0x152285[_0x2545f5(0x184)]-_0x1a19ea['end']),_0x252334=[];for(let _0x195897 of _0x192b75){let _0x4379f9=_0x252334[_0x252334['length']-0x1];!_0x4379f9||_0x195897[_0x2545f5(0x14d)]>_0x4379f9[_0x2545f5(0x184)]?_0x252334['push']({..._0x195897}):_0x4379f9[_0x2545f5(0x184)]=Math[_0x2545f5(0x209)](_0x4379f9[_0x2545f5(0x184)],_0x195897[_0x2545f5(0x184)]);}return _0x252334;}function _0x467c9b(_0x51319b,_0x393b1a,_0x45dd8a,_0x108cef){return _0x393b1a+0x1===_0x45dd8a||_0x108cef+0x1===_0x51319b;}function _0x1b78f6(_0x382efb){let _0x147553=_0x425cef(_0x382efb);return _0x2723d3(_0x147553),_0x147553;}function _0x425cef(_0x4505a4){const _0x538be1=_0x896dd0;let _0x40fcfc=new Map();for(let _0x22a7b1 of _0x4505a4){let _0x174097=[_0x22a7b1[_0x538be1(0x1fc)],_0x22a7b1['subUnitId'],_0x22a7b1['axis'],_0x22a7b1['start'],_0x22a7b1[_0x538be1(0x184)]][_0x538be1(0x1af)](':'),_0x124673=_0x40fcfc[_0x538be1(0x1a7)](_0x174097);if(!_0x124673){_0x40fcfc[_0x538be1(0x1e6)](_0x174097,_0x22a7b1);continue;}_0x40fcfc[_0x538be1(0x1e6)](_0x174097,{..._0x124673,'collapsed':_0x124673[_0x538be1(0x159)]||_0x22a7b1[_0x538be1(0x159)]});}return Array['from'](_0x40fcfc[_0x538be1(0x19e)]());}function _0x4badbc(_0x3b3a7d,_0x59f5a1){const _0x78dc08=_0x896dd0;return _0x3b3a7d[_0x78dc08(0x1fc)]===_0x59f5a1['unitId']?_0x3b3a7d[_0x78dc08(0x15b)]===_0x59f5a1['subUnitId']?_0x3b3a7d[_0x78dc08(0x183)]===_0x59f5a1['axis']?_0x3b3a7d[_0x78dc08(0x14d)]===_0x59f5a1[_0x78dc08(0x14d)]?_0x59f5a1[_0x78dc08(0x184)]-_0x3b3a7d[_0x78dc08(0x184)]:_0x3b3a7d[_0x78dc08(0x14d)]-_0x59f5a1['start']:_0x3b3a7d[_0x78dc08(0x183)][_0x78dc08(0x1a3)](_0x59f5a1[_0x78dc08(0x183)]):_0x3b3a7d['subUnitId'][_0x78dc08(0x1a3)](_0x59f5a1['subUnitId']):_0x3b3a7d['unitId'][_0x78dc08(0x1a3)](_0x59f5a1[_0x78dc08(0x1fc)]);}function _0x175d8a(_0x313c20){const _0x46b166=_0x896dd0;if(_0x313c20[_0x46b166(0x14d)]>_0x313c20[_0x46b166(0x184)])throw new _0x2bff48('invalid-range',_0x46b166(0x1b3),_0x313c20['id']);}function _0x3566e2(_0x57a717,_0x4f2020){const _0x4fc9bc=_0x896dd0;let _0x4ab8e0=_0x57a717[_0x4fc9bc(0x14d)]<=_0x4f2020[_0x4fc9bc(0x184)]&&_0x4f2020[_0x4fc9bc(0x14d)]<=_0x57a717[_0x4fc9bc(0x184)],_0x2832eb=_0x57a717[_0x4fc9bc(0x14d)]<=_0x4f2020[_0x4fc9bc(0x14d)]&&_0x4f2020['end']<=_0x57a717[_0x4fc9bc(0x184)],_0x1f5bed=_0x4f2020['start']<=_0x57a717[_0x4fc9bc(0x14d)]&&_0x57a717[_0x4fc9bc(0x184)]<=_0x4f2020['end'];return _0x4ab8e0&&!_0x2832eb&&!_0x1f5bed;}function _0x129525(_0x1bc2d0){'@babel/helpers - typeof';const _0x19532c=_0x896dd0;return _0x129525=typeof Symbol==_0x19532c(0x191)&&typeof Symbol[_0x19532c(0x20e)]=='symbol'?function(_0xc75fb7){return typeof _0xc75fb7;}:function(_0x412b45){const _0x466f44=_0x19532c;return _0x412b45&&typeof Symbol=='function'&&_0x412b45['constructor']===Symbol&&_0x412b45!==Symbol[_0x466f44(0x1ad)]?_0x466f44(0x146):typeof _0x412b45;},_0x129525(_0x1bc2d0);}function _0x29112e(_0x8b5e53,_0x6c55ec){const _0x48e63e=_0x896dd0;if(_0x129525(_0x8b5e53)!=_0x48e63e(0x1a5)||!_0x8b5e53)return _0x8b5e53;var _0x337d2c=_0x8b5e53[Symbol[_0x48e63e(0x15f)]];if(_0x337d2c!==void 0x0){var _0x2c4545=_0x337d2c[_0x48e63e(0x1a2)](_0x8b5e53,_0x6c55ec||_0x48e63e(0x13a));if(_0x129525(_0x2c4545)!=_0x48e63e(0x1a5))return _0x2c4545;throw TypeError(_0x48e63e(0x1eb));}return(_0x6c55ec===_0x48e63e(0x1d8)?String:Number)(_0x8b5e53);}function _0x3bcdce(_0x2f9172){const _0x14bfdc=_0x896dd0;var _0x2c21f8=_0x29112e(_0x2f9172,_0x14bfdc(0x1d8));return _0x129525(_0x2c21f8)==_0x14bfdc(0x146)?_0x2c21f8:_0x2c21f8+'';}function _0x4b3eed(_0x5af02c,_0x2e1838,_0x25d308){const _0x264d3b=_0x896dd0;return(_0x2e1838=_0x3bcdce(_0x2e1838))in _0x5af02c?Object[_0x264d3b(0x156)](_0x5af02c,_0x2e1838,{'value':_0x25d308,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5af02c[_0x2e1838]=_0x25d308,_0x5af02c;}var _0x2bcb7b=class extends _0x38c2f1[_0x896dd0(0x204)]{constructor(..._0x18fe89){const _0x3943a8=_0x896dd0;super(..._0x18fe89),_0x4b3eed(this,'_outlines',new Map()),_0x4b3eed(this,_0x3943a8(0x1be),new _0x529961[(_0x3943a8(0x1d1))]()),_0x4b3eed(this,_0x3943a8(0x1c2),this[_0x3943a8(0x1be)][_0x3943a8(0x132)]());}[_0x896dd0(0x1f4)](_0x5ea7be,_0x5336a9){const _0x5bce78=_0x896dd0;var _0x4497ab,_0x2e90ae;return[...(_0x4497ab=(_0x2e90ae=this[_0x5bce78(0x13f)]['get'](_0x5ea7be))==null?void 0x0:_0x2e90ae['get'](_0x5336a9))==null?[]:_0x4497ab];}[_0x896dd0(0x207)](_0x1494f3){const _0x35bc7f=_0x896dd0;let _0x1b1f37=this[_0x35bc7f(0x13f)][_0x35bc7f(0x1a7)](_0x1494f3),_0x24dff6=new Map();return _0x1b1f37==null||_0x1b1f37[_0x35bc7f(0x158)]((_0x467887,_0x53dd44)=>{_0x24dff6['set'](_0x53dd44,[..._0x467887]);}),_0x24dff6;}[_0x896dd0(0x1b2)](_0x153b5c,_0x5c3ae0,_0x2aaa95){const _0x5385c3=_0x896dd0;this[_0x5385c3(0x138)](_0x153b5c)[_0x5385c3(0x1e6)](_0x5c3ae0,[..._0x2aaa95]),this[_0x5385c3(0x1be)][_0x5385c3(0x18d)]({'unitId':_0x153b5c,'subUnitId':_0x5c3ae0});}[_0x896dd0(0x196)](_0x357e6d){const _0x529197=_0x896dd0;this[_0x529197(0x13f)][_0x529197(0x1e2)](_0x357e6d),this[_0x529197(0x1be)][_0x529197(0x18d)]({'unitId':_0x357e6d});}[_0x896dd0(0x1fd)](_0x1d457b){const _0x35cea5=_0x896dd0;let _0x1aca1b=this[_0x35cea5(0x13f)][_0x35cea5(0x1a7)](_0x1d457b),_0x28db4f={};return _0x1aca1b==null||_0x1aca1b[_0x35cea5(0x158)]((_0x232eec,_0x18cec8)=>{_0x28db4f[_0x18cec8]={'outlineList':[..._0x232eec]};}),_0x28db4f;}[_0x896dd0(0x1df)](_0x3ba952,_0x145f77){const _0x58cf3f=_0x896dd0;let _0x2fa80e=new Map();Object[_0x58cf3f(0x147)](_0x145f77)[_0x58cf3f(0x158)](([_0x27a0a5,_0x3dc31f])=>{const _0x388cde=_0x58cf3f;var _0x20e048;_0x2fa80e[_0x388cde(0x1e6)](_0x27a0a5,[...(_0x20e048=_0x3dc31f[_0x388cde(0x157)])==null?[]:_0x20e048]);}),this[_0x58cf3f(0x13f)][_0x58cf3f(0x1e6)](_0x3ba952,_0x2fa80e),this[_0x58cf3f(0x1be)][_0x58cf3f(0x18d)]({'unitId':_0x3ba952});}[_0x896dd0(0x1a9)](){const _0xcdde48=_0x896dd0;super[_0xcdde48(0x1a9)](),this[_0xcdde48(0x13f)][_0xcdde48(0x1f6)](),this[_0xcdde48(0x1be)]['complete']();}[_0x896dd0(0x138)](_0x36e871){const _0x2fad33=_0x896dd0;let _0x3341ab=this['_outlines'][_0x2fad33(0x1a7)](_0x36e871);return _0x3341ab||(_0x3341ab=new Map(),this['_outlines'][_0x2fad33(0x1e6)](_0x36e871,_0x3341ab)),_0x3341ab;}},_0x540d14=class extends _0x38c2f1[_0x896dd0(0x204)]{constructor(..._0x427c4f){const _0x259b7e=_0x896dd0;super(..._0x427c4f),_0x4b3eed(this,_0x259b7e(0x169),new _0x529961['Subject']()),_0x4b3eed(this,_0x259b7e(0x19f),this[_0x259b7e(0x169)][_0x259b7e(0x132)]());}[_0x896dd0(0x197)](_0x207385){const _0x2b51d4=_0x896dd0;this[_0x2b51d4(0x169)][_0x2b51d4(0x18d)](_0x207385);}[_0x896dd0(0x1a9)](){const _0x4d7528=_0x896dd0;super['dispose'](),this[_0x4d7528(0x169)][_0x4d7528(0x177)]();}};let _0x4d4e6d={'id':'sheet.mutation.add-dimension-outline','type':_0x38c2f1[_0x896dd0(0x143)][_0x896dd0(0x168)],'handler':(_0x26b0a9,_0x3ac9f0)=>{const _0x14cafd=_0x896dd0;let _0x434615=_0x26b0a9[_0x14cafd(0x1a7)](_0x2bcb7b),_0x14528c=_0x434615[_0x14cafd(0x1f4)](_0x3ac9f0['unitId'],_0x3ac9f0[_0x14cafd(0x15b)]);return _0x434615[_0x14cafd(0x1b2)](_0x3ac9f0[_0x14cafd(0x1fc)],_0x3ac9f0[_0x14cafd(0x15b)],_0x121b9f(_0x14528c,_0x3ac9f0['outline'])),!0x0;}},_0x289452={'id':_0x896dd0(0x1e4),'type':_0x38c2f1['CommandType'][_0x896dd0(0x168)],'handler':(_0x3d3bc1,_0x20f3a3)=>{const _0x54c3dc=_0x896dd0;let _0x1f32bb=_0x3d3bc1[_0x54c3dc(0x1a7)](_0x2bcb7b),_0x124048=_0x1f32bb[_0x54c3dc(0x1f4)](_0x20f3a3[_0x54c3dc(0x1fc)],_0x20f3a3['subUnitId']);return _0x1f32bb['setOutlines'](_0x20f3a3[_0x54c3dc(0x1fc)],_0x20f3a3[_0x54c3dc(0x15b)],_0x124048[_0x54c3dc(0x17a)](_0x9a9f14=>_0x9a9f14['id']!==_0x20f3a3[_0x54c3dc(0x15a)])),!0x0;}};function _0x81eaa6(_0x170a2d,_0x325e69,_0x2742fe){const _0x1951b1=_0x896dd0;let _0x12287e=_0x536cd9(_0x170a2d);return _0x12287e?_0x12287e[_0x1951b1(0x212)]({'workbookTypes':[_0x31c888[_0x1951b1(0x205)]],'worksheetTypes':[_0x31c888[_0x1951b1(0x153)]]},_0x325e69,_0x2742fe):!0x0;}function _0x4ed7cd(_0x401a27,_0x309428,_0x32b363){const _0x1b1c1e=_0x896dd0;var _0xb4602f;let _0x3d65c5=_0x3f551c(_0x401a27);return((_0xb4602f=_0x3d65c5==null?void 0x0:_0x3d65c5['permissionPointUpdate$'])==null?(0x0,_0x529961['of'])(null):_0xb4602f)['pipe']((0x0,_0x2d2257[_0x1b1c1e(0x13e)])(0x64),(0x0,_0x2d2257['startWith'])(null),(0x0,_0x2d2257['map'])(()=>_0x81eaa6(_0x401a27,_0x309428,_0x32b363)));}function _0x536cd9(_0x24ae68){const _0x4bf308=_0x896dd0;if(typeof _0x24ae68['has']==_0x4bf308(0x191)&&!_0x24ae68[_0x4bf308(0x133)](_0x31c888['SheetPermissionCheckController']))return null;try{return _0x24ae68[_0x4bf308(0x1a7)](_0x31c888['SheetPermissionCheckController']);}catch{return null;}}function _0x3f551c(_0x144cc4){const _0x2f6c5d=_0x896dd0;if(typeof _0x144cc4[_0x2f6c5d(0x133)]==_0x2f6c5d(0x191)&&!_0x144cc4['has'](_0x38c2f1[_0x2f6c5d(0x195)]))return null;try{return _0x144cc4[_0x2f6c5d(0x1a7)](_0x38c2f1[_0x2f6c5d(0x195)]);}catch{return null;}}let _0x388d8d={'id':_0x896dd0(0x14a),'type':_0x38c2f1[_0x896dd0(0x143)][_0x896dd0(0x145)],'handler':(_0x1b13e2,_0x5da09c)=>{const _0x363958=_0x896dd0;var _0x10ce87,_0x12fd7e;if(!_0x5da09c)return!0x1;let _0x454e6c=(0x0,_0x31c888[_0x363958(0x186)])(_0x1b13e2['get'](_0x38c2f1[_0x363958(0x150)]),_0x5da09c);if(!_0x454e6c)return!0x1;let {unitId:_0x453a45,subUnitId:_0x25e68c,worksheet:_0x559d19}=_0x454e6c;if(!_0x81eaa6(_0x1b13e2,_0x453a45,_0x25e68c))return!0x1;let _0x26f72c=_0x1b13e2[_0x363958(0x1a7)](_0x2bcb7b),_0x154c4a={'id':_0x363958(0x187)+(0x0,_0x38c2f1['generateRandomId'])(0x6),'unitId':_0x453a45,'subUnitId':_0x25e68c,'axis':_0x5da09c[_0x363958(0x183)],'start':_0x5da09c[_0x363958(0x14d)],'end':_0x5da09c[_0x363958(0x184)],'collapsed':!0x1},_0x19d5c4=_0x5da09c[_0x363958(0x183)]===_0x363958(0x1ea)?_0x559d19[_0x363958(0x134)]():_0x559d19[_0x363958(0x13b)](),_0x9812ee=_0x26f72c[_0x363958(0x1f4)](_0x453a45,_0x25e68c),_0x297c7a=_0x1b1a64(_0x9812ee,_0x154c4a),_0x263c6b=(_0x10ce87=_0x297c7a==null?void 0x0:_0x297c7a[_0x363958(0x14b)])==null?[]:_0x10ce87,_0x4a3fde=(_0x12fd7e=_0x297c7a==null?void 0x0:_0x297c7a[_0x363958(0x19c)])==null?_0x154c4a:_0x12fd7e,_0x5e93c0=_0x38c8e3(_0x297c7a?_0x9812ee[_0x363958(0x17a)](_0x44217e=>!_0x263c6b['some'](_0x5a88db=>_0x5a88db['id']===_0x44217e['id'])):_0x9812ee,_0x4a3fde,{'maxIndex':_0x19d5c4});if(!_0x5e93c0['valid']){var _0x297916;return _0x1b13e2['get'](_0x540d14)[_0x363958(0x197)]({'reason':(_0x297916=_0x5e93c0[_0x363958(0x1cb)])==null?_0x363958(0x1bf):_0x297916,'commandId':_0x388d8d['id'],'unitId':_0x453a45,'subUnitId':_0x25e68c,'axis':_0x5da09c[_0x363958(0x183)],'outlineId':_0x4a3fde['id']}),!0x1;}let _0x54480a=[..._0x263c6b['map'](_0x58f2a4=>({'id':_0x289452['id'],'params':{'unitId':_0x453a45,'subUnitId':_0x25e68c,'outlineId':_0x58f2a4['id']}})),{'id':_0x4d4e6d['id'],'params':{'unitId':_0x453a45,'subUnitId':_0x25e68c,'outline':_0x4a3fde}}],_0x5776a1=[{'id':_0x289452['id'],'params':{'unitId':_0x453a45,'subUnitId':_0x25e68c,'outlineId':_0x4a3fde['id']}},..._0x263c6b[_0x363958(0x1dc)](_0x2866ea=>({'id':_0x4d4e6d['id'],'params':{'unitId':_0x453a45,'subUnitId':_0x25e68c,'outline':_0x2866ea}}))];return(0x0,_0x38c2f1[_0x363958(0x151)])(_0x54480a,_0x1b13e2['get'](_0x38c2f1['ICommandService']))['result']?(_0x1b13e2[_0x363958(0x1a7)](_0x38c2f1[_0x363958(0x192)])[_0x363958(0x190)]({'unitID':_0x453a45,'undoMutations':_0x5776a1,'redoMutations':_0x54480a}),!0x0):!0x1;}},_0x5d3e2b={'id':_0x896dd0(0x17e),'type':_0x38c2f1['CommandType']['MUTATION'],'handler':(_0x38fd36,_0x29fab9)=>{const _0x18dfca=_0x896dd0;let _0x280aff=_0x38fd36[_0x18dfca(0x1a7)](_0x2bcb7b),_0x1b0c69=_0x280aff[_0x18dfca(0x1f4)](_0x29fab9[_0x18dfca(0x1fc)],_0x29fab9['subUnitId']);return _0x280aff[_0x18dfca(0x1b2)](_0x29fab9['unitId'],_0x29fab9[_0x18dfca(0x15b)],_0x3fc6c3(_0x1b0c69,_0x29fab9)),!0x0;}},_0x3c4c2d={'id':_0x896dd0(0x1ca),'type':_0x38c2f1[_0x896dd0(0x143)]['COMMAND'],'handler':(_0x46049c,_0x50ea40)=>{const _0x5a1449=_0x896dd0;if(!_0x50ea40)return!0x1;let _0x21d9a3=(0x0,_0x31c888['getSheetCommandTarget'])(_0x46049c[_0x5a1449(0x1a7)](_0x38c2f1[_0x5a1449(0x150)]),_0x50ea40);if(!_0x21d9a3)return!0x1;let {unitId:_0x316feb,subUnitId:_0x515eda}=_0x21d9a3;if(!_0x81eaa6(_0x46049c,_0x316feb,_0x515eda))return!0x1;let _0x26c815={'unitId':_0x316feb,'subUnitId':_0x515eda,'axis':_0x50ea40[_0x5a1449(0x183)],'start':_0x50ea40['start'],'end':_0x50ea40[_0x5a1449(0x184)]},_0x2a86e0=_0x46049c[_0x5a1449(0x1a7)](_0x2bcb7b)[_0x5a1449(0x1f4)](_0x316feb,_0x515eda)[_0x5a1449(0x17a)](_0x52d91b=>_0x361a84(_0x52d91b,_0x26c815)&&_0x52d91b[_0x5a1449(0x14d)]>=_0x50ea40[_0x5a1449(0x14d)]&&_0x52d91b[_0x5a1449(0x184)]<=_0x50ea40[_0x5a1449(0x184)]);if(_0x2a86e0[_0x5a1449(0x1d3)]===0x0)return _0x46049c[_0x5a1449(0x1a7)](_0x540d14)['emit']({'reason':_0x5a1449(0x1f8),'commandId':_0x3c4c2d['id'],'unitId':_0x316feb,'subUnitId':_0x515eda,'axis':_0x50ea40[_0x5a1449(0x183)]}),!0x1;let _0x2e40d=[{'id':_0x5d3e2b['id'],'params':{..._0x26c815,'removedOutlineIds':_0x2a86e0[_0x5a1449(0x1dc)](_0x4c8985=>_0x4c8985['id'])}}],_0x2dc8f4=_0x2a86e0['map'](_0x94a203=>({'id':_0x4d4e6d['id'],'params':{'unitId':_0x316feb,'subUnitId':_0x515eda,'outline':_0x94a203}}));return(0x0,_0x38c2f1[_0x5a1449(0x151)])(_0x2e40d,_0x46049c[_0x5a1449(0x1a7)](_0x38c2f1[_0x5a1449(0x1ec)]))[_0x5a1449(0x175)]?(_0x46049c['get'](_0x38c2f1[_0x5a1449(0x192)])[_0x5a1449(0x190)]({'unitID':_0x316feb,'undoMutations':_0x2dc8f4,'redoMutations':_0x2e40d}),!0x0):!0x1;}},_0x2a2b19={'id':'sheet.command.remove-dimension-outline','type':_0x38c2f1['CommandType'][_0x896dd0(0x145)],'handler':(_0x5caa7d,_0x253e01)=>{const _0x481c11=_0x896dd0;if(!_0x253e01)return!0x1;let _0x3ef4df=(0x0,_0x31c888['getSheetCommandTarget'])(_0x5caa7d[_0x481c11(0x1a7)](_0x38c2f1[_0x481c11(0x150)]),_0x253e01);if(!_0x3ef4df)return!0x1;let {unitId:_0x8ba496,subUnitId:_0x506d6b}=_0x3ef4df;if(!_0x81eaa6(_0x5caa7d,_0x8ba496,_0x506d6b))return!0x1;let _0x2ec46a=_0x5caa7d[_0x481c11(0x1a7)](_0x2bcb7b)['getOutlines'](_0x8ba496,_0x506d6b)[_0x481c11(0x201)](_0x240a29=>_0x240a29['id']===_0x253e01[_0x481c11(0x15a)]);if(!_0x2ec46a)return!0x1;let _0xa30f75=[{'id':_0x289452['id'],'params':{'unitId':_0x8ba496,'subUnitId':_0x506d6b,'outlineId':_0x2ec46a['id'],'outline':_0x2ec46a}}],_0x5df351=[{'id':_0x4d4e6d['id'],'params':{'unitId':_0x8ba496,'subUnitId':_0x506d6b,'outline':_0x2ec46a}}];return(0x0,_0x38c2f1[_0x481c11(0x151)])(_0xa30f75,_0x5caa7d[_0x481c11(0x1a7)](_0x38c2f1[_0x481c11(0x1ec)]))[_0x481c11(0x175)]?(_0x5caa7d[_0x481c11(0x1a7)](_0x38c2f1[_0x481c11(0x192)])[_0x481c11(0x190)]({'unitID':_0x8ba496,'undoMutations':_0x5df351,'redoMutations':_0xa30f75}),!0x0):!0x1;}},_0x1244de={'id':_0x896dd0(0x1de),'type':_0x38c2f1[_0x896dd0(0x143)][_0x896dd0(0x168)],'handler':(_0xbafb7,_0x239c91)=>{const _0x5d6966=_0x896dd0;let _0x56832c=_0xbafb7[_0x5d6966(0x1a7)](_0x2bcb7b),_0x4dc554=_0x56832c['getOutlines'](_0x239c91['unitId'],_0x239c91['subUnitId']),_0x47e61c=_0x4dc554[_0x5d6966(0x201)](_0x247f0f=>_0x247f0f['id']===_0x239c91[_0x5d6966(0x15a)]);return _0x47e61c&&_0x56832c[_0x5d6966(0x1b2)](_0x239c91['unitId'],_0x239c91[_0x5d6966(0x15b)],_0x4dc554[_0x5d6966(0x1dc)](_0x4f5221=>_0x4f5221[_0x5d6966(0x1fc)]!==_0x47e61c[_0x5d6966(0x1fc)]||_0x4f5221['subUnitId']!==_0x47e61c[_0x5d6966(0x15b)]||_0x4f5221[_0x5d6966(0x183)]!==_0x47e61c[_0x5d6966(0x183)]||_0x4f5221[_0x5d6966(0x14d)]!==_0x47e61c['start']||_0x4f5221[_0x5d6966(0x184)]!==_0x47e61c[_0x5d6966(0x184)]?_0x4f5221:{..._0x4f5221,'collapsed':_0x239c91[_0x5d6966(0x159)]})),!0x0;}};function _0x179175(_0x5a7424,_0x540f00,_0x436ade,_0x2c574e){const _0x487bb5=_0x896dd0;return _0x5a7424===_0x487bb5(0x1ea)?{'startRow':_0x540f00,'endRow':_0x436ade,'startColumn':0x0,'endColumn':_0x2c574e[_0x487bb5(0x136)]()-0x1}:{'startRow':0x0,'endRow':_0x2c574e[_0x487bb5(0x134)]()-0x1,'startColumn':_0x540f00,'endColumn':_0x436ade};}function _0x29f10f(_0x4df95b){const _0x38618b=_0x896dd0;return _0x4df95b===_0x38618b(0x1ea)?_0x31c888[_0x38618b(0x17d)]['id']:_0x31c888['SetColHiddenMutation']['id'];}function _0x1ff6c9(_0x5dd273){const _0x5c3699=_0x896dd0;return _0x5dd273===_0x5c3699(0x1ea)?_0x31c888[_0x5c3699(0x200)]['id']:_0x31c888['SetColVisibleMutation']['id'];}function _0x324313(_0x123e9c,_0x332937,_0x108247,_0x52338e){const _0x57d258=_0x896dd0;let _0x5611ed=_0x332937?[_0x179175(_0x123e9c[_0x57d258(0x183)],_0x123e9c[_0x57d258(0x14d)],_0x123e9c[_0x57d258(0x184)],_0x108247)]:_0x370668(_0x123e9c,_0x52338e,_0x108247),_0x2ca3e8=_0x332937?_0x29f10f(_0x123e9c[_0x57d258(0x183)]):_0x1ff6c9(_0x123e9c['axis']);return[{'id':_0x1244de['id'],'params':{'unitId':_0x123e9c[_0x57d258(0x1fc)],'subUnitId':_0x123e9c[_0x57d258(0x15b)],'outlineId':_0x123e9c['id'],'outline':_0x123e9c,'collapsed':_0x332937}},..._0x5611ed[_0x57d258(0x1dc)](_0x3aa2db=>({'id':_0x2ca3e8,'params':{'unitId':_0x123e9c['unitId'],'subUnitId':_0x123e9c['subUnitId'],'ranges':[_0x3aa2db],'dimensionOutlineId':_0x123e9c['id']}}))];}function _0x370668(_0x5f0592,_0x1dc473,_0x58e9a3){const _0xf578ce=_0x896dd0;let _0x230b4b=_0x3be709(_0x1dc473[_0xf578ce(0x1dc)](_0x22951d=>_0x301340(_0x22951d,_0x5f0592)?{..._0x22951d,'collapsed':!0x1}:_0x22951d),_0x5f0592[_0xf578ce(0x1fc)],_0x5f0592[_0xf578ce(0x15b)],_0x5f0592[_0xf578ce(0x183)]);return _0x4f5547({'start':_0x5f0592[_0xf578ce(0x14d)],'end':_0x5f0592['end']},_0x230b4b)[_0xf578ce(0x1dc)](_0x8072d9=>_0x179175(_0x5f0592[_0xf578ce(0x183)],_0x8072d9[_0xf578ce(0x14d)],_0x8072d9[_0xf578ce(0x184)],_0x58e9a3));}function _0x301340(_0x30eb75,_0x4eca95){const _0x589038=_0x896dd0;return _0x30eb75[_0x589038(0x1fc)]===_0x4eca95[_0x589038(0x1fc)]&&_0x30eb75[_0x589038(0x15b)]===_0x4eca95[_0x589038(0x15b)]&&_0x30eb75[_0x589038(0x183)]===_0x4eca95[_0x589038(0x183)]&&_0x30eb75['start']===_0x4eca95[_0x589038(0x14d)]&&_0x30eb75[_0x589038(0x184)]===_0x4eca95[_0x589038(0x184)];}function _0x4f5547(_0x1679d4,_0x18e924){const _0x70ba37=_0x896dd0;let _0x2e33b7=_0x1679d4[_0x70ba37(0x14d)],_0x11e5ed=[];for(let _0xe8ba34 of _0x18e924)if(!(_0xe8ba34[_0x70ba37(0x184)]<_0x2e33b7||_0xe8ba34['start']>_0x1679d4[_0x70ba37(0x184)])&&(_0xe8ba34[_0x70ba37(0x14d)]>_0x2e33b7&&_0x11e5ed['push']({'start':_0x2e33b7,'end':Math[_0x70ba37(0x1a4)](_0xe8ba34[_0x70ba37(0x14d)]-0x1,_0x1679d4['end'])}),_0x2e33b7=Math[_0x70ba37(0x209)](_0x2e33b7,_0xe8ba34[_0x70ba37(0x184)]+0x1),_0x2e33b7>_0x1679d4[_0x70ba37(0x184)]))break;return _0x2e33b7<=_0x1679d4[_0x70ba37(0x184)]&&_0x11e5ed['push']({'start':_0x2e33b7,'end':_0x1679d4[_0x70ba37(0x184)]}),_0x11e5ed;}let _0x486cf4={'id':_0x896dd0(0x19b),'type':_0x38c2f1[_0x896dd0(0x143)][_0x896dd0(0x145)],'handler':(_0x1728c7,_0x53d1aa)=>{const _0x3a2264=_0x896dd0;if(!_0x53d1aa)return!0x1;let _0x3b3cc7=(0x0,_0x31c888[_0x3a2264(0x186)])(_0x1728c7[_0x3a2264(0x1a7)](_0x38c2f1[_0x3a2264(0x150)]),_0x53d1aa);if(!_0x3b3cc7)return!0x1;let {unitId:_0x182edc,subUnitId:_0x9d5ce2,worksheet:_0x4ccc83}=_0x3b3cc7;if(!_0x81eaa6(_0x1728c7,_0x182edc,_0x9d5ce2))return!0x1;let _0x15cb5f=_0x1728c7[_0x3a2264(0x1a7)](_0x2bcb7b)[_0x3a2264(0x1f4)](_0x182edc,_0x9d5ce2),_0x17f7ac=_0x15cb5f[_0x3a2264(0x201)](_0x105942=>_0x105942['id']===_0x53d1aa[_0x3a2264(0x15a)]);if(!_0x17f7ac||_0x17f7ac['collapsed']===_0x53d1aa['collapsed'])return!0x1;let _0x2e767a=_0x324313(_0x17f7ac,_0x53d1aa[_0x3a2264(0x159)],_0x4ccc83,_0x15cb5f),_0x3aef88=_0x324313(_0x17f7ac,!_0x53d1aa[_0x3a2264(0x159)],_0x4ccc83,_0x15cb5f);return(0x0,_0x38c2f1[_0x3a2264(0x151)])(_0x2e767a,_0x1728c7['get'](_0x38c2f1[_0x3a2264(0x1ec)]))[_0x3a2264(0x175)]?(_0x1728c7[_0x3a2264(0x1a7)](_0x38c2f1[_0x3a2264(0x192)])['pushUndoRedo']({'unitID':_0x182edc,'undoMutations':_0x3aef88,'redoMutations':_0x2e767a}),!0x0):!0x1;}},_0x5b7d4b={'id':'sheet.mutation.transform-dimension-outlines','type':_0x38c2f1[_0x896dd0(0x143)]['MUTATION'],'handler':(_0x21298f,_0x1060a9)=>{const _0x435614=_0x896dd0;let _0x5ba51e=_0x21298f[_0x435614(0x1a7)](_0x2bcb7b),_0x57b039=_0x5983d1(_0x5ba51e[_0x435614(0x1f4)](_0x1060a9['unitId'],_0x1060a9['subUnitId']),_0x1060a9);return _0x5ba51e[_0x435614(0x1b2)](_0x1060a9[_0x435614(0x1fc)],_0x1060a9['subUnitId'],_0x57b039),!0x0;}};function _0x5983d1(_0x2e858d,_0xb8d997){const _0x2f8382=_0x896dd0;switch(_0xb8d997[_0x2f8382(0x160)]){case'insert':return _0xb8d997[_0x2f8382(0x211)]?_0xeea816(_0x2e858d,_0xb8d997):_0x1a3656(_0x2e858d,_0xb8d997);case _0x2f8382(0x1e2):return _0x2aa3a0(_0x2e858d,_0xb8d997);case _0x2f8382(0x1e5):return _0x523aa3(_0x2e858d,_0xb8d997);}}function _0xeea816(_0x3d6e2c,_0x247634){const _0x404ec3=_0x896dd0;return[..._0x3d6e2c[_0x404ec3(0x17a)](_0x455162=>_0x455162['unitId']!==_0x247634['unitId']||_0x455162[_0x404ec3(0x15b)]!==_0x247634['subUnitId']||_0x455162[_0x404ec3(0x183)]!==_0x247634['axis']),..._0x247634['restoreOutlines']];}let _0x47b067='SHEET_OUTLINE_PLUGIN';var _0x3d94e1=_0x896dd0(0x1c6),_0x4c090f=_0x896dd0(0x202);let _0x150946={};function _0x1e8a07(_0x365cdb,_0x1f74e2){return function(_0x1d4945,_0x5bbab1){_0x1f74e2(_0x1d4945,_0x5bbab1,_0x365cdb);};}function _0x23fa66(_0x7d9c2a,_0x390945,_0x12f270,_0x3a9d8a){const _0x536167=_0x896dd0;var _0x5edff7=arguments[_0x536167(0x1d3)],_0x471d56=_0x5edff7<0x3?_0x390945:_0x3a9d8a===null?_0x3a9d8a=Object[_0x536167(0x1cf)](_0x390945,_0x12f270):_0x3a9d8a,_0x581da2;if(typeof Reflect=='object'&&typeof Reflect[_0x536167(0x165)]==_0x536167(0x191))_0x471d56=Reflect['decorate'](_0x7d9c2a,_0x390945,_0x12f270,_0x3a9d8a);else{for(var _0x14f626=_0x7d9c2a[_0x536167(0x1d3)]-0x1;_0x14f626>=0x0;_0x14f626--)(_0x581da2=_0x7d9c2a[_0x14f626])&&(_0x471d56=(_0x5edff7<0x3?_0x581da2(_0x471d56):_0x5edff7>0x3?_0x581da2(_0x390945,_0x12f270,_0x471d56):_0x581da2(_0x390945,_0x12f270))||_0x471d56);}return _0x5edff7>0x3&&_0x471d56&&Object[_0x536167(0x156)](_0x390945,_0x12f270,_0x471d56),_0x471d56;}let _0x2a2cb6={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x51cd9d=class extends _0x38c2f1[_0x896dd0(0x204)]{constructor(_0x5ae7ca,_0x35c885,_0x55c761,_0x1d0881){const _0x5254e6=_0x896dd0;super(),this[_0x5254e6(0x1d4)]=_0x5ae7ca,this[_0x5254e6(0x14e)]=_0x35c885,this[_0x5254e6(0x1b6)]=_0x55c761,this['_sheetsOutlineErrorService']=_0x1d0881,this[_0x5254e6(0x139)]();}[_0x896dd0(0x139)](){const _0x5d54fd=_0x896dd0;this[_0x5d54fd(0x1c5)](this[_0x5d54fd(0x14e)][_0x5d54fd(0x208)]({'getMutations':_0x1cd123=>_0x3cb857(_0x1cd123,(_0x129e04,_0x4f22eb)=>this[_0x5d54fd(0x1b6)][_0x5d54fd(0x1f4)](_0x129e04,_0x4f22eb),this[_0x5d54fd(0x1f9)](_0x1cd123[_0x5d54fd(0x137)]),_0x238761=>this[_0x5d54fd(0x1f5)][_0x5d54fd(0x197)](_0x238761))}));}['_getCommandScope'](_0x1a38d2){const _0x1a570b=_0x896dd0;let _0x1ef89b=_0x1a38d2,_0x57afb7=_0x1ef89b!=null&&_0x1ef89b['unitId']?this[_0x1a570b(0x1d4)][_0x1a570b(0x18e)](_0x1ef89b[_0x1a570b(0x1fc)]):this[_0x1a570b(0x1d4)][_0x1a570b(0x1ab)](_0x38c2f1['UniverInstanceType'][_0x1a570b(0x1fb)]);if(!_0x57afb7)return;let _0x212bb0=_0x1ef89b!=null&&_0x1ef89b['subUnitId']?_0x57afb7[_0x1a570b(0x161)](_0x1ef89b[_0x1a570b(0x15b)]):_0x57afb7['getActiveSheet']();if(_0x212bb0)return{'unitId':_0x57afb7[_0x1a570b(0x135)](),'subUnitId':_0x212bb0[_0x1a570b(0x15d)]()};}};_0x51cd9d=_0x23fa66([_0x1e8a07(0x0,_0x38c2f1[_0x896dd0(0x150)]),_0x1e8a07(0x1,(0x0,_0x38c2f1[_0x896dd0(0x1da)])(_0x31c888['SheetInterceptorService'])),_0x1e8a07(0x2,(0x0,_0x38c2f1['Inject'])(_0x2bcb7b)),_0x1e8a07(0x3,(0x0,_0x38c2f1[_0x896dd0(0x1da)])(_0x540d14))],_0x51cd9d);function _0x3cb857(_0x428e64,_0x33cedf,_0x222b93,_0x43e547){const _0x3bf402=_0x896dd0;let _0x23567f=_0x4e0f95(_0x428e64,_0x222b93);if(!_0x23567f)return _0x258ac1();let _0xb3c56f=_0x33cedf(_0x23567f[_0x3bf402(0x1fc)],_0x23567f[_0x3bf402(0x15b)]);if(!_0xb3c56f[_0x3bf402(0x16f)](_0x3755d6=>_0x3755d6[_0x3bf402(0x183)]===_0x23567f[_0x3bf402(0x183)]))return _0x258ac1();_0x198591(_0xb3c56f,_0x23567f,_0x428e64['id'],_0x43e547);let _0x395c5d=_0x2679a4(_0x23567f,_0xb3c56f);return{'redos':[{'id':_0x5b7d4b['id'],'params':_0x23567f}],'undos':[{'id':_0x5b7d4b['id'],'params':_0x395c5d}],'preRedos':[],'preUndos':[]};}function _0x198591(_0x31a549,_0x3f49e0,_0x40e6e0,_0x54fc64){const _0x380075=_0x896dd0;try{switch(_0x3f49e0[_0x380075(0x160)]){case _0x380075(0x167):_0x1a3656(_0x31a549,_0x3f49e0);break;case _0x380075(0x1e2):_0x2aa3a0(_0x31a549,_0x3f49e0);break;case'move':_0x523aa3(_0x31a549,_0x3f49e0);break;}}catch(_0x14f0ce){throw _0x54fc64==null||_0x54fc64({'reason':_0x43fc87(_0x14f0ce),'commandId':_0x40e6e0,'unitId':_0x3f49e0[_0x380075(0x1fc)],'subUnitId':_0x3f49e0[_0x380075(0x15b)],'axis':_0x3f49e0[_0x380075(0x183)],'outlineId':_0x119448(_0x14f0ce)}),new _0x38c2f1['CustomCommandExecutionError'](_0x14f0ce instanceof Error?_0x14f0ce[_0x380075(0x20c)]:_0x380075(0x1d9));}}function _0x4e0f95(_0x46196a,_0xb76994){const _0x523df2=_0x896dd0;switch(_0x46196a['id']){case _0x31c888['InsertRowCommand']['id']:return _0x3a95fc(_0x46196a['params'],'row',_0xb76994);case _0x31c888[_0x523df2(0x17f)]['id']:return _0x3a95fc(_0x46196a[_0x523df2(0x137)],'column',_0xb76994);case _0x31c888[_0x523df2(0x19d)]['id']:return _0x4c4e83(_0x46196a['params'],_0x523df2(0x1ea),_0xb76994);case _0x31c888[_0x523df2(0x16d)]['id']:return _0x4c4e83(_0x46196a['params'],_0x523df2(0x1db),_0xb76994);case _0x31c888[_0x523df2(0x1ae)]['id']:return _0x4c037b(_0x46196a[_0x523df2(0x137)],'row',_0xb76994);case _0x31c888[_0x523df2(0x140)]['id']:return _0x4c037b(_0x46196a['params'],'column',_0xb76994);default:return null;}}function _0x3a95fc(_0x5a741d,_0xa16a2c,_0x192d42){const _0x280f15=_0x896dd0;let _0xb3526=_0x33f883(_0x5a741d,_0x192d42);if(!(_0x5a741d!=null&&_0x5a741d[_0x280f15(0x18a)])||!_0xb3526)return null;let _0x5e7f1a=_0xa16a2c==='row'?_0x5a741d[_0x280f15(0x18a)]['startRow']:_0x5a741d[_0x280f15(0x18a)][_0x280f15(0x17c)],_0x438f01=_0xa16a2c===_0x280f15(0x1ea)?_0x5a741d[_0x280f15(0x18a)][_0x280f15(0x1c4)]:_0x5a741d[_0x280f15(0x18a)]['endColumn'];return{..._0xb3526,'axis':_0xa16a2c,'type':_0x280f15(0x167),'index':_0x5e7f1a,'count':_0x438f01-_0x5e7f1a+0x1};}function _0x4c4e83(_0x2494f7,_0xc26b2f,_0x4efc0a){const _0x1fc2a3=_0x896dd0;let _0x2983a2=_0x33f883(_0x2494f7,_0x4efc0a);if(!(_0x2494f7!=null&&_0x2494f7[_0x1fc2a3(0x18a)])||!_0x2983a2)return null;let _0xe461b0=_0xc26b2f===_0x1fc2a3(0x1ea)?_0x2494f7[_0x1fc2a3(0x18a)][_0x1fc2a3(0x1f7)]:_0x2494f7['range']['startColumn'],_0x56e3d8=_0xc26b2f===_0x1fc2a3(0x1ea)?_0x2494f7[_0x1fc2a3(0x18a)][_0x1fc2a3(0x1c4)]:_0x2494f7[_0x1fc2a3(0x18a)]['endColumn'];return{..._0x2983a2,'axis':_0xc26b2f,'type':_0x1fc2a3(0x1e2),'start':_0xe461b0,'end':_0x56e3d8};}function _0x4c037b(_0x5a8244,_0x4015fc,_0x28f91e){const _0x1a849a=_0x896dd0;let _0x1e9914=_0x33f883(_0x5a8244,_0x28f91e);if(!(_0x5a8244!=null&&_0x5a8244[_0x1a849a(0x1ba)])||!_0x5a8244[_0x1a849a(0x210)]||!_0x1e9914)return null;let _0x379ece=_0x4015fc===_0x1a849a(0x1ea)?_0x5a8244[_0x1a849a(0x1ba)][_0x1a849a(0x1f7)]:_0x5a8244[_0x1a849a(0x1ba)][_0x1a849a(0x17c)],_0x4d4aa0=_0x4015fc===_0x1a849a(0x1ea)?_0x5a8244[_0x1a849a(0x1ba)]['endRow']:_0x5a8244['fromRange']['endColumn'],_0x3130f9=_0x4015fc==='row'?_0x5a8244[_0x1a849a(0x210)][_0x1a849a(0x1f7)]:_0x5a8244[_0x1a849a(0x210)][_0x1a849a(0x17c)];return{..._0x1e9914,'axis':_0x4015fc,'type':'move','sourceStart':_0x379ece,'sourceEnd':_0x4d4aa0,'destinationIndex':_0x3130f9};}function _0x2679a4(_0x33c299,_0x20159f){const _0x71299e=_0x896dd0;switch(_0x33c299[_0x71299e(0x160)]){case _0x71299e(0x167):return{'unitId':_0x33c299[_0x71299e(0x1fc)],'subUnitId':_0x33c299['subUnitId'],'axis':_0x33c299['axis'],'type':_0x71299e(0x1e2),'start':_0x33c299[_0x71299e(0x19a)],'end':_0x33c299[_0x71299e(0x19a)]+_0x33c299[_0x71299e(0x1c1)]-0x1};case _0x71299e(0x1e2):return{'unitId':_0x33c299[_0x71299e(0x1fc)],'subUnitId':_0x33c299[_0x71299e(0x15b)],'axis':_0x33c299[_0x71299e(0x183)],'type':_0x71299e(0x167),'index':_0x33c299[_0x71299e(0x14d)],'count':_0x33c299[_0x71299e(0x184)]-_0x33c299[_0x71299e(0x14d)]+0x1,'restoreOutlines':_0x20159f['filter'](_0x33d014=>_0x33d014[_0x71299e(0x1fc)]===_0x33c299[_0x71299e(0x1fc)]&&_0x33d014[_0x71299e(0x15b)]===_0x33c299['subUnitId']&&_0x33d014[_0x71299e(0x183)]===_0x33c299['axis'])};case'move':return _0x1b1235(_0x33c299);}}function _0x1b1235(_0xa54327){const _0x4a8e38=_0x896dd0;let _0x13a1a7=_0xa54327['sourceEnd']-_0xa54327[_0x4a8e38(0x20b)]+0x1;return _0xa54327[_0x4a8e38(0x14c)]>=_0xa54327[_0x4a8e38(0x20b)]&&_0xa54327['destinationIndex']<=_0xa54327[_0x4a8e38(0x1cd)]+0x1?{..._0xa54327}:_0xa54327['destinationIndex']>_0xa54327[_0x4a8e38(0x1cd)]+0x1?{..._0xa54327,'sourceStart':_0xa54327['destinationIndex']-_0x13a1a7,'sourceEnd':_0xa54327['destinationIndex']-0x1,'destinationIndex':_0xa54327[_0x4a8e38(0x20b)]}:{..._0xa54327,'sourceStart':_0xa54327[_0x4a8e38(0x14c)],'sourceEnd':_0xa54327[_0x4a8e38(0x14c)]+_0x13a1a7-0x1,'destinationIndex':_0xa54327[_0x4a8e38(0x1cd)]+0x1};}function _0x33f883(_0xe44d77,_0x4e9ae1){const _0x3acd5e=_0x896dd0;var _0x10309e,_0x1525e9;let _0x392878=(_0x10309e=_0xe44d77==null?void 0x0:_0xe44d77['unitId'])==null?_0x4e9ae1==null?void 0x0:_0x4e9ae1['unitId']:_0x10309e,_0x435038=(_0x1525e9=_0xe44d77==null?void 0x0:_0xe44d77[_0x3acd5e(0x15b)])==null?_0x4e9ae1==null?void 0x0:_0x4e9ae1[_0x3acd5e(0x15b)]:_0x1525e9;return _0x392878&&_0x435038?{'unitId':_0x392878,'subUnitId':_0x435038}:null;}function _0x258ac1(){const _0x1b80de=_0x896dd0;var _0xba825,_0x454d59;return{'redos':[..._0x2a2cb6[_0x1b80de(0x164)]],'undos':[..._0x2a2cb6['undos']],'preRedos':[...(_0xba825=_0x2a2cb6[_0x1b80de(0x1ac)])==null?[]:_0xba825],'preUndos':[...(_0x454d59=_0x2a2cb6[_0x1b80de(0x141)])==null?[]:_0x454d59]};}let _0x245dac=class extends _0x38c2f1[_0x896dd0(0x204)]{constructor(_0x4beb46,_0x17252c){const _0x1a661e=_0x896dd0;super(),this[_0x1a661e(0x1c7)]=_0x4beb46,this[_0x1a661e(0x1b6)]=_0x17252c,this[_0x1a661e(0x193)]();}[_0x896dd0(0x193)](){const _0x3868da=_0x896dd0;this[_0x3868da(0x1c5)](this[_0x3868da(0x1c7)][_0x3868da(0x16a)]({'pluginName':_0x47b067,'businesses':[_0x38c2f1[_0x3868da(0x1ed)][_0x3868da(0x1fb)]],'toJson':_0x1808fd=>JSON[_0x3868da(0x1b5)](this[_0x3868da(0x1b6)][_0x3868da(0x1fd)](_0x1808fd)),'parseJson':_0x1bd490=>JSON[_0x3868da(0x1c3)](_0x1bd490),'onLoad':(_0x54766e,_0x4acc55)=>this['_sheetsOutlineModel']['deserialize'](_0x54766e,_0x4acc55),'onUnLoad':_0x1d7abd=>this['_sheetsOutlineModel'][_0x3868da(0x196)](_0x1d7abd)}));}};_0x245dac=_0x23fa66([_0x1e8a07(0x0,_0x38c2f1['IResourceManagerService']),_0x1e8a07(0x1,(0x0,_0x38c2f1[_0x896dd0(0x1da)])(_0x2bcb7b))],_0x245dac);let _0x502bf1=class extends _0x38c2f1['Plugin']{constructor(_0x51adc2=_0x150946,_0x24ab6e,_0x5d8f3d,_0x3a293c){const _0x572bdd=_0x896dd0;super(),this[_0x572bdd(0x1fa)]=_0x51adc2,this[_0x572bdd(0x1d0)]=_0x24ab6e,this[_0x572bdd(0x163)]=_0x5d8f3d,this[_0x572bdd(0x173)]=_0x3a293c;let {..._0x64e4fb}=(0x0,_0x38c2f1['merge'])({},_0x150946,this[_0x572bdd(0x1fa)]);this[_0x572bdd(0x173)][_0x572bdd(0x13d)](_0x572bdd(0x179),_0x64e4fb);}[_0x896dd0(0x1b7)](){const _0x296e9e=_0x896dd0;this['_injector']['add']([_0x2bcb7b]),this[_0x296e9e(0x1d0)][_0x296e9e(0x171)]([_0x540d14]),this[_0x296e9e(0x1d0)][_0x296e9e(0x171)]([_0x245dac]),this[_0x296e9e(0x1d0)][_0x296e9e(0x171)]([_0x51cd9d]),this[_0x296e9e(0x199)](),this[_0x296e9e(0x1d0)][_0x296e9e(0x1a7)](_0x2bcb7b),this['_injector'][_0x296e9e(0x1a7)](_0x540d14),this[_0x296e9e(0x1d0)]['get'](_0x245dac),this[_0x296e9e(0x1d0)][_0x296e9e(0x1a7)](_0x51cd9d);}[_0x896dd0(0x199)](){const _0x47fca7=_0x896dd0;[_0x388d8d,_0x2a2b19,_0x486cf4,_0x3c4c2d]['forEach'](_0x959ba=>{const _0x13ce06=_0x171f;this[_0x13ce06(0x1c5)](this[_0x13ce06(0x163)]['registerCommand'](_0x959ba));}),[_0x4d4e6d,_0x289452,_0x1244de,_0x5d3e2b,_0x5b7d4b][_0x47fca7(0x158)](_0x54e912=>{const _0x36b913=_0x47fca7;this[_0x36b913(0x1c5)](this[_0x36b913(0x163)][_0x36b913(0x1f0)](_0x54e912));});}};_0x4b3eed(_0x502bf1,'pluginName',_0x47b067),_0x4b3eed(_0x502bf1,_0x896dd0(0x1ee),_0x3d94e1),_0x4b3eed(_0x502bf1,_0x896dd0(0x149),_0x4c090f),_0x4b3eed(_0x502bf1,_0x896dd0(0x160),_0x38c2f1[_0x896dd0(0x1ed)][_0x896dd0(0x1fb)]),_0x502bf1=_0x23fa66([(0x0,_0x38c2f1['DependentOn'])(_0x4c4f2f[_0x896dd0(0x142)]),_0x1e8a07(0x1,(0x0,_0x38c2f1['Inject'])(_0x38c2f1[_0x896dd0(0x1a8)])),_0x1e8a07(0x2,_0x38c2f1[_0x896dd0(0x1ec)]),_0x1e8a07(0x3,_0x38c2f1[_0x896dd0(0x18b)])],_0x502bf1),_0x17a4bd[_0x896dd0(0x16c)]=_0x388d8d,_0x17a4bd[_0x896dd0(0x18c)]=_0x4d4e6d,_0x17a4bd[_0x896dd0(0x172)]=_0x3c4c2d,_0x17a4bd[_0x896dd0(0x1b8)]=_0x5d3e2b,_0x17a4bd[_0x896dd0(0x16b)]=_0x551cb2,_0x17a4bd[_0x896dd0(0x15e)]=_0x120eb6,_0x17a4bd[_0x896dd0(0x155)]=_0x2a2b19,_0x17a4bd[_0x896dd0(0x178)]=_0x289452,_0x17a4bd[_0x896dd0(0x1aa)]=_0x47b067,_0x17a4bd[_0x896dd0(0x18f)]=_0x486cf4,_0x17a4bd[_0x896dd0(0x1bb)]=_0x1244de,_0x17a4bd[_0x896dd0(0x166)]=_0x540d14,_0x17a4bd[_0x896dd0(0x1b4)]=_0x2bcb7b,_0x17a4bd[_0x896dd0(0x16e)]=_0x5b7d4b,Object[_0x896dd0(0x156)](_0x17a4bd,'UniverSheetsOutlinePlugin',{'enumerable':!0x0,'get':function(){return _0x502bf1;}}),_0x17a4bd[_0x896dd0(0x1b0)]=_0x2723d3,_0x17a4bd[_0x896dd0(0x198)]=_0x38c8e3,_0x17a4bd[_0x896dd0(0x1bd)]=_0x4ed7cd,_0x17a4bd[_0x896dd0(0x1cc)]=_0x81eaa6,_0x17a4bd['transformOutlinesByDelete']=_0x2aa3a0,_0x17a4bd[_0x896dd0(0x1a0)]=_0x1a3656,_0x17a4bd[_0x896dd0(0x1c8)]=_0x523aa3;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-outline",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.6",
4
4
  "private": false,
5
5
  "description": "Dimension outline model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-alpha.5",
65
- "@univerjs/core": "1.0.0-alpha.5",
66
- "@univerjs/sheets": "1.0.0-alpha.5"
64
+ "@univerjs-pro/license": "1.0.0-alpha.6",
65
+ "@univerjs/core": "1.0.0-alpha.6",
66
+ "@univerjs/sheets": "1.0.0-alpha.6"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.10",
72
- "@univerjs-infra/shared": "1.0.0-alpha.5"
72
+ "@univerjs-infra/shared": "1.0.0-alpha.6"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",