@univerjs-pro/collaboration 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x151f3e=_0x62e3;(function(_0x55f21b,_0x181899){const _0x1cbb2a=_0x62e3,_0x2c0496=_0x55f21b();while(!![]){try{const _0x4c3f05=parseInt(_0x1cbb2a(0x2a1))/0x1*(parseInt(_0x1cbb2a(0x31f))/0x2)+parseInt(_0x1cbb2a(0x285))/0x3*(parseInt(_0x1cbb2a(0x398))/0x4)+-parseInt(_0x1cbb2a(0x1bb))/0x5+parseInt(_0x1cbb2a(0x3e7))/0x6+parseInt(_0x1cbb2a(0x1a0))/0x7+-parseInt(_0x1cbb2a(0x2fa))/0x8*(parseInt(_0x1cbb2a(0x1a9))/0x9)+-parseInt(_0x1cbb2a(0x2d2))/0xa;if(_0x4c3f05===_0x181899)break;else _0x2c0496['push'](_0x2c0496['shift']());}catch(_0x56d851){_0x2c0496['push'](_0x2c0496['shift']());}}}(_0x3c79,0x1d339),Object[_0x151f3e(0x20a)](exports,Symbol[_0x151f3e(0x289)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs=require('@univerjs/docs'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_thread_comment=require('@univerjs/thread-comment'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_hyper_link=require('@univerjs/sheets-hyper-link'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_protocol=require('@univerjs/protocol'),uuid=require('uuid');const CreateUnitMutation={'id':_0x151f3e(0x36f),'type':_univerjs_core[_0x151f3e(0x217)][_0x151f3e(0x3ab)],'handler':()=>{return!![];}},RevertRevisionMutation={'id':_0x151f3e(0x2f3),'type':_univerjs_core[_0x151f3e(0x217)][_0x151f3e(0x3ab)],'handler':()=>{return!![];}};function isTransformMutationFailure(_0x43e09f){const _0x3c71f9=_0x151f3e;return!!_0x43e09f[_0x3c71f9(0x281)];}function isTransformMutationSuccess(_0x1ef750){return!isTransformMutationFailure(_0x1ef750);}function isInclineTransformMutationsFailure(_0x21d70b){const _0x53685e=_0x151f3e;return!!_0x21d70b[_0x53685e(0x281)];}function isTransformMutationsFailure(_0x26051f){const _0x2f6a97=_0x151f3e;return!!_0x26051f[_0x2f6a97(0x281)];}function isTransformMutationsSuccess(_0x335eca){return!isTransformMutationsFailure(_0x335eca);}function isTransformChangesetsFailure(_0x32e3a4){const _0x4289f2=_0x151f3e;return!!_0x32e3a4[_0x4289f2(0x281)];}function isTransformChangesetsSuccess(_0x520431){return!isTransformChangesetsFailure(_0x520431);}function isTransformMutationsWithChangesetFailure(_0xb61e34){return!!_0xb61e34['error'];}function isTransformMutationsWithChangesetSuccess(_0x4c2fa5){return!isTransformMutationsWithChangesetFailure(_0x4c2fa5);}function _typeof(_0x144146){'@babel/helpers - typeof';const _0x10bce7=_0x151f3e;return _typeof=_0x10bce7(0x344)==typeof Symbol&&_0x10bce7(0x313)==typeof Symbol[_0x10bce7(0x2df)]?function(_0x3eebc4){return typeof _0x3eebc4;}:function(_0x15c5dc){const _0x3f90d3=_0x10bce7;return _0x15c5dc&&_0x3f90d3(0x344)==typeof Symbol&&_0x15c5dc[_0x3f90d3(0x257)]===Symbol&&_0x15c5dc!==Symbol[_0x3f90d3(0x2b7)]?_0x3f90d3(0x313):typeof _0x15c5dc;},_typeof(_0x144146);}function toPrimitive(_0xf35868,_0x44534d){const _0x522164=_0x151f3e;if(_0x522164(0x2ef)!=_typeof(_0xf35868)||!_0xf35868)return _0xf35868;var _0x3fc73f=_0xf35868[Symbol[_0x522164(0x315)]];if(void 0x0!==_0x3fc73f){var _0x5e80c4=_0x3fc73f[_0x522164(0x239)](_0xf35868,_0x44534d||_0x522164(0x242));if('object'!=_typeof(_0x5e80c4))return _0x5e80c4;throw new TypeError(_0x522164(0x3d4));}return(_0x522164(0x208)===_0x44534d?String:Number)(_0xf35868);}function toPropertyKey(_0x400465){const _0x182091=_0x151f3e;var _0x467624=toPrimitive(_0x400465,_0x182091(0x208));return _0x182091(0x313)==_typeof(_0x467624)?_0x467624:_0x467624+'';}function _defineProperty(_0x72e2f7,_0x389924,_0x1f99f3){const _0x3ead14=_0x151f3e;return(_0x389924=toPropertyKey(_0x389924))in _0x72e2f7?Object[_0x3ead14(0x20a)](_0x72e2f7,_0x389924,{'value':_0x1f99f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x72e2f7[_0x389924]=_0x1f99f3,_0x72e2f7;}function __decorateParam(_0x50e9a5,_0x939db2){return function(_0x1eff12,_0x47b41f){_0x939db2(_0x1eff12,_0x47b41f,_0x50e9a5);};}function __decorate(_0x158c2a,_0x4620f5,_0x2a1997,_0x28fd8b){const _0x102fac=_0x151f3e;var _0x3f25e9=arguments[_0x102fac(0x1ba)],_0x2ce320=_0x3f25e9<0x3?_0x4620f5:_0x28fd8b===null?_0x28fd8b=Object[_0x102fac(0x24d)](_0x4620f5,_0x2a1997):_0x28fd8b,_0x519426;if(typeof Reflect===_0x102fac(0x2ef)&&typeof Reflect[_0x102fac(0x24c)]===_0x102fac(0x344))_0x2ce320=Reflect[_0x102fac(0x24c)](_0x158c2a,_0x4620f5,_0x2a1997,_0x28fd8b);else{for(var _0x170ab6=_0x158c2a[_0x102fac(0x1ba)]-0x1;_0x170ab6>=0x0;_0x170ab6--)if(_0x519426=_0x158c2a[_0x170ab6])_0x2ce320=(_0x3f25e9<0x3?_0x519426(_0x2ce320):_0x3f25e9>0x3?_0x519426(_0x4620f5,_0x2a1997,_0x2ce320):_0x519426(_0x4620f5,_0x2a1997))||_0x2ce320;}return _0x3f25e9>0x3&&_0x2ce320&&Object[_0x102fac(0x20a)](_0x4620f5,_0x2a1997,_0x2ce320),_0x2ce320;}const DEFAULT_LOOP_LIMIT_TIME=0xbb8,ITransformService=(0x0,_univerjs_core[_0x151f3e(0x1d4)])(_0x151f3e(0x265));let TransformService=class TransformService extends _univerjs_core[_0x151f3e(0x3d1)]{constructor(_0x183443){const _0xce9ee8=_0x151f3e;super(),this[_0xce9ee8(0x258)]=_0x183443,_defineProperty(this,'_transformMap',new Map()),_defineProperty(this,'_loopLimitTime',DEFAULT_LOOP_LIMIT_TIME),_defineProperty(this,_0xce9ee8(0x221),new Map());}['dispose'](){const _0x385193=_0x151f3e;this[_0x385193(0x3e1)][_0x385193(0x340)](),this[_0x385193(0x221)]['clear']();}[_0x151f3e(0x362)](_0x507e34){const _0x1167b6=_0x151f3e,{m1:_0xd9e713,m2:m2=_0x1167b6(0x3b6)}=_0x507e34;if(!this['_transformMap'][_0x1167b6(0x2f2)](_0xd9e713))this['_transformMap'][_0x1167b6(0x3af)](_0xd9e713,new Map());const _0x561845=this[_0x1167b6(0x3e1)][_0x1167b6(0x368)](_0xd9e713);if(_0x561845[_0x1167b6(0x2f2)](m2))throw new Error('[TransformService]\x20Transform\x20algorithm\x20for\x20'+_0xd9e713+'\x20and\x20'+m2+_0x1167b6(0x2bc));_0x561845[_0x1167b6(0x3af)](m2,_0x507e34);}[_0x151f3e(0x36b)](_0x275e60,_0x4fa4e2,_0x2e89c9){const _0xa3a59e=_0x151f3e;var _0x3b52e6,_0x2cb146,_0x1beb6b,_0x18a7ef,_0x17450b,_0x39aa05;const _0x33361b=this['_transformMap'],_0x167079=((_0x3b52e6=_0x33361b['get'](_0x275e60['id']))===null||_0x3b52e6===void 0x0?void 0x0:_0x3b52e6[_0xa3a59e(0x368)](_0x4fa4e2['id']))||((_0x2cb146=_0x33361b[_0xa3a59e(0x368)](_0x275e60['id']))===null||_0x2cb146===void 0x0?void 0x0:_0x2cb146[_0xa3a59e(0x368)](_0xa3a59e(0x3b6)))||((_0x1beb6b=_0x33361b[_0xa3a59e(0x368)](_0xa3a59e(0x3b6)))===null||_0x1beb6b===void 0x0?void 0x0:_0x1beb6b[_0xa3a59e(0x368)](_0x4fa4e2['id']));if(_0x167079)return _0x2e89c9?_0x167079[_0xa3a59e(0x303)](_0x275e60,_0x4fa4e2,_0x2e89c9):_0x167079[_0xa3a59e(0x303)](_0x275e60,_0x4fa4e2);const _0x492ccf=((_0x18a7ef=_0x33361b[_0xa3a59e(0x368)](_0x4fa4e2['id']))===null||_0x18a7ef===void 0x0?void 0x0:_0x18a7ef[_0xa3a59e(0x368)](_0x275e60['id']))||((_0x17450b=_0x33361b['get'](_0x4fa4e2['id']))===null||_0x17450b===void 0x0?void 0x0:_0x17450b[_0xa3a59e(0x368)](_0xa3a59e(0x3b6)))||((_0x39aa05=_0x33361b[_0xa3a59e(0x368)](_0xa3a59e(0x3b6)))===null||_0x39aa05===void 0x0?void 0x0:_0x39aa05['get'](_0x275e60['id']));if(_0x492ccf){const _0x36ee6d=_0x2e89c9?_0x492ccf[_0xa3a59e(0x303)](_0x4fa4e2,_0x275e60,_0x2e89c9):_0x492ccf[_0xa3a59e(0x303)](_0x4fa4e2,_0x275e60);if(isTransformMutationSuccess(_0x36ee6d))return _0x2e89c9?{'m2Prime':_0x36ee6d[_0xa3a59e(0x28a)]}:{'m2Prime':_0x36ee6d['m1Prime'],'m1Prime':_0x36ee6d[_0xa3a59e(0x1a7)]};return _0x36ee6d;}return{'m1Prime':_0x275e60,'m2Prime':_0x4fa4e2};}[_0x151f3e(0x32e)](_0x12a186,_0x31cf5e,_0x45b455){const _0x5de1a2=_0x151f3e;this['_transformMutationsCache'][_0x5de1a2(0x3af)]('m1',_0x12a186),this[_0x5de1a2(0x221)]['set']('m2',_0x31cf5e);const _0x2e16f8=Date[_0x5de1a2(0x231)](),_0x241b85=this['_rightInclineTransformMutations'](_0x12a186,_0x31cf5e,_0x2e16f8);if(isInclineTransformMutationsFailure(_0x241b85))return _0x241b85;if(_0x45b455)return{'m2Prime':_0x241b85};const _0xf66425=this[_0x5de1a2(0x232)](_0x12a186,_0x31cf5e,_0x2e16f8);if(isInclineTransformMutationsFailure(_0xf66425))return _0xf66425;return this[_0x5de1a2(0x221)][_0x5de1a2(0x340)](),{'m1Prime':_0xf66425,'m2Prime':_0x241b85};}[_0x151f3e(0x1f9)](_0x33605f,_0x5c42c2,_0x1bd87e){const _0x139402=_0x151f3e;Date[_0x139402(0x231)]()===_0x1bd87e&&(this[_0x139402(0x258)][_0x139402(0x366)](_0x139402(0x3dc)+new Date()['toISOString']()),this[_0x139402(0x258)][_0x139402(0x366)](_0x139402(0x3f1),_0x33605f[_0x139402(0x1ba)]),this[_0x139402(0x258)][_0x139402(0x366)](_0x139402(0x3d6),_0x5c42c2[_0x139402(0x1ba)]));const _0x5e3656=_0x33605f[_0x139402(0x1ba)];let _0x114316=0x0,_0x4e1cae=0x0,_0x397f13;for(_0x397f13=0x0;_0x397f13<_0x5e3656;_0x397f13++){_0x114316++;if(_0x114316%0x2710===0x0&&Date['now']()-_0x1bd87e>this[_0x139402(0x214)]){this[_0x139402(0x20c)](_0x139402(0x34d)),this[_0x139402(0x266)](_0x33605f['length'],_0x5c42c2[_0x139402(0x1ba)],_0x139402(0x34d));throw new Error('[TransformService]:\x20_rightInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.');}let _0x4e6bd0=[_0x33605f[_0x397f13]],_0x21b2df=[];for(let _0x4fd406=0x0,_0x381afc=_0x5c42c2['length'];_0x4fd406<_0x381afc;_0x4fd406++){_0x4e1cae++;if(_0x4e1cae%0x2710===0x0&&Date[_0x139402(0x231)]()-_0x1bd87e>this[_0x139402(0x214)]){this[_0x139402(0x20c)]('right-loop2'),this[_0x139402(0x266)](_0x33605f[_0x139402(0x1ba)],_0x5c42c2[_0x139402(0x1ba)],_0x139402(0x1c9));throw new Error('[TransformService]:\x20_rightInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.');}const _0x388b6b=_0x5c42c2[_0x4fd406];let _0x323f5a;if(_0x4e6bd0[_0x139402(0x1ba)]===0x0)_0x323f5a=[_0x388b6b],_0x4e6bd0=[];else{if(_0x4e6bd0[_0x139402(0x1ba)]===0x1){const _0x3d6af5=this[_0x139402(0x36b)](_0x4e6bd0[0x0],_0x388b6b);if(isTransformMutationFailure(_0x3d6af5))return _0x3d6af5;_0x323f5a=makeArray(_0x3d6af5[_0x139402(0x1a7)]);if(!_0x3d6af5[_0x139402(0x28a)])throw new Error(_0x139402(0x270));_0x4e6bd0=makeArray(_0x3d6af5[_0x139402(0x28a)]);}else{const _0x55c25e=this[_0x139402(0x1f9)](_0x4e6bd0,[_0x388b6b],_0x1bd87e);if(_0x55c25e[_0x139402(0x281)])return _0x55c25e;_0x323f5a=_0x55c25e;if(_0x4fd406<_0x381afc-0x1){const _0x103cb5=this[_0x139402(0x232)](_0x4e6bd0,[_0x388b6b],_0x1bd87e);if(_0x103cb5[_0x139402(0x281)])return _0x103cb5;_0x4e6bd0=_0x103cb5;}}}_0x21b2df=_0x21b2df[_0x139402(0x2b3)](_0x323f5a);}_0x5c42c2=_0x21b2df;}return _0x5c42c2;}[_0x151f3e(0x232)](_0x5c290a,_0x2598a6,_0x3fdbee){const _0x51a9e6=_0x151f3e;Date[_0x51a9e6(0x231)]()===_0x3fdbee&&(this[_0x51a9e6(0x258)][_0x51a9e6(0x366)](_0x51a9e6(0x1f6)+new Date()[_0x51a9e6(0x348)]()),this[_0x51a9e6(0x258)][_0x51a9e6(0x366)](_0x51a9e6(0x3f1),_0x5c290a[_0x51a9e6(0x1ba)]),this[_0x51a9e6(0x258)][_0x51a9e6(0x366)](_0x51a9e6(0x3d6),_0x2598a6[_0x51a9e6(0x1ba)]));const _0xce241b=_0x2598a6[_0x51a9e6(0x1ba)];let _0x46fcf8,_0x37467c=0x0,_0x3451ab=0x0;for(_0x46fcf8=0x0;_0x46fcf8<_0xce241b;_0x46fcf8++){_0x37467c++;if(_0x37467c%0x2710===0x0&&Date[_0x51a9e6(0x231)]()-_0x3fdbee>this['_loopLimitTime']){this[_0x51a9e6(0x20c)]('left-loop1'),this['_logCurrentTransformMutations'](_0x5c290a[_0x51a9e6(0x1ba)],_0x2598a6['length'],_0x51a9e6(0x3ee));throw new Error(_0x51a9e6(0x196));}let _0x1a9742=[_0x2598a6[_0x46fcf8]],_0x5069f6=[];for(let _0x52bd6f=0x0,_0x1e9106=_0x5c290a[_0x51a9e6(0x1ba)];_0x52bd6f<_0x1e9106;_0x52bd6f++){_0x3451ab++;if(_0x3451ab%0x2710===0x0&&Date[_0x51a9e6(0x231)]()-_0x3fdbee>this['_loopLimitTime']){this[_0x51a9e6(0x20c)](_0x51a9e6(0x293)),this[_0x51a9e6(0x266)](_0x5c290a[_0x51a9e6(0x1ba)],_0x2598a6[_0x51a9e6(0x1ba)],'left-loop2');throw new Error(_0x51a9e6(0x334));}const _0x55f1cc=_0x5c290a[_0x52bd6f];let _0x1b7afa;if(_0x1a9742['length']===0x0)_0x1b7afa=[_0x55f1cc],_0x1a9742=[];else{if(_0x1a9742['length']===0x1){const _0x3d5853=this['transformMutation'](_0x55f1cc,_0x1a9742[0x0]);if(isTransformMutationFailure(_0x3d5853))return _0x3d5853;if(!_0x3d5853[_0x51a9e6(0x28a)])throw new Error('Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.');_0x1b7afa=makeArray(_0x3d5853['m1Prime']),_0x1a9742=makeArray(_0x3d5853[_0x51a9e6(0x1a7)]);}else{const _0x299360=this[_0x51a9e6(0x232)]([_0x55f1cc],_0x1a9742,_0x3fdbee);if(_0x299360['error'])return _0x299360;_0x1b7afa=_0x299360;if(_0x52bd6f<_0x1e9106-0x1){const _0x40f130=this[_0x51a9e6(0x1f9)]([_0x55f1cc],_0x1a9742,_0x3fdbee);if(_0x40f130['error'])return _0x40f130;_0x1a9742=_0x40f130;}}}_0x5069f6=_0x5069f6[_0x51a9e6(0x2b3)](_0x1b7afa);}_0x5c290a=_0x5069f6;}return _0x5c290a;}[_0x151f3e(0x26e)](_0x3aa03b,_0x3f234d,_0x5c7105){const _0x5ed84d=_0x151f3e;if(!checkChangesetsAligned(_0x3aa03b,_0x3f234d))throw new Error(_0x5ed84d(0x346)+_0x3f234d[0x0]['baseRev']+_0x5ed84d(0x3c7)+_0x3aa03b[0x0]['revision']+'.');const _0x47ef4b=_0x3aa03b[_0x5ed84d(0x1ba)],_0x26e768=_0x3f234d[_0x5ed84d(0x1ba)],_0x4fcc03=makeMatrixArray(_0x47ef4b,_0x26e768+0x1),_0x4009ac=makeMatrixArray(_0x47ef4b+0x1,_0x26e768);_0x3aa03b['forEach']((_0x50e825,_0x200614)=>_0x4fcc03[_0x200614][0x0]=_0x50e825),_0x3f234d[_0x5ed84d(0x3b5)]((_0x4d2450,_0x4630a1)=>_0x4009ac[0x0][_0x4630a1]=_0x4d2450);try{for(let _0x366fcd=0x0;_0x366fcd<_0x26e768;_0x366fcd++)for(let _0x3bb18b=0x0;_0x3bb18b<_0x47ef4b;_0x3bb18b++){const _0x34c588=_0x4009ac[_0x3bb18b][_0x366fcd],_0x374159=_0x4fcc03[_0x3bb18b][_0x366fcd];if(!_0x34c588||!_0x374159)throw new Error(_0x5ed84d(0x268));const {mutations:_0x409b45,..._0x25e9c9}=_0x374159,{mutations:_0x28e113,..._0x2d6f4e}=_0x34c588;this[_0x5ed84d(0x258)][_0x5ed84d(0x366)](_0x5ed84d(0x39f)+new Date()[_0x5ed84d(0x348)]()),this[_0x5ed84d(0x258)][_0x5ed84d(0x366)]('[debug]\x20c1:\x20',JSON['stringify'](_0x25e9c9)),this['_logService'][_0x5ed84d(0x366)](_0x5ed84d(0x22d),JSON[_0x5ed84d(0x2c5)](_0x2d6f4e));const _0x253bf5=this[_0x5ed84d(0x32e)](_0x409b45,_0x28e113);if(isTransformMutationsFailure(_0x253bf5))return{'error':_0x253bf5[_0x5ed84d(0x281)]};_0x4009ac[_0x3bb18b+0x1][_0x366fcd]={..._0x34c588,'mutations':_0x253bf5['m2Prime']},_0x4fcc03[_0x3bb18b][_0x366fcd+0x1]={..._0x374159,'mutations':_0x253bf5['m1Prime']};}if(!_0x5c7105)return{'c1Prime':_0x4fcc03[_0x5ed84d(0x284)](_0x101ec7=>_0x101ec7[_0x26e768])[_0x5ed84d(0x2ea)](),'c2Prime':_0x4009ac[_0x47ef4b]};return{'c2Prime':_0x4009ac[_0x47ef4b]};}catch(_0x570435){console['error'](_0x570435);throw _0x570435;}}[_0x151f3e(0x29c)](_0x4b750c,_0x4dd983){const _0x103ea4=_0x151f3e,_0x3359f4=_0x4b750c['mutations'],_0x4c4049=this[_0x103ea4(0x32e)](_0x3359f4,_0x4dd983);if(isTransformMutationsFailure(_0x4c4049))return{'error':_0x4c4049['error']};return{'m2Prime':_0x4c4049[_0x103ea4(0x1a7)],'c1Prime':{..._0x4b750c,'mutations':_0x4c4049[_0x103ea4(0x28a)]}};}[_0x151f3e(0x20c)](_0x4d08a2){const _0x308fe0=_0x151f3e;this['_logService']['error'](_0x308fe0(0x226)+_0x4d08a2+'.\x20Date\x20now:\x20'+new Date()['toISOString']());const _0x4fc258=this[_0x308fe0(0x221)]['get']('m1'),_0x10e02f=this[_0x308fe0(0x221)][_0x308fe0(0x368)]('m2');if(_0x4fc258)_0x4fc258[_0x308fe0(0x3b5)]((_0x1876b6,_0x460d18)=>{const _0x4ace8a=_0x308fe0;this[_0x4ace8a(0x258)]['error'](_0x4ace8a(0x33b)+_0x460d18+_0x4ace8a(0x2de),JSON[_0x4ace8a(0x2c5)](_0x1876b6));});if(_0x10e02f)_0x10e02f[_0x308fe0(0x3b5)]((_0x3160d0,_0x243855)=>{const _0x2973e0=_0x308fe0;this[_0x2973e0(0x258)][_0x2973e0(0x281)](_0x2973e0(0x351)+_0x243855+':\x20',JSON[_0x2973e0(0x2c5)](_0x3160d0));});}[_0x151f3e(0x266)](_0x18921e,_0x14baca,_0x28b685){const _0x367c94=_0x151f3e;this[_0x367c94(0x258)][_0x367c94(0x281)](_0x367c94(0x1b5)+_0x28b685+_0x367c94(0x21e)+new Date()[_0x367c94(0x348)]()),this[_0x367c94(0x258)][_0x367c94(0x281)](_0x367c94(0x1ac)+_0x18921e),this[_0x367c94(0x258)][_0x367c94(0x281)](_0x367c94(0x301)+_0x14baca);}};TransformService=__decorate([__decorateParam(0x0,_univerjs_core[_0x151f3e(0x2ae)])],TransformService);function checkChangesetsAligned(_0xa9aff9,_0x10e5c9){const _0x555fe8=_0x151f3e;if(_0xa9aff9[0x0][_0x555fe8(0x1be)]-0x1!==_0x10e5c9[0x0][_0x555fe8(0x310)])return![];return!![];}function makeMatrixArray(_0x30f733,_0x3a68b6){const _0x1a7cd1=_0x151f3e;return new Array(_0x30f733)[_0x1a7cd1(0x218)](void 0x0)[_0x1a7cd1(0x284)](()=>new Array(_0x3a68b6));}function makeArray(_0x1e9e0d){return Array['isArray'](_0x1e9e0d)?_0x1e9e0d:[_0x1e9e0d];}function extractActionsBySegmentId(_0x585074,_0xaaba65){const _0x42366a=_0x151f3e;if(!Array[_0x42366a(0x1d1)](_0x585074))return;const _0x35504b=_0x585074[_0x42366a(0x23d)](_0x42366a(0x216))>-0x1?_0x585074:_0x585074['find'](_0x3a507e=>{const _0x6519f=_0x42366a;return Array[_0x6519f(0x1d1)](_0x3a507e)&&_0x3a507e['indexOf'](_0x6519f(0x216))>-0x1;});if(!Array[_0x42366a(0x1d1)](_0x35504b))return;const _0x158641=_0x35504b[_0x42366a(0x23d)](_0x42366a(0x216));if(_0x158641===-0x1)return;if((_0x158641===0x0?'':_0x35504b[_0x158641-0x1])!==_0xaaba65)return;return _0x35504b[_0x42366a(0x3a2)](_0x158641);}function transformTextRanges(_0x2aa493,_0x3e75c9,_0x397f6d=_0x151f3e(0x222)){const _0x33faa8=_0x151f3e;if(_0x3e75c9[_0x33faa8(0x1ba)]===0x0)return[];const {segmentId:_0x4d8e5c}=_0x3e75c9[0x0];if(_0x4d8e5c==null)return _0x3e75c9;const _0x4bd9d1=extractActionsBySegmentId(_0x2aa493,_0x4d8e5c);if(_0x4bd9d1==null)return _0x3e75c9;const _0x21075d=[];for(const _0x1363c7 of _0x3e75c9){const _0x219c88=_univerjs_core[_0x33faa8(0x318)][_0x33faa8(0x356)](_0x4bd9d1,_0x1363c7[_0x33faa8(0x22a)],_0x397f6d),_0x1a2ef8=_univerjs_core[_0x33faa8(0x318)]['transformPosition'](_0x4bd9d1,_0x1363c7[_0x33faa8(0x1c0)],_0x397f6d),_0x3ca8cc={..._0x1363c7,'startOffset':_0x219c88,'endOffset':_0x1a2ef8,'collapsed':_0x219c88===_0x1a2ef8};_0x21075d[_0x33faa8(0x1c6)](_0x3ca8cc);}return _0x21075d;}const RichTextEditingMutationWithSelf={'m1':_univerjs_docs[_0x151f3e(0x3b3)]['id'],'m2':_univerjs_docs[_0x151f3e(0x3b3)]['id'],'handler'(_0x2e9bec,_0x46915f){const _0x2a422a=_0x151f3e;if(_0x2e9bec['params']['unitId']!==_0x46915f[_0x2a422a(0x1a4)][_0x2a422a(0x3a7)])return{'error':new Error(_0x2a422a(0x2bf))};const _0x38c723=_univerjs_core[_0x2a422a(0x1a6)][_0x2a422a(0x3ce)](_0x2e9bec),_0x353533=_univerjs_core[_0x2a422a(0x1a6)][_0x2a422a(0x3ce)](_0x46915f);return{'m1Prime':{..._0x38c723,'params':{..._0x38c723['params'],'actions':_univerjs_core[_0x2a422a(0x318)][_0x2a422a(0x35d)](_0x38c723['params'][_0x2a422a(0x3f3)],_0x353533['params'][_0x2a422a(0x3f3)],_0x2a422a(0x359)),'textRanges':_0x38c723[_0x2a422a(0x1a4)][_0x2a422a(0x3b7)]?transformTextRanges(_0x353533[_0x2a422a(0x1a4)][_0x2a422a(0x3f3)],_0x38c723['params'][_0x2a422a(0x3b7)],_0x2a422a(0x222)):null}},'m2Prime':{..._0x353533,'params':{..._0x353533['params'],'actions':_univerjs_core[_0x2a422a(0x318)]['transform'](_0x353533[_0x2a422a(0x1a4)]['actions'],_0x38c723[_0x2a422a(0x1a4)]['actions'],'right'),'textRanges':_0x353533[_0x2a422a(0x1a4)][_0x2a422a(0x3b7)]?transformTextRanges(_0x38c723['params'][_0x2a422a(0x3f3)],_0x353533[_0x2a422a(0x1a4)][_0x2a422a(0x3b7)],_0x2a422a(0x222)):null}}};}},DocAlgorithms=[RichTextEditingMutationWithSelf];function _0x62e3(_0x463277,_0x4420f5){_0x463277=_0x463277-0x194;const _0x3c79c6=_0x3c79();let _0x62e3ee=_0x3c79c6[_0x463277];return _0x62e3ee;}let DocTransformController=class DocTransformController extends _univerjs_core['Disposable']{constructor(_0x24904a){const _0x4bffaf=_0x151f3e;super(),this[_0x4bffaf(0x2b2)]=_0x24904a,[...DocAlgorithms][_0x4bffaf(0x3b5)](_0x1d9a61=>{const _0x51379e=_0x4bffaf;this[_0x51379e(0x2b2)][_0x51379e(0x362)](_0x1d9a61);});}};DocTransformController=__decorate([__decorateParam(0x0,ITransformService)],DocTransformController);const EmptyMutationInfo={'id':_univerjs_sheets['EmptyMutation']['id'],'type':_univerjs_core[_0x151f3e(0x217)][_0x151f3e(0x3ab)],'params':{}},addCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x3de66b,_0x4dc92e)=>{const _0x506654=_0x151f3e,_0x637f1c=_0x3de66b[_0x506654(0x1a4)],_0x16948e=_0x4dc92e[_0x506654(0x1a4)],_0x41455c={'m1Prime':_0x3de66b,'m2Prime':_0x4dc92e};if(_0x637f1c[_0x506654(0x3a7)]!==_0x16948e['unitId']||_0x637f1c['subUnitId']!==_0x16948e[_0x506654(0x2e9)]||_0x637f1c[_0x506654(0x1a1)]['ref']!==_0x16948e[_0x506654(0x1a1)]['ref'])return _0x41455c;if(!_0x637f1c[_0x506654(0x1a1)][_0x506654(0x20b)]&&!_0x16948e[_0x506654(0x1a1)][_0x506654(0x20b)]){const _0x21d461=_univerjs_core['Tools'][_0x506654(0x3ce)](_0x4dc92e);return _0x21d461[_0x506654(0x1a4)][_0x506654(0x1a1)][_0x506654(0x20b)]=_0x3de66b[_0x506654(0x1a4)][_0x506654(0x1a1)]['id'],{'m1Prime':[{'id':_univerjs_thread_comment['DeleteCommentMutation']['id'],'params':{'unitId':_0x637f1c[_0x506654(0x3a7)],'subUnitId':_0x16948e['subUnitId'],'commentId':_0x16948e['comment']['id']}},_0x3de66b,_0x21d461],'m2Prime':[_0x21d461]};}return _0x41455c;}},addConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x151f3e(0x24e)]['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler'(_0x4697b5,_0x1d8810){const _0x18dceb=_0x151f3e;if(_0x4697b5[_0x18dceb(0x1a4)][_0x18dceb(0x3a7)]!==_0x1d8810[_0x18dceb(0x1a4)][_0x18dceb(0x3a7)]||_0x4697b5[_0x18dceb(0x1a4)][_0x18dceb(0x2e9)]!==_0x1d8810['params']['subUnitId'])return{'m1Prime':_0x4697b5,'m2Prime':_0x1d8810};const {unitId:_0x32a40a,subUnitId:_0x5f56ab}=_0x4697b5[_0x18dceb(0x1a4)],_0x1166a4=_univerjs_core[_0x18dceb(0x1a6)]['deepClone'](_0x4697b5),_0x2fda8d=_univerjs_core[_0x18dceb(0x1a6)][_0x18dceb(0x3ce)](_0x1d8810),_0x391d80=[_0x1166a4],_0x562c8b={'unitId':_0x32a40a,'subUnitId':_0x5f56ab,'start':{'id':_0x2fda8d['params'][_0x18dceb(0x3e3)][_0x18dceb(0x255)],'type':_0x18dceb(0x2cd)},'end':{'id':_0x2fda8d[_0x18dceb(0x1a4)][_0x18dceb(0x3e3)][_0x18dceb(0x255)],'type':_0x18dceb(0x38a)}};return _0x391d80[_0x18dceb(0x1c6)]({'id':_univerjs_sheets_conditional_formatting[_0x18dceb(0x345)]['id'],'params':_0x562c8b}),{'m1Prime':_0x391d80,'m2Prime':_0x2fda8d};}};function applyAddMutationTransform(_0x449096,_0xf603e6,_0x1fe2e2,_0x23ad97){const _0x47b058=_0x151f3e,_0x5ccbd4=new _univerjs_core[(_0x47b058(0x2e2))]();_0x1fe2e2[_0x47b058(0x3b5)](_0x45e9c0=>{const _0x117f8f=_0x47b058;_0x45e9c0[_0x117f8f(0x286)][_0x117f8f(0x3b5)](_0x2bbc86=>{const _0x1a1075=_0x117f8f;_univerjs_core[_0x1a1075(0x381)][_0x1a1075(0x372)](_0x2bbc86,(_0x2f1531,_0x2b4a05)=>{const _0x27855e=_0x1a1075;_0x5ccbd4[_0x27855e(0x1af)](_0x2f1531,_0x2b4a05,_0x45e9c0[_0x27855e(0x3be)]);});});}),_0x23ad97['forEach'](_0x5b15f8=>{const _0x3bdca3=_0x47b058;_0x5b15f8[_0x3bdca3(0x286)][_0x3bdca3(0x3b5)](_0x42735f=>{const _0x3a26c1=_0x3bdca3;_univerjs_core[_0x3a26c1(0x381)][_0x3a26c1(0x372)](_0x42735f,(_0x2534cc,_0x59aeb9)=>{const _0x50fe48=_0x3a26c1;_0x5ccbd4['setValue'](_0x2534cc,_0x59aeb9,_0x5b15f8[_0x50fe48(0x3be)]);});});});const _0x33dba4=[];return _0x1fe2e2[_0x47b058(0x3b5)](_0x54771c=>{const _0x2eb1f1=_0x47b058,_0x2f8556=(0x0,_univerjs_core[_0x2eb1f1(0x2ee)])(_0x5ccbd4,_0x567350=>_0x567350===_0x54771c['uid']);if(!_0x2f8556[_0x2eb1f1(0x1ba)]){const _0x3a7249={'ruleId':_0x54771c['uid'],'unitId':_0x449096,'subUnitId':_0xf603e6};_0x33dba4[_0x2eb1f1(0x1c6)]({'id':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'params':_0x3a7249});}else{if(!(0x0,_univerjs_core[_0x2eb1f1(0x3d3)])(_0x2f8556,_0x54771c['ranges'])){const _0x52f187={'ruleId':_0x54771c[_0x2eb1f1(0x3be)],'unitId':_0x449096,'subUnitId':_0xf603e6,'payload':{'type':_univerjs_data_validation[_0x2eb1f1(0x2f4)][_0x2eb1f1(0x3a3)],'payload':_0x2f8556}};_0x33dba4[_0x2eb1f1(0x1c6)]({'id':_univerjs_data_validation[_0x2eb1f1(0x2cf)]['id'],'params':_0x52f187});}}}),_0x33dba4;}function mergeAddMutation(_0x4e0acc,_0x2ca9ea){const _0x3501fe=_0x151f3e,_0x3440a3=_univerjs_core[_0x3501fe(0x1a6)][_0x3501fe(0x3ce)](Array['isArray'](_0x4e0acc[_0x3501fe(0x1a4)][_0x3501fe(0x3e3)])?_0x4e0acc[_0x3501fe(0x1a4)][_0x3501fe(0x3e3)]:[_0x4e0acc[_0x3501fe(0x1a4)][_0x3501fe(0x3e3)]]);return _0x2ca9ea[_0x3501fe(0x3b5)](_0x5b8765=>{const _0x411813=_0x3501fe;if(_0x5b8765['id']===_univerjs_data_validation[_0x411813(0x2cf)]['id']){const _0x51dd16=_0x5b8765,_0x32a207=_0x3440a3['find'](_0x197980=>_0x197980[_0x411813(0x3be)]===_0x51dd16[_0x411813(0x1a4)][_0x411813(0x365)]);_0x32a207['ranges']=_0x51dd16[_0x411813(0x1a4)][_0x411813(0x296)][_0x411813(0x296)];}else{if(_0x5b8765['id']===_univerjs_data_validation[_0x411813(0x25b)]['id']){const _0x3b5cf2=_0x3440a3['findIndex'](_0x4e9f37=>_0x4e9f37[_0x411813(0x3be)]===_0x5b8765[_0x411813(0x1a4)][_0x411813(0x365)]);_0x3440a3[_0x3b5cf2]=null;}}}),_0x3440a3[_0x3501fe(0x324)](Boolean)[_0x3501fe(0x1ba)]?[{..._0x4e0acc,'params':{..._0x4e0acc[_0x3501fe(0x1a4)],'rule':_0x3440a3['filter'](Boolean)}}]:[];}const addDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'handler':(_0x797c1c,_0x2ab83f)=>{const _0x1b4e83=_0x151f3e,_0xb5afad={'m1Prime':_0x797c1c,'m2Prime':_0x2ab83f},_0x1ee79e=_0x797c1c[_0x1b4e83(0x1a4)],_0x11cdfc=_0x2ab83f['params'];if(_0x1ee79e[_0x1b4e83(0x3a7)]!==_0x11cdfc[_0x1b4e83(0x3a7)]||_0x1ee79e[_0x1b4e83(0x2e9)]!==_0x11cdfc[_0x1b4e83(0x2e9)])return _0xb5afad;const _0x41f9ca=_univerjs_core[_0x1b4e83(0x1a6)]['deepClone'](_0x797c1c),_0xb6f904=_univerjs_core[_0x1b4e83(0x1a6)][_0x1b4e83(0x3ce)](_0x2ab83f),_0x55bd13=_0x1ee79e['unitId'],_0x323b67=_0x11cdfc[_0x1b4e83(0x2e9)],_0x5b0c4f=_0x41f9ca[_0x1b4e83(0x1a4)]['rule'],_0x5833c7=_0xb6f904[_0x1b4e83(0x1a4)][_0x1b4e83(0x3e3)];if(Array[_0x1b4e83(0x1d1)](_0x5b0c4f)&&Array['isArray'](_0x5833c7))return{'m1Prime':[],'m2Prime':[]};if(Array[_0x1b4e83(0x1d1)](_0x5b0c4f)){_0x41f9ca[_0x1b4e83(0x1a4)][_0x1b4e83(0x26d)]=0x0;const _0x3e52d9=applyAddMutationTransform(_0x55bd13,_0x323b67,_0x5b0c4f,[_0x5833c7]);return{'m1Prime':mergeAddMutation(_0x41f9ca,_0x3e52d9),'m2Prime':[..._0x3e52d9,_0xb6f904]};}if(Array[_0x1b4e83(0x1d1)](_0x5833c7)){const _0x108f7d=applyAddMutationTransform(_0x55bd13,_0x323b67,_0x5833c7,[_0x5b0c4f]);return _0xb6f904[_0x1b4e83(0x1a4)][_0x1b4e83(0x26d)]=0x0,{'m1Prime':mergeAddMutation(_0x41f9ca,_0x108f7d),'m2Prime':[..._0x108f7d,_0xb6f904]};}const _0xcf3cb3=applyAddMutationTransform(_0x55bd13,_0x323b67,[_0x5b0c4f],[_0x5833c7]);return _0xb6f904['params'][_0x1b4e83(0x26d)]=-0x1,{'m1Prime':mergeAddMutation(_0x41f9ca,_0xcf3cb3),'m2Prime':[..._0xcf3cb3,_0xb6f904]};}},addDataValidationMutationWithUpdate={'m1':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x52ec49,_0x1a75c9)=>{const _0x4d8523=_0x151f3e,_0x4532f4={'m1Prime':_0x52ec49,'m2Prime':_0x1a75c9},_0x430300=_0x52ec49['params'],_0x575846=_0x1a75c9[_0x4d8523(0x1a4)];if(_0x430300[_0x4d8523(0x3a7)]!==_0x575846[_0x4d8523(0x3a7)]||_0x430300[_0x4d8523(0x2e9)]!==_0x575846['subUnitId'])return _0x4532f4;if(_0x1a75c9[_0x4d8523(0x1a4)][_0x4d8523(0x296)][_0x4d8523(0x38b)]===_univerjs_data_validation[_0x4d8523(0x2f4)][_0x4d8523(0x3a3)]){const {unitId:_0x4e9b9b,subUnitId:_0x479964}=_0x52ec49[_0x4d8523(0x1a4)],_0x3c5c38=Array[_0x4d8523(0x1d1)](_0x52ec49['params']['rule'])?_0x52ec49['params']['rule']:[_0x52ec49['params'][_0x4d8523(0x3e3)]],_0x4e62fc=[],_0x5bf997=new _univerjs_core[(_0x4d8523(0x2e2))]();return _0x3c5c38[_0x4d8523(0x3b5)](_0x2ea032=>{const _0x40d9e4=_0x4d8523;_0x2ea032['ranges'][_0x40d9e4(0x3b5)](_0x3d1ea1=>{_univerjs_core['Range']['foreach'](_0x3d1ea1,(_0xc8bc85,_0x220553)=>{const _0x48cb6a=_0x62e3;_0x5bf997[_0x48cb6a(0x1af)](_0xc8bc85,_0x220553,_0x2ea032[_0x48cb6a(0x3be)]);});});}),_0x1a75c9[_0x4d8523(0x1a4)]['payload'][_0x4d8523(0x296)]['forEach'](_0x5a8aa3=>{const _0x54fb9b=_0x4d8523;_univerjs_core[_0x54fb9b(0x381)][_0x54fb9b(0x372)](_0x5a8aa3,(_0x175691,_0x2a225a)=>{const _0x2c2f37=_0x54fb9b;_0x5bf997['setValue'](_0x175691,_0x2a225a,_0x1a75c9['params'][_0x2c2f37(0x365)]);});}),_0x3c5c38[_0x4d8523(0x3b5)](_0x52276c=>{const _0x42722d=_0x4d8523,_0x51c952=(0x0,_univerjs_core[_0x42722d(0x2ee)])(_0x5bf997,_0xb96aa5=>_0xb96aa5===_0x52276c[_0x42722d(0x3be)]);if(!(0x0,_univerjs_core[_0x42722d(0x3d3)])(_0x51c952,_0x52276c[_0x42722d(0x286)])){if(_0x51c952['length'])_0x4e62fc['push']({'id':_univerjs_data_validation[_0x42722d(0x2cf)]['id'],'params':{'unitId':_0x4e9b9b,'subUnitId':_0x479964,'ruleId':_0x52276c[_0x42722d(0x3be)],'payload':{'type':_univerjs_data_validation[_0x42722d(0x2f4)][_0x42722d(0x3a3)],'payload':_0x51c952}}});else _0x4e62fc[_0x42722d(0x1c6)]({'id':_univerjs_data_validation[_0x42722d(0x25b)]['id'],'params':{'unitId':_0x4e9b9b,'subUnitId':_0x479964,'ruleId':_0x52276c['uid']}});}}),{'m1Prime':mergeAddMutation(_0x52ec49,_0x4e62fc),'m2Prime':[..._0x4e62fc,_0x1a75c9]};}return _0x4532f4;}},addHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0x151f3e(0x2cc)]['id'],'m2':_univerjs_sheets_hyper_link['AddHyperLinkMutation']['id'],'handler':(_0x1f1957,_0x3787a7)=>{const _0x2502d8=_0x151f3e,_0x32f399=_0x1f1957[_0x2502d8(0x1a4)],_0x50182b=_0x3787a7[_0x2502d8(0x1a4)];if(_0x32f399[_0x2502d8(0x3a7)]===_0x50182b[_0x2502d8(0x3a7)]&&_0x32f399[_0x2502d8(0x2e9)]===_0x50182b['subUnitId']&&_0x32f399[_0x2502d8(0x30c)]['row']===_0x50182b[_0x2502d8(0x30c)]['row']&&_0x32f399['link'][_0x2502d8(0x1cd)]===_0x50182b[_0x2502d8(0x30c)]['column'])return{'m2Prime':_0x3787a7,'m1Prime':[]};return{'m1Prime':_0x1f1957,'m2Prime':_0x3787a7};}},addRangeProtectionWithAddComment={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x5d2a87,_0xa66d53)=>{const _0x18f2f6=_0x151f3e,_0xca0de0={'m1Prime':_0x5d2a87,'m2Prime':_0xa66d53};if(_0x5d2a87[_0x18f2f6(0x1a4)]['unitId']!==_0xa66d53[_0x18f2f6(0x1a4)]['unitId']||_0x5d2a87[_0x18f2f6(0x1a4)][_0x18f2f6(0x2e9)]!==_0xa66d53[_0x18f2f6(0x1a4)][_0x18f2f6(0x2e9)])return _0xca0de0;return{'error':new Error(_0x18f2f6(0x2cb))};}},addRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler':(_0x3956d7,_0x3d9e4b)=>{const _0x4b92bf=_0x151f3e,_0x40cad1={'m1Prime':_0x3956d7,'m2Prime':_0x3d9e4b};if(_0x3956d7['params'][_0x4b92bf(0x3a7)]!==_0x3d9e4b[_0x4b92bf(0x1a4)][_0x4b92bf(0x3a7)]||_0x3956d7[_0x4b92bf(0x1a4)][_0x4b92bf(0x2e9)]!==_0x3d9e4b[_0x4b92bf(0x1a4)]['subUnitId'])return _0x40cad1;const _0x3cc4e8=_0x3956d7[_0x4b92bf(0x1a4)]['rules'][_0x4b92bf(0x284)](_0x12662a=>_0x12662a[_0x4b92bf(0x286)])['flat'](),_0x176a1b=_0x3d9e4b[_0x4b92bf(0x1a4)][_0x4b92bf(0x3e3)][_0x4b92bf(0x286)];if(_0x3cc4e8['some'](_0x20a583=>_0x176a1b[_0x4b92bf(0x3a1)](_0x94862a=>_univerjs_core[_0x4b92bf(0x1d9)][_0x4b92bf(0x1ab)](_0x20a583,_0x94862a))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule')};return _0x40cad1;}},addRangeProtectionWithSelf={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x291)]['id'],'handler':(_0x26b714,_0x3122ec)=>{const _0x2ecabf=_0x151f3e,_0x4df6ef={'m1Prime':_0x26b714,'m2Prime':_0x3122ec};if(_0x26b714['params'][_0x2ecabf(0x3a7)]!==_0x3122ec[_0x2ecabf(0x1a4)][_0x2ecabf(0x3a7)]||_0x26b714[_0x2ecabf(0x1a4)]['subUnitId']!==_0x3122ec[_0x2ecabf(0x1a4)][_0x2ecabf(0x2e9)])return _0x4df6ef;const _0x1d707a=_0x26b714[_0x2ecabf(0x1a4)][_0x2ecabf(0x2fc)]['map'](_0x214a02=>_0x214a02[_0x2ecabf(0x286)])[_0x2ecabf(0x2ea)](),_0x2a7070=_0x3122ec['params'][_0x2ecabf(0x2fc)][_0x2ecabf(0x284)](_0x11c2b6=>_0x11c2b6[_0x2ecabf(0x286)])[_0x2ecabf(0x2ea)]();if(_0x1d707a[_0x2ecabf(0x3a1)](_0x5c9171=>_0x2a7070[_0x2ecabf(0x3a1)](_0x31f3be=>_univerjs_core['Rectangle'][_0x2ecabf(0x1ab)](_0x5c9171,_0x31f3be))))return{'error':new Error(_0x2ecabf(0x330))};return _0x4df6ef;}},addRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler':(_0x108039,_0x34c1ce)=>{const _0x4895ce=_0x151f3e,_0x104f5c={'m1Prime':_0x108039,'m2Prime':_0x34c1ce};if(_0x108039[_0x4895ce(0x1a4)][_0x4895ce(0x3a7)]!==_0x34c1ce['params'][_0x4895ce(0x3a7)]||_0x108039['params'][_0x4895ce(0x2e9)]!==_0x34c1ce[_0x4895ce(0x1a4)][_0x4895ce(0x2e9)])return _0x104f5c;const _0x4bd87f=_0x108039[_0x4895ce(0x1a4)]['rules'][_0x4895ce(0x284)](_0x26097f=>_0x26097f[_0x4895ce(0x286)])['flat'](),_0x334d01=_0x34c1ce[_0x4895ce(0x1a4)][_0x4895ce(0x286)];if(_0x4bd87f[_0x4895ce(0x3a1)](_0x456e5b=>_0x334d01[_0x4895ce(0x3a1)](_0x32e289=>_univerjs_core[_0x4895ce(0x1d9)][_0x4895ce(0x1ab)](_0x456e5b,_0x32e289))))return{'error':new Error(_0x4895ce(0x322))};return _0x104f5c;}},addRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'handler':(_0x3a58d9,_0x4bff6e)=>{const _0x31694d=_0x151f3e,_0x5eb4d6={'m1Prime':_0x3a58d9,'m2Prime':_0x4bff6e};if(_0x3a58d9[_0x31694d(0x1a4)]['unitId']!==_0x4bff6e['params'][_0x31694d(0x3a7)]||_0x3a58d9[_0x31694d(0x1a4)][_0x31694d(0x2e9)]!==_0x4bff6e[_0x31694d(0x1a4)]['rule']['subUnitId'])return _0x5eb4d6;return{'error':new Error(_0x31694d(0x2be))};}},addRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x31c)]['id'],'handler':(_0x16f4e4,_0xb92cb1)=>{const _0x8439e5=_0x151f3e,_0x8cfd8d={'m1Prime':_0x16f4e4,'m2Prime':_0xb92cb1};if(_0x16f4e4[_0x8439e5(0x1a4)][_0x8439e5(0x3a7)]!==_0xb92cb1[_0x8439e5(0x1a4)]['unitId']||_0x16f4e4[_0x8439e5(0x1a4)][_0x8439e5(0x2e9)]!==_0xb92cb1[_0x8439e5(0x1a4)]['subUnitId'])return _0x8cfd8d;return{'error':new Error(_0x8439e5(0x2f5))};}},addRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler':(_0x5de90a,_0x1f78f1)=>{const _0x38d865=_0x151f3e,_0x3ec1a4={'m1Prime':_0x5de90a,'m2Prime':_0x1f78f1};if(_0x5de90a[_0x38d865(0x1a4)][_0x38d865(0x3a7)]!==_0x1f78f1['params'][_0x38d865(0x3a7)]||_0x5de90a[_0x38d865(0x1a4)][_0x38d865(0x2e9)]!==_0x1f78f1[_0x38d865(0x1a4)][_0x38d865(0x2e9)])return _0x3ec1a4;const _0x32fada=_0x5de90a[_0x38d865(0x1a4)][_0x38d865(0x2fc)][_0x38d865(0x284)](_0x379da1=>_0x379da1[_0x38d865(0x286)])[_0x38d865(0x2ea)](),_0x34157c=_0x1f78f1[_0x38d865(0x1a4)][_0x38d865(0x1b6)];if(_0x32fada[_0x38d865(0x3a1)](_0x297bec=>_univerjs_core[_0x38d865(0x1d9)]['intersects'](_0x297bec,_0x34157c)))return{'error':new Error(_0x38d865(0x3a8))};return _0x3ec1a4;}},addRangeProtectionWithInsertRow={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler':(_0x4c8d74,_0x4f333e)=>{const _0x5e6bab=_0x151f3e,_0xee77c1={'m1Prime':_0x4c8d74,'m2Prime':_0x4f333e};if(_0x4c8d74[_0x5e6bab(0x1a4)]['unitId']!==_0x4f333e['params']['unitId']||_0x4c8d74['params'][_0x5e6bab(0x2e9)]!==_0x4f333e[_0x5e6bab(0x1a4)][_0x5e6bab(0x2e9)])return _0xee77c1;const _0x411a7d=_0x4c8d74[_0x5e6bab(0x1a4)][_0x5e6bab(0x2fc)]['map'](_0x4146ab=>_0x4146ab[_0x5e6bab(0x286)])[_0x5e6bab(0x2ea)](),_0x43a266=_0x4f333e[_0x5e6bab(0x1a4)][_0x5e6bab(0x1b6)];if(_0x411a7d['some'](_0x42bcc8=>_univerjs_core['Rectangle'][_0x5e6bab(0x1ab)](_0x42bcc8,_0x43a266)))return{'error':new Error(_0x5e6bab(0x26b))};return _0xee77c1;}},addRangeProtectionWithMoveCol={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x53d48d,_0x17c778)=>{const _0x18a227=_0x151f3e,_0x4e170b={'m1Prime':_0x53d48d,'m2Prime':_0x17c778};if(_0x53d48d[_0x18a227(0x1a4)][_0x18a227(0x3a7)]!==_0x17c778['params'][_0x18a227(0x3a7)]||_0x53d48d['params'][_0x18a227(0x2e9)]!==_0x17c778['params'][_0x18a227(0x2e9)])return _0x4e170b;const _0x3b278a=_0x53d48d['params'][_0x18a227(0x2fc)][_0x18a227(0x284)](_0x4b7c81=>_0x4b7c81[_0x18a227(0x286)])['flat'](),_0x4d45e6=[_0x17c778['params'][_0x18a227(0x195)],_0x17c778[_0x18a227(0x1a4)][_0x18a227(0x373)]];if(_0x3b278a[_0x18a227(0x3a1)](_0xe3a9e1=>_0x4d45e6[_0x18a227(0x3a1)](_0x3f6dd6=>_univerjs_core[_0x18a227(0x1d9)][_0x18a227(0x1ab)](_0xe3a9e1,_0x3f6dd6))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col')};return _0x4e170b;}},addRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler':(_0x5af673,_0x146e59)=>{const _0x136b53=_0x151f3e,_0x5b8056={'m1Prime':_0x5af673,'m2Prime':_0x146e59};if(_0x5af673[_0x136b53(0x1a4)]['unitId']!==_0x146e59[_0x136b53(0x1a4)][_0x136b53(0x3a7)]||_0x5af673['params']['subUnitId']!==_0x146e59[_0x136b53(0x1a4)]['from'][_0x136b53(0x2e9)])return _0x5b8056;const _0xf2f690=_0x5af673['params'][_0x136b53(0x2fc)]['map'](_0x55bbcd=>_0x55bbcd[_0x136b53(0x286)])[_0x136b53(0x2ea)](),_0x38ff35=[new _univerjs_core[(_0x136b53(0x2e2))](_0x146e59[_0x136b53(0x1a4)][_0x136b53(0x3fc)]['value'])[_0x136b53(0x25e)](),new _univerjs_core[(_0x136b53(0x2e2))](_0x146e59[_0x136b53(0x1a4)]['to'][_0x136b53(0x1df)])[_0x136b53(0x25e)]()];if(_0xf2f690[_0x136b53(0x3a1)](_0x2bc2db=>_0x38ff35['some'](_0x47cd18=>_univerjs_core[_0x136b53(0x1d9)]['intersects'](_0x2bc2db,_0x47cd18))))return{'error':new Error(_0x136b53(0x363))};return _0x5b8056;}},addRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x1ffef4,_0x2cc842)=>{const _0x2f45e6=_0x151f3e,_0x388da6={'m1Prime':_0x1ffef4,'m2Prime':_0x2cc842};if(_0x1ffef4[_0x2f45e6(0x1a4)][_0x2f45e6(0x3a7)]!==_0x2cc842['params'][_0x2f45e6(0x3a7)]||_0x1ffef4[_0x2f45e6(0x1a4)][_0x2f45e6(0x2e9)]!==_0x2cc842[_0x2f45e6(0x1a4)][_0x2f45e6(0x2e9)])return _0x388da6;const _0xdcaa9a=_0x1ffef4[_0x2f45e6(0x1a4)][_0x2f45e6(0x2fc)]['map'](_0x57a675=>_0x57a675['ranges'])['flat'](),_0x53230a=[_0x2cc842['params'][_0x2f45e6(0x195)],_0x2cc842['params'][_0x2f45e6(0x373)]];if(_0xdcaa9a['some'](_0x55b0fe=>_0x53230a[_0x2f45e6(0x3a1)](_0x2c2834=>_univerjs_core[_0x2f45e6(0x1d9)]['intersects'](_0x55b0fe,_0x2c2834))))return{'error':new Error(_0x2f45e6(0x295))};return _0x388da6;}},addRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler':(_0x4a0dc5,_0x4604af)=>{const _0x2d97f8=_0x151f3e,_0x37b76c={'m1Prime':_0x4a0dc5,'m2Prime':_0x4604af};if(_0x4a0dc5[_0x2d97f8(0x1a4)][_0x2d97f8(0x3a7)]!==_0x4604af['params']['unitId']||_0x4a0dc5[_0x2d97f8(0x1a4)]['subUnitId']!==_0x4604af[_0x2d97f8(0x1a4)][_0x2d97f8(0x2e9)])return _0x37b76c;const _0x363263=_0x4a0dc5[_0x2d97f8(0x1a4)]['rules'][_0x2d97f8(0x284)](_0x5bc02a=>_0x5bc02a[_0x2d97f8(0x286)])[_0x2d97f8(0x2ea)](),_0x3d192d=_0x4604af[_0x2d97f8(0x1a4)][_0x2d97f8(0x1b6)];if(_0x363263[_0x2d97f8(0x3a1)](_0x3bdfff=>_univerjs_core[_0x2d97f8(0x1d9)][_0x2d97f8(0x1ab)](_0x3bdfff,_0x3d192d)))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col')};return _0x37b76c;}},addRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'handler':(_0x3f4ce4,_0x1cbc81)=>{const _0x3e59b6=_0x151f3e,_0x385907={'m1Prime':_0x3f4ce4,'m2Prime':_0x1cbc81};if(_0x3f4ce4[_0x3e59b6(0x1a4)][_0x3e59b6(0x3a7)]!==_0x1cbc81[_0x3e59b6(0x1a4)]['unitId']||_0x3f4ce4[_0x3e59b6(0x1a4)]['subUnitId']!==_0x1cbc81[_0x3e59b6(0x1a4)][_0x3e59b6(0x2e9)])return _0x385907;return{'error':new Error(_0x3e59b6(0x2ce))};}},addRangeProtectionWithRemoveNumfmt={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler':(_0x913758,_0x4c4af6)=>{const _0x4eecc4=_0x151f3e,_0x1d2198={'m1Prime':_0x913758,'m2Prime':_0x4c4af6};if(_0x913758['params']['unitId']!==_0x4c4af6['params'][_0x4eecc4(0x3a7)]||_0x913758['params'][_0x4eecc4(0x2e9)]!==_0x4c4af6[_0x4eecc4(0x1a4)]['subUnitId'])return _0x1d2198;const _0x11223a=_0x913758[_0x4eecc4(0x1a4)][_0x4eecc4(0x2fc)][_0x4eecc4(0x284)](_0x569458=>_0x569458[_0x4eecc4(0x286)])[_0x4eecc4(0x2ea)](),_0x5933f4=_0x4c4af6['params'][_0x4eecc4(0x286)];if(_0x11223a[_0x4eecc4(0x3a1)](_0x20664e=>_0x5933f4[_0x4eecc4(0x3a1)](_0x16c7be=>_univerjs_core[_0x4eecc4(0x1d9)][_0x4eecc4(0x1ab)](_0x20664e,_0x16c7be))))return{'error':new Error(_0x4eecc4(0x26f))};return _0x1d2198;}},addRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'handler':(_0x45a787,_0xee6661)=>{const _0x406cb5=_0x151f3e,_0x210653={'m1Prime':_0x45a787,'m2Prime':_0xee6661};if(_0x45a787[_0x406cb5(0x1a4)][_0x406cb5(0x3a7)]!==_0xee6661[_0x406cb5(0x1a4)]['unitId']||_0x45a787[_0x406cb5(0x1a4)]['subUnitId']!==_0xee6661['params'][_0x406cb5(0x2e9)])return _0x210653;return{'error':new Error(_0x406cb5(0x1d2))};}},addRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler':(_0x244782,_0x15d549)=>{const _0xc57b47=_0x151f3e,_0x2cd820={'m1Prime':_0x244782,'m2Prime':_0x15d549};if(_0x244782['params']['unitId']!==_0x15d549[_0xc57b47(0x1a4)][_0xc57b47(0x3a7)]||_0x244782[_0xc57b47(0x1a4)][_0xc57b47(0x2e9)]!==_0x15d549[_0xc57b47(0x1a4)]['subUnitId'])return _0x2cd820;const _0x4227d2=_0x244782[_0xc57b47(0x1a4)][_0xc57b47(0x2fc)][_0xc57b47(0x284)](_0x4ae4b1=>_0x4ae4b1[_0xc57b47(0x286)])[_0xc57b47(0x2ea)](),_0x4f5c29=_0x15d549[_0xc57b47(0x1a4)][_0xc57b47(0x286)];if(_0x4227d2[_0xc57b47(0x3a1)](_0x144949=>_0x4f5c29[_0xc57b47(0x3a1)](_0x10463c=>_univerjs_core[_0xc57b47(0x1d9)][_0xc57b47(0x1ab)](_0x144949,_0x10463c))))return{'error':new Error(_0xc57b47(0x3b9))};return _0x2cd820;}},addRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler':(_0x1aa515,_0x3314de)=>{const _0x18e9b3=_0x151f3e,_0x3358e4={'m1Prime':_0x1aa515,'m2Prime':_0x3314de};if(_0x1aa515[_0x18e9b3(0x1a4)][_0x18e9b3(0x3a7)]!==_0x3314de[_0x18e9b3(0x1a4)][_0x18e9b3(0x3a7)]||_0x1aa515[_0x18e9b3(0x1a4)][_0x18e9b3(0x2e9)]!==_0x3314de['params'][_0x18e9b3(0x2e9)])return _0x3358e4;const _0x55e54d=_0x1aa515['params'][_0x18e9b3(0x2fc)][_0x18e9b3(0x284)](_0x32c1d9=>_0x32c1d9[_0x18e9b3(0x286)])['flat'](),_0x3a9e6e=_0x3314de['params'][_0x18e9b3(0x3e3)][_0x18e9b3(0x286)];if(_0x55e54d['some'](_0xf0a207=>_0x3a9e6e[_0x18e9b3(0x3a1)](_0x214a98=>_univerjs_core['Rectangle'][_0x18e9b3(0x1ab)](_0xf0a207,_0x214a98))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule')};return _0x3358e4;}},addRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x240)]['id'],'handler':(_0x344571,_0x1ab6f7)=>{const _0x2efe65=_0x151f3e,_0x45f0e9={'m1Prime':_0x344571,'m2Prime':_0x1ab6f7};if(_0x344571[_0x2efe65(0x1a4)]['unitId']!==_0x1ab6f7[_0x2efe65(0x1a4)][_0x2efe65(0x3a7)]||_0x344571[_0x2efe65(0x1a4)][_0x2efe65(0x2e9)]!==_0x1ab6f7[_0x2efe65(0x1a4)]['subUnitId'])return _0x45f0e9;const _0x4f258a=_0x344571['params'][_0x2efe65(0x2fc)]['map'](_0x4e8398=>_0x4e8398['ranges'])[_0x2efe65(0x2ea)](),_0x56292c=[{'startRow':_0x1ab6f7[_0x2efe65(0x1a4)][_0x2efe65(0x1e8)],'endRow':_0x1ab6f7['params'][_0x2efe65(0x1e8)],'startColumn':_0x1ab6f7[_0x2efe65(0x1a4)][_0x2efe65(0x1cb)],'endColumn':_0x1ab6f7[_0x2efe65(0x1a4)][_0x2efe65(0x1cb)]}];if(_0x4f258a[_0x2efe65(0x3a1)](_0x1fb626=>_0x56292c[_0x2efe65(0x3a1)](_0x65dfb2=>_univerjs_core[_0x2efe65(0x1d9)]['intersects'](_0x1fb626,_0x65dfb2))))return{'error':new Error(_0x2efe65(0x331))};return _0x45f0e9;}},addRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler':(_0x3c1301,_0x1977ca)=>{const _0x1f9718=_0x151f3e,_0x5cbebc={'m1Prime':_0x3c1301,'m2Prime':_0x1977ca};if(_0x3c1301[_0x1f9718(0x1a4)][_0x1f9718(0x3a7)]!==_0x1977ca[_0x1f9718(0x1a4)][_0x1f9718(0x3a7)]||_0x3c1301[_0x1f9718(0x1a4)][_0x1f9718(0x2e9)]!==_0x1977ca['params']['subUnitId'])return _0x5cbebc;return{'error':new Error(_0x1f9718(0x395))};}},addRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'handler':(_0x20722e,_0x37ec7a)=>{const _0x16623d=_0x151f3e,_0x1a29fe={'m1Prime':_0x20722e,'m2Prime':_0x37ec7a};if(_0x20722e[_0x16623d(0x1a4)][_0x16623d(0x3a7)]!==_0x37ec7a['params'][_0x16623d(0x3a7)]||_0x20722e[_0x16623d(0x1a4)][_0x16623d(0x2e9)]!==_0x37ec7a[_0x16623d(0x1a4)][_0x16623d(0x2e9)])return _0x1a29fe;const _0x23cb24=_0x20722e[_0x16623d(0x1a4)][_0x16623d(0x2fc)]['map'](_0x45f341=>_0x45f341[_0x16623d(0x286)])[_0x16623d(0x2ea)](),_0x104fa2=_0x37ec7a[_0x16623d(0x1a4)][_0x16623d(0x3e3)]['ranges'];if(_0x23cb24['some'](_0x490b58=>_0x104fa2[_0x16623d(0x3a1)](_0xc822fd=>_univerjs_core[_0x16623d(0x1d9)]['intersects'](_0x490b58,_0xc822fd))))return{'error':new Error(_0x16623d(0x312))};return _0x1a29fe;}},addRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler':(_0xbc721f,_0x546453)=>{const _0x4ce8ef=_0x151f3e,_0xbedeef={'m1Prime':_0xbc721f,'m2Prime':_0x546453};if(_0xbc721f[_0x4ce8ef(0x1a4)]['unitId']!==_0x546453['params'][_0x4ce8ef(0x3a7)]||_0xbc721f[_0x4ce8ef(0x1a4)][_0x4ce8ef(0x2e9)]!==_0x546453['params'][_0x4ce8ef(0x2e9)])return _0xbedeef;const _0x2c5ac3=_0xbc721f[_0x4ce8ef(0x1a4)][_0x4ce8ef(0x2fc)][_0x4ce8ef(0x284)](_0x4393e4=>_0x4393e4[_0x4ce8ef(0x286)])[_0x4ce8ef(0x2ea)](),_0x3deed3=new _univerjs_core[(_0x4ce8ef(0x2e2))](_0x546453[_0x4ce8ef(0x1a4)][_0x4ce8ef(0x30b)])[_0x4ce8ef(0x25e)]();if(_0x2c5ac3[_0x4ce8ef(0x3a1)](_0x2248d6=>_univerjs_core[_0x4ce8ef(0x1d9)][_0x4ce8ef(0x1ab)](_0x2248d6,_0x3deed3)))return{'error':new Error(_0x4ce8ef(0x2d3))};return _0xbedeef;}},addRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'handler':(_0x34878f,_0xc31918)=>{const _0x349d23=_0x151f3e,_0x4dec53={'m1Prime':_0x34878f,'m2Prime':_0xc31918};if(_0x34878f[_0x349d23(0x1a4)][_0x349d23(0x3a7)]!==_0xc31918[_0x349d23(0x1a4)][_0x349d23(0x3a7)]||_0x34878f[_0x349d23(0x1a4)]['subUnitId']!==_0xc31918[_0x349d23(0x1a4)]['subUnitId'])return _0x4dec53;const _0x2b9487=_0x34878f[_0x349d23(0x1a4)]['rules'][_0x349d23(0x284)](_0x389b41=>_0x389b41[_0x349d23(0x286)])[_0x349d23(0x2ea)](),_0x53167e=_0xc31918['params'][_0x349d23(0x286)];if(_0x2b9487['some'](_0x12df60=>_0x53167e[_0x349d23(0x3a1)](_0x24a519=>_univerjs_core[_0x349d23(0x1d9)]['intersects'](_0x12df60,_0x24a519))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};return _0x4dec53;}},addRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x34f)]['id'],'handler':(_0x1855b5,_0x454f66)=>{const _0x12dcfd=_0x151f3e,_0x26c598={'m1Prime':_0x1855b5,'m2Prime':_0x454f66};if(_0x1855b5[_0x12dcfd(0x1a4)][_0x12dcfd(0x3a7)]!==_0x454f66['params']['unitId']||_0x1855b5[_0x12dcfd(0x1a4)][_0x12dcfd(0x2e9)]!==_0x454f66[_0x12dcfd(0x1a4)][_0x12dcfd(0x2e9)])return _0x26c598;return{'error':new Error(_0x12dcfd(0x1fe))};}},addRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x291)]['id'],'m2':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'handler':(_0x15ada3,_0x2a9dd1)=>{const _0x44980a=_0x151f3e,_0x1d9e2f={'m1Prime':_0x15ada3,'m2Prime':_0x2a9dd1};if(_0x15ada3['params'][_0x44980a(0x3a7)]!==_0x2a9dd1['params'][_0x44980a(0x3a7)]||_0x15ada3[_0x44980a(0x1a4)]['subUnitId']!==_0x2a9dd1[_0x44980a(0x1a4)]['subUnitId'])return _0x1d9e2f;return{'error':new Error(_0x44980a(0x2b9))};}},addWorksheetMergeMutationWithSelf={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x12722e,_0x13c622){const _0x2a81f4=_0x151f3e,_0x58bda1=_univerjs_core[_0x2a81f4(0x1a6)]['deepClone'](_0x12722e),_0x2952d3=_univerjs_core[_0x2a81f4(0x1a6)][_0x2a81f4(0x3ce)](_0x13c622);if(_0x12722e[_0x2a81f4(0x1a4)][_0x2a81f4(0x3a7)]!==_0x13c622[_0x2a81f4(0x1a4)]['unitId']||_0x12722e['params'][_0x2a81f4(0x2e9)]!==_0x13c622[_0x2a81f4(0x1a4)]['subUnitId'])return{'m1Prime':_0x58bda1,'m2Prime':_0x2952d3};const _0xb56ded=_0x58bda1['params']['ranges'],_0x2878ed=_0x2952d3[_0x2a81f4(0x1a4)]['ranges'],_0x5c2790=[_0x2952d3],_0x18f33d=new Set();for(let _0x320920=0x0;_0x320920<_0xb56ded[_0x2a81f4(0x1ba)];_0x320920++)for(let _0x2337e4=0x0;_0x2337e4<_0x2878ed[_0x2a81f4(0x1ba)];_0x2337e4++)if(_univerjs_core['Rectangle'][_0x2a81f4(0x1ab)](_0xb56ded[_0x320920],_0x2878ed[_0x2337e4])){_0x18f33d[_0x2a81f4(0x370)](_0xb56ded[_0x320920]),_0xb56ded[_0x2a81f4(0x28d)](_0x320920,0x1),_0x320920--;break;}if(_0x18f33d[_0x2a81f4(0x202)]>0x0)_0x5c2790[_0x2a81f4(0x3e8)]({'id':_univerjs_sheets[_0x2a81f4(0x25a)]['id'],'params':{'unitId':_0x12722e[_0x2a81f4(0x1a4)][_0x2a81f4(0x3a7)],'subUnitId':_0x12722e[_0x2a81f4(0x1a4)][_0x2a81f4(0x2e9)],'ranges':Array[_0x2a81f4(0x3fc)](_0x18f33d)}});if(_0xb56ded[_0x2a81f4(0x1ba)]===0x0)_0x58bda1['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x58bda1,'m2Prime':_0x5c2790[_0x2a81f4(0x1ba)]>0x1?_0x5c2790:_0x2952d3};}},addWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler'(_0x15b66d,_0x5a5667){const _0x50d824=_0x151f3e,_0x94b1aa=_univerjs_core[_0x50d824(0x1a6)][_0x50d824(0x3ce)](_0x15b66d),_0x209a2f=_univerjs_core['Tools'][_0x50d824(0x3ce)](_0x5a5667);if(_0x15b66d[_0x50d824(0x1a4)][_0x50d824(0x3a7)]!==_0x5a5667[_0x50d824(0x1a4)][_0x50d824(0x3a7)]||_0x15b66d[_0x50d824(0x1a4)]['subUnitId']!==_0x5a5667[_0x50d824(0x1a4)][_0x50d824(0x2e9)])return{'m1Prime':_0x94b1aa,'m2Prime':_0x209a2f};const _0x4c247d=_0x15b66d[_0x50d824(0x1a4)][_0x50d824(0x3a7)],_0x452e22=_0x15b66d[_0x50d824(0x1a4)]['subUnitId'],_0xb29ce8=[_0x209a2f],_0x18ede6=[],_0x496863=[];_0x94b1aa['params'][_0x50d824(0x286)][_0x50d824(0x3b5)](_0xc6ba8c=>{const _0x4cd109=_0x50d824,_0x2ae5d7=_0x5a5667[_0x4cd109(0x1a4)][_0x4cd109(0x1b6)],_0x52ab45=_0x2ae5d7[_0x4cd109(0x350)]-_0x2ae5d7[_0x4cd109(0x1cb)]+0x1;if(_0x2ae5d7[_0x4cd109(0x1cb)]<=_0xc6ba8c[_0x4cd109(0x1cb)])_0x18ede6['push']({..._0xc6ba8c}),_0x496863['push']({..._0xc6ba8c,'startColumn':_0xc6ba8c['startColumn']+_0x52ab45,'endColumn':_0xc6ba8c['endColumn']+_0x52ab45}),_0xc6ba8c['startColumn']=_0xc6ba8c[_0x4cd109(0x1cb)]+_0x52ab45,_0xc6ba8c['endColumn']=_0xc6ba8c[_0x4cd109(0x350)]+_0x52ab45;else _0x2ae5d7['startColumn']>_0xc6ba8c[_0x4cd109(0x1cb)]&&_0x2ae5d7[_0x4cd109(0x1cb)]<=_0xc6ba8c['endColumn']&&(_0x18ede6[_0x4cd109(0x1c6)]({..._0xc6ba8c}),_0x496863[_0x4cd109(0x1c6)]({..._0xc6ba8c,'endColumn':_0xc6ba8c[_0x4cd109(0x350)]+_0x52ab45}),_0xc6ba8c[_0x4cd109(0x350)]=_0xc6ba8c[_0x4cd109(0x350)]+_0x52ab45);});if(_0x18ede6[_0x50d824(0x1ba)]>0x0)_0xb29ce8[_0x50d824(0x3e8)]({'id':_univerjs_sheets[_0x50d824(0x25a)]['id'],'params':{'unitId':_0x4c247d,'subUnitId':_0x452e22,'ranges':_0x18ede6}});if(_0x496863['length']>0x0)_0xb29ce8[_0x50d824(0x1c6)]({'id':_univerjs_sheets[_0x50d824(0x304)]['id'],'params':{'unitId':_0x4c247d,'subUnitId':_0x452e22,'ranges':_0x496863}});return{'m1Prime':_0x94b1aa,'m2Prime':_0xb29ce8[_0x50d824(0x1ba)]>0x1?_0xb29ce8:_0xb29ce8[0x0]};}},addWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x271)]['id'],'handler'(_0x1debca,_0x2cb628){const _0xf0a288=_0x151f3e,_0x43bc04=_univerjs_core[_0xf0a288(0x1a6)][_0xf0a288(0x3ce)](_0x1debca),_0x66e4af=_univerjs_core[_0xf0a288(0x1a6)]['deepClone'](_0x2cb628);if(_0x1debca[_0xf0a288(0x1a4)][_0xf0a288(0x3a7)]!==_0x2cb628[_0xf0a288(0x1a4)][_0xf0a288(0x3a7)]||_0x1debca['params'][_0xf0a288(0x2e9)]!==_0x2cb628[_0xf0a288(0x1a4)][_0xf0a288(0x2e9)])return{'m1Prime':_0x43bc04,'m2Prime':_0x66e4af};const _0x599ec7=_0x1debca[_0xf0a288(0x1a4)]['unitId'],_0x233504=_0x1debca[_0xf0a288(0x1a4)][_0xf0a288(0x2e9)],_0x269702=[_0x66e4af],_0x531a87=[],_0x563915=[];_0x43bc04[_0xf0a288(0x1a4)][_0xf0a288(0x286)][_0xf0a288(0x3b5)](_0x366843=>{const _0x39c69a=_0xf0a288,_0x38d3c2=_0x2cb628['params']['range'],_0x2bbbb6=_0x38d3c2[_0x39c69a(0x342)]-_0x38d3c2[_0x39c69a(0x1e8)]+0x1;if(_0x38d3c2['startRow']<=_0x366843[_0x39c69a(0x1e8)])_0x531a87[_0x39c69a(0x1c6)]({..._0x366843}),_0x563915['push']({..._0x366843,'startRow':_0x366843[_0x39c69a(0x1e8)]+_0x2bbbb6,'endRow':_0x366843[_0x39c69a(0x342)]+_0x2bbbb6}),_0x366843['startRow']=_0x366843[_0x39c69a(0x1e8)]+_0x2bbbb6,_0x366843[_0x39c69a(0x342)]=_0x366843[_0x39c69a(0x342)]+_0x2bbbb6;else _0x38d3c2['startRow']>_0x366843[_0x39c69a(0x1e8)]&&_0x38d3c2[_0x39c69a(0x1e8)]<=_0x366843[_0x39c69a(0x342)]&&(_0x531a87['push']({..._0x366843}),_0x563915[_0x39c69a(0x1c6)]({..._0x366843,'endRow':_0x366843[_0x39c69a(0x342)]+_0x2bbbb6}),_0x366843[_0x39c69a(0x342)]=_0x366843[_0x39c69a(0x342)]+_0x2bbbb6);});if(_0x531a87[_0xf0a288(0x1ba)]>0x0)_0x269702[_0xf0a288(0x3e8)]({'id':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'params':{'unitId':_0x599ec7,'subUnitId':_0x233504,'ranges':_0x531a87}});if(_0x563915[_0xf0a288(0x1ba)]>0x0)_0x269702['push']({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x599ec7,'subUnitId':_0x233504,'ranges':_0x563915}});return{'m1Prime':_0x43bc04,'m2Prime':_0x269702[_0xf0a288(0x1ba)]>0x1?_0x269702:_0x269702[0x0]};}},addWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'handler'(_0x40bb50,_0x4c68a6){const _0x5c1898=_0x151f3e,_0xb8482e=_univerjs_core[_0x5c1898(0x1a6)][_0x5c1898(0x3ce)](_0x40bb50),_0x396c8e=_univerjs_core[_0x5c1898(0x1a6)][_0x5c1898(0x3ce)](_0x4c68a6);if(_0x40bb50[_0x5c1898(0x1a4)][_0x5c1898(0x3a7)]!==_0x4c68a6['params'][_0x5c1898(0x3a7)]||_0x40bb50[_0x5c1898(0x1a4)][_0x5c1898(0x2e9)]!==_0x4c68a6['params'][_0x5c1898(0x2e9)])return{'m1Prime':_0xb8482e,'m2Prime':_0x396c8e};const _0x14d457=[],_0x274583=[],_0xc6e935=[_0x396c8e];for(let _0x35af3f=0x0;_0x35af3f<_0xb8482e[_0x5c1898(0x1a4)][_0x5c1898(0x286)][_0x5c1898(0x1ba)];_0x35af3f++){const _0x4791f9=_0xb8482e[_0x5c1898(0x1a4)][_0x5c1898(0x286)][_0x35af3f],{sourceRange:_0x1db020,targetRange:_0x5b38b8}=_0x4c68a6[_0x5c1898(0x1a4)];if(_univerjs_core[_0x5c1898(0x1d9)]['intersects'](_0x4791f9,_0x1db020)||_univerjs_core[_0x5c1898(0x1d9)][_0x5c1898(0x1ab)](_0x4791f9,_0x5b38b8))_0x14d457['push']({..._0x4791f9}),_0xb8482e[_0x5c1898(0x1a4)][_0x5c1898(0x286)]['splice'](_0x35af3f,0x1),_0x35af3f--;else{if(_0x1db020[_0x5c1898(0x1cb)]<_0x4791f9[_0x5c1898(0x1cb)]&&_0x5b38b8[_0x5c1898(0x1cb)]>_0x4791f9[_0x5c1898(0x350)])_0x14d457[_0x5c1898(0x1c6)]({..._0x4791f9}),_0x274583[_0x5c1898(0x1c6)]({..._0x4791f9,'startColumn':_0x4791f9[_0x5c1898(0x1cb)]-(_0x1db020[_0x5c1898(0x350)]-_0x1db020[_0x5c1898(0x1cb)]+0x1),'endColumn':_0x4791f9[_0x5c1898(0x350)]-(_0x1db020[_0x5c1898(0x350)]-_0x1db020['startColumn']+0x1)}),_0x4791f9['startColumn']=_0x4791f9[_0x5c1898(0x1cb)]-(_0x1db020[_0x5c1898(0x350)]-_0x1db020[_0x5c1898(0x1cb)]+0x1),_0x4791f9['endColumn']=_0x4791f9[_0x5c1898(0x350)]-(_0x1db020[_0x5c1898(0x350)]-_0x1db020[_0x5c1898(0x1cb)]+0x1);else _0x1db020[_0x5c1898(0x1cb)]>_0x4791f9[_0x5c1898(0x350)]&&_0x5b38b8[_0x5c1898(0x350)]<_0x4791f9[_0x5c1898(0x1cb)]&&(_0x14d457[_0x5c1898(0x1c6)]({..._0x4791f9}),_0x274583['push']({..._0x4791f9,'startColumn':_0x4791f9['startColumn']+(_0x1db020[_0x5c1898(0x350)]-_0x1db020[_0x5c1898(0x1cb)]+0x1),'endColumn':_0x4791f9[_0x5c1898(0x350)]+(_0x1db020[_0x5c1898(0x350)]-_0x1db020[_0x5c1898(0x1cb)]+0x1)}),_0x4791f9[_0x5c1898(0x1cb)]=_0x4791f9[_0x5c1898(0x1cb)]+(_0x1db020['endColumn']-_0x1db020[_0x5c1898(0x1cb)]+0x1),_0x4791f9[_0x5c1898(0x350)]=_0x4791f9[_0x5c1898(0x350)]+(_0x1db020['endColumn']-_0x1db020[_0x5c1898(0x1cb)]+0x1));}}if(_0x14d457['length']>0x0)_0xc6e935[_0x5c1898(0x3e8)]({'id':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'params':{'unitId':_0x40bb50['params'][_0x5c1898(0x3a7)],'subUnitId':_0x40bb50[_0x5c1898(0x1a4)][_0x5c1898(0x2e9)],'ranges':_0x14d457}});if(_0x274583[_0x5c1898(0x1ba)]>0x0)_0xc6e935['push']({'id':_univerjs_sheets[_0x5c1898(0x304)]['id'],'params':{'unitId':_0x40bb50['params'][_0x5c1898(0x3a7)],'subUnitId':_0x40bb50[_0x5c1898(0x1a4)][_0x5c1898(0x2e9)],'ranges':_0x274583}});if(_0xb8482e[_0x5c1898(0x1a4)]['ranges'][_0x5c1898(0x1ba)]===0x0)_0xb8482e['id']=_univerjs_sheets[_0x5c1898(0x36d)]['id'];return{'m1Prime':_0xb8482e,'m2Prime':_0xc6e935[_0x5c1898(0x1ba)]>0x1?_0xc6e935:_0xc6e935[0x0]};}},addWorksheetMergeMutationWithMoveRangeMutation={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x5f26af,_0x12dcba){const _0x3db311=_0x151f3e,_0x3a8fbc=_univerjs_core[_0x3db311(0x1a6)]['deepClone'](_0x5f26af),_0x267351=_univerjs_core[_0x3db311(0x1a6)][_0x3db311(0x3ce)](_0x12dcba);if(_0x5f26af[_0x3db311(0x1a4)][_0x3db311(0x3a7)]!==_0x12dcba['params'][_0x3db311(0x3a7)])return{'m1Prime':_0x3a8fbc,'m2Prime':_0x267351};const _0x115b5f=[],_0x83c460=[_0x267351],_0x13ee5a=new _univerjs_core['ObjectMatrix'](_0x12dcba[_0x3db311(0x1a4)][_0x3db311(0x3fc)][_0x3db311(0x1df)])['getDataRange'](),_0xb3adf4=new _univerjs_core[(_0x3db311(0x2e2))](_0x12dcba[_0x3db311(0x1a4)]['to'][_0x3db311(0x1df)])[_0x3db311(0x25e)]();for(let _0x59a214=0x0;_0x59a214<_0x3a8fbc[_0x3db311(0x1a4)][_0x3db311(0x286)][_0x3db311(0x1ba)];_0x59a214++){const _0x872ec5=_0x3a8fbc[_0x3db311(0x1a4)][_0x3db311(0x286)][_0x59a214];(_univerjs_core[_0x3db311(0x1d9)]['intersects'](_0x13ee5a,_0x872ec5)||_univerjs_core[_0x3db311(0x1d9)][_0x3db311(0x1ab)](_0xb3adf4,_0x872ec5))&&(_0x115b5f['push'](_0x872ec5),_0x3a8fbc['params'][_0x3db311(0x286)][_0x3db311(0x28d)](_0x59a214,0x1),_0x59a214--);}if(_0x115b5f[_0x3db311(0x1ba)]>0x0)_0x83c460['unshift']({'id':_univerjs_sheets[_0x3db311(0x25a)]['id'],'params':{'unitId':_0x5f26af[_0x3db311(0x1a4)][_0x3db311(0x3a7)],'subUnitId':_0x5f26af[_0x3db311(0x1a4)][_0x3db311(0x2e9)],'ranges':_0x115b5f}});if(_0x3a8fbc['params']['ranges'][_0x3db311(0x1ba)]===0x0)_0x3a8fbc['id']=_univerjs_sheets[_0x3db311(0x36d)]['id'];return{'m1Prime':_0x3a8fbc,'m2Prime':_0x83c460['length']>0x1?_0x83c460:_0x83c460[0x0]};}},addWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler'(_0x354034,_0x312061){const _0x2b8cc4=_0x151f3e,_0x5782fa=_univerjs_core['Tools']['deepClone'](_0x354034),_0x3e37b9=_univerjs_core[_0x2b8cc4(0x1a6)][_0x2b8cc4(0x3ce)](_0x312061);if(_0x354034[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x3a7)]!==_0x312061[_0x2b8cc4(0x1a4)]['unitId']||_0x354034[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x2e9)]!==_0x312061[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x2e9)])return{'m1Prime':_0x5782fa,'m2Prime':_0x3e37b9};const _0x14954e=[],_0x38f3e4=[],_0x16c702=[_0x3e37b9];for(let _0x418ee4=0x0;_0x418ee4<_0x5782fa[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x286)][_0x2b8cc4(0x1ba)];_0x418ee4++){const _0x5122ba=_0x5782fa[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x286)][_0x418ee4],{sourceRange:_0x4a0752,targetRange:_0x11879a}=_0x312061[_0x2b8cc4(0x1a4)];if(_univerjs_core[_0x2b8cc4(0x1d9)][_0x2b8cc4(0x1ab)](_0x5122ba,_0x4a0752)||_univerjs_core['Rectangle'][_0x2b8cc4(0x1ab)](_0x5122ba,_0x11879a))_0x14954e[_0x2b8cc4(0x1c6)]({..._0x5122ba}),_0x5782fa[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x286)][_0x2b8cc4(0x28d)](_0x418ee4,0x1),_0x418ee4--;else{if(_0x4a0752[_0x2b8cc4(0x1e8)]<_0x5122ba[_0x2b8cc4(0x1e8)]&&_0x11879a[_0x2b8cc4(0x1e8)]>_0x5122ba[_0x2b8cc4(0x342)])_0x14954e[_0x2b8cc4(0x1c6)]({..._0x5122ba}),_0x38f3e4[_0x2b8cc4(0x1c6)]({..._0x5122ba,'startRow':_0x5122ba['startRow']-(_0x4a0752['endRow']-_0x4a0752['startRow']+0x1),'endRow':_0x5122ba[_0x2b8cc4(0x342)]-(_0x4a0752[_0x2b8cc4(0x342)]-_0x4a0752[_0x2b8cc4(0x1e8)]+0x1)}),_0x5122ba[_0x2b8cc4(0x1e8)]=_0x5122ba[_0x2b8cc4(0x1e8)]-(_0x4a0752[_0x2b8cc4(0x342)]-_0x4a0752[_0x2b8cc4(0x1e8)]+0x1),_0x5122ba[_0x2b8cc4(0x342)]=_0x5122ba[_0x2b8cc4(0x342)]-(_0x4a0752['endRow']-_0x4a0752[_0x2b8cc4(0x1e8)]+0x1);else _0x4a0752[_0x2b8cc4(0x1e8)]>_0x5122ba[_0x2b8cc4(0x342)]&&_0x11879a['endRow']<_0x5122ba[_0x2b8cc4(0x1e8)]&&(_0x14954e['push']({..._0x5122ba}),_0x38f3e4[_0x2b8cc4(0x1c6)]({..._0x5122ba,'startRow':_0x5122ba[_0x2b8cc4(0x1e8)]+(_0x4a0752[_0x2b8cc4(0x342)]-_0x4a0752['startRow']+0x1),'endRow':_0x5122ba[_0x2b8cc4(0x342)]+(_0x4a0752['endRow']-_0x4a0752['startRow']+0x1)}),_0x5122ba['startRow']=_0x5122ba[_0x2b8cc4(0x1e8)]+(_0x4a0752[_0x2b8cc4(0x342)]-_0x4a0752[_0x2b8cc4(0x1e8)]+0x1),_0x5122ba[_0x2b8cc4(0x342)]=_0x5122ba[_0x2b8cc4(0x342)]+(_0x4a0752[_0x2b8cc4(0x342)]-_0x4a0752[_0x2b8cc4(0x1e8)]+0x1));}}if(_0x14954e[_0x2b8cc4(0x1ba)]>0x0)_0x16c702[_0x2b8cc4(0x3e8)]({'id':_univerjs_sheets[_0x2b8cc4(0x25a)]['id'],'params':{'unitId':_0x354034[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x3a7)],'subUnitId':_0x354034[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x2e9)],'ranges':_0x14954e}});if(_0x38f3e4[_0x2b8cc4(0x1ba)]>0x0)_0x16c702['push']({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x354034[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x3a7)],'subUnitId':_0x354034['params'][_0x2b8cc4(0x2e9)],'ranges':_0x38f3e4}});if(_0x5782fa[_0x2b8cc4(0x1a4)][_0x2b8cc4(0x286)]['length']===0x0)_0x5782fa['id']=_univerjs_sheets[_0x2b8cc4(0x36d)]['id'];return{'m1Prime':_0x5782fa,'m2Prime':_0x16c702['length']>0x1?_0x16c702:_0x16c702[0x0]};}};function isMergeCell(_0xfa3129){const _0x1a855d=_0x151f3e;if(_0xfa3129[_0x1a855d(0x1cb)]>_0xfa3129['endColumn']||_0xfa3129[_0x1a855d(0x1e8)]>_0xfa3129[_0x1a855d(0x342)])return![];return!(_0xfa3129[_0x1a855d(0x1e8)]===_0xfa3129[_0x1a855d(0x342)]&&_0xfa3129[_0x1a855d(0x1cb)]===_0xfa3129[_0x1a855d(0x350)]);}const addWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler'(_0x5e551c,_0x49d9fb){const _0x105026=_0x151f3e,_0xcccffa=_univerjs_core[_0x105026(0x1a6)][_0x105026(0x3ce)](_0x5e551c),_0x486e0e=_univerjs_core['Tools'][_0x105026(0x3ce)](_0x49d9fb);if(_0x5e551c['params']['unitId']!==_0x49d9fb['params'][_0x105026(0x3a7)]||_0x5e551c['params']['subUnitId']!==_0x49d9fb['params'][_0x105026(0x2e9)])return{'m1Prime':_0xcccffa,'m2Prime':_0x486e0e};const _0x117fd0=_0x5e551c[_0x105026(0x1a4)]['unitId'],_0x8d8907=_0x5e551c['params'][_0x105026(0x2e9)],_0x278d44=[_0x486e0e],_0x4a3387=[],_0xbc2fe0=[];for(let _0x5e2569=0x0;_0x5e2569<_0xcccffa[_0x105026(0x1a4)][_0x105026(0x286)][_0x105026(0x1ba)];_0x5e2569++){const _0x273c46=_0xcccffa['params'][_0x105026(0x286)][_0x5e2569],_0x3ccde7=_0x49d9fb[_0x105026(0x1a4)]['range'],_0x24231a=_0x3ccde7[_0x105026(0x350)]-_0x3ccde7[_0x105026(0x1cb)]+0x1;if(_0x3ccde7['startColumn']<_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7[_0x105026(0x350)]<_0x273c46[_0x105026(0x1cb)])_0x4a3387[_0x105026(0x1c6)]({..._0x273c46}),_0xbc2fe0[_0x105026(0x1c6)]({..._0x273c46,'startColumn':_0x273c46[_0x105026(0x1cb)]-_0x24231a,'endColumn':_0x273c46[_0x105026(0x350)]-_0x24231a}),_0x273c46[_0x105026(0x1cb)]=_0x273c46['startColumn']-_0x24231a,_0x273c46['endColumn']=_0x273c46[_0x105026(0x350)]-_0x24231a;else{if(_0x3ccde7[_0x105026(0x1cb)]<_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7['endColumn']>=_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7[_0x105026(0x350)]<=_0x273c46[_0x105026(0x350)]){_0x4a3387[_0x105026(0x1c6)]({..._0x273c46});const _0x112361={..._0x273c46,'startColumn':_0x3ccde7[_0x105026(0x1cb)],'endColumn':_0x273c46[_0x105026(0x350)]-_0x24231a};isMergeCell(_0x112361)&&_0x3ccde7[_0x105026(0x350)]<_0x273c46['endColumn']?(_0x3ccde7[_0x105026(0x350)]<_0x273c46[_0x105026(0x350)]&&_0xbc2fe0[_0x105026(0x1c6)](_0x112361),_0x273c46['startColumn']=_0x3ccde7[_0x105026(0x1cb)],_0x273c46[_0x105026(0x350)]=_0x273c46[_0x105026(0x350)]-_0x24231a):(_0xcccffa[_0x105026(0x1a4)]['ranges'][_0x105026(0x28d)](_0x5e2569,0x1),_0x5e2569--);}else{if(_0x3ccde7[_0x105026(0x1cb)]>_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7[_0x105026(0x350)]<_0x273c46[_0x105026(0x350)]){_0x4a3387[_0x105026(0x1c6)]({..._0x273c46});const _0x4e549e={..._0x273c46,'endColumn':_0x273c46['endColumn']-_0x24231a};isMergeCell(_0x4e549e)?(_0xbc2fe0[_0x105026(0x1c6)](_0x4e549e),_0x273c46[_0x105026(0x350)]=_0x273c46['endColumn']-_0x24231a):(_0xcccffa['params'][_0x105026(0x286)]['splice'](_0x5e2569,0x1),_0x5e2569--);}else{if(_0x3ccde7[_0x105026(0x1cb)]>=_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7[_0x105026(0x1cb)]<=_0x273c46[_0x105026(0x350)]&&_0x3ccde7[_0x105026(0x350)]>_0x273c46[_0x105026(0x350)]){_0x4a3387[_0x105026(0x1c6)]({..._0x273c46});const _0x103c9e={..._0x273c46,'endColumn':_0x3ccde7['startColumn']-0x1};isMergeCell(_0x103c9e)&&_0x3ccde7[_0x105026(0x1cb)]>_0x273c46[_0x105026(0x1cb)]?(_0xbc2fe0[_0x105026(0x1c6)](_0x103c9e),_0x273c46[_0x105026(0x350)]=_0x3ccde7[_0x105026(0x1cb)]-0x1):(_0xcccffa['params'][_0x105026(0x286)][_0x105026(0x28d)](_0x5e2569,0x1),_0x5e2569--);}else{if(_0x3ccde7[_0x105026(0x1cb)]>_0x273c46[_0x105026(0x350)]){}else _0x3ccde7[_0x105026(0x1cb)]<=_0x273c46[_0x105026(0x1cb)]&&_0x3ccde7[_0x105026(0x350)]>=_0x273c46[_0x105026(0x350)]&&(_0x4a3387[_0x105026(0x1c6)]({..._0x273c46}),_0xcccffa['params'][_0x105026(0x286)][_0x105026(0x28d)](_0x5e2569,0x1),_0x5e2569--);}}}}}if(_0x4a3387[_0x105026(0x1ba)]>0x0)_0x278d44[_0x105026(0x3e8)]({'id':_univerjs_sheets[_0x105026(0x25a)]['id'],'params':{'unitId':_0x117fd0,'subUnitId':_0x8d8907,'ranges':_0x4a3387}});if(_0xbc2fe0[_0x105026(0x1ba)]>0x0)_0x278d44[_0x105026(0x1c6)]({'id':_univerjs_sheets[_0x105026(0x304)]['id'],'params':{'unitId':_0x117fd0,'subUnitId':_0x8d8907,'ranges':_0xbc2fe0}});if(_0xcccffa[_0x105026(0x1a4)][_0x105026(0x286)][_0x105026(0x1ba)]===0x0)_0xcccffa['id']=_univerjs_sheets[_0x105026(0x36d)]['id'];return{'m1Prime':_0xcccffa,'m2Prime':_0x278d44['length']>0x1?_0x278d44:_0x278d44[0x0]};}},addWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'handler'(_0x2acc96,_0x1e76c7){const _0x32c438=_0x151f3e,_0x433465=_univerjs_core[_0x32c438(0x1a6)][_0x32c438(0x3ce)](_0x2acc96),_0x3fdf28=_univerjs_core[_0x32c438(0x1a6)][_0x32c438(0x3ce)](_0x1e76c7);if(_0x2acc96[_0x32c438(0x1a4)][_0x32c438(0x3a7)]!==_0x1e76c7[_0x32c438(0x1a4)]['unitId']||_0x2acc96[_0x32c438(0x1a4)][_0x32c438(0x2e9)]!==_0x1e76c7[_0x32c438(0x1a4)]['subUnitId'])return{'m1Prime':_0x433465,'m2Prime':_0x3fdf28};const _0x1d90f3=_0x2acc96[_0x32c438(0x1a4)][_0x32c438(0x3a7)],_0x3f2670=_0x2acc96[_0x32c438(0x1a4)][_0x32c438(0x2e9)],_0x131151=[_0x3fdf28],_0x335114=[],_0xc80395=[];for(let _0x5468a9=0x0;_0x5468a9<_0x433465[_0x32c438(0x1a4)]['ranges'][_0x32c438(0x1ba)];_0x5468a9++){const _0x3748ab=_0x433465['params'][_0x32c438(0x286)][_0x5468a9],_0x17f13d=_0x1e76c7[_0x32c438(0x1a4)]['range'],_0x3814fd=_0x17f13d['endRow']-_0x17f13d[_0x32c438(0x1e8)]+0x1;if(_0x17f13d['startRow']<_0x3748ab['startRow']&&_0x17f13d[_0x32c438(0x342)]<_0x3748ab[_0x32c438(0x1e8)])_0x335114['push']({..._0x3748ab}),_0xc80395['push']({..._0x3748ab,'startRow':_0x3748ab[_0x32c438(0x1e8)]-_0x3814fd,'endRow':_0x3748ab['endRow']-_0x3814fd}),_0x3748ab[_0x32c438(0x1e8)]=_0x3748ab['startRow']-_0x3814fd,_0x3748ab[_0x32c438(0x342)]=_0x3748ab['endRow']-_0x3814fd;else{if(_0x17f13d[_0x32c438(0x1e8)]<_0x3748ab[_0x32c438(0x1e8)]&&_0x17f13d[_0x32c438(0x342)]>=_0x3748ab['startRow']&&_0x17f13d[_0x32c438(0x342)]<=_0x3748ab[_0x32c438(0x342)]){_0x335114[_0x32c438(0x1c6)]({..._0x3748ab});const _0x5a48e7={..._0x3748ab,'startRow':_0x17f13d['startRow'],'endRow':_0x3748ab[_0x32c438(0x342)]-_0x3814fd};isMergeCell(_0x5a48e7)&&_0x17f13d['endRow']<_0x3748ab[_0x32c438(0x342)]?(_0x17f13d['endRow']<_0x3748ab[_0x32c438(0x342)]&&_0xc80395[_0x32c438(0x1c6)](_0x5a48e7),_0x3748ab[_0x32c438(0x1e8)]=_0x17f13d[_0x32c438(0x1e8)],_0x3748ab[_0x32c438(0x342)]=_0x3748ab['endRow']-_0x3814fd):(_0x433465[_0x32c438(0x1a4)][_0x32c438(0x286)][_0x32c438(0x28d)](_0x5468a9,0x1),_0x5468a9--);}else{if(_0x17f13d[_0x32c438(0x1e8)]>_0x3748ab['startRow']&&_0x17f13d[_0x32c438(0x342)]<_0x3748ab[_0x32c438(0x342)]){_0x335114['push']({..._0x3748ab});const _0x773d7b={..._0x3748ab,'endRow':_0x3748ab[_0x32c438(0x342)]-_0x3814fd};isMergeCell(_0x773d7b)?(_0xc80395[_0x32c438(0x1c6)](_0x773d7b),_0x3748ab[_0x32c438(0x342)]=_0x3748ab[_0x32c438(0x342)]-_0x3814fd):(_0x433465[_0x32c438(0x1a4)][_0x32c438(0x286)][_0x32c438(0x28d)](_0x5468a9,0x1),_0x5468a9--);}else{if(_0x17f13d[_0x32c438(0x1e8)]>=_0x3748ab[_0x32c438(0x1e8)]&&_0x17f13d['startRow']<=_0x3748ab[_0x32c438(0x342)]&&_0x17f13d['endRow']>_0x3748ab[_0x32c438(0x342)]){_0x335114[_0x32c438(0x1c6)]({..._0x3748ab});const _0x7343f4={..._0x3748ab,'endRow':_0x17f13d[_0x32c438(0x1e8)]-0x1};isMergeCell(_0x7343f4)&&_0x17f13d[_0x32c438(0x1e8)]>_0x3748ab[_0x32c438(0x1e8)]?(_0xc80395[_0x32c438(0x1c6)](_0x7343f4),_0x3748ab[_0x32c438(0x342)]=_0x17f13d[_0x32c438(0x1e8)]-0x1):(_0x433465[_0x32c438(0x1a4)][_0x32c438(0x286)][_0x32c438(0x28d)](_0x5468a9,0x1),_0x5468a9--);}else{if(_0x17f13d[_0x32c438(0x1e8)]>_0x3748ab[_0x32c438(0x342)]){}else _0x17f13d[_0x32c438(0x1e8)]<=_0x3748ab[_0x32c438(0x1e8)]&&_0x17f13d[_0x32c438(0x342)]>=_0x3748ab[_0x32c438(0x342)]&&(_0x335114[_0x32c438(0x1c6)]({..._0x3748ab}),_0x433465[_0x32c438(0x1a4)][_0x32c438(0x286)][_0x32c438(0x28d)](_0x5468a9,0x1),_0x5468a9--);}}}}}if(_0x335114[_0x32c438(0x1ba)]>0x0)_0x131151[_0x32c438(0x3e8)]({'id':_univerjs_sheets[_0x32c438(0x25a)]['id'],'params':{'unitId':_0x1d90f3,'subUnitId':_0x3f2670,'ranges':_0x335114}});if(_0xc80395[_0x32c438(0x1ba)]>0x0)_0x131151[_0x32c438(0x1c6)]({'id':_univerjs_sheets[_0x32c438(0x304)]['id'],'params':{'unitId':_0x1d90f3,'subUnitId':_0x3f2670,'ranges':_0xc80395}});if(_0x433465[_0x32c438(0x1a4)]['ranges']['length']===0x0)_0x433465['id']=_univerjs_sheets[_0x32c438(0x36d)]['id'];return{'m1Prime':_0x433465,'m2Prime':_0x131151[_0x32c438(0x1ba)]>0x1?_0x131151:_0x131151[0x0]};}},addWorksheetMergeMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0x275d93,_0x548d1b){const _0x570bcb=_0x151f3e,_0x162692=_univerjs_core[_0x570bcb(0x1a6)][_0x570bcb(0x3ce)](_0x275d93),_0x36e186=_univerjs_core[_0x570bcb(0x1a6)][_0x570bcb(0x3ce)](_0x548d1b);if(_0x275d93[_0x570bcb(0x1a4)][_0x570bcb(0x3a7)]!==_0x548d1b[_0x570bcb(0x1a4)]['unitId']||_0x275d93[_0x570bcb(0x1a4)][_0x570bcb(0x2e9)]!==_0x548d1b[_0x570bcb(0x1a4)][_0x570bcb(0x2e9)])return{'m1Prime':_0x162692,'m2Prime':_0x36e186};const _0x922e79=[..._0x36e186[_0x570bcb(0x1a4)]['ranges']];for(let _0x586475=0x0;_0x586475<_0x162692[_0x570bcb(0x1a4)][_0x570bcb(0x286)][_0x570bcb(0x1ba)];_0x586475++){let _0x9f357f=![];for(let _0x425aff=0x0;_0x425aff<_0x36e186[_0x570bcb(0x1a4)][_0x570bcb(0x286)]['length'];_0x425aff++){const _0x4512e2=_0x162692[_0x570bcb(0x1a4)][_0x570bcb(0x286)][_0x586475],_0x582795=_0x36e186[_0x570bcb(0x1a4)][_0x570bcb(0x286)][_0x425aff];if(_univerjs_core[_0x570bcb(0x1d9)][_0x570bcb(0x1ab)](_0x4512e2,_0x582795)){_0x9f357f=!![];break;}}_0x9f357f&&(_0x922e79['push'](_0x162692[_0x570bcb(0x1a4)][_0x570bcb(0x286)][_0x586475]),_0x162692[_0x570bcb(0x1a4)][_0x570bcb(0x286)][_0x570bcb(0x28d)](_0x586475,0x1),_0x586475--);}_0x36e186[_0x570bcb(0x1a4)][_0x570bcb(0x286)]=_0x922e79;if(_0x162692['params'][_0x570bcb(0x286)][_0x570bcb(0x1ba)]===0x0)_0x162692['id']=_univerjs_sheets[_0x570bcb(0x36d)]['id'];return{'m1Prime':_0x162692,'m2Prime':_0x36e186};}},addWorksheetMergeMutationWithSetRangeValues={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler'(_0x13d347,_0x4d259c){const _0x210a44=_0x151f3e,_0x5ed489=_univerjs_core['Tools'][_0x210a44(0x3ce)](_0x13d347),_0x145c41=_univerjs_core[_0x210a44(0x1a6)][_0x210a44(0x3ce)](_0x4d259c);if(_0x13d347[_0x210a44(0x1a4)][_0x210a44(0x3a7)]!==_0x4d259c[_0x210a44(0x1a4)]['unitId']||_0x13d347[_0x210a44(0x1a4)][_0x210a44(0x2e9)]!==_0x4d259c['params'][_0x210a44(0x2e9)])return{'m1Prime':_0x5ed489,'m2Prime':_0x145c41};const _0xb4bd15=[_0x5ed489],_0xc778b3=[_0x145c41],_0x4ee3be=new _univerjs_core[(_0x210a44(0x2e2))](_univerjs_core[_0x210a44(0x1a6)][_0x210a44(0x3ce)](_0x4d259c[_0x210a44(0x1a4)][_0x210a44(0x30b)])),_0x32bdc1=new Set(),_0x294452={};for(let _0x252148=0x0;_0x252148<_0x5ed489['params'][_0x210a44(0x286)][_0x210a44(0x1ba)];_0x252148++){const _0x1fe88d=_0x5ed489[_0x210a44(0x1a4)]['ranges'][_0x252148],{startRow:_0x1e983a,startColumn:_0x937529,endRow:_0x4bfd9a,endColumn:_0x4a3866}=_0x1fe88d;let _0x3f478b=![];_0x4ee3be[_0x210a44(0x22f)]((_0x516490,_0x4d662d,_0x57c4fb)=>{const _0x387e91=_0x210a44;if(_0x516490>=_0x1e983a&&_0x516490<=_0x4bfd9a&&_0x4d662d>=_0x937529&&_0x4d662d<=_0x4a3866){const _0x4fd33f=_0x4ee3be[_0x387e91(0x253)](_0x516490,_0x4d662d),_0x5a5e74=_0x4fd33f===null?{'v':null,'s':null,'t':null,'si':null,'p':null,'f':null}:_0x4fd33f;if(_0x5a5e74){if(!_0x294452[_0x516490])_0x294452[_0x516490]={};_0x294452[_0x516490][_0x4d662d]={},(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['v'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['v']=null,delete _0x5a5e74['v']),(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['f'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['f']=null,delete _0x5a5e74['f']),(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['t'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['t']=null,delete _0x5a5e74['t']),(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['si'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['si']=null,delete _0x5a5e74['si']),(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['p'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['p']=null,delete _0x5a5e74['p']),(_0x57c4fb===null||_0x57c4fb===void 0x0?void 0x0:_0x57c4fb['s'])!==void 0x0&&(_0x294452[_0x516490][_0x4d662d]['s']=null,delete _0x5a5e74['s']),_0x4ee3be[_0x387e91(0x1af)](_0x516490,_0x4d662d,_0x5a5e74),_0x3f478b=!![];}}}),_0x3f478b&&(_0x32bdc1[_0x210a44(0x370)]({..._0x1fe88d}),_0x5ed489[_0x210a44(0x1a4)][_0x210a44(0x286)][_0x210a44(0x28d)](_0x252148,0x1),_0x252148--);}_0x145c41[_0x210a44(0x1a4)][_0x210a44(0x30b)]=_0x4ee3be['getMatrix']();if(_0x32bdc1[_0x210a44(0x202)]>0x0)_0xc778b3['unshift']({'id':_univerjs_sheets[_0x210a44(0x25a)]['id'],'params':{'unitId':_0x13d347['params'][_0x210a44(0x3a7)],'subUnitId':_0x13d347['params']['subUnitId'],'ranges':Array['from'](_0x32bdc1)}});if(_0x5ed489[_0x210a44(0x1a4)][_0x210a44(0x286)]['length']===0x0)_0x5ed489['id']=_univerjs_sheets[_0x210a44(0x36d)]['id'];if(Object[_0x210a44(0x2d4)](_0x294452)[_0x210a44(0x1ba)]>0x0)_0xb4bd15['unshift']({'id':_univerjs_sheets[_0x210a44(0x203)]['id'],'params':{'unitId':_0x13d347[_0x210a44(0x1a4)][_0x210a44(0x3a7)],'subUnitId':_0x13d347[_0x210a44(0x1a4)][_0x210a44(0x2e9)],'cellValue':_0x294452}});return{'m1Prime':_0xb4bd15[_0x210a44(0x1ba)]>0x1?_0xb4bd15:_0xb4bd15[0x0],'m2Prime':_0xc778b3['length']>0x1?_0xc778b3:_0xc778b3[0x0]};}},addWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x304)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0x1cb0e5,_0x3cadc9){const _0x2d8e84=_0x151f3e,_0x33fe25={'m1Prime':[],'m2Prime':[]};if(_0x1cb0e5['params'][_0x2d8e84(0x3a7)]!==_0x3cadc9[_0x2d8e84(0x1a4)][_0x2d8e84(0x3a7)]||_0x1cb0e5['params'][_0x2d8e84(0x2e9)]!==_0x3cadc9['params']['subUnitId'])return _0x33fe25;const _0x22e93a=_univerjs_core[_0x2d8e84(0x1a6)][_0x2d8e84(0x3ce)](_0x3cadc9),_0x510f7b=_0x22e93a[_0x2d8e84(0x1a4)][_0x2d8e84(0x198)];_0x510f7b[_0x2d8e84(0x3b5)]((_0x5bb88a,_0x458fee)=>{const _0x24ca73=_0x2d8e84,{range:_0x12d11c,primary:_0x384882}=_0x5bb88a;_0x1cb0e5[_0x24ca73(0x1a4)][_0x24ca73(0x286)][_0x24ca73(0x3b5)](_0x2fd377=>{const _0x2d0756=_0x24ca73;_univerjs_core[_0x2d0756(0x1d9)][_0x2d0756(0x1ab)](_0x2fd377,_0x12d11c)&&(_0x12d11c['startRow']=Math[_0x2d0756(0x308)](_0x2fd377[_0x2d0756(0x1e8)],_0x12d11c[_0x2d0756(0x1e8)]),_0x12d11c[_0x2d0756(0x1cb)]=Math[_0x2d0756(0x308)](_0x2fd377['startColumn'],_0x12d11c[_0x2d0756(0x1cb)]),_0x12d11c[_0x2d0756(0x342)]=Math[_0x2d0756(0x2db)](_0x2fd377['endRow'],_0x12d11c['endRow']),_0x12d11c['endColumn']=Math[_0x2d0756(0x2db)](_0x2fd377[_0x2d0756(0x350)],_0x12d11c[_0x2d0756(0x350)]));if(_0x384882&&_univerjs_core[_0x2d0756(0x1d9)]['intersects'](_0x2fd377,_0x384882)&&_0x458fee===_0x510f7b[_0x2d0756(0x1ba)]-0x1){if(_0x384882[_0x2d0756(0x1cb)]===_0x2fd377['startColumn']&&_0x384882[_0x2d0756(0x1e8)]&&_0x2fd377['startRow'])_0x384882[_0x2d0756(0x256)]=!![];_0x384882[_0x2d0756(0x1e8)]=Math[_0x2d0756(0x308)](_0x2fd377[_0x2d0756(0x1e8)],_0x384882[_0x2d0756(0x1e8)]),_0x384882[_0x2d0756(0x1cb)]=Math[_0x2d0756(0x308)](_0x2fd377[_0x2d0756(0x1cb)],_0x384882['startColumn']),_0x384882['endRow']=Math[_0x2d0756(0x2db)](_0x2fd377[_0x2d0756(0x342)],_0x384882[_0x2d0756(0x342)]),_0x384882[_0x2d0756(0x350)]=Math[_0x2d0756(0x2db)](_0x2fd377[_0x2d0756(0x350)],_0x384882['endColumn']),_0x384882[_0x2d0756(0x27a)]=!![];}});}),_0x510f7b[_0x2d8e84(0x3d0)]((_0x1d6d65,_0x47d26d)=>{const _0xe96b1=_0x2d8e84,_0x42c74f=_0x1d6d65['range'],_0x303fd1=_0x47d26d['range'];if(_0x42c74f['startRow']===_0x303fd1[_0xe96b1(0x1e8)])return _0x42c74f[_0xe96b1(0x1cb)]-_0x303fd1['startColumn'];return _0x42c74f[_0xe96b1(0x1e8)]-_0x303fd1[_0xe96b1(0x1e8)];});const _0x3c4d38=[];let _0x11bf42=null;for(const _0x3cb51d of _0x510f7b)if(_0x11bf42===null||!_univerjs_core[_0x2d8e84(0x1d9)][_0x2d8e84(0x1ab)](_0x11bf42['range'],_0x3cb51d[_0x2d8e84(0x1b6)]))_0x3c4d38['push'](_0x3cb51d),_0x11bf42=_0x3cb51d;else{_0x11bf42[_0x2d8e84(0x1b6)][_0x2d8e84(0x1e8)]=Math[_0x2d8e84(0x308)](_0x11bf42['range'][_0x2d8e84(0x1e8)],_0x3cb51d[_0x2d8e84(0x1b6)][_0x2d8e84(0x1e8)]),_0x11bf42['range']['startColumn']=Math['min'](_0x11bf42[_0x2d8e84(0x1b6)]['startColumn'],_0x3cb51d['range'][_0x2d8e84(0x1cb)]),_0x11bf42[_0x2d8e84(0x1b6)]['endRow']=Math['max'](_0x11bf42[_0x2d8e84(0x1b6)][_0x2d8e84(0x342)],_0x3cb51d[_0x2d8e84(0x1b6)]['endRow']),_0x11bf42[_0x2d8e84(0x1b6)][_0x2d8e84(0x350)]=Math[_0x2d8e84(0x2db)](_0x11bf42[_0x2d8e84(0x1b6)][_0x2d8e84(0x350)],_0x3cb51d[_0x2d8e84(0x1b6)][_0x2d8e84(0x350)]);if(_0x3cb51d[_0x2d8e84(0x200)])_0x11bf42[_0x2d8e84(0x200)]=_0x3cb51d['primary'];}return _0x22e93a['params'][_0x2d8e84(0x198)]=_0x3c4d38,_0x33fe25['m2Prime'][_0x2d8e84(0x1c6)](_0x22e93a),_0x33fe25;}},addWorksheetProtectionWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x2e82e9,_0x50fec5)=>{const _0x56311c=_0x151f3e,_0x51af86={'m1Prime':_0x2e82e9,'m2Prime':_0x50fec5};if(_0x2e82e9['params']['unitId']!==_0x50fec5[_0x56311c(0x1a4)][_0x56311c(0x3a7)]||_0x2e82e9['params'][_0x56311c(0x2e9)]!==_0x50fec5[_0x56311c(0x1a4)]['subUnitId'])return _0x51af86;return{'error':new Error(_0x56311c(0x3d2))};}},addWorksheetProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x24e)]['id'],'handler':(_0x20ca82,_0x252a11)=>{const _0x1ec463=_0x151f3e,_0x11135d={'m1Prime':_0x20ca82,'m2Prime':_0x252a11};if(_0x20ca82[_0x1ec463(0x1a4)][_0x1ec463(0x3a7)]!==_0x252a11[_0x1ec463(0x1a4)][_0x1ec463(0x3a7)]||_0x20ca82[_0x1ec463(0x1a4)][_0x1ec463(0x2e9)]!==_0x252a11[_0x1ec463(0x1a4)][_0x1ec463(0x2e9)])return _0x11135d;return{'error':new Error(_0x1ec463(0x1cf))};}},addWorksheetProtectionWithAddRangeProtection={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x291)]['id'],'handler':(_0x4acfc4,_0x11bba5)=>{const _0x3079f9=_0x151f3e,_0x5fea30={'m1Prime':_0x4acfc4,'m2Prime':_0x11bba5};if(_0x4acfc4['params']['unitId']!==_0x11bba5[_0x3079f9(0x1a4)][_0x3079f9(0x3a7)]||_0x4acfc4[_0x3079f9(0x1a4)]['subUnitId']!==_0x11bba5[_0x3079f9(0x1a4)]['subUnitId'])return _0x5fea30;return{'error':new Error(_0x3079f9(0x22b))};}},addWorksheetProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler':(_0x3266cc,_0x198602)=>{const _0x285e3b=_0x151f3e,_0x332aad={'m1Prime':_0x3266cc,'m2Prime':_0x198602};if(_0x3266cc[_0x285e3b(0x1a4)][_0x285e3b(0x3a7)]!==_0x198602[_0x285e3b(0x1a4)]['unitId']||_0x3266cc['params'][_0x285e3b(0x2e9)]!==_0x198602[_0x285e3b(0x1a4)][_0x285e3b(0x2e9)])return _0x332aad;return{'error':new Error(_0x285e3b(0x2fe))};}},addWorksheetProtectionWithSelf={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'handler':(_0x532204,_0x3b69c4)=>{const _0x446218=_0x151f3e,_0x33e7e0={'m1Prime':_0x532204,'m2Prime':_0x3b69c4};if(_0x532204[_0x446218(0x1a4)][_0x446218(0x3a7)]!==_0x3b69c4[_0x446218(0x1a4)][_0x446218(0x3a7)]||_0x532204['params'][_0x446218(0x2e9)]!==_0x3b69c4['params'][_0x446218(0x3e3)][_0x446218(0x2e9)])return _0x33e7e0;return{'error':new Error(_0x446218(0x349))};}},addWorksheetProtectionWithChangeSheetOrder={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x269)]['id'],'handler':(_0x34e7cf,_0x5b709c)=>{const _0x34471c=_0x151f3e,_0x53f682={'m1Prime':_0x34e7cf,'m2Prime':_0x5b709c};if(_0x34e7cf['params'][_0x34471c(0x3a7)]!==_0x5b709c['params'][_0x34471c(0x3a7)]||_0x34e7cf[_0x34471c(0x1a4)]['subUnitId']!==_0x5b709c[_0x34471c(0x1a4)]['subUnitId'])return _0x53f682;return{'error':new Error(_0x34471c(0x1b8))};}},addWorksheetProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x31c)]['id'],'handler':(_0x384674,_0x467a7b)=>{const _0x171843=_0x151f3e,_0x154344={'m1Prime':_0x384674,'m2Prime':_0x467a7b};if(_0x384674['params']['unitId']!==_0x467a7b[_0x171843(0x1a4)][_0x171843(0x3a7)]||_0x384674[_0x171843(0x1a4)]['subUnitId']!==_0x467a7b[_0x171843(0x1a4)][_0x171843(0x2e9)])return _0x154344;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule')};}},addWorksheetProtectionWithInsertCol={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler':(_0x786bc4,_0x13b422)=>{const _0x4f2cf7=_0x151f3e,_0x33c27d={'m1Prime':_0x786bc4,'m2Prime':_0x13b422};if(_0x786bc4[_0x4f2cf7(0x1a4)][_0x4f2cf7(0x3a7)]!==_0x13b422[_0x4f2cf7(0x1a4)]['unitId']||_0x786bc4[_0x4f2cf7(0x1a4)][_0x4f2cf7(0x2e9)]!==_0x13b422[_0x4f2cf7(0x1a4)][_0x4f2cf7(0x2e9)])return _0x33c27d;return{'error':new Error(_0x4f2cf7(0x3a9))};}},addWorksheetProtectionWithInsertRow={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler':(_0x19a306,_0x3e88d0)=>{const _0x7ad4f1=_0x151f3e,_0x3c09ca={'m1Prime':_0x19a306,'m2Prime':_0x3e88d0};if(_0x19a306['params']['unitId']!==_0x3e88d0['params'][_0x7ad4f1(0x3a7)]||_0x19a306[_0x7ad4f1(0x1a4)][_0x7ad4f1(0x2e9)]!==_0x3e88d0['params']['subUnitId'])return _0x3c09ca;return{'error':new Error(_0x7ad4f1(0x210))};}},addWorksheetProtectionWithMoveCol={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x56ebc1,_0x432ffb)=>{const _0x54afc0=_0x151f3e,_0x317481={'m1Prime':_0x56ebc1,'m2Prime':_0x432ffb};if(_0x56ebc1['params'][_0x54afc0(0x3a7)]!==_0x432ffb['params'][_0x54afc0(0x3a7)]||_0x56ebc1[_0x54afc0(0x1a4)][_0x54afc0(0x2e9)]!==_0x432ffb[_0x54afc0(0x1a4)][_0x54afc0(0x2e9)])return _0x317481;return{'error':new Error(_0x54afc0(0x1bc))};}},addWorksheetProtectionWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler':(_0x469db9,_0x23eab4)=>{const _0xab7d7a=_0x151f3e,_0x4a4ffd={'m1Prime':_0x469db9,'m2Prime':_0x23eab4};if(_0x469db9[_0xab7d7a(0x1a4)][_0xab7d7a(0x3a7)]!==_0x23eab4[_0xab7d7a(0x1a4)][_0xab7d7a(0x3a7)]||_0x469db9['params'][_0xab7d7a(0x2e9)]!==_0x23eab4['params'][_0xab7d7a(0x3fc)][_0xab7d7a(0x2e9)])return _0x4a4ffd;return{'error':new Error(_0xab7d7a(0x2c9))};}},addWorksheetProtectionWithMoveRow={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler':(_0x10ef87,_0xbe6d70)=>{const _0x29e716=_0x151f3e,_0x39150f={'m1Prime':_0x10ef87,'m2Prime':_0xbe6d70};if(_0x10ef87[_0x29e716(0x1a4)][_0x29e716(0x3a7)]!==_0xbe6d70['params'][_0x29e716(0x3a7)]||_0x10ef87[_0x29e716(0x1a4)][_0x29e716(0x2e9)]!==_0xbe6d70[_0x29e716(0x1a4)][_0x29e716(0x2e9)])return _0x39150f;return{'error':new Error(_0x29e716(0x1e6))};}},addWorksheetProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler':(_0x1cc99c,_0x55dc31)=>{const _0x50cee4=_0x151f3e,_0x2c3077={'m1Prime':_0x1cc99c,'m2Prime':_0x55dc31};if(_0x1cc99c[_0x50cee4(0x1a4)][_0x50cee4(0x3a7)]!==_0x55dc31[_0x50cee4(0x1a4)][_0x50cee4(0x3a7)]||_0x1cc99c['params']['subUnitId']!==_0x55dc31['params']['subUnitId'])return _0x2c3077;return{'error':new Error(_0x50cee4(0x36e))};}},addWorksheetProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_data_validation[_0x151f3e(0x25b)]['id'],'handler':(_0x3cbcd7,_0x4d2c61)=>{const _0x3693a5=_0x151f3e,_0x4ba8dc={'m1Prime':_0x3cbcd7,'m2Prime':_0x4d2c61};if(_0x3cbcd7['params'][_0x3693a5(0x3a7)]!==_0x4d2c61[_0x3693a5(0x1a4)][_0x3693a5(0x3a7)]||_0x3cbcd7[_0x3693a5(0x1a4)]['subUnitId']!==_0x4d2c61[_0x3693a5(0x1a4)][_0x3693a5(0x2e9)])return _0x4ba8dc;return{'error':new Error(_0x3693a5(0x234))};}},addWorksheetProtectionWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler':(_0x4ceabf,_0x1712f6)=>{const _0x13ad0e=_0x151f3e,_0x50a59b={'m1Prime':_0x4ceabf,'m2Prime':_0x1712f6};if(_0x4ceabf['params']['unitId']!==_0x1712f6[_0x13ad0e(0x1a4)][_0x13ad0e(0x3a7)]||_0x4ceabf[_0x13ad0e(0x1a4)][_0x13ad0e(0x2e9)]!==_0x1712f6[_0x13ad0e(0x1a4)][_0x13ad0e(0x2e9)])return _0x50a59b;return{'error':new Error(_0x13ad0e(0x321))};}},addWorksheetProtectionWithRemoveRow={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'handler':(_0x4fd56d,_0x37d872)=>{const _0x1e1ff0=_0x151f3e,_0xe3e48e={'m1Prime':_0x4fd56d,'m2Prime':_0x37d872};if(_0x4fd56d[_0x1e1ff0(0x1a4)][_0x1e1ff0(0x3a7)]!==_0x37d872[_0x1e1ff0(0x1a4)][_0x1e1ff0(0x3a7)]||_0x4fd56d[_0x1e1ff0(0x1a4)]['subUnitId']!==_0x37d872[_0x1e1ff0(0x1a4)]['subUnitId'])return _0xe3e48e;return{'error':new Error(_0x1e1ff0(0x1b7))};}},addWorksheetProtectionWithRemoveFilter={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x2a6)]['id'],'handler':(_0x2e2ea2,_0x21c1a4)=>{const _0x30cfe8=_0x151f3e,_0x45aaad={'m1Prime':_0x2e2ea2,'m2Prime':_0x21c1a4};if(_0x2e2ea2['params']['unitId']!==_0x21c1a4['params']['unitId']||_0x2e2ea2[_0x30cfe8(0x1a4)]['subUnitId']!==_0x21c1a4[_0x30cfe8(0x1a4)][_0x30cfe8(0x2e9)])return _0x45aaad;return{'error':new Error(_0x30cfe8(0x333))};}},addWorksheetProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler':(_0xa4f49f,_0x12552c)=>{const _0x268980=_0x151f3e,_0x579e22={'m1Prime':_0xa4f49f,'m2Prime':_0x12552c};if(_0xa4f49f[_0x268980(0x1a4)][_0x268980(0x3a7)]!==_0x12552c[_0x268980(0x1a4)][_0x268980(0x3a7)]||_0xa4f49f[_0x268980(0x1a4)]['subUnitId']!==_0x12552c[_0x268980(0x1a4)][_0x268980(0x2e9)])return _0x579e22;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};}},addWorksheetProtectionWithRemoveWorksheet={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x287)]['id'],'handler':(_0x5c4625,_0x542094)=>{const _0x5abc48=_0x151f3e;if(_0x5c4625[_0x5abc48(0x1a4)][_0x5abc48(0x3a7)]!==_0x542094[_0x5abc48(0x1a4)][_0x5abc48(0x3a7)]||_0x5c4625[_0x5abc48(0x1a4)][_0x5abc48(0x2e9)]!==_0x542094['params'][_0x5abc48(0x2e9)])return{'m1Prime':_0x5c4625,'m2Prime':_0x542094};return{'error':new Error(_0x5abc48(0x1fb))};}},addWorksheetProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler':(_0x294af0,_0x1cea4b)=>{const _0x323ab3=_0x151f3e,_0x3aa4d7={'m1Prime':_0x294af0,'m2Prime':_0x1cea4b};if(_0x294af0[_0x323ab3(0x1a4)][_0x323ab3(0x3a7)]!==_0x1cea4b[_0x323ab3(0x1a4)][_0x323ab3(0x3a7)]||_0x294af0[_0x323ab3(0x1a4)][_0x323ab3(0x2e9)]!==_0x1cea4b[_0x323ab3(0x1a4)][_0x323ab3(0x2e9)])return _0x3aa4d7;return{'error':new Error(_0x323ab3(0x1f2))};}},addWorksheetProtectionWithSetFrozen={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x240)]['id'],'handler':(_0x162fa5,_0x49a30e)=>{const _0x1b9600=_0x151f3e,_0x5b1327={'m1Prime':_0x162fa5,'m2Prime':_0x49a30e};if(_0x162fa5[_0x1b9600(0x1a4)]['unitId']!==_0x49a30e[_0x1b9600(0x1a4)]['unitId']||_0x162fa5[_0x1b9600(0x1a4)][_0x1b9600(0x2e9)]!==_0x49a30e['params']['subUnitId'])return _0x5b1327;return{'error':new Error(_0x1b9600(0x2d9))};}},addWorksheetProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler':(_0x262dab,_0x31131a)=>{const _0x15db01=_0x151f3e,_0x2622e4={'m1Prime':_0x262dab,'m2Prime':_0x31131a};if(_0x262dab[_0x15db01(0x1a4)]['unitId']!==_0x31131a[_0x15db01(0x1a4)][_0x15db01(0x3a7)]||_0x262dab[_0x15db01(0x1a4)][_0x15db01(0x2e9)]!==_0x31131a['params'][_0x15db01(0x2e9)])return _0x2622e4;return{'error':new Error(_0x15db01(0x355))};}},addWorksheetProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'handler':(_0x4316e7,_0x314676)=>{const _0x5e8c77=_0x151f3e,_0x3f53a2={'m1Prime':_0x4316e7,'m2Prime':_0x314676};if(_0x4316e7[_0x5e8c77(0x1a4)][_0x5e8c77(0x3a7)]!==_0x314676[_0x5e8c77(0x1a4)][_0x5e8c77(0x3a7)]||_0x4316e7[_0x5e8c77(0x1a4)]['subUnitId']!==_0x314676['params']['subUnitId'])return _0x3f53a2;return{'error':new Error(_0x5e8c77(0x3bc))};}},addWorksheetProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'handler':(_0x534a40,_0x39c0dd)=>{const _0x3a5e82=_0x151f3e,_0x3f18a5={'m1Prime':_0x534a40,'m2Prime':_0x39c0dd};if(_0x534a40['params'][_0x3a5e82(0x3a7)]!==_0x39c0dd[_0x3a5e82(0x1a4)]['unitId']||_0x534a40[_0x3a5e82(0x1a4)]['subUnitId']!==_0x39c0dd[_0x3a5e82(0x1a4)][_0x3a5e82(0x2e9)])return _0x3f18a5;return{'error':new Error(_0x3a5e82(0x2da))};}},addWorksheetProtectionWithSetWorksheetName={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x390)]['id'],'handler':(_0x5f1338,_0x485929)=>{const _0x437eac=_0x151f3e,_0x46a9de={'m1Prime':_0x5f1338,'m2Prime':_0x485929};if(_0x5f1338['params'][_0x437eac(0x3a7)]!==_0x485929[_0x437eac(0x1a4)][_0x437eac(0x3a7)]||_0x5f1338['params']['subUnitId']!==_0x485929[_0x437eac(0x1a4)]['subUnitId'])return _0x46a9de;return{'error':new Error(_0x437eac(0x34a))};}},addWorksheetProtectionWithUpdateComment={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x34f)]['id'],'handler':(_0x37ee4a,_0x322186)=>{const _0x5097ef=_0x151f3e,_0x148bb4={'m1Prime':_0x37ee4a,'m2Prime':_0x322186};if(_0x37ee4a['params'][_0x5097ef(0x3a7)]!==_0x322186['params'][_0x5097ef(0x3a7)]||_0x37ee4a[_0x5097ef(0x1a4)][_0x5097ef(0x2e9)]!==_0x322186[_0x5097ef(0x1a4)]['subUnitId'])return _0x148bb4;return{'error':new Error(_0x5097ef(0x1e0))};}},addWorksheetProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x1486bb,_0x76f061)=>{const _0xc8cad=_0x151f3e,_0x3d3e99={'m1Prime':_0x1486bb,'m2Prime':_0x76f061};if(_0x1486bb[_0xc8cad(0x1a4)]['unitId']!==_0x76f061[_0xc8cad(0x1a4)]['unitId']||_0x1486bb[_0xc8cad(0x1a4)][_0xc8cad(0x2e9)]!==_0x76f061['params'][_0xc8cad(0x2e9)])return _0x3d3e99;return{'error':new Error(_0xc8cad(0x37e))};}},deleteCommentMutationWithAdd={'m1':_univerjs_thread_comment[_0x151f3e(0x29a)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x5534f5,_0x3cc0fa)=>{const _0x4e8489=_0x151f3e,_0x5c72a2=_0x5534f5['params'],_0x2e69c7=_0x3cc0fa[_0x4e8489(0x1a4)];if(_0x5c72a2['unitId']===_0x2e69c7[_0x4e8489(0x3a7)]&&_0x5c72a2[_0x4e8489(0x2e9)]===_0x2e69c7['subUnitId']&&_0x5c72a2[_0x4e8489(0x228)]===_0x2e69c7[_0x4e8489(0x1a1)]['parentId'])return{'m1Prime':_0x5534f5,'m2Prime':[]};return{'m1Prime':_0x5534f5,'m2Prime':_0x3cc0fa};}},deleteCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0x151f3e(0x29a)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x29a)]['id'],'handler':(_0xb5e1c7,_0x344ccc)=>{const _0xbcb29=_0x151f3e,_0xe13f2=_0xb5e1c7[_0xbcb29(0x1a4)],_0x3fb53e=_0x344ccc[_0xbcb29(0x1a4)],_0x211c08={'m1Prime':_0xb5e1c7,'m2Prime':_0x344ccc};if(_0xe13f2[_0xbcb29(0x3a7)]!==_0x3fb53e[_0xbcb29(0x3a7)]||_0xe13f2[_0xbcb29(0x2e9)]!==_0x3fb53e['subUnitId']||_0xe13f2['commentId']!==_0x3fb53e[_0xbcb29(0x228)])return _0x211c08;return{'m1Prime':[],'m2Prime':[]};}},deleteConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x151f3e(0x31c)]['id'],'m2':_univerjs_sheets_conditional_formatting['DeleteConditionalRuleMutation']['id'],'handler'(_0x5d678c,_0x171787){return{'m1Prime':_0x5d678c,'m2Prime':_0x171787};}},transformAddCommentWithRefRange=(_0x261a48,_0x467abe)=>{const _0x14404f=_0x151f3e,_0x4b4fe8=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x261a48['params']['comment']['ref']),_0x23c1a3=(0x0,_univerjs_sheets[_0x14404f(0x243)])({'startColumn':_0x4b4fe8[_0x14404f(0x1cd)],'endColumn':_0x4b4fe8[_0x14404f(0x1cd)],'startRow':_0x4b4fe8[_0x14404f(0x1d0)],'endRow':_0x4b4fe8[_0x14404f(0x1d0)]},_0x467abe);if(!_0x23c1a3)return[{'id':_univerjs_thread_comment['DeleteCommentMutation']['id'],'params':{..._0x261a48['params'],'comment':void 0x0,'commentId':_0x261a48[_0x14404f(0x1a4)][_0x14404f(0x1a1)]['id']}}];const _0x2563b5=(0x0,_univerjs_engine_formula['serializeRange'])(_0x23c1a3);if(_0x2563b5===_0x261a48[_0x14404f(0x1a4)][_0x14404f(0x1a1)]['ref'])return[];return[{'id':_univerjs_thread_comment[_0x14404f(0x2b8)]['id'],'params':{..._0x261a48[_0x14404f(0x1a4)],'comment':void 0x0,'payload':{'ref':_0x2563b5,'commentId':_0x261a48[_0x14404f(0x1a4)][_0x14404f(0x1a1)]['id']}}}];},insertColWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x1eb785,_0x7c9223)=>{const _0x33d5d8=_0x151f3e,_0x437157={'m1Prime':_0x1eb785,'m2Prime':_0x7c9223};if(_0x1eb785[_0x33d5d8(0x1a4)][_0x33d5d8(0x3a7)]!==_0x7c9223[_0x33d5d8(0x1a4)][_0x33d5d8(0x3a7)]||_0x1eb785['params'][_0x33d5d8(0x2e9)]!==_0x7c9223[_0x33d5d8(0x1a4)][_0x33d5d8(0x2e9)])return _0x437157;const _0x57cd6c=transformAddCommentWithRefRange(_0x7c9223,{'id':_univerjs_sheets[_0x33d5d8(0x32f)]['id'],'params':{'unitId':_0x1eb785[_0x33d5d8(0x1a4)]['unitId'],'subUnitId':_0x1eb785[_0x33d5d8(0x1a4)]['subUnitId'],'range':_0x1eb785[_0x33d5d8(0x1a4)][_0x33d5d8(0x1b6)]}});return{'m1Prime':[_0x1eb785,..._0x57cd6c],'m2Prime':[_0x7c9223,..._0x57cd6c]};}};function toColumn(_0x5848e5){const _0x5a5f7b=_0x151f3e;return{..._0x5848e5,'rangeType':_univerjs_core[_0x5a5f7b(0x23f)][_0x5a5f7b(0x19e)]};}function moveRows(_0x381642,_0x5d94b1,_0xd298d8,_0xd2afde){const _0x4afc2b=_0x151f3e;if(_0xd2afde<0x0){for(let _0x59e2b4=_0x5d94b1;_0x59e2b4<_0x5d94b1+_0xd298d8;_0x59e2b4++)if(_0x381642['hasOwnProperty'](_0x59e2b4)){if(!_0x381642[_0x4afc2b(0x24f)](_0x59e2b4+_0xd2afde))_0x381642[_0x59e2b4+_0xd2afde]={};const _0xe5e897=_0x381642[_0x59e2b4],_0x1a5999=Object['keys'](_0xe5e897)[_0x4afc2b(0x284)](Number)[_0x4afc2b(0x3d0)]((_0xe2739f,_0x51ecdd)=>_0xe2739f-_0x51ecdd);for(const _0x5141d6 of _0x1a5999)_0x381642[_0x59e2b4+_0xd2afde][_0x5141d6]=_0xe5e897[_0x5141d6];delete _0x381642[_0x59e2b4];}else delete _0x381642[_0x59e2b4+_0xd2afde];}else{for(let _0x5cc925=_0x5d94b1+_0xd298d8-0x1;_0x5cc925>=_0x5d94b1;_0x5cc925--)if(_0x381642[_0x4afc2b(0x24f)](_0x5cc925)){if(!_0x381642['hasOwnProperty'](_0x5cc925+_0xd2afde))_0x381642[_0x5cc925+_0xd2afde]={};const _0x32b0b5=_0x381642[_0x5cc925],_0x4e7ec7=Object[_0x4afc2b(0x2d4)](_0x32b0b5)[_0x4afc2b(0x284)](Number)[_0x4afc2b(0x3d0)]((_0x28b7a6,_0x213e86)=>_0x28b7a6-_0x213e86);for(const _0x55cee5 of _0x4e7ec7)_0x381642[_0x5cc925+_0xd2afde][_0x55cee5]=_0x32b0b5[_0x55cee5];delete _0x381642[_0x5cc925];}else delete _0x381642[_0x5cc925+_0xd2afde];}}function moveColumns(_0x52b0a5,_0x20b784,_0x536129,_0x92024){const _0x5caf1a=_0x151f3e,_0x376f83=Object[_0x5caf1a(0x2d4)](_0x52b0a5)[_0x5caf1a(0x284)](Number)[_0x5caf1a(0x3d0)]((_0x5ccfc1,_0x50db8f)=>_0x5ccfc1-_0x50db8f);if(_0x92024<0x0)for(const _0x1b2cc3 of _0x376f83){const _0x4fc674=_0x52b0a5[_0x1b2cc3];for(let _0x22e0fb=_0x20b784;_0x22e0fb<_0x20b784+_0x536129;_0x22e0fb++)if(_0x4fc674['hasOwnProperty'](_0x22e0fb))_0x4fc674[_0x22e0fb+_0x92024]=_0x4fc674[_0x22e0fb],delete _0x4fc674[_0x22e0fb];else delete _0x4fc674[_0x22e0fb+_0x92024];}else for(const _0x5ad195 of _0x376f83){const _0x343f6f=_0x52b0a5[_0x5ad195];for(let _0x59d7f5=_0x20b784+_0x536129-0x1;_0x59d7f5>=_0x20b784;_0x59d7f5--)if(_0x343f6f[_0x5caf1a(0x24f)](_0x59d7f5))_0x343f6f[_0x59d7f5+_0x92024]=_0x343f6f[_0x59d7f5],delete _0x343f6f[_0x59d7f5];else delete _0x343f6f[_0x59d7f5+_0x92024];}}function RangeSubtractRanges(_0x50bb6e,_0x1abcdc){const _0x3b4a1f=_0x151f3e;return new _univerjs_sheets['RangeMergeUtil']()[_0x3b4a1f(0x370)](_0x50bb6e)['subtract'](..._0x1abcdc)['merge']();}function processFormulaString(_0x5b7442,_0x36f074,_0x2ff131,_0x879ef8){const _0x42b729=_0x151f3e,_0x27afea=new _univerjs_engine_formula['LexerTreeBuilder']()[_0x42b729(0x254)](_0x2ff131);if(_0x27afea==null)return _0x2ff131;const _0x121709=[];for(let _0x57481f=0x0,_0x5821e5=_0x27afea['length'];_0x57481f<_0x5821e5;_0x57481f++){const _0x4eb9eb=_0x27afea[_0x57481f];if(typeof _0x4eb9eb==='string'||_0x4eb9eb[_0x42b729(0x2ab)]!==_univerjs_engine_formula['sequenceNodeType'][_0x42b729(0x290)]){_0x121709['push'](_0x4eb9eb);continue;}const {token:_0x232d93}=_0x4eb9eb,{range:_0x147f79,sheetName:_0x2811a8,unitId:_0x4349a5}=(0x0,_univerjs_engine_formula[_0x42b729(0x3c6)])(_0x232d93);if((_0x5b7442===_0x4349a5||_0x4349a5==='')&&(_0x36f074===_0x2811a8||_0x2811a8==='')){const _0x3cc65e=_0x879ef8(_0x147f79),_0x3fc140=_0x3cc65e?(0x0,_univerjs_engine_formula['serializeRangeToRefString'])({'range':_0x3cc65e,'sheetName':_0x2811a8,'unitId':_0x4349a5}):_univerjs_engine_formula[_0x42b729(0x2ec)][_0x42b729(0x2f1)];_0x121709[_0x42b729(0x1c6)]({..._0x4eb9eb,'token':_0x3fc140});}else _0x121709[_0x42b729(0x1c6)](_0x4eb9eb);}return'='+(0x0,_univerjs_engine_formula[_0x42b729(0x2ff)])(_0x121709);}function intersect(_0x3dfa16,_0x2a3249){const _0x33f2c4=_0x151f3e;return _0x3dfa16['start']<=_0x2a3249[_0x33f2c4(0x2c3)]&&_0x3dfa16[_0x33f2c4(0x2c3)]>=_0x2a3249[_0x33f2c4(0x2d5)];}function contain(_0x4cd3b0,_0xa0b2ce){const _0x32bbbd=_0x151f3e;return _0x4cd3b0[_0x32bbbd(0x2d5)]<=_0xa0b2ce[_0x32bbbd(0x2d5)]&&_0x4cd3b0[_0x32bbbd(0x2c3)]>=_0xa0b2ce[_0x32bbbd(0x2c3)];}function lineSubtractLines(_0x3a8324,_0x3968af){const _0x5d9ae9=_0x151f3e;let _0x2c83b9=[_0x3a8324];for(const _0xd30b8e of _0x3968af){const _0xb8854b=[];for(const _0x272d1c of _0x2c83b9)_0xb8854b[_0x5d9ae9(0x1c6)](...lineSubtractLine(_0x272d1c,_0xd30b8e));_0x2c83b9=_0xb8854b;}return _0x2c83b9;}function lineSubtractLine(_0x739c73,_0x2f3eb6){const _0x2bc164=_0x151f3e,_0x1ee8c3=[];if(contain(_0x2f3eb6,_0x739c73))return _0x1ee8c3;if(contain(_0x739c73,_0x2f3eb6)){const _0x5b455a=_0x739c73[_0x2bc164(0x2d5)],_0xc17ef=_0x2f3eb6['start']-0x1,_0x48e9e2=_0x2f3eb6[_0x2bc164(0x2c3)]+0x1,_0x4836f6=_0x739c73[_0x2bc164(0x2c3)];if(_0x5b455a<=_0xc17ef)_0x1ee8c3[_0x2bc164(0x1c6)]({'start':_0x5b455a,'end':_0xc17ef});if(_0x48e9e2<=_0x4836f6)_0x1ee8c3[_0x2bc164(0x1c6)]({'start':_0x48e9e2,'end':_0x4836f6});return _0x1ee8c3;}if(intersect(_0x739c73,_0x2f3eb6)){if(_0x739c73[_0x2bc164(0x2d5)]<_0x2f3eb6[_0x2bc164(0x2d5)])_0x1ee8c3[_0x2bc164(0x1c6)]({'start':_0x739c73[_0x2bc164(0x2d5)],'end':_0x2f3eb6[_0x2bc164(0x2d5)]-0x1});if(_0x739c73['end']>_0x2f3eb6['end'])_0x1ee8c3['push']({'start':_0x2f3eb6[_0x2bc164(0x2c3)]+0x1,'end':_0x739c73[_0x2bc164(0x2c3)]});return _0x1ee8c3;}return[_0x739c73];}function handleInsert(_0x5e9bc9,_0x4c08df){const _0x5651d3=_0x151f3e,_0x5e15d7=(0x0,_univerjs_sheets[_0x5651d3(0x36a)])({'startColumn':_0x5e9bc9[_0x5651d3(0x2d5)],'endColumn':_0x5e9bc9[_0x5651d3(0x2c3)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core['RANGE_TYPE']['COLUMN']},{'startColumn':_0x4c08df[_0x5651d3(0x2d5)],'endColumn':_0x4c08df[_0x5651d3(0x2c3)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5651d3(0x23f)]['COLUMN']});return{'start':_0x4c08df['start']+_0x5e15d7[_0x5651d3(0x2d0)],'end':_0x4c08df[_0x5651d3(0x2c3)]+_0x5e15d7[_0x5651d3(0x2d0)]+_0x5e15d7[_0x5651d3(0x1ba)]};}function handleRemove(_0x4d9f50,_0x405886){const _0x550e09=_0x151f3e,_0x487ce4=(0x0,_univerjs_sheets['handleBaseRemoveRange'])({'startColumn':_0x4d9f50['start'],'endColumn':_0x4d9f50[_0x550e09(0x2c3)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x550e09(0x23f)][_0x550e09(0x19e)]},{'startColumn':_0x405886['start'],'endColumn':_0x405886[_0x550e09(0x2c3)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x550e09(0x23f)]['COLUMN']});if(_0x487ce4===null)return null;return{'start':_0x405886['start']+_0x487ce4['step'],'end':_0x405886[_0x550e09(0x2c3)]+_0x487ce4['step']+_0x487ce4[_0x550e09(0x1ba)]};}function transformAddDataValidationWithRefRange(_0x12a6d4,_0x2f44f4){const _0x194093=_0x151f3e,{unitId:_0x28b63a,subUnitId:_0x1b9513}=_0x12a6d4['params'],_0x4743bc=_0x4c48f4=>{return processFormulaString(_0x28b63a,_0x1b9513,_0x4c48f4,_0x13135d=>{const _0xed56df=_0x62e3;return(0x0,_univerjs_sheets[_0xed56df(0x243)])(_0x13135d,_0x2f44f4);});},_0x307448=[],_0x2ad106=_0x53c24d=>{const _0x4153e0=_0x62e3;var _0x33b049,_0x3bc060;const _0x397b0f=_0x53c24d[_0x4153e0(0x3be)],_0x40f7b4=_0x53c24d[_0x4153e0(0x286)][_0x4153e0(0x284)](_0x319c9=>(0x0,_univerjs_sheets[_0x4153e0(0x1e1)])(_0x319c9,_0x2f44f4)),_0x1aa05b=(_0x33b049=_0x53c24d['formula1'])!==null&&_0x33b049!==void 0x0?_0x33b049:'',_0x1fc194=(_0x3bc060=_0x53c24d['formula2'])!==null&&_0x3bc060!==void 0x0?_0x3bc060:'';let _0x1d8615=_0x1aa05b,_0x46109e=_0x1fc194;if((0x0,_univerjs_core[_0x4153e0(0x20f)])(_0x1aa05b))_0x1d8615=_0x4743bc(_0x1aa05b);if((0x0,_univerjs_core[_0x4153e0(0x20f)])(_0x1fc194))_0x46109e=_0x4743bc(_0x1fc194);if(_0x1d8615!==_0x1aa05b||_0x46109e!==_0x1fc194)_0x307448[_0x4153e0(0x1c6)]({'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x28b63a,'subUnitId':_0x1b9513,'ruleId':_0x397b0f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x4153e0(0x23a)],'payload':{'type':_0x53c24d['type'],'formula1':_0x1d8615,'formula2':_0x46109e}}}});const _0x29f997=_0x40f7b4[_0x4153e0(0x2ea)]()['filter'](Boolean);if(!(0x0,_univerjs_core[_0x4153e0(0x3d3)])(_0x53c24d[_0x4153e0(0x286)],_0x29f997))_0x307448[_0x4153e0(0x1c6)]({'id':_univerjs_data_validation[_0x4153e0(0x2cf)]['id'],'params':{'unitId':_0x28b63a,'subUnitId':_0x1b9513,'ruleId':_0x397b0f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x4153e0(0x3a3)],'payload':_0x29f997}}});};if(Array[_0x194093(0x1d1)](_0x12a6d4[_0x194093(0x1a4)][_0x194093(0x3e3)]))_0x12a6d4['params'][_0x194093(0x3e3)][_0x194093(0x3b5)](_0x1cdf90=>_0x2ad106(_0x1cdf90));else _0x2ad106(_0x12a6d4[_0x194093(0x1a4)][_0x194093(0x3e3)]);return _0x307448;}const moveColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_data_validation['AddDataValidationMutation']['id'],'handler'(_0x8e9079,_0x5c1ea2){const _0xddf2d7=_0x151f3e,_0x203309={'m1Prime':_0x8e9079,'m2Prime':_0x5c1ea2};if(_0x8e9079[_0xddf2d7(0x1a4)][_0xddf2d7(0x3a7)]!==_0x5c1ea2[_0xddf2d7(0x1a4)][_0xddf2d7(0x3a7)]||_0x8e9079[_0xddf2d7(0x1a4)][_0xddf2d7(0x2e9)]!==_0x5c1ea2[_0xddf2d7(0x1a4)][_0xddf2d7(0x2e9)])return _0x203309;const _0x3940b8=transformAddDataValidationWithRefRange(_0x5c1ea2,{'id':_univerjs_sheets[_0xddf2d7(0x396)]['id'],'params':{'fromRange':_0x8e9079[_0xddf2d7(0x1a4)][_0xddf2d7(0x195)],'toRange':_0x8e9079[_0xddf2d7(0x1a4)]['targetRange']}});return{'m1Prime':[_0x8e9079,..._0x3940b8],'m2Prime':[_0x5c1ea2,..._0x3940b8]};}},insertColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'handler'(_0x463c6e,_0x31bf0e){const _0x5b2c9=_0x151f3e,_0x49dec1={'m1Prime':_0x463c6e,'m2Prime':_0x31bf0e};if(_0x463c6e[_0x5b2c9(0x1a4)][_0x5b2c9(0x3a7)]!==_0x31bf0e[_0x5b2c9(0x1a4)][_0x5b2c9(0x3a7)]||_0x463c6e[_0x5b2c9(0x1a4)][_0x5b2c9(0x2e9)]!==_0x31bf0e[_0x5b2c9(0x1a4)]['subUnitId'])return _0x49dec1;const _0x483f7f=transformAddDataValidationWithRefRange(_0x31bf0e,{'id':_univerjs_sheets[_0x5b2c9(0x32f)]['id'],'params':{'unitId':_0x463c6e[_0x5b2c9(0x1a4)][_0x5b2c9(0x3a7)],'subUnitId':_0x463c6e[_0x5b2c9(0x1a4)]['subUnitId'],'range':_0x463c6e['params'][_0x5b2c9(0x1b6)]}});return{'m1Prime':[_0x463c6e,..._0x483f7f],'m2Prime':[_0x31bf0e,..._0x483f7f]};}},insertColMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x358642,_0x37b3f7){const _0xd4b594=_0x151f3e,_0x2a94b2=addWorksheetMergeMutationWithInsertColMutation[_0xd4b594(0x303)](_0x37b3f7,_0x358642);if(isTransformMutationSuccess(_0x2a94b2))return{'m1Prime':_0x2a94b2['m2Prime'],'m2Prime':_0x2a94b2[_0xd4b594(0x28a)]};else return _0x2a94b2;}},insertColMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler'(_0x494fa3,_0x3a907e){const _0x4f039f=_0x151f3e,_0x1e201e={'m1Prime':_0x494fa3,'m2Prime':_0x3a907e};if(_0x494fa3[_0x4f039f(0x1a4)]['unitId']!==_0x3a907e[_0x4f039f(0x1a4)][_0x4f039f(0x3a7)]||_0x494fa3[_0x4f039f(0x1a4)][_0x4f039f(0x2e9)]!==_0x3a907e[_0x4f039f(0x1a4)]['subUnitId'])return _0x1e201e;const _0x3dc6e9=_univerjs_core[_0x4f039f(0x1a6)]['deepClone'](_0x494fa3),_0x5cd1f1=_univerjs_core[_0x4f039f(0x1a6)][_0x4f039f(0x3ce)](_0x3a907e),_0xe8a744=(0x0,_univerjs_sheets[_0x4f039f(0x36a)])(toColumn(_0x494fa3[_0x4f039f(0x1a4)]['range']),toColumn(_0x3a907e[_0x4f039f(0x1a4)][_0x4f039f(0x1b6)]));if(_0xe8a744)_0x5cd1f1['params']['range'][_0x4f039f(0x1cb)]+=_0xe8a744['step'],_0x5cd1f1[_0x4f039f(0x1a4)]['range'][_0x4f039f(0x350)]+=_0xe8a744['step']+(_0xe8a744[_0x4f039f(0x1ba)]||0x0);else _0x5cd1f1['id']=_univerjs_sheets[_0x4f039f(0x36d)]['id'];if(_0x494fa3[_0x4f039f(0x1a4)]['range']['startColumn']!==_0x3a907e[_0x4f039f(0x1a4)][_0x4f039f(0x1b6)][_0x4f039f(0x1cb)]){const _0x488b78=(0x0,_univerjs_sheets[_0x4f039f(0x36a)])(toColumn(_0x3a907e['params'][_0x4f039f(0x1b6)]),toColumn(_0x494fa3[_0x4f039f(0x1a4)]['range']));if(_0x488b78)_0x3dc6e9['params'][_0x4f039f(0x1b6)][_0x4f039f(0x1cb)]+=_0x488b78[_0x4f039f(0x2d0)],_0x3dc6e9[_0x4f039f(0x1a4)][_0x4f039f(0x1b6)]['endColumn']+=_0x488b78[_0x4f039f(0x2d0)]+(_0x488b78[_0x4f039f(0x1ba)]||0x0);else _0x3dc6e9['id']=_univerjs_sheets[_0x4f039f(0x36d)]['id'];}return{'m1Prime':_0x3dc6e9,'m2Prime':_0x5cd1f1};}},insertColMutationWithMoveCol={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler'(_0x2e1b3e,_0x2c008e){const _0x15f1c6=_0x151f3e,_0x3d3e72={'m1Prime':_0x2e1b3e,'m2Prime':_0x2c008e};if(_0x2e1b3e['params'][_0x15f1c6(0x3a7)]!==_0x2c008e[_0x15f1c6(0x1a4)][_0x15f1c6(0x3a7)]||_0x2e1b3e[_0x15f1c6(0x1a4)][_0x15f1c6(0x2e9)]!==_0x2c008e[_0x15f1c6(0x1a4)][_0x15f1c6(0x2e9)])return _0x3d3e72;const _0x5afb88=_univerjs_core['Tools'][_0x15f1c6(0x3ce)](_0x2e1b3e),_0x53c266=_univerjs_core[_0x15f1c6(0x1a6)]['deepClone'](_0x2c008e),_0x49707a=_0x2c008e['params'][_0x15f1c6(0x195)],_0x48eb65=_0x2c008e['params'][_0x15f1c6(0x373)];if(_0x2e1b3e[_0x15f1c6(0x1a4)]['range']['startColumn']>_0x49707a[_0x15f1c6(0x1cb)]&&_0x2e1b3e[_0x15f1c6(0x1a4)]['range'][_0x15f1c6(0x1cb)]<=_0x49707a[_0x15f1c6(0x350)]||_0x2e1b3e['params'][_0x15f1c6(0x1b6)][_0x15f1c6(0x1cb)]>_0x48eb65['startColumn']&&_0x2e1b3e[_0x15f1c6(0x1a4)]['range'][_0x15f1c6(0x1cb)]<=_0x48eb65[_0x15f1c6(0x350)])return{'error':new Error(_0x15f1c6(0x352))};const _0x3c9a77=(0x0,_univerjs_sheets[_0x15f1c6(0x36a)])(toColumn(_0x2e1b3e[_0x15f1c6(0x1a4)]['range']),toColumn(_0x49707a)),_0x1966c6=(0x0,_univerjs_sheets[_0x15f1c6(0x36a)])(toColumn(_0x2e1b3e['params'][_0x15f1c6(0x1b6)]),toColumn(_0x48eb65));_0x53c266[_0x15f1c6(0x1a4)][_0x15f1c6(0x195)][_0x15f1c6(0x1cb)]+=_0x3c9a77[_0x15f1c6(0x2d0)],_0x53c266[_0x15f1c6(0x1a4)]['sourceRange'][_0x15f1c6(0x350)]+=_0x3c9a77[_0x15f1c6(0x2d0)]+(_0x3c9a77[_0x15f1c6(0x1ba)]||0x0),_0x53c266[_0x15f1c6(0x1a4)][_0x15f1c6(0x373)][_0x15f1c6(0x1cb)]+=_0x1966c6[_0x15f1c6(0x2d0)],_0x53c266[_0x15f1c6(0x1a4)][_0x15f1c6(0x373)][_0x15f1c6(0x350)]+=_0x1966c6[_0x15f1c6(0x2d0)]+(_0x1966c6[_0x15f1c6(0x1ba)]||0x0);if(_0x49707a[_0x15f1c6(0x1cb)]>=_0x2e1b3e[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)][_0x15f1c6(0x1cb)]&&_0x48eb65[_0x15f1c6(0x1cb)]<_0x2e1b3e['params'][_0x15f1c6(0x1b6)][_0x15f1c6(0x1cb)]){const _0x4e6378=_0x48eb65['endColumn']-_0x48eb65[_0x15f1c6(0x1cb)]+0x1;_0x5afb88[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)]['startColumn']+=_0x4e6378,_0x5afb88[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)][_0x15f1c6(0x350)]+=_0x4e6378;}else{if(_0x49707a[_0x15f1c6(0x350)]<_0x2e1b3e[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)][_0x15f1c6(0x1cb)]&&_0x48eb65[_0x15f1c6(0x1cb)]>=_0x2e1b3e['params'][_0x15f1c6(0x1b6)][_0x15f1c6(0x1cb)]){const _0x322a32=_0x49707a['endColumn']-_0x49707a['startColumn']+0x1;_0x5afb88[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)]['startColumn']-=_0x322a32,_0x5afb88[_0x15f1c6(0x1a4)][_0x15f1c6(0x1b6)][_0x15f1c6(0x350)]-=_0x322a32;}}return{'m1Prime':_0x5afb88,'m2Prime':_0x53c266};}},insertColMutationWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x2e2cf3,_0x52381f){const _0x1b46e9=_0x151f3e,_0x3b620c={'m1Prime':_0x2e2cf3,'m2Prime':_0x52381f};if(_0x2e2cf3[_0x1b46e9(0x1a4)][_0x1b46e9(0x3a7)]!==_0x52381f[_0x1b46e9(0x1a4)][_0x1b46e9(0x3a7)]||_0x2e2cf3[_0x1b46e9(0x1a4)]['subUnitId']!==_0x52381f['params'][_0x1b46e9(0x3fc)][_0x1b46e9(0x2e9)]&&_0x2e2cf3[_0x1b46e9(0x1a4)]['subUnitId']!==_0x52381f[_0x1b46e9(0x1a4)]['to']['subUnitId'])return _0x3b620c;const _0x5efbc8=_univerjs_core[_0x1b46e9(0x1a6)][_0x1b46e9(0x3ce)](_0x2e2cf3),_0x26f84f=_univerjs_core[_0x1b46e9(0x1a6)][_0x1b46e9(0x3ce)](_0x52381f);if(_0x2e2cf3[_0x1b46e9(0x1a4)][_0x1b46e9(0x2e9)]===_0x52381f[_0x1b46e9(0x1a4)]['from'][_0x1b46e9(0x2e9)]){const _0x55e492=new _univerjs_core[(_0x1b46e9(0x2e2))](_0x26f84f['params'][_0x1b46e9(0x3fc)]['value'])[_0x1b46e9(0x25e)](),{startColumn:_0x2ed401,endColumn:_0xfcd3d1}=_0x55e492,{startColumn:_0x35c371,endColumn:_0x3d53ec}=_0x2e2cf3['params'][_0x1b46e9(0x1b6)],{step:_0x53ccf5,length:_0x3c2b34}=(0x0,_univerjs_sheets[_0x1b46e9(0x36a)])(_0x2e2cf3[_0x1b46e9(0x1a4)][_0x1b46e9(0x1b6)],_0x55e492);if(_0x53ccf5>0x0&&_0x3c2b34===0x0)moveColumns(_0x26f84f[_0x1b46e9(0x1a4)][_0x1b46e9(0x3fc)][_0x1b46e9(0x1df)],_0x2ed401,_0xfcd3d1-_0x2ed401+0x1,_0x53ccf5);if(_0x53ccf5===0x0&&_0x3c2b34>0x0)moveColumns(_0x26f84f['params'][_0x1b46e9(0x3fc)][_0x1b46e9(0x1df)],_0x35c371,_0xfcd3d1-_0x35c371+0x1,_0x3d53ec-_0x35c371+0x1);}if(_0x2e2cf3[_0x1b46e9(0x1a4)]['subUnitId']===_0x52381f[_0x1b46e9(0x1a4)]['to'][_0x1b46e9(0x2e9)]){const _0x13b19e=new _univerjs_core[(_0x1b46e9(0x2e2))](_0x26f84f['params']['to']['value'])[_0x1b46e9(0x25e)](),{startColumn:_0x2f2a45,endColumn:_0x59b40a}=_0x13b19e,{startColumn:_0x36a164,endColumn:_0x343097}=_0x2e2cf3['params'][_0x1b46e9(0x1b6)],{step:_0x354312,length:_0x5e1fb3}=(0x0,_univerjs_sheets[_0x1b46e9(0x36a)])(_0x2e2cf3['params']['range'],_0x13b19e);if(_0x354312>0x0&&_0x5e1fb3===0x0)moveColumns(_0x26f84f[_0x1b46e9(0x1a4)]['to'][_0x1b46e9(0x1df)],_0x2f2a45,_0x59b40a-_0x2f2a45+0x1,_0x354312);if(_0x354312===0x0&&_0x5e1fb3>0x0)moveColumns(_0x26f84f[_0x1b46e9(0x1a4)]['to'][_0x1b46e9(0x1df)],_0x36a164,_0x59b40a-_0x36a164+0x1,_0x343097-_0x36a164+0x1);}return{'m1Prime':_0x5efbc8,'m2Prime':_0x26f84f};}},insertColMutationWithRemoveCol={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler'(_0x34382e,_0xd36dfd){const _0x1a0d5b=_0x151f3e,_0x45a991={'m1Prime':_0x34382e,'m2Prime':_0xd36dfd};if(_0x34382e['params'][_0x1a0d5b(0x3a7)]!==_0xd36dfd[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x3a7)]||_0x34382e[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x2e9)]!==_0xd36dfd[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x2e9)])return _0x45a991;const _0x508583=_univerjs_core[_0x1a0d5b(0x1a6)][_0x1a0d5b(0x3ce)](_0x34382e),_0x23f87e=_univerjs_core['Tools']['deepClone'](_0xd36dfd);if(_0x34382e[_0x1a0d5b(0x1a4)]['range']['startColumn']<=_0xd36dfd[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)]['endColumn']&&_0x34382e[_0x1a0d5b(0x1a4)]['range']['startColumn']>_0xd36dfd[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)][_0x1a0d5b(0x1cb)])return{'error':new Error(_0x1a0d5b(0x229))};const _0x731c3c=(0x0,_univerjs_sheets[_0x1a0d5b(0x36a)])(toColumn(_0x34382e[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)]),toColumn(_0xd36dfd[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)]));if(_0x731c3c)_0x23f87e[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)][_0x1a0d5b(0x1cb)]+=_0x731c3c[_0x1a0d5b(0x2d0)],_0x23f87e['params'][_0x1a0d5b(0x1b6)]['endColumn']+=_0x731c3c[_0x1a0d5b(0x2d0)]+(_0x731c3c['length']||0x0);else _0x23f87e['id']=_univerjs_sheets[_0x1a0d5b(0x36d)]['id'];const _0x2f62c0=(0x0,_univerjs_sheets[_0x1a0d5b(0x31e)])(toColumn(_0xd36dfd['params'][_0x1a0d5b(0x1b6)]),toColumn(_0x34382e[_0x1a0d5b(0x1a4)]['range']));return _0x2f62c0&&(_0x508583[_0x1a0d5b(0x1a4)][_0x1a0d5b(0x1b6)][_0x1a0d5b(0x1cb)]+=_0x2f62c0['step'],_0x508583['params'][_0x1a0d5b(0x1b6)][_0x1a0d5b(0x350)]+=_0x2f62c0[_0x1a0d5b(0x2d0)]+(_0x2f62c0[_0x1a0d5b(0x1ba)]||0x0)),{'m1Prime':_0x508583,'m2Prime':_0x23f87e};}},insertColMutationWithRemoveNumfmt={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x2bf308,_0x5c4878){const _0x53ab36=_0x151f3e,_0x2c79e5={'m1Prime':_0x2bf308,'m2Prime':_0x5c4878};if(_0x2bf308[_0x53ab36(0x1a4)][_0x53ab36(0x3a7)]!==_0x5c4878[_0x53ab36(0x1a4)][_0x53ab36(0x3a7)]||_0x2bf308[_0x53ab36(0x1a4)][_0x53ab36(0x2e9)]!==_0x5c4878['params'][_0x53ab36(0x2e9)])return _0x2c79e5;const _0x3a1f5b=_univerjs_core['Tools'][_0x53ab36(0x3ce)](_0x2bf308),_0x12a778=_univerjs_core[_0x53ab36(0x1a6)][_0x53ab36(0x3ce)](_0x5c4878),{ranges:_0x36ff60}=_0x12a778['params'];if(_0x36ff60[_0x53ab36(0x3a1)](_0x476444=>{const _0x407c0a=_0x53ab36,_0x992efb=(0x0,_univerjs_sheets[_0x407c0a(0x36a)])(toColumn(_0x2bf308[_0x407c0a(0x1a4)][_0x407c0a(0x1b6)]),toColumn(_0x476444));if(_0x992efb[_0x407c0a(0x1ba)]!==0x0)return!![];return _0x476444['startColumn']+=_0x992efb[_0x407c0a(0x2d0)],_0x476444['endColumn']+=_0x992efb[_0x407c0a(0x2d0)],![];}))return{'error':new Error(_0x53ab36(0x1ee))};return{'m1Prime':_0x3a1f5b,'m2Prime':_0x12a778};}},insertColMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0x2b0a15,_0x1b3cb6){const _0x585b72=_0x151f3e,_0x19ca8e=_univerjs_core['Tools'][_0x585b72(0x3ce)](_0x2b0a15),_0x48e3e2=_univerjs_core[_0x585b72(0x1a6)][_0x585b72(0x3ce)](_0x1b3cb6);if(_0x2b0a15[_0x585b72(0x1a4)][_0x585b72(0x3a7)]!==_0x1b3cb6['params'][_0x585b72(0x3a7)]||_0x2b0a15[_0x585b72(0x1a4)]['subUnitId']!==_0x1b3cb6['params'][_0x585b72(0x2e9)])return{'m1Prime':_0x19ca8e,'m2Prime':_0x48e3e2};const _0x2affc2=_0x48e3e2['params'][_0x585b72(0x286)][_0x585b72(0x284)](_0x49c32d=>{const _0x1d17ce=_0x585b72,_0x7c455f=_0x19ca8e[_0x1d17ce(0x1a4)][_0x1d17ce(0x1b6)],_0x30c883=_0x7c455f[_0x1d17ce(0x350)]-_0x7c455f[_0x1d17ce(0x1cb)]+0x1;if(_0x7c455f['startColumn']<=_0x49c32d[_0x1d17ce(0x1cb)])return{..._0x49c32d,'startColumn':_0x49c32d[_0x1d17ce(0x1cb)]+_0x30c883,'endColumn':_0x49c32d[_0x1d17ce(0x350)]+_0x30c883};else{if(_0x7c455f[_0x1d17ce(0x1cb)]>_0x49c32d[_0x1d17ce(0x1cb)]&&_0x7c455f[_0x1d17ce(0x1cb)]<=_0x49c32d[_0x1d17ce(0x350)])return{..._0x49c32d,'endColumn':_0x49c32d[_0x1d17ce(0x350)]+_0x30c883};else return{..._0x49c32d};}});return _0x48e3e2[_0x585b72(0x1a4)][_0x585b72(0x286)]=_0x2affc2,{'m1Prime':_0x19ca8e,'m2Prime':_0x48e3e2};}},insertColMutationWithReorderRange={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x2841d3,_0x4a0e35){const _0x39f9db=_0x151f3e,_0x1e0f33={'m1Prime':_0x2841d3,'m2Prime':_0x4a0e35};if(_0x2841d3[_0x39f9db(0x1a4)][_0x39f9db(0x3a7)]!==_0x4a0e35[_0x39f9db(0x1a4)][_0x39f9db(0x3a7)]||_0x2841d3[_0x39f9db(0x1a4)][_0x39f9db(0x2e9)]!==_0x4a0e35[_0x39f9db(0x1a4)][_0x39f9db(0x2e9)])return _0x1e0f33;const _0x579a33=_univerjs_core['Tools'][_0x39f9db(0x3ce)](_0x4a0e35),_0x5f0371=(0x0,_univerjs_sheets[_0x39f9db(0x36a)])(toColumn(_0x2841d3[_0x39f9db(0x1a4)]['range']),toColumn(_0x4a0e35[_0x39f9db(0x1a4)][_0x39f9db(0x1b6)]));return _0x579a33[_0x39f9db(0x1a4)][_0x39f9db(0x1b6)]['startColumn']+=_0x5f0371['step'],_0x579a33['params'][_0x39f9db(0x1b6)][_0x39f9db(0x350)]+=_0x5f0371['step']+(_0x5f0371[_0x39f9db(0x1ba)]||0x0),{'m1Prime':_0x2841d3,'m2Prime':_0x579a33};}},insertColMutationWithSetColData={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x341)]['id'],'handler'(_0x1db2ef,_0x224d5c){const _0xf75c0c=_0x151f3e,_0x16ef91={'m1Prime':_0x1db2ef,'m2Prime':_0x224d5c};if(_0x1db2ef[_0xf75c0c(0x1a4)]['unitId']!==_0x224d5c[_0xf75c0c(0x1a4)]['unitId']||_0x1db2ef[_0xf75c0c(0x1a4)][_0xf75c0c(0x2e9)]!==_0x224d5c[_0xf75c0c(0x1a4)]['subUnitId'])return _0x16ef91;const _0x593af0=_univerjs_core['Tools']['deepClone'](_0x1db2ef),_0x1b2e74=_univerjs_core['Tools'][_0xf75c0c(0x3ce)](_0x224d5c),{columnData:_0x382ccb}=_0x1b2e74[_0xf75c0c(0x1a4)];for(let _0x9a48c7=_0x1db2ef[_0xf75c0c(0x1a4)][_0xf75c0c(0x1b6)]['startColumn'];_0x9a48c7<=_0x1db2ef[_0xf75c0c(0x1a4)][_0xf75c0c(0x1b6)][_0xf75c0c(0x350)];_0x9a48c7++)(0x0,_univerjs_core['insertMatrixArray'])(_0x9a48c7,void 0x0,_0x382ccb);return{'m1Prime':_0x593af0,'m2Prime':_0x1b2e74};}},insertColMutationWithSetColHidden={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x24a)]['id'],'handler'(_0x542914,_0x5831ed){const _0x6f4f88=_0x151f3e,_0x495a02={'m1Prime':_0x542914,'m2Prime':_0x5831ed};if(_0x542914['params'][_0x6f4f88(0x3a7)]!==_0x5831ed[_0x6f4f88(0x1a4)][_0x6f4f88(0x3a7)]||_0x542914[_0x6f4f88(0x1a4)][_0x6f4f88(0x2e9)]!==_0x5831ed[_0x6f4f88(0x1a4)][_0x6f4f88(0x2e9)])return _0x495a02;const _0x275d00=_univerjs_core['Tools'][_0x6f4f88(0x3ce)](_0x542914),_0x2896a9=_univerjs_core['Tools'][_0x6f4f88(0x3ce)](_0x5831ed),{ranges:_0x4ff78e}=_0x2896a9['params'];if(_0x4ff78e[_0x6f4f88(0x3a1)](_0x3fb0d6=>{const _0x578c87=_0x6f4f88,_0x264b33=(0x0,_univerjs_sheets[_0x578c87(0x36a)])(toColumn(_0x542914[_0x578c87(0x1a4)][_0x578c87(0x1b6)]),_0x3fb0d6);if(_0x264b33[_0x578c87(0x1ba)]!==0x0)return!![];return _0x3fb0d6['startColumn']+=_0x264b33['step'],_0x3fb0d6['endColumn']+=_0x264b33['step'],![];}))return{'error':new Error(_0x6f4f88(0x261))};return{'m1Prime':_0x275d00,'m2Prime':_0x2896a9};}},insertColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets['SetColVisibleMutation']['id'],'handler'(_0x15787b,_0x101adb){const _0x57de8f=_0x151f3e,_0x5bdcde={'m1Prime':_0x15787b,'m2Prime':_0x101adb};if(_0x15787b[_0x57de8f(0x1a4)][_0x57de8f(0x3a7)]!==_0x101adb[_0x57de8f(0x1a4)][_0x57de8f(0x3a7)]||_0x15787b[_0x57de8f(0x1a4)][_0x57de8f(0x2e9)]!==_0x101adb[_0x57de8f(0x1a4)][_0x57de8f(0x2e9)])return _0x5bdcde;const _0x5da43a=_univerjs_core[_0x57de8f(0x1a6)][_0x57de8f(0x3ce)](_0x15787b),_0x27e078=_univerjs_core[_0x57de8f(0x1a6)]['deepClone'](_0x101adb),{ranges:_0xd5be5a}=_0x27e078[_0x57de8f(0x1a4)];if(_0xd5be5a['some'](_0x1d9c39=>{const _0x1ce459=_0x57de8f,_0x1638e3=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x15787b[_0x1ce459(0x1a4)]['range']),_0x1d9c39);if(_0x1638e3[_0x1ce459(0x1ba)]!==0x0)return!![];return _0x1d9c39[_0x1ce459(0x1cb)]+=_0x1638e3[_0x1ce459(0x2d0)],_0x1d9c39['endColumn']+=_0x1638e3[_0x1ce459(0x2d0)],![];}))return{'error':new Error(_0x57de8f(0x376))};return{'m1Prime':_0x5da43a,'m2Prime':_0x27e078};}},insertColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x5989bb,_0x113896){const _0x3d5525=_0x151f3e,_0x33b379={'m1Prime':_0x5989bb,'m2Prime':_0x113896};if(_0x5989bb['params'][_0x3d5525(0x3a7)]!==_0x113896[_0x3d5525(0x1a4)][_0x3d5525(0x3a7)]||_0x5989bb[_0x3d5525(0x1a4)][_0x3d5525(0x2e9)]!==_0x113896['params'][_0x3d5525(0x2e9)])return _0x33b379;const _0x58e53d=[_univerjs_core['Tools']['deepClone'](_0x5989bb)],_0x3f96e8=_univerjs_core['Tools']['deepClone'](_0x113896),{values:_0x5c8bd8}=_0x3f96e8[_0x3d5525(0x1a4)],_0xc32d20=[];let _0x53d801=![];for(const _0x3b351d in _0x5c8bd8){const _0x279541=_0x5c8bd8[_0x3b351d];_0xc32d20[_0x3d5525(0x1c6)](..._0x279541['ranges']);if(_0x279541['ranges'][_0x3d5525(0x3a1)](_0x162009=>{const _0x261b1c=_0x3d5525,_0x5e2130=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x5989bb[_0x261b1c(0x1a4)][_0x261b1c(0x1b6)]),toColumn(_0x162009));if(_0x5e2130[_0x261b1c(0x1ba)]!==0x0)return!![];if(_0x5e2130[_0x261b1c(0x2d0)]!==0x0)_0x53d801=!![];return _0x162009['startColumn']+=_0x5e2130['step'],_0x162009[_0x261b1c(0x350)]+=_0x5e2130[_0x261b1c(0x2d0)],![];}))return{'error':new Error(_0x3d5525(0x394))};}if(_0x53d801){const _0x43ca4d={'id':_univerjs_sheets[_0x3d5525(0x2b1)]['id'],'params':{'unitId':_0x113896[_0x3d5525(0x1a4)]['unitId'],'subUnitId':_0x113896[_0x3d5525(0x1a4)][_0x3d5525(0x2e9)],'ranges':_0xc32d20}};_0x58e53d['push'](_0x43ca4d,_0x3f96e8);}return{'m1Prime':_0x58e53d,'m2Prime':_0x3f96e8};}},insertColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x3c7d53,_0x5eda89){const _0x102846=_0x151f3e,_0x5ba9c7={'m1Prime':_0x3c7d53,'m2Prime':_0x5eda89};if(_0x3c7d53[_0x102846(0x1a4)][_0x102846(0x3a7)]!==_0x5eda89[_0x102846(0x1a4)]['unitId']||_0x3c7d53[_0x102846(0x1a4)][_0x102846(0x2e9)]!==_0x5eda89[_0x102846(0x1a4)][_0x102846(0x2e9)])return _0x5ba9c7;const _0x218edd=[_univerjs_core['Tools']['deepClone'](_0x3c7d53)],_0x2e10dc=_univerjs_core[_0x102846(0x1a6)][_0x102846(0x3ce)](_0x5eda89),_0x2b6854=new _univerjs_core['ObjectMatrix'](_0x2e10dc[_0x102846(0x1a4)][_0x102846(0x30b)]),_0x39ab9e=_0x2b6854['getDataRange'](),_0x366da6=_0x3c7d53['params'][_0x102846(0x1b6)],_0xf1255=_0x366da6[_0x102846(0x350)]-_0x366da6[_0x102846(0x1cb)]+0x1;if(_0x2e10dc[_0x102846(0x1a4)]['cellValue']&&_0x366da6[_0x102846(0x1cb)]<=_0x39ab9e[_0x102846(0x350)]){const _0x35b310=Math[_0x102846(0x2db)](_0x39ab9e[_0x102846(0x1cb)],_0x366da6['startColumn']);moveColumns(_0x2e10dc['params'][_0x102846(0x30b)],_0x35b310,_0x39ab9e[_0x102846(0x350)]-_0x35b310+0x1,_0xf1255);}const _0x55061e=new _univerjs_core[(_0x102846(0x2e2))]();let _0x40e62d=![];_0x2b6854[_0x102846(0x22f)]((_0x4292ca,_0x3ff20d,_0xe75c5a)=>{const _0x1f1333=_0x102846;if(_0xe75c5a&&_0xe75c5a['f']){const _0x5adfcc=_0xe75c5a['f'];let _0x17aac7=![];const _0x4b3f12=processFormulaString(_0x3c7d53[_0x1f1333(0x1a4)][_0x1f1333(0x3a7)],_0x3c7d53[_0x1f1333(0x1a4)]['subUnitId'],_0x5adfcc,_0x1bd037=>{const _0x3e600b=_0x1f1333,_0x52cd81=(0x0,_univerjs_sheets[_0x3e600b(0x36a)])(toColumn(_0x3c7d53[_0x3e600b(0x1a4)]['range']),toColumn(_0x1bd037));return(_0x52cd81['step']!==0x0||_0x52cd81['length']!==0x0)&&(_0x17aac7=!![],_0x1bd037[_0x3e600b(0x1cb)]+=_0x52cd81['step'],_0x1bd037['endColumn']+=_0x52cd81['step']+_0x52cd81[_0x3e600b(0x1ba)]),_0x1bd037;});_0x17aac7&&(_0x40e62d=!![],_0xe75c5a['f']=_0x4b3f12,_0x55061e['setValue'](_0x4292ca,_0x3ff20d,{..._0xe75c5a}));}});if(_0x40e62d){const _0x57b918={'id':_univerjs_sheets[_0x102846(0x203)]['id'],'params':{'unitId':_0x5eda89['params']['unitId'],'subUnitId':_0x5eda89[_0x102846(0x1a4)][_0x102846(0x2e9)],'cellValue':_0x55061e['getMatrix']()}};_0x218edd[_0x102846(0x1c6)](_0x57b918);}return{'m1Prime':_0x218edd,'m2Prime':_0x2e10dc};}},insertColMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0x2d0525,_0x1a39f9){const _0x420e51=_0x151f3e,_0x1ffad0={'m1Prime':[],'m2Prime':[]};if(_0x2d0525['params'][_0x420e51(0x3a7)]!==_0x1a39f9[_0x420e51(0x1a4)][_0x420e51(0x3a7)]||_0x2d0525[_0x420e51(0x1a4)][_0x420e51(0x2e9)]!==_0x1a39f9[_0x420e51(0x1a4)]['subUnitId'])return _0x1ffad0;const _0x37d0c4=_univerjs_core[_0x420e51(0x1a6)]['deepClone'](_0x1a39f9);let _0x2198c6=![];_0x37d0c4[_0x420e51(0x1a4)][_0x420e51(0x198)][_0x420e51(0x3b5)](_0x580f9a=>{const _0x6aea70=_0x420e51,{range:_0x127d29,primary:_0x230bb8}=_0x580f9a,_0x49e1ad=(0x0,_univerjs_sheets[_0x6aea70(0x36a)])(toColumn(_0x2d0525[_0x6aea70(0x1a4)][_0x6aea70(0x1b6)]),toColumn(_0x127d29));if(_0x49e1ad[_0x6aea70(0x1ba)]||_0x49e1ad[_0x6aea70(0x2d0)]){_0x127d29[_0x6aea70(0x1cb)]+=_0x49e1ad[_0x6aea70(0x2d0)],_0x127d29[_0x6aea70(0x350)]+=_0x49e1ad[_0x6aea70(0x2d0)]+(_0x49e1ad[_0x6aea70(0x1ba)]||0x0);if(_0x230bb8){const _0xa68f61=(0x0,_univerjs_sheets[_0x6aea70(0x36a)])(toColumn(_0x2d0525['params'][_0x6aea70(0x1b6)]),toColumn(_0x230bb8));(_0xa68f61[_0x6aea70(0x1ba)]||_0xa68f61[_0x6aea70(0x2d0)])&&(_0x230bb8[_0x6aea70(0x1cb)]+=_0xa68f61[_0x6aea70(0x2d0)],_0x230bb8[_0x6aea70(0x350)]+=_0xa68f61[_0x6aea70(0x2d0)],_0x230bb8[_0x6aea70(0x19a)]+=_0xa68f61[_0x6aea70(0x2d0)]);}_0x2198c6=!![];}});if(_0x2198c6)_0x1ffad0[_0x420e51(0x1a7)][_0x420e51(0x1c6)](_0x37d0c4);return _0x1ffad0;}},insertColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'handler'(_0x528a5b,_0x4fcac2){const _0x1da21b=_0x151f3e,_0x42b9a6={'m1Prime':_0x528a5b,'m2Prime':_0x4fcac2};if(_0x528a5b[_0x1da21b(0x1a4)][_0x1da21b(0x3a7)]!==_0x4fcac2[_0x1da21b(0x1a4)]['unitId']||_0x528a5b[_0x1da21b(0x1a4)][_0x1da21b(0x2e9)]!==_0x4fcac2['params'][_0x1da21b(0x2e9)])return _0x42b9a6;const _0x3860db=_univerjs_core[_0x1da21b(0x1a6)]['deepClone'](_0x528a5b),_0x337c3e=_univerjs_core[_0x1da21b(0x1a6)][_0x1da21b(0x3ce)](_0x4fcac2),_0xef3875=handleInsert({'start':_0x528a5b[_0x1da21b(0x1a4)][_0x1da21b(0x1b6)][_0x1da21b(0x1cb)],'end':_0x528a5b[_0x1da21b(0x1a4)][_0x1da21b(0x1b6)]['endColumn']},{'start':_0x4fcac2[_0x1da21b(0x1a4)][_0x1da21b(0x2a8)],'end':_0x4fcac2[_0x1da21b(0x1a4)][_0x1da21b(0x2a8)]});if(_0x337c3e['params'][_0x1da21b(0x2a8)]===_0xef3875[_0x1da21b(0x2d5)])return _0x42b9a6;_0x337c3e[_0x1da21b(0x1a4)][_0x1da21b(0x2a8)]=_0xef3875['start'];if(_0x337c3e[_0x1da21b(0x1a4)][_0x1da21b(0x2b0)])_0x337c3e[_0x1da21b(0x1a4)]['criteria'][_0x1da21b(0x30d)]=_0xef3875[_0x1da21b(0x2d5)];const _0x4d3c9d=_univerjs_core[_0x1da21b(0x1a6)][_0x1da21b(0x3ce)](_0x4fcac2);return _0x4d3c9d['params']['criteria']=null,{'m1Prime':[_0x4d3c9d,_0x337c3e,_0x3860db],'m2Prime':[_0x337c3e]};}},insertColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x2d2ae0,_0x53c64c){const _0x4e3bd3=_0x151f3e,_0x5617be={'m1Prime':_0x2d2ae0,'m2Prime':_0x53c64c};if(_0x2d2ae0['params'][_0x4e3bd3(0x3a7)]!==_0x53c64c[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x3a7)]||_0x2d2ae0['params'][_0x4e3bd3(0x2e9)]!==_0x53c64c[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x2e9)])return _0x5617be;const _0x57634a=_univerjs_core[_0x4e3bd3(0x1a6)][_0x4e3bd3(0x3ce)](_0x2d2ae0),_0x589919=_univerjs_core[_0x4e3bd3(0x1a6)][_0x4e3bd3(0x3ce)](_0x53c64c),_0x4e6e6e=handleInsert({'start':_0x2d2ae0['params']['range'][_0x4e3bd3(0x1cb)],'end':_0x2d2ae0[_0x4e3bd3(0x1a4)]['range'][_0x4e3bd3(0x350)]},{'start':_0x53c64c[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)]['startColumn'],'end':_0x53c64c[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)][_0x4e3bd3(0x350)]});if(_0x589919[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)][_0x4e3bd3(0x1cb)]===_0x4e6e6e[_0x4e3bd3(0x2d5)]&&_0x589919[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)]['endColumn']===_0x4e6e6e[_0x4e3bd3(0x2c3)])return _0x5617be;return _0x589919[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)]['startColumn']=_0x4e6e6e[_0x4e3bd3(0x2d5)],_0x589919[_0x4e3bd3(0x1a4)][_0x4e3bd3(0x1b6)][_0x4e3bd3(0x350)]=_0x4e6e6e[_0x4e3bd3(0x2c3)],{'m1Prime':[_0x589919,_0x57634a],'m2Prime':[_0x589919]};}},insertColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'handler'(_0x421679,_0x4029a0){const _0x54b285=_0x151f3e,_0x2e6678={'m1Prime':_0x421679,'m2Prime':_0x4029a0};if(_0x421679['params'][_0x54b285(0x3a7)]!==_0x4029a0[_0x54b285(0x1a4)][_0x54b285(0x3a7)]||_0x421679['params'][_0x54b285(0x2e9)]!==_0x4029a0[_0x54b285(0x1a4)][_0x54b285(0x2e9)])return _0x2e6678;const _0x4f2239=_univerjs_core[_0x54b285(0x1a6)][_0x54b285(0x3ce)](_0x421679),_0x3ae073=_univerjs_core['Tools'][_0x54b285(0x3ce)](_0x4029a0),{ranges:_0x39d04a,colWidth:_0x324ed0}=_0x3ae073[_0x54b285(0x1a4)];if(_0x39d04a[_0x54b285(0x3a1)](_0x183bc6=>{const _0x21998d=_0x54b285,_0x42208e=(0x0,_univerjs_sheets[_0x21998d(0x36a)])(toColumn(_0x421679[_0x21998d(0x1a4)][_0x21998d(0x1b6)]),_0x183bc6);if(_0x42208e[_0x21998d(0x1ba)]!==0x0)return!![];return _0x183bc6[_0x21998d(0x1cb)]+=_0x42208e[_0x21998d(0x2d0)],_0x183bc6[_0x21998d(0x350)]+=_0x42208e[_0x21998d(0x2d0)],![];}))return{'error':new Error(_0x54b285(0x3bd))};if(typeof _0x324ed0!==_0x54b285(0x1da)){for(let _0x38351f=_0x421679[_0x54b285(0x1a4)][_0x54b285(0x1b6)][_0x54b285(0x1cb)];_0x38351f<=_0x421679['params'][_0x54b285(0x1b6)][_0x54b285(0x350)];_0x38351f++)(0x0,_univerjs_core['insertMatrixArray'])(_0x38351f,void 0x0,_0x324ed0);}return{'m1Prime':_0x4f2239,'m2Prime':_0x3ae073};}},transformUpdateCommentRefWithRefRange=(_0x33b9f1,_0x109cba)=>{const _0x14f4fc=_0x151f3e,_0x2496fa=(0x0,_univerjs_engine_formula[_0x14f4fc(0x3c8)])(_0x33b9f1[_0x14f4fc(0x1a4)]['payload'][_0x14f4fc(0x3ea)]),_0x5c3339=(0x0,_univerjs_sheets[_0x14f4fc(0x243)])({'startColumn':_0x2496fa[_0x14f4fc(0x1cd)],'endColumn':_0x2496fa[_0x14f4fc(0x1cd)],'startRow':_0x2496fa['row'],'endRow':_0x2496fa['row']},_0x109cba);if(!_0x5c3339)return[{'id':_univerjs_thread_comment[_0x14f4fc(0x29a)]['id'],'params':{..._0x33b9f1[_0x14f4fc(0x1a4)],'comment':void 0x0,'commentId':_0x33b9f1['params']['payload'][_0x14f4fc(0x228)]}}];const _0x13c89c=(0x0,_univerjs_engine_formula[_0x14f4fc(0x3ca)])(_0x5c3339);if(_0x13c89c===_0x33b9f1[_0x14f4fc(0x1a4)][_0x14f4fc(0x296)][_0x14f4fc(0x3ea)])return[];return[{'id':_univerjs_thread_comment[_0x14f4fc(0x2b8)]['id'],'params':{..._0x33b9f1[_0x14f4fc(0x1a4)],'comment':void 0x0,'payload':{'ref':_0x13c89c,'commentId':_0x33b9f1[_0x14f4fc(0x1a4)][_0x14f4fc(0x296)][_0x14f4fc(0x228)]}}}];},insertColWithUpdateCommentRef={'m1':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x5585b6,_0x330658)=>{const _0x100f10=_0x151f3e,_0x32befd={'m1Prime':_0x5585b6,'m2Prime':_0x330658};if(_0x5585b6[_0x100f10(0x1a4)][_0x100f10(0x3a7)]!==_0x330658['params']['unitId']||_0x5585b6[_0x100f10(0x1a4)][_0x100f10(0x2e9)]!==_0x330658[_0x100f10(0x1a4)][_0x100f10(0x2e9)])return _0x32befd;const _0x2dd5c5=transformUpdateCommentRefWithRefRange(_0x330658,{'id':_univerjs_sheets[_0x100f10(0x32f)]['id'],'params':{'unitId':_0x5585b6[_0x100f10(0x1a4)][_0x100f10(0x3a7)],'subUnitId':_0x5585b6[_0x100f10(0x1a4)]['subUnitId'],'range':_0x5585b6[_0x100f10(0x1a4)][_0x100f10(0x1b6)]}});return{'m1Prime':[_0x5585b6,..._0x2dd5c5],'m2Prime':[_0x330658,..._0x2dd5c5]};}};function transformUpdateDataValidationWithRefRange(_0x2b1383,_0xffe720){const _0x268521=_0x151f3e,{payload:_0x1b5eff,unitId:_0x193ca3,subUnitId:_0x24e939,ruleId:_0x54ab59}=_0x2b1383['params'];switch(_0x1b5eff['type']){case _univerjs_data_validation['UpdateRuleType'][_0x268521(0x3a3)]:{const _0x4d3a33=_0x1b5eff[_0x268521(0x296)][_0x268521(0x284)](_0x50e095=>(0x0,_univerjs_sheets[_0x268521(0x1e1)])(_0x50e095,_0xffe720))[_0x268521(0x324)](Boolean)[_0x268521(0x2ea)]();if(!(0x0,_univerjs_core[_0x268521(0x3d3)])(_0x4d3a33,_0x1b5eff['payload']))return[{'id':_univerjs_data_validation[_0x268521(0x2cf)]['id'],'params':{'unitId':_0x193ca3,'subUnitId':_0x24e939,'ruleId':_0x54ab59,'payload':{'type':_univerjs_data_validation[_0x268521(0x2f4)][_0x268521(0x3a3)],'payload':_0x4d3a33}}}];break;}case _univerjs_data_validation[_0x268521(0x2f4)][_0x268521(0x23a)]:{var _0x4a903d,_0x346e2d;const _0x46a2eb=_0x57471b=>{return processFormulaString(_0x193ca3,_0x24e939,_0x57471b,_0x301565=>{const _0x13ca44=_0x62e3;return(0x0,_univerjs_sheets[_0x13ca44(0x243)])(_0x301565,_0xffe720);});},_0x383bff=(_0x4a903d=_0x1b5eff[_0x268521(0x296)][_0x268521(0x38d)])!==null&&_0x4a903d!==void 0x0?_0x4a903d:'',_0x3777e7=(_0x346e2d=_0x1b5eff[_0x268521(0x296)][_0x268521(0x3c1)])!==null&&_0x346e2d!==void 0x0?_0x346e2d:'';let _0x294af2=_0x383bff,_0x190154=_0x3777e7;if((0x0,_univerjs_core[_0x268521(0x20f)])(_0x383bff))_0x294af2=_0x46a2eb(_0x383bff);if((0x0,_univerjs_core[_0x268521(0x20f)])(_0x3777e7))_0x190154=_0x46a2eb(_0x3777e7);if(_0x294af2!==_0x383bff||_0x190154!==_0x3777e7)return[{'id':_univerjs_data_validation[_0x268521(0x2cf)]['id'],'params':{'unitId':_0x193ca3,'subUnitId':_0x24e939,'ruleId':_0x54ab59,'payload':{'type':_univerjs_data_validation[_0x268521(0x2f4)][_0x268521(0x23a)],'payload':{'type':_0x1b5eff['payload'][_0x268521(0x38b)],'formula1':_0x294af2,'formula2':_0x190154}}}}];break;}default:break;}return[];}const moveColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x5bfb6f,_0x573cd4)=>{const _0x334e11=_0x151f3e,_0x22612c={'m1Prime':_0x5bfb6f,'m2Prime':_0x573cd4};if(_0x5bfb6f[_0x334e11(0x1a4)][_0x334e11(0x3a7)]!==_0x573cd4['params']['unitId']||_0x573cd4['params'][_0x334e11(0x2e9)]!==_0x5bfb6f[_0x334e11(0x1a4)]['subUnitId'])return _0x22612c;const _0xf0ab90=transformUpdateDataValidationWithRefRange(_0x573cd4,{'id':_univerjs_sheets[_0x334e11(0x396)]['id'],'params':{'fromRange':_0x5bfb6f[_0x334e11(0x1a4)]['sourceRange'],'toRange':_0x5bfb6f[_0x334e11(0x1a4)][_0x334e11(0x373)]}});return{'m1Prime':[_0x5bfb6f,..._0xf0ab90],'m2Prime':[_0x573cd4,..._0xf0ab90]};}},insertColMutationWithUpdateDataValidation={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x2f5ea3,_0x21b5db)=>{const _0xbcede=_0x151f3e,_0x271c3e={'m1Prime':_0x2f5ea3,'m2Prime':_0x21b5db};if(_0x2f5ea3[_0xbcede(0x1a4)][_0xbcede(0x3a7)]!==_0x21b5db[_0xbcede(0x1a4)][_0xbcede(0x3a7)]||_0x21b5db['params'][_0xbcede(0x2e9)]!==_0x2f5ea3[_0xbcede(0x1a4)][_0xbcede(0x2e9)])return _0x271c3e;const _0x30f7d3=transformUpdateDataValidationWithRefRange(_0x21b5db,{'id':_univerjs_sheets[_0xbcede(0x32f)]['id'],'params':{'unitId':_0x2f5ea3[_0xbcede(0x1a4)][_0xbcede(0x3a7)],'subUnitId':_0x2f5ea3[_0xbcede(0x1a4)][_0xbcede(0x2e9)],'range':_0x2f5ea3[_0xbcede(0x1a4)][_0xbcede(0x1b6)]}});return{'m1Prime':[_0x2f5ea3,..._0x30f7d3],'m2Prime':[_0x21b5db,..._0x30f7d3]};}},insertRowWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x1756aa,_0x3f3c14)=>{const _0x2c3a6b=_0x151f3e,_0x184161={'m1Prime':_0x1756aa,'m2Prime':_0x3f3c14};if(_0x1756aa[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x3a7)]!==_0x3f3c14[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x3a7)]||_0x1756aa['params']['subUnitId']!==_0x3f3c14[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x2e9)])return _0x184161;const _0x2e1609=transformAddCommentWithRefRange(_0x3f3c14,{'id':_univerjs_sheets['InsertRowCommand']['id'],'params':{'unitId':_0x1756aa[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x3a7)],'subUnitId':_0x1756aa[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x2e9)],'range':_0x1756aa[_0x2c3a6b(0x1a4)][_0x2c3a6b(0x1b6)]}});return{'m1Prime':[_0x1756aa,..._0x2e1609],'m2Prime':[_0x3f3c14,..._0x2e1609]};}},insertRowMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x50c325,_0x2008a9){const _0x885e28=_0x151f3e,_0x4669f7=addWorksheetMergeMutationWithInsertRowMutation[_0x885e28(0x303)](_0x2008a9,_0x50c325);if(isTransformMutationSuccess(_0x4669f7))return{'m1Prime':_0x4669f7[_0x885e28(0x1a7)],'m2Prime':_0x4669f7[_0x885e28(0x28a)]};else return _0x4669f7;}},insertRowMutationWithSelf={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler'(_0x712169,_0x4c791c){const _0x26a778=_0x151f3e,_0x42c6c9={'m1Prime':_0x712169,'m2Prime':_0x4c791c};if(_0x712169[_0x26a778(0x1a4)]['unitId']!==_0x4c791c['params']['unitId']||_0x712169[_0x26a778(0x1a4)]['subUnitId']!==_0x4c791c[_0x26a778(0x1a4)][_0x26a778(0x2e9)])return _0x42c6c9;const _0x503061=_univerjs_core['Tools'][_0x26a778(0x3ce)](_0x712169),_0x2b2118=_univerjs_core[_0x26a778(0x1a6)][_0x26a778(0x3ce)](_0x4c791c),_0x428aee=(0x0,_univerjs_sheets[_0x26a778(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x26a778(0x225)])(_0x712169[_0x26a778(0x1a4)][_0x26a778(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4c791c['params']['range'])));if(_0x428aee)_0x2b2118['params'][_0x26a778(0x1b6)][_0x26a778(0x1e8)]+=_0x428aee['step'],_0x2b2118[_0x26a778(0x1a4)][_0x26a778(0x1b6)]['endRow']+=_0x428aee[_0x26a778(0x2d0)]+(_0x428aee[_0x26a778(0x1ba)]||0x0);else _0x2b2118['id']=_univerjs_sheets[_0x26a778(0x36d)]['id'];if(_0x712169[_0x26a778(0x1a4)][_0x26a778(0x1b6)][_0x26a778(0x1e8)]!==_0x4c791c[_0x26a778(0x1a4)][_0x26a778(0x1b6)]['startRow']){const _0x564ac9=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x26a778(0x225)])(_0x4c791c['params'][_0x26a778(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x712169[_0x26a778(0x1a4)][_0x26a778(0x1b6)])));if(_0x564ac9)_0x503061['params'][_0x26a778(0x1b6)][_0x26a778(0x1e8)]+=_0x564ac9[_0x26a778(0x2d0)],_0x503061[_0x26a778(0x1a4)][_0x26a778(0x1b6)][_0x26a778(0x342)]+=_0x564ac9[_0x26a778(0x2d0)]+(_0x564ac9['length']||0x0);else _0x503061['id']=_univerjs_sheets[_0x26a778(0x36d)]['id'];}return{'m1Prime':_0x503061,'m2Prime':_0x2b2118};}},insertRowMutationWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x5bb3ed,_0x3004d9){const _0x57d775=_0x151f3e,_0x50ffdf={'m1Prime':_0x5bb3ed,'m2Prime':_0x3004d9};if(_0x5bb3ed[_0x57d775(0x1a4)][_0x57d775(0x3a7)]!==_0x3004d9['params'][_0x57d775(0x3a7)]||_0x5bb3ed[_0x57d775(0x1a4)]['subUnitId']!==_0x3004d9['params'][_0x57d775(0x3fc)][_0x57d775(0x2e9)]&&_0x5bb3ed[_0x57d775(0x1a4)]['subUnitId']!==_0x3004d9[_0x57d775(0x1a4)]['to']['subUnitId'])return _0x50ffdf;const _0x22efe8=_univerjs_core[_0x57d775(0x1a6)][_0x57d775(0x3ce)](_0x5bb3ed),_0x52b843=_univerjs_core[_0x57d775(0x1a6)][_0x57d775(0x3ce)](_0x3004d9);if(_0x5bb3ed['params'][_0x57d775(0x2e9)]===_0x3004d9[_0x57d775(0x1a4)]['from'][_0x57d775(0x2e9)]){const _0x9f7465=new _univerjs_core[(_0x57d775(0x2e2))](_0x52b843['params'][_0x57d775(0x3fc)][_0x57d775(0x1df)])['getDataRange'](),{startRow:_0x426bf9,endRow:_0x38f880}=_0x9f7465,{startRow:_0xa50105,endRow:_0x543ccd}=_0x5bb3ed[_0x57d775(0x1a4)]['range'],{step:_0x27c3c9,length:_0x975150}=(0x0,_univerjs_sheets[_0x57d775(0x36a)])((0x0,_univerjs_sheets[_0x57d775(0x225)])(_0x5bb3ed[_0x57d775(0x1a4)][_0x57d775(0x1b6)]),(0x0,_univerjs_sheets[_0x57d775(0x225)])(_0x9f7465));if(_0x27c3c9>0x0&&_0x975150===0x0)moveRows(_0x52b843[_0x57d775(0x1a4)][_0x57d775(0x3fc)][_0x57d775(0x1df)],_0x426bf9,_0x38f880-_0x426bf9+0x1,_0x27c3c9);if(_0x27c3c9===0x0&&_0x975150>0x0)moveRows(_0x52b843['params']['from'][_0x57d775(0x1df)],_0xa50105,_0x38f880-_0xa50105+0x1,_0x543ccd-_0xa50105+0x1);}if(_0x5bb3ed[_0x57d775(0x1a4)][_0x57d775(0x2e9)]===_0x3004d9[_0x57d775(0x1a4)]['to'][_0x57d775(0x2e9)]){const _0x5e7544=new _univerjs_core[(_0x57d775(0x2e2))](_0x3004d9[_0x57d775(0x1a4)]['to'][_0x57d775(0x1df)])[_0x57d775(0x25e)](),{startRow:_0x125123,endRow:_0x7d83}=_0x5e7544,{startRow:_0x5a3dc7,endRow:_0x528acf}=_0x5bb3ed[_0x57d775(0x1a4)][_0x57d775(0x1b6)],{step:_0x436e63,length:_0x27cfb5}=(0x0,_univerjs_sheets[_0x57d775(0x36a)])((0x0,_univerjs_sheets[_0x57d775(0x225)])(_0x5bb3ed[_0x57d775(0x1a4)][_0x57d775(0x1b6)]),(0x0,_univerjs_sheets[_0x57d775(0x225)])(_0x5e7544));if(_0x436e63>0x0&&_0x27cfb5===0x0)moveRows(_0x52b843[_0x57d775(0x1a4)]['to'][_0x57d775(0x1df)],_0x125123,_0x7d83-_0x125123+0x1,_0x436e63);if(_0x436e63===0x0&&_0x27cfb5>0x0)moveRows(_0x52b843[_0x57d775(0x1a4)]['to'][_0x57d775(0x1df)],_0x5a3dc7,_0x7d83-_0x5a3dc7+0x1,_0x528acf-_0x5a3dc7+0x1);}return{'m1Prime':_0x22efe8,'m2Prime':_0x52b843};}},insertRowMutationWithMoveRow={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler'(_0x12c2a0,_0x1fc608){const _0x487144=_0x151f3e,_0x3d6192={'m1Prime':_0x12c2a0,'m2Prime':_0x1fc608};if(_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x3a7)]!==_0x1fc608['params'][_0x487144(0x3a7)]||_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x2e9)]!==_0x1fc608[_0x487144(0x1a4)][_0x487144(0x2e9)])return _0x3d6192;const _0x234755=_univerjs_core[_0x487144(0x1a6)][_0x487144(0x3ce)](_0x12c2a0),_0x1f12ab=_univerjs_core[_0x487144(0x1a6)][_0x487144(0x3ce)](_0x1fc608),_0xdb2e18=_0x1fc608[_0x487144(0x1a4)]['sourceRange'],_0x839801=_0x1fc608['params']['targetRange'];if(_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x1e8)]>_0xdb2e18[_0x487144(0x1e8)]&&_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)]['startRow']<=_0xdb2e18[_0x487144(0x342)]||_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x1e8)]>_0x839801[_0x487144(0x1e8)]&&_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)]['startRow']<=_0x839801[_0x487144(0x342)])return{'error':new Error(_0x487144(0x352))};const _0x10c7ae=(0x0,_univerjs_sheets[_0x487144(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x487144(0x225)])(_0x12c2a0['params']['range'])),toColumn((0x0,_univerjs_sheets[_0x487144(0x225)])(_0xdb2e18))),_0x156660=(0x0,_univerjs_sheets[_0x487144(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x487144(0x225)])(_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x839801)));_0x1f12ab[_0x487144(0x1a4)][_0x487144(0x195)][_0x487144(0x1e8)]+=_0x10c7ae[_0x487144(0x2d0)],_0x1f12ab[_0x487144(0x1a4)][_0x487144(0x195)]['endRow']+=_0x10c7ae['step']+(_0x10c7ae['length']||0x0),_0x1f12ab[_0x487144(0x1a4)][_0x487144(0x373)][_0x487144(0x1e8)]+=_0x156660[_0x487144(0x2d0)],_0x1f12ab[_0x487144(0x1a4)][_0x487144(0x373)][_0x487144(0x342)]+=_0x156660[_0x487144(0x2d0)]+(_0x156660[_0x487144(0x1ba)]||0x0);if(_0xdb2e18[_0x487144(0x1e8)]>=_0x12c2a0['params'][_0x487144(0x1b6)][_0x487144(0x1e8)]&&_0x839801[_0x487144(0x1e8)]<_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x1e8)]){const _0x1046c4=_0x839801['endRow']-_0x839801['startRow']+0x1;_0x234755[_0x487144(0x1a4)][_0x487144(0x1b6)]['startRow']+=_0x1046c4,_0x234755[_0x487144(0x1a4)][_0x487144(0x1b6)]['endRow']+=_0x1046c4;}else{if(_0xdb2e18[_0x487144(0x342)]<_0x12c2a0[_0x487144(0x1a4)]['range'][_0x487144(0x1e8)]&&_0x839801[_0x487144(0x1e8)]>=_0x12c2a0[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x1e8)]){const _0xb1062f=_0xdb2e18[_0x487144(0x342)]-_0xdb2e18[_0x487144(0x1e8)]+0x1;_0x234755[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x1e8)]-=_0xb1062f,_0x234755[_0x487144(0x1a4)][_0x487144(0x1b6)][_0x487144(0x342)]-=_0xb1062f;}}return{'m1Prime':_0x234755,'m2Prime':_0x1f12ab};}},insertRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x3c46d3,_0xef73ea){const _0x268bc7=_0x151f3e,_0x4d17ec={'m1Prime':_0x3c46d3,'m2Prime':_0xef73ea};if(_0x3c46d3['params'][_0x268bc7(0x3a7)]!==_0xef73ea[_0x268bc7(0x1a4)][_0x268bc7(0x3a7)]||_0x3c46d3[_0x268bc7(0x1a4)]['subUnitId']!==_0xef73ea['params'][_0x268bc7(0x2e9)])return _0x4d17ec;const _0x203e9b=_univerjs_core[_0x268bc7(0x1a6)][_0x268bc7(0x3ce)](_0x3c46d3),_0x39d5d0=_univerjs_core[_0x268bc7(0x1a6)][_0x268bc7(0x3ce)](_0xef73ea),{ranges:_0x27653e}=_0x39d5d0[_0x268bc7(0x1a4)];if(_0x27653e[_0x268bc7(0x3a1)](_0x2e959f=>{const _0x3fd2e9=_0x268bc7,_0x22f8e0=(0x0,_univerjs_sheets[_0x3fd2e9(0x36a)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3c46d3[_0x3fd2e9(0x1a4)][_0x3fd2e9(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x3fd2e9(0x225)])(_0x2e959f)));if(_0x22f8e0['length']!==0x0)return!![];return _0x2e959f[_0x3fd2e9(0x1e8)]+=_0x22f8e0[_0x3fd2e9(0x2d0)],_0x2e959f[_0x3fd2e9(0x342)]+=_0x22f8e0[_0x3fd2e9(0x2d0)],![];}))return{'error':new Error(_0x268bc7(0x246))};return{'m1Prime':_0x203e9b,'m2Prime':_0x39d5d0};}},insertRowMutationWithRemoveRow={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x49a574,_0x46e4d9){const _0x6f54d1=_0x151f3e,_0x414f01={'m1Prime':_0x49a574,'m2Prime':_0x46e4d9};if(_0x49a574[_0x6f54d1(0x1a4)][_0x6f54d1(0x3a7)]!==_0x46e4d9[_0x6f54d1(0x1a4)][_0x6f54d1(0x3a7)]||_0x49a574['params'][_0x6f54d1(0x2e9)]!==_0x46e4d9[_0x6f54d1(0x1a4)]['subUnitId'])return _0x414f01;const _0x4a3a39=_univerjs_core[_0x6f54d1(0x1a6)][_0x6f54d1(0x3ce)](_0x49a574),_0x44ba8f=_univerjs_core[_0x6f54d1(0x1a6)][_0x6f54d1(0x3ce)](_0x46e4d9);if(_0x49a574[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)]['startRow']<=_0x46e4d9[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)][_0x6f54d1(0x342)]&&_0x49a574[_0x6f54d1(0x1a4)]['range']['startRow']>_0x46e4d9[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)]['startRow'])return{'error':new Error(_0x6f54d1(0x229))};const _0x4b0904=(0x0,_univerjs_sheets[_0x6f54d1(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x6f54d1(0x225)])(_0x49a574[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x6f54d1(0x225)])(_0x46e4d9[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)])));if(_0x4b0904)_0x44ba8f[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)][_0x6f54d1(0x1e8)]+=_0x4b0904[_0x6f54d1(0x2d0)],_0x44ba8f[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)][_0x6f54d1(0x342)]+=_0x4b0904[_0x6f54d1(0x2d0)]+(_0x4b0904[_0x6f54d1(0x1ba)]||0x0);else _0x44ba8f['id']=_univerjs_sheets[_0x6f54d1(0x36d)]['id'];const _0x40de07=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x46e4d9[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x6f54d1(0x225)])(_0x49a574[_0x6f54d1(0x1a4)][_0x6f54d1(0x1b6)])));return _0x40de07&&(_0x4a3a39['params'][_0x6f54d1(0x1b6)][_0x6f54d1(0x1e8)]+=_0x40de07[_0x6f54d1(0x2d0)],_0x4a3a39['params'][_0x6f54d1(0x1b6)][_0x6f54d1(0x342)]+=_0x40de07[_0x6f54d1(0x2d0)]+(_0x40de07['length']||0x0)),{'m1Prime':_0x4a3a39,'m2Prime':_0x44ba8f};}},insertRowMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0x5152f4,_0x2c38f8){const _0x4ec783=_0x151f3e,_0x15b146=_univerjs_core[_0x4ec783(0x1a6)][_0x4ec783(0x3ce)](_0x5152f4),_0x43ddbb=_univerjs_core['Tools']['deepClone'](_0x2c38f8);if(_0x5152f4['params'][_0x4ec783(0x3a7)]!==_0x2c38f8[_0x4ec783(0x1a4)][_0x4ec783(0x3a7)]||_0x5152f4[_0x4ec783(0x1a4)][_0x4ec783(0x2e9)]!==_0x2c38f8[_0x4ec783(0x1a4)][_0x4ec783(0x2e9)])return{'m1Prime':_0x15b146,'m2Prime':_0x43ddbb};const _0x1e2dd9=_0x43ddbb[_0x4ec783(0x1a4)][_0x4ec783(0x286)][_0x4ec783(0x284)](_0x12b405=>{const _0x4f603f=_0x4ec783,_0x28095a=_0x15b146[_0x4f603f(0x1a4)]['range'],_0x45fd53=_0x28095a[_0x4f603f(0x342)]-_0x28095a['startRow']+0x1;if(_0x28095a[_0x4f603f(0x1e8)]<=_0x12b405[_0x4f603f(0x1e8)])return{..._0x12b405,'startRow':_0x12b405[_0x4f603f(0x1e8)]+_0x45fd53,'endRow':_0x12b405['endRow']+_0x45fd53};else{if(_0x28095a[_0x4f603f(0x1e8)]>_0x12b405[_0x4f603f(0x1e8)]&&_0x28095a[_0x4f603f(0x1e8)]<=_0x12b405[_0x4f603f(0x342)])return{..._0x12b405,'endRow':_0x12b405[_0x4f603f(0x342)]+_0x45fd53};else return{..._0x12b405};}});return _0x43ddbb[_0x4ec783(0x1a4)][_0x4ec783(0x286)]=_0x1e2dd9,{'m1Prime':_0x15b146,'m2Prime':_0x43ddbb};}},insertRowMutationWithReorderRange={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets['ReorderRangeMutation']['id'],'handler'(_0x57a96e,_0x510539){const _0x5e56d4=_0x151f3e,_0x17d6c1={'m1Prime':_0x57a96e,'m2Prime':_0x510539};if(_0x57a96e[_0x5e56d4(0x1a4)][_0x5e56d4(0x3a7)]!==_0x510539[_0x5e56d4(0x1a4)][_0x5e56d4(0x3a7)]||_0x57a96e['params'][_0x5e56d4(0x2e9)]!==_0x510539[_0x5e56d4(0x1a4)]['subUnitId'])return _0x17d6c1;const _0x17f630=_univerjs_core[_0x5e56d4(0x1a6)]['deepClone'](_0x510539),_0x29b0a9=(0x0,_univerjs_sheets[_0x5e56d4(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x5e56d4(0x225)])(_0x57a96e[_0x5e56d4(0x1a4)]['range'])),toColumn((0x0,_univerjs_sheets[_0x5e56d4(0x225)])(_0x510539['params'][_0x5e56d4(0x1b6)])));_0x17f630[_0x5e56d4(0x1a4)][_0x5e56d4(0x1b6)][_0x5e56d4(0x1e8)]+=_0x29b0a9[_0x5e56d4(0x2d0)],_0x17f630[_0x5e56d4(0x1a4)][_0x5e56d4(0x1b6)][_0x5e56d4(0x342)]+=_0x29b0a9['step']+(_0x29b0a9[_0x5e56d4(0x1ba)]||0x0);const _0x11e2ca=_0x57a96e[_0x5e56d4(0x1a4)][_0x5e56d4(0x1b6)][_0x5e56d4(0x1e8)],_0x2246ac=_0x57a96e['params']['range']['endRow']-_0x57a96e[_0x5e56d4(0x1a4)][_0x5e56d4(0x1b6)][_0x5e56d4(0x1e8)]+0x1,_0x3d4223={};for(const _0x328e64 in _0x510539[_0x5e56d4(0x1a4)]['order']){let _0x5f42b9=Number(_0x328e64),_0x3efea7=_0x510539['params'][_0x5e56d4(0x282)][_0x328e64];_0x5f42b9=orderMap$1(_0x11e2ca,_0x2246ac,_0x5f42b9),_0x3efea7=orderMap$1(_0x11e2ca,_0x2246ac,_0x3efea7),_0x3d4223[_0x5f42b9]=_0x3efea7;}return _0x17f630[_0x5e56d4(0x1a4)][_0x5e56d4(0x282)]=_0x3d4223,{'m1Prime':_0x57a96e,'m2Prime':_0x17f630};}},orderMap$1=(_0xf393c3,_0x4294dd,_0x394f98)=>{if(_0x394f98>=_0xf393c3)return _0x394f98+_0x4294dd;return _0x394f98;},insertRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler'(_0x2c3188,_0x1156c6){const _0xc47df4=_0x151f3e,_0x18101a={'m1Prime':_0x2c3188,'m2Prime':_0x1156c6};if(_0x2c3188[_0xc47df4(0x1a4)]['unitId']!==_0x1156c6[_0xc47df4(0x1a4)][_0xc47df4(0x3a7)]||_0x2c3188[_0xc47df4(0x1a4)][_0xc47df4(0x2e9)]!==_0x1156c6['params'][_0xc47df4(0x2e9)])return _0x18101a;const _0x47f77e=[_univerjs_core[_0xc47df4(0x1a6)][_0xc47df4(0x3ce)](_0x2c3188)],_0x5d28be=_univerjs_core[_0xc47df4(0x1a6)][_0xc47df4(0x3ce)](_0x1156c6),{values:_0x527933}=_0x5d28be[_0xc47df4(0x1a4)],_0x52b568=[];let _0x63b745=![];for(const _0x1c305d in _0x527933){const _0x5cb4aa=_0x527933[_0x1c305d];_0x52b568[_0xc47df4(0x1c6)](..._0x5cb4aa['ranges']);if(_0x5cb4aa[_0xc47df4(0x286)][_0xc47df4(0x3a1)](_0x2d871a=>{const _0x567969=_0xc47df4,_0x17a0c5=(0x0,_univerjs_sheets[_0x567969(0x36a)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x2c3188['params'][_0x567969(0x1b6)])),(0x0,_univerjs_sheets['rotateRange'])(toColumn(_0x2d871a)));if(_0x17a0c5[_0x567969(0x1ba)]!==0x0)return!![];if(_0x17a0c5[_0x567969(0x2d0)]!==0x0)_0x63b745=!![];return _0x2d871a['startRow']+=_0x17a0c5['step'],_0x2d871a['endRow']+=_0x17a0c5[_0x567969(0x2d0)],![];}))return{'error':new Error(_0xc47df4(0x2ac))};}if(_0x63b745){const _0x476851={'id':_univerjs_sheets[_0xc47df4(0x2b1)]['id'],'params':{'unitId':_0x1156c6[_0xc47df4(0x1a4)]['unitId'],'subUnitId':_0x1156c6[_0xc47df4(0x1a4)]['subUnitId'],'ranges':_0x52b568}};_0x47f77e[_0xc47df4(0x1c6)](_0x476851,_0x5d28be);}return{'m1Prime':_0x47f77e,'m2Prime':_0x5d28be};}},insertRowMutationWithSetRangeValues={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x294680,_0x15648a){const _0xe63ef3=_0x151f3e,_0x1473fe={'m1Prime':_0x294680,'m2Prime':_0x15648a};if(_0x294680['params'][_0xe63ef3(0x3a7)]!==_0x15648a[_0xe63ef3(0x1a4)][_0xe63ef3(0x3a7)]||_0x294680[_0xe63ef3(0x1a4)][_0xe63ef3(0x2e9)]!==_0x15648a[_0xe63ef3(0x1a4)][_0xe63ef3(0x2e9)])return _0x1473fe;const _0x47eb28=[_univerjs_core[_0xe63ef3(0x1a6)]['deepClone'](_0x294680)],_0x28cc90=_univerjs_core[_0xe63ef3(0x1a6)][_0xe63ef3(0x3ce)](_0x15648a),_0x406798=new _univerjs_core[(_0xe63ef3(0x2e2))](_0x28cc90[_0xe63ef3(0x1a4)][_0xe63ef3(0x30b)]),_0x1133e4=_0x406798['getDataRange'](),_0x346b03=_0x294680[_0xe63ef3(0x1a4)][_0xe63ef3(0x1b6)],_0x3633b1=_0x346b03[_0xe63ef3(0x342)]-_0x346b03[_0xe63ef3(0x1e8)]+0x1;if(_0x28cc90['params'][_0xe63ef3(0x30b)]&&_0x346b03[_0xe63ef3(0x1e8)]<=_0x1133e4[_0xe63ef3(0x342)]){const _0x41c3fa=Math['max'](_0x1133e4[_0xe63ef3(0x1e8)],_0x346b03[_0xe63ef3(0x1e8)]);moveRows(_0x28cc90[_0xe63ef3(0x1a4)][_0xe63ef3(0x30b)],_0x41c3fa,_0x1133e4[_0xe63ef3(0x342)]-_0x41c3fa+0x1,_0x3633b1);}const _0x3d608a=new _univerjs_core[(_0xe63ef3(0x2e2))]();let _0x24ea13=![];_0x406798['forValue']((_0x1c48f8,_0xfafd4b,_0x4c08bf)=>{const _0x314fe3=_0xe63ef3;if(_0x4c08bf&&_0x4c08bf['f']){const _0x45a2d3=_0x4c08bf['f'];let _0x8c4805=![];const _0x1036d7=processFormulaString(_0x294680[_0x314fe3(0x1a4)][_0x314fe3(0x3a7)],_0x294680[_0x314fe3(0x1a4)][_0x314fe3(0x2e9)],_0x45a2d3,_0x4b54af=>{const _0x1122a0=_0x314fe3,_0x40009c=(0x0,_univerjs_sheets[_0x1122a0(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x1122a0(0x225)])(_0x294680[_0x1122a0(0x1a4)][_0x1122a0(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x1122a0(0x225)])(_0x4b54af)));return(_0x40009c[_0x1122a0(0x2d0)]!==0x0||_0x40009c[_0x1122a0(0x1ba)]!==0x0)&&(_0x8c4805=!![],_0x4b54af[_0x1122a0(0x1e8)]+=_0x40009c[_0x1122a0(0x2d0)],_0x4b54af['endRow']+=_0x40009c['step']+_0x40009c['length']),_0x4b54af;});_0x8c4805&&(_0x24ea13=!![],_0x4c08bf['f']=_0x1036d7,_0x3d608a[_0x314fe3(0x1af)](_0x1c48f8,_0xfafd4b,{..._0x4c08bf}));}});if(_0x24ea13){const _0xfb9a8c={'id':_univerjs_sheets[_0xe63ef3(0x203)]['id'],'params':{'unitId':_0x15648a[_0xe63ef3(0x1a4)][_0xe63ef3(0x3a7)],'subUnitId':_0x15648a['params'][_0xe63ef3(0x2e9)],'cellValue':_0x3d608a['getMatrix']()}};_0x47eb28[_0xe63ef3(0x1c6)](_0xfb9a8c);}return{'m1Prime':_0x47eb28,'m2Prime':_0x28cc90};}},insertRowMutationWithSetRowData={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x39a)]['id'],'handler'(_0x4a4ef9,_0x336bfc){const _0x4bef61=_0x151f3e,_0x123904={'m1Prime':_0x4a4ef9,'m2Prime':_0x336bfc};if(_0x4a4ef9[_0x4bef61(0x1a4)][_0x4bef61(0x3a7)]!==_0x336bfc[_0x4bef61(0x1a4)][_0x4bef61(0x3a7)]||_0x4a4ef9['params']['subUnitId']!==_0x336bfc[_0x4bef61(0x1a4)][_0x4bef61(0x2e9)])return _0x123904;const _0x3a241b=_univerjs_core[_0x4bef61(0x1a6)][_0x4bef61(0x3ce)](_0x4a4ef9),_0x5276c5=_univerjs_core[_0x4bef61(0x1a6)]['deepClone'](_0x336bfc),{rowData:_0xe61e17}=_0x5276c5[_0x4bef61(0x1a4)];for(let _0x34f3ec=_0x4a4ef9[_0x4bef61(0x1a4)]['range'][_0x4bef61(0x1e8)];_0x34f3ec<=_0x4a4ef9['params'][_0x4bef61(0x1b6)]['endRow'];_0x34f3ec++)(0x0,_univerjs_core[_0x4bef61(0x29f)])(_0x34f3ec,void 0x0,_0xe61e17);return{'m1Prime':_0x3a241b,'m2Prime':_0x5276c5};}},insertRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets['SetRowHiddenMutation']['id'],'handler'(_0x11b0f4,_0x8b6eac){const _0x1ec367=_0x151f3e,_0x1f9a3f={'m1Prime':_0x11b0f4,'m2Prime':_0x8b6eac};if(_0x11b0f4[_0x1ec367(0x1a4)]['unitId']!==_0x8b6eac[_0x1ec367(0x1a4)][_0x1ec367(0x3a7)]||_0x11b0f4[_0x1ec367(0x1a4)][_0x1ec367(0x2e9)]!==_0x8b6eac[_0x1ec367(0x1a4)][_0x1ec367(0x2e9)])return _0x1f9a3f;const _0x31b27a=_univerjs_core[_0x1ec367(0x1a6)][_0x1ec367(0x3ce)](_0x11b0f4),_0x4dd4c9=_univerjs_core[_0x1ec367(0x1a6)][_0x1ec367(0x3ce)](_0x8b6eac),{ranges:_0x45025d}=_0x4dd4c9[_0x1ec367(0x1a4)];if(_0x45025d[_0x1ec367(0x3a1)](_0x35e607=>{const _0x420d40=_0x1ec367,_0x271e9a=(0x0,_univerjs_sheets[_0x420d40(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x420d40(0x225)])(_0x11b0f4['params'][_0x420d40(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x35e607)));if(_0x271e9a['length']!==0x0)return!![];return _0x35e607[_0x420d40(0x1e8)]+=_0x271e9a[_0x420d40(0x2d0)],_0x35e607[_0x420d40(0x342)]+=_0x271e9a['step'],![];}))return{'error':new Error(_0x1ec367(0x2a9))};return{'m1Prime':_0x31b27a,'m2Prime':_0x4dd4c9};}},insertRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x4e53d6,_0x5c3bad){const _0x1de8c0=_0x151f3e,_0x1d374d={'m1Prime':_0x4e53d6,'m2Prime':_0x5c3bad};if(_0x4e53d6[_0x1de8c0(0x1a4)][_0x1de8c0(0x3a7)]!==_0x5c3bad[_0x1de8c0(0x1a4)]['unitId']||_0x4e53d6[_0x1de8c0(0x1a4)][_0x1de8c0(0x2e9)]!==_0x5c3bad[_0x1de8c0(0x1a4)][_0x1de8c0(0x2e9)])return _0x1d374d;const _0x2f0b33=_univerjs_core[_0x1de8c0(0x1a6)][_0x1de8c0(0x3ce)](_0x4e53d6),_0x4c5a0d=_univerjs_core['Tools'][_0x1de8c0(0x3ce)](_0x5c3bad),{ranges:_0x5ce0a7}=_0x4c5a0d['params'];if(_0x5ce0a7['some'](_0x2dcf8b=>{const _0x46143e=_0x1de8c0,_0x5f3b90=(0x0,_univerjs_sheets[_0x46143e(0x36a)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4e53d6['params'][_0x46143e(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x46143e(0x225)])(_0x2dcf8b)));if(_0x5f3b90[_0x46143e(0x1ba)]!==0x0)return!![];return _0x2dcf8b['startRow']+=_0x5f3b90[_0x46143e(0x2d0)],_0x2dcf8b[_0x46143e(0x342)]+=_0x5f3b90[_0x46143e(0x2d0)],![];}))return{'error':new Error(_0x1de8c0(0x2c8))};return{'m1Prime':_0x2f0b33,'m2Prime':_0x4c5a0d};}},insertRowMutationWithSetSelection={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0xfa1374,_0x1c9bed){const _0x401297=_0x151f3e,_0x360511={'m1Prime':[],'m2Prime':[]};if(_0xfa1374['params'][_0x401297(0x3a7)]!==_0x1c9bed['params'][_0x401297(0x3a7)]||_0xfa1374['params'][_0x401297(0x2e9)]!==_0x1c9bed['params'][_0x401297(0x2e9)])return _0x360511;const _0xd25518=_univerjs_core[_0x401297(0x1a6)]['deepClone'](_0x1c9bed);let _0x194e75=![];_0xd25518[_0x401297(0x1a4)]['selections'][_0x401297(0x3b5)](_0xa25ef7=>{const _0x52999d=_0x401297,{range:_0x3ebf67,primary:_0x2d2e4c}=_0xa25ef7,_0x1a2191=(0x0,_univerjs_sheets[_0x52999d(0x36a)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0xfa1374[_0x52999d(0x1a4)][_0x52999d(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x52999d(0x225)])(_0x3ebf67)));if(_0x1a2191[_0x52999d(0x1ba)]||_0x1a2191[_0x52999d(0x2d0)]){_0x3ebf67[_0x52999d(0x1e8)]+=_0x1a2191[_0x52999d(0x2d0)],_0x3ebf67[_0x52999d(0x342)]+=_0x1a2191[_0x52999d(0x2d0)]+(_0x1a2191[_0x52999d(0x1ba)]||0x0);if(_0x2d2e4c){const _0x1c1713=(0x0,_univerjs_sheets[_0x52999d(0x36a)])(toColumn((0x0,_univerjs_sheets[_0x52999d(0x225)])(_0xfa1374[_0x52999d(0x1a4)][_0x52999d(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x2d2e4c)));(_0x1c1713['length']||_0x1c1713['step'])&&(_0x2d2e4c[_0x52999d(0x1e8)]+=_0x1c1713[_0x52999d(0x2d0)],_0x2d2e4c[_0x52999d(0x342)]+=_0x1c1713[_0x52999d(0x2d0)],_0x2d2e4c[_0x52999d(0x364)]+=_0x1c1713['step']);}_0x194e75=!![];}});if(_0x194e75)_0x360511['m2Prime'][_0x401297(0x1c6)](_0xd25518);return _0x360511;}},insertRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x3bc9d6,_0x5e698b){const _0xf33ced=_0x151f3e,_0x2bd9bc={'m1Prime':[_0x3bc9d6],'m2Prime':[_0x5e698b]};if(_0x3bc9d6[_0xf33ced(0x1a4)]['unitId']!==_0x5e698b['params'][_0xf33ced(0x3a7)]||_0x3bc9d6[_0xf33ced(0x1a4)][_0xf33ced(0x2e9)]!==_0x5e698b[_0xf33ced(0x1a4)]['subUnitId'])return _0x2bd9bc;const _0x155a11=_univerjs_core[_0xf33ced(0x1a6)][_0xf33ced(0x3ce)](_0x3bc9d6),_0x20cc5e=_univerjs_core['Tools']['deepClone'](_0x5e698b),_0x1b5ebc=handleInsert({'start':_0x3bc9d6[_0xf33ced(0x1a4)][_0xf33ced(0x1b6)]['startRow'],'end':_0x3bc9d6[_0xf33ced(0x1a4)][_0xf33ced(0x1b6)][_0xf33ced(0x342)]},{'start':_0x5e698b[_0xf33ced(0x1a4)]['range']['startRow'],'end':_0x5e698b[_0xf33ced(0x1a4)][_0xf33ced(0x1b6)][_0xf33ced(0x342)]});if(_0x20cc5e[_0xf33ced(0x1a4)][_0xf33ced(0x1b6)][_0xf33ced(0x1e8)]===_0x1b5ebc[_0xf33ced(0x2d5)]&&_0x20cc5e['params'][_0xf33ced(0x1b6)]['endRow']===_0x1b5ebc[_0xf33ced(0x2c3)])return _0x2bd9bc;return _0x20cc5e[_0xf33ced(0x1a4)]['range'][_0xf33ced(0x1e8)]=_0x1b5ebc['start'],_0x20cc5e[_0xf33ced(0x1a4)][_0xf33ced(0x1b6)][_0xf33ced(0x342)]=_0x1b5ebc[_0xf33ced(0x2c3)],{'m1Prime':[_0x20cc5e,_0x155a11],'m2Prime':[_0x20cc5e]};}},insertRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f8)]['id'],'handler'(_0x48dd23,_0x5bad2e){const _0x1f6002=_0x151f3e,_0x3f7b1d={'m1Prime':_0x48dd23,'m2Prime':_0x5bad2e};if(_0x48dd23[_0x1f6002(0x1a4)][_0x1f6002(0x3a7)]!==_0x5bad2e['params'][_0x1f6002(0x3a7)]||_0x48dd23[_0x1f6002(0x1a4)]['subUnitId']!==_0x5bad2e[_0x1f6002(0x1a4)]['subUnitId'])return _0x3f7b1d;const _0x523b52=_univerjs_core['Tools'][_0x1f6002(0x3ce)](_0x48dd23),_0x52535f=_univerjs_core[_0x1f6002(0x1a6)][_0x1f6002(0x3ce)](_0x5bad2e),{rowsAutoHeightInfo:_0x5de297}=_0x52535f[_0x1f6002(0x1a4)];if(_0x5de297[_0x1f6002(0x3a1)](_0x1c7854=>{const _0xab2ea=_0x1f6002,_0x70387c={'startRow':_0x1c7854[_0xab2ea(0x1d0)],'endRow':_0x1c7854[_0xab2ea(0x1d0)],'startColumn':0x0,'endColumn':0x0},_0x45f0d0=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0xab2ea(0x225)])(_0x48dd23[_0xab2ea(0x1a4)][_0xab2ea(0x1b6)])),(0x0,_univerjs_sheets['rotateRange'])(_0x70387c));if(_0x45f0d0[_0xab2ea(0x1ba)]!==0x0)return!![];return _0x1c7854[_0xab2ea(0x1d0)]+=_0x45f0d0['step'],![];}))return{'error':new Error(_0x1f6002(0x26c))};return{'m1Prime':_0x523b52,'m2Prime':_0x52535f};}},insertRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f2)]['id'],'handler'(_0x53166c,_0x1f7be5){const _0x4f0169=_0x151f3e,_0x159bd6={'m1Prime':_0x53166c,'m2Prime':_0x1f7be5};if(_0x53166c[_0x4f0169(0x1a4)][_0x4f0169(0x3a7)]!==_0x1f7be5[_0x4f0169(0x1a4)][_0x4f0169(0x3a7)]||_0x53166c[_0x4f0169(0x1a4)][_0x4f0169(0x2e9)]!==_0x1f7be5[_0x4f0169(0x1a4)][_0x4f0169(0x2e9)])return _0x159bd6;const _0x251f04=_univerjs_core[_0x4f0169(0x1a6)]['deepClone'](_0x53166c),_0x13d1e0=_univerjs_core[_0x4f0169(0x1a6)][_0x4f0169(0x3ce)](_0x1f7be5),{ranges:_0x44a55b,rowHeight:_0x109c61}=_0x13d1e0[_0x4f0169(0x1a4)];if(_0x44a55b[_0x4f0169(0x3a1)](_0x4292fa=>{const _0x113094=_0x4f0169,_0x5eed2e=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x53166c[_0x113094(0x1a4)][_0x113094(0x1b6)])),(0x0,_univerjs_sheets[_0x113094(0x225)])(_0x4292fa));if(_0x5eed2e[_0x113094(0x1ba)]!==0x0)return!![];return _0x4292fa[_0x113094(0x1e8)]+=_0x5eed2e['step'],_0x4292fa[_0x113094(0x342)]+=_0x5eed2e[_0x113094(0x2d0)],![];}))return{'error':new Error(_0x4f0169(0x1a2))};if(typeof _0x109c61!==_0x4f0169(0x1da)){for(let _0x3fb312=_0x53166c['params'][_0x4f0169(0x1b6)][_0x4f0169(0x1e8)];_0x3fb312<=_0x53166c[_0x4f0169(0x1a4)][_0x4f0169(0x1b6)]['endRow'];_0x3fb312++)(0x0,_univerjs_core[_0x4f0169(0x29f)])(_0x3fb312,void 0x0,_0x109c61);}return{'m1Prime':_0x251f04,'m2Prime':_0x13d1e0};}},insertRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'handler'(_0x5d1a6e,_0x5a5cc0){const _0x853288=_0x151f3e,_0x207dcf={'m1Prime':_0x5d1a6e,'m2Prime':_0x5a5cc0};if(_0x5d1a6e[_0x853288(0x1a4)][_0x853288(0x3a7)]!==_0x5a5cc0['params']['unitId']||_0x5d1a6e['params'][_0x853288(0x2e9)]!==_0x5a5cc0[_0x853288(0x1a4)]['subUnitId'])return _0x207dcf;const _0xf4ea20=_univerjs_core[_0x853288(0x1a6)]['deepClone'](_0x5d1a6e),_0x1ac9c3=_univerjs_core[_0x853288(0x1a6)]['deepClone'](_0x5a5cc0),{ranges:_0x510c78,autoHeightInfo:_0x138772}=_0x1ac9c3[_0x853288(0x1a4)];if(_0x510c78[_0x853288(0x3a1)](_0xdd6de5=>{const _0x91b25a=_0x853288,_0x3a5aea=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x91b25a(0x225)])(_0x5d1a6e['params'][_0x91b25a(0x1b6)])),(0x0,_univerjs_sheets[_0x91b25a(0x225)])(_0xdd6de5));if(_0x3a5aea[_0x91b25a(0x1ba)]!==0x0)return!![];return _0xdd6de5[_0x91b25a(0x1e8)]+=_0x3a5aea['step'],_0xdd6de5['endRow']+=_0x3a5aea[_0x91b25a(0x2d0)],![];}))return{'error':new Error(_0x853288(0x260))};if(typeof _0x138772!==_0x853288(0x1da)){for(let _0x4d0ca9=_0x5d1a6e['params'][_0x853288(0x1b6)][_0x853288(0x1e8)];_0x4d0ca9<=_0x5d1a6e[_0x853288(0x1a4)][_0x853288(0x1b6)]['endRow'];_0x4d0ca9++)(0x0,_univerjs_core[_0x853288(0x29f)])(_0x4d0ca9,void 0x0,_0x138772);}return{'m1Prime':_0xf4ea20,'m2Prime':_0x1ac9c3};}},insertRowWithUpdateCommentRef={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x1ff3e2,_0x4e3194)=>{const _0x4b6339=_0x151f3e,_0x170c83={'m1Prime':_0x1ff3e2,'m2Prime':_0x4e3194};if(_0x1ff3e2['params'][_0x4b6339(0x3a7)]!==_0x4e3194[_0x4b6339(0x1a4)][_0x4b6339(0x3a7)]||_0x1ff3e2[_0x4b6339(0x1a4)][_0x4b6339(0x2e9)]!==_0x4e3194['params'][_0x4b6339(0x2e9)])return _0x170c83;const _0x184e9d=transformUpdateCommentRefWithRefRange(_0x4e3194,{'id':_univerjs_sheets[_0x4b6339(0x2a4)]['id'],'params':{'unitId':_0x1ff3e2[_0x4b6339(0x1a4)][_0x4b6339(0x3a7)],'subUnitId':_0x1ff3e2[_0x4b6339(0x1a4)][_0x4b6339(0x2e9)],'range':_0x1ff3e2[_0x4b6339(0x1a4)]['range']}});return{'m1Prime':[_0x1ff3e2,..._0x184e9d],'m2Prime':[_0x4e3194,..._0x184e9d]};}},insertRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x271)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x10eda2,_0x1a10ee)=>{const _0x443805=_0x151f3e,_0x3793a0={'m1Prime':_0x10eda2,'m2Prime':_0x1a10ee};if(_0x10eda2['params'][_0x443805(0x3a7)]!==_0x1a10ee[_0x443805(0x1a4)][_0x443805(0x3a7)]||_0x1a10ee[_0x443805(0x1a4)][_0x443805(0x2e9)]!==_0x10eda2[_0x443805(0x1a4)][_0x443805(0x2e9)])return _0x3793a0;const _0x41ee04=transformUpdateDataValidationWithRefRange(_0x1a10ee,{'id':_univerjs_sheets[_0x443805(0x2a4)]['id'],'params':{'unitId':_0x10eda2[_0x443805(0x1a4)][_0x443805(0x3a7)],'subUnitId':_0x10eda2[_0x443805(0x1a4)][_0x443805(0x2e9)],'range':_0x10eda2[_0x443805(0x1a4)][_0x443805(0x1b6)]}});return{'m1Prime':[_0x10eda2,..._0x41ee04],'m2Prime':[_0x1a10ee,..._0x41ee04]};}},moveColWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x1c8b55,_0x13dd3f)=>{const _0x58f266=_0x151f3e,_0x4a5334={'m1Prime':_0x1c8b55,'m2Prime':_0x13dd3f};if(_0x1c8b55['params']['unitId']!==_0x13dd3f[_0x58f266(0x1a4)][_0x58f266(0x3a7)]||_0x1c8b55[_0x58f266(0x1a4)][_0x58f266(0x2e9)]!==_0x13dd3f[_0x58f266(0x1a4)]['subUnitId'])return _0x4a5334;const _0x4957f6=transformAddCommentWithRefRange(_0x13dd3f,{'id':_univerjs_sheets[_0x58f266(0x396)]['id'],'params':{'unitId':_0x1c8b55[_0x58f266(0x1a4)]['unitId'],'subUnitId':_0x1c8b55[_0x58f266(0x1a4)][_0x58f266(0x2e9)],'fromRange':_0x1c8b55['params'][_0x58f266(0x195)],'toRange':_0x1c8b55['params']['targetRange']}});return{'m1Prime':[_0x1c8b55,..._0x4957f6],'m2Prime':[_0x13dd3f,..._0x4957f6]};}},moveColMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0xb1a776,_0x17a9b0){const _0x4f966c=_0x151f3e,_0x4cc4df=addWorksheetMergeMutationWithMoveColMutation['handler'](_0x17a9b0,_0xb1a776);if(isTransformMutationSuccess(_0x4cc4df))return{'m1Prime':_0x4cc4df['m2Prime'],'m2Prime':_0x4cc4df[_0x4f966c(0x28a)]};else return _0x4cc4df;}},moveColMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'handler'(_0x42b716,_0xe29c95){const _0x19f31f=_0x151f3e,_0x4cbf38={'m1Prime':_0x42b716,'m2Prime':_0xe29c95};if(_0x42b716['params'][_0x19f31f(0x3a7)]!==_0xe29c95[_0x19f31f(0x1a4)]['unitId']||_0x42b716[_0x19f31f(0x1a4)][_0x19f31f(0x2e9)]!==_0xe29c95[_0x19f31f(0x1a4)][_0x19f31f(0x2e9)])return _0x4cbf38;const _0x145830=_univerjs_core[_0x19f31f(0x1a6)][_0x19f31f(0x3ce)](_0x42b716),_0x40734d=_univerjs_core[_0x19f31f(0x1a6)][_0x19f31f(0x3ce)](_0xe29c95),_0x240f7d=_0xe29c95['params'][_0x19f31f(0x195)],_0x9ac548=_0xe29c95[_0x19f31f(0x1a4)][_0x19f31f(0x373)],_0x3ef033=_0x42b716[_0x19f31f(0x1a4)][_0x19f31f(0x195)],_0x44796b=_0x42b716['params'][_0x19f31f(0x373)];if(_0x3ef033[_0x19f31f(0x350)]>=_0x240f7d[_0x19f31f(0x1cb)]&&_0x3ef033[_0x19f31f(0x1cb)]<=_0x240f7d['endColumn'])return{'error':new Error(_0x19f31f(0x338))};const _0x412597=(0x0,_univerjs_sheets[_0x19f31f(0x233)])({'start':_0x3ef033[_0x19f31f(0x1cb)],'end':_0x3ef033[_0x19f31f(0x350)]},{'start':_0x44796b['startColumn'],'end':_0x44796b[_0x19f31f(0x350)]},{'start':_0x240f7d[_0x19f31f(0x1cb)],'end':_0x240f7d['endColumn']}),_0x4287ce=(0x0,_univerjs_sheets[_0x19f31f(0x233)])({'start':_0x3ef033['startColumn'],'end':_0x3ef033[_0x19f31f(0x350)]},{'start':_0x44796b[_0x19f31f(0x1cb)],'end':_0x44796b[_0x19f31f(0x350)]},{'start':_0x9ac548[_0x19f31f(0x1cb)],'end':_0x9ac548[_0x19f31f(0x350)]});if(_0x412597&&_0x4287ce)_0x40734d[_0x19f31f(0x1a4)][_0x19f31f(0x195)][_0x19f31f(0x1cb)]+=_0x412597[_0x19f31f(0x2d0)],_0x40734d[_0x19f31f(0x1a4)][_0x19f31f(0x195)]['endColumn']+=_0x412597['step']+(_0x412597['length']||0x0),_0x40734d['params'][_0x19f31f(0x373)][_0x19f31f(0x1cb)]+=_0x4287ce[_0x19f31f(0x2d0)],_0x40734d[_0x19f31f(0x1a4)][_0x19f31f(0x373)][_0x19f31f(0x350)]+=_0x4287ce[_0x19f31f(0x2d0)]+(_0x4287ce['length']||0x0);else _0x40734d['id']=_univerjs_sheets[_0x19f31f(0x36d)]['id'];const _0x367eec=(0x0,_univerjs_sheets[_0x19f31f(0x233)])({'start':_0x240f7d['startColumn'],'end':_0x240f7d['endColumn']},{'start':_0x9ac548[_0x19f31f(0x1cb)],'end':_0x9ac548[_0x19f31f(0x350)]},{'start':_0x3ef033[_0x19f31f(0x1cb)],'end':_0x3ef033[_0x19f31f(0x350)]}),_0x468f98=(0x0,_univerjs_sheets[_0x19f31f(0x233)])({'start':_0x240f7d['startColumn'],'end':_0x240f7d[_0x19f31f(0x350)]},{'start':_0x9ac548['startColumn'],'end':_0x9ac548['endColumn']},{'start':_0x44796b[_0x19f31f(0x1cb)],'end':_0x44796b[_0x19f31f(0x350)]});if(_0x367eec&&_0x468f98)_0x145830[_0x19f31f(0x1a4)][_0x19f31f(0x195)]['startColumn']+=_0x367eec[_0x19f31f(0x2d0)],_0x145830[_0x19f31f(0x1a4)]['sourceRange'][_0x19f31f(0x350)]+=_0x367eec['step']+(_0x367eec[_0x19f31f(0x1ba)]||0x0),_0x145830['params'][_0x19f31f(0x373)]['startColumn']+=_0x468f98[_0x19f31f(0x2d0)],_0x145830[_0x19f31f(0x1a4)]['targetRange'][_0x19f31f(0x350)]+=_0x468f98[_0x19f31f(0x2d0)]+(_0x468f98[_0x19f31f(0x1ba)]||0x0);else _0x145830['id']=_univerjs_sheets[_0x19f31f(0x36d)]['id'];return{'m1Prime':_0x145830,'m2Prime':_0x40734d};}},moveColMutationWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x3182e3,_0x5b3917){const _0x4553aa=_0x151f3e,_0x2b58ed={'m1Prime':_0x3182e3,'m2Prime':_0x5b3917};if(_0x3182e3[_0x4553aa(0x1a4)]['unitId']!==_0x5b3917['params'][_0x4553aa(0x3a7)]||_0x3182e3['params'][_0x4553aa(0x2e9)]!==_0x5b3917[_0x4553aa(0x1a4)][_0x4553aa(0x3fc)][_0x4553aa(0x2e9)]&&_0x3182e3[_0x4553aa(0x1a4)][_0x4553aa(0x2e9)]!==_0x5b3917['params']['to'][_0x4553aa(0x2e9)])return _0x2b58ed;const _0x23dad3=_univerjs_core[_0x4553aa(0x1a6)][_0x4553aa(0x3ce)](_0x3182e3),_0x4dab0a=_univerjs_core[_0x4553aa(0x1a6)][_0x4553aa(0x3ce)](_0x5b3917),_0x3457b4=_0x3182e3[_0x4553aa(0x1a4)][_0x4553aa(0x195)],_0x8ea5ac=_0x3182e3[_0x4553aa(0x1a4)]['targetRange'];if(_0x3182e3[_0x4553aa(0x1a4)][_0x4553aa(0x2e9)]===_0x5b3917[_0x4553aa(0x1a4)]['from'][_0x4553aa(0x2e9)]){const _0x58de07=new _univerjs_core[(_0x4553aa(0x2e2))](_0x4dab0a[_0x4553aa(0x1a4)]['from']['value']),_0x4db0f6=_0x58de07[_0x4553aa(0x25e)]();if(intersect({'start':_0x3457b4['startColumn'],'end':_0x3457b4[_0x4553aa(0x350)]},{'start':_0x4db0f6[_0x4553aa(0x1cb)],'end':_0x4db0f6[_0x4553aa(0x350)]})||intersect({'start':_0x8ea5ac[_0x4553aa(0x1cb)],'end':_0x8ea5ac['endColumn']},{'start':_0x4db0f6[_0x4553aa(0x1cb)],'end':_0x4db0f6['endColumn']}))return{'error':new Error(_0x4553aa(0x19d))};const _0x31b183=(0x0,_univerjs_sheets[_0x4553aa(0x233)])({'start':_0x3457b4[_0x4553aa(0x1cb)],'end':_0x3457b4[_0x4553aa(0x350)]},{'start':_0x8ea5ac[_0x4553aa(0x1cb)],'end':_0x8ea5ac[_0x4553aa(0x350)]},{'start':_0x4db0f6[_0x4553aa(0x1cb)],'end':_0x4db0f6[_0x4553aa(0x350)]});if(_0x31b183['length']!==0x0)return{'error':new Error(_0x4553aa(0x19d))};if(_0x31b183[_0x4553aa(0x2d0)]!==0x0)_0x58de07[_0x4553aa(0x2bd)](_0x3457b4['startColumn'],_0x3457b4[_0x4553aa(0x350)]-_0x3457b4[_0x4553aa(0x1cb)]+0x1,_0x8ea5ac['startColumn']);_0x4dab0a[_0x4553aa(0x1a4)]['from'][_0x4553aa(0x1df)]=_0x58de07[_0x4553aa(0x1c4)]();}if(_0x3182e3[_0x4553aa(0x1a4)][_0x4553aa(0x2e9)]===_0x5b3917[_0x4553aa(0x1a4)]['to']['subUnitId']){const _0x595c7e=new _univerjs_core[(_0x4553aa(0x2e2))](_0x4dab0a['params']['to'][_0x4553aa(0x1df)]),_0x5e0207=_0x595c7e[_0x4553aa(0x25e)]();if(intersect({'start':_0x3457b4[_0x4553aa(0x1cb)],'end':_0x3457b4[_0x4553aa(0x350)]},{'start':_0x5e0207[_0x4553aa(0x1cb)],'end':_0x5e0207[_0x4553aa(0x350)]})||intersect({'start':_0x8ea5ac[_0x4553aa(0x1cb)],'end':_0x8ea5ac[_0x4553aa(0x350)]},{'start':_0x5e0207[_0x4553aa(0x1cb)],'end':_0x5e0207[_0x4553aa(0x350)]}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};const _0x33cf9f=(0x0,_univerjs_sheets[_0x4553aa(0x233)])({'start':_0x3457b4[_0x4553aa(0x1cb)],'end':_0x3457b4[_0x4553aa(0x350)]},{'start':_0x8ea5ac['startColumn'],'end':_0x8ea5ac[_0x4553aa(0x350)]},{'start':_0x5e0207[_0x4553aa(0x1cb)],'end':_0x5e0207[_0x4553aa(0x350)]});if(_0x33cf9f['length']!==0x0)return{'error':new Error(_0x4553aa(0x19d))};if(_0x33cf9f[_0x4553aa(0x2d0)]!==0x0)_0x595c7e[_0x4553aa(0x2bd)](_0x3457b4['startColumn'],_0x3457b4['endColumn']-_0x3457b4['startColumn']+0x1,_0x8ea5ac[_0x4553aa(0x1cb)]);_0x4dab0a[_0x4553aa(0x1a4)]['to'][_0x4553aa(0x1df)]=_0x595c7e['getMatrix']();}return{'m1Prime':_0x23dad3,'m2Prime':_0x4dab0a};}},moveColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x5d5cad,_0x31f475){const _0x5d1f52=_0x151f3e,_0xa0cccb={'m1Prime':_0x5d5cad,'m2Prime':_0x31f475};if(_0x5d5cad[_0x5d1f52(0x1a4)]['unitId']!==_0x31f475['params'][_0x5d1f52(0x3a7)]||_0x5d5cad['params'][_0x5d1f52(0x2e9)]!==_0x31f475[_0x5d1f52(0x1a4)][_0x5d1f52(0x2e9)])return _0xa0cccb;const _0x8a8ee9=_univerjs_core[_0x5d1f52(0x1a6)][_0x5d1f52(0x3ce)](_0x5d5cad),_0x43eb67=_univerjs_core[_0x5d1f52(0x1a6)][_0x5d1f52(0x3ce)](_0x31f475),{sourceRange:_0x3dd6a0,targetRange:_0x5d4aeb}=_0x5d5cad[_0x5d1f52(0x1a4)],_0x273967={'start':_0x3dd6a0[_0x5d1f52(0x1cb)],'end':_0x3dd6a0[_0x5d1f52(0x350)]},_0x2b0474={'start':_0x5d4aeb['startColumn'],'end':_0x5d4aeb[_0x5d1f52(0x350)]};if(_0x43eb67[_0x5d1f52(0x1a4)]['ranges'][_0x5d1f52(0x3a1)](_0x84a79b=>{const _0x56a6cc=_0x5d1f52,_0x4cfa9c={'start':_0x84a79b['startColumn'],'end':_0x84a79b['endColumn']},_0x23420d=intersect(_0x273967,_0x4cfa9c),_0x39fbe4=intersect(_0x2b0474,_0x4cfa9c);if(_0x23420d||_0x39fbe4)return!![];const _0x5947c8=(0x0,_univerjs_sheets[_0x56a6cc(0x233)])(_0x273967,_0x2b0474,_0x4cfa9c);if(_0x5947c8['length']!==0x0)return!![];return _0x84a79b[_0x56a6cc(0x1cb)]+=_0x5947c8[_0x56a6cc(0x2d0)],_0x84a79b['endColumn']+=_0x5947c8[_0x56a6cc(0x2d0)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x8a8ee9,'m2Prime':_0x43eb67};}},moveColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0x1a0167,_0x10932e){const _0x37dc6e=_0x151f3e,_0x10730e=_univerjs_core[_0x37dc6e(0x1a6)][_0x37dc6e(0x3ce)](_0x1a0167),_0xe3a5a2=_univerjs_core['Tools'][_0x37dc6e(0x3ce)](_0x10932e);if(_0x1a0167[_0x37dc6e(0x1a4)][_0x37dc6e(0x3a7)]!==_0x10932e[_0x37dc6e(0x1a4)][_0x37dc6e(0x3a7)]||_0x1a0167[_0x37dc6e(0x1a4)][_0x37dc6e(0x2e9)]!==_0x10932e[_0x37dc6e(0x1a4)][_0x37dc6e(0x2e9)])return{'m1Prime':_0x10730e,'m2Prime':_0xe3a5a2};const _0x4e7733=_0xe3a5a2[_0x37dc6e(0x1a4)]['ranges'][_0x37dc6e(0x1d3)]((_0x56011f,_0x3783be)=>{const _0x325c32=_0x37dc6e,{sourceRange:_0x5db46c,targetRange:_0x338b96}=_0x1a0167[_0x325c32(0x1a4)],_0x3c4c2c={..._0x3783be};if(_0x5db46c[_0x325c32(0x350)]<_0x3c4c2c['startColumn']&&_0x338b96[_0x325c32(0x1cb)]>_0x3c4c2c[_0x325c32(0x350)])_0x3c4c2c[_0x325c32(0x1cb)]-=_0x5db46c[_0x325c32(0x350)]-_0x5db46c['startColumn']+0x1,_0x3c4c2c[_0x325c32(0x350)]-=_0x5db46c[_0x325c32(0x350)]-_0x5db46c[_0x325c32(0x1cb)]+0x1,isMergeCell(_0x3c4c2c)&&_0x56011f[_0x325c32(0x1c6)](_0x3c4c2c);else{if(_0x5db46c[_0x325c32(0x1cb)]>_0x3c4c2c[_0x325c32(0x350)]&&_0x338b96[_0x325c32(0x350)]<_0x3c4c2c['startColumn'])_0x3c4c2c[_0x325c32(0x1cb)]+=_0x5db46c['endColumn']-_0x5db46c[_0x325c32(0x1cb)]+0x1,_0x3c4c2c[_0x325c32(0x350)]+=_0x5db46c['endColumn']-_0x5db46c[_0x325c32(0x1cb)]+0x1,isMergeCell(_0x3c4c2c)&&_0x56011f[_0x325c32(0x1c6)](_0x3c4c2c);else{if(_univerjs_core[_0x325c32(0x1d9)]['intersects'](_0x3c4c2c,_0x5db46c)||_univerjs_core['Rectangle'][_0x325c32(0x1ab)](_0x3c4c2c,_0x338b96)){}else _0x56011f[_0x325c32(0x1c6)](_0x3c4c2c);}}return _0x56011f;},[]);_0xe3a5a2[_0x37dc6e(0x1a4)][_0x37dc6e(0x286)]=_0x4e7733;if(_0xe3a5a2[_0x37dc6e(0x1a4)][_0x37dc6e(0x286)][_0x37dc6e(0x1ba)]===0x0)_0xe3a5a2['id']=_univerjs_sheets[_0x37dc6e(0x36d)]['id'];return{'m1Prime':_0x10730e,'m2Prime':_0xe3a5a2};}},moveColMutationWithReorderRange={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x3cba6e,_0x3c82fe){const _0x188c07=_0x151f3e,_0x1fc0a7={'m1Prime':_0x3cba6e,'m2Prime':_0x3c82fe};if(_0x3cba6e[_0x188c07(0x1a4)][_0x188c07(0x3a7)]!==_0x3c82fe[_0x188c07(0x1a4)][_0x188c07(0x3a7)]||_0x3cba6e[_0x188c07(0x1a4)][_0x188c07(0x2e9)]!==_0x3c82fe[_0x188c07(0x1a4)][_0x188c07(0x2e9)])return _0x1fc0a7;const _0x5d4a66=_0x3cba6e[_0x188c07(0x1a4)][_0x188c07(0x195)][_0x188c07(0x1cb)],_0x10207a=_0x3cba6e[_0x188c07(0x1a4)][_0x188c07(0x195)][_0x188c07(0x350)],_0x4d1872=_0x3cba6e['params']['targetRange']['startColumn'],_0x4f5e1f=_0x3cba6e[_0x188c07(0x1a4)][_0x188c07(0x373)]['endColumn'],_0x23c296=_0x3c82fe[_0x188c07(0x1a4)][_0x188c07(0x1b6)]['startColumn'],_0x20d2de=_0x3c82fe[_0x188c07(0x1a4)][_0x188c07(0x1b6)][_0x188c07(0x350)];if(_0x5d4a66<=_0x20d2de&&_0x10207a>=_0x23c296||_0x4d1872<=_0x20d2de&&_0x4f5e1f>=_0x23c296)return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20reorder\x20range')};const _0x49deca=(0x0,_univerjs_sheets[_0x188c07(0x233)])({'start':_0x5d4a66,'end':_0x10207a},{'start':_0x4d1872,'end':_0x4f5e1f},{'start':_0x23c296,'end':_0x20d2de}),_0x31e276=_univerjs_core[_0x188c07(0x1a6)]['deepClone'](_0x3c82fe);return _0x31e276[_0x188c07(0x1a4)][_0x188c07(0x1b6)][_0x188c07(0x1cb)]+=_0x49deca[_0x188c07(0x2d0)],_0x31e276[_0x188c07(0x1a4)]['range']['endColumn']+=_0x49deca[_0x188c07(0x2d0)]+(_0x49deca[_0x188c07(0x1ba)]||0x0),{'m1Prime':_0x3cba6e,'m2Prime':_0x31e276};}},moveColMutationWithSetColData={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x341)]['id'],'handler'(_0x1210ee,_0x3ef895){const _0x4ffcde=_0x151f3e,_0x32a4be={'m1Prime':_0x1210ee,'m2Prime':_0x3ef895};if(_0x1210ee['params']['unitId']!==_0x3ef895['params']['unitId']||_0x1210ee[_0x4ffcde(0x1a4)][_0x4ffcde(0x2e9)]!==_0x3ef895[_0x4ffcde(0x1a4)][_0x4ffcde(0x2e9)])return _0x32a4be;const _0x4dc55b=_univerjs_core[_0x4ffcde(0x1a6)]['deepClone'](_0x1210ee),_0x2aa60f=_univerjs_core[_0x4ffcde(0x1a6)][_0x4ffcde(0x3ce)](_0x3ef895),{columnData:_0x4b19ed}=_0x2aa60f['params'],{sourceRange:_0x5cd62c,targetRange:_0x57ac06}=_0x1210ee[_0x4ffcde(0x1a4)];return(0x0,_univerjs_core[_0x4ffcde(0x388)])(_0x5cd62c['startColumn'],_0x5cd62c[_0x4ffcde(0x350)]-_0x5cd62c['startColumn']+0x1,_0x57ac06['startColumn'],_0x4b19ed),{'m1Prime':_0x4dc55b,'m2Prime':_0x2aa60f};}},moveColMutationWithSetColHidden={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x24a)]['id'],'handler'(_0x32a7c4,_0x38beba){const _0x5a432b=_0x151f3e,_0x50372c={'m1Prime':_0x32a7c4,'m2Prime':_0x38beba};if(_0x32a7c4[_0x5a432b(0x1a4)][_0x5a432b(0x3a7)]!==_0x38beba[_0x5a432b(0x1a4)]['unitId']||_0x32a7c4[_0x5a432b(0x1a4)][_0x5a432b(0x2e9)]!==_0x38beba['params']['subUnitId'])return _0x50372c;const _0x10ead7=_univerjs_core[_0x5a432b(0x1a6)][_0x5a432b(0x3ce)](_0x32a7c4),_0x37d95f=_univerjs_core['Tools']['deepClone'](_0x38beba),{ranges:_0x8622bf}=_0x37d95f['params'],{sourceRange:_0x473840,targetRange:_0x369dd1}=_0x32a7c4['params'],_0x38d499={'start':_0x473840[_0x5a432b(0x1cb)],'end':_0x473840['endColumn']},_0x5eef0a={'start':_0x369dd1[_0x5a432b(0x1cb)],'end':_0x369dd1[_0x5a432b(0x350)]};if(_0x8622bf[_0x5a432b(0x3a1)](_0x4acd2e=>{const _0x1248f6=_0x5a432b,_0x156871={'start':_0x4acd2e[_0x1248f6(0x1cb)],'end':_0x4acd2e['endColumn']},_0x2ba5aa=intersect(_0x38d499,_0x156871),_0x4eb4c7=intersect(_0x5eef0a,_0x156871);if(_0x2ba5aa||_0x4eb4c7)return!![];const _0x33016e=(0x0,_univerjs_sheets[_0x1248f6(0x233)])(_0x38d499,_0x5eef0a,_0x156871);if(_0x33016e[_0x1248f6(0x1ba)]!==0x0)return!![];return _0x4acd2e[_0x1248f6(0x1cb)]+=_0x33016e[_0x1248f6(0x2d0)],_0x4acd2e[_0x1248f6(0x350)]+=_0x33016e['step'],![];}))return{'error':new Error(_0x5a432b(0x2ad))};return{'m1Prime':_0x10ead7,'m2Prime':_0x37d95f};}},moveColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x31b)]['id'],'handler'(_0x37c89c,_0x57d095){const _0x19a97f=_0x151f3e,_0x395e6c={'m1Prime':_0x37c89c,'m2Prime':_0x57d095};if(_0x37c89c[_0x19a97f(0x1a4)][_0x19a97f(0x3a7)]!==_0x57d095[_0x19a97f(0x1a4)]['unitId']||_0x37c89c[_0x19a97f(0x1a4)][_0x19a97f(0x2e9)]!==_0x57d095['params'][_0x19a97f(0x2e9)])return _0x395e6c;const _0x1d3f0c=_univerjs_core[_0x19a97f(0x1a6)][_0x19a97f(0x3ce)](_0x37c89c),_0xfa43b0=_univerjs_core['Tools']['deepClone'](_0x57d095),{ranges:_0x1605e6}=_0xfa43b0['params'],{sourceRange:_0x2b52bc,targetRange:_0x34336e}=_0x37c89c[_0x19a97f(0x1a4)],_0x3d6711={'start':_0x2b52bc['startColumn'],'end':_0x2b52bc['endColumn']},_0x59dabe={'start':_0x34336e['startColumn'],'end':_0x34336e[_0x19a97f(0x350)]};if(_0x1605e6['some'](_0x2f3f66=>{const _0x41e5c4=_0x19a97f,_0x249a5f={'start':_0x2f3f66[_0x41e5c4(0x1cb)],'end':_0x2f3f66[_0x41e5c4(0x350)]},_0x29062a=intersect(_0x3d6711,_0x249a5f),_0x1cd320=intersect(_0x59dabe,_0x249a5f);if(_0x29062a||_0x1cd320)return!![];const _0x369bb4=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0x3d6711,_0x59dabe,_0x249a5f);if(_0x369bb4[_0x41e5c4(0x1ba)]!==0x0)return!![];return _0x2f3f66[_0x41e5c4(0x1cb)]+=_0x369bb4[_0x41e5c4(0x2d0)],_0x2f3f66[_0x41e5c4(0x350)]+=_0x369bb4[_0x41e5c4(0x2d0)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible')};return{'m1Prime':_0x1d3f0c,'m2Prime':_0xfa43b0};}},moveColMutationWithSetNumfmt={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x17fb1d,_0x56ef66){const _0x1e6a64=_0x151f3e,_0x37c0a9={'m1Prime':_0x17fb1d,'m2Prime':_0x56ef66};if(_0x17fb1d['params'][_0x1e6a64(0x3a7)]!==_0x56ef66['params'][_0x1e6a64(0x3a7)]||_0x17fb1d['params']['subUnitId']!==_0x56ef66['params'][_0x1e6a64(0x2e9)])return _0x37c0a9;const _0x572d48=[_univerjs_core[_0x1e6a64(0x1a6)][_0x1e6a64(0x3ce)](_0x17fb1d)],_0x13658d=_univerjs_core['Tools'][_0x1e6a64(0x3ce)](_0x56ef66),{sourceRange:_0x3824d7,targetRange:_0x384d66}=_0x17fb1d[_0x1e6a64(0x1a4)],_0x3ab86f={'start':_0x3824d7[_0x1e6a64(0x1cb)],'end':_0x3824d7['endColumn']},_0xb1f9b3={'start':_0x384d66[_0x1e6a64(0x1cb)],'end':_0x384d66[_0x1e6a64(0x350)]},{values:_0xb887bf}=_0x13658d[_0x1e6a64(0x1a4)],_0x23c624=[];let _0x579777=![];for(const _0x55a62d in _0xb887bf){const _0x834aaf=_0xb887bf[_0x55a62d];_0x23c624['push'](..._0x834aaf[_0x1e6a64(0x286)]);if(_0x834aaf['ranges']['some'](_0x111e16=>{const _0x42a800=_0x1e6a64,_0x3c349b={'start':_0x111e16[_0x42a800(0x1cb)],'end':_0x111e16[_0x42a800(0x350)]},_0x1f368c=intersect(_0x3ab86f,_0x3c349b),_0x49e0c8=intersect(_0xb1f9b3,_0x3c349b);if(_0x1f368c||_0x49e0c8)return!![];const _0x432da3=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0x3ab86f,_0xb1f9b3,_0x3c349b);if(_0x432da3[_0x42a800(0x1ba)]!==0x0)return!![];if(_0x432da3[_0x42a800(0x2d0)]!==0x0)_0x579777=!![];return _0x111e16[_0x42a800(0x1cb)]+=_0x432da3[_0x42a800(0x2d0)],_0x111e16[_0x42a800(0x350)]+=_0x432da3[_0x42a800(0x2d0)],![];}))return{'error':new Error(_0x1e6a64(0x3a4))};}if(_0x579777){const _0x4d4ada={'id':_univerjs_sheets[_0x1e6a64(0x2b1)]['id'],'params':{'unitId':_0x56ef66[_0x1e6a64(0x1a4)][_0x1e6a64(0x3a7)],'subUnitId':_0x56ef66[_0x1e6a64(0x1a4)][_0x1e6a64(0x2e9)],'ranges':_0x23c624}};_0x572d48['push'](_0x4d4ada,_0x13658d);}return{'m1Prime':_0x572d48,'m2Prime':_0x13658d};}},moveColMutationWithSetRangeValues={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x1569bf,_0x15a74d){const _0x5d2b2e=_0x151f3e,_0x2e10e9={'m1Prime':_0x1569bf,'m2Prime':_0x15a74d};if(_0x1569bf[_0x5d2b2e(0x1a4)]['unitId']!==_0x15a74d[_0x5d2b2e(0x1a4)]['unitId']||_0x1569bf[_0x5d2b2e(0x1a4)]['subUnitId']!==_0x15a74d[_0x5d2b2e(0x1a4)][_0x5d2b2e(0x2e9)])return _0x2e10e9;const _0x3b6da=[_univerjs_core[_0x5d2b2e(0x1a6)][_0x5d2b2e(0x3ce)](_0x1569bf)],_0x1d392e=_univerjs_core[_0x5d2b2e(0x1a6)][_0x5d2b2e(0x3ce)](_0x15a74d),_0x5fb1fe=new _univerjs_core[(_0x5d2b2e(0x2e2))](_0x1d392e[_0x5d2b2e(0x1a4)][_0x5d2b2e(0x30b)]),{sourceRange:_0x309815,targetRange:_0x48333c}=_0x1569bf[_0x5d2b2e(0x1a4)],_0x31a21e=_0x309815[_0x5d2b2e(0x1cb)],_0x53a0f5=_0x309815['endColumn']-_0x309815[_0x5d2b2e(0x1cb)]+0x1,_0x3a892e=_0x48333c['startColumn'];_0x5fb1fe['moveColumns'](_0x31a21e,_0x53a0f5,_0x3a892e);const _0xb91e0b=new _univerjs_core[(_0x5d2b2e(0x2e2))]();let _0x5dea26=![];_0x5fb1fe[_0x5d2b2e(0x22f)]((_0x51841e,_0x40f4a8,_0x1289ac)=>{const _0xe24201=_0x5d2b2e;if(_0x1289ac&&_0x1289ac['f']){const _0x1ec03f=_0x1289ac['f'];let _0x1db682=![];const _0x2de9da=processFormulaString(_0x1569bf[_0xe24201(0x1a4)]['unitId'],_0x1569bf['params'][_0xe24201(0x2e9)],_0x1ec03f,_0x41fd00=>{const _0x4460f0=_0xe24201,_0x3c3532=(0x0,_univerjs_sheets[_0x4460f0(0x233)])({'start':_0x1569bf['params'][_0x4460f0(0x195)][_0x4460f0(0x1cb)],'end':_0x1569bf['params'][_0x4460f0(0x195)]['endColumn']},{'start':_0x1569bf[_0x4460f0(0x1a4)][_0x4460f0(0x373)]['startColumn'],'end':_0x1569bf[_0x4460f0(0x1a4)]['targetRange']['endColumn']},{'start':_0x41fd00[_0x4460f0(0x1cb)],'end':_0x41fd00['endColumn']});return(_0x3c3532[_0x4460f0(0x2d0)]!==0x0||_0x3c3532[_0x4460f0(0x1ba)]!==0x0)&&(_0x1db682=!![],_0x41fd00[_0x4460f0(0x1cb)]+=_0x3c3532[_0x4460f0(0x2d0)],_0x41fd00[_0x4460f0(0x350)]+=_0x3c3532['step']+_0x3c3532[_0x4460f0(0x1ba)]),_0x41fd00;});_0x1db682&&(_0x5dea26=!![],_0x1289ac['f']=_0x2de9da,_0xb91e0b[_0xe24201(0x1af)](_0x51841e,_0x40f4a8,{..._0x1289ac}));}});if(_0x5dea26){const _0x3eb2d4={'id':_univerjs_sheets[_0x5d2b2e(0x203)]['id'],'params':{'unitId':_0x15a74d[_0x5d2b2e(0x1a4)][_0x5d2b2e(0x3a7)],'subUnitId':_0x15a74d[_0x5d2b2e(0x1a4)][_0x5d2b2e(0x2e9)],'cellValue':_0xb91e0b[_0x5d2b2e(0x1c4)]()}};_0x3b6da['push'](_0x3eb2d4);}return _0x1d392e[_0x5d2b2e(0x1a4)][_0x5d2b2e(0x30b)]=_0x5fb1fe[_0x5d2b2e(0x1c4)](),{'m1Prime':_0x3b6da,'m2Prime':_0x1d392e};}},moveColMutationWithSetSelection={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0x40daac,_0xb228e){const _0x203fe5=_0x151f3e,_0x4819bc={'m1Prime':[],'m2Prime':[]};if(_0x40daac[_0x203fe5(0x1a4)][_0x203fe5(0x3a7)]!==_0xb228e['params'][_0x203fe5(0x3a7)]||_0x40daac[_0x203fe5(0x1a4)][_0x203fe5(0x2e9)]!==_0xb228e[_0x203fe5(0x1a4)][_0x203fe5(0x2e9)])return _0x4819bc;const _0x2efe69=_univerjs_core['Tools'][_0x203fe5(0x3ce)](_0xb228e);let _0x3a14b2=![];_0x2efe69[_0x203fe5(0x1a4)][_0x203fe5(0x198)]['forEach'](_0x490e90=>{const _0x58c81d=_0x203fe5,{range:_0x3f9eb8,primary:_0x3504cb}=_0x490e90,_0x26b968=(0x0,_univerjs_sheets[_0x58c81d(0x233)])({'start':_0x40daac[_0x58c81d(0x1a4)]['sourceRange']['startColumn'],'end':_0x40daac[_0x58c81d(0x1a4)][_0x58c81d(0x195)][_0x58c81d(0x350)]},{'start':_0x40daac[_0x58c81d(0x1a4)][_0x58c81d(0x373)][_0x58c81d(0x1cb)],'end':_0x40daac['params'][_0x58c81d(0x373)]['endColumn']},{'start':_0x3f9eb8[_0x58c81d(0x1cb)],'end':_0x3f9eb8[_0x58c81d(0x350)]});if(_0x26b968[_0x58c81d(0x1ba)]||_0x26b968[_0x58c81d(0x2d0)]){_0x3f9eb8[_0x58c81d(0x1cb)]+=_0x26b968['step'],_0x3f9eb8[_0x58c81d(0x350)]+=_0x26b968[_0x58c81d(0x2d0)]+(_0x26b968[_0x58c81d(0x1ba)]||0x0);if(_0x3504cb){const _0x91a362=(0x0,_univerjs_sheets[_0x58c81d(0x233)])({'start':_0x40daac[_0x58c81d(0x1a4)]['sourceRange']['startColumn'],'end':_0x40daac[_0x58c81d(0x1a4)][_0x58c81d(0x195)][_0x58c81d(0x350)]},{'start':_0x40daac[_0x58c81d(0x1a4)][_0x58c81d(0x373)][_0x58c81d(0x1cb)],'end':_0x40daac['params'][_0x58c81d(0x373)][_0x58c81d(0x350)]},{'start':_0x3504cb[_0x58c81d(0x1cb)],'end':_0x3504cb[_0x58c81d(0x350)]});(_0x91a362[_0x58c81d(0x1ba)]||_0x91a362[_0x58c81d(0x2d0)])&&(_0x3504cb[_0x58c81d(0x1cb)]+=_0x91a362[_0x58c81d(0x2d0)],_0x3504cb[_0x58c81d(0x350)]+=_0x91a362[_0x58c81d(0x2d0)],_0x3504cb[_0x58c81d(0x19a)]+=_0x91a362['step']);}_0x3a14b2=!![];}});if(_0x3a14b2)_0x4819bc[_0x203fe5(0x1a7)][_0x203fe5(0x1c6)](_0x2efe69);return _0x4819bc;}},moveColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'handler'(_0x36dbbf,_0x22d185){const _0x1907e1=_0x151f3e,_0x2099f6={'m1Prime':_0x36dbbf,'m2Prime':_0x22d185};if(_0x36dbbf[_0x1907e1(0x1a4)][_0x1907e1(0x3a7)]!==_0x22d185[_0x1907e1(0x1a4)][_0x1907e1(0x3a7)]||_0x36dbbf[_0x1907e1(0x1a4)][_0x1907e1(0x2e9)]!==_0x22d185[_0x1907e1(0x1a4)][_0x1907e1(0x2e9)])return _0x2099f6;const _0x1da76f=_univerjs_core['Tools'][_0x1907e1(0x3ce)](_0x36dbbf),_0x5931f0=_univerjs_core['Tools']['deepClone'](_0x22d185),_0x43a1fa=(0x0,_univerjs_sheets[_0x1907e1(0x233)])({'start':_0x36dbbf['params'][_0x1907e1(0x195)][_0x1907e1(0x1cb)],'end':_0x36dbbf['params'][_0x1907e1(0x195)]['endColumn']},{'start':_0x36dbbf[_0x1907e1(0x1a4)][_0x1907e1(0x373)][_0x1907e1(0x1cb)],'end':_0x36dbbf[_0x1907e1(0x1a4)][_0x1907e1(0x373)]['endColumn']},{'start':_0x22d185['params'][_0x1907e1(0x2a8)],'end':_0x22d185['params'][_0x1907e1(0x2a8)]});if(_0x43a1fa['step']===0x0)return _0x2099f6;_0x5931f0[_0x1907e1(0x1a4)][_0x1907e1(0x2a8)]+=_0x43a1fa[_0x1907e1(0x2d0)];if(_0x5931f0['params'][_0x1907e1(0x2b0)])_0x5931f0[_0x1907e1(0x1a4)][_0x1907e1(0x2b0)][_0x1907e1(0x30d)]+=_0x43a1fa[_0x1907e1(0x2d0)];const _0xafd391=_univerjs_core[_0x1907e1(0x1a6)][_0x1907e1(0x3ce)](_0x22d185);return _0xafd391[_0x1907e1(0x1a4)][_0x1907e1(0x2b0)]=null,{'m1Prime':[_0xafd391,_0x5931f0,_0x1da76f],'m2Prime':[_0x5931f0]};}},moveColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x4fe7b2,_0x52fb34){const _0x3cc14a=_0x151f3e,_0x3bbea5={'m1Prime':[_0x4fe7b2],'m2Prime':[_0x52fb34]};if(_0x4fe7b2[_0x3cc14a(0x1a4)]['unitId']!==_0x52fb34['params'][_0x3cc14a(0x3a7)]||_0x4fe7b2[_0x3cc14a(0x1a4)][_0x3cc14a(0x2e9)]!==_0x52fb34[_0x3cc14a(0x1a4)]['subUnitId'])return _0x3bbea5;const _0x4ae57c=_univerjs_core['Tools'][_0x3cc14a(0x3ce)](_0x4fe7b2),_0x11ae81=_univerjs_core[_0x3cc14a(0x1a6)][_0x3cc14a(0x3ce)](_0x52fb34),_0x17e618=(0x0,_univerjs_sheets[_0x3cc14a(0x233)])({'start':_0x4fe7b2[_0x3cc14a(0x1a4)][_0x3cc14a(0x195)][_0x3cc14a(0x1cb)],'end':_0x4fe7b2['params'][_0x3cc14a(0x195)][_0x3cc14a(0x350)]},{'start':_0x4fe7b2[_0x3cc14a(0x1a4)]['targetRange'][_0x3cc14a(0x1cb)],'end':_0x4fe7b2[_0x3cc14a(0x1a4)][_0x3cc14a(0x373)][_0x3cc14a(0x350)]},{'start':_0x52fb34[_0x3cc14a(0x1a4)][_0x3cc14a(0x1b6)][_0x3cc14a(0x1cb)],'end':_0x52fb34[_0x3cc14a(0x1a4)][_0x3cc14a(0x1b6)][_0x3cc14a(0x350)]});return _0x11ae81[_0x3cc14a(0x1a4)]['range'][_0x3cc14a(0x1cb)]+=_0x17e618[_0x3cc14a(0x2d0)],_0x11ae81['params']['range'][_0x3cc14a(0x350)]+=_0x17e618['step']+_0x17e618['length'],{'m1Prime':[_0x11ae81,_0x4ae57c],'m2Prime':[_0x11ae81]};}},moveColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'handler'(_0x3335ab,_0x226569){const _0x5b4a82=_0x151f3e,_0x12a333={'m1Prime':_0x3335ab,'m2Prime':_0x226569};if(_0x3335ab[_0x5b4a82(0x1a4)]['unitId']!==_0x226569[_0x5b4a82(0x1a4)][_0x5b4a82(0x3a7)]||_0x3335ab['params'][_0x5b4a82(0x2e9)]!==_0x226569['params'][_0x5b4a82(0x2e9)])return _0x12a333;const _0xc43ee=_univerjs_core[_0x5b4a82(0x1a6)][_0x5b4a82(0x3ce)](_0x3335ab),_0x54e7c6=_univerjs_core['Tools']['deepClone'](_0x226569),{ranges:_0x44c0e8,colWidth:_0x2e1ce3}=_0x54e7c6[_0x5b4a82(0x1a4)],{sourceRange:_0x3670d6,targetRange:_0x30db4f}=_0x3335ab[_0x5b4a82(0x1a4)],_0x2d0c86={'start':_0x3670d6[_0x5b4a82(0x1cb)],'end':_0x3670d6[_0x5b4a82(0x350)]},_0x19743e={'start':_0x30db4f[_0x5b4a82(0x1cb)],'end':_0x30db4f[_0x5b4a82(0x350)]};if(_0x44c0e8[_0x5b4a82(0x3a1)](_0x397e51=>{const _0x1fa058=_0x5b4a82,_0x15f21e=(0x0,_univerjs_sheets[_0x1fa058(0x233)])(_0x2d0c86,_0x19743e,{'start':_0x397e51[_0x1fa058(0x1cb)],'end':_0x397e51['endColumn']});if(_0x15f21e[_0x1fa058(0x1ba)]!==0x0)return!![];return _0x397e51[_0x1fa058(0x1cb)]+=_0x15f21e[_0x1fa058(0x2d0)],_0x397e51[_0x1fa058(0x350)]+=_0x15f21e[_0x1fa058(0x2d0)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};if(typeof _0x2e1ce3!==_0x5b4a82(0x1da))(0x0,_univerjs_core[_0x5b4a82(0x388)])(_0x3670d6[_0x5b4a82(0x1cb)],_0x3670d6[_0x5b4a82(0x350)]-_0x3670d6['startColumn']+0x1,_0x30db4f['startColumn'],_0x2e1ce3);return{'m1Prime':_0xc43ee,'m2Prime':_0x54e7c6};}},moveColsWithUpdateCommentRef={'m1':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x4f8445,_0x138523)=>{const _0x242662=_0x151f3e,_0x4ea379={'m1Prime':_0x4f8445,'m2Prime':_0x138523};if(_0x4f8445[_0x242662(0x1a4)]['unitId']!==_0x138523['params'][_0x242662(0x3a7)]||_0x4f8445[_0x242662(0x1a4)][_0x242662(0x2e9)]!==_0x138523[_0x242662(0x1a4)][_0x242662(0x2e9)])return _0x4ea379;const _0x2b78c7=transformUpdateCommentRefWithRefRange(_0x138523,{'id':_univerjs_sheets[_0x242662(0x396)]['id'],'params':{'unitId':_0x4f8445[_0x242662(0x1a4)][_0x242662(0x3a7)],'subUnitId':_0x4f8445[_0x242662(0x1a4)][_0x242662(0x2e9)],'fromRange':_0x4f8445['params'][_0x242662(0x195)],'toRange':_0x4f8445[_0x242662(0x1a4)][_0x242662(0x373)]}});return{'m1Prime':[_0x4f8445,..._0x2b78c7],'m2Prime':[_0x138523,..._0x2b78c7]};}},moveConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting['MoveConditionalRuleMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x345)]['id'],'handler'(_0x1ed8ac,_0x1a0754){const _0x2306fd=_0x151f3e;if(_0x1ed8ac[_0x2306fd(0x1a4)]['unitId']!==_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x3a7)]||_0x1ed8ac[_0x2306fd(0x1a4)][_0x2306fd(0x2e9)]!==_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x2e9)])return{'m1Prime':_0x1ed8ac,'m2Prime':_0x1a0754};if(_0x1ed8ac['params']['start']['id']===_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x2d5)]['id']&&_0x1ed8ac[_0x2306fd(0x1a4)][_0x2306fd(0x2c3)]['id']===_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x2c3)]['id']&&_0x1ed8ac['params'][_0x2306fd(0x2d5)][_0x2306fd(0x38b)]===_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x2d5)]['type']&&_0x1ed8ac[_0x2306fd(0x1a4)]['end']['type']===_0x1a0754[_0x2306fd(0x1a4)][_0x2306fd(0x2c3)][_0x2306fd(0x38b)])return{'m1Prime':[],'m2Prime':[]};return{'error':new Error('Move\x20conditional\x20formatting\x20rule\x20\x20is\x20conflict\x20with\x20self')};}},moveRangeMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x9972c6,_0x53c233){const _0x34708b=_0x151f3e,_0x42790c=addWorksheetMergeMutationWithMoveRangeMutation['handler'](_0x53c233,_0x9972c6);if(isTransformMutationSuccess(_0x42790c))return{'m1Prime':_0x42790c[_0x34708b(0x1a7)],'m2Prime':_0x42790c[_0x34708b(0x28a)]};else return _0x42790c;}},moveRangeMutationWithSelf={'m1':_univerjs_sheets['MoveRangeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x129fc3,_0x29db0f){const _0x2fff94=_0x151f3e,_0x28d391={'m1Prime':_0x129fc3,'m2Prime':_0x29db0f};if(_0x129fc3[_0x2fff94(0x1a4)][_0x2fff94(0x3a7)]!==_0x29db0f[_0x2fff94(0x1a4)]['unitId'])return _0x28d391;const _0xe3c8e4=new _univerjs_core['ObjectMatrix'](_0x129fc3['params']['from'][_0x2fff94(0x1df)])[_0x2fff94(0x25e)](),_0x4e3dbe=new _univerjs_core[(_0x2fff94(0x2e2))](_0x29db0f[_0x2fff94(0x1a4)][_0x2fff94(0x3fc)][_0x2fff94(0x1df)])[_0x2fff94(0x25e)](),_0x29dd24=new _univerjs_core[(_0x2fff94(0x2e2))](_0x129fc3['params']['to'][_0x2fff94(0x1df)])['getDataRange'](),_0x368747=new _univerjs_core['ObjectMatrix'](_0x29db0f[_0x2fff94(0x1a4)]['to'][_0x2fff94(0x1df)])['getDataRange']();if(_0x129fc3['params'][_0x2fff94(0x3fc)][_0x2fff94(0x2e9)]===_0x29db0f[_0x2fff94(0x1a4)][_0x2fff94(0x3fc)][_0x2fff94(0x2e9)]&&_univerjs_core['Rectangle']['intersects'](_0xe3c8e4,_0x4e3dbe)||_0x129fc3[_0x2fff94(0x1a4)]['to'][_0x2fff94(0x2e9)]===_0x29db0f[_0x2fff94(0x1a4)]['to'][_0x2fff94(0x2e9)]&&_univerjs_core[_0x2fff94(0x1d9)][_0x2fff94(0x1ab)](_0x29dd24,_0x368747)||_0x129fc3[_0x2fff94(0x1a4)]['from'][_0x2fff94(0x2e9)]===_0x29db0f[_0x2fff94(0x1a4)]['to'][_0x2fff94(0x2e9)]&&_univerjs_core[_0x2fff94(0x1d9)][_0x2fff94(0x1ab)](_0xe3c8e4,_0x368747)||_0x129fc3[_0x2fff94(0x1a4)]['to'][_0x2fff94(0x2e9)]===_0x29db0f[_0x2fff94(0x1a4)][_0x2fff94(0x3fc)][_0x2fff94(0x2e9)]&&_univerjs_core[_0x2fff94(0x1d9)][_0x2fff94(0x1ab)](_0x29dd24,_0x4e3dbe))return{'error':new Error(_0x2fff94(0x369))};return _0x28d391;}},moveRangeMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x3bd3b7,_0x67a817){const _0x5aabd0=_0x151f3e,_0x463dba={'m1Prime':_0x3bd3b7,'m2Prime':_0x67a817};if(_0x3bd3b7[_0x5aabd0(0x1a4)][_0x5aabd0(0x3a7)]!==_0x67a817['params'][_0x5aabd0(0x3a7)]||_0x3bd3b7['params'][_0x5aabd0(0x3fc)]['subUnitId']!==_0x67a817[_0x5aabd0(0x1a4)][_0x5aabd0(0x2e9)]&&_0x3bd3b7[_0x5aabd0(0x1a4)]['to'][_0x5aabd0(0x2e9)]!==_0x67a817[_0x5aabd0(0x1a4)][_0x5aabd0(0x2e9)])return _0x463dba;const _0x25d275=new _univerjs_core['ObjectMatrix'](_0x3bd3b7['params']['from'][_0x5aabd0(0x1df)])[_0x5aabd0(0x25e)](),_0x1b43b0=new _univerjs_core[(_0x5aabd0(0x2e2))](_0x3bd3b7[_0x5aabd0(0x1a4)]['to'][_0x5aabd0(0x1df)])[_0x5aabd0(0x25e)]();if(_0x3bd3b7['params'][_0x5aabd0(0x3fc)][_0x5aabd0(0x2e9)]===_0x67a817['params']['subUnitId']){if(_0x67a817[_0x5aabd0(0x1a4)][_0x5aabd0(0x286)]['some'](_0x3b2b84=>{const _0x287387=_0x5aabd0;return _univerjs_core[_0x287387(0x1d9)][_0x287387(0x1ab)](_0x3b2b84,_0x25d275);}))return{'error':new Error(_0x5aabd0(0x2aa))};}if(_0x3bd3b7[_0x5aabd0(0x1a4)]['to'][_0x5aabd0(0x2e9)]===_0x67a817[_0x5aabd0(0x1a4)]['subUnitId']){if(_0x67a817[_0x5aabd0(0x1a4)][_0x5aabd0(0x286)][_0x5aabd0(0x3a1)](_0x393e48=>{const _0x9a80b8=_0x5aabd0;return _univerjs_core[_0x9a80b8(0x1d9)][_0x9a80b8(0x1ab)](_0x393e48,_0x1b43b0);}))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt')};}return _0x463dba;}},moveRangeMutationWithReorderRange={'m1':_univerjs_sheets['MoveRangeMutation']['id'],'m2':_univerjs_sheets['ReorderRangeMutation']['id'],'handler'(_0x44fe48,_0x4da5f8){const _0x348c20=_0x151f3e,_0x335414={'m1Prime':_0x44fe48,'m2Prime':_0x4da5f8};if(_0x44fe48[_0x348c20(0x1a4)][_0x348c20(0x3a7)]!==_0x4da5f8['params'][_0x348c20(0x3a7)]||_0x44fe48[_0x348c20(0x1a4)][_0x348c20(0x3fc)][_0x348c20(0x2e9)]!==_0x4da5f8[_0x348c20(0x1a4)][_0x348c20(0x2e9)]&&_0x44fe48['params']['to'][_0x348c20(0x2e9)]!==_0x4da5f8[_0x348c20(0x1a4)][_0x348c20(0x2e9)])return _0x335414;if(_0x44fe48[_0x348c20(0x1a4)]['from'][_0x348c20(0x2e9)]===_0x4da5f8[_0x348c20(0x1a4)]['subUnitId']){const _0x46602c=new _univerjs_core['ObjectMatrix'](_0x44fe48[_0x348c20(0x1a4)][_0x348c20(0x3fc)][_0x348c20(0x1df)])[_0x348c20(0x25e)]();if(_univerjs_core[_0x348c20(0x1d9)][_0x348c20(0x1ab)](_0x46602c,_0x4da5f8[_0x348c20(0x1a4)][_0x348c20(0x1b6)]))return{'error':new Error(_0x348c20(0x29d))};}if(_0x44fe48[_0x348c20(0x1a4)]['to'][_0x348c20(0x2e9)]===_0x4da5f8[_0x348c20(0x1a4)][_0x348c20(0x2e9)]){const _0x11d8f0=new _univerjs_core['ObjectMatrix'](_0x44fe48[_0x348c20(0x1a4)]['to']['value'])[_0x348c20(0x25e)]();if(_univerjs_core[_0x348c20(0x1d9)][_0x348c20(0x1ab)](_0x11d8f0,_0x4da5f8[_0x348c20(0x1a4)][_0x348c20(0x1b6)]))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20reorder\x20range')};}return _0x335414;}},moveRangeMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler'(_0x5067ac,_0x5d1969){const _0x1cb2b0=_0x151f3e,_0x51d234={'m1Prime':_0x5067ac,'m2Prime':_0x5d1969};if(_0x5067ac[_0x1cb2b0(0x1a4)][_0x1cb2b0(0x3a7)]!==_0x5d1969[_0x1cb2b0(0x1a4)][_0x1cb2b0(0x3a7)]||_0x5067ac[_0x1cb2b0(0x1a4)][_0x1cb2b0(0x3fc)]['subUnitId']!==_0x5d1969['params'][_0x1cb2b0(0x2e9)]&&_0x5067ac[_0x1cb2b0(0x1a4)]['to'][_0x1cb2b0(0x2e9)]!==_0x5d1969[_0x1cb2b0(0x1a4)]['subUnitId'])return _0x51d234;const _0x401b6c=new _univerjs_core['ObjectMatrix'](_0x5067ac[_0x1cb2b0(0x1a4)][_0x1cb2b0(0x3fc)][_0x1cb2b0(0x1df)])[_0x1cb2b0(0x25e)](),_0xede556=new _univerjs_core[(_0x1cb2b0(0x2e2))](_0x5067ac[_0x1cb2b0(0x1a4)]['to']['value'])[_0x1cb2b0(0x25e)]();if(_0x5067ac[_0x1cb2b0(0x1a4)]['from'][_0x1cb2b0(0x2e9)]===_0x5d1969[_0x1cb2b0(0x1a4)]['subUnitId']){const {values:_0x5b8fbc}=_0x5d1969[_0x1cb2b0(0x1a4)];for(const _0x5415d1 in _0x5b8fbc)if(_0x5b8fbc[_0x5415d1][_0x1cb2b0(0x286)]['some'](_0x3a88f8=>{const _0x576ccf=_0x1cb2b0;return _univerjs_core[_0x576ccf(0x1d9)][_0x576ccf(0x1ab)](_0x3a88f8,_0x401b6c);}))return{'error':new Error(_0x1cb2b0(0x2aa))};}if(_0x5067ac['params']['to'][_0x1cb2b0(0x2e9)]===_0x5d1969['params']['subUnitId']){const {values:_0x1797e8}=_0x5d1969['params'];for(const _0xada6d7 in _0x1797e8)if(_0x1797e8[_0xada6d7][_0x1cb2b0(0x286)][_0x1cb2b0(0x3a1)](_0x472ea5=>{const _0x1e0bc2=_0x1cb2b0;return _univerjs_core[_0x1e0bc2(0x1d9)][_0x1e0bc2(0x1ab)](_0x472ea5,_0xede556);}))return{'error':new Error(_0x1cb2b0(0x2aa))};}return _0x51d234;}},moveRowWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0xef3d46,_0x35ad00)=>{const _0x214d1a=_0x151f3e,_0x38c43e={'m1Prime':_0xef3d46,'m2Prime':_0x35ad00};if(_0xef3d46[_0x214d1a(0x1a4)][_0x214d1a(0x3a7)]!==_0x35ad00[_0x214d1a(0x1a4)][_0x214d1a(0x3a7)]||_0xef3d46['params']['subUnitId']!==_0x35ad00[_0x214d1a(0x1a4)][_0x214d1a(0x2e9)])return _0x38c43e;const _0x6f0ac7=transformAddCommentWithRefRange(_0x35ad00,{'id':_univerjs_sheets[_0x214d1a(0x1f3)]['id'],'params':{'unitId':_0xef3d46[_0x214d1a(0x1a4)][_0x214d1a(0x3a7)],'subUnitId':_0xef3d46[_0x214d1a(0x1a4)][_0x214d1a(0x2e9)],'fromRange':_0xef3d46[_0x214d1a(0x1a4)][_0x214d1a(0x195)],'toRange':_0xef3d46[_0x214d1a(0x1a4)][_0x214d1a(0x373)]}});return{'m1Prime':[_0xef3d46,..._0x6f0ac7],'m2Prime':[_0x35ad00,..._0x6f0ac7]};}},moveRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'handler'(_0x12178f,_0xff6739){const _0x5ad6a6=_0x151f3e,_0x3724f4={'m1Prime':_0x12178f,'m2Prime':_0xff6739};if(_0x12178f[_0x5ad6a6(0x1a4)][_0x5ad6a6(0x3a7)]!==_0xff6739[_0x5ad6a6(0x1a4)][_0x5ad6a6(0x3a7)]||_0x12178f['params'][_0x5ad6a6(0x2e9)]!==_0xff6739['params'][_0x5ad6a6(0x2e9)])return _0x3724f4;const _0x3c664e=transformAddDataValidationWithRefRange(_0xff6739,{'id':_univerjs_sheets[_0x5ad6a6(0x1f3)]['id'],'params':{'fromRange':_0x12178f[_0x5ad6a6(0x1a4)][_0x5ad6a6(0x195)],'toRange':_0x12178f[_0x5ad6a6(0x1a4)]['targetRange']}});return{'m1Prime':[_0x12178f,..._0x3c664e],'m2Prime':[_0xff6739,..._0x3c664e]};}},moveRowsMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x3c1fcd,_0x50d8b3){const _0x3bf108=_0x151f3e,_0x238082=addWorksheetMergeMutationWithMoveRowMutation[_0x3bf108(0x303)](_0x50d8b3,_0x3c1fcd);if(isTransformMutationSuccess(_0x238082))return{'m1Prime':_0x238082[_0x3bf108(0x1a7)],'m2Prime':_0x238082[_0x3bf108(0x28a)]};else return _0x238082;}},moveRowMutationWithMoveRange={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x201906,_0x36842e){const _0x2fc970=_0x151f3e,_0xe9b7f0={'m1Prime':_0x201906,'m2Prime':_0x36842e};if(_0x201906[_0x2fc970(0x1a4)][_0x2fc970(0x3a7)]!==_0x36842e[_0x2fc970(0x1a4)][_0x2fc970(0x3a7)]||_0x201906[_0x2fc970(0x1a4)][_0x2fc970(0x2e9)]!==_0x36842e['params'][_0x2fc970(0x3fc)]['subUnitId']&&_0x201906['params'][_0x2fc970(0x2e9)]!==_0x36842e['params']['to'][_0x2fc970(0x2e9)])return _0xe9b7f0;const _0x33c836=_univerjs_core['Tools'][_0x2fc970(0x3ce)](_0x201906),_0x217110=_univerjs_core[_0x2fc970(0x1a6)][_0x2fc970(0x3ce)](_0x36842e),_0x1ac520=_0x201906[_0x2fc970(0x1a4)]['sourceRange'],_0x4ed3e9=_0x201906['params'][_0x2fc970(0x373)];if(_0x201906[_0x2fc970(0x1a4)]['subUnitId']===_0x36842e[_0x2fc970(0x1a4)]['from'][_0x2fc970(0x2e9)]){const _0x3b66bf=new _univerjs_core[(_0x2fc970(0x2e2))](_0x217110[_0x2fc970(0x1a4)][_0x2fc970(0x3fc)]['value']),_0x1452ba=_0x3b66bf['getDataRange']();if(intersect({'start':_0x1ac520['startRow'],'end':_0x1ac520[_0x2fc970(0x342)]},{'start':_0x1452ba[_0x2fc970(0x1e8)],'end':_0x1452ba[_0x2fc970(0x342)]})||intersect({'start':_0x4ed3e9[_0x2fc970(0x1e8)],'end':_0x4ed3e9[_0x2fc970(0x342)]},{'start':_0x1452ba['startRow'],'end':_0x1452ba[_0x2fc970(0x342)]}))return{'error':new Error(_0x2fc970(0x259))};const _0x2f61e9=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x1ac520[_0x2fc970(0x1e8)],'end':_0x1ac520[_0x2fc970(0x342)]},{'start':_0x4ed3e9['startRow'],'end':_0x4ed3e9[_0x2fc970(0x342)]},{'start':_0x1452ba[_0x2fc970(0x1e8)],'end':_0x1452ba['endRow']});if(_0x2f61e9['length']!==0x0)return{'error':new Error(_0x2fc970(0x259))};if(_0x2f61e9[_0x2fc970(0x2d0)]!==0x0)_0x3b66bf[_0x2fc970(0x3a6)](_0x1ac520['startRow'],_0x1ac520[_0x2fc970(0x342)]-_0x1ac520['startRow']+0x1,_0x4ed3e9[_0x2fc970(0x1e8)]);_0x217110[_0x2fc970(0x1a4)]['from'][_0x2fc970(0x1df)]=_0x3b66bf[_0x2fc970(0x1c4)]();}if(_0x201906[_0x2fc970(0x1a4)][_0x2fc970(0x2e9)]===_0x36842e[_0x2fc970(0x1a4)]['to'][_0x2fc970(0x2e9)]){const _0x25c92d=new _univerjs_core[(_0x2fc970(0x2e2))](_0x217110[_0x2fc970(0x1a4)]['to'][_0x2fc970(0x1df)]),_0x230914=_0x25c92d['getDataRange']();if(intersect({'start':_0x1ac520[_0x2fc970(0x1e8)],'end':_0x1ac520[_0x2fc970(0x342)]},{'start':_0x230914[_0x2fc970(0x1e8)],'end':_0x230914['endRow']})||intersect({'start':_0x4ed3e9['startRow'],'end':_0x4ed3e9[_0x2fc970(0x342)]},{'start':_0x230914[_0x2fc970(0x1e8)],'end':_0x230914[_0x2fc970(0x342)]}))return{'error':new Error(_0x2fc970(0x259))};const _0x20aa46=(0x0,_univerjs_sheets[_0x2fc970(0x233)])({'start':_0x1ac520[_0x2fc970(0x1e8)],'end':_0x1ac520[_0x2fc970(0x342)]},{'start':_0x4ed3e9[_0x2fc970(0x1e8)],'end':_0x4ed3e9[_0x2fc970(0x342)]},{'start':_0x230914[_0x2fc970(0x1e8)],'end':_0x230914[_0x2fc970(0x342)]});if(_0x20aa46[_0x2fc970(0x1ba)]!==0x0)return{'error':new Error(_0x2fc970(0x259))};if(_0x20aa46[_0x2fc970(0x2d0)]!==0x0)_0x25c92d[_0x2fc970(0x3a6)](_0x1ac520[_0x2fc970(0x1e8)],_0x1ac520[_0x2fc970(0x342)]-_0x1ac520[_0x2fc970(0x1e8)]+0x1,_0x4ed3e9['startRow']);_0x217110['params']['to'][_0x2fc970(0x1df)]=_0x25c92d[_0x2fc970(0x1c4)]();}return{'m1Prime':_0x33c836,'m2Prime':_0x217110};}},moveRowMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler'(_0x3d4ccd,_0x124688){const _0xa35702=_0x151f3e,_0x1f9f42={'m1Prime':_0x3d4ccd,'m2Prime':_0x124688};if(_0x3d4ccd[_0xa35702(0x1a4)][_0xa35702(0x3a7)]!==_0x124688[_0xa35702(0x1a4)][_0xa35702(0x3a7)]||_0x3d4ccd['params'][_0xa35702(0x2e9)]!==_0x124688[_0xa35702(0x1a4)]['subUnitId'])return _0x1f9f42;const _0x475e36=_univerjs_core['Tools'][_0xa35702(0x3ce)](_0x3d4ccd),_0x3a8739=_univerjs_core[_0xa35702(0x1a6)][_0xa35702(0x3ce)](_0x124688),_0x1d0d50=_0x124688[_0xa35702(0x1a4)]['sourceRange'],_0xd9c27f=_0x124688[_0xa35702(0x1a4)][_0xa35702(0x373)],_0x10b4a9=_0x3d4ccd['params']['sourceRange'],_0x3bf5a3=_0x3d4ccd[_0xa35702(0x1a4)][_0xa35702(0x373)];if(_0x10b4a9['endRow']>=_0x1d0d50['startRow']&&_0x10b4a9['startRow']<=_0x1d0d50[_0xa35702(0x342)])return{'error':new Error(_0xa35702(0x382))};const _0x14de35=(0x0,_univerjs_sheets[_0xa35702(0x233)])({'start':_0x10b4a9[_0xa35702(0x1e8)],'end':_0x10b4a9[_0xa35702(0x342)]},{'start':_0x3bf5a3[_0xa35702(0x1e8)],'end':_0x3bf5a3[_0xa35702(0x342)]},{'start':_0x1d0d50[_0xa35702(0x1e8)],'end':_0x1d0d50['endRow']}),_0xd594ae=(0x0,_univerjs_sheets[_0xa35702(0x233)])({'start':_0x10b4a9[_0xa35702(0x1e8)],'end':_0x10b4a9[_0xa35702(0x342)]},{'start':_0x3bf5a3[_0xa35702(0x1e8)],'end':_0x3bf5a3[_0xa35702(0x342)]},{'start':_0xd9c27f[_0xa35702(0x1e8)],'end':_0xd9c27f[_0xa35702(0x342)]});if(_0x14de35&&_0xd594ae)_0x3a8739[_0xa35702(0x1a4)]['sourceRange'][_0xa35702(0x1e8)]+=_0x14de35[_0xa35702(0x2d0)],_0x3a8739[_0xa35702(0x1a4)]['sourceRange'][_0xa35702(0x342)]+=_0x14de35[_0xa35702(0x2d0)]+(_0x14de35['length']||0x0),_0x3a8739['params'][_0xa35702(0x373)][_0xa35702(0x1e8)]+=_0xd594ae[_0xa35702(0x2d0)],_0x3a8739[_0xa35702(0x1a4)][_0xa35702(0x373)][_0xa35702(0x342)]+=_0xd594ae[_0xa35702(0x2d0)]+(_0xd594ae[_0xa35702(0x1ba)]||0x0);else _0x3a8739['id']=_univerjs_sheets[_0xa35702(0x36d)]['id'];const _0x1f58a9=(0x0,_univerjs_sheets[_0xa35702(0x233)])({'start':_0x1d0d50[_0xa35702(0x1e8)],'end':_0x1d0d50[_0xa35702(0x342)]},{'start':_0xd9c27f[_0xa35702(0x1e8)],'end':_0xd9c27f[_0xa35702(0x342)]},{'start':_0x10b4a9[_0xa35702(0x1e8)],'end':_0x10b4a9['endRow']}),_0xf454ad=(0x0,_univerjs_sheets[_0xa35702(0x233)])({'start':_0x1d0d50[_0xa35702(0x1e8)],'end':_0x1d0d50['endRow']},{'start':_0xd9c27f[_0xa35702(0x1e8)],'end':_0xd9c27f[_0xa35702(0x342)]},{'start':_0x3bf5a3[_0xa35702(0x1e8)],'end':_0x3bf5a3['endRow']});if(_0x1f58a9&&_0xf454ad)_0x475e36[_0xa35702(0x1a4)][_0xa35702(0x195)][_0xa35702(0x1e8)]+=_0x1f58a9['step'],_0x475e36[_0xa35702(0x1a4)][_0xa35702(0x195)][_0xa35702(0x342)]+=_0x1f58a9[_0xa35702(0x2d0)]+(_0x1f58a9[_0xa35702(0x1ba)]||0x0),_0x475e36['params']['targetRange'][_0xa35702(0x1e8)]+=_0xf454ad[_0xa35702(0x2d0)],_0x475e36[_0xa35702(0x1a4)][_0xa35702(0x373)]['endRow']+=_0xf454ad['step']+(_0xf454ad[_0xa35702(0x1ba)]||0x0);else _0x475e36['id']=_univerjs_sheets[_0xa35702(0x36d)]['id'];return{'m1Prime':_0x475e36,'m2Prime':_0x3a8739};}},moveRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x1fe73a,_0x231a0d){const _0x5a44e9=_0x151f3e,_0x16597a={'m1Prime':_0x1fe73a,'m2Prime':_0x231a0d};if(_0x1fe73a['params'][_0x5a44e9(0x3a7)]!==_0x231a0d['params'][_0x5a44e9(0x3a7)]||_0x1fe73a[_0x5a44e9(0x1a4)]['subUnitId']!==_0x231a0d[_0x5a44e9(0x1a4)][_0x5a44e9(0x2e9)])return _0x16597a;const _0x57b07a=_univerjs_core['Tools'][_0x5a44e9(0x3ce)](_0x1fe73a),_0x59ec5a=_univerjs_core[_0x5a44e9(0x1a6)][_0x5a44e9(0x3ce)](_0x231a0d),{sourceRange:_0x29473a,targetRange:_0x220797}=_0x1fe73a['params'],_0x462e56={'start':_0x29473a[_0x5a44e9(0x1e8)],'end':_0x29473a[_0x5a44e9(0x342)]},_0x138448={'start':_0x220797[_0x5a44e9(0x1e8)],'end':_0x220797[_0x5a44e9(0x342)]};if(_0x59ec5a[_0x5a44e9(0x1a4)][_0x5a44e9(0x286)][_0x5a44e9(0x3a1)](_0xaf3713=>{const _0x1b6888=_0x5a44e9,_0x51d50e={'start':_0xaf3713[_0x1b6888(0x1e8)],'end':_0xaf3713[_0x1b6888(0x342)]},_0x5a83cf=intersect(_0x462e56,_0x51d50e),_0x26ac33=intersect(_0x138448,_0x51d50e);if(_0x5a83cf||_0x26ac33)return!![];const _0x511aa9=(0x0,_univerjs_sheets[_0x1b6888(0x233)])(_0x462e56,_0x138448,_0x51d50e);if(_0x511aa9[_0x1b6888(0x1ba)]!==0x0)return!![];return _0xaf3713[_0x1b6888(0x1e8)]+=_0x511aa9[_0x1b6888(0x2d0)],_0xaf3713[_0x1b6888(0x342)]+=_0x511aa9['step'],![];}))return{'error':new Error(_0x5a44e9(0x3b2))};return{'m1Prime':_0x57b07a,'m2Prime':_0x59ec5a};}},moveRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0xbd3327,_0x3e3e55){const _0x4abe61=_0x151f3e,_0xa0453=_univerjs_core[_0x4abe61(0x1a6)]['deepClone'](_0xbd3327),_0x5d84c4=_univerjs_core[_0x4abe61(0x1a6)]['deepClone'](_0x3e3e55);if(_0xbd3327[_0x4abe61(0x1a4)][_0x4abe61(0x3a7)]!==_0x3e3e55[_0x4abe61(0x1a4)][_0x4abe61(0x3a7)]||_0xbd3327[_0x4abe61(0x1a4)]['subUnitId']!==_0x3e3e55['params']['subUnitId'])return{'m1Prime':_0xa0453,'m2Prime':_0x5d84c4};const _0x1ceab2=_0x5d84c4[_0x4abe61(0x1a4)][_0x4abe61(0x286)]['reduce']((_0x39187f,_0x453c0b)=>{const _0x53278f=_0x4abe61,{sourceRange:_0x5d87a9,targetRange:_0x5c1906}=_0xbd3327[_0x53278f(0x1a4)],_0x2251ac={..._0x453c0b};if(_0x5d87a9['endRow']<_0x2251ac[_0x53278f(0x1e8)]&&_0x5c1906['startRow']>_0x2251ac[_0x53278f(0x342)])_0x2251ac['startRow']-=_0x5d87a9[_0x53278f(0x342)]-_0x5d87a9[_0x53278f(0x1e8)]+0x1,_0x2251ac['endRow']-=_0x5d87a9[_0x53278f(0x342)]-_0x5d87a9['startRow']+0x1,isMergeCell(_0x2251ac)&&_0x39187f[_0x53278f(0x1c6)](_0x2251ac);else{if(_0x5d87a9[_0x53278f(0x1e8)]>_0x2251ac[_0x53278f(0x342)]&&_0x5c1906[_0x53278f(0x342)]<_0x2251ac['startRow'])_0x2251ac[_0x53278f(0x1e8)]+=_0x5d87a9[_0x53278f(0x342)]-_0x5d87a9[_0x53278f(0x1e8)]+0x1,_0x2251ac[_0x53278f(0x342)]+=_0x5d87a9[_0x53278f(0x342)]-_0x5d87a9[_0x53278f(0x1e8)]+0x1,isMergeCell(_0x2251ac)&&_0x39187f[_0x53278f(0x1c6)](_0x2251ac);else{if(_univerjs_core[_0x53278f(0x1d9)][_0x53278f(0x1ab)](_0x2251ac,_0x5d87a9)||_univerjs_core['Rectangle'][_0x53278f(0x1ab)](_0x2251ac,_0x5c1906)){}else _0x39187f[_0x53278f(0x1c6)](_0x2251ac);}}return _0x39187f;},[]);_0x5d84c4['params']['ranges']=_0x1ceab2;if(_0x5d84c4[_0x4abe61(0x1a4)]['ranges'][_0x4abe61(0x1ba)]===0x0)_0x5d84c4['id']=_univerjs_sheets[_0x4abe61(0x36d)]['id'];return{'m1Prime':_0xa0453,'m2Prime':_0x5d84c4};}},moveRowMutationWithReorderRange={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x357b3c,_0x161064){const _0x445397=_0x151f3e,_0x4e3b49={'m1Prime':_0x357b3c,'m2Prime':_0x161064};if(_0x357b3c[_0x445397(0x1a4)]['unitId']!==_0x161064[_0x445397(0x1a4)][_0x445397(0x3a7)]||_0x357b3c['params'][_0x445397(0x2e9)]!==_0x161064[_0x445397(0x1a4)][_0x445397(0x2e9)])return _0x4e3b49;const _0x2b725b=orderMapGenerator(_0x357b3c[_0x445397(0x1a4)][_0x445397(0x195)],_0x357b3c['params'][_0x445397(0x373)]),_0x5371dd=_univerjs_core['Tools'][_0x445397(0x3ce)](_0x161064),{range:_0x250e41}=_0x5371dd[_0x445397(0x1a4)],_0x45d085=Array[_0x445397(0x3fc)]({'length':_0x250e41[_0x445397(0x342)]-_0x250e41[_0x445397(0x1e8)]+0x1},(_0x114bf8,_0x113cd1)=>_0x113cd1+_0x250e41[_0x445397(0x1e8)]),_0x4d5cb4={},_0x4685fe={},_0x1fe6da=Math[_0x445397(0x308)](_0x357b3c['params']['sourceRange'][_0x445397(0x1e8)],_0x357b3c['params']['targetRange'][_0x445397(0x1e8)],..._0x45d085),_0xf4edaa=Math['max'](_0x357b3c[_0x445397(0x1a4)][_0x445397(0x195)]['endRow'],_0x357b3c[_0x445397(0x1a4)][_0x445397(0x373)][_0x445397(0x342)],..._0x45d085);for(let _0x93166f=_0x1fe6da;_0x93166f<=_0xf4edaa;_0x93166f++){var _0x3bd849;const _0x27730f=_0x93166f,_0x287e1d=(_0x3bd849=_0x161064[_0x445397(0x1a4)][_0x445397(0x282)][_0x93166f])!==null&&_0x3bd849!==void 0x0?_0x3bd849:_0x27730f,_0x3e6159=_0x2b725b(_0x287e1d);if(_0x27730f!==_0x3e6159)_0x4d5cb4[_0x27730f]=_0x3e6159;if(_0x287e1d!==_0x3e6159)_0x4685fe[_0x287e1d]=_0x3e6159;}_0x5371dd[_0x445397(0x1a4)][_0x445397(0x282)]=_0x4d5cb4;const _0x4428ea=Object[_0x445397(0x2d4)](_0x4d5cb4)[_0x445397(0x284)](Number);_0x250e41[_0x445397(0x1e8)]=Math['min'](..._0x4428ea),_0x250e41[_0x445397(0x342)]=Math[_0x445397(0x2db)](..._0x4428ea);const _0x361122=[_0x357b3c],_0x1629b8=Object[_0x445397(0x2d4)](_0x4685fe)[_0x445397(0x284)](Number);if(_0x1629b8[_0x445397(0x1ba)]>0x0)_0x361122[_0x445397(0x3e8)]({'id':_univerjs_sheets[_0x445397(0x3dd)]['id'],'params':{'unitId':_0x357b3c[_0x445397(0x1a4)]['unitId'],'subUnitId':_0x357b3c[_0x445397(0x1a4)][_0x445397(0x2e9)],'range':{'startColumn':_0x161064[_0x445397(0x1a4)][_0x445397(0x1b6)]['startColumn'],'endColumn':_0x161064[_0x445397(0x1a4)][_0x445397(0x1b6)][_0x445397(0x350)],'startRow':Math[_0x445397(0x308)](..._0x1629b8),'endRow':Math['max'](..._0x1629b8)},'order':_0x4685fe}});return{'m1Prime':_0x361122,'m2Prime':_0x5371dd};}},orderMapGenerator=(_0xbebf2d,_0x22cf04)=>{const _0x153ade=_0x151f3e,_0x1d3585=_0xbebf2d[_0x153ade(0x342)]-_0xbebf2d['startRow']+0x1,_0xa8512b=_0xbebf2d[_0x153ade(0x1e8)],_0x2cb6c0=_0x22cf04[_0x153ade(0x1e8)];return _0x4b66f5=>{const _0x2e38ec=_0x153ade;if(_0xa8512b<=_0x2cb6c0){const _0x4fdae4=_0x22cf04[_0x2e38ec(0x1e8)]-_0xbebf2d[_0x2e38ec(0x342)]-0x1;if(_0x4b66f5>=_0xbebf2d['startRow']&&_0x4b66f5<=_0xbebf2d['endRow'])return _0x4b66f5+_0x4fdae4;else{if(_0x4b66f5>_0xbebf2d[_0x2e38ec(0x342)]&&_0x4b66f5<_0x22cf04['startRow'])return _0x4b66f5-_0x1d3585;}}if(_0xa8512b>_0x2cb6c0){const _0x47f92b=_0xbebf2d[_0x2e38ec(0x1e8)]-_0x22cf04[_0x2e38ec(0x1e8)];if(_0x4b66f5>=_0x22cf04[_0x2e38ec(0x1e8)]&&_0x4b66f5<_0xbebf2d[_0x2e38ec(0x1e8)])return _0x4b66f5+_0x1d3585;else{if(_0x4b66f5>=_0xbebf2d[_0x2e38ec(0x1e8)]&&_0x4b66f5<=_0xbebf2d[_0x2e38ec(0x342)])return _0x4b66f5-_0x47f92b;}}return _0x4b66f5;};},moveRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x10944b,_0x103770){const _0x2fd4ca=_0x151f3e,_0x4d870e={'m1Prime':_0x10944b,'m2Prime':_0x103770};if(_0x10944b[_0x2fd4ca(0x1a4)]['unitId']!==_0x103770[_0x2fd4ca(0x1a4)]['unitId']||_0x10944b[_0x2fd4ca(0x1a4)][_0x2fd4ca(0x2e9)]!==_0x103770['params'][_0x2fd4ca(0x2e9)])return _0x4d870e;const _0x51e60d=[_univerjs_core[_0x2fd4ca(0x1a6)][_0x2fd4ca(0x3ce)](_0x10944b)],_0x356608=_univerjs_core[_0x2fd4ca(0x1a6)][_0x2fd4ca(0x3ce)](_0x103770),{sourceRange:_0xd43aa0,targetRange:_0x12218f}=_0x10944b['params'],_0x1cb43b={'start':_0xd43aa0[_0x2fd4ca(0x1e8)],'end':_0xd43aa0[_0x2fd4ca(0x342)]},_0x2939a4={'start':_0x12218f['startRow'],'end':_0x12218f['endRow']},{values:_0x2d8e23}=_0x356608[_0x2fd4ca(0x1a4)],_0x269524=[];let _0x45790e=![];for(const _0x3c732d in _0x2d8e23){const _0x39590b=_0x2d8e23[_0x3c732d];_0x269524[_0x2fd4ca(0x1c6)](..._0x39590b[_0x2fd4ca(0x286)]);if(_0x39590b['ranges'][_0x2fd4ca(0x3a1)](_0x3a58f2=>{const _0x17c72e=_0x2fd4ca,_0x2f5991={'start':_0x3a58f2[_0x17c72e(0x1e8)],'end':_0x3a58f2[_0x17c72e(0x342)]},_0x53e142=intersect(_0x1cb43b,_0x2f5991),_0x2f7c9a=intersect(_0x2939a4,_0x2f5991);if(_0x53e142||_0x2f7c9a)return!![];const _0x1484ef=(0x0,_univerjs_sheets[_0x17c72e(0x233)])(_0x1cb43b,_0x2939a4,_0x2f5991);if(_0x1484ef[_0x17c72e(0x1ba)]!==0x0)return!![];if(_0x1484ef[_0x17c72e(0x2d0)]!==0x0)_0x45790e=!![];return _0x3a58f2[_0x17c72e(0x1e8)]+=_0x1484ef[_0x17c72e(0x2d0)],_0x3a58f2[_0x17c72e(0x342)]+=_0x1484ef['step'],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20numfmft')};}if(_0x45790e){const _0x11201b={'id':_univerjs_sheets[_0x2fd4ca(0x2b1)]['id'],'params':{'unitId':_0x103770[_0x2fd4ca(0x1a4)][_0x2fd4ca(0x3a7)],'subUnitId':_0x103770[_0x2fd4ca(0x1a4)][_0x2fd4ca(0x2e9)],'ranges':_0x269524}};_0x51e60d[_0x2fd4ca(0x1c6)](_0x11201b,_0x356608);}return{'m1Prime':_0x51e60d,'m2Prime':_0x356608};}},moveRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0xa4e496,_0x1239c5){const _0x2cbe90=_0x151f3e,_0xbb6802={'m1Prime':_0xa4e496,'m2Prime':_0x1239c5};if(_0xa4e496[_0x2cbe90(0x1a4)][_0x2cbe90(0x3a7)]!==_0x1239c5[_0x2cbe90(0x1a4)]['unitId']||_0xa4e496[_0x2cbe90(0x1a4)][_0x2cbe90(0x2e9)]!==_0x1239c5[_0x2cbe90(0x1a4)]['subUnitId'])return _0xbb6802;const _0x1e8b6b=[_univerjs_core[_0x2cbe90(0x1a6)][_0x2cbe90(0x3ce)](_0xa4e496)],_0x3461e9=_univerjs_core[_0x2cbe90(0x1a6)][_0x2cbe90(0x3ce)](_0x1239c5),_0x2dc4f4=new _univerjs_core[(_0x2cbe90(0x2e2))](_0x3461e9[_0x2cbe90(0x1a4)][_0x2cbe90(0x30b)]),{sourceRange:_0x2b7aeb,targetRange:_0x2f22bf}=_0xa4e496[_0x2cbe90(0x1a4)],_0x248236=_0x2b7aeb[_0x2cbe90(0x1e8)],_0x4034fe=_0x2b7aeb[_0x2cbe90(0x342)]-_0x2b7aeb[_0x2cbe90(0x1e8)]+0x1,_0x4e054c=_0x2f22bf[_0x2cbe90(0x1e8)];_0x2dc4f4[_0x2cbe90(0x3a6)](_0x248236,_0x4034fe,_0x4e054c);const _0x3a12d3=new _univerjs_core['ObjectMatrix']();let _0x5f2a83=![];_0x2dc4f4['forValue']((_0x5332cd,_0x4865d1,_0x3c76de)=>{const _0x3c464c=_0x2cbe90;if(_0x3c76de&&_0x3c76de['f']){const _0x50b84e=_0x3c76de['f'];let _0x590713=![];const _0x2920fe=processFormulaString(_0xa4e496[_0x3c464c(0x1a4)][_0x3c464c(0x3a7)],_0xa4e496['params'][_0x3c464c(0x2e9)],_0x50b84e,_0x30711f=>{const _0x53862b=_0x3c464c,_0x79e183=(0x0,_univerjs_sheets[_0x53862b(0x233)])({'start':_0xa4e496['params']['sourceRange']['startRow'],'end':_0xa4e496[_0x53862b(0x1a4)]['sourceRange'][_0x53862b(0x342)]},{'start':_0xa4e496[_0x53862b(0x1a4)]['targetRange'][_0x53862b(0x1e8)],'end':_0xa4e496['params'][_0x53862b(0x373)]['endRow']},{'start':_0x30711f[_0x53862b(0x1e8)],'end':_0x30711f[_0x53862b(0x342)]});return(_0x79e183[_0x53862b(0x2d0)]!==0x0||_0x79e183[_0x53862b(0x1ba)]!==0x0)&&(_0x590713=!![],_0x30711f['startRow']+=_0x79e183[_0x53862b(0x2d0)],_0x30711f[_0x53862b(0x342)]+=_0x79e183[_0x53862b(0x2d0)]+_0x79e183[_0x53862b(0x1ba)]),_0x30711f;});_0x590713&&(_0x5f2a83=!![],_0x3c76de['f']=_0x2920fe,_0x3a12d3[_0x3c464c(0x1af)](_0x5332cd,_0x4865d1,{..._0x3c76de}));}});if(_0x5f2a83){const _0x2e6753={'id':_univerjs_sheets[_0x2cbe90(0x203)]['id'],'params':{'unitId':_0x1239c5['params']['unitId'],'subUnitId':_0x1239c5[_0x2cbe90(0x1a4)]['subUnitId'],'cellValue':_0x3a12d3['getMatrix']()}};_0x1e8b6b[_0x2cbe90(0x1c6)](_0x2e6753);}return _0x3461e9[_0x2cbe90(0x1a4)][_0x2cbe90(0x30b)]=_0x2dc4f4['getMatrix'](),{'m1Prime':_0x1e8b6b,'m2Prime':_0x3461e9};}},moveRowMutationWithSetRowData={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x39a)]['id'],'handler'(_0x18cba4,_0x3dcaf2){const _0x57f4b9=_0x151f3e,_0x1216ca={'m1Prime':_0x18cba4,'m2Prime':_0x3dcaf2};if(_0x18cba4[_0x57f4b9(0x1a4)][_0x57f4b9(0x3a7)]!==_0x3dcaf2['params'][_0x57f4b9(0x3a7)]||_0x18cba4[_0x57f4b9(0x1a4)][_0x57f4b9(0x2e9)]!==_0x3dcaf2[_0x57f4b9(0x1a4)][_0x57f4b9(0x2e9)])return _0x1216ca;const _0xaaa840=_univerjs_core[_0x57f4b9(0x1a6)][_0x57f4b9(0x3ce)](_0x18cba4),_0x2681fc=_univerjs_core[_0x57f4b9(0x1a6)][_0x57f4b9(0x3ce)](_0x3dcaf2),{rowData:_0x4b5f30}=_0x2681fc[_0x57f4b9(0x1a4)],{sourceRange:_0x151e0a,targetRange:_0x4dd7ff}=_0x18cba4[_0x57f4b9(0x1a4)];return(0x0,_univerjs_core[_0x57f4b9(0x388)])(_0x151e0a[_0x57f4b9(0x1e8)],_0x151e0a[_0x57f4b9(0x342)]-_0x151e0a['startRow']+0x1,_0x4dd7ff['startRow'],_0x4b5f30),{'m1Prime':_0xaaa840,'m2Prime':_0x2681fc};}},moveRowMutationWithSetRowHidden={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets['SetRowHiddenMutation']['id'],'handler'(_0x180627,_0x224260){const _0x119b9d=_0x151f3e,_0x28aa4d={'m1Prime':_0x180627,'m2Prime':_0x224260};if(_0x180627[_0x119b9d(0x1a4)][_0x119b9d(0x3a7)]!==_0x224260[_0x119b9d(0x1a4)]['unitId']||_0x180627['params'][_0x119b9d(0x2e9)]!==_0x224260[_0x119b9d(0x1a4)][_0x119b9d(0x2e9)])return _0x28aa4d;const _0x53d0bf=_univerjs_core[_0x119b9d(0x1a6)][_0x119b9d(0x3ce)](_0x180627),_0x44bae9=_univerjs_core[_0x119b9d(0x1a6)]['deepClone'](_0x224260),{ranges:_0x531045}=_0x44bae9[_0x119b9d(0x1a4)],{sourceRange:_0x5de9f4,targetRange:_0x31ca65}=_0x180627['params'],_0x2590c4={'start':_0x5de9f4[_0x119b9d(0x1e8)],'end':_0x5de9f4['endRow']},_0x5bfba5={'start':_0x31ca65[_0x119b9d(0x1e8)],'end':_0x31ca65[_0x119b9d(0x342)]};if(_0x531045[_0x119b9d(0x3a1)](_0x36ca66=>{const _0xf11788=_0x119b9d,_0x3d7e15={'start':_0x36ca66[_0xf11788(0x1e8)],'end':_0x36ca66[_0xf11788(0x342)]},_0x2fb75e=intersect(_0x2590c4,_0x3d7e15),_0x5b5939=intersect(_0x5bfba5,_0x3d7e15);if(_0x2fb75e||_0x5b5939)return!![];const _0xfd821=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0x2590c4,_0x5bfba5,_0x3d7e15);if(_0xfd821[_0xf11788(0x1ba)]!==0x0)return!![];return _0x36ca66[_0xf11788(0x1e8)]+=_0xfd821[_0xf11788(0x2d0)],_0x36ca66[_0xf11788(0x342)]+=_0xfd821[_0xf11788(0x2d0)],![];}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden')};return{'m1Prime':_0x53d0bf,'m2Prime':_0x44bae9};}},moveRowMutationWithSetRowVisible={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x327)]['id'],'handler'(_0x4bdba1,_0x2b4cca){const _0x35c3e8=_0x151f3e,_0x3fdf38={'m1Prime':_0x4bdba1,'m2Prime':_0x2b4cca};if(_0x4bdba1[_0x35c3e8(0x1a4)][_0x35c3e8(0x3a7)]!==_0x2b4cca[_0x35c3e8(0x1a4)][_0x35c3e8(0x3a7)]||_0x4bdba1['params'][_0x35c3e8(0x2e9)]!==_0x2b4cca[_0x35c3e8(0x1a4)][_0x35c3e8(0x2e9)])return _0x3fdf38;const _0x10ea8c=_univerjs_core[_0x35c3e8(0x1a6)][_0x35c3e8(0x3ce)](_0x4bdba1),_0x437f71=_univerjs_core['Tools']['deepClone'](_0x2b4cca),{ranges:_0x319474}=_0x437f71['params'],{sourceRange:_0x4cdfb7,targetRange:_0x1f03eb}=_0x4bdba1['params'],_0x228663={'start':_0x4cdfb7[_0x35c3e8(0x1e8)],'end':_0x4cdfb7[_0x35c3e8(0x342)]},_0x47a734={'start':_0x1f03eb['startRow'],'end':_0x1f03eb[_0x35c3e8(0x342)]};if(_0x319474['some'](_0xaa7775=>{const _0xc8dc05=_0x35c3e8,_0x4b5956={'start':_0xaa7775[_0xc8dc05(0x1e8)],'end':_0xaa7775[_0xc8dc05(0x342)]},_0x25e954=intersect(_0x228663,_0x4b5956),_0x220711=intersect(_0x47a734,_0x4b5956);if(_0x25e954||_0x220711)return!![];const _0x105084=(0x0,_univerjs_sheets[_0xc8dc05(0x233)])(_0x228663,_0x47a734,_0x4b5956);if(_0x105084[_0xc8dc05(0x1ba)]!==0x0)return!![];return _0xaa7775[_0xc8dc05(0x1e8)]+=_0x105084[_0xc8dc05(0x2d0)],_0xaa7775['endRow']+=_0x105084[_0xc8dc05(0x2d0)],![];}))return{'error':new Error(_0x35c3e8(0x292))};return{'m1Prime':_0x10ea8c,'m2Prime':_0x437f71};}},moveRowMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0xcce2d6,_0x25c13c){const _0x28ca08=_0x151f3e,_0x40740e={'m1Prime':[],'m2Prime':[]};if(_0xcce2d6[_0x28ca08(0x1a4)][_0x28ca08(0x3a7)]!==_0x25c13c[_0x28ca08(0x1a4)]['unitId']||_0xcce2d6[_0x28ca08(0x1a4)][_0x28ca08(0x2e9)]!==_0x25c13c[_0x28ca08(0x1a4)][_0x28ca08(0x2e9)])return _0x40740e;const _0x314bd1=_univerjs_core[_0x28ca08(0x1a6)][_0x28ca08(0x3ce)](_0x25c13c);let _0x374de4=![];_0x314bd1[_0x28ca08(0x1a4)][_0x28ca08(0x198)]['forEach'](_0x3f0fb4=>{const _0x432cd3=_0x28ca08,{range:_0x24129e,primary:_0x2aca28}=_0x3f0fb4,_0x45a5c5=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0xcce2d6['params'][_0x432cd3(0x195)][_0x432cd3(0x1e8)],'end':_0xcce2d6[_0x432cd3(0x1a4)][_0x432cd3(0x195)]['endRow']},{'start':_0xcce2d6['params'][_0x432cd3(0x373)][_0x432cd3(0x1e8)],'end':_0xcce2d6[_0x432cd3(0x1a4)][_0x432cd3(0x373)][_0x432cd3(0x342)]},{'start':_0x24129e['startRow'],'end':_0x24129e[_0x432cd3(0x342)]});if(_0x45a5c5[_0x432cd3(0x1ba)]||_0x45a5c5[_0x432cd3(0x2d0)]){_0x24129e[_0x432cd3(0x1e8)]+=_0x45a5c5[_0x432cd3(0x2d0)],_0x24129e[_0x432cd3(0x342)]+=_0x45a5c5['step']+(_0x45a5c5[_0x432cd3(0x1ba)]||0x0);if(_0x2aca28){const _0xd537a3=(0x0,_univerjs_sheets[_0x432cd3(0x233)])({'start':_0xcce2d6[_0x432cd3(0x1a4)][_0x432cd3(0x195)][_0x432cd3(0x1e8)],'end':_0xcce2d6['params']['sourceRange'][_0x432cd3(0x342)]},{'start':_0xcce2d6[_0x432cd3(0x1a4)][_0x432cd3(0x373)]['startRow'],'end':_0xcce2d6['params'][_0x432cd3(0x373)]['endRow']},{'start':_0x2aca28[_0x432cd3(0x1e8)],'end':_0x2aca28[_0x432cd3(0x342)]});(_0xd537a3[_0x432cd3(0x1ba)]||_0xd537a3['step'])&&(_0x2aca28[_0x432cd3(0x1e8)]+=_0xd537a3[_0x432cd3(0x2d0)],_0x2aca28[_0x432cd3(0x342)]+=_0xd537a3[_0x432cd3(0x2d0)],_0x2aca28['actualRow']+=_0xd537a3[_0x432cd3(0x2d0)]);}_0x374de4=!![];}});if(_0x374de4)_0x40740e['m2Prime'][_0x28ca08(0x1c6)](_0x314bd1);return _0x40740e;}},moveRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x368e49,_0x33a2ca){const _0xcd1490=_0x151f3e,_0x525f4e={'m1Prime':[_0x368e49],'m2Prime':[_0x33a2ca]};if(_0x368e49[_0xcd1490(0x1a4)][_0xcd1490(0x3a7)]!==_0x33a2ca[_0xcd1490(0x1a4)][_0xcd1490(0x3a7)]||_0x368e49[_0xcd1490(0x1a4)][_0xcd1490(0x2e9)]!==_0x33a2ca[_0xcd1490(0x1a4)][_0xcd1490(0x2e9)])return _0x525f4e;const _0x597909=_univerjs_core[_0xcd1490(0x1a6)]['deepClone'](_0x368e49),_0x11ba71=_univerjs_core[_0xcd1490(0x1a6)][_0xcd1490(0x3ce)](_0x33a2ca),_0x498f53=(0x0,_univerjs_sheets[_0xcd1490(0x233)])({'start':_0x368e49[_0xcd1490(0x1a4)]['sourceRange']['startRow'],'end':_0x368e49['params'][_0xcd1490(0x195)]['endRow']},{'start':_0x368e49[_0xcd1490(0x1a4)][_0xcd1490(0x373)][_0xcd1490(0x1e8)],'end':_0x368e49[_0xcd1490(0x1a4)][_0xcd1490(0x373)][_0xcd1490(0x342)]},{'start':_0x33a2ca['params'][_0xcd1490(0x1b6)]['startRow'],'end':_0x33a2ca[_0xcd1490(0x1a4)]['range'][_0xcd1490(0x342)]});return _0x11ba71[_0xcd1490(0x1a4)][_0xcd1490(0x1b6)][_0xcd1490(0x1e8)]+=_0x498f53['step'],_0x11ba71[_0xcd1490(0x1a4)][_0xcd1490(0x1b6)][_0xcd1490(0x342)]+=_0x498f53[_0xcd1490(0x2d0)]+_0x498f53[_0xcd1490(0x1ba)],{'m1Prime':[_0x11ba71,_0x597909],'m2Prime':[_0x11ba71]};}},moveRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f8)]['id'],'handler'(_0x5b46cd,_0x18778e){const _0x4207d6=_0x151f3e,_0x31b82e={'m1Prime':_0x5b46cd,'m2Prime':_0x18778e};if(_0x5b46cd[_0x4207d6(0x1a4)][_0x4207d6(0x3a7)]!==_0x18778e[_0x4207d6(0x1a4)]['unitId']||_0x5b46cd['params'][_0x4207d6(0x2e9)]!==_0x18778e[_0x4207d6(0x1a4)][_0x4207d6(0x2e9)])return _0x31b82e;const _0x33b5ba=_univerjs_core[_0x4207d6(0x1a6)]['deepClone'](_0x5b46cd),_0x3a3a71=_univerjs_core[_0x4207d6(0x1a6)][_0x4207d6(0x3ce)](_0x18778e),{rowsAutoHeightInfo:_0x45f8e2}=_0x3a3a71[_0x4207d6(0x1a4)],{sourceRange:_0x525d82,targetRange:_0x4c301b}=_0x5b46cd[_0x4207d6(0x1a4)],_0x3fca3a={'start':_0x525d82['startRow'],'end':_0x525d82[_0x4207d6(0x342)]},_0x5e6927={'start':_0x4c301b[_0x4207d6(0x1e8)],'end':_0x4c301b['endRow']};if(_0x45f8e2['some'](_0x198e3c=>{const _0x2c9529=_0x4207d6,_0x5055db=(0x0,_univerjs_sheets[_0x2c9529(0x233)])(_0x3fca3a,_0x5e6927,{'start':_0x198e3c[_0x2c9529(0x1d0)],'end':_0x198e3c[_0x2c9529(0x1d0)]});if(_0x5055db[_0x2c9529(0x1ba)]!==0x0)return!![];return _0x198e3c['row']+=_0x5055db[_0x2c9529(0x2d0)],![];}))return{'error':new Error(_0x4207d6(0x263))};return{'m1Prime':_0x33b5ba,'m2Prime':_0x3a3a71};}},moveRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f2)]['id'],'handler'(_0x2cb86d,_0x2e626d){const _0x4b5ab4=_0x151f3e,_0x23321b={'m1Prime':_0x2cb86d,'m2Prime':_0x2e626d};if(_0x2cb86d[_0x4b5ab4(0x1a4)][_0x4b5ab4(0x3a7)]!==_0x2e626d['params'][_0x4b5ab4(0x3a7)]||_0x2cb86d['params']['subUnitId']!==_0x2e626d[_0x4b5ab4(0x1a4)]['subUnitId'])return _0x23321b;const _0x4fdb57=_univerjs_core[_0x4b5ab4(0x1a6)]['deepClone'](_0x2cb86d),_0x39ff6a=_univerjs_core[_0x4b5ab4(0x1a6)]['deepClone'](_0x2e626d),{ranges:_0x44dd1e,rowHeight:_0x4766dc}=_0x39ff6a[_0x4b5ab4(0x1a4)],{sourceRange:_0x3a96be,targetRange:_0x3f86fc}=_0x2cb86d[_0x4b5ab4(0x1a4)],_0x40cef9={'start':_0x3a96be[_0x4b5ab4(0x1e8)],'end':_0x3a96be[_0x4b5ab4(0x342)]},_0xfc4ca4={'start':_0x3f86fc[_0x4b5ab4(0x1e8)],'end':_0x3f86fc[_0x4b5ab4(0x342)]};if(_0x44dd1e['some'](_0xb2f782=>{const _0x12b59b=_0x4b5ab4,_0x47a7d1=(0x0,_univerjs_sheets[_0x12b59b(0x233)])(_0x40cef9,_0xfc4ca4,{'start':_0xb2f782['startRow'],'end':_0xb2f782[_0x12b59b(0x342)]});if(_0x47a7d1[_0x12b59b(0x1ba)]!==0x0)return!![];return _0xb2f782[_0x12b59b(0x1e8)]+=_0x47a7d1[_0x12b59b(0x2d0)],_0xb2f782[_0x12b59b(0x342)]+=_0x47a7d1[_0x12b59b(0x2d0)],![];}))return{'error':new Error(_0x4b5ab4(0x25f))};if(typeof _0x4766dc!==_0x4b5ab4(0x1da))(0x0,_univerjs_core['moveMatrixArray'])(_0x3a96be[_0x4b5ab4(0x1e8)],_0x3a96be[_0x4b5ab4(0x342)]-_0x3a96be[_0x4b5ab4(0x1e8)]+0x1,_0x3f86fc[_0x4b5ab4(0x1e8)],_0x4766dc);return{'m1Prime':_0x4fdb57,'m2Prime':_0x39ff6a};}},moveRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x385)]['id'],'handler'(_0x1381d2,_0x1cd010){const _0x241397=_0x151f3e,_0x50999f={'m1Prime':_0x1381d2,'m2Prime':_0x1cd010};if(_0x1381d2[_0x241397(0x1a4)][_0x241397(0x3a7)]!==_0x1cd010[_0x241397(0x1a4)][_0x241397(0x3a7)]||_0x1381d2[_0x241397(0x1a4)][_0x241397(0x2e9)]!==_0x1cd010['params'][_0x241397(0x2e9)])return _0x50999f;const _0x18b315=_univerjs_core[_0x241397(0x1a6)][_0x241397(0x3ce)](_0x1381d2),_0x2d40a6=_univerjs_core[_0x241397(0x1a6)]['deepClone'](_0x1cd010),{ranges:_0x16ae88,autoHeightInfo:_0x2c6651}=_0x2d40a6['params'],{sourceRange:_0x1c9eda,targetRange:_0x1611df}=_0x1381d2[_0x241397(0x1a4)],_0x2d9b1c={'start':_0x1c9eda[_0x241397(0x1e8)],'end':_0x1c9eda[_0x241397(0x342)]},_0x573e73={'start':_0x1611df[_0x241397(0x1e8)],'end':_0x1611df[_0x241397(0x342)]};if(_0x16ae88['some'](_0x440036=>{const _0x4ef080=_0x241397,_0x22a870=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0x2d9b1c,_0x573e73,{'start':_0x440036[_0x4ef080(0x1e8)],'end':_0x440036[_0x4ef080(0x342)]});if(_0x22a870[_0x4ef080(0x1ba)]!==0x0)return!![];return _0x440036[_0x4ef080(0x1e8)]+=_0x22a870[_0x4ef080(0x2d0)],_0x440036[_0x4ef080(0x342)]+=_0x22a870[_0x4ef080(0x2d0)],![];}))return{'error':new Error(_0x241397(0x329))};if(typeof _0x2c6651!=='number')(0x0,_univerjs_core['moveMatrixArray'])(_0x1c9eda[_0x241397(0x1e8)],_0x1c9eda[_0x241397(0x342)]-_0x1c9eda['startRow']+0x1,_0x1611df[_0x241397(0x1e8)],_0x2c6651);return{'m1Prime':_0x18b315,'m2Prime':_0x2d40a6};}},moveRowsWithUpdateCommentRef={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x3696d7,_0x5656aa)=>{const _0x415e3e=_0x151f3e,_0x24142e={'m1Prime':_0x3696d7,'m2Prime':_0x5656aa};if(_0x3696d7[_0x415e3e(0x1a4)][_0x415e3e(0x3a7)]!==_0x5656aa[_0x415e3e(0x1a4)][_0x415e3e(0x3a7)]||_0x3696d7[_0x415e3e(0x1a4)]['subUnitId']!==_0x5656aa[_0x415e3e(0x1a4)]['subUnitId'])return _0x24142e;const _0x3561bd=transformUpdateCommentRefWithRefRange(_0x5656aa,{'id':_univerjs_sheets[_0x415e3e(0x1f3)]['id'],'params':{'unitId':_0x3696d7[_0x415e3e(0x1a4)][_0x415e3e(0x3a7)],'subUnitId':_0x3696d7[_0x415e3e(0x1a4)][_0x415e3e(0x2e9)],'fromRange':_0x3696d7[_0x415e3e(0x1a4)]['sourceRange'],'toRange':_0x3696d7[_0x415e3e(0x1a4)][_0x415e3e(0x373)]}});return{'m1Prime':[_0x3696d7,..._0x3561bd],'m2Prime':[_0x5656aa,..._0x3561bd]};}},moveRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x10f33c,_0x5a75e2)=>{const _0x57a6a1=_0x151f3e,_0x5bcc42={'m1Prime':_0x10f33c,'m2Prime':_0x5a75e2};if(_0x10f33c[_0x57a6a1(0x1a4)][_0x57a6a1(0x3a7)]!==_0x5a75e2['params'][_0x57a6a1(0x3a7)]||_0x5a75e2[_0x57a6a1(0x1a4)][_0x57a6a1(0x2e9)]!==_0x10f33c[_0x57a6a1(0x1a4)][_0x57a6a1(0x2e9)])return _0x5bcc42;const _0x3628e8=transformUpdateDataValidationWithRefRange(_0x5a75e2,{'id':_univerjs_sheets['MoveRowsCommand']['id'],'params':{'fromRange':_0x10f33c[_0x57a6a1(0x1a4)][_0x57a6a1(0x195)],'toRange':_0x10f33c[_0x57a6a1(0x1a4)][_0x57a6a1(0x373)]}});return{'m1Prime':[_0x10f33c,..._0x3628e8],'m2Prime':[_0x5a75e2,..._0x3628e8]};}},removeColWithAddComment={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x3280a4,_0x268039)=>{const _0x223b94=_0x151f3e,_0x88837d={'m1Prime':_0x3280a4,'m2Prime':_0x268039};if(_0x3280a4[_0x223b94(0x1a4)][_0x223b94(0x3a7)]!==_0x268039[_0x223b94(0x1a4)][_0x223b94(0x3a7)]||_0x3280a4[_0x223b94(0x1a4)]['subUnitId']!==_0x268039[_0x223b94(0x1a4)]['subUnitId'])return _0x88837d;const _0x207af9=transformAddCommentWithRefRange(_0x268039,{'id':_univerjs_sheets[_0x223b94(0x235)]['id'],'params':{'unitId':_0x3280a4[_0x223b94(0x1a4)][_0x223b94(0x3a7)],'subUnitId':_0x3280a4['params'][_0x223b94(0x2e9)],'range':_0x3280a4[_0x223b94(0x1a4)]['range']}});return{'m1Prime':[_0x3280a4,..._0x207af9],'m2Prime':[_0x268039,..._0x207af9]};}},removeColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x264)]['id'],'handler'(_0x27f59b,_0x309584){const _0x553225=_0x151f3e,_0x3e6936={'m1Prime':_0x27f59b,'m2Prime':_0x309584};if(_0x27f59b[_0x553225(0x1a4)]['unitId']!==_0x309584[_0x553225(0x1a4)]['unitId']||_0x27f59b[_0x553225(0x1a4)]['subUnitId']!==_0x309584[_0x553225(0x1a4)][_0x553225(0x2e9)])return _0x3e6936;const _0x5c6eba=transformAddDataValidationWithRefRange(_0x309584,{'id':_univerjs_sheets[_0x553225(0x235)]['id'],'params':{'range':_0x27f59b['params'][_0x553225(0x1b6)]}});return{'m1Prime':[_0x27f59b,..._0x5c6eba],'m2Prime':[_0x309584,..._0x5c6eba]};}},removeColMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x4b3c3c,_0x492df2){const _0x2d59a8=_0x151f3e,_0x43ac83=addWorksheetMergeMutationWithRemoveColMutation[_0x2d59a8(0x303)](_0x492df2,_0x4b3c3c);if(isTransformMutationSuccess(_0x43ac83))return{'m1Prime':_0x43ac83[_0x2d59a8(0x1a7)],'m2Prime':_0x43ac83[_0x2d59a8(0x28a)]};else return _0x43ac83;}},removeColMutationWithMoveCol={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'handler'(_0x484220,_0x1b4511){const _0x176f07=_0x151f3e,_0x517995={'m1Prime':_0x484220,'m2Prime':_0x1b4511};if(_0x484220[_0x176f07(0x1a4)][_0x176f07(0x3a7)]!==_0x1b4511[_0x176f07(0x1a4)]['unitId']||_0x484220[_0x176f07(0x1a4)][_0x176f07(0x2e9)]!==_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x2e9)])return _0x517995;const _0x20e0dc=_univerjs_core[_0x176f07(0x1a6)][_0x176f07(0x3ce)](_0x484220),_0x33a4c8=_univerjs_core[_0x176f07(0x1a6)]['deepClone'](_0x1b4511);if(_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)][_0x176f07(0x1cb)]<=_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x195)][_0x176f07(0x350)]&&_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)]['endColumn']>=_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x195)][_0x176f07(0x1cb)]||_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)]['startColumn']<=_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x373)][_0x176f07(0x350)]&&_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)][_0x176f07(0x350)]>=_0x1b4511['params'][_0x176f07(0x373)][_0x176f07(0x1cb)])return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x42547f=(0x0,_univerjs_sheets[_0x176f07(0x31e)])(toColumn(_0x484220[_0x176f07(0x1a4)]['range']),toColumn(_0x1b4511['params'][_0x176f07(0x195)])),_0x4dc75d=(0x0,_univerjs_sheets[_0x176f07(0x31e)])(toColumn(_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)]),toColumn(_0x1b4511[_0x176f07(0x1a4)]['targetRange']));if(_0x42547f&&_0x4dc75d)_0x33a4c8['params'][_0x176f07(0x195)]['startColumn']+=_0x42547f[_0x176f07(0x2d0)],_0x33a4c8[_0x176f07(0x1a4)][_0x176f07(0x195)]['endColumn']+=_0x42547f['step']+(_0x42547f[_0x176f07(0x1ba)]||0x0),_0x33a4c8['params'][_0x176f07(0x373)][_0x176f07(0x1cb)]+=_0x4dc75d[_0x176f07(0x2d0)],_0x33a4c8['params'][_0x176f07(0x373)][_0x176f07(0x350)]+=_0x4dc75d[_0x176f07(0x2d0)]+(_0x4dc75d['length']||0x0);else _0x33a4c8['id']=_univerjs_sheets[_0x176f07(0x36d)]['id'];const _0xad1220=(0x0,_univerjs_sheets[_0x176f07(0x233)])({'start':_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x195)]['startColumn'],'end':_0x1b4511['params'][_0x176f07(0x195)][_0x176f07(0x350)]},{'start':_0x1b4511['params'][_0x176f07(0x373)][_0x176f07(0x1cb)],'end':_0x1b4511[_0x176f07(0x1a4)][_0x176f07(0x373)][_0x176f07(0x350)]},{'start':_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)][_0x176f07(0x1cb)],'end':_0x484220[_0x176f07(0x1a4)][_0x176f07(0x1b6)][_0x176f07(0x350)]});if(_0xad1220){const {step:_0x1ce29c,length:_0x1614f8}=_0xad1220;_0x20e0dc[_0x176f07(0x1a4)][_0x176f07(0x1b6)]['startColumn']+=_0x1ce29c,_0x20e0dc[_0x176f07(0x1a4)][_0x176f07(0x1b6)]['endColumn']+=_0x1ce29c+(_0x1614f8||0x0);}else _0x20e0dc[_0x176f07(0x1a4)][_0x176f07(0x1b6)][_0x176f07(0x1cb)]=0x0,_0x20e0dc[_0x176f07(0x1a4)][_0x176f07(0x1b6)]['endColumn']=-0x1;return{'m1Prime':_0x20e0dc,'m2Prime':_0x33a4c8};}},removeColMutationWithMoveRange={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x10e1a3,_0x58c2ab){const _0x3367c5=_0x151f3e,_0x49f8b9={'m1Prime':_0x10e1a3,'m2Prime':_0x58c2ab};if(_0x10e1a3[_0x3367c5(0x1a4)][_0x3367c5(0x3a7)]!==_0x58c2ab['params'][_0x3367c5(0x3a7)]||_0x10e1a3[_0x3367c5(0x1a4)][_0x3367c5(0x2e9)]!==_0x58c2ab[_0x3367c5(0x1a4)]['from'][_0x3367c5(0x2e9)]&&_0x10e1a3['params'][_0x3367c5(0x2e9)]!==_0x58c2ab[_0x3367c5(0x1a4)]['to'][_0x3367c5(0x2e9)])return _0x49f8b9;const _0x269d19=_univerjs_core[_0x3367c5(0x1a6)][_0x3367c5(0x3ce)](_0x10e1a3),_0x19e2c4=_univerjs_core[_0x3367c5(0x1a6)][_0x3367c5(0x3ce)](_0x58c2ab),{startColumn:_0x2447bb,endColumn:_0x3a903c}=_0x10e1a3[_0x3367c5(0x1a4)][_0x3367c5(0x1b6)];if(_0x10e1a3[_0x3367c5(0x1a4)][_0x3367c5(0x2e9)]===_0x58c2ab[_0x3367c5(0x1a4)]['from'][_0x3367c5(0x2e9)]){const _0x3516a0=new _univerjs_core[(_0x3367c5(0x2e2))](_0x19e2c4[_0x3367c5(0x1a4)][_0x3367c5(0x3fc)][_0x3367c5(0x1df)]),{startColumn:_0x153ba0,endColumn:_0xbc857e}=_0x3516a0[_0x3367c5(0x25e)]();if(_0x153ba0<=_0x3a903c&&_0xbc857e>=_0x2447bb)return{'error':new Error(_0x3367c5(0x37f))};if(_0x3a903c<_0x153ba0)_0x3516a0[_0x3367c5(0x298)](_0x2447bb,_0x3a903c-_0x2447bb+0x1);_0x19e2c4[_0x3367c5(0x1a4)][_0x3367c5(0x3fc)][_0x3367c5(0x1df)]=_0x3516a0[_0x3367c5(0x1c4)]();}if(_0x10e1a3[_0x3367c5(0x1a4)][_0x3367c5(0x2e9)]===_0x58c2ab[_0x3367c5(0x1a4)]['to'][_0x3367c5(0x2e9)]){const _0x212d57=new _univerjs_core[(_0x3367c5(0x2e2))](_0x19e2c4[_0x3367c5(0x1a4)]['to']['value']),{startColumn:_0x2ddd50,endColumn:_0x3f414b}=_0x212d57[_0x3367c5(0x25e)]();if(_0x2ddd50<=_0x3a903c&&_0x3f414b>=_0x2447bb)return{'error':new Error('Remove-cols\x20has\x20conflicts\x20with\x20move-range')};if(_0x3a903c<_0x2ddd50)_0x212d57[_0x3367c5(0x298)](_0x2447bb,_0x3a903c-_0x2447bb+0x1);_0x19e2c4[_0x3367c5(0x1a4)]['to'][_0x3367c5(0x1df)]=_0x212d57['getMatrix']();}return{'m1Prime':_0x269d19,'m2Prime':_0x19e2c4};}},removeColMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler'(_0x5682a2,_0x3af1d7){const _0x249db8=_0x151f3e,_0x1cc83e={'m1Prime':_0x5682a2,'m2Prime':_0x3af1d7};if(_0x5682a2['params'][_0x249db8(0x3a7)]!==_0x3af1d7[_0x249db8(0x1a4)][_0x249db8(0x3a7)]||_0x5682a2[_0x249db8(0x1a4)][_0x249db8(0x2e9)]!==_0x3af1d7[_0x249db8(0x1a4)][_0x249db8(0x2e9)])return _0x1cc83e;const _0x326518=_univerjs_core[_0x249db8(0x1a6)][_0x249db8(0x3ce)](_0x5682a2),_0x2279ec=_univerjs_core['Tools'][_0x249db8(0x3ce)](_0x3af1d7),_0x1e6b01=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(_0x5682a2[_0x249db8(0x1a4)][_0x249db8(0x1b6)],_0x3af1d7[_0x249db8(0x1a4)]['range']);if(_0x1e6b01){const {step:_0x281fc7,length:_0x4ef318}=_0x1e6b01;_0x2279ec[_0x249db8(0x1a4)][_0x249db8(0x1b6)][_0x249db8(0x1cb)]+=_0x281fc7,_0x2279ec[_0x249db8(0x1a4)][_0x249db8(0x1b6)]['endColumn']+=_0x281fc7+(_0x4ef318||0x0);}else _0x2279ec['id']=_univerjs_sheets[_0x249db8(0x36d)]['id'];const _0x5248dc=(0x0,_univerjs_sheets[_0x249db8(0x31e)])(_0x3af1d7['params'][_0x249db8(0x1b6)],_0x5682a2[_0x249db8(0x1a4)]['range']);if(_0x5248dc){const {step:_0x31c28f,length:_0xfe9775}=_0x5248dc;_0x326518[_0x249db8(0x1a4)][_0x249db8(0x1b6)][_0x249db8(0x1cb)]+=_0x31c28f,_0x326518[_0x249db8(0x1a4)]['range'][_0x249db8(0x350)]+=_0x31c28f+(_0xfe9775||0x0);}else _0x326518['id']=_univerjs_sheets[_0x249db8(0x36d)]['id'];return{'m1Prime':_0x326518,'m2Prime':_0x2279ec};}},removeColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x488f30,_0x15015d){const _0x64fbb8=_0x151f3e,_0x37c2e5={'m1Prime':_0x488f30,'m2Prime':_0x15015d};if(_0x488f30[_0x64fbb8(0x1a4)][_0x64fbb8(0x3a7)]!==_0x15015d[_0x64fbb8(0x1a4)]['unitId']||_0x488f30[_0x64fbb8(0x1a4)]['subUnitId']!==_0x15015d['params'][_0x64fbb8(0x2e9)])return _0x37c2e5;const _0x22517f=_univerjs_core[_0x64fbb8(0x1a6)]['deepClone'](_0x488f30),_0x3e191b=_univerjs_core[_0x64fbb8(0x1a6)]['deepClone'](_0x15015d),{ranges:_0xe1bd48}=_0x3e191b['params'];if(_0xe1bd48[_0x64fbb8(0x3a1)](_0x1ac559=>{const _0x397662=_0x64fbb8,_0x582d72=(0x0,_univerjs_sheets[_0x397662(0x31e)])(toColumn(_0x488f30['params']['range']),toColumn(_0x1ac559));if(_0x582d72===null||_0x582d72[_0x397662(0x1ba)]!==0x0)return!![];return _0x1ac559[_0x397662(0x1cb)]+=_0x582d72['step'],_0x1ac559['endColumn']+=_0x582d72[_0x397662(0x2d0)],![];}))return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x22517f,'m2Prime':_0x3e191b};}},removeColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0x4df6d5,_0x3ef8b7){const _0xe4762e=_0x151f3e,_0x2737e5=_univerjs_core[_0xe4762e(0x1a6)][_0xe4762e(0x3ce)](_0x4df6d5),_0x4c5b97=_univerjs_core[_0xe4762e(0x1a6)][_0xe4762e(0x3ce)](_0x3ef8b7);if(_0x4df6d5[_0xe4762e(0x1a4)]['unitId']!==_0x3ef8b7['params'][_0xe4762e(0x3a7)]||_0x4df6d5[_0xe4762e(0x1a4)][_0xe4762e(0x2e9)]!==_0x3ef8b7['params']['subUnitId'])return{'m1Prime':_0x2737e5,'m2Prime':_0x4c5b97};const _0x34d35f=_0x4c5b97[_0xe4762e(0x1a4)]['ranges'][_0xe4762e(0x1d3)]((_0x4ff9d6,_0x452fa1)=>{const _0x400911=_0xe4762e,_0x4e2c85=_0x2737e5[_0x400911(0x1a4)][_0x400911(0x1b6)],_0x4b6788=_0x4e2c85[_0x400911(0x350)]-_0x4e2c85[_0x400911(0x1cb)]+0x1;let _0x44cb56={..._0x452fa1};if(_0x4e2c85['startColumn']>_0x452fa1['endColumn'])_0x44cb56={..._0x452fa1};else{if(_0x4e2c85[_0x400911(0x1cb)]>=_0x452fa1[_0x400911(0x1cb)]&&_0x4e2c85[_0x400911(0x1cb)]<=_0x452fa1['endColumn']&&_0x4e2c85[_0x400911(0x350)]>_0x452fa1['endColumn']){_0x44cb56[_0x400911(0x350)]=_0x4e2c85[_0x400911(0x1cb)]-0x1;if(_0x4e2c85['startColumn']===_0x452fa1[_0x400911(0x1cb)])_0x44cb56=null;}else{if(_0x4e2c85[_0x400911(0x1cb)]>_0x452fa1[_0x400911(0x1cb)]&&_0x4e2c85[_0x400911(0x350)]<_0x452fa1[_0x400911(0x350)])_0x44cb56['endColumn']=_0x452fa1[_0x400911(0x350)]-_0x4b6788;else{if(_0x4e2c85[_0x400911(0x1cb)]<_0x452fa1['startColumn']&&_0x4e2c85['endColumn']>=_0x452fa1[_0x400911(0x1cb)]&&_0x4e2c85['endColumn']<=_0x452fa1['endColumn']){_0x44cb56[_0x400911(0x1cb)]=_0x4e2c85['startColumn'],_0x44cb56[_0x400911(0x350)]=_0x452fa1[_0x400911(0x350)]-_0x4b6788;if(_0x4e2c85[_0x400911(0x350)]===_0x452fa1[_0x400911(0x350)])_0x44cb56=null;}else{if(_0x4e2c85[_0x400911(0x1cb)]<=_0x452fa1[_0x400911(0x1cb)]&&_0x4e2c85['endColumn']>=_0x452fa1[_0x400911(0x350)])_0x44cb56=null;else _0x4e2c85[_0x400911(0x350)]<_0x452fa1[_0x400911(0x1cb)]&&(_0x44cb56[_0x400911(0x1cb)]=_0x452fa1['startColumn']-_0x4b6788,_0x44cb56['endColumn']=_0x452fa1[_0x400911(0x350)]-_0x4b6788);}}}}if(_0x44cb56&&!(_0x44cb56[_0x400911(0x1e8)]===_0x44cb56['endRow']&&_0x44cb56[_0x400911(0x1cb)]===_0x44cb56[_0x400911(0x350)]))return _0x4ff9d6[_0x400911(0x1c6)](_0x44cb56),_0x4ff9d6;else return _0x4ff9d6;},[]);return _0x4c5b97[_0xe4762e(0x1a4)]['ranges']=_0x34d35f,{'m1Prime':_0x2737e5,'m2Prime':_0x4c5b97};}},removeColMutationWithReorderRange={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x4aef42,_0x384931){const _0x35c399=_0x151f3e,_0x42555a={'m1Prime':_0x4aef42,'m2Prime':_0x384931};if(_0x4aef42[_0x35c399(0x1a4)][_0x35c399(0x3a7)]!==_0x384931[_0x35c399(0x1a4)][_0x35c399(0x3a7)]||_0x4aef42['params'][_0x35c399(0x2e9)]!==_0x384931[_0x35c399(0x1a4)][_0x35c399(0x2e9)])return _0x42555a;const _0x2ffe11=(0x0,_univerjs_sheets[_0x35c399(0x31e)])(toColumn(_0x4aef42[_0x35c399(0x1a4)]['range']),toColumn(_0x384931[_0x35c399(0x1a4)][_0x35c399(0x1b6)]));if(!_0x2ffe11)return{'m1Prime':_0x4aef42,'m2Prime':[]};const _0x20c2e1=_univerjs_core['Tools']['deepClone'](_0x384931);return _0x20c2e1[_0x35c399(0x1a4)][_0x35c399(0x1b6)]['startColumn']+=_0x2ffe11[_0x35c399(0x2d0)],_0x20c2e1['params']['range'][_0x35c399(0x350)]+=_0x2ffe11['step']+(_0x2ffe11['length']||0x0),{'m1Prime':_0x4aef42,'m2Prime':_0x20c2e1};}},removeColMutationWithSetColData={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x341)]['id'],'handler'(_0x2fc373,_0x3fa844){const _0x33c5b1=_0x151f3e,_0x27d7fd={'m1Prime':_0x2fc373,'m2Prime':_0x3fa844};if(_0x2fc373[_0x33c5b1(0x1a4)][_0x33c5b1(0x3a7)]!==_0x3fa844[_0x33c5b1(0x1a4)][_0x33c5b1(0x3a7)]||_0x2fc373[_0x33c5b1(0x1a4)][_0x33c5b1(0x2e9)]!==_0x3fa844[_0x33c5b1(0x1a4)][_0x33c5b1(0x2e9)])return _0x27d7fd;const _0x751e74=_univerjs_core[_0x33c5b1(0x1a6)][_0x33c5b1(0x3ce)](_0x2fc373),_0x49a58c=_univerjs_core[_0x33c5b1(0x1a6)][_0x33c5b1(0x3ce)](_0x3fa844),{columnData:_0x3d2ab9}=_0x49a58c[_0x33c5b1(0x1a4)];return(0x0,_univerjs_core['spliceArray'])(_0x2fc373[_0x33c5b1(0x1a4)]['range'][_0x33c5b1(0x1cb)],_0x2fc373[_0x33c5b1(0x1a4)][_0x33c5b1(0x1b6)]['endColumn']-_0x2fc373[_0x33c5b1(0x1a4)]['range'][_0x33c5b1(0x1cb)]+0x1,_0x3d2ab9),{'m1Prime':_0x751e74,'m2Prime':_0x49a58c};}},removeColMutationWithSetColHidden={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x24a)]['id'],'handler'(_0x16127f,_0x21d367){const _0x324daf=_0x151f3e,_0x370598={'m1Prime':_0x16127f,'m2Prime':_0x21d367};if(_0x16127f[_0x324daf(0x1a4)][_0x324daf(0x3a7)]!==_0x21d367[_0x324daf(0x1a4)][_0x324daf(0x3a7)]||_0x16127f[_0x324daf(0x1a4)][_0x324daf(0x2e9)]!==_0x21d367[_0x324daf(0x1a4)][_0x324daf(0x2e9)])return _0x370598;const _0x297315=_univerjs_core['Tools']['deepClone'](_0x16127f),_0x42d991=_univerjs_core[_0x324daf(0x1a6)][_0x324daf(0x3ce)](_0x21d367),{ranges:_0x511968}=_0x42d991['params'];return _0x511968['forEach'](_0xb2a979=>{const _0x2d7946=_0x324daf,_0xd77c43=(0x0,_univerjs_sheets[_0x2d7946(0x31e)])(toColumn(_0x16127f['params'][_0x2d7946(0x1b6)]),_0xb2a979);if(_0xd77c43==null)_0x42d991['id']=_univerjs_sheets[_0x2d7946(0x36d)]['id'];else _0xb2a979[_0x2d7946(0x1cb)]+=_0xd77c43['step'],_0xb2a979['endColumn']+=_0xd77c43[_0x2d7946(0x2d0)]+_0xd77c43[_0x2d7946(0x1ba)];}),{'m1Prime':_0x297315,'m2Prime':_0x42d991};}},removeColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x31b)]['id'],'handler'(_0x4e76a0,_0x56a0c2){const _0x166600=_0x151f3e,_0x53f1fc={'m1Prime':_0x4e76a0,'m2Prime':_0x56a0c2};if(_0x4e76a0[_0x166600(0x1a4)][_0x166600(0x3a7)]!==_0x56a0c2[_0x166600(0x1a4)][_0x166600(0x3a7)]||_0x4e76a0[_0x166600(0x1a4)]['subUnitId']!==_0x56a0c2[_0x166600(0x1a4)][_0x166600(0x2e9)])return _0x53f1fc;const _0x13a023=_univerjs_core[_0x166600(0x1a6)][_0x166600(0x3ce)](_0x4e76a0),_0x27a6d2=_univerjs_core['Tools'][_0x166600(0x3ce)](_0x56a0c2),{ranges:_0x5600cc}=_0x27a6d2['params'];return _0x5600cc[_0x166600(0x3b5)](_0x1df1ca=>{const _0x4c5734=_0x166600,_0x4184ce=(0x0,_univerjs_sheets[_0x4c5734(0x31e)])(toColumn(_0x4e76a0[_0x4c5734(0x1a4)][_0x4c5734(0x1b6)]),_0x1df1ca);if(_0x4184ce==null)_0x27a6d2['id']=_univerjs_sheets[_0x4c5734(0x36d)]['id'];else _0x1df1ca['startColumn']+=_0x4184ce[_0x4c5734(0x2d0)],_0x1df1ca[_0x4c5734(0x350)]+=_0x4184ce[_0x4c5734(0x2d0)]+_0x4184ce[_0x4c5734(0x1ba)];}),{'m1Prime':_0x13a023,'m2Prime':_0x27a6d2};}},removeColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x2eff3a,_0x1e6a7b){const _0x55c173=_0x151f3e,_0x2d8890={'m1Prime':_0x2eff3a,'m2Prime':_0x1e6a7b};if(_0x2eff3a['params'][_0x55c173(0x3a7)]!==_0x1e6a7b[_0x55c173(0x1a4)][_0x55c173(0x3a7)]||_0x2eff3a[_0x55c173(0x1a4)][_0x55c173(0x2e9)]!==_0x1e6a7b[_0x55c173(0x1a4)][_0x55c173(0x2e9)])return _0x2d8890;const _0xe1e35d=[_univerjs_core[_0x55c173(0x1a6)][_0x55c173(0x3ce)](_0x2eff3a)],_0x15d9e1=_univerjs_core[_0x55c173(0x1a6)]['deepClone'](_0x1e6a7b),{values:_0x12fcb4}=_0x15d9e1[_0x55c173(0x1a4)],_0x68ba84=[];let _0x299492=![];for(const _0x5c5ebe in _0x12fcb4){const _0xe5aead=_0x12fcb4[_0x5c5ebe];_0x68ba84[_0x55c173(0x1c6)](..._0xe5aead['ranges']);if(_0xe5aead['ranges'][_0x55c173(0x3a1)](_0x24a50d=>{const _0x75ead8=_0x55c173,_0x2de856=(0x0,_univerjs_sheets[_0x75ead8(0x31e)])(toColumn(_0x2eff3a[_0x75ead8(0x1a4)][_0x75ead8(0x1b6)]),toColumn(_0x24a50d));if(_0x2de856==null||_0x2de856['length']!==0x0)return!![];if(_0x2de856[_0x75ead8(0x2d0)]!==0x0)_0x299492=!![];return _0x24a50d['startColumn']+=_0x2de856['step'],_0x24a50d['endColumn']+=_0x2de856['step'],![];}))return{'error':new Error(_0x55c173(0x1e4))};}if(_0x299492){const _0x4c59b8={'id':_univerjs_sheets['RemoveNumfmtMutation']['id'],'params':{'unitId':_0x1e6a7b[_0x55c173(0x1a4)][_0x55c173(0x3a7)],'subUnitId':_0x1e6a7b['params'][_0x55c173(0x2e9)],'ranges':_0x68ba84}};_0xe1e35d[_0x55c173(0x1c6)](_0x4c59b8,_0x15d9e1);}return{'m1Prime':_0xe1e35d,'m2Prime':_0x15d9e1};}},removeColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x2ba908,_0x19bda7){const _0x2ef4d3=_0x151f3e,_0x27fc67={'m1Prime':_0x2ba908,'m2Prime':_0x19bda7};if(_0x2ba908[_0x2ef4d3(0x1a4)]['unitId']!==_0x19bda7['params'][_0x2ef4d3(0x3a7)]||_0x2ba908[_0x2ef4d3(0x1a4)][_0x2ef4d3(0x2e9)]!==_0x19bda7[_0x2ef4d3(0x1a4)]['subUnitId'])return _0x27fc67;const _0x5c6706=[_univerjs_core[_0x2ef4d3(0x1a6)]['deepClone'](_0x2ba908)],_0x5b598d=_univerjs_core[_0x2ef4d3(0x1a6)]['deepClone'](_0x19bda7),_0x43301d=new _univerjs_core['ObjectMatrix'](_0x5b598d[_0x2ef4d3(0x1a4)][_0x2ef4d3(0x30b)]),_0xaf7e29=_0x43301d[_0x2ef4d3(0x25e)](),_0x75380a=_0x2ba908[_0x2ef4d3(0x1a4)]['range'],_0x590d87=_0x75380a[_0x2ef4d3(0x350)]-_0x75380a[_0x2ef4d3(0x1cb)]+0x1;if(_0x5b598d['params'][_0x2ef4d3(0x30b)]&&_0x75380a[_0x2ef4d3(0x350)]<_0xaf7e29[_0x2ef4d3(0x1cb)])moveColumns(_0x5b598d['params'][_0x2ef4d3(0x30b)],_0xaf7e29[_0x2ef4d3(0x1cb)],_0xaf7e29[_0x2ef4d3(0x350)]-_0xaf7e29[_0x2ef4d3(0x1cb)]+0x1,-_0x590d87);else{if(_0x75380a[_0x2ef4d3(0x1cb)]<=_0xaf7e29['endColumn'])return{'error':new Error(_0x2ef4d3(0x316))};}const _0x2700b5=new _univerjs_core[(_0x2ef4d3(0x2e2))]();let _0x5aac5b=![],_0x4dc4a4=![];_0x43301d[_0x2ef4d3(0x22f)]((_0x3eab0a,_0x53fd81,_0x61c37a)=>{const _0x385db7=_0x2ef4d3;if(_0x61c37a&&_0x61c37a['f']){const _0x278dc4=_0x61c37a['f'];let _0xb6876=![];const _0x5189a9=processFormulaString(_0x2ba908['params'][_0x385db7(0x3a7)],_0x2ba908[_0x385db7(0x1a4)][_0x385db7(0x2e9)],_0x278dc4,_0x1bcd50=>{const _0x1f9ec4=_0x385db7,_0x466cbb=(0x0,_univerjs_sheets[_0x1f9ec4(0x31e)])(toColumn(_0x2ba908[_0x1f9ec4(0x1a4)][_0x1f9ec4(0x1b6)]),toColumn(_0x1bcd50));if(_0x466cbb===null)return _0x5aac5b=!![],_0x1bcd50;return(_0x466cbb[_0x1f9ec4(0x2d0)]!==0x0||_0x466cbb[_0x1f9ec4(0x1ba)]!==0x0)&&(_0xb6876=!![],_0x1bcd50[_0x1f9ec4(0x1cb)]+=_0x466cbb[_0x1f9ec4(0x2d0)],_0x1bcd50[_0x1f9ec4(0x350)]+=_0x466cbb[_0x1f9ec4(0x2d0)]+_0x466cbb[_0x1f9ec4(0x1ba)]),_0x1bcd50;});_0xb6876&&(_0x4dc4a4=!![],_0x61c37a['f']=_0x5189a9,_0x2700b5[_0x385db7(0x1af)](_0x3eab0a,_0x53fd81,{..._0x61c37a}));}});if(_0x5aac5b)return{'error':new Error(_0x2ef4d3(0x1fc))};if(_0x4dc4a4){const _0x2dad8d={'id':_univerjs_sheets[_0x2ef4d3(0x203)]['id'],'params':{'unitId':_0x19bda7[_0x2ef4d3(0x1a4)][_0x2ef4d3(0x3a7)],'subUnitId':_0x19bda7[_0x2ef4d3(0x1a4)][_0x2ef4d3(0x2e9)],'cellValue':_0x2700b5['getMatrix']()}};_0x5c6706[_0x2ef4d3(0x1c6)](_0x2dad8d);}return{'m1Prime':_0x5c6706,'m2Prime':_0x5b598d};}},removeColMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0x10c4d6,_0x1553a3){const _0x3af486=_0x151f3e,_0x29dea4={'m1Prime':[],'m2Prime':[]};if(_0x10c4d6['params'][_0x3af486(0x3a7)]!==_0x1553a3[_0x3af486(0x1a4)][_0x3af486(0x3a7)]||_0x10c4d6['params'][_0x3af486(0x2e9)]!==_0x1553a3[_0x3af486(0x1a4)]['subUnitId'])return _0x29dea4;const _0x28ebf6=_univerjs_core[_0x3af486(0x1a6)][_0x3af486(0x3ce)](_0x1553a3);let _0x564f8f=![];_0x28ebf6[_0x3af486(0x1a4)]['selections'][_0x3af486(0x3b5)](_0x438094=>{const _0x4e46d1=_0x3af486,{range:_0x40b322,primary:_0x16c282}=_0x438094,_0x417ada=(0x0,_univerjs_sheets[_0x4e46d1(0x31e)])(toColumn(_0x10c4d6[_0x4e46d1(0x1a4)][_0x4e46d1(0x1b6)]),toColumn(_0x40b322));if(_0x417ada==null)return;if(_0x417ada[_0x4e46d1(0x1ba)]||_0x417ada[_0x4e46d1(0x2d0)]){_0x40b322['startColumn']+=_0x417ada[_0x4e46d1(0x2d0)],_0x40b322['endColumn']+=_0x417ada[_0x4e46d1(0x2d0)]+(_0x417ada[_0x4e46d1(0x1ba)]||0x0);if(_0x16c282){const _0x4accfb=(0x0,_univerjs_sheets[_0x4e46d1(0x31e)])(toColumn(_0x10c4d6['params'][_0x4e46d1(0x1b6)]),toColumn(_0x16c282));if(_0x4accfb==null){_0x16c282[_0x4e46d1(0x1cb)]=_0x40b322['startColumn'],_0x16c282[_0x4e46d1(0x350)]=_0x40b322['startColumn'],_0x16c282['actualColumn']=_0x40b322[_0x4e46d1(0x1cb)];return;}(_0x4accfb[_0x4e46d1(0x1ba)]||_0x4accfb[_0x4e46d1(0x2d0)])&&(_0x16c282[_0x4e46d1(0x1cb)]+=_0x4accfb[_0x4e46d1(0x2d0)],_0x16c282[_0x4e46d1(0x350)]+=_0x4accfb[_0x4e46d1(0x2d0)],_0x16c282[_0x4e46d1(0x19a)]+=_0x4accfb[_0x4e46d1(0x2d0)]);}_0x564f8f=!![];}});if(_0x564f8f)_0x29dea4[_0x3af486(0x1a7)][_0x3af486(0x1c6)](_0x28ebf6);return _0x29dea4;}},removeColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'handler'(_0x3bef5b,_0x500cc9){const _0x52e1fc=_0x151f3e,_0x2a5f91={'m1Prime':_0x3bef5b,'m2Prime':_0x500cc9};if(_0x3bef5b['params'][_0x52e1fc(0x3a7)]!==_0x500cc9[_0x52e1fc(0x1a4)][_0x52e1fc(0x3a7)]||_0x3bef5b[_0x52e1fc(0x1a4)][_0x52e1fc(0x2e9)]!==_0x500cc9[_0x52e1fc(0x1a4)][_0x52e1fc(0x2e9)])return _0x2a5f91;const _0x5cf2da=_univerjs_core[_0x52e1fc(0x1a6)][_0x52e1fc(0x3ce)](_0x3bef5b),_0x847f3e=_univerjs_core[_0x52e1fc(0x1a6)][_0x52e1fc(0x3ce)](_0x500cc9),_0x44f916=handleRemove({'start':_0x3bef5b['params'][_0x52e1fc(0x1b6)]['startColumn'],'end':_0x3bef5b[_0x52e1fc(0x1a4)][_0x52e1fc(0x1b6)][_0x52e1fc(0x350)]},{'start':_0x500cc9[_0x52e1fc(0x1a4)][_0x52e1fc(0x2a8)],'end':_0x500cc9[_0x52e1fc(0x1a4)][_0x52e1fc(0x2a8)]}),_0x38c19c=_univerjs_core['Tools']['deepClone'](_0x500cc9);_0x38c19c[_0x52e1fc(0x1a4)][_0x52e1fc(0x2b0)]=null;if(_0x44f916===null)return{'m1Prime':[_0x5cf2da,_0x38c19c],'m2Prime':[]};if(_0x847f3e[_0x52e1fc(0x1a4)][_0x52e1fc(0x2a8)]===_0x44f916[_0x52e1fc(0x2d5)])return _0x2a5f91;_0x847f3e[_0x52e1fc(0x1a4)][_0x52e1fc(0x2a8)]=_0x44f916['start'];if(_0x847f3e['params'][_0x52e1fc(0x2b0)])_0x847f3e['params'][_0x52e1fc(0x2b0)][_0x52e1fc(0x30d)]=_0x44f916['start'];return{'m1Prime':[_0x38c19c,_0x847f3e,_0x5cf2da],'m2Prime':[_0x847f3e]};}},removeColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x50e852,_0x4eda5c){const _0x3cd23e=_0x151f3e,_0x15c27a={'m1Prime':[_0x50e852],'m2Prime':[_0x4eda5c]};if(_0x50e852[_0x3cd23e(0x1a4)][_0x3cd23e(0x3a7)]!==_0x4eda5c[_0x3cd23e(0x1a4)][_0x3cd23e(0x3a7)]||_0x50e852[_0x3cd23e(0x1a4)][_0x3cd23e(0x2e9)]!==_0x4eda5c['params'][_0x3cd23e(0x2e9)])return _0x15c27a;const _0x3c5636=_univerjs_core[_0x3cd23e(0x1a6)]['deepClone'](_0x50e852),_0x17a8f5=_univerjs_core['Tools'][_0x3cd23e(0x3ce)](_0x4eda5c),_0x40b96c=handleRemove({'start':_0x50e852[_0x3cd23e(0x1a4)]['range'][_0x3cd23e(0x1cb)],'end':_0x50e852[_0x3cd23e(0x1a4)][_0x3cd23e(0x1b6)][_0x3cd23e(0x350)]},{'start':_0x4eda5c[_0x3cd23e(0x1a4)][_0x3cd23e(0x1b6)][_0x3cd23e(0x1cb)],'end':_0x4eda5c['params']['range'][_0x3cd23e(0x350)]});if(_0x40b96c===null)return{'m1Prime':[_0x3c5636,{'id':_univerjs_sheets_filter[_0x3cd23e(0x2a6)]['id'],'params':{'unitId':_0x4eda5c[_0x3cd23e(0x1a4)]['unitId'],'subUnitId':_0x4eda5c[_0x3cd23e(0x1a4)][_0x3cd23e(0x3a7)]}}],'m2Prime':[]};return _0x17a8f5['params'][_0x3cd23e(0x1b6)][_0x3cd23e(0x1cb)]=_0x40b96c[_0x3cd23e(0x2d5)],_0x17a8f5[_0x3cd23e(0x1a4)][_0x3cd23e(0x1b6)]['endColumn']=_0x40b96c[_0x3cd23e(0x2c3)],{'m1Prime':[_0x17a8f5,_0x3c5636],'m2Prime':[_0x17a8f5]};}},removeColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'handler'(_0x327a56,_0x5f1a98){const _0x432b8c=_0x151f3e,_0x6f1843={'m1Prime':_0x327a56,'m2Prime':_0x5f1a98};if(_0x327a56[_0x432b8c(0x1a4)][_0x432b8c(0x3a7)]!==_0x5f1a98[_0x432b8c(0x1a4)]['unitId']||_0x327a56['params'][_0x432b8c(0x2e9)]!==_0x5f1a98[_0x432b8c(0x1a4)][_0x432b8c(0x2e9)])return _0x6f1843;const _0x25f63c=_univerjs_core['Tools'][_0x432b8c(0x3ce)](_0x327a56),_0x447189=_univerjs_core[_0x432b8c(0x1a6)][_0x432b8c(0x3ce)](_0x5f1a98),{ranges:_0x3124cf,colWidth:_0x3b2ec7}=_0x447189[_0x432b8c(0x1a4)];_0x3124cf[_0x432b8c(0x3b5)](_0xc8f460=>{const _0x278e40=_0x432b8c,_0x486ca0=(0x0,_univerjs_sheets[_0x278e40(0x31e)])(toColumn(_0x327a56[_0x278e40(0x1a4)][_0x278e40(0x1b6)]),_0xc8f460);if(_0x486ca0==null)_0x447189['id']=_univerjs_sheets[_0x278e40(0x36d)]['id'];else _0xc8f460[_0x278e40(0x1cb)]+=_0x486ca0[_0x278e40(0x2d0)],_0xc8f460[_0x278e40(0x350)]+=_0x486ca0['step']+_0x486ca0[_0x278e40(0x1ba)];});if(typeof _0x3b2ec7!==_0x432b8c(0x1da))(0x0,_univerjs_core['spliceArray'])(_0x327a56[_0x432b8c(0x1a4)]['range']['startColumn'],_0x327a56[_0x432b8c(0x1a4)][_0x432b8c(0x1b6)][_0x432b8c(0x350)]-_0x327a56[_0x432b8c(0x1a4)][_0x432b8c(0x1b6)][_0x432b8c(0x1cb)]+0x1,_0x3b2ec7);return{'m1Prime':_0x25f63c,'m2Prime':_0x447189};}},removeColWithUpdateCommentRef={'m1':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x1ccab6,_0xf36fdc)=>{const _0x599af5=_0x151f3e,_0x4620db={'m1Prime':_0x1ccab6,'m2Prime':_0xf36fdc};if(_0x1ccab6['params']['unitId']!==_0xf36fdc[_0x599af5(0x1a4)]['unitId']||_0x1ccab6[_0x599af5(0x1a4)][_0x599af5(0x2e9)]!==_0xf36fdc[_0x599af5(0x1a4)][_0x599af5(0x2e9)])return _0x4620db;const _0xec257c=transformUpdateCommentRefWithRefRange(_0xf36fdc,{'id':_univerjs_sheets['RemoveColCommand']['id'],'params':{'unitId':_0x1ccab6[_0x599af5(0x1a4)][_0x599af5(0x3a7)],'subUnitId':_0x1ccab6[_0x599af5(0x1a4)][_0x599af5(0x2e9)],'range':_0x1ccab6[_0x599af5(0x1a4)][_0x599af5(0x1b6)]}});return{'m1Prime':[_0x1ccab6,..._0xec257c],'m2Prime':[_0xf36fdc,..._0xec257c]};}},removeColMutationWithUpdateDataValidation={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'handler':(_0x1387cf,_0x2cbe5f)=>{const _0xce9d29=_0x151f3e,_0x193e29={'m1Prime':_0x1387cf,'m2Prime':_0x2cbe5f};if(_0x1387cf[_0xce9d29(0x1a4)]['unitId']!==_0x2cbe5f[_0xce9d29(0x1a4)][_0xce9d29(0x3a7)]||_0x2cbe5f[_0xce9d29(0x1a4)][_0xce9d29(0x2e9)]!==_0x1387cf[_0xce9d29(0x1a4)][_0xce9d29(0x2e9)])return _0x193e29;const _0x353806=transformUpdateDataValidationWithRefRange(_0x2cbe5f,{'id':_univerjs_sheets[_0xce9d29(0x235)]['id'],'params':{'range':_0x1387cf[_0xce9d29(0x1a4)][_0xce9d29(0x1b6)]}});return{'m1Prime':[_0x1387cf,..._0x353806],'m2Prime':[_0x2cbe5f,..._0x353806]};}},removeDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0x151f3e(0x25b)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x25b)]['id'],'handler':(_0x331c59,_0xf4c0c4)=>{const _0x548ad8=_0x151f3e,_0x4cc753={'m1Prime':_0x331c59,'m2Prime':_0xf4c0c4};if(_0x331c59[_0x548ad8(0x1a4)][_0x548ad8(0x3a7)]===_0xf4c0c4[_0x548ad8(0x1a4)]['unitId']&&_0x331c59[_0x548ad8(0x1a4)][_0x548ad8(0x2e9)]===_0xf4c0c4['params'][_0x548ad8(0x2e9)]&&_0x331c59[_0x548ad8(0x1a4)][_0x548ad8(0x365)]===_0xf4c0c4[_0x548ad8(0x1a4)][_0x548ad8(0x365)])return{'m1Prime':[],'m2Prime':[]};return _0x4cc753;}},removeHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0x151f3e(0x39e)]['id'],'m2':_univerjs_sheets_hyper_link[_0x151f3e(0x39e)]['id'],'handler':(_0x60768a,_0x281104)=>{const _0x2e1363=_0x151f3e,_0x44342e=_0x60768a['params'],_0x2b42f0=_0x281104['params'];if(_0x44342e[_0x2e1363(0x3a7)]===_0x2b42f0[_0x2e1363(0x3a7)]&&_0x44342e[_0x2e1363(0x2e9)]===_0x2b42f0[_0x2e1363(0x2e9)]&&_0x44342e['id']===_0x2b42f0['id'])return{'m2Prime':[],'m1Prime':[]};return{'m1Prime':_0x60768a,'m2Prime':_0x281104};}},removeNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x54b572,_0x44582f){const _0x5e97b1=_0x151f3e;if(_0x54b572[_0x5e97b1(0x1a4)]['unitId']!==_0x44582f[_0x5e97b1(0x1a4)][_0x5e97b1(0x3a7)]||_0x54b572['params'][_0x5e97b1(0x2e9)]!==_0x44582f[_0x5e97b1(0x1a4)][_0x5e97b1(0x2e9)])return{'m1Prime':_0x54b572,'m2Prime':_0x44582f};const _0x5502f1=_univerjs_core[_0x5e97b1(0x1a6)]['deepClone'](_0x54b572),_0x501d34=_univerjs_core[_0x5e97b1(0x1a6)][_0x5e97b1(0x3ce)](_0x44582f),_0x1ca13f=[],_0x65eecf=_0x501d34[_0x5e97b1(0x1a4)][_0x5e97b1(0x286)];return _0x5502f1['params'][_0x5e97b1(0x286)]['forEach'](_0x4ecc70=>{const _0x5465d0=_0x5e97b1,_0x1ac7c1=RangeSubtractRanges(_0x4ecc70,_0x65eecf);if(_0x1ac7c1['length']>0x0)_0x1ca13f[_0x5465d0(0x1c6)](..._0x1ac7c1);}),_0x5502f1[_0x5e97b1(0x1a4)][_0x5e97b1(0x286)]=_0x1ca13f,{'m1Prime':_0x54b572,'m2Prime':_0x44582f};}},removeNumfmtMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x2ce187,_0x40c2ed){const _0x3bd095=_0x151f3e;if(_0x2ce187[_0x3bd095(0x1a4)][_0x3bd095(0x3a7)]!==_0x40c2ed[_0x3bd095(0x1a4)][_0x3bd095(0x3a7)]||_0x2ce187['params']['subUnitId']!==_0x40c2ed['params'][_0x3bd095(0x2e9)])return{'m1Prime':_0x2ce187,'m2Prime':_0x40c2ed};const _0x57fda7=_univerjs_core[_0x3bd095(0x1a6)][_0x3bd095(0x3ce)](_0x2ce187),_0x2b6e9a=_univerjs_core[_0x3bd095(0x1a6)][_0x3bd095(0x3ce)](_0x40c2ed),_0x57bbe6=[],_0x3e2097=Object[_0x3bd095(0x1c3)](_0x2b6e9a['params'][_0x3bd095(0x1c3)])['map'](_0x24c41b=>_0x24c41b['ranges'])[_0x3bd095(0x2ea)]();return _0x57fda7[_0x3bd095(0x1a4)][_0x3bd095(0x286)][_0x3bd095(0x3b5)](_0x42ef7=>{const _0x2c3d41=_0x3bd095,_0x468a3a=RangeSubtractRanges(_0x42ef7,_0x3e2097);if(_0x468a3a['length']>0x0)_0x57bbe6[_0x2c3d41(0x1c6)](..._0x468a3a);}),_0x57fda7[_0x3bd095(0x1a4)][_0x3bd095(0x286)]=_0x57bbe6,{'m1Prime':_0x57fda7,'m2Prime':_0x2b6e9a};}},removeRowWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x51e930,_0x1b3c65)=>{const _0x3b9c3c=_0x151f3e,_0x431dfa={'m1Prime':_0x51e930,'m2Prime':_0x1b3c65};if(_0x51e930[_0x3b9c3c(0x1a4)][_0x3b9c3c(0x3a7)]!==_0x1b3c65[_0x3b9c3c(0x1a4)][_0x3b9c3c(0x3a7)]||_0x51e930[_0x3b9c3c(0x1a4)][_0x3b9c3c(0x2e9)]!==_0x1b3c65['params']['subUnitId'])return _0x431dfa;const _0x3f6ce4=transformAddCommentWithRefRange(_0x1b3c65,{'id':_univerjs_sheets[_0x3b9c3c(0x22e)]['id'],'params':{'unitId':_0x51e930[_0x3b9c3c(0x1a4)][_0x3b9c3c(0x3a7)],'subUnitId':_0x51e930[_0x3b9c3c(0x1a4)]['subUnitId'],'range':_0x51e930[_0x3b9c3c(0x1a4)][_0x3b9c3c(0x1b6)]}});return{'m1Prime':[_0x51e930,..._0x3f6ce4],'m2Prime':[_0x1b3c65,..._0x3f6ce4]};}},removeRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_data_validation['AddDataValidationMutation']['id'],'handler'(_0x4b8487,_0xebd11){const _0x56b1c2=_0x151f3e,_0x147887={'m1Prime':_0x4b8487,'m2Prime':_0xebd11};if(_0x4b8487['params'][_0x56b1c2(0x3a7)]!==_0xebd11[_0x56b1c2(0x1a4)][_0x56b1c2(0x3a7)]||_0x4b8487[_0x56b1c2(0x1a4)][_0x56b1c2(0x2e9)]!==_0xebd11['params'][_0x56b1c2(0x2e9)])return _0x147887;const _0x5829c9=transformAddDataValidationWithRefRange(_0xebd11,{'id':_univerjs_sheets[_0x56b1c2(0x22e)]['id'],'params':{'range':_0x4b8487[_0x56b1c2(0x1a4)][_0x56b1c2(0x1b6)]}});return{'m1Prime':[_0x4b8487,..._0x5829c9],'m2Prime':[_0xebd11,..._0x5829c9]};}},removeRowMutationWithAddMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x268191,_0x3e5061){const _0x26e611=_0x151f3e,_0x37f09f=addWorksheetMergeMutationWithRemoveRowMutation['handler'](_0x3e5061,_0x268191);if(isTransformMutationSuccess(_0x37f09f))return{'m1Prime':_0x37f09f[_0x26e611(0x1a7)],'m2Prime':_0x37f09f[_0x26e611(0x28a)]};else return _0x37f09f;}},removeRowMutationWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x22af5a,_0x2f5860){const _0x4af266=_0x151f3e,_0x353fce={'m1Prime':_0x22af5a,'m2Prime':_0x2f5860};if(_0x22af5a[_0x4af266(0x1a4)][_0x4af266(0x3a7)]!==_0x2f5860['params'][_0x4af266(0x3a7)]||_0x22af5a[_0x4af266(0x1a4)][_0x4af266(0x2e9)]!==_0x2f5860[_0x4af266(0x1a4)][_0x4af266(0x3fc)][_0x4af266(0x2e9)]&&_0x22af5a[_0x4af266(0x1a4)][_0x4af266(0x2e9)]!==_0x2f5860[_0x4af266(0x1a4)]['to'][_0x4af266(0x2e9)])return _0x353fce;const _0xd81ed3=_univerjs_core['Tools'][_0x4af266(0x3ce)](_0x22af5a),_0x6772a6=_univerjs_core[_0x4af266(0x1a6)][_0x4af266(0x3ce)](_0x2f5860),{startRow:_0x5342da,endRow:_0x1b864f}=_0x22af5a[_0x4af266(0x1a4)][_0x4af266(0x1b6)];if(_0x22af5a[_0x4af266(0x1a4)]['subUnitId']===_0x2f5860[_0x4af266(0x1a4)]['from'][_0x4af266(0x2e9)]){const _0x80a377=new _univerjs_core[(_0x4af266(0x2e2))](_0x6772a6[_0x4af266(0x1a4)][_0x4af266(0x3fc)][_0x4af266(0x1df)]),{startRow:_0x1c468e,endRow:_0xde5056}=_0x80a377[_0x4af266(0x25e)]();if(_0x1c468e<=_0x1b864f&&_0xde5056>=_0x5342da)return{'error':new Error(_0x4af266(0x37f))};if(_0x1b864f<_0x1c468e)_0x80a377[_0x4af266(0x2fb)](_0x5342da,_0x1b864f-_0x5342da+0x1);_0x6772a6[_0x4af266(0x1a4)]['from'][_0x4af266(0x1df)]=_0x80a377[_0x4af266(0x1c4)]();}if(_0x22af5a['params'][_0x4af266(0x2e9)]===_0x2f5860['params']['to']['subUnitId']){const _0x15db94=new _univerjs_core['ObjectMatrix'](_0x6772a6['params']['to'][_0x4af266(0x1df)]),{startRow:_0x535eed,endRow:_0x2acad1}=_0x15db94[_0x4af266(0x25e)]();if(_0x535eed<=_0x1b864f&&_0x2acad1>=_0x5342da)return{'error':new Error(_0x4af266(0x37f))};if(_0x1b864f<_0x535eed)_0x15db94[_0x4af266(0x2fb)](_0x5342da,_0x1b864f-_0x5342da+0x1);_0x6772a6[_0x4af266(0x1a4)]['to'][_0x4af266(0x1df)]=_0x15db94[_0x4af266(0x1c4)]();}return{'m1Prime':_0xd81ed3,'m2Prime':_0x6772a6};}},removeRowMutationWithMoveRow={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler'(_0x2f88ce,_0x183708){const _0x2179f5=_0x151f3e,_0x2ab549={'m1Prime':_0x2f88ce,'m2Prime':_0x183708};if(_0x2f88ce['params'][_0x2179f5(0x3a7)]!==_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x3a7)]||_0x2f88ce[_0x2179f5(0x1a4)][_0x2179f5(0x2e9)]!==_0x183708['params']['subUnitId'])return _0x2ab549;const _0x904cb0=_univerjs_core[_0x2179f5(0x1a6)][_0x2179f5(0x3ce)](_0x2f88ce),_0x11efaf=_univerjs_core[_0x2179f5(0x1a6)][_0x2179f5(0x3ce)](_0x183708);if(_0x2f88ce[_0x2179f5(0x1a4)][_0x2179f5(0x1b6)][_0x2179f5(0x1e8)]<=_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x195)]['endRow']&&_0x2f88ce[_0x2179f5(0x1a4)]['range'][_0x2179f5(0x342)]>=_0x183708['params'][_0x2179f5(0x195)]['startRow']||_0x2f88ce['params'][_0x2179f5(0x1b6)][_0x2179f5(0x1e8)]<=_0x183708[_0x2179f5(0x1a4)]['targetRange']['endRow']&&_0x2f88ce[_0x2179f5(0x1a4)]['range'][_0x2179f5(0x342)]>=_0x183708['params'][_0x2179f5(0x373)][_0x2179f5(0x1e8)])return{'error':new Error(_0x2179f5(0x33f))};const _0x38a6dd=(0x0,_univerjs_sheets[_0x2179f5(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x2179f5(0x225)])(_0x2f88ce[_0x2179f5(0x1a4)]['range'])),toColumn((0x0,_univerjs_sheets[_0x2179f5(0x225)])(_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x195)]))),_0x1f2dbf=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x2179f5(0x225)])(_0x2f88ce[_0x2179f5(0x1a4)][_0x2179f5(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x2179f5(0x225)])(_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x373)])));if(_0x38a6dd&&_0x1f2dbf)_0x11efaf[_0x2179f5(0x1a4)]['sourceRange'][_0x2179f5(0x1e8)]+=_0x38a6dd[_0x2179f5(0x2d0)],_0x11efaf[_0x2179f5(0x1a4)]['sourceRange']['endRow']+=_0x38a6dd[_0x2179f5(0x2d0)]+(_0x38a6dd['length']||0x0),_0x11efaf[_0x2179f5(0x1a4)]['targetRange'][_0x2179f5(0x1e8)]+=_0x1f2dbf[_0x2179f5(0x2d0)],_0x11efaf[_0x2179f5(0x1a4)][_0x2179f5(0x373)][_0x2179f5(0x342)]+=_0x1f2dbf['step']+(_0x1f2dbf[_0x2179f5(0x1ba)]||0x0);else _0x11efaf['id']=_univerjs_sheets[_0x2179f5(0x36d)]['id'];const _0x45fbcf=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x183708['params'][_0x2179f5(0x195)][_0x2179f5(0x1e8)],'end':_0x183708['params'][_0x2179f5(0x195)]['endRow']},{'start':_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x373)][_0x2179f5(0x1e8)],'end':_0x183708[_0x2179f5(0x1a4)][_0x2179f5(0x373)][_0x2179f5(0x342)]},{'start':_0x2f88ce[_0x2179f5(0x1a4)]['range'][_0x2179f5(0x1e8)],'end':_0x2f88ce[_0x2179f5(0x1a4)][_0x2179f5(0x1b6)]['endRow']});if(_0x45fbcf){const {step:_0x100142,length:_0x150ac6}=_0x45fbcf;_0x904cb0[_0x2179f5(0x1a4)][_0x2179f5(0x1b6)][_0x2179f5(0x1e8)]+=_0x100142,_0x904cb0[_0x2179f5(0x1a4)][_0x2179f5(0x1b6)][_0x2179f5(0x342)]+=_0x100142+(_0x150ac6||0x0);}else _0x904cb0['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x904cb0,'m2Prime':_0x11efaf};}},removeRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x2062d7,_0x296a51){const _0x1fa983=_0x151f3e,_0x4596f3={'m1Prime':_0x2062d7,'m2Prime':_0x296a51};if(_0x2062d7[_0x1fa983(0x1a4)]['unitId']!==_0x296a51[_0x1fa983(0x1a4)][_0x1fa983(0x3a7)]||_0x2062d7[_0x1fa983(0x1a4)][_0x1fa983(0x2e9)]!==_0x296a51[_0x1fa983(0x1a4)][_0x1fa983(0x2e9)])return _0x4596f3;const _0x441583=_univerjs_core[_0x1fa983(0x1a6)][_0x1fa983(0x3ce)](_0x2062d7),_0x318f30=_univerjs_core['Tools'][_0x1fa983(0x3ce)](_0x296a51),{ranges:_0x39b6da}=_0x318f30['params'];if(_0x39b6da[_0x1fa983(0x3a1)](_0x36b429=>{const _0x39ff8f=_0x1fa983,_0x524dd1=(0x0,_univerjs_sheets[_0x39ff8f(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x39ff8f(0x225)])(_0x2062d7[_0x39ff8f(0x1a4)][_0x39ff8f(0x1b6)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x36b429)));if(_0x524dd1===null||_0x524dd1[_0x39ff8f(0x1ba)]!==0x0)return!![];return _0x36b429[_0x39ff8f(0x1e8)]+=_0x524dd1[_0x39ff8f(0x2d0)],_0x36b429[_0x39ff8f(0x342)]+=_0x524dd1['step'],![];}))return{'error':new Error(_0x1fa983(0x3f8))};return{'m1Prime':_0x441583,'m2Prime':_0x318f30};}},removeRowMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'handler'(_0x57f005,_0x48c4d8){const _0x3103d0=_0x151f3e,_0x1dee02={'m1Prime':_0x57f005,'m2Prime':_0x48c4d8};if(_0x57f005[_0x3103d0(0x1a4)][_0x3103d0(0x3a7)]!==_0x48c4d8[_0x3103d0(0x1a4)][_0x3103d0(0x3a7)]||_0x57f005[_0x3103d0(0x1a4)][_0x3103d0(0x2e9)]!==_0x48c4d8[_0x3103d0(0x1a4)]['subUnitId'])return _0x1dee02;const _0x57485e=_univerjs_core[_0x3103d0(0x1a6)][_0x3103d0(0x3ce)](_0x57f005),_0x1460e2=_univerjs_core[_0x3103d0(0x1a6)][_0x3103d0(0x3ce)](_0x48c4d8),_0x31efe7=(0x0,_univerjs_sheets[_0x3103d0(0x31e)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x57f005[_0x3103d0(0x1a4)][_0x3103d0(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x3103d0(0x225)])(_0x48c4d8['params'][_0x3103d0(0x1b6)])));if(_0x31efe7){const {step:_0x305415,length:_0x363ad9}=_0x31efe7;_0x1460e2[_0x3103d0(0x1a4)][_0x3103d0(0x1b6)][_0x3103d0(0x1e8)]+=_0x305415,_0x1460e2[_0x3103d0(0x1a4)][_0x3103d0(0x1b6)][_0x3103d0(0x342)]+=_0x305415+(_0x363ad9||0x0);}else _0x1460e2['id']=_univerjs_sheets[_0x3103d0(0x36d)]['id'];const _0x1626a=(0x0,_univerjs_sheets[_0x3103d0(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x3103d0(0x225)])(_0x48c4d8[_0x3103d0(0x1a4)]['range'])),toColumn((0x0,_univerjs_sheets[_0x3103d0(0x225)])(_0x57f005['params']['range'])));if(_0x1626a){const {step:_0x1f2a96,length:_0x51dcb1}=_0x1626a;_0x57485e['params'][_0x3103d0(0x1b6)][_0x3103d0(0x1e8)]+=_0x1f2a96,_0x57485e[_0x3103d0(0x1a4)][_0x3103d0(0x1b6)][_0x3103d0(0x342)]+=_0x1f2a96+(_0x51dcb1||0x0);}else _0x57485e['id']=_univerjs_sheets[_0x3103d0(0x36d)]['id'];return{'m1Prime':_0x57485e,'m2Prime':_0x1460e2};}},removeRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler'(_0x5a01c0,_0x173e78){const _0x59e24a=_0x151f3e,_0x4906e6=_univerjs_core[_0x59e24a(0x1a6)][_0x59e24a(0x3ce)](_0x5a01c0),_0x59234d=_univerjs_core[_0x59e24a(0x1a6)][_0x59e24a(0x3ce)](_0x173e78);if(_0x5a01c0[_0x59e24a(0x1a4)][_0x59e24a(0x3a7)]!==_0x173e78[_0x59e24a(0x1a4)][_0x59e24a(0x3a7)]||_0x5a01c0[_0x59e24a(0x1a4)][_0x59e24a(0x2e9)]!==_0x173e78['params'][_0x59e24a(0x2e9)])return{'m1Prime':_0x4906e6,'m2Prime':_0x59234d};const _0x14e343=_0x59234d['params']['ranges'][_0x59e24a(0x1d3)]((_0x3fbd86,_0x486c13)=>{const _0xcfea9c=_0x59e24a,_0x1b87dd=_0x4906e6['params']['range'],_0x48edc8=_0x1b87dd['endRow']-_0x1b87dd['startRow']+0x1;let _0x27f11f={..._0x486c13};if(_0x1b87dd[_0xcfea9c(0x1e8)]>_0x486c13['endRow'])_0x27f11f={..._0x486c13};else{if(_0x1b87dd[_0xcfea9c(0x1e8)]>=_0x486c13[_0xcfea9c(0x1e8)]&&_0x1b87dd['startRow']<=_0x486c13[_0xcfea9c(0x342)]&&_0x1b87dd[_0xcfea9c(0x342)]>_0x486c13[_0xcfea9c(0x342)]){_0x27f11f[_0xcfea9c(0x342)]=_0x1b87dd['startRow']-0x1;if(_0x1b87dd[_0xcfea9c(0x1e8)]===_0x486c13['startRow'])_0x27f11f=null;}else{if(_0x1b87dd[_0xcfea9c(0x1e8)]>_0x486c13['startRow']&&_0x1b87dd[_0xcfea9c(0x342)]<_0x486c13[_0xcfea9c(0x342)])_0x27f11f[_0xcfea9c(0x342)]=_0x486c13[_0xcfea9c(0x342)]-_0x48edc8;else{if(_0x1b87dd[_0xcfea9c(0x1e8)]<_0x486c13[_0xcfea9c(0x1e8)]&&_0x1b87dd[_0xcfea9c(0x342)]>=_0x486c13['startRow']&&_0x1b87dd[_0xcfea9c(0x342)]<=_0x486c13['endRow']){_0x27f11f[_0xcfea9c(0x1e8)]=_0x1b87dd[_0xcfea9c(0x1e8)],_0x27f11f[_0xcfea9c(0x342)]=_0x486c13[_0xcfea9c(0x342)]-_0x48edc8;if(_0x1b87dd['endRow']===_0x486c13[_0xcfea9c(0x342)])_0x27f11f=null;}else{if(_0x1b87dd[_0xcfea9c(0x1e8)]<=_0x486c13[_0xcfea9c(0x1e8)]&&_0x1b87dd[_0xcfea9c(0x342)]>=_0x486c13[_0xcfea9c(0x342)])_0x27f11f=null;else _0x1b87dd[_0xcfea9c(0x342)]<_0x486c13[_0xcfea9c(0x1e8)]&&(_0x27f11f[_0xcfea9c(0x1e8)]=_0x486c13[_0xcfea9c(0x1e8)]-_0x48edc8,_0x27f11f['endRow']=_0x486c13['endRow']-_0x48edc8);}}}}if(_0x27f11f&&!(_0x27f11f[_0xcfea9c(0x1e8)]===_0x27f11f[_0xcfea9c(0x342)]&&_0x27f11f[_0xcfea9c(0x1cb)]===_0x27f11f[_0xcfea9c(0x350)]))return _0x3fbd86[_0xcfea9c(0x1c6)](_0x27f11f),_0x3fbd86;else return _0x3fbd86;},[]);return _0x59234d['params']['ranges']=_0x14e343,{'m1Prime':_0x4906e6,'m2Prime':_0x59234d};}},removeRowMutationWithReorderRange={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x36de85,_0x429b8c){const _0x2fc8ab=_0x151f3e,_0x5380cf={'m1Prime':_0x36de85,'m2Prime':_0x429b8c};if(_0x36de85['params'][_0x2fc8ab(0x3a7)]!==_0x429b8c['params'][_0x2fc8ab(0x3a7)]||_0x36de85['params']['subUnitId']!==_0x429b8c[_0x2fc8ab(0x1a4)]['subUnitId'])return _0x5380cf;const _0x1dae98=_univerjs_core[_0x2fc8ab(0x1a6)][_0x2fc8ab(0x3ce)](_0x429b8c),_0x3a2821=_univerjs_core[_0x2fc8ab(0x1a6)][_0x2fc8ab(0x3ce)](_0x36de85),_0x775033=(0x0,_univerjs_sheets[_0x2fc8ab(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x2fc8ab(0x225)])(_0x36de85[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x2fc8ab(0x225)])(_0x429b8c[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)])));if(!_0x775033)return{'m1Prime':_0x36de85,'m2Prime':[]};if(_0x775033['length']===0x0&&_0x775033[_0x2fc8ab(0x2d0)]===0x0)return{'m1Prime':_0x36de85,'m2Prime':_0x429b8c};const {startRow:_0x496675,endRow:_0xce794c}=_0x36de85['params'][_0x2fc8ab(0x1b6)];_0x1dae98[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)]['startRow']+=_0x775033['step'],_0x1dae98[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)][_0x2fc8ab(0x342)]+=_0x775033[_0x2fc8ab(0x2d0)]+(_0x775033[_0x2fc8ab(0x1ba)]||0x0);const _0x294fa2=Object['keys'](_0x429b8c[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x282)])[_0x2fc8ab(0x284)](_0x512bcd=>orderMap(_0x496675,_0xce794c,Number(_0x512bcd)))[_0x2fc8ab(0x324)](_0x35664a=>_0x35664a!==null),_0x1315ad={};for(const _0x358d3e in _0x429b8c['params']['order']){let _0x4edf26=_0x429b8c[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x282)][_0x358d3e];_0x4edf26=orderMap(_0x496675,_0xce794c,_0x4edf26);if(_0x4edf26!==null)_0x1315ad[_0x294fa2[_0x2fc8ab(0x27f)]()]=_0x4edf26;}_0x1dae98[_0x2fc8ab(0x1a4)]['order']=_0x1315ad;const _0x4273f8=reorderRemoveRows(_0x429b8c['params'][_0x2fc8ab(0x282)],{'start':_0x36de85[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)]['startRow'],'end':_0x36de85[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)]['endRow']}),_0x32fbd5=[_0x3a2821];if(_0x4273f8)_0x32fbd5[_0x2fc8ab(0x3e8)]({'id':_univerjs_sheets[_0x2fc8ab(0x3dd)]['id'],'params':{..._0x36de85['params'],'order':_0x4273f8['order'],'range':{..._0x429b8c[_0x2fc8ab(0x1a4)][_0x2fc8ab(0x1b6)],..._0x4273f8[_0x2fc8ab(0x1b6)]}}});return{'m1Prime':_0x32fbd5,'m2Prime':_0x1dae98};}},reorderRemoveRows=(_0x116d8e,_0x2cfb4f)=>{const _0x222091=_0x151f3e,_0x4b86ed=Object['keys'](_0x116d8e)['map'](Number)['sort']((_0x4fc64f,_0x793efe)=>_0x4fc64f-_0x793efe);if(_0x4b86ed['length']===0x0)return null;const _0x4a6f24=_0x4b86ed[0x0],_0x4e2916=_0x4b86ed[_0x4b86ed[_0x222091(0x1ba)]-0x1];if(_0x4a6f24>_0x2cfb4f[_0x222091(0x2c3)]||_0x4e2916<_0x2cfb4f[_0x222091(0x2d5)])return null;const _0x594731=_0x4b86ed['filter'](_0x42c9ec=>_0x116d8e[_0x42c9ec]>=_0x2cfb4f[_0x222091(0x2d5)]&&_0x116d8e[_0x42c9ec]<=_0x2cfb4f['end']);if(_0x594731[_0x222091(0x1ba)]===0x0)return null;const _0x4a8e70=_0x594731['map'](_0x22ac79=>_0x116d8e[_0x22ac79]),_0x359157={},_0x55c397=Math[_0x222091(0x308)](_0x594731[0x0],_0x2cfb4f['start']),_0x40afb5=Math['max'](_0x594731[_0x594731[_0x222091(0x1ba)]-0x1],_0x2cfb4f['end']),_0x347963=Array[_0x222091(0x3fc)]({'length':_0x40afb5-_0x55c397+0x1},(_0x41152a,_0x24a5b5)=>_0x24a5b5+_0x55c397)[_0x222091(0x324)](_0x220e6f=>!_0x594731['includes'](_0x220e6f));return Array['from']({'length':_0x40afb5-_0x55c397+0x1},(_0x1f2c20,_0x5be6a9)=>_0x5be6a9+_0x55c397)[_0x222091(0x324)](_0x9bdd7c=>!_0x4a8e70['includes'](_0x9bdd7c))[_0x222091(0x3b5)]((_0x392ca9,_0x3b47e0)=>{_0x359157[_0x392ca9]=_0x347963[_0x3b47e0];}),_0x4a8e70['forEach']((_0x177929,_0x5a3514)=>{_0x359157[_0x177929]=_0x594731[_0x5a3514];}),{'range':{'startRow':_0x55c397,'endRow':_0x40afb5},'order':_0x359157};},orderMap=(_0x4dcc87,_0x557579,_0xd9ec60)=>{if(_0xd9ec60>=_0x4dcc87&&_0xd9ec60<=_0x557579)return null;if(_0xd9ec60>_0x557579)return _0xd9ec60-(_0x557579-_0x4dcc87+0x1);return _0xd9ec60;},removeRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x1a522f,_0x4d521c){const _0x4ab7c3=_0x151f3e,_0x36fdb1={'m1Prime':_0x1a522f,'m2Prime':_0x4d521c};if(_0x1a522f[_0x4ab7c3(0x1a4)][_0x4ab7c3(0x3a7)]!==_0x4d521c[_0x4ab7c3(0x1a4)][_0x4ab7c3(0x3a7)]||_0x1a522f[_0x4ab7c3(0x1a4)][_0x4ab7c3(0x2e9)]!==_0x4d521c[_0x4ab7c3(0x1a4)][_0x4ab7c3(0x2e9)])return _0x36fdb1;const _0x524751=[_univerjs_core[_0x4ab7c3(0x1a6)][_0x4ab7c3(0x3ce)](_0x1a522f)],_0x50332d=_univerjs_core[_0x4ab7c3(0x1a6)][_0x4ab7c3(0x3ce)](_0x4d521c),{values:_0x274e95}=_0x50332d[_0x4ab7c3(0x1a4)],_0x1a4b92=[];let _0x518da3=![];for(const _0x15fbbb in _0x274e95){const _0x3d5944=_0x274e95[_0x15fbbb];_0x1a4b92['push'](..._0x3d5944[_0x4ab7c3(0x286)]);if(_0x3d5944[_0x4ab7c3(0x286)][_0x4ab7c3(0x3a1)](_0x598628=>{const _0x3732fe=_0x4ab7c3,_0x4d6e84=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x1a522f[_0x3732fe(0x1a4)][_0x3732fe(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x3732fe(0x225)])(_0x598628)));if(_0x4d6e84==null||_0x4d6e84[_0x3732fe(0x1ba)]!==0x0)return!![];if(_0x4d6e84[_0x3732fe(0x2d0)]!==0x0)_0x518da3=!![];return _0x598628[_0x3732fe(0x1e8)]+=_0x4d6e84['step'],_0x598628[_0x3732fe(0x342)]+=_0x4d6e84['step'],![];}))return{'error':new Error(_0x4ab7c3(0x206))};}if(_0x518da3){const _0x4ba274={'id':_univerjs_sheets[_0x4ab7c3(0x2b1)]['id'],'params':{'unitId':_0x4d521c[_0x4ab7c3(0x1a4)][_0x4ab7c3(0x3a7)],'subUnitId':_0x4d521c['params'][_0x4ab7c3(0x2e9)],'ranges':_0x1a4b92}};_0x524751['push'](_0x4ba274,_0x50332d);}return{'m1Prime':_0x524751,'m2Prime':_0x50332d};}},removeRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler'(_0x230eb3,_0x5e19f){const _0x188c2d=_0x151f3e,_0x454863={'m1Prime':_0x230eb3,'m2Prime':_0x5e19f};if(_0x230eb3['params'][_0x188c2d(0x3a7)]!==_0x5e19f['params'][_0x188c2d(0x3a7)]||_0x230eb3['params'][_0x188c2d(0x2e9)]!==_0x5e19f[_0x188c2d(0x1a4)][_0x188c2d(0x2e9)])return _0x454863;const _0x2f1e7c=[_univerjs_core[_0x188c2d(0x1a6)][_0x188c2d(0x3ce)](_0x230eb3)],_0x3d8ca8=_univerjs_core['Tools'][_0x188c2d(0x3ce)](_0x5e19f),_0x313a6a=new _univerjs_core[(_0x188c2d(0x2e2))](_0x3d8ca8[_0x188c2d(0x1a4)][_0x188c2d(0x30b)]),_0x31d89d=_0x313a6a[_0x188c2d(0x25e)](),_0x1217a7=_0x230eb3[_0x188c2d(0x1a4)][_0x188c2d(0x1b6)],_0x154384=_0x1217a7[_0x188c2d(0x342)]-_0x1217a7['startRow']+0x1;if(_0x3d8ca8[_0x188c2d(0x1a4)][_0x188c2d(0x30b)]&&_0x1217a7['endRow']<_0x31d89d[_0x188c2d(0x1e8)])moveRows(_0x3d8ca8[_0x188c2d(0x1a4)][_0x188c2d(0x30b)],_0x31d89d[_0x188c2d(0x1e8)],_0x31d89d['endRow']-_0x31d89d['startRow']+0x1,-_0x154384);else{if(_0x1217a7['startRow']<=_0x31d89d['endRow'])return{'error':new Error(_0x188c2d(0x35a))};}const _0x1b7e06=new _univerjs_core[(_0x188c2d(0x2e2))]();let _0x283cc6=![],_0x2d1392=![];_0x313a6a['forValue']((_0x45c685,_0xc93d2f,_0x1acf17)=>{const _0x2611e5=_0x188c2d;if(_0x1acf17&&_0x1acf17['f']){const _0x284555=_0x1acf17['f'];let _0x11dbb7=![];const _0x4c34a5=processFormulaString(_0x230eb3['params'][_0x2611e5(0x3a7)],_0x230eb3[_0x2611e5(0x1a4)][_0x2611e5(0x2e9)],_0x284555,_0xc455c1=>{const _0x267700=_0x2611e5,_0x5aab5c=(0x0,_univerjs_sheets[_0x267700(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x267700(0x225)])(_0x230eb3['params']['range'])),toColumn((0x0,_univerjs_sheets[_0x267700(0x225)])(_0xc455c1)));if(_0x5aab5c===null)return _0x283cc6=!![],_0xc455c1;return(_0x5aab5c[_0x267700(0x2d0)]!==0x0||_0x5aab5c[_0x267700(0x1ba)]!==0x0)&&(_0x11dbb7=!![],_0xc455c1[_0x267700(0x1e8)]+=_0x5aab5c[_0x267700(0x2d0)],_0xc455c1['endRow']+=_0x5aab5c[_0x267700(0x2d0)]+_0x5aab5c[_0x267700(0x1ba)]),_0xc455c1;});_0x11dbb7&&(_0x2d1392=!![],_0x1acf17['f']=_0x4c34a5,_0x1b7e06[_0x2611e5(0x1af)](_0x45c685,_0xc93d2f,{..._0x1acf17}));}});if(_0x283cc6)return{'error':new Error('remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20row')};if(_0x2d1392){const _0x508c16={'id':_univerjs_sheets[_0x188c2d(0x203)]['id'],'params':{'unitId':_0x5e19f['params'][_0x188c2d(0x3a7)],'subUnitId':_0x5e19f[_0x188c2d(0x1a4)][_0x188c2d(0x2e9)],'cellValue':_0x1b7e06[_0x188c2d(0x1c4)]()}};_0x2f1e7c['push'](_0x508c16);}return{'m1Prime':_0x2f1e7c,'m2Prime':_0x3d8ca8};}},removeRowMutationWithSetRowData={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x39a)]['id'],'handler'(_0x46d13f,_0x226ec6){const _0x4cd835=_0x151f3e,_0x4d34bc={'m1Prime':_0x46d13f,'m2Prime':_0x226ec6};if(_0x46d13f[_0x4cd835(0x1a4)][_0x4cd835(0x3a7)]!==_0x226ec6[_0x4cd835(0x1a4)][_0x4cd835(0x3a7)]||_0x46d13f['params'][_0x4cd835(0x2e9)]!==_0x226ec6[_0x4cd835(0x1a4)]['subUnitId'])return _0x4d34bc;const _0x23fbfe=_univerjs_core['Tools']['deepClone'](_0x46d13f),_0x13cdad=_univerjs_core[_0x4cd835(0x1a6)]['deepClone'](_0x226ec6),{rowData:_0x18da16}=_0x13cdad['params'];return(0x0,_univerjs_core[_0x4cd835(0x3c5)])(_0x46d13f[_0x4cd835(0x1a4)][_0x4cd835(0x1b6)][_0x4cd835(0x1e8)],_0x46d13f[_0x4cd835(0x1a4)][_0x4cd835(0x1b6)][_0x4cd835(0x342)]-_0x46d13f[_0x4cd835(0x1a4)][_0x4cd835(0x1b6)][_0x4cd835(0x1e8)]+0x1,_0x18da16),{'m1Prime':_0x23fbfe,'m2Prime':_0x13cdad};}},removeRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x201)]['id'],'handler'(_0x20e1b1,_0x5ecc17){const _0x5139d7=_0x151f3e,_0x320a82={'m1Prime':_0x20e1b1,'m2Prime':_0x5ecc17};if(_0x20e1b1[_0x5139d7(0x1a4)]['unitId']!==_0x5ecc17[_0x5139d7(0x1a4)][_0x5139d7(0x3a7)]||_0x20e1b1['params'][_0x5139d7(0x2e9)]!==_0x5ecc17['params'][_0x5139d7(0x2e9)])return _0x320a82;const _0x3ee1ea=_univerjs_core[_0x5139d7(0x1a6)][_0x5139d7(0x3ce)](_0x20e1b1),_0x469dc5=_univerjs_core[_0x5139d7(0x1a6)][_0x5139d7(0x3ce)](_0x5ecc17),{ranges:_0x3bc37e}=_0x469dc5[_0x5139d7(0x1a4)];return _0x3bc37e[_0x5139d7(0x3b5)](_0x147835=>{const _0x201106=_0x5139d7,_0x5cd823=(0x0,_univerjs_sheets[_0x201106(0x31e)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x20e1b1[_0x201106(0x1a4)][_0x201106(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x201106(0x225)])(_0x147835)));if(_0x5cd823==null)_0x469dc5['id']=_univerjs_sheets[_0x201106(0x36d)]['id'];else _0x147835[_0x201106(0x1e8)]+=_0x5cd823[_0x201106(0x2d0)],_0x147835['endRow']+=_0x5cd823[_0x201106(0x2d0)]+_0x5cd823[_0x201106(0x1ba)];}),{'m1Prime':_0x3ee1ea,'m2Prime':_0x469dc5};}},removeRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x327)]['id'],'handler'(_0x38f74f,_0x5d9d47){const _0x447850=_0x151f3e,_0xcc0008={'m1Prime':_0x38f74f,'m2Prime':_0x5d9d47};if(_0x38f74f['params'][_0x447850(0x3a7)]!==_0x5d9d47['params']['unitId']||_0x38f74f[_0x447850(0x1a4)][_0x447850(0x2e9)]!==_0x5d9d47['params'][_0x447850(0x2e9)])return _0xcc0008;const _0x127f10=_univerjs_core[_0x447850(0x1a6)][_0x447850(0x3ce)](_0x38f74f),_0x40542d=_univerjs_core['Tools'][_0x447850(0x3ce)](_0x5d9d47),{ranges:_0x418605}=_0x40542d['params'];return _0x418605[_0x447850(0x3b5)](_0x6c6d53=>{const _0x49354a=_0x447850,_0xd4cbc9=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x38f74f[_0x49354a(0x1a4)][_0x49354a(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x49354a(0x225)])(_0x6c6d53)));if(_0xd4cbc9==null)_0x40542d['id']=_univerjs_sheets[_0x49354a(0x36d)]['id'];else _0x6c6d53[_0x49354a(0x1e8)]+=_0xd4cbc9[_0x49354a(0x2d0)],_0x6c6d53['endRow']+=_0xd4cbc9[_0x49354a(0x2d0)]+_0xd4cbc9['length'];}),{'m1Prime':_0x127f10,'m2Prime':_0x40542d};}},removeRowMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x30f)]['id'],'handler'(_0x1570a5,_0x30a5ca){const _0x49fdf6=_0x151f3e,_0x4a2fac={'m1Prime':[],'m2Prime':[]};if(_0x1570a5[_0x49fdf6(0x1a4)][_0x49fdf6(0x3a7)]!==_0x30a5ca[_0x49fdf6(0x1a4)][_0x49fdf6(0x3a7)]||_0x1570a5[_0x49fdf6(0x1a4)][_0x49fdf6(0x2e9)]!==_0x30a5ca[_0x49fdf6(0x1a4)][_0x49fdf6(0x2e9)])return _0x4a2fac;const _0x208c52=_univerjs_core['Tools'][_0x49fdf6(0x3ce)](_0x30a5ca);let _0xc2c9c8=![];_0x208c52['params'][_0x49fdf6(0x198)][_0x49fdf6(0x3b5)](_0x5559aa=>{const _0x4d05fd=_0x49fdf6,{range:_0x38a8fc,primary:_0x56244d}=_0x5559aa,_0x2d7fc8=(0x0,_univerjs_sheets[_0x4d05fd(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x4d05fd(0x225)])(_0x1570a5['params'][_0x4d05fd(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x4d05fd(0x225)])(_0x38a8fc)));if(_0x2d7fc8==null)return;if(_0x2d7fc8[_0x4d05fd(0x1ba)]||_0x2d7fc8[_0x4d05fd(0x2d0)]){_0x38a8fc[_0x4d05fd(0x1e8)]+=_0x2d7fc8[_0x4d05fd(0x2d0)],_0x38a8fc['endRow']+=_0x2d7fc8[_0x4d05fd(0x2d0)]+(_0x2d7fc8[_0x4d05fd(0x1ba)]||0x0);if(_0x56244d){const _0x25e5fc=(0x0,_univerjs_sheets[_0x4d05fd(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x4d05fd(0x225)])(_0x1570a5[_0x4d05fd(0x1a4)][_0x4d05fd(0x1b6)])),toColumn((0x0,_univerjs_sheets[_0x4d05fd(0x225)])(_0x56244d)));if(_0x25e5fc==null){_0x56244d[_0x4d05fd(0x1e8)]=_0x38a8fc[_0x4d05fd(0x1e8)],_0x56244d[_0x4d05fd(0x342)]=_0x38a8fc[_0x4d05fd(0x1e8)],_0x56244d['actualRow']=_0x38a8fc[_0x4d05fd(0x1e8)];return;}(_0x25e5fc[_0x4d05fd(0x1ba)]||_0x25e5fc['step'])&&(_0x56244d[_0x4d05fd(0x1e8)]+=_0x25e5fc[_0x4d05fd(0x2d0)],_0x56244d[_0x4d05fd(0x342)]+=_0x25e5fc['step'],_0x56244d[_0x4d05fd(0x364)]+=_0x25e5fc['step']);}_0xc2c9c8=!![];}});if(_0xc2c9c8)_0x4a2fac[_0x49fdf6(0x1a7)][_0x49fdf6(0x1c6)](_0x208c52);return _0x4a2fac;}},removeRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'handler'(_0x28fae5,_0x544a62){const _0x4c0c9c=_0x151f3e,_0xf43db0={'m1Prime':[_0x28fae5],'m2Prime':[_0x544a62]};if(_0x28fae5['params'][_0x4c0c9c(0x3a7)]!==_0x544a62[_0x4c0c9c(0x1a4)][_0x4c0c9c(0x3a7)]||_0x28fae5['params'][_0x4c0c9c(0x2e9)]!==_0x544a62[_0x4c0c9c(0x1a4)][_0x4c0c9c(0x2e9)])return _0xf43db0;const _0x3bb738=_univerjs_core[_0x4c0c9c(0x1a6)][_0x4c0c9c(0x3ce)](_0x28fae5),_0x56cf98=_univerjs_core[_0x4c0c9c(0x1a6)][_0x4c0c9c(0x3ce)](_0x544a62),_0x1156a6=handleRemove({'start':_0x28fae5['params'][_0x4c0c9c(0x1b6)]['startRow'],'end':_0x28fae5[_0x4c0c9c(0x1a4)][_0x4c0c9c(0x1b6)][_0x4c0c9c(0x342)]},{'start':_0x544a62['params'][_0x4c0c9c(0x1b6)][_0x4c0c9c(0x1e8)],'end':_0x544a62['params']['range']['endRow']});if(_0x1156a6===null)return{'m1Prime':[_0x3bb738,{'id':_univerjs_sheets_filter[_0x4c0c9c(0x2a6)]['id'],'params':{'unitId':_0x544a62['params'][_0x4c0c9c(0x3a7)],'subUnitId':_0x544a62[_0x4c0c9c(0x1a4)][_0x4c0c9c(0x3a7)]}}],'m2Prime':[]};return _0x56cf98['params'][_0x4c0c9c(0x1b6)][_0x4c0c9c(0x1e8)]=_0x1156a6[_0x4c0c9c(0x2d5)],_0x56cf98[_0x4c0c9c(0x1a4)]['range'][_0x4c0c9c(0x342)]=_0x1156a6['end'],{'m1Prime':[_0x56cf98,_0x3bb738],'m2Prime':[_0x56cf98]};}},removeRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f8)]['id'],'handler'(_0x1359bb,_0x4378a5){const _0x5557c8=_0x151f3e,_0x3565d2={'m1Prime':_0x1359bb,'m2Prime':_0x4378a5};if(_0x1359bb[_0x5557c8(0x1a4)]['unitId']!==_0x4378a5[_0x5557c8(0x1a4)][_0x5557c8(0x3a7)]||_0x1359bb[_0x5557c8(0x1a4)][_0x5557c8(0x2e9)]!==_0x4378a5[_0x5557c8(0x1a4)][_0x5557c8(0x2e9)])return _0x3565d2;const _0x3576ed=_univerjs_core[_0x5557c8(0x1a6)][_0x5557c8(0x3ce)](_0x1359bb),_0x2f92e8=_univerjs_core[_0x5557c8(0x1a6)][_0x5557c8(0x3ce)](_0x4378a5),{rowsAutoHeightInfo:_0x4424c3}=_0x2f92e8['params'];for(let _0x41605d=_0x4424c3[_0x5557c8(0x1ba)]-0x1;_0x41605d>=0x0;_0x41605d--){const _0x3aa781=_0x4424c3[_0x41605d],_0x57c85f={'startRow':_0x3aa781[_0x5557c8(0x1d0)],'endRow':_0x3aa781['row'],'startColumn':0x0,'endColumn':0x0},_0x5a788d=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x5557c8(0x225)])(_0x1359bb[_0x5557c8(0x1a4)][_0x5557c8(0x1b6)])),(0x0,_univerjs_sheets['rotateRange'])(_0x57c85f));if(_0x5a788d==null)_0x4424c3[_0x5557c8(0x28d)](_0x41605d,0x1);else _0x3aa781['row']+=_0x5a788d[_0x5557c8(0x2d0)];}return{'m1Prime':_0x3576ed,'m2Prime':_0x2f92e8};}},removeRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f2)]['id'],'handler'(_0x440063,_0x7e4363){const _0xa88e52=_0x151f3e,_0xa36c3c={'m1Prime':_0x440063,'m2Prime':_0x7e4363};if(_0x440063[_0xa88e52(0x1a4)][_0xa88e52(0x3a7)]!==_0x7e4363[_0xa88e52(0x1a4)]['unitId']||_0x440063[_0xa88e52(0x1a4)]['subUnitId']!==_0x7e4363['params'][_0xa88e52(0x2e9)])return _0xa36c3c;const _0x5aa133=_univerjs_core[_0xa88e52(0x1a6)][_0xa88e52(0x3ce)](_0x440063),_0x5269a3=_univerjs_core[_0xa88e52(0x1a6)]['deepClone'](_0x7e4363),{ranges:_0x23f81c,rowHeight:_0x574e27}=_0x5269a3['params'];_0x23f81c[_0xa88e52(0x3b5)](_0x89788f=>{const _0x4fb192=_0xa88e52,_0x5acbca=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x4fb192(0x225)])(_0x440063[_0x4fb192(0x1a4)]['range'])),(0x0,_univerjs_sheets['rotateRange'])(_0x89788f));if(_0x5acbca==null)_0x5269a3['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x89788f[_0x4fb192(0x1e8)]+=_0x5acbca[_0x4fb192(0x2d0)],_0x89788f['endRow']+=_0x5acbca[_0x4fb192(0x2d0)]+_0x5acbca[_0x4fb192(0x1ba)];});if(typeof _0x574e27!=='number')(0x0,_univerjs_core[_0xa88e52(0x3c5)])(_0x440063[_0xa88e52(0x1a4)][_0xa88e52(0x1b6)][_0xa88e52(0x1e8)],_0x440063[_0xa88e52(0x1a4)][_0xa88e52(0x1b6)]['endRow']-_0x440063[_0xa88e52(0x1a4)][_0xa88e52(0x1b6)][_0xa88e52(0x1e8)]+0x1,_0x574e27);return{'m1Prime':_0x5aa133,'m2Prime':_0x5269a3};}},removeRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x385)]['id'],'handler'(_0x2a5a18,_0x200a63){const _0x1a835f=_0x151f3e,_0x3ed4cf={'m1Prime':_0x2a5a18,'m2Prime':_0x200a63};if(_0x2a5a18[_0x1a835f(0x1a4)]['unitId']!==_0x200a63[_0x1a835f(0x1a4)]['unitId']||_0x2a5a18[_0x1a835f(0x1a4)]['subUnitId']!==_0x200a63[_0x1a835f(0x1a4)]['subUnitId'])return _0x3ed4cf;const _0x4a1f79=_univerjs_core['Tools']['deepClone'](_0x2a5a18),_0x5c8291=_univerjs_core[_0x1a835f(0x1a6)][_0x1a835f(0x3ce)](_0x200a63),{ranges:_0x54b7f7,autoHeightInfo:_0x1c1baf}=_0x5c8291[_0x1a835f(0x1a4)];_0x54b7f7[_0x1a835f(0x3b5)](_0x140517=>{const _0x28469d=_0x1a835f,_0x39c2f9=(0x0,_univerjs_sheets[_0x28469d(0x31e)])(toColumn((0x0,_univerjs_sheets[_0x28469d(0x225)])(_0x2a5a18[_0x28469d(0x1a4)]['range'])),(0x0,_univerjs_sheets[_0x28469d(0x225)])(_0x140517));if(_0x39c2f9==null)_0x5c8291['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x140517[_0x28469d(0x1e8)]+=_0x39c2f9['step'],_0x140517[_0x28469d(0x342)]+=_0x39c2f9[_0x28469d(0x2d0)]+_0x39c2f9['length'];});if(typeof _0x1c1baf!=='number')(0x0,_univerjs_core[_0x1a835f(0x3c5)])(_0x2a5a18[_0x1a835f(0x1a4)][_0x1a835f(0x1b6)][_0x1a835f(0x1e8)],_0x2a5a18[_0x1a835f(0x1a4)][_0x1a835f(0x1b6)][_0x1a835f(0x342)]-_0x2a5a18[_0x1a835f(0x1a4)][_0x1a835f(0x1b6)][_0x1a835f(0x1e8)]+0x1,_0x1c1baf);return{'m1Prime':_0x4a1f79,'m2Prime':_0x5c8291};}},removeRowWithUpdateCommentRef={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x3616f6,_0x16f142)=>{const _0x152c4d=_0x151f3e,_0x4ebaff={'m1Prime':_0x3616f6,'m2Prime':_0x16f142};if(_0x3616f6['params'][_0x152c4d(0x3a7)]!==_0x16f142[_0x152c4d(0x1a4)]['unitId']||_0x3616f6[_0x152c4d(0x1a4)][_0x152c4d(0x2e9)]!==_0x16f142[_0x152c4d(0x1a4)][_0x152c4d(0x2e9)])return _0x4ebaff;const _0x331f3a=transformUpdateCommentRefWithRefRange(_0x16f142,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'unitId':_0x3616f6[_0x152c4d(0x1a4)]['unitId'],'subUnitId':_0x3616f6[_0x152c4d(0x1a4)][_0x152c4d(0x2e9)],'range':_0x3616f6[_0x152c4d(0x1a4)][_0x152c4d(0x1b6)]}});return{'m1Prime':[_0x3616f6,..._0x331f3a],'m2Prime':[_0x16f142,..._0x331f3a]};}},removeRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x3b4c01,_0x29c21e)=>{const _0x4878ff=_0x151f3e,_0x530ce1={'m1Prime':_0x3b4c01,'m2Prime':_0x29c21e};if(_0x3b4c01[_0x4878ff(0x1a4)][_0x4878ff(0x3a7)]!==_0x29c21e[_0x4878ff(0x1a4)]['unitId']||_0x29c21e[_0x4878ff(0x1a4)]['subUnitId']!==_0x3b4c01[_0x4878ff(0x1a4)][_0x4878ff(0x2e9)])return _0x530ce1;const _0x42c915=transformUpdateDataValidationWithRefRange(_0x29c21e,{'id':_univerjs_sheets[_0x4878ff(0x22e)]['id'],'params':{'range':_0x3b4c01[_0x4878ff(0x1a4)]['range']}});return{'m1Prime':[_0x3b4c01,..._0x42c915],'m2Prime':[_0x29c21e,..._0x42c915]};}},removeWorksheetMergeMutationWithAddMerge={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x18b8b2,_0x78ebed){const _0x3dd1da=_0x151f3e,_0x328be1=_univerjs_core[_0x3dd1da(0x1a6)][_0x3dd1da(0x3ce)](_0x18b8b2),_0x19c349=_univerjs_core['Tools'][_0x3dd1da(0x3ce)](_0x78ebed);if(_0x18b8b2[_0x3dd1da(0x1a4)]['unitId']!==_0x78ebed[_0x3dd1da(0x1a4)][_0x3dd1da(0x3a7)]||_0x18b8b2[_0x3dd1da(0x1a4)][_0x3dd1da(0x2e9)]!==_0x78ebed[_0x3dd1da(0x1a4)][_0x3dd1da(0x2e9)])return{'m1Prime':_0x328be1,'m2Prime':_0x19c349};for(let _0x4571f7=0x0;_0x4571f7<_0x328be1[_0x3dd1da(0x1a4)][_0x3dd1da(0x286)][_0x3dd1da(0x1ba)];_0x4571f7++){let _0x18d46f=![];for(let _0x33b199=0x0;_0x33b199<_0x19c349[_0x3dd1da(0x1a4)]['ranges'][_0x3dd1da(0x1ba)];_0x33b199++){const _0x25453c=_0x328be1[_0x3dd1da(0x1a4)][_0x3dd1da(0x286)][_0x4571f7],_0x398541=_0x19c349['params'][_0x3dd1da(0x286)][_0x33b199];if(_univerjs_core[_0x3dd1da(0x1d9)]['intersects'](_0x25453c,_0x398541)){_0x18d46f=!![];break;}}_0x18d46f&&(_0x328be1[_0x3dd1da(0x1a4)][_0x3dd1da(0x286)]['splice'](_0x4571f7,0x1),_0x4571f7--);}if(_0x328be1[_0x3dd1da(0x1a4)][_0x3dd1da(0x286)][_0x3dd1da(0x1ba)]===0x0)_0x328be1['id']=_univerjs_sheets[_0x3dd1da(0x36d)]['id'];return{'m1Prime':_0x328be1,'m2Prime':_0x19c349};}},removeWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler'(_0x3a0c7f,_0x2e3bc5){const _0x251b4a=_0x151f3e,_0x5d0025=_univerjs_core[_0x251b4a(0x1a6)]['deepClone'](_0x3a0c7f),_0x2566a4=_univerjs_core[_0x251b4a(0x1a6)]['deepClone'](_0x2e3bc5);if(_0x3a0c7f[_0x251b4a(0x1a4)][_0x251b4a(0x3a7)]!==_0x2e3bc5[_0x251b4a(0x1a4)][_0x251b4a(0x3a7)]||_0x3a0c7f[_0x251b4a(0x1a4)][_0x251b4a(0x2e9)]!==_0x2e3bc5[_0x251b4a(0x1a4)][_0x251b4a(0x2e9)])return{'m1Prime':_0x5d0025,'m2Prime':_0x2566a4};const _0x51d839=_0x5d0025['params'][_0x251b4a(0x286)]['map'](_0x16bc27=>{const _0x3cfd60=_0x251b4a,_0x495966=_0x2566a4[_0x3cfd60(0x1a4)][_0x3cfd60(0x1b6)],_0x2c3c06=_0x495966[_0x3cfd60(0x350)]-_0x495966[_0x3cfd60(0x1cb)]+0x1;if(_0x495966[_0x3cfd60(0x1cb)]<=_0x16bc27[_0x3cfd60(0x1cb)])return{..._0x16bc27,'startColumn':_0x16bc27[_0x3cfd60(0x1cb)]+_0x2c3c06,'endColumn':_0x16bc27[_0x3cfd60(0x350)]+_0x2c3c06};else{if(_0x495966['startColumn']>_0x16bc27[_0x3cfd60(0x1cb)]&&_0x495966[_0x3cfd60(0x1cb)]<=_0x16bc27[_0x3cfd60(0x350)])return{..._0x16bc27,'endColumn':_0x16bc27[_0x3cfd60(0x350)]+_0x2c3c06};else return{..._0x16bc27};}});return _0x5d0025[_0x251b4a(0x1a4)][_0x251b4a(0x286)]=_0x51d839,{'m1Prime':_0x5d0025,'m2Prime':_0x2566a4};}},removeWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x271)]['id'],'handler'(_0x147628,_0x1fee93){const _0x4e1f6d=_0x151f3e,_0x1c6556=_univerjs_core['Tools'][_0x4e1f6d(0x3ce)](_0x147628),_0x1f04dc=_univerjs_core[_0x4e1f6d(0x1a6)]['deepClone'](_0x1fee93);if(_0x147628[_0x4e1f6d(0x1a4)][_0x4e1f6d(0x3a7)]!==_0x1fee93[_0x4e1f6d(0x1a4)][_0x4e1f6d(0x3a7)]||_0x147628[_0x4e1f6d(0x1a4)][_0x4e1f6d(0x2e9)]!==_0x1fee93['params']['subUnitId'])return{'m1Prime':_0x1c6556,'m2Prime':_0x1f04dc};const _0x3638a9=_0x1c6556[_0x4e1f6d(0x1a4)]['ranges'][_0x4e1f6d(0x284)](_0x3cf5ad=>{const _0x1880f3=_0x4e1f6d,_0x1c6ec6=_0x1f04dc['params'][_0x1880f3(0x1b6)],_0x38def5=_0x1c6ec6[_0x1880f3(0x342)]-_0x1c6ec6['startRow']+0x1;if(_0x1c6ec6[_0x1880f3(0x1e8)]<=_0x3cf5ad[_0x1880f3(0x1e8)])return{..._0x3cf5ad,'startRow':_0x3cf5ad['startRow']+_0x38def5,'endRow':_0x3cf5ad[_0x1880f3(0x342)]+_0x38def5};else{if(_0x1c6ec6[_0x1880f3(0x1e8)]>_0x3cf5ad[_0x1880f3(0x1e8)]&&_0x1c6ec6[_0x1880f3(0x1e8)]<=_0x3cf5ad[_0x1880f3(0x342)])return{..._0x3cf5ad,'endRow':_0x3cf5ad[_0x1880f3(0x342)]+_0x38def5};else return{..._0x3cf5ad};}});return _0x1c6556[_0x4e1f6d(0x1a4)][_0x4e1f6d(0x286)]=_0x3638a9,{'m1Prime':_0x1c6556,'m2Prime':_0x1f04dc};}},removeWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'handler'(_0xf148a7,_0x5243b5){const _0x1e3372=_0x151f3e,_0x55dc68=_univerjs_core[_0x1e3372(0x1a6)][_0x1e3372(0x3ce)](_0xf148a7),_0x5be30c=_univerjs_core[_0x1e3372(0x1a6)][_0x1e3372(0x3ce)](_0x5243b5);if(_0xf148a7[_0x1e3372(0x1a4)]['unitId']!==_0x5243b5[_0x1e3372(0x1a4)][_0x1e3372(0x3a7)]||_0xf148a7[_0x1e3372(0x1a4)][_0x1e3372(0x2e9)]!==_0x5243b5['params'][_0x1e3372(0x2e9)])return{'m1Prime':_0x55dc68,'m2Prime':_0x5be30c};const _0x59dfc5=_0x55dc68[_0x1e3372(0x1a4)]['ranges']['reduce']((_0x1c9e06,_0x5edd86)=>{const _0x49c24a=_0x1e3372,{sourceRange:_0x19e357,targetRange:_0x25e0ba}=_0x5243b5[_0x49c24a(0x1a4)],_0x36c2e0={..._0x5edd86};if(_0x19e357[_0x49c24a(0x350)]<_0x36c2e0['startColumn']&&_0x25e0ba[_0x49c24a(0x1cb)]>_0x36c2e0['endColumn'])_0x36c2e0[_0x49c24a(0x1cb)]-=_0x19e357[_0x49c24a(0x350)]-_0x19e357[_0x49c24a(0x1cb)]+0x1,_0x36c2e0[_0x49c24a(0x350)]-=_0x19e357['endColumn']-_0x19e357[_0x49c24a(0x1cb)]+0x1,isMergeCell(_0x36c2e0)&&_0x1c9e06[_0x49c24a(0x1c6)](_0x36c2e0);else{if(_0x19e357[_0x49c24a(0x1cb)]>_0x36c2e0[_0x49c24a(0x350)]&&_0x25e0ba[_0x49c24a(0x350)]<_0x36c2e0[_0x49c24a(0x1cb)])_0x36c2e0[_0x49c24a(0x1cb)]+=_0x19e357[_0x49c24a(0x350)]-_0x19e357[_0x49c24a(0x1cb)]+0x1,_0x36c2e0[_0x49c24a(0x350)]+=_0x19e357[_0x49c24a(0x350)]-_0x19e357[_0x49c24a(0x1cb)]+0x1,isMergeCell(_0x36c2e0)&&_0x1c9e06[_0x49c24a(0x1c6)](_0x36c2e0);else{if(_univerjs_core[_0x49c24a(0x1d9)][_0x49c24a(0x1ab)](_0x36c2e0,_0x19e357)||_univerjs_core[_0x49c24a(0x1d9)][_0x49c24a(0x1ab)](_0x36c2e0,_0x25e0ba)){}else _0x1c9e06[_0x49c24a(0x1c6)](_0x36c2e0);}}return _0x1c9e06;},[]);_0x55dc68[_0x1e3372(0x1a4)][_0x1e3372(0x286)]=_0x59dfc5;if(_0x55dc68[_0x1e3372(0x1a4)][_0x1e3372(0x286)]['length']===0x0)_0x55dc68['id']=_univerjs_sheets[_0x1e3372(0x36d)]['id'];return{'m1Prime':_0x55dc68,'m2Prime':_0x5be30c};}},removeWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x1f1)]['id'],'handler'(_0x4315c6,_0x4bdc8e){const _0x24725f=_0x151f3e,_0x137ceb=_univerjs_core['Tools'][_0x24725f(0x3ce)](_0x4315c6),_0x5f04f8=_univerjs_core[_0x24725f(0x1a6)]['deepClone'](_0x4bdc8e);if(_0x4315c6['params']['unitId']!==_0x4bdc8e[_0x24725f(0x1a4)][_0x24725f(0x3a7)]||_0x4315c6[_0x24725f(0x1a4)][_0x24725f(0x2e9)]!==_0x4bdc8e[_0x24725f(0x1a4)][_0x24725f(0x2e9)])return{'m1Prime':_0x137ceb,'m2Prime':_0x5f04f8};const _0x7cade=_0x137ceb[_0x24725f(0x1a4)][_0x24725f(0x286)][_0x24725f(0x1d3)]((_0x5156bd,_0x59b564)=>{const _0x46d096=_0x24725f,{sourceRange:_0x4cf9d2,targetRange:_0x9bf45c}=_0x4bdc8e['params'],_0x5e03e6={..._0x59b564};if(_0x4cf9d2[_0x46d096(0x342)]<_0x5e03e6['startRow']&&_0x9bf45c[_0x46d096(0x1e8)]>_0x5e03e6[_0x46d096(0x342)])_0x5e03e6[_0x46d096(0x1e8)]-=_0x4cf9d2[_0x46d096(0x342)]-_0x4cf9d2[_0x46d096(0x1e8)]+0x1,_0x5e03e6['endRow']-=_0x4cf9d2[_0x46d096(0x342)]-_0x4cf9d2['startRow']+0x1,isMergeCell(_0x5e03e6)&&_0x5156bd[_0x46d096(0x1c6)](_0x5e03e6);else{if(_0x4cf9d2[_0x46d096(0x1e8)]>_0x5e03e6['endRow']&&_0x9bf45c[_0x46d096(0x342)]<_0x5e03e6[_0x46d096(0x1e8)])_0x5e03e6['startRow']+=_0x4cf9d2['endRow']-_0x4cf9d2[_0x46d096(0x1e8)]+0x1,_0x5e03e6[_0x46d096(0x342)]+=_0x4cf9d2[_0x46d096(0x342)]-_0x4cf9d2[_0x46d096(0x1e8)]+0x1,isMergeCell(_0x5e03e6)&&_0x5156bd[_0x46d096(0x1c6)](_0x5e03e6);else{if(_univerjs_core[_0x46d096(0x1d9)][_0x46d096(0x1ab)](_0x5e03e6,_0x4cf9d2)||_univerjs_core['Rectangle']['intersects'](_0x5e03e6,_0x9bf45c)){}else _0x5156bd['push'](_0x5e03e6);}}return _0x5156bd;},[]);_0x137ceb[_0x24725f(0x1a4)]['ranges']=_0x7cade;if(_0x137ceb[_0x24725f(0x1a4)][_0x24725f(0x286)][_0x24725f(0x1ba)]===0x0)_0x137ceb['id']=_univerjs_sheets[_0x24725f(0x36d)]['id'];return{'m1Prime':_0x137ceb,'m2Prime':_0x5f04f8};}},removeWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler'(_0x379b80,_0x21a9c0){const _0x450d1b=_0x151f3e,_0xb49c6c=_univerjs_core[_0x450d1b(0x1a6)][_0x450d1b(0x3ce)](_0x379b80),_0x46934b=_univerjs_core[_0x450d1b(0x1a6)][_0x450d1b(0x3ce)](_0x21a9c0);if(_0x379b80['params']['unitId']!==_0x21a9c0['params'][_0x450d1b(0x3a7)]||_0x379b80[_0x450d1b(0x1a4)][_0x450d1b(0x2e9)]!==_0x21a9c0[_0x450d1b(0x1a4)]['subUnitId'])return{'m1Prime':_0xb49c6c,'m2Prime':_0x46934b};const _0x231c60=_0xb49c6c[_0x450d1b(0x1a4)][_0x450d1b(0x286)][_0x450d1b(0x1d3)]((_0x16da03,_0x4e59d5)=>{const _0x3f4d13=_0x450d1b,_0x37848e=_0x46934b['params']['range'],_0x16e276=_0x37848e[_0x3f4d13(0x350)]-_0x37848e[_0x3f4d13(0x1cb)]+0x1;let _0xebc6cd={..._0x4e59d5};if(_0x37848e['startColumn']>_0x4e59d5[_0x3f4d13(0x350)])_0xebc6cd={..._0x4e59d5};else{if(_0x37848e[_0x3f4d13(0x1cb)]>=_0x4e59d5[_0x3f4d13(0x1cb)]&&_0x37848e[_0x3f4d13(0x1cb)]<=_0x4e59d5[_0x3f4d13(0x350)]&&_0x37848e[_0x3f4d13(0x350)]>_0x4e59d5[_0x3f4d13(0x350)]){_0xebc6cd[_0x3f4d13(0x350)]=_0x37848e['startColumn']-0x1;if(_0x37848e[_0x3f4d13(0x1cb)]===_0x4e59d5[_0x3f4d13(0x1cb)])_0xebc6cd=null;}else{if(_0x37848e[_0x3f4d13(0x1cb)]>_0x4e59d5[_0x3f4d13(0x1cb)]&&_0x37848e[_0x3f4d13(0x350)]<_0x4e59d5[_0x3f4d13(0x350)])_0xebc6cd[_0x3f4d13(0x350)]=_0x4e59d5[_0x3f4d13(0x350)]-_0x16e276;else{if(_0x37848e[_0x3f4d13(0x1cb)]<_0x4e59d5[_0x3f4d13(0x1cb)]&&_0x37848e[_0x3f4d13(0x350)]>=_0x4e59d5[_0x3f4d13(0x1cb)]&&_0x37848e[_0x3f4d13(0x350)]<=_0x4e59d5[_0x3f4d13(0x350)]){_0xebc6cd[_0x3f4d13(0x1cb)]=_0x37848e['startColumn'],_0xebc6cd[_0x3f4d13(0x350)]=_0x4e59d5[_0x3f4d13(0x350)]-_0x16e276;if(_0x37848e[_0x3f4d13(0x350)]===_0x4e59d5[_0x3f4d13(0x350)])_0xebc6cd=null;}else{if(_0x37848e['startColumn']<=_0x4e59d5['startColumn']&&_0x37848e[_0x3f4d13(0x350)]>=_0x4e59d5[_0x3f4d13(0x350)])_0xebc6cd=null;else _0x37848e['endColumn']<_0x4e59d5[_0x3f4d13(0x1cb)]&&(_0xebc6cd[_0x3f4d13(0x1cb)]=_0x4e59d5[_0x3f4d13(0x1cb)]-_0x16e276,_0xebc6cd[_0x3f4d13(0x350)]=_0x4e59d5[_0x3f4d13(0x350)]-_0x16e276);}}}}if(_0xebc6cd&&!(_0xebc6cd['startRow']===_0xebc6cd['endRow']&&_0xebc6cd[_0x3f4d13(0x1cb)]===_0xebc6cd[_0x3f4d13(0x350)]))return _0x16da03['push'](_0xebc6cd),_0x16da03;else return _0x16da03;},[]);_0xb49c6c[_0x450d1b(0x1a4)][_0x450d1b(0x286)]=_0x231c60;if(_0xb49c6c[_0x450d1b(0x1a4)][_0x450d1b(0x286)][_0x450d1b(0x1ba)]===0x0)_0xb49c6c['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0xb49c6c,'m2Prime':_0x46934b};}},removeWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x324eb0,_0x31a13f){const _0x55daaa=_0x151f3e,_0x5a4ac4=_univerjs_core[_0x55daaa(0x1a6)]['deepClone'](_0x324eb0),_0x305868=_univerjs_core[_0x55daaa(0x1a6)][_0x55daaa(0x3ce)](_0x31a13f);if(_0x324eb0['params']['unitId']!==_0x31a13f['params']['unitId']||_0x324eb0['params']['subUnitId']!==_0x31a13f[_0x55daaa(0x1a4)]['subUnitId'])return{'m1Prime':_0x5a4ac4,'m2Prime':_0x305868};const _0x598b62=_0x5a4ac4[_0x55daaa(0x1a4)][_0x55daaa(0x286)][_0x55daaa(0x1d3)]((_0x46bc80,_0x4e9b51)=>{const _0x364aa1=_0x55daaa,_0x3c8646=_0x305868[_0x364aa1(0x1a4)][_0x364aa1(0x1b6)],_0x1a481b=_0x3c8646['endRow']-_0x3c8646[_0x364aa1(0x1e8)]+0x1;let _0x4dc9a6={..._0x4e9b51};if(_0x3c8646[_0x364aa1(0x1e8)]>_0x4e9b51[_0x364aa1(0x342)])_0x4dc9a6={..._0x4e9b51};else{if(_0x3c8646[_0x364aa1(0x1e8)]>=_0x4e9b51[_0x364aa1(0x1e8)]&&_0x3c8646[_0x364aa1(0x1e8)]<=_0x4e9b51[_0x364aa1(0x342)]&&_0x3c8646[_0x364aa1(0x342)]>_0x4e9b51[_0x364aa1(0x342)]){_0x4dc9a6[_0x364aa1(0x342)]=_0x3c8646[_0x364aa1(0x1e8)]-0x1;if(_0x3c8646[_0x364aa1(0x1e8)]===_0x4e9b51[_0x364aa1(0x1e8)])_0x4dc9a6=null;}else{if(_0x3c8646['startRow']>_0x4e9b51[_0x364aa1(0x1e8)]&&_0x3c8646[_0x364aa1(0x342)]<_0x4e9b51['endRow'])_0x4dc9a6[_0x364aa1(0x342)]=_0x4e9b51[_0x364aa1(0x342)]-_0x1a481b;else{if(_0x3c8646['startRow']<_0x4e9b51['startRow']&&_0x3c8646['endRow']>=_0x4e9b51[_0x364aa1(0x1e8)]&&_0x3c8646['endRow']<=_0x4e9b51[_0x364aa1(0x342)]){_0x4dc9a6[_0x364aa1(0x1e8)]=_0x3c8646[_0x364aa1(0x1e8)],_0x4dc9a6[_0x364aa1(0x342)]=_0x4e9b51[_0x364aa1(0x342)]-_0x1a481b;if(_0x3c8646[_0x364aa1(0x342)]===_0x4e9b51['endRow'])_0x4dc9a6=null;}else{if(_0x3c8646[_0x364aa1(0x1e8)]<=_0x4e9b51[_0x364aa1(0x1e8)]&&_0x3c8646[_0x364aa1(0x342)]>=_0x4e9b51[_0x364aa1(0x342)])_0x4dc9a6=null;else _0x3c8646[_0x364aa1(0x342)]<_0x4e9b51[_0x364aa1(0x1e8)]&&(_0x4dc9a6[_0x364aa1(0x1e8)]=_0x4e9b51[_0x364aa1(0x1e8)]-_0x1a481b,_0x4dc9a6[_0x364aa1(0x342)]=_0x4e9b51['endRow']-_0x1a481b);}}}}if(_0x4dc9a6&&!(_0x4dc9a6[_0x364aa1(0x1e8)]===_0x4dc9a6[_0x364aa1(0x342)]&&_0x4dc9a6['startColumn']===_0x4dc9a6['endColumn']))return _0x46bc80['push'](_0x4dc9a6),_0x46bc80;else return _0x46bc80;},[]);_0x5a4ac4[_0x55daaa(0x1a4)]['ranges']=_0x598b62;if(_0x5a4ac4['params'][_0x55daaa(0x286)]['length']===0x0)_0x5a4ac4['id']=_univerjs_sheets[_0x55daaa(0x36d)]['id'];return{'m1Prime':_0x5a4ac4,'m2Prime':_0x305868};}},removeWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0xe0b7f5,_0x544c26){const _0x97c8f0=_0x151f3e,_0x21675f={'m1Prime':[],'m2Prime':[]};if(_0xe0b7f5[_0x97c8f0(0x1a4)][_0x97c8f0(0x3a7)]!==_0x544c26[_0x97c8f0(0x1a4)][_0x97c8f0(0x3a7)]||_0xe0b7f5[_0x97c8f0(0x1a4)][_0x97c8f0(0x2e9)]!==_0x544c26[_0x97c8f0(0x1a4)]['subUnitId'])return _0x21675f;const _0x573e20=_univerjs_core[_0x97c8f0(0x1a6)][_0x97c8f0(0x3ce)](_0x544c26),_0x339372=_0x573e20['params'][_0x97c8f0(0x198)],_0x31aa68=_0x339372[_0x339372['length']-0x1][_0x97c8f0(0x200)];return _0xe0b7f5[_0x97c8f0(0x1a4)]['ranges'][_0x97c8f0(0x3b5)](_0x242b38=>{const _0x4d81fa=_0x97c8f0;_0x31aa68&&_univerjs_core[_0x4d81fa(0x1d9)][_0x4d81fa(0x1ab)](_0x242b38,_0x31aa68)&&(_0x31aa68[_0x4d81fa(0x27a)]=![],_0x31aa68[_0x4d81fa(0x256)]=![],_0x31aa68['startRow']=_0x242b38['startRow'],_0x31aa68[_0x4d81fa(0x1cb)]=_0x242b38[_0x4d81fa(0x1cb)],_0x31aa68[_0x4d81fa(0x342)]=_0x242b38['startRow'],_0x31aa68[_0x4d81fa(0x350)]=_0x242b38['startColumn'],_0x31aa68[_0x4d81fa(0x19a)]=_0x242b38[_0x4d81fa(0x1cb)],_0x31aa68[_0x4d81fa(0x364)]=_0x242b38['startRow']);}),_0x21675f[_0x97c8f0(0x1a7)][_0x97c8f0(0x1c6)](_0x573e20),_0x21675f;}},ReorderRangeUndoMutationFactory=_0x28c397=>{const _0x1599ec=_0x151f3e,{order:_0x7d0bc0}=_0x28c397,_0x21f70a={};return Object[_0x1599ec(0x2d4)](_0x7d0bc0)['forEach'](_0x2439a2=>{_0x21f70a[_0x7d0bc0[Number(_0x2439a2)]]=Number(_0x2439a2);}),{..._0x28c397,'order':_0x21f70a};},mergeOrder=(_0x4d43f7,_0x546aad)=>{const _0x20652a=_0x151f3e,_0x4277bd={};return Array[_0x20652a(0x3fc)](new Set(Object[_0x20652a(0x2d4)](_0x4d43f7)[_0x20652a(0x2b3)](Object[_0x20652a(0x2d4)](_0x546aad))[_0x20652a(0x284)](Number)))['forEach'](_0x57e18a=>{let _0x13c9b3;if(_0x57e18a in _0x546aad){_0x13c9b3=_0x546aad[_0x57e18a];if(_0x13c9b3 in _0x4d43f7)_0x13c9b3=_0x4d43f7[_0x13c9b3];}else _0x13c9b3=_0x4d43f7[_0x57e18a];_0x4277bd[_0x57e18a]=_0x13c9b3;}),_0x4277bd;},reorderRangeMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x1478b1,_0x2ddc85){const _0x52624d=_0x151f3e,_0x25b8ac={'m1Prime':_0x1478b1,'m2Prime':_0x2ddc85};if(_0x1478b1['params'][_0x52624d(0x3a7)]!==_0x2ddc85['params']['unitId'])return _0x25b8ac;const {range:_0x5a0a9b}=_0x1478b1[_0x52624d(0x1a4)],{range:_0x66e2c5}=_0x2ddc85[_0x52624d(0x1a4)];if(_0x66e2c5[_0x52624d(0x1cb)]===_0x5a0a9b[_0x52624d(0x1cb)]&&_0x66e2c5[_0x52624d(0x350)]===_0x5a0a9b['endColumn']&&_0x66e2c5['startRow']<=_0x5a0a9b[_0x52624d(0x1e8)]&&_0x66e2c5[_0x52624d(0x342)]>=_0x5a0a9b['endRow']){const _0x4eb193=ReorderRangeUndoMutationFactory(_0x1478b1[_0x52624d(0x1a4)])[_0x52624d(0x282)];return{'m1Prime':[],'m2Prime':{'id':_univerjs_sheets[_0x52624d(0x3dd)]['id'],'params':{..._0x2ddc85['params'],'range':_0x66e2c5,'order':mergeOrder(_0x4eb193,_0x2ddc85[_0x52624d(0x1a4)][_0x52624d(0x282)])}}};}if(_univerjs_core['Rectangle'][_0x52624d(0x1ab)](_0x5a0a9b,_0x66e2c5))return{'error':new Error(_0x52624d(0x3de))};return _0x25b8ac;}},RevertRevisionMutationWithOthers={'m1':RevertRevisionMutation['id'],'m2':_0x151f3e(0x3b6),'handler'(_0x120204,_0x56aea6){const _0x353c91=_0x151f3e;return{'error':new Error(_0x353c91(0x399))};}},OthersWithRevertRevision={'m1':_0x151f3e(0x3b6),'m2':RevertRevisionMutation['id'],'handler'(_0x2f35f5,_0x39f2ea){const _0x1a73f8=_0x151f3e;if(_0x2f35f5[_0x1a73f8(0x1a4)]['unitId']===_0x39f2ea['params'][_0x1a73f8(0x3a7)])return{'m1Prime':[],'m2Prime':_0x39f2ea};return{'m1Prime':_0x2f35f5,'m2Prime':_0x39f2ea};}},setColDataMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x341)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x341)]['id'],'handler'(_0x37a08c,_0x53cd9d){const _0x2680e7=_0x151f3e,_0x161f26={'m1Prime':_0x37a08c,'m2Prime':_0x53cd9d};if(_0x37a08c['params'][_0x2680e7(0x3a7)]!==_0x53cd9d[_0x2680e7(0x1a4)][_0x2680e7(0x3a7)]||_0x37a08c[_0x2680e7(0x1a4)]['subUnitId']!==_0x53cd9d[_0x2680e7(0x1a4)][_0x2680e7(0x2e9)])return _0x161f26;const _0x4e5c9b=_0x37a08c[_0x2680e7(0x1a4)][_0x2680e7(0x3ad)],_0x40e317=_0x53cd9d[_0x2680e7(0x1a4)][_0x2680e7(0x3ad)],_0xa97f34={},_0x6de4d4=_univerjs_core[_0x2680e7(0x1a6)]['deepClone'](_0x37a08c),_0x331bdc=new Set([...Object['keys'](_0x4e5c9b)[_0x2680e7(0x284)](Number),...Object[_0x2680e7(0x2d4)](_0x40e317)[_0x2680e7(0x284)](Number)]);for(const _0x5c8c74 of _0x331bdc){const _0x38f79c=_0x4e5c9b[_0x5c8c74],_0x4c160d=_0x40e317[_0x5c8c74];if(_0x38f79c&&_0x4c160d)_0xa97f34[_0x5c8c74]={..._0x38f79c,..._0x4c160d};else{if(_0x38f79c)_0xa97f34[_0x5c8c74]=_0x38f79c;else{if(_0x4c160d)_0xa97f34[_0x5c8c74]=_0x4c160d;}}}return _0x6de4d4['params'][_0x2680e7(0x3ad)]=_0xa97f34,{'m1Prime':_0x6de4d4,'m2Prime':_0x53cd9d};}},setConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x151f3e(0x3e2)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x3e2)]['id'],'handler'(_0x49f45b,_0xc2d5fd){const _0x46091f=_0x151f3e;if(_0x49f45b['params'][_0x46091f(0x3a7)]!==_0xc2d5fd[_0x46091f(0x1a4)][_0x46091f(0x3a7)]||_0x49f45b['params'][_0x46091f(0x2e9)]!==_0xc2d5fd['params'][_0x46091f(0x2e9)])return{'m1Prime':_0x49f45b,'m2Prime':_0xc2d5fd};if((_0x49f45b[_0x46091f(0x1a4)][_0x46091f(0x255)]||_0x49f45b['params'][_0x46091f(0x3e3)]['cfId'])!==(_0xc2d5fd[_0x46091f(0x1a4)][_0x46091f(0x255)]||_0xc2d5fd['params']['rule'][_0x46091f(0x255)]))return{'m1Prime':_0x49f45b,'m2Prime':_0xc2d5fd};return{'m1Prime':[],'m2Prime':_univerjs_core['Tools'][_0x46091f(0x3ce)](_0xc2d5fd)};}};function drawingObjectsIntersect(_0x5ba327,_0x12186e){const _0x437385=_0x151f3e,_0x13dc7a=_0x5ba327['reduce']((_0x21b2b0,_0x528aeb)=>{const _0x1af632=_0x62e3;return _0x21b2b0[_0x1af632(0x3af)](_0x528aeb[_0x1af632(0x21b)],!![]),_0x21b2b0;},new Map());return _0x12186e[_0x437385(0x3a1)](_0xcff78a=>_0x13dc7a[_0x437385(0x368)](_0xcff78a['drawingId'])!==void 0x0);}function drawingOrderObjectsIntersect(_0x5609eb,_0x3bde75){const _0x3db60b=_0x151f3e,_0xfaf903=_0x5609eb[_0x3db60b(0x19f)];return _0x3bde75[_0x3db60b(0x19f)][_0x3db60b(0x3a1)](_0x1e91e1=>_0xfaf903[_0x3db60b(0x23d)](_0x1e91e1)!==-0x1);}const {UPDATE,REMOVE,ARRANGE}=_univerjs_sheets_drawing[_0x151f3e(0x194)],setDrawingApplyMutationWithSelf={'m1':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'m2':_univerjs_sheets_drawing[_0x151f3e(0x393)]['id'],'handler'(_0x11cc90,_0x2eb5fa){const _0x354b97=_0x151f3e,_0x1b2e50=_0x11cc90[_0x354b97(0x1a4)],_0x149af9=_0x2eb5fa[_0x354b97(0x1a4)];if(_0x1b2e50[_0x354b97(0x3a7)]!==_0x149af9[_0x354b97(0x3a7)]||_0x1b2e50[_0x354b97(0x2e9)]!==_0x149af9[_0x354b97(0x2e9)])return{'m1Prime':_0x11cc90,'m2Prime':_0x2eb5fa};const _0x4cc401=_0x1b2e50[_0x354b97(0x38b)],_0x165575=_0x149af9[_0x354b97(0x38b)];if(_0x4cc401===REMOVE&&_0x165575===UPDATE){if(drawingObjectsIntersect(_0x1b2e50[_0x354b97(0x32b)],_0x149af9[_0x354b97(0x32b)]))return{'m1Prime':_univerjs_core[_0x354b97(0x1a6)]['deepClone'](_0x11cc90),'m2Prime':[]};}if(_0x4cc401===ARRANGE&&_0x165575===ARRANGE){if(drawingOrderObjectsIntersect(_0x1b2e50[_0x354b97(0x32b)],_0x149af9[_0x354b97(0x32b)])){const _0x54254f=_univerjs_core[_0x354b97(0x1a6)][_0x354b97(0x3ce)](_0x11cc90),_0x4488e2=_univerjs_core[_0x354b97(0x1a6)]['deepClone'](_0x2eb5fa);return{'m1Prime':{..._0x54254f,'params':{..._0x54254f['params'],'op':_univerjs_core[_0x354b97(0x3ec)][_0x354b97(0x38b)]['transform'](_0x54254f[_0x354b97(0x1a4)]['op'],_0x4488e2[_0x354b97(0x1a4)]['op'],_0x354b97(0x359))}},'m2Prime':{..._0x4488e2,'params':{..._0x4488e2[_0x354b97(0x1a4)],'op':_univerjs_core[_0x354b97(0x3ec)]['type'][_0x354b97(0x35d)](_0x4488e2[_0x354b97(0x1a4)]['op'],_0x54254f[_0x354b97(0x1a4)]['op'],_0x354b97(0x222))}}};}}return{'m1Prime':_0x11cc90,'m2Prime':_0x2eb5fa};}},setFrozenMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x240)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x240)]['id'],'handler'(_0x32af0a,_0x4e26d0){const _0x10e637=_0x151f3e;if(_0x32af0a[_0x10e637(0x1a4)][_0x10e637(0x3a7)]!==_0x4e26d0[_0x10e637(0x1a4)][_0x10e637(0x3a7)]||_0x32af0a['params'][_0x10e637(0x2e9)]!==_0x4e26d0[_0x10e637(0x1a4)][_0x10e637(0x2e9)])return{'m1Prime':_0x32af0a,'m2Prime':_0x4e26d0};return{'m1Prime':[],'m2Prime':_0x4e26d0};}},setNumfmtMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x380)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2b1)]['id'],'handler'(_0x3d4569,_0x50f799){const _0x2f029f=_0x151f3e;if(_0x3d4569[_0x2f029f(0x1a4)]['unitId']!==_0x50f799[_0x2f029f(0x1a4)][_0x2f029f(0x3a7)]||_0x3d4569[_0x2f029f(0x1a4)][_0x2f029f(0x2e9)]!==_0x50f799[_0x2f029f(0x1a4)]['subUnitId'])return{'m1Prime':_0x3d4569,'m2Prime':_0x50f799};const _0x22b5be=_univerjs_core['Tools'][_0x2f029f(0x3ce)](_0x3d4569),_0x6c5182=_univerjs_core['Tools'][_0x2f029f(0x3ce)](_0x50f799),_0x12992d=_0x22b5be['params'][_0x2f029f(0x1c3)],_0x32a103=_0x6c5182['params']['ranges'];for(const _0x42ee31 in _0x12992d){const _0x4de9cf=_0x12992d[_0x42ee31][_0x2f029f(0x286)],_0x2b5d2d=[];_0x4de9cf[_0x2f029f(0x3b5)](_0x69c724=>{const _0x24b100=_0x2f029f,_0x4f2dd2=RangeSubtractRanges(_0x69c724,_0x32a103);if(_0x4f2dd2[_0x24b100(0x1ba)]>0x0)_0x2b5d2d['push'](..._0x4f2dd2);}),_0x12992d[_0x42ee31][_0x2f029f(0x286)]=_0x2b5d2d;}return{'m1Prime':_0x22b5be,'m2Prime':_0x6c5182};}},setNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x380)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler'(_0x78364b,_0xdd7897){const _0x4dc0e4=_0x151f3e;if(_0x78364b[_0x4dc0e4(0x1a4)][_0x4dc0e4(0x3a7)]!==_0xdd7897[_0x4dc0e4(0x1a4)]['unitId']||_0x78364b[_0x4dc0e4(0x1a4)][_0x4dc0e4(0x2e9)]!==_0xdd7897[_0x4dc0e4(0x1a4)][_0x4dc0e4(0x2e9)])return{'m1Prime':_0x78364b,'m2Prime':_0xdd7897};const _0x3dbf05=_univerjs_core['Tools'][_0x4dc0e4(0x3ce)](_0x78364b),_0x12cf7a=_univerjs_core['Tools']['deepClone'](_0xdd7897),_0x25563f=_0x3dbf05['params'][_0x4dc0e4(0x1c3)],_0x10c4a8=Object[_0x4dc0e4(0x1c3)](_0x12cf7a[_0x4dc0e4(0x1a4)][_0x4dc0e4(0x1c3)])[_0x4dc0e4(0x284)](_0x46c5b7=>_0x46c5b7['ranges'])[_0x4dc0e4(0x2ea)]();for(const _0x3ae0d7 in _0x25563f){const _0x506e74=_0x25563f[_0x3ae0d7][_0x4dc0e4(0x286)],_0x4b73ee=[];_0x506e74[_0x4dc0e4(0x3b5)](_0x1588de=>{const _0x5030f1=_0x4dc0e4,_0x225d76=RangeSubtractRanges(_0x1588de,_0x10c4a8);if(_0x225d76[_0x5030f1(0x1ba)]>0x0)_0x4b73ee['push'](..._0x225d76);}),_0x25563f[_0x3ae0d7][_0x4dc0e4(0x286)]=_0x4b73ee;}return{'m1Prime':_0x3dbf05,'m2Prime':_0x12cf7a};}},setRangeProtectionWithAddComment={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x1f0)]['id'],'handler':(_0x10ec54,_0x183700)=>{const _0x48ba53=_0x151f3e,_0x5a13ae={'m1Prime':_0x10ec54,'m2Prime':_0x183700};if(_0x10ec54['params'][_0x48ba53(0x3a7)]!==_0x183700[_0x48ba53(0x1a4)][_0x48ba53(0x3a7)]||_0x10ec54[_0x48ba53(0x1a4)][_0x48ba53(0x2e9)]!==_0x183700[_0x48ba53(0x1a4)][_0x48ba53(0x2e9)])return _0x5a13ae;return{'error':new Error(_0x48ba53(0x29b))};}},setRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler':(_0x54bdcd,_0xe95409)=>{const _0x4297e8=_0x151f3e,_0x13cb3e={'m1Prime':_0x54bdcd,'m2Prime':_0xe95409};if(_0x54bdcd[_0x4297e8(0x1a4)][_0x4297e8(0x3a7)]!==_0xe95409['params'][_0x4297e8(0x3a7)]||_0x54bdcd[_0x4297e8(0x1a4)][_0x4297e8(0x2e9)]!==_0xe95409[_0x4297e8(0x1a4)][_0x4297e8(0x2e9)])return _0x13cb3e;const _0xac45aa=_0x54bdcd[_0x4297e8(0x1a4)]['rule'][_0x4297e8(0x286)],_0x21a26c=_0xe95409[_0x4297e8(0x1a4)][_0x4297e8(0x3e3)][_0x4297e8(0x286)];if(_0xac45aa[_0x4297e8(0x3a1)](_0x4ba1df=>_0x21a26c[_0x4297e8(0x3a1)](_0x26c676=>_univerjs_core[_0x4297e8(0x1d9)][_0x4297e8(0x1ab)](_0x4ba1df,_0x26c676))))return{'error':new Error(_0x4297e8(0x1a3))};return _0x13cb3e;}},setRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler':(_0x681754,_0x26c317)=>{const _0x14a5ff=_0x151f3e,_0x582c48={'m1Prime':_0x681754,'m2Prime':_0x26c317};if(_0x681754[_0x14a5ff(0x1a4)][_0x14a5ff(0x3a7)]!==_0x26c317[_0x14a5ff(0x1a4)]['unitId']||_0x681754[_0x14a5ff(0x1a4)][_0x14a5ff(0x2e9)]!==_0x26c317[_0x14a5ff(0x1a4)][_0x14a5ff(0x2e9)])return _0x582c48;const _0x237c32=_0x681754[_0x14a5ff(0x1a4)]['rule']['ranges'],_0x283c7b=_0x26c317[_0x14a5ff(0x1a4)][_0x14a5ff(0x286)];if(_0x237c32['some'](_0x1e66e5=>_0x283c7b[_0x14a5ff(0x3a1)](_0x55eb39=>_univerjs_core[_0x14a5ff(0x1d9)][_0x14a5ff(0x1ab)](_0x1e66e5,_0x55eb39))))return{'error':new Error(_0x14a5ff(0x300))};return _0x582c48;}},setRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1b2)]['id'],'handler':(_0x15287b,_0x1e21af)=>{const _0x21c8b6=_0x151f3e,_0x1fb5d6={'m1Prime':_0x15287b,'m2Prime':_0x1e21af};if(_0x15287b[_0x21c8b6(0x1a4)][_0x21c8b6(0x3a7)]!==_0x1e21af['params'][_0x21c8b6(0x3a7)]||_0x15287b[_0x21c8b6(0x1a4)][_0x21c8b6(0x2e9)]!==_0x1e21af[_0x21c8b6(0x1a4)][_0x21c8b6(0x3e3)][_0x21c8b6(0x2e9)])return _0x1fb5d6;return{'error':new Error(_0x21c8b6(0x205))};}},setRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x31c)]['id'],'handler':(_0x42e37e,_0xfd15d5)=>{const _0x5d2671=_0x151f3e,_0x20d0d7={'m1Prime':_0x42e37e,'m2Prime':_0xfd15d5};if(_0x42e37e['params'][_0x5d2671(0x3a7)]!==_0xfd15d5[_0x5d2671(0x1a4)]['unitId']||_0x42e37e[_0x5d2671(0x1a4)][_0x5d2671(0x2e9)]!==_0xfd15d5[_0x5d2671(0x1a4)][_0x5d2671(0x2e9)])return _0x20d0d7;return{'error':new Error(_0x5d2671(0x245))};}},setRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f9)]['id'],'handler':(_0x2e6399,_0x2a011b)=>{const _0x456a75=_0x151f3e,_0x22a7b6={'m1Prime':_0x2e6399,'m2Prime':_0x2a011b};if(_0x2e6399[_0x456a75(0x1a4)][_0x456a75(0x3a7)]!==_0x2a011b[_0x456a75(0x1a4)][_0x456a75(0x3a7)]||_0x2e6399[_0x456a75(0x1a4)]['subUnitId']!==_0x2a011b[_0x456a75(0x1a4)][_0x456a75(0x2e9)])return _0x22a7b6;const _0x395266=_0x2e6399[_0x456a75(0x1a4)][_0x456a75(0x3e3)]['ranges'],_0x214d01=_0x2a011b[_0x456a75(0x1a4)][_0x456a75(0x1b6)];if(_0x395266[_0x456a75(0x3a1)](_0x3126d4=>_univerjs_core[_0x456a75(0x1d9)]['intersects'](_0x3126d4,_0x214d01)))return{'error':new Error(_0x456a75(0x24b))};return _0x22a7b6;}},setRangeProtectionWithInsertRow={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x271)]['id'],'handler':(_0x1e7035,_0xc87ab1)=>{const _0x2061f5=_0x151f3e,_0x17539a={'m1Prime':_0x1e7035,'m2Prime':_0xc87ab1};if(_0x1e7035[_0x2061f5(0x1a4)][_0x2061f5(0x3a7)]!==_0xc87ab1[_0x2061f5(0x1a4)][_0x2061f5(0x3a7)]||_0x1e7035['params']['subUnitId']!==_0xc87ab1[_0x2061f5(0x1a4)]['subUnitId'])return _0x17539a;const _0x5ba752=_0x1e7035[_0x2061f5(0x1a4)][_0x2061f5(0x3e3)]['ranges'],_0x103a2f=_0xc87ab1[_0x2061f5(0x1a4)][_0x2061f5(0x1b6)];if(_0x5ba752[_0x2061f5(0x3a1)](_0x2cf6c6=>_univerjs_core[_0x2061f5(0x1d9)][_0x2061f5(0x1ab)](_0x2cf6c6,_0x103a2f)))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row')};return _0x17539a;}},setRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2c0)]['id'],'handler':(_0x5f3f40,_0x52b690)=>{const _0xf03b67=_0x151f3e,_0x22da17={'m1Prime':_0x5f3f40,'m2Prime':_0x52b690};if(_0x5f3f40[_0xf03b67(0x1a4)][_0xf03b67(0x3a7)]!==_0x52b690[_0xf03b67(0x1a4)][_0xf03b67(0x3a7)]||_0x5f3f40['params'][_0xf03b67(0x2e9)]!==_0x52b690['params']['subUnitId'])return _0x22da17;const _0x3470a0=_0x5f3f40[_0xf03b67(0x1a4)][_0xf03b67(0x3e3)][_0xf03b67(0x286)],_0x5404e5=[_0x52b690['params'][_0xf03b67(0x195)],_0x52b690[_0xf03b67(0x1a4)][_0xf03b67(0x373)]];if(_0x3470a0[_0xf03b67(0x3a1)](_0xfb97dd=>_0x5404e5['some'](_0x1c2311=>_univerjs_core['Rectangle'][_0xf03b67(0x1ab)](_0xfb97dd,_0x1c2311))))return{'error':new Error(_0xf03b67(0x279))};return _0x22da17;}},setRangeProtectionWithMoveRange={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler':(_0x435b10,_0x18f164)=>{const _0x11722b=_0x151f3e,_0x3d6ffe={'m1Prime':_0x435b10,'m2Prime':_0x18f164};if(_0x435b10[_0x11722b(0x1a4)][_0x11722b(0x3a7)]!==_0x18f164['params']['unitId']||_0x435b10['params'][_0x11722b(0x2e9)]!==_0x18f164[_0x11722b(0x1a4)]['from'][_0x11722b(0x2e9)])return _0x3d6ffe;const _0x1b5192=_0x435b10[_0x11722b(0x1a4)][_0x11722b(0x3e3)]['ranges'],_0x1c3fb7=[new _univerjs_core[(_0x11722b(0x2e2))](_0x18f164[_0x11722b(0x1a4)][_0x11722b(0x3fc)][_0x11722b(0x1df)])[_0x11722b(0x25e)](),new _univerjs_core['ObjectMatrix'](_0x18f164[_0x11722b(0x1a4)]['to'][_0x11722b(0x1df)])[_0x11722b(0x25e)]()];if(_0x1b5192[_0x11722b(0x3a1)](_0x1ab4e5=>_0x1c3fb7[_0x11722b(0x3a1)](_0x1b6d01=>_univerjs_core['Rectangle'][_0x11722b(0x1ab)](_0x1ab4e5,_0x1b6d01))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range')};return _0x3d6ffe;}},setRangeProtectionWithMoveRow={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x179f02,_0x31ff1e)=>{const _0x2ebf8b=_0x151f3e,_0x5690e7={'m1Prime':_0x179f02,'m2Prime':_0x31ff1e};if(_0x179f02[_0x2ebf8b(0x1a4)][_0x2ebf8b(0x3a7)]!==_0x31ff1e[_0x2ebf8b(0x1a4)][_0x2ebf8b(0x3a7)]||_0x179f02[_0x2ebf8b(0x1a4)][_0x2ebf8b(0x2e9)]!==_0x31ff1e[_0x2ebf8b(0x1a4)]['subUnitId'])return _0x5690e7;const _0x5748b9=_0x179f02[_0x2ebf8b(0x1a4)]['rule'][_0x2ebf8b(0x286)],_0x5d895d=[_0x31ff1e[_0x2ebf8b(0x1a4)]['sourceRange'],_0x31ff1e[_0x2ebf8b(0x1a4)][_0x2ebf8b(0x373)]];if(_0x5748b9[_0x2ebf8b(0x3a1)](_0x75456b=>_0x5d895d[_0x2ebf8b(0x3a1)](_0x3ad2b7=>_univerjs_core[_0x2ebf8b(0x1d9)]['intersects'](_0x75456b,_0x3ad2b7))))return{'error':new Error(_0x2ebf8b(0x3cb))};return _0x5690e7;}},setRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x2eb)]['id'],'handler':(_0x565538,_0x3132ab)=>{const _0x41c825=_0x151f3e,_0x40eab7={'m1Prime':_0x565538,'m2Prime':_0x3132ab};if(_0x565538[_0x41c825(0x1a4)]['unitId']!==_0x3132ab[_0x41c825(0x1a4)]['unitId']||_0x565538[_0x41c825(0x1a4)][_0x41c825(0x2e9)]!==_0x3132ab[_0x41c825(0x1a4)][_0x41c825(0x2e9)])return _0x40eab7;const _0xcd9cc1=_0x565538[_0x41c825(0x1a4)][_0x41c825(0x3e3)][_0x41c825(0x286)],_0x35244e=_0x3132ab[_0x41c825(0x1a4)][_0x41c825(0x1b6)];if(_0xcd9cc1[_0x41c825(0x3a1)](_0x5e4596=>_univerjs_core[_0x41c825(0x1d9)][_0x41c825(0x1ab)](_0x5e4596,_0x35244e)))return{'error':new Error(_0x41c825(0x1e3))};return _0x40eab7;}},setRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_data_validation[_0x151f3e(0x25b)]['id'],'handler':(_0xd67749,_0x485d56)=>{const _0x277497=_0x151f3e,_0x5e383b={'m1Prime':_0xd67749,'m2Prime':_0x485d56};if(_0xd67749[_0x277497(0x1a4)][_0x277497(0x3a7)]!==_0x485d56['params'][_0x277497(0x3a7)]||_0xd67749[_0x277497(0x1a4)][_0x277497(0x2e9)]!==_0x485d56[_0x277497(0x1a4)][_0x277497(0x2e9)])return _0x5e383b;return{'error':new Error(_0x277497(0x1ae))};}},setRangeProtectionWithRemoveRow={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x1a8)]['id'],'handler':(_0xd4a1ac,_0x46491b)=>{const _0x3e2e3a=_0x151f3e,_0x3c764b={'m1Prime':_0xd4a1ac,'m2Prime':_0x46491b};if(_0xd4a1ac[_0x3e2e3a(0x1a4)][_0x3e2e3a(0x3a7)]!==_0x46491b[_0x3e2e3a(0x1a4)][_0x3e2e3a(0x3a7)]||_0xd4a1ac[_0x3e2e3a(0x1a4)]['subUnitId']!==_0x46491b[_0x3e2e3a(0x1a4)][_0x3e2e3a(0x2e9)])return _0x3c764b;const _0x205c96=_0xd4a1ac[_0x3e2e3a(0x1a4)][_0x3e2e3a(0x3e3)][_0x3e2e3a(0x286)],_0x1de455=_0x46491b[_0x3e2e3a(0x1a4)][_0x3e2e3a(0x1b6)];if(_0x205c96[_0x3e2e3a(0x3a1)](_0x3ef376=>_univerjs_core[_0x3e2e3a(0x1d9)][_0x3e2e3a(0x1ab)](_0x3ef376,_0x1de455)))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20row')};return _0x3c764b;}},setRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x2a6)]['id'],'handler':(_0x474a1d,_0x4309c0)=>{const _0x479d2d=_0x151f3e,_0x173a57={'m1Prime':_0x474a1d,'m2Prime':_0x4309c0};if(_0x474a1d[_0x479d2d(0x1a4)][_0x479d2d(0x3a7)]!==_0x4309c0['params'][_0x479d2d(0x3a7)]||_0x474a1d['params'][_0x479d2d(0x2e9)]!==_0x4309c0[_0x479d2d(0x1a4)][_0x479d2d(0x2e9)])return _0x173a57;return{'error':new Error(_0x479d2d(0x314))};}},setRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x25a)]['id'],'handler':(_0x277c80,_0x184979)=>{const _0x47e698=_0x151f3e,_0xab2340={'m1Prime':_0x277c80,'m2Prime':_0x184979};if(_0x277c80[_0x47e698(0x1a4)][_0x47e698(0x3a7)]!==_0x184979[_0x47e698(0x1a4)][_0x47e698(0x3a7)]||_0x277c80[_0x47e698(0x1a4)][_0x47e698(0x2e9)]!==_0x184979[_0x47e698(0x1a4)]['subUnitId'])return _0xab2340;const _0x2d35bf=_0x277c80[_0x47e698(0x1a4)][_0x47e698(0x3e3)]['ranges'],_0x4fee3c=_0x184979[_0x47e698(0x1a4)][_0x47e698(0x286)];if(_0x2d35bf[_0x47e698(0x3a1)](_0x57c729=>_0x4fee3c[_0x47e698(0x3a1)](_0x3df923=>_univerjs_core[_0x47e698(0x1d9)][_0x47e698(0x1ab)](_0x57c729,_0x3df923))))return{'error':new Error(_0x47e698(0x2ba))};return _0xab2340;}},setRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x151f3e(0x3e2)]['id'],'handler':(_0x4b4fa6,_0x232786)=>{const _0x580265=_0x151f3e,_0x30cab2={'m1Prime':_0x4b4fa6,'m2Prime':_0x232786};if(_0x4b4fa6['params'][_0x580265(0x3a7)]!==_0x232786[_0x580265(0x1a4)][_0x580265(0x3a7)]||_0x4b4fa6[_0x580265(0x1a4)][_0x580265(0x2e9)]!==_0x232786['params'][_0x580265(0x2e9)])return _0x30cab2;const _0x39a673=_0x4b4fa6[_0x580265(0x1a4)]['rule'][_0x580265(0x286)],_0x3076ff=_0x232786[_0x580265(0x1a4)][_0x580265(0x3e3)][_0x580265(0x286)];if(_0x39a673['some'](_0x3e6569=>_0x3076ff[_0x580265(0x3a1)](_0x3f88bf=>_univerjs_core['Rectangle'][_0x580265(0x1ab)](_0x3e6569,_0x3f88bf))))return{'error':new Error(_0x580265(0x3a0))};return _0x30cab2;}},setRangeProtectionWithSetFrozen={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x240)]['id'],'handler':(_0x5c3a27,_0xf371c0)=>{const _0x367af4=_0x151f3e,_0x2c0034={'m1Prime':_0x5c3a27,'m2Prime':_0xf371c0};if(_0x5c3a27[_0x367af4(0x1a4)][_0x367af4(0x3a7)]!==_0xf371c0[_0x367af4(0x1a4)][_0x367af4(0x3a7)]||_0x5c3a27[_0x367af4(0x1a4)][_0x367af4(0x2e9)]!==_0xf371c0[_0x367af4(0x1a4)][_0x367af4(0x2e9)])return _0x2c0034;const _0x3a6678=_0x5c3a27[_0x367af4(0x1a4)][_0x367af4(0x3e3)][_0x367af4(0x286)],_0x530418=[{'startRow':_0xf371c0[_0x367af4(0x1a4)][_0x367af4(0x1e8)],'endRow':_0xf371c0['params'][_0x367af4(0x1e8)],'startColumn':_0xf371c0[_0x367af4(0x1a4)]['startColumn'],'endColumn':_0xf371c0[_0x367af4(0x1a4)][_0x367af4(0x1cb)]}];if(_0x3a6678[_0x367af4(0x3a1)](_0x128e05=>_0x530418[_0x367af4(0x3a1)](_0x32e8bc=>_univerjs_core[_0x367af4(0x1d9)][_0x367af4(0x1ab)](_0x128e05,_0x32e8bc))))return{'error':new Error(_0x367af4(0x3c3))};return _0x2c0034;}},setRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x380)]['id'],'handler':(_0x1a42bc,_0x376807)=>{const _0x1723e3=_0x151f3e,_0x2f7a79={'m1Prime':_0x1a42bc,'m2Prime':_0x376807};if(_0x1a42bc[_0x1723e3(0x1a4)][_0x1723e3(0x3a7)]!==_0x376807[_0x1723e3(0x1a4)]['unitId']||_0x1a42bc['params'][_0x1723e3(0x2e9)]!==_0x376807[_0x1723e3(0x1a4)][_0x1723e3(0x2e9)])return _0x2f7a79;return{'error':new Error(_0x1723e3(0x262))};}},setRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets['SetRangeProtectionMutation']['id'],'handler':(_0x2b743e,_0x343c73)=>{const _0x26d8a4=_0x151f3e,_0x2ed8f4={'m1Prime':_0x2b743e,'m2Prime':_0x343c73};if(_0x2b743e['params']['unitId']!==_0x343c73['params'][_0x26d8a4(0x3a7)]||_0x2b743e[_0x26d8a4(0x1a4)][_0x26d8a4(0x2e9)]!==_0x343c73[_0x26d8a4(0x1a4)][_0x26d8a4(0x2e9)])return _0x2ed8f4;const _0x4972a8=_0x2b743e[_0x26d8a4(0x1a4)][_0x26d8a4(0x3e3)]['ranges'],_0x1f20fb=_0x343c73[_0x26d8a4(0x1a4)]['rule'][_0x26d8a4(0x286)];if(_0x4972a8['some'](_0x119d34=>_0x1f20fb[_0x26d8a4(0x3a1)](_0x1dbc6c=>_univerjs_core[_0x26d8a4(0x1d9)][_0x26d8a4(0x1ab)](_0x119d34,_0x1dbc6c))))return{'error':new Error(_0x26d8a4(0x1ed))};return _0x2ed8f4;}},setRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler':(_0x386043,_0x19d1b7)=>{const _0x412469=_0x151f3e,_0x1aecca={'m1Prime':_0x386043,'m2Prime':_0x19d1b7};if(_0x386043[_0x412469(0x1a4)][_0x412469(0x3a7)]!==_0x19d1b7[_0x412469(0x1a4)][_0x412469(0x3a7)]||_0x386043['params'][_0x412469(0x2e9)]!==_0x19d1b7['params'][_0x412469(0x2e9)])return _0x1aecca;const _0x882295=_0x386043[_0x412469(0x1a4)][_0x412469(0x3e3)][_0x412469(0x286)],_0xa613e6=new _univerjs_core[(_0x412469(0x2e2))](_0x19d1b7[_0x412469(0x1a4)][_0x412469(0x30b)])[_0x412469(0x25e)]();if(_0x882295['some'](_0x14b571=>_univerjs_core[_0x412469(0x1d9)][_0x412469(0x1ab)](_0x14b571,_0xa613e6)))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value')};return _0x1aecca;}},setRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'handler':(_0x4d554d,_0xea868b)=>{const _0x2a52c0=_0x151f3e,_0x4cf11e={'m1Prime':_0x4d554d,'m2Prime':_0xea868b};if(_0x4d554d['params'][_0x2a52c0(0x3a7)]!==_0xea868b[_0x2a52c0(0x1a4)][_0x2a52c0(0x3a7)]||_0x4d554d['params'][_0x2a52c0(0x2e9)]!==_0xea868b[_0x2a52c0(0x1a4)][_0x2a52c0(0x2e9)])return _0x4cf11e;const _0x5926f4=_0x4d554d[_0x2a52c0(0x1a4)][_0x2a52c0(0x3e3)]['ranges'],_0x1fc3ce=_0xea868b[_0x2a52c0(0x1a4)]['ranges'];if(_0x5926f4[_0x2a52c0(0x3a1)](_0xeb643a=>_0x1fc3ce[_0x2a52c0(0x3a1)](_0x38344d=>_univerjs_core['Rectangle'][_0x2a52c0(0x1ab)](_0xeb643a,_0x38344d))))return{'error':new Error(_0x2a52c0(0x27c))};return _0x4cf11e;}},setRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_thread_comment['UpdateCommentMutation']['id'],'handler':(_0x157fe1,_0xd0db84)=>{const _0x45614a=_0x151f3e,_0x5e2f87={'m1Prime':_0x157fe1,'m2Prime':_0xd0db84};if(_0x157fe1[_0x45614a(0x1a4)][_0x45614a(0x3a7)]!==_0xd0db84[_0x45614a(0x1a4)][_0x45614a(0x3a7)]||_0x157fe1[_0x45614a(0x1a4)][_0x45614a(0x2e9)]!==_0xd0db84[_0x45614a(0x1a4)]['subUnitId'])return _0x5e2f87;return{'error':new Error(_0x45614a(0x273))};}},setRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0x151f3e(0x23e)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x44f13d,_0x160fdd)=>{const _0x5b8b0c=_0x151f3e,_0x182ff3={'m1Prime':_0x44f13d,'m2Prime':_0x160fdd};if(_0x44f13d[_0x5b8b0c(0x1a4)][_0x5b8b0c(0x3a7)]!==_0x160fdd[_0x5b8b0c(0x1a4)][_0x5b8b0c(0x3a7)]||_0x44f13d[_0x5b8b0c(0x1a4)][_0x5b8b0c(0x2e9)]!==_0x160fdd[_0x5b8b0c(0x1a4)][_0x5b8b0c(0x2e9)])return _0x182ff3;return{'error':new Error(_0x5b8b0c(0x297))};}},setRangeValueMutationWithAddMerge={'m1':_univerjs_sheets[_0x151f3e(0x203)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x55f406,_0x19c1cb){const _0x28454a=_0x151f3e,_0x55b722=addWorksheetMergeMutationWithSetRangeValues[_0x28454a(0x303)](_0x19c1cb,_0x55f406);if(isTransformMutationSuccess(_0x55b722))return{'m1Prime':_0x55b722['m2Prime'],'m2Prime':_0x55b722[_0x28454a(0x28a)]};else return _0x55b722;}},setRangeValuesWithMoveRange={'m1':_univerjs_sheets[_0x151f3e(0x203)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x57472b,_0x5a8bc9){const _0x297f84=_0x151f3e,_0x5015b2={'m1Prime':_0x57472b,'m2Prime':_0x5a8bc9};if(_0x57472b[_0x297f84(0x1a4)][_0x297f84(0x3a7)]!==_0x5a8bc9[_0x297f84(0x1a4)][_0x297f84(0x3a7)])return _0x5015b2;const _0x4ac4b9=new _univerjs_core[(_0x297f84(0x2e2))](_0x57472b[_0x297f84(0x1a4)][_0x297f84(0x30b)])[_0x297f84(0x25e)](),_0x377c71=new _univerjs_core['ObjectMatrix'](_0x5a8bc9[_0x297f84(0x1a4)][_0x297f84(0x3fc)]['value'])[_0x297f84(0x25e)](),_0x2f97af=new _univerjs_core[(_0x297f84(0x2e2))](_0x5a8bc9[_0x297f84(0x1a4)]['to']['value'])[_0x297f84(0x25e)]();if(_0x57472b[_0x297f84(0x1a4)]['subUnitId']===_0x5a8bc9[_0x297f84(0x1a4)][_0x297f84(0x3fc)][_0x297f84(0x2e9)]&&_univerjs_core['Rectangle'][_0x297f84(0x1ab)](_0x4ac4b9,_0x377c71)||_0x57472b[_0x297f84(0x1a4)][_0x297f84(0x2e9)]===_0x5a8bc9[_0x297f84(0x1a4)]['to'][_0x297f84(0x2e9)]&&_univerjs_core[_0x297f84(0x1d9)][_0x297f84(0x1ab)](_0x4ac4b9,_0x2f97af))return{'error':new Error(_0x297f84(0x319))};return _0x5015b2;}},setRangeValuesMutationWithReorderRange={'m1':_univerjs_sheets[_0x151f3e(0x203)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3dd)]['id'],'handler'(_0x5bc642,_0x1bba93){const _0x102d1c=_0x151f3e,_0x29117b={'m1Prime':_0x5bc642,'m2Prime':_0x1bba93};if(_0x5bc642[_0x102d1c(0x1a4)][_0x102d1c(0x3a7)]!==_0x1bba93[_0x102d1c(0x1a4)][_0x102d1c(0x3a7)]||_0x5bc642[_0x102d1c(0x1a4)]['subUnitId']!==_0x1bba93[_0x102d1c(0x1a4)]['subUnitId'])return _0x29117b;const _0x1a2cb0=_univerjs_core[_0x102d1c(0x1a6)][_0x102d1c(0x3ce)](_0x5bc642),{cellValue:_0x3cf188}=_0x1a2cb0[_0x102d1c(0x1a4)],_0x34ca0d=new _univerjs_core['ObjectMatrix'](_0x3cf188),{range:_0x20600d}=_0x1bba93['params'],_0x47c13d=new Map();for(let _0x4ee1a3=_0x20600d['startColumn'];_0x4ee1a3<=_0x20600d['endColumn'];_0x4ee1a3++)for(let _0x2d1839=_0x20600d[_0x102d1c(0x1e8)];_0x2d1839<=_0x20600d['endRow'];_0x2d1839++){var _0x24b8f6;if((_0x3cf188===null||_0x3cf188===void 0x0||(_0x24b8f6=_0x3cf188[_0x2d1839])===null||_0x24b8f6===void 0x0?void 0x0:_0x24b8f6[_0x4ee1a3])!==void 0x0){var _0x59162d;const _0x638128=(_0x59162d=_0x1bba93['params'][_0x102d1c(0x282)][_0x2d1839])!==null&&_0x59162d!==void 0x0?_0x59162d:_0x2d1839;if(_0x638128!==_0x2d1839){if(!_0x47c13d[_0x102d1c(0x2f2)](_0x638128))_0x47c13d['set'](_0x638128,new Map());_0x47c13d[_0x102d1c(0x368)](_0x638128)[_0x102d1c(0x3af)](_0x4ee1a3,_0x3cf188[_0x2d1839][_0x4ee1a3]),_0x34ca0d[_0x102d1c(0x294)](_0x2d1839,_0x4ee1a3);}}}return _0x47c13d[_0x102d1c(0x3b5)]((_0x42d8e0,_0x21fb21)=>{const _0x32e55c=_0x102d1c;_0x42d8e0[_0x32e55c(0x3b5)]((_0x2d4d37,_0x2634ec)=>{_0x34ca0d['setValue'](_0x21fb21,_0x2634ec,_0x2d4d37);});}),{'m1Prime':_0x1a2cb0,'m2Prime':_0x1bba93};}},mergeStyles=(_0x275b5d,_0x20d65b)=>{if(!_0x275b5d)return _0x20d65b;if(!_0x20d65b)return _0x275b5d;return{..._0x275b5d,..._0x20d65b};},setRangeValuesMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x203)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x3f914e,_0x4df39e){const _0x70deed=_0x151f3e,_0x4457ad={'m1Prime':_0x3f914e,'m2Prime':_0x4df39e};if(_0x3f914e[_0x70deed(0x1a4)][_0x70deed(0x3a7)]!==_0x4df39e[_0x70deed(0x1a4)]['unitId']||_0x3f914e['params'][_0x70deed(0x2e9)]!==_0x4df39e[_0x70deed(0x1a4)][_0x70deed(0x2e9)])return _0x4457ad;const _0x222d2b=_univerjs_core['Tools']['deepClone'](_0x3f914e),_0x587626=_univerjs_core[_0x70deed(0x1a6)][_0x70deed(0x3ce)](_0x4df39e),_0x2debd3=new _univerjs_core[(_0x70deed(0x2e2))](_0x222d2b[_0x70deed(0x1a4)]['cellValue']),_0x5e6fcd=_0x2debd3[_0x70deed(0x25e)](),_0x4a6885=new _univerjs_core[(_0x70deed(0x2e2))](_0x4df39e[_0x70deed(0x1a4)][_0x70deed(0x30b)]),_0x45368a=_0x4a6885[_0x70deed(0x25e)]();if(!_univerjs_core[_0x70deed(0x1d9)][_0x70deed(0x1ab)](_0x5e6fcd,_0x45368a))return _0x4457ad;return _0x2debd3['forValue']((_0x4813f8,_0x5d332a,_0x4e04ac)=>{const _0x32ae98=_0x70deed,_0x353649=_0x4a6885[_0x32ae98(0x253)](_0x4813f8,_0x5d332a);if(_0x4e04ac&&_0x353649){var _0xfebe2f,_0x3f3ca3;_0x353649['s']=mergeStyles(_univerjs_core['Tools']['deepClone'](typeof _0x4e04ac['s']===_0x32ae98(0x208)?(_0xfebe2f=_0x222d2b['params']['styleRefMap'])===null||_0xfebe2f===void 0x0?void 0x0:_0xfebe2f[_0x4e04ac['s']]:_0x4e04ac['s']),_univerjs_core[_0x32ae98(0x1a6)][_0x32ae98(0x3ce)](typeof _0x353649['s']===_0x32ae98(0x208)?(_0x3f3ca3=_0x587626[_0x32ae98(0x1a4)][_0x32ae98(0x3c0)])===null||_0x3f3ca3===void 0x0?void 0x0:_0x3f3ca3[_0x353649['s']]:_0x353649['s'])),_0x4a6885[_0x32ae98(0x1af)](_0x4813f8,_0x5d332a,_0x353649),_0x2debd3[_0x32ae98(0x294)](_0x4813f8,_0x5d332a);}}),_0x222d2b[_0x70deed(0x1a4)][_0x70deed(0x30b)]=_0x2debd3[_0x70deed(0x1c4)](),_0x587626[_0x70deed(0x1a4)][_0x70deed(0x30b)]=_0x4a6885[_0x70deed(0x1c4)](),{'m1Prime':_0x222d2b,'m2Prime':_0x587626};}},setRowDataMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x39a)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x39a)]['id'],'handler'(_0xa87c7a,_0x4e7bd9){const _0x1ca111=_0x151f3e,_0x3c44f8={'m1Prime':_0xa87c7a,'m2Prime':_0x4e7bd9};if(_0xa87c7a[_0x1ca111(0x1a4)][_0x1ca111(0x3a7)]!==_0x4e7bd9[_0x1ca111(0x1a4)][_0x1ca111(0x3a7)]||_0xa87c7a[_0x1ca111(0x1a4)]['subUnitId']!==_0x4e7bd9[_0x1ca111(0x1a4)][_0x1ca111(0x2e9)])return _0x3c44f8;const _0xbfe4e7=_0xa87c7a[_0x1ca111(0x1a4)][_0x1ca111(0x374)],_0x135577=_0x4e7bd9[_0x1ca111(0x1a4)]['rowData'],_0x521b67={},_0x57d079=_univerjs_core[_0x1ca111(0x1a6)][_0x1ca111(0x3ce)](_0xa87c7a),_0x5a2ad4=new Set([...Object[_0x1ca111(0x2d4)](_0xbfe4e7)[_0x1ca111(0x284)](Number),...Object[_0x1ca111(0x2d4)](_0x135577)[_0x1ca111(0x284)](Number)]);for(const _0x171605 of _0x5a2ad4){const _0x5d54b9=_0xbfe4e7[_0x171605],_0xb3760a=_0x135577[_0x171605];if(_0x5d54b9&&_0xb3760a)_0x521b67[_0x171605]={..._0x5d54b9,..._0xb3760a};else{if(_0x5d54b9)_0x521b67[_0x171605]=_0x5d54b9;else{if(_0xb3760a)_0x521b67[_0x171605]=_0xb3760a;}}}return _0x57d079[_0x1ca111(0x1a4)][_0x1ca111(0x374)]=_0x521b67,{'m1Prime':_0x57d079,'m2Prime':_0x4e7bd9};}},setSheetsFilterCriteriaWithMoveRange={'m1':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3bf)]['id'],'handler'(_0x2aaefc,_0x35fb38){const _0x306ead=_0x151f3e,_0x3c7900={'m1Prime':_0x2aaefc,'m2Prime':_0x35fb38};if(_0x2aaefc[_0x306ead(0x1a4)]['unitId']!==_0x35fb38[_0x306ead(0x1a4)][_0x306ead(0x3a7)]||_0x2aaefc[_0x306ead(0x1a4)][_0x306ead(0x2e9)]!==_0x35fb38['params']['from'][_0x306ead(0x2e9)]&&_0x2aaefc['params'][_0x306ead(0x2e9)]!==_0x35fb38[_0x306ead(0x1a4)]['to'][_0x306ead(0x2e9)])return _0x3c7900;let _0x4c9338=null;if(_0x2aaefc[_0x306ead(0x1a4)][_0x306ead(0x2e9)]===_0x35fb38['params'][_0x306ead(0x3fc)]['subUnitId'])new _univerjs_core[(_0x306ead(0x2e2))](_0x35fb38[_0x306ead(0x1a4)][_0x306ead(0x3fc)][_0x306ead(0x1df)])[_0x306ead(0x22f)]((_0x574fc3,_0x54f4a9)=>{const _0x496ce1=_0x306ead;if(_0x54f4a9===_0x2aaefc[_0x496ce1(0x1a4)][_0x496ce1(0x2a8)])_0x4c9338=_0x35fb38[_0x496ce1(0x1a4)][_0x496ce1(0x3fc)][_0x496ce1(0x2e9)];});if(_0x2aaefc[_0x306ead(0x1a4)][_0x306ead(0x2e9)]===_0x35fb38['params']['to'][_0x306ead(0x2e9)])new _univerjs_core['ObjectMatrix'](_0x35fb38[_0x306ead(0x1a4)]['to'][_0x306ead(0x1df)])[_0x306ead(0x22f)]((_0x57a31a,_0x10d6ae)=>{const _0x5e0c68=_0x306ead;if(_0x10d6ae===_0x2aaefc['params'][_0x5e0c68(0x2a8)])_0x4c9338=_0x35fb38['params']['to'][_0x5e0c68(0x2e9)];});if(_0x4c9338)return{'m1Prime':_0x2aaefc,'m2Prime':[_0x35fb38,{'id':_univerjs_sheets_filter[_0x306ead(0x2a2)]['id'],'params':{'unitId':_0x35fb38['params'][_0x306ead(0x3a7)],'subUnitId':_0x4c9338}}]};return _0x3c7900;}},setSheetsFilterCriteriaWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x2a6)]['id'],'handler'(_0x10ed80,_0x1aa864){const _0x1fda63=_0x151f3e,_0x35d7ec={'m1Prime':_0x10ed80,'m2Prime':_0x1aa864};if(_0x10ed80[_0x1fda63(0x1a4)][_0x1fda63(0x3a7)]!==_0x1aa864[_0x1fda63(0x1a4)][_0x1fda63(0x3a7)]||_0x10ed80[_0x1fda63(0x1a4)][_0x1fda63(0x2e9)]!==_0x1aa864[_0x1fda63(0x1a4)][_0x1fda63(0x2e9)])return _0x35d7ec;return{'m1Prime':[],'m2Prime':[_0x1aa864]};}},setSheetsFilterCriteriaWithSetRangeValues={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x203)]['id'],'handler'(_0x280ccb,_0x5182b7){const _0x440679=_0x151f3e,_0x53d749={'m1Prime':_0x280ccb,'m2Prime':_0x5182b7};if(_0x280ccb[_0x440679(0x1a4)][_0x440679(0x3a7)]!==_0x5182b7[_0x440679(0x1a4)][_0x440679(0x3a7)]||_0x280ccb[_0x440679(0x1a4)][_0x440679(0x2e9)]!==_0x5182b7[_0x440679(0x1a4)][_0x440679(0x2e9)])return _0x53d749;let _0xebb82f=![];new _univerjs_core[(_0x440679(0x2e2))](_0x5182b7[_0x440679(0x1a4)][_0x440679(0x30b)])[_0x440679(0x22f)]((_0x44f247,_0x18a14e)=>{const _0x3dcb1d=_0x440679;if(_0x18a14e===_0x280ccb['params'][_0x3dcb1d(0x2a8)])_0xebb82f=!![];});if(_0xebb82f)return{'m1Prime':_0x280ccb,'m2Prime':[_0x5182b7,{'id':_univerjs_sheets_filter[_0x440679(0x2a2)]['id'],'params':{'unitId':_0x5182b7[_0x440679(0x1a4)][_0x440679(0x3a7)],'subUnitId':_0x5182b7[_0x440679(0x1a4)]['subUnitId']}}]};return _0x53d749;}},setSheetsFilterCriteriaWithSelf={'m1':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'m2':_univerjs_sheets_filter[_0x151f3e(0x38c)]['id'],'handler'(_0x2ab118,_0x5a9d0d){const _0x7bd496=_0x151f3e,_0x1f40d9={'m1Prime':_0x2ab118,'m2Prime':_0x5a9d0d};if(_0x2ab118[_0x7bd496(0x1a4)][_0x7bd496(0x3a7)]!==_0x5a9d0d[_0x7bd496(0x1a4)][_0x7bd496(0x3a7)]||_0x2ab118[_0x7bd496(0x1a4)][_0x7bd496(0x2e9)]!==_0x5a9d0d[_0x7bd496(0x1a4)][_0x7bd496(0x2e9)]||_0x2ab118[_0x7bd496(0x1a4)][_0x7bd496(0x2a8)]!==_0x5a9d0d[_0x7bd496(0x1a4)][_0x7bd496(0x2a8)])return _0x1f40d9;return{'m1Prime':[],'m2Prime':[_0x5a9d0d]};}},setSheetsFilterRangeWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'m2':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'handler'(_0x32b03e,_0x3f4a03){const _0x254c1a=_0x151f3e,_0x49a448={'m1Prime':_0x32b03e,'m2Prime':_0x3f4a03};if(_0x32b03e[_0x254c1a(0x1a4)][_0x254c1a(0x3a7)]!==_0x3f4a03[_0x254c1a(0x1a4)][_0x254c1a(0x3a7)]||_0x32b03e['params'][_0x254c1a(0x2e9)]!==_0x3f4a03[_0x254c1a(0x1a4)][_0x254c1a(0x2e9)])return _0x49a448;return{'m1Prime':[],'m2Prime':[_0x3f4a03]};}},setSheetsFilterRangeWithSelf={'m1':_univerjs_sheets_filter[_0x151f3e(0x288)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x4a92be,_0x13b854){const _0x25812e=_0x151f3e,_0x1f2cba={'m1Prime':_0x4a92be,'m2Prime':_0x13b854};if(_0x4a92be['params'][_0x25812e(0x3a7)]!==_0x13b854['params'][_0x25812e(0x3a7)]||_0x4a92be[_0x25812e(0x1a4)][_0x25812e(0x2e9)]!==_0x13b854[_0x25812e(0x1a4)][_0x25812e(0x2e9)])return _0x1f2cba;return{'m1Prime':[],'m2Prime':[_0x13b854]};}},setTabColorMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x3b1)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3b1)]['id'],'handler'(_0x18c862,_0x561d4f){const _0x190b8d=_0x151f3e;if(_0x18c862['params'][_0x190b8d(0x3a7)]!==_0x561d4f[_0x190b8d(0x1a4)][_0x190b8d(0x3a7)]||_0x18c862['params']['subUnitId']!==_0x561d4f[_0x190b8d(0x1a4)][_0x190b8d(0x2e9)])return{'m1Prime':_0x18c862,'m2Prime':_0x561d4f};return{'m1Prime':[],'m2Prime':_0x561d4f};}},setWorksheetColWidthMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x3a5)]['id'],'handler'(_0x782d9b,_0x3a0de0){const _0x3b1b4d=_0x151f3e,_0x55bbb6={'m1Prime':_0x782d9b,'m2Prime':_0x3a0de0};if(_0x782d9b[_0x3b1b4d(0x1a4)]['unitId']!==_0x3a0de0[_0x3b1b4d(0x1a4)][_0x3b1b4d(0x3a7)]||_0x782d9b['params'][_0x3b1b4d(0x2e9)]!==_0x3a0de0[_0x3b1b4d(0x1a4)]['subUnitId'])return _0x55bbb6;const _0x128455=_0x782d9b[_0x3b1b4d(0x1a4)][_0x3b1b4d(0x286)],_0x13a1d5=[],_0x92ffa0=_univerjs_core['Tools'][_0x3b1b4d(0x3ce)](_0x782d9b),_0x34884f=_0x3a0de0[_0x3b1b4d(0x1a4)]['ranges'];_0x128455[_0x3b1b4d(0x3b5)](_0x3fc50b=>{const _0x430d32=_0x3b1b4d,_0x2151ee=lineSubtractLines({'start':_0x3fc50b['startColumn'],'end':_0x3fc50b['endColumn']},_0x34884f[_0x430d32(0x284)](_0x468d5d=>({'start':_0x468d5d[_0x430d32(0x1cb)],'end':_0x468d5d[_0x430d32(0x350)]})))[_0x430d32(0x284)](_0x1b57b9=>({..._0x3fc50b,'startColumn':_0x1b57b9[_0x430d32(0x2d5)],'endColumn':_0x1b57b9[_0x430d32(0x2c3)]}));_0x13a1d5['push'](..._0x2151ee);}),_0x92ffa0['params'][_0x3b1b4d(0x286)]=_0x13a1d5;const {colWidth:_0x3021e0}=_0x92ffa0[_0x3b1b4d(0x1a4)],{colWidth:_0x1ebe41}=_0x3a0de0[_0x3b1b4d(0x1a4)],_0x381c2d=_0x3021e0,_0x3dad9b=_0x1ebe41;if(typeof _0x381c2d!=='number'){if(typeof _0x3dad9b!==_0x3b1b4d(0x1da))Object[_0x3b1b4d(0x2d4)](_0x3dad9b)['map'](Number)[_0x3b1b4d(0x3b5)](_0x3b75b0=>{if(_0x381c2d[_0x3b75b0]!=null)delete _0x381c2d[_0x3b75b0];});else _0x34884f['forEach'](_0x57087f=>{const _0x43ce88=_0x3b1b4d;for(let _0x2256cd=_0x57087f[_0x43ce88(0x1cb)];_0x2256cd<=_0x57087f[_0x43ce88(0x350)];_0x2256cd++)delete _0x381c2d[_0x2256cd];});}return{'m1Prime':_0x92ffa0,'m2Prime':_0x3a0de0};}},setWorksheetNameWithInsertSheet={'m1':_univerjs_sheets['SetWorksheetNameMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2a3)]['id'],'handler'(_0x3f90bb,_0x3bee02){const _0x42549e=_0x151f3e;if(_0x3f90bb[_0x42549e(0x1a4)][_0x42549e(0x3a7)]!==_0x3bee02[_0x42549e(0x1a4)][_0x42549e(0x3a7)])return{'m1Prime':_0x3f90bb,'m2Prime':_0x3bee02};if(_0x3f90bb['params'][_0x42549e(0x2e9)]===_0x3bee02[_0x42549e(0x1a4)][_0x42549e(0x37d)]['id'])return{'error':new Error(_0x42549e(0x2ed))};if(_0x3f90bb['params'][_0x42549e(0x244)]===_0x3bee02['params'][_0x42549e(0x37d)]['name']){const _0x8a4730={'id':_univerjs_sheets['SetWorksheetNameMutation']['id'],'params':{'unitId':_0x3f90bb[_0x42549e(0x1a4)]['unitId'],'subUnitId':_0x3f90bb[_0x42549e(0x1a4)]['subUnitId'],'name':_0x3f90bb['params'][_0x42549e(0x244)]+_0x42549e(0x1ec)}};return{'m1Prime':_0x8a4730,'m2Prime':[_0x8a4730,_0x3bee02]};}return{'m1Prime':[],'m2Prime':[]};}},setWorksheetNameMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x390)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x390)]['id'],'handler'(_0x1d27f7,_0x2914b7){const _0x21d721=_0x151f3e;if(_0x1d27f7[_0x21d721(0x1a4)]['unitId']!==_0x2914b7[_0x21d721(0x1a4)][_0x21d721(0x3a7)])return{'m1Prime':_0x1d27f7,'m2Prime':_0x2914b7};if(_0x1d27f7[_0x21d721(0x1a4)][_0x21d721(0x2e9)]===_0x2914b7[_0x21d721(0x1a4)][_0x21d721(0x2e9)]){if(_0x1d27f7[_0x21d721(0x1a4)][_0x21d721(0x244)]!==_0x2914b7['params'][_0x21d721(0x244)])return{'m1Prime':[],'m2Prime':_0x2914b7};return{'m1Prime':[],'m2Prime':[]};}else{if(_0x1d27f7[_0x21d721(0x1a4)][_0x21d721(0x244)]!==_0x2914b7['params'][_0x21d721(0x244)])return{'m1Prime':[],'m2Prime':[]};const _0x58d569={'id':_univerjs_sheets[_0x21d721(0x390)]['id'],'params':{'unitId':_0x2914b7[_0x21d721(0x1a4)][_0x21d721(0x3a7)],'subUnitId':_0x2914b7['params'][_0x21d721(0x2e9)],'name':_0x2914b7['params'][_0x21d721(0x244)]+'\x20(1)'}};return{'m1Prime':[_0x58d569,_0x1d27f7],'m2Prime':_0x58d569};}}},setWorksheetRowAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x1f8)]['id'],'m2':_univerjs_sheets['SetWorksheetRowAutoHeightMutation']['id'],'handler'(_0x5bc574,_0x2c6757){const _0x3f69a8=_0x151f3e,_0x3d4bea={'m1Prime':_0x5bc574,'m2Prime':_0x2c6757};if(_0x5bc574[_0x3f69a8(0x1a4)]['unitId']!==_0x2c6757[_0x3f69a8(0x1a4)][_0x3f69a8(0x3a7)]||_0x5bc574[_0x3f69a8(0x1a4)][_0x3f69a8(0x2e9)]!==_0x2c6757[_0x3f69a8(0x1a4)][_0x3f69a8(0x2e9)])return _0x3d4bea;const _0x2b0a3d=_0x5bc574[_0x3f69a8(0x1a4)][_0x3f69a8(0x27b)],_0x4c3c29=[],_0x41d4da=_univerjs_core[_0x3f69a8(0x1a6)][_0x3f69a8(0x3ce)](_0x5bc574),_0x1fc377=_0x2c6757[_0x3f69a8(0x1a4)][_0x3f69a8(0x27b)];return _0x2b0a3d[_0x3f69a8(0x3b5)](_0x4bf499=>{const _0x495077=_0x3f69a8;if(!_0x1fc377[_0x495077(0x19b)](_0x10df09=>_0x10df09[_0x495077(0x1d0)]===_0x4bf499[_0x495077(0x1d0)]))_0x4c3c29[_0x495077(0x1c6)](_0x4bf499);}),_0x41d4da[_0x3f69a8(0x1a4)][_0x3f69a8(0x27b)]=_0x4c3c29,{'m1Prime':_0x41d4da,'m2Prime':_0x2c6757};}},setWorksheetRowHeightMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetRowHeightMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x3f2)]['id'],'handler'(_0xead2dc,_0xb9e4f2){const _0x26918c=_0x151f3e,_0x3d2d9b={'m1Prime':_0xead2dc,'m2Prime':_0xb9e4f2};if(_0xead2dc['params'][_0x26918c(0x3a7)]!==_0xb9e4f2[_0x26918c(0x1a4)][_0x26918c(0x3a7)]||_0xead2dc[_0x26918c(0x1a4)][_0x26918c(0x2e9)]!==_0xb9e4f2[_0x26918c(0x1a4)][_0x26918c(0x2e9)])return _0x3d2d9b;const _0x568f51=_0xead2dc['params'][_0x26918c(0x286)],_0x12f00b=[],_0x2158bb=_univerjs_core['Tools'][_0x26918c(0x3ce)](_0xead2dc),_0x332955=_0xb9e4f2[_0x26918c(0x1a4)][_0x26918c(0x286)];_0x568f51[_0x26918c(0x3b5)](_0x3727b4=>{const _0x5b7259=_0x26918c,_0x21acaa=lineSubtractLines({'start':_0x3727b4['startRow'],'end':_0x3727b4[_0x5b7259(0x342)]},_0x332955[_0x5b7259(0x284)](_0x59575a=>({'start':_0x59575a['startRow'],'end':_0x59575a[_0x5b7259(0x342)]})))['map'](_0x3b56e8=>({..._0x3727b4,'startRow':_0x3b56e8[_0x5b7259(0x2d5)],'endRow':_0x3b56e8[_0x5b7259(0x2c3)]}));_0x12f00b[_0x5b7259(0x1c6)](..._0x21acaa);}),_0x2158bb[_0x26918c(0x1a4)]['ranges']=_0x12f00b;const {rowHeight:_0x2ceae1}=_0x2158bb[_0x26918c(0x1a4)],{rowHeight:_0x57fabd}=_0xb9e4f2[_0x26918c(0x1a4)],_0xe8dcbe=_0x2ceae1,_0x568414=_0x57fabd;if(typeof _0xe8dcbe!=='number'){if(typeof _0x568414!=='number')Object['keys'](_0x568414)['map'](Number)[_0x26918c(0x3b5)](_0x120b47=>{if(_0xe8dcbe[_0x120b47]!=null)delete _0xe8dcbe[_0x120b47];});else _0x332955[_0x26918c(0x3b5)](_0x45b468=>{const _0x58b009=_0x26918c;for(let _0xfd3edb=_0x45b468[_0x58b009(0x1e8)];_0xfd3edb<=_0x45b468[_0x58b009(0x342)];_0xfd3edb++)delete _0xe8dcbe[_0xfd3edb];});}return{'m1Prime':_0x2158bb,'m2Prime':_0xb9e4f2};}},setWorksheetRowIsAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x385)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x385)]['id'],'handler'(_0x4ad795,_0x5267f8){const _0x76fb7b=_0x151f3e,_0x1d045d={'m1Prime':_0x4ad795,'m2Prime':_0x5267f8};if(_0x4ad795[_0x76fb7b(0x1a4)]['unitId']!==_0x5267f8['params'][_0x76fb7b(0x3a7)]||_0x4ad795[_0x76fb7b(0x1a4)][_0x76fb7b(0x2e9)]!==_0x5267f8[_0x76fb7b(0x1a4)][_0x76fb7b(0x2e9)])return _0x1d045d;const _0x53bddd=_0x4ad795[_0x76fb7b(0x1a4)][_0x76fb7b(0x286)],_0x4dd374=[],_0x37f2f0=_univerjs_core['Tools'][_0x76fb7b(0x3ce)](_0x4ad795),_0x368b9f=_0x5267f8[_0x76fb7b(0x1a4)][_0x76fb7b(0x286)];_0x53bddd[_0x76fb7b(0x3b5)](_0x36b8f2=>{const _0x5b42d2=_0x76fb7b,_0x2afcb2=lineSubtractLines({'start':_0x36b8f2['startRow'],'end':_0x36b8f2[_0x5b42d2(0x342)]},_0x368b9f[_0x5b42d2(0x284)](_0x566816=>({'start':_0x566816[_0x5b42d2(0x1e8)],'end':_0x566816[_0x5b42d2(0x342)]})))[_0x5b42d2(0x284)](_0x45c54b=>({..._0x36b8f2,'startRow':_0x45c54b[_0x5b42d2(0x2d5)],'endRow':_0x45c54b[_0x5b42d2(0x2c3)]}));_0x4dd374[_0x5b42d2(0x1c6)](..._0x2afcb2);}),_0x37f2f0[_0x76fb7b(0x1a4)]['ranges']=_0x4dd374;const {autoHeightInfo:_0x1ca4a2}=_0x37f2f0[_0x76fb7b(0x1a4)],{autoHeightInfo:_0x486c70}=_0x5267f8['params'];if(typeof _0x1ca4a2!==_0x76fb7b(0x1da)){if(typeof _0x486c70!==_0x76fb7b(0x1da))Object['keys'](_0x486c70)[_0x76fb7b(0x284)](Number)[_0x76fb7b(0x3b5)](_0x1bac1e=>{if(_0x1ca4a2[_0x1bac1e]!=null)delete _0x1ca4a2[_0x1bac1e];});else _0x368b9f[_0x76fb7b(0x3b5)](_0x65f5f8=>{const _0x23b975=_0x76fb7b;for(let _0x2c0600=_0x65f5f8[_0x23b975(0x1e8)];_0x2c0600<=_0x65f5f8[_0x23b975(0x342)];_0x2c0600++)delete _0x1ca4a2[_0x2c0600];});}return{'m1Prime':_0x37f2f0,'m2Prime':_0x5267f8};}},updateCommentRefWithSelf={'m1':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x2b8)]['id'],'handler':(_0x353817,_0x401f91)=>{const _0x3e984d=_0x151f3e,_0x373c5b=_0x353817['params'],_0x1ee5de=_0x401f91[_0x3e984d(0x1a4)];if(_0x373c5b[_0x3e984d(0x3a7)]===_0x1ee5de['unitId']&&_0x373c5b[_0x3e984d(0x2e9)]===_0x1ee5de[_0x3e984d(0x2e9)]&&_0x373c5b['payload'][_0x3e984d(0x228)]===_0x1ee5de[_0x3e984d(0x296)]['commentId'])return{'m1Prime':[],'m2Prime':_0x401f91};return{'m1Prime':_0x353817,'m2Prime':_0x401f91};}},updateCommentWithSelf={'m1':_univerjs_thread_comment[_0x151f3e(0x34f)]['id'],'m2':_univerjs_thread_comment[_0x151f3e(0x34f)]['id'],'handler':(_0x412031,_0x2e41d7)=>{const _0x7d63c1=_0x151f3e,_0x310b19=_0x412031[_0x7d63c1(0x1a4)],_0x3642d7=_0x2e41d7[_0x7d63c1(0x1a4)];if(_0x310b19['unitId']===_0x3642d7[_0x7d63c1(0x3a7)]&&_0x310b19['subUnitId']===_0x3642d7['subUnitId']&&_0x310b19[_0x7d63c1(0x296)][_0x7d63c1(0x228)]===_0x3642d7[_0x7d63c1(0x296)][_0x7d63c1(0x228)])return{'m1Prime':[],'m2Prime':_0x2e41d7};return{'m1Prime':_0x412031,'m2Prime':_0x2e41d7};}},updateDataValidationMutationWithAdd={'m1':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'m2':_univerjs_data_validation['AddDataValidationMutation']['id'],'handler':(_0x57d87e,_0x23363e)=>{const _0x1e282d=_0x151f3e,_0x300cc5={'m1Prime':_0x57d87e,'m2Prime':_0x23363e},_0x4fa704=_0x57d87e['params'],_0x141772=_0x23363e[_0x1e282d(0x1a4)];if(_0x4fa704[_0x1e282d(0x3a7)]!==_0x141772[_0x1e282d(0x3a7)]||_0x4fa704[_0x1e282d(0x2e9)]!==_0x141772[_0x1e282d(0x2e9)])return _0x300cc5;if(_0x57d87e[_0x1e282d(0x1a4)][_0x1e282d(0x296)][_0x1e282d(0x38b)]===_univerjs_data_validation['UpdateRuleType'][_0x1e282d(0x3a3)]){const {unitId:_0x5e6388,subUnitId:_0x286d4b}=_0x57d87e[_0x1e282d(0x1a4)],_0x204abe=Array['isArray'](_0x23363e['params'][_0x1e282d(0x3e3)])?_0x23363e[_0x1e282d(0x1a4)][_0x1e282d(0x3e3)]:[_0x23363e['params']['rule']],_0x3122da=[],_0x1a0465=new _univerjs_core['ObjectMatrix'](),_0x34bd8b=_0x57d87e[_0x1e282d(0x1a4)]['payload'][_0x1e282d(0x296)];_0x34bd8b['forEach'](_0x54aa0e=>{_univerjs_core['Range']['foreach'](_0x54aa0e,(_0xff1555,_0x339df7)=>{const _0x157c20=_0x62e3;_0x1a0465['setValue'](_0xff1555,_0x339df7,_0x57d87e[_0x157c20(0x1a4)][_0x157c20(0x365)]);});}),_0x204abe[_0x1e282d(0x3b5)](_0x30c768=>{const _0x54f77a=_0x1e282d;_0x30c768[_0x54f77a(0x286)][_0x54f77a(0x3b5)](_0x310ca9=>{const _0x4f22ab=_0x54f77a;_univerjs_core[_0x4f22ab(0x381)][_0x4f22ab(0x372)](_0x310ca9,(_0x2eff86,_0x1c2c1d)=>{const _0x1f5198=_0x4f22ab;_0x1a0465[_0x1f5198(0x1af)](_0x2eff86,_0x1c2c1d,_0x30c768['uid']);});});});const _0x360f20=_0x57d87e[_0x1e282d(0x1a4)][_0x1e282d(0x365)];if(!_0x360f20)return _0x300cc5;const _0x1213de=(0x0,_univerjs_core[_0x1e282d(0x2ee)])(_0x1a0465,_0x553bd2=>_0x553bd2===_0x360f20);if(!(0x0,_univerjs_core[_0x1e282d(0x3d3)])(_0x1213de,_0x34bd8b)){if(_0x1213de['length'])_0x3122da[_0x1e282d(0x1c6)]({'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x5e6388,'subUnitId':_0x286d4b,'ruleId':_0x360f20,'payload':{'type':_univerjs_data_validation[_0x1e282d(0x2f4)][_0x1e282d(0x3a3)],'payload':_0x1213de}}});else _0x3122da['push']({'id':_univerjs_data_validation[_0x1e282d(0x25b)]['id'],'params':{'unitId':_0x5e6388,'subUnitId':_0x286d4b,'ruleId':_0x360f20}});}return{'m1Prime':_0x3122da[_0x1e282d(0x1ba)]?_0x3122da:[_0x57d87e],'m2Prime':[..._0x3122da,_0x23363e]};}return _0x300cc5;}},updateDataValidationMutationWithRemoveSelf={'m1':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'m2':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'handler':(_0x4ce6f7,_0x29082b)=>{const _0x57b1ae=_0x151f3e,_0x97b78c={'m1Prime':_0x4ce6f7,'m2Prime':_0x29082b};if(_0x4ce6f7[_0x57b1ae(0x1a4)][_0x57b1ae(0x3a7)]!==_0x29082b[_0x57b1ae(0x1a4)]['unitId']||_0x4ce6f7[_0x57b1ae(0x1a4)]['subUnitId']!==_0x29082b['params'][_0x57b1ae(0x2e9)])return _0x97b78c;const _0x5249a0=_0x4ce6f7[_0x57b1ae(0x1a4)][_0x57b1ae(0x365)];if((Array['isArray'](_0x29082b[_0x57b1ae(0x1a4)]['ruleId'])?_0x29082b[_0x57b1ae(0x1a4)][_0x57b1ae(0x365)]:[_0x29082b[_0x57b1ae(0x1a4)][_0x57b1ae(0x365)]])[_0x57b1ae(0x23d)](_0x5249a0)>-0x1)return{'m1Prime':[],'m2Prime':_0x29082b};return _0x97b78c;}},updateDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'m2':_univerjs_data_validation[_0x151f3e(0x2cf)]['id'],'handler':(_0x372474,_0x152791)=>{const _0x9d7a09=_0x151f3e,_0x42e130={'m1Prime':_0x372474,'m2Prime':_0x152791},_0x4063b0=_0x372474[_0x9d7a09(0x1a4)],_0xbce31=_0x152791[_0x9d7a09(0x1a4)];if(_0x4063b0['unitId']===_0xbce31[_0x9d7a09(0x3a7)]&&_0x4063b0[_0x9d7a09(0x2e9)]===_0xbce31[_0x9d7a09(0x2e9)]){const _0x1ba663=_univerjs_core[_0x9d7a09(0x1a6)][_0x9d7a09(0x3ce)](_0x152791);if(_0xbce31[_0x9d7a09(0x365)]===_0x4063b0[_0x9d7a09(0x365)]&&_0x4063b0[_0x9d7a09(0x296)][_0x9d7a09(0x38b)]===_0xbce31[_0x9d7a09(0x296)][_0x9d7a09(0x38b)]){if(_0x4063b0['payload'][_0x9d7a09(0x38b)]===_univerjs_data_validation[_0x9d7a09(0x2f4)]['RANGE']&&!(0x0,_univerjs_core['isRangesEqual'])(_0x4063b0[_0x9d7a09(0x296)][_0x9d7a09(0x296)],_0xbce31['payload'][_0x9d7a09(0x296)]))return{'error':new Error('edit\x20range\x20of\x20same\x20data-validation\x20rule\x20is\x20not\x20allowed')};return{'m1Prime':[],'m2Prime':_0x1ba663};}if(_0x4063b0[_0x9d7a09(0x296)]['type']===_univerjs_data_validation[_0x9d7a09(0x2f4)]['RANGE']&&_0xbce31[_0x9d7a09(0x296)]['type']===_univerjs_data_validation[_0x9d7a09(0x2f4)][_0x9d7a09(0x3a3)]&&_0xbce31[_0x9d7a09(0x365)]!==_0x4063b0[_0x9d7a09(0x365)]){const _0x2e0166=new _univerjs_core[(_0x9d7a09(0x2e2))]();function _0x457c23(_0x548d8d,_0x3518fc){_0x548d8d['forEach'](_0x1b1ef7=>{const _0x158778=_0x62e3;_univerjs_core[_0x158778(0x381)][_0x158778(0x372)](_0x1b1ef7,(_0x5dc502,_0x2e3568)=>{const _0x575bf2=_0x158778;_0x2e0166[_0x575bf2(0x1af)](_0x5dc502,_0x2e3568,_0x3518fc);});});}_0x457c23(_0x4063b0[_0x9d7a09(0x296)][_0x9d7a09(0x296)],_0x4063b0[_0x9d7a09(0x365)]),_0x457c23(_0xbce31[_0x9d7a09(0x296)][_0x9d7a09(0x296)],_0xbce31[_0x9d7a09(0x365)]);const _0x477b16=(0x0,_univerjs_core['queryObjectMatrix'])(_0x2e0166,_0x3ef623=>_0x3ef623===_0x4063b0['ruleId']),_0x47ac7d=!(0x0,_univerjs_core[_0x9d7a09(0x3d3)])(_0x4063b0[_0x9d7a09(0x296)][_0x9d7a09(0x296)],_0x477b16)?_0x477b16[_0x9d7a09(0x1ba)]?[{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{..._0x4063b0,'payload':{'type':_univerjs_data_validation[_0x9d7a09(0x2f4)][_0x9d7a09(0x3a3)],'payload':_0x477b16}}}]:[{'id':_univerjs_data_validation[_0x9d7a09(0x25b)]['id'],'params':{..._0x4063b0,'payload':void 0x0}}]:[];return{'m1Prime':[_0x372474],'m2Prime':[..._0x47ac7d,_0x152791]};}}return _0x42e130;}},updateHyperLinkRefWithSelf={'m1':_univerjs_sheets_hyper_link[_0x151f3e(0x3c2)]['id'],'m2':_univerjs_sheets_hyper_link[_0x151f3e(0x3c2)]['id'],'handler':(_0x2ba7ec,_0x493787)=>{const _0x2dfe20=_0x151f3e,_0x396692=_0x2ba7ec[_0x2dfe20(0x1a4)],_0x4ba1bf=_0x493787['params'];if(_0x396692[_0x2dfe20(0x3a7)]===_0x4ba1bf['unitId']&&_0x396692[_0x2dfe20(0x2e9)]===_0x4ba1bf['subUnitId']&&_0x396692['id']===_0x4ba1bf['id'])return{'m2Prime':_0x493787,'m1Prime':[]};return{'m1Prime':_0x2ba7ec,'m2Prime':_0x493787};}},updateHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0x151f3e(0x227)]['id'],'m2':_univerjs_sheets_hyper_link[_0x151f3e(0x227)]['id'],'handler':(_0xa2c8c2,_0x108109)=>{const _0x3028d5=_0x151f3e,_0x152d9f=_0xa2c8c2[_0x3028d5(0x1a4)],_0x2181f2=_0x108109[_0x3028d5(0x1a4)];if(_0x152d9f['unitId']===_0x2181f2[_0x3028d5(0x3a7)]&&_0x152d9f[_0x3028d5(0x2e9)]===_0x2181f2['subUnitId']&&_0x152d9f['id']===_0x2181f2['id'])return{'m2Prime':_0x108109,'m1Prime':[]};return{'m1Prime':_0xa2c8c2,'m2Prime':_0x108109};}},removeSheetMutationWithAddWorksheetMerge={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x304)]['id'],'handler'(_0x559e81,_0x156fcb){const _0x573466=_0x151f3e;if(_0x559e81[_0x573466(0x1a4)][_0x573466(0x3a7)]!==_0x156fcb[_0x573466(0x1a4)]['unitId']||_0x559e81['params'][_0x573466(0x2e9)]!==_0x156fcb['params'][_0x573466(0x2e9)])return{'m1Prime':_0x559e81,'m2Prime':_0x156fcb};return{'m1Prime':_0x559e81,'m2Prime':[]};}},removeSheetMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0x5d513d,_0x2862dc){const _0x122007=_0x151f3e;if(_0x5d513d[_0x122007(0x1a4)][_0x122007(0x3a7)]!==_0x2862dc[_0x122007(0x1a4)][_0x122007(0x3a7)]||_0x5d513d[_0x122007(0x1a4)][_0x122007(0x2e9)]!==_0x2862dc[_0x122007(0x1a4)][_0x122007(0x2e9)])return{'m1Prime':_0x5d513d,'m2Prime':_0x2862dc};return{'m1Prime':_0x5d513d,'m2Prime':[]};}},InsertSheetMutationWithSelf={'m1':_univerjs_sheets['InsertSheetMutation']['id'],'m2':_univerjs_sheets[_0x151f3e(0x2a3)]['id'],'handler'(_0x2dd584,_0x8289b3){const _0x884857=_0x151f3e;if(_0x2dd584[_0x884857(0x1a4)][_0x884857(0x37d)]['id']===_0x8289b3['params'][_0x884857(0x37d)]['id'])return{'error':new Error(_0x884857(0x37b))};const _0x5df8e7=_univerjs_core[_0x884857(0x1a6)][_0x884857(0x3ce)](_0x2dd584),_0x1fffdf=_univerjs_core[_0x884857(0x1a6)][_0x884857(0x3ce)](_0x8289b3);if(_0x5df8e7[_0x884857(0x1a4)][_0x884857(0x26d)]<=_0x1fffdf[_0x884857(0x1a4)][_0x884857(0x26d)])_0x1fffdf[_0x884857(0x1a4)][_0x884857(0x26d)]+=0x1;else{if(_0x5df8e7[_0x884857(0x1a4)][_0x884857(0x26d)]>_0x1fffdf[_0x884857(0x1a4)][_0x884857(0x26d)])_0x5df8e7['params'][_0x884857(0x26d)]+=0x1;}if(_0x2dd584[_0x884857(0x1a4)][_0x884857(0x37d)][_0x884857(0x244)]===_0x8289b3[_0x884857(0x1a4)][_0x884857(0x37d)][_0x884857(0x244)]){const _0x28b1c5={'id':_univerjs_sheets['SetWorksheetNameMutation']['id'],'params':{'unitId':_0x8289b3[_0x884857(0x1a4)][_0x884857(0x3a7)],'subUnitId':_0x8289b3['params'][_0x884857(0x37d)]['id'],'name':_0x8289b3[_0x884857(0x1a4)][_0x884857(0x37d)][_0x884857(0x244)]+'\x20(1)'}};return{'m1Prime':[_0x28b1c5,_0x5df8e7],'m2Prime':[_0x1fffdf,_0x28b1c5]};}return{'m1Prime':_0x5df8e7,'m2Prime':_0x1fffdf};}},RemoveSheetMutationWithOthers={'m1':_univerjs_sheets[_0x151f3e(0x287)]['id'],'m2':'any','handler'(_0x46fa87,_0xa8ae8){const _0x383d4c=_0x151f3e;if(_0x46fa87[_0x383d4c(0x1a4)]['unitId']!==_0xa8ae8[_0x383d4c(0x1a4)][_0x383d4c(0x3a7)]||_0x46fa87[_0x383d4c(0x1a4)]['subUnitId']!==_0xa8ae8[_0x383d4c(0x1a4)][_0x383d4c(0x2e9)])return{'m1Prime':_0x46fa87,'m2Prime':_0xa8ae8};if(_0x46fa87['id']===_0xa8ae8['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':_0x46fa87,'m2Prime':[]};}},SetWorksheetOrderMutationWithSelf={'m1':_univerjs_sheets[_0x151f3e(0x269)]['id'],'m2':_univerjs_sheets[_0x151f3e(0x269)]['id'],'handler'(_0x169ef2,_0x2c64b8){const _0x328a2e=_0x151f3e,_0x3b228d=_univerjs_core[_0x328a2e(0x1a6)][_0x328a2e(0x3ce)](_0x169ef2),_0x1cc2a6=_univerjs_core[_0x328a2e(0x1a6)][_0x328a2e(0x3ce)](_0x2c64b8),_0x21ff9c={'error':new Error(_0x328a2e(0x3e9))};if(_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x35c)]===_0x2c64b8[_0x328a2e(0x1a4)]['fromOrder'])_0x3b228d['id']=_univerjs_sheets['EmptyMutation']['id'],_0x1cc2a6['params']['fromOrder']=_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x23c)];else{if(_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x35c)]===_0x169ef2['params'][_0x328a2e(0x23c)])_0x3b228d['id']=_univerjs_sheets[_0x328a2e(0x36d)]['id'];if(_0x2c64b8['params'][_0x328a2e(0x35c)]===_0x2c64b8['params'][_0x328a2e(0x23c)])_0x1cc2a6['id']=_univerjs_sheets[_0x328a2e(0x36d)]['id'];const _0x1987d2=[Math[_0x328a2e(0x308)](_0x169ef2['params'][_0x328a2e(0x35c)],_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x23c)]),Math[_0x328a2e(0x2db)](_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x35c)],_0x169ef2[_0x328a2e(0x1a4)][_0x328a2e(0x23c)])],_0x2e5d2e=[Math[_0x328a2e(0x308)](_0x2c64b8[_0x328a2e(0x1a4)]['fromOrder'],_0x2c64b8['params'][_0x328a2e(0x23c)]),Math[_0x328a2e(0x2db)](_0x2c64b8['params'][_0x328a2e(0x35c)],_0x2c64b8[_0x328a2e(0x1a4)]['toOrder'])];if(_0x1987d2[0x0]<=_0x2e5d2e[0x1]&&_0x1987d2[0x1]>=_0x2e5d2e[0x0])return _0x21ff9c;}return{'m1Prime':_0x3b228d,'m2Prime':_0x1cc2a6};}},InsetSheetMutationWithSetWorksheetOrder={'m1':_univerjs_sheets['InsertSheetMutation']['id'],'m2':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'handler'(_0x32dcfe,_0xc25e00){const _0x589c90=_0x151f3e,_0x340c5c=_univerjs_core[_0x589c90(0x1a6)][_0x589c90(0x3ce)](_0x32dcfe),_0x4bff8b=_univerjs_core['Tools'][_0x589c90(0x3ce)](_0xc25e00);if(_0x32dcfe[_0x589c90(0x1a4)]['index']<=_0xc25e00[_0x589c90(0x1a4)][_0x589c90(0x282)])_0x4bff8b[_0x589c90(0x1a4)][_0x589c90(0x282)]+=0x1;return{'m1Prime':_0x340c5c,'m2Prime':_0x4bff8b};}},OthersWithRemoveSheetMutation={'m1':_0x151f3e(0x3b6),'m2':_univerjs_sheets[_0x151f3e(0x287)]['id'],'handler'(_0x255063,_0x577d9a){const _0x12f387=_0x151f3e;if(_0x255063[_0x12f387(0x1a4)][_0x12f387(0x3a7)]!==_0x577d9a[_0x12f387(0x1a4)][_0x12f387(0x3a7)]||_0x255063[_0x12f387(0x1a4)][_0x12f387(0x2e9)]!==_0x577d9a[_0x12f387(0x1a4)][_0x12f387(0x2e9)])return{'m1Prime':_0x255063,'m2Prime':_0x577d9a};if(_0x255063['id']===_0x577d9a['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':[],'m2Prime':_0x577d9a};}},WorksheetAlgorithms=[InsertSheetMutationWithSelf,InsetSheetMutationWithSetWorksheetOrder,RemoveSheetMutationWithOthers,OthersWithRemoveSheetMutation,SetWorksheetOrderMutationWithSelf],SHEET_ALL_ALGORITHMS=[...WorksheetAlgorithms,insertColMutationWithSelf,insertColMutationWithMoveCol,insertColMutationWithMoveRange,insertColMutationWithRemoveCol,insertColMutationWithSetRangeValues,insertColMutationWithSetColData,insertColMutationWithSetColHidden,insertColMutationWithSetColVisible,insertColMutationWithSetWorksheetColWidth,insertColMutationWithSetNumfmt,insertColMutationWithRemoveNumfmt,insertColMutationWithSetSelection,insertRowMutationWithSelf,insertRowMutationWithMoveRange,insertRowMutationWithMoveRow,insertRowMutationWithRemoveRow,insertRowMutationWithSetRangeValues,insertRowMutationWithSetWorksheetRowAutoHeight,insertRowMutationWithSetWorksheetRowHeight,insertRowMutationWithSetWorksheetRowIsAutoHeight,insertRowMutationWithSetRowData,insertRowMutationWithSetRowHidden,insertRowMutationWithSetRowVisible,insertRowMutationWithSetNumfmt,insertRowMutationWithRemoveNumfmt,insertRowMutationWithSetSelection,moveColMutationWithSelf,moveColMutationWithSetRangeValues,moveColMutationWithMoveRange,moveColMutationWithSetColData,moveColMutationWithSetColHidden,moveColMutationWithSetColVisible,moveColMutationWithSetWorksheetColWidth,moveColMutationWithSetNumfmt,moveColMutationWithSetSelection,moveColMutationWithRemoveNumfmt,moveRowMutationWithSelf,moveRowMutationWithSetRangeValues,moveRowMutationWithMoveRange,moveRowMutationWithSetWorksheetRowAutoHeight,moveRowMutationWithSetWorksheetRowHeight,moveRowMutationWithSetWorksheetRowIsAutoHeight,moveRowMutationWithSetRowData,moveRowMutationWithSetRowHidden,moveRowMutationWithSetRowVisible,moveRowMutationWithSetNumfmt,moveRowMutationWithRemoveNumfmt,moveRowMutationWithSetSelection,moveRangeMutationWithSelf,moveRangeMutationWithSetNumfmt,moveRangeMutationWithRemoveNumfmt,removeColMutationWithSelf,removeColMutationWithMoveCol,removeColMutationWithMoveRange,removeColMutationWithSetRangeValues,removeColMutationWithSetColData,removeColMutationWithSetColHidden,removeColMutationWithSetColVisible,removeColMutationWithSetWorksheetColWidth,removeColMutationWithSetNumfmt,removeColMutationWithRemoveNumfmt,removeColMutationWithSetSelection,removeRowMutationWithSelf,removeRowMutationWithMoveRow,removeRowMutationWithMoveRange,removeRowMutationWithSetRangeValues,removeRowMutationWithSetWorksheetRowAutoHeight,removeRowMutationWithSetWorksheetRowHeight,removeRowMutationWithSetWorksheetRowIsAutoHeight,removeRowMutationWithSetRowData,removeRowMutationWithSetRowHidden,removeRowMutationWithSetRowVisible,removeRowMutationWithSetNumfmt,removeRowMutationWithRemoveNumfmt,removeRowMutationWithSetSelection,setRangeValuesMutationWithSelf,setRangeValuesWithMoveRange,setWorksheetNameWithInsertSheet,setWorksheetNameMutationWithSelf,setFrozenMutationWithSelf,setTabColorMutationWithSelf,setWorksheetColWidthMutationWithSelf,setWorksheetRowAutoHeightMutationWithSelf,setWorksheetRowHeightMutationWithSelf,setWorksheetRowIsAutoHeightMutationWithSelf,setRowDataMutationWithSelf,setColDataMutationWithSelf,setNumfmtMutationWithSelf,setNumfmtMutationWithRemoveNumfmt,removeNumfmtMutationWithSelf,removeNumfmtMutationWithSetNumfmt,addConditionalFormattingRuleMutationWithSelf,setConditionalFormattingRuleMutationWithSelf,moveConditionalFormattingRuleMutationWithSelf,deleteConditionalFormattingRuleMutationWithSelf,addDataValidationMutationWithSelf,updateDataValidationMutationWithSelf,removeDataValidationMutationWithSelf,moveColMutationWithAddDataValidation,moveRowMutationWithAddDataValidation,insertColMutationWithAddDataValidation,removeColMutationWithAddDataValidation,removeRowMutationWithAddDataValidation,moveColMutationWithUpdateDataValidation,moveRowMutationWithUpdateDataValidation,insertColMutationWithUpdateDataValidation,insertRowMutationWithUpdateDataValidation,removeColMutationWithUpdateDataValidation,removeRowMutationWithUpdateDataValidation,addDataValidationMutationWithUpdate,updateDataValidationMutationWithAdd,updateDataValidationMutationWithRemoveSelf,insertColMutationWithSetSheetsFilterCriteria,insertColMutationWithSetSheetsFilterRange,insertRowMutationWithSetSheetsFilterRange,moveColMutationWithSetSheetsFilterCriteria,moveColMutationWithSetSheetsFilterRange,moveRowMutationWithSetSheetsFilterRange,removeColMutationWithSetSheetsFilterCriteria,removeColMutationWithSetSheetsFilterRange,removeRowMutationWithSetSheetsFilterRange,setSheetsFilterCriteriaWithSelf,setSheetsFilterCriteriaWithRemoveSheetsFilter,setSheetsFilterCriteriaWithSetRangeValues,setSheetsFilterCriteriaWithMoveRange,setSheetsFilterRangeWithSelf,setSheetsFilterRangeWithRemoveSheetsFilter,addWorksheetMergeMutationWithSelf,addWorksheetMergeMutationWithInsertColMutation,insertColMutationWithAddMerge,addWorksheetMergeMutationWithInsertRowMutation,insertRowMutationWithAddMerge,addWorksheetMergeMutationWithMoveColMutation,moveColMutationWithAddMerge,addWorksheetMergeMutationWithMoveRowMutation,moveRowsMutationWithAddMerge,addWorksheetMergeMutationWithMoveRangeMutation,moveRangeMutationWithAddMerge,addWorksheetMergeMutationWithRemoveColMutation,removeColMutationWithAddMerge,addWorksheetMergeMutationWithRemoveRowMutation,removeRowMutationWithAddMerge,addWorksheetMergeMutationWithSetRangeValues,setRangeValueMutationWithAddMerge,addWorksheetMergeMutationWithRemoveWorksheetMergeMutation,removeSheetMutationWithAddWorksheetMerge,insertColMutationWithRemoveWorksheetMergeMutation,insertRowMutationWithRemoveWorksheetMergeMutation,moveColMutationWithRemoveWorksheetMerge,moveRowMutationWithRemoveWorksheetMerge,removeColMutationWithRemoveWorksheetMerge,removeRowMutationWithRemoveWorksheetMerge,removeSheetMutationWithRemoveWorksheetMerge,removeWorksheetMergeMutationWithAddMerge,removeWorksheetMergeMutationWithInsertRowMutation,removeWorksheetMergeMutationWithInsertColMutation,removeWorksheetMergeMutationWithMoveColMutation,removeWorksheetMergeMutationWithMoveRowMutation,removeWorksheetMergeMutationWithRemoveColMutation,removeWorksheetMergeMutationWithRemoveRowMutation,addWorksheetMergeMutationWithSetSelection,removeWorksheetMergeMutationWithSetSelection,addCommentMutationWithSelf,deleteCommentMutationWithAdd,deleteCommentMutationWithSelf,updateCommentRefWithSelf,updateCommentWithSelf,insertColWithAddComment,insertRowWithAddComment,moveColWithAddComment,moveRowWithAddComment,removeColWithAddComment,removeRowWithAddComment,insertColWithUpdateCommentRef,insertRowWithUpdateCommentRef,moveColsWithUpdateCommentRef,moveRowsWithUpdateCommentRef,removeColWithUpdateCommentRef,removeRowWithUpdateCommentRef,addHyperLinkWithSelf,removeHyperLinkWithSelf,updateHyperLinkWithSelf,updateHyperLinkRefWithSelf,addRangeProtectionWithAddComment,addRangeProtectionWithAddConditionRule,addRangeProtectionWithSelf,addRangeProtectionWithAddWorksheetMerge,addRangeProtectionWithAddWorksheetProtection,addRangeProtectionWithDeleteConditionFormattingRule,addRangeProtectionWithInsertCol,addRangeProtectionWithInsertRow,addRangeProtectionWithMoveCol,addRangeProtectionWithMoveRange,addRangeProtectionWithMoveRow,addRangeProtectionWithRemoveCol,addRangeProtectionWithRemoveDataValidation,addRangeProtectionWithRemoveNumfmt,addRangeProtectionWithRemoveFilter,addRangeProtectionWithRemoveWorksheetMerge,addRangeProtectionWithSetConditionalFormattingRule,addRangeProtectionWithSetFrozen,addRangeProtectionWithSetNumfmt,addRangeProtectionWithSetRangeProtection,addRangeProtectionWithSetRangeValue,addRangeProtectionWithSetWorksheetColWidth,addRangeProtectionWithUpdateComment,addRangeProtectionWithUpdateDataValidation,setRangeProtectionWithAddComment,setRangeProtectionWithAddConditionRule,setRangeProtectionWithAddWorksheetMerge,setRangeProtectionWithAddWorksheetProtection,setRangeProtectionWithDeleteConditionFormattingRule,setRangeProtectionWithInsertCol,setRangeProtectionWithInsertRow,setRangeProtectionWithMoveCol,setRangeProtectionWithMoveRange,setRangeProtectionWithMoveRow,setRangeProtectionWithRemoveCol,setRangeProtectionWithRemoveRow,setRangeProtectionWithRemoveDataValidation,setRangeProtectionWithRemoveFilter,setRangeProtectionWithRemoveWorksheetMerge,setRangeProtectionWithSetConditionalFormattingRule,setRangeProtectionWithSetFrozen,setRangeProtectionWithSetNumfmt,setRangeProtectionWithSetRangeProtection,setRangeProtectionWithSetRangeValue,setRangeProtectionWithSetWorksheetColWidth,setRangeProtectionWithUpdateComment,setRangeProtectionWithUpdateDataValidation,addWorksheetProtectionWithAddComment,addWorksheetProtectionWithAddConditionRule,addWorksheetProtectionWithAddRangeProtection,addWorksheetProtectionWithAddWorksheetMerge,addWorksheetProtectionWithSelf,addWorksheetProtectionWithChangeSheetOrder,addWorksheetProtectionWithDeleteConditionFormattingRule,addWorksheetProtectionWithInsertCol,addWorksheetProtectionWithInsertRow,addWorksheetProtectionWithMoveCol,addWorksheetProtectionWithMoveRow,addWorksheetProtectionWithMoveRange,addWorksheetProtectionWithRemoveCol,addWorksheetProtectionWithRemoveRow,addWorksheetProtectionWithRemoveDataValidation,addWorksheetProtectionWithRemoveNumfmt,addWorksheetProtectionWithRemoveWorksheetMerge,addWorksheetProtectionWithRemoveFilter,addWorksheetProtectionWithRemoveWorksheet,addWorksheetProtectionWithSetConditionalFormattingRule,addWorksheetProtectionWithSetFrozen,addWorksheetProtectionWithSetNumfmt,addWorksheetProtectionWithSetRangeProtection,addWorksheetProtectionWithSetWorksheetColWidth,addWorksheetProtectionWithSetWorksheetName,addWorksheetProtectionWithUpdateComment,addWorksheetProtectionWithUpdateDataValidation,insertRowMutationWithReorderRange,insertColMutationWithReorderRange,removeRowMutationWithReorderRange,removeColMutationWithReorderRange,moveRowMutationWithReorderRange,moveColMutationWithReorderRange,moveRangeMutationWithReorderRange,setRangeValuesMutationWithReorderRange,reorderRangeMutationWithSelf,setDrawingApplyMutationWithSelf,OthersWithRevertRevision,RevertRevisionMutationWithOthers];let SheetTransformController=class SheetTransformController extends _univerjs_core['Disposable']{constructor(_0x563a08){const _0x1451c4=_0x151f3e;super(),this[_0x1451c4(0x2b2)]=_0x563a08,SHEET_ALL_ALGORITHMS['forEach'](_0x4b47a5=>{const _0x169da5=_0x1451c4;this['_transformService'][_0x169da5(0x362)](_0x4b47a5);});}};SheetTransformController=__decorate([__decorateParam(0x0,ITransformService)],SheetTransformController);function parseProtocolChangeset(_0x2193a3){const _0x3e84e4=_0x151f3e;var _0x3990ab,_0x28e103;return{..._0x2193a3,'mutations':(_0x3990ab=(_0x28e103=_0x2193a3['mutations'])===null||_0x28e103===void 0x0?void 0x0:_0x28e103[_0x3e84e4(0x284)](parseProtocolMutation))!==null&&_0x3990ab!==void 0x0?_0x3990ab:[]};}function parseProtocolCommand(_0x211feb){const _0x59a60a=_0x151f3e;return _0x211feb[_0x59a60a(0x284)](_0x390c7b=>({'id':_0x390c7b['id'],'params':JSON['parse'](_0x390c7b['data'])}));}function parseChangesetToProtocol(_0x573089){const _0x537a42=_0x151f3e;var _0x593e31,_0x4f1d06;return{..._0x573089,'mutations':(_0x593e31=(_0x4f1d06=_0x573089[_0x537a42(0x1bd)])===null||_0x4f1d06===void 0x0?void 0x0:_0x4f1d06[_0x537a42(0x284)](parseMutationToProtocol))!==null&&_0x593e31!==void 0x0?_0x593e31:[]};}function parseProtocolMutation(_0x196d0b){const _0x2bf099=_0x151f3e;return{'id':_0x196d0b['id'],'params':JSON['parse'](_0x196d0b[_0x2bf099(0x250)])};}function parseMutationToProtocol(_0x265e96){const _0x4c36af=_0x151f3e;return{'id':_0x265e96['id'],'data':JSON[_0x4c36af(0x2c5)](_0x265e96[_0x4c36af(0x1a4)])};}let CollaborationEvent=function(_0x1e4070){const _0x574f30=_0x151f3e;return _0x1e4070[_0x574f30(0x1aa)]=_0x574f30(0x3f0),_0x1e4070['PSEUDO_FETCH_MISSING_RESULT']='pseudo_fetch_missing_result',_0x1e4070[_0x574f30(0x391)]=_0x574f30(0x2c6),_0x1e4070[_0x574f30(0x360)]=_0x574f30(0x3b4),_0x1e4070[_0x574f30(0x36c)]=_0x574f30(0x343),_0x1e4070[_0x574f30(0x212)]=_0x574f30(0x3fb),_0x1e4070['NEW_CHANGESETS']='new_changesets',_0x1e4070[_0x574f30(0x35e)]=_0x574f30(0x3aa),_0x1e4070[_0x574f30(0x1d7)]='users_enter',_0x1e4070['USERS_LEAVE']=_0x574f30(0x22c),_0x1e4070[_0x574f30(0x3e6)]=_0x574f30(0x211),_0x1e4070[_0x574f30(0x37a)]='liveshare.request_host',_0x1e4070[_0x574f30(0x241)]=_0x574f30(0x2c4),_0x1e4070[_0x574f30(0x38f)]=_0x574f30(0x1d6),_0x1e4070[_0x574f30(0x199)]='liveshare.fetch_operations',_0x1e4070[_0x574f30(0x378)]='liveshare.terminate',_0x1e4070['MSG_FOR_ERROR']=_0x574f30(0x39b),_0x1e4070[_0x574f30(0x34e)]=_0x574f30(0x272),_0x1e4070[_0x574f30(0x1c2)]=_0x574f30(0x213),_0x1e4070['UPDATE_PERMISSION_OBJ']=_0x574f30(0x20d),_0x1e4070['SHOULD_CLOSE_CONN']=_0x574f30(0x1bf),_0x1e4070[_0x574f30(0x2b6)]=_0x574f30(0x3cf),_0x1e4070;}({});var name='@univerjs-pro/collaboration',version=_0x151f3e(0x27e);const COLLABORATION_PLUGIN_CONFIG_KEY=_0x151f3e(0x27d),configSymbol=Symbol(COLLABORATION_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let RevisionController=class RevisionController extends _univerjs_core[_0x151f3e(0x3d1)]{constructor(_0x19a647){const _0x5a2059=_0x151f3e;super(),this[_0x5a2059(0x1e5)]=_0x19a647,[RevertRevisionMutation][_0x5a2059(0x3b5)](_0x3697eb=>this['_commandService'][_0x5a2059(0x2af)](_0x3697eb));}};RevisionController=__decorate([__decorateParam(0x0,_univerjs_core[_0x151f3e(0x3cc)])],RevisionController);function packNumberMap(_0x21d79b){const _0x4289d4=_0x151f3e,_0x43a371={},_0xb1de2e={},_0x33bce5=Object[_0x4289d4(0x2d4)](_0x21d79b)['map'](Number)[_0x4289d4(0x3d0)]((_0x4fa773,_0x287ceb)=>_0x4fa773-_0x287ceb);if(_0x33bce5['length']===0x0)return _0x43a371;for(const _0x3c0bcb of _0x33bce5){const _0x29b686=_0x21d79b[_0x3c0bcb];if(!_univerjs_core[_0x4289d4(0x1a6)][_0x4289d4(0x305)](_0x29b686))continue;const _0xab7789=String(_0x29b686);if(!_0xb1de2e[_0xab7789])_0xb1de2e[_0xab7789]=[];_0xb1de2e[_0xab7789]['push'](_0x3c0bcb);}for(const [_0xedcbfc,_0x21d924]of Object['entries'](_0xb1de2e)){const _0x5114f7=[];if(_0x21d924[_0x4289d4(0x1ba)]===0x0)continue;let _0x39a134=_0x21d924[0x0],_0x398d46=_0x39a134;for(let _0x193293=0x1;_0x193293<_0x21d924['length'];_0x193293++){const _0x5f03b8=_0x21d924[_0x193293];if(_0x5f03b8!==_0x398d46+0x1){if(_0x39a134===_0x398d46)_0x5114f7[_0x4289d4(0x1c6)](_0x39a134);else _0x5114f7[_0x4289d4(0x1c6)]([_0x39a134,_0x398d46]);_0x39a134=_0x5f03b8;}_0x398d46=_0x5f03b8;}if(_0x39a134===_0x398d46)_0x5114f7[_0x4289d4(0x1c6)](_0x39a134);else _0x5114f7[_0x4289d4(0x1c6)]([_0x39a134,_0x398d46]);if(_0x5114f7[_0x4289d4(0x1ba)]===0x1&&typeof _0x5114f7[0x0]===_0x4289d4(0x1da))_0x43a371[_0xedcbfc]=_0x5114f7[0x0];else _0x43a371[_0xedcbfc]=_0x5114f7;}return _0x43a371;}function unpackNumberMap(_0x52ccb0){const _0x422179=_0x151f3e,_0x2d7dbc={};for(const [_0x364d44,_0x380d7e]of Object[_0x422179(0x2e7)](_0x52ccb0)){const _0x16b096=Number(_0x364d44);if(typeof _0x380d7e===_0x422179(0x1da)){_0x2d7dbc[_0x380d7e]=_0x16b096;continue;}for(const _0x39301e of _0x380d7e)if(Array['isArray'](_0x39301e)){const [_0x533c57,_0x321cbe]=_0x39301e;for(let _0x1a7b79=_0x533c57;_0x1a7b79<=_0x321cbe;_0x1a7b79++)_0x2d7dbc[_0x1a7b79]=_0x16b096;}else _0x2d7dbc[_0x39301e]=_0x16b096;}return _0x2d7dbc;}const transformRefStyleFromCells=_0x3f2686=>{const _0x1c6eb0=_0x151f3e,_0x5c995d={};if(!_0x3f2686)return{'cellValue':_0x3f2686,'styleRefMap':void 0x0};const _0x20c09b=[];return{'cellValue':new _univerjs_core[(_0x1c6eb0(0x2e2))](_univerjs_core[_0x1c6eb0(0x1a6)][_0x1c6eb0(0x3ce)](_0x3f2686))[_0x1c6eb0(0x22f)]((_0x4e0126,_0x2a0349,_0x430153)=>{const _0x120e80=_0x1c6eb0,_0x5a2734=_0x430153&&_0x430153['s'];if(_0x5a2734){if(typeof _0x5a2734===_0x120e80(0x2ef)){const _0x3b7aac=JSON[_0x120e80(0x2c5)](_0x5a2734),_0x1763ed=_0x20c09b[_0x120e80(0x1b3)](_0x59f9e5=>_0x59f9e5===_0x3b7aac);if(_0x1763ed>-0x1)_0x430153['s']=''+_0x1763ed;else{const _0x5166d2=_0x20c09b[_0x120e80(0x1c6)](_0x3b7aac)-0x1;_0x5c995d[_0x5166d2]=_0x5a2734,_0x430153['s']=''+_0x5166d2;}}}})['getMatrix'](),'styleRefMap':_0x5c995d};},transformCellsFromRefStyle=(_0x3e4aca,_0x5be928)=>{const _0x1cf924=_0x151f3e;if(!_0x3e4aca||!_0x5be928)return _0x3e4aca;return new _univerjs_core[(_0x1cf924(0x2e2))](_univerjs_core[_0x1cf924(0x1a6)][_0x1cf924(0x3ce)](_0x3e4aca))['forValue']((_0x30e195,_0xe4328e,_0x296ff9)=>{const _0x12c844=_0x1cf924,_0x2dbe7d=_0x296ff9&&_0x296ff9['s'];if(_0x2dbe7d){if(typeof _0x2dbe7d===_0x12c844(0x208)){const _0x59b87a=_0x5be928[_0x2dbe7d];if(_0x59b87a)_0x296ff9['s']=_0x59b87a;}}})[_0x1cf924(0x1c4)]();},COMPRESS_MUTATION_APPLY=(0x0,_univerjs_core[_0x151f3e(0x386)])(_0x151f3e(0x1ca)),COMPRESS_MUTATION_SEND=(0x0,_univerjs_core[_0x151f3e(0x386)])(_0x151f3e(0x35f));var CompressMutationService=class{constructor(){const _0x5df841=_0x151f3e;_defineProperty(this,_0x5df841(0x3e5),new _univerjs_core[(_0x5df841(0x249))]({'COMPRESS_MUTATION_APPLY':COMPRESS_MUTATION_APPLY,'COMPRESS_MUTATION_SEND':COMPRESS_MUTATION_SEND})),this['_init']();}[_0x151f3e(0x19c)](){const _0x49c603=_0x151f3e;this[_0x49c603(0x3e5)][_0x49c603(0x377)](this[_0x49c603(0x3e5)]['getInterceptPoints']()[_0x49c603(0x1ca)],{'priority':-0x1,'handler':_0x24008d=>_0x24008d}),this['interceptor'][_0x49c603(0x377)](this['interceptor'][_0x49c603(0x3cd)]()[_0x49c603(0x35f)],{'priority':-0x1,'handler':_0x1cc86e=>_0x1cc86e}),this[_0x49c603(0x383)]();}[_0x151f3e(0x383)](){const _0x1773e6=_0x151f3e;this[_0x1773e6(0x3e5)]['intercept'](this[_0x1773e6(0x3e5)][_0x1773e6(0x3cd)]()[_0x1773e6(0x1ca)],{'handler':(_0x245bdd,_0x326911,_0x4ab9c1)=>{const _0x3ef2f0=_0x1773e6;if(!_0x245bdd)return _0x4ab9c1(_0x245bdd);return _0x4ab9c1(_0x245bdd[_0x3ef2f0(0x284)](_0xc7e10e=>{const _0x4d15e0=_0x3ef2f0;if(_0xc7e10e[_0x4d15e0(0x1a4)][_0x4d15e0(0x353)])return _0xc7e10e;if(_0xc7e10e['id']===_univerjs_sheets[_0x4d15e0(0x203)]['id']){const _0x29923f=_0xc7e10e[_0x4d15e0(0x1a4)];if(!_0x29923f[_0x4d15e0(0x3c0)])return _0xc7e10e;const _0x263cbc=transformCellsFromRefStyle(_0x29923f[_0x4d15e0(0x30b)],_0x29923f[_0x4d15e0(0x3c0)]);return{..._0xc7e10e,'params':{..._0x29923f,'cellValue':_0x263cbc}};}if(_0xc7e10e['id']===_univerjs_sheets[_0x4d15e0(0x3f2)]['id']||_0xc7e10e['id']===_univerjs_sheets[_0x4d15e0(0x3a5)]['id'])return this[_0x4d15e0(0x3fd)](_0xc7e10e);return _0xc7e10e;}));}}),this[_0x1773e6(0x3e5)][_0x1773e6(0x377)](this[_0x1773e6(0x3e5)][_0x1773e6(0x3cd)]()[_0x1773e6(0x35f)],{'handler':(_0x26d419,_0x5b4aec,_0x378916)=>{const _0x10ef9b=_0x1773e6;if(!_0x26d419)return _0x378916(_0x26d419);return _0x378916(_0x26d419[_0x10ef9b(0x284)](_0x42c147=>{const _0x4c5643=_0x10ef9b;if(_0x42c147[_0x4c5643(0x1a4)][_0x4c5643(0x353)])return _0x42c147;if(_0x42c147['id']===_univerjs_sheets[_0x4c5643(0x203)]['id']){const _0x26dbf4=_0x42c147[_0x4c5643(0x1a4)];if(_0x26dbf4[_0x4c5643(0x3c0)])return _0x42c147;return{..._0x42c147,'params':{..._0x26dbf4,...transformRefStyleFromCells(_0x26dbf4[_0x4c5643(0x30b)])}};}else{if(_0x42c147['id']===_univerjs_sheets['InsertSheetMutation']['id'])return this['_handleInsertSheetCompressMutationSend'](_0x42c147,_0x5b4aec);else{if(_0x42c147['id']===_univerjs_sheets[_0x4c5643(0x3f2)]['id']||_0x42c147['id']===_univerjs_sheets['SetWorksheetColWidthMutation']['id'])return this[_0x4c5643(0x367)](_0x42c147);}}return _0x42c147;}));}});}['_handleInsertSheetCompressMutationSend'](_0x482069,_0x53074c){const _0x299dd8=_0x151f3e,_0x15b88b=_0x482069[_0x299dd8(0x1a4)],{unitId:_0x3b20c9,sheet:_0x355411}=_0x15b88b,_0x49f8af=_0x53074c[_0x299dd8(0x25c)](_0x3b20c9,_univerjs_core[_0x299dd8(0x2d6)]['UNIVER_SHEET']);if(!_0x49f8af)return _0x482069;const _0x1c25b1={};return new _univerjs_core['ObjectMatrix'](_0x355411[_0x299dd8(0x39d)])[_0x299dd8(0x22f)]((_0x4dab61,_0x4d64e5,_0xd8088)=>{const _0x23a866=_0x299dd8;if(_0xd8088&&_0xd8088['s']&&typeof _0xd8088['s']===_0x23a866(0x208)&&!_0x1c25b1[_0xd8088['s']])_0x1c25b1[_0xd8088['s']]=_0x49f8af['getStyles']()[_0x23a866(0x368)](_0xd8088['s']);}),{..._0x482069,'params':{..._0x15b88b,'styles':_0x1c25b1}};}[_0x151f3e(0x367)](_0xd17ca9){const _0x52a8c2=_0x151f3e,_0x253184=_0xd17ca9[_0x52a8c2(0x1a4)];let _0x372c26,_0x400583;_0x52a8c2(0x317)in _0x253184?(_0x372c26=_0x52a8c2(0x317),_0x400583=_0x253184[_0x52a8c2(0x317)]):(_0x372c26=_0x52a8c2(0x3d8),_0x400583=_0x253184['colWidth']);if(typeof _0x400583===_0x52a8c2(0x1da))return _0xd17ca9;const _0x17aa13=packNumberMap(_0x400583);return{..._0xd17ca9,'params':{..._0x253184,[_0x372c26]:_0x17aa13,'compress':!![]}};}[_0x151f3e(0x3fd)](_0x28ea31){const _0x26f10c=_0x151f3e,_0x4a718b=_0x28ea31[_0x26f10c(0x1a4)];if(!('compress'in _0x4a718b)||!_0x4a718b[_0x26f10c(0x326)])return _0x28ea31;let _0x5e7afa,_0x52fd4d;if(_0x26f10c(0x317)in _0x4a718b)_0x5e7afa=_0x26f10c(0x317),_0x52fd4d=_0x4a718b['rowHeight'];else{if(_0x26f10c(0x3d8)in _0x4a718b)_0x5e7afa=_0x26f10c(0x3d8),_0x52fd4d=_0x4a718b[_0x26f10c(0x3d8)];else return _0x28ea31;}if(typeof _0x52fd4d===_0x26f10c(0x1da))return _0x28ea31;const _0x2cb325=unpackNumberMap(_0x52fd4d);return{..._0x28ea31,'params':{..._0x4a718b,[_0x5e7afa]:_0x2cb325}};}};const SINGLE_SNAPSHOT_MUTATIONS=new Set([_univerjs_sheets[_0x151f3e(0x2a3)]['id'],_univerjs_sheets[_0x151f3e(0x287)]['id'],_univerjs_sheets[_0x151f3e(0x2c7)]['id']]),SINGLE_HISTORY_MUTATIONS=new Set([_univerjs_sheets[_0x151f3e(0x2a3)]['id'],_univerjs_sheets[_0x151f3e(0x287)]['id'],RevertRevisionMutation['id'],_univerjs_sheets[_0x151f3e(0x240)]['id'],_univerjs_sheets[_0x151f3e(0x1a8)]['id'],_univerjs_sheets[_0x151f3e(0x2eb)]['id'],_univerjs_sheets[_0x151f3e(0x201)]['id'],_univerjs_sheets[_0x151f3e(0x24a)]['id'],CreateUnitMutation['id'],_univerjs_sheets[_0x151f3e(0x390)]['id'],_univerjs_sheets[_0x151f3e(0x269)]['id'],_univerjs_sheets[_0x151f3e(0x204)]['id'],_univerjs_sheets[_0x151f3e(0x2c7)]['id'],_univerjs_sheets['SetTabColorMutation']['id'],_univerjs_sheets[_0x151f3e(0x35b)]['id'],_univerjs_sheets[_0x151f3e(0x1b2)]['id'],_univerjs_sheets[_0x151f3e(0x219)]['id'],_univerjs_sheets[_0x151f3e(0x26a)]['id'],_univerjs_sheets['SetWorksheetPermissionPointsMutation']['id']]);let RevisionService=class RevisionService{constructor(_0x31ae04){this['_univerInstanceService']=_0x31ae04;}[_0x151f3e(0x2dc)](_0x36fc73){const _0x4f81f6=_0x151f3e,_0x54d957=this[_0x4f81f6(0x32a)][_0x4f81f6(0x25c)](_0x36fc73);if(!_0x54d957)throw new Error(_0x4f81f6(0x252)+_0x36fc73+'.');return _0x54d957[_0x4f81f6(0x275)]();}[_0x151f3e(0x223)](_0x740e51){const _0xfbf0a8=_0x151f3e,_0x4596d9=this[_0xfbf0a8(0x32a)][_0xfbf0a8(0x25c)](_0x740e51);if(!_0x4596d9)throw new Error(_0xfbf0a8(0x2f6)+_0x740e51+'.');return _0x4596d9[_0xfbf0a8(0x3ac)](),_0x4596d9[_0xfbf0a8(0x275)]();}[_0x151f3e(0x248)](_0x49bb1b,_0x2788c0){const _0x5bb847=_0x151f3e,_0x8df899=this[_0x5bb847(0x32a)][_0x5bb847(0x25c)](_0x49bb1b);if(_0x8df899)_0x8df899[_0x5bb847(0x2e6)](_0x2788c0);}};RevisionService=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService'])],RevisionService);const textEncoder=new TextEncoder(),textDecoder=new TextDecoder();function _0x3c79(){const _0xf43e35=['SetWorksheetNameMutation\x20conflicts\x20with\x20InsertSheetMutation\x20on\x20the\x20same\x20worksheet\x20ID.','queryObjectMatrix','object','Workbook\x20metadata\x20is\x20not\x20available','ERROR','has','univer.mutation.revert-version','UpdateRuleType','add\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitID:\x20',']\x20took\x20a\x20long\x20time:\x20','IConfigService','workbook','144MjXKOk','removeRows','rules','isTransformMutationsSuccess','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','generateStringWithSequence','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','[Error]\x20m2Length:\x20','sheets','handler','AddWorksheetMergeMutation','isDefine','CreateUnitMutation','\x20blocks','min','touchDependencies','generateTemporarySnap','cellValue','link','colId','pluginName','SetSelectionsOperation','baseRev','parseProtocolChangeset','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','symbol','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','toPrimitive','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','rowHeight','JSONX','Set-range-values\x20mutation\x20and\x20move-range\x20mutation\x20have\x20an\x20overlapping\x20range.','isTransformMutationsWithChangesetFailure','SetColVisibleMutation','DeleteConditionalRuleMutation','measureSyncOperation','handleBaseRemoveRange','6MRohZQ','Injector','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','EN_US','filter','uuidv4','compress','SetRowVisibleMutation','b64DecodeUnicode','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','_univerInstanceService','objects','all','getSheetBlocksFromSnapshot','transformMutations','InsertColCommand','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','transformWorkbookDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','[TransformService]:\x20_leftInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','decode','registerDependencies','getSheets','move\x20col\x20is\x20conflict\x20with\x20move\x20col','0123456789','parse','[Error]\x20m1\x20origin\x20mutation\x20','GRID','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.','SINGLE_HISTORY_MUTATIONS','remove\x20row\x20is\x20conflict\x20with\x20move\x20row','clear','SetColDataMutation','endRow','changeset_rej','function','MoveConditionalRuleMutation','[TransformService]:\x20changesets\x20revisions\x20miss\x20match.\x20The\x20\x27baseRev\x27\x20of\x20c2\x20is\x20','createUnit','toISOString','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20name','Plugin','saveSheet','right-loop1','PERMISSION_REJ','UpdateCommentMutation','endColumn','[Error]\x20m2\x20origin\x20mutation\x20','insert\x20col\x20is\x20conflict\x20with\x20move\x20col','__splitChunk__','blockID','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','transformPosition','encode','ceil','left','remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','SetWorkbookNameMutation','fromOrder','transform','UPDATE_CURSOR','COMPRESS_MUTATION_SEND','CHANGESET_ACK','merge','registerTransformAlgorithm','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','actualRow','ruleId','debug','_handleCompressNumberMapMutationSend','get','Two\x20move-range\x20mutations\x20have\x20an\x20overlapping\x20range.','handleBaseInsertRange','transformMutation','CHANGESET_REJ','EmptyMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20col','univer.mutation.create-unit','add','DocTransformController','foreach','targetRange','rowData','rev','insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible','intercept','LIVESHARE_TERMINATE','ApplyCompressedChangesetsSync','LIVESHARE_REQUEST_HOST','Two\x20mutation\x20have\x20the\x20same\x20worksheetId!','Sheet\x20order\x20mismatch!\x20','sheet','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','Remove-cols\x20has\x20conflicts\x20with\x20move-range','SetNumfmtMutation','Range','move\x20row\x20is\x20conflict\x20with\x20move\x20row','_initSetRangeValues','getRealRange','SetWorksheetRowIsAutoHeightMutation','createInterceptorKey','title','moveMatrixArray','version','after','type','SetSheetsFilterCriteriaMutation','formula1','_snapshotServerService','LIVESHARE_OPERATION','SetWorksheetNameMutation','SUBMIT_CHANGESET','onStarting','SetDrawingApplyMutation','insert\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','MoveColsCommand','univer.snapshot-server-service','116404mLTKDM','RevertRevisionMutation\x20conflicts\x20with\x20other\x20mutations!','SetRowDataMutation','error_msg','[generateTemporarySnap()]:\x20Sheet\x20order\x20mismatch','cellData','RemoveHyperLinkMutation','[debug]\x20transformChangesets.\x20Date\x20now:\x20','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','some','slice','RANGE','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','SetWorksheetColWidthMutation','moveRows','unitId','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20col','update_cursor','MUTATION','incrementRev','columnData','[GetBlocks]','set','[ParseBlocks]','SetTabColorMutation','move\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','RichTextEditingMutation','changeset_ack','forEach','any','textRanges','\x20Block\x20Metas:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge','_injector','getUnitOnRev','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','insert\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','uid','MoveRangeMutation','styleRefMap','formula2','UpdateHyperLinkRefMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','getDoc','spliceArray','deserializeRangeWithSheetWithCache','\x20and\x20the\x20\x27revision\x27\x20of\x20c1\x20is\x20','singleReferenceToGrid','unitID','serializeRange','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row','ICommandService','getInterceptPoints','deepClone','uniscript.run','sort','Disposable','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20comment','isRangesEqual','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','saveDoc','[debug]\x20m2Length:\x20','TransformService','colWidth','[SnapshotService]:\x20failed\x20to\x20get\x20sheet\x20blocks.\x20','reportUnitRoutingStats','blocks','[debug]\x20_rightInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','ReorderRangeMutation','reorder\x20range\x20is\x20conflict\x20with\x20reorder\x20range','Inject','saveSheetBlock','_transformMap','SetConditionalRuleMutation','rule','syncExecuteCommand','interceptor','UNIT_DELETE','772326pnWAVP','unshift','Two\x20SetWorksheetOrderMutation\x20have\x20conflicts!','ref','getSliceDataAndCellCountByRows','JSON1','getUnitId','left-loop1','round','fetch_missing','[debug]\x20m1Length:\x20','SetWorksheetRowHeightMutation','actions','Error\x20saving\x20block\x20for\x20sheet\x20','includes','\x20Sheet\x20Metas:\x20','UNIVER_DOC','remove\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','InsertColMutation','_revisionService','changeset_should_retry','from','_handleDecompressNumberMapMutationApply','DrawingApplyType','sourceRange','[TransformService]:\x20_leftInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','parseProtocolCommand','selections','LIVESHARE_FETCH_OPERATIONS','actualColumn','find','_init','move\x20col\x20is\x20conflict\x20with\x20move\x20range','COLUMN','drawingIds','1379630hNzqXd','comment','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','params','byteLength','Tools','m2Prime','RemoveRowMutation','40113ECkZJU','FETCH_MISSING','intersects','[Error]\x20m1Length:\x20','Missing\x20workbook\x20meta\x20in\x20snapshot','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','setValue','isTransformChangesetsSuccess','sheetOrder','AddWorksheetProtectionMutation','findIndex','transformWorkbookDataToSnapshot','[Error]\x20_logCurrentTransformMutations\x20','range','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20row','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20order','transformSnapshotToWorkbookData','length','68630ALOgEX','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20col','mutations','revision','should_close_conn','endOffset','message','COMMENT_UPDATE','values','getMatrix','originalMeta','push','warn','[generateTemporarySnap()]:\x20Sheet\x20block\x20mismatch','right-loop2','COMPRESS_MUTATION_APPLY','startColumn','UniverCollaborationPlugin','column','columnCount','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','row','isArray','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','reduce','createIdentifier','getResources','liveshare.operation','USERS_ENTER','RevertRevisionMutation','Rectangle','number','Block\x20not\x20found','packageName','resources','parse\x20blocks\x20start,\x20total\x20','value','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20comment','handleCommonDefaultRangeChangeWithEffectRefCommands','rowCount','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col','remove\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','_commandService','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20row','\x20for\x20sheet\x20','startRow','UniverLicensePlugin','[SnapshotService]:\x20request\x20snapshot\x20error!','Sheet\x20block\x20mismatch!\x20','\x20(1)','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','insert\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','getSheetId','AddCommentMutation','MoveRowsMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','MoveRowsCommand','generateRandomId','\x20ms','[debug]\x20_leftInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','transformSnapshotToDocumentData','SetWorksheetRowAutoHeightMutation','_rightInclineTransformMutations','parseProtocolMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20sheet','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20column',']\x20start\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','_configService','primary','SetRowHiddenMutation','size','SetRangeValuesMutation','SetWorksheetHideMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','remove\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','parseChangesetToProtocol','string','GetBlocks','defineProperty','parentId','_logOriginTransformMutations','update_permission_obj','ErrorCode','isFormulaString','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20row','unit_delete','CHANGESET_SHOULD_RETRY','comment_update','_loopLimitTime','\x20Sheet\x20Order:\x20','body','CommandType','fill','SetWorksheetProtectionMutation','every','drawingId','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.\x20','_config','.\x20Date\x20now:\x20','Failed\x20to\x20get\x20sheet\x20block:\x20','isTransformMutationsFailure','_transformMutationsCache','right','incrementRevOfUnit','SheetTypes','rotateRange','[Error]\x20_logOriginTransformMutations\x20','UpdateHyperLinkMutation','commentId','insert\x20row\x20is\x20conflict\x20with\x20remove\x20row','startOffset','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','users_leave','[debug]\x20c2:\x20','RemoveRowCommand','forValue','delete','now','_leftInclineTransformMutations','handleBaseMoveRowsCols','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','RemoveColCommand','total\x20','saveSnapshot','UNIVER_SHEET','call','SETTING','setConfig','toOrder','indexOf','SetRangeProtectionMutation','RANGE_TYPE','SetFrozenMutation','LIVESHARE_NEW_HOST','default','handleDefaultRangeChangeWithEffectRefCommands','name','set\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','insert\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt',']\x20end,\x20took\x20','setRevOfUnit','InterceptorManager','SetColHiddenMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','decorate','getOwnPropertyDescriptor','AddConditionalRuleMutation','hasOwnProperty','data','IUniverInstanceService','[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitId:\x20','getValue','sequenceNodesBuilder','cfId','isMergedMainCell','constructor','_logService','move\x20row\x20is\x20conflict\x20with\x20move\x20range','RemoveWorksheetMergeMutation','RemoveDataValidationMutation','getUnit','charCodeAt','getDataRange','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','AddDataValidationMutation','univer-pro.collaboration.transform-service','_logCurrentTransformMutations','toFixed','Algorithm\x20error,\x20the\x20changeset\x20does\x20not\x20exist!','SetWorksheetOrderMutation','DeleteWorksheetProtectionMutation','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','index','transformChangesets','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.','InsertRowMutation','permission_rej','set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','blockMeta','getRev','_resourceManagerService','transformDocumentDataToSnapshot','isTransformMutationFailure','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','isMerged','rowsAutoHeightInfo','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','collaboration.config','0.21.0','shift','LocaleType','error','order','code','map','9OjsjAI','ranges','RemoveSheetMutation','SetSheetsFilterRangeMutation','toStringTag','m1Prime','sync\x20[','Missing\x20sheet\x20block\x20','splice','transformDocumentDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','UNIVER_COLLABORATION_PLUGIN','REFERENCE','AddRangeProtectionMutation','move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','left-loop2','realDeleteValue','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row','payload','set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','removeColumns','doc','DeleteCommentMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','transformMutationsWithChangeset','move\x20range\x20is\x20conflict\x20with\x20reorder\x20range','[generateTemporarySnap()]','insertMatrixArray','ITransformService','26566bYgwgc','ReCalcSheetsFilterMutation','InsertSheetMutation','InsertRowCommand','isError','RemoveSheetsFilterMutation','block','col','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt','nodeType','insert\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','ILogService','registerCommand','criteria','RemoveNumfmtMutation','_transformService','concat','SnapshotSaveService','_snapshotService','UNISCRIPT_RUN','prototype','UpdateCommentRefMutation','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge','_compressMutationService','\x20already\x20exists.','moveColumns','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','Two\x20mutation\x20need\x20have\x20the\x20same\x20unitId!','MoveColsMutation','SnapshotService','EmptyMutationInfo','end','liveshare.new_host','stringify','submit_changeset','CopyWorksheetEndMutation','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20range','fetchThroughInterceptors','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','AddHyperLinkMutation','before','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','UpdateDataValidationMutation','step','[transformWorkbookDataToSnapshot()]','2792510ezROCx','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','keys','start','UniverInstanceType','[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!','isTransformChangesetsFailure','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','max','getCurrentRevOfUnit','getSnapshot',']:\x20','iterator','b64EncodeUnicode','loadDoc','ObjectMatrix','\x20Sheet\x20raw:\x20',']\x20failed\x20after\x20','ISnapshotServerService','setRev','entries','async\x20[','subUnitId','flat','RemoveColMutation','ErrorType'];_0x3c79=function(){return _0xf43e35;};return _0x3c79();}function encodeWorksheetOtherMetas(_0xcf629e){const _0x3480a4=_0x151f3e,_0x4869f6=['id','name',_0x3480a4(0x1e2),_0x3480a4(0x1ce),_0x3480a4(0x39d)],_0x9fb609={};return Object[_0x3480a4(0x2d4)](_0xcf629e)[_0x3480a4(0x3b5)](_0x21ed76=>{const _0x1a4248=_0x3480a4;if(!_0x4869f6[_0x1a4248(0x3f5)](_0x21ed76))_0x9fb609[_0x21ed76]=_univerjs_core[_0x1a4248(0x1a6)][_0x1a4248(0x3ce)](_0xcf629e[_0x21ed76]);}),textEncoder['encode'](JSON[_0x3480a4(0x2c5)](_0x9fb609));}function encodeWorkbookOtherMetas(_0x411930){const _0x33a576=_0x151f3e,_0xb82270=['id',_0x33a576(0x375),_0x33a576(0x244),_0x33a576(0x1b1),_0x33a576(0x302),_0x33a576(0x1dd)],_0x4a68ab={};return Object[_0x33a576(0x2d4)](_0x411930)[_0x33a576(0x3b5)](_0x3e84c8=>{const _0x340a77=_0x33a576;if(!_0xb82270[_0x340a77(0x3f5)](_0x3e84c8))_0x4a68ab[_0x3e84c8]=_univerjs_core['Tools']['deepClone'](_0x411930[_0x3e84c8]);}),textEncoder[_0x33a576(0x357)](JSON[_0x33a576(0x2c5)](_0x4a68ab));}function encodeDocOriginalMeta(_0x5d74d2){const _0x2516bc=_0x151f3e,_0x51ae99=['id',_0x2516bc(0x375),'title','resources'],_0x2fddc4={};return Object['keys'](_0x5d74d2)[_0x2516bc(0x3b5)](_0x4e351a=>{const _0x4a28b4=_0x2516bc;if(!_0x51ae99['includes'](_0x4e351a))_0x2fddc4[_0x4e351a]=_univerjs_core[_0x4a28b4(0x1a6)][_0x4a28b4(0x3ce)](_0x5d74d2[_0x4e351a]);}),textEncoder[_0x2516bc(0x357)](JSON['stringify'](_0x2fddc4));}function decodeWorksheetOtherMetas(_0x1625b9){const _0x17a7cc=_0x151f3e;if(typeof _0x1625b9===_0x17a7cc(0x208))return JSON[_0x17a7cc(0x33a)](b64DecodeUnicode(_0x1625b9));return JSON[_0x17a7cc(0x33a)](textDecoder['decode'](_0x1625b9));}function decodePartOfCellData(_0x4202e5){const _0x238e76=_0x151f3e;if(_0x4202e5 instanceof Uint8Array){let _0x4029d4=textDecoder['decode'](_0x4202e5);const _0x4e2c9a=JSON[_0x238e76(0x33a)](_0x4029d4);return _0x4029d4=null,_0x4e2c9a;}return _0x4202e5;}function decodeDocOriginalMeta(_0x4a78b3){const _0x1072e2=_0x151f3e;if(typeof _0x4a78b3==='string')return JSON[_0x1072e2(0x33a)](b64DecodeUnicode(_0x4a78b3));return JSON[_0x1072e2(0x33a)](textDecoder[_0x1072e2(0x335)](_0x4a78b3));}const FRAGMENT_CELL_COUNT=0x100*0x14*0x14,MIN_BLOCK_SIZE=0x1*0x400*0x400;function splitCellDataToBlocks(_0x5c5140,_0x4b77f0=FRAGMENT_CELL_COUNT,_0x57d0db=MIN_BLOCK_SIZE){const _0x5b9627=_0x151f3e,_0x590180=Date[_0x5b9627(0x231)](),_0xa3d275=new _univerjs_core['ObjectMatrix'](_0x5c5140),{startRow:_0x299470,endRow:_0x1ac32e,startColumn:_0x410c21,endColumn:_0x388459}=_0xa3d275[_0x5b9627(0x384)](),_0x23ad41=[],_0x1c1f69=Math[_0x5b9627(0x358)](_0x4b77f0/(_0x388459-_0x410c21+0x1));let _0x228a3a=_0x299470,_0x9c4513=null,_0x243f6d=null,_0x47f65e=0x0,_0x1b2a56=0x0,_0x59d672=0x0,_0x5d544e=0x0;while(_0x228a3a<=_0x1ac32e){const _0x31c9b0=Math['min'](_0x228a3a+_0x1c1f69-0x1,_0x1ac32e),{sliceData:_0x15617d,cellCount:_0x4f00d4}=_0xa3d275[_0x5b9627(0x3eb)](_0x228a3a,_0x31c9b0);if(_0x4f00d4===0x0){if(_0x31c9b0>=_0x1ac32e&&_0x243f6d!==null){const _0x2f6f81=serializeCellDataSlice(_0x243f6d);_0x23ad41[_0x5b9627(0x1c6)]({'id':(0x0,_univerjs_core[_0x5b9627(0x1f4)])(0x13,_0x5b9627(0x339)),'startRow':_0x47f65e,'endRow':_0x1ac32e,'data':_0x2f6f81});}_0x228a3a=_0x31c9b0+0x1;continue;}if(_0x243f6d===null)_0x243f6d=_0x15617d,_0x47f65e=_0x228a3a;else _0x243f6d['concatRows'](_0x15617d);_0x1b2a56+=_0x4f00d4,_0x5d544e+=_0x4f00d4;if(_0x9c4513===null)_0x59d672=serializeCellDataSlice(_0x243f6d)[_0x5b9627(0x1a5)],_0x9c4513=_0x59d672/_0x1b2a56;else _0x59d672+=_0x4f00d4*_0x9c4513;if(_0x31c9b0>=_0x1ac32e||_0x59d672>=_0x57d0db){const _0x4211a3=serializeCellDataSlice(_0x243f6d);_0x23ad41[_0x5b9627(0x1c6)]({'id':(0x0,_univerjs_core[_0x5b9627(0x1f4)])(0x13,_0x5b9627(0x339)),'startRow':_0x47f65e,'endRow':_0x31c9b0,'data':_0x4211a3}),_0x243f6d=null,_0x47f65e=0x0,_0x1b2a56=0x0,_0x59d672=0x0;}if(_0x31c9b0>=_0x1ac32e)break;_0x228a3a=_0x31c9b0+0x1;}return{'blocks':_0x23ad41,'totalCells':_0x5d544e,'totalTime':Date[_0x5b9627(0x231)]()-_0x590180};}function serializeCellDataSlice(_0x4c98ad){const _0x132ebb=_0x151f3e,_0x1af043=_0x4c98ad[_0x132ebb(0x1c4)]();return textEncoder[_0x132ebb(0x357)](JSON[_0x132ebb(0x2c5)](_0x1af043));}function mapDocumentTypeToUniverInstanceType(_0x25a5b4){return _0x25a5b4;}function b64EncodeUnicode(_0x1b8830){const _0x1e819a=_0x151f3e,_0x51f6aa=textEncoder[_0x1e819a(0x357)](_0x1b8830);let _0x53a840='';for(let _0xfb9b27=0x0;_0xfb9b27<_0x51f6aa[_0x1e819a(0x1ba)];_0xfb9b27++)_0x53a840+=String['fromCharCode'](_0x51f6aa[_0xfb9b27]);return btoa(_0x53a840);}function b64DecodeUnicode(_0x235445){const _0x1d63b9=_0x151f3e,_0x5a3e19=atob(_0x235445),_0x564e12=_0x5a3e19[_0x1d63b9(0x1ba)];let _0x39f184=new Uint8Array(_0x564e12);for(let _0x236a87=0x0;_0x236a87<_0x564e12;_0x236a87++)_0x39f184[_0x236a87]=_0x5a3e19[_0x1d63b9(0x25d)](_0x236a87);const _0x143956=textDecoder['decode'](_0x39f184);return _0x39f184=null,_0x143956;}async function limitConcurrencyTasks({tasks:_0xb66a84,handleTaskResult:_0x3ca6b0,limit:limit=0xa,options:options={'retryCount':0x3,'retryDelay':0xc8},onError:_0x57d59f}){const _0x53e30a=_0x151f3e;if(_0xb66a84['length']===0x0)return;const {retryCount:_0x2c1da,retryDelay:_0x2ab0e5}=options,_0x422e41=_0x4cfc66=>new Promise(_0x34107a=>setTimeout(_0x34107a,_0x4cfc66)),_0x534803=async _0x26b059=>{let _0x49e9a4=0x0;while(!![])try{return await _0x26b059();}catch(_0x462ba1){_0x57d59f===null||_0x57d59f===void 0x0||_0x57d59f(_0x462ba1),_0x49e9a4++;if(_0x49e9a4>_0x2c1da)throw _0x462ba1;await _0x422e41(_0x2ab0e5);}};let _0x4dd1eb=0x0;const _0x286ef3=Array['from']({'length':Math[_0x53e30a(0x308)](limit,_0xb66a84[_0x53e30a(0x1ba)])},async()=>{const _0x5cdfbf=_0x53e30a;while(!![]){const _0x3bcada=_0x4dd1eb++;if(_0x3bcada>=_0xb66a84[_0x5cdfbf(0x1ba)])break;let _0xa5116c=await _0x534803(_0xb66a84[_0x3bcada]);if(_0x3ca6b0)_0x3ca6b0(_0xa5116c);_0xa5116c=null;}});await Promise['all'](_0x286ef3);}async function measureAsyncOperation(_0x4c4fea,_0x878c8,_0xe7dff,_0x1d84eb=0x2710,_0x5950a){const _0x33d506=_0x151f3e,_0x2808c2=performance[_0x33d506(0x231)]();_0xe7dff===null||_0xe7dff===void 0x0||_0xe7dff[_0x33d506(0x366)](_0x33d506(0x2e8)+_0x4c4fea+_0x33d506(0x1fd)+(_0x5950a!==null&&_0x5950a!==void 0x0?_0x5950a:''));try{const _0x21f64a=await _0x878c8(),_0x44eb63=performance['now']()-_0x2808c2;if(_0x44eb63>_0x1d84eb)_0xe7dff['warn'](_0x33d506(0x2e8)+_0x4c4fea+_0x33d506(0x2f7)+_0x44eb63[_0x33d506(0x267)](0x2)+_0x33d506(0x1f5));else _0xe7dff['debug']('async\x20['+_0x4c4fea+_0x33d506(0x247)+_0x44eb63[_0x33d506(0x267)](0x2)+'\x20ms');return _0x21f64a;}catch(_0x50eb17){const _0x273968=performance[_0x33d506(0x231)]()-_0x2808c2;_0xe7dff['error']('async\x20['+_0x4c4fea+_0x33d506(0x2e4)+_0x273968[_0x33d506(0x267)](0x2)+_0x33d506(0x1f5),_0x50eb17);throw _0x50eb17;}}function measureSyncOperation(_0x3c0905,_0x4cde78,_0x52ce7d,_0x1336d9=0x2710,_0xe3193c){const _0x413944=_0x151f3e,_0x459005=performance[_0x413944(0x231)]();_0x52ce7d===null||_0x52ce7d===void 0x0||_0x52ce7d[_0x413944(0x366)](_0x413944(0x28b)+_0x3c0905+_0x413944(0x1fd)+(_0xe3193c!==null&&_0xe3193c!==void 0x0?_0xe3193c:''));try{const _0x3866ba=_0x4cde78(),_0x4438fa=performance[_0x413944(0x231)]()-_0x459005;if(_0x4438fa>_0x1336d9)_0x52ce7d[_0x413944(0x1c7)](_0x413944(0x28b)+_0x3c0905+_0x413944(0x2f7)+_0x4438fa[_0x413944(0x267)](0x2)+_0x413944(0x1f5));else _0x52ce7d[_0x413944(0x366)](_0x413944(0x28b)+_0x3c0905+_0x413944(0x247)+_0x4438fa[_0x413944(0x267)](0x2)+_0x413944(0x1f5));return _0x3866ba;}catch(_0x2c793c){const _0x14421a=performance[_0x413944(0x231)]()-_0x459005;_0x52ce7d['error'](_0x413944(0x28b)+_0x3c0905+']\x20failed\x20after\x20'+_0x14421a[_0x413944(0x267)](0x2)+_0x413944(0x1f5),_0x2c793c);throw _0x2c793c;}}async function yieldToEventLoop(){await new Promise(_0x22d9b6=>{const _0x52afe1=_0x62e3;typeof setImmediate===_0x52afe1(0x344)?setImmediate(_0x22d9b6):setTimeout(_0x22d9b6,0x0);});}async function generateTempDocumentSnapshot(_0x151bd1,_0x2550be,_0x220ad1,_0x37dd3a){const _0x9e4ba3=_0x151f3e;var _0x4965a3;const _0x360de1={'unitID':_0x2550be['id'],'rev':_0x37dd3a,'creator':'','name':(_0x4965a3=_0x2550be[_0x9e4ba3(0x387)])!==null&&_0x4965a3!==void 0x0?_0x4965a3:'','resources':_0x2550be[_0x9e4ba3(0x1dd)]||[],'originalMeta':encodeDocOriginalMeta(_0x2550be)};return{'snapshot':{'unitID':_0x220ad1,'rev':_0x360de1[_0x9e4ba3(0x375)],'type':_univerjs_core['UniverInstanceType'][_0x9e4ba3(0x3f7)],'workbook':void 0x0,'doc':_0x360de1}};}async function generateTemporarySnap(_0x2ef97f,_0x50e0fb,_0x455ba9,_0x2c7df3,_0x407e4c,_0x1a8c49){const _0x24ad58=_0x151f3e,_0x3c9a41={},_0x446c79={};if(!await Promise[_0x24ad58(0x32c)](Object['entries'](_0x50e0fb[_0x24ad58(0x302)])['map'](async([_0x2ab2bb,_0x36064f])=>{const _0x571c03=_0x24ad58;_0x446c79[_0x2ab2bb]={'id':_0x36064f['id'],'type':_univerjs_core[_0x571c03(0x224)]['GRID'],'name':_0x36064f['name'],'rowCount':_0x36064f[_0x571c03(0x1e2)],'columnCount':_0x36064f['columnCount'],'originalMeta':encodeWorksheetOtherMetas(_0x36064f)};if(_0x36064f[_0x571c03(0x39d)]){const {blocks:_0xca8c}=splitCellDataToBlocks(_0x36064f[_0x571c03(0x39d)]),_0x4064a6=await Promise['all'](_0xca8c['map'](_0x2e4931=>_0x407e4c['saveSheetBlock'](_0x2ef97f,{'unitID':_0x455ba9,'type':_univerjs_core[_0x571c03(0x2d6)][_0x571c03(0x238)],'block':_0x2e4931})));if(_0x4064a6[_0x571c03(0x3a1)](_0xa79f35=>{const _0x580935=_0x571c03;var _0x14f744;return((_0x14f744=_0xa79f35[_0x580935(0x281)])===null||_0x14f744===void 0x0?void 0x0:_0x14f744[_0x580935(0x283)])!==_univerjs_protocol[_0x580935(0x20e)]['OK'];}))return![];_0x3c9a41[_0x2ab2bb]={'sheetID':_0x2ab2bb,'blocks':_0x4064a6[_0x571c03(0x284)](_0x4bfa26=>_0x4bfa26['blockID'])};}return!![];})))throw new Error(_0x24ad58(0x33d));const _0x74e1a3=encodeWorkbookOtherMetas(_0x50e0fb),_0x35779a={'unitID':_0x50e0fb['id'],'rev':_0x2c7df3,'creator':'','name':_0x50e0fb['name'],'sheetOrder':_0x50e0fb['sheetOrder'],'sheets':_0x446c79,'blockMeta':_0x3c9a41,'resources':_0x50e0fb[_0x24ad58(0x1dd)]||[],'originalMeta':_0x74e1a3},_0x4b47e8=(_0x18bbe7,_0x4292d3)=>{const _0x2e3e7b=_0x24ad58;return _0x18bbe7['every'](_0x51320=>_0x4292d3[_0x2e3e7b(0x24f)](_0x51320));},_0x1592eb=_0x50e0fb['sheetOrder'][_0x24ad58(0x1ba)],_0x2c8dd2=Object['keys'](_0x35779a['sheets']),_0x70b14f=Object['keys'](_0x35779a[_0x24ad58(0x274)]);if(_0x1592eb!==_0x2c8dd2[_0x24ad58(0x1ba)]||!_0x4b47e8(_0x50e0fb[_0x24ad58(0x1b1)],_0x35779a['sheets'])){_0x1a8c49===null||_0x1a8c49===void 0x0||_0x1a8c49[_0x24ad58(0x281)](_0x24ad58(0x29e),_0x24ad58(0x37c)+_0x455ba9+'\x20'+_0x1592eb+'\x20'+_0x2c8dd2['length']+_0x24ad58(0x215)+JSON[_0x24ad58(0x2c5)](_0x50e0fb['sheetOrder'])+'\x20Sheet\x20Metas:\x20'+JSON[_0x24ad58(0x2c5)](_0x2c8dd2)+'\x20Sheet\x20raw:\x20'+JSON[_0x24ad58(0x2c5)](Object[_0x24ad58(0x2d4)](_0x50e0fb[_0x24ad58(0x302)])));throw new Error(_0x24ad58(0x39c));}if(_0x2c8dd2[_0x24ad58(0x1ba)]!==_0x70b14f[_0x24ad58(0x1ba)]||!_0x4b47e8(_0x2c8dd2,_0x35779a[_0x24ad58(0x274)])||!_0x4b47e8(_0x70b14f,_0x35779a[_0x24ad58(0x302)])){_0x1a8c49===null||_0x1a8c49===void 0x0||_0x1a8c49[_0x24ad58(0x281)](_0x24ad58(0x29e),_0x24ad58(0x1eb)+_0x455ba9+'\x20'+_0x2c8dd2[_0x24ad58(0x1ba)]+'\x20'+_0x70b14f[_0x24ad58(0x1ba)]+_0x24ad58(0x3f6)+JSON[_0x24ad58(0x2c5)](_0x2c8dd2)+_0x24ad58(0x3b8)+JSON[_0x24ad58(0x2c5)](_0x70b14f)+_0x24ad58(0x2e3)+JSON[_0x24ad58(0x2c5)](Object[_0x24ad58(0x2d4)](_0x50e0fb[_0x24ad58(0x302)])));throw new Error(_0x24ad58(0x1c8));}return{'snapshot':{'unitID':_0x455ba9,'rev':_0x35779a[_0x24ad58(0x375)],'type':_univerjs_core['UniverInstanceType'][_0x24ad58(0x238)],'workbook':_0x35779a,'doc':void 0x0}};}async function transformWorkbookDataToSnapshotNoSave(_0x46b055,_0x5b5eae,_0x4482af,_0x5215d0){const _0xa3910=_0x151f3e,_0x3136b2={};if(!await Promise[_0xa3910(0x32c)](Object[_0xa3910(0x2e7)](_0x5b5eae[_0xa3910(0x302)])['map'](async([_0x1188f0,_0x2ae541])=>{const _0x3dd037=_0xa3910;if(_0x2ae541[_0x3dd037(0x39d)]){const {blocks:_0x174292}=splitCellDataToBlocks(_0x2ae541[_0x3dd037(0x39d)]),_0x260949=await Promise[_0x3dd037(0x32c)](_0x174292[_0x3dd037(0x284)](_0x396ae9=>_0x5215d0[_0x3dd037(0x3e0)](_0x46b055,{'unitID':_0x4482af,'type':_univerjs_core[_0x3dd037(0x2d6)][_0x3dd037(0x238)],'block':_0x396ae9})));if(_0x260949['some'](_0x2b52d5=>{const _0x414ad8=_0x3dd037;var _0x1fc8b0;return((_0x1fc8b0=_0x2b52d5[_0x414ad8(0x281)])===null||_0x1fc8b0===void 0x0?void 0x0:_0x1fc8b0[_0x414ad8(0x283)])!==_univerjs_protocol[_0x414ad8(0x20e)]['OK'];}))return![];_0x3136b2[_0x1188f0]={'sheetID':_0x1188f0,'blocks':_0x260949[_0x3dd037(0x284)](_0x5dc192=>_0x5dc192[_0x3dd037(0x354)])};}return!![];})))throw new Error(_0xa3910(0x33d));return _0x3136b2;}async function transformWorkbookDataToSnapshot(_0x535bfd,_0x5805df,_0x14ee20,_0x40c7df,_0x4065e3,_0xadd3ff){const _0x1026d9=_0x151f3e;var _0xed5b50;const _0x453fd7={},_0x4bdea9={};let _0x5d5389=0x0,_0xc37ea8=0x0;const _0x422087=[];for(const _0x96fadd in _0x5805df[_0x1026d9(0x302)]){const _0x28e82b=Date[_0x1026d9(0x231)](),_0x4f5e7c=_0x5805df[_0x1026d9(0x302)][_0x96fadd];_0x4bdea9[_0x96fadd]={'id':_0x4f5e7c['id'],'type':_univerjs_core[_0x1026d9(0x224)][_0x1026d9(0x33c)],'name':_0x4f5e7c['name'],'rowCount':_0x4f5e7c[_0x1026d9(0x1e2)],'columnCount':_0x4f5e7c[_0x1026d9(0x1ce)],'originalMeta':encodeWorksheetOtherMetas(_0x4f5e7c)},_0x453fd7[_0x96fadd]={'sheetID':_0x96fadd,'blocks':[]},_0xc37ea8+=Date[_0x1026d9(0x231)]()-_0x28e82b;if(_0x4f5e7c['cellData']){const {blocks:_0x1a6d68,totalCells:_0x3e8793,totalTime:_0x5b1a52}=splitCellDataToBlocks(_0x4f5e7c['cellData']);_0x5d5389+=_0x3e8793,_0xc37ea8+=_0x5b1a52;const _0x1d41dc=_0x1a6d68[_0x1026d9(0x284)](_0x5e191a=>()=>_0x4065e3['saveSheetBlock'](_0x535bfd,{'unitID':_0x14ee20,'type':_univerjs_core[_0x1026d9(0x2d6)]['UNIVER_SHEET'],'block':_0x5e191a}));_0x422087[_0x1026d9(0x1c6)]((async _0x528ced=>{const _0x3725e3=_0x1026d9;try{await limitConcurrencyTasks({'tasks':_0x1d41dc,'handleTaskResult':_0x331d59=>{const _0x347385=_0x62e3;var _0x3ee204;if(((_0x3ee204=_0x331d59[_0x347385(0x281)])===null||_0x3ee204===void 0x0?void 0x0:_0x3ee204['code'])!==_univerjs_protocol['ErrorCode']['OK'])throw new Error(_0x347385(0x33d));_0x453fd7[_0x528ced]['blocks'][_0x347385(0x1c6)](_0x331d59[_0x347385(0x354)]);},'onError':_0x156303=>{const _0xbacaa3=_0x62e3;_0xadd3ff===null||_0xadd3ff===void 0x0||_0xadd3ff['error'](_0xbacaa3(0x2d1),_0xbacaa3(0x3f4)+_0x528ced+':\x20'+_0x156303);}});}catch(_0x20a16f){throw new Error(_0x3725e3(0x21c)+JSON[_0x3725e3(0x2c5)](_0x20a16f));}})(_0x96fadd));}}await Promise[_0x1026d9(0x32c)](_0x422087);const _0x4a766a=Date[_0x1026d9(0x231)](),_0x22f1dc=encodeWorkbookOtherMetas(_0x5805df),_0x5bb1f0={'unitID':_0x5805df['id'],'rev':_0x40c7df,'creator':'','name':_0x5805df[_0x1026d9(0x244)],'sheetOrder':_0x5805df['sheetOrder'],'sheets':_0x4bdea9,'blockMeta':_0x453fd7,'resources':_0x5805df[_0x1026d9(0x1dd)]||[],'originalMeta':_0x22f1dc},_0x175676=(_0x3ade17,_0x379284)=>{const _0x4ccc3c=_0x1026d9;return _0x3ade17[_0x4ccc3c(0x21a)](_0x571b71=>_0x379284['hasOwnProperty'](_0x571b71));},_0x4e8f99=_0x5805df['sheetOrder'][_0x1026d9(0x1ba)],_0x58f13f=Object[_0x1026d9(0x2d4)](_0x5bb1f0['sheets']),_0x2edd7b=Object[_0x1026d9(0x2d4)](_0x5bb1f0[_0x1026d9(0x274)]);if(_0x4e8f99!==_0x58f13f[_0x1026d9(0x1ba)]||!_0x175676(_0x5805df[_0x1026d9(0x1b1)],_0x5bb1f0['sheets'])){_0xadd3ff===null||_0xadd3ff===void 0x0||_0xadd3ff[_0x1026d9(0x281)](_0x1026d9(0x2d1),_0x1026d9(0x37c)+_0x5805df['id']+'\x20'+_0x4e8f99+'\x20'+_0x58f13f['length']+'\x20Sheet\x20Order:\x20'+JSON['stringify'](_0x5805df[_0x1026d9(0x1b1)])+_0x1026d9(0x3f6)+JSON[_0x1026d9(0x2c5)](_0x58f13f)+'\x20Sheet\x20raw:\x20'+JSON[_0x1026d9(0x2c5)](Object[_0x1026d9(0x2d4)](_0x5805df[_0x1026d9(0x302)])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20order\x20mismatch');}if(_0x58f13f['length']!==_0x2edd7b[_0x1026d9(0x1ba)]||!_0x175676(_0x58f13f,_0x5bb1f0['blockMeta'])||!_0x175676(_0x2edd7b,_0x5bb1f0[_0x1026d9(0x302)])){_0xadd3ff===null||_0xadd3ff===void 0x0||_0xadd3ff[_0x1026d9(0x281)](_0x1026d9(0x2d1),'Sheet\x20block\x20mismatch!\x20'+_0x5805df['id']+'\x20'+_0x58f13f[_0x1026d9(0x1ba)]+'\x20'+_0x2edd7b['length']+_0x1026d9(0x3f6)+JSON['stringify'](_0x58f13f)+_0x1026d9(0x3b8)+JSON['stringify'](_0x2edd7b)+_0x1026d9(0x2e3)+JSON[_0x1026d9(0x2c5)](Object['keys'](_0x5805df[_0x1026d9(0x302)])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20block\x20mismatch');}_0xc37ea8+=Date[_0x1026d9(0x231)]()-_0x4a766a;const _0xf7ecf9={'unitID':_0x14ee20,'rev':_0x5bb1f0[_0x1026d9(0x375)],'type':_univerjs_core[_0x1026d9(0x2d6)][_0x1026d9(0x238)],'workbook':_0x5bb1f0,'doc':void 0x0},_0x3b21e1=await _0x4065e3[_0x1026d9(0x237)](_0x535bfd,{'unitID':_0x14ee20,'type':_univerjs_core['UniverInstanceType'][_0x1026d9(0x238)],'snapshot':_0xf7ecf9});(_0xed5b50=_0x4065e3[_0x1026d9(0x3da)])===null||_0xed5b50===void 0x0||_0xed5b50['call'](_0x4065e3,_0x535bfd,{'unitId':_0x14ee20,'estimatedCells':_0x5d5389,'snapshotTime':Math[_0x1026d9(0x3ef)](_0xc37ea8/0x3e8)});if((0x0,_univerjs_protocol[_0x1026d9(0x2a5)])(_0x3b21e1[_0x1026d9(0x281)])){var _0x3ce0e1,_0x329596;throw new Error(_0x1026d9(0x332)+((_0x3ce0e1=_0x3b21e1['error'])===null||_0x3ce0e1===void 0x0?void 0x0:_0x3ce0e1['code'])+':'+((_0x329596=_0x3b21e1[_0x1026d9(0x281)])===null||_0x329596===void 0x0?void 0x0:_0x329596[_0x1026d9(0x1c1)]));}return{'snapshot':_0xf7ecf9};}async function transformSnapshotToWorkbookData(_0x475033,_0x599aa0,_0xa9249e,_0x14c9c3){const _0x55a3d2=_0x151f3e,_0x39d006=_0x475033[_0x55a3d2(0x2f9)];if(!_0x39d006)throw new Error(_0x55a3d2(0x1ad));const _0x48f7a9={};Object['entries'](_0x39d006[_0x55a3d2(0x302)])[_0x55a3d2(0x3b5)](([_0x44d8be,_0x582ea4])=>{const _0x369e4b=_0x55a3d2,_0x4caff9=decodeWorksheetOtherMetas(_0x582ea4['originalMeta']);_0x48f7a9[_0x44d8be]={'id':_0x582ea4['id'],'name':_0x582ea4[_0x369e4b(0x244)],'rowCount':_0x582ea4[_0x369e4b(0x1e2)],'columnCount':_0x582ea4[_0x369e4b(0x1ce)],..._0x4caff9};});const _0x3e582b=new Map();for(let _0x39683d=0x0;_0x39683d<_0x599aa0[_0x55a3d2(0x1ba)];_0x39683d++)_0x3e582b['set'](_0x599aa0[_0x39683d]['id'],{'index':_0x39683d,'block':_0x599aa0[_0x39683d]});const _0x144097=performance[_0x55a3d2(0x231)]();_0x14c9c3===null||_0x14c9c3===void 0x0||_0x14c9c3[_0x55a3d2(0x366)](_0x55a3d2(0x3b0),_0x55a3d2(0x1de)+_0x599aa0[_0x55a3d2(0x1ba)]+_0x55a3d2(0x307));if(_0x39d006['blockMeta'])for(const [_0x5a7a69,_0x15a127]of Object[_0x55a3d2(0x2e7)](_0x39d006[_0x55a3d2(0x274)])){if(!_0x48f7a9[_0x5a7a69])continue;const _0x11df43={};if(_0x15a127[_0x55a3d2(0x3db)]&&_0x15a127[_0x55a3d2(0x3db)]['length']>0x0)for(const _0x3532fa of _0x15a127[_0x55a3d2(0x3db)]){if(!_0x3e582b['has'](_0x3532fa))throw new Error(_0x55a3d2(0x28c)+_0x3532fa+_0x55a3d2(0x1e7)+_0x5a7a69);const {index:_0x17b609,block:_0x527299}=_0x3e582b[_0x55a3d2(0x368)](_0x3532fa);if(_0x527299){const _0x1934b0=decodePartOfCellData(_0x527299[_0x55a3d2(0x250)]);for(const _0x1ee9be in _0x1934b0)_0x11df43[Number(_0x1ee9be)]=_0x1934b0[_0x1ee9be];_0x3e582b[_0x55a3d2(0x230)](_0x3532fa),_0x599aa0[_0x17b609]=null,_0x527299[_0x55a3d2(0x250)]=null;}await yieldToEventLoop();}_0x48f7a9[_0x5a7a69][_0x55a3d2(0x39d)]=_0x11df43;}const _0x1fd49b=performance[_0x55a3d2(0x231)]();if(_0x1fd49b-_0x144097>0x2710)_0x14c9c3===null||_0x14c9c3===void 0x0||_0x14c9c3[_0x55a3d2(0x366)]('[ParseBlocks]','Parsing\x20blocks\x20took\x20a\x20long\x20time:\x20'+(_0x1fd49b-_0x144097)[_0x55a3d2(0x267)](0x2)+'\x20ms');else _0x14c9c3===null||_0x14c9c3===void 0x0||_0x14c9c3[_0x55a3d2(0x366)](_0x55a3d2(0x3b0),'parse\x20blocks\x20end,\x20took\x20'+(_0x1fd49b-_0x144097)[_0x55a3d2(0x267)](0x2)+_0x55a3d2(0x1f5));_0x3e582b[_0x55a3d2(0x340)](),_0x599aa0[_0x55a3d2(0x1ba)]=0x0;const _0x37401c=decodeWorksheetOtherMetas(_0x39d006[_0x55a3d2(0x1c5)]);return{'id':_0x475033[_0x55a3d2(0x3c9)]||_0x39d006[_0x55a3d2(0x3c9)],'rev':_0x475033[_0x55a3d2(0x375)]||_0x39d006[_0x55a3d2(0x375)],'name':_0x39d006[_0x55a3d2(0x244)],'sheetOrder':_0x39d006[_0x55a3d2(0x1b1)],'appVersion':'','locale':_univerjs_core[_0x55a3d2(0x280)][_0x55a3d2(0x323)],'sheets':_0x48f7a9,'styles':{},'resources':_0x39d006[_0x55a3d2(0x1dd)]||[],..._0x37401c};}function transformSnapshotToDocumentData(_0x3e77ba){const _0x46b9fd=_0x151f3e,_0xe597d1=_0x3e77ba[_0x46b9fd(0x299)];if(_0xe597d1==null)throw new Error('transformSnapshotToDocumentData():\x20snapshot.doc\x20is\x20undefined.');const {unitID:_0x38cec9,rev:_0x274185,name:_0x518a8e,originalMeta:_0x19b4b9,resources:resources=[]}=_0xe597d1,{body:_0x3754fa,documentStyle:documentStyle={},settings:settings={},drawings:drawings={},drawingsOrder:drawingsOrder=[],tableSource:tableSource={},headers:headers={},footers:footers={},lists:lists={}}=decodeDocOriginalMeta(_0x19b4b9);return{'id':_0x38cec9,'rev':_0x274185,'locale':_univerjs_core['LocaleType'][_0x46b9fd(0x323)],'title':_0x518a8e,'body':_0x3754fa,'documentStyle':documentStyle,'settings':settings,'drawings':drawings,'drawingsOrder':drawingsOrder,'resources':resources,'tableSource':tableSource,'headers':headers,'footers':footers,'lists':lists};}async function transformDocumentDataToSnapshot(_0x6a5c43,_0x571470,_0x15d874,_0x3481b9,_0x165077){const _0x3f0ca5=_0x151f3e;var _0x3c8ac0;const _0x30d18e={'unitID':_0x571470['id'],'rev':_0x3481b9,'creator':'','name':(_0x3c8ac0=_0x571470[_0x3f0ca5(0x387)])!==null&&_0x3c8ac0!==void 0x0?_0x3c8ac0:'','resources':_0x571470[_0x3f0ca5(0x1dd)]||[],'originalMeta':encodeDocOriginalMeta(_0x571470)},_0x2efe3e={'unitID':_0x15d874,'rev':_0x30d18e[_0x3f0ca5(0x375)],'type':_univerjs_core['UniverInstanceType'][_0x3f0ca5(0x3f7)],'workbook':void 0x0,'doc':_0x30d18e},_0x52b058=await _0x165077['saveSnapshot'](_0x6a5c43,{'unitID':_0x15d874,'type':_univerjs_core[_0x3f0ca5(0x2d6)][_0x3f0ca5(0x3f7)],'snapshot':_0x2efe3e});if((0x0,_univerjs_protocol[_0x3f0ca5(0x2a5)])(_0x52b058[_0x3f0ca5(0x281)])){var _0x10a1ab,_0x1381c4;throw new Error(_0x3f0ca5(0x28e)+((_0x10a1ab=_0x52b058['error'])===null||_0x10a1ab===void 0x0?void 0x0:_0x10a1ab[_0x3f0ca5(0x283)])+':'+((_0x1381c4=_0x52b058['error'])===null||_0x1381c4===void 0x0?void 0x0:_0x1381c4[_0x3f0ca5(0x1c1)]));}return{'snapshot':_0x2efe3e};}async function getSheetBlocksFromSnapshot(_0x5bffc5,_0x357f4f){const _0x3f1909=_0x151f3e,_0x2c3dd3=_0x5bffc5[_0x3f1909(0x2f9)];if(!_0x2c3dd3)throw new Error(_0x3f1909(0x2f0));const _0x19b1e7=[],_0x1ef89f=[];return Object[_0x3f1909(0x2e7)](_0x2c3dd3['blockMeta'])[_0x3f1909(0x3b5)](([_0x508196,_0x27c229])=>{const _0x2655b4=_0x3f1909,_0xe27a28=_0x27c229[_0x2655b4(0x3db)][_0x2655b4(0x284)](async _0x3f2476=>{const _0x379943=_0x2655b4,_0x2f76d7={'unitID':_0x2c3dd3[_0x379943(0x3c9)],'type':_univerjs_core[_0x379943(0x2d6)][_0x379943(0x238)],'blockID':_0x3f2476},{block:_0xb0c75b}=await _0x357f4f['getSheetBlock']({},_0x2f76d7);if(_0xb0c75b)_0x19b1e7[_0x379943(0x1c6)](_0xb0c75b);else throw new Error(_0x379943(0x1db));});_0x1ef89f[_0x2655b4(0x1c6)](..._0xe27a28);}),await Promise[_0x3f1909(0x32c)](_0x1ef89f),_0x19b1e7;}const ISnapshotServerService=(0x0,_univerjs_core[_0x151f3e(0x1d4)])(_0x151f3e(0x397));let SnapshotService=class SnapshotService{constructor(_0x5a6b2e,_0x449fd5,_0x2f50db,_0x30d74f,_0x44a5dc,_0x4f2683,_0x5f0f4a){const _0xfd48fe=_0x151f3e;this[_0xfd48fe(0x3fa)]=_0x5a6b2e,this[_0xfd48fe(0x32a)]=_0x449fd5,this[_0xfd48fe(0x38e)]=_0x2f50db,this[_0xfd48fe(0x1e5)]=_0x30d74f,this['_logService']=_0x44a5dc,this[_0xfd48fe(0x2bb)]=_0x4f2683,this[_0xfd48fe(0x276)]=_0x5f0f4a;}async['loadSheet'](_0x372499,_0x19820d,_0x4d2f60={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x186790=_0x151f3e;var _0x1d0140;const _0xff310c=this['_univerInstanceService'][_0x186790(0x25c)](_0x372499,_univerjs_core[_0x186790(0x2d6)][_0x186790(0x238)]);if(_0xff310c)return _0xff310c;const {snapshot:_0x15854e,changesets:_0x4196e7,error:_0x40bc75}=await this[_0x186790(0x38e)][_0x186790(0x3bb)](_0x4d2f60,{'unitID':_0x372499,'type':_univerjs_core[_0x186790(0x2d6)][_0x186790(0x238)],'revision':_0x19820d});if((0x0,_univerjs_protocol[_0x186790(0x2a5)])(_0x40bc75)||!_0x15854e||!_0x15854e[_0x186790(0x2f9)]){const _0x43f437={..._0x40bc75};_0x43f437[_0x186790(0x1c1)]='[SnapshotService]:\x20request\x20snapshot\x20error!\x20The\x20original\x20error\x20is:\x20'+(_0x40bc75===null||_0x40bc75===void 0x0?void 0x0:_0x40bc75[_0x186790(0x1c1)]);throw _0x43f437;}const _0x571619=(_0x1d0140=_0x4196e7===null||_0x4196e7===void 0x0?void 0x0:_0x4196e7[_0x186790(0x1ba)])!==null&&_0x1d0140!==void 0x0?_0x1d0140:0x0;if(_0x19820d!==0x0&&_0x15854e[_0x186790(0x375)]+_0x571619!==_0x19820d)throw new Error(_0x186790(0x2d7));const {workbook:_0x80fcf4}=_0x15854e,_0x3733a1=(_0x80fcf4[_0x186790(0x274)]?Object[_0x186790(0x2e7)](_0x80fcf4[_0x186790(0x274)])[_0x186790(0x284)](([_0x2b191e,_0xb2c980])=>{const _0x1728f1=_0x186790;var _0x228678,_0x2d6c08;return(_0x228678=(_0x2d6c08=_0xb2c980[_0x1728f1(0x3db)])===null||_0x2d6c08===void 0x0?void 0x0:_0x2d6c08[_0x1728f1(0x284)](_0x1a2844=>_0x1a2844))!==null&&_0x228678!==void 0x0?_0x228678:[];})[_0x186790(0x2ea)]():[])[_0x186790(0x284)](_0x1d2630=>()=>this['_snapshotServerService']['getDeserializedSheetBlock'](_0x4d2f60,{'unitID':_0x372499,'type':_univerjs_core[_0x186790(0x2d6)]['UNIVER_SHEET'],'blockID':_0x1d2630})),_0x455a61=[];try{await measureAsyncOperation(_0x186790(0x209),()=>limitConcurrencyTasks({'tasks':_0x3733a1,'handleTaskResult':_0x14c673=>{const _0xfa0146=_0x186790;if(_0x14c673[_0xfa0146(0x2a7)])_0x455a61['push'](_0x14c673['block']);},'onError':_0x30f032=>{const _0x2c9b97=_0x186790;this[_0x2c9b97(0x258)][_0x2c9b97(0x281)](_0x2c9b97(0x3ae),_0x2c9b97(0x21f)+_0x30f032);}}),this[_0x186790(0x258)],0x2710,_0x186790(0x236)+_0x3733a1[_0x186790(0x1ba)]+_0x186790(0x307));}catch(_0x23fba7){throw new Error(_0x186790(0x3d9)+JSON['stringify'](_0x23fba7));}const _0x5597bb=await measureAsyncOperation(_0x186790(0x1b9),()=>transformSnapshotToWorkbookData(_0x15854e,_0x455a61,_0x4d2f60,this[_0x186790(0x258)]),this['_logService']),_0x485412=this[_0x186790(0x32a)][_0x186790(0x347)](_univerjs_core[_0x186790(0x2d6)][_0x186790(0x238)],_0x5597bb);return measureSyncOperation(_0x186790(0x379),()=>{const _0x3c9933=_0x186790,_0x20558d=this[_0x3c9933(0x2bb)][_0x3c9933(0x3e5)][_0x3c9933(0x2ca)](this['_compressMutationService'][_0x3c9933(0x3e5)][_0x3c9933(0x3cd)]()['COMPRESS_MUTATION_APPLY']);_0x4196e7===null||_0x4196e7===void 0x0||_0x4196e7[_0x3c9933(0x3b5)](_0x16724d=>{const _0x1dfaa7=_0x3c9933;if(_0x16724d[_0x1dfaa7(0x1bd)]===null||_0x16724d['mutations']===void 0x0)_0x16724d['mutations']=[];const _0x194c88=_0x16724d[_0x1dfaa7(0x1bd)][_0x1dfaa7(0x284)](_0x4e21f8=>({'id':_0x4e21f8['id'],'params':JSON[_0x1dfaa7(0x33a)](_0x4e21f8[_0x1dfaa7(0x250)])}));({..._0x16724d,'mutations':_0x20558d(_0x194c88,null)||_0x194c88}['mutations'][_0x1dfaa7(0x3b5)](_0x48acef=>this[_0x1dfaa7(0x1e5)][_0x1dfaa7(0x3e4)](_0x48acef['id'],_0x48acef[_0x1dfaa7(0x1a4)],{'fromChangeset':!![]})),this[_0x1dfaa7(0x3fa)][_0x1dfaa7(0x223)](_0x372499));});},this[_0x186790(0x258)]),_0x485412;}async[_0x151f3e(0x2e1)](_0x3acda3,_0x55b22b,_0x4ff8df={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x29cd7a=_0x151f3e;var _0x43e272;const {snapshot:_0x3a7cd1,changesets:_0x2d5c5f,error:_0x1ee2ac}=await this[_0x29cd7a(0x38e)][_0x29cd7a(0x3bb)](_0x4ff8df,{'unitID':_0x3acda3,'type':_univerjs_core[_0x29cd7a(0x2d6)][_0x29cd7a(0x3f7)],'revision':_0x55b22b});if((0x0,_univerjs_protocol['isError'])(_0x1ee2ac)||!_0x3a7cd1||!_0x3a7cd1[_0x29cd7a(0x299)]){const _0x3edf45={..._0x1ee2ac};_0x3edf45['message']=_0x29cd7a(0x1ea);throw _0x3edf45;}const _0x51965a=(_0x43e272=_0x2d5c5f===null||_0x2d5c5f===void 0x0?void 0x0:_0x2d5c5f[_0x29cd7a(0x1ba)])!==null&&_0x43e272!==void 0x0?_0x43e272:0x0;if(_0x55b22b!==0x0&&_0x3a7cd1[_0x29cd7a(0x375)]+_0x51965a!==_0x55b22b)throw new Error(_0x29cd7a(0x2d7));const _0x24b334=transformSnapshotToDocumentData(_0x3a7cd1),_0x27a910=this[_0x29cd7a(0x32a)][_0x29cd7a(0x347)](_univerjs_core[_0x29cd7a(0x2d6)][_0x29cd7a(0x3f7)],_0x24b334);return _0x2d5c5f===null||_0x2d5c5f===void 0x0||_0x2d5c5f[_0x29cd7a(0x3b5)](_0x490349=>{const _0x2d6bc8=_0x29cd7a;if(_0x490349[_0x2d6bc8(0x1bd)]===null||_0x490349['mutations']===void 0x0)_0x490349[_0x2d6bc8(0x1bd)]=[];_0x490349[_0x2d6bc8(0x1bd)][_0x2d6bc8(0x284)](_0x398308=>({'id':_0x398308['id'],'params':JSON[_0x2d6bc8(0x33a)](_0x398308[_0x2d6bc8(0x250)])}))[_0x2d6bc8(0x3b5)](_0x370d8c=>this[_0x2d6bc8(0x1e5)][_0x2d6bc8(0x3e4)](_0x370d8c['id'],_0x370d8c[_0x2d6bc8(0x1a4)],{'fromChangeset':!![]})),this['_revisionService'][_0x2d6bc8(0x223)](_0x3acda3);}),_0x27a910;}[_0x151f3e(0x34c)](_0x2c6a6d,_0x5de5a9){const _0x2618b6=_0x151f3e,_0x199879={..._0x5de5a9[_0x2618b6(0x2dd)]()};return _0x5de5a9[_0x2618b6(0x337)]()[_0x2618b6(0x3b5)](_0xe0f99c=>{const _0x4527dd=_0x2618b6;_0x199879[_0x4527dd(0x302)][_0xe0f99c[_0x4527dd(0x1ef)]()]=_univerjs_core[_0x4527dd(0x1a6)][_0x4527dd(0x3ce)](_0xe0f99c['getSnapshot']());}),_0x199879['resources']=this[_0x2618b6(0x276)][_0x2618b6(0x1d5)](_0x5de5a9[_0x2618b6(0x3ed)](),_univerjs_core[_0x2618b6(0x2d6)]['UNIVER_SHEET']),_0x199879;}['saveDoc'](_0x5141e5,_0x137a75){const _0x434696=_0x151f3e,_0x46bbc0={..._0x137a75[_0x434696(0x2dd)]()};return _0x46bbc0[_0x434696(0x1dd)]=this[_0x434696(0x276)][_0x434696(0x1d5)](_0x137a75[_0x434696(0x3ed)](),_univerjs_core[_0x434696(0x2d6)][_0x434696(0x3f7)]),_0x46bbc0;}};SnapshotService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(RevisionService)),__decorateParam(0x1,_univerjs_core[_0x151f3e(0x251)]),__decorateParam(0x2,ISnapshotServerService),__decorateParam(0x3,_univerjs_core[_0x151f3e(0x3cc)]),__decorateParam(0x4,_univerjs_core[_0x151f3e(0x2ae)]),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(CompressMutationService)),__decorateParam(0x6,(0x0,_univerjs_core[_0x151f3e(0x3df)])(_univerjs_core['IResourceManagerService']))],SnapshotService);let UniverCollaborationPlugin=class UniverCollaborationPlugin extends _univerjs_core[_0x151f3e(0x34b)]{constructor(_0x569bcf=defaultPluginConfig,_0x25e756,_0xf709b2){const _0x22c434=_0x151f3e;super(),this[_0x22c434(0x21d)]=_0x569bcf,this[_0x22c434(0x3ba)]=_0x25e756,this[_0x22c434(0x1ff)]=_0xf709b2;const {..._0x535649}=(0x0,_univerjs_core[_0x22c434(0x361)])({},defaultPluginConfig,this['_config']);this[_0x22c434(0x1ff)][_0x22c434(0x23b)](COLLABORATION_PLUGIN_CONFIG_KEY,_0x535649);}[_0x151f3e(0x392)](){const _0x271941=_0x151f3e;(0x0,_univerjs_core[_0x271941(0x336)])(this[_0x271941(0x3ba)],[[RevisionService],[RevisionController],[SheetTransformController],[DocTransformController],[SnapshotService],[ITransformService,{'useClass':TransformService}],[CompressMutationService]]),(0x0,_univerjs_core[_0x271941(0x309)])(this[_0x271941(0x3ba)],[[DocTransformController],[RevisionController],[SheetTransformController]]);}};_defineProperty(UniverCollaborationPlugin,_0x151f3e(0x30e),_0x151f3e(0x28f)),_defineProperty(UniverCollaborationPlugin,_0x151f3e(0x1dc),name),_defineProperty(UniverCollaborationPlugin,_0x151f3e(0x389),version),UniverCollaborationPlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_license[_0x151f3e(0x1e9)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x151f3e(0x3df)])(_univerjs_core[_0x151f3e(0x320)])),__decorateParam(0x2,_univerjs_core[_0x151f3e(0x2f8)])],UniverCollaborationPlugin);let SnapshotSaveService=class SnapshotSaveService{constructor(_0x307b4a,_0x2cf80e,_0x21b054){const _0x27395c=_0x151f3e;this[_0x27395c(0x38e)]=_0x307b4a,this[_0x27395c(0x2b5)]=_0x2cf80e,this[_0x27395c(0x258)]=_0x21b054;}async[_0x151f3e(0x34c)](_0x5e2e10,_0x12e5a8,_0x4a1c24,_0x51c64b,_0x1a1501){const _0x4096e4=_0x151f3e;return transformWorkbookDataToSnapshot(_0x5e2e10,_0x1a1501||this[_0x4096e4(0x2b5)][_0x4096e4(0x34c)](_0x5e2e10,_0x51c64b),_0x12e5a8,_0x4a1c24,this['_snapshotServerService'],this[_0x4096e4(0x258)]);}async['updateSheet'](_0x3f78b8,_0x806118,_0x12dc03,_0x5d90fb){const _0x3d3086=_0x151f3e;return transformWorkbookDataToSnapshotNoSave(_0x3f78b8,_0x5d90fb||this['_snapshotService'][_0x3d3086(0x34c)](_0x3f78b8,_0x12dc03),_0x806118,this[_0x3d3086(0x38e)]);}async['getSheet'](_0x40e9ae,_0x16d613,_0x480c0e,_0x308421){const _0x308847=_0x151f3e;return generateTemporarySnap(_0x40e9ae,this[_0x308847(0x2b5)]['saveSheet'](_0x40e9ae,_0x308421),_0x16d613,_0x480c0e,this['_snapshotServerService'],this['_logService']);}async[_0x151f3e(0x3c4)](_0x9c7d07,_0x32bd14,_0x403138,_0x4eb93f){const _0x94a6d3=_0x151f3e;return generateTempDocumentSnapshot(_0x9c7d07,this['_snapshotService'][_0x94a6d3(0x3d5)](_0x9c7d07,_0x4eb93f),_0x32bd14,_0x403138);}async[_0x151f3e(0x3d5)](_0x39f8ff,_0x1ba3a0,_0x4d4011,_0x5ddd3d,_0x1144a6){const _0x985191=_0x151f3e;return transformDocumentDataToSnapshot(_0x39f8ff,_0x1144a6||this[_0x985191(0x2b5)][_0x985191(0x3d5)](_0x39f8ff,_0x5ddd3d),_0x1ba3a0,_0x4d4011,this['_snapshotServerService']);}};SnapshotSaveService=__decorate([__decorateParam(0x0,ISnapshotServerService),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(SnapshotService)),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x151f3e(0x2ae)]))],SnapshotSaveService),exports['CollaborationEvent']=CollaborationEvent,exports['CompressMutationService']=CompressMutationService,exports[_0x151f3e(0x306)]=CreateUnitMutation,Object['defineProperty'](exports,_0x151f3e(0x371),{'enumerable':!![],'get':function(){return DocTransformController;}}),exports[_0x151f3e(0x2c2)]=EmptyMutationInfo,exports[_0x151f3e(0x2e5)]=ISnapshotServerService,exports[_0x151f3e(0x2a0)]=ITransformService,exports[_0x151f3e(0x1d8)]=RevertRevisionMutation,Object['defineProperty'](exports,'RevisionService',{'enumerable':!![],'get':function(){return RevisionService;}}),exports[_0x151f3e(0x33e)]=SINGLE_HISTORY_MUTATIONS,exports['SINGLE_SNAPSHOT_MUTATIONS']=SINGLE_SNAPSHOT_MUTATIONS,Object[_0x151f3e(0x20a)](exports,'SheetTransformController',{'enumerable':!![],'get':function(){return SheetTransformController;}}),Object[_0x151f3e(0x20a)](exports,_0x151f3e(0x2b4),{'enumerable':!![],'get':function(){return SnapshotSaveService;}}),Object[_0x151f3e(0x20a)](exports,_0x151f3e(0x2c1),{'enumerable':!![],'get':function(){return SnapshotService;}}),Object[_0x151f3e(0x20a)](exports,_0x151f3e(0x3d7),{'enumerable':!![],'get':function(){return TransformService;}}),Object[_0x151f3e(0x20a)](exports,_0x151f3e(0x1cc),{'enumerable':!![],'get':function(){return UniverCollaborationPlugin;}}),exports[_0x151f3e(0x328)]=b64DecodeUnicode,exports[_0x151f3e(0x2e0)]=b64EncodeUnicode,exports['generateTempDocumentSnapshot']=generateTempDocumentSnapshot,exports[_0x151f3e(0x30a)]=generateTemporarySnap,exports[_0x151f3e(0x32d)]=getSheetBlocksFromSnapshot,exports[_0x151f3e(0x2d8)]=isTransformChangesetsFailure,exports[_0x151f3e(0x1b0)]=isTransformChangesetsSuccess,exports[_0x151f3e(0x278)]=isTransformMutationFailure,exports['isTransformMutationSuccess']=isTransformMutationSuccess,exports[_0x151f3e(0x220)]=isTransformMutationsFailure,exports[_0x151f3e(0x2fd)]=isTransformMutationsSuccess,exports[_0x151f3e(0x31a)]=isTransformMutationsWithChangesetFailure,exports['isTransformMutationsWithChangesetSuccess']=isTransformMutationsWithChangesetSuccess,exports['mapDocumentTypeToUniverInstanceType']=mapDocumentTypeToUniverInstanceType,exports['measureAsyncOperation']=measureAsyncOperation,exports[_0x151f3e(0x31d)]=measureSyncOperation,exports[_0x151f3e(0x207)]=parseChangesetToProtocol,exports['parseMutationToProtocol']=parseMutationToProtocol,exports[_0x151f3e(0x311)]=parseProtocolChangeset,exports[_0x151f3e(0x197)]=parseProtocolCommand,exports[_0x151f3e(0x1fa)]=parseProtocolMutation,exports['textDecoder']=textDecoder,exports['textEncoder']=textEncoder,exports[_0x151f3e(0x277)]=transformDocumentDataToSnapshot,exports[_0x151f3e(0x1f7)]=transformSnapshotToDocumentData,exports[_0x151f3e(0x1b9)]=transformSnapshotToWorkbookData,exports[_0x151f3e(0x1b4)]=transformWorkbookDataToSnapshot,Object[_0x151f3e(0x20a)](exports,_0x151f3e(0x325),{'enumerable':!![],'get':function(){return uuid['v4'];}});
|
|
1
|
+
const _0xfc9601=_0x5cb6;(function(_0x2d4a6f,_0x5b7a98){const _0x44a6cc=_0x5cb6,_0x655217=_0x2d4a6f();while(!![]){try{const _0x2e23dd=-parseInt(_0x44a6cc(0x32c))/0x1*(parseInt(_0x44a6cc(0x351))/0x2)+-parseInt(_0x44a6cc(0x20a))/0x3+-parseInt(_0x44a6cc(0x2ff))/0x4+-parseInt(_0x44a6cc(0x3b9))/0x5*(-parseInt(_0x44a6cc(0x29e))/0x6)+-parseInt(_0x44a6cc(0x3e3))/0x7*(-parseInt(_0x44a6cc(0x207))/0x8)+-parseInt(_0x44a6cc(0x3cd))/0x9+parseInt(_0x44a6cc(0x2a3))/0xa;if(_0x2e23dd===_0x5b7a98)break;else _0x655217['push'](_0x655217['shift']());}catch(_0x4b4f1a){_0x655217['push'](_0x655217['shift']());}}}(_0x5f10,0x8e126),Object[_0xfc9601(0x238)](exports,Symbol[_0xfc9601(0x343)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs=require('@univerjs/docs'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_thread_comment=require('@univerjs/thread-comment'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_hyper_link=require('@univerjs/sheets-hyper-link'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_protocol=require('@univerjs/protocol'),uuid=require('uuid');const CreateUnitMutation={'id':'univer.mutation.create-unit','type':_univerjs_core[_0xfc9601(0x21b)]['MUTATION'],'handler':()=>{return!![];}},RevertRevisionMutation={'id':_0xfc9601(0x37e),'type':_univerjs_core[_0xfc9601(0x21b)][_0xfc9601(0x3d4)],'handler':()=>{return!![];}};function isTransformMutationFailure(_0xbb6e4d){const _0x25a7d9=_0xfc9601;return!!_0xbb6e4d[_0x25a7d9(0x2ef)];}function isTransformMutationSuccess(_0x234101){return!isTransformMutationFailure(_0x234101);}function isInclineTransformMutationsFailure(_0x4a3abc){const _0x55a38d=_0xfc9601;return!!_0x4a3abc[_0x55a38d(0x2ef)];}function isTransformMutationsFailure(_0x3da8cb){const _0x3ae891=_0xfc9601;return!!_0x3da8cb[_0x3ae891(0x2ef)];}function isTransformMutationsSuccess(_0xe32c10){return!isTransformMutationsFailure(_0xe32c10);}function isTransformChangesetsFailure(_0x3d1d25){const _0x3805c3=_0xfc9601;return!!_0x3d1d25[_0x3805c3(0x2ef)];}function isTransformChangesetsSuccess(_0x483393){return!isTransformChangesetsFailure(_0x483393);}function isTransformMutationsWithChangesetFailure(_0x29b0f9){const _0x3a390b=_0xfc9601;return!!_0x29b0f9[_0x3a390b(0x2ef)];}function isTransformMutationsWithChangesetSuccess(_0x2b5dd9){return!isTransformMutationsWithChangesetFailure(_0x2b5dd9);}function _typeof(_0x14bf08){'@babel/helpers - typeof';const _0x2ee8e4=_0xfc9601;return _typeof=_0x2ee8e4(0x249)==typeof Symbol&&_0x2ee8e4(0x403)==typeof Symbol[_0x2ee8e4(0x218)]?function(_0x5d14af){return typeof _0x5d14af;}:function(_0xfbde49){const _0x5454f0=_0x2ee8e4;return _0xfbde49&&_0x5454f0(0x249)==typeof Symbol&&_0xfbde49[_0x5454f0(0x3a0)]===Symbol&&_0xfbde49!==Symbol[_0x5454f0(0x3c7)]?_0x5454f0(0x403):typeof _0xfbde49;},_typeof(_0x14bf08);}function toPrimitive(_0x371b41,_0x2e81d1){const _0x19efec=_0xfc9601;if('object'!=_typeof(_0x371b41)||!_0x371b41)return _0x371b41;var _0x482b4c=_0x371b41[Symbol[_0x19efec(0x38a)]];if(void 0x0!==_0x482b4c){var _0x2023f9=_0x482b4c[_0x19efec(0x2cd)](_0x371b41,_0x2e81d1||'default');if(_0x19efec(0x1e7)!=_typeof(_0x2023f9))return _0x2023f9;throw new TypeError(_0x19efec(0x3af));}return('string'===_0x2e81d1?String:Number)(_0x371b41);}function toPropertyKey(_0x7b8df8){const _0x3a61a9=_0xfc9601;var _0x156a24=toPrimitive(_0x7b8df8,_0x3a61a9(0x254));return _0x3a61a9(0x403)==_typeof(_0x156a24)?_0x156a24:_0x156a24+'';}function _defineProperty(_0x1da7a5,_0x520af2,_0x22acc0){return(_0x520af2=toPropertyKey(_0x520af2))in _0x1da7a5?Object['defineProperty'](_0x1da7a5,_0x520af2,{'value':_0x22acc0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1da7a5[_0x520af2]=_0x22acc0,_0x1da7a5;}function __decorateParam(_0x1bf0a1,_0x3f6b99){return function(_0x10f92c,_0x57a96b){_0x3f6b99(_0x10f92c,_0x57a96b,_0x1bf0a1);};}function __decorate(_0x8101b4,_0x57c925,_0x425689,_0x24d647){const _0x3768b3=_0xfc9601;var _0x47a8a1=arguments[_0x3768b3(0x29d)],_0x27755e=_0x47a8a1<0x3?_0x57c925:_0x24d647===null?_0x24d647=Object['getOwnPropertyDescriptor'](_0x57c925,_0x425689):_0x24d647,_0x3ec229;if(typeof Reflect==='object'&&typeof Reflect[_0x3768b3(0x366)]===_0x3768b3(0x249))_0x27755e=Reflect[_0x3768b3(0x366)](_0x8101b4,_0x57c925,_0x425689,_0x24d647);else{for(var _0x43a084=_0x8101b4[_0x3768b3(0x29d)]-0x1;_0x43a084>=0x0;_0x43a084--)if(_0x3ec229=_0x8101b4[_0x43a084])_0x27755e=(_0x47a8a1<0x3?_0x3ec229(_0x27755e):_0x47a8a1>0x3?_0x3ec229(_0x57c925,_0x425689,_0x27755e):_0x3ec229(_0x57c925,_0x425689))||_0x27755e;}return _0x47a8a1>0x3&&_0x27755e&&Object[_0x3768b3(0x238)](_0x57c925,_0x425689,_0x27755e),_0x27755e;}function _0x5cb6(_0x37fcd9,_0x76206a){_0x37fcd9=_0x37fcd9-0x1b7;const _0x5f10dc=_0x5f10();let _0x5cb659=_0x5f10dc[_0x37fcd9];return _0x5cb659;}const DEFAULT_LOOP_LIMIT_TIME=0xbb8,ITransformService=(0x0,_univerjs_core[_0xfc9601(0x279)])(_0xfc9601(0x32f));let TransformService=class TransformService extends _univerjs_core[_0xfc9601(0x2a7)]{constructor(_0x13509e){const _0x396c5f=_0xfc9601;super(),this[_0x396c5f(0x2a1)]=_0x13509e,_defineProperty(this,_0x396c5f(0x3e9),new Map()),_defineProperty(this,'_loopLimitTime',DEFAULT_LOOP_LIMIT_TIME),_defineProperty(this,_0x396c5f(0x2df),new Map());}[_0xfc9601(0x2c1)](){const _0x4425d1=_0xfc9601;this[_0x4425d1(0x3e9)][_0x4425d1(0x318)](),this[_0x4425d1(0x2df)][_0x4425d1(0x318)]();}[_0xfc9601(0x3c0)](_0x4e3102){const _0x1a32e8=_0xfc9601,{m1:_0x2b9a5e,m2:m2=_0x1a32e8(0x3fb)}=_0x4e3102;if(!this[_0x1a32e8(0x3e9)][_0x1a32e8(0x1d9)](_0x2b9a5e))this[_0x1a32e8(0x3e9)]['set'](_0x2b9a5e,new Map());const _0x342693=this[_0x1a32e8(0x3e9)][_0x1a32e8(0x3a1)](_0x2b9a5e);if(_0x342693[_0x1a32e8(0x1d9)](m2))throw new Error(_0x1a32e8(0x301)+_0x2b9a5e+_0x1a32e8(0x260)+m2+_0x1a32e8(0x1c1));_0x342693['set'](m2,_0x4e3102);}[_0xfc9601(0x290)](_0xa564d4,_0x56a627,_0x4f49eb){const _0x2bd20f=_0xfc9601;var _0x57feee,_0x3e7a28,_0x3f1984,_0x550912,_0x4b5456,_0x185f35;const _0x503528=this['_transformMap'],_0x384a10=((_0x57feee=_0x503528[_0x2bd20f(0x3a1)](_0xa564d4['id']))===null||_0x57feee===void 0x0?void 0x0:_0x57feee[_0x2bd20f(0x3a1)](_0x56a627['id']))||((_0x3e7a28=_0x503528['get'](_0xa564d4['id']))===null||_0x3e7a28===void 0x0?void 0x0:_0x3e7a28[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))||((_0x3f1984=_0x503528[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))===null||_0x3f1984===void 0x0?void 0x0:_0x3f1984['get'](_0x56a627['id']));if(_0x384a10)return _0x4f49eb?_0x384a10[_0x2bd20f(0x3f8)](_0xa564d4,_0x56a627,_0x4f49eb):_0x384a10[_0x2bd20f(0x3f8)](_0xa564d4,_0x56a627);const _0x81905e=((_0x550912=_0x503528[_0x2bd20f(0x3a1)](_0x56a627['id']))===null||_0x550912===void 0x0?void 0x0:_0x550912[_0x2bd20f(0x3a1)](_0xa564d4['id']))||((_0x4b5456=_0x503528[_0x2bd20f(0x3a1)](_0x56a627['id']))===null||_0x4b5456===void 0x0?void 0x0:_0x4b5456['get']('any'))||((_0x185f35=_0x503528[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))===null||_0x185f35===void 0x0?void 0x0:_0x185f35[_0x2bd20f(0x3a1)](_0xa564d4['id']));if(_0x81905e){const _0xfd9887=_0x4f49eb?_0x81905e[_0x2bd20f(0x3f8)](_0x56a627,_0xa564d4,_0x4f49eb):_0x81905e[_0x2bd20f(0x3f8)](_0x56a627,_0xa564d4);if(isTransformMutationSuccess(_0xfd9887))return _0x4f49eb?{'m2Prime':_0xfd9887[_0x2bd20f(0x39d)]}:{'m2Prime':_0xfd9887[_0x2bd20f(0x39d)],'m1Prime':_0xfd9887[_0x2bd20f(0x3d9)]};return _0xfd9887;}return{'m1Prime':_0xa564d4,'m2Prime':_0x56a627};}['transformMutations'](_0x3e404f,_0xb650c7,_0x164d3a){const _0x34cd56=_0xfc9601;this[_0x34cd56(0x2df)][_0x34cd56(0x209)]('m1',_0x3e404f),this[_0x34cd56(0x2df)][_0x34cd56(0x209)]('m2',_0xb650c7);const _0x4b1bb7=Date[_0x34cd56(0x1e0)](),_0x171e30=this[_0x34cd56(0x334)](_0x3e404f,_0xb650c7,_0x4b1bb7);if(isInclineTransformMutationsFailure(_0x171e30))return _0x171e30;if(_0x164d3a)return{'m2Prime':_0x171e30};const _0x2ccd9c=this[_0x34cd56(0x39b)](_0x3e404f,_0xb650c7,_0x4b1bb7);if(isInclineTransformMutationsFailure(_0x2ccd9c))return _0x2ccd9c;return this[_0x34cd56(0x2df)][_0x34cd56(0x318)](),{'m1Prime':_0x2ccd9c,'m2Prime':_0x171e30};}[_0xfc9601(0x334)](_0xcd8edf,_0x58bb92,_0x5eca67){const _0xcbe14c=_0xfc9601;Date[_0xcbe14c(0x1e0)]()===_0x5eca67&&(this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)](_0xcbe14c(0x24b)+new Date()[_0xcbe14c(0x21a)]()),this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)]('[debug]\x20m1Length:\x20',_0xcd8edf[_0xcbe14c(0x29d)]),this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)](_0xcbe14c(0x385),_0x58bb92[_0xcbe14c(0x29d)]));const _0x1bdd3c=_0xcd8edf[_0xcbe14c(0x29d)];let _0x26081d=0x0,_0x2b3916=0x0,_0x588337;for(_0x588337=0x0;_0x588337<_0x1bdd3c;_0x588337++){_0x26081d++;if(_0x26081d%0x2710===0x0&&Date[_0xcbe14c(0x1e0)]()-_0x5eca67>this[_0xcbe14c(0x20b)]){this[_0xcbe14c(0x34f)](_0xcbe14c(0x333)),this[_0xcbe14c(0x3f2)](_0xcd8edf[_0xcbe14c(0x29d)],_0x58bb92[_0xcbe14c(0x29d)],_0xcbe14c(0x333));throw new Error(_0xcbe14c(0x316));}let _0x1b0056=[_0xcd8edf[_0x588337]],_0x301170=[];for(let _0x50f8d4=0x0,_0x213592=_0x58bb92[_0xcbe14c(0x29d)];_0x50f8d4<_0x213592;_0x50f8d4++){_0x2b3916++;if(_0x2b3916%0x2710===0x0&&Date[_0xcbe14c(0x1e0)]()-_0x5eca67>this[_0xcbe14c(0x20b)]){this[_0xcbe14c(0x34f)](_0xcbe14c(0x40b)),this['_logCurrentTransformMutations'](_0xcd8edf[_0xcbe14c(0x29d)],_0x58bb92[_0xcbe14c(0x29d)],_0xcbe14c(0x40b));throw new Error(_0xcbe14c(0x2d1));}const _0x120f75=_0x58bb92[_0x50f8d4];let _0x27870d;if(_0x1b0056[_0xcbe14c(0x29d)]===0x0)_0x27870d=[_0x120f75],_0x1b0056=[];else{if(_0x1b0056[_0xcbe14c(0x29d)]===0x1){const _0x294815=this[_0xcbe14c(0x290)](_0x1b0056[0x0],_0x120f75);if(isTransformMutationFailure(_0x294815))return _0x294815;_0x27870d=makeArray(_0x294815[_0xcbe14c(0x3d9)]);if(!_0x294815[_0xcbe14c(0x39d)])throw new Error('Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.');_0x1b0056=makeArray(_0x294815['m1Prime']);}else{const _0x215e82=this[_0xcbe14c(0x334)](_0x1b0056,[_0x120f75],_0x5eca67);if(_0x215e82['error'])return _0x215e82;_0x27870d=_0x215e82;if(_0x50f8d4<_0x213592-0x1){const _0x1ed521=this[_0xcbe14c(0x39b)](_0x1b0056,[_0x120f75],_0x5eca67);if(_0x1ed521[_0xcbe14c(0x2ef)])return _0x1ed521;_0x1b0056=_0x1ed521;}}}_0x301170=_0x301170['concat'](_0x27870d);}_0x58bb92=_0x301170;}return _0x58bb92;}['_leftInclineTransformMutations'](_0x50fa09,_0x5a7cba,_0x3573fe){const _0x27a613=_0xfc9601;Date[_0x27a613(0x1e0)]()===_0x3573fe&&(this[_0x27a613(0x2a1)][_0x27a613(0x283)](_0x27a613(0x2cf)+new Date()['toISOString']()),this['_logService'][_0x27a613(0x283)](_0x27a613(0x38b),_0x50fa09[_0x27a613(0x29d)]),this[_0x27a613(0x2a1)][_0x27a613(0x283)](_0x27a613(0x385),_0x5a7cba['length']));const _0x2b5ae7=_0x5a7cba[_0x27a613(0x29d)];let _0xa3d4b9,_0x14f1b2=0x0,_0xc65c82=0x0;for(_0xa3d4b9=0x0;_0xa3d4b9<_0x2b5ae7;_0xa3d4b9++){_0x14f1b2++;if(_0x14f1b2%0x2710===0x0&&Date[_0x27a613(0x1e0)]()-_0x3573fe>this[_0x27a613(0x20b)]){this[_0x27a613(0x34f)](_0x27a613(0x321)),this[_0x27a613(0x3f2)](_0x50fa09['length'],_0x5a7cba[_0x27a613(0x29d)],'left-loop1');throw new Error(_0x27a613(0x2cb));}let _0x180fa6=[_0x5a7cba[_0xa3d4b9]],_0x304de0=[];for(let _0x455908=0x0,_0x175268=_0x50fa09[_0x27a613(0x29d)];_0x455908<_0x175268;_0x455908++){_0xc65c82++;if(_0xc65c82%0x2710===0x0&&Date['now']()-_0x3573fe>this['_loopLimitTime']){this['_logOriginTransformMutations'](_0x27a613(0x1b7)),this[_0x27a613(0x3f2)](_0x50fa09['length'],_0x5a7cba['length'],_0x27a613(0x1b7));throw new Error(_0x27a613(0x1b9));}const _0x3b269b=_0x50fa09[_0x455908];let _0x19d247;if(_0x180fa6[_0x27a613(0x29d)]===0x0)_0x19d247=[_0x3b269b],_0x180fa6=[];else{if(_0x180fa6[_0x27a613(0x29d)]===0x1){const _0x247375=this[_0x27a613(0x290)](_0x3b269b,_0x180fa6[0x0]);if(isTransformMutationFailure(_0x247375))return _0x247375;if(!_0x247375['m1Prime'])throw new Error(_0x27a613(0x337));_0x19d247=makeArray(_0x247375['m1Prime']),_0x180fa6=makeArray(_0x247375['m2Prime']);}else{const _0xfe5840=this[_0x27a613(0x39b)]([_0x3b269b],_0x180fa6,_0x3573fe);if(_0xfe5840[_0x27a613(0x2ef)])return _0xfe5840;_0x19d247=_0xfe5840;if(_0x455908<_0x175268-0x1){const _0x3b25f7=this[_0x27a613(0x334)]([_0x3b269b],_0x180fa6,_0x3573fe);if(_0x3b25f7['error'])return _0x3b25f7;_0x180fa6=_0x3b25f7;}}}_0x304de0=_0x304de0[_0x27a613(0x2da)](_0x19d247);}_0x50fa09=_0x304de0;}return _0x50fa09;}[_0xfc9601(0x35f)](_0x2cf296,_0x4afcf1,_0x3d2892){const _0x24a58b=_0xfc9601;if(!checkChangesetsAligned(_0x2cf296,_0x4afcf1))throw new Error(_0x24a58b(0x275)+_0x4afcf1[0x0][_0x24a58b(0x3ce)]+_0x24a58b(0x383)+_0x2cf296[0x0][_0x24a58b(0x37b)]+'.');const _0x471382=_0x2cf296[_0x24a58b(0x29d)],_0x590d38=_0x4afcf1['length'],_0x576fc6=makeMatrixArray(_0x471382,_0x590d38+0x1),_0x5a586b=makeMatrixArray(_0x471382+0x1,_0x590d38);_0x2cf296[_0x24a58b(0x302)]((_0x425372,_0x7617bf)=>_0x576fc6[_0x7617bf][0x0]=_0x425372),_0x4afcf1['forEach']((_0x2ba461,_0x57b28c)=>_0x5a586b[0x0][_0x57b28c]=_0x2ba461);try{for(let _0x171134=0x0;_0x171134<_0x590d38;_0x171134++)for(let _0xfb4ce5=0x0;_0xfb4ce5<_0x471382;_0xfb4ce5++){const _0x476d24=_0x5a586b[_0xfb4ce5][_0x171134],_0x2e8af9=_0x576fc6[_0xfb4ce5][_0x171134];if(!_0x476d24||!_0x2e8af9)throw new Error(_0x24a58b(0x2ca));const {mutations:_0x1d2184,..._0x16c12c}=_0x2e8af9,{mutations:_0x5c71a8,..._0x1f0f25}=_0x476d24;this[_0x24a58b(0x2a1)][_0x24a58b(0x283)](_0x24a58b(0x3d2)+new Date()[_0x24a58b(0x21a)]()),this[_0x24a58b(0x2a1)][_0x24a58b(0x283)](_0x24a58b(0x3ff),JSON[_0x24a58b(0x2f0)](_0x16c12c)),this['_logService'][_0x24a58b(0x283)](_0x24a58b(0x232),JSON[_0x24a58b(0x2f0)](_0x1f0f25));const _0x50a3e6=this[_0x24a58b(0x36e)](_0x1d2184,_0x5c71a8);if(isTransformMutationsFailure(_0x50a3e6))return{'error':_0x50a3e6[_0x24a58b(0x2ef)]};_0x5a586b[_0xfb4ce5+0x1][_0x171134]={..._0x476d24,'mutations':_0x50a3e6['m2Prime']},_0x576fc6[_0xfb4ce5][_0x171134+0x1]={..._0x2e8af9,'mutations':_0x50a3e6['m1Prime']};}if(!_0x3d2892)return{'c1Prime':_0x576fc6[_0x24a58b(0x3b3)](_0x237f4a=>_0x237f4a[_0x590d38])[_0x24a58b(0x1cc)](),'c2Prime':_0x5a586b[_0x471382]};return{'c2Prime':_0x5a586b[_0x471382]};}catch(_0x3065e4){console['error'](_0x3065e4);throw _0x3065e4;}}[_0xfc9601(0x2eb)](_0x20f0a6,_0x490839){const _0xdc2154=_0xfc9601,_0x53cf46=_0x20f0a6[_0xdc2154(0x356)],_0x639990=this[_0xdc2154(0x36e)](_0x53cf46,_0x490839);if(isTransformMutationsFailure(_0x639990))return{'error':_0x639990[_0xdc2154(0x2ef)]};return{'m2Prime':_0x639990[_0xdc2154(0x3d9)],'c1Prime':{..._0x20f0a6,'mutations':_0x639990[_0xdc2154(0x39d)]}};}[_0xfc9601(0x34f)](_0xe16314){const _0x5344ff=_0xfc9601;this[_0x5344ff(0x2a1)]['error'](_0x5344ff(0x273)+_0xe16314+_0x5344ff(0x204)+new Date()['toISOString']());const _0x16486f=this['_transformMutationsCache']['get']('m1'),_0x2598b3=this[_0x5344ff(0x2df)][_0x5344ff(0x3a1)]('m2');if(_0x16486f)_0x16486f[_0x5344ff(0x302)]((_0x6054f0,_0x16f5d8)=>{const _0x1dd651=_0x5344ff;this['_logService']['error'](_0x1dd651(0x310)+_0x16f5d8+']:\x20',JSON['stringify'](_0x6054f0));});if(_0x2598b3)_0x2598b3['forEach']((_0x409b57,_0x49254d)=>{const _0x5501ef=_0x5344ff;this['_logService'][_0x5501ef(0x2ef)](_0x5501ef(0x35b)+_0x49254d+':\x20',JSON[_0x5501ef(0x2f0)](_0x409b57));});}[_0xfc9601(0x3f2)](_0x2f766d,_0x4d138d,_0x378b2b){const _0x34a7f1=_0xfc9601;this[_0x34a7f1(0x2a1)][_0x34a7f1(0x2ef)](_0x34a7f1(0x3c6)+_0x378b2b+_0x34a7f1(0x204)+new Date()[_0x34a7f1(0x21a)]()),this[_0x34a7f1(0x2a1)][_0x34a7f1(0x2ef)](_0x34a7f1(0x371)+_0x2f766d),this['_logService'][_0x34a7f1(0x2ef)]('[Error]\x20m2Length:\x20'+_0x4d138d);}};TransformService=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x3df)])],TransformService);function checkChangesetsAligned(_0x3c7e01,_0x4663bc){const _0x51205c=_0xfc9601;if(_0x3c7e01[0x0]['revision']-0x1!==_0x4663bc[0x0][_0x51205c(0x3ce)])return![];return!![];}function makeMatrixArray(_0x10ac4e,_0x1852bf){return new Array(_0x10ac4e)['fill'](void 0x0)['map'](()=>new Array(_0x1852bf));}function makeArray(_0x496d5a){const _0x2b8fc4=_0xfc9601;return Array[_0x2b8fc4(0x276)](_0x496d5a)?_0x496d5a:[_0x496d5a];}function extractActionsBySegmentId(_0x497bbc,_0x560ef3){const _0x1c3ca5=_0xfc9601;if(!Array['isArray'](_0x497bbc))return;const _0x29f98f=_0x497bbc[_0x1c3ca5(0x3e1)](_0x1c3ca5(0x326))>-0x1?_0x497bbc:_0x497bbc[_0x1c3ca5(0x367)](_0x3c547b=>{const _0x4da00c=_0x1c3ca5;return Array['isArray'](_0x3c547b)&&_0x3c547b[_0x4da00c(0x3e1)](_0x4da00c(0x326))>-0x1;});if(!Array[_0x1c3ca5(0x276)](_0x29f98f))return;const _0x43fb36=_0x29f98f[_0x1c3ca5(0x3e1)]('body');if(_0x43fb36===-0x1)return;if((_0x43fb36===0x0?'':_0x29f98f[_0x43fb36-0x1])!==_0x560ef3)return;return _0x29f98f[_0x1c3ca5(0x228)](_0x43fb36);}function transformTextRanges(_0x1ae9d7,_0x1a0508,_0xe1ff69=_0xfc9601(0x34c)){const _0x169192=_0xfc9601;if(_0x1a0508[_0x169192(0x29d)]===0x0)return[];const {segmentId:_0x2c4f91}=_0x1a0508[0x0];if(_0x2c4f91==null)return _0x1a0508;const _0x27ec19=extractActionsBySegmentId(_0x1ae9d7,_0x2c4f91);if(_0x27ec19==null)return _0x1a0508;const _0x9df47d=[];for(const _0x51c0d0 of _0x1a0508){const _0x4162f0=_univerjs_core[_0x169192(0x350)]['transformPosition'](_0x27ec19,_0x51c0d0['startOffset'],_0xe1ff69),_0x111e6f=_univerjs_core[_0x169192(0x350)][_0x169192(0x39f)](_0x27ec19,_0x51c0d0[_0x169192(0x1c7)],_0xe1ff69),_0xfacdcf={..._0x51c0d0,'startOffset':_0x4162f0,'endOffset':_0x111e6f,'collapsed':_0x4162f0===_0x111e6f};_0x9df47d[_0x169192(0x380)](_0xfacdcf);}return _0x9df47d;}const RichTextEditingMutationWithSelf={'m1':_univerjs_docs['RichTextEditingMutation']['id'],'m2':_univerjs_docs[_0xfc9601(0x317)]['id'],'handler'(_0x551a7b,_0x85c4bf){const _0x20bd6a=_0xfc9601;if(_0x551a7b['params'][_0x20bd6a(0x1d0)]!==_0x85c4bf['params']['unitId'])return{'error':new Error('Two\x20mutation\x20need\x20have\x20the\x20same\x20unitId!')};const _0x484393=_univerjs_core['Tools'][_0x20bd6a(0x1cf)](_0x551a7b),_0x4cd822=_univerjs_core[_0x20bd6a(0x1c3)][_0x20bd6a(0x1cf)](_0x85c4bf);return{'m1Prime':{..._0x484393,'params':{..._0x484393[_0x20bd6a(0x3eb)],'actions':_univerjs_core[_0x20bd6a(0x350)]['transform'](_0x484393['params'][_0x20bd6a(0x272)],_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x20bd6a(0x214)),'textRanges':_0x484393[_0x20bd6a(0x3eb)][_0x20bd6a(0x3a7)]?transformTextRanges(_0x4cd822[_0x20bd6a(0x3eb)]['actions'],_0x484393[_0x20bd6a(0x3eb)]['textRanges'],_0x20bd6a(0x34c)):null}},'m2Prime':{..._0x4cd822,'params':{..._0x4cd822[_0x20bd6a(0x3eb)],'actions':_univerjs_core[_0x20bd6a(0x350)][_0x20bd6a(0x295)](_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x484393[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x20bd6a(0x34c)),'textRanges':_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x3a7)]?transformTextRanges(_0x484393['params'][_0x20bd6a(0x272)],_0x4cd822['params'][_0x20bd6a(0x3a7)],'right'):null}}};}},DocAlgorithms=[RichTextEditingMutationWithSelf];let DocTransformController=class DocTransformController extends _univerjs_core['Disposable']{constructor(_0x1098d4){const _0x2e90f9=_0xfc9601;super(),this[_0x2e90f9(0x288)]=_0x1098d4,[...DocAlgorithms][_0x2e90f9(0x302)](_0x32f1ee=>{const _0x2105a0=_0x2e90f9;this[_0x2105a0(0x288)][_0x2105a0(0x3c0)](_0x32f1ee);});}};DocTransformController=__decorate([__decorateParam(0x0,ITransformService)],DocTransformController);const EmptyMutationInfo={'id':_univerjs_sheets[_0xfc9601(0x305)]['id'],'type':_univerjs_core[_0xfc9601(0x21b)][_0xfc9601(0x3d4)],'params':{}},addCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x232e4c,_0x3483c0)=>{const _0x590554=_0xfc9601,_0x241dd0=_0x232e4c[_0x590554(0x3eb)],_0x305706=_0x3483c0['params'],_0xf59a2d={'m1Prime':_0x232e4c,'m2Prime':_0x3483c0};if(_0x241dd0[_0x590554(0x1d0)]!==_0x305706[_0x590554(0x1d0)]||_0x241dd0['subUnitId']!==_0x305706[_0x590554(0x25e)]||_0x241dd0[_0x590554(0x223)]['ref']!==_0x305706[_0x590554(0x223)]['ref'])return _0xf59a2d;if(!_0x241dd0[_0x590554(0x223)][_0x590554(0x22d)]&&!_0x305706[_0x590554(0x223)][_0x590554(0x22d)]){const _0x5a743f=_univerjs_core[_0x590554(0x1c3)][_0x590554(0x1cf)](_0x3483c0);return _0x5a743f[_0x590554(0x3eb)][_0x590554(0x223)][_0x590554(0x22d)]=_0x232e4c['params'][_0x590554(0x223)]['id'],{'m1Prime':[{'id':_univerjs_thread_comment[_0x590554(0x2ba)]['id'],'params':{'unitId':_0x241dd0[_0x590554(0x1d0)],'subUnitId':_0x305706[_0x590554(0x25e)],'commentId':_0x305706[_0x590554(0x223)]['id']}},_0x232e4c,_0x5a743f],'m2Prime':[_0x5a743f]};}return _0xf59a2d;}},addConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler'(_0x160e46,_0x2d4567){const _0x4d8cbc=_0xfc9601;if(_0x160e46['params']['unitId']!==_0x2d4567[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x1d0)]||_0x160e46[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x25e)]!==_0x2d4567[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x25e)])return{'m1Prime':_0x160e46,'m2Prime':_0x2d4567};const {unitId:_0x1c92dc,subUnitId:_0x1c7255}=_0x160e46[_0x4d8cbc(0x3eb)],_0xb1837=_univerjs_core[_0x4d8cbc(0x1c3)][_0x4d8cbc(0x1cf)](_0x160e46),_0x12a77c=_univerjs_core[_0x4d8cbc(0x1c3)]['deepClone'](_0x2d4567),_0x43b7f9=[_0xb1837],_0x5f2bdb={'unitId':_0x1c92dc,'subUnitId':_0x1c7255,'start':{'id':_0x12a77c[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x331)]['cfId'],'type':'before'},'end':{'id':_0x12a77c[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x331)][_0x4d8cbc(0x24d)],'type':'after'}};return _0x43b7f9['push']({'id':_univerjs_sheets_conditional_formatting[_0x4d8cbc(0x23e)]['id'],'params':_0x5f2bdb}),{'m1Prime':_0x43b7f9,'m2Prime':_0x12a77c};}};function applyAddMutationTransform(_0x3f86a9,_0x3a580,_0xf5449a,_0x37722a){const _0x1d6dc5=_0xfc9601,_0x4899ce=new _univerjs_core['ObjectMatrix']();_0xf5449a[_0x1d6dc5(0x302)](_0x37c966=>{const _0x5b57fe=_0x1d6dc5;_0x37c966['ranges'][_0x5b57fe(0x302)](_0x293555=>{const _0x356625=_0x5b57fe;_univerjs_core[_0x356625(0x33f)][_0x356625(0x1d6)](_0x293555,(_0x59e112,_0x21babe)=>{const _0x2b0ded=_0x356625;_0x4899ce[_0x2b0ded(0x2fe)](_0x59e112,_0x21babe,_0x37c966[_0x2b0ded(0x1ec)]);});});}),_0x37722a[_0x1d6dc5(0x302)](_0x48cb92=>{const _0x5da53d=_0x1d6dc5;_0x48cb92[_0x5da53d(0x3a3)]['forEach'](_0x4fa45d=>{const _0x5e35c6=_0x5da53d;_univerjs_core[_0x5e35c6(0x33f)]['foreach'](_0x4fa45d,(_0x5ed434,_0xebe4a8)=>{_0x4899ce['setValue'](_0x5ed434,_0xebe4a8,_0x48cb92['uid']);});});});const _0x21e0cc=[];return _0xf5449a[_0x1d6dc5(0x302)](_0x5e949c=>{const _0x52251c=_0x1d6dc5,_0xbeab8b=(0x0,_univerjs_core[_0x52251c(0x1dc)])(_0x4899ce,_0x43bf0c=>_0x43bf0c===_0x5e949c[_0x52251c(0x1ec)]);if(!_0xbeab8b[_0x52251c(0x29d)]){const _0x15bb92={'ruleId':_0x5e949c[_0x52251c(0x1ec)],'unitId':_0x3f86a9,'subUnitId':_0x3a580};_0x21e0cc[_0x52251c(0x380)]({'id':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'params':_0x15bb92});}else{if(!(0x0,_univerjs_core[_0x52251c(0x353)])(_0xbeab8b,_0x5e949c[_0x52251c(0x3a3)])){const _0x228937={'ruleId':_0x5e949c['uid'],'unitId':_0x3f86a9,'subUnitId':_0x3a580,'payload':{'type':_univerjs_data_validation[_0x52251c(0x28c)][_0x52251c(0x2fc)],'payload':_0xbeab8b}};_0x21e0cc[_0x52251c(0x380)]({'id':_univerjs_data_validation[_0x52251c(0x216)]['id'],'params':_0x228937});}}}),_0x21e0cc;}function mergeAddMutation(_0x1c3cce,_0x26d96a){const _0x500c3f=_0xfc9601,_0x149b07=_univerjs_core[_0x500c3f(0x1c3)][_0x500c3f(0x1cf)](Array[_0x500c3f(0x276)](_0x1c3cce[_0x500c3f(0x3eb)]['rule'])?_0x1c3cce[_0x500c3f(0x3eb)][_0x500c3f(0x331)]:[_0x1c3cce[_0x500c3f(0x3eb)][_0x500c3f(0x331)]]);return _0x26d96a[_0x500c3f(0x302)](_0x536ecc=>{const _0x388140=_0x500c3f;if(_0x536ecc['id']===_univerjs_data_validation[_0x388140(0x216)]['id']){const _0x5de4c0=_0x536ecc,_0x132c99=_0x149b07[_0x388140(0x367)](_0x4241e3=>_0x4241e3['uid']===_0x5de4c0[_0x388140(0x3eb)][_0x388140(0x2d2)]);_0x132c99[_0x388140(0x3a3)]=_0x5de4c0[_0x388140(0x3eb)]['payload'][_0x388140(0x210)];}else{if(_0x536ecc['id']===_univerjs_data_validation[_0x388140(0x252)]['id']){const _0x18ec21=_0x149b07[_0x388140(0x2e3)](_0x4b698d=>_0x4b698d[_0x388140(0x1ec)]===_0x536ecc[_0x388140(0x3eb)][_0x388140(0x2d2)]);_0x149b07[_0x18ec21]=null;}}}),_0x149b07[_0x500c3f(0x3cc)](Boolean)[_0x500c3f(0x29d)]?[{..._0x1c3cce,'params':{..._0x1c3cce[_0x500c3f(0x3eb)],'rule':_0x149b07['filter'](Boolean)}}]:[];}const addDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler':(_0x2d7b99,_0x2d8516)=>{const _0x54ef09=_0xfc9601,_0x4133f5={'m1Prime':_0x2d7b99,'m2Prime':_0x2d8516},_0x37cc4b=_0x2d7b99[_0x54ef09(0x3eb)],_0x5f198e=_0x2d8516[_0x54ef09(0x3eb)];if(_0x37cc4b[_0x54ef09(0x1d0)]!==_0x5f198e[_0x54ef09(0x1d0)]||_0x37cc4b[_0x54ef09(0x25e)]!==_0x5f198e[_0x54ef09(0x25e)])return _0x4133f5;const _0x51b370=_univerjs_core[_0x54ef09(0x1c3)][_0x54ef09(0x1cf)](_0x2d7b99),_0x2a73da=_univerjs_core[_0x54ef09(0x1c3)][_0x54ef09(0x1cf)](_0x2d8516),_0x5405de=_0x37cc4b[_0x54ef09(0x1d0)],_0x3c18cc=_0x5f198e[_0x54ef09(0x25e)],_0xd51b5a=_0x51b370[_0x54ef09(0x3eb)][_0x54ef09(0x331)],_0x8d1d34=_0x2a73da[_0x54ef09(0x3eb)][_0x54ef09(0x331)];if(Array['isArray'](_0xd51b5a)&&Array[_0x54ef09(0x276)](_0x8d1d34))return{'m1Prime':[],'m2Prime':[]};if(Array[_0x54ef09(0x276)](_0xd51b5a)){_0x51b370[_0x54ef09(0x3eb)]['index']=0x0;const _0x17af9c=applyAddMutationTransform(_0x5405de,_0x3c18cc,_0xd51b5a,[_0x8d1d34]);return{'m1Prime':mergeAddMutation(_0x51b370,_0x17af9c),'m2Prime':[..._0x17af9c,_0x2a73da]};}if(Array[_0x54ef09(0x276)](_0x8d1d34)){const _0x4f9c1a=applyAddMutationTransform(_0x5405de,_0x3c18cc,_0x8d1d34,[_0xd51b5a]);return _0x2a73da[_0x54ef09(0x3eb)]['index']=0x0,{'m1Prime':mergeAddMutation(_0x51b370,_0x4f9c1a),'m2Prime':[..._0x4f9c1a,_0x2a73da]};}const _0x4ddb9a=applyAddMutationTransform(_0x5405de,_0x3c18cc,[_0xd51b5a],[_0x8d1d34]);return _0x2a73da[_0x54ef09(0x3eb)]['index']=-0x1,{'m1Prime':mergeAddMutation(_0x51b370,_0x4ddb9a),'m2Prime':[..._0x4ddb9a,_0x2a73da]};}},addDataValidationMutationWithUpdate={'m1':_univerjs_data_validation['AddDataValidationMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x1f24c5,_0x188890)=>{const _0x46b816=_0xfc9601,_0x4d3da9={'m1Prime':_0x1f24c5,'m2Prime':_0x188890},_0x212de6=_0x1f24c5['params'],_0x30dffd=_0x188890['params'];if(_0x212de6['unitId']!==_0x30dffd[_0x46b816(0x1d0)]||_0x212de6[_0x46b816(0x25e)]!==_0x30dffd[_0x46b816(0x25e)])return _0x4d3da9;if(_0x188890[_0x46b816(0x3eb)][_0x46b816(0x210)][_0x46b816(0x266)]===_univerjs_data_validation[_0x46b816(0x28c)]['RANGE']){const {unitId:_0x592161,subUnitId:_0x1ec873}=_0x1f24c5[_0x46b816(0x3eb)],_0x35896c=Array[_0x46b816(0x276)](_0x1f24c5[_0x46b816(0x3eb)][_0x46b816(0x331)])?_0x1f24c5['params']['rule']:[_0x1f24c5[_0x46b816(0x3eb)]['rule']],_0x8f3d04=[],_0x2216d9=new _univerjs_core[(_0x46b816(0x3c2))]();return _0x35896c['forEach'](_0x3deac1=>{const _0x54c714=_0x46b816;_0x3deac1[_0x54c714(0x3a3)][_0x54c714(0x302)](_0x1cd094=>{const _0x528b38=_0x54c714;_univerjs_core[_0x528b38(0x33f)][_0x528b38(0x1d6)](_0x1cd094,(_0x37b4cf,_0x36b38a)=>{const _0x3ed8a4=_0x528b38;_0x2216d9[_0x3ed8a4(0x2fe)](_0x37b4cf,_0x36b38a,_0x3deac1[_0x3ed8a4(0x1ec)]);});});}),_0x188890[_0x46b816(0x3eb)]['payload'][_0x46b816(0x210)][_0x46b816(0x302)](_0x4bd764=>{const _0x17d9e3=_0x46b816;_univerjs_core['Range'][_0x17d9e3(0x1d6)](_0x4bd764,(_0x245cc0,_0x59ba83)=>{const _0x1a6709=_0x17d9e3;_0x2216d9[_0x1a6709(0x2fe)](_0x245cc0,_0x59ba83,_0x188890[_0x1a6709(0x3eb)][_0x1a6709(0x2d2)]);});}),_0x35896c[_0x46b816(0x302)](_0x24f6d9=>{const _0x4ffb97=_0x46b816,_0x2eb810=(0x0,_univerjs_core[_0x4ffb97(0x1dc)])(_0x2216d9,_0x57ad36=>_0x57ad36===_0x24f6d9[_0x4ffb97(0x1ec)]);if(!(0x0,_univerjs_core[_0x4ffb97(0x353)])(_0x2eb810,_0x24f6d9[_0x4ffb97(0x3a3)])){if(_0x2eb810[_0x4ffb97(0x29d)])_0x8f3d04[_0x4ffb97(0x380)]({'id':_univerjs_data_validation[_0x4ffb97(0x216)]['id'],'params':{'unitId':_0x592161,'subUnitId':_0x1ec873,'ruleId':_0x24f6d9['uid'],'payload':{'type':_univerjs_data_validation[_0x4ffb97(0x28c)][_0x4ffb97(0x2fc)],'payload':_0x2eb810}}});else _0x8f3d04['push']({'id':_univerjs_data_validation[_0x4ffb97(0x252)]['id'],'params':{'unitId':_0x592161,'subUnitId':_0x1ec873,'ruleId':_0x24f6d9[_0x4ffb97(0x1ec)]}});}}),{'m1Prime':mergeAddMutation(_0x1f24c5,_0x8f3d04),'m2Prime':[..._0x8f3d04,_0x188890]};}return _0x4d3da9;}},addHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x400)]['id'],'m2':_univerjs_sheets_hyper_link['AddHyperLinkMutation']['id'],'handler':(_0x968789,_0x539dd4)=>{const _0x2231c5=_0xfc9601,_0x44fff8=_0x968789['params'],_0x57b766=_0x539dd4[_0x2231c5(0x3eb)];if(_0x44fff8[_0x2231c5(0x1d0)]===_0x57b766['unitId']&&_0x44fff8[_0x2231c5(0x25e)]===_0x57b766['subUnitId']&&_0x44fff8[_0x2231c5(0x35d)][_0x2231c5(0x2bb)]===_0x57b766['link'][_0x2231c5(0x2bb)]&&_0x44fff8[_0x2231c5(0x35d)]['column']===_0x57b766[_0x2231c5(0x35d)][_0x2231c5(0x2f4)])return{'m2Prime':_0x539dd4,'m1Prime':[]};return{'m1Prime':_0x968789,'m2Prime':_0x539dd4};}},addRangeProtectionWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x264c6b,_0x190c73)=>{const _0x3d64c7=_0xfc9601,_0x2a11e8={'m1Prime':_0x264c6b,'m2Prime':_0x190c73};if(_0x264c6b[_0x3d64c7(0x3eb)]['unitId']!==_0x190c73[_0x3d64c7(0x3eb)][_0x3d64c7(0x1d0)]||_0x264c6b[_0x3d64c7(0x3eb)][_0x3d64c7(0x25e)]!==_0x190c73['params'][_0x3d64c7(0x25e)])return _0x2a11e8;return{'error':new Error(_0x3d64c7(0x1ff))};}},addRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler':(_0x56576e,_0x146003)=>{const _0x775ae=_0xfc9601,_0x249723={'m1Prime':_0x56576e,'m2Prime':_0x146003};if(_0x56576e['params']['unitId']!==_0x146003['params'][_0x775ae(0x1d0)]||_0x56576e['params']['subUnitId']!==_0x146003[_0x775ae(0x3eb)][_0x775ae(0x25e)])return _0x249723;const _0x299d10=_0x56576e[_0x775ae(0x3eb)][_0x775ae(0x2f8)][_0x775ae(0x3b3)](_0x2a6e94=>_0x2a6e94[_0x775ae(0x3a3)])['flat'](),_0x528e2c=_0x146003[_0x775ae(0x3eb)]['rule'][_0x775ae(0x3a3)];if(_0x299d10[_0x775ae(0x3ad)](_0x2eb6c9=>_0x528e2c[_0x775ae(0x3ad)](_0x172f39=>_univerjs_core[_0x775ae(0x330)][_0x775ae(0x3b4)](_0x2eb6c9,_0x172f39))))return{'error':new Error(_0x775ae(0x38c))};return _0x249723;}},addRangeProtectionWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x200)]['id'],'handler':(_0x51a3b2,_0x56b4bf)=>{const _0x1382a1=_0xfc9601,_0x2600a0={'m1Prime':_0x51a3b2,'m2Prime':_0x56b4bf};if(_0x51a3b2['params'][_0x1382a1(0x1d0)]!==_0x56b4bf['params'][_0x1382a1(0x1d0)]||_0x51a3b2[_0x1382a1(0x3eb)]['subUnitId']!==_0x56b4bf[_0x1382a1(0x3eb)][_0x1382a1(0x25e)])return _0x2600a0;const _0x2fa4b1=_0x51a3b2['params']['rules']['map'](_0x3d5435=>_0x3d5435[_0x1382a1(0x3a3)])[_0x1382a1(0x1cc)](),_0x5d502f=_0x56b4bf[_0x1382a1(0x3eb)][_0x1382a1(0x2f8)][_0x1382a1(0x3b3)](_0x3f4aa8=>_0x3f4aa8['ranges'])[_0x1382a1(0x1cc)]();if(_0x2fa4b1[_0x1382a1(0x3ad)](_0x197860=>_0x5d502f[_0x1382a1(0x3ad)](_0x307c18=>_univerjs_core[_0x1382a1(0x330)][_0x1382a1(0x3b4)](_0x197860,_0x307c18))))return{'error':new Error(_0x1382a1(0x267))};return _0x2600a0;}},addRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler':(_0x2f1429,_0x229cc8)=>{const _0x193d90=_0xfc9601,_0x183198={'m1Prime':_0x2f1429,'m2Prime':_0x229cc8};if(_0x2f1429[_0x193d90(0x3eb)]['unitId']!==_0x229cc8['params'][_0x193d90(0x1d0)]||_0x2f1429[_0x193d90(0x3eb)][_0x193d90(0x25e)]!==_0x229cc8[_0x193d90(0x3eb)]['subUnitId'])return _0x183198;const _0x25074c=_0x2f1429['params'][_0x193d90(0x2f8)]['map'](_0x47071c=>_0x47071c[_0x193d90(0x3a3)])[_0x193d90(0x1cc)](),_0x43f037=_0x229cc8[_0x193d90(0x3eb)][_0x193d90(0x3a3)];if(_0x25074c[_0x193d90(0x3ad)](_0x2f44ec=>_0x43f037[_0x193d90(0x3ad)](_0x20ab30=>_univerjs_core[_0x193d90(0x330)]['intersects'](_0x2f44ec,_0x20ab30))))return{'error':new Error(_0x193d90(0x24f))};return _0x183198;}},addRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'handler':(_0x1a00c5,_0x1f1079)=>{const _0x56ba8d=_0xfc9601,_0x5d25f4={'m1Prime':_0x1a00c5,'m2Prime':_0x1f1079};if(_0x1a00c5['params'][_0x56ba8d(0x1d0)]!==_0x1f1079[_0x56ba8d(0x3eb)]['unitId']||_0x1a00c5[_0x56ba8d(0x3eb)][_0x56ba8d(0x25e)]!==_0x1f1079[_0x56ba8d(0x3eb)]['rule'][_0x56ba8d(0x25e)])return _0x5d25f4;return{'error':new Error(_0x56ba8d(0x292))};}},addRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x2aca9,_0x540cf0)=>{const _0x1b4c1c=_0xfc9601,_0x11c273={'m1Prime':_0x2aca9,'m2Prime':_0x540cf0};if(_0x2aca9[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x1d0)]!==_0x540cf0[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x1d0)]||_0x2aca9[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x25e)]!==_0x540cf0['params']['subUnitId'])return _0x11c273;return{'error':new Error(_0x1b4c1c(0x3f6))};}},addRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x15331a,_0x460e4b)=>{const _0x18bf07=_0xfc9601,_0x56962c={'m1Prime':_0x15331a,'m2Prime':_0x460e4b};if(_0x15331a[_0x18bf07(0x3eb)][_0x18bf07(0x1d0)]!==_0x460e4b[_0x18bf07(0x3eb)][_0x18bf07(0x1d0)]||_0x15331a[_0x18bf07(0x3eb)][_0x18bf07(0x25e)]!==_0x460e4b['params'][_0x18bf07(0x25e)])return _0x56962c;const _0x8fa2b8=_0x15331a['params'][_0x18bf07(0x2f8)][_0x18bf07(0x3b3)](_0x595147=>_0x595147[_0x18bf07(0x3a3)])['flat'](),_0x56f33c=_0x460e4b[_0x18bf07(0x3eb)]['range'];if(_0x8fa2b8['some'](_0x4b5ef9=>_univerjs_core[_0x18bf07(0x330)][_0x18bf07(0x3b4)](_0x4b5ef9,_0x56f33c)))return{'error':new Error(_0x18bf07(0x37f))};return _0x56962c;}},addRangeProtectionWithInsertRow={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler':(_0x5b311b,_0x5543b)=>{const _0x185958=_0xfc9601,_0x225783={'m1Prime':_0x5b311b,'m2Prime':_0x5543b};if(_0x5b311b[_0x185958(0x3eb)][_0x185958(0x1d0)]!==_0x5543b['params'][_0x185958(0x1d0)]||_0x5b311b[_0x185958(0x3eb)][_0x185958(0x25e)]!==_0x5543b[_0x185958(0x3eb)]['subUnitId'])return _0x225783;const _0xa55c2a=_0x5b311b['params'][_0x185958(0x2f8)][_0x185958(0x3b3)](_0x54a376=>_0x54a376[_0x185958(0x3a3)])['flat'](),_0x39fc3d=_0x5543b[_0x185958(0x3eb)][_0x185958(0x29a)];if(_0xa55c2a[_0x185958(0x3ad)](_0x3292e2=>_univerjs_core['Rectangle'][_0x185958(0x3b4)](_0x3292e2,_0x39fc3d)))return{'error':new Error(_0x185958(0x1ee))};return _0x225783;}},addRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x3698ee,_0x35b2f7)=>{const _0x1a0457=_0xfc9601,_0x31f5fc={'m1Prime':_0x3698ee,'m2Prime':_0x35b2f7};if(_0x3698ee[_0x1a0457(0x3eb)]['unitId']!==_0x35b2f7['params'][_0x1a0457(0x1d0)]||_0x3698ee['params']['subUnitId']!==_0x35b2f7[_0x1a0457(0x3eb)][_0x1a0457(0x25e)])return _0x31f5fc;const _0x3df5f2=_0x3698ee['params'][_0x1a0457(0x2f8)]['map'](_0x4adcc0=>_0x4adcc0[_0x1a0457(0x3a3)])[_0x1a0457(0x1cc)](),_0x2b9f66=[_0x35b2f7[_0x1a0457(0x3eb)][_0x1a0457(0x202)],_0x35b2f7[_0x1a0457(0x3eb)]['targetRange']];if(_0x3df5f2[_0x1a0457(0x3ad)](_0x51d840=>_0x2b9f66[_0x1a0457(0x3ad)](_0x497199=>_univerjs_core[_0x1a0457(0x330)][_0x1a0457(0x3b4)](_0x51d840,_0x497199))))return{'error':new Error(_0x1a0457(0x1f7))};return _0x31f5fc;}},addRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x542b45,_0x3d9646)=>{const _0x19da55=_0xfc9601,_0xa4be08={'m1Prime':_0x542b45,'m2Prime':_0x3d9646};if(_0x542b45[_0x19da55(0x3eb)][_0x19da55(0x1d0)]!==_0x3d9646[_0x19da55(0x3eb)]['unitId']||_0x542b45['params'][_0x19da55(0x25e)]!==_0x3d9646[_0x19da55(0x3eb)]['from'][_0x19da55(0x25e)])return _0xa4be08;const _0x3d3f8d=_0x542b45[_0x19da55(0x3eb)][_0x19da55(0x2f8)]['map'](_0x2cf7ed=>_0x2cf7ed[_0x19da55(0x3a3)])[_0x19da55(0x1cc)](),_0x6f6713=[new _univerjs_core[(_0x19da55(0x3c2))](_0x3d9646['params'][_0x19da55(0x3a4)][_0x19da55(0x3e6)])[_0x19da55(0x3d1)](),new _univerjs_core[(_0x19da55(0x3c2))](_0x3d9646[_0x19da55(0x3eb)]['to'][_0x19da55(0x3e6)])[_0x19da55(0x3d1)]()];if(_0x3d3f8d[_0x19da55(0x3ad)](_0x22b2b7=>_0x6f6713['some'](_0x104577=>_univerjs_core[_0x19da55(0x330)][_0x19da55(0x3b4)](_0x22b2b7,_0x104577))))return{'error':new Error(_0x19da55(0x293))};return _0xa4be08;}},addRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler':(_0x3dce90,_0x1ac3eb)=>{const _0x53d74c=_0xfc9601,_0x198f08={'m1Prime':_0x3dce90,'m2Prime':_0x1ac3eb};if(_0x3dce90['params'][_0x53d74c(0x1d0)]!==_0x1ac3eb['params'][_0x53d74c(0x1d0)]||_0x3dce90[_0x53d74c(0x3eb)][_0x53d74c(0x25e)]!==_0x1ac3eb['params']['subUnitId'])return _0x198f08;const _0x729399=_0x3dce90['params'][_0x53d74c(0x2f8)][_0x53d74c(0x3b3)](_0x5c9a29=>_0x5c9a29['ranges'])[_0x53d74c(0x1cc)](),_0x2ad443=[_0x1ac3eb['params'][_0x53d74c(0x202)],_0x1ac3eb[_0x53d74c(0x3eb)][_0x53d74c(0x38d)]];if(_0x729399['some'](_0x2a08ea=>_0x2ad443[_0x53d74c(0x3ad)](_0x3b2c86=>_univerjs_core[_0x53d74c(0x330)][_0x53d74c(0x3b4)](_0x2a08ea,_0x3b2c86))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row')};return _0x198f08;}},addRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler':(_0x3e19ae,_0x10ca7b)=>{const _0x4c8b92=_0xfc9601,_0xb8572b={'m1Prime':_0x3e19ae,'m2Prime':_0x10ca7b};if(_0x3e19ae[_0x4c8b92(0x3eb)][_0x4c8b92(0x1d0)]!==_0x10ca7b[_0x4c8b92(0x3eb)]['unitId']||_0x3e19ae[_0x4c8b92(0x3eb)][_0x4c8b92(0x25e)]!==_0x10ca7b[_0x4c8b92(0x3eb)][_0x4c8b92(0x25e)])return _0xb8572b;const _0x4def4e=_0x3e19ae['params'][_0x4c8b92(0x2f8)][_0x4c8b92(0x3b3)](_0x58de38=>_0x58de38['ranges'])[_0x4c8b92(0x1cc)](),_0x5334aa=_0x10ca7b['params'][_0x4c8b92(0x29a)];if(_0x4def4e[_0x4c8b92(0x3ad)](_0x375d3f=>_univerjs_core[_0x4c8b92(0x330)][_0x4c8b92(0x3b4)](_0x375d3f,_0x5334aa)))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col')};return _0xb8572b;}},addRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x559c28,_0x52faac)=>{const _0x4bd0a5=_0xfc9601,_0x4778a1={'m1Prime':_0x559c28,'m2Prime':_0x52faac};if(_0x559c28['params']['unitId']!==_0x52faac[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x1d0)]||_0x559c28[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x25e)]!==_0x52faac[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x25e)])return _0x4778a1;return{'error':new Error(_0x4bd0a5(0x1fa))};}},addRangeProtectionWithRemoveNumfmt={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler':(_0x1ac984,_0x517e80)=>{const _0x48c0e4=_0xfc9601,_0x335aa9={'m1Prime':_0x1ac984,'m2Prime':_0x517e80};if(_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x1d0)]!==_0x517e80[_0x48c0e4(0x3eb)][_0x48c0e4(0x1d0)]||_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x25e)]!==_0x517e80[_0x48c0e4(0x3eb)]['subUnitId'])return _0x335aa9;const _0x23bc39=_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x2f8)]['map'](_0x344258=>_0x344258[_0x48c0e4(0x3a3)])['flat'](),_0x4d91b7=_0x517e80['params'][_0x48c0e4(0x3a3)];if(_0x23bc39['some'](_0x235f46=>_0x4d91b7[_0x48c0e4(0x3ad)](_0x52fe2b=>_univerjs_core[_0x48c0e4(0x330)][_0x48c0e4(0x3b4)](_0x235f46,_0x52fe2b))))return{'error':new Error(_0x48c0e4(0x1e9))};return _0x335aa9;}},addRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler':(_0x536efd,_0x516663)=>{const _0x225dcc=_0xfc9601,_0x53b202={'m1Prime':_0x536efd,'m2Prime':_0x516663};if(_0x536efd[_0x225dcc(0x3eb)]['unitId']!==_0x516663[_0x225dcc(0x3eb)]['unitId']||_0x536efd['params'][_0x225dcc(0x25e)]!==_0x516663['params'][_0x225dcc(0x25e)])return _0x53b202;return{'error':new Error(_0x225dcc(0x1db))};}},addRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler':(_0x1e4c58,_0x4fd33c)=>{const _0xbc678a=_0xfc9601,_0x2497f8={'m1Prime':_0x1e4c58,'m2Prime':_0x4fd33c};if(_0x1e4c58['params'][_0xbc678a(0x1d0)]!==_0x4fd33c['params']['unitId']||_0x1e4c58[_0xbc678a(0x3eb)][_0xbc678a(0x25e)]!==_0x4fd33c[_0xbc678a(0x3eb)]['subUnitId'])return _0x2497f8;const _0x39d0c2=_0x1e4c58[_0xbc678a(0x3eb)][_0xbc678a(0x2f8)][_0xbc678a(0x3b3)](_0x3f91a5=>_0x3f91a5[_0xbc678a(0x3a3)])[_0xbc678a(0x1cc)](),_0x19e407=_0x4fd33c[_0xbc678a(0x3eb)][_0xbc678a(0x3a3)];if(_0x39d0c2[_0xbc678a(0x3ad)](_0x27cdc8=>_0x19e407['some'](_0xac35ab=>_univerjs_core[_0xbc678a(0x330)][_0xbc678a(0x3b4)](_0x27cdc8,_0xac35ab))))return{'error':new Error(_0xbc678a(0x2f7))};return _0x2497f8;}},addRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler':(_0x4740fb,_0xeefb00)=>{const _0x433d52=_0xfc9601,_0x2cb923={'m1Prime':_0x4740fb,'m2Prime':_0xeefb00};if(_0x4740fb[_0x433d52(0x3eb)]['unitId']!==_0xeefb00[_0x433d52(0x3eb)][_0x433d52(0x1d0)]||_0x4740fb[_0x433d52(0x3eb)][_0x433d52(0x25e)]!==_0xeefb00[_0x433d52(0x3eb)][_0x433d52(0x25e)])return _0x2cb923;const _0x5d30a6=_0x4740fb[_0x433d52(0x3eb)][_0x433d52(0x2f8)]['map'](_0xc84563=>_0xc84563['ranges'])[_0x433d52(0x1cc)](),_0x574e6d=_0xeefb00[_0x433d52(0x3eb)]['rule'][_0x433d52(0x3a3)];if(_0x5d30a6[_0x433d52(0x3ad)](_0x4f34e7=>_0x574e6d['some'](_0xc4bbf8=>_univerjs_core[_0x433d52(0x330)][_0x433d52(0x3b4)](_0x4f34e7,_0xc4bbf8))))return{'error':new Error(_0x433d52(0x3c3))};return _0x2cb923;}},addRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['SetFrozenMutation']['id'],'handler':(_0xc7d72,_0x359cf2)=>{const _0xb683a=_0xfc9601,_0x258a1e={'m1Prime':_0xc7d72,'m2Prime':_0x359cf2};if(_0xc7d72[_0xb683a(0x3eb)]['unitId']!==_0x359cf2[_0xb683a(0x3eb)][_0xb683a(0x1d0)]||_0xc7d72['params'][_0xb683a(0x25e)]!==_0x359cf2[_0xb683a(0x3eb)]['subUnitId'])return _0x258a1e;const _0x304dc5=_0xc7d72[_0xb683a(0x3eb)][_0xb683a(0x2f8)]['map'](_0x4e2b72=>_0x4e2b72['ranges'])[_0xb683a(0x1cc)](),_0x38b356=[{'startRow':_0x359cf2[_0xb683a(0x3eb)]['startRow'],'endRow':_0x359cf2[_0xb683a(0x3eb)]['startRow'],'startColumn':_0x359cf2[_0xb683a(0x3eb)][_0xb683a(0x245)],'endColumn':_0x359cf2['params'][_0xb683a(0x245)]}];if(_0x304dc5['some'](_0x41193a=>_0x38b356[_0xb683a(0x3ad)](_0x3a6f69=>_univerjs_core['Rectangle'][_0xb683a(0x3b4)](_0x41193a,_0x3a6f69))))return{'error':new Error(_0xb683a(0x28a))};return _0x258a1e;}},addRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x772cd9,_0x1b274d)=>{const _0x4d14a3=_0xfc9601,_0x14a16f={'m1Prime':_0x772cd9,'m2Prime':_0x1b274d};if(_0x772cd9['params'][_0x4d14a3(0x1d0)]!==_0x1b274d[_0x4d14a3(0x3eb)][_0x4d14a3(0x1d0)]||_0x772cd9[_0x4d14a3(0x3eb)][_0x4d14a3(0x25e)]!==_0x1b274d[_0x4d14a3(0x3eb)]['subUnitId'])return _0x14a16f;return{'error':new Error(_0x4d14a3(0x1f8))};}},addRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x4f4e1e,_0xc3e51e)=>{const _0x4510f9=_0xfc9601,_0x225220={'m1Prime':_0x4f4e1e,'m2Prime':_0xc3e51e};if(_0x4f4e1e[_0x4510f9(0x3eb)]['unitId']!==_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x1d0)]||_0x4f4e1e[_0x4510f9(0x3eb)][_0x4510f9(0x25e)]!==_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x25e)])return _0x225220;const _0x4d3961=_0x4f4e1e[_0x4510f9(0x3eb)]['rules'][_0x4510f9(0x3b3)](_0xcbee9b=>_0xcbee9b['ranges'])['flat'](),_0x55a79b=_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x331)][_0x4510f9(0x3a3)];if(_0x4d3961[_0x4510f9(0x3ad)](_0x3da529=>_0x55a79b[_0x4510f9(0x3ad)](_0x2ae262=>_univerjs_core[_0x4510f9(0x330)][_0x4510f9(0x3b4)](_0x3da529,_0x2ae262))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection')};return _0x225220;}},addRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler':(_0x5d4d05,_0x4e9a8e)=>{const _0x1721b7=_0xfc9601,_0x40f090={'m1Prime':_0x5d4d05,'m2Prime':_0x4e9a8e};if(_0x5d4d05[_0x1721b7(0x3eb)][_0x1721b7(0x1d0)]!==_0x4e9a8e['params'][_0x1721b7(0x1d0)]||_0x5d4d05['params'][_0x1721b7(0x25e)]!==_0x4e9a8e[_0x1721b7(0x3eb)][_0x1721b7(0x25e)])return _0x40f090;const _0x440e20=_0x5d4d05['params'][_0x1721b7(0x2f8)][_0x1721b7(0x3b3)](_0x43a3b9=>_0x43a3b9['ranges'])[_0x1721b7(0x1cc)](),_0x1c1e3e=new _univerjs_core[(_0x1721b7(0x3c2))](_0x4e9a8e['params'][_0x1721b7(0x31f)])[_0x1721b7(0x3d1)]();if(_0x440e20[_0x1721b7(0x3ad)](_0x546544=>_univerjs_core[_0x1721b7(0x330)][_0x1721b7(0x3b4)](_0x546544,_0x1c1e3e)))return{'error':new Error(_0x1721b7(0x315))};return _0x40f090;}},addRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x2f0d66,_0xa35a4e)=>{const _0xbb71eb=_0xfc9601,_0x4d6e28={'m1Prime':_0x2f0d66,'m2Prime':_0xa35a4e};if(_0x2f0d66[_0xbb71eb(0x3eb)][_0xbb71eb(0x1d0)]!==_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x1d0)]||_0x2f0d66[_0xbb71eb(0x3eb)][_0xbb71eb(0x25e)]!==_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x25e)])return _0x4d6e28;const _0x5ac570=_0x2f0d66['params'][_0xbb71eb(0x2f8)]['map'](_0x37bfd8=>_0x37bfd8[_0xbb71eb(0x3a3)])['flat'](),_0x234f40=_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x3a3)];if(_0x5ac570[_0xbb71eb(0x3ad)](_0x41fff7=>_0x234f40[_0xbb71eb(0x3ad)](_0xc70e1=>_univerjs_core[_0xbb71eb(0x330)]['intersects'](_0x41fff7,_0xc70e1))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};return _0x4d6e28;}},addRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x2df1e8,_0x150906)=>{const _0x5bcca7=_0xfc9601,_0xcc33ca={'m1Prime':_0x2df1e8,'m2Prime':_0x150906};if(_0x2df1e8[_0x5bcca7(0x3eb)][_0x5bcca7(0x1d0)]!==_0x150906[_0x5bcca7(0x3eb)][_0x5bcca7(0x1d0)]||_0x2df1e8['params'][_0x5bcca7(0x25e)]!==_0x150906[_0x5bcca7(0x3eb)][_0x5bcca7(0x25e)])return _0xcc33ca;return{'error':new Error(_0x5bcca7(0x29c))};}},addRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x33b71a,_0x5026eb)=>{const _0x50d555=_0xfc9601,_0xad51c0={'m1Prime':_0x33b71a,'m2Prime':_0x5026eb};if(_0x33b71a['params']['unitId']!==_0x5026eb[_0x50d555(0x3eb)][_0x50d555(0x1d0)]||_0x33b71a[_0x50d555(0x3eb)][_0x50d555(0x25e)]!==_0x5026eb[_0x50d555(0x3eb)][_0x50d555(0x25e)])return _0xad51c0;return{'error':new Error(_0x50d555(0x297))};}},addWorksheetMergeMutationWithSelf={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x5ba144,_0x194e48){const _0x3f479d=_0xfc9601,_0x2337bb=_univerjs_core['Tools'][_0x3f479d(0x1cf)](_0x5ba144),_0x18e60c=_univerjs_core[_0x3f479d(0x1c3)]['deepClone'](_0x194e48);if(_0x5ba144[_0x3f479d(0x3eb)][_0x3f479d(0x1d0)]!==_0x194e48['params'][_0x3f479d(0x1d0)]||_0x5ba144['params'][_0x3f479d(0x25e)]!==_0x194e48['params']['subUnitId'])return{'m1Prime':_0x2337bb,'m2Prime':_0x18e60c};const _0x2ff5c0=_0x2337bb[_0x3f479d(0x3eb)][_0x3f479d(0x3a3)],_0x45b074=_0x18e60c[_0x3f479d(0x3eb)][_0x3f479d(0x3a3)],_0x34a567=[_0x18e60c],_0xbbb63e=new Set();for(let _0x56b963=0x0;_0x56b963<_0x2ff5c0[_0x3f479d(0x29d)];_0x56b963++)for(let _0x42050f=0x0;_0x42050f<_0x45b074[_0x3f479d(0x29d)];_0x42050f++)if(_univerjs_core['Rectangle'][_0x3f479d(0x3b4)](_0x2ff5c0[_0x56b963],_0x45b074[_0x42050f])){_0xbbb63e[_0x3f479d(0x3b0)](_0x2ff5c0[_0x56b963]),_0x2ff5c0[_0x3f479d(0x247)](_0x56b963,0x1),_0x56b963--;break;}if(_0xbbb63e[_0x3f479d(0x3a5)]>0x0)_0x34a567[_0x3f479d(0x398)]({'id':_univerjs_sheets[_0x3f479d(0x374)]['id'],'params':{'unitId':_0x5ba144[_0x3f479d(0x3eb)][_0x3f479d(0x1d0)],'subUnitId':_0x5ba144['params'][_0x3f479d(0x25e)],'ranges':Array[_0x3f479d(0x3a4)](_0xbbb63e)}});if(_0x2ff5c0[_0x3f479d(0x29d)]===0x0)_0x2337bb['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x2337bb,'m2Prime':_0x34a567[_0x3f479d(0x29d)]>0x1?_0x34a567:_0x18e60c};}},addWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x4726bb,_0x23e96a){const _0xbe19cf=_0xfc9601,_0xbcb95d=_univerjs_core[_0xbe19cf(0x1c3)][_0xbe19cf(0x1cf)](_0x4726bb),_0x1c6db7=_univerjs_core[_0xbe19cf(0x1c3)][_0xbe19cf(0x1cf)](_0x23e96a);if(_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x1d0)]!==_0x23e96a[_0xbe19cf(0x3eb)][_0xbe19cf(0x1d0)]||_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)]!==_0x23e96a[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)])return{'m1Prime':_0xbcb95d,'m2Prime':_0x1c6db7};const _0x55cc99=_0x4726bb[_0xbe19cf(0x3eb)]['unitId'],_0x15bcd4=_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)],_0x4da82a=[_0x1c6db7],_0x2c71df=[],_0x55ab59=[];_0xbcb95d[_0xbe19cf(0x3eb)]['ranges']['forEach'](_0xdad25e=>{const _0x56bf71=_0xbe19cf,_0x176376=_0x23e96a['params'][_0x56bf71(0x29a)],_0x49deca=_0x176376[_0x56bf71(0x22a)]-_0x176376[_0x56bf71(0x245)]+0x1;if(_0x176376[_0x56bf71(0x245)]<=_0xdad25e[_0x56bf71(0x245)])_0x2c71df['push']({..._0xdad25e}),_0x55ab59[_0x56bf71(0x380)]({..._0xdad25e,'startColumn':_0xdad25e[_0x56bf71(0x245)]+_0x49deca,'endColumn':_0xdad25e[_0x56bf71(0x22a)]+_0x49deca}),_0xdad25e[_0x56bf71(0x245)]=_0xdad25e[_0x56bf71(0x245)]+_0x49deca,_0xdad25e[_0x56bf71(0x22a)]=_0xdad25e['endColumn']+_0x49deca;else _0x176376[_0x56bf71(0x245)]>_0xdad25e[_0x56bf71(0x245)]&&_0x176376[_0x56bf71(0x245)]<=_0xdad25e[_0x56bf71(0x22a)]&&(_0x2c71df[_0x56bf71(0x380)]({..._0xdad25e}),_0x55ab59[_0x56bf71(0x380)]({..._0xdad25e,'endColumn':_0xdad25e[_0x56bf71(0x22a)]+_0x49deca}),_0xdad25e['endColumn']=_0xdad25e[_0x56bf71(0x22a)]+_0x49deca);});if(_0x2c71df[_0xbe19cf(0x29d)]>0x0)_0x4da82a[_0xbe19cf(0x398)]({'id':_univerjs_sheets[_0xbe19cf(0x374)]['id'],'params':{'unitId':_0x55cc99,'subUnitId':_0x15bcd4,'ranges':_0x2c71df}});if(_0x55ab59[_0xbe19cf(0x29d)]>0x0)_0x4da82a[_0xbe19cf(0x380)]({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x55cc99,'subUnitId':_0x15bcd4,'ranges':_0x55ab59}});return{'m1Prime':_0xbcb95d,'m2Prime':_0x4da82a['length']>0x1?_0x4da82a:_0x4da82a[0x0]};}},addWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler'(_0x34dd08,_0x18464d){const _0x4a8733=_0xfc9601,_0x4a565d=_univerjs_core[_0x4a8733(0x1c3)]['deepClone'](_0x34dd08),_0x31b64e=_univerjs_core[_0x4a8733(0x1c3)][_0x4a8733(0x1cf)](_0x18464d);if(_0x34dd08[_0x4a8733(0x3eb)]['unitId']!==_0x18464d[_0x4a8733(0x3eb)][_0x4a8733(0x1d0)]||_0x34dd08['params'][_0x4a8733(0x25e)]!==_0x18464d[_0x4a8733(0x3eb)][_0x4a8733(0x25e)])return{'m1Prime':_0x4a565d,'m2Prime':_0x31b64e};const _0x3ba798=_0x34dd08[_0x4a8733(0x3eb)][_0x4a8733(0x1d0)],_0x1c05cf=_0x34dd08[_0x4a8733(0x3eb)]['subUnitId'],_0x5163cb=[_0x31b64e],_0xd109b2=[],_0x1f4ef7=[];_0x4a565d[_0x4a8733(0x3eb)]['ranges'][_0x4a8733(0x302)](_0x51b7cc=>{const _0x21525c=_0x4a8733,_0x5dc0c5=_0x18464d['params'][_0x21525c(0x29a)],_0x2acf91=_0x5dc0c5[_0x21525c(0x3aa)]-_0x5dc0c5['startRow']+0x1;if(_0x5dc0c5[_0x21525c(0x357)]<=_0x51b7cc[_0x21525c(0x357)])_0xd109b2[_0x21525c(0x380)]({..._0x51b7cc}),_0x1f4ef7['push']({..._0x51b7cc,'startRow':_0x51b7cc['startRow']+_0x2acf91,'endRow':_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91}),_0x51b7cc[_0x21525c(0x357)]=_0x51b7cc[_0x21525c(0x357)]+_0x2acf91,_0x51b7cc[_0x21525c(0x3aa)]=_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91;else _0x5dc0c5[_0x21525c(0x357)]>_0x51b7cc[_0x21525c(0x357)]&&_0x5dc0c5[_0x21525c(0x357)]<=_0x51b7cc[_0x21525c(0x3aa)]&&(_0xd109b2[_0x21525c(0x380)]({..._0x51b7cc}),_0x1f4ef7[_0x21525c(0x380)]({..._0x51b7cc,'endRow':_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91}),_0x51b7cc['endRow']=_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91);});if(_0xd109b2[_0x4a8733(0x29d)]>0x0)_0x5163cb[_0x4a8733(0x398)]({'id':_univerjs_sheets[_0x4a8733(0x374)]['id'],'params':{'unitId':_0x3ba798,'subUnitId':_0x1c05cf,'ranges':_0xd109b2}});if(_0x1f4ef7['length']>0x0)_0x5163cb['push']({'id':_univerjs_sheets[_0x4a8733(0x379)]['id'],'params':{'unitId':_0x3ba798,'subUnitId':_0x1c05cf,'ranges':_0x1f4ef7}});return{'m1Prime':_0x4a565d,'m2Prime':_0x5163cb[_0x4a8733(0x29d)]>0x1?_0x5163cb:_0x5163cb[0x0]};}},addWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x4a640c,_0x108559){const _0x299e3a=_0xfc9601,_0x53b55f=_univerjs_core[_0x299e3a(0x1c3)][_0x299e3a(0x1cf)](_0x4a640c),_0x55b87b=_univerjs_core['Tools']['deepClone'](_0x108559);if(_0x4a640c[_0x299e3a(0x3eb)]['unitId']!==_0x108559[_0x299e3a(0x3eb)]['unitId']||_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)]!==_0x108559[_0x299e3a(0x3eb)][_0x299e3a(0x25e)])return{'m1Prime':_0x53b55f,'m2Prime':_0x55b87b};const _0x57a635=[],_0x1b38d4=[],_0x43c586=[_0x55b87b];for(let _0x4f260c=0x0;_0x4f260c<_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)]['length'];_0x4f260c++){const _0x37565e=_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x4f260c],{sourceRange:_0x412cee,targetRange:_0x2cb98a}=_0x108559['params'];if(_univerjs_core[_0x299e3a(0x330)][_0x299e3a(0x3b4)](_0x37565e,_0x412cee)||_univerjs_core[_0x299e3a(0x330)][_0x299e3a(0x3b4)](_0x37565e,_0x2cb98a))_0x57a635['push']({..._0x37565e}),_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x299e3a(0x247)](_0x4f260c,0x1),_0x4f260c--;else{if(_0x412cee[_0x299e3a(0x245)]<_0x37565e['startColumn']&&_0x2cb98a[_0x299e3a(0x245)]>_0x37565e[_0x299e3a(0x22a)])_0x57a635[_0x299e3a(0x380)]({..._0x37565e}),_0x1b38d4[_0x299e3a(0x380)]({..._0x37565e,'startColumn':_0x37565e['startColumn']-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee['startColumn']+0x1),'endColumn':_0x37565e[_0x299e3a(0x22a)]-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1)}),_0x37565e[_0x299e3a(0x245)]=_0x37565e[_0x299e3a(0x245)]-(_0x412cee['endColumn']-_0x412cee[_0x299e3a(0x245)]+0x1),_0x37565e['endColumn']=_0x37565e[_0x299e3a(0x22a)]-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1);else _0x412cee[_0x299e3a(0x245)]>_0x37565e['endColumn']&&_0x2cb98a[_0x299e3a(0x22a)]<_0x37565e[_0x299e3a(0x245)]&&(_0x57a635[_0x299e3a(0x380)]({..._0x37565e}),_0x1b38d4['push']({..._0x37565e,'startColumn':_0x37565e[_0x299e3a(0x245)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1),'endColumn':_0x37565e['endColumn']+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1)}),_0x37565e[_0x299e3a(0x245)]=_0x37565e[_0x299e3a(0x245)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1),_0x37565e[_0x299e3a(0x22a)]=_0x37565e[_0x299e3a(0x22a)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1));}}if(_0x57a635[_0x299e3a(0x29d)]>0x0)_0x43c586[_0x299e3a(0x398)]({'id':_univerjs_sheets[_0x299e3a(0x374)]['id'],'params':{'unitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x1d0)],'subUnitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)],'ranges':_0x57a635}});if(_0x1b38d4[_0x299e3a(0x29d)]>0x0)_0x43c586[_0x299e3a(0x380)]({'id':_univerjs_sheets[_0x299e3a(0x379)]['id'],'params':{'unitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x1d0)],'subUnitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)],'ranges':_0x1b38d4}});if(_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x299e3a(0x29d)]===0x0)_0x53b55f['id']=_univerjs_sheets[_0x299e3a(0x305)]['id'];return{'m1Prime':_0x53b55f,'m2Prime':_0x43c586['length']>0x1?_0x43c586:_0x43c586[0x0]};}},addWorksheetMergeMutationWithMoveRangeMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0x2441c9,_0x238c6b){const _0xb00bb1=_0xfc9601,_0x2bfdc1=_univerjs_core['Tools'][_0xb00bb1(0x1cf)](_0x2441c9),_0x241b61=_univerjs_core['Tools'][_0xb00bb1(0x1cf)](_0x238c6b);if(_0x2441c9['params'][_0xb00bb1(0x1d0)]!==_0x238c6b[_0xb00bb1(0x3eb)]['unitId'])return{'m1Prime':_0x2bfdc1,'m2Prime':_0x241b61};const _0x53c480=[],_0x46632d=[_0x241b61],_0xf3ab03=new _univerjs_core[(_0xb00bb1(0x3c2))](_0x238c6b['params']['from']['value'])['getDataRange'](),_0x27ebf3=new _univerjs_core[(_0xb00bb1(0x3c2))](_0x238c6b[_0xb00bb1(0x3eb)]['to'][_0xb00bb1(0x3e6)])[_0xb00bb1(0x3d1)]();for(let _0x5a670d=0x0;_0x5a670d<_0x2bfdc1[_0xb00bb1(0x3eb)][_0xb00bb1(0x3a3)][_0xb00bb1(0x29d)];_0x5a670d++){const _0x5bcccd=_0x2bfdc1['params']['ranges'][_0x5a670d];(_univerjs_core[_0xb00bb1(0x330)][_0xb00bb1(0x3b4)](_0xf3ab03,_0x5bcccd)||_univerjs_core[_0xb00bb1(0x330)]['intersects'](_0x27ebf3,_0x5bcccd))&&(_0x53c480[_0xb00bb1(0x380)](_0x5bcccd),_0x2bfdc1['params']['ranges'][_0xb00bb1(0x247)](_0x5a670d,0x1),_0x5a670d--);}if(_0x53c480[_0xb00bb1(0x29d)]>0x0)_0x46632d['unshift']({'id':_univerjs_sheets[_0xb00bb1(0x374)]['id'],'params':{'unitId':_0x2441c9[_0xb00bb1(0x3eb)]['unitId'],'subUnitId':_0x2441c9['params'][_0xb00bb1(0x25e)],'ranges':_0x53c480}});if(_0x2bfdc1[_0xb00bb1(0x3eb)]['ranges']['length']===0x0)_0x2bfdc1['id']=_univerjs_sheets[_0xb00bb1(0x305)]['id'];return{'m1Prime':_0x2bfdc1,'m2Prime':_0x46632d[_0xb00bb1(0x29d)]>0x1?_0x46632d:_0x46632d[0x0]};}},addWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler'(_0x30cb5d,_0x591df9){const _0x1cae39=_0xfc9601,_0x4e3088=_univerjs_core[_0x1cae39(0x1c3)][_0x1cae39(0x1cf)](_0x30cb5d),_0x55d252=_univerjs_core[_0x1cae39(0x1c3)]['deepClone'](_0x591df9);if(_0x30cb5d[_0x1cae39(0x3eb)]['unitId']!==_0x591df9[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)]||_0x30cb5d[_0x1cae39(0x3eb)]['subUnitId']!==_0x591df9[_0x1cae39(0x3eb)][_0x1cae39(0x25e)])return{'m1Prime':_0x4e3088,'m2Prime':_0x55d252};const _0x2cda1d=[],_0x3d4721=[],_0x1e482f=[_0x55d252];for(let _0x41880f=0x0;_0x41880f<_0x4e3088[_0x1cae39(0x3eb)]['ranges'][_0x1cae39(0x29d)];_0x41880f++){const _0x5c7b52=_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x41880f],{sourceRange:_0xf44744,targetRange:_0x31881f}=_0x591df9['params'];if(_univerjs_core['Rectangle']['intersects'](_0x5c7b52,_0xf44744)||_univerjs_core['Rectangle'][_0x1cae39(0x3b4)](_0x5c7b52,_0x31881f))_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x1cae39(0x247)](_0x41880f,0x1),_0x41880f--;else{if(_0xf44744[_0x1cae39(0x357)]<_0x5c7b52[_0x1cae39(0x357)]&&_0x31881f[_0x1cae39(0x357)]>_0x5c7b52[_0x1cae39(0x3aa)])_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x3d4721[_0x1cae39(0x380)]({..._0x5c7b52,'startRow':_0x5c7b52['startRow']-(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744['startRow']+0x1),'endRow':_0x5c7b52[_0x1cae39(0x3aa)]-(_0xf44744['endRow']-_0xf44744[_0x1cae39(0x357)]+0x1)}),_0x5c7b52[_0x1cae39(0x357)]=_0x5c7b52[_0x1cae39(0x357)]-(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),_0x5c7b52[_0x1cae39(0x3aa)]=_0x5c7b52[_0x1cae39(0x3aa)]-(_0xf44744['endRow']-_0xf44744[_0x1cae39(0x357)]+0x1);else _0xf44744[_0x1cae39(0x357)]>_0x5c7b52[_0x1cae39(0x3aa)]&&_0x31881f[_0x1cae39(0x3aa)]<_0x5c7b52['startRow']&&(_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x3d4721[_0x1cae39(0x380)]({..._0x5c7b52,'startRow':_0x5c7b52[_0x1cae39(0x357)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),'endRow':_0x5c7b52[_0x1cae39(0x3aa)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1)}),_0x5c7b52['startRow']=_0x5c7b52[_0x1cae39(0x357)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),_0x5c7b52[_0x1cae39(0x3aa)]=_0x5c7b52[_0x1cae39(0x3aa)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1));}}if(_0x2cda1d[_0x1cae39(0x29d)]>0x0)_0x1e482f[_0x1cae39(0x398)]({'id':_univerjs_sheets[_0x1cae39(0x374)]['id'],'params':{'unitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)],'subUnitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x25e)],'ranges':_0x2cda1d}});if(_0x3d4721[_0x1cae39(0x29d)]>0x0)_0x1e482f[_0x1cae39(0x380)]({'id':_univerjs_sheets[_0x1cae39(0x379)]['id'],'params':{'unitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)],'subUnitId':_0x30cb5d['params'][_0x1cae39(0x25e)],'ranges':_0x3d4721}});if(_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x1cae39(0x29d)]===0x0)_0x4e3088['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x4e3088,'m2Prime':_0x1e482f['length']>0x1?_0x1e482f:_0x1e482f[0x0]};}};function isMergeCell(_0x55a39e){const _0x58e9f0=_0xfc9601;if(_0x55a39e[_0x58e9f0(0x245)]>_0x55a39e[_0x58e9f0(0x22a)]||_0x55a39e['startRow']>_0x55a39e[_0x58e9f0(0x3aa)])return![];return!(_0x55a39e['startRow']===_0x55a39e[_0x58e9f0(0x3aa)]&&_0x55a39e[_0x58e9f0(0x245)]===_0x55a39e['endColumn']);}const addWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler'(_0x34ccbd,_0x44cd6d){const _0x1521d7=_0xfc9601,_0x2bcf63=_univerjs_core['Tools']['deepClone'](_0x34ccbd),_0x15fb1a=_univerjs_core[_0x1521d7(0x1c3)]['deepClone'](_0x44cd6d);if(_0x34ccbd['params']['unitId']!==_0x44cd6d[_0x1521d7(0x3eb)][_0x1521d7(0x1d0)]||_0x34ccbd['params'][_0x1521d7(0x25e)]!==_0x44cd6d['params'][_0x1521d7(0x25e)])return{'m1Prime':_0x2bcf63,'m2Prime':_0x15fb1a};const _0x270553=_0x34ccbd[_0x1521d7(0x3eb)]['unitId'],_0x5c4ee8=_0x34ccbd[_0x1521d7(0x3eb)][_0x1521d7(0x25e)],_0xece427=[_0x15fb1a],_0x3b4b5d=[],_0x26e204=[];for(let _0x4e3bd5=0x0;_0x4e3bd5<_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)]['length'];_0x4e3bd5++){const _0x4722e1=_0x2bcf63[_0x1521d7(0x3eb)]['ranges'][_0x4e3bd5],_0x500554=_0x44cd6d[_0x1521d7(0x3eb)][_0x1521d7(0x29a)],_0x147158=_0x500554[_0x1521d7(0x22a)]-_0x500554['startColumn']+0x1;if(_0x500554['startColumn']<_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x245)])_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1}),_0x26e204[_0x1521d7(0x380)]({..._0x4722e1,'startColumn':_0x4722e1[_0x1521d7(0x245)]-_0x147158,'endColumn':_0x4722e1['endColumn']-_0x147158}),_0x4722e1['startColumn']=_0x4722e1[_0x1521d7(0x245)]-_0x147158,_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1['endColumn']-_0x147158;else{if(_0x500554[_0x1521d7(0x245)]<_0x4722e1[_0x1521d7(0x245)]&&_0x500554['endColumn']>=_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<=_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d['push']({..._0x4722e1});const _0x33f0f1={..._0x4722e1,'startColumn':_0x500554[_0x1521d7(0x245)],'endColumn':_0x4722e1[_0x1521d7(0x22a)]-_0x147158};isMergeCell(_0x33f0f1)&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]?(_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]&&_0x26e204[_0x1521d7(0x380)](_0x33f0f1),_0x4722e1[_0x1521d7(0x245)]=_0x500554['startColumn'],_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1[_0x1521d7(0x22a)]-_0x147158):(_0x2bcf63['params'][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1});const _0x1891c4={..._0x4722e1,'endColumn':_0x4722e1[_0x1521d7(0x22a)]-_0x147158};isMergeCell(_0x1891c4)?(_0x26e204[_0x1521d7(0x380)](_0x1891c4),_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1[_0x1521d7(0x22a)]-_0x147158):(_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>=_0x4722e1['startColumn']&&_0x500554[_0x1521d7(0x245)]<=_0x4722e1[_0x1521d7(0x22a)]&&_0x500554[_0x1521d7(0x22a)]>_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1});const _0x48578a={..._0x4722e1,'endColumn':_0x500554[_0x1521d7(0x245)]-0x1};isMergeCell(_0x48578a)&&_0x500554[_0x1521d7(0x245)]>_0x4722e1[_0x1521d7(0x245)]?(_0x26e204[_0x1521d7(0x380)](_0x48578a),_0x4722e1[_0x1521d7(0x22a)]=_0x500554[_0x1521d7(0x245)]-0x1):(_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)]['splice'](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>_0x4722e1['endColumn']){}else _0x500554[_0x1521d7(0x245)]<=_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]>=_0x4722e1['endColumn']&&(_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1}),_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}}}}}if(_0x3b4b5d[_0x1521d7(0x29d)]>0x0)_0xece427[_0x1521d7(0x398)]({'id':_univerjs_sheets[_0x1521d7(0x374)]['id'],'params':{'unitId':_0x270553,'subUnitId':_0x5c4ee8,'ranges':_0x3b4b5d}});if(_0x26e204[_0x1521d7(0x29d)]>0x0)_0xece427[_0x1521d7(0x380)]({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x270553,'subUnitId':_0x5c4ee8,'ranges':_0x26e204}});if(_0x2bcf63['params'][_0x1521d7(0x3a3)]['length']===0x0)_0x2bcf63['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x2bcf63,'m2Prime':_0xece427[_0x1521d7(0x29d)]>0x1?_0xece427:_0xece427[0x0]};}},addWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler'(_0x1e460c,_0x337157){const _0x393724=_0xfc9601,_0x4b6e3f=_univerjs_core[_0x393724(0x1c3)][_0x393724(0x1cf)](_0x1e460c),_0x52f712=_univerjs_core['Tools'][_0x393724(0x1cf)](_0x337157);if(_0x1e460c[_0x393724(0x3eb)][_0x393724(0x1d0)]!==_0x337157[_0x393724(0x3eb)]['unitId']||_0x1e460c['params'][_0x393724(0x25e)]!==_0x337157[_0x393724(0x3eb)]['subUnitId'])return{'m1Prime':_0x4b6e3f,'m2Prime':_0x52f712};const _0x5991bb=_0x1e460c[_0x393724(0x3eb)][_0x393724(0x1d0)],_0x214634=_0x1e460c[_0x393724(0x3eb)][_0x393724(0x25e)],_0x13fe29=[_0x52f712],_0x28ac33=[],_0x55258d=[];for(let _0x7d409e=0x0;_0x7d409e<_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)]['length'];_0x7d409e++){const _0x175ed8=_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)][_0x7d409e],_0xec13d4=_0x337157[_0x393724(0x3eb)][_0x393724(0x29a)],_0x10a07a=_0xec13d4['endRow']-_0xec13d4[_0x393724(0x357)]+0x1;if(_0xec13d4[_0x393724(0x357)]<_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]<_0x175ed8[_0x393724(0x357)])_0x28ac33[_0x393724(0x380)]({..._0x175ed8}),_0x55258d[_0x393724(0x380)]({..._0x175ed8,'startRow':_0x175ed8[_0x393724(0x357)]-_0x10a07a,'endRow':_0x175ed8[_0x393724(0x3aa)]-_0x10a07a}),_0x175ed8[_0x393724(0x357)]=_0x175ed8['startRow']-_0x10a07a,_0x175ed8[_0x393724(0x3aa)]=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a;else{if(_0xec13d4[_0x393724(0x357)]<_0x175ed8['startRow']&&_0xec13d4['endRow']>=_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]<=_0x175ed8['endRow']){_0x28ac33[_0x393724(0x380)]({..._0x175ed8});const _0x29d709={..._0x175ed8,'startRow':_0xec13d4['startRow'],'endRow':_0x175ed8['endRow']-_0x10a07a};isMergeCell(_0x29d709)&&_0xec13d4['endRow']<_0x175ed8['endRow']?(_0xec13d4['endRow']<_0x175ed8[_0x393724(0x3aa)]&&_0x55258d['push'](_0x29d709),_0x175ed8[_0x393724(0x357)]=_0xec13d4[_0x393724(0x357)],_0x175ed8[_0x393724(0x3aa)]=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a):(_0x4b6e3f['params'][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4[_0x393724(0x357)]>_0x175ed8[_0x393724(0x357)]&&_0xec13d4[_0x393724(0x3aa)]<_0x175ed8[_0x393724(0x3aa)]){_0x28ac33['push']({..._0x175ed8});const _0x4537e9={..._0x175ed8,'endRow':_0x175ed8[_0x393724(0x3aa)]-_0x10a07a};isMergeCell(_0x4537e9)?(_0x55258d[_0x393724(0x380)](_0x4537e9),_0x175ed8['endRow']=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a):(_0x4b6e3f['params'][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4['startRow']>=_0x175ed8[_0x393724(0x357)]&&_0xec13d4['startRow']<=_0x175ed8['endRow']&&_0xec13d4[_0x393724(0x3aa)]>_0x175ed8[_0x393724(0x3aa)]){_0x28ac33['push']({..._0x175ed8});const _0x3f031f={..._0x175ed8,'endRow':_0xec13d4[_0x393724(0x357)]-0x1};isMergeCell(_0x3f031f)&&_0xec13d4['startRow']>_0x175ed8[_0x393724(0x357)]?(_0x55258d['push'](_0x3f031f),_0x175ed8[_0x393724(0x3aa)]=_0xec13d4[_0x393724(0x357)]-0x1):(_0x4b6e3f['params'][_0x393724(0x3a3)]['splice'](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4[_0x393724(0x357)]>_0x175ed8[_0x393724(0x3aa)]){}else _0xec13d4[_0x393724(0x357)]<=_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]>=_0x175ed8[_0x393724(0x3aa)]&&(_0x28ac33[_0x393724(0x380)]({..._0x175ed8}),_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}}}}}if(_0x28ac33[_0x393724(0x29d)]>0x0)_0x13fe29[_0x393724(0x398)]({'id':_univerjs_sheets[_0x393724(0x374)]['id'],'params':{'unitId':_0x5991bb,'subUnitId':_0x214634,'ranges':_0x28ac33}});if(_0x55258d[_0x393724(0x29d)]>0x0)_0x13fe29['push']({'id':_univerjs_sheets[_0x393724(0x379)]['id'],'params':{'unitId':_0x5991bb,'subUnitId':_0x214634,'ranges':_0x55258d}});if(_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)]['length']===0x0)_0x4b6e3f['id']=_univerjs_sheets[_0x393724(0x305)]['id'];return{'m1Prime':_0x4b6e3f,'m2Prime':_0x13fe29[_0x393724(0x29d)]>0x1?_0x13fe29:_0x13fe29[0x0]};}},addWorksheetMergeMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x49f635,_0x482bf7){const _0xf6a34d=_0xfc9601,_0x2322bf=_univerjs_core[_0xf6a34d(0x1c3)][_0xf6a34d(0x1cf)](_0x49f635),_0x8b33a2=_univerjs_core[_0xf6a34d(0x1c3)][_0xf6a34d(0x1cf)](_0x482bf7);if(_0x49f635[_0xf6a34d(0x3eb)][_0xf6a34d(0x1d0)]!==_0x482bf7[_0xf6a34d(0x3eb)]['unitId']||_0x49f635[_0xf6a34d(0x3eb)]['subUnitId']!==_0x482bf7[_0xf6a34d(0x3eb)][_0xf6a34d(0x25e)])return{'m1Prime':_0x2322bf,'m2Prime':_0x8b33a2};const _0x966940=[..._0x8b33a2['params']['ranges']];for(let _0x5ec4e0=0x0;_0x5ec4e0<_0x2322bf[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)][_0xf6a34d(0x29d)];_0x5ec4e0++){let _0x5320de=![];for(let _0x4c809c=0x0;_0x4c809c<_0x8b33a2['params'][_0xf6a34d(0x3a3)][_0xf6a34d(0x29d)];_0x4c809c++){const _0x5dce20=_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0x5ec4e0],_0x4c74d0=_0x8b33a2[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)][_0x4c809c];if(_univerjs_core[_0xf6a34d(0x330)][_0xf6a34d(0x3b4)](_0x5dce20,_0x4c74d0)){_0x5320de=!![];break;}}_0x5320de&&(_0x966940[_0xf6a34d(0x380)](_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0x5ec4e0]),_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0xf6a34d(0x247)](_0x5ec4e0,0x1),_0x5ec4e0--);}_0x8b33a2[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)]=_0x966940;if(_0x2322bf['params']['ranges'][_0xf6a34d(0x29d)]===0x0)_0x2322bf['id']=_univerjs_sheets[_0xf6a34d(0x305)]['id'];return{'m1Prime':_0x2322bf,'m2Prime':_0x8b33a2};}},addWorksheetMergeMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x50439f,_0x13b6d3){const _0x369c0e=_0xfc9601,_0x30ffcd=_univerjs_core[_0x369c0e(0x1c3)][_0x369c0e(0x1cf)](_0x50439f),_0x1a8e03=_univerjs_core[_0x369c0e(0x1c3)]['deepClone'](_0x13b6d3);if(_0x50439f[_0x369c0e(0x3eb)]['unitId']!==_0x13b6d3['params'][_0x369c0e(0x1d0)]||_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x25e)]!==_0x13b6d3[_0x369c0e(0x3eb)][_0x369c0e(0x25e)])return{'m1Prime':_0x30ffcd,'m2Prime':_0x1a8e03};const _0x247f9b=[_0x30ffcd],_0x3d949a=[_0x1a8e03],_0x58f954=new _univerjs_core['ObjectMatrix'](_univerjs_core['Tools'][_0x369c0e(0x1cf)](_0x13b6d3[_0x369c0e(0x3eb)]['cellValue'])),_0x3d5dc6=new Set(),_0x16d2ae={};for(let _0x292f92=0x0;_0x292f92<_0x30ffcd[_0x369c0e(0x3eb)][_0x369c0e(0x3a3)][_0x369c0e(0x29d)];_0x292f92++){const _0x351011=_0x30ffcd[_0x369c0e(0x3eb)]['ranges'][_0x292f92],{startRow:_0x5f08a4,startColumn:_0x538738,endRow:_0x14f540,endColumn:_0x3aa7c3}=_0x351011;let _0x3f041c=![];_0x58f954[_0x369c0e(0x387)]((_0x50fb90,_0x3c921a,_0x214c74)=>{const _0x47bede=_0x369c0e;if(_0x50fb90>=_0x5f08a4&&_0x50fb90<=_0x14f540&&_0x3c921a>=_0x538738&&_0x3c921a<=_0x3aa7c3){const _0x585085=_0x58f954[_0x47bede(0x2f1)](_0x50fb90,_0x3c921a),_0x91f4b9=_0x585085===null?{'v':null,'s':null,'t':null,'si':null,'p':null,'f':null}:_0x585085;if(_0x91f4b9){if(!_0x16d2ae[_0x50fb90])_0x16d2ae[_0x50fb90]={};_0x16d2ae[_0x50fb90][_0x3c921a]={},(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['v'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['v']=null,delete _0x91f4b9['v']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['f'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['f']=null,delete _0x91f4b9['f']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['t'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['t']=null,delete _0x91f4b9['t']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['si'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['si']=null,delete _0x91f4b9['si']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['p'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['p']=null,delete _0x91f4b9['p']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['s'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['s']=null,delete _0x91f4b9['s']),_0x58f954[_0x47bede(0x2fe)](_0x50fb90,_0x3c921a,_0x91f4b9),_0x3f041c=!![];}}}),_0x3f041c&&(_0x3d5dc6[_0x369c0e(0x3b0)]({..._0x351011}),_0x30ffcd['params'][_0x369c0e(0x3a3)][_0x369c0e(0x247)](_0x292f92,0x1),_0x292f92--);}_0x1a8e03[_0x369c0e(0x3eb)]['cellValue']=_0x58f954[_0x369c0e(0x1d1)]();if(_0x3d5dc6[_0x369c0e(0x3a5)]>0x0)_0x3d949a[_0x369c0e(0x398)]({'id':_univerjs_sheets[_0x369c0e(0x374)]['id'],'params':{'unitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x1d0)],'subUnitId':_0x50439f['params'][_0x369c0e(0x25e)],'ranges':Array[_0x369c0e(0x3a4)](_0x3d5dc6)}});if(_0x30ffcd['params'][_0x369c0e(0x3a3)][_0x369c0e(0x29d)]===0x0)_0x30ffcd['id']=_univerjs_sheets[_0x369c0e(0x305)]['id'];if(Object[_0x369c0e(0x38e)](_0x16d2ae)[_0x369c0e(0x29d)]>0x0)_0x247f9b[_0x369c0e(0x398)]({'id':_univerjs_sheets[_0x369c0e(0x30f)]['id'],'params':{'unitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x1d0)],'subUnitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x25e)],'cellValue':_0x16d2ae}});return{'m1Prime':_0x247f9b[_0x369c0e(0x29d)]>0x1?_0x247f9b:_0x247f9b[0x0],'m2Prime':_0x3d949a[_0x369c0e(0x29d)]>0x1?_0x3d949a:_0x3d949a[0x0]};}},addWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x5c552b,_0x4e3ed0){const _0x182c67=_0xfc9601,_0x5f5bbf={'m1Prime':[],'m2Prime':[]};if(_0x5c552b[_0x182c67(0x3eb)]['unitId']!==_0x4e3ed0[_0x182c67(0x3eb)][_0x182c67(0x1d0)]||_0x5c552b[_0x182c67(0x3eb)][_0x182c67(0x25e)]!==_0x4e3ed0[_0x182c67(0x3eb)][_0x182c67(0x25e)])return _0x5f5bbf;const _0x2fde6b=_univerjs_core[_0x182c67(0x1c3)][_0x182c67(0x1cf)](_0x4e3ed0),_0x275555=_0x2fde6b['params'][_0x182c67(0x3e0)];_0x275555[_0x182c67(0x302)]((_0x5b123b,_0x363aa3)=>{const _0x3a748a=_0x182c67,{range:_0x37fce1,primary:_0x46d366}=_0x5b123b;_0x5c552b[_0x3a748a(0x3eb)][_0x3a748a(0x3a3)][_0x3a748a(0x302)](_0x464560=>{const _0x43d9be=_0x3a748a;_univerjs_core[_0x43d9be(0x330)][_0x43d9be(0x3b4)](_0x464560,_0x37fce1)&&(_0x37fce1[_0x43d9be(0x357)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x357)],_0x37fce1[_0x43d9be(0x357)]),_0x37fce1[_0x43d9be(0x245)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x245)],_0x37fce1['startColumn']),_0x37fce1[_0x43d9be(0x3aa)]=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x3aa)],_0x37fce1['endRow']),_0x37fce1[_0x43d9be(0x22a)]=Math['max'](_0x464560[_0x43d9be(0x22a)],_0x37fce1[_0x43d9be(0x22a)]));if(_0x46d366&&_univerjs_core['Rectangle']['intersects'](_0x464560,_0x46d366)&&_0x363aa3===_0x275555[_0x43d9be(0x29d)]-0x1){if(_0x46d366[_0x43d9be(0x245)]===_0x464560['startColumn']&&_0x46d366[_0x43d9be(0x357)]&&_0x464560[_0x43d9be(0x357)])_0x46d366[_0x43d9be(0x201)]=!![];_0x46d366[_0x43d9be(0x357)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x357)],_0x46d366[_0x43d9be(0x357)]),_0x46d366[_0x43d9be(0x245)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x245)],_0x46d366[_0x43d9be(0x245)]),_0x46d366['endRow']=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x3aa)],_0x46d366['endRow']),_0x46d366['endColumn']=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x22a)],_0x46d366['endColumn']),_0x46d366[_0x43d9be(0x373)]=!![];}});}),_0x275555[_0x182c67(0x3be)]((_0x15a975,_0x2682e2)=>{const _0x4d8593=_0x182c67,_0x523a73=_0x15a975['range'],_0x33432b=_0x2682e2[_0x4d8593(0x29a)];if(_0x523a73[_0x4d8593(0x357)]===_0x33432b[_0x4d8593(0x357)])return _0x523a73['startColumn']-_0x33432b['startColumn'];return _0x523a73['startRow']-_0x33432b[_0x4d8593(0x357)];});const _0x13f44d=[];let _0x3adbc6=null;for(const _0x5da8a2 of _0x275555)if(_0x3adbc6===null||!_univerjs_core[_0x182c67(0x330)][_0x182c67(0x3b4)](_0x3adbc6[_0x182c67(0x29a)],_0x5da8a2[_0x182c67(0x29a)]))_0x13f44d['push'](_0x5da8a2),_0x3adbc6=_0x5da8a2;else{_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x357)]=Math[_0x182c67(0x1d8)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x357)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x357)]),_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x245)]=Math[_0x182c67(0x1d8)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x245)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x245)]),_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x3aa)]=Math[_0x182c67(0x2bd)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x3aa)],_0x5da8a2['range'][_0x182c67(0x3aa)]),_0x3adbc6['range'][_0x182c67(0x22a)]=Math['max'](_0x3adbc6['range'][_0x182c67(0x22a)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x22a)]);if(_0x5da8a2[_0x182c67(0x40d)])_0x3adbc6[_0x182c67(0x40d)]=_0x5da8a2[_0x182c67(0x40d)];}return _0x2fde6b[_0x182c67(0x3eb)][_0x182c67(0x3e0)]=_0x13f44d,_0x5f5bbf[_0x182c67(0x3d9)]['push'](_0x2fde6b),_0x5f5bbf;}},addWorksheetProtectionWithAddComment={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x5ca3fb,_0x92b66a)=>{const _0x299c59=_0xfc9601,_0x3014b0={'m1Prime':_0x5ca3fb,'m2Prime':_0x92b66a};if(_0x5ca3fb[_0x299c59(0x3eb)]['unitId']!==_0x92b66a[_0x299c59(0x3eb)]['unitId']||_0x5ca3fb['params']['subUnitId']!==_0x92b66a['params']['subUnitId'])return _0x3014b0;return{'error':new Error(_0x299c59(0x2e5))};}},addWorksheetProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler':(_0x3c53f8,_0x3165b6)=>{const _0x368c12=_0xfc9601,_0x3e417a={'m1Prime':_0x3c53f8,'m2Prime':_0x3165b6};if(_0x3c53f8[_0x368c12(0x3eb)][_0x368c12(0x1d0)]!==_0x3165b6[_0x368c12(0x3eb)][_0x368c12(0x1d0)]||_0x3c53f8['params']['subUnitId']!==_0x3165b6[_0x368c12(0x3eb)][_0x368c12(0x25e)])return _0x3e417a;return{'error':new Error(_0x368c12(0x368))};}},addWorksheetProtectionWithAddRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x200)]['id'],'handler':(_0x408d58,_0x200246)=>{const _0x418f16=_0xfc9601,_0x56ac44={'m1Prime':_0x408d58,'m2Prime':_0x200246};if(_0x408d58[_0x418f16(0x3eb)][_0x418f16(0x1d0)]!==_0x200246['params'][_0x418f16(0x1d0)]||_0x408d58[_0x418f16(0x3eb)]['subUnitId']!==_0x200246[_0x418f16(0x3eb)][_0x418f16(0x25e)])return _0x56ac44;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection')};}},addWorksheetProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler':(_0x525add,_0x3e0ce)=>{const _0x416e8b=_0xfc9601,_0x1d5704={'m1Prime':_0x525add,'m2Prime':_0x3e0ce};if(_0x525add[_0x416e8b(0x3eb)]['unitId']!==_0x3e0ce[_0x416e8b(0x3eb)][_0x416e8b(0x1d0)]||_0x525add[_0x416e8b(0x3eb)][_0x416e8b(0x25e)]!==_0x3e0ce[_0x416e8b(0x3eb)]['subUnitId'])return _0x1d5704;return{'error':new Error(_0x416e8b(0x26d))};}},addWorksheetProtectionWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'handler':(_0x2a34ce,_0x425f25)=>{const _0x2599a8=_0xfc9601,_0x516628={'m1Prime':_0x2a34ce,'m2Prime':_0x425f25};if(_0x2a34ce['params'][_0x2599a8(0x1d0)]!==_0x425f25[_0x2599a8(0x3eb)][_0x2599a8(0x1d0)]||_0x2a34ce[_0x2599a8(0x3eb)][_0x2599a8(0x25e)]!==_0x425f25['params'][_0x2599a8(0x331)][_0x2599a8(0x25e)])return _0x516628;return{'error':new Error(_0x2599a8(0x26f))};}},addWorksheetProtectionWithChangeSheetOrder={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x389)]['id'],'handler':(_0x38d4fc,_0x6a1fdf)=>{const _0x58590c=_0xfc9601,_0x50afcf={'m1Prime':_0x38d4fc,'m2Prime':_0x6a1fdf};if(_0x38d4fc[_0x58590c(0x3eb)][_0x58590c(0x1d0)]!==_0x6a1fdf[_0x58590c(0x3eb)][_0x58590c(0x1d0)]||_0x38d4fc[_0x58590c(0x3eb)]['subUnitId']!==_0x6a1fdf[_0x58590c(0x3eb)][_0x58590c(0x25e)])return _0x50afcf;return{'error':new Error(_0x58590c(0x313))};}},addWorksheetProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x4853a4,_0x586a7f)=>{const _0x2658ff=_0xfc9601,_0x1b4d4={'m1Prime':_0x4853a4,'m2Prime':_0x586a7f};if(_0x4853a4[_0x2658ff(0x3eb)][_0x2658ff(0x1d0)]!==_0x586a7f[_0x2658ff(0x3eb)][_0x2658ff(0x1d0)]||_0x4853a4[_0x2658ff(0x3eb)]['subUnitId']!==_0x586a7f[_0x2658ff(0x3eb)][_0x2658ff(0x25e)])return _0x1b4d4;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule')};}},addWorksheetProtectionWithInsertCol={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x5bbe0a,_0x9c8d)=>{const _0x281f34=_0xfc9601,_0x466f8e={'m1Prime':_0x5bbe0a,'m2Prime':_0x9c8d};if(_0x5bbe0a[_0x281f34(0x3eb)][_0x281f34(0x1d0)]!==_0x9c8d['params']['unitId']||_0x5bbe0a['params']['subUnitId']!==_0x9c8d['params'][_0x281f34(0x25e)])return _0x466f8e;return{'error':new Error(_0x281f34(0x2c4))};}},addWorksheetProtectionWithInsertRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler':(_0x54632f,_0x289831)=>{const _0x32a0db=_0xfc9601,_0x1daefe={'m1Prime':_0x54632f,'m2Prime':_0x289831};if(_0x54632f[_0x32a0db(0x3eb)]['unitId']!==_0x289831[_0x32a0db(0x3eb)][_0x32a0db(0x1d0)]||_0x54632f[_0x32a0db(0x3eb)][_0x32a0db(0x25e)]!==_0x289831['params']['subUnitId'])return _0x1daefe;return{'error':new Error(_0x32a0db(0x1f3))};}},addWorksheetProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x577a9e,_0x5b9aa9)=>{const _0x552fde=_0xfc9601,_0x38891e={'m1Prime':_0x577a9e,'m2Prime':_0x5b9aa9};if(_0x577a9e[_0x552fde(0x3eb)]['unitId']!==_0x5b9aa9['params'][_0x552fde(0x1d0)]||_0x577a9e[_0x552fde(0x3eb)][_0x552fde(0x25e)]!==_0x5b9aa9[_0x552fde(0x3eb)][_0x552fde(0x25e)])return _0x38891e;return{'error':new Error(_0x552fde(0x1d4))};}},addWorksheetProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x2e02ee,_0x4a0be9)=>{const _0x180948=_0xfc9601,_0x4564c0={'m1Prime':_0x2e02ee,'m2Prime':_0x4a0be9};if(_0x2e02ee[_0x180948(0x3eb)][_0x180948(0x1d0)]!==_0x4a0be9[_0x180948(0x3eb)]['unitId']||_0x2e02ee[_0x180948(0x3eb)]['subUnitId']!==_0x4a0be9[_0x180948(0x3eb)]['from']['subUnitId'])return _0x4564c0;return{'error':new Error(_0x180948(0x231))};}},addWorksheetProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x13a85b,_0x4aebf3)=>{const _0x169635=_0xfc9601,_0xa23e01={'m1Prime':_0x13a85b,'m2Prime':_0x4aebf3};if(_0x13a85b[_0x169635(0x3eb)][_0x169635(0x1d0)]!==_0x4aebf3[_0x169635(0x3eb)]['unitId']||_0x13a85b[_0x169635(0x3eb)][_0x169635(0x25e)]!==_0x4aebf3[_0x169635(0x3eb)][_0x169635(0x25e)])return _0xa23e01;return{'error':new Error(_0x169635(0x31e))};}},addWorksheetProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler':(_0x3f0e6b,_0x199d6f)=>{const _0x336ed1=_0xfc9601,_0x10dadb={'m1Prime':_0x3f0e6b,'m2Prime':_0x199d6f};if(_0x3f0e6b[_0x336ed1(0x3eb)]['unitId']!==_0x199d6f[_0x336ed1(0x3eb)]['unitId']||_0x3f0e6b[_0x336ed1(0x3eb)][_0x336ed1(0x25e)]!==_0x199d6f[_0x336ed1(0x3eb)]['subUnitId'])return _0x10dadb;return{'error':new Error(_0x336ed1(0x2f5))};}},addWorksheetProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x2dedda,_0x4eea67)=>{const _0x2bfbc6=_0xfc9601,_0x26bb44={'m1Prime':_0x2dedda,'m2Prime':_0x4eea67};if(_0x2dedda[_0x2bfbc6(0x3eb)]['unitId']!==_0x4eea67[_0x2bfbc6(0x3eb)]['unitId']||_0x2dedda['params'][_0x2bfbc6(0x25e)]!==_0x4eea67['params'][_0x2bfbc6(0x25e)])return _0x26bb44;return{'error':new Error(_0x2bfbc6(0x2b9))};}},addWorksheetProtectionWithRemoveNumfmt={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler':(_0xbeee42,_0x59474b)=>{const _0x1175b3=_0xfc9601,_0x3939ea={'m1Prime':_0xbeee42,'m2Prime':_0x59474b};if(_0xbeee42['params']['unitId']!==_0x59474b['params'][_0x1175b3(0x1d0)]||_0xbeee42['params'][_0x1175b3(0x25e)]!==_0x59474b[_0x1175b3(0x3eb)][_0x1175b3(0x25e)])return _0x3939ea;return{'error':new Error(_0x1175b3(0x25d))};}},addWorksheetProtectionWithRemoveRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler':(_0x39a3a1,_0x14d20c)=>{const _0x4ce519=_0xfc9601,_0xe695a9={'m1Prime':_0x39a3a1,'m2Prime':_0x14d20c};if(_0x39a3a1['params'][_0x4ce519(0x1d0)]!==_0x14d20c[_0x4ce519(0x3eb)]['unitId']||_0x39a3a1[_0x4ce519(0x3eb)][_0x4ce519(0x25e)]!==_0x14d20c[_0x4ce519(0x3eb)][_0x4ce519(0x25e)])return _0xe695a9;return{'error':new Error(_0x4ce519(0x3cf))};}},addWorksheetProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler':(_0x57c2d5,_0xb37bfc)=>{const _0x1af8f6=_0xfc9601,_0x41bb31={'m1Prime':_0x57c2d5,'m2Prime':_0xb37bfc};if(_0x57c2d5['params'][_0x1af8f6(0x1d0)]!==_0xb37bfc[_0x1af8f6(0x3eb)][_0x1af8f6(0x1d0)]||_0x57c2d5[_0x1af8f6(0x3eb)][_0x1af8f6(0x25e)]!==_0xb37bfc[_0x1af8f6(0x3eb)]['subUnitId'])return _0x41bb31;return{'error':new Error(_0x1af8f6(0x409))};}},addWorksheetProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler':(_0x267bc7,_0x1f0a2b)=>{const _0x58b4c9=_0xfc9601,_0x94e3ab={'m1Prime':_0x267bc7,'m2Prime':_0x1f0a2b};if(_0x267bc7[_0x58b4c9(0x3eb)][_0x58b4c9(0x1d0)]!==_0x1f0a2b['params'][_0x58b4c9(0x1d0)]||_0x267bc7['params']['subUnitId']!==_0x1f0a2b[_0x58b4c9(0x3eb)]['subUnitId'])return _0x94e3ab;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};}},addWorksheetProtectionWithRemoveWorksheet={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x376)]['id'],'handler':(_0x3d879b,_0x35dbe2)=>{const _0x54b290=_0xfc9601;if(_0x3d879b['params'][_0x54b290(0x1d0)]!==_0x35dbe2[_0x54b290(0x3eb)]['unitId']||_0x3d879b[_0x54b290(0x3eb)][_0x54b290(0x25e)]!==_0x35dbe2[_0x54b290(0x3eb)][_0x54b290(0x25e)])return{'m1Prime':_0x3d879b,'m2Prime':_0x35dbe2};return{'error':new Error(_0x54b290(0x29b))};}},addWorksheetProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler':(_0x24cef4,_0x43b5b0)=>{const _0x574e6f=_0xfc9601,_0x83b3d8={'m1Prime':_0x24cef4,'m2Prime':_0x43b5b0};if(_0x24cef4[_0x574e6f(0x3eb)][_0x574e6f(0x1d0)]!==_0x43b5b0['params'][_0x574e6f(0x1d0)]||_0x24cef4['params'][_0x574e6f(0x25e)]!==_0x43b5b0[_0x574e6f(0x3eb)][_0x574e6f(0x25e)])return _0x83b3d8;return{'error':new Error(_0x574e6f(0x3e4))};}},addWorksheetProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler':(_0xb695bf,_0x58787e)=>{const _0xbf54cb=_0xfc9601,_0x5195b1={'m1Prime':_0xb695bf,'m2Prime':_0x58787e};if(_0xb695bf[_0xbf54cb(0x3eb)][_0xbf54cb(0x1d0)]!==_0x58787e[_0xbf54cb(0x3eb)]['unitId']||_0xb695bf[_0xbf54cb(0x3eb)][_0xbf54cb(0x25e)]!==_0x58787e[_0xbf54cb(0x3eb)][_0xbf54cb(0x25e)])return _0x5195b1;return{'error':new Error(_0xbf54cb(0x3bf))};}},addWorksheetProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x3f4285,_0x386a2a)=>{const _0x455b8f=_0xfc9601,_0xa2d8f2={'m1Prime':_0x3f4285,'m2Prime':_0x386a2a};if(_0x3f4285['params'][_0x455b8f(0x1d0)]!==_0x386a2a['params'][_0x455b8f(0x1d0)]||_0x3f4285['params'][_0x455b8f(0x25e)]!==_0x386a2a[_0x455b8f(0x3eb)][_0x455b8f(0x25e)])return _0xa2d8f2;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt')};}},addWorksheetProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x1ad1f3,_0x1eb3f6)=>{const _0x90208d=_0xfc9601,_0x2e3899={'m1Prime':_0x1ad1f3,'m2Prime':_0x1eb3f6};if(_0x1ad1f3['params'][_0x90208d(0x1d0)]!==_0x1eb3f6['params'][_0x90208d(0x1d0)]||_0x1ad1f3[_0x90208d(0x3eb)][_0x90208d(0x25e)]!==_0x1eb3f6[_0x90208d(0x3eb)][_0x90208d(0x25e)])return _0x2e3899;return{'error':new Error(_0x90208d(0x262))};}},addWorksheetProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x3e2107,_0x3db191)=>{const _0x79bfc9=_0xfc9601,_0x3041a6={'m1Prime':_0x3e2107,'m2Prime':_0x3db191};if(_0x3e2107[_0x79bfc9(0x3eb)][_0x79bfc9(0x1d0)]!==_0x3db191[_0x79bfc9(0x3eb)][_0x79bfc9(0x1d0)]||_0x3e2107[_0x79bfc9(0x3eb)][_0x79bfc9(0x25e)]!==_0x3db191[_0x79bfc9(0x3eb)][_0x79bfc9(0x25e)])return _0x3041a6;return{'error':new Error(_0x79bfc9(0x3e7))};}},addWorksheetProtectionWithSetWorksheetName={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'handler':(_0x262f48,_0xe58286)=>{const _0x2b18c5=_0xfc9601,_0x1532ad={'m1Prime':_0x262f48,'m2Prime':_0xe58286};if(_0x262f48[_0x2b18c5(0x3eb)]['unitId']!==_0xe58286[_0x2b18c5(0x3eb)][_0x2b18c5(0x1d0)]||_0x262f48[_0x2b18c5(0x3eb)]['subUnitId']!==_0xe58286[_0x2b18c5(0x3eb)]['subUnitId'])return _0x1532ad;return{'error':new Error(_0x2b18c5(0x21f))};}},addWorksheetProtectionWithUpdateComment={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x14ee75,_0x4fc45b)=>{const _0x107c67=_0xfc9601,_0xc18365={'m1Prime':_0x14ee75,'m2Prime':_0x4fc45b};if(_0x14ee75[_0x107c67(0x3eb)][_0x107c67(0x1d0)]!==_0x4fc45b[_0x107c67(0x3eb)][_0x107c67(0x1d0)]||_0x14ee75[_0x107c67(0x3eb)][_0x107c67(0x25e)]!==_0x4fc45b['params']['subUnitId'])return _0xc18365;return{'error':new Error(_0x107c67(0x3ba))};}},addWorksheetProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x375ab2,_0x45ee89)=>{const _0x5f5a39=_0xfc9601,_0x3e4ef9={'m1Prime':_0x375ab2,'m2Prime':_0x45ee89};if(_0x375ab2[_0x5f5a39(0x3eb)][_0x5f5a39(0x1d0)]!==_0x45ee89['params'][_0x5f5a39(0x1d0)]||_0x375ab2['params']['subUnitId']!==_0x45ee89[_0x5f5a39(0x3eb)][_0x5f5a39(0x25e)])return _0x3e4ef9;return{'error':new Error(_0x5f5a39(0x390))};}},deleteCommentMutationWithAdd={'m1':_univerjs_thread_comment['DeleteCommentMutation']['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x54d2ec,_0x47b007)=>{const _0x4a087f=_0xfc9601,_0x286d90=_0x54d2ec[_0x4a087f(0x3eb)],_0x4bbbbe=_0x47b007['params'];if(_0x286d90[_0x4a087f(0x1d0)]===_0x4bbbbe[_0x4a087f(0x1d0)]&&_0x286d90['subUnitId']===_0x4bbbbe['subUnitId']&&_0x286d90[_0x4a087f(0x287)]===_0x4bbbbe['comment'][_0x4a087f(0x22d)])return{'m1Prime':_0x54d2ec,'m2Prime':[]};return{'m1Prime':_0x54d2ec,'m2Prime':_0x47b007};}},deleteCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x2ba)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x2ba)]['id'],'handler':(_0x45cfcb,_0x506903)=>{const _0x5178f9=_0xfc9601,_0x52111f=_0x45cfcb[_0x5178f9(0x3eb)],_0x2d068e=_0x506903[_0x5178f9(0x3eb)],_0x41c4f9={'m1Prime':_0x45cfcb,'m2Prime':_0x506903};if(_0x52111f[_0x5178f9(0x1d0)]!==_0x2d068e[_0x5178f9(0x1d0)]||_0x52111f[_0x5178f9(0x25e)]!==_0x2d068e[_0x5178f9(0x25e)]||_0x52111f['commentId']!==_0x2d068e['commentId'])return _0x41c4f9;return{'m1Prime':[],'m2Prime':[]};}},deleteConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler'(_0x2b8dbb,_0x2d770b){return{'m1Prime':_0x2b8dbb,'m2Prime':_0x2d770b};}},transformAddCommentWithRefRange=(_0x186d3e,_0x512354)=>{const _0x4c1839=_0xfc9601,_0x2c94f5=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x186d3e[_0x4c1839(0x3eb)]['comment'][_0x4c1839(0x233)]),_0x4e66ac=(0x0,_univerjs_sheets[_0x4c1839(0x284)])({'startColumn':_0x2c94f5[_0x4c1839(0x2f4)],'endColumn':_0x2c94f5[_0x4c1839(0x2f4)],'startRow':_0x2c94f5[_0x4c1839(0x2bb)],'endRow':_0x2c94f5[_0x4c1839(0x2bb)]},_0x512354);if(!_0x4e66ac)return[{'id':_univerjs_thread_comment[_0x4c1839(0x2ba)]['id'],'params':{..._0x186d3e[_0x4c1839(0x3eb)],'comment':void 0x0,'commentId':_0x186d3e['params'][_0x4c1839(0x223)]['id']}}];const _0xb0f2be=(0x0,_univerjs_engine_formula[_0x4c1839(0x336)])(_0x4e66ac);if(_0xb0f2be===_0x186d3e['params'][_0x4c1839(0x223)][_0x4c1839(0x233)])return[];return[{'id':_univerjs_thread_comment[_0x4c1839(0x365)]['id'],'params':{..._0x186d3e[_0x4c1839(0x3eb)],'comment':void 0x0,'payload':{'ref':_0xb0f2be,'commentId':_0x186d3e[_0x4c1839(0x3eb)][_0x4c1839(0x223)]['id']}}}];},insertColWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x33490e,_0x1da4eb)=>{const _0x556605=_0xfc9601,_0x345f12={'m1Prime':_0x33490e,'m2Prime':_0x1da4eb};if(_0x33490e[_0x556605(0x3eb)][_0x556605(0x1d0)]!==_0x1da4eb[_0x556605(0x3eb)][_0x556605(0x1d0)]||_0x33490e[_0x556605(0x3eb)][_0x556605(0x25e)]!==_0x1da4eb['params'][_0x556605(0x25e)])return _0x345f12;const _0x3670f9=transformAddCommentWithRefRange(_0x1da4eb,{'id':_univerjs_sheets[_0x556605(0x2a2)]['id'],'params':{'unitId':_0x33490e[_0x556605(0x3eb)][_0x556605(0x1d0)],'subUnitId':_0x33490e[_0x556605(0x3eb)][_0x556605(0x25e)],'range':_0x33490e[_0x556605(0x3eb)]['range']}});return{'m1Prime':[_0x33490e,..._0x3670f9],'m2Prime':[_0x1da4eb,..._0x3670f9]};}};function toColumn(_0x3e9857){const _0x28d516=_0xfc9601;return{..._0x3e9857,'rangeType':_univerjs_core[_0x28d516(0x377)][_0x28d516(0x27b)]};}function moveRows(_0x967c9,_0x53c799,_0x7798d8,_0x40e5df){const _0x3c52a2=_0xfc9601;if(_0x40e5df<0x0){for(let _0x379b26=_0x53c799;_0x379b26<_0x53c799+_0x7798d8;_0x379b26++)if(_0x967c9[_0x3c52a2(0x2b6)](_0x379b26)){if(!_0x967c9['hasOwnProperty'](_0x379b26+_0x40e5df))_0x967c9[_0x379b26+_0x40e5df]={};const _0x11fa0c=_0x967c9[_0x379b26],_0x33c57b=Object[_0x3c52a2(0x38e)](_0x11fa0c)['map'](Number)[_0x3c52a2(0x3be)]((_0x20e861,_0x1d8fcf)=>_0x20e861-_0x1d8fcf);for(const _0x3748a7 of _0x33c57b)_0x967c9[_0x379b26+_0x40e5df][_0x3748a7]=_0x11fa0c[_0x3748a7];delete _0x967c9[_0x379b26];}else delete _0x967c9[_0x379b26+_0x40e5df];}else{for(let _0x1379a2=_0x53c799+_0x7798d8-0x1;_0x1379a2>=_0x53c799;_0x1379a2--)if(_0x967c9[_0x3c52a2(0x2b6)](_0x1379a2)){if(!_0x967c9[_0x3c52a2(0x2b6)](_0x1379a2+_0x40e5df))_0x967c9[_0x1379a2+_0x40e5df]={};const _0x1de7c7=_0x967c9[_0x1379a2],_0x16c8b6=Object['keys'](_0x1de7c7)[_0x3c52a2(0x3b3)](Number)[_0x3c52a2(0x3be)]((_0x442908,_0x221ecc)=>_0x442908-_0x221ecc);for(const _0x2ce1e4 of _0x16c8b6)_0x967c9[_0x1379a2+_0x40e5df][_0x2ce1e4]=_0x1de7c7[_0x2ce1e4];delete _0x967c9[_0x1379a2];}else delete _0x967c9[_0x1379a2+_0x40e5df];}}function moveColumns(_0x1d20a6,_0x3b9d6b,_0x1c6e78,_0x186b1f){const _0x24fef5=_0xfc9601,_0x3eff25=Object[_0x24fef5(0x38e)](_0x1d20a6)[_0x24fef5(0x3b3)](Number)[_0x24fef5(0x3be)]((_0x2d9d09,_0x5aa603)=>_0x2d9d09-_0x5aa603);if(_0x186b1f<0x0)for(const _0x54aaf3 of _0x3eff25){const _0x53b20a=_0x1d20a6[_0x54aaf3];for(let _0x11f9b2=_0x3b9d6b;_0x11f9b2<_0x3b9d6b+_0x1c6e78;_0x11f9b2++)if(_0x53b20a['hasOwnProperty'](_0x11f9b2))_0x53b20a[_0x11f9b2+_0x186b1f]=_0x53b20a[_0x11f9b2],delete _0x53b20a[_0x11f9b2];else delete _0x53b20a[_0x11f9b2+_0x186b1f];}else for(const _0xd17cac of _0x3eff25){const _0x50b4b8=_0x1d20a6[_0xd17cac];for(let _0x363c7e=_0x3b9d6b+_0x1c6e78-0x1;_0x363c7e>=_0x3b9d6b;_0x363c7e--)if(_0x50b4b8[_0x24fef5(0x2b6)](_0x363c7e))_0x50b4b8[_0x363c7e+_0x186b1f]=_0x50b4b8[_0x363c7e],delete _0x50b4b8[_0x363c7e];else delete _0x50b4b8[_0x363c7e+_0x186b1f];}}function RangeSubtractRanges(_0x235076,_0x5db9b0){const _0x473bca=_0xfc9601;return new _univerjs_sheets['RangeMergeUtil']()[_0x473bca(0x3b0)](_0x235076)[_0x473bca(0x404)](..._0x5db9b0)[_0x473bca(0x23c)]();}function processFormulaString(_0x9df542,_0x156ff7,_0x57d6b8,_0x1acb2a){const _0x3d5c5a=_0xfc9601,_0x41b941=new _univerjs_engine_formula[(_0x3d5c5a(0x412))]()[_0x3d5c5a(0x37c)](_0x57d6b8);if(_0x41b941==null)return _0x57d6b8;const _0x3fd931=[];for(let _0x3f1209=0x0,_0x86179a=_0x41b941['length'];_0x3f1209<_0x86179a;_0x3f1209++){const _0x5d789e=_0x41b941[_0x3f1209];if(typeof _0x5d789e===_0x3d5c5a(0x254)||_0x5d789e['nodeType']!==_univerjs_engine_formula[_0x3d5c5a(0x3d3)][_0x3d5c5a(0x370)]){_0x3fd931[_0x3d5c5a(0x380)](_0x5d789e);continue;}const {token:_0x525735}=_0x5d789e,{range:_0x4a6cf5,sheetName:_0xe70d40,unitId:_0x5662ef}=(0x0,_univerjs_engine_formula[_0x3d5c5a(0x3cb)])(_0x525735);if((_0x9df542===_0x5662ef||_0x5662ef==='')&&(_0x156ff7===_0xe70d40||_0xe70d40==='')){const _0x5aa62f=_0x1acb2a(_0x4a6cf5),_0x3a4dcf=_0x5aa62f?(0x0,_univerjs_engine_formula[_0x3d5c5a(0x320)])({'range':_0x5aa62f,'sheetName':_0xe70d40,'unitId':_0x5662ef}):_univerjs_engine_formula[_0x3d5c5a(0x36d)][_0x3d5c5a(0x234)];_0x3fd931[_0x3d5c5a(0x380)]({..._0x5d789e,'token':_0x3a4dcf});}else _0x3fd931[_0x3d5c5a(0x380)](_0x5d789e);}return'='+(0x0,_univerjs_engine_formula[_0x3d5c5a(0x36b)])(_0x3fd931);}function intersect(_0x5574e3,_0x35d3e9){const _0x1a2bc2=_0xfc9601;return _0x5574e3[_0x1a2bc2(0x40e)]<=_0x35d3e9[_0x1a2bc2(0x3bc)]&&_0x5574e3[_0x1a2bc2(0x3bc)]>=_0x35d3e9['start'];}function _0x5f10(){const _0x3704e9=['add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20order','submit_changeset','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','[TransformService]:\x20_rightInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','RichTextEditingMutation','clear','UpdateHyperLinkMutation','move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt','UNIVER_SHEET','SETTING','SheetTypes','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20row','cellValue','serializeRangeToRefString','left-loop1','b64DecodeUnicode','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','transformSnapshotToDocumentData():\x20snapshot.doc\x20is\x20undefined.','insert\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','body','DeleteConditionalRuleMutation','getSnapshot','__splitChunk__','InsertColMutation','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','2gHqbEx','fromOrder','rowHeight','univer-pro.collaboration.transform-service','Rectangle','rule','ISnapshotServerService','right-loop1','_rightInclineTransformMutations','isFormulaString','serializeRange','Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.','Plugin','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20row','MoveRangeMutation','USERS_LEAVE','move\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','parseChangesetToProtocol','index','Range','Remove-cols\x20has\x20conflicts\x20with\x20move-range','changeset_rej','RemoveHyperLinkMutation','toStringTag','getSheets','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','move\x20col\x20is\x20conflict\x20with\x20move\x20col','remove\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','SetColDataMutation','SetRowVisibleMutation','_handleCompressNumberMapMutationSend','DrawingApplyType','right','MoveColsCommand','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.','_logOriginTransformMutations','JSONX','341566AIhsud','CHANGESET_REJ','isRangesEqual','DeleteWorksheetProtectionMutation','fetch_missing','mutations','startRow','SHOULD_CLOSE_CONN','move\x20col\x20is\x20conflict\x20with\x20move\x20range','loadDoc','[Error]\x20m2\x20origin\x20mutation\x20','COMMENT_UPDATE','link','_handleInsertSheetCompressMutationSend','transformChangesets','getUnitOnRev','handleCommonDefaultRangeChangeWithEffectRefCommands','UNISCRIPT_RUN','MoveColsMutation','parse\x20blocks\x20end,\x20took\x20','UpdateCommentRefMutation','decorate','find','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule',']\x20end,\x20took\x20','move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','generateStringWithSequence','_commandService','ErrorType','transformMutations','SetConditionalRuleMutation','REFERENCE','[Error]\x20m1Length:\x20','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','isMerged','RemoveWorksheetMergeMutation','values','RemoveSheetMutation','RANGE_TYPE','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','AddWorksheetMergeMutation','SetWorksheetRowIsAutoHeightMutation','revision','sequenceNodesBuilder','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','univer.mutation.revert-version','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','push','SUBMIT_CHANGESET','spliceArray','\x20and\x20the\x20\x27revision\x27\x20of\x20c1\x20is\x20','sheetOrder','[debug]\x20m2Length:\x20','liveshare.request_host','forValue','\x20Sheet\x20Metas:\x20','SetWorksheetOrderMutation','toPrimitive','[debug]\x20m1Length:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','targetRange','keys','IUniverInstanceService','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','moveMatrixArray',']\x20failed\x20after\x20','fetchThroughInterceptors','code','isTransformMutationsFailure','formula1','SetNumfmtMutation','unshift','COMPRESS_MUTATION_SEND','UNIT_DELETE','_leftInclineTransformMutations','SetColHiddenMutation','m1Prime','blockID','transformPosition','constructor','get','getSheetBlocksFromSnapshot','ranges','from','size',']\x20took\x20a\x20long\x20time:\x20','textRanges','RemoveRowMutation','all','endRow','UpdateCommentMutation','Missing\x20sheet\x20block\x20','some','new_changesets','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','removeRows','sheets','map','intersects','LIVESHARE_NEW_HOST','ReCalcSheetsFilterMutation','toOrder','SetWorksheetNameMutation\x20conflicts\x20with\x20InsertSheetMutation\x20on\x20the\x20same\x20worksheet\x20ID.','55lRNzKy','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20comment','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmft','end','UniverCollaborationPlugin','sort','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','registerTransformAlgorithm','_injector','ObjectMatrix','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','liveshare.operation','col','[Error]\x20_logCurrentTransformMutations\x20','prototype','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','univer.snapshot-server-service','deserializeRangeWithSheetWithCache','filter','5552577TJTsrq','baseRev','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20row','ICommandService','getDataRange','[debug]\x20transformChangesets.\x20Date\x20now:\x20','sequenceNodeType','MUTATION','getSliceDataAndCellCountByRows','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','version','SetRowHiddenMutation','m2Prime','Two\x20SetWorksheetOrderMutation\x20have\x20conflicts!','data','NEW_CHANGESETS','\x20Sheet\x20Order:\x20','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','ILogService','selections','indexOf','_snapshotServerService','161PfCTgP','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','handleBaseMoveRowsCols','value','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','COMPRESS_MUTATION_APPLY','_transformMap','objects','params','includes','transformSnapshotToWorkbookData','Set-range-values\x20mutation\x20and\x20move-range\x20mutation\x20have\x20an\x20overlapping\x20range.','rev','liveshare.fetch_operations','\x20(1)','_logCurrentTransformMutations','GRID','Missing\x20workbook\x20meta\x20in\x20snapshot','criteria','add\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','[generateTemporarySnap()]','handler','SetWorksheetNameMutation','move\x20range\x20is\x20conflict\x20with\x20reorder\x20range','any','parse\x20blocks\x20start,\x20total\x20','textDecoder','MoveRowsCommand','[debug]\x20c1:\x20','AddHyperLinkMutation','isTransformMutationsWithChangesetFailure','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','symbol','subtract','workbook','encode','isTransformMutationFailure','columnData','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','handleBaseRemoveRange','right-loop2','AddConditionalRuleMutation','primary','start','Block\x20not\x20found','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','AddCommentMutation','LexerTreeBuilder','remove\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','\x20blocks','compress','setRevOfUnit','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20column','actualRow','left-loop2','columnCount','[TransformService]:\x20_leftInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','isDefine','moveRows','colId','SetRangeProtectionMutation','insert\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','drawingIds','UPDATE_CURSOR','\x20already\x20exists.','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','Tools','uniscript.run','rowsAutoHeightInfo','rowCount','endOffset','getSheet','should_close_conn','ReorderRangeMutation','parseProtocolChangeset','flat','SetSelectionsOperation','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','deepClone','unitId','getMatrix','syncExecuteCommand','setConfig','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20col','SetDrawingApplyMutation','foreach','PERMISSION_REJ','min','has','Two\x20mutation\x20have\x20the\x20same\x20worksheetId!','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','queryObjectMatrix','async\x20[','Sheet\x20block\x20mismatch!\x20','Inject','now','[ParseBlocks]','JSON1','SINGLE_HISTORY_MUTATIONS','SetWorksheetHideMutation','RemoveColMutation','DocTransformController','object','SINGLE_SNAPSHOT_MUTATIONS','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','ErrorCode','rotateRange','uid','SnapshotSaveService','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','insert\x20row\x20is\x20conflict\x20with\x20remove\x20row','DependentOn','insertMatrixArray','ApplyCompressedChangesetsSync','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20row','move\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','SetWorksheetColWidthMutation','unit_delete','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','liveshare.new_host','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col','toFixed','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.\x20','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','AddRangeProtectionMutation','isMergedMainCell','sourceRange','cellData','.\x20Date\x20now:\x20','[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitID:\x20','decode','133352FrbdgQ','getUnit','set','1062195YPtFtl','_loopLimitTime','users_leave','pseudo_fetch_missing_result','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','saveSnapshot','payload','edit\x20range\x20of\x20same\x20data-validation\x20rule\x20is\x20not\x20allowed','UPDATE_PERMISSION_OBJ','0.21.1','left','[SnapshotService]:\x20failed\x20to\x20get\x20sheet\x20blocks.\x20','UpdateDataValidationMutation','getResources','iterator','blockMeta','toISOString','CommandType','RemoveRowCommand','transformWorkbookDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','changeset_ack','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20name','sync\x20[',']\x20start\x20','_handleDecompressNumberMapMutationApply','comment','reorder\x20range\x20is\x20conflict\x20with\x20reorder\x20range','MoveRowsMutation','UpdateHyperLinkRefMutation','isTransformMutationsWithChangesetSuccess','slice','intercept','endColumn','@univerjs-pro/collaboration','uuidv4','parentId','InterceptorManager','Workbook\x20metadata\x20is\x20not\x20available','PSEUDO_FETCH_MISSING_RESULT','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20range','[debug]\x20c2:\x20','ref','ERROR','actualColumn','CreateUnitMutation','comment_update','defineProperty','styleRefMap','shift','getRealRange','merge','LIVESHARE_FETCH_OPERATIONS','MoveConditionalRuleMutation','moveColumns','IConfigService','parse','realDeleteValue','InsertSheetMutation','_revisionService','startColumn','blocks','splice','SetTabColorMutation','function','resources','[debug]\x20_rightInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','_univerInstanceService','cfId','updateSheet','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','isError','collaboration.config','RemoveDataValidationMutation','_resourceManagerService','string','getRev','generateRandomId','removeColumns','SheetTransformController','every','concatRows','generateTempDocumentSnapshot','error_msg','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','subUnitId','users_enter','\x20and\x20','unitID','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','measureAsyncOperation','permission_rej','transformSnapshotToDocumentData','type','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','saveSheet','title','interceptor','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','ceil','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','loadSheet','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','reportUnitRoutingStats','RevertRevisionMutation\x20conflicts\x20with\x20other\x20mutations!','actions','[Error]\x20_logOriginTransformMutations\x20','RemoveSheetsFilterMutation','[TransformService]:\x20changesets\x20revisions\x20miss\x20match.\x20The\x20\x27baseRev\x27\x20of\x20c2\x20is\x20','isArray','\x20Block\x20Metas:\x20','transformDocumentDataToSnapshot','createIdentifier','remove\x20col\x20is\x20conflict\x20with\x20move\x20col','COLUMN','originalMeta','set\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','SetSheetsFilterRangeMutation','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','0123456789','textEncoder','LIVESHARE_TERMINATE','debug','handleDefaultRangeChangeWithEffectRefCommands','b64EncodeUnicode','InsertRowMutation','commentId','_transformService','Parsing\x20blocks\x20took\x20a\x20long\x20time:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','insert\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','UpdateRuleType','Failed\x20to\x20get\x20sheet\x20block:\x20','warn','number','transformMutation','parseMutationToProtocol','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','move\x20row\x20is\x20conflict\x20with\x20move\x20range','transform','update_cursor','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','transformDocumentDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','remove\x20row\x20is\x20conflict\x20with\x20move\x20row','range','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20sheet','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','length','559422oQSyvW','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','isTransformChangesetsFailure','_logService','InsertColCommand','9520380TXLabs','remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','reduce','\x20ms','Disposable','_snapshotService','RemoveColCommand','TransformService','total\x20','block','getDeserializedSheetBlock','charCodeAt','step','MSG_FOR_ERROR','AddWorksheetProtectionMutation','getCurrentRevOfUnit','round','entries','changeset_should_retry','hasOwnProperty','sheet','EN_US','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','DeleteCommentMutation','row','_config','max','_init','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','SnapshotService','dispose','FETCH_MISSING','UniverInstanceType','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20col','SetWorksheetRowAutoHeightMutation','message','SetColVisibleMutation','CopyWorksheetEndMutation','RemoveNumfmtMutation','Algorithm\x20error,\x20the\x20changeset\x20does\x20not\x20exist!','[TransformService]:\x20_leftInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','[GetBlocks]','call','saveDoc','[debug]\x20_leftInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','getUnitId','[TransformService]:\x20_rightInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','ruleId','isTransformMutationsSuccess','incrementRevOfUnit','delete','USERS_ENTER','drawingId','order','[generateTemporarySnap()]:\x20Sheet\x20block\x20mismatch','concat','getDoc','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','createInterceptorKey','colWidth','_transformMutationsCache','Sheet\x20order\x20mismatch!\x20','incrementRev','liveshare.terminate','findIndex','insert\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20comment','formula2','UNIVER_DOC','InsertRowCommand','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','pluginName','transformMutationsWithChangeset','SetFrozenMutation','saveSheetBlock','handleBaseInsertRange','error','stringify','getValue','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','name','column','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20col','\x20Sheet\x20raw:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge','rules','IResourceManagerService','[transformWorkbookDataToSnapshot()]','set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','RANGE','rowData','setValue','1866088PPcKro','CompressMutationService','[TransformService]\x20Transform\x20algorithm\x20for\x20','forEach','SetRowDataMutation','SetWorksheetRowHeightMutation','EmptyMutation','CHANGESET_ACK','_compressMutationService','onStarting','SetSheetsFilterCriteriaMutation','SetWorksheetPermissionPointsMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','getInterceptPoints','_initSetRangeValues','Move\x20conditional\x20formatting\x20rule\x20\x20is\x20conflict\x20with\x20self','SetRangeValuesMutation','[Error]\x20m1\x20origin\x20mutation\x20','AddDataValidationMutation','registerDependencies'];_0x5f10=function(){return _0x3704e9;};return _0x5f10();}function contain(_0xa0ef26,_0x5e946d){const _0x28857c=_0xfc9601;return _0xa0ef26[_0x28857c(0x40e)]<=_0x5e946d[_0x28857c(0x40e)]&&_0xa0ef26[_0x28857c(0x3bc)]>=_0x5e946d[_0x28857c(0x3bc)];}function lineSubtractLines(_0x58ee27,_0x5ea489){const _0x442687=_0xfc9601;let _0x5d0d15=[_0x58ee27];for(const _0x292ecb of _0x5ea489){const _0x344024=[];for(const _0x5646c0 of _0x5d0d15)_0x344024[_0x442687(0x380)](...lineSubtractLine(_0x5646c0,_0x292ecb));_0x5d0d15=_0x344024;}return _0x5d0d15;}function lineSubtractLine(_0x2e171c,_0x3b25fa){const _0x47d2e5=_0xfc9601,_0x127998=[];if(contain(_0x3b25fa,_0x2e171c))return _0x127998;if(contain(_0x2e171c,_0x3b25fa)){const _0x468984=_0x2e171c['start'],_0x4ccf73=_0x3b25fa[_0x47d2e5(0x40e)]-0x1,_0xb7ca54=_0x3b25fa[_0x47d2e5(0x3bc)]+0x1,_0x3baf46=_0x2e171c[_0x47d2e5(0x3bc)];if(_0x468984<=_0x4ccf73)_0x127998[_0x47d2e5(0x380)]({'start':_0x468984,'end':_0x4ccf73});if(_0xb7ca54<=_0x3baf46)_0x127998[_0x47d2e5(0x380)]({'start':_0xb7ca54,'end':_0x3baf46});return _0x127998;}if(intersect(_0x2e171c,_0x3b25fa)){if(_0x2e171c[_0x47d2e5(0x40e)]<_0x3b25fa[_0x47d2e5(0x40e)])_0x127998[_0x47d2e5(0x380)]({'start':_0x2e171c[_0x47d2e5(0x40e)],'end':_0x3b25fa[_0x47d2e5(0x40e)]-0x1});if(_0x2e171c[_0x47d2e5(0x3bc)]>_0x3b25fa['end'])_0x127998[_0x47d2e5(0x380)]({'start':_0x3b25fa[_0x47d2e5(0x3bc)]+0x1,'end':_0x2e171c[_0x47d2e5(0x3bc)]});return _0x127998;}return[_0x2e171c];}function handleInsert(_0x37b6a8,_0x2a6327){const _0x5f1f92=_0xfc9601,_0x5df1fa=(0x0,_univerjs_sheets[_0x5f1f92(0x2ee)])({'startColumn':_0x37b6a8[_0x5f1f92(0x40e)],'endColumn':_0x37b6a8[_0x5f1f92(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5f1f92(0x377)][_0x5f1f92(0x27b)]},{'startColumn':_0x2a6327[_0x5f1f92(0x40e)],'endColumn':_0x2a6327[_0x5f1f92(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5f1f92(0x377)][_0x5f1f92(0x27b)]});return{'start':_0x2a6327['start']+_0x5df1fa[_0x5f1f92(0x2af)],'end':_0x2a6327[_0x5f1f92(0x3bc)]+_0x5df1fa['step']+_0x5df1fa[_0x5f1f92(0x29d)]};}function handleRemove(_0x1b93c7,_0x234868){const _0x5b1179=_0xfc9601,_0x2f430c=(0x0,_univerjs_sheets['handleBaseRemoveRange'])({'startColumn':_0x1b93c7[_0x5b1179(0x40e)],'endColumn':_0x1b93c7[_0x5b1179(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5b1179(0x377)][_0x5b1179(0x27b)]},{'startColumn':_0x234868[_0x5b1179(0x40e)],'endColumn':_0x234868[_0x5b1179(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5b1179(0x377)][_0x5b1179(0x27b)]});if(_0x2f430c===null)return null;return{'start':_0x234868[_0x5b1179(0x40e)]+_0x2f430c[_0x5b1179(0x2af)],'end':_0x234868['end']+_0x2f430c[_0x5b1179(0x2af)]+_0x2f430c[_0x5b1179(0x29d)]};}function transformAddDataValidationWithRefRange(_0x8b4d01,_0x1218d3){const _0x2a6977=_0xfc9601,{unitId:_0x5553d3,subUnitId:_0x225a9e}=_0x8b4d01[_0x2a6977(0x3eb)],_0x3e1c9a=_0x3a5110=>{return processFormulaString(_0x5553d3,_0x225a9e,_0x3a5110,_0x2b2f6c=>{const _0x299dc5=_0x5cb6;return(0x0,_univerjs_sheets[_0x299dc5(0x284)])(_0x2b2f6c,_0x1218d3);});},_0x31053a=[],_0x311687=_0x1a2345=>{const _0x263652=_0x2a6977;var _0x49f4ad,_0x3efb28;const _0x32b3f=_0x1a2345[_0x263652(0x1ec)],_0x110ea5=_0x1a2345['ranges'][_0x263652(0x3b3)](_0x313689=>(0x0,_univerjs_sheets[_0x263652(0x361)])(_0x313689,_0x1218d3)),_0x40c1b2=(_0x49f4ad=_0x1a2345[_0x263652(0x396)])!==null&&_0x49f4ad!==void 0x0?_0x49f4ad:'',_0x2d815e=(_0x3efb28=_0x1a2345[_0x263652(0x2e6)])!==null&&_0x3efb28!==void 0x0?_0x3efb28:'';let _0x11810d=_0x40c1b2,_0x5db739=_0x2d815e;if((0x0,_univerjs_core['isFormulaString'])(_0x40c1b2))_0x11810d=_0x3e1c9a(_0x40c1b2);if((0x0,_univerjs_core[_0x263652(0x335)])(_0x2d815e))_0x5db739=_0x3e1c9a(_0x2d815e);if(_0x11810d!==_0x40c1b2||_0x5db739!==_0x2d815e)_0x31053a[_0x263652(0x380)]({'id':_univerjs_data_validation[_0x263652(0x216)]['id'],'params':{'unitId':_0x5553d3,'subUnitId':_0x225a9e,'ruleId':_0x32b3f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x263652(0x31c)],'payload':{'type':_0x1a2345['type'],'formula1':_0x11810d,'formula2':_0x5db739}}}});const _0x4fb578=_0x110ea5[_0x263652(0x1cc)]()[_0x263652(0x3cc)](Boolean);if(!(0x0,_univerjs_core[_0x263652(0x353)])(_0x1a2345[_0x263652(0x3a3)],_0x4fb578))_0x31053a['push']({'id':_univerjs_data_validation[_0x263652(0x216)]['id'],'params':{'unitId':_0x5553d3,'subUnitId':_0x225a9e,'ruleId':_0x32b3f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x263652(0x2fc)],'payload':_0x4fb578}}});};if(Array[_0x2a6977(0x276)](_0x8b4d01['params']['rule']))_0x8b4d01[_0x2a6977(0x3eb)][_0x2a6977(0x331)][_0x2a6977(0x302)](_0x40a194=>_0x311687(_0x40a194));else _0x311687(_0x8b4d01[_0x2a6977(0x3eb)][_0x2a6977(0x331)]);return _0x31053a;}const moveColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x18bc53,_0x28ee66){const _0x3ed863=_0xfc9601,_0x13ff48={'m1Prime':_0x18bc53,'m2Prime':_0x28ee66};if(_0x18bc53['params'][_0x3ed863(0x1d0)]!==_0x28ee66[_0x3ed863(0x3eb)][_0x3ed863(0x1d0)]||_0x18bc53[_0x3ed863(0x3eb)][_0x3ed863(0x25e)]!==_0x28ee66[_0x3ed863(0x3eb)]['subUnitId'])return _0x13ff48;const _0x252d0a=transformAddDataValidationWithRefRange(_0x28ee66,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'fromRange':_0x18bc53[_0x3ed863(0x3eb)][_0x3ed863(0x202)],'toRange':_0x18bc53['params']['targetRange']}});return{'m1Prime':[_0x18bc53,..._0x252d0a],'m2Prime':[_0x28ee66,..._0x252d0a]};}},insertColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x515e99,_0x543ac9){const _0x5efbf8=_0xfc9601,_0x1dc080={'m1Prime':_0x515e99,'m2Prime':_0x543ac9};if(_0x515e99[_0x5efbf8(0x3eb)][_0x5efbf8(0x1d0)]!==_0x543ac9[_0x5efbf8(0x3eb)][_0x5efbf8(0x1d0)]||_0x515e99[_0x5efbf8(0x3eb)]['subUnitId']!==_0x543ac9[_0x5efbf8(0x3eb)]['subUnitId'])return _0x1dc080;const _0x27dbd7=transformAddDataValidationWithRefRange(_0x543ac9,{'id':_univerjs_sheets[_0x5efbf8(0x2a2)]['id'],'params':{'unitId':_0x515e99[_0x5efbf8(0x3eb)]['unitId'],'subUnitId':_0x515e99[_0x5efbf8(0x3eb)][_0x5efbf8(0x25e)],'range':_0x515e99[_0x5efbf8(0x3eb)]['range']}});return{'m1Prime':[_0x515e99,..._0x27dbd7],'m2Prime':[_0x543ac9,..._0x27dbd7]};}},insertColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x22a40e,_0x5e8caf){const _0x213bd0=_0xfc9601,_0xdca8a=addWorksheetMergeMutationWithInsertColMutation[_0x213bd0(0x3f8)](_0x5e8caf,_0x22a40e);if(isTransformMutationSuccess(_0xdca8a))return{'m1Prime':_0xdca8a['m2Prime'],'m2Prime':_0xdca8a[_0x213bd0(0x39d)]};else return _0xdca8a;}},insertColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x53005b,_0x497a94){const _0x4b5df2=_0xfc9601,_0x11bc32={'m1Prime':_0x53005b,'m2Prime':_0x497a94};if(_0x53005b[_0x4b5df2(0x3eb)][_0x4b5df2(0x1d0)]!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x1d0)]||_0x53005b[_0x4b5df2(0x3eb)]['subUnitId']!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x25e)])return _0x11bc32;const _0x351e16=_univerjs_core[_0x4b5df2(0x1c3)][_0x4b5df2(0x1cf)](_0x53005b),_0x4a8a06=_univerjs_core['Tools'][_0x4b5df2(0x1cf)](_0x497a94),_0x18daa6=(0x0,_univerjs_sheets[_0x4b5df2(0x2ee)])(toColumn(_0x53005b[_0x4b5df2(0x3eb)]['range']),toColumn(_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]));if(_0x18daa6)_0x4a8a06[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]+=_0x18daa6['step'],_0x4a8a06[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)][_0x4b5df2(0x22a)]+=_0x18daa6[_0x4b5df2(0x2af)]+(_0x18daa6[_0x4b5df2(0x29d)]||0x0);else _0x4a8a06['id']=_univerjs_sheets[_0x4b5df2(0x305)]['id'];if(_0x53005b['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]['startColumn']){const _0x440148=(0x0,_univerjs_sheets[_0x4b5df2(0x2ee)])(toColumn(_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]),toColumn(_0x53005b[_0x4b5df2(0x3eb)]['range']));if(_0x440148)_0x351e16['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]+=_0x440148[_0x4b5df2(0x2af)],_0x351e16['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x22a)]+=_0x440148[_0x4b5df2(0x2af)]+(_0x440148[_0x4b5df2(0x29d)]||0x0);else _0x351e16['id']=_univerjs_sheets[_0x4b5df2(0x305)]['id'];}return{'m1Prime':_0x351e16,'m2Prime':_0x4a8a06};}},insertColMutationWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x2d7c85,_0x5e74f6){const _0x134ebc=_0xfc9601,_0x5117af={'m1Prime':_0x2d7c85,'m2Prime':_0x5e74f6};if(_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x1d0)]!==_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x1d0)]||_0x2d7c85[_0x134ebc(0x3eb)]['subUnitId']!==_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x25e)])return _0x5117af;const _0x1a88e3=_univerjs_core[_0x134ebc(0x1c3)][_0x134ebc(0x1cf)](_0x2d7c85),_0xbb2dcd=_univerjs_core[_0x134ebc(0x1c3)][_0x134ebc(0x1cf)](_0x5e74f6),_0x3a9e73=_0x5e74f6[_0x134ebc(0x3eb)]['sourceRange'],_0x2b6bea=_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x38d)];if(_0x2d7c85['params']['range'][_0x134ebc(0x245)]>_0x3a9e73[_0x134ebc(0x245)]&&_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]<=_0x3a9e73[_0x134ebc(0x22a)]||_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]>_0x2b6bea[_0x134ebc(0x245)]&&_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]<=_0x2b6bea[_0x134ebc(0x22a)])return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x5bbd64=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x2d7c85[_0x134ebc(0x3eb)]['range']),toColumn(_0x3a9e73)),_0x16c752=(0x0,_univerjs_sheets[_0x134ebc(0x2ee)])(toColumn(_0x2d7c85['params'][_0x134ebc(0x29a)]),toColumn(_0x2b6bea));_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x202)][_0x134ebc(0x245)]+=_0x5bbd64[_0x134ebc(0x2af)],_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x202)]['endColumn']+=_0x5bbd64[_0x134ebc(0x2af)]+(_0x5bbd64['length']||0x0),_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x38d)][_0x134ebc(0x245)]+=_0x16c752[_0x134ebc(0x2af)],_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x38d)][_0x134ebc(0x22a)]+=_0x16c752[_0x134ebc(0x2af)]+(_0x16c752[_0x134ebc(0x29d)]||0x0);if(_0x3a9e73['startColumn']>=_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]&&_0x2b6bea[_0x134ebc(0x245)]<_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]){const _0xfacce2=_0x2b6bea['endColumn']-_0x2b6bea[_0x134ebc(0x245)]+0x1;_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['startColumn']+=_0xfacce2,_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['endColumn']+=_0xfacce2;}else{if(_0x3a9e73[_0x134ebc(0x22a)]<_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['startColumn']&&_0x2b6bea[_0x134ebc(0x245)]>=_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]){const _0x3534fa=_0x3a9e73[_0x134ebc(0x22a)]-_0x3a9e73[_0x134ebc(0x245)]+0x1;_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]-=_0x3534fa,_0x1a88e3['params'][_0x134ebc(0x29a)]['endColumn']-=_0x3534fa;}}return{'m1Prime':_0x1a88e3,'m2Prime':_0xbb2dcd};}},insertColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x4be01e,_0x201f96){const _0x4ff6e3=_0xfc9601,_0x596254={'m1Prime':_0x4be01e,'m2Prime':_0x201f96};if(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x1d0)]!==_0x201f96[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x1d0)]||_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x25e)]!==_0x201f96[_0x4ff6e3(0x3eb)]['from'][_0x4ff6e3(0x25e)]&&_0x4be01e[_0x4ff6e3(0x3eb)]['subUnitId']!==_0x201f96['params']['to'][_0x4ff6e3(0x25e)])return _0x596254;const _0x4d80de=_univerjs_core[_0x4ff6e3(0x1c3)]['deepClone'](_0x4be01e),_0x2fcd10=_univerjs_core[_0x4ff6e3(0x1c3)][_0x4ff6e3(0x1cf)](_0x201f96);if(_0x4be01e['params'][_0x4ff6e3(0x25e)]===_0x201f96[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x25e)]){const _0x29a847=new _univerjs_core[(_0x4ff6e3(0x3c2))](_0x2fcd10[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)])[_0x4ff6e3(0x3d1)](),{startColumn:_0x59f47b,endColumn:_0x59f111}=_0x29a847,{startColumn:_0x15f327,endColumn:_0x5885dd}=_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],{step:_0x3409d0,length:_0x5b430b}=(0x0,_univerjs_sheets[_0x4ff6e3(0x2ee)])(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],_0x29a847);if(_0x3409d0>0x0&&_0x5b430b===0x0)moveColumns(_0x2fcd10[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)],_0x59f47b,_0x59f111-_0x59f47b+0x1,_0x3409d0);if(_0x3409d0===0x0&&_0x5b430b>0x0)moveColumns(_0x2fcd10['params'][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)],_0x15f327,_0x59f111-_0x15f327+0x1,_0x5885dd-_0x15f327+0x1);}if(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x25e)]===_0x201f96['params']['to'][_0x4ff6e3(0x25e)]){const _0x1fe177=new _univerjs_core[(_0x4ff6e3(0x3c2))](_0x2fcd10[_0x4ff6e3(0x3eb)]['to'][_0x4ff6e3(0x3e6)])[_0x4ff6e3(0x3d1)](),{startColumn:_0x4d8e7c,endColumn:_0x508c8b}=_0x1fe177,{startColumn:_0x490c2e,endColumn:_0x552d03}=_0x4be01e['params']['range'],{step:_0x54dda0,length:_0x5d3beb}=(0x0,_univerjs_sheets[_0x4ff6e3(0x2ee)])(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],_0x1fe177);if(_0x54dda0>0x0&&_0x5d3beb===0x0)moveColumns(_0x2fcd10['params']['to'][_0x4ff6e3(0x3e6)],_0x4d8e7c,_0x508c8b-_0x4d8e7c+0x1,_0x54dda0);if(_0x54dda0===0x0&&_0x5d3beb>0x0)moveColumns(_0x2fcd10[_0x4ff6e3(0x3eb)]['to'][_0x4ff6e3(0x3e6)],_0x490c2e,_0x508c8b-_0x490c2e+0x1,_0x552d03-_0x490c2e+0x1);}return{'m1Prime':_0x4d80de,'m2Prime':_0x2fcd10};}},insertColMutationWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x6be73f,_0xa1a514){const _0x4cc160=_0xfc9601,_0xe9411f={'m1Prime':_0x6be73f,'m2Prime':_0xa1a514};if(_0x6be73f['params'][_0x4cc160(0x1d0)]!==_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x1d0)]||_0x6be73f[_0x4cc160(0x3eb)]['subUnitId']!==_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x25e)])return _0xe9411f;const _0xc93e98=_univerjs_core[_0x4cc160(0x1c3)][_0x4cc160(0x1cf)](_0x6be73f),_0x5460aa=_univerjs_core[_0x4cc160(0x1c3)][_0x4cc160(0x1cf)](_0xa1a514);if(_0x6be73f['params'][_0x4cc160(0x29a)][_0x4cc160(0x245)]<=_0xa1a514[_0x4cc160(0x3eb)]['range'][_0x4cc160(0x22a)]&&_0x6be73f[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x245)]>_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]['startColumn'])return{'error':new Error(_0x4cc160(0x1ef))};const _0x28898e=(0x0,_univerjs_sheets[_0x4cc160(0x2ee)])(toColumn(_0x6be73f['params']['range']),toColumn(_0xa1a514['params'][_0x4cc160(0x29a)]));if(_0x28898e)_0x5460aa[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x245)]+=_0x28898e[_0x4cc160(0x2af)],_0x5460aa[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x22a)]+=_0x28898e[_0x4cc160(0x2af)]+(_0x28898e[_0x4cc160(0x29d)]||0x0);else _0x5460aa['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x11ae03=(0x0,_univerjs_sheets[_0x4cc160(0x40a)])(toColumn(_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]),toColumn(_0x6be73f['params']['range']));return _0x11ae03&&(_0xc93e98[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]['startColumn']+=_0x11ae03[_0x4cc160(0x2af)],_0xc93e98[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x22a)]+=_0x11ae03['step']+(_0x11ae03[_0x4cc160(0x29d)]||0x0)),{'m1Prime':_0xc93e98,'m2Prime':_0x5460aa};}},insertColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x2c510a,_0x1a094a){const _0x17d566=_0xfc9601,_0x382173={'m1Prime':_0x2c510a,'m2Prime':_0x1a094a};if(_0x2c510a[_0x17d566(0x3eb)][_0x17d566(0x1d0)]!==_0x1a094a[_0x17d566(0x3eb)][_0x17d566(0x1d0)]||_0x2c510a[_0x17d566(0x3eb)]['subUnitId']!==_0x1a094a[_0x17d566(0x3eb)][_0x17d566(0x25e)])return _0x382173;const _0x112a9a=_univerjs_core[_0x17d566(0x1c3)][_0x17d566(0x1cf)](_0x2c510a),_0xb5abbc=_univerjs_core[_0x17d566(0x1c3)]['deepClone'](_0x1a094a),{ranges:_0x68f765}=_0xb5abbc['params'];if(_0x68f765[_0x17d566(0x3ad)](_0xfabbbe=>{const _0xd117fb=_0x17d566,_0x4b7c69=(0x0,_univerjs_sheets[_0xd117fb(0x2ee)])(toColumn(_0x2c510a[_0xd117fb(0x3eb)]['range']),toColumn(_0xfabbbe));if(_0x4b7c69[_0xd117fb(0x29d)]!==0x0)return!![];return _0xfabbbe[_0xd117fb(0x245)]+=_0x4b7c69[_0xd117fb(0x2af)],_0xfabbbe[_0xd117fb(0x22a)]+=_0x4b7c69[_0xd117fb(0x2af)],![];}))return{'error':new Error(_0x17d566(0x1be))};return{'m1Prime':_0x112a9a,'m2Prime':_0xb5abbc};}},insertColMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0x26f40a,_0x1d6be3){const _0x25ecb9=_0xfc9601,_0x98f991=_univerjs_core[_0x25ecb9(0x1c3)]['deepClone'](_0x26f40a),_0x43f5f9=_univerjs_core[_0x25ecb9(0x1c3)]['deepClone'](_0x1d6be3);if(_0x26f40a['params'][_0x25ecb9(0x1d0)]!==_0x1d6be3[_0x25ecb9(0x3eb)][_0x25ecb9(0x1d0)]||_0x26f40a[_0x25ecb9(0x3eb)]['subUnitId']!==_0x1d6be3[_0x25ecb9(0x3eb)]['subUnitId'])return{'m1Prime':_0x98f991,'m2Prime':_0x43f5f9};const _0x2ba574=_0x43f5f9[_0x25ecb9(0x3eb)]['ranges'][_0x25ecb9(0x3b3)](_0xa28f49=>{const _0x401cf2=_0x25ecb9,_0x4603c6=_0x98f991[_0x401cf2(0x3eb)]['range'],_0x3427de=_0x4603c6[_0x401cf2(0x22a)]-_0x4603c6[_0x401cf2(0x245)]+0x1;if(_0x4603c6['startColumn']<=_0xa28f49['startColumn'])return{..._0xa28f49,'startColumn':_0xa28f49[_0x401cf2(0x245)]+_0x3427de,'endColumn':_0xa28f49['endColumn']+_0x3427de};else{if(_0x4603c6[_0x401cf2(0x245)]>_0xa28f49[_0x401cf2(0x245)]&&_0x4603c6[_0x401cf2(0x245)]<=_0xa28f49[_0x401cf2(0x22a)])return{..._0xa28f49,'endColumn':_0xa28f49[_0x401cf2(0x22a)]+_0x3427de};else return{..._0xa28f49};}});return _0x43f5f9[_0x25ecb9(0x3eb)][_0x25ecb9(0x3a3)]=_0x2ba574,{'m1Prime':_0x98f991,'m2Prime':_0x43f5f9};}},insertColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x38653c,_0x4687af){const _0x5cb7d9=_0xfc9601,_0x5db2ba={'m1Prime':_0x38653c,'m2Prime':_0x4687af};if(_0x38653c[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x1d0)]!==_0x4687af[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x1d0)]||_0x38653c['params'][_0x5cb7d9(0x25e)]!==_0x4687af['params'][_0x5cb7d9(0x25e)])return _0x5db2ba;const _0xbf75db=_univerjs_core[_0x5cb7d9(0x1c3)][_0x5cb7d9(0x1cf)](_0x4687af),_0x197f3c=(0x0,_univerjs_sheets[_0x5cb7d9(0x2ee)])(toColumn(_0x38653c['params'][_0x5cb7d9(0x29a)]),toColumn(_0x4687af['params']['range']));return _0xbf75db[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x29a)][_0x5cb7d9(0x245)]+=_0x197f3c[_0x5cb7d9(0x2af)],_0xbf75db[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x29a)][_0x5cb7d9(0x22a)]+=_0x197f3c[_0x5cb7d9(0x2af)]+(_0x197f3c[_0x5cb7d9(0x29d)]||0x0),{'m1Prime':_0x38653c,'m2Prime':_0xbf75db};}},insertColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x348)]['id'],'handler'(_0x3b66b7,_0xc397c2){const _0x5d542b=_0xfc9601,_0x52ff5d={'m1Prime':_0x3b66b7,'m2Prime':_0xc397c2};if(_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x1d0)]!==_0xc397c2[_0x5d542b(0x3eb)]['unitId']||_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x25e)]!==_0xc397c2[_0x5d542b(0x3eb)][_0x5d542b(0x25e)])return _0x52ff5d;const _0x11652c=_univerjs_core['Tools']['deepClone'](_0x3b66b7),_0x59dca5=_univerjs_core['Tools'][_0x5d542b(0x1cf)](_0xc397c2),{columnData:_0x384589}=_0x59dca5['params'];for(let _0xa91fa8=_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x29a)][_0x5d542b(0x245)];_0xa91fa8<=_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x29a)][_0x5d542b(0x22a)];_0xa91fa8++)(0x0,_univerjs_core['insertMatrixArray'])(_0xa91fa8,void 0x0,_0x384589);return{'m1Prime':_0x11652c,'m2Prime':_0x59dca5};}},insertColMutationWithSetColHidden={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['SetColHiddenMutation']['id'],'handler'(_0x47013f,_0x50b0b0){const _0x912ee0=_0xfc9601,_0x4f27fb={'m1Prime':_0x47013f,'m2Prime':_0x50b0b0};if(_0x47013f[_0x912ee0(0x3eb)][_0x912ee0(0x1d0)]!==_0x50b0b0[_0x912ee0(0x3eb)][_0x912ee0(0x1d0)]||_0x47013f['params'][_0x912ee0(0x25e)]!==_0x50b0b0[_0x912ee0(0x3eb)][_0x912ee0(0x25e)])return _0x4f27fb;const _0x374f9a=_univerjs_core[_0x912ee0(0x1c3)][_0x912ee0(0x1cf)](_0x47013f),_0x45d41e=_univerjs_core['Tools'][_0x912ee0(0x1cf)](_0x50b0b0),{ranges:_0x206cbf}=_0x45d41e[_0x912ee0(0x3eb)];if(_0x206cbf['some'](_0x380615=>{const _0x2c6dd3=_0x912ee0,_0x2030e9=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x47013f['params'][_0x2c6dd3(0x29a)]),_0x380615);if(_0x2030e9[_0x2c6dd3(0x29d)]!==0x0)return!![];return _0x380615[_0x2c6dd3(0x245)]+=_0x2030e9[_0x2c6dd3(0x2af)],_0x380615[_0x2c6dd3(0x22a)]+=_0x2030e9['step'],![];}))return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden')};return{'m1Prime':_0x374f9a,'m2Prime':_0x45d41e};}},insertColMutationWithSetColVisible={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c7)]['id'],'handler'(_0xbed14b,_0x187bc0){const _0x3964f1=_0xfc9601,_0x2c95fb={'m1Prime':_0xbed14b,'m2Prime':_0x187bc0};if(_0xbed14b['params'][_0x3964f1(0x1d0)]!==_0x187bc0[_0x3964f1(0x3eb)][_0x3964f1(0x1d0)]||_0xbed14b[_0x3964f1(0x3eb)]['subUnitId']!==_0x187bc0['params'][_0x3964f1(0x25e)])return _0x2c95fb;const _0x2cc888=_univerjs_core[_0x3964f1(0x1c3)][_0x3964f1(0x1cf)](_0xbed14b),_0x76f700=_univerjs_core[_0x3964f1(0x1c3)][_0x3964f1(0x1cf)](_0x187bc0),{ranges:_0x3e34b4}=_0x76f700[_0x3964f1(0x3eb)];if(_0x3e34b4[_0x3964f1(0x3ad)](_0x4e1367=>{const _0x3e3ed6=_0x3964f1,_0x34f119=(0x0,_univerjs_sheets[_0x3e3ed6(0x2ee)])(toColumn(_0xbed14b['params']['range']),_0x4e1367);if(_0x34f119[_0x3e3ed6(0x29d)]!==0x0)return!![];return _0x4e1367[_0x3e3ed6(0x245)]+=_0x34f119[_0x3e3ed6(0x2af)],_0x4e1367[_0x3e3ed6(0x22a)]+=_0x34f119[_0x3e3ed6(0x2af)],![];}))return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible')};return{'m1Prime':_0x2cc888,'m2Prime':_0x76f700};}},insertColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x9e0e51,_0x5a3f54){const _0x53d22e=_0xfc9601,_0x231d57={'m1Prime':_0x9e0e51,'m2Prime':_0x5a3f54};if(_0x9e0e51['params'][_0x53d22e(0x1d0)]!==_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x1d0)]||_0x9e0e51[_0x53d22e(0x3eb)][_0x53d22e(0x25e)]!==_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x25e)])return _0x231d57;const _0x592666=[_univerjs_core[_0x53d22e(0x1c3)][_0x53d22e(0x1cf)](_0x9e0e51)],_0x20a8d3=_univerjs_core['Tools'][_0x53d22e(0x1cf)](_0x5a3f54),{values:_0x4596ce}=_0x20a8d3[_0x53d22e(0x3eb)],_0x542204=[];let _0x57d30d=![];for(const _0x125a04 in _0x4596ce){const _0x536b48=_0x4596ce[_0x125a04];_0x542204['push'](..._0x536b48['ranges']);if(_0x536b48[_0x53d22e(0x3a3)]['some'](_0x4fed42=>{const _0x4392b9=_0x53d22e,_0x358e82=(0x0,_univerjs_sheets[_0x4392b9(0x2ee)])(toColumn(_0x9e0e51[_0x4392b9(0x3eb)][_0x4392b9(0x29a)]),toColumn(_0x4fed42));if(_0x358e82[_0x4392b9(0x29d)]!==0x0)return!![];if(_0x358e82['step']!==0x0)_0x57d30d=!![];return _0x4fed42['startColumn']+=_0x358e82[_0x4392b9(0x2af)],_0x4fed42[_0x4392b9(0x22a)]+=_0x358e82['step'],![];}))return{'error':new Error(_0x53d22e(0x28b))};}if(_0x57d30d){const _0xc47f51={'id':_univerjs_sheets[_0x53d22e(0x2c9)]['id'],'params':{'unitId':_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x1d0)],'subUnitId':_0x5a3f54[_0x53d22e(0x3eb)]['subUnitId'],'ranges':_0x542204}};_0x592666[_0x53d22e(0x380)](_0xc47f51,_0x20a8d3);}return{'m1Prime':_0x592666,'m2Prime':_0x20a8d3};}},insertColMutationWithSetRangeValues={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler'(_0x41647e,_0x1059a7){const _0x4a47b3=_0xfc9601,_0x2511e6={'m1Prime':_0x41647e,'m2Prime':_0x1059a7};if(_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x1d0)]!==_0x1059a7[_0x4a47b3(0x3eb)][_0x4a47b3(0x1d0)]||_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x25e)]!==_0x1059a7['params'][_0x4a47b3(0x25e)])return _0x2511e6;const _0x42b05f=[_univerjs_core[_0x4a47b3(0x1c3)][_0x4a47b3(0x1cf)](_0x41647e)],_0x461d7f=_univerjs_core['Tools']['deepClone'](_0x1059a7),_0x1780e3=new _univerjs_core[(_0x4a47b3(0x3c2))](_0x461d7f['params'][_0x4a47b3(0x31f)]),_0x3df455=_0x1780e3[_0x4a47b3(0x3d1)](),_0x2833eb=_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x29a)],_0x5a4a0a=_0x2833eb[_0x4a47b3(0x22a)]-_0x2833eb[_0x4a47b3(0x245)]+0x1;if(_0x461d7f[_0x4a47b3(0x3eb)][_0x4a47b3(0x31f)]&&_0x2833eb[_0x4a47b3(0x245)]<=_0x3df455[_0x4a47b3(0x22a)]){const _0x51f9e7=Math[_0x4a47b3(0x2bd)](_0x3df455[_0x4a47b3(0x245)],_0x2833eb[_0x4a47b3(0x245)]);moveColumns(_0x461d7f[_0x4a47b3(0x3eb)][_0x4a47b3(0x31f)],_0x51f9e7,_0x3df455[_0x4a47b3(0x22a)]-_0x51f9e7+0x1,_0x5a4a0a);}const _0x4699e1=new _univerjs_core[(_0x4a47b3(0x3c2))]();let _0x4ee9ad=![];_0x1780e3['forValue']((_0x3d8998,_0x84dede,_0x831ffb)=>{const _0x465690=_0x4a47b3;if(_0x831ffb&&_0x831ffb['f']){const _0x3617aa=_0x831ffb['f'];let _0x150a2e=![];const _0x1bcd26=processFormulaString(_0x41647e['params']['unitId'],_0x41647e[_0x465690(0x3eb)][_0x465690(0x25e)],_0x3617aa,_0x5e5880=>{const _0x546f81=_0x465690,_0x2ed8a3=(0x0,_univerjs_sheets[_0x546f81(0x2ee)])(toColumn(_0x41647e['params'][_0x546f81(0x29a)]),toColumn(_0x5e5880));return(_0x2ed8a3[_0x546f81(0x2af)]!==0x0||_0x2ed8a3['length']!==0x0)&&(_0x150a2e=!![],_0x5e5880[_0x546f81(0x245)]+=_0x2ed8a3[_0x546f81(0x2af)],_0x5e5880[_0x546f81(0x22a)]+=_0x2ed8a3[_0x546f81(0x2af)]+_0x2ed8a3['length']),_0x5e5880;});_0x150a2e&&(_0x4ee9ad=!![],_0x831ffb['f']=_0x1bcd26,_0x4699e1[_0x465690(0x2fe)](_0x3d8998,_0x84dede,{..._0x831ffb}));}});if(_0x4ee9ad){const _0x4148f9={'id':_univerjs_sheets[_0x4a47b3(0x30f)]['id'],'params':{'unitId':_0x1059a7['params'][_0x4a47b3(0x1d0)],'subUnitId':_0x1059a7[_0x4a47b3(0x3eb)][_0x4a47b3(0x25e)],'cellValue':_0x4699e1[_0x4a47b3(0x1d1)]()}};_0x42b05f[_0x4a47b3(0x380)](_0x4148f9);}return{'m1Prime':_0x42b05f,'m2Prime':_0x461d7f};}},insertColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x3a54e5,_0x3e835b){const _0x4ee8e4=_0xfc9601,_0x2bf6dc={'m1Prime':[],'m2Prime':[]};if(_0x3a54e5[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x1d0)]!==_0x3e835b[_0x4ee8e4(0x3eb)]['unitId']||_0x3a54e5[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x25e)]!==_0x3e835b[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x25e)])return _0x2bf6dc;const _0x2d7b5c=_univerjs_core['Tools']['deepClone'](_0x3e835b);let _0x198c49=![];_0x2d7b5c['params'][_0x4ee8e4(0x3e0)][_0x4ee8e4(0x302)](_0x2b5b63=>{const _0x15d420=_0x4ee8e4,{range:_0x14fe3f,primary:_0x569927}=_0x2b5b63,_0x41639e=(0x0,_univerjs_sheets[_0x15d420(0x2ee)])(toColumn(_0x3a54e5[_0x15d420(0x3eb)]['range']),toColumn(_0x14fe3f));if(_0x41639e[_0x15d420(0x29d)]||_0x41639e[_0x15d420(0x2af)]){_0x14fe3f[_0x15d420(0x245)]+=_0x41639e[_0x15d420(0x2af)],_0x14fe3f[_0x15d420(0x22a)]+=_0x41639e[_0x15d420(0x2af)]+(_0x41639e[_0x15d420(0x29d)]||0x0);if(_0x569927){const _0x334f2c=(0x0,_univerjs_sheets[_0x15d420(0x2ee)])(toColumn(_0x3a54e5[_0x15d420(0x3eb)]['range']),toColumn(_0x569927));(_0x334f2c[_0x15d420(0x29d)]||_0x334f2c[_0x15d420(0x2af)])&&(_0x569927['startColumn']+=_0x334f2c['step'],_0x569927[_0x15d420(0x22a)]+=_0x334f2c[_0x15d420(0x2af)],_0x569927[_0x15d420(0x235)]+=_0x334f2c['step']);}_0x198c49=!![];}});if(_0x198c49)_0x2bf6dc[_0x4ee8e4(0x3d9)][_0x4ee8e4(0x380)](_0x2d7b5c);return _0x2bf6dc;}},insertColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x4d2f38,_0x3c7075){const _0x262400=_0xfc9601,_0x1fbc06={'m1Prime':_0x4d2f38,'m2Prime':_0x3c7075};if(_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x1d0)]!==_0x3c7075[_0x262400(0x3eb)][_0x262400(0x1d0)]||_0x4d2f38[_0x262400(0x3eb)]['subUnitId']!==_0x3c7075[_0x262400(0x3eb)][_0x262400(0x25e)])return _0x1fbc06;const _0x36c03=_univerjs_core[_0x262400(0x1c3)]['deepClone'](_0x4d2f38),_0x1766a9=_univerjs_core[_0x262400(0x1c3)][_0x262400(0x1cf)](_0x3c7075),_0x57306d=handleInsert({'start':_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x29a)][_0x262400(0x245)],'end':_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x29a)]['endColumn']},{'start':_0x3c7075[_0x262400(0x3eb)]['col'],'end':_0x3c7075[_0x262400(0x3eb)][_0x262400(0x3c5)]});if(_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3c5)]===_0x57306d[_0x262400(0x40e)])return _0x1fbc06;_0x1766a9['params']['col']=_0x57306d[_0x262400(0x40e)];if(_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3f5)])_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3f5)][_0x262400(0x1bc)]=_0x57306d[_0x262400(0x40e)];const _0x52377f=_univerjs_core[_0x262400(0x1c3)][_0x262400(0x1cf)](_0x3c7075);return _0x52377f[_0x262400(0x3eb)][_0x262400(0x3f5)]=null,{'m1Prime':[_0x52377f,_0x1766a9,_0x36c03],'m2Prime':[_0x1766a9]};}},insertColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x4f02d9,_0x18ea90){const _0x3f8406=_0xfc9601,_0x46251f={'m1Prime':_0x4f02d9,'m2Prime':_0x18ea90};if(_0x4f02d9[_0x3f8406(0x3eb)][_0x3f8406(0x1d0)]!==_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x1d0)]||_0x4f02d9[_0x3f8406(0x3eb)]['subUnitId']!==_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x25e)])return _0x46251f;const _0x5d37a9=_univerjs_core['Tools']['deepClone'](_0x4f02d9),_0x1487df=_univerjs_core[_0x3f8406(0x1c3)]['deepClone'](_0x18ea90),_0x16bbb8=handleInsert({'start':_0x4f02d9[_0x3f8406(0x3eb)]['range'][_0x3f8406(0x245)],'end':_0x4f02d9[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]},{'start':_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x245)],'end':_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]});if(_0x1487df[_0x3f8406(0x3eb)]['range'][_0x3f8406(0x245)]===_0x16bbb8[_0x3f8406(0x40e)]&&_0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]===_0x16bbb8['end'])return _0x46251f;return _0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x245)]=_0x16bbb8[_0x3f8406(0x40e)],_0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]=_0x16bbb8[_0x3f8406(0x3bc)],{'m1Prime':[_0x1487df,_0x5d37a9],'m2Prime':[_0x1487df]};}},insertColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x2f8936,_0x55037c){const _0x334a17=_0xfc9601,_0x5c4c10={'m1Prime':_0x2f8936,'m2Prime':_0x55037c};if(_0x2f8936[_0x334a17(0x3eb)][_0x334a17(0x1d0)]!==_0x55037c[_0x334a17(0x3eb)]['unitId']||_0x2f8936['params'][_0x334a17(0x25e)]!==_0x55037c['params'][_0x334a17(0x25e)])return _0x5c4c10;const _0x70ed71=_univerjs_core[_0x334a17(0x1c3)][_0x334a17(0x1cf)](_0x2f8936),_0x5cff6d=_univerjs_core[_0x334a17(0x1c3)]['deepClone'](_0x55037c),{ranges:_0x3380d3,colWidth:_0x582ead}=_0x5cff6d[_0x334a17(0x3eb)];if(_0x3380d3[_0x334a17(0x3ad)](_0x174574=>{const _0x587c76=_0x334a17,_0x279f20=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x2f8936[_0x587c76(0x3eb)][_0x587c76(0x29a)]),_0x174574);if(_0x279f20[_0x587c76(0x29d)]!==0x0)return!![];return _0x174574[_0x587c76(0x245)]+=_0x279f20[_0x587c76(0x2af)],_0x174574[_0x587c76(0x22a)]+=_0x279f20[_0x587c76(0x2af)],![];}))return{'error':new Error(_0x334a17(0x325))};if(typeof _0x582ead!==_0x334a17(0x28f)){for(let _0x12b8fa=_0x2f8936[_0x334a17(0x3eb)]['range'][_0x334a17(0x245)];_0x12b8fa<=_0x2f8936[_0x334a17(0x3eb)][_0x334a17(0x29a)][_0x334a17(0x22a)];_0x12b8fa++)(0x0,_univerjs_core[_0x334a17(0x1f1)])(_0x12b8fa,void 0x0,_0x582ead);}return{'m1Prime':_0x70ed71,'m2Prime':_0x5cff6d};}},transformUpdateCommentRefWithRefRange=(_0x138c33,_0x397a35)=>{const _0x421f21=_0xfc9601,_0x1e65d4=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x233)]),_0x1e1315=(0x0,_univerjs_sheets[_0x421f21(0x284)])({'startColumn':_0x1e65d4['column'],'endColumn':_0x1e65d4[_0x421f21(0x2f4)],'startRow':_0x1e65d4[_0x421f21(0x2bb)],'endRow':_0x1e65d4['row']},_0x397a35);if(!_0x1e1315)return[{'id':_univerjs_thread_comment[_0x421f21(0x2ba)]['id'],'params':{..._0x138c33[_0x421f21(0x3eb)],'comment':void 0x0,'commentId':_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x287)]}}];const _0x264b70=(0x0,_univerjs_engine_formula['serializeRange'])(_0x1e1315);if(_0x264b70===_0x138c33['params']['payload']['ref'])return[];return[{'id':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'params':{..._0x138c33[_0x421f21(0x3eb)],'comment':void 0x0,'payload':{'ref':_0x264b70,'commentId':_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x287)]}}}];},insertColWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x1879c4,_0x255e42)=>{const _0x148de3=_0xfc9601,_0xca6dcc={'m1Prime':_0x1879c4,'m2Prime':_0x255e42};if(_0x1879c4['params'][_0x148de3(0x1d0)]!==_0x255e42['params'][_0x148de3(0x1d0)]||_0x1879c4[_0x148de3(0x3eb)][_0x148de3(0x25e)]!==_0x255e42[_0x148de3(0x3eb)][_0x148de3(0x25e)])return _0xca6dcc;const _0x52b455=transformUpdateCommentRefWithRefRange(_0x255e42,{'id':_univerjs_sheets[_0x148de3(0x2a2)]['id'],'params':{'unitId':_0x1879c4['params'][_0x148de3(0x1d0)],'subUnitId':_0x1879c4[_0x148de3(0x3eb)]['subUnitId'],'range':_0x1879c4[_0x148de3(0x3eb)][_0x148de3(0x29a)]}});return{'m1Prime':[_0x1879c4,..._0x52b455],'m2Prime':[_0x255e42,..._0x52b455]};}};function transformUpdateDataValidationWithRefRange(_0x16b4d0,_0x5f1b44){const _0x4fea43=_0xfc9601,{payload:_0x3d7290,unitId:_0x284fc7,subUnitId:_0x49c820,ruleId:_0x142fae}=_0x16b4d0[_0x4fea43(0x3eb)];switch(_0x3d7290[_0x4fea43(0x266)]){case _univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x2fc)]:{const _0x50b754=_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x3b3)](_0x841757=>(0x0,_univerjs_sheets[_0x4fea43(0x361)])(_0x841757,_0x5f1b44))[_0x4fea43(0x3cc)](Boolean)[_0x4fea43(0x1cc)]();if(!(0x0,_univerjs_core[_0x4fea43(0x353)])(_0x50b754,_0x3d7290['payload']))return[{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x284fc7,'subUnitId':_0x49c820,'ruleId':_0x142fae,'payload':{'type':_univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x2fc)],'payload':_0x50b754}}}];break;}case _univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x31c)]:{var _0x3475c7,_0x147805;const _0x26605f=_0x96758b=>{return processFormulaString(_0x284fc7,_0x49c820,_0x96758b,_0x15f58f=>{const _0x3be8b6=_0x5cb6;return(0x0,_univerjs_sheets[_0x3be8b6(0x284)])(_0x15f58f,_0x5f1b44);});},_0x433e23=(_0x3475c7=_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x396)])!==null&&_0x3475c7!==void 0x0?_0x3475c7:'',_0x58be84=(_0x147805=_0x3d7290['payload']['formula2'])!==null&&_0x147805!==void 0x0?_0x147805:'';let _0x219e7a=_0x433e23,_0x36d3ad=_0x58be84;if((0x0,_univerjs_core[_0x4fea43(0x335)])(_0x433e23))_0x219e7a=_0x26605f(_0x433e23);if((0x0,_univerjs_core[_0x4fea43(0x335)])(_0x58be84))_0x36d3ad=_0x26605f(_0x58be84);if(_0x219e7a!==_0x433e23||_0x36d3ad!==_0x58be84)return[{'id':_univerjs_data_validation[_0x4fea43(0x216)]['id'],'params':{'unitId':_0x284fc7,'subUnitId':_0x49c820,'ruleId':_0x142fae,'payload':{'type':_univerjs_data_validation['UpdateRuleType']['SETTING'],'payload':{'type':_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x266)],'formula1':_0x219e7a,'formula2':_0x36d3ad}}}}];break;}default:break;}return[];}const moveColMutationWithUpdateDataValidation={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x54bdc6,_0x87c478)=>{const _0x2d1b59=_0xfc9601,_0x20e705={'m1Prime':_0x54bdc6,'m2Prime':_0x87c478};if(_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x1d0)]!==_0x87c478[_0x2d1b59(0x3eb)][_0x2d1b59(0x1d0)]||_0x87c478[_0x2d1b59(0x3eb)][_0x2d1b59(0x25e)]!==_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x25e)])return _0x20e705;const _0x235ee3=transformUpdateDataValidationWithRefRange(_0x87c478,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'fromRange':_0x54bdc6['params']['sourceRange'],'toRange':_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x38d)]}});return{'m1Prime':[_0x54bdc6,..._0x235ee3],'m2Prime':[_0x87c478,..._0x235ee3]};}},insertColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0xdf03d4,_0x5bec60)=>{const _0x5af681=_0xfc9601,_0x1e385a={'m1Prime':_0xdf03d4,'m2Prime':_0x5bec60};if(_0xdf03d4[_0x5af681(0x3eb)]['unitId']!==_0x5bec60['params'][_0x5af681(0x1d0)]||_0x5bec60[_0x5af681(0x3eb)][_0x5af681(0x25e)]!==_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x25e)])return _0x1e385a;const _0x485adb=transformUpdateDataValidationWithRefRange(_0x5bec60,{'id':_univerjs_sheets[_0x5af681(0x2a2)]['id'],'params':{'unitId':_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x1d0)],'subUnitId':_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x25e)],'range':_0xdf03d4['params'][_0x5af681(0x29a)]}});return{'m1Prime':[_0xdf03d4,..._0x485adb],'m2Prime':[_0x5bec60,..._0x485adb]};}},insertRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x2e755f,_0x104764)=>{const _0xfd4ffe=_0xfc9601,_0x519bad={'m1Prime':_0x2e755f,'m2Prime':_0x104764};if(_0x2e755f['params'][_0xfd4ffe(0x1d0)]!==_0x104764[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x1d0)]||_0x2e755f['params'][_0xfd4ffe(0x25e)]!==_0x104764['params'][_0xfd4ffe(0x25e)])return _0x519bad;const _0x368c38=transformAddCommentWithRefRange(_0x104764,{'id':_univerjs_sheets[_0xfd4ffe(0x2e8)]['id'],'params':{'unitId':_0x2e755f[_0xfd4ffe(0x3eb)]['unitId'],'subUnitId':_0x2e755f[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x25e)],'range':_0x2e755f[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x29a)]}});return{'m1Prime':[_0x2e755f,..._0x368c38],'m2Prime':[_0x104764,..._0x368c38]};}},insertRowMutationWithAddMerge={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x223bf5,_0x3f4419){const _0x2932f7=_0xfc9601,_0x3b10a6=addWorksheetMergeMutationWithInsertRowMutation[_0x2932f7(0x3f8)](_0x3f4419,_0x223bf5);if(isTransformMutationSuccess(_0x3b10a6))return{'m1Prime':_0x3b10a6[_0x2932f7(0x3d9)],'m2Prime':_0x3b10a6[_0x2932f7(0x39d)]};else return _0x3b10a6;}},insertRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler'(_0x2bf2aa,_0x205c92){const _0x1e51fd=_0xfc9601,_0x4cc57f={'m1Prime':_0x2bf2aa,'m2Prime':_0x205c92};if(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x1d0)]!==_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x1d0)]||_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x25e)]!==_0x205c92['params'][_0x1e51fd(0x25e)])return _0x4cc57f;const _0x2c2ac4=_univerjs_core[_0x1e51fd(0x1c3)][_0x1e51fd(0x1cf)](_0x2bf2aa),_0x4d3513=_univerjs_core[_0x1e51fd(0x1c3)][_0x1e51fd(0x1cf)](_0x205c92),_0x5526a6=(0x0,_univerjs_sheets[_0x1e51fd(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])));if(_0x5526a6)_0x4d3513['params'][_0x1e51fd(0x29a)][_0x1e51fd(0x357)]+=_0x5526a6[_0x1e51fd(0x2af)],_0x4d3513['params'][_0x1e51fd(0x29a)]['endRow']+=_0x5526a6[_0x1e51fd(0x2af)]+(_0x5526a6['length']||0x0);else _0x4d3513['id']=_univerjs_sheets[_0x1e51fd(0x305)]['id'];if(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)]['startRow']!==_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)]['startRow']){const _0x5763a7=(0x0,_univerjs_sheets[_0x1e51fd(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])));if(_0x5763a7)_0x2c2ac4[_0x1e51fd(0x3eb)]['range'][_0x1e51fd(0x357)]+=_0x5763a7['step'],_0x2c2ac4[_0x1e51fd(0x3eb)]['range']['endRow']+=_0x5763a7[_0x1e51fd(0x2af)]+(_0x5763a7[_0x1e51fd(0x29d)]||0x0);else _0x2c2ac4['id']=_univerjs_sheets[_0x1e51fd(0x305)]['id'];}return{'m1Prime':_0x2c2ac4,'m2Prime':_0x4d3513};}},insertRowMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x340136,_0x533910){const _0x45958c=_0xfc9601,_0x1a58ab={'m1Prime':_0x340136,'m2Prime':_0x533910};if(_0x340136[_0x45958c(0x3eb)]['unitId']!==_0x533910[_0x45958c(0x3eb)][_0x45958c(0x1d0)]||_0x340136[_0x45958c(0x3eb)]['subUnitId']!==_0x533910[_0x45958c(0x3eb)][_0x45958c(0x3a4)][_0x45958c(0x25e)]&&_0x340136['params'][_0x45958c(0x25e)]!==_0x533910[_0x45958c(0x3eb)]['to'][_0x45958c(0x25e)])return _0x1a58ab;const _0x54e6dd=_univerjs_core[_0x45958c(0x1c3)][_0x45958c(0x1cf)](_0x340136),_0x508762=_univerjs_core[_0x45958c(0x1c3)]['deepClone'](_0x533910);if(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x25e)]===_0x533910[_0x45958c(0x3eb)][_0x45958c(0x3a4)][_0x45958c(0x25e)]){const _0x3fd1d7=new _univerjs_core['ObjectMatrix'](_0x508762[_0x45958c(0x3eb)]['from'][_0x45958c(0x3e6)])[_0x45958c(0x3d1)](),{startRow:_0x2f1f18,endRow:_0x4dd51d}=_0x3fd1d7,{startRow:_0x38e641,endRow:_0x20096c}=_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)],{step:_0x54b941,length:_0x1f01d2}=(0x0,_univerjs_sheets['handleBaseInsertRange'])((0x0,_univerjs_sheets['rotateRange'])(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)]),(0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x3fd1d7));if(_0x54b941>0x0&&_0x1f01d2===0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['from'][_0x45958c(0x3e6)],_0x2f1f18,_0x4dd51d-_0x2f1f18+0x1,_0x54b941);if(_0x54b941===0x0&&_0x1f01d2>0x0)moveRows(_0x508762[_0x45958c(0x3eb)][_0x45958c(0x3a4)]['value'],_0x38e641,_0x4dd51d-_0x38e641+0x1,_0x20096c-_0x38e641+0x1);}if(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x25e)]===_0x533910[_0x45958c(0x3eb)]['to'][_0x45958c(0x25e)]){const _0x592b69=new _univerjs_core[(_0x45958c(0x3c2))](_0x533910[_0x45958c(0x3eb)]['to']['value'])[_0x45958c(0x3d1)](),{startRow:_0xae2f6e,endRow:_0x3d900f}=_0x592b69,{startRow:_0x31df8b,endRow:_0x3f2ee0}=_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)],{step:_0xdcd6a5,length:_0x370fc5}=(0x0,_univerjs_sheets[_0x45958c(0x2ee)])((0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)]),(0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x592b69));if(_0xdcd6a5>0x0&&_0x370fc5===0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['to'][_0x45958c(0x3e6)],_0xae2f6e,_0x3d900f-_0xae2f6e+0x1,_0xdcd6a5);if(_0xdcd6a5===0x0&&_0x370fc5>0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['to']['value'],_0x31df8b,_0x3d900f-_0x31df8b+0x1,_0x3f2ee0-_0x31df8b+0x1);}return{'m1Prime':_0x54e6dd,'m2Prime':_0x508762};}},insertRowMutationWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x2ea72f,_0x55df75){const _0xc385c5=_0xfc9601,_0x3dcea9={'m1Prime':_0x2ea72f,'m2Prime':_0x55df75};if(_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x1d0)]!==_0x55df75[_0xc385c5(0x3eb)][_0xc385c5(0x1d0)]||_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x25e)]!==_0x55df75[_0xc385c5(0x3eb)][_0xc385c5(0x25e)])return _0x3dcea9;const _0x56ab58=_univerjs_core[_0xc385c5(0x1c3)][_0xc385c5(0x1cf)](_0x2ea72f),_0x1cb0d3=_univerjs_core['Tools'][_0xc385c5(0x1cf)](_0x55df75),_0x1dd21f=_0x55df75['params']['sourceRange'],_0x3ad3ef=_0x55df75['params'][_0xc385c5(0x38d)];if(_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]>_0x1dd21f[_0xc385c5(0x357)]&&_0x2ea72f[_0xc385c5(0x3eb)]['range']['startRow']<=_0x1dd21f[_0xc385c5(0x3aa)]||_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]>_0x3ad3ef[_0xc385c5(0x357)]&&_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)]['startRow']<=_0x3ad3ef[_0xc385c5(0x3aa)])return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x2df956=(0x0,_univerjs_sheets[_0xc385c5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0xc385c5(0x1eb)])(_0x2ea72f['params'][_0xc385c5(0x29a)])),toColumn((0x0,_univerjs_sheets[_0xc385c5(0x1eb)])(_0x1dd21f))),_0x420cc7=(0x0,_univerjs_sheets[_0xc385c5(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x2ea72f[_0xc385c5(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3ad3ef)));_0x1cb0d3['params']['sourceRange'][_0xc385c5(0x357)]+=_0x2df956[_0xc385c5(0x2af)],_0x1cb0d3[_0xc385c5(0x3eb)][_0xc385c5(0x202)][_0xc385c5(0x3aa)]+=_0x2df956['step']+(_0x2df956[_0xc385c5(0x29d)]||0x0),_0x1cb0d3[_0xc385c5(0x3eb)]['targetRange'][_0xc385c5(0x357)]+=_0x420cc7['step'],_0x1cb0d3[_0xc385c5(0x3eb)]['targetRange'][_0xc385c5(0x3aa)]+=_0x420cc7[_0xc385c5(0x2af)]+(_0x420cc7[_0xc385c5(0x29d)]||0x0);if(_0x1dd21f[_0xc385c5(0x357)]>=_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]&&_0x3ad3ef[_0xc385c5(0x357)]<_0x2ea72f['params'][_0xc385c5(0x29a)][_0xc385c5(0x357)]){const _0x2d7b1d=_0x3ad3ef['endRow']-_0x3ad3ef[_0xc385c5(0x357)]+0x1;_0x56ab58[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]+=_0x2d7b1d,_0x56ab58[_0xc385c5(0x3eb)][_0xc385c5(0x29a)]['endRow']+=_0x2d7b1d;}else{if(_0x1dd21f[_0xc385c5(0x3aa)]<_0x2ea72f['params'][_0xc385c5(0x29a)][_0xc385c5(0x357)]&&_0x3ad3ef[_0xc385c5(0x357)]>=_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]){const _0x432e71=_0x1dd21f[_0xc385c5(0x3aa)]-_0x1dd21f[_0xc385c5(0x357)]+0x1;_0x56ab58[_0xc385c5(0x3eb)]['range'][_0xc385c5(0x357)]-=_0x432e71,_0x56ab58[_0xc385c5(0x3eb)]['range'][_0xc385c5(0x3aa)]-=_0x432e71;}}return{'m1Prime':_0x56ab58,'m2Prime':_0x1cb0d3};}},insertRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x47dd82,_0x362096){const _0x35c0bf=_0xfc9601,_0x3d763e={'m1Prime':_0x47dd82,'m2Prime':_0x362096};if(_0x47dd82[_0x35c0bf(0x3eb)]['unitId']!==_0x362096[_0x35c0bf(0x3eb)][_0x35c0bf(0x1d0)]||_0x47dd82[_0x35c0bf(0x3eb)]['subUnitId']!==_0x362096['params'][_0x35c0bf(0x25e)])return _0x3d763e;const _0x1b367a=_univerjs_core[_0x35c0bf(0x1c3)][_0x35c0bf(0x1cf)](_0x47dd82),_0x4d646f=_univerjs_core['Tools'][_0x35c0bf(0x1cf)](_0x362096),{ranges:_0x45b365}=_0x4d646f['params'];if(_0x45b365[_0x35c0bf(0x3ad)](_0x396856=>{const _0xc76c89=_0x35c0bf,_0x24e42c=(0x0,_univerjs_sheets[_0xc76c89(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0xc76c89(0x1eb)])(_0x47dd82['params'][_0xc76c89(0x29a)])),toColumn((0x0,_univerjs_sheets[_0xc76c89(0x1eb)])(_0x396856)));if(_0x24e42c[_0xc76c89(0x29d)]!==0x0)return!![];return _0x396856[_0xc76c89(0x357)]+=_0x24e42c[_0xc76c89(0x2af)],_0x396856[_0xc76c89(0x3aa)]+=_0x24e42c[_0xc76c89(0x2af)],![];}))return{'error':new Error('insert\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x1b367a,'m2Prime':_0x4d646f};}},insertRowMutationWithRemoveRow={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x4ce447,_0x378ef2){const _0x55bb3d=_0xfc9601,_0x245322={'m1Prime':_0x4ce447,'m2Prime':_0x378ef2};if(_0x4ce447[_0x55bb3d(0x3eb)]['unitId']!==_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x1d0)]||_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x25e)]!==_0x378ef2['params'][_0x55bb3d(0x25e)])return _0x245322;const _0x47440a=_univerjs_core[_0x55bb3d(0x1c3)]['deepClone'](_0x4ce447),_0x342c6b=_univerjs_core[_0x55bb3d(0x1c3)][_0x55bb3d(0x1cf)](_0x378ef2);if(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]<=_0x378ef2['params'][_0x55bb3d(0x29a)][_0x55bb3d(0x3aa)]&&_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]>_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)])return{'error':new Error(_0x55bb3d(0x1ef))};const _0x4aed46=(0x0,_univerjs_sheets[_0x55bb3d(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x55bb3d(0x1eb)])(_0x378ef2['params'][_0x55bb3d(0x29a)])));if(_0x4aed46)_0x342c6b[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)]['startRow']+=_0x4aed46[_0x55bb3d(0x2af)],_0x342c6b[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x3aa)]+=_0x4aed46[_0x55bb3d(0x2af)]+(_0x4aed46[_0x55bb3d(0x29d)]||0x0);else _0x342c6b['id']=_univerjs_sheets[_0x55bb3d(0x305)]['id'];const _0x30eacf=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x55bb3d(0x1eb)])(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])));return _0x30eacf&&(_0x47440a[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]+=_0x30eacf[_0x55bb3d(0x2af)],_0x47440a[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)]['endRow']+=_0x30eacf['step']+(_0x30eacf[_0x55bb3d(0x29d)]||0x0)),{'m1Prime':_0x47440a,'m2Prime':_0x342c6b};}},insertRowMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x4dd05d,_0x4ca13e){const _0x596390=_0xfc9601,_0x17882c=_univerjs_core[_0x596390(0x1c3)]['deepClone'](_0x4dd05d),_0x5ef75a=_univerjs_core[_0x596390(0x1c3)][_0x596390(0x1cf)](_0x4ca13e);if(_0x4dd05d['params'][_0x596390(0x1d0)]!==_0x4ca13e['params'][_0x596390(0x1d0)]||_0x4dd05d[_0x596390(0x3eb)]['subUnitId']!==_0x4ca13e['params'][_0x596390(0x25e)])return{'m1Prime':_0x17882c,'m2Prime':_0x5ef75a};const _0x425f2c=_0x5ef75a['params'][_0x596390(0x3a3)][_0x596390(0x3b3)](_0x110172=>{const _0x34fd0c=_0x596390,_0x34ac31=_0x17882c['params']['range'],_0x2ad93a=_0x34ac31[_0x34fd0c(0x3aa)]-_0x34ac31[_0x34fd0c(0x357)]+0x1;if(_0x34ac31[_0x34fd0c(0x357)]<=_0x110172[_0x34fd0c(0x357)])return{..._0x110172,'startRow':_0x110172[_0x34fd0c(0x357)]+_0x2ad93a,'endRow':_0x110172[_0x34fd0c(0x3aa)]+_0x2ad93a};else{if(_0x34ac31[_0x34fd0c(0x357)]>_0x110172[_0x34fd0c(0x357)]&&_0x34ac31['startRow']<=_0x110172[_0x34fd0c(0x3aa)])return{..._0x110172,'endRow':_0x110172[_0x34fd0c(0x3aa)]+_0x2ad93a};else return{..._0x110172};}});return _0x5ef75a['params'][_0x596390(0x3a3)]=_0x425f2c,{'m1Prime':_0x17882c,'m2Prime':_0x5ef75a};}},insertRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x46c44a,_0x437b60){const _0x2b85e5=_0xfc9601,_0x308dc2={'m1Prime':_0x46c44a,'m2Prime':_0x437b60};if(_0x46c44a[_0x2b85e5(0x3eb)]['unitId']!==_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x1d0)]||_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x25e)]!==_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x25e)])return _0x308dc2;const _0x595992=_univerjs_core[_0x2b85e5(0x1c3)][_0x2b85e5(0x1cf)](_0x437b60),_0x4e9eb3=(0x0,_univerjs_sheets[_0x2b85e5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x2b85e5(0x1eb)])(_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2b85e5(0x1eb)])(_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)])));_0x595992[_0x2b85e5(0x3eb)]['range'][_0x2b85e5(0x357)]+=_0x4e9eb3[_0x2b85e5(0x2af)],_0x595992[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)]['endRow']+=_0x4e9eb3[_0x2b85e5(0x2af)]+(_0x4e9eb3[_0x2b85e5(0x29d)]||0x0);const _0x801159=_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)][_0x2b85e5(0x357)],_0x3ac6de=_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)][_0x2b85e5(0x3aa)]-_0x46c44a['params']['range'][_0x2b85e5(0x357)]+0x1,_0x50c810={};for(const _0xd6ed40 in _0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)]){let _0x3c2dfb=Number(_0xd6ed40),_0x17d9bc=_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)][_0xd6ed40];_0x3c2dfb=orderMap$1(_0x801159,_0x3ac6de,_0x3c2dfb),_0x17d9bc=orderMap$1(_0x801159,_0x3ac6de,_0x17d9bc),_0x50c810[_0x3c2dfb]=_0x17d9bc;}return _0x595992[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)]=_0x50c810,{'m1Prime':_0x46c44a,'m2Prime':_0x595992};}},orderMap$1=(_0x436418,_0x19376a,_0x2bf2e9)=>{if(_0x2bf2e9>=_0x436418)return _0x2bf2e9+_0x19376a;return _0x2bf2e9;},insertRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x18211f,_0x2ad87c){const _0x5c4cad=_0xfc9601,_0x34b106={'m1Prime':_0x18211f,'m2Prime':_0x2ad87c};if(_0x18211f[_0x5c4cad(0x3eb)][_0x5c4cad(0x1d0)]!==_0x2ad87c[_0x5c4cad(0x3eb)]['unitId']||_0x18211f[_0x5c4cad(0x3eb)]['subUnitId']!==_0x2ad87c[_0x5c4cad(0x3eb)][_0x5c4cad(0x25e)])return _0x34b106;const _0x52b9bd=[_univerjs_core[_0x5c4cad(0x1c3)][_0x5c4cad(0x1cf)](_0x18211f)],_0x4d0090=_univerjs_core[_0x5c4cad(0x1c3)]['deepClone'](_0x2ad87c),{values:_0x4a1551}=_0x4d0090[_0x5c4cad(0x3eb)],_0x245ac7=[];let _0x13a6c4=![];for(const _0x24ca86 in _0x4a1551){const _0x5b5a92=_0x4a1551[_0x24ca86];_0x245ac7[_0x5c4cad(0x380)](..._0x5b5a92[_0x5c4cad(0x3a3)]);if(_0x5b5a92[_0x5c4cad(0x3a3)][_0x5c4cad(0x3ad)](_0x2b490b=>{const _0x99cbbc=_0x5c4cad,_0x585ba1=(0x0,_univerjs_sheets[_0x99cbbc(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x99cbbc(0x1eb)])(_0x18211f[_0x99cbbc(0x3eb)][_0x99cbbc(0x29a)])),(0x0,_univerjs_sheets[_0x99cbbc(0x1eb)])(toColumn(_0x2b490b)));if(_0x585ba1[_0x99cbbc(0x29d)]!==0x0)return!![];if(_0x585ba1['step']!==0x0)_0x13a6c4=!![];return _0x2b490b[_0x99cbbc(0x357)]+=_0x585ba1[_0x99cbbc(0x2af)],_0x2b490b['endRow']+=_0x585ba1[_0x99cbbc(0x2af)],![];}))return{'error':new Error(_0x5c4cad(0x2e4))};}if(_0x13a6c4){const _0x3792d1={'id':_univerjs_sheets[_0x5c4cad(0x2c9)]['id'],'params':{'unitId':_0x2ad87c['params'][_0x5c4cad(0x1d0)],'subUnitId':_0x2ad87c[_0x5c4cad(0x3eb)][_0x5c4cad(0x25e)],'ranges':_0x245ac7}};_0x52b9bd[_0x5c4cad(0x380)](_0x3792d1,_0x4d0090);}return{'m1Prime':_0x52b9bd,'m2Prime':_0x4d0090};}},insertRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x4c546a,_0x3951ce){const _0x3a9ca1=_0xfc9601,_0x5abc04={'m1Prime':_0x4c546a,'m2Prime':_0x3951ce};if(_0x4c546a['params'][_0x3a9ca1(0x1d0)]!==_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x1d0)]||_0x4c546a[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)]!==_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)])return _0x5abc04;const _0x48b10f=[_univerjs_core[_0x3a9ca1(0x1c3)]['deepClone'](_0x4c546a)],_0x3f6c4c=_univerjs_core[_0x3a9ca1(0x1c3)][_0x3a9ca1(0x1cf)](_0x3951ce),_0x62b6af=new _univerjs_core[(_0x3a9ca1(0x3c2))](_0x3f6c4c[_0x3a9ca1(0x3eb)]['cellValue']),_0x437145=_0x62b6af[_0x3a9ca1(0x3d1)](),_0x3427b5=_0x4c546a[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x29a)],_0x51cf37=_0x3427b5[_0x3a9ca1(0x3aa)]-_0x3427b5[_0x3a9ca1(0x357)]+0x1;if(_0x3f6c4c['params']['cellValue']&&_0x3427b5[_0x3a9ca1(0x357)]<=_0x437145['endRow']){const _0x3f434c=Math[_0x3a9ca1(0x2bd)](_0x437145[_0x3a9ca1(0x357)],_0x3427b5['startRow']);moveRows(_0x3f6c4c['params'][_0x3a9ca1(0x31f)],_0x3f434c,_0x437145[_0x3a9ca1(0x3aa)]-_0x3f434c+0x1,_0x51cf37);}const _0x26ef7c=new _univerjs_core[(_0x3a9ca1(0x3c2))]();let _0x4b4f01=![];_0x62b6af[_0x3a9ca1(0x387)]((_0x573567,_0x2b0a44,_0x53883f)=>{const _0x23d18a=_0x3a9ca1;if(_0x53883f&&_0x53883f['f']){const _0x4cf3f6=_0x53883f['f'];let _0x48a8a1=![];const _0x35d8dc=processFormulaString(_0x4c546a[_0x23d18a(0x3eb)]['unitId'],_0x4c546a[_0x23d18a(0x3eb)]['subUnitId'],_0x4cf3f6,_0x4f45e1=>{const _0x4cc0b6=_0x23d18a,_0x58d8ad=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x4cc0b6(0x1eb)])(_0x4c546a[_0x4cc0b6(0x3eb)][_0x4cc0b6(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4f45e1)));return(_0x58d8ad[_0x4cc0b6(0x2af)]!==0x0||_0x58d8ad[_0x4cc0b6(0x29d)]!==0x0)&&(_0x48a8a1=!![],_0x4f45e1[_0x4cc0b6(0x357)]+=_0x58d8ad[_0x4cc0b6(0x2af)],_0x4f45e1[_0x4cc0b6(0x3aa)]+=_0x58d8ad['step']+_0x58d8ad[_0x4cc0b6(0x29d)]),_0x4f45e1;});_0x48a8a1&&(_0x4b4f01=!![],_0x53883f['f']=_0x35d8dc,_0x26ef7c[_0x23d18a(0x2fe)](_0x573567,_0x2b0a44,{..._0x53883f}));}});if(_0x4b4f01){const _0x587852={'id':_univerjs_sheets[_0x3a9ca1(0x30f)]['id'],'params':{'unitId':_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x1d0)],'subUnitId':_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)],'cellValue':_0x26ef7c[_0x3a9ca1(0x1d1)]()}};_0x48b10f['push'](_0x587852);}return{'m1Prime':_0x48b10f,'m2Prime':_0x3f6c4c};}},insertRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x415e13,_0x20303e){const _0x272b63=_0xfc9601,_0x112551={'m1Prime':_0x415e13,'m2Prime':_0x20303e};if(_0x415e13[_0x272b63(0x3eb)][_0x272b63(0x1d0)]!==_0x20303e[_0x272b63(0x3eb)]['unitId']||_0x415e13['params'][_0x272b63(0x25e)]!==_0x20303e['params'][_0x272b63(0x25e)])return _0x112551;const _0x83dcd9=_univerjs_core[_0x272b63(0x1c3)][_0x272b63(0x1cf)](_0x415e13),_0xe587ac=_univerjs_core[_0x272b63(0x1c3)][_0x272b63(0x1cf)](_0x20303e),{rowData:_0x1d18f0}=_0xe587ac[_0x272b63(0x3eb)];for(let _0x33c32e=_0x415e13[_0x272b63(0x3eb)]['range']['startRow'];_0x33c32e<=_0x415e13['params'][_0x272b63(0x29a)][_0x272b63(0x3aa)];_0x33c32e++)(0x0,_univerjs_core['insertMatrixArray'])(_0x33c32e,void 0x0,_0x1d18f0);return{'m1Prime':_0x83dcd9,'m2Prime':_0xe587ac};}},insertRowMutationWithSetRowHidden={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['SetRowHiddenMutation']['id'],'handler'(_0x5ca106,_0xb66917){const _0x54b0ae=_0xfc9601,_0x5676a5={'m1Prime':_0x5ca106,'m2Prime':_0xb66917};if(_0x5ca106[_0x54b0ae(0x3eb)][_0x54b0ae(0x1d0)]!==_0xb66917[_0x54b0ae(0x3eb)][_0x54b0ae(0x1d0)]||_0x5ca106[_0x54b0ae(0x3eb)][_0x54b0ae(0x25e)]!==_0xb66917[_0x54b0ae(0x3eb)][_0x54b0ae(0x25e)])return _0x5676a5;const _0x13fb76=_univerjs_core[_0x54b0ae(0x1c3)][_0x54b0ae(0x1cf)](_0x5ca106),_0x119033=_univerjs_core[_0x54b0ae(0x1c3)][_0x54b0ae(0x1cf)](_0xb66917),{ranges:_0x518d75}=_0x119033['params'];if(_0x518d75[_0x54b0ae(0x3ad)](_0x36af4d=>{const _0x58a766=_0x54b0ae,_0xd6a467=(0x0,_univerjs_sheets[_0x58a766(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x58a766(0x1eb)])(_0x5ca106[_0x58a766(0x3eb)][_0x58a766(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x58a766(0x1eb)])(_0x36af4d)));if(_0xd6a467[_0x58a766(0x29d)]!==0x0)return!![];return _0x36af4d[_0x58a766(0x357)]+=_0xd6a467[_0x58a766(0x2af)],_0x36af4d[_0x58a766(0x3aa)]+=_0xd6a467[_0x58a766(0x2af)],![];}))return{'error':new Error(_0x54b0ae(0x1c2))};return{'m1Prime':_0x13fb76,'m2Prime':_0x119033};}},insertRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x349)]['id'],'handler'(_0x4caf78,_0x79c0e9){const _0x38e32a=_0xfc9601,_0x3c9fb0={'m1Prime':_0x4caf78,'m2Prime':_0x79c0e9};if(_0x4caf78[_0x38e32a(0x3eb)][_0x38e32a(0x1d0)]!==_0x79c0e9[_0x38e32a(0x3eb)]['unitId']||_0x4caf78[_0x38e32a(0x3eb)][_0x38e32a(0x25e)]!==_0x79c0e9[_0x38e32a(0x3eb)]['subUnitId'])return _0x3c9fb0;const _0x1efc94=_univerjs_core[_0x38e32a(0x1c3)][_0x38e32a(0x1cf)](_0x4caf78),_0x3bb920=_univerjs_core['Tools'][_0x38e32a(0x1cf)](_0x79c0e9),{ranges:_0x252a16}=_0x3bb920[_0x38e32a(0x3eb)];if(_0x252a16[_0x38e32a(0x3ad)](_0x280bc1=>{const _0x2ccfd3=_0x38e32a,_0x2e9647=(0x0,_univerjs_sheets[_0x2ccfd3(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4caf78[_0x2ccfd3(0x3eb)][_0x2ccfd3(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x280bc1)));if(_0x2e9647[_0x2ccfd3(0x29d)]!==0x0)return!![];return _0x280bc1[_0x2ccfd3(0x357)]+=_0x2e9647[_0x2ccfd3(0x2af)],_0x280bc1[_0x2ccfd3(0x3aa)]+=_0x2e9647[_0x2ccfd3(0x2af)],![];}))return{'error':new Error(_0x38e32a(0x3c8))};return{'m1Prime':_0x1efc94,'m2Prime':_0x3bb920};}},insertRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0x3d5808,_0x279c0f){const _0x45858c=_0xfc9601,_0x5c8ca5={'m1Prime':[],'m2Prime':[]};if(_0x3d5808[_0x45858c(0x3eb)][_0x45858c(0x1d0)]!==_0x279c0f[_0x45858c(0x3eb)][_0x45858c(0x1d0)]||_0x3d5808['params'][_0x45858c(0x25e)]!==_0x279c0f[_0x45858c(0x3eb)][_0x45858c(0x25e)])return _0x5c8ca5;const _0x149530=_univerjs_core['Tools']['deepClone'](_0x279c0f);let _0x5c2176=![];_0x149530[_0x45858c(0x3eb)]['selections']['forEach'](_0x39a392=>{const _0x5df938=_0x45858c,{range:_0x4a0fea,primary:_0x5c0ed5}=_0x39a392,_0x369387=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3d5808['params'][_0x5df938(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x5df938(0x1eb)])(_0x4a0fea)));if(_0x369387[_0x5df938(0x29d)]||_0x369387['step']){_0x4a0fea[_0x5df938(0x357)]+=_0x369387[_0x5df938(0x2af)],_0x4a0fea['endRow']+=_0x369387['step']+(_0x369387[_0x5df938(0x29d)]||0x0);if(_0x5c0ed5){const _0x5ce8d3=(0x0,_univerjs_sheets[_0x5df938(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3d5808['params'][_0x5df938(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x5df938(0x1eb)])(_0x5c0ed5)));(_0x5ce8d3['length']||_0x5ce8d3[_0x5df938(0x2af)])&&(_0x5c0ed5[_0x5df938(0x357)]+=_0x5ce8d3[_0x5df938(0x2af)],_0x5c0ed5[_0x5df938(0x3aa)]+=_0x5ce8d3[_0x5df938(0x2af)],_0x5c0ed5[_0x5df938(0x418)]+=_0x5ce8d3[_0x5df938(0x2af)]);}_0x5c2176=!![];}});if(_0x5c2176)_0x5c8ca5['m2Prime'][_0x45858c(0x380)](_0x149530);return _0x5c8ca5;}},insertRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x454520,_0x3aaa83){const _0xc1234b=_0xfc9601,_0x456edc={'m1Prime':[_0x454520],'m2Prime':[_0x3aaa83]};if(_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x1d0)]!==_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x1d0)]||_0x454520[_0xc1234b(0x3eb)]['subUnitId']!==_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x25e)])return _0x456edc;const _0x2679e6=_univerjs_core[_0xc1234b(0x1c3)][_0xc1234b(0x1cf)](_0x454520),_0x120ddb=_univerjs_core[_0xc1234b(0x1c3)]['deepClone'](_0x3aaa83),_0x82fdf1=handleInsert({'start':_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x357)],'end':_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x3aa)]},{'start':_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x29a)]['startRow'],'end':_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x29a)]['endRow']});if(_0x120ddb[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x357)]===_0x82fdf1[_0xc1234b(0x40e)]&&_0x120ddb[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x3aa)]===_0x82fdf1['end'])return _0x456edc;return _0x120ddb[_0xc1234b(0x3eb)]['range'][_0xc1234b(0x357)]=_0x82fdf1[_0xc1234b(0x40e)],_0x120ddb['params']['range'][_0xc1234b(0x3aa)]=_0x82fdf1[_0xc1234b(0x3bc)],{'m1Prime':[_0x120ddb,_0x2679e6],'m2Prime':[_0x120ddb]};}},insertRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x3e1e2a,_0x38e5a7){const _0x442761=_0xfc9601,_0x34426e={'m1Prime':_0x3e1e2a,'m2Prime':_0x38e5a7};if(_0x3e1e2a['params'][_0x442761(0x1d0)]!==_0x38e5a7[_0x442761(0x3eb)][_0x442761(0x1d0)]||_0x3e1e2a[_0x442761(0x3eb)][_0x442761(0x25e)]!==_0x38e5a7[_0x442761(0x3eb)]['subUnitId'])return _0x34426e;const _0x399702=_univerjs_core[_0x442761(0x1c3)]['deepClone'](_0x3e1e2a),_0x3bca0e=_univerjs_core[_0x442761(0x1c3)][_0x442761(0x1cf)](_0x38e5a7),{rowsAutoHeightInfo:_0x129c8a}=_0x3bca0e[_0x442761(0x3eb)];if(_0x129c8a[_0x442761(0x3ad)](_0x22a7f8=>{const _0x568def=_0x442761,_0x533c70={'startRow':_0x22a7f8[_0x568def(0x2bb)],'endRow':_0x22a7f8[_0x568def(0x2bb)],'startColumn':0x0,'endColumn':0x0},_0x1b85b4=(0x0,_univerjs_sheets[_0x568def(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x568def(0x1eb)])(_0x3e1e2a[_0x568def(0x3eb)][_0x568def(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x533c70));if(_0x1b85b4[_0x568def(0x29d)]!==0x0)return!![];return _0x22a7f8[_0x568def(0x2bb)]+=_0x1b85b4[_0x568def(0x2af)],![];}))return{'error':new Error(_0x442761(0x32b))};return{'m1Prime':_0x399702,'m2Prime':_0x3bca0e};}},insertRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x1602b0,_0x403c5a){const _0x4cf2e9=_0xfc9601,_0x2d49fc={'m1Prime':_0x1602b0,'m2Prime':_0x403c5a};if(_0x1602b0['params'][_0x4cf2e9(0x1d0)]!==_0x403c5a[_0x4cf2e9(0x3eb)][_0x4cf2e9(0x1d0)]||_0x1602b0[_0x4cf2e9(0x3eb)]['subUnitId']!==_0x403c5a['params'][_0x4cf2e9(0x25e)])return _0x2d49fc;const _0x44ed62=_univerjs_core['Tools'][_0x4cf2e9(0x1cf)](_0x1602b0),_0x355551=_univerjs_core[_0x4cf2e9(0x1c3)][_0x4cf2e9(0x1cf)](_0x403c5a),{ranges:_0x38e9c0,rowHeight:_0x281de2}=_0x355551[_0x4cf2e9(0x3eb)];if(_0x38e9c0[_0x4cf2e9(0x3ad)](_0x5c3d0b=>{const _0x36d036=_0x4cf2e9,_0x550c23=(0x0,_univerjs_sheets[_0x36d036(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x36d036(0x1eb)])(_0x1602b0[_0x36d036(0x3eb)]['range'])),(0x0,_univerjs_sheets[_0x36d036(0x1eb)])(_0x5c3d0b));if(_0x550c23[_0x36d036(0x29d)]!==0x0)return!![];return _0x5c3d0b['startRow']+=_0x550c23[_0x36d036(0x2af)],_0x5c3d0b['endRow']+=_0x550c23[_0x36d036(0x2af)],![];}))return{'error':new Error(_0x4cf2e9(0x345))};if(typeof _0x281de2!==_0x4cf2e9(0x28f)){for(let _0x4b3d96=_0x1602b0['params'][_0x4cf2e9(0x29a)][_0x4cf2e9(0x357)];_0x4b3d96<=_0x1602b0[_0x4cf2e9(0x3eb)][_0x4cf2e9(0x29a)][_0x4cf2e9(0x3aa)];_0x4b3d96++)(0x0,_univerjs_core['insertMatrixArray'])(_0x4b3d96,void 0x0,_0x281de2);}return{'m1Prime':_0x44ed62,'m2Prime':_0x355551};}},insertRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x10b171,_0x568efa){const _0x26f69a=_0xfc9601,_0x2154f9={'m1Prime':_0x10b171,'m2Prime':_0x568efa};if(_0x10b171[_0x26f69a(0x3eb)]['unitId']!==_0x568efa[_0x26f69a(0x3eb)][_0x26f69a(0x1d0)]||_0x10b171['params']['subUnitId']!==_0x568efa[_0x26f69a(0x3eb)]['subUnitId'])return _0x2154f9;const _0xe28493=_univerjs_core[_0x26f69a(0x1c3)]['deepClone'](_0x10b171),_0x1937c4=_univerjs_core['Tools'][_0x26f69a(0x1cf)](_0x568efa),{ranges:_0x192fd0,autoHeightInfo:_0x28c9e0}=_0x1937c4['params'];if(_0x192fd0[_0x26f69a(0x3ad)](_0x28265d=>{const _0x88acb5=_0x26f69a,_0x1d5bdb=(0x0,_univerjs_sheets[_0x88acb5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x88acb5(0x1eb)])(_0x10b171['params'][_0x88acb5(0x29a)])),(0x0,_univerjs_sheets[_0x88acb5(0x1eb)])(_0x28265d));if(_0x1d5bdb[_0x88acb5(0x29d)]!==0x0)return!![];return _0x28265d[_0x88acb5(0x357)]+=_0x1d5bdb[_0x88acb5(0x2af)],_0x28265d['endRow']+=_0x1d5bdb[_0x88acb5(0x2af)],![];}))return{'error':new Error(_0x26f69a(0x20e))};if(typeof _0x28c9e0!==_0x26f69a(0x28f)){for(let _0x265cae=_0x10b171[_0x26f69a(0x3eb)][_0x26f69a(0x29a)][_0x26f69a(0x357)];_0x265cae<=_0x10b171[_0x26f69a(0x3eb)][_0x26f69a(0x29a)]['endRow'];_0x265cae++)(0x0,_univerjs_core['insertMatrixArray'])(_0x265cae,void 0x0,_0x28c9e0);}return{'m1Prime':_0xe28493,'m2Prime':_0x1937c4};}},insertRowWithUpdateCommentRef={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x167253,_0x486073)=>{const _0x31e637=_0xfc9601,_0x488db1={'m1Prime':_0x167253,'m2Prime':_0x486073};if(_0x167253['params']['unitId']!==_0x486073['params'][_0x31e637(0x1d0)]||_0x167253[_0x31e637(0x3eb)][_0x31e637(0x25e)]!==_0x486073['params']['subUnitId'])return _0x488db1;const _0x38bbe8=transformUpdateCommentRefWithRefRange(_0x486073,{'id':_univerjs_sheets[_0x31e637(0x2e8)]['id'],'params':{'unitId':_0x167253[_0x31e637(0x3eb)]['unitId'],'subUnitId':_0x167253[_0x31e637(0x3eb)]['subUnitId'],'range':_0x167253[_0x31e637(0x3eb)]['range']}});return{'m1Prime':[_0x167253,..._0x38bbe8],'m2Prime':[_0x486073,..._0x38bbe8]};}},insertRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x418206,_0x1feae0)=>{const _0x425dd4=_0xfc9601,_0x43fa6d={'m1Prime':_0x418206,'m2Prime':_0x1feae0};if(_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)]!==_0x1feae0[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)]||_0x1feae0['params'][_0x425dd4(0x25e)]!==_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x25e)])return _0x43fa6d;const _0x39d544=transformUpdateDataValidationWithRefRange(_0x1feae0,{'id':_univerjs_sheets[_0x425dd4(0x2e8)]['id'],'params':{'unitId':_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)],'subUnitId':_0x418206[_0x425dd4(0x3eb)]['subUnitId'],'range':_0x418206[_0x425dd4(0x3eb)]['range']}});return{'m1Prime':[_0x418206,..._0x39d544],'m2Prime':[_0x1feae0,..._0x39d544]};}},moveColWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x2702bb,_0x5c29a7)=>{const _0x58725b=_0xfc9601,_0x233af5={'m1Prime':_0x2702bb,'m2Prime':_0x5c29a7};if(_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x1d0)]!==_0x5c29a7[_0x58725b(0x3eb)][_0x58725b(0x1d0)]||_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x25e)]!==_0x5c29a7['params']['subUnitId'])return _0x233af5;const _0x5bb607=transformAddCommentWithRefRange(_0x5c29a7,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'unitId':_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x1d0)],'subUnitId':_0x2702bb['params'][_0x58725b(0x25e)],'fromRange':_0x2702bb[_0x58725b(0x3eb)]['sourceRange'],'toRange':_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x38d)]}});return{'m1Prime':[_0x2702bb,..._0x5bb607],'m2Prime':[_0x5c29a7,..._0x5bb607]};}},moveColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x47c0e9,_0x2ff135){const _0x1a381a=_0xfc9601,_0x924479=addWorksheetMergeMutationWithMoveColMutation['handler'](_0x2ff135,_0x47c0e9);if(isTransformMutationSuccess(_0x924479))return{'m1Prime':_0x924479[_0x1a381a(0x3d9)],'m2Prime':_0x924479[_0x1a381a(0x39d)]};else return _0x924479;}},moveColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x2db5f9,_0x13ebd2){const _0x3d6e71=_0xfc9601,_0x366184={'m1Prime':_0x2db5f9,'m2Prime':_0x13ebd2};if(_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x1d0)]!==_0x13ebd2['params'][_0x3d6e71(0x1d0)]||_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x25e)]!==_0x13ebd2[_0x3d6e71(0x3eb)][_0x3d6e71(0x25e)])return _0x366184;const _0x211b25=_univerjs_core['Tools'][_0x3d6e71(0x1cf)](_0x2db5f9),_0x5a7a6f=_univerjs_core['Tools'][_0x3d6e71(0x1cf)](_0x13ebd2),_0x3e1d11=_0x13ebd2[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)],_0x5d5fb3=_0x13ebd2[_0x3d6e71(0x3eb)]['targetRange'],_0x160829=_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)],_0x4f127e=_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)];if(_0x160829[_0x3d6e71(0x22a)]>=_0x3e1d11[_0x3d6e71(0x245)]&&_0x160829['startColumn']<=_0x3e1d11[_0x3d6e71(0x22a)])return{'error':new Error(_0x3d6e71(0x346))};const _0x387eda=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x160829[_0x3d6e71(0x245)],'end':_0x160829[_0x3d6e71(0x22a)]},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]},{'start':_0x3e1d11[_0x3d6e71(0x245)],'end':_0x3e1d11[_0x3d6e71(0x22a)]}),_0x282073=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x160829[_0x3d6e71(0x245)],'end':_0x160829['endColumn']},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]},{'start':_0x5d5fb3['startColumn'],'end':_0x5d5fb3[_0x3d6e71(0x22a)]});if(_0x387eda&&_0x282073)_0x5a7a6f['params'][_0x3d6e71(0x202)]['startColumn']+=_0x387eda['step'],_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)]['endColumn']+=_0x387eda[_0x3d6e71(0x2af)]+(_0x387eda[_0x3d6e71(0x29d)]||0x0),_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x245)]+=_0x282073[_0x3d6e71(0x2af)],_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x22a)]+=_0x282073[_0x3d6e71(0x2af)]+(_0x282073[_0x3d6e71(0x29d)]||0x0);else _0x5a7a6f['id']=_univerjs_sheets[_0x3d6e71(0x305)]['id'];const _0x3006e7=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x3e1d11['startColumn'],'end':_0x3e1d11[_0x3d6e71(0x22a)]},{'start':_0x5d5fb3[_0x3d6e71(0x245)],'end':_0x5d5fb3[_0x3d6e71(0x22a)]},{'start':_0x160829['startColumn'],'end':_0x160829[_0x3d6e71(0x22a)]}),_0x2b032e=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x3e1d11[_0x3d6e71(0x245)],'end':_0x3e1d11['endColumn']},{'start':_0x5d5fb3[_0x3d6e71(0x245)],'end':_0x5d5fb3[_0x3d6e71(0x22a)]},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]});if(_0x3006e7&&_0x2b032e)_0x211b25['params'][_0x3d6e71(0x202)]['startColumn']+=_0x3006e7[_0x3d6e71(0x2af)],_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)][_0x3d6e71(0x22a)]+=_0x3006e7[_0x3d6e71(0x2af)]+(_0x3006e7[_0x3d6e71(0x29d)]||0x0),_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x245)]+=_0x2b032e['step'],_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)]['endColumn']+=_0x2b032e[_0x3d6e71(0x2af)]+(_0x2b032e[_0x3d6e71(0x29d)]||0x0);else _0x211b25['id']=_univerjs_sheets[_0x3d6e71(0x305)]['id'];return{'m1Prime':_0x211b25,'m2Prime':_0x5a7a6f};}},moveColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x19d7a5,_0x2e3595){const _0x316f00=_0xfc9601,_0x4715dd={'m1Prime':_0x19d7a5,'m2Prime':_0x2e3595};if(_0x19d7a5[_0x316f00(0x3eb)]['unitId']!==_0x2e3595[_0x316f00(0x3eb)][_0x316f00(0x1d0)]||_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]!==_0x2e3595[_0x316f00(0x3eb)]['from'][_0x316f00(0x25e)]&&_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]!==_0x2e3595[_0x316f00(0x3eb)]['to']['subUnitId'])return _0x4715dd;const _0x445284=_univerjs_core[_0x316f00(0x1c3)][_0x316f00(0x1cf)](_0x19d7a5),_0x36ae96=_univerjs_core[_0x316f00(0x1c3)][_0x316f00(0x1cf)](_0x2e3595),_0x32399e=_0x19d7a5['params'][_0x316f00(0x202)],_0x1df6bd=_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x38d)];if(_0x19d7a5['params'][_0x316f00(0x25e)]===_0x2e3595['params'][_0x316f00(0x3a4)][_0x316f00(0x25e)]){const _0x4a2201=new _univerjs_core[(_0x316f00(0x3c2))](_0x36ae96[_0x316f00(0x3eb)]['from'][_0x316f00(0x3e6)]),_0x830f07=_0x4a2201['getDataRange']();if(intersect({'start':_0x32399e['startColumn'],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x830f07['startColumn'],'end':_0x830f07['endColumn']})||intersect({'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd['endColumn']},{'start':_0x830f07[_0x316f00(0x245)],'end':_0x830f07[_0x316f00(0x22a)]}))return{'error':new Error(_0x316f00(0x359))};const _0x3aec59=(0x0,_univerjs_sheets[_0x316f00(0x3e5)])({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e['endColumn']},{'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x830f07[_0x316f00(0x245)],'end':_0x830f07[_0x316f00(0x22a)]});if(_0x3aec59[_0x316f00(0x29d)]!==0x0)return{'error':new Error(_0x316f00(0x359))};if(_0x3aec59['step']!==0x0)_0x4a2201['moveColumns'](_0x32399e[_0x316f00(0x245)],_0x32399e[_0x316f00(0x22a)]-_0x32399e[_0x316f00(0x245)]+0x1,_0x1df6bd[_0x316f00(0x245)]);_0x36ae96[_0x316f00(0x3eb)][_0x316f00(0x3a4)][_0x316f00(0x3e6)]=_0x4a2201['getMatrix']();}if(_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]===_0x2e3595[_0x316f00(0x3eb)]['to'][_0x316f00(0x25e)]){const _0x529ef9=new _univerjs_core[(_0x316f00(0x3c2))](_0x36ae96[_0x316f00(0x3eb)]['to'][_0x316f00(0x3e6)]),_0x3ae59e=_0x529ef9['getDataRange']();if(intersect({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]})||intersect({'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};const _0x163f8a=(0x0,_univerjs_sheets[_0x316f00(0x3e5)])({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]});if(_0x163f8a['length']!==0x0)return{'error':new Error(_0x316f00(0x359))};if(_0x163f8a[_0x316f00(0x2af)]!==0x0)_0x529ef9[_0x316f00(0x23f)](_0x32399e['startColumn'],_0x32399e[_0x316f00(0x22a)]-_0x32399e[_0x316f00(0x245)]+0x1,_0x1df6bd[_0x316f00(0x245)]);_0x36ae96[_0x316f00(0x3eb)]['to'][_0x316f00(0x3e6)]=_0x529ef9[_0x316f00(0x1d1)]();}return{'m1Prime':_0x445284,'m2Prime':_0x36ae96};}},moveColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x117162,_0x2c137a){const _0x425efe=_0xfc9601,_0x2a2ce6={'m1Prime':_0x117162,'m2Prime':_0x2c137a};if(_0x117162[_0x425efe(0x3eb)]['unitId']!==_0x2c137a['params'][_0x425efe(0x1d0)]||_0x117162['params'][_0x425efe(0x25e)]!==_0x2c137a[_0x425efe(0x3eb)]['subUnitId'])return _0x2a2ce6;const _0x5a5438=_univerjs_core[_0x425efe(0x1c3)]['deepClone'](_0x117162),_0x4f10b5=_univerjs_core['Tools']['deepClone'](_0x2c137a),{sourceRange:_0x16bf2d,targetRange:_0x136459}=_0x117162[_0x425efe(0x3eb)],_0x125220={'start':_0x16bf2d['startColumn'],'end':_0x16bf2d[_0x425efe(0x22a)]},_0x64b459={'start':_0x136459[_0x425efe(0x245)],'end':_0x136459['endColumn']};if(_0x4f10b5[_0x425efe(0x3eb)][_0x425efe(0x3a3)][_0x425efe(0x3ad)](_0x248cfc=>{const _0x54aec3=_0x425efe,_0x3108df={'start':_0x248cfc[_0x54aec3(0x245)],'end':_0x248cfc[_0x54aec3(0x22a)]},_0x6cba61=intersect(_0x125220,_0x3108df),_0x2e8126=intersect(_0x64b459,_0x3108df);if(_0x6cba61||_0x2e8126)return!![];const _0x3c7b13=(0x0,_univerjs_sheets[_0x54aec3(0x3e5)])(_0x125220,_0x64b459,_0x3108df);if(_0x3c7b13[_0x54aec3(0x29d)]!==0x0)return!![];return _0x248cfc[_0x54aec3(0x245)]+=_0x3c7b13[_0x54aec3(0x2af)],_0x248cfc[_0x54aec3(0x22a)]+=_0x3c7b13[_0x54aec3(0x2af)],![];}))return{'error':new Error(_0x425efe(0x33c))};return{'m1Prime':_0x5a5438,'m2Prime':_0x4f10b5};}},moveColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x169247,_0x3520c5){const _0x5b2dd5=_0xfc9601,_0x265400=_univerjs_core[_0x5b2dd5(0x1c3)]['deepClone'](_0x169247),_0x13ecbd=_univerjs_core['Tools'][_0x5b2dd5(0x1cf)](_0x3520c5);if(_0x169247['params'][_0x5b2dd5(0x1d0)]!==_0x3520c5[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x1d0)]||_0x169247[_0x5b2dd5(0x3eb)]['subUnitId']!==_0x3520c5['params'][_0x5b2dd5(0x25e)])return{'m1Prime':_0x265400,'m2Prime':_0x13ecbd};const _0x19b44d=_0x13ecbd[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x3a3)][_0x5b2dd5(0x2a5)]((_0x45879f,_0x2eb479)=>{const _0x214545=_0x5b2dd5,{sourceRange:_0x1bd97b,targetRange:_0xea7a2e}=_0x169247[_0x214545(0x3eb)],_0x32e472={..._0x2eb479};if(_0x1bd97b['endColumn']<_0x32e472[_0x214545(0x245)]&&_0xea7a2e[_0x214545(0x245)]>_0x32e472['endColumn'])_0x32e472[_0x214545(0x245)]-=_0x1bd97b['endColumn']-_0x1bd97b[_0x214545(0x245)]+0x1,_0x32e472['endColumn']-=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,isMergeCell(_0x32e472)&&_0x45879f[_0x214545(0x380)](_0x32e472);else{if(_0x1bd97b['startColumn']>_0x32e472['endColumn']&&_0xea7a2e['endColumn']<_0x32e472[_0x214545(0x245)])_0x32e472[_0x214545(0x245)]+=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,_0x32e472['endColumn']+=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,isMergeCell(_0x32e472)&&_0x45879f[_0x214545(0x380)](_0x32e472);else{if(_univerjs_core['Rectangle'][_0x214545(0x3b4)](_0x32e472,_0x1bd97b)||_univerjs_core['Rectangle'][_0x214545(0x3b4)](_0x32e472,_0xea7a2e)){}else _0x45879f[_0x214545(0x380)](_0x32e472);}}return _0x45879f;},[]);_0x13ecbd[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x3a3)]=_0x19b44d;if(_0x13ecbd['params']['ranges'][_0x5b2dd5(0x29d)]===0x0)_0x13ecbd['id']=_univerjs_sheets[_0x5b2dd5(0x305)]['id'];return{'m1Prime':_0x265400,'m2Prime':_0x13ecbd};}},moveColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x244ef5,_0x15455b){const _0xaca232=_0xfc9601,_0x4413c6={'m1Prime':_0x244ef5,'m2Prime':_0x15455b};if(_0x244ef5['params'][_0xaca232(0x1d0)]!==_0x15455b[_0xaca232(0x3eb)][_0xaca232(0x1d0)]||_0x244ef5['params'][_0xaca232(0x25e)]!==_0x15455b[_0xaca232(0x3eb)]['subUnitId'])return _0x4413c6;const _0x4144ff=_0x244ef5[_0xaca232(0x3eb)][_0xaca232(0x202)][_0xaca232(0x245)],_0x2ceb3f=_0x244ef5['params'][_0xaca232(0x202)][_0xaca232(0x22a)],_0x386a76=_0x244ef5[_0xaca232(0x3eb)]['targetRange'][_0xaca232(0x245)],_0x46ddd3=_0x244ef5[_0xaca232(0x3eb)][_0xaca232(0x38d)][_0xaca232(0x22a)],_0x2d42b0=_0x15455b['params'][_0xaca232(0x29a)][_0xaca232(0x245)],_0x2ec63b=_0x15455b['params'][_0xaca232(0x29a)][_0xaca232(0x22a)];if(_0x4144ff<=_0x2ec63b&&_0x2ceb3f>=_0x2d42b0||_0x386a76<=_0x2ec63b&&_0x46ddd3>=_0x2d42b0)return{'error':new Error(_0xaca232(0x3fa))};const _0x1b20cc=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x4144ff,'end':_0x2ceb3f},{'start':_0x386a76,'end':_0x46ddd3},{'start':_0x2d42b0,'end':_0x2ec63b}),_0x51ec19=_univerjs_core[_0xaca232(0x1c3)][_0xaca232(0x1cf)](_0x15455b);return _0x51ec19[_0xaca232(0x3eb)][_0xaca232(0x29a)]['startColumn']+=_0x1b20cc[_0xaca232(0x2af)],_0x51ec19['params']['range'][_0xaca232(0x22a)]+=_0x1b20cc['step']+(_0x1b20cc[_0xaca232(0x29d)]||0x0),{'m1Prime':_0x244ef5,'m2Prime':_0x51ec19};}},moveColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x3d4f5a,_0xaae2df){const _0x1fe12c=_0xfc9601,_0x4dc2b0={'m1Prime':_0x3d4f5a,'m2Prime':_0xaae2df};if(_0x3d4f5a[_0x1fe12c(0x3eb)]['unitId']!==_0xaae2df[_0x1fe12c(0x3eb)][_0x1fe12c(0x1d0)]||_0x3d4f5a[_0x1fe12c(0x3eb)][_0x1fe12c(0x25e)]!==_0xaae2df[_0x1fe12c(0x3eb)][_0x1fe12c(0x25e)])return _0x4dc2b0;const _0x55b3a4=_univerjs_core[_0x1fe12c(0x1c3)]['deepClone'](_0x3d4f5a),_0x310682=_univerjs_core['Tools']['deepClone'](_0xaae2df),{columnData:_0x1b43ce}=_0x310682[_0x1fe12c(0x3eb)],{sourceRange:_0x59625c,targetRange:_0x4ca90f}=_0x3d4f5a['params'];return(0x0,_univerjs_core[_0x1fe12c(0x391)])(_0x59625c[_0x1fe12c(0x245)],_0x59625c[_0x1fe12c(0x22a)]-_0x59625c[_0x1fe12c(0x245)]+0x1,_0x4ca90f[_0x1fe12c(0x245)],_0x1b43ce),{'m1Prime':_0x55b3a4,'m2Prime':_0x310682};}},moveColMutationWithSetColHidden={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x39c)]['id'],'handler'(_0x30a2e1,_0x5f2e46){const _0x1ae427=_0xfc9601,_0x3f5c1a={'m1Prime':_0x30a2e1,'m2Prime':_0x5f2e46};if(_0x30a2e1[_0x1ae427(0x3eb)][_0x1ae427(0x1d0)]!==_0x5f2e46[_0x1ae427(0x3eb)][_0x1ae427(0x1d0)]||_0x30a2e1[_0x1ae427(0x3eb)][_0x1ae427(0x25e)]!==_0x5f2e46['params'][_0x1ae427(0x25e)])return _0x3f5c1a;const _0x12ab9d=_univerjs_core[_0x1ae427(0x1c3)][_0x1ae427(0x1cf)](_0x30a2e1),_0x2494a9=_univerjs_core['Tools'][_0x1ae427(0x1cf)](_0x5f2e46),{ranges:_0x13c726}=_0x2494a9[_0x1ae427(0x3eb)],{sourceRange:_0x3b0de5,targetRange:_0x5f5816}=_0x30a2e1[_0x1ae427(0x3eb)],_0x23c30e={'start':_0x3b0de5[_0x1ae427(0x245)],'end':_0x3b0de5['endColumn']},_0x22c31d={'start':_0x5f5816[_0x1ae427(0x245)],'end':_0x5f5816['endColumn']};if(_0x13c726[_0x1ae427(0x3ad)](_0x10c43f=>{const _0x456fc9=_0x1ae427,_0x10cd00={'start':_0x10c43f['startColumn'],'end':_0x10c43f[_0x456fc9(0x22a)]},_0x4881d8=intersect(_0x23c30e,_0x10cd00),_0x3e6280=intersect(_0x22c31d,_0x10cd00);if(_0x4881d8||_0x3e6280)return!![];const _0x56d869=(0x0,_univerjs_sheets[_0x456fc9(0x3e5)])(_0x23c30e,_0x22c31d,_0x10cd00);if(_0x56d869['length']!==0x0)return!![];return _0x10c43f['startColumn']+=_0x56d869[_0x456fc9(0x2af)],_0x10c43f[_0x456fc9(0x22a)]+=_0x56d869[_0x456fc9(0x2af)],![];}))return{'error':new Error(_0x1ae427(0x26b))};return{'m1Prime':_0x12ab9d,'m2Prime':_0x2494a9};}},moveColMutationWithSetColVisible={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets['SetColVisibleMutation']['id'],'handler'(_0xf86daa,_0x50a43e){const _0x43f575=_0xfc9601,_0x3d4ceb={'m1Prime':_0xf86daa,'m2Prime':_0x50a43e};if(_0xf86daa[_0x43f575(0x3eb)][_0x43f575(0x1d0)]!==_0x50a43e[_0x43f575(0x3eb)][_0x43f575(0x1d0)]||_0xf86daa['params'][_0x43f575(0x25e)]!==_0x50a43e[_0x43f575(0x3eb)][_0x43f575(0x25e)])return _0x3d4ceb;const _0x38f186=_univerjs_core[_0x43f575(0x1c3)][_0x43f575(0x1cf)](_0xf86daa),_0x81ead3=_univerjs_core[_0x43f575(0x1c3)]['deepClone'](_0x50a43e),{ranges:_0x329532}=_0x81ead3[_0x43f575(0x3eb)],{sourceRange:_0x1e8ee2,targetRange:_0x5e63c9}=_0xf86daa[_0x43f575(0x3eb)],_0xadfc90={'start':_0x1e8ee2['startColumn'],'end':_0x1e8ee2[_0x43f575(0x22a)]},_0xffeecb={'start':_0x5e63c9[_0x43f575(0x245)],'end':_0x5e63c9[_0x43f575(0x22a)]};if(_0x329532[_0x43f575(0x3ad)](_0x421783=>{const _0x38b7b6=_0x43f575,_0x40c3d5={'start':_0x421783[_0x38b7b6(0x245)],'end':_0x421783[_0x38b7b6(0x22a)]},_0x2f3677=intersect(_0xadfc90,_0x40c3d5),_0x2dee10=intersect(_0xffeecb,_0x40c3d5);if(_0x2f3677||_0x2dee10)return!![];const _0xb5e8ad=(0x0,_univerjs_sheets[_0x38b7b6(0x3e5)])(_0xadfc90,_0xffeecb,_0x40c3d5);if(_0xb5e8ad[_0x38b7b6(0x29d)]!==0x0)return!![];return _0x421783[_0x38b7b6(0x245)]+=_0xb5e8ad[_0x38b7b6(0x2af)],_0x421783[_0x38b7b6(0x22a)]+=_0xb5e8ad[_0x38b7b6(0x2af)],![];}))return{'error':new Error(_0x43f575(0x1fe))};return{'m1Prime':_0x38f186,'m2Prime':_0x81ead3};}},moveColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x170c41,_0x5dfba7){const _0xa5d330=_0xfc9601,_0x4e33c1={'m1Prime':_0x170c41,'m2Prime':_0x5dfba7};if(_0x170c41[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)]!==_0x5dfba7[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)]||_0x170c41[_0xa5d330(0x3eb)][_0xa5d330(0x25e)]!==_0x5dfba7['params'][_0xa5d330(0x25e)])return _0x4e33c1;const _0x325847=[_univerjs_core[_0xa5d330(0x1c3)][_0xa5d330(0x1cf)](_0x170c41)],_0xcbe51c=_univerjs_core['Tools'][_0xa5d330(0x1cf)](_0x5dfba7),{sourceRange:_0x2a1ee7,targetRange:_0x232389}=_0x170c41[_0xa5d330(0x3eb)],_0xe0fd29={'start':_0x2a1ee7[_0xa5d330(0x245)],'end':_0x2a1ee7[_0xa5d330(0x22a)]},_0xcbdf75={'start':_0x232389[_0xa5d330(0x245)],'end':_0x232389[_0xa5d330(0x22a)]},{values:_0x2f2005}=_0xcbe51c[_0xa5d330(0x3eb)],_0x23fb96=[];let _0x4763d9=![];for(const _0x17b27c in _0x2f2005){const _0xc277a1=_0x2f2005[_0x17b27c];_0x23fb96[_0xa5d330(0x380)](..._0xc277a1[_0xa5d330(0x3a3)]);if(_0xc277a1[_0xa5d330(0x3a3)][_0xa5d330(0x3ad)](_0x1b2448=>{const _0x477e75=_0xa5d330,_0x400dbc={'start':_0x1b2448[_0x477e75(0x245)],'end':_0x1b2448['endColumn']},_0x28b593=intersect(_0xe0fd29,_0x400dbc),_0x4b7609=intersect(_0xcbdf75,_0x400dbc);if(_0x28b593||_0x4b7609)return!![];const _0x18ea15=(0x0,_univerjs_sheets[_0x477e75(0x3e5)])(_0xe0fd29,_0xcbdf75,_0x400dbc);if(_0x18ea15[_0x477e75(0x29d)]!==0x0)return!![];if(_0x18ea15['step']!==0x0)_0x4763d9=!![];return _0x1b2448[_0x477e75(0x245)]+=_0x18ea15[_0x477e75(0x2af)],_0x1b2448['endColumn']+=_0x18ea15[_0x477e75(0x2af)],![];}))return{'error':new Error(_0xa5d330(0x3c9))};}if(_0x4763d9){const _0x4313e8={'id':_univerjs_sheets[_0xa5d330(0x2c9)]['id'],'params':{'unitId':_0x5dfba7[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)],'subUnitId':_0x5dfba7['params'][_0xa5d330(0x25e)],'ranges':_0x23fb96}};_0x325847[_0xa5d330(0x380)](_0x4313e8,_0xcbe51c);}return{'m1Prime':_0x325847,'m2Prime':_0xcbe51c};}},moveColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x41c7c2,_0x1ae08b){const _0x3eb28b=_0xfc9601,_0x560dc9={'m1Prime':_0x41c7c2,'m2Prime':_0x1ae08b};if(_0x41c7c2[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)]!==_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)]||_0x41c7c2['params']['subUnitId']!==_0x1ae08b['params'][_0x3eb28b(0x25e)])return _0x560dc9;const _0x159c96=[_univerjs_core[_0x3eb28b(0x1c3)][_0x3eb28b(0x1cf)](_0x41c7c2)],_0x46e4d2=_univerjs_core[_0x3eb28b(0x1c3)]['deepClone'](_0x1ae08b),_0x354232=new _univerjs_core['ObjectMatrix'](_0x46e4d2['params']['cellValue']),{sourceRange:_0x2ed457,targetRange:_0x117a6f}=_0x41c7c2[_0x3eb28b(0x3eb)],_0x35fdb6=_0x2ed457['startColumn'],_0x113eca=_0x2ed457[_0x3eb28b(0x22a)]-_0x2ed457[_0x3eb28b(0x245)]+0x1,_0x4d4941=_0x117a6f[_0x3eb28b(0x245)];_0x354232['moveColumns'](_0x35fdb6,_0x113eca,_0x4d4941);const _0x11b1c=new _univerjs_core[(_0x3eb28b(0x3c2))]();let _0x2c64e7=![];_0x354232['forValue']((_0x509778,_0x28d503,_0x28dc6e)=>{const _0x23e06e=_0x3eb28b;if(_0x28dc6e&&_0x28dc6e['f']){const _0x4904ed=_0x28dc6e['f'];let _0x4998f5=![];const _0x1f07d6=processFormulaString(_0x41c7c2['params'][_0x23e06e(0x1d0)],_0x41c7c2[_0x23e06e(0x3eb)][_0x23e06e(0x25e)],_0x4904ed,_0x683710=>{const _0x2f65d3=_0x23e06e,_0x52404a=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x41c7c2['params']['sourceRange']['startColumn'],'end':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x202)][_0x2f65d3(0x22a)]},{'start':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x38d)][_0x2f65d3(0x245)],'end':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x38d)]['endColumn']},{'start':_0x683710[_0x2f65d3(0x245)],'end':_0x683710[_0x2f65d3(0x22a)]});return(_0x52404a[_0x2f65d3(0x2af)]!==0x0||_0x52404a['length']!==0x0)&&(_0x4998f5=!![],_0x683710[_0x2f65d3(0x245)]+=_0x52404a['step'],_0x683710[_0x2f65d3(0x22a)]+=_0x52404a['step']+_0x52404a['length']),_0x683710;});_0x4998f5&&(_0x2c64e7=!![],_0x28dc6e['f']=_0x1f07d6,_0x11b1c[_0x23e06e(0x2fe)](_0x509778,_0x28d503,{..._0x28dc6e}));}});if(_0x2c64e7){const _0x575daf={'id':_univerjs_sheets[_0x3eb28b(0x30f)]['id'],'params':{'unitId':_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)],'subUnitId':_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x25e)],'cellValue':_0x11b1c[_0x3eb28b(0x1d1)]()}};_0x159c96['push'](_0x575daf);}return _0x46e4d2[_0x3eb28b(0x3eb)][_0x3eb28b(0x31f)]=_0x354232[_0x3eb28b(0x1d1)](),{'m1Prime':_0x159c96,'m2Prime':_0x46e4d2};}},moveColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x56e301,_0x1dce58){const _0xb75bb6=_0xfc9601,_0x9f6ba8={'m1Prime':[],'m2Prime':[]};if(_0x56e301[_0xb75bb6(0x3eb)][_0xb75bb6(0x1d0)]!==_0x1dce58[_0xb75bb6(0x3eb)][_0xb75bb6(0x1d0)]||_0x56e301[_0xb75bb6(0x3eb)][_0xb75bb6(0x25e)]!==_0x1dce58['params'][_0xb75bb6(0x25e)])return _0x9f6ba8;const _0xd2c7d4=_univerjs_core[_0xb75bb6(0x1c3)][_0xb75bb6(0x1cf)](_0x1dce58);let _0x251605=![];_0xd2c7d4['params']['selections'][_0xb75bb6(0x302)](_0x1fd512=>{const _0x53051d=_0xb75bb6,{range:_0x3ae580,primary:_0x3dc29e}=_0x1fd512,_0x3a6f36=(0x0,_univerjs_sheets[_0x53051d(0x3e5)])({'start':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)][_0x53051d(0x245)],'end':_0x56e301['params'][_0x53051d(0x202)]['endColumn']},{'start':_0x56e301['params']['targetRange']['startColumn'],'end':_0x56e301['params'][_0x53051d(0x38d)]['endColumn']},{'start':_0x3ae580[_0x53051d(0x245)],'end':_0x3ae580[_0x53051d(0x22a)]});if(_0x3a6f36[_0x53051d(0x29d)]||_0x3a6f36[_0x53051d(0x2af)]){_0x3ae580['startColumn']+=_0x3a6f36['step'],_0x3ae580[_0x53051d(0x22a)]+=_0x3a6f36['step']+(_0x3a6f36[_0x53051d(0x29d)]||0x0);if(_0x3dc29e){const _0x958c90=(0x0,_univerjs_sheets[_0x53051d(0x3e5)])({'start':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)]['startColumn'],'end':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)][_0x53051d(0x22a)]},{'start':_0x56e301['params'][_0x53051d(0x38d)][_0x53051d(0x245)],'end':_0x56e301['params'][_0x53051d(0x38d)][_0x53051d(0x22a)]},{'start':_0x3dc29e[_0x53051d(0x245)],'end':_0x3dc29e[_0x53051d(0x22a)]});(_0x958c90[_0x53051d(0x29d)]||_0x958c90['step'])&&(_0x3dc29e[_0x53051d(0x245)]+=_0x958c90[_0x53051d(0x2af)],_0x3dc29e[_0x53051d(0x22a)]+=_0x958c90['step'],_0x3dc29e[_0x53051d(0x235)]+=_0x958c90[_0x53051d(0x2af)]);}_0x251605=!![];}});if(_0x251605)_0x9f6ba8[_0xb75bb6(0x3d9)][_0xb75bb6(0x380)](_0xd2c7d4);return _0x9f6ba8;}},moveColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x315591,_0x496d6c){const _0x3a3111=_0xfc9601,_0x3e687c={'m1Prime':_0x315591,'m2Prime':_0x496d6c};if(_0x315591[_0x3a3111(0x3eb)]['unitId']!==_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x1d0)]||_0x315591[_0x3a3111(0x3eb)]['subUnitId']!==_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x25e)])return _0x3e687c;const _0x41f708=_univerjs_core['Tools'][_0x3a3111(0x1cf)](_0x315591),_0x51eeee=_univerjs_core[_0x3a3111(0x1c3)][_0x3a3111(0x1cf)](_0x496d6c),_0x41d185=(0x0,_univerjs_sheets[_0x3a3111(0x3e5)])({'start':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x202)][_0x3a3111(0x245)],'end':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x202)][_0x3a3111(0x22a)]},{'start':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x38d)][_0x3a3111(0x245)],'end':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x38d)][_0x3a3111(0x22a)]},{'start':_0x496d6c['params'][_0x3a3111(0x3c5)],'end':_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x3c5)]});if(_0x41d185['step']===0x0)return _0x3e687c;_0x51eeee[_0x3a3111(0x3eb)][_0x3a3111(0x3c5)]+=_0x41d185[_0x3a3111(0x2af)];if(_0x51eeee['params'][_0x3a3111(0x3f5)])_0x51eeee[_0x3a3111(0x3eb)][_0x3a3111(0x3f5)][_0x3a3111(0x1bc)]+=_0x41d185[_0x3a3111(0x2af)];const _0x56e573=_univerjs_core[_0x3a3111(0x1c3)][_0x3a3111(0x1cf)](_0x496d6c);return _0x56e573[_0x3a3111(0x3eb)][_0x3a3111(0x3f5)]=null,{'m1Prime':[_0x56e573,_0x51eeee,_0x41f708],'m2Prime':[_0x51eeee]};}},moveColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x2f0936,_0x5e92b4){const _0x4b5b89=_0xfc9601,_0x4f9fee={'m1Prime':[_0x2f0936],'m2Prime':[_0x5e92b4]};if(_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x1d0)]!==_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x1d0)]||_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x25e)]!==_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x25e)])return _0x4f9fee;const _0x18a9d8=_univerjs_core[_0x4b5b89(0x1c3)][_0x4b5b89(0x1cf)](_0x2f0936),_0x4457d4=_univerjs_core[_0x4b5b89(0x1c3)][_0x4b5b89(0x1cf)](_0x5e92b4),_0x27ed88=(0x0,_univerjs_sheets[_0x4b5b89(0x3e5)])({'start':_0x2f0936[_0x4b5b89(0x3eb)]['sourceRange'][_0x4b5b89(0x245)],'end':_0x2f0936['params']['sourceRange'][_0x4b5b89(0x22a)]},{'start':_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x38d)][_0x4b5b89(0x245)],'end':_0x2f0936['params'][_0x4b5b89(0x38d)]['endColumn']},{'start':_0x5e92b4['params'][_0x4b5b89(0x29a)][_0x4b5b89(0x245)],'end':_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x29a)][_0x4b5b89(0x22a)]});return _0x4457d4['params'][_0x4b5b89(0x29a)][_0x4b5b89(0x245)]+=_0x27ed88[_0x4b5b89(0x2af)],_0x4457d4[_0x4b5b89(0x3eb)][_0x4b5b89(0x29a)][_0x4b5b89(0x22a)]+=_0x27ed88[_0x4b5b89(0x2af)]+_0x27ed88['length'],{'m1Prime':[_0x4457d4,_0x18a9d8],'m2Prime':[_0x4457d4]};}},moveColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x2dc498,_0x3d53f1){const _0x27d4c7=_0xfc9601,_0x24b911={'m1Prime':_0x2dc498,'m2Prime':_0x3d53f1};if(_0x2dc498[_0x27d4c7(0x3eb)][_0x27d4c7(0x1d0)]!==_0x3d53f1['params']['unitId']||_0x2dc498['params'][_0x27d4c7(0x25e)]!==_0x3d53f1[_0x27d4c7(0x3eb)][_0x27d4c7(0x25e)])return _0x24b911;const _0x47a92d=_univerjs_core[_0x27d4c7(0x1c3)][_0x27d4c7(0x1cf)](_0x2dc498),_0x80f319=_univerjs_core[_0x27d4c7(0x1c3)][_0x27d4c7(0x1cf)](_0x3d53f1),{ranges:_0x312057,colWidth:_0x1cb42f}=_0x80f319[_0x27d4c7(0x3eb)],{sourceRange:_0x238d3b,targetRange:_0x411f3f}=_0x2dc498[_0x27d4c7(0x3eb)],_0x1a42d5={'start':_0x238d3b[_0x27d4c7(0x245)],'end':_0x238d3b[_0x27d4c7(0x22a)]},_0x231adc={'start':_0x411f3f[_0x27d4c7(0x245)],'end':_0x411f3f['endColumn']};if(_0x312057[_0x27d4c7(0x3ad)](_0x4ae653=>{const _0x365a5f=_0x27d4c7,_0xfcd341=(0x0,_univerjs_sheets[_0x365a5f(0x3e5)])(_0x1a42d5,_0x231adc,{'start':_0x4ae653['startColumn'],'end':_0x4ae653[_0x365a5f(0x22a)]});if(_0xfcd341[_0x365a5f(0x29d)]!==0x0)return!![];return _0x4ae653[_0x365a5f(0x245)]+=_0xfcd341[_0x365a5f(0x2af)],_0x4ae653['endColumn']+=_0xfcd341[_0x365a5f(0x2af)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};if(typeof _0x1cb42f!==_0x27d4c7(0x28f))(0x0,_univerjs_core[_0x27d4c7(0x391)])(_0x238d3b['startColumn'],_0x238d3b[_0x27d4c7(0x22a)]-_0x238d3b[_0x27d4c7(0x245)]+0x1,_0x411f3f['startColumn'],_0x1cb42f);return{'m1Prime':_0x47a92d,'m2Prime':_0x80f319};}},moveColsWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x15b8ca,_0x341fbe)=>{const _0x551657=_0xfc9601,_0xb30bb4={'m1Prime':_0x15b8ca,'m2Prime':_0x341fbe};if(_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x1d0)]!==_0x341fbe[_0x551657(0x3eb)][_0x551657(0x1d0)]||_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x25e)]!==_0x341fbe[_0x551657(0x3eb)][_0x551657(0x25e)])return _0xb30bb4;const _0x4b061f=transformUpdateCommentRefWithRefRange(_0x341fbe,{'id':_univerjs_sheets[_0x551657(0x34d)]['id'],'params':{'unitId':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x1d0)],'subUnitId':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x25e)],'fromRange':_0x15b8ca['params'][_0x551657(0x202)],'toRange':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x38d)]}});return{'m1Prime':[_0x15b8ca,..._0x4b061f],'m2Prime':[_0x341fbe,..._0x4b061f]};}},moveConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting['MoveConditionalRuleMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x23e)]['id'],'handler'(_0x4af1a2,_0x2d5618){const _0x42471e=_0xfc9601;if(_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x1d0)]!==_0x2d5618[_0x42471e(0x3eb)]['unitId']||_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x25e)]!==_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x25e)])return{'m1Prime':_0x4af1a2,'m2Prime':_0x2d5618};if(_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x40e)]['id']===_0x2d5618[_0x42471e(0x3eb)]['start']['id']&&_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x3bc)]['id']===_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x3bc)]['id']&&_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x40e)][_0x42471e(0x266)]===_0x2d5618[_0x42471e(0x3eb)]['start'][_0x42471e(0x266)]&&_0x4af1a2[_0x42471e(0x3eb)]['end'][_0x42471e(0x266)]===_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x3bc)][_0x42471e(0x266)])return{'m1Prime':[],'m2Prime':[]};return{'error':new Error(_0x42471e(0x30e))};}},moveRangeMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x2d7209,_0x470ec3){const _0x4cf329=_0xfc9601,_0x330f7d=addWorksheetMergeMutationWithMoveRangeMutation[_0x4cf329(0x3f8)](_0x470ec3,_0x2d7209);if(isTransformMutationSuccess(_0x330f7d))return{'m1Prime':_0x330f7d[_0x4cf329(0x3d9)],'m2Prime':_0x330f7d[_0x4cf329(0x39d)]};else return _0x330f7d;}},moveRangeMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0xa90959,_0x3888ce){const _0x3f3594=_0xfc9601,_0x78c8c7={'m1Prime':_0xa90959,'m2Prime':_0x3888ce};if(_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x1d0)]!==_0x3888ce['params'][_0x3f3594(0x1d0)])return _0x78c8c7;const _0x303af1=new _univerjs_core[(_0x3f3594(0x3c2))](_0xa90959[_0x3f3594(0x3eb)]['from'][_0x3f3594(0x3e6)])['getDataRange'](),_0x19ce16=new _univerjs_core[(_0x3f3594(0x3c2))](_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)](),_0x31647d=new _univerjs_core[(_0x3f3594(0x3c2))](_0xa90959[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)](),_0x2ec993=new _univerjs_core['ObjectMatrix'](_0x3888ce['params']['to'][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)]();if(_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]===_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]&&_univerjs_core['Rectangle'][_0x3f3594(0x3b4)](_0x303af1,_0x19ce16)||_0xa90959[_0x3f3594(0x3eb)]['to']['subUnitId']===_0x3888ce[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x25e)]&&_univerjs_core[_0x3f3594(0x330)][_0x3f3594(0x3b4)](_0x31647d,_0x2ec993)||_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]===_0x3888ce['params']['to'][_0x3f3594(0x25e)]&&_univerjs_core[_0x3f3594(0x330)][_0x3f3594(0x3b4)](_0x303af1,_0x2ec993)||_0xa90959[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x25e)]===_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]&&_univerjs_core['Rectangle'][_0x3f3594(0x3b4)](_0x31647d,_0x19ce16))return{'error':new Error('Two\x20move-range\x20mutations\x20have\x20an\x20overlapping\x20range.')};return _0x78c8c7;}},moveRangeMutationWithRemoveNumfmt={'m1':_univerjs_sheets['MoveRangeMutation']['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x372f23,_0x5e4357){const _0x3bb8be=_0xfc9601,_0x3d64af={'m1Prime':_0x372f23,'m2Prime':_0x5e4357};if(_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x1d0)]!==_0x5e4357[_0x3bb8be(0x3eb)]['unitId']||_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)]['subUnitId']!==_0x5e4357[_0x3bb8be(0x3eb)]['subUnitId']&&_0x372f23[_0x3bb8be(0x3eb)]['to'][_0x3bb8be(0x25e)]!==_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x25e)])return _0x3d64af;const _0x1b3990=new _univerjs_core[(_0x3bb8be(0x3c2))](_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)][_0x3bb8be(0x3e6)])['getDataRange'](),_0x363bb2=new _univerjs_core[(_0x3bb8be(0x3c2))](_0x372f23[_0x3bb8be(0x3eb)]['to'][_0x3bb8be(0x3e6)])['getDataRange']();if(_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)][_0x3bb8be(0x25e)]===_0x5e4357['params'][_0x3bb8be(0x25e)]){if(_0x5e4357[_0x3bb8be(0x3eb)]['ranges'][_0x3bb8be(0x3ad)](_0x117068=>{const _0x205783=_0x3bb8be;return _univerjs_core[_0x205783(0x330)][_0x205783(0x3b4)](_0x117068,_0x1b3990);}))return{'error':new Error(_0x3bb8be(0x31a))};}if(_0x372f23['params']['to'][_0x3bb8be(0x25e)]===_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x25e)]){if(_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a3)][_0x3bb8be(0x3ad)](_0x455308=>{const _0x19efa0=_0x3bb8be;return _univerjs_core[_0x19efa0(0x330)][_0x19efa0(0x3b4)](_0x455308,_0x363bb2);}))return{'error':new Error(_0x3bb8be(0x31a))};}return _0x3d64af;}},moveRangeMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x3648f,_0x3936c1){const _0x2a547d=_0xfc9601,_0x5604c8={'m1Prime':_0x3648f,'m2Prime':_0x3936c1};if(_0x3648f[_0x2a547d(0x3eb)][_0x2a547d(0x1d0)]!==_0x3936c1[_0x2a547d(0x3eb)][_0x2a547d(0x1d0)]||_0x3648f['params'][_0x2a547d(0x3a4)][_0x2a547d(0x25e)]!==_0x3936c1['params'][_0x2a547d(0x25e)]&&_0x3648f[_0x2a547d(0x3eb)]['to'][_0x2a547d(0x25e)]!==_0x3936c1['params']['subUnitId'])return _0x5604c8;if(_0x3648f['params'][_0x2a547d(0x3a4)][_0x2a547d(0x25e)]===_0x3936c1[_0x2a547d(0x3eb)][_0x2a547d(0x25e)]){const _0x23530d=new _univerjs_core[(_0x2a547d(0x3c2))](_0x3648f[_0x2a547d(0x3eb)][_0x2a547d(0x3a4)][_0x2a547d(0x3e6)])[_0x2a547d(0x3d1)]();if(_univerjs_core['Rectangle'][_0x2a547d(0x3b4)](_0x23530d,_0x3936c1['params'][_0x2a547d(0x29a)]))return{'error':new Error(_0x2a547d(0x3fa))};}if(_0x3648f[_0x2a547d(0x3eb)]['to'][_0x2a547d(0x25e)]===_0x3936c1[_0x2a547d(0x3eb)]['subUnitId']){const _0x3b21f6=new _univerjs_core[(_0x2a547d(0x3c2))](_0x3648f['params']['to']['value'])['getDataRange']();if(_univerjs_core[_0x2a547d(0x330)][_0x2a547d(0x3b4)](_0x3b21f6,_0x3936c1[_0x2a547d(0x3eb)]['range']))return{'error':new Error(_0x2a547d(0x3fa))};}return _0x5604c8;}},moveRangeMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0xfae8db,_0x4e1bf8){const _0x59092a=_0xfc9601,_0x53e717={'m1Prime':_0xfae8db,'m2Prime':_0x4e1bf8};if(_0xfae8db[_0x59092a(0x3eb)]['unitId']!==_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x1d0)]||_0xfae8db['params'][_0x59092a(0x3a4)]['subUnitId']!==_0x4e1bf8['params'][_0x59092a(0x25e)]&&_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x25e)]!==_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x25e)])return _0x53e717;const _0x27f38d=new _univerjs_core[(_0x59092a(0x3c2))](_0xfae8db[_0x59092a(0x3eb)]['from']['value'])['getDataRange'](),_0x54f648=new _univerjs_core[(_0x59092a(0x3c2))](_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x3e6)])[_0x59092a(0x3d1)]();if(_0xfae8db[_0x59092a(0x3eb)]['from'][_0x59092a(0x25e)]===_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x25e)]){const {values:_0x44d8ea}=_0x4e1bf8['params'];for(const _0xe5534a in _0x44d8ea)if(_0x44d8ea[_0xe5534a]['ranges'][_0x59092a(0x3ad)](_0x2d259e=>{const _0x11d28f=_0x59092a;return _univerjs_core[_0x11d28f(0x330)][_0x11d28f(0x3b4)](_0x2d259e,_0x27f38d);}))return{'error':new Error(_0x59092a(0x31a))};}if(_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x25e)]===_0x4e1bf8[_0x59092a(0x3eb)]['subUnitId']){const {values:_0x90a4e3}=_0x4e1bf8[_0x59092a(0x3eb)];for(const _0x1c157a in _0x90a4e3)if(_0x90a4e3[_0x1c157a][_0x59092a(0x3a3)][_0x59092a(0x3ad)](_0x54f599=>{const _0xe7cc26=_0x59092a;return _univerjs_core[_0xe7cc26(0x330)][_0xe7cc26(0x3b4)](_0x54f599,_0x54f648);}))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt')};}return _0x53e717;}},moveRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x3af091,_0x122706)=>{const _0x3fa188=_0xfc9601,_0x373193={'m1Prime':_0x3af091,'m2Prime':_0x122706};if(_0x3af091[_0x3fa188(0x3eb)][_0x3fa188(0x1d0)]!==_0x122706[_0x3fa188(0x3eb)][_0x3fa188(0x1d0)]||_0x3af091[_0x3fa188(0x3eb)]['subUnitId']!==_0x122706['params']['subUnitId'])return _0x373193;const _0x357afd=transformAddCommentWithRefRange(_0x122706,{'id':_univerjs_sheets[_0x3fa188(0x3fe)]['id'],'params':{'unitId':_0x3af091['params'][_0x3fa188(0x1d0)],'subUnitId':_0x3af091[_0x3fa188(0x3eb)]['subUnitId'],'fromRange':_0x3af091[_0x3fa188(0x3eb)][_0x3fa188(0x202)],'toRange':_0x3af091[_0x3fa188(0x3eb)]['targetRange']}});return{'m1Prime':[_0x3af091,..._0x357afd],'m2Prime':[_0x122706,..._0x357afd]};}},moveRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x216a0d,_0x65422){const _0x49de33=_0xfc9601,_0x15807f={'m1Prime':_0x216a0d,'m2Prime':_0x65422};if(_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x1d0)]!==_0x65422[_0x49de33(0x3eb)][_0x49de33(0x1d0)]||_0x216a0d[_0x49de33(0x3eb)]['subUnitId']!==_0x65422['params'][_0x49de33(0x25e)])return _0x15807f;const _0x167dfc=transformAddDataValidationWithRefRange(_0x65422,{'id':_univerjs_sheets['MoveRowsCommand']['id'],'params':{'fromRange':_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x202)],'toRange':_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x38d)]}});return{'m1Prime':[_0x216a0d,..._0x167dfc],'m2Prime':[_0x65422,..._0x167dfc]};}},moveRowsMutationWithAddMerge={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x325ceb,_0x430639){const _0x359756=_0xfc9601,_0x10a5be=addWorksheetMergeMutationWithMoveRowMutation[_0x359756(0x3f8)](_0x430639,_0x325ceb);if(isTransformMutationSuccess(_0x10a5be))return{'m1Prime':_0x10a5be[_0x359756(0x3d9)],'m2Prime':_0x10a5be['m1Prime']};else return _0x10a5be;}},moveRowMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x5e8258,_0xa7444e){const _0x30a61a=_0xfc9601,_0x422e9f={'m1Prime':_0x5e8258,'m2Prime':_0xa7444e};if(_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x1d0)]!==_0xa7444e['params']['unitId']||_0x5e8258[_0x30a61a(0x3eb)]['subUnitId']!==_0xa7444e[_0x30a61a(0x3eb)][_0x30a61a(0x3a4)][_0x30a61a(0x25e)]&&_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x25e)]!==_0xa7444e[_0x30a61a(0x3eb)]['to'][_0x30a61a(0x25e)])return _0x422e9f;const _0x4c2172=_univerjs_core['Tools'][_0x30a61a(0x1cf)](_0x5e8258),_0x2f0445=_univerjs_core[_0x30a61a(0x1c3)][_0x30a61a(0x1cf)](_0xa7444e),_0x579ec9=_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x202)],_0x8b2399=_0x5e8258[_0x30a61a(0x3eb)]['targetRange'];if(_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x25e)]===_0xa7444e['params'][_0x30a61a(0x3a4)][_0x30a61a(0x25e)]){const _0x59e28c=new _univerjs_core[(_0x30a61a(0x3c2))](_0x2f0445[_0x30a61a(0x3eb)][_0x30a61a(0x3a4)][_0x30a61a(0x3e6)]),_0x22aa1f=_0x59e28c['getDataRange']();if(intersect({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9[_0x30a61a(0x3aa)]},{'start':_0x22aa1f['startRow'],'end':_0x22aa1f['endRow']})||intersect({'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0x22aa1f[_0x30a61a(0x357)],'end':_0x22aa1f[_0x30a61a(0x3aa)]}))return{'error':new Error(_0x30a61a(0x294))};const _0xa7e117=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x579ec9['startRow'],'end':_0x579ec9['endRow']},{'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0x22aa1f[_0x30a61a(0x357)],'end':_0x22aa1f['endRow']});if(_0xa7e117[_0x30a61a(0x29d)]!==0x0)return{'error':new Error(_0x30a61a(0x294))};if(_0xa7e117['step']!==0x0)_0x59e28c[_0x30a61a(0x1bb)](_0x579ec9[_0x30a61a(0x357)],_0x579ec9[_0x30a61a(0x3aa)]-_0x579ec9[_0x30a61a(0x357)]+0x1,_0x8b2399[_0x30a61a(0x357)]);_0x2f0445[_0x30a61a(0x3eb)]['from']['value']=_0x59e28c[_0x30a61a(0x1d1)]();}if(_0x5e8258['params']['subUnitId']===_0xa7444e[_0x30a61a(0x3eb)]['to']['subUnitId']){const _0x433189=new _univerjs_core[(_0x30a61a(0x3c2))](_0x2f0445[_0x30a61a(0x3eb)]['to'][_0x30a61a(0x3e6)]),_0xe74153=_0x433189[_0x30a61a(0x3d1)]();if(intersect({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9['endRow']},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]})||intersect({'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};const _0x51ec7e=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9['endRow']},{'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]});if(_0x51ec7e[_0x30a61a(0x29d)]!==0x0)return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};if(_0x51ec7e['step']!==0x0)_0x433189[_0x30a61a(0x1bb)](_0x579ec9[_0x30a61a(0x357)],_0x579ec9['endRow']-_0x579ec9[_0x30a61a(0x357)]+0x1,_0x8b2399[_0x30a61a(0x357)]);_0x2f0445['params']['to'][_0x30a61a(0x3e6)]=_0x433189[_0x30a61a(0x1d1)]();}return{'m1Prime':_0x4c2172,'m2Prime':_0x2f0445};}},moveRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x173d13,_0x628fca){const _0x239147=_0xfc9601,_0x265dc3={'m1Prime':_0x173d13,'m2Prime':_0x628fca};if(_0x173d13[_0x239147(0x3eb)][_0x239147(0x1d0)]!==_0x628fca['params'][_0x239147(0x1d0)]||_0x173d13['params'][_0x239147(0x25e)]!==_0x628fca[_0x239147(0x3eb)][_0x239147(0x25e)])return _0x265dc3;const _0x5b4340=_univerjs_core['Tools'][_0x239147(0x1cf)](_0x173d13),_0x5caa1b=_univerjs_core[_0x239147(0x1c3)][_0x239147(0x1cf)](_0x628fca),_0x1f54ee=_0x628fca['params']['sourceRange'],_0xc9c1a1=_0x628fca['params'][_0x239147(0x38d)],_0x3a4c60=_0x173d13['params'][_0x239147(0x202)],_0x4440e0=_0x173d13[_0x239147(0x3eb)][_0x239147(0x38d)];if(_0x3a4c60[_0x239147(0x3aa)]>=_0x1f54ee[_0x239147(0x357)]&&_0x3a4c60[_0x239147(0x357)]<=_0x1f54ee[_0x239147(0x3aa)])return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20row')};const _0x1810ce=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]},{'start':_0x4440e0[_0x239147(0x357)],'end':_0x4440e0[_0x239147(0x3aa)]},{'start':_0x1f54ee['startRow'],'end':_0x1f54ee[_0x239147(0x3aa)]}),_0x45b41c=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]},{'start':_0x4440e0[_0x239147(0x357)],'end':_0x4440e0[_0x239147(0x3aa)]},{'start':_0xc9c1a1[_0x239147(0x357)],'end':_0xc9c1a1[_0x239147(0x3aa)]});if(_0x1810ce&&_0x45b41c)_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x202)]['startRow']+=_0x1810ce[_0x239147(0x2af)],_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x202)][_0x239147(0x3aa)]+=_0x1810ce[_0x239147(0x2af)]+(_0x1810ce[_0x239147(0x29d)]||0x0),_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x38d)][_0x239147(0x357)]+=_0x45b41c[_0x239147(0x2af)],_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x38d)]['endRow']+=_0x45b41c[_0x239147(0x2af)]+(_0x45b41c[_0x239147(0x29d)]||0x0);else _0x5caa1b['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x290567=(0x0,_univerjs_sheets[_0x239147(0x3e5)])({'start':_0x1f54ee[_0x239147(0x357)],'end':_0x1f54ee[_0x239147(0x3aa)]},{'start':_0xc9c1a1[_0x239147(0x357)],'end':_0xc9c1a1[_0x239147(0x3aa)]},{'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]}),_0x2980d8=(0x0,_univerjs_sheets[_0x239147(0x3e5)])({'start':_0x1f54ee[_0x239147(0x357)],'end':_0x1f54ee['endRow']},{'start':_0xc9c1a1['startRow'],'end':_0xc9c1a1[_0x239147(0x3aa)]},{'start':_0x4440e0['startRow'],'end':_0x4440e0['endRow']});if(_0x290567&&_0x2980d8)_0x5b4340[_0x239147(0x3eb)][_0x239147(0x202)]['startRow']+=_0x290567[_0x239147(0x2af)],_0x5b4340[_0x239147(0x3eb)][_0x239147(0x202)][_0x239147(0x3aa)]+=_0x290567['step']+(_0x290567['length']||0x0),_0x5b4340[_0x239147(0x3eb)][_0x239147(0x38d)][_0x239147(0x357)]+=_0x2980d8['step'],_0x5b4340[_0x239147(0x3eb)]['targetRange']['endRow']+=_0x2980d8[_0x239147(0x2af)]+(_0x2980d8[_0x239147(0x29d)]||0x0);else _0x5b4340['id']=_univerjs_sheets[_0x239147(0x305)]['id'];return{'m1Prime':_0x5b4340,'m2Prime':_0x5caa1b};}},moveRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x27c477,_0x512d33){const _0x2e4964=_0xfc9601,_0x2f051a={'m1Prime':_0x27c477,'m2Prime':_0x512d33};if(_0x27c477['params'][_0x2e4964(0x1d0)]!==_0x512d33[_0x2e4964(0x3eb)][_0x2e4964(0x1d0)]||_0x27c477[_0x2e4964(0x3eb)][_0x2e4964(0x25e)]!==_0x512d33[_0x2e4964(0x3eb)][_0x2e4964(0x25e)])return _0x2f051a;const _0x3e4275=_univerjs_core[_0x2e4964(0x1c3)][_0x2e4964(0x1cf)](_0x27c477),_0x3a347d=_univerjs_core[_0x2e4964(0x1c3)]['deepClone'](_0x512d33),{sourceRange:_0x12343b,targetRange:_0x4fa595}=_0x27c477['params'],_0xbb493c={'start':_0x12343b[_0x2e4964(0x357)],'end':_0x12343b[_0x2e4964(0x3aa)]},_0x58b5eb={'start':_0x4fa595[_0x2e4964(0x357)],'end':_0x4fa595[_0x2e4964(0x3aa)]};if(_0x3a347d[_0x2e4964(0x3eb)][_0x2e4964(0x3a3)]['some'](_0x45fc62=>{const _0xe95d44=_0x2e4964,_0x147dd7={'start':_0x45fc62[_0xe95d44(0x357)],'end':_0x45fc62[_0xe95d44(0x3aa)]},_0x5becda=intersect(_0xbb493c,_0x147dd7),_0x2af30b=intersect(_0x58b5eb,_0x147dd7);if(_0x5becda||_0x2af30b)return!![];const _0x3c7722=(0x0,_univerjs_sheets[_0xe95d44(0x3e5)])(_0xbb493c,_0x58b5eb,_0x147dd7);if(_0x3c7722['length']!==0x0)return!![];return _0x45fc62[_0xe95d44(0x357)]+=_0x3c7722[_0xe95d44(0x2af)],_0x45fc62[_0xe95d44(0x3aa)]+=_0x3c7722['step'],![];}))return{'error':new Error(_0x2e4964(0x1f4))};return{'m1Prime':_0x3e4275,'m2Prime':_0x3a347d};}},moveRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x50d09b,_0x233e70){const _0x21a61c=_0xfc9601,_0x414f87=_univerjs_core[_0x21a61c(0x1c3)][_0x21a61c(0x1cf)](_0x50d09b),_0x1affe2=_univerjs_core[_0x21a61c(0x1c3)][_0x21a61c(0x1cf)](_0x233e70);if(_0x50d09b['params'][_0x21a61c(0x1d0)]!==_0x233e70[_0x21a61c(0x3eb)][_0x21a61c(0x1d0)]||_0x50d09b[_0x21a61c(0x3eb)][_0x21a61c(0x25e)]!==_0x233e70[_0x21a61c(0x3eb)][_0x21a61c(0x25e)])return{'m1Prime':_0x414f87,'m2Prime':_0x1affe2};const _0x3a50f5=_0x1affe2[_0x21a61c(0x3eb)][_0x21a61c(0x3a3)][_0x21a61c(0x2a5)]((_0x1026b0,_0x4cfa7a)=>{const _0x18f0d0=_0x21a61c,{sourceRange:_0xc5179b,targetRange:_0x356b5a}=_0x50d09b[_0x18f0d0(0x3eb)],_0x277c73={..._0x4cfa7a};if(_0xc5179b[_0x18f0d0(0x3aa)]<_0x277c73['startRow']&&_0x356b5a[_0x18f0d0(0x357)]>_0x277c73[_0x18f0d0(0x3aa)])_0x277c73['startRow']-=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b[_0x18f0d0(0x357)]+0x1,_0x277c73['endRow']-=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b[_0x18f0d0(0x357)]+0x1,isMergeCell(_0x277c73)&&_0x1026b0[_0x18f0d0(0x380)](_0x277c73);else{if(_0xc5179b[_0x18f0d0(0x357)]>_0x277c73['endRow']&&_0x356b5a[_0x18f0d0(0x3aa)]<_0x277c73[_0x18f0d0(0x357)])_0x277c73[_0x18f0d0(0x357)]+=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b['startRow']+0x1,_0x277c73[_0x18f0d0(0x3aa)]+=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b['startRow']+0x1,isMergeCell(_0x277c73)&&_0x1026b0['push'](_0x277c73);else{if(_univerjs_core[_0x18f0d0(0x330)]['intersects'](_0x277c73,_0xc5179b)||_univerjs_core['Rectangle'][_0x18f0d0(0x3b4)](_0x277c73,_0x356b5a)){}else _0x1026b0['push'](_0x277c73);}}return _0x1026b0;},[]);_0x1affe2[_0x21a61c(0x3eb)]['ranges']=_0x3a50f5;if(_0x1affe2[_0x21a61c(0x3eb)][_0x21a61c(0x3a3)]['length']===0x0)_0x1affe2['id']=_univerjs_sheets[_0x21a61c(0x305)]['id'];return{'m1Prime':_0x414f87,'m2Prime':_0x1affe2};}},moveRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x52993d,_0x1f0889){const _0x5cc92f=_0xfc9601,_0xa0a451={'m1Prime':_0x52993d,'m2Prime':_0x1f0889};if(_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x1d0)]!==_0x1f0889[_0x5cc92f(0x3eb)][_0x5cc92f(0x1d0)]||_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x25e)]!==_0x1f0889['params']['subUnitId'])return _0xa0a451;const _0x164e70=orderMapGenerator(_0x52993d['params'][_0x5cc92f(0x202)],_0x52993d['params']['targetRange']),_0x4fe82b=_univerjs_core[_0x5cc92f(0x1c3)][_0x5cc92f(0x1cf)](_0x1f0889),{range:_0x282dfd}=_0x4fe82b[_0x5cc92f(0x3eb)],_0x2e93cd=Array[_0x5cc92f(0x3a4)]({'length':_0x282dfd['endRow']-_0x282dfd[_0x5cc92f(0x357)]+0x1},(_0x13b50d,_0x12f264)=>_0x12f264+_0x282dfd[_0x5cc92f(0x357)]),_0x133a80={},_0x23549a={},_0x527df7=Math[_0x5cc92f(0x1d8)](_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x202)][_0x5cc92f(0x357)],_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x38d)]['startRow'],..._0x2e93cd),_0x1ed547=Math['max'](_0x52993d[_0x5cc92f(0x3eb)]['sourceRange'][_0x5cc92f(0x3aa)],_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x38d)][_0x5cc92f(0x3aa)],..._0x2e93cd);for(let _0x4467e4=_0x527df7;_0x4467e4<=_0x1ed547;_0x4467e4++){var _0x601944;const _0x2cf038=_0x4467e4,_0x1f5588=(_0x601944=_0x1f0889['params'][_0x5cc92f(0x2d8)][_0x4467e4])!==null&&_0x601944!==void 0x0?_0x601944:_0x2cf038,_0x3345d5=_0x164e70(_0x1f5588);if(_0x2cf038!==_0x3345d5)_0x133a80[_0x2cf038]=_0x3345d5;if(_0x1f5588!==_0x3345d5)_0x23549a[_0x1f5588]=_0x3345d5;}_0x4fe82b[_0x5cc92f(0x3eb)]['order']=_0x133a80;const _0x1db158=Object[_0x5cc92f(0x38e)](_0x133a80)[_0x5cc92f(0x3b3)](Number);_0x282dfd['startRow']=Math[_0x5cc92f(0x1d8)](..._0x1db158),_0x282dfd[_0x5cc92f(0x3aa)]=Math[_0x5cc92f(0x2bd)](..._0x1db158);const _0x51ffb7=[_0x52993d],_0x763569=Object[_0x5cc92f(0x38e)](_0x23549a)[_0x5cc92f(0x3b3)](Number);if(_0x763569['length']>0x0)_0x51ffb7[_0x5cc92f(0x398)]({'id':_univerjs_sheets[_0x5cc92f(0x1ca)]['id'],'params':{'unitId':_0x52993d[_0x5cc92f(0x3eb)]['unitId'],'subUnitId':_0x52993d[_0x5cc92f(0x3eb)]['subUnitId'],'range':{'startColumn':_0x1f0889[_0x5cc92f(0x3eb)][_0x5cc92f(0x29a)]['startColumn'],'endColumn':_0x1f0889[_0x5cc92f(0x3eb)]['range']['endColumn'],'startRow':Math['min'](..._0x763569),'endRow':Math['max'](..._0x763569)},'order':_0x23549a}});return{'m1Prime':_0x51ffb7,'m2Prime':_0x4fe82b};}},orderMapGenerator=(_0x3b69ae,_0x380d4b)=>{const _0x18ae61=_0xfc9601,_0x1768c5=_0x3b69ae['endRow']-_0x3b69ae[_0x18ae61(0x357)]+0x1,_0x6b98c5=_0x3b69ae[_0x18ae61(0x357)],_0x3c5352=_0x380d4b['startRow'];return _0x125e76=>{const _0x2e810f=_0x18ae61;if(_0x6b98c5<=_0x3c5352){const _0x1f1588=_0x380d4b[_0x2e810f(0x357)]-_0x3b69ae[_0x2e810f(0x3aa)]-0x1;if(_0x125e76>=_0x3b69ae[_0x2e810f(0x357)]&&_0x125e76<=_0x3b69ae[_0x2e810f(0x3aa)])return _0x125e76+_0x1f1588;else{if(_0x125e76>_0x3b69ae[_0x2e810f(0x3aa)]&&_0x125e76<_0x380d4b[_0x2e810f(0x357)])return _0x125e76-_0x1768c5;}}if(_0x6b98c5>_0x3c5352){const _0x1dc1d3=_0x3b69ae['startRow']-_0x380d4b[_0x2e810f(0x357)];if(_0x125e76>=_0x380d4b[_0x2e810f(0x357)]&&_0x125e76<_0x3b69ae[_0x2e810f(0x357)])return _0x125e76+_0x1768c5;else{if(_0x125e76>=_0x3b69ae[_0x2e810f(0x357)]&&_0x125e76<=_0x3b69ae[_0x2e810f(0x3aa)])return _0x125e76-_0x1dc1d3;}}return _0x125e76;};},moveRowMutationWithSetNumfmt={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x3c1725,_0x2dbd95){const _0x256b30=_0xfc9601,_0x3ef426={'m1Prime':_0x3c1725,'m2Prime':_0x2dbd95};if(_0x3c1725[_0x256b30(0x3eb)][_0x256b30(0x1d0)]!==_0x2dbd95[_0x256b30(0x3eb)]['unitId']||_0x3c1725[_0x256b30(0x3eb)][_0x256b30(0x25e)]!==_0x2dbd95[_0x256b30(0x3eb)]['subUnitId'])return _0x3ef426;const _0x3c2597=[_univerjs_core[_0x256b30(0x1c3)][_0x256b30(0x1cf)](_0x3c1725)],_0x977965=_univerjs_core[_0x256b30(0x1c3)]['deepClone'](_0x2dbd95),{sourceRange:_0x55b2f1,targetRange:_0x79c4af}=_0x3c1725['params'],_0x15d523={'start':_0x55b2f1[_0x256b30(0x357)],'end':_0x55b2f1[_0x256b30(0x3aa)]},_0x1da8a8={'start':_0x79c4af[_0x256b30(0x357)],'end':_0x79c4af[_0x256b30(0x3aa)]},{values:_0x2a512b}=_0x977965[_0x256b30(0x3eb)],_0x788890=[];let _0x3bb091=![];for(const _0xb5c58 in _0x2a512b){const _0x3d30ec=_0x2a512b[_0xb5c58];_0x788890[_0x256b30(0x380)](..._0x3d30ec['ranges']);if(_0x3d30ec['ranges'][_0x256b30(0x3ad)](_0x10798d=>{const _0x27eabe=_0x256b30,_0x22cc0e={'start':_0x10798d['startRow'],'end':_0x10798d[_0x27eabe(0x3aa)]},_0x5d7435=intersect(_0x15d523,_0x22cc0e),_0xc3d1b4=intersect(_0x1da8a8,_0x22cc0e);if(_0x5d7435||_0xc3d1b4)return!![];const _0x50ccdc=(0x0,_univerjs_sheets[_0x27eabe(0x3e5)])(_0x15d523,_0x1da8a8,_0x22cc0e);if(_0x50ccdc[_0x27eabe(0x29d)]!==0x0)return!![];if(_0x50ccdc[_0x27eabe(0x2af)]!==0x0)_0x3bb091=!![];return _0x10798d[_0x27eabe(0x357)]+=_0x50ccdc[_0x27eabe(0x2af)],_0x10798d[_0x27eabe(0x3aa)]+=_0x50ccdc['step'],![];}))return{'error':new Error(_0x256b30(0x3bb))};}if(_0x3bb091){const _0x12bb1b={'id':_univerjs_sheets[_0x256b30(0x2c9)]['id'],'params':{'unitId':_0x2dbd95[_0x256b30(0x3eb)][_0x256b30(0x1d0)],'subUnitId':_0x2dbd95['params'][_0x256b30(0x25e)],'ranges':_0x788890}};_0x3c2597[_0x256b30(0x380)](_0x12bb1b,_0x977965);}return{'m1Prime':_0x3c2597,'m2Prime':_0x977965};}},moveRowMutationWithSetRangeValues={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x7b45d,_0x414f58){const _0x1c8a21=_0xfc9601,_0x349472={'m1Prime':_0x7b45d,'m2Prime':_0x414f58};if(_0x7b45d[_0x1c8a21(0x3eb)][_0x1c8a21(0x1d0)]!==_0x414f58[_0x1c8a21(0x3eb)]['unitId']||_0x7b45d[_0x1c8a21(0x3eb)]['subUnitId']!==_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x25e)])return _0x349472;const _0x15c263=[_univerjs_core['Tools']['deepClone'](_0x7b45d)],_0x1c36ee=_univerjs_core['Tools']['deepClone'](_0x414f58),_0x4ae733=new _univerjs_core[(_0x1c8a21(0x3c2))](_0x1c36ee[_0x1c8a21(0x3eb)][_0x1c8a21(0x31f)]),{sourceRange:_0x261456,targetRange:_0x2aac75}=_0x7b45d[_0x1c8a21(0x3eb)],_0x3f97b1=_0x261456['startRow'],_0x1b7f27=_0x261456[_0x1c8a21(0x3aa)]-_0x261456[_0x1c8a21(0x357)]+0x1,_0x57a4f9=_0x2aac75[_0x1c8a21(0x357)];_0x4ae733[_0x1c8a21(0x1bb)](_0x3f97b1,_0x1b7f27,_0x57a4f9);const _0xa56be4=new _univerjs_core[(_0x1c8a21(0x3c2))]();let _0x1f8575=![];_0x4ae733[_0x1c8a21(0x387)]((_0x1a8038,_0x1f5534,_0xffd1)=>{const _0x398d3d=_0x1c8a21;if(_0xffd1&&_0xffd1['f']){const _0x139267=_0xffd1['f'];let _0x190b0b=![];const _0xf951ae=processFormulaString(_0x7b45d[_0x398d3d(0x3eb)][_0x398d3d(0x1d0)],_0x7b45d[_0x398d3d(0x3eb)][_0x398d3d(0x25e)],_0x139267,_0x5c893b=>{const _0x36f31c=_0x398d3d,_0x26f389=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x7b45d[_0x36f31c(0x3eb)]['sourceRange'][_0x36f31c(0x357)],'end':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x202)]['endRow']},{'start':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x38d)]['startRow'],'end':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x38d)][_0x36f31c(0x3aa)]},{'start':_0x5c893b[_0x36f31c(0x357)],'end':_0x5c893b[_0x36f31c(0x3aa)]});return(_0x26f389['step']!==0x0||_0x26f389[_0x36f31c(0x29d)]!==0x0)&&(_0x190b0b=!![],_0x5c893b[_0x36f31c(0x357)]+=_0x26f389[_0x36f31c(0x2af)],_0x5c893b[_0x36f31c(0x3aa)]+=_0x26f389[_0x36f31c(0x2af)]+_0x26f389[_0x36f31c(0x29d)]),_0x5c893b;});_0x190b0b&&(_0x1f8575=!![],_0xffd1['f']=_0xf951ae,_0xa56be4[_0x398d3d(0x2fe)](_0x1a8038,_0x1f5534,{..._0xffd1}));}});if(_0x1f8575){const _0x3d0087={'id':_univerjs_sheets[_0x1c8a21(0x30f)]['id'],'params':{'unitId':_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x1d0)],'subUnitId':_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x25e)],'cellValue':_0xa56be4[_0x1c8a21(0x1d1)]()}};_0x15c263[_0x1c8a21(0x380)](_0x3d0087);}return _0x1c36ee[_0x1c8a21(0x3eb)]['cellValue']=_0x4ae733['getMatrix'](),{'m1Prime':_0x15c263,'m2Prime':_0x1c36ee};}},moveRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x44a92d,_0x525fa3){const _0x21bfb4=_0xfc9601,_0x1736ab={'m1Prime':_0x44a92d,'m2Prime':_0x525fa3};if(_0x44a92d[_0x21bfb4(0x3eb)][_0x21bfb4(0x1d0)]!==_0x525fa3[_0x21bfb4(0x3eb)]['unitId']||_0x44a92d[_0x21bfb4(0x3eb)][_0x21bfb4(0x25e)]!==_0x525fa3[_0x21bfb4(0x3eb)][_0x21bfb4(0x25e)])return _0x1736ab;const _0x2911aa=_univerjs_core[_0x21bfb4(0x1c3)][_0x21bfb4(0x1cf)](_0x44a92d),_0x4c56e6=_univerjs_core[_0x21bfb4(0x1c3)][_0x21bfb4(0x1cf)](_0x525fa3),{rowData:_0x1cac46}=_0x4c56e6[_0x21bfb4(0x3eb)],{sourceRange:_0x49fe22,targetRange:_0x1dc6c3}=_0x44a92d[_0x21bfb4(0x3eb)];return(0x0,_univerjs_core['moveMatrixArray'])(_0x49fe22['startRow'],_0x49fe22['endRow']-_0x49fe22[_0x21bfb4(0x357)]+0x1,_0x1dc6c3['startRow'],_0x1cac46),{'m1Prime':_0x2911aa,'m2Prime':_0x4c56e6};}},moveRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3d8)]['id'],'handler'(_0x2072ca,_0x3629c8){const _0x50ca4=_0xfc9601,_0x293cdc={'m1Prime':_0x2072ca,'m2Prime':_0x3629c8};if(_0x2072ca[_0x50ca4(0x3eb)][_0x50ca4(0x1d0)]!==_0x3629c8[_0x50ca4(0x3eb)][_0x50ca4(0x1d0)]||_0x2072ca['params'][_0x50ca4(0x25e)]!==_0x3629c8['params']['subUnitId'])return _0x293cdc;const _0x572bf7=_univerjs_core[_0x50ca4(0x1c3)][_0x50ca4(0x1cf)](_0x2072ca),_0x5a4448=_univerjs_core[_0x50ca4(0x1c3)][_0x50ca4(0x1cf)](_0x3629c8),{ranges:_0xa77b29}=_0x5a4448['params'],{sourceRange:_0x26b8f9,targetRange:_0x317d71}=_0x2072ca['params'],_0x2192ba={'start':_0x26b8f9[_0x50ca4(0x357)],'end':_0x26b8f9[_0x50ca4(0x3aa)]},_0x42c1eb={'start':_0x317d71[_0x50ca4(0x357)],'end':_0x317d71[_0x50ca4(0x3aa)]};if(_0xa77b29[_0x50ca4(0x3ad)](_0x4584bc=>{const _0x52cb5a=_0x50ca4,_0x23f40c={'start':_0x4584bc[_0x52cb5a(0x357)],'end':_0x4584bc[_0x52cb5a(0x3aa)]},_0x2058a1=intersect(_0x2192ba,_0x23f40c),_0x3f93fe=intersect(_0x42c1eb,_0x23f40c);if(_0x2058a1||_0x3f93fe)return!![];const _0x2be4ff=(0x0,_univerjs_sheets[_0x52cb5a(0x3e5)])(_0x2192ba,_0x42c1eb,_0x23f40c);if(_0x2be4ff['length']!==0x0)return!![];return _0x4584bc[_0x52cb5a(0x357)]+=_0x2be4ff[_0x52cb5a(0x2af)],_0x4584bc[_0x52cb5a(0x3aa)]+=_0x2be4ff[_0x52cb5a(0x2af)],![];}))return{'error':new Error(_0x50ca4(0x36a))};return{'m1Prime':_0x572bf7,'m2Prime':_0x5a4448};}},moveRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x13cbad,_0x4d7b0d){const _0x4eddef=_0xfc9601,_0x4eb6db={'m1Prime':_0x13cbad,'m2Prime':_0x4d7b0d};if(_0x13cbad[_0x4eddef(0x3eb)][_0x4eddef(0x1d0)]!==_0x4d7b0d['params'][_0x4eddef(0x1d0)]||_0x13cbad[_0x4eddef(0x3eb)][_0x4eddef(0x25e)]!==_0x4d7b0d[_0x4eddef(0x3eb)][_0x4eddef(0x25e)])return _0x4eb6db;const _0x4c823b=_univerjs_core[_0x4eddef(0x1c3)][_0x4eddef(0x1cf)](_0x13cbad),_0x1a90a4=_univerjs_core[_0x4eddef(0x1c3)][_0x4eddef(0x1cf)](_0x4d7b0d),{ranges:_0x3a5d1a}=_0x1a90a4[_0x4eddef(0x3eb)],{sourceRange:_0x438ac5,targetRange:_0x53f687}=_0x13cbad['params'],_0x4e63be={'start':_0x438ac5[_0x4eddef(0x357)],'end':_0x438ac5[_0x4eddef(0x3aa)]},_0x5a8a4b={'start':_0x53f687['startRow'],'end':_0x53f687[_0x4eddef(0x3aa)]};if(_0x3a5d1a[_0x4eddef(0x3ad)](_0x2a4c67=>{const _0x503d66=_0x4eddef,_0x295fdd={'start':_0x2a4c67[_0x503d66(0x357)],'end':_0x2a4c67[_0x503d66(0x3aa)]},_0x1e356c=intersect(_0x4e63be,_0x295fdd),_0x396ba7=intersect(_0x5a8a4b,_0x295fdd);if(_0x1e356c||_0x396ba7)return!![];const _0x5831a8=(0x0,_univerjs_sheets[_0x503d66(0x3e5)])(_0x4e63be,_0x5a8a4b,_0x295fdd);if(_0x5831a8['length']!==0x0)return!![];return _0x2a4c67[_0x503d66(0x357)]+=_0x5831a8[_0x503d66(0x2af)],_0x2a4c67['endRow']+=_0x5831a8['step'],![];}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible')};return{'m1Prime':_0x4c823b,'m2Prime':_0x1a90a4};}},moveRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x2bffca,_0x439089){const _0x49e2f2=_0xfc9601,_0x54ca3c={'m1Prime':[],'m2Prime':[]};if(_0x2bffca[_0x49e2f2(0x3eb)][_0x49e2f2(0x1d0)]!==_0x439089['params'][_0x49e2f2(0x1d0)]||_0x2bffca[_0x49e2f2(0x3eb)][_0x49e2f2(0x25e)]!==_0x439089['params']['subUnitId'])return _0x54ca3c;const _0x3b06d4=_univerjs_core[_0x49e2f2(0x1c3)][_0x49e2f2(0x1cf)](_0x439089);let _0x348eb7=![];_0x3b06d4['params']['selections'][_0x49e2f2(0x302)](_0x51d2ba=>{const _0x2fe3d3=_0x49e2f2,{range:_0x577c82,primary:_0x1799ad}=_0x51d2ba,_0x238d3e=(0x0,_univerjs_sheets[_0x2fe3d3(0x3e5)])({'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x3aa)]},{'start':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x3aa)]},{'start':_0x577c82[_0x2fe3d3(0x357)],'end':_0x577c82[_0x2fe3d3(0x3aa)]});if(_0x238d3e[_0x2fe3d3(0x29d)]||_0x238d3e['step']){_0x577c82['startRow']+=_0x238d3e['step'],_0x577c82[_0x2fe3d3(0x3aa)]+=_0x238d3e['step']+(_0x238d3e['length']||0x0);if(_0x1799ad){const _0x17c784=(0x0,_univerjs_sheets[_0x2fe3d3(0x3e5)])({'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)]['endRow']},{'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x38d)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x3aa)]},{'start':_0x1799ad[_0x2fe3d3(0x357)],'end':_0x1799ad['endRow']});(_0x17c784['length']||_0x17c784[_0x2fe3d3(0x2af)])&&(_0x1799ad[_0x2fe3d3(0x357)]+=_0x17c784[_0x2fe3d3(0x2af)],_0x1799ad[_0x2fe3d3(0x3aa)]+=_0x17c784[_0x2fe3d3(0x2af)],_0x1799ad[_0x2fe3d3(0x418)]+=_0x17c784[_0x2fe3d3(0x2af)]);}_0x348eb7=!![];}});if(_0x348eb7)_0x54ca3c[_0x49e2f2(0x3d9)][_0x49e2f2(0x380)](_0x3b06d4);return _0x54ca3c;}},moveRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x3ed9c0,_0x3540cb){const _0xe3b69=_0xfc9601,_0xf7735d={'m1Prime':[_0x3ed9c0],'m2Prime':[_0x3540cb]};if(_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x1d0)]!==_0x3540cb[_0xe3b69(0x3eb)]['unitId']||_0x3ed9c0[_0xe3b69(0x3eb)]['subUnitId']!==_0x3540cb[_0xe3b69(0x3eb)]['subUnitId'])return _0xf7735d;const _0x3a0183=_univerjs_core[_0xe3b69(0x1c3)][_0xe3b69(0x1cf)](_0x3ed9c0),_0x265fbf=_univerjs_core[_0xe3b69(0x1c3)][_0xe3b69(0x1cf)](_0x3540cb),_0xfd8e32=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x202)]['startRow'],'end':_0x3ed9c0['params'][_0xe3b69(0x202)]['endRow']},{'start':_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x38d)][_0xe3b69(0x357)],'end':_0x3ed9c0[_0xe3b69(0x3eb)]['targetRange']['endRow']},{'start':_0x3540cb[_0xe3b69(0x3eb)][_0xe3b69(0x29a)]['startRow'],'end':_0x3540cb[_0xe3b69(0x3eb)]['range'][_0xe3b69(0x3aa)]});return _0x265fbf['params'][_0xe3b69(0x29a)][_0xe3b69(0x357)]+=_0xfd8e32[_0xe3b69(0x2af)],_0x265fbf[_0xe3b69(0x3eb)][_0xe3b69(0x29a)]['endRow']+=_0xfd8e32['step']+_0xfd8e32[_0xe3b69(0x29d)],{'m1Prime':[_0x265fbf,_0x3a0183],'m2Prime':[_0x265fbf]};}},moveRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x1b6b5c,_0x1343a9){const _0x2568c9=_0xfc9601,_0x28a975={'m1Prime':_0x1b6b5c,'m2Prime':_0x1343a9};if(_0x1b6b5c[_0x2568c9(0x3eb)]['unitId']!==_0x1343a9['params']['unitId']||_0x1b6b5c['params']['subUnitId']!==_0x1343a9[_0x2568c9(0x3eb)][_0x2568c9(0x25e)])return _0x28a975;const _0x37fca9=_univerjs_core['Tools'][_0x2568c9(0x1cf)](_0x1b6b5c),_0x1958c9=_univerjs_core[_0x2568c9(0x1c3)][_0x2568c9(0x1cf)](_0x1343a9),{rowsAutoHeightInfo:_0x7c8758}=_0x1958c9[_0x2568c9(0x3eb)],{sourceRange:_0x50773c,targetRange:_0x19a85b}=_0x1b6b5c[_0x2568c9(0x3eb)],_0x3e0fa0={'start':_0x50773c['startRow'],'end':_0x50773c['endRow']},_0x42b3cd={'start':_0x19a85b[_0x2568c9(0x357)],'end':_0x19a85b['endRow']};if(_0x7c8758[_0x2568c9(0x3ad)](_0x573776=>{const _0x32fbb0=_0x2568c9,_0x443046=(0x0,_univerjs_sheets[_0x32fbb0(0x3e5)])(_0x3e0fa0,_0x42b3cd,{'start':_0x573776[_0x32fbb0(0x2bb)],'end':_0x573776[_0x32fbb0(0x2bb)]});if(_0x443046[_0x32fbb0(0x29d)]!==0x0)return!![];return _0x573776['row']+=_0x443046[_0x32fbb0(0x2af)],![];}))return{'error':new Error(_0x2568c9(0x27f))};return{'m1Prime':_0x37fca9,'m2Prime':_0x1958c9};}},moveRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x11f98d,_0x2c8f02){const _0x11e6c3=_0xfc9601,_0x2913e5={'m1Prime':_0x11f98d,'m2Prime':_0x2c8f02};if(_0x11f98d[_0x11e6c3(0x3eb)][_0x11e6c3(0x1d0)]!==_0x2c8f02['params'][_0x11e6c3(0x1d0)]||_0x11f98d['params'][_0x11e6c3(0x25e)]!==_0x2c8f02['params'][_0x11e6c3(0x25e)])return _0x2913e5;const _0x3df278=_univerjs_core[_0x11e6c3(0x1c3)][_0x11e6c3(0x1cf)](_0x11f98d),_0xd72bfc=_univerjs_core['Tools'][_0x11e6c3(0x1cf)](_0x2c8f02),{ranges:_0x501b46,rowHeight:_0x2afcb3}=_0xd72bfc['params'],{sourceRange:_0x5813f6,targetRange:_0x3d6c97}=_0x11f98d[_0x11e6c3(0x3eb)],_0x42ba74={'start':_0x5813f6[_0x11e6c3(0x357)],'end':_0x5813f6[_0x11e6c3(0x3aa)]},_0x20d3a2={'start':_0x3d6c97[_0x11e6c3(0x357)],'end':_0x3d6c97[_0x11e6c3(0x3aa)]};if(_0x501b46[_0x11e6c3(0x3ad)](_0x1b9d55=>{const _0x56f20d=_0x11e6c3,_0xaa3a4d=(0x0,_univerjs_sheets[_0x56f20d(0x3e5)])(_0x42ba74,_0x20d3a2,{'start':_0x1b9d55[_0x56f20d(0x357)],'end':_0x1b9d55[_0x56f20d(0x3aa)]});if(_0xaa3a4d[_0x56f20d(0x29d)]!==0x0)return!![];return _0x1b9d55['startRow']+=_0xaa3a4d[_0x56f20d(0x2af)],_0x1b9d55['endRow']+=_0xaa3a4d['step'],![];}))return{'error':new Error(_0x11e6c3(0x410))};if(typeof _0x2afcb3!=='number')(0x0,_univerjs_core[_0x11e6c3(0x391)])(_0x5813f6[_0x11e6c3(0x357)],_0x5813f6['endRow']-_0x5813f6[_0x11e6c3(0x357)]+0x1,_0x3d6c97[_0x11e6c3(0x357)],_0x2afcb3);return{'m1Prime':_0x3df278,'m2Prime':_0xd72bfc};}},moveRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x2e0c05,_0x47f2f2){const _0x148a7e=_0xfc9601,_0x1ebe80={'m1Prime':_0x2e0c05,'m2Prime':_0x47f2f2};if(_0x2e0c05['params']['unitId']!==_0x47f2f2['params'][_0x148a7e(0x1d0)]||_0x2e0c05['params']['subUnitId']!==_0x47f2f2[_0x148a7e(0x3eb)][_0x148a7e(0x25e)])return _0x1ebe80;const _0x904b73=_univerjs_core[_0x148a7e(0x1c3)]['deepClone'](_0x2e0c05),_0xeb7997=_univerjs_core[_0x148a7e(0x1c3)]['deepClone'](_0x47f2f2),{ranges:_0x25877e,autoHeightInfo:_0x48ee94}=_0xeb7997[_0x148a7e(0x3eb)],{sourceRange:_0x365c9a,targetRange:_0xbfe7c3}=_0x2e0c05[_0x148a7e(0x3eb)],_0x35de8a={'start':_0x365c9a[_0x148a7e(0x357)],'end':_0x365c9a['endRow']},_0x322dbe={'start':_0xbfe7c3['startRow'],'end':_0xbfe7c3[_0x148a7e(0x3aa)]};if(_0x25877e[_0x148a7e(0x3ad)](_0x20918c=>{const _0x173194=_0x148a7e,_0x4a6e7e=(0x0,_univerjs_sheets[_0x173194(0x3e5)])(_0x35de8a,_0x322dbe,{'start':_0x20918c[_0x173194(0x357)],'end':_0x20918c[_0x173194(0x3aa)]});if(_0x4a6e7e['length']!==0x0)return!![];return _0x20918c[_0x173194(0x357)]+=_0x4a6e7e['step'],_0x20918c['endRow']+=_0x4a6e7e['step'],![];}))return{'error':new Error(_0x148a7e(0x3de))};if(typeof _0x48ee94!==_0x148a7e(0x28f))(0x0,_univerjs_core['moveMatrixArray'])(_0x365c9a[_0x148a7e(0x357)],_0x365c9a[_0x148a7e(0x3aa)]-_0x365c9a[_0x148a7e(0x357)]+0x1,_0xbfe7c3[_0x148a7e(0x357)],_0x48ee94);return{'m1Prime':_0x904b73,'m2Prime':_0xeb7997};}},moveRowsWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x3d3c91,_0x1be466)=>{const _0x221b06=_0xfc9601,_0x590578={'m1Prime':_0x3d3c91,'m2Prime':_0x1be466};if(_0x3d3c91['params'][_0x221b06(0x1d0)]!==_0x1be466['params'][_0x221b06(0x1d0)]||_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x25e)]!==_0x1be466[_0x221b06(0x3eb)]['subUnitId'])return _0x590578;const _0x27d5d5=transformUpdateCommentRefWithRefRange(_0x1be466,{'id':_univerjs_sheets[_0x221b06(0x3fe)]['id'],'params':{'unitId':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x1d0)],'subUnitId':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x25e)],'fromRange':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x202)],'toRange':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x38d)]}});return{'m1Prime':[_0x3d3c91,..._0x27d5d5],'m2Prime':[_0x1be466,..._0x27d5d5]};}},moveRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x38441f,_0x2fc458)=>{const _0x1ef05a=_0xfc9601,_0xda0288={'m1Prime':_0x38441f,'m2Prime':_0x2fc458};if(_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x1d0)]!==_0x2fc458[_0x1ef05a(0x3eb)][_0x1ef05a(0x1d0)]||_0x2fc458['params'][_0x1ef05a(0x25e)]!==_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x25e)])return _0xda0288;const _0x2d11d5=transformUpdateDataValidationWithRefRange(_0x2fc458,{'id':_univerjs_sheets[_0x1ef05a(0x3fe)]['id'],'params':{'fromRange':_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x202)],'toRange':_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x38d)]}});return{'m1Prime':[_0x38441f,..._0x2d11d5],'m2Prime':[_0x2fc458,..._0x2d11d5]};}},removeColWithAddComment={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x1c96a0,_0x5de0eb)=>{const _0x57cded=_0xfc9601,_0x2a310c={'m1Prime':_0x1c96a0,'m2Prime':_0x5de0eb};if(_0x1c96a0[_0x57cded(0x3eb)][_0x57cded(0x1d0)]!==_0x5de0eb[_0x57cded(0x3eb)][_0x57cded(0x1d0)]||_0x1c96a0['params']['subUnitId']!==_0x5de0eb[_0x57cded(0x3eb)]['subUnitId'])return _0x2a310c;const _0x48c6ab=transformAddCommentWithRefRange(_0x5de0eb,{'id':_univerjs_sheets['RemoveColCommand']['id'],'params':{'unitId':_0x1c96a0[_0x57cded(0x3eb)][_0x57cded(0x1d0)],'subUnitId':_0x1c96a0['params']['subUnitId'],'range':_0x1c96a0['params'][_0x57cded(0x29a)]}});return{'m1Prime':[_0x1c96a0,..._0x48c6ab],'m2Prime':[_0x5de0eb,..._0x48c6ab]};}},removeColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x1ddf55,_0x1b562a){const _0x3f55fc=_0xfc9601,_0x43aa41={'m1Prime':_0x1ddf55,'m2Prime':_0x1b562a};if(_0x1ddf55['params'][_0x3f55fc(0x1d0)]!==_0x1b562a[_0x3f55fc(0x3eb)]['unitId']||_0x1ddf55[_0x3f55fc(0x3eb)][_0x3f55fc(0x25e)]!==_0x1b562a[_0x3f55fc(0x3eb)][_0x3f55fc(0x25e)])return _0x43aa41;const _0x2369d2=transformAddDataValidationWithRefRange(_0x1b562a,{'id':_univerjs_sheets[_0x3f55fc(0x2a9)]['id'],'params':{'range':_0x1ddf55[_0x3f55fc(0x3eb)]['range']}});return{'m1Prime':[_0x1ddf55,..._0x2369d2],'m2Prime':[_0x1b562a,..._0x2369d2]};}},removeColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x43639b,_0x3ced95){const _0x3954c3=_0xfc9601,_0x11ad7c=addWorksheetMergeMutationWithRemoveColMutation['handler'](_0x3ced95,_0x43639b);if(isTransformMutationSuccess(_0x11ad7c))return{'m1Prime':_0x11ad7c['m2Prime'],'m2Prime':_0x11ad7c[_0x3954c3(0x39d)]};else return _0x11ad7c;}},removeColMutationWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x299062,_0x40a298){const _0x3b73b2=_0xfc9601,_0x1d9e77={'m1Prime':_0x299062,'m2Prime':_0x40a298};if(_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x1d0)]!==_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x1d0)]||_0x299062['params'][_0x3b73b2(0x25e)]!==_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x25e)])return _0x1d9e77;const _0x2559d8=_univerjs_core[_0x3b73b2(0x1c3)]['deepClone'](_0x299062),_0x2e5b9f=_univerjs_core[_0x3b73b2(0x1c3)][_0x3b73b2(0x1cf)](_0x40a298);if(_0x299062['params'][_0x3b73b2(0x29a)][_0x3b73b2(0x245)]<=_0x40a298['params'][_0x3b73b2(0x202)][_0x3b73b2(0x22a)]&&_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]>=_0x40a298['params']['sourceRange'][_0x3b73b2(0x245)]||_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)]<=_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)][_0x3b73b2(0x22a)]&&_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x22a)]>=_0x40a298['params'][_0x3b73b2(0x38d)][_0x3b73b2(0x245)])return{'error':new Error(_0x3b73b2(0x27a))};const _0xd8c060=(0x0,_univerjs_sheets[_0x3b73b2(0x40a)])(toColumn(_0x299062['params'][_0x3b73b2(0x29a)]),toColumn(_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)])),_0x2d820e=(0x0,_univerjs_sheets[_0x3b73b2(0x40a)])(toColumn(_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)]),toColumn(_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)]));if(_0xd8c060&&_0x2d820e)_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x245)]+=_0xd8c060['step'],_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)]['endColumn']+=_0xd8c060[_0x3b73b2(0x2af)]+(_0xd8c060[_0x3b73b2(0x29d)]||0x0),_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)][_0x3b73b2(0x245)]+=_0x2d820e[_0x3b73b2(0x2af)],_0x2e5b9f['params'][_0x3b73b2(0x38d)][_0x3b73b2(0x22a)]+=_0x2d820e['step']+(_0x2d820e[_0x3b73b2(0x29d)]||0x0);else _0x2e5b9f['id']=_univerjs_sheets[_0x3b73b2(0x305)]['id'];const _0x3ff669=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x245)],'end':_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x22a)]},{'start':_0x40a298[_0x3b73b2(0x3eb)]['targetRange'][_0x3b73b2(0x245)],'end':_0x40a298['params']['targetRange'][_0x3b73b2(0x22a)]},{'start':_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)],'end':_0x299062['params'][_0x3b73b2(0x29a)]['endColumn']});if(_0x3ff669){const {step:_0x286b96,length:_0x4a5aa2}=_0x3ff669;_0x2559d8[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x245)]+=_0x286b96,_0x2559d8['params'][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]+=_0x286b96+(_0x4a5aa2||0x0);}else _0x2559d8[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)]=0x0,_0x2559d8[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]=-0x1;return{'m1Prime':_0x2559d8,'m2Prime':_0x2e5b9f};}},removeColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x13a12a,_0x2ee53a){const _0x52d02d=_0xfc9601,_0x58c890={'m1Prime':_0x13a12a,'m2Prime':_0x2ee53a};if(_0x13a12a['params']['unitId']!==_0x2ee53a[_0x52d02d(0x3eb)][_0x52d02d(0x1d0)]||_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]!==_0x2ee53a[_0x52d02d(0x3eb)]['from'][_0x52d02d(0x25e)]&&_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]!==_0x2ee53a['params']['to'][_0x52d02d(0x25e)])return _0x58c890;const _0xa2d6e3=_univerjs_core['Tools']['deepClone'](_0x13a12a),_0x19953e=_univerjs_core['Tools'][_0x52d02d(0x1cf)](_0x2ee53a),{startColumn:_0x55f441,endColumn:_0x5a17e0}=_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x29a)];if(_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]===_0x2ee53a[_0x52d02d(0x3eb)][_0x52d02d(0x3a4)][_0x52d02d(0x25e)]){const _0x6f4029=new _univerjs_core[(_0x52d02d(0x3c2))](_0x19953e[_0x52d02d(0x3eb)][_0x52d02d(0x3a4)][_0x52d02d(0x3e6)]),{startColumn:_0x3215f5,endColumn:_0x1f396d}=_0x6f4029[_0x52d02d(0x3d1)]();if(_0x3215f5<=_0x5a17e0&&_0x1f396d>=_0x55f441)return{'error':new Error(_0x52d02d(0x340))};if(_0x5a17e0<_0x3215f5)_0x6f4029[_0x52d02d(0x257)](_0x55f441,_0x5a17e0-_0x55f441+0x1);_0x19953e['params'][_0x52d02d(0x3a4)][_0x52d02d(0x3e6)]=_0x6f4029[_0x52d02d(0x1d1)]();}if(_0x13a12a['params'][_0x52d02d(0x25e)]===_0x2ee53a[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x25e)]){const _0x32e4a4=new _univerjs_core[(_0x52d02d(0x3c2))](_0x19953e[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x3e6)]),{startColumn:_0x37783b,endColumn:_0x5e46cc}=_0x32e4a4['getDataRange']();if(_0x37783b<=_0x5a17e0&&_0x5e46cc>=_0x55f441)return{'error':new Error(_0x52d02d(0x340))};if(_0x5a17e0<_0x37783b)_0x32e4a4[_0x52d02d(0x257)](_0x55f441,_0x5a17e0-_0x55f441+0x1);_0x19953e[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x3e6)]=_0x32e4a4[_0x52d02d(0x1d1)]();}return{'m1Prime':_0xa2d6e3,'m2Prime':_0x19953e};}},removeColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x7fe125,_0x1b4bba){const _0x3c43cd=_0xfc9601,_0x4a9c10={'m1Prime':_0x7fe125,'m2Prime':_0x1b4bba};if(_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x1d0)]!==_0x1b4bba[_0x3c43cd(0x3eb)][_0x3c43cd(0x1d0)]||_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x25e)]!==_0x1b4bba[_0x3c43cd(0x3eb)][_0x3c43cd(0x25e)])return _0x4a9c10;const _0x431274=_univerjs_core[_0x3c43cd(0x1c3)][_0x3c43cd(0x1cf)](_0x7fe125),_0x16b0b3=_univerjs_core[_0x3c43cd(0x1c3)][_0x3c43cd(0x1cf)](_0x1b4bba),_0x332696=(0x0,_univerjs_sheets[_0x3c43cd(0x40a)])(_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)],_0x1b4bba[_0x3c43cd(0x3eb)]['range']);if(_0x332696){const {step:_0x4a237f,length:_0x49f2be}=_0x332696;_0x16b0b3['params'][_0x3c43cd(0x29a)][_0x3c43cd(0x245)]+=_0x4a237f,_0x16b0b3[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x22a)]+=_0x4a237f+(_0x49f2be||0x0);}else _0x16b0b3['id']=_univerjs_sheets[_0x3c43cd(0x305)]['id'];const _0x15f72a=(0x0,_univerjs_sheets[_0x3c43cd(0x40a)])(_0x1b4bba['params']['range'],_0x7fe125[_0x3c43cd(0x3eb)]['range']);if(_0x15f72a){const {step:_0x4c3755,length:_0xb0ca5}=_0x15f72a;_0x431274[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x245)]+=_0x4c3755,_0x431274[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x22a)]+=_0x4c3755+(_0xb0ca5||0x0);}else _0x431274['id']=_univerjs_sheets[_0x3c43cd(0x305)]['id'];return{'m1Prime':_0x431274,'m2Prime':_0x16b0b3};}},removeColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x4f93f6,_0x40765b){const _0x561fca=_0xfc9601,_0x61a127={'m1Prime':_0x4f93f6,'m2Prime':_0x40765b};if(_0x4f93f6[_0x561fca(0x3eb)][_0x561fca(0x1d0)]!==_0x40765b['params'][_0x561fca(0x1d0)]||_0x4f93f6[_0x561fca(0x3eb)]['subUnitId']!==_0x40765b[_0x561fca(0x3eb)][_0x561fca(0x25e)])return _0x61a127;const _0x72b7f4=_univerjs_core['Tools'][_0x561fca(0x1cf)](_0x4f93f6),_0x15c690=_univerjs_core[_0x561fca(0x1c3)][_0x561fca(0x1cf)](_0x40765b),{ranges:_0x35de4a}=_0x15c690[_0x561fca(0x3eb)];if(_0x35de4a[_0x561fca(0x3ad)](_0x2b2dba=>{const _0x3b0fb7=_0x561fca,_0x48277f=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn(_0x4f93f6['params'][_0x3b0fb7(0x29a)]),toColumn(_0x2b2dba));if(_0x48277f===null||_0x48277f[_0x3b0fb7(0x29d)]!==0x0)return!![];return _0x2b2dba[_0x3b0fb7(0x245)]+=_0x48277f[_0x3b0fb7(0x2af)],_0x2b2dba['endColumn']+=_0x48277f[_0x3b0fb7(0x2af)],![];}))return{'error':new Error(_0x561fca(0x413))};return{'m1Prime':_0x72b7f4,'m2Prime':_0x15c690};}},removeColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x973156,_0x4c88ab){const _0x379ca4=_0xfc9601,_0x2e2fb7=_univerjs_core[_0x379ca4(0x1c3)][_0x379ca4(0x1cf)](_0x973156),_0x3162f1=_univerjs_core['Tools'][_0x379ca4(0x1cf)](_0x4c88ab);if(_0x973156['params'][_0x379ca4(0x1d0)]!==_0x4c88ab['params'][_0x379ca4(0x1d0)]||_0x973156['params'][_0x379ca4(0x25e)]!==_0x4c88ab[_0x379ca4(0x3eb)][_0x379ca4(0x25e)])return{'m1Prime':_0x2e2fb7,'m2Prime':_0x3162f1};const _0x3f2a36=_0x3162f1[_0x379ca4(0x3eb)][_0x379ca4(0x3a3)][_0x379ca4(0x2a5)]((_0x28a82a,_0x2cad26)=>{const _0x3bc801=_0x379ca4,_0x25d21e=_0x2e2fb7[_0x3bc801(0x3eb)][_0x3bc801(0x29a)],_0xf13388=_0x25d21e[_0x3bc801(0x22a)]-_0x25d21e['startColumn']+0x1;let _0x3ea7ef={..._0x2cad26};if(_0x25d21e[_0x3bc801(0x245)]>_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef={..._0x2cad26};else{if(_0x25d21e[_0x3bc801(0x245)]>=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x245)]<=_0x2cad26[_0x3bc801(0x22a)]&&_0x25d21e[_0x3bc801(0x22a)]>_0x2cad26[_0x3bc801(0x22a)]){_0x3ea7ef[_0x3bc801(0x22a)]=_0x25d21e[_0x3bc801(0x245)]-0x1;if(_0x25d21e[_0x3bc801(0x245)]===_0x2cad26['startColumn'])_0x3ea7ef=null;}else{if(_0x25d21e[_0x3bc801(0x245)]>_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e['endColumn']<_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef[_0x3bc801(0x22a)]=_0x2cad26[_0x3bc801(0x22a)]-_0xf13388;else{if(_0x25d21e[_0x3bc801(0x245)]<_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x22a)]>=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e['endColumn']<=_0x2cad26[_0x3bc801(0x22a)]){_0x3ea7ef[_0x3bc801(0x245)]=_0x25d21e['startColumn'],_0x3ea7ef[_0x3bc801(0x22a)]=_0x2cad26[_0x3bc801(0x22a)]-_0xf13388;if(_0x25d21e['endColumn']===_0x2cad26['endColumn'])_0x3ea7ef=null;}else{if(_0x25d21e[_0x3bc801(0x245)]<=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x22a)]>=_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef=null;else _0x25d21e[_0x3bc801(0x22a)]<_0x2cad26[_0x3bc801(0x245)]&&(_0x3ea7ef['startColumn']=_0x2cad26['startColumn']-_0xf13388,_0x3ea7ef['endColumn']=_0x2cad26['endColumn']-_0xf13388);}}}}if(_0x3ea7ef&&!(_0x3ea7ef['startRow']===_0x3ea7ef[_0x3bc801(0x3aa)]&&_0x3ea7ef[_0x3bc801(0x245)]===_0x3ea7ef[_0x3bc801(0x22a)]))return _0x28a82a['push'](_0x3ea7ef),_0x28a82a;else return _0x28a82a;},[]);return _0x3162f1[_0x379ca4(0x3eb)]['ranges']=_0x3f2a36,{'m1Prime':_0x2e2fb7,'m2Prime':_0x3162f1};}},removeColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['ReorderRangeMutation']['id'],'handler'(_0x5ed8ad,_0x5db59e){const _0x35cc62=_0xfc9601,_0x24e154={'m1Prime':_0x5ed8ad,'m2Prime':_0x5db59e};if(_0x5ed8ad[_0x35cc62(0x3eb)][_0x35cc62(0x1d0)]!==_0x5db59e['params']['unitId']||_0x5ed8ad[_0x35cc62(0x3eb)][_0x35cc62(0x25e)]!==_0x5db59e[_0x35cc62(0x3eb)][_0x35cc62(0x25e)])return _0x24e154;const _0x126da7=(0x0,_univerjs_sheets[_0x35cc62(0x40a)])(toColumn(_0x5ed8ad['params'][_0x35cc62(0x29a)]),toColumn(_0x5db59e[_0x35cc62(0x3eb)]['range']));if(!_0x126da7)return{'m1Prime':_0x5ed8ad,'m2Prime':[]};const _0x534e6c=_univerjs_core['Tools'][_0x35cc62(0x1cf)](_0x5db59e);return _0x534e6c[_0x35cc62(0x3eb)]['range'][_0x35cc62(0x245)]+=_0x126da7['step'],_0x534e6c[_0x35cc62(0x3eb)][_0x35cc62(0x29a)]['endColumn']+=_0x126da7['step']+(_0x126da7['length']||0x0),{'m1Prime':_0x5ed8ad,'m2Prime':_0x534e6c};}},removeColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x348)]['id'],'handler'(_0x3b3220,_0x2ad64f){const _0xf1e01b=_0xfc9601,_0x459419={'m1Prime':_0x3b3220,'m2Prime':_0x2ad64f};if(_0x3b3220[_0xf1e01b(0x3eb)]['unitId']!==_0x2ad64f[_0xf1e01b(0x3eb)][_0xf1e01b(0x1d0)]||_0x3b3220[_0xf1e01b(0x3eb)][_0xf1e01b(0x25e)]!==_0x2ad64f[_0xf1e01b(0x3eb)]['subUnitId'])return _0x459419;const _0x331ea1=_univerjs_core[_0xf1e01b(0x1c3)][_0xf1e01b(0x1cf)](_0x3b3220),_0x542b23=_univerjs_core['Tools'][_0xf1e01b(0x1cf)](_0x2ad64f),{columnData:_0x1b49d1}=_0x542b23[_0xf1e01b(0x3eb)];return(0x0,_univerjs_core[_0xf1e01b(0x382)])(_0x3b3220[_0xf1e01b(0x3eb)]['range']['startColumn'],_0x3b3220[_0xf1e01b(0x3eb)][_0xf1e01b(0x29a)][_0xf1e01b(0x22a)]-_0x3b3220[_0xf1e01b(0x3eb)]['range'][_0xf1e01b(0x245)]+0x1,_0x1b49d1),{'m1Prime':_0x331ea1,'m2Prime':_0x542b23};}},removeColMutationWithSetColHidden={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x39c)]['id'],'handler'(_0x1819a7,_0x1b164a){const _0x1df779=_0xfc9601,_0x2b4b6e={'m1Prime':_0x1819a7,'m2Prime':_0x1b164a};if(_0x1819a7[_0x1df779(0x3eb)][_0x1df779(0x1d0)]!==_0x1b164a[_0x1df779(0x3eb)]['unitId']||_0x1819a7[_0x1df779(0x3eb)]['subUnitId']!==_0x1b164a[_0x1df779(0x3eb)][_0x1df779(0x25e)])return _0x2b4b6e;const _0x4d2213=_univerjs_core[_0x1df779(0x1c3)]['deepClone'](_0x1819a7),_0x3256ab=_univerjs_core[_0x1df779(0x1c3)][_0x1df779(0x1cf)](_0x1b164a),{ranges:_0x3df6c6}=_0x3256ab[_0x1df779(0x3eb)];return _0x3df6c6[_0x1df779(0x302)](_0x23d2a9=>{const _0x56ec2b=_0x1df779,_0x3c2a4e=(0x0,_univerjs_sheets[_0x56ec2b(0x40a)])(toColumn(_0x1819a7[_0x56ec2b(0x3eb)][_0x56ec2b(0x29a)]),_0x23d2a9);if(_0x3c2a4e==null)_0x3256ab['id']=_univerjs_sheets[_0x56ec2b(0x305)]['id'];else _0x23d2a9[_0x56ec2b(0x245)]+=_0x3c2a4e['step'],_0x23d2a9[_0x56ec2b(0x22a)]+=_0x3c2a4e['step']+_0x3c2a4e['length'];}),{'m1Prime':_0x4d2213,'m2Prime':_0x3256ab};}},removeColMutationWithSetColVisible={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c7)]['id'],'handler'(_0x525b57,_0x15c106){const _0x20b48e=_0xfc9601,_0xcaadef={'m1Prime':_0x525b57,'m2Prime':_0x15c106};if(_0x525b57['params'][_0x20b48e(0x1d0)]!==_0x15c106['params'][_0x20b48e(0x1d0)]||_0x525b57['params'][_0x20b48e(0x25e)]!==_0x15c106[_0x20b48e(0x3eb)][_0x20b48e(0x25e)])return _0xcaadef;const _0x24bf93=_univerjs_core[_0x20b48e(0x1c3)]['deepClone'](_0x525b57),_0x37878a=_univerjs_core['Tools']['deepClone'](_0x15c106),{ranges:_0x21916a}=_0x37878a['params'];return _0x21916a[_0x20b48e(0x302)](_0x47a3da=>{const _0x168c9a=_0x20b48e,_0x2faf67=(0x0,_univerjs_sheets[_0x168c9a(0x40a)])(toColumn(_0x525b57['params'][_0x168c9a(0x29a)]),_0x47a3da);if(_0x2faf67==null)_0x37878a['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x47a3da['startColumn']+=_0x2faf67[_0x168c9a(0x2af)],_0x47a3da[_0x168c9a(0x22a)]+=_0x2faf67[_0x168c9a(0x2af)]+_0x2faf67['length'];}),{'m1Prime':_0x24bf93,'m2Prime':_0x37878a};}},removeColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x2d75e4,_0x51bbf6){const _0x2f961c=_0xfc9601,_0x379c73={'m1Prime':_0x2d75e4,'m2Prime':_0x51bbf6};if(_0x2d75e4[_0x2f961c(0x3eb)][_0x2f961c(0x1d0)]!==_0x51bbf6[_0x2f961c(0x3eb)]['unitId']||_0x2d75e4[_0x2f961c(0x3eb)][_0x2f961c(0x25e)]!==_0x51bbf6['params']['subUnitId'])return _0x379c73;const _0x56582c=[_univerjs_core[_0x2f961c(0x1c3)][_0x2f961c(0x1cf)](_0x2d75e4)],_0x42f459=_univerjs_core[_0x2f961c(0x1c3)][_0x2f961c(0x1cf)](_0x51bbf6),{values:_0x1fa9fe}=_0x42f459[_0x2f961c(0x3eb)],_0x473387=[];let _0x1c1f2e=![];for(const _0x56b03a in _0x1fa9fe){const _0x2da0ed=_0x1fa9fe[_0x56b03a];_0x473387[_0x2f961c(0x380)](..._0x2da0ed[_0x2f961c(0x3a3)]);if(_0x2da0ed[_0x2f961c(0x3a3)][_0x2f961c(0x3ad)](_0x9cef87=>{const _0x1f2d32=_0x2f961c,_0x1fdfe5=(0x0,_univerjs_sheets[_0x1f2d32(0x40a)])(toColumn(_0x2d75e4[_0x1f2d32(0x3eb)][_0x1f2d32(0x29a)]),toColumn(_0x9cef87));if(_0x1fdfe5==null||_0x1fdfe5[_0x1f2d32(0x29d)]!==0x0)return!![];if(_0x1fdfe5[_0x1f2d32(0x2af)]!==0x0)_0x1c1f2e=!![];return _0x9cef87['startColumn']+=_0x1fdfe5[_0x1f2d32(0x2af)],_0x9cef87[_0x1f2d32(0x22a)]+=_0x1fdfe5[_0x1f2d32(0x2af)],![];}))return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20set\x20numfmt')};}if(_0x1c1f2e){const _0x2cc8b4={'id':_univerjs_sheets[_0x2f961c(0x2c9)]['id'],'params':{'unitId':_0x51bbf6[_0x2f961c(0x3eb)][_0x2f961c(0x1d0)],'subUnitId':_0x51bbf6[_0x2f961c(0x3eb)][_0x2f961c(0x25e)],'ranges':_0x473387}};_0x56582c[_0x2f961c(0x380)](_0x2cc8b4,_0x42f459);}return{'m1Prime':_0x56582c,'m2Prime':_0x42f459};}},removeColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x5c5e8e,_0x46f6b2){const _0x4ff240=_0xfc9601,_0x14dc25={'m1Prime':_0x5c5e8e,'m2Prime':_0x46f6b2};if(_0x5c5e8e[_0x4ff240(0x3eb)][_0x4ff240(0x1d0)]!==_0x46f6b2['params']['unitId']||_0x5c5e8e['params'][_0x4ff240(0x25e)]!==_0x46f6b2[_0x4ff240(0x3eb)][_0x4ff240(0x25e)])return _0x14dc25;const _0x183d2b=[_univerjs_core['Tools'][_0x4ff240(0x1cf)](_0x5c5e8e)],_0xf6f02e=_univerjs_core['Tools'][_0x4ff240(0x1cf)](_0x46f6b2),_0x21e62c=new _univerjs_core[(_0x4ff240(0x3c2))](_0xf6f02e['params'][_0x4ff240(0x31f)]),_0x341587=_0x21e62c['getDataRange'](),_0x1314f6=_0x5c5e8e[_0x4ff240(0x3eb)][_0x4ff240(0x29a)],_0x22ad50=_0x1314f6[_0x4ff240(0x22a)]-_0x1314f6[_0x4ff240(0x245)]+0x1;if(_0xf6f02e['params']['cellValue']&&_0x1314f6['endColumn']<_0x341587[_0x4ff240(0x245)])moveColumns(_0xf6f02e['params']['cellValue'],_0x341587[_0x4ff240(0x245)],_0x341587[_0x4ff240(0x22a)]-_0x341587['startColumn']+0x1,-_0x22ad50);else{if(_0x1314f6[_0x4ff240(0x245)]<=_0x341587[_0x4ff240(0x22a)])return{'error':new Error(_0x4ff240(0x37d))};}const _0x1ee485=new _univerjs_core[(_0x4ff240(0x3c2))]();let _0x26819d=![],_0x58efd4=![];_0x21e62c[_0x4ff240(0x387)]((_0x2bed9e,_0x98a31e,_0x23607a)=>{const _0x352c22=_0x4ff240;if(_0x23607a&&_0x23607a['f']){const _0x43eac7=_0x23607a['f'];let _0x351568=![];const _0x3abe1d=processFormulaString(_0x5c5e8e[_0x352c22(0x3eb)][_0x352c22(0x1d0)],_0x5c5e8e[_0x352c22(0x3eb)][_0x352c22(0x25e)],_0x43eac7,_0x486f45=>{const _0x38ce50=_0x352c22,_0xffc89d=(0x0,_univerjs_sheets[_0x38ce50(0x40a)])(toColumn(_0x5c5e8e[_0x38ce50(0x3eb)]['range']),toColumn(_0x486f45));if(_0xffc89d===null)return _0x26819d=!![],_0x486f45;return(_0xffc89d[_0x38ce50(0x2af)]!==0x0||_0xffc89d[_0x38ce50(0x29d)]!==0x0)&&(_0x351568=!![],_0x486f45[_0x38ce50(0x245)]+=_0xffc89d[_0x38ce50(0x2af)],_0x486f45['endColumn']+=_0xffc89d[_0x38ce50(0x2af)]+_0xffc89d[_0x38ce50(0x29d)]),_0x486f45;});_0x351568&&(_0x58efd4=!![],_0x23607a['f']=_0x3abe1d,_0x1ee485[_0x352c22(0x2fe)](_0x2bed9e,_0x98a31e,{..._0x23607a}));}});if(_0x26819d)return{'error':new Error(_0x4ff240(0x417))};if(_0x58efd4){const _0x1a5c50={'id':_univerjs_sheets[_0x4ff240(0x30f)]['id'],'params':{'unitId':_0x46f6b2[_0x4ff240(0x3eb)][_0x4ff240(0x1d0)],'subUnitId':_0x46f6b2['params'][_0x4ff240(0x25e)],'cellValue':_0x1ee485['getMatrix']()}};_0x183d2b[_0x4ff240(0x380)](_0x1a5c50);}return{'m1Prime':_0x183d2b,'m2Prime':_0xf6f02e};}},removeColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0xb9f6e9,_0x27aa14){const _0x2b14ce=_0xfc9601,_0x112d77={'m1Prime':[],'m2Prime':[]};if(_0xb9f6e9[_0x2b14ce(0x3eb)][_0x2b14ce(0x1d0)]!==_0x27aa14[_0x2b14ce(0x3eb)][_0x2b14ce(0x1d0)]||_0xb9f6e9[_0x2b14ce(0x3eb)]['subUnitId']!==_0x27aa14[_0x2b14ce(0x3eb)]['subUnitId'])return _0x112d77;const _0x173efd=_univerjs_core['Tools'][_0x2b14ce(0x1cf)](_0x27aa14);let _0x3302a6=![];_0x173efd[_0x2b14ce(0x3eb)]['selections'][_0x2b14ce(0x302)](_0x2dec01=>{const _0x32f89b=_0x2b14ce,{range:_0x55b6f7,primary:_0x30492c}=_0x2dec01,_0x4a9663=(0x0,_univerjs_sheets[_0x32f89b(0x40a)])(toColumn(_0xb9f6e9[_0x32f89b(0x3eb)][_0x32f89b(0x29a)]),toColumn(_0x55b6f7));if(_0x4a9663==null)return;if(_0x4a9663[_0x32f89b(0x29d)]||_0x4a9663[_0x32f89b(0x2af)]){_0x55b6f7['startColumn']+=_0x4a9663['step'],_0x55b6f7[_0x32f89b(0x22a)]+=_0x4a9663[_0x32f89b(0x2af)]+(_0x4a9663[_0x32f89b(0x29d)]||0x0);if(_0x30492c){const _0x459705=(0x0,_univerjs_sheets[_0x32f89b(0x40a)])(toColumn(_0xb9f6e9[_0x32f89b(0x3eb)][_0x32f89b(0x29a)]),toColumn(_0x30492c));if(_0x459705==null){_0x30492c[_0x32f89b(0x245)]=_0x55b6f7['startColumn'],_0x30492c[_0x32f89b(0x22a)]=_0x55b6f7[_0x32f89b(0x245)],_0x30492c[_0x32f89b(0x235)]=_0x55b6f7[_0x32f89b(0x245)];return;}(_0x459705[_0x32f89b(0x29d)]||_0x459705['step'])&&(_0x30492c[_0x32f89b(0x245)]+=_0x459705[_0x32f89b(0x2af)],_0x30492c['endColumn']+=_0x459705[_0x32f89b(0x2af)],_0x30492c['actualColumn']+=_0x459705[_0x32f89b(0x2af)]);}_0x3302a6=!![];}});if(_0x3302a6)_0x112d77[_0x2b14ce(0x3d9)]['push'](_0x173efd);return _0x112d77;}},removeColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'handler'(_0x381420,_0x527700){const _0x58327f=_0xfc9601,_0x190562={'m1Prime':_0x381420,'m2Prime':_0x527700};if(_0x381420[_0x58327f(0x3eb)]['unitId']!==_0x527700[_0x58327f(0x3eb)][_0x58327f(0x1d0)]||_0x381420[_0x58327f(0x3eb)][_0x58327f(0x25e)]!==_0x527700[_0x58327f(0x3eb)][_0x58327f(0x25e)])return _0x190562;const _0x1f6a8a=_univerjs_core[_0x58327f(0x1c3)][_0x58327f(0x1cf)](_0x381420),_0x3ee782=_univerjs_core['Tools'][_0x58327f(0x1cf)](_0x527700),_0x5643e0=handleRemove({'start':_0x381420[_0x58327f(0x3eb)][_0x58327f(0x29a)]['startColumn'],'end':_0x381420[_0x58327f(0x3eb)][_0x58327f(0x29a)]['endColumn']},{'start':_0x527700[_0x58327f(0x3eb)][_0x58327f(0x3c5)],'end':_0x527700[_0x58327f(0x3eb)][_0x58327f(0x3c5)]}),_0x3dd6bf=_univerjs_core[_0x58327f(0x1c3)][_0x58327f(0x1cf)](_0x527700);_0x3dd6bf[_0x58327f(0x3eb)]['criteria']=null;if(_0x5643e0===null)return{'m1Prime':[_0x1f6a8a,_0x3dd6bf],'m2Prime':[]};if(_0x3ee782[_0x58327f(0x3eb)][_0x58327f(0x3c5)]===_0x5643e0[_0x58327f(0x40e)])return _0x190562;_0x3ee782[_0x58327f(0x3eb)][_0x58327f(0x3c5)]=_0x5643e0['start'];if(_0x3ee782['params'][_0x58327f(0x3f5)])_0x3ee782['params'][_0x58327f(0x3f5)][_0x58327f(0x1bc)]=_0x5643e0[_0x58327f(0x40e)];return{'m1Prime':[_0x3dd6bf,_0x3ee782,_0x1f6a8a],'m2Prime':[_0x3ee782]};}},removeColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x5e04a6,_0x4dae25){const _0x511ce5=_0xfc9601,_0x4a1913={'m1Prime':[_0x5e04a6],'m2Prime':[_0x4dae25]};if(_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x1d0)]!==_0x4dae25[_0x511ce5(0x3eb)][_0x511ce5(0x1d0)]||_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x25e)]!==_0x4dae25['params'][_0x511ce5(0x25e)])return _0x4a1913;const _0x61b6d3=_univerjs_core[_0x511ce5(0x1c3)]['deepClone'](_0x5e04a6),_0x2b4d32=_univerjs_core['Tools'][_0x511ce5(0x1cf)](_0x4dae25),_0x1f1395=handleRemove({'start':_0x5e04a6[_0x511ce5(0x3eb)]['range']['startColumn'],'end':_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x22a)]},{'start':_0x4dae25[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x245)],'end':_0x4dae25[_0x511ce5(0x3eb)]['range']['endColumn']});if(_0x1f1395===null)return{'m1Prime':[_0x61b6d3,{'id':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x4dae25['params'][_0x511ce5(0x1d0)],'subUnitId':_0x4dae25['params'][_0x511ce5(0x1d0)]}}],'m2Prime':[]};return _0x2b4d32[_0x511ce5(0x3eb)]['range'][_0x511ce5(0x245)]=_0x1f1395[_0x511ce5(0x40e)],_0x2b4d32[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x22a)]=_0x1f1395['end'],{'m1Prime':[_0x2b4d32,_0x61b6d3],'m2Prime':[_0x2b4d32]};}},removeColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x11980f,_0x5bfa9f){const _0x41a5e5=_0xfc9601,_0x1ae13b={'m1Prime':_0x11980f,'m2Prime':_0x5bfa9f};if(_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x1d0)]!==_0x5bfa9f['params']['unitId']||_0x11980f['params']['subUnitId']!==_0x5bfa9f['params'][_0x41a5e5(0x25e)])return _0x1ae13b;const _0xb0c401=_univerjs_core[_0x41a5e5(0x1c3)][_0x41a5e5(0x1cf)](_0x11980f),_0x16bf24=_univerjs_core[_0x41a5e5(0x1c3)][_0x41a5e5(0x1cf)](_0x5bfa9f),{ranges:_0x55c212,colWidth:_0x2f3930}=_0x16bf24['params'];_0x55c212['forEach'](_0x2c9ea6=>{const _0x1f147e=_0x41a5e5,_0x4e2d8d=(0x0,_univerjs_sheets[_0x1f147e(0x40a)])(toColumn(_0x11980f[_0x1f147e(0x3eb)][_0x1f147e(0x29a)]),_0x2c9ea6);if(_0x4e2d8d==null)_0x16bf24['id']=_univerjs_sheets[_0x1f147e(0x305)]['id'];else _0x2c9ea6[_0x1f147e(0x245)]+=_0x4e2d8d['step'],_0x2c9ea6[_0x1f147e(0x22a)]+=_0x4e2d8d[_0x1f147e(0x2af)]+_0x4e2d8d[_0x1f147e(0x29d)];});if(typeof _0x2f3930!==_0x41a5e5(0x28f))(0x0,_univerjs_core[_0x41a5e5(0x382)])(_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)][_0x41a5e5(0x245)],_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)][_0x41a5e5(0x22a)]-_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)]['startColumn']+0x1,_0x2f3930);return{'m1Prime':_0xb0c401,'m2Prime':_0x16bf24};}},removeColWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0xa8bf89,_0x40af85)=>{const _0x1e670d=_0xfc9601,_0x423d5c={'m1Prime':_0xa8bf89,'m2Prime':_0x40af85};if(_0xa8bf89[_0x1e670d(0x3eb)]['unitId']!==_0x40af85[_0x1e670d(0x3eb)][_0x1e670d(0x1d0)]||_0xa8bf89[_0x1e670d(0x3eb)]['subUnitId']!==_0x40af85['params'][_0x1e670d(0x25e)])return _0x423d5c;const _0x5eea9e=transformUpdateCommentRefWithRefRange(_0x40af85,{'id':_univerjs_sheets[_0x1e670d(0x2a9)]['id'],'params':{'unitId':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x1d0)],'subUnitId':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x25e)],'range':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x29a)]}});return{'m1Prime':[_0xa8bf89,..._0x5eea9e],'m2Prime':[_0x40af85,..._0x5eea9e]};}},removeColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x3ac457,_0x68f1c3)=>{const _0xd7c117=_0xfc9601,_0x5a887a={'m1Prime':_0x3ac457,'m2Prime':_0x68f1c3};if(_0x3ac457[_0xd7c117(0x3eb)][_0xd7c117(0x1d0)]!==_0x68f1c3[_0xd7c117(0x3eb)][_0xd7c117(0x1d0)]||_0x68f1c3[_0xd7c117(0x3eb)][_0xd7c117(0x25e)]!==_0x3ac457[_0xd7c117(0x3eb)]['subUnitId'])return _0x5a887a;const _0x1bb8f1=transformUpdateDataValidationWithRefRange(_0x68f1c3,{'id':_univerjs_sheets[_0xd7c117(0x2a9)]['id'],'params':{'range':_0x3ac457['params'][_0xd7c117(0x29a)]}});return{'m1Prime':[_0x3ac457,..._0x1bb8f1],'m2Prime':[_0x68f1c3,..._0x1bb8f1]};}},removeDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x20de96,_0x3e9f86)=>{const _0x43eeec=_0xfc9601,_0xf6a4ff={'m1Prime':_0x20de96,'m2Prime':_0x3e9f86};if(_0x20de96[_0x43eeec(0x3eb)]['unitId']===_0x3e9f86[_0x43eeec(0x3eb)][_0x43eeec(0x1d0)]&&_0x20de96[_0x43eeec(0x3eb)][_0x43eeec(0x25e)]===_0x3e9f86['params']['subUnitId']&&_0x20de96[_0x43eeec(0x3eb)][_0x43eeec(0x2d2)]===_0x3e9f86[_0x43eeec(0x3eb)][_0x43eeec(0x2d2)])return{'m1Prime':[],'m2Prime':[]};return _0xf6a4ff;}},removeHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x342)]['id'],'m2':_univerjs_sheets_hyper_link['RemoveHyperLinkMutation']['id'],'handler':(_0x24db15,_0x7757b9)=>{const _0x5436dc=_0xfc9601,_0x63953f=_0x24db15[_0x5436dc(0x3eb)],_0x2c626c=_0x7757b9['params'];if(_0x63953f[_0x5436dc(0x1d0)]===_0x2c626c[_0x5436dc(0x1d0)]&&_0x63953f[_0x5436dc(0x25e)]===_0x2c626c['subUnitId']&&_0x63953f['id']===_0x2c626c['id'])return{'m2Prime':[],'m1Prime':[]};return{'m1Prime':_0x24db15,'m2Prime':_0x7757b9};}},removeNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x4bed6a,_0x552d2d){const _0x1a0d56=_0xfc9601;if(_0x4bed6a[_0x1a0d56(0x3eb)][_0x1a0d56(0x1d0)]!==_0x552d2d[_0x1a0d56(0x3eb)][_0x1a0d56(0x1d0)]||_0x4bed6a[_0x1a0d56(0x3eb)][_0x1a0d56(0x25e)]!==_0x552d2d[_0x1a0d56(0x3eb)][_0x1a0d56(0x25e)])return{'m1Prime':_0x4bed6a,'m2Prime':_0x552d2d};const _0x38ae06=_univerjs_core['Tools'][_0x1a0d56(0x1cf)](_0x4bed6a),_0x2644d2=_univerjs_core[_0x1a0d56(0x1c3)][_0x1a0d56(0x1cf)](_0x552d2d),_0xc1ffca=[],_0x1ae73f=_0x2644d2[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)];return _0x38ae06[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)][_0x1a0d56(0x302)](_0x5ddcc5=>{const _0x3fe95f=_0x1a0d56,_0x52056f=RangeSubtractRanges(_0x5ddcc5,_0x1ae73f);if(_0x52056f[_0x3fe95f(0x29d)]>0x0)_0xc1ffca[_0x3fe95f(0x380)](..._0x52056f);}),_0x38ae06[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)]=_0xc1ffca,{'m1Prime':_0x4bed6a,'m2Prime':_0x552d2d};}},removeNumfmtMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x5ecdf5,_0x1d29ad){const _0x2944d4=_0xfc9601;if(_0x5ecdf5[_0x2944d4(0x3eb)][_0x2944d4(0x1d0)]!==_0x1d29ad['params'][_0x2944d4(0x1d0)]||_0x5ecdf5['params'][_0x2944d4(0x25e)]!==_0x1d29ad['params'][_0x2944d4(0x25e)])return{'m1Prime':_0x5ecdf5,'m2Prime':_0x1d29ad};const _0x1ebac6=_univerjs_core['Tools'][_0x2944d4(0x1cf)](_0x5ecdf5),_0x506095=_univerjs_core['Tools'][_0x2944d4(0x1cf)](_0x1d29ad),_0x5d4012=[],_0x26b6cd=Object[_0x2944d4(0x375)](_0x506095[_0x2944d4(0x3eb)][_0x2944d4(0x375)])['map'](_0x495881=>_0x495881[_0x2944d4(0x3a3)])['flat']();return _0x1ebac6[_0x2944d4(0x3eb)]['ranges'][_0x2944d4(0x302)](_0x5821d4=>{const _0xa6df0c=_0x2944d4,_0x565d4f=RangeSubtractRanges(_0x5821d4,_0x26b6cd);if(_0x565d4f[_0xa6df0c(0x29d)]>0x0)_0x5d4012[_0xa6df0c(0x380)](..._0x565d4f);}),_0x1ebac6[_0x2944d4(0x3eb)][_0x2944d4(0x3a3)]=_0x5d4012,{'m1Prime':_0x1ebac6,'m2Prime':_0x506095};}},removeRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x4be509,_0x4a3e41)=>{const _0x186ba6=_0xfc9601,_0x3a8377={'m1Prime':_0x4be509,'m2Prime':_0x4a3e41};if(_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x1d0)]!==_0x4a3e41[_0x186ba6(0x3eb)]['unitId']||_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x25e)]!==_0x4a3e41['params'][_0x186ba6(0x25e)])return _0x3a8377;const _0xda1693=transformAddCommentWithRefRange(_0x4a3e41,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'unitId':_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x1d0)],'subUnitId':_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x25e)],'range':_0x4be509['params'][_0x186ba6(0x29a)]}});return{'m1Prime':[_0x4be509,..._0xda1693],'m2Prime':[_0x4a3e41,..._0xda1693]};}},removeRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x5198d2,_0x330b10){const _0x226933=_0xfc9601,_0x471947={'m1Prime':_0x5198d2,'m2Prime':_0x330b10};if(_0x5198d2[_0x226933(0x3eb)][_0x226933(0x1d0)]!==_0x330b10[_0x226933(0x3eb)][_0x226933(0x1d0)]||_0x5198d2[_0x226933(0x3eb)][_0x226933(0x25e)]!==_0x330b10[_0x226933(0x3eb)][_0x226933(0x25e)])return _0x471947;const _0x17ed81=transformAddDataValidationWithRefRange(_0x330b10,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'range':_0x5198d2['params'][_0x226933(0x29a)]}});return{'m1Prime':[_0x5198d2,..._0x17ed81],'m2Prime':[_0x330b10,..._0x17ed81]};}},removeRowMutationWithAddMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x59bb3d,_0x401b99){const _0x312bef=_0xfc9601,_0x1c4d2d=addWorksheetMergeMutationWithRemoveRowMutation[_0x312bef(0x3f8)](_0x401b99,_0x59bb3d);if(isTransformMutationSuccess(_0x1c4d2d))return{'m1Prime':_0x1c4d2d[_0x312bef(0x3d9)],'m2Prime':_0x1c4d2d['m1Prime']};else return _0x1c4d2d;}},removeRowMutationWithMoveRange={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x32f90a,_0x48ae6e){const _0x254051=_0xfc9601,_0x271941={'m1Prime':_0x32f90a,'m2Prime':_0x48ae6e};if(_0x32f90a[_0x254051(0x3eb)]['unitId']!==_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x1d0)]||_0x32f90a['params'][_0x254051(0x25e)]!==_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x3a4)]['subUnitId']&&_0x32f90a[_0x254051(0x3eb)]['subUnitId']!==_0x48ae6e['params']['to'][_0x254051(0x25e)])return _0x271941;const _0x117087=_univerjs_core[_0x254051(0x1c3)][_0x254051(0x1cf)](_0x32f90a),_0x3bb7e7=_univerjs_core[_0x254051(0x1c3)][_0x254051(0x1cf)](_0x48ae6e),{startRow:_0x57f102,endRow:_0x169091}=_0x32f90a[_0x254051(0x3eb)][_0x254051(0x29a)];if(_0x32f90a[_0x254051(0x3eb)][_0x254051(0x25e)]===_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x3a4)]['subUnitId']){const _0xd23e7f=new _univerjs_core[(_0x254051(0x3c2))](_0x3bb7e7['params'][_0x254051(0x3a4)][_0x254051(0x3e6)]),{startRow:_0x5303db,endRow:_0x1a0413}=_0xd23e7f[_0x254051(0x3d1)]();if(_0x5303db<=_0x169091&&_0x1a0413>=_0x57f102)return{'error':new Error(_0x254051(0x340))};if(_0x169091<_0x5303db)_0xd23e7f[_0x254051(0x3b1)](_0x57f102,_0x169091-_0x57f102+0x1);_0x3bb7e7[_0x254051(0x3eb)][_0x254051(0x3a4)]['value']=_0xd23e7f[_0x254051(0x1d1)]();}if(_0x32f90a[_0x254051(0x3eb)][_0x254051(0x25e)]===_0x48ae6e[_0x254051(0x3eb)]['to']['subUnitId']){const _0x143922=new _univerjs_core['ObjectMatrix'](_0x3bb7e7[_0x254051(0x3eb)]['to'][_0x254051(0x3e6)]),{startRow:_0xdb6ab7,endRow:_0x25ec15}=_0x143922[_0x254051(0x3d1)]();if(_0xdb6ab7<=_0x169091&&_0x25ec15>=_0x57f102)return{'error':new Error(_0x254051(0x340))};if(_0x169091<_0xdb6ab7)_0x143922[_0x254051(0x3b1)](_0x57f102,_0x169091-_0x57f102+0x1);_0x3bb7e7['params']['to'][_0x254051(0x3e6)]=_0x143922[_0x254051(0x1d1)]();}return{'m1Prime':_0x117087,'m2Prime':_0x3bb7e7};}},removeRowMutationWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler'(_0x1ce499,_0x3f4a10){const _0x3da1d7=_0xfc9601,_0x70a04a={'m1Prime':_0x1ce499,'m2Prime':_0x3f4a10};if(_0x1ce499['params'][_0x3da1d7(0x1d0)]!==_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x1d0)]||_0x1ce499['params']['subUnitId']!==_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x25e)])return _0x70a04a;const _0x419c3=_univerjs_core[_0x3da1d7(0x1c3)][_0x3da1d7(0x1cf)](_0x1ce499),_0x3c3145=_univerjs_core[_0x3da1d7(0x1c3)][_0x3da1d7(0x1cf)](_0x3f4a10);if(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)]['startRow']<=_0x3f4a10['params']['sourceRange'][_0x3da1d7(0x3aa)]&&_0x1ce499['params'][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]>=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]['startRow']||_0x1ce499[_0x3da1d7(0x3eb)]['range'][_0x3da1d7(0x357)]<=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)]['endRow']&&_0x1ce499['params'][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]>=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)][_0x3da1d7(0x357)])return{'error':new Error(_0x3da1d7(0x299))};const _0xbb02e=(0x0,_univerjs_sheets[_0x3da1d7(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]))),_0x21ab2a=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)])));if(_0xbb02e&&_0x21ab2a)_0x3c3145[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]['startRow']+=_0xbb02e[_0x3da1d7(0x2af)],_0x3c3145[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)][_0x3da1d7(0x3aa)]+=_0xbb02e[_0x3da1d7(0x2af)]+(_0xbb02e[_0x3da1d7(0x29d)]||0x0),_0x3c3145[_0x3da1d7(0x3eb)]['targetRange']['startRow']+=_0x21ab2a[_0x3da1d7(0x2af)],_0x3c3145['params']['targetRange'][_0x3da1d7(0x3aa)]+=_0x21ab2a[_0x3da1d7(0x2af)]+(_0x21ab2a[_0x3da1d7(0x29d)]||0x0);else _0x3c3145['id']=_univerjs_sheets[_0x3da1d7(0x305)]['id'];const _0x1543f4=(0x0,_univerjs_sheets[_0x3da1d7(0x3e5)])({'start':_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)][_0x3da1d7(0x357)],'end':_0x3f4a10[_0x3da1d7(0x3eb)]['sourceRange'][_0x3da1d7(0x3aa)]},{'start':_0x3f4a10['params'][_0x3da1d7(0x38d)][_0x3da1d7(0x357)],'end':_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)][_0x3da1d7(0x3aa)]},{'start':_0x1ce499['params'][_0x3da1d7(0x29a)]['startRow'],'end':_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]});if(_0x1543f4){const {step:_0x36b133,length:_0xc91e57}=_0x1543f4;_0x419c3[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)]['startRow']+=_0x36b133,_0x419c3[_0x3da1d7(0x3eb)]['range'][_0x3da1d7(0x3aa)]+=_0x36b133+(_0xc91e57||0x0);}else _0x419c3['id']=_univerjs_sheets[_0x3da1d7(0x305)]['id'];return{'m1Prime':_0x419c3,'m2Prime':_0x3c3145};}},removeRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x3203ca,_0x3278db){const _0x313b7c=_0xfc9601,_0x468824={'m1Prime':_0x3203ca,'m2Prime':_0x3278db};if(_0x3203ca['params'][_0x313b7c(0x1d0)]!==_0x3278db[_0x313b7c(0x3eb)][_0x313b7c(0x1d0)]||_0x3203ca[_0x313b7c(0x3eb)][_0x313b7c(0x25e)]!==_0x3278db[_0x313b7c(0x3eb)][_0x313b7c(0x25e)])return _0x468824;const _0x324a88=_univerjs_core['Tools'][_0x313b7c(0x1cf)](_0x3203ca),_0x4e4443=_univerjs_core['Tools'][_0x313b7c(0x1cf)](_0x3278db),{ranges:_0x382b26}=_0x4e4443['params'];if(_0x382b26[_0x313b7c(0x3ad)](_0x408b77=>{const _0x2467ec=_0x313b7c,_0x328b80=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x2467ec(0x1eb)])(_0x3203ca[_0x2467ec(0x3eb)][_0x2467ec(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2467ec(0x1eb)])(_0x408b77)));if(_0x328b80===null||_0x328b80['length']!==0x0)return!![];return _0x408b77['startRow']+=_0x328b80['step'],_0x408b77[_0x2467ec(0x3aa)]+=_0x328b80[_0x2467ec(0x2af)],![];}))return{'error':new Error('remove\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x324a88,'m2Prime':_0x4e4443};}},removeRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler'(_0x597fb0,_0x11247b){const _0x440e1c=_0xfc9601,_0xfc79aa={'m1Prime':_0x597fb0,'m2Prime':_0x11247b};if(_0x597fb0['params'][_0x440e1c(0x1d0)]!==_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x1d0)]||_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x25e)]!==_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x25e)])return _0xfc79aa;const _0x402586=_univerjs_core['Tools'][_0x440e1c(0x1cf)](_0x597fb0),_0x6dcfe4=_univerjs_core[_0x440e1c(0x1c3)][_0x440e1c(0x1cf)](_0x11247b),_0x5105a4=(0x0,_univerjs_sheets[_0x440e1c(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])));if(_0x5105a4){const {step:_0x4cfa54,length:_0x1c936b}=_0x5105a4;_0x6dcfe4['params'][_0x440e1c(0x29a)][_0x440e1c(0x357)]+=_0x4cfa54,_0x6dcfe4[_0x440e1c(0x3eb)][_0x440e1c(0x29a)]['endRow']+=_0x4cfa54+(_0x1c936b||0x0);}else _0x6dcfe4['id']=_univerjs_sheets[_0x440e1c(0x305)]['id'];const _0x5695e0=(0x0,_univerjs_sheets[_0x440e1c(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])));if(_0x5695e0){const {step:_0x3a5680,length:_0x13b65c}=_0x5695e0;_0x402586[_0x440e1c(0x3eb)]['range'][_0x440e1c(0x357)]+=_0x3a5680,_0x402586[_0x440e1c(0x3eb)]['range'][_0x440e1c(0x3aa)]+=_0x3a5680+(_0x13b65c||0x0);}else _0x402586['id']=_univerjs_sheets[_0x440e1c(0x305)]['id'];return{'m1Prime':_0x402586,'m2Prime':_0x6dcfe4};}},removeRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0xfccce,_0x49ae11){const _0x42fa1e=_0xfc9601,_0x42de8c=_univerjs_core[_0x42fa1e(0x1c3)][_0x42fa1e(0x1cf)](_0xfccce),_0x437a4f=_univerjs_core[_0x42fa1e(0x1c3)][_0x42fa1e(0x1cf)](_0x49ae11);if(_0xfccce['params'][_0x42fa1e(0x1d0)]!==_0x49ae11[_0x42fa1e(0x3eb)][_0x42fa1e(0x1d0)]||_0xfccce[_0x42fa1e(0x3eb)][_0x42fa1e(0x25e)]!==_0x49ae11[_0x42fa1e(0x3eb)][_0x42fa1e(0x25e)])return{'m1Prime':_0x42de8c,'m2Prime':_0x437a4f};const _0x5425c8=_0x437a4f[_0x42fa1e(0x3eb)][_0x42fa1e(0x3a3)][_0x42fa1e(0x2a5)]((_0x2b6108,_0x34e0a5)=>{const _0xf4d4ca=_0x42fa1e,_0x4f4f1d=_0x42de8c[_0xf4d4ca(0x3eb)][_0xf4d4ca(0x29a)],_0x465f63=_0x4f4f1d['endRow']-_0x4f4f1d[_0xf4d4ca(0x357)]+0x1;let _0x1ffe8a={..._0x34e0a5};if(_0x4f4f1d['startRow']>_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a={..._0x34e0a5};else{if(_0x4f4f1d[_0xf4d4ca(0x357)]>=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['startRow']<=_0x34e0a5[_0xf4d4ca(0x3aa)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]>_0x34e0a5[_0xf4d4ca(0x3aa)]){_0x1ffe8a['endRow']=_0x4f4f1d[_0xf4d4ca(0x357)]-0x1;if(_0x4f4f1d[_0xf4d4ca(0x357)]===_0x34e0a5['startRow'])_0x1ffe8a=null;}else{if(_0x4f4f1d[_0xf4d4ca(0x357)]>_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]<_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a['endRow']=_0x34e0a5['endRow']-_0x465f63;else{if(_0x4f4f1d['startRow']<_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['endRow']>=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['endRow']<=_0x34e0a5[_0xf4d4ca(0x3aa)]){_0x1ffe8a[_0xf4d4ca(0x357)]=_0x4f4f1d[_0xf4d4ca(0x357)],_0x1ffe8a['endRow']=_0x34e0a5[_0xf4d4ca(0x3aa)]-_0x465f63;if(_0x4f4f1d[_0xf4d4ca(0x3aa)]===_0x34e0a5['endRow'])_0x1ffe8a=null;}else{if(_0x4f4f1d[_0xf4d4ca(0x357)]<=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]>=_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a=null;else _0x4f4f1d[_0xf4d4ca(0x3aa)]<_0x34e0a5[_0xf4d4ca(0x357)]&&(_0x1ffe8a[_0xf4d4ca(0x357)]=_0x34e0a5[_0xf4d4ca(0x357)]-_0x465f63,_0x1ffe8a['endRow']=_0x34e0a5[_0xf4d4ca(0x3aa)]-_0x465f63);}}}}if(_0x1ffe8a&&!(_0x1ffe8a[_0xf4d4ca(0x357)]===_0x1ffe8a[_0xf4d4ca(0x3aa)]&&_0x1ffe8a[_0xf4d4ca(0x245)]===_0x1ffe8a[_0xf4d4ca(0x22a)]))return _0x2b6108['push'](_0x1ffe8a),_0x2b6108;else return _0x2b6108;},[]);return _0x437a4f['params'][_0x42fa1e(0x3a3)]=_0x5425c8,{'m1Prime':_0x42de8c,'m2Prime':_0x437a4f};}},removeRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x18d7cb,_0xba6c6){const _0x49a042=_0xfc9601,_0x136b4={'m1Prime':_0x18d7cb,'m2Prime':_0xba6c6};if(_0x18d7cb[_0x49a042(0x3eb)]['unitId']!==_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x1d0)]||_0x18d7cb['params']['subUnitId']!==_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x25e)])return _0x136b4;const _0x156526=_univerjs_core[_0x49a042(0x1c3)][_0x49a042(0x1cf)](_0xba6c6),_0x5119ab=_univerjs_core[_0x49a042(0x1c3)][_0x49a042(0x1cf)](_0x18d7cb),_0x12029f=(0x0,_univerjs_sheets[_0x49a042(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x49a042(0x1eb)])(_0x18d7cb['params'][_0x49a042(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0xba6c6['params'][_0x49a042(0x29a)])));if(!_0x12029f)return{'m1Prime':_0x18d7cb,'m2Prime':[]};if(_0x12029f[_0x49a042(0x29d)]===0x0&&_0x12029f[_0x49a042(0x2af)]===0x0)return{'m1Prime':_0x18d7cb,'m2Prime':_0xba6c6};const {startRow:_0x589dc9,endRow:_0xbc3b09}=_0x18d7cb[_0x49a042(0x3eb)][_0x49a042(0x29a)];_0x156526[_0x49a042(0x3eb)][_0x49a042(0x29a)][_0x49a042(0x357)]+=_0x12029f['step'],_0x156526[_0x49a042(0x3eb)]['range'][_0x49a042(0x3aa)]+=_0x12029f['step']+(_0x12029f[_0x49a042(0x29d)]||0x0);const _0x2270f8=Object[_0x49a042(0x38e)](_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x2d8)])[_0x49a042(0x3b3)](_0x1406fd=>orderMap(_0x589dc9,_0xbc3b09,Number(_0x1406fd)))[_0x49a042(0x3cc)](_0x1ced12=>_0x1ced12!==null),_0x1fa522={};for(const _0x17ee1e in _0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x2d8)]){let _0x142dde=_0xba6c6['params'][_0x49a042(0x2d8)][_0x17ee1e];_0x142dde=orderMap(_0x589dc9,_0xbc3b09,_0x142dde);if(_0x142dde!==null)_0x1fa522[_0x2270f8[_0x49a042(0x23a)]()]=_0x142dde;}_0x156526['params'][_0x49a042(0x2d8)]=_0x1fa522;const _0x1c73ad=reorderRemoveRows(_0xba6c6['params']['order'],{'start':_0x18d7cb[_0x49a042(0x3eb)][_0x49a042(0x29a)][_0x49a042(0x357)],'end':_0x18d7cb['params'][_0x49a042(0x29a)]['endRow']}),_0x399b2e=[_0x5119ab];if(_0x1c73ad)_0x399b2e[_0x49a042(0x398)]({'id':_univerjs_sheets['ReorderRangeMutation']['id'],'params':{..._0x18d7cb['params'],'order':_0x1c73ad[_0x49a042(0x2d8)],'range':{..._0xba6c6[_0x49a042(0x3eb)]['range'],..._0x1c73ad[_0x49a042(0x29a)]}}});return{'m1Prime':_0x399b2e,'m2Prime':_0x156526};}},reorderRemoveRows=(_0x1c2640,_0x12680d)=>{const _0x4eafb4=_0xfc9601,_0x2a0ca1=Object['keys'](_0x1c2640)[_0x4eafb4(0x3b3)](Number)[_0x4eafb4(0x3be)]((_0x72c423,_0x3dc8c2)=>_0x72c423-_0x3dc8c2);if(_0x2a0ca1[_0x4eafb4(0x29d)]===0x0)return null;const _0x19c5cf=_0x2a0ca1[0x0],_0x1ddc44=_0x2a0ca1[_0x2a0ca1[_0x4eafb4(0x29d)]-0x1];if(_0x19c5cf>_0x12680d[_0x4eafb4(0x3bc)]||_0x1ddc44<_0x12680d[_0x4eafb4(0x40e)])return null;const _0x2dea5d=_0x2a0ca1[_0x4eafb4(0x3cc)](_0x58c288=>_0x1c2640[_0x58c288]>=_0x12680d[_0x4eafb4(0x40e)]&&_0x1c2640[_0x58c288]<=_0x12680d[_0x4eafb4(0x3bc)]);if(_0x2dea5d[_0x4eafb4(0x29d)]===0x0)return null;const _0x917813=_0x2dea5d['map'](_0x2477e8=>_0x1c2640[_0x2477e8]),_0x9c52eb={},_0x27f8b2=Math[_0x4eafb4(0x1d8)](_0x2dea5d[0x0],_0x12680d[_0x4eafb4(0x40e)]),_0x25fe3c=Math['max'](_0x2dea5d[_0x2dea5d[_0x4eafb4(0x29d)]-0x1],_0x12680d[_0x4eafb4(0x3bc)]),_0x2e5fc3=Array['from']({'length':_0x25fe3c-_0x27f8b2+0x1},(_0x2ba80f,_0xdec420)=>_0xdec420+_0x27f8b2)[_0x4eafb4(0x3cc)](_0x286c3a=>!_0x2dea5d[_0x4eafb4(0x3ec)](_0x286c3a));return Array[_0x4eafb4(0x3a4)]({'length':_0x25fe3c-_0x27f8b2+0x1},(_0x4b85e2,_0x1a6e9d)=>_0x1a6e9d+_0x27f8b2)[_0x4eafb4(0x3cc)](_0xc5526b=>!_0x917813[_0x4eafb4(0x3ec)](_0xc5526b))[_0x4eafb4(0x302)]((_0x4194b,_0x52ebb4)=>{_0x9c52eb[_0x4194b]=_0x2e5fc3[_0x52ebb4];}),_0x917813[_0x4eafb4(0x302)]((_0x11dd01,_0x9f0ec3)=>{_0x9c52eb[_0x11dd01]=_0x2dea5d[_0x9f0ec3];}),{'range':{'startRow':_0x27f8b2,'endRow':_0x25fe3c},'order':_0x9c52eb};},orderMap=(_0x3aa2b1,_0x576f26,_0x3532f2)=>{if(_0x3532f2>=_0x3aa2b1&&_0x3532f2<=_0x576f26)return null;if(_0x3532f2>_0x576f26)return _0x3532f2-(_0x576f26-_0x3aa2b1+0x1);return _0x3532f2;},removeRowMutationWithSetNumfmt={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x6e6e4f,_0x483457){const _0x3827a9=_0xfc9601,_0x3196aa={'m1Prime':_0x6e6e4f,'m2Prime':_0x483457};if(_0x6e6e4f[_0x3827a9(0x3eb)]['unitId']!==_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x1d0)]||_0x6e6e4f[_0x3827a9(0x3eb)][_0x3827a9(0x25e)]!==_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x25e)])return _0x3196aa;const _0x12941f=[_univerjs_core['Tools'][_0x3827a9(0x1cf)](_0x6e6e4f)],_0x3e3850=_univerjs_core[_0x3827a9(0x1c3)][_0x3827a9(0x1cf)](_0x483457),{values:_0x31e760}=_0x3e3850['params'],_0x5b6a17=[];let _0x49b94c=![];for(const _0x5c768c in _0x31e760){const _0x3541bb=_0x31e760[_0x5c768c];_0x5b6a17['push'](..._0x3541bb[_0x3827a9(0x3a3)]);if(_0x3541bb[_0x3827a9(0x3a3)][_0x3827a9(0x3ad)](_0x30324f=>{const _0x1ffbd5=_0x3827a9,_0x2302e7=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x6e6e4f['params'][_0x1ffbd5(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x30324f)));if(_0x2302e7==null||_0x2302e7['length']!==0x0)return!![];if(_0x2302e7[_0x1ffbd5(0x2af)]!==0x0)_0x49b94c=!![];return _0x30324f[_0x1ffbd5(0x357)]+=_0x2302e7[_0x1ffbd5(0x2af)],_0x30324f[_0x1ffbd5(0x3aa)]+=_0x2302e7[_0x1ffbd5(0x2af)],![];}))return{'error':new Error(_0x3827a9(0x347))};}if(_0x49b94c){const _0x43ea94={'id':_univerjs_sheets['RemoveNumfmtMutation']['id'],'params':{'unitId':_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x1d0)],'subUnitId':_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x25e)],'ranges':_0x5b6a17}};_0x12941f[_0x3827a9(0x380)](_0x43ea94,_0x3e3850);}return{'m1Prime':_0x12941f,'m2Prime':_0x3e3850};}},removeRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x1fae9d,_0x279853){const _0xfecd9=_0xfc9601,_0x55b2dd={'m1Prime':_0x1fae9d,'m2Prime':_0x279853};if(_0x1fae9d['params'][_0xfecd9(0x1d0)]!==_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x1d0)]||_0x1fae9d[_0xfecd9(0x3eb)][_0xfecd9(0x25e)]!==_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x25e)])return _0x55b2dd;const _0x16fbc3=[_univerjs_core['Tools']['deepClone'](_0x1fae9d)],_0x3d106e=_univerjs_core[_0xfecd9(0x1c3)][_0xfecd9(0x1cf)](_0x279853),_0x23188e=new _univerjs_core[(_0xfecd9(0x3c2))](_0x3d106e['params']['cellValue']),_0x1f205f=_0x23188e[_0xfecd9(0x3d1)](),_0x25eefb=_0x1fae9d['params']['range'],_0x4f9f79=_0x25eefb[_0xfecd9(0x3aa)]-_0x25eefb['startRow']+0x1;if(_0x3d106e['params'][_0xfecd9(0x31f)]&&_0x25eefb[_0xfecd9(0x3aa)]<_0x1f205f[_0xfecd9(0x357)])moveRows(_0x3d106e[_0xfecd9(0x3eb)]['cellValue'],_0x1f205f[_0xfecd9(0x357)],_0x1f205f[_0xfecd9(0x3aa)]-_0x1f205f[_0xfecd9(0x357)]+0x1,-_0x4f9f79);else{if(_0x25eefb[_0xfecd9(0x357)]<=_0x1f205f[_0xfecd9(0x3aa)])return{'error':new Error(_0xfecd9(0x2a4))};}const _0x2f3740=new _univerjs_core[(_0xfecd9(0x3c2))]();let _0x104d4b=![],_0x49889a=![];_0x23188e[_0xfecd9(0x387)]((_0x57eb49,_0x320f10,_0x352942)=>{const _0x5060b4=_0xfecd9;if(_0x352942&&_0x352942['f']){const _0x2f67a0=_0x352942['f'];let _0x17defc=![];const _0x243350=processFormulaString(_0x1fae9d[_0x5060b4(0x3eb)][_0x5060b4(0x1d0)],_0x1fae9d[_0x5060b4(0x3eb)][_0x5060b4(0x25e)],_0x2f67a0,_0x5e4a36=>{const _0x2b5335=_0x5060b4,_0x152297=(0x0,_univerjs_sheets[_0x2b5335(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x2b5335(0x1eb)])(_0x1fae9d[_0x2b5335(0x3eb)][_0x2b5335(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2b5335(0x1eb)])(_0x5e4a36)));if(_0x152297===null)return _0x104d4b=!![],_0x5e4a36;return(_0x152297[_0x2b5335(0x2af)]!==0x0||_0x152297[_0x2b5335(0x29d)]!==0x0)&&(_0x17defc=!![],_0x5e4a36['startRow']+=_0x152297['step'],_0x5e4a36[_0x2b5335(0x3aa)]+=_0x152297['step']+_0x152297[_0x2b5335(0x29d)]),_0x5e4a36;});_0x17defc&&(_0x49889a=!![],_0x352942['f']=_0x243350,_0x2f3740[_0x5060b4(0x2fe)](_0x57eb49,_0x320f10,{..._0x352942}));}});if(_0x104d4b)return{'error':new Error('remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20row')};if(_0x49889a){const _0x23609f={'id':_univerjs_sheets[_0xfecd9(0x30f)]['id'],'params':{'unitId':_0x279853['params'][_0xfecd9(0x1d0)],'subUnitId':_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x25e)],'cellValue':_0x2f3740[_0xfecd9(0x1d1)]()}};_0x16fbc3[_0xfecd9(0x380)](_0x23609f);}return{'m1Prime':_0x16fbc3,'m2Prime':_0x3d106e};}},removeRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x3023a3,_0x323806){const _0xfdcaa5=_0xfc9601,_0x4f25f={'m1Prime':_0x3023a3,'m2Prime':_0x323806};if(_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x1d0)]!==_0x323806[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x1d0)]||_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x25e)]!==_0x323806['params'][_0xfdcaa5(0x25e)])return _0x4f25f;const _0x9859e5=_univerjs_core[_0xfdcaa5(0x1c3)][_0xfdcaa5(0x1cf)](_0x3023a3),_0x3fcadb=_univerjs_core[_0xfdcaa5(0x1c3)]['deepClone'](_0x323806),{rowData:_0x33d1ef}=_0x3fcadb[_0xfdcaa5(0x3eb)];return(0x0,_univerjs_core['spliceArray'])(_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)][_0xfdcaa5(0x357)],_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)]['endRow']-_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)][_0xfdcaa5(0x357)]+0x1,_0x33d1ef),{'m1Prime':_0x9859e5,'m2Prime':_0x3fcadb};}},removeRowMutationWithSetRowHidden={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3d8)]['id'],'handler'(_0x299178,_0x2e4e12){const _0x42b72e=_0xfc9601,_0x390231={'m1Prime':_0x299178,'m2Prime':_0x2e4e12};if(_0x299178[_0x42b72e(0x3eb)][_0x42b72e(0x1d0)]!==_0x2e4e12['params'][_0x42b72e(0x1d0)]||_0x299178[_0x42b72e(0x3eb)][_0x42b72e(0x25e)]!==_0x2e4e12[_0x42b72e(0x3eb)][_0x42b72e(0x25e)])return _0x390231;const _0x503b5c=_univerjs_core[_0x42b72e(0x1c3)][_0x42b72e(0x1cf)](_0x299178),_0x55460f=_univerjs_core['Tools'][_0x42b72e(0x1cf)](_0x2e4e12),{ranges:_0x57d671}=_0x55460f['params'];return _0x57d671[_0x42b72e(0x302)](_0x23db96=>{const _0x59c9bb=_0x42b72e,_0x541d35=(0x0,_univerjs_sheets[_0x59c9bb(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x59c9bb(0x1eb)])(_0x299178[_0x59c9bb(0x3eb)][_0x59c9bb(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x59c9bb(0x1eb)])(_0x23db96)));if(_0x541d35==null)_0x55460f['id']=_univerjs_sheets[_0x59c9bb(0x305)]['id'];else _0x23db96['startRow']+=_0x541d35[_0x59c9bb(0x2af)],_0x23db96[_0x59c9bb(0x3aa)]+=_0x541d35[_0x59c9bb(0x2af)]+_0x541d35['length'];}),{'m1Prime':_0x503b5c,'m2Prime':_0x55460f};}},removeRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x3ed3b4,_0x4226f5){const _0x5eb5d3=_0xfc9601,_0x5310a8={'m1Prime':_0x3ed3b4,'m2Prime':_0x4226f5};if(_0x3ed3b4['params']['unitId']!==_0x4226f5[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x1d0)]||_0x3ed3b4[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x25e)]!==_0x4226f5[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x25e)])return _0x5310a8;const _0x1a834f=_univerjs_core[_0x5eb5d3(0x1c3)][_0x5eb5d3(0x1cf)](_0x3ed3b4),_0x1f306c=_univerjs_core[_0x5eb5d3(0x1c3)][_0x5eb5d3(0x1cf)](_0x4226f5),{ranges:_0x417778}=_0x1f306c[_0x5eb5d3(0x3eb)];return _0x417778['forEach'](_0x1663aa=>{const _0x514904=_0x5eb5d3,_0x31f6c7=(0x0,_univerjs_sheets[_0x514904(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x514904(0x1eb)])(_0x3ed3b4[_0x514904(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets[_0x514904(0x1eb)])(_0x1663aa)));if(_0x31f6c7==null)_0x1f306c['id']=_univerjs_sheets[_0x514904(0x305)]['id'];else _0x1663aa[_0x514904(0x357)]+=_0x31f6c7[_0x514904(0x2af)],_0x1663aa['endRow']+=_0x31f6c7[_0x514904(0x2af)]+_0x31f6c7[_0x514904(0x29d)];}),{'m1Prime':_0x1a834f,'m2Prime':_0x1f306c};}},removeRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x5c51bc,_0x21ccd6){const _0x111703=_0xfc9601,_0x285bcc={'m1Prime':[],'m2Prime':[]};if(_0x5c51bc[_0x111703(0x3eb)][_0x111703(0x1d0)]!==_0x21ccd6[_0x111703(0x3eb)][_0x111703(0x1d0)]||_0x5c51bc[_0x111703(0x3eb)][_0x111703(0x25e)]!==_0x21ccd6[_0x111703(0x3eb)][_0x111703(0x25e)])return _0x285bcc;const _0x2f64e9=_univerjs_core[_0x111703(0x1c3)]['deepClone'](_0x21ccd6);let _0x492a60=![];_0x2f64e9['params']['selections']['forEach'](_0x4baae7=>{const _0x320094=_0x111703,{range:_0x1b911c,primary:_0x202ce4}=_0x4baae7,_0x478ee3=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x5c51bc[_0x320094(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x1b911c)));if(_0x478ee3==null)return;if(_0x478ee3[_0x320094(0x29d)]||_0x478ee3[_0x320094(0x2af)]){_0x1b911c['startRow']+=_0x478ee3[_0x320094(0x2af)],_0x1b911c['endRow']+=_0x478ee3[_0x320094(0x2af)]+(_0x478ee3[_0x320094(0x29d)]||0x0);if(_0x202ce4){const _0x3f37e4=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x5c51bc['params'][_0x320094(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x202ce4)));if(_0x3f37e4==null){_0x202ce4[_0x320094(0x357)]=_0x1b911c[_0x320094(0x357)],_0x202ce4[_0x320094(0x3aa)]=_0x1b911c[_0x320094(0x357)],_0x202ce4[_0x320094(0x418)]=_0x1b911c['startRow'];return;}(_0x3f37e4[_0x320094(0x29d)]||_0x3f37e4[_0x320094(0x2af)])&&(_0x202ce4['startRow']+=_0x3f37e4[_0x320094(0x2af)],_0x202ce4[_0x320094(0x3aa)]+=_0x3f37e4['step'],_0x202ce4[_0x320094(0x418)]+=_0x3f37e4[_0x320094(0x2af)]);}_0x492a60=!![];}});if(_0x492a60)_0x285bcc[_0x111703(0x3d9)]['push'](_0x2f64e9);return _0x285bcc;}},removeRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x54fe5d,_0x2ccae9){const _0x38f730=_0xfc9601,_0xeeae7d={'m1Prime':[_0x54fe5d],'m2Prime':[_0x2ccae9]};if(_0x54fe5d['params']['unitId']!==_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x1d0)]||_0x54fe5d['params'][_0x38f730(0x25e)]!==_0x2ccae9[_0x38f730(0x3eb)]['subUnitId'])return _0xeeae7d;const _0x335767=_univerjs_core[_0x38f730(0x1c3)]['deepClone'](_0x54fe5d),_0x3c928b=_univerjs_core[_0x38f730(0x1c3)]['deepClone'](_0x2ccae9),_0x1f1c57=handleRemove({'start':_0x54fe5d[_0x38f730(0x3eb)]['range'][_0x38f730(0x357)],'end':_0x54fe5d[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x3aa)]},{'start':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x357)],'end':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x29a)]['endRow']});if(_0x1f1c57===null)return{'m1Prime':[_0x335767,{'id':_univerjs_sheets_filter[_0x38f730(0x274)]['id'],'params':{'unitId':_0x2ccae9[_0x38f730(0x3eb)]['unitId'],'subUnitId':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x1d0)]}}],'m2Prime':[]};return _0x3c928b[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x357)]=_0x1f1c57[_0x38f730(0x40e)],_0x3c928b[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x3aa)]=_0x1f1c57[_0x38f730(0x3bc)],{'m1Prime':[_0x3c928b,_0x335767],'m2Prime':[_0x3c928b]};}},removeRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x2874cf,_0x469247){const _0x10675f=_0xfc9601,_0x166e50={'m1Prime':_0x2874cf,'m2Prime':_0x469247};if(_0x2874cf['params']['unitId']!==_0x469247[_0x10675f(0x3eb)][_0x10675f(0x1d0)]||_0x2874cf[_0x10675f(0x3eb)]['subUnitId']!==_0x469247[_0x10675f(0x3eb)][_0x10675f(0x25e)])return _0x166e50;const _0x16d099=_univerjs_core[_0x10675f(0x1c3)][_0x10675f(0x1cf)](_0x2874cf),_0xb55587=_univerjs_core['Tools']['deepClone'](_0x469247),{rowsAutoHeightInfo:_0x43d81b}=_0xb55587['params'];for(let _0x32911b=_0x43d81b['length']-0x1;_0x32911b>=0x0;_0x32911b--){const _0x5c0f51=_0x43d81b[_0x32911b],_0x32ef16={'startRow':_0x5c0f51[_0x10675f(0x2bb)],'endRow':_0x5c0f51[_0x10675f(0x2bb)],'startColumn':0x0,'endColumn':0x0},_0x597d15=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x10675f(0x1eb)])(_0x2874cf[_0x10675f(0x3eb)][_0x10675f(0x29a)])),(0x0,_univerjs_sheets[_0x10675f(0x1eb)])(_0x32ef16));if(_0x597d15==null)_0x43d81b[_0x10675f(0x247)](_0x32911b,0x1);else _0x5c0f51[_0x10675f(0x2bb)]+=_0x597d15[_0x10675f(0x2af)];}return{'m1Prime':_0x16d099,'m2Prime':_0xb55587};}},removeRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x525851,_0x3bd1df){const _0x219e6f=_0xfc9601,_0x1b0f56={'m1Prime':_0x525851,'m2Prime':_0x3bd1df};if(_0x525851['params'][_0x219e6f(0x1d0)]!==_0x3bd1df[_0x219e6f(0x3eb)]['unitId']||_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x25e)]!==_0x3bd1df['params'][_0x219e6f(0x25e)])return _0x1b0f56;const _0x47e39a=_univerjs_core[_0x219e6f(0x1c3)][_0x219e6f(0x1cf)](_0x525851),_0x14710d=_univerjs_core[_0x219e6f(0x1c3)][_0x219e6f(0x1cf)](_0x3bd1df),{ranges:_0x3ca93e,rowHeight:_0x10d3f8}=_0x14710d[_0x219e6f(0x3eb)];_0x3ca93e[_0x219e6f(0x302)](_0x549e88=>{const _0x337e9e=_0x219e6f,_0x1f8009=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x337e9e(0x1eb)])(_0x525851[_0x337e9e(0x3eb)][_0x337e9e(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x549e88));if(_0x1f8009==null)_0x14710d['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x549e88[_0x337e9e(0x357)]+=_0x1f8009[_0x337e9e(0x2af)],_0x549e88[_0x337e9e(0x3aa)]+=_0x1f8009[_0x337e9e(0x2af)]+_0x1f8009[_0x337e9e(0x29d)];});if(typeof _0x10d3f8!==_0x219e6f(0x28f))(0x0,_univerjs_core[_0x219e6f(0x382)])(_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x357)],_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x3aa)]-_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x357)]+0x1,_0x10d3f8);return{'m1Prime':_0x47e39a,'m2Prime':_0x14710d};}},removeRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x5b0bba,_0xe6c55f){const _0x4c767a=_0xfc9601,_0x5ec68f={'m1Prime':_0x5b0bba,'m2Prime':_0xe6c55f};if(_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x1d0)]!==_0xe6c55f['params'][_0x4c767a(0x1d0)]||_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x25e)]!==_0xe6c55f[_0x4c767a(0x3eb)][_0x4c767a(0x25e)])return _0x5ec68f;const _0x74e324=_univerjs_core[_0x4c767a(0x1c3)]['deepClone'](_0x5b0bba),_0x173cd4=_univerjs_core['Tools'][_0x4c767a(0x1cf)](_0xe6c55f),{ranges:_0x582431,autoHeightInfo:_0x12a45a}=_0x173cd4[_0x4c767a(0x3eb)];_0x582431[_0x4c767a(0x302)](_0x16c2da=>{const _0x46534d=_0x4c767a,_0x3cbb6a=(0x0,_univerjs_sheets[_0x46534d(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x46534d(0x1eb)])(_0x5b0bba[_0x46534d(0x3eb)][_0x46534d(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x16c2da));if(_0x3cbb6a==null)_0x173cd4['id']=_univerjs_sheets[_0x46534d(0x305)]['id'];else _0x16c2da['startRow']+=_0x3cbb6a[_0x46534d(0x2af)],_0x16c2da[_0x46534d(0x3aa)]+=_0x3cbb6a['step']+_0x3cbb6a['length'];});if(typeof _0x12a45a!=='number')(0x0,_univerjs_core[_0x4c767a(0x382)])(_0x5b0bba['params']['range'][_0x4c767a(0x357)],_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x29a)][_0x4c767a(0x3aa)]-_0x5b0bba['params'][_0x4c767a(0x29a)][_0x4c767a(0x357)]+0x1,_0x12a45a);return{'m1Prime':_0x74e324,'m2Prime':_0x173cd4};}},removeRowWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x301538,_0x518b5b)=>{const _0x2f249a=_0xfc9601,_0x213017={'m1Prime':_0x301538,'m2Prime':_0x518b5b};if(_0x301538['params'][_0x2f249a(0x1d0)]!==_0x518b5b['params'][_0x2f249a(0x1d0)]||_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x25e)]!==_0x518b5b[_0x2f249a(0x3eb)][_0x2f249a(0x25e)])return _0x213017;const _0x289790=transformUpdateCommentRefWithRefRange(_0x518b5b,{'id':_univerjs_sheets[_0x2f249a(0x21c)]['id'],'params':{'unitId':_0x301538['params'][_0x2f249a(0x1d0)],'subUnitId':_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x25e)],'range':_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x29a)]}});return{'m1Prime':[_0x301538,..._0x289790],'m2Prime':[_0x518b5b,..._0x289790]};}},removeRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x17f84b,_0x1233ce)=>{const _0x5aca7f=_0xfc9601,_0x5468f7={'m1Prime':_0x17f84b,'m2Prime':_0x1233ce};if(_0x17f84b['params'][_0x5aca7f(0x1d0)]!==_0x1233ce[_0x5aca7f(0x3eb)][_0x5aca7f(0x1d0)]||_0x1233ce[_0x5aca7f(0x3eb)][_0x5aca7f(0x25e)]!==_0x17f84b[_0x5aca7f(0x3eb)][_0x5aca7f(0x25e)])return _0x5468f7;const _0x50c0e8=transformUpdateDataValidationWithRefRange(_0x1233ce,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'range':_0x17f84b['params'][_0x5aca7f(0x29a)]}});return{'m1Prime':[_0x17f84b,..._0x50c0e8],'m2Prime':[_0x1233ce,..._0x50c0e8]};}},removeWorksheetMergeMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x281c74,_0x32e130){const _0x57f016=_0xfc9601,_0x2d9b76=_univerjs_core[_0x57f016(0x1c3)][_0x57f016(0x1cf)](_0x281c74),_0x3086b3=_univerjs_core[_0x57f016(0x1c3)][_0x57f016(0x1cf)](_0x32e130);if(_0x281c74[_0x57f016(0x3eb)][_0x57f016(0x1d0)]!==_0x32e130[_0x57f016(0x3eb)]['unitId']||_0x281c74['params'][_0x57f016(0x25e)]!==_0x32e130[_0x57f016(0x3eb)][_0x57f016(0x25e)])return{'m1Prime':_0x2d9b76,'m2Prime':_0x3086b3};for(let _0x352dff=0x0;_0x352dff<_0x2d9b76[_0x57f016(0x3eb)][_0x57f016(0x3a3)][_0x57f016(0x29d)];_0x352dff++){let _0x38062e=![];for(let _0x234164=0x0;_0x234164<_0x3086b3['params'][_0x57f016(0x3a3)][_0x57f016(0x29d)];_0x234164++){const _0x19f308=_0x2d9b76[_0x57f016(0x3eb)]['ranges'][_0x352dff],_0x57581e=_0x3086b3[_0x57f016(0x3eb)][_0x57f016(0x3a3)][_0x234164];if(_univerjs_core[_0x57f016(0x330)][_0x57f016(0x3b4)](_0x19f308,_0x57581e)){_0x38062e=!![];break;}}_0x38062e&&(_0x2d9b76[_0x57f016(0x3eb)][_0x57f016(0x3a3)]['splice'](_0x352dff,0x1),_0x352dff--);}if(_0x2d9b76['params'][_0x57f016(0x3a3)][_0x57f016(0x29d)]===0x0)_0x2d9b76['id']=_univerjs_sheets[_0x57f016(0x305)]['id'];return{'m1Prime':_0x2d9b76,'m2Prime':_0x3086b3};}},removeWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x335555,_0x41970b){const _0x5265cf=_0xfc9601,_0x3ffe15=_univerjs_core[_0x5265cf(0x1c3)][_0x5265cf(0x1cf)](_0x335555),_0x7ea036=_univerjs_core[_0x5265cf(0x1c3)][_0x5265cf(0x1cf)](_0x41970b);if(_0x335555[_0x5265cf(0x3eb)][_0x5265cf(0x1d0)]!==_0x41970b[_0x5265cf(0x3eb)]['unitId']||_0x335555[_0x5265cf(0x3eb)]['subUnitId']!==_0x41970b[_0x5265cf(0x3eb)]['subUnitId'])return{'m1Prime':_0x3ffe15,'m2Prime':_0x7ea036};const _0x190d72=_0x3ffe15[_0x5265cf(0x3eb)][_0x5265cf(0x3a3)]['map'](_0x33a91e=>{const _0x2c0b6c=_0x5265cf,_0x4446a8=_0x7ea036[_0x2c0b6c(0x3eb)][_0x2c0b6c(0x29a)],_0x341de7=_0x4446a8['endColumn']-_0x4446a8[_0x2c0b6c(0x245)]+0x1;if(_0x4446a8[_0x2c0b6c(0x245)]<=_0x33a91e[_0x2c0b6c(0x245)])return{..._0x33a91e,'startColumn':_0x33a91e[_0x2c0b6c(0x245)]+_0x341de7,'endColumn':_0x33a91e[_0x2c0b6c(0x22a)]+_0x341de7};else{if(_0x4446a8[_0x2c0b6c(0x245)]>_0x33a91e[_0x2c0b6c(0x245)]&&_0x4446a8['startColumn']<=_0x33a91e[_0x2c0b6c(0x22a)])return{..._0x33a91e,'endColumn':_0x33a91e[_0x2c0b6c(0x22a)]+_0x341de7};else return{..._0x33a91e};}});return _0x3ffe15[_0x5265cf(0x3eb)][_0x5265cf(0x3a3)]=_0x190d72,{'m1Prime':_0x3ffe15,'m2Prime':_0x7ea036};}},removeWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler'(_0xb02588,_0x27baa8){const _0x7c6878=_0xfc9601,_0x295333=_univerjs_core[_0x7c6878(0x1c3)][_0x7c6878(0x1cf)](_0xb02588),_0x2c4b87=_univerjs_core['Tools']['deepClone'](_0x27baa8);if(_0xb02588['params'][_0x7c6878(0x1d0)]!==_0x27baa8[_0x7c6878(0x3eb)][_0x7c6878(0x1d0)]||_0xb02588[_0x7c6878(0x3eb)][_0x7c6878(0x25e)]!==_0x27baa8[_0x7c6878(0x3eb)][_0x7c6878(0x25e)])return{'m1Prime':_0x295333,'m2Prime':_0x2c4b87};const _0x4f7e90=_0x295333[_0x7c6878(0x3eb)][_0x7c6878(0x3a3)][_0x7c6878(0x3b3)](_0x207303=>{const _0x29b22c=_0x7c6878,_0x30d8c5=_0x2c4b87[_0x29b22c(0x3eb)]['range'],_0x18f8c4=_0x30d8c5[_0x29b22c(0x3aa)]-_0x30d8c5[_0x29b22c(0x357)]+0x1;if(_0x30d8c5[_0x29b22c(0x357)]<=_0x207303[_0x29b22c(0x357)])return{..._0x207303,'startRow':_0x207303[_0x29b22c(0x357)]+_0x18f8c4,'endRow':_0x207303[_0x29b22c(0x3aa)]+_0x18f8c4};else{if(_0x30d8c5[_0x29b22c(0x357)]>_0x207303['startRow']&&_0x30d8c5[_0x29b22c(0x357)]<=_0x207303[_0x29b22c(0x3aa)])return{..._0x207303,'endRow':_0x207303[_0x29b22c(0x3aa)]+_0x18f8c4};else return{..._0x207303};}});return _0x295333[_0x7c6878(0x3eb)][_0x7c6878(0x3a3)]=_0x4f7e90,{'m1Prime':_0x295333,'m2Prime':_0x2c4b87};}},removeWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler'(_0xc82d12,_0x4d07bd){const _0x5cc4fa=_0xfc9601,_0x2c1ecb=_univerjs_core[_0x5cc4fa(0x1c3)][_0x5cc4fa(0x1cf)](_0xc82d12),_0x6aee1c=_univerjs_core[_0x5cc4fa(0x1c3)]['deepClone'](_0x4d07bd);if(_0xc82d12[_0x5cc4fa(0x3eb)][_0x5cc4fa(0x1d0)]!==_0x4d07bd[_0x5cc4fa(0x3eb)]['unitId']||_0xc82d12['params']['subUnitId']!==_0x4d07bd['params'][_0x5cc4fa(0x25e)])return{'m1Prime':_0x2c1ecb,'m2Prime':_0x6aee1c};const _0x4dab6a=_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges']['reduce']((_0x4f0ac5,_0x237550)=>{const _0x4c09ee=_0x5cc4fa,{sourceRange:_0x55fd21,targetRange:_0xdedb2}=_0x4d07bd[_0x4c09ee(0x3eb)],_0x1b2cf0={..._0x237550};if(_0x55fd21[_0x4c09ee(0x22a)]<_0x1b2cf0[_0x4c09ee(0x245)]&&_0xdedb2['startColumn']>_0x1b2cf0[_0x4c09ee(0x22a)])_0x1b2cf0[_0x4c09ee(0x245)]-=_0x55fd21['endColumn']-_0x55fd21[_0x4c09ee(0x245)]+0x1,_0x1b2cf0[_0x4c09ee(0x22a)]-=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21[_0x4c09ee(0x245)]+0x1,isMergeCell(_0x1b2cf0)&&_0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);else{if(_0x55fd21[_0x4c09ee(0x245)]>_0x1b2cf0[_0x4c09ee(0x22a)]&&_0xdedb2['endColumn']<_0x1b2cf0['startColumn'])_0x1b2cf0[_0x4c09ee(0x245)]+=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21['startColumn']+0x1,_0x1b2cf0[_0x4c09ee(0x22a)]+=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21['startColumn']+0x1,isMergeCell(_0x1b2cf0)&&_0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);else{if(_univerjs_core[_0x4c09ee(0x330)][_0x4c09ee(0x3b4)](_0x1b2cf0,_0x55fd21)||_univerjs_core[_0x4c09ee(0x330)][_0x4c09ee(0x3b4)](_0x1b2cf0,_0xdedb2)){}else _0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);}}return _0x4f0ac5;},[]);_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges']=_0x4dab6a;if(_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges'][_0x5cc4fa(0x29d)]===0x0)_0x2c1ecb['id']=_univerjs_sheets[_0x5cc4fa(0x305)]['id'];return{'m1Prime':_0x2c1ecb,'m2Prime':_0x6aee1c};}},removeWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x36c54d,_0x13266a){const _0x504c07=_0xfc9601,_0x58b6dc=_univerjs_core['Tools'][_0x504c07(0x1cf)](_0x36c54d),_0x3ee815=_univerjs_core[_0x504c07(0x1c3)][_0x504c07(0x1cf)](_0x13266a);if(_0x36c54d[_0x504c07(0x3eb)][_0x504c07(0x1d0)]!==_0x13266a[_0x504c07(0x3eb)][_0x504c07(0x1d0)]||_0x36c54d[_0x504c07(0x3eb)][_0x504c07(0x25e)]!==_0x13266a['params'][_0x504c07(0x25e)])return{'m1Prime':_0x58b6dc,'m2Prime':_0x3ee815};const _0x5bddf6=_0x58b6dc[_0x504c07(0x3eb)][_0x504c07(0x3a3)][_0x504c07(0x2a5)]((_0xdde9a1,_0x1809cd)=>{const _0x22ec85=_0x504c07,{sourceRange:_0xa3ac51,targetRange:_0x40c1ee}=_0x13266a[_0x22ec85(0x3eb)],_0x2f5428={..._0x1809cd};if(_0xa3ac51['endRow']<_0x2f5428[_0x22ec85(0x357)]&&_0x40c1ee['startRow']>_0x2f5428[_0x22ec85(0x3aa)])_0x2f5428[_0x22ec85(0x357)]-=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,_0x2f5428[_0x22ec85(0x3aa)]-=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,isMergeCell(_0x2f5428)&&_0xdde9a1[_0x22ec85(0x380)](_0x2f5428);else{if(_0xa3ac51[_0x22ec85(0x357)]>_0x2f5428['endRow']&&_0x40c1ee[_0x22ec85(0x3aa)]<_0x2f5428[_0x22ec85(0x357)])_0x2f5428[_0x22ec85(0x357)]+=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,_0x2f5428[_0x22ec85(0x3aa)]+=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51['startRow']+0x1,isMergeCell(_0x2f5428)&&_0xdde9a1[_0x22ec85(0x380)](_0x2f5428);else{if(_univerjs_core[_0x22ec85(0x330)][_0x22ec85(0x3b4)](_0x2f5428,_0xa3ac51)||_univerjs_core['Rectangle'][_0x22ec85(0x3b4)](_0x2f5428,_0x40c1ee)){}else _0xdde9a1[_0x22ec85(0x380)](_0x2f5428);}}return _0xdde9a1;},[]);_0x58b6dc[_0x504c07(0x3eb)][_0x504c07(0x3a3)]=_0x5bddf6;if(_0x58b6dc['params'][_0x504c07(0x3a3)][_0x504c07(0x29d)]===0x0)_0x58b6dc['id']=_univerjs_sheets[_0x504c07(0x305)]['id'];return{'m1Prime':_0x58b6dc,'m2Prime':_0x3ee815};}},removeWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x25a69b,_0x3a3c93){const _0x49249a=_0xfc9601,_0x570912=_univerjs_core[_0x49249a(0x1c3)]['deepClone'](_0x25a69b),_0x3fbb16=_univerjs_core['Tools'][_0x49249a(0x1cf)](_0x3a3c93);if(_0x25a69b['params']['unitId']!==_0x3a3c93[_0x49249a(0x3eb)][_0x49249a(0x1d0)]||_0x25a69b['params'][_0x49249a(0x25e)]!==_0x3a3c93[_0x49249a(0x3eb)][_0x49249a(0x25e)])return{'m1Prime':_0x570912,'m2Prime':_0x3fbb16};const _0x3c4245=_0x570912[_0x49249a(0x3eb)][_0x49249a(0x3a3)][_0x49249a(0x2a5)]((_0x75c996,_0x2dd507)=>{const _0xb24fb8=_0x49249a,_0x3f453b=_0x3fbb16[_0xb24fb8(0x3eb)][_0xb24fb8(0x29a)],_0x44de86=_0x3f453b[_0xb24fb8(0x22a)]-_0x3f453b['startColumn']+0x1;let _0x4d2146={..._0x2dd507};if(_0x3f453b[_0xb24fb8(0x245)]>_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146={..._0x2dd507};else{if(_0x3f453b[_0xb24fb8(0x245)]>=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x245)]<=_0x2dd507[_0xb24fb8(0x22a)]&&_0x3f453b['endColumn']>_0x2dd507['endColumn']){_0x4d2146[_0xb24fb8(0x22a)]=_0x3f453b[_0xb24fb8(0x245)]-0x1;if(_0x3f453b['startColumn']===_0x2dd507[_0xb24fb8(0x245)])_0x4d2146=null;}else{if(_0x3f453b['startColumn']>_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]<_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146['endColumn']=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86;else{if(_0x3f453b['startColumn']<_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]>=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]<=_0x2dd507['endColumn']){_0x4d2146[_0xb24fb8(0x245)]=_0x3f453b[_0xb24fb8(0x245)],_0x4d2146[_0xb24fb8(0x22a)]=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86;if(_0x3f453b[_0xb24fb8(0x22a)]===_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146=null;}else{if(_0x3f453b[_0xb24fb8(0x245)]<=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b['endColumn']>=_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146=null;else _0x3f453b['endColumn']<_0x2dd507[_0xb24fb8(0x245)]&&(_0x4d2146[_0xb24fb8(0x245)]=_0x2dd507[_0xb24fb8(0x245)]-_0x44de86,_0x4d2146[_0xb24fb8(0x22a)]=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86);}}}}if(_0x4d2146&&!(_0x4d2146[_0xb24fb8(0x357)]===_0x4d2146['endRow']&&_0x4d2146['startColumn']===_0x4d2146[_0xb24fb8(0x22a)]))return _0x75c996[_0xb24fb8(0x380)](_0x4d2146),_0x75c996;else return _0x75c996;},[]);_0x570912[_0x49249a(0x3eb)]['ranges']=_0x3c4245;if(_0x570912[_0x49249a(0x3eb)][_0x49249a(0x3a3)][_0x49249a(0x29d)]===0x0)_0x570912['id']=_univerjs_sheets[_0x49249a(0x305)]['id'];return{'m1Prime':_0x570912,'m2Prime':_0x3fbb16};}},removeWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x5e5ce1,_0x42547e){const _0x2f346e=_0xfc9601,_0x5890b6=_univerjs_core[_0x2f346e(0x1c3)]['deepClone'](_0x5e5ce1),_0x20e1a2=_univerjs_core[_0x2f346e(0x1c3)][_0x2f346e(0x1cf)](_0x42547e);if(_0x5e5ce1['params']['unitId']!==_0x42547e[_0x2f346e(0x3eb)][_0x2f346e(0x1d0)]||_0x5e5ce1[_0x2f346e(0x3eb)][_0x2f346e(0x25e)]!==_0x42547e['params'][_0x2f346e(0x25e)])return{'m1Prime':_0x5890b6,'m2Prime':_0x20e1a2};const _0x3e0165=_0x5890b6['params']['ranges'][_0x2f346e(0x2a5)]((_0x2ff714,_0x3e709f)=>{const _0xb59321=_0x2f346e,_0x2f0905=_0x20e1a2[_0xb59321(0x3eb)][_0xb59321(0x29a)],_0x475885=_0x2f0905[_0xb59321(0x3aa)]-_0x2f0905[_0xb59321(0x357)]+0x1;let _0x4ebc1d={..._0x3e709f};if(_0x2f0905[_0xb59321(0x357)]>_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d={..._0x3e709f};else{if(_0x2f0905[_0xb59321(0x357)]>=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x357)]<=_0x3e709f[_0xb59321(0x3aa)]&&_0x2f0905[_0xb59321(0x3aa)]>_0x3e709f['endRow']){_0x4ebc1d[_0xb59321(0x3aa)]=_0x2f0905[_0xb59321(0x357)]-0x1;if(_0x2f0905['startRow']===_0x3e709f[_0xb59321(0x357)])_0x4ebc1d=null;}else{if(_0x2f0905[_0xb59321(0x357)]>_0x3e709f['startRow']&&_0x2f0905[_0xb59321(0x3aa)]<_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d['endRow']=_0x3e709f['endRow']-_0x475885;else{if(_0x2f0905[_0xb59321(0x357)]<_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x3aa)]>=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x3aa)]<=_0x3e709f[_0xb59321(0x3aa)]){_0x4ebc1d[_0xb59321(0x357)]=_0x2f0905[_0xb59321(0x357)],_0x4ebc1d[_0xb59321(0x3aa)]=_0x3e709f[_0xb59321(0x3aa)]-_0x475885;if(_0x2f0905['endRow']===_0x3e709f['endRow'])_0x4ebc1d=null;}else{if(_0x2f0905[_0xb59321(0x357)]<=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905['endRow']>=_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d=null;else _0x2f0905[_0xb59321(0x3aa)]<_0x3e709f[_0xb59321(0x357)]&&(_0x4ebc1d[_0xb59321(0x357)]=_0x3e709f[_0xb59321(0x357)]-_0x475885,_0x4ebc1d[_0xb59321(0x3aa)]=_0x3e709f[_0xb59321(0x3aa)]-_0x475885);}}}}if(_0x4ebc1d&&!(_0x4ebc1d[_0xb59321(0x357)]===_0x4ebc1d['endRow']&&_0x4ebc1d['startColumn']===_0x4ebc1d[_0xb59321(0x22a)]))return _0x2ff714[_0xb59321(0x380)](_0x4ebc1d),_0x2ff714;else return _0x2ff714;},[]);_0x5890b6[_0x2f346e(0x3eb)][_0x2f346e(0x3a3)]=_0x3e0165;if(_0x5890b6[_0x2f346e(0x3eb)][_0x2f346e(0x3a3)][_0x2f346e(0x29d)]===0x0)_0x5890b6['id']=_univerjs_sheets[_0x2f346e(0x305)]['id'];return{'m1Prime':_0x5890b6,'m2Prime':_0x20e1a2};}},removeWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x2f812e,_0x18e09b){const _0x454e6f=_0xfc9601,_0xb0e169={'m1Prime':[],'m2Prime':[]};if(_0x2f812e[_0x454e6f(0x3eb)][_0x454e6f(0x1d0)]!==_0x18e09b[_0x454e6f(0x3eb)][_0x454e6f(0x1d0)]||_0x2f812e['params'][_0x454e6f(0x25e)]!==_0x18e09b[_0x454e6f(0x3eb)][_0x454e6f(0x25e)])return _0xb0e169;const _0x43451f=_univerjs_core[_0x454e6f(0x1c3)][_0x454e6f(0x1cf)](_0x18e09b),_0x27c985=_0x43451f[_0x454e6f(0x3eb)]['selections'],_0x3a66dc=_0x27c985[_0x27c985[_0x454e6f(0x29d)]-0x1][_0x454e6f(0x40d)];return _0x2f812e['params']['ranges'][_0x454e6f(0x302)](_0x33bb13=>{const _0x62bbbc=_0x454e6f;_0x3a66dc&&_univerjs_core[_0x62bbbc(0x330)][_0x62bbbc(0x3b4)](_0x33bb13,_0x3a66dc)&&(_0x3a66dc[_0x62bbbc(0x373)]=![],_0x3a66dc[_0x62bbbc(0x201)]=![],_0x3a66dc[_0x62bbbc(0x357)]=_0x33bb13['startRow'],_0x3a66dc['startColumn']=_0x33bb13[_0x62bbbc(0x245)],_0x3a66dc[_0x62bbbc(0x3aa)]=_0x33bb13['startRow'],_0x3a66dc[_0x62bbbc(0x22a)]=_0x33bb13['startColumn'],_0x3a66dc['actualColumn']=_0x33bb13['startColumn'],_0x3a66dc[_0x62bbbc(0x418)]=_0x33bb13[_0x62bbbc(0x357)]);}),_0xb0e169[_0x454e6f(0x3d9)][_0x454e6f(0x380)](_0x43451f),_0xb0e169;}},ReorderRangeUndoMutationFactory=_0x354541=>{const _0x31daed=_0xfc9601,{order:_0x19d392}=_0x354541,_0x1a2085={};return Object[_0x31daed(0x38e)](_0x19d392)[_0x31daed(0x302)](_0x5e288e=>{_0x1a2085[_0x19d392[Number(_0x5e288e)]]=Number(_0x5e288e);}),{..._0x354541,'order':_0x1a2085};},mergeOrder=(_0x273ba4,_0x34da26)=>{const _0x4483bf=_0xfc9601,_0x7c4dfc={};return Array[_0x4483bf(0x3a4)](new Set(Object[_0x4483bf(0x38e)](_0x273ba4)[_0x4483bf(0x2da)](Object[_0x4483bf(0x38e)](_0x34da26))[_0x4483bf(0x3b3)](Number)))[_0x4483bf(0x302)](_0x2411fb=>{let _0x4e9617;if(_0x2411fb in _0x34da26){_0x4e9617=_0x34da26[_0x2411fb];if(_0x4e9617 in _0x273ba4)_0x4e9617=_0x273ba4[_0x4e9617];}else _0x4e9617=_0x273ba4[_0x2411fb];_0x7c4dfc[_0x2411fb]=_0x4e9617;}),_0x7c4dfc;},reorderRangeMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x31d808,_0x19b736){const _0x3e6072=_0xfc9601,_0x3e7395={'m1Prime':_0x31d808,'m2Prime':_0x19b736};if(_0x31d808[_0x3e6072(0x3eb)]['unitId']!==_0x19b736[_0x3e6072(0x3eb)][_0x3e6072(0x1d0)])return _0x3e7395;const {range:_0x25c4c7}=_0x31d808[_0x3e6072(0x3eb)],{range:_0xafc116}=_0x19b736[_0x3e6072(0x3eb)];if(_0xafc116[_0x3e6072(0x245)]===_0x25c4c7[_0x3e6072(0x245)]&&_0xafc116['endColumn']===_0x25c4c7[_0x3e6072(0x22a)]&&_0xafc116[_0x3e6072(0x357)]<=_0x25c4c7[_0x3e6072(0x357)]&&_0xafc116['endRow']>=_0x25c4c7[_0x3e6072(0x3aa)]){const _0x2798fa=ReorderRangeUndoMutationFactory(_0x31d808['params'])[_0x3e6072(0x2d8)];return{'m1Prime':[],'m2Prime':{'id':_univerjs_sheets['ReorderRangeMutation']['id'],'params':{..._0x19b736['params'],'range':_0xafc116,'order':mergeOrder(_0x2798fa,_0x19b736[_0x3e6072(0x3eb)][_0x3e6072(0x2d8)])}}};}if(_univerjs_core[_0x3e6072(0x330)][_0x3e6072(0x3b4)](_0x25c4c7,_0xafc116))return{'error':new Error(_0x3e6072(0x224))};return _0x3e7395;}},RevertRevisionMutationWithOthers={'m1':RevertRevisionMutation['id'],'m2':_0xfc9601(0x3fb),'handler'(_0x44fcde,_0x2a1a65){const _0x3bf1c3=_0xfc9601;return{'error':new Error(_0x3bf1c3(0x271))};}},OthersWithRevertRevision={'m1':_0xfc9601(0x3fb),'m2':RevertRevisionMutation['id'],'handler'(_0x5b2c8b,_0x8dc052){const _0x3f1397=_0xfc9601;if(_0x5b2c8b[_0x3f1397(0x3eb)][_0x3f1397(0x1d0)]===_0x8dc052['params'][_0x3f1397(0x1d0)])return{'m1Prime':[],'m2Prime':_0x8dc052};return{'m1Prime':_0x5b2c8b,'m2Prime':_0x8dc052};}},setColDataMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x348)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x56fefb,_0x4847a1){const _0x3e5cda=_0xfc9601,_0x2875f7={'m1Prime':_0x56fefb,'m2Prime':_0x4847a1};if(_0x56fefb['params'][_0x3e5cda(0x1d0)]!==_0x4847a1[_0x3e5cda(0x3eb)][_0x3e5cda(0x1d0)]||_0x56fefb[_0x3e5cda(0x3eb)][_0x3e5cda(0x25e)]!==_0x4847a1[_0x3e5cda(0x3eb)]['subUnitId'])return _0x2875f7;const _0x128bfb=_0x56fefb[_0x3e5cda(0x3eb)][_0x3e5cda(0x408)],_0xaa4cd3=_0x4847a1[_0x3e5cda(0x3eb)]['columnData'],_0x4f593f={},_0x3c0a1b=_univerjs_core[_0x3e5cda(0x1c3)][_0x3e5cda(0x1cf)](_0x56fefb),_0x183edf=new Set([...Object[_0x3e5cda(0x38e)](_0x128bfb)[_0x3e5cda(0x3b3)](Number),...Object[_0x3e5cda(0x38e)](_0xaa4cd3)[_0x3e5cda(0x3b3)](Number)]);for(const _0x3bb867 of _0x183edf){const _0xc6be53=_0x128bfb[_0x3bb867],_0x4be574=_0xaa4cd3[_0x3bb867];if(_0xc6be53&&_0x4be574)_0x4f593f[_0x3bb867]={..._0xc6be53,..._0x4be574};else{if(_0xc6be53)_0x4f593f[_0x3bb867]=_0xc6be53;else{if(_0x4be574)_0x4f593f[_0x3bb867]=_0x4be574;}}}return _0x3c0a1b['params'][_0x3e5cda(0x408)]=_0x4f593f,{'m1Prime':_0x3c0a1b,'m2Prime':_0x4847a1};}},setConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler'(_0x338611,_0x3752be){const _0x45736d=_0xfc9601;if(_0x338611[_0x45736d(0x3eb)][_0x45736d(0x1d0)]!==_0x3752be[_0x45736d(0x3eb)]['unitId']||_0x338611[_0x45736d(0x3eb)][_0x45736d(0x25e)]!==_0x3752be[_0x45736d(0x3eb)][_0x45736d(0x25e)])return{'m1Prime':_0x338611,'m2Prime':_0x3752be};if((_0x338611[_0x45736d(0x3eb)][_0x45736d(0x24d)]||_0x338611[_0x45736d(0x3eb)]['rule']['cfId'])!==(_0x3752be[_0x45736d(0x3eb)][_0x45736d(0x24d)]||_0x3752be[_0x45736d(0x3eb)]['rule'][_0x45736d(0x24d)]))return{'m1Prime':_0x338611,'m2Prime':_0x3752be};return{'m1Prime':[],'m2Prime':_univerjs_core[_0x45736d(0x1c3)]['deepClone'](_0x3752be)};}};function drawingObjectsIntersect(_0x288d3e,_0x526901){const _0x498147=_0xfc9601,_0x37c01b=_0x288d3e[_0x498147(0x2a5)]((_0x1ed7e8,_0xd83a24)=>{const _0x200b4f=_0x498147;return _0x1ed7e8[_0x200b4f(0x209)](_0xd83a24[_0x200b4f(0x2d7)],!![]),_0x1ed7e8;},new Map());return _0x526901['some'](_0x4a0526=>_0x37c01b[_0x498147(0x3a1)](_0x4a0526[_0x498147(0x2d7)])!==void 0x0);}function drawingOrderObjectsIntersect(_0x18673d,_0x2ddd9a){const _0x49c2cb=_0xfc9601,_0x1bea71=_0x18673d[_0x49c2cb(0x1bf)];return _0x2ddd9a[_0x49c2cb(0x1bf)][_0x49c2cb(0x3ad)](_0x3da18b=>_0x1bea71[_0x49c2cb(0x3e1)](_0x3da18b)!==-0x1);}const {UPDATE,REMOVE,ARRANGE}=_univerjs_sheets_drawing[_0xfc9601(0x34b)],setDrawingApplyMutationWithSelf={'m1':_univerjs_sheets_drawing[_0xfc9601(0x1d5)]['id'],'m2':_univerjs_sheets_drawing[_0xfc9601(0x1d5)]['id'],'handler'(_0x2dae3c,_0x361edd){const _0x1bccca=_0xfc9601,_0x1e9d76=_0x2dae3c[_0x1bccca(0x3eb)],_0x1d5335=_0x361edd[_0x1bccca(0x3eb)];if(_0x1e9d76['unitId']!==_0x1d5335[_0x1bccca(0x1d0)]||_0x1e9d76[_0x1bccca(0x25e)]!==_0x1d5335[_0x1bccca(0x25e)])return{'m1Prime':_0x2dae3c,'m2Prime':_0x361edd};const _0x39ab4b=_0x1e9d76['type'],_0x4eacdd=_0x1d5335[_0x1bccca(0x266)];if(_0x39ab4b===REMOVE&&_0x4eacdd===UPDATE){if(drawingObjectsIntersect(_0x1e9d76[_0x1bccca(0x3ea)],_0x1d5335[_0x1bccca(0x3ea)]))return{'m1Prime':_univerjs_core['Tools'][_0x1bccca(0x1cf)](_0x2dae3c),'m2Prime':[]};}if(_0x39ab4b===ARRANGE&&_0x4eacdd===ARRANGE){if(drawingOrderObjectsIntersect(_0x1e9d76[_0x1bccca(0x3ea)],_0x1d5335['objects'])){const _0x58f261=_univerjs_core[_0x1bccca(0x1c3)]['deepClone'](_0x2dae3c),_0x4ad175=_univerjs_core[_0x1bccca(0x1c3)][_0x1bccca(0x1cf)](_0x361edd);return{'m1Prime':{..._0x58f261,'params':{..._0x58f261[_0x1bccca(0x3eb)],'op':_univerjs_core[_0x1bccca(0x1e2)]['type'][_0x1bccca(0x295)](_0x58f261[_0x1bccca(0x3eb)]['op'],_0x4ad175[_0x1bccca(0x3eb)]['op'],'left')}},'m2Prime':{..._0x4ad175,'params':{..._0x4ad175[_0x1bccca(0x3eb)],'op':_univerjs_core[_0x1bccca(0x1e2)][_0x1bccca(0x266)][_0x1bccca(0x295)](_0x4ad175[_0x1bccca(0x3eb)]['op'],_0x58f261[_0x1bccca(0x3eb)]['op'],_0x1bccca(0x34c))}}};}}return{'m1Prime':_0x2dae3c,'m2Prime':_0x361edd};}},setFrozenMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler'(_0x4faf3e,_0x230c7f){const _0x2a15f1=_0xfc9601;if(_0x4faf3e[_0x2a15f1(0x3eb)][_0x2a15f1(0x1d0)]!==_0x230c7f[_0x2a15f1(0x3eb)][_0x2a15f1(0x1d0)]||_0x4faf3e[_0x2a15f1(0x3eb)][_0x2a15f1(0x25e)]!==_0x230c7f[_0x2a15f1(0x3eb)][_0x2a15f1(0x25e)])return{'m1Prime':_0x4faf3e,'m2Prime':_0x230c7f};return{'m1Prime':[],'m2Prime':_0x230c7f};}},setNumfmtMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x397)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x18c9a4,_0x30d4a9){const _0x5ab05f=_0xfc9601;if(_0x18c9a4['params'][_0x5ab05f(0x1d0)]!==_0x30d4a9[_0x5ab05f(0x3eb)]['unitId']||_0x18c9a4[_0x5ab05f(0x3eb)][_0x5ab05f(0x25e)]!==_0x30d4a9['params'][_0x5ab05f(0x25e)])return{'m1Prime':_0x18c9a4,'m2Prime':_0x30d4a9};const _0x520b9e=_univerjs_core[_0x5ab05f(0x1c3)][_0x5ab05f(0x1cf)](_0x18c9a4),_0x15f06b=_univerjs_core[_0x5ab05f(0x1c3)][_0x5ab05f(0x1cf)](_0x30d4a9),_0x4de83b=_0x520b9e[_0x5ab05f(0x3eb)][_0x5ab05f(0x375)],_0x3a047b=_0x15f06b['params']['ranges'];for(const _0x4df3dd in _0x4de83b){const _0x47b398=_0x4de83b[_0x4df3dd][_0x5ab05f(0x3a3)],_0x595c88=[];_0x47b398[_0x5ab05f(0x302)](_0x334b65=>{const _0x89d018=_0x5ab05f,_0x5be732=RangeSubtractRanges(_0x334b65,_0x3a047b);if(_0x5be732['length']>0x0)_0x595c88[_0x89d018(0x380)](..._0x5be732);}),_0x4de83b[_0x4df3dd][_0x5ab05f(0x3a3)]=_0x595c88;}return{'m1Prime':_0x520b9e,'m2Prime':_0x15f06b};}},setNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x397)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x247d02,_0x3fb7c1){const _0x38b1bd=_0xfc9601;if(_0x247d02['params'][_0x38b1bd(0x1d0)]!==_0x3fb7c1[_0x38b1bd(0x3eb)][_0x38b1bd(0x1d0)]||_0x247d02['params'][_0x38b1bd(0x25e)]!==_0x3fb7c1[_0x38b1bd(0x3eb)][_0x38b1bd(0x25e)])return{'m1Prime':_0x247d02,'m2Prime':_0x3fb7c1};const _0x4ffc7c=_univerjs_core[_0x38b1bd(0x1c3)][_0x38b1bd(0x1cf)](_0x247d02),_0xe0eddc=_univerjs_core[_0x38b1bd(0x1c3)][_0x38b1bd(0x1cf)](_0x3fb7c1),_0xb1707e=_0x4ffc7c[_0x38b1bd(0x3eb)][_0x38b1bd(0x375)],_0x26c750=Object['values'](_0xe0eddc[_0x38b1bd(0x3eb)]['values'])[_0x38b1bd(0x3b3)](_0x27b642=>_0x27b642[_0x38b1bd(0x3a3)])['flat']();for(const _0x450391 in _0xb1707e){const _0x17e7a3=_0xb1707e[_0x450391][_0x38b1bd(0x3a3)],_0xbd6e39=[];_0x17e7a3[_0x38b1bd(0x302)](_0x237abe=>{const _0x102a9e=_0x38b1bd,_0x2a2f89=RangeSubtractRanges(_0x237abe,_0x26c750);if(_0x2a2f89[_0x102a9e(0x29d)]>0x0)_0xbd6e39[_0x102a9e(0x380)](..._0x2a2f89);}),_0xb1707e[_0x450391]['ranges']=_0xbd6e39;}return{'m1Prime':_0x4ffc7c,'m2Prime':_0xe0eddc};}},setRangeProtectionWithAddComment={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x34009f,_0x3726e9)=>{const _0x5cdfd1=_0xfc9601,_0x341eaf={'m1Prime':_0x34009f,'m2Prime':_0x3726e9};if(_0x34009f[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x1d0)]!==_0x3726e9[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x1d0)]||_0x34009f[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x25e)]!==_0x3726e9[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x25e)])return _0x341eaf;return{'error':new Error(_0x5cdfd1(0x402))};}},setRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler':(_0x702dad,_0xd49c86)=>{const _0x58b9ba=_0xfc9601,_0x348b2e={'m1Prime':_0x702dad,'m2Prime':_0xd49c86};if(_0x702dad['params']['unitId']!==_0xd49c86[_0x58b9ba(0x3eb)]['unitId']||_0x702dad[_0x58b9ba(0x3eb)][_0x58b9ba(0x25e)]!==_0xd49c86[_0x58b9ba(0x3eb)][_0x58b9ba(0x25e)])return _0x348b2e;const _0x5b5d03=_0x702dad[_0x58b9ba(0x3eb)][_0x58b9ba(0x331)]['ranges'],_0x5975dd=_0xd49c86[_0x58b9ba(0x3eb)][_0x58b9ba(0x331)]['ranges'];if(_0x5b5d03[_0x58b9ba(0x3ad)](_0x49d785=>_0x5975dd['some'](_0x539c72=>_univerjs_core[_0x58b9ba(0x330)][_0x58b9ba(0x3b4)](_0x49d785,_0x539c72))))return{'error':new Error(_0x58b9ba(0x2e9))};return _0x348b2e;}},setRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler':(_0x29aee0,_0xa5bcec)=>{const _0x5c55ac=_0xfc9601,_0x4a2cab={'m1Prime':_0x29aee0,'m2Prime':_0xa5bcec};if(_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x1d0)]!==_0xa5bcec[_0x5c55ac(0x3eb)][_0x5c55ac(0x1d0)]||_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x25e)]!==_0xa5bcec[_0x5c55ac(0x3eb)][_0x5c55ac(0x25e)])return _0x4a2cab;const _0x511dcd=_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x331)][_0x5c55ac(0x3a3)],_0x53efc5=_0xa5bcec[_0x5c55ac(0x3eb)]['ranges'];if(_0x511dcd[_0x5c55ac(0x3ad)](_0x8473ee=>_0x53efc5[_0x5c55ac(0x3ad)](_0x7117d9=>_univerjs_core[_0x5c55ac(0x330)][_0x5c55ac(0x3b4)](_0x8473ee,_0x7117d9))))return{'error':new Error(_0x5c55ac(0x323))};return _0x4a2cab;}},setRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'handler':(_0xf9cb05,_0x4b174d)=>{const _0x30748b=_0xfc9601,_0x561a91={'m1Prime':_0xf9cb05,'m2Prime':_0x4b174d};if(_0xf9cb05[_0x30748b(0x3eb)][_0x30748b(0x1d0)]!==_0x4b174d['params'][_0x30748b(0x1d0)]||_0xf9cb05[_0x30748b(0x3eb)]['subUnitId']!==_0x4b174d[_0x30748b(0x3eb)][_0x30748b(0x331)][_0x30748b(0x25e)])return _0x561a91;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection')};}},setRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x2d4983,_0x5a0d96)=>{const _0x18c0e8=_0xfc9601,_0x708780={'m1Prime':_0x2d4983,'m2Prime':_0x5a0d96};if(_0x2d4983[_0x18c0e8(0x3eb)][_0x18c0e8(0x1d0)]!==_0x5a0d96[_0x18c0e8(0x3eb)][_0x18c0e8(0x1d0)]||_0x2d4983[_0x18c0e8(0x3eb)][_0x18c0e8(0x25e)]!==_0x5a0d96['params'][_0x18c0e8(0x25e)])return _0x708780;return{'error':new Error(_0x18c0e8(0x27d))};}},setRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x2b1b5a,_0x2d2caa)=>{const _0x45df4f=_0xfc9601,_0x296801={'m1Prime':_0x2b1b5a,'m2Prime':_0x2d2caa};if(_0x2b1b5a[_0x45df4f(0x3eb)][_0x45df4f(0x1d0)]!==_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x1d0)]||_0x2b1b5a['params'][_0x45df4f(0x25e)]!==_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x25e)])return _0x296801;const _0x39b90c=_0x2b1b5a['params'][_0x45df4f(0x331)]['ranges'],_0x442f67=_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x29a)];if(_0x39b90c[_0x45df4f(0x3ad)](_0x2c8974=>_univerjs_core['Rectangle'][_0x45df4f(0x3b4)](_0x2c8974,_0x442f67)))return{'error':new Error(_0x45df4f(0x3d6))};return _0x296801;}},setRangeProtectionWithInsertRow={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler':(_0x155c00,_0x503ab8)=>{const _0x4854b4=_0xfc9601,_0x1d94b6={'m1Prime':_0x155c00,'m2Prime':_0x503ab8};if(_0x155c00[_0x4854b4(0x3eb)][_0x4854b4(0x1d0)]!==_0x503ab8[_0x4854b4(0x3eb)][_0x4854b4(0x1d0)]||_0x155c00[_0x4854b4(0x3eb)][_0x4854b4(0x25e)]!==_0x503ab8['params']['subUnitId'])return _0x1d94b6;const _0x1fc8e2=_0x155c00['params'][_0x4854b4(0x331)][_0x4854b4(0x3a3)],_0x59cee9=_0x503ab8[_0x4854b4(0x3eb)]['range'];if(_0x1fc8e2[_0x4854b4(0x3ad)](_0x1bc799=>_univerjs_core[_0x4854b4(0x330)][_0x4854b4(0x3b4)](_0x1bc799,_0x59cee9)))return{'error':new Error(_0x4854b4(0x2bf))};return _0x1d94b6;}},setRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler':(_0x4d2fa1,_0x2b0458)=>{const _0x3bbbbe=_0xfc9601,_0x329f97={'m1Prime':_0x4d2fa1,'m2Prime':_0x2b0458};if(_0x4d2fa1[_0x3bbbbe(0x3eb)]['unitId']!==_0x2b0458['params']['unitId']||_0x4d2fa1[_0x3bbbbe(0x3eb)]['subUnitId']!==_0x2b0458[_0x3bbbbe(0x3eb)][_0x3bbbbe(0x25e)])return _0x329f97;const _0x5fac10=_0x4d2fa1[_0x3bbbbe(0x3eb)]['rule'][_0x3bbbbe(0x3a3)],_0x2e206d=[_0x2b0458[_0x3bbbbe(0x3eb)][_0x3bbbbe(0x202)],_0x2b0458[_0x3bbbbe(0x3eb)]['targetRange']];if(_0x5fac10[_0x3bbbbe(0x3ad)](_0x53d570=>_0x2e206d['some'](_0x32d834=>_univerjs_core[_0x3bbbbe(0x330)][_0x3bbbbe(0x3b4)](_0x53d570,_0x32d834))))return{'error':new Error(_0x3bbbbe(0x378))};return _0x329f97;}},setRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x560a98,_0x5df139)=>{const _0x4d04b5=_0xfc9601,_0x10a659={'m1Prime':_0x560a98,'m2Prime':_0x5df139};if(_0x560a98['params'][_0x4d04b5(0x1d0)]!==_0x5df139['params'][_0x4d04b5(0x1d0)]||_0x560a98['params'][_0x4d04b5(0x25e)]!==_0x5df139[_0x4d04b5(0x3eb)][_0x4d04b5(0x3a4)][_0x4d04b5(0x25e)])return _0x10a659;const _0x49047f=_0x560a98[_0x4d04b5(0x3eb)]['rule'][_0x4d04b5(0x3a3)],_0x18b80e=[new _univerjs_core['ObjectMatrix'](_0x5df139[_0x4d04b5(0x3eb)]['from']['value'])['getDataRange'](),new _univerjs_core[(_0x4d04b5(0x3c2))](_0x5df139[_0x4d04b5(0x3eb)]['to'][_0x4d04b5(0x3e6)])[_0x4d04b5(0x3d1)]()];if(_0x49047f['some'](_0x42d0c6=>_0x18b80e[_0x4d04b5(0x3ad)](_0x5d3e50=>_univerjs_core[_0x4d04b5(0x330)]['intersects'](_0x42d0c6,_0x5d3e50))))return{'error':new Error(_0x4d04b5(0x2f2))};return _0x10a659;}},setRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler':(_0x529d58,_0x11fc8d)=>{const _0x1cbac7=_0xfc9601,_0x223326={'m1Prime':_0x529d58,'m2Prime':_0x11fc8d};if(_0x529d58[_0x1cbac7(0x3eb)][_0x1cbac7(0x1d0)]!==_0x11fc8d[_0x1cbac7(0x3eb)][_0x1cbac7(0x1d0)]||_0x529d58[_0x1cbac7(0x3eb)]['subUnitId']!==_0x11fc8d[_0x1cbac7(0x3eb)][_0x1cbac7(0x25e)])return _0x223326;const _0x5c6993=_0x529d58[_0x1cbac7(0x3eb)][_0x1cbac7(0x331)][_0x1cbac7(0x3a3)],_0x3c5a24=[_0x11fc8d[_0x1cbac7(0x3eb)]['sourceRange'],_0x11fc8d[_0x1cbac7(0x3eb)]['targetRange']];if(_0x5c6993[_0x1cbac7(0x3ad)](_0xd0b677=>_0x3c5a24[_0x1cbac7(0x3ad)](_0x436e96=>_univerjs_core[_0x1cbac7(0x330)][_0x1cbac7(0x3b4)](_0xd0b677,_0x436e96))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row')};return _0x223326;}},setRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler':(_0x45411c,_0x75629e)=>{const _0x481ef4=_0xfc9601,_0x18c875={'m1Prime':_0x45411c,'m2Prime':_0x75629e};if(_0x45411c[_0x481ef4(0x3eb)][_0x481ef4(0x1d0)]!==_0x75629e[_0x481ef4(0x3eb)][_0x481ef4(0x1d0)]||_0x45411c[_0x481ef4(0x3eb)][_0x481ef4(0x25e)]!==_0x75629e['params'][_0x481ef4(0x25e)])return _0x18c875;const _0x462df0=_0x45411c['params'][_0x481ef4(0x331)][_0x481ef4(0x3a3)],_0xf76ac4=_0x75629e[_0x481ef4(0x3eb)][_0x481ef4(0x29a)];if(_0x462df0[_0x481ef4(0x3ad)](_0xeea0f2=>_univerjs_core[_0x481ef4(0x330)][_0x481ef4(0x3b4)](_0xeea0f2,_0xf76ac4)))return{'error':new Error(_0x481ef4(0x1fb))};return _0x18c875;}},setRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x2b4a10,_0x352cd1)=>{const _0x5d47b2=_0xfc9601,_0x1a97dc={'m1Prime':_0x2b4a10,'m2Prime':_0x352cd1};if(_0x2b4a10[_0x5d47b2(0x3eb)][_0x5d47b2(0x1d0)]!==_0x352cd1[_0x5d47b2(0x3eb)][_0x5d47b2(0x1d0)]||_0x2b4a10[_0x5d47b2(0x3eb)][_0x5d47b2(0x25e)]!==_0x352cd1[_0x5d47b2(0x3eb)][_0x5d47b2(0x25e)])return _0x1a97dc;return{'error':new Error(_0x5d47b2(0x1ce))};}},setRangeProtectionWithRemoveRow={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler':(_0xe6e7d1,_0x27e43d)=>{const _0x2da0f9=_0xfc9601,_0x1f7d7e={'m1Prime':_0xe6e7d1,'m2Prime':_0x27e43d};if(_0xe6e7d1['params'][_0x2da0f9(0x1d0)]!==_0x27e43d[_0x2da0f9(0x3eb)][_0x2da0f9(0x1d0)]||_0xe6e7d1['params'][_0x2da0f9(0x25e)]!==_0x27e43d[_0x2da0f9(0x3eb)][_0x2da0f9(0x25e)])return _0x1f7d7e;const _0x6c5250=_0xe6e7d1['params']['rule'][_0x2da0f9(0x3a3)],_0x35555a=_0x27e43d['params'][_0x2da0f9(0x29a)];if(_0x6c5250[_0x2da0f9(0x3ad)](_0x4235c1=>_univerjs_core[_0x2da0f9(0x330)]['intersects'](_0x4235c1,_0x35555a)))return{'error':new Error(_0x2da0f9(0x339))};return _0x1f7d7e;}},setRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'handler':(_0x30437c,_0x16f723)=>{const _0x53edde=_0xfc9601,_0x232899={'m1Prime':_0x30437c,'m2Prime':_0x16f723};if(_0x30437c[_0x53edde(0x3eb)]['unitId']!==_0x16f723['params']['unitId']||_0x30437c[_0x53edde(0x3eb)][_0x53edde(0x25e)]!==_0x16f723['params'][_0x53edde(0x25e)])return _0x232899;return{'error':new Error(_0x53edde(0x29f))};}},setRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler':(_0x1f9b13,_0x9c005e)=>{const _0x4a6636=_0xfc9601,_0x5f5aae={'m1Prime':_0x1f9b13,'m2Prime':_0x9c005e};if(_0x1f9b13['params'][_0x4a6636(0x1d0)]!==_0x9c005e['params'][_0x4a6636(0x1d0)]||_0x1f9b13[_0x4a6636(0x3eb)][_0x4a6636(0x25e)]!==_0x9c005e['params'][_0x4a6636(0x25e)])return _0x5f5aae;const _0xadd0d8=_0x1f9b13[_0x4a6636(0x3eb)]['rule'][_0x4a6636(0x3a3)],_0x31e1f9=_0x9c005e[_0x4a6636(0x3eb)]['ranges'];if(_0xadd0d8[_0x4a6636(0x3ad)](_0x2ceed4=>_0x31e1f9[_0x4a6636(0x3ad)](_0x12a470=>_univerjs_core['Rectangle']['intersects'](_0x2ceed4,_0x12a470))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};return _0x5f5aae;}},setRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler':(_0x2ec249,_0x13239b)=>{const _0x2c4bd5=_0xfc9601,_0xd47390={'m1Prime':_0x2ec249,'m2Prime':_0x13239b};if(_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x1d0)]!==_0x13239b[_0x2c4bd5(0x3eb)]['unitId']||_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x25e)]!==_0x13239b['params'][_0x2c4bd5(0x25e)])return _0xd47390;const _0x222e74=_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x331)][_0x2c4bd5(0x3a3)],_0x5ba652=_0x13239b[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x331)][_0x2c4bd5(0x3a3)];if(_0x222e74['some'](_0xc335cd=>_0x5ba652['some'](_0x179a63=>_univerjs_core[_0x2c4bd5(0x330)][_0x2c4bd5(0x3b4)](_0xc335cd,_0x179a63))))return{'error':new Error(_0x2c4bd5(0x2dc))};return _0xd47390;}},setRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler':(_0x48dce8,_0x5e4558)=>{const _0x39e6ef=_0xfc9601,_0x142b4a={'m1Prime':_0x48dce8,'m2Prime':_0x5e4558};if(_0x48dce8[_0x39e6ef(0x3eb)]['unitId']!==_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x1d0)]||_0x48dce8[_0x39e6ef(0x3eb)][_0x39e6ef(0x25e)]!==_0x5e4558[_0x39e6ef(0x3eb)]['subUnitId'])return _0x142b4a;const _0x1c8dd3=_0x48dce8[_0x39e6ef(0x3eb)][_0x39e6ef(0x331)][_0x39e6ef(0x3a3)],_0x4a5dfb=[{'startRow':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x357)],'endRow':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x357)],'startColumn':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x245)],'endColumn':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x245)]}];if(_0x1c8dd3['some'](_0x598eb9=>_0x4a5dfb[_0x39e6ef(0x3ad)](_0x23f015=>_univerjs_core[_0x39e6ef(0x330)][_0x39e6ef(0x3b4)](_0x598eb9,_0x23f015))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen')};return _0x142b4a;}},setRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x11ea33,_0x255f36)=>{const _0x50d66c=_0xfc9601,_0x3a90d2={'m1Prime':_0x11ea33,'m2Prime':_0x255f36};if(_0x11ea33['params']['unitId']!==_0x255f36[_0x50d66c(0x3eb)][_0x50d66c(0x1d0)]||_0x11ea33['params'][_0x50d66c(0x25e)]!==_0x255f36[_0x50d66c(0x3eb)]['subUnitId'])return _0x3a90d2;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt')};}},setRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x588da2,_0x1927f4)=>{const _0x4e4eaa=_0xfc9601,_0x53a170={'m1Prime':_0x588da2,'m2Prime':_0x1927f4};if(_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x1d0)]!==_0x1927f4[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x1d0)]||_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x25e)]!==_0x1927f4['params'][_0x4e4eaa(0x25e)])return _0x53a170;const _0x32c427=_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x331)][_0x4e4eaa(0x3a3)],_0x51da88=_0x1927f4['params'][_0x4e4eaa(0x331)][_0x4e4eaa(0x3a3)];if(_0x32c427[_0x4e4eaa(0x3ad)](_0x2fd674=>_0x51da88[_0x4e4eaa(0x3ad)](_0x174658=>_univerjs_core[_0x4e4eaa(0x330)][_0x4e4eaa(0x3b4)](_0x2fd674,_0x174658))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection')};return _0x53a170;}},setRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler':(_0x2bf1b4,_0x2bdc6a)=>{const _0x3897f0=_0xfc9601,_0x371dda={'m1Prime':_0x2bf1b4,'m2Prime':_0x2bdc6a};if(_0x2bf1b4[_0x3897f0(0x3eb)][_0x3897f0(0x1d0)]!==_0x2bdc6a[_0x3897f0(0x3eb)][_0x3897f0(0x1d0)]||_0x2bf1b4[_0x3897f0(0x3eb)]['subUnitId']!==_0x2bdc6a['params'][_0x3897f0(0x25e)])return _0x371dda;const _0x4c59a5=_0x2bf1b4['params'][_0x3897f0(0x331)]['ranges'],_0x475b72=new _univerjs_core[(_0x3897f0(0x3c2))](_0x2bdc6a[_0x3897f0(0x3eb)][_0x3897f0(0x31f)])[_0x3897f0(0x3d1)]();if(_0x4c59a5[_0x3897f0(0x3ad)](_0x44dcd3=>_univerjs_core['Rectangle'][_0x3897f0(0x3b4)](_0x44dcd3,_0x475b72)))return{'error':new Error(_0x3897f0(0x30b))};return _0x371dda;}},setRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x10d1af,_0x44020d)=>{const _0x4083ed=_0xfc9601,_0x4e2fa8={'m1Prime':_0x10d1af,'m2Prime':_0x44020d};if(_0x10d1af[_0x4083ed(0x3eb)]['unitId']!==_0x44020d[_0x4083ed(0x3eb)]['unitId']||_0x10d1af[_0x4083ed(0x3eb)][_0x4083ed(0x25e)]!==_0x44020d['params'][_0x4083ed(0x25e)])return _0x4e2fa8;const _0x2a823c=_0x10d1af[_0x4083ed(0x3eb)][_0x4083ed(0x331)][_0x4083ed(0x3a3)],_0x43e8e6=_0x44020d[_0x4083ed(0x3eb)][_0x4083ed(0x3a3)];if(_0x2a823c[_0x4083ed(0x3ad)](_0xcd6214=>_0x43e8e6[_0x4083ed(0x3ad)](_0x489a5c=>_univerjs_core[_0x4083ed(0x330)][_0x4083ed(0x3b4)](_0xcd6214,_0x489a5c))))return{'error':new Error(_0x4083ed(0x372))};return _0x4e2fa8;}},setRangeProtectionWithUpdateComment={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x22074a,_0x564b23)=>{const _0x1e0220=_0xfc9601,_0xe479d6={'m1Prime':_0x22074a,'m2Prime':_0x564b23};if(_0x22074a['params'][_0x1e0220(0x1d0)]!==_0x564b23[_0x1e0220(0x3eb)]['unitId']||_0x22074a[_0x1e0220(0x3eb)]['subUnitId']!==_0x564b23[_0x1e0220(0x3eb)][_0x1e0220(0x25e)])return _0xe479d6;return{'error':new Error(_0x1e0220(0x2fb))};}},setRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x969ae9,_0x1b27d5)=>{const _0x410e10=_0xfc9601,_0x12b108={'m1Prime':_0x969ae9,'m2Prime':_0x1b27d5};if(_0x969ae9[_0x410e10(0x3eb)][_0x410e10(0x1d0)]!==_0x1b27d5[_0x410e10(0x3eb)][_0x410e10(0x1d0)]||_0x969ae9[_0x410e10(0x3eb)][_0x410e10(0x25e)]!==_0x1b27d5['params'][_0x410e10(0x25e)])return _0x12b108;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule')};}},setRangeValueMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x3e5293,_0x20256d){const _0x3be107=_0xfc9601,_0x2127d6=addWorksheetMergeMutationWithSetRangeValues[_0x3be107(0x3f8)](_0x20256d,_0x3e5293);if(isTransformMutationSuccess(_0x2127d6))return{'m1Prime':_0x2127d6[_0x3be107(0x3d9)],'m2Prime':_0x2127d6[_0x3be107(0x39d)]};else return _0x2127d6;}},setRangeValuesWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0x48ffc0,_0x3cfe6d){const _0x38bf84=_0xfc9601,_0x275f4b={'m1Prime':_0x48ffc0,'m2Prime':_0x3cfe6d};if(_0x48ffc0['params']['unitId']!==_0x3cfe6d[_0x38bf84(0x3eb)]['unitId'])return _0x275f4b;const _0xbf3ab8=new _univerjs_core[(_0x38bf84(0x3c2))](_0x48ffc0[_0x38bf84(0x3eb)][_0x38bf84(0x31f)])[_0x38bf84(0x3d1)](),_0x12f6a4=new _univerjs_core[(_0x38bf84(0x3c2))](_0x3cfe6d[_0x38bf84(0x3eb)][_0x38bf84(0x3a4)][_0x38bf84(0x3e6)])[_0x38bf84(0x3d1)](),_0x1092b2=new _univerjs_core[(_0x38bf84(0x3c2))](_0x3cfe6d['params']['to'][_0x38bf84(0x3e6)])[_0x38bf84(0x3d1)]();if(_0x48ffc0[_0x38bf84(0x3eb)][_0x38bf84(0x25e)]===_0x3cfe6d[_0x38bf84(0x3eb)][_0x38bf84(0x3a4)][_0x38bf84(0x25e)]&&_univerjs_core[_0x38bf84(0x330)][_0x38bf84(0x3b4)](_0xbf3ab8,_0x12f6a4)||_0x48ffc0[_0x38bf84(0x3eb)]['subUnitId']===_0x3cfe6d[_0x38bf84(0x3eb)]['to'][_0x38bf84(0x25e)]&&_univerjs_core[_0x38bf84(0x330)][_0x38bf84(0x3b4)](_0xbf3ab8,_0x1092b2))return{'error':new Error(_0x38bf84(0x3ee))};return _0x275f4b;}},setRangeValuesMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x4419d3,_0xd1ed59){const _0x2578e6=_0xfc9601,_0x300453={'m1Prime':_0x4419d3,'m2Prime':_0xd1ed59};if(_0x4419d3[_0x2578e6(0x3eb)][_0x2578e6(0x1d0)]!==_0xd1ed59['params'][_0x2578e6(0x1d0)]||_0x4419d3[_0x2578e6(0x3eb)]['subUnitId']!==_0xd1ed59['params'][_0x2578e6(0x25e)])return _0x300453;const _0x169636=_univerjs_core['Tools']['deepClone'](_0x4419d3),{cellValue:_0xa32bdc}=_0x169636['params'],_0x158992=new _univerjs_core[(_0x2578e6(0x3c2))](_0xa32bdc),{range:_0x2a208b}=_0xd1ed59[_0x2578e6(0x3eb)],_0x1626fc=new Map();for(let _0x270dcc=_0x2a208b[_0x2578e6(0x245)];_0x270dcc<=_0x2a208b['endColumn'];_0x270dcc++)for(let _0x3a2745=_0x2a208b[_0x2578e6(0x357)];_0x3a2745<=_0x2a208b[_0x2578e6(0x3aa)];_0x3a2745++){var _0x5f1626;if((_0xa32bdc===null||_0xa32bdc===void 0x0||(_0x5f1626=_0xa32bdc[_0x3a2745])===null||_0x5f1626===void 0x0?void 0x0:_0x5f1626[_0x270dcc])!==void 0x0){var _0x2a3f00;const _0x2462de=(_0x2a3f00=_0xd1ed59[_0x2578e6(0x3eb)]['order'][_0x3a2745])!==null&&_0x2a3f00!==void 0x0?_0x2a3f00:_0x3a2745;if(_0x2462de!==_0x3a2745){if(!_0x1626fc[_0x2578e6(0x1d9)](_0x2462de))_0x1626fc[_0x2578e6(0x209)](_0x2462de,new Map());_0x1626fc[_0x2578e6(0x3a1)](_0x2462de)[_0x2578e6(0x209)](_0x270dcc,_0xa32bdc[_0x3a2745][_0x270dcc]),_0x158992[_0x2578e6(0x242)](_0x3a2745,_0x270dcc);}}}return _0x1626fc[_0x2578e6(0x302)]((_0x1d2996,_0x285a60)=>{_0x1d2996['forEach']((_0x16759a,_0x46d3cc)=>{const _0x32fac1=_0x5cb6;_0x158992[_0x32fac1(0x2fe)](_0x285a60,_0x46d3cc,_0x16759a);});}),{'m1Prime':_0x169636,'m2Prime':_0xd1ed59};}},mergeStyles=(_0x3a14aa,_0x30e5fd)=>{if(!_0x3a14aa)return _0x30e5fd;if(!_0x30e5fd)return _0x3a14aa;return{..._0x3a14aa,..._0x30e5fd};},setRangeValuesMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x4d63b4,_0xc386c4){const _0x54d81c=_0xfc9601,_0x2b6ddc={'m1Prime':_0x4d63b4,'m2Prime':_0xc386c4};if(_0x4d63b4['params'][_0x54d81c(0x1d0)]!==_0xc386c4[_0x54d81c(0x3eb)]['unitId']||_0x4d63b4[_0x54d81c(0x3eb)][_0x54d81c(0x25e)]!==_0xc386c4[_0x54d81c(0x3eb)][_0x54d81c(0x25e)])return _0x2b6ddc;const _0x360f98=_univerjs_core[_0x54d81c(0x1c3)]['deepClone'](_0x4d63b4),_0x536a7c=_univerjs_core['Tools'][_0x54d81c(0x1cf)](_0xc386c4),_0x5b8c51=new _univerjs_core[(_0x54d81c(0x3c2))](_0x360f98[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]),_0x3d65ad=_0x5b8c51[_0x54d81c(0x3d1)](),_0x50024a=new _univerjs_core[(_0x54d81c(0x3c2))](_0xc386c4['params'][_0x54d81c(0x31f)]),_0x42977f=_0x50024a[_0x54d81c(0x3d1)]();if(!_univerjs_core[_0x54d81c(0x330)][_0x54d81c(0x3b4)](_0x3d65ad,_0x42977f))return _0x2b6ddc;return _0x5b8c51[_0x54d81c(0x387)]((_0x3abb4a,_0x5ca234,_0x236df9)=>{const _0x334682=_0x54d81c,_0x1773da=_0x50024a[_0x334682(0x2f1)](_0x3abb4a,_0x5ca234);if(_0x236df9&&_0x1773da){var _0x49769b,_0x2fe7f2;_0x1773da['s']=mergeStyles(_univerjs_core[_0x334682(0x1c3)]['deepClone'](typeof _0x236df9['s']===_0x334682(0x254)?(_0x49769b=_0x360f98[_0x334682(0x3eb)]['styleRefMap'])===null||_0x49769b===void 0x0?void 0x0:_0x49769b[_0x236df9['s']]:_0x236df9['s']),_univerjs_core[_0x334682(0x1c3)][_0x334682(0x1cf)](typeof _0x1773da['s']===_0x334682(0x254)?(_0x2fe7f2=_0x536a7c[_0x334682(0x3eb)][_0x334682(0x239)])===null||_0x2fe7f2===void 0x0?void 0x0:_0x2fe7f2[_0x1773da['s']]:_0x1773da['s'])),_0x50024a[_0x334682(0x2fe)](_0x3abb4a,_0x5ca234,_0x1773da),_0x5b8c51[_0x334682(0x242)](_0x3abb4a,_0x5ca234);}}),_0x360f98[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]=_0x5b8c51[_0x54d81c(0x1d1)](),_0x536a7c[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]=_0x50024a[_0x54d81c(0x1d1)](),{'m1Prime':_0x360f98,'m2Prime':_0x536a7c};}},setRowDataMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x303)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x10ce75,_0x2f834b){const _0x52c29a=_0xfc9601,_0x261227={'m1Prime':_0x10ce75,'m2Prime':_0x2f834b};if(_0x10ce75['params'][_0x52c29a(0x1d0)]!==_0x2f834b[_0x52c29a(0x3eb)]['unitId']||_0x10ce75[_0x52c29a(0x3eb)][_0x52c29a(0x25e)]!==_0x2f834b[_0x52c29a(0x3eb)][_0x52c29a(0x25e)])return _0x261227;const _0xfa2ee6=_0x10ce75[_0x52c29a(0x3eb)]['rowData'],_0x45aadd=_0x2f834b[_0x52c29a(0x3eb)][_0x52c29a(0x2fd)],_0x36234d={},_0x4e3a43=_univerjs_core[_0x52c29a(0x1c3)]['deepClone'](_0x10ce75),_0x2e2ac7=new Set([...Object[_0x52c29a(0x38e)](_0xfa2ee6)[_0x52c29a(0x3b3)](Number),...Object['keys'](_0x45aadd)['map'](Number)]);for(const _0x5384a4 of _0x2e2ac7){const _0x4f62e8=_0xfa2ee6[_0x5384a4],_0x2f3add=_0x45aadd[_0x5384a4];if(_0x4f62e8&&_0x2f3add)_0x36234d[_0x5384a4]={..._0x4f62e8,..._0x2f3add};else{if(_0x4f62e8)_0x36234d[_0x5384a4]=_0x4f62e8;else{if(_0x2f3add)_0x36234d[_0x5384a4]=_0x2f3add;}}}return _0x4e3a43['params']['rowData']=_0x36234d,{'m1Prime':_0x4e3a43,'m2Prime':_0x2f834b};}},setSheetsFilterCriteriaWithMoveRange={'m1':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x3a79aa,_0x4e040c){const _0x38a024=_0xfc9601,_0x4ca8fe={'m1Prime':_0x3a79aa,'m2Prime':_0x4e040c};if(_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x1d0)]!==_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x1d0)]||_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x25e)]!==_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x25e)]&&_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x25e)]!==_0x4e040c[_0x38a024(0x3eb)]['to']['subUnitId'])return _0x4ca8fe;let _0x3339b7=null;if(_0x3a79aa['params']['subUnitId']===_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x25e)])new _univerjs_core['ObjectMatrix'](_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x3e6)])[_0x38a024(0x387)]((_0x460aa1,_0x34c885)=>{const _0x20e814=_0x38a024;if(_0x34c885===_0x3a79aa[_0x20e814(0x3eb)][_0x20e814(0x3c5)])_0x3339b7=_0x4e040c[_0x20e814(0x3eb)][_0x20e814(0x3a4)]['subUnitId'];});if(_0x3a79aa[_0x38a024(0x3eb)]['subUnitId']===_0x4e040c[_0x38a024(0x3eb)]['to'][_0x38a024(0x25e)])new _univerjs_core[(_0x38a024(0x3c2))](_0x4e040c[_0x38a024(0x3eb)]['to'][_0x38a024(0x3e6)])[_0x38a024(0x387)]((_0x343ece,_0xa96c4f)=>{const _0x46611f=_0x38a024;if(_0xa96c4f===_0x3a79aa[_0x46611f(0x3eb)][_0x46611f(0x3c5)])_0x3339b7=_0x4e040c[_0x46611f(0x3eb)]['to']['subUnitId'];});if(_0x3339b7)return{'m1Prime':_0x3a79aa,'m2Prime':[_0x4e040c,{'id':_univerjs_sheets_filter[_0x38a024(0x3b6)]['id'],'params':{'unitId':_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x1d0)],'subUnitId':_0x3339b7}}]};return _0x4ca8fe;}},setSheetsFilterCriteriaWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler'(_0x1669bd,_0x5bb1a3){const _0x414ff0=_0xfc9601,_0x41c850={'m1Prime':_0x1669bd,'m2Prime':_0x5bb1a3};if(_0x1669bd[_0x414ff0(0x3eb)][_0x414ff0(0x1d0)]!==_0x5bb1a3[_0x414ff0(0x3eb)]['unitId']||_0x1669bd[_0x414ff0(0x3eb)][_0x414ff0(0x25e)]!==_0x5bb1a3[_0x414ff0(0x3eb)][_0x414ff0(0x25e)])return _0x41c850;return{'m1Prime':[],'m2Prime':[_0x5bb1a3]};}},setSheetsFilterCriteriaWithSetRangeValues={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0xb82dfb,_0x409a2c){const _0x48e710=_0xfc9601,_0x79f9f={'m1Prime':_0xb82dfb,'m2Prime':_0x409a2c};if(_0xb82dfb[_0x48e710(0x3eb)][_0x48e710(0x1d0)]!==_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x1d0)]||_0xb82dfb[_0x48e710(0x3eb)]['subUnitId']!==_0x409a2c[_0x48e710(0x3eb)]['subUnitId'])return _0x79f9f;let _0x1aa2bb=![];new _univerjs_core[(_0x48e710(0x3c2))](_0x409a2c[_0x48e710(0x3eb)]['cellValue'])[_0x48e710(0x387)]((_0x14485e,_0x69c79e)=>{const _0x19e000=_0x48e710;if(_0x69c79e===_0xb82dfb[_0x19e000(0x3eb)][_0x19e000(0x3c5)])_0x1aa2bb=!![];});if(_0x1aa2bb)return{'m1Prime':_0xb82dfb,'m2Prime':[_0x409a2c,{'id':_univerjs_sheets_filter['ReCalcSheetsFilterMutation']['id'],'params':{'unitId':_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x1d0)],'subUnitId':_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x25e)]}}]};return _0x79f9f;}},setSheetsFilterCriteriaWithSelf={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x226686,_0x551f2f){const _0x3f3589=_0xfc9601,_0x4052a6={'m1Prime':_0x226686,'m2Prime':_0x551f2f};if(_0x226686[_0x3f3589(0x3eb)]['unitId']!==_0x551f2f[_0x3f3589(0x3eb)][_0x3f3589(0x1d0)]||_0x226686[_0x3f3589(0x3eb)][_0x3f3589(0x25e)]!==_0x551f2f['params'][_0x3f3589(0x25e)]||_0x226686[_0x3f3589(0x3eb)]['col']!==_0x551f2f[_0x3f3589(0x3eb)][_0x3f3589(0x3c5)])return _0x4052a6;return{'m1Prime':[],'m2Prime':[_0x551f2f]};}},setSheetsFilterRangeWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler'(_0x558d98,_0xbf11ec){const _0x4f7c6d=_0xfc9601,_0x1a616b={'m1Prime':_0x558d98,'m2Prime':_0xbf11ec};if(_0x558d98[_0x4f7c6d(0x3eb)]['unitId']!==_0xbf11ec['params']['unitId']||_0x558d98[_0x4f7c6d(0x3eb)][_0x4f7c6d(0x25e)]!==_0xbf11ec[_0x4f7c6d(0x3eb)]['subUnitId'])return _0x1a616b;return{'m1Prime':[],'m2Prime':[_0xbf11ec]};}},setSheetsFilterRangeWithSelf={'m1':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x213f48,_0xa6c301){const _0xb8f71a=_0xfc9601,_0x3337e3={'m1Prime':_0x213f48,'m2Prime':_0xa6c301};if(_0x213f48[_0xb8f71a(0x3eb)][_0xb8f71a(0x1d0)]!==_0xa6c301[_0xb8f71a(0x3eb)]['unitId']||_0x213f48[_0xb8f71a(0x3eb)][_0xb8f71a(0x25e)]!==_0xa6c301[_0xb8f71a(0x3eb)][_0xb8f71a(0x25e)])return _0x3337e3;return{'m1Prime':[],'m2Prime':[_0xa6c301]};}},setTabColorMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x248)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x248)]['id'],'handler'(_0x592880,_0x3effec){const _0x4706e7=_0xfc9601;if(_0x592880[_0x4706e7(0x3eb)][_0x4706e7(0x1d0)]!==_0x3effec[_0x4706e7(0x3eb)][_0x4706e7(0x1d0)]||_0x592880[_0x4706e7(0x3eb)][_0x4706e7(0x25e)]!==_0x3effec[_0x4706e7(0x3eb)][_0x4706e7(0x25e)])return{'m1Prime':_0x592880,'m2Prime':_0x3effec};return{'m1Prime':[],'m2Prime':_0x3effec};}},setWorksheetColWidthMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x343d7b,_0xe99279){const _0x5763f8=_0xfc9601,_0x2bdc41={'m1Prime':_0x343d7b,'m2Prime':_0xe99279};if(_0x343d7b[_0x5763f8(0x3eb)][_0x5763f8(0x1d0)]!==_0xe99279['params'][_0x5763f8(0x1d0)]||_0x343d7b[_0x5763f8(0x3eb)]['subUnitId']!==_0xe99279[_0x5763f8(0x3eb)]['subUnitId'])return _0x2bdc41;const _0x638d28=_0x343d7b[_0x5763f8(0x3eb)][_0x5763f8(0x3a3)],_0x443229=[],_0xbd32f5=_univerjs_core[_0x5763f8(0x1c3)][_0x5763f8(0x1cf)](_0x343d7b),_0x16a2fb=_0xe99279['params'][_0x5763f8(0x3a3)];_0x638d28[_0x5763f8(0x302)](_0x5d6775=>{const _0x53f8f0=_0x5763f8,_0x57ddcf=lineSubtractLines({'start':_0x5d6775[_0x53f8f0(0x245)],'end':_0x5d6775['endColumn']},_0x16a2fb[_0x53f8f0(0x3b3)](_0x222611=>({'start':_0x222611[_0x53f8f0(0x245)],'end':_0x222611['endColumn']})))[_0x53f8f0(0x3b3)](_0x400e70=>({..._0x5d6775,'startColumn':_0x400e70[_0x53f8f0(0x40e)],'endColumn':_0x400e70[_0x53f8f0(0x3bc)]}));_0x443229[_0x53f8f0(0x380)](..._0x57ddcf);}),_0xbd32f5[_0x5763f8(0x3eb)]['ranges']=_0x443229;const {colWidth:_0x31caff}=_0xbd32f5['params'],{colWidth:_0xebf5f4}=_0xe99279['params'],_0x51609b=_0x31caff,_0x2bac66=_0xebf5f4;if(typeof _0x51609b!==_0x5763f8(0x28f)){if(typeof _0x2bac66!==_0x5763f8(0x28f))Object['keys'](_0x2bac66)['map'](Number)[_0x5763f8(0x302)](_0x3278ae=>{if(_0x51609b[_0x3278ae]!=null)delete _0x51609b[_0x3278ae];});else _0x16a2fb[_0x5763f8(0x302)](_0x13e995=>{const _0x4e4961=_0x5763f8;for(let _0x2e8a92=_0x13e995[_0x4e4961(0x245)];_0x2e8a92<=_0x13e995[_0x4e4961(0x22a)];_0x2e8a92++)delete _0x51609b[_0x2e8a92];});}return{'m1Prime':_0xbd32f5,'m2Prime':_0xe99279};}},setWorksheetNameWithInsertSheet={'m1':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'m2':_univerjs_sheets['InsertSheetMutation']['id'],'handler'(_0x439493,_0x1dfc91){const _0xdb241=_0xfc9601;if(_0x439493[_0xdb241(0x3eb)][_0xdb241(0x1d0)]!==_0x1dfc91['params'][_0xdb241(0x1d0)])return{'m1Prime':_0x439493,'m2Prime':_0x1dfc91};if(_0x439493[_0xdb241(0x3eb)]['subUnitId']===_0x1dfc91['params'][_0xdb241(0x2b7)]['id'])return{'error':new Error(_0xdb241(0x3b8))};if(_0x439493[_0xdb241(0x3eb)][_0xdb241(0x2f3)]===_0x1dfc91[_0xdb241(0x3eb)][_0xdb241(0x2b7)]['name']){const _0x68dba1={'id':_univerjs_sheets[_0xdb241(0x3f9)]['id'],'params':{'unitId':_0x439493[_0xdb241(0x3eb)][_0xdb241(0x1d0)],'subUnitId':_0x439493['params'][_0xdb241(0x25e)],'name':_0x439493['params'][_0xdb241(0x2f3)]+_0xdb241(0x3f1)}};return{'m1Prime':_0x68dba1,'m2Prime':[_0x68dba1,_0x1dfc91]};}return{'m1Prime':[],'m2Prime':[]};}},setWorksheetNameMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetNameMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'handler'(_0x320756,_0x2333fe){const _0x16de89=_0xfc9601;if(_0x320756['params'][_0x16de89(0x1d0)]!==_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x1d0)])return{'m1Prime':_0x320756,'m2Prime':_0x2333fe};if(_0x320756[_0x16de89(0x3eb)][_0x16de89(0x25e)]===_0x2333fe['params']['subUnitId']){if(_0x320756[_0x16de89(0x3eb)][_0x16de89(0x2f3)]!==_0x2333fe['params'][_0x16de89(0x2f3)])return{'m1Prime':[],'m2Prime':_0x2333fe};return{'m1Prime':[],'m2Prime':[]};}else{if(_0x320756['params']['name']!==_0x2333fe[_0x16de89(0x3eb)]['name'])return{'m1Prime':[],'m2Prime':[]};const _0x3759f4={'id':_univerjs_sheets[_0x16de89(0x3f9)]['id'],'params':{'unitId':_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x1d0)],'subUnitId':_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x25e)],'name':_0x2333fe['params'][_0x16de89(0x2f3)]+_0x16de89(0x3f1)}};return{'m1Prime':[_0x3759f4,_0x320756],'m2Prime':_0x3759f4};}}},setWorksheetRowAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x4d4e8c,_0x378639){const _0xce8e09=_0xfc9601,_0x165584={'m1Prime':_0x4d4e8c,'m2Prime':_0x378639};if(_0x4d4e8c[_0xce8e09(0x3eb)][_0xce8e09(0x1d0)]!==_0x378639['params'][_0xce8e09(0x1d0)]||_0x4d4e8c[_0xce8e09(0x3eb)]['subUnitId']!==_0x378639['params']['subUnitId'])return _0x165584;const _0x127892=_0x4d4e8c['params'][_0xce8e09(0x1c5)],_0x402b90=[],_0x22bc6f=_univerjs_core['Tools'][_0xce8e09(0x1cf)](_0x4d4e8c),_0x3e4234=_0x378639[_0xce8e09(0x3eb)][_0xce8e09(0x1c5)];return _0x127892[_0xce8e09(0x302)](_0x413116=>{const _0x1551b7=_0xce8e09;if(!_0x3e4234[_0x1551b7(0x367)](_0x129896=>_0x129896[_0x1551b7(0x2bb)]===_0x413116['row']))_0x402b90[_0x1551b7(0x380)](_0x413116);}),_0x22bc6f[_0xce8e09(0x3eb)][_0xce8e09(0x1c5)]=_0x402b90,{'m1Prime':_0x22bc6f,'m2Prime':_0x378639};}},setWorksheetRowHeightMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x304)]['id'],'m2':_univerjs_sheets['SetWorksheetRowHeightMutation']['id'],'handler'(_0x13a461,_0x51b046){const _0x32a69f=_0xfc9601,_0x373d4d={'m1Prime':_0x13a461,'m2Prime':_0x51b046};if(_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x1d0)]!==_0x51b046[_0x32a69f(0x3eb)]['unitId']||_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x25e)]!==_0x51b046['params']['subUnitId'])return _0x373d4d;const _0x2b9a76=_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x3a3)],_0x59d5b5=[],_0x2187e6=_univerjs_core[_0x32a69f(0x1c3)]['deepClone'](_0x13a461),_0x2b32a5=_0x51b046[_0x32a69f(0x3eb)]['ranges'];_0x2b9a76[_0x32a69f(0x302)](_0x62b4e7=>{const _0x28f308=_0x32a69f,_0x545f37=lineSubtractLines({'start':_0x62b4e7[_0x28f308(0x357)],'end':_0x62b4e7[_0x28f308(0x3aa)]},_0x2b32a5[_0x28f308(0x3b3)](_0x708f17=>({'start':_0x708f17[_0x28f308(0x357)],'end':_0x708f17[_0x28f308(0x3aa)]})))[_0x28f308(0x3b3)](_0x3d94b4=>({..._0x62b4e7,'startRow':_0x3d94b4[_0x28f308(0x40e)],'endRow':_0x3d94b4[_0x28f308(0x3bc)]}));_0x59d5b5['push'](..._0x545f37);}),_0x2187e6['params'][_0x32a69f(0x3a3)]=_0x59d5b5;const {rowHeight:_0x4914b1}=_0x2187e6[_0x32a69f(0x3eb)],{rowHeight:_0x5052f0}=_0x51b046[_0x32a69f(0x3eb)],_0x251882=_0x4914b1,_0x5c5f8e=_0x5052f0;if(typeof _0x251882!==_0x32a69f(0x28f)){if(typeof _0x5c5f8e!==_0x32a69f(0x28f))Object['keys'](_0x5c5f8e)['map'](Number)['forEach'](_0x159bbb=>{if(_0x251882[_0x159bbb]!=null)delete _0x251882[_0x159bbb];});else _0x2b32a5['forEach'](_0xcdf512=>{const _0x5671fe=_0x32a69f;for(let _0x4a0067=_0xcdf512[_0x5671fe(0x357)];_0x4a0067<=_0xcdf512[_0x5671fe(0x3aa)];_0x4a0067++)delete _0x251882[_0x4a0067];});}return{'m1Prime':_0x2187e6,'m2Prime':_0x51b046};}},setWorksheetRowIsAutoHeightMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'m2':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'handler'(_0x2875a5,_0x4db6cf){const _0x3ca90b=_0xfc9601,_0x24c2ff={'m1Prime':_0x2875a5,'m2Prime':_0x4db6cf};if(_0x2875a5['params'][_0x3ca90b(0x1d0)]!==_0x4db6cf[_0x3ca90b(0x3eb)][_0x3ca90b(0x1d0)]||_0x2875a5[_0x3ca90b(0x3eb)][_0x3ca90b(0x25e)]!==_0x4db6cf[_0x3ca90b(0x3eb)][_0x3ca90b(0x25e)])return _0x24c2ff;const _0x529c14=_0x2875a5[_0x3ca90b(0x3eb)][_0x3ca90b(0x3a3)],_0x29a0ef=[],_0x382018=_univerjs_core['Tools']['deepClone'](_0x2875a5),_0x24f07d=_0x4db6cf[_0x3ca90b(0x3eb)]['ranges'];_0x529c14[_0x3ca90b(0x302)](_0x538b5a=>{const _0x4d7433=_0x3ca90b,_0x1710ab=lineSubtractLines({'start':_0x538b5a[_0x4d7433(0x357)],'end':_0x538b5a[_0x4d7433(0x3aa)]},_0x24f07d[_0x4d7433(0x3b3)](_0x5bd222=>({'start':_0x5bd222[_0x4d7433(0x357)],'end':_0x5bd222[_0x4d7433(0x3aa)]})))['map'](_0x13c75e=>({..._0x538b5a,'startRow':_0x13c75e[_0x4d7433(0x40e)],'endRow':_0x13c75e[_0x4d7433(0x3bc)]}));_0x29a0ef[_0x4d7433(0x380)](..._0x1710ab);}),_0x382018[_0x3ca90b(0x3eb)][_0x3ca90b(0x3a3)]=_0x29a0ef;const {autoHeightInfo:_0xe788f6}=_0x382018[_0x3ca90b(0x3eb)],{autoHeightInfo:_0x1bd806}=_0x4db6cf['params'];if(typeof _0xe788f6!==_0x3ca90b(0x28f)){if(typeof _0x1bd806!=='number')Object[_0x3ca90b(0x38e)](_0x1bd806)[_0x3ca90b(0x3b3)](Number)[_0x3ca90b(0x302)](_0x29f39a=>{if(_0xe788f6[_0x29f39a]!=null)delete _0xe788f6[_0x29f39a];});else _0x24f07d[_0x3ca90b(0x302)](_0x1ed659=>{for(let _0x2d80a7=_0x1ed659['startRow'];_0x2d80a7<=_0x1ed659['endRow'];_0x2d80a7++)delete _0xe788f6[_0x2d80a7];});}return{'m1Prime':_0x382018,'m2Prime':_0x4db6cf};}},updateCommentRefWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x30332e,_0x2169f5)=>{const _0x3d117f=_0xfc9601,_0x14650f=_0x30332e['params'],_0x2aba92=_0x2169f5[_0x3d117f(0x3eb)];if(_0x14650f[_0x3d117f(0x1d0)]===_0x2aba92[_0x3d117f(0x1d0)]&&_0x14650f['subUnitId']===_0x2aba92[_0x3d117f(0x25e)]&&_0x14650f[_0x3d117f(0x210)][_0x3d117f(0x287)]===_0x2aba92[_0x3d117f(0x210)][_0x3d117f(0x287)])return{'m1Prime':[],'m2Prime':_0x2169f5};return{'m1Prime':_0x30332e,'m2Prime':_0x2169f5};}},updateCommentWithSelf={'m1':_univerjs_thread_comment['UpdateCommentMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0xcf4e4f,_0x195e7e)=>{const _0x11cf25=_0xfc9601,_0x34c5e4=_0xcf4e4f['params'],_0x2d443b=_0x195e7e['params'];if(_0x34c5e4[_0x11cf25(0x1d0)]===_0x2d443b[_0x11cf25(0x1d0)]&&_0x34c5e4[_0x11cf25(0x25e)]===_0x2d443b[_0x11cf25(0x25e)]&&_0x34c5e4[_0x11cf25(0x210)][_0x11cf25(0x287)]===_0x2d443b[_0x11cf25(0x210)][_0x11cf25(0x287)])return{'m1Prime':[],'m2Prime':_0x195e7e};return{'m1Prime':_0xcf4e4f,'m2Prime':_0x195e7e};}},updateDataValidationMutationWithAdd={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler':(_0x50827c,_0x25fe75)=>{const _0x57c344=_0xfc9601,_0x54f856={'m1Prime':_0x50827c,'m2Prime':_0x25fe75},_0x35234a=_0x50827c['params'],_0x2fd406=_0x25fe75[_0x57c344(0x3eb)];if(_0x35234a[_0x57c344(0x1d0)]!==_0x2fd406[_0x57c344(0x1d0)]||_0x35234a[_0x57c344(0x25e)]!==_0x2fd406['subUnitId'])return _0x54f856;if(_0x50827c[_0x57c344(0x3eb)][_0x57c344(0x210)][_0x57c344(0x266)]===_univerjs_data_validation[_0x57c344(0x28c)][_0x57c344(0x2fc)]){const {unitId:_0x558f68,subUnitId:_0x5e6f48}=_0x50827c[_0x57c344(0x3eb)],_0x38c190=Array[_0x57c344(0x276)](_0x25fe75[_0x57c344(0x3eb)]['rule'])?_0x25fe75['params'][_0x57c344(0x331)]:[_0x25fe75[_0x57c344(0x3eb)][_0x57c344(0x331)]],_0x2872d7=[],_0x3705b7=new _univerjs_core[(_0x57c344(0x3c2))](),_0x1c0bcc=_0x50827c[_0x57c344(0x3eb)]['payload'][_0x57c344(0x210)];_0x1c0bcc[_0x57c344(0x302)](_0x4528e1=>{_univerjs_core['Range']['foreach'](_0x4528e1,(_0x107bc9,_0xb57a62)=>{const _0x43c748=_0x5cb6;_0x3705b7[_0x43c748(0x2fe)](_0x107bc9,_0xb57a62,_0x50827c[_0x43c748(0x3eb)]['ruleId']);});}),_0x38c190['forEach'](_0x38829b=>{const _0x2dfffa=_0x57c344;_0x38829b[_0x2dfffa(0x3a3)][_0x2dfffa(0x302)](_0x28a202=>{const _0x23140a=_0x2dfffa;_univerjs_core[_0x23140a(0x33f)][_0x23140a(0x1d6)](_0x28a202,(_0x4dc200,_0x11007f)=>{const _0x5c6c17=_0x23140a;_0x3705b7[_0x5c6c17(0x2fe)](_0x4dc200,_0x11007f,_0x38829b['uid']);});});});const _0x50dce8=_0x50827c[_0x57c344(0x3eb)]['ruleId'];if(!_0x50dce8)return _0x54f856;const _0x2f4b69=(0x0,_univerjs_core[_0x57c344(0x1dc)])(_0x3705b7,_0x288940=>_0x288940===_0x50dce8);if(!(0x0,_univerjs_core['isRangesEqual'])(_0x2f4b69,_0x1c0bcc)){if(_0x2f4b69[_0x57c344(0x29d)])_0x2872d7['push']({'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x558f68,'subUnitId':_0x5e6f48,'ruleId':_0x50dce8,'payload':{'type':_univerjs_data_validation[_0x57c344(0x28c)][_0x57c344(0x2fc)],'payload':_0x2f4b69}}});else _0x2872d7[_0x57c344(0x380)]({'id':_univerjs_data_validation[_0x57c344(0x252)]['id'],'params':{'unitId':_0x558f68,'subUnitId':_0x5e6f48,'ruleId':_0x50dce8}});}return{'m1Prime':_0x2872d7[_0x57c344(0x29d)]?_0x2872d7:[_0x50827c],'m2Prime':[..._0x2872d7,_0x25fe75]};}return _0x54f856;}},updateDataValidationMutationWithRemoveSelf={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x1e5b11,_0xd657c6)=>{const _0x1076f3=_0xfc9601,_0x2e9cd6={'m1Prime':_0x1e5b11,'m2Prime':_0xd657c6};if(_0x1e5b11[_0x1076f3(0x3eb)]['unitId']!==_0xd657c6[_0x1076f3(0x3eb)]['unitId']||_0x1e5b11[_0x1076f3(0x3eb)][_0x1076f3(0x25e)]!==_0xd657c6['params'][_0x1076f3(0x25e)])return _0x2e9cd6;const _0x3f4654=_0x1e5b11['params']['ruleId'];if((Array['isArray'](_0xd657c6['params'][_0x1076f3(0x2d2)])?_0xd657c6[_0x1076f3(0x3eb)][_0x1076f3(0x2d2)]:[_0xd657c6[_0x1076f3(0x3eb)][_0x1076f3(0x2d2)]])[_0x1076f3(0x3e1)](_0x3f4654)>-0x1)return{'m1Prime':[],'m2Prime':_0xd657c6};return _0x2e9cd6;}},updateDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x13ce74,_0x42ff5c)=>{const _0x48e6ad=_0xfc9601,_0x3a8949={'m1Prime':_0x13ce74,'m2Prime':_0x42ff5c},_0x17e729=_0x13ce74[_0x48e6ad(0x3eb)],_0x3443d6=_0x42ff5c[_0x48e6ad(0x3eb)];if(_0x17e729['unitId']===_0x3443d6[_0x48e6ad(0x1d0)]&&_0x17e729[_0x48e6ad(0x25e)]===_0x3443d6[_0x48e6ad(0x25e)]){const _0x5bf641=_univerjs_core['Tools']['deepClone'](_0x42ff5c);if(_0x3443d6['ruleId']===_0x17e729['ruleId']&&_0x17e729[_0x48e6ad(0x210)]['type']===_0x3443d6['payload'][_0x48e6ad(0x266)]){if(_0x17e729[_0x48e6ad(0x210)]['type']===_univerjs_data_validation[_0x48e6ad(0x28c)][_0x48e6ad(0x2fc)]&&!(0x0,_univerjs_core['isRangesEqual'])(_0x17e729['payload'][_0x48e6ad(0x210)],_0x3443d6[_0x48e6ad(0x210)]['payload']))return{'error':new Error(_0x48e6ad(0x211))};return{'m1Prime':[],'m2Prime':_0x5bf641};}if(_0x17e729['payload'][_0x48e6ad(0x266)]===_univerjs_data_validation[_0x48e6ad(0x28c)][_0x48e6ad(0x2fc)]&&_0x3443d6['payload'][_0x48e6ad(0x266)]===_univerjs_data_validation['UpdateRuleType'][_0x48e6ad(0x2fc)]&&_0x3443d6[_0x48e6ad(0x2d2)]!==_0x17e729[_0x48e6ad(0x2d2)]){const _0x78d760=new _univerjs_core['ObjectMatrix']();function _0x36f72a(_0xd7d573,_0x63ff70){_0xd7d573['forEach'](_0x45f98a=>{const _0x8620b2=_0x5cb6;_univerjs_core[_0x8620b2(0x33f)][_0x8620b2(0x1d6)](_0x45f98a,(_0x3a17af,_0x461ba8)=>{const _0x2f9d39=_0x8620b2;_0x78d760[_0x2f9d39(0x2fe)](_0x3a17af,_0x461ba8,_0x63ff70);});});}_0x36f72a(_0x17e729[_0x48e6ad(0x210)][_0x48e6ad(0x210)],_0x17e729[_0x48e6ad(0x2d2)]),_0x36f72a(_0x3443d6['payload']['payload'],_0x3443d6[_0x48e6ad(0x2d2)]);const _0x2ddb36=(0x0,_univerjs_core[_0x48e6ad(0x1dc)])(_0x78d760,_0x18bdca=>_0x18bdca===_0x17e729[_0x48e6ad(0x2d2)]),_0x39b393=!(0x0,_univerjs_core[_0x48e6ad(0x353)])(_0x17e729['payload']['payload'],_0x2ddb36)?_0x2ddb36['length']?[{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{..._0x17e729,'payload':{'type':_univerjs_data_validation[_0x48e6ad(0x28c)]['RANGE'],'payload':_0x2ddb36}}}]:[{'id':_univerjs_data_validation[_0x48e6ad(0x252)]['id'],'params':{..._0x17e729,'payload':void 0x0}}]:[];return{'m1Prime':[_0x13ce74],'m2Prime':[..._0x39b393,_0x42ff5c]};}}return _0x3a8949;}},updateHyperLinkRefWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x226)]['id'],'m2':_univerjs_sheets_hyper_link['UpdateHyperLinkRefMutation']['id'],'handler':(_0x1bdf55,_0x3a5542)=>{const _0x153fcc=_0xfc9601,_0x24c39b=_0x1bdf55[_0x153fcc(0x3eb)],_0x377fb9=_0x3a5542['params'];if(_0x24c39b[_0x153fcc(0x1d0)]===_0x377fb9[_0x153fcc(0x1d0)]&&_0x24c39b[_0x153fcc(0x25e)]===_0x377fb9[_0x153fcc(0x25e)]&&_0x24c39b['id']===_0x377fb9['id'])return{'m2Prime':_0x3a5542,'m1Prime':[]};return{'m1Prime':_0x1bdf55,'m2Prime':_0x3a5542};}},updateHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x319)]['id'],'m2':_univerjs_sheets_hyper_link[_0xfc9601(0x319)]['id'],'handler':(_0x2f7f1a,_0x2977d4)=>{const _0x32f9c6=_0xfc9601,_0x5c48ad=_0x2f7f1a[_0x32f9c6(0x3eb)],_0x46ca83=_0x2977d4[_0x32f9c6(0x3eb)];if(_0x5c48ad[_0x32f9c6(0x1d0)]===_0x46ca83[_0x32f9c6(0x1d0)]&&_0x5c48ad[_0x32f9c6(0x25e)]===_0x46ca83['subUnitId']&&_0x5c48ad['id']===_0x46ca83['id'])return{'m2Prime':_0x2977d4,'m1Prime':[]};return{'m1Prime':_0x2f7f1a,'m2Prime':_0x2977d4};}},removeSheetMutationWithAddWorksheetMerge={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x30337e,_0x1fcf5a){const _0x320830=_0xfc9601;if(_0x30337e[_0x320830(0x3eb)][_0x320830(0x1d0)]!==_0x1fcf5a[_0x320830(0x3eb)][_0x320830(0x1d0)]||_0x30337e[_0x320830(0x3eb)][_0x320830(0x25e)]!==_0x1fcf5a[_0x320830(0x3eb)][_0x320830(0x25e)])return{'m1Prime':_0x30337e,'m2Prime':_0x1fcf5a};return{'m1Prime':_0x30337e,'m2Prime':[]};}},removeSheetMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x376)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x53fbc2,_0x370a2f){const _0x55a55c=_0xfc9601;if(_0x53fbc2[_0x55a55c(0x3eb)]['unitId']!==_0x370a2f[_0x55a55c(0x3eb)][_0x55a55c(0x1d0)]||_0x53fbc2['params'][_0x55a55c(0x25e)]!==_0x370a2f['params']['subUnitId'])return{'m1Prime':_0x53fbc2,'m2Prime':_0x370a2f};return{'m1Prime':_0x53fbc2,'m2Prime':[]};}},InsertSheetMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x243)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x243)]['id'],'handler'(_0x370902,_0x55082d){const _0x23b99e=_0xfc9601;if(_0x370902[_0x23b99e(0x3eb)]['sheet']['id']===_0x55082d['params'][_0x23b99e(0x2b7)]['id'])return{'error':new Error(_0x23b99e(0x1da))};const _0x21e826=_univerjs_core['Tools'][_0x23b99e(0x1cf)](_0x370902),_0x2ee4f8=_univerjs_core[_0x23b99e(0x1c3)][_0x23b99e(0x1cf)](_0x55082d);if(_0x21e826[_0x23b99e(0x3eb)]['index']<=_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)])_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)]+=0x1;else{if(_0x21e826['params'][_0x23b99e(0x33e)]>_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)])_0x21e826[_0x23b99e(0x3eb)][_0x23b99e(0x33e)]+=0x1;}if(_0x370902[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)]['name']===_0x55082d['params']['sheet'][_0x23b99e(0x2f3)]){const _0x55c5b2={'id':_univerjs_sheets['SetWorksheetNameMutation']['id'],'params':{'unitId':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x1d0)],'subUnitId':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)]['id'],'name':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)][_0x23b99e(0x2f3)]+'\x20(1)'}};return{'m1Prime':[_0x55c5b2,_0x21e826],'m2Prime':[_0x2ee4f8,_0x55c5b2]};}return{'m1Prime':_0x21e826,'m2Prime':_0x2ee4f8};}},RemoveSheetMutationWithOthers={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_0xfc9601(0x3fb),'handler'(_0x3bcc2e,_0xb76756){const _0x5e3e95=_0xfc9601;if(_0x3bcc2e[_0x5e3e95(0x3eb)][_0x5e3e95(0x1d0)]!==_0xb76756[_0x5e3e95(0x3eb)][_0x5e3e95(0x1d0)]||_0x3bcc2e[_0x5e3e95(0x3eb)][_0x5e3e95(0x25e)]!==_0xb76756['params'][_0x5e3e95(0x25e)])return{'m1Prime':_0x3bcc2e,'m2Prime':_0xb76756};if(_0x3bcc2e['id']===_0xb76756['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':_0x3bcc2e,'m2Prime':[]};}},SetWorksheetOrderMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x389)]['id'],'handler'(_0x675e51,_0x1036bc){const _0x16888b=_0xfc9601,_0x4880ae=_univerjs_core['Tools'][_0x16888b(0x1cf)](_0x675e51),_0x43db52=_univerjs_core[_0x16888b(0x1c3)][_0x16888b(0x1cf)](_0x1036bc),_0x5994f7={'error':new Error(_0x16888b(0x3da))};if(_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)])_0x4880ae['id']=_univerjs_sheets[_0x16888b(0x305)]['id'],_0x43db52['params'][_0x16888b(0x32d)]=_0x675e51['params'][_0x16888b(0x3b7)];else{if(_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x675e51[_0x16888b(0x3eb)]['toOrder'])_0x4880ae['id']=_univerjs_sheets[_0x16888b(0x305)]['id'];if(_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x3b7)])_0x43db52['id']=_univerjs_sheets[_0x16888b(0x305)]['id'];const _0x2d9db8=[Math[_0x16888b(0x1d8)](_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x675e51['params'][_0x16888b(0x3b7)]),Math[_0x16888b(0x2bd)](_0x675e51[_0x16888b(0x3eb)]['fromOrder'],_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x3b7)])],_0x257fa8=[Math[_0x16888b(0x1d8)](_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x1036bc[_0x16888b(0x3eb)]['toOrder']),Math['max'](_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x3b7)])];if(_0x2d9db8[0x0]<=_0x257fa8[0x1]&&_0x2d9db8[0x1]>=_0x257fa8[0x0])return _0x5994f7;}return{'m1Prime':_0x4880ae,'m2Prime':_0x43db52};}},InsetSheetMutationWithSetWorksheetOrder={'m1':_univerjs_sheets[_0xfc9601(0x243)]['id'],'m2':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'handler'(_0x4d08fb,_0x9a6e81){const _0x3505a2=_0xfc9601,_0x10e3e7=_univerjs_core[_0x3505a2(0x1c3)]['deepClone'](_0x4d08fb),_0x18530c=_univerjs_core[_0x3505a2(0x1c3)][_0x3505a2(0x1cf)](_0x9a6e81);if(_0x4d08fb[_0x3505a2(0x3eb)][_0x3505a2(0x33e)]<=_0x9a6e81['params'][_0x3505a2(0x2d8)])_0x18530c[_0x3505a2(0x3eb)][_0x3505a2(0x2d8)]+=0x1;return{'m1Prime':_0x10e3e7,'m2Prime':_0x18530c};}},OthersWithRemoveSheetMutation={'m1':'any','m2':_univerjs_sheets[_0xfc9601(0x376)]['id'],'handler'(_0x5d631d,_0x1848c4){const _0x151eb9=_0xfc9601;if(_0x5d631d[_0x151eb9(0x3eb)][_0x151eb9(0x1d0)]!==_0x1848c4[_0x151eb9(0x3eb)][_0x151eb9(0x1d0)]||_0x5d631d[_0x151eb9(0x3eb)]['subUnitId']!==_0x1848c4[_0x151eb9(0x3eb)][_0x151eb9(0x25e)])return{'m1Prime':_0x5d631d,'m2Prime':_0x1848c4};if(_0x5d631d['id']===_0x1848c4['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':[],'m2Prime':_0x1848c4};}},WorksheetAlgorithms=[InsertSheetMutationWithSelf,InsetSheetMutationWithSetWorksheetOrder,RemoveSheetMutationWithOthers,OthersWithRemoveSheetMutation,SetWorksheetOrderMutationWithSelf],SHEET_ALL_ALGORITHMS=[...WorksheetAlgorithms,insertColMutationWithSelf,insertColMutationWithMoveCol,insertColMutationWithMoveRange,insertColMutationWithRemoveCol,insertColMutationWithSetRangeValues,insertColMutationWithSetColData,insertColMutationWithSetColHidden,insertColMutationWithSetColVisible,insertColMutationWithSetWorksheetColWidth,insertColMutationWithSetNumfmt,insertColMutationWithRemoveNumfmt,insertColMutationWithSetSelection,insertRowMutationWithSelf,insertRowMutationWithMoveRange,insertRowMutationWithMoveRow,insertRowMutationWithRemoveRow,insertRowMutationWithSetRangeValues,insertRowMutationWithSetWorksheetRowAutoHeight,insertRowMutationWithSetWorksheetRowHeight,insertRowMutationWithSetWorksheetRowIsAutoHeight,insertRowMutationWithSetRowData,insertRowMutationWithSetRowHidden,insertRowMutationWithSetRowVisible,insertRowMutationWithSetNumfmt,insertRowMutationWithRemoveNumfmt,insertRowMutationWithSetSelection,moveColMutationWithSelf,moveColMutationWithSetRangeValues,moveColMutationWithMoveRange,moveColMutationWithSetColData,moveColMutationWithSetColHidden,moveColMutationWithSetColVisible,moveColMutationWithSetWorksheetColWidth,moveColMutationWithSetNumfmt,moveColMutationWithSetSelection,moveColMutationWithRemoveNumfmt,moveRowMutationWithSelf,moveRowMutationWithSetRangeValues,moveRowMutationWithMoveRange,moveRowMutationWithSetWorksheetRowAutoHeight,moveRowMutationWithSetWorksheetRowHeight,moveRowMutationWithSetWorksheetRowIsAutoHeight,moveRowMutationWithSetRowData,moveRowMutationWithSetRowHidden,moveRowMutationWithSetRowVisible,moveRowMutationWithSetNumfmt,moveRowMutationWithRemoveNumfmt,moveRowMutationWithSetSelection,moveRangeMutationWithSelf,moveRangeMutationWithSetNumfmt,moveRangeMutationWithRemoveNumfmt,removeColMutationWithSelf,removeColMutationWithMoveCol,removeColMutationWithMoveRange,removeColMutationWithSetRangeValues,removeColMutationWithSetColData,removeColMutationWithSetColHidden,removeColMutationWithSetColVisible,removeColMutationWithSetWorksheetColWidth,removeColMutationWithSetNumfmt,removeColMutationWithRemoveNumfmt,removeColMutationWithSetSelection,removeRowMutationWithSelf,removeRowMutationWithMoveRow,removeRowMutationWithMoveRange,removeRowMutationWithSetRangeValues,removeRowMutationWithSetWorksheetRowAutoHeight,removeRowMutationWithSetWorksheetRowHeight,removeRowMutationWithSetWorksheetRowIsAutoHeight,removeRowMutationWithSetRowData,removeRowMutationWithSetRowHidden,removeRowMutationWithSetRowVisible,removeRowMutationWithSetNumfmt,removeRowMutationWithRemoveNumfmt,removeRowMutationWithSetSelection,setRangeValuesMutationWithSelf,setRangeValuesWithMoveRange,setWorksheetNameWithInsertSheet,setWorksheetNameMutationWithSelf,setFrozenMutationWithSelf,setTabColorMutationWithSelf,setWorksheetColWidthMutationWithSelf,setWorksheetRowAutoHeightMutationWithSelf,setWorksheetRowHeightMutationWithSelf,setWorksheetRowIsAutoHeightMutationWithSelf,setRowDataMutationWithSelf,setColDataMutationWithSelf,setNumfmtMutationWithSelf,setNumfmtMutationWithRemoveNumfmt,removeNumfmtMutationWithSelf,removeNumfmtMutationWithSetNumfmt,addConditionalFormattingRuleMutationWithSelf,setConditionalFormattingRuleMutationWithSelf,moveConditionalFormattingRuleMutationWithSelf,deleteConditionalFormattingRuleMutationWithSelf,addDataValidationMutationWithSelf,updateDataValidationMutationWithSelf,removeDataValidationMutationWithSelf,moveColMutationWithAddDataValidation,moveRowMutationWithAddDataValidation,insertColMutationWithAddDataValidation,removeColMutationWithAddDataValidation,removeRowMutationWithAddDataValidation,moveColMutationWithUpdateDataValidation,moveRowMutationWithUpdateDataValidation,insertColMutationWithUpdateDataValidation,insertRowMutationWithUpdateDataValidation,removeColMutationWithUpdateDataValidation,removeRowMutationWithUpdateDataValidation,addDataValidationMutationWithUpdate,updateDataValidationMutationWithAdd,updateDataValidationMutationWithRemoveSelf,insertColMutationWithSetSheetsFilterCriteria,insertColMutationWithSetSheetsFilterRange,insertRowMutationWithSetSheetsFilterRange,moveColMutationWithSetSheetsFilterCriteria,moveColMutationWithSetSheetsFilterRange,moveRowMutationWithSetSheetsFilterRange,removeColMutationWithSetSheetsFilterCriteria,removeColMutationWithSetSheetsFilterRange,removeRowMutationWithSetSheetsFilterRange,setSheetsFilterCriteriaWithSelf,setSheetsFilterCriteriaWithRemoveSheetsFilter,setSheetsFilterCriteriaWithSetRangeValues,setSheetsFilterCriteriaWithMoveRange,setSheetsFilterRangeWithSelf,setSheetsFilterRangeWithRemoveSheetsFilter,addWorksheetMergeMutationWithSelf,addWorksheetMergeMutationWithInsertColMutation,insertColMutationWithAddMerge,addWorksheetMergeMutationWithInsertRowMutation,insertRowMutationWithAddMerge,addWorksheetMergeMutationWithMoveColMutation,moveColMutationWithAddMerge,addWorksheetMergeMutationWithMoveRowMutation,moveRowsMutationWithAddMerge,addWorksheetMergeMutationWithMoveRangeMutation,moveRangeMutationWithAddMerge,addWorksheetMergeMutationWithRemoveColMutation,removeColMutationWithAddMerge,addWorksheetMergeMutationWithRemoveRowMutation,removeRowMutationWithAddMerge,addWorksheetMergeMutationWithSetRangeValues,setRangeValueMutationWithAddMerge,addWorksheetMergeMutationWithRemoveWorksheetMergeMutation,removeSheetMutationWithAddWorksheetMerge,insertColMutationWithRemoveWorksheetMergeMutation,insertRowMutationWithRemoveWorksheetMergeMutation,moveColMutationWithRemoveWorksheetMerge,moveRowMutationWithRemoveWorksheetMerge,removeColMutationWithRemoveWorksheetMerge,removeRowMutationWithRemoveWorksheetMerge,removeSheetMutationWithRemoveWorksheetMerge,removeWorksheetMergeMutationWithAddMerge,removeWorksheetMergeMutationWithInsertRowMutation,removeWorksheetMergeMutationWithInsertColMutation,removeWorksheetMergeMutationWithMoveColMutation,removeWorksheetMergeMutationWithMoveRowMutation,removeWorksheetMergeMutationWithRemoveColMutation,removeWorksheetMergeMutationWithRemoveRowMutation,addWorksheetMergeMutationWithSetSelection,removeWorksheetMergeMutationWithSetSelection,addCommentMutationWithSelf,deleteCommentMutationWithAdd,deleteCommentMutationWithSelf,updateCommentRefWithSelf,updateCommentWithSelf,insertColWithAddComment,insertRowWithAddComment,moveColWithAddComment,moveRowWithAddComment,removeColWithAddComment,removeRowWithAddComment,insertColWithUpdateCommentRef,insertRowWithUpdateCommentRef,moveColsWithUpdateCommentRef,moveRowsWithUpdateCommentRef,removeColWithUpdateCommentRef,removeRowWithUpdateCommentRef,addHyperLinkWithSelf,removeHyperLinkWithSelf,updateHyperLinkWithSelf,updateHyperLinkRefWithSelf,addRangeProtectionWithAddComment,addRangeProtectionWithAddConditionRule,addRangeProtectionWithSelf,addRangeProtectionWithAddWorksheetMerge,addRangeProtectionWithAddWorksheetProtection,addRangeProtectionWithDeleteConditionFormattingRule,addRangeProtectionWithInsertCol,addRangeProtectionWithInsertRow,addRangeProtectionWithMoveCol,addRangeProtectionWithMoveRange,addRangeProtectionWithMoveRow,addRangeProtectionWithRemoveCol,addRangeProtectionWithRemoveDataValidation,addRangeProtectionWithRemoveNumfmt,addRangeProtectionWithRemoveFilter,addRangeProtectionWithRemoveWorksheetMerge,addRangeProtectionWithSetConditionalFormattingRule,addRangeProtectionWithSetFrozen,addRangeProtectionWithSetNumfmt,addRangeProtectionWithSetRangeProtection,addRangeProtectionWithSetRangeValue,addRangeProtectionWithSetWorksheetColWidth,addRangeProtectionWithUpdateComment,addRangeProtectionWithUpdateDataValidation,setRangeProtectionWithAddComment,setRangeProtectionWithAddConditionRule,setRangeProtectionWithAddWorksheetMerge,setRangeProtectionWithAddWorksheetProtection,setRangeProtectionWithDeleteConditionFormattingRule,setRangeProtectionWithInsertCol,setRangeProtectionWithInsertRow,setRangeProtectionWithMoveCol,setRangeProtectionWithMoveRange,setRangeProtectionWithMoveRow,setRangeProtectionWithRemoveCol,setRangeProtectionWithRemoveRow,setRangeProtectionWithRemoveDataValidation,setRangeProtectionWithRemoveFilter,setRangeProtectionWithRemoveWorksheetMerge,setRangeProtectionWithSetConditionalFormattingRule,setRangeProtectionWithSetFrozen,setRangeProtectionWithSetNumfmt,setRangeProtectionWithSetRangeProtection,setRangeProtectionWithSetRangeValue,setRangeProtectionWithSetWorksheetColWidth,setRangeProtectionWithUpdateComment,setRangeProtectionWithUpdateDataValidation,addWorksheetProtectionWithAddComment,addWorksheetProtectionWithAddConditionRule,addWorksheetProtectionWithAddRangeProtection,addWorksheetProtectionWithAddWorksheetMerge,addWorksheetProtectionWithSelf,addWorksheetProtectionWithChangeSheetOrder,addWorksheetProtectionWithDeleteConditionFormattingRule,addWorksheetProtectionWithInsertCol,addWorksheetProtectionWithInsertRow,addWorksheetProtectionWithMoveCol,addWorksheetProtectionWithMoveRow,addWorksheetProtectionWithMoveRange,addWorksheetProtectionWithRemoveCol,addWorksheetProtectionWithRemoveRow,addWorksheetProtectionWithRemoveDataValidation,addWorksheetProtectionWithRemoveNumfmt,addWorksheetProtectionWithRemoveWorksheetMerge,addWorksheetProtectionWithRemoveFilter,addWorksheetProtectionWithRemoveWorksheet,addWorksheetProtectionWithSetConditionalFormattingRule,addWorksheetProtectionWithSetFrozen,addWorksheetProtectionWithSetNumfmt,addWorksheetProtectionWithSetRangeProtection,addWorksheetProtectionWithSetWorksheetColWidth,addWorksheetProtectionWithSetWorksheetName,addWorksheetProtectionWithUpdateComment,addWorksheetProtectionWithUpdateDataValidation,insertRowMutationWithReorderRange,insertColMutationWithReorderRange,removeRowMutationWithReorderRange,removeColMutationWithReorderRange,moveRowMutationWithReorderRange,moveColMutationWithReorderRange,moveRangeMutationWithReorderRange,setRangeValuesMutationWithReorderRange,reorderRangeMutationWithSelf,setDrawingApplyMutationWithSelf,OthersWithRevertRevision,RevertRevisionMutationWithOthers];let SheetTransformController=class SheetTransformController extends _univerjs_core['Disposable']{constructor(_0x17c8ed){const _0xd1b569=_0xfc9601;super(),this[_0xd1b569(0x288)]=_0x17c8ed,SHEET_ALL_ALGORITHMS[_0xd1b569(0x302)](_0x2dc128=>{const _0x460c1e=_0xd1b569;this[_0x460c1e(0x288)]['registerTransformAlgorithm'](_0x2dc128);});}};SheetTransformController=__decorate([__decorateParam(0x0,ITransformService)],SheetTransformController);function parseProtocolChangeset(_0x5770a2){const _0x22be7b=_0xfc9601;var _0x19e808,_0x5e6e4b;return{..._0x5770a2,'mutations':(_0x19e808=(_0x5e6e4b=_0x5770a2[_0x22be7b(0x356)])===null||_0x5e6e4b===void 0x0?void 0x0:_0x5e6e4b[_0x22be7b(0x3b3)](parseProtocolMutation))!==null&&_0x19e808!==void 0x0?_0x19e808:[]};}function parseProtocolCommand(_0x88ecd5){const _0xd6f29c=_0xfc9601;return _0x88ecd5[_0xd6f29c(0x3b3)](_0x47ca2e=>({'id':_0x47ca2e['id'],'params':JSON['parse'](_0x47ca2e['data'])}));}function parseChangesetToProtocol(_0x40b2ab){const _0x10c0b1=_0xfc9601;var _0x117f98,_0x5fe42d;return{..._0x40b2ab,'mutations':(_0x117f98=(_0x5fe42d=_0x40b2ab[_0x10c0b1(0x356)])===null||_0x5fe42d===void 0x0?void 0x0:_0x5fe42d['map'](parseMutationToProtocol))!==null&&_0x117f98!==void 0x0?_0x117f98:[]};}function parseProtocolMutation(_0x58a965){const _0x1f6c88=_0xfc9601;return{'id':_0x58a965['id'],'params':JSON[_0x1f6c88(0x241)](_0x58a965[_0x1f6c88(0x3db)])};}function parseMutationToProtocol(_0x1fad05){const _0x40c54c=_0xfc9601;return{'id':_0x1fad05['id'],'data':JSON[_0x40c54c(0x2f0)](_0x1fad05['params'])};}let CollaborationEvent=function(_0x224799){const _0x33f615=_0xfc9601;return _0x224799[_0x33f615(0x2c2)]=_0x33f615(0x355),_0x224799[_0x33f615(0x230)]=_0x33f615(0x20d),_0x224799[_0x33f615(0x381)]=_0x33f615(0x314),_0x224799[_0x33f615(0x306)]=_0x33f615(0x21e),_0x224799[_0x33f615(0x352)]=_0x33f615(0x341),_0x224799['CHANGESET_SHOULD_RETRY']=_0x33f615(0x2b5),_0x224799[_0x33f615(0x3dc)]=_0x33f615(0x3ae),_0x224799[_0x33f615(0x1c0)]=_0x33f615(0x296),_0x224799[_0x33f615(0x2d6)]=_0x33f615(0x25f),_0x224799[_0x33f615(0x33b)]=_0x33f615(0x20c),_0x224799[_0x33f615(0x39a)]=_0x33f615(0x1f6),_0x224799['LIVESHARE_REQUEST_HOST']=_0x33f615(0x386),_0x224799[_0x33f615(0x3b5)]=_0x33f615(0x1f9),_0x224799['LIVESHARE_OPERATION']=_0x33f615(0x3c4),_0x224799[_0x33f615(0x23d)]=_0x33f615(0x3f0),_0x224799[_0x33f615(0x282)]=_0x33f615(0x2e2),_0x224799[_0x33f615(0x2b0)]=_0x33f615(0x25c),_0x224799[_0x33f615(0x1d7)]=_0x33f615(0x264),_0x224799[_0x33f615(0x35c)]=_0x33f615(0x237),_0x224799[_0x33f615(0x212)]='update_permission_obj',_0x224799[_0x33f615(0x358)]=_0x33f615(0x1c9),_0x224799[_0x33f615(0x362)]=_0x33f615(0x1c4),_0x224799;}({});var name=_0xfc9601(0x22b),version=_0xfc9601(0x213);const COLLABORATION_PLUGIN_CONFIG_KEY=_0xfc9601(0x251),configSymbol=Symbol(COLLABORATION_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let RevisionController=class RevisionController extends _univerjs_core[_0xfc9601(0x2a7)]{constructor(_0x3e5de1){const _0x57ba88=_0xfc9601;super(),this['_commandService']=_0x3e5de1,[RevertRevisionMutation]['forEach'](_0x2effec=>this[_0x57ba88(0x36c)]['registerCommand'](_0x2effec));}};RevisionController=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x3d0)])],RevisionController);function packNumberMap(_0x437147){const _0x4df497=_0xfc9601,_0xe89750={},_0x1e0c27={},_0x1f4714=Object[_0x4df497(0x38e)](_0x437147)[_0x4df497(0x3b3)](Number)[_0x4df497(0x3be)]((_0x5d76df,_0x311677)=>_0x5d76df-_0x311677);if(_0x1f4714[_0x4df497(0x29d)]===0x0)return _0xe89750;for(const _0x47fee1 of _0x1f4714){const _0x17e791=_0x437147[_0x47fee1];if(!_univerjs_core[_0x4df497(0x1c3)][_0x4df497(0x1ba)](_0x17e791))continue;const _0x7ae8f1=String(_0x17e791);if(!_0x1e0c27[_0x7ae8f1])_0x1e0c27[_0x7ae8f1]=[];_0x1e0c27[_0x7ae8f1][_0x4df497(0x380)](_0x47fee1);}for(const [_0x44749e,_0x4ab2b5]of Object[_0x4df497(0x2b4)](_0x1e0c27)){const _0x4ee4f7=[];if(_0x4ab2b5['length']===0x0)continue;let _0x55d5c6=_0x4ab2b5[0x0],_0x11d509=_0x55d5c6;for(let _0x1a2c96=0x1;_0x1a2c96<_0x4ab2b5[_0x4df497(0x29d)];_0x1a2c96++){const _0x38ac51=_0x4ab2b5[_0x1a2c96];if(_0x38ac51!==_0x11d509+0x1){if(_0x55d5c6===_0x11d509)_0x4ee4f7[_0x4df497(0x380)](_0x55d5c6);else _0x4ee4f7[_0x4df497(0x380)]([_0x55d5c6,_0x11d509]);_0x55d5c6=_0x38ac51;}_0x11d509=_0x38ac51;}if(_0x55d5c6===_0x11d509)_0x4ee4f7['push'](_0x55d5c6);else _0x4ee4f7[_0x4df497(0x380)]([_0x55d5c6,_0x11d509]);if(_0x4ee4f7['length']===0x1&&typeof _0x4ee4f7[0x0]===_0x4df497(0x28f))_0xe89750[_0x44749e]=_0x4ee4f7[0x0];else _0xe89750[_0x44749e]=_0x4ee4f7;}return _0xe89750;}function unpackNumberMap(_0x1ca6a4){const _0x3840f2=_0xfc9601,_0x2687b9={};for(const [_0x2c797c,_0x54ebb7]of Object[_0x3840f2(0x2b4)](_0x1ca6a4)){const _0x51bac7=Number(_0x2c797c);if(typeof _0x54ebb7===_0x3840f2(0x28f)){_0x2687b9[_0x54ebb7]=_0x51bac7;continue;}for(const _0x35e731 of _0x54ebb7)if(Array['isArray'](_0x35e731)){const [_0x4dc3f0,_0x313844]=_0x35e731;for(let _0x6dcd64=_0x4dc3f0;_0x6dcd64<=_0x313844;_0x6dcd64++)_0x2687b9[_0x6dcd64]=_0x51bac7;}else _0x2687b9[_0x35e731]=_0x51bac7;}return _0x2687b9;}const transformRefStyleFromCells=_0x14346f=>{const _0x58c852=_0xfc9601,_0x3c77a0={};if(!_0x14346f)return{'cellValue':_0x14346f,'styleRefMap':void 0x0};const _0x26a93b=[];return{'cellValue':new _univerjs_core[(_0x58c852(0x3c2))](_univerjs_core['Tools']['deepClone'](_0x14346f))[_0x58c852(0x387)]((_0x58e218,_0x3f32d1,_0x183299)=>{const _0x29e3d6=_0x58c852,_0x4c2a49=_0x183299&&_0x183299['s'];if(_0x4c2a49){if(typeof _0x4c2a49===_0x29e3d6(0x1e7)){const _0x332d0a=JSON[_0x29e3d6(0x2f0)](_0x4c2a49),_0x5d7239=_0x26a93b[_0x29e3d6(0x2e3)](_0x3b4c48=>_0x3b4c48===_0x332d0a);if(_0x5d7239>-0x1)_0x183299['s']=''+_0x5d7239;else{const _0x29e70b=_0x26a93b['push'](_0x332d0a)-0x1;_0x3c77a0[_0x29e70b]=_0x4c2a49,_0x183299['s']=''+_0x29e70b;}}}})[_0x58c852(0x1d1)](),'styleRefMap':_0x3c77a0};},transformCellsFromRefStyle=(_0x36e15d,_0x462e07)=>{const _0x1a1e3e=_0xfc9601;if(!_0x36e15d||!_0x462e07)return _0x36e15d;return new _univerjs_core['ObjectMatrix'](_univerjs_core[_0x1a1e3e(0x1c3)]['deepClone'](_0x36e15d))[_0x1a1e3e(0x387)]((_0x3d7220,_0x571a54,_0x30b406)=>{const _0x45c78b=_0x1a1e3e,_0x30ab70=_0x30b406&&_0x30b406['s'];if(_0x30ab70){if(typeof _0x30ab70===_0x45c78b(0x254)){const _0x24c99e=_0x462e07[_0x30ab70];if(_0x24c99e)_0x30b406['s']=_0x24c99e;}}})['getMatrix']();},COMPRESS_MUTATION_APPLY=(0x0,_univerjs_core[_0xfc9601(0x2dd)])(_0xfc9601(0x3e8)),COMPRESS_MUTATION_SEND=(0x0,_univerjs_core[_0xfc9601(0x2dd)])(_0xfc9601(0x399));var CompressMutationService=class{constructor(){const _0x306296=_0xfc9601;_defineProperty(this,_0x306296(0x26a),new _univerjs_core[(_0x306296(0x22e))]({'COMPRESS_MUTATION_APPLY':COMPRESS_MUTATION_APPLY,'COMPRESS_MUTATION_SEND':COMPRESS_MUTATION_SEND})),this[_0x306296(0x2be)]();}[_0xfc9601(0x2be)](){const _0x4c9fdd=_0xfc9601;this[_0x4c9fdd(0x26a)]['intercept'](this[_0x4c9fdd(0x26a)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'],{'priority':-0x1,'handler':_0x1e64bf=>_0x1e64bf}),this['interceptor'][_0x4c9fdd(0x229)](this[_0x4c9fdd(0x26a)][_0x4c9fdd(0x30c)]()[_0x4c9fdd(0x399)],{'priority':-0x1,'handler':_0x22b2b4=>_0x22b2b4}),this[_0x4c9fdd(0x30d)]();}[_0xfc9601(0x30d)](){const _0x7784c6=_0xfc9601;this[_0x7784c6(0x26a)]['intercept'](this['interceptor']['getInterceptPoints']()[_0x7784c6(0x3e8)],{'handler':(_0x2991ed,_0x39ad19,_0x225713)=>{const _0x41a10f=_0x7784c6;if(!_0x2991ed)return _0x225713(_0x2991ed);return _0x225713(_0x2991ed[_0x41a10f(0x3b3)](_0x300b72=>{const _0x922ea7=_0x41a10f;if(_0x300b72['params'][_0x922ea7(0x329)])return _0x300b72;if(_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x30f)]['id']){const _0x522cf1=_0x300b72[_0x922ea7(0x3eb)];if(!_0x522cf1[_0x922ea7(0x239)])return _0x300b72;const _0x13dfd4=transformCellsFromRefStyle(_0x522cf1[_0x922ea7(0x31f)],_0x522cf1[_0x922ea7(0x239)]);return{..._0x300b72,'params':{..._0x522cf1,'cellValue':_0x13dfd4}};}if(_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x304)]['id']||_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x1f5)]['id'])return this['_handleDecompressNumberMapMutationApply'](_0x300b72);return _0x300b72;}));}}),this[_0x7784c6(0x26a)][_0x7784c6(0x229)](this['interceptor'][_0x7784c6(0x30c)]()[_0x7784c6(0x399)],{'handler':(_0x5f107a,_0x51ef43,_0x17f1d9)=>{if(!_0x5f107a)return _0x17f1d9(_0x5f107a);return _0x17f1d9(_0x5f107a['map'](_0x461fad=>{const _0x87bc08=_0x5cb6;if(_0x461fad[_0x87bc08(0x3eb)][_0x87bc08(0x329)])return _0x461fad;if(_0x461fad['id']===_univerjs_sheets['SetRangeValuesMutation']['id']){const _0x72cd95=_0x461fad[_0x87bc08(0x3eb)];if(_0x72cd95[_0x87bc08(0x239)])return _0x461fad;return{..._0x461fad,'params':{..._0x72cd95,...transformRefStyleFromCells(_0x72cd95['cellValue'])}};}else{if(_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x243)]['id'])return this[_0x87bc08(0x35e)](_0x461fad,_0x51ef43);else{if(_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x304)]['id']||_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x1f5)]['id'])return this[_0x87bc08(0x34a)](_0x461fad);}}return _0x461fad;}));}});}['_handleInsertSheetCompressMutationSend'](_0x244a38,_0x466817){const _0x495e83=_0xfc9601,_0x2c499f=_0x244a38[_0x495e83(0x3eb)],{unitId:_0x30f569,sheet:_0x39f539}=_0x2c499f,_0x2a83d0=_0x466817[_0x495e83(0x208)](_0x30f569,_univerjs_core[_0x495e83(0x2c3)][_0x495e83(0x31b)]);if(!_0x2a83d0)return _0x244a38;const _0x2a6922={};return new _univerjs_core[(_0x495e83(0x3c2))](_0x39f539[_0x495e83(0x203)])[_0x495e83(0x387)]((_0x664043,_0x50811d,_0x451712)=>{const _0x2fe5d3=_0x495e83;if(_0x451712&&_0x451712['s']&&typeof _0x451712['s']===_0x2fe5d3(0x254)&&!_0x2a6922[_0x451712['s']])_0x2a6922[_0x451712['s']]=_0x2a83d0['getStyles']()[_0x2fe5d3(0x3a1)](_0x451712['s']);}),{..._0x244a38,'params':{..._0x2c499f,'styles':_0x2a6922}};}[_0xfc9601(0x34a)](_0x4ce1bb){const _0xb85d08=_0xfc9601,_0x2dca64=_0x4ce1bb[_0xb85d08(0x3eb)];let _0x352d0d,_0xe9b8ba;'rowHeight'in _0x2dca64?(_0x352d0d=_0xb85d08(0x32e),_0xe9b8ba=_0x2dca64[_0xb85d08(0x32e)]):(_0x352d0d=_0xb85d08(0x2de),_0xe9b8ba=_0x2dca64[_0xb85d08(0x2de)]);if(typeof _0xe9b8ba===_0xb85d08(0x28f))return _0x4ce1bb;const _0x412657=packNumberMap(_0xe9b8ba);return{..._0x4ce1bb,'params':{..._0x2dca64,[_0x352d0d]:_0x412657,'compress':!![]}};}[_0xfc9601(0x222)](_0x295986){const _0x17f4c4=_0xfc9601,_0x5212c7=_0x295986[_0x17f4c4(0x3eb)];if(!(_0x17f4c4(0x415)in _0x5212c7)||!_0x5212c7[_0x17f4c4(0x415)])return _0x295986;let _0x27d37b,_0x2ffbad;if(_0x17f4c4(0x32e)in _0x5212c7)_0x27d37b='rowHeight',_0x2ffbad=_0x5212c7['rowHeight'];else{if(_0x17f4c4(0x2de)in _0x5212c7)_0x27d37b=_0x17f4c4(0x2de),_0x2ffbad=_0x5212c7['colWidth'];else return _0x295986;}if(typeof _0x2ffbad==='number')return _0x295986;const _0x29459d=unpackNumberMap(_0x2ffbad);return{..._0x295986,'params':{..._0x5212c7,[_0x27d37b]:_0x29459d}};}};const SINGLE_SNAPSHOT_MUTATIONS=new Set([_univerjs_sheets[_0xfc9601(0x243)]['id'],_univerjs_sheets[_0xfc9601(0x376)]['id'],_univerjs_sheets[_0xfc9601(0x2c8)]['id']]),SINGLE_HISTORY_MUTATIONS=new Set([_univerjs_sheets[_0xfc9601(0x243)]['id'],_univerjs_sheets[_0xfc9601(0x376)]['id'],RevertRevisionMutation['id'],_univerjs_sheets[_0xfc9601(0x2ec)]['id'],_univerjs_sheets[_0xfc9601(0x3a8)]['id'],_univerjs_sheets[_0xfc9601(0x1e5)]['id'],_univerjs_sheets[_0xfc9601(0x3d8)]['id'],_univerjs_sheets[_0xfc9601(0x39c)]['id'],CreateUnitMutation['id'],_univerjs_sheets[_0xfc9601(0x3f9)]['id'],_univerjs_sheets[_0xfc9601(0x389)]['id'],_univerjs_sheets[_0xfc9601(0x1e4)]['id'],_univerjs_sheets['CopyWorksheetEndMutation']['id'],_univerjs_sheets['SetTabColorMutation']['id'],_univerjs_sheets['SetWorkbookNameMutation']['id'],_univerjs_sheets[_0xfc9601(0x2b1)]['id'],_univerjs_sheets['SetWorksheetProtectionMutation']['id'],_univerjs_sheets[_0xfc9601(0x354)]['id'],_univerjs_sheets[_0xfc9601(0x30a)]['id']]);let RevisionService=class RevisionService{constructor(_0x87a98e){const _0x952727=_0xfc9601;this[_0x952727(0x24c)]=_0x87a98e;}[_0xfc9601(0x2b2)](_0x2f5342){const _0x3cb801=_0xfc9601,_0x41eb3c=this[_0x3cb801(0x24c)]['getUnit'](_0x2f5342);if(!_0x41eb3c)throw new Error('[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitId:\x20'+_0x2f5342+'.');return _0x41eb3c[_0x3cb801(0x255)]();}['incrementRevOfUnit'](_0x480c92){const _0x45bdf3=_0xfc9601,_0x14f97e=this['_univerInstanceService'][_0x45bdf3(0x208)](_0x480c92);if(!_0x14f97e)throw new Error(_0x45bdf3(0x205)+_0x480c92+'.');return _0x14f97e[_0x45bdf3(0x2e1)](),_0x14f97e[_0x45bdf3(0x255)]();}[_0xfc9601(0x416)](_0x272fee,_0x5b7c98){const _0x11f1aa=_0xfc9601,_0xcc52db=this['_univerInstanceService'][_0x11f1aa(0x208)](_0x272fee);if(_0xcc52db)_0xcc52db['setRev'](_0x5b7c98);}};RevisionService=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x38f)])],RevisionService);const textEncoder=new TextEncoder(),textDecoder=new TextDecoder();function encodeWorksheetOtherMetas(_0x7e104b){const _0x3aaf15=_0xfc9601,_0x58464=['id','name','rowCount',_0x3aaf15(0x1b8),_0x3aaf15(0x203)],_0x44ed24={};return Object[_0x3aaf15(0x38e)](_0x7e104b)[_0x3aaf15(0x302)](_0x2f3422=>{const _0x1280a5=_0x3aaf15;if(!_0x58464[_0x1280a5(0x3ec)](_0x2f3422))_0x44ed24[_0x2f3422]=_univerjs_core[_0x1280a5(0x1c3)][_0x1280a5(0x1cf)](_0x7e104b[_0x2f3422]);}),textEncoder[_0x3aaf15(0x406)](JSON['stringify'](_0x44ed24));}function encodeWorkbookOtherMetas(_0x13be65){const _0x408062=_0xfc9601,_0xc6e24f=['id',_0x408062(0x3ef),_0x408062(0x2f3),_0x408062(0x384),_0x408062(0x3b2),_0x408062(0x24a)],_0x583119={};return Object[_0x408062(0x38e)](_0x13be65)[_0x408062(0x302)](_0x2e12ce=>{const _0x4e5ddc=_0x408062;if(!_0xc6e24f[_0x4e5ddc(0x3ec)](_0x2e12ce))_0x583119[_0x2e12ce]=_univerjs_core[_0x4e5ddc(0x1c3)]['deepClone'](_0x13be65[_0x2e12ce]);}),textEncoder[_0x408062(0x406)](JSON[_0x408062(0x2f0)](_0x583119));}function encodeDocOriginalMeta(_0x109e85){const _0x38259f=_0xfc9601,_0x31126d=['id',_0x38259f(0x3ef),_0x38259f(0x269),_0x38259f(0x24a)],_0x22bcea={};return Object['keys'](_0x109e85)[_0x38259f(0x302)](_0x49b1df=>{const _0x5dcbeb=_0x38259f;if(!_0x31126d['includes'](_0x49b1df))_0x22bcea[_0x49b1df]=_univerjs_core[_0x5dcbeb(0x1c3)][_0x5dcbeb(0x1cf)](_0x109e85[_0x49b1df]);}),textEncoder[_0x38259f(0x406)](JSON[_0x38259f(0x2f0)](_0x22bcea));}function decodeWorksheetOtherMetas(_0x464f23){const _0x26792a=_0xfc9601;if(typeof _0x464f23===_0x26792a(0x254))return JSON[_0x26792a(0x241)](b64DecodeUnicode(_0x464f23));return JSON['parse'](textDecoder[_0x26792a(0x206)](_0x464f23));}function decodePartOfCellData(_0x56e5b8){const _0x177016=_0xfc9601;if(_0x56e5b8 instanceof Uint8Array){let _0xd6b9ed=textDecoder[_0x177016(0x206)](_0x56e5b8);const _0x44cb98=JSON[_0x177016(0x241)](_0xd6b9ed);return _0xd6b9ed=null,_0x44cb98;}return _0x56e5b8;}function decodeDocOriginalMeta(_0x150f32){const _0x3caeac=_0xfc9601;if(typeof _0x150f32===_0x3caeac(0x254))return JSON[_0x3caeac(0x241)](b64DecodeUnicode(_0x150f32));return JSON['parse'](textDecoder[_0x3caeac(0x206)](_0x150f32));}const FRAGMENT_CELL_COUNT=0x100*0x14*0x14,MIN_BLOCK_SIZE=0x1*0x400*0x400;function splitCellDataToBlocks(_0x563bda,_0x26d45f=FRAGMENT_CELL_COUNT,_0x145203=MIN_BLOCK_SIZE){const _0x2b5e3=_0xfc9601,_0x3c58dc=Date['now'](),_0x5aff75=new _univerjs_core[(_0x2b5e3(0x3c2))](_0x563bda),{startRow:_0x30ce4d,endRow:_0x3aedd6,startColumn:_0x170e9c,endColumn:_0x14b583}=_0x5aff75[_0x2b5e3(0x23b)](),_0xe65cbc=[],_0x334771=Math[_0x2b5e3(0x26c)](_0x26d45f/(_0x14b583-_0x170e9c+0x1));let _0x33bb0a=_0x30ce4d,_0x363428=null,_0x5e9ed4=null,_0x156e83=0x0,_0x4d8091=0x0,_0x36300c=0x0,_0x1e07bd=0x0;while(_0x33bb0a<=_0x3aedd6){const _0x205373=Math['min'](_0x33bb0a+_0x334771-0x1,_0x3aedd6),{sliceData:_0x9b13c5,cellCount:_0x11fd1f}=_0x5aff75[_0x2b5e3(0x3d5)](_0x33bb0a,_0x205373);if(_0x11fd1f===0x0){if(_0x205373>=_0x3aedd6&&_0x5e9ed4!==null){const _0xa06820=serializeCellDataSlice(_0x5e9ed4);_0xe65cbc[_0x2b5e3(0x380)]({'id':(0x0,_univerjs_core[_0x2b5e3(0x256)])(0x13,_0x2b5e3(0x280)),'startRow':_0x156e83,'endRow':_0x3aedd6,'data':_0xa06820});}_0x33bb0a=_0x205373+0x1;continue;}if(_0x5e9ed4===null)_0x5e9ed4=_0x9b13c5,_0x156e83=_0x33bb0a;else _0x5e9ed4[_0x2b5e3(0x25a)](_0x9b13c5);_0x4d8091+=_0x11fd1f,_0x1e07bd+=_0x11fd1f;if(_0x363428===null)_0x36300c=serializeCellDataSlice(_0x5e9ed4)['byteLength'],_0x363428=_0x36300c/_0x4d8091;else _0x36300c+=_0x11fd1f*_0x363428;if(_0x205373>=_0x3aedd6||_0x36300c>=_0x145203){const _0x54234c=serializeCellDataSlice(_0x5e9ed4);_0xe65cbc['push']({'id':(0x0,_univerjs_core[_0x2b5e3(0x256)])(0x13,'0123456789'),'startRow':_0x156e83,'endRow':_0x205373,'data':_0x54234c}),_0x5e9ed4=null,_0x156e83=0x0,_0x4d8091=0x0,_0x36300c=0x0;}if(_0x205373>=_0x3aedd6)break;_0x33bb0a=_0x205373+0x1;}return{'blocks':_0xe65cbc,'totalCells':_0x1e07bd,'totalTime':Date[_0x2b5e3(0x1e0)]()-_0x3c58dc};}function serializeCellDataSlice(_0x17d317){const _0xd11aa4=_0xfc9601,_0x129480=_0x17d317[_0xd11aa4(0x1d1)]();return textEncoder['encode'](JSON[_0xd11aa4(0x2f0)](_0x129480));}function mapDocumentTypeToUniverInstanceType(_0x536f3d){return _0x536f3d;}function b64EncodeUnicode(_0x2a94a3){const _0xa67f85=_0xfc9601,_0x5922d8=textEncoder['encode'](_0x2a94a3);let _0x1acca3='';for(let _0x44cff4=0x0;_0x44cff4<_0x5922d8[_0xa67f85(0x29d)];_0x44cff4++)_0x1acca3+=String['fromCharCode'](_0x5922d8[_0x44cff4]);return btoa(_0x1acca3);}function b64DecodeUnicode(_0x355336){const _0x3267e6=_0xfc9601,_0x157449=atob(_0x355336),_0x30d73f=_0x157449['length'];let _0x3b0a49=new Uint8Array(_0x30d73f);for(let _0x1e8654=0x0;_0x1e8654<_0x30d73f;_0x1e8654++)_0x3b0a49[_0x1e8654]=_0x157449[_0x3267e6(0x2ae)](_0x1e8654);const _0x287999=textDecoder[_0x3267e6(0x206)](_0x3b0a49);return _0x3b0a49=null,_0x287999;}async function limitConcurrencyTasks({tasks:_0x516866,handleTaskResult:_0x602fca,limit:limit=0xa,options:options={'retryCount':0x3,'retryDelay':0xc8},onError:_0x27f918}){const _0x3ed844=_0xfc9601;if(_0x516866[_0x3ed844(0x29d)]===0x0)return;const {retryCount:_0x138df2,retryDelay:_0x313a26}=options,_0x5486c8=_0x439db3=>new Promise(_0x1ec66f=>setTimeout(_0x1ec66f,_0x439db3)),_0x5cd42b=async _0x387cf3=>{let _0x489a74=0x0;while(!![])try{return await _0x387cf3();}catch(_0x23cf6c){_0x27f918===null||_0x27f918===void 0x0||_0x27f918(_0x23cf6c),_0x489a74++;if(_0x489a74>_0x138df2)throw _0x23cf6c;await _0x5486c8(_0x313a26);}};let _0x52f78e=0x0;const _0x1dad2d=Array[_0x3ed844(0x3a4)]({'length':Math['min'](limit,_0x516866[_0x3ed844(0x29d)])},async()=>{const _0x4fea78=_0x3ed844;while(!![]){const _0x35afc1=_0x52f78e++;if(_0x35afc1>=_0x516866[_0x4fea78(0x29d)])break;let _0x50a581=await _0x5cd42b(_0x516866[_0x35afc1]);if(_0x602fca)_0x602fca(_0x50a581);_0x50a581=null;}});await Promise[_0x3ed844(0x3a9)](_0x1dad2d);}async function measureAsyncOperation(_0x4a8634,_0x41b52c,_0x3fb1db,_0x42ed6d=0x2710,_0x4e536e){const _0x4a5f94=_0xfc9601,_0x2becd3=performance['now']();_0x3fb1db===null||_0x3fb1db===void 0x0||_0x3fb1db[_0x4a5f94(0x283)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x221)+(_0x4e536e!==null&&_0x4e536e!==void 0x0?_0x4e536e:''));try{const _0x219394=await _0x41b52c(),_0x34ae75=performance[_0x4a5f94(0x1e0)]()-_0x2becd3;if(_0x34ae75>_0x42ed6d)_0x3fb1db[_0x4a5f94(0x28e)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x3a6)+_0x34ae75[_0x4a5f94(0x1fc)](0x2)+_0x4a5f94(0x2a6));else _0x3fb1db[_0x4a5f94(0x283)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x369)+_0x34ae75[_0x4a5f94(0x1fc)](0x2)+'\x20ms');return _0x219394;}catch(_0x172b35){const _0x2daba0=performance['now']()-_0x2becd3;_0x3fb1db[_0x4a5f94(0x2ef)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x392)+_0x2daba0['toFixed'](0x2)+'\x20ms',_0x172b35);throw _0x172b35;}}function measureSyncOperation(_0x2b27c3,_0x4220a1,_0x496c55,_0x568a55=0x2710,_0x1e1d55){const _0x3b643b=_0xfc9601,_0x196cdf=performance['now']();_0x496c55===null||_0x496c55===void 0x0||_0x496c55[_0x3b643b(0x283)](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x221)+(_0x1e1d55!==null&&_0x1e1d55!==void 0x0?_0x1e1d55:''));try{const _0xf38db8=_0x4220a1(),_0x11fd7a=performance[_0x3b643b(0x1e0)]()-_0x196cdf;if(_0x11fd7a>_0x568a55)_0x496c55['warn'](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x3a6)+_0x11fd7a[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6));else _0x496c55[_0x3b643b(0x283)](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x369)+_0x11fd7a[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6));return _0xf38db8;}catch(_0x342f69){const _0x295e77=performance[_0x3b643b(0x1e0)]()-_0x196cdf;_0x496c55[_0x3b643b(0x2ef)]('sync\x20['+_0x2b27c3+_0x3b643b(0x392)+_0x295e77[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6),_0x342f69);throw _0x342f69;}}async function yieldToEventLoop(){await new Promise(_0x34a2f4=>{const _0x3baa35=_0x5cb6;typeof setImmediate===_0x3baa35(0x249)?setImmediate(_0x34a2f4):setTimeout(_0x34a2f4,0x0);});}async function generateTempDocumentSnapshot(_0xa91e3f,_0xf3c477,_0x57e268,_0x4622fc){const _0x2bb990=_0xfc9601;var _0x436d8f;const _0x3af2c1={'unitID':_0xf3c477['id'],'rev':_0x4622fc,'creator':'','name':(_0x436d8f=_0xf3c477[_0x2bb990(0x269)])!==null&&_0x436d8f!==void 0x0?_0x436d8f:'','resources':_0xf3c477['resources']||[],'originalMeta':encodeDocOriginalMeta(_0xf3c477)};return{'snapshot':{'unitID':_0x57e268,'rev':_0x3af2c1[_0x2bb990(0x3ef)],'type':_univerjs_core[_0x2bb990(0x2c3)]['UNIVER_DOC'],'workbook':void 0x0,'doc':_0x3af2c1}};}async function generateTemporarySnap(_0x4931ca,_0x25e5bf,_0x27b7b9,_0x29f68c,_0x4818f3,_0xc462df){const _0x5e8daf=_0xfc9601,_0x3ff01b={},_0x459384={};if(!await Promise[_0x5e8daf(0x3a9)](Object['entries'](_0x25e5bf[_0x5e8daf(0x3b2)])[_0x5e8daf(0x3b3)](async([_0x1635c1,_0x4781f3])=>{const _0x45da79=_0x5e8daf;_0x459384[_0x1635c1]={'id':_0x4781f3['id'],'type':_univerjs_core[_0x45da79(0x31d)]['GRID'],'name':_0x4781f3[_0x45da79(0x2f3)],'rowCount':_0x4781f3[_0x45da79(0x1c6)],'columnCount':_0x4781f3[_0x45da79(0x1b8)],'originalMeta':encodeWorksheetOtherMetas(_0x4781f3)};if(_0x4781f3[_0x45da79(0x203)]){const {blocks:_0x4064cc}=splitCellDataToBlocks(_0x4781f3[_0x45da79(0x203)]),_0x319b85=await Promise['all'](_0x4064cc[_0x45da79(0x3b3)](_0x3e084a=>_0x4818f3['saveSheetBlock'](_0x4931ca,{'unitID':_0x27b7b9,'type':_univerjs_core['UniverInstanceType'][_0x45da79(0x31b)],'block':_0x3e084a})));if(_0x319b85[_0x45da79(0x3ad)](_0x435c1d=>{const _0x41621b=_0x45da79;var _0x53824c;return((_0x53824c=_0x435c1d[_0x41621b(0x2ef)])===null||_0x53824c===void 0x0?void 0x0:_0x53824c[_0x41621b(0x394)])!==_univerjs_protocol['ErrorCode']['OK'];}))return![];_0x3ff01b[_0x1635c1]={'sheetID':_0x1635c1,'blocks':_0x319b85['map'](_0x2bcd15=>_0x2bcd15['blockID'])};}return!![];})))throw new Error(_0x5e8daf(0x34e));const _0x4c76ef=encodeWorkbookOtherMetas(_0x25e5bf),_0x65cebc={'unitID':_0x25e5bf['id'],'rev':_0x29f68c,'creator':'','name':_0x25e5bf[_0x5e8daf(0x2f3)],'sheetOrder':_0x25e5bf['sheetOrder'],'sheets':_0x459384,'blockMeta':_0x3ff01b,'resources':_0x25e5bf[_0x5e8daf(0x24a)]||[],'originalMeta':_0x4c76ef},_0x4a8bce=(_0x328632,_0x2732f1)=>{const _0x58ba21=_0x5e8daf;return _0x328632[_0x58ba21(0x259)](_0x5c26ea=>_0x2732f1[_0x58ba21(0x2b6)](_0x5c26ea));},_0x436a9a=_0x25e5bf[_0x5e8daf(0x384)]['length'],_0x43f0c9=Object[_0x5e8daf(0x38e)](_0x65cebc[_0x5e8daf(0x3b2)]),_0xed636d=Object[_0x5e8daf(0x38e)](_0x65cebc[_0x5e8daf(0x219)]);if(_0x436a9a!==_0x43f0c9[_0x5e8daf(0x29d)]||!_0x4a8bce(_0x25e5bf[_0x5e8daf(0x384)],_0x65cebc[_0x5e8daf(0x3b2)])){_0xc462df===null||_0xc462df===void 0x0||_0xc462df[_0x5e8daf(0x2ef)](_0x5e8daf(0x3f7),_0x5e8daf(0x2e0)+_0x27b7b9+'\x20'+_0x436a9a+'\x20'+_0x43f0c9[_0x5e8daf(0x29d)]+_0x5e8daf(0x3dd)+JSON[_0x5e8daf(0x2f0)](_0x25e5bf[_0x5e8daf(0x384)])+_0x5e8daf(0x388)+JSON[_0x5e8daf(0x2f0)](_0x43f0c9)+_0x5e8daf(0x2f6)+JSON['stringify'](Object[_0x5e8daf(0x38e)](_0x25e5bf['sheets'])));throw new Error('[generateTemporarySnap()]:\x20Sheet\x20order\x20mismatch');}if(_0x43f0c9[_0x5e8daf(0x29d)]!==_0xed636d['length']||!_0x4a8bce(_0x43f0c9,_0x65cebc[_0x5e8daf(0x219)])||!_0x4a8bce(_0xed636d,_0x65cebc[_0x5e8daf(0x3b2)])){_0xc462df===null||_0xc462df===void 0x0||_0xc462df['error'](_0x5e8daf(0x3f7),_0x5e8daf(0x1de)+_0x27b7b9+'\x20'+_0x43f0c9['length']+'\x20'+_0xed636d[_0x5e8daf(0x29d)]+_0x5e8daf(0x388)+JSON[_0x5e8daf(0x2f0)](_0x43f0c9)+'\x20Block\x20Metas:\x20'+JSON['stringify'](_0xed636d)+_0x5e8daf(0x2f6)+JSON[_0x5e8daf(0x2f0)](Object[_0x5e8daf(0x38e)](_0x25e5bf[_0x5e8daf(0x3b2)])));throw new Error(_0x5e8daf(0x2d9));}return{'snapshot':{'unitID':_0x27b7b9,'rev':_0x65cebc['rev'],'type':_univerjs_core[_0x5e8daf(0x2c3)][_0x5e8daf(0x31b)],'workbook':_0x65cebc,'doc':void 0x0}};}async function transformWorkbookDataToSnapshotNoSave(_0x2f888f,_0x5af838,_0x21a082,_0x576bbf){const _0x75ddf5=_0xfc9601,_0x115c11={};if(!await Promise[_0x75ddf5(0x3a9)](Object[_0x75ddf5(0x2b4)](_0x5af838[_0x75ddf5(0x3b2)])['map'](async([_0x30508a,_0x263b40])=>{const _0xfa1564=_0x75ddf5;if(_0x263b40[_0xfa1564(0x203)]){const {blocks:_0x47573d}=splitCellDataToBlocks(_0x263b40[_0xfa1564(0x203)]),_0x437e0e=await Promise[_0xfa1564(0x3a9)](_0x47573d[_0xfa1564(0x3b3)](_0x3237eb=>_0x576bbf[_0xfa1564(0x2ed)](_0x2f888f,{'unitID':_0x21a082,'type':_univerjs_core[_0xfa1564(0x2c3)][_0xfa1564(0x31b)],'block':_0x3237eb})));if(_0x437e0e[_0xfa1564(0x3ad)](_0x13445e=>{const _0x7da96f=_0xfa1564;var _0xbdd600;return((_0xbdd600=_0x13445e[_0x7da96f(0x2ef)])===null||_0xbdd600===void 0x0?void 0x0:_0xbdd600[_0x7da96f(0x394)])!==_univerjs_protocol[_0x7da96f(0x1ea)]['OK'];}))return![];_0x115c11[_0x30508a]={'sheetID':_0x30508a,'blocks':_0x437e0e['map'](_0x2155ea=>_0x2155ea[_0xfa1564(0x39e)])};}return!![];})))throw new Error('[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.');return _0x115c11;}async function transformWorkbookDataToSnapshot(_0x4088e5,_0x5b4069,_0x1e8e04,_0x4b1fd2,_0x4c5929,_0x2f1ffb){const _0x38edc4=_0xfc9601;var _0x519f14;const _0xff3445={},_0x360355={};let _0x4263b3=0x0,_0x1e2f6f=0x0;const _0x5588a2=[];for(const _0x5575 in _0x5b4069[_0x38edc4(0x3b2)]){const _0x4272a8=Date[_0x38edc4(0x1e0)](),_0x28c64a=_0x5b4069[_0x38edc4(0x3b2)][_0x5575];_0x360355[_0x5575]={'id':_0x28c64a['id'],'type':_univerjs_core[_0x38edc4(0x31d)][_0x38edc4(0x3f3)],'name':_0x28c64a['name'],'rowCount':_0x28c64a[_0x38edc4(0x1c6)],'columnCount':_0x28c64a[_0x38edc4(0x1b8)],'originalMeta':encodeWorksheetOtherMetas(_0x28c64a)},_0xff3445[_0x5575]={'sheetID':_0x5575,'blocks':[]},_0x1e2f6f+=Date['now']()-_0x4272a8;if(_0x28c64a[_0x38edc4(0x203)]){const {blocks:_0x190ba3,totalCells:_0x47c6a4,totalTime:_0x166f0c}=splitCellDataToBlocks(_0x28c64a[_0x38edc4(0x203)]);_0x4263b3+=_0x47c6a4,_0x1e2f6f+=_0x166f0c;const _0x57232e=_0x190ba3['map'](_0x20c8ca=>()=>_0x4c5929[_0x38edc4(0x2ed)](_0x4088e5,{'unitID':_0x1e8e04,'type':_univerjs_core[_0x38edc4(0x2c3)]['UNIVER_SHEET'],'block':_0x20c8ca}));_0x5588a2[_0x38edc4(0x380)]((async _0x41011d=>{const _0x1ecd80=_0x38edc4;try{await limitConcurrencyTasks({'tasks':_0x57232e,'handleTaskResult':_0x79bd7d=>{const _0x489a7e=_0x5cb6;var _0x336e35;if(((_0x336e35=_0x79bd7d[_0x489a7e(0x2ef)])===null||_0x336e35===void 0x0?void 0x0:_0x336e35[_0x489a7e(0x394)])!==_univerjs_protocol[_0x489a7e(0x1ea)]['OK'])throw new Error(_0x489a7e(0x34e));_0xff3445[_0x41011d][_0x489a7e(0x246)]['push'](_0x79bd7d[_0x489a7e(0x39e)]);},'onError':_0x3ce094=>{const _0x9579b=_0x5cb6;_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x9579b(0x2ef)]('[transformWorkbookDataToSnapshot()]','Error\x20saving\x20block\x20for\x20sheet\x20'+_0x41011d+':\x20'+_0x3ce094);}});}catch(_0x45e756){throw new Error(_0x1ecd80(0x1fd)+JSON['stringify'](_0x45e756));}})(_0x5575));}}await Promise[_0x38edc4(0x3a9)](_0x5588a2);const _0x415a6a=Date[_0x38edc4(0x1e0)](),_0x157e05=encodeWorkbookOtherMetas(_0x5b4069),_0x4d3867={'unitID':_0x5b4069['id'],'rev':_0x4b1fd2,'creator':'','name':_0x5b4069[_0x38edc4(0x2f3)],'sheetOrder':_0x5b4069[_0x38edc4(0x384)],'sheets':_0x360355,'blockMeta':_0xff3445,'resources':_0x5b4069[_0x38edc4(0x24a)]||[],'originalMeta':_0x157e05},_0x5defe4=(_0x4056bd,_0x485e65)=>{const _0x5eb029=_0x38edc4;return _0x4056bd[_0x5eb029(0x259)](_0xc2bbc6=>_0x485e65[_0x5eb029(0x2b6)](_0xc2bbc6));},_0xd62b87=_0x5b4069[_0x38edc4(0x384)][_0x38edc4(0x29d)],_0x109717=Object[_0x38edc4(0x38e)](_0x4d3867[_0x38edc4(0x3b2)]),_0x4a8796=Object['keys'](_0x4d3867[_0x38edc4(0x219)]);if(_0xd62b87!==_0x109717[_0x38edc4(0x29d)]||!_0x5defe4(_0x5b4069['sheetOrder'],_0x4d3867['sheets'])){_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x38edc4(0x2ef)](_0x38edc4(0x2fa),_0x38edc4(0x2e0)+_0x5b4069['id']+'\x20'+_0xd62b87+'\x20'+_0x109717[_0x38edc4(0x29d)]+_0x38edc4(0x3dd)+JSON[_0x38edc4(0x2f0)](_0x5b4069['sheetOrder'])+_0x38edc4(0x388)+JSON['stringify'](_0x109717)+_0x38edc4(0x2f6)+JSON[_0x38edc4(0x2f0)](Object[_0x38edc4(0x38e)](_0x5b4069['sheets'])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20order\x20mismatch');}if(_0x109717[_0x38edc4(0x29d)]!==_0x4a8796[_0x38edc4(0x29d)]||!_0x5defe4(_0x109717,_0x4d3867[_0x38edc4(0x219)])||!_0x5defe4(_0x4a8796,_0x4d3867['sheets'])){_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x38edc4(0x2ef)](_0x38edc4(0x2fa),_0x38edc4(0x1de)+_0x5b4069['id']+'\x20'+_0x109717[_0x38edc4(0x29d)]+'\x20'+_0x4a8796['length']+_0x38edc4(0x388)+JSON[_0x38edc4(0x2f0)](_0x109717)+_0x38edc4(0x277)+JSON[_0x38edc4(0x2f0)](_0x4a8796)+_0x38edc4(0x2f6)+JSON[_0x38edc4(0x2f0)](Object[_0x38edc4(0x38e)](_0x5b4069[_0x38edc4(0x3b2)])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20block\x20mismatch');}_0x1e2f6f+=Date[_0x38edc4(0x1e0)]()-_0x415a6a;const _0x385524={'unitID':_0x1e8e04,'rev':_0x4d3867[_0x38edc4(0x3ef)],'type':_univerjs_core[_0x38edc4(0x2c3)][_0x38edc4(0x31b)],'workbook':_0x4d3867,'doc':void 0x0},_0x5f2efd=await _0x4c5929[_0x38edc4(0x20f)](_0x4088e5,{'unitID':_0x1e8e04,'type':_univerjs_core[_0x38edc4(0x2c3)][_0x38edc4(0x31b)],'snapshot':_0x385524});(_0x519f14=_0x4c5929[_0x38edc4(0x270)])===null||_0x519f14===void 0x0||_0x519f14[_0x38edc4(0x2cd)](_0x4c5929,_0x4088e5,{'unitId':_0x1e8e04,'estimatedCells':_0x4263b3,'snapshotTime':Math[_0x38edc4(0x2b3)](_0x1e2f6f/0x3e8)});if((0x0,_univerjs_protocol[_0x38edc4(0x250)])(_0x5f2efd[_0x38edc4(0x2ef)])){var _0x53032d,_0x1af152;throw new Error(_0x38edc4(0x21d)+((_0x53032d=_0x5f2efd['error'])===null||_0x53032d===void 0x0?void 0x0:_0x53032d[_0x38edc4(0x394)])+':'+((_0x1af152=_0x5f2efd[_0x38edc4(0x2ef)])===null||_0x1af152===void 0x0?void 0x0:_0x1af152['message']));}return{'snapshot':_0x385524};}async function transformSnapshotToWorkbookData(_0xc9686d,_0x2e743f,_0x5d717c,_0x39124d){const _0xb46264=_0xfc9601,_0x3b1612=_0xc9686d[_0xb46264(0x405)];if(!_0x3b1612)throw new Error(_0xb46264(0x3f4));const _0x4a1e65={};Object[_0xb46264(0x2b4)](_0x3b1612[_0xb46264(0x3b2)])['forEach'](([_0x5010a8,_0x45373a])=>{const _0x4af206=_0xb46264,_0x470e61=decodeWorksheetOtherMetas(_0x45373a[_0x4af206(0x27c)]);_0x4a1e65[_0x5010a8]={'id':_0x45373a['id'],'name':_0x45373a[_0x4af206(0x2f3)],'rowCount':_0x45373a[_0x4af206(0x1c6)],'columnCount':_0x45373a[_0x4af206(0x1b8)],..._0x470e61};});const _0x37e3ed=new Map();for(let _0x4c28fb=0x0;_0x4c28fb<_0x2e743f[_0xb46264(0x29d)];_0x4c28fb++)_0x37e3ed[_0xb46264(0x209)](_0x2e743f[_0x4c28fb]['id'],{'index':_0x4c28fb,'block':_0x2e743f[_0x4c28fb]});const _0x39c463=performance[_0xb46264(0x1e0)]();_0x39124d===null||_0x39124d===void 0x0||_0x39124d['debug']('[ParseBlocks]',_0xb46264(0x3fc)+_0x2e743f[_0xb46264(0x29d)]+_0xb46264(0x414));if(_0x3b1612['blockMeta'])for(const [_0x23f8bf,_0x14efb1]of Object[_0xb46264(0x2b4)](_0x3b1612['blockMeta'])){if(!_0x4a1e65[_0x23f8bf])continue;const _0x8936dd={};if(_0x14efb1[_0xb46264(0x246)]&&_0x14efb1[_0xb46264(0x246)]['length']>0x0)for(const _0x559bad of _0x14efb1[_0xb46264(0x246)]){if(!_0x37e3ed['has'](_0x559bad))throw new Error(_0xb46264(0x3ac)+_0x559bad+'\x20for\x20sheet\x20'+_0x23f8bf);const {index:_0x3fb1ff,block:_0x3211ab}=_0x37e3ed[_0xb46264(0x3a1)](_0x559bad);if(_0x3211ab){const _0x33e989=decodePartOfCellData(_0x3211ab[_0xb46264(0x3db)]);for(const _0x4eac7f in _0x33e989)_0x8936dd[Number(_0x4eac7f)]=_0x33e989[_0x4eac7f];_0x37e3ed[_0xb46264(0x2d5)](_0x559bad),_0x2e743f[_0x3fb1ff]=null,_0x3211ab[_0xb46264(0x3db)]=null;}await yieldToEventLoop();}_0x4a1e65[_0x23f8bf]['cellData']=_0x8936dd;}const _0x5a3692=performance[_0xb46264(0x1e0)]();if(_0x5a3692-_0x39c463>0x2710)_0x39124d===null||_0x39124d===void 0x0||_0x39124d[_0xb46264(0x283)]('[ParseBlocks]',_0xb46264(0x289)+(_0x5a3692-_0x39c463)['toFixed'](0x2)+_0xb46264(0x2a6));else _0x39124d===null||_0x39124d===void 0x0||_0x39124d[_0xb46264(0x283)](_0xb46264(0x1e1),_0xb46264(0x364)+(_0x5a3692-_0x39c463)['toFixed'](0x2)+_0xb46264(0x2a6));_0x37e3ed[_0xb46264(0x318)](),_0x2e743f[_0xb46264(0x29d)]=0x0;const _0x1afe99=decodeWorksheetOtherMetas(_0x3b1612['originalMeta']);return{'id':_0xc9686d[_0xb46264(0x261)]||_0x3b1612['unitID'],'rev':_0xc9686d[_0xb46264(0x3ef)]||_0x3b1612[_0xb46264(0x3ef)],'name':_0x3b1612['name'],'sheetOrder':_0x3b1612[_0xb46264(0x384)],'appVersion':'','locale':_univerjs_core['LocaleType']['EN_US'],'sheets':_0x4a1e65,'styles':{},'resources':_0x3b1612[_0xb46264(0x24a)]||[],..._0x1afe99};}function transformSnapshotToDocumentData(_0x5c44aa){const _0x165973=_0xfc9601,_0x2af700=_0x5c44aa['doc'];if(_0x2af700==null)throw new Error(_0x165973(0x324));const {unitID:_0x4458cb,rev:_0x2cfc8e,name:_0x3214e1,originalMeta:_0x17db8e,resources:resources=[]}=_0x2af700,{body:_0x3da116,documentStyle:documentStyle={},settings:settings={},drawings:drawings={},drawingsOrder:drawingsOrder=[],tableSource:tableSource={},headers:headers={},footers:footers={},lists:lists={}}=decodeDocOriginalMeta(_0x17db8e);return{'id':_0x4458cb,'rev':_0x2cfc8e,'locale':_univerjs_core['LocaleType'][_0x165973(0x2b8)],'title':_0x3214e1,'body':_0x3da116,'documentStyle':documentStyle,'settings':settings,'drawings':drawings,'drawingsOrder':drawingsOrder,'resources':resources,'tableSource':tableSource,'headers':headers,'footers':footers,'lists':lists};}async function transformDocumentDataToSnapshot(_0x2725f2,_0x3b14e5,_0x5e3368,_0x2fd201,_0xb33900){const _0x2488c5=_0xfc9601;var _0xbf284e;const _0x2f68e7={'unitID':_0x3b14e5['id'],'rev':_0x2fd201,'creator':'','name':(_0xbf284e=_0x3b14e5[_0x2488c5(0x269)])!==null&&_0xbf284e!==void 0x0?_0xbf284e:'','resources':_0x3b14e5['resources']||[],'originalMeta':encodeDocOriginalMeta(_0x3b14e5)},_0x13e912={'unitID':_0x5e3368,'rev':_0x2f68e7[_0x2488c5(0x3ef)],'type':_univerjs_core[_0x2488c5(0x2c3)][_0x2488c5(0x2e7)],'workbook':void 0x0,'doc':_0x2f68e7},_0x5e9868=await _0xb33900['saveSnapshot'](_0x2725f2,{'unitID':_0x5e3368,'type':_univerjs_core[_0x2488c5(0x2c3)][_0x2488c5(0x2e7)],'snapshot':_0x13e912});if((0x0,_univerjs_protocol[_0x2488c5(0x250)])(_0x5e9868[_0x2488c5(0x2ef)])){var _0x253e9f,_0x312ab1;throw new Error(_0x2488c5(0x298)+((_0x253e9f=_0x5e9868[_0x2488c5(0x2ef)])===null||_0x253e9f===void 0x0?void 0x0:_0x253e9f[_0x2488c5(0x394)])+':'+((_0x312ab1=_0x5e9868[_0x2488c5(0x2ef)])===null||_0x312ab1===void 0x0?void 0x0:_0x312ab1[_0x2488c5(0x2c6)]));}return{'snapshot':_0x13e912};}async function getSheetBlocksFromSnapshot(_0x435e67,_0x376434){const _0x3e00a7=_0xfc9601,_0x390af5=_0x435e67['workbook'];if(!_0x390af5)throw new Error(_0x3e00a7(0x22f));const _0x50ff6c=[],_0x21c3fd=[];return Object[_0x3e00a7(0x2b4)](_0x390af5[_0x3e00a7(0x219)])['forEach'](([_0x17d4a4,_0x3d78b7])=>{const _0x1a638b=_0x3e00a7,_0x2307e6=_0x3d78b7[_0x1a638b(0x246)][_0x1a638b(0x3b3)](async _0x20d0fd=>{const _0x4eb60a=_0x1a638b,_0x1df441={'unitID':_0x390af5[_0x4eb60a(0x261)],'type':_univerjs_core[_0x4eb60a(0x2c3)][_0x4eb60a(0x31b)],'blockID':_0x20d0fd},{block:_0x4e1dc2}=await _0x376434['getSheetBlock']({},_0x1df441);if(_0x4e1dc2)_0x50ff6c[_0x4eb60a(0x380)](_0x4e1dc2);else throw new Error(_0x4eb60a(0x40f));});_0x21c3fd[_0x1a638b(0x380)](..._0x2307e6);}),await Promise[_0x3e00a7(0x3a9)](_0x21c3fd),_0x50ff6c;}const ISnapshotServerService=(0x0,_univerjs_core[_0xfc9601(0x279)])(_0xfc9601(0x3ca));let SnapshotService=class SnapshotService{constructor(_0x447e3c,_0x2c2a7a,_0x1ca16a,_0x769c3a,_0x35cf7c,_0x28a6bf,_0x3b72ad){const _0x16cc65=_0xfc9601;this[_0x16cc65(0x244)]=_0x447e3c,this[_0x16cc65(0x24c)]=_0x2c2a7a,this[_0x16cc65(0x3e2)]=_0x1ca16a,this['_commandService']=_0x769c3a,this[_0x16cc65(0x2a1)]=_0x35cf7c,this[_0x16cc65(0x307)]=_0x28a6bf,this[_0x16cc65(0x253)]=_0x3b72ad;}async[_0xfc9601(0x26e)](_0x22793a,_0x1efd8e,_0x5bd0d1={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x3e0bb1=_0xfc9601;var _0x3a41ee;const _0x153ef4=this[_0x3e0bb1(0x24c)]['getUnit'](_0x22793a,_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)]);if(_0x153ef4)return _0x153ef4;const {snapshot:_0x533411,changesets:_0x582f39,error:_0x579800}=await this[_0x3e0bb1(0x3e2)][_0x3e0bb1(0x360)](_0x5bd0d1,{'unitID':_0x22793a,'type':_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],'revision':_0x1efd8e});if((0x0,_univerjs_protocol['isError'])(_0x579800)||!_0x533411||!_0x533411[_0x3e0bb1(0x405)]){const _0x290ed3={..._0x579800};_0x290ed3[_0x3e0bb1(0x2c6)]='[SnapshotService]:\x20request\x20snapshot\x20error!\x20The\x20original\x20error\x20is:\x20'+(_0x579800===null||_0x579800===void 0x0?void 0x0:_0x579800[_0x3e0bb1(0x2c6)]);throw _0x290ed3;}const _0x288472=(_0x3a41ee=_0x582f39===null||_0x582f39===void 0x0?void 0x0:_0x582f39[_0x3e0bb1(0x29d)])!==null&&_0x3a41ee!==void 0x0?_0x3a41ee:0x0;if(_0x1efd8e!==0x0&&_0x533411[_0x3e0bb1(0x3ef)]+_0x288472!==_0x1efd8e)throw new Error('[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!');const {workbook:_0x3f134d}=_0x533411,_0x2f3719=(_0x3f134d[_0x3e0bb1(0x219)]?Object['entries'](_0x3f134d[_0x3e0bb1(0x219)])[_0x3e0bb1(0x3b3)](([_0x438eca,_0x19875d])=>{const _0xa34e74=_0x3e0bb1;var _0x3ff445,_0x238972;return(_0x3ff445=(_0x238972=_0x19875d[_0xa34e74(0x246)])===null||_0x238972===void 0x0?void 0x0:_0x238972[_0xa34e74(0x3b3)](_0x51c9cb=>_0x51c9cb))!==null&&_0x3ff445!==void 0x0?_0x3ff445:[];})[_0x3e0bb1(0x1cc)]():[])[_0x3e0bb1(0x3b3)](_0x5b5cb1=>()=>this[_0x3e0bb1(0x3e2)][_0x3e0bb1(0x2ad)](_0x5bd0d1,{'unitID':_0x22793a,'type':_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)],'blockID':_0x5b5cb1})),_0x52c2b9=[];try{await measureAsyncOperation('GetBlocks',()=>limitConcurrencyTasks({'tasks':_0x2f3719,'handleTaskResult':_0x42be18=>{const _0x332507=_0x3e0bb1;if(_0x42be18[_0x332507(0x2ac)])_0x52c2b9[_0x332507(0x380)](_0x42be18[_0x332507(0x2ac)]);},'onError':_0x107959=>{const _0x573415=_0x3e0bb1;this['_logService'][_0x573415(0x2ef)](_0x573415(0x2cc),_0x573415(0x28d)+_0x107959);}}),this[_0x3e0bb1(0x2a1)],0x2710,_0x3e0bb1(0x2ab)+_0x2f3719[_0x3e0bb1(0x29d)]+'\x20blocks');}catch(_0x1a7e38){throw new Error(_0x3e0bb1(0x215)+JSON[_0x3e0bb1(0x2f0)](_0x1a7e38));}const _0xcd37dd=await measureAsyncOperation(_0x3e0bb1(0x3ed),()=>transformSnapshotToWorkbookData(_0x533411,_0x52c2b9,_0x5bd0d1,this[_0x3e0bb1(0x2a1)]),this[_0x3e0bb1(0x2a1)]),_0x4a850d=this[_0x3e0bb1(0x24c)]['createUnit'](_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)],_0xcd37dd);return measureSyncOperation(_0x3e0bb1(0x1f2),()=>{const _0x4223c4=_0x3e0bb1,_0x4db647=this['_compressMutationService'][_0x4223c4(0x26a)][_0x4223c4(0x393)](this[_0x4223c4(0x307)][_0x4223c4(0x26a)][_0x4223c4(0x30c)]()[_0x4223c4(0x3e8)]);_0x582f39===null||_0x582f39===void 0x0||_0x582f39[_0x4223c4(0x302)](_0x4ee95f=>{const _0x31a8d3=_0x4223c4;if(_0x4ee95f[_0x31a8d3(0x356)]===null||_0x4ee95f['mutations']===void 0x0)_0x4ee95f[_0x31a8d3(0x356)]=[];const _0x5b9467=_0x4ee95f[_0x31a8d3(0x356)][_0x31a8d3(0x3b3)](_0x303d8f=>({'id':_0x303d8f['id'],'params':JSON[_0x31a8d3(0x241)](_0x303d8f[_0x31a8d3(0x3db)])}));({..._0x4ee95f,'mutations':_0x4db647(_0x5b9467,null)||_0x5b9467}[_0x31a8d3(0x356)][_0x31a8d3(0x302)](_0x1e9159=>this[_0x31a8d3(0x36c)][_0x31a8d3(0x1d2)](_0x1e9159['id'],_0x1e9159[_0x31a8d3(0x3eb)],{'fromChangeset':!![]})),this[_0x31a8d3(0x244)][_0x31a8d3(0x2d4)](_0x22793a));});},this[_0x3e0bb1(0x2a1)]),_0x4a850d;}async[_0xfc9601(0x35a)](_0x3300b7,_0x4d8286,_0x486916={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x24bc6d=_0xfc9601;var _0x4ef90a;const {snapshot:_0x53d177,changesets:_0x342727,error:_0x195f04}=await this['_snapshotServerService'][_0x24bc6d(0x360)](_0x486916,{'unitID':_0x3300b7,'type':_univerjs_core[_0x24bc6d(0x2c3)][_0x24bc6d(0x2e7)],'revision':_0x4d8286});if((0x0,_univerjs_protocol[_0x24bc6d(0x250)])(_0x195f04)||!_0x53d177||!_0x53d177['doc']){const _0x3156c7={..._0x195f04};_0x3156c7[_0x24bc6d(0x2c6)]='[SnapshotService]:\x20request\x20snapshot\x20error!';throw _0x3156c7;}const _0x3634f9=(_0x4ef90a=_0x342727===null||_0x342727===void 0x0?void 0x0:_0x342727[_0x24bc6d(0x29d)])!==null&&_0x4ef90a!==void 0x0?_0x4ef90a:0x0;if(_0x4d8286!==0x0&&_0x53d177[_0x24bc6d(0x3ef)]+_0x3634f9!==_0x4d8286)throw new Error('[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!');const _0xdd15f7=transformSnapshotToDocumentData(_0x53d177),_0xac17da=this[_0x24bc6d(0x24c)]['createUnit'](_univerjs_core[_0x24bc6d(0x2c3)][_0x24bc6d(0x2e7)],_0xdd15f7);return _0x342727===null||_0x342727===void 0x0||_0x342727['forEach'](_0x3ea771=>{const _0x4a09e1=_0x24bc6d;if(_0x3ea771[_0x4a09e1(0x356)]===null||_0x3ea771[_0x4a09e1(0x356)]===void 0x0)_0x3ea771[_0x4a09e1(0x356)]=[];_0x3ea771['mutations'][_0x4a09e1(0x3b3)](_0x35da9d=>({'id':_0x35da9d['id'],'params':JSON[_0x4a09e1(0x241)](_0x35da9d[_0x4a09e1(0x3db)])}))[_0x4a09e1(0x302)](_0x365f2e=>this[_0x4a09e1(0x36c)][_0x4a09e1(0x1d2)](_0x365f2e['id'],_0x365f2e[_0x4a09e1(0x3eb)],{'fromChangeset':!![]})),this[_0x4a09e1(0x244)][_0x4a09e1(0x2d4)](_0x3300b7);}),_0xac17da;}[_0xfc9601(0x268)](_0x16e485,_0x8c1133){const _0x372f4b=_0xfc9601,_0x505d0b={..._0x8c1133[_0x372f4b(0x328)]()};return _0x8c1133[_0x372f4b(0x344)]()['forEach'](_0x30a12a=>{const _0x5cd6f2=_0x372f4b;_0x505d0b[_0x5cd6f2(0x3b2)][_0x30a12a['getSheetId']()]=_univerjs_core[_0x5cd6f2(0x1c3)][_0x5cd6f2(0x1cf)](_0x30a12a['getSnapshot']());}),_0x505d0b[_0x372f4b(0x24a)]=this['_resourceManagerService'][_0x372f4b(0x217)](_0x8c1133[_0x372f4b(0x2d0)](),_univerjs_core[_0x372f4b(0x2c3)]['UNIVER_SHEET']),_0x505d0b;}[_0xfc9601(0x2ce)](_0x204789,_0x1cf18d){const _0x41933d=_0xfc9601,_0x5b2653={..._0x1cf18d[_0x41933d(0x328)]()};return _0x5b2653[_0x41933d(0x24a)]=this[_0x41933d(0x253)][_0x41933d(0x217)](_0x1cf18d[_0x41933d(0x2d0)](),_univerjs_core['UniverInstanceType'][_0x41933d(0x2e7)]),_0x5b2653;}};SnapshotService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xfc9601(0x1df)])(RevisionService)),__decorateParam(0x1,_univerjs_core['IUniverInstanceService']),__decorateParam(0x2,ISnapshotServerService),__decorateParam(0x3,_univerjs_core[_0xfc9601(0x3d0)]),__decorateParam(0x4,_univerjs_core[_0xfc9601(0x3df)]),__decorateParam(0x5,(0x0,_univerjs_core[_0xfc9601(0x1df)])(CompressMutationService)),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xfc9601(0x2f9)]))],SnapshotService);let UniverCollaborationPlugin=class UniverCollaborationPlugin extends _univerjs_core[_0xfc9601(0x338)]{constructor(_0x49261b=defaultPluginConfig,_0xb88ede,_0x11de49){const _0x1332fd=_0xfc9601;super(),this['_config']=_0x49261b,this[_0x1332fd(0x3c1)]=_0xb88ede,this['_configService']=_0x11de49;const {..._0x3032a1}=(0x0,_univerjs_core[_0x1332fd(0x23c)])({},defaultPluginConfig,this[_0x1332fd(0x2bc)]);this['_configService'][_0x1332fd(0x1d3)](COLLABORATION_PLUGIN_CONFIG_KEY,_0x3032a1);}[_0xfc9601(0x308)](){const _0x14cb8b=_0xfc9601;(0x0,_univerjs_core[_0x14cb8b(0x312)])(this[_0x14cb8b(0x3c1)],[[RevisionService],[RevisionController],[SheetTransformController],[DocTransformController],[SnapshotService],[ITransformService,{'useClass':TransformService}],[CompressMutationService]]),(0x0,_univerjs_core['touchDependencies'])(this[_0x14cb8b(0x3c1)],[[DocTransformController],[RevisionController],[SheetTransformController]]);}};_defineProperty(UniverCollaborationPlugin,_0xfc9601(0x2ea),'UNIVER_COLLABORATION_PLUGIN'),_defineProperty(UniverCollaborationPlugin,'packageName',name),_defineProperty(UniverCollaborationPlugin,_0xfc9601(0x3d7),version),UniverCollaborationPlugin=__decorate([(0x0,_univerjs_core[_0xfc9601(0x1f0)])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xfc9601(0x1df)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0xfc9601(0x240)])],UniverCollaborationPlugin);let SnapshotSaveService=class SnapshotSaveService{constructor(_0x286da8,_0x2165d8,_0x251fc3){const _0x1a470a=_0xfc9601;this['_snapshotServerService']=_0x286da8,this[_0x1a470a(0x2a8)]=_0x2165d8,this[_0x1a470a(0x2a1)]=_0x251fc3;}async[_0xfc9601(0x268)](_0x45fc06,_0x1f2b09,_0x8d3049,_0x2ece8f,_0x319cfc){const _0x1a7080=_0xfc9601;return transformWorkbookDataToSnapshot(_0x45fc06,_0x319cfc||this[_0x1a7080(0x2a8)][_0x1a7080(0x268)](_0x45fc06,_0x2ece8f),_0x1f2b09,_0x8d3049,this[_0x1a7080(0x3e2)],this[_0x1a7080(0x2a1)]);}async[_0xfc9601(0x24e)](_0x20e633,_0x4148b8,_0x168e82,_0x387717){const _0x4baa4b=_0xfc9601;return transformWorkbookDataToSnapshotNoSave(_0x20e633,_0x387717||this[_0x4baa4b(0x2a8)][_0x4baa4b(0x268)](_0x20e633,_0x168e82),_0x4148b8,this[_0x4baa4b(0x3e2)]);}async[_0xfc9601(0x1c8)](_0x31a444,_0x1fb576,_0x14cd2b,_0x2b151e){const _0x2f5d7d=_0xfc9601;return generateTemporarySnap(_0x31a444,this[_0x2f5d7d(0x2a8)][_0x2f5d7d(0x268)](_0x31a444,_0x2b151e),_0x1fb576,_0x14cd2b,this[_0x2f5d7d(0x3e2)],this[_0x2f5d7d(0x2a1)]);}async[_0xfc9601(0x2db)](_0x44d855,_0x241da7,_0x145ce0,_0x59f157){const _0x47b2d9=_0xfc9601;return generateTempDocumentSnapshot(_0x44d855,this[_0x47b2d9(0x2a8)][_0x47b2d9(0x2ce)](_0x44d855,_0x59f157),_0x241da7,_0x145ce0);}async[_0xfc9601(0x2ce)](_0x20ae42,_0x2e4172,_0x5b504c,_0x3f1793,_0x2e7bbd){const _0x2bdd9b=_0xfc9601;return transformDocumentDataToSnapshot(_0x20ae42,_0x2e7bbd||this[_0x2bdd9b(0x2a8)][_0x2bdd9b(0x2ce)](_0x20ae42,_0x3f1793),_0x2e4172,_0x5b504c,this[_0x2bdd9b(0x3e2)]);}};SnapshotSaveService=__decorate([__decorateParam(0x0,ISnapshotServerService),__decorateParam(0x1,(0x0,_univerjs_core[_0xfc9601(0x1df)])(SnapshotService)),__decorateParam(0x2,(0x0,_univerjs_core[_0xfc9601(0x1df)])(_univerjs_core[_0xfc9601(0x3df)]))],SnapshotSaveService),exports['CollaborationEvent']=CollaborationEvent,exports[_0xfc9601(0x300)]=CompressMutationService,exports[_0xfc9601(0x236)]=CreateUnitMutation,Object[_0xfc9601(0x238)](exports,_0xfc9601(0x1e6),{'enumerable':!![],'get':function(){return DocTransformController;}}),exports['EmptyMutationInfo']=EmptyMutationInfo,exports[_0xfc9601(0x332)]=ISnapshotServerService,exports['ITransformService']=ITransformService,exports['RevertRevisionMutation']=RevertRevisionMutation,Object[_0xfc9601(0x238)](exports,'RevisionService',{'enumerable':!![],'get':function(){return RevisionService;}}),exports[_0xfc9601(0x1e3)]=SINGLE_HISTORY_MUTATIONS,exports[_0xfc9601(0x1e8)]=SINGLE_SNAPSHOT_MUTATIONS,Object[_0xfc9601(0x238)](exports,_0xfc9601(0x258),{'enumerable':!![],'get':function(){return SheetTransformController;}}),Object['defineProperty'](exports,_0xfc9601(0x1ed),{'enumerable':!![],'get':function(){return SnapshotSaveService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x2c0),{'enumerable':!![],'get':function(){return SnapshotService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x2aa),{'enumerable':!![],'get':function(){return TransformService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x3bd),{'enumerable':!![],'get':function(){return UniverCollaborationPlugin;}}),exports[_0xfc9601(0x322)]=b64DecodeUnicode,exports[_0xfc9601(0x285)]=b64EncodeUnicode,exports[_0xfc9601(0x25b)]=generateTempDocumentSnapshot,exports['generateTemporarySnap']=generateTemporarySnap,exports[_0xfc9601(0x3a2)]=getSheetBlocksFromSnapshot,exports[_0xfc9601(0x2a0)]=isTransformChangesetsFailure,exports['isTransformChangesetsSuccess']=isTransformChangesetsSuccess,exports[_0xfc9601(0x407)]=isTransformMutationFailure,exports['isTransformMutationSuccess']=isTransformMutationSuccess,exports[_0xfc9601(0x395)]=isTransformMutationsFailure,exports[_0xfc9601(0x2d3)]=isTransformMutationsSuccess,exports[_0xfc9601(0x401)]=isTransformMutationsWithChangesetFailure,exports[_0xfc9601(0x227)]=isTransformMutationsWithChangesetSuccess,exports['mapDocumentTypeToUniverInstanceType']=mapDocumentTypeToUniverInstanceType,exports[_0xfc9601(0x263)]=measureAsyncOperation,exports['measureSyncOperation']=measureSyncOperation,exports[_0xfc9601(0x33d)]=parseChangesetToProtocol,exports[_0xfc9601(0x291)]=parseMutationToProtocol,exports[_0xfc9601(0x1cb)]=parseProtocolChangeset,exports['parseProtocolCommand']=parseProtocolCommand,exports['parseProtocolMutation']=parseProtocolMutation,exports[_0xfc9601(0x3fd)]=textDecoder,exports[_0xfc9601(0x281)]=textEncoder,exports[_0xfc9601(0x278)]=transformDocumentDataToSnapshot,exports[_0xfc9601(0x265)]=transformSnapshotToDocumentData,exports[_0xfc9601(0x3ed)]=transformSnapshotToWorkbookData,exports['transformWorkbookDataToSnapshot']=transformWorkbookDataToSnapshot,Object['defineProperty'](exports,_0xfc9601(0x22c),{'enumerable':!![],'get':function(){return uuid['v4'];}});
|