@univerjs-pro/sheets-sparkline 0.10.7-nightly.202509130703 → 0.10.8-nightly.202509200616

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14cc69=_0x5c83;(function(_0x4252c7,_0x258fef){const _0x3b08c0=_0x5c83,_0x29adb7=_0x4252c7();while(!![]){try{const _0x1ad6f8=parseInt(_0x3b08c0(0xf2))/0x1*(-parseInt(_0x3b08c0(0xed))/0x2)+-parseInt(_0x3b08c0(0x154))/0x3+parseInt(_0x3b08c0(0xeb))/0x4*(-parseInt(_0x3b08c0(0x142))/0x5)+parseInt(_0x3b08c0(0x159))/0x6*(-parseInt(_0x3b08c0(0x14e))/0x7)+parseInt(_0x3b08c0(0xe8))/0x8+parseInt(_0x3b08c0(0x12c))/0x9*(parseInt(_0x3b08c0(0x14c))/0xa)+parseInt(_0x3b08c0(0x112))/0xb;if(_0x1ad6f8===_0x258fef)break;else _0x29adb7['push'](_0x29adb7['shift']());}catch(_0x405057){_0x29adb7['push'](_0x29adb7['shift']());}}}(_0x196c,0x75ce6));var qe=Object['defineProperty'],Qe=(_0xee0fb7,_0x3bab61,_0x53a055)=>_0x3bab61 in _0xee0fb7?qe(_0xee0fb7,_0x3bab61,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53a055}):_0xee0fb7[_0x3bab61]=_0x53a055,se=(_0x3e607f,_0x57487d,_0x4fdac9)=>Qe(_0x3e607f,typeof _0x57487d!=_0x14cc69(0x157)?_0x57487d+'':_0x57487d,_0x4fdac9);import{ObjectMatrix as _0x530d22,Inject as _0x6d638f,IUniverInstanceService as _0x47443c,Disposable as _0x2b44df,isValidRange as _0x593771,CellValueType as _0x313f3d,ColorKit as _0x22620d,CommandType as _0x4b0899,Range as _0x257ce4,IUndoRedoService as _0x2b853f,generateRandomId as _0x226667,ICommandService as _0x3ae8cf,Tools as _0x293a63,sequenceExecute as _0x519da8,Rectangle as _0x215744,cellToRange as _0x3d5a9d,DisposableCollection as _0x47c841,RANGE_TYPE as _0xd0ffee,UniverInstanceType as _0x3a2acf,IResourceManagerService as _0x506deb,DependentOn as _0xef0bd8,Injector as _0x21e05f,Plugin as _0x46674f,touchDependencies as _0x336b62}from'@univerjs/core';import{getSheetCommandTarget as _0x199019,SheetsSelectionsService as _0x4246b2,SheetInterceptorService as _0x3c58f5,ClearSelectionAllCommand as _0x98b9b3,CopySheetCommand as _0x39b79a,IExclusiveRangeService as _0x1a0f30,SetRangeValuesMutation as _0x587b40,ReorderRangeMutation as _0x6409c3,SetRowHiddenMutation as _0x1806a4,SetColHiddenMutation as _0x447b5d,SetRowVisibleMutation as _0x50fd7a,SetColVisibleMutation as _0x25192d,AddWorksheetMergeCommand as _0x2372c8,RefRangeService as _0x3b426b,SetWorksheetActivateCommand as _0x5089eb,RemoveRowCommand as _0x46366c,RemoveColCommand as _0x5572d1,adjustRangeOnMutation as _0xff1c2b,RemoveRowMutation as _0x5db32c,RemoveColMutation as _0x2a7908,InsertColMutation as _0x192928,InsertRowMutation as _0x4d5de7,MoveColsMutation as _0x303e31,MoveRowsMutation as _0x5dbb3a,MoveRangeMutation as _0x362855}from'@univerjs/sheets';import{Subject as _0x504262}from'rxjs';import{UniverLicensePlugin as _0x410da4}from'@univerjs-pro/license';function Fe(_0xe8f2e6,_0x316f2c){const _0x430d3d=_0x14cc69,_0x1792cf=new _0x530d22(),_0x1f303c=[],_0x2c631b=_0xe8f2e6[_0x430d3d(0x17a)]>0x1;let _0x4dfb37=0x0,_0x2f0003=0x0;for(const _0x5807f9 of _0xe8f2e6)_0x4dfb37+=_0x5807f9['endRow']-_0x5807f9[_0x430d3d(0xe1)]+0x1,_0x2f0003+=_0x5807f9[_0x430d3d(0x169)]-_0x5807f9[_0x430d3d(0xfd)]+0x1;for(const _0x512ed9 of _0x316f2c)for(let _0x526bcd=_0x512ed9['startRow'];_0x526bcd<=_0x512ed9['endRow'];_0x526bcd++)for(let _0xe8b5a6=_0x512ed9['startColumn'];_0xe8b5a6<=_0x512ed9[_0x430d3d(0x169)];_0xe8b5a6++)_0x1f303c[_0x430d3d(0x15d)]({'row':_0x526bcd,'column':_0xe8b5a6});if(_0x1f303c[_0x430d3d(0x17a)]===_0x4dfb37)_0x2c631b?_0x1f303c['forEach']((_0x422d0b,_0x486dcc)=>{const _0x4cfcd0=_0x430d3d,_0x322bc7=_0xe8f2e6[_0x486dcc],_0x42e846={'startRow':_0x322bc7['startRow'],'startColumn':_0x322bc7[_0x4cfcd0(0xfd)],'endRow':_0x322bc7[_0x4cfcd0(0xe1)],'endColumn':_0x322bc7[_0x4cfcd0(0x169)]};_0x1792cf['setValue'](_0x422d0b[_0x4cfcd0(0x13c)],_0x422d0b['column'],_0x42e846);}):_0x1f303c[_0x430d3d(0xee)]((_0x5727c3,_0xf7c06f)=>{const _0xccc7c6=_0x430d3d,_0x28c485=_0xe8f2e6[0x0],_0x48b012={'startRow':_0x28c485[_0xccc7c6(0xe1)]+_0xf7c06f,'startColumn':_0x28c485['startColumn'],'endRow':_0x28c485['startRow']+_0xf7c06f,'endColumn':_0x28c485[_0xccc7c6(0x169)]};_0x1792cf['setValue'](_0x5727c3[_0xccc7c6(0x13c)],_0x5727c3[_0xccc7c6(0xfb)],_0x48b012);});else{if(_0x1f303c[_0x430d3d(0x17a)]===_0x2f0003)_0x2c631b?_0x1f303c[_0x430d3d(0xee)]((_0x499a30,_0x1b2d1b)=>{const _0x471288=_0x430d3d,_0x258afb=_0xe8f2e6[_0x1b2d1b],_0x2071be={'startRow':_0x258afb[_0x471288(0xe1)],'startColumn':_0x258afb[_0x471288(0xfd)],'endRow':_0x258afb[_0x471288(0xf0)],'endColumn':_0x258afb[_0x471288(0xfd)]};_0x1792cf[_0x471288(0xe2)](_0x499a30['row'],_0x499a30[_0x471288(0xfb)],_0x2071be);}):_0x1f303c['forEach']((_0x2446d8,_0x5d529f)=>{const _0x356b4b=_0x430d3d,_0x217e96=_0xe8f2e6[0x0],_0x588e5e={'startRow':_0x217e96[_0x356b4b(0xe1)],'startColumn':_0x217e96[_0x356b4b(0xfd)]+_0x5d529f,'endRow':_0x217e96[_0x356b4b(0xf0)],'endColumn':_0x217e96[_0x356b4b(0xfd)]+_0x5d529f};_0x1792cf[_0x356b4b(0xe2)](_0x2446d8['row'],_0x2446d8[_0x356b4b(0xfb)],_0x588e5e);});else{if(_0x1f303c[_0x430d3d(0x17a)]===_0xe8f2e6[_0x430d3d(0x17a)])_0xe8f2e6['every'](_0x26c7f5=>!(_0x26c7f5['startRow']!==_0x26c7f5[_0x430d3d(0xf0)]&&_0x26c7f5[_0x430d3d(0xfd)]!==_0x26c7f5['endColumn']))&&_0x1f303c[_0x430d3d(0xee)]((_0x5f34f9,_0x4490f4)=>{const _0x23ef51=_0x430d3d,_0xd459e=_0xe8f2e6[_0x4490f4];_0x1792cf[_0x23ef51(0xe2)](_0x5f34f9['row'],_0x5f34f9[_0x23ef51(0xfb)],_0xd459e);});else throw new Error(_0x430d3d(0xf6));}}return _0x1792cf;}const Ke='SHEET_SPARKLINE_PLUGIN',Le={'standard':[_0x14cc69(0x10f),_0x14cc69(0x130)],'specialty':[_0x14cc69(0x183),_0x14cc69(0xf4)],'distinctive':[_0x14cc69(0x138),_0x14cc69(0x16d)],'soft':[_0x14cc69(0x13b),_0x14cc69(0x16b)],'fresh':[_0x14cc69(0xe9),'rgb(248,190,21)']},on=[_0x14cc69(0x144),'firstPoint',_0x14cc69(0xd1),'lowPoint',_0x14cc69(0x181),_0x14cc69(0x160)];var Xe=(_0x2a04f1=>(_0x2a04f1[_0x14cc69(0x149)]=_0x14cc69(0x108),_0x2a04f1[_0x14cc69(0x15c)]=_0x14cc69(0x126),_0x2a04f1[_0x14cc69(0xf1)]='distinctive',_0x2a04f1[_0x14cc69(0x152)]=_0x14cc69(0x114),_0x2a04f1[_0x14cc69(0x16c)]=_0x14cc69(0x171),_0x2a04f1[_0x14cc69(0xd0)]='custom',_0x2a04f1))(Xe||{}),Dt=(_0x42734d=>(_0x42734d[_0x42734d[_0x14cc69(0x12b)]=0x1]=_0x14cc69(0x12b),_0x42734d[_0x42734d['BAR_CHART']=0x2]=_0x14cc69(0x186),_0x42734d[_0x42734d[_0x14cc69(0x15a)]=0x3]=_0x14cc69(0x15a),_0x42734d[_0x42734d[_0x14cc69(0x179)]=0x4]=_0x14cc69(0x179),_0x42734d))(Dt||{}),J=(_0x5486c0=>(_0x5486c0[_0x14cc69(0x164)]='spacing',_0x5486c0['ZERO_VALUE']=_0x14cc69(0x105),_0x5486c0[_0x14cc69(0x106)]=_0x14cc69(0x158),_0x5486c0))(J||{}),De=(_0x528101=>(_0x528101[_0x528101[_0x14cc69(0x150)]=0x1]=_0x14cc69(0x150),_0x528101[_0x528101[_0x14cc69(0x16a)]=0x2]=_0x14cc69(0x16a),_0x528101[_0x528101[_0x14cc69(0x17c)]=0x3]=_0x14cc69(0x17c),_0x528101))(De||{}),Et=Object[_0x14cc69(0x11b)],Vt=(_0x24c96e,_0x378c79,_0x532b58,_0x36c228)=>{for(var _0x32c561=_0x36c228>0x1?void 0x0:_0x36c228?Et(_0x378c79,_0x532b58):_0x378c79,_0x3038a9=_0x24c96e['length']-0x1,_0x44a861;_0x3038a9>=0x0;_0x3038a9--)(_0x44a861=_0x24c96e[_0x3038a9])&&(_0x32c561=_0x44a861(_0x32c561)||_0x32c561);return _0x32c561;},yt=(_0x1e220a,_0x3939db)=>(_0x33b086,_0x5d90a1)=>_0x3939db(_0x33b086,_0x5d90a1,_0x1e220a);let x=class extends _0x2b44df{constructor(_0x3e4240){const _0x4317e5=_0x14cc69;super(),se(this,_0x4317e5(0xdf),new Map()),se(this,_0x4317e5(0x12e),new Map()),se(this,_0x4317e5(0x12f),new _0x504262()),se(this,_0x4317e5(0x17f),this[_0x4317e5(0x12f)][_0x4317e5(0x103)]()),this[_0x4317e5(0xd4)]=_0x3e4240;}[_0x14cc69(0x140)](_0x2d621b,_0x1137f4){const _0xb391=_0x14cc69;let _0x5ec40c=this[_0xb391(0xdf)]['get'](_0x2d621b);_0x5ec40c||(_0x5ec40c=new Map(),this[_0xb391(0xdf)][_0xb391(0x18a)](_0x2d621b,_0x5ec40c));let _0x37abfc=_0x5ec40c[_0xb391(0x14b)](_0x1137f4);return _0x37abfc||(_0x37abfc=new Map(),_0x5ec40c[_0xb391(0x18a)](_0x1137f4,_0x37abfc)),_0x37abfc;}['_ensureAnchorMatrix'](_0x31edfd,_0x2b32a6){const _0xc4c449=_0x14cc69;let _0x9c1446=this['_sparklineAnchorMap']['get'](_0x31edfd);_0x9c1446||(_0x9c1446=new Map(),this[_0xc4c449(0x12e)][_0xc4c449(0x18a)](_0x31edfd,_0x9c1446));let _0x4c23e4=_0x9c1446['get'](_0x2b32a6);return _0x4c23e4||(_0x4c23e4={'matrix':new _0x530d22(),'extra':{}},_0x9c1446[_0xc4c449(0x18a)](_0x2b32a6,_0x4c23e4)),_0x4c23e4;}['updateSparklineExtraNum'](_0x2f9860,_0x7798cd,_0xa186ec,_0x42185a='set'){const _0x59ef52=_0x14cc69;var _0x3a1d15,_0x27a32f,_0x4ae796,_0x1afb7c,_0x29628d,_0x1eb5da,_0x125f74,_0x449754,_0x37f3d5,_0x2ed1cc,_0x5a93e3,_0x290075,_0x49b468;const _0x422fae=(_0x27a32f=(_0x3a1d15=this[_0x59ef52(0xdf)][_0x59ef52(0x14b)](_0x2f9860))==null?void 0x0:_0x3a1d15[_0x59ef52(0x14b)](_0x7798cd))==null?void 0x0:_0x27a32f[_0x59ef52(0x14b)](_0xa186ec);if(!_0x422fae)return;const _0x10652b=_0x199019(this['_univerInstanceService'],{'unitId':_0x2f9860,'subUnitId':_0x7798cd});if(!_0x10652b)return;const _0x131b12=this['_ensureAnchorMatrix'](_0x2f9860,_0x7798cd),{extra:_0x566e06,matrix:_0x3281aa}=_0x131b12,{worksheet:_0x38edc7}=_0x10652b;let _0x16340f=Number[_0x59ef52(0x15e)],_0x183d39=Number[_0x59ef52(0x137)];const _0x585817=(_0x4ae796=_0x422fae[_0x59ef52(0x161)][_0x59ef52(0xfa)])!=null?_0x4ae796:!0x1;_0x422fae[_0x59ef52(0x178)][_0x59ef52(0x115)]((_0x92ade8,_0x568493,_0x2d9d55)=>{const _0x5da5cd=_0x59ef52;var _0x2e44a3,_0x11571e,_0x94813c;const _0x3e929b=_0x2d9d55;let _0x16cb26=Number[_0x5da5cd(0x15e)],_0x53d8bd=Number['MAX_SAFE_INTEGER'],_0x3198db=0x0,_0x1aea1b=0x0;const _0x26d34e=[];if(!_0x593771(_0x3e929b))_0x3281aa[_0x5da5cd(0xe2)](_0x92ade8,_0x568493,{'groupId':_0xa186ec,'data':[],'max':_0x16cb26,'min':_0x53d8bd,'highIndex':_0x3198db,'lowIndex':_0x1aea1b,'negativeIndexes':_0x26d34e});else{const _0x11df2c=[];for(let _0x4ce25b=_0x3e929b[_0x5da5cd(0xe1)];_0x4ce25b<=_0x3e929b[_0x5da5cd(0xf0)];_0x4ce25b++){for(let _0x1ffba8=_0x3e929b[_0x5da5cd(0xfd)];_0x1ffba8<=_0x3e929b[_0x5da5cd(0x169)];_0x1ffba8++){const _0x5b3d64=_0x38edc7[_0x5da5cd(0x10c)](_0x4ce25b),_0x487c61=_0x38edc7[_0x5da5cd(0xf7)](_0x1ffba8);if(!_0x585817&&(!_0x5b3d64||!_0x487c61))continue;let _0x512633=0x0;const _0x27dd90=((_0x2e44a3=_0x38edc7[_0x5da5cd(0x116)](_0x4ce25b,_0x1ffba8))==null?void 0x0:_0x2e44a3['v'])!==void 0x0?_0x38edc7[_0x5da5cd(0x116)](_0x4ce25b,_0x1ffba8):_0x38edc7[_0x5da5cd(0x121)](_0x4ce25b,_0x1ffba8);if(!_0x27dd90||_0x27dd90['v']===void 0x0||_0x27dd90['v']===null){const _0x13c5a3=(_0x11571e=_0x422fae[_0x5da5cd(0x161)][_0x5da5cd(0x133)])!=null?_0x11571e:J[_0x5da5cd(0x164)];_0x13c5a3===J['ZERO_VALUE']?_0x512633=0x0:_0x13c5a3===J[_0x5da5cd(0x164)]?_0x512633=_0x5da5cd(0x185):_0x13c5a3===J[_0x5da5cd(0x106)]&&(_0x512633=_0x5da5cd(0x168));}else{if(_0x27dd90['t']===_0x313f3d['STRING']||_0x27dd90['t']===_0x313f3d[_0x5da5cd(0xd3)]){const _0x94892=(_0x94813c=_0x422fae[_0x5da5cd(0x161)][_0x5da5cd(0x177)])!=null?_0x94813c:J[_0x5da5cd(0x164)];_0x94892===J[_0x5da5cd(0x110)]?_0x512633=0x0:_0x94892===J[_0x5da5cd(0x164)]?_0x512633=_0x5da5cd(0x185):_0x94892===J[_0x5da5cd(0x106)]&&(_0x512633=_0x5da5cd(0x168));}else _0x27dd90['t']===_0x313f3d[_0x5da5cd(0x170)]?_0x512633=_0x27dd90['v']?0x1:0x0:_0x27dd90['t']===_0x313f3d[_0x5da5cd(0x11e)]?_0x512633=Number(_0x27dd90['v']):_0x512633=_0x27dd90['v'];}if(_0x11df2c['push'](_0x512633),typeof _0x512633==_0x5da5cd(0x122)){_0x16cb26=Math[_0x5da5cd(0x155)](_0x16cb26,_0x512633),_0x16340f=Math[_0x5da5cd(0x155)](_0x16340f,_0x512633),_0x183d39=Math[_0x5da5cd(0xe5)](_0x183d39,_0x512633),_0x53d8bd=Math['min'](_0x53d8bd,_0x512633);const _0x5bffff=typeof _0x11df2c[_0x3198db]==_0x5da5cd(0x122)?Number(_0x11df2c[_0x3198db]):Number[_0x5da5cd(0x15e)];_0x512633>_0x5bffff&&(_0x3198db=_0x11df2c[_0x5da5cd(0x17a)]-0x1);const _0x4d7523=typeof _0x11df2c[_0x1aea1b]=='number'?Number(_0x11df2c[_0x1aea1b]):Number['MAX_SAFE_INTEGER'];_0x512633<_0x4d7523&&(_0x1aea1b=_0x11df2c['length']-0x1),_0x512633<0x0&&_0x26d34e[_0x5da5cd(0x15d)](_0x11df2c[_0x5da5cd(0x17a)]-0x1);}}_0x3281aa[_0x5da5cd(0xe2)](_0x92ade8,_0x568493,{'groupId':_0xa186ec,'data':_0x11df2c,'max':_0x16cb26,'min':_0x53d8bd,'highIndex':_0x3198db,'lowIndex':_0x1aea1b,'negativeIndexes':_0x26d34e});}}});let _0x3e65dc=_0x16340f;((_0x1afb7c=_0x422fae[_0x59ef52(0x161)]['extremumMax'])==null?void 0x0:_0x1afb7c['type'])===De[_0x59ef52(0x17c)]&&(_0x3e65dc=(_0x1eb5da=(_0x29628d=_0x422fae[_0x59ef52(0x161)]['extremumMax'])==null?void 0x0:_0x29628d['value'])!=null?_0x1eb5da:_0x16340f);let _0x3be0e3=_0x183d39;((_0x125f74=_0x422fae[_0x59ef52(0x161)]['extremumMin'])==null?void 0x0:_0x125f74[_0x59ef52(0x128)])===De['CUSTOM_EXTREMUM']&&(_0x3be0e3=(_0x37f3d5=(_0x449754=_0x422fae['config'][_0x59ef52(0x139)])==null?void 0x0:_0x449754[_0x59ef52(0xfc)])!=null?_0x37f3d5:_0x183d39);const _0x12970b=(_0x2ed1cc=_0x422fae[_0x59ef52(0x161)]['themeType'])!=null?_0x2ed1cc:Xe[_0x59ef52(0x149)],_0xff273=(_0x49b468=(_0x290075=_0x422fae['config'][_0x59ef52(0x180)])!=null?_0x290075:(_0x5a93e3=Le[_0x12970b])==null?void 0x0:_0x5a93e3[0x0])!=null?_0x49b468:Le[_0x59ef52(0x108)][0x0],_0xeae8ef=new _0x22620d(_0xff273),_0x4cf4d1=_0xeae8ef['setAlpha'](0.2)[_0x59ef52(0x187)](),_0x37dd4f=_0xeae8ef[_0x59ef52(0xde)](0.05)[_0x59ef52(0x187)]();_0x566e06[_0xa186ec]={'groupMax':_0x16340f,'groupMin':_0x183d39,'showMax':_0x3e65dc,'showMin':_0x3be0e3,'startGradient':_0x4cf4d1,'endGradient':_0x37dd4f},this[_0x59ef52(0x12f)][_0x59ef52(0x10a)]({'unitId':_0x2f9860,'subUnitId':_0x7798cd,'groupId':_0xa186ec,'config':_0x422fae,'type':_0x42185a});}[_0x14cc69(0x156)](_0x1ffffc,_0x3a8fc3,_0x5d5d90,_0x1af902){const _0x2082d6=_0x14cc69;this[_0x2082d6(0x140)](_0x1ffffc,_0x3a8fc3)[_0x2082d6(0x18a)](_0x5d5d90,_0x1af902),this['updateSparklineExtraNum'](_0x1ffffc,_0x3a8fc3,_0x5d5d90,_0x2082d6(0x153));}[_0x14cc69(0xf5)](_0xd85331,_0x4fbfe4,_0x35051c,_0x1b296e){const _0x276708=_0x14cc69;var _0x5894ac;const _0x19d9a1=(_0x5894ac=this[_0x276708(0xdf)][_0x276708(0x14b)](_0xd85331))==null?void 0x0:_0x5894ac['get'](_0x4fbfe4);_0x35051c[_0x276708(0xee)](_0x5dd382=>{const _0x54da40=_0x276708;_0x19d9a1!=null&&_0x19d9a1[_0x54da40(0x134)](_0x5dd382)&&(_0x19d9a1['set'](_0x5dd382,_0x1b296e),this[_0x54da40(0xd2)](_0xd85331,_0x4fbfe4,_0x5dd382));});}[_0x14cc69(0x127)](_0x31a7c6,_0xe6ecb4,_0x52d201){const _0x1099a5=_0x14cc69;var _0x2c53d7,_0x2d6278;const _0x571e6f=this[_0x1099a5(0xdf)][_0x1099a5(0x14b)](_0x31a7c6);if(_0x571e6f){const _0x4fa53a=_0x571e6f[_0x1099a5(0x14b)](_0xe6ecb4);if(_0x4fa53a){_0x4fa53a[_0x1099a5(0xea)](_0x52d201);const _0x435708=(_0x2c53d7=this[_0x1099a5(0x12e)][_0x1099a5(0x14b)](_0x31a7c6))==null?void 0x0:_0x2c53d7[_0x1099a5(0x14b)](_0xe6ecb4);(_0x2d6278=_0x435708==null?void 0x0:_0x435708['matrix'])==null||_0x2d6278[_0x1099a5(0x115)]((_0x38c419,_0x2036ed,_0x3098a6)=>{const _0x3ed8ba=_0x1099a5;(_0x3098a6==null?void 0x0:_0x3098a6[_0x3ed8ba(0x163)])===_0x52d201&&(_0x435708==null||_0x435708[_0x3ed8ba(0xce)][_0x3ed8ba(0x11c)](_0x38c419,_0x2036ed));}),this[_0x1099a5(0x12f)]['next']({'unitId':_0x31a7c6,'subUnitId':_0xe6ecb4,'groupId':_0x52d201,'type':'remove'});}}}[_0x14cc69(0xef)](_0xd22fae,_0x3ff702,_0x4ca8d2,_0x7cc5c5){const _0x18f29b=_0x14cc69;var _0x392e19,_0x508fcd,_0x812dce,_0x39bf0a;const _0x521e20=(_0x392e19=this[_0x18f29b(0x12e)][_0x18f29b(0x14b)](_0xd22fae))==null?void 0x0:_0x392e19[_0x18f29b(0x14b)](_0x3ff702),_0x390164=_0x521e20==null?void 0x0:_0x521e20[_0x18f29b(0xce)][_0x18f29b(0x124)](_0x4ca8d2,_0x7cc5c5);if(_0x390164){const {groupId:_0x3540ef}=_0x390164,_0x382b89=(_0x508fcd=this[_0x18f29b(0xdf)][_0x18f29b(0x14b)](_0xd22fae))==null?void 0x0:_0x508fcd['get'](_0x3ff702);(_0x812dce=_0x382b89==null?void 0x0:_0x382b89[_0x18f29b(0x14b)](_0x3540ef))==null||_0x812dce[_0x18f29b(0x178)][_0x18f29b(0x11c)](_0x4ca8d2,_0x7cc5c5),(_0x39bf0a=_0x382b89==null?void 0x0:_0x382b89[_0x18f29b(0x14b)](_0x3540ef))!=null&&_0x39bf0a[_0x18f29b(0x178)]['hasValue']()||_0x382b89==null||_0x382b89[_0x18f29b(0xea)](_0x3540ef),_0x521e20==null||_0x521e20[_0x18f29b(0xce)][_0x18f29b(0x11c)](_0x4ca8d2,_0x7cc5c5),this['_updateConfig$'][_0x18f29b(0x10a)]({'unitId':_0xd22fae,'subUnitId':_0x3ff702,'groupId':_0x3540ef,'type':'remove'});}}[_0x14cc69(0x14d)](_0x4b56a6,_0x23dacb,_0x361efc){const _0xb05015=_0x14cc69;var _0x301e88,_0x222399,_0xdc2e1e,_0x588256;const _0x333580=(_0xdc2e1e=(_0x222399=(_0x301e88=this[_0xb05015(0xdf)][_0xb05015(0x14b)](_0x4b56a6))==null?void 0x0:_0x301e88[_0xb05015(0x14b)](_0x23dacb))==null?void 0x0:_0x222399[_0xb05015(0x14b)](_0x361efc))==null?void 0x0:_0xdc2e1e[_0xb05015(0x178)],_0x351dac=(_0x588256=this['_sparklineAnchorMap'][_0xb05015(0x14b)](_0x4b56a6))==null?void 0x0:_0x588256[_0xb05015(0x14b)](_0x23dacb);if(_0x333580&&_0x351dac){const {matrix:_0x5ae60d,extra:_0x36afe9}=_0x351dac;_0x333580[_0xb05015(0x115)]((_0x39da69,_0x496295,_0x30da9)=>{const _0x21e74d=_0xb05015;_0x5ae60d[_0x21e74d(0x11c)](_0x39da69,_0x496295);}),delete _0x36afe9[_0x361efc];}}['getSubUnitSparkline'](_0x3c32fa,_0x2ee995){const _0xaf000b=_0x14cc69;var _0xeff0a7;return(_0xeff0a7=this['_sparklineModel'][_0xaf000b(0x14b)](_0x3c32fa))==null?void 0x0:_0xeff0a7[_0xaf000b(0x14b)](_0x2ee995);}[_0x14cc69(0x13f)](_0x44362d,_0x39f192,_0x94b1b1){const _0x4d2ed6=_0x14cc69;var _0x2a84fa,_0x26639a;return(_0x26639a=(_0x2a84fa=this[_0x4d2ed6(0xdf)][_0x4d2ed6(0x14b)](_0x44362d))==null?void 0x0:_0x2a84fa[_0x4d2ed6(0x14b)](_0x39f192))==null?void 0x0:_0x26639a[_0x4d2ed6(0x14b)](_0x94b1b1);}[_0x14cc69(0x117)](_0x9fb55e,_0x414438,_0x550e65,_0x2d40b0){const _0x2aba06=_0x14cc69;var _0x1d5b8f,_0x37f9a8,_0x453af1;return(_0x453af1=(_0x37f9a8=(_0x1d5b8f=this[_0x2aba06(0x12e)][_0x2aba06(0x14b)](_0x9fb55e))==null?void 0x0:_0x1d5b8f[_0x2aba06(0x14b)](_0x414438))==null?void 0x0:_0x37f9a8[_0x2aba06(0xce)][_0x2aba06(0x124)](_0x550e65,_0x2d40b0))==null?void 0x0:_0x453af1[_0x2aba06(0x163)];}[_0x14cc69(0x176)](_0x211a52,_0x454d1e){const _0x426915=_0x14cc69;var _0x25a47f;const _0x445de5=this[_0x426915(0x100)](_0x211a52,_0x454d1e);_0x445de5['matrix'][_0x426915(0x115)]((_0x46a1ee,_0x33c261)=>{const _0x183680=_0x426915;_0x445de5[_0x183680(0xce)][_0x183680(0x11c)](_0x46a1ee,_0x33c261);});const _0x576255=(_0x25a47f=this[_0x426915(0xdf)]['get'](_0x211a52))==null?void 0x0:_0x25a47f['get'](_0x454d1e);if(_0x576255){for(const [_0x3c9b12]of _0x576255)this[_0x426915(0xd2)](_0x211a52,_0x454d1e,_0x3c9b12);}}['getSparklineCache'](){const _0x16f211=_0x14cc69;return{'sparklineModel':this[_0x16f211(0xdf)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x14cc69(0xf8)](_0x375154){const _0x4818ee=_0x14cc69,_0x5517db={};if(this['_sparklineModel'][_0x4818ee(0x134)](_0x375154)){_0x5517db[_0x375154]={};const _0x2aee3e=this[_0x4818ee(0xdf)][_0x4818ee(0x14b)](_0x375154);_0x2aee3e!=null&&_0x2aee3e['size']&&Array[_0x4818ee(0xf9)](_0x2aee3e['keys']())[_0x4818ee(0xee)](_0x514d96=>{const _0x11bfd6=_0x4818ee;_0x5517db[_0x375154][_0x514d96]={};const _0x3b5c32=_0x2aee3e[_0x11bfd6(0x14b)](_0x514d96);_0x3b5c32!=null&&_0x3b5c32[_0x11bfd6(0x162)]&&Array['from'](_0x3b5c32[_0x11bfd6(0x113)]())[_0x11bfd6(0xee)](_0x174843=>{const _0x3e5e2f=_0x11bfd6,_0x44db8d=_0x3b5c32[_0x3e5e2f(0x14b)](_0x174843);_0x44db8d&&(_0x5517db[_0x375154][_0x514d96][_0x174843]={'config':_0x44db8d[_0x3e5e2f(0x161)],'sparklines':_0x44db8d[_0x3e5e2f(0x178)]['getMatrix']()});});});}return _0x5517db;}[_0x14cc69(0xff)](_0x39c428){const _0x4ab00b=_0x14cc69;if(!_0x39c428)return;Object[_0x4ab00b(0x113)](_0x39c428)[_0x4ab00b(0xee)](_0x3e6180=>{const _0x2bf9af=_0x4ab00b,_0x52d7b0=_0x39c428[_0x3e6180];_0x52d7b0&&Object[_0x2bf9af(0x113)](_0x52d7b0)['forEach'](_0x2cbfc6=>{const _0x5ca18f=_0x2bf9af,_0x1b9be3=_0x52d7b0[_0x2cbfc6];_0x1b9be3&&Object[_0x5ca18f(0x113)](_0x1b9be3)[_0x5ca18f(0xee)](_0x5e09f0=>{const _0x2443fd=_0x5ca18f,_0x5ea872=_0x1b9be3[_0x5e09f0];if(_0x5ea872){const _0x180c8a={'config':_0x5ea872[_0x2443fd(0x161)],'sparklines':new _0x530d22(_0x5ea872[_0x2443fd(0x178)])};this[_0x2443fd(0x156)](_0x3e6180,_0x2cbfc6,_0x5e09f0,_0x180c8a);}});});});}[_0x14cc69(0x136)](_0x4ab28c){const _0x223c3c=_0x14cc69,_0x5325bc=this[_0x223c3c(0xdf)][_0x223c3c(0x14b)](_0x4ab28c);if(_0x5325bc){for(const [_0x70f2b3]of _0x5325bc){const _0x18e789=_0x5325bc[_0x223c3c(0x14b)](_0x70f2b3);if(_0x18e789){for(const [_0x258594]of _0x18e789)this[_0x223c3c(0x14d)](_0x4ab28c,_0x70f2b3,_0x258594);}}this['_sparklineModel'][_0x223c3c(0xea)](_0x4ab28c);}}};x=Vt([yt(0x0,_0x6d638f(_0x47443c))],x);const V={'id':_0x14cc69(0x125),'type':_0x4b0899[_0x14cc69(0x175)],'handler':(_0x2fe710,_0x44e870)=>{const _0x5030cf=_0x14cc69;if(!_0x44e870)return!0x1;const {sparklineConfigMap:_0x468864,unitId:_0x1d771b,subUnitId:_0x3864ac}=_0x44e870,_0x2c3a5d=_0x2fe710[_0x5030cf(0x14b)](x);return Object[_0x5030cf(0xe4)](_0x468864)[_0x5030cf(0xee)](([_0x4a4485,_0x43f9ed])=>{const _0x26d13e=_0x5030cf,_0x4d25bf={'config':_0x43f9ed[_0x26d13e(0x161)],'sparklines':new _0x530d22(_0x43f9ed[_0x26d13e(0x178)])};_0x2c3a5d[_0x26d13e(0x156)](_0x1d771b,_0x3864ac,_0x4a4485,_0x4d25bf);}),!0x0;}},y={'id':_0x14cc69(0x13d),'type':_0x4b0899[_0x14cc69(0x175)],'handler':(_0xd92744,_0x1e438e)=>{const _0x7e7f54=_0x14cc69;if(!_0x1e438e)return!0x1;const {unitId:_0x3a9005,subUnitId:_0x28deb2,ranges:_0x72c68a,isSingle:_0x5281d0,groupIds:_0xd1b969}=_0x1e438e,_0xbc0df1=_0xd92744[_0x7e7f54(0x14b)](x);return _0xd1b969?(_0xd1b969[_0x7e7f54(0xee)](_0x2c2090=>{_0xbc0df1['removeSparkline'](_0x3a9005,_0x28deb2,_0x2c2090);}),!0x0):_0x72c68a?(_0x72c68a[_0x7e7f54(0xee)](_0xb3e46f=>{const _0x17062c=_0x7e7f54;_0x257ce4[_0x17062c(0x182)](_0xb3e46f,(_0x4dcc,_0xbf4c3c)=>{const _0x5163f0=_0x17062c,_0x1cd44e=_0xbc0df1[_0x5163f0(0x117)](_0x3a9005,_0x28deb2,_0x4dcc,_0xbf4c3c);_0x1cd44e&&(_0x5281d0?_0xbc0df1['removePartSparkline'](_0x3a9005,_0x28deb2,_0x4dcc,_0xbf4c3c):_0xbc0df1[_0x5163f0(0x127)](_0x3a9005,_0x28deb2,_0x1cd44e));});}),!0x0):!0x1;}},Nt={'id':_0x14cc69(0xd8),'type':_0x4b0899[_0x14cc69(0x12d)],'handler':(_0xb9fd96,_0x33a77c)=>{const _0x4f3e81=_0x14cc69;if(!_0x33a77c)return!0x1;const {sourceRanges:_0x55b293,targetRanges:_0x543130,config:_0x351c4f}=_0x33a77c,_0x17ca01=_0xb9fd96[_0x4f3e81(0x14b)](_0x2b853f),_0x4f7959='g_'+_0x226667(0x6),_0x70162b=Fe(_0x55b293,_0x543130),_0x5f49f1={'config':_0x351c4f!=null?_0x351c4f:{},'sparklines':_0x70162b[_0x4f3e81(0x10b)]()},_0x17cb39=_0xb9fd96[_0x4f3e81(0x14b)](_0x47443c),_0xe8aca2=_0xb9fd96[_0x4f3e81(0x14b)](x),_0x1bcb85=_0x199019(_0x17cb39);if(!_0x1bcb85)return!0x1;const {unitId:_0x14db01,subUnitId:_0x274a9e}=_0x1bcb85,_0xe20e01=_0xb9fd96[_0x4f3e81(0x14b)](_0x3ae8cf),_0x27603a=[],_0x5e374b=[],_0x30ea37={},_0x3b586d={},_0x5df719=new Set([_0x4f7959]);_0x70162b[_0x4f3e81(0x115)]((_0xb90fb8,_0x516715,_0x53ca5f)=>{const _0x5d9256=_0x4f3e81,_0xb6e41=_0xe8aca2[_0x5d9256(0x117)](_0x14db01,_0x274a9e,_0xb90fb8,_0x516715);if(_0xb6e41){const _0x5d70ff=_0xe8aca2[_0x5d9256(0x13f)](_0x14db01,_0x274a9e,_0xb6e41);if(_0x5d70ff){_0x5df719['add'](_0xb6e41);let _0x43e0be=_0x30ea37[_0xb6e41],_0x2cc94c=_0x3b586d[_0xb6e41];_0x2cc94c||(_0x2cc94c={'config':_0x293a63[_0x5d9256(0x147)](_0x5d70ff[_0x5d9256(0x161)]),'sparklines':new _0x530d22(_0x5d70ff[_0x5d9256(0x178)][_0x5d9256(0x107)]())},_0x3b586d[_0xb6e41]=_0x2cc94c),_0x43e0be||(_0x43e0be={'config':_0x293a63[_0x5d9256(0x147)](_0x5d70ff[_0x5d9256(0x161)]),'sparklines':_0x5d70ff[_0x5d9256(0x178)][_0x5d9256(0x107)]()},_0x30ea37[_0xb6e41]=_0x43e0be),_0x2cc94c['sparklines'][_0x5d9256(0x11c)](_0xb90fb8,_0x516715);}}});const _0x5ef7f5={};return Object['entries'](_0x3b586d)[_0x4f3e81(0xee)](([_0x322ae7,_0x1a388f])=>{const _0x3663d3=_0x4f3e81;_0x1a388f[_0x3663d3(0x178)][_0x3663d3(0x17e)]()&&(_0x5ef7f5[_0x322ae7]={'config':_0x1a388f[_0x3663d3(0x161)],'sparklines':_0x1a388f[_0x3663d3(0x178)]['clone']()});}),_0x5ef7f5[_0x4f7959]=_0x5f49f1,_0x27603a[_0x4f3e81(0x15d)]({'id':y['id'],'params':{'unitId':_0x14db01,'subUnitId':_0x274a9e,'groupIds':Array['from'](_0x5df719),'isSingle':!0x1}}),_0x5df719[_0x4f3e81(0x162)]>0x1&&(_0x5e374b['push']({'id':y['id'],'params':{'unitId':_0x14db01,'subUnitId':_0x274a9e,'groupIds':Array[_0x4f3e81(0xf9)](_0x5df719),'isSingle':!0x1}}),_0x27603a['push']({'id':V['id'],'params':{'unitId':_0x14db01,'subUnitId':_0x274a9e,'sparklineConfigMap':_0x30ea37}})),_0x5e374b['push']({'id':V['id'],'params':{'unitId':_0x14db01,'subUnitId':_0x274a9e,'sparklineConfigMap':_0x5ef7f5}}),_0x519da8(_0x5e374b,_0xe20e01),_0x17ca01['pushUndoRedo']({'unitID':_0x14db01,'undoMutations':_0x27603a,'redoMutations':_0x5e374b}),!0x0;}},Ot={'id':_0x14cc69(0x13e),'type':_0x4b0899[_0x14cc69(0x12d)],'handler':(_0x5ad949,_0x7d8de0)=>{const _0x4961eb=_0x14cc69;var _0x5a10da;const {isSingle:_0x14c212=!0x0}=_0x7d8de0||{},_0x1821fa=_0x5ad949[_0x4961eb(0x14b)](_0x3ae8cf),_0x1f074c=_0x5ad949[_0x4961eb(0x14b)](_0x47443c),_0x40a939=_0x5ad949[_0x4961eb(0x14b)](x),_0x56966c=_0x5ad949['get'](_0x2b853f),_0x1e3594=_0x199019(_0x1f074c);if(!_0x1e3594)return!0x1;const _0x47815c=_0x5ad949[_0x4961eb(0x14b)](_0x4246b2),_0x1c7fce=(_0x5a10da=_0x7d8de0==null?void 0x0:_0x7d8de0['ranges'])!=null?_0x5a10da:_0x47815c['getCurrentSelections']()[_0x4961eb(0x165)](_0x5bfa26=>_0x5bfa26[_0x4961eb(0xd6)]),{unitId:_0x394811,subUnitId:_0x33e762}=_0x1e3594,_0x4feed7=[],_0x4347dd=[];_0x4feed7[_0x4961eb(0x15d)]({'id':y['id'],'params':{'unitId':_0x394811,'subUnitId':_0x33e762,'ranges':_0x1c7fce,'isSingle':_0x14c212}});const _0x58bf04=[],_0x129658={};return _0x1c7fce[_0x4961eb(0xee)](_0x27bb1e=>{_0x257ce4['foreach'](_0x27bb1e,(_0x3466b1,_0xc9f9da)=>{const _0x24d2de=_0x5c83,_0x5c3426=_0x40a939[_0x24d2de(0x117)](_0x394811,_0x33e762,_0x3466b1,_0xc9f9da);if(_0x5c3426){const _0x4d043d=_0x40a939['getSparklineById'](_0x394811,_0x33e762,_0x5c3426);_0x4d043d&&(_0x58bf04[_0x24d2de(0x15d)](_0x5c3426),_0x129658[_0x5c3426]={'config':_0x293a63[_0x24d2de(0x147)](_0x4d043d[_0x24d2de(0x161)]),'sparklines':_0x293a63[_0x24d2de(0x147)](_0x4d043d[_0x24d2de(0x178)][_0x24d2de(0x107)]())});}});}),_0x4347dd[_0x4961eb(0x15d)]({'id':y['id'],'params':{'unitId':_0x394811,'subUnitId':_0x33e762,'groupIds':_0x58bf04,'isSingle':!0x1}}),_0x4347dd[_0x4961eb(0x15d)]({'id':V['id'],'params':{'unitId':_0x394811,'subUnitId':_0x33e762,'sparklineConfigMap':_0x129658}}),_0x519da8(_0x4feed7,_0x1821fa),_0x56966c[_0x4961eb(0x16f)]({'unitID':_0x394811,'undoMutations':_0x4347dd,'redoMutations':_0x4feed7}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x4b0899[_0x14cc69(0x175)],'handler':(_0x405edb,_0x1a856e)=>{const _0xee7d07=_0x14cc69;if(!_0x1a856e)return!0x1;const {unitId:_0x5934a6,subUnitId:_0x5efd6e,groupIds:_0x435aa2,config:_0x39112b}=_0x1a856e,_0x56678e=_0x405edb[_0xee7d07(0x14b)](x);return _0x435aa2['forEach'](_0x515885=>{const _0x1bc8a0=_0xee7d07,_0x424713=_0x56678e[_0x1bc8a0(0x13f)](_0x5934a6,_0x5efd6e,_0x515885);if(_0x424713){const _0x318340={'config':Object['assign']({},_0x424713[_0x1bc8a0(0x161)],_0x39112b['config']),'sparklines':new _0x530d22(_0x424713[_0x1bc8a0(0x178)][_0x1bc8a0(0x107)]())};_0x56678e[_0x1bc8a0(0xf5)](_0x5934a6,_0x5efd6e,[_0x515885],_0x318340);}}),!0x0;}},xt={'id':_0x14cc69(0x123),'type':_0x4b0899[_0x14cc69(0x12d)],'handler':(_0x138234,_0x44f921)=>{const _0x4e83a7=_0x14cc69;var _0x1cf285,_0xefde9d,_0x2a2d93,_0x3970de;if(!_0x44f921)return!0x1;const _0x363156=_0x138234[_0x4e83a7(0x14b)](_0x3ae8cf),_0x3c4437=_0x138234['get'](_0x4246b2),_0x112a4a=_0x138234['get'](x),_0x234bd3=_0x138234[_0x4e83a7(0x14b)](_0x47443c),_0x3c158b=_0x138234['get'](_0x2b853f),_0x1df369=_0x199019(_0x234bd3);if(!_0x1df369)return!0x1;const {unitId:_0x599b4b,subUnitId:_0x5dfbde}=_0x1df369,_0x31f522=(_0x1cf285=_0x44f921==null?void 0x0:_0x44f921[_0x4e83a7(0x11f)])!=null?_0x1cf285:_0x3c4437['getCurrentSelections']()[_0x4e83a7(0x165)](_0x2b09f5=>_0x2b09f5[_0x4e83a7(0xd6)]),_0x195ffe=(_0xefde9d=_0x112a4a[_0x4e83a7(0xe3)]()[_0x4e83a7(0x11a)][_0x4e83a7(0x14b)](_0x599b4b))==null?void 0x0:_0xefde9d['get'](_0x5dfbde),{isChangeDataSource:_0x58c0d8,config:_0x53090c,combine:_0x32ea38,unCombine:_0x1e2ae0}=_0x44f921;if(_0x32ea38){const _0x55162d=[],_0x19c846=[];_0x55162d['push']({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'ranges':_0x31f522,'isSingle':!0x0}});const _0x3f237a='g_'+_0x226667(0x6),_0x213d66=new _0x530d22(),_0x476b14=(_0x2a2d93=_0x112a4a[_0x4e83a7(0xe3)]()['sparklineModel'][_0x4e83a7(0x14b)](_0x599b4b))==null?void 0x0:_0x2a2d93['get'](_0x5dfbde),_0x72a9eb=new Set([_0x3f237a]),_0x2ea1d7={};return _0x31f522['forEach'](_0x80a729=>{const _0x2b0d0b=_0x4e83a7;var _0x375a38,_0xf2943b;const {startRow:_0x832a42,endRow:_0x121811,startColumn:_0x137b2d,endColumn:_0x560da4}=_0x80a729;for(let _0x2240f9=_0x832a42;_0x2240f9<=_0x121811;_0x2240f9++)for(let _0x165808=_0x137b2d;_0x165808<=_0x560da4;_0x165808++){const _0x48d09f=(_0x375a38=_0x195ffe==null?void 0x0:_0x195ffe[_0x2b0d0b(0xce)][_0x2b0d0b(0x124)](_0x2240f9,_0x165808))==null?void 0x0:_0x375a38[_0x2b0d0b(0x163)];if(_0x48d09f){_0x72a9eb[_0x2b0d0b(0x153)](_0x48d09f);const _0x272883=_0x112a4a['getSparklineById'](_0x599b4b,_0x5dfbde,_0x48d09f);_0x272883&&(_0x2ea1d7[_0x48d09f]={'config':_0x293a63['deepClone'](_0x272883[_0x2b0d0b(0x161)]),'sparklines':_0x293a63[_0x2b0d0b(0x147)](_0x272883[_0x2b0d0b(0x178)]['clone']())});const _0x401c23=(_0xf2943b=_0x476b14==null?void 0x0:_0x476b14['get'](_0x48d09f))==null?void 0x0:_0xf2943b[_0x2b0d0b(0x178)][_0x2b0d0b(0x124)](_0x2240f9,_0x165808);_0x401c23&&_0x213d66[_0x2b0d0b(0xe2)](_0x2240f9,_0x165808,_0x401c23);}}}),_0x55162d['push']({'id':V['id'],'params':{'sparklineConfigMap':{[_0x3f237a]:{'config':_0x293a63[_0x4e83a7(0x147)](_0x53090c[_0x4e83a7(0x161)]),'sparklines':_0x213d66['getMatrix']()}},'unitId':_0x599b4b,'subUnitId':_0x5dfbde}}),_0x19c846[_0x4e83a7(0x15d)]({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'isSingle':!0x1,'groupIds':Array[_0x4e83a7(0xf9)](_0x72a9eb)}}),_0x19c846['push']({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':_0x2ea1d7}}),_0x519da8(_0x55162d,_0x363156),_0x3c158b['pushUndoRedo']({'unitID':_0x599b4b,'undoMutations':_0x19c846,'redoMutations':_0x55162d}),!0x0;}else{if(_0x1e2ae0){const _0x2f497a=[],_0x5855ea=[];_0x2f497a[_0x4e83a7(0x15d)]({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'ranges':_0x31f522,'isSingle':!0x0}});const _0x53fdda=(_0x3970de=_0x112a4a['getSparklineCache']()['sparklineModel'][_0x4e83a7(0x14b)](_0x599b4b))==null?void 0x0:_0x3970de[_0x4e83a7(0x14b)](_0x5dfbde),_0x47d05e={},_0x388760=new Set(),_0x3abf6f={};return _0x31f522[_0x4e83a7(0xee)](_0x2fe256=>{const _0xb3dab5=_0x4e83a7;var _0x25f10d,_0x510806;const {startRow:_0x5c5fee,endRow:_0x4a28d0,startColumn:_0x4bf778,endColumn:_0x4230df}=_0x2fe256;for(let _0x49e08b=_0x5c5fee;_0x49e08b<=_0x4a28d0;_0x49e08b++)for(let _0x17f8d9=_0x4bf778;_0x17f8d9<=_0x4230df;_0x17f8d9++){const _0x3e3815=(_0x25f10d=_0x195ffe==null?void 0x0:_0x195ffe[_0xb3dab5(0xce)][_0xb3dab5(0x124)](_0x49e08b,_0x17f8d9))==null?void 0x0:_0x25f10d[_0xb3dab5(0x163)];if(_0x3e3815){const _0x5ea3df=new _0x530d22(),_0x363dc3='g_'+_0x226667(0x6);_0x388760[_0xb3dab5(0x153)](_0x3e3815),_0x388760[_0xb3dab5(0x153)](_0x363dc3);const _0x47e84c=_0x112a4a['getSparklineById'](_0x599b4b,_0x5dfbde,_0x3e3815);_0x47e84c&&(_0x3abf6f[_0x3e3815]={'config':_0x293a63['deepClone'](_0x47e84c[_0xb3dab5(0x161)]),'sparklines':_0x293a63[_0xb3dab5(0x147)](_0x47e84c[_0xb3dab5(0x178)][_0xb3dab5(0x107)]())});const _0x211f4d=(_0x510806=_0x53fdda==null?void 0x0:_0x53fdda[_0xb3dab5(0x14b)](_0x3e3815))==null?void 0x0:_0x510806[_0xb3dab5(0x178)][_0xb3dab5(0x124)](_0x49e08b,_0x17f8d9);_0x211f4d&&_0x5ea3df['setValue'](_0x49e08b,_0x17f8d9,_0x211f4d),_0x47d05e[_0x363dc3]={'sparklines':_0x5ea3df[_0xb3dab5(0x10b)](),'config':_0x293a63[_0xb3dab5(0x147)](_0x53090c[_0xb3dab5(0x161)])};}}}),_0x2f497a[_0x4e83a7(0x15d)]({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':_0x47d05e}}),_0x5855ea[_0x4e83a7(0x15d)]({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'isSingle':!0x1,'groupIds':Array[_0x4e83a7(0xf9)](_0x388760)}}),_0x5855ea[_0x4e83a7(0x15d)]({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':_0x3abf6f}}),_0x519da8(_0x2f497a,_0x363156),_0x3c158b['pushUndoRedo']({'unitID':_0x599b4b,'undoMutations':_0x5855ea,'redoMutations':_0x2f497a}),!0x0;}}if(_0x58c0d8){const _0x54cb27=_0x44f921[_0x4e83a7(0x17d)];if(!_0x54cb27)return!0x1;const {groupId:_0x3eb34f,sourceRanges:_0x13cbb8,targetRanges:_0x227eba,resetType:_0xb662c,primary:_0x5a9901}=_0x54cb27,_0x1ba61c=[],_0x15679d=[];_0x1ba61c['push']({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'ranges':_0x31f522,'isSingle':!0x1,'groupIds':[_0x3eb34f]}}),_0x15679d[_0x4e83a7(0x15d)]({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'ranges':_0x31f522,'isSingle':!0x1,'groupIds':[_0x3eb34f]}});let _0x326d7f;_0xb662c===_0x4e83a7(0x120)?(_0x326d7f=new _0x530d22(_0x53090c[_0x4e83a7(0x178)][_0x4e83a7(0x107)]()),_0x326d7f[_0x4e83a7(0x11c)](_0x5a9901['actualRow'],_0x5a9901[_0x4e83a7(0x118)]),_0x326d7f['setValue'](_0x227eba[0x0][_0x4e83a7(0xe1)],_0x227eba[0x0]['startColumn'],_0x13cbb8[0x0])):_0x326d7f=Fe(_0x13cbb8,_0x227eba);const _0x11ac25={'config':_0x293a63[_0x4e83a7(0x147)](_0x53090c[_0x4e83a7(0x161)]),'sparklines':_0x326d7f[_0x4e83a7(0x10b)]()},_0x3eed73={'config':_0x293a63[_0x4e83a7(0x147)](_0x53090c['config']),'sparklines':_0x293a63[_0x4e83a7(0x147)](_0x53090c[_0x4e83a7(0x178)][_0x4e83a7(0x107)]())};_0x1ba61c[_0x4e83a7(0x15d)]({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':{[_0x3eb34f]:_0x11ac25}}}),_0x15679d[_0x4e83a7(0x15d)]({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':{[_0x3eb34f]:_0x3eed73}}}),_0x519da8(_0x1ba61c,_0x363156),_0x3c158b[_0x4e83a7(0x16f)]({'unitID':_0x599b4b,'undoMutations':_0x15679d,'redoMutations':_0x1ba61c});}else{const _0x405c3a=[],_0x1cc747=[],_0x354a7c=new Set(),_0x3d503c={};_0x31f522['forEach'](_0x4eac55=>{const _0x4ce20c=_0x4e83a7;var _0x45ae56;const {startRow:_0x1306ce,endRow:_0x2f1385,startColumn:_0x55cb65,endColumn:_0x4bc7cb}=_0x4eac55;for(let _0x21be43=_0x1306ce;_0x21be43<=_0x2f1385;_0x21be43++)for(let _0x546c50=_0x55cb65;_0x546c50<=_0x4bc7cb;_0x546c50++){const _0x101683=(_0x45ae56=_0x195ffe==null?void 0x0:_0x195ffe['matrix'][_0x4ce20c(0x124)](_0x21be43,_0x546c50))==null?void 0x0:_0x45ae56[_0x4ce20c(0x163)];if(_0x101683){_0x354a7c[_0x4ce20c(0x153)](_0x101683);const _0x385faa=_0x112a4a[_0x4ce20c(0x13f)](_0x599b4b,_0x5dfbde,_0x101683);_0x385faa&&(_0x3d503c[_0x101683]={'config':_0x293a63[_0x4ce20c(0x147)](_0x385faa[_0x4ce20c(0x161)]),'sparklines':_0x293a63['deepClone'](_0x385faa[_0x4ce20c(0x178)][_0x4ce20c(0x107)]())});}}}),_0x1cc747[_0x4e83a7(0x15d)]({'id':Oe['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'groupIds':Array[_0x4e83a7(0xf9)](_0x354a7c),'config':{'config':_0x293a63['deepClone'](_0x53090c[_0x4e83a7(0x161)]),'sparklines':_0x53090c[_0x4e83a7(0x178)][_0x4e83a7(0x10b)]()}}}),_0x405c3a['push']({'id':y['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'isSingle':!0x1,'groupIds':Array['from'](_0x354a7c)}}),_0x405c3a[_0x4e83a7(0x15d)]({'id':V['id'],'params':{'unitId':_0x599b4b,'subUnitId':_0x5dfbde,'sparklineConfigMap':_0x3d503c}}),_0x519da8(_0x1cc747,_0x363156),_0x3c158b['pushUndoRedo']({'unitID':_0x599b4b,'undoMutations':_0x405c3a,'redoMutations':_0x1cc747});}return!0x0;}};var Ut=Object[_0x14cc69(0x11b)],Pt=(_0x59f962,_0x27f9da,_0x45ef50,_0x5637a5)=>{for(var _0x28cd09=_0x5637a5>0x1?void 0x0:_0x5637a5?Ut(_0x27f9da,_0x45ef50):_0x27f9da,_0x11a93a=_0x59f962['length']-0x1,_0x1c54e2;_0x11a93a>=0x0;_0x11a93a--)(_0x1c54e2=_0x59f962[_0x11a93a])&&(_0x28cd09=_0x1c54e2(_0x28cd09)||_0x28cd09);return _0x28cd09;},fe=(_0x1bb89e,_0x353456)=>(_0x38131f,_0x2d75c1)=>_0x353456(_0x38131f,_0x2d75c1,_0x1bb89e);let Se=class extends _0x2b44df{constructor(_0x270d7d,_0x434441,_0x370f06,_0x149d38){const _0x204728=_0x14cc69;super(),this[_0x204728(0x12a)]=_0x270d7d,this[_0x204728(0x143)]=_0x434441,this[_0x204728(0xd4)]=_0x370f06,this[_0x204728(0xda)]=_0x149d38,this[_0x204728(0xcd)]();}[_0x14cc69(0xcd)](){const _0x329430=_0x14cc69;this['disposeWithMe'](this[_0x329430(0x143)]['interceptCommand']({'getMutations':_0x8bbec=>{const _0x5d3164=_0x329430,_0x3b3a43=[],_0x77fca5=[];if(_0x8bbec['id']===_0x98b9b3['id']){const _0x490032=_0x199019(this[_0x5d3164(0xd4)]);if(!_0x490032)return{'redos':_0x3b3a43,'undos':_0x77fca5};const {unitId:_0x3cb250,subUnitId:_0x323008,worksheet:_0x5a112b}=_0x490032,_0x1bcad9=this['_sheetSelectionService'][_0x5d3164(0x104)]()[_0x5d3164(0x165)](_0x57fa7a=>_0x57fa7a[_0x5d3164(0xd6)]),_0x2fd81d=new Set(),_0x166333={},_0x1f09e5={};_0x1bcad9['forEach'](_0x44b68f=>{const _0x21bf7e=_0x5d3164;_0x257ce4[_0x21bf7e(0x182)](_0x44b68f,(_0x552831,_0x2ac044)=>{const _0x5caca9=_0x21bf7e,_0x17c914=this[_0x5caca9(0x12a)]['getSparkline'](_0x3cb250,_0x323008,_0x552831,_0x2ac044);if(_0x17c914&&!_0x2fd81d[_0x5caca9(0x134)](_0x17c914)){const _0x784cc4=this[_0x5caca9(0x12a)]['getSparklineById'](_0x3cb250,_0x323008,_0x17c914);_0x784cc4&&(_0x2fd81d['add'](_0x17c914),_0x166333[_0x17c914]={'config':_0x293a63[_0x5caca9(0x147)](_0x784cc4['config']),'sparklines':_0x293a63[_0x5caca9(0x147)](_0x784cc4[_0x5caca9(0x178)][_0x5caca9(0x107)]())},_0x1f09e5[_0x17c914]={'config':_0x293a63[_0x5caca9(0x147)](_0x784cc4[_0x5caca9(0x161)]),'sparklines':_0x293a63[_0x5caca9(0x147)](_0x784cc4['sparklines'][_0x5caca9(0x107)]())});}});}),Object[_0x5d3164(0x14a)](_0x1f09e5)['forEach'](_0x10143e=>{const _0x737952=_0x5d3164,_0x607c68=_0x10143e[_0x737952(0x178)];new _0x530d22(_0x607c68)['forValue']((_0x207952,_0x1dee0f,_0x1fd25a)=>{_0x1bcad9['some'](_0xb449b2=>_0x215744['intersects'](_0xb449b2,_0x3d5a9d(_0x207952,_0x1dee0f)))&&delete _0x607c68[_0x207952][_0x1dee0f];});}),_0x3b3a43[_0x5d3164(0x15d)]({'id':y['id'],'params':{'unitId':_0x3cb250,'subUnitId':_0x323008,'groupIds':Array[_0x5d3164(0xf9)](_0x2fd81d),'isSingle':!0x1}}),_0x3b3a43[_0x5d3164(0x15d)]({'id':V['id'],'params':{'unitId':_0x3cb250,'subUnitId':_0x323008,'sparklineConfigMap':_0x1f09e5}}),_0x77fca5[_0x5d3164(0x15d)]({'id':y['id'],'params':{'unitId':_0x3cb250,'subUnitId':_0x323008,'groupIds':Array[_0x5d3164(0xf9)](_0x2fd81d),'isSingle':!0x1}}),_0x77fca5[_0x5d3164(0x15d)]({'id':V['id'],'params':{'unitId':_0x3cb250,'subUnitId':_0x323008,'sparklineConfigMap':_0x166333}});}return{'redos':_0x3b3a43,'undos':_0x77fca5};}}));}};Se=Pt([fe(0x0,_0x6d638f(x)),fe(0x1,_0x6d638f(_0x3c58f5)),fe(0x2,_0x6d638f(_0x47443c)),fe(0x3,_0x6d638f(_0x4246b2))],Se);var Tt=Object[_0x14cc69(0x11b)],$t=(_0x34d45b,_0x445d1b,_0x11ba25,_0x34357e)=>{const _0x417a2e=_0x14cc69;for(var _0x1fc3df=_0x34357e>0x1?void 0x0:_0x34357e?Tt(_0x445d1b,_0x11ba25):_0x445d1b,_0x2a7129=_0x34d45b[_0x417a2e(0x17a)]-0x1,_0x39e5c4;_0x2a7129>=0x0;_0x2a7129--)(_0x39e5c4=_0x34d45b[_0x2a7129])&&(_0x1fc3df=_0x39e5c4(_0x1fc3df)||_0x1fc3df);return _0x1fc3df;},Ge=(_0x577a80,_0x3b7ac5)=>(_0x379d3e,_0x35000d)=>_0x3b7ac5(_0x379d3e,_0x35000d,_0x577a80);let ke=class extends _0x2b44df{constructor(_0x108f10,_0x2d26ab){const _0x2ba1e8=_0x14cc69;super(),this[_0x2ba1e8(0x143)]=_0x108f10,this[_0x2ba1e8(0x12a)]=_0x2d26ab,this[_0x2ba1e8(0x173)]();}['_initCopySheetWithSparkline'](){const _0x2eaf64=_0x14cc69;this[_0x2eaf64(0x10d)](this[_0x2eaf64(0x143)][_0x2eaf64(0x109)]({'getMutations':_0x25ba22=>{const _0x4f125a=_0x2eaf64,_0x2fbd42=[],_0x28eb37=[];if(_0x25ba22['id']===_0x39b79a['id']){const _0x55932e=_0x25ba22[_0x4f125a(0x10e)];if(!_0x55932e)return{'redos':_0x2fbd42,'undos':_0x28eb37};const {unitId:_0x16f21c,subUnitId:_0xd67238,targetSubUnitId:_0x528c1c}=_0x55932e;if(!_0x16f21c||!_0xd67238||!_0x528c1c)return{'redos':_0x2fbd42,'undos':_0x28eb37};const _0x79e5c3=new Set(),_0x3ca654={},_0x1559e9=this[_0x4f125a(0x12a)]['getSubUnitSparkline'](_0x16f21c,_0xd67238);if(!_0x1559e9)return{'redos':_0x2fbd42,'undos':_0x28eb37};for(const [_0x56e22d,_0xdce978]of _0x1559e9){const _0x143887='g_'+_0x226667(0x6);_0x79e5c3[_0x4f125a(0x153)](_0x56e22d),_0x3ca654[_0x143887]={'config':_0x293a63['deepClone'](_0xdce978[_0x4f125a(0x161)]),'sparklines':_0x293a63[_0x4f125a(0x147)](_0xdce978[_0x4f125a(0x178)][_0x4f125a(0x107)]())};}_0x79e5c3[_0x4f125a(0x162)]&&(_0x28eb37['push']({'id':y['id'],'params':{'unitId':_0x16f21c,'subUnitId':_0x528c1c,'groupIds':Array[_0x4f125a(0xf9)](_0x79e5c3),'isSingle':!0x1}}),_0x2fbd42[_0x4f125a(0x15d)]({'id':V['id'],'params':{'unitId':_0x16f21c,'subUnitId':_0x528c1c,'sparklineConfigMap':_0x3ca654}}));}return{'redos':_0x2fbd42,'undos':_0x28eb37};}}));}};ke=$t([Ge(0x0,_0x6d638f(_0x3c58f5)),Ge(0x1,_0x6d638f(x))],ke);var jt=Object['getOwnPropertyDescriptor'],Lt=(_0x123ca1,_0x5414f2,_0x3cf68d,_0x13ff1c)=>{const _0x10a72d=_0x14cc69;for(var _0x34c4d4=_0x13ff1c>0x1?void 0x0:_0x13ff1c?jt(_0x5414f2,_0x3cf68d):_0x5414f2,_0x4afbcb=_0x123ca1[_0x10a72d(0x17a)]-0x1,_0x518681;_0x4afbcb>=0x0;_0x4afbcb--)(_0x518681=_0x123ca1[_0x4afbcb])&&(_0x34c4d4=_0x518681(_0x34c4d4)||_0x34c4d4);return _0x34c4d4;},Ie=(_0x21db58,_0x5c9b08)=>(_0x538c80,_0x20bdfb)=>_0x5c9b08(_0x538c80,_0x20bdfb,_0x21db58);let me=class extends _0x2b44df{constructor(_0x14823f,_0xfef7cb,_0x4870ff){const _0x23d900=_0x14cc69;super(),this['_commandService']=_0x14823f,this[_0x23d900(0x12a)]=_0xfef7cb,this[_0x23d900(0x132)]=_0x4870ff,this[_0x23d900(0x111)](),this[_0x23d900(0x15b)]();}['_initDataChangeListener'](){const _0x344122=_0x14cc69;this['disposeWithMe'](this[_0x344122(0x17b)][_0x344122(0x141)](_0x14a953=>{const _0x42f94f=_0x344122;if(_0x14a953['id']===_0x587b40['id']){const _0x5ee337=_0x14a953[_0x42f94f(0x10e)],{cellValue:_0xccb6c,unitId:_0x10defe,subUnitId:_0x2b1e29}=_0x5ee337,_0x1f231a=new _0x530d22(_0xccb6c),_0x39aa3f=new Set(),_0xe75729=this[_0x42f94f(0x12a)]['getSubUnitSparkline'](_0x10defe,_0x2b1e29);if(!_0xe75729)return;const _0x7e1e9f=Array[_0x42f94f(0xf9)](_0xe75729);_0x1f231a['forValue']((_0x35040a,_0x201ca7,_0x449826)=>{const _0x1bfa45=_0x42f94f,_0x1f686b=_0x3d5a9d(_0x35040a,_0x201ca7);for(let _0x11b6ba=0x0;_0x11b6ba<_0x7e1e9f[_0x1bfa45(0x17a)];_0x11b6ba++){const [_0x1ea88e,_0x5c836b]=_0x7e1e9f[_0x11b6ba],_0xf30ee6=_0x39aa3f[_0x1bfa45(0x134)](_0x1ea88e);_0xf30ee6||_0x5c836b['sparklines'][_0x1bfa45(0x115)]((_0xc10ffc,_0x29f999,_0x280162)=>{const _0x2f4a93=_0x1bfa45,_0x3b0136=_0x280162;if(_0x3b0136&&!_0xf30ee6&&_0x215744[_0x2f4a93(0x16e)](_0x1f686b,_0x3b0136))return _0x39aa3f['add'](_0x1ea88e),!0x0;});}}),_0x39aa3f['forEach'](_0x2acee6=>{const _0x5a639e=_0x42f94f;this[_0x5a639e(0x12a)][_0x5a639e(0x14d)](_0x10defe,_0x2b1e29,_0x2acee6),this[_0x5a639e(0x12a)][_0x5a639e(0xd2)](_0x10defe,_0x2b1e29,_0x2acee6);});}else{if(_0x14a953['id']===_0x6409c3['id']){const _0x4b0812=_0x14a953[_0x42f94f(0x10e)],{range:_0x45f6e6,unitId:_0xdc126,subUnitId:_0x1bf01f}=_0x4b0812,_0x1e823e=new Set(),_0x5bc3c1=this[_0x42f94f(0x12a)][_0x42f94f(0x129)](_0xdc126,_0x1bf01f);if(!_0x5bc3c1)return;const _0x58712e=Array[_0x42f94f(0xf9)](_0x5bc3c1);for(let _0x2c5c51=0x0;_0x2c5c51<_0x58712e[_0x42f94f(0x17a)];_0x2c5c51++){const [_0x164b90,_0x2c7f06]=_0x58712e[_0x2c5c51],_0xa8d1a2=_0x1e823e[_0x42f94f(0x134)](_0x164b90);_0xa8d1a2||_0x2c7f06[_0x42f94f(0x178)][_0x42f94f(0x115)]((_0x5e5693,_0x2fe684,_0x2ac6fd)=>{const _0x215422=_0x42f94f,_0x349bc2=_0x2ac6fd;if(_0x349bc2&&!_0xa8d1a2&&_0x215744['intersects'](_0x45f6e6,_0x349bc2))return _0x1e823e[_0x215422(0x153)](_0x164b90),!0x0;});}_0x1e823e[_0x42f94f(0xee)](_0x2cd73e=>{const _0x478610=_0x42f94f;this[_0x478610(0x12a)][_0x478610(0x14d)](_0xdc126,_0x1bf01f,_0x2cd73e),this[_0x478610(0x12a)][_0x478610(0xd2)](_0xdc126,_0x1bf01f,_0x2cd73e);});}}}));}[_0x14cc69(0x15b)](){const _0x3501ba=_0x14cc69;this['disposeWithMe'](this[_0x3501ba(0x132)][_0x3501ba(0xcc)][_0x3501ba(0x151)](_0x591c05=>{const _0x294f4d=_0x3501ba,{unitId:_0x73c1bb,subUnitId:_0x4a0aaa,ranges:_0x4f52f3}=_0x591c05,_0x4a7f2c=this[_0x294f4d(0x12a)][_0x294f4d(0x129)](_0x73c1bb,_0x4a0aaa);if(!_0x4a7f2c)return;const _0x494ebd=Array[_0x294f4d(0xf9)](_0x4a7f2c),_0x21cfec=new Set();for(let _0x2df98d=0x0;_0x2df98d<_0x494ebd[_0x294f4d(0x17a)];_0x2df98d++){const [_0x163664,_0x4007f7]=_0x494ebd[_0x2df98d],_0x5da55b=_0x21cfec[_0x294f4d(0x134)](_0x163664);_0x5da55b||_0x4007f7[_0x294f4d(0x178)][_0x294f4d(0x115)]((_0x171745,_0x78935e,_0x39e681)=>{const _0x11db61=_0x294f4d,_0x2c8edf=_0x39e681;if(_0x2c8edf&&!_0x5da55b){for(const _0x5aac75 of _0x4f52f3)if(_0x215744[_0x11db61(0x16e)](_0x5aac75,_0x2c8edf)){_0x21cfec['add'](_0x163664);break;}}});}_0x21cfec[_0x294f4d(0xee)](_0x37ec3a=>{const _0x19efd9=_0x294f4d;this[_0x19efd9(0x12a)][_0x19efd9(0x14d)](_0x73c1bb,_0x4a0aaa,_0x37ec3a),this['_sparklineDataSourceModel'][_0x19efd9(0xd2)](_0x73c1bb,_0x4a0aaa,_0x37ec3a);});}));}};me=Lt([Ie(0x0,_0x6d638f(_0x3ae8cf)),Ie(0x1,_0x6d638f(x)),Ie(0x2,_0x6d638f(_0x1a0f30))],me);var Gt=Object[_0x14cc69(0x11b)],Wt=(_0x1fe0a2,_0x3b575d,_0x510d9f,_0x573889)=>{const _0x53a5de=_0x14cc69;for(var _0x3aa62b=_0x573889>0x1?void 0x0:_0x573889?Gt(_0x3b575d,_0x510d9f):_0x3b575d,_0x43ee4a=_0x1fe0a2[_0x53a5de(0x17a)]-0x1,_0x241070;_0x43ee4a>=0x0;_0x43ee4a--)(_0x241070=_0x1fe0a2[_0x43ee4a])&&(_0x3aa62b=_0x241070(_0x3aa62b)||_0x3aa62b);return _0x3aa62b;},We=(_0x1c0bc0,_0x43d536)=>(_0x4a9740,_0x275c87)=>_0x43d536(_0x4a9740,_0x275c87,_0x1c0bc0);let Ce=class extends _0x2b44df{constructor(_0x4c2bbf,_0x5d995e){const _0x332015=_0x14cc69;super(),this[_0x332015(0x17b)]=_0x4c2bbf,this[_0x332015(0x12a)]=_0x5d995e,this[_0x332015(0x184)]();}[_0x14cc69(0x184)](){const _0x2eb1a4=_0x14cc69;this[_0x2eb1a4(0x17b)]['onCommandExecuted'](_0x33dccb=>{const _0x367079=_0x2eb1a4;if(_0x33dccb['id']===_0x1806a4['id']||_0x33dccb['id']===_0x447b5d['id']||_0x33dccb['id']===_0x50fd7a['id']||_0x33dccb['id']===_0x25192d['id']){const _0xbc1a8c=_0x33dccb[_0x367079(0x10e)],{ranges:_0x3442e7,unitId:_0x4414a7,subUnitId:_0x3eb1cc}=_0xbc1a8c,_0x59e9c5=new Set(),_0x10a6ee=this[_0x367079(0x12a)][_0x367079(0x129)](_0x4414a7,_0x3eb1cc);if(!_0x10a6ee)return;const _0x364768=Array['from'](_0x10a6ee);_0x3442e7[_0x367079(0xee)](_0x329573=>{const _0x4010eb=_0x367079;_0x257ce4[_0x4010eb(0x182)](_0x329573,(_0x569fed,_0x3b0dd6)=>{const _0x39e5ba=_0x4010eb,_0xc7b69b=_0x3d5a9d(_0x569fed,_0x3b0dd6);for(let _0x2f62e8=0x0;_0x2f62e8<_0x364768['length'];_0x2f62e8++){const [_0x5343f2,_0x42f58a]=_0x364768[_0x2f62e8],_0x47d6ab=_0x59e9c5[_0x39e5ba(0x134)](_0x5343f2);_0x47d6ab||_0x42f58a[_0x39e5ba(0x178)][_0x39e5ba(0x115)]((_0x4ffa7d,_0x4b01ec,_0x30b3f1)=>{const _0x37bfa4=_0x39e5ba,_0x29f46d=_0x30b3f1;if(_0x29f46d&&!_0x47d6ab&&_0x215744['intersects'](_0xc7b69b,_0x29f46d))return _0x59e9c5[_0x37bfa4(0x153)](_0x5343f2),!0x0;});}});}),_0x59e9c5[_0x367079(0xee)](_0x437af7=>{const _0x26ebd6=_0x367079;this[_0x26ebd6(0x12a)][_0x26ebd6(0x14d)](_0x4414a7,_0x3eb1cc,_0x437af7),this[_0x26ebd6(0x12a)][_0x26ebd6(0xd2)](_0x4414a7,_0x3eb1cc,_0x437af7);});}});}};Ce=Wt([We(0x0,_0x6d638f(_0x3ae8cf)),We(0x1,_0x6d638f(x))],Ce);function _0x5c83(_0x4411c6,_0x20377b){const _0x196c47=_0x196c();return _0x5c83=function(_0x5c83d0,_0x4b7b8a){_0x5c83d0=_0x5c83d0-0xcc;let _0x2a0f86=_0x196c47[_0x5c83d0];return _0x2a0f86;},_0x5c83(_0x4411c6,_0x20377b);}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x568679,_0xc872e4,_0x5b0000,_0x4e59a7)=>{const _0x3f2128=_0x14cc69;for(var _0xb5af7b=_0x4e59a7>0x1?void 0x0:_0x4e59a7?Bt(_0xc872e4,_0x5b0000):_0xc872e4,_0x166be5=_0x568679[_0x3f2128(0x17a)]-0x1,_0x4c9dc3;_0x166be5>=0x0;_0x166be5--)(_0x4c9dc3=_0x568679[_0x166be5])&&(_0xb5af7b=_0x4c9dc3(_0xb5af7b)||_0xb5af7b);return _0xb5af7b;},be=(_0x229745,_0x486e83)=>(_0x5bb5f5,_0x1e0b4b)=>_0x486e83(_0x5bb5f5,_0x1e0b4b,_0x229745);let _e=class extends _0x2b44df{constructor(_0x389b52,_0x25227d,_0x2fb507){const _0x2bf5cc=_0x14cc69;super(),this['_commandService']=_0x389b52,this[_0x2bf5cc(0x143)]=_0x25227d,this['_sparklineDataSourceModel']=_0x2fb507,this['_initMergeWithSparkline']();}[_0x14cc69(0x13a)](){const _0x1ed4db=_0x14cc69;this[_0x1ed4db(0x10d)](this[_0x1ed4db(0x143)]['interceptCommand']({'getMutations':_0xd99024=>{const _0x5bd2e2=_0x1ed4db,_0x12c8ea=[],_0x5766f6=[];if(_0xd99024['id']===_0x2372c8['id']){const _0x323cee=_0xd99024['params'];if(!_0x323cee)return{'redos':_0x12c8ea,'undos':_0x5766f6};const {unitId:_0x6e1969,subUnitId:_0x1953e4,ranges:_0x4da4ec}=_0x323cee,_0x110fe1=this['_sparklineDataSourceModel'][_0x5bd2e2(0x129)](_0x6e1969,_0x1953e4);if(!_0x110fe1)return{'redos':_0x12c8ea,'undos':_0x5766f6};const _0x99cfb4={},_0x1981ce={},_0x50b46b=new Set();_0x4da4ec['forEach'](_0x46331d=>{const _0x514afa=_0x5bd2e2,_0x24d6c3=_0x46331d[_0x514afa(0xe1)],_0x2f2b69=_0x46331d[_0x514afa(0xfd)];_0x257ce4[_0x514afa(0x182)](_0x46331d,(_0x6ae93c,_0x493b5f)=>{const _0x424e7c=_0x514afa,_0x299ae9=this[_0x424e7c(0x12a)][_0x424e7c(0x117)](_0x6e1969,_0x1953e4,_0x6ae93c,_0x493b5f);if(_0x299ae9&&!(_0x6ae93c===_0x24d6c3&&_0x493b5f===_0x2f2b69)){const _0x487b3f=this['_sparklineDataSourceModel'][_0x424e7c(0x13f)](_0x6e1969,_0x1953e4,_0x299ae9);if(_0x487b3f){_0x50b46b[_0x424e7c(0x153)](_0x299ae9);let _0x3a7182=_0x99cfb4[_0x299ae9];_0x3a7182||(_0x3a7182={'config':_0x293a63[_0x424e7c(0x147)](_0x487b3f[_0x424e7c(0x161)]),'sparklines':new _0x530d22(_0x487b3f[_0x424e7c(0x178)][_0x424e7c(0x107)]())},_0x99cfb4[_0x299ae9]=_0x3a7182),_0x3a7182['sparklines']['realDeleteValue'](_0x6ae93c,_0x493b5f),_0x1981ce[_0x299ae9]={'config':_0x293a63['deepClone'](_0x487b3f[_0x424e7c(0x161)]),'sparklines':_0x293a63[_0x424e7c(0x147)](_0x487b3f[_0x424e7c(0x178)]['clone']())};}}});});for(const [_0x3ea7f5,_0x377aaf]of _0x110fe1){const _0x4e6166=_0x377aaf[_0x5bd2e2(0x178)];_0x4e6166[_0x5bd2e2(0x115)]((_0x24d3d3,_0x143095,_0x5e1f93)=>{const _0x105190=_0x5bd2e2;for(let _0x35fce0=0x0;_0x35fce0<_0x4da4ec[_0x105190(0x17a)];_0x35fce0++){const _0x459974=_0x4da4ec[_0x35fce0];if(_0x215744['contains'](_0x459974,_0x5e1f93)){_0x50b46b[_0x105190(0x153)](_0x3ea7f5);let _0x1b9267=_0x99cfb4[_0x3ea7f5];_0x1b9267||(_0x1b9267={'config':_0x293a63['deepClone'](_0x377aaf['config']),'sparklines':new _0x530d22(_0x4e6166[_0x105190(0x107)]())},_0x99cfb4[_0x3ea7f5]=_0x1b9267),_0x1b9267[_0x105190(0x178)][_0x105190(0x11c)](_0x24d3d3,_0x143095),_0x1981ce[_0x3ea7f5]||(_0x1981ce[_0x3ea7f5]={'config':_0x293a63[_0x105190(0x147)](_0x377aaf[_0x105190(0x161)]),'sparklines':_0x293a63['deepClone'](_0x4e6166[_0x105190(0x107)]())});}}});}const _0x1138e4={};Object[_0x5bd2e2(0xe4)](_0x99cfb4)[_0x5bd2e2(0xee)](([_0x21914d,_0x489f1d])=>{const _0x4771bb=_0x5bd2e2;_0x489f1d[_0x4771bb(0x178)][_0x4771bb(0x17e)]()&&(_0x1138e4[_0x21914d]={'config':_0x489f1d[_0x4771bb(0x161)],'sparklines':_0x489f1d[_0x4771bb(0x178)][_0x4771bb(0x107)]()});}),_0x50b46b[_0x5bd2e2(0x162)]&&(_0x12c8ea[_0x5bd2e2(0x15d)]({'id':y['id'],'params':{'unitId':_0x6e1969,'subUnitId':_0x1953e4,'groupIds':Array[_0x5bd2e2(0xf9)](_0x50b46b),'isSingle':!0x1}}),_0x5766f6[_0x5bd2e2(0x15d)]({'id':y['id'],'params':{'unitId':_0x6e1969,'subUnitId':_0x1953e4,'groupIds':Array[_0x5bd2e2(0xf9)](_0x50b46b),'isSingle':!0x1}}),_0x12c8ea[_0x5bd2e2(0x15d)]({'id':V['id'],'params':{'unitId':_0x6e1969,'subUnitId':_0x1953e4,'sparklineConfigMap':_0x1138e4}}),_0x5766f6['push']({'id':V['id'],'params':{'unitId':_0x6e1969,'subUnitId':_0x1953e4,'sparklineConfigMap':_0x1981ce}}));}return{'redos':_0x12c8ea,'undos':_0x5766f6};}}));}};_e=Ht([be(0x0,_0x6d638f(_0x3ae8cf)),be(0x1,_0x6d638f(_0x3c58f5)),be(0x2,_0x6d638f(x))],_e);var Ft=Object[_0x14cc69(0x11b)],Kt=(_0x4080cb,_0x18559f,_0x37fbf1,_0x363893)=>{const _0x59d98d=_0x14cc69;for(var _0x8d572c=_0x363893>0x1?void 0x0:_0x363893?Ft(_0x18559f,_0x37fbf1):_0x18559f,_0xa3ecda=_0x4080cb[_0x59d98d(0x17a)]-0x1,_0x4b322f;_0xa3ecda>=0x0;_0xa3ecda--)(_0x4b322f=_0x4080cb[_0xa3ecda])&&(_0x8d572c=_0x4b322f(_0x8d572c)||_0x8d572c);return _0x8d572c;},ge=(_0x3bcaaa,_0x49381a)=>(_0x35f7a9,_0x842ad8)=>_0x49381a(_0x35f7a9,_0x842ad8,_0x3bcaaa);function _0x196c(){const _0x44d94d=['1780qWwiMb','clearSparklineCache','935529OjeSWg','NORMAL','SELF_EXTREMUM','subscribe','SOFT','add','1485426dfdJIU','max','addSparkline','symbol','connect_with_line','30qZPkmX','PROFIT_AND_LOSS_CHART','_initExclusiveRangeChange','SPECIALTY','push','MIN_SAFE_INTEGER','parse','markersPoint','config','size','groupId','SPACING','map','refRangeHandle','moveRows','u-connect','endColumn','GROUP_EXTREMUM','rgb(244,104,249)','FRESH','rgb(252,117,60)','intersects','pushUndoRedo','BOOLEAN','fresh','_config','_initCopySheetWithSparkline','registerPluginResource','MUTATION','reBuildAnchorCache','nonNumShowAs','sparklines','PIE_CHART','length','_commandService','CUSTOM_EXTREMUM','changeDataSourceInfo','getSizeOf','updateConfig$','seriesColor','negativePoint','foreach','rgb(49,106,246)','_initHideRowColWithSparkline','u-spacing','BAR_CHART','toRgbString','_resourceManagerService','removeColumns','set','exclusiveRangesChange$','_initClearWithSparkline','matrix','_initCorrectRangeWithSparkline','CUSTOM','lastPoint','updateSparklineExtraNum','FORCE_STRING','_univerInstanceService','unitId','range','contains','sheet.command.add-sparkline','onReady','_sheetSelectionService','getSheetBySheetId','registerRefRange','_initSnapshot','setAlpha','_sparklineModel','dispose','startRow','setValue','getSparklineCache','entries','min','removeRows','subUnitId','4388040jIJxlI','rgb(46,187,122)','delete','3016280iMSeVz','defineProperty','1670414DlABES','forEach','removePartSparkline','endRow','DISTINCTIVE','1WknoMX','disposableCollection','rgb(30,177,189)','setSparkline','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','getColVisible','toJSON','from','containHiddenCells','column','value','startColumn','_getRefRangeMutationsByDeleteRows','fromJSON','_ensureAnchorMatrix','_getRefRangeMutationsByDeleteCols','_refRangeService','asObservable','getCurrentSelections','zero_value','CONNECT_WITH_LINE','clone','standard','interceptCommand','next','getMatrix','getRowVisible','disposeWithMe','params','rgb(54,78,244)','ZERO_VALUE','_initDataChangeListener','19416947AMVikG','keys','soft','forValue','getCellRaw','getSparkline','actualColumn','_injector','sparklineAnchorMap','getOwnPropertyDescriptor','realDeleteValue','stringify','NUMBER','ranges','item','getCell','number','sheet.command.set-sparkline','getValue','sheet.mutation.add-sparkline','specialty','removeSparkline','type','getSubUnitSparkline','_sparklineDataSourceModel','LINE_CHART','46593zxbVeZ','COMMAND','_sparklineAnchorMap','_updateConfig$','rgb(236,100,169)','moveColumns','_exclusiveRangeService','emptyShowAs','has','_onRefRangeChange','deleteUnit','MAX_SAFE_INTEGER','rgb(124,66,147)','extremumMin','_initMergeWithSparkline','rgb(80,102,248)','row','sheet.mutation.remove-sparkline','sheet.command.remove-sparkline','getSparklineById','_ensureConfigMap','onCommandExecuted','5XTdIev','_sheetInterceptorService','highPoint','_initRegisterCommand','UNIVER_SHEET','deepClone','pluginName','STANDARD','values','get'];_0x196c=function(){return _0x44d94d;};return _0x196c();}let Me=class extends _0x2b44df{constructor(_0x19608a,_0x3579ea,_0x4b8fd5,_0x2fb30e){const _0x3b213d=_0x14cc69;super(),se(this,_0x3b213d(0xf3),new _0x47c841()),(this[_0x3b213d(0x17b)]=_0x19608a,this[_0x3b213d(0x102)]=_0x3579ea,this[_0x3b213d(0xd4)]=_0x4b8fd5,this[_0x3b213d(0x12a)]=_0x2fb30e,this[_0x3b213d(0x135)](),this['_initCorrectRangeWithSparkline']());}[_0x14cc69(0x135)](){const _0x1c3757=(_0x4772b1,_0x10b35f)=>{const _0x13b0d5=_0x5c83,_0x31d538=this[_0x13b0d5(0xd4)]['getCurrentUnitForType'](_0x3a2acf[_0x13b0d5(0x146)]);if(!_0x31d538||!(_0x31d538==null?void 0x0:_0x31d538[_0x13b0d5(0xdb)](_0x10b35f)))return;this[_0x13b0d5(0xf3)][_0x13b0d5(0xe0)]();const _0x395916=_0x166c8f=>this[_0x13b0d5(0x166)](_0x166c8f,_0x4772b1,_0x10b35f),_0x2f0f6d=[],_0x5665cf=this[_0x13b0d5(0x12a)][_0x13b0d5(0x129)](_0x4772b1,_0x10b35f);if(_0x5665cf){for(const [_0x239818,_0x1f7fbb]of _0x5665cf)_0x1f7fbb[_0x13b0d5(0x178)][_0x13b0d5(0x115)]((_0x1823a0,_0xbb01da,_0x1c196b)=>{const _0x3e6955=_0x13b0d5,_0x24f85f=_0x3d5a9d(_0x1823a0,_0xbb01da);_0x2f0f6d[_0x3e6955(0x15d)](_0x24f85f);});_0x2f0f6d['forEach'](_0x341271=>{const _0x24418b=_0x13b0d5;this['disposableCollection'][_0x24418b(0x153)](this['_refRangeService'][_0x24418b(0xdc)](_0x341271,_0x395916,_0x4772b1,_0x10b35f));});}};this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x43f95b=>{const _0x326040=_0x5c83;if(_0x43f95b['id']===_0x5089eb['id']){const _0x29bc0b=_0x43f95b['params'],_0x2165cd=_0x29bc0b[_0x326040(0xe7)],_0x96d4cc=_0x29bc0b[_0x326040(0xd5)];if(!_0x2165cd||!_0x96d4cc)return;_0x1c3757(_0x96d4cc,_0x2165cd);}if(_0x43f95b['id']===Oe['id']||_0x43f95b['id']===V['id']){const _0x27f7ce=_0x43f95b[_0x326040(0x10e)],_0x442957=_0x27f7ce[_0x326040(0xe7)],_0x224586=_0x27f7ce['unitId'];if(!_0x442957||!_0x224586)return;_0x1c3757(_0x224586,_0x442957);}}));}[_0x14cc69(0x166)](_0x14a15a,_0x21cdf6,_0x284bcd){const _0x49c8da=_0x14cc69;switch(_0x14a15a['id']){case _0x5572d1['id']:return this[_0x49c8da(0x101)](_0x14a15a[_0x49c8da(0x10e)],_0x21cdf6,_0x284bcd);case _0x46366c['id']:return this[_0x49c8da(0xfe)](_0x14a15a[_0x49c8da(0x10e)],_0x21cdf6,_0x284bcd);}return{'redos':[],'undos':[]};}[_0x14cc69(0xfe)](_0x40048c,_0x5edce9,_0x4c94a6){const _0x286df0=_0x14cc69;var _0x211596,_0x411e81;const {range:_0x237b82}=_0x40048c,_0x53288c=new Set(),_0x51cee8={},_0x38df6e={},_0x4f0735=[],_0x3f64fb=[],_0x5cbc85=[],_0x1d9626=[];if(!_0x199019(this[_0x286df0(0xd4)],{'unitId':_0x5edce9,'subUnitId':_0x4c94a6}))return{'redos':_0x3f64fb,'undos':_0x4f0735};const _0x21b3ef=this[_0x286df0(0x12a)]['getSubUnitSparkline'](_0x5edce9,_0x4c94a6);if(!_0x21b3ef)return{'redos':_0x3f64fb,'undos':_0x4f0735};if(!((_0x411e81=(_0x211596=this[_0x286df0(0x12a)][_0x286df0(0xe3)]()[_0x286df0(0x11a)]['get'](_0x5edce9))==null?void 0x0:_0x211596[_0x286df0(0x14b)](_0x4c94a6))==null?void 0x0:_0x411e81[_0x286df0(0xce)]))return{'redos':_0x3f64fb,'undos':_0x4f0735};for(const [_0x296efc,_0x39ad4f]of _0x21b3ef){const _0x3a276a=_0x39ad4f['sparklines'];_0x3a276a[_0x286df0(0x115)]((_0x21fe4e,_0x477a3b,_0xd8310f)=>{const _0x8d14ab=_0x286df0;if(_0x215744[_0x8d14ab(0x16e)](_0x237b82,_0xd8310f)){_0x53288c[_0x8d14ab(0x153)](_0x296efc);let _0x3abf88=_0x38df6e[_0x296efc];_0x3abf88||(_0x3abf88={'config':_0x39ad4f[_0x8d14ab(0x161)],'sparklines':_0x39ad4f[_0x8d14ab(0x178)][_0x8d14ab(0x107)]()},_0x38df6e[_0x296efc]=_0x3abf88);let _0x502998=_0x51cee8[_0x296efc];_0x502998||(_0x502998={'config':_0x39ad4f[_0x8d14ab(0x161)],'sparklines':new _0x530d22(_0x39ad4f[_0x8d14ab(0x178)][_0x8d14ab(0x107)]())},_0x51cee8[_0x296efc]=_0x502998);const _0x2c6738=_0xff1c2b(_0xd8310f,{'id':_0x5db32c['id'],'params':_0x40048c});_0x2c6738?_0x502998[_0x8d14ab(0x178)][_0x8d14ab(0xe2)](_0x21fe4e,_0x477a3b,_0x2c6738):_0x502998[_0x8d14ab(0x178)][_0x8d14ab(0xe2)](_0x21fe4e,_0x477a3b,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee['NORMAL']});}}),_0x3a276a[_0x286df0(0x115)]((_0x32d37c,_0x52aa24,_0x432825)=>{const _0x19bfbc=_0x286df0;if(_0x32d37c<=_0x237b82[_0x19bfbc(0xf0)]&&_0x32d37c>=_0x237b82[_0x19bfbc(0xe1)]){_0x53288c[_0x19bfbc(0x153)](_0x296efc);let _0x47ab3b=_0x38df6e[_0x296efc];_0x47ab3b||(_0x47ab3b={'config':_0x39ad4f[_0x19bfbc(0x161)],'sparklines':_0x39ad4f[_0x19bfbc(0x178)][_0x19bfbc(0x107)]()},_0x38df6e[_0x296efc]=_0x47ab3b);let _0x2a4eaf=_0x51cee8[_0x296efc];_0x2a4eaf||(_0x2a4eaf={'config':_0x39ad4f[_0x19bfbc(0x161)],'sparklines':new _0x530d22(_0x39ad4f[_0x19bfbc(0x178)][_0x19bfbc(0x107)]())},_0x51cee8[_0x296efc]=_0x2a4eaf);}});}_0x1d9626[_0x286df0(0x15d)]({'id':y['id'],'params':{'unitId':_0x5edce9,'subUnitId':_0x4c94a6,'groupIds':Array['from'](_0x53288c),'isSingle':!0x1}}),_0x5cbc85[_0x286df0(0x15d)]({'id':y['id'],'params':{'unitId':_0x5edce9,'subUnitId':_0x4c94a6,'groupIds':Array[_0x286df0(0xf9)](_0x53288c),'isSingle':!0x1}});const _0x140a0d={};let _0x44e834=!0x1;return Object['entries'](_0x51cee8)['forEach'](([_0xfa5426,_0x3b3615])=>{const _0x1f4407=_0x286df0;_0x3b3615[_0x1f4407(0x178)][_0x1f4407(0x17e)]()&&(_0x44e834=!0x0,_0x3b3615[_0x1f4407(0x178)][_0x1f4407(0xe6)](_0x237b82[_0x1f4407(0xe1)],_0x237b82[_0x1f4407(0xf0)]-_0x237b82[_0x1f4407(0xe1)]+0x1),_0x140a0d[_0xfa5426]={'config':_0x3b3615[_0x1f4407(0x161)],'sparklines':_0x3b3615['sparklines'][_0x1f4407(0x107)]()});}),_0x44e834&&_0x3f64fb[_0x286df0(0x15d)]({'id':V['id'],'params':{'unitId':_0x5edce9,'subUnitId':_0x4c94a6,'sparklineConfigMap':_0x140a0d}}),_0x4f0735[_0x286df0(0x15d)]({'id':V['id'],'params':{'unitId':_0x5edce9,'subUnitId':_0x4c94a6,'sparklineConfigMap':_0x38df6e}}),{'redos':_0x3f64fb,'undos':_0x4f0735,'preRedos':_0x5cbc85,'preUndos':_0x1d9626};}['_getRefRangeMutationsByDeleteCols'](_0x3b07f7,_0x251223,_0x89ff8d){const _0xbf67bd=_0x14cc69;var _0x2515df,_0x487dc4;const {range:_0xb8fa52}=_0x3b07f7,_0x333897=new Set(),_0x11e4eb={},_0x2db24a={},_0x138a10=[],_0x302049=[],_0x225e66=[],_0x219fa1=[];if(!_0x199019(this['_univerInstanceService'],{'unitId':_0x251223,'subUnitId':_0x89ff8d}))return{'redos':_0x302049,'undos':_0x138a10};const _0x1d7c6e=this['_sparklineDataSourceModel'][_0xbf67bd(0x129)](_0x251223,_0x89ff8d);if(!_0x1d7c6e)return{'redos':_0x302049,'undos':_0x138a10};if(!((_0x487dc4=(_0x2515df=this[_0xbf67bd(0x12a)][_0xbf67bd(0xe3)]()[_0xbf67bd(0x11a)][_0xbf67bd(0x14b)](_0x251223))==null?void 0x0:_0x2515df[_0xbf67bd(0x14b)](_0x89ff8d))==null?void 0x0:_0x487dc4[_0xbf67bd(0xce)]))return{'redos':_0x302049,'undos':_0x138a10};for(const [_0x19c475,_0x131c9d]of _0x1d7c6e){const _0x5e7943=_0x131c9d[_0xbf67bd(0x178)];_0x5e7943[_0xbf67bd(0x115)]((_0x32d2ca,_0x1755d7,_0x1ff72d)=>{const _0x2867ed=_0xbf67bd;if(_0x215744[_0x2867ed(0x16e)](_0xb8fa52,_0x1ff72d)){_0x333897[_0x2867ed(0x153)](_0x19c475);let _0x25fe9b=_0x2db24a[_0x19c475];_0x25fe9b||(_0x25fe9b={'config':_0x131c9d['config'],'sparklines':_0x131c9d['sparklines'][_0x2867ed(0x107)]()},_0x2db24a[_0x19c475]=_0x25fe9b);let _0x5eb11d=_0x11e4eb[_0x19c475];_0x5eb11d||(_0x5eb11d={'config':_0x131c9d['config'],'sparklines':new _0x530d22(_0x131c9d[_0x2867ed(0x178)]['clone']())},_0x11e4eb[_0x19c475]=_0x5eb11d);const _0x5d4527=_0xff1c2b(_0x1ff72d,{'id':_0x2a7908['id'],'params':_0x3b07f7});_0x5d4527?_0x5eb11d[_0x2867ed(0x178)]['setValue'](_0x32d2ca,_0x1755d7,_0x5d4527):_0x5eb11d[_0x2867ed(0x178)][_0x2867ed(0xe2)](_0x32d2ca,_0x1755d7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee[_0x2867ed(0x14f)]});}}),_0x5e7943['forValue']((_0x3b0ecb,_0x43b52a,_0x11a7c1)=>{const _0x37d22e=_0xbf67bd;if(_0x43b52a<=_0xb8fa52[_0x37d22e(0x169)]&&_0x43b52a>=_0xb8fa52['startColumn']){_0x333897[_0x37d22e(0x153)](_0x19c475);let _0x3d5449=_0x2db24a[_0x19c475];_0x3d5449||(_0x3d5449={'config':_0x131c9d[_0x37d22e(0x161)],'sparklines':_0x131c9d[_0x37d22e(0x178)][_0x37d22e(0x107)]()},_0x2db24a[_0x19c475]=_0x3d5449);let _0x34bfa0=_0x11e4eb[_0x19c475];_0x34bfa0||(_0x34bfa0={'config':_0x131c9d[_0x37d22e(0x161)],'sparklines':new _0x530d22(_0x131c9d[_0x37d22e(0x178)][_0x37d22e(0x107)]())},_0x11e4eb[_0x19c475]=_0x34bfa0);}});}_0x219fa1[_0xbf67bd(0x15d)]({'id':y['id'],'params':{'unitId':_0x251223,'subUnitId':_0x89ff8d,'groupIds':Array[_0xbf67bd(0xf9)](_0x333897),'isSingle':!0x1}}),_0x225e66[_0xbf67bd(0x15d)]({'id':y['id'],'params':{'unitId':_0x251223,'subUnitId':_0x89ff8d,'groupIds':Array[_0xbf67bd(0xf9)](_0x333897),'isSingle':!0x1}});const _0x183c70={};let _0x422722=!0x1;return Object[_0xbf67bd(0xe4)](_0x11e4eb)[_0xbf67bd(0xee)](([_0x8af97b,_0x2e4908])=>{const _0x292993=_0xbf67bd;_0x2e4908[_0x292993(0x178)][_0x292993(0x17e)]()&&(_0x422722=!0x0,_0x2e4908[_0x292993(0x178)][_0x292993(0x189)](_0xb8fa52['startColumn'],_0xb8fa52[_0x292993(0x169)]-_0xb8fa52[_0x292993(0xfd)]+0x1),_0x183c70[_0x8af97b]={'config':_0x2e4908['config'],'sparklines':_0x2e4908[_0x292993(0x178)][_0x292993(0x107)]()});}),_0x422722&&_0x302049[_0xbf67bd(0x15d)]({'id':V['id'],'params':{'unitId':_0x251223,'subUnitId':_0x89ff8d,'sparklineConfigMap':_0x183c70}}),_0x138a10[_0xbf67bd(0x15d)]({'id':V['id'],'params':{'unitId':_0x251223,'subUnitId':_0x89ff8d,'sparklineConfigMap':_0x2db24a}}),{'redos':_0x302049,'undos':_0x138a10,'preRedos':_0x225e66,'preUndos':_0x219fa1};}[_0x14cc69(0xcf)](){const _0x49b8a9=_0x14cc69;this[_0x49b8a9(0x10d)](this['_commandService'][_0x49b8a9(0x141)](_0x5765e6=>{const _0x1a913d=_0x49b8a9;if(_0x5765e6['id']===_0x192928['id']){const _0x36864d=_0x5765e6['params'],{unitId:_0x1bc4a4,subUnitId:_0x6444a2,range:_0xf309db}=_0x36864d,_0x958728=_0xf309db[_0x1a913d(0xfd)],_0x26e542=_0xf309db[_0x1a913d(0x169)]-_0xf309db['startColumn']+0x1,_0x408423=this[_0x1a913d(0x12a)][_0x1a913d(0x129)](_0x1bc4a4,_0x6444a2);if(!_0x408423)return;for(const [_0x4547b7,_0x4651c4]of _0x408423){this[_0x1a913d(0x12a)][_0x1a913d(0x14d)](_0x1bc4a4,_0x6444a2,_0x4547b7);const _0x4d6d05=_0x4651c4[_0x1a913d(0x178)];_0x4d6d05[_0x1a913d(0x115)]((_0x9eb460,_0x1e6469,_0x4d9b29)=>{const _0x4b7ab7=_0x1a913d,_0x1ee8d5={..._0x4d9b29};_0x958728<=_0x1ee8d5[_0x4b7ab7(0xfd)]?(_0x1ee8d5['startColumn']+=_0x26e542,_0x1ee8d5[_0x4b7ab7(0x169)]+=_0x26e542):_0x958728>_0x1ee8d5[_0x4b7ab7(0x169)]||(_0x1ee8d5[_0x4b7ab7(0x169)]+=_0x26e542),_0x4d6d05[_0x4b7ab7(0xe2)](_0x9eb460,_0x1e6469,_0x1ee8d5);});const _0x1d9c0c=_0x4d6d05[_0x1a913d(0x10b)]();for(const _0x4089af in _0x1d9c0c){const _0x250fc2=_0x1d9c0c[Number(_0x4089af)];if(!_0x250fc2)continue;const _0x32f033=Object['keys'](_0x250fc2)[_0x1a913d(0x165)](Number),_0x2cea86=Math['max'](..._0x32f033);for(let _0x54dc15=_0x2cea86;_0x54dc15>=_0x958728;_0x54dc15--)_0x54dc15>=_0x958728&&_0x250fc2[_0x54dc15]&&(_0x250fc2[_0x54dc15+_0x26e542]=_0x250fc2[_0x54dc15],delete _0x250fc2[_0x54dc15]);}this['_sparklineDataSourceModel'][_0x1a913d(0xd2)](_0x1bc4a4,_0x6444a2,_0x4547b7);}}else{if(_0x5765e6['id']===_0x4d5de7['id']){const _0x3a1ae2=_0x5765e6[_0x1a913d(0x10e)],{unitId:_0x5c5726,subUnitId:_0x9b5024,range:_0x53021f}=_0x3a1ae2,_0x45a3c7=_0x53021f['startRow'],_0x14d4fb=_0x53021f['endRow']-_0x53021f['startRow']+0x1,_0xb82a0f=this[_0x1a913d(0x12a)]['getSubUnitSparkline'](_0x5c5726,_0x9b5024);if(!_0xb82a0f)return;for(const [_0x2b41fa,_0x56d60f]of _0xb82a0f){this[_0x1a913d(0x12a)]['clearSparklineCache'](_0x5c5726,_0x9b5024,_0x2b41fa);const _0x430f0a=_0x56d60f['sparklines'];_0x430f0a[_0x1a913d(0x115)]((_0x5187db,_0x233787,_0x54c382)=>{const _0x2c0b24=_0x1a913d,_0x4c019b={..._0x54c382};_0x45a3c7<=_0x4c019b[_0x2c0b24(0xe1)]?(_0x4c019b[_0x2c0b24(0xe1)]+=_0x14d4fb,_0x4c019b[_0x2c0b24(0xf0)]+=_0x14d4fb):_0x45a3c7>_0x4c019b[_0x2c0b24(0xf0)]||(_0x4c019b[_0x2c0b24(0xf0)]+=_0x14d4fb),_0x430f0a[_0x2c0b24(0xe2)](_0x5187db,_0x233787,_0x4c019b);});const _0x505bd5=_0x430f0a[_0x1a913d(0x10b)](),_0x25023f=Object['keys'](_0x505bd5)[_0x1a913d(0x165)](Number),_0x3defc4=Math['max'](..._0x25023f);for(let _0x2c7615=_0x3defc4;_0x2c7615>=_0x45a3c7;_0x2c7615--)_0x2c7615>=_0x45a3c7&&_0x505bd5[_0x2c7615]&&(_0x505bd5[_0x2c7615+_0x14d4fb]=_0x505bd5[_0x2c7615],delete _0x505bd5[_0x2c7615]);this[_0x1a913d(0x12a)][_0x1a913d(0xd2)](_0x5c5726,_0x9b5024,_0x2b41fa);}}else{if(_0x5765e6['id']===_0x2a7908['id']){const _0x71a44=_0x5765e6[_0x1a913d(0x10e)],{range:_0x3810e0,unitId:_0x2a99b8,subUnitId:_0x2d2969}=_0x71a44,_0x320a79=this[_0x1a913d(0x12a)][_0x1a913d(0x129)](_0x2a99b8,_0x2d2969);if(!_0x320a79)return;for(const [_0x56c22d,_0x301d30]of _0x320a79){const _0xe3a4c7=_0x301d30[_0x1a913d(0x178)];_0xe3a4c7[_0x1a913d(0x115)]((_0x1f548a,_0x49e98b,_0xece428)=>{const _0x37289b=_0x1a913d,_0x517c69=_0xff1c2b(_0xece428,_0x5765e6);_0x517c69?_0xe3a4c7['setValue'](_0x1f548a,_0x49e98b,_0x517c69):_0xe3a4c7[_0x37289b(0xe2)](_0x1f548a,_0x49e98b,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee[_0x37289b(0x14f)]});}),_0xe3a4c7[_0x1a913d(0x189)](_0x3810e0[_0x1a913d(0xfd)],_0x3810e0[_0x1a913d(0x169)]-_0x3810e0[_0x1a913d(0xfd)]+0x1);}this['_sparklineDataSourceModel'][_0x1a913d(0x176)](_0x2a99b8,_0x2d2969);}else{if(_0x5765e6['id']===_0x5db32c['id']){const _0x29b26e=_0x5765e6[_0x1a913d(0x10e)],{range:_0x535335,unitId:_0x3ab5e4,subUnitId:_0x3f6aec}=_0x29b26e,_0x1e54df=this[_0x1a913d(0x12a)][_0x1a913d(0x129)](_0x3ab5e4,_0x3f6aec);if(!_0x1e54df)return;for(const [_0x57d997,_0x175f6a]of _0x1e54df){const _0xbd6ed3=_0x175f6a[_0x1a913d(0x178)];_0xbd6ed3[_0x1a913d(0x115)]((_0x22d127,_0x3c4a67,_0x257841)=>{const _0x20d89f=_0x1a913d,_0x2c080c=_0xff1c2b(_0x257841,_0x5765e6);_0x2c080c?_0xbd6ed3['setValue'](_0x22d127,_0x3c4a67,_0x2c080c):_0xbd6ed3[_0x20d89f(0xe2)](_0x22d127,_0x3c4a67,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee[_0x20d89f(0x14f)]});}),_0xbd6ed3[_0x1a913d(0xe6)](_0x535335[_0x1a913d(0xe1)],_0x535335[_0x1a913d(0xf0)]-_0x535335[_0x1a913d(0xe1)]+0x1);}this['_sparklineDataSourceModel'][_0x1a913d(0x176)](_0x3ab5e4,_0x3f6aec);}else{if(_0x5765e6['id']===_0x303e31['id']){const _0x5626d2=_0x5765e6[_0x1a913d(0x10e)],{unitId:_0x2835a2,subUnitId:_0x2f4b13,sourceRange:_0xc70b51,targetRange:_0x4e2201}=_0x5626d2,_0x13c0fb=this['_sparklineDataSourceModel'][_0x1a913d(0x129)](_0x2835a2,_0x2f4b13);if(!_0x13c0fb)return;for(const [_0xe17c94,_0xb4f9ad]of _0x13c0fb){const _0x1fcb67=_0xb4f9ad['sparklines'];_0x1fcb67[_0x1a913d(0x115)]((_0x53df65,_0x22b8a5,_0x57cc99)=>{const _0xd79b5c=_0x1a913d,_0x59d6b3=_0xff1c2b(_0x57cc99,_0x5765e6);_0x59d6b3?_0x1fcb67[_0xd79b5c(0xe2)](_0x53df65,_0x22b8a5,_0x59d6b3):_0x1fcb67['setValue'](_0x53df65,_0x22b8a5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee[_0xd79b5c(0x14f)]});}),_0x1fcb67[_0x1a913d(0x131)](_0xc70b51[_0x1a913d(0xfd)],_0xc70b51[_0x1a913d(0x169)]-_0xc70b51['startColumn']+0x1,_0x4e2201[_0x1a913d(0xfd)]);}this[_0x1a913d(0x12a)]['reBuildAnchorCache'](_0x2835a2,_0x2f4b13);}else{if(_0x5765e6['id']===_0x5dbb3a['id']){const _0x5c76b1=_0x5765e6[_0x1a913d(0x10e)],{unitId:_0x2893f4,subUnitId:_0x1e954d,sourceRange:_0x5d27c8,targetRange:_0x38c94e}=_0x5c76b1,_0x2633a4=this[_0x1a913d(0x12a)][_0x1a913d(0x129)](_0x2893f4,_0x1e954d);if(!_0x2633a4)return;for(const [_0x4e32fa,_0x1030aa]of _0x2633a4){const _0x27f358=_0x1030aa[_0x1a913d(0x178)];_0x27f358[_0x1a913d(0x115)]((_0x20a0d1,_0x220223,_0x29d4a6)=>{const _0xcd6357=_0x1a913d,_0xce9c5f=_0xff1c2b(_0x29d4a6,_0x5765e6);_0xce9c5f?_0x27f358['setValue'](_0x20a0d1,_0x220223,_0xce9c5f):_0x27f358['setValue'](_0x20a0d1,_0x220223,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xd0ffee[_0xcd6357(0x14f)]});}),_0x27f358[_0x1a913d(0x167)](_0x5d27c8[_0x1a913d(0xe1)],_0x5d27c8['endRow']-_0x5d27c8[_0x1a913d(0xe1)]+0x1,_0x38c94e['startRow']);}this['_sparklineDataSourceModel'][_0x1a913d(0x176)](_0x2893f4,_0x1e954d);}else{if(_0x5765e6['id']===_0x362855['id']){const _0x41508a=_0x5765e6['params'],{fromRange:_0x2cca13,toRange:_0x39fa8b,unitId:_0xb1ee10,from:_0x582527,to:_0x57cfa2}=_0x41508a;if(_0x582527[_0x1a913d(0xe7)]!==_0x57cfa2[_0x1a913d(0xe7)])return;const _0xd1a18a=_0x582527[_0x1a913d(0xe7)],{startRow:_0x17712c,endRow:_0x1325df,startColumn:_0x40c22b,endColumn:_0x4585c1}=_0x2cca13,{startRow:_0x5b08a0,startColumn:_0x2293f1}=_0x39fa8b,_0x4b2125=_0x5b08a0-_0x17712c,_0x4aa452=_0x2293f1-_0x40c22b,_0x5b0320=this[_0x1a913d(0x12a)]['getSubUnitSparkline'](_0xb1ee10,_0xd1a18a);if(!(_0x5b0320!=null&&_0x5b0320[_0x1a913d(0x162)]))return;for(let _0x3c8573=_0x17712c;_0x3c8573<=_0x1325df;_0x3c8573++)for(let _0x40d24b=_0x40c22b;_0x40d24b<=_0x4585c1;_0x40d24b++){const _0x1f9805=this[_0x1a913d(0x12a)][_0x1a913d(0x117)](_0xb1ee10,_0xd1a18a,_0x3c8573,_0x40d24b);if(_0x1f9805){const _0x30a792=this['_sparklineDataSourceModel'][_0x1a913d(0x13f)](_0xb1ee10,_0xd1a18a,_0x1f9805);if(_0x30a792){const _0x119774=_0x30a792['sparklines'][_0x1a913d(0x124)](_0x3c8573,_0x40d24b);_0x119774&&(_0x30a792['sparklines'][_0x1a913d(0xe2)](_0x3c8573+_0x4b2125,_0x40d24b+_0x4aa452,_0x119774),_0x30a792[_0x1a913d(0x178)][_0x1a913d(0x11c)](_0x3c8573,_0x40d24b));}}}for(const [_0x122408,_0x30f476]of _0x5b0320){const _0x4dd2d6=_0x30f476['sparklines'];_0x4dd2d6[_0x1a913d(0x115)]((_0x558623,_0x6c856c,_0x428410)=>{const _0x9f9e44=_0x1a913d,_0x47dd3a={..._0x428410};_0x215744[_0x9f9e44(0xd7)](_0x2cca13,_0x428410)&&(_0x47dd3a[_0x9f9e44(0xe1)]+=_0x4b2125,_0x47dd3a[_0x9f9e44(0xf0)]+=_0x4b2125,_0x47dd3a[_0x9f9e44(0xfd)]+=_0x4aa452,_0x47dd3a[_0x9f9e44(0x169)]+=_0x4aa452),_0x4dd2d6[_0x9f9e44(0xe2)](_0x558623,_0x6c856c,_0x47dd3a);});}this[_0x1a913d(0x12a)]['reBuildAnchorCache'](_0xb1ee10,_0xd1a18a);}}}}}}}}));}};Me=Kt([ge(0x0,_0x6d638f(_0x3ae8cf)),ge(0x1,_0x6d638f(_0x3b426b)),ge(0x2,_0x47443c),ge(0x3,_0x6d638f(x))],Me);var Xt=Object[_0x14cc69(0x11b)],zt=(_0x1c2d3d,_0x252e02,_0x43b5fb,_0x1793e9)=>{for(var _0x43c362=_0x1793e9>0x1?void 0x0:_0x1793e9?Xt(_0x252e02,_0x43b5fb):_0x252e02,_0x40a566=_0x1c2d3d['length']-0x1,_0x4de1c7;_0x40a566>=0x0;_0x40a566--)(_0x4de1c7=_0x1c2d3d[_0x40a566])&&(_0x43c362=_0x4de1c7(_0x43c362)||_0x43c362);return _0x43c362;},Be=(_0x1c6ad8,_0x3fb9f5)=>(_0x5ef2a5,_0x37652d)=>_0x3fb9f5(_0x5ef2a5,_0x37652d,_0x1c6ad8);let Re=class extends _0x2b44df{constructor(_0x5b26cf,_0x42f654){const _0x6de694=_0x14cc69;super(),this[_0x6de694(0x188)]=_0x5b26cf,this['_sparklineDataSourceModel']=_0x42f654,this[_0x6de694(0xdd)]();}['_initSnapshot'](){const _0x330a63=_0x14cc69,_0xb4c44c=_0x43945f=>{const _0x4f3a2a=_0x5c83,_0x114309=this[_0x4f3a2a(0x12a)][_0x4f3a2a(0xf8)](_0x43945f);return _0x114309?JSON[_0x4f3a2a(0x11d)](_0x114309):'';},_0x20fe58=_0x27fd59=>_0x27fd59?JSON[_0x330a63(0x15f)](_0x27fd59):{};this['disposeWithMe'](this['_resourceManagerService'][_0x330a63(0x174)]({'toJson':_0xb4c44c,'parseJson':_0x20fe58,'pluginName':Ke,'businesses':[_0x3a2acf[_0x330a63(0x146)]],'onLoad':(_0x211793,_0x386be4)=>{const _0x2ccc20=_0x330a63;this[_0x2ccc20(0x12a)][_0x2ccc20(0xff)](_0x386be4);},'onUnLoad':_0x76dd4b=>{const _0xd8d05d=_0x330a63;this[_0xd8d05d(0x12a)]['deleteUnit'](_0x76dd4b);}}));}};Re=zt([Be(0x0,_0x6d638f(_0x506deb)),Be(0x1,_0x6d638f(x))],Re);var Jt=Object[_0x14cc69(0xec)],Zt=Object[_0x14cc69(0x11b)],Yt=(_0xcfaea9,_0x5572d9,_0xb15cc8)=>_0x5572d9 in _0xcfaea9?Jt(_0xcfaea9,_0x5572d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb15cc8}):_0xcfaea9[_0x5572d9]=_0xb15cc8,qt=(_0x27e8fc,_0x4cf6d8,_0x5f080a,_0x2c89ed)=>{for(var _0x576af0=_0x2c89ed>0x1?void 0x0:_0x2c89ed?Zt(_0x4cf6d8,_0x5f080a):_0x4cf6d8,_0x3a5648=_0x27e8fc['length']-0x1,_0x4925a2;_0x3a5648>=0x0;_0x3a5648--)(_0x4925a2=_0x27e8fc[_0x3a5648])&&(_0x576af0=_0x4925a2(_0x576af0)||_0x576af0);return _0x576af0;},He=(_0x5acd42,_0x4efb1c)=>(_0x45220f,_0x448c8c)=>_0x4efb1c(_0x45220f,_0x448c8c,_0x5acd42),ze=(_0x32e653,_0x199d19,_0x18e7a5)=>Yt(_0x32e653,typeof _0x199d19!=_0x14cc69(0x157)?_0x199d19+'':_0x199d19,_0x18e7a5);let ve=class extends _0x46674f{constructor(_0x15261f={},_0x12f3e9,_0x3b7a5e){const _0xff43a7=_0x14cc69;super(),this[_0xff43a7(0x172)]=_0x15261f,this[_0xff43a7(0x119)]=_0x12f3e9,this[_0xff43a7(0x17b)]=_0x3b7a5e,this['_initDependencies'](),this[_0xff43a7(0x145)]();}['_initDependencies'](){const _0x40ffc4=_0x14cc69;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x40ffc4(0xee)](_0x5dd5a4=>{const _0x221745=_0x40ffc4;this[_0x221745(0x119)]['add'](_0x5dd5a4);}),_0x336b62(this[_0x40ffc4(0x119)],[[Re]]);}[_0x14cc69(0xd9)](){const _0x21b227=_0x14cc69;_0x336b62(this[_0x21b227(0x119)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}['_initRegisterCommand'](){const _0x1c36b0=_0x14cc69;[Nt,V,Ot,y,xt,Oe][_0x1c36b0(0xee)](_0x918e40=>this[_0x1c36b0(0x17b)]['registerCommand'](_0x918e40));}};ze(ve,_0x14cc69(0x148),Ke),ze(ve,'type',_0x3a2acf[_0x14cc69(0x146)]),ve=qt([_0xef0bd8(_0x410da4),He(0x1,_0x6d638f(_0x21e05f)),He(0x2,_0x6d638f(_0x3ae8cf))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
1
+ const _0x35ea2f=_0x2a86;(function(_0xcef681,_0x587fbe){const _0x560cd4=_0x2a86,_0x795e6c=_0xcef681();while(!![]){try{const _0x54f5bf=-parseInt(_0x560cd4(0xdb))/0x1+-parseInt(_0x560cd4(0xc4))/0x2+parseInt(_0x560cd4(0xd9))/0x3+parseInt(_0x560cd4(0x12b))/0x4*(parseInt(_0x560cd4(0xf8))/0x5)+parseInt(_0x560cd4(0x120))/0x6+-parseInt(_0x560cd4(0x7d))/0x7+parseInt(_0x560cd4(0x12d))/0x8;if(_0x54f5bf===_0x587fbe)break;else _0x795e6c['push'](_0x795e6c['shift']());}catch(_0x25fa1f){_0x795e6c['push'](_0x795e6c['shift']());}}}(_0x4901,0xd4445));var qe=Object[_0x35ea2f(0x97)],Qe=(_0x1f9d11,_0x4f1a68,_0xdda11)=>_0x4f1a68 in _0x1f9d11?qe(_0x1f9d11,_0x4f1a68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdda11}):_0x1f9d11[_0x4f1a68]=_0xdda11,se=(_0x5d65c6,_0x774fd1,_0x172372)=>Qe(_0x5d65c6,typeof _0x774fd1!='symbol'?_0x774fd1+'':_0x774fd1,_0x172372);import{ObjectMatrix as _0x47a2b0,Inject as _0x135bfa,IUniverInstanceService as _0x1bbe0c,Disposable as _0x156591,isValidRange as _0x7efe92,CellValueType as _0x240dc4,ColorKit as _0x48f4cd,CommandType as _0x566cb7,Range as _0x1e9cd2,IUndoRedoService as _0x14df3e,generateRandomId as _0x2dfc1e,ICommandService as _0x4ffbf1,Tools as _0x4b2a24,sequenceExecute as _0x3f89e4,Rectangle as _0x4f0ab2,cellToRange as _0x154629,DisposableCollection as _0x4615e6,RANGE_TYPE as _0x56c97a,UniverInstanceType as _0x274be9,IResourceManagerService as _0x4bb0b1,DependentOn as _0x17c2ea,Injector as _0x38047b,Plugin as _0x2e0279,touchDependencies as _0xa9dfd6}from'@univerjs/core';import{getSheetCommandTarget as _0x62510f,SheetsSelectionsService as _0xf0320,SheetInterceptorService as _0x3b5276,ClearSelectionAllCommand as _0x5b1f74,CopySheetCommand as _0x405c24,IExclusiveRangeService as _0x5e612a,SetRangeValuesMutation as _0x31320c,ReorderRangeMutation as _0x311d01,SetRowHiddenMutation as _0x2020cb,SetColHiddenMutation as _0x443fb0,SetRowVisibleMutation as _0x1037ab,SetColVisibleMutation as _0x8c9899,AddWorksheetMergeCommand as _0x48b175,RefRangeService as _0x11e82c,SetWorksheetActivateCommand as _0x54d236,RemoveRowCommand as _0x5be6c6,RemoveColCommand as _0x240e06,adjustRangeOnMutation as _0x33f92f,RemoveRowMutation as _0x17705c,RemoveColMutation as _0x26e302,InsertColMutation as _0x2fa1e4,InsertRowMutation as _0xafc4db,MoveColsMutation as _0x40f5ce,MoveRowsMutation as _0xeeb6ef,MoveRangeMutation as _0x3be800}from'@univerjs/sheets';import{Subject as _0x17ed82}from'rxjs';import{UniverLicensePlugin as _0x1fac49}from'@univerjs-pro/license';function Fe(_0x6dcc62,_0x39c742){const _0x1ab6d8=_0x35ea2f,_0x1c3f18=new _0x47a2b0(),_0x194bd0=[],_0x5c3e15=_0x6dcc62['length']>0x1;let _0x50b6ac=0x0,_0x38ad84=0x0;for(const _0x5116ee of _0x6dcc62)_0x50b6ac+=_0x5116ee[_0x1ab6d8(0x9f)]-_0x5116ee[_0x1ab6d8(0x134)]+0x1,_0x38ad84+=_0x5116ee[_0x1ab6d8(0xea)]-_0x5116ee[_0x1ab6d8(0x92)]+0x1;for(const _0x17e604 of _0x39c742)for(let _0x30c395=_0x17e604[_0x1ab6d8(0x134)];_0x30c395<=_0x17e604[_0x1ab6d8(0x9f)];_0x30c395++)for(let _0x2901ad=_0x17e604['startColumn'];_0x2901ad<=_0x17e604[_0x1ab6d8(0xea)];_0x2901ad++)_0x194bd0[_0x1ab6d8(0xb1)]({'row':_0x30c395,'column':_0x2901ad});if(_0x194bd0['length']===_0x50b6ac)_0x5c3e15?_0x194bd0[_0x1ab6d8(0x102)]((_0x4adeac,_0x56bf9f)=>{const _0xe2750d=_0x1ab6d8,_0x31761d=_0x6dcc62[_0x56bf9f],_0x135aaf={'startRow':_0x31761d[_0xe2750d(0x134)],'startColumn':_0x31761d[_0xe2750d(0x92)],'endRow':_0x31761d[_0xe2750d(0x134)],'endColumn':_0x31761d[_0xe2750d(0xea)]};_0x1c3f18['setValue'](_0x4adeac[_0xe2750d(0x9d)],_0x4adeac[_0xe2750d(0x11a)],_0x135aaf);}):_0x194bd0[_0x1ab6d8(0x102)]((_0x2e7465,_0x501619)=>{const _0x1b45ce=_0x1ab6d8,_0x47f4b5=_0x6dcc62[0x0],_0x5a159c={'startRow':_0x47f4b5[_0x1b45ce(0x134)]+_0x501619,'startColumn':_0x47f4b5[_0x1b45ce(0x92)],'endRow':_0x47f4b5[_0x1b45ce(0x134)]+_0x501619,'endColumn':_0x47f4b5[_0x1b45ce(0xea)]};_0x1c3f18[_0x1b45ce(0x104)](_0x2e7465[_0x1b45ce(0x9d)],_0x2e7465[_0x1b45ce(0x11a)],_0x5a159c);});else{if(_0x194bd0[_0x1ab6d8(0xb7)]===_0x38ad84)_0x5c3e15?_0x194bd0[_0x1ab6d8(0x102)]((_0x408a41,_0x415abc)=>{const _0x1625a4=_0x1ab6d8,_0x450749=_0x6dcc62[_0x415abc],_0x3b42e6={'startRow':_0x450749[_0x1625a4(0x134)],'startColumn':_0x450749[_0x1625a4(0x92)],'endRow':_0x450749[_0x1625a4(0x9f)],'endColumn':_0x450749[_0x1625a4(0x92)]};_0x1c3f18['setValue'](_0x408a41[_0x1625a4(0x9d)],_0x408a41[_0x1625a4(0x11a)],_0x3b42e6);}):_0x194bd0['forEach']((_0x5d3d0f,_0x2498cd)=>{const _0x459e0d=_0x1ab6d8,_0xdf0522=_0x6dcc62[0x0],_0x4da0fa={'startRow':_0xdf0522[_0x459e0d(0x134)],'startColumn':_0xdf0522['startColumn']+_0x2498cd,'endRow':_0xdf0522[_0x459e0d(0x9f)],'endColumn':_0xdf0522['startColumn']+_0x2498cd};_0x1c3f18['setValue'](_0x5d3d0f[_0x459e0d(0x9d)],_0x5d3d0f['column'],_0x4da0fa);});else{if(_0x194bd0[_0x1ab6d8(0xb7)]===_0x6dcc62[_0x1ab6d8(0xb7)])_0x6dcc62[_0x1ab6d8(0x99)](_0x42ab06=>!(_0x42ab06[_0x1ab6d8(0x134)]!==_0x42ab06[_0x1ab6d8(0x9f)]&&_0x42ab06[_0x1ab6d8(0x92)]!==_0x42ab06[_0x1ab6d8(0xea)]))&&_0x194bd0[_0x1ab6d8(0x102)]((_0x4a5244,_0x2d9e34)=>{const _0x4cdbc3=_0x1ab6d8,_0x50e15e=_0x6dcc62[_0x2d9e34];_0x1c3f18[_0x4cdbc3(0x104)](_0x4a5244[_0x4cdbc3(0x9d)],_0x4a5244['column'],_0x50e15e);});else throw new Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0x1c3f18;}const Ke=_0x35ea2f(0x107),Le={'standard':[_0x35ea2f(0xc1),_0x35ea2f(0xd3)],'specialty':[_0x35ea2f(0xcf),'rgb(30,177,189)'],'distinctive':[_0x35ea2f(0xa9),'rgb(252,117,60)'],'soft':[_0x35ea2f(0x10f),_0x35ea2f(0x11c)],'fresh':['rgb(46,187,122)',_0x35ea2f(0x12e)]},on=[_0x35ea2f(0xaa),_0x35ea2f(0x8d),_0x35ea2f(0x129),_0x35ea2f(0xd2),_0x35ea2f(0x10e),'markersPoint'];var Xe=(_0x3629b8=>(_0x3629b8['STANDARD']=_0x35ea2f(0xad),_0x3629b8[_0x35ea2f(0xe4)]=_0x35ea2f(0x10b),_0x3629b8['DISTINCTIVE']='distinctive',_0x3629b8[_0x35ea2f(0x13a)]=_0x35ea2f(0x115),_0x3629b8[_0x35ea2f(0x9b)]=_0x35ea2f(0x111),_0x3629b8[_0x35ea2f(0xe6)]=_0x35ea2f(0x85),_0x3629b8))(Xe||{}),Dt=(_0x57c6d1=>(_0x57c6d1[_0x57c6d1[_0x35ea2f(0xe8)]=0x1]=_0x35ea2f(0xe8),_0x57c6d1[_0x57c6d1['BAR_CHART']=0x2]=_0x35ea2f(0xc9),_0x57c6d1[_0x57c6d1[_0x35ea2f(0xeb)]=0x3]='PROFIT_AND_LOSS_CHART',_0x57c6d1[_0x57c6d1[_0x35ea2f(0x105)]=0x4]=_0x35ea2f(0x105),_0x57c6d1))(Dt||{}),J=(_0x311128=>(_0x311128[_0x35ea2f(0x10d)]='spacing',_0x311128[_0x35ea2f(0xc7)]=_0x35ea2f(0xbf),_0x311128[_0x35ea2f(0xfe)]=_0x35ea2f(0x122),_0x311128))(J||{}),De=(_0x1c829d=>(_0x1c829d[_0x1c829d[_0x35ea2f(0x119)]=0x1]=_0x35ea2f(0x119),_0x1c829d[_0x1c829d[_0x35ea2f(0x88)]=0x2]='GROUP_EXTREMUM',_0x1c829d[_0x1c829d['CUSTOM_EXTREMUM']=0x3]=_0x35ea2f(0x9c),_0x1c829d))(De||{}),Et=Object[_0x35ea2f(0xb9)],Vt=(_0x135584,_0x36babd,_0x40f437,_0x12cf68)=>{const _0x137631=_0x35ea2f;for(var _0x4d93fb=_0x12cf68>0x1?void 0x0:_0x12cf68?Et(_0x36babd,_0x40f437):_0x36babd,_0x2e3767=_0x135584[_0x137631(0xb7)]-0x1,_0x2b5f62;_0x2e3767>=0x0;_0x2e3767--)(_0x2b5f62=_0x135584[_0x2e3767])&&(_0x4d93fb=_0x2b5f62(_0x4d93fb)||_0x4d93fb);return _0x4d93fb;},yt=(_0x19e5df,_0x426cab)=>(_0x47194f,_0x503440)=>_0x426cab(_0x47194f,_0x503440,_0x19e5df);let x=class extends _0x156591{constructor(_0x4d0d91){const _0x3871ea=_0x35ea2f;super(),se(this,_0x3871ea(0x114),new Map()),se(this,_0x3871ea(0xd4),new Map()),se(this,'_updateConfig$',new _0x17ed82()),se(this,_0x3871ea(0xfc),this[_0x3871ea(0x135)][_0x3871ea(0xf1)]()),this[_0x3871ea(0x118)]=_0x4d0d91;}[_0x35ea2f(0x81)](_0x50fd3f,_0x2dfc38){const _0x2553dd=_0x35ea2f;let _0x306169=this[_0x2553dd(0x114)][_0x2553dd(0x91)](_0x50fd3f);_0x306169||(_0x306169=new Map(),this[_0x2553dd(0x114)][_0x2553dd(0x8c)](_0x50fd3f,_0x306169));let _0xc8c032=_0x306169[_0x2553dd(0x91)](_0x2dfc38);return _0xc8c032||(_0xc8c032=new Map(),_0x306169[_0x2553dd(0x8c)](_0x2dfc38,_0xc8c032)),_0xc8c032;}[_0x35ea2f(0x113)](_0x33d47f,_0x2c261a){const _0x4b0ae7=_0x35ea2f;let _0x3f3aa6=this[_0x4b0ae7(0xd4)][_0x4b0ae7(0x91)](_0x33d47f);_0x3f3aa6||(_0x3f3aa6=new Map(),this[_0x4b0ae7(0xd4)][_0x4b0ae7(0x8c)](_0x33d47f,_0x3f3aa6));let _0x5e5549=_0x3f3aa6[_0x4b0ae7(0x91)](_0x2c261a);return _0x5e5549||(_0x5e5549={'matrix':new _0x47a2b0(),'extra':{}},_0x3f3aa6[_0x4b0ae7(0x8c)](_0x2c261a,_0x5e5549)),_0x5e5549;}[_0x35ea2f(0x12f)](_0x1ead1c,_0x870d79,_0x5310b5,_0x3574fc=_0x35ea2f(0x8c)){const _0xef380f=_0x35ea2f;var _0x2e8194,_0x6c64b4,_0x37d6de,_0x565972,_0x21aba9,_0x1a17d8,_0x253cad,_0x181b44,_0x1b0a80,_0x42d664,_0x588811,_0x314be8,_0x2f7214;const _0x144058=(_0x6c64b4=(_0x2e8194=this['_sparklineModel'][_0xef380f(0x91)](_0x1ead1c))==null?void 0x0:_0x2e8194['get'](_0x870d79))==null?void 0x0:_0x6c64b4[_0xef380f(0x91)](_0x5310b5);if(!_0x144058)return;const _0x30ad3b=_0x62510f(this[_0xef380f(0x118)],{'unitId':_0x1ead1c,'subUnitId':_0x870d79});if(!_0x30ad3b)return;const _0x48b410=this['_ensureAnchorMatrix'](_0x1ead1c,_0x870d79),{extra:_0x3f73dc,matrix:_0x1b8aee}=_0x48b410,{worksheet:_0x2d76f1}=_0x30ad3b;let _0x370c36=Number[_0xef380f(0x101)],_0x2e8aca=Number[_0xef380f(0xaf)];const _0x1d9ff6=(_0x37d6de=_0x144058[_0xef380f(0x12c)]['containHiddenCells'])!=null?_0x37d6de:!0x1;_0x144058[_0xef380f(0xd6)][_0xef380f(0xf2)]((_0x3d06f8,_0x150e2a,_0x328a2d)=>{const _0x18a167=_0xef380f;var _0x5b5620,_0x2c05af,_0x5d61c4;const _0x22731b=_0x328a2d;let _0x22e2ce=Number[_0x18a167(0x101)],_0x1a3a74=Number['MAX_SAFE_INTEGER'],_0x283347=0x0,_0x19a82e=0x0;const _0x5ae951=[];if(!_0x7efe92(_0x22731b))_0x1b8aee[_0x18a167(0x104)](_0x3d06f8,_0x150e2a,{'groupId':_0x5310b5,'data':[],'max':_0x22e2ce,'min':_0x1a3a74,'highIndex':_0x283347,'lowIndex':_0x19a82e,'negativeIndexes':_0x5ae951});else{const _0x381a50=[];for(let _0x130b90=_0x22731b[_0x18a167(0x134)];_0x130b90<=_0x22731b[_0x18a167(0x9f)];_0x130b90++){for(let _0x302b8f=_0x22731b['startColumn'];_0x302b8f<=_0x22731b[_0x18a167(0xea)];_0x302b8f++){const _0x2442ac=_0x2d76f1[_0x18a167(0x96)](_0x130b90),_0x15a6f5=_0x2d76f1[_0x18a167(0xe1)](_0x302b8f);if(!_0x1d9ff6&&(!_0x2442ac||!_0x15a6f5))continue;let _0x49bf0e=0x0;const _0xbb60=((_0x5b5620=_0x2d76f1[_0x18a167(0x132)](_0x130b90,_0x302b8f))==null?void 0x0:_0x5b5620['v'])!==void 0x0?_0x2d76f1[_0x18a167(0x132)](_0x130b90,_0x302b8f):_0x2d76f1[_0x18a167(0xcb)](_0x130b90,_0x302b8f);if(!_0xbb60||_0xbb60['v']===void 0x0||_0xbb60['v']===null){const _0x19a088=(_0x2c05af=_0x144058[_0x18a167(0x12c)]['emptyShowAs'])!=null?_0x2c05af:J['SPACING'];_0x19a088===J[_0x18a167(0xc7)]?_0x49bf0e=0x0:_0x19a088===J[_0x18a167(0x10d)]?_0x49bf0e=_0x18a167(0x139):_0x19a088===J['CONNECT_WITH_LINE']&&(_0x49bf0e=_0x18a167(0xf0));}else{if(_0xbb60['t']===_0x240dc4[_0x18a167(0x128)]||_0xbb60['t']===_0x240dc4[_0x18a167(0x82)]){const _0x4367b7=(_0x5d61c4=_0x144058[_0x18a167(0x12c)]['nonNumShowAs'])!=null?_0x5d61c4:J[_0x18a167(0x10d)];_0x4367b7===J['ZERO_VALUE']?_0x49bf0e=0x0:_0x4367b7===J[_0x18a167(0x10d)]?_0x49bf0e=_0x18a167(0x139):_0x4367b7===J['CONNECT_WITH_LINE']&&(_0x49bf0e=_0x18a167(0xf0));}else _0xbb60['t']===_0x240dc4['BOOLEAN']?_0x49bf0e=_0xbb60['v']?0x1:0x0:_0xbb60['t']===_0x240dc4[_0x18a167(0xde)]?_0x49bf0e=Number(_0xbb60['v']):_0x49bf0e=_0xbb60['v'];}if(_0x381a50[_0x18a167(0xb1)](_0x49bf0e),typeof _0x49bf0e==_0x18a167(0xff)){_0x22e2ce=Math[_0x18a167(0x124)](_0x22e2ce,_0x49bf0e),_0x370c36=Math['max'](_0x370c36,_0x49bf0e),_0x2e8aca=Math['min'](_0x2e8aca,_0x49bf0e),_0x1a3a74=Math[_0x18a167(0xd1)](_0x1a3a74,_0x49bf0e);const _0x12fb18=typeof _0x381a50[_0x283347]==_0x18a167(0xff)?Number(_0x381a50[_0x283347]):Number[_0x18a167(0x101)];_0x49bf0e>_0x12fb18&&(_0x283347=_0x381a50[_0x18a167(0xb7)]-0x1);const _0x57a56d=typeof _0x381a50[_0x19a82e]==_0x18a167(0xff)?Number(_0x381a50[_0x19a82e]):Number['MAX_SAFE_INTEGER'];_0x49bf0e<_0x57a56d&&(_0x19a82e=_0x381a50['length']-0x1),_0x49bf0e<0x0&&_0x5ae951[_0x18a167(0xb1)](_0x381a50[_0x18a167(0xb7)]-0x1);}}_0x1b8aee[_0x18a167(0x104)](_0x3d06f8,_0x150e2a,{'groupId':_0x5310b5,'data':_0x381a50,'max':_0x22e2ce,'min':_0x1a3a74,'highIndex':_0x283347,'lowIndex':_0x19a82e,'negativeIndexes':_0x5ae951});}}});let _0x1e8a8a=_0x370c36;((_0x565972=_0x144058['config'][_0xef380f(0xbc)])==null?void 0x0:_0x565972[_0xef380f(0x123)])===De['CUSTOM_EXTREMUM']&&(_0x1e8a8a=(_0x1a17d8=(_0x21aba9=_0x144058[_0xef380f(0x12c)][_0xef380f(0xbc)])==null?void 0x0:_0x21aba9[_0xef380f(0x100)])!=null?_0x1a17d8:_0x370c36);let _0x3db48d=_0x2e8aca;((_0x253cad=_0x144058[_0xef380f(0x12c)]['extremumMin'])==null?void 0x0:_0x253cad[_0xef380f(0x123)])===De[_0xef380f(0x9c)]&&(_0x3db48d=(_0x1b0a80=(_0x181b44=_0x144058[_0xef380f(0x12c)]['extremumMin'])==null?void 0x0:_0x181b44[_0xef380f(0x100)])!=null?_0x1b0a80:_0x2e8aca);const _0x3a762f=(_0x42d664=_0x144058[_0xef380f(0x12c)][_0xef380f(0x109)])!=null?_0x42d664:Xe[_0xef380f(0x98)],_0x2882ab=(_0x2f7214=(_0x314be8=_0x144058['config'][_0xef380f(0xd8)])!=null?_0x314be8:(_0x588811=Le[_0x3a762f])==null?void 0x0:_0x588811[0x0])!=null?_0x2f7214:Le[_0xef380f(0xad)][0x0],_0x1b1770=new _0x48f4cd(_0x2882ab),_0x45ccd5=_0x1b1770[_0xef380f(0x125)](0.2)[_0xef380f(0xb3)](),_0x115223=_0x1b1770[_0xef380f(0x125)](0.05)[_0xef380f(0xb3)]();_0x3f73dc[_0x5310b5]={'groupMax':_0x370c36,'groupMin':_0x2e8aca,'showMax':_0x1e8a8a,'showMin':_0x3db48d,'startGradient':_0x45ccd5,'endGradient':_0x115223},this[_0xef380f(0x135)]['next']({'unitId':_0x1ead1c,'subUnitId':_0x870d79,'groupId':_0x5310b5,'config':_0x144058,'type':_0x3574fc});}['addSparkline'](_0x2a018e,_0x166ee7,_0x114599,_0x1da1b0){const _0x1ae40e=_0x35ea2f;this[_0x1ae40e(0x81)](_0x2a018e,_0x166ee7)['set'](_0x114599,_0x1da1b0),this[_0x1ae40e(0x12f)](_0x2a018e,_0x166ee7,_0x114599,_0x1ae40e(0x80));}['setSparkline'](_0x131f7c,_0x234400,_0x194d31,_0x50ad04){const _0x5c53b7=_0x35ea2f;var _0x55b60d;const _0x2c9c1a=(_0x55b60d=this[_0x5c53b7(0x114)]['get'](_0x131f7c))==null?void 0x0:_0x55b60d['get'](_0x234400);_0x194d31[_0x5c53b7(0x102)](_0x4d098c=>{const _0x30cd8c=_0x5c53b7;_0x2c9c1a!=null&&_0x2c9c1a[_0x30cd8c(0x7f)](_0x4d098c)&&(_0x2c9c1a[_0x30cd8c(0x8c)](_0x4d098c,_0x50ad04),this[_0x30cd8c(0x12f)](_0x131f7c,_0x234400,_0x4d098c));});}[_0x35ea2f(0x8f)](_0x28df60,_0x4da290,_0x380a33){const _0x142b81=_0x35ea2f;var _0xe60924,_0x56c71b;const _0x256b72=this[_0x142b81(0x114)][_0x142b81(0x91)](_0x28df60);if(_0x256b72){const _0xffa357=_0x256b72[_0x142b81(0x91)](_0x4da290);if(_0xffa357){_0xffa357[_0x142b81(0xbd)](_0x380a33);const _0x585982=(_0xe60924=this['_sparklineAnchorMap'][_0x142b81(0x91)](_0x28df60))==null?void 0x0:_0xe60924['get'](_0x4da290);(_0x56c71b=_0x585982==null?void 0x0:_0x585982['matrix'])==null||_0x56c71b[_0x142b81(0xf2)]((_0x16301a,_0x4c5aa9,_0x1736d5)=>{const _0x17b9f0=_0x142b81;(_0x1736d5==null?void 0x0:_0x1736d5[_0x17b9f0(0xf7)])===_0x380a33&&(_0x585982==null||_0x585982['matrix'][_0x17b9f0(0xec)](_0x16301a,_0x4c5aa9));}),this[_0x142b81(0x135)][_0x142b81(0x8a)]({'unitId':_0x28df60,'subUnitId':_0x4da290,'groupId':_0x380a33,'type':'remove'});}}}[_0x35ea2f(0xe9)](_0x4f9d55,_0x5c90fa,_0x181286,_0x2174cc){const _0x455e9f=_0x35ea2f;var _0x503ce4,_0x783b2c,_0x13cab,_0x1865c4;const _0x18e041=(_0x503ce4=this['_sparklineAnchorMap'][_0x455e9f(0x91)](_0x4f9d55))==null?void 0x0:_0x503ce4[_0x455e9f(0x91)](_0x5c90fa),_0x288095=_0x18e041==null?void 0x0:_0x18e041[_0x455e9f(0xee)][_0x455e9f(0x8b)](_0x181286,_0x2174cc);if(_0x288095){const {groupId:_0xa7bcb9}=_0x288095,_0x4fdd03=(_0x783b2c=this[_0x455e9f(0x114)][_0x455e9f(0x91)](_0x4f9d55))==null?void 0x0:_0x783b2c[_0x455e9f(0x91)](_0x5c90fa);(_0x13cab=_0x4fdd03==null?void 0x0:_0x4fdd03['get'](_0xa7bcb9))==null||_0x13cab['sparklines'][_0x455e9f(0xec)](_0x181286,_0x2174cc),(_0x1865c4=_0x4fdd03==null?void 0x0:_0x4fdd03[_0x455e9f(0x91)](_0xa7bcb9))!=null&&_0x1865c4['sparklines'][_0x455e9f(0xf4)]()||_0x4fdd03==null||_0x4fdd03[_0x455e9f(0xbd)](_0xa7bcb9),_0x18e041==null||_0x18e041[_0x455e9f(0xee)][_0x455e9f(0xec)](_0x181286,_0x2174cc),this['_updateConfig$'][_0x455e9f(0x8a)]({'unitId':_0x4f9d55,'subUnitId':_0x5c90fa,'groupId':_0xa7bcb9,'type':_0x455e9f(0x116)});}}['clearSparklineCache'](_0xd741e5,_0x39123b,_0x5eef48){const _0x528cd3=_0x35ea2f;var _0x4b7e55,_0x5540b2,_0x3f9c84,_0x23feed;const _0x4ba209=(_0x3f9c84=(_0x5540b2=(_0x4b7e55=this[_0x528cd3(0x114)]['get'](_0xd741e5))==null?void 0x0:_0x4b7e55[_0x528cd3(0x91)](_0x39123b))==null?void 0x0:_0x5540b2[_0x528cd3(0x91)](_0x5eef48))==null?void 0x0:_0x3f9c84[_0x528cd3(0xd6)],_0x3e976f=(_0x23feed=this[_0x528cd3(0xd4)]['get'](_0xd741e5))==null?void 0x0:_0x23feed[_0x528cd3(0x91)](_0x39123b);if(_0x4ba209&&_0x3e976f){const {matrix:_0x5b22fe,extra:_0x85466e}=_0x3e976f;_0x4ba209[_0x528cd3(0xf2)]((_0x4e657e,_0x551b2a,_0x3300bf)=>{const _0x26ea72=_0x528cd3;_0x5b22fe[_0x26ea72(0xec)](_0x4e657e,_0x551b2a);}),delete _0x85466e[_0x5eef48];}}[_0x35ea2f(0x108)](_0x21dd76,_0x32893c){const _0x5840e9=_0x35ea2f;var _0x414b2a;return(_0x414b2a=this[_0x5840e9(0x114)]['get'](_0x21dd76))==null?void 0x0:_0x414b2a[_0x5840e9(0x91)](_0x32893c);}[_0x35ea2f(0xbb)](_0x2cc2ec,_0x3301bb,_0x1737e9){const _0x54a873=_0x35ea2f;var _0x33d6d6,_0x128c69;return(_0x128c69=(_0x33d6d6=this['_sparklineModel'][_0x54a873(0x91)](_0x2cc2ec))==null?void 0x0:_0x33d6d6[_0x54a873(0x91)](_0x3301bb))==null?void 0x0:_0x128c69['get'](_0x1737e9);}['getSparkline'](_0x5ab862,_0x59d5c9,_0x510396,_0x5d47c4){const _0x5d52e8=_0x35ea2f;var _0x4dd822,_0x39d005,_0xbaf81c;return(_0xbaf81c=(_0x39d005=(_0x4dd822=this[_0x5d52e8(0xd4)]['get'](_0x5ab862))==null?void 0x0:_0x4dd822[_0x5d52e8(0x91)](_0x59d5c9))==null?void 0x0:_0x39d005[_0x5d52e8(0xee)][_0x5d52e8(0x8b)](_0x510396,_0x5d47c4))==null?void 0x0:_0xbaf81c[_0x5d52e8(0xf7)];}[_0x35ea2f(0xab)](_0x359a38,_0x4b8972){const _0x3903b9=_0x35ea2f;var _0x26840d;const _0x56ce91=this[_0x3903b9(0x113)](_0x359a38,_0x4b8972);_0x56ce91[_0x3903b9(0xee)][_0x3903b9(0xf2)]((_0x334759,_0x35aa43)=>{const _0x4ac363=_0x3903b9;_0x56ce91[_0x4ac363(0xee)]['realDeleteValue'](_0x334759,_0x35aa43);});const _0x5a16f8=(_0x26840d=this[_0x3903b9(0x114)][_0x3903b9(0x91)](_0x359a38))==null?void 0x0:_0x26840d[_0x3903b9(0x91)](_0x4b8972);if(_0x5a16f8){for(const [_0x1f1045]of _0x5a16f8)this[_0x3903b9(0x12f)](_0x359a38,_0x4b8972,_0x1f1045);}}[_0x35ea2f(0x90)](){const _0x5d64d8=_0x35ea2f;return{'sparklineModel':this[_0x5d64d8(0x114)],'sparklineAnchorMap':this[_0x5d64d8(0xd4)]};}[_0x35ea2f(0x84)](_0x54b4ff){const _0x33b36f=_0x35ea2f,_0x9f91c0={};if(this[_0x33b36f(0x114)][_0x33b36f(0x7f)](_0x54b4ff)){_0x9f91c0[_0x54b4ff]={};const _0x3d1059=this['_sparklineModel'][_0x33b36f(0x91)](_0x54b4ff);_0x3d1059!=null&&_0x3d1059[_0x33b36f(0xca)]&&Array[_0x33b36f(0x112)](_0x3d1059['keys']())['forEach'](_0x4cfa31=>{const _0x30546e=_0x33b36f;_0x9f91c0[_0x54b4ff][_0x4cfa31]={};const _0x29cbd3=_0x3d1059[_0x30546e(0x91)](_0x4cfa31);_0x29cbd3!=null&&_0x29cbd3[_0x30546e(0xca)]&&Array[_0x30546e(0x112)](_0x29cbd3[_0x30546e(0xe3)]())['forEach'](_0x4da26b=>{const _0x171b19=_0x30546e,_0x442d8d=_0x29cbd3[_0x171b19(0x91)](_0x4da26b);_0x442d8d&&(_0x9f91c0[_0x54b4ff][_0x4cfa31][_0x4da26b]={'config':_0x442d8d[_0x171b19(0x12c)],'sparklines':_0x442d8d[_0x171b19(0xd6)][_0x171b19(0xd0)]()});});});}return _0x9f91c0;}[_0x35ea2f(0x103)](_0x59a4cc){const _0x5dc4d1=_0x35ea2f;if(!_0x59a4cc)return;Object['keys'](_0x59a4cc)[_0x5dc4d1(0x102)](_0x2a3184=>{const _0x30c9d4=_0x5dc4d1,_0x267b8b=_0x59a4cc[_0x2a3184];_0x267b8b&&Object[_0x30c9d4(0xe3)](_0x267b8b)[_0x30c9d4(0x102)](_0x4fab1b=>{const _0x1e257a=_0x30c9d4,_0x7285b4=_0x267b8b[_0x4fab1b];_0x7285b4&&Object[_0x1e257a(0xe3)](_0x7285b4)['forEach'](_0x253102=>{const _0x3e2d7c=_0x1e257a,_0x2c9281=_0x7285b4[_0x253102];if(_0x2c9281){const _0x3d92eb={'config':_0x2c9281[_0x3e2d7c(0x12c)],'sparklines':new _0x47a2b0(_0x2c9281['sparklines'])};this[_0x3e2d7c(0xfa)](_0x2a3184,_0x4fab1b,_0x253102,_0x3d92eb);}});});});}[_0x35ea2f(0xed)](_0x14c799){const _0x5299cb=_0x35ea2f,_0x33f00a=this[_0x5299cb(0x114)]['get'](_0x14c799);if(_0x33f00a){for(const [_0x1de6e5]of _0x33f00a){const _0xe9358b=_0x33f00a[_0x5299cb(0x91)](_0x1de6e5);if(_0xe9358b){for(const [_0x1c8a43]of _0xe9358b)this['clearSparklineCache'](_0x14c799,_0x1de6e5,_0x1c8a43);}}this[_0x5299cb(0x114)][_0x5299cb(0xbd)](_0x14c799);}}};function _0x2a86(_0x1132e2,_0x46a314){const _0x49019d=_0x4901();return _0x2a86=function(_0x2a86df,_0x4ac0f3){_0x2a86df=_0x2a86df-0x7d;let _0x27e48a=_0x49019d[_0x2a86df];return _0x27e48a;},_0x2a86(_0x1132e2,_0x46a314);}x=Vt([yt(0x0,_0x135bfa(_0x1bbe0c))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x566cb7[_0x35ea2f(0xa5)],'handler':(_0x1ec422,_0x46209a)=>{const _0x4647fd=_0x35ea2f;if(!_0x46209a)return!0x1;const {sparklineConfigMap:_0x5a5966,unitId:_0xfa0e9c,subUnitId:_0x1f3a6d}=_0x46209a,_0x44391c=_0x1ec422[_0x4647fd(0x91)](x);return Object[_0x4647fd(0xf5)](_0x5a5966)[_0x4647fd(0x102)](([_0x30b8bc,_0x33789b])=>{const _0x710a1f=_0x4647fd,_0x40a706={'config':_0x33789b[_0x710a1f(0x12c)],'sparklines':new _0x47a2b0(_0x33789b[_0x710a1f(0xd6)])};_0x44391c['addSparkline'](_0xfa0e9c,_0x1f3a6d,_0x30b8bc,_0x40a706);}),!0x0;}},y={'id':'sheet.mutation.remove-sparkline','type':_0x566cb7[_0x35ea2f(0xa5)],'handler':(_0x4f8f2d,_0x36b47e)=>{const _0x5d52eb=_0x35ea2f;if(!_0x36b47e)return!0x1;const {unitId:_0x20dc53,subUnitId:_0x157421,ranges:_0x592cb9,isSingle:_0x10d687,groupIds:_0x412d45}=_0x36b47e,_0xd6cf04=_0x4f8f2d[_0x5d52eb(0x91)](x);return _0x412d45?(_0x412d45[_0x5d52eb(0x102)](_0x511171=>{_0xd6cf04['removeSparkline'](_0x20dc53,_0x157421,_0x511171);}),!0x0):_0x592cb9?(_0x592cb9[_0x5d52eb(0x102)](_0x4cf066=>{const _0x5e1492=_0x5d52eb;_0x1e9cd2[_0x5e1492(0xc8)](_0x4cf066,(_0x58010a,_0x5a2bd9)=>{const _0x17a7f8=_0x5e1492,_0x2a824e=_0xd6cf04[_0x17a7f8(0x89)](_0x20dc53,_0x157421,_0x58010a,_0x5a2bd9);_0x2a824e&&(_0x10d687?_0xd6cf04[_0x17a7f8(0xe9)](_0x20dc53,_0x157421,_0x58010a,_0x5a2bd9):_0xd6cf04['removeSparkline'](_0x20dc53,_0x157421,_0x2a824e));});}),!0x0):!0x1;}},Nt={'id':_0x35ea2f(0x121),'type':_0x566cb7[_0x35ea2f(0x93)],'handler':(_0x1dd829,_0x31678b)=>{const _0x5d4b13=_0x35ea2f;if(!_0x31678b)return!0x1;const {sourceRanges:_0xcf8961,targetRanges:_0x155d6b,config:_0x1352ab}=_0x31678b,_0x235ec2=_0x1dd829[_0x5d4b13(0x91)](_0x14df3e),_0x2d1bf9='g_'+_0x2dfc1e(0x6),_0x136b75=Fe(_0xcf8961,_0x155d6b),_0x37a797={'config':_0x1352ab!=null?_0x1352ab:{},'sparklines':_0x136b75[_0x5d4b13(0xd0)]()},_0xfc1e4f=_0x1dd829[_0x5d4b13(0x91)](_0x1bbe0c),_0x2f092a=_0x1dd829['get'](x),_0x52a8cc=_0x62510f(_0xfc1e4f);if(!_0x52a8cc)return!0x1;const {unitId:_0x184c8b,subUnitId:_0x28a997}=_0x52a8cc,_0x58e160=_0x1dd829[_0x5d4b13(0x91)](_0x4ffbf1),_0x55b0d5=[],_0x4a75e1=[],_0x18a7f9={},_0x7c5a46={},_0x1d91d3=new Set([_0x2d1bf9]);_0x136b75[_0x5d4b13(0xf2)]((_0x263f6a,_0x52a9f7,_0x32a753)=>{const _0x5f1370=_0x5d4b13,_0x2e1daf=_0x2f092a[_0x5f1370(0x89)](_0x184c8b,_0x28a997,_0x263f6a,_0x52a9f7);if(_0x2e1daf){const _0x32645d=_0x2f092a[_0x5f1370(0xbb)](_0x184c8b,_0x28a997,_0x2e1daf);if(_0x32645d){_0x1d91d3[_0x5f1370(0x80)](_0x2e1daf);let _0xcd3f8=_0x18a7f9[_0x2e1daf],_0x9c8f21=_0x7c5a46[_0x2e1daf];_0x9c8f21||(_0x9c8f21={'config':_0x4b2a24[_0x5f1370(0xdc)](_0x32645d[_0x5f1370(0x12c)]),'sparklines':new _0x47a2b0(_0x32645d['sparklines'][_0x5f1370(0x9a)]())},_0x7c5a46[_0x2e1daf]=_0x9c8f21),_0xcd3f8||(_0xcd3f8={'config':_0x4b2a24[_0x5f1370(0xdc)](_0x32645d['config']),'sparklines':_0x32645d[_0x5f1370(0xd6)][_0x5f1370(0x9a)]()},_0x18a7f9[_0x2e1daf]=_0xcd3f8),_0x9c8f21['sparklines'][_0x5f1370(0xec)](_0x263f6a,_0x52a9f7);}}});const _0x1363b2={};return Object[_0x5d4b13(0xf5)](_0x7c5a46)['forEach'](([_0x1450ce,_0x40a2d8])=>{const _0xe63c08=_0x5d4b13;_0x40a2d8[_0xe63c08(0xd6)][_0xe63c08(0xa4)]()&&(_0x1363b2[_0x1450ce]={'config':_0x40a2d8[_0xe63c08(0x12c)],'sparklines':_0x40a2d8[_0xe63c08(0xd6)][_0xe63c08(0x9a)]()});}),_0x1363b2[_0x2d1bf9]=_0x37a797,_0x55b0d5[_0x5d4b13(0xb1)]({'id':y['id'],'params':{'unitId':_0x184c8b,'subUnitId':_0x28a997,'groupIds':Array[_0x5d4b13(0x112)](_0x1d91d3),'isSingle':!0x1}}),_0x1d91d3['size']>0x1&&(_0x4a75e1[_0x5d4b13(0xb1)]({'id':y['id'],'params':{'unitId':_0x184c8b,'subUnitId':_0x28a997,'groupIds':Array[_0x5d4b13(0x112)](_0x1d91d3),'isSingle':!0x1}}),_0x55b0d5['push']({'id':V['id'],'params':{'unitId':_0x184c8b,'subUnitId':_0x28a997,'sparklineConfigMap':_0x18a7f9}})),_0x4a75e1[_0x5d4b13(0xb1)]({'id':V['id'],'params':{'unitId':_0x184c8b,'subUnitId':_0x28a997,'sparklineConfigMap':_0x1363b2}}),_0x3f89e4(_0x4a75e1,_0x58e160),_0x235ec2[_0x5d4b13(0xe5)]({'unitID':_0x184c8b,'undoMutations':_0x55b0d5,'redoMutations':_0x4a75e1}),!0x0;}},Ot={'id':'sheet.command.remove-sparkline','type':_0x566cb7[_0x35ea2f(0x93)],'handler':(_0x19ea2a,_0x2e2c88)=>{const _0x5923bf=_0x35ea2f;var _0x54e4a2;const {isSingle:_0x3d841c=!0x0}=_0x2e2c88||{},_0x5a376e=_0x19ea2a[_0x5923bf(0x91)](_0x4ffbf1),_0x180535=_0x19ea2a['get'](_0x1bbe0c),_0x2ceaad=_0x19ea2a[_0x5923bf(0x91)](x),_0x21f249=_0x19ea2a[_0x5923bf(0x91)](_0x14df3e),_0x4b8663=_0x62510f(_0x180535);if(!_0x4b8663)return!0x1;const _0x1c2398=_0x19ea2a['get'](_0xf0320),_0x27afef=(_0x54e4a2=_0x2e2c88==null?void 0x0:_0x2e2c88[_0x5923bf(0xae)])!=null?_0x54e4a2:_0x1c2398[_0x5923bf(0x10c)]()[_0x5923bf(0x9e)](_0x415553=>_0x415553['range']),{unitId:_0x2b1372,subUnitId:_0x42e311}=_0x4b8663,_0x56b546=[],_0x58a52b=[];_0x56b546[_0x5923bf(0xb1)]({'id':y['id'],'params':{'unitId':_0x2b1372,'subUnitId':_0x42e311,'ranges':_0x27afef,'isSingle':_0x3d841c}});const _0x34fe0e=[],_0x5b6bb6={};return _0x27afef[_0x5923bf(0x102)](_0x2c5c8e=>{const _0x3377d3=_0x5923bf;_0x1e9cd2[_0x3377d3(0xc8)](_0x2c5c8e,(_0x206aa5,_0x3222ab)=>{const _0x1cb842=_0x3377d3,_0x5166e6=_0x2ceaad[_0x1cb842(0x89)](_0x2b1372,_0x42e311,_0x206aa5,_0x3222ab);if(_0x5166e6){const _0x36f7f8=_0x2ceaad[_0x1cb842(0xbb)](_0x2b1372,_0x42e311,_0x5166e6);_0x36f7f8&&(_0x34fe0e[_0x1cb842(0xb1)](_0x5166e6),_0x5b6bb6[_0x5166e6]={'config':_0x4b2a24[_0x1cb842(0xdc)](_0x36f7f8['config']),'sparklines':_0x4b2a24[_0x1cb842(0xdc)](_0x36f7f8['sparklines'][_0x1cb842(0x9a)]())});}});}),_0x58a52b[_0x5923bf(0xb1)]({'id':y['id'],'params':{'unitId':_0x2b1372,'subUnitId':_0x42e311,'groupIds':_0x34fe0e,'isSingle':!0x1}}),_0x58a52b['push']({'id':V['id'],'params':{'unitId':_0x2b1372,'subUnitId':_0x42e311,'sparklineConfigMap':_0x5b6bb6}}),_0x3f89e4(_0x56b546,_0x5a376e),_0x21f249[_0x5923bf(0xe5)]({'unitID':_0x2b1372,'undoMutations':_0x58a52b,'redoMutations':_0x56b546}),!0x0;}},Oe={'id':_0x35ea2f(0xd7),'type':_0x566cb7['MUTATION'],'handler':(_0x5559d5,_0x5483b8)=>{const _0x164434=_0x35ea2f;if(!_0x5483b8)return!0x1;const {unitId:_0x48193a,subUnitId:_0x48da4e,groupIds:_0x3686e1,config:_0x25f1b7}=_0x5483b8,_0x54dfc1=_0x5559d5[_0x164434(0x91)](x);return _0x3686e1[_0x164434(0x102)](_0x309895=>{const _0x183dd5=_0x164434,_0x4bec30=_0x54dfc1[_0x183dd5(0xbb)](_0x48193a,_0x48da4e,_0x309895);if(_0x4bec30){const _0x1af5ab={'config':Object[_0x183dd5(0xf6)]({},_0x4bec30[_0x183dd5(0x12c)],_0x25f1b7['config']),'sparklines':new _0x47a2b0(_0x4bec30[_0x183dd5(0xd6)]['clone']())};_0x54dfc1[_0x183dd5(0xb6)](_0x48193a,_0x48da4e,[_0x309895],_0x1af5ab);}}),!0x0;}},xt={'id':_0x35ea2f(0xb2),'type':_0x566cb7[_0x35ea2f(0x93)],'handler':(_0x30e740,_0x75a8e6)=>{const _0xe94de8=_0x35ea2f;var _0x2ba968,_0x1bee69,_0xa4071b,_0x119ae7;if(!_0x75a8e6)return!0x1;const _0x1247f9=_0x30e740[_0xe94de8(0x91)](_0x4ffbf1),_0x579e76=_0x30e740[_0xe94de8(0x91)](_0xf0320),_0x2d4d7f=_0x30e740[_0xe94de8(0x91)](x),_0x949184=_0x30e740[_0xe94de8(0x91)](_0x1bbe0c),_0x17b5b0=_0x30e740[_0xe94de8(0x91)](_0x14df3e),_0x4b859e=_0x62510f(_0x949184);if(!_0x4b859e)return!0x1;const {unitId:_0x57cb5d,subUnitId:_0x120327}=_0x4b859e,_0x4187d6=(_0x2ba968=_0x75a8e6==null?void 0x0:_0x75a8e6['ranges'])!=null?_0x2ba968:_0x579e76[_0xe94de8(0x10c)]()[_0xe94de8(0x9e)](_0x115bb4=>_0x115bb4['range']),_0x51c25d=(_0x1bee69=_0x2d4d7f[_0xe94de8(0x90)]()[_0xe94de8(0xe7)][_0xe94de8(0x91)](_0x57cb5d))==null?void 0x0:_0x1bee69[_0xe94de8(0x91)](_0x120327),{isChangeDataSource:_0x52b31c,config:_0x135b40,combine:_0x30e52f,unCombine:_0x15c5e0}=_0x75a8e6;if(_0x30e52f){const _0xf836e8=[],_0x6b31dd=[];_0xf836e8[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'ranges':_0x4187d6,'isSingle':!0x0}});const _0x67851d='g_'+_0x2dfc1e(0x6),_0x1f1c21=new _0x47a2b0(),_0x34bd20=(_0xa4071b=_0x2d4d7f['getSparklineCache']()[_0xe94de8(0x8e)][_0xe94de8(0x91)](_0x57cb5d))==null?void 0x0:_0xa4071b['get'](_0x120327),_0x31020a=new Set([_0x67851d]),_0x4efd7e={};return _0x4187d6[_0xe94de8(0x102)](_0xf7387e=>{const _0x39b62d=_0xe94de8;var _0x5558a1,_0x99f7c8;const {startRow:_0x5e9da1,endRow:_0x40c957,startColumn:_0x4d5d88,endColumn:_0x1b7f44}=_0xf7387e;for(let _0x4db897=_0x5e9da1;_0x4db897<=_0x40c957;_0x4db897++)for(let _0x200ef1=_0x4d5d88;_0x200ef1<=_0x1b7f44;_0x200ef1++){const _0x36f9f8=(_0x5558a1=_0x51c25d==null?void 0x0:_0x51c25d[_0x39b62d(0xee)][_0x39b62d(0x8b)](_0x4db897,_0x200ef1))==null?void 0x0:_0x5558a1[_0x39b62d(0xf7)];if(_0x36f9f8){_0x31020a['add'](_0x36f9f8);const _0x16398f=_0x2d4d7f['getSparklineById'](_0x57cb5d,_0x120327,_0x36f9f8);_0x16398f&&(_0x4efd7e[_0x36f9f8]={'config':_0x4b2a24[_0x39b62d(0xdc)](_0x16398f['config']),'sparklines':_0x4b2a24[_0x39b62d(0xdc)](_0x16398f['sparklines'][_0x39b62d(0x9a)]())});const _0x16bbd6=(_0x99f7c8=_0x34bd20==null?void 0x0:_0x34bd20[_0x39b62d(0x91)](_0x36f9f8))==null?void 0x0:_0x99f7c8[_0x39b62d(0xd6)]['getValue'](_0x4db897,_0x200ef1);_0x16bbd6&&_0x1f1c21[_0x39b62d(0x104)](_0x4db897,_0x200ef1,_0x16bbd6);}}}),_0xf836e8[_0xe94de8(0xb1)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x67851d]:{'config':_0x4b2a24[_0xe94de8(0xdc)](_0x135b40['config']),'sparklines':_0x1f1c21[_0xe94de8(0xd0)]()}},'unitId':_0x57cb5d,'subUnitId':_0x120327}}),_0x6b31dd[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'isSingle':!0x1,'groupIds':Array['from'](_0x31020a)}}),_0x6b31dd[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':_0x4efd7e}}),_0x3f89e4(_0xf836e8,_0x1247f9),_0x17b5b0[_0xe94de8(0xe5)]({'unitID':_0x57cb5d,'undoMutations':_0x6b31dd,'redoMutations':_0xf836e8}),!0x0;}else{if(_0x15c5e0){const _0x175fb1=[],_0x4aad3b=[];_0x175fb1[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'ranges':_0x4187d6,'isSingle':!0x0}});const _0x3ecf54=(_0x119ae7=_0x2d4d7f[_0xe94de8(0x90)]()[_0xe94de8(0x8e)][_0xe94de8(0x91)](_0x57cb5d))==null?void 0x0:_0x119ae7[_0xe94de8(0x91)](_0x120327),_0x4ba2f2={},_0x4840d1=new Set(),_0xbeb318={};return _0x4187d6[_0xe94de8(0x102)](_0x472ca2=>{const _0x171512=_0xe94de8;var _0x22a149,_0x185494;const {startRow:_0x1134b0,endRow:_0x1744aa,startColumn:_0x32eb0a,endColumn:_0x25b588}=_0x472ca2;for(let _0x1dffe3=_0x1134b0;_0x1dffe3<=_0x1744aa;_0x1dffe3++)for(let _0x164106=_0x32eb0a;_0x164106<=_0x25b588;_0x164106++){const _0x43de49=(_0x22a149=_0x51c25d==null?void 0x0:_0x51c25d['matrix'][_0x171512(0x8b)](_0x1dffe3,_0x164106))==null?void 0x0:_0x22a149[_0x171512(0xf7)];if(_0x43de49){const _0x1ebece=new _0x47a2b0(),_0x20f386='g_'+_0x2dfc1e(0x6);_0x4840d1[_0x171512(0x80)](_0x43de49),_0x4840d1[_0x171512(0x80)](_0x20f386);const _0x46092c=_0x2d4d7f[_0x171512(0xbb)](_0x57cb5d,_0x120327,_0x43de49);_0x46092c&&(_0xbeb318[_0x43de49]={'config':_0x4b2a24[_0x171512(0xdc)](_0x46092c['config']),'sparklines':_0x4b2a24[_0x171512(0xdc)](_0x46092c['sparklines'][_0x171512(0x9a)]())});const _0x180f98=(_0x185494=_0x3ecf54==null?void 0x0:_0x3ecf54[_0x171512(0x91)](_0x43de49))==null?void 0x0:_0x185494[_0x171512(0xd6)]['getValue'](_0x1dffe3,_0x164106);_0x180f98&&_0x1ebece[_0x171512(0x104)](_0x1dffe3,_0x164106,_0x180f98),_0x4ba2f2[_0x20f386]={'sparklines':_0x1ebece[_0x171512(0xd0)](),'config':_0x4b2a24[_0x171512(0xdc)](_0x135b40[_0x171512(0x12c)])};}}}),_0x175fb1[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':_0x4ba2f2}}),_0x4aad3b['push']({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'isSingle':!0x1,'groupIds':Array[_0xe94de8(0x112)](_0x4840d1)}}),_0x4aad3b[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':_0xbeb318}}),_0x3f89e4(_0x175fb1,_0x1247f9),_0x17b5b0[_0xe94de8(0xe5)]({'unitID':_0x57cb5d,'undoMutations':_0x4aad3b,'redoMutations':_0x175fb1}),!0x0;}}if(_0x52b31c){const _0x435907=_0x75a8e6[_0xe94de8(0x83)];if(!_0x435907)return!0x1;const {groupId:_0x157733,sourceRanges:_0x11cf08,targetRanges:_0x294887,resetType:_0x21ec46,primary:_0x540191}=_0x435907,_0x2f9d85=[],_0x2da102=[];_0x2f9d85[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'ranges':_0x4187d6,'isSingle':!0x1,'groupIds':[_0x157733]}}),_0x2da102[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'ranges':_0x4187d6,'isSingle':!0x1,'groupIds':[_0x157733]}});let _0x5b0ce4;_0x21ec46===_0xe94de8(0xe2)?(_0x5b0ce4=new _0x47a2b0(_0x135b40[_0xe94de8(0xd6)][_0xe94de8(0x9a)]()),_0x5b0ce4[_0xe94de8(0xec)](_0x540191[_0xe94de8(0xa0)],_0x540191['actualColumn']),_0x5b0ce4[_0xe94de8(0x104)](_0x294887[0x0]['startRow'],_0x294887[0x0]['startColumn'],_0x11cf08[0x0])):_0x5b0ce4=Fe(_0x11cf08,_0x294887);const _0xdfe940={'config':_0x4b2a24[_0xe94de8(0xdc)](_0x135b40[_0xe94de8(0x12c)]),'sparklines':_0x5b0ce4['getMatrix']()},_0x29deae={'config':_0x4b2a24[_0xe94de8(0xdc)](_0x135b40[_0xe94de8(0x12c)]),'sparklines':_0x4b2a24[_0xe94de8(0xdc)](_0x135b40['sparklines'][_0xe94de8(0x9a)]())};_0x2f9d85[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':{[_0x157733]:_0xdfe940}}}),_0x2da102[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':{[_0x157733]:_0x29deae}}}),_0x3f89e4(_0x2f9d85,_0x1247f9),_0x17b5b0[_0xe94de8(0xe5)]({'unitID':_0x57cb5d,'undoMutations':_0x2da102,'redoMutations':_0x2f9d85});}else{const _0x4f842c=[],_0x1ff8d1=[],_0x4a95f8=new Set(),_0xf6e1b1={};_0x4187d6[_0xe94de8(0x102)](_0x4a3c34=>{const _0x2007c6=_0xe94de8;var _0x482288;const {startRow:_0x317037,endRow:_0x30eaba,startColumn:_0x5ac84e,endColumn:_0x660130}=_0x4a3c34;for(let _0x179cba=_0x317037;_0x179cba<=_0x30eaba;_0x179cba++)for(let _0x3d8790=_0x5ac84e;_0x3d8790<=_0x660130;_0x3d8790++){const _0x2ff4d9=(_0x482288=_0x51c25d==null?void 0x0:_0x51c25d[_0x2007c6(0xee)]['getValue'](_0x179cba,_0x3d8790))==null?void 0x0:_0x482288[_0x2007c6(0xf7)];if(_0x2ff4d9){_0x4a95f8[_0x2007c6(0x80)](_0x2ff4d9);const _0x19e608=_0x2d4d7f[_0x2007c6(0xbb)](_0x57cb5d,_0x120327,_0x2ff4d9);_0x19e608&&(_0xf6e1b1[_0x2ff4d9]={'config':_0x4b2a24['deepClone'](_0x19e608[_0x2007c6(0x12c)]),'sparklines':_0x4b2a24[_0x2007c6(0xdc)](_0x19e608[_0x2007c6(0xd6)][_0x2007c6(0x9a)]())});}}}),_0x1ff8d1[_0xe94de8(0xb1)]({'id':Oe['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'groupIds':Array['from'](_0x4a95f8),'config':{'config':_0x4b2a24[_0xe94de8(0xdc)](_0x135b40[_0xe94de8(0x12c)]),'sparklines':_0x135b40[_0xe94de8(0xd6)][_0xe94de8(0xd0)]()}}}),_0x4f842c[_0xe94de8(0xb1)]({'id':y['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'isSingle':!0x1,'groupIds':Array[_0xe94de8(0x112)](_0x4a95f8)}}),_0x4f842c[_0xe94de8(0xb1)]({'id':V['id'],'params':{'unitId':_0x57cb5d,'subUnitId':_0x120327,'sparklineConfigMap':_0xf6e1b1}}),_0x3f89e4(_0x1ff8d1,_0x1247f9),_0x17b5b0[_0xe94de8(0xe5)]({'unitID':_0x57cb5d,'undoMutations':_0x4f842c,'redoMutations':_0x1ff8d1});}return!0x0;}};var Ut=Object['getOwnPropertyDescriptor'],Pt=(_0x4f7523,_0x14823a,_0x1da17a,_0xb4ebbf)=>{const _0x589b9d=_0x35ea2f;for(var _0x5c6254=_0xb4ebbf>0x1?void 0x0:_0xb4ebbf?Ut(_0x14823a,_0x1da17a):_0x14823a,_0x437c17=_0x4f7523[_0x589b9d(0xb7)]-0x1,_0x114262;_0x437c17>=0x0;_0x437c17--)(_0x114262=_0x4f7523[_0x437c17])&&(_0x5c6254=_0x114262(_0x5c6254)||_0x5c6254);return _0x5c6254;},fe=(_0x4779bf,_0x1db7c6)=>(_0x5d67ab,_0x54a3c5)=>_0x1db7c6(_0x5d67ab,_0x54a3c5,_0x4779bf);let Se=class extends _0x156591{constructor(_0x2fb428,_0x2fafc8,_0x1c2740,_0x51e318){const _0x2d2297=_0x35ea2f;super(),this[_0x2d2297(0xc2)]=_0x2fb428,this['_sheetInterceptorService']=_0x2fafc8,this[_0x2d2297(0x118)]=_0x1c2740,this['_sheetSelectionService']=_0x51e318,this[_0x2d2297(0xa3)]();}[_0x35ea2f(0xa3)](){const _0x46ba74=_0x35ea2f;this[_0x46ba74(0xb0)](this[_0x46ba74(0xa2)][_0x46ba74(0xa6)]({'getMutations':_0x7d64e7=>{const _0x540586=_0x46ba74,_0x2a5f2b=[],_0x17ef8c=[];if(_0x7d64e7['id']===_0x5b1f74['id']){const _0x5d4303=_0x62510f(this[_0x540586(0x118)]);if(!_0x5d4303)return{'redos':_0x2a5f2b,'undos':_0x17ef8c};const {unitId:_0x319c7d,subUnitId:_0x5c85ab,worksheet:_0x4a5ebc}=_0x5d4303,_0x41ea8f=this[_0x540586(0xdd)][_0x540586(0x10c)]()[_0x540586(0x9e)](_0x549337=>_0x549337[_0x540586(0xa8)]),_0x638789=new Set(),_0x5c3ef3={},_0x48bd39={};_0x41ea8f['forEach'](_0x1905bd=>{_0x1e9cd2['foreach'](_0x1905bd,(_0x1c9e9e,_0x1e4c55)=>{const _0x553819=_0x2a86,_0x325403=this['_sparklineDataSourceModel']['getSparkline'](_0x319c7d,_0x5c85ab,_0x1c9e9e,_0x1e4c55);if(_0x325403&&!_0x638789['has'](_0x325403)){const _0xa311d3=this[_0x553819(0xc2)][_0x553819(0xbb)](_0x319c7d,_0x5c85ab,_0x325403);_0xa311d3&&(_0x638789[_0x553819(0x80)](_0x325403),_0x5c3ef3[_0x325403]={'config':_0x4b2a24[_0x553819(0xdc)](_0xa311d3['config']),'sparklines':_0x4b2a24['deepClone'](_0xa311d3[_0x553819(0xd6)][_0x553819(0x9a)]())},_0x48bd39[_0x325403]={'config':_0x4b2a24[_0x553819(0xdc)](_0xa311d3[_0x553819(0x12c)]),'sparklines':_0x4b2a24[_0x553819(0xdc)](_0xa311d3[_0x553819(0xd6)][_0x553819(0x9a)]())});}});}),Object[_0x540586(0xf9)](_0x48bd39)[_0x540586(0x102)](_0x5c06c7=>{const _0x2a9378=_0x540586,_0x31c629=_0x5c06c7[_0x2a9378(0xd6)];new _0x47a2b0(_0x31c629)['forValue']((_0x306399,_0x13827b,_0x55085e)=>{const _0x3506fd=_0x2a9378;_0x41ea8f[_0x3506fd(0xba)](_0x3fae25=>_0x4f0ab2[_0x3506fd(0xfd)](_0x3fae25,_0x154629(_0x306399,_0x13827b)))&&delete _0x31c629[_0x306399][_0x13827b];});}),_0x2a5f2b[_0x540586(0xb1)]({'id':y['id'],'params':{'unitId':_0x319c7d,'subUnitId':_0x5c85ab,'groupIds':Array[_0x540586(0x112)](_0x638789),'isSingle':!0x1}}),_0x2a5f2b[_0x540586(0xb1)]({'id':V['id'],'params':{'unitId':_0x319c7d,'subUnitId':_0x5c85ab,'sparklineConfigMap':_0x48bd39}}),_0x17ef8c[_0x540586(0xb1)]({'id':y['id'],'params':{'unitId':_0x319c7d,'subUnitId':_0x5c85ab,'groupIds':Array[_0x540586(0x112)](_0x638789),'isSingle':!0x1}}),_0x17ef8c[_0x540586(0xb1)]({'id':V['id'],'params':{'unitId':_0x319c7d,'subUnitId':_0x5c85ab,'sparklineConfigMap':_0x5c3ef3}});}return{'redos':_0x2a5f2b,'undos':_0x17ef8c};}}));}};Se=Pt([fe(0x0,_0x135bfa(x)),fe(0x1,_0x135bfa(_0x3b5276)),fe(0x2,_0x135bfa(_0x1bbe0c)),fe(0x3,_0x135bfa(_0xf0320))],Se);var Tt=Object[_0x35ea2f(0xb9)],$t=(_0x338784,_0x5725d2,_0x48fc95,_0x533da2)=>{const _0x401148=_0x35ea2f;for(var _0x13ada3=_0x533da2>0x1?void 0x0:_0x533da2?Tt(_0x5725d2,_0x48fc95):_0x5725d2,_0x150674=_0x338784[_0x401148(0xb7)]-0x1,_0xaae5e3;_0x150674>=0x0;_0x150674--)(_0xaae5e3=_0x338784[_0x150674])&&(_0x13ada3=_0xaae5e3(_0x13ada3)||_0x13ada3);return _0x13ada3;},Ge=(_0x52610a,_0x3ed2a6)=>(_0x204dd2,_0x3dd7b6)=>_0x3ed2a6(_0x204dd2,_0x3dd7b6,_0x52610a);let ke=class extends _0x156591{constructor(_0xba4401,_0x1900a7){const _0x2acc62=_0x35ea2f;super(),this[_0x2acc62(0xa2)]=_0xba4401,this[_0x2acc62(0xc2)]=_0x1900a7,this[_0x2acc62(0x131)]();}[_0x35ea2f(0x131)](){const _0x3f268c=_0x35ea2f;this[_0x3f268c(0xb0)](this[_0x3f268c(0xa2)][_0x3f268c(0xa6)]({'getMutations':_0x4ae87=>{const _0x21354e=_0x3f268c,_0x3d3dca=[],_0x38c281=[];if(_0x4ae87['id']===_0x405c24['id']){const _0x51f03f=_0x4ae87[_0x21354e(0x95)];if(!_0x51f03f)return{'redos':_0x3d3dca,'undos':_0x38c281};const {unitId:_0x824edf,subUnitId:_0xb713c3,targetSubUnitId:_0x5c3bc4}=_0x51f03f;if(!_0x824edf||!_0xb713c3||!_0x5c3bc4)return{'redos':_0x3d3dca,'undos':_0x38c281};const _0x59fb53=new Set(),_0x2a753d={},_0x3439fc=this[_0x21354e(0xc2)][_0x21354e(0x108)](_0x824edf,_0xb713c3);if(!_0x3439fc)return{'redos':_0x3d3dca,'undos':_0x38c281};for(const [_0x2505c6,_0x1384c5]of _0x3439fc){const _0x222fb2='g_'+_0x2dfc1e(0x6);_0x59fb53[_0x21354e(0x80)](_0x2505c6),_0x2a753d[_0x222fb2]={'config':_0x4b2a24[_0x21354e(0xdc)](_0x1384c5[_0x21354e(0x12c)]),'sparklines':_0x4b2a24['deepClone'](_0x1384c5[_0x21354e(0xd6)][_0x21354e(0x9a)]())};}_0x59fb53[_0x21354e(0xca)]&&(_0x38c281[_0x21354e(0xb1)]({'id':y['id'],'params':{'unitId':_0x824edf,'subUnitId':_0x5c3bc4,'groupIds':Array[_0x21354e(0x112)](_0x59fb53),'isSingle':!0x1}}),_0x3d3dca[_0x21354e(0xb1)]({'id':V['id'],'params':{'unitId':_0x824edf,'subUnitId':_0x5c3bc4,'sparklineConfigMap':_0x2a753d}}));}return{'redos':_0x3d3dca,'undos':_0x38c281};}}));}};ke=$t([Ge(0x0,_0x135bfa(_0x3b5276)),Ge(0x1,_0x135bfa(x))],ke);var jt=Object[_0x35ea2f(0xb9)],Lt=(_0x19e8ef,_0x3b25e6,_0x2ed061,_0x32ada9)=>{const _0x8c1380=_0x35ea2f;for(var _0x24fc4c=_0x32ada9>0x1?void 0x0:_0x32ada9?jt(_0x3b25e6,_0x2ed061):_0x3b25e6,_0x1aef4c=_0x19e8ef[_0x8c1380(0xb7)]-0x1,_0x6934e9;_0x1aef4c>=0x0;_0x1aef4c--)(_0x6934e9=_0x19e8ef[_0x1aef4c])&&(_0x24fc4c=_0x6934e9(_0x24fc4c)||_0x24fc4c);return _0x24fc4c;},Ie=(_0x301936,_0x41e598)=>(_0x38ef2d,_0x20068a)=>_0x41e598(_0x38ef2d,_0x20068a,_0x301936);let me=class extends _0x156591{constructor(_0x439f52,_0x5b1cd8,_0x4caacd){const _0x51d6d4=_0x35ea2f;super(),this[_0x51d6d4(0x86)]=_0x439f52,this['_sparklineDataSourceModel']=_0x5b1cd8,this[_0x51d6d4(0xb8)]=_0x4caacd,this[_0x51d6d4(0x130)](),this[_0x51d6d4(0xef)]();}[_0x35ea2f(0x130)](){const _0x3160ba=_0x35ea2f;this[_0x3160ba(0xb0)](this[_0x3160ba(0x86)][_0x3160ba(0xbe)](_0x3361a3=>{const _0x3524b9=_0x3160ba;if(_0x3361a3['id']===_0x31320c['id']){const _0x47c8ea=_0x3361a3['params'],{cellValue:_0xc0c0de,unitId:_0x668a13,subUnitId:_0x5599fa}=_0x47c8ea,_0x5ce0e3=new _0x47a2b0(_0xc0c0de),_0x3d8fb9=new Set(),_0x52e181=this[_0x3524b9(0xc2)][_0x3524b9(0x108)](_0x668a13,_0x5599fa);if(!_0x52e181)return;const _0x1ad2ec=Array['from'](_0x52e181);_0x5ce0e3[_0x3524b9(0xf2)]((_0x3c65ef,_0x37b44c,_0x428098)=>{const _0xcddce1=_0x3524b9,_0x3c8996=_0x154629(_0x3c65ef,_0x37b44c);for(let _0x376b10=0x0;_0x376b10<_0x1ad2ec[_0xcddce1(0xb7)];_0x376b10++){const [_0x400a8e,_0x347135]=_0x1ad2ec[_0x376b10],_0x9630b2=_0x3d8fb9[_0xcddce1(0x7f)](_0x400a8e);_0x9630b2||_0x347135['sparklines'][_0xcddce1(0xf2)]((_0xd97225,_0xdae3e,_0x505d96)=>{const _0xba6422=_0xcddce1,_0x5bc434=_0x505d96;if(_0x5bc434&&!_0x9630b2&&_0x4f0ab2[_0xba6422(0xfd)](_0x3c8996,_0x5bc434))return _0x3d8fb9[_0xba6422(0x80)](_0x400a8e),!0x0;});}}),_0x3d8fb9['forEach'](_0x3ad926=>{const _0x1fb762=_0x3524b9;this[_0x1fb762(0xc2)][_0x1fb762(0x110)](_0x668a13,_0x5599fa,_0x3ad926),this[_0x1fb762(0xc2)][_0x1fb762(0x12f)](_0x668a13,_0x5599fa,_0x3ad926);});}else{if(_0x3361a3['id']===_0x311d01['id']){const _0x1850fc=_0x3361a3[_0x3524b9(0x95)],{range:_0x13aeea,unitId:_0x1b19fd,subUnitId:_0x121c25}=_0x1850fc,_0x45c27a=new Set(),_0x2ec494=this[_0x3524b9(0xc2)][_0x3524b9(0x108)](_0x1b19fd,_0x121c25);if(!_0x2ec494)return;const _0x5c0af9=Array[_0x3524b9(0x112)](_0x2ec494);for(let _0x2d22b0=0x0;_0x2d22b0<_0x5c0af9[_0x3524b9(0xb7)];_0x2d22b0++){const [_0x4a711c,_0x34124c]=_0x5c0af9[_0x2d22b0],_0x2bfe6a=_0x45c27a[_0x3524b9(0x7f)](_0x4a711c);_0x2bfe6a||_0x34124c[_0x3524b9(0xd6)]['forValue']((_0x5b456a,_0x3e29f9,_0x12c236)=>{const _0x41f3d0=_0x3524b9,_0x28cf97=_0x12c236;if(_0x28cf97&&!_0x2bfe6a&&_0x4f0ab2[_0x41f3d0(0xfd)](_0x13aeea,_0x28cf97))return _0x45c27a['add'](_0x4a711c),!0x0;});}_0x45c27a[_0x3524b9(0x102)](_0x502930=>{const _0x4f7bc8=_0x3524b9;this[_0x4f7bc8(0xc2)]['clearSparklineCache'](_0x1b19fd,_0x121c25,_0x502930),this[_0x4f7bc8(0xc2)][_0x4f7bc8(0x12f)](_0x1b19fd,_0x121c25,_0x502930);});}}}));}[_0x35ea2f(0xef)](){const _0x1ed93c=_0x35ea2f;this['disposeWithMe'](this['_exclusiveRangeService'][_0x1ed93c(0x11f)][_0x1ed93c(0xa7)](_0x12d76d=>{const _0x32c967=_0x1ed93c,{unitId:_0x499ee3,subUnitId:_0x488c22,ranges:_0x32da2e}=_0x12d76d,_0x13f466=this['_sparklineDataSourceModel'][_0x32c967(0x108)](_0x499ee3,_0x488c22);if(!_0x13f466)return;const _0x20c38c=Array[_0x32c967(0x112)](_0x13f466),_0x48c3dc=new Set();for(let _0x649b25=0x0;_0x649b25<_0x20c38c[_0x32c967(0xb7)];_0x649b25++){const [_0x22767a,_0x5a3677]=_0x20c38c[_0x649b25],_0x23c988=_0x48c3dc[_0x32c967(0x7f)](_0x22767a);_0x23c988||_0x5a3677['sparklines'][_0x32c967(0xf2)]((_0x4ac5bf,_0x28a504,_0x361654)=>{const _0x522396=_0x32c967,_0x9e283b=_0x361654;if(_0x9e283b&&!_0x23c988){for(const _0x3084f1 of _0x32da2e)if(_0x4f0ab2[_0x522396(0xfd)](_0x3084f1,_0x9e283b)){_0x48c3dc[_0x522396(0x80)](_0x22767a);break;}}});}_0x48c3dc[_0x32c967(0x102)](_0x4b5be7=>{const _0x53d770=_0x32c967;this[_0x53d770(0xc2)]['clearSparklineCache'](_0x499ee3,_0x488c22,_0x4b5be7),this[_0x53d770(0xc2)]['updateSparklineExtraNum'](_0x499ee3,_0x488c22,_0x4b5be7);});}));}};me=Lt([Ie(0x0,_0x135bfa(_0x4ffbf1)),Ie(0x1,_0x135bfa(x)),Ie(0x2,_0x135bfa(_0x5e612a))],me);var Gt=Object['getOwnPropertyDescriptor'],Wt=(_0x353144,_0x4de5a4,_0x453a67,_0x24c7ba)=>{const _0x579e40=_0x35ea2f;for(var _0x20dab8=_0x24c7ba>0x1?void 0x0:_0x24c7ba?Gt(_0x4de5a4,_0x453a67):_0x4de5a4,_0x10d348=_0x353144[_0x579e40(0xb7)]-0x1,_0x234e73;_0x10d348>=0x0;_0x10d348--)(_0x234e73=_0x353144[_0x10d348])&&(_0x20dab8=_0x234e73(_0x20dab8)||_0x20dab8);return _0x20dab8;},We=(_0x30a002,_0x1e0827)=>(_0x103d40,_0x215cd2)=>_0x1e0827(_0x103d40,_0x215cd2,_0x30a002);let Ce=class extends _0x156591{constructor(_0x572858,_0x51982c){const _0x43426b=_0x35ea2f;super(),this[_0x43426b(0x86)]=_0x572858,this[_0x43426b(0xc2)]=_0x51982c,this[_0x43426b(0xcd)]();}[_0x35ea2f(0xcd)](){const _0x1a1fa9=_0x35ea2f;this[_0x1a1fa9(0x86)]['onCommandExecuted'](_0x154da3=>{const _0x30fc65=_0x1a1fa9;if(_0x154da3['id']===_0x2020cb['id']||_0x154da3['id']===_0x443fb0['id']||_0x154da3['id']===_0x1037ab['id']||_0x154da3['id']===_0x8c9899['id']){const _0x339db5=_0x154da3[_0x30fc65(0x95)],{ranges:_0xa8e7c2,unitId:_0x50459a,subUnitId:_0x54815f}=_0x339db5,_0x3862b2=new Set(),_0x57a116=this[_0x30fc65(0xc2)]['getSubUnitSparkline'](_0x50459a,_0x54815f);if(!_0x57a116)return;const _0x150cfd=Array[_0x30fc65(0x112)](_0x57a116);_0xa8e7c2[_0x30fc65(0x102)](_0x37b038=>{const _0x5b9452=_0x30fc65;_0x1e9cd2[_0x5b9452(0xc8)](_0x37b038,(_0x2ba281,_0x1f9784)=>{const _0xc909b4=_0x5b9452,_0x45942e=_0x154629(_0x2ba281,_0x1f9784);for(let _0x36bdf7=0x0;_0x36bdf7<_0x150cfd['length'];_0x36bdf7++){const [_0x57be29,_0x416909]=_0x150cfd[_0x36bdf7],_0xd683ed=_0x3862b2[_0xc909b4(0x7f)](_0x57be29);_0xd683ed||_0x416909['sparklines'][_0xc909b4(0xf2)]((_0x16f48f,_0x3cb7b7,_0xc0fb20)=>{const _0x1aea7f=_0xc909b4,_0x222b19=_0xc0fb20;if(_0x222b19&&!_0xd683ed&&_0x4f0ab2[_0x1aea7f(0xfd)](_0x45942e,_0x222b19))return _0x3862b2[_0x1aea7f(0x80)](_0x57be29),!0x0;});}});}),_0x3862b2['forEach'](_0x32fce9=>{const _0x2fbd75=_0x30fc65;this[_0x2fbd75(0xc2)]['clearSparklineCache'](_0x50459a,_0x54815f,_0x32fce9),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x50459a,_0x54815f,_0x32fce9);});}});}};Ce=Wt([We(0x0,_0x135bfa(_0x4ffbf1)),We(0x1,_0x135bfa(x))],Ce);var Bt=Object[_0x35ea2f(0xb9)],Ht=(_0x45c248,_0x2933f1,_0x31b4d2,_0x1949f7)=>{for(var _0xab0621=_0x1949f7>0x1?void 0x0:_0x1949f7?Bt(_0x2933f1,_0x31b4d2):_0x2933f1,_0x63754c=_0x45c248['length']-0x1,_0x10d674;_0x63754c>=0x0;_0x63754c--)(_0x10d674=_0x45c248[_0x63754c])&&(_0xab0621=_0x10d674(_0xab0621)||_0xab0621);return _0xab0621;},be=(_0x56c4a5,_0x2420da)=>(_0x33e5c1,_0x5b37a1)=>_0x2420da(_0x33e5c1,_0x5b37a1,_0x56c4a5);let _e=class extends _0x156591{constructor(_0x53499b,_0x2f23c8,_0x59f0f3){const _0x55ab6c=_0x35ea2f;super(),this['_commandService']=_0x53499b,this[_0x55ab6c(0xa2)]=_0x2f23c8,this[_0x55ab6c(0xc2)]=_0x59f0f3,this[_0x55ab6c(0xc6)]();}[_0x35ea2f(0xc6)](){const _0x5b9813=_0x35ea2f;this['disposeWithMe'](this[_0x5b9813(0xa2)][_0x5b9813(0xa6)]({'getMutations':_0x4b6199=>{const _0x12fffd=_0x5b9813,_0x4810e2=[],_0x26df96=[];if(_0x4b6199['id']===_0x48b175['id']){const _0x2e1a23=_0x4b6199[_0x12fffd(0x95)];if(!_0x2e1a23)return{'redos':_0x4810e2,'undos':_0x26df96};const {unitId:_0x467e53,subUnitId:_0x1b021c,ranges:_0x24ecbe}=_0x2e1a23,_0x4d8015=this[_0x12fffd(0xc2)][_0x12fffd(0x108)](_0x467e53,_0x1b021c);if(!_0x4d8015)return{'redos':_0x4810e2,'undos':_0x26df96};const _0x5934e6={},_0x18c37a={},_0x226b49=new Set();_0x24ecbe[_0x12fffd(0x102)](_0x33dfec=>{const _0x2cd2e9=_0x12fffd,_0x524a76=_0x33dfec[_0x2cd2e9(0x134)],_0x9befed=_0x33dfec[_0x2cd2e9(0x92)];_0x1e9cd2[_0x2cd2e9(0xc8)](_0x33dfec,(_0x3cb126,_0x67f5a1)=>{const _0x280c52=_0x2cd2e9,_0x13eada=this[_0x280c52(0xc2)]['getSparkline'](_0x467e53,_0x1b021c,_0x3cb126,_0x67f5a1);if(_0x13eada&&!(_0x3cb126===_0x524a76&&_0x67f5a1===_0x9befed)){const _0x33eccd=this[_0x280c52(0xc2)][_0x280c52(0xbb)](_0x467e53,_0x1b021c,_0x13eada);if(_0x33eccd){_0x226b49[_0x280c52(0x80)](_0x13eada);let _0x1057dd=_0x5934e6[_0x13eada];_0x1057dd||(_0x1057dd={'config':_0x4b2a24['deepClone'](_0x33eccd[_0x280c52(0x12c)]),'sparklines':new _0x47a2b0(_0x33eccd[_0x280c52(0xd6)][_0x280c52(0x9a)]())},_0x5934e6[_0x13eada]=_0x1057dd),_0x1057dd[_0x280c52(0xd6)][_0x280c52(0xec)](_0x3cb126,_0x67f5a1),_0x18c37a[_0x13eada]={'config':_0x4b2a24[_0x280c52(0xdc)](_0x33eccd[_0x280c52(0x12c)]),'sparklines':_0x4b2a24[_0x280c52(0xdc)](_0x33eccd[_0x280c52(0xd6)]['clone']())};}}});});for(const [_0x1016a2,_0x4a4f43]of _0x4d8015){const _0x132d44=_0x4a4f43[_0x12fffd(0xd6)];_0x132d44['forValue']((_0x59c92c,_0x2fc3a4,_0x2a53c3)=>{const _0x1ffdb5=_0x12fffd;for(let _0x17b406=0x0;_0x17b406<_0x24ecbe['length'];_0x17b406++){const _0x1ef407=_0x24ecbe[_0x17b406];if(_0x4f0ab2[_0x1ffdb5(0x126)](_0x1ef407,_0x2a53c3)){_0x226b49['add'](_0x1016a2);let _0x5f31a0=_0x5934e6[_0x1016a2];_0x5f31a0||(_0x5f31a0={'config':_0x4b2a24[_0x1ffdb5(0xdc)](_0x4a4f43[_0x1ffdb5(0x12c)]),'sparklines':new _0x47a2b0(_0x132d44[_0x1ffdb5(0x9a)]())},_0x5934e6[_0x1016a2]=_0x5f31a0),_0x5f31a0[_0x1ffdb5(0xd6)][_0x1ffdb5(0xec)](_0x59c92c,_0x2fc3a4),_0x18c37a[_0x1016a2]||(_0x18c37a[_0x1016a2]={'config':_0x4b2a24[_0x1ffdb5(0xdc)](_0x4a4f43[_0x1ffdb5(0x12c)]),'sparklines':_0x4b2a24[_0x1ffdb5(0xdc)](_0x132d44['clone']())});}}});}const _0x27e4f8={};Object[_0x12fffd(0xf5)](_0x5934e6)[_0x12fffd(0x102)](([_0x38f2b0,_0x1e149c])=>{const _0x478973=_0x12fffd;_0x1e149c[_0x478973(0xd6)][_0x478973(0xa4)]()&&(_0x27e4f8[_0x38f2b0]={'config':_0x1e149c[_0x478973(0x12c)],'sparklines':_0x1e149c['sparklines'][_0x478973(0x9a)]()});}),_0x226b49['size']&&(_0x4810e2[_0x12fffd(0xb1)]({'id':y['id'],'params':{'unitId':_0x467e53,'subUnitId':_0x1b021c,'groupIds':Array[_0x12fffd(0x112)](_0x226b49),'isSingle':!0x1}}),_0x26df96['push']({'id':y['id'],'params':{'unitId':_0x467e53,'subUnitId':_0x1b021c,'groupIds':Array['from'](_0x226b49),'isSingle':!0x1}}),_0x4810e2['push']({'id':V['id'],'params':{'unitId':_0x467e53,'subUnitId':_0x1b021c,'sparklineConfigMap':_0x27e4f8}}),_0x26df96[_0x12fffd(0xb1)]({'id':V['id'],'params':{'unitId':_0x467e53,'subUnitId':_0x1b021c,'sparklineConfigMap':_0x18c37a}}));}return{'redos':_0x4810e2,'undos':_0x26df96};}}));}};_e=Ht([be(0x0,_0x135bfa(_0x4ffbf1)),be(0x1,_0x135bfa(_0x3b5276)),be(0x2,_0x135bfa(x))],_e);var Ft=Object[_0x35ea2f(0xb9)],Kt=(_0x2eb1b8,_0x5c9e35,_0x341b3f,_0x3feb8c)=>{const _0x1005e3=_0x35ea2f;for(var _0x2c08ce=_0x3feb8c>0x1?void 0x0:_0x3feb8c?Ft(_0x5c9e35,_0x341b3f):_0x5c9e35,_0x217733=_0x2eb1b8[_0x1005e3(0xb7)]-0x1,_0x42b326;_0x217733>=0x0;_0x217733--)(_0x42b326=_0x2eb1b8[_0x217733])&&(_0x2c08ce=_0x42b326(_0x2c08ce)||_0x2c08ce);return _0x2c08ce;},ge=(_0x52ff37,_0x34d4b8)=>(_0x1d4426,_0x153d10)=>_0x34d4b8(_0x1d4426,_0x153d10,_0x52ff37);let Me=class extends _0x156591{constructor(_0x3cf247,_0x5642e4,_0x294164,_0x1d6197){const _0x38ad15=_0x35ea2f;super(),se(this,_0x38ad15(0xfb),new _0x4615e6()),(this[_0x38ad15(0x86)]=_0x3cf247,this['_refRangeService']=_0x5642e4,this[_0x38ad15(0x118)]=_0x294164,this[_0x38ad15(0xc2)]=_0x1d6197,this[_0x38ad15(0x7e)](),this[_0x38ad15(0x94)]());}[_0x35ea2f(0x7e)](){const _0x161022=_0x35ea2f,_0x5a34d1=(_0x1ed798,_0x237151)=>{const _0x2aca65=_0x2a86,_0x3d7459=this[_0x2aca65(0x118)][_0x2aca65(0xcc)](_0x274be9[_0x2aca65(0x127)]);if(!_0x3d7459||!(_0x3d7459==null?void 0x0:_0x3d7459[_0x2aca65(0x10a)](_0x237151)))return;this[_0x2aca65(0xfb)][_0x2aca65(0x11e)]();const _0xd682be=_0x3b6905=>this[_0x2aca65(0x133)](_0x3b6905,_0x1ed798,_0x237151),_0x11ffd2=[],_0x5ae9c4=this[_0x2aca65(0xc2)][_0x2aca65(0x108)](_0x1ed798,_0x237151);if(_0x5ae9c4){for(const [_0x41c1d5,_0x2aced4]of _0x5ae9c4)_0x2aced4['sparklines']['forValue']((_0x52b153,_0x54471a,_0x53ccd3)=>{const _0x57d7f9=_0x2aca65,_0x1a8370=_0x154629(_0x52b153,_0x54471a);_0x11ffd2[_0x57d7f9(0xb1)](_0x1a8370);});_0x11ffd2[_0x2aca65(0x102)](_0x22f109=>{const _0x4c6568=_0x2aca65;this['disposableCollection'][_0x4c6568(0x80)](this[_0x4c6568(0x87)][_0x4c6568(0xac)](_0x22f109,_0xd682be,_0x1ed798,_0x237151));});}};this[_0x161022(0xb0)](this['_commandService'][_0x161022(0xbe)](_0x572b29=>{const _0x585822=_0x161022;if(_0x572b29['id']===_0x54d236['id']){const _0x250bc2=_0x572b29[_0x585822(0x95)],_0x1ffd2b=_0x250bc2[_0x585822(0xce)],_0x324052=_0x250bc2['unitId'];if(!_0x1ffd2b||!_0x324052)return;_0x5a34d1(_0x324052,_0x1ffd2b);}if(_0x572b29['id']===Oe['id']||_0x572b29['id']===V['id']){const _0x37ca56=_0x572b29[_0x585822(0x95)],_0x3dce30=_0x37ca56[_0x585822(0xce)],_0x3232ad=_0x37ca56[_0x585822(0xa1)];if(!_0x3dce30||!_0x3232ad)return;_0x5a34d1(_0x3232ad,_0x3dce30);}}));}[_0x35ea2f(0x133)](_0x41270b,_0x5f3353,_0x5834ce){const _0x56904e=_0x35ea2f;switch(_0x41270b['id']){case _0x240e06['id']:return this[_0x56904e(0xdf)](_0x41270b[_0x56904e(0x95)],_0x5f3353,_0x5834ce);case _0x5be6c6['id']:return this[_0x56904e(0xc3)](_0x41270b['params'],_0x5f3353,_0x5834ce);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x4edeba,_0x9a41b3,_0x20f54b){const _0x1b2b5c=_0x35ea2f;var _0x2262ce,_0x5d3fbc;const {range:_0x25c78c}=_0x4edeba,_0x5d524e=new Set(),_0x44582b={},_0x44bd88={},_0x824d40=[],_0x4ae2cd=[],_0x42a815=[],_0x21517a=[];if(!_0x62510f(this[_0x1b2b5c(0x118)],{'unitId':_0x9a41b3,'subUnitId':_0x20f54b}))return{'redos':_0x4ae2cd,'undos':_0x824d40};const _0x4b0bd2=this[_0x1b2b5c(0xc2)][_0x1b2b5c(0x108)](_0x9a41b3,_0x20f54b);if(!_0x4b0bd2)return{'redos':_0x4ae2cd,'undos':_0x824d40};if(!((_0x5d3fbc=(_0x2262ce=this[_0x1b2b5c(0xc2)]['getSparklineCache']()[_0x1b2b5c(0xe7)][_0x1b2b5c(0x91)](_0x9a41b3))==null?void 0x0:_0x2262ce[_0x1b2b5c(0x91)](_0x20f54b))==null?void 0x0:_0x5d3fbc[_0x1b2b5c(0xee)]))return{'redos':_0x4ae2cd,'undos':_0x824d40};for(const [_0x3edcf4,_0x5e0a72]of _0x4b0bd2){const _0x5248d7=_0x5e0a72[_0x1b2b5c(0xd6)];_0x5248d7[_0x1b2b5c(0xf2)]((_0x4688e7,_0x30f77d,_0xa382c)=>{const _0x2f29cd=_0x1b2b5c;if(_0x4f0ab2['intersects'](_0x25c78c,_0xa382c)){_0x5d524e[_0x2f29cd(0x80)](_0x3edcf4);let _0x66743c=_0x44bd88[_0x3edcf4];_0x66743c||(_0x66743c={'config':_0x5e0a72[_0x2f29cd(0x12c)],'sparklines':_0x5e0a72[_0x2f29cd(0xd6)]['clone']()},_0x44bd88[_0x3edcf4]=_0x66743c);let _0x296f93=_0x44582b[_0x3edcf4];_0x296f93||(_0x296f93={'config':_0x5e0a72['config'],'sparklines':new _0x47a2b0(_0x5e0a72[_0x2f29cd(0xd6)][_0x2f29cd(0x9a)]())},_0x44582b[_0x3edcf4]=_0x296f93);const _0x5847e0=_0x33f92f(_0xa382c,{'id':_0x17705c['id'],'params':_0x4edeba});_0x5847e0?_0x296f93['sparklines']['setValue'](_0x4688e7,_0x30f77d,_0x5847e0):_0x296f93[_0x2f29cd(0xd6)][_0x2f29cd(0x104)](_0x4688e7,_0x30f77d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a[_0x2f29cd(0xf3)]});}}),_0x5248d7['forValue']((_0x7e0b02,_0x4c159b,_0x16b67d)=>{const _0x4d9479=_0x1b2b5c;if(_0x7e0b02<=_0x25c78c[_0x4d9479(0x9f)]&&_0x7e0b02>=_0x25c78c[_0x4d9479(0x134)]){_0x5d524e[_0x4d9479(0x80)](_0x3edcf4);let _0x11f287=_0x44bd88[_0x3edcf4];_0x11f287||(_0x11f287={'config':_0x5e0a72[_0x4d9479(0x12c)],'sparklines':_0x5e0a72[_0x4d9479(0xd6)]['clone']()},_0x44bd88[_0x3edcf4]=_0x11f287);let _0x5569ac=_0x44582b[_0x3edcf4];_0x5569ac||(_0x5569ac={'config':_0x5e0a72[_0x4d9479(0x12c)],'sparklines':new _0x47a2b0(_0x5e0a72[_0x4d9479(0xd6)][_0x4d9479(0x9a)]())},_0x44582b[_0x3edcf4]=_0x5569ac);}});}_0x21517a[_0x1b2b5c(0xb1)]({'id':y['id'],'params':{'unitId':_0x9a41b3,'subUnitId':_0x20f54b,'groupIds':Array[_0x1b2b5c(0x112)](_0x5d524e),'isSingle':!0x1}}),_0x42a815[_0x1b2b5c(0xb1)]({'id':y['id'],'params':{'unitId':_0x9a41b3,'subUnitId':_0x20f54b,'groupIds':Array[_0x1b2b5c(0x112)](_0x5d524e),'isSingle':!0x1}});const _0x3e2657={};let _0x433523=!0x1;return Object[_0x1b2b5c(0xf5)](_0x44582b)['forEach'](([_0xa59ac1,_0x100ed1])=>{const _0x179e9f=_0x1b2b5c;_0x100ed1[_0x179e9f(0xd6)][_0x179e9f(0xa4)]()&&(_0x433523=!0x0,_0x100ed1[_0x179e9f(0xd6)]['removeRows'](_0x25c78c[_0x179e9f(0x134)],_0x25c78c[_0x179e9f(0x9f)]-_0x25c78c[_0x179e9f(0x134)]+0x1),_0x3e2657[_0xa59ac1]={'config':_0x100ed1[_0x179e9f(0x12c)],'sparklines':_0x100ed1[_0x179e9f(0xd6)][_0x179e9f(0x9a)]()});}),_0x433523&&_0x4ae2cd[_0x1b2b5c(0xb1)]({'id':V['id'],'params':{'unitId':_0x9a41b3,'subUnitId':_0x20f54b,'sparklineConfigMap':_0x3e2657}}),_0x824d40[_0x1b2b5c(0xb1)]({'id':V['id'],'params':{'unitId':_0x9a41b3,'subUnitId':_0x20f54b,'sparklineConfigMap':_0x44bd88}}),{'redos':_0x4ae2cd,'undos':_0x824d40,'preRedos':_0x42a815,'preUndos':_0x21517a};}[_0x35ea2f(0xdf)](_0x56955b,_0x2a0672,_0x40c4bd){const _0xccab35=_0x35ea2f;var _0x1b14c4,_0x567c26;const {range:_0x10df63}=_0x56955b,_0x2e1a24=new Set(),_0x5f4305={},_0x1b4a8c={},_0x23791d=[],_0x3e1817=[],_0x14c188=[],_0x3737c5=[];if(!_0x62510f(this['_univerInstanceService'],{'unitId':_0x2a0672,'subUnitId':_0x40c4bd}))return{'redos':_0x3e1817,'undos':_0x23791d};const _0xa074aa=this[_0xccab35(0xc2)]['getSubUnitSparkline'](_0x2a0672,_0x40c4bd);if(!_0xa074aa)return{'redos':_0x3e1817,'undos':_0x23791d};if(!((_0x567c26=(_0x1b14c4=this['_sparklineDataSourceModel'][_0xccab35(0x90)]()['sparklineAnchorMap']['get'](_0x2a0672))==null?void 0x0:_0x1b14c4['get'](_0x40c4bd))==null?void 0x0:_0x567c26[_0xccab35(0xee)]))return{'redos':_0x3e1817,'undos':_0x23791d};for(const [_0x4006e0,_0x1350e9]of _0xa074aa){const _0x1a525b=_0x1350e9[_0xccab35(0xd6)];_0x1a525b['forValue']((_0x2f7154,_0x283eb2,_0x597cae)=>{const _0x1d5721=_0xccab35;if(_0x4f0ab2[_0x1d5721(0xfd)](_0x10df63,_0x597cae)){_0x2e1a24[_0x1d5721(0x80)](_0x4006e0);let _0xdab847=_0x1b4a8c[_0x4006e0];_0xdab847||(_0xdab847={'config':_0x1350e9[_0x1d5721(0x12c)],'sparklines':_0x1350e9[_0x1d5721(0xd6)][_0x1d5721(0x9a)]()},_0x1b4a8c[_0x4006e0]=_0xdab847);let _0x2f5d4b=_0x5f4305[_0x4006e0];_0x2f5d4b||(_0x2f5d4b={'config':_0x1350e9[_0x1d5721(0x12c)],'sparklines':new _0x47a2b0(_0x1350e9[_0x1d5721(0xd6)][_0x1d5721(0x9a)]())},_0x5f4305[_0x4006e0]=_0x2f5d4b);const _0x277a3b=_0x33f92f(_0x597cae,{'id':_0x26e302['id'],'params':_0x56955b});_0x277a3b?_0x2f5d4b['sparklines']['setValue'](_0x2f7154,_0x283eb2,_0x277a3b):_0x2f5d4b[_0x1d5721(0xd6)]['setValue'](_0x2f7154,_0x283eb2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a['NORMAL']});}}),_0x1a525b[_0xccab35(0xf2)]((_0x269271,_0x3d1db0,_0x1badfb)=>{const _0x374d92=_0xccab35;if(_0x3d1db0<=_0x10df63['endColumn']&&_0x3d1db0>=_0x10df63[_0x374d92(0x92)]){_0x2e1a24[_0x374d92(0x80)](_0x4006e0);let _0xc26da7=_0x1b4a8c[_0x4006e0];_0xc26da7||(_0xc26da7={'config':_0x1350e9[_0x374d92(0x12c)],'sparklines':_0x1350e9['sparklines']['clone']()},_0x1b4a8c[_0x4006e0]=_0xc26da7);let _0x2d8099=_0x5f4305[_0x4006e0];_0x2d8099||(_0x2d8099={'config':_0x1350e9[_0x374d92(0x12c)],'sparklines':new _0x47a2b0(_0x1350e9[_0x374d92(0xd6)]['clone']())},_0x5f4305[_0x4006e0]=_0x2d8099);}});}_0x3737c5[_0xccab35(0xb1)]({'id':y['id'],'params':{'unitId':_0x2a0672,'subUnitId':_0x40c4bd,'groupIds':Array['from'](_0x2e1a24),'isSingle':!0x1}}),_0x14c188[_0xccab35(0xb1)]({'id':y['id'],'params':{'unitId':_0x2a0672,'subUnitId':_0x40c4bd,'groupIds':Array[_0xccab35(0x112)](_0x2e1a24),'isSingle':!0x1}});const _0x3adfcc={};let _0x5c3e88=!0x1;return Object[_0xccab35(0xf5)](_0x5f4305)[_0xccab35(0x102)](([_0x25bd50,_0x49b821])=>{const _0x39db13=_0xccab35;_0x49b821[_0x39db13(0xd6)]['getSizeOf']()&&(_0x5c3e88=!0x0,_0x49b821[_0x39db13(0xd6)][_0x39db13(0x136)](_0x10df63[_0x39db13(0x92)],_0x10df63[_0x39db13(0xea)]-_0x10df63[_0x39db13(0x92)]+0x1),_0x3adfcc[_0x25bd50]={'config':_0x49b821['config'],'sparklines':_0x49b821[_0x39db13(0xd6)][_0x39db13(0x9a)]()});}),_0x5c3e88&&_0x3e1817[_0xccab35(0xb1)]({'id':V['id'],'params':{'unitId':_0x2a0672,'subUnitId':_0x40c4bd,'sparklineConfigMap':_0x3adfcc}}),_0x23791d[_0xccab35(0xb1)]({'id':V['id'],'params':{'unitId':_0x2a0672,'subUnitId':_0x40c4bd,'sparklineConfigMap':_0x1b4a8c}}),{'redos':_0x3e1817,'undos':_0x23791d,'preRedos':_0x14c188,'preUndos':_0x3737c5};}['_initCorrectRangeWithSparkline'](){const _0x1b22cc=_0x35ea2f;this[_0x1b22cc(0xb0)](this[_0x1b22cc(0x86)][_0x1b22cc(0xbe)](_0x45df00=>{const _0x8c0372=_0x1b22cc;if(_0x45df00['id']===_0x2fa1e4['id']){const _0x161500=_0x45df00[_0x8c0372(0x95)],{unitId:_0x23e545,subUnitId:_0x1261f2,range:_0x1f41c8}=_0x161500,_0x26bdc8=_0x1f41c8[_0x8c0372(0x92)],_0x48f85e=_0x1f41c8[_0x8c0372(0xea)]-_0x1f41c8[_0x8c0372(0x92)]+0x1,_0x4f1373=this[_0x8c0372(0xc2)]['getSubUnitSparkline'](_0x23e545,_0x1261f2);if(!_0x4f1373)return;for(const [_0xa22d4,_0x2fe909]of _0x4f1373){this[_0x8c0372(0xc2)][_0x8c0372(0x110)](_0x23e545,_0x1261f2,_0xa22d4);const _0x109c00=_0x2fe909[_0x8c0372(0xd6)];_0x109c00[_0x8c0372(0xf2)]((_0x568533,_0x3f9c31,_0x383073)=>{const _0xe2abf6=_0x8c0372,_0x585b95={..._0x383073};_0x26bdc8<=_0x585b95[_0xe2abf6(0x92)]?(_0x585b95['startColumn']+=_0x48f85e,_0x585b95['endColumn']+=_0x48f85e):_0x26bdc8>_0x585b95[_0xe2abf6(0xea)]||(_0x585b95[_0xe2abf6(0xea)]+=_0x48f85e),_0x109c00[_0xe2abf6(0x104)](_0x568533,_0x3f9c31,_0x585b95);});const _0x1ca42c=_0x109c00[_0x8c0372(0xd0)]();for(const _0x1aea54 in _0x1ca42c){const _0x220005=_0x1ca42c[Number(_0x1aea54)];if(!_0x220005)continue;const _0x58aae7=Object[_0x8c0372(0xe3)](_0x220005)[_0x8c0372(0x9e)](Number),_0x3b5fa1=Math['max'](..._0x58aae7);for(let _0x4752f7=_0x3b5fa1;_0x4752f7>=_0x26bdc8;_0x4752f7--)_0x4752f7>=_0x26bdc8&&_0x220005[_0x4752f7]&&(_0x220005[_0x4752f7+_0x48f85e]=_0x220005[_0x4752f7],delete _0x220005[_0x4752f7]);}this[_0x8c0372(0xc2)][_0x8c0372(0x12f)](_0x23e545,_0x1261f2,_0xa22d4);}}else{if(_0x45df00['id']===_0xafc4db['id']){const _0x250659=_0x45df00['params'],{unitId:_0x370754,subUnitId:_0x1d09e9,range:_0x65787c}=_0x250659,_0x3faff6=_0x65787c['startRow'],_0x3c218e=_0x65787c[_0x8c0372(0x9f)]-_0x65787c[_0x8c0372(0x134)]+0x1,_0xd49096=this[_0x8c0372(0xc2)]['getSubUnitSparkline'](_0x370754,_0x1d09e9);if(!_0xd49096)return;for(const [_0x8c9712,_0x26172a]of _0xd49096){this[_0x8c0372(0xc2)]['clearSparklineCache'](_0x370754,_0x1d09e9,_0x8c9712);const _0xdb6b6a=_0x26172a[_0x8c0372(0xd6)];_0xdb6b6a[_0x8c0372(0xf2)]((_0x312b9b,_0x2b9244,_0x326c8d)=>{const _0x38840b=_0x8c0372,_0x5206cb={..._0x326c8d};_0x3faff6<=_0x5206cb[_0x38840b(0x134)]?(_0x5206cb[_0x38840b(0x134)]+=_0x3c218e,_0x5206cb[_0x38840b(0x9f)]+=_0x3c218e):_0x3faff6>_0x5206cb[_0x38840b(0x9f)]||(_0x5206cb['endRow']+=_0x3c218e),_0xdb6b6a['setValue'](_0x312b9b,_0x2b9244,_0x5206cb);});const _0xbd4120=_0xdb6b6a['getMatrix'](),_0x1a967f=Object[_0x8c0372(0xe3)](_0xbd4120)[_0x8c0372(0x9e)](Number),_0x5daa4b=Math[_0x8c0372(0x124)](..._0x1a967f);for(let _0x2f4355=_0x5daa4b;_0x2f4355>=_0x3faff6;_0x2f4355--)_0x2f4355>=_0x3faff6&&_0xbd4120[_0x2f4355]&&(_0xbd4120[_0x2f4355+_0x3c218e]=_0xbd4120[_0x2f4355],delete _0xbd4120[_0x2f4355]);this[_0x8c0372(0xc2)][_0x8c0372(0x12f)](_0x370754,_0x1d09e9,_0x8c9712);}}else{if(_0x45df00['id']===_0x26e302['id']){const _0x238bdf=_0x45df00['params'],{range:_0x31f0e7,unitId:_0x1f9aea,subUnitId:_0x52876a}=_0x238bdf,_0x4a49d3=this[_0x8c0372(0xc2)][_0x8c0372(0x108)](_0x1f9aea,_0x52876a);if(!_0x4a49d3)return;for(const [_0x19b2da,_0xd682b0]of _0x4a49d3){const _0x44e789=_0xd682b0[_0x8c0372(0xd6)];_0x44e789[_0x8c0372(0xf2)]((_0x582eb2,_0x26a3f8,_0xe194c2)=>{const _0x222252=_0x8c0372,_0x1639ef=_0x33f92f(_0xe194c2,_0x45df00);_0x1639ef?_0x44e789[_0x222252(0x104)](_0x582eb2,_0x26a3f8,_0x1639ef):_0x44e789[_0x222252(0x104)](_0x582eb2,_0x26a3f8,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a['NORMAL']});}),_0x44e789[_0x8c0372(0x136)](_0x31f0e7[_0x8c0372(0x92)],_0x31f0e7['endColumn']-_0x31f0e7[_0x8c0372(0x92)]+0x1);}this[_0x8c0372(0xc2)][_0x8c0372(0xab)](_0x1f9aea,_0x52876a);}else{if(_0x45df00['id']===_0x17705c['id']){const _0x556a0c=_0x45df00[_0x8c0372(0x95)],{range:_0x444680,unitId:_0x337e87,subUnitId:_0x7e26c5}=_0x556a0c,_0x1e1b7f=this[_0x8c0372(0xc2)][_0x8c0372(0x108)](_0x337e87,_0x7e26c5);if(!_0x1e1b7f)return;for(const [_0x14782a,_0x14fee3]of _0x1e1b7f){const _0x4aaa4b=_0x14fee3[_0x8c0372(0xd6)];_0x4aaa4b['forValue']((_0x535965,_0x5529d6,_0xa8af70)=>{const _0x5aa0ce=_0x8c0372,_0x13e2fe=_0x33f92f(_0xa8af70,_0x45df00);_0x13e2fe?_0x4aaa4b[_0x5aa0ce(0x104)](_0x535965,_0x5529d6,_0x13e2fe):_0x4aaa4b['setValue'](_0x535965,_0x5529d6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a[_0x5aa0ce(0xf3)]});}),_0x4aaa4b['removeRows'](_0x444680[_0x8c0372(0x134)],_0x444680[_0x8c0372(0x9f)]-_0x444680[_0x8c0372(0x134)]+0x1);}this['_sparklineDataSourceModel'][_0x8c0372(0xab)](_0x337e87,_0x7e26c5);}else{if(_0x45df00['id']===_0x40f5ce['id']){const _0xfce5ae=_0x45df00[_0x8c0372(0x95)],{unitId:_0xea86ad,subUnitId:_0x85e7f7,sourceRange:_0x2fe63e,targetRange:_0x7c90cb}=_0xfce5ae,_0x60ce18=this[_0x8c0372(0xc2)][_0x8c0372(0x108)](_0xea86ad,_0x85e7f7);if(!_0x60ce18)return;for(const [_0x2240b3,_0x1d5131]of _0x60ce18){const _0x1b74ab=_0x1d5131[_0x8c0372(0xd6)];_0x1b74ab[_0x8c0372(0xf2)]((_0x199081,_0x1e051b,_0x586706)=>{const _0x498ab6=_0x8c0372,_0x28ee9c=_0x33f92f(_0x586706,_0x45df00);_0x28ee9c?_0x1b74ab[_0x498ab6(0x104)](_0x199081,_0x1e051b,_0x28ee9c):_0x1b74ab[_0x498ab6(0x104)](_0x199081,_0x1e051b,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a[_0x498ab6(0xf3)]});}),_0x1b74ab[_0x8c0372(0x12a)](_0x2fe63e[_0x8c0372(0x92)],_0x2fe63e['endColumn']-_0x2fe63e['startColumn']+0x1,_0x7c90cb['startColumn']);}this[_0x8c0372(0xc2)]['reBuildAnchorCache'](_0xea86ad,_0x85e7f7);}else{if(_0x45df00['id']===_0xeeb6ef['id']){const _0x5b292a=_0x45df00[_0x8c0372(0x95)],{unitId:_0x31cfde,subUnitId:_0x244dc1,sourceRange:_0x18f9c7,targetRange:_0x5721db}=_0x5b292a,_0x1e4a33=this[_0x8c0372(0xc2)][_0x8c0372(0x108)](_0x31cfde,_0x244dc1);if(!_0x1e4a33)return;for(const [_0x17b259,_0x4829b9]of _0x1e4a33){const _0x4c4f60=_0x4829b9['sparklines'];_0x4c4f60[_0x8c0372(0xf2)]((_0x5af95c,_0x56f807,_0xcb92c7)=>{const _0x29b172=_0x8c0372,_0x4bf160=_0x33f92f(_0xcb92c7,_0x45df00);_0x4bf160?_0x4c4f60[_0x29b172(0x104)](_0x5af95c,_0x56f807,_0x4bf160):_0x4c4f60[_0x29b172(0x104)](_0x5af95c,_0x56f807,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x56c97a[_0x29b172(0xf3)]});}),_0x4c4f60[_0x8c0372(0xc5)](_0x18f9c7['startRow'],_0x18f9c7[_0x8c0372(0x9f)]-_0x18f9c7[_0x8c0372(0x134)]+0x1,_0x5721db[_0x8c0372(0x134)]);}this[_0x8c0372(0xc2)]['reBuildAnchorCache'](_0x31cfde,_0x244dc1);}else{if(_0x45df00['id']===_0x3be800['id']){const _0x4f7e7b=_0x45df00[_0x8c0372(0x95)],{fromRange:_0x390ae1,toRange:_0x1596f1,unitId:_0x6ac83,from:_0x18a539,to:_0x4bfe1c}=_0x4f7e7b;if(_0x18a539[_0x8c0372(0xce)]!==_0x4bfe1c[_0x8c0372(0xce)])return;const _0x1b3b84=_0x18a539[_0x8c0372(0xce)],{startRow:_0x1085ba,endRow:_0x1dbae0,startColumn:_0x5a6858,endColumn:_0x18ad6d}=_0x390ae1,{startRow:_0x338e19,startColumn:_0x454718}=_0x1596f1,_0x59a79e=_0x338e19-_0x1085ba,_0x46b49c=_0x454718-_0x5a6858,_0x3b7635=this[_0x8c0372(0xc2)][_0x8c0372(0x108)](_0x6ac83,_0x1b3b84);if(!(_0x3b7635!=null&&_0x3b7635[_0x8c0372(0xca)]))return;for(let _0x4626ae=_0x1085ba;_0x4626ae<=_0x1dbae0;_0x4626ae++)for(let _0x38d26f=_0x5a6858;_0x38d26f<=_0x18ad6d;_0x38d26f++){const _0x5ebf07=this[_0x8c0372(0xc2)][_0x8c0372(0x89)](_0x6ac83,_0x1b3b84,_0x4626ae,_0x38d26f);if(_0x5ebf07){const _0x1a11f9=this[_0x8c0372(0xc2)][_0x8c0372(0xbb)](_0x6ac83,_0x1b3b84,_0x5ebf07);if(_0x1a11f9){const _0x3f7628=_0x1a11f9[_0x8c0372(0xd6)][_0x8c0372(0x8b)](_0x4626ae,_0x38d26f);_0x3f7628&&(_0x1a11f9['sparklines']['setValue'](_0x4626ae+_0x59a79e,_0x38d26f+_0x46b49c,_0x3f7628),_0x1a11f9[_0x8c0372(0xd6)][_0x8c0372(0xec)](_0x4626ae,_0x38d26f));}}}for(const [_0x34393f,_0x47ccf6]of _0x3b7635){const _0x4c780a=_0x47ccf6[_0x8c0372(0xd6)];_0x4c780a['forValue']((_0x3f4174,_0x593096,_0x3d3e9a)=>{const _0x5a2618=_0x8c0372,_0x1ea17a={..._0x3d3e9a};_0x4f0ab2[_0x5a2618(0x126)](_0x390ae1,_0x3d3e9a)&&(_0x1ea17a[_0x5a2618(0x134)]+=_0x59a79e,_0x1ea17a[_0x5a2618(0x9f)]+=_0x59a79e,_0x1ea17a[_0x5a2618(0x92)]+=_0x46b49c,_0x1ea17a['endColumn']+=_0x46b49c),_0x4c780a[_0x5a2618(0x104)](_0x3f4174,_0x593096,_0x1ea17a);});}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x6ac83,_0x1b3b84);}}}}}}}}));}};Me=Kt([ge(0x0,_0x135bfa(_0x4ffbf1)),ge(0x1,_0x135bfa(_0x11e82c)),ge(0x2,_0x1bbe0c),ge(0x3,_0x135bfa(x))],Me);var Xt=Object[_0x35ea2f(0xb9)],zt=(_0xa4eade,_0x497dcf,_0xbee782,_0x8581d5)=>{const _0x105503=_0x35ea2f;for(var _0x180b08=_0x8581d5>0x1?void 0x0:_0x8581d5?Xt(_0x497dcf,_0xbee782):_0x497dcf,_0x1b6678=_0xa4eade[_0x105503(0xb7)]-0x1,_0x473b20;_0x1b6678>=0x0;_0x1b6678--)(_0x473b20=_0xa4eade[_0x1b6678])&&(_0x180b08=_0x473b20(_0x180b08)||_0x180b08);return _0x180b08;},Be=(_0x265723,_0x4b7574)=>(_0x4cdf59,_0x310778)=>_0x4b7574(_0x4cdf59,_0x310778,_0x265723);function _0x4901(){const _0x512c68=['rgb(124,66,147)','highPoint','reBuildAnchorCache','registerRefRange','standard','ranges','MAX_SAFE_INTEGER','disposeWithMe','push','sheet.command.set-sparkline','toRgbString','registerCommand','parse','setSparkline','length','_exclusiveRangeService','getOwnPropertyDescriptor','some','getSparklineById','extremumMax','delete','onCommandExecuted','zero_value','_config','rgb(54,78,244)','_sparklineDataSourceModel','_getRefRangeMutationsByDeleteRows','1471240oHhnvG','moveRows','_initMergeWithSparkline','ZERO_VALUE','foreach','BAR_CHART','size','getCell','getCurrentUnitForType','_initHideRowColWithSparkline','subUnitId','rgb(49,106,246)','getMatrix','min','lowPoint','rgb(236,100,169)','_sparklineAnchorMap','registerPluginResource','sparklines','sheet.mutation.set-sparkline','seriesColor','200910QyNmeU','pluginName','1588030ciDLEk','deepClone','_sheetSelectionService','NUMBER','_getRefRangeMutationsByDeleteCols','_resourceManagerService','getColVisible','item','keys','SPECIALTY','pushUndoRedo','CUSTOM','sparklineAnchorMap','LINE_CHART','removePartSparkline','endColumn','PROFIT_AND_LOSS_CHART','realDeleteValue','deleteUnit','matrix','_initExclusiveRangeChange','u-connect','asObservable','forValue','NORMAL','hasValue','entries','assign','groupId','85XgxIQn','values','addSparkline','disposableCollection','updateConfig$','intersects','CONNECT_WITH_LINE','number','value','MIN_SAFE_INTEGER','forEach','fromJSON','setValue','PIE_CHART','_initDependencies','SHEET_SPARKLINE_PLUGIN','getSubUnitSparkline','themeType','getSheetBySheetId','specialty','getCurrentSelections','SPACING','negativePoint','rgb(80,102,248)','clearSparklineCache','fresh','from','_ensureAnchorMatrix','_sparklineModel','soft','remove','onReady','_univerInstanceService','SELF_EXTREMUM','column','_injector','rgb(244,104,249)','_initRegisterCommand','dispose','exclusiveRangesChange$','5777706PQVbqX','sheet.command.add-sparkline','connect_with_line','type','max','setAlpha','contains','UNIVER_SHEET','STRING','lastPoint','moveColumns','350452jHxLtG','config','13369872bEMXVE','rgb(248,190,21)','updateSparklineExtraNum','_initDataChangeListener','_initCopySheetWithSparkline','getCellRaw','refRangeHandle','startRow','_updateConfig$','removeColumns','_initSnapshot','stringify','u-spacing','SOFT','6982367aYoFaG','_onRefRangeChange','has','add','_ensureConfigMap','FORCE_STRING','changeDataSourceInfo','toJSON','custom','_commandService','_refRangeService','GROUP_EXTREMUM','getSparkline','next','getValue','set','firstPoint','sparklineModel','removeSparkline','getSparklineCache','get','startColumn','COMMAND','_initCorrectRangeWithSparkline','params','getRowVisible','defineProperty','STANDARD','every','clone','FRESH','CUSTOM_EXTREMUM','row','map','endRow','actualRow','unitId','_sheetInterceptorService','_initClearWithSparkline','getSizeOf','MUTATION','interceptCommand','subscribe','range'];_0x4901=function(){return _0x512c68;};return _0x4901();}let Re=class extends _0x156591{constructor(_0x46f0ae,_0xc19732){const _0x22e5d6=_0x35ea2f;super(),this[_0x22e5d6(0xe0)]=_0x46f0ae,this[_0x22e5d6(0xc2)]=_0xc19732,this[_0x22e5d6(0x137)]();}[_0x35ea2f(0x137)](){const _0x3578d9=_0x35ea2f,_0x1cef5d=_0x34018c=>{const _0x41801d=_0x2a86,_0x369e33=this['_sparklineDataSourceModel'][_0x41801d(0x84)](_0x34018c);return _0x369e33?JSON[_0x41801d(0x138)](_0x369e33):'';},_0x3449b1=_0x1ada57=>_0x1ada57?JSON[_0x3578d9(0xb5)](_0x1ada57):{};this['disposeWithMe'](this[_0x3578d9(0xe0)][_0x3578d9(0xd5)]({'toJson':_0x1cef5d,'parseJson':_0x3449b1,'pluginName':Ke,'businesses':[_0x274be9['UNIVER_SHEET']],'onLoad':(_0x4272f4,_0x19fd3b)=>{const _0x1f6590=_0x3578d9;this[_0x1f6590(0xc2)][_0x1f6590(0x103)](_0x19fd3b);},'onUnLoad':_0x222677=>{const _0x1b09f1=_0x3578d9;this[_0x1b09f1(0xc2)][_0x1b09f1(0xed)](_0x222677);}}));}};Re=zt([Be(0x0,_0x135bfa(_0x4bb0b1)),Be(0x1,_0x135bfa(x))],Re);var Jt=Object[_0x35ea2f(0x97)],Zt=Object['getOwnPropertyDescriptor'],Yt=(_0x48003e,_0x32aec6,_0x1d4981)=>_0x32aec6 in _0x48003e?Jt(_0x48003e,_0x32aec6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d4981}):_0x48003e[_0x32aec6]=_0x1d4981,qt=(_0x2f8e71,_0x2c1287,_0x2916ac,_0xad3620)=>{const _0x32d85a=_0x35ea2f;for(var _0xdc4788=_0xad3620>0x1?void 0x0:_0xad3620?Zt(_0x2c1287,_0x2916ac):_0x2c1287,_0x349468=_0x2f8e71[_0x32d85a(0xb7)]-0x1,_0x8dddbb;_0x349468>=0x0;_0x349468--)(_0x8dddbb=_0x2f8e71[_0x349468])&&(_0xdc4788=_0x8dddbb(_0xdc4788)||_0xdc4788);return _0xdc4788;},He=(_0x156321,_0x473b30)=>(_0x3ee089,_0x12b2d1)=>_0x473b30(_0x3ee089,_0x12b2d1,_0x156321),ze=(_0xbb64e2,_0x2d8bd8,_0x105807)=>Yt(_0xbb64e2,typeof _0x2d8bd8!='symbol'?_0x2d8bd8+'':_0x2d8bd8,_0x105807);let ve=class extends _0x2e0279{constructor(_0x233e47={},_0x1ea932,_0x2d1935){const _0x8e1ec3=_0x35ea2f;super(),this[_0x8e1ec3(0xc0)]=_0x233e47,this['_injector']=_0x1ea932,this[_0x8e1ec3(0x86)]=_0x2d1935,this[_0x8e1ec3(0x106)](),this[_0x8e1ec3(0x11d)]();}['_initDependencies'](){const _0x499033=_0x35ea2f;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x499033(0x102)](_0x324d22=>{const _0x2fcbbc=_0x499033;this[_0x2fcbbc(0x11b)][_0x2fcbbc(0x80)](_0x324d22);}),_0xa9dfd6(this['_injector'],[[Re]]);}[_0x35ea2f(0x117)](){const _0x323220=_0x35ea2f;_0xa9dfd6(this[_0x323220(0x11b)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x35ea2f(0x11d)](){const _0x11e817=_0x35ea2f;[Nt,V,Ot,y,xt,Oe]['forEach'](_0x2f0a89=>this[_0x11e817(0x86)][_0x11e817(0xb4)](_0x2f0a89));}};ze(ve,_0x35ea2f(0xda),Ke),ze(ve,_0x35ea2f(0x123),_0x274be9[_0x35ea2f(0x127)]),ve=qt([_0x17c2ea(_0x1fac49),He(0x1,_0x135bfa(_0x38047b)),He(0x2,_0x135bfa(_0x4ffbf1))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xac43(_0x157e09,_0x39a4de){const _0x4b8dd7=_0x4b8d();return _0xac43=function(_0xac4329,_0x1d4485){_0xac4329=_0xac4329-0x19b;let _0x4d600e=_0x4b8dd7[_0xac4329];return _0x4d600e;},_0xac43(_0x157e09,_0x39a4de);}const _0x1b4e45=_0xac43;(function(_0x4e6995,_0x717bf){const _0x7b3457=_0xac43,_0x46497a=_0x4e6995();while(!![]){try{const _0x26de4f=-parseInt(_0x7b3457(0x19e))/0x1+-parseInt(_0x7b3457(0x1bb))/0x2*(parseInt(_0x7b3457(0x1da))/0x3)+parseInt(_0x7b3457(0x1d8))/0x4+-parseInt(_0x7b3457(0x1a2))/0x5*(-parseInt(_0x7b3457(0x1c1))/0x6)+parseInt(_0x7b3457(0x1ac))/0x7+-parseInt(_0x7b3457(0x1a9))/0x8+-parseInt(_0x7b3457(0x1d0))/0x9*(-parseInt(_0x7b3457(0x1af))/0xa);if(_0x26de4f===_0x717bf)break;else _0x46497a['push'](_0x46497a['shift']());}catch(_0x6ec95d){_0x46497a['push'](_0x46497a['shift']());}}}(_0x4b8d,0x3b7c9));import{SparklineDataSourceModel as _0x2294d9,SetSheetSparklineCommand as _0x541c1d,RemoveSheetSparklineCommand as _0x1f4bf8,AddSheetSparklineCommand as _0x4ad3b5,SparklineTypeEnum as _0x8877f5}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x26dc67,Injector as _0x941f6,ICommandService as _0x25c8ab,Tools as _0x52a681}from'@univerjs/core';import{FWorksheet as _0x39a11c}from'@univerjs/sheets/facade';import{FEnum as _0x519b8d,FEventName as _0x4fba75,FUniver as _0x3345ff}from'@univerjs/core/facade';function _0x4b8d(){const _0x2cd090=['length','sparklines','matrix','_initialize','removeSparklineGroup','map','3499384Qcnghd','removeSparkline','from','847140uULNbU','createInstance','_unitId','488410NOvPQN','_subUnitId','filter','ranges','group','getActiveWorkbook','groupId','_groupId','changeDataSource','get','_row','getId','4SNwlqM','startRow','getOwnPropertyDescriptor','executeCommand','getUnitId','range','100038UrzkgN','sparklineAnchorMap','_worksheet','Event','add','params','getValue','onCommandExecuted','getSparklineGroupByCell','isChangeDataSource','setConfig','_injector','registerEventHandler','_commandService','SheetSparklineChanged','117BUHOWK','getSheetId','getSparklineByCell','item','extend','syncExecuteCommand','getSparklineById','startColumn','673300gEitrp','composeSparkline','246747BwZQeH','_col','getAllSubSparkline','getSparklineCache','_workbook','addSparkline','getSparkline','SparklineTypeEnum','462179LjYnVB','unComposeSparkline','deepClone','getSubUnitSparkline','115HEXwpV'];_0x4b8d=function(){return _0x2cd090;};return _0x4b8d();}import{SheetsSelectionsService as _0xbe1b59}from'@univerjs/sheets';var z=Object[_0x1b4e45(0x1bd)],H=(_0x3b12c0,_0xe9705c,_0x134006,_0x38d1cf)=>{const _0x1d5066=_0x1b4e45;for(var _0x3b129c=_0x38d1cf>0x1?void 0x0:_0x38d1cf?z(_0xe9705c,_0x134006):_0xe9705c,_0x392166=_0x3b12c0[_0x1d5066(0x1a3)]-0x1,_0x1bcf58;_0x392166>=0x0;_0x392166--)(_0x1bcf58=_0x3b12c0[_0x392166])&&(_0x3b129c=_0x1bcf58(_0x3b129c)||_0x3b129c);return _0x3b129c;},V=(_0x448c6a,_0x558189)=>(_0x51692a,_0x5a6df2)=>_0x558189(_0x51692a,_0x5a6df2,_0x448c6a);let C=class{constructor(_0x4b6589,_0xca32e1,_0x5b41a7,_0x582e01,_0x5a5473,_0x2b1a21){const _0x17deac=_0x1b4e45;this[_0x17deac(0x1ae)]=_0x4b6589,this[_0x17deac(0x1b0)]=_0xca32e1,this[_0x17deac(0x1b6)]=_0x5b41a7,this['_row']=_0x582e01,this['_col']=_0x5a5473,this[_0x17deac(0x1cc)]=_0x2b1a21;}['changeDataSource'](_0x1fc4ae,_0x4227f5){const _0x525816=_0x1b4e45,_0x49516e=this['_injector'][_0x525816(0x1b8)](_0x2294d9),_0xdf6a2f=this[_0x525816(0x1cc)]['get'](_0x25c8ab),_0x112afc=_0x49516e[_0x525816(0x1d6)](this[_0x525816(0x1ae)],this[_0x525816(0x1b0)],this[_0x525816(0x1b6)]);if(!_0x112afc)return;const _0x39501a={'config':_0x112afc,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x525816(0x1b6)],'resetType':_0x525816(0x1d3),'sourceRanges':[_0x1fc4ae],'targetRanges':[_0x4227f5],'primary':{'startRow':this[_0x525816(0x1b9)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this[_0x525816(0x1b9)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0xdf6a2f[_0x525816(0x1d5)](_0x541c1d['id'],_0x39501a),this[_0x525816(0x1b9)]=_0x4227f5['startRow'],this[_0x525816(0x1db)]=_0x4227f5[_0x525816(0x1d7)],this;}[_0x1b4e45(0x1aa)](){const _0x18bdeb=_0x1b4e45,_0x19a054=this['_injector']['get'](_0x25c8ab),_0x44b688={'isSingle':!0x0,'ranges':[{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x18bdeb(0x1db)]}]};_0x19a054[_0x18bdeb(0x1d5)](_0x1f4bf8['id'],_0x44b688);}};C=H([V(0x5,_0x26dc67(_0x941f6))],C);var q=Object[_0x1b4e45(0x1bd)],J=(_0xad568e,_0x539871,_0x24a47b,_0x4ce00b)=>{const _0x1e1615=_0x1b4e45;for(var _0x38b6d4=_0x4ce00b>0x1?void 0x0:_0x4ce00b?q(_0x539871,_0x24a47b):_0x539871,_0x1f169a=_0xad568e[_0x1e1615(0x1a3)]-0x1,_0x3a25b5;_0x1f169a>=0x0;_0x1f169a--)(_0x3a25b5=_0xad568e[_0x1f169a])&&(_0x38b6d4=_0x3a25b5(_0x38b6d4)||_0x38b6d4);return _0x38b6d4;},K=(_0x115e9a,_0x2dbcbb)=>(_0xb18f9f,_0x2f0bf5)=>_0x2dbcbb(_0xb18f9f,_0x2f0bf5,_0x115e9a);let w=class{constructor(_0x532373,_0x120371,_0x23183b,_0x5dda05,_0x24cbed,_0x332583){const _0x5c75e1=_0x1b4e45;this[_0x5c75e1(0x1ae)]=_0x532373,this[_0x5c75e1(0x1b0)]=_0x120371,this[_0x5c75e1(0x1b6)]=_0x23183b,this['_row']=_0x5dda05,this[_0x5c75e1(0x1db)]=_0x24cbed,this[_0x5c75e1(0x1cc)]=_0x332583;}[_0x1b4e45(0x1b7)](_0x400b86,_0x112313){const _0x3c2302=_0x1b4e45,_0x4af174=this['_injector']['get'](_0x2294d9),_0x4808bd=this[_0x3c2302(0x1cc)]['get'](_0x25c8ab),_0x485d60=_0x4af174[_0x3c2302(0x1d6)](this[_0x3c2302(0x1ae)],this[_0x3c2302(0x1b0)],this[_0x3c2302(0x1b6)]);if(!_0x485d60)return;const _0x3cc549={'config':_0x485d60,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x3c2302(0x1b6)],'resetType':_0x3c2302(0x1b3),'sourceRanges':_0x400b86,'targetRanges':_0x112313,'primary':{'startRow':this[_0x3c2302(0x1b9)],'startColumn':this[_0x3c2302(0x1db)],'endRow':this['_row'],'endColumn':this[_0x3c2302(0x1db)],'actualRow':this[_0x3c2302(0x1b9)],'actualColumn':this[_0x3c2302(0x1db)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4808bd['syncExecuteCommand'](_0x541c1d['id'],_0x3cc549),this[_0x3c2302(0x1b9)]=_0x112313[0x0][_0x3c2302(0x1bc)],this[_0x3c2302(0x1db)]=_0x112313[0x0][_0x3c2302(0x1d7)],this;}[_0x1b4e45(0x1a7)](){const _0x22217f=_0x1b4e45,_0x5f2c14=this[_0x22217f(0x1cc)]['get'](_0x25c8ab),_0x19f262={'isSingle':!0x1,'ranges':[{'startRow':this[_0x22217f(0x1b9)],'startColumn':this['_col'],'endRow':this[_0x22217f(0x1b9)],'endColumn':this[_0x22217f(0x1db)]}]};_0x5f2c14[_0x22217f(0x1d5)](_0x1f4bf8['id'],_0x19f262);}[_0x1b4e45(0x1cb)](_0x15cad1){const _0x515d76=_0x1b4e45,_0x2cdfc6=this[_0x515d76(0x1cc)][_0x515d76(0x1b8)](_0x2294d9)[_0x515d76(0x1d6)](this[_0x515d76(0x1ae)],this[_0x515d76(0x1b0)],this['_groupId']);if(_0x2cdfc6){const _0x283a56={'config':{'config':_0x15cad1,'sparklines':_0x2cdfc6[_0x515d76(0x1a4)]},'isChangeDataSource':!0x1};this[_0x515d76(0x1cc)][_0x515d76(0x1b8)](_0x25c8ab)[_0x515d76(0x1d5)](_0x541c1d['id'],_0x283a56);}return this;}};w=J([K(0x5,_0x26dc67(_0x941f6))],w);class L extends _0x39a11c{[_0x1b4e45(0x19b)](_0x3f6486,_0x53f85a,_0x34efaa){const _0x36d43c=_0x1b4e45;if(this[_0x36d43c(0x1ce)]['syncExecuteCommand'](_0x4ad3b5['id'],{'sourceRanges':_0x3f6486,'targetRanges':_0x53f85a,'targetInfo':{'unitId':this[_0x36d43c(0x1de)][_0x36d43c(0x1bf)](),'subUnitId':this[_0x36d43c(0x1c3)][_0x36d43c(0x1d1)]()},'config':{'type':_0x34efaa}})){const {startRow:_0x21f8b6,startColumn:_0x227f26}=_0x53f85a[0x0];return this[_0x36d43c(0x1d2)](_0x21f8b6,_0x227f26);}}[_0x1b4e45(0x1dc)](){const _0x16033b=_0x1b4e45;return this['_injector']['get'](_0x2294d9)[_0x16033b(0x1a1)](this[_0x16033b(0x1de)]['getUnitId'](),this[_0x16033b(0x1c3)][_0x16033b(0x1d1)]());}[_0x1b4e45(0x1d9)](_0x1dfb84){const _0x2431d4=_0x1b4e45,_0x1bdcdb=this[_0x2431d4(0x1cc)][_0x2431d4(0x1b8)](_0x2294d9);let _0x1b52b3;for(let _0x46ed6f=0x0;_0x46ed6f<_0x1dfb84[_0x2431d4(0x1a3)];_0x46ed6f++){const _0x57369e=_0x1dfb84[_0x46ed6f],{startRow:_0x438c4a,endRow:_0x5e3f69,startColumn:_0x259c7f,endColumn:_0x296888}=_0x57369e;for(let _0x704db1=_0x438c4a;_0x704db1<=_0x5e3f69;_0x704db1++)for(let _0x33d47c=_0x259c7f;_0x33d47c<=_0x296888;_0x33d47c++){const _0x542e43=_0x1bdcdb['getSparkline'](this[_0x2431d4(0x1de)][_0x2431d4(0x1bf)](),this[_0x2431d4(0x1c3)][_0x2431d4(0x1d1)](),_0x704db1,_0x33d47c);if(_0x542e43){const _0x356d66=_0x1bdcdb['getSparklineById'](this[_0x2431d4(0x1de)][_0x2431d4(0x1bf)](),this[_0x2431d4(0x1c3)][_0x2431d4(0x1d1)](),_0x542e43);if(_0x356d66){_0x1b52b3=_0x52a681[_0x2431d4(0x1a0)](_0x356d66);break;}}}}_0x1b52b3&&this[_0x2431d4(0x1ce)][_0x2431d4(0x1be)](_0x541c1d['id'],{'ranges':_0x1dfb84,'combine':!0x0,'config':_0x1b52b3,'isChangeDataSource':!0x1});}[_0x1b4e45(0x19f)](_0x4591b2){const _0x2d9ed6=_0x1b4e45,_0x351928=this[_0x2d9ed6(0x1cc)][_0x2d9ed6(0x1b8)](_0x2294d9);let _0x3bc717;for(let _0x32fa13=0x0;_0x32fa13<_0x4591b2['length'];_0x32fa13++){const _0x2c5105=_0x4591b2[_0x32fa13],{startRow:_0x246da4,endRow:_0x5cbbb0,startColumn:_0xf9b587,endColumn:_0x44f30d}=_0x2c5105;for(let _0x5aa827=_0x246da4;_0x5aa827<=_0x5cbbb0;_0x5aa827++)for(let _0x5b2016=_0xf9b587;_0x5b2016<=_0x44f30d;_0x5b2016++){const _0x32eaec=_0x351928['getSparkline'](this[_0x2d9ed6(0x1de)]['getUnitId'](),this['_worksheet'][_0x2d9ed6(0x1d1)](),_0x5aa827,_0x5b2016);if(_0x32eaec){const _0x16b644=_0x351928[_0x2d9ed6(0x1d6)](this[_0x2d9ed6(0x1de)]['getUnitId'](),this[_0x2d9ed6(0x1c3)]['getSheetId'](),_0x32eaec);if(_0x16b644){_0x3bc717=_0x52a681['deepClone'](_0x16b644);break;}}}}_0x3bc717||this[_0x2d9ed6(0x1ce)][_0x2d9ed6(0x1be)](_0x541c1d['id'],{'ranges':_0x4591b2,'unCombine':!0x0,'config':_0x3bc717,'isChangeDataSource':!0x1});}[_0x1b4e45(0x1d2)](_0x19c80c,_0x334eb4){const _0x41176e=_0x1b4e45,_0x329333=this[_0x41176e(0x1cc)][_0x41176e(0x1b8)](_0x2294d9),_0x55437f=this[_0x41176e(0x1de)][_0x41176e(0x1bf)](),_0x3f5ec7=this[_0x41176e(0x1c3)]['getSheetId'](),_0x32a717=_0x329333[_0x41176e(0x19c)](_0x55437f,_0x3f5ec7,_0x19c80c,_0x334eb4);if(_0x32a717)return this[_0x41176e(0x1cc)][_0x41176e(0x1ad)](C,_0x55437f,_0x3f5ec7,_0x32a717,_0x19c80c,_0x334eb4);}[_0x1b4e45(0x1c9)](_0x10bcf8,_0xa00881){const _0x210ab9=_0x1b4e45,_0x42dfe1=this[_0x210ab9(0x1cc)][_0x210ab9(0x1b8)](_0x2294d9),_0x325dcc=this[_0x210ab9(0x1de)][_0x210ab9(0x1bf)](),_0x429505=this[_0x210ab9(0x1c3)][_0x210ab9(0x1d1)](),_0xa8532b=_0x42dfe1[_0x210ab9(0x19c)](_0x325dcc,_0x429505,_0x10bcf8,_0xa00881);if(_0xa8532b)return this[_0x210ab9(0x1cc)][_0x210ab9(0x1ad)](w,_0x325dcc,_0x429505,_0xa8532b,_0x10bcf8,_0xa00881);}}_0x39a11c[_0x1b4e45(0x1d4)](L);class Q extends _0x519b8d{get[_0x1b4e45(0x19d)](){return _0x8877f5;}}_0x519b8d[_0x1b4e45(0x1d4)](Q);class X extends _0x4fba75{get[_0x1b4e45(0x1cf)](){const _0x41daa9=_0x1b4e45;return _0x41daa9(0x1cf);}}_0x4fba75[_0x1b4e45(0x1d4)](X);class Y extends _0x3345ff{[_0x1b4e45(0x1a6)](_0x246eff){const _0x1205ea=_0x1b4e45,_0x158ebf=_0x246eff[_0x1205ea(0x1b8)](_0x25c8ab);this[_0x1205ea(0x1cd)](this[_0x1205ea(0x1c4)]['SheetSparklineChanged'],()=>_0x158ebf[_0x1205ea(0x1c8)](_0x422455=>{const _0x1af932=_0x1205ea;var _0x4bb0ca,_0x2f1e93;if(_0x422455['id']===_0x541c1d['id']){const _0x4584fb=_0x422455[_0x1af932(0x1c6)];if(!_0x4584fb[_0x1af932(0x1ca)]){const _0x5735df=this[_0x1af932(0x1b4)](),_0x1312e0=_0x5735df==null?void 0x0:_0x5735df['getActiveSheet']();if(!_0x5735df||!_0x1312e0)return;const _0x3d8e8a=_0x5735df[_0x1af932(0x1ba)](),_0x1cb213=_0x1312e0['getSheetId'](),_0x3720f3=this[_0x1af932(0x1cc)]['get'](_0xbe1b59),_0x57d522=this['_injector'][_0x1af932(0x1b8)](_0x2294d9),_0x22acc3=(_0x4bb0ca=_0x4584fb==null?void 0x0:_0x4584fb[_0x1af932(0x1b2)])!=null?_0x4bb0ca:_0x3720f3['getCurrentSelections']()[_0x1af932(0x1a8)](_0x41d821=>_0x41d821[_0x1af932(0x1c0)]),_0x36c4bd=(_0x2f1e93=_0x57d522[_0x1af932(0x1dd)]()[_0x1af932(0x1c2)]['get'](_0x3d8e8a))==null?void 0x0:_0x2f1e93[_0x1af932(0x1b8)](_0x1cb213),_0x203f1b=new Set();_0x22acc3['forEach'](_0x4fcd76=>{const _0x2b07ca=_0x1af932;var _0x4e17f1;const {startRow:_0x1a7a39,endRow:_0x1e1f2d,startColumn:_0xfd036a,endColumn:_0x2dcf8f}=_0x4fcd76;for(let _0x31e514=_0x1a7a39;_0x31e514<=_0x1e1f2d;_0x31e514++)for(let _0x1d6833=_0xfd036a;_0x1d6833<=_0x2dcf8f;_0x1d6833++){const _0x1151bd=(_0x4e17f1=_0x36c4bd==null?void 0x0:_0x36c4bd[_0x2b07ca(0x1a5)][_0x2b07ca(0x1c7)](_0x31e514,_0x1d6833))==null?void 0x0:_0x4e17f1[_0x2b07ca(0x1b5)];_0x1151bd&&_0x203f1b[_0x2b07ca(0x1c5)](_0x1151bd);}});const _0xf0fe34=Array[_0x1af932(0x1ab)](_0x203f1b)[_0x1af932(0x1a8)](_0x32a472=>_0x57d522[_0x1af932(0x1d6)](_0x3d8e8a,_0x1cb213,_0x32a472))[_0x1af932(0x1b1)](_0x2566c0=>!!_0x2566c0),_0x2ba8e6={'workbook':_0x5735df,'worksheet':_0x1312e0,'sparklines':_0xf0fe34};if(this['fireEvent'](this[_0x1af932(0x1c4)][_0x1af932(0x1cf)],_0x2ba8e6),_0x2ba8e6['cancel'])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}_0x3345ff['extend'](Y);export{C as FSparkline,w as FSparklineGroup};
1
+ const _0x19d3fc=_0x2ef8;(function(_0x5847a0,_0x242c0a){const _0x4bcc68=_0x2ef8,_0x27846d=_0x5847a0();while(!![]){try{const _0x652efc=parseInt(_0x4bcc68(0x1eb))/0x1+parseInt(_0x4bcc68(0x210))/0x2*(-parseInt(_0x4bcc68(0x201))/0x3)+-parseInt(_0x4bcc68(0x214))/0x4*(-parseInt(_0x4bcc68(0x208))/0x5)+-parseInt(_0x4bcc68(0x22c))/0x6*(-parseInt(_0x4bcc68(0x1ef))/0x7)+-parseInt(_0x4bcc68(0x1f9))/0x8+-parseInt(_0x4bcc68(0x211))/0x9*(parseInt(_0x4bcc68(0x20c))/0xa)+parseInt(_0x4bcc68(0x1f3))/0xb*(-parseInt(_0x4bcc68(0x20d))/0xc);if(_0x652efc===_0x242c0a)break;else _0x27846d['push'](_0x27846d['shift']());}catch(_0x25d2f6){_0x27846d['push'](_0x27846d['shift']());}}}(_0x3074,0x832d5));import{SparklineDataSourceModel as _0x16cccf,SetSheetSparklineCommand as _0x26b9b9,RemoveSheetSparklineCommand as _0x203894,AddSheetSparklineCommand as _0x56dfc9,SparklineTypeEnum as _0xf5d8ec}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x5d975f,Injector as _0x206592,ICommandService as _0x9f627b,Tools as _0x5b0945}from'@univerjs/core';import{FWorksheet as _0xcae6fc}from'@univerjs/sheets/facade';import{FEnum as _0x3a6b55,FEventName as _0x220348,FUniver as _0x3b9872}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x192b1c}from'@univerjs/sheets';var z=Object[_0x19d3fc(0x21b)],H=(_0x16cb8c,_0x1dbefe,_0x19f4d5,_0x38c56d)=>{const _0x397e8f=_0x19d3fc;for(var _0x2ed9ee=_0x38c56d>0x1?void 0x0:_0x38c56d?z(_0x1dbefe,_0x19f4d5):_0x1dbefe,_0x235261=_0x16cb8c[_0x397e8f(0x1ed)]-0x1,_0x523f94;_0x235261>=0x0;_0x235261--)(_0x523f94=_0x16cb8c[_0x235261])&&(_0x2ed9ee=_0x523f94(_0x2ed9ee)||_0x2ed9ee);return _0x2ed9ee;},V=(_0x41f1f9,_0x3dbb3c)=>(_0x133ae9,_0x527172)=>_0x3dbb3c(_0x133ae9,_0x527172,_0x41f1f9);let C=class{constructor(_0x589810,_0x13b027,_0x34f76a,_0x15dc05,_0x8519c9,_0x206b8d){const _0x4cd4a7=_0x19d3fc;this['_unitId']=_0x589810,this[_0x4cd4a7(0x219)]=_0x13b027,this['_groupId']=_0x34f76a,this[_0x4cd4a7(0x1f0)]=_0x15dc05,this[_0x4cd4a7(0x213)]=_0x8519c9,this[_0x4cd4a7(0x217)]=_0x206b8d;}[_0x19d3fc(0x1fd)](_0x250fdd,_0x517445){const _0x4eaf89=_0x19d3fc,_0xa86351=this[_0x4eaf89(0x217)]['get'](_0x16cccf),_0x11cb6c=this[_0x4eaf89(0x217)][_0x4eaf89(0x203)](_0x9f627b),_0x46c673=_0xa86351[_0x4eaf89(0x202)](this['_unitId'],this[_0x4eaf89(0x219)],this['_groupId']);if(!_0x46c673)return;const _0x232deb={'config':_0x46c673,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x4eaf89(0x212)],'resetType':_0x4eaf89(0x218),'sourceRanges':[_0x250fdd],'targetRanges':[_0x517445],'primary':{'startRow':this['_row'],'startColumn':this[_0x4eaf89(0x213)],'endRow':this[_0x4eaf89(0x1f0)],'endColumn':this[_0x4eaf89(0x213)],'actualRow':this[_0x4eaf89(0x1f0)],'actualColumn':this[_0x4eaf89(0x213)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x11cb6c[_0x4eaf89(0x21a)](_0x26b9b9['id'],_0x232deb),this[_0x4eaf89(0x1f0)]=_0x517445[_0x4eaf89(0x226)],this['_col']=_0x517445[_0x4eaf89(0x22f)],this;}[_0x19d3fc(0x21e)](){const _0x3a0e9d=_0x19d3fc,_0x3d90a6=this['_injector'][_0x3a0e9d(0x203)](_0x9f627b),_0x240c2a={'isSingle':!0x0,'ranges':[{'startRow':this[_0x3a0e9d(0x1f0)],'startColumn':this[_0x3a0e9d(0x213)],'endRow':this['_row'],'endColumn':this[_0x3a0e9d(0x213)]}]};_0x3d90a6['syncExecuteCommand'](_0x203894['id'],_0x240c2a);}};C=H([V(0x5,_0x5d975f(_0x206592))],C);function _0x2ef8(_0x5893be,_0x3968b0){const _0x3074c5=_0x3074();return _0x2ef8=function(_0x2ef877,_0x826923){_0x2ef877=_0x2ef877-0x1eb;let _0x4f7d2c=_0x3074c5[_0x2ef877];return _0x4f7d2c;},_0x2ef8(_0x5893be,_0x3968b0);}var q=Object[_0x19d3fc(0x21b)],J=(_0x25c966,_0x3c1954,_0x5490e7,_0x19c887)=>{for(var _0x3d474b=_0x19c887>0x1?void 0x0:_0x19c887?q(_0x3c1954,_0x5490e7):_0x3c1954,_0x81dcee=_0x25c966['length']-0x1,_0x13d7c2;_0x81dcee>=0x0;_0x81dcee--)(_0x13d7c2=_0x25c966[_0x81dcee])&&(_0x3d474b=_0x13d7c2(_0x3d474b)||_0x3d474b);return _0x3d474b;},K=(_0x44652e,_0x1f3868)=>(_0x1cd550,_0x1898ec)=>_0x1f3868(_0x1cd550,_0x1898ec,_0x44652e);let w=class{constructor(_0x29335b,_0x2743bf,_0x28c43f,_0x23dfea,_0x20c4c4,_0x44b342){const _0x59a87a=_0x19d3fc;this['_unitId']=_0x29335b,this[_0x59a87a(0x219)]=_0x2743bf,this[_0x59a87a(0x212)]=_0x28c43f,this[_0x59a87a(0x1f0)]=_0x23dfea,this[_0x59a87a(0x213)]=_0x20c4c4,this['_injector']=_0x44b342;}['changeDataSource'](_0x3e0a40,_0x501d40){const _0x415b90=_0x19d3fc,_0x2c0011=this[_0x415b90(0x217)][_0x415b90(0x203)](_0x16cccf),_0x2b57dd=this['_injector']['get'](_0x9f627b),_0x49fc02=_0x2c0011[_0x415b90(0x202)](this[_0x415b90(0x1f6)],this[_0x415b90(0x219)],this[_0x415b90(0x212)]);if(!_0x49fc02)return;const _0x351896={'config':_0x49fc02,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x415b90(0x212)],'resetType':_0x415b90(0x1fe),'sourceRanges':_0x3e0a40,'targetRanges':_0x501d40,'primary':{'startRow':this[_0x415b90(0x1f0)],'startColumn':this[_0x415b90(0x213)],'endRow':this[_0x415b90(0x1f0)],'endColumn':this[_0x415b90(0x213)],'actualRow':this[_0x415b90(0x1f0)],'actualColumn':this[_0x415b90(0x213)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x2b57dd[_0x415b90(0x21a)](_0x26b9b9['id'],_0x351896),this[_0x415b90(0x1f0)]=_0x501d40[0x0][_0x415b90(0x226)],this[_0x415b90(0x213)]=_0x501d40[0x0][_0x415b90(0x22f)],this;}['removeSparklineGroup'](){const _0x32e253=_0x19d3fc,_0x17980c=this['_injector'][_0x32e253(0x203)](_0x9f627b),_0x567aa2={'isSingle':!0x1,'ranges':[{'startRow':this[_0x32e253(0x1f0)],'startColumn':this['_col'],'endRow':this[_0x32e253(0x1f0)],'endColumn':this['_col']}]};_0x17980c[_0x32e253(0x21a)](_0x203894['id'],_0x567aa2);}['setConfig'](_0x1f8a25){const _0x259763=_0x19d3fc,_0x2d6c48=this[_0x259763(0x217)]['get'](_0x16cccf)['getSparklineById'](this[_0x259763(0x1f6)],this['_subUnitId'],this[_0x259763(0x212)]);if(_0x2d6c48){const _0x283296={'config':{'config':_0x1f8a25,'sparklines':_0x2d6c48[_0x259763(0x20f)]},'isChangeDataSource':!0x1};this[_0x259763(0x217)][_0x259763(0x203)](_0x9f627b)[_0x259763(0x21a)](_0x26b9b9['id'],_0x283296);}return this;}};w=J([K(0x5,_0x5d975f(_0x206592))],w);class L extends _0xcae6fc{[_0x19d3fc(0x1fa)](_0x34de63,_0x1657cb,_0xb86a19){const _0x6c7ef4=_0x19d3fc;if(this[_0x6c7ef4(0x216)]['syncExecuteCommand'](_0x56dfc9['id'],{'sourceRanges':_0x34de63,'targetRanges':_0x1657cb,'targetInfo':{'unitId':this[_0x6c7ef4(0x223)][_0x6c7ef4(0x1f5)](),'subUnitId':this['_worksheet']['getSheetId']()},'config':{'type':_0xb86a19}})){const {startRow:_0x1570fa,startColumn:_0x5c5e72}=_0x1657cb[0x0];return this['getSparklineByCell'](_0x1570fa,_0x5c5e72);}}[_0x19d3fc(0x224)](){const _0x4f82d5=_0x19d3fc;return this[_0x4f82d5(0x217)][_0x4f82d5(0x203)](_0x16cccf)['getSubUnitSparkline'](this[_0x4f82d5(0x223)][_0x4f82d5(0x1f5)](),this[_0x4f82d5(0x225)][_0x4f82d5(0x227)]());}[_0x19d3fc(0x204)](_0x57b331){const _0x3ba5f0=_0x19d3fc,_0x29c3e9=this['_injector'][_0x3ba5f0(0x203)](_0x16cccf);let _0x298fb9;for(let _0x15c6bf=0x0;_0x15c6bf<_0x57b331[_0x3ba5f0(0x1ed)];_0x15c6bf++){const _0x9e791b=_0x57b331[_0x15c6bf],{startRow:_0xf599c5,endRow:_0x14662d,startColumn:_0x5bf1dd,endColumn:_0x422fe5}=_0x9e791b;for(let _0x32f172=_0xf599c5;_0x32f172<=_0x14662d;_0x32f172++)for(let _0x1927a3=_0x5bf1dd;_0x1927a3<=_0x422fe5;_0x1927a3++){const _0x5d6d2a=_0x29c3e9[_0x3ba5f0(0x21d)](this[_0x3ba5f0(0x223)][_0x3ba5f0(0x1f5)](),this['_worksheet'][_0x3ba5f0(0x227)](),_0x32f172,_0x1927a3);if(_0x5d6d2a){const _0x592e4b=_0x29c3e9[_0x3ba5f0(0x202)](this[_0x3ba5f0(0x223)][_0x3ba5f0(0x1f5)](),this[_0x3ba5f0(0x225)]['getSheetId'](),_0x5d6d2a);if(_0x592e4b){_0x298fb9=_0x5b0945['deepClone'](_0x592e4b);break;}}}}_0x298fb9&&this[_0x3ba5f0(0x216)]['executeCommand'](_0x26b9b9['id'],{'ranges':_0x57b331,'combine':!0x0,'config':_0x298fb9,'isChangeDataSource':!0x1});}[_0x19d3fc(0x22d)](_0x27f997){const _0x18ca06=_0x19d3fc,_0x3f0b74=this['_injector'][_0x18ca06(0x203)](_0x16cccf);let _0x4be64f;for(let _0x400730=0x0;_0x400730<_0x27f997['length'];_0x400730++){const _0x1c69f3=_0x27f997[_0x400730],{startRow:_0x1de72b,endRow:_0x30193c,startColumn:_0x2d21be,endColumn:_0x58b17e}=_0x1c69f3;for(let _0x230ee5=_0x1de72b;_0x230ee5<=_0x30193c;_0x230ee5++)for(let _0x2751ec=_0x2d21be;_0x2751ec<=_0x58b17e;_0x2751ec++){const _0x4aaa64=_0x3f0b74[_0x18ca06(0x21d)](this[_0x18ca06(0x223)][_0x18ca06(0x1f5)](),this[_0x18ca06(0x225)][_0x18ca06(0x227)](),_0x230ee5,_0x2751ec);if(_0x4aaa64){const _0x40abf7=_0x3f0b74[_0x18ca06(0x202)](this[_0x18ca06(0x223)][_0x18ca06(0x1f5)](),this['_worksheet'][_0x18ca06(0x227)](),_0x4aaa64);if(_0x40abf7){_0x4be64f=_0x5b0945[_0x18ca06(0x21c)](_0x40abf7);break;}}}}_0x4be64f||this[_0x18ca06(0x216)][_0x18ca06(0x228)](_0x26b9b9['id'],{'ranges':_0x27f997,'unCombine':!0x0,'config':_0x4be64f,'isChangeDataSource':!0x1});}[_0x19d3fc(0x1f7)](_0x3370f4,_0x171c58){const _0x5ab1a8=_0x19d3fc,_0x11331e=this[_0x5ab1a8(0x217)][_0x5ab1a8(0x203)](_0x16cccf),_0x53c9b2=this[_0x5ab1a8(0x223)][_0x5ab1a8(0x1f5)](),_0x4ff63b=this[_0x5ab1a8(0x225)][_0x5ab1a8(0x227)](),_0x97699d=_0x11331e[_0x5ab1a8(0x21d)](_0x53c9b2,_0x4ff63b,_0x3370f4,_0x171c58);if(_0x97699d)return this[_0x5ab1a8(0x217)][_0x5ab1a8(0x220)](C,_0x53c9b2,_0x4ff63b,_0x97699d,_0x3370f4,_0x171c58);}[_0x19d3fc(0x1f1)](_0x4585fb,_0x5cccf4){const _0x22a0da=_0x19d3fc,_0x37541e=this[_0x22a0da(0x217)]['get'](_0x16cccf),_0x1ed028=this[_0x22a0da(0x223)]['getUnitId'](),_0x483b14=this[_0x22a0da(0x225)][_0x22a0da(0x227)](),_0x113f49=_0x37541e['getSparkline'](_0x1ed028,_0x483b14,_0x4585fb,_0x5cccf4);if(_0x113f49)return this[_0x22a0da(0x217)]['createInstance'](w,_0x1ed028,_0x483b14,_0x113f49,_0x4585fb,_0x5cccf4);}}_0xcae6fc[_0x19d3fc(0x1f4)](L);class Q extends _0x3a6b55{get['SparklineTypeEnum'](){return _0xf5d8ec;}}_0x3a6b55['extend'](Q);class X extends _0x220348{get[_0x19d3fc(0x1ec)](){const _0x5689b3=_0x19d3fc;return _0x5689b3(0x1ec);}}function _0x3074(){const _0x1be6a7=['deepClone','getSparkline','removeSparkline','getValue','createInstance','_initialize','ranges','_workbook','getAllSubSparkline','_worksheet','startRow','getSheetId','executeCommand','forEach','isChangeDataSource','filter','162yoOVie','unComposeSparkline','sparklineAnchorMap','startColumn','registerEventHandler','567972DdxmzF','SheetSparklineChanged','length','Event','119042KYcpcw','_row','getSparklineGroupByCell','map','4241248XPAQLP','extend','getUnitId','_unitId','getSparklineByCell','range','1178024zTfhlD','addSparkline','fireEvent','onCommandExecuted','changeDataSource','group','from','getCurrentSelections','146676tvfifS','getSparklineById','get','composeSparkline','groupId','getSparklineCache','getActiveSheet','73990VVHxgD','getActiveWorkbook','matrix','add','8070UqrUhb','36eyoGEb','params','sparklines','6szgRVX','342HkMvsi','_groupId','_col','268yULmPT','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','_commandService','_injector','item','_subUnitId','syncExecuteCommand','getOwnPropertyDescriptor'];_0x3074=function(){return _0x1be6a7;};return _0x3074();}_0x220348[_0x19d3fc(0x1f4)](X);class Y extends _0x3b9872{[_0x19d3fc(0x221)](_0x3affc5){const _0x28f23b=_0x19d3fc,_0x87b98c=_0x3affc5[_0x28f23b(0x203)](_0x9f627b);this[_0x28f23b(0x230)](this[_0x28f23b(0x1ee)][_0x28f23b(0x1ec)],()=>_0x87b98c[_0x28f23b(0x1fc)](_0x17e144=>{const _0x496a4c=_0x28f23b;var _0x18cf4c,_0x2b2aa4;if(_0x17e144['id']===_0x26b9b9['id']){const _0x3dab0f=_0x17e144[_0x496a4c(0x20e)];if(!_0x3dab0f[_0x496a4c(0x22a)]){const _0x891e3d=this[_0x496a4c(0x209)](),_0x110fc5=_0x891e3d==null?void 0x0:_0x891e3d[_0x496a4c(0x207)]();if(!_0x891e3d||!_0x110fc5)return;const _0x4c9176=_0x891e3d['getId'](),_0x5ba072=_0x110fc5[_0x496a4c(0x227)](),_0x4ad8f4=this[_0x496a4c(0x217)][_0x496a4c(0x203)](_0x192b1c),_0x4de4f1=this[_0x496a4c(0x217)]['get'](_0x16cccf),_0x241570=(_0x18cf4c=_0x3dab0f==null?void 0x0:_0x3dab0f[_0x496a4c(0x222)])!=null?_0x18cf4c:_0x4ad8f4[_0x496a4c(0x200)]()[_0x496a4c(0x1f2)](_0x3bd626=>_0x3bd626[_0x496a4c(0x1f8)]),_0x31d9f5=(_0x2b2aa4=_0x4de4f1[_0x496a4c(0x206)]()[_0x496a4c(0x22e)]['get'](_0x4c9176))==null?void 0x0:_0x2b2aa4[_0x496a4c(0x203)](_0x5ba072),_0xd15205=new Set();_0x241570[_0x496a4c(0x229)](_0x257c6a=>{const _0x2ed6ef=_0x496a4c;var _0x299915;const {startRow:_0x5d983b,endRow:_0xf2b108,startColumn:_0x21a399,endColumn:_0x2e7d55}=_0x257c6a;for(let _0x4277b5=_0x5d983b;_0x4277b5<=_0xf2b108;_0x4277b5++)for(let _0x47b4a5=_0x21a399;_0x47b4a5<=_0x2e7d55;_0x47b4a5++){const _0x51ec6a=(_0x299915=_0x31d9f5==null?void 0x0:_0x31d9f5[_0x2ed6ef(0x20a)][_0x2ed6ef(0x21f)](_0x4277b5,_0x47b4a5))==null?void 0x0:_0x299915[_0x2ed6ef(0x205)];_0x51ec6a&&_0xd15205[_0x2ed6ef(0x20b)](_0x51ec6a);}});const _0x5576cd=Array[_0x496a4c(0x1ff)](_0xd15205)[_0x496a4c(0x1f2)](_0xe8e9f3=>_0x4de4f1['getSparklineById'](_0x4c9176,_0x5ba072,_0xe8e9f3))[_0x496a4c(0x22b)](_0x352954=>!!_0x352954),_0x531a38={'workbook':_0x891e3d,'worksheet':_0x110fc5,'sparklines':_0x5576cd};if(this[_0x496a4c(0x1fb)](this[_0x496a4c(0x1ee)]['SheetSparklineChanged'],_0x531a38),_0x531a38['cancel'])throw new Error(_0x496a4c(0x215));}}}));}}_0x3b9872[_0x19d3fc(0x1f4)](Y);export{C as FSparkline,w as FSparklineGroup};